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
bed7a7f211ac4ca2170057d5dae27d3248efc33a
2,198
py
Python
src/main/python/shabda/data/iterators/internal/data_iterator_base.py
dhiraa/sabdha
f428418962dcc76f49e0a451ffc0545fda9b6b59
[ "Apache-2.0" ]
4
2018-10-26T07:00:34.000Z
2020-10-07T01:03:08.000Z
src/main/python/shabda/data/iterators/internal/data_iterator_base.py
dhiraa/sabdha
f428418962dcc76f49e0a451ffc0545fda9b6b59
[ "Apache-2.0" ]
null
null
null
src/main/python/shabda/data/iterators/internal/data_iterator_base.py
dhiraa/sabdha
f428418962dcc76f49e0a451ffc0545fda9b6b59
[ "Apache-2.0" ]
1
2018-10-26T07:00:38.000Z
2018-10-26T07:00:38.000Z
# Copyright 2018 The Shabda Authors. 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...
28.179487
83
0.670155
270
2,198
5.240741
0.418519
0.029682
0.031095
0.031802
0.404947
0.404947
0.35689
0.35689
0.35689
0.35689
0
0.004905
0.257962
2,198
77
84
28.545455
0.862661
0.467698
0
0.130435
0
0
0.008403
0
0
0
0
0
0
1
0.347826
false
0
0.173913
0.043478
0.73913
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
1
0
0
0
0
1
0
0
2
bed7c4898d58c738f63aa212ff888514735a6694
441
py
Python
app/filters.py
dakhnovskaya/organization
72fb6f0a2daf03e7f7ce4dfb2cb3c3eaf1c40851
[ "Apache-2.0" ]
null
null
null
app/filters.py
dakhnovskaya/organization
72fb6f0a2daf03e7f7ce4dfb2cb3c3eaf1c40851
[ "Apache-2.0" ]
null
null
null
app/filters.py
dakhnovskaya/organization
72fb6f0a2daf03e7f7ce4dfb2cb3c3eaf1c40851
[ "Apache-2.0" ]
null
null
null
import django_filters from app.models import Company class CompanyFilter(django_filters.FilterSet): min_cost = django_filters.NumberFilter(field_name='companyproduct__cost', lookup_expr='gte') max_cost = django_filters.NumberFilter(field_name='companyproduct__cost', lookup_expr='lte') class Meta: ...
33.923077
102
0.750567
52
441
5.980769
0.519231
0.167203
0.109325
0.186495
0.424437
0.424437
0.424437
0.424437
0.424437
0.424437
0
0
0.138322
441
12
103
36.75
0.818421
0
0
0
0
0
0.24263
0
0
0
0
0
0
1
0
false
0
0.25
0
0.75
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
bef071b99c5638f1355cc9be272ba0f93a6cb31f
493
py
Python
iot/models.py
kkishans/IOT_DJANGO
12a19858f002a8c684e4dbb93868a8859d57615f
[ "MIT" ]
null
null
null
iot/models.py
kkishans/IOT_DJANGO
12a19858f002a8c684e4dbb93868a8859d57615f
[ "MIT" ]
null
null
null
iot/models.py
kkishans/IOT_DJANGO
12a19858f002a8c684e4dbb93868a8859d57615f
[ "MIT" ]
null
null
null
from django.db import models from django import forms # Create your models here. class User(models.Model): username = models.CharField(max_length=30) password = models.TextField() email = models.EmailField(unique=True) objects = models.Manager() def __str__(self): return self.username clas...
25.947368
60
0.699797
63
493
5.349206
0.571429
0.059347
0.106825
0.142433
0.154303
0
0
0
0
0
0
0.010152
0.200811
493
18
61
27.388889
0.845178
0.048682
0
0
0
0
0.008565
0
0
0
0
0
0
1
0.071429
false
0.071429
0.142857
0.071429
0.928571
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1
0
0
2
bef59fb3dbc590e868cbbe9ba87904ee2be92c5d
528
py
Python
dependencies/generate maps/pythongis/app/tk2/__init__.py
karimbahgat/AutoMap
eae52f16b7ce71cb2b4b7ae67cf6e4680ea2194f
[ "MIT" ]
4
2015-12-05T14:31:55.000Z
2018-02-09T05:54:36.000Z
dependencies/generate maps/pythongis/app/tk2/__init__.py
karimbahgat/AutoMap
eae52f16b7ce71cb2b4b7ae67cf6e4680ea2194f
[ "MIT" ]
1
2022-01-13T02:52:09.000Z
2022-01-13T02:52:09.000Z
dependencies/generate maps/pythongis/app/tk2/__init__.py
karimbahgat/AutoMap
eae52f16b7ce71cb2b4b7ae67cf6e4680ea2194f
[ "MIT" ]
1
2018-10-24T01:08:11.000Z
2018-10-24T01:08:11.000Z
""" Tk2 Tk2 is a convenience library for extending the functionality of Tkinter, to make it easier and more flexible to create GUI applications. """ from .basics import * from .scrollwidgets import * from .texteditor import Text, MultiTextSearch from .variables import * # Later from .multiwidgets import * from .pr...
20.307692
73
0.767045
68
528
5.955882
0.588235
0.197531
0
0
0
0
0
0
0
0
0
0.004577
0.172348
528
25
74
21.12
0.922197
0.371212
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
beff85e9c6691647f15d3bfe260f151e7cc2041f
3,275
py
Python
ally/utils/option.py
rjfranssen/PyAlly
f24d4d449dd0578f52e75365ad0ba69a572d3237
[ "MIT" ]
53
2019-08-11T20:39:16.000Z
2022-02-01T02:05:12.000Z
ally/utils/option.py
rjfranssen/PyAlly
f24d4d449dd0578f52e75365ad0ba69a572d3237
[ "MIT" ]
53
2019-12-11T06:39:59.000Z
2022-02-13T05:06:44.000Z
ally/utils/option.py
rjfranssen/PyAlly
f24d4d449dd0578f52e75365ad0ba69a572d3237
[ "MIT" ]
31
2019-10-05T02:28:16.000Z
2022-02-03T03:41:42.000Z
# MIT License # # Copyright (c) 2020 Brett Graves # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge,...
31.796117
90
0.635725
433
3,275
4.773672
0.397229
0.042574
0.050798
0.060474
0.071601
0.071601
0.071601
0
0
0
0
0.028317
0.245191
3,275
102
91
32.107843
0.807848
0.636336
0
0
0
0
0.051073
0
0
0
0
0
0
1
0.230769
false
0
0.115385
0
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
8305a58a05e7a9623ae618b46a183f5331e34e3b
3,207
py
Python
provision/env/lib/python3.6/site-packages/ansible/plugins/become/dzdo.py
brightkan/tukole-frontend
45e1d82a4ae5a65e88e7434f67d4d1a88f462e96
[ "MIT" ]
1
2020-03-29T18:41:01.000Z
2020-03-29T18:41:01.000Z
ansible/ansible/plugins/become/dzdo.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
7
2020-09-07T17:27:56.000Z
2022-03-02T06:25:46.000Z
ansible/ansible/plugins/become/dzdo.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
1
2020-10-30T12:48:24.000Z
2020-10-30T12:48:24.000Z
# -*- coding: utf-8 -*- # Copyright: (c) 2018, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = """ become: dzdo short_description: Centrify's Dire...
32.72449
131
0.558154
339
3,207
5.038348
0.345133
0.109485
0.089578
0.053864
0.350117
0.289227
0.187354
0.187354
0
0
0
0.005376
0.362021
3,207
97
132
33.061856
0.829423
0.06174
0
0.256098
0
0.012195
0.731358
0.007656
0
0
0
0
0
1
0.012195
false
0.134146
0.02439
0
0.097561
0.012195
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
83080191fabbc152072cd0019bf81fd6f737d375
7,129
py
Python
richardson_extrapolation.py
PrabalChowdhury/CSE330-NUMERICAL-METHODS
aabfea01f4ceaecfbb50d771ee990777d6e1122c
[ "MIT" ]
null
null
null
richardson_extrapolation.py
PrabalChowdhury/CSE330-NUMERICAL-METHODS
aabfea01f4ceaecfbb50d771ee990777d6e1122c
[ "MIT" ]
null
null
null
richardson_extrapolation.py
PrabalChowdhury/CSE330-NUMERICAL-METHODS
aabfea01f4ceaecfbb50d771ee990777d6e1122c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Richardson-Extrapolation.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1oNlSL2Vztk9Fc7tMBgPcL82WGaUuCY-A Before you turn this problem in, make sure everything runs as expected. First, **restart the kernel** (in the me...
36.747423
273
0.591668
1,296
7,129
3.189815
0.20216
0.020319
0.027092
0.026125
0.297533
0.269231
0.258829
0.238268
0.226899
0.203435
0
0.051366
0.183476
7,129
193
274
36.937824
0.658822
0.249544
0
0.254902
1
0
0.056265
0
0
0
0
0.015544
0
1
0.078431
false
0
0.078431
0
0.215686
0.019608
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
1
0
0
0
0
0
0
0
0
0
0
2
830ca47819b03f644d5fc932f9eb92819146316f
1,425
py
Python
nuplan/database/utils/boxes/box.py
MCZhi/nuplan-devkit
3c4f5b8dcd517b27cfd258915ca5fe5c54e3cb0c
[ "Apache-2.0" ]
null
null
null
nuplan/database/utils/boxes/box.py
MCZhi/nuplan-devkit
3c4f5b8dcd517b27cfd258915ca5fe5c54e3cb0c
[ "Apache-2.0" ]
null
null
null
nuplan/database/utils/boxes/box.py
MCZhi/nuplan-devkit
3c4f5b8dcd517b27cfd258915ca5fe5c54e3cb0c
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import abc from typing import Any, Dict class BoxInterface(abc.ABC): """ Interface for box. """ @property # type: ignore @abc.abstractmethod def label(self) -> int: """ Label id. :return: Label id. """ pass @label.sett...
22.619048
77
0.562105
140
1,425
5.692857
0.378571
0.12798
0.150565
0.135508
0.230866
0.230866
0.195734
0
0
0
0
0.001057
0.33614
1,425
62
78
22.983871
0.841438
0.342456
0
0.518519
0
0
0
0
0
0
0
0
0
1
0.222222
false
0.222222
0.111111
0
0.37037
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
0
0
2
830eef9810e77b134c4cc2e988eadd23436bf9ed
4,637
py
Python
gru/plugins/base/inventory.py
similarweb/gru
49ef70c2b5e58302c84dbe7d984a7d49aebc0384
[ "BSD-2-Clause-FreeBSD" ]
7
2016-12-11T19:58:33.000Z
2020-07-11T08:55:34.000Z
gru/plugins/base/inventory.py
similarweb/gru
49ef70c2b5e58302c84dbe7d984a7d49aebc0384
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
gru/plugins/base/inventory.py
similarweb/gru
49ef70c2b5e58302c84dbe7d984a7d49aebc0384
[ "BSD-2-Clause-FreeBSD" ]
1
2019-12-09T19:31:50.000Z
2019-12-09T19:31:50.000Z
from . import BasePlugin from gru.config import settings class Host(object): def __init__(self, host_id, host_data=None): self.host_id = host_id if host_data: self.host_data = host_data else: self.host_data = {} def __repr__(self): return 'Host(host_...
31.120805
117
0.607505
594
4,637
4.540404
0.212121
0.035595
0.022247
0.050426
0.237301
0.228402
0.188357
0.168335
0.168335
0.168335
0
0.002485
0.305801
4,637
148
118
31.331081
0.835353
0.334052
0
0.228916
0
0
0.064746
0.028815
0
0
0
0
0
1
0.240964
false
0.012048
0.024096
0.108434
0.481928
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
2
8314cb28873762113bd7dff276be8513d9a062b7
8,543
py
Python
pimux/function.py
pcpcpc1213/pimux
6ce9c3a59ac04064d46217bcdad531c7171163da
[ "MIT" ]
null
null
null
pimux/function.py
pcpcpc1213/pimux
6ce9c3a59ac04064d46217bcdad531c7171163da
[ "MIT" ]
null
null
null
pimux/function.py
pcpcpc1213/pimux
6ce9c3a59ac04064d46217bcdad531c7171163da
[ "MIT" ]
null
null
null
from . import scrip as t class misc(): ''' The class misc has miscellaneous methods of termuxa-pi available. Available methods are : battery, brightness, vibrate, contactlist, torch, downloadFile ''' def __init__(self): pass def battery(self): ...
26.780564
122
0.570057
989
8,543
4.893832
0.228514
0.036364
0.022314
0.034091
0.170248
0.091942
0.069215
0.020248
0.020248
0.020248
0
0.003472
0.325764
8,543
318
123
26.86478
0.836806
0.336299
0
0.271186
0
0.008475
0.199349
0.02519
0
0
0
0
0
1
0.228814
false
0.059322
0.008475
0
0.474576
0.016949
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
0
0
2
8338456e9d4d6099460e1bd2a49c5b5cf56d90a9
223
py
Python
05/b_average.py
koshin117/python-learning
68dd99e2f72fff7507a874c11511415fef3c9354
[ "MIT" ]
1
2021-03-29T08:30:19.000Z
2021-03-29T08:30:19.000Z
05/b_average.py
koshin117/python-learning
68dd99e2f72fff7507a874c11511415fef3c9354
[ "MIT" ]
null
null
null
05/b_average.py
koshin117/python-learning
68dd99e2f72fff7507a874c11511415fef3c9354
[ "MIT" ]
null
null
null
#B def average(As :list) -> float: return float(sum(As)/len(As)) def main(): # input As = list(map(int, input().split())) # compute # output print(average(As)) if __name__ == '__main__': main()
17.153846
40
0.565022
30
223
3.933333
0.633333
0.152542
0
0
0
0
0
0
0
0
0
0
0.246637
223
12
41
18.583333
0.702381
0.098655
0
0
0
0
0.040609
0
0
0
0
0
0
1
0.285714
false
0
0
0.142857
0.428571
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
8340e8e017d3e1c1641789fc6d116198178f84f1
2,550
py
Python
qiskit/pulse/instructions/delay.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
1
2021-10-05T11:56:53.000Z
2021-10-05T11:56:53.000Z
qiskit/pulse/instructions/delay.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
24
2021-01-27T08:20:27.000Z
2021-07-06T09:42:28.000Z
qiskit/pulse/instructions/delay.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
4
2021-10-05T12:07:27.000Z
2022-01-28T18:37:28.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
35.915493
99
0.671373
325
2,550
5.236923
0.409231
0.014101
0.011751
0
0
0
0
0
0
0
0
0.008772
0.24
2,550
70
100
36.428571
0.869453
0.58549
0
0.15
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.2
0
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
8341a4470393cc4df708339799fbfe8844ec3b50
739
py
Python
mosasaurus/chromaticlc/mptest.py
zkbt/mosasaurus
8ddeaa359adda36e4c48c3c6c476c34fdc09d952
[ "MIT" ]
2
2018-08-03T16:22:27.000Z
2018-09-03T22:46:31.000Z
mosasaurus/chromaticlc/mptest.py
zkbt/mosasaurus
8ddeaa359adda36e4c48c3c6c476c34fdc09d952
[ "MIT" ]
15
2016-11-23T19:59:33.000Z
2019-07-10T13:40:40.000Z
mosasaurus/chromaticlc/mptest.py
zkbt/mosasaurus
8ddeaa359adda36e4c48c3c6c476c34fdc09d952
[ "MIT" ]
1
2016-12-02T20:53:08.000Z
2016-12-02T20:53:08.000Z
import TransmissionSpectrum import multiprocessing obs = 'wasp94_140805.obs' ncpu = multiprocessing.cpu_count() def fastfit(i): t = TransmissionSpectrum.TransmissionSpectrum(obs) t.speak('starting fit for bin {0}'.format(i)) t.bins[i].fit(plot=False, slow=False, interactive=False, remake=True) def slowfit...
33.590909
88
0.741543
103
739
5.281553
0.359223
0.045956
0.226103
0.242647
0.360294
0.360294
0.360294
0.360294
0.360294
0.360294
0
0.024465
0.11502
739
21
89
35.190476
0.807339
0.116373
0
0.3125
0
0
0.099846
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.25
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
83441a6b6c5d79e325330fcd2de68468db5ae8e3
8,923
py
Python
Macro/WorkFeature/Utils/WF_curve.py
myao9494/FreeCAD_Factory
6bf3209f2295d306d4c2c8c2ded25839c837e869
[ "MIT" ]
null
null
null
Macro/WorkFeature/Utils/WF_curve.py
myao9494/FreeCAD_Factory
6bf3209f2295d306d4c2c8c2ded25839c837e869
[ "MIT" ]
null
null
null
Macro/WorkFeature/Utils/WF_curve.py
myao9494/FreeCAD_Factory
6bf3209f2295d306d4c2c8c2ded25839c837e869
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Mar 1 06:59:10 2016 @author: laurent """ from __future__ import division from math import factorial # Pascal's triangle p_t = [ [1], # n=0 [1,1], # n=1 [1,2,1], # n=2 [1,3,3,1], # n=3 [1,4,6,...
27.625387
87
0.420262
1,347
8,923
2.679287
0.130661
0.023275
0.028817
0.008867
0.434192
0.349404
0.303131
0.25381
0.228872
0.187864
0
0.064063
0.274011
8,923
323
88
27.625387
0.493053
0.391124
0
0.368421
0
0
0.06262
0
0
0
0
0
0
0
null
null
0.006579
0.026316
null
null
0.032895
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
1
0
0
0
0
0
0
0
0
2
834c8fddbb55c2d6f805fb0cea2ee12883df1ec1
331
py
Python
debug/read_depth_from_exr_file.py
ccj5351/hmr_rgbd
d1dcf81d72c11e1f502f2c494cd86425f384d9cc
[ "MIT" ]
null
null
null
debug/read_depth_from_exr_file.py
ccj5351/hmr_rgbd
d1dcf81d72c11e1f502f2c494cd86425f384d9cc
[ "MIT" ]
1
2020-12-09T07:29:00.000Z
2020-12-09T07:29:00.000Z
debug/read_depth_from_exr_file.py
ccj5351/hmr_rgbd
d1dcf81d72c11e1f502f2c494cd86425f384d9cc
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 # -*-coding:utf-8-*- # @file: read_depth_from_exr_file.py # @brief: # @author: Changjiang Cai, ccai1@stevens.edu, caicj5351@gmail.com # @version: 0.0.1 # @creation date: 10-06-2019 # @last modified: Mon 10 Jun 2019 06:18:44 PM EDT import cv2 dep = cv2.imread("0.exr",-1) # "-1" means any depth o...
27.583333
65
0.682779
58
331
3.827586
0.810345
0
0
0
0
0
0
0
0
0
0
0.122807
0.138973
331
11
66
30.090909
0.65614
0.818731
0
0
0
0
0.1
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
835b2ca04f52a867e7d976e3a7d13af46d16320d
624
py
Python
adapters/base_adapter.py
juangallostra/moonboard
d4a35857d480ee4bed06faee44e0347e1070b6b8
[ "MIT" ]
null
null
null
adapters/base_adapter.py
juangallostra/moonboard
d4a35857d480ee4bed06faee44e0347e1070b6b8
[ "MIT" ]
null
null
null
adapters/base_adapter.py
juangallostra/moonboard
d4a35857d480ee4bed06faee44e0347e1070b6b8
[ "MIT" ]
null
null
null
from models.problem import Problem class BaseProblemAdapter(): """ Map problem data to a Python object that the renderer can use. """ def map_problem(self, problem_data) -> Problem: """ Given the raw data of a problem, convert it to a Problem object and return it. :pa...
31.2
86
0.658654
78
624
5.217949
0.564103
0.135135
0
0
0
0
0
0
0
0
0
0
0.285256
624
19
87
32.842105
0.912556
0.592949
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
8361ead530441db9333244ae0f2f8927bfbf291f
2,305
py
Python
bprof/profile.py
joelfrederico/bprof
09ada1e8cb0b2ddee3e212e1721c81964fc5f7a4
[ "MIT" ]
null
null
null
bprof/profile.py
joelfrederico/bprof
09ada1e8cb0b2ddee3e212e1721c81964fc5f7a4
[ "MIT" ]
null
null
null
bprof/profile.py
joelfrederico/bprof
09ada1e8cb0b2ddee3e212e1721c81964fc5f7a4
[ "MIT" ]
1
2019-10-19T21:22:02.000Z
2019-10-19T21:22:02.000Z
class BaseFunction: def __init__(self, name, n_calls, internal_ns): self._name = name self._n_calls = n_calls self._internal_ns = internal_ns @property def name(self): return self._name @property def n_calls(self): return self._n_calls @property def...
22.598039
70
0.577007
265
2,305
4.732075
0.124528
0.086124
0.145136
0.070175
0.413876
0.370813
0.370813
0.348485
0.300638
0.300638
0
0.000651
0.333623
2,305
101
71
22.821782
0.815755
0
0
0.474359
0
0
0.03167
0
0
0
0
0
0
1
0.230769
false
0
0
0.166667
0.474359
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
2
83638a87db865ba288d6ca6639d585c34a522b6e
98
py
Python
raspy/io/pwm_channel.py
cyrusbuilt/RasPy
1e34840cc90ea7f19317e881162209d3d819eb09
[ "MIT" ]
null
null
null
raspy/io/pwm_channel.py
cyrusbuilt/RasPy
1e34840cc90ea7f19317e881162209d3d819eb09
[ "MIT" ]
null
null
null
raspy/io/pwm_channel.py
cyrusbuilt/RasPy
1e34840cc90ea7f19317e881162209d3d819eb09
[ "MIT" ]
null
null
null
"""The PWM channel to use.""" CHANNEL0 = 0 """Channel zero.""" CHANNEL1 = 1 """Channel one."""
10.888889
29
0.581633
13
98
4.384615
0.846154
0
0
0
0
0
0
0
0
0
0
0.05
0.183673
98
8
30
12.25
0.6625
0.234694
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
83655e2b69ea8d94a79a740f034c0045712e2d9d
97
py
Python
ABC/131/a.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
ABC/131/a.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
ABC/131/a.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
S = str(input()) if S[0]==S[1] or S[1]==S[2] or S[2]==S[3]: print("Bad") else: print("Good")
16.166667
42
0.494845
23
97
2.086957
0.565217
0.083333
0
0
0
0
0
0
0
0
0
0.074074
0.164948
97
6
43
16.166667
0.518519
0
0
0
0
0
0.071429
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
55f05ed10bf6e796822641491b85dc1b12b2b7ba
375
py
Python
model/pet_breed.py
IDRISSOUM/hospital_management
56a768f29269a77bc890d40479a8aacb90867189
[ "Unlicense" ]
null
null
null
model/pet_breed.py
IDRISSOUM/hospital_management
56a768f29269a77bc890d40479a8aacb90867189
[ "Unlicense" ]
null
null
null
model/pet_breed.py
IDRISSOUM/hospital_management
56a768f29269a77bc890d40479a8aacb90867189
[ "Unlicense" ]
null
null
null
# # -*- coding: utf-8 -*- # # Part of BrowseInfo. See LICENSE file for full copyright and licensing details. # # from odoo import api, fields, models, _ # # class pet_breed(models.Model): # _name = 'pet.breed' # # name = fields.Char('Name', required = True) # code = fields.Char('Code') # # # # vim:expa...
28.846154
82
0.653333
48
375
5.041667
0.770833
0.066116
0
0
0
0
0
0
0
0
0
0.013115
0.186667
375
13
83
28.846154
0.780328
0.92
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
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
1
0
0
0
0
0
0
2
3613f877b238035dadd508a419d964a6d0b3a50e
1,084
py
Python
api/permissions.py
letsdowork/yamdb_api
f493309dc52528d980463047d311d898714f3111
[ "MIT" ]
null
null
null
api/permissions.py
letsdowork/yamdb_api
f493309dc52528d980463047d311d898714f3111
[ "MIT" ]
null
null
null
api/permissions.py
letsdowork/yamdb_api
f493309dc52528d980463047d311d898714f3111
[ "MIT" ]
null
null
null
from rest_framework.permissions import BasePermission, SAFE_METHODS from .models import User class IsAdminOrReadOnly(BasePermission): def has_permission(self, request, view): return bool( request.method in SAFE_METHODS or request.user and request.user.is_authenticated and ...
31.882353
67
0.681734
129
1,084
5.573643
0.286822
0.214186
0.144645
0.111266
0.561892
0.528512
0.528512
0.528512
0.528512
0.528512
0
0
0.24631
1,084
33
68
32.848485
0.880049
0
0
0.625
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.083333
0.125
0.5
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
1
0
0
0
2
3616727077997c5d64715fd00bfc6be4f8ba4ad8
1,323
py
Python
steapy/velocity_field.py
Sparsh-Sharma/SteaPy
d6f3bee7eb1385c83f65f345d466ef740db4ed3b
[ "MIT" ]
1
2017-04-28T13:05:13.000Z
2017-04-28T13:05:13.000Z
steapy/velocity_field.py
Sparsh-Sharma/SteaPy
d6f3bee7eb1385c83f65f345d466ef740db4ed3b
[ "MIT" ]
null
null
null
steapy/velocity_field.py
Sparsh-Sharma/SteaPy
d6f3bee7eb1385c83f65f345d466ef740db4ed3b
[ "MIT" ]
null
null
null
import os import numpy from numpy import * import math from scipy import integrate, linalg from matplotlib import pyplot from pylab import * from .integral import * def get_velocity_field(panels, freestream, X, Y): """ Computes the velocity field on a given 2D mesh. Parameters --------- panel...
29.4
87
0.652305
186
1,323
4.591398
0.370968
0.040984
0.056206
0.065574
0.35363
0.35363
0.177986
0.177986
0.086651
0.086651
0
0.014228
0.256236
1,323
44
88
30.068182
0.853659
0.432351
0
0
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0.5
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1
0
0
2
3616ce719b349e94d2bd7c4da3e42707eb0de49d
4,125
py
Python
admin/hams_admin/container_manager.py
hku-systems/hams
3a5720657252c650c9a6c5d9b674f7ea6153e557
[ "Apache-2.0" ]
6
2020-08-19T11:46:23.000Z
2021-12-24T07:34:15.000Z
admin/hams_admin/container_manager.py
hku-systems/hams
3a5720657252c650c9a6c5d9b674f7ea6153e557
[ "Apache-2.0" ]
1
2021-03-25T23:40:15.000Z
2021-03-25T23:40:15.000Z
admin/hams_admin/container_manager.py
hku-systems/hams
3a5720657252c650c9a6c5d9b674f7ea6153e557
[ "Apache-2.0" ]
2
2020-10-31T16:48:39.000Z
2021-03-07T09:14:25.000Z
import abc from .exceptions import HamsException import logging # Constants HAMS_INTERNAL_QUERY_PORT = 1337 HAMS_INTERNAL_MANAGEMENT_PORT = 1338 HAMS_INTERNAL_RPC_PORT = 7000 HAMS_INTERNAL_METRIC_PORT = 1390 HAMS_INTERNAL_REDIS_PORT = 6379 HAMS_DOCKER_LABEL = "ai.hams.container.label" HAMS_NAME_LABEL = "ai.hams.name"...
28.448276
137
0.701333
515
4,125
5.330097
0.293204
0.111475
0.131148
0.151548
0.241894
0.120947
0.052459
0
0
0
0
0.007027
0.206545
4,125
144
138
28.645833
0.831653
0.132606
0
0.364583
0
0
0.116417
0.075728
0
0
0
0
0
1
0.21875
false
0.010417
0.03125
0.197917
0.489583
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
2
3628f30f1da84eb0aeefd00f476c1a8932e5c523
1,245
py
Python
src/attribute_generator.py
neutron101/cs231A-project
a147a3cc7de66c852dfc6b8cb9c65780c9d55d07
[ "MIT" ]
null
null
null
src/attribute_generator.py
neutron101/cs231A-project
a147a3cc7de66c852dfc6b8cb9c65780c9d55d07
[ "MIT" ]
null
null
null
src/attribute_generator.py
neutron101/cs231A-project
a147a3cc7de66c852dfc6b8cb9c65780c9d55d07
[ "MIT" ]
null
null
null
import numpy as np class AttributeGenerator: def __init__(self, RTs, Ks, Ps): self._RTs = RTs self._Ks = Ks self._Ps = Ps def generate(self): self._update_intrinsics() self._update_translation_and_rotation() self._updateProjection() def use_default_translation_and_rotation(self): self.rotation_tra...
24.411765
144
0.702811
195
1,245
4.25641
0.235897
0.026506
0.193976
0.019277
0.349398
0.277108
0.245783
0.089157
0.089157
0
0
0.030784
0.138956
1,245
51
145
24.411765
0.74347
0
0
0
1
0
0
0
0
0
0
0
0
1
0.2
false
0
0.033333
0
0.266667
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
362f493d8462bb8006f529fc1fed6929dd628362
1,206
py
Python
providers/scoop_mock_provider.py
prezesp/scoop-viewer
115f413979ba2e4e766e334f0240082a9343e314
[ "MIT" ]
86
2018-07-17T14:21:05.000Z
2022-03-29T03:00:40.000Z
providers/scoop_mock_provider.py
prezesp/scoop-viewer
115f413979ba2e4e766e334f0240082a9343e314
[ "MIT" ]
16
2018-04-24T22:45:24.000Z
2021-12-15T08:37:38.000Z
providers/scoop_mock_provider.py
prezesp/scoop-viewer
115f413979ba2e4e766e334f0240082a9343e314
[ "MIT" ]
5
2018-03-28T18:24:52.000Z
2022-01-08T11:28:31.000Z
""" Module to interact with scoop. """ from subprocess import Popen, PIPE # nosec import os class ScoopMockProvider: """ Module to interact with scoop. """ def __init__(self): self.version = 'unknown' def get_version(self): pass def __run_scoop(self, args, universal_newlines=False): ...
32.594595
82
0.609453
139
1,206
5.057554
0.453237
0.045519
0.076814
0.056899
0.071124
0
0
0
0
0
0
0.015385
0.245439
1,206
36
83
33.5
0.757143
0.182421
0
0
0
0
0.055731
0
0
0
0
0
0
1
0.3
false
0.05
0.1
0
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
362ff49962e9b464199213d8822138a4aa8efdf5
515
py
Python
services/movies_streaming_converter/src/models/convertation.py
fuodorov/yacinema
43ad869575fbaab7c7056229538638666aa87110
[ "MIT" ]
null
null
null
services/movies_streaming_converter/src/models/convertation.py
fuodorov/yacinema
43ad869575fbaab7c7056229538638666aa87110
[ "MIT" ]
null
null
null
services/movies_streaming_converter/src/models/convertation.py
fuodorov/yacinema
43ad869575fbaab7c7056229538638666aa87110
[ "MIT" ]
1
2021-09-30T09:49:40.000Z
2021-09-30T09:49:40.000Z
import datetime import uuid from typing import Optional from models.base import CustomBaseModel class ConvertVideoIn(CustomBaseModel): source_path: str destination_path: str resolution: str codec_name: Optional[str] = None display_aspect_ratio: Optional[str] = None fps: Optional[int] = None ...
21.458333
59
0.751456
59
515
6.457627
0.559322
0.125984
0.07874
0
0
0
0
0
0
0
0
0.002347
0.172816
515
23
60
22.391304
0.892019
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.25
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
2
3632e12e345819f464e0f6feced15ba246770c00
5,832
py
Python
quadpy/triangle/_laursen_gellert.py
dariusarnold/quadpy
9dc7c1ebff99d15ae57ed9195cde94d97a599be8
[ "MIT" ]
null
null
null
quadpy/triangle/_laursen_gellert.py
dariusarnold/quadpy
9dc7c1ebff99d15ae57ed9195cde94d97a599be8
[ "MIT" ]
null
null
null
quadpy/triangle/_laursen_gellert.py
dariusarnold/quadpy
9dc7c1ebff99d15ae57ed9195cde94d97a599be8
[ "MIT" ]
null
null
null
from sympy import Rational as frac from ..helpers import article from ._helpers import TriangleScheme, concat, s1, s2, s3 citation = article( authors=["M.E. Laursen", "M. Gellert"], title="Some criteria for numerically integrated matrices and quadrature formulas for triangles", journal="International Jour...
32.043956
100
0.641632
607
5,832
6.108731
0.313015
0.128371
0.07794
0.155879
0.250539
0.140237
0.140237
0.014024
0
0
0
0.403975
0.232167
5,832
181
101
32.220994
0.42385
0
0
0.241379
0
0
0.088649
0
0
0
0
0
0
1
0.117241
false
0
0.02069
0
0.255172
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
2
3645c7b92794db29663c1c763622e5f0554a803c
1,771
py
Python
src/commons/big_query/big_query_job_reference.py
Morgenz/bbq
f0fd3f626841c610aee80ad08a61123b7cccb775
[ "Apache-2.0" ]
41
2018-05-08T11:54:37.000Z
2022-02-09T21:19:17.000Z
src/commons/big_query/big_query_job_reference.py
Morgenz/bbq
f0fd3f626841c610aee80ad08a61123b7cccb775
[ "Apache-2.0" ]
139
2018-06-07T13:45:21.000Z
2021-04-30T20:44:06.000Z
src/commons/big_query/big_query_job_reference.py
Morgenz/bbq
f0fd3f626841c610aee80ad08a61123b7cccb775
[ "Apache-2.0" ]
5
2019-09-11T12:28:24.000Z
2022-02-04T21:38:29.000Z
from src.commons.big_query.copy_job_async.result_check.result_check_request import \ ResultCheckRequest from src.commons.big_query.copy_job_async.task_creator import TaskCreator class BigQueryJobReference(object): def __init__(self, project_id, job_id, location): self.project_id = project_id s...
36.142857
84
0.631846
208
1,771
4.932692
0.240385
0.053606
0.063353
0.040936
0.177388
0.066277
0.066277
0.066277
0
0
0
0
0.285714
1,771
48
85
36.895833
0.811067
0
0
0
0
0
0.046866
0.019198
0
0
0
0
0
1
0.205128
false
0
0.051282
0.153846
0.435897
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
2
364be06117f32488ff211fd30ee702031b4b63f0
935
py
Python
make_mozilla/events/tests/test_paginators.py
Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c
f80e7c0cff97a1e9b301aa04015db983c7645778
[ "BSD-3-Clause" ]
4
2015-05-08T16:58:53.000Z
2019-09-06T05:30:59.000Z
make_mozilla/events/tests/test_paginators.py
Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c
f80e7c0cff97a1e9b301aa04015db983c7645778
[ "BSD-3-Clause" ]
2
2019-02-17T17:44:53.000Z
2019-03-28T03:54:39.000Z
make_mozilla/events/tests/test_paginators.py
Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c
f80e7c0cff97a1e9b301aa04015db983c7645778
[ "BSD-3-Clause" ]
7
2015-05-21T15:38:29.000Z
2019-10-28T23:39:06.000Z
from django.utils import unittest from nose.tools import eq_, ok_ from make_mozilla.events.paginators import results_page sample_results = [1,2,3,4,5,6,7,8,9,0] class TestResultsPage(unittest.TestCase): def test_returns_page_1_if_page_unspecified(self): page = results_page(sample_results, 4) ...
28.333333
67
0.686631
144
935
4.048611
0.333333
0.113208
0.145798
0.205832
0.478559
0.425386
0.353345
0.296741
0
0
0
0.036885
0.217112
935
32
68
29.21875
0.759563
0
0
0.15
0
0
0.005348
0
0
0
0
0
0
1
0.25
false
0
0.15
0
0.45
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
1
0
0
0
0
0
0
0
2
3657fec70ed8fedb4b5b14e5e0ae343bef42588d
2,324
py
Python
python/src/main/python/pygw/store/rocksdb/options.py
Maxar-Corp/sh-geowave
675781d3898b50c09ee66f57e74cf788286b05d5
[ "Apache-2.0" ]
null
null
null
python/src/main/python/pygw/store/rocksdb/options.py
Maxar-Corp/sh-geowave
675781d3898b50c09ee66f57e74cf788286b05d5
[ "Apache-2.0" ]
null
null
null
python/src/main/python/pygw/store/rocksdb/options.py
Maxar-Corp/sh-geowave
675781d3898b50c09ee66f57e74cf788286b05d5
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2013-2020 Contributors to the Eclipse Foundation # # See the NOTICE file distributed with this work for additional information regarding copyright # ownership. All rights reserved. This program and the accompanying materials are made available # under the terms of the Apache License, Version 2.0 whic...
31.835616
96
0.63167
267
2,324
5.318352
0.419476
0.039437
0.046479
0.035915
0.133803
0.119718
0.119718
0.119718
0.066197
0.066197
0
0.006948
0.256885
2,324
72
97
32.277778
0.815287
0.51506
0
0
0
0
0
0
0
0
0
0
0
1
0.411765
false
0
0.117647
0
0.764706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
3665bd678eff29512019ffaccbebf303e9c263a9
1,461
py
Python
composer/trainer/devices/device_cpu.py
IanWorley/composer
e4d443012511b387ad495b4add3b3b101d729741
[ "Apache-2.0" ]
null
null
null
composer/trainer/devices/device_cpu.py
IanWorley/composer
e4d443012511b387ad495b4add3b3b101d729741
[ "Apache-2.0" ]
null
null
null
composer/trainer/devices/device_cpu.py
IanWorley/composer
e4d443012511b387ad495b4add3b3b101d729741
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 MosaicML. All Rights Reserved. """The CPU device used for training.""" from __future__ import annotations import logging from contextlib import contextmanager from typing import Any, Dict, Generator, TypeVar, Union import torch from composer.core import Precision from composer.trainer.devices.devi...
27.566038
97
0.687201
184
1,461
5.298913
0.413043
0.046154
0.045128
0.057436
0
0
0
0
0
0
0
0.006066
0.21013
1,461
52
98
28.096154
0.838821
0.147159
0
0
0
0
0.077551
0
0
0
0
0
0
1
0.172414
false
0
0.241379
0.103448
0.62069
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
36957809b7a097e9aca4a9f73c606e574242991c
18,656
py
Python
pysnmp-with-texts/SW-VLAN-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/SW-VLAN-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/SW-VLAN-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module SW-VLAN-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SW-VLAN-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:12:44 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 0...
143.507692
1,908
0.767206
2,434
18,656
5.879211
0.136812
0.011181
0.085115
0.012858
0.524109
0.377568
0.35856
0.337945
0.307407
0.269113
0
0.070702
0.109938
18,656
129
1,909
144.620155
0.791087
0.016938
0
0
0
0.142857
0.306912
0.009547
0
0
0
0
0
1
0
false
0
0.05042
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
3696d9a0ae665b8ea6b0dd59b9953426ce1a1124
424
py
Python
fastparquet/__init__.py
jorisvandenbossche/fastparquet
e783eca9499883a6f025f18cce709c226e21402f
[ "Apache-2.0" ]
null
null
null
fastparquet/__init__.py
jorisvandenbossche/fastparquet
e783eca9499883a6f025f18cce709c226e21402f
[ "Apache-2.0" ]
null
null
null
fastparquet/__init__.py
jorisvandenbossche/fastparquet
e783eca9499883a6f025f18cce709c226e21402f
[ "Apache-2.0" ]
null
null
null
"""parquet - read parquet files.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from .thrift_structures import parquet_thrift from .core import read_thrift from .writer import write from . import core, schema, conv...
28.266667
48
0.823113
57
424
5.649123
0.491228
0.124224
0.198758
0
0
0
0
0
0
0
0
0.008086
0.125
424
14
49
30.285714
0.859838
0.068396
0
0
0
0
0.012853
0
0
0
0
0
0
1
0
false
0
0.909091
0
0.909091
0.090909
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
1
0
0
0
0
2
369bd233d08fbdcd2a214a81e7c5f52a9ce6ed4e
551
py
Python
OSIx/modules/temp_file_manager.py
guibacellar/OSIx
058714c1870bde0d794452b32ad0e62d544bdd90
[ "Apache-2.0" ]
1
2021-08-17T18:45:07.000Z
2021-08-17T18:45:07.000Z
OSIx/modules/temp_file_manager.py
guibacellar/OSIx
058714c1870bde0d794452b32ad0e62d544bdd90
[ "Apache-2.0" ]
12
2021-08-11T18:24:32.000Z
2021-08-23T14:57:36.000Z
OSIx/modules/temp_file_manager.py
guibacellar/OSIx
058714c1870bde0d794452b32ad0e62d544bdd90
[ "Apache-2.0" ]
null
null
null
"""Temporary Files Manager.""" import logging from configparser import ConfigParser from typing import Dict from OSIx.core.base_module import BaseModule from OSIx.core.temp_file import TempFileHandler logger = logging.getLogger() class TempFileManager(BaseModule): """Temporary File Manager.""" def run(se...
22.04
72
0.69873
60
551
6.316667
0.583333
0.042216
0.063325
0
0
0
0
0
0
0
0
0
0.201452
551
24
73
22.958333
0.861364
0.116152
0
0
0
0
0.03397
0
0
0
0
0
0
1
0.083333
false
0
0.416667
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1
0
0
2
369df66a1e15a4a67f881d9565ed02382eda4bee
1,237
py
Python
sysinv/sysinv/sysinv/sysinv/tests/helm/test_base.py
albailey/config
40ebe63d7dfc6a0a03216ebe55ed3ec9cf5410b9
[ "Apache-2.0" ]
10
2020-02-07T18:57:44.000Z
2021-09-11T10:29:34.000Z
sysinv/sysinv/sysinv/sysinv/tests/helm/test_base.py
albailey/config
40ebe63d7dfc6a0a03216ebe55ed3ec9cf5410b9
[ "Apache-2.0" ]
1
2021-01-14T12:01:55.000Z
2021-01-14T12:01:55.000Z
sysinv/sysinv/sysinv/sysinv/tests/helm/test_base.py
albailey/config
40ebe63d7dfc6a0a03216ebe55ed3ec9cf5410b9
[ "Apache-2.0" ]
10
2020-10-13T08:37:46.000Z
2022-02-09T00:21:25.000Z
# Copyright (c) 2021 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # import mock from sysinv.helm.base import BaseHelm from sysinv.helm.helm import HelmOperator from sysinv.tests import base as test_base class TestHelmBase(test_base.TestCase): def test_num_replicas_for_platform_app_0_control...
37.484848
100
0.805174
166
1,237
5.560241
0.307229
0.095341
0.121343
0.190683
0.449621
0.449621
0.381365
0.346696
0.346696
0.346696
0
0.013953
0.130962
1,237
32
101
38.65625
0.844651
0.063864
0
0
0
0
0
0
0
0
0
0
0.055556
1
0.222222
false
0
0.222222
0
0.5
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
1
0
0
0
0
0
0
0
2
369eb5cfd592210dd63a2cf4b6ab2112394dc2c9
612
py
Python
tests/test_as_decimal.py
lkattis-signal/SignalSDK
f085b9cae0495f4e016b9982df271efc6fd0a8f5
[ "Apache-2.0" ]
10
2020-09-29T06:36:45.000Z
2022-03-14T18:15:50.000Z
tests/test_as_decimal.py
lkattis-signal/SignalSDK
f085b9cae0495f4e016b9982df271efc6fd0a8f5
[ "Apache-2.0" ]
53
2020-10-08T10:05:00.000Z
2022-03-29T14:21:18.000Z
tests/test_as_decimal.py
lkattis-signal/SignalSDK
f085b9cae0495f4e016b9982df271efc6fd0a8f5
[ "Apache-2.0" ]
5
2020-09-25T07:48:04.000Z
2021-11-23T07:08:56.000Z
from decimal import Decimal from signal_ocean._internals import as_decimal def test_handles_None(): assert as_decimal(None) is None def test_handles_empty_strings(): assert as_decimal("") is None def test_parses_strings(): assert as_decimal("12.345") == Decimal("12.345") def test_handles_0(): a...
20.4
57
0.714052
90
612
4.611111
0.377778
0.13012
0.144578
0.062651
0.115663
0
0
0
0
0
0
0.118812
0.174837
612
29
58
21.103448
0.70297
0.129085
0
0
0
0
0.045283
0
0
0
0
0
0.428571
1
0.357143
false
0
0.142857
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
0
0
0
0
0
0
0
2
36ae9333eaabebfa5f7eb2cc25d299b4c6d41d73
4,501
py
Python
tests/test_hexamer/test_search_hexamer.py
zyxue/kleat3
861b02797937eea51e99f9c29d195fb3e7dea376
[ "MIT" ]
null
null
null
tests/test_hexamer/test_search_hexamer.py
zyxue/kleat3
861b02797937eea51e99f9c29d195fb3e7dea376
[ "MIT" ]
null
null
null
tests/test_hexamer/test_search_hexamer.py
zyxue/kleat3
861b02797937eea51e99f9c29d195fb3e7dea376
[ "MIT" ]
null
null
null
import unittest from kleat.hexamer.search import plus_search, minus_search, search from kleat.hexamer.hexamer import extract_seq class TestSearchHexamer(unittest.TestCase): def test_plus_search(self): self.assertEqual(plus_search('GGGAATAAAG', 9), ('AATAAA', 16, 3)) self.assertEqual(plus_search('...
36.008
91
0.608309
513
4,501
5.109162
0.249513
0.131629
0.08699
0.11446
0.557802
0.47272
0.427318
0.382297
0.264784
0.205265
0
0.071322
0.255499
4,501
124
92
36.298387
0.709042
0.329038
0
0
0
0
0.141866
0.026015
0
0
0
0
0.479167
1
0.270833
false
0
0.0625
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
1
0
1
0
0
0
0
0
0
0
2
36b37042d59ea92a31e186729793c7340e94c845
773
py
Python
tests/test_quaternionic.py
mhostetter/quaternionic
159ba7caa41afe33172373ebe4119209577812c1
[ "MIT" ]
40
2020-08-11T22:13:49.000Z
2022-03-25T08:10:19.000Z
tests/test_quaternionic.py
mhostetter/quaternionic
159ba7caa41afe33172373ebe4119209577812c1
[ "MIT" ]
28
2020-08-27T17:09:34.000Z
2022-03-27T19:56:57.000Z
tests/test_quaternionic.py
mhostetter/quaternionic
159ba7caa41afe33172373ebe4119209577812c1
[ "MIT" ]
6
2020-09-05T13:12:51.000Z
2022-03-10T02:59:05.000Z
import warnings import numpy as np import quaternionic import pytest def test_constants(): for const in ['one', 'x', 'y', 'z', 'i', 'j', 'k']: assert hasattr(quaternionic, const) c = getattr(quaternionic, const) with pytest.raises(ValueError): c *= 1.2 assert np.equal(quate...
38.65
69
0.659767
115
773
4.426087
0.278261
0.039293
0.178782
0.343811
0.497053
0.497053
0.361493
0.361493
0.361493
0.361493
0
0.047847
0.188875
773
19
70
40.684211
0.763955
0
0
0
0
0
0.011643
0
0
0
0
0
0.470588
1
0.058824
false
0
0.235294
0
0.294118
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
2
36b4217be63fc502a7a8b608b61caf14733e4c6e
1,477
py
Python
carla_ros_bridge/src/carla_ros_bridge/coordinate_converter.py
OlafOrangi/ros-bridge
732d5f99e5e1f4d0ea7e4873ccc34f0a40f1203c
[ "MIT" ]
null
null
null
carla_ros_bridge/src/carla_ros_bridge/coordinate_converter.py
OlafOrangi/ros-bridge
732d5f99e5e1f4d0ea7e4873ccc34f0a40f1203c
[ "MIT" ]
null
null
null
carla_ros_bridge/src/carla_ros_bridge/coordinate_converter.py
OlafOrangi/ros-bridge
732d5f99e5e1f4d0ea7e4873ccc34f0a40f1203c
[ "MIT" ]
null
null
null
#!/usr/bin/env python from geometry_msgs.msg import Pose, Point, Quaternion, Vector3 import numpy as np import tf def convert_pose(pose): """ convert pose between left and right-hand coordinate system :param pose: pose to be converted :return: converted pose """ data = Pose() data.position...
26.375
74
0.688558
201
1,477
5
0.228856
0.049751
0.069652
0.094527
0.431841
0.348259
0.348259
0.348259
0.179104
0.179104
0
0.007712
0.209885
1,477
55
75
26.854545
0.85347
0.439404
0
0
0
0
0
0
0
0
0
0
0
1
0.277778
false
0
0.166667
0
0.722222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
36c29207131a5d0aabb533544ef1349cab67ea61
2,477
py
Python
src/arch/riscv/RiscvCPU.py
yclin99/CS251A_final_gem5
391ca1d7c9484f4d58fce9a4424821dcbb2463ac
[ "BSD-3-Clause" ]
1
2022-03-25T13:18:26.000Z
2022-03-25T13:18:26.000Z
src/arch/riscv/RiscvCPU.py
yclin99/CS251A_final_gem5
391ca1d7c9484f4d58fce9a4424821dcbb2463ac
[ "BSD-3-Clause" ]
1
2022-03-25T14:15:30.000Z
2022-03-25T14:15:30.000Z
src/arch/riscv/RiscvCPU.py
ksco/gem5-xiangshan
0baf1b5229885d81d689a677102f0665aaac5514
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2021 Google, Inc. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer; # redistribu...
44.232143
72
0.805006
312
2,477
6.391026
0.458333
0.027081
0.058676
0.048144
0.092277
0.068205
0.068205
0.068205
0.068205
0.068205
0
0.008045
0.146952
2,477
55
73
45.036364
0.935637
0.582156
0
0.208333
0
0
0
0
0
0
0
0
0
1
0
false
0
0.375
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
1
0
1
0
0
2
36c4f0d8dd30675016f1cde8a4e0b430d5e215ed
164
py
Python
misc/validateInput.py
viju4you/Python
3c4a3a46265e71fc21da62d2cb204d20dcd9ec62
[ "CC0-1.0" ]
110
2017-03-11T23:37:46.000Z
2021-07-12T11:51:32.000Z
misc/validateInput.py
viju4you/Python
3c4a3a46265e71fc21da62d2cb204d20dcd9ec62
[ "CC0-1.0" ]
null
null
null
misc/validateInput.py
viju4you/Python
3c4a3a46265e71fc21da62d2cb204d20dcd9ec62
[ "CC0-1.0" ]
52
2016-11-27T19:50:40.000Z
2022-02-09T06:37:24.000Z
# Validate input while True: print('Enter your age:') age = input() if age.isdecimal(): break print('Pleas enter a number for your age.')
16.4
47
0.597561
22
164
4.454545
0.681818
0.142857
0
0
0
0
0
0
0
0
0
0
0.286585
164
9
48
18.222222
0.837607
0.085366
0
0
0
0
0.333333
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
36cae8cc11223214274fe92b0ac8c6515461f9fe
1,825
py
Python
funing/_ui/about.py
larryw3i/Funing
8ef88af8766f0246614517fa00f3b322ba722d6b
[ "MIT" ]
1
2021-08-22T05:56:09.000Z
2021-08-22T05:56:09.000Z
funing/_ui/about.py
larryw3i/Funing
8ef88af8766f0246614517fa00f3b322ba722d6b
[ "MIT" ]
null
null
null
funing/_ui/about.py
larryw3i/Funing
8ef88af8766f0246614517fa00f3b322ba722d6b
[ "MIT" ]
null
null
null
import gettext import os import re import subprocess import sys import time import tkinter as tk import tkinter.filedialog as tkf import uuid import webbrowser from datetime import date, datetime from enum import Enum from tkinter import * from tkinter import messagebox from tkinter.ttk import * import cv2 import num...
23.397436
73
0.656438
229
1,825
5.074236
0.375546
0.084337
0.04475
0.030981
0.036145
0
0
0
0
0
0
0.000741
0.260822
1,825
77
74
23.701299
0.860638
0.029589
0
0.103448
0
0
0.039093
0
0
0
0
0
0
1
0.137931
false
0
0.396552
0
0.551724
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1
0
0
2
36d22a39c7974086f08155ff6bf52d3cb2267f62
574
py
Python
blender/arm/logicnode/transform/LN_separate_quaternion.py
niacdoial/armory
3f9b633fbf772017c576a3f77695a6c28d9956e1
[ "Zlib" ]
null
null
null
blender/arm/logicnode/transform/LN_separate_quaternion.py
niacdoial/armory
3f9b633fbf772017c576a3f77695a6c28d9956e1
[ "Zlib" ]
null
null
null
blender/arm/logicnode/transform/LN_separate_quaternion.py
niacdoial/armory
3f9b633fbf772017c576a3f77695a6c28d9956e1
[ "Zlib" ]
null
null
null
from arm.logicnode.arm_nodes import * class SeparateQuaternionNode(ArmLogicTreeNode): """TO DO.""" bl_idname = 'LNSeparateQuaternionNode' bl_label = "Separate Quaternion" arm_section = 'quaternions' arm_version = 1 def init(self, context): super(SeparateQuaternionNode, self).init(cont...
31.888889
57
0.679443
58
574
6.551724
0.586207
0.092105
0.136842
0.294737
0
0
0
0
0
0
0
0.00216
0.19338
574
17
58
33.764706
0.818575
0.010453
0
0
0
0
0.256228
0.042705
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.538462
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
36d6b30d341d10b3fc5496de476fb8b78f692188
460
py
Python
openapi/tests/matchers.py
suihanki/openapi
c67ee4ec0284bc1da5bda2c6b8497d6a33bb69a0
[ "Apache-2.0" ]
25
2016-08-09T18:40:42.000Z
2019-07-15T20:37:13.000Z
openapi/tests/matchers.py
suihanki/openapi
c67ee4ec0284bc1da5bda2c6b8497d6a33bb69a0
[ "Apache-2.0" ]
5
2016-08-16T18:34:44.000Z
2020-03-24T21:01:26.000Z
openapi/tests/matchers.py
suihanki/openapi
c67ee4ec0284bc1da5bda2c6b8497d6a33bb69a0
[ "Apache-2.0" ]
11
2016-09-14T09:12:49.000Z
2020-01-31T19:27:07.000Z
""" Custom hamcrest matchers. """ from hamcrest.core.base_matcher import BaseMatcher from json import dumps, loads class JSONMatcher(BaseMatcher): """ Match JSON content. """ def __init__(self, s): self.json = loads(s) def _matches(self, item): return loads(item) == self.json ...
18.4
70
0.671739
56
460
5.321429
0.517857
0.080537
0
0
0
0
0
0
0
0
0
0
0.213043
460
24
71
19.166667
0.823204
0.097826
0
0
0
0
0.012788
0
0
0
0
0
0
1
0.3
false
0
0.2
0.1
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
36d90f9194a3f4a5adea321bf4cf9176ed0ded59
250
py
Python
Wyklad/OOP/Sheep.py
tborzyszkowski/PythonWorld
dc776d3ab4569297b6b6681e4390aeedf1262c78
[ "MIT" ]
3
2019-02-24T07:49:33.000Z
2022-01-09T11:27:21.000Z
Wyklad/OOP/Sheep.py
tborzyszkowski/PythonWorld
dc776d3ab4569297b6b6681e4390aeedf1262c78
[ "MIT" ]
null
null
null
Wyklad/OOP/Sheep.py
tborzyszkowski/PythonWorld
dc776d3ab4569297b6b6681e4390aeedf1262c78
[ "MIT" ]
17
2018-12-09T08:44:52.000Z
2022-01-25T15:08:04.000Z
from Animal import Animal class Sheep(Animal): def __init__(self, sheep=None, position=None): super(Sheep, self).__init__(sheep, position) def clone(self): return Sheep(self, None) def initParams(self): self.power = 3 self.sign = 'S'
16.666667
47
0.704
36
250
4.666667
0.5
0.107143
0
0
0
0
0
0
0
0
0
0.004808
0.168
250
14
48
17.857143
0.802885
0
0
0
0
0
0.004
0
0
0
0
0
0
1
0.333333
false
0
0.111111
0.111111
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
1
0
0
0
1
0
0
0
2
7fc685dc97d5c6a0bef64129b54db775abc19da1
21,614
py
Python
polyaxon_schemas/layers/core.py
gzcf/polyaxon-schemas
a381280cd7535f64158d52f0a9eff2afec997d90
[ "MIT" ]
null
null
null
polyaxon_schemas/layers/core.py
gzcf/polyaxon-schemas
a381280cd7535f64158d52f0a9eff2afec997d90
[ "MIT" ]
null
null
null
polyaxon_schemas/layers/core.py
gzcf/polyaxon-schemas
a381280cd7535f64158d52f0a9eff2afec997d90
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from marshmallow import fields, post_dump, post_load, validate from polyaxon_schemas.constraints import ConstraintSchema from polyaxon_schemas.initializations import ( GlorotNormalInitializerConfig, InitializerSchema, ...
28.364829
88
0.659434
2,558
21,614
5.45817
0.162627
0.016044
0.026071
0.018622
0.46691
0.423435
0.391563
0.351382
0.302321
0.288569
0
0.013306
0.255899
21,614
761
89
28.402103
0.854816
0.506015
0
0.362903
0
0
0.020262
0.002346
0
0
0
0
0
1
0.149194
false
0
0.028226
0.104839
0.637097
0.004032
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
7fc71d742b9583424424ab4953dff97d093bc116
5,556
py
Python
tests/unit/models/cardlesscredit/test_create_payment.py
glendaesutanto/xendit-python
f9b131882ff7d045f2e2c6518933d1594efba3e6
[ "MIT" ]
10
2020-10-31T23:34:34.000Z
2022-03-08T19:08:55.000Z
tests/unit/models/cardlesscredit/test_create_payment.py
glendaesutanto/xendit-python
f9b131882ff7d045f2e2c6518933d1594efba3e6
[ "MIT" ]
22
2020-07-30T14:25:07.000Z
2022-03-31T03:55:46.000Z
tests/unit/models/cardlesscredit/test_create_payment.py
glendaesutanto/xendit-python
f9b131882ff7d045f2e2c6518933d1594efba3e6
[ "MIT" ]
11
2020-07-28T08:09:40.000Z
2022-03-18T00:14:02.000Z
import pytest from ..model_base_test import ModelBaseTest from tests.sampleresponse.cardless_credit import cardless_credit_payment_response from xendit.models import CardlessCredit, CardlessCreditType # fmt: off class TestCreateCardlessCreditPayment(ModelBaseTest): @pytest.fixture def default_cardles...
44.095238
121
0.62203
572
5,556
5.622378
0.201049
0.108831
0.071828
0.08551
0.740983
0.721082
0.658893
0.658893
0.629042
0.629042
0
0.025641
0.284017
5,556
125
122
44.448
0.782805
0.00288
0
0.20354
0
0
0.196046
0.011641
0
0
0
0
0
1
0.061947
false
0
0.035398
0
0.123894
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7fd64d5d9687aeafd41778f375063551f567e46f
67
py
Python
homeassistant/components/hardware/const.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/hardware/const.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/hardware/const.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Constants for the Hardware integration.""" DOMAIN = "hardware"
16.75
45
0.716418
7
67
6.857143
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.134328
67
3
46
22.333333
0.827586
0.58209
0
0
0
0
0.363636
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7fe3c41b5d4495299339fa6ac09fd4c855492415
1,577
py
Python
b9_tools.py
eoinnoble/b9-indifference
a8b7f3c2268af162d5269a8ce7180be717bfb3fb
[ "Unlicense" ]
9
2017-11-13T20:31:04.000Z
2021-11-08T12:30:48.000Z
b9_tools.py
eoinnoble/b9-indifference
a8b7f3c2268af162d5269a8ce7180be717bfb3fb
[ "Unlicense" ]
1
2021-11-30T20:24:26.000Z
2021-11-30T20:24:26.000Z
b9_tools.py
eoinnoble/b9-indifference
a8b7f3c2268af162d5269a8ce7180be717bfb3fb
[ "Unlicense" ]
1
2017-12-17T09:04:25.000Z
2017-12-17T09:04:25.000Z
import re from collections.abc import MutableMapping from typing import Dict, List import markovify import nltk class RangeDict(MutableMapping): """Enables a dictionary whose keys are ranges.""" def __init__(self, iterable: Dict): if not isinstance(iterable, dict): raise TypeError("You m...
27.666667
97
0.639822
211
1,577
4.63981
0.445498
0.064351
0.036772
0.030644
0
0
0
0
0
0
0
0.000858
0.261256
1,577
56
98
28.160714
0.839485
0.181357
0
0
0
0
0.062599
0
0
0
0
0
0
1
0.242424
false
0.030303
0.151515
0.090909
0.606061
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
3d0b63ff899d9630d5763b8599ddc075bb3c108f
620
py
Python
PycharmProjects/PythonValidacao/consome_api.py
FeFSRibeiro/learning-python
4f642aa7e1c6523f5209f83ece7e974bfb3ef24e
[ "Apache-2.0" ]
null
null
null
PycharmProjects/PythonValidacao/consome_api.py
FeFSRibeiro/learning-python
4f642aa7e1c6523f5209f83ece7e974bfb3ef24e
[ "Apache-2.0" ]
null
null
null
PycharmProjects/PythonValidacao/consome_api.py
FeFSRibeiro/learning-python
4f642aa7e1c6523f5209f83ece7e974bfb3ef24e
[ "Apache-2.0" ]
null
null
null
import requests class BuscaEndereco: def __init__(self,cep): if self.valida_cep(str(cep)): self.cep = str(cep) else: raise ValueError("CEP Inválido !!!") def __str__(self): return self.formata_cep() def valida_cep(self,cep): if len(self.cep ==...
22.142857
66
0.540323
78
620
4.128205
0.435897
0.173913
0.093168
0
0
0
0
0
0
0
0
0.007092
0.317742
620
27
67
22.962963
0.754137
0
0
0.1
0
0
0.087097
0
0
0
0
0
0
1
0.25
false
0
0.05
0.1
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
1
0
0
0
0
1
0
0
2
3d11c0e83e935667e3b5fa635f505dab77f68c4f
471
py
Python
dataset_models/normalization/aroundZeroNormalizer.py
Zvezdin/blockchain-predictor
df6f939037471dd50b7b9c96673d89b04b646ef2
[ "MIT" ]
35
2017-10-25T17:10:35.000Z
2022-03-20T18:12:06.000Z
dataset_models/normalization/aroundZeroNormalizer.py
Zvezdin/blockchain-predictor
df6f939037471dd50b7b9c96673d89b04b646ef2
[ "MIT" ]
2
2017-09-20T17:39:15.000Z
2018-04-01T17:20:29.000Z
dataset_models/normalization/aroundZeroNormalizer.py
Zvezdin/blockchain-predictor
df6f939037471dd50b7b9c96673d89b04b646ef2
[ "MIT" ]
10
2017-12-01T13:47:04.000Z
2021-12-16T06:53:17.000Z
import numpy as np from .normalizer import Normalizer class AroundZeroNormalizer(Normalizer): def __init__(self, data): self.minVal = np.min(data) self.maxVal = np.max(data) self.maxVal = max(abs(self.maxVal), abs(self.minVal)) def transform(self, data): if self.maxVal == 0: #can't normalize if the whole ...
23.55
68
0.694268
70
471
4.6
0.457143
0.186335
0.130435
0
0
0
0
0
0
0
0
0.012953
0.180467
471
19
69
24.789474
0.821244
0.093418
0
0
0
0
0
0
0
0
0
0
0
1
0.230769
false
0
0.153846
0.076923
0.692308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
3d162a8de2cf611aacdd649aadbeb0516127e28a
461
py
Python
arequests/exceptions.py
fhag/telegram2
65a685637b444e40ef47a17c2a3b83c2ddb81459
[ "BSD-2-Clause" ]
null
null
null
arequests/exceptions.py
fhag/telegram2
65a685637b444e40ef47a17c2a3b83c2ddb81459
[ "BSD-2-Clause" ]
null
null
null
arequests/exceptions.py
fhag/telegram2
65a685637b444e40ef47a17c2a3b83c2ddb81459
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Exceptions for Arequests Created on Tue Nov 13 08:34:14 2018 @author: gfi """ class ArequestsError(Exception): """Basic exception for errors raised by Arequests""" pass class AuthorizationError(ArequestsError): '''401 error new authentification required''' pass class Some...
19.208333
56
0.694143
51
461
6.27451
0.72549
0.084375
0
0
0
0
0
0
0
0
0
0.048
0.186551
461
23
57
20.043478
0.805333
0.472885
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
2
3d1bc451ecce134829f141f42c2d16c8641046f1
899
py
Python
Aula37/Controller/squad_controller.py
PabloSchumacher/TrabalhosPython
828edd35eb40442629211bc9f1477f75fb025d74
[ "bzip2-1.0.6", "MIT" ]
null
null
null
Aula37/Controller/squad_controller.py
PabloSchumacher/TrabalhosPython
828edd35eb40442629211bc9f1477f75fb025d74
[ "bzip2-1.0.6", "MIT" ]
null
null
null
Aula37/Controller/squad_controller.py
PabloSchumacher/TrabalhosPython
828edd35eb40442629211bc9f1477f75fb025d74
[ "bzip2-1.0.6", "MIT" ]
null
null
null
from Dao.squad_dao import SquadDao from Model.squad import * from Controller.backend_controller import BackendController from Controller.frontend_controller import FrontendController from Controller.sgbd_controller import SgbdController class SquadController: dao = SquadDao() be = BackendController() fro =...
29.966667
67
0.716352
111
899
5.711712
0.288288
0.055205
0.061514
0
0
0
0
0
0
0
0
0
0.190211
899
29
68
31
0.870879
0
0
0
0
0
0
0
0
0
0
0
0
1
0.217391
false
0
0.217391
0.086957
0.782609
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
3d41aeb36fe4c0327c92ba2fb851e5ac557d9a0b
960
py
Python
typhon/oem/error.py
jmollard/typhon
68d5ae999c340b60aa69e095b336d438632ad55c
[ "MIT" ]
null
null
null
typhon/oem/error.py
jmollard/typhon
68d5ae999c340b60aa69e095b336d438632ad55c
[ "MIT" ]
null
null
null
typhon/oem/error.py
jmollard/typhon
68d5ae999c340b60aa69e095b336d438632ad55c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Functions to estimate the different sources of retrieval error. """ from typhon.oem import common __all__ = [ 'smoothing_error', 'retrieval_noise', ] def smoothing_error(x, x_a, A): """Return the smoothing error through the averaging kernel. Parameters: x (ndarra...
23.414634
67
0.644792
125
960
4.776
0.4
0.093802
0.01005
0.0134
0.023451
0.023451
0.023451
0
0
0
0
0.001391
0.251042
960
40
68
24
0.828929
0.642708
0
0
0
0
0.113636
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
3d4fb10a65167e4ffb44c4897ed5483e2f0d23c0
2,439
py
Python
users/models.py
Mansi3546/CareerCradle
e040e763b1058aef937deb9eac4e1f9b2421ae25
[ "MIT" ]
null
null
null
users/models.py
Mansi3546/CareerCradle
e040e763b1058aef937deb9eac4e1f9b2421ae25
[ "MIT" ]
1
2021-04-14T12:24:41.000Z
2021-04-18T07:33:11.000Z
users/models.py
Mansi3546/CareerCradle
e040e763b1058aef937deb9eac4e1f9b2421ae25
[ "MIT" ]
3
2021-04-06T13:54:44.000Z
2021-05-03T17:28:59.000Z
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin from django.db import models from django.utils import timezone from django.db.models import BooleanField class UserManager(BaseUserManager): def _create_user(self, email, password, usertype, is_staff, is_superuser, **ext...
33.410959
94
0.660107
281
2,439
5.548043
0.302491
0.070558
0.054522
0.056446
0.295702
0.220654
0.182168
0.117383
0.117383
0.117383
0
0.006982
0.236572
2,439
72
95
33.875
0.83029
0.0328
0
0.075472
0
0
0.033047
0
0
0
0
0
0
1
0.113208
false
0.188679
0.075472
0.075472
0.584906
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1
0
0
2
3d5041bc56fbfaccca116aec98a24987eddba5f7
2,046
py
Python
site_scons/site_tools/findPkgPath.py
fermi-lat/SConsFiles
54124ec1031142b4fee76b12fdcfe839845e9fda
[ "BSD-3-Clause" ]
null
null
null
site_scons/site_tools/findPkgPath.py
fermi-lat/SConsFiles
54124ec1031142b4fee76b12fdcfe839845e9fda
[ "BSD-3-Clause" ]
null
null
null
site_scons/site_tools/findPkgPath.py
fermi-lat/SConsFiles
54124ec1031142b4fee76b12fdcfe839845e9fda
[ "BSD-3-Clause" ]
null
null
null
import os,platform,os.path # Usual case: find where package is; add to env include path # If 'subdir' argument, instead set construction env variable # to point to it def generate(env, **kw): pkgName = kw.get('package', '') if pkgName == '': print 'findPkgPath called with no arg' return No...
40.117647
75
0.544966
256
2,046
4.351563
0.332031
0.043088
0.035907
0.037702
0.313285
0.313285
0.273788
0.253142
0.253142
0.253142
0
0.007757
0.30694
2,046
50
76
40.92
0.777856
0.279081
0
0.4
1
0
0.108516
0
0
0
0
0
0
0
null
null
0
0.028571
null
null
0.028571
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
1
0
0
0
0
0
0
0
0
2
3d553fd4a5642d493db1017f36467ff8b535228c
65
py
Python
wave_1d_fwi_tf/__init__.py
ar4/wave_1d_fwi_tf
0a543149dc3bd5ca6ec0e5bfe34add4796e0b879
[ "MIT" ]
2
2017-08-07T13:35:50.000Z
2019-02-28T08:26:49.000Z
wave_1d_fwi_tf/__init__.py
ar4/wave_1d_fwi_tf
0a543149dc3bd5ca6ec0e5bfe34add4796e0b879
[ "MIT" ]
null
null
null
wave_1d_fwi_tf/__init__.py
ar4/wave_1d_fwi_tf
0a543149dc3bd5ca6ec0e5bfe34add4796e0b879
[ "MIT" ]
5
2018-06-26T20:43:44.000Z
2021-12-11T20:00:03.000Z
"""1D FWI implemented using TensorFlow """ __version__ = '0.0.1'
16.25
38
0.692308
9
65
4.555556
0.888889
0
0
0
0
0
0
0
0
0
0
0.071429
0.138462
65
3
39
21.666667
0.660714
0.538462
0
0
0
0
0.217391
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
3d58e1aeb6209bbf0ac5b1e7058c942f20cd4768
733
py
Python
tests/test_missing_variable.py
specfault/GreenerPython
976260c3e78969cfd3e1e40639325f104325c703
[ "MIT" ]
null
null
null
tests/test_missing_variable.py
specfault/GreenerPython
976260c3e78969cfd3e1e40639325f104325c703
[ "MIT" ]
null
null
null
tests/test_missing_variable.py
specfault/GreenerPython
976260c3e78969cfd3e1e40639325f104325c703
[ "MIT" ]
null
null
null
from tests.framework import AbstractFilePair from tests.framework import in_test_function from tests.framework import standard_test_spec from tests.framework import SavingFixesSUT from tests.framework import fixing_test variable_names = ('x', 'y') def missing_variable_in_source(variable_name): test_code = in_te...
29.32
73
0.718963
89
733
5.674157
0.370787
0.089109
0.178218
0.237624
0
0
0
0
0
0
0
0
0.203274
733
24
74
30.541667
0.864726
0.038199
0
0
0
0
0.030695
0
0
0
0
0
0
1
0.066667
false
0
0.333333
0
0.6
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
1
0
0
0
0
2
e9eed597103f69eb9973238f713e70a5ed271b2e
551
py
Python
stixpy/timeseries/tests/test_quicklook.py
nicHoch/stixpy
cdb86094995590da36f3ae5e01f4ca4b9aac819c
[ "BSD-3-Clause" ]
4
2021-07-06T14:42:09.000Z
2022-02-24T10:19:18.000Z
stixpy/timeseries/tests/test_quicklook.py
nicHoch/stixpy
cdb86094995590da36f3ae5e01f4ca4b9aac819c
[ "BSD-3-Clause" ]
30
2020-10-02T20:24:28.000Z
2022-03-31T18:29:07.000Z
stixpy/timeseries/tests/test_quicklook.py
nicHoch/stixpy
cdb86094995590da36f3ae5e01f4ca4b9aac819c
[ "BSD-3-Clause" ]
8
2021-04-16T11:00:13.000Z
2022-03-31T10:09:29.000Z
from pathlib import Path import pytest from sunpy.timeseries import TimeSeries from stixpy.data import test from stixpy.timeseries.quicklook import * def test_ql_lightcurve(): ql_lc = TimeSeries(test.STIX_QL_LIGHTCURVE_TIMESERIES) assert isinstance(ql_lc, QLLightCurve) def test_qlbackground(): ql_lc =...
22.958333
58
0.787659
73
551
5.671233
0.328767
0.067633
0.101449
0.130435
0.318841
0.173913
0
0
0
0
0
0
0.143376
551
23
59
23.956522
0.877119
0
0
0
0
0
0
0
0
0
0
0
0.2
1
0.2
false
0
0.333333
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1
0
0
2
e9fbb4ffd34a72b02bcdf9fee23d69719622bfd4
397
py
Python
PythonDesafios/d107/teste.py
adaatii/Python-Curso-em-Video-
30b37713b3685469558babb93b557b53210f010c
[ "MIT" ]
null
null
null
PythonDesafios/d107/teste.py
adaatii/Python-Curso-em-Video-
30b37713b3685469558babb93b557b53210f010c
[ "MIT" ]
null
null
null
PythonDesafios/d107/teste.py
adaatii/Python-Curso-em-Video-
30b37713b3685469558babb93b557b53210f010c
[ "MIT" ]
null
null
null
# Crie um módulo chamado moeda.py que tenha as funções incorporadas aumentar(), diminuir(), dobro() e metade(). Faça # também um programa que importe esse módulo e use algumas dessas funções. import moeda p = float(input('Digite o preço: ')) print(f'A metade do {p} é R${moeda.metade(p)}') print(f'O dobro de {p} é R${...
36.090909
116
0.702771
69
397
4.043478
0.594203
0.064516
0.021505
0.057348
0
0
0
0
0
0
0
0.011799
0.146096
397
10
117
39.7
0.811209
0.471033
0
0
0
0
0.65534
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.6
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
e9fe99f79d22866cd1c3d457b72379bf7128ed8c
122,030
py
Python
Line/beijing_aqi.py
Hansz00/pyecharts-gallery
a0a16d980e9d4f7d355c5ada938614579ee8d461
[ "MIT" ]
1
2020-08-25T07:41:10.000Z
2020-08-25T07:41:10.000Z
Line/beijing_aqi.py
Hansz00/pyecharts-gallery
a0a16d980e9d4f7d355c5ada938614579ee8d461
[ "MIT" ]
null
null
null
Line/beijing_aqi.py
Hansz00/pyecharts-gallery
a0a16d980e9d4f7d355c5ada938614579ee8d461
[ "MIT" ]
1
2022-03-10T09:05:44.000Z
2022-03-10T09:05:44.000Z
import pyecharts.options as opts from pyecharts.charts import Line """ Gallery 使用 pyecharts 1.1.0 参考地址: https://echarts.baidu.com/examples/editor.html?c=line-aqi 目前无法实现的功能: 1、dataZoom 放大的时候无法固定 Y 轴的上下限 """ all_data = [ ["2000-06-05", 116], ["2000-06-06", 129], ["2000-06-07", 135], ["2000-06-08", 86]...
24.410882
63
0.426575
19,922
122,030
2.610882
0.021484
0.003807
0.000692
0.000634
0.002865
0.002249
0.00075
0.00075
0.00075
0.00075
0
0.557354
0.247816
122,030
4,998
64
24.415766
0.009315
0
0
0.002807
0
0
0.405874
0
0
0
0
0
0
1
0
false
0
0.000401
0
0.000401
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
2
1815ed2b6c358f6414fe0404d22b0c279e749b59
1,520
py
Python
study_roadmaps/python_sample_examples/gluon/3_aux_functions/train.py
Shreyashwaghe/monk_v1
4ee4d9483e8ffac9b73a41f3c378e5abf5fc799b
[ "Apache-2.0" ]
7
2020-07-26T08:37:29.000Z
2020-10-30T10:23:11.000Z
study_roadmaps/python_sample_examples/gluon/3_aux_functions/train.py
mursalfk/monk_v1
62f34a52f242772186ffff7e56764e958fbcd920
[ "Apache-2.0" ]
9
2020-01-28T21:40:39.000Z
2022-02-10T01:24:06.000Z
study_roadmaps/python_sample_examples/gluon/3_aux_functions/train.py
mursalfk/monk_v1
62f34a52f242772186ffff7e56764e958fbcd920
[ "Apache-2.0" ]
1
2020-10-07T12:57:44.000Z
2020-10-07T12:57:44.000Z
import os import sys sys.path.append("../../../monk/"); import psutil from gluon_prototype import prototype gtf = prototype(verbose=1); gtf.Prototype("sample-project-1", "sample-experiment-1"); gtf.Default(dataset_path="../../../monk/system_check_tests/datasets/dataset_cats_dogs_train", model_name="resnet...
33.043478
131
0.309211
92
1,520
4.902174
0.576087
0.053215
0
0
0
0
0
0
0
0
0
0.006307
0.061184
1,520
46
132
33.043478
0.309741
0.071053
0
0
0
0
0.232342
0.120818
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
1829f18c9a4a6999de1f057e3d27520859bfe66b
539
py
Python
calplus/tests/unit/v1/test_utils.py
nghiadt16/CALplus
68c108e6abf7eeac4937b870dc7462dd6ee2fcc3
[ "Apache-2.0" ]
null
null
null
calplus/tests/unit/v1/test_utils.py
nghiadt16/CALplus
68c108e6abf7eeac4937b870dc7462dd6ee2fcc3
[ "Apache-2.0" ]
4
2017-04-05T16:14:07.000Z
2018-12-14T14:19:15.000Z
calplus/tests/unit/v1/test_utils.py
nghiadt16/CALplus
68c108e6abf7eeac4937b870dc7462dd6ee2fcc3
[ "Apache-2.0" ]
2
2017-04-18T16:53:58.000Z
2018-12-04T05:42:51.000Z
from calplus.tests import base from calplus.v1 import utils class TestUtils(base.TestCase): """docstring for TestUtils""" def setUp(self): super(TestUtils, self).setUp() def test_get_all_driver(self): drivers = utils.get_all_driver() self.assertEqual([], drivers) def test_v...
22.458333
44
0.641929
62
539
5.451613
0.451613
0.06213
0.071006
0.094675
0
0
0
0
0
0
0
0.002488
0.254174
539
23
45
23.434783
0.838308
0.042672
0
0
0
0
0.013725
0
0
0
0
0
0.133333
1
0.266667
false
0.066667
0.2
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
0
0
2
182e9e4609ddebb22d97860bec2e861331fa8d6e
1,386
py
Python
stubs.min/System/Windows/Media/Animation_parts/AnimationException.py
ricardyn/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2021-02-02T13:39:16.000Z
2021-02-02T13:39:16.000Z
stubs.min/System/Windows/Media/Animation_parts/AnimationException.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/System/Windows/Media/Animation_parts/AnimationException.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class AnimationException(SystemException,ISerializable,_Exception): """ The exception that is thrown when an error occurs while animating a property. """ def add_SerializeObjectState(self,*args): """ add_SerializeObjectState(self: Exception,value: EventHandler[SafeSerializationEventArgs]) """ pass def remov...
36.473684
215
0.730159
156
1,386
6.141026
0.339744
0.093946
0.050104
0.059499
0.495825
0.495825
0.495825
0.495825
0.322547
0.322547
0
0
0.148629
1,386
37
216
37.459459
0.811864
0.337662
0
0.357143
0
0
0
0
0
0
0
0
0
1
0.357143
false
0.357143
0
0
0.642857
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
0
0
2
182f0fecd4c6abc4561282446bbffe0f48f4cc60
805
py
Python
habitat_baselines/motion_planning/robot_target.py
srama2512/habitat-api
bc85d0961cef3b4a08bc9263869606109fb6ff0a
[ "MIT" ]
355
2020-08-18T03:48:26.000Z
2022-03-30T00:22:50.000Z
habitat_baselines/motion_planning/robot_target.py
srama2512/habitat-api
bc85d0961cef3b4a08bc9263869606109fb6ff0a
[ "MIT" ]
328
2020-08-12T21:25:09.000Z
2022-03-31T10:39:21.000Z
habitat_baselines/motion_planning/robot_target.py
srama2512/habitat-api
bc85d0961cef3b4a08bc9263869606109fb6ff0a
[ "MIT" ]
159
2020-08-12T22:23:36.000Z
2022-03-30T22:56:52.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import attr import magnum as mn import numpy as np @attr.s(auto_attribs=True, slots=True) class RobotTarget: """ ...
23.676471
75
0.70559
121
805
4.628099
0.61157
0.035714
0.032143
0.057143
0.282143
0.282143
0.282143
0.282143
0.160714
0.160714
0
0.004762
0.217391
805
33
76
24.393939
0.884127
0.479503
0
0.153846
0
0
0
0
0
0
0
0
0
1
0
true
0
0.230769
0
0.846154
0
0
0
0
null
0
0
0
0
0
0
0
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
1
0
0
2
183c49112552415248f084e0c358b6ea11192708
2,771
py
Python
tests/request/test_parameter_invalid.py
Colin-b/pyxelrest
5c8db40d1537d0f9c29acd928ec9519b6bb557ec
[ "MIT" ]
7
2018-12-07T10:08:53.000Z
2021-03-24T07:52:36.000Z
tests/request/test_parameter_invalid.py
Colin-b/pyxelrest
5c8db40d1537d0f9c29acd928ec9519b6bb557ec
[ "MIT" ]
76
2018-12-07T10:29:48.000Z
2021-11-17T00:54:24.000Z
tests/request/test_parameter_invalid.py
Colin-b/pyxelrest
5c8db40d1537d0f9c29acd928ec9519b6bb557ec
[ "MIT" ]
null
null
null
import pytest from responses import RequestsMock from tests import loader def test_parameter_cannot_be_parsed(responses: RequestsMock, tmpdir): responses.add( responses.GET, url="http://test/", json={ "swagger": "2.0", "paths": { "/test": { ...
30.119565
123
0.339589
168
2,771
5.452381
0.392857
0.034935
0.036026
0.052402
0.735808
0.631004
0.631004
0.631004
0.631004
0.631004
0
0.007819
0.538434
2,771
91
124
30.450549
0.708366
0
0
0.55814
0
0.011628
0.192349
0
0
0
0
0
0.023256
1
0.023256
false
0
0.034884
0
0.05814
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
185ab66623ac277ebae7a53438dfbee88f107a07
4,450
py
Python
pyaz/sql/instance_pool/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/sql/instance_pool/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/sql/instance_pool/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
1
2022-02-03T09:12:01.000Z
2022-02-03T09:12:01.000Z
from ... pyaz_utils import _call_az def show(name, resource_group): ''' Get the details for an instance pool. Required Parameters: - name -- Instance Pool Name - resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>` ''' r...
45.408163
164
0.702472
598
4,450
5.165552
0.250836
0.07381
0.055034
0.04079
0.436711
0.418258
0.399482
0.371318
0.360635
0.360635
0
0.000842
0.198876
4,450
97
165
45.876289
0.865638
0.733034
0
0
0
0
0.169565
0
0
0
0
0
0
1
0.461538
false
0
0.076923
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
186a69b010242e5cd6623bba8225f28d59422edb
943
py
Python
alert/getinfo/model/configdata.py
xwwwb/genshin_task-resin-expedition_alert
cddaafc2723c5d9eea6fbd1db792ad70427344c8
[ "MIT" ]
2
2022-03-01T10:39:30.000Z
2022-03-29T13:40:37.000Z
alert/getinfo/model/configdata.py
xwwwb/genshin_task-resin-expedition_alert
cddaafc2723c5d9eea6fbd1db792ad70427344c8
[ "MIT" ]
null
null
null
alert/getinfo/model/configdata.py
xwwwb/genshin_task-resin-expedition_alert
cddaafc2723c5d9eea6fbd1db792ad70427344c8
[ "MIT" ]
null
null
null
from typing import List, Literal import pydantic class ConfigData(pydantic.BaseModel): UID: str COOKIE:str SCKEY:str SCTKEY:str BARK_KEY:str BARK_GROUP:str BARK_ICON:str BARK_ARCHIVE:str WW_ID: str WW_APP_SECRET: str WW_APP_USERID: str WW_APP_AGENTID: str WW_BOT_KEY...
23
60
0.688229
142
943
4.211268
0.429577
0.041806
0.080268
0.063545
0
0
0
0
0
0
0
0
0.226935
943
41
61
23
0.820302
0
0
0
0
0
0.042373
0
0
0
0
0
0
1
0
true
0
0.054054
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
2
1874ca96a1f31b40d52d15b318f020ba7a9562e6
811
py
Python
tests/test_linked_queue.py
dataloudlabs/dloud-ads
d0ad3f169c2384292db4097e00ba7858f37a8198
[ "MIT" ]
null
null
null
tests/test_linked_queue.py
dataloudlabs/dloud-ads
d0ad3f169c2384292db4097e00ba7858f37a8198
[ "MIT" ]
null
null
null
tests/test_linked_queue.py
dataloudlabs/dloud-ads
d0ad3f169c2384292db4097e00ba7858f37a8198
[ "MIT" ]
null
null
null
""" Unit tests for linked_queue.LinkedQueue """ from dloud_ads import linked_queue def test_dummy(): """ Test definition""" the_queue = linked_queue.LinkedQueue() assert the_queue.is_empty() assert not the_queue the_queue.enqueue(2) assert not the_queue.is_empty() assert len(the_queue) ...
26.16129
66
0.637485
132
811
3.719697
0.280303
0.260692
0.0611
0.112016
0.519348
0.395112
0.395112
0.295316
0
0
0
0.044657
0.22688
811
30
67
27.033333
0.738437
0.067818
0
0.105263
0
0
0
0
0
0
0
0
0.578947
1
0.052632
false
0
0.052632
0
0.105263
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
1
0
0
0
0
0
0
0
0
0
2
187dce0fab5d7dab6ce2381189b7af90777ddbc1
732
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/cli.py
go-choppy/choppy-cookiecutter-pypackage
b5bfc226089bba7002397c4055199b7b57c773ea
[ "BSD-3-Clause" ]
2
2019-07-09T14:03:02.000Z
2019-07-09T14:18:55.000Z
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/cli.py
yjcyxky/cookiecutter-pypackage
b5bfc226089bba7002397c4055199b7b57c773ea
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/cli.py
yjcyxky/cookiecutter-pypackage
b5bfc226089bba7002397c4055199b7b57c773ea
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # PYTHON_ARGCOMPLETE_OK """ {{cookiecutter.project_slug}}.cli ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {{ cookiecutter.project_short_description }} :copyright: © 2019 by the Choppy Team. :license: AGPLv3+, see LICENSE for more details. """ """Console script for {{cookiecutter.proje...
25.241379
68
0.64071
87
732
5.218391
0.643678
0.209251
0.202643
0.114537
0.171806
0.171806
0
0
0
0
0
0.00995
0.17623
732
28
69
26.142857
0.741294
0.42623
0
0
0
0
0.433333
0.115152
0
0
0
0
0
1
0.1
false
0
0.2
0
0.4
0
0
0
0
null
1
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
2
187e7d05e0f32e5a771a3ba903dffb0254e60e4c
891
py
Python
test/classes/test_players.py
teamvolik/teamvolik
35acc1405d4f0211236631d0c5bbdbf4f948fcb6
[ "MIT" ]
6
2022-03-27T22:13:35.000Z
2022-03-31T22:45:02.000Z
test/classes/test_players.py
teamvolik/teamvolik
35acc1405d4f0211236631d0c5bbdbf4f948fcb6
[ "MIT" ]
15
2022-03-18T09:47:31.000Z
2022-03-29T15:26:51.000Z
test/classes/test_players.py
teamvolik/teamvolik
35acc1405d4f0211236631d0c5bbdbf4f948fcb6
[ "MIT" ]
null
null
null
import unittest import src.classes.player as player class PlayersTest(unittest.TestCase): def test_to_string(self): self.assertTrue(str(player.Player()) == "Player(id=-1, name=UNDEFINED, is_adm=False, games=0, pitch=0.0, hold=0.0, passing=0.0, movement=0.0, attacking=0.0, rating=0.0)") def test_to_s...
40.5
178
0.654321
153
891
3.633987
0.281046
0.064748
0.059353
0.071942
0.320144
0.320144
0.253597
0.253597
0.095324
0.095324
0
0.074967
0.161616
891
21
179
42.428571
0.669344
0
0
0
0
0.071429
0.166106
0
0
0
0
0
0.285714
1
0.214286
false
0.071429
0.142857
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
43ee04853e52a2ff347eaf6785c0c115ae6ad8aa
164
py
Python
agc/agc007/agc007a.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
agc/agc007/agc007a.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
agc/agc007/agc007a.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
H, W = map(int, input().split()) A = [input() for _ in range(H)] if H + W - 1 == sum(a.count('#') for a in A): print('Possible') else: print('Impossible')
20.5
45
0.542683
28
164
3.142857
0.642857
0.045455
0
0
0
0
0
0
0
0
0
0.007813
0.219512
164
7
46
23.428571
0.679688
0
0
0
0
0
0.115854
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
43f06ebbb7637e1e6c0f53bef04ad021c74daf38
2,188
py
Python
relfs/relfs/fuse/mount_root.py
matus-chochlik/various
2a9f5eddd964213f7d1e1ce8328e2e0b2a8e998b
[ "MIT" ]
1
2020-10-25T12:28:50.000Z
2020-10-25T12:28:50.000Z
relfs/relfs/fuse/mount_root.py
matus-chochlik/various
2a9f5eddd964213f7d1e1ce8328e2e0b2a8e998b
[ "MIT" ]
null
null
null
relfs/relfs/fuse/mount_root.py
matus-chochlik/various
2a9f5eddd964213f7d1e1ce8328e2e0b2a8e998b
[ "MIT" ]
null
null
null
# coding=utf-8 #------------------------------------------------------------------------------# import os import time import fuse import errno from .item import RelFuseItem from .static_dir import StaticDirectory #------------------------------------------------------------------------------# class MountRoot(RelFuseIte...
35.290323
80
0.359232
160
2,188
4.63125
0.33125
0.08502
0.048583
0.045884
0.048583
0
0
0
0
0
0
0.006849
0.199269
2,188
61
81
35.868852
0.416096
0.386654
0
0
0
0
0.015837
0
0
0
0
0
0
1
0.195122
false
0.02439
0.146341
0.073171
0.560976
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
43fe8ce604f5be764fdbae5dfb8933ec293fcd26
187
py
Python
App/softwares_env/wizard/wsd/main.py
Wizard-collab/wizard
c2ec623fe011626716493c232b895fb0513f68ff
[ "MIT" ]
null
null
null
App/softwares_env/wizard/wsd/main.py
Wizard-collab/wizard
c2ec623fe011626716493c232b895fb0513f68ff
[ "MIT" ]
null
null
null
App/softwares_env/wizard/wsd/main.py
Wizard-collab/wizard
c2ec623fe011626716493c232b895fb0513f68ff
[ "MIT" ]
null
null
null
import yaml class wsd(): def __init__(self, file, dict): self.file = file self.dict = dict def write_sd(self): with open(self.file, 'w') as f: f.write(yaml.dump(self.dict))
17
33
0.652406
32
187
3.65625
0.53125
0.205128
0
0
0
0
0
0
0
0
0
0
0.192513
187
11
34
17
0.774834
0
0
0
0
0
0.005319
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.5
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
1
0
0
0
0
0
0
0
2
a1081e4aca80f13d81fb5c284f116c973136197c
608
py
Python
libs/dispatch/dispatcher.py
eeshakumar/hythe
52ca795c8370ddfb2aa6fb87ff3f63a85c55f913
[ "MIT" ]
null
null
null
libs/dispatch/dispatcher.py
eeshakumar/hythe
52ca795c8370ddfb2aa6fb87ff3f63a85c55f913
[ "MIT" ]
null
null
null
libs/dispatch/dispatcher.py
eeshakumar/hythe
52ca795c8370ddfb2aa6fb87ff3f63a85c55f913
[ "MIT" ]
null
null
null
from abc import abstractmethod, ABC class Dispatcher(ABC): def __init__(self, dispatch_dict=None): self._dispatch_dict = dispatch_dict self._process_list = [] return def set_dispatch_dict(self, dispatch_dict): self._dispatch_dict = dispatch_dict @abstractmethod def d...
22.518519
67
0.648026
68
608
5.485294
0.529412
0.225201
0.171582
0.128686
0.225201
0
0
0
0
0
0
0.004535
0.274671
608
26
68
23.384615
0.84127
0
0
0.111111
0
0
0.047855
0
0
0
0
0
0
1
0.222222
false
0
0.055556
0
0.388889
0.111111
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
1
0
0
0
0
0
0
0
2
a111862555b1576ad0436f2aab598c4b8d1d29a9
708
py
Python
report/api/hooks.py
Aaron-DH/openstack_sample_project
711a56311806d52b632e4394743bd4bdbacb103a
[ "Apache-2.0" ]
null
null
null
report/api/hooks.py
Aaron-DH/openstack_sample_project
711a56311806d52b632e4394743bd4bdbacb103a
[ "Apache-2.0" ]
null
null
null
report/api/hooks.py
Aaron-DH/openstack_sample_project
711a56311806d52b632e4394743bd4bdbacb103a
[ "Apache-2.0" ]
null
null
null
from oslo_log import log from oslo_config import cfg from report import storage from pecan import hooks LOG = log.getLogger(__name__) class RPCHook(hooks.PecanHook): def __init__(self, rcp_client): self._rpc_client = rcp_client def before(self, state): state.request.rpc_client = self._rpc_cl...
25.285714
78
0.69209
91
708
5.076923
0.428571
0.058442
0.136364
0.090909
0.238095
0.12987
0
0
0
0
0
0
0.233051
708
27
79
26.222222
0.850829
0
0
0.111111
0
0
0.072034
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
a115499f10a5a3acf2f24d7e3dd1a76b57b5b137
245
py
Python
Projects/Python_Python2_json/main.py
LiuOcean/luban_examples
75d5fd7c1b15d79efc0ebbac21a74bf050aed1fb
[ "MIT" ]
44
2021-05-06T06:16:55.000Z
2022-03-30T06:27:25.000Z
Projects/Python_Python2_json/main.py
HFX-93/luban_examples
5b90e392d404950d12ff803a186b26bdea5e0292
[ "MIT" ]
1
2021-07-25T16:35:32.000Z
2021-08-23T04:59:49.000Z
Projects/Python_Python2_json/main.py
HFX-93/luban_examples
5b90e392d404950d12ff803a186b26bdea5e0292
[ "MIT" ]
14
2021-06-09T10:38:59.000Z
2022-03-30T06:27:24.000Z
import json import gen.Types def loader(f): return json.load(open('../GenerateDatas/json/' + f + ".json", 'r'), encoding="utf-8") tables = gen.Types.Tables(loader) print(tables) r = tables.TbFullTypes.getDataList()[0].__dict__ print(r)
18.846154
89
0.685714
35
245
4.685714
0.6
0.097561
0
0
0
0
0
0
0
0
0
0.009346
0.126531
245
12
90
20.416667
0.757009
0
0
0
1
0
0.134694
0.089796
0
0
0
0
0
1
0.125
false
0
0.25
0.125
0.5
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
2
a122487d9193d1e9db5e1e4904c5779cf5ab0b4a
1,713
py
Python
Release/cyberbot-micropython/Examples/Terminal_DA_AD.py
parallaxinc/cyberbot
f7c4d355ee0310dcfef81027802cc41ac6ce90e1
[ "MIT" ]
4
2019-03-18T20:49:41.000Z
2022-03-24T01:44:36.000Z
Release/cyberbot-micropython/Examples/Terminal_DA_AD.py
parallaxinc/cyberbot
f7c4d355ee0310dcfef81027802cc41ac6ce90e1
[ "MIT" ]
5
2019-06-07T18:09:27.000Z
2021-04-08T17:16:55.000Z
Release/cyberbot-micropython/Examples/Terminal_DA_AD.py
parallaxinc/cyberbot
f7c4d355ee0310dcfef81027802cc41ac6ce90e1
[ "MIT" ]
null
null
null
# Terminal_DA_AD.py # Circuit # D/A0---A/D0, D/A1---A/D1, # pot A---3.3V, potB---GND, pot wiper---A/D2 # Procedure # Run, then open REPL and then CTRL + D # Twist pot input while program runs to see ad2 vary # Notes # micro:bit ground is 0.4 V below cyber:bot board ground # micro:bit 3.3 V = 3.245 V WRT ...
32.320755
92
0.565674
307
1,713
3.13355
0.449511
0.033264
0.029106
0.059252
0.047817
0.047817
0
0
0
0
0
0.302233
0.267951
1,713
53
93
32.320755
0.464912
0.742557
0
0
0
0.071429
0.118644
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
2
a124c13c10af7bc999fd4983d83bef5b21b878ff
64
py
Python
notebooks/_solutions/13-raster-processing32.py
jorisvandenbossche/DS-python-geospatial
893a12edc5c203a75815f6dcb5f1e18c577c8cd5
[ "BSD-3-Clause" ]
58
2020-10-09T10:10:59.000Z
2022-03-07T14:58:07.000Z
notebooks/_solutions/13-raster-processing32.py
jorisvandenbossche/DS-python-geospatial
893a12edc5c203a75815f6dcb5f1e18c577c8cd5
[ "BSD-3-Clause" ]
24
2020-09-30T19:57:14.000Z
2021-10-05T07:21:09.000Z
notebooks/_solutions/13-raster-processing32.py
jorisvandenbossche/DS-python-geospatial
893a12edc5c203a75815f6dcb5f1e18c577c8cd5
[ "BSD-3-Clause" ]
19
2020-10-05T09:32:18.000Z
2022-03-20T00:09:14.000Z
roads_subset = roads[roads["frc_omschrijving"].isin(road_types)]
64
64
0.8125
9
64
5.444444
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.03125
64
1
64
64
0.790323
0
0
0
0
0
0.246154
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
a128f73c987352e7a2b67ff853ae7ba81f0f3c24
198
py
Python
py files/normalization.py
kilarinikhil/ComputerVision
1cb2985f9c5e45bd0763cb676028ea97fce2b27b
[ "Apache-2.0" ]
null
null
null
py files/normalization.py
kilarinikhil/ComputerVision
1cb2985f9c5e45bd0763cb676028ea97fce2b27b
[ "Apache-2.0" ]
null
null
null
py files/normalization.py
kilarinikhil/ComputerVision
1cb2985f9c5e45bd0763cb676028ea97fce2b27b
[ "Apache-2.0" ]
1
2020-06-04T18:39:00.000Z
2020-06-04T18:39:00.000Z
import numpy as np def normalize(image): mean = np.mean(image) meanSubtractedImage = image - mean return np.divide(meanSubtractedImage,np.power(np.sum(np.power(meanSubtractedImage,2)),0.5))
22
92
0.752525
28
198
5.321429
0.571429
0.120805
0
0
0
0
0
0
0
0
0
0.017241
0.121212
198
8
93
24.75
0.83908
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
a130aee35a17b1d7653613de1de880f9a3444608
305
py
Python
packages/grid/apps/worker/src/main/core/database/groups/groups.py
exityan/PySyft
35166c487a5be57f9ad28929ed88a8ba6bdd5aeb
[ "Apache-2.0" ]
425
2019-09-22T06:14:53.000Z
2022-03-30T02:17:34.000Z
packages/grid/apps/worker/src/main/core/database/groups/groups.py
Metrix1010/PySyft
6477f64b63dc285059c3766deab3993653cead2e
[ "Apache-2.0" ]
352
2019-09-17T15:32:51.000Z
2022-03-12T01:07:35.000Z
packages/grid/apps/worker/src/main/core/database/groups/groups.py
Metrix1010/PySyft
6477f64b63dc285059c3766deab3993653cead2e
[ "Apache-2.0" ]
208
2019-09-18T18:32:10.000Z
2022-03-24T01:10:11.000Z
# grid relative from .. import BaseModel from .. import db class Group(BaseModel): __tablename__ = "group" id = db.Column(db.Integer(), primary_key=True, autoincrement=True) name = db.Column(db.String(255)) def __str__(self): return f"<Group id: {self.id}, name: {self.name}>"
21.785714
70
0.655738
41
305
4.658537
0.585366
0.104712
0.104712
0
0
0
0
0
0
0
0
0.012245
0.196721
305
13
71
23.461538
0.767347
0.042623
0
0
0
0
0.155172
0
0
0
0
0
0
1
0.125
false
0
0.25
0.125
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
a1423e6a2572b095e511d07a5f47171e04381471
4,579
py
Python
aleph/tests/test_documents_api.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
1
2017-07-28T12:54:09.000Z
2017-07-28T12:54:09.000Z
aleph/tests/test_documents_api.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
7
2017-08-16T12:49:23.000Z
2018-02-16T10:22:11.000Z
aleph/tests/test_documents_api.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
6
2017-07-26T12:29:53.000Z
2017-08-18T09:35:50.000Z
import json from aleph.tests.util import TestCase class DocumentsApiTestCase(TestCase): def setUp(self): super(DocumentsApiTestCase, self).setUp() self.load_fixtures('docs.yaml') def test_index(self): res = self.client.get('/api/1/documents') assert res.status_code == 200, r...
37.227642
74
0.592487
624
4,579
4.240385
0.153846
0.079365
0.108088
0.150794
0.801209
0.718821
0.677249
0.666289
0.633031
0.517007
0
0.051709
0.265123
4,579
122
75
37.532787
0.734621
0.010046
0
0.474227
0
0
0.172147
0.102185
0
0
0
0
0.350515
1
0.113402
false
0
0.020619
0
0.14433
0
0
0
0
null
0
0
0
1
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
2
a15ae079911483a5e3b82012f76254443eb7a059
339
py
Python
counter-test-applications/lr100000/linear-regr-100k.py
EsperLiu/vPython
f1005f011d6d9fd079cf72e8f78bab6d95a9f993
[ "0BSD" ]
1
2021-11-21T03:31:32.000Z
2021-11-21T03:31:32.000Z
counter-test-applications/lr100000/linear-regr-100k.py
EsperLiu/vPython
f1005f011d6d9fd079cf72e8f78bab6d95a9f993
[ "0BSD" ]
null
null
null
counter-test-applications/lr100000/linear-regr-100k.py
EsperLiu/vPython
f1005f011d6d9fd079cf72e8f78bab6d95a9f993
[ "0BSD" ]
1
2021-11-28T05:57:55.000Z
2021-11-28T05:57:55.000Z
def end_of_import(): return 0 def end_of_init(): return 0 def end_of_computing(): return 0 import numpy as np from sklearn.linear_model import LinearRegression end_of_import() X = np.array(range(0,100000)).reshape(-1, 1) # y = 2x + 3 y = np.dot(X, 2) + 3 end_of_init() reg = LinearRegression().fit(X, y)...
16.95
49
0.696165
60
339
3.716667
0.483333
0.134529
0.107623
0.116592
0.134529
0
0
0
0
0
0
0.057143
0.174041
339
20
50
16.95
0.739286
0.029499
0
0.214286
0
0
0
0
0
0
0
0
0
1
0.214286
false
0
0.285714
0.214286
0.714286
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
2
a15b3e54d6303597b66c9ac9aa7e5fefcc34013d
262
py
Python
python/bitcoin/ch04/04_08.py
gangserver/py_test
869bdfa5c94c3b6a15b87e0c3de6b2cdaca821f4
[ "Apache-2.0" ]
null
null
null
python/bitcoin/ch04/04_08.py
gangserver/py_test
869bdfa5c94c3b6a15b87e0c3de6b2cdaca821f4
[ "Apache-2.0" ]
null
null
null
python/bitcoin/ch04/04_08.py
gangserver/py_test
869bdfa5c94c3b6a15b87e0c3de6b2cdaca821f4
[ "Apache-2.0" ]
null
null
null
import requests url = "https://api.korbit.co.kr/v1/ticker/detailed?currency_pair=btc_krw" r = requests.get(url) bitcoin = r.json() print(bitcoin) print(type(bitcoin)) print(bitcoin['last']) print(bitcoin['bid']) print(bitcoin['ask']) print(bitcoin['volume'])
18.714286
73
0.725191
39
262
4.820513
0.641026
0.319149
0
0
0
0
0
0
0
0
0
0.004132
0.076336
262
13
74
20.153846
0.772727
0
0
0
0
0
0.311538
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.6
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
1
0
2
a16aa7de0e511402c80303f34d1d2b678e7b0256
446
py
Python
tests/LayoutTest.py
lakhman/restructuredWeb
a8aff9f96c63415fdefe6832f923a6d395d4ebdd
[ "MIT" ]
2
2021-05-19T15:43:26.000Z
2021-05-19T16:07:00.000Z
tests/LayoutTest.py
lakhman/restructuredWeb
a8aff9f96c63415fdefe6832f923a6d395d4ebdd
[ "MIT" ]
null
null
null
tests/LayoutTest.py
lakhman/restructuredWeb
a8aff9f96c63415fdefe6832f923a6d395d4ebdd
[ "MIT" ]
1
2021-05-19T15:43:44.000Z
2021-05-19T15:43:44.000Z
# -*- coding: utf-8 -*- from .BaseTest import BaseTest class LayoutTest(BaseTest): def test_layout_switch(self): """ Test layout switch """ self.do_component_fixture_test_with_real_sphinx('layout', 'layout') def test_layout_multiple(self): """ Test multiple lay...
26.235294
83
0.650224
51
446
5.372549
0.470588
0.109489
0.094891
0.145985
0.335766
0.335766
0.335766
0.335766
0.335766
0
0
0.002959
0.242152
446
16
84
27.875
0.807692
0.197309
0
0
0
0
0.102894
0
0
0
0
0
0
1
0.333333
false
0
0.166667
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
1
0
0
0
0
1
0
0
2
a17081dce9dfbf674f07300258797fe7e68a0847
1,746
py
Python
017. Letter Combinations of a Phone Number.py
youhusky/Facebook_Prepare
4045bcb652537711b3680b2aa17204ae73c6bde8
[ "MIT" ]
6
2017-10-30T05:35:46.000Z
2020-12-15T06:51:52.000Z
017. Letter Combinations of a Phone Number.py
youhusky/Facebook_Prepare
4045bcb652537711b3680b2aa17204ae73c6bde8
[ "MIT" ]
1
2017-10-30T04:11:31.000Z
2017-10-30T05:46:24.000Z
017. Letter Combinations of a Phone Number.py
youhusky/Facebook_Prepare
4045bcb652537711b3680b2aa17204ae73c6bde8
[ "MIT" ]
2
2020-09-03T07:14:02.000Z
2021-05-21T19:19:57.000Z
# Given a digit string, return all possible letter combinations that the number could represent. # A mapping of digit to letters (just like on the telephone buttons) is given below. # Input:Digit string "23" # Output: ["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"]. # DFS backtracking class Solution(object)...
27.28125
96
0.4874
206
1,746
4.131068
0.436893
0.042303
0.047004
0.072855
0.13631
0.13631
0.13631
0.070505
0.070505
0
0
0.019964
0.368843
1,746
63
97
27.714286
0.752269
0.187858
0
0.238095
0
0
0.03238
0
0
0
0
0
0
0
null
null
0.190476
0
null
null
0.02381
0
0
0
null
0
0
0
0
0
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
1
0
0
0
0
0
2
a1730ed2d00a6babe52f239de2d480281d939967
13,395
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/packetinlist_10d8adb40e4e05f4b37904f2c6428ca9.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
20
2019-05-07T01:59:14.000Z
2022-02-11T05:24:47.000Z
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/packetinlist_10d8adb40e4e05f4b37904f2c6428ca9.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
60
2019-04-03T18:59:35.000Z
2022-02-22T12:05:05.000Z
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/packetinlist_10d8adb40e4e05f4b37904f2c6428ca9.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
13
2019-05-20T10:48:31.000Z
2021-10-06T07:45:44.000Z
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
40.468278
193
0.642255
1,567
13,395
5.407786
0.207403
0.024428
0.015931
0.021477
0.533514
0.502714
0.471678
0.467076
0.450555
0.438164
0
0.002607
0.255543
13,395
330
194
40.590909
0.847172
0.589026
0
0.290698
0
0
0.085553
0
0
0
0
0
0
1
0.232558
false
0
0.104651
0
0.604651
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
a173f091bd6a84a9640f8e5bfa3ab824665803fb
1,038
py
Python
django/contrib/contenttypes/tests/models.py
benjaoming/django
6dbe979b4d9396e1b307c7d27388c97c13beb21c
[ "BSD-3-Clause" ]
2
2015-01-21T15:45:07.000Z
2015-02-21T02:38:13.000Z
env/lib/python2.7/site-packages/django/contrib/contenttypes/tests/models.py
luiscarlosgph/nas
e5acee61e8bbf12c34785fe971ce7df8dee775d4
[ "MIT" ]
10
2019-12-26T17:31:31.000Z
2022-03-21T22:17:33.000Z
env/lib/python2.7/site-packages/django/contrib/contenttypes/tests/models.py
luiscarlosgph/nas
e5acee61e8bbf12c34785fe971ce7df8dee775d4
[ "MIT" ]
1
2020-05-25T08:55:19.000Z
2020-05-25T08:55:19.000Z
from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.utils.http import urlquote class ConcreteModel(models.Model): name = models.CharField(max_length=10) class ProxyModel(ConcreteModel): class Meta: proxy = True @python_2_unicode_compatible class F...
23.590909
73
0.716763
125
1,038
5.704
0.44
0.092567
0.117812
0.067321
0.333801
0.255259
0.255259
0.255259
0.162693
0
0
0.007092
0.184971
1,038
43
74
24.139535
0.835697
0.257225
0
0.105263
0
0
0.027894
0
0
0
0
0
0
1
0.157895
false
0
0.157895
0.157895
0.894737
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
a174c86a4c793d497c49fdd9127b5aea515b4346
400
py
Python
utils/middleware.py
DavidRoldan523/elenas_test
8b520fae68a275654a42ad761713c9c932d17a76
[ "MIT" ]
null
null
null
utils/middleware.py
DavidRoldan523/elenas_test
8b520fae68a275654a42ad761713c9c932d17a76
[ "MIT" ]
null
null
null
utils/middleware.py
DavidRoldan523/elenas_test
8b520fae68a275654a42ad761713c9c932d17a76
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.utils.deprecation import MiddlewareMixin class HealthCheckMiddleware: def __init__(self, get_response): self.get_response = get_response def __call__(self, request): if request.META["PATH_INFO"] == "/health-check/": return HttpRespo...
28.571429
57
0.7
44
400
6.068182
0.568182
0.164794
0.168539
0.172285
0
0
0
0
0
0
0
0
0.2125
400
14
58
28.571429
0.847619
0
0
0
0
0
0.062344
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.7
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
a17ef045f77adc98f9fc666a8b89d72884c7ebf6
287
py
Python
tests/test_vsan/vars.py
wardy3/mdssdk
393102fab146917a3893b6aa2bd6a0449ad491c5
[ "Apache-2.0" ]
4
2020-12-13T20:02:43.000Z
2022-02-27T23:36:58.000Z
tests/test_vsan/vars.py
wardy3/mdssdk
393102fab146917a3893b6aa2bd6a0449ad491c5
[ "Apache-2.0" ]
13
2020-09-23T07:30:15.000Z
2022-03-30T01:12:25.000Z
tests/test_vsan/vars.py
wardy3/mdssdk
393102fab146917a3893b6aa2bd6a0449ad491c5
[ "Apache-2.0" ]
12
2020-05-11T09:33:21.000Z
2022-03-18T11:11:28.000Z
import logging import random log = logging.getLogger(__name__) reserved_id = [4079, 4094] boundary_id = [0, 4095] # No need to have end=4094 as there are some inbetween vsans reserved for fport-channel-trunk def get_random_id(start=2, end=400): return random.randint(start, end)
22.076923
93
0.756098
46
287
4.543478
0.76087
0
0
0
0
0
0
0
0
0
0
0.08642
0.15331
287
12
94
23.916667
0.773663
0.317073
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0.142857
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
a18f308a306f458e03d32285aa21896641d7fc85
400
py
Python
stackoverflow/venv/lib/python3.6/site-packages/scrapy/utils/markup.py
zhi-xianwei/learn_python3_spider
a3301f8112e4ded25c3578162db8c6a263a0693b
[ "MIT" ]
9,953
2019-04-03T23:41:04.000Z
2022-03-31T11:54:44.000Z
stackoverflow/venv/lib/python3.6/site-packages/scrapy/utils/markup.py
W4LKURE/learn_python3_spider
98dd354a41598b31302641f9a0ea49d1ecfa0fb1
[ "MIT" ]
44
2019-05-27T10:59:29.000Z
2022-03-31T14:14:29.000Z
stackoverflow/venv/lib/python3.6/site-packages/scrapy/utils/markup.py
W4LKURE/learn_python3_spider
98dd354a41598b31302641f9a0ea49d1ecfa0fb1
[ "MIT" ]
2,803
2019-04-06T13:15:33.000Z
2022-03-31T07:42:01.000Z
""" Transitional module for moving to the w3lib library. For new code, always import from w3lib.html instead of this module """ import warnings from scrapy.exceptions import ScrapyDeprecationWarning from w3lib.html import * warnings.warn("Module `scrapy.utils.markup` is deprecated. " "Please import fr...
28.571429
66
0.7375
48
400
6.145833
0.604167
0.091525
0.132203
0.128814
0.176271
0
0
0
0
0
0
0.015337
0.185
400
14
67
28.571429
0.889571
0.3
0
0
0
0
0.307692
0.076923
0
0
0
0
0
1
0
true
0
0.666667
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
1
0
1
0
0
0
0
2
a1a9b8f9731ec54e8ec54f439eb2503d5d2d061e
961
py
Python
test/test_host.py
waylonwang/pure-python-adb
417539119611f93cf079a7d0e05e575df3e3446e
[ "MIT" ]
null
null
null
test/test_host.py
waylonwang/pure-python-adb
417539119611f93cf079a7d0e05e575df3e3446e
[ "MIT" ]
null
null
null
test/test_host.py
waylonwang/pure-python-adb
417539119611f93cf079a7d0e05e575df3e3446e
[ "MIT" ]
1
2020-10-08T10:18:13.000Z
2020-10-08T10:18:13.000Z
def test_list_devices(client): devices = client.devices() assert len(devices) > 0 assert any(map(lambda device: device.serial == "emulator-5554", devices)) def test_list_devices_by_state(client): devices = client.devices(client.BOOTLOADER) assert len(devices) == 0 devices = client.devices(clie...
25.289474
77
0.689906
121
961
5.355372
0.256198
0.160494
0.154321
0.160494
0.356481
0.311728
0.311728
0.311728
0.179012
0.179012
0
0.037132
0.187305
961
37
78
25.972973
0.792574
0
0
0.333333
0
0
0.060354
0
0
0
0
0
0.407407
1
0.185185
false
0
0
0
0.185185
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
1
0
0
0
0
0
0
0
0
0
2
a1aa7f5e730996934c8876a85b426f2a47d1eacc
799
py
Python
appengine/experimental/crbadge/testdata/upload.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/experimental/crbadge/testdata/upload.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/experimental/crbadge/testdata/upload.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python import os, sys import optparse import json, urllib import httplib2 import urlparse def upload(filenames, url, password): parsed = urlparse.urlparse(url) http = httplib2.Http() for filename in filenames: with open(filename) as f: # Load and validate JSON o = json.load(f) s ...
22.828571
72
0.649562
107
799
4.747664
0.523364
0.031496
0.059055
0
0
0
0
0
0
0
0
0.003106
0.193992
799
34
73
23.5
0.785714
0.048811
0
0
0
0
0.112285
0
0
0
0
0
0
0
null
null
0.166667
0.208333
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
a1ade519e607956e6b09f57c472fa7d337099ebf
138
py
Python
goldmeister/__init__.py
USDA-ARS-NWRC/goldmeister
b4624a355e551c4610834a9dcb971524c45bb437
[ "CC0-1.0" ]
null
null
null
goldmeister/__init__.py
USDA-ARS-NWRC/goldmeister
b4624a355e551c4610834a9dcb971524c45bb437
[ "CC0-1.0" ]
1
2020-09-17T16:16:13.000Z
2020-09-17T16:21:00.000Z
goldmeister/__init__.py
USDA-ARS-NWRC/goldmeister
b4624a355e551c4610834a9dcb971524c45bb437
[ "CC0-1.0" ]
null
null
null
"""Top-level package for Goldmeister.""" __author__ = """Micah Johnson""" __email__ = 'micah.johnson150@gmail.com' __version__ = '0.2.0'
23
40
0.702899
17
138
5
0.882353
0
0
0
0
0
0
0
0
0
0
0.04878
0.108696
138
5
41
27.6
0.642276
0.246377
0
0
0
0
0.44898
0.265306
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
a1b1b372ea41556cd122b9d3a8b1aaadf901cbd1
1,956
py
Python
uvicore/http/OBSOLETE/routes-OLD.py
coboyoshi/uvicore
9cfdeeac83000b156fe48f068b4658edaf51c8de
[ "MIT" ]
11
2021-03-22T22:07:49.000Z
2022-03-08T16:18:33.000Z
uvicore/http/OBSOLETE/routes-OLD.py
coboyoshi/uvicore
9cfdeeac83000b156fe48f068b4658edaf51c8de
[ "MIT" ]
12
2021-03-04T05:51:24.000Z
2021-09-22T05:16:18.000Z
uvicore/http/OBSOLETE/routes-OLD.py
coboyoshi/uvicore
9cfdeeac83000b156fe48f068b4658edaf51c8de
[ "MIT" ]
2
2021-03-25T14:49:56.000Z
2021-11-17T23:20:29.000Z
# @uvicore.service() # class Routes(RoutesInterface, Generic[R]): # endpoints: str = None # @property # def app(self) -> ApplicationInterface: # return self._app # @property # def package(self) -> PackageInterface: # return self._package # @property # def Router(self) ...
25.736842
85
0.528119
188
1,956
5.37766
0.31383
0.059347
0.063304
0.027695
0.178042
0.124629
0.124629
0
0
0
0
0
0.345092
1,956
75
86
26.08
0.789227
0.927403
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
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
1
0
0
0
0
0
0
2
a1b77cdc1daef2b3d3ed0cc366bb55bdefa74e68
1,670
py
Python
hard-gists/7880c101557297beeccda05978aeb278/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/7880c101557297beeccda05978aeb278/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/7880c101557297beeccda05978aeb278/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
# Example of use of Afanasy's API to generate a summary of the state of the # render farm. # Copyright (c) 2016 rise|fx (Elie Michel) - Released under MIT License import af cmd = af.Cmd() def isSysJob(job): return job['st'] == 0 ## Jobs ## joblist = cmd.getJobList() job_state_counters = {} job_count = 0 for j...
28.305085
79
0.669461
268
1,670
4.033582
0.317164
0.061055
0.083256
0.074006
0.159112
0.13506
0.105458
0.105458
0.074006
0.074006
0
0.016047
0.179042
1,670
58
80
28.793103
0.772429
0.216168
0
0
1
0
0.193498
0
0
0
0
0
0
1
0.03125
false
0
0.03125
0.03125
0.09375
0.4375
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
1
0
2
a1be04a80f83b1938545b09a34c0a9a1cda47ace
1,285
py
Python
server/newsWebsite/models.py
thiagobrez/newsWebsite
130f01d29dd776eaa096080982274bb27d19ad8f
[ "MIT" ]
null
null
null
server/newsWebsite/models.py
thiagobrez/newsWebsite
130f01d29dd776eaa096080982274bb27d19ad8f
[ "MIT" ]
7
2020-09-07T18:44:00.000Z
2022-02-10T19:05:41.000Z
server/newsWebsite/models.py
thiagobrez/newsWebsite
130f01d29dd776eaa096080982274bb27d19ad8f
[ "MIT" ]
null
null
null
from django.db import models def picture_upload_path(instance, filename): # file will be saved at <MEDIA_ROOT>/authorPictures/<filename> return 'authorPictures/{0}'.format(filename) def hero_upload_path(instance, filename): # file will be saved at <MEDIA_ROOT>/heroImages/<filename> return 'heroImage...
31.341463
131
0.737743
164
1,285
5.573171
0.365854
0.059081
0.078775
0.105033
0.320569
0.269147
0.269147
0.205689
0.113786
0.113786
0
0.017447
0.152529
1,285
40
132
32.125
0.821855
0.091051
0
0.2
0
0
0.091845
0.054077
0
0
0
0
0
1
0.2
false
0
0.04
0.2
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
a1c2d77e61f6bdb0c438878369cd53216104adca
365
py
Python
Mundo2/lerSexo.py
DanieleMagalhaes/Exercicios-Python
394c68e8f06a10ec16539addd888960d11d1318f
[ "MIT" ]
null
null
null
Mundo2/lerSexo.py
DanieleMagalhaes/Exercicios-Python
394c68e8f06a10ec16539addd888960d11d1318f
[ "MIT" ]
null
null
null
Mundo2/lerSexo.py
DanieleMagalhaes/Exercicios-Python
394c68e8f06a10ec16539addd888960d11d1318f
[ "MIT" ]
null
null
null
print('-'*60) print('\33[35m[ F ] Feminino\33[m \n\33[32m[ M ] Masculino\33[m \n ') sexo = str(input('Qual o seu sexo? ')).strip().upper()[0] # só pega a primeira letra while sexo not in 'MF': sexo = str(input('\33[31mDados inválidos.\33[m Por favor, informe seu sexo: ')).strip().upper()[0] print('\nSexo {} registr...
52.142857
102
0.641096
62
365
3.774194
0.612903
0.038462
0.034188
0.145299
0.153846
0
0
0
0
0
0
0.07571
0.131507
365
7
103
52.142857
0.662461
0.065753
0
0.285714
0
0.142857
0.505882
0
0
0
0
0
0
1
0
false
0
0
0
0
0.571429
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
1
0
2
a1c9ea67f9a8ebf42ecee72115e10b2677436a17
216
py
Python
awesimsoss/__init__.py
spacetelescope/AWESim_SOSS
75669276bd8ce22bc86d6845c771964ffec94d07
[ "MIT" ]
4
2019-12-17T19:04:25.000Z
2020-09-22T15:53:09.000Z
awesimsoss/__init__.py
spacetelescope/awesimsoss
75669276bd8ce22bc86d6845c771964ffec94d07
[ "MIT" ]
94
2018-10-17T18:03:57.000Z
2021-03-01T07:34:21.000Z
awesimsoss/__init__.py
spacetelescope/awesimsoss
75669276bd8ce22bc86d6845c771964ffec94d07
[ "MIT" ]
8
2018-10-17T20:45:49.000Z
2021-04-14T11:41:41.000Z
# -*- coding: utf-8 -*- """Top-level package for awesimsoss.""" __author__ = """Joe Filippazzo""" __email__ = 'jfilippazzo@stsci.edu' __version__ = '0.3.5' from .awesim import TSO, TestTSO, BlackbodyTSO, ModelTSO
21.6
56
0.689815
26
216
5.269231
1
0
0
0
0
0
0
0
0
0
0
0.02139
0.134259
216
9
57
24
0.71123
0.259259
0
0
0
0
0.25974
0.136364
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
a1cbe0620d09eccc4613b82d60775050479f1c1b
6,565
py
Python
keyboards/inline/in_processing/keyboards_sum_ready.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
keyboards/inline/in_processing/keyboards_sum_ready.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
keyboards/inline/in_processing/keyboards_sum_ready.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
from data import all_emoji from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton from aiogram.utils.callback_data import CallbackData from data import all_emoji from utils.googlesheets import send_to_google from utils.set_minus_and_plus_currences import set_minus_and_plus from utils.get_minuses_sum_F...
26.795918
90
0.493374
659
6,565
4.657056
0.138088
0.045617
0.161616
0.18247
0.76507
0.735419
0.661779
0.542522
0.457804
0.421962
0
0.00859
0.397106
6,565
245
91
26.795918
0.76478
0.00853
0
0.594059
0
0
0.088674
0.003381
0.014851
0
0
0
0
1
0.019802
false
0
0.039604
0
0.079208
0
0
0
0
null
0
0
1
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
2