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
1b933659f87b8cf39336c9379fc5288ae062f439
6,714
py
Python
onap_data_provider/resources/sdc_properties_mixins.py
onap/integration-data-provider
0565394ecbd96730bf982909693514ab88703708
[ "Apache-2.0" ]
null
null
null
onap_data_provider/resources/sdc_properties_mixins.py
onap/integration-data-provider
0565394ecbd96730bf982909693514ab88703708
[ "Apache-2.0" ]
null
null
null
onap_data_provider/resources/sdc_properties_mixins.py
onap/integration-data-provider
0565394ecbd96730bf982909693514ab88703708
[ "Apache-2.0" ]
null
null
null
"""SDC properties mixins module.""" """ Copyright 2021 Deutsche Telekom AG 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 r...
40.203593
112
0.613196
740
6,714
5.433784
0.22027
0.04377
0.022382
0.024372
0.323303
0.263865
0.172096
0.142253
0.142253
0.114897
0
0.001931
0.30563
6,714
166
113
40.445783
0.860575
0.212243
0
0.326316
0
0
0.119053
0.029312
0
0
0
0
0
1
0.052632
false
0
0.084211
0
0.168421
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
0
0
1
0
1b94671a381123d62794de44e17b4732cff5ed86
3,193
py
Python
simple_kg/discovery/entropy_pmi_new_word_discovery/utils.py
xiangking/simpleKG
d1464ec649022e17b2352b6249749af1b064526e
[ "MIT" ]
1
2021-09-18T18:02:44.000Z
2021-09-18T18:02:44.000Z
simple_kg/discovery/entropy_pmi_new_word_discovery/utils.py
xiangking/simpleKG
d1464ec649022e17b2352b6249749af1b064526e
[ "MIT" ]
null
null
null
simple_kg/discovery/entropy_pmi_new_word_discovery/utils.py
xiangking/simpleKG
d1464ec649022e17b2352b6249749af1b064526e
[ "MIT" ]
null
null
null
import re import math import codecs import random import numpy as np def is_not_chinese(uchar:str): """ 判断一个unicode是否是汉字 :param uchar: (str) 待判断的字符 """ if uchar.isalpha() is True: return False elif uchar >= u'\u4e00' and uchar <= u'\u9fa5': return False else: retur...
24.945313
145
0.561854
386
3,193
4.53886
0.375648
0.031963
0.013699
0.043379
0.047945
0
0
0
0
0
0
0.020147
0.316004
3,193
128
146
24.945313
0.782051
0.257125
0
0.067797
0
0
0.005666
0
0
0
0
0
0
1
0.135593
false
0
0.084746
0
0.338983
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
0
0
1
0
1b96072783b482fa73746dbf9752bb1b1b75453f
197
py
Python
ProjectsWithKivy/Projects with Kivy/1. Kivy Layouts/6. PageLayout/pagelayout.py
markgacoka/micro-projects
e8115c8270a115282e7dfda6e24620b3333f8c6b
[ "MIT" ]
null
null
null
ProjectsWithKivy/Projects with Kivy/1. Kivy Layouts/6. PageLayout/pagelayout.py
markgacoka/micro-projects
e8115c8270a115282e7dfda6e24620b3333f8c6b
[ "MIT" ]
null
null
null
ProjectsWithKivy/Projects with Kivy/1. Kivy Layouts/6. PageLayout/pagelayout.py
markgacoka/micro-projects
e8115c8270a115282e7dfda6e24620b3333f8c6b
[ "MIT" ]
null
null
null
import kivy from kivy.app import App from kivy.uix.pagelayout import PageLayout class PageLayoutApp(App): def build(self): return PageLayout() if __name__ == '__main__': PageLayoutApp().run()
19.7
42
0.761421
26
197
5.461538
0.615385
0.112676
0
0
0
0
0
0
0
0
0
0
0.13198
197
10
43
19.7
0.830409
0
0
0
0
0
0.040404
0
0
0
0
0
0
1
0.125
false
0
0.375
0.125
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
0
0
0
3
1b9679ab1f843bbdf20a721c6df2300c3a1bbd49
5,988
py
Python
vscvs/cli/train/optimizers.py
fcoclavero/vscvs
27fab0bc62fb68da044cf6f2516e3c1853f77533
[ "MIT" ]
1
2019-07-02T19:07:15.000Z
2019-07-02T19:07:15.000Z
vscvs/cli/train/optimizers.py
fcoclavero/vscvs
27fab0bc62fb68da044cf6f2516e3c1853f77533
[ "MIT" ]
2
2019-10-23T18:05:37.000Z
2020-09-25T14:16:25.000Z
vscvs/cli/train/optimizers.py
fcoclavero/vscvs
27fab0bc62fb68da044cf6f2516e3c1853f77533
[ "MIT" ]
null
null
null
__author__ = ["Francisco Clavero"] __description__ = "Click groups for different optimizers." __email__ = ["fcoclavero32@gmail.com"] __status__ = "Prototype" import click from vscvs.cli.decorators import pass_kwargs_to_context from vscvs.trainers.mixins import ( AdaBoundOptimizerMixin, AdamOptimizerMixin, ...
25.699571
94
0.665832
721
5,988
5.443828
0.166436
0.086879
0.016051
0.029045
0.767898
0.737325
0.729936
0.695032
0.642803
0.642803
0
0.017115
0.180361
5,988
232
95
25.810345
0.7826
0.056279
0
0.641148
0
0
0.398684
0.00765
0
0
0
0
0
1
0.023923
false
0.028708
0.014354
0
0.038278
0
0
0
0
null
0
0
0
0
1
1
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
3
1b96e763ec1fd38d58bc97efc3d4e768f050096b
5,323
py
Python
data_loader_UAST.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
data_loader_UAST.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
data_loader_UAST.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
import torch from torch.utils.data import Dataset, DataLoader from pre_ast_path import ASTParser from tqdm import tqdm, trange import multiprocessing from multiprocessing import Process, freeze_support import pickle import config import os import re from gen_graph import get_adj, gen_feature from unified_vocab import u...
33.062112
124
0.629344
746
5,323
4.272118
0.289544
0.041732
0.037653
0.032005
0.283652
0.244117
0.224976
0.18042
0.168811
0.141826
0
0.052058
0.224122
5,323
160
125
33.26875
0.719613
0.054856
0
0.101695
0
0
0.078041
0.005973
0
0
0
0
0
1
0.067797
false
0
0.101695
0.008475
0.237288
0.076271
0
0
0
null
0
0
0
0
0
0
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
1
0
1b9791b9dacaa542877d2b291d6238097e8580f1
1,708
py
Python
sdk/python/pulumi_apigateway/_inputs.py
justinvp/pulumi-apigateway
09787a2728f9212d11b155ebeba71d2a95451360
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_apigateway/_inputs.py
justinvp/pulumi-apigateway
09787a2728f9212d11b155ebeba71d2a95451360
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_apigateway/_inputs.py
justinvp/pulumi-apigateway
09787a2728f9212d11b155ebeba71d2a95451360
[ "Apache-2.0" ]
2
2021-04-16T16:39:53.000Z
2021-06-22T13:43:34.000Z
# coding=utf-8 # *** WARNING: this file was generated by Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from . import _utilities, _tables import pul...
29.964912
88
0.64637
206
1,708
5.194175
0.291262
0.102804
0.159813
0.123364
0.45514
0.345794
0.284112
0.166355
0.166355
0
0
0.000758
0.227166
1,708
56
89
30.5
0.809848
0.09192
0
0.142857
1
0
0.100971
0.066019
0
0
0
0
0
1
0.166667
false
0
0.142857
0.071429
0.404762
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
1b97dcc4fee182443ecf7a65d71d064d71890c18
847
py
Python
benedict/serializers/json.py
fabiocaccamo/python-benedict
da061049164efab95ee4360a9c971c5be248fbf2
[ "MIT" ]
365
2019-05-21T05:50:30.000Z
2022-03-29T11:35:35.000Z
benedict/serializers/json.py
fabiocaccamo/python-benedict
da061049164efab95ee4360a9c971c5be248fbf2
[ "MIT" ]
78
2019-11-16T12:22:54.000Z
2022-03-14T12:21:30.000Z
benedict/serializers/json.py
fabiocaccamo/python-benedict
da061049164efab95ee4360a9c971c5be248fbf2
[ "MIT" ]
26
2019-12-16T06:34:12.000Z
2022-02-28T07:16:41.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from benedict.serializers.abstract import AbstractSerializer from benedict.utils import type_util from six import text_type import json class JSONSerializer(AbstractSerializer): def __init__(self): super(JSONSerializer, self).__init__() ...
24.911765
60
0.654073
104
847
5.067308
0.413462
0.060721
0.056926
0.072106
0.165085
0
0
0
0
0
0
0.001567
0.246753
847
33
61
25.666667
0.824451
0.024793
0
0.173913
0
0
0.008495
0
0
0
0
0
0
1
0.173913
false
0
0.217391
0
0.695652
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
0
0
1
0
1b981f9403e35e3edad1513c56a1d0685d8c02e9
5,148
py
Python
docs/report/fa20-523-349/project/RankNet/indycar/online-lstm.py
mikahla1/cybertraining-dsc.github.io
168cadb2f755cb6ad4907e5656bd879d57e01e43
[ "Apache-2.0" ]
4
2020-10-16T21:59:07.000Z
2021-06-27T16:32:50.000Z
docs/report/fa20-523-349/project/RankNet/indycar/online-lstm.py
mikahla1/cybertraining-dsc.github.io
168cadb2f755cb6ad4907e5656bd879d57e01e43
[ "Apache-2.0" ]
8
2020-09-04T13:14:18.000Z
2021-08-19T09:05:27.000Z
docs/report/fa20-523-349/project/RankNet/indycar/online-lstm.py
mikahla1/cybertraining-dsc.github.io
168cadb2f755cb6ad4907e5656bd879d57e01e43
[ "Apache-2.0" ]
25
2020-08-16T17:17:53.000Z
2021-07-08T22:54:34.000Z
from pandas import DataFrame from pandas import Series from pandas import concat from pandas import read_csv from pandas import datetime from sklearn.metrics import mean_squared_error from sklearn.preprocessing import MinMaxScaler from keras.models import Sequential from keras.layers import Dense from keras.layers impo...
34.32
120
0.668221
726
5,148
4.625344
0.242424
0.026802
0.023824
0.016379
0.124479
0.055986
0.055986
0.055986
0.055986
0.055986
0
0.01892
0.219697
5,148
149
121
34.550336
0.817028
0.165113
0
0.06
0
0
0.03004
0.010326
0
0
0
0
0
1
0.11
false
0
0.14
0.02
0.34
0.03
0
0
0
null
0
0
0
0
0
0
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
1
0
1b9a65a2e9f2cc5df22b0506c5bd68872b48ef7e
11,625
py
Python
src/hpx_dashboard/server/widgets/widgets.py
jokteur/hpx-dashboard
91ca3876dec389e514f89f34acdb6ec9cac9d1b4
[ "BSD-3-Clause" ]
6
2020-07-31T08:12:09.000Z
2022-01-16T03:35:06.000Z
src/hpx_dashboard/server/widgets/widgets.py
jokteur/hpx-dashboard
91ca3876dec389e514f89f34acdb6ec9cac9d1b4
[ "BSD-3-Clause" ]
23
2020-08-12T08:51:12.000Z
2020-09-29T16:45:54.000Z
src/hpx_dashboard/server/widgets/widgets.py
jokteur/hpx-dashboard
91ca3876dec389e514f89f34acdb6ec9cac9d1b4
[ "BSD-3-Clause" ]
2
2020-10-08T13:55:45.000Z
2022-01-16T03:37:13.000Z
# -*- coding: utf-8 -*- # # HPX - dashboard # # Copyright (c) 2020 - ETH Zurich # All rights reserved # # SPDX-License-Identifier: BSD-3-Clause """ """ import copy from datetime import datetime import json from bokeh.layouts import column, row from bokeh.models.widgets import Button, Div, Toggle, TextAreaInput from...
33.598266
100
0.590624
1,364
11,625
4.771261
0.177419
0.024892
0.014751
0.007376
0.248002
0.139367
0.108021
0.095267
0.072526
0.072526
0
0.00825
0.311828
11,625
345
101
33.695652
0.80525
0.138065
0
0.114035
0
0
0.073475
0.007982
0
0
0
0
0
1
0.074561
false
0
0.04386
0
0.157895
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
0
0
1
0
1b9ab88a23de12fc95ac762bd368c0dee895cb3a
2,063
py
Python
akatsuki/thanos/migrations/0003_auto_20210829_1818.py
raun/vigilant-system
f535e16d63c7d48e550b52e4d1e833569cb43669
[ "MIT" ]
null
null
null
akatsuki/thanos/migrations/0003_auto_20210829_1818.py
raun/vigilant-system
f535e16d63c7d48e550b52e4d1e833569cb43669
[ "MIT" ]
8
2021-09-08T14:13:53.000Z
2021-09-09T02:12:44.000Z
akatsuki/thanos/migrations/0003_auto_20210829_1818.py
raun/vigilant-system
f535e16d63c7d48e550b52e4d1e833569cb43669
[ "MIT" ]
1
2021-08-29T05:17:43.000Z
2021-08-29T05:17:43.000Z
# Generated by Django 3.2.6 on 2021-08-29 18:18 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('thanos', '0002_auto_2021...
38.924528
152
0.607368
199
2,063
6.130653
0.38191
0.039344
0.057377
0.090164
0.412295
0.366393
0.3
0.189344
0.189344
0.189344
0
0.020516
0.267572
2,063
52
153
39.673077
0.786896
0.021813
0
0.282609
1
0
0.146329
0.054067
0
0
0
0
0
1
0
false
0
0.065217
0
0.130435
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
1b9e89c2c7b2551425e05e9bab467dd513d23999
15,379
py
Python
src/core/uv_edit/prim.py
Epihaius/panda3dstudio
f5c62ca49617cae1aa5aa5b695200027da99e242
[ "BSD-3-Clause" ]
63
2016-01-02T16:28:47.000Z
2022-01-19T11:29:51.000Z
src/core/uv_edit/prim.py
Epihaius/panda3dstudio
f5c62ca49617cae1aa5aa5b695200027da99e242
[ "BSD-3-Clause" ]
12
2016-06-12T14:14:15.000Z
2020-12-18T16:11:45.000Z
src/core/uv_edit/prim.py
Epihaius/panda3dstudio
f5c62ca49617cae1aa5aa5b695200027da99e242
[ "BSD-3-Clause" ]
17
2016-05-23T00:02:27.000Z
2021-04-25T17:48:27.000Z
from .base import * import array class UVPrimitivePart: def __init__(self, picking_color_id, owner, data_row_range, start_positions, default_positions, geom_prim, pos): self.picking_color_id = picking_color_id self.id = picking_color_id self.owner = owner self.da...
36.185882
91
0.63099
2,053
15,379
4.375548
0.093035
0.072359
0.026494
0.026049
0.516977
0.408549
0.386508
0.354447
0.337638
0.297562
0
0.011423
0.265687
15,379
424
92
36.271226
0.784026
0
0
0.31746
0
0
0.026075
0.006437
0
0
0
0
0
1
0.073016
false
0
0.006349
0.006349
0.107937
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
0
0
1
0
1ba2705eba4f588807811918b9d16b830ce3ae7b
5,185
py
Python
lyrebird/config.py
voodoocooder/lyrebird
02e6ebdcfd646855f9648293d9b5ef6da1c6603b
[ "MIT" ]
1
2020-12-11T03:20:11.000Z
2020-12-11T03:20:11.000Z
lyrebird/config.py
voodoocooder/lyrebird
02e6ebdcfd646855f9648293d9b5ef6da1c6603b
[ "MIT" ]
null
null
null
lyrebird/config.py
voodoocooder/lyrebird
02e6ebdcfd646855f9648293d9b5ef6da1c6603b
[ "MIT" ]
null
null
null
import codecs import json import os from pathlib import Path import shutil from packaging import version from lyrebird.mock.logger_helper import get_logger from .version import IVERSION from typing import List from flask import Response, abort from lyrebird.mock.console_helper import warning_msg, err_msg import subpro...
35.272109
124
0.615043
671
5,185
4.587183
0.201192
0.035737
0.036387
0.044185
0.215725
0.169591
0.11371
0.103314
0.077973
0.017544
0
0.003671
0.264417
5,185
146
125
35.513699
0.803356
0.007522
0
0.12069
0
0
0.069325
0.014025
0
0
0
0
0
1
0.112069
false
0.017241
0.112069
0.017241
0.327586
0.017241
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ba28bfe8ab06942b3b06a80f0ac591f457cd467
1,279
py
Python
LeetCode/Python3/Math/313. Super Ugly Number.py
WatsonWangZh/CodingPractice
dc057dd6ea2fc2034e14fd73e07e73e6364be2ae
[ "MIT" ]
11
2019-09-01T22:36:00.000Z
2021-11-08T08:57:20.000Z
LeetCode/Python3/Math/313. Super Ugly Number.py
WatsonWangZh/LeetCodePractice
dc057dd6ea2fc2034e14fd73e07e73e6364be2ae
[ "MIT" ]
null
null
null
LeetCode/Python3/Math/313. Super Ugly Number.py
WatsonWangZh/LeetCodePractice
dc057dd6ea2fc2034e14fd73e07e73e6364be2ae
[ "MIT" ]
2
2020-05-27T14:58:52.000Z
2020-05-27T15:04:17.000Z
# Write a program to find the nth super ugly number. # Super ugly numbers are positive numbers # whose all prime factors are in the given prime list primes of size k. # Example: # Input: n = 12, primes = [2,7,13,19] # Output: 32 # Explanation: [1,2,4,7,8,13,14,16,19,26,28,32] is the sequence of the first 12 # ...
31.975
80
0.526192
190
1,279
3.547368
0.421053
0.066766
0.066766
0.071217
0.15727
0.059347
0
0
0
0
0
0.070905
0.360438
1,279
40
81
31.975
0.750611
0.487099
0
0.125
0
0
0.00468
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.1875
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
0
0
1
0
1ba2f844916c7c55e881bb2eb0b37cadd0f6a906
1,118
py
Python
petfax/server.py
stackdump/factom-hackathon
14ca64428121f4cb7b8aa18c76f452b7b79f0168
[ "MIT" ]
null
null
null
petfax/server.py
stackdump/factom-hackathon
14ca64428121f4cb7b8aa18c76f452b7b79f0168
[ "MIT" ]
null
null
null
petfax/server.py
stackdump/factom-hackathon
14ca64428121f4cb7b8aa18c76f452b7b79f0168
[ "MIT" ]
null
null
null
#!/usr/bin/env python from livereload import Server import bitwrap_io.server from bitwrap_io.api import Config from bitwrap_io.server import app, pnml_editor from flask_restful import Resource, Api class VetChain(Resource): """ save new Petri-Net XML definition """ def post(self, vetid): machine_de...
24.304348
81
0.660107
140
1,118
5.107143
0.578571
0.05035
0.041958
0
0
0
0
0
0
0
0
0.009302
0.230769
1,118
45
82
24.844444
0.822093
0.167263
0
0
0
0
0.08913
0.023913
0
0
0
0.022222
0
1
0.04
false
0
0.2
0
0.32
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1ba40fa09320088e8373dee62cef5d2fb0a82f5f
3,368
py
Python
third_party_package/RDKit_2015_03_1/rdkit/Chem/EState/EState_VSA.py
Ivy286/cluster_basedfps
7fc216537f570436f008ea567c137d03ba2b6d81
[ "WTFPL" ]
9
2019-04-23T01:46:12.000Z
2021-08-16T07:07:12.000Z
third_party_package/RDKit_2015_03_1/rdkit/Chem/EState/EState_VSA.py
Ivy286/cluster_basedfps
7fc216537f570436f008ea567c137d03ba2b6d81
[ "WTFPL" ]
null
null
null
third_party_package/RDKit_2015_03_1/rdkit/Chem/EState/EState_VSA.py
Ivy286/cluster_basedfps
7fc216537f570436f008ea567c137d03ba2b6d81
[ "WTFPL" ]
5
2016-09-21T03:47:48.000Z
2019-07-30T22:17:35.000Z
# $Id$ # # Copyright (C)2003-2010 greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # """ Hybrid EState-VSA de...
30.618182
102
0.676366
566
3,368
3.922261
0.259717
0.016216
0.010811
0.018018
0.623874
0.595496
0.582883
0.565766
0.543243
0.482883
0
0.049062
0.17696
3,368
109
103
30.899083
0.751804
0.139846
0
0.575758
0
0
0.147023
0
0
0
0
0
0
1
0.045455
false
0
0.060606
0
0.166667
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
0
0
1
0
1ba4de424c82fb446e78a5af5223e59e055c3a6e
266
py
Python
py/cap3/calentamiento.py
dacanizares/IntroCS-ES
1324b59a3bed86559117b01ad85384d593394d4a
[ "MIT" ]
2
2020-03-21T19:12:10.000Z
2020-03-27T03:59:41.000Z
py/cap3/calentamiento.py
dacanizares/IntroCS-ES
1324b59a3bed86559117b01ad85384d593394d4a
[ "MIT" ]
13
2020-03-20T01:27:57.000Z
2020-08-08T18:20:29.000Z
py/cap3/calentamiento.py
dacanizares/IntroCS-ES
1324b59a3bed86559117b01ad85384d593394d4a
[ "MIT" ]
null
null
null
# Punto 1 def multiplicar(a, b): m = 0 for i in range(0, b): m = m + a return m # Punto 2 def potencia(a, b): p = 1 for i in range(0, b): p = multiplicar(p, a) return p # Punto 3 a = input() b = input() print potencia(a, b)
14
29
0.507519
49
266
2.755102
0.387755
0.044444
0.088889
0.162963
0.192593
0.192593
0
0
0
0
0
0.040936
0.357143
266
18
30
14.777778
0.748538
0.086466
0
0.153846
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.076923
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
1
0
0
0
0
0
0
0
0
2
1ba69541de6a827ed0694499f2b0ff1f99e24608
2,019
py
Python
examples/extract_clips.py
hannahherbig/gopro-py-api
7f4f87bc34448e95c2ff1230fe85724420db8b4e
[ "MIT" ]
null
null
null
examples/extract_clips.py
hannahherbig/gopro-py-api
7f4f87bc34448e95c2ff1230fe85724420db8b4e
[ "MIT" ]
1
2021-06-11T01:02:30.000Z
2021-06-11T01:02:30.000Z
examples/extract_clips.py
hannahherbig/gopro-py-api
7f4f87bc34448e95c2ff1230fe85724420db8b4e
[ "MIT" ]
null
null
null
import time import numpy as np from goprocam import GoProCamera, constants gpCam = GoProCamera.GoPro() # Extracts clips from latest video latestVideo = gpCam.getVideoInfo() print("Tag count %s" % latestVideo.get(constants.Info.TagCount)) arrayLength = latestVideo[constants.Info.TagCount] if arrayLength % 2 == 0: ...
31.546875
82
0.526003
197
2,019
5.350254
0.411168
0.037951
0.051233
0.071158
0.29981
0.263757
0.263757
0.263757
0.263757
0.263757
0
0.014116
0.333333
2,019
63
83
32.047619
0.768945
0.015849
0
0.315789
0
0
0.115869
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1ba76bd8b43fd2bdb2df468a9e9d41baccb0e88c
1,647
py
Python
gogoedu/management/commands/create-examples.py
tuandang98/gogoedu
f98587f9d315e1253d3a3b9e1e4cd9f148184e29
[ "MIT" ]
2
2021-04-27T16:00:32.000Z
2021-05-30T14:00:07.000Z
gogoedu/management/commands/create-misson.py
tuandang98/gogoedu
f98587f9d315e1253d3a3b9e1e4cd9f148184e29
[ "MIT" ]
null
null
null
gogoedu/management/commands/create-misson.py
tuandang98/gogoedu
f98587f9d315e1253d3a3b9e1e4cd9f148184e29
[ "MIT" ]
null
null
null
from django.core.management import BaseCommand from django_gamification.models import BadgeDefinition, Category, UnlockableDefinition, GamificationInterface from gogoedu.models import myUser class Command(BaseCommand): help = 'Generates fake data for the app' def handle(self, *args, **options): cate...
31.075472
112
0.612629
145
1,647
6.862069
0.413793
0.078392
0.102513
0.128643
0
0
0
0
0
0
0
0.022887
0.310261
1,647
52
113
31.673077
0.852993
0
0
0.162791
0
0
0.151184
0
0
0
0
0
0
1
0.023256
false
0
0.069767
0
0.139535
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
0
0
1
0
1ba9ca4fa4978599705739170468a0038dc28a23
16,675
py
Python
sea/directivity.py
MuriloCardosoSoares/sea
aa105cbbedcde0ddcb1047c28cd4337e7f72ee6d
[ "MIT" ]
5
2020-12-14T14:00:01.000Z
2021-11-22T17:51:55.000Z
sea/directivity.py
MuriloCardosoSoares/sea
aa105cbbedcde0ddcb1047c28cd4337e7f72ee6d
[ "MIT" ]
null
null
null
sea/directivity.py
MuriloCardosoSoares/sea
aa105cbbedcde0ddcb1047c28cd4337e7f72ee6d
[ "MIT" ]
null
null
null
import numpy as np import scipy import scipy.io import pickle from scipy.special import lpmv, spherical_jn, spherical_yn class Directivity: def __init__(self, data_path, rho0, c0, freq_vec, simulated_ir_duration, measurement_radius, sh_order, type, sample_rate=44100, **kwargs): ''...
46.319444
261
0.544168
2,154
16,675
4.061746
0.177344
0.018516
0.022288
0.004801
0.441993
0.399474
0.354555
0.33501
0.324609
0.286661
0
0.019066
0.348906
16,675
359
262
46.448468
0.786774
0.271664
0
0.213018
0
0
0.041862
0
0
0
0
0
0
1
0.029586
false
0.005917
0.029586
0
0.08284
0.065089
0
0
0
null
0
0
0
0
0
0
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
1
0
1baa4fbac611a6d9068bca12c9e9ed78c295f1aa
1,326
py
Python
comp313p_reactive_planner_controller/scripts/map_tester.py
zcabzjs/Robotics-cw2
08a9c56c5507788cfa711de9794afd66cb862af6
[ "BSD-3-Clause" ]
null
null
null
comp313p_reactive_planner_controller/scripts/map_tester.py
zcabzjs/Robotics-cw2
08a9c56c5507788cfa711de9794afd66cb862af6
[ "BSD-3-Clause" ]
null
null
null
comp313p_reactive_planner_controller/scripts/map_tester.py
zcabzjs/Robotics-cw2
08a9c56c5507788cfa711de9794afd66cb862af6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys import rospy from nav_msgs.srv import GetMap from comp313p_reactive_planner_controller.occupancy_grid import OccupancyGrid from comp313p_reactive_planner_controller.search_grid import SearchGrid from comp313p_reactive_planner_controller.grid_drawer import GridDrawer # This class pings...
31.571429
106
0.71267
149
1,326
6.14094
0.489933
0.038251
0.065574
0.088525
0.121311
0
0
0
0
0
0
0.011472
0.211161
1,326
41
107
32.341463
0.863289
0.076923
0
0
0
0
0.099018
0
0
0
0
0
0
0
null
null
0.033333
0.2
null
null
0.233333
0
0
0
null
0
0
0
0
0
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
1baaf041d42b10f2b9e6bbb77092ffa352a07858
2,808
py
Python
model.py
fluxTH/RadioLogger4
d44c13886c93ec0ba64be8d6fce1d4600b49e993
[ "blessing" ]
null
null
null
model.py
fluxTH/RadioLogger4
d44c13886c93ec0ba64be8d6fce1d4600b49e993
[ "blessing" ]
null
null
null
model.py
fluxTH/RadioLogger4
d44c13886c93ec0ba64be8d6fce1d4600b49e993
[ "blessing" ]
null
null
null
########################################################### # ORM Initialization ########################################################### import json from sqlalchemy import ( Column, ForeignKey, Integer, String, DateTime, Text, Enum, ) from sqlalchemy.orm import relationship from sqlalche...
30.521739
105
0.622863
325
2,808
5.209231
0.246154
0.061429
0.05316
0.051979
0.236267
0.138216
0.069699
0.069699
0.069699
0.069699
0
0.00794
0.192664
2,808
91
106
30.857143
0.738862
0.00641
0
0.19403
0
0.014925
0.10824
0.007865
0
0
0
0
0
1
0.074627
false
0
0.074627
0.059701
0.731343
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
1babd018b5acfa8405f4fb134a0f5ed8ad34f2f2
49
py
Python
custom_token.py
Great-Li-Xin/dumb-chatbot
fdf237d7e0c493eb69cbe712b50158f221ccaf0c
[ "MIT" ]
222
2018-01-31T02:06:18.000Z
2020-12-09T08:08:02.000Z
custom_token.py
kevinmel2000/dumb-chatbot
f9ec825997ee45863bb301a9355532bfb09a7cb9
[ "MIT" ]
1
2022-03-15T05:42:01.000Z
2022-03-15T05:42:01.000Z
custom_token.py
realJustinLee/dumb-chatbot
1c67aa3d92913360564b746758820bee310bc06f
[ "MIT" ]
20
2018-04-05T18:10:00.000Z
2020-07-31T09:40:14.000Z
# TOKEN PAD_token = 0 GO_token = 1 EOS_token = 2
9.8
13
0.693878
10
49
3.1
0.7
0
0
0
0
0
0
0
0
0
0
0.078947
0.22449
49
4
14
12.25
0.736842
0.102041
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
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
3
1bac7f2a02209aa3c1416e9cfc5dbdbd50ec2aad
1,151
py
Python
src/spinnaker_ros_lsm/src/jointangle_to_int64.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
2
2020-11-01T13:22:11.000Z
2020-11-01T13:22:20.000Z
src/spinnaker_ros_lsm/src/jointangle_to_int64.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
null
null
null
src/spinnaker_ros_lsm/src/jointangle_to_int64.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python ''' @author Nicolas Berberich @date 07.09.2017 ROS node for converting joint sensor encoder values to degrees and radians. ''' import rospy from std_msgs.msg import Int64 from spinn_ros_msgs.msg import Myo_Joint_Angle import numpy as np def convert_angle(): ''' #topic: /to_spinnaker ...
20.192982
128
0.677672
149
1,151
5.026846
0.516779
0.040053
0.045394
0
0
0
0
0
0
0
0
0.035996
0.227628
1,151
56
129
20.553571
0.806524
0.283232
0
0
0
0
0.10675
0.043956
0
0
0
0
0
1
0.105263
false
0.052632
0.210526
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1bacfc265b86cfe88af89507263771e673a9fca6
10,098
py
Python
sdk/python/pulumi_aws_native/timestream/table.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws_native/timestream/table.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws_native/timestream/table.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
44.09607
184
0.653694
1,170
10,098
5.384615
0.133333
0.066349
0.05127
0.030159
0.653492
0.574286
0.526032
0.493175
0.468571
0.431111
0
0.000132
0.24698
10,098
228
185
44.289474
0.82838
0.281442
0
0.397163
1
0
0.132756
0.033592
0
0
0
0
0
1
0.141844
false
0.007092
0.049645
0.007092
0.283688
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
1bad56ad689387d54b73f03233d0f2cbf354e3cc
1,048
py
Python
migrations/versions/570_create_brief_responses_table.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
25
2015-01-14T10:45:13.000Z
2021-05-26T17:21:41.000Z
migrations/versions/570_create_brief_responses_table.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
641
2015-01-15T11:10:50.000Z
2021-06-15T22:18:42.000Z
migrations/versions/570_create_brief_responses_table.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
22
2015-06-13T15:37:45.000Z
2021-08-19T23:40:49.000Z
"""Create brief responses table Revision ID: 570 Revises: 560 Create Date: 2016-02-10 12:19:22.888832 """ # revision identifiers, used by Alembic. revision = '570' down_revision = '560' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql def upgrade(): op.create_table('br...
29.942857
107
0.714695
139
1,048
5.208633
0.381295
0.135359
0.103591
0.116022
0.223757
0.223757
0.223757
0.09116
0
0
0
0.034973
0.126908
1,048
34
108
30.823529
0.756284
0.132634
0
0
0
0
0.244173
0.08768
0
0
0
0
0
1
0.1
false
0
0.15
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
0
0
0
0
0
0
0
1
0
1baf04303536b99a3ebb6d62d4ffeb153d15b182
2,224
py
Python
tests/stages/test_sklearn_stages.py
blakeNaccarato/pdpcli
ad3ca6c2eccb552bfb4450b5cce02b30c5087282
[ "MIT" ]
15
2021-02-24T18:22:45.000Z
2022-01-06T22:08:46.000Z
tests/stages/test_sklearn_stages.py
blakeNaccarato/pdpcli
ad3ca6c2eccb552bfb4450b5cce02b30c5087282
[ "MIT" ]
1
2022-01-07T08:13:07.000Z
2022-01-07T08:13:07.000Z
tests/stages/test_sklearn_stages.py
blakeNaccarato/pdpcli
ad3ca6c2eccb552bfb4450b5cce02b30c5087282
[ "MIT" ]
1
2022-01-06T22:08:44.000Z
2022-01-06T22:08:44.000Z
import numpy import pandas from sklearn.decomposition import PCA from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.linear_model import LogisticRegression from pdpcli.stages.sklearn_stages import SklearnPredictor, SklearnTransformer def test_sklearn_predictor() -> None: df = pandas.DataFram...
25.563218
77
0.600719
257
2,224
5.027237
0.272374
0.100619
0.03483
0.065015
0.458204
0.458204
0.458204
0.458204
0.396285
0.396285
0
0.013707
0.245504
2,224
86
78
25.860465
0.756257
0
0
0.376812
0
0
0.091727
0
0
0
0
0
0.086957
1
0.057971
false
0
0.086957
0
0.144928
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
0
0
1
0
1bb0d457e17e75fde37dc7cb2a27e8e10c174a94
49
py
Python
drain3/__init__.py
ieven/Drain3
0e4157bc33462dba7c2a72ba4c3fbfdbdecd2cfa
[ "MIT" ]
175
2020-03-05T10:47:15.000Z
2022-03-31T15:13:08.000Z
drain3/__init__.py
ieven/Drain3
0e4157bc33462dba7c2a72ba4c3fbfdbdecd2cfa
[ "MIT" ]
43
2020-03-09T10:56:58.000Z
2022-03-31T23:12:33.000Z
drain3/__init__.py
ieven/Drain3
0e4157bc33462dba7c2a72ba4c3fbfdbdecd2cfa
[ "MIT" ]
53
2020-03-09T09:59:20.000Z
2022-03-30T18:04:11.000Z
from drain3.template_miner import TemplateMiner
16.333333
47
0.877551
6
49
7
1
0
0
0
0
0
0
0
0
0
0
0.022727
0.102041
49
2
48
24.5
0.931818
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
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
1
0
1
0
0
0
0
5
1bb5269d4cdf01dc30f6d34313240f2a75be5789
5,043
py
Python
clmm/plotting.py
96RadhikaJadhav/CLMM
cd0508f82f9a6a4692fe785277ac25c73e89d0d7
[ "BSD-3-Clause" ]
null
null
null
clmm/plotting.py
96RadhikaJadhav/CLMM
cd0508f82f9a6a4692fe785277ac25c73e89d0d7
[ "BSD-3-Clause" ]
null
null
null
clmm/plotting.py
96RadhikaJadhav/CLMM
cd0508f82f9a6a4692fe785277ac25c73e89d0d7
[ "BSD-3-Clause" ]
null
null
null
"""A collection of scripts that can be used to plot the various quantities that CLMM models.""" import matplotlib.pyplot as plt from .galaxycluster import GalaxyCluster def plot_profiles(cluster=None, rbins=None, tangential_component=None, tangential_component_error=None, cross_component=None, cross...
45.432432
224
0.676581
639
5,043
5.209703
0.223787
0.119856
0.050466
0.030039
0.372184
0.312106
0.294983
0.258336
0.2304
0.20036
0
0
0.253421
5,043
110
225
45.845455
0.884197
0.456871
0
0.338983
0
0
0.125531
0
0
0
0
0
0
1
0.016949
false
0.067797
0.033898
0
0.067797
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
1bb5310f158638846addef3485329fd1186a5a2c
3,823
py
Python
src/naima/tests/test_saveread.py
zblz/naima
4e7b85dfcbc00d5e4474c2f339ace0e565c9ffcd
[ "BSD-3-Clause" ]
32
2015-01-02T03:09:58.000Z
2022-03-04T15:30:53.000Z
src/naima/tests/test_saveread.py
Tyrannosaurusxuan/naima
4e7b85dfcbc00d5e4474c2f339ace0e565c9ffcd
[ "BSD-3-Clause" ]
97
2015-01-28T20:09:44.000Z
2021-11-01T23:16:12.000Z
src/naima/tests/test_saveread.py
Tyrannosaurusxuan/naima
4e7b85dfcbc00d5e4474c2f339ace0e565c9ffcd
[ "BSD-3-Clause" ]
45
2015-01-16T09:17:15.000Z
2022-03-31T08:33:46.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst import os import astropy.units as u import numpy as np from astropy.io import ascii from astropy.tests.helper import pytest from astropy.utils.data import get_pkg_data_filename from ..analysis import read_run, save_run from ..model_fitter import Interact...
30.584
73
0.69762
546
3,823
4.70696
0.241758
0.028016
0.049805
0.029572
0.319066
0.29572
0.271595
0.245914
0.245914
0.245914
0
0.010003
0.18938
3,823
124
74
30.830645
0.819297
0.018572
0
0.25
0
0
0.068036
0.032284
0
0
0
0
0.135417
1
0.041667
false
0
0.177083
0
0.21875
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
0
0
1
0
1bb7506d3b4ef13debad4f463bd0c3cecc4860d0
7,513
py
Python
twccli/commands/net.py
TW-NCHC/TWCC-CLI
743be786440ff6f9689c6a10cc2131565e51d391
[ "Apache-2.0" ]
12
2019-04-27T07:45:02.000Z
2020-11-13T08:16:18.000Z
twccli/commands/net.py
twcc/TWCC-CLI
743be786440ff6f9689c6a10cc2131565e51d391
[ "Apache-2.0" ]
23
2021-03-05T07:53:37.000Z
2022-03-20T03:12:33.000Z
twccli/commands/net.py
TW-NCHC/TWCC-CLI
743be786440ff6f9689c6a10cc2131565e51d391
[ "Apache-2.0" ]
6
2019-02-27T00:19:11.000Z
2020-11-13T08:16:19.000Z
from twccli.twcc.services.compute import GpuSite, VcsSite, VcsSecurityGroup, VcsServerNet from twccli.twcc.util import isNone, mk_names from twccli.twcc.services.compute import getServerId, getSecGroupList from twccli.twcc.services.compute_util import list_vcs from twccli.twccli import pass_environment, logger from twc...
33.540179
231
0.591508
920
7,513
4.7
0.248913
0.020814
0.019426
0.025439
0.317761
0.237512
0.199815
0.140148
0.140148
0.140148
0
0.010071
0.286304
7,513
223
232
33.690583
0.796345
0.119526
0
0.285714
0
0.011905
0.203536
0.009839
0
0
0
0
0
1
0.041667
false
0.02381
0.071429
0
0.125
0.005952
0
0
0
null
0
0
0
0
0
0
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
1
0
1bb7f351e87f8b65266319e8795ddb9e3e9b0ea5
4,154
py
Python
apps/users/tests/test_forms.py
bensternthal/affiliates
e234b0ab925b33d71cb5ded3d51dccbcbb0e59c1
[ "BSD-3-Clause" ]
null
null
null
apps/users/tests/test_forms.py
bensternthal/affiliates
e234b0ab925b33d71cb5ded3d51dccbcbb0e59c1
[ "BSD-3-Clause" ]
null
null
null
apps/users/tests/test_forms.py
bensternthal/affiliates
e234b0ab925b33d71cb5ded3d51dccbcbb0e59c1
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.core import mail from django.forms import Form from mock import patch from nose.tools import eq_, ok_ from test_utils import TestCase from users import forms class EditProfileFormTests(TestCase): def _form(self, **kwargs): """Default profile edit form.""" ...
29.884892
78
0.612662
488
4,154
5.006148
0.264344
0.085141
0.083504
0.045027
0.380679
0.329922
0.207122
0.120344
0.067131
0.036021
0
0.021767
0.259027
4,154
138
79
30.101449
0.77193
0.060424
0
0.288889
0
0
0.150438
0.013138
0
0
0
0
0
1
0.2
false
0.222222
0.077778
0.055556
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
1
0
0
0
0
0
1
1bb7fb2a1b9c93628680395b5402a95c58d49234
16,609
py
Python
qsiprep/cli/recon_plot.py
arokem/qsiprep
f0a12fa002ea99cad97f2b5e40c1517d0569e14c
[ "BSD-3-Clause" ]
null
null
null
qsiprep/cli/recon_plot.py
arokem/qsiprep
f0a12fa002ea99cad97f2b5e40c1517d0569e14c
[ "BSD-3-Clause" ]
null
null
null
qsiprep/cli/recon_plot.py
arokem/qsiprep
f0a12fa002ea99cad97f2b5e40c1517d0569e14c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import warnings import os import sys import os.path as op from argparse import ArgumentParser from argparse import RawTextHelpFormatter import nibabel as nb import numpy as np from qsiprep.niworkflows.viz.utils import slices_from_bbox from qsiprep.interfaces.converters import fib2amps, mif2amps fr...
43.252604
90
0.617858
2,188
16,609
4.438757
0.146709
0.025535
0.014415
0.013386
0.449959
0.411347
0.389003
0.341845
0.323105
0.309308
0
0.016133
0.272262
16,609
384
91
43.252604
0.787375
0.037088
0
0.295238
0
0
0.076393
0.001378
0
0
0
0
0
1
0.025397
false
0
0.063492
0
0.098413
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
0
0
1
0
1bb83da1c4ee56bb7f6b29451e7244bad2be8a01
2,740
py
Python
tests/regressiontests/aggregation_regress/tests.py
huicheese/Django-test3
ac11d2dce245b48392e52d1f4acfd5e7433b243e
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/aggregation_regress/tests.py
huicheese/Django-test3
ac11d2dce245b48392e52d1f4acfd5e7433b243e
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/aggregation_regress/tests.py
huicheese/Django-test3
ac11d2dce245b48392e52d1f4acfd5e7433b243e
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.test import TestCase from django.db.models import Count, Max from regressiontests.aggregation_regress.models import * class AggregationTests(TestCase): def test_aggregates_in_where_clause(self): """ Regression test for #12822: DatabaseError: aggregate...
38.055556
82
0.626642
356
2,740
4.69382
0.356742
0.020946
0.031119
0.035907
0.399761
0.399761
0.363854
0.363854
0.363854
0.312388
0
0.016427
0.289051
2,740
71
83
38.591549
0.841376
0.364599
0
0.424242
0
0
0.178389
0.049233
0
0
0
0
0.060606
1
0.090909
false
0
0.121212
0
0.242424
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
0
0
1
0
1bbaf70e6d7277e8e9e2216ee33cc6779be14e8e
3,884
py
Python
Node.py
recep-yildirim/Astar-Algorithm
77936f42fac464d73ef6024ef808a188008801e7
[ "MIT" ]
null
null
null
Node.py
recep-yildirim/Astar-Algorithm
77936f42fac464d73ef6024ef808a188008801e7
[ "MIT" ]
null
null
null
Node.py
recep-yildirim/Astar-Algorithm
77936f42fac464d73ef6024ef808a188008801e7
[ "MIT" ]
null
null
null
class Node () : def __init__ (self , table , index = None) : self.__table = table self.__index = index self.__weight = self.__calculateWeight () self.__left_child = None self.__forward_child = None self.__right_child = None self.__parent = None def getTab...
31.577236
132
0.555098
414
3,884
4.879227
0.125604
0.035644
0.041584
0.071287
0.480198
0.421782
0.412871
0.412871
0.353465
0.242574
0
0.012039
0.337024
3,884
123
133
31.577236
0.772427
0
0
0.193182
0
0
0.010811
0
0
0
0
0
0
1
0.193182
false
0
0
0.068182
0.329545
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
0
0
1
0
1bbb61f6bb7f5635828fad04e429c28202fefb4b
732
py
Python
http/flask/validation.py
hanwhhanwh/python-test
ac97ae83fc9eac3157ff7dc39d6295bc5b15d589
[ "MIT" ]
null
null
null
http/flask/validation.py
hanwhhanwh/python-test
ac97ae83fc9eac3157ff7dc39d6295bc5b15d589
[ "MIT" ]
null
null
null
http/flask/validation.py
hanwhhanwh/python-test
ac97ae83fc9eac3157ff7dc39d6295bc5b15d589
[ "MIT" ]
null
null
null
from jsonschema import validate # A sample schema, like what we'd get from json.load() schema = { "type" : "object", "properties" : { "price" : {"type" : "number", "minimum": 0, "maximum": 39}, "name" : {"type" : "string"}, }, } # If no exception is raised by validate(), the instance is valid. validate(instanc...
28.153846
72
0.61612
84
732
5.345238
0.595238
0.066815
0.084633
0.111359
0.129176
0
0
0
0
0
0
0.011945
0.199454
732
25
73
29.28
0.754266
0.204918
0
0
0
0
0.26087
0
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
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1bc0771c055dd72e5c309407645ee0f915a8b642
24
py
Python
before/0124/2743.py
Kwak-JunYoung/154Algoritm-5weeks
fa18ae5f68a1ee722a30a05309214247f7fbfda4
[ "MIT" ]
3
2022-01-24T03:06:32.000Z
2022-01-30T08:43:58.000Z
before/0124/2743.py
Kwak-JunYoung/154Algoritm-5weeks
fa18ae5f68a1ee722a30a05309214247f7fbfda4
[ "MIT" ]
null
null
null
before/0124/2743.py
Kwak-JunYoung/154Algoritm-5weeks
fa18ae5f68a1ee722a30a05309214247f7fbfda4
[ "MIT" ]
2
2022-01-24T02:27:40.000Z
2022-01-30T08:57:03.000Z
print(len(str(input())))
24
24
0.666667
4
24
4
1
0
0
0
0
0
0
0
0
0
0
0
0
24
1
24
24
0.666667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
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
1
0
0
0
0
1
0
5
1bc25d2905a6ec28f877db6a1883fd599be607eb
7,262
py
Python
tests/test_writer.py
hroncok/rst2txt
9a497d7e277df9a84bc9a89f3a19a7736ab78ecb
[ "BSD-2-Clause" ]
2
2019-05-15T12:31:37.000Z
2020-09-09T08:10:17.000Z
tests/test_writer.py
hroncok/rst2txt
9a497d7e277df9a84bc9a89f3a19a7736ab78ecb
[ "BSD-2-Clause" ]
null
null
null
tests/test_writer.py
hroncok/rst2txt
9a497d7e277df9a84bc9a89f3a19a7736ab78ecb
[ "BSD-2-Clause" ]
1
2021-03-31T09:46:33.000Z
2021-03-31T09:46:33.000Z
# -*- coding: utf-8 -*- """ Test for text writer. """ from __future__ import print_function import tempfile import textwrap from docutils.core import publish_string import rst2txt def assert_serialized(source, expected_output, settings=None): source = textwrap.dedent(source) expected_output = textwrap.dede...
23.577922
74
0.441338
662
7,262
4.758308
0.243202
0.030476
0.090794
0.106667
0.709524
0.684762
0.66254
0.606032
0.559365
0.559365
0
0.012247
0.325392
7,262
307
75
23.654723
0.630741
0.006059
0
0.540909
0
0.004545
0.721637
0.118585
0
0
0
0
0.063636
1
0.059091
false
0
0.05
0
0.109091
0.013636
0
0
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
1bc2a0247712998d72a20f9bf18750c0caf78715
247
py
Python
S18/hw2/homework2part2.py
stanleylio/OCN318
98f0329ea38ddd4ed2966f8f845a0bb29e71b923
[ "MIT" ]
1
2018-03-05T23:33:59.000Z
2018-03-05T23:33:59.000Z
S18/hw2/homework2part2.py
stanleylio/OCN318
98f0329ea38ddd4ed2966f8f845a0bb29e71b923
[ "MIT" ]
null
null
null
S18/hw2/homework2part2.py
stanleylio/OCN318
98f0329ea38ddd4ed2966f8f845a0bb29e71b923
[ "MIT" ]
null
null
null
# The goal: Extract the first four columns from serial_log.txt and place them in output1.csv # # Hint: to join a list of strings into one string, use the .join() function: # ','.join(['256', '24.525', '103.70']) # yields # '256,24.525,103.70'
35.285714
92
0.668016
43
247
3.813953
0.790698
0.060976
0.097561
0.134146
0.158537
0
0
0
0
0
0
0.132353
0.174089
247
6
93
41.166667
0.671569
0.947368
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
1bc382532c3353e71e7dceae633e1c14a30df43c
998
py
Python
stake/migrations/0001_initial.py
lurdray/iotex_staking
cf5886bb92869365b41f4a9ce45be846c9c6ec51
[ "Apache-2.0" ]
null
null
null
stake/migrations/0001_initial.py
lurdray/iotex_staking
cf5886bb92869365b41f4a9ce45be846c9c6ec51
[ "Apache-2.0" ]
null
null
null
stake/migrations/0001_initial.py
lurdray/iotex_staking
cf5886bb92869365b41f4a9ce45be846c9c6ec51
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.7 on 2022-01-24 16:28 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('app', '0001_initial'), ] operations = [ migrations.CreateM...
33.266667
114
0.612224
103
998
5.834951
0.582524
0.039933
0.046589
0.073211
0.1198
0
0
0
0
0
0
0.028188
0.253507
998
29
115
34.413793
0.778523
0.04509
0
0
1
0
0.111462
0.028391
0
0
0
0
0
1
0
false
0
0.136364
0
0.318182
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
1bc3974da46b2e7222bd0a8f654b8b44516aed96
1,789
py
Python
Python/min-cost-climbing-stairs.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2022-01-30T06:55:28.000Z
2022-01-30T06:55:28.000Z
Python/min-cost-climbing-stairs.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
null
null
null
Python/min-cost-climbing-stairs.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2021-12-31T03:56:39.000Z
2021-12-31T03:56:39.000Z
# Time: O(n) # Space: O(1) # 746 # On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). # # Once you pay the cost, you can either climb one or two steps. # You need to find minimum cost to reach the top of the floor, # and you can either start from the step with index 0, or the step ...
28.396825
88
0.546115
294
1,789
3.319728
0.343537
0.015369
0.015369
0.032787
0.147541
0.120902
0.055328
0.032787
0.032787
0
0
0.060048
0.301845
1,789
62
89
28.854839
0.721377
0.446059
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.444444
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
0
0
0
0
1
0
1bc4943ecdbf1164bdb164129e61d0599e4b4509
398
py
Python
PyMOTW/source/fnmatch/fnmatch_fnmatch.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
1
2019-01-04T05:47:50.000Z
2019-01-04T05:47:50.000Z
PyMOTW/source/fnmatch/fnmatch_fnmatch.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
1
2020-07-18T03:52:03.000Z
2020-07-18T04:18:01.000Z
PyMOTW/source/fnmatch/fnmatch_fnmatch.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
2
2021-03-06T04:28:32.000Z
2021-03-06T04:59:17.000Z
#!/usr/bin/env python3 # encoding: utf-8 # # Copyright (c) 2008 Doug Hellmann All rights reserved. # """Test an individual filename with a pattern. """ #end_pymotw_header import fnmatch import os pattern = 'fnmatch_*.py' print('Pattern :', pattern) print() files = os.listdir('.') for name in sorted(files): print...
18.952381
55
0.678392
53
398
5.037736
0.716981
0
0
0
0
0
0
0
0
0
0
0.023952
0.160804
398
20
56
19.9
0.775449
0.38191
0
0
0
0
0.175214
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.333333
0
0
0
null
0
0
0
0
0
0
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
1
0
1bc877b0af569563991836c407b7a62985a32bd0
3,767
py
Python
evaluation_metrics.py
87ZGitHub/sfd.pytorch
66108ab35d8b1c1601c326b151141d9115a1409e
[ "MIT" ]
124
2018-07-08T14:36:06.000Z
2021-04-08T14:01:20.000Z
evaluation_metrics.py
87ZGitHub/sfd.pytorch
66108ab35d8b1c1601c326b151141d9115a1409e
[ "MIT" ]
21
2018-07-09T07:17:40.000Z
2020-08-11T12:26:13.000Z
evaluation_metrics.py
87ZGitHub/sfd.pytorch
66108ab35d8b1c1601c326b151141d9115a1409e
[ "MIT" ]
25
2018-07-09T04:51:21.000Z
2021-04-06T15:40:45.000Z
import numpy as np from anchor import compute_iou import torch def AP(prediction, gt, iou_threshold): """compute average precision of detection, all the coordinate should be (top left bottom right) Args: predict_bboxes (ndarray): should be a N * (4 + 1 + 1) ndarray N is number of boxe...
36.221154
80
0.622511
519
3,767
4.396917
0.283237
0.062664
0.02454
0.023663
0.088519
0.05872
0.05872
0.032428
0.032428
0
0
0.01686
0.291479
3,767
103
81
36.572816
0.838142
0.361826
0
0
0
0
0
0
0
0
0
0
0
1
0.037037
false
0
0.055556
0
0.12963
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
0
0
1
0
1bca0e909e09feec63176d078dcfee15f14ef06a
541
py
Python
src/the_tale/the_tale/game/heroes/migrations/0009_auto_20160319_1712.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
85
2017-11-21T12:22:02.000Z
2022-03-27T23:07:17.000Z
src/the_tale/the_tale/game/heroes/migrations/0009_auto_20160319_1712.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
545
2017-11-04T14:15:04.000Z
2022-03-27T14:19:27.000Z
src/the_tale/the_tale/game/heroes/migrations/0009_auto_20160319_1712.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
45
2017-11-11T12:36:30.000Z
2022-02-25T06:10:44.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-03-19 17:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('heroes', '0008_change_places_history_format'), ] operations = [ migrations.RemoveField( model_name='hero'...
21.64
56
0.584104
55
541
5.563636
0.781818
0.058824
0.084967
0.111111
0
0
0
0
0
0
0
0.052632
0.297597
541
24
57
22.541667
0.752632
0.120148
0
0.25
1
0
0.175476
0.133192
0
0
0
0
0
1
0
false
0
0.0625
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1bcaf2077f60c60393a9163a728dc944be68b9aa
4,151
py
Python
ml_src/utils.py
JaredDobry/imdb_scraper
70056e8bbed49470fa6cbb42e930c95c437bdee3
[ "MIT" ]
null
null
null
ml_src/utils.py
JaredDobry/imdb_scraper
70056e8bbed49470fa6cbb42e930c95c437bdee3
[ "MIT" ]
2
2021-11-17T22:43:26.000Z
2021-11-17T22:43:38.000Z
ml_src/utils.py
JaredDobry/imdb_scraper
70056e8bbed49470fa6cbb42e930c95c437bdee3
[ "MIT" ]
null
null
null
import random import pickle import pathlib import numpy as np import pandas as pd from json import loads from os.path import exists from typing import Any, Dict, List, Tuple from metrics import Category, Feature def unpickle_file(file: pathlib.Path) -> Any: abs_path = str(file) if not abs_path.endswith(".pick...
33.208
111
0.631414
590
4,151
4.286441
0.315254
0.052195
0.019771
0.020166
0.080664
0.051404
0.051404
0.051404
0.035587
0
0
0.010859
0.267887
4,151
124
112
33.475806
0.821323
0.14093
0
0.090909
0
0.011364
0.075949
0.009564
0
0
0
0
0.011364
1
0.102273
false
0
0.102273
0.022727
0.306818
0.011364
0
0
0
null
0
0
0
0
0
0
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
1
0
1bcb75a52c153491e5a8fa2aab5c85e45ee3a1cd
1,564
py
Python
desertbot/modules/commands/Gif.py
Helle-Daryd/DesertBot
0b497db135a4c08dfbdb59108f830ba12fdc6465
[ "MIT", "BSD-3-Clause" ]
7
2018-03-20T17:10:10.000Z
2021-11-17T18:58:04.000Z
desertbot/modules/commands/Gif.py
Helle-Daryd/DesertBot
0b497db135a4c08dfbdb59108f830ba12fdc6465
[ "MIT", "BSD-3-Clause" ]
109
2015-08-20T13:16:35.000Z
2022-01-21T19:40:35.000Z
desertbot/modules/commands/Gif.py
Helle-Daryd/DesertBot
0b497db135a4c08dfbdb59108f830ba12fdc6465
[ "MIT", "BSD-3-Clause" ]
7
2018-03-29T05:55:01.000Z
2021-02-05T19:19:39.000Z
""" Created on Dec 05, 2013 @author: StarlitGhost """ import random from twisted.plugin import IPlugin from zope.interface import implementer from desertbot.message import IRCMessage from desertbot.moduleinterface import IModule from desertbot.modules.commandinterface import BotCommand from desertbot.response import...
28.436364
85
0.621483
170
1,564
5.717647
0.488235
0.053498
0.08642
0.05144
0.131687
0
0
0
0
0
0
0.014134
0.276215
1,564
54
86
28.962963
0.844523
0.029412
0
0.114286
0
0
0.125166
0
0
0
0
0
0
1
0.085714
false
0
0.2
0.057143
0.457143
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
0
0
1
0
1bcbc87a25327faeab5c975e6b8196f74250bcaa
9,457
py
Python
datalad/distribution/drop.py
psychoinformatics-de/datalad
7435edc1d3c73ae2254fa4bfcb8412a8de6d8d4c
[ "MIT" ]
298
2015-01-25T17:36:29.000Z
2022-03-20T03:38:47.000Z
datalad/distribution/drop.py
psychoinformatics-de/datalad
7435edc1d3c73ae2254fa4bfcb8412a8de6d8d4c
[ "MIT" ]
6,387
2015-01-02T18:15:01.000Z
2022-03-31T20:58:58.000Z
datalad/distribution/drop.py
psychoinformatics-de/datalad
7435edc1d3c73ae2254fa4bfcb8412a8de6d8d4c
[ "MIT" ]
109
2015-01-25T17:49:40.000Z
2022-03-06T06:54:54.000Z
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
33.775
91
0.592577
1,112
9,457
4.910971
0.311151
0.020143
0.019227
0.013184
0.058231
0.058231
0.049441
0.032961
0.032961
0.032961
0
0.001067
0.306122
9,457
279
92
33.896057
0.831149
0.232315
0
0.087179
0
0
0.183312
0.007573
0
0
0
0.003584
0
1
0.015385
false
0
0.061538
0
0.112821
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
0
0
1
0
1bcc04e91758981f791ffbb36211c7f01c585bd9
13,552
py
Python
music-dl.py
SyTemossy/music-dl
ada8ecc92e85e5fbe5936684915bf4fe1bab5583
[ "MIT" ]
null
null
null
music-dl.py
SyTemossy/music-dl
ada8ecc92e85e5fbe5936684915bf4fe1bab5583
[ "MIT" ]
null
null
null
music-dl.py
SyTemossy/music-dl
ada8ecc92e85e5fbe5936684915bf4fe1bab5583
[ "MIT" ]
null
null
null
import argparse import sys import os import urllib import requests import json import random commands = [] path = sys.path[0] dpath = sys.path[0] autocreate = False netease_api = { 'music_url': 'http://music.163.com/song/media/outer/url?id=', 'playlist': 'https://api.surmon.me/music/list/', ...
37.333333
396
0.516824
1,566
13,552
4.408685
0.227969
0.008691
0.013036
0.01825
0.343424
0.280852
0.228418
0.187283
0.132242
0.123841
0
0.058596
0.331316
13,552
362
397
37.436464
0.703266
0.011954
0
0.304878
0
0.036585
0.254973
0.016205
0
0
0
0
0
1
0.04878
false
0.033537
0.02439
0
0.137195
0.057927
0
0
0
null
0
0
0
0
0
0
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
1
0
1bcc76036f4adee6ab1ac6897a215f0d51bec9a3
4,604
py
Python
python/federatedml/param/data_split_param.py
hubert-he/FATE
6758e150bd7ca7d6f788f9a7a8c8aea7e6500363
[ "Apache-2.0" ]
3,787
2019-08-30T04:55:10.000Z
2022-03-31T23:30:07.000Z
python/federatedml/param/data_split_param.py
hubert-he/FATE
6758e150bd7ca7d6f788f9a7a8c8aea7e6500363
[ "Apache-2.0" ]
1,439
2019-08-29T16:35:52.000Z
2022-03-31T11:55:31.000Z
python/federatedml/param/data_split_param.py
hubert-he/FATE
6758e150bd7ca7d6f788f9a7a8c8aea7e6500363
[ "Apache-2.0" ]
1,179
2019-08-29T16:18:32.000Z
2022-03-31T12:55:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE 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/lic...
43.028037
112
0.691138
636
4,604
4.831761
0.253145
0.042304
0.063456
0.06248
0.352424
0.323462
0.267491
0.215099
0.215099
0.143508
0
0.00795
0.235013
4,604
106
113
43.433962
0.864566
0.400521
0
0
0
0
0.177028
0
0
0
0
0
0
1
0.045455
false
0
0.045455
0
0.136364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1bcf4193f1b507db072e56b4dbd6e181fbe0b7ce
137
py
Python
samples/autodiscover/services/bases.py
ekiro/haps
88d225e0177de0a0373d12d42d1b6a80437b8d5c
[ "MIT" ]
38
2018-06-15T11:32:05.000Z
2020-05-08T17:04:42.000Z
samples/autodiscover/services/bases.py
lunarwings/haps
537222b5c28244ae87d803918e1b7ede3a338cc8
[ "MIT" ]
6
2020-03-02T19:13:56.000Z
2020-12-03T06:00:38.000Z
samples/autodiscover/services/bases.py
ekiro/haps
88d225e0177de0a0373d12d42d1b6a80437b8d5c
[ "MIT" ]
2
2019-05-17T09:58:36.000Z
2019-06-10T08:18:48.000Z
from haps import base @base class IHeater: def heat(self) -> None: raise NotImplementedError @base class IPump: pass
10.538462
33
0.664234
17
137
5.352941
0.823529
0.197802
0
0
0
0
0
0
0
0
0
0
0.270073
137
12
34
11.416667
0.91
0
0
0.25
0
0
0
0
0
0
0
0
0
1
0.125
false
0.125
0.125
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
1bd10a1e1d8c38d5a012608be42f9224c3b3f533
6,258
py
Python
reid/trainers.py
xueping187/weakly-supervised-person-re-id
3cfe98264dcdb667c132727a57ab80da5a9e6a8f
[ "Apache-2.0" ]
2
2021-09-14T03:39:43.000Z
2021-09-14T03:41:04.000Z
reid/trainers.py
xueping187/weakly-supervised-person-re-id
3cfe98264dcdb667c132727a57ab80da5a9e6a8f
[ "Apache-2.0" ]
null
null
null
reid/trainers.py
xueping187/weakly-supervised-person-re-id
3cfe98264dcdb667c132727a57ab80da5a9e6a8f
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function, absolute_import import time import torch from torch.autograd import Variable import torch.nn.functional as F import numpy as np #from .evaluation_metrics import accuracy from .utils.meters import AverageMeter def MIL(element_logits, seq_len, batch_size, labels): ''' elemen...
42.283784
143
0.592681
871
6,258
4.123995
0.221584
0.033408
0.017539
0.01559
0.2951
0.244154
0.222439
0.193207
0.161192
0.142261
0
0.03151
0.269735
6,258
147
144
42.571429
0.754486
0.171461
0
0.079208
0
0
0.02054
0
0
0
0
0
0.009901
1
0.079208
false
0
0.069307
0
0.207921
0.039604
0
0
0
null
0
0
0
0
0
0
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
1
0
1bd1b91cc7621a6826da68a2e74632538595b5f6
6,618
py
Python
basicsr/models/basicvsr_model.py
IanYeung/ReCp
1a7ace0e1ca3c262e24a222f3f0ab0d5674e9410
[ "Apache-2.0", "MIT" ]
null
null
null
basicsr/models/basicvsr_model.py
IanYeung/ReCp
1a7ace0e1ca3c262e24a222f3f0ab0d5674e9410
[ "Apache-2.0", "MIT" ]
null
null
null
basicsr/models/basicvsr_model.py
IanYeung/ReCp
1a7ace0e1ca3c262e24a222f3f0ab0d5674e9410
[ "Apache-2.0", "MIT" ]
null
null
null
import logging from copy import deepcopy import os.path as osp from tqdm import tqdm import torch from torch.nn.parallel import DistributedDataParallel from basicsr.models.video_base_model import VideoBaseModel from basicsr.utils import imwrite, tensor2img from basicsr.utils.dist_util import get_dist_info from basicsr....
39.628743
80
0.531581
742
6,618
4.520216
0.256065
0.022958
0.014311
0.016696
0.16607
0.15653
0.128205
0.10316
0.10316
0.039952
0
0.006204
0.366727
6,618
166
81
39.86747
0.794083
0.048202
0
0.102941
0
0
0.076972
0.009402
0
0
0
0
0.007353
1
0.044118
false
0
0.080882
0
0.139706
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
0
0
1
0
1bd1d04bc396f8cff36083c8dfa07a6895302798
733
py
Python
python/mesh/generic/fpgaRadio.py
MinesJA/meshNetwork
5ffada57c13049cb00c2996fe239cdff6edf6f17
[ "NASA-1.3" ]
133
2017-06-24T02:44:28.000Z
2022-03-25T05:17:00.000Z
python/mesh/generic/fpgaRadio.py
MinesJA/meshNetwork
5ffada57c13049cb00c2996fe239cdff6edf6f17
[ "NASA-1.3" ]
null
null
null
python/mesh/generic/fpgaRadio.py
MinesJA/meshNetwork
5ffada57c13049cb00c2996fe239cdff6edf6f17
[ "NASA-1.3" ]
33
2017-06-19T03:24:40.000Z
2022-02-03T20:13:12.000Z
import struct from mesh.generic.radio import Radio from mesh.generic.slipMsg import SLIP_END from mesh.generic.cmds import FPGACmds import crcmod.predefined class FPGARadio(Radio): def __init__(self, serial, config): Radio.__init__(self, serial, config) self.crc16 = crcmod.predefined.mkCr...
38.578947
158
0.684857
90
733
5.455556
0.411111
0.081466
0.09165
0.081466
0.350306
0.350306
0.350306
0.350306
0.350306
0.350306
0
0.013267
0.177353
733
18
159
40.722222
0.800995
0.248295
0
0
0
0
0.038532
0
0
0
0
0
0
1
0.181818
false
0
0.454545
0
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
1bd2c291602bab4b785fdad8e90b37c866fe0baa
28,100
py
Python
service/doc_etl.py
wisebobo/doc_ocr_by_template
299601c9c5275cf6ad1bbdca071060df5ede0c7b
[ "MIT" ]
6
2019-11-29T10:10:58.000Z
2022-01-29T07:01:48.000Z
service/doc_etl.py
wisebobo/doc_ocr_by_template
299601c9c5275cf6ad1bbdca071060df5ede0c7b
[ "MIT" ]
7
2019-12-17T05:14:17.000Z
2022-02-10T01:08:50.000Z
service/doc_etl.py
wisebobo/doc_ocr_by_template
299601c9c5275cf6ad1bbdca071060df5ede0c7b
[ "MIT" ]
3
2019-12-17T09:44:28.000Z
2022-01-12T09:54:00.000Z
# -*- coding:utf-8 -*- import re, sys import time, logging from collections import OrderedDict from util.MRZ import MRZ, MRZOCRCleaner from util.ctc2hanzi import ctc_code from util.name2pinyin import ChineseName from util.CHN_ID_Verify import CHNIdNumber from util.log import logging_elapsed_time class doc_etl(object)...
38.545953
134
0.478221
3,147
28,100
4.004131
0.104862
0.037854
0.022697
0.013412
0.481152
0.409967
0.336243
0.263868
0.239981
0.222601
0
0.028856
0.382135
28,100
728
135
38.598901
0.696694
0.022811
0
0.283582
0
0.003731
0.102499
0.001386
0
0
0
0
0
1
0.031716
false
0.007463
0.014925
0.001866
0.089552
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
0
0
1
0
1bd3506d46da04e4e4dbb22df73bd65177767e36
4,238
py
Python
MidControl.py
qchen59/CSC520_Pente_AI
fa2c3c530ccd59f442c4e448787ef066165a4906
[ "Apache-2.0" ]
null
null
null
MidControl.py
qchen59/CSC520_Pente_AI
fa2c3c530ccd59f442c4e448787ef066165a4906
[ "Apache-2.0" ]
1
2022-03-31T23:06:59.000Z
2022-03-31T23:06:59.000Z
MidControl.py
qchen59/CSC520_Pente_AI
fa2c3c530ccd59f442c4e448787ef066165a4906
[ "Apache-2.0" ]
1
2022-03-31T22:07:46.000Z
2022-03-31T22:07:46.000Z
import ConsecutivePieces as Cp import math import copy def mid_control_streaks(board, turn): """ Uses the 'calculate_streaks' method to work out the heuristic values. Then the heuristic values of the pieces that are in the middle 5x5 area of the board is doubled. This will bump up the final score as well....
47.088889
120
0.522888
606
4,238
3.646865
0.176568
0.027149
0.032579
0.031674
0.560181
0.514932
0.514932
0.486878
0.486878
0.486878
0
0.038462
0.380368
4,238
89
121
47.617978
0.803123
0.337659
0
0.563636
0
0
0
0
0
0
0
0
0
1
0.036364
false
0
0.054545
0
0.145455
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
0
0
1
0
1bd3fe207be02c22aed167def654eb7cdcd195fb
1,259
py
Python
lang/py/rfc/21/SocketServer/async_server.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/rfc/21/SocketServer/async_server.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/rfc/21/SocketServer/async_server.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding:UTF-8 # 基于SocketServer的服务器 import socket import threading import SocketServer class ThreadedTCPRequestHandler(SocketServer.BaseRequestHandler): def handle(self): data = self.request.recv(1024) cur_thread = threading.current_thread() response = "{}:{...
25.693878
77
0.69023
145
1,259
5.855172
0.475862
0.042403
0.056537
0.060071
0.077739
0
0
0
0
0
0
0.01277
0.191422
1,259
48
78
26.229167
0.821218
0.045274
0
0
0
0
0.085071
0
0
0
0
0
0
0
null
null
0.030303
0.090909
null
null
0.060606
0
0
0
null
0
0
0
0
0
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
1bd438755efdfb68b94d3ed6b17ddefd4e151daa
1,237
py
Python
mpi/python/intercomm.py
tyohei/examples
38652f48aca2b668bcc116ba401795d4be2f8f18
[ "MIT" ]
1
2020-09-14T17:29:02.000Z
2020-09-14T17:29:02.000Z
mpi/python/intercomm.py
tyohei/examples
38652f48aca2b668bcc116ba401795d4be2f8f18
[ "MIT" ]
8
2020-09-05T10:19:39.000Z
2021-05-07T10:04:27.000Z
mpi/python/intercomm.py
tyohei/examples
38652f48aca2b668bcc116ba401795d4be2f8f18
[ "MIT" ]
null
null
null
from mpi4py import MPI import common def main(): comm = MPI.COMM_WORLD print_mpi = common.create_print_mpi(comm) print_mpi('Hello World!') if comm.rank == 0 or comm.rank == 1: intracomm = comm.Split(color=0, key=comm.rank) else: intracomm = comm.Split(color=1, key=comm.rank) ...
27.488889
76
0.579628
160
1,237
4.26875
0.25625
0.093704
0.070278
0.048316
0.193265
0.193265
0.193265
0.108346
0.076135
0
0
0.020047
0.31447
1,237
44
77
28.113636
0.785377
0.065481
0
0.1875
0
0
0.064292
0
0
0
0
0
0
1
0.03125
false
0
0.0625
0
0.09375
0.15625
0
0
0
null
0
0
0
0
0
0
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
1
0
1bd44a975f616274984e478de5da51d0ef63259d
3,151
py
Python
scripts/create_validators.py
ingoha/pilight-1
a319404034e761892a89c7205b6f1aff6ad8e205
[ "MIT" ]
5
2017-10-06T13:16:41.000Z
2021-07-05T06:42:51.000Z
scripts/create_validators.py
ingoha/pilight-1
a319404034e761892a89c7205b6f1aff6ad8e205
[ "MIT" ]
6
2016-10-19T09:46:38.000Z
2022-03-01T18:00:05.000Z
scripts/create_validators.py
ingoha/pilight-1
a319404034e761892a89c7205b6f1aff6ad8e205
[ "MIT" ]
8
2016-12-10T09:03:55.000Z
2019-03-30T18:37:45.000Z
''' This script reverse engineers the protocols defined in pilight. It converts them to voloptuous schemes to allow protocol validation before sending data to the pilight daemon. 'git' python package has to be installed. TODO: use regex for numbers ''' import re import glob import voluptuous as vo...
32.153061
71
0.573786
373
3,151
4.715818
0.359249
0.081865
0.055713
0.04548
0.320637
0.295623
0.295623
0.295623
0.295623
0.295623
0
0.006132
0.327198
3,151
97
72
32.484536
0.823585
0.250714
0
0.466667
0
0
0.081395
0
0
0
0
0.010309
0
1
0.05
false
0
0.066667
0
0.216667
0.016667
0
0
0
null
0
0
0
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
1bd491cad9869a11fddfbdfbb033b0459fbd192f
352
py
Python
src/tarski/syntax/transform/__init__.py
phoeft670/tarski
7d955e535fbbca012bfd1a12402b97febc6b35b9
[ "Apache-2.0" ]
29
2018-11-26T20:31:04.000Z
2021-12-29T11:08:40.000Z
src/tarski/syntax/transform/__init__.py
phoeft670/tarski
7d955e535fbbca012bfd1a12402b97febc6b35b9
[ "Apache-2.0" ]
101
2018-06-07T13:10:01.000Z
2022-03-11T11:54:00.000Z
src/tarski/syntax/transform/__init__.py
phoeft670/tarski
7d955e535fbbca012bfd1a12402b97febc6b35b9
[ "Apache-2.0" ]
18
2018-11-01T22:44:39.000Z
2022-02-28T04:57:15.000Z
from .nnf import NNFTransformation, to_negation_normal_form from .cnf import CNFTransformation, to_conjunctive_normal_form from .prenex import PrenexTransformation, to_prenex_negation_normal_form from .quantifier_elimination import QuantifierElimination, QuantifierEliminationMode, remove_quantifiers from .neg_builtin ...
50.285714
104
0.897727
38
352
7.973684
0.578947
0.09901
0.138614
0.145215
0
0
0
0
0
0
0
0
0.073864
352
6
105
58.666667
0.929448
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
1bd55542498a1bd15fdd8d4dd1716525214c8319
10,665
py
Python
psx/_dump_/28/_dump_ida_/overlay_b/set_vars.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
15
2018-06-28T01:11:25.000Z
2021-09-27T15:57:18.000Z
psx/_dump_/28/_dump_ida_/overlay_b/set_vars.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
7
2018-06-29T04:08:23.000Z
2019-10-17T13:57:22.000Z
psx/_dump_/28/_dump_ida_/overlay_b/set_vars.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
7
2018-06-28T01:11:34.000Z
2020-05-23T09:21:48.000Z
del_items(0x80137C50) SetType(0x80137C50, "struct THEME_LOC themeLoc[50]") del_items(0x80138398) SetType(0x80138398, "int OldBlock[4]") del_items(0x801383A8) SetType(0x801383A8, "unsigned char L5dungeon[80][80]") del_items(0x80138038) SetType(0x80138038, "struct ShadowStruct SPATS[37]") del_items(0x8013813C) SetType(0x...
35.431894
55
0.802344
1,355
10,665
6.202214
0.24797
0.142789
0.061875
0.002856
0
0
0
0
0
0
0
0.279766
0.069948
10,665
300
56
35.55
0.567497
0
0
0
0
0
0.353024
0
0
0
0.281294
0
0
1
0
true
0
0
0
0
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
1
0
0
0
0
0
0
2
1bd68b28d8c64dd345a08272eb0f18a524da5c6e
6,255
py
Python
leetcode_python/Stack/baseball-game.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Stack/baseball-game.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Stack/baseball-game.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
""" 682. Baseball Game Easy You are keeping score for a baseball game with strange rules. The game consists of several rounds, where the scores of past rounds may affect future rounds' scores. At the beginning of the game, you start with an empty record. You are given a list of strings ops, where ops[i] is the ith o...
30.512195
190
0.515108
882
6,255
3.653061
0.175737
0.050279
0.05121
0.048417
0.616387
0.567039
0.52576
0.490379
0.464308
0.454687
0
0.050676
0.33749
6,255
205
191
30.512195
0.726834
0.442366
0
0.759259
0
0
0.016617
0
0
0
0
0
0.064815
1
0.064815
false
0
0
0
0.203704
0.009259
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1bd6a6caa71854d84375e9c67599c513468cd9c2
2,823
py
Python
tests/unit/utils/cache_provider.py
swilde/OpenSlides
23ae32a75892005632784652d108836d1ba09da9
[ "MIT" ]
3
2021-02-11T20:45:58.000Z
2022-02-09T21:59:42.000Z
tests/unit/utils/cache_provider.py
swilde/OpenSlides
23ae32a75892005632784652d108836d1ba09da9
[ "MIT" ]
2
2021-11-02T15:48:16.000Z
2022-03-02T08:38:19.000Z
tests/unit/utils/cache_provider.py
swilde/OpenSlides
23ae32a75892005632784652d108836d1ba09da9
[ "MIT" ]
3
2021-01-18T11:44:05.000Z
2022-01-19T16:00:23.000Z
from typing import Any, Callable, Dict, List from openslides.utils.cache_providers import Cachable, MemoryCacheProvider def restrict_elements(elements: List[Dict[str, Any]]) -> List[Dict[str, Any]]: """ Adds the prefix 'restricted_' to all values except id. """ out = [] for element in elements: ...
28.515152
88
0.601488
322
2,823
5.15528
0.242236
0.053012
0.072892
0.092771
0.471687
0.471687
0.471687
0.471687
0.40241
0.380723
0
0.016949
0.247609
2,823
98
89
28.806122
0.764595
0.075452
0
0.377049
0
0
0.120892
0.021127
0
0
0
0
0
1
0.147541
false
0.016393
0.032787
0.114754
0.491803
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1bd6b6804b0cea77d67b807d4a13da9c6e74fa86
4,780
py
Python
rkqc/tools/gui/ui/ESOPSynthesis.py
clairechingching/ScaffCC
737ae90f85d9fe79819d66219747d27efa4fa5b9
[ "BSD-2-Clause" ]
158
2016-07-21T10:45:05.000Z
2022-03-25T00:56:20.000Z
rkqc/tools/gui/ui/ESOPSynthesis.py
clairechingching/ScaffCC
737ae90f85d9fe79819d66219747d27efa4fa5b9
[ "BSD-2-Clause" ]
35
2016-07-25T01:23:07.000Z
2021-09-27T16:05:50.000Z
rkqc/tools/gui/ui/ESOPSynthesis.py
clairechingching/ScaffCC
737ae90f85d9fe79819d66219747d27efa4fa5b9
[ "BSD-2-Clause" ]
62
2016-08-29T17:28:11.000Z
2021-12-29T17:55:58.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ESOPSynthesis.ui' # # Created: Wed May 11 17:29:16 2011 # by: PyQt4 UI code generator 4.8.3 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except A...
56.235294
148
0.729079
521
4,780
6.583493
0.191939
0.062974
0.073761
0.090962
0.468222
0.253936
0.043732
0.043732
0.043732
0.043732
0
0.024186
0.152301
4,780
84
149
56.904762
0.82231
0.045397
0
0
1
0
0.068072
0
0
0
0
0
0
1
0.028571
false
0
0.014286
0
0.057143
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
1bd6be2fc7c5b1b45e6116789f9a3be537751a34
6,970
py
Python
data/gta5_dataset.py
Jo-wang/ProDA
58910b1fe2bdbf79d0e12708b77b6df4f386bb49
[ "MIT" ]
193
2021-03-25T07:29:56.000Z
2022-03-30T08:56:44.000Z
caco_proda_finetune/data/gta5_dataset.py
jxhuang0508/CaCo
0106d93fd6277ca843572a6aa01bdf2d1caca117
[ "MIT" ]
43
2021-04-13T02:13:18.000Z
2022-03-31T11:14:58.000Z
caco_proda_finetune/data/gta5_dataset.py
jxhuang0508/CaCo
0106d93fd6277ca843572a6aa01bdf2d1caca117
[ "MIT" ]
35
2021-03-26T09:29:58.000Z
2022-01-20T17:40:08.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import os import sys import torch import numpy as np import scipy.misc as m import matplotlib.pyplot as plt import matplotlib.image as imgs from PIL import Image import random import scipy.io as io from tqdm import tqdm from scipy import stats ...
34.50495
114
0.545194
915
6,970
4.039344
0.310383
0.006494
0.005682
0.026515
0.143939
0.120671
0.102814
0.074134
0.055195
0.036797
0
0.09403
0.31033
6,970
201
115
34.676617
0.674849
0.106456
0
0
0
0
0.068067
0
0
0
0
0.00995
0
1
0.047945
false
0
0.10274
0.006849
0.212329
0.020548
0
0
0
null
0
0
0
0
0
0
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
1
0
1bd8344c5079ad7625f96055dc71a256fa657bdc
14,857
py
Python
neural-net/neural-net.py
MrTeuthis/traffic-toronto
9bf33ddc437ec138e78539f35260ec46761f0fd2
[ "MIT" ]
null
null
null
neural-net/neural-net.py
MrTeuthis/traffic-toronto
9bf33ddc437ec138e78539f35260ec46761f0fd2
[ "MIT" ]
null
null
null
neural-net/neural-net.py
MrTeuthis/traffic-toronto
9bf33ddc437ec138e78539f35260ec46761f0fd2
[ "MIT" ]
null
null
null
import tensorflow as tf import random as rand import numpy as np import pickle import random import argparse import pprint from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt from matplotlib import cm from matplotlib.ticker import LinearLocator, FormatStrFormatter from matplotlib.animation import Fu...
39.938172
179
0.622871
2,134
14,857
4.215558
0.142455
0.032681
0.050022
0.075033
0.635394
0.581036
0.514896
0.495665
0.483659
0.45309
0
0.027055
0.2238
14,857
371
180
40.045822
0.753035
0.073299
0
0.489796
0
0
0.106778
0.003571
0
0
0
0
0
1
0.010204
false
0
0.044218
0.006803
0.064626
0.112245
0
0
0
null
0
0
0
0
0
0
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
1
0
1bd84f91db30e70500d6e6134cbbca69df24cc6b
4,175
py
Python
tests/torch_api/test_process_group.py
woqidaideshi/bagua
0ee96da598685748519d58d24ce983499cb36721
[ "MIT" ]
635
2021-06-11T03:03:11.000Z
2022-03-31T14:52:57.000Z
tests/torch_api/test_process_group.py
zhjc/bagua
eeaa2bf8950248a2e72ce2e471bbf08cb3b8b985
[ "MIT" ]
181
2021-06-10T12:27:19.000Z
2022-03-31T04:08:19.000Z
tests/torch_api/test_process_group.py
shjwudp/bagua
7e1b438e27e3119b23e472f5b9217a9862932bef
[ "MIT" ]
71
2021-06-10T13:16:53.000Z
2022-03-22T09:26:22.000Z
import os import unittest import torch import torch.distributed as c10d import bagua.torch_api as bagua from tests.internal.common_utils import find_free_port from tests.internal.multi_process import MultiProcessTestCase, setup_bagua_env from tests import skip_if_cuda_not_available class Result(object): def __i...
32.617188
87
0.661796
564
4,175
4.583333
0.244681
0.043327
0.040619
0.026306
0.426306
0.348162
0.238685
0.138878
0.138878
0.138878
0
0.024329
0.232096
4,175
127
88
32.874016
0.781971
0.067545
0
0.16129
0
0
0.043243
0.01287
0
0
0
0
0.075269
1
0.075269
false
0
0.096774
0
0.204301
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
0
0
1
0
1bd85d1873c4b42c8b465294d73f6fd5c76d77ed
9,292
py
Python
spacekit/skopes/hst/svm/predict.py
hakkeray/spacekit
f57e3bab80efca418b898996366d4dfb186246e0
[ "MIT" ]
1
2020-10-14T18:04:07.000Z
2020-10-14T18:04:07.000Z
spacekit/skopes/hst/svm/predict.py
hakkeray/spacekit
f57e3bab80efca418b898996366d4dfb186246e0
[ "MIT" ]
null
null
null
spacekit/skopes/hst/svm/predict.py
hakkeray/spacekit
f57e3bab80efca418b898996366d4dfb186246e0
[ "MIT" ]
null
null
null
""" This module generates predictions using a pre-trained ensemble neural network for unlabeled SVM regression test data and alignment images. The ensemble model is a combination of two neural networks: a MultiLayerPerceptron (for regression test data) and a 3D Image Convolutional Neural Network (CNN). The script inclu...
33.666667
396
0.62656
1,268
9,292
4.481861
0.248423
0.038712
0.02094
0.017596
0.263241
0.224177
0.170333
0.156431
0.14517
0.128629
0
0.014277
0.2613
9,292
275
397
33.789091
0.813666
0.329638
0
0.127072
1
0.005525
0.213271
0.041451
0
0
0
0
0
1
0.022099
false
0
0.049724
0
0.088398
0.127072
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
1bd948d6210c3b20eae27d41f0ad6a8b33ca0641
1,209
py
Python
laskarit/viikko2/unicafe/src/kassapaate.py
miikara/landlord
1f9a2ae2485adb8837a9b1d0668cc0708aec4d5f
[ "MIT" ]
1
2021-05-16T22:41:55.000Z
2021-05-16T22:41:55.000Z
laskarit/viikko2/unicafe/src/kassapaate.py
miikara/landlord
1f9a2ae2485adb8837a9b1d0668cc0708aec4d5f
[ "MIT" ]
null
null
null
laskarit/viikko2/unicafe/src/kassapaate.py
miikara/landlord
1f9a2ae2485adb8837a9b1d0668cc0708aec4d5f
[ "MIT" ]
null
null
null
class Kassapaate: def __init__(self): self.kassassa_rahaa = 100000 self.edulliset = 0 self.maukkaat = 0 def syo_edullisesti_kateisella(self, maksu): if maksu >= 240: self.kassassa_rahaa = self.kassassa_rahaa + 240 self.edulliset += 1 return ma...
26.866667
59
0.544251
129
1,209
4.922481
0.24031
0.113386
0.16063
0.066142
0.579528
0.431496
0.091339
0
0
0
0
0.057718
0.383788
1,209
44
60
27.477273
0.794631
0
0
0.384615
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0
0
0.410256
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
0
0
1
0
1bdb8ff2ab04650c354ff55f8bfdaf2310b0c2ee
4,135
py
Python
multiuploader/utils.py
dicos/django-multiuploader
5fc7c782486bfab367e372b90efadb9c61e6e257
[ "MIT" ]
null
null
null
multiuploader/utils.py
dicos/django-multiuploader
5fc7c782486bfab367e372b90efadb9c61e6e257
[ "MIT" ]
null
null
null
multiuploader/utils.py
dicos/django-multiuploader
5fc7c782486bfab367e372b90efadb9c61e6e257
[ "MIT" ]
null
null
null
import os import time import urllib import logging import mimetypes from hashlib import sha1 from random import choice from wsgiref.util import FileWrapper from django.conf import settings from django.core.files import File from django.http import HttpResponse, StreamingHttpResponse from django.utils.tim...
32.559055
103
0.648126
502
4,135
5.23506
0.388446
0.022831
0.01484
0.019406
0.060122
0.060122
0.040335
0.040335
0.040335
0.040335
0
0.01216
0.244256
4,135
126
104
32.81746
0.8288
0.159613
0
0.076923
0
0
0.10217
0.028632
0
0
0
0
0
1
0.102564
false
0
0.205128
0.012821
0.435897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
59ef80c6d5b9db80f94f7e583695d33684b37cea
672
py
Python
students/K33402/Barabanov Denis/lr1/task2/server.py
dEbAR38/ITMO_ICT_WebDevelopment_2020-2021
208cbc6d2b6d40c3043d35ce773a3433b377f671
[ "MIT" ]
null
null
null
students/K33402/Barabanov Denis/lr1/task2/server.py
dEbAR38/ITMO_ICT_WebDevelopment_2020-2021
208cbc6d2b6d40c3043d35ce773a3433b377f671
[ "MIT" ]
null
null
null
students/K33402/Barabanov Denis/lr1/task2/server.py
dEbAR38/ITMO_ICT_WebDevelopment_2020-2021
208cbc6d2b6d40c3043d35ce773a3433b377f671
[ "MIT" ]
null
null
null
import socket sock = socket.socket() sock.bind(('', 9090)) sock.listen(1) conn, addr = sock.accept() print(conn) while True: data = conn.recv(1024) data = str(data.decode()) print(data) if not data=='pifagor': conn.send('Такой задачи нет'.encode()) break else: conn.send('вве...
24.888889
63
0.541667
88
672
4.136364
0.511364
0.087912
0.065934
0.087912
0.181319
0.181319
0.181319
0.181319
0
0
0
0.03527
0.282738
672
27
64
24.888889
0.719917
0
0
0.16
0
0
0.139673
0
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0.08
0
0
0
null
0
0
0
0
0
0
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
1
0
59f050a0b633204f5e3438dac473652fa6b25572
12,025
py
Python
src/striemann/tests/test_striemann.py
madedotcom/striemann
fc6089bc5f1b96118ffe6474594798763d19c050
[ "MIT" ]
null
null
null
src/striemann/tests/test_striemann.py
madedotcom/striemann
fc6089bc5f1b96118ffe6474594798763d19c050
[ "MIT" ]
16
2018-05-29T14:52:57.000Z
2020-05-14T12:33:32.000Z
src/striemann/tests/test_striemann.py
madedotcom/striemann
fc6089bc5f1b96118ffe6474594798763d19c050
[ "MIT" ]
null
null
null
from expects import expect from icdiff_expects import equal from unittest import mock import striemann.metrics import json class Test: def test_gauges(self): transport = striemann.metrics.InMemoryTransport() metrics = striemann.metrics.Metrics(transport, source="test") metrics.recordGauge(...
30.0625
86
0.490728
1,067
12,025
5.412371
0.147142
0.063723
0.04329
0.041558
0.695065
0.65974
0.625628
0.594978
0.50632
0.487273
0
0.007111
0.380208
12,025
399
87
30.137845
0.767745
0.004241
0
0.589124
0
0
0.138573
0
0
0
0
0
0.060423
1
0.063444
false
0.021148
0.015106
0
0.096677
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
0
0
1
0
59f073559061a5de8a0cd772dadf4560b56bd0fb
5,128
py
Python
paper/figures/HD189733/viz.py
j-faria/wobble
041cd58fa8fb87bb5b41ee23bd1ea716bab7051b
[ "MIT" ]
38
2016-06-03T13:15:49.000Z
2021-12-01T00:02:11.000Z
paper/figures/HD189733/viz.py
j-faria/wobble
041cd58fa8fb87bb5b41ee23bd1ea716bab7051b
[ "MIT" ]
63
2016-09-17T13:38:16.000Z
2021-02-05T16:27:10.000Z
paper/figures/HD189733/viz.py
j-faria/wobble
041cd58fa8fb87bb5b41ee23bd1ea716bab7051b
[ "MIT" ]
17
2017-05-04T03:03:16.000Z
2022-01-10T17:56:43.000Z
from ipywidgets import interact, interactive, fixed, interact_manual import ipywidgets as widgets from ipywidgets import Layout import starry from ylm_rot import get_ylm_coeffs import matplotlib.pyplot as pl import numpy as np vslider = \ widgets.FloatSlider( value=0.1, min=0.1, max=10.0, step=0.01, ...
25.89899
88
0.608034
766
5,128
3.972585
0.25718
0.06211
0.020703
0.076241
0.425896
0.388432
0.351298
0.320407
0.309234
0.301019
0
0.064712
0.228549
5,128
198
89
25.89899
0.704499
0.058892
0
0.431953
0
0
0.085168
0
0
0
0
0
0
1
0.011834
false
0
0.04142
0.005917
0.059172
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
0
0
1
0
59f0dcccc30e5c47e03c3762b37daf71a44fb738
14,101
py
Python
tests/test_simple.py
FFY00/mousebender
df0b7f7408c952ea8d124ab2c8c9b8c24ea77d06
[ "BSD-3-Clause" ]
21
2020-04-10T03:53:44.000Z
2022-01-12T08:31:56.000Z
tests/test_simple.py
FFY00/mousebender
df0b7f7408c952ea8d124ab2c8c9b8c24ea77d06
[ "BSD-3-Clause" ]
34
2020-04-10T19:56:29.000Z
2022-01-27T22:10:22.000Z
tests/test_simple.py
sthagen/mousebender
849844440f024adb9efe19c4774bae1ed45335f6
[ "BSD-3-Clause" ]
8
2020-04-10T03:09:00.000Z
2021-11-04T11:17:38.000Z
"""Tests for mousebender.simple.""" import warnings import importlib_resources import packaging.version import pytest from mousebender import simple from .data import simple as simple_data class TestProjectURLConstruction: """Tests for mousebender.simple.create_project_url().""" @pytest.mark.parametrize(...
37.403183
346
0.556344
1,499
14,101
5.070047
0.140093
0.050526
0.037632
0.016842
0.613026
0.545263
0.494079
0.481184
0.438421
0.388684
0
0.115761
0.312035
14,101
376
347
37.50266
0.667663
0.022906
0
0.432927
0
0.064024
0.388497
0.184978
0
0
0
0
0.091463
1
0.073171
false
0
0.02439
0.003049
0.112805
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
0
0
1
0
59f5273b29007b20b07871db2635217e7e4a6330
1,743
py
Python
danceschool/register/forms.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
32
2017-09-12T04:25:25.000Z
2022-03-21T10:48:07.000Z
danceschool/register/forms.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
97
2017-09-01T02:43:08.000Z
2022-01-03T18:20:34.000Z
danceschool/register/forms.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
19
2017-09-26T13:34:46.000Z
2022-03-21T10:48:10.000Z
from django import forms from django.utils.translation import gettext_lazy as _ from django.db.models import F from dal import autocomplete from danceschool.core.models import Customer class CustomerGuestAutocompleteForm(forms.Form): ''' This form can be used to search for customers and names on the guest ...
35.571429
79
0.583477
181
1,743
5.546961
0.618785
0.02988
0.021912
0.027888
0
0
0
0
0
0
0
0.003416
0.32817
1,743
48
80
36.3125
0.853971
0.277108
0
0
0
0
0.135332
0.020259
0
0
0
0
0
1
0.034483
false
0
0.172414
0
0.241379
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
0
0
1
0
59f5db8231e7b5f35e36a4f3a192c0a0e3556e9c
252
py
Python
app/__init__.py
ethpch/api.ethpch
af56354a7e8f5304a5c86dd752577da376f1f1ce
[ "MIT" ]
2
2021-09-23T14:43:10.000Z
2021-09-26T12:01:11.000Z
app/__init__.py
ethpch/api.ethpch
af56354a7e8f5304a5c86dd752577da376f1f1ce
[ "MIT" ]
null
null
null
app/__init__.py
ethpch/api.ethpch
af56354a7e8f5304a5c86dd752577da376f1f1ce
[ "MIT" ]
null
null
null
from .base import APP from utils.config import apps if 'pixiv' in apps: from .pixiv import pixiv_router APP.include_router(pixiv_router) if 'shorturl' in apps: from .shorturl import shorturl_router APP.include_router(shorturl_router)
22.909091
41
0.761905
37
252
5.027027
0.351351
0.064516
0.107527
0.236559
0
0
0
0
0
0
0
0
0.174603
252
10
42
25.2
0.894231
0
0
0
0
0
0.051587
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
59f6a0718d51a789e27b2f717d206af701b1445f
3,093
py
Python
SIR_functions.py
TheNewExecutor/CoronaVirus
779cd9f8338ce3b9f2a0383a5a526e694c65e3ee
[ "MIT" ]
null
null
null
SIR_functions.py
TheNewExecutor/CoronaVirus
779cd9f8338ce3b9f2a0383a5a526e694c65e3ee
[ "MIT" ]
null
null
null
SIR_functions.py
TheNewExecutor/CoronaVirus
779cd9f8338ce3b9f2a0383a5a526e694c65e3ee
[ "MIT" ]
null
null
null
from scipy.integrate import solve_ivp import numpy as np import matplotlib.pyplot as plt from sklearn.metrics import mean_squared_error from hyperopt import hp, fmin, tpe from typing import Tuple def SIR(t, y, N, kappa, tau, nu): """ Expresses SIR model in initial value ODE format, including time, ...
28.118182
87
0.590365
412
3,093
4.371359
0.383495
0.026652
0.008329
0.018323
0
0
0
0
0
0
0
0.01012
0.297123
3,093
109
88
28.376147
0.818307
0.436793
0
0
0
0
0.035162
0
0
0
0
0
0
1
0.131579
false
0
0.157895
0
0.394737
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
0
0
1
0
59f93eebbd7e541b8c3908f89c9876035051096e
854
py
Python
src/lcm_zmq_integration/xserver.py
bthcode/cmake_scipy_ctypes_example
64a7afdd825f0bb6a50cb174f4ced231b3017c8d
[ "BSD-3-Clause" ]
null
null
null
src/lcm_zmq_integration/xserver.py
bthcode/cmake_scipy_ctypes_example
64a7afdd825f0bb6a50cb174f4ced231b3017c8d
[ "BSD-3-Clause" ]
null
null
null
src/lcm_zmq_integration/xserver.py
bthcode/cmake_scipy_ctypes_example
64a7afdd825f0bb6a50cb174f4ced231b3017c8d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Example Script to show LCM serialized data transported on by very simple ZeroMQ pub/sub message server/client """ import zmq from example_lcm import image_t import time # # Set up a simple ZMQ publisher # - socket type is zmq.PUB, meaning fire and forget publisher # - socket connection...
20.333333
63
0.625293
135
854
3.933333
0.533333
0.022599
0
0
0
0
0
0
0
0
0
0.036107
0.254098
854
41
64
20.829268
0.797488
0.41452
0
0
0
0
0.03719
0
0
0
0
0
0
1
0
false
0
0.15
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
59f95b02645ef93d80f48dd3f5a6fd77148ddf83
6,799
py
Python
python/misc/dataFrameToDatabase/dataFrameToDatabase.py
jlucas-esri/Geospatial-Center-Code
a8a1c7028d254690af788cbdd9cbdf859a422413
[ "Apache-2.0" ]
14
2020-09-22T22:11:35.000Z
2022-02-05T07:50:06.000Z
python/misc/dataFrameToDatabase/dataFrameToDatabase.py
jlucas-esri/Geospatial-Center-Code
a8a1c7028d254690af788cbdd9cbdf859a422413
[ "Apache-2.0" ]
2
2020-09-23T15:14:40.000Z
2021-08-24T15:04:11.000Z
python/misc/dataFrameToDatabase/dataFrameToDatabase.py
apfister/Geospatial-Center
a8a1c7028d254690af788cbdd9cbdf859a422413
[ "Apache-2.0" ]
6
2020-11-20T17:22:30.000Z
2021-11-12T13:22:20.000Z
import logging import time import pandas as pd from pandas.errors import EmptyDataError import sqlalchemy from typing import Union, List class DataFrameToDatabase: def __init__(self, df:Union[pd.DataFrame, pd.io.parsers.TextFileReader], dbTableName:str, driver:str, ...
36.358289
117
0.508016
644
6,799
5.212733
0.240683
0.047662
0.041704
0.011618
0.263628
0.257671
0.227882
0.177242
0.177242
0.177242
0
0.000499
0.410943
6,799
186
118
36.553763
0.837703
0.123695
0
0.266129
0
0
0.090506
0
0
0
0
0
0
1
0.040323
false
0.040323
0.048387
0
0.112903
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
0
0
1
0
59fa8411dfa74bbeb8be27d4bcf88306bb7fbf17
5,508
py
Python
pdfstream/servers/xpd_server.py
st3107/pdfstream
6e1829d889e5f5400386513efe993ad0596da8a5
[ "BSD-3-Clause" ]
null
null
null
pdfstream/servers/xpd_server.py
st3107/pdfstream
6e1829d889e5f5400386513efe993ad0596da8a5
[ "BSD-3-Clause" ]
34
2020-07-08T16:24:52.000Z
2020-11-21T17:55:13.000Z
pdfstream/servers/xpd_server.py
st3107/pdfstream
6e1829d889e5f5400386513efe993ad0596da8a5
[ "BSD-3-Clause" ]
1
2020-10-05T14:51:32.000Z
2020-10-05T14:51:32.000Z
"""The analysis server. Process raw image to PDF.""" import typing as tp import databroker from bluesky.callbacks.zmq import Publisher from databroker.v2 import Broker from event_model import RunRouter from ophyd.sim import NumpySeqHandler from pdfstream.callbacks.analysis import AnalysisConfig, VisConfig, ExportConf...
35.535484
112
0.642157
641
5,508
5.340094
0.291732
0.01636
0.01636
0.016652
0.056091
0.02454
0.02454
0.02454
0
0
0
0.00073
0.253813
5,508
154
113
35.766234
0.832117
0.157771
0
0.154545
0
0.009091
0.098598
0
0
0
0
0
0
1
0.090909
false
0.018182
0.1
0.009091
0.309091
0.009091
0
0
0
null
0
0
0
0
0
0
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
1
0
59fadeeb36901e3065564a09daa8450d35a9d7e8
2,965
py
Python
src/tests/snn/test_snn.py
ibm-research-tokyo/diffsnn
9299fc5e8542c6fde33a287f81e7ae3682b2fd9d
[ "Apache-2.0" ]
20
2021-06-01T02:42:43.000Z
2022-02-14T07:08:34.000Z
src/tests/snn/test_snn.py
ibm-research-tokyo/diffsnn
9299fc5e8542c6fde33a287f81e7ae3682b2fd9d
[ "Apache-2.0" ]
null
null
null
src/tests/snn/test_snn.py
ibm-research-tokyo/diffsnn
9299fc5e8542c6fde33a287f81e7ae3682b2fd9d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Title ''' __author__ = 'Hiroshi Kajino <KAJINO@jp.ibm.com>' __copyright__ = 'Copyright IBM Corp. 2020, 2021' from copy import deepcopy import unittest import torch from diffsnn.pp.snn import FullyObsSigmoidSNN from .base import (TestBase, GenFullyOb...
31.542553
95
0.568971
293
2,965
5.617747
0.324232
0.066829
0.087485
0.054678
0.555893
0.53706
0.465371
0.352369
0.292831
0.26367
0
0.019841
0.320067
2,965
93
96
31.88172
0.796627
0.084317
0
0.546875
0
0
0.093587
0.00783
0
0
0
0
0.046875
1
0.109375
false
0
0.078125
0
0.25
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
0
0
0
0
0
0
0
0
1
0
59fbe9b9c44c1dc57ed0a0f530dd480352ca04fe
184
py
Python
crash_course/ch10/exec/favorite_number_reader.py
dantin/python-by-example
5769c7a332ebd60fd54e477b6813f2f2a0f3f37f
[ "BSD-3-Clause" ]
null
null
null
crash_course/ch10/exec/favorite_number_reader.py
dantin/python-by-example
5769c7a332ebd60fd54e477b6813f2f2a0f3f37f
[ "BSD-3-Clause" ]
null
null
null
crash_course/ch10/exec/favorite_number_reader.py
dantin/python-by-example
5769c7a332ebd60fd54e477b6813f2f2a0f3f37f
[ "BSD-3-Clause" ]
null
null
null
import json filename = 'tmp/favorite-number.json' with open(filename) as f_obj: favorite = json.load(f_obj) print('I know your favorite number! It\'s ' + str(favorite) + '.')
16.727273
66
0.679348
28
184
4.392857
0.678571
0.227642
0
0
0
0
0
0
0
0
0
0
0.173913
184
10
67
18.4
0.809211
0
0
0
0
0
0.409836
0.131148
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
1
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
2
59fde8656226ce9a5927a84f87c9663b0ac3a0ce
406
py
Python
tests/test_news.py
mugisha-thierry/news_app
b5155182493577d859cd2fa5bcf58d4647bc2dd5
[ "Unlicense" ]
null
null
null
tests/test_news.py
mugisha-thierry/news_app
b5155182493577d859cd2fa5bcf58d4647bc2dd5
[ "Unlicense" ]
null
null
null
tests/test_news.py
mugisha-thierry/news_app
b5155182493577d859cd2fa5bcf58d4647bc2dd5
[ "Unlicense" ]
null
null
null
import unittest from app.models import News class MewsTest(unittest.TestCase): """ Test Class to test the behaviour of the News class """ def setUp(self): """ Set up method that will run before every Test """ self.new_news = News(1234,'bbc','www.you.com','business') ...
25.375
65
0.630542
54
406
4.685185
0.648148
0.071146
0.086957
0.118577
0
0
0
0
0
0
0
0.013289
0.258621
406
15
66
27.066667
0.827243
0.236453
0
0
0
0
0.081181
0
0
0
0
0
0.142857
1
0.285714
false
0
0.285714
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
9401e5967de0c4feb25f57d65b0bb881a0b235ab
12,940
py
Python
tacker/sol_refactored/controller/vnflcm_view.py
h1r0mu/tacker
8c69dda51fcfe215c4878a86b82018d2b96e5561
[ "Apache-2.0" ]
116
2015-10-18T02:57:08.000Z
2022-03-15T04:09:18.000Z
tacker/sol_refactored/controller/vnflcm_view.py
h1r0mu/tacker
8c69dda51fcfe215c4878a86b82018d2b96e5561
[ "Apache-2.0" ]
6
2016-11-07T22:15:54.000Z
2021-05-09T06:13:08.000Z
tacker/sol_refactored/controller/vnflcm_view.py
h1r0mu/tacker
8c69dda51fcfe215c4878a86b82018d2b96e5561
[ "Apache-2.0" ]
166
2015-10-20T15:31:52.000Z
2021-11-12T08:39:49.000Z
# Copyright (C) 2021 Nippon Telegraph and Telephone Corporation # 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/LICE...
35.258856
79
0.55
1,522
12,940
4.551905
0.193167
0.030312
0.016888
0.018476
0.356813
0.318274
0.269342
0.239752
0.205398
0.149394
0
0.009431
0.352628
12,940
366
80
35.355191
0.817596
0.1051
0
0.29927
0
0
0.066025
0.004072
0
0
0
0.002732
0
1
0.127737
false
0.018248
0.032847
0.058394
0.346715
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
0
0
1
0
940225d04a3a801bd3feb67c187f2cbc8efcab81
2,059
py
Python
project-metrics/metrics_service/apis/codecov.py
rsimha/amp-github-apps
140652c6538e9fc3c3870b12f777c3cba14bf098
[ "Apache-2.0" ]
36
2019-02-07T03:43:54.000Z
2022-03-04T12:55:02.000Z
project-metrics/metrics_service/apis/codecov.py
rsimha/amp-github-apps
140652c6538e9fc3c3870b12f777c3cba14bf098
[ "Apache-2.0" ]
450
2018-11-21T22:36:39.000Z
2022-01-26T18:40:49.000Z
project-metrics/metrics_service/apis/codecov.py
rsimha/amp-github-apps
140652c6538e9fc3c3870b12f777c3cba14bf098
[ "Apache-2.0" ]
42
2018-11-21T22:31:11.000Z
2022-03-08T06:46:20.000Z
"""Module for fetching code coverage info from Codecov.""" from agithub import base as agithub_base from flask_api import status import logging from typing import Any, Dict, Optional, Text import env class CodecovApiError(Exception): """Errors encountered while querying the Codecov API.""" def __init__(self, s...
30.731343
79
0.684798
261
2,059
5.229885
0.452107
0.043956
0.028571
0
0
0
0
0
0
0
0
0.006687
0.201068
2,059
66
80
31.19697
0.8231
0.272948
0
0
0
0
0.135915
0.033099
0
0
0
0
0
1
0.117647
false
0
0.147059
0
0.382353
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
0
0
1
0
940234fb7a7c68381fd595779e6eeb95949ac3b9
2,564
py
Python
src/calibrate.py
modi712/Computer-Vision
a34d3d73f883beae812c50b879f4dc8ef679b3ac
[ "MIT" ]
null
null
null
src/calibrate.py
modi712/Computer-Vision
a34d3d73f883beae812c50b879f4dc8ef679b3ac
[ "MIT" ]
null
null
null
src/calibrate.py
modi712/Computer-Vision
a34d3d73f883beae812c50b879f4dc8ef679b3ac
[ "MIT" ]
null
null
null
# Calibrates camera using chessboard video import numpy as np import cv2 import glob # termination criteria criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 30, 0.001) # prepare object points, like (0,0,0), (1,0,0), (2,0,0) ....,(6,5,0) objp = np.zeros((6*7,3), np.float32) objp[:,:2] = np.mgr...
29.136364
101
0.570203
330
2,564
4.412121
0.487879
0.010989
0.010302
0
0
0
0
0
0
0
0
0.152725
0.277301
2,564
87
102
29.471264
0.633028
0.232449
0
0.054054
0
0
0.065495
0.017572
0
0
0
0
0
1
0
false
0
0.081081
0
0.081081
0.108108
0
0
0
null
0
0
0
0
0
0
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
1
0
9404e9100f31206f2975c729bb0ee10df6676295
1,788
py
Python
src/currencycloud/clients/vans.py
icebotariccl/currencycloud-python
03bb0df2743e6669790dee6f2367f9e0500a4610
[ "MIT" ]
null
null
null
src/currencycloud/clients/vans.py
icebotariccl/currencycloud-python
03bb0df2743e6669790dee6f2367f9e0500a4610
[ "MIT" ]
null
null
null
src/currencycloud/clients/vans.py
icebotariccl/currencycloud-python
03bb0df2743e6669790dee6f2367f9e0500a4610
[ "MIT" ]
null
null
null
'''This module provides a class for VANs calls to the CC API''' from currencycloud.http import Http from currencycloud.resources import PaginatedCollection, Van import deprecation class Vans(Http): '''This class provides an interface to the VANs endpoints of the CC API''' def find(self, **kwargs): '...
47.052632
92
0.65604
217
1,788
5.327189
0.345622
0.077855
0.038927
0.044118
0.608131
0.608131
0.545848
0.471453
0.471453
0.471453
0
0.007988
0.229866
1,788
37
93
48.324324
0.831518
0.162192
0
0.48
0
0
0.17663
0.047554
0
0
0
0
0
1
0.16
false
0
0.12
0
0.48
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
94076e38767f1fdb24941a14891524bbde794118
5,703
bzl
Python
tests/util/defs.bzl
guw/rules_pkg
0541b09ca8b68c40e8868fd3c4a748e1bb5eafa3
[ "Apache-2.0" ]
62
2021-09-21T18:58:02.000Z
2022-03-07T02:17:43.000Z
third_party/rules_pkg-0.7.0/tests/util/defs.bzl
Vertexwahn/FlatlandRT
37d09fde38b25eff5f802200b43628efbd1e3198
[ "Apache-2.0" ]
null
null
null
third_party/rules_pkg-0.7.0/tests/util/defs.bzl
Vertexwahn/FlatlandRT
37d09fde38b25eff5f802200b43628efbd1e3198
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Bazel 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 la...
32.403409
95
0.639663
714
5,703
4.956583
0.344538
0.01978
0.028257
0.018084
0.103419
0.046906
0.046906
0.027691
0.027691
0.027691
0
0.002315
0.242504
5,703
175
96
32.588571
0.816898
0.137647
0
0.178295
0
0.007752
0.337872
0.029954
0
0
0
0
0.015504
1
0.046512
false
0.023256
0
0
0.077519
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
0
0
1
0
940780137a7561bcd2fdc5e84bbb4666938c7d61
4,799
py
Python
systems/cluster_utils.py
cltl/LongTailIdentity
525f6eb10ce6c8eba1d6f462a900fd0ebd0f97a7
[ "Apache-2.0" ]
1
2019-02-07T06:30:35.000Z
2019-02-07T06:30:35.000Z
systems/cluster_utils.py
cltl/LongTailIdentity
525f6eb10ce6c8eba1d6f462a900fd0ebd0f97a7
[ "Apache-2.0" ]
null
null
null
systems/cluster_utils.py
cltl/LongTailIdentity
525f6eb10ce6c8eba1d6f462a900fd0ebd0f97a7
[ "Apache-2.0" ]
null
null
null
import json from collections import defaultdict import random def transform_to_json(data): a_json = {} cluster_id=1 for pid, separate_ids in data.items(): for spid in separate_ids: a_json[spid]=cluster_id cluster_id+=1 return a_json def create_keys_per_name(data): """ ...
36.633588
171
0.635757
629
4,799
4.648649
0.227345
0.071819
0.030096
0.04104
0.163817
0.100205
0.100205
0.056772
0.056772
0.056772
0
0.006733
0.288185
4,799
130
172
36.915385
0.849239
0.267972
0
0.125
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.034091
0
0.227273
0.022727
0
0
0
null
0
0
0
0
0
0
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
1
0
9407ea96d7707d8b52c8d7cf4a197411ba311970
2,151
py
Python
hypotonic/__init__.py
mscavnicky/hypotonic
499ea821988c34ae5492979f4f8056c4a45b3b1f
[ "MIT" ]
8
2019-01-01T13:50:00.000Z
2020-09-06T16:15:51.000Z
hypotonic/__init__.py
mscavnicky/hypotonic
499ea821988c34ae5492979f4f8056c4a45b3b1f
[ "MIT" ]
1
2019-02-24T12:13:46.000Z
2019-02-24T19:50:49.000Z
hypotonic/__init__.py
mscavnicky/hypotonic
499ea821988c34ae5492979f4f8056c4a45b3b1f
[ "MIT" ]
null
null
null
import logging import importlib import asyncio import aiohttp logger = logging.getLogger('hypotonic') class Hypotonic: def __init__(self, url=None): self.commands = [] self.results = [] self.errors = [] if url: self.commands.append(('get', (url,), {})) async def worker(self, i, session, ...
26.8875
81
0.62901
263
2,151
5.060837
0.338403
0.060105
0.063862
0.047333
0.040571
0
0
0
0
0
0
0.000611
0.239424
2,151
79
82
27.227848
0.812958
0.040446
0
0.101695
0
0
0.033042
0
0
0
0
0
0
1
0.067797
false
0
0.084746
0
0.237288
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
0
0
1
0
940830c796f500a7ec43a9e9a73df7a17bb2c403
714
py
Python
03. Programacion orientada a objetos/04. clases y objetos/e1.py
Cidryl/python-desde-cero
fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276
[ "MIT" ]
null
null
null
03. Programacion orientada a objetos/04. clases y objetos/e1.py
Cidryl/python-desde-cero
fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276
[ "MIT" ]
null
null
null
03. Programacion orientada a objetos/04. clases y objetos/e1.py
Cidryl/python-desde-cero
fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276
[ "MIT" ]
null
null
null
class Alumno: def declarar(self,nombre,dato): self.nombre=nombre self.puntuacion=dato def visualizar(self): print("Nombre:",self.nombre) print("Puntuacion:",self.puntuacion) def estadistica(self): if self.puntuacion<=4: print("insuficiente")...
22.3125
45
0.592437
70
714
6.042857
0.414286
0.165485
0.085106
0
0
0
0
0
0
0
0
0.02729
0.281513
714
32
46
22.3125
0.797271
0.022409
0
0
0
0
0.094595
0
0
0
0
0
0
1
0.125
false
0
0
0
0.166667
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9408773ad197cea530dbf06232c18e80bd339f4d
5,487
py
Python
sagas/corpus/searcher.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
3
2020-01-11T13:55:38.000Z
2020-08-25T22:34:15.000Z
sagas/corpus/searcher.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
null
null
null
sagas/corpus/searcher.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
1
2021-01-01T05:21:44.000Z
2021-01-01T05:21:44.000Z
from bert_serving.client import BertClient import pandas as pd import numpy as np import json import sagas.tracker_fn as tc from sagas.conf.conf import cf def search_in(text, lang): with open(f'{cf.conf_dir}/stack/crawlers/langcrs/all_{lang}.json') as json_file: sents=json.load(json_file) return [s...
34.949045
95
0.612539
694
5,487
4.684438
0.29683
0.01661
0.014765
0.024608
0.144263
0.114734
0.099354
0.099354
0.099354
0.065518
0
0.004501
0.271186
5,487
156
96
35.173077
0.808202
0.131766
0
0.064815
0
0
0.074283
0.018679
0
0
0
0
0
1
0.111111
false
0
0.12963
0
0.314815
0.009259
0
0
0
null
0
0
0
0
0
0
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
1
0
9408ba6fbe5aa752679b16a7faeb0c1c96aadb6e
882
py
Python
Mobility Algorithms/Test/link_identifier_test.py
James-OHara/NCHRP-BSM-Traffic-Measures
d6842c9dc63de8c2d470482fbfd1ec91a9c2ae56
[ "Apache-2.0" ]
null
null
null
Mobility Algorithms/Test/link_identifier_test.py
James-OHara/NCHRP-BSM-Traffic-Measures
d6842c9dc63de8c2d470482fbfd1ec91a9c2ae56
[ "Apache-2.0" ]
null
null
null
Mobility Algorithms/Test/link_identifier_test.py
James-OHara/NCHRP-BSM-Traffic-Measures
d6842c9dc63de8c2d470482fbfd1ec91a9c2ae56
[ "Apache-2.0" ]
null
null
null
import unittest import numpy as np from bsm_stream_vector import LinkIdentifier """Test LinkIndentifier class in bsm_stream_vector to ensure the BSMs are being assigned to the correct Measures Estimation link """ class LinkIdentifierTest(unittest.TestCase): #This test only works if findLink in LinkIndentifier retur...
30.413793
129
0.727891
127
882
4.88189
0.511811
0.03871
0.048387
0.064516
0.135484
0.135484
0.135484
0
0
0
0
0.013699
0.172336
882
29
130
30.413793
0.835616
0.190476
0
0
0
0
0.061017
0
0
0
0
0
0.052632
1
0.105263
false
0
0.157895
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
940bf9f6bcf066af4e32b8cbf37d9f28635da2d5
8,350
py
Python
TSP/model_free.py
machine-reasoning-ufrgs/graph-nn
7489b7b3d6a4750245e3f506982d98b56a74b6bb
[ "MIT" ]
1
2019-11-04T15:56:00.000Z
2019-11-04T15:56:00.000Z
TSP/model_free.py
machine-reasoning-ufrgs/graph-nn
7489b7b3d6a4750245e3f506982d98b56a74b6bb
[ "MIT" ]
null
null
null
TSP/model_free.py
machine-reasoning-ufrgs/graph-nn
7489b7b3d6a4750245e3f506982d98b56a74b6bb
[ "MIT" ]
2
2019-09-21T12:10:56.000Z
2021-04-17T13:55:32.000Z
import sys, os import tensorflow as tf sys.path.insert(1, os.path.join(sys.path[0], '..')) from graphnn_free import GraphNN from mlp import Mlp def build_network(d): # Define hyperparameters d = d learning_rate = 2e-5 l2norm_scaling = 1e-10 global_norm_gradient_clipping_ratio = 0.65 # Defin...
39.57346
183
0.600719
1,128
8,350
4.219858
0.198582
0.030252
0.027311
0.027731
0.389286
0.329622
0.295378
0.236765
0.214076
0.214076
0
0.012616
0.278563
8,350
210
184
39.761905
0.776726
0.186108
0
0.10596
0
0
0.066894
0
0
0
0
0
0
1
0.006623
false
0
0.02649
0
0.039735
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
0
0
1
0
940c0b72ebd459534046c762a3ab4ce951637c18
1,593
py
Python
ixnetwork_restpy/pytest_tests/tests/test_async_operation.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
20
2019-05-07T01:59:14.000Z
2022-02-11T05:24:47.000Z
ixnetwork_restpy/pytest_tests/tests/test_async_operation.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
60
2019-04-03T18:59:35.000Z
2022-02-22T12:05:05.000Z
ixnetwork_restpy/pytest_tests/tests/test_async_operation.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
13
2019-05-20T10:48:31.000Z
2021-10-06T07:45:44.000Z
"""Tests to verify the async=True functionality of operations """ import pytest from ixnetwork_restpy import TestPlatform, BadRequestError def test_async_operation(ixnetwork): # uncomment the following to see the full request and response # from ixnetwork_restpy import TestPlatform # ixnetwork.parent.pare...
37.928571
78
0.750157
196
1,593
5.933673
0.382653
0.067068
0.072227
0.089424
0.513328
0.421324
0.421324
0.421324
0.421324
0.326741
0
0.00757
0.170747
1,593
41
79
38.853659
0.872824
0.295041
0
0.086957
0
0
0.233544
0.020739
0
0
0
0
0.130435
1
0.086957
false
0
0.086957
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
940ddb5e6655f6d1f74858cf98a8d51ff4dc825b
1,452
py
Python
kodistubs/_publish_docs.py
ogero/Deluge-Manager-XBMC
10c4f2a93ac1fffba01209444ba5e597036b968b
[ "MIT" ]
null
null
null
kodistubs/_publish_docs.py
ogero/Deluge-Manager-XBMC
10c4f2a93ac1fffba01209444ba5e597036b968b
[ "MIT" ]
null
null
null
kodistubs/_publish_docs.py
ogero/Deluge-Manager-XBMC
10c4f2a93ac1fffba01209444ba5e597036b968b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # Created on: 24.02.2016 # Author: Roman Miroshnychenko aka Roman V.M. (romanvm@yandex.ua) from __future__ import print_function import os from subprocess import call gh_token = os.environ['GH_TOKEN'] repo_slug= os.environ['TRAVIS_REPO_SLUG'] gh_repo_url = 'https://{gh_token}@git...
33.767442
89
0.631543
199
1,452
4.442211
0.467337
0.047511
0.030543
0.033937
0
0
0
0
0
0
0
0.007563
0.180441
1,452
42
90
34.571429
0.735294
0.083333
0
0
0
0
0.249435
0
0
0
0
0
0
1
0.03125
false
0
0.09375
0
0.125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
940ea273ac1efd7b81d8def3cd0c08c7f2a030f1
12,861
py
Python
self_play_train.py
DrVecctor/GameOfGo
ab8b0313372fe380b44dd7021c00895c971b3e54
[ "MIT" ]
null
null
null
self_play_train.py
DrVecctor/GameOfGo
ab8b0313372fe380b44dd7021c00895c971b3e54
[ "MIT" ]
null
null
null
self_play_train.py
DrVecctor/GameOfGo
ab8b0313372fe380b44dd7021c00895c971b3e54
[ "MIT" ]
1
2020-09-11T16:49:01.000Z
2020-09-11T16:49:01.000Z
import warnings warnings.filterwarnings('ignore') import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import tensorflow.python.util.deprecation as deprecation deprecation._PRINT_DEPRECATION_WARNINGS = False import json import argparse import multiprocessing import random import shutil import time import tempfile from...
32.892583
154
0.643807
1,718
12,861
4.553551
0.16007
0.036815
0.02825
0.010738
0.288892
0.23188
0.205803
0.167455
0.149048
0.149048
0
0.016622
0.24687
12,861
390
155
32.976923
0.791039
0.015007
0
0.187311
0
0
0.069894
0.002211
0
0
0
0
0
1
0.02719
false
0.003021
0.060423
0
0.102719
0.048338
0
0
0
null
0
0
0
0
0
0
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
1
0
940f0434744074dbc6c913f66fdd1933bcaa8210
16,611
py
Python
src/run_eval.py
Zayat/blockchain-models-simulator
abfb643b1e11424e7874016399b05bdc359eecd4
[ "MIT" ]
3
2021-06-10T08:32:05.000Z
2021-06-11T08:06:27.000Z
src/run_eval.py
Zayat/blockchain-models-simulator
abfb643b1e11424e7874016399b05bdc359eecd4
[ "MIT" ]
null
null
null
src/run_eval.py
Zayat/blockchain-models-simulator
abfb643b1e11424e7874016399b05bdc359eecd4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # File : run_eval.py # Author : Mohamed Alzayat <alzayat@mpi-sws.org> # Date : 21.10.2020 # Last Modified Date: 21.10.2020 # Last Modified By : Mohamed Alzayat <alzayat@mpi-sws.org> import argparse from bcns import sim from evaluation...
52.566456
155
0.722232
2,118
16,611
5.39424
0.105288
0.052079
0.083326
0.069934
0.748271
0.725514
0.687265
0.66512
0.643764
0.627309
0
0.010099
0.183312
16,611
315
156
52.733333
0.83208
0.02697
0
0.379845
0
0.011628
0.12661
0.019998
0
0
0
0
0
1
0.089147
false
0
0.031008
0
0.124031
0.003876
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
940f45a74fbe5732957c0a584ead0ec8af62f5f8
1,618
py
Python
mooc_ex/xbaoItemPrice.py
ds17/reptiles
99418624ae4b7548bf4dc1ea834e8c75a47a0557
[ "Apache-2.0" ]
null
null
null
mooc_ex/xbaoItemPrice.py
ds17/reptiles
99418624ae4b7548bf4dc1ea834e8c75a47a0557
[ "Apache-2.0" ]
null
null
null
mooc_ex/xbaoItemPrice.py
ds17/reptiles
99418624ae4b7548bf4dc1ea834e8c75a47a0557
[ "Apache-2.0" ]
1
2021-02-20T13:17:42.000Z
2021-02-20T13:17:42.000Z
#D:\Python\Python35\python.exe # -*- coding:utf-8 -*- '淘宝商品价格定向爬虫' import requests,csv,re,os,time i=1 #全局计数变量 def getHTMLtext(url): try: r=requests.get(url) r.encoding=r.apparent_encoding return r.text except: print('获取页面异常') def parsePage(ilt,html): # info=re.findall(r'...
26.52459
128
0.549444
222
1,618
3.900901
0.432432
0.04157
0.034642
0.030023
0.157044
0.157044
0.157044
0.157044
0.157044
0.157044
0
0.011933
0.223115
1,618
60
129
26.966667
0.677009
0.277503
0
0
0
0
0.157082
0.079828
0
0
0
0
0
1
0.108108
false
0
0.027027
0
0.162162
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9411e487e97666c6453fbbd22292c525e1819e7a
2,359
py
Python
appCore/apps/replica/cms/views/template.py
jadedgamer/alifewellplayed.com
b7b3dee8d3b9526c7cfe77078570a29394ef7e76
[ "MIT" ]
4
2017-04-22T11:03:01.000Z
2018-01-16T22:28:15.000Z
appCore/apps/replica/cms/views/template.py
alifewellplayed/alifewellplayed.com
b7b3dee8d3b9526c7cfe77078570a29394ef7e76
[ "MIT" ]
10
2017-04-06T19:54:42.000Z
2017-11-07T06:53:10.000Z
appCore/apps/replica/cms/views/template.py
alifewellplayed/alifewellplayed.com
b7b3dee8d3b9526c7cfe77078570a29394ef7e76
[ "MIT" ]
1
2017-12-14T12:49:40.000Z
2017-12-14T12:49:40.000Z
from django.conf import settings from django.template import RequestContext from django.shortcuts import render_to_response, render, get_object_or_404, redirect from django.views.decorators.cache import cache_page from django.views.generic.list import ListView from django.contrib import messages from replica import se...
36.859375
86
0.694786
272
2,359
5.919118
0.349265
0.037267
0.020497
0.026087
0.088199
0.043478
0.043478
0
0
0
0
0.004787
0.203052
2,359
63
87
37.444444
0.851596
0.010598
0
0.137931
0
0
0.135877
0.063438
0
0
0
0
0
1
0.068966
false
0
0.155172
0.017241
0.37931
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
0
0
1
0
9411f20ddc93846bc9ba0efb924f787c448b3493
1,844
py
Python
cogs.py
Paarf/BoxBot
da323ddf30e368bed077ef75f843eb6e43902bd3
[ "MIT" ]
null
null
null
cogs.py
Paarf/BoxBot
da323ddf30e368bed077ef75f843eb6e43902bd3
[ "MIT" ]
null
null
null
cogs.py
Paarf/BoxBot
da323ddf30e368bed077ef75f843eb6e43902bd3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import discord from discord.ext import commands class Commands: def __init__(self, bot): self.bot = bot # you can use events here too async def on_message(self, msg): print(msg.content) # or commands like this @commands.command() async d...
34.148148
122
0.646421
241
1,844
4.858921
0.373444
0.040991
0.085397
0.098207
0.242528
0.226302
0.081981
0
0
0
0
0.052338
0.222885
1,844
53
123
34.792453
0.764829
0.038503
0
0.138889
0
0
0.205711
0.072844
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.138889
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
0
0
0
0
0
1
0
94138d3730f1e927ee57027157b082e4aa899444
85
py
Python
djadmin/ngapp/apps.py
gnud/django-angular-lte-admin
b4bed527aa25184e17deb31eb5987b209dfd9253
[ "MIT" ]
3
2019-03-07T06:11:05.000Z
2019-05-24T13:53:17.000Z
djadmin/ngapp/apps.py
gnud/damjan-dimitrioski.com
6c9cb215ec0878eeb1ed5e1359bb1bd07f774476
[ "MIT" ]
3
2017-03-14T19:02:17.000Z
2017-03-17T16:24:33.000Z
djadmin/ngapp/apps.py
gnud/damjan-dimitrioski.com
6c9cb215ec0878eeb1ed5e1359bb1bd07f774476
[ "MIT" ]
3
2019-01-21T22:39:04.000Z
2019-11-21T22:18:07.000Z
from django.apps import AppConfig class NgappConfig(AppConfig): name = 'ngapp'
14.166667
33
0.741176
10
85
6.3
0.9
0
0
0
0
0
0
0
0
0
0
0
0.176471
85
5
34
17
0.9
0
0
0
0
0
0.058824
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3