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
f3762680c7ebd25d93af3817c6e529b927b1b7e4
1,818
py
Python
Python/ConkyServerStatus/conkyserverstatus.py
abergman/API
ee9db3427af0896e704114a5f229fba1d10d2de7
[ "MIT" ]
12
2017-02-15T22:55:05.000Z
2021-12-03T00:50:53.000Z
Python/ConkyServerStatus/conkyserverstatus.py
abergman/API
ee9db3427af0896e704114a5f229fba1d10d2de7
[ "MIT" ]
13
2017-07-16T22:17:19.000Z
2021-12-07T23:18:25.000Z
Python/ConkyServerStatus/conkyserverstatus.py
abergman/API
ee9db3427af0896e704114a5f229fba1d10d2de7
[ "MIT" ]
10
2015-01-11T14:52:22.000Z
2016-02-10T13:59:46.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # coding: UTF-8 import json, codecs, os, sys, datetime import xml.etree.ElementTree as ET import httplib2 import ConfigParser config = ConfigParser.ConfigParser() config.readfp(open('glesys.conf')) __APIKEY__ = config.get('ConkyServerStatus', 'apikey') __APIUSER__ = config....
31.344828
101
0.721122
228
1,818
5.5
0.47807
0.039872
0.082935
0
0
0
0
0
0
0
0
0.006274
0.123212
1,818
57
102
31.894737
0.780427
0.150715
0
0
0
0
0.218099
0
0
0
0
0
0
0
null
null
0
0.108108
null
null
0.297297
0
0
0
null
0
0
0
0
0
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
f37bee1dc26410cdac2335e1afd694c1f7195517
643
py
Python
app/netcheck/__init__.py
Zalve7/billing-example
a363fa78f2bf7e5282a4e487da8d925980d6a0de
[ "MIT" ]
9
2016-07-27T03:47:56.000Z
2021-11-13T18:54:54.000Z
app/netcheck/__init__.py
Zalve7/billing-example
a363fa78f2bf7e5282a4e487da8d925980d6a0de
[ "MIT" ]
null
null
null
app/netcheck/__init__.py
Zalve7/billing-example
a363fa78f2bf7e5282a4e487da8d925980d6a0de
[ "MIT" ]
7
2015-05-15T14:33:49.000Z
2022-01-15T18:23:41.000Z
from kivy import platform __all__ = ('connection_available', 'set_retry_prompt', 'ask_connect', '_get_ref') _Netcheck = None def _netcheck(): global _Netcheck if _Netcheck is None: p = platform() if p == 'android': from androidconn import Netcheck else: ...
21.433333
70
0.654743
70
643
5.614286
0.4
0.145038
0.05598
0
0
0
0
0
0
0
0
0
0.248834
643
29
71
22.172414
0.813665
0
0
0
0
0
0.096423
0
0
0
0
0
0
1
0.227273
false
0
0.136364
0.090909
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
f37c34688997edc0676ee73f9307b867894bed93
2,141
py
Python
algorithms_in_python/_5_array_based_sequences/examples/insertion_sort.py
junteudjio/algorithms_in_python
90ceced09828aedf845605e5236f48ea92a4419e
[ "MIT" ]
null
null
null
algorithms_in_python/_5_array_based_sequences/examples/insertion_sort.py
junteudjio/algorithms_in_python
90ceced09828aedf845605e5236f48ea92a4419e
[ "MIT" ]
null
null
null
algorithms_in_python/_5_array_based_sequences/examples/insertion_sort.py
junteudjio/algorithms_in_python
90ceced09828aedf845605e5236f48ea92a4419e
[ "MIT" ]
1
2018-10-15T06:28:45.000Z
2018-10-15T06:28:45.000Z
import random import copy from algorithms_in_python.helpers import timer __author__ = 'Junior Teudjio' @timer def insertion_sort1(A): def _swap(i,j): A[i], A[j] = A[j], A[i] key, size = 1, len(A) while key < size: current = A[key] i = key - 1 while i >= 0 and A[i] > curr...
27.805195
114
0.586175
323
2,141
3.801858
0.356037
0.009772
0.009772
0.046417
0.192182
0.192182
0.192182
0.192182
0.125407
0.125407
0
0.026389
0.327417
2,141
76
115
28.171053
0.826389
0.321812
0
0.431373
0
0
0.015235
0
0
0
0
0
0
0
null
null
0
0.058824
null
null
0.039216
0
0
0
null
0
0
0
0
0
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
f389d2f4530467e36ec3065885acbbf05a5c329c
968
py
Python
features/environment.py
hateno/aws-serverless-python
0f8f8ce2765e5f05346420d1e7173f4ff9d5879c
[ "Apache-2.0" ]
null
null
null
features/environment.py
hateno/aws-serverless-python
0f8f8ce2765e5f05346420d1e7173f4ff9d5879c
[ "Apache-2.0" ]
null
null
null
features/environment.py
hateno/aws-serverless-python
0f8f8ce2765e5f05346420d1e7173f4ff9d5879c
[ "Apache-2.0" ]
null
null
null
# -- FILE: features/environment.py from behave import use_fixture from features.fixtures import * # USE: behave -D DEBUG (to enable debug-on-error) # USE: behave -D DEBUG=yes (to enable debug-on-error) # USE: behave -D DEBUG=no (to disable debug-on-error) DEBUG = False def setup_debug_on_error(user...
31.225806
75
0.67562
132
968
4.840909
0.439394
0.054773
0.093897
0.070423
0.109546
0.109546
0.109546
0.109546
0.109546
0
0
0
0.216942
968
30
76
32.266667
0.843008
0.327479
0
0
0
0
0.082298
0
0
0
0
0
0
1
0.210526
false
0
0.157895
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
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
f392f96176f21c9dddcc4f86239a3f617e6f358f
1,503
py
Python
etcd3/members.py
blockspacer/python-etcd3
72357c6b2f89bb1e1d751c391c597eae2af7b0bf
[ "Apache-2.0" ]
362
2016-10-13T09:00:45.000Z
2022-03-31T06:44:47.000Z
etcd3/members.py
blockspacer/python-etcd3
72357c6b2f89bb1e1d751c391c597eae2af7b0bf
[ "Apache-2.0" ]
1,630
2016-10-02T22:50:01.000Z
2022-03-28T23:19:51.000Z
etcd3/members.py
blockspacer/python-etcd3
72357c6b2f89bb1e1d751c391c597eae2af7b0bf
[ "Apache-2.0" ]
159
2016-10-11T13:38:53.000Z
2022-03-21T06:45:41.000Z
class Member(object): """ A member of the etcd cluster. :ivar id: ID of the member :ivar name: human-readable name of the member :ivar peer_urls: list of URLs the member exposes to the cluster for communication :ivar client_urls: list of URLs the member exposes to clients f...
32.673913
75
0.581504
187
1,503
4.459893
0.240642
0.115108
0.083933
0.064748
0.134293
0.076739
0.076739
0.076739
0
0
0
0
0.337991
1,503
45
76
33.4
0.838191
0.359947
0
0
0
0
0.073598
0
0
0
0
0
0
1
0.263158
false
0
0
0.052632
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
f396b39953d847cc8c23e4c086b86a97df9cefd8
505
py
Python
activity/models.py
sharmapacific/biofourmis
6d8c54c2930cefbcff1fdbe801fa89e94564e767
[ "MIT" ]
null
null
null
activity/models.py
sharmapacific/biofourmis
6d8c54c2930cefbcff1fdbe801fa89e94564e767
[ "MIT" ]
8
2021-03-19T12:12:05.000Z
2022-03-12T00:44:46.000Z
activity/models.py
sharmapacific/biofourmis
6d8c54c2930cefbcff1fdbe801fa89e94564e767
[ "MIT" ]
null
null
null
from django.db import models from unixtimestampfield.fields import UnixTimeStampField class DeviceModel(models.Model): user_id = models.CharField(max_length=500, blank=True, null=True) heart_rate = models.FloatField(null=True, blank=True, default=None) respiration_rate = models.FloatField(null=True, blank...
36.071429
77
0.764356
65
505
5.769231
0.538462
0.096
0.069333
0.090667
0.256
0.256
0.256
0.256
0.256
0
0
0.006912
0.140594
505
13
78
38.846154
0.857143
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.2
0.1
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
f3a372c5b4c3f3253701be85066b2a284efad186
680
py
Python
setup/PCAM/PCAMTrain.py
caotians1/OD-test-master
e272421294a3614bdcdb3a4e4b530f613dad1a1c
[ "MIT" ]
3
2020-10-07T18:35:50.000Z
2021-02-23T06:36:21.000Z
setup/PCAM/PCAMTrain.py
caotians1/OD-test-master
e272421294a3614bdcdb3a4e4b530f613dad1a1c
[ "MIT" ]
null
null
null
setup/PCAM/PCAMTrain.py
caotians1/OD-test-master
e272421294a3614bdcdb3a4e4b530f613dad1a1c
[ "MIT" ]
3
2020-10-08T14:38:15.000Z
2021-11-08T11:51:48.000Z
from __future__ import print_function import os,sys,inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(os.path.dirname(currentdir)) sys.path.insert(0,parentdir) from utils.args import args import setup.categories.classifier_setup as CLSetup from ...
35.789474
96
0.791176
94
680
5.510638
0.510638
0.057915
0.07529
0.057915
0.073359
0
0
0
0
0
0
0.021104
0.094118
680
18
97
37.777778
0.819805
0
0
0
0
0
0.053019
0.035346
0
0
0
0
0
1
0
false
0
0.461538
0
0.461538
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f3a681811c319aac816e57869dad5d48e1e93345
2,748
py
Python
aio.core/aio/core/event/executive.py
Nordix/pytooling
b48e70e9098c283d0f17db8016d2f32a2b103a57
[ "Apache-2.0" ]
null
null
null
aio.core/aio/core/event/executive.py
Nordix/pytooling
b48e70e9098c283d0f17db8016d2f32a2b103a57
[ "Apache-2.0" ]
null
null
null
aio.core/aio/core/event/executive.py
Nordix/pytooling
b48e70e9098c283d0f17db8016d2f32a2b103a57
[ "Apache-2.0" ]
null
null
null
from functools import partial from typing import Any, Callable, Optional import abstracts from aio.core import event, functional, tasks from aio.core.dev import debug # TODO: split `IReactive.pool` to here class IExecutive(event.IReactive, metaclass=abstracts.Interface): """Object that executes commands in a p...
31.227273
69
0.576055
264
2,748
5.753788
0.340909
0.0474
0.05925
0.068466
0.407505
0.356814
0.356814
0.356814
0.356814
0.290981
0
0
0.327511
2,748
87
70
31.586207
0.82197
0.031295
0
0.422535
0
0
0.063399
0.023726
0
0
0
0.011494
0
1
0.028169
false
0
0.070423
0.014085
0.169014
0
0
0
0
null
0
0
0
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
f3b691c857903cee4d9441f5fe5bc9f11040eaa6
195
py
Python
bin/phase1/pwd.py
wfxpanisa/pythonix
12fb90b9995b849b0c4c030f20b1aa1d85635599
[ "MIT" ]
72
2017-07-18T09:01:49.000Z
2021-09-02T03:50:51.000Z
bin/phase1/pwd.py
wfzyx/pythonix
12fb90b9995b849b0c4c030f20b1aa1d85635599
[ "MIT" ]
2
2018-03-20T18:12:58.000Z
2018-06-15T13:20:58.000Z
bin/phase1/pwd.py
wfzyx/pythonix
12fb90b9995b849b0c4c030f20b1aa1d85635599
[ "MIT" ]
12
2015-10-19T20:53:41.000Z
2017-03-06T15:36:53.000Z
#!/usr/pkg/bin/python2.7 # PWD - Print Working Directory - prints global path to current import sys import os def main(argv): print(os.getcwd()) if __name__ == '__main__': main(sys.argv)
16.25
64
0.697436
30
195
4.266667
0.766667
0
0
0
0
0
0
0
0
0
0
0.012346
0.169231
195
11
65
17.727273
0.777778
0.435897
0
0
0
0
0.074766
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.5
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f3bec87d8457fc46092b348e3365fb567d7d362f
4,612
py
Python
classic_tetris_project/test_helper/__init__.py
Madv0x/classic-tetris-project
cfd8c39376ad42e6ec57055d88d79916b3debe10
[ "MIT" ]
17
2019-11-23T12:56:06.000Z
2022-02-05T21:48:00.000Z
classic_tetris_project/test_helper/__init__.py
Madv0x/classic-tetris-project
cfd8c39376ad42e6ec57055d88d79916b3debe10
[ "MIT" ]
43
2019-10-03T20:16:11.000Z
2022-03-12T00:24:52.000Z
classic_tetris_project/test_helper/__init__.py
Madv0x/classic-tetris-project
cfd8c39376ad42e6ec57055d88d79916b3debe10
[ "MIT" ]
17
2020-02-09T01:55:01.000Z
2021-11-12T21:16:50.000Z
import itertools import pytest import re from hamcrest import * from django.db import transaction, connections from django.test import override_settings, Client from django.core.cache import cache from unittest.mock import patch from classic_tetris_project.commands.command_context import * from classic_tetris_project....
30.543046
96
0.662186
530
4,612
5.50566
0.250943
0.033585
0.033585
0.032899
0.272104
0.169979
0.046607
0.046607
0.046607
0.046607
0
0
0.247615
4,612
150
97
30.746667
0.840922
0
0
0.159664
0
0
0.04098
0.017563
0
0
0
0
0.058824
1
0.193277
false
0
0.134454
0.117647
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
f3c0231262c09715b2b1052f148fda5120672898
1,486
py
Python
meiduo_mall/meiduo_mall/apps/meiduo_admin/views/sku_views.py
YUANCHUYC/meiduo_mall_project
1b454139cda92174915520b41bce6d4788289e2a
[ "Apache-2.0" ]
null
null
null
meiduo_mall/meiduo_mall/apps/meiduo_admin/views/sku_views.py
YUANCHUYC/meiduo_mall_project
1b454139cda92174915520b41bce6d4788289e2a
[ "Apache-2.0" ]
null
null
null
meiduo_mall/meiduo_mall/apps/meiduo_admin/views/sku_views.py
YUANCHUYC/meiduo_mall_project
1b454139cda92174915520b41bce6d4788289e2a
[ "Apache-2.0" ]
null
null
null
""" 针对sku管理的视图 """ from rest_framework.generics import ListAPIView from rest_framework.viewsets import ModelViewSet from meiduo_admin.serializers.sku_serializers import * from meiduo_admin.paginations import MyPage from django.db.models import Q class SKUGoodsView(ModelViewSet): queryset = SKU.objects.all() s...
26.535714
97
0.711306
152
1,486
6.789474
0.453947
0.03876
0.077519
0.096899
0
0
0
0
0
0
0
0.00423
0.204576
1,486
55
98
27.018182
0.868866
0.126514
0
0.15625
0
0
0.00702
0
0
0
0
0
0
1
0.09375
false
0
0.15625
0.03125
0.78125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
f3c7b938205fc24e0a3562956aa595475483cb90
2,455
py
Python
apps/shop/migrations/0002_product_propic.py
agamgn/django-Tourism
ee8fae54981d135cbd7ddaf9131eb77ea7b2fb8a
[ "MIT" ]
9
2019-06-30T06:34:22.000Z
2021-11-09T17:21:16.000Z
apps/shop/migrations/0002_product_propic.py
agamgn/django-Tourism
ee8fae54981d135cbd7ddaf9131eb77ea7b2fb8a
[ "MIT" ]
14
2019-12-22T02:04:18.000Z
2022-03-11T23:44:38.000Z
apps/shop/migrations/0002_product_propic.py
agamgn/django-Tourism
ee8fae54981d135cbd7ddaf9131eb77ea7b2fb8a
[ "MIT" ]
3
2019-06-30T06:35:57.000Z
2019-12-18T03:42:43.000Z
# Generated by Django 2.2 on 2019-04-24 14:09 import DjangoUeditor.models import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('shop', '0001_initial'), ] operations = [ migr...
45.462963
167
0.573116
250
2,455
5.476
0.416
0.168736
0.054785
0.056976
0.294375
0.294375
0.213294
0.213294
0.213294
0.213294
0
0.015461
0.262322
2,455
53
168
46.320755
0.740475
0.017515
0
0.304348
1
0
0.13527
0.008714
0
0
0
0
0
1
0
false
0
0.086957
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
45ebae0e61569fe3ebf3b1048af5d0aa61819fd4
302
py
Python
01_Operadores_aritmeticos/14.py
TheCarvalho/Curso-Em-Video-Python
8bd5128023ddf8b0f59eab46463c95e47569da73
[ "Unlicense" ]
null
null
null
01_Operadores_aritmeticos/14.py
TheCarvalho/Curso-Em-Video-Python
8bd5128023ddf8b0f59eab46463c95e47569da73
[ "Unlicense" ]
null
null
null
01_Operadores_aritmeticos/14.py
TheCarvalho/Curso-Em-Video-Python
8bd5128023ddf8b0f59eab46463c95e47569da73
[ "Unlicense" ]
null
null
null
# *Exercício Python 14: Escreva um programa que converta uma temperatura digitando em graus Celsius e converta para graus Fahrenheit. celsius = float(input('Insira a temperatura em Celsius: ')) faren = 9 * celsius / 5 + 32 print('A temperatura {:.0f} em Fahrenheit é {:.0f}'.format(celsius, faren))
37.75
133
0.735099
43
302
5.162791
0.674419
0.108108
0
0
0
0
0
0
0
0
0
0.031496
0.15894
302
7
134
43.142857
0.84252
0.433775
0
0
0
0
0.452381
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
45f1c583af20385d9d6dd20ed522a36911b18583
327
py
Python
setup.py
josefschneider/interactive_webpage
cdce229768570cb7a60cfc5ddd7ba453ffc9a919
[ "MIT" ]
null
null
null
setup.py
josefschneider/interactive_webpage
cdce229768570cb7a60cfc5ddd7ba453ffc9a919
[ "MIT" ]
null
null
null
setup.py
josefschneider/interactive_webpage
cdce229768570cb7a60cfc5ddd7ba453ffc9a919
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages install_requires = [ 'bottle' ] setup( name='appname', version='0.1.0', packages=find_packages(), package_data={ '': ['*.html'] }, entry_points={ 'console_scripts': [ 'appname=appname.__main__:main' ] }, install_requires=install_requ...
18.166667
62
0.636086
34
327
5.764706
0.647059
0.229592
0
0
0
0
0
0
0
0
0
0.011628
0.211009
327
17
63
19.235294
0.748062
0
0
0
0
0
0.208589
0.088957
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
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
45f22efe20be84e37629704489a253506682e960
5,986
py
Python
geosolver/diagram/states.py
mhrmm/geosolver
13ae2972c58d5ba4c4878576f9fba8569cc99629
[ "Apache-2.0" ]
83
2015-09-14T13:50:42.000Z
2022-03-12T10:24:38.000Z
geosolver/diagram/states.py
nehamjadhav/geosolver
13ae2972c58d5ba4c4878576f9fba8569cc99629
[ "Apache-2.0" ]
5
2018-03-21T00:10:50.000Z
2021-04-19T02:59:25.000Z
geosolver/diagram/states.py
nehamjadhav/geosolver
13ae2972c58d5ba4c4878576f9fba8569cc99629
[ "Apache-2.0" ]
33
2015-06-16T18:52:43.000Z
2021-12-16T08:58:27.000Z
import cv2 from geosolver.diagram.draw_on_image import draw_point, draw_instance, draw_label from geosolver.ontology.ontology_semantics import evaluate from geosolver.utils.prep import display_image __author__ = 'minjoon' class ImageSegment(object): def __init__(self, segmented_image, sliced_image, binarized_se...
39.381579
117
0.714668
706
5,986
5.739377
0.134561
0.071076
0.058736
0.051826
0.225074
0.159427
0.08613
0.066387
0.025666
0
0
0.002512
0.201804
5,986
152
118
39.381579
0.845542
0.027063
0
0.080357
0
0
0.001558
0
0
0
0
0.006579
0.044643
1
0.214286
false
0
0.035714
0.035714
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
1
0
0
0
0
0
0
0
1
45f361ad4157822b664df55eff30c61c7fe1277b
9,226
py
Python
tools/w3af/w3af/plugins/grep/html_comments.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
tools/w3af/w3af/plugins/grep/html_comments.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/w3af/w3af/plugins/grep/html_comments.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
# coding: utf-8 """ html_comments.py Copyright 2006 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 of the License. w3af is distribute...
34.17037
78
0.595274
1,124
9,226
4.743772
0.309609
0.013503
0.013503
0.012003
0.125094
0.098462
0.062266
0.037134
0.014254
0.014254
0
0.011222
0.304574
9,226
269
79
34.297398
0.819825
0.051051
0
0.123288
0
0
0.188725
0.003316
0
0
0
0
0
0
null
null
0.020548
0.075342
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
45fbd76c93b7964a1ad5db84f87ace73ccfeee86
5,262
py
Python
tests/test_logs.py
reactive-firewall/PiAP-python-tools
0313956cef86a4e44c606280e07afb2b94864581
[ "MIT-0" ]
2
2017-05-01T10:25:33.000Z
2018-06-22T21:54:52.000Z
tests/test_logs.py
reactive-firewall/PiAP-python-tools
0313956cef86a4e44c606280e07afb2b94864581
[ "MIT-0" ]
89
2017-05-05T22:11:03.000Z
2020-04-05T03:06:36.000Z
tests/test_logs.py
reactive-firewall/PiAP-python-tools
0313956cef86a4e44c606280e07afb2b94864581
[ "MIT-0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # Pocket PiAP # ...................................................................... # Copyright (c) 2017-2020, Kendrick Walls # ...................................................................... # Licensed under MIT (the "License"); # you may not use this file exce...
29.561798
76
0.644812
705
5,262
4.697872
0.222695
0.05314
0.039251
0.040761
0.650664
0.61715
0.610205
0.578502
0.544384
0.544384
0
0.006069
0.185861
5,262
177
77
29.728814
0.76704
0.240973
0
0.710145
0
0
0.119483
0
0
0
0
0
0.108696
1
0.036232
false
0
0.217391
0
0.26087
0.15942
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
45fc1446e96ae59e7d188c632331531cd91b3cb4
306
py
Python
main.py
CaioMar/dsutils
9975dc7afecd077de9c076470f941eb605e47c4f
[ "MIT" ]
1
2020-03-16T08:58:47.000Z
2020-03-16T08:58:47.000Z
main.py
CaioMar/dsutils
9975dc7afecd077de9c076470f941eb605e47c4f
[ "MIT" ]
null
null
null
main.py
CaioMar/dsutils
9975dc7afecd077de9c076470f941eb605e47c4f
[ "MIT" ]
null
null
null
""" Author: Caio Martins Since: 2019-12 """ import json import querybuilder as qb import importlib importlib.reload(qb) with open('./config.json', 'rb') as file: CONFIG = json.load(fp=file) SAFRAS = ['201901'] QUERY_DICT = CONFIG["123456"] print(qb.ConfigQueryReader(SAFRAS, QUERY_DICT)\ .build())
16.105263
47
0.70915
42
306
5.119048
0.666667
0.093023
0
0
0
0
0
0
0
0
0
0.067925
0.133987
306
18
48
17
0.743396
0.114379
0
0
0
0
0.103053
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
34035b8493c97de2fc18b3ec2638f2cce25b1305
2,001
py
Python
src/mesonic/buffer.py
dreinsch/mesonic
4a37d5e970b6053b741e37a4a737eab2daa31fb9
[ "MIT" ]
null
null
null
src/mesonic/buffer.py
dreinsch/mesonic
4a37d5e970b6053b741e37a4a737eab2daa31fb9
[ "MIT" ]
null
null
null
src/mesonic/buffer.py
dreinsch/mesonic
4a37d5e970b6053b741e37a4a737eab2daa31fb9
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING, NamedTuple, Tuple if TYPE_CHECKING: from mesonic.context import Context class BufferInfo(NamedTuple): """Information about a Buffer.""" frame_count: int channel_count: int sr: int class Buffer: """A Buffer represents a data section that is accessible by th...
26.68
80
0.61919
246
2,001
4.873984
0.272358
0.066722
0.093411
0.095079
0.309425
0.286906
0.205171
0.093411
0.093411
0.093411
0
0.000687
0.272364
2,001
74
81
27.040541
0.822802
0.314343
0
0.179487
0
0
0.035604
0
0
0
0
0
0
1
0.230769
false
0
0.051282
0.025641
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
34043b4260be962e9b88f25c03061eb72115b5bf
10,785
py
Python
src/coco_emnlp/araml_lm.py
kepei1106/ARAML
de87ead8d592098b0df8ff68d75c9e8ab9a2061e
[ "Apache-2.0" ]
37
2019-08-21T12:56:24.000Z
2020-12-10T09:24:02.000Z
src/coco_emnlp/araml_lm.py
kepei1106/ARAML
de87ead8d592098b0df8ff68d75c9e8ab9a2061e
[ "Apache-2.0" ]
2
2019-09-15T09:09:42.000Z
2020-04-26T09:49:36.000Z
src/coco_emnlp/araml_lm.py
kepei1106/ARAML
de87ead8d592098b0df8ff68d75c9e8ab9a2061e
[ "Apache-2.0" ]
2
2019-12-17T09:02:52.000Z
2020-09-29T07:31:23.000Z
import numpy as np import tensorflow as tf import random import os import math import argparse from araml_dataloader import Gen_Data_loader, Dis_dataloader from araml_generator import Generator from araml_rewarder import Rewarder from convert import convert import os import time import lm.lm_train as lm_train SEED = ...
44.566116
142
0.712286
1,545
10,785
4.603884
0.148867
0.031632
0.016449
0.018698
0.284268
0.257978
0.225784
0.194292
0.177984
0.163644
0
0.002895
0.199258
10,785
241
143
44.751037
0.82075
0.100139
0
0.116402
0
0
0.062875
0
0
0
0
0
0
0
null
null
0
0.079365
null
null
0.058201
0
0
0
null
0
0
0
0
0
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
34172629df36b27643c5f0785db0372c24786ff7
1,266
py
Python
evojax/policy/base.py
gecco-evojax/evojax
ac19e541575ff33742ddfdf8cdd6e624e9740cff
[ "Apache-2.0" ]
5
2022-02-03T09:34:23.000Z
2022-02-13T07:22:49.000Z
evojax/policy/base.py
gecco-evojax/evojax
ac19e541575ff33742ddfdf8cdd6e624e9740cff
[ "Apache-2.0" ]
null
null
null
evojax/policy/base.py
gecco-evojax/evojax
ac19e541575ff33742ddfdf8cdd6e624e9740cff
[ "Apache-2.0" ]
1
2022-02-08T02:42:58.000Z
2022-02-08T02:42:58.000Z
# Copyright 2022 The EvoJAX Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
33.315789
78
0.686414
169
1,266
5.094675
0.591716
0.069686
0.030197
0.037166
0
0
0
0
0
0
0
0.008325
0.240916
1,266
37
79
34.216216
0.887617
0.679305
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.3
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
341d752cd1864095646921e8bf7705b7e1de1da6
4,044
py
Python
tcp_apns2.py
int86/apns2-python
09f93e570435e1b3fef6f45617d2754617a854fb
[ "MIT" ]
2
2017-08-15T13:28:05.000Z
2018-03-22T03:30:43.000Z
tcp_apns2.py
int86/apns2-python
09f93e570435e1b3fef6f45617d2754617a854fb
[ "MIT" ]
null
null
null
tcp_apns2.py
int86/apns2-python
09f93e570435e1b3fef6f45617d2754617a854fb
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- import sys import json import socket import time import random import logging import os import threadpool import threading from hyper import HTTP20Connection, tls def make_response(r): info = r.read() code = r.status return code,info def writeLog(info): global...
28.083333
139
0.531157
434
4,044
4.907834
0.373272
0.039437
0.016901
0.023474
0.215962
0.15493
0.095775
0.058216
0.058216
0.058216
0
0.018216
0.334817
4,044
143
140
28.27972
0.773606
0.015331
0
0.12931
0
0
0.120694
0.036711
0
0
0
0
0
0
null
null
0.008621
0.086207
null
null
0.017241
0
0
0
null
0
0
0
0
0
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
342053e897d17bd1e1f6c758b21423bd2f74e4eb
4,988
py
Python
gdxpds/read_gdx.py
serdar-/gdx-pandas
46894fbc60ea84e74fc0e96e2c1a3733e8f6456e
[ "BSD-3-Clause" ]
null
null
null
gdxpds/read_gdx.py
serdar-/gdx-pandas
46894fbc60ea84e74fc0e96e2c1a3733e8f6456e
[ "BSD-3-Clause" ]
null
null
null
gdxpds/read_gdx.py
serdar-/gdx-pandas
46894fbc60ea84e74fc0e96e2c1a3733e8f6456e
[ "BSD-3-Clause" ]
null
null
null
''' [LICENSE] Copyright (c) 2017, Alliance for Sustainable Energy. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list...
32.815789
91
0.716119
704
4,988
4.899148
0.309659
0.044651
0.025515
0.032473
0.215425
0.153668
0.147289
0.138301
0.138301
0.127573
0
0.001788
0.215317
4,988
151
92
33.033113
0.879407
0.517642
0
0.147541
0
0
0.012658
0
0
0
0
0
0
1
0.229508
false
0
0.098361
0.065574
0.491803
0
0
0
0
null
0
0
0
0
0
0
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
3422860c04f8266298946dfc5343b0db04a6729d
247
py
Python
funfact/backend/_context.py
campsd/FunFact
477bcf06794f09608240eba992823fae6fde8dad
[ "BSD-3-Clause-LBNL" ]
37
2021-09-22T17:28:35.000Z
2022-03-07T00:11:17.000Z
funfact/backend/_context.py
campsd/FunFact
477bcf06794f09608240eba992823fae6fde8dad
[ "BSD-3-Clause-LBNL" ]
125
2021-11-04T16:50:24.000Z
2022-03-28T17:54:13.000Z
funfact/backend/_context.py
campsd/FunFact
477bcf06794f09608240eba992823fae6fde8dad
[ "BSD-3-Clause-LBNL" ]
2
2021-12-13T07:28:42.000Z
2021-12-13T07:51:41.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import contextlib context = {} @contextlib.contextmanager def set_context(**kwargs): global context try: context = dict(**kwargs) yield finally: context.clear()
14.529412
32
0.603239
26
247
5.692308
0.769231
0
0
0
0
0
0
0
0
0
0
0.005464
0.259109
247
16
33
15.4375
0.803279
0.17004
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.2
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
34324e6e8ec5e120cddc87ac8460786fdb2ca13d
2,195
py
Python
structural-breaks/count_structural_breaks.py
elifesciences-publications/genomic-features-survival
8c7c62696f56a84b674369391c71ff0c223c9ffd
[ "MIT" ]
15
2019-04-15T21:24:02.000Z
2022-01-31T01:17:48.000Z
structural-breaks/count_structural_breaks.py
elifesciences-publications/genomic-features-survival
8c7c62696f56a84b674369391c71ff0c223c9ffd
[ "MIT" ]
null
null
null
structural-breaks/count_structural_breaks.py
elifesciences-publications/genomic-features-survival
8c7c62696f56a84b674369391c71ff0c223c9ffd
[ "MIT" ]
5
2018-12-07T10:03:28.000Z
2022-03-11T21:08:19.000Z
#!/usr/bin/env python # encoding: utf-8 ''' Created by Joan Smith on 2018-09-08 Copyright (c) 2018. All rights reserved. ''' import sys import os import argparse import glob import pandas as pd import numpy as np sys.path.append('../common/') import utilities as util import analysis def get_options(): parser = a...
29.266667
95
0.724829
318
2,195
4.745283
0.380503
0.10338
0.043075
0.05169
0.027833
0.027833
0
0
0
0
0
0.009504
0.13713
2,195
74
96
29.662162
0.787223
0.016401
0
0
0
0
0.110198
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.020833
0
0
0
null
0
0
0
0
0
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
3436ff32582f0a3bc481e6bea3c253435f9c4699
1,854
py
Python
add_data/clear_db.py
isabella232/rva-screening
99f03a6863c41f159ca12a60c7e34652f4a2e3c3
[ "BSD-3-Clause" ]
12
2015-06-07T01:21:29.000Z
2020-06-27T00:19:31.000Z
add_data/clear_db.py
codeforamerica/rva-screening
99f03a6863c41f159ca12a60c7e34652f4a2e3c3
[ "BSD-3-Clause" ]
197
2015-03-20T20:54:17.000Z
2015-11-17T18:06:02.000Z
add_data/clear_db.py
isabella232/rva-screening
99f03a6863c41f159ca12a60c7e34652f4a2e3c3
[ "BSD-3-Clause" ]
11
2015-09-03T20:00:45.000Z
2021-04-16T10:12:50.000Z
#!/usr/bin/env python import sys import os from sqlalchemy.engine import reflection from sqlalchemy.schema import ( MetaData, Table, DropTable, ForeignKeyConstraint, DropConstraint, ) from app import create_app, db # Clear the database by deleting all tables and recreating them # Exception: don'...
27.671642
92
0.582524
215
1,854
4.883721
0.455814
0.034286
0.026667
0
0
0
0
0
0
0
0
0.000792
0.31931
1,854
66
93
28.090909
0.83122
0.160194
0
0
0
0
0.078014
0.014184
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.044444
0
0
0
null
0
0
0
0
0
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
344a92e1fbdc86b72a2574ceecb818a63e6e8cf8
1,593
py
Python
accounts/api/serializers.py
loafbaker/django_blog
abd912962318527473654c9d2043f4a361a4abf1
[ "MIT" ]
null
null
null
accounts/api/serializers.py
loafbaker/django_blog
abd912962318527473654c9d2043f4a361a4abf1
[ "MIT" ]
null
null
null
accounts/api/serializers.py
loafbaker/django_blog
abd912962318527473654c9d2043f4a361a4abf1
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from rest_framework import serializers User = get_user_model() class UserCreateSerializer(serializers.ModelSerializer): email = serializers.EmailField(allow_blank=False) email2 = serializers.EmailField(label='Confirm Email', write_only=True) class Meta: ...
28.446429
88
0.586943
152
1,593
5.986842
0.421053
0.071429
0.026374
0.03956
0.07033
0.07033
0
0
0
0
0
0.002747
0.314501
1,593
56
89
28.446429
0.830586
0
0
0.212766
0
0
0.132371
0
0
0
0
0
0
1
0.06383
false
0.106383
0.042553
0
0.297872
0
0
0
0
null
0
0
0
0
0
0
0
0
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
344d2dbd1474b1177d4a7dd75b27c21220b3b8e3
303
py
Python
webgame/wgserver/Player.py
breezechen/zevent
f86219b3ce4afbb516b22c41ce125b0f916c490c
[ "Apache-2.0" ]
1
2021-11-19T06:14:16.000Z
2021-11-19T06:14:16.000Z
webgame/wgserver/Player.py
geniejl/zevent
5dd3de57adf1deecc8f008db387ebfa460767fda
[ "Apache-2.0" ]
null
null
null
webgame/wgserver/Player.py
geniejl/zevent
5dd3de57adf1deecc8f008db387ebfa460767fda
[ "Apache-2.0" ]
2
2017-07-15T02:40:52.000Z
2021-11-19T06:14:18.000Z
class Player(object): INIT_STATE = 0x00 ENTERED_STATE = 0x01 READY_STATE = 0x02 def __init__(self): #0 1 logined 2 entered self.state = self.INIT_STATE #hex self.peerid = -1 self.character = None self.qobject = None self.active = False self.aoilist = [] self.sendmsgs = []
15.947368
29
0.666667
42
303
4.619048
0.595238
0.092784
0
0
0
0
0
0
0
0
0
0.055794
0.231023
303
18
30
16.833333
0.776824
0.079208
0
0
0
0
0
0
0
0
0.043636
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
344eb88608f28c9e98804b8ef6ea849a451e797e
3,719
py
Python
squiggler/model_tools.py
JohnUrban/squiggler
3ae5a1d0568d99bf914ce02a576a41f2e121686a
[ "MIT" ]
1
2017-04-03T19:49:47.000Z
2017-04-03T19:49:47.000Z
squiggler/model_tools.py
JohnUrban/squiggler
3ae5a1d0568d99bf914ce02a576a41f2e121686a
[ "MIT" ]
null
null
null
squiggler/model_tools.py
JohnUrban/squiggler
3ae5a1d0568d99bf914ce02a576a41f2e121686a
[ "MIT" ]
null
null
null
import sys import h5py import logging import matplotlib.pyplot as plt logger = logging.getLogger('squiggler') import os, squiggler # model header: kmer, level_mean, level_stdv, sd_mean, sd_stdv, weight # older base caller also had "variant" between kmer and level_mean def get_path(strand): if strand == "template...
35.084906
103
0.630815
529
3,719
4.20794
0.179584
0.02965
0.025157
0.048518
0.552561
0.552561
0.473944
0.444744
0.444744
0.444744
0
0.032011
0.227212
3,719
105
104
35.419048
0.742519
0.150309
0
0.282051
0
0
0.117759
0.077658
0
0
0
0
0
0
null
null
0
0.064103
null
null
0.141026
0
0
0
null
0
0
0
0
0
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
344edfd26634917f2efbef46f20a94ae5e5153c4
201
py
Python
problems/2. Two Sum II.py
mr-vaibh/Python-200days-leetcode
7d0b4c15f91ef1384fb41a967d61cbc508cac034
[ "MIT" ]
null
null
null
problems/2. Two Sum II.py
mr-vaibh/Python-200days-leetcode
7d0b4c15f91ef1384fb41a967d61cbc508cac034
[ "MIT" ]
null
null
null
problems/2. Two Sum II.py
mr-vaibh/Python-200days-leetcode
7d0b4c15f91ef1384fb41a967d61cbc508cac034
[ "MIT" ]
null
null
null
numbers = [-1,0] target = -1 hashMap = {} for index, num in enumerate(numbers): diff = target - num if diff in hashMap: print([hashMap[diff]+1, index+1]) hashMap[num] = index
18.272727
41
0.587065
28
201
4.214286
0.464286
0.135593
0
0
0
0
0
0
0
0
0
0.034014
0.268657
201
11
42
18.272727
0.768707
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
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
3454050e7f5b95105797d9faee703c062a37cddc
368
py
Python
snippets/get_hsv.py
lavish/drs
d6a75ddf429c92bca648a08cd62850c218e56f67
[ "MIT" ]
1
2015-01-23T23:17:09.000Z
2015-01-23T23:17:09.000Z
snippets/get_hsv.py
lavish/drs
d6a75ddf429c92bca648a08cd62850c218e56f67
[ "MIT" ]
null
null
null
snippets/get_hsv.py
lavish/drs
d6a75ddf429c92bca648a08cd62850c218e56f67
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import division, print_function from time import sleep from colorsys import rgb_to_hsv from ev3dev import * col_sensor = color_sensor() col_sensor.mode = 'RGB-RAW' while True: raw_input("Press enter to sample") print(rgb_to_hsv(*[col_sensor.value(i)/...
23
90
0.736413
59
368
4.322034
0.644068
0.141176
0.062745
0
0
0
0
0
0
0
0
0.018987
0.141304
368
15
91
24.533333
0.787975
0.103261
0
0
0
0
0.085366
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
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
0
0
0
0
1
0
0
0
0
1
3454659b19e45509499e6b9151b4e30db1287e24
1,180
py
Python
xrpc_tests/serde/test_versioning.py
andreycizov/python-xrpc
ed403ae74d5e89e0ebac68bcc58591d6b32742ff
[ "Apache-2.0" ]
null
null
null
xrpc_tests/serde/test_versioning.py
andreycizov/python-xrpc
ed403ae74d5e89e0ebac68bcc58591d6b32742ff
[ "Apache-2.0" ]
null
null
null
xrpc_tests/serde/test_versioning.py
andreycizov/python-xrpc
ed403ae74d5e89e0ebac68bcc58591d6b32742ff
[ "Apache-2.0" ]
null
null
null
import unittest from pprint import pprint from typing import Optional from dataclasses import dataclass from xrpc.const import SERVER_SERDE_INST from xrpc.serde.abstract import SerdeSet from xrpc.serde.error import SerdeException @dataclass class ObjV1: a: int @dataclass class ObjV2Err(ObjV1): b: int @d...
26.222222
87
0.70339
157
1,180
5.178344
0.33121
0.132841
0.092251
0.084871
0.227552
0.194342
0.123001
0.123001
0.123001
0.123001
0
0.021053
0.194915
1,180
44
88
26.818182
0.834737
0
0
0.09375
0
0
0.00339
0
0
0
0
0
0.09375
1
0.09375
false
0
0.21875
0
0.53125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
345472c671a7c89fcc6735003a6d2d4b73a2b807
896
py
Python
global vs local and scope/scope1.py
ragulkesavan/Python-75-Hackathon
adda961155467a428938fc52e2d761bf5b786788
[ "MIT" ]
null
null
null
global vs local and scope/scope1.py
ragulkesavan/Python-75-Hackathon
adda961155467a428938fc52e2d761bf5b786788
[ "MIT" ]
null
null
null
global vs local and scope/scope1.py
ragulkesavan/Python-75-Hackathon
adda961155467a428938fc52e2d761bf5b786788
[ "MIT" ]
null
null
null
#SCOPE USING NONLOCAL KEYWORD x = 10#GLOBAL VARIABLE X def outer(): x=20#LOCAL VARIABLE X y=30#LOCAL VARIABLE Y print("outer func x before inner call:", x) print("outer func y before inner call:", y) def inner(): nonlocal y#LOCAL VARIABLE Y REFERS TO ITS ABOVE LEVEL OUTER Y global x#...
26.352941
69
0.652902
159
896
3.679245
0.188679
0.123077
0.095727
0.082051
0.362393
0.362393
0.08547
0
0
0
0
0.044709
0.251116
896
33
70
27.151515
0.827124
0.210938
0
0
0
0
0.401274
0
0
0
0
0
0
1
0.105263
false
0
0
0
0.105263
0.421053
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
345f02bec53cd84ed5383896ce3d0f473ab0ec6c
2,057
py
Python
main.py
khoisteve209/my_own_calculator
4bd6a59b425cb3118f19df910fed03318824257f
[ "Apache-2.0" ]
null
null
null
main.py
khoisteve209/my_own_calculator
4bd6a59b425cb3118f19df910fed03318824257f
[ "Apache-2.0" ]
null
null
null
main.py
khoisteve209/my_own_calculator
4bd6a59b425cb3118f19df910fed03318824257f
[ "Apache-2.0" ]
null
null
null
import webbrowser as wb import tkinter from tkinter import messagebox window = tkinter.Tk() window.title("Calculator") btn_add = tkinter.Button(window, text="Addition", font=("Consolas", 12)) btn_add.pack(padx=10, pady=10) count1 = 0 def click1(event): global count1 count1 = count1 + 1 if c...
24.488095
95
0.631502
275
2,057
4.64
0.28
0.05094
0.074451
0.090125
0.147335
0.147335
0.147335
0.147335
0.147335
0.147335
0
0.052632
0.214876
2,057
83
96
24.783133
0.737461
0
0
0.16129
0
0
0.256839
0.132219
0
0
0
0
0
1
0.080645
false
0.080645
0.048387
0
0.129032
0
0
0
0
null
0
0
0
0
0
0
0
0
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
346ed9f245ae4ebde76014dc4a70b9c0522a9e05
4,959
py
Python
test/test_pycli.py
HyeockJinKim/DecoCLI
8c0005e31d4fb84498d71f5d26bffa2f137909ed
[ "MIT" ]
null
null
null
test/test_pycli.py
HyeockJinKim/DecoCLI
8c0005e31d4fb84498d71f5d26bffa2f137909ed
[ "MIT" ]
null
null
null
test/test_pycli.py
HyeockJinKim/DecoCLI
8c0005e31d4fb84498d71f5d26bffa2f137909ed
[ "MIT" ]
null
null
null
import unittest from sys import argv from decocli.api import cli_class from decocli.cli import CLI from decocli.mbr.subcli import SubCLI class TestPyCLI(unittest.TestCase): def setUp(self): a = argv a.clear() a.append('decoCLI.py') CLI.clear() CLI.set_param('--name', 'nam...
21.75
110
0.502924
592
4,959
4.069257
0.119932
0.066833
0.048568
0.049813
0.608136
0.523869
0.489
0.440432
0.364051
0.350353
0
0.01423
0.376487
4,959
227
111
21.845815
0.764877
0
0
0.596386
0
0
0.100827
0
0
0
0
0
0.084337
1
0.228916
false
0
0.03012
0.096386
0.403614
0.024096
0
0
0
null
0
0
0
0
0
0
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
347a99988f4029d29c80bf1ef53e468b3e49d1d4
5,214
py
Python
simclr/utils/args.py
Lee-Gihun/MixCo-Mixup-Contrast
1d8eacce057d385f187ee07b0365c9e4e1670981
[ "MIT" ]
40
2020-11-15T08:19:06.000Z
2022-01-20T13:19:54.000Z
simclr/utils/args.py
sungnyun/Mixco-Mixup-Contrast
1d8eacce057d385f187ee07b0365c9e4e1670981
[ "MIT" ]
3
2021-04-14T02:41:11.000Z
2022-01-11T04:51:22.000Z
simclr/utils/args.py
sungnyun/Mixco-Mixup-Contrast
1d8eacce057d385f187ee07b0365c9e4e1670981
[ "MIT" ]
7
2020-11-15T08:17:31.000Z
2022-03-22T09:57:28.000Z
import argparse __all__ = ['parse_args'] def parse_args(): parser = argparse.ArgumentParser(description='PyTorch ImageNet Training') # basic configs: parser.add_argument('--exp-name', default='test', type=str, help='experiment_name') parser.add_argument('--data-path', ...
56.064516
85
0.572689
584
5,214
5.020548
0.306507
0.104366
0.197135
0.040928
0.243179
0.187585
0.095498
0.07708
0.07708
0.040928
0
0.020419
0.286153
5,214
92
86
56.673913
0.767329
0.018987
0
0.051948
0
0
0.358583
0.010374
0
0
0
0
0
1
0.012987
false
0
0.012987
0
0.038961
0.025974
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
347dd28a17d394f2cde6685e9ee01a2a00e3d527
2,143
py
Python
001-python-core-language/013_module.py
CHemaxi/python
6544ea79be447bcd39488e7366685966bebd9964
[ "MIT" ]
null
null
null
001-python-core-language/013_module.py
CHemaxi/python
6544ea79be447bcd39488e7366685966bebd9964
[ "MIT" ]
null
null
null
001-python-core-language/013_module.py
CHemaxi/python
6544ea79be447bcd39488e7366685966bebd9964
[ "MIT" ]
null
null
null
#======================================================================================================== # TOPIC: PYTHON - Modules #======================================================================================================== # NOTES: * Any Python file is a module. # * Module is a file with Python ...
40.433962
105
0.465236
196
2,143
4.97449
0.454082
0.032821
0.038974
0.057436
0.06359
0.06359
0
0
0
0
0
0.01359
0.175922
2,143
52
106
41.211538
0.538505
0.808213
0
0
0
0
0.284337
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
347edbf303132837525efc10465ec20f47728241
289
py
Python
project/api/migrations/0004_delete_main.py
hlystovea/BBBS
7164ef67615e45d750e965bf958af229b56d49e3
[ "BSD-3-Clause" ]
null
null
null
project/api/migrations/0004_delete_main.py
hlystovea/BBBS
7164ef67615e45d750e965bf958af229b56d49e3
[ "BSD-3-Clause" ]
2
2021-06-07T14:06:05.000Z
2021-06-18T16:27:29.000Z
project/api/migrations/0004_delete_main.py
hlystovea/BBBS
7164ef67615e45d750e965bf958af229b56d49e3
[ "BSD-3-Clause" ]
2
2021-07-27T20:40:18.000Z
2021-09-12T16:48:19.000Z
# Generated by Django 3.2.3 on 2021-06-07 13:29 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0003_auto_20210605_0125'), ] operations = [ migrations.DeleteModel( name='Main', ), ]
17
47
0.595156
32
289
5.28125
0.84375
0
0
0
0
0
0
0
0
0
0
0.15122
0.290657
289
16
48
18.0625
0.673171
0.155709
0
0
1
0
0.123967
0.095041
0
0
0
0
0
1
0
false
0
0.1
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
caa0e6b8a9a70654b376fe3b1e3a13770f5dc235
546
py
Python
Generators/pi_generator.py
Scottie-Richardson/python-masterclass
62a1baa398ea67bbbb6b23705264530ff1ce7afe
[ "MIT" ]
1
2020-04-14T13:05:10.000Z
2020-04-14T13:05:10.000Z
Generators/pi_generator.py
Scottie-Richardson/python-masterclass
62a1baa398ea67bbbb6b23705264530ff1ce7afe
[ "MIT" ]
null
null
null
Generators/pi_generator.py
Scottie-Richardson/python-masterclass
62a1baa398ea67bbbb6b23705264530ff1ce7afe
[ "MIT" ]
null
null
null
# Generates an infinite series of odd numbers def odds(): n = 1 while True: yield n n += 2 def pi_series(): odd_nums = odds() approximation = 0 while True: approximation += (4 / next(odd_nums)) yield approximation approxim...
22.75
78
0.571429
68
546
4.485294
0.514706
0.068852
0.118033
0.137705
0.281967
0.281967
0.281967
0
0
0
0
0.028249
0.351648
546
23
79
23.73913
0.833333
0.21978
0
0.25
1
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
caa0fc1f3f39650443ff9fc380422761118f0068
713
py
Python
nozomi/security/abstract_session.py
thatch/nozomi
547fb5c554f79cda1b038b1500c513fbec8bee0b
[ "MIT" ]
1
2020-09-23T02:21:14.000Z
2020-09-23T02:21:14.000Z
nozomi/security/abstract_session.py
thatch/nozomi
547fb5c554f79cda1b038b1500c513fbec8bee0b
[ "MIT" ]
1
2020-05-21T02:48:36.000Z
2020-05-21T02:48:36.000Z
nozomi/security/abstract_session.py
thatch/nozomi
547fb5c554f79cda1b038b1500c513fbec8bee0b
[ "MIT" ]
2
2019-12-28T10:50:50.000Z
2020-05-21T15:53:02.000Z
""" Nozomi Abstract API Session Module author: hugh@blinkybeach.com """ from nozomi.data.decodable import Decodable from nozomi.security.agent import Agent from nozomi.ancillary.immutable import Immutable from nozomi.security.perspective import Perspective from typing import TypeVar T = TypeVar('T', bound='AbstractSes...
27.423077
54
0.781206
82
713
6.682927
0.414634
0.072993
0.065693
0.091241
0
0
0
0
0
0
0
0
0.148668
713
25
55
28.52
0.902801
0.088359
0
0
0
0
0.024922
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.933333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
caa9cc5de80fa4b5f25329fbc2cef506386c1681
418
py
Python
main/migrations/0011_auctionlot_collected.py
Arts-Technology-Lab/exp_taste
291d26894c534a82379252d1af1b9b0b321fc71b
[ "MIT" ]
null
null
null
main/migrations/0011_auctionlot_collected.py
Arts-Technology-Lab/exp_taste
291d26894c534a82379252d1af1b9b0b321fc71b
[ "MIT" ]
null
null
null
main/migrations/0011_auctionlot_collected.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-20 00:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0010_auto_20210120_0029'), ] operations = [ migrations.AddField( model_name='auctionlot', name='collected',...
22
79
0.617225
44
418
5.75
0.818182
0.102767
0
0
0
0
0
0
0
0
0
0.104575
0.267943
418
18
80
23.222222
0.722222
0.110048
0
0
1
0
0.148649
0.062162
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
cab618f562640c40b0b2141461ca7471af959ca4
3,410
py
Python
rsyslog_cee/timer.py
victusfate/rsyslog_cee
f3da35bb1aeb282176831b139f63d0a6307d74ac
[ "MIT" ]
null
null
null
rsyslog_cee/timer.py
victusfate/rsyslog_cee
f3da35bb1aeb282176831b139f63d0a6307d74ac
[ "MIT" ]
null
null
null
rsyslog_cee/timer.py
victusfate/rsyslog_cee
f3da35bb1aeb282176831b139f63d0a6307d74ac
[ "MIT" ]
null
null
null
import json import time from typing import Optional from json import JSONEncoder class TimeKept(): start: float stop: float range: float def __init__(self,start: float,stop: float,range: float): self.start = start self.stop = stop self.range = range def asdict(self): return {'start': ...
23.680556
81
0.627859
418
3,410
5.0311
0.15311
0.051355
0.048502
0.027104
0.075131
0.0466
0
0
0
0
0
0.007431
0.250147
3,410
143
82
23.846154
0.815018
0.01085
0
0.079646
0
0
0.010982
0
0
0
0
0
0
1
0.176991
false
0
0.035398
0.070796
0.504425
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
cab8a11c4058841a55e346a3fd85572e6108c7e9
954
py
Python
runner.py
orionsring/basic_python
2556d1b3d95334f41cf688f61d4e65bbf38e701a
[ "MIT" ]
null
null
null
runner.py
orionsring/basic_python
2556d1b3d95334f41cf688f61d4e65bbf38e701a
[ "MIT" ]
null
null
null
runner.py
orionsring/basic_python
2556d1b3d95334f41cf688f61d4e65bbf38e701a
[ "MIT" ]
null
null
null
from amaze.maze import NORTH, SOUTH, WEST, EAST DIRECTIONS = [EAST, NORTH, WEST, SOUTH] LEFT_HAND_DIR = [NORTH, WEST, SOUTH, EAST] def run(maze): """Solves the maze by a simple search: always keep wall, starting top left and ending at bottom right """ runner = Runner(maze) yield runner.loca...
20.73913
59
0.577568
122
954
4.393443
0.47541
0.027985
0.052239
0
0
0
0
0
0
0
0
0.004717
0.333333
954
46
60
20.73913
0.83805
0
0
0.166667
0
0
0
0
0
0
0
0
0
0
null
null
0
0.083333
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
cabc04fde0f9b8ca5a581d45a7b737805c18d3de
1,677
py
Python
test_version.py
DocSavage/clio-store-py
9019adc9b008c7f94e4bcf7e832eb9fe93e0d925
[ "Apache-2.0" ]
null
null
null
test_version.py
DocSavage/clio-store-py
9019adc9b008c7f94e4bcf7e832eb9fe93e0d925
[ "Apache-2.0" ]
null
null
null
test_version.py
DocSavage/clio-store-py
9019adc9b008c7f94e4bcf7e832eb9fe93e0d925
[ "Apache-2.0" ]
null
null
null
data = [ {'v': 'v0.1', 't': 1391}, {'v': 'v0.1', 't': 1394}, {'v': 'v0.1', 't': 1300}, {'v': 'v0.1', 't': 1321}, {'v': 'v0.1.3', 't': 1491}, {'v': 'v0.1.3', 't': 1494}, {'v': 'v0.1.3', 't': 1400}, {'v': 'v0.1.3', 't': 1421}, {'v': 'v0.1.2', 't': 1291}, {'v': 'v0.1.2', 't': 1294},...
29.946429
113
0.444842
270
1,677
2.714815
0.259259
0.102319
0.065484
0.034106
0.279673
0.120055
0.120055
0.120055
0
0
0
0.152961
0.274896
1,677
55
114
30.490909
0.449836
0
0
0
0
0
0.228384
0
0
0
0
0
0
1
0.019608
false
0
0
0
0.039216
0.039216
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
cac64ed1e80a643be3de902ca69f19baa1424d93
943
py
Python
source/localhost.py
vb64/Tg2Vk
317c4962d19770ff7919ab67e25cc9d375df0c4e
[ "MIT" ]
null
null
null
source/localhost.py
vb64/Tg2Vk
317c4962d19770ff7919ab67e25cc9d375df0c4e
[ "MIT" ]
null
null
null
source/localhost.py
vb64/Tg2Vk
317c4962d19770ff7919ab67e25cc9d375df0c4e
[ "MIT" ]
null
null
null
""" This file run your bot on localhost. Bot works until Ctrl+C pressed. """ import os import sys import logging import gettext import settings def main(): """ Read credentials from settings.py. Set up i18n and define '_' function in the global namespace. Add 'libs' directory with libraries, and start the...
22.452381
73
0.644751
122
943
4.819672
0.631148
0.05102
0
0
0
0
0
0
0
0
0
0.004167
0.236479
943
41
74
23
0.8125
0.016967
0
0
0
0
0.119469
0
0
0
0
0
0
0
null
null
0.037037
0.222222
null
null
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
cac6f3f112803c39b1ebe41fb1634cda325b0bfa
1,118
py
Python
team_9/cocos/samples/tetrico/levels.py
Donnyvdm/dojo19
3cf043a84e3ad6d3c4d59cd9c50b160e1ff03400
[ "BSD-3-Clause" ]
1
2019-09-15T18:59:49.000Z
2019-09-15T18:59:49.000Z
team_9/cocos/samples/tetrico/levels.py
Donnyvdm/dojo19
3cf043a84e3ad6d3c4d59cd9c50b160e1ff03400
[ "BSD-3-Clause" ]
null
null
null
team_9/cocos/samples/tetrico/levels.py
Donnyvdm/dojo19
3cf043a84e3ad6d3c4d59cd9c50b160e1ff03400
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division, print_function, unicode_literals from colors import * class Level( object ): pass class LevelLens( Level ): speed = 0.5 blocks = [ Colors.LENS ] lines = 10 prob = 0.07 class LevelScale( Level ): speed = 0.5 blocks = [ Colors.SCALE ] lines = 10 pro...
19.614035
115
0.61449
140
1,118
4.864286
0.378571
0.117474
0.129222
0.052863
0.126285
0.126285
0
0
0
0
0
0.073474
0.281753
1,118
56
116
19.964286
0.774595
0
0
0.155556
0
0
0
0
0
0
0
0
0
1
0
false
0.022222
0.044444
0
0.955556
0.022222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
cacaa5561f4182e29c5b4c4c27f0aef4adcb2b6d
3,191
py
Python
regionsBetween.py
RWWB/simple3Cseq
380955f9483fcb9928c0604e587aadef507158ad
[ "MIT" ]
2
2018-03-14T22:42:46.000Z
2019-04-15T12:37:04.000Z
regionsBetween.py
RWWB/simple3Cseq
380955f9483fcb9928c0604e587aadef507158ad
[ "MIT" ]
null
null
null
regionsBetween.py
RWWB/simple3Cseq
380955f9483fcb9928c0604e587aadef507158ad
[ "MIT" ]
null
null
null
#/bin/env python import os import os.path import sys import getopt from libutil import BedWriter, BedReader def readSeqSizes( fname ): ''' Read the genome sizes from a file ''' f = open( fname, 'rU' ) # get the size from the rv = {} for l in f: if l[0] ...
22.792857
103
0.497023
392
3,191
4.022959
0.313776
0.022828
0.022828
0.024731
0.114775
0.06785
0.06785
0.027901
0
0
0
0.013259
0.385459
3,191
139
104
22.956835
0.790923
0.130993
0
0.055556
0
0.013889
0.167139
0
0
0
0
0
0
0
null
null
0
0.069444
null
null
0.027778
0
0
0
null
0
0
0
0
0
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
cacd6fc20450c41dbbf0333c0e5b7cf63b239ae1
10,673
py
Python
src/couche_network/protocol_ip.py
adrienKoumgangT/offline-internet-packet-analyzer
84125521b746a3ced37c999c30156033eee1aba9
[ "MIT" ]
1
2021-12-13T20:36:58.000Z
2021-12-13T20:36:58.000Z
src/couche_network/protocol_ip.py
adrienKoumgangT/offline-internet-packet-analyzer
84125521b746a3ced37c999c30156033eee1aba9
[ "MIT" ]
null
null
null
src/couche_network/protocol_ip.py
adrienKoumgangT/offline-internet-packet-analyzer
84125521b746a3ced37c999c30156033eee1aba9
[ "MIT" ]
1
2021-12-13T20:37:01.000Z
2021-12-13T20:37:01.000Z
# from utils.utils import * from src.couche_transport.protocol_icmp import * from src.couche_transport.protocol_tcp import * from src.couche_transport.protocol_udp import * def get_flags_and_fragment_offset(flags_frag: list) -> list: ff = "".join(flags_frag[0:2]) b_ff = convert_base_b1_to_b2(number=ff, base1=...
39.973783
111
0.613042
1,389
10,673
4.455004
0.214543
0.020362
0.029412
0.028442
0.196833
0.108759
0.052521
0.021978
0
0
0
0.032075
0.290171
10,673
266
112
40.12406
0.784715
0.225897
0
0.188482
0
0
0.07789
0
0
0
0
0.003759
0
1
0.015707
false
0.057592
0.015707
0.005236
0.04712
0
0
0
0
null
0
0
0
0
0
0
0
0
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
cad6cad7578c29a0290efa6254cc2e92c4cb886e
1,147
py
Python
example/openid_relying_party/auto/application.py
rohe/fedservice
1460d21217b804cac0f38fa26ffa24bee7cf6dad
[ "Apache-2.0" ]
3
2018-11-28T12:01:31.000Z
2020-12-16T21:43:29.000Z
example/openid_relying_party/auto/application.py
rohe/fedservice
1460d21217b804cac0f38fa26ffa24bee7cf6dad
[ "Apache-2.0" ]
13
2020-02-10T15:33:37.000Z
2022-02-01T16:43:36.000Z
example/openid_relying_party/auto/application.py
rohe/fedservice
1460d21217b804cac0f38fa26ffa24bee7cf6dad
[ "Apache-2.0" ]
4
2019-05-29T10:04:48.000Z
2020-10-14T09:52:53.000Z
import os from flask.app import Flask from oidcmsg.configure import Configuration from oidcmsg.configure import create_from_config_file from fedservice.configure import FedRPConfiguration from fedservice.rp import init_oidc_rp_handler dir_path = os.path.dirname(os.path.realpath(__file__)) def oidc_provider_init_ap...
31.861111
82
0.642546
139
1,147
4.992806
0.410072
0.043228
0.04755
0.074928
0.074928
0.074928
0
0
0
0
0
0
0.28422
1,147
35
83
32.771429
0.845311
0.061901
0
0
0
0
0.03352
0
0
0
0
0
0
1
0.043478
false
0
0.391304
0
0.478261
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
cad99574798f3de665be9e780006abc559363212
280
py
Python
config/base_conf.py
EasonHe/zabbix_api_op
29efd42d9c628a334d83465ce789f6a53866826b
[ "MIT" ]
2
2017-09-26T01:45:14.000Z
2017-10-16T06:56:29.000Z
config/base_conf.py
EasonHe/zabbix_api_op
29efd42d9c628a334d83465ce789f6a53866826b
[ "MIT" ]
null
null
null
config/base_conf.py
EasonHe/zabbix_api_op
29efd42d9c628a334d83465ce789f6a53866826b
[ "MIT" ]
null
null
null
import json url = 'http://192.168.249.130/zabbix/api_jsonrpc.php' header= {"Content-Type": "application/json"} data = { "jsonrpc": "2.0", "method": "user.login", "params": { "user": "Admin", "password": "zabbix" }, "id": 1, "auth": None }
18.666667
53
0.532143
33
280
4.484848
0.878788
0
0
0
0
0
0
0
0
0
0
0.070755
0.242857
280
14
54
20
0.627358
0
0
0
0
0
0.480287
0
0
0
0
0
0
1
0
false
0.076923
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
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
cada51bc9cdd0dc4ca5aec2245f29327d462cb3f
1,514
py
Python
explorer/explorer/registers/migrations/0003_auto_20211205_1658.py
pyjavo/explorer
eed0acd29775a01552cde11725e48c2210a79bf7
[ "MIT" ]
null
null
null
explorer/explorer/registers/migrations/0003_auto_20211205_1658.py
pyjavo/explorer
eed0acd29775a01552cde11725e48c2210a79bf7
[ "MIT" ]
null
null
null
explorer/explorer/registers/migrations/0003_auto_20211205_1658.py
pyjavo/explorer
eed0acd29775a01552cde11725e48c2210a79bf7
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-12-05 22:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('registers', '0002_register_new_dataset'), ] operations = [ migrations.CreateModel( name='AWSConstants', fields=[ ...
37.85
152
0.590489
152
1,514
5.684211
0.592105
0.069444
0.043981
0.053241
0.094907
0.094907
0
0
0
0
0
0.026927
0.288639
1,514
39
153
38.820513
0.775302
0.029723
0
0.212121
1
0
0.237219
0.017042
0
0
0
0
0
1
0
false
0
0.030303
0
0.121212
0
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
cae4e188f6eb643514a13725223cfc2cdd428b35
676
py
Python
RPI_Telegram_Last/Main.py
SaxAlien/crap-code
bff99bc4501d1c7bc8c169c1b66a2d6bd7ad3494
[ "Apache-2.0" ]
null
null
null
RPI_Telegram_Last/Main.py
SaxAlien/crap-code
bff99bc4501d1c7bc8c169c1b66a2d6bd7ad3494
[ "Apache-2.0" ]
null
null
null
RPI_Telegram_Last/Main.py
SaxAlien/crap-code
bff99bc4501d1c7bc8c169c1b66a2d6bd7ad3494
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Al13n_ smarthome RPi-based telegram bot, lmao Main module, nothing else """ # ToDo: add more useful stuff, make more nicely __version__ = 'r0.3-STABLE' __author__ = 'Al13n_' __license__ = None import core.helpers import core.telegram def Main(): try: ...
22.533333
95
0.637574
88
676
4.602273
0.613636
0.108642
0.103704
0.133333
0.11358
0
0
0
0
0
0
0.012963
0.201183
676
29
96
23.310345
0.737037
0.236686
0
0
0
0
0.263889
0
0
0
0
0.034483
0
1
0.066667
false
0
0.133333
0
0.2
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
cae69cebf43141797270dce36aac90b39e9b9d01
838
py
Python
article/models.py
langliu/myblog
8fd03b839fc814b1bb63110e8c78bf7d6b0baf11
[ "Apache-2.0" ]
null
null
null
article/models.py
langliu/myblog
8fd03b839fc814b1bb63110e8c78bf7d6b0baf11
[ "Apache-2.0" ]
null
null
null
article/models.py
langliu/myblog
8fd03b839fc814b1bb63110e8c78bf7d6b0baf11
[ "Apache-2.0" ]
null
null
null
from django.db import models class Article(models.Model): id = models.AutoField(primary_key=True) title = models.TextField(max_length=200) create_date = models.DateField() update_date = models.DateField() content = models.TextField() author = models.CharField(max_length=50) class Tag(models....
25.393939
44
0.725537
102
838
5.852941
0.313725
0.092127
0.108878
0.159129
0.556114
0.556114
0.556114
0.556114
0.485762
0.485762
0
0.01567
0.162291
838
32
45
26.1875
0.834758
0
0
0.409091
0
0
0
0
0
0
0
0
0
1
0
false
0
0.045455
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
caedcaff3456f73c14cf2868f915649f21c6dd5e
49,949
py
Python
old/cutCyl.py
maho3/gal-ML
678dea1af377ff3c7fa21fca622d4851e2659192
[ "MIT" ]
null
null
null
old/cutCyl.py
maho3/gal-ML
678dea1af377ff3c7fa21fca622d4851e2659192
[ "MIT" ]
null
null
null
old/cutCyl.py
maho3/gal-ML
678dea1af377ff3c7fa21fca622d4851e2659192
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 #Usage: read in a catalog and cut cylinders around each cluster import numpy as np from array import array import math import random import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from bisect import bisect_left from scipy.stats import skew from scipy.stats import kur...
39.485375
258
0.550021
6,079
49,949
4.508801
0.15825
0.01204
0.009413
0.007589
0.25758
0.217046
0.191579
0.181729
0.160531
0.143311
0
0.028173
0.290096
49,949
1,264
259
39.516614
0.744804
0.252217
0
0.218254
0
0
0.170608
0.017077
0
0
0
0
0
0
null
null
0
0.017196
null
null
0.164021
0
0
0
null
0
0
0
0
0
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
caefc0a0d8f018d7ddce85a59ee0dac2b819edb9
13,102
py
Python
eon/eon/src/util/vis/Parsing/Data_Grab.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
1
2020-02-28T20:35:09.000Z
2020-02-28T20:35:09.000Z
eon/eon/src/util/vis/Parsing/Data_Grab.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
null
null
null
eon/eon/src/util/vis/Parsing/Data_Grab.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
null
null
null
#!/usr/bin/python import datetime; from datetime import datetime; import imaplib; import MySQLdb; import pickle; import re; import sys; import os.path; fname = os.path.expanduser("~/.data_grab") if (os.path.exists(fname)): f = file(fname); last_email = pickle.load(f) f.close() else: last_email = {} dictfname = o...
31.571084
578
0.617387
1,952
13,102
4.079406
0.191086
0.014567
0.019967
0.024112
0.218008
0.17192
0.13073
0.106367
0.096948
0.096948
0
0.031513
0.166845
13,102
414
579
31.647343
0.697966
0.154328
0
0.146853
0
0.024476
0.284363
0.007641
0
0
0.001455
0
0
0
null
null
0.01049
0.027972
null
null
0.062937
0
0
0
null
0
0
0
0
0
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
caf0c548ca7acc60b070d245215270e5047626a7
2,091
py
Python
foodgram/users/migrations/0001_initial.py
sh2MAN/foodgram-project
0b8b88a4066688318c5decf4869ed89374d0d0ac
[ "BSD-3-Clause" ]
null
null
null
foodgram/users/migrations/0001_initial.py
sh2MAN/foodgram-project
0b8b88a4066688318c5decf4869ed89374d0d0ac
[ "BSD-3-Clause" ]
null
null
null
foodgram/users/migrations/0001_initial.py
sh2MAN/foodgram-project
0b8b88a4066688318c5decf4869ed89374d0d0ac
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.2 on 2021-01-08 20:08 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('recipes', '0001_initial'), migrations.swappable_dependency(settin...
41
173
0.616451
204
2,091
6.137255
0.323529
0.070288
0.055911
0.087859
0.459265
0.337061
0.337061
0.337061
0.337061
0.337061
0
0.011538
0.253945
2,091
50
174
41.82
0.791026
0.020564
0
0.372093
1
0
0.152981
0
0
0
0
0
0
1
0
false
0
0.069767
0
0.162791
0
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
caf113103e2106f19da6be6994cd89ee8b36c086
445
py
Python
harnessed_jobs/ptc_BOT/v0/producer_ptc_BOT.py
duncanwood/EO-analysis-jobs
26d22e49c0d2e32fbf2759f504048754f66ecc45
[ "BSD-3-Clause-LBNL" ]
2
2018-07-26T09:32:46.000Z
2019-05-28T20:57:43.000Z
harnessed_jobs/ptc_BOT/v0/producer_ptc_BOT.py
duncanwood/EO-analysis-jobs
26d22e49c0d2e32fbf2759f504048754f66ecc45
[ "BSD-3-Clause-LBNL" ]
3
2018-03-18T21:55:07.000Z
2019-04-18T18:26:06.000Z
harnessed_jobs/ptc_BOT/v0/producer_ptc_BOT.py
duncanwood/EO-analysis-jobs
26d22e49c0d2e32fbf2759f504048754f66ecc45
[ "BSD-3-Clause-LBNL" ]
2
2020-11-12T19:47:42.000Z
2022-02-25T21:43:03.000Z
#!/usr/bin/env ipython """ Producer script for BOT PTC analysis. """ import os from ptc_jh_task import ptc_jh_task from bot_eo_analyses import get_analysis_types, run_python_task_or_cl_script if 'ptc' in get_analysis_types(): ptc_task_script \ = os.path.join(os.environ['EOANALYSISJOBSDIR'], 'harnessed_jobs...
29.666667
76
0.72809
70
445
4.2
0.471429
0.068027
0.122449
0.102041
0.156463
0.156463
0
0
0
0
0
0.00271
0.170787
445
14
77
31.785714
0.794038
0.132584
0
0
0
0
0.150794
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
caf5217c39c9424522208b39653c9446cd8d4451
3,744
py
Python
Artesian/Query/DefaultPartitionStrategy.py
AndreaCuneo/Artesian.SDK-Python
1f3528293e2da42d9f1901cd94165464cffab3fc
[ "MIT" ]
null
null
null
Artesian/Query/DefaultPartitionStrategy.py
AndreaCuneo/Artesian.SDK-Python
1f3528293e2da42d9f1901cd94165464cffab3fc
[ "MIT" ]
null
null
null
Artesian/Query/DefaultPartitionStrategy.py
AndreaCuneo/Artesian.SDK-Python
1f3528293e2da42d9f1901cd94165464cffab3fc
[ "MIT" ]
null
null
null
import copy from typing import List from ._QueryParameters.ActualQueryParameters import ActualQueryParameters from ._QueryParameters.VersionedQueryParameters import VersionedQueryParameters from ._QueryParameters.AuctionQueryParameters import AuctionQueryParameters from ._QueryParameters.VersionedQueryParameters import...
43.534884
145
0.681624
328
3,744
7.743902
0.210366
0.064961
0.035433
0.045276
0.386614
0.335433
0.328346
0.255906
0.255906
0.163386
0
0.001816
0.26469
3,744
85
146
44.047059
0.920814
0.340278
0
0.060606
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.242424
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
caf5347a1cd881f6b5a9ce39e50a09f017607c2d
405
py
Python
devproject/migrations/0006_category_index.py
0lddriv3r/djangobbs_nmb
6a05405a0a8f80af96b948027a9087dcc07a5335
[ "Apache-2.0" ]
3
2020-11-14T16:15:17.000Z
2021-11-30T05:04:44.000Z
devproject/migrations/0006_category_index.py
0lddriv3r/djangobbs_nmb
6a05405a0a8f80af96b948027a9087dcc07a5335
[ "Apache-2.0" ]
null
null
null
devproject/migrations/0006_category_index.py
0lddriv3r/djangobbs_nmb
6a05405a0a8f80af96b948027a9087dcc07a5335
[ "Apache-2.0" ]
1
2021-01-14T11:37:41.000Z
2021-01-14T11:37:41.000Z
# Generated by Django 2.2 on 2019-04-13 01:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('devproject', '0005_merge_20190413_0912'), ] operations = [ migrations.AddField( model_name='category', name='index', ...
21.315789
68
0.607407
43
405
5.604651
0.813953
0
0
0
0
0
0
0
0
0
0
0.105802
0.276543
405
18
69
22.5
0.716724
0.106173
0
0
1
0
0.136111
0.066667
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
caf789ea04ac7e14ad7f36962b4cece29b872758
778
py
Python
bestmobabot/logger.py
moonzlo/bestmobabot
8229de71a9d288daf6a7e513907821570e2eb111
[ "MIT" ]
2
2020-04-29T03:59:49.000Z
2021-11-25T17:07:44.000Z
bestmobabot/logger.py
moonzlo/bestmobabot
8229de71a9d288daf6a7e513907821570e2eb111
[ "MIT" ]
null
null
null
bestmobabot/logger.py
moonzlo/bestmobabot
8229de71a9d288daf6a7e513907821570e2eb111
[ "MIT" ]
1
2022-03-13T12:32:21.000Z
2022-03-13T12:32:21.000Z
""" Logger initialisation. """ import logging from typing import Iterable from bestmobabot.responses import * logger = logging.getLogger('bestmobabot') def log_heroes(message: str, heroes: Iterable[Hero]): logger.info(f'👊 {message}') for hero in sorted(heroes, reverse=True, key=Hero.order): logge...
22.882353
86
0.682519
110
778
4.818182
0.427273
0.045283
0.062264
0.067925
0
0
0
0
0
0
0
0.00156
0.176093
778
33
87
23.575758
0.815913
0.028278
0
0
0
0
0.15107
0
0
0
0
0
0
1
0.222222
false
0
0.166667
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1b06089722db99b6aafc9308345f5778ac9d7abb
3,563
py
Python
PEATDB/Utils.py
shambo001/peat
7a26e896aa9914b084a9064df09ed15df4047cf3
[ "MIT" ]
3
2016-11-11T06:11:03.000Z
2021-09-12T22:13:51.000Z
PEATDB/Utils.py
shambo001/peat
7a26e896aa9914b084a9064df09ed15df4047cf3
[ "MIT" ]
null
null
null
PEATDB/Utils.py
shambo001/peat
7a26e896aa9914b084a9064df09ed15df4047cf3
[ "MIT" ]
2
2016-02-15T16:10:36.000Z
2018-02-27T10:33:21.000Z
#!/usr/bin/env python # # Protein Engineering Analysis Tool DataBase (PEATDB) # Copyright (C) 2010 Damien Farrell & Jens Erik Nielsen # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either ver...
31.254386
83
0.647207
481
3,563
4.77131
0.459459
0.013943
0.016993
0.024837
0.03573
0.024401
0
0
0
0
0
0.010642
0.235195
3,563
113
84
31.530973
0.83156
0.269155
0
0.096774
0
0
0.096899
0
0.016129
0
0
0
0
0
null
null
0.032258
0.080645
null
null
0.048387
0
0
0
null
0
0
0
0
0
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
1b0abb3fecfeeb0b5f53fb76f7f6cf1315f8aa3c
710
py
Python
apps/auth_api/utils.py
worm2fed/itsphere_hakaton
5a04741208497935396198bc5e6b93e133d90126
[ "Unlicense" ]
null
null
null
apps/auth_api/utils.py
worm2fed/itsphere_hakaton
5a04741208497935396198bc5e6b93e133d90126
[ "Unlicense" ]
null
null
null
apps/auth_api/utils.py
worm2fed/itsphere_hakaton
5a04741208497935396198bc5e6b93e133d90126
[ "Unlicense" ]
null
null
null
from steembase.account import PrivateKey from rest_framework_jwt.settings import api_settings def check_steam_key(key): try: PrivateKey(key).pubkey except (ValueError, AssertionError): return False return True from apps.auth_api.serializers import UserSerializer def jwt_response_paylo...
26.296296
65
0.774648
92
710
5.663043
0.391304
0.134357
0.097889
0.095969
0.130518
0.130518
0
0
0
0
0
0
0.15493
710
26
66
27.307692
0.868333
0
0
0
0
0
0.012676
0
0
0
0
0
0.058824
1
0.176471
false
0
0.176471
0.058824
0.588235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1b0de295b364d37d156c50ebe9316618687fce49
808
py
Python
setup.py
nkouevda/slack-rtm-bot
e92ac8f73b561d5d39bc06b0858563ae41b3be5c
[ "MIT" ]
null
null
null
setup.py
nkouevda/slack-rtm-bot
e92ac8f73b561d5d39bc06b0858563ae41b3be5c
[ "MIT" ]
null
null
null
setup.py
nkouevda/slack-rtm-bot
e92ac8f73b561d5d39bc06b0858563ae41b3be5c
[ "MIT" ]
1
2015-08-07T20:59:02.000Z
2015-08-07T20:59:02.000Z
from setuptools import setup version = {} with open('slack_rtm_bot/__version__.py', 'r') as f: exec(f.read(), version) with open('README.md', 'r') as f: readme = f.read() setup( name='slack-rtm-bot', version=version['__version__'], description='Slack RTM bot', long_description=readme, long_d...
22.444444
56
0.612624
94
808
4.968085
0.531915
0.137045
0.188437
0.077088
0.094218
0.094218
0
0
0
0
0
0
0.231436
808
35
57
23.085714
0.752013
0
0
0.096774
0
0
0.360149
0.112624
0
0
0
0
0
1
0
false
0
0.032258
0
0.032258
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1b11b4931d31e16685f6eda474057f83eabbf858
1,162
py
Python
api/authentication.py
chenxiaoli/auth21
a2b15ecb883416e011da03d6ec066459fa28f693
[ "MIT" ]
null
null
null
api/authentication.py
chenxiaoli/auth21
a2b15ecb883416e011da03d6ec066459fa28f693
[ "MIT" ]
null
null
null
api/authentication.py
chenxiaoli/auth21
a2b15ecb883416e011da03d6ec066459fa28f693
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """自定义 API 认证方式""" import jwt from django.conf import settings from rest_framework import authentication, exceptions from . import models class BearerAuthentication(authentication.TokenAuthentication): """基于 JWT 的 Bearer 认证方式""" keyword = 'bearer' def authenticate_credentials(se...
29.05
85
0.641136
128
1,162
5.734375
0.515625
0.061308
0.190736
0.147139
0
0
0
0
0
0
0
0.004689
0.265921
1,162
39
86
29.794872
0.855803
0.048193
0
0.083333
0
0
0.083105
0
0
0
0
0
0
1
0.041667
false
0
0.208333
0
0.375
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1b141cd1f6b9d2b383e35dcc57eeafbf52853b30
1,953
py
Python
appengine/standard/ndb/projection_queries/snippets.py
HoleCat/echarlosperros
b67460de0467e05b42a763c4430b26ecfd97c2aa
[ "Apache-2.0" ]
null
null
null
appengine/standard/ndb/projection_queries/snippets.py
HoleCat/echarlosperros
b67460de0467e05b42a763c4430b26ecfd97c2aa
[ "Apache-2.0" ]
null
null
null
appengine/standard/ndb/projection_queries/snippets.py
HoleCat/echarlosperros
b67460de0467e05b42a763c4430b26ecfd97c2aa
[ "Apache-2.0" ]
null
null
null
# 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 required by applicable ...
31.5
77
0.696365
249
1,953
5.421687
0.485944
0.100741
0.033333
0.023704
0.099259
0
0
0
0
0
0
0.008872
0.192012
1,953
61
78
32.016393
0.846641
0.330773
0
0
0
0
0.017073
0
0
0
0
0
0
1
0.133333
false
0
0.033333
0
0.666667
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
0
0
1
0
0
1
1b16718b611b4160e9b715c92ac5bec9b4289c06
4,124
py
Python
natcap/invest/__init__.py
phargogh/experiment-invest-py
9771c22184a79cbc09222e28bbfa96e5a8430d6c
[ "BSD-3-Clause" ]
null
null
null
natcap/invest/__init__.py
phargogh/experiment-invest-py
9771c22184a79cbc09222e28bbfa96e5a8430d6c
[ "BSD-3-Clause" ]
null
null
null
natcap/invest/__init__.py
phargogh/experiment-invest-py
9771c22184a79cbc09222e28bbfa96e5a8430d6c
[ "BSD-3-Clause" ]
null
null
null
"""init module for natcap.invest""" from urllib import urlencode from urllib2 import Request from urllib2 import urlopen import locale import os import platform import sys import hashlib import json try: # pygeoprocessing/version.py written for setuptools distributions. from version import version __versi...
36.175439
79
0.646702
523
4,124
4.938815
0.351816
0.018583
0.025165
0.023229
0.013937
0
0
0
0
0
0
0.004619
0.265034
4,124
113
80
36.495575
0.847575
0.214113
0
0.130435
0
0
0.115336
0
0
0
0
0
0
0
null
null
0.043478
0.173913
null
null
0.014493
0
0
0
null
0
0
0
0
0
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
1b1df0eb630052576deb2a12074421c9e987a49c
365
py
Python
moxie_feedback/services.py
ox-it/moxie-feedback
e5aec34eab77601ae3b9809c80059247a2f4a29f
[ "Apache-2.0" ]
null
null
null
moxie_feedback/services.py
ox-it/moxie-feedback
e5aec34eab77601ae3b9809c80059247a2f4a29f
[ "Apache-2.0" ]
null
null
null
moxie_feedback/services.py
ox-it/moxie-feedback
e5aec34eab77601ae3b9809c80059247a2f4a29f
[ "Apache-2.0" ]
null
null
null
from moxie.core.service import Service class FeedbackService(Service): def __init__(self, backends={}): self.backends = map(self._import_provider, backends.items()) def send_feedback(self, message): ok = True for backend in self.backends: if not backend.feedback(message):...
26.071429
68
0.630137
42
365
5.309524
0.619048
0.161435
0
0
0
0
0
0
0
0
0
0
0.279452
365
14
69
26.071429
0.847909
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
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
1b1f9d755fdc142ee12163f3886c53cad10d6fc6
4,070
py
Python
contacts/serializers/misc.py
I-TECH-UW/mwachx
e191755c3369208d678fceec68dbb4f5f51c453a
[ "Apache-2.0" ]
3
2015-05-27T14:35:49.000Z
2016-02-26T21:04:32.000Z
contacts/serializers/misc.py
tperrier/mwachx
94616659dc29843e661b2ecc9a2e7f1d4e81b5a4
[ "Apache-2.0" ]
375
2015-01-31T10:08:34.000Z
2021-06-10T19:44:21.000Z
contacts/serializers/misc.py
I-TECH-UW/mwachx
e191755c3369208d678fceec68dbb4f5f51c453a
[ "Apache-2.0" ]
6
2016-01-10T19:52:41.000Z
2020-06-15T22:07:24.000Z
# From Django from django.core.urlresolvers import reverse # Rest Framework Imports from rest_framework import serializers from rest_framework import viewsets from rest_framework.decorators import detail_route, api_view, list_route from rest_framework.response import Response #Local Imports import contacts.models as ...
37
101
0.695577
411
4,070
6.715328
0.265207
0.039855
0.048913
0.06087
0.308696
0.308696
0.308696
0.250725
0.208696
0.074638
0
0
0.144226
4,070
109
102
37.33945
0.79242
0.027518
0
0.102941
0
0
0.085152
0.005928
0
0
0
0
0
0
null
null
0.014706
0.132353
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
1b2c6f49b06dfc6df4dbce924975b313c1bb9a20
1,698
py
Python
streamParser.py
abdesslem/pcapTotal
3f4d5299864a382841b57ec17f32134911a604c6
[ "MIT" ]
8
2015-09-18T15:56:14.000Z
2021-05-28T06:49:56.000Z
streamParser.py
sonarbyte/pcapTotal
3f4d5299864a382841b57ec17f32134911a604c6
[ "MIT" ]
null
null
null
streamParser.py
sonarbyte/pcapTotal
3f4d5299864a382841b57ec17f32134911a604c6
[ "MIT" ]
4
2015-07-09T13:01:40.000Z
2017-08-19T16:10:53.000Z
#!/usr/bin/python # Copyright (C) 2014 Amri Abdesslem # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program...
39.488372
157
0.628975
251
1,698
4.239044
0.513944
0.06203
0.032895
0.037594
0.191729
0.137218
0.084586
0.084586
0.084586
0.084586
0
0.088704
0.150177
1,698
42
158
40.428571
0.648649
0.797998
0
0
0
0
0.016393
0
0
0
0
0
0
0
null
null
0
0.111111
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
1b2ed62976a6075e5f922e58b948908b717ba597
628
py
Python
code/gifs-filter/c3d/build_deploy.py
raingo/TGIF-Release
3e54d2f71418d8a2e9f5f61aa5be0edb9c0ac2b8
[ "BSD-3-Clause" ]
94
2016-04-07T15:07:13.000Z
2022-02-25T07:19:57.000Z
code/gifs-filter/c3d/build_deploy.py
raingo/TGIF-Release
3e54d2f71418d8a2e9f5f61aa5be0edb9c0ac2b8
[ "BSD-3-Clause" ]
9
2016-08-22T15:35:27.000Z
2020-10-13T15:48:52.000Z
code/gifs-filter/c3d/build_deploy.py
raingo/TGIF-Release
3e54d2f71418d8a2e9f5f61aa5be0edb9c0ac2b8
[ "BSD-3-Clause" ]
22
2016-04-07T15:39:57.000Z
2022-03-04T08:04:47.000Z
#!/usr/bin/env python """ Python source code - replace this with a description of the code and write the code below this text. """ from string import Template def main(): import sys import os.path as osp data_dir = sys.argv[1] batch_size = sys.argv[2] with open('./deploy.prototxt.in') as reader,...
24.153846
108
0.673567
94
628
4.351064
0.617021
0.051345
0.05379
0.06846
0
0
0
0
0
0
0
0.009921
0.197452
628
25
109
25.12
0.801587
0.275478
0
0
0
0
0.118834
0
0
0
0
0
0
1
0.083333
false
0.083333
0.25
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
1
0
0
0
0
0
1
1b349057e778fcc737ba2891aebaa3e29e066763
1,221
py
Python
python_module/SuperGLU/Services/TextProcessing/Tests/Inflect/test_pl_si.py
GeneralizedLearningUtilities/SuperGLU
1c373d1358431fb96dd70b324b26a14fc8ed1fcb
[ "MIT" ]
8
2015-07-13T23:07:20.000Z
2020-11-13T21:09:55.000Z
python_module/SuperGLU/Services/TextProcessing/Tests/Inflect/test_pl_si.py
GeneralizedLearningUtilities/SuperGLU
1c373d1358431fb96dd70b324b26a14fc8ed1fcb
[ "MIT" ]
7
2016-01-13T12:13:56.000Z
2021-12-14T21:12:28.000Z
python_module/SuperGLU/Services/TextProcessing/Tests/Inflect/test_pl_si.py
GeneralizedLearningUtilities/SuperGLU
1c373d1358431fb96dd70b324b26a14fc8ed1fcb
[ "MIT" ]
6
2015-09-23T17:53:32.000Z
2020-04-30T07:27:01.000Z
# use nosetest to run these tests from nose.tools import eq_ import inflect FNAME = 'tests/words.txt' # FNAME = 'tests/list-of-nouns.txt' # FNAME = '/usr/share/dict/british-english' # FNAME = 'tricky.txt' def getwords(): words = open(FNAME).readlines() words = [w.strip() for w in words] return words ...
25.4375
80
0.547912
179
1,221
3.620112
0.346369
0.061728
0.118827
0.162037
0.364198
0.342593
0.283951
0.246914
0.246914
0.246914
0
0.014925
0.28665
1,221
47
81
25.978723
0.729047
0.143325
0
0.129032
0
0
0.072254
0
0
0
0
0
0
1
0.096774
false
0
0.064516
0
0.193548
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
1b3fb8b100999e6f034f2969666b2a1ba0349ef1
2,789
py
Python
liminal/build/liminal_apps_builder.py
naturalett/incubator-liminal
cb005b5f7a63b8561911a01e27cd85e73196d237
[ "Apache-2.0" ]
null
null
null
liminal/build/liminal_apps_builder.py
naturalett/incubator-liminal
cb005b5f7a63b8561911a01e27cd85e73196d237
[ "Apache-2.0" ]
null
null
null
liminal/build/liminal_apps_builder.py
naturalett/incubator-liminal
cb005b5f7a63b8561911a01e27cd85e73196d237
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
36.697368
100
0.716027
364
2,789
5.271978
0.376374
0.068786
0.05211
0.03752
0.030224
0
0
0
0
0
0
0.001816
0.210111
2,789
75
101
37.186667
0.869269
0.327716
0
0.052632
0
0
0.158609
0.011407
0
0
0
0.013333
0
1
0.078947
false
0
0.131579
0.026316
0.236842
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1b4d91fd688cefd8353cdc6165ee82de3e239164
3,032
py
Python
CoREATAC_PredictionTool.py
UcarLab/CoRE-ATAC
0a6f4c380d9ad0c542aa01368855ba9ebcd4246b
[ "MIT" ]
7
2020-02-20T18:55:09.000Z
2022-01-06T21:38:38.000Z
CoREATAC_PredictionTool.py
UcarLab/CoRE-ATAC
0a6f4c380d9ad0c542aa01368855ba9ebcd4246b
[ "MIT" ]
4
2021-07-30T13:23:30.000Z
2022-03-02T14:41:52.000Z
CoREATAC_PredictionTool.py
UcarLab/CoRE-ATAC
0a6f4c380d9ad0c542aa01368855ba9ebcd4246b
[ "MIT" ]
null
null
null
from __future__ import print_function import tensorflow as tf import keras from tensorflow.keras.models import load_model from keras import backend as K from keras.layers import Input import numpy as np import subprocess from tensorloader import TensorLoader as tl import matplotlib.pyplot as plt from matplotlib.backend...
36.53012
133
0.742744
373
3,032
5.911528
0.407507
0.028571
0.053968
0.016327
0.123356
0.123356
0.095238
0.070748
0
0
0
0.004255
0.147427
3,032
82
134
36.97561
0.848743
0.059037
0
0.034483
0
0
0.142958
0.021075
0
0
0
0
0
1
0.017241
false
0
0.310345
0
0.327586
0.051724
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1b4e2933d24c08bbade5a6a312940f0ad400dd91
1,454
py
Python
survey/migrations/0002_auto_20201211_1259.py
HiroshiFuu/cs-balloting
565eb3ee88769d88b27705828c10c7b5be964ef5
[ "MIT" ]
null
null
null
survey/migrations/0002_auto_20201211_1259.py
HiroshiFuu/cs-balloting
565eb3ee88769d88b27705828c10c7b5be964ef5
[ "MIT" ]
null
null
null
survey/migrations/0002_auto_20201211_1259.py
HiroshiFuu/cs-balloting
565eb3ee88769d88b27705828c10c7b5be964ef5
[ "MIT" ]
null
null
null
# Generated by Django 2.2.16 on 2020-12-11 12:59 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('survey', '0001_initial'), ] operations = [ migrations.AddField( ...
35.463415
144
0.634113
158
1,454
5.670886
0.341772
0.044643
0.0625
0.098214
0.532366
0.523438
0.335938
0.251116
0.251116
0.251116
0
0.022831
0.246905
1,454
40
145
36.35
0.795434
0.031637
0
0.411765
1
0
0.152916
0
0
0
0
0
0
1
0
false
0
0.088235
0
0.176471
0
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
1b548f741034fa82ddcfee9ab8795fd1d235aa8f
289
py
Python
python/requests/hello_post.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
23
2015-06-08T13:01:00.000Z
2021-12-30T08:20:04.000Z
python/requests/hello_post.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
1
2020-10-22T02:36:10.000Z
2020-10-22T02:36:10.000Z
python/requests/hello_post.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
7
2017-10-31T09:48:14.000Z
2022-01-04T15:59:45.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import requests payload = {'key1': 'value1', 'key2': 'value2'} # RAW DATA r = requests.post("https://httpbin.org/post", data=payload) print(r.text) # JSON DATA r = requests.post("https://httpbin.org/post", json=payload) print(r.text)
15.210526
59
0.650519
42
289
4.47619
0.571429
0.053191
0.138298
0.180851
0.382979
0.382979
0.382979
0.382979
0
0
0
0.024
0.134948
289
18
60
16.055556
0.728
0.214533
0
0.333333
0
0
0.304933
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.333333
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
1b587dc9eb5873a8c04f2156245c488d3ddbae9c
1,179
py
Python
src/boardcomputer/fsm/signals.py
eddex/pren2
336afade5a6f46eb955b1e9c0c1e5ebda9e19b9b
[ "MIT" ]
null
null
null
src/boardcomputer/fsm/signals.py
eddex/pren2
336afade5a6f46eb955b1e9c0c1e5ebda9e19b9b
[ "MIT" ]
null
null
null
src/boardcomputer/fsm/signals.py
eddex/pren2
336afade5a6f46eb955b1e9c0c1e5ebda9e19b9b
[ "MIT" ]
null
null
null
from enum import Enum class SignalType(Enum): INFO = 0 STOP = 1 START = 2 class Signal(Enum): INFO_ZERO = (SignalType.INFO, 0) INFO_ONE = (SignalType.INFO, 1) INFO_TWO = (SignalType.INFO, 2) INFO_THREE = (SignalType.INFO, 3) INFO_FOUR = (SignalType.INFO, 4) INFO_FIVE = (SignalTyp...
26.2
61
0.64207
154
1,179
4.701299
0.24026
0.19337
0.058011
0
0
0
0
0
0
0
0
0.026786
0.240034
1,179
45
62
26.2
0.78125
0
0
0.055556
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.027778
0.055556
0.888889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1b5a23423403cfde7973f71ebfab41212a732dd7
2,690
py
Python
model/block/attention.py
winterYANGWT/template_Winteryan
4e971d318da04cc20ac8378cf81902bb8275f81a
[ "MIT" ]
null
null
null
model/block/attention.py
winterYANGWT/template_Winteryan
4e971d318da04cc20ac8378cf81902bb8275f81a
[ "MIT" ]
null
null
null
model/block/attention.py
winterYANGWT/template_Winteryan
4e971d318da04cc20ac8378cf81902bb8275f81a
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F __all__ = ['LuongAttention', 'BahdanauAttention'] class LuongAttention(nn.Module): def __init__(self, hidden_size): super().__init__() self.hidden_size = hidden_size self.attention = nn.Linear(hidden_size * 2, hidden_size)...
43.387097
78
0.536059
288
2,690
4.78125
0.194444
0.116195
0.061002
0.052288
0.702977
0.700073
0.666667
0.604212
0.493827
0.493827
0
0.025731
0.364312
2,690
61
79
44.098361
0.779532
0
0
0.538462
0
0
0.011524
0
0
0
0
0
0
1
0.115385
false
0
0.057692
0
0.288462
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1b5c529de18389d18750d6f542832e6c64870632
1,057
py
Python
cbagent/collectors/libstats/remotestats.py
bochun/perfrunner
e215c73240381cf82fddc40856f560369c9b75a8
[ "Apache-2.0" ]
18
2015-10-28T23:12:07.000Z
2022-01-04T14:23:37.000Z
cbagent/collectors/libstats/remotestats.py
bochun/perfrunner
e215c73240381cf82fddc40856f560369c9b75a8
[ "Apache-2.0" ]
11
2019-03-19T12:02:31.000Z
2022-02-11T03:39:44.000Z
cbagent/collectors/libstats/remotestats.py
bochun/perfrunner
e215c73240381cf82fddc40856f560369c9b75a8
[ "Apache-2.0" ]
39
2015-06-07T09:17:16.000Z
2022-03-06T20:32:01.000Z
import sys from decorator import decorator from fabric.api import env, hide, parallel, run, settings from fabric.tasks import execute env.shell = '/bin/bash -l -c -o pipefail' env.keepalive = 60 env.timeout = 60 def parallel_task(server_side=True): @decorator def _parallel_task(task, *args, **kargs): ...
24.022727
78
0.617786
126
1,057
5.087302
0.428571
0.074883
0.046802
0
0
0
0
0
0
0
0
0.006562
0.279092
1,057
43
79
24.581395
0.834646
0
0
0
0
0
0.037843
0
0
0
0
0
0
1
0.129032
false
0.096774
0.129032
0
0.387097
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1b5fc6d0311fdf7dc219846a5f59ca1f6ab52d22
11,590
py
Python
src/spartan/utils/fastas.py
xguse/spartan
cb0cc345aaf66602752f57e48e93bb92d69e7dc5
[ "MIT" ]
1
2017-08-01T21:28:13.000Z
2017-08-01T21:28:13.000Z
src/spartan/utils/fastas.py
xguse/spartan
cb0cc345aaf66602752f57e48e93bb92d69e7dc5
[ "MIT" ]
null
null
null
src/spartan/utils/fastas.py
xguse/spartan
cb0cc345aaf66602752f57e48e93bb92d69e7dc5
[ "MIT" ]
null
null
null
# fastas.py is part of the 'spartan' package. # It was written by Gus Dunn and was created on 5/2/14. # # Please see the license info in the root folder of this package. """ ================================================= fastas.py ================================================= Purpose: """ import collections i...
32.647887
123
0.553236
1,372
11,590
4.568513
0.258746
0.020102
0.01053
0.010051
0.205169
0.186981
0.168794
0.150287
0.134971
0.120932
0
0.009326
0.352373
11,590
354
124
32.740113
0.825739
0.113805
0
0.372973
0
0
0.053802
0.006862
0
0
0
0.002825
0.005405
0
null
null
0.032432
0.048649
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
1b68a23c7942a323fe544328757a70a20ce9a4e8
2,993
py
Python
smsgateway/models.py
vikingco/django-smsgateway
91675e599a147f4d7e64ff4c4455dbf75ed753d3
[ "BSD-3-Clause" ]
13
2015-03-11T06:55:50.000Z
2022-02-08T16:50:16.000Z
smsgateway/models.py
vikingco/django-smsgateway
91675e599a147f4d7e64ff4c4455dbf75ed753d3
[ "BSD-3-Clause" ]
17
2015-03-19T12:27:41.000Z
2019-12-09T14:21:21.000Z
smsgateway/models.py
vikingco/django-smsgateway
91675e599a147f4d7e64ff4c4455dbf75ed753d3
[ "BSD-3-Clause" ]
7
2015-05-15T00:14:49.000Z
2019-06-27T02:46:09.000Z
from __future__ import absolute_import from django.db import models from django.utils.translation import ugettext_lazy from smsgateway.enums import (OPERATOR_CHOICES, OPERATOR_UNKNOWN, GATEWAY_CHOICES, DIRECTION_CHOICES, DIRECTION_INBOUND, PRIORITIES, PRIORITY_MEDIUM, PRIORITY_DEFERRED) ...
54.418182
120
0.710992
371
2,993
5.498652
0.245283
0.141176
0.146569
0.180392
0.465686
0.339706
0.305882
0.241176
0.241176
0.241176
0
0.006967
0.184764
2,993
54
121
55.425926
0.829098
0
0
0.090909
0
0
0.114601
0
0
0
0
0
0
1
0.045455
false
0
0.113636
0.022727
0.636364
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
1b68d1764913b1b6f5ba744cf4b8c8c9e783648b
1,252
py
Python
estudos_paralelos/teste_conta.py
montalvas/python
483c2097f6f91bfae127dafcb63e3006eeecad1d
[ "MIT" ]
null
null
null
estudos_paralelos/teste_conta.py
montalvas/python
483c2097f6f91bfae127dafcb63e3006eeecad1d
[ "MIT" ]
null
null
null
estudos_paralelos/teste_conta.py
montalvas/python
483c2097f6f91bfae127dafcb63e3006eeecad1d
[ "MIT" ]
null
null
null
# Forma procedural de criar uma conta def cria_conta(numero, titular, saldo, limite): ''' -> Cria uma conta bancária :param numero: número da conta bancária (string) :param titular: nome do titular (string) :param saldo: saldo inicial da conta (float) :param limite: limite de saldo da conta (flo...
26.638298
84
0.63738
168
1,252
4.738095
0.321429
0.052764
0.060302
0.06407
0.311558
0.311558
0.311558
0.311558
0.213568
0.165829
0
0.022989
0.235623
1,252
47
85
26.638298
0.808777
0.515974
0
0
0
0
0.168016
0
0
0
0
0
0
1
0.307692
false
0
0
0
0.384615
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1b6a763d42d38322692583420b8c32fba52315b6
9,053
py
Python
optimize.py
AvijitGhosh82/Reach_Optimization
2ce6e03d68b32ff73b86194192b5c62d6421c1d8
[ "MIT" ]
null
null
null
optimize.py
AvijitGhosh82/Reach_Optimization
2ce6e03d68b32ff73b86194192b5c62d6421c1d8
[ "MIT" ]
null
null
null
optimize.py
AvijitGhosh82/Reach_Optimization
2ce6e03d68b32ff73b86194192b5c62d6421c1d8
[ "MIT" ]
null
null
null
import networkx as nx from networkx.readwrite import json_graph import pickle from random import choice,uniform,randint import http_server import json import math from itertools import combinations class Optimize: G=None F=None def prune(self,G): tbd=[] for n in Optimize.G.nodes(): if sum(G.node[n]['alist...
24.077128
96
0.645311
1,435
9,053
4.050871
0.150523
0.040255
0.022364
0.013762
0.400482
0.350594
0.316876
0.26802
0.261999
0.243076
0
0.029057
0.194079
9,053
375
97
24.141333
0.767681
0.116978
0
0.361011
0
0
0.044369
0
0
0
0
0
0.00361
0
null
null
0
0.028881
null
null
0.061372
0
0
0
null
0
0
0
0
0
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
1b773655e2ee44246d12939655719b2f434c01f9
7,576
py
Python
snippets/dijkstra.py
lavish/drs
d6a75ddf429c92bca648a08cd62850c218e56f67
[ "MIT" ]
1
2015-01-23T23:17:09.000Z
2015-01-23T23:17:09.000Z
snippets/dijkstra.py
lavish/drs
d6a75ddf429c92bca648a08cd62850c218e56f67
[ "MIT" ]
null
null
null
snippets/dijkstra.py
lavish/drs
d6a75ddf429c92bca648a08cd62850c218e56f67
[ "MIT" ]
null
null
null
from __future__ import division from enum import Enum from copy import deepcopy infinity = float('inf') # cardinal directions, plus I when inside a node Direction = Enum('Direction', 'n e s w i') # all the possible colors used for nodes, including 'unknown' when the color of # a node is not yet known Color = Enum('...
37.88
153
0.645327
1,068
7,576
4.465356
0.192884
0.017614
0.039212
0.030824
0.316628
0.299434
0.277626
0.264206
0.264206
0.238834
0
0.008151
0.238912
7,576
199
154
38.070352
0.818939
0.192582
0
0.146341
0
0
0.014599
0
0
0
0
0
0
0
null
null
0
0.02439
null
null
0.00813
0
0
0
null
0
0
0
0
0
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
1b83f5cfbb111d8f1c7ba081607dff77384604bf
1,695
py
Python
commercialoperator/migrations/0009_auto_20191001_2322.py
sharpeez/ledger
0ea05669f488336a63e2bdd6390725d00d619e9a
[ "Apache-2.0" ]
null
null
null
commercialoperator/migrations/0009_auto_20191001_2322.py
sharpeez/ledger
0ea05669f488336a63e2bdd6390725d00d619e9a
[ "Apache-2.0" ]
12
2020-02-12T06:26:55.000Z
2022-02-13T05:52:54.000Z
commercialoperator/migrations/0009_auto_20191001_2322.py
sharpeez/ledger
0ea05669f488336a63e2bdd6390725d00d619e9a
[ "Apache-2.0" ]
8
2020-02-24T05:11:18.000Z
2021-02-26T07:54:24.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2019-10-01 15:22 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('commercialoperator', '0008_auto_201909...
35.3125
133
0.611799
180
1,695
5.655556
0.35
0.035363
0.12279
0.142436
0.625737
0.625737
0.555992
0.555992
0.555992
0.555992
0
0.098795
0.265487
1,695
47
134
36.06383
0.718876
0.040118
0
0.6
1
0
0.110837
0.03202
0
0
0
0
0
1
0
false
0
0.1
0
0.175
0
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
1b882539c09659ce96d1ad72cd8ad343ee9c9c04
234
py
Python
itp1_8a.py
ShinjiKatoA16/aoj-itp
83d1688f41d0cd85f6eced76aebdc97e0dc6a01f
[ "MIT" ]
null
null
null
itp1_8a.py
ShinjiKatoA16/aoj-itp
83d1688f41d0cd85f6eced76aebdc97e0dc6a01f
[ "MIT" ]
null
null
null
itp1_8a.py
ShinjiKatoA16/aoj-itp
83d1688f41d0cd85f6eced76aebdc97e0dc6a01f
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import sys from string import ascii_lowercase as asc_l, ascii_uppercase as asc_u table = str.maketrans(asc_l+asc_u, asc_u+asc_l) s = sys.stdin.readline() print(s.translate(table), end='')
21.272727
69
0.722222
41
234
3.926829
0.634146
0.074534
0.086957
0
0
0
0
0
0
0
0
0.009756
0.123932
234
10
70
23.4
0.77561
0.166667
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1b8ad7aec4537da1b17922b10abe9b27f1f07aa1
465
py
Python
Ficha N2/ex06.py
andresilmor/Python-Exercises
1ae689798d1a7f2d11a217956653bb5d63d372a0
[ "MIT" ]
null
null
null
Ficha N2/ex06.py
andresilmor/Python-Exercises
1ae689798d1a7f2d11a217956653bb5d63d372a0
[ "MIT" ]
null
null
null
Ficha N2/ex06.py
andresilmor/Python-Exercises
1ae689798d1a7f2d11a217956653bb5d63d372a0
[ "MIT" ]
null
null
null
#Desenvolver um algoritmo que faça a leitura de um número inteiro positivo e que, #para esse número, mostre todos os seus divisores. def divisor(): try: num=int(input('Indique um número: ')) while num<0: num=int(input('Número Inválido!\nIndique um número: ')) except ValueErr...
31
82
0.595699
65
465
4.261538
0.661538
0.115523
0.079422
0
0
0
0
0
0
0
0
0.012158
0.292473
465
15
83
31
0.829787
0.277419
0
0
0
0
0.261682
0
0
0
0
0.066667
0
1
0.090909
false
0
0
0
0.090909
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1b9489c1e6dc897935ba40b3b63d70d1436c7daa
2,900
py
Python
snpeff/snpeff2csv.py
danielecook/biocode
e63bf678325f24b02bea856f4157999afcd2c0b9
[ "MIT" ]
null
null
null
snpeff/snpeff2csv.py
danielecook/biocode
e63bf678325f24b02bea856f4157999afcd2c0b9
[ "MIT" ]
null
null
null
snpeff/snpeff2csv.py
danielecook/biocode
e63bf678325f24b02bea856f4157999afcd2c0b9
[ "MIT" ]
null
null
null
#!usr/local/bin/python from subprocess import Popen, PIPE import re from collections import namedtuple from collections import defaultdict import os script_dir = os.path.dirname(os.path.realpath(__file__)) #=================================# # Load Wormbase gene identifiers. # #=================================# imp...
28.712871
124
0.591724
388
2,900
4.247423
0.376289
0.043689
0.046723
0.023665
0.061286
0.061286
0
0
0
0
0
0.018725
0.226552
2,900
100
125
29
0.716005
0.041379
0
0
0
0.016129
0.185167
0.050274
0
0
0
0
0
0
null
null
0.016129
0.112903
null
null
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1b9624a253466ce180800423eaf335fa82f7ff94
5,415
py
Python
test/test_dice_bag.py
jrmcgaha-dev/pydnd
d2752a51103b25c4c0f233dfe6402af9c620ae5e
[ "MIT" ]
1
2020-03-09T16:05:58.000Z
2020-03-09T16:05:58.000Z
test/test_dice_bag.py
jrmcgaha-dev/pydnd
d2752a51103b25c4c0f233dfe6402af9c620ae5e
[ "MIT" ]
3
2020-02-17T22:24:45.000Z
2020-02-18T20:41:41.000Z
test/test_dice_bag.py
jrmcgaha-dev/pydnd
d2752a51103b25c4c0f233dfe6402af9c620ae5e
[ "MIT" ]
null
null
null
from pydnd import dice_bag from pydnd import exceptions debug_enabled = True def test_imports(): assert hasattr(dice_bag, 'logging') assert hasattr(dice_bag, 'random') assert hasattr(dice_bag, 're') assert hasattr(dice_bag, 'typing') def test_logging(): assert hasattr(dice_bag, '_log') glob...
31.482558
71
0.675716
734
5,415
4.649864
0.144414
0.147671
0.087606
0.061236
0.570759
0.435394
0.301201
0.140932
0.11632
0.06065
0
0.025629
0.214589
5,415
171
72
31.666667
0.776863
0
0
0.21831
0
0
0.05374
0
0
0
0
0
0.422535
1
0.098592
false
0
0.021127
0.035211
0.15493
0.042254
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
1b9a012fe00f91f88cf0b03870e672af48f7b676
15,155
py
Python
gitee/models/group_detail.py
pygitee/pygitee
7622314a4dbb08cf2f729b6cdd0a2887b96e394e
[ "MIT" ]
null
null
null
gitee/models/group_detail.py
pygitee/pygitee
7622314a4dbb08cf2f729b6cdd0a2887b96e394e
[ "MIT" ]
null
null
null
gitee/models/group_detail.py
pygitee/pygitee
7622314a4dbb08cf2f729b6cdd0a2887b96e394e
[ "MIT" ]
null
null
null
# coding: utf-8 import pprint import re # noqa: F401 import six class GroupDetail(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name ...
25.258333
118
0.560211
1,770
15,155
4.649718
0.063277
0.058323
0.165249
0.153098
0.512151
0.392467
0.362819
0.287242
0.165371
0.068044
0
0.019403
0.343649
15,155
599
119
25.300501
0.807982
0.341339
0
0.082707
1
0
0.063762
0
0
0
0
0
0
1
0.172932
false
0
0.011278
0
0.293233
0.007519
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
1b9a03ad7686ccd06acf0a8ea1fbe996e82c0ed2
2,838
py
Python
lambda_ebs-cleanup.py
rajeshkrish12/AWS-Lambda_EBS-snapshots
7550f46d674d8d00d2b659972fec07748fd1b0e9
[ "MIT" ]
null
null
null
lambda_ebs-cleanup.py
rajeshkrish12/AWS-Lambda_EBS-snapshots
7550f46d674d8d00d2b659972fec07748fd1b0e9
[ "MIT" ]
null
null
null
lambda_ebs-cleanup.py
rajeshkrish12/AWS-Lambda_EBS-snapshots
7550f46d674d8d00d2b659972fec07748fd1b0e9
[ "MIT" ]
null
null
null
# Automated EBS anpshot cleanup # @author Rajesh krishnamoorthy rajeshkrish12@gmail.com # This script will search for all snapshots having a tag with "DeleteOn" or "deleteon" # on it. As soon as we have the snapshot list, we loop through each instance # and get the vlaue of delete on tag.then the value is compared with...
37.342105
108
0.659267
377
2,838
4.870027
0.445623
0.01634
0.02451
0.011983
0.017429
0
0
0
0
0
0
0.007421
0.24031
2,838
75
109
37.84
0.844156
0.288584
0
0
0
0
0.189526
0
0
0
0
0
0
0
null
null
0
0.163265
null
null
0.122449
0
0
0
null
0
0
0
0
0
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
1ba087f9a8e45eef6b178d5c8cb26ea6d836217d
675
py
Python
Recaman's Sequence/recaman_sequence.py
FatalTrip/Integer-Sequences
e2e1181a1956cdd1d68bae7c022f93cac7bb919c
[ "Unlicense" ]
null
null
null
Recaman's Sequence/recaman_sequence.py
FatalTrip/Integer-Sequences
e2e1181a1956cdd1d68bae7c022f93cac7bb919c
[ "Unlicense" ]
null
null
null
Recaman's Sequence/recaman_sequence.py
FatalTrip/Integer-Sequences
e2e1181a1956cdd1d68bae7c022f93cac7bb919c
[ "Unlicense" ]
null
null
null
import itertools sequence_array = [] def recaman(a:int): if a == 0: sequence_array.append(a) elif a > 0 and sequence_array[a-1]-a>0 and sequence_array[a-1]-a not in sequence_array: sequence_array.append(sequence_array[a-1]-a) else: sequence_array.append(sequence_array[a-1]+a) ...
24.107143
91
0.64
105
675
3.92381
0.390476
0.315534
0.135922
0.145631
0.269417
0.269417
0.269417
0.269417
0
0
0
0.017241
0.226667
675
28
92
24.107143
0.772031
0.023704
0
0
0
0
0.127466
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.166667
0.055556
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
1ba244bbf770cb39b9cfd70753635a9bbdc59dd0
792
py
Python
robot/ftrans.py
sgowda/brain-python-interface
708e2a5229d0496a8ce9de32bda66f0925d366d9
[ "Apache-2.0" ]
7
2015-08-25T00:28:49.000Z
2020-04-14T22:58:51.000Z
robot/ftrans.py
sgowda/brain-python-interface
708e2a5229d0496a8ce9de32bda66f0925d366d9
[ "Apache-2.0" ]
89
2020-08-03T16:54:08.000Z
2022-03-09T19:56:19.000Z
robot/ftrans.py
sgowda/brain-python-interface
708e2a5229d0496a8ce9de32bda66f0925d366d9
[ "Apache-2.0" ]
4
2020-03-06T15:39:00.000Z
2021-05-26T17:03:21.000Z
#FTRANS Transform force/moment # # FT = FTRANS(T, F) # # Transforms a force/moment F in the base frame to FT in the frame T. # F and FT are 6-vectors of the form [Fx Fy Fz Mx My Mz] # # SEE ALSO: DIFF2TR # $Log: ftrans.m,v $ # Revision 1.3 2002/04/14 10:15:03 pic # Added see also line. # # Revision 1.2 2002/04/01 1...
20.307692
77
0.612374
152
792
3.190789
0.526316
0.020619
0.049485
0.041237
0.041237
0
0
0
0
0
0
0.08867
0.231061
792
38
78
20.842105
0.707718
0.608586
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.166667
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
1ba27927cb8fc10646d3c18e5e923ef2b9f8053f
1,252
py
Python
expenses/views/category.py
eladelad/new-money
601d98e90031cf2440728455655c0bfedd3ccb25
[ "Apache-2.0" ]
null
null
null
expenses/views/category.py
eladelad/new-money
601d98e90031cf2440728455655c0bfedd3ccb25
[ "Apache-2.0" ]
null
null
null
expenses/views/category.py
eladelad/new-money
601d98e90031cf2440728455655c0bfedd3ccb25
[ "Apache-2.0" ]
null
null
null
# from expenses.models import * from expenses.serializers import * from rest_framework import generics from rest_framework import viewsets from rest_framework.permissions import IsAdminUser, IsAuthenticated from rest_framework.authentication import TokenAuthentication, BasicAuthentication, SessionAuthentication from dj...
44.714286
138
0.780351
129
1,252
7.465116
0.356589
0.031153
0.070613
0.031153
0.497404
0.44756
0.44756
0.44756
0.44756
0.409138
0
0
0.133387
1,252
28
139
44.714286
0.887558
0.023163
0
0.285714
0
0
0.018003
0
0
0
0
0
0
1
0.095238
false
0
0.285714
0.047619
0.904762
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1ba75328b639db1d61a3c365039463e1a21fbced
1,882
py
Python
server/asot/bp/gateway.py
lun-4/asot
24d556af9695f7ac2f059bc7776fc59945a7ec0f
[ "BSD-3-Clause" ]
1
2021-08-01T21:20:52.000Z
2021-08-01T21:20:52.000Z
server/asot/bp/gateway.py
lun-4/asot
24d556af9695f7ac2f059bc7776fc59945a7ec0f
[ "BSD-3-Clause" ]
null
null
null
server/asot/bp/gateway.py
lun-4/asot
24d556af9695f7ac2f059bc7776fc59945a7ec0f
[ "BSD-3-Clause" ]
null
null
null
# asot: Localhost tunneling # Copyright 2021, Luna and asot contributors # SPDX-License-Identifier: BSD-3-Clause import base64 from quart import Blueprint, request, current_app as app, make_response bp = Blueprint("gateway", __name__) # asot works internally by tagging a request based on its Host header # # if Host...
33.017544
73
0.715728
280
1,882
4.689286
0.471429
0.033511
0.019802
0
0
0
0
0
0
0
0
0.011968
0.20085
1,882
56
74
33.607143
0.861037
0.428268
0
0
0
0
0.063387
0
0
0
0
0.017857
0
1
0
false
0
0.083333
0
0.25
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1bad984b113a5745f0d403f26c3d66fb092579b6
832
py
Python
urls/permalink.py
jinalharia/flask-snippets
9871815f32f6eaf6d27e8be34b0a0b22172e203f
[ "BSD-3-Clause" ]
43
2015-10-23T06:36:56.000Z
2022-02-23T09:22:30.000Z
urls/permalink.py
jinalharia/flask-snippets
9871815f32f6eaf6d27e8be34b0a0b22172e203f
[ "BSD-3-Clause" ]
null
null
null
urls/permalink.py
jinalharia/flask-snippets
9871815f32f6eaf6d27e8be34b0a0b22172e203f
[ "BSD-3-Clause" ]
15
2015-09-27T12:39:02.000Z
2021-07-17T16:16:15.000Z
# -*- coding: utf-8 -*- """ urls.permalink ~~~~~~~~~~~~~~ Permalink function decorator http://flask.pocoo.org/snippets/6/ """ import os import sys sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from flask import url_for from werkzeug.routing import BuildError from ap...
18.909091
79
0.640625
99
832
5.20202
0.525253
0.034951
0.050485
0
0
0
0
0
0
0
0
0.004573
0.211538
832
43
80
19.348837
0.780488
0.02524
0
0
0
0
0.069465
0.030391
0
0
0
0
0
0
null
null
0
0.208333
null
null
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1baeff72b67a42871349dfde1b4d41c64caebd07
720
py
Python
datar/forcats/__init__.py
pdwaggoner/datar
a03f1c0ca0de1270059178e59cea151a51a6e7aa
[ "MIT" ]
110
2021-03-09T04:10:40.000Z
2022-03-13T10:28:20.000Z
datar/forcats/__init__.py
pdwaggoner/datar
a03f1c0ca0de1270059178e59cea151a51a6e7aa
[ "MIT" ]
54
2021-06-20T18:53:44.000Z
2022-03-29T22:13:07.000Z
datar/forcats/__init__.py
pdwaggoner/datar
a03f1c0ca0de1270059178e59cea151a51a6e7aa
[ "MIT" ]
11
2021-06-18T03:03:14.000Z
2022-02-25T11:48:26.000Z
"""Port of forcats""" from .lvl_order import ( as_factor, fct_relevel, fct_inorder, fct_infreq, fct_inseq, fct_reorder, fct_reorder2, fct_rev, fct_shift, fct_shuffle, first2, last2, ) from .lvl_value import ( fct_anon, fct_collapse, fct_lump, fct_lump_lowf...
15.652174
39
0.647222
98
720
4.326531
0.489796
0.082547
0
0
0
0
0
0
0
0
0
0.005747
0.275
720
45
40
16
0.806513
0.020833
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.136364
0
0.136364
0
0
0
0
null
0
0
0
0
0
0
0
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
1bcce82318034440c67323ff75a0529b2ef72996
1,234
py
Python
logs/migrations/0001_initial.py
ir0nfelix/apache-log-parser
9a8f6e65679ac514babefbddfd3dd7323e169930
[ "Apache-2.0" ]
null
null
null
logs/migrations/0001_initial.py
ir0nfelix/apache-log-parser
9a8f6e65679ac514babefbddfd3dd7323e169930
[ "Apache-2.0" ]
null
null
null
logs/migrations/0001_initial.py
ir0nfelix/apache-log-parser
9a8f6e65679ac514babefbddfd3dd7323e169930
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2 on 2021-04-16 07:15 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='LogEntity', fields=[ ('id', models.BigAutoFie...
37.393939
117
0.576985
119
1,234
5.823529
0.588235
0.15873
0.040404
0
0
0
0
0
0
0
0
0.029312
0.281199
1,234
32
118
38.5625
0.751973
0.034846
0
0
1
0
0.153911
0
0
0
0
0
0
1
0
false
0
0.04
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
59edc7adfb7fe27302f88e93ebf17c52ae5291a0
1,110
py
Python
Scripts/read_from_db.py
nikitabuyevich/discover-your-hospital
fb78010c9a5b0ab167c787c188d21fc165964613
[ "MIT" ]
1
2018-02-26T19:29:20.000Z
2018-02-26T19:29:20.000Z
Scripts/read_from_db.py
nikitabuyevich/discover-your-hospital
fb78010c9a5b0ab167c787c188d21fc165964613
[ "MIT" ]
null
null
null
Scripts/read_from_db.py
nikitabuyevich/discover-your-hospital
fb78010c9a5b0ab167c787c188d21fc165964613
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import psycopg2 import sys import sqlalchemy import pandas as pd import json from sodapy import Socrata from pprint import pprint from sys import argv # Connection strings from db_connection import * try: SQLALCHEMY_DATABASE_URI = '%s+%s://%s:%s@%s:%s/%s' % (DB_TYPE, DB...
22.653061
77
0.555856
131
1,110
4.557252
0.519084
0.020101
0.025126
0.026801
0.011725
0.011725
0
0
0
0
0
0.012228
0.336937
1,110
49
78
22.653061
0.798913
0.100901
0
0.068966
0
0
0.11279
0.022155
0
0
0
0
0
1
0
false
0.034483
0.310345
0
0.310345
0.275862
0
0
0
null
0
0
0
0
0
0
0
0
0
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
59f0128da4735a229df20550941a26f154f5b5df
561
py
Python
test/run_pr_test.py
hanskrupakar/fastestimator
1c3fe89ad8b012991b524a6c48f328b2a80dc9f6
[ "Apache-2.0" ]
null
null
null
test/run_pr_test.py
hanskrupakar/fastestimator
1c3fe89ad8b012991b524a6c48f328b2a80dc9f6
[ "Apache-2.0" ]
null
null
null
test/run_pr_test.py
hanskrupakar/fastestimator
1c3fe89ad8b012991b524a6c48f328b2a80dc9f6
[ "Apache-2.0" ]
null
null
null
import os import unittest import tensorflow as tf physical_devices = tf.config.list_physical_devices('GPU') for device in physical_devices: tf.config.experimental.set_memory_growth(device, True) loader = unittest.TestLoader() test_dir = os.path.join(__file__, "..", "PR_test") suite = loader.discover(test_dir) ru...
26.714286
79
0.766488
79
561
5.278481
0.620253
0.107914
0.081535
0.110312
0.1247
0
0
0
0
0
0
0
0.130125
561
20
80
28.05
0.854508
0
0
0
0
0
0.15508
0
0
0
0
0
0
1
0
false
0.133333
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
59f3c9bb4d1812b125e72e4f7bdc6433db2767dd
893
py
Python
jojo/jojo.py
ExtremeTea/Coffee
ec8a88dcc3f23609619ab258521a85602e6e6991
[ "MIT" ]
null
null
null
jojo/jojo.py
ExtremeTea/Coffee
ec8a88dcc3f23609619ab258521a85602e6e6991
[ "MIT" ]
null
null
null
jojo/jojo.py
ExtremeTea/Coffee
ec8a88dcc3f23609619ab258521a85602e6e6991
[ "MIT" ]
null
null
null
from discord.ext import commands import random import discord class jojo: def __init__(self, bot): self.bot = bot @commands.command(pass_context=True) async def jojo(self, context, member: discord.Member): """Give someone Jojo love!""" author = context.message.author.men...
30.793103
194
0.62486
118
893
4.669492
0.474576
0.054446
0.099819
0.127042
0.123412
0
0
0
0
0
0
0.011561
0.225084
893
28
195
31.892857
0.784682
0
0
0
0
0
0.222488
0
0
0
0
0
0
1
0.105263
false
0.052632
0.157895
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