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
586164868dc7c6764c259c00dffd9b89e801c744
1,001
py
Python
reana_db/database.py
dinosk/reana-db
298784773bf0d9c3b2c11b04521bc52c6859561b
[ "MIT" ]
null
null
null
reana_db/database.py
dinosk/reana-db
298784773bf0d9c3b2c11b04521bc52c6859561b
[ "MIT" ]
null
null
null
reana_db/database.py
dinosk/reana-db
298784773bf0d9c3b2c11b04521bc52c6859561b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of REANA. # Copyright (C) 2018 CERN. # # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Database management for REANA.""" from __future__ import absolute_import from sqlalchemy ...
29.441176
72
0.709291
129
1,001
5.325581
0.527132
0.061135
0.07278
0
0
0
0
0
0
0
0
0.006337
0.211788
1,001
33
73
30.333333
0.864385
0.278721
0
0
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0.4375
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
5877f005f43b1d9e7ad716b8742fa167dcd2f0dc
10,837
py
Python
cime/doc/tools_autodoc.py
jingxianwen/E3SM
bced6ba5e9247d6db6c8445b5fb828772a929b1b
[ "zlib-acknowledgement", "RSA-MD", "FTL" ]
3
2020-02-24T21:58:57.000Z
2020-09-29T23:06:45.000Z
cime/doc/tools_autodoc.py
jingxianwen/E3SM
bced6ba5e9247d6db6c8445b5fb828772a929b1b
[ "zlib-acknowledgement", "RSA-MD", "FTL" ]
16
2019-09-27T02:16:37.000Z
2020-08-01T17:51:12.000Z
cime/doc/tools_autodoc.py
jingxianwen/E3SM
bced6ba5e9247d6db6c8445b5fb828772a929b1b
[ "zlib-acknowledgement", "RSA-MD", "FTL" ]
2
2020-12-09T07:30:20.000Z
2022-03-18T04:22:25.000Z
#!/usr/bin/env python """script to auto generate rst documentation for cime/scripts/Tools user facing utilities. """ from __future__ import print_function import sys if sys.hexversion < 0x02070000: print(70 * "*") print("ERROR: {0} requires python >= 2.7.x. ".format(sys.argv[0])) print("It appears t...
31.230548
139
0.554397
1,284
10,837
4.503894
0.159657
0.022826
0.017292
0.021788
0.42158
0.347225
0.295694
0.262494
0.246239
0.246239
0
0.005682
0.220541
10,837
346
140
31.320809
0.678939
0.203562
0
0.324074
1
0
0.232898
0.046813
0
0
0.001167
0.00289
0
1
0.027778
false
0
0.050926
0
0.106481
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
588b3ed6cb231ccc6ae7ba36c2894d24c2ecb6d1
10,529
py
Python
clib/site/rst-from-c.py
rig-project/cglib
c91f8c9f8a7d60c9120624606d22ff26d8799b89
[ "MIT" ]
null
null
null
clib/site/rst-from-c.py
rig-project/cglib
c91f8c9f8a7d60c9120624606d22ff26d8799b89
[ "MIT" ]
null
null
null
clib/site/rst-from-c.py
rig-project/cglib
c91f8c9f8a7d60c9120624606d22ff26d8799b89
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (C) 2015 Intel Corporation. # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without limitation the rights to use, copy, m...
31.058997
120
0.603096
1,379
10,529
4.506889
0.216824
0.014481
0.015929
0.011585
0.294127
0.23041
0.188898
0.176669
0.156557
0.096702
0
0.008996
0.250451
10,529
338
121
31.150888
0.77851
0.141039
0
0.304348
0
0
0.11518
0.033622
0
0
0
0
0
0
null
null
0.004348
0.017391
null
null
0.065217
0
0
0
null
0
0
0
0
0
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
588db1d0a91a3c77de3d857884ca8388aa60025c
1,655
py
Python
api/db/user.py
Karl-Krauth/recommender-RCT
cf3d28f41a425d6d908415cfd33c45e41bcc237b
[ "MIT" ]
1
2021-01-13T09:05:53.000Z
2021-01-13T09:05:53.000Z
api/db/user.py
Karl-Krauth/recommender-RCT
cf3d28f41a425d6d908415cfd33c45e41bcc237b
[ "MIT" ]
null
null
null
api/db/user.py
Karl-Krauth/recommender-RCT
cf3d28f41a425d6d908415cfd33c45e41bcc237b
[ "MIT" ]
null
null
null
from __future__ import annotations import secrets import time import typing import jwt import werkzeug.security from . import base SECRET_KEY = secrets.token_hex(128) class User(base.db.Model): __tablename__ = 'users' id = base.db.Column(base.db.Integer, primary_key=True) username = base.db.Column(bas...
30.648148
83
0.639879
203
1,655
5.044335
0.35468
0.052734
0.035156
0.046875
0.064453
0.046875
0
0
0
0
0
0.013743
0.252568
1,655
53
84
31.226415
0.814066
0
0
0.175
0
0
0.013293
0
0
0
0
0
0
1
0.125
false
0.15
0.175
0.075
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
588f2fa60ab3aee83b3d4dca6422c5f92ae4e45c
622
py
Python
faker/providers/fa_IR/phone_number.py
kaflesudip/faker
e27fbf6744e730a34e57a3ad747290c8c36656d4
[ "MIT" ]
1
2018-06-18T02:30:24.000Z
2018-06-18T02:30:24.000Z
faker/providers/fa_IR/phone_number.py
kaflesudip/faker
e27fbf6744e730a34e57a3ad747290c8c36656d4
[ "MIT" ]
null
null
null
faker/providers/fa_IR/phone_number.py
kaflesudip/faker
e27fbf6744e730a34e57a3ad747290c8c36656d4
[ "MIT" ]
1
2021-03-27T01:40:50.000Z
2021-03-27T01:40:50.000Z
from __future__ import unicode_literals from ..phone_number import Provider as PhoneNumberProvider class Provider(PhoneNumberProvider): formats = ( # Mobile '+98 91# ### ####', '091# ### ####', '+98 920 ### ####', '0920 ### ####', '+98 921 ### ####', '0921 #...
24.88
58
0.31672
42
622
4.547619
0.738095
0
0
0
0
0
0
0
0
0
0
0.142857
0.369775
622
25
59
24.88
0.344388
0.027331
0
0
0
0
0.38806
0
0
0
0
0
0
1
0
false
0
0.095238
0
0.190476
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
588ff63e7cba96f2c8f52ceac5c5567011f8f436
2,997
py
Python
tests/test_configuration.py
frankcash/marquez-python
16f205930a830a0670b2411406ffcec9794838a9
[ "Apache-2.0" ]
null
null
null
tests/test_configuration.py
frankcash/marquez-python
16f205930a830a0670b2411406ffcec9794838a9
[ "Apache-2.0" ]
null
null
null
tests/test_configuration.py
frankcash/marquez-python
16f205930a830a0670b2411406ffcec9794838a9
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
27.495413
77
0.737738
410
2,997
5.163415
0.258537
0.049126
0.042513
0.072272
0.583845
0.534719
0.505432
0.383562
0.355692
0.316486
0
0.026316
0.150484
2,997
108
78
27.75
0.805185
0.217217
0
0.339286
0
0
0.189108
0
0
0
0
0.009259
0.214286
1
0.232143
false
0
0.089286
0
0.321429
0
0
0
0
null
0
0
0
0
0
0
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
58923515648131507db40ba0fa72bfbe2cb9c850
2,505
py
Python
core/web/api/api.py
rorymbyrne/yeti
bc6d7ab7374f3b015c2f92ed8f5ac7e303f95474
[ "Apache-2.0" ]
1
2022-02-03T11:23:33.000Z
2022-02-03T11:23:33.000Z
core/web/api/api.py
rorymbyrne/yeti
bc6d7ab7374f3b015c2f92ed8f5ac7e303f95474
[ "Apache-2.0" ]
3
2020-12-04T21:29:31.000Z
2021-05-09T04:29:10.000Z
core/web/api/api.py
rorymbyrne/yeti
bc6d7ab7374f3b015c2f92ed8f5ac7e303f95474
[ "Apache-2.0" ]
1
2022-02-03T11:23:34.000Z
2022-02-03T11:23:34.000Z
from __future__ import unicode_literals from json import dumps from flask import Blueprint, jsonify, render_template, request from flask_api.decorators import set_renderers from flask_api.renderers import JSONRenderer from core.web.json import to_json, recursive_encoder api = Blueprint("api", __name__, template_fol...
30.54878
88
0.803194
327
2,505
6.051988
0.308869
0.122284
0.088934
0.106114
0.043962
0
0
0
0
0
0
0
0.099002
2,505
81
89
30.925926
0.876828
0.081437
0
0
0
0
0.054031
0
0
0
0
0
0
1
0.036364
false
0
0.381818
0
0.472727
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
0
0
0
0
1
0
0
0
0
1
58988acfe9a31985c60edbabb32b69a59695b996
6,047
py
Python
tools/convert-EntrezGene.py
bepnye/brat
28acfb2d3cce20bd4d4ff1a67690e271675841f2
[ "CC-BY-3.0" ]
17
2017-09-14T07:21:37.000Z
2021-12-07T03:17:05.000Z
tools/convert-EntrezGene.py
bepnye/brat
28acfb2d3cce20bd4d4ff1a67690e271675841f2
[ "CC-BY-3.0" ]
7
2015-04-11T12:57:42.000Z
2016-04-08T13:43:44.000Z
tools/convert-EntrezGene.py
bepnye/brat
28acfb2d3cce20bd4d4ff1a67690e271675841f2
[ "CC-BY-3.0" ]
5
2017-09-14T07:21:55.000Z
2021-01-27T01:50:19.000Z
#!/usr/bin/evn python # Script for converting Entrez Gene data into the brat normalization # DB input format (http://brat.nlplab.org/normalization.html). # The script expects as input the gene_info file available from the # NCBI FTP site (ftp://ftp.ncbi.nih.gov/gene/DATA/). # The gene_info file format is TAB-separat...
28.658768
80
0.631718
822
6,047
4.478102
0.23236
0.046455
0.0326
0.03912
0.230101
0.170062
0.165716
0.145069
0.123879
0.069546
0
0.009759
0.237473
6,047
210
81
28.795238
0.788549
0.256987
0
0.184397
0
0
0.077631
0
0
0
0
0
0.070922
0
null
null
0
0.028369
null
null
0.028369
0
0
0
null
0
0
0
0
0
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
58a687201e3e5b4f3593ae94265f50e1cbcfd1ba
2,629
py
Python
bitcoinExchange/exchange/api/views.py
pogginicolo98/start2impact_exchange
559c42cdeb2dec890d4b1145ed66a1a2f7c362cb
[ "MIT" ]
1
2021-09-08T16:39:07.000Z
2021-09-08T16:39:07.000Z
bitcoinExchange/exchange/api/views.py
pogginicolo98/start2impact_exchange
559c42cdeb2dec890d4b1145ed66a1a2f7c362cb
[ "MIT" ]
null
null
null
bitcoinExchange/exchange/api/views.py
pogginicolo98/start2impact_exchange
559c42cdeb2dec890d4b1145ed66a1a2f7c362cb
[ "MIT" ]
null
null
null
from django.shortcuts import get_object_or_404 from exchange.api.permissions import IsActiveOrder, IsOwnerProfile from exchange.api.serializers import LatestOrdersSerializer, OrderSerializer, ProfileSerializer from exchange.models import Order, Profile from rest_framework import mixins, status, viewsets from rest_frame...
29.875
95
0.705211
285
2,629
6.407018
0.378947
0.021906
0.04655
0.036145
0.150602
0.061336
0.061336
0.061336
0.061336
0
0
0.004434
0.227843
2,629
87
96
30.218391
0.895074
0.231267
0
0.157895
0
0
0.001066
0
0
0
0
0
0
1
0.105263
false
0
0.236842
0
0.657895
0
0
0
0
null
0
0
0
0
0
0
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
58a7be7e98be7901e0a46319d0ba6165b91208af
432
py
Python
certificado/migrations/0004_auto_20200714_2157.py
tiagocordeiro/cultiva-certificados
740da1c70cb1573875a0cb800dfe2eaff15d9030
[ "MIT" ]
null
null
null
certificado/migrations/0004_auto_20200714_2157.py
tiagocordeiro/cultiva-certificados
740da1c70cb1573875a0cb800dfe2eaff15d9030
[ "MIT" ]
131
2020-05-27T17:57:48.000Z
2022-03-20T12:24:11.000Z
certificado/migrations/0004_auto_20200714_2157.py
tiagocordeiro/cultiva-certificados
740da1c70cb1573875a0cb800dfe2eaff15d9030
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-15 00:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('certificado', '0003_auto_20200714_1516'), ] operations = [ migrations.AlterField( model_name='certificado', name='ca...
22.736842
80
0.627315
47
432
5.617021
0.787234
0.068182
0
0
0
0
0
0
0
0
0
0.103448
0.261574
432
18
81
24
0.724138
0.104167
0
0
1
0
0.184416
0.05974
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
542ff9899b2f3b3cacf77394eb26dc83e04fe09d
650
py
Python
dfwtaichi/styles/migrations/0005_series_tags.py
bchip50/dfwtaichi-pc
95a6c286db5fb01b125a4808b4c47214bf4f68c4
[ "MIT" ]
null
null
null
dfwtaichi/styles/migrations/0005_series_tags.py
bchip50/dfwtaichi-pc
95a6c286db5fb01b125a4808b4c47214bf4f68c4
[ "MIT" ]
null
null
null
dfwtaichi/styles/migrations/0005_series_tags.py
bchip50/dfwtaichi-pc
95a6c286db5fb01b125a4808b4c47214bf4f68c4
[ "MIT" ]
null
null
null
# Generated by Django 3.0.11 on 2020-12-27 21:51 from django.db import migrations import taggit.managers class Migration(migrations.Migration): dependencies = [ ('taggit', '0003_taggeditem_add_unique_index'), ('styles', '0004_auto_20201225_1051'), ] operations = [ migrations.Add...
30.952381
247
0.663077
81
650
5.197531
0.716049
0.066508
0.047506
0.07601
0
0
0
0
0
0
0
0.071287
0.223077
650
20
248
32.5
0.762376
0.070769
0
0
1
0
0.352159
0.091362
0
0
0
0
0
1
0
false
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5431c3a7c6fe934932a97dc19a4c0994b7144b1e
6,402
py
Python
Python_Workspace/Sketches/TB_OrderMaker.py
agent1894/Quant-Practice-Workspace
f102e136389e2247bbbfb36ef78c16807a0ba7d2
[ "MIT" ]
1
2021-03-17T01:25:05.000Z
2021-03-17T01:25:05.000Z
Python_Workspace/Sketches/TB_OrderMaker.py
agent1894/Quant-Practice-Workspace
f102e136389e2247bbbfb36ef78c16807a0ba7d2
[ "MIT" ]
null
null
null
Python_Workspace/Sketches/TB_OrderMaker.py
agent1894/Quant-Practice-Workspace
f102e136389e2247bbbfb36ef78c16807a0ba7d2
[ "MIT" ]
2
2020-06-29T15:31:10.000Z
2021-03-24T14:20:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from selenium import webdriver import datetime as dt import time ''' selenium实例化的browser,对应的find_element*方法,如果无法找到对应的元素,并非返回False,而是直接抛出NoSuchElementException。 因此find_element*方法放在while中进行逻辑判断会导致程序无法正常运行。 需要在while中嵌入try...except处理。 同时,即使能够找到可点击的元素,也需留0.1s以上的时间给程序和网页进行交互,否则会...
37.00578
117
0.579975
648
6,402
5.402778
0.29321
0.072265
0.055698
0.094259
0.360468
0.32505
0.282776
0.171094
0.151957
0.151957
0
0.006679
0.298344
6,402
172
118
37.22093
0.772707
0.014527
0
0.417323
0
0
0.126498
0.035774
0
0
0
0.011628
0
1
0.070866
false
0.03937
0.023622
0
0.102362
0.062992
0
0
0
null
0
0
0
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
5435b655e529eb3b969cd2dc37e13a182fe8ee9a
541
py
Python
public/boilerplate/flask/flaskr/model/Group.py
fishjar/swagger-go
b00fcba6e7e1aec393737a007f61f7a79479ab87
[ "MIT" ]
2
2018-11-15T02:34:37.000Z
2022-01-12T07:36:32.000Z
public/boilerplate/flask/flaskr/model/Group.py
fishjar/swagger-go
b00fcba6e7e1aec393737a007f61f7a79479ab87
[ "MIT" ]
13
2019-12-27T20:40:39.000Z
2022-03-08T23:11:03.000Z
public/boilerplate/flask/flaskr/model/Group.py
fishjar/swagger-go
b00fcba6e7e1aec393737a007f61f7a79479ab87
[ "MIT" ]
1
2020-08-10T06:46:33.000Z
2020-08-10T06:46:33.000Z
import enum from flaskr import db, ma from .Base import BaseModel, Column class Group(BaseModel): """ 组模型 """ __tablename__ = "group" name = Column("name", db.String(32), nullable=False, comment="角色名称") leaderId = Column("leader_id", db.String(64), db.ForeignKey('user.id'), nullable=False, commen...
25.761905
107
0.654344
65
541
5.353846
0.569231
0.045977
0.114943
0
0
0
0
0
0
0
0
0.009132
0.190388
541
20
108
27.05
0.785388
0.022181
0
0
0
0
0.111546
0
0
0
0
0
0
1
0
false
0
0.25
0
0.916667
0
0
0
0
null
0
0
0
0
0
0
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
543d99f0863a2e5e15bc7fe5e0628a49f73f29e1
799
py
Python
scripts/string_scripts/swedish_chef/swedish_chef.py
aaa-ncnu-ie/card.io-iOS-source
271c4ff9a74d66bd6d87c1ca4179bf44710cbe6e
[ "MIT" ]
null
null
null
scripts/string_scripts/swedish_chef/swedish_chef.py
aaa-ncnu-ie/card.io-iOS-source
271c4ff9a74d66bd6d87c1ca4179bf44710cbe6e
[ "MIT" ]
null
null
null
scripts/string_scripts/swedish_chef/swedish_chef.py
aaa-ncnu-ie/card.io-iOS-source
271c4ff9a74d66bd6d87c1ca4179bf44710cbe6e
[ "MIT" ]
null
null
null
import os import re import sys import subprocess # Use the official chef lex file # Compile from source each time path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'swedish_chef.l') COMPILE_CMD = "lex -o /tmp/swedish_chef.c {0} && cc /tmp/swedish_chef.c -o /tmp/swedish_chef -ll".format(path) subprocess...
24.96875
110
0.679599
113
799
4.619469
0.557522
0.105364
0.10728
0.057471
0
0
0
0
0
0
0
0.001508
0.170213
799
31
111
25.774194
0.785822
0.214018
0
0
0
0.066667
0.203046
0
0
0
0
0
0
1
0.066667
false
0
0.333333
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
543ee46984ca2ff20645af146cf693c2085bc508
2,235
py
Python
Commands/Update.py
Heufneutje/PyMoronBot
055abf0e685f3d2fc02863517952dc7fad9050f3
[ "MIT" ]
null
null
null
Commands/Update.py
Heufneutje/PyMoronBot
055abf0e685f3d2fc02863517952dc7fad9050f3
[ "MIT" ]
null
null
null
Commands/Update.py
Heufneutje/PyMoronBot
055abf0e685f3d2fc02863517952dc7fad9050f3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Dec 07, 2013 @author: Tyranic-Moron """ from IRCMessage import IRCMessage from IRCResponse import IRCResponse, ResponseType from CommandInterface import CommandInterface import GlobalVars import subprocess import os import sys class Update(CommandInterface): triggers = ['u...
33.358209
128
0.57226
228
2,235
5.592105
0.504386
0.090196
0.09098
0.100392
0.101961
0
0
0
0
0
0
0.00654
0.315884
2,235
66
129
33.863636
0.827338
0.009396
0
0.1
0
0
0.216124
0
0
0
0
0
0
0
null
null
0
0.175
null
null
0.025
0
0
0
null
0
0
0
0
0
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
54452675a4e078a0bad44e0c6a31f7547b86841b
934
py
Python
setup.py
mrMakaronka/pyenv
48702153429019f2176148aaaaa45b3b48080df2
[ "MIT" ]
null
null
null
setup.py
mrMakaronka/pyenv
48702153429019f2176148aaaaa45b3b48080df2
[ "MIT" ]
5
2020-11-26T06:02:13.000Z
2021-11-15T08:52:16.000Z
setup.py
mrMakaronka/pyenv
48702153429019f2176148aaaaa45b3b48080df2
[ "MIT" ]
null
null
null
import setuptools from Cython.Build import cythonize import Cython.Compiler.Options Cython.Compiler.Options.annotate = True setuptools.setup( name='ipystate', version='0.0.1', package_dir={'': 'src/main/python'}, packages=['ipystate', 'ipystate/impl', 'ipystate/impl/dispatch'], install_requires=[ ...
28.30303
120
0.620985
114
934
5.017544
0.587719
0.01049
0.073427
0
0
0
0
0
0
0
0
0.049268
0.195931
934
32
121
29.1875
0.712383
0
0
0.1
0
0.033333
0.407923
0.141328
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
5446ac00e1b4d103bfa66deb89f1f5eb1f9ed256
41,639
py
Python
code/betabinom.py
raphael-group/scarlet
e28d59a456ed5a38156f9ec7450641f6ce24a81c
[ "BSD-3-Clause" ]
5
2020-04-26T03:39:32.000Z
2021-08-12T10:40:17.000Z
code/betabinom.py
raphael-group/scarlet
e28d59a456ed5a38156f9ec7450641f6ce24a81c
[ "BSD-3-Clause" ]
1
2020-10-27T15:48:43.000Z
2020-10-27T22:10:12.000Z
code/betabinom.py
raphael-group/scarlet
e28d59a456ed5a38156f9ec7450641f6ce24a81c
[ "BSD-3-Clause" ]
2
2020-09-22T21:20:02.000Z
2021-07-30T14:29:56.000Z
# Copyright Ian Smith 2002-2018 # Above only included as I am told that without it, others may claim copyright and stop me from editting my own copies of my own code! No idea how true this is. # Beyond that, I am happy for anyone to make any edits they like to this code. # For example, raising ValueError in pmf, cdf an...
38.096066
239
0.561229
6,289
41,639
3.642232
0.105581
0.020344
0.006461
0.017463
0.403344
0.341701
0.303851
0.28176
0.261809
0.244085
0
0.238163
0.293427
41,639
1,092
240
38.130952
0.540396
0.127116
0
0.393777
0
0
0
0
0
0
0
0
0
1
0.033262
false
0
0.002146
0.002146
0.143777
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
54475cc0c6ab0b95af39a9a27ed312dc41824b2f
4,247
py
Python
Patent2Net/segPhrases.py
Patent2net/P2N-v3
19f5e7ebd993183bc3c1c6a9676302a71dc9277b
[ "CECILL-B" ]
11
2019-08-05T11:49:11.000Z
2022-01-28T15:36:12.000Z
Patent2Net/segPhrases.py
Patent2net/P2N-v3
19f5e7ebd993183bc3c1c6a9676302a71dc9277b
[ "CECILL-B" ]
10
2019-07-11T11:26:28.000Z
2022-02-27T13:47:26.000Z
Patent2Net/segPhrases.py
Patent2net/P2N-v3
19f5e7ebd993183bc3c1c6a9676302a71dc9277b
[ "CECILL-B" ]
4
2019-04-02T07:11:04.000Z
2022-02-21T12:26:14.000Z
import os from gensim.models import Word2Vec from textblob import TextBlob # importation de textblob outil liguistique from P2N_Config import LoadConfig from P2N_Lib import LoadBiblioFile, GenereListeFichiers configFile = LoadConfig() import codecs requete = configFile.requete projectName = configFile.ndf phrase="i...
46.67033
1,286
0.701201
543
4,247
5.46593
0.460405
0.008423
0.020216
0.02628
0.107143
0.081536
0.081536
0.081536
0.059299
0.059299
0
0.013212
0.198022
4,247
91
1,287
46.67033
0.858191
0.237109
0
0.042553
0
0.021277
0.474143
0
0
0
0
0
0
1
0
false
0
0.12766
0
0.12766
0.148936
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
544ec25a29fbc81034efc21c24a7377dcaefcc3b
1,293
py
Python
tests/cli/tap.py
joshuataylor/great_expectations
19dcead43aef9a833b3aa894a1226714a80ab840
[ "Apache-2.0" ]
6,451
2017-09-11T16:32:53.000Z
2022-03-31T23:27:49.000Z
tests/cli/tap.py
joshuataylor/great_expectations
19dcead43aef9a833b3aa894a1226714a80ab840
[ "Apache-2.0" ]
3,892
2017-09-08T18:57:50.000Z
2022-03-31T23:15:20.000Z
tests/cli/tap.py
joshuataylor/great_expectations
19dcead43aef9a833b3aa894a1226714a80ab840
[ "Apache-2.0" ]
1,023
2017-09-08T15:22:05.000Z
2022-03-31T21:17:08.000Z
""" A basic generated Great Expectations tap that validates a single batch of data. Data that is validated is controlled by BatchKwargs, which can be adjusted in this script. Data are validated by use of the `ActionListValidationOperator` which is configured by default. The default configuration of this Validation Op...
31.536585
130
0.781129
179
1,293
5.541899
0.541899
0.051411
0.034274
0.03629
0.147177
0.147177
0.147177
0.147177
0.147177
0.147177
0
0.026667
0.12993
1,293
40
131
32.325
0.855111
0.467131
0
0
1
0.117647
0.492647
0.341176
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
0.117647
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
54545c51c8d104289efb9634a0c0e4e7bd2ab3d5
612
py
Python
yepes/admin/__init__.py
samuelmaudo/yepes
1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb
[ "BSD-3-Clause" ]
null
null
null
yepes/admin/__init__.py
samuelmaudo/yepes
1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb
[ "BSD-3-Clause" ]
null
null
null
yepes/admin/__init__.py
samuelmaudo/yepes
1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf-8 -*- from django.contrib.admin import ( ACTION_CHECKBOX_NAME, HORIZONTAL, VERTICAL, StackedInline, TabularInline, AdminSite, site, ListFilter, SimpleListFilter, FieldListFilter, BooleanFieldListFilter, RelatedFieldListFilter, ChoicesFieldListFilter, DateFieldListFilter, Al...
26.608696
74
0.772876
49
612
9.591837
0.77551
0.057447
0.089362
0
0
0
0
0
0
0
0
0.001942
0.158497
612
22
75
27.818182
0.91068
0.03268
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.210526
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
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
545c9ccd7ce902c9c06b8766236bb321c8b9aa7a
415
py
Python
fahari/ops/migrations/0018_facilitysystemticket_resolve_note.py
savannahghi/mle
4d65f8a573935d39700a0d6f8a8eb79cb5640288
[ "MIT" ]
2
2021-09-14T07:14:27.000Z
2022-01-06T12:21:34.000Z
fahari/ops/migrations/0018_facilitysystemticket_resolve_note.py
savannahghi/fahari
4d65f8a573935d39700a0d6f8a8eb79cb5640288
[ "MIT" ]
1
2022-02-27T18:03:17.000Z
2022-02-27T18:03:17.000Z
fahari/ops/migrations/0018_facilitysystemticket_resolve_note.py
savannahghi/mle
4d65f8a573935d39700a0d6f8a8eb79cb5640288
[ "MIT" ]
2
2022-03-12T13:25:09.000Z
2022-03-21T08:44:33.000Z
# Generated by Django 3.2.6 on 2021-08-20 11:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ops', '0017_weeklyprogramupdate_notes'), ] operations = [ migrations.AddField( model_name='facilitysystemticket', na...
21.842105
58
0.619277
43
415
5.883721
0.837209
0
0
0
0
0
0
0
0
0
0
0.062706
0.26988
415
18
59
23.055556
0.772277
0.108434
0
0
1
0
0.17663
0.081522
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
545cbcca681045ed530bce4776d8264f99ff3b2d
4,813
py
Python
test/app-client/scripts/esvm_client.py
susanwab/elijah-provisioning
6364f1e6c6c802033df71999435d7f7dc03ad2b6
[ "Apache-2.0" ]
19
2015-01-18T23:37:18.000Z
2019-10-16T15:53:29.000Z
test/app-client/scripts/esvm_client.py
susanwab/elijah-provisioning
6364f1e6c6c802033df71999435d7f7dc03ad2b6
[ "Apache-2.0" ]
5
2016-06-09T15:08:51.000Z
2018-05-07T17:45:01.000Z
test/app-client/scripts/esvm_client.py
susanwab/elijah-provisioning
6364f1e6c6c802033df71999435d7f7dc03ad2b6
[ "Apache-2.0" ]
15
2015-02-02T11:08:14.000Z
2020-03-24T14:22:50.000Z
#!/usr/bin/env python # # Cloudlet Infrastructure for Mobile Computing # # Author: Kiryong Ha <krha@cmu.edu> # # Copyright (C) 2011-2013 Carnegie Mellon University # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may ob...
32.965753
141
0.633908
634
4,813
4.664038
0.365931
0.0372
0.014204
0.011836
0.208319
0.168076
0.131552
0.108556
0.06696
0.064931
0
0.021464
0.244962
4,813
145
142
33.193103
0.79224
0.157282
0
0.115789
0
0.021053
0.157529
0.026048
0
0
0
0
0
0
null
null
0
0.073684
null
null
0.063158
0
0
0
null
0
0
0
0
0
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
545f25e3a3fc7306de527853c7fd2ca0fdcbbe9f
1,246
py
Python
test.py
desmoteo/timerdec
bb5433335a64a21c4dbe206c2d56303c4b843e62
[ "MIT" ]
1
2020-11-10T10:19:31.000Z
2020-11-10T10:19:31.000Z
test.py
desmoteo/timerdec
bb5433335a64a21c4dbe206c2d56303c4b843e62
[ "MIT" ]
null
null
null
test.py
desmoteo/timerdec
bb5433335a64a21c4dbe206c2d56303c4b843e62
[ "MIT" ]
null
null
null
from timerdec.decorators import timerdec, timerdec_always, nowdec from timerdec.snapshots import now import time import numpy as np #We can require timing information collection for function r at run time. @timerdec() def r(size1, size2): return np.random.rand(size1, size2) class cl(): def __init__(self): ...
20.42623
106
0.674157
190
1,246
4.378947
0.468421
0.067308
0.028846
0.043269
0.100962
0.100962
0.100962
0
0
0
0
0.044284
0.220706
1,246
60
107
20.766667
0.812564
0.351525
0
0.111111
0
0
0.046135
0
0
0
0
0
0
1
0.166667
false
0.055556
0.111111
0.027778
0.361111
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
0
0
0
1
0
0
0
0
0
1
54644865f1f15bf7409a73b6d23cd2c5675f4651
1,106
py
Python
7_second_milestone_project/milestone_2_files/utils/database.py
gdia/The-Complete-Python-Course
ed375b65242249bc749c3e292a6149f8528b9dcf
[ "MIT" ]
29
2019-09-02T21:15:59.000Z
2022-01-14T02:20:05.000Z
7_second_milestone_project/milestone_2_files/utils/database.py
gdia/The-Complete-Python-Course
ed375b65242249bc749c3e292a6149f8528b9dcf
[ "MIT" ]
2
2020-08-20T05:48:36.000Z
2021-06-02T03:16:31.000Z
7_second_milestone_project/milestone_2_files/utils/database.py
gdia/The-Complete-Python-Course
ed375b65242249bc749c3e292a6149f8528b9dcf
[ "MIT" ]
38
2019-10-20T14:29:12.000Z
2022-03-27T19:50:05.000Z
books_file = 'books.txt' def create_book_table(): with open(books_file, 'w') as file: pass # just to make sure the file is there def get_all_books(): with open(books_file, 'r') as file: lines = [line.strip().split(',') for line in file.readlines()] return [ {'name': line[0], 'a...
23.041667
75
0.584087
165
1,106
3.745455
0.278788
0.090615
0.084142
0.110032
0.425566
0.323625
0.323625
0.245955
0
0
0
0.00609
0.257685
1,106
47
76
23.531915
0.74665
0.131103
0
0.285714
0
0
0.113089
0.050262
0
0
0
0
0
1
0.214286
false
0.035714
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
5466b21ff28f764fce84f39a2831434df593337d
8,228
py
Python
draw.optimized.maps.in.genet.map.distances.py
eaton-lab/GOOGA
e1ecf17e6892d6163eff36ddce4ddb3887d35465
[ "MIT" ]
null
null
null
draw.optimized.maps.in.genet.map.distances.py
eaton-lab/GOOGA
e1ecf17e6892d6163eff36ddce4ddb3887d35465
[ "MIT" ]
null
null
null
draw.optimized.maps.in.genet.map.distances.py
eaton-lab/GOOGA
e1ecf17e6892d6163eff36ddce4ddb3887d35465
[ "MIT" ]
2
2020-08-24T18:55:43.000Z
2021-12-24T18:58:42.000Z
from matplotlib import pyplot as plt import sys from common import * from pprint import pprint #import maps #final_maps, lendict = maps.final_maps, maps.lendict from mapsJKKoptimized import lendict_norm, final_maps def plot_ord(scaff_ord, lendict, ypos, bump=0): lenlist = [lendict[i] for i in map(lambda s: s[1:],...
40.732673
162
0.565386
1,261
8,228
3.603489
0.154639
0.019146
0.03037
0.010783
0.430678
0.368838
0.257482
0.183979
0.141725
0.128961
0
0.069021
0.249878
8,228
201
163
40.935323
0.667207
0.488211
0
0.107143
0
0
0.027622
0
0
0
0
0
0
0
null
null
0
0.059524
null
null
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
546d9928d20ff24dc644ed00bafd299a47e5d1c6
1,149
py
Python
setup.py
superadm1n/CiscoAutomationFramework
7bb4dec7d7fb534c9adaa68dcfda2c400cc2153c
[ "Apache-2.0" ]
1
2022-01-10T17:39:40.000Z
2022-01-10T17:39:40.000Z
setup.py
superadm1n/CiscoAutomationFramework
7bb4dec7d7fb534c9adaa68dcfda2c400cc2153c
[ "Apache-2.0" ]
14
2018-04-14T13:07:15.000Z
2022-01-10T15:39:51.000Z
setup.py
superadm1n/CiscoAutomationFramework
7bb4dec7d7fb534c9adaa68dcfda2c400cc2153c
[ "Apache-2.0" ]
3
2018-11-27T17:07:35.000Z
2022-02-17T08:29:57.000Z
#!/usr/bin/env python from setuptools import setup, find_packages from CiscoAutomationFramework import __version__ description = '''The CiscoAutomationFramework is designed to be an interface for network engineers to issue commands and retrieve output from Cisco devices regardless of firmware so they can easily build...
39.62069
113
0.736292
131
1,149
6.358779
0.70229
0.028812
0
0
0
0
0
0
0
0
0
0.008448
0.175805
1,149
28
114
41.035714
0.871172
0.017406
0
0
0
0
0.617021
0.042553
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
546f6bbbd02ffcffa4fd891fbf6732da98ff2594
5,722
py
Python
tests/test_sorted_list.py
mrsndmn/PyGM
7ff8e5f9f8395b48494ff6558f3b9480367b7d3e
[ "Apache-2.0" ]
169
2020-07-11T21:01:15.000Z
2022-02-02T10:15:50.000Z
tests/test_sorted_list.py
mrsndmn/PyGM
7ff8e5f9f8395b48494ff6558f3b9480367b7d3e
[ "Apache-2.0" ]
2
2020-12-11T19:07:26.000Z
2021-04-16T19:19:55.000Z
tests/test_sorted_list.py
mrsndmn/PyGM
7ff8e5f9f8395b48494ff6558f3b9480367b7d3e
[ "Apache-2.0" ]
6
2020-07-11T20:51:13.000Z
2021-09-04T09:50:32.000Z
import bisect import random from array import array import pytest from pygm import SortedList def test_len(): assert len(SortedList([1, 2, 3])) == 3 assert len(SortedList([3, 1, 4, 3])) == 4 assert len(SortedList([1] * 10)) == 10 def test_init(): assert SortedList() == [] assert SortedList([]) ...
32.697143
77
0.55173
956
5,722
3.257322
0.111925
0.154143
0.012524
0.011561
0.480411
0.342004
0.238279
0.206166
0.180475
0.159923
0
0.156522
0.236281
5,722
174
78
32.885057
0.556064
0
0
0.112782
0
0
0.010486
0
0
0
0
0
0.609023
1
0.135338
false
0
0.037594
0
0.172932
0
0
0
0
null
0
0
0
0
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
54741d8a73459b03dce2ce925e9d4feef4a08413
1,371
py
Python
public/public/TypDe/run_system.py
jsperezsalazar2001/TypDe_GUI
4b6e2d3de14d79888d0baf91c57bb5a874e3e28e
[ "MIT" ]
null
null
null
public/public/TypDe/run_system.py
jsperezsalazar2001/TypDe_GUI
4b6e2d3de14d79888d0baf91c57bb5a874e3e28e
[ "MIT" ]
null
null
null
public/public/TypDe/run_system.py
jsperezsalazar2001/TypDe_GUI
4b6e2d3de14d79888d0baf91c57bb5a874e3e28e
[ "MIT" ]
null
null
null
from training import run_final_model as predictive from prescriptive_model import run_final_model as prescriptive import pickle import numpy as np import json import sys if __name__ == '__main__': #filename = 'public\\TypDe\\training\\load_model\\finalized_model.sav' filename = 'public/TypDe/training/load_mode...
52.730769
106
0.673961
217
1,371
4.041475
0.281106
0.093501
0.126568
0.155074
0.421893
0.371722
0.371722
0.36488
0.36488
0.244014
0
0.061909
0.151714
1,371
25
107
54.84
0.692175
0.121809
0
0
0
0
0.128068
0.107791
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
5476a94d213181f59211768f08fb7c3db8ac35af
929
py
Python
3/test_directions.py
msuriar/adventofcode2015
7edab68357e0559660c4435551b5b0d6a340f6a4
[ "BSD-2-Clause" ]
1
2021-05-16T13:42:24.000Z
2021-05-16T13:42:24.000Z
3/test_directions.py
msuriar/adventofcode2015
7edab68357e0559660c4435551b5b0d6a340f6a4
[ "BSD-2-Clause" ]
null
null
null
3/test_directions.py
msuriar/adventofcode2015
7edab68357e0559660c4435551b5b0d6a340f6a4
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import directions import unittest class TestDirections(unittest.TestCase): def test_empty_string(self): course = '' want = 1 houses = directions.traverse(course) got = houses.have_presents() self.assertEqual(got, want) def test_double_move(self)...
22.119048
47
0.604952
101
929
5.356436
0.366337
0.051756
0.177449
0.221811
0.593346
0.593346
0.593346
0.593346
0.593346
0.593346
0
0.009077
0.288482
929
41
48
22.658537
0.80938
0.022605
0
0.448276
0
0
0.015436
0
0
0
0
0
0.137931
1
0.137931
false
0
0.068966
0
0.241379
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
547d746b1cde4aa97e2fb77accc416874574401e
4,069
py
Python
enstools/post/ConvectiveAdjustmentTimescale.py
wavestoweather/enstools
d0f612b0187b0ad54dfbbb78aa678564f46eaedf
[ "Apache-2.0" ]
5
2021-12-16T14:08:00.000Z
2022-03-02T14:08:10.000Z
enstools/post/ConvectiveAdjustmentTimescale.py
wavestoweather/enstools
d0f612b0187b0ad54dfbbb78aa678564f46eaedf
[ "Apache-2.0" ]
null
null
null
enstools/post/ConvectiveAdjustmentTimescale.py
wavestoweather/enstools
d0f612b0187b0ad54dfbbb78aa678564f46eaedf
[ "Apache-2.0" ]
null
null
null
import numpy as np import xarray from numpy.ma.core import default_fill_value from scipy import ndimage from enstools.core import check_arguments from enstools.misc import count_ge from enstools.core.parallelisation import apply_chunkwise @check_arguments(units={"pr": "kg m-2 s-1", "cape": "J ...
41.948454
120
0.637749
562
4,069
4.516014
0.355872
0.047281
0.056738
0.068558
0.227344
0.135934
0.114263
0.114263
0.081166
0.081166
0
0.036743
0.257557
4,069
96
121
42.385417
0.803376
0.5768
0
0.142857
0
0
0.04317
0
0
0
0
0.010417
0
1
0.057143
false
0
0.2
0
0.342857
0
0
0
0
null
0
0
0
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
54803c79b830b855ed972d917a2d1d828b6fe966
2,635
py
Python
app/resources/auth.py
hazzillrodriguez/flask-auth-api
432b6a0ffde95325cae278b394c399aa19003c77
[ "MIT" ]
null
null
null
app/resources/auth.py
hazzillrodriguez/flask-auth-api
432b6a0ffde95325cae278b394c399aa19003c77
[ "MIT" ]
null
null
null
app/resources/auth.py
hazzillrodriguez/flask-auth-api
432b6a0ffde95325cae278b394c399aa19003c77
[ "MIT" ]
null
null
null
from flask import make_response, request, jsonify from flask_restx import Resource, Namespace, fields from flask_jwt_extended import create_access_token, create_refresh_token, jwt_required, get_jwt_identity from app.resources.errors import InternalServerError, EmailAlreadyExistsError, EmailIsInvalidError, PasswordLen...
28.641304
138
0.768121
313
2,635
6.271566
0.297125
0.050433
0.025981
0.023434
0.199694
0.199694
0.098828
0.098828
0.098828
0
0
0.003072
0.135104
2,635
92
139
28.641304
0.858271
0
0
0.306667
0
0
0.075873
0
0
0
0
0
0
1
0.04
false
0.146667
0.106667
0
0.226667
0
0
0
0
null
0
0
0
0
0
0
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
548137ef8fdc5f6fa782e0a06a950a839b58a1a2
5,476
py
Python
estrategias/Adriano1.py
cadualves/jogos_vorazes
e8caf062fc58b6188e94152084383940c96dba9a
[ "MIT" ]
8
2017-10-11T19:49:28.000Z
2021-06-16T12:20:39.000Z
estrategias/Adriano1.py
cadualves/jogos_vorazes
e8caf062fc58b6188e94152084383940c96dba9a
[ "MIT" ]
6
2017-02-02T18:26:34.000Z
2018-11-08T16:32:52.000Z
estrategias/Adriano1.py
cadualves/jogos_vorazes
e8caf062fc58b6188e94152084383940c96dba9a
[ "MIT" ]
26
2016-01-15T16:20:57.000Z
2018-12-11T21:32:57.000Z
# coding: utf8 from estrategias.jogadores import Jogador """ Jogador básico O seu Jogador deve ser implementado como uma subclasse de Jogador, porem com o seu nome (p.ex. JoseSilva) como nome a classe. A subclasse deve reimplementar os métodos escolha_de_cacada, resultado_da_cacada e """ class MeuJogador(Jogad...
39.681159
118
0.593682
672
5,476
4.688988
0.302083
0.030467
0.031419
0.024754
0.27769
0.1755
0.121866
0.097112
0.072358
0.024754
0
0.031632
0.341855
5,476
137
119
39.970803
0.842675
0.312454
0
0.367647
0
0
0.00123
0
0
0
0
0.036496
0
1
0.058824
false
0.014706
0.014706
0
0.102941
0
0
0
0
null
0
0
0
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
5481e85bac4d4c1bfdc1dd51c20e391ec246ad65
4,973
py
Python
labelbox/data/serialization/labelbox_v1/classification.py
Cyniikal/labelbox-python
526fb8235c245a3c6161af57c354a47d68385bab
[ "Apache-2.0" ]
null
null
null
labelbox/data/serialization/labelbox_v1/classification.py
Cyniikal/labelbox-python
526fb8235c245a3c6161af57c354a47d68385bab
[ "Apache-2.0" ]
null
null
null
labelbox/data/serialization/labelbox_v1/classification.py
Cyniikal/labelbox-python
526fb8235c245a3c6161af57c354a47d68385bab
[ "Apache-2.0" ]
null
null
null
from typing import List, Union from pydantic.main import BaseModel from .feature import LBV1Feature from ...annotation_types.annotation import ClassificationAnnotation from ...annotation_types.classification import Checklist, ClassificationAnswer, Radio, Text, Dropdown from ...annotation_types.types import Cuid cla...
36.566176
101
0.574703
411
4,973
6.80292
0.150852
0.054363
0.064378
0.032189
0.268598
0.181688
0.15093
0.090129
0.051502
0.051502
0
0.011091
0.347275
4,973
135
102
36.837037
0.850277
0
0
0.203704
0
0
0.034185
0.009652
0
0
0
0
0
1
0.12037
false
0
0.055556
0.101852
0.398148
0
0
0
0
null
0
0
0
0
0
0
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
54863cbb9645bbf88fb4a578498d79722556a2c5
4,535
py
Python
vendor/createrepo/createrepo/readMetadata.py
alekseysavitskiy/rpm-s3
981fb1724b381fd7437c1428e9454864b56262d5
[ "BSD-2-Clause" ]
59
2015-05-15T16:20:59.000Z
2022-03-02T17:50:24.000Z
vendor/createrepo/createrepo/readMetadata.py
alekseysavitskiy/rpm-s3
981fb1724b381fd7437c1428e9454864b56262d5
[ "BSD-2-Clause" ]
21
2015-05-14T07:01:48.000Z
2019-01-29T14:50:49.000Z
vendor/createrepo/createrepo/readMetadata.py
alekseysavitskiy/rpm-s3
981fb1724b381fd7437c1428e9454864b56262d5
[ "BSD-2-Clause" ]
44
2015-05-13T21:01:47.000Z
2022-03-29T14:21:19.000Z
#!/usr/bin/python -t # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that i...
35.992063
99
0.588754
548
4,535
4.740876
0.385037
0.036952
0.017321
0.025019
0.204003
0.157814
0.06736
0
0
0
0
0.007752
0.31731
4,535
125
100
36.28
0.831395
0.180595
0
0.130952
0
0
0.09467
0
0
0
0
0
0
0
null
null
0
0.083333
null
null
0.119048
0
0
0
null
0
0
0
0
0
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
548a1a8000aec09c53d5594873668162aeaacb35
16,624
py
Python
test/python/WMCore_t/DataStructs_t/Subscription_t.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
test/python/WMCore_t/DataStructs_t/Subscription_t.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
test/python/WMCore_t/DataStructs_t/Subscription_t.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
#!/usr/bin/env python """ _Subscription_t_ Testcase for the Subscription class """ from builtins import str, range import random import unittest from WMCore.DataStructs.File import File from WMCore.DataStructs.Fileset import Fileset from WMCore.DataStructs.Run import Run from WMCore.DataStructs.Subscription import ...
42.845361
137
0.642986
1,821
16,624
5.862713
0.110379
0.157362
0.037936
0.01686
0.758711
0.722649
0.678344
0.584395
0.521263
0.499157
0
0.020964
0.271174
16,624
387
138
42.956072
0.860185
0.226299
0
0.482759
0
0.014778
0.138422
0.008321
0
0
0
0
0.172414
1
0.059113
false
0.004926
0.039409
0
0.108374
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
548ddbc42064d62ed87f7a0c2419404fe0f55150
1,310
py
Python
accounts/tests.py
marprezd/api-weather
1ed0fea5956439b6a32413e85048c2236044e7c4
[ "MIT" ]
null
null
null
accounts/tests.py
marprezd/api-weather
1ed0fea5956439b6a32413e85048c2236044e7c4
[ "MIT" ]
null
null
null
accounts/tests.py
marprezd/api-weather
1ed0fea5956439b6a32413e85048c2236044e7c4
[ "MIT" ]
null
null
null
# api-weather/accounts/tests.py from django.contrib.auth import get_user_model from django.test import TestCase class CustomUserTests(TestCase): """This class extends TestCase and tests whether users can be created with or without administrative privileges. Args: TestCase ([type]): [description] ...
35.405405
81
0.667176
145
1,310
5.862069
0.358621
0.042353
0.042353
0.081176
0.227059
0
0
0
0
0
0
0.00996
0.233588
1,310
37
82
35.405405
0.836653
0.140458
0
0.148148
0
0
0.134058
0.07971
0
0
0
0
0.37037
1
0.074074
false
0.074074
0.074074
0
0.185185
0
0
0
0
null
0
0
0
0
0
0
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
548f64716a942137006c5a3772b6e2e663615048
1,044
py
Python
pymus/sisa/f0_tracking/estimator.py
jakobabesser/pymus
bb61edfabbbc8b1016b558c8fe35ceb3817984ad
[ "MIT" ]
null
null
null
pymus/sisa/f0_tracking/estimator.py
jakobabesser/pymus
bb61edfabbbc8b1016b558c8fe35ceb3817984ad
[ "MIT" ]
3
2015-03-29T20:14:22.000Z
2016-02-02T21:24:00.000Z
pymus/sisa/f0_tracking/estimator.py
jakobabesser/pymus
bb61edfabbbc8b1016b558c8fe35ceb3817984ad
[ "MIT" ]
null
null
null
from .f0_tracking_peak_tracking import F0TrackerPeakTrackingAbesserDAFX2014 __author__ = 'Jakob Abesser' class F0Tracker: """ Wrapper function for fundamental frequency tracker """ def __init__(self): pass @staticmethod def process(samples, sample_rate, p...
32.625
111
0.435824
63
1,044
6.920635
0.666667
0.068807
0.091743
0.110092
0.192661
0.192661
0.192661
0
0
0
0
0.035294
0.511494
1,044
31
112
33.677419
0.819608
0.047893
0
0.380952
0
0
0.105102
0
0
0
0
0
0
1
0.095238
false
0.047619
0.047619
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
54904208d77dc2031e2517f5a2ad45a3f8a568de
1,556
py
Python
orchestrator/migrations/versions/schema/2021-11-17_19cdd3ab86f6_fix_parse_websearch.py
florisie/orchestrator-core
7a5a997fc809cdf53dc942d1ee1fa945de4eb4d8
[ "Apache-2.0" ]
15
2021-02-18T15:30:25.000Z
2022-02-19T18:57:51.000Z
orchestrator/migrations/versions/schema/2021-11-17_19cdd3ab86f6_fix_parse_websearch.py
florisie/orchestrator-core
7a5a997fc809cdf53dc942d1ee1fa945de4eb4d8
[ "Apache-2.0" ]
70
2021-02-24T17:59:23.000Z
2022-03-31T08:24:56.000Z
orchestrator/migrations/versions/schema/2021-11-17_19cdd3ab86f6_fix_parse_websearch.py
florisie/orchestrator-core
7a5a997fc809cdf53dc942d1ee1fa945de4eb4d8
[ "Apache-2.0" ]
6
2021-02-23T18:10:15.000Z
2022-02-15T16:07:38.000Z
"""fix_parse_websearch. Revision ID: 19cdd3ab86f6 Revises: 6896a54e9483 Create Date: 2021-11-17 21:23:09.959694 """ from alembic import op # revision identifiers, used by Alembic. revision = "19cdd3ab86f6" down_revision = "6896a54e9483" branch_labels = None depends_on = None def upgrade() -> None: command = ""...
30.509804
97
0.511568
142
1,556
5.457746
0.521127
0.108387
0.058065
0.059355
0.296774
0.296774
0.20129
0
0
0
0
0.057297
0.405527
1,556
50
98
31.12
0.780541
0.095758
0
0.111111
0
0
0.833452
0.160829
0
0
0
0
0
1
0.055556
false
0
0.027778
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5491672aaacc47d79cd598167ffc71acb67f4987
19,823
py
Python
python/en/archive/books/jump2python/j2p-05_6_1-import_modules.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/books/jump2python/j2p-05_6_1-import_modules.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/books/jump2python/j2p-05_6_1-import_modules.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ j2p-05_6-import_modules.py p.251, 05-6. 외장 함수 The Python Standard Library¶ https://docs.python.org/3/library/index.html Copy & Paste the commands in this script. 이 스크립트의 명령어는 복사해서 Python prompt >>> 에 붙이기로 실행. """ #%% sys # sys 모듈로 파이썬 인터프리터가 제공하는 변수와 함수를 직접 제어할 수 있다. ...
31.869775
400
0.508904
2,945
19,823
3.398642
0.274363
0.029374
0.039564
0.028774
0.442302
0.40024
0.354681
0.306624
0.282246
0.282246
0
0.155499
0.3051
19,823
622
401
31.869775
0.570962
0.739848
0
0.333333
0
0
0.060494
0.007746
0
0
0
0.001608
0
0
null
null
0
0.21875
null
null
0.09375
0
0
0
null
0
0
0
0
0
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
54926735c6cdedbde8a8889555d41a2f9ce39d73
4,670
py
Python
openbox/push_message_receiver.py
shlomos/obsi
b1fccb6cef6c28f39371954f7f98fefa22b4144a
[ "Apache-2.0" ]
null
null
null
openbox/push_message_receiver.py
shlomos/obsi
b1fccb6cef6c28f39371954f7f98fefa22b4144a
[ "Apache-2.0" ]
null
null
null
openbox/push_message_receiver.py
shlomos/obsi
b1fccb6cef6c28f39371954f7f98fefa22b4144a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2015 Pavel Lazar pavel.lazar (at) gmail.com # # The Software is provided WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED. ##################################################################### """ An implementation of an Execution Engine Push Message Receiver. """ import json import soc...
32.657343
108
0.634261
538
4,670
5.232342
0.27881
0.035524
0.063943
0.025577
0.250444
0.157726
0.129307
0.028419
0.028419
0
0
0.00609
0.26167
4,670
142
109
32.887324
0.810325
0.08394
0
0.304762
0
0
0.015742
0
0
0
0
0
0
0
null
null
0.019048
0.057143
null
null
0.009524
0
0
0
null
0
0
0
0
0
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
549a2874efa16cbccab9bc128ecf5c91149045c8
3,744
py
Python
django_facebook/settings.py
gilsonbp/Django-facebook
7c6900be332f4e9e2ac66a37de5d94d7edfbd3dc
[ "BSD-3-Clause" ]
2
2020-05-16T12:47:40.000Z
2020-07-12T05:47:12.000Z
django_facebook/settings.py
gilsonbp/Django-facebook
7c6900be332f4e9e2ac66a37de5d94d7edfbd3dc
[ "BSD-3-Clause" ]
null
null
null
django_facebook/settings.py
gilsonbp/Django-facebook
7c6900be332f4e9e2ac66a37de5d94d7edfbd3dc
[ "BSD-3-Clause" ]
1
2021-12-20T08:57:02.000Z
2021-12-20T08:57:02.000Z
from django.conf import settings import logging logger = logging.getLogger(__name__) # : Your facebook app id FACEBOOK_APP_ID = getattr(settings, 'FACEBOOK_APP_ID', None) # : Your facebook app secret FACEBOOK_APP_SECRET = getattr(settings, 'FACEBOOK_APP_SECRET', None) # : The default scope we should use, note that re...
40.695652
114
0.784722
475
3,744
5.865263
0.326316
0.129218
0.198134
0.03733
0.213927
0.081838
0.081838
0.081838
0.081838
0.081838
0
0.001562
0.145032
3,744
91
115
41.142857
0.868791
0.297009
0
0.088889
0
0
0.315567
0.245782
0
0
0
0
0
1
0
false
0
0.044444
0
0.044444
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
549d6c19249463d9ca32c9a0dc37487ed25a1b1e
530
py
Python
hackerearth/Algorithms/Benny and Gifts/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerearth/Algorithms/Benny and Gifts/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerearth/Algorithms/Benny and Gifts/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ # Write your code here s = input() points = [(0, 0)] x = y = 0 for...
21.2
94
0.530189
80
530
3.5125
0.625
0.014235
0.042705
0.071174
0
0
0
0
0
0
0
0.019553
0.324528
530
24
95
22.083333
0.765363
0.501887
0
0
0
0
0.011719
0
0
0
0
0.041667
0
1
0
false
0
0
0
0
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
549f2a01c712cccb230808188d792cca4326095d
674
py
Python
carProject/carApp/migrations/0001_initial.py
cs-fullstack-2019-spring/django-validation-cw-cgarciapieto
51df6fbd8d4e5ad878c4a620ca822ecd9df55711
[ "Apache-2.0" ]
null
null
null
carProject/carApp/migrations/0001_initial.py
cs-fullstack-2019-spring/django-validation-cw-cgarciapieto
51df6fbd8d4e5ad878c4a620ca822ecd9df55711
[ "Apache-2.0" ]
null
null
null
carProject/carApp/migrations/0001_initial.py
cs-fullstack-2019-spring/django-validation-cw-cgarciapieto
51df6fbd8d4e5ad878c4a620ca822ecd9df55711
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2 on 2019-02-28 17:57 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='CarModel', fields=[ ('id', models.AutoField(a...
26.96
114
0.569733
68
674
5.544118
0.661765
0.095491
0.095491
0.127321
0.143236
0
0
0
0
0
0
0.059322
0.299703
674
24
115
28.083333
0.739407
0.063798
0
0
1
0
0.044515
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.294118
0
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
54a43f6ca2b09e6ff0c51515822cb70d635612d9
899
py
Python
plugin/vimp/variables.py
jbohren-forks/vim-ros
f613737926699778d6e48d518779cffe0372d015
[ "MIT" ]
null
null
null
plugin/vimp/variables.py
jbohren-forks/vim-ros
f613737926699778d6e48d518779cffe0372d015
[ "MIT" ]
null
null
null
plugin/vimp/variables.py
jbohren-forks/vim-ros
f613737926699778d6e48d518779cffe0372d015
[ "MIT" ]
null
null
null
import vim from . import escape class _Variables(dict): """ Provides dict-style access to Vim's internal variables. Dictionary keys should be strings of the form 'S:NNN', where 'S' is the name space (see :help internal-variables) and 'NNN' is the variable name. """ def __init__(self): ...
26.441176
75
0.595106
115
899
4.356522
0.478261
0.055888
0.051896
0.047904
0.175649
0.175649
0.175649
0.175649
0.175649
0.175649
0
0.007704
0.278087
899
33
76
27.242424
0.764253
0.223582
0
0.3
0
0
0.050445
0
0
0
0
0
0
1
0.25
false
0
0.1
0.05
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
54a566e648309866fae337333e70eef52ac93d4b
2,732
py
Python
NeatConfig.py
Jaimeetxebarria/pyNEAT
f5ac236fa526cda51af2b57440dd59a34abbc648
[ "Apache-2.0" ]
null
null
null
NeatConfig.py
Jaimeetxebarria/pyNEAT
f5ac236fa526cda51af2b57440dd59a34abbc648
[ "Apache-2.0" ]
null
null
null
NeatConfig.py
Jaimeetxebarria/pyNEAT
f5ac236fa526cda51af2b57440dd59a34abbc648
[ "Apache-2.0" ]
null
null
null
import json import os ROOT_DIR = os.path.dirname(os.curdir) class NeatConfig: """ Configuration settings for neat """ # Default values population_size = 10 target_species = 10 input_neurons = 0 output_neurons = 0 network_activation_type = "snapshot" bias_mode = "single" sigmoid_ac...
30.021978
100
0.68265
324
2,732
5.438272
0.450617
0.047673
0.047673
0.025539
0.03462
0.023837
0
0
0
0
0
0.035662
0.250732
2,732
90
101
30.355556
0.82511
0.051977
0
0.057971
0
0
0.11938
0.018605
0
0
0
0
0
1
0.014493
false
0.028986
0.028986
0
0.768116
0.028986
0
0
0
null
0
0
0
0
0
0
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
54a9b4ea8cc072b7daa5f712a166383222d68860
949
py
Python
Tests/test_class.py
psydox/Pyjion
ddf69db27b356710ff7db3c4ba9c3e0b55de1039
[ "MIT" ]
1,137
2020-10-14T10:24:18.000Z
2022-03-31T09:37:03.000Z
Tests/test_class.py
psydox/Pyjion
ddf69db27b356710ff7db3c4ba9c3e0b55de1039
[ "MIT" ]
310
2016-05-21T05:30:23.000Z
2022-03-21T00:59:57.000Z
Tests/test_class.py
psydox/Pyjion
ddf69db27b356710ff7db3c4ba9c3e0b55de1039
[ "MIT" ]
55
2016-05-20T06:11:28.000Z
2022-03-15T12:48:00.000Z
def test_add(): class Number: def __add__(self, other): return 4 + other def __radd__(self, other): return other + 4 a = Number() assert 3 + a == 7 assert a + 3 == 7 def test_inheritance(): class Node(object): def __init__(self, a, b, c): ...
22.069767
84
0.500527
121
949
3.661157
0.297521
0.06772
0.06772
0.054176
0.14447
0.14447
0.14447
0.14447
0.14447
0.14447
0
0.079932
0.3804
949
43
85
22.069767
0.673469
0
0
0.25
0
0
0.063224
0.027397
0
0
0
0
0.09375
1
0.25
false
0
0
0.0625
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
54a9c45436eea2601c28315758f056e375d1898c
984
py
Python
mlperf_logging/rcp_checker/__main__.py
ahmadki/logging
c5da91efae1dd514e207e6e0b3725b103ee9d28b
[ "Apache-2.0" ]
9
2021-02-08T14:58:45.000Z
2022-03-06T19:32:52.000Z
mlperf_logging/rcp_checker/__main__.py
ahmadki/logging
c5da91efae1dd514e207e6e0b3725b103ee9d28b
[ "Apache-2.0" ]
137
2020-12-07T19:38:47.000Z
2022-03-31T18:59:19.000Z
mlperf_logging/rcp_checker/__main__.py
ahmadki/logging
c5da91efae1dd514e207e6e0b3725b103ee9d28b
[ "Apache-2.0" ]
22
2020-11-25T01:56:41.000Z
2022-03-08T18:38:41.000Z
import sys import logging from . import rcp_checker parser = rcp_checker.get_parser() args = parser.parse_args() logging.basicConfig(filename=args.log_output, level=logging.INFO) logging.getLogger().addHandler(logging.StreamHandler()) formatter = logging.Formatter("%(levelname)s - %(message)s") logging.getLogger().h...
35.142857
137
0.76626
140
984
5.242857
0.492857
0.040872
0.053134
0.057221
0.108992
0.108992
0.108992
0.108992
0.108992
0
0
0.004587
0.113821
984
27
138
36.444444
0.837156
0.057927
0
0.1
0
0.05
0.224026
0
0
0
0
0
0
1
0
false
0.1
0.15
0
0.15
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
54ab9a926719a515419938435a8146e18529791e
1,881
py
Python
eda5/zaznamki/migrations/0001_initial.py
vasjapavlovic/eda5
bc4b387b24239ea1dfb927657f05ddabbf707479
[ "BSD-3-Clause" ]
null
null
null
eda5/zaznamki/migrations/0001_initial.py
vasjapavlovic/eda5
bc4b387b24239ea1dfb927657f05ddabbf707479
[ "BSD-3-Clause" ]
null
null
null
eda5/zaznamki/migrations/0001_initial.py
vasjapavlovic/eda5
bc4b387b24239ea1dfb927657f05ddabbf707479
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('delovninalogi', '0001_initial'), ('reklamacije', '0001_initial'), ('dogodki', '0001_initial'), ('povprasevanje', '000...
43.744186
114
0.584264
169
1,881
6.372781
0.349112
0.081708
0.148561
0.178273
0.259981
0.259981
0.259981
0
0
0
0
0.023538
0.254652
1,881
42
115
44.785714
0.744651
0.011164
0
0
0
0
0.269645
0.053283
0
0
0
0
0
1
0
false
0
0.055556
0
0.138889
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
54ad6849241b6022052928b0faa9392dbfd65c92
444
py
Python
powerpages/apps.py
Open-E-WEB/django-powerpages
b4e09bf4053fae141194bc7b58d3402f3af64da0
[ "MIT" ]
8
2016-10-07T15:33:23.000Z
2019-07-07T18:21:56.000Z
powerpages/apps.py
Open-E-WEB/django-powerpages
b4e09bf4053fae141194bc7b58d3402f3af64da0
[ "MIT" ]
7
2016-10-14T11:53:41.000Z
2021-03-25T21:27:47.000Z
powerpages/apps.py
Open-E-WEB/django-powerpages
b4e09bf4053fae141194bc7b58d3402f3af64da0
[ "MIT" ]
2
2017-01-22T11:03:11.000Z
2020-11-05T11:20:17.000Z
# -*- coding=utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class PowerPagesConfig(AppConfig): name = 'powerpages' verbose_name = _('CMS') def ready(self): """Register website data and add default templ...
24.666667
64
0.711712
47
444
6.531915
0.723404
0.065147
0
0
0
0
0
0
0
0
0
0.002849
0.209459
444
17
65
26.117647
0.871795
0.243243
0
0
0
0
0.039514
0
0
0
0
0
0
1
0.111111
false
0
0.444444
0
0.888889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
54b59b0293d795d58632c81cf395691863e74f03
7,003
py
Python
cde-root/usr/lib64/python2.4/site-packages/Bio/SeqIO/PirIO.py
NirBenTalLab/proorigami-cde-package
273379075830a9b94d3f2884661a54f853777ff6
[ "MIT" ]
null
null
null
cde-root/usr/lib64/python2.4/site-packages/Bio/SeqIO/PirIO.py
NirBenTalLab/proorigami-cde-package
273379075830a9b94d3f2884661a54f853777ff6
[ "MIT" ]
null
null
null
cde-root/usr/lib64/python2.4/site-packages/Bio/SeqIO/PirIO.py
NirBenTalLab/proorigami-cde-package
273379075830a9b94d3f2884661a54f853777ff6
[ "MIT" ]
null
null
null
# Copyright 2008-2009 by Peter Cock. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. # # This module is for reading and writing PIR or NBRF format files as # SeqRecord objects. ...
38.26776
98
0.69713
874
7,003
5.538902
0.495423
0.00723
0.011155
0.008676
0.015286
0.015286
0.015286
0
0
0
0
0.009689
0.233614
7,003
182
99
38.478022
0.892305
0.094531
0
0.096774
0
0
0.140391
0.008822
0
0
0
0
0.032258
0
null
null
0
0.080645
null
null
0.064516
0
0
0
null
0
0
0
0
0
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
54b9490227ce4e0524ee51f8a364b060027ac60c
1,232
py
Python
jigls/jeditor/jdantic.py
ironWolf1990/python-jils
87390cf871329e9a47f985b4f0c9fc9506bfdb91
[ "MIT" ]
2
2021-04-08T14:57:58.000Z
2021-07-26T00:57:49.000Z
jigls/jeditor/jdantic.py
ironWolf1990/python-jils
87390cf871329e9a47f985b4f0c9fc9506bfdb91
[ "MIT" ]
null
null
null
jigls/jeditor/jdantic.py
ironWolf1990/python-jils
87390cf871329e9a47f985b4f0c9fc9506bfdb91
[ "MIT" ]
3
2021-05-19T18:48:57.000Z
2021-07-26T00:55:23.000Z
from os import name from typing import Any, Callable, List, Dict, Optional from pydantic import BaseModel, create_model, ValidationError, validator from uuid import UUID from pprint import pprint from pydantic import BaseModel as PydanticBaseModel # from pydantic.types import UUID4 class JBaseModel(PydanticBaseMode...
19.870968
72
0.711039
134
1,232
6.462687
0.5
0.04157
0.04157
0.062356
0.053118
0
0
0
0
0
0
0.002079
0.219156
1,232
62
73
19.870968
0.898129
0.12987
0
0.128205
0
0
0.010319
0
0
0
0
0
0
1
0
false
0
0.153846
0
1
0.025641
0
0
0
null
0
0
0
0
0
0
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
54b9ddeb06907d572715dd52c7abd9015728f974
3,287
py
Python
IAMS/ssh_client.py
domischi/IAMS
397077e9673053dee824e7b838868d1e5d7b7406
[ "MIT" ]
null
null
null
IAMS/ssh_client.py
domischi/IAMS
397077e9673053dee824e7b838868d1e5d7b7406
[ "MIT" ]
null
null
null
IAMS/ssh_client.py
domischi/IAMS
397077e9673053dee824e7b838868d1e5d7b7406
[ "MIT" ]
null
null
null
## Handles the connection to the cluster import paramiko #Provides SSH functionality import os #Used to setup the Paramiko log file import logging #Used to setup the Paramiko log file import socket #This method requires that we create our own socket ## From https://stackoverflow.com/questions/...
38.22093
91
0.628537
390
3,287
5.123077
0.371795
0.027027
0.034034
0.014014
0.035035
0.035035
0.035035
0.035035
0
0
0
0.004545
0.263766
3,287
85
92
38.670588
0.821074
0.082446
0
0.027778
0
0
0.183572
0.034586
0
0
0
0
0.013889
1
0.069444
false
0.111111
0.055556
0
0.208333
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
54bafcb47f080edcb7be4e58489a9d068c947665
12,832
py
Python
control/gcs/return.py
CNRoboComp2020/XTDrone
d2d43b031df3a304c912c7d036f4e58c81ab9e54
[ "MIT" ]
457
2020-03-21T05:27:37.000Z
2022-03-30T12:05:52.000Z
control/gcs/return.py
CNRoboComp2020/XTDrone
d2d43b031df3a304c912c7d036f4e58c81ab9e54
[ "MIT" ]
29
2020-05-18T16:48:06.000Z
2022-03-31T05:43:24.000Z
control/gcs/return.py
CNRoboComp2020/XTDrone
d2d43b031df3a304c912c7d036f4e58c81ab9e54
[ "MIT" ]
121
2020-03-21T06:43:04.000Z
2022-03-31T12:27:29.000Z
import rospy import PyKDL from geometry_msgs.msg import Twist, Point, PoseStamped, TwistStamped from std_msgs.msg import String import numpy import math import sys import copy from gazebo_msgs.srv import GetModelState class ReturnHome: def __init__(self,uav_id): self.uav_type = 'typhoon_h480' self....
43.498305
181
0.57606
1,789
12,832
3.912241
0.131917
0.062009
0.079726
0.102872
0.570081
0.474496
0.35648
0.320331
0.291756
0.24132
0
0.027565
0.318656
12,832
295
182
43.498305
0.772961
0.041225
0
0.164609
0
0
0.020134
0.006349
0
0
0
0
0
0
null
null
0
0.037037
null
null
0.00823
0
0
0
null
0
0
0
0
0
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
54bce02a8dd71863f1434b3cc20afc97333c28f5
466
py
Python
Nomina/migrations/0006_auto_20170406_2042.py
miguel550/NominaApp
25caefa971c28f658f5ce40758fe49768170bf97
[ "MIT" ]
null
null
null
Nomina/migrations/0006_auto_20170406_2042.py
miguel550/NominaApp
25caefa971c28f658f5ce40758fe49768170bf97
[ "MIT" ]
null
null
null
Nomina/migrations/0006_auto_20170406_2042.py
miguel550/NominaApp
25caefa971c28f658f5ce40758fe49768170bf97
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-04-06 20:42 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Nomina', '0005_auto_20170406_2039'), ] operations = [ migrations.AlterField...
22.190476
58
0.628755
51
466
5.529412
0.823529
0
0
0
0
0
0
0
0
0
0
0.095376
0.257511
466
20
59
23.3
0.719653
0.145923
0
0
1
0
0.124051
0.058228
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
54bf1c5df019974e6172dcfad919efe3471d4a91
880
py
Python
apps/fhir/bluebutton/decorators.py
TransparentHealth/bluebutton-web-server
69b6e649b2e9caf7859a75ea3867bf74c83ca340
[ "Apache-2.0" ]
1
2020-01-26T16:02:27.000Z
2020-01-26T16:02:27.000Z
apps/fhir/bluebutton/decorators.py
TransparentHealth/bluebutton-web-server
69b6e649b2e9caf7859a75ea3867bf74c83ca340
[ "Apache-2.0" ]
null
null
null
apps/fhir/bluebutton/decorators.py
TransparentHealth/bluebutton-web-server
69b6e649b2e9caf7859a75ea3867bf74c83ca340
[ "Apache-2.0" ]
2
2018-09-29T18:53:08.000Z
2020-01-26T16:02:31.000Z
from functools import wraps from oauthlib.oauth2 import Server from oauth2_provider.oauth2_validators import OAuth2Validator from oauth2_provider.oauth2_backends import OAuthLibCore from .errors import build_error_response def require_valid_token(): def decorator(view_func): @wraps(view_func) d...
31.428571
80
0.681818
99
880
5.848485
0.505051
0.041451
0.062176
0.082902
0
0
0
0
0
0
0
0.015198
0.252273
880
27
81
32.592593
0.864742
0.060227
0
0
0
0
0.038788
0
0
0
0
0
0
1
0.166667
false
0
0.277778
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
54c4271592f98ea3f44d8a251e0126df2e4436eb
1,718
py
Python
src/grokcore/catalog/tests/functional/catalog/indexes_name.py
zopefoundation/grokcore.catalog
ccfa29610f2dbdde2f06a3ab9faea4d658388aa8
[ "ZPL-2.1" ]
1
2015-12-05T05:39:43.000Z
2015-12-05T05:39:43.000Z
src/grokcore/catalog/tests/functional/catalog/indexes_name.py
zopefoundation/grokcore.catalog
ccfa29610f2dbdde2f06a3ab9faea4d658388aa8
[ "ZPL-2.1" ]
4
2015-11-20T13:36:15.000Z
2021-04-20T12:10:06.000Z
src/grokcore/catalog/tests/functional/catalog/indexes_name.py
zopefoundation/grokcore.catalog
ccfa29610f2dbdde2f06a3ab9faea4d658388aa8
[ "ZPL-2.1" ]
4
2015-03-13T15:50:54.000Z
2018-01-12T06:15:40.000Z
""" Grok allows you to set up catalog indexes in your application with a special indexes declaration. We can specify the catalog name using grok.name. Let's set up a site in which we manage a couple of objects:: >>> herd = Herd() >>> getRootFolder()['herd'] = herd >>> from zope.component.hooks import setSite ...
26.430769
74
0.712456
222
1,718
5.472973
0.400901
0.08642
0.019753
0.041152
0.064198
0.064198
0
0
0
0
0
0
0.180442
1,718
64
75
26.84375
0.862926
0.632712
0
0
0
0
0.017657
0
0
0
0
0
0
1
0.105263
false
0.052632
0.157895
0.052632
0.631579
0
0
0
0
null
0
0
0
0
0
0
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
54c6f8c0e70bee8ff722491b2c2e0b05dcefcec0
7,007
py
Python
exatomic/gaussian/tests/test_output.py
tjduigna/exatomic
3e27233084588bc6a58b63fc81aaf5a6b67a968d
[ "Apache-2.0" ]
null
null
null
exatomic/gaussian/tests/test_output.py
tjduigna/exatomic
3e27233084588bc6a58b63fc81aaf5a6b67a968d
[ "Apache-2.0" ]
1
2017-05-25T21:05:40.000Z
2017-05-25T23:54:15.000Z
exatomic/gaussian/tests/test_output.py
tjduigna/exatomic
3e27233084588bc6a58b63fc81aaf5a6b67a968d
[ "Apache-2.0" ]
1
2017-05-25T20:48:33.000Z
2017-05-25T20:48:33.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015-2018, Exa Analytics Development Team # Distributed under the terms of the Apache License 2.0 #import os import numpy as np import pandas as pd from unittest import TestCase from exatomic import gaussian from exatomic.base import resource from exatomic.gaussian import Output...
42.466667
70
0.661053
981
7,007
4.598369
0.122324
0.069164
0.126358
0.126358
0.738417
0.590335
0.529151
0.460208
0.407227
0.375748
0
0.042203
0.201941
7,007
164
71
42.72561
0.764485
0.074212
0
0.167939
0
0
0.03027
0.007606
0
0
0
0.006098
0.473282
1
0.122137
false
0
0.045802
0
0.183206
0
0
0
0
null
0
0
0
0
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
49a6a184f3dfa56a08867cab5ec6fecc8e9c96de
14,974
py
Python
pcdsdevices/pump.py
dlzhu/pcdsdevices
d88cdecc550aae81575151e722173949f35b2a93
[ "BSD-3-Clause-LBNL" ]
null
null
null
pcdsdevices/pump.py
dlzhu/pcdsdevices
d88cdecc550aae81575151e722173949f35b2a93
[ "BSD-3-Clause-LBNL" ]
null
null
null
pcdsdevices/pump.py
dlzhu/pcdsdevices
d88cdecc550aae81575151e722173949f35b2a93
[ "BSD-3-Clause-LBNL" ]
null
null
null
""" Standard classes for LCLS Pumps. """ import logging from ophyd import Component as Cpt from ophyd import Device, EpicsSignal, EpicsSignalRO, EpicsSignalWithRBV from ophyd import FormattedComponent as FCpt from .doc_stubs import IonPump_base from .interface import BaseInterface logger = logging.getLogger(__name__...
42.539773
79
0.641445
1,706
14,974
5.444314
0.165299
0.130922
0.043389
0.014643
0.165913
0.099483
0.093885
0.078596
0.078596
0.071598
0
0.001619
0.216175
14,974
351
80
42.660969
0.789725
0.077601
0
0.146444
0
0
0.242395
0.010115
0
0
0
0
0
1
0.050209
false
0
0.025105
0.008368
0.778243
0
0
0
0
null
0
0
0
0
0
0
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
49a94e9a8e891d9c5a56b63e7fa56f6149247007
64,150
py
Python
pyfiles/add_flight.py
Russell-A/course-design
1a0c5954e5a7ca7835739ce59baf17771e62b74f
[ "MIT" ]
4
2020-06-07T07:45:43.000Z
2020-07-01T10:53:47.000Z
pyfiles/add_flight.py
Russell-A/course-design
1a0c5954e5a7ca7835739ce59baf17771e62b74f
[ "MIT" ]
null
null
null
pyfiles/add_flight.py
Russell-A/course-design
1a0c5954e5a7ca7835739ce59baf17771e62b74f
[ "MIT" ]
3
2020-05-18T13:06:47.000Z
2020-07-02T13:29:45.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file add_flight.ui # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets, QtSql import PyQt5.QtSql from PyQt5.QtWidgets import QMessageBox class Ui_Dialo...
60.805687
137
0.42424
4,877
64,150
5.404142
0.087759
0.017074
0.036766
0.023372
0.743626
0.63606
0.499014
0.394407
0.25626
0.143307
0
0.037341
0.464396
64,150
1,054
138
60.863378
0.729736
0.002822
0
0.473327
1
0.00291
0.34567
0.128827
0
0
0
0
0
1
0.00388
false
0
0.00291
0
0.007759
0.00194
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
49aedb7732f5205b82ddc580f238553f98e8e3d0
38,877
py
Python
google/appengine/ext/mapreduce/input_readers.py
lann/python-google-appengine
2f1fe26e8429f491b034a5417f7c0c8f3a0247ab
[ "Apache-2.0" ]
1
2015-10-28T21:28:29.000Z
2015-10-28T21:28:29.000Z
google/appengine/ext/mapreduce/input_readers.py
lann/python-google-appengine
2f1fe26e8429f491b034a5417f7c0c8f3a0247ab
[ "Apache-2.0" ]
null
null
null
google/appengine/ext/mapreduce/input_readers.py
lann/python-google-appengine
2f1fe26e8429f491b034a5417f7c0c8f3a0247ab
[ "Apache-2.0" ]
5
2016-05-26T18:35:17.000Z
2020-04-15T06:53:24.000Z
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
33.543572
84
0.686396
5,070
38,877
5.015779
0.105523
0.02674
0.011011
0.008691
0.568109
0.523791
0.485922
0.456862
0.428785
0.4035
0
0.003318
0.240245
38,877
1,158
85
33.572539
0.857636
0.014636
0
0.47351
0
0
0.04825
0.005343
0
0
0
0
0
0
null
null
0.001656
0.02649
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
49afaa4c243ce3d243eb01ffa2f3d32195f15f70
4,284
py
Python
sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/_container_registry.py
mrwbarg/azure-sdk-for-python
ecfd1093cd623040d1359444d76ac0b57a786f63
[ "MIT" ]
1
2022-01-06T11:59:38.000Z
2022-01-06T11:59:38.000Z
sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/_container_registry.py
mrwbarg/azure-sdk-for-python
ecfd1093cd623040d1359444d76ac0b57a786f63
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/_container_registry.py
mrwbarg/azure-sdk-for-python
ecfd1093cd623040d1359444d76ac0b57a786f63
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.6.6, generator: @autorest/python@5.11.2) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # ------------------------------...
42.415842
134
0.681839
457
4,284
6.179431
0.354486
0.060198
0.018414
0.021246
0.077904
0.077904
0.053824
0.053824
0.036827
0
0
0.007813
0.193277
4,284
100
135
42.84
0.809317
0.457283
0
0.133333
1
0
0.017153
0
0
0
0
0
0
1
0.111111
false
0
0.2
0
0.377778
0
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
49c18a9e4c35132c071e1f3de51deca44dcbab40
337
py
Python
click/useclick/setup.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
click/useclick/setup.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
click/useclick/setup.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
#setup.py #cd __file__ #> pip install --editable . #> pip uninstall HelloClick from setuptools import setup setup( name='HelloClick', version='1.0', py_modules=['hello'], install_requires=[ 'Click', ], #command=module:func entry_points=''' [console_scripts] hello=he...
17.736842
28
0.602374
36
337
5.416667
0.777778
0
0
0
0
0
0
0
0
0
0
0.007968
0.255193
337
19
29
17.736842
0.768924
0.267062
0
0
0
0
0.320988
0
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
49c5bf524d80cd85e222ab1338b5d4724ab69515
919
py
Python
51-100/071SimplifyPath.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
51-100/071SimplifyPath.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
51-100/071SimplifyPath.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Editor: Zhao Xinlu School: BUPT Date: 2018-03-27 算法思想:简化路径--利用栈 """ class Solution(object): def simplifyPath(self, path): """ :type path: str :rtype: str """ stack = [] i = 0 result = '' while i < len(path): j =...
21.372093
51
0.377584
95
919
3.568421
0.526316
0.035398
0
0
0
0
0
0
0
0
0
0.028112
0.458107
919
43
52
21.372093
0.65261
0.022851
0
0
0
0
0.03781
0
0
0
0
0
0
0
null
null
0
0
null
null
0.038462
0
0
0
null
0
0
0
0
0
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
49ccdb5f1881ce01fe5e1c25c02e0fb3cff8fb95
1,831
py
Python
servo/data/caroline_evt_loc.py
neverware-mirrors/hdctools
dd7f911bb9051e615af7fcb71d921bd481f934fb
[ "BSD-3-Clause" ]
null
null
null
servo/data/caroline_evt_loc.py
neverware-mirrors/hdctools
dd7f911bb9051e615af7fcb71d921bd481f934fb
[ "BSD-3-Clause" ]
null
null
null
servo/data/caroline_evt_loc.py
neverware-mirrors/hdctools
dd7f911bb9051e615af7fcb71d921bd481f934fb
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # for use with servo INA adapter board. If measuring via servo V1 this can just # be ignored. clobber_ok added if user wishes to include servo_loc.xml #...
44.658537
80
0.580557
302
1,831
3.437086
0.496689
0.123314
0.202312
0.04817
0.27264
0.123314
0.086705
0
0
0
0
0.169811
0.21846
1,831
40
81
45.775
0.555556
0.175314
0
0.064516
0
0
0.506658
0.015313
0
0
0.045273
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
49d6ff201ef0e3242eefb589834855d067e515c6
1,269
py
Python
CaesarCipher.py
IcyTv/python-projects
e04397c69c798bbd80a7127f704470d74222e09f
[ "MIT" ]
null
null
null
CaesarCipher.py
IcyTv/python-projects
e04397c69c798bbd80a7127f704470d74222e09f
[ "MIT" ]
null
null
null
CaesarCipher.py
IcyTv/python-projects
e04397c69c798bbd80a7127f704470d74222e09f
[ "MIT" ]
null
null
null
import string, sys def encipher(st, key): res = '' stl = [] let = string.ascii_lowercase for i in st: stl.append([let.index(i.lower()), i.isupper()]) for n in stl: n[0] += key if n[0] > 26: n[0] -= 26 if n[1]: res += let[n[0]].upper() ...
21.87931
58
0.450749
177
1,269
3.135593
0.288136
0.036036
0.05045
0.057658
0.479279
0.479279
0.479279
0.479279
0.479279
0.479279
0
0.032953
0.378251
1,269
57
59
22.263158
0.670469
0
0
0.557692
0
0
0.080378
0
0
0
0
0
0
0
null
null
0
0.019231
null
null
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
49d7ea437a378a78c91bd8ce9a07549a42f94bdc
240
py
Python
scripts/npc/pantheonMapleGate.py
lynsone/swordie
7e9d564c1f2659a87e01c376089e1ee0a3842c5b
[ "MIT" ]
2
2020-04-15T03:16:07.000Z
2020-08-12T23:28:32.000Z
scripts/npc/pantheonMapleGate.py
lynsone/swordie
7e9d564c1f2659a87e01c376089e1ee0a3842c5b
[ "MIT" ]
null
null
null
scripts/npc/pantheonMapleGate.py
lynsone/swordie
7e9d564c1f2659a87e01c376089e1ee0a3842c5b
[ "MIT" ]
3
2020-08-25T06:55:25.000Z
2020-12-01T13:07:43.000Z
response = sm.sendAskYesNo("Would you like to go back to Victoria Island?") if response: if sm.hasQuest(38030): sm.setQRValue(38030, "clear", False) sm.warp(100000000, 23) sm.dispose() sm.warp(104020000, 0)
26.666667
75
0.641667
33
240
4.666667
0.69697
0.077922
0
0
0
0
0
0
0
0
0
0.168478
0.233333
240
8
76
30
0.668478
0
0
0
0
0
0.208333
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
49db59ae56a6491cd30c6794a2167c7b9b87bb69
166
py
Python
Meeting Notes/2021/2021-01-30/cayley_2019_25.py
agryman/sean
11baf69c6eb9308266126bf9c8b1c67c6fd33afc
[ "MIT" ]
1
2020-03-28T18:17:52.000Z
2020-03-28T18:17:52.000Z
Meeting Notes/2021/2021-01-30/cayley_2019_25.py
agryman/sean
11baf69c6eb9308266126bf9c8b1c67c6fd33afc
[ "MIT" ]
1
2022-01-21T21:33:00.000Z
2022-01-21T21:33:00.000Z
Meeting Notes/2021/2021-01-30/cayley_2019_25.py
agryman/sean
11baf69c6eb9308266126bf9c8b1c67c6fd33afc
[ "MIT" ]
null
null
null
import math x_min = math.sqrt(2019**2 - 1867**2) x_max = math.sqrt(1867**2 + 2019**2) print(x_min, x_max) n_x = math.floor(x_max)- math.ceil(x_min) + 1 print(n_x)
16.6
45
0.662651
37
166
2.756757
0.378378
0.117647
0.156863
0
0
0
0
0
0
0
0
0.147887
0.144578
166
9
46
18.444444
0.570423
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
49dd5adc94d8399f5c5f354cddec579b4784a734
2,330
py
Python
sales/migrations/0016_auto_20200927_1704.py
drtweety/busman
4847ffecafb4499d1e2225e4ea860bd2bf442110
[ "MIT" ]
null
null
null
sales/migrations/0016_auto_20200927_1704.py
drtweety/busman
4847ffecafb4499d1e2225e4ea860bd2bf442110
[ "MIT" ]
8
2020-09-24T06:30:13.000Z
2021-06-13T18:12:21.000Z
sales/migrations/0016_auto_20200927_1704.py
drtweety/busman
4847ffecafb4499d1e2225e4ea860bd2bf442110
[ "MIT" ]
1
2021-06-12T09:59:47.000Z
2021-06-12T09:59:47.000Z
# Generated by Django 3.1.1 on 2020-09-27 17:04 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('products', '0003_product_minimum_price'), ('organization', '0004_auto_20200914_0713'), ('sales', '0015_auto_...
40.172414
161
0.583262
218
2,330
6.077982
0.40367
0.030189
0.042264
0.066415
0.37283
0.37283
0.280755
0.280755
0.215849
0.215849
0
0.0405
0.279399
2,330
57
162
40.877193
0.74866
0.019313
0
0.431373
1
0
0.18134
0.042488
0
0
0
0
0
1
0
false
0
0.039216
0
0.098039
0
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
49de832a3297f4f0ec1bcf9c4d6df8bb0ec721a8
473
py
Python
doc/sphinx_util.py
mattn/xgboost
e526871f0acb124a1b5701653a48662da63fd0be
[ "Apache-2.0" ]
6
2021-03-01T02:14:52.000Z
2022-01-28T13:57:34.000Z
doc/sphinx_util.py
mattn/xgboost
e526871f0acb124a1b5701653a48662da63fd0be
[ "Apache-2.0" ]
21
2020-09-23T11:36:44.000Z
2022-03-30T02:27:29.000Z
doc/sphinx_util.py
mattn/xgboost
e526871f0acb124a1b5701653a48662da63fd0be
[ "Apache-2.0" ]
30
2020-09-07T07:58:31.000Z
2022-03-29T06:26:51.000Z
# -*- coding: utf-8 -*- """Helper utility function for customization.""" import sys import os import docutils import subprocess READTHEDOCS_BUILD = (os.environ.get('READTHEDOCS', None) is not None) if not os.path.exists('web-data'): subprocess.call('rm -rf web-data;' + 'git clone https://github.co...
27.823529
77
0.687104
67
473
4.820896
0.641791
0.086687
0.06192
0
0
0
0
0
0
0
0
0.002494
0.15222
473
16
78
29.5625
0.802993
0.137421
0
0
0
0
0.283582
0
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
49e1df438781c6d1965d79aa99114a17f95b05d4
915
py
Python
structures/resilient.py
fleeb24/tnt
fd9d432d39809f5fb21fbaa527ac490d180d3329
[ "MIT" ]
null
null
null
structures/resilient.py
fleeb24/tnt
fd9d432d39809f5fb21fbaa527ac490d180d3329
[ "MIT" ]
null
null
null
structures/resilient.py
fleeb24/tnt
fd9d432d39809f5fb21fbaa527ac490d180d3329
[ "MIT" ]
2
2019-03-13T03:50:17.000Z
2019-04-29T16:09:00.000Z
from collections import OrderedDict import inspect class Resilient(object): def meta(self): return inspect.getsource(type(self)) def state_dict(self): raise NotImplementedError def load_state_dict(self, state): raise NotImplementedError def copy(self): raise NotImplementedError ...
17.941176
50
0.656831
109
915
5.100917
0.357798
0.086331
0.046763
0.053957
0
0
0
0
0
0
0
0
0.227322
915
50
51
18.3
0.786422
0
0
0.1
0
0
0.042056
0
0
0
0
0
0.033333
1
0.333333
false
0
0.066667
0.1
0.633333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
49e4d82c71fd6bb58bfa8ff2a52591325385f162
236
py
Python
exercises/superheros.py
gaya19-meet/y2s18-python_review
d867248bc15c4c61fd0ee4535b3c8cb0a6c47eaa
[ "MIT" ]
null
null
null
exercises/superheros.py
gaya19-meet/y2s18-python_review
d867248bc15c4c61fd0ee4535b3c8cb0a6c47eaa
[ "MIT" ]
null
null
null
exercises/superheros.py
gaya19-meet/y2s18-python_review
d867248bc15c4c61fd0ee4535b3c8cb0a6c47eaa
[ "MIT" ]
null
null
null
# Write your solutions for 1.5 here! class superheros: def __init__(self, name, superpower, strength): self.name = name self.superpower = superpower self.strength = strength def gaya(self): print(self.name)
9.076923
48
0.673729
30
236
5.166667
0.566667
0.154839
0
0
0
0
0
0
0
0
0
0.01105
0.233051
236
25
49
9.44
0.845304
0.144068
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0
0
0.428571
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
49e6b9a93ab5598c897a6b07b1949f03c37e77da
1,802
py
Python
lista_simplesmente_encadeada_recursao/13_ApagarLSE.py
burgues0/Trabalhos_Python
996e3862c521f63b51a8479d200efa7db0a42c48
[ "MIT" ]
null
null
null
lista_simplesmente_encadeada_recursao/13_ApagarLSE.py
burgues0/Trabalhos_Python
996e3862c521f63b51a8479d200efa7db0a42c48
[ "MIT" ]
null
null
null
lista_simplesmente_encadeada_recursao/13_ApagarLSE.py
burgues0/Trabalhos_Python
996e3862c521f63b51a8479d200efa7db0a42c48
[ "MIT" ]
null
null
null
#Algoritmos Computacionais e Estruturas de Dados #Lista Simplesmente Encadeada em Python #Prof.: Laercio Brito #Dia: 07/02/2022 #Turma 2BINFO #Alunos: #Dora Tezulino Santos #Guilherme de Almeida Torrão #Mauro Campos Pahoor #Victor Kauã Martins Nunes #Victor Pinheiro Palmeira #Lucas Lima #Criar o método apagarLSE() que ...
26.895522
62
0.579356
219
1,802
4.675799
0.356164
0.068359
0.029297
0.023438
0.058594
0.058594
0
0
0
0
0
0.008994
0.32131
1,802
67
63
26.895522
0.828291
0.180355
0
0.314815
0
0
0.020478
0
0
0
0
0.014925
0
1
0.166667
false
0
0
0.018519
0.259259
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
49ee7d5d51ee936e4bc82b010118c89d4b4df08f
1,658
py
Python
alipay/aop/api/domain/KoubeiCateringOrderInfoCancelModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/KoubeiCateringOrderInfoCancelModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/KoubeiCateringOrderInfoCancelModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "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 * from alipay.aop.api.domain.PosOrderKey import PosOrderKey class KoubeiCateringOrderInfoCancelModel(object): def __init__(self): self._close_time = None self._pos_order_key = None @...
27.633333
77
0.621834
211
1,658
4.545024
0.21327
0.133472
0.183525
0.12513
0.250261
0.20438
0.107404
0.066736
0
0
0
0.000846
0.287093
1,658
59
78
28.101695
0.810491
0.025332
0
0.111111
0
0
0.074442
0
0
0
0
0
0
1
0.155556
false
0
0.066667
0.044444
0.355556
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
49f1a8509fe8b8af4a4973dbf1c5962d9ee223b4
26,036
py
Python
invest_natcap/fisheries/fisheries_hst_io.py
phargogh/invest-natcap.invest-3
ee96055a4fa034d9a95fa8ccc6259ab03264e6c1
[ "BSD-3-Clause" ]
null
null
null
invest_natcap/fisheries/fisheries_hst_io.py
phargogh/invest-natcap.invest-3
ee96055a4fa034d9a95fa8ccc6259ab03264e6c1
[ "BSD-3-Clause" ]
null
null
null
invest_natcap/fisheries/fisheries_hst_io.py
phargogh/invest-natcap.invest-3
ee96055a4fa034d9a95fa8ccc6259ab03264e6c1
[ "BSD-3-Clause" ]
null
null
null
''' The Fisheries Habitat Scenarios Tool IO module contains functions for handling inputs and outputs ''' import logging import os import csv import pprint as pp import copy import numpy as np LOGGER = logging.getLogger('invest_natcap.fisheries.hst_io') logging.basicConfig(format='%(asctime)s %(name)-15s %(levelname...
31.520581
101
0.58857
3,219
26,036
4.548307
0.119292
0.029165
0.016392
0.0153
0.550919
0.48774
0.437607
0.400997
0.376272
0.345058
0
0.010721
0.27631
26,036
825
102
31.558788
0.76632
0.037602
0
0.322289
0
0
0.084196
0.002251
0
0
0
0
0
0
null
null
0
0.018072
null
null
0.01506
0
0
0
null
0
0
0
0
0
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
49f39e17f467fdbf9ebe985692363dabe47e1768
751
py
Python
tests/test_exception.py
nxtbesu/python-oligo
5cd964c8bc5ad3054f9f6a04fe136f1a95226aad
[ "MIT" ]
10
2017-10-08T15:00:42.000Z
2020-01-06T20:21:46.000Z
tests/test_exception.py
nxtbesu/python-oligo
5cd964c8bc5ad3054f9f6a04fe136f1a95226aad
[ "MIT" ]
7
2017-11-22T09:58:45.000Z
2020-01-31T09:45:19.000Z
tests/test_exception.py
nxtbesu/python-oligo
5cd964c8bc5ad3054f9f6a04fe136f1a95226aad
[ "MIT" ]
3
2019-09-19T06:16:13.000Z
2019-12-25T22:05:41.000Z
import unittest from oligo.exception import SessionException, LoginException, ResponseException class TestResponseException(unittest.TestCase): def test_message(self): login_exception = ResponseException(418) self.assertEqual('Response error, code: 418', login_exception.args[0]) class TestLogi...
30.04
111
0.748336
82
751
6.743902
0.463415
0.101266
0.103074
0.124774
0.321881
0.235081
0.173599
0.173599
0
0
0
0.014308
0.16245
751
24
112
31.291667
0.864865
0
0
0.214286
0
0
0.154461
0
0
0
0
0
0.214286
1
0.214286
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
49f6163548e83264a1eb2dc08e040b816635e388
795
py
Python
core/models/visit.py
mattusifer/prevention-point
232e31d7fb25b754671f433cae1d7ae668d6a44b
[ "MIT" ]
null
null
null
core/models/visit.py
mattusifer/prevention-point
232e31d7fb25b754671f433cae1d7ae668d6a44b
[ "MIT" ]
null
null
null
core/models/visit.py
mattusifer/prevention-point
232e31d7fb25b754671f433cae1d7ae668d6a44b
[ "MIT" ]
null
null
null
from django.db import models from core.models.participant import Participant from core.models.program_service_map import ProgramServiceMap from django.utils import timezone from enum import Enum class UrgencyLevel(Enum): ONE = 1 TWO = 2 THREE = 3 FOUR = 4 FIVE = 5 class Visit(models.Model): ...
31.8
94
0.748428
103
795
5.679612
0.524272
0.034188
0.047863
0.071795
0
0
0
0
0
0
0
0.010558
0.166038
795
24
95
33.125
0.871795
0
0
0
0
0
0.013836
0
0
0
0
0
0
1
0
false
0
0.25
0
0.9
0
0
0
0
null
0
0
0
0
0
0
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
49f73d04a4ef668e58abb209fc4e5b7c73dfd419
1,721
py
Python
PyObjCTest/test_nsoperation.py
Khan/pyobjc-framework-Cocoa
f8b015ea2a72d8d78be6084fb12925c4785b8f1f
[ "MIT" ]
132
2015-01-01T10:02:42.000Z
2022-03-09T12:51:01.000Z
mac/pyobjc-framework-Cocoa/PyObjCTest/test_nsoperation.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
6
2015-01-06T08:23:19.000Z
2019-03-14T12:22:06.000Z
mac/pyobjc-framework-Cocoa/PyObjCTest/test_nsoperation.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
27
2015-02-23T11:51:43.000Z
2022-03-07T02:34:18.000Z
from Foundation import * from PyObjCTools.TestSupport import * try: unicode except NameError: unicode = str class TestNSOperation (TestCase): def testConstants(self): self.assertEqual(NSOperationQueuePriorityVeryLow, -8) self.assertEqual(NSOperationQueuePriorityLow, -4) self.assert...
38.244444
82
0.758861
136
1,721
9.470588
0.463235
0.069876
0.128106
0.051242
0.060559
0.060559
0
0
0
0
0
0.012457
0.160372
1,721
44
83
39.113636
0.878893
0
0
0
0
0
0.009878
0
0
0
0
0
0.617647
1
0.088235
false
0
0.058824
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
49f83f79ac7a6a9b62dc6ee4ea63fe65f046f32b
1,017
py
Python
jspider/web/api/spider.py
goodking-bq/Jspider
2ae484fe8ec59824ba40df5aa3d3c434486da2d8
[ "Apache-2.0" ]
null
null
null
jspider/web/api/spider.py
goodking-bq/Jspider
2ae484fe8ec59824ba40df5aa3d3c434486da2d8
[ "Apache-2.0" ]
null
null
null
jspider/web/api/spider.py
goodking-bq/Jspider
2ae484fe8ec59824ba40df5aa3d3c434486da2d8
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 from __future__ import absolute_import, unicode_literals from sanic.views import HTTPMethodView from sanic.response import json __author__ = "golden" __date__ = '2018/6/25' class ProjectsApi(HTTPMethodView): async def get(self, req): app = req.app res = app.manager.projects() ...
24.214286
66
0.641101
126
1,017
5.047619
0.444444
0.062893
0.138365
0.157233
0.251572
0.251572
0.251572
0.128931
0.128931
0
0
0.01061
0.258604
1,017
41
67
24.804878
0.832891
0.037365
0
0.233333
0
0
0.03791
0
0
0
0
0
0
1
0
false
0.066667
0.1
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
49f92f64d22dcf648ccc329089a92e354f876bef
8,941
py
Python
crypto/candle_sticks.py
NicolasKiely/percms
dbfae2406a9ea79c273197d96c5b0e70010ad114
[ "MIT" ]
null
null
null
crypto/candle_sticks.py
NicolasKiely/percms
dbfae2406a9ea79c273197d96c5b0e70010ad114
[ "MIT" ]
9
2016-09-15T05:12:36.000Z
2016-10-27T21:38:40.000Z
crypto/candle_sticks.py
NicolasKiely/percms
dbfae2406a9ea79c273197d96c5b0e70010ad114
[ "MIT" ]
null
null
null
import datetime import time import bittrex.bittrex as btrx from django.utils import timezone from . import models # Bittrex period lookup from second count to api constant BITTREX_PERIODS = { 60: btrx.TICKINTERVAL_ONEMIN, 300: btrx.TICKINTERVAL_FIVEMIN, 1800: btrx.TICKINTERVAL_THIRTYMIN, 3600: btrx.TI...
36.946281
87
0.554748
1,046
8,941
4.572658
0.17782
0.038051
0.035543
0.020071
0.550282
0.526866
0.509095
0.477315
0.462262
0.4447
0
0.01352
0.338217
8,941
241
88
37.099585
0.794828
0.048205
0
0.528796
0
0
0.069911
0
0
0
0
0
0
0
null
null
0
0.026178
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
49ff3e28549d17e1921ba33d62b7b8731411cec2
11,766
py
Python
vp_detector/evaluation.py
Davidelanz/vanishing_points
9eb421f8ad9726ea6a418d4c0eb34364a13a7b14
[ "BSD-3-Clause" ]
null
null
null
vp_detector/evaluation.py
Davidelanz/vanishing_points
9eb421f8ad9726ea6a418d4c0eb34364a13a7b14
[ "BSD-3-Clause" ]
null
null
null
vp_detector/evaluation.py
Davidelanz/vanishing_points
9eb421f8ad9726ea6a418d4c0eb34364a13a7b14
[ "BSD-3-Clause" ]
null
null
null
import cPickle as pickle import glob import os import shutil import numpy as np from pylsd.lsd import lsd import scipy.ndimage as ndimage from skimage import color from . import sphere_mapping as sm from . import vp_localisation as vp def get_sphere_image(lines, size=250, alpha=0.1, f=1.0): sphere_image = sm.sp...
29.63728
77
0.59349
1,512
11,766
4.374339
0.136243
0.034926
0.006048
0.012096
0.439371
0.361808
0.316299
0.278803
0.268521
0.263683
0
0.012579
0.283784
11,766
396
78
29.712121
0.77228
0.002975
0
0.292593
0
0
0.10052
0.005883
0
0
0
0
0
0
null
null
0
0.048148
null
null
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b701c2b9fe14377da2cc54826d2e1007485ef78a
1,901
py
Python
server/athenian/api/models/web/work_type_put_request.py
athenianco/athenian-api
dd5556101a8c49703d6b0516e4268b9e8d8eda5b
[ "RSA-MD" ]
9
2020-10-11T22:12:03.000Z
2022-02-26T02:16:45.000Z
server/athenian/api/models/web/work_type_put_request.py
athenianco/athenian-api
dd5556101a8c49703d6b0516e4268b9e8d8eda5b
[ "RSA-MD" ]
246
2019-12-05T06:37:30.000Z
2022-03-29T10:00:07.000Z
server/athenian/api/models/web/work_type_put_request.py
athenianco/athenian-api
dd5556101a8c49703d6b0516e4268b9e8d8eda5b
[ "RSA-MD" ]
5
2019-12-04T22:38:05.000Z
2021-02-26T00:50:04.000Z
from typing import Optional from athenian.api.models.web.base_model_ import Model from athenian.api.models.web.work_type import WorkType class WorkTypePutRequest(Model): """Request body of `PUT /settings/work_type`.""" openapi_types = {"account": int, "work_type": WorkType} attribute_map = {"account": ...
28.80303
81
0.639137
221
1,901
5.325792
0.235294
0.163127
0.203908
0.067969
0.548003
0.393373
0.384027
0.122345
0.122345
0.122345
0
0
0.271436
1,901
65
82
29.246154
0.849819
0.335087
0
0.222222
0
0
0.128114
0
0
0
0
0
0
1
0.185185
false
0
0.111111
0
0.481481
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b703e2b5bef3e535008434801ebeb76a2f85c2ac
7,730
py
Python
hypervisor_type_filter/hypervisor_type_filter.py
mcaimi/nova-custom-schedulers
e987d56e3f950bc4ff34bfaee7d305cafb39ee76
[ "Apache-2.0" ]
null
null
null
hypervisor_type_filter/hypervisor_type_filter.py
mcaimi/nova-custom-schedulers
e987d56e3f950bc4ff34bfaee7d305cafb39ee76
[ "Apache-2.0" ]
null
null
null
hypervisor_type_filter/hypervisor_type_filter.py
mcaimi/nova-custom-schedulers
e987d56e3f950bc4ff34bfaee7d305cafb39ee76
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 Fastweb S.p.A. # # Nova filter that implements a way to isolate tenants to specific hypervisor technology # for Fastweb's MultiHypervisor IaaS Cloud Use Case # from oslo_log import log as logging from oslo_config import cfg from nova.scheduler import filters from nova.scheduler.filters import uti...
48.3125
208
0.677361
935
7,730
5.396791
0.236364
0.028537
0.026952
0.036465
0.325604
0.198573
0.154578
0.134364
0.102656
0.077289
0
0.007391
0.247348
7,730
159
209
48.616352
0.859918
0.174386
0
0.268041
0
0
0.206364
0.014161
0
0
0
0.006289
0
1
0.020619
false
0.082474
0.113402
0
0.216495
0
0
0
0
null
0
0
0
0
0
0
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
b70551366b47c3b075c4bd126474d07fae1f358d
240
py
Python
bnc/validation/val_cli.py
mpetrinidev/bnb-cli
d10fc36b6a1e2dd34597d9f31ea143019ba6f4b9
[ "MIT" ]
5
2021-04-02T20:49:19.000Z
2021-06-11T06:22:24.000Z
bnc/validation/val_cli.py
mpetrinidev/bnb-cli
d10fc36b6a1e2dd34597d9f31ea143019ba6f4b9
[ "MIT" ]
2
2021-06-13T20:22:09.000Z
2021-06-14T23:09:14.000Z
bnc/validation/val_cli.py
mpetrinidev/bnc-cli
d10fc36b6a1e2dd34597d9f31ea143019ba6f4b9
[ "MIT" ]
null
null
null
import click def validate_output_value(ctx, param, value): value = str(value).lower() if value not in ['json', 'table', 'yaml']: raise click.BadParameter(value + '. Possible values: json | table | yaml') return value
24
82
0.65
31
240
4.967742
0.677419
0.116883
0.168831
0
0
0
0
0
0
0
0
0
0.216667
240
9
83
26.666667
0.819149
0
0
0
0
0
0.2125
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
b70651cb21cb0f12d3fa937eef097232998acc9a
4,019
py
Python
src/python/pants/backend/project_info/tasks/dependencies.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/project_info/tasks/dependencies.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/project_info/tasks/dependencies.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants.backend.jvm.targets.jar_library import JarLibrary from pants.backend.jvm.targets.jvm_app import JvmApp from pants.backend.jvm.targets.jvm_target import JvmTarget from pants.back...
45.670455
105
0.652899
461
4,019
5.587852
0.399132
0.02795
0.024845
0.022127
0.106366
0.048913
0
0
0
0
0
0.007781
0.264494
4,019
87
106
46.195402
0.863667
0.131625
0
0.057143
0
0.014286
0.218516
0.015814
0
0
0
0.011494
0
1
0.057143
false
0
0.114286
0.014286
0.228571
0.014286
0
0
0
null
0
0
0
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
b70ca6fe2a17a592c7889873dec76b6aeee1f02b
8,486
py
Python
architectures/nn_discourse_parser/train_models.py
jimmycallin/master-thesis
5d30df288478ca944338eba353cbc2b84f415ee0
[ "MIT" ]
2
2016-06-21T12:34:23.000Z
2017-05-23T18:34:53.000Z
architectures/nn_discourse_parser/train_models.py
jimmycallin/master-thesis
5d30df288478ca944338eba353cbc2b84f415ee0
[ "MIT" ]
null
null
null
architectures/nn_discourse_parser/train_models.py
jimmycallin/master-thesis
5d30df288478ca944338eba353cbc2b84f415ee0
[ "MIT" ]
1
2020-06-17T14:07:50.000Z
2020-06-17T14:07:50.000Z
import codecs import json import sys import timeit import random import numpy as np import theano import nets.base_label_functions as l import nets.util as util from nets.data_reader import DRelation from nets.learning import DataTriplet from nets.templates import build_ff_network def extract_non_explicit_relations(...
44.197917
119
0.685011
1,190
8,486
4.515966
0.170588
0.051172
0.030703
0.023446
0.471902
0.428173
0.319315
0.274284
0.260514
0.250093
0
0.024508
0.22107
8,486
191
120
44.429319
0.788502
0
0
0.149701
0
0.035928
0.14247
0.054914
0
0
0
0
0
0
null
null
0
0.071856
null
null
0.023952
0
0
0
null
0
0
0
0
0
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
b7108abf00447722d6513ad46a5e8a316825c5e1
803
py
Python
webapp/graphite/wsgi.py
chicagobuss/graphite-web
8f13d44d446acfaecefb438f1f4b8f56e5164092
[ "Apache-2.0" ]
null
null
null
webapp/graphite/wsgi.py
chicagobuss/graphite-web
8f13d44d446acfaecefb438f1f4b8f56e5164092
[ "Apache-2.0" ]
null
null
null
webapp/graphite/wsgi.py
chicagobuss/graphite-web
8f13d44d446acfaecefb438f1f4b8f56e5164092
[ "Apache-2.0" ]
null
null
null
import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'graphite.settings') import django if django.VERSION < (1, 4): from django.core.handlers.wsgi import WSGIHandler application = WSGIHandler() else: # From 1.4 wsgi support was improved and since 1.7 old style WSGI script # causes AppRegistryNotR...
33.458333
76
0.759651
113
803
5.345133
0.60177
0.006623
0.046358
0
0
0
0
0
0
0
0
0.011799
0.155666
803
23
77
34.913043
0.879056
0.403487
0
0
0
0
0.182979
0.046809
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b71eed33d81de7e95f75417032a42d1db15b8d7d
685
py
Python
ubcs_auxiliary/other.py
vstadnytskyi/auxiliary
3916af3a147f72071388278385d484b9eacbc66b
[ "BSD-3-Clause" ]
null
null
null
ubcs_auxiliary/other.py
vstadnytskyi/auxiliary
3916af3a147f72071388278385d484b9eacbc66b
[ "BSD-3-Clause" ]
1
2019-10-16T16:40:27.000Z
2019-10-16T16:40:27.000Z
ubcs_auxiliary/other.py
vstadnytskyi/auxiliary
3916af3a147f72071388278385d484b9eacbc66b
[ "BSD-3-Clause" ]
1
2020-01-18T05:57:41.000Z
2020-01-18T05:57:41.000Z
""" advance Sleep functions author: Valentyn Stadnytskyi data: 2017 - Nov 17 2018 functions: psleep - precision sleep takes intsleep with inputs t, dt and interupt as a function. The precision sleep class. functiob: psleep - sleep specified amount of time with sub milisecond precision test_sleep - for testing purpose...
31.136364
84
0.770803
104
685
5.048077
0.759615
0.053333
0.053333
0
0
0
0
0
0
0
0
0.027972
0.164964
685
21
85
32.619048
0.88986
0.767883
0
0
0
0
0.278146
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b720a4d17ddc9d1d053e6f4faa66c29576f12de5
498
py
Python
pyvisdk/enums/virtual_machine_usb_info_family.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/enums/virtual_machine_usb_info_family.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/enums/virtual_machine_usb_info_family.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
######################################## # Automatically generated, do not edit. ######################################## from pyvisdk.thirdparty import Enum VirtualMachineUsbInfoFamily = Enum( 'audio', 'bluetooth', 'communication', 'hid', 'hid_bootable', 'hub', 'imaging', 'other', ...
16.064516
40
0.477912
34
498
6.911765
0.941176
0
0
0
0
0
0
0
0
0
0
0
0.232932
498
30
41
16.6
0.615183
0.074297
0
0
1
0
0.383598
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.045455
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b7262e09dfa9cc814e8d0e46871e90888ef53940
22,102
py
Python
genome_designer/utils/tests/test_import_util.py
churchlab/millstone
ddb5d003a5b8a7675e5a56bafd5c432d9642b473
[ "MIT" ]
45
2015-09-30T14:55:33.000Z
2021-06-28T02:33:30.000Z
genome_designer/utils/tests/test_import_util.py
churchlab/millstone
ddb5d003a5b8a7675e5a56bafd5c432d9642b473
[ "MIT" ]
261
2015-06-03T20:41:56.000Z
2022-03-07T08:46:10.000Z
genome_designer/utils/tests/test_import_util.py
churchlab/millstone
ddb5d003a5b8a7675e5a56bafd5c432d9642b473
[ "MIT" ]
22
2015-06-04T20:43:10.000Z
2022-02-27T08:27:34.000Z
""" Tests for import_util.py. """ import os from django.conf import settings from django.contrib.auth.models import User from django.core.files.uploadedfile import UploadedFile from django.test import TestCase from main.exceptions import ValidationException from main.models import Chromosome from main.models import ...
41.005566
82
0.680572
2,711
22,102
5.197344
0.131686
0.019304
0.019163
0.017885
0.728673
0.686728
0.651597
0.646345
0.63577
0.608801
0
0.011809
0.241381
22,102
538
83
41.081784
0.828532
0.129264
0
0.48368
0
0
0.092593
0.056241
0
0
0
0
0.130564
1
0.086053
false
0.014837
0.20178
0
0.305638
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b726684c947821a347af49dba798aad2ff2d607b
289
py
Python
env/lib/python3.6/site-packages/numpy/testing/nosetester.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
34
2018-07-13T11:30:46.000Z
2022-01-05T13:48:10.000Z
env/lib/python3.6/site-packages/numpy/testing/nosetester.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
13
2020-01-28T22:20:14.000Z
2022-03-11T23:20:14.000Z
env/lib/python3.6/site-packages/numpy/testing/nosetester.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
22
2018-07-13T11:30:48.000Z
2021-09-25T13:30:08.000Z
""" Back compatibility nosetester module. It will import the appropriate set of tools """ from .nose_tools.nosetester import * __all__ = ['get_package_name', 'run_module_suite', 'NoseTester', '_numpy_tester', 'get_package_name', 'import_nose', 'suppress_warnings']
26.272727
68
0.709343
34
289
5.588235
0.705882
0.105263
0.147368
0
0
0
0
0
0
0
0
0
0.176471
289
10
69
28.9
0.798319
0.280277
0
0
0
0
0.497487
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b728590d108d36a77f82cea81476a721518d8539
2,041
py
Python
tests/test_parser.py
transfluxus/jsonpath-ng
3e2dd9ec404de61ed56ce4d8af99c2612fd540e6
[ "Apache-2.0" ]
339
2017-03-22T15:00:25.000Z
2022-03-30T20:55:36.000Z
tests/test_parser.py
transfluxus/jsonpath-ng
3e2dd9ec404de61ed56ce4d8af99c2612fd540e6
[ "Apache-2.0" ]
82
2017-06-11T07:13:09.000Z
2022-03-22T19:48:03.000Z
tests/test_parser.py
transfluxus/jsonpath-ng
3e2dd9ec404de61ed56ce4d8af99c2612fd540e6
[ "Apache-2.0" ]
65
2017-04-14T03:57:58.000Z
2022-03-30T20:55:38.000Z
from __future__ import unicode_literals, print_function, absolute_import, division, generators, nested_scopes import unittest from jsonpath_ng.lexer import JsonPathLexer from jsonpath_ng.parser import JsonPathParser from jsonpath_ng.jsonpath import * class TestParser(unittest.TestCase): # TODO: This will be much ...
49.780488
170
0.519353
211
2,041
4.914692
0.445498
0.060752
0.072324
0.086789
0.175506
0.119576
0
0
0
0
0
0.010309
0.33464
2,041
40
171
51.025
0.753314
0.122979
0
0
0
0
0.085666
0
0
0
0
0.025
0.03125
1
0.125
false
0
0.15625
0
0.3125
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
1
0
0
0
0
0
0
0
0
0
0
1
b72b9918a5c56fc516b90ef362535775fc6c5617
2,067
py
Python
gfwanalysis/routes/api/__init__.py
archelogos/gfw-umd-gee
b1f5492f798a775eee24517bccbc10da513663f6
[ "MIT" ]
5
2017-11-01T21:13:19.000Z
2022-03-03T09:26:19.000Z
gfwanalysis/routes/api/__init__.py
gfw-api/gfw-umd-gee
b1f5492f798a775eee24517bccbc10da513663f6
[ "MIT" ]
11
2018-01-22T09:05:23.000Z
2019-09-20T11:55:57.000Z
gfwanalysis/routes/api/__init__.py
gfw-api/gfw-umd-gee
b1f5492f798a775eee24517bccbc10da513663f6
[ "MIT" ]
3
2020-07-10T13:30:58.000Z
2020-10-14T07:43:12.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import datetime from flask import jsonify, request from gfwanalysis.utils.landcover_lookup import get_landcover_types # GENERIC Error def error(status=500, detail='Generic Error'): error = { '...
26.844156
98
0.577165
245
2,067
4.722449
0.289796
0.08643
0.084702
0.038029
0.05013
0.05013
0
0
0
0
0
0.021505
0.280116
2,067
76
99
27.197368
0.756048
0.007741
0
0.160714
0
0
0.065526
0
0
0
0
0
0
1
0.071429
false
0.053571
0.107143
0
0.267857
0.017857
0
0
0
null
0
0
0
0
0
0
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
b72c255130bf3f5616dd49e711998f5aa74e1e22
402
py
Python
registrobrepp/ipnetwork/brtransferipnetworkcommand.py
ivcmartello/registrobrepp
dece39a451bcdb964d337df6aa7bd418a60c1a85
[ "MIT" ]
null
null
null
registrobrepp/ipnetwork/brtransferipnetworkcommand.py
ivcmartello/registrobrepp
dece39a451bcdb964d337df6aa7bd418a60c1a85
[ "MIT" ]
null
null
null
registrobrepp/ipnetwork/brtransferipnetworkcommand.py
ivcmartello/registrobrepp
dece39a451bcdb964d337df6aa7bd418a60c1a85
[ "MIT" ]
null
null
null
from eppy.doc import EppTransferCommand class BrEppTransferIpNetworkCommand(EppTransferCommand): _path = ('epp', 'command', 'transfer', 'ipnetwork:transfer') def __init__(self, op: str, roid: str): extra_nsmap = {'ipnetwork': 'urn:ietf:params:xml:ns:ipnetwork-1.0'} super(BrEppTransferIpNetwor...
36.545455
91
0.71393
45
402
6.111111
0.622222
0.109091
0
0
0
0
0
0
0
0
0
0.0059
0.156716
402
10
92
40.2
0.80531
0
0
0
0
0
0.201493
0.089552
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
b7301e4c26823417eb2c662a00b0ad29abaa84ba
945
py
Python
week1/DY/DLFromScratch/activation.py
maybedy/MLDLStudy
abe121bc73c1958f1cd2d30fd30384137140187b
[ "MIT" ]
null
null
null
week1/DY/DLFromScratch/activation.py
maybedy/MLDLStudy
abe121bc73c1958f1cd2d30fd30384137140187b
[ "MIT" ]
null
null
null
week1/DY/DLFromScratch/activation.py
maybedy/MLDLStudy
abe121bc73c1958f1cd2d30fd30384137140187b
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pylab as plt import os clear = lambda: os.system('cls' if os.name=='nt' else 'clear') # Activation def step_function(x): # if x > 0: # return 1 # else: # return 0 y = x > 0 return y.astype(np.int) def sigmoid(x): return 1 / (1 + np.exp(-x)) ...
18.173077
73
0.574603
152
945
3.447368
0.342105
0.053435
0.034351
0.030534
0
0
0
0
0
0
0
0.021771
0.270899
945
52
74
18.173077
0.738752
0.073016
0
0
0
0
0.056387
0
0
0
0
0
0
1
0.225806
false
0
0.096774
0.064516
0.451613
0
0
0
0
null
0
0
0
0
0
0
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
b7342bfb4260d6dba8304e90ce1126cf0ac3fb9b
762
py
Python
clients/python/pentools/cli.py
sarartur/pentools
84cf436aaf35ed2ea8b7e2bdcdc790699bbe7295
[ "MIT" ]
null
null
null
clients/python/pentools/cli.py
sarartur/pentools
84cf436aaf35ed2ea8b7e2bdcdc790699bbe7295
[ "MIT" ]
null
null
null
clients/python/pentools/cli.py
sarartur/pentools
84cf436aaf35ed2ea8b7e2bdcdc790699bbe7295
[ "MIT" ]
null
null
null
import argparse import pkg_resources def _registered_commands(group): registered_commands = pkg_resources.iter_entry_points(group = group) return {c.name: c for c in registered_commands} def dispatch(argv: list): registered_commands = _registered_commands(group = "pentools.registered_commands") parser...
31.75
86
0.709974
89
762
5.88764
0.494382
0.274809
0.087786
0
0
0
0
0
0
0
0
0
0.192913
762
24
87
31.75
0.852033
0
0
0.095238
0
0
0.108781
0.036697
0
0
0
0
0
1
0.142857
false
0
0.095238
0
0.333333
0.047619
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
b737a28fc8e7f084be29ea5bc74002f856ad2797
1,620
py
Python
python/oneflow/framework/docstr/util_ops.py
L-Net-1992/oneflow
4dc08d65caea36fdd137841ac95551218897e730
[ "Apache-2.0" ]
1
2022-03-14T11:17:56.000Z
2022-03-14T11:17:56.000Z
python/oneflow/framework/docstr/util_ops.py
L-Net-1992/oneflow
4dc08d65caea36fdd137841ac95551218897e730
[ "Apache-2.0" ]
null
null
null
python/oneflow/framework/docstr/util_ops.py
L-Net-1992/oneflow
4dc08d65caea36fdd137841ac95551218897e730
[ "Apache-2.0" ]
1
2021-12-15T02:14:49.000Z
2021-12-15T02:14:49.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
27.931034
99
0.683333
229
1,620
4.820961
0.449782
0.054348
0.038043
0.028986
0.318841
0.318841
0.224638
0.224638
0.224638
0.139493
0
0.009547
0.224074
1,620
57
100
28.421053
0.868735
0.358642
0
0.2
0
0
0
0
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
b741c919b0b2e3014e7596b75cd5519b86e7c2e5
375
py
Python
projects/tf/model_persist/model_save.py
zdq0394/myai
124eff250e4b847591d66f2438bc671ffdd7caf3
[ "Apache-2.0" ]
null
null
null
projects/tf/model_persist/model_save.py
zdq0394/myai
124eff250e4b847591d66f2438bc671ffdd7caf3
[ "Apache-2.0" ]
null
null
null
projects/tf/model_persist/model_save.py
zdq0394/myai
124eff250e4b847591d66f2438bc671ffdd7caf3
[ "Apache-2.0" ]
null
null
null
import tensorflow.compat.v1 as tf tf.disable_v2_behavior() a = tf.Variable(tf.constant([1.0, 2.0], shape=[2]), name="a") b = tf.Variable(tf.constant([3.0, 4.0], shape=[2]), name="b") result = a+b init_op = tf.initialize_all_variables() saver = tf.train.Saver() with tf.Session() as sess: sess.run(init_op) s...
25
61
0.68
66
375
3.757576
0.575758
0.080645
0.096774
0.16129
0
0
0
0
0
0
0
0.042424
0.12
375
15
62
25
0.709091
0
0
0
0
0
0.101064
0.095745
0
0
0
0
0
1
0
false
0
0.1
0
0.1
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
3f7889e4413f7d3901c2dc34af26e98513cfb07b
2,516
py
Python
torchbenchmark/models/fastNLP/fastNLP/doc_utils.py
Chillee/benchmark
91e1b2871327e44b9b7d24d173ca93720fb6565b
[ "BSD-3-Clause" ]
2,693
2018-03-08T03:09:20.000Z
2022-03-30T07:38:42.000Z
fastNLP/doc_utils.py
stratoes/fastNLP
a8a458230489710ab945b37ec22e93315230f2de
[ "Apache-2.0" ]
291
2018-07-21T07:43:17.000Z
2022-03-07T13:06:58.000Z
fastNLP/doc_utils.py
stratoes/fastNLP
a8a458230489710ab945b37ec22e93315230f2de
[ "Apache-2.0" ]
514
2018-03-09T06:54:25.000Z
2022-03-26T20:11:44.000Z
r"""undocumented 用于辅助生成 fastNLP 文档的代码 """ __all__ = [] import inspect import sys def doc_process(m): for name, obj in inspect.getmembers(m): if inspect.isclass(obj) or inspect.isfunction(obj): if obj.__module__ != m.__name__: if obj.__doc__ is None: # prin...
45.745455
140
0.38275
201
2,516
4.238806
0.288557
0.129108
0.046948
0.044601
0.384977
0.384977
0.333333
0.333333
0.333333
0.333333
0
0.004216
0.528617
2,516
54
141
46.592593
0.714165
0.058824
0
0.375
0
0
0.06531
0
0
0
0
0
0
1
0.025
false
0.025
0.05
0
0.075
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3f78f89f284e6d555c7470d07719793fbd16fd21
8,252
py
Python
labs/lab1/lab1.py
console-beaver/MIT-Racecar-cbeast
f7f9c156e7072da7acc680ae1ad1de344253ae05
[ "MIT" ]
null
null
null
labs/lab1/lab1.py
console-beaver/MIT-Racecar-cbeast
f7f9c156e7072da7acc680ae1ad1de344253ae05
[ "MIT" ]
null
null
null
labs/lab1/lab1.py
console-beaver/MIT-Racecar-cbeast
f7f9c156e7072da7acc680ae1ad1de344253ae05
[ "MIT" ]
null
null
null
""" Copyright MIT and Harvey Mudd College MIT License Summer 2020 Lab 1 - Driving in Shapes """ ######################################################################################## # Imports ######################################################################################## import sys import math sys.path.i...
42.756477
741
0.398691
794
8,252
4.071788
0.197733
0.051964
0.055676
0.083514
0.561398
0.516239
0.465512
0.433962
0.405506
0.334983
0
0.037609
0.442559
8,252
192
742
42.979167
0.665217
0.155235
0
0.443609
0
0
0.076227
0
0
0
0
0.010417
0
1
0.015038
false
0
0.030075
0
0.045113
0.067669
0
0
0
null
0
0
0
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
3f797b3bb705e93226940e5155672ee088d71a01
2,055
py
Python
historiador.py
davidorze/ShipPosting
941f7a4d75fe71d8e9e68cd9a6b343c4ff01d9ca
[ "MIT" ]
2
2022-03-22T02:46:59.000Z
2022-03-22T21:22:05.000Z
historiador.py
davidorze/ShipPosting
941f7a4d75fe71d8e9e68cd9a6b343c4ff01d9ca
[ "MIT" ]
null
null
null
historiador.py
davidorze/ShipPosting
941f7a4d75fe71d8e9e68cd9a6b343c4ff01d9ca
[ "MIT" ]
1
2022-03-22T02:47:03.000Z
2022-03-22T02:47:03.000Z
import logging import datetime from google_images_download import google_images_download #importing the library from PIL import Image import os import random import dill from threading import Event from time import time from datetime import timedelta import wikipedia from telegram.ext import Updater, CommandHandler,...
28.150685
157
0.698297
253
2,055
5.537549
0.438735
0.039258
0.053533
0.057102
0.154176
0.154176
0.154176
0.098501
0.098501
0.098501
0
0.011439
0.191727
2,055
73
158
28.150685
0.832029
0.079319
0
0.085106
0
0
0.120021
0.024429
0
0
0
0
0
1
0.06383
false
0
0.319149
0
0.404255
0.021277
0
0
0
null
0
0
0
0
0
0
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