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
003a06c7f6a45ca3f252bddc837c4166b3d7faeb
13,158
py
Python
lerc_control/scripted.py
IntegralDefense/lerc
84c82aea1f311062016ab13189dc3213ca94b255
[ "Apache-2.0" ]
1
2021-06-18T14:36:10.000Z
2021-06-18T14:36:10.000Z
lerc_control/scripted.py
IntegralDefense/lerc
84c82aea1f311062016ab13189dc3213ca94b255
[ "Apache-2.0" ]
13
2018-10-15T19:31:11.000Z
2019-05-15T20:59:40.000Z
lerc_control/scripted.py
IntegralDefense/lerc
84c82aea1f311062016ab13189dc3213ca94b255
[ "Apache-2.0" ]
2
2018-08-05T00:08:22.000Z
2018-08-06T18:52:59.000Z
import os import logging import pprint from configparser import ConfigParser from lerc_control import lerc_api # GLOBALS # logger = logging.getLogger("lerc_control."+__name__) IGNORED_SECTIONS = ['overview'] REQUIRED_CMD_KEYS = ['operation'] OPTIONAL_CMD_KEYS = ['wait_for_completion', 'get_results'] REQUIRED_OP_KE...
48.375
189
0.629579
1,590
13,158
4.983648
0.140252
0.029278
0.040384
0.02524
0.381752
0.314235
0.282686
0.264513
0.254796
0.248486
0
0.001564
0.271242
13,158
272
190
48.375
0.824799
0.036784
0
0.360731
0
0
0.163387
0.007496
0
0
0
0
0
0
null
null
0
0.022831
null
null
0.041096
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0040436366d59b53bfda42960cee3507726902d7
1,572
py
Python
get_top.py
pmelchior/hydra
ac54e5bd81892143cd11813eb73ff6554b4c52a1
[ "MIT" ]
null
null
null
get_top.py
pmelchior/hydra
ac54e5bd81892143cd11813eb73ff6554b4c52a1
[ "MIT" ]
3
2015-09-02T19:46:11.000Z
2015-09-02T19:50:47.000Z
get_top.py
pmelchior/hydra
ac54e5bd81892143cd11813eb73ff6554b4c52a1
[ "MIT" ]
null
null
null
#!/bin/env python from os import popen import sqlite3,json from time import time, sleep from os import fork, chdir, setsid, umask from sys import exit wait = 5 # minutes wait time between polls def poll_top(t0, c): host = popen('hostname').read().strip().split(".")[0] cpus = int(popen('lscpu -p').readlines...
27.103448
158
0.541985
218
1,572
3.848624
0.458716
0.010727
0.028605
0.028605
0.095352
0.095352
0.095352
0.095352
0.095352
0.095352
0
0.045253
0.283079
1,572
57
159
27.578947
0.699201
0.141858
0
0.27907
0
0
0.117823
0.029828
0
0
0
0
0
0
null
null
0
0.116279
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0041d108d87f1f9167a9a7807e7bf459b3f5297a
319
py
Python
0201-0300/0223-Rectangle Area/0223-Rectangle Area.py
jiadaizhao/LeetCode
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
[ "MIT" ]
49
2018-05-05T02:53:10.000Z
2022-03-30T12:08:09.000Z
0201-0300/0223-Rectangle Area/0223-Rectangle Area.py
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
11
2017-12-15T22:31:44.000Z
2020-10-02T12:42:49.000Z
0201-0300/0223-Rectangle Area/0223-Rectangle Area.py
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
28
2017-12-05T10:56:51.000Z
2022-01-26T18:18:27.000Z
class Solution: def computeArea(self, A: int, B: int, C: int, D: int, E: int, F: int, G: int, H: int) -> int: left = max(A, E) right = max(min(C, G), left) bottom = max(B, F) up = max(min(D, H), bottom) return (C - A)*(D - B) + (G - E)*(H - F) - (right - left)*(up - bottom)
39.875
97
0.470219
55
319
2.727273
0.381818
0.08
0
0
0
0
0
0
0
0
0
0
0.319749
319
7
98
45.571429
0.691244
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
004918f3d76655ce7b88065f2f0406992cff1ad5
1,137
py
Python
colorgame/api/database.py
enj/color-game
ee1d725b2320dd992f7892d9ca204b85738bed95
[ "MIT" ]
null
null
null
colorgame/api/database.py
enj/color-game
ee1d725b2320dd992f7892d9ca204b85738bed95
[ "MIT" ]
null
null
null
colorgame/api/database.py
enj/color-game
ee1d725b2320dd992f7892d9ca204b85738bed95
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session, sessionmaker from sqlalchemy.ext.declarative import declarative_base # An engine has a Dialect / Pool object which establish a DBAPI connection # This could easily be switched to PostgreSQL; SQLite ...
40.607143
77
0.723835
152
1,137
5.335526
0.585526
0.051788
0.061652
0
0
0
0
0
0
0
0
0.001114
0.210202
1,137
27
78
42.111111
0.902004
0.437115
0
0
0
0
0.027157
0
0
0
0
0
0
1
0.083333
false
0
0.333333
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
cc352e418843cd4183f4497d69c21c6e40ad8e71
1,522
py
Python
querylist/dict.py
Toshakins/querylist
8abe26ff043a7446884bf68078a2b3c2abe8a7c7
[ "MIT" ]
6
2015-01-29T14:29:20.000Z
2019-04-13T11:24:29.000Z
querylist/dict.py
Toshakins/querylist
8abe26ff043a7446884bf68078a2b3c2abe8a7c7
[ "MIT" ]
4
2015-09-04T06:33:02.000Z
2021-04-30T10:03:26.000Z
querylist/dict.py
Toshakins/querylist
8abe26ff043a7446884bf68078a2b3c2abe8a7c7
[ "MIT" ]
4
2015-10-22T00:43:04.000Z
2021-01-27T14:38:16.000Z
class BetterDict(dict): def __getattr__(self, attr): if attr in self: return self.__dict_to_BetterDict(attr) raise AttributeError def __dict_to_BetterDict(self, attr): """Convert the passed attr to a BetterDict if the value is a dict Returns: The new value of the p...
28.716981
78
0.633377
180
1,522
5.027778
0.327778
0.088398
0.061878
0.039779
0.152486
0
0
0
0
0
0
0
0.277267
1,522
52
79
29.269231
0.822727
0.221419
0
0.1875
0
0
0.015625
0
0
0
0
0
0
1
0.25
false
0
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
1
0
0
0
0
0
0
0
1
cc3d70c44d7a0e83d0069e446ccb4f78d6fd5af1
7,117
py
Python
yolodex/models.py
correctiv/django-yolodex
e30dff95153c312119acad3c35ef7fcca0fab076
[ "MIT" ]
5
2015-06-22T20:15:49.000Z
2016-08-17T13:19:41.000Z
yolodex/models.py
correctiv/django-yolodex
e30dff95153c312119acad3c35ef7fcca0fab076
[ "MIT" ]
null
null
null
yolodex/models.py
correctiv/django-yolodex
e30dff95153c312119acad3c35ef7fcca0fab076
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- from django.conf import settings from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from django.template import Template, Context from django.utils.html impor...
32.20362
84
0.653787
831
7,117
5.416366
0.176895
0.035992
0.034659
0.047989
0.492113
0.365252
0.317041
0.268829
0.203288
0.203288
0
0.008992
0.234368
7,117
220
85
32.35
0.817031
0.003232
0
0.339286
0
0
0.054146
0.006204
0
0
0
0
0
1
0.125
false
0
0.065476
0.107143
0.607143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
cc44484e0250a1bd722b964271797dec7ff73fab
871
py
Python
BackEnd_dev/test_app/migrations/0011_auto_20200108_2254.py
Aiemu/CourceSE-Proj-RuanXiaoPiao
756124f0bc847686ce635fce1c3ecafcbaae9140
[ "MIT" ]
null
null
null
BackEnd_dev/test_app/migrations/0011_auto_20200108_2254.py
Aiemu/CourceSE-Proj-RuanXiaoPiao
756124f0bc847686ce635fce1c3ecafcbaae9140
[ "MIT" ]
2
2021-04-13T08:29:25.000Z
2021-04-13T08:29:34.000Z
BackEnd_dev/test_app/migrations/0011_auto_20200108_2254.py
Aiemu/CourceSE-Proj-RuanXiaoPiao
756124f0bc847686ce635fce1c3ecafcbaae9140
[ "MIT" ]
null
null
null
# Generated by Django 2.2.7 on 2020-01-08 22:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('test_app', '0010_auto_20191223_0950'), ] operations = [ migrations.AddField( model_name='user', name='...
30.034483
103
0.590126
87
871
5.689655
0.45977
0.056566
0.078788
0.10303
0.559596
0.484848
0.379798
0
0
0
0
0.050407
0.293915
871
28
104
31.107143
0.754472
0.051665
0
0.363636
1
0
0.221106
0.028894
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cc50df2032f66a65da2738b3ef30359d1771f096
733
py
Python
src/hypercorn/asyncio/statsd.py
markojaadam/hypercorn
b6fd5e48a79e1246cc8171ea8f93dab99f2a1b5c
[ "MIT" ]
3
2020-03-31T10:36:31.000Z
2020-04-23T12:01:10.000Z
src/hypercorn/asyncio/statsd.py
markojaadam/hypercorn
b6fd5e48a79e1246cc8171ea8f93dab99f2a1b5c
[ "MIT" ]
6
2020-09-05T01:40:23.000Z
2022-03-12T00:40:58.000Z
src/hypercorn/asyncio/statsd.py
markojaadam/hypercorn
b6fd5e48a79e1246cc8171ea8f93dab99f2a1b5c
[ "MIT" ]
1
2020-09-05T00:19:03.000Z
2020-09-05T00:19:03.000Z
import asyncio from typing import Optional from ..config import Config from ..statsd import StatsdLogger as Base class _DummyProto(asyncio.DatagramProtocol): pass class StatsdLogger(Base): def __init__(self, config: Config) -> None: super().__init__(config) self.address = config.statsd_host...
29.32
88
0.678035
85
733
5.623529
0.541176
0.108787
0.058577
0
0
0
0
0
0
0
0
0.005236
0.218281
733
24
89
30.541667
0.82897
0.016371
0
0
0
0
0.001391
0
0
0
0
0
0
1
0.058824
false
0.058824
0.235294
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
cc5102b25bd226fea2c2353fd997c4e6bb7424c8
356
py
Python
day_2/part_1.py
Axelancerr/Advent-Of-Code
cde67dc4633d857f5c2a3a539622ae1b9f42ea30
[ "MIT" ]
1
2022-03-28T11:28:53.000Z
2022-03-28T11:28:53.000Z
day_2/part_1.py
Axelancerr/Advent-Of-Code
cde67dc4633d857f5c2a3a539622ae1b9f42ea30
[ "MIT" ]
null
null
null
day_2/part_1.py
Axelancerr/Advent-Of-Code
cde67dc4633d857f5c2a3a539622ae1b9f42ea30
[ "MIT" ]
null
null
null
( lambda directions, _: print(directions["forward"] * (directions["down"] - directions["up"])) )( commands := {"up": 0, "down": 0, "forward": 0}, [ commands.__setitem__( command, commands[command] + int(amount) ) for command, amount in list(map(str.split, open...
27.384615
84
0.542135
35
356
5.371429
0.628571
0
0
0
0
0
0
0
0
0
0
0.011583
0.272472
356
12
85
29.666667
0.714286
0
0
0
0
0
0.098315
0
0
0
0
0
0
1
0
true
0
0
0
0
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
cc5135e8f1865ea029bb5e86ef964771d85c7151
1,526
py
Python
test_framework.py
LEvinson2504/pythonMicroframeworks
99d62ae6a027de36b82c17b0268b30321431fd7a
[ "MIT" ]
3
2016-04-06T19:44:12.000Z
2020-06-19T15:10:39.000Z
test_framework.py
LEvinson2504/pythonMicroframeworks
99d62ae6a027de36b82c17b0268b30321431fd7a
[ "MIT" ]
2
2020-06-12T00:50:57.000Z
2020-06-20T14:24:37.000Z
test_framework.py
LEvinson2504/pythonMicroframeworks
99d62ae6a027de36b82c17b0268b30321431fd7a
[ "MIT" ]
2
2020-06-14T06:13:58.000Z
2020-06-19T15:12:52.000Z
''' test_<framework>.py @summary: Use this interface to add your favorite framework. Comparing (RAM usage) of different webframeworks. @since: 5 Mar 2016 @author: Andreas @home github.com/drandreaskrueger/pythonMicroframeworks @license: MIT but please donate: @bitcoi...
25.864407
78
0.586501
178
1,526
4.932584
0.578652
0.045558
0.027335
0.036446
0
0
0
0
0
0
0
0.021757
0.216907
1,526
59
79
25.864407
0.712971
0.106815
0
0
0
0
0.32243
0
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
cc5485254d8cc0d7e03b6bd3bc11b5eb7f481acc
6,106
py
Python
tests/test_comsol.py
macklenc/mtnlion
ba2e93faeed3004d344a8c14f37a409da572271d
[ "MIT" ]
null
null
null
tests/test_comsol.py
macklenc/mtnlion
ba2e93faeed3004d344a8c14f37a409da572271d
[ "MIT" ]
174
2018-05-11T13:00:10.000Z
2021-11-15T17:47:29.000Z
tests/test_comsol.py
macklenc/mtnlion
ba2e93faeed3004d344a8c14f37a409da572271d
[ "MIT" ]
1
2018-05-13T11:11:15.000Z
2018-05-13T11:11:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `comsol` module.""" import os from typing import Callable, List, Union from mtnlion import comsol import numpy as np import pytest def test_fix_boundaries() -> None: """Test the removal of duplicate boundaries and the addition of missing boundaries."""...
34.111732
119
0.631019
903
6,106
4.128461
0.200443
0.054453
0.025751
0.016899
0.320279
0.279238
0.226395
0.180794
0.149946
0.089056
0
0.052359
0.208647
6,106
178
120
34.303371
0.719164
0.304291
0
0.070588
0
0
0.01979
0
0
0
0
0.011236
0.141176
1
0.070588
false
0.011765
0.058824
0
0.152941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
cc556b383afc6e1e8e3ea5d704ab7536f983882a
1,033
py
Python
recipes/nextsilicon-cpp-subprocess/all/conanfile.py
cbeattie-tl/conan-center-index
28518a3cd31df96b0501bdf33c0da02261973289
[ "MIT" ]
1
2021-11-11T03:07:13.000Z
2021-11-11T03:07:13.000Z
recipes/nextsilicon-cpp-subprocess/all/conanfile.py
cbeattie-tl/conan-center-index
28518a3cd31df96b0501bdf33c0da02261973289
[ "MIT" ]
1
2022-03-09T06:33:41.000Z
2022-03-09T06:33:41.000Z
recipes/nextsilicon-cpp-subprocess/all/conanfile.py
cbeattie-tl/conan-center-index
28518a3cd31df96b0501bdf33c0da02261973289
[ "MIT" ]
null
null
null
from conans import ConanFile, tools class CppSubprocess(ConanFile): name = "nextsilicon-cpp-subprocess" license = "MIT" url = "https://github.com/conan-io/conan-center-index" homepage = "https://github.com/nextsilicon/cpp-subprocess" topics = ("subprocess", "os", "fork") description = ("Subpro...
36.892857
93
0.657309
123
1,033
5.398374
0.601626
0.078313
0.085843
0.066265
0
0
0
0
0
0
0
0
0.212972
1,033
27
94
38.259259
0.816728
0
0
0
0
0
0.363988
0.046467
0
0
0
0
0
1
0.142857
false
0
0.047619
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
cc57b937f1feabf0c8b434d0c871bd3c23c2e128
1,537
py
Python
tests/test_ptrmix.py
lourkeur/list.c
805cb78db18c28bafaad9bb66b3eb698a6e10913
[ "MIT" ]
null
null
null
tests/test_ptrmix.py
lourkeur/list.c
805cb78db18c28bafaad9bb66b3eb698a6e10913
[ "MIT" ]
null
null
null
tests/test_ptrmix.py
lourkeur/list.c
805cb78db18c28bafaad9bb66b3eb698a6e10913
[ "MIT" ]
null
null
null
from hypothesis import assume, given, reproduce_failure, stateful, strategies from _hypothesis_bridge import ffi, lib import unittest # generate random invalid generic pointers @strategies.composite def pointers(draw): return ffi.cast('void*', draw(strategies.integers(0, lib.UINTPTR_MAX))) class PtrMixSM(statef...
32.020833
92
0.651269
194
1,537
5.005155
0.386598
0.020597
0.053553
0.043254
0.045314
0.045314
0.045314
0
0
0
0
0.00339
0.232271
1,537
47
93
32.702128
0.819492
0.093689
0
0.117647
1
0
0.013679
0
0
0
0
0
0.058824
1
0.176471
false
0
0.088235
0.029412
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cc5b7c015320dc56b372fc5a87c6cab8567aa06f
7,953
py
Python
triplet/dd.py
neurodata/triplet_exp
e7901b35aa3268ed9cb00d915d5bef1259cbfc54
[ "MIT" ]
null
null
null
triplet/dd.py
neurodata/triplet_exp
e7901b35aa3268ed9cb00d915d5bef1259cbfc54
[ "MIT" ]
null
null
null
triplet/dd.py
neurodata/triplet_exp
e7901b35aa3268ed9cb00d915d5bef1259cbfc54
[ "MIT" ]
null
null
null
import math import numpy as np import torch from torch import nn import copy import random import concurrent.futures ## Distributions def generate_gaussian_parity(n, cov_scale=1, angle_params=None, k=1, acorn=None): """ Generate Gaussian XOR, a mixture of four Gaussians elonging to two classes. Class 0 cons...
35.824324
179
0.618886
1,119
7,953
4.19571
0.192136
0.021725
0.017039
0.005964
0.225985
0.18935
0.14377
0.116081
0.105431
0.067945
0
0.022068
0.259273
7,953
221
180
35.986425
0.774232
0.108764
0
0.159722
1
0
0.002846
0
0
0
0
0
0
1
0.055556
false
0
0.048611
0.006944
0.166667
0.006944
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cc5e7ef87fe50b124060f580922a8c4c54cb26ff
558
py
Python
doc/listings/siteroot/adminpage.py
jonathanj/mantissa
53e5502aba23ce99be78b27f923a276593033fe8
[ "MIT" ]
6
2016-02-17T15:04:53.000Z
2021-08-20T09:44:10.000Z
doc/listings/siteroot/adminpage.py
jonathanj/mantissa
53e5502aba23ce99be78b27f923a276593033fe8
[ "MIT" ]
62
2015-02-04T23:40:55.000Z
2021-02-18T19:56:02.000Z
doc/listings/siteroot/adminpage.py
jonathanj/mantissa
53e5502aba23ce99be78b27f923a276593033fe8
[ "MIT" ]
8
2015-11-15T17:26:42.000Z
2020-12-02T06:36:52.000Z
from zope.interface import implements from axiom.item import Item from axiom.attributes import bytes from nevow.url import URL from xmantissa.ixmantissa import ISiteRootPlugin class RedirectPlugin(Item): redirectFrom = bytes(default='admin.php') redirectTo = bytes(default='private') powerupInterfaces = ...
27.9
72
0.741935
59
558
7.016949
0.576271
0.043478
0
0
0
0
0
0
0
0
0
0
0.16129
558
19
73
29.368421
0.884615
0
0
0
0
0
0.028725
0
0
0
0
0
0
1
0.076923
false
0
0.384615
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
0
0
1
0
0
0
0
1
cc60b10a05a93ca5a9cb27ce579509ee04a0f24a
379
py
Python
kRPC/calculate_air_density.py
ubik2/PEGAS-kRPC
8f6628743a48a2cc700d57e62c0a49c94846f8c8
[ "MIT" ]
null
null
null
kRPC/calculate_air_density.py
ubik2/PEGAS-kRPC
8f6628743a48a2cc700d57e62c0a49c94846f8c8
[ "MIT" ]
null
null
null
kRPC/calculate_air_density.py
ubik2/PEGAS-kRPC
8f6628743a48a2cc700d57e62c0a49c94846f8c8
[ "MIT" ]
1
2020-10-09T10:13:55.000Z
2020-10-09T10:13:55.000Z
def calculate_air_density(pressure, temperature): """ Calculates air density from ideal gas law. :param pressure: Air pressure in Pascals :param temp: Air temperature in Kelvins :return density: Air density in kg/m^2 """ R = 286.9 # specific gas constant for air [J/(kg*K)] ...
29.153846
58
0.649077
50
379
4.88
0.56
0.122951
0
0
0
0
0
0
0
0
0
0.017921
0.263852
379
12
59
31.583333
0.856631
0.540897
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
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
1
0
0
0
0
0
0
0
1
cc616c9bada4ab4aa3c56079709d93b8bf32cb7f
1,971
py
Python
dl2/src/experiments.py
ImadDabbura/fastai-courses
053637a2dd3b4ad6c35f97a13f3fba87af1d3940
[ "Apache-2.0" ]
3
2020-05-30T10:50:14.000Z
2020-10-28T19:13:15.000Z
dl2/src/experiments.py
ImadDabbura/fastai-courses
053637a2dd3b4ad6c35f97a13f3fba87af1d3940
[ "Apache-2.0" ]
null
null
null
dl2/src/experiments.py
ImadDabbura/fastai-courses
053637a2dd3b4ad6c35f97a13f3fba87af1d3940
[ "Apache-2.0" ]
2
2020-10-16T05:05:09.000Z
2020-10-28T19:15:25.000Z
from torch.utils.data import DataLoader import torch import torch.nn as nn class Sequentiak(nn.Module): def __init__(self, layers): super().__init__() self.layers = nn.ModuleList(layers) def __call__(self, x): for l in self.layers: x = l(x) return x class Optimiz...
22.655172
79
0.578387
278
1,971
3.848921
0.230216
0.056075
0.061682
0.04486
0.304673
0.234579
0.128972
0.072897
0.072897
0.072897
0
0.002191
0.305429
1,971
86
80
22.918605
0.779401
0
0
0.274194
0
0
0
0
0
0
0
0
0
1
0.274194
false
0
0.048387
0.080645
0.516129
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
cc61e7a83cc7d33e495fe16c2430b39e6c96cd8e
12,102
py
Python
unit_tests/test_border_analytics.py
artsiom-sinitski/Border-Crossing-Analysis
41f08879c645dc5ac1327cc3c4ac12d05b67f25f
[ "CNRI-Python" ]
null
null
null
unit_tests/test_border_analytics.py
artsiom-sinitski/Border-Crossing-Analysis
41f08879c645dc5ac1327cc3c4ac12d05b67f25f
[ "CNRI-Python" ]
null
null
null
unit_tests/test_border_analytics.py
artsiom-sinitski/Border-Crossing-Analysis
41f08879c645dc5ac1327cc3c4ac12d05b67f25f
[ "CNRI-Python" ]
null
null
null
""" Unit tests for the Insight coding challenge solution. Author: Artsiom Sinitski Email: artsiom.vs@gmail.com Date: 10/28/2019 """ import unittest import src.border_analytics as ba class TestBorderAnalyticsMethods(unittest.TestCase): # the main purpose of this is to test that there is only a sing...
69.154286
189
0.610395
1,621
12,102
4.474399
0.112276
0.027023
0.040535
0.054047
0.751
0.689094
0.666621
0.643182
0.563215
0.546119
0
0.106958
0.217402
12,102
175
190
69.154286
0.658853
0.378698
0
0.130435
0
0
0.320806
0.021259
0
0
0
0
0.445652
1
0.032609
false
0.021739
0.021739
0
0.065217
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
0
0
0
0
0
0
0
0
1
cc636e9972b76a510af89d2df1cddf8d8079df9f
843
py
Python
pf/constants.py
bcaldwell/pfcompute
701930523cf8c503cc02692e9c213bc0c464ed2c
[ "MIT" ]
25
2017-01-26T19:37:56.000Z
2022-01-25T15:30:25.000Z
pf/constants.py
bcaldwell/pfcompute
701930523cf8c503cc02692e9c213bc0c464ed2c
[ "MIT" ]
null
null
null
pf/constants.py
bcaldwell/pfcompute
701930523cf8c503cc02692e9c213bc0c464ed2c
[ "MIT" ]
5
2018-03-05T19:55:47.000Z
2020-09-20T22:24:51.000Z
""" constants.py Constants used across code. project : pf version : 0.0.0 status : development modifydate : createdate : website : https://github.com/tmthydvnprt/pf author : tmthydvnprt email : tim@tmthydvnprt.com maintainer : tmthydvnprt license : MIT copyright : Copyright 2016, tmthydvnprt...
24.085714
128
0.450771
83
843
4.53012
0.590361
0.031915
0.039894
0.042553
0.018617
0.018617
0
0
0
0
0
0.045706
0.143535
843
34
129
24.794118
0.475069
0.481613
0
0
0
0
0.100592
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cc6735069a2894e00bac98eeb4538a51cab48679
644
py
Python
setup.py
peixian/gt-py
e88e2d0193846e82362a87b53495f0cebbc23134
[ "MIT" ]
1
2017-03-01T14:11:45.000Z
2017-03-01T14:11:45.000Z
setup.py
peixian/gt-py
e88e2d0193846e82362a87b53495f0cebbc23134
[ "MIT" ]
null
null
null
setup.py
peixian/gt-py
e88e2d0193846e82362a87b53495f0cebbc23134
[ "MIT" ]
null
null
null
from setuptools import setup def readme(): with open('readme.md') as f: return f.read() setup( name='gt-py', packages=['gtpy'], install_requires=['unittest2==1.1.0', 'requests==2.9.1'], version='1.2', license='MIT', description='Python library for GovTrack.us API', author='Peix...
28
71
0.635093
86
644
4.697674
0.674419
0.029703
0.069307
0.084158
0.138614
0.138614
0.138614
0
0
0
0
0.022388
0.167702
644
22
72
29.272727
0.731343
0
0
0
0
0.05
0.403727
0.043478
0
0
0
0
0
1
0.05
true
0
0.05
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
cc6fb8c3872af88a383ab8d37cef50941ee8a717
3,293
py
Python
flask_app.py
lprohl/fr_un
03f76829a5b6d3a52e3b4bcf88c4da9eff79688f
[ "MIT" ]
null
null
null
flask_app.py
lprohl/fr_un
03f76829a5b6d3a52e3b4bcf88c4da9eff79688f
[ "MIT" ]
null
null
null
flask_app.py
lprohl/fr_un
03f76829a5b6d3a52e3b4bcf88c4da9eff79688f
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf8 -*- # A very simple Flask Hello World app for you to get started with... from flask import Flask, render_template, request, redirect, url_for from fractal_pallete_manager import PalleteManager from fractal_pallete import Pallete from fractal_manager import Fractal from setup ...
37
189
0.677194
438
3,293
4.863014
0.267123
0.046948
0.046948
0.056338
0.219249
0.20939
0.138967
0.107981
0.048826
0
0
0.021379
0.176131
3,293
88
190
37.420455
0.76373
0.18433
0
0.127273
0
0
0.137983
0
0
0
0.017998
0
0
0
null
null
0
0.090909
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
cc78544501c05d61b62b8228bda2676b14ec1d26
7,526
py
Python
tests/test_subprocess.py
grnydawn/e3smlab
3d22a0bf656a55de7f177a108904189cce86652f
[ "MIT" ]
1
2020-04-27T17:17:02.000Z
2020-04-27T17:17:02.000Z
tests/test_subprocess.py
grnydawn/e3smlab
3d22a0bf656a55de7f177a108904189cce86652f
[ "MIT" ]
null
null
null
tests/test_subprocess.py
grnydawn/e3smlab
3d22a0bf656a55de7f177a108904189cce86652f
[ "MIT" ]
null
null
null
import sys, os, subprocess here = os.path.dirname(os.path.abspath(__file__)) home = os.path.expanduser("~") #subprocess.run(args, *, stdin=None, input=None, stdout=None, stderr=None, # capture_output=False, shell=False, cwd=None, timeout=None, # check=False, encoding=None, errors=None, tex...
31.621849
167
0.582647
962
7,526
4.508316
0.211019
0.023057
0.046115
0.040581
0.661748
0.629237
0.607102
0.591884
0.572285
0.56629
0
0.059238
0.208212
7,526
237
168
31.755274
0.668569
0.842679
0
0
0
0
0.129156
0.05243
0
0
0
0
0.076923
1
0.153846
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cc7ab2a5a4bb584cba275399fd83fe4d6c5f5ee4
1,234
py
Python
leetcode/stack_and_queues/stack_usng_queue.py
Gaurav-Pande/DataStructures
0e4af391274e33a9bb9f999a9032b74d06fc878e
[ "MIT" ]
5
2018-09-14T13:14:34.000Z
2021-12-29T11:07:35.000Z
leetcode/stack_and_queues/stack_usng_queue.py
Gaurav-Pande/DataStructures
0e4af391274e33a9bb9f999a9032b74d06fc878e
[ "MIT" ]
null
null
null
leetcode/stack_and_queues/stack_usng_queue.py
Gaurav-Pande/DataStructures
0e4af391274e33a9bb9f999a9032b74d06fc878e
[ "MIT" ]
null
null
null
# Author: Gaurav Pande # implement stack using queue # link: https://leetcode.com/problems/implement-stack-using-queues/description/ class MyStack(object): def __init__(self): """ Initialize your data structure here. """ self.queue = [] self.top_element = None def pus...
21.275862
79
0.52188
146
1,234
4.335616
0.465753
0.099526
0.088468
0.044234
0.047393
0
0
0
0
0
0
0.010139
0.360616
1,234
58
80
21.275862
0.792142
0.386548
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
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
1
0
0
0
0
0
0
0
1
cc81a407c10a588de7e332a9acd6924c76bd0d61
430
py
Python
code/python/Escuela/reset.py
luk224/AUTORIGGER
ffaba44b68e7715b0437cd4b0534e3ba385714dd
[ "Apache-2.0" ]
2
2020-04-17T08:18:03.000Z
2021-01-16T06:29:32.000Z
code/python/Escuela/reset.py
luk224/AUTORIGGER
ffaba44b68e7715b0437cd4b0534e3ba385714dd
[ "Apache-2.0" ]
null
null
null
code/python/Escuela/reset.py
luk224/AUTORIGGER
ffaba44b68e7715b0437cd4b0534e3ba385714dd
[ "Apache-2.0" ]
null
null
null
def resetControls(): controls = cmds.ls(sl = True, type='transform') for selCtrl in controls: attrReset = cmds.listAttr(selCtrl, k=True, u=True) for resetObj in attrReset: byDefault=cmds.attributeQuery( resetObj, node = selCtrl, listDefault = True) try: ...
33.076923
88
0.555814
42
430
5.690476
0.619048
0
0
0
0
0
0
0
0
0
0
0.003546
0.344186
430
13
89
33.076923
0.843972
0
0
0
0
0
0.023202
0
0
0
0
0
0
1
0.1
false
0.1
0
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
cc89ace9fea85bf31fedfc7ef76cf95d5de03ac3
961
py
Python
ubahnamakelas.py
hizulu/distributed-messaging-ZeroMQ-Pipeline
801fc36db4d6d6db32c8303d555173ff6b509a1d
[ "MIT" ]
null
null
null
ubahnamakelas.py
hizulu/distributed-messaging-ZeroMQ-Pipeline
801fc36db4d6d6db32c8303d555173ff6b509a1d
[ "MIT" ]
null
null
null
ubahnamakelas.py
hizulu/distributed-messaging-ZeroMQ-Pipeline
801fc36db4d6d6db32c8303d555173ff6b509a1d
[ "MIT" ]
null
null
null
from DatabaseConnection import DatabaseConnection import sys host = '172.104.45.98' username = 'laksita' password = 'bgx2NyA3vFZgZnTU' database = 'db_simak' rowLimit = '200' db = DatabaseConnection(host, username, password, database) tahun = 2019 semester = 1 tahunajaran = f"{tahun}{semester}...
29.121212
136
0.685744
121
961
5.305785
0.429752
0.054517
0.043614
0.049844
0
0
0
0
0
0
0
0.032342
0.19563
961
32
137
30.03125
0.798189
0.01769
0
0
0
0.04
0.45966
0.075372
0
0
0
0
0
1
0
false
0.08
0.08
0
0.08
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
cc9c208513e8f519859144e05bcd753bf384c706
6,092
py
Python
src/fsdict/flightcryptofiledict.py
polyrand/produtils
da023cce515222df014ae951c06d61239e936b20
[ "MIT" ]
4
2020-06-29T16:56:22.000Z
2021-12-12T13:15:48.000Z
src/fsdict/flightcryptofiledict.py
polyrand/produtils
da023cce515222df014ae951c06d61239e936b20
[ "MIT" ]
null
null
null
src/fsdict/flightcryptofiledict.py
polyrand/produtils
da023cce515222df014ae951c06d61239e936b20
[ "MIT" ]
null
null
null
import base64 import os import secrets import tarfile from collections.abc import MutableMapping from contextlib import suppress from glob import glob from typing import Callable # import cryptography from cryptography.fernet import Fernet from cryptography.hazmat.backends import default_backend from cryptography.hazm...
30.923858
96
0.602758
702
6,092
5.099715
0.294872
0.036872
0.013966
0.019553
0.306425
0.258101
0.240223
0.18771
0.159777
0.159777
0
0.019094
0.286441
6,092
196
97
31.081633
0.804463
0.38411
0
0.177778
0
0
0.036013
0.008096
0
0
0
0
0
1
0.1
false
0.055556
0.133333
0.022222
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
cc9ca91c86e18f15e9f8b016c5c15c32402c3ae5
15,821
py
Python
alipay/aop/api/domain/RecruitVoucherRule.py
alipay/alipay-sdk-python-all
1b63620431d982d30d39ee0adc4b92463cbcee3c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/RecruitVoucherRule.py
alipay/alipay-sdk-python-all
1b63620431d982d30d39ee0adc4b92463cbcee3c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/RecruitVoucherRule.py
alipay/alipay-sdk-python-all
1b63620431d982d30d39ee0adc4b92463cbcee3c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class RecruitVoucherRule(object): def __init__(self): self._denomination_percent_max = None self._denomination_percent_min = None self._floor_amount_max = None self._flo...
42.52957
121
0.676127
2,088
15,821
4.619253
0.034962
0.093313
0.060964
0.07154
0.815863
0.606013
0.430793
0.321825
0.13126
0.115293
0
0.000252
0.248214
15,821
371
122
42.644205
0.810661
0.002655
0
0.148368
0
0
0.1387
0.067195
0
0
0
0
0
1
0.139466
false
0
0.005935
0.065282
0.222552
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cca01c4edb1b8131a1a512fc655f2a4336ad33e1
519
py
Python
mlapp/integrations/aml/scripts/run_local_experiment.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
33
2021-02-26T10:41:09.000Z
2021-11-07T12:35:32.000Z
mlapp/integrations/aml/scripts/run_local_experiment.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
17
2021-03-04T15:37:21.000Z
2021-04-06T12:00:13.000Z
mlapp/integrations/aml/scripts/run_local_experiment.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
9
2021-03-03T20:02:41.000Z
2021-10-05T13:03:56.000Z
import os from mlapp.config import settings from mlapp.integrations.aml.utils.experiment import run_local_compute_experiment from mlapp.integrations.aml.utils.workspace import init_workspace # init workspace ws = init_workspace( settings['aml']['tenant_id'], settings['aml']['subscription_id'], settings['am...
34.6
134
0.782274
67
519
5.80597
0.432836
0.113111
0.107969
0.123393
0.1491
0
0
0
0
0
0
0
0.090559
519
14
135
37.071429
0.824153
0.026975
0
0
0
0
0.220676
0.04175
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ccc565baf3499c27ddddaa53df537e1bb07678da
544
py
Python
Ferramentas/verificaOrdem.py
aveusalex/TrabalhoFinalAED
a86ea03df9974af278570ebcc75cf059006d8f73
[ "Apache-2.0" ]
null
null
null
Ferramentas/verificaOrdem.py
aveusalex/TrabalhoFinalAED
a86ea03df9974af278570ebcc75cf059006d8f73
[ "Apache-2.0" ]
null
null
null
Ferramentas/verificaOrdem.py
aveusalex/TrabalhoFinalAED
a86ea03df9974af278570ebcc75cf059006d8f73
[ "Apache-2.0" ]
null
null
null
def verificar(lista, indice_score=2): for i in range(len(lista)): if i+1 == len(lista): return True if float(lista[i+1][indice_score]) - float(lista[i][indice_score]) < 0: return False if __name__ == '__main__': teste = [0, 1, 2, 3, 4] teste2 = [-1, -2, 4, 5, 7] ...
24.727273
79
0.551471
77
544
3.753247
0.415584
0.242215
0.076125
0
0
0
0
0
0
0
0
0.085859
0.272059
544
21
80
25.904762
0.643939
0
0
0
0
0
0.014706
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.176471
0.294118
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ccc9d5241e5cbf2ebc2084204227fb77974853af
1,474
py
Python
tests/plugins/pull/test_zway_poll.py
HazardDede/pnp
469ca17254dcca1a4eefe0dc5ac574692a9ab38e
[ "MIT" ]
4
2018-10-07T11:32:00.000Z
2019-04-23T09:34:23.000Z
tests/plugins/pull/test_zway_poll.py
HazardDede/pnp
469ca17254dcca1a4eefe0dc5ac574692a9ab38e
[ "MIT" ]
null
null
null
tests/plugins/pull/test_zway_poll.py
HazardDede/pnp
469ca17254dcca1a4eefe0dc5ac574692a9ab38e
[ "MIT" ]
1
2019-08-12T19:56:10.000Z
2019-08-12T19:56:10.000Z
import pytest import requests from pnp.plugins.pull import PollingError from pnp.plugins.pull.zway import ZwayPoll class ZwayResponseDummy: @property def status_code(self): return 200 @property def text(self): return "" def json(self): return {} def test_zway_poll(monk...
24.163934
87
0.671642
174
1,474
5.505747
0.281609
0.043841
0.041754
0.037578
0.695198
0.695198
0.695198
0.59499
0.59499
0.59499
0
0.012324
0.229308
1,474
60
88
24.566667
0.830986
0
0
0.547619
0
0
0.077341
0
0
0
0
0
0.166667
1
0.190476
false
0.142857
0.095238
0.095238
0.47619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ccd6c38edc4b08fa7a053dd890ddb2298c81936a
288
py
Python
examples/server.py
cympfh/jrpc
91636e937dd3b3c240c54d8761371605318a0e75
[ "MIT" ]
null
null
null
examples/server.py
cympfh/jrpc
91636e937dd3b3c240c54d8761371605318a0e75
[ "MIT" ]
null
null
null
examples/server.py
cympfh/jrpc
91636e937dd3b3c240c54d8761371605318a0e75
[ "MIT" ]
null
null
null
from jrpc.server import Application app = Application() @app.method async def ping() -> str: """ping method""" return "pong" @app.method async def plus(n: int, m: int) -> int: """Addition""" return n + m app.run(host="0.0.0.0", endpoint="/", port=8080, debug=True)
15.157895
60
0.611111
43
288
4.093023
0.604651
0.034091
0.159091
0.193182
0
0
0
0
0
0
0
0.034783
0.201389
288
18
61
16
0.730435
0
0
0.222222
0
0
0.046693
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.333333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aea54cf3fc7ad7943332a8f35239d5f415335c48
434
py
Python
exercicios-Python/ex101.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
exercicios-Python/ex101.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
exercicios-Python/ex101.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
def voto(anoNascimento): from datetime import date idade = date.today().year - anoNascimento if idade < 16: return(f'Com {idade} anos: NÃO VOTA!') elif 16 <= idade < 18 or idade > 65: return(f'Com {idade} anos: VOTO OPCIONAL!') else: return(f'Com {idade} anos: VOTO OBRIGATÓRI...
27.125
62
0.610599
59
434
4.491525
0.610169
0.079245
0.113208
0.169811
0.245283
0.173585
0
0
0
0
0
0.030769
0.251152
434
15
63
28.933333
0.784615
0.041475
0
0
0
0
0.289157
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.166667
0.166667
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aeb604dc2ed5b225c469ae19a1c61c7d169a04a0
286
py
Python
practice/practice49.py
tomhaoye/LetsPython
3c5f66d2e672067ed9aea33c0abd6b01708734ff
[ "MIT" ]
null
null
null
practice/practice49.py
tomhaoye/LetsPython
3c5f66d2e672067ed9aea33c0abd6b01708734ff
[ "MIT" ]
null
null
null
practice/practice49.py
tomhaoye/LetsPython
3c5f66d2e672067ed9aea33c0abd6b01708734ff
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- MAXIMUM = lambda x, y: (x > y) * x + (x < y) * y MINIMUM = lambda x, y: (x > y) * y + (x < y) * x if __name__ == '__main__': a = 10 b = 20 print 'the large one is %d' % MAXIMUM(a, b) print 'the lower on is %d' % MINIMUM(a, b)
23.833333
48
0.5
51
286
2.647059
0.509804
0.088889
0.088889
0.133333
0.148148
0
0
0
0
0
0
0.024752
0.293706
286
11
49
26
0.643564
0.132867
0
0
0
0
0.182927
0
0
0
0
0
0
0
null
null
0
0
null
null
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
aeb685a78f6b072d7a30840c4ae1c157e0bc1c05
2,180
py
Python
questions/max-area-of-island/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
141
2017-12-12T21:45:53.000Z
2022-03-25T07:03:39.000Z
questions/max-area-of-island/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
32
2015-10-05T14:09:52.000Z
2021-05-30T10:28:41.000Z
questions/max-area-of-island/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
56
2015-09-30T05:23:28.000Z
2022-03-08T07:57:11.000Z
""" Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) You may assume all four edges of the grid are surrounded by water. Find the maximum area of an island in the given 2D array. (If there is no island, the maximum area i...
36.333333
214
0.473394
402
2,180
2.562189
0.223881
0.135922
0.160194
0.174757
0.36699
0.363107
0.308738
0.303884
0.3
0.247573
0
0.116618
0.370642
2,180
59
215
36.949153
0.634111
0.395413
0
0.151515
0
0
0
0
0
0
0
0
0
1
0.060606
false
0
0
0
0.151515
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aecc8b501a0515b2e157f1c5050d1c38949c0884
528
py
Python
tests.py
anhdhbn/Freenom-dns-updater
ec928755d7e18efa00bcc9aed20ad0b3eb093239
[ "MIT" ]
160
2016-02-27T15:20:24.000Z
2022-03-13T17:27:49.000Z
tests.py
anhdhbn/Freenom-dns-updater
ec928755d7e18efa00bcc9aed20ad0b3eb093239
[ "MIT" ]
31
2016-02-12T21:25:35.000Z
2022-03-03T19:24:59.000Z
tests.py
anhdhbn/Freenom-dns-updater
ec928755d7e18efa00bcc9aed20ad0b3eb093239
[ "MIT" ]
56
2016-03-05T14:39:21.000Z
2022-02-11T01:21:15.000Z
import os import sys import glob import unittest if __name__ == '__main__': test_files = glob.glob(os.path.join("freenom_dns_updater", 'test', 'test_*.py')) module_strings = [test_file[0:len(test_file)-3].replace(os.sep, '.') for test_file in test_files] suites = [unittest.defaultTestLoader.loadTestsFromNa...
40.615385
102
0.736742
72
528
5.097222
0.527778
0.108992
0.059946
0.070845
0
0
0
0
0
0
0
0.006608
0.140152
528
13
103
40.615385
0.801762
0
0
0
0
0
0.077505
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
aed1ed291fcfed51fe611aa6409410b0f7333c54
2,255
py
Python
mod/award_link_file.py
lokal-profil/isfdb_site
0ce20d6347849926d4eda961ea9249c31519eea5
[ "BSD-3-Clause" ]
null
null
null
mod/award_link_file.py
lokal-profil/isfdb_site
0ce20d6347849926d4eda961ea9249c31519eea5
[ "BSD-3-Clause" ]
null
null
null
mod/award_link_file.py
lokal-profil/isfdb_site
0ce20d6347849926d4eda961ea9249c31519eea5
[ "BSD-3-Clause" ]
null
null
null
#!_PYTHONLOC # # (C) COPYRIGHT 2004-2021 Ahasuerus and Klaus Elsbernd # ALL RIGHTS RESERVED # # The copyright notice above does not evidence any actual or # intended publication of such source code. # # Version: $Revision$ # Date: $Date$ import cgi import sys import MySQLdb import string...
23.736842
97
0.630599
274
2,255
5.069343
0.405109
0.060475
0.034557
0.040317
0.059035
0.059035
0.059035
0.059035
0.059035
0.059035
0
0.015394
0.250998
2,255
94
98
23.989362
0.806986
0.109978
0
0.177419
0
0
0.192288
0.011017
0
0
0
0
0
0
null
null
0
0.145161
null
null
0.177419
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
aed44ccb6044b40c2096ce329136474d2ed63480
1,188
py
Python
backend/api/v1/firstnations/schema.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
backend/api/v1/firstnations/schema.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
backend/api/v1/firstnations/schema.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
""" API data models for First Nations communities, treaty areas and treaty lands. These are external facing data models/schemas that users see. """ from typing import Optional, List from pydantic import BaseModel, Schema class Community(BaseModel): """ model for displaying nearby communities """ dist...
21.6
104
0.70202
145
1,188
5.593103
0.4
0.067818
0.062885
0.062885
0.35635
0.35635
0.35635
0.319359
0.319359
0.319359
0
0
0.232323
1,188
54
105
22
0.889254
0.287879
0
0.586207
0
0
0
0
0
0
0
0
0
1
0
false
0
0.068966
0
0.896552
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
aed7b93d12fd388f1bd7b52d83825db88dcec011
6,732
py
Python
plus_factory.py
dlb123/pipebend-caculate
a548e19720fef2f332b0266f9c3722e57fca8713
[ "MIT" ]
null
null
null
plus_factory.py
dlb123/pipebend-caculate
a548e19720fef2f332b0266f9c3722e57fca8713
[ "MIT" ]
null
null
null
plus_factory.py
dlb123/pipebend-caculate
a548e19720fef2f332b0266f9c3722e57fca8713
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'plus_factory.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 impo...
56.571429
107
0.713755
699
6,732
6.723891
0.194564
0.144681
0.010213
0.051064
0.360851
0.226383
0.131489
0
0
0
0
0.043067
0.182561
6,732
119
108
56.571429
0.811012
0.048574
0
0
1
0
0.064023
0.003504
0
0
0
0
0
1
0.019048
false
0
0.009524
0
0.038095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aee252d3770d2bf34fc67f6dab401af0a528ff7e
3,756
py
Python
3rdParty/pin/pin-2.13-61206-msvc10-windows/source/tools/Utils/installer.py
FXTi/peachfuzz-code
7ec04adb11f001b06ffb2b1415cc7723101486d3
[ "MIT" ]
10
2017-06-18T19:40:23.000Z
2022-03-09T08:09:44.000Z
3rdParty/pin/pin-2.13-61206-msvc10-windows/source/tools/Utils/installer.py
FXTi/peachfuzz-code
7ec04adb11f001b06ffb2b1415cc7723101486d3
[ "MIT" ]
2
2019-07-01T12:39:41.000Z
2020-11-09T11:40:54.000Z
3rdParty/pin/pin-2.13-61206-msvc10-windows/source/tools/Utils/installer.py
FXTi/peachfuzz-code
7ec04adb11f001b06ffb2b1415cc7723101486d3
[ "MIT" ]
11
2016-07-01T02:21:06.000Z
2020-11-23T08:29:22.000Z
#!/usr/bin/python import os import sys import subprocess import shlex import glob import shutil import logging def info(msg): logging.info(msg) def debug(msg): logging.debug(msg) def warn(msg): logging.warning(msg) def flatten(lst): """ Returns a list containing the items found in sublists of lst....
33.535714
138
0.611022
494
3,756
4.47166
0.311741
0.036215
0.027162
0.013581
0.139882
0.080127
0.019013
0
0
0
0
0.002531
0.263578
3,756
111
139
33.837838
0.796095
0.00426
0
0.059524
0
0.02381
0.264733
0.008855
0
0
0
0
0
0
null
null
0
0.083333
null
null
0.011905
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
aef0155e4bd43dac69b57cc9d6fb5793de2b1b49
2,380
py
Python
16926.py
WaiNaat/BOJ-Python
3365ef090c7dcf6e6a598fea0b25c416a5a3e01b
[ "MIT" ]
null
null
null
16926.py
WaiNaat/BOJ-Python
3365ef090c7dcf6e6a598fea0b25c416a5a3e01b
[ "MIT" ]
null
null
null
16926.py
WaiNaat/BOJ-Python
3365ef090c7dcf6e6a598fea0b25c416a5a3e01b
[ "MIT" ]
null
null
null
import sys input = sys.stdin.readline # functions def get_square(r, c, row, col): ''' 주어진 좌표가 어떤 사각형에 위치해 있는지 계산 반환값은 해당 사각형의 시작행번호, 시작열번호, 끝행번호, 끝열번호. ''' row -= 1 col -= 1 i = 0 while True: if ((r == i or r == row) and i <= c <= col) \ or ((c == i or c == col) and...
26.153846
71
0.483613
348
2,380
3.140805
0.267241
0.2086
0.091491
0.029277
0.414456
0.296432
0.219579
0.184812
0.064044
0.064044
0
0.012712
0.405042
2,380
91
72
26.153846
0.759181
0.092437
0
0.210526
0
0
0
0
0
0
0
0
0
1
0.035088
false
0
0.017544
0
0.087719
0.017544
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aef820355046a4803acd7a75ad9e3731db65a238
7,671
py
Python
troposphere/wafregional.py
compose-x/troposphere
9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4
[ "BSD-2-Clause" ]
null
null
null
troposphere/wafregional.py
compose-x/troposphere
9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4
[ "BSD-2-Clause" ]
null
null
null
troposphere/wafregional.py
compose-x/troposphere
9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2012-2022, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. # # *** Do not modify - this file is autogenerated *** from . import AWSObject, AWSProperty, PropsDictType from .validators import boolean, integer from .validators.wafregional import validate_waf_action...
27.693141
171
0.659758
672
7,671
7.443452
0.145833
0.043383
0.046182
0.071371
0.508796
0.40024
0.373451
0.373451
0.373451
0.373451
0
0.001606
0.188241
7,671
276
172
27.793478
0.80167
0.380915
0
0.366412
1
0
0.193541
0.079494
0
0
0
0
0
1
0
false
0
0.022901
0
0.427481
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4e07aae04b48816df9b9ec4ed208675854d38c5b
528
py
Python
PMIa/2015/KOLOV_A_A/task_6_14.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2015/KOLOV_A_A/task_6_14.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2015/KOLOV_A_A/task_6_14.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 6. Вариант 14. # оздайте игру, в которой компьютер загадывает имя одного из трех официальных талисманов зимних Олимпийских игр 2014 года в Сочи, а игрок должен его угадать. # Kolov A.A # 25.05.2016 import random mascots = ['Леопард','Белый Мишка','Зайка'] progSel = mascots[random.randint(0,2)] userSel = inp...
35.2
157
0.744318
78
528
5.051282
0.769231
0.040609
0
0
0
0
0
0
0
0
0
0.037862
0.149621
528
15
158
35.2
0.837416
0.375
0
0
0
0
0.455385
0
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4e0c451564f29b291f9b5430760cab9facba7a34
5,671
py
Python
pi_camera.py
madi171/raspberry-pi
93bd3076ccaeb64dff03cb0bd1bcf234dceb4e44
[ "Apache-2.0" ]
1
2018-08-21T09:44:05.000Z
2018-08-21T09:44:05.000Z
pi_camera.py
madi171/raspberry-pi
93bd3076ccaeb64dff03cb0bd1bcf234dceb4e44
[ "Apache-2.0" ]
null
null
null
pi_camera.py
madi171/raspberry-pi
93bd3076ccaeb64dff03cb0bd1bcf234dceb4e44
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 ''' Raspberry Pi Car Demo Series ''' import os import cv2 import time import numpy as np import RPi.GPIO as GPIO from dnn_model import DNNModel """ PiCameraClassication A demo for pi-car following object detected by DNN model """ class PiCameraClassication: def __init__(self): se...
28.933673
89
0.571504
730
5,671
4.335616
0.230137
0.126382
0.176935
0.090995
0.470142
0.41643
0.394945
0.394945
0.332701
0.31564
0
0.032711
0.309998
5,671
195
90
29.082051
0.776131
0.041439
0
0.345865
0
0
0.048387
0.004696
0
0
0
0
0
0
null
null
0.015038
0.045113
null
null
0.090226
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4e103052d390fafca16666159feb1cde2b98bed7
9,781
py
Python
bin/ngram_train_new.py
PatrickBrown1/euphony
edf7d5e41fea8e994801f9ffd68c1e29015c9cb1
[ "BSD-4-Clause" ]
null
null
null
bin/ngram_train_new.py
PatrickBrown1/euphony
edf7d5e41fea8e994801f9ffd68c1e29015c9cb1
[ "BSD-4-Clause" ]
null
null
null
bin/ngram_train_new.py
PatrickBrown1/euphony
edf7d5e41fea8e994801f9ffd68c1e29015c9cb1
[ "BSD-4-Clause" ]
null
null
null
import re import options from utils import basetypes import sys import collections from enum import IntEnum from exprs import exprs from exprs import exprtypes import math import heapq import shlex import functools from core import grammars from enumerators import enumerators from parsers import parser from semantics i...
37.190114
186
0.593395
1,211
9,781
4.554088
0.223782
0.065277
0.033001
0.021759
0.219764
0.189665
0.180961
0.173708
0.131278
0.122031
0
0.008241
0.292813
9,781
263
187
37.190114
0.78907
0.314181
0
0.067416
0
0
0.042206
0
0
0
0
0
0
1
0.011236
false
0.011236
0.325843
0
0.337079
0.067416
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4e1186c02158a42ed87bb49e7afc55ba1125850a
2,306
py
Python
app/tests/test_register.py
jaisenbe58r/SaasFastApi
f6efd59722f1d0ab171bd6aefaf5198363348268
[ "MIT" ]
42
2019-12-27T00:30:57.000Z
2022-03-27T02:39:46.000Z
app/tests/test_register.py
jaisenbe58r/SaasFastApi
f6efd59722f1d0ab171bd6aefaf5198363348268
[ "MIT" ]
3
2020-05-15T01:51:51.000Z
2021-04-27T01:07:47.000Z
app/tests/test_register.py
jaisenbe58r/SaasFastApi
f6efd59722f1d0ab171bd6aefaf5198363348268
[ "MIT" ]
12
2020-03-11T03:16:30.000Z
2021-12-06T08:01:06.000Z
import responses from unittest.mock import patch from app.tests.conftests import TestBase from app.models.account import Account, EmailAddress from app.models.tenant import Tenant from app.controllers.account import ( create_token_from_id, verify_email_address, ) class RegisterTestCase(TestBase): @patch(...
34.939394
85
0.625325
265
2,306
5.320755
0.396226
0.019858
0.051064
0.059574
0.380851
0.251064
0.222695
0.222695
0.171631
0.171631
0
0.016979
0.259324
2,306
65
86
35.476923
0.808548
0.101474
0
0.12
0
0
0.18635
0.084221
0
0
0
0
0.18
1
0.02
false
0.06
0.12
0
0.16
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4e154e6f51d523620328d69a29241e01e6312788
406
py
Python
setup.py
zhengpingzhou/pymoka
7ad4ee3eb97e656ade7b31ff4400db633854712a
[ "MIT" ]
2
2020-09-13T08:15:47.000Z
2021-02-19T07:29:44.000Z
setup.py
zhengpingzhou/pymoka
7ad4ee3eb97e656ade7b31ff4400db633854712a
[ "MIT" ]
null
null
null
setup.py
zhengpingzhou/pymoka
7ad4ee3eb97e656ade7b31ff4400db633854712a
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='moka', version='1.0', description='A useful module', author='Zhengping Zhou', author_email='zpzhou@stanford.edu', packages=find_packages(), install_requires=['numpy', 'opencv-python', 'matplotlib', 'torch', 'visdom', 'scipy', 'scikit-learn'...
33.833333
187
0.682266
45
406
6.066667
0.888889
0.087912
0
0
0
0
0
0
0
0
0
0.00565
0.128079
406
12
188
33.833333
0.765537
0
0
0
0
0
0.405405
0
0
0
0
0
0
1
0
true
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
4e18f4a54069c8cf1f2111df1c3a6d4387a9a0f1
268
py
Python
src/scripts/__init__.py
anku94/themis_tritonsort
68fd3e2f1c0b2947e187151a2e9717f6b9b0ed0d
[ "BSD-3-Clause" ]
11
2015-12-14T05:35:17.000Z
2021-11-08T22:02:32.000Z
src/scripts/__init__.py
anku94/themis_tritonsort
68fd3e2f1c0b2947e187151a2e9717f6b9b0ed0d
[ "BSD-3-Clause" ]
null
null
null
src/scripts/__init__.py
anku94/themis_tritonsort
68fd3e2f1c0b2947e187151a2e9717f6b9b0ed0d
[ "BSD-3-Clause" ]
8
2015-12-22T19:31:16.000Z
2020-12-15T12:09:00.000Z
#!/usr/bin/python import os PARENT_PATH = os.path.abspath(os.path.dirname(__file__)) # Make every directory within this directory a sub-package of this package __all__ = [x for x in os.listdir(PARENT_PATH) if os.path.isdir(os.path.join(PARENT_PATH, x))]
26.8
74
0.727612
45
268
4.088889
0.6
0.130435
0
0
0
0
0
0
0
0
0
0
0.156716
268
9
75
29.777778
0.814159
0.33209
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4e1a74d4cfbe751729bb341902e21fcc6875b983
8,950
py
Python
tests/test_dstatic.py
tech-chad/digitalstatic
8b5e4e093da5b97204536d88b00e3edefed11dfc
[ "MIT" ]
null
null
null
tests/test_dstatic.py
tech-chad/digitalstatic
8b5e4e093da5b97204536d88b00e3edefed11dfc
[ "MIT" ]
null
null
null
tests/test_dstatic.py
tech-chad/digitalstatic
8b5e4e093da5b97204536d88b00e3edefed11dfc
[ "MIT" ]
null
null
null
""" Test file for dstatic.py script. """ from unittest import mock import pytest import time from hecate import Runner from dstatic import dstatic def dstatic_cmd(*args): options = [a for a in args] return ["python3", "dstatic/dstatic.py"] + options @pytest.mark.parametrize("test_values, expected_results...
28.778135
79
0.609385
1,281
8,950
4.026542
0.124122
0.054672
0.054285
0.093059
0.75223
0.709965
0.678945
0.655487
0.628344
0.560489
0
0.027979
0.229274
8,950
310
80
28.870968
0.719774
0.057207
0
0.587444
0
0
0.079711
0
0
0
0
0
0.044843
1
0.130045
false
0
0.022422
0
0.156951
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4e1f27fbdeb38a0f844e00f0b585819d01d7b535
476
py
Python
setup.py
ksehic/LassoBench
4cf37c0d9c71d1ae5ef5a740069494256e48228e
[ "MIT" ]
6
2021-09-16T17:56:20.000Z
2022-03-15T12:47:49.000Z
setup.py
ksehic/LassoBench
4cf37c0d9c71d1ae5ef5a740069494256e48228e
[ "MIT" ]
null
null
null
setup.py
ksehic/LassoBench
4cf37c0d9c71d1ae5ef5a740069494256e48228e
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='LassoBench', packages=['LassoBench'], install_requires=[ 'sparse-ho @ https://github.com/QB3/sparse-ho/archive/master.zip', 'celer', 'pyDOE', 'libsvmdata', 'ax-platform', 'matplotlib>=2.0.0', 'nu...
23.8
76
0.470588
53
476
4.207547
0.754717
0.071749
0
0
0
0
0
0
0
0
0
0.070064
0.340336
476
19
77
25.052632
0.640127
0
0
0
0
0.058824
0.434874
0
0
0
0
0
0
1
0
true
0
0.058824
0
0.058824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
4e21d89237037e402129d4562507f19748e9074e
412
py
Python
setup.py
lucgiffon/propol
d531bef8cc96e3e80f32961edcf98d42f697d3e6
[ "MIT" ]
null
null
null
setup.py
lucgiffon/propol
d531bef8cc96e3e80f32961edcf98d42f697d3e6
[ "MIT" ]
null
null
null
setup.py
lucgiffon/propol
d531bef8cc96e3e80f32961edcf98d42f697d3e6
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Try to make projection of political parties or people in avector space in order to enable visualisation.', author='Luc Giffon', license='MIT', entry_points={ 'conso...
25.75
123
0.650485
48
412
5.5
0.833333
0.090909
0
0
0
0
0
0
0
0
0
0.009524
0.235437
412
15
124
27.466667
0.828571
0
0
0
0
0
0.43932
0.099515
0
0
0
0
0
1
0
true
0
0.071429
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
4e23cc9c7359efc753ac1c897a3db8b8b2488e28
569
py
Python
logical_rules/tests/testTags.py
AASHE/django-logical-rules
df313090843b4c6f99bb0f84434ac830c62de895
[ "BSD-2-Clause" ]
null
null
null
logical_rules/tests/testTags.py
AASHE/django-logical-rules
df313090843b4c6f99bb0f84434ac830c62de895
[ "BSD-2-Clause" ]
1
2019-04-10T14:53:16.000Z
2020-09-16T13:03:35.000Z
logical_rules/tests/testTags.py
AASHE/django-logical-rules
df313090843b4c6f99bb0f84434ac830c62de895
[ "BSD-2-Clause" ]
null
null
null
from django.test import TestCase from django.template import Template, Context class TemplateTagTest(TestCase): def setUp(self): pass def test_tag(self): content = ( "{% load logical_rules_tags %}" "This is a {% testrule test_is_pizza 'pizza' %}test{% e...
29.947368
90
0.565905
60
569
5.25
0.516667
0.063492
0.044444
0.120635
0
0
0
0
0
0
0
0
0.319859
569
18
91
31.611111
0.813953
0
0
0
0
0
0.31338
0
0
0
0
0
0.071429
1
0.142857
false
0.071429
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4e2f7b9a9d07f7de500b15954aae56f5e6e229b4
1,966
py
Python
database.py
PAWTOSKI/RecoBooks
950ad29482544a3c41f78c26b15e9a7efa1e5ea1
[ "Apache-2.0" ]
null
null
null
database.py
PAWTOSKI/RecoBooks
950ad29482544a3c41f78c26b15e9a7efa1e5ea1
[ "Apache-2.0" ]
3
2021-10-01T14:01:24.000Z
2021-10-03T06:47:33.000Z
database.py
PAWTOSKI/RecoBooks
950ad29482544a3c41f78c26b15e9a7efa1e5ea1
[ "Apache-2.0" ]
null
null
null
## coding=utf-8 from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session, sessionmaker from sqlalchemy.ext.declarative import declarative_base import json """ Ce script se permet d'établir une connexion à la base de données. Il est utilisé les infos de connexion enregistré dans ...
33.322034
123
0.651577
243
1,966
5.18107
0.415638
0.06672
0.041303
0.041303
0.538523
0.538523
0.538523
0.379666
0.379666
0.379666
0
0.004537
0.215158
1,966
58
124
33.896552
0.811406
0.193795
0
0
0
0
0.072231
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4e3484d1a09932e85e98d5aec5222c695cee1e8f
1,415
py
Python
mdGenerate.py
KumaTea/MarkovZHBot
0a7b079f4ecaaef3b0f6b9773ac8e189c7bc91b9
[ "MIT" ]
2
2020-05-09T03:47:21.000Z
2021-06-18T04:23:43.000Z
mdGenerate.py
KumaTea/MarkovZHBot
0a7b079f4ecaaef3b0f6b9773ac8e189c7bc91b9
[ "MIT" ]
1
2019-12-13T14:24:58.000Z
2020-02-04T08:24:12.000Z
old/mdGenerate.py
oudoubleyang/MarkovZHBot
1fb2ea37ea9689412826971c7cc873a9c28237b4
[ "MIT" ]
null
null
null
from mdMarkov import gen_msg from brainInfo import sentences_per_request, keyword_retry try: from localDB import chat except ImportError: from emptyLocalDB import chat def generate(data): """ data = { 'chat_id': chat_id, 'user_id': user_id, 'keyword': keyword, } """ ...
26.203704
58
0.573145
162
1,415
4.753086
0.259259
0.109091
0.041558
0.07013
0.215584
0.174026
0.088312
0.088312
0
0
0
0
0.332862
1,415
53
59
26.698113
0.815678
0.080565
0
0.102564
1
0
0.102443
0
0
0
0
0
0
1
0.025641
false
0
0.128205
0
0.179487
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4e3532b2f621c64dd3395ab27cfa45341a29565b
582
py
Python
lmdb/home/migrations/0005_movie_genre.py
huzaifafaruqui/Movies-Website
8d7f66012b5b508a627aa6baf90ba60e698cd0b4
[ "MIT" ]
11
2016-09-21T17:51:53.000Z
2021-12-26T06:24:44.000Z
lmdb/home/migrations/0005_movie_genre.py
huzaifafaruqui/Movies-Website
8d7f66012b5b508a627aa6baf90ba60e698cd0b4
[ "MIT" ]
3
2016-09-17T07:03:31.000Z
2019-01-29T12:03:48.000Z
lmdb/home/migrations/0005_movie_genre.py
huzaifafaruqui/Movies-Website
8d7f66012b5b508a627aa6baf90ba60e698cd0b4
[ "MIT" ]
3
2016-09-11T12:16:03.000Z
2019-09-03T15:31:28.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-11-01 05:40 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0004_auto_20161031_1245'), ] operations = [ migrations.AddField( ...
27.714286
191
0.604811
62
582
5.516129
0.774194
0
0
0
0
0
0
0
0
0
0
0.073171
0.225086
582
20
192
29.1
0.685144
0.111684
0
0
1
0
0.206226
0.044747
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4e3b14ef48b36010ff21d4077ac9bd499db8c776
672
py
Python
website/core/settings/prod.py
ava-project/ava-website
bf08338fb6dc35b8f1d7a816e28e873f9a5920e5
[ "MIT" ]
5
2016-09-22T18:40:07.000Z
2017-04-27T19:48:25.000Z
website/core/settings/prod.py
ava-project/ava-website
bf08338fb6dc35b8f1d7a816e28e873f9a5920e5
[ "MIT" ]
11
2017-10-16T13:16:12.000Z
2018-02-12T13:30:23.000Z
website/core/settings/prod.py
ava-project/ava-website
bf08338fb6dc35b8f1d7a816e28e873f9a5920e5
[ "MIT" ]
null
null
null
import ast from .common import * DEBUG = False ALLOWED_HOSTS = ['www.ava-project.com', 'ava-project.com', '163.5.84.224'] # email configuration EMAIL_HOST = env.get('EMAIL_HOST', '') EMAIL_PORT = int(env.get('EMAIL_PORT', 0)) EMAIL_HOST_USER = env.get('EMAIL_HOST_USER', '') EMAIL_HOST_PASSWORD = env.get('EMAIL_HOST...
26.88
74
0.739583
102
672
4.598039
0.490196
0.115139
0.117271
0.095949
0
0
0
0
0
0
0
0.01675
0.111607
672
24
75
28
0.768844
0.081845
0
0
0
0
0.2969
0.091354
0
0
0
0
0
1
0
false
0.066667
0.133333
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4e3cbe18e999bc87dbb534874e440b45fa9b8e8c
1,907
py
Python
scripts/update_localizations.py
TheSoftwareFactory/lokki-wp8
c132e9244a269f87e61f9846dd2aefa6afe4a90d
[ "Apache-2.0" ]
null
null
null
scripts/update_localizations.py
TheSoftwareFactory/lokki-wp8
c132e9244a269f87e61f9846dd2aefa6afe4a90d
[ "Apache-2.0" ]
null
null
null
scripts/update_localizations.py
TheSoftwareFactory/lokki-wp8
c132e9244a269f87e61f9846dd2aefa6afe4a90d
[ "Apache-2.0" ]
1
2018-03-21T01:19:25.000Z
2018-03-21T01:19:25.000Z
""" Copyright (c) 2014-2015 F-Secure See LICENSE for details """ #! coding: utf-8 """ Master python for running localization scripts and commiting & pushing them if everything successfull. """ #import sys import os from os.path import join, dirname, abspath, exists from git import * THISDIR = dirname(abspat...
25.77027
103
0.613005
228
1,907
5
0.460526
0.052632
0.035088
0.033333
0
0
0
0
0
0
0
0.006652
0.290509
1,907
74
104
25.77027
0.83592
0.067121
0
0.057143
0
0
0.1491
0.023993
0
0
0
0
0
0
null
null
0
0.085714
null
null
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
1
0
0
0
0
0
0
0
0
1
4e3df48ea0c52ef651f52a91e4770aae73787511
1,411
py
Python
tests/__init__.py
IsmailAlaouiAbdellaoui/see-rnn
2032d6e0ec0e90fc30cb573e206210ba158feb16
[ "MIT" ]
null
null
null
tests/__init__.py
IsmailAlaouiAbdellaoui/see-rnn
2032d6e0ec0e90fc30cb573e206210ba158feb16
[ "MIT" ]
null
null
null
tests/__init__.py
IsmailAlaouiAbdellaoui/see-rnn
2032d6e0ec0e90fc30cb573e206210ba158feb16
[ "MIT" ]
null
null
null
import os import tempfile import contextlib import shutil import matplotlib import tensorflow as tf if not os.environ.get('IS_MAIN', '0') == '1': matplotlib.use('template') # suppress figures for spyder unit testing TF_KERAS = bool(os.environ.get("TF_KERAS", '0') == '1') USING_GPU = bool(tf.config.experimental.l...
31.355556
80
0.717222
188
1,411
5.324468
0.37234
0.065934
0.101898
0.062937
0.45954
0.281718
0.195804
0.195804
0.195804
0.08991
0
0.011474
0.197023
1,411
44
81
32.068182
0.872021
0.028349
0
0.205128
0
0
0.021914
0
0
0
0
0
0
1
0.025641
false
0
0.461538
0
0.487179
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9d6248aac789d58a726551cfde3116ad239fbc1d
235
py
Python
mall/apps/areas/urls.py
codedaliu/02meiduo
ab3b7bc7b8cd1b5813d31a456eb844d6ab5ef6fd
[ "Apache-2.0" ]
null
null
null
mall/apps/areas/urls.py
codedaliu/02meiduo
ab3b7bc7b8cd1b5813d31a456eb844d6ab5ef6fd
[ "Apache-2.0" ]
null
null
null
mall/apps/areas/urls.py
codedaliu/02meiduo
ab3b7bc7b8cd1b5813d31a456eb844d6ab5ef6fd
[ "Apache-2.0" ]
null
null
null
from rest_framework.routers import DefaultRouter from areas.views import AreaModelViewSet urlpatterns=[ ] router = DefaultRouter() #注册路由 router.register(r'infos',AreaModelViewSet,base_name='area') #添加到 urlpatterns += router.urls
14.6875
59
0.795745
27
235
6.851852
0.740741
0.183784
0
0
0
0
0
0
0
0
0
0
0.106383
235
15
60
15.666667
0.880952
0.029787
0
0
0
0
0.040179
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9d69f5a033e807d2e253e248e3031d43fa8ad66f
300
py
Python
Lecture 2/StringReplaceDemo.py
AtharvaJoshi21/PythonPOC
6b95eb5bab7b28e9811e43b39e863faf2ee7565b
[ "MIT" ]
1
2019-04-27T15:37:04.000Z
2019-04-27T15:37:04.000Z
Lecture 2/StringReplaceDemo.py
AtharvaJoshi21/PythonPOC
6b95eb5bab7b28e9811e43b39e863faf2ee7565b
[ "MIT" ]
null
null
null
Lecture 2/StringReplaceDemo.py
AtharvaJoshi21/PythonPOC
6b95eb5bab7b28e9811e43b39e863faf2ee7565b
[ "MIT" ]
1
2020-08-14T06:57:08.000Z
2020-08-14T06:57:08.000Z
#WAP to accept a string from user and replace all occurrances of first character except for the first character. name = input("Please enter a string: ") replaceToken = input("Please enter token to replace: ") print (name) name2 = name[0] + name[1:].replace(name[0], replaceToken) print (name2)
42.857143
113
0.73
45
300
4.866667
0.6
0.063927
0.146119
0
0
0
0
0
0
0
0
0.02
0.166667
300
7
114
42.857143
0.856
0.37
0
0
0
0
0.295082
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9d6e54c9acf9687cb0b1f2fc1ad5944de898048d
782
py
Python
mopidy_sidplay/__init__.py
hitzemann/mopidy-sidplay
20c0a899e79cef3a439f3c5064b481475d30b974
[ "Apache-2.0" ]
null
null
null
mopidy_sidplay/__init__.py
hitzemann/mopidy-sidplay
20c0a899e79cef3a439f3c5064b481475d30b974
[ "Apache-2.0" ]
null
null
null
mopidy_sidplay/__init__.py
hitzemann/mopidy-sidplay
20c0a899e79cef3a439f3c5064b481475d30b974
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import logging import os from mopidy import config, ext __version__ = '0.0.1' # TODO: If you need to log, use loggers named after the current Python module logger = logging.getLogger(__name__) class Extension(ext.Extension): dist_name = 'Mopidy-Sidplay' ext_name =...
23.69697
77
0.700767
101
782
5.118812
0.554455
0.023211
0.058027
0
0
0
0
0
0
0
0
0.004878
0.213555
782
32
78
24.4375
0.835772
0.134271
0
0
0
0
0.060831
0
0
0
0
0.03125
0
1
0.157895
false
0
0.263158
0
0.736842
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
9d8014828ff52285cafbddddcefb86f9e387ac5d
762
py
Python
forms_builder/utils.py
peopledoc/django-forms-builder
4be20580bbc19d061ae269930b8cf4b9c81dcec0
[ "BSD-2-Clause" ]
null
null
null
forms_builder/utils.py
peopledoc/django-forms-builder
4be20580bbc19d061ae269930b8cf4b9c81dcec0
[ "BSD-2-Clause" ]
null
null
null
forms_builder/utils.py
peopledoc/django-forms-builder
4be20580bbc19d061ae269930b8cf4b9c81dcec0
[ "BSD-2-Clause" ]
null
null
null
from django.shortcuts import get_object_or_404 from forms_builder.models import BuiltForm, BuiltFormSubmission, STATUS_PUBLIC def form_builder_optional_fields(): """ return the field name / verbose name pairs for all fields in BuiltFormSubmission that are considered optional, eg blank=True """ me...
29.307692
79
0.753281
108
762
5.12963
0.490741
0.048736
0.059567
0.075812
0
0
0
0
0
0
0
0.014263
0.171916
762
26
80
29.307692
0.863708
0.26378
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.181818
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9d82a247fd9abd0855b4c5971e14091651e331a1
195
py
Python
basicgeometrictranresizepart2.py
kostaskaragiorgos/Python-Opencv-Learning-Path
dcb861433a248ca9e2ac60d60a2f464b17c1541e
[ "MIT" ]
null
null
null
basicgeometrictranresizepart2.py
kostaskaragiorgos/Python-Opencv-Learning-Path
dcb861433a248ca9e2ac60d60a2f464b17c1541e
[ "MIT" ]
null
null
null
basicgeometrictranresizepart2.py
kostaskaragiorgos/Python-Opencv-Learning-Path
dcb861433a248ca9e2ac60d60a2f464b17c1541e
[ "MIT" ]
null
null
null
import cv2 img = cv2.imread("face.jpg") cv2.imshow("ORIGINAL",img) scl_img = cv2.resize(img,None , fx = 1 ,fy = 1/2) cv2.imshow("SCALED",scl_img) cv2.waitKey(0) cv2.destroyAllWindows()
24.375
50
0.671795
32
195
4.03125
0.59375
0.139535
0.139535
0
0
0
0
0
0
0
0
0.066265
0.148718
195
7
51
27.857143
0.710843
0
0
0
0
0
0.117021
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9d8bf6916f2f549ee8778601551c76879813d8cb
4,335
py
Python
resampler.py
StephAO/caveolae_cls
c5170fefd42457609c21e6b9199c8cf7a22bcdeb
[ "MIT" ]
null
null
null
resampler.py
StephAO/caveolae_cls
c5170fefd42457609c21e6b9199c8cf7a22bcdeb
[ "MIT" ]
null
null
null
resampler.py
StephAO/caveolae_cls
c5170fefd42457609c21e6b9199c8cf7a22bcdeb
[ "MIT" ]
null
null
null
import numpy as np import os import scipy.io as sio import shutil from sklearn.decomposition import PCA import sys from caveolae_cls.data_handler import DataHandler from caveolae_cls.pointnet.pointnet_data_handler import PointNetDataHandler def upsample(files, target_dir, num_new_samples=None): """Given a directo...
32.840909
109
0.63737
622
4,335
4.199357
0.215434
0.053599
0.04977
0.030628
0.312021
0.295559
0.207121
0.191807
0.191807
0.191807
0
0.018405
0.247982
4,335
131
110
33.091603
0.782822
0.035063
0
0.123711
0
0
0.033495
0
0
0
0
0
0.010309
0
null
null
0
0.082474
null
null
0.020619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9d9f601267db971b6d71ca973575d899e41cbf50
583
py
Python
tricycle/__init__.py
tjstum/tricycle
da67346edc9e045432f88c35d0c562d4d0d65d62
[ "Apache-2.0", "MIT" ]
19
2019-05-07T03:25:55.000Z
2022-02-06T09:54:53.000Z
tricycle/__init__.py
tjstum/tricycle
da67346edc9e045432f88c35d0c562d4d0d65d62
[ "Apache-2.0", "MIT" ]
14
2019-12-12T20:21:19.000Z
2022-01-07T17:48:10.000Z
tricycle/__init__.py
tjstum/tricycle
da67346edc9e045432f88c35d0c562d4d0d65d62
[ "Apache-2.0", "MIT" ]
4
2020-05-22T11:22:00.000Z
2021-07-09T00:09:18.000Z
from ._version import __version__ from ._rwlock import RWLock as RWLock from ._streams import ( BufferedReceiveStream as BufferedReceiveStream, TextReceiveStream as TextReceiveStream, ) from ._multi_cancel import MultiCancelScope as MultiCancelScope from ._service_nursery import open_service_nursery as open_se...
30.684211
85
0.80446
65
583
6.707692
0.476923
0.09633
0.082569
0
0
0
0
0
0
0
0
0
0.144082
583
18
86
32.388889
0.873747
0.03259
0
0
0
0
0.017794
0
0
0
0
0
0
1
0
false
0
0.428571
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
0
0
0
1
0
0
0
0
1
9da444071ae4d2be7b0719ff3080b64894939184
6,186
py
Python
functions/tradeoff_functions.py
UCLA-StarAI/HwAwareProb
972e7924616f96cdbbeeec140c191e0fb5860632
[ "Apache-2.0" ]
6
2019-10-27T22:23:34.000Z
2022-01-20T07:34:01.000Z
functions/tradeoff_functions.py
UCLA-StarAI/HwAwareProb
972e7924616f96cdbbeeec140c191e0fb5860632
[ "Apache-2.0" ]
null
null
null
functions/tradeoff_functions.py
UCLA-StarAI/HwAwareProb
972e7924616f96cdbbeeec140c191e0fb5860632
[ "Apache-2.0" ]
2
2019-10-27T22:23:39.000Z
2021-07-19T12:52:28.000Z
from functions import functions_util, inference_fcns import math, sys def cost_est(model,bits,**kwargs): content_ac = model[0] cost_add_flt={64:32,32:16,16:8,8:4} cost_mult_flt={64:120,32:25,16:5,8:1} cost_reg={64:40,32:20,16:10,8:5} cost_sram={64:200,32:100,16:50,8:25} par_num = sum([1 for...
33.437838
178
0.629001
856
6,186
4.300234
0.212617
0.031785
0.04564
0.054333
0.325998
0.314588
0.246672
0.230644
0.153219
0.153219
0
0.026304
0.274814
6,186
185
179
33.437838
0.794249
0.130941
0
0.114286
0
0
0.033601
0
0
0
0
0
0
0
null
null
0
0.019048
null
null
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9da60cc2aa0fa0cea7ab9f1f0544e298a1381473
664
py
Python
src/main/python/shabda/examples/cnn_naive_classifier/run.py
dhiraa/sabdha
f428418962dcc76f49e0a451ffc0545fda9b6b59
[ "Apache-2.0" ]
4
2018-10-26T07:00:34.000Z
2020-10-07T01:03:08.000Z
src/main/python/shabda/examples/cnn_naive_classifier/run.py
dhiraa/sabdha
f428418962dcc76f49e0a451ffc0545fda9b6b59
[ "Apache-2.0" ]
null
null
null
src/main/python/shabda/examples/cnn_naive_classifier/run.py
dhiraa/sabdha
f428418962dcc76f49e0a451ffc0545fda9b6b59
[ "Apache-2.0" ]
1
2018-10-26T07:00:38.000Z
2018-10-26T07:00:38.000Z
"""Example to run CNN naive Audio Classifier To run: $ python src/main/python/shabda/examples/cnn_naive_ccd /roor/of/shabda/lassifier/run.py --mode=train """ import importlib import sys import os import tensorflow as tf sys.path.append("src/main/python/") sys.path.append("../..") from shabda.run.experiments import ...
25.538462
100
0.75
93
664
5.215054
0.462366
0.061856
0.053608
0
0
0
0
0
0
0
0
0
0.108434
664
25
101
26.56
0.819257
0.22741
0
0
0
0
0.176238
0.041584
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9da9774751621ebcbb96148c81c525f238ee63c6
883
py
Python
src/magplan/migrations/0006_auto_20210316_1840.py
f1nnix/magplan
1bda6b53c6e96129e6634bff786b3052d04b0cef
[ "Unlicense" ]
21
2018-12-14T09:08:11.000Z
2022-01-28T14:33:24.000Z
src/magplan/migrations/0006_auto_20210316_1840.py
f1nnix/magplan
1bda6b53c6e96129e6634bff786b3052d04b0cef
[ "Unlicense" ]
20
2019-01-11T20:40:01.000Z
2022-01-30T16:01:38.000Z
src/magplan/migrations/0006_auto_20210316_1840.py
f1nnix/magplan
1bda6b53c6e96129e6634bff786b3052d04b0cef
[ "Unlicense" ]
5
2019-02-08T01:21:51.000Z
2021-11-25T17:43:04.000Z
# Generated by Django 3.1.6 on 2021-03-16 15:40 import django.contrib.sites.managers from django.db import migrations, models import django.db.models.deletion import django.db.models.manager class Migration(migrations.Migration): dependencies = [ ('sites', '0002_alter_domain_unique'), ('magplan'...
28.483871
109
0.609287
92
883
5.73913
0.554348
0.075758
0.106061
0.098485
0
0
0
0
0
0
0
0.055556
0.266138
883
30
110
29.433333
0.759259
0.050963
0
0.083333
1
0
0.113636
0.05622
0
0
0
0
0
1
0
false
0
0.166667
0
0.291667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9dab44a5af35cd33df7ff96bd42b47e2707eac2d
312
py
Python
setup.py
krippix/GustelDDNS
3aedf442356ff3d29e3ec26a0a2f773bc7337bcc
[ "MIT" ]
null
null
null
setup.py
krippix/GustelDDNS
3aedf442356ff3d29e3ec26a0a2f773bc7337bcc
[ "MIT" ]
null
null
null
setup.py
krippix/GustelDDNS
3aedf442356ff3d29e3ec26a0a2f773bc7337bcc
[ "MIT" ]
null
null
null
import setuptools setuptools.setup(name='GustelDDNS', version='0.1.0', description='', author='krippix', author_email='github@gustelgang.de', license='GPL-3', url="https://github.com/krippix/GustelDDNS", install_requires=[], packages=setuptools.find_packages() )
24
50
0.644231
33
312
6
0.757576
0
0
0
0
0
0
0
0
0
0
0.015936
0.195513
312
12
51
26
0.772908
0
0
0
0
0
0.269231
0
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
9dbadc6f6a26cf2c828ed883ea902861a11c3e3e
5,641
py
Python
unipa/BulletinBoard/BulletinBoard.py
book000/get-unipa
f92d7622ae6a33bbbdc65c019f667fadbaec2939
[ "MIT" ]
null
null
null
unipa/BulletinBoard/BulletinBoard.py
book000/get-unipa
f92d7622ae6a33bbbdc65c019f667fadbaec2939
[ "MIT" ]
32
2022-03-28T22:06:23.000Z
2022-03-30T06:41:30.000Z
unipa/BulletinBoard/BulletinBoard.py
book000/get-unipa
f92d7622ae6a33bbbdc65c019f667fadbaec2939
[ "MIT" ]
1
2022-03-29T10:56:29.000Z
2022-03-29T10:56:29.000Z
""" 掲示板 """ from unipa import Unipa, UnipaUtils from unipa.BulletinBoard.BulletinBoardItemDetails import UnipaBulletinBoardItemDetails from unipa.BulletinBoard.PublicationPeriod import UnipaPublicationPeriod class UnipaBulletinBoardItem: """ 掲示板の掲示アイテム """ def __init__(self, item_id:...
24.85022
86
0.518702
569
5,641
4.910369
0.231986
0.027559
0.023622
0.02577
0.146385
0.06514
0
0
0
0
0
0.001995
0.377947
5,641
226
87
24.960177
0.794243
0.168764
0
0.165049
0
0
0.093758
0.055514
0
0
0
0.017699
0
1
0.15534
false
0
0.029126
0.009709
0.300971
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
9dc25b883a225608319fbd98ac176d02852c8cc4
1,514
py
Python
generic_parser.py
aymanzah/class5
075728514cba09a8f84ab18007a10d03b413e79a
[ "MIT" ]
null
null
null
generic_parser.py
aymanzah/class5
075728514cba09a8f84ab18007a10d03b413e79a
[ "MIT" ]
null
null
null
generic_parser.py
aymanzah/class5
075728514cba09a8f84ab18007a10d03b413e79a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # 1.load a dataset from a file # 2."organize that file so we can access columns *or* rows of it easily # 3.compute some "summary statistics" about the dataset # 4.print those summary statistics # 1.load a dataset # 1a. accept arbitrary filename as argument # 1b. load the file #import argparse f...
22.264706
102
0.714663
253
1,514
4.217391
0.466403
0.032802
0.033739
0.039363
0.19119
0.138707
0.099344
0.099344
0.099344
0.099344
0
0.017419
0.165786
1,514
67
103
22.597015
0.827395
0.544254
0
0
0
0
0.168675
0
0
0
0
0
0.052632
1
0
false
0
0.210526
0
0.210526
0.421053
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
9dc76d0508e7212fe0f918654b384f1530818e39
1,835
py
Python
lesson3/routes/routes_simpletodo.py
gongjunhuang/web
9412f6fd7c223174fdb30f4d7a8b61a8e130e329
[ "Apache-2.0" ]
null
null
null
lesson3/routes/routes_simpletodo.py
gongjunhuang/web
9412f6fd7c223174fdb30f4d7a8b61a8e130e329
[ "Apache-2.0" ]
null
null
null
lesson3/routes/routes_simpletodo.py
gongjunhuang/web
9412f6fd7c223174fdb30f4d7a8b61a8e130e329
[ "Apache-2.0" ]
null
null
null
from utils import log from utils import template from models import Todo from . import response_with_headers def redirect(location): headers = { 'Content-Type': 'text/html', } headers['Location'] = location # 301 永久重定向 302 普通定向 # 302 状态码的含义, Location 的作用 header = response_with_header...
21.091954
63
0.608174
251
1,835
4.370518
0.290837
0.010939
0.043756
0.024613
0.270738
0.270738
0.247949
0.204193
0.204193
0.204193
0
0.024964
0.235967
1,835
86
64
21.337209
0.757489
0.142779
0
0.28
0
0.04
0.167661
0.028496
0
0
0
0.034884
0
1
0.14
false
0
0.08
0
0.36
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
9dc88a043acf63449fb7177ed2a514f839a03d6e
657
py
Python
mysite/migrations/0008_auto_20211219_2224.py
stevillis/stevillis-site
2eca768bed4cb8f9bbf737488c038e8d5b64e5f4
[ "MIT" ]
null
null
null
mysite/migrations/0008_auto_20211219_2224.py
stevillis/stevillis-site
2eca768bed4cb8f9bbf737488c038e8d5b64e5f4
[ "MIT" ]
1
2022-02-23T16:44:21.000Z
2022-02-24T18:50:23.000Z
mysite/migrations/0008_auto_20211219_2224.py
stevillis/stevillis-site
2eca768bed4cb8f9bbf737488c038e8d5b64e5f4
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-12-20 02:24 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('mysite', '0007_auto_20211219_2215'), ] operations = [ migrations.AlterModelOptions( name='course', options={'verbose_name': ...
25.269231
91
0.582953
58
657
6.448276
0.62069
0.117647
0.165775
0
0
0
0
0
0
0
0
0.066524
0.290715
657
25
92
26.28
0.736052
0.068493
0
0.368421
1
0
0.255738
0.037705
0
0
0
0
0
1
0
false
0
0.052632
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9dcab5f56ba8454abe03002b0358280239041105
2,327
py
Python
adaline_breast_cancer.py
KordianChi/Adaline_predict_cancer
9d1113f3ff019994e169ca1135f8974134b87acf
[ "MIT" ]
null
null
null
adaline_breast_cancer.py
KordianChi/Adaline_predict_cancer
9d1113f3ff019994e169ca1135f8974134b87acf
[ "MIT" ]
null
null
null
adaline_breast_cancer.py
KordianChi/Adaline_predict_cancer
9d1113f3ff019994e169ca1135f8974134b87acf
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import pandas as pd import numpy as np import matplotlib.pyplot as plt import pandas as pd from sklearn.model_selection import train_test_split %matplotlib inline #Neuron implementation class Adaline: def __init__(self, eta=0.1, epoch=50, is_ver...
25.293478
77
0.576278
327
2,327
3.920489
0.308869
0.00936
0.037442
0.037442
0.25585
0.226209
0.226209
0.226209
0.156006
0.156006
0
0.024615
0.301676
2,327
92
78
25.293478
0.764308
0.021917
0
0.181818
0
0
0.071919
0
0
0
0
0
0
0
null
null
0
0.163636
null
null
0.036364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9dd1f932af8b11b2f1fd2b010e73156e5055c0ce
18,657
py
Python
app/geobox/lib/mapproxyseed.py
omniscale/gbi-client
c8af68ede195150b2aca0516ac8e030fe4ba1f6d
[ "Apache-2.0" ]
2
2018-10-24T06:32:42.000Z
2021-01-20T02:25:05.000Z
app/geobox/lib/mapproxyseed.py
omniscale/gbi-client
c8af68ede195150b2aca0516ac8e030fe4ba1f6d
[ "Apache-2.0" ]
null
null
null
app/geobox/lib/mapproxyseed.py
omniscale/gbi-client
c8af68ede195150b2aca0516ac8e030fe4ba1f6d
[ "Apache-2.0" ]
17
2018-10-24T06:32:45.000Z
2022-02-09T13:10:54.000Z
# This file is part of the GBI project. # Copyright (C) 2012 Omniscale GmbH & Co. KG <http://omniscale.com> # # 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/licens...
35.878846
148
0.690893
2,433
18,657
5.048911
0.160707
0.022794
0.025643
0.012374
0.342559
0.305764
0.252117
0.236649
0.215077
0.187235
0
0.016913
0.204534
18,657
519
149
35.947977
0.810794
0.037466
0
0.190616
0
0.002933
0.040872
0
0
0
0
0
0
0
null
null
0.02346
0.123167
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9dd28c8149e13cf0c42a33d13b7675ea10f5ddf1
4,481
py
Python
pyhist/versioning/semantic_versioning.py
jgoodman8/pyhist
d86d19a4033d0d485db87379da38722f12beb28c
[ "Apache-2.0" ]
18
2020-06-16T17:18:47.000Z
2022-03-22T23:57:59.000Z
pyhist/versioning/semantic_versioning.py
jgoodman8/pyhist
d86d19a4033d0d485db87379da38722f12beb28c
[ "Apache-2.0" ]
1
2020-10-10T08:41:40.000Z
2020-11-05T13:20:12.000Z
pyhist/versioning/semantic_versioning.py
jgoodman8/pyhist
d86d19a4033d0d485db87379da38722f12beb28c
[ "Apache-2.0" ]
1
2020-09-24T19:31:23.000Z
2020-09-24T19:31:23.000Z
import re from typing import List from git import Commit from pyhist.history.history import History from pyhist.history.git_history import GitHistory from pyhist.versioning.commit_type import CommitType from pyhist.versioning.version import Version class SemanticVersioning: def __init__( self, git_histo...
32.708029
84
0.65588
516
4,481
5.346899
0.137597
0.188474
0.089525
0.089525
0.517216
0.443639
0.406669
0.406669
0.406669
0.345053
0
0.002416
0.261102
4,481
136
85
32.948529
0.830867
0
0
0.272727
0
0
0.006472
0.006472
0
0
0
0
0
1
0.154545
false
0.009091
0.063636
0.118182
0.354545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
9dd847440a7689f3a2011ae02f9260bb4b5ecc39
1,170
py
Python
callbacks.py
jcelis87/team18-front-end-app
574e166f91518c10b33f4bab7731f73fafa65474
[ "MIT" ]
null
null
null
callbacks.py
jcelis87/team18-front-end-app
574e166f91518c10b33f4bab7731f73fafa65474
[ "MIT" ]
null
null
null
callbacks.py
jcelis87/team18-front-end-app
574e166f91518c10b33f4bab7731f73fafa65474
[ "MIT" ]
null
null
null
from dash.dependencies import Input, Output, State import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html # main dash instance from app import app # call modules needed for callbacks from apps.pages import map, photos, eda, map_overlay, model_results, progressba...
32.5
88
0.623077
137
1,170
5.233577
0.50365
0.055788
0.100418
0
0
0
0
0
0
0
0
0.015495
0.282906
1,170
35
89
33.428571
0.839094
0.124786
0
0
0
0
0.125613
0
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9dd94b705470a426bbb3282090bc7d278b222ebf
467
py
Python
custom_components/dahua/models.py
lpdescamps/dahua
e8c93874f15b523f24dfd57b119f72bc1a2ceb5c
[ "MIT" ]
114
2021-05-26T05:08:11.000Z
2022-03-29T12:13:30.000Z
custom_components/dahua/models.py
lpdescamps/dahua
e8c93874f15b523f24dfd57b119f72bc1a2ceb5c
[ "MIT" ]
171
2021-05-25T22:51:50.000Z
2022-03-28T20:03:28.000Z
custom_components/dahua/models.py
lpdescamps/dahua
e8c93874f15b523f24dfd57b119f72bc1a2ceb5c
[ "MIT" ]
28
2021-05-26T05:08:00.000Z
2022-03-26T06:08:06.000Z
from dataclasses import dataclass, InitVar from typing import Any @dataclass(unsafe_hash=True) class CoaxialControlIOStatus: speaker: bool = False white_light: bool = False api_response: InitVar[Any] = None def __post_init__(self, api_response): if api_response is not None: self.s...
31.133333
85
0.683084
56
467
5.464286
0.553571
0.179739
0.111111
0.150327
0
0
0
0
0
0
0
0
0.199143
467
14
86
33.357143
0.818182
0
0
0
0
0
0.09636
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9de1dadd626305bbe2728d2ff9ab9462de448e2d
3,869
py
Python
jw/custom_ml.py
JoonSeongLee/dss7-coupon
b2d01fbdfce10bca56b0339fca7e7dff7a1feb4f
[ "MIT" ]
null
null
null
jw/custom_ml.py
JoonSeongLee/dss7-coupon
b2d01fbdfce10bca56b0339fca7e7dff7a1feb4f
[ "MIT" ]
null
null
null
jw/custom_ml.py
JoonSeongLee/dss7-coupon
b2d01fbdfce10bca56b0339fca7e7dff7a1feb4f
[ "MIT" ]
null
null
null
import warnings warnings.simplefilter(action='ignore', category=FutureWarning) import numpy as np import scipy as sp import pandas as pd import statsmodels.api as sm import statsmodels.formula.api as smf import statsmodels.stats.api as sms import sklearn as sk import matplotlib as mpl import matplotlib.pylab as plt imp...
33.938596
83
0.66322
586
3,869
4.215017
0.267918
0.053441
0.042105
0.021862
0.440486
0.348988
0.317409
0.292308
0.260324
0.260324
0
0.027045
0.206772
3,869
113
84
34.238938
0.777778
0.096407
0
0.341463
0
0
0.055218
0
0
0
0
0
0
1
0.04878
false
0
0.317073
0.012195
0.390244
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9de2a3360efa46bb5a8f54dfaa47dfa425939092
1,276
py
Python
examples/barstests/param-bars-mog.py
OOub/prosper
0865c1dff85a3b5d1f32a4c20d159bbe2df94ce5
[ "AFL-3.0" ]
17
2019-07-16T14:36:12.000Z
2022-01-10T10:22:04.000Z
examples/barstests/param-bars-mog.py
OOub/prosper
0865c1dff85a3b5d1f32a4c20d159bbe2df94ce5
[ "AFL-3.0" ]
2
2019-07-17T16:02:25.000Z
2019-07-17T16:04:43.000Z
examples/barstests/param-bars-mog.py
OOub/prosper
0865c1dff85a3b5d1f32a4c20d159bbe2df94ce5
[ "AFL-3.0" ]
11
2019-07-17T11:22:33.000Z
2021-09-01T07:13:17.000Z
from prosper.utils.barstest import generate_bars_dict import numpy as np # Filename for training data and ground truth parameters #data_fname = "data.h5" # if not specified, the data will be read from # 'data.h5' in the output_directory. # Number of datapoints to generate N = 20000 # E...
27.73913
81
0.691223
204
1,276
4.205882
0.45098
0.09324
0.083916
0.037296
0
0
0
0
0
0
0
0.014014
0.217085
1,276
45
82
28.355556
0.844845
0.486677
0
0
1
0
0.053375
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9decd1d1cd379c5a274bc9411f2cd5ae71014d41
1,840
py
Python
Dinos/Rex/Rex_Character_BP.Rex_Character_BP.py
cutec-chris/sce-PrimalEarth
4e7a45acffc57a455a7668af1a954004668c3085
[ "MIT" ]
null
null
null
Dinos/Rex/Rex_Character_BP.Rex_Character_BP.py
cutec-chris/sce-PrimalEarth
4e7a45acffc57a455a7668af1a954004668c3085
[ "MIT" ]
null
null
null
Dinos/Rex/Rex_Character_BP.Rex_Character_BP.py
cutec-chris/sce-PrimalEarth
4e7a45acffc57a455a7668af1a954004668c3085
[ "MIT" ]
null
null
null
import sys,sce class Rex_Character_BP(sce.Dinos): def __init__(self): super().__init__(self) name = 'Rex' blueprintPath = '/Game/PrimalEarth/Dinos/Rex/Rex_Character_BP.Rex_Character_BP' fullStatsRaw = [[1100, 0.2, 0.27, 0.5, 0], [420, 0.1, 0.1, 0, 0], [1550, 0.06, 0, 0.5, 0], [150, 0.1, 0...
131.428571
842
0.641304
258
1,840
4.51938
0.364341
0.137221
0.020583
0.06518
0.444254
0.444254
0.428816
0.428816
0.428816
0.428816
0
0.095393
0.1625
1,840
13
843
141.538462
0.661259
0
0
0
0
0
0.489674
0.044565
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.230769
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9deda58fea641aaa4eba716ccc6df28dcc19555b
759
py
Python
plans/migrations/0008_auto_20200513_1825.py
marianoeramirez/django-plans
87898634a991bc3397422a85e31a0fb419f9806c
[ "MIT" ]
null
null
null
plans/migrations/0008_auto_20200513_1825.py
marianoeramirez/django-plans
87898634a991bc3397422a85e31a0fb419f9806c
[ "MIT" ]
null
null
null
plans/migrations/0008_auto_20200513_1825.py
marianoeramirez/django-plans
87898634a991bc3397422a85e31a0fb419f9806c
[ "MIT" ]
null
null
null
# Generated by Django 2.2.12 on 2020-05-13 18:25 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('accounts', '0118_remove_userpermission_role'), ('plans', '0007_auto_20200512_0536'), ] operations = [ ...
29.192308
132
0.632411
84
759
5.583333
0.595238
0.06823
0.089552
0.140725
0.127932
0.127932
0
0
0
0
0
0.062609
0.242424
759
25
133
30.36
0.753043
0.060606
0
0.105263
1
0
0.170183
0.075949
0
0
0
0
0
1
0
false
0
0.105263
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9df7b4c986279ab44a18aa6c7c6c9cfd39ddaa10
2,956
py
Python
evolution_03/simpleRaft/states/state.py
lanzhiwang/simpleRaft
eba55c10a3f0c454ceb7ddbc7ff78d9b93315b61
[ "MIT" ]
1
2021-06-18T08:26:09.000Z
2021-06-18T08:26:09.000Z
evolution_03/simpleRaft/states/state.py
lanzhiwang/simpleRaft
eba55c10a3f0c454ceb7ddbc7ff78d9b93315b61
[ "MIT" ]
null
null
null
evolution_03/simpleRaft/states/state.py
lanzhiwang/simpleRaft
eba55c10a3f0c454ceb7ddbc7ff78d9b93315b61
[ "MIT" ]
null
null
null
import time import random import sys sys.path.insert(0, '../message') from messages.base import BaseMessage from messages.response import ResponseMessage class State(object): def set_server(self, server): self._server = server def on_message(self, message): """ AppendEntries: 0, Re...
27.37037
78
0.600474
295
2,956
5.725424
0.257627
0.047365
0.053286
0.053286
0.461812
0.44997
0.345767
0.345767
0.345767
0.345767
0
0.037128
0.30751
2,956
107
79
27.626168
0.787982
0.284168
0
0.117647
0
0
0.015467
0
0
0
0
0
0
1
0.196078
false
0.117647
0.098039
0
0.431373
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
3b050b05ab6cc8f7daa00076e10a447443d5c98a
533
py
Python
saas/portal/urls.py
ParthS28/MLfly
f87494cd55c33af096d7bcd6f778c6fe06a41174
[ "MIT" ]
1
2021-05-23T12:07:32.000Z
2021-05-23T12:07:32.000Z
saas/portal/urls.py
ParthS28/MLfly
f87494cd55c33af096d7bcd6f778c6fe06a41174
[ "MIT" ]
null
null
null
saas/portal/urls.py
ParthS28/MLfly
f87494cd55c33af096d7bcd6f778c6fe06a41174
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from django.urls import path from django.views.generic import TemplateView from django.views.generic.base import RedirectView from portal import views as portal_views app_name = 'portal' from .views import HomeView, ResultView, result, scatter, algo_result urlpatterns = [ ...
31.352941
69
0.703565
72
533
5.125
0.361111
0.108401
0.081301
0.119241
0
0
0
0
0
0
0
0
0.163227
533
17
70
31.352941
0.827354
0
0
0
0
0
0.110487
0
0
0
0
0
0
1
0
false
0
0.461538
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d17b3aa3728c0e1cae0258fb82db1db66b11475d
12,964
py
Python
Integrations/python/deephaven/KafkaTools/__init__.py
alexpeters1208/deephaven-core
37b7ed2d0721896486c11823efd6c14419fedf29
[ "MIT" ]
null
null
null
Integrations/python/deephaven/KafkaTools/__init__.py
alexpeters1208/deephaven-core
37b7ed2d0721896486c11823efd6c14419fedf29
[ "MIT" ]
null
null
null
Integrations/python/deephaven/KafkaTools/__init__.py
alexpeters1208/deephaven-core
37b7ed2d0721896486c11823efd6c14419fedf29
[ "MIT" ]
null
null
null
# -*-Python-*- # # Copyright (c) 2016-2021 Deephaven Data Labs and Patent Pending # ############################################################################## # This code is auto generated. DO NOT EDIT FILE! # Run generatePythonIntegrationStaticMethods or # "./gradlew :Generators:generatePythonInte...
39.52439
120
0.676952
1,540
12,964
5.455195
0.171429
0.031425
0.026663
0.018093
0.342578
0.272706
0.238186
0.18224
0.156291
0.107249
0
0.001502
0.229405
12,964
327
121
39.64526
0.839439
0.200555
0
0.223301
0
0
0.202151
0.016888
0
0
0
0
0
1
0.063107
false
0.063107
0.033981
0.004854
0.184466
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d18643d612c969b94069767b65f4d8537877890e
1,484
py
Python
ipynb_utils.py
crcarlson/springs
41684c780183ed302dcf70ad761873782251499f
[ "MIT" ]
null
null
null
ipynb_utils.py
crcarlson/springs
41684c780183ed302dcf70ad761873782251499f
[ "MIT" ]
null
null
null
ipynb_utils.py
crcarlson/springs
41684c780183ed302dcf70ad761873782251499f
[ "MIT" ]
1
2019-01-05T12:11:33.000Z
2019-01-05T12:11:33.000Z
# -*- coding: utf-8 -*- """ Created on Sat Feb 7 12:43:10 2015 @author: Christopher R. Carlson, crcarlson@gmail.com Helper functions for changing the display of IPython notebooks as of Feb 2015. """ def toggle_js(): """ Return javascript string which creates code-hiding behavior IPython code cell hidi...
25.152542
69
0.510108
173
1,484
4.317919
0.560694
0.042838
0.032129
0.042838
0.123159
0.123159
0.123159
0.123159
0.123159
0.123159
0
0.021459
0.371968
1,484
58
70
25.586207
0.780043
0.332884
0
0.115385
0
0
0.746187
0.138344
0
0
0
0
0
1
0.115385
false
0
0
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d18656938e661b311df22b936f8e06f8dc399fc0
515
py
Python
data_transfer/data_show.py
rechardchen123/YOLOv4_traffic_sign_detection
a7778be77c6bc1719c9b5535d6035c06dd4dcd0a
[ "Apache-2.0" ]
5
2020-08-03T09:06:48.000Z
2021-12-02T08:48:21.000Z
data_transfer/data_show.py
Since2019/tt100k_to_pascal_voc
60bd126ea94e67054d47563284505f5e1614f33f
[ "Apache-2.0" ]
1
2020-10-26T13:47:24.000Z
2020-11-03T06:53:54.000Z
data_transfer/data_show.py
Since2019/tt100k_to_pascal_voc
60bd126ea94e67054d47563284505f5e1614f33f
[ "Apache-2.0" ]
null
null
null
import json import pylab as pl import random import numpy as np import cv2 import anno_func datadir = "/home/richardchen123/Documents/data/YOLOv4/data" filedir = datadir + "/annotations.json" ids = open(datadir + "/test/ids.txt").read().splitlines() annos = json.loads(open(filedir).read()) imgid = random.sample(ids...
20.6
65
0.747573
77
515
4.909091
0.532468
0.063492
0.089947
0.126984
0
0
0
0
0
0
0
0.024123
0.114563
515
24
66
21.458333
0.804825
0
0
0
0
0
0.150391
0.091797
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d190edf5314caabbabf84b08a0aa26f9755ae769
884
py
Python
python/goldbach.py
vmiklos/vmexam
ff4ef386d3cfd84b8ed06387cbd87b119dd50448
[ "MIT" ]
1
2015-02-09T10:21:51.000Z
2015-02-09T10:21:51.000Z
python/goldbach.py
vmiklos/vmexam
ff4ef386d3cfd84b8ed06387cbd87b119dd50448
[ "MIT" ]
null
null
null
python/goldbach.py
vmiklos/vmexam
ff4ef386d3cfd84b8ed06387cbd87b119dd50448
[ "MIT" ]
null
null
null
""" Write a program which inputs a single even number (between 4 and 10,000 inclusive) and outputs a single number which is the number of different ways the input can be expressed as the sum of two primes. (http://en.wikipedia.org/wiki/Goldbach's_conjecture) """ def isprime(n): '''check if integer n is a prime''' #...
23.891892
76
0.677602
172
884
3.476744
0.459302
0.01505
0.013378
0.046823
0
0
0
0
0
0
0
0.039531
0.227376
884
36
77
24.555556
0.836018
0.237557
0
0.263158
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d19d813f703bab06619a98dd0a12f783d2d4f429
4,070
py
Python
dpatterns.py
bondgeek/bgpy
f3d0894d42ae8297f0e37364593433d8706ea90d
[ "MIT", "Unlicense" ]
null
null
null
dpatterns.py
bondgeek/bgpy
f3d0894d42ae8297f0e37364593433d8706ea90d
[ "MIT", "Unlicense" ]
null
null
null
dpatterns.py
bondgeek/bgpy
f3d0894d42ae8297f0e37364593433d8706ea90d
[ "MIT", "Unlicense" ]
null
null
null
''' Design Patterns & Utilities =========================== commonstring segregatestring Borg Singleton Record Struct Borg and Singleton adapted from: * http://code.activestate.com/recipes/66531/ with clarifications from: * http://snippets.dzone.com/posts/show/651 It is hard to quantify which approach is better. ...
24.518072
84
0.57887
497
4,070
4.521127
0.354125
0.017802
0.019582
0.016021
0.091678
0.063195
0.048954
0.048954
0.048954
0.048954
0
0.005419
0.319902
4,070
166
85
24.518072
0.806358
0.467813
0
0.275862
0
0
0.013165
0
0
0
0
0
0
1
0.206897
false
0
0
0.068966
0.482759
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
d19e85592888458e22e935607230a9d72978ee6c
1,189
py
Python
django_react/json_encoder.py
tekton/django_react
d247154bc1ef3c938749664072becb364d16d28c
[ "MIT" ]
null
null
null
django_react/json_encoder.py
tekton/django_react
d247154bc1ef3c938749664072becb364d16d28c
[ "MIT" ]
null
null
null
django_react/json_encoder.py
tekton/django_react
d247154bc1ef3c938749664072becb364d16d28c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # deprecated for now... import json from django.utils.encoding import force_unicode from django.db.models.base import ModelBase class LazyJSONEncoder(json.JSONEncoder): """ a JSONEncoder subclass that handle querysets and models objects. Add your code about how to handle your type ...
25.847826
83
0.636669
143
1,189
5.216783
0.573427
0.044236
0.037534
0
0
0
0
0
0
0
0
0.001159
0.27418
1,189
45
84
26.422222
0.863268
0.32296
0
0.272727
0
0
0.039526
0
0
0
0
0
0
1
0.090909
false
0.090909
0.136364
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d1a203c94631f7144f83d921f6cba036cfb397b7
673
py
Python
MamaNieWie/blog/migrations/0016_auto_20160304_2237.py
ntmagda93/MamaNieWieZe
47cf78556626efc1c1678f58b4f5d62f4728dd70
[ "CC-BY-3.0" ]
null
null
null
MamaNieWie/blog/migrations/0016_auto_20160304_2237.py
ntmagda93/MamaNieWieZe
47cf78556626efc1c1678f58b4f5d62f4728dd70
[ "CC-BY-3.0" ]
null
null
null
MamaNieWie/blog/migrations/0016_auto_20160304_2237.py
ntmagda93/MamaNieWieZe
47cf78556626efc1c1678f58b4f5d62f4728dd70
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-03-05 06:37 from __future__ import unicode_literals from django.db import migrations import django.db.models.deletion import filer.fields.image class Migration(migrations.Migration): dependencies = [ ('blog', '0015_entry_logo'), ] oper...
24.925926
127
0.627043
76
673
5.407895
0.618421
0.058394
0.068127
0.107056
0
0
0
0
0
0
0
0.039683
0.251114
673
26
128
25.884615
0.775794
0.099554
0
0.105263
1
0
0.094527
0
0
0
0
0
0
1
0
false
0
0.210526
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d1a523ec0cbaacfdeb0ad61116faf6f91608f7c7
13,383
py
Python
c8y_api/model/measurements.py
chisou/cumulocity-python-api
f420b8ad2ec7735484db94b70ad6f5485585ddbb
[ "Apache-2.0" ]
9
2021-02-16T08:53:08.000Z
2022-02-15T11:58:19.000Z
c8y_api/model/measurements.py
chisou/cumulocity-python-api
f420b8ad2ec7735484db94b70ad6f5485585ddbb
[ "Apache-2.0" ]
4
2021-04-20T12:26:41.000Z
2022-02-09T09:52:11.000Z
c8y_api/model/measurements.py
chisou/cumulocity-python-api
f420b8ad2ec7735484db94b70ad6f5485585ddbb
[ "Apache-2.0" ]
3
2021-04-26T23:05:32.000Z
2021-12-09T14:13:58.000Z
# Copyright (c) 2020 Software AG, # Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, # and/or its subsidiaries and/or its affiliates and/or their licensors. # Use, reproduction, transfer, publication or disclosure is prohibited except # as specifically provided for in your License Agreement with Softwar...
39.131579
118
0.635059
1,587
13,383
5.214241
0.217391
0.010151
0.017281
0.021269
0.276737
0.253535
0.233353
0.193958
0.177764
0.151178
0
0.004373
0.282373
13,383
341
119
39.246334
0.857039
0.473287
0
0.176471
0
0
0.039467
0.008058
0
0
0
0
0
1
0.218487
false
0
0.058824
0.008403
0.487395
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
d1a6f4aaac8e4df08df1a99a519b16af8d4bd36a
5,180
py
Python
report_generation/sbml/sbml_fetcher.py
virtualcell/test_suite
35aeee3edcd8ed937cfce63d13c5d410c5f16143
[ "MIT" ]
null
null
null
report_generation/sbml/sbml_fetcher.py
virtualcell/test_suite
35aeee3edcd8ed937cfce63d13c5d410c5f16143
[ "MIT" ]
8
2020-11-26T23:26:03.000Z
2021-01-07T22:49:49.000Z
report_generation/sbml/sbml_fetcher.py
virtualcell/test_suite
35aeee3edcd8ed937cfce63d13c5d410c5f16143
[ "MIT" ]
null
null
null
""" SBML model downloader :Author: Akhil Marupilla <marupilla@mail.com> :Date: 2020-11-23 :Copyright: 2020, UConn Health :License: MIT """ import os from report_generation.config import Config import urllib from bs4 import BeautifulSoup import requests from logzero import logger #TODO: Consider a better scenario to ...
39.541985
142
0.610425
647
5,180
4.7017
0.270479
0.03616
0.036818
0.016765
0.227482
0.145299
0.071663
0
0
0
0
0.028516
0.302703
5,180
130
143
39.846154
0.813677
0.314093
0
0.065789
0
0
0.093901
0.033514
0
0
0
0.015385
0
1
0.065789
false
0
0.078947
0
0.223684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
d1a937d7bd5cf230e5fe91f2c48e8d6ccc9465f5
1,017
py
Python
src/solid/single_responsibility_principle.py
sixfwa/python-design-patterns
d5e207c9e3878d5695d4351b2c761ef94442094e
[ "MIT" ]
1
2021-05-02T23:19:37.000Z
2021-05-02T23:19:37.000Z
src/solid/single_responsibility_principle.py
sixfwa/python-design-patterns
d5e207c9e3878d5695d4351b2c761ef94442094e
[ "MIT" ]
null
null
null
src/solid/single_responsibility_principle.py
sixfwa/python-design-patterns
d5e207c9e3878d5695d4351b2c761ef94442094e
[ "MIT" ]
1
2021-10-09T09:34:09.000Z
2021-10-09T09:34:09.000Z
""" The Single Responsibility Principle A class should have one, and only one, reason to change. """ food_bowl = 10 class Cat: def __init__(self, name: str): self.name = name self.food_level = 30 self.cleanliness_level = 50 def meow(self): print("meow") def eat(self): ...
18.490909
56
0.600787
133
1,017
4.383459
0.37594
0.068611
0.051458
0.06175
0.13036
0.13036
0.13036
0.13036
0
0
0
0.022008
0.285152
1,017
54
57
18.833333
0.779917
0.252704
0
0.16
0
0
0.168263
0.062928
0
0
0
0
0
1
0.24
false
0
0
0
0.32
0.16
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
d1ad6095d1a8a23f4687dc67fd6d1aa88d840c02
1,353
py
Python
training/recep_field.py
Pandinosaurus/Spiking-Neural-Network
de3e24da2806f0a7006b37f395ed055497727ae6
[ "Apache-2.0" ]
755
2016-09-12T13:42:51.000Z
2022-03-29T19:11:44.000Z
training/recep_field.py
tianjihua254/Spiking-Neural-Network
eaf6134b07b699a8f32e379cf9afd2ca3005007b
[ "Apache-2.0" ]
19
2017-11-03T06:03:39.000Z
2022-03-08T08:33:05.000Z
training/recep_field.py
tianjihua254/Spiking-Neural-Network
eaf6134b07b699a8f32e379cf9afd2ca3005007b
[ "Apache-2.0" ]
258
2017-03-30T13:40:31.000Z
2022-03-15T20:32:14.000Z
####################################################### README ######################################################### # This file consists of function that convolves an image with a receptive field so that input to the network is # close to the form perceived by our eyes. ########################################...
26.019231
121
0.49963
211
1,353
3.109005
0.383886
0.073171
0.082317
0.04878
0.195122
0
0
0
0
0
0
0.056829
0.193644
1,353
52
122
26.019231
0.544455
0.142646
0
0.055556
0
0
0.027086
0
0
0
0
0
0
0
null
null
0
0.083333
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d1b36dd7ead11ea966262e44f398e96e50252b07
392
py
Python
examples/rpc_client1.py
fordoo/fizznet
55d83d11c3b37c3bde7fae8c3579e5cb712d1940
[ "MIT" ]
60
2015-10-16T03:18:38.000Z
2021-06-04T07:39:53.000Z
examples/rpc_client1.py
fordoo/fizznet
55d83d11c3b37c3bde7fae8c3579e5cb712d1940
[ "MIT" ]
4
2015-11-20T09:38:29.000Z
2016-09-06T15:27:35.000Z
examples/rpc_client1.py
fordoo/fizznet
55d83d11c3b37c3bde7fae8c3579e5cb712d1940
[ "MIT" ]
15
2015-11-07T19:14:28.000Z
2019-10-12T07:35:50.000Z
# -*- coding: utf-8 -*- import sys sys.path.append('../') from tornado import ioloop from example_utils import log_initialize from torpc import RPCClient if __name__ == '__main__': log_initialize() rc = RPCClient(('127.0.0.1', 5000), 'client1') @rc.service.register() def ping(): return '...
16.333333
50
0.653061
51
392
4.784314
0.705882
0.106557
0
0
0
0
0
0
0
0
0
0.041534
0.201531
392
23
51
17.043478
0.738019
0.053571
0
0
0
0
0.130081
0
0
0
0
0
0
1
0.083333
false
0
0.333333
0.083333
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d1b4f76ed16e460722257b22b01c9ebb5ce0f0fa
2,570
py
Python
factorsell/adminx.py
luqin/firefly
2e5ab17f2d20deb3c68c927f6208ea89db7c639d
[ "MIT" ]
null
null
null
factorsell/adminx.py
luqin/firefly
2e5ab17f2d20deb3c68c927f6208ea89db7c639d
[ "MIT" ]
9
2020-03-24T16:45:25.000Z
2022-03-11T23:40:51.000Z
factorsell/adminx.py
luqin/firefly
2e5ab17f2d20deb3c68c927f6208ea89db7c639d
[ "MIT" ]
null
null
null
from __future__ import absolute_import from django.utils.translation import ugettext as _ import xadmin from .models import FactorSellBreakXd, FactorSellDoubleMa, FactorSellAtrNStop, FactorSellCloseAtrN, \ FactorSellPreAtrNStop, FactorSellNDay ACTION_NAME = { 'add': _('Can add %s'), 'change': _('Can chan...
19.922481
101
0.6393
267
2,570
5.853933
0.235955
0.084453
0.122841
0.080614
0.511836
0.511836
0.511836
0.511836
0.511836
0.511836
0
0.00592
0.211284
2,570
128
102
20.078125
0.76517
0
0
0.538462
0
0
0.14358
0
0
0
0
0
0
1
0
false
0
0.051282
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d1bdd8791aec8a6e3546e704b42b5d546253825a
981
py
Python
Temperature_timelaps.py
Richkul/Data_works
4f13cde8dd1c2fe51d1db2d7b7a445727df1cb82
[ "Apache-2.0" ]
null
null
null
Temperature_timelaps.py
Richkul/Data_works
4f13cde8dd1c2fe51d1db2d7b7a445727df1cb82
[ "Apache-2.0" ]
null
null
null
Temperature_timelaps.py
Richkul/Data_works
4f13cde8dd1c2fe51d1db2d7b7a445727df1cb82
[ "Apache-2.0" ]
null
null
null
from netCDF4 import Dataset import numpy as np import maplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap data = Dataset(r'C:\Users\User\Desktop\NETCDF, .nc, 'r') lats = data.variation['lon'][:] lons = data.variation['lon'][:] time = data.variation['time'][:] tave = data.variation['tave'][:] ...
24.525
70
0.560652
125
981
4.376
0.584
0.095064
0.058501
0
0
0
0
0
0
0
0
0.02276
0.283384
981
40
71
24.525
0.755334
0
0
0
0
0.034483
0.108165
0.030753
0
0
0
0
0
0
null
null
0
0.137931
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d1bf26b4a9db8cc842fb23050a804130b4625e40
2,408
py
Python
weekly/accounts/models.py
llfccc/weekly
4aa096eddfbe150a151194adb84e31947dc15f70
[ "Apache-2.0" ]
2
2017-04-22T11:21:06.000Z
2017-05-24T08:24:35.000Z
weekly/accounts/models.py
llfccc/weekly
4aa096eddfbe150a151194adb84e31947dc15f70
[ "Apache-2.0" ]
null
null
null
weekly/accounts/models.py
llfccc/weekly
4aa096eddfbe150a151194adb84e31947dc15f70
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import AbstractUser # Create your models here. class Department(models.Model): ''' 用户部门表 ''' department_name = models.CharField(max_length=100, verbose_name='部门名称') department_remar...
32.986301
114
0.645764
270
2,408
5.496296
0.3
0.103774
0.060647
0.080863
0.561995
0.559299
0.493935
0.473046
0.416442
0.338275
0
0.006956
0.223837
2,408
72
115
33.444444
0.787052
0.184801
0
0.25641
0
0
0.066319
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0.076923
0.641026
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d1c17bf5c46517a9ebd6fd7e18587d6077147180
767
py
Python
yzcore/templates/project_template/src/settings.py
lixuemin13/yz-core
82774f807ac1002b77d0cc90f6695b1cc6ba0820
[ "MIT" ]
6
2021-01-26T10:27:04.000Z
2022-03-19T16:13:12.000Z
yzcore/templates/project_template/src/settings.py
lixuemin13/yz-core
82774f807ac1002b77d0cc90f6695b1cc6ba0820
[ "MIT" ]
null
null
null
yzcore/templates/project_template/src/settings.py
lixuemin13/yz-core
82774f807ac1002b77d0cc90f6695b1cc6ba0820
[ "MIT" ]
1
2021-01-27T02:11:55.000Z
2021-01-27T02:11:55.000Z
#!/usr/bin/python3.7+ # -*- coding:utf-8 -*- """ @auth: @date: 2020-9-13 @desc: ... """ import os from pydantic import Field from yzcore.default_settings import DefaultSetting, get_configer # yaml格式解析器 # conf = get_configer('yaml', import_path=os.path.dirname(__file__)) # ini格式解析器 conf = get_configer('ini', import_p...
21.305556
72
0.66884
106
767
4.518868
0.584906
0.050104
0.08142
0.106472
0.112735
0.112735
0
0
0
0
0
0.034321
0.164276
767
36
73
21.305556
0.712949
0.241199
0
0
0
0
0.110721
0
0
0
0
0
0
1
0
false
0
0.266667
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d1c9b476027300f2667f7393af872e28f3ba490d
5,733
py
Python
Lib/site-packages/iotools/misc/log.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
Lib/site-packages/iotools/misc/log.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/iotools/misc/log.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
from __future__ import annotations from typing import Any, Optional import getpass from maybe import Maybe from subtypes import DateTime, Str from pathmagic import File, Dir, PathLike from miscutils import StreamReplacerMixin from .console import Console class Log: """ A log class intended to provide a coo...
41.543478
212
0.648003
788
5,733
4.491117
0.25
0.022605
0.021192
0.016106
0.244702
0.190167
0.176604
0.176604
0.15965
0.148064
0
0.002522
0.239142
5,733
137
213
41.846715
0.808803
0.215594
0
0.146067
0
0.022472
0.08243
0.054652
0
0
0
0
0
1
0.224719
false
0.033708
0.089888
0.011236
0.404494
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1