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
37ba68fb7f6a88c20de7da3f55c3be19e782456c
27,203
py
Python
preprocess/raven_preprocess/format_parser.py
TwoRavens/raven-metadata-service
9461522219f5ef0f4877f24c8f5923e462bd9557
[ "Apache-2.0" ]
null
null
null
preprocess/raven_preprocess/format_parser.py
TwoRavens/raven-metadata-service
9461522219f5ef0f4877f24c8f5923e462bd9557
[ "Apache-2.0" ]
103
2018-03-13T20:43:59.000Z
2021-02-06T19:27:16.000Z
preprocess/raven_preprocess/format_parser.py
TwoRavens/raven-metadata-service
9461522219f5ef0f4877f24c8f5923e462bd9557
[ "Apache-2.0" ]
1
2019-09-11T22:36:14.000Z
2019-09-11T22:36:14.000Z
from dateutil import parser from dateutil import relativedelta, tz from calendar import monthrange from six import text_type, binary_type, integer_types import datetime import string import collections import time '''Modified _ymd object that support format detection''' class _format_ymd(list): def __init__(self...
38.422316
117
0.396133
2,909
27,203
3.61155
0.111378
0.018275
0.017133
0.007615
0.326195
0.246811
0.194841
0.150771
0.128879
0.125071
0
0.02892
0.502996
27,203
708
118
38.422316
0.748151
0.09113
0
0.376
0
0
0.023551
0
0
0
0
0.001412
0.014
1
0.026
false
0.006
0.016
0.002
0.1
0.006
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
37bb9c548de28b45dc95933c0395c9827f5a0ea9
679
py
Python
top_secret/__init__.py
trym-inc/top-secret
dd5681a682745e2fedc9e80cca99445d143d18e9
[ "MIT" ]
null
null
null
top_secret/__init__.py
trym-inc/top-secret
dd5681a682745e2fedc9e80cca99445d143d18e9
[ "MIT" ]
null
null
null
top_secret/__init__.py
trym-inc/top-secret
dd5681a682745e2fedc9e80cca99445d143d18e9
[ "MIT" ]
null
null
null
from ._vault import Vault from ._vault import vault from .exceptions import SecretMissingError from .exceptions import CastError from .exceptions import CastHandlerMissingError from .secret_sources import FileSecretSource from .secret_sources import EnvironmentVariableSecretSource from .preprocessors import base64prepr...
25.148148
59
0.792342
55
679
9.6
0.309091
0.079545
0.113636
0.075758
0.083333
0
0
0
0
0
0
0.013769
0.14433
679
26
60
26.115385
0.895009
0
0
0
0
0
0.237113
0.079529
0
0
0
0
0
1
0
false
0
0.454545
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
37bc562d644920ed8a17d263dab7566987d50ba4
1,054
py
Python
scripts/MakeHomList.py
danydoerr/GraphTeams
4b4257275ded8248eb54748b5b833a9d2d21cf37
[ "MIT" ]
null
null
null
scripts/MakeHomList.py
danydoerr/GraphTeams
4b4257275ded8248eb54748b5b833a9d2d21cf37
[ "MIT" ]
1
2018-07-10T17:08:17.000Z
2018-07-10T17:08:17.000Z
scripts/MakeHomList.py
danydoerr/GraphTeams
4b4257275ded8248eb54748b5b833a9d2d21cf37
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter as ADHF import sys import csv def readHomologyFromEnsemble(data): res = list() isHeader = True for line in csv.reader(data, delimiter=','): if isHeader: isHeader = False continue ...
23.422222
76
0.627135
127
1,054
5.102362
0.677165
0
0
0
0
0
0
0
0
0
0
0.006345
0.252372
1,054
44
77
23.954545
0.81599
0
0
0
0
0
0.115505
0
0
0
0
0
0
0
null
null
0
0.12
null
null
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
37c1663589684a97815ff0fdc370dc7704b856ea
7,534
py
Python
warcunpack_ia.py
ArchiveTeam/warctozip
d36bbbaa529d146b5b25252edbcc8f966528d8aa
[ "MIT" ]
5
2016-03-13T01:57:09.000Z
2021-10-02T00:22:10.000Z
warcunpack_ia.py
ArchiveTeam/warctozip
d36bbbaa529d146b5b25252edbcc8f966528d8aa
[ "MIT" ]
1
2021-10-31T05:15:54.000Z
2021-10-31T05:15:54.000Z
warcunpack_ia.py
ArchiveTeam/warctozip
d36bbbaa529d146b5b25252edbcc8f966528d8aa
[ "MIT" ]
2
2016-05-19T12:38:35.000Z
2016-11-27T20:01:24.000Z
#!/usr/bin/env python """warcextract - dump warc record context to directory""" import os import sys import os.path import uuid import mimetypes import shlex from optparse import OptionParser from contextlib import closing from urlparse import urlparse from hanzo.warctools import ArchiveRecord, WarcRecord from hanz...
34.559633
150
0.599151
903
7,534
4.853821
0.229236
0.028747
0.031942
0.013689
0.164043
0.113849
0.07164
0.022815
0.022815
0.022815
0
0.006525
0.288028
7,534
217
151
34.718894
0.810589
0.01699
0
0.141026
0
0
0.089473
0.017023
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
37c285e9e7b95a28d005834ffa6baf7dadf6349d
3,017
py
Python
twilio/rest/resources/task_router/reservations.py
quippp/twilio-python
22b84cdfd19a6b1bde84350053870a7c507af410
[ "MIT" ]
78
2017-08-19T03:46:13.000Z
2020-02-19T04:29:45.000Z
venv/lib/python2.7/site-packages/twilio/rest/resources/task_router/reservations.py
jideobs/twilioAngular
eb95308d287d7dbb72fe516a633199a0af8b76b9
[ "MIT" ]
5
2017-08-21T16:33:08.000Z
2018-06-21T18:37:18.000Z
venv/lib/python2.7/site-packages/twilio/rest/resources/task_router/reservations.py
jideobs/twilioAngular
eb95308d287d7dbb72fe516a633199a0af8b76b9
[ "MIT" ]
13
2017-08-19T16:46:08.000Z
2018-11-05T23:11:34.000Z
from .. import NextGenInstanceResource, NextGenListResource class Reservation(NextGenInstanceResource): """ A Reservation resource. See the `TaskRouter API reference <https://www.twilio.com/docs/taskrouter/tasks#reservation>_` for more information. .. attribute:: sid The unique ID o...
35.081395
77
0.668213
355
3,017
5.63662
0.278873
0.014993
0.029985
0.034983
0.593703
0.585707
0.566717
0.566717
0.534733
0.534733
0
0
0.272788
3,017
85
78
35.494118
0.912033
0.754392
0
0
0
0
0.029056
0
0
0
0
0
0
1
0.222222
false
0
0.111111
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
1
0
0
0
0
0
0
0
1
37c805b450d20bb9b6a8e39a0e4789acb07d84c1
4,677
py
Python
lwtestsuite/bvttest/lwtestssh/nbpipe.py
kbore/pbis-open
a05eb9309269b6402b4d6659bc45961986ea5eab
[ "Apache-2.0" ]
372
2016-10-28T10:50:35.000Z
2022-03-18T19:54:37.000Z
lwtestsuite/bvttest/lwtestssh/nbpipe.py
kbore/pbis-open
a05eb9309269b6402b4d6659bc45961986ea5eab
[ "Apache-2.0" ]
317
2016-11-02T17:41:48.000Z
2021-11-08T20:28:19.000Z
lwtestsuite/bvttest/lwtestssh/nbpipe.py
kenferrara/pbis-open
690c325d947b2bf6fb3032f9d660e41b94aea4be
[ "Apache-2.0" ]
107
2016-11-03T19:25:16.000Z
2022-03-20T21:15:22.000Z
"""Implements a non-blocking pipe class.""" # Since it uses thread rather than select, it is portable to at least # posix and windows environments. # Author: Rasjid Wilcox, copyright (c) 2002 # Ideas taken from the Python 2.2 telnetlib.py library. # # Last modified: 3 August 2002 # Licence: Python 2.2 Style ...
34.902985
88
0.5418
546
4,677
4.571429
0.342491
0.022436
0.019231
0.022837
0.120192
0.048878
0
0
0
0
0
0.017808
0.375668
4,677
133
89
35.165414
0.836986
0.147103
0
0.373626
0
0
0.021612
0
0
0
0
0
0
0
null
null
0
0.054945
null
null
0.021978
0
0
0
null
0
0
0
0
0
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
8061201f4d94b2f8e4d053bc0f34429d3c1312e3
468
py
Python
portfolio/newsletter/admin.py
Tobi-De/portfolio
ef627539cfaf4117abfdea39bab16c90c79f82eb
[ "MIT" ]
null
null
null
portfolio/newsletter/admin.py
Tobi-De/portfolio
ef627539cfaf4117abfdea39bab16c90c79f82eb
[ "MIT" ]
null
null
null
portfolio/newsletter/admin.py
Tobi-De/portfolio
ef627539cfaf4117abfdea39bab16c90c79f82eb
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import News, Subscriber @admin.register(News) class NewsAdmin(admin.ModelAdmin): list_display = ["subject", "key_identifier", "dispatch_date", "modified", "created"] search_fields = ["subject", "message"] @admin.register(Subscriber) class SubscriberAdmin(admin....
27.529412
88
0.711538
50
468
6.52
0.58
0.079755
0.116564
0.159509
0
0
0
0
0
0
0
0
0.136752
468
16
89
29.25
0.806931
0
0
0
0
0
0.235043
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.818182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1
8062ec2ad344155703ac04ea390798756763b6a7
508
py
Python
obsolete/multithreadTest.py
gilesp/quickdrawmcgraw
c85a8c073d7e4681386cab78ef646728f3f66cb0
[ "MIT" ]
null
null
null
obsolete/multithreadTest.py
gilesp/quickdrawmcgraw
c85a8c073d7e4681386cab78ef646728f3f66cb0
[ "MIT" ]
null
null
null
obsolete/multithreadTest.py
gilesp/quickdrawmcgraw
c85a8c073d7e4681386cab78ef646728f3f66cb0
[ "MIT" ]
null
null
null
from time import sleep import threading import stepper import RPi.GPIO as GPIO motor1Pins = [7, 8, 9, 10] motor2Pins = [17, 18, 22, 23] def moveMotor(pins, degrees): sleep(1) GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) motor = stepper.Motor(pins) motor.rpm = 15 motor.moveTo(degrees) motor1...
23.090909
75
0.718504
66
508
5.530303
0.590909
0.082192
0.115068
0.164384
0.186301
0
0
0
0
0
0
0.065574
0.159449
508
21
76
24.190476
0.789227
0
0
0
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0.235294
0
0.294118
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
0
0
0
1
806dd6f207f96deb9deb2732e42a0bf1d99fbad0
993
py
Python
uds/uds_config_tool/SupportedServices/iContainer.py
J3rome/python-uds
fe0f7a9505cb7b87f693ab736d713d7871dff288
[ "MIT" ]
62
2019-02-13T20:26:12.000Z
2022-02-23T19:47:34.000Z
uds/uds_config_tool/SupportedServices/iContainer.py
J3rome/python-uds
fe0f7a9505cb7b87f693ab736d713d7871dff288
[ "MIT" ]
58
2018-07-09T10:58:33.000Z
2022-01-31T20:27:13.000Z
uds/uds_config_tool/SupportedServices/iContainer.py
J3rome/python-uds
fe0f7a9505cb7b87f693ab736d713d7871dff288
[ "MIT" ]
33
2019-03-25T07:30:34.000Z
2022-03-08T12:55:35.000Z
#!/usr/bin/env python __author__ = "Richard Clubb" __copyrights__ = "Copyright 2018, the python-uds project" __credits__ = ["Richard Clubb"] __license__ = "MIT" __maintainer__ = "Richard Clubb" __email__ = "richard.clubb@embeduk.com" __status__ = "Development" from abc import ABCMeta, abstractmethod class iContain...
31.03125
81
0.775428
89
993
8.247191
0.483146
0.065395
0.108992
0.179837
0.438692
0.299728
0
0
0
0
0
0.004723
0.147029
993
31
82
32.032258
0.861865
0.020141
0
0.190476
0
0
0.279835
0.083333
0
0
0
0
0
1
0.190476
false
0
0.047619
0
0.285714
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
0
0
0
1
807550fad07fb0b1cb61d8b299a86f07564ce6d8
1,989
py
Python
tests/test_macros.py
KennethBlaney/rivescript-python
87db472847ab526060afd9a5b8548e9689501a85
[ "MIT" ]
154
2015-02-04T08:41:23.000Z
2022-03-18T19:39:53.000Z
tests/test_macros.py
KennethBlaney/rivescript-python
87db472847ab526060afd9a5b8548e9689501a85
[ "MIT" ]
115
2015-06-14T13:31:07.000Z
2022-02-14T23:02:19.000Z
tests/test_macros.py
KennethBlaney/rivescript-python
87db472847ab526060afd9a5b8548e9689501a85
[ "MIT" ]
87
2015-04-18T23:15:18.000Z
2022-03-18T09:52:06.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import from .config import RiveScriptTestCase class ObjectMacroTests(RiveScriptTestCase): """Test object macros.""" def test_python_objects(self): self.new(""" > object nolang ...
28.014085
68
0.507793
200
1,989
4.99
0.32
0.072144
0.091182
0.051102
0.06012
0.06012
0.06012
0
0
0
0
0.001596
0.370035
1,989
70
69
28.414286
0.794892
0.031171
0
0.156863
0
0
0.714583
0
0
0
0
0
0
1
0.039216
false
0
0.039216
0
0.215686
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
807bc3f452b97032c17869ac27799d53c9ea920a
4,316
py
Python
test/data/test_sampler.py
130ndim/pytorch_geometric
1d3e63ba9ec3e37b6bae1ee5cbf460a1382497c6
[ "MIT" ]
3
2019-05-31T15:23:59.000Z
2021-06-17T09:32:39.000Z
test/data/test_sampler.py
LiJFrank/pytorch_geometric
70e575d69c77f6c234373257dcf02014a290bed8
[ "MIT" ]
null
null
null
test/data/test_sampler.py
LiJFrank/pytorch_geometric
70e575d69c77f6c234373257dcf02014a290bed8
[ "MIT" ]
3
2020-11-06T22:02:43.000Z
2021-01-28T13:52:22.000Z
import sys import random import os.path as osp import shutil import torch from torch.nn.functional import relu from torch_geometric.utils import erdos_renyi_graph from torch_geometric.data import Data, NeighborSampler from torch_geometric.datasets import Planetoid from torch_geometric.nn.conv import SAGEConv import t...
37.530435
79
0.610519
610
4,316
4.116393
0.208197
0.073278
0.026284
0.031063
0.387495
0.312226
0.303067
0.291119
0.264038
0.236161
0
0.03416
0.281047
4,316
114
80
37.859649
0.775056
0
0
0.195652
0
0
0.004866
0
0
0
0
0
0.076087
1
0.054348
false
0.054348
0.119565
0
0.206522
0
0
0
0
null
0
0
0
0
0
0
0
0
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
8083275f4400ee1792daa63652d62cc4e6bfe804
885
py
Python
commandment/alembics/disabled_versions/e47e29a9537c_create_certificate_payload_table.py
pythonModule/commandment
32ca167e44753014857a3f0329c8662f0df97f02
[ "MIT" ]
138
2017-11-21T17:57:59.000Z
2022-02-16T13:08:39.000Z
commandment/alembics/disabled_versions/e47e29a9537c_create_certificate_payload_table.py
pythonModule/commandment
32ca167e44753014857a3f0329c8662f0df97f02
[ "MIT" ]
24
2017-11-12T01:42:13.000Z
2022-02-24T21:53:28.000Z
commandment/alembics/disabled_versions/e47e29a9537c_create_certificate_payload_table.py
pythonModule/commandment
32ca167e44753014857a3f0329c8662f0df97f02
[ "MIT" ]
35
2017-11-15T12:14:44.000Z
2022-02-26T00:44:36.000Z
"""Create certificate_payload table Revision ID: e47e29a9537c Revises: 072fba4a2256 Create Date: 2017-05-19 19:51:20.672688 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e47e29a9537c' down_revision = '072fba4a2256' branch_labels = None depends_on = None de...
27.65625
83
0.629379
95
885
5.747368
0.526316
0.058608
0.076923
0.07326
0.080586
0
0
0
0
0
0
0.077961
0.246328
885
31
84
28.548387
0.74063
0.181921
0
0
0
0
0.171788
0.02933
0
0
0
0
0
1
0.117647
false
0.058824
0.117647
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
1
0
0
0
0
0
1
8091841aebc9cd0d5574ba4316a7afa63efa62f3
12,177
py
Python
doc/test-keys.py
marmidr/TWins
3e29cc9dbe348ffd59f6aad06ddd6ddd3aef91a7
[ "MIT" ]
null
null
null
doc/test-keys.py
marmidr/TWins
3e29cc9dbe348ffd59f6aad06ddd6ddd3aef91a7
[ "MIT" ]
null
null
null
doc/test-keys.py
marmidr/TWins
3e29cc9dbe348ffd59f6aad06ddd6ddd3aef91a7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # https://wiki.bash-hackers.org/scripting/terminalcodes import sys,termios, time ## Font attributes ## # off off = '\x1b[0m' # off default = '\x1b[39m' # default foreground DEFAULT = '\x1b[49m' # default background # bd = '\x1b[1m' # bold ft = '\x1b[2m' # faint st = '\x1b[3m' # standout ul = '\...
31.710938
88
0.302538
1,352
12,177
2.704142
0.256657
0.014223
0.011488
0.0186
0.159737
0.14442
0.126368
0.116521
0.10558
0.065098
0
0.103093
0.450357
12,177
383
89
31.793734
0.44315
0.15595
0
0.080386
0
0
0.214807
0
0
0
0
0
0
1
0.016077
false
0
0.003215
0
0.022508
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
809d031223a45a8f910ee17a551eeb4a17745210
487
py
Python
wildlifecompliance/migrations/0466_inspection_informed_datetime.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
1
2020-12-07T17:12:40.000Z
2020-12-07T17:12:40.000Z
wildlifecompliance/migrations/0466_inspection_informed_datetime.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
14
2020-01-08T08:08:26.000Z
2021-03-19T22:59:46.000Z
wildlifecompliance/migrations/0466_inspection_informed_datetime.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
15
2020-01-08T08:02:28.000Z
2021-11-03T06:48:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2020-04-20 02:34 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wildlifecompliance', '0465_auto_20200415_1227'), ] operations = [ migration...
23.190476
62
0.638604
52
487
5.788462
0.807692
0
0
0
0
0
0
0
0
0
0
0.090164
0.24846
487
20
63
24.35
0.73224
0.13963
0
0
1
0
0.163462
0.055288
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
80a03041f1e4b028ca0717c34d104f8912df41aa
6,258
py
Python
pyshooter/main.py
stes/pyshooter
670748eac8e5c7a29b67dcf95fbd7fd14831b518
[ "MIT", "Unlicense" ]
null
null
null
pyshooter/main.py
stes/pyshooter
670748eac8e5c7a29b67dcf95fbd7fd14831b518
[ "MIT", "Unlicense" ]
null
null
null
pyshooter/main.py
stes/pyshooter
670748eac8e5c7a29b67dcf95fbd7fd14831b518
[ "MIT", "Unlicense" ]
null
null
null
from entities import Tank, Missile, Base from particlesys import ParticleSystem import ai import pygame import sys import copy ''' General constants ''' WIDTH = 800 HEIGHT = 600 ''' ''' psys = ParticleSystem() ''' Key bindings for both players ''' KEY_BINDINGS_1 = {pygame.K_LEFT: "left", ...
35.355932
114
0.606903
851
6,258
4.358402
0.27027
0.026422
0.037746
0.053923
0.249933
0.183338
0.166622
0.150445
0.150445
0.107846
0
0.058487
0.27325
6,258
176
115
35.556818
0.757036
0.034835
0
0.036697
0
0
0.039015
0
0
0
0.007511
0
0
0
null
null
0
0.055046
null
null
0.009174
0
0
0
null
0
0
0
0
0
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
80a12c4987e87f980393646110ccfe0a77ee3cbb
3,340
py
Python
mdnc/utils/tools.py
cainmagi/MDNC
ce5e88b4c4880e8ecdbd82ee1da48335bad20b53
[ "MIT" ]
null
null
null
mdnc/utils/tools.py
cainmagi/MDNC
ce5e88b4c4880e8ecdbd82ee1da48335bad20b53
[ "MIT" ]
null
null
null
mdnc/utils/tools.py
cainmagi/MDNC
ce5e88b4c4880e8ecdbd82ee1da48335bad20b53
[ "MIT" ]
null
null
null
#!python # -*- coding: UTF-8 -*- ''' ################################################################ # Utilities - Tools # @ Modern Deep Network Toolkits for pyTorch # Yuchen Jin @ cainmagi@gmail.com # Requirements: (Pay attention to version) # python 3.5+ # numpy 1.13+ # Useful tools for data analysis and recordi...
30.925926
75
0.577844
398
3,340
4.663317
0.376884
0.041487
0.02694
0.038793
0.052802
0.052802
0
0
0
0
0
0.00251
0.284431
3,340
107
76
31.214953
0.774059
0.414671
0
0.081633
0
0
0.037016
0
0
0
0
0
0
1
0.244898
false
0
0.020408
0.020408
0.44898
0
0
0
0
null
0
0
0
0
0
0
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
80a591d2578be8c5e1c257e2cb19cda394c34edb
4,078
py
Python
azimuth-api.py
kgao/azimuth-ws
2db01323810c8c32f10326b3a6f2db0f08a5328d
[ "BSD-3-Clause" ]
null
null
null
azimuth-api.py
kgao/azimuth-ws
2db01323810c8c32f10326b3a6f2db0f08a5328d
[ "BSD-3-Clause" ]
null
null
null
azimuth-api.py
kgao/azimuth-ws
2db01323810c8c32f10326b3a6f2db0f08a5328d
[ "BSD-3-Clause" ]
null
null
null
from flask import Flask, jsonify, request import azimuth.model_comparison import numpy as np from azure_service import azure_service from azure_service.azure_service import Settings, AzureService app = Flask(__name__) @app.route("/") def home(): return "Welcome to use Azimuth Web Service API!" @app.route("/test...
36.088496
128
0.646395
480
4,078
5.341667
0.21875
0.031201
0.044462
0.050702
0.609594
0.568643
0.546802
0.542902
0.542902
0.542902
0
0.035421
0.22462
4,078
113
129
36.088496
0.775459
0.172143
0
0.488372
0
0
0.117927
0.052412
0
0
0
0
0
0
null
null
0
0.05814
null
null
0.011628
0
0
0
null
0
0
0
0
0
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
80a62709eb8bf8541d7beaf9230346f7765bbac5
939
py
Python
classification/classification.py
nsudhanva/Ohms
50f3308650ca6873b48991b6b862594e65c6b776
[ "MIT" ]
null
null
null
classification/classification.py
nsudhanva/Ohms
50f3308650ca6873b48991b6b862594e65c6b776
[ "MIT" ]
null
null
null
classification/classification.py
nsudhanva/Ohms
50f3308650ca6873b48991b6b862594e65c6b776
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt import os from sklearn.neighbors import KNeighborsClassifier from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler from sklearn.metrics import confusion_matrix from sklearn.metrics import classificatio...
36.115385
132
0.761448
148
939
4.601351
0.493243
0.080764
0.041116
0.070485
0
0
0
0
0
0
0
0.008294
0.101171
939
25
133
37.56
0.798578
0
0
0
0
0
0.090522
0.034079
0
0
0
0
0
1
0
false
0
0.473684
0
0.473684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
80a9421a4d5a2a46406e97fdc0d72056dcd5de4f
756
py
Python
users/urls.py
juliosinaysantos/django-auth-app
3309c68ee354171fd3548564e6e1733c81edb352
[ "MIT" ]
null
null
null
users/urls.py
juliosinaysantos/django-auth-app
3309c68ee354171fd3548564e6e1733c81edb352
[ "MIT" ]
null
null
null
users/urls.py
juliosinaysantos/django-auth-app
3309c68ee354171fd3548564e6e1733c81edb352
[ "MIT" ]
null
null
null
from django.urls import path from users.views import ( login, register, logout, profile, unverified_email, verify_email, password_reset, new_password, settings ) app_name = 'users' urlpatterns = [ path('register/', register, name='register'), path('login/', login, name='log...
28
75
0.662698
86
756
5.72093
0.27907
0.132114
0.065041
0
0
0
0
0
0
0
0
0
0.166667
756
26
76
29.076923
0.780952
0
0
0
0
0
0.280423
0.035714
0
0
0
0
0
1
0
false
0.166667
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
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
80abd6f3fe8befc671d67477788549118eb7bfc2
2,953
py
Python
test/test_maps.py
mancellin/labelled_functions
4b6e1d646fbf5988ea2b522361fd792a7cbacd6f
[ "MIT" ]
1
2021-04-26T04:42:53.000Z
2021-04-26T04:42:53.000Z
test/test_maps.py
mancellin/labelled_functions
4b6e1d646fbf5988ea2b522361fd792a7cbacd6f
[ "MIT" ]
null
null
null
test/test_maps.py
mancellin/labelled_functions
4b6e1d646fbf5988ea2b522361fd792a7cbacd6f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import pytest import numpy as np import pandas as pd import xarray as xr from labelled_functions import label from labelled_functions.maps import * from example_functions import * def test_map_with_several_kind_of_inputs(): length = np.random.rand(5) radius = np.random...
30.760417
122
0.511006
426
2,953
3.382629
0.192488
0.068702
0.014573
0.019431
0.480916
0.342817
0.233865
0.217904
0.142262
0.142262
0
0.030216
0.293938
2,953
95
123
31.084211
0.660911
0.043007
0
0.101449
0
0
0.032979
0
0
0
0
0.010526
0.202899
1
0.072464
false
0
0.101449
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
80abf46212f6da83161663ae23c53b1b475847f2
2,740
py
Python
api/posts/models.py
flatcoke/django-structure
d0a7a7489d2f49c72ec4ec030f87c3942d84bb90
[ "MIT" ]
6
2019-02-27T14:16:48.000Z
2021-08-12T23:47:13.000Z
api/posts/models.py
flatcoke/django-structure
d0a7a7489d2f49c72ec4ec030f87c3942d84bb90
[ "MIT" ]
3
2020-02-11T23:47:05.000Z
2021-06-10T17:46:35.000Z
api/posts/models.py
flatcoke/django-structure
d0a7a7489d2f49c72ec4ec030f87c3942d84bb90
[ "MIT" ]
1
2019-07-24T12:02:02.000Z
2019-07-24T12:02:02.000Z
from django.contrib.contenttypes.fields import GenericForeignKey, \ GenericRelation from django.contrib.contenttypes.models import ContentType from django.db import models as m from django.utils.translation import ugettext_lazy as _ class Post(m.Model): id = m.AutoField(primary_key=True) user = m.ForeignK...
36.052632
80
0.637591
327
2,740
5.082569
0.204893
0.048736
0.057762
0.048135
0.585439
0.568592
0.568592
0.568592
0.568592
0.568592
0
0.002845
0.230292
2,740
75
81
36.533333
0.785206
0
0
0.45
0
0
0.121898
0.016058
0
0
0
0
0
1
0
false
0
0.066667
0
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1
80ccacda9ed617aea8bee5d29e3d10548c5a83e0
9,922
py
Python
functionTerms/membraneTerms.py
XingchengLin/openawsem
a9f155d72e359b76d350e6d4c2ee476410ebe4c6
[ "MIT" ]
1
2020-12-22T02:52:26.000Z
2020-12-22T02:52:26.000Z
functionTerms/membraneTerms.py
XingchengLin/openawsem
a9f155d72e359b76d350e6d4c2ee476410ebe4c6
[ "MIT" ]
null
null
null
functionTerms/membraneTerms.py
XingchengLin/openawsem
a9f155d72e359b76d350e6d4c2ee476410ebe4c6
[ "MIT" ]
null
null
null
from simtk.openmm.app import * from simtk.openmm import * from simtk.unit import * import numpy as np def membrane_term(oa, k=1*kilocalorie_per_mole, k_m=20, z_m=1.5, membrane_center=0*angstrom, forceGroup=24): # k_m in units of nm^-1, z_m in units of nm. # z_m is half of membrane thickness # membrane_cent...
43.327511
180
0.664382
1,526
9,922
4.13827
0.102228
0.07981
0.053207
0.015835
0.718131
0.675693
0.662074
0.643072
0.633888
0.627553
0
0.027542
0.205906
9,922
228
181
43.517544
0.773956
0.266982
0
0.547771
0
0.038217
0.098433
0.065576
0
0
0
0
0
1
0.063694
false
0
0.025478
0
0.165605
0
0
0
0
null
0
0
0
0
0
0
0
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
0
0
0
0
0
0
1
80d633265d624cde24edd4834e3b41df832a67e1
639
py
Python
executables/pickle_dictionary_structure_viewer.py
mjvandermeulen/rpi-automation
0b328cab8876929e46235482d217dc4771dfdc6a
[ "MIT" ]
null
null
null
executables/pickle_dictionary_structure_viewer.py
mjvandermeulen/rpi-automation
0b328cab8876929e46235482d217dc4771dfdc6a
[ "MIT" ]
null
null
null
executables/pickle_dictionary_structure_viewer.py
mjvandermeulen/rpi-automation
0b328cab8876929e46235482d217dc4771dfdc6a
[ "MIT" ]
null
null
null
#!/usr/local/bin/env python3 import sys # TODO: This is more generic than just for temperatures! import temperature.temperature_file_tools try: filename = sys.argv[1] except IndexError: print("please provide filename as first and only argument") else: try: data_gen = temperature.temperature_file_...
29.045455
111
0.674491
83
639
5.036145
0.638554
0.105263
0.124402
0.148325
0
0
0
0
0
0
0
0.00404
0.225352
639
21
112
30.428571
0.840404
0.128326
0
0.125
0
0
0.212613
0
0
0
0
0.047619
0
1
0
false
0
0.125
0
0.125
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
80d85c5b681feaaae88320d1df947e572214adbf
1,905
py
Python
apps/trade/api/views.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
2
2021-08-17T13:29:21.000Z
2021-09-04T05:00:01.000Z
apps/trade/api/views.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
1
2020-07-16T11:22:32.000Z
2020-07-16T11:22:32.000Z
apps/trade/api/views.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
1
2020-09-18T10:41:59.000Z
2020-09-18T10:41:59.000Z
#!usr/bin/env python # -*- coding:utf-8 -*- """ @author: nico @file: views.py @time: 2018/08/16 """ from rest_framework import viewsets, mixins, filters, permissions, status, response from rest_framework.decorators import action from dry_rest_permissions.generics import DRYPermissions, DRYGlobalPer...
30.725806
150
0.733333
179
1,905
7.687151
0.50838
0.032703
0.061047
0.09375
0.12936
0.077035
0.077035
0.077035
0.077035
0
0
0.009566
0.176903
1,905
62
151
30.725806
0.867985
0.112336
0
0
0
0
0.009907
0
0
0
0
0
0
1
0.076923
false
0
0.192308
0
0.807692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1
80dbb36c04a0a7b7f2f8a91aa3f142e7ee6319a9
3,015
py
Python
baxter_ras_interface/scripts/backuplistgame.py
gabrieldiaz94/RAS-Baxter-Interface
7766d012617bffd09e42b6b76ea105fb3fe24481
[ "Apache-2.0" ]
1
2022-03-06T15:47:33.000Z
2022-03-06T15:47:33.000Z
baxter_ras_interface/scripts/backuplistgame.py
willandru/RAS-Baxter-Interface
7766d012617bffd09e42b6b76ea105fb3fe24481
[ "Apache-2.0" ]
null
null
null
baxter_ras_interface/scripts/backuplistgame.py
willandru/RAS-Baxter-Interface
7766d012617bffd09e42b6b76ea105fb3fe24481
[ "Apache-2.0" ]
1
2022-03-06T15:46:37.000Z
2022-03-06T15:46:37.000Z
#!/usr/bin/env python #Reference: the baxter_stocking_stuffer project by students in Northwestern's MSR program - Josh Marino, Sabeen Admani, Andrew Turchina and Chu-Chu Igbokwe #Service provided - ObjLocation service - contains x,y,z coordinates of object in baxter's stationary body frame, whether it is ok to grasp an...
31.736842
187
0.698176
476
3,015
4.317227
0.273109
0.016545
0.026277
0.048175
0.389294
0.389294
0.389294
0.389294
0.389294
0.389294
0
0.030961
0.175124
3,015
94
188
32.074468
0.795336
0.148259
0
0.419753
0
0
0.034348
0
0
0
0
0
0
0
null
null
0
0.135802
null
null
0.012346
0
0
0
null
0
0
0
0
0
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
80ddf655508d2be40c8e5c54e5d6ece64390a188
410
py
Python
smartcar/__init__.py
matteosandrin/python-sdk
45499d5787e4df5e908b6efa52ef95847c7bb6b6
[ "MIT" ]
null
null
null
smartcar/__init__.py
matteosandrin/python-sdk
45499d5787e4df5e908b6efa52ef95847c7bb6b6
[ "MIT" ]
null
null
null
smartcar/__init__.py
matteosandrin/python-sdk
45499d5787e4df5e908b6efa52ef95847c7bb6b6
[ "MIT" ]
null
null
null
__version__ = '1.0.12' from .smartcar import (AuthClient, is_expired, get_user_id, get_vehicle_ids) from .vehicle import Vehicle from .exceptions import ( SmartcarException, ValidationException, AuthenticationException, PermissionException, ResourceNotFoundException, StateException, RateLimitingException, ...
37.272727
76
0.82439
34
410
9.676471
0.794118
0
0
0
0
0
0
0
0
0
0
0.011019
0.114634
410
10
77
41
0.895317
0
0
0
0
0
0.014634
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
80e0a8a07fe90eb98c565503e2de90aa68b3020f
705
py
Python
solution-8.py
NiamhOL/pands-problem-set
5a6a8f465cdda89c37321fa78f27eb869ee8fa03
[ "Apache-2.0" ]
2
2019-03-04T19:56:20.000Z
2019-03-28T15:42:26.000Z
solution-8.py
NiamhOL/pands-problem-set
5a6a8f465cdda89c37321fa78f27eb869ee8fa03
[ "Apache-2.0" ]
null
null
null
solution-8.py
NiamhOL/pands-problem-set
5a6a8f465cdda89c37321fa78f27eb869ee8fa03
[ "Apache-2.0" ]
null
null
null
# Solution to problem # # Student: Niamh O'Leary# #ID: GG00376339 # # Write a program that outputs today's date and time in the format. "Monday, January 19th 2019 at 1.15pm"# import datetime now = datetime.datetime.now() #selects todays date and time# print ("Current date and time: " print (now.s...
29.375
125
0.693617
107
705
4.570093
0.719626
0.042945
0.067485
0.06544
0
0
0
0
0
0
0
0.059353
0.211348
705
23
126
30.652174
0.820144
0
0
0
0
0
0.264706
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.375
0
0
0
null
0
0
0
0
0
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
80e26fef5bf7a0643771413edee2aa1b4c6728e2
1,888
py
Python
013_Klassen in Micropython/Code/quadrat_klasse.py
hobbyelektroniker/Micropython-Grundlagen
65cc6152e2b5b1c1fcb9d5e3150d34bc4cacaa27
[ "Unlicense" ]
1
2021-03-31T18:31:52.000Z
2021-03-31T18:31:52.000Z
013_Klassen in Micropython/Code/quadrat_klasse.py
hobbyelektroniker/Micropython-Grundlagen
65cc6152e2b5b1c1fcb9d5e3150d34bc4cacaa27
[ "Unlicense" ]
null
null
null
013_Klassen in Micropython/Code/quadrat_klasse.py
hobbyelektroniker/Micropython-Grundlagen
65cc6152e2b5b1c1fcb9d5e3150d34bc4cacaa27
[ "Unlicense" ]
1
2020-12-08T08:37:43.000Z
2020-12-08T08:37:43.000Z
''' Objektorientiert Programmierung Eine Klasse für ein Quadrat Version 1.00, 27.02.2021 Der Hobbyelektroniker https://community.hobbyelektroniker.ch https://www.youtube.com/c/HobbyelektronikerCh Der Code kann mit Quellenangabe frei verwendet werden. ''' # Quadrat import math from bewegt_klasse impo...
31.466667
79
0.591631
236
1,888
4.669492
0.411017
0.014519
0.014519
0.018149
0.479129
0.46461
0.46461
0.46461
0.46461
0.399274
0
0.021638
0.314619
1,888
59
80
32
0.829985
0.364407
0
0.714286
0
0
0.008591
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
80e5a8f7d466eabb7b526d7540686453e5296d92
883
py
Python
scrape/pull.py
rmilne/wURF
598f73b196f4f134a093f5f501af1f061584e8e7
[ "MIT" ]
null
null
null
scrape/pull.py
rmilne/wURF
598f73b196f4f134a093f5f501af1f061584e8e7
[ "MIT" ]
null
null
null
scrape/pull.py
rmilne/wURF
598f73b196f4f134a093f5f501af1f061584e8e7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # import urllib2 import datetime import time import os APIKEY = 'c881ae04-2d79-46f4-8857-900a0ba71f5e' URLBASE = 'https://na.api.pvp.net/api/lol/na/v4.1/game/ids?beginDate=' start = datetime.date(year=2015, month=4, day=1) epoch = int(start.strftime("%s")) now = int(time.time()) #print epoch cu...
21.536585
85
0.587769
133
883
3.894737
0.548872
0.034749
0
0
0
0
0
0
0
0
0
0.078788
0.252548
883
40
86
22.075
0.706061
0.078143
0
0
0
0.038462
0.207196
0.044665
0
0
0
0
0
0
null
null
0
0.153846
null
null
0.115385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
80f195beff11afd51fc9bce5c53d58fbb8eb372a
693
py
Python
anchore_manager/util/proc.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
1
2020-06-22T07:27:41.000Z
2020-06-22T07:27:41.000Z
anchore_manager/util/proc.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
4
2020-11-07T00:16:02.000Z
2020-11-08T20:52:06.000Z
anchore_manager/util/proc.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
null
null
null
""" Operations for process things like exit codes, forking etc """ import enum import sys class ExitCode(enum.Enum): """ Exit codes and conditions for consistency in the CLI """ ok = 0 failed = 2 obj_store_failed = 5 # Special value for compat with the object store ops return codes def doe...
15.065217
90
0.600289
86
693
4.802326
0.593023
0.043584
0.072639
0
0
0
0
0
0
0
0
0.006224
0.304473
693
45
91
15.4
0.850622
0.399711
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.111111
false
0.111111
0.111111
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
80f3461d49e869eada5dfdd059bc69af1f558b56
1,079
py
Python
api/python/list_devices/main.py
MvdLande/demos
85d4271ab61c5ff8cef2a3b91785355a935d5aca
[ "MIT" ]
2
2021-11-11T13:47:51.000Z
2021-11-28T03:30:30.000Z
api/python/list_devices/main.py
MvdLande/demos
85d4271ab61c5ff8cef2a3b91785355a935d5aca
[ "MIT" ]
3
2020-05-11T12:18:02.000Z
2022-03-17T13:41:07.000Z
api/python/list_devices/main.py
MvdLande/demos
85d4271ab61c5ff8cef2a3b91785355a935d5aca
[ "MIT" ]
4
2021-08-02T08:42:10.000Z
2022-02-25T23:15:06.000Z
#!/usr/bin/env python # Copyright (C) 2020 Toitware ApS. All rights reserved. import grpc import os import sys import getpass from toit.api import auth_pb2_grpc, auth_pb2, device_pb2_grpc, device_pb2 def create_channel(access_token=None): credentials = grpc.ssl_channel_credentials() if access_token is not None: ...
27.666667
73
0.757183
139
1,079
5.625899
0.460432
0.070332
0.033248
0.061381
0
0
0
0
0
0
0
0.014192
0.151066
1,079
38
74
28.394737
0.83952
0.068582
0
0
0
0
0.088734
0
0
0
0
0
0
1
0.142857
false
0.071429
0.178571
0.035714
0.392857
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
80f9db9ba96db0e2f07ff84b33c7d8eabf660cf2
1,986
py
Python
src/scrape_tweets.py
chef55555/MSDS692
3d31b1aada18d7781ed42983179333132e5a6584
[ "MIT" ]
null
null
null
src/scrape_tweets.py
chef55555/MSDS692
3d31b1aada18d7781ed42983179333132e5a6584
[ "MIT" ]
null
null
null
src/scrape_tweets.py
chef55555/MSDS692
3d31b1aada18d7781ed42983179333132e5a6584
[ "MIT" ]
null
null
null
import tweepy import csv import time consumer_key = 'YOUR_KEY_HERE' consumer_secret = 'YOUR_SECRET_HERE' access_token = 'YOUR_TOKEN_HERE' access_token_secret = 'YOUR_ACCESS_TOKEN_SECRET_HERE' auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_token_secret) api = twe...
38.192308
126
0.723061
292
1,986
4.763699
0.486301
0.047448
0.036664
0.031632
0.159597
0.097771
0.097771
0.097771
0.097771
0.097771
0
0.02442
0.175227
1,986
52
127
38.192308
0.824786
0.325277
0
0.054054
0
0
0.165165
0.021772
0
0
0
0.019231
0
1
0.027027
false
0
0.081081
0
0.108108
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
80fc4ddd97fb95cbb42815223da62558449dfb21
3,753
py
Python
healthtools/tests/nurse.py
DavidLemayian/HealthTools.KE-api
a0848784985adb91cb0107655186fad81febb054
[ "MIT" ]
9
2019-07-05T12:39:30.000Z
2020-10-02T05:20:36.000Z
healthtools/tests/nurse.py
ChrisAchinga/HealthTools.API
3aeac2e95732d876a720b6681f3f251f81025e3f
[ "MIT" ]
49
2017-07-14T12:33:48.000Z
2019-01-13T18:44:53.000Z
healthtools/tests/nurse.py
ChrisAchinga/HealthTools.API
3aeac2e95732d876a720b6681f3f251f81025e3f
[ "MIT" ]
9
2019-10-09T11:12:05.000Z
2021-07-23T23:19:00.000Z
""" This test for nurses end point """ import unittest from healthtools.manage import app from healthtools.search.nurses import get_nurses_from_nc_registry class TestSetup(unittest.TestCase): def setUp(self): self.client = app.test_client() class TestNurseRegistery(TestSetup): """ This tests nurse...
36.086538
95
0.679456
460
3,753
5.367391
0.213043
0.090725
0.063183
0.092345
0.674362
0.643985
0.599433
0.461725
0.353584
0.353584
0
0.005422
0.213696
3,753
103
96
36.436893
0.831244
0.198774
0
0.32
0
0
0.161175
0.030444
0
0
0
0
0.28
1
0.28
false
0
0.06
0
0.42
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0382a0bf6c523947842fd109b2d9bb5a190e9498
7,796
py
Python
data.py
domfarolino/memory-cache-experiments
a84bf2138478396a4f3df8023618bea6690b537a
[ "Apache-2.0" ]
null
null
null
data.py
domfarolino/memory-cache-experiments
a84bf2138478396a4f3df8023618bea6690b537a
[ "Apache-2.0" ]
null
null
null
data.py
domfarolino/memory-cache-experiments
a84bf2138478396a4f3df8023618bea6690b537a
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import sys import csv ########################################### # [HISTOGRAM]: Data for HISTOGRAM event. async_script_histogram_data = {"kLoad": 0, "kUse": 0, "kReload": 0, "kRevalidate": 0} def PlotRevalidationPolicyHistogramData(): x_name = async_script_histog...
28.452555
105
0.68843
1,013
7,796
5.065153
0.168806
0.087897
0.042097
0.032742
0.366205
0.26564
0.190606
0.190606
0.190606
0.184954
0
0.015337
0.163674
7,796
273
106
28.556777
0.771626
0.153412
0
0.276243
0
0
0.084457
0.003854
0
0
0
0
0
0
null
null
0
0.022099
null
null
0.060773
0
0
0
null
0
0
0
0
0
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
038b2ae476e554b9904f92fe273204412a8e43f0
1,143
py
Python
myblog/myblog/models.py
610yilingliu/blog_for_fun
a4e7b93ec1bbdd4722ea1178910b8c967832b6ec
[ "MIT" ]
null
null
null
myblog/myblog/models.py
610yilingliu/blog_for_fun
a4e7b93ec1bbdd4722ea1178910b8c967832b6ec
[ "MIT" ]
7
2021-03-18T22:47:42.000Z
2022-03-12T00:12:00.000Z
myblog/myblog/models.py
610yilingliu/blog_for_fun
a4e7b93ec1bbdd4722ea1178910b8c967832b6ec
[ "MIT" ]
null
null
null
from django.db import models from django.urls import reverse class Category(models.Model): name = models.CharField(max_length = 100,unique=True) def __str__(self): return self.name class Tag(models.Model): name = models.CharField(max_length = 50,unique=True) def __str__(self): ...
27.878049
70
0.694663
145
1,143
5.289655
0.4
0.097784
0.11734
0.156454
0.383312
0.357236
0.357236
0.152542
0.152542
0
0
0.014239
0.201225
1,143
40
71
28.575
0.825849
0.055118
0
0.259259
0
0
0.014856
0
0
0
0
0
0
1
0.185185
false
0
0.074074
0.185185
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
038cf33c1d7fd6155754a4405e0fe8c36ec12927
543
py
Python
rospy-builder/setup.py
timlukins/simple
c1ed66d79167f04e09e17f61cb2f3c0259c24da0
[ "Apache-2.0" ]
null
null
null
rospy-builder/setup.py
timlukins/simple
c1ed66d79167f04e09e17f61cb2f3c0259c24da0
[ "Apache-2.0" ]
null
null
null
rospy-builder/setup.py
timlukins/simple
c1ed66d79167f04e09e17f61cb2f3c0259c24da0
[ "Apache-2.0" ]
null
null
null
from setuptools import setup setup( name="rospy-builder", version="0.2.0", description="rospy package build tool", author="Tamamki Nishino", author_email="otamachan@gmail.com", url="https://rospypi.github.io/simple", packages=["rospy_builder"], install_requires=[ "catkin_pkg", ...
22.625
70
0.581952
55
543
5.618182
0.781818
0.116505
0
0
0
0
0
0
0
0
0
0.017413
0.259669
543
23
71
23.608696
0.751244
0
0
0
0
0
0.421731
0.042357
0
0
0
0
0
1
0
true
0
0.045455
0
0.045455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
038f3d71a5ee7441b570179467e32a175ce1b735
8,174
py
Python
classifier.py
maxvays/TCGA_classifier
ad3b92ac76273e0701e9b41ce2e4aa3688f597a5
[ "MIT" ]
null
null
null
classifier.py
maxvays/TCGA_classifier
ad3b92ac76273e0701e9b41ce2e4aa3688f597a5
[ "MIT" ]
null
null
null
classifier.py
maxvays/TCGA_classifier
ad3b92ac76273e0701e9b41ce2e4aa3688f597a5
[ "MIT" ]
null
null
null
''' Trains TensorFlow DNNClassifier on training examples in TFRecord format, with each training example comprising methylation betas for one aliquot and the 0/1 label. Outputs statistics on the number of input features with non-zero weights in the hidden layer (dnn/hiddenlayer_0/kernel). Upon completion of training, wr...
33.363265
148
0.661488
1,081
8,174
4.774283
0.292322
0.024801
0.027902
0.008719
0.107731
0.073242
0.048828
0.048828
0
0
0
0.024717
0.232811
8,174
244
149
33.5
0.798278
0.036457
0
0.011561
0
0
0.115898
0.02588
0
0
0
0
0
0
null
null
0
0.052023
null
null
0.086705
0
0
0
null
0
0
0
0
0
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
039335152213cd42a81495fdc65184f34dc5e488
510
py
Python
pip_services_runtime/cache/__init__.py
pip-services-archive/pip-services-runtime-python
70eca1ffc44bfdc45c9c65b0ee347fa578368849
[ "MIT" ]
null
null
null
pip_services_runtime/cache/__init__.py
pip-services-archive/pip-services-runtime-python
70eca1ffc44bfdc45c9c65b0ee347fa578368849
[ "MIT" ]
null
null
null
pip_services_runtime/cache/__init__.py
pip-services-archive/pip-services-runtime-python
70eca1ffc44bfdc45c9c65b0ee347fa578368849
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ pip_services_runtime.cache.__init__ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cache module initialization :copyright: Digital Living Software Corp. 2015-2016, see AUTHORS for more details. :license: MIT, see LICENSE for more details. """ __all__ = ['CacheEntry', 'Ab...
26.842105
86
0.67451
51
510
6.54902
0.607843
0.041916
0.083832
0
0
0
0
0
0
0
0
0.021176
0.166667
510
18
87
28.333333
0.764706
0.496078
0
0
0
0
0.195455
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
03949fe3c139236ce23fd812f327cdb38c04a7b6
9,449
py
Python
pymtl3/passes/backends/verilog/translation/structural/VStructuralTranslatorL4.py
pymtl/pymtl3
1cb7ade157a20c8264e777c0992f4751236c085b
[ "BSD-3-Clause" ]
152
2020-06-03T02:34:11.000Z
2022-03-30T04:16:45.000Z
pymtl3/passes/backends/verilog/translation/structural/VStructuralTranslatorL4.py
pymtl/pymtl3
1cb7ade157a20c8264e777c0992f4751236c085b
[ "BSD-3-Clause" ]
33
2020-05-19T15:42:52.000Z
2022-03-03T20:56:41.000Z
pymtl3/passes/backends/verilog/translation/structural/VStructuralTranslatorL4.py
pymtl/pymtl3
1cb7ade157a20c8264e777c0992f4751236c085b
[ "BSD-3-Clause" ]
22
2020-05-18T13:42:05.000Z
2022-03-11T08:37:51.000Z
#========================================================================= # VStructuralTranslatorL4.py #========================================================================= """Provide SystemVerilog structural translator implementation.""" from textwrap import dedent from pymtl3.passes.backends.generic.structura...
40.728448
97
0.610223
1,206
9,449
4.398839
0.164179
0.047502
0.008294
0.028841
0.403393
0.320641
0.280867
0.261451
0.239774
0.219039
0
0.002889
0.230818
9,449
231
98
40.904762
0.727023
0.144566
0
0.228916
0
0
0.115438
0.042583
0
0
0
0
0
1
0.072289
false
0.090361
0.060241
0.03012
0.222892
0
0
0
0
null
0
0
0
0
0
0
0
0
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
03a07eb534129cfd4a3571d4128f4f075810e968
866
py
Python
code/dextrems-independence/rehastim-integration-lib/ems_interface/tools-and-abstractions/sweepdown.py
humancomputerintegration/dextrEMS
7a355ee5138d56998ccc99011e5ad4c26a6fd944
[ "MIT" ]
4
2021-09-30T19:22:36.000Z
2022-01-11T05:20:37.000Z
code/dextrems-pose-precision/rehastim-integration-lib/ems_interface/tools-and-abstractions/sweepdown.py
humancomputerintegration/dextrEMS
7a355ee5138d56998ccc99011e5ad4c26a6fd944
[ "MIT" ]
null
null
null
code/dextrems-pose-precision/rehastim-integration-lib/ems_interface/tools-and-abstractions/sweepdown.py
humancomputerintegration/dextrEMS
7a355ee5138d56998ccc99011e5ad4c26a6fd944
[ "MIT" ]
null
null
null
#!/sr/bin/python # Filename: sweepdown.py import singlepulse import time version = '0.1' def sweepdown(channel,pulse_width,min_amp_val,max_amp_val,slope_decay,delay_val,repetitions,ems): min_val = min_amp_val max_val = max_amp_val slope = slope_decay delay = delay_val reps = re...
33.307692
97
0.569284
115
866
4.078261
0.391304
0.076759
0.059701
0.102345
0.347548
0.275053
0.275053
0.191898
0.191898
0.191898
0
0.033333
0.341801
866
25
98
34.64
0.789474
0.066975
0
0
0
0
0.019876
0
0
0
0
0
0
0
null
null
0
0.105263
null
null
0.105263
0
0
0
null
0
0
0
0
0
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
03a15bc2b5fae16f8bf2447da7c6452fa67788e4
12,718
py
Python
ml/tensorflow/iris/pipeline.py
obulpathi/cloud
17d5f5cf78209868cec42de912fdfa5631283b1e
[ "Apache-2.0" ]
4
2015-10-29T13:15:54.000Z
2016-10-11T13:43:24.000Z
ml/tensorflow/iris/pipeline.py
datalabai/cloud
5f2ef4abb8458f948414d28b4830de74b55a0636
[ "Apache-2.0" ]
null
null
null
ml/tensorflow/iris/pipeline.py
datalabai/cloud
5f2ef4abb8458f948414d28b4830de74b55a0636
[ "Apache-2.0" ]
null
null
null
#/!/usr/bin/env python # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
37.964179
80
0.647193
1,518
12,718
5.237813
0.247694
0.027166
0.037605
0.035216
0.273928
0.233304
0.213055
0.180606
0.140108
0.11747
0
0.002172
0.239739
12,718
334
81
38.077844
0.820147
0.114562
0
0.208333
0
0
0.181417
0.019717
0
0
0
0
0
0
null
null
0.004167
0.054167
null
null
0.0125
0
0
0
null
0
0
0
0
0
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
03ab0016f0b0391b66c8b9b3187fa06f886fc4f6
7,179
py
Python
combo_e2e/pages/uicomponents/datepicker.py
AdCombo/combo-e2e
7b28240ef749d36f78342610f8c8d10312b2733b
[ "MIT" ]
2
2021-06-23T07:25:37.000Z
2021-06-23T07:32:22.000Z
combo_e2e/pages/uicomponents/datepicker.py
AdCombo/combo-e2e
7b28240ef749d36f78342610f8c8d10312b2733b
[ "MIT" ]
5
2021-08-02T16:54:17.000Z
2022-03-17T15:04:58.000Z
combo_e2e/pages/uicomponents/datepicker.py
AdCombo/combo-e2e
7b28240ef749d36f78342610f8c8d10312b2733b
[ "MIT" ]
1
2021-07-06T14:31:42.000Z
2021-07-06T14:31:42.000Z
""" This class wraps date-picker(ngx-daterangepicker-material) input and allows to interact with it. Time is set accoring to client time zone! """ from datetime import date, datetime from typing import Callable, Optional from combo_e2e.helpers.exceptions import DatePickerNotFound, DatePickerException, DatePickerAttri...
39.229508
113
0.675164
886
7,179
5.207675
0.183973
0.019506
0.034677
0.019506
0.331383
0.267447
0.201994
0.170351
0.127438
0.108366
0
0.000546
0.234294
7,179
182
114
39.445055
0.838821
0.147931
0
0.12381
0
0
0.06984
0.013968
0
0
0
0
0
1
0.209524
false
0.009524
0.066667
0.047619
0.495238
0
0
0
0
null
0
0
0
0
0
0
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
03ab4c838a6711fc02fa4100be3e33b67cda97d6
542
py
Python
timeweb/timewebapp/migrations/0077_settingsmodel_default_dropdown_assignment_tags.py
snapsnap123/TimeWeb
9e3a3459fa71f6edf730addf3c7e15d87b6c80b5
[ "Apache-2.0" ]
1
2021-11-29T18:37:02.000Z
2021-11-29T18:37:02.000Z
timeweb/timewebapp/migrations/0077_settingsmodel_default_dropdown_assignment_tags.py
renardtnt1/TimeWeb
3684bb2ba368b55a4d50995e7e0e3b9405cba004
[ "Apache-2.0" ]
null
null
null
timeweb/timewebapp/migrations/0077_settingsmodel_default_dropdown_assignment_tags.py
renardtnt1/TimeWeb
3684bb2ba368b55a4d50995e7e0e3b9405cba004
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-30 23:04 from django.db import migrations, models import timewebapp.models class Migration(migrations.Migration): dependencies = [ ('timewebapp', '0076_alter_timewebmodel_funct_round'), ] operations = [ migrations.AddField( model_name='...
27.1
135
0.684502
59
542
6.118644
0.728814
0.088643
0.121884
0
0
0
0
0
0
0
0
0.044811
0.217712
542
19
136
28.526316
0.806604
0.083026
0
0
1
0
0.248485
0.135354
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
03b2c8c3274e13294cf562d33c9027f75adff0b9
1,993
py
Python
app.py
royhzq/sg-headlines-rnn
cef84f1ffe7f18a37386e9602166082c10e9020b
[ "MIT" ]
null
null
null
app.py
royhzq/sg-headlines-rnn
cef84f1ffe7f18a37386e9602166082c10e9020b
[ "MIT" ]
13
2020-01-28T23:05:24.000Z
2022-02-10T00:34:57.000Z
app.py
royhzq/sg-headlines-rnn
cef84f1ffe7f18a37386e9602166082c10e9020b
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify from utils import generate_headlines import tensorflow as tf import json tf.enable_eager_execution() import numpy as np app = Flask(__name__) char2idx = json.loads(open("./data/st_char2idx.txt", 'br').read().decode(encoding='utf-8')) idx2char = np.array(json.loads(open("./da...
30.661538
103
0.656297
252
1,993
5.02381
0.388889
0.086888
0.053712
0.063191
0.173776
0.14376
0.042654
0
0
0
0
0.029664
0.238836
1,993
65
104
30.661538
0.804878
0.110888
0
0
1
0
0.184256
0.041643
0
0
0
0
0
1
0.046512
false
0
0.116279
0
0.302326
0
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
03b9f80c573256626bf4885c7bbd2f75f05f862a
4,076
py
Python
vistrails/packages/spreadsheet/spreadsheet_registry.py
celiafish/VisTrails
d8cb575b8b121941de190fe608003ad1427ef9f6
[ "BSD-3-Clause" ]
1
2015-05-11T16:46:49.000Z
2015-05-11T16:46:49.000Z
vistrails/packages/spreadsheet/spreadsheet_registry.py
celiafish/VisTrails
d8cb575b8b121941de190fe608003ad1427ef9f6
[ "BSD-3-Clause" ]
null
null
null
vistrails/packages/spreadsheet/spreadsheet_registry.py
celiafish/VisTrails
d8cb575b8b121941de190fe608003ad1427ef9f6
[ "BSD-3-Clause" ]
null
null
null
############################################################################### ## ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## "Redistribution and use in source and binary for...
38.819048
80
0.609176
447
4,076
5.53915
0.411633
0.028271
0.016963
0.018578
0.113893
0.072698
0.054927
0.054927
0.054927
0.054927
0
0.005166
0.240186
4,076
104
81
39.192308
0.794317
0.602552
0
0.16
0
0
0
0
0
0
0
0
0
1
0.28
false
0
0
0
0.48
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
03c0d7a2bce24dca073f581faa19144a145e5531
1,174
py
Python
extras/Roll_A_Dice_Or_Two.py
namangoel05/area4
69be5dcb24a14d8e5be9e88d2deb72fdc6510136
[ "MIT" ]
null
null
null
extras/Roll_A_Dice_Or_Two.py
namangoel05/area4
69be5dcb24a14d8e5be9e88d2deb72fdc6510136
[ "MIT" ]
null
null
null
extras/Roll_A_Dice_Or_Two.py
namangoel05/area4
69be5dcb24a14d8e5be9e88d2deb72fdc6510136
[ "MIT" ]
null
null
null
from random import randint import time import random def One_OR_Two(): #Right here its saying that for number 1 press it will roll one dice And when number 2 pressed it will roll 2 and ect. if input("Do you want 1 dice or 2? \n\1 for 1(Die) \n2 for 2(Dice) :") == '1': print("The dice rolled",random.rand...
58.7
205
0.682283
219
1,174
3.639269
0.383562
0.081556
0.052698
0.056462
0.090339
0.090339
0.045169
0
0
0
0
0.022002
0.225724
1,174
19
206
61.789474
0.854785
0.557922
0
0.285714
0
0.071429
0.321012
0
0
0
0
0
0
1
0.071429
true
0
0.214286
0
0.285714
0.214286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
03c266ba0c3fa77c77f277fa9c8c15adc29fe57b
7,166
py
Python
util.py
sekunder/ergm
b60bc2b1cb64d2969bcab2dbe75511eb732a113d
[ "CC0-1.0" ]
2
2020-12-14T09:13:35.000Z
2021-03-22T07:28:37.000Z
util.py
sekunder/ergm
b60bc2b1cb64d2969bcab2dbe75511eb732a113d
[ "CC0-1.0" ]
null
null
null
util.py
sekunder/ergm
b60bc2b1cb64d2969bcab2dbe75511eb732a113d
[ "CC0-1.0" ]
null
null
null
""" utility functions for ergm """ import numpy as np import datetime import sys import networkx as nx from itertools import combinations # from scipy import sparse def log_msg(*args, out=sys.stdout, **kwargs): """Print message m with a timestamp if out is not None.""" if out: print(datetime.datetime...
37.915344
145
0.652107
1,184
7,166
3.89527
0.282939
0.003036
0.021683
0.021683
0.052472
0.029488
0.029488
0.026453
0.026453
0.026453
0
0.024757
0.239045
7,166
188
146
38.117021
0.821016
0.567402
0
0.054054
0
0
0.011433
0
0
0
0
0
0
1
0.216216
false
0
0.067568
0.013514
0.486486
0.013514
0
0
0
null
0
0
0
0
0
0
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
03d5e71eac1ee63a4847306cf3c4d429e8818a82
1,039
py
Python
passmate/config.py
TobiasKaiser/passmate
49c7d528a71ced7a9c395fafa22cc4cc2dddfc7e
[ "Apache-2.0" ]
11
2018-02-05T16:32:22.000Z
2022-02-11T06:56:17.000Z
passmate/config.py
TobiasKaiser/passmate
49c7d528a71ced7a9c395fafa22cc4cc2dddfc7e
[ "Apache-2.0" ]
15
2017-10-08T13:23:03.000Z
2019-02-16T23:03:40.000Z
passmate/config.py
TobiasKaiser/passmate
49c7d528a71ced7a9c395fafa22cc4cc2dddfc7e
[ "Apache-2.0" ]
1
2019-05-03T03:49:11.000Z
2019-05-03T03:49:11.000Z
import platform from pathlib import Path from dataclasses import dataclass @dataclass(frozen=True) class Config: primary_db: str shared_folder: str host_id: str @classmethod def default(cls): primary_db_default = str(Path.home() / ".local/share/passmate/local.pmdb") shared_folder_d...
31.484848
82
0.641001
125
1,039
4.928
0.312
0.116883
0.082792
0.058442
0.116883
0.116883
0.116883
0
0
0
0
0
0.244466
1,039
32
83
32.46875
0.784713
0.016362
0
0
0
0
0.17549
0.057843
0
0
0
0
0
1
0.107143
false
0.071429
0.107143
0.035714
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
1
0
0
0
0
0
1
03d85822a20ea24f7c4d4a8477238913b316792b
417
py
Python
base/migrations/0035_outline_morale_on.py
rafsaf/Plemiona_Planer
1a0e2da0c4b18f1abd1df876f688c6442cba17ce
[ "Apache-2.0" ]
2
2020-11-15T12:50:07.000Z
2020-11-17T21:54:54.000Z
base/migrations/0035_outline_morale_on.py
rafsaf/Plemiona_Planer
1a0e2da0c4b18f1abd1df876f688c6442cba17ce
[ "Apache-2.0" ]
21
2021-11-01T14:04:19.000Z
2022-03-25T06:31:03.000Z
base/migrations/0035_outline_morale_on.py
rafsaf/Tribal-Wars-Planer
083af9b1efe814be3abe975b9ac8faccc00ebb09
[ "Apache-2.0" ]
null
null
null
# Generated by Django 4.0.2 on 2022-02-17 22:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("base", "0034_outline_morale_on_targets_greater_than_and_more"), ] operations = [ migrations.AddField( model_name="outline", ...
21.947368
73
0.628297
47
417
5.361702
0.787234
0.063492
0
0
0
0
0
0
0
0
0
0.062092
0.266187
417
18
74
23.166667
0.761438
0.107914
0
0
1
0
0.194595
0.140541
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
03db6243c45ed78fbff736368c5df610046c336d
403
py
Python
camproxy/app/routes.py
k-wojcik/hassio-addons
4d82843136d593fbee5d839b45713680594a1f28
[ "Apache-2.0" ]
null
null
null
camproxy/app/routes.py
k-wojcik/hassio-addons
4d82843136d593fbee5d839b45713680594a1f28
[ "Apache-2.0" ]
null
null
null
camproxy/app/routes.py
k-wojcik/hassio-addons
4d82843136d593fbee5d839b45713680594a1f28
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from flask import Flask, render_template, request, Response import stream import json from shared import logger from main import app @app.route("/healthcheck") def healthcheck(): return "ok" @app.route('/cam/<camId>/stream', methods=['GET']) def camstream(camId): logger.info("Beg...
26.866667
71
0.74938
54
403
5.574074
0.555556
0.053156
0
0
0
0
0
0
0
0
0
0.002833
0.124069
403
15
71
26.866667
0.849858
0
0
0
0
0
0.165842
0
0
0
0
0
0
1
0.153846
false
0
0.461538
0.076923
0.769231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
03dcb1403bf2626fa9e60230581256736ccc99ba
1,192
py
Python
yafas/auth/resources.py
lallamilagro/yafas-server
8bd8b64c7bfdaeeadffe0daf91eecf91091fcb94
[ "MIT" ]
null
null
null
yafas/auth/resources.py
lallamilagro/yafas-server
8bd8b64c7bfdaeeadffe0daf91eecf91091fcb94
[ "MIT" ]
null
null
null
yafas/auth/resources.py
lallamilagro/yafas-server
8bd8b64c7bfdaeeadffe0daf91eecf91091fcb94
[ "MIT" ]
null
null
null
import falcon from . import CookieCreator, data_api, schemas class AuthCookiesMixin: schema = None require_token = None def cookies_data(self, request) -> dict: token, _ = self.schema().load(request.media) return CookieCreator(token)() def set_cookies(self, request, response): ...
24.326531
72
0.687081
139
1,192
5.719424
0.330935
0.132075
0.119497
0.047799
0.291824
0.291824
0.223899
0.223899
0.223899
0.223899
0
0.006403
0.213926
1,192
48
73
24.833333
0.842049
0
0
0.266667
0
0
0.004195
0
0
0
0
0
0
1
0.2
false
0
0.066667
0
0.633333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1
03e220ad44802d7ccaad8ff67ed213cf295d4afb
37,309
py
Python
stores/apps/preferences/views.py
diassor/CollectorCity-Market-Place
892ad220b8cf1c0fc7433f625213fe61729522b2
[ "Apache-2.0" ]
135
2015-03-19T13:28:18.000Z
2022-03-27T06:41:42.000Z
stores/apps/preferences/views.py
dfcoding/CollectorCity-Market-Place
e59acec3d600c049323397b17cae14fdcaaaec07
[ "Apache-2.0" ]
null
null
null
stores/apps/preferences/views.py
dfcoding/CollectorCity-Market-Place
e59acec3d600c049323397b17cae14fdcaaaec07
[ "Apache-2.0" ]
83
2015-01-30T01:00:15.000Z
2022-03-08T17:25:10.000Z
""" Edit shop preferences """ import datetime from preferences.forms import MarketingForm, TaxStateEditForm import logging from django.conf import settings from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect, HttpResponse, Http404, HttpResponseForbidden from django.shortcuts i...
38.265641
152
0.638613
3,684
37,309
6.261944
0.101792
0.038493
0.031688
0.036413
0.618752
0.511292
0.44575
0.411851
0.344272
0.312671
0
0.004445
0.26436
37,309
975
153
38.265641
0.836078
0.026669
0
0.47619
0
0.002646
0.181373
0.043678
0
0
0
0.002051
0
0
null
null
0.029101
0.068783
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
03e945af9ade9cf54e3b850a6b3c0ce9e40fad3b
1,183
py
Python
data_visualization/api_blueprint/predefined_configurations.py
danielrenes/car-data-visualization
9fb18c7bc8ec3e796793178acab350f0b5e7ef5b
[ "MIT" ]
null
null
null
data_visualization/api_blueprint/predefined_configurations.py
danielrenes/car-data-visualization
9fb18c7bc8ec3e796793178acab350f0b5e7ef5b
[ "MIT" ]
null
null
null
data_visualization/api_blueprint/predefined_configurations.py
danielrenes/car-data-visualization
9fb18c7bc8ec3e796793178acab350f0b5e7ef5b
[ "MIT" ]
null
null
null
import json from flask import jsonify, abort, request, url_for from . import api from .. import db from ..models import PredefinedConfiguration from ..queries import query_all_predefined_configs, query_get_predefined_config_by_id @api.route('/predefinedconfigs', methods=['GET']) def get_predefined_configs(): pre...
35.848485
117
0.760778
147
1,183
5.836735
0.326531
0.242424
0.088578
0.076923
0.264569
0.151515
0
0
0
0
0
0.00582
0.128487
1,183
32
118
36.96875
0.826382
0
0
0
0
0
0.100592
0.03973
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
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
03ea04acda2fa195ba0bef26aa773982feaf40ce
2,918
py
Python
web_api/bearings/apis/inventory.py
zhanghe06/flask_restful
6ef54f3f7efbbaff6169e963dcf45ab25e11e593
[ "MIT" ]
1
2020-12-04T03:15:47.000Z
2020-12-04T03:15:47.000Z
web_api/bearings/apis/inventory.py
zhanghe06/flask_restful
6ef54f3f7efbbaff6169e963dcf45ab25e11e593
[ "MIT" ]
1
2021-06-01T22:24:27.000Z
2021-06-01T22:24:27.000Z
web_api/bearings/apis/inventory.py
zhanghe06/flask_restful
6ef54f3f7efbbaff6169e963dcf45ab25e11e593
[ "MIT" ]
2
2020-12-04T03:16:18.000Z
2021-09-04T14:10:12.000Z
#!/usr/bin/env python # encoding: utf-8 """ @author: zhanghe @software: PyCharm @file: inventory.py @time: 2018-06-28 00:23 """ import datetime from libs.mysql_orm_op import DbInstance from web_api.databases.bearings import db from web_api.models.bearings import Inventory db_instance = DbInstance(db) def get_inve...
21.29927
96
0.64976
365
2,918
4.956164
0.29863
0.066335
0.088447
0.055279
0.34052
0.296296
0.204533
0.16031
0.09508
0
0
0.010738
0.234064
2,918
136
97
21.455882
0.798658
0.345099
0
0
0
0
0.015113
0
0
0
0
0
0
1
0.30303
false
0
0.121212
0
0.757576
0
0
0
0
null
0
0
0
0
0
0
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
03f39d73c00f084610ed84399b397649419510bb
229
py
Python
cntr/utils.py
ethan-iai/tour-recmd
321ee528b748900eff9d22b176cdcd339fb60681
[ "MIT" ]
2
2021-08-01T06:39:43.000Z
2021-08-01T06:39:58.000Z
cntr/utils.py
ethan-iai/tour-recmd
321ee528b748900eff9d22b176cdcd339fb60681
[ "MIT" ]
1
2021-06-08T11:24:30.000Z
2021-06-09T07:47:26.000Z
cntr/utils.py
ethan-iai/tour-recmd
321ee528b748900eff9d22b176cdcd339fb60681
[ "MIT" ]
null
null
null
import os import pathlib def get_data_path(file): prefix = pathlib.Path(__file__).parent.resolve() return os.path.abspath(os.path.join(prefix, file)) if __name__ == '__main__': print(get_data_path('data/name.txt'))
22.9
54
0.720524
34
229
4.382353
0.558824
0.09396
0.147651
0
0
0
0
0
0
0
0
0
0.135371
229
10
55
22.9
0.752525
0
0
0
0
0
0.091304
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ff03a6d3f532ff9a0b7cb29e49f83b8383befaa7
6,300
py
Python
src/vulkan/helpers/render_pass.py
gabdube/panic-panda
ecbda506eeafe3dbdf932cdb20b938646502f892
[ "MIT" ]
67
2019-01-06T13:01:46.000Z
2022-01-04T17:50:58.000Z
src/vulkan/helpers/render_pass.py
gabdube/panic-panda
ecbda506eeafe3dbdf932cdb20b938646502f892
[ "MIT" ]
2
2019-01-07T18:25:00.000Z
2021-05-10T09:32:17.000Z
src/vulkan/helpers/render_pass.py
gabdube/panic-panda
ecbda506eeafe3dbdf932cdb20b938646502f892
[ "MIT" ]
6
2019-07-31T08:16:26.000Z
2020-12-26T04:34:52.000Z
from .. import vk from .utils import check_ctypes_members, sequence_to_array, array, array_pointer from ctypes import byref, c_uint32, c_float def rect_2d(x, y, width, height): return vk.Rect2D( offset=vk.Offset2D(x=x, y=y), extent=vk.Extent2D(width=width, height=height) ) def framebuffer_cre...
40.645161
124
0.71873
746
6,300
5.741287
0.162198
0.037824
0.035022
0.044128
0.304226
0.228111
0.098996
0.056502
0.056502
0.056502
0
0.003471
0.176825
6,300
154
125
40.909091
0.822406
0
0
0.125
0
0
0.112698
0.00381
0
0
0
0
0
1
0.1
false
0.266667
0.025
0.008333
0.216667
0
0
0
0
null
0
0
0
0
0
0
0
0
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
ff05c27eae2a6e4a7afcb14ff90aef2245e06be5
302
py
Python
mli/utility.py
karu-bee/ml_interpret_book
c398023dff175118c98e9f6dd3785d6b317b359e
[ "BSD-3-Clause" ]
18
2021-08-11T02:04:53.000Z
2022-03-26T03:23:47.000Z
mli/utility.py
karu-bee/ml_interpret_book
c398023dff175118c98e9f6dd3785d6b317b359e
[ "BSD-3-Clause" ]
null
null
null
mli/utility.py
karu-bee/ml_interpret_book
c398023dff175118c98e9f6dd3785d6b317b359e
[ "BSD-3-Clause" ]
11
2021-09-19T08:39:01.000Z
2022-03-28T08:58:45.000Z
import pandas as pd def get_coef(estimator, var_names): """特徴量名と回帰係数が対応したデータフレームを作成する""" # 切片含む回帰係数と特徴量の名前を抜き出してデータフレームにまとめる df = pd.DataFrame( data={"coef": [estimator.intercept_] + estimator.coef_.tolist()}, index=["intercept"] + var_names ) return df
23.230769
74
0.645695
28
302
6.785714
0.678571
0.136842
0
0
0
0
0
0
0
0
0
0
0.235099
302
13
75
23.230769
0.822511
0.201987
0
0
0
0
0.055085
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ff07cdddcc59acdcb5eb9d02bbab6e7854827b9d
454
py
Python
src/265. Paint House II .py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
1
2019-12-16T08:18:25.000Z
2019-12-16T08:18:25.000Z
src/265. Paint House II .py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
null
null
null
src/265. Paint House II .py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
null
null
null
class Solution: def minCostII(self, costs: List[List[int]]) -> int: if not costs: return 0 lower_row = costs[-1] k = len(lower_row) for i in range(len(costs)-2, -1, -1): curr_row = costs[i][:] for j in range(k): curr_row[j] += min(lower_row[:j...
25.222222
67
0.491189
63
454
3.380952
0.412698
0.262911
0.103286
0
0
0
0
0
0
0
0
0.021053
0.372247
454
17
68
26.705882
0.726316
0.035242
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.272727
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
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
ff0849124ea93b7bec63c0f48293d31e29b5e59a
442
py
Python
tryouts/withBlessings.py
programmingLego/legoBTLE4PI
d4641eb3e5451f8f64a4ac038ebadb8c3b452ec0
[ "MIT" ]
2
2021-06-05T18:06:43.000Z
2021-08-13T12:16:48.000Z
tryouts/withBlessings.py
programmingLego/legoBTLE4PI
d4641eb3e5451f8f64a4ac038ebadb8c3b452ec0
[ "MIT" ]
4
2021-06-05T18:55:26.000Z
2021-06-23T19:40:53.000Z
tryouts/withBlessings.py
DietrichChristopeit/project-cimino
62eaf5e2661200094742c1ab65524128488d84bf
[ "MIT" ]
null
null
null
import time from blessings import Terminal term = Terminal() with term.location(): for i in range(10): t = i l = len(str(t)) print(term.move(10, term.height-1) + 'This is', term.underline(str(t))) time.sleep(1) print(term.move(10, term.height - 1) + 'This is', l*' ') ...
31.571429
127
0.597285
68
442
3.882353
0.397059
0.045455
0.147727
0.170455
0.393939
0.393939
0.393939
0.393939
0.393939
0.272727
0
0.034884
0.221719
442
13
128
34
0.732558
0
0
0
0
0
0.058824
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0.272727
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
0
0
0
1
205bed737ae851cb6d34930622f0a31f72e6dab8
6,792
py
Python
s3scan.py
abhn/Public-AWS-S3-Finder
8a1d2d0c2d78fa1a2ca0ae47c0fcf25a640cd28d
[ "MIT" ]
21
2017-05-27T07:44:45.000Z
2022-02-16T14:11:46.000Z
s3scan.py
abhn/Public-AWS-S3-Finder
8a1d2d0c2d78fa1a2ca0ae47c0fcf25a640cd28d
[ "MIT" ]
null
null
null
s3scan.py
abhn/Public-AWS-S3-Finder
8a1d2d0c2d78fa1a2ca0ae47c0fcf25a640cd28d
[ "MIT" ]
13
2017-06-17T05:22:26.000Z
2020-10-18T09:36:00.000Z
import re import sys, os import httplib2 import boto3, botocore from BeautifulSoup import BeautifulSoup, SoupStrainer from optparse import OptionParser from botocore.client import Config # Saving myself from passing around these variables # Sorry! globalBaseUrl = "" globalLinkList = [] s3 = None # https://stackover...
26.740157
102
0.665342
892
6,792
5.005605
0.343049
0.022172
0.03449
0.055991
0.172452
0.128779
0.074132
0.04972
0.04972
0.030011
0
0.020106
0.194494
6,792
253
103
26.84585
0.796015
0.136337
0
0.138365
0
0.012579
0.192764
0.02156
0
0
0
0.003953
0
0
null
null
0.006289
0.044025
null
null
0.144654
0
0
0
null
0
0
0
0
0
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
205d500564f612d825bf5416f85d96a0ea9a3138
441
py
Python
plants/migrations/0013_plant_access_type.py
spalk/Plant-Passport-gitpod
7b80d84a3c01b08cc1f8cace7cd9fb377605eec8
[ "MIT" ]
null
null
null
plants/migrations/0013_plant_access_type.py
spalk/Plant-Passport-gitpod
7b80d84a3c01b08cc1f8cace7cd9fb377605eec8
[ "MIT" ]
21
2021-08-30T14:52:33.000Z
2022-02-08T14:24:21.000Z
plants/migrations/0013_plant_access_type.py
spalk/Plant-Passport-gitpod
7b80d84a3c01b08cc1f8cace7cd9fb377605eec8
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-17 14:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('plants', '0012_alter_photo_user'), ] operations = [ migrations.AddField( model_name='plant', name='access_type', ...
23.210526
106
0.587302
49
441
5.183673
0.836735
0
0
0
0
0
0
0
0
0
0
0.070988
0.265306
441
18
107
24.5
0.712963
0.102041
0
0
1
0
0.159898
0.053299
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
205f2e686753d8740c59888037ef43abf26bbe29
16,346
py
Python
src/services/pokemonirc/game_output.py
Telsanyr/Johnny_VI
db9f54457c33b1f70616671611e6bc4fc4c44d1b
[ "WTFPL" ]
6
2018-08-07T14:57:58.000Z
2020-02-13T18:43:49.000Z
src/services/pokemonirc/game_output.py
Telsanyr/Johnny_VI
db9f54457c33b1f70616671611e6bc4fc4c44d1b
[ "WTFPL" ]
2
2018-08-08T12:12:28.000Z
2018-08-23T12:46:25.000Z
src/services/pokemonirc/game_output.py
Telsanyr/Johnny_VI
db9f54457c33b1f70616671611e6bc4fc4c44d1b
[ "WTFPL" ]
1
2018-08-07T14:51:15.000Z
2018-08-07T14:51:15.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- # coding: utf8 # Libs imports import os import json import time from datetime import datetime # Rule #1: Always print arguments with str() function # Rule #2: In order to avoid useless ping, add '_' before any player username if the command can be triggered by someone else...
58.378571
229
0.587789
1,964
16,346
4.776477
0.228106
0.040081
0.055005
0.022386
0.354013
0.272572
0.217781
0.181964
0.155527
0.114593
0
0.004168
0.236816
16,346
279
230
58.587814
0.747816
0.141686
0
0.114583
0
0.020833
0.237996
0
0
0
0
0
0
1
0.21875
false
0
0.020833
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
20643ff79358dd0c7cd7ca78a7b0ae595e1e3aee
1,183
py
Python
TalentHunter/accounts/models.py
Hnachik/JobMatchingPfeProjectBack
fdf6e54c51a435681d34e750ee3c53024f76a3ec
[ "bzip2-1.0.6" ]
null
null
null
TalentHunter/accounts/models.py
Hnachik/JobMatchingPfeProjectBack
fdf6e54c51a435681d34e750ee3c53024f76a3ec
[ "bzip2-1.0.6" ]
null
null
null
TalentHunter/accounts/models.py
Hnachik/JobMatchingPfeProjectBack
fdf6e54c51a435681d34e750ee3c53024f76a3ec
[ "bzip2-1.0.6" ]
null
null
null
from django.contrib.auth.models import AbstractUser from django.db import models class User(AbstractUser): is_jobSeeker = models.BooleanField(default=False) is_recruiter = models.BooleanField(default=False) class Recruiter(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE, relate...
35.848485
89
0.746407
155
1,183
5.516129
0.316129
0.094737
0.091228
0.119298
0.529825
0.442105
0.442105
0.442105
0.350877
0.163743
0
0.01277
0.139476
1,183
32
90
36.96875
0.827112
0
0
0.090909
0
0
0.019475
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0.090909
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
20708794a4f17c85e6ca5fdd6d42ecbb66c5770e
1,149
py
Python
plugins/trending/weibo.py
su226/IdhagnBot
a5db1b6ab69fdf67fd6e53a63b34c6bc863d6609
[ "MIT" ]
2
2022-02-14T06:37:05.000Z
2022-03-30T12:18:15.000Z
plugins/trending/weibo.py
su226/IdhagnBot
a5db1b6ab69fdf67fd6e53a63b34c6bc863d6609
[ "MIT" ]
null
null
null
plugins/trending/weibo.py
su226/IdhagnBot
a5db1b6ab69fdf67fd6e53a63b34c6bc863d6609
[ "MIT" ]
null
null
null
from typing import Any from aiohttp import ClientSession from .common import Item, strip_html API = "https://weibo.com/ajax/statuses/hot_band" IMG = "https://wx4.sinaimg.cn/large/{}.jpg" SEARCH = "https://s.weibo.com/weibo?q=%23{}%23" def get_image(data: Any) -> str: try: return IMG.format(data["mblog"]["pic_ids"][...
26.72093
59
0.610966
168
1,149
4.089286
0.452381
0.039301
0.046579
0.055313
0.116448
0
0
0
0
0
0
0.014039
0.194082
1,149
42
60
27.357143
0.727862
0
0
0.205128
0
0
0.202785
0
0
0
0
0
0
1
0.025641
false
0.051282
0.076923
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
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
2077e6ee17f7f602136cebfbf7dc6c070eaa7ba8
4,106
py
Python
utils/LandFire_TAW/ndvi_processing.py
NMTHydro/Recharge
bbc1a05add92064acffeffb19f04e370b99a7918
[ "Apache-2.0" ]
7
2016-08-30T15:18:11.000Z
2021-08-22T00:28:10.000Z
utils/LandFire_TAW/ndvi_processing.py
NMTHydro/Recharge
bbc1a05add92064acffeffb19f04e370b99a7918
[ "Apache-2.0" ]
2
2016-06-08T06:41:45.000Z
2016-06-23T20:47:26.000Z
utils/LandFire_TAW/ndvi_processing.py
NMTHydro/Recharge
bbc1a05add92064acffeffb19f04e370b99a7918
[ "Apache-2.0" ]
1
2018-09-18T10:38:08.000Z
2018-09-18T10:38:08.000Z
# =============================================================================== # Copyright 2018 gabe-parrish # # 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/licen...
39.480769
107
0.681442
555
4,106
4.778378
0.342342
0.039216
0.049774
0.012066
0.113876
0.093514
0.093514
0.093514
0.058824
0.058824
0
0.017878
0.18266
4,106
104
108
39.480769
0.772348
0.288115
0
0
0
0
0.137852
0.081493
0
0
0
0
0
0
null
null
0
0.108696
null
null
0.130435
0
0
0
null
0
0
0
0
0
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
2080689aca7d1f7a58ef8c5ff65a1a1fdd0f61ff
715
py
Python
3-longest-substring-without-repeating-characters.py
XianwuLin/leetcode
87f3c26f1cf16876a01585857aed6c524c8b31b8
[ "MIT" ]
null
null
null
3-longest-substring-without-repeating-characters.py
XianwuLin/leetcode
87f3c26f1cf16876a01585857aed6c524c8b31b8
[ "MIT" ]
null
null
null
3-longest-substring-without-repeating-characters.py
XianwuLin/leetcode
87f3c26f1cf16876a01585857aed6c524c8b31b8
[ "MIT" ]
null
null
null
# encoding=utf-8 # 解题思路: # 依旧用了空间换时间的思路,记录找到的每个没有重复的子串的长度,然后求这些长度的最大值。 # 这里需要注意发现字符a已经在上一个子串中的时候,下一个子串应该是从上一个子串的a的下一位开始,而不是从a开始。 class Solution(object): def lengthOfLongestSubstring(self, s): """ :type s: str :rtype: int """ first = [0] now = "" for index, ...
22.34375
65
0.513287
73
715
4.917808
0.60274
0.050139
0
0
0
0
0
0
0
0
0
0.010965
0.362238
715
31
66
23.064516
0.776316
0.167832
0
0
0
0
0.033708
0
0
0
0
0
0
0
null
null
0
0
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
208ab0efab1a44dca566c2b25386582351d6f44f
1,465
py
Python
examples/tf/reps_gym_cartpole.py
thanhkaist/garage
1d840df357282a675b8fce839bb0e5f72a8abba9
[ "MIT" ]
7
2022-02-01T03:02:24.000Z
2022-02-10T12:54:05.000Z
examples/tf/reps_gym_cartpole.py
thanhkaist/garage
1d840df357282a675b8fce839bb0e5f72a8abba9
[ "MIT" ]
null
null
null
examples/tf/reps_gym_cartpole.py
thanhkaist/garage
1d840df357282a675b8fce839bb0e5f72a8abba9
[ "MIT" ]
2
2022-02-03T03:33:25.000Z
2022-02-10T12:54:07.000Z
#!/usr/bin/env python3 """This is an example to train a task with REPS algorithm. Here it runs gym CartPole env with 100 iterations. Results: AverageReturn: 100 +/- 40 RiseTime: itr 10 +/- 5 """ import gym from garage import wrap_experiment from garage.envs import GarageEnv from garage.experiment import Lo...
27.641509
79
0.690102
183
1,465
5.431694
0.513661
0.070423
0.030181
0.042254
0
0
0
0
0
0
0
0.028394
0.230717
1,465
52
80
28.173077
0.853594
0.317406
0
0
0
0
0.011446
0
0
0
0
0
0
1
0.043478
false
0
0.347826
0
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
208e001e2d8d189eee888e06083e153b859d3d35
1,652
py
Python
tests/friend/test_net.py
cloudboss/friend
3357e6ec849552e3ae9ed28017ff0926e4006e4e
[ "MIT" ]
null
null
null
tests/friend/test_net.py
cloudboss/friend
3357e6ec849552e3ae9ed28017ff0926e4006e4e
[ "MIT" ]
null
null
null
tests/friend/test_net.py
cloudboss/friend
3357e6ec849552e3ae9ed28017ff0926e4006e4e
[ "MIT" ]
null
null
null
# Copyright 2018 Joseph Wright <joseph@cloudboss.co> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, mer...
44.648649
79
0.735472
247
1,652
4.878543
0.530364
0.073029
0.021577
0.039834
0
0
0
0
0
0
0
0.03165
0.196731
1,652
36
80
45.888889
0.876413
0.648305
0
0
0
0
0.065954
0
0
0
0
0
0.153846
1
0.076923
false
0
0.307692
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
20903497b848af034e0eb1186f088232c687e594
341
py
Python
Day 10 Binary Numbers.py
rajnish-13547/Hackerrank-30-day-Code
ef3a754e39b9902ac9b6b0b728e11296f22cd054
[ "Apache-2.0" ]
null
null
null
Day 10 Binary Numbers.py
rajnish-13547/Hackerrank-30-day-Code
ef3a754e39b9902ac9b6b0b728e11296f22cd054
[ "Apache-2.0" ]
null
null
null
Day 10 Binary Numbers.py
rajnish-13547/Hackerrank-30-day-Code
ef3a754e39b9902ac9b6b0b728e11296f22cd054
[ "Apache-2.0" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys if __name__ == '__main__': n = int(input().strip()) out = bin(n)[2:].split('0') #bin binarizes into form '0b----' where ---- is binary representataion out = len(max(out)) # choosing maximum length of string as '11' > ...
20.058824
103
0.607038
48
341
4.145833
0.791667
0
0
0
0
0
0
0
0
0
0
0.027027
0.240469
341
16
104
21.3125
0.741313
0.381232
0
0
0
0
0.046875
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
20914f481667d4d16d02db12f46ade70ba6a337e
836
py
Python
vim/del_mq_transfer.py
quentin-wang/audioset_classification
b21887484a94babd4613b01368edeb86706bdd37
[ "MIT" ]
2
2020-04-05T21:24:39.000Z
2021-06-04T09:03:58.000Z
vim/del_mq_transfer.py
quentin-wang/audioset_classification
b21887484a94babd4613b01368edeb86706bdd37
[ "MIT" ]
13
2020-01-28T22:01:40.000Z
2021-12-13T19:51:09.000Z
vim/del_mq_transfer.py
quentin-wang/audioset_classification
b21887484a94babd4613b01368edeb86706bdd37
[ "MIT" ]
1
2021-07-06T21:12:15.000Z
2021-07-06T21:12:15.000Z
# -*- coding=utf-8 -*- import pika import sys import numpy as np import pickle credentials = pika.PlainCredentials('myuser', 'mypassword') with pika.BlockingConnection( pika.ConnectionParameters('ice-P910',5672,'myvhost', credentials)) as connection: # connection = pika.BlockingConnection(pika.Connection...
32.153846
87
0.735646
106
836
5.59434
0.386792
0.040472
0.025295
0.155143
0.279933
0.195616
0.131535
0.131535
0.131535
0
0
0.01108
0.136364
836
25
88
33.44
0.810249
0.12201
0
0.111111
0
0
0.221614
0
0
0
0
0
0
1
0
false
0.055556
0.222222
0
0.222222
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
20943719a2fcad2a95774d69c03867118816c653
599
py
Python
txt2sh.py
pib/gpio_ssd1306
7897e117529a57df2ea810ae2dad2756b3ea193f
[ "MIT" ]
2
2016-05-24T14:16:37.000Z
2018-09-25T06:35:55.000Z
txt2sh.py
pib/gpio_ssd1306
7897e117529a57df2ea810ae2dad2756b3ea193f
[ "MIT" ]
null
null
null
txt2sh.py
pib/gpio_ssd1306
7897e117529a57df2ea810ae2dad2756b3ea193f
[ "MIT" ]
null
null
null
import sys lines = [l.rstrip() for l in open(sys.argv[1]).readlines() if len(l.rstrip()) > 0] if len(lines) > 64: print "Max 64 lines" sys.exit(1) lines.extend([""] * (64 % len(lines))) # Pad out to 64 lines cols = max(len(l) for l in lines) if cols > 128: print "Max 128 columns" sys.exit(1) for i in ...
28.52381
82
0.562604
97
599
3.463918
0.402062
0.044643
0.035714
0
0
0
0
0
0
0
0
0.052392
0.267112
599
20
83
29.95
0.712984
0.03172
0
0.111111
0
0
0.070934
0
0
0
0
0
0
0
null
null
0
0.055556
null
null
0.222222
0
0
0
null
0
0
0
0
0
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
209db664ddb0050867ee984f6e1fa194d70e545b
867
py
Python
main/migrations/0007_auto_20210116_0038.py
Arts-Technology-Lab/exp_taste
291d26894c534a82379252d1af1b9b0b321fc71b
[ "MIT" ]
null
null
null
main/migrations/0007_auto_20210116_0038.py
Arts-Technology-Lab/exp_taste
291d26894c534a82379252d1af1b9b0b321fc71b
[ "MIT" ]
null
null
null
main/migrations/0007_auto_20210116_0038.py
Arts-Technology-Lab/exp_taste
291d26894c534a82379252d1af1b9b0b321fc71b
[ "MIT" ]
1
2021-09-01T03:16:10.000Z
2021-09-01T03:16:10.000Z
# Generated by Django 3.0.10 on 2021-01-16 00:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0006_auto_20201001_0931'), ] operations = [ migrations.AlterModelOptions( name='auctionlot', options={'orde...
30.964286
134
0.60323
90
867
5.622222
0.577778
0.086957
0.090909
0.106719
0.264822
0.264822
0.264822
0.264822
0.264822
0.264822
0
0.059468
0.262976
867
27
135
32.111111
0.732394
0.053057
0
0.238095
1
0
0.208791
0.028083
0
0
0
0
0
1
0
false
0
0.047619
0
0.190476
0
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
20a178a7f03998c835263b3fd062485db5864e1a
398
py
Python
operacion/migrations/0005_remove_turno_hora_inicio.py
exildev/Rondax
a4a4cad4ec9c575a288f66a353e07e9a57362ede
[ "Apache-2.0" ]
null
null
null
operacion/migrations/0005_remove_turno_hora_inicio.py
exildev/Rondax
a4a4cad4ec9c575a288f66a353e07e9a57362ede
[ "Apache-2.0" ]
null
null
null
operacion/migrations/0005_remove_turno_hora_inicio.py
exildev/Rondax
a4a4cad4ec9c575a288f66a353e07e9a57362ede
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-08 15:20 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('operacion', '0004_turno_hora_inicio'), ] operations = [ migrations.RemoveField( ...
19.9
48
0.61809
44
398
5.363636
0.75
0.084746
0
0
0
0
0
0
0
0
0
0.071918
0.266332
398
19
49
20.947368
0.736301
0.170854
0
0
1
0
0.143731
0.067278
0
0
0
0
0
1
0
false
0
0.166667
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
20b0cb026df5e39e3d7cf7213155978963ec27ea
314
py
Python
python/day05.py
narimiran/AdventOfCode2019
7ca324ab6f292a93e3ab2327e9377eae2e462004
[ "MIT" ]
2
2019-12-05T08:39:34.000Z
2019-12-26T15:45:10.000Z
python/day05.py
narimiran/AdventOfCode2019
7ca324ab6f292a93e3ab2327e9377eae2e462004
[ "MIT" ]
null
null
null
python/day05.py
narimiran/AdventOfCode2019
7ca324ab6f292a93e3ab2327e9377eae2e462004
[ "MIT" ]
null
null
null
from intcode import * def solve(instr, part): input_instruction = 1 if part == 1 else 5 comp = Computer(instr, len(instr)) comp.receive(input_instruction) comp.run() return comp.out_queue[-1] instructions = read_intcode_input(5) print(solve(instructions, 1)) print(solve(instructions, 2))
19.625
45
0.703822
44
314
4.909091
0.568182
0.148148
0.203704
0
0
0
0
0
0
0
0
0.027132
0.178344
314
15
46
20.933333
0.810078
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.3
0.2
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
0
0
0
1
20b1b21ec139b97e272ccfb76245282c96f81627
3,736
py
Python
client.py
NordCox/Nordcox-Bot
3ed83bfdc10523cdcbfd13a0f45d3d68f3df056c
[ "MIT" ]
7
2017-04-26T20:49:46.000Z
2017-06-02T01:08:00.000Z
client.py
NordCox/Nordcox-Bot
3ed83bfdc10523cdcbfd13a0f45d3d68f3df056c
[ "MIT" ]
9
2017-04-26T16:22:59.000Z
2018-07-16T18:21:50.000Z
client.py
NordCox/Nordcox-Bot
3ed83bfdc10523cdcbfd13a0f45d3d68f3df056c
[ "MIT" ]
11
2017-06-02T03:46:29.000Z
2019-02-27T21:20:06.000Z
import logging import threading import time import pinylib log = logging.getLogger(__name__) def main(): room_name = raw_input('Enter room name: ').strip() if pinylib.CONFIG.ACCOUNT and pinylib.CONFIG.PASSWORD: client = pinylib.TinychatRTCClient(room=room_name, account=pinylib.CONFIG.ACCOUNT, ...
38.122449
118
0.523287
412
3,736
4.589806
0.262136
0.063987
0.034373
0.033845
0.222634
0.101534
0
0
0
0
0
0.003339
0.358672
3,736
97
119
38.515464
0.785893
0
0
0.206897
0
0.011494
0.109743
0
0
0
0
0
0
1
0.011494
false
0.103448
0.045977
0
0.057471
0.103448
0
0
0
null
0
0
0
0
0
0
0
0
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
20b1f01b27ef48f6d139f9138e4bcf3552657d52
1,822
py
Python
old/mael_dmg_calc.py
IronHeart7334/Maelstrom
aaea823c393a1cdc908b987ec5a27904322845ce
[ "MIT" ]
null
null
null
old/mael_dmg_calc.py
IronHeart7334/Maelstrom
aaea823c393a1cdc908b987ec5a27904322845ce
[ "MIT" ]
null
null
null
old/mael_dmg_calc.py
IronHeart7334/Maelstrom
aaea823c393a1cdc908b987ec5a27904322845ce
[ "MIT" ]
null
null
null
TOTAL = 1000 def calc_stats(defRat, eleRat, resRat, p = True): DEF = TOTAL * (0.75 + 0.025 * defRat) OFF = TOTAL - DEF ENE = OFF * (0.5 + 0.05 * eleRat) STR = OFF - ENE RES = DEF * (0.167 + 0.033 * resRat) HP = DEF - RES if p: print "" print "" print "HP: " + str(HP) print "STR: " + str(STR) pri...
18.039604
68
0.588913
294
1,822
3.557823
0.29932
0.053537
0.037285
0.026769
0.14914
0.14914
0.14914
0.14914
0.14914
0.14914
0
0.036711
0.25247
1,822
101
69
18.039604
0.731278
0
0
0.304348
0
0
0.216676
0
0
0
0
0
0
0
null
null
0
0
null
null
0.246377
0
0
0
null
0
0
0
0
0
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
20b5b58aed3d21c4c4915daa30f4e8dbda82f3a5
650
py
Python
4_PersistanceBugger.py
joanzhu728/Codewar
13d383957594c926ac5338a20d760f614271beab
[ "MIT" ]
null
null
null
4_PersistanceBugger.py
joanzhu728/Codewar
13d383957594c926ac5338a20d760f614271beab
[ "MIT" ]
null
null
null
4_PersistanceBugger.py
joanzhu728/Codewar
13d383957594c926ac5338a20d760f614271beab
[ "MIT" ]
null
null
null
import codewars_test as test def persistence(n): times = 0 if len(str(n)) == 1: return times else: while len(str(n)) > 1: multiple = 1 for x in str(n): multiple *= int(x) times += 1 n = multiple return times # import o...
23.214286
59
0.556923
93
650
3.83871
0.397849
0.044818
0.179272
0.302521
0.056022
0
0
0
0
0
0
0.049107
0.310769
650
28
60
23.214286
0.747768
0.224615
0
0.111111
0
0
0.022133
0
0
0
0
0
0.222222
1
0.055556
false
0
0.055556
0
0.222222
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
0
0
0
1
20b8bb3fcf2671b92bff3531ad074b19f746b4aa
6,682
py
Python
00_core.py
DanyWind/fast_neptune
e07c354514df1debdff607584bb042f000f03f31
[ "Apache-2.0" ]
5
2020-01-28T22:28:36.000Z
2020-02-22T07:04:52.000Z
00_core.py
DanyWind/fast_neptune
e07c354514df1debdff607584bb042f000f03f31
[ "Apache-2.0" ]
2
2021-09-28T00:42:24.000Z
2022-02-26T06:26:10.000Z
00_core.py
dhuynh95/fast_neptune
e07c354514df1debdff607584bb042f000f03f31
[ "Apache-2.0" ]
2
2020-04-28T05:00:38.000Z
2020-12-04T09:08:03.000Z
#!/usr/bin/env python # coding: utf-8 # In[1]: #hide get_ipython().run_line_magic('load_ext', 'autoreload') get_ipython().run_line_magic('autoreload', '2') # In[2]: # default_exp core # In[3]: #export from nbdev.export import check_re,read_nb from pathlib import Path import re import os import platform # #...
20.623457
99
0.652649
935
6,682
4.549733
0.232086
0.028444
0.028444
0.054302
0.294076
0.248237
0.248002
0.22661
0.22661
0.22661
0
0.00719
0.229871
6,682
323
100
20.687307
0.819471
0.150554
0
0.213235
0
0.022059
0.326061
0
0
0
0
0
0
1
0.066176
false
0.073529
0.102941
0
0.227941
0.007353
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
20ca4306616ba4229666606128bb772fe88420f6
2,704
py
Python
hangingart/space.py
IanRichardDavies/HangingArt
94f6321c6e3bd6c73d479a33b6b18d3bfbaf371a
[ "MIT" ]
null
null
null
hangingart/space.py
IanRichardDavies/HangingArt
94f6321c6e3bd6c73d479a33b6b18d3bfbaf371a
[ "MIT" ]
null
null
null
hangingart/space.py
IanRichardDavies/HangingArt
94f6321c6e3bd6c73d479a33b6b18d3bfbaf371a
[ "MIT" ]
null
null
null
""" Module concerning Space objects """ # Python Libraries # First Party Imports class Space: """ Class holding logic for each individual surface upon which art can be hung. #TODO: more documentation """ def __init__( self, max_hor_dim: float = 0.0, min_hor_dim: float...
29.714286
67
0.566938
311
2,704
4.717042
0.266881
0.088616
0.081118
0.027267
0.070893
0
0
0
0
0
0
0.00961
0.345784
2,704
91
68
29.714286
0.819672
0.116864
0
0.088235
0
0
0.056473
0
0
0
0
0.021978
0
1
0.044118
false
0
0
0
0.058824
0.014706
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
20cc5934d839eb06728df2e30f577167bc2cdc91
5,443
py
Python
main.py
yycho0108/2048_tf
b29a8a20d051a464814957e153ea7c099576bc0a
[ "MIT" ]
1
2017-09-07T22:47:52.000Z
2017-09-07T22:47:52.000Z
main.py
yycho0108/2048_tf
b29a8a20d051a464814957e153ea7c099576bc0a
[ "MIT" ]
null
null
null
main.py
yycho0108/2048_tf
b29a8a20d051a464814957e153ea7c099576bc0a
[ "MIT" ]
1
2020-04-12T16:12:20.000Z
2020-04-12T16:12:20.000Z
#!/usr/bin/python import sys import numpy as np import tensorflow as tf from memory import Memory, MultiMemory from qnet import * from layers import * from game import Game ## Load Parameters gamma = .99 #Discount factor. num_episodes = 10000 #Total number of episodes to train network for. test_episodes = 200 #Total...
31.645349
112
0.570825
731
5,443
4.084815
0.243502
0.042197
0.048225
0.056263
0.320831
0.262559
0.262559
0.246149
0.184193
0.13061
0
0.035189
0.300386
5,443
171
113
31.830409
0.74895
0.106008
0
0.267717
0
0
0.054523
0
0
0
0
0
0
0
null
null
0
0.055118
null
null
0.031496
0
0
0
null
0
0
0
0
0
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
20cdadc43f7f0fbddcc40c1c7b51c46475d844b7
2,384
py
Python
app/ecommerce/admin.py
nguyenanhtuan21/ecommerce-django
df29b31073b8e24ae9fbb294ca0c3ba8c81c09ae
[ "MIT" ]
1
2019-12-16T16:45:11.000Z
2019-12-16T16:45:11.000Z
app/ecommerce/admin.py
nguyenanhtuan21/ecommerce-django
df29b31073b8e24ae9fbb294ca0c3ba8c81c09ae
[ "MIT" ]
3
2021-06-04T22:05:06.000Z
2021-09-22T18:05:05.000Z
app/ecommerce/admin.py
nguyenanhtuan21/ecommerce-django
df29b31073b8e24ae9fbb294ca0c3ba8c81c09ae
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Brand, Product, Profile, Instagram, OrderItem,Order from django.utils.html import format_html # Register your models here. def make_published(modeladmin, request, queryset): queryset.update(name='Váy') make_published.short_description = "Mark selected stories as...
40.40678
149
0.707215
291
2,384
5.580756
0.261168
0.060961
0.108374
0.121921
0.549877
0.512931
0.456281
0.394704
0.366379
0.366379
0
0.005761
0.126258
2,384
58
150
41.103448
0.773884
0.010906
0
0.458333
0
0
0.250955
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0.041667
0.791667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1
20cfca94bf1866157bf1f47a272c02db1e2ee2a1
1,211
py
Python
leetcode/9isPalindrome.py
wanglingyun/interview-questions
41aad1146c1cf8cfff741a0127ce973733fdcac6
[ "Apache-2.0" ]
null
null
null
leetcode/9isPalindrome.py
wanglingyun/interview-questions
41aad1146c1cf8cfff741a0127ce973733fdcac6
[ "Apache-2.0" ]
null
null
null
leetcode/9isPalindrome.py
wanglingyun/interview-questions
41aad1146c1cf8cfff741a0127ce973733fdcac6
[ "Apache-2.0" ]
null
null
null
# Definition for singly-linked list. import unittest import math class TestClass(unittest.TestCase): def isPalindrome(self, x: int) -> bool: if(x<0): return False rx = self.reverseNum(x) return rx == x def reverseNum(self,x: int): rx = 0 while x>=1: ...
22.425926
44
0.523534
152
1,211
4.085526
0.309211
0.067633
0.088567
0.096618
0.433172
0.433172
0.433172
0.433172
0.320451
0.233494
0
0.043984
0.361685
1,211
54
45
22.425926
0.759379
0.028076
0
0.325581
0
0
0.006803
0
0
0
0
0
0.116279
1
0.209302
false
0
0.046512
0
0.395349
0
0
0
0
null
0
0
0
0
0
0
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
20d0880440126c65c69df8c4573d843710e04d7e
433
py
Python
polyglot/utils.py
riccardoFasan/deeply
b025d2b85282d6934edc8c2f824ca9ad68a8ba08
[ "MIT" ]
2
2022-03-14T17:47:20.000Z
2022-03-20T09:51:27.000Z
polyglot/utils.py
riccardoFasan/deepl-translator-script
b025d2b85282d6934edc8c2f824ca9ad68a8ba08
[ "MIT" ]
1
2022-03-31T07:00:28.000Z
2022-03-31T07:01:05.000Z
polyglot/utils.py
riccardoFasan/deepl-translator-script
b025d2b85282d6934edc8c2f824ca9ad68a8ba08
[ "MIT" ]
1
2021-12-28T09:21:31.000Z
2021-12-28T09:21:31.000Z
from typing import Any, Iterator, Optional import colorama DownloadedDocumentStream = Optional[Iterator[Any]] def get_truncated_text(text: str, limit: int) -> str: return text[:limit] + "..." if len(text) > limit else text def get_color_by_percentage(percentage: int) -> str: if percentage > 90: retu...
25.470588
62
0.706697
56
433
5.375
0.5
0.139535
0.179402
0
0
0
0
0
0
0
0
0.011461
0.193995
433
16
63
27.0625
0.851003
0
0
0
0
0
0.006944
0
0
0
0
0
0
1
0.181818
false
0
0.181818
0.090909
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1
20dc7c2e8b065dfa920a34dee44b90c37f1c51a5
256
py
Python
Rasp_Pi_2018/should_i_water/water_plants_task.py
BitKnitting/should_I_water
8d849671892b7bbc9e947e0ba041c4c3527b6bbd
[ "MIT" ]
2
2018-05-20T00:26:31.000Z
2018-06-13T16:22:48.000Z
Rasp_Pi_2018/should_i_water/water_plants_task.py
BitKnitting/should_I_water
8d849671892b7bbc9e947e0ba041c4c3527b6bbd
[ "MIT" ]
null
null
null
Rasp_Pi_2018/should_i_water/water_plants_task.py
BitKnitting/should_I_water
8d849671892b7bbc9e947e0ba041c4c3527b6bbd
[ "MIT" ]
null
null
null
import os import sys LIB_PATH = os.environ['LADYBUG_LIB_PATH'] sys.path.append(LIB_PATH) from water_plants_lib import WaterPlants ############### if __name__ == "__main__": water_plants = WaterPlants() water_plants.send_start_watering_packets()
19.692308
46
0.734375
34
256
4.970588
0.558824
0.12426
0
0
0
0
0
0
0
0
0
0
0.125
256
12
47
21.333333
0.754464
0
0
0
0
0
0.099585
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
20de1adfff69feef6f33b16295086d0f5529ee20
2,055
py
Python
undp-transparency-portal-be/undp_admin/api_views.py
undp/transparencyportal
244fbb82c05d119f0acbe7f5efbb44572d9150a0
[ "CC-BY-3.0" ]
5
2019-09-10T15:05:18.000Z
2022-02-02T02:53:32.000Z
undp-transparency-portal-be/undp_admin/api_views.py
undp/transparencyportal
244fbb82c05d119f0acbe7f5efbb44572d9150a0
[ "CC-BY-3.0" ]
4
2019-04-02T15:02:20.000Z
2021-11-09T10:55:32.000Z
undp-transparency-portal-be/undp_admin/api_views.py
undp/transparencyportal
244fbb82c05d119f0acbe7f5efbb44572d9150a0
[ "CC-BY-3.0" ]
2
2021-09-01T14:30:29.000Z
2021-09-01T14:32:57.000Z
from django.shortcuts import render # Create your views here. from rest_framework.views import APIView from rest_framework.viewsets import GenericViewSet from undp_admin.models import AboutUs, AdminLog, JOBS, LOG_STATUSES from undp_admin.serializers import AboutUsSerializer from utilities.mixins import ResponseViewMi...
39.519231
96
0.697324
239
2,055
5.778243
0.372385
0.025344
0.034757
0.045619
0.259957
0.197683
0.197683
0.197683
0.197683
0.197683
0
0.007348
0.205353
2,055
51
97
40.294118
0.838334
0.047689
0
0.142857
0
0
0.060494
0
0
0
0
0
0
1
0.085714
false
0
0.228571
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1
20e0cbef167c1c068cc1264bcbdca5e71f4391df
8,251
py
Python
app/app/api/views.py
dtcooper/crazyarms
71ea0e58958233daaceb8750043f74ef1a141079
[ "MIT" ]
15
2021-01-18T17:16:51.000Z
2022-03-28T22:16:19.000Z
app/app/api/views.py
dtcooper/carb
71ea0e58958233daaceb8750043f74ef1a141079
[ "MIT" ]
4
2021-03-14T16:28:40.000Z
2021-03-31T16:48:49.000Z
app/app/api/views.py
dtcooper/carb
71ea0e58958233daaceb8750043f74ef1a141079
[ "MIT" ]
3
2021-07-15T02:24:19.000Z
2022-03-18T11:50:05.000Z
import json import logging from django.conf import settings from django.contrib.auth import authenticate from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden, JsonResponse from django.utils.decorators import method_decorator from django.views import View from django.views.decorators.csrf...
37
120
0.5769
863
8,251
5.308227
0.252607
0.043222
0.036018
0.036018
0.291421
0.233573
0.217856
0.182275
0.089937
0.089937
0
0.003093
0.333778
8,251
222
121
37.166667
0.830271
0.044358
0
0.256983
0
0
0.130093
0.01523
0
0
0
0
0
1
0.03352
false
0.083799
0.067039
0
0.223464
0
0
0
0
null
0
0
0
0
0
0
0
0
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
20e14f7ef604899504925d65072a7843fff0a6db
40,435
py
Python
notebooks/Users/kasri@berkeley.edu/final_project_team25_centrality.py
superli3/ucb-w261-sp2021-team25
102e9859e878a54f84554e66425097217a0485e7
[ "Apache-2.0" ]
null
null
null
notebooks/Users/kasri@berkeley.edu/final_project_team25_centrality.py
superli3/ucb-w261-sp2021-team25
102e9859e878a54f84554e66425097217a0485e7
[ "Apache-2.0" ]
null
null
null
notebooks/Users/kasri@berkeley.edu/final_project_team25_centrality.py
superli3/ucb-w261-sp2021-team25
102e9859e878a54f84554e66425097217a0485e7
[ "Apache-2.0" ]
1
2021-04-19T20:41:48.000Z
2021-04-19T20:41:48.000Z
// Databricks notebook source // MAGIC %md // MAGIC // MAGIC W261 Final Project // MAGIC ------------------ // MAGIC ## Graph Centrality for Airline Delay Prediction // MAGIC // MAGIC #### Justin Trobec, Jeff Li, Sonya Chen, Karthik Srinivasan // MAGIC #### Spring 2021, Section 5 // MAGIC #### Group 25 // COMMAN...
35.130321
656
0.679609
5,631
40,435
4.7393
0.12076
0.037097
0.019897
0.026717
0.632068
0.58965
0.558736
0.520778
0.479335
0.446697
0
0.023127
0.171263
40,435
1,151
657
35.130321
0.773262
0.06482
0
0.588375
0
0.061684
0.286927
0.060398
0
0
0
0.001738
0
0
null
null
0
0.027284
null
null
0.015421
0
0
0
null
0
0
0
0
0
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
20e848a5145974495ecc337b35a8d2b22c5a5616
340
py
Python
tpow/examples/check_read_rom.py
sken10/tpow
6accbfe133a41959c2d35d5c8401e622d4f9efc2
[ "MIT" ]
1
2020-10-31T05:37:41.000Z
2020-10-31T05:37:41.000Z
tpow/examples/check_read_rom.py
sken10/tpow
6accbfe133a41959c2d35d5c8401e622d4f9efc2
[ "MIT" ]
null
null
null
tpow/examples/check_read_rom.py
sken10/tpow
6accbfe133a41959c2d35d5c8401e622d4f9efc2
[ "MIT" ]
null
null
null
"""check_read_rom.py get ROMID of 1-wire device. assume only one 1-wire device on the bus. """ import tpow.usb9097 import tpow.device import cfg bus = tpow.usb9097.USB9097(cfg.com_port) # USB9097('COM3') id_little = tpow.device.read_rom(bus) id_big = [a for a in reversed(id_little)] print(" ".join(['%02X' % ord(a) ...
21.25
59
0.711765
62
340
3.774194
0.548387
0.059829
0.094017
0.059829
0
0
0
0
0
0
0
0.072165
0.144118
340
15
60
22.666667
0.731959
0.308824
0
0
0
0
0.022124
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
20e8ac2901c046279a37346f2a01171b0a59374c
1,522
py
Python
common/xrd-ui-tests-python/tests/xroad_trust_view_details_cs_ca/XroadTrustViewDetailsCsCa.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
3
2018-03-15T14:22:50.000Z
2021-11-08T10:30:35.000Z
common/xrd-ui-tests-python/tests/xroad_trust_view_details_cs_ca/XroadTrustViewDetailsCsCa.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
11
2017-04-06T09:25:41.000Z
2018-06-04T09:08:48.000Z
common/xrd-ui-tests-python/tests/xroad_trust_view_details_cs_ca/XroadTrustViewDetailsCsCa.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
20
2017-03-14T07:21:58.000Z
2019-05-21T09:26:30.000Z
# coding=utf-8 import unittest from main.maincontroller import MainController import view_management """ UC TRUST_02: View the Details of a Certification Service CA RIA URL: https://jira.ria.ee/browse/XTKB-185 Depends on finishing other test(s): Requires helper scenarios: X-Road version: 6.16.0 """ class Xroad...
31.708333
131
0.657687
196
1,522
4.862245
0.423469
0.057712
0.054565
0.050367
0.189927
0.150052
0.150052
0.150052
0.150052
0.100735
0
0.012174
0.244415
1,522
47
132
32.382979
0.816522
0.007884
0
0
0
0
0.17395
0.043697
0
0
0
0
0.041667
1
0.041667
false
0.083333
0.125
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
1
0
0
0
0
0
1
20efb6e68d19a66f29b03a03d92401ec1cbcda69
6,185
py
Python
evaluate_ranking.py
aydindemircioglu/radFS
b50b2a78f7c7975751b699b6b74a2761f7fa3501
[ "MIT", "Unlicense" ]
1
2022-02-24T02:16:55.000Z
2022-02-24T02:16:55.000Z
evaluate_ranking.py
aydindemircioglu/radFS
b50b2a78f7c7975751b699b6b74a2761f7fa3501
[ "MIT", "Unlicense" ]
null
null
null
evaluate_ranking.py
aydindemircioglu/radFS
b50b2a78f7c7975751b699b6b74a2761f7fa3501
[ "MIT", "Unlicense" ]
null
null
null
#!/usr/bin/python3 import json import seaborn as sns from matplotlib import cm from matplotlib.colors import ListedColormap, LinearSegmentedColormap import matplotlib.colors as colors from scipy.stats import spearmanr import pylab import scipy.cluster.hierarchy as sch from scipy.stats import pearsonr, friedmanchisqu...
30.46798
114
0.620049
762
6,185
4.950131
0.374016
0.026246
0.021209
0.019088
0.093319
0.059385
0.052492
0.052492
0.027572
0.027572
0
0.024194
0.258205
6,185
202
115
30.618812
0.797951
0.058205
0
0.120805
0
0
0.094197
0.014293
0
0
0
0
0
1
0.020134
false
0.013423
0.33557
0
0.362416
0.020134
0
0
0
null
0
0
0
0
0
0
0
0
0
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
20f4bb00c3e32da2d3d3c84f05ad3e299944fc74
394
py
Python
tests/__init__.py
syamasakigoodrx/astronomer
0f1ca98bc04c46abe750bd9668aa75330601d300
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
syamasakigoodrx/astronomer
0f1ca98bc04c46abe750bd9668aa75330601d300
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
syamasakigoodrx/astronomer
0f1ca98bc04c46abe750bd9668aa75330601d300
[ "Apache-2.0" ]
null
null
null
from pathlib import Path import git # The top-level path of this repository git_repo = git.Repo(__file__, search_parent_directories=True) git_root_dir = Path(git_repo.git.rev_parse("--show-toplevel")) # This should match the major.minor version list in .circleci/generate_circleci_config.py # Patch version should alwa...
35.818182
89
0.763959
68
394
4.205882
0.676471
0.073427
0.06993
0
0
0
0
0
0
0
0
0.051576
0.114213
394
10
90
39.4
0.767908
0.401015
0
0
0
0
0.168103
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
454b01b109820104ab60f6103cb4df1d537ab584
1,084
py
Python
tests/test_signer.py
led8rgb/wmsigner
fdf888220e97b260639ebc4c5c86ae144939305f
[ "MIT" ]
5
2017-05-28T03:13:17.000Z
2019-12-17T11:34:16.000Z
tests/test_signer.py
led8rgb/wmsigner
fdf888220e97b260639ebc4c5c86ae144939305f
[ "MIT" ]
2
2016-01-03T03:22:27.000Z
2018-11-29T19:55:49.000Z
tests/test_signer.py
led8rgb/wmsigner
fdf888220e97b260639ebc4c5c86ae144939305f
[ "MIT" ]
3
2016-08-28T11:39:32.000Z
2019-09-17T10:47:17.000Z
import unittest from wmsigner import Signer # Для запуска тестов эти данные должны быть заполнены signer = Signer(wmid='000000000000', keys='/home/egor/000000000000.kwm', password='**********') class TestWMSigner(unittest.TestCase): def test_equal(self): """ Получ...
26.439024
78
0.606089
102
1,084
6.333333
0.705882
0.032508
0.065015
0
0
0
0
0
0
0
0
0.159898
0.273063
1,084
40
79
27.1
0.659898
0.139299
0
0
0
0.052632
0.288528
0.244496
0
0
0
0
0.157895
1
0.157895
false
0.052632
0.105263
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
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
454b47b3f84be1c2c230d352ee328c9b29ca854a
676
py
Python
test/test.py
jinjunnn/cloud1
629016594b61cd7404da45f7c54e1d9c1bc3b69d
[ "MIT" ]
null
null
null
test/test.py
jinjunnn/cloud1
629016594b61cd7404da45f7c54e1d9c1bc3b69d
[ "MIT" ]
null
null
null
test/test.py
jinjunnn/cloud1
629016594b61cd7404da45f7c54e1d9c1bc3b69d
[ "MIT" ]
null
null
null
import os, sys import csv import leancloud from leancloud import cloud import requests import re leancloud.init("ELXEVn8IoKWzNVU52gmYKnn6-gzGzoHsz", master_key="kYWSFq2AwQyBhujn5oIBo64n") data_info = {'id': 2017718538, 'user_name': 'js999986', 'first_name': '一手引流工作室', 'last_name': None, 'userName': None, 'url': None,...
35.578947
200
0.720414
103
676
4.572816
0.582524
0.084926
0
0
0
0
0
0
0
0
0
0.043333
0.112426
676
18
201
37.555556
0.74
0.236686
0
0
0
0.083333
0.341131
0.165692
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
454ca970a91a509b88675311e18e5508a0f457e1
1,729
py
Python
python/spark/ctr_logistic.py
zzhou9/google-searchAds
6fed04a624cc637f472f866e91e465ebe11102d3
[ "Apache-2.0" ]
null
null
null
python/spark/ctr_logistic.py
zzhou9/google-searchAds
6fed04a624cc637f472f866e91e465ebe11102d3
[ "Apache-2.0" ]
null
null
null
python/spark/ctr_logistic.py
zzhou9/google-searchAds
6fed04a624cc637f472f866e91e465ebe11102d3
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from pyspark import SparkContext from pyspark.mllib.classification import LogisticRegressionWithLBFGS, LogisticRegressionModel from pyspark.mllib.regression import LabeledPoint from pyspark.mllib.util import MLUtils #(' 101356, 101356, 32714, 32714, 5963, 10594, 21240, 34825, 5963...
36.787234
99
0.685367
198
1,729
5.888889
0.494949
0.037736
0.041166
0.042882
0.049743
0
0
0
0
0
0
0.049251
0.189705
1,729
46
100
37.586957
0.783012
0.1417
0
0
0
0
0.125424
0.096949
0
0
0
0
0
0
null
null
0
0.172414
null
null
0.137931
0
0
0
null
0
0
0
0
0
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
4554d96aff6eab12cf01ea18c66f303bf1e65edd
3,008
py
Python
tests/test_clouds.py
cc-daveloper/mist.io_mist.api
d3f9b8d478f23bf811c0bc6d3078e512aa975f86
[ "Apache-2.0" ]
1
2019-04-10T11:37:25.000Z
2019-04-10T11:37:25.000Z
tests/test_clouds.py
d-mo/mist.api
d3f9b8d478f23bf811c0bc6d3078e512aa975f86
[ "Apache-2.0" ]
3
2021-04-07T23:15:17.000Z
2021-09-23T23:21:45.000Z
tests/test_clouds.py
cc-daveloper/mist.io_mist.api
d3f9b8d478f23bf811c0bc6d3078e512aa975f86
[ "Apache-2.0" ]
null
null
null
"""Tests Cloud models and Controllers""" import os import uuid import json from deepdiff import DeepDiff from pprint import pprint def unicode_to_str(data): if isinstance(data, dict): return {unicode_to_str(key): unicode_to_str(value) for key, value in data.iteritems()} elif isinstanc...
29.782178
78
0.628657
391
3,008
4.654731
0.248082
0.048352
0.052747
0.037363
0.28022
0.206593
0.191758
0.191758
0.191758
0.124176
0
0.001354
0.263298
3,008
100
79
30.08
0.819946
0.019947
0
0.217391
0
0
0.062387
0
0
0
0
0
0.028986
0
null
null
0
0.072464
null
null
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
45582f74d0d0ee28b2acea145b7197bbf28904ac
1,414
py
Python
app/core/tests/test_model.py
rahulsudhakar10/receipe-api-project
29f205607905bbee347ea9ca505751f4d4cd508a
[ "MIT" ]
null
null
null
app/core/tests/test_model.py
rahulsudhakar10/receipe-api-project
29f205607905bbee347ea9ca505751f4d4cd508a
[ "MIT" ]
null
null
null
app/core/tests/test_model.py
rahulsudhakar10/receipe-api-project
29f205607905bbee347ea9ca505751f4d4cd508a
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from core import models def sample_user(email='test@londonappdev.com', password='testpass'): """Create a sample user""" return get_user_model().objects.create_user(email, password) class ModelTest(TestCase): def test_user_wi...
28.28
68
0.642857
171
1,414
5.093567
0.274854
0.04822
0.082664
0.10907
0.355913
0.243398
0.210103
0.171068
0.117107
0.117107
0
0.018815
0.248232
1,414
49
69
28.857143
0.800564
0.014144
0
0.166667
0
0
0.071326
0.01513
0
0
0
0
0.194444
1
0.166667
false
0.138889
0.083333
0
0.305556
0
0
0
0
null
0
0
0
0
0
0
0
0
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
455c1d1f7a5c452b8ffe6f08ac4dbcdcc3e74500
562
py
Python
algo/lc.118.py
cdluminate/MyNotes
cf28f2a3fa72723153147e21fed5e7b598baf44f
[ "CC0-1.0" ]
null
null
null
algo/lc.118.py
cdluminate/MyNotes
cf28f2a3fa72723153147e21fed5e7b598baf44f
[ "CC0-1.0" ]
null
null
null
algo/lc.118.py
cdluminate/MyNotes
cf28f2a3fa72723153147e21fed5e7b598baf44f
[ "CC0-1.0" ]
null
null
null
class Solution(object): def generate(self, numRows): """ :type numRows: int :rtype: List[List[int]] """ # first pass: empty triangle tria = [ [0 for j in range(i+1)] for i in range(numRows) ] print(tria) # second pass: fill in value...
28.1
60
0.451957
74
562
3.432432
0.432432
0.031496
0.047244
0.086614
0
0
0
0
0
0
0
0.03681
0.419929
562
19
61
29.578947
0.742331
0.174377
0
0
1
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.230769
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
455edc273b8a123c3adfc56630705426d3b15ce0
356
py
Python
djelectionguard/migrations/0010_auto_20210308_0939.py
Joneswn/Baloti
c499666dd9e2553fac88130dea2b6e9df8278234
[ "MIT" ]
1
2022-02-24T17:30:53.000Z
2022-02-24T17:30:53.000Z
djelectionguard/migrations/0010_auto_20210308_0939.py
Joneswn/Baloti
c499666dd9e2553fac88130dea2b6e9df8278234
[ "MIT" ]
null
null
null
djelectionguard/migrations/0010_auto_20210308_0939.py
Joneswn/Baloti
c499666dd9e2553fac88130dea2b6e9df8278234
[ "MIT" ]
2
2021-10-06T11:52:41.000Z
2022-01-20T11:07:27.000Z
# Generated by Django 3.1.7 on 2021-03-08 09:39 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('djelectionguard', '0009_decentralized_default_false'), ] operations = [ migrations.RemoveField( model_name='contest', name='...
19.777778
64
0.623596
36
356
6.027778
0.861111
0
0
0
0
0
0
0
0
0
0
0.073359
0.272472
356
17
65
20.941176
0.764479
0.126404
0
0
1
0
0.226537
0.10356
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
45604bd1b05655ed30e4f3d8cdc52c6f47f66f14
16,129
py
Python
master_cGAN_mnist_useLabel.py
tanlinc/opticalFlowGAN
f568e531265029f2f25f223ee92e1f53c0bb52f6
[ "MIT" ]
1
2018-07-24T05:40:44.000Z
2018-07-24T05:40:44.000Z
master_cGAN_mnist_useLabel.py
tanlinc/opticalFlowGAN
f568e531265029f2f25f223ee92e1f53c0bb52f6
[ "MIT" ]
null
null
null
master_cGAN_mnist_useLabel.py
tanlinc/opticalFlowGAN
f568e531265029f2f25f223ee92e1f53c0bb52f6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Nov 18 12:06:09 2018 @author: linkermann Wasserstein GAN simplified """ import os, sys sys.path.append(os.getcwd()) import tflib.save_images as imsaver import tflib.plot as plotter #import tflib.mnist as mnistloader import time import numpy as np impor...
49.627692
150
0.684915
2,375
16,129
4.424421
0.178947
0.024838
0.015226
0.024362
0.320708
0.269699
0.232109
0.207651
0.164636
0.141035
0
0.027589
0.177506
16,129
324
151
49.780864
0.764511
0.311675
0
0.096618
0
0
0.080703
0.019509
0
0
0
0.003086
0
0
null
null
0
0.038647
null
null
0.057971
0
0
0
null
0
0
0
0
0
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
4566cf4e6c09c759fddb48cfdd14738b0604abb8
4,612
py
Python
fast_automl/baseline.py
dsbowen/fast-automl
0799849859eec015eaa0a9e78936724b8ae300e9
[ "MIT" ]
null
null
null
fast_automl/baseline.py
dsbowen/fast-automl
0799849859eec015eaa0a9e78936724b8ae300e9
[ "MIT" ]
null
null
null
fast_automl/baseline.py
dsbowen/fast-automl
0799849859eec015eaa0a9e78936724b8ae300e9
[ "MIT" ]
null
null
null
"""# Baseline classifier and regressor""" import numpy as np import pandas as pd from sklearn.base import BaseEstimator, ClassifierMixin, RegressorMixin from sklearn.utils.multiclass import check_classification_targets from sklearn.utils.validation import _check_sample_weight class BaselineClassifier(ClassifierMixin...
28.645963
96
0.597572
543
4,612
4.86372
0.21547
0.090875
0.03635
0.066641
0.471412
0.419538
0.382431
0.34078
0.308974
0.290799
0
0.000924
0.29575
4,612
161
97
28.645963
0.812192
0.518864
0
0.258065
0
0
0.009536
0
0
0
0
0
0
1
0.16129
false
0
0.16129
0
0.548387
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1