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
6ce9ce2dd0e46784853652492cb563b90869ae67
8,688
py
Python
gamestate-changes/change_statistics/other/plotChangeTypeStatistics.py
phylib/MinecraftNDN-RAFNET19
c7bfa7962707af367fafe9d879bc63637c06aec7
[ "MIT" ]
1
2020-05-18T15:55:09.000Z
2020-05-18T15:55:09.000Z
gamestate-changes/change_statistics/other/plotChangeTypeStatistics.py
phylib/MinecraftNDN-RAFNET19
c7bfa7962707af367fafe9d879bc63637c06aec7
[ "MIT" ]
null
null
null
gamestate-changes/change_statistics/other/plotChangeTypeStatistics.py
phylib/MinecraftNDN-RAFNET19
c7bfa7962707af367fafe9d879bc63637c06aec7
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from mpldatacursor import datacursor import pandas as pd class ChangeTypeStatisticPlot(): def __init__(self): self.reset() def reset(self): self.intervals = { "changedChunksAll":[], "changedChunksBlock":[], "changedChunksBl...
52.97561
155
0.674839
787
8,688
7.290978
0.174079
0.064308
0.083827
0.108749
0.349948
0.252178
0.061694
0.061694
0.061694
0.061694
0
0.00813
0.193025
8,688
163
156
53.300614
0.810298
0.04512
0
0.05042
0
0
0.329993
0.078363
0
0
0
0.006135
0
1
0.05042
false
0
0.042017
0
0.10084
0.008403
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ce9f324d55b6ae60b1dceae331b0a18c49e6cb8
606
py
Python
cpematcher/utils.py
alertot/cpematcher
3b7f1fc18988700764326e8299fffa26a0dd2cd6
[ "MIT" ]
3
2018-08-06T16:08:14.000Z
2019-12-10T17:18:21.000Z
cpematcher/utils.py
alertot/cpematcher
3b7f1fc18988700764326e8299fffa26a0dd2cd6
[ "MIT" ]
2
2019-06-26T19:23:04.000Z
2019-06-30T23:17:46.000Z
cpematcher/utils.py
alertot/cpematcher
3b7f1fc18988700764326e8299fffa26a0dd2cd6
[ "MIT" ]
3
2019-06-25T06:11:07.000Z
2021-11-02T13:13:37.000Z
# heavily inspired by https://stackoverflow.com/a/21882672 def split_cpe_string(string): ret = [] current = [] itr = iter(string) for ch in itr: if ch == "\\": try: # skip the next character; it has been escaped! current.append(next(itr)) e...
27.545455
63
0.50495
66
606
4.606061
0.636364
0.085526
0.085526
0.131579
0
0
0
0
0
0
0
0.021277
0.379538
606
21
64
28.857143
0.787234
0.244224
0
0.235294
0
0
0.006608
0
0
0
0
0
0
1
0.058824
false
0.058824
0
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
6cea43f71d85af41272392dee594ce4cf3b7017f
4,221
py
Python
2017/17_spinlock.py
pchudzik/adventofcode
e1d6521621f6ca90f9dc53cf3d1ed5b8c5c2b7d1
[ "MIT" ]
null
null
null
2017/17_spinlock.py
pchudzik/adventofcode
e1d6521621f6ca90f9dc53cf3d1ed5b8c5c2b7d1
[ "MIT" ]
null
null
null
2017/17_spinlock.py
pchudzik/adventofcode
e1d6521621f6ca90f9dc53cf3d1ed5b8c5c2b7d1
[ "MIT" ]
null
null
null
""" --- Day 17: Spinlock --- Suddenly, whirling in the distance, you notice what looks like a massive, pixelated hurricane: a deadly spinlock. This spinlock isn't just consuming computing power, but memory, too; vast, digital mountains are being ripped from the ground and consumed by the vortex. If you don't move qui...
35.470588
122
0.725421
713
4,221
4.255259
0.336606
0.039552
0.035597
0.03296
0.105471
0.06592
0.048121
0.036915
0.010218
0.006262
0
0.057409
0.211798
4,221
118
123
35.771186
0.854524
0.784174
0
0.068966
0
0
0.062016
0
0
0
0
0
0
1
0.172414
false
0
0.034483
0
0.37931
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6cea4653ce149c498758ae8e65d871bbb3bdd1fb
611
py
Python
cipher_encoder_ASCII.py
rohanailoni/cipher
59baed56b95e47ea75e5f95eb26ab9ae2977da33
[ "MIT" ]
3
2020-02-23T13:02:50.000Z
2020-02-25T16:54:39.000Z
cipher_encoder_ASCII.py
rohanailoni/cipher
59baed56b95e47ea75e5f95eb26ab9ae2977da33
[ "MIT" ]
null
null
null
cipher_encoder_ASCII.py
rohanailoni/cipher
59baed56b95e47ea75e5f95eb26ab9ae2977da33
[ "MIT" ]
null
null
null
s=input(); k=int(input()) for i in s: elif ord(i)>=97 and ord(i)<=122: y=k%26;x=ord(i)-96; if x+y>26: print(chr(y-(26-x)+96),end="") else: print(chr(x+y+96),end="") elif ord(i)>=65 and ord(i)<=90: y = k % 26;x=ord(i)-64; if x+y>26: prin...
25.458333
42
0.412439
112
611
2.25
0.25
0.142857
0.190476
0.178571
0.416667
0.416667
0.142857
0.142857
0.142857
0
0
0.122195
0.343699
611
23
43
26.565217
0.506234
0
0
0.26087
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.304348
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
6cea6d4c2bf84f2fcbdb49e2bfc9d402a5e6ec16
6,573
py
Python
wft_crawler.py
phulsechinmay/destiny-flavor-text-generator
a97879f892aa1bea0f1890ca4de7c28f3c366148
[ "MIT" ]
null
null
null
wft_crawler.py
phulsechinmay/destiny-flavor-text-generator
a97879f892aa1bea0f1890ca4de7c28f3c366148
[ "MIT" ]
null
null
null
wft_crawler.py
phulsechinmay/destiny-flavor-text-generator
a97879f892aa1bea0f1890ca4de7c28f3c366148
[ "MIT" ]
null
null
null
from requests import get from bs4 import BeautifulSoup import sys import re fileName = '' weaponFlavorTexts = [] weaponTitles = [] dismissedFlavorTexts = ['An Awoken gift from the Reef, marked with the Queen\'s crown.', 'A prestigious trophy earned in battle during the Trials of Osiris.', 'Executor-issued sidearm fo...
46.95
2,148
0.697855
756
6,573
6.043651
0.298942
0.010943
0.017728
0.02889
0.560517
0.512804
0.49617
0.46334
0.446925
0.427884
0
0.00823
0.205081
6,573
139
2,149
47.28777
0.86622
0.009128
0
0.413043
0
0.01087
0.376399
0
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.119565
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6ceaf7d47274756db993bf275859c1ba52925e2f
494
py
Python
datasets/KITTI/segtrack/KITTI_MOTS_info.py
DesperateMaker/TrackR-CNN
861b697c4448aac57265d4a6866bd2a0e8b2c6e5
[ "MIT" ]
null
null
null
datasets/KITTI/segtrack/KITTI_MOTS_info.py
DesperateMaker/TrackR-CNN
861b697c4448aac57265d4a6866bd2a0e8b2c6e5
[ "MIT" ]
null
null
null
datasets/KITTI/segtrack/KITTI_MOTS_info.py
DesperateMaker/TrackR-CNN
861b697c4448aac57265d4a6866bd2a0e8b2c6e5
[ "MIT" ]
1
2020-03-17T19:18:21.000Z
2020-03-17T19:18:21.000Z
SEQ_IDS_TRAIN = ["%04d" % idx for idx in [0, 1, 3, 4, 5, 9, 11, 12, 15, 17, 19, 20]] SEQ_IDS_VAL = ["%04d" % idx for idx in [2, 6, 7, 8, 10, 13, 14, 16, 18]] TIMESTEPS_PER_SEQ = {"0000": 154, "0001": 447, "0002": 233, "0003": 144, "0004": 314, "0005": 297, "0006": 270, "0007": 800, "0008": 390, "00...
82.333333
112
0.502024
82
494
2.95122
0.890244
0.049587
0.07438
0.099174
0.115702
0
0
0
0
0
0
0.493261
0.248988
494
5
113
98.8
0.15903
0
0
0
0
0
0.186235
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
6cebb53641c4070903587094a84cbef7d3c86b94
1,191
py
Python
pymeera/utils/support.py
norecces/pymeera
14cfff6797b0bda231980d9329b480b2c178c803
[ "MIT" ]
null
null
null
pymeera/utils/support.py
norecces/pymeera
14cfff6797b0bda231980d9329b480b2c178c803
[ "MIT" ]
null
null
null
pymeera/utils/support.py
norecces/pymeera
14cfff6797b0bda231980d9329b480b2c178c803
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals, division def hash_index(v, group): """ Hash values to store hierarchical index :param v: index value :param group: variables from which index was derived :return: str v = [1, 2] group = ['q1', 'q2] ret...
19.85
76
0.565911
163
1,191
3.969325
0.417178
0.068006
0.023184
0.027821
0.089645
0
0
0
0
0
0
0.022989
0.269521
1,191
59
77
20.186441
0.72069
0.373636
0
0
0
0
0.01849
0
0
0
0
0
0
1
0.166667
false
0
0.055556
0
0.388889
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
6cedb3413a7ff2267fed6a64b3ccc1e501d735c0
6,186
py
Python
generators/gen_gp.py
Limacon101/EA_PODI_Library
6dee7210cd05a6112c919928fccadbd8857d7f10
[ "Apache-2.0" ]
null
null
null
generators/gen_gp.py
Limacon101/EA_PODI_Library
6dee7210cd05a6112c919928fccadbd8857d7f10
[ "Apache-2.0" ]
null
null
null
generators/gen_gp.py
Limacon101/EA_PODI_Library
6dee7210cd05a6112c919928fccadbd8857d7f10
[ "Apache-2.0" ]
null
null
null
""" Problem generator that creates random solutions for a Genetic Programming problem -- symbolic regression. Briefly, this problem involves estimating the (polynomial) line that best fits a set of data points. For testing purposes, these data points are generated from a test function, but (random) data points could b...
30.776119
93
0.623828
825
6,186
4.512727
0.282424
0.024174
0.018802
0.012893
0.141553
0.102605
0.074134
0.051034
0.051034
0.051034
0
0.013677
0.279017
6,186
200
94
30.93
0.821076
0.396541
0
0.08
0
0
0.031781
0
0
0
0
0
0
1
0.09
false
0
0.05
0.01
0.25
0.12
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6cee58845ea7ead95f7ea366265201b50364a581
48,355
py
Python
jenkins_jobs_addons/views.py
itaborda/jenkins-job-builder-addons
63c5bbf9e1b1c70a12ea397f001b2a13ffae27cf
[ "Apache-2.0" ]
null
null
null
jenkins_jobs_addons/views.py
itaborda/jenkins-job-builder-addons
63c5bbf9e1b1c70a12ea397f001b2a13ffae27cf
[ "Apache-2.0" ]
null
null
null
jenkins_jobs_addons/views.py
itaborda/jenkins-job-builder-addons
63c5bbf9e1b1c70a12ea397f001b2a13ffae27cf
[ "Apache-2.0" ]
null
null
null
""" Views show job status. **Component**: views :Macro: views :Entry Point: jenkins_jobs.views """ import logging import xml.etree.ElementTree as XML import jenkins_jobs.modules.base import jenkins_jobs.modules.helpers as helpers logger = logging.getLogger(__name__) def all_view(parser, xml_parent, data): ...
41.829585
80
0.599586
5,250
48,355
5.42419
0.112571
0.05752
0.043579
0.014538
0.705517
0.654809
0.605998
0.582646
0.524985
0.524985
0
0.001646
0.283735
48,355
1,155
81
41.865801
0.820557
0.227588
0
0.48374
0
0
0.290456
0.14007
0
0
0
0
0
1
0.01084
false
0.001355
0.00542
0
0.025745
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ceeab74fac4b47e00b939e03b78599e3b6bd64d
1,602
py
Python
audioplayer/audioplayer_windows.py
mark-summerfield/AudioPlayer
1681eb9673f8cc8b26bbe646fda601c5caf3a27a
[ "MIT" ]
21
2020-07-01T20:31:25.000Z
2022-03-16T08:34:52.000Z
audioplayer/audioplayer_windows.py
Frankkkkk/AudioPlayer
5a9e666e462cd668084acc44af8eab68b1d9e2b4
[ "MIT" ]
12
2020-07-12T16:06:45.000Z
2021-12-24T17:14:36.000Z
audioplayer/audioplayer_windows.py
Frankkkkk/AudioPlayer
5a9e666e462cd668084acc44af8eab68b1d9e2b4
[ "MIT" ]
7
2020-07-12T15:49:59.000Z
2022-02-04T17:16:31.000Z
from .abstractaudioplayer import AbstractAudioPlayer, AudioPlayerError from ctypes import windll class AudioPlayerWindows(AbstractAudioPlayer): def __init__(self, filename): super().__init__(filename) self._alias = "A{}".format(id(self)) def _mciSendString(self, command): return windl...
34.826087
106
0.627341
177
1,602
5.497175
0.440678
0.073998
0.092497
0.055498
0
0
0
0
0
0
0
0.009926
0.245318
1,602
45
107
35.6
0.793218
0.121099
0
0
0
0
0.10307
0
0
0
0
0
0
1
0.3
false
0
0.066667
0.033333
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
1
0
0
0
0
0
0
0
1
6ceef45fd00a4fefffef3511012a9cb07586edc9
992
py
Python
1029.Two-City-Scheduling.py
mickey0524/leetcode
6bedeb6ff29b02a97178cca464c5fd639951801f
[ "MIT" ]
18
2018-07-14T12:45:37.000Z
2022-03-26T14:51:04.000Z
1029.Two-City-Scheduling.py
mickey0524/leetcode
6bedeb6ff29b02a97178cca464c5fd639951801f
[ "MIT" ]
null
null
null
1029.Two-City-Scheduling.py
mickey0524/leetcode
6bedeb6ff29b02a97178cca464c5fd639951801f
[ "MIT" ]
3
2019-05-29T04:09:22.000Z
2021-06-07T23:37:46.000Z
# https://leetcode.com/problems/two-city-scheduling/ # Easy (51.19%) # Total Accepted: 3,913 # Total Submissions: 7,644 import math class Solution(object): def twoCitySchedCost(self, costs): """ :type costs: List[List[int]] :rtype: int """ def comp(c1, c2): r...
24.8
75
0.403226
115
992
3.478261
0.452174
0.09
0.09
0.09
0.15
0.14
0.08
0
0
0
0
0.067669
0.46371
992
39
76
25.435897
0.684211
0.157258
0
0.44
0
0
0
0
0
0
0
0
0
1
0.08
false
0
0.04
0.04
0.24
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6cef0b375dc416be2c958051d5eef16f02884782
1,238
py
Python
restler/checkers/checker_log.py
mkleshchenok/restler-fuzzer
1bd7bc68a6c4de997e9fda9a9db5ffb0504b864c
[ "MIT" ]
1,539
2020-11-16T19:20:55.000Z
2022-03-30T16:36:49.000Z
restler/checkers/checker_log.py
mkleshchenok/restler-fuzzer
1bd7bc68a6c4de997e9fda9a9db5ffb0504b864c
[ "MIT" ]
282
2020-11-17T04:53:38.000Z
2022-03-31T13:16:25.000Z
restler/checkers/checker_log.py
mkleshchenok/restler-fuzzer
1bd7bc68a6c4de997e9fda9a9db5ffb0504b864c
[ "MIT" ]
171
2020-11-16T21:55:59.000Z
2022-03-28T12:56:26.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. from __future__ import print_function import os import threading import utils.logger as logger class CheckerLog(object): def __init__(self, checker_name): """ Creates a log file of a specified name @param checker_name: The...
30.95
97
0.641357
168
1,238
4.458333
0.452381
0.102804
0.080107
0.050734
0
0
0
0
0
0
0
0.001104
0.268174
1,238
39
98
31.74359
0.825607
0.234249
0
0
0
0
0.052154
0.043084
0
0
0
0
0
1
0.1
false
0
0.2
0
0.4
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
6cf28d611ee9dcd8d53d1a651cec5d7de16772e8
907
py
Python
menpofit/lucaskanade/appearance/base.py
trigeorgis/menpofit
742f4d1aeeb822a615d88ac499df40009b05795f
[ "BSD-3-Clause" ]
1
2015-07-26T18:33:56.000Z
2015-07-26T18:33:56.000Z
menpofit/lucaskanade/appearance/base.py
ersisimou/menpofit
55ec53205ba31fd42ca054b2ce07590490decb8c
[ "BSD-3-Clause" ]
null
null
null
menpofit/lucaskanade/appearance/base.py
ersisimou/menpofit
55ec53205ba31fd42ca054b2ce07590490decb8c
[ "BSD-3-Clause" ]
null
null
null
from menpofit.lucaskanade.residual import SSD from menpofit.lucaskanade.base import LucasKanade class AppearanceLucasKanade(LucasKanade): def __init__(self, model, transform, eps=10**-6): # Note that the only supported residual for Appearance LK is SSD. # This is because, in general, we don't kno...
41.227273
80
0.654906
108
907
5.398148
0.638889
0.041166
0.078902
0
0
0
0
0
0
0
0
0.009105
0.273429
907
21
81
43.190476
0.875569
0.442117
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6cf4283b40f2711fae51f7a72680c8eec927755d
7,672
py
Python
scrapy_httpcache/policy/rfc2616.py
nyov/scrapy-httpcache
dda4d7b3dda0f0df945d02235740c705bccc3d8a
[ "BSD-3-Clause" ]
1
2021-07-26T17:49:59.000Z
2021-07-26T17:49:59.000Z
scrapy_httpcache/policy/rfc2616.py
nyov/scrapy-httpcache
dda4d7b3dda0f0df945d02235740c705bccc3d8a
[ "BSD-3-Clause" ]
null
null
null
scrapy_httpcache/policy/rfc2616.py
nyov/scrapy-httpcache
dda4d7b3dda0f0df945d02235740c705bccc3d8a
[ "BSD-3-Clause" ]
null
null
null
from time import time from weakref import WeakKeyDictionary from scrapy.http import Response from scrapy.utils.httpobj import urlparse_cached from .base import CachePolicy, parse_cachecontrol, rfc1123_to_epoch class RFC2616Policy(CachePolicy): """ Cache Policy following RFC 2616, implementing browser-like ca...
41.247312
105
0.643639
954
7,672
5.083857
0.275681
0.030928
0.025979
0.023711
0.258763
0.214433
0.162474
0.126392
0.119175
0.100619
0
0.025571
0.286366
7,672
185
106
41.47027
0.860274
0.318431
0
0.275229
0
0
0.045683
0
0
0
0
0.005405
0
1
0.091743
false
0.018349
0.045872
0
0.394495
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6cf42f6f443c43a7f39d1f54ae917b2beaa8ef3a
4,608
py
Python
stub-generator/matrix_analytics_stub_generator/kotlin.py
matrix-org/matrix-analytics-events
a0687ca6fbdb7258543d49b99fb88b9201e900b0
[ "Apache-2.0" ]
4
2022-01-14T17:39:29.000Z
2022-02-23T20:46:48.000Z
stub-generator/matrix_analytics_stub_generator/kotlin.py
matrix-org/matrix-analytics-events
a0687ca6fbdb7258543d49b99fb88b9201e900b0
[ "Apache-2.0" ]
25
2021-11-25T22:47:58.000Z
2022-02-24T14:27:43.000Z
stub-generator/matrix_analytics_stub_generator/kotlin.py
matrix-org/matrix-analytics-events
a0687ca6fbdb7258543d49b99fb88b9201e900b0
[ "Apache-2.0" ]
1
2021-11-24T09:50:20.000Z
2021-11-24T09:50:20.000Z
from .schema import Schema, is_mobile_screen_event, first_letter_up, split_text def compute_kotlin(schema: Schema) -> str: """Compute the output for Kotlin.""" is_screen = is_mobile_screen_event(schema.klass) result = """/* * Copyright (c) 2021 New Vector Ltd * * Licensed under the Apache License, Vers...
34.646617
87
0.501085
503
4,608
4.54672
0.304175
0.061216
0.031482
0.03498
0.25798
0.147355
0.112812
0.028859
0
0
0
0.00273
0.364149
4,608
132
88
34.909091
0.777816
0.00651
0
0.34188
0
0
0.433946
0.055774
0
0
0
0
0
1
0.008547
false
0
0.017094
0
0.034188
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6cf4a417a39cb86d2babede76f44ea6d7a3ec33e
15,103
py
Python
hokudai_furima/product/views.py
TetsuFe/hokuma
b981a52b3bf8d7268bf791c5827bbe8af90afef6
[ "MIT" ]
1
2021-02-13T03:51:42.000Z
2021-02-13T03:51:42.000Z
hokudai_furima/product/views.py
TetsuFe/hokuma
b981a52b3bf8d7268bf791c5827bbe8af90afef6
[ "MIT" ]
null
null
null
hokudai_furima/product/views.py
TetsuFe/hokuma
b981a52b3bf8d7268bf791c5827bbe8af90afef6
[ "MIT" ]
1
2021-09-18T09:25:48.000Z
2021-09-18T09:25:48.000Z
from django.shortcuts import render, get_object_or_404, redirect from django.utils import timezone from .models import Product, Category from .forms import ProductForm, ProductImageForm from django.contrib import messages from django.conf import settings from hokudai_furima.chat.models import Talk, Chat from hokudai_fu...
51.19661
296
0.716877
1,821
15,103
5.606809
0.120813
0.050539
0.034966
0.019197
0.556709
0.421743
0.339471
0.273066
0.24094
0.222331
0
0.004432
0.193207
15,103
294
297
51.370748
0.833484
0.007548
0
0.339921
0
0.011858
0.102836
0.05699
0
0
0
0
0
1
0.059289
false
0
0.094862
0.011858
0.256917
0.007905
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6cf72264e5043c282ebf4593db79eaa46f4a6594
52
py
Python
oocgcm/plot/__init__.py
suyashbire1/oocgcm
c9616872077494b14b41915d1b6202aeea545c82
[ "Apache-2.0" ]
38
2016-04-05T06:15:42.000Z
2021-08-31T17:10:00.000Z
oocgcm/plot/__init__.py
suyashbire1/oocgcm
c9616872077494b14b41915d1b6202aeea545c82
[ "Apache-2.0" ]
42
2016-04-16T07:47:40.000Z
2022-03-10T19:42:25.000Z
oocgcm/plot/__init__.py
suyashbire1/oocgcm
c9616872077494b14b41915d1b6202aeea545c82
[ "Apache-2.0" ]
12
2016-05-09T15:15:01.000Z
2020-01-12T10:24:29.000Z
#!/usr/bin/env python __all__ = ["plot1d","plot2d"]
17.333333
29
0.653846
7
52
4.285714
1
0
0
0
0
0
0
0
0
0
0
0.042553
0.096154
52
3
29
17.333333
0.595745
0.384615
0
0
0
0
0.375
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
6cf7c0d7c5e6384a67c09a07fd8d29914a976217
911
py
Python
netbox/virtualization/forms/bulk_create.py
cybarox/netbox
ea197eff5f4fe925bb354d1375912decd81752bd
[ "Apache-2.0" ]
4,994
2019-07-01T13:15:44.000Z
2022-03-31T19:55:45.000Z
netbox/virtualization/forms/bulk_create.py
cybarox/netbox
ea197eff5f4fe925bb354d1375912decd81752bd
[ "Apache-2.0" ]
4,045
2019-07-01T14:24:09.000Z
2022-03-31T16:07:39.000Z
netbox/virtualization/forms/bulk_create.py
cybarox/netbox
ea197eff5f4fe925bb354d1375912decd81752bd
[ "Apache-2.0" ]
1,225
2019-07-01T15:34:03.000Z
2022-03-31T16:47:09.000Z
from django import forms from utilities.forms import BootstrapMixin, ExpandableNameField, form_from_model from virtualization.models import VMInterface, VirtualMachine __all__ = ( 'VMInterfaceBulkCreateForm', ) class VirtualMachineBulkAddComponentForm(BootstrapMixin, forms.Form): pk = forms.ModelMultipleCho...
29.387097
113
0.726674
93
911
7
0.612903
0.024578
0.039939
0
0
0
0
0
0
0
0
0
0.18551
911
30
114
30.366667
0.877358
0.16685
0
0
0
0
0.078042
0.033069
0
0
0
0
0
1
0.047619
false
0.047619
0.142857
0.047619
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6cf8a1638dc4ca98d75efa8c572eb39e9d8d051f
168
py
Python
src/runanalysis.py
techlover10/StochasticSoundscape
6c86a3e5d671c657361ff8e1e78edc710af40c77
[ "MIT" ]
2
2017-05-02T10:40:43.000Z
2017-06-29T09:38:54.000Z
src/runanalysis.py
techlover10/StochasticSoundscape
6c86a3e5d671c657361ff8e1e78edc710af40c77
[ "MIT" ]
null
null
null
src/runanalysis.py
techlover10/StochasticSoundscape
6c86a3e5d671c657361ff8e1e78edc710af40c77
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # # Copyright © 2017 jared <jared@jared-devstation> # # Generates data based on source material import analyze markov_data = analyze.data_gen()
12.923077
49
0.738095
23
168
5.347826
0.782609
0.162602
0
0
0
0
0
0
0
0
0
0.035211
0.154762
168
12
50
14
0.823944
0.625
0
0
1
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
6cf96920584f4c7107ab05ce65237ae262fac812
200
py
Python
data_collection/gazette/spiders/sc_otacilio_costa.py
Jefersonalves/diario-oficial
9a4bdfe2e31414c993d88831a67160c49a5ee657
[ "MIT" ]
3
2021-08-18T17:50:31.000Z
2021-11-12T23:36:33.000Z
data_collection/gazette/spiders/sc_otacilio_costa.py
Jefersonalves/diario-oficial
9a4bdfe2e31414c993d88831a67160c49a5ee657
[ "MIT" ]
4
2021-02-10T02:36:48.000Z
2022-03-02T14:55:34.000Z
data_collection/gazette/spiders/sc_otacilio_costa.py
Jefersonalves/diario-oficial
9a4bdfe2e31414c993d88831a67160c49a5ee657
[ "MIT" ]
null
null
null
from gazette.spiders.base import FecamGazetteSpider class ScOtacilioCostaSpider(FecamGazetteSpider): name = "sc_otacilio_costa" FECAM_QUERY = "cod_entidade:180" TERRITORY_ID = "4211751"
25
51
0.78
21
200
7.190476
0.952381
0
0
0
0
0
0
0
0
0
0
0.05848
0.145
200
7
52
28.571429
0.824561
0
0
0
0
0
0.2
0
0
0
0
0
0
1
0
false
0
0.2
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
6cf9a05ce6bc3958bcc674a40c30311812b35c86
10,373
py
Python
example/test/L8_myClass.py
Michael8968/skulpt
15956a60398fac92ee1dab25bf661ffc003b2eaf
[ "MIT" ]
2
2021-12-18T06:34:26.000Z
2022-01-05T05:08:47.000Z
example/test/L8_myClass.py
Michael8968/skulpt
15956a60398fac92ee1dab25bf661ffc003b2eaf
[ "MIT" ]
null
null
null
example/test/L8_myClass.py
Michael8968/skulpt
15956a60398fac92ee1dab25bf661ffc003b2eaf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #! -*-conding:utf-8 -*- #!@Time :2018/4/11 17:14 #!@Author :@liuweqia #!@File :class.py import pygame,random from pygame.locals import * from pygame import Rect class Arrow(pygame.sprite.Sprite): def __init__(self, x, y, property=0): pygame.sprite.Sprite.__init__(self) #...
34.576667
88
0.535139
1,328
10,373
4.103163
0.112952
0.056157
0.045329
0.068636
0.620297
0.504496
0.432189
0.404478
0.346853
0.287759
0
0.048277
0.337029
10,373
299
89
34.692308
0.744074
0.066422
0
0.485477
0
0
0.036458
0.023097
0
0
0
0
0
1
0.041494
false
0.004149
0.012448
0
0.074689
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6cf9c6386316374c888d01ac85367c3d97ca4259
324
py
Python
app/utils/uuid.py
kanson1996/IIMS
4612e3f4ce7b3f6c49a46e26112aad8254bc0592
[ "MIT" ]
null
null
null
app/utils/uuid.py
kanson1996/IIMS
4612e3f4ce7b3f6c49a46e26112aad8254bc0592
[ "MIT" ]
null
null
null
app/utils/uuid.py
kanson1996/IIMS
4612e3f4ce7b3f6c49a46e26112aad8254bc0592
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Created by Kanson on 2020/1/12 16:03. """ import random import datetime def tid_maker(): a = int (datetime.datetime.now ().timestamp ()) b = int (''.join ([str (random.randint (0, 9)) for i in range (3)])) a = str (a) b = str (b) c = a + b retur...
18
72
0.552469
52
324
3.423077
0.730769
0.022472
0
0
0
0
0
0
0
0
0
0.066116
0.253086
324
17
73
19.058824
0.669421
0.237654
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6cfad4e9ca5beb8a5dec6ad61e7a2d7eb72f8c12
6,016
py
Python
core_api/formats.py
jacobkaniuk/flexpipe
3b5271946d48d8a6ffe5447fb82ce4e1d57ad147
[ "MIT" ]
null
null
null
core_api/formats.py
jacobkaniuk/flexpipe
3b5271946d48d8a6ffe5447fb82ce4e1d57ad147
[ "MIT" ]
null
null
null
core_api/formats.py
jacobkaniuk/flexpipe
3b5271946d48d8a6ffe5447fb82ce4e1d57ad147
[ "MIT" ]
null
null
null
# from imageio import formats class ImageFormat(object): def __repr__(self): # attrs = list() for key, val in self.__dict__.items(): print str(key), ": ", str(val) # return str(attrs) def __init__(self, ext, bit_depth, data_space): self._extension = ext ...
31.497382
107
0.568983
688
6,016
4.668605
0.260174
0.03736
0.030822
0.041096
0.227273
0.156912
0.110834
0.073474
0.044832
0.044832
0
0.008472
0.332945
6,016
190
108
31.663158
0.791926
0.148936
0
0.159292
0
0
0.078045
0
0
0
0
0.010526
0
0
null
null
0.026549
0.00885
null
null
0.00885
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
2
6cfb5bd5a18d50f9f80e29de3630c1d8c65d9055
1,194
py
Python
GolVe_Classification/GolVe+lr/make_glove_data.py
majingliang/machine_learning
cd70e3a07bd1f0803ebcffebca565e70aff96de8
[ "MIT" ]
1
2019-09-29T13:36:29.000Z
2019-09-29T13:36:29.000Z
GolVe_Classification/GolVe+lr/make_glove_data.py
yummydeli/machine_learning
54471182ac21ef0eee26557a7bd6f3a3dc3a09bd
[ "MIT" ]
null
null
null
GolVe_Classification/GolVe+lr/make_glove_data.py
yummydeli/machine_learning
54471182ac21ef0eee26557a7bd6f3a3dc3a09bd
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import pickle train_comment_path = '/Users/slade/Documents/YMM/Code/UCGPCG/src/jobs/terror_recognition/train_model/new_model/comment_cutwords.csv' train_comment_data = pd.read_csv(open(train_comment_path, 'rU'), header=0) train_comment_data = train_comment_data.sort_values(['lab...
31.421053
132
0.70938
186
1,194
4.354839
0.419355
0.118519
0.118519
0.081481
0.360494
0.360494
0.306173
0.306173
0.306173
0.306173
0
0.00892
0.154941
1,194
37
133
32.27027
0.793855
0.031826
0
0
0
0.111111
0.325239
0.314831
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6cfb63a64bae5ca66fd31a9408f58acd538f1711
4,215
py
Python
2021/Practice/Solution.py
Ashwin-op/Google-HashCode-2020
05b385ce9454673ecd85fe9461aa1ffde515873d
[ "MIT" ]
5
2020-03-10T08:24:27.000Z
2020-07-10T15:25:08.000Z
2021/Practice/Solution.py
Ashwin-op/Google-HashCode-2020
05b385ce9454673ecd85fe9461aa1ffde515873d
[ "MIT" ]
null
null
null
2021/Practice/Solution.py
Ashwin-op/Google-HashCode-2020
05b385ce9454673ecd85fe9461aa1ffde515873d
[ "MIT" ]
1
2020-06-29T04:29:55.000Z
2020-06-29T04:29:55.000Z
import operator import os from tqdm import tqdm PART_SIZE = 100 def solve2(teams, pizzas): if len(pizzas) < 1: return for team in tqdm(teams): if len(pizzas) < 1: break maxScore = 0 maxScoreIdx = 0 for i, pizza in enumerate(pizzas[0:PART_SIZE]): ...
27.019231
87
0.554686
535
4,215
4.31028
0.213084
0.031223
0.01301
0.023851
0.344319
0.259324
0.259324
0.259324
0.228101
0.228101
0
0.02585
0.302491
4,215
155
88
27.193548
0.758503
0.046975
0
0.285714
0
0
0.055888
0.028194
0
0
0
0
0.016807
1
0.10084
false
0
0.02521
0.02521
0.201681
0.05042
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6cfc58827e6770ccfeb2db535c0a4dcb9fd69bd3
4,524
py
Python
day7aventcal2019.py
Capoaleman/Advent-of-code-2019
979259698113ed166453bc5eee843317e12fa622
[ "MIT" ]
null
null
null
day7aventcal2019.py
Capoaleman/Advent-of-code-2019
979259698113ed166453bc5eee843317e12fa622
[ "MIT" ]
null
null
null
day7aventcal2019.py
Capoaleman/Advent-of-code-2019
979259698113ed166453bc5eee843317e12fa622
[ "MIT" ]
null
null
null
# Advent of Code 2019 # challenge day 7 # https://adventofcode.com/2019/day/7 from itertools import permutations def grav_asis_prog(arr, entrada, output, i=0): flag = True while i <= len(arr): # Add if arr[i] % 100 == 1: par1, par2, par3 = arr[i+1:i+4] mod...
37.7
75
0.482538
666
4,524
3.129129
0.15015
0.059501
0.050384
0.079175
0.479846
0.479846
0.479846
0.479846
0.479846
0.345489
0
0.102828
0.398099
4,524
119
76
38.016807
0.662505
0.052608
0
0.42
0
0
0.015896
0
0
0
0
0
0
1
0.01
false
0
0.01
0
0.05
0.02
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6cfcedada186be7e3861a66132ec8a897e608837
180
py
Python
gluon/packages/dal/pydal/__init__.py
guadaltech/web2py-ruben
45e0f4f316774e707a3075f23e3f8b9fed00c387
[ "BSD-3-Clause" ]
null
null
null
gluon/packages/dal/pydal/__init__.py
guadaltech/web2py-ruben
45e0f4f316774e707a3075f23e3f8b9fed00c387
[ "BSD-3-Clause" ]
null
null
null
gluon/packages/dal/pydal/__init__.py
guadaltech/web2py-ruben
45e0f4f316774e707a3075f23e3f8b9fed00c387
[ "BSD-3-Clause" ]
null
null
null
__version__ = '17.11' from .base import DAL from .objects import Field from .helpers.classes import SQLCustomType from .helpers.methods import geoPoint, geoLine, geoPolygon
25.714286
59
0.777778
23
180
5.913043
0.695652
0.161765
0
0
0
0
0
0
0
0
0
0.026316
0.155556
180
6
60
30
0.868421
0
0
0
0
0
0.028736
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
9f00027a30f6f8e9207dc52114439d0a9cb6f1a7
1,349
py
Python
belt.py
zignig/cqparts_bucket
9707b0948a9dd1ed514e03c291a3b96fddc4a22d
[ "Apache-2.0" ]
10
2018-09-18T08:09:02.000Z
2022-03-18T06:24:22.000Z
belt.py
zignig/cqparts-bucket
9707b0948a9dd1ed514e03c291a3b96fddc4a22d
[ "Apache-2.0" ]
1
2018-08-09T01:57:32.000Z
2018-08-09T01:57:32.000Z
belt.py
zignig/cqparts-bucket
9707b0948a9dd1ed514e03c291a3b96fddc4a22d
[ "Apache-2.0" ]
1
2018-12-07T20:14:04.000Z
2018-12-07T20:14:04.000Z
import cadquery as cq import cqparts from cadquery import Solid from cqparts.params import * from cqparts.display import render_props, display from cqparts.constraint import Fixed, Coincident from cqparts.constraint import Mate from cqparts.utils.geometry import CoordSystem class Belt(cqparts.Part): # Parameters ...
26.98
81
0.618977
164
1,349
5
0.359756
0.068293
0.040244
0.054878
0.302439
0.27561
0.27561
0.27561
0.229268
0.229268
0
0.02997
0.257969
1,349
49
82
27.530612
0.789211
0.021497
0
0.052632
0
0
0.009871
0
0
0
0
0
0
1
0.052632
false
0
0.236842
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
9f00cc4632a0795ede88a3a5eecaae3f9f488916
1,497
py
Python
app/book/serializers.py
albamr09/django-api
e50d694f1551ea49bc74916f2e5993f47a8c60db
[ "MIT" ]
null
null
null
app/book/serializers.py
albamr09/django-api
e50d694f1551ea49bc74916f2e5993f47a8c60db
[ "MIT" ]
null
null
null
app/book/serializers.py
albamr09/django-api
e50d694f1551ea49bc74916f2e5993f47a8c60db
[ "MIT" ]
null
null
null
from rest_framework import serializers from core.models import Tag, Author, Book class TagSerializer(serializers.ModelSerializer): """Serializer for tag objects""" class Meta: model = Tag fields = ('id', 'name') read_only_fields = ('id',) class AuthorSerializer(serializers.ModelSer...
25.372881
63
0.633935
150
1,497
6.253333
0.333333
0.06823
0.059701
0.06823
0.295309
0.1258
0.070362
0.070362
0
0
0
0
0.252505
1,497
58
64
25.810345
0.838248
0.166333
0
0.388889
0
0
0.051597
0
0
0
0
0
0
1
0
false
0
0.055556
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f01cf09bb6250224e89c048f306a4cb48f65b6f
436
py
Python
bot.py
ahnaf-zamil/discord-bot-live-stream-1
10eae9e7407748f253ab46d41ebb2c68782d62ba
[ "MIT" ]
null
null
null
bot.py
ahnaf-zamil/discord-bot-live-stream-1
10eae9e7407748f253ab46d41ebb2c68782d62ba
[ "MIT" ]
null
null
null
bot.py
ahnaf-zamil/discord-bot-live-stream-1
10eae9e7407748f253ab46d41ebb2c68782d62ba
[ "MIT" ]
1
2021-04-13T03:23:31.000Z
2021-04-13T03:23:31.000Z
import discord from discord.ext import commands from config import TOKEN import os bot = commands.Bot(command_prefix=">>") @bot.event async def on_ready(): print("Ready") @bot.command() async def ping(ctx): latency = round(bot.latency * 1000, 2) # 364.98 ms await ctx.send(f"**Latency:** {latency} ms") f...
20.761905
54
0.658257
68
436
4.176471
0.602941
0.070423
0
0
0
0
0
0
0
0
0
0.030303
0.167431
436
21
55
20.761905
0.752066
0.020642
0
0
0
0
0.126761
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f02aa7f566f68a9f19eb1b1f409e1dc8ed853d5
3,335
py
Python
functions/cloudfront.py
brayest/api-control
d5a8a69ac2b50bec564a63de95fce3f4a1f9b859
[ "Apache-2.0" ]
null
null
null
functions/cloudfront.py
brayest/api-control
d5a8a69ac2b50bec564a63de95fce3f4a1f9b859
[ "Apache-2.0" ]
null
null
null
functions/cloudfront.py
brayest/api-control
d5a8a69ac2b50bec564a63de95fce3f4a1f9b859
[ "Apache-2.0" ]
null
null
null
import os import json import boto3 import botocore from datetime import date def lambda_handler(event, context): dynamodb = boto3.resource('dynamodb', region_name = 'us-east-1') dynamoTable = "oneconnect-jenkins-dev" print(event) request = event['Records'][0]['cf']['request'] headers = request['...
33.686869
120
0.564018
291
3,335
6.419244
0.309278
0.082441
0.085653
0.042827
0.373662
0.328694
0.328694
0.328694
0.279443
0.279443
0
0.006268
0.282459
3,335
99
121
33.686869
0.774342
0
0
0.333333
0
0
0.285971
0.006595
0
0
0
0
0
1
0.024691
false
0
0.061728
0
0.135802
0.08642
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f02b7da5a23642763bd20dc71abab32b6696da4
402
py
Python
api/modules/todo/models.py
tframesqui/flask-todo-api
36749f4c74c6a256812ebec77ed05f6674f33631
[ "MIT" ]
null
null
null
api/modules/todo/models.py
tframesqui/flask-todo-api
36749f4c74c6a256812ebec77ed05f6674f33631
[ "MIT" ]
null
null
null
api/modules/todo/models.py
tframesqui/flask-todo-api
36749f4c74c6a256812ebec77ed05f6674f33631
[ "MIT" ]
null
null
null
from api import db class Base(db.Model): __abstract__=True id = db.Column(db.Integer, primary_key=True) date_created = db.Column(db.DateTime) date_modified = db.Column(db.DateTime) class Item(Base): __tablename__ = 'Item' def __init__(self, name): self.name = name name = db.Colum...
25.125
52
0.679104
57
402
4.526316
0.526316
0.155039
0.193798
0.139535
0
0
0
0
0
0
0
0.009288
0.196517
402
16
53
25.125
0.789474
0
0
0
0
0
0.009926
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.916667
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
9f034d514b4b28895e441e4548cccf532da11adc
294
py
Python
simp-py-code/task5.py
Michaeloye/python-journey
ff8ce0e8796a129994f9a9a9dbb80340fa5790dc
[ "MIT" ]
null
null
null
simp-py-code/task5.py
Michaeloye/python-journey
ff8ce0e8796a129994f9a9a9dbb80340fa5790dc
[ "MIT" ]
null
null
null
simp-py-code/task5.py
Michaeloye/python-journey
ff8ce0e8796a129994f9a9a9dbb80340fa5790dc
[ "MIT" ]
null
null
null
# Given 2 strings, give a new string made of the fist, middle and last character #each string string1 = "david" string2 = "fishe" middle1 = int((len(string1)/2)) middle2 = int((len(string2)/2)) print(string1[0] + string2[0] + string1[middle1] + string2[middle2] + string1[-1:] + string2[-1:])
32.666667
98
0.690476
44
294
4.613636
0.613636
0.059113
0
0
0
0
0
0
0
0
0
0.083333
0.142857
294
8
99
36.75
0.722222
0.302721
0
0
0
0
0.049505
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9f03631cd0c8812d3995b35506c5d1ad803b2fe9
49
py
Python
src/chemical_roles/export/__init__.py
bgyori/chemical-roles
31a917e911075e3be7eea509e143d3ff48e942cc
[ "MIT" ]
5
2021-02-05T01:27:53.000Z
2021-07-12T15:47:08.000Z
src/chemical_roles/export/__init__.py
bgyori/chemical-roles
31a917e911075e3be7eea509e143d3ff48e942cc
[ "MIT" ]
8
2019-10-10T13:02:18.000Z
2020-05-11T18:41:56.000Z
src/chemical_roles/export/__init__.py
bgyori/chemical-roles
31a917e911075e3be7eea509e143d3ff48e942cc
[ "MIT" ]
5
2020-06-07T13:11:34.000Z
2021-07-12T14:24:01.000Z
# -*- coding: utf-8 -*- """Export utilities."""
12.25
23
0.510204
5
49
5
1
0
0
0
0
0
0
0
0
0
0
0.02439
0.163265
49
3
24
16.333333
0.585366
0.816327
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
9f03e4f4beaaf3e803e2cf26c72bfb4df5751fad
669
py
Python
tests/test_load_data.py
brianrice2/pitchfork
07978a5ab7b0fccf23f2e9ded11b99a39ce59410
[ "MIT" ]
1
2021-04-07T00:37:19.000Z
2021-04-07T00:37:19.000Z
tests/test_load_data.py
brianrice2/pitchfork
07978a5ab7b0fccf23f2e9ded11b99a39ce59410
[ "MIT" ]
2
2021-04-07T21:42:31.000Z
2021-05-21T23:07:32.000Z
tests/test_load_data.py
brianrice2/pitchfork
07978a5ab7b0fccf23f2e9ded11b99a39ce59410
[ "MIT" ]
1
2021-06-16T01:24:44.000Z
2021-06-16T01:24:44.000Z
""" Test load_data.py module. """ import pytest from src import load_data def test_parse_s3(): """Correctly splits bucket and path.""" bucket, path = load_data.parse_s3("s3://my-bucket/my-path") assert bucket == "my-bucket" assert path == "my-path" def test_parse_s3_long_path(): """Correctly sp...
24.777778
74
0.665172
98
669
4.357143
0.306122
0.098361
0.084309
0.098361
0.484778
0.400468
0.400468
0.34192
0.173302
0.173302
0
0.018116
0.174888
669
26
75
25.730769
0.755435
0.210762
0
0.153846
0
0
0.223762
0.108911
0
0
0
0
0.307692
1
0.230769
true
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
0
0
2
9f0427d0e9802767838aefea49771e89e6832915
1,041
py
Python
test/dom/ext/test_memory.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
2
2018-05-28T23:01:20.000Z
2018-05-29T03:59:38.000Z
test/dom/ext/test_memory.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
test/dom/ext/test_memory.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
import Cyclops,sys from xml.dom.ext.reader import Sax2 from xml.dom import ext def test(): data = sys.stdin.read() doc = Sax2.FromXml(data) b1 = doc.createElementNS("http://foo.com","foo:branch") c1 = doc.createElementNS("http://foo.com","foo:child1") c2 = doc.createElementNS("http://foo.com","f...
21.244898
60
0.652257
141
1,041
4.744681
0.397163
0.06278
0.089686
0.09716
0.185351
0.185351
0
0
0
0
0
0.030624
0.184438
1,041
48
61
21.6875
0.757362
0
0
0.129032
0
0
0.160423
0
0
0
0
0
0
1
0.032258
false
0
0.16129
0
0.193548
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f0637f31c936135c46b83977efac7d7ce44ca3c
20,957
py
Python
dataset.py
BalinLin/attention-target-detection
fd69aaddc07256ebef5036f668c3cf8cbbe4a923
[ "MIT" ]
1
2022-02-09T18:45:09.000Z
2022-02-09T18:45:09.000Z
dataset.py
BalinLin/attention-target-detection
fd69aaddc07256ebef5036f668c3cf8cbbe4a923
[ "MIT" ]
null
null
null
dataset.py
BalinLin/attention-target-detection
fd69aaddc07256ebef5036f668c3cf8cbbe4a923
[ "MIT" ]
null
null
null
import torch from torch.utils.data.dataset import Dataset from torchvision import transforms import torchvision.transforms.functional as TF import numpy as np from PIL import Image, ImageFilter, ImageDraw import pandas as pd import matplotlib as mpl mpl.use('Agg') from matplotlib import cm import matplotlib.pyplot a...
46.059341
135
0.549602
2,811
20,957
3.820704
0.11704
0.019367
0.014153
0.013035
0.601397
0.560335
0.51108
0.451862
0.418343
0.35
0
0.016034
0.345278
20,957
454
136
46.160793
0.766708
0.109987
0
0.368421
0
0
0.039281
0
0
0
0
0
0
1
0.017544
false
0
0.052632
0.005848
0.093567
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f068949b8d532400d0c62a6e21fcf94df34dbea
1,678
py
Python
src/bob/handlers.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/bob/handlers.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/bob/handlers.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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 appl...
33.56
74
0.740167
235
1,678
5.085106
0.485106
0.033473
0.11046
0.026778
0.117155
0.102092
0
0
0
0
0
0.013848
0.18236
1,678
49
75
34.244898
0.857143
0.361144
0
0.076923
0
0
0.073934
0.021801
0
0
0
0
0
1
0.076923
false
0
0.269231
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
9f08003aeaa8031b3780b693184f29506dd94f39
634
py
Python
migrations/versions/3fe295f88b49_.py
EricSchles/investigator
88b4215667b24483efbd9aba690e7c3a231539f6
[ "MIT" ]
17
2016-06-17T23:42:42.000Z
2020-06-29T19:17:09.000Z
migrations/versions/3fe295f88b49_.py
EricSchles/investigator
88b4215667b24483efbd9aba690e7c3a231539f6
[ "MIT" ]
6
2016-06-16T18:46:45.000Z
2017-07-02T16:41:45.000Z
migrations/versions/3fe295f88b49_.py
EricSchles/investigator
88b4215667b24483efbd9aba690e7c3a231539f6
[ "MIT" ]
11
2016-06-21T21:17:46.000Z
2020-06-30T05:25:36.000Z
"""empty message Revision ID: 3fe295f88b49 Revises: 907bade2acf1 Create Date: 2017-05-23 15:06:40.128657 """ # revision identifiers, used by Alembic. revision = '3fe295f88b49' down_revision = '907bade2acf1' from alembic import op import sqlalchemy as sa def upgrade(): # ### commands auto generated by Alembic ...
23.481481
87
0.694006
80
634
5.3875
0.5875
0.062645
0.097448
0.106729
0.204176
0.204176
0.204176
0.204176
0
0
0
0.087452
0.170347
634
26
88
24.384615
0.731939
0.4653
0
0
0
0
0.231788
0
0
0
0
0
0
1
0.25
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
1
0
0
0
0
0
0
0
1
9f085ce02f28aef0b1c7ea16f1fd47d0c2730891
2,053
py
Python
swagger_server/controllers/bill_controller.py
BlockChainProj/Server
d0ecc25146c9cc987861b9b3fd0473e975865bb7
[ "MIT" ]
null
null
null
swagger_server/controllers/bill_controller.py
BlockChainProj/Server
d0ecc25146c9cc987861b9b3fd0473e975865bb7
[ "MIT" ]
null
null
null
swagger_server/controllers/bill_controller.py
BlockChainProj/Server
d0ecc25146c9cc987861b9b3fd0473e975865bb7
[ "MIT" ]
null
null
null
import connexion import six from swagger_server.models.bill_list import BillList # noqa: E501 from swagger_server import util from client import bcosclient as bcos import json from client.datatype_parser import DatatypeParser from client.common import transaction_common # #找到abi文件 # def default_abi_file(contractn...
31.584615
121
0.715051
240
2,053
5.866667
0.395833
0.02983
0.024148
0.028409
0.080966
0.051136
0.051136
0.051136
0.051136
0
0
0.046707
0.186556
2,053
64
122
32.078125
0.796407
0.499756
0
0
0
0
0.13655
0.084189
0
0
0.043121
0
0
1
0.043478
false
0
0.347826
0
0.478261
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
1
0
0
0
0
1
9f08b75d36a9d33cd574cf93abd2c6e9f072616b
5,531
py
Python
src/the_tale/the_tale/linguistics/migrations/0001_initial.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
1
2020-04-02T11:51:20.000Z
2020-04-02T11:51:20.000Z
src/the_tale/the_tale/linguistics/migrations/0001_initial.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/linguistics/migrations/0001_initial.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models, migrations import rels.django import django.db.models.deletion from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migr...
48.946903
231
0.590309
539
5,531
5.890538
0.215213
0.033071
0.051969
0.047244
0.660472
0.615118
0.538583
0.455433
0.428032
0.389606
0
0.04797
0.265052
5,531
112
232
49.383929
0.733087
0.003797
0
0.504762
0
0.019048
0.167393
0.06772
0
0
0
0
0
1
0
false
0
0.038095
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f08da1b252077f73e7d95a8c812bb528e37fbec
1,197
py
Python
exec_analyze.py
hibibol/PriLog_web
d15a8111424e3b3b5bd8d786ef8bb8949c9c8d90
[ "MIT" ]
null
null
null
exec_analyze.py
hibibol/PriLog_web
d15a8111424e3b3b5bd8d786ef8bb8949c9c8d90
[ "MIT" ]
null
null
null
exec_analyze.py
hibibol/PriLog_web
d15a8111424e3b3b5bd8d786ef8bb8949c9c8d90
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import analyze as al import common as cm import app as ap def do_analyze(): # 変数不足時は終了 if not sys.argv[1]: return youtube_url = sys.argv[1] # ID部分の取り出し youtube_id = al.get_youtube_id(youtube_url) if not youtube_id: return queue_path = a...
25.468085
128
0.674185
169
1,197
4.455621
0.372781
0.10757
0.058433
0.039841
0.345286
0.289509
0.223108
0.111554
0.111554
0.111554
0
0.01197
0.232247
1,197
46
129
26.021739
0.807399
0.077694
0
0.25
0
0
0.007299
0
0
0
0
0
0
1
0.035714
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f09f3b54f59153ab1824409e91b4c34b9e4168e
857
py
Python
scrubcam/lora.py
icr-ctl/scrubcam
4ee1b20d2b68558ccd6ab408eae12e467079f25e
[ "MIT" ]
2
2021-11-18T17:02:26.000Z
2022-01-18T18:53:45.000Z
scrubcam/lora.py
icr-ctl/scrubcam
4ee1b20d2b68558ccd6ab408eae12e467079f25e
[ "MIT" ]
8
2021-11-07T20:44:21.000Z
2022-03-11T23:41:11.000Z
scrubcam/lora.py
icr-ctl/scrubcam
4ee1b20d2b68558ccd6ab408eae12e467079f25e
[ "MIT" ]
null
null
null
import busio from digitalio import DigitalInOut import board import adafruit_rfm9x class LoRaSender(): """Manages sending messages on LoRa radio Specifically interfaces with the RFM9x module that we are currently connecting to the ScrubCam as part of the Adafruit Radio+OLED Bonnet. """ def ...
24.485714
68
0.631272
113
857
4.681416
0.548673
0.05104
0.041588
0
0
0
0
0
0
0
0
0.0272
0.270712
857
34
69
25.205882
0.8192
0.322054
0
0
0
0
0.039216
0
0
0
0
0
0
1
0.142857
false
0
0.285714
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
9f0b5e38de3ec452d91acd08493b31ff6bf47813
4,130
py
Python
Chessnut/variant/moves4p.py
redfox-gx/Chessnut
a9e2cf97193713dfeb36be799e44461abfb8600d
[ "Unlicense" ]
null
null
null
Chessnut/variant/moves4p.py
redfox-gx/Chessnut
a9e2cf97193713dfeb36be799e44461abfb8600d
[ "Unlicense" ]
null
null
null
Chessnut/variant/moves4p.py
redfox-gx/Chessnut
a9e2cf97193713dfeb36be799e44461abfb8600d
[ "Unlicense" ]
null
null
null
""" Generates and returns a dictionary containing the superset of (i.e., all) legal moves on a four player chessboard. """ from math import atan2 from copy import deepcopy row_size = 14 raster_size = row_size * row_size DIRECTIONS = [(1, 0), (1, 1), (0, 1), (-1, 1), # straight lines (-1, 0), (-1, -1), ...
37.545455
102
0.530024
687
4,130
3.09607
0.299854
0.013164
0.026328
0.039492
0.173954
0.138693
0.118007
0.09591
0.06488
0.06488
0
0.089505
0.310169
4,130
109
103
37.889908
0.657073
0.23632
0
0
1
0
0.016489
0
0
0
0
0
0
1
0.015625
false
0
0.03125
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9f0cb8deae5b4ddff9e533d2eb1bff8765df92fd
719
py
Python
src/toil/test/docs/scripts/tutorial_managing.py
jeffrey856/toil
2447cece3b0fae6f103322b3d9e4ff3bd7a9f7bf
[ "Apache-2.0" ]
null
null
null
src/toil/test/docs/scripts/tutorial_managing.py
jeffrey856/toil
2447cece3b0fae6f103322b3d9e4ff3bd7a9f7bf
[ "Apache-2.0" ]
null
null
null
src/toil/test/docs/scripts/tutorial_managing.py
jeffrey856/toil
2447cece3b0fae6f103322b3d9e4ff3bd7a9f7bf
[ "Apache-2.0" ]
null
null
null
from toil.common import Toil from toil.job import Job class LocalFileStoreJob(Job): def run(self, fileStore): # self.TempDir will always contain the name of a directory within the allocated disk space reserved for the job scratchDir = self.tempDir # Similarly create a temporary file. ...
32.681818
119
0.702364
91
719
5.461538
0.637363
0.032193
0
0
0
0
0
0
0
0
0
0.003565
0.21975
719
22
120
32.681818
0.882353
0.33936
0
0
0
0
0.078556
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f0e6d94143fc7d74f115a60ca4ceb0ad9baa180
2,527
py
Python
PTO-yelp/LM/dataloaders/yelp.py
LegendTianjin/Point-Then-Operate
a6b0818343bc34c468738ab91ecea89dd03a9535
[ "Apache-2.0" ]
50
2019-06-06T05:30:32.000Z
2021-11-18T07:24:36.000Z
PTO-yelp/LM/dataloaders/yelp.py
lancopku/Point-Then-Operate
1c04ec326b52fc65f97f5610a6f16f6e938d583e
[ "Apache-2.0" ]
2
2019-08-30T09:49:26.000Z
2020-01-17T04:20:53.000Z
PTO-yelp/LM/dataloaders/yelp.py
ChenWu98/Point-Then-Operate
a6b0818343bc34c468738ab91ecea89dd03a9535
[ "Apache-2.0" ]
7
2019-06-17T06:20:47.000Z
2020-10-26T03:19:44.000Z
from torch.utils import data import torch import os from collections import defaultdict import numpy as np from utils.vocab import Vocabulary, build_vocab import random from nltk import word_tokenize from LM.lm_config import Config config = Config() class Yelp(object): """The Yelp dataset.""" def __init__(s...
31.987342
100
0.574594
344
2,527
4.159884
0.369186
0.050314
0.067086
0.023061
0.051712
0.018169
0
0
0
0
0
0.008909
0.289276
2,527
79
101
31.987342
0.787862
0.139691
0
0.035088
0
0
0.058306
0
0
0
0
0
0
1
0.070175
false
0.017544
0.157895
0
0.298246
0.035088
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f0f96d2aabdded6e0c0f1238414633dcb1bdc2c
770
py
Python
spug_api/apps/account/models.py
lucasaytt/arena_platform
16a8c682e71d90b62c746da126cafc8e6444fe5f
[ "MIT" ]
null
null
null
spug_api/apps/account/models.py
lucasaytt/arena_platform
16a8c682e71d90b62c746da126cafc8e6444fe5f
[ "MIT" ]
null
null
null
spug_api/apps/account/models.py
lucasaytt/arena_platform
16a8c682e71d90b62c746da126cafc8e6444fe5f
[ "MIT" ]
null
null
null
from public import db from libs.model import ModelMixin from sqlalchemy import text, func from flask_login import UserMixin, login_manager class User(db.Model, ModelMixin, UserMixin): __tablename__ = 'account_users' id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(50), unique=T...
42.777778
110
0.724675
106
770
5.09434
0.490566
0.118519
0.148148
0.062963
0.218519
0.12963
0.12963
0
0
0
0
0.006221
0.164935
770
18
111
42.777778
0.833593
0
0
0
0
0
0.085603
0
0
0
0
0
0
1
0
false
0
0.266667
0
0.933333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f1188116527b153204f675fd8c1236c5b715be8
295
py
Python
qatrack/contacts/models.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
20
2021-03-11T18:37:32.000Z
2022-03-23T19:38:07.000Z
qatrack/contacts/models.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
75
2021-02-12T02:37:33.000Z
2022-03-29T20:56:16.000Z
qatrack/contacts/models.py
randlet/qatrackplus-ci
ba11d39a07382b11394aaffd0df692b4ddc6239b
[ "MIT" ]
5
2021-04-07T15:46:53.000Z
2021-09-18T16:55:00.000Z
from django.db import models class Contact(models.Model): """basic contact number""" name = models.CharField(max_length=256) number = models.CharField(max_length=256) description = models.TextField() def __str__(self): return "%s : %s " % (self.name, self.number)
24.583333
52
0.667797
37
295
5.162162
0.594595
0.157068
0.188482
0.251309
0.282723
0
0
0
0
0
0
0.025424
0.2
295
11
53
26.818182
0.783898
0.067797
0
0
0
0
0.02974
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
4
9f1197dd664a9ad2b1d58438a66a2af11118261c
511,100
py
Python
pypsexec/paexec.py
0v3rride/pypsexec_mod
71f047744d3b416aa7ddb83cee06ef165984fb05
[ "MIT" ]
null
null
null
pypsexec/paexec.py
0v3rride/pypsexec_mod
71f047744d3b416aa7ddb83cee06ef165984fb05
[ "MIT" ]
null
null
null
pypsexec/paexec.py
0v3rride/pypsexec_mod
71f047744d3b416aa7ddb83cee06ef165984fb05
[ "MIT" ]
null
null
null
import binascii import os import struct from smbprotocol.structure import BoolField, BytesField, EnumField, \ IntField, ListField, Structure, StructureField, DateTimeField from pypsexec.exceptions import PAExecException try: from collections import OrderedDict except ImportError: # pragma: no cover from...
77.322239
83
0.757498
8,045
511,100
48.082039
0.749161
0.165581
0.241748
0.3135
0.08924
0.086826
0.085906
0.084298
0.081438
0.081035
0
0.714486
0.203015
511,100
6,609
84
77.333939
0.235141
0.007672
0
0.097746
0
0
0.74855
0.746344
0
0
0.000118
0
0
1
0.002162
false
0.000618
0.001235
0
0.007412
0
0
0
1
null
0
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
9f11e57396b78a9599a9ab2485f5ab7774dae8f3
1,026
py
Python
elicit/all.py
pycopia/elicit
132eb9198b7dd7fc445567d9e98910f466b72fbc
[ "Apache-2.0" ]
3
2017-06-10T13:27:50.000Z
2020-03-19T19:28:26.000Z
elicit/all.py
pycopia/elicit
132eb9198b7dd7fc445567d9e98910f466b72fbc
[ "Apache-2.0" ]
1
2019-01-10T19:15:57.000Z
2019-01-10T19:15:57.000Z
elicit/all.py
kdart/elicit
132eb9198b7dd7fc445567d9e98910f466b72fbc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software ...
30.176471
74
0.746589
156
1,026
4.910256
0.596154
0.104439
0.109661
0.156658
0
0
0
0
0
0
0
0.009467
0.176413
1,026
33
75
31.090909
0.897041
0.753411
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
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
1
0
1
0
1
0
0
3
9f125cf42ff10da630e5eecfb8fb74a032107eeb
60,224
py
Python
ocr-20191230/python/alibabacloud_ocr20191230/client.py
atptro/alibabacloud-sdk
65d4a000e4f4059b58ca1bc3d032853aedef4f3f
[ "Apache-2.0" ]
null
null
null
ocr-20191230/python/alibabacloud_ocr20191230/client.py
atptro/alibabacloud-sdk
65d4a000e4f4059b58ca1bc3d032853aedef4f3f
[ "Apache-2.0" ]
null
null
null
ocr-20191230/python/alibabacloud_ocr20191230/client.py
atptro/alibabacloud-sdk
65d4a000e4f4059b58ca1bc3d032853aedef4f3f
[ "Apache-2.0" ]
null
null
null
# This file is auto-generated, don't edit it. Thanks. from alibabacloud_tea_rpc.client import Client as RPCClient from alibabacloud_ocr20191230 import models as ocr_20191230_models from alibabacloud_tea_util import models as util_models from alibabacloud_tea_util.client import Client as UtilClient from alibabacloud_tea...
45.624242
195
0.680808
6,573
60,224
5.815914
0.036361
0.075337
0.04604
0.035576
0.817882
0.799309
0.799309
0.799309
0.797112
0.797112
0
0.014515
0.240386
60,224
1,319
196
45.658832
0.821125
0.029075
0
0.696785
1
0
0.03614
0.011984
0
0
0
0
0
1
0.038228
false
0.013901
0.011295
0
0.089487
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
9f1288ee8767cffcef0b23927489a5e97f96cee5
1,639
py
Python
adjust_n_clusters.py
Ting-Wu0701/Clustering-Ensemble
2583fcfbacce6c2ffb1314802cdba7a73d5f6271
[ "Apache-2.0" ]
2
2021-03-16T01:41:57.000Z
2021-04-17T01:44:39.000Z
adjust_n_clusters.py
Ting-Wu0701/Clustering-Ensemble
2583fcfbacce6c2ffb1314802cdba7a73d5f6271
[ "Apache-2.0" ]
null
null
null
adjust_n_clusters.py
Ting-Wu0701/Clustering-Ensemble
2583fcfbacce6c2ffb1314802cdba7a73d5f6271
[ "Apache-2.0" ]
1
2021-03-16T01:41:28.000Z
2021-03-16T01:41:28.000Z
""" 当我们获取的预结构的聚类数大于实际的聚类数时,我们需要对预结构中的簇进行调整(合并) 此处我们选用k-means算法进行簇与簇之间的合并 """ from sklearn.cluster import KMeans import numpy as np import pandas as pd # 假设簇核集样本为第1、3、4、5个样本 core = [0, 2, 3, 4] # 假设簇环集样本为第2、6个样本 halo = [1, 5] # 如果能将halo中的样本的类别标记为[1,2]则说明标记对了 # 假设核结构为【1 3 4 2】 core_structure = [1, 3, 4, 2] pre_structur...
24.102941
77
0.680903
254
1,639
4.330709
0.452756
0.009091
0.029091
0.010909
0.023636
0
0
0
0
0
0
0.09104
0.155583
1,639
67
78
24.462687
0.703757
0.201342
0
0.044444
0
0
0.011646
0
0
0
0
0
0
1
0.022222
false
0
0.066667
0
0.111111
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f1319577b2a421c92d2899f666ae92db73d23c5
22,408
py
Python
tube_network/src/migration.py
rpatil524/examples
44d195615dba4fc320e041e1e552333e114b24a7
[ "Apache-2.0" ]
77
2018-09-26T20:28:27.000Z
2021-04-17T14:38:52.000Z
tube_network/src/migration.py
rpatil524/examples
44d195615dba4fc320e041e1e552333e114b24a7
[ "Apache-2.0" ]
53
2018-09-17T20:02:10.000Z
2021-01-21T16:29:29.000Z
tube_network/src/migration.py
rpatil524/examples
44d195615dba4fc320e041e1e552333e114b24a7
[ "Apache-2.0" ]
44
2018-10-08T11:53:03.000Z
2021-02-06T13:23:41.000Z
# Copyright 2021 Vaticle # # 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, soft...
50.696833
171
0.315691
1,325
22,408
5.149434
0.181887
0.038693
0.034882
0.023743
0.345596
0.271435
0.228638
0.228638
0.215448
0.185695
0
0.007371
0.60648
22,408
441
172
50.811791
0.766387
0.059354
0
0.323288
0
0
0.099981
0.003144
0
0
0
0
0
1
0.027397
false
0
0.019178
0.00274
0.057534
0.013699
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9f146a59cdcde0391b1020058df14e6cdb41cb50
7,545
py
Python
helper.py
szilaga/investment_ml
c27fe06239dc7c56fabb876c950d60378fe9c8b2
[ "RSA-MD" ]
null
null
null
helper.py
szilaga/investment_ml
c27fe06239dc7c56fabb876c950d60378fe9c8b2
[ "RSA-MD" ]
null
null
null
helper.py
szilaga/investment_ml
c27fe06239dc7c56fabb876c950d60378fe9c8b2
[ "RSA-MD" ]
null
null
null
from pandas_datareader import data as pdr import pandas as pd import numpy as np from datetime import timedelta from get_all_tickers import get_tickers as gt import ipywidgets as widgets import requests class Helper: def getParameters(self): forecast = widgets.Text( value='7;14;30', ...
29.244186
111
0.570577
918
7,545
4.570806
0.252723
0.021449
0.014299
0.012393
0.223785
0.202574
0.1847
0.166587
0.142755
0.119161
0
0.013757
0.315971
7,545
257
112
29.357977
0.799264
0.261498
0
0.158879
0
0
0.072209
0
0
0
0
0
0
1
0.149533
false
0
0.065421
0
0.373832
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f151973048e707c76e9ac8951cabfb49a90e449
10,592
py
Python
pos_tagger.py
aldoram5/NLP-Utils
41b8f78c91ba32e44caace0f04142ffef96021e2
[ "MIT" ]
null
null
null
pos_tagger.py
aldoram5/NLP-Utils
41b8f78c91ba32e44caace0f04142ffef96021e2
[ "MIT" ]
null
null
null
pos_tagger.py
aldoram5/NLP-Utils
41b8f78c91ba32e44caace0f04142ffef96021e2
[ "MIT" ]
null
null
null
# # This Python script is a combination of various scripts and a pickle found at # https://github.com/sloria/textblob-aptagger which are licensed under # the MIT License https://github.com/sloria/textblob-aptagger/blob/dev/LICENSE # for those scripts: Copyright 2013 Matthew Honnibal # # more in detail explanation of ho...
36.524138
110
0.57213
1,352
10,592
4.411982
0.247041
0.008718
0.005029
0.011065
0.18575
0.146521
0.126739
0.103269
0.091199
0.091199
0
0.014044
0.314294
10,592
289
111
36.650519
0.807242
0.270204
0
0.122905
0
0
0.031744
0
0
0
0
0
0
1
0.106145
false
0
0.03352
0.005587
0.268156
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f1523e42854f087d407db9159bffbe7608c4089
3,374
py
Python
cocoa_folder/mutualfriends/scripts/generate_inverse_lexicon_data.py
s-akanksha/DialoGraph_ICLR21
d5bbc10b2623c9f84d21a99a5e54e7dcfdfb1bcc
[ "Apache-2.0" ]
12
2021-03-17T05:15:33.000Z
2022-01-19T06:09:21.000Z
cocoa_folder/mutualfriends/scripts/generate_inverse_lexicon_data.py
s-akanksha/DialoGraph_ICLR21
d5bbc10b2623c9f84d21a99a5e54e7dcfdfb1bcc
[ "Apache-2.0" ]
2
2021-05-25T07:28:46.000Z
2022-02-11T01:54:43.000Z
cocoa_folder/mutualfriends/scripts/generate_inverse_lexicon_data.py
s-akanksha/DialoGraph_ICLR21
d5bbc10b2623c9f84d21a99a5e54e7dcfdfb1bcc
[ "Apache-2.0" ]
4
2021-10-11T03:39:38.000Z
2022-02-01T23:58:50.000Z
import argparse import json import re import sys sys.path.append("..") from src.core.lexicon import Lexicon, add_lexicon_arguments from src.core.schema import Schema from stop_words import get_stop_words from src.core.event import Event from src.model.vocab import is_entity from src.model.preprocess import Preprocesso...
36.27957
134
0.61144
414
3,374
4.838164
0.299517
0.020969
0.050924
0.011982
0.07988
0
0
0
0
0
0
0.002406
0.260818
3,374
92
135
36.673913
0.800722
0.025489
0
0
0
0.032258
0.14022
0.031736
0
0
0
0
0
1
0
false
0
0.177419
0
0.177419
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f1760aab4578c4b1571e99fb2068552c3c6cb17
562
py
Python
forms/job.py
jakobadam/iftek-paas
787f1baf881f934a8073702605c2aa9253a17650
[ "MIT" ]
null
null
null
forms/job.py
jakobadam/iftek-paas
787f1baf881f934a8073702605c2aa9253a17650
[ "MIT" ]
null
null
null
forms/job.py
jakobadam/iftek-paas
787f1baf881f934a8073702605c2aa9253a17650
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2011, Cabo Communications A/S # All rights reserved. # import models from flaskext import wtf class JobForm(wtf.Form): url = wtf.html5.URLField('URL', [ wtf.Required('Hmm, husk du skal at indtaste en URL'), wtf.URL('Hey, URLen er ikke gyldig!') ]) ...
21.615385
77
0.631673
80
562
4.4375
0.7625
0.050704
0
0
0
0
0
0
0
0
0
0.027778
0.231317
562
25
78
22.48
0.793981
0.153025
0
0.166667
0
0
0.323404
0
0
0
0
0
0
1
0
false
0
0.166667
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
9f17ef59602730d8c0bb836e44c516b50c316c8c
5,157
py
Python
src/ufoRig.py
kateliev/ufoRig
bd32cf868cc28c822f1351e9c509853e8a0ec7c7
[ "MIT" ]
null
null
null
src/ufoRig.py
kateliev/ufoRig
bd32cf868cc28c822f1351e9c509853e8a0ec7c7
[ "MIT" ]
null
null
null
src/ufoRig.py
kateliev/ufoRig
bd32cf868cc28c822f1351e9c509853e8a0ec7c7
[ "MIT" ]
null
null
null
# SCRIPT: ufoRig # DESCRIPTION: A GUI based low level tool for editing # DESCRIPTION: Unified Font Object (.UFO) files # ----------------------------------------------------------- # (C) Vassil Kateliev, 2021 (http://www.kateliev.com) # ------------------------------------------------------------ # https://github.c...
35.321918
124
0.674229
665
5,157
4.959399
0.258647
0.019709
0.033354
0.019406
0.317768
0.291086
0.274409
0.244391
0.216495
0.216495
0
0.008859
0.124491
5,157
145
125
35.565517
0.721595
0.165406
0
0.151163
0
0
0.064999
0
0
0
0
0
0
1
0.05814
false
0
0.27907
0
0.348837
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f194ca308c8c0faee1fc38bb910852f3f743fc1
7,290
py
Python
covid_flask_app.py
Spooks075/course-work-1
ae2c90930ba313ff05917df0684fc732896ad038
[ "MIT" ]
null
null
null
covid_flask_app.py
Spooks075/course-work-1
ae2c90930ba313ff05917df0684fc732896ad038
[ "MIT" ]
null
null
null
covid_flask_app.py
Spooks075/course-work-1
ae2c90930ba313ff05917df0684fc732896ad038
[ "MIT" ]
null
null
null
''' Description: displays covid data for local and national, covid news articles with links to those articles and scheduled updates. Takes input data and then uses it to schedule updates. updates data when scheduled. ''' import json import sched import time import logging from typing import Callabl...
28.700787
94
0.631962
944
7,290
4.791314
0.23411
0.029847
0.030953
0.021225
0.130223
0.068981
0.031395
0.017245
0.017245
0.017245
0
0.006989
0.2738
7,290
253
95
28.814229
0.847374
0.338683
0
0.115702
0
0
0.148701
0
0
0
0
0
0
1
0.033058
false
0
0.082645
0
0.14876
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f1aaae7e9c44b4e86e4485ef6b9af68555ad619
184
py
Python
demos/19.01.30/10am/problem_3.py
joeparis/CS161-Demos-Winter-19
613a93de9169fa4ee62538ff0ac93a9930b75fef
[ "MIT" ]
null
null
null
demos/19.01.30/10am/problem_3.py
joeparis/CS161-Demos-Winter-19
613a93de9169fa4ee62538ff0ac93a9930b75fef
[ "MIT" ]
null
null
null
demos/19.01.30/10am/problem_3.py
joeparis/CS161-Demos-Winter-19
613a93de9169fa4ee62538ff0ac93a9930b75fef
[ "MIT" ]
null
null
null
user_input = input("Please enter a string ") # length = len(user_input) # print(user_input[length::-1]) # l = "".join(list(reversed(user_input))) # print(l) print(user_input[::-1])
18.4
44
0.668478
28
184
4.214286
0.5
0.381356
0.237288
0
0
0
0
0
0
0
0
0.012422
0.125
184
9
45
20.444444
0.720497
0.559783
0
0
0
0
0.289474
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
9f1ab0c0e4bda659a77a776c2e10f4a4ca0c2b90
10,454
py
Python
benchmarks/bench_cuda.py
abitrolly/numba-benchmark
4bea9c23276fd0399df26452d19f13810a6496c7
[ "BSD-2-Clause" ]
6
2015-10-19T09:18:50.000Z
2021-11-29T10:37:10.000Z
benchmarks/bench_cuda.py
abitrolly/numba-benchmark
4bea9c23276fd0399df26452d19f13810a6496c7
[ "BSD-2-Clause" ]
9
2015-03-03T09:50:56.000Z
2021-10-13T08:34:06.000Z
benchmarks/bench_cuda.py
abitrolly/numba-benchmark
4bea9c23276fd0399df26452d19f13810a6496c7
[ "BSD-2-Clause" ]
7
2015-09-09T17:38:11.000Z
2021-09-24T15:06:19.000Z
""" Benchmarks for the CUDA backend. """ from __future__ import division import math import sys import numpy as np def _jit_setup1(): from numba import cuda, float32, float64 def addmul(x, y, out): i = cuda.threadIdx.x + cuda.blockIdx.x * cuda.blockDim.x if i >= x.shape[0]: ret...
31.969419
92
0.619093
1,471
10,454
4.25085
0.171992
0.070366
0.053734
0.049896
0.361906
0.314249
0.243883
0.189829
0.14537
0.121542
0
0.046962
0.258561
10,454
326
93
32.067485
0.759773
0.076908
0
0.226496
0
0
0
0
0
0
0
0
0.004274
1
0.132479
false
0.004274
0.025641
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
9f1ed6c82dc6d14142fa3136ab7c90abe39d6582
4,256
py
Python
src/app/routers/user.py
Ra-Ni/Conupedia
165d0b43098edcdf1058e244c1751c09e53f741c
[ "MIT" ]
null
null
null
src/app/routers/user.py
Ra-Ni/Conupedia
165d0b43098edcdf1058e244c1751c09e53f741c
[ "MIT" ]
null
null
null
src/app/routers/user.py
Ra-Ni/Conupedia
165d0b43098edcdf1058e244c1751c09e53f741c
[ "MIT" ]
null
null
null
from typing import Optional import httpx import shortuuid from fastapi import Response from starlette import status from starlette.responses import JSONResponse from ..dependencies import core from ..dependencies.models.user import User from ..internals.globals import SSU async def get(id: str): user = User(id=...
30.184397
84
0.577538
492
4,256
4.837398
0.164634
0.083193
0.113445
0.084034
0.704622
0.704622
0.704622
0.704622
0.690336
0.685714
0
0.012333
0.314145
4,256
140
85
30.4
0.803015
0
0
0.625
0
0
0.06297
0
0
0
0
0
0
1
0
false
0.071429
0.080357
0
0.169643
0.008929
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
5
9f203eaaafb7603c5af08d8251f48283e8b44249
2,161
py
Python
tests/item_test.py
eraustud/supermarket_exercise
33ea35875f07694fa982c475bded6da1319b0624
[ "Apache-2.0" ]
null
null
null
tests/item_test.py
eraustud/supermarket_exercise
33ea35875f07694fa982c475bded6da1319b0624
[ "Apache-2.0" ]
null
null
null
tests/item_test.py
eraustud/supermarket_exercise
33ea35875f07694fa982c475bded6da1319b0624
[ "Apache-2.0" ]
null
null
null
import unittest from src.supermarket import * from test_helpers import * import sqlite3 class TestItem(unittest.TestCase): def setup(self): self.database_path = 'example.db' init_empty_database(self.database_path) database.Database.database_path = self.database_path def teardown(self)...
33.246154
102
0.65988
245
2,161
5.689796
0.318367
0.060258
0.068867
0.034433
0.197991
0.162123
0.162123
0.162123
0.107604
0.107604
0
0.021818
0.236465
2,161
65
103
33.246154
0.82303
0.147154
0
0.26087
0
0
0.089227
0
0
0
0
0
0.173913
1
0.108696
false
0
0.086957
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f20ad820250a8e83bcc8a69473c0a9c8790307e
361
py
Python
cpp-tensorflow-2.3.1/Docker/Dockerfile.py
p-geon/DockerBonsai
1b1deafe228438e5ce3b4a41026aef4748f98573
[ "MIT" ]
1
2021-11-28T13:27:41.000Z
2021-11-28T13:27:41.000Z
docker-cpp_tensorflow-2.3.1/Docker/Dockerfile.py
p-geon/DockerBonsai
1b1deafe228438e5ce3b4a41026aef4748f98573
[ "MIT" ]
8
2021-02-19T12:54:22.000Z
2021-02-25T02:32:23.000Z
docker-cpp_tensorflow-2.3.1/Docker/Dockerfile.py
p-geon/DockerBonsai
1b1deafe228438e5ce3b4a41026aef4748f98573
[ "MIT" ]
null
null
null
FROM tensorflow/tensorflow:2.3.1-gpu #ENV version_tf=2.4.0 ENV version_tf=2.3.1 RUN apt-get update && apt-get install -y --quiet --no-install-recommends \ vim \ wget # python RUN pip install -q --upgrade pip COPY ./requirements.txt ./ RUN pip install -r requirements.txt -q WORKDIR /work #ENTRYPOINT ["/bin/bash"] ...
24.066667
74
0.717452
60
361
4.283333
0.633333
0.015564
0.023346
0.101167
0
0
0
0
0
0
0
0.028754
0.132964
361
15
75
24.066667
0.792332
0.141274
0
0
0
0
0.071429
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9f2138c601fef6d54882fdc4e74d4f8bba613f99
1,515
py
Python
backend-flask-sqlalchemy/exemplo_tech_store/test.py
santiagosilas/dweb20192-vuejs
d6b322c075682247ca2e1eb70c9c64d27d741fa2
[ "MIT" ]
1
2020-11-12T15:27:20.000Z
2020-11-12T15:27:20.000Z
cap_07_flask_sqlalchemy/exemplo_tech_store/test.py
santiagosilas/BasicoFlaskDevWeb
de7b952427e453b365c84a7f26882174d5cb13ae
[ "MIT" ]
36
2019-12-05T10:39:07.000Z
2022-02-27T10:34:55.000Z
backend-flask-sqlalchemy/exemplo_tech_store/test.py
santiagosilas/dweb20192-vuejs
d6b322c075682247ca2e1eb70c9c64d27d741fa2
[ "MIT" ]
null
null
null
from TechApp import db, models from TechApp.models import Loja import unittest class TechAppTestCase(unittest.TestCase): def setUp(self): # create the database db.drop_all() db.create_all() def test_obter_lojas(self): db.session.add(Loja('Macavi')) db.session.add(Loja('Casas Bahia'))...
30.918367
66
0.631683
194
1,515
4.78866
0.273196
0.067815
0.051668
0.068891
0.304629
0.304629
0.198062
0.198062
0.124865
0.124865
0
0.006867
0.231023
1,515
49
67
30.918367
0.790558
0.012541
0
0.275
0
0
0.055518
0
0
0
0
0
0.2
1
0.125
false
0
0.075
0
0.225
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f2385e221d060983e4faaa9a41fbc655123a8e5
2,263
py
Python
core/regex.py
evandrocoan/Javatar
b38d4f9d852565d6dcecb236386628b4e56d9d09
[ "MIT" ]
142
2015-01-11T19:43:17.000Z
2021-11-15T11:44:56.000Z
core/regex.py
evandroforks/Javatar
b38d4f9d852565d6dcecb236386628b4e56d9d09
[ "MIT" ]
46
2015-01-02T20:29:37.000Z
2018-09-15T05:12:52.000Z
core/regex.py
evandroforks/Javatar
b38d4f9d852565d6dcecb236386628b4e56d9d09
[ "MIT" ]
25
2015-01-16T01:33:39.000Z
2022-01-07T11:12:43.000Z
import re from .settings import Settings class _RE: """ Regular Expressions wrapper """ @classmethod def instance(cls): if not hasattr(cls, "_instance"): cls._instance = cls() return cls._instance def __init__(self): self.patterns = {} def get(self, ...
28.2875
76
0.596995
260
2,263
5.103846
0.223077
0.14318
0.108515
0.081387
0.508666
0.508666
0.489827
0.415222
0.415222
0.23361
0
0
0.330535
2,263
79
77
28.64557
0.875908
0.382236
0
0.323529
0
0
0.007692
0
0
0
0
0
0
1
0.205882
false
0
0.058824
0.029412
0.588235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
9f25b927331a31d4410e202039b6adfe5e308a0e
14,959
py
Python
src/vision_transformer.py
sail-sg/mugs
7652939078b256dc9aadc09c67d1e310253d49b9
[ "Apache-2.0" ]
7
2022-03-29T09:58:42.000Z
2022-03-31T10:46:09.000Z
src/vision_transformer.py
sail-sg/mugs
7652939078b256dc9aadc09c67d1e310253d49b9
[ "Apache-2.0" ]
null
null
null
src/vision_transformer.py
sail-sg/mugs
7652939078b256dc9aadc09c67d1e310253d49b9
[ "Apache-2.0" ]
1
2022-03-30T07:28:28.000Z
2022-03-30T07:28:28.000Z
# Copyright 2022 Garena Online Private Limited # # 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 agre...
30.404472
95
0.569891
2,035
14,959
3.987715
0.17887
0.028835
0.009612
0.015527
0.278004
0.224769
0.189772
0.167837
0.160444
0.152557
0
0.024812
0.323752
14,959
491
96
30.466395
0.777382
0.145999
0
0.357143
0
0
0.010596
0.00174
0
0
0
0
0.002747
1
0.07967
false
0
0.010989
0.013736
0.178571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f27bf02f4f6f6db10eead707b878e9ab5ae68be
333
py
Python
datetime2.py
ximury/python
8624464e214c74e640d01a83b21c66df8eb7ad8c
[ "Apache-2.0" ]
null
null
null
datetime2.py
ximury/python
8624464e214c74e640d01a83b21c66df8eb7ad8c
[ "Apache-2.0" ]
null
null
null
datetime2.py
ximury/python
8624464e214c74e640d01a83b21c66df8eb7ad8c
[ "Apache-2.0" ]
null
null
null
from datetime import datetime time = datetime.now() print(time, type(time)) print("----------------------") time = str(time) print(time, type(time)) print("----------------------") time = datetime.now() # time = "1618815060" print(time, type(time)) time = time.strftime('%Y-%m-%d %H:%M:%S') print(time, ...
20.8125
42
0.543544
42
333
4.309524
0.357143
0.298343
0.287293
0.375691
0.287293
0.287293
0
0
0
0
0
0.035211
0.147147
333
15
43
22.2
0.602113
0.057057
0
0.727273
0
0
0.205387
0.148148
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.545455
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
9f284f75c05306f2abe0175c1df6648a3036c43a
155
py
Python
run.py
ganggas95/E-Wisata
fb66fc7d3d4cc5a45ad9acea42fb306140a6449f
[ "Apache-2.0" ]
null
null
null
run.py
ganggas95/E-Wisata
fb66fc7d3d4cc5a45ad9acea42fb306140a6449f
[ "Apache-2.0" ]
null
null
null
run.py
ganggas95/E-Wisata
fb66fc7d3d4cc5a45ad9acea42fb306140a6449f
[ "Apache-2.0" ]
1
2020-02-12T09:21:15.000Z
2020-02-12T09:21:15.000Z
from app import app if __name__ == '__main__': app.run( app.config['HOST'], app.config['PORT'], app.config['DEBUG'] )
17.222222
27
0.516129
18
155
4
0.611111
0.375
0
0
0
0
0
0
0
0
0
0
0.322581
155
9
28
17.222222
0.685714
0
0
0
0
0
0.134615
0
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
9f28f7fa6f337b07ffe36d2b5fe9306bf0454618
3,024
py
Python
btc_payment/views.py
davit-gh/ecommerce
2dd2f31fdb4e037e5a5daaa380ee11ed5a83d8e9
[ "MIT" ]
22
2018-05-11T03:03:25.000Z
2022-02-24T17:11:20.000Z
btc_payment/views.py
morshedmasud/ecommerce
e3798f116b26f24a1a4a40dc3bd8497ba1539de1
[ "MIT" ]
14
2018-05-14T02:08:57.000Z
2022-03-11T23:20:39.000Z
btc_payment/views.py
morshedmasud/ecommerce
e3798f116b26f24a1a4a40dc3bd8497ba1539de1
[ "MIT" ]
5
2018-11-11T11:17:11.000Z
2022-01-17T13:11:24.000Z
import datetime, pytz from django.shortcuts import get_object_or_404 from django.http import HttpResponse from django.http import HttpResponseServerError from django.http import HttpResponseBadRequest from django.urls import reverse from blockchain.blockexplorer import get_address from blockchain.v2.receive import rece...
35.576471
80
0.700066
356
3,024
5.741573
0.325843
0.074853
0.031311
0.035225
0.127202
0.062622
0
0
0
0
0
0.005098
0.221561
3,024
84
81
36
0.863212
0.091601
0
0.147059
0
0
0.057395
0
0
0
0
0
0
1
0.044118
false
0
0.161765
0
0.308824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f2b59f05d5a6b83fb7fd5d45a4705ada5d9bf11
21,194
py
Python
tandyberg/tandylayout.py
callumsnowden/tandyberg
45515f102ab5ac983778787ea07658f8c7d214c4
[ "MIT" ]
11
2020-10-11T03:16:04.000Z
2021-11-26T09:12:46.000Z
tandyberg/tandylayout.py
callumsnowden/tandyberg
45515f102ab5ac983778787ea07658f8c7d214c4
[ "MIT" ]
1
2021-02-19T12:52:27.000Z
2021-12-26T17:59:53.000Z
tandyberg/tandylayout.py
callumsnowden/tandyberg
45515f102ab5ac983778787ea07658f8c7d214c4
[ "MIT" ]
3
2021-01-26T00:06:34.000Z
2021-06-01T20:25:43.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'tandylayout.ui' # # Created by: PyQt5 UI code generator 5.15.0 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, ...
55.192708
100
0.701991
2,093
21,194
7.063545
0.117535
0.097673
0.093209
0.044643
0.315544
0.082116
0.059321
0.042817
0.029424
0.021983
0
0.024593
0.176937
21,194
383
101
55.336815
0.822632
0.013023
0
0.0271
1
0
0.086705
0
0
0
0
0
0
1
0.00542
false
0
0.00271
0
0.01084
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9f2c444d7136697719e38631114d31c237cd7861
656
py
Python
python-algorithm/leetcode/problem_599.py
isudox/leetcode-solution
60085e64deaf396a171367affc94b18114565c43
[ "MIT" ]
5
2017-06-11T09:19:34.000Z
2019-01-16T16:58:31.000Z
python-algorithm/leetcode/problem_599.py
isudox/leetcode-solution
60085e64deaf396a171367affc94b18114565c43
[ "MIT" ]
null
null
null
python-algorithm/leetcode/problem_599.py
isudox/leetcode-solution
60085e64deaf396a171367affc94b18114565c43
[ "MIT" ]
1
2019-03-02T15:50:43.000Z
2019-03-02T15:50:43.000Z
"""599. Minimum Index Sum of Two Lists https://leetcode.com/problems/minimum-index-sum-of-two-lists/ """ from typing import List class Solution: def findRestaurant(self, list1: List[str], list2: List[str]) -> List[str]: ans = [] idx_sum = 2000 store = dict() for i, v in enumerate(l...
28.521739
78
0.501524
85
656
3.776471
0.447059
0.074766
0.084112
0.105919
0.255452
0.155763
0
0
0
0
0
0.027569
0.391768
656
22
79
29.818182
0.776942
0.147866
0
0
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f2d23c2c06b9bee99b5654eed887dc647598cdb
431
py
Python
Dataset/Leetcode/train/58/642.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/58/642.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/58/642.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, s: str) -> int: n = len(s) start, end = 0, -1 for i in range(n): if i == 0 and s[i] != " ": start = i if s[i] != " " and s[i-1] == " ": start = i if s[i] == " " and s[i-1] != " ": ...
26.9375
45
0.306265
60
431
2.2
0.35
0.090909
0.151515
0.136364
0.242424
0.242424
0.242424
0.242424
0.242424
0
0
0.039216
0.526682
431
15
46
28.733333
0.607843
0
0
0.142857
0
0
0.013953
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9f2e1f309463ac4d74344bf610a616e724a8db09
13,793
py
Python
backmarker/migrations/0001_initial.py
jmp/backmarker
e12a094d92dec798ad10aa8890fabe84f946c303
[ "MIT" ]
null
null
null
backmarker/migrations/0001_initial.py
jmp/backmarker
e12a094d92dec798ad10aa8890fabe84f946c303
[ "MIT" ]
null
null
null
backmarker/migrations/0001_initial.py
jmp/backmarker
e12a094d92dec798ad10aa8890fabe84f946c303
[ "MIT" ]
null
null
null
# Generated by Django 3.2.2 on 2021-05-15 15:45 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name="Circuit", fields=[ ...
36.297368
83
0.38418
878
13,793
5.916856
0.113895
0.075072
0.090087
0.120116
0.805775
0.782291
0.768816
0.715111
0.707603
0.707603
0
0.013854
0.508084
13,793
379
84
36.39314
0.751805
0.003263
0
0.763441
1
0
0.079441
0.006402
0
0
0
0
0
1
0
false
0
0.005376
0
0.016129
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
1
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
9f2e620e596f0649ecd172fa63f3f53ec411bfad
159
py
Python
URI_online/Problema_1038_lanche.py
BrunoIaneczek/Estudo-na-linguagem-Python
88100056f6ddf6b5df759ad92300f867d9052047
[ "MIT" ]
1
2021-10-01T01:28:14.000Z
2021-10-01T01:28:14.000Z
URI_online/Problema_1038_lanche.py
BrunoIaneczek/Estudo-na-linguagem-Python
88100056f6ddf6b5df759ad92300f867d9052047
[ "MIT" ]
null
null
null
URI_online/Problema_1038_lanche.py
BrunoIaneczek/Estudo-na-linguagem-Python
88100056f6ddf6b5df759ad92300f867d9052047
[ "MIT" ]
null
null
null
precos = [0,4.00,4.50,5.00,2.00,1.50] codigo, quantidade = input().split(' ') valor = precos[int(codigo)] * float(quantidade) print(f'Total: R$ {valor:.2f}')
26.5
47
0.641509
28
159
3.642857
0.714286
0
0
0
0
0
0
0
0
0
0
0.119718
0.106918
159
5
48
31.8
0.598592
0
0
0
0
0
0.139241
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9f2f7ca7d678d2afb51d07068b7522de5b5d1b3d
1,009
py
Python
blackcat/test/test_post_processor.py
pluralsight/BlackCat
b071fef95f9d8162696556bb25ceb5b208d150cf
[ "Apache-2.0" ]
4
2019-11-21T20:35:39.000Z
2022-01-11T18:40:55.000Z
blackcat/test/test_post_processor.py
Plazmaz/BlackCat
b071fef95f9d8162696556bb25ceb5b208d150cf
[ "Apache-2.0" ]
null
null
null
blackcat/test/test_post_processor.py
Plazmaz/BlackCat
b071fef95f9d8162696556bb25ceb5b208d150cf
[ "Apache-2.0" ]
2
2020-03-06T19:42:20.000Z
2021-06-29T12:14:24.000Z
from blackcat.postprocessing.post_processor import BlackCatPostProcessor from blackcat.postprocessing.steps.trim_to_relevant_data import PostStepFlattenRelevantData class TestPostProcessor(object): TEST_OBJ = { 'node': { 'securityVulnerability': {'test-field': True}, 'dismisser': '...
36.035714
95
0.611497
91
1,009
6.604396
0.604396
0.039933
0.086522
0.073211
0.093178
0
0
0
0
0
0
0.002703
0.266601
1,009
27
96
37.37037
0.809459
0
0
0.083333
0
0
0.301288
0.042616
0
0
0
0
0.041667
1
0.041667
false
0
0.083333
0
0.208333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f3087562e326eb4b0b0cc4627694d7b9845ddcb
70
py
Python
stores/__init__.py
galaddirie/django-cassiopeia
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
[ "MIT" ]
13
2020-07-08T17:23:18.000Z
2022-02-13T09:19:42.000Z
stores/__init__.py
galaddirie/django-cassiopeia
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
[ "MIT" ]
16
2020-07-19T22:14:20.000Z
2022-03-24T02:57:45.000Z
stores/__init__.py
galaddirie/django-cassiopeia
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
[ "MIT" ]
6
2020-07-21T01:37:54.000Z
2022-01-01T19:28:54.000Z
from .django_cache import DjangoCache from .omnistone import Omnistone
35
37
0.871429
9
70
6.666667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.1
70
2
38
35
0.952381
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
9f3169c25b4b95c77a42d2fd7ae104ae75bfa518
480
py
Python
app/forms.py
EddyCodeIt/SPA_Project_2016_Data_Rep-Quering
1a23e14ecf41117aaaeedb277d6c5b17a03bab56
[ "Apache-2.0" ]
null
null
null
app/forms.py
EddyCodeIt/SPA_Project_2016_Data_Rep-Quering
1a23e14ecf41117aaaeedb277d6c5b17a03bab56
[ "Apache-2.0" ]
null
null
null
app/forms.py
EddyCodeIt/SPA_Project_2016_Data_Rep-Quering
1a23e14ecf41117aaaeedb277d6c5b17a03bab56
[ "Apache-2.0" ]
null
null
null
#from flask_wtf import FlaskForm from wtforms import Form, StringField, PasswordField, validators class RegistrationForm(Form): username = StringField('Username', [validators.Length(min = 4, max = 20), validators.Required()], id = "input_fields") password = PasswordField('New Password', [validators.DataRequire...
60
159
0.74375
52
480
6.788462
0.615385
0.05949
0.110482
0
0
0
0
0
0
0
0
0.007143
0.125
480
7
160
68.571429
0.833333
0.064583
0
0
0
0
0.21875
0
0
0
0
0
0
1
0
false
0.6
0.2
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
3
9f330abfc4ce7d2b28f1acc8b042f2e7489fb0bb
1,881
py
Python
foreshadow/concrete/internals/tfidf.py
adithyabsk/foreshadow
ca2e927c396ae0d61923b287d6e32e142f3ba96f
[ "Apache-2.0" ]
25
2018-07-26T17:30:31.000Z
2021-02-23T22:54:01.000Z
foreshadow/concrete/internals/tfidf.py
adithyabsk/foreshadow
ca2e927c396ae0d61923b287d6e32e142f3ba96f
[ "Apache-2.0" ]
150
2018-11-02T18:09:12.000Z
2020-05-15T01:01:35.000Z
foreshadow/concrete/internals/tfidf.py
adithyabsk/foreshadow
ca2e927c396ae0d61923b287d6e32e142f3ba96f
[ "Apache-2.0" ]
1
2019-02-20T22:24:00.000Z
2019-02-20T22:24:00.000Z
"""FixedTfidfVectorizer.""" import numpy as np from sklearn.feature_extraction.text import ( TfidfVectorizer as SklearnTfidfVectorizer, VectorizerMixin, ) from sklearn.utils import check_array from foreshadow.base import BaseEstimator from foreshadow.wrapper import pandas_wrap @pandas_wrap class FixedTfidfV...
23.5125
77
0.599149
202
1,881
5.460396
0.351485
0.049864
0.047144
0.032638
0.220308
0.196736
0.196736
0.196736
0.196736
0.196736
0
0
0.310473
1,881
79
78
23.810127
0.850424
0.267411
0
0.3
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
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
9f351210093652493854833e64bf843a7091de0b
771
py
Python
base/middleware.py
mhhabib/Django-custom-registration
97c30d25e1efc08e515dcad1b02f084eb1996894
[ "MIT" ]
null
null
null
base/middleware.py
mhhabib/Django-custom-registration
97c30d25e1efc08e515dcad1b02f084eb1996894
[ "MIT" ]
null
null
null
base/middleware.py
mhhabib/Django-custom-registration
97c30d25e1efc08e515dcad1b02f084eb1996894
[ "MIT" ]
null
null
null
from django.contrib.auth import logout import datetime from settings import SESSION_IDLE_TIMEOUT class SessionIdleTimeout(object): def __init__(self, get_response): self.get_response = get_response def __call__(self, request): if request.user.is_authenticated: current_datetime = d...
35.045455
75
0.652399
83
771
5.722892
0.445783
0.092632
0.094737
0.096842
0.117895
0
0
0
0
0
0
0
0.274968
771
21
76
36.714286
0.849732
0
0
0
0
0
0.081712
0
0
0
0
0
0
1
0.117647
false
0
0.176471
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f3782e517f1dea43774318f5bb70c4ddf3ecdf0
3,828
py
Python
Line-1/main.py
Manu-Fraile/Network-Representation-Learning
d84414c144cc6146d406e606ed5be8120d4244a9
[ "MIT" ]
null
null
null
Line-1/main.py
Manu-Fraile/Network-Representation-Learning
d84414c144cc6146d406e606ed5be8120d4244a9
[ "MIT" ]
null
null
null
Line-1/main.py
Manu-Fraile/Network-Representation-Learning
d84414c144cc6146d406e606ed5be8120d4244a9
[ "MIT" ]
null
null
null
# Network representation learning with Line algorithm # Author: Sebastian Haslebacher 2021-12-22 import networkx as nx # https://networkx.org/documentation/stable/tutorial.html import numpy as np import random import argparse import pickle class Sampler: """ Maintains data-structure for negative sampling. ...
33.286957
91
0.576019
522
3,828
4.153257
0.300766
0.024908
0.047048
0.016605
0.199262
0.109779
0.090406
0.011993
0
0
0
0.016171
0.289185
3,828
115
92
33.286957
0.780595
0.155695
0
0.075949
0
0
0.138933
0
0
0
0
0
0
1
0.063291
false
0
0.063291
0
0.177215
0.037975
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f384e2e63d619a327ec19ad8701a5dc65afe3e5
777
py
Python
src/main.py
Jogius/devolo-reader
2601b17d9b2dc2ab18756b2dbdc919229544df93
[ "MIT" ]
null
null
null
src/main.py
Jogius/devolo-reader
2601b17d9b2dc2ab18756b2dbdc919229544df93
[ "MIT" ]
null
null
null
src/main.py
Jogius/devolo-reader
2601b17d9b2dc2ab18756b2dbdc919229544df93
[ "MIT" ]
null
null
null
from sys import argv if len(argv) < 3: exit(1) device_id = argv[1] sensor_type = argv[2] import logging import os from dotenv import load_dotenv from devolo_home_control_api.homecontrol import HomeControl from devolo_home_control_api.mydevolo import Mydevolo load_dotenv() logging.disable() mydevolo = Mydevolo(...
21.583333
84
0.76834
114
777
5.017544
0.394737
0.041958
0.038462
0.073427
0.083916
0
0
0
0
0
0
0.008982
0.140283
777
35
85
22.2
0.847305
0
0
0.083333
0
0
0.056628
0
0
0
0
0
0
1
0
false
0.041667
0.25
0
0.25
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f391f0367b52d2be2418d658beed188949eecf8
779
py
Python
setup.py
asanka9/singlish
0ebed2a0524f2b8e206e2a61eaec18d70d6e3086
[ "MIT" ]
null
null
null
setup.py
asanka9/singlish
0ebed2a0524f2b8e206e2a61eaec18d70d6e3086
[ "MIT" ]
null
null
null
setup.py
asanka9/singlish
0ebed2a0524f2b8e206e2a61eaec18d70d6e3086
[ "MIT" ]
null
null
null
import setuptools classifiers = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Education', 'Operating System :: Microsoft :: Windows :: Windows 10', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3' ] with open('README.md', 'r') as fh: long_descri...
26.862069
59
0.686778
87
779
6.045977
0.724138
0.114068
0.072243
0.114068
0
0
0
0
0
0
0
0.017107
0.174583
779
29
60
26.862069
0.800933
0.038511
0
0
0
0
0.430481
0
0
0
0
0
0
1
0
false
0
0.043478
0
0.043478
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f3933a542bbcfcc42bbaad796882f545f62d83a
1,399
py
Python
orders/models/orders.py
julianarchila/ecommerce-django-api
d0665745c2a16dc8bc1acb54ead66f69da129271
[ "MIT" ]
null
null
null
orders/models/orders.py
julianarchila/ecommerce-django-api
d0665745c2a16dc8bc1acb54ead66f69da129271
[ "MIT" ]
null
null
null
orders/models/orders.py
julianarchila/ecommerce-django-api
d0665745c2a16dc8bc1acb54ead66f69da129271
[ "MIT" ]
null
null
null
""" Order model. """ # Django from django.db import models class Order(models.Model): # Model b """ Order model. """ # User information user = models.ForeignKey("users.User", on_delete=models.CASCADE, related_name="orders") first_name = models.CharField(max_length=100) last_name = models.Char...
29.145833
92
0.692638
171
1,399
5.502924
0.444444
0.111583
0.1339
0.178533
0.277365
0.1339
0
0
0
0
0
0.023873
0.191565
1,399
47
93
29.765957
0.808134
0.092924
0
0
0
0
0.074699
0
0
0
0
0
0
1
0.038462
false
0
0.038462
0.038462
0.807692
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
9f3aee08921868b3c16d3ab5f75aec2bc6c2c29f
1,424
py
Python
CreateScopes.py
InsightSSG/CiscoSecureWorkload
075403f2b2688f2216fa76889ad2e60d6b228e07
[ "Unlicense" ]
null
null
null
CreateScopes.py
InsightSSG/CiscoSecureWorkload
075403f2b2688f2216fa76889ad2e60d6b228e07
[ "Unlicense" ]
null
null
null
CreateScopes.py
InsightSSG/CiscoSecureWorkload
075403f2b2688f2216fa76889ad2e60d6b228e07
[ "Unlicense" ]
1
2022-02-09T14:17:17.000Z
2022-02-09T14:17:17.000Z
import json from csv import reader from tetpyclient import RestClient #Tetration IP address API_ENDPOINT="https://x.x.x.x" csvName="apps.csv" restclient = RestClient(API_ENDPOINT, credentials_file='credentials.json', verify=False) #Scope ID's that are used most Frequently, the ID can be found in the GUI by clicking th...
40.685714
145
0.639747
205
1,424
4.356098
0.473171
0.033595
0.006719
0.026876
0.073908
0.073908
0.073908
0.073908
0.073908
0.073908
0
0.02027
0.272472
1,424
34
146
41.882353
0.841699
0.391854
0
0
0
0
0.171967
0.028269
0
0
0
0
0
1
0
false
0
0.130435
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f3b55ac7f32bd3ddaf3293cdb9606d38fbb2474
2,893
py
Python
hamgr/hamgr/logger.py
platform9/pf9-ha
7d64f9fe6b72fb4c1e5ed5d23e372a62c9e218a8
[ "Apache-2.0" ]
11
2016-09-06T09:59:29.000Z
2021-10-02T07:24:07.000Z
hamgr/hamgr/logger.py
platform9/pf9-ha
7d64f9fe6b72fb4c1e5ed5d23e372a62c9e218a8
[ "Apache-2.0" ]
5
2017-10-16T06:47:14.000Z
2020-07-06T07:20:13.000Z
hamgr/hamgr/logger.py
platform9/pf9-ha
7d64f9fe6b72fb4c1e5ed5d23e372a62c9e218a8
[ "Apache-2.0" ]
3
2016-09-01T06:20:51.000Z
2017-10-16T02:27:07.000Z
# Copyright (c) 2019 Platform9 Systems 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 ...
38.065789
88
0.665054
389
2,893
4.799486
0.375321
0.057847
0.044992
0.032137
0.06481
0.02571
0
0
0
0
0
0.004117
0.244383
2,893
75
89
38.573333
0.849954
0.26132
0
0
0
0
0.104717
0
0
0
0
0
0
1
0.02
false
0
0.18
0
0.22
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f3fe129f4caca377cee59996a7e8818c5d8030b
2,440
py
Python
tveebot_organizer/filter.py
tveebot/organizer
8c0aca7e22a34f91968f961cfc0e5195b69a7242
[ "MIT" ]
null
null
null
tveebot_organizer/filter.py
tveebot/organizer
8c0aca7e22a34f91968f961cfc0e5195b69a7242
[ "MIT" ]
null
null
null
tveebot_organizer/filter.py
tveebot/organizer
8c0aca7e22a34f91968f961cfc0e5195b69a7242
[ "MIT" ]
null
null
null
from pathlib import Path from typing import Optional class Filter: """ The filter is one of the sub-components of the *Organizer*. An organizer is associated with a single filter. The organizer relies on the filter to filter out files that do not correspond to episode files. Thus, it calls the filter ...
39.354839
97
0.635246
346
2,440
4.419075
0.343931
0.093525
0.045782
0.015697
0.141923
0.060824
0.060824
0.060824
0
0
0
0.001753
0.29877
2,440
61
98
40
0.891876
0.544672
0
0.181818
0
0
0.068536
0
0
0
0
0
0
1
0.090909
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
9f40be08084a7777ee0f686ac1b38e4ced24077a
3,243
py
Python
ooobuild/lo/text/text_column.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/text/text_column.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/text/text_column.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
28.955357
141
0.626272
396
3,243
4.984848
0.388889
0.030395
0.025329
0.035461
0.12614
0.083587
0.045593
0.045593
0.045593
0.045593
0
0.009354
0.274746
3,243
111
142
29.216216
0.829932
0.407956
0
0.068182
0
0
0.085662
0.034022
0
0
0
0
0
1
0.181818
false
0
0.045455
0
0.431818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f40cf84457f15ced75ad819eccacbe7de3900ca
12,805
py
Python
venv/lib/python3.8/site-packages/spaceone/api/monitoring/plugin/event_pb2.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/spaceone/api/monitoring/plugin/event_pb2.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/spaceone/api/monitoring/plugin/event_pb2.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: spaceone/api/monitoring/plugin/event.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _r...
43.260135
1,277
0.764467
1,634
12,805
5.672583
0.122399
0.048549
0.079944
0.093214
0.688316
0.66361
0.627899
0.545798
0.523573
0.506635
0
0.035116
0.114877
12,805
295
1,278
43.40678
0.782689
0.037173
0
0.596958
1
0.003802
0.220689
0.185693
0
0
0
0
0
1
0
false
0
0.022814
0
0.022814
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9f41f73600157cb06a7b8994ef68c50d5f1ec0c3
6,783
py
Python
GPy/testing/link_function_tests.py
PAC-Bayesian/GPy
7fe76385dc832de7cf9e4ce37832902c4d35593f
[ "BSD-3-Clause" ]
9
2019-06-16T01:18:52.000Z
2021-11-03T15:43:55.000Z
GPy/testing/link_function_tests.py
PAC-Bayesian/GPy
7fe76385dc832de7cf9e4ce37832902c4d35593f
[ "BSD-3-Clause" ]
3
2020-09-09T06:12:51.000Z
2021-06-01T23:46:18.000Z
GPy/testing/link_function_tests.py
PAC-Bayesian/GPy
7fe76385dc832de7cf9e4ce37832902c4d35593f
[ "BSD-3-Clause" ]
5
2019-07-07T13:17:44.000Z
2020-09-09T06:06:17.000Z
import numpy as np import scipy from scipy.special import cbrt from GPy.models import GradientChecker _lim_val = np.finfo(np.float64).max _lim_val_exp = np.log(_lim_val) _lim_val_square = np.sqrt(_lim_val) _lim_val_cube = cbrt(_lim_val) from GPy.likelihoods.link_functions import Identity, Probit, Cloglog, Log, Log_ex_1...
47.433566
115
0.703671
1,018
6,783
4.392927
0.154224
0.043605
0.069767
0.045617
0.745975
0.713104
0.650268
0.613372
0.602191
0.594141
0
0.020704
0.195341
6,783
142
116
47.767606
0.798644
0.093027
0
0.394495
0
0
0.004235
0
0
0
0
0.007042
0.284404
1
0.100917
false
0
0.045872
0
0.155963
0.009174
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9f432504ee87116b087e943679129ed7b61d0265
2,510
py
Python
scripts/light_controller.py
dniewinski/fancy_lights
7c505072a641bef71bb27dcb86ac2f292789fe38
[ "MIT" ]
null
null
null
scripts/light_controller.py
dniewinski/fancy_lights
7c505072a641bef71bb27dcb86ac2f292789fe38
[ "MIT" ]
null
null
null
scripts/light_controller.py
dniewinski/fancy_lights
7c505072a641bef71bb27dcb86ac2f292789fe38
[ "MIT" ]
null
null
null
#!/usr/bin/env python from ridgeback_msgs.msg import * from warthog_msgs.msg import * import rospy from std_msgs.msg import * from colour import Color import lightPatterns STATE = "IDLE" def RAINBOWS(): global STATE node = rospy.init_node('platform_indicator_light_controller') rate = rospy.get_param('~u...
31.772152
193
0.623506
321
2,510
4.766355
0.336449
0.041176
0.05098
0.052288
0.239869
0.172549
0.172549
0.152941
0.084967
0.054902
0
0.024691
0.257769
2,510
78
194
32.179487
0.796565
0.024701
0
0.065574
0
0
0.113339
0.014321
0
0
0
0
0
0
null
null
0.016393
0.098361
null
null
0.081967
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9f44061095db981eb348e3387e2f8f47d1cc4b47
1,161
py
Python
platypush/plugins/switch/__init__.py
RichardChiang/platypush
1777ebb0516118cdef20046a92caab496fa7c6cb
[ "MIT" ]
null
null
null
platypush/plugins/switch/__init__.py
RichardChiang/platypush
1777ebb0516118cdef20046a92caab496fa7c6cb
[ "MIT" ]
null
null
null
platypush/plugins/switch/__init__.py
RichardChiang/platypush
1777ebb0516118cdef20046a92caab496fa7c6cb
[ "MIT" ]
null
null
null
from platypush.plugins import Plugin, action class SwitchPlugin(Plugin): """ Abstract class for interacting with switch devices """ def __init__(self, **kwargs): super().__init__(**kwargs) @action def on(self, device, *args, **kwargs): """ Turn the device on """ raise...
25.23913
99
0.577089
132
1,161
5.015152
0.401515
0.054381
0.063444
0.090634
0.208459
0.099698
0.099698
0
0
0
0
0.003704
0.302326
1,161
45
100
25.8
0.81358
0.193798
0
0.307692
0
0
0.006696
0
0
0
0
0
0
1
0.230769
false
0
0.038462
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
1
0
0
0
0
0
0
0
1
9f44dcb36faf44616df69046b0b6b98feb411427
115,957
py
Python
tests/pipeline/test_quarters_estimates.py
Hertz-and-Alpha/zipline-reloaded
eea4a2ccfc03d7fa4946defcb3cdf23469e4ae39
[ "Apache-2.0" ]
254
2021-03-29T16:18:39.000Z
2022-03-31T22:06:01.000Z
tests/pipeline/test_quarters_estimates.py
Hertz-and-Alpha/zipline-reloaded
eea4a2ccfc03d7fa4946defcb3cdf23469e4ae39
[ "Apache-2.0" ]
52
2021-04-06T01:46:24.000Z
2022-03-29T20:54:19.000Z
tests/pipeline/test_quarters_estimates.py
Hertz-and-Alpha/zipline-reloaded
eea4a2ccfc03d7fa4946defcb3cdf23469e4ae39
[ "Apache-2.0" ]
53
2021-04-05T14:43:29.000Z
2022-03-31T22:06:04.000Z
from datetime import timedelta from functools import partial import itertools from parameterized import parameterized import numpy as np from numpy.testing import assert_array_equal, assert_almost_equal import pandas as pd from toolz import merge from zipline.pipeline import SimplePipelineEngine, Pipeline, CustomFacto...
39.121795
88
0.491881
12,330
115,957
4.434144
0.058151
0.076253
0.100415
0.100744
0.694273
0.651565
0.605601
0.578604
0.561557
0.529823
0
0.088953
0.40609
115,957
2,963
89
39.134998
0.704928
0.139491
0
0.596635
0
0
0.062233
0.000518
0
0
0
0.000338
0.012942
1
0.040984
false
0.001726
0.008628
0.016825
0.112597
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f451c92b7dac95c814165b7df6b2c381a7e95ca
1,407
py
Python
python/463.island-perimeter.py
fengbaoheng/leetcode
2b6ec9adea383503acc23622ca5623161f7ca520
[ "MIT" ]
1
2019-04-11T12:34:55.000Z
2019-04-11T12:34:55.000Z
python/463.island-perimeter.py
fengbaoheng/leetcode
2b6ec9adea383503acc23622ca5623161f7ca520
[ "MIT" ]
null
null
null
python/463.island-perimeter.py
fengbaoheng/leetcode
2b6ec9adea383503acc23622ca5623161f7ca520
[ "MIT" ]
null
null
null
# # @lc app=leetcode.cn id=463 lang=python3 # # [463] 岛屿的周长 # # https://leetcode-cn.com/problems/island-perimeter/description/ # # algorithms # Easy (59.76%) # Total Accepted: 5.4K # Total Submissions: 9K # Testcase Example: '[[0,1,0,0],[1,1,1,0],[0,1,0,0],[1,1,0,0]]' # # 给定一个包含 0 和 1 的二维网格地图,其中 1 表示陆地 0 表示水域。 # # ...
22.333333
85
0.510306
211
1,407
3.388626
0.421801
0.027972
0.029371
0.022378
0.137063
0.12028
0.103497
0.083916
0
0
0
0.086681
0.327647
1,407
62
86
22.693548
0.665962
0.394456
0
0
0
0
0
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f45923bf32c54dc1d821bc697cfd96aa4870fdd
3,411
py
Python
MarkerMotionSimulation/simMarkMotionField.py
CMURoboTouch/Taxim
d067cc63892fab8de736a1d3f449d01368b32205
[ "MIT" ]
19
2021-10-04T22:14:23.000Z
2022-03-28T08:12:33.000Z
MarkerMotionSimulation/simMarkMotionField.py
radhen/Taxim
d067cc63892fab8de736a1d3f449d01368b32205
[ "MIT" ]
null
null
null
MarkerMotionSimulation/simMarkMotionField.py
radhen/Taxim
d067cc63892fab8de736a1d3f449d01368b32205
[ "MIT" ]
3
2021-12-23T00:39:20.000Z
2022-02-02T13:22:46.000Z
import matplotlib.pyplot as plt import numpy as np import os from os import path as osp import argparse import sys sys.path.append("..") import Basics.sensorParams as psp from compose.dataLoader import dataLoader from compose.superposition import SuperPosition, fill_blank, cropMap parser = argparse.ArgumentParser() pa...
35.164948
101
0.668426
501
3,411
4.389222
0.313373
0.04502
0.027285
0.0191
0.259209
0.259209
0.16462
0.133242
0.133242
0.103229
0
0.013899
0.177367
3,411
96
102
35.53125
0.769779
0.085605
0
0.089552
0
0
0.084066
0.007168
0
0
0
0
0
1
0.014925
false
0
0.134328
0
0.164179
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f46438dbabd7f10447a58a987f3988c1715e25a
3,285
py
Python
ImageCaptioning/reader.py
GT-AcerZhang/MyImageCaptioningModel
83ccda0fb2b542d5c6693270247435f68a242629
[ "Apache-2.0" ]
2
2020-09-09T16:33:47.000Z
2021-02-27T17:58:52.000Z
ImageCaptioning/reader.py
GT-AcerZhang/MyImageCaptioningModel
83ccda0fb2b542d5c6693270247435f68a242629
[ "Apache-2.0" ]
1
2020-06-12T12:11:59.000Z
2020-06-12T12:11:59.000Z
ImageCaptioning/reader.py
GT-AcerZhang/MyImageCaptioningModel
83ccda0fb2b542d5c6693270247435f68a242629
[ "Apache-2.0" ]
1
2021-03-05T11:07:17.000Z
2021-03-05T11:07:17.000Z
from paddle import fluid import numpy as np import os from PIL import Image import config from tools import hdf5_manager _image_mean = np.array(config.dc['ImageMean'], dtype='float32').reshape((3, 1, 1)) _image_std = np.array(config.dc['ImageStd'], dtype='float32').reshape((3, 1, 1)) def process_image(img): if ...
32.85
108
0.617656
414
3,285
4.710145
0.268116
0.032821
0.020513
0.032821
0.236923
0.236923
0.17641
0.17641
0.16
0.16
0
0.021559
0.265753
3,285
99
109
33.181818
0.786899
0
0
0.177215
0
0
0.086149
0
0
0
0
0
0
1
0.126582
false
0
0.075949
0.012658
0.35443
0.012658
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f497ba3c59044df0c76a764ab13eed689b22d42
2,791
py
Python
getData.py
SamGalanakis/SimilarSummonersGraph
26bb6448e8bbf3c7398fdc3638998d0998cfc25e
[ "MIT" ]
null
null
null
getData.py
SamGalanakis/SimilarSummonersGraph
26bb6448e8bbf3c7398fdc3638998d0998cfc25e
[ "MIT" ]
5
2021-06-08T22:16:33.000Z
2022-03-12T00:46:02.000Z
getData.py
SamGalanakis/SimilarSummonersGraph
26bb6448e8bbf3c7398fdc3638998d0998cfc25e
[ "MIT" ]
null
null
null
import cassiopeia as cass from cassiopeia import Summoner import csv import collections import pandas as pd import random with open("api_key.txt","r") as f: api_key=f.read() #settings settings = cass.get_default_config() settings["pipeline"]["RiotAPI"]["api_key"]=api_key settings["logging"]["print_calls"]=Fal...
32.08046
136
0.640272
289
2,791
6.103806
0.435986
0.034014
0.011905
0.030612
0.124717
0.124717
0.124717
0.124717
0.124717
0.070295
0
0.004453
0.275887
2,791
86
137
32.453488
0.868382
0.10498
0
0.254545
0
0
0.078313
0.018474
0
0
0
0
0
1
0
false
0
0.109091
0
0.109091
0.054545
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f49ad55c69ff7b0e8aedc0c69d313b374a69ec7
8,161
py
Python
src/shell/analysis/type.py
Frky/scat
551c3a155dd3804d78d6efb96ecdace430bd6473
[ "MIT" ]
77
2015-10-10T19:59:47.000Z
2021-12-10T06:59:35.000Z
src/shell/analysis/type.py
Frky/scat
551c3a155dd3804d78d6efb96ecdace430bd6473
[ "MIT" ]
19
2017-02-23T15:59:01.000Z
2017-06-14T11:41:36.000Z
src/shell/analysis/type.py
Frky/scat
551c3a155dd3804d78d6efb96ecdace430bd6473
[ "MIT" ]
12
2015-12-08T17:57:49.000Z
2021-04-16T07:42:31.000Z
#-*- coding: utf-8 -*- from datetime import datetime import re from analysis import Analysis from src.shell.parser.type import TypeLogParser class TypeAnalysis(Analysis): def __init__(self, pgm, logfile, data=None): Analysis.__init__(self, pgm, logfile) self.data = data if data == None: ...
32.256917
111
0.463669
915
8,161
3.981421
0.159563
0.00549
0.026352
0.015372
0.228109
0.080977
0.069448
0.03843
0.020313
0
0
0.017754
0.406445
8,161
252
112
32.384921
0.73431
0.008945
0
0.224299
0
0
0.072736
0.004948
0
0
0
0
0
1
0.056075
false
0.004673
0.018692
0
0.168224
0.116822
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9f4c175b8a74c627aeeca1320d7e505c42821ba2
7,771
py
Python
lib/evernote/edam/limits/constants.py
McAlyster/evergraph
44d8485a21a29ab242321c0761258b89ad0bae4d
[ "Apache-2.0", "BSD-2-Clause" ]
131
2015-01-08T17:25:47.000Z
2022-03-25T16:24:04.000Z
lib/evernote/edam/limits/constants.py
McAlyster/evergraph
44d8485a21a29ab242321c0761258b89ad0bae4d
[ "Apache-2.0", "BSD-2-Clause" ]
15
2015-01-09T10:11:41.000Z
2018-11-30T23:15:43.000Z
lib/evernote/edam/limits/constants.py
McAlyster/evergraph
44d8485a21a29ab242321c0761258b89ad0bae4d
[ "Apache-2.0", "BSD-2-Clause" ]
46
2015-01-20T07:18:04.000Z
2021-12-16T06:46:21.000Z
# # Autogenerated by Thrift Compiler # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py:new_style # from thrift.Thrift import TType, TMessageType, TException, TApplicationException from ttypes import * EDAM_ATTRIBUTE_LEN_MIN = 1 EDAM_ATTRIBUTE_LEN_MAX = 4096 EDAM_ATTRIBUTE_RE...
42.697802
553
0.725261
1,338
7,771
3.828102
0.182362
0.014447
0.018743
0.030066
0.28895
0.109723
0.087661
0.084733
0.075361
0.063452
0
0.072664
0.070261
7,771
181
554
42.933702
0.636263
0.016343
0
0.017442
1
0.081395
0.365375
0.309979
0
0
0
0
0
1
0
false
0.017442
0.011628
0
0.011628
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9f4c3bd669ebe4b7d15081f8ab2ae582b7d993d4
1,998
py
Python
home/views.py
Vlad-404/phot-portfolio
ff3fba512645c0781755bf5b6f7cc455f09b3c5b
[ "BSD-Source-Code" ]
1
2021-01-05T15:52:19.000Z
2021-01-05T15:52:19.000Z
home/views.py
Vlad-404/phot-portfolio
ff3fba512645c0781755bf5b6f7cc455f09b3c5b
[ "BSD-Source-Code" ]
null
null
null
home/views.py
Vlad-404/phot-portfolio
ff3fba512645c0781755bf5b6f7cc455f09b3c5b
[ "BSD-Source-Code" ]
1
2021-01-05T18:44:47.000Z
2021-01-05T18:44:47.000Z
from django.shortcuts import render from .models import Categories, SocialMedia from django.contrib import messages from django.core.mail import send_mail from django.conf import settings from django.template.loader import render_to_string # Create your views here. def index(request): media_links = SocialMedia.ob...
32.225806
87
0.608609
212
1,998
5.533019
0.372642
0.084399
0.061381
0.056266
0.252344
0.252344
0.252344
0.185848
0.112532
0.112532
0
0
0.307808
1,998
61
88
32.754098
0.848156
0.087087
0
0.212766
0
0
0.165658
0.047881
0
0
0
0
0
1
0.021277
false
0
0.12766
0
0.191489
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0