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
3cc5365d7936e3afb909c7c83c12e2e2b27be38f
4,977
py
Python
frappe/database/mariadb/setup_db.py
AKedar21/frappe
4c9ce1701caea07e595f81414af3a9f219cccb65
[ "MIT" ]
2
2017-08-24T20:25:13.000Z
2017-10-15T13:14:31.000Z
frappe/database/mariadb/setup_db.py
AKedar21/frappe
4c9ce1701caea07e595f81414af3a9f219cccb65
[ "MIT" ]
19
2018-04-17T09:09:02.000Z
2020-11-17T08:06:25.000Z
frappe/database/mariadb/setup_db.py
AKedar21/frappe
4c9ce1701caea07e595f81414af3a9f219cccb65
[ "MIT" ]
3
2019-08-09T17:52:18.000Z
2020-07-29T08:23:46.000Z
from __future__ import unicode_literals import frappe import os, sys from frappe.database.db_manager import DbManager def setup_database(force, source_sql, verbose): frappe.local.session = frappe._dict({'user':'Administrator'}) db_name = frappe.local.conf.db_name root_conn = get_root_connection(frappe.flags.root_...
33.402685
104
0.765521
730
4,977
4.942466
0.224658
0.054878
0.027439
0.028825
0.449279
0.343681
0.28714
0.244457
0.197339
0.159645
0
0.009365
0.120354
4,977
148
105
33.628378
0.814756
0.011051
0
0.285714
0
0
0.254168
0.04392
0
0
0
0
0
1
0.07563
false
0.117647
0.07563
0
0.159664
0.109244
0
0
0
null
0
0
0
0
0
0
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
3cd0f0a9f2a686158238887c3fe90a8840ddebc7
1,344
py
Python
src/SgFactory/canvas.py
WDonegan/psg-factories
5a6e362d9159a0d5c82960d9e2e7d446f1ab013d
[ "MIT" ]
null
null
null
src/SgFactory/canvas.py
WDonegan/psg-factories
5a6e362d9159a0d5c82960d9e2e7d446f1ab013d
[ "MIT" ]
null
null
null
src/SgFactory/canvas.py
WDonegan/psg-factories
5a6e362d9159a0d5c82960d9e2e7d446f1ab013d
[ "MIT" ]
null
null
null
import PySimpleGUI as sg from .base import GeneratorBase class Canvas(GeneratorBase): CANVAS = 'canvas' BACKGROUND_COLOR = 'background_color' SIZE = 'size' PAD = 'pad' KEY = 'key' TOOLTIP = 'tooltip' RIGHT_CLICK_MENU = 'right_click_menu' EXPAND_X = 'expand_x' EXPAND_Y = 'expand_y' ...
34.461538
60
0.517113
135
1,344
4.881481
0.296296
0.163885
0.216995
0.057663
0
0
0
0
0
0
0
0
0.375
1,344
38
61
35.368421
0.784524
0
0
0
0
0
0.072917
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.529412
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3cdccb40b666db32519d44d5b2e904bfa9cc6234
3,256
py
Python
cli/cli/handlers/repo.py
benetech/Winnow2.0
bc428d7f74bd7db71b6d70ab15dc7a5c37786c46
[ "MIT" ]
26
2019-12-16T21:22:14.000Z
2022-03-25T16:05:32.000Z
cli/cli/handlers/repo.py
benetech/Winnow2.0
bc428d7f74bd7db71b6d70ab15dc7a5c37786c46
[ "MIT" ]
325
2019-10-28T16:24:45.000Z
2022-03-31T13:12:15.000Z
cli/cli/handlers/repo.py
benetech/Winnow2.0
bc428d7f74bd7db71b6d70ab15dc7a5c37786c46
[ "MIT" ]
9
2019-10-09T16:20:38.000Z
2021-12-22T18:44:45.000Z
import sys from dataclasses import asdict from cli.handlers.errors import handle_errors from cli.platform.arguments import ask_password from cli.platform.error import CliError from cli.platform.formatters import Format, resolve_formatter from cli.platform.transform import Transform from cli.platform.validate import v...
40.197531
115
0.691646
369
3,256
5.918699
0.273713
0.077381
0.034341
0.045788
0.15293
0.128205
0.110806
0.088828
0
0
0
0.001958
0.215602
3,256
80
116
40.7
0.853172
0.058047
0
0.129032
0
0
0.048011
0
0
0
0
0
0
1
0.096774
false
0.16129
0.193548
0
0.322581
0
0
0
0
null
0
0
0
0
0
0
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
3cde6cc5f63c2aaa35385e84181a5c72d1abf6d5
1,245
py
Python
scrapyext/spiders/logout.py
zanachka/scrapyext
2dd5e0fc03f8e4b8793b808744d4dd6452e5d5b3
[ "BSD-3-Clause" ]
12
2016-01-14T16:15:56.000Z
2021-08-12T09:31:27.000Z
scrapyext/spiders/logout.py
zanachka/scrapyext
2dd5e0fc03f8e4b8793b808744d4dd6452e5d5b3
[ "BSD-3-Clause" ]
null
null
null
scrapyext/spiders/logout.py
zanachka/scrapyext
2dd5e0fc03f8e4b8793b808744d4dd6452e5d5b3
[ "BSD-3-Clause" ]
3
2017-06-09T21:57:23.000Z
2022-03-13T08:16:11.000Z
from scrapy import signals from scrapy.exceptions import DontCloseSpider from scrapy import log from scrapy.http import Request from .spider import Spider class LogoutSpider(Spider): """Spider which can clean up before terminating.""" logout_url = '' def __init__(self, crawler): self.crawler = crawler @clas...
27.065217
80
0.744578
172
1,245
5.27907
0.383721
0.066079
0.035242
0
0
0
0
0
0
0
0
0
0.149398
1,245
45
81
27.666667
0.857413
0.141365
0
0
0
0
0.061321
0
0
0
0
0
0
1
0.16129
false
0
0.16129
0.032258
0.548387
0
0
0
0
null
0
0
0
0
0
0
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
3ce3178bc297849e347e9bf2f2fece4975dc34a3
355
py
Python
iterator.py
mariamaafreen/python-exploring-battle-1
3431d2df4c9a2118c1370e6a1b9a3dedecf41dd1
[ "MIT" ]
null
null
null
iterator.py
mariamaafreen/python-exploring-battle-1
3431d2df4c9a2118c1370e6a1b9a3dedecf41dd1
[ "MIT" ]
null
null
null
iterator.py
mariamaafreen/python-exploring-battle-1
3431d2df4c9a2118c1370e6a1b9a3dedecf41dd1
[ "MIT" ]
null
null
null
tup = ("apple", "banana", "cherry") it = iter(tup) print(next(it)) print(next(it)) print(next(it)) #using class class numbers: def __iter__(self): self.a = 1 return self def __next__(self): x = self.a self.a += 1 return x myclass = numbers() myiter = iter(myclass) print(next(myiter)) print...
13.653846
35
0.633803
53
355
4.09434
0.358491
0.248848
0.152074
0.147465
0.359447
0.359447
0
0
0
0
0
0.007042
0.2
355
25
36
14.2
0.757042
0.030986
0
0.333333
0
0
0.049563
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.277778
0.333333
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3ce5269021b698ff905f6dd03cea4685184228bb
2,329
py
Python
mogan/tests/unit/api/v1/test_flavor.py
GURUIFENG9139/rocky-mogan
6008c1d12b00e70d2cc651f7bd5d47968fc3aec7
[ "Apache-2.0" ]
null
null
null
mogan/tests/unit/api/v1/test_flavor.py
GURUIFENG9139/rocky-mogan
6008c1d12b00e70d2cc651f7bd5d47968fc3aec7
[ "Apache-2.0" ]
null
null
null
mogan/tests/unit/api/v1/test_flavor.py
GURUIFENG9139/rocky-mogan
6008c1d12b00e70d2cc651f7bd5d47968fc3aec7
[ "Apache-2.0" ]
null
null
null
# # Copyright 2017 Intel # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
40.155172
76
0.672821
309
2,329
4.944984
0.420712
0.068063
0.094241
0.031414
0.373037
0.373037
0.342932
0.276832
0.225131
0.225131
0
0.024296
0.222413
2,329
57
77
40.859649
0.819437
0.269214
0
0.5
0
0
0.115727
0.021365
0
0
0
0
0.411765
1
0.117647
false
0
0.088235
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
3ce96d1385d02efbbff4a7d657b7a2684a95fe53
479
py
Python
tests/test_mixtures.py
zalanborsos/coresets
47896a68c79666496cf1ef1d2683bd76875fe013
[ "BSD-3-Clause" ]
28
2019-10-11T07:30:57.000Z
2022-03-24T06:03:20.000Z
tests/test_mixtures.py
zalanborsos/coresets
47896a68c79666496cf1ef1d2683bd76875fe013
[ "BSD-3-Clause" ]
2
2020-08-18T17:45:38.000Z
2021-10-15T13:20:29.000Z
tests/test_mixtures.py
zalanborsos/coresets
47896a68c79666496cf1ef1d2683bd76875fe013
[ "BSD-3-Clause" ]
8
2019-11-21T10:13:31.000Z
2021-12-08T04:41:29.000Z
from __future__ import division, absolute_import from sklearn import datasets import pytest from algorithms import WeightedGaussianMixture, WeightedBayesianGaussianMixture class TestMixtures(object): def test_mixtures(self): iris = datasets.load_iris() wgm = WeightedGaussianMixture() w...
22.809524
79
0.720251
48
479
7.041667
0.520833
0.094675
0.065089
0
0
0
0
0
0
0
0
0
0.208768
479
20
80
23.95
0.891821
0
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
3ce9d76cf1f60db228766ed1f3768a6c648b2308
1,791
py
Python
froide/foirequest/views/project.py
AleksiKnuutila/tietopyynto
4c7438499002e521114daf07f561fd140a21dfbb
[ "MIT" ]
null
null
null
froide/foirequest/views/project.py
AleksiKnuutila/tietopyynto
4c7438499002e521114daf07f561fd140a21dfbb
[ "MIT" ]
2
2020-06-05T16:43:43.000Z
2022-02-10T15:47:12.000Z
froide/foirequest/views/project.py
AleksiKnuutila/tietopyynto
4c7438499002e521114daf07f561fd140a21dfbb
[ "MIT" ]
null
null
null
from django.views.generic import DetailView from django.views.generic.edit import UpdateView from django.shortcuts import get_object_or_404, redirect from django.http import Http404 from ..models import FoiProject from ..auth import can_read_foiproject, can_manage_foiproject from ..forms import ProjectTeamForm def p...
31.421053
75
0.702959
209
1,791
5.851675
0.263158
0.051513
0.041701
0.061325
0.25511
0.192968
0.192968
0.192968
0
0
0
0.012784
0.213847
1,791
56
76
31.982143
0.855824
0
0
0.209302
0
0
0.018984
0.011725
0
0
0
0
0
1
0.139535
false
0
0.162791
0.023256
0.604651
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3cef91da404a62bdbd7c5c80a86fc14faf9cce51
809
py
Python
benchmarks/basic.py
QuLogic/mpl-bench
b3611cfbb6cac3a00367ddccdb0625494e67c727
[ "BSD-3-Clause" ]
null
null
null
benchmarks/basic.py
QuLogic/mpl-bench
b3611cfbb6cac3a00367ddccdb0625494e67c727
[ "BSD-3-Clause" ]
3
2020-10-20T20:21:20.000Z
2020-10-29T21:43:34.000Z
benchmarks/basic.py
QuLogic/mpl-bench
b3611cfbb6cac3a00367ddccdb0625494e67c727
[ "BSD-3-Clause" ]
3
2019-10-04T21:21:39.000Z
2022-01-14T11:08:02.000Z
from __future__ import (absolute_import, division, print_function, unicode_literals) import matplotlib.pyplot as plt def teardown(*args, **kwargs): plt.close('all') def time_subplots(n): fig, ax = plt.subplots(n, n) fig.canvas.draw() time_subplots.params = (1, 2, 10) time_subplo...
23.114286
69
0.631644
106
809
4.641509
0.443396
0.056911
0.065041
0.130081
0
0
0
0
0
0
0
0.015699
0.212608
809
34
70
23.794118
0.756672
0
0
0.217391
0
0
0.084054
0
0
0
0
0
0
1
0.217391
false
0
0.086957
0
0.304348
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
3cf3bf4e6310a9aa3b6c446664cb38a8fa81962a
1,716
py
Python
CS-Notes/algorithm/greedy/Queue-Reconstruction-by-Height(Medium).py
huandrew99/LeetCode
aa36b48d06100ce5f0bc64c789a906ec29409440
[ "MIT" ]
36
2021-12-23T15:44:41.000Z
2022-03-31T04:26:26.000Z
CS-Notes/algorithm/greedy/Queue-Reconstruction-by-Height(Medium).py
wzy0766/LeetCode-1
3070e672c519e8af74966811b8058a9baef8c0bc
[ "MIT" ]
null
null
null
CS-Notes/algorithm/greedy/Queue-Reconstruction-by-Height(Medium).py
wzy0766/LeetCode-1
3070e672c519e8af74966811b8058a9baef8c0bc
[ "MIT" ]
11
2022-02-26T22:41:26.000Z
2022-03-02T07:18:41.000Z
""" LC 406 You are given an array of people, people, which are the attributes of some people in a queue (not necessarily in order). Each people[i] = [hi, ki] represents the ith person of height hi with exactly ki other people in front who have a height greater than or equal to hi. Reconstruct and return the queue that...
41.853659
270
0.668998
334
1,716
3.437126
0.296407
0.042683
0.057491
0.078397
0.275261
0.275261
0.275261
0.275261
0.241289
0.241289
0
0.065789
0.202797
1,716
40
271
42.9
0.773392
0.84965
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3cf9a749248bfc527fd1af4bb7ee43392dce5362
1,036
py
Python
torchx/util/entrypoints.py
d4l3k/torchx
67644f1790d4a52faa3a1bcfa141da313a009434
[ "BSD-3-Clause" ]
null
null
null
torchx/util/entrypoints.py
d4l3k/torchx
67644f1790d4a52faa3a1bcfa141da313a009434
[ "BSD-3-Clause" ]
null
null
null
torchx/util/entrypoints.py
d4l3k/torchx
67644f1790d4a52faa3a1bcfa141da313a009434
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. from importlib import metadata from importlib.metadata import EntryPoint from typing import Dict # pyre-ignore-...
24.666667
75
0.67278
152
1,036
4.572368
0.493421
0.043165
0.03741
0.043165
0.057554
0
0
0
0
0
0
0.005161
0.251931
1,036
41
76
25.268293
0.891613
0.496139
0
0.153846
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3cfc4f51bd1c6d3da25c73a468faa9d75a6f0589
4,743
py
Python
src/week3/week3_test.py
hemmerling/python-coursera2012
1828dc26c196dbd7d4a20d207e996bd8ce99c525
[ "Apache-2.0" ]
null
null
null
src/week3/week3_test.py
hemmerling/python-coursera2012
1828dc26c196dbd7d4a20d207e996bd8ce99c525
[ "Apache-2.0" ]
null
null
null
src/week3/week3_test.py
hemmerling/python-coursera2012
1828dc26c196dbd7d4a20d207e996bd8ce99c525
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ # @package coursera2012 # @author Rolf Hemmerling <hemmerling@gmx.net> # @version 1.00 # @date 2015-01-01 # @copyright Apache License, Version 2.0 # # Implementation of the game # "Stopwatch: The Game" # for the Coursera course # "An I...
31.62
114
0.624078
558
4,743
5.290323
0.290323
0.138211
0.061653
0.057588
0.49187
0.469512
0.469512
0.420054
0.420054
0.406504
0
0.015977
0.261016
4,743
149
115
31.832215
0.826248
0.024035
0
0.415385
0
0
0.162894
0
0
0
0
0
0.153846
0
null
null
0
0.061538
null
null
0.015385
0
0
0
null
0
0
0
0
0
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
3cfcbc34987a24d7988b7305566a9e7d13ba7eb9
8,438
py
Python
scripts/evaluate_cfs.py
bkghz-orange-blue/CounterNet
4eacc1921fda3c2ed77d5de91738e48d8d22fc59
[ "Apache-2.0" ]
null
null
null
scripts/evaluate_cfs.py
bkghz-orange-blue/CounterNet
4eacc1921fda3c2ed77d5de91738e48d8d22fc59
[ "Apache-2.0" ]
null
null
null
scripts/evaluate_cfs.py
bkghz-orange-blue/CounterNet
4eacc1921fda3c2ed77d5de91738e48d8d22fc59
[ "Apache-2.0" ]
null
null
null
from counterfactual.import_essentials import * from counterfactual.utils import * from counterfactual.train import * from counterfactual.training_module import * from counterfactual.net import * from counterfactual.evaluate import * from counterfactual.baseline import * if __name__ == "__main__" and not in_jupyter():...
45.610811
125
0.610571
967
8,438
5.077559
0.11789
0.01833
0.043992
0.05499
0.750306
0.740122
0.686354
0.679022
0.645214
0.590224
0
0.024064
0.202181
8,438
185
126
45.610811
0.705288
0.428538
0
0.066667
0
0
0.239247
0.119042
0
0
0
0
0
1
0
false
0
0.093333
0
0.093333
0.026667
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a700996e76c993ca1e6953f52a3d92269ac2a4d6
1,172
py
Python
smaug/ircview/migrations/0002_auto_20171225_2112.py
krokicki/smaug
762b152677a17ea225d119f17ab8aede37b61a25
[ "MIT" ]
null
null
null
smaug/ircview/migrations/0002_auto_20171225_2112.py
krokicki/smaug
762b152677a17ea225d119f17ab8aede37b61a25
[ "MIT" ]
null
null
null
smaug/ircview/migrations/0002_auto_20171225_2112.py
krokicki/smaug
762b152677a17ea225d119f17ab8aede37b61a25
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-25 21:12 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ircview', '0001_initial'), ] operations = [ migrations.AddField( ...
32.555556
137
0.549488
129
1,172
4.868217
0.410853
0.057325
0.127389
0.076433
0.593949
0.593949
0.512739
0.512739
0.512739
0.512739
0
0.02924
0.270478
1,172
35
138
33.485714
0.705263
0.05802
0
0.535714
1
0
0.092643
0
0
0
0
0
0
1
0
false
0.035714
0.071429
0
0.178571
0
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
a701943e477064aa37109e88d9afe4eb698fade2
1,650
py
Python
src/main/python/libexec/sitecustomize.py
emilybache/texttest-runner
2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a
[ "MIT" ]
null
null
null
src/main/python/libexec/sitecustomize.py
emilybache/texttest-runner
2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a
[ "MIT" ]
null
null
null
src/main/python/libexec/sitecustomize.py
emilybache/texttest-runner
2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a
[ "MIT" ]
null
null
null
import sys, os def trySetupCoverage(): # pragma: no cover - can hardly measure coverage here :) try: import coverage coverage.process_startup() # doesn't do anything unless COVERAGE_PROCESS_START is set except Exception: pass def loadTestCustomize(): try: # Generic file ...
35.869565
99
0.695758
200
1,650
5.675
0.45
0.042291
0.068722
0.092511
0.273128
0.273128
0.273128
0.209692
0
0
0
0.000792
0.235152
1,650
45
100
36.666667
0.898574
0.392121
0
0.352941
0
0
0.044489
0
0
0
0
0
0
1
0.117647
false
0.117647
0.205882
0
0.323529
0
0
0
0
null
0
0
0
0
0
0
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
a7067bb1261c5b1e06413e8adcb06e51afb2b382
363
py
Python
models/res_users.py
wdw139130/wechat-mall
b2a39bcf7b3d459e594751ed3525d71fcb27acb8
[ "MIT" ]
108
2018-10-10T02:02:22.000Z
2022-02-03T01:28:30.000Z
models/res_users.py
wdw139130/wechat-mall
b2a39bcf7b3d459e594751ed3525d71fcb27acb8
[ "MIT" ]
null
null
null
models/res_users.py
wdw139130/wechat-mall
b2a39bcf7b3d459e594751ed3525d71fcb27acb8
[ "MIT" ]
46
2018-10-18T03:43:45.000Z
2022-02-02T11:13:28.000Z
# -*- coding: utf-8 -*- from odoo import models, fields, api class ResUsers(models.Model): _inherit = 'res.users' sub_domain = fields.Char('子域名', help='用于小程序接口的子域名。', index=True) @api.model def create(self, vals): from uuid import uuid1 vals['sub_domain'] = uuid1().get_hex() ...
22.6875
68
0.630854
47
363
4.787234
0.702128
0.08
0
0
0
0
0
0
0
0
0
0.010601
0.220386
363
15
69
24.2
0.784452
0.057851
0
0
0
0
0.1
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
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
a708e7d7213a8e253f14c15e592071e108b22df8
2,697
py
Python
app/movies/migrations/0001_initial.py
NicolefAvella/ApiMovie
4860b312f62dee73de6015c3029e75a6045f79a1
[ "MIT" ]
null
null
null
app/movies/migrations/0001_initial.py
NicolefAvella/ApiMovie
4860b312f62dee73de6015c3029e75a6045f79a1
[ "MIT" ]
null
null
null
app/movies/migrations/0001_initial.py
NicolefAvella/ApiMovie
4860b312f62dee73de6015c3029e75a6045f79a1
[ "MIT" ]
null
null
null
# Generated by Django 2.1.11 on 2019-08-12 21:16 import django.core.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateMod...
49.036364
471
0.589173
269
2,697
5.810409
0.420074
0.051823
0.080614
0.107486
0.225208
0.151631
0.151631
0.151631
0.151631
0.151631
0
0.01955
0.241379
2,697
54
472
49.944444
0.744379
0.017056
0
0.340426
1
0
0.164968
0
0
0
0
0
0
1
0
false
0
0.085106
0
0.170213
0
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
a70d8d708e4f620a0beab11b5f94526f432e62b9
410
py
Python
roles/product_startup/molecule/startup_restart_false/tests/test_default.py
kautkur/dc-deployments-automation
90c14c07030b6ca34bf449cbed2725b18ab84392
[ "Apache-2.0" ]
null
null
null
roles/product_startup/molecule/startup_restart_false/tests/test_default.py
kautkur/dc-deployments-automation
90c14c07030b6ca34bf449cbed2725b18ab84392
[ "Apache-2.0" ]
2
2021-06-02T04:09:12.000Z
2021-09-23T23:43:20.000Z
roles/product_startup/molecule/startup_restart_false/tests/test_default.py
kautkur/dc-deployments-automation
90c14c07030b6ca34bf449cbed2725b18ab84392
[ "Apache-2.0" ]
null
null
null
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') def test_atl_startup_restart(host): f = host.file('/tmp/ansible-vars.yml') # value should appear as YAML boolean false (i.e., boolean tr...
31.538462
96
0.753659
60
410
4.966667
0.7
0.09396
0.14094
0.181208
0
0
0
0
0
0
0
0
0.126829
410
12
97
34.166667
0.832402
0.219512
0
0
0
0
0.245283
0.213836
0
0
0
0
0.142857
1
0.142857
false
0
0.285714
0
0.428571
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a70d913f7703d25e6a497bfb8f00a321588d6699
4,544
py
Python
wufoo_scoring/settings.py
infomaven/wufoo_scoring
c316b2ae77c2be724a82725a57aa6f3b2b296e02
[ "Unlicense" ]
null
null
null
wufoo_scoring/settings.py
infomaven/wufoo_scoring
c316b2ae77c2be724a82725a57aa6f3b2b296e02
[ "Unlicense" ]
null
null
null
wufoo_scoring/settings.py
infomaven/wufoo_scoring
c316b2ae77c2be724a82725a57aa6f3b2b296e02
[ "Unlicense" ]
null
null
null
""" Django settings for wufoo_scoring project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ ADMINS = ( ('Nadine Whitfield', 'whitfld64@hotmail.com'), ) MANA...
26.887574
88
0.711048
555
4,544
5.682883
0.443243
0.049461
0.044388
0.048827
0.155992
0.093532
0.093532
0.093532
0.046925
0
0
0.011029
0.161972
4,544
168
89
27.047619
0.817227
0.379181
0
0.065217
0
0
0.43963
0.316667
0
0
0
0.011905
0
1
0
false
0.032609
0.043478
0
0.043478
0
0
0
0
null
0
0
0
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
a710a110de5cff12279b43077aa31cec9db271b4
420
py
Python
tests/test_functions.py
pydemic/mundi-demography
7e09c88317399891314ea792d3ec9e2a728925ce
[ "MIT" ]
1
2020-05-08T10:40:05.000Z
2020-05-08T10:40:05.000Z
tests/test_functions.py
pydemic/mundi-demography
7e09c88317399891314ea792d3ec9e2a728925ce
[ "MIT" ]
null
null
null
tests/test_functions.py
pydemic/mundi-demography
7e09c88317399891314ea792d3ec9e2a728925ce
[ "MIT" ]
null
null
null
from mundi_demography import age_distribution, population, age_pyramid class TestMundiFunctions: def test_scalar_functions(self): assert population("BR") == 211755721 assert population("Brazil") == 211755721 df = age_distribution("BR") assert df.shape == (21,) assert df.na...
28
70
0.65
47
420
5.638298
0.531915
0.169811
0.098113
0.113208
0
0
0
0
0
0
0
0.094044
0.240476
420
14
71
30
0.736677
0
0
0
0
0
0.085714
0
0
0
0
0
0.5
1
0.1
false
0
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
a710afa41439e50cbed9df6234f1b13a17d0eed6
339
py
Python
pylodon/__init__.py
astronouth7303/pylodon
5eaa92ca70a067d24a843b88809e91139c705a76
[ "MIT" ]
75
2017-12-30T21:16:50.000Z
2022-02-15T15:56:07.000Z
pylodon/__init__.py
astronouth7303/pylodon
5eaa92ca70a067d24a843b88809e91139c705a76
[ "MIT" ]
5
2017-12-20T02:58:23.000Z
2018-08-31T14:46:12.000Z
pylodon/__init__.py
astronouth7303/pylodon
5eaa92ca70a067d24a843b88809e91139c705a76
[ "MIT" ]
12
2017-12-21T11:23:32.000Z
2020-05-16T22:34:32.000Z
from flask import Flask from flask_pymongo import PyMongo from flask_cors import CORS from flask_sslify import SSLify from config import STRICT_HTTPS app = Flask(__name__) app.config.from_object('config') CORS(app) mongo = PyMongo(app) if STRICT_HTTPS: sslify = SSLify(app, subdomains=True, permanent=True) from ...
19.941176
57
0.79646
51
339
5.098039
0.372549
0.138462
0
0
0
0
0
0
0
0
0
0
0.138643
339
16
58
21.1875
0.890411
0
0
0
0
0
0.017699
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a7141e9ddd9b271d694416aced503cdd84def4e8
24,715
py
Python
symbeam/point.py
connorivy/symbeam
d75fe03fbfda289c25feccac4d8b789f15306731
[ "MIT" ]
9
2020-09-15T16:22:35.000Z
2022-03-14T22:43:13.000Z
symbeam/point.py
connorivy/symbeam
d75fe03fbfda289c25feccac4d8b789f15306731
[ "MIT" ]
7
2020-09-17T16:14:20.000Z
2020-12-31T17:54:16.000Z
symbeam/point.py
connorivy/symbeam
d75fe03fbfda289c25feccac4d8b789f15306731
[ "MIT" ]
5
2021-02-22T00:35:12.000Z
2022-02-21T16:00:21.000Z
"""Point module. Provides the point class, reponsible for handling point forces and moments, reactions and supports. A point is defined by an abstract class with all attributes and methods associated with point features. Concrete implementations, for instance, for distinct supports types, are realised by concrete clas...
32.139142
92
0.517702
2,523
24,715
4.86524
0.118113
0.037637
0.041548
0.027373
0.678615
0.623136
0.596986
0.583218
0.544684
0.542322
0
0.014338
0.319887
24,715
768
93
32.18099
0.715926
0.302569
0
0.70282
0
0
0.014044
0
0
0
0
0
0
1
0.114967
false
0.008677
0.008677
0.043384
0.208243
0
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
a7190cd3e3ee8113e2bdfdfdb18b41bb7bd5e055
1,075
py
Python
app/donors/views/donors.py
chavez897/blood-bank-management
93f645fb390a6b30c25431def6bb36785f6f51ce
[ "MIT" ]
null
null
null
app/donors/views/donors.py
chavez897/blood-bank-management
93f645fb390a6b30c25431def6bb36785f6f51ce
[ "MIT" ]
null
null
null
app/donors/views/donors.py
chavez897/blood-bank-management
93f645fb390a6b30c25431def6bb36785f6f51ce
[ "MIT" ]
null
null
null
""" Application name: donors.py Author/Programmer: Alina Ejaz Date application created: April 5th, 2022 This view allows to perform insert, select, search, update and delete operations in the donor table. All of these operations are only allowed for logged in users. You...
30.714286
72
0.713488
119
1,075
6.369748
0.672269
0.026385
0.044855
0
0
0
0
0
0
0
0
0.006017
0.226977
1,075
34
73
31.617647
0.906137
0.377674
0
0
0
0
0.01682
0
0
0
0
0
0
1
0.058824
false
0
0.294118
0
0.705882
0
0
0
0
null
0
0
0
0
0
0
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
a731e83868c9c62069d436aecc0f3ff3a2921056
763
gyp
Python
internal/xmpmeta/external/strings/strings.gyp
isabella232/xmpmeta
73671eccaef4879bb89fa98ee3e50514760f6c97
[ "Apache-2.0" ]
18
2016-12-06T09:57:01.000Z
2021-10-07T07:16:43.000Z
internal/xmpmeta/external/strings/strings.gyp
google/xmpmeta
73671eccaef4879bb89fa98ee3e50514760f6c97
[ "Apache-2.0" ]
1
2021-07-19T12:33:12.000Z
2021-07-19T12:33:12.000Z
internal/xmpmeta/external/strings/strings.gyp
isabella232/xmpmeta
73671eccaef4879bb89fa98ee3e50514760f6c97
[ "Apache-2.0" ]
13
2017-02-01T18:14:50.000Z
2021-07-19T12:32:01.000Z
{ 'variables' : { 'xmpmeta_dir': '<(DEPTH)/third_party/xmpmeta/internal/xmpmeta', }, 'target_defaults': { 'include_dirs' : [ '<(xmpmeta_dir)/external', '<(xmpmeta_dir)/external/miniglog', ], }, 'targets': [ { 'target_name': 'xmpmeta_strings', 'dependencies': [ '...
22.441176
70
0.500655
65
763
5.661538
0.646154
0.108696
0.146739
0.141304
0
0
0
0
0
0
0
0.007663
0.315858
763
33
71
23.121212
0.697318
0.083879
0
0.151515
0
0
0.522302
0.260432
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
a7333e8692b398a2cecb94c45e17a804fb111cc4
2,034
py
Python
libs/locking.py
ddv0504/pipeline
9626871a3d030a2f075530ec0a567cee22fad586
[ "MIT" ]
null
null
null
libs/locking.py
ddv0504/pipeline
9626871a3d030a2f075530ec0a567cee22fad586
[ "MIT" ]
null
null
null
libs/locking.py
ddv0504/pipeline
9626871a3d030a2f075530ec0a567cee22fad586
[ "MIT" ]
null
null
null
''' PIPELINE 2 Project manager for Maya Ahutor: Lior Ben Horin All rights reserved (c) 2017 pipeline.nnl.tv liorbenhorin@gmail.com --------------------------------------------------------------------------------------------- install: Place the pipeline folder in your maya scripts folder and run this code (in pyt...
31.292308
103
0.564405
233
2,034
4.918455
0.579399
0.006981
0.057592
0.078534
0.115183
0.115183
0.115183
0.115183
0.115183
0.082024
0
0.007827
0.183383
2,034
65
104
31.292308
0.682119
0
0
0.133333
0
0
0.055453
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a73395652b17f4d14a877b1a278aaea6f5b1fdb8
2,079
py
Python
backtest_template.py
J0N3X/crypto-backtest-module
0f2618c4538b25a78f75c7831b9ce3701f33de60
[ "MIT" ]
6
2021-08-10T14:34:11.000Z
2022-03-03T19:14:15.000Z
backtest_template.py
J0N3X/crypto-backtest-module
0f2618c4538b25a78f75c7831b9ce3701f33de60
[ "MIT" ]
null
null
null
backtest_template.py
J0N3X/crypto-backtest-module
0f2618c4538b25a78f75c7831b9ce3701f33de60
[ "MIT" ]
4
2020-11-01T19:46:56.000Z
2022-03-24T05:47:06.000Z
####################### # Author: slurpxbt ####################### import binance_candle_data as bcd import pnl_display_funcs as pnl from pathlib import Path import pandas as pd import datetime import matplotlib.pyplot as plt import numpy as np # pandas display, pycharm otherwise doesn't display all columns pd.set_opt...
38.5
120
0.564695
245
2,079
4.571429
0.457143
0.040179
0.042857
0.057143
0.195536
0.195536
0.195536
0.195536
0.195536
0.195536
0
0.023015
0.164021
2,079
54
121
38.5
0.621404
0.391053
0
0
0
0
0.067227
0.023529
0
0
0
0.018519
0
1
0.034483
false
0
0.241379
0
0.310345
0.034483
0
0
0
null
0
0
0
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
a73b31c33003dd18bf03a456c5bbdda52cb0ad35
1,855
py
Python
support/cross/aio/trace.py
pmp-p/python-wasm-plus
ccd34cf46fc00924e256a0ad1d8cf5061b9520ac
[ "MIT" ]
3
2022-03-11T22:02:39.000Z
2022-03-16T08:04:33.000Z
support/cross/aio/trace.py
pmp-p/python-wasm-plus
ccd34cf46fc00924e256a0ad1d8cf5061b9520ac
[ "MIT" ]
null
null
null
support/cross/aio/trace.py
pmp-p/python-wasm-plus
ccd34cf46fc00924e256a0ad1d8cf5061b9520ac
[ "MIT" ]
null
null
null
STEP_INTO = False def on(): global STEP_INTO STEP_INTO = True def off(): global STEP_INTO STEP_INTO = False def lines(frame, event, arg): if event != 'line': return co = frame.f_code func_name = co.co_name line_no = frame.f_lineno filename = co.co_filename print ' %s ...
22.901235
82
0.562264
243
1,855
4.028807
0.201646
0.081716
0.036772
0.036772
0.40143
0.243105
0.196118
0.196118
0.196118
0.118488
0
0.001634
0.340162
1,855
80
83
23.1875
0.798203
0
0
0.306122
0
0
0.107378
0.035062
0
0
0
0
0
0
null
null
0
0
null
null
0.061224
0
0
0
null
0
0
0
0
0
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
59527fb43e8ee74a20472f228d52b6dfb56d435f
453
py
Python
src/openpersonen/api/serializers/persoon.py
maykinmedia/open-personen
ddcf083ccd4eb864c5305bcd8bc75c6c64108272
[ "RSA-MD" ]
2
2020-08-26T11:24:43.000Z
2021-07-28T09:46:40.000Z
src/openpersonen/api/serializers/persoon.py
maykinmedia/open-personen
ddcf083ccd4eb864c5305bcd8bc75c6c64108272
[ "RSA-MD" ]
153
2020-08-26T10:45:35.000Z
2021-12-10T17:33:16.000Z
src/openpersonen/api/serializers/persoon.py
maykinmedia/open-personen
ddcf083ccd4eb864c5305bcd8bc75c6c64108272
[ "RSA-MD" ]
null
null
null
from rest_framework import serializers from .geboorte import GeboorteSerializer from .naam import NaamSerializer class PersoonSerializer(serializers.Serializer): burgerservicenummer = serializers.RegexField( "^[0-9]*$", required=False, min_length=9, max_length=9 ) geheimhoudingPersoonsgegevens = ...
32.357143
76
0.781457
43
453
8.162791
0.534884
0.148148
0
0
0
0
0
0
0
0
0
0.01023
0.136865
453
13
77
34.846154
0.887468
0
0
0
0
0
0.01766
0
0
0
0
0
0
1
0
false
0
0.3
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
595768403a0277a0d740cd5bbb3979eb3c626b06
249
py
Python
Week4/19. PCA.py
HawkingLaugh/Data-Processing-Using-Python
6c4d7e09317aee41684731d5611f2f0dab217b2b
[ "MIT" ]
null
null
null
Week4/19. PCA.py
HawkingLaugh/Data-Processing-Using-Python
6c4d7e09317aee41684731d5611f2f0dab217b2b
[ "MIT" ]
null
null
null
Week4/19. PCA.py
HawkingLaugh/Data-Processing-Using-Python
6c4d7e09317aee41684731d5611f2f0dab217b2b
[ "MIT" ]
null
null
null
from sklearn.decomposition import PCA from sklearn import datasets from sklearn import preprocessing boston = datasets.load_boston() X = preprocessing.scale(boston.data) pca = PCA(n_components='mle') pca.fit(X) print(pca.explained_variance_ratio_)
24.9
37
0.815261
35
249
5.657143
0.571429
0.166667
0.171717
0
0
0
0
0
0
0
0
0
0.096386
249
10
38
24.9
0.88
0
0
0
0
0
0.012
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
595c9c8bc5c6f128c5b92909366d468cd5c759b4
683
py
Python
django_social_oauth_two_factor/urls.py
thethirdbearsolutions/django-social-oauth-twofactor
64592075daad9ef64a8da1383a808dd507fc08f8
[ "MIT" ]
null
null
null
django_social_oauth_two_factor/urls.py
thethirdbearsolutions/django-social-oauth-twofactor
64592075daad9ef64a8da1383a808dd507fc08f8
[ "MIT" ]
null
null
null
django_social_oauth_two_factor/urls.py
thethirdbearsolutions/django-social-oauth-twofactor
64592075daad9ef64a8da1383a808dd507fc08f8
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import url from django.urls import path, include from two_factor.urls import urlpatterns as tf_urls from two_factor.gateways.twilio.urls import urlpatterns as tf_twilio_urls from . import views urlpatterns = [ url('', include(settings.ORIGINAL_ROOT_URLCONF)),...
34.15
73
0.714495
92
683
5.130435
0.347826
0.084746
0.059322
0.097458
0.105932
0
0
0
0
0
0
0.001724
0.150805
683
19
74
35.947368
0.812069
0
0
0
0
0
0.16129
0.068915
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
595ec0e821665912a210080710338686eb7d2e41
444
py
Python
studentDetailed/migrations/0005_auto_20180430_1638.py
NJnisarg/IEEEProfMatch
0a67108c910b40f878cc3e0ed9f37ec59089f02d
[ "MIT" ]
null
null
null
studentDetailed/migrations/0005_auto_20180430_1638.py
NJnisarg/IEEEProfMatch
0a67108c910b40f878cc3e0ed9f37ec59089f02d
[ "MIT" ]
null
null
null
studentDetailed/migrations/0005_auto_20180430_1638.py
NJnisarg/IEEEProfMatch
0a67108c910b40f878cc3e0ed9f37ec59089f02d
[ "MIT" ]
null
null
null
# Generated by Django 2.0.2 on 2018-04-30 16:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('studentDetailed', '0004_auto_20180430_0718'), ] operations = [ migrations.AlterField( model_name='studentdetailed', ...
23.368421
93
0.630631
49
444
5.591837
0.795918
0
0
0
0
0
0
0
0
0
0
0.1
0.256757
444
18
94
24.666667
0.730303
0.101351
0
0
1
0
0.143577
0.057935
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
595f3595826e3a93c9c8fbc6d73ede75a313f681
12,754
py
Python
bb2cogs/level.py
Team-EG/j-bot
2e160707d13cc4988f370713fc9f57c7cff3f5bb
[ "MIT" ]
2
2020-07-07T01:15:15.000Z
2021-08-15T19:49:32.000Z
bb2cogs/level.py
Team-EG/j-bot
2e160707d13cc4988f370713fc9f57c7cff3f5bb
[ "MIT" ]
null
null
null
bb2cogs/level.py
Team-EG/j-bot
2e160707d13cc4988f370713fc9f57c7cff3f5bb
[ "MIT" ]
1
2020-04-08T04:23:10.000Z
2020-04-08T04:23:10.000Z
import discord from discord.ext import commands import json import os import random import shutil import time class Level(commands.Cog): def __init__(self, client): self.client = client print(f'{__name__} 로드 완료!') @commands.command() @commands.has_permissions(ban_members=...
37.733728
112
0.496472
1,571
12,754
3.877785
0.136219
0.068943
0.080762
0.094222
0.661031
0.609816
0.53562
0.511983
0.434176
0.434176
0
0.007778
0.385056
12,754
337
113
37.845697
0.768966
0
0
0.599278
0
0
0.154627
0.069904
0
0
0
0
0
1
0.00722
false
0.075812
0.025271
0
0.115523
0.00361
0
0
0
null
0
0
0
0
0
0
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
596d4ceb5b5bbd60b5d7f45401542a2426500843
2,916
py
Python
dbutils.py
xawos/slou_bot
3b3f6206278e5ebed831a715294ff79a79f2f3b8
[ "Unlicense" ]
1
2021-04-15T20:53:01.000Z
2021-04-15T20:53:01.000Z
dbutils.py
xawos/slou_bot
3b3f6206278e5ebed831a715294ff79a79f2f3b8
[ "Unlicense" ]
null
null
null
dbutils.py
xawos/slou_bot
3b3f6206278e5ebed831a715294ff79a79f2f3b8
[ "Unlicense" ]
null
null
null
import sqlite3 def check_file(dbfile): conn = None try: conn = sqlite3.connect(dbfile) print('SQLite DB found, version {}'.format(sqlite3.version)) return conn except Error as e: print('Connection failed with Alan: '.format(e)) return False finally: if c...
24.504202
109
0.537037
341
2,916
4.58651
0.219941
0.084399
0.071611
0.107417
0.657928
0.615729
0.596547
0.539642
0.539642
0.515985
0
0.00587
0.357339
2,916
119
110
24.504202
0.828709
0
0
0.747573
0
0
0.154268
0
0
0
0
0
0
1
0.07767
false
0
0.009709
0
0.291262
0.106796
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
596df5931f53af7a5aeebf2edded594d5a5297d6
827
py
Python
testtools/dict_mem_test.py
afy2103/spambayes-9-10-Frozen
383db71e3b7b2141975cf66e6d223bb437511776
[ "PSF-2.0" ]
null
null
null
testtools/dict_mem_test.py
afy2103/spambayes-9-10-Frozen
383db71e3b7b2141975cf66e6d223bb437511776
[ "PSF-2.0" ]
null
null
null
testtools/dict_mem_test.py
afy2103/spambayes-9-10-Frozen
383db71e3b7b2141975cf66e6d223bb437511776
[ "PSF-2.0" ]
null
null
null
__author__ = 'Alex' import os import sys import memory_profiler sys.path.insert(-1, os.getcwd()) sys.path.insert(-1, os.path.dirname(os.getcwd())) from spambayes import TestDriver, msgs from spambayes.Options import get_pathname_option @profile def main(): ham = [get_pathname_option("TestDriver", "ham_directori...
33.08
102
0.689238
125
827
4.416
0.416
0.059783
0.092391
0.050725
0.231884
0.09058
0.09058
0.09058
0
0
0
0.022222
0.129383
827
24
103
34.458333
0.744444
0
0
0
0
0
0.106409
0
0
0
0
0
0
0
null
null
0
0.277778
null
null
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
1
0
0
0
0
0
0
0
0
1
5972770bd7815233215d4b54bcc7857d6cd6d417
3,775
py
Python
molo/yourtips/migrations/0001_initial.py
praekeltfoundation/molo.youthtoyouthtips
8b3e3b1ff52cd4a78ccca5d153b3909a1f21625f
[ "BSD-2-Clause" ]
null
null
null
molo/yourtips/migrations/0001_initial.py
praekeltfoundation/molo.youthtoyouthtips
8b3e3b1ff52cd4a78ccca5d153b3909a1f21625f
[ "BSD-2-Clause" ]
19
2017-06-13T13:23:31.000Z
2018-10-23T10:10:28.000Z
molo/yourtips/migrations/0001_initial.py
praekeltfoundation/molo.youthtoyouthtips
8b3e3b1ff52cd4a78ccca5d153b3909a1f21625f
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.13 on 2017-07-03 12:17 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import molo.core.models class Migration(migrations.Migration): initial = True dependenc...
46.036585
259
0.61404
383
3,775
5.866841
0.342037
0.028482
0.043614
0.068536
0.3587
0.3587
0.344459
0.344459
0.307521
0.307521
0
0.010772
0.262252
3,775
81
260
46.604938
0.79605
0.018013
0
0.452055
1
0
0.204374
0.046706
0
0
0
0
0
1
0
false
0
0.068493
0
0.123288
0
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
597b1f123708dfbdaf42b7129d3de2cc668382fe
545
py
Python
Automation/baidu.py
YANGYANTEST/python-study
376203126f465f91eade98eaefca4ea2c123730b
[ "MIT" ]
1
2020-03-18T13:14:28.000Z
2020-03-18T13:14:28.000Z
Automation/baidu.py
YANGYANTEST/python-study
376203126f465f91eade98eaefca4ea2c123730b
[ "MIT" ]
null
null
null
Automation/baidu.py
YANGYANTEST/python-study
376203126f465f91eade98eaefca4ea2c123730b
[ "MIT" ]
null
null
null
import time from selenium import webdriver driver=webdriver.Chrome() driver.get("http://www.baidu.com") # driver.get("file:///E:/train/python-study/html-bootstrap/2017-12-27.html") driver.maximize_window() print("title is ",driver.title) # assert '百度一下' in driver.title driver.refresh() time.sleep(5) # baidu=driver.fin...
25.952381
76
0.761468
87
545
4.586207
0.574713
0.100251
0.170426
0.190476
0.105263
0
0
0
0
0
0
0.019531
0.06055
545
20
77
27.25
0.759766
0.295413
0
0.142857
0
0
0.114058
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.071429
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
59830282d8aeeba4aa50fd115ab87db4fc4254c9
1,895
py
Python
main.py
paulo-raca/emdec-gtfs
04b07f91e1c77adab66ea8a695384bd21079a202
[ "WTFPL" ]
8
2015-03-20T02:47:32.000Z
2021-11-06T12:18:33.000Z
main.py
paulo-raca/Emdec-GTransit
04b07f91e1c77adab66ea8a695384bd21079a202
[ "WTFPL" ]
null
null
null
main.py
paulo-raca/Emdec-GTransit
04b07f91e1c77adab66ea8a695384bd21079a202
[ "WTFPL" ]
4
2015-03-23T22:52:38.000Z
2021-01-05T14:34:49.000Z
from quart import Quart, redirect, jsonify, send_file import linhas import emdec2gtfs import asyncio import aiocache from asyncio_pool import AioPool app = Quart(__name__) #app.config['JSONIFY_PRETTYPRINT_REGULAR'] = True app.config['JSON_AS_ASCII'] = False app.config['JSON_SORT_KEYS'] = False async def all_routes():...
31.583333
120
0.71029
260
1,895
4.880769
0.284615
0.204886
0.040977
0.063042
0.254531
0.198582
0.198582
0.198582
0.198582
0.138692
0
0.002567
0.177836
1,895
59
121
32.118644
0.811938
0.02533
0
0.083333
0
0
0.109426
0.027086
0
0
0
0
0
1
0
false
0
0.125
0
0.291667
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
598d03016364b5f0001ab49cc0f0a82311fcb8d9
9,340
py
Python
src/recording_script_generator/core/stats.py
stefantaubert/recording-script-generator
01cdcd4b85ed7f245f4bb8535d870c04472746c9
[ "MIT" ]
null
null
null
src/recording_script_generator/core/stats.py
stefantaubert/recording-script-generator
01cdcd4b85ed7f245f4bb8535d870c04472746c9
[ "MIT" ]
null
null
null
src/recording_script_generator/core/stats.py
stefantaubert/recording-script-generator
01cdcd4b85ed7f245f4bb8535d870c04472746c9
[ "MIT" ]
null
null
null
from collections import Counter, OrderedDict from logging import getLogger from typing import List from typing import OrderedDict as OrderedDictType from typing import Tuple import numpy as np from ordered_set import OrderedSet from pandas import DataFrame from recording_script_generator.core.types import (ReadingPass...
44.688995
219
0.740257
1,255
9,340
5.117131
0.104382
0.030832
0.022267
0.018686
0.478979
0.341171
0.281065
0.214886
0.160075
0.137652
0
0.009497
0.165739
9,340
208
220
44.903846
0.814682
0.037366
0
0.11976
0
0.041916
0.164608
0.089816
0
0
0
0
0.005988
1
0.047904
false
0.071856
0.065868
0
0.155689
0
0
0
0
null
0
0
0
0
0
0
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
5991a56422176d45daf3429d6de4c5d08fd0bbff
483
py
Python
backend/usd_backend/usd_rest_api/migrations/0004_auto_20210517_2307.py
Reevo55/usd-project
25c967620a3d0b7b2a8da72ba9ec5b9e02a5ee69
[ "MIT" ]
null
null
null
backend/usd_backend/usd_rest_api/migrations/0004_auto_20210517_2307.py
Reevo55/usd-project
25c967620a3d0b7b2a8da72ba9ec5b9e02a5ee69
[ "MIT" ]
null
null
null
backend/usd_backend/usd_rest_api/migrations/0004_auto_20210517_2307.py
Reevo55/usd-project
25c967620a3d0b7b2a8da72ba9ec5b9e02a5ee69
[ "MIT" ]
null
null
null
# Generated by Django 3.2.2 on 2021-05-17 21:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('usd_rest_api', '0003_alter_group_etcs'), ] operations = [ migrations.RemoveField( model_name='group', name='etcs', ...
21
50
0.563147
50
483
5.3
0.72
0.067925
0.10566
0.135849
0
0
0
0
0
0
0
0.057927
0.320911
483
22
51
21.954545
0.75
0.093168
0
0.25
1
0
0.116972
0.048165
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
59927a58bf036674b8dc1e23a1a2bb7c24ad6d3a
7,074
py
Python
crawler_from_scratch/IpPool.py
neo4dev/crawler_from_scratch
f8cdbea349bf2fe6618fcbb1394eb8a8cc17ea41
[ "Apache-2.0" ]
2
2021-04-20T12:43:12.000Z
2021-12-20T03:26:38.000Z
crawler_from_scratch/IpPool.py
neo4dev/crawler_from_scratch
f8cdbea349bf2fe6618fcbb1394eb8a8cc17ea41
[ "Apache-2.0" ]
2
2020-03-02T12:35:52.000Z
2021-09-28T00:47:16.000Z
crawler_from_scratch/IpPool.py
neo4dev/crawler_from_scratch
f8cdbea349bf2fe6618fcbb1394eb8a8cc17ea41
[ "Apache-2.0" ]
3
2021-04-20T12:43:14.000Z
2022-02-20T15:30:34.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: 11a_IP_Pool.ipynb (unless otherwise specified). __all__ = ['connect_db', 'rdb', 'update_health', 'match_ip', 'match_port', 'match_ip_with_port', 'find_port', 'find_ips', 'crawl_ip', 'proxy_website_urls', 'https', 'validate', 'parallel_crawl_ips', 'repeat_crawl_ips...
32.449541
129
0.604608
930
7,074
4.42043
0.245161
0.026271
0.027244
0.01946
0.24252
0.183167
0.160058
0.099732
0.086597
0.062758
0
0.029299
0.261804
7,074
217
130
32.599078
0.757947
0.076195
0
0.213836
1
0.006289
0.14094
0.012508
0
0
0
0
0
1
0.106918
false
0
0.025157
0.018868
0.220126
0.056604
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
5994f22d2cb4c39e1e53070447029e3a3dbc5a7d
78,295
py
Python
suncasa/utils/DButil.py
wyq24/suncasa
e6ed6d8b9bd2186c4af6d0354d03af5fff9aef7a
[ "BSD-2-Clause" ]
2
2018-02-12T09:34:23.000Z
2019-07-16T18:25:12.000Z
suncasa/utils/DButil.py
wulinhui1/suncasa-src
1f94aaabaf6a3911fa532648ec6676a221553436
[ "BSD-2-Clause" ]
26
2016-11-09T17:11:45.000Z
2021-08-20T13:41:50.000Z
suncasa/utils/DButil.py
wulinhui1/suncasa-src
1f94aaabaf6a3911fa532648ec6676a221553436
[ "BSD-2-Clause" ]
17
2016-10-27T18:35:46.000Z
2021-08-03T05:33:57.000Z
import numpy as np import glob import os import json import pickle from functools import wraps import astropy.units as u __author__ = ["Sijie Yu"] __email__ = "sijie.yu@njit.edu" def img2html_movie(imgprefix, outname='movie', img_fmt='png'): imgfiles = glob.glob(imgprefix + '*.' + img_fmt) imgfiles = sorted(...
39.926058
1,260
0.530877
9,894
78,295
4.143622
0.119972
0.05498
0.061663
0.029856
0.503183
0.457838
0.413664
0.378759
0.357538
0.322829
0
0.022083
0.292075
78,295
1,960
1,261
39.946429
0.717574
0.145054
0
0.409549
0
0.00807
0.188188
0.051754
0
0
0
0.00051
0
1
0.035642
false
0.002017
0.03497
0.001345
0.150639
0.007397
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
599bcdc36eacbfed5589fe3d5f37c35eeab99f8d
7,398
py
Python
finetune_multiloss.py
hdadong/dadong
86c362c1df385ec24d01b47b014ca3e2b1037293
[ "MIT" ]
null
null
null
finetune_multiloss.py
hdadong/dadong
86c362c1df385ec24d01b47b014ca3e2b1037293
[ "MIT" ]
null
null
null
finetune_multiloss.py
hdadong/dadong
86c362c1df385ec24d01b47b014ca3e2b1037293
[ "MIT" ]
null
null
null
# coding: utf-8 # In[4]: import tensorflow as tf import numpy as np # import pickle from tensorflow import layers # from PIL import Image #from my_util import * import os os.environ.setdefault('CUDA_VISIBLE_DEVICES', '0') from Dataloader2 import * slim=tf.contrib.slim from afjt_model import CNN_Encoder class...
35.061611
208
0.607056
943
7,398
4.530223
0.233298
0.006086
0.021067
0.02809
0.205993
0.123127
0.101592
0.101592
0.083802
0.083802
0
0.046328
0.282238
7,398
210
209
35.228571
0.758192
0.029873
0
0.096774
0
0
0.046369
0
0
0
0
0
0
0
null
null
0
0.056452
null
null
0.040323
0
0
0
null
0
0
0
0
0
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
599d039d99ba91e4eef151d7e4ad46316f7b4fda
2,404
py
Python
text2error/utils/random.py
simonepri/text2error
3735bb6fef0c4f961c4944b4d97b6fdb90c832b7
[ "MIT" ]
1
2020-05-05T13:44:29.000Z
2020-05-05T13:44:29.000Z
text2error/utils/random.py
simonepri/text2error
3735bb6fef0c4f961c4944b4d97b6fdb90c832b7
[ "MIT" ]
null
null
null
text2error/utils/random.py
simonepri/text2error
3735bb6fef0c4f961c4944b4d97b6fdb90c832b7
[ "MIT" ]
1
2020-03-31T15:29:36.000Z
2020-03-31T15:29:36.000Z
from typing import * # pylint: disable=wildcard-import,unused-wildcard-import import random def non_adjacent_sample( n: int, m: int, rng: Optional[random.Random] = None ) -> List[int]: """ Generates a uniform random sample from a given 1-D array such that elements chosen are not adjacent (i.e. they ...
33.388889
83
0.568636
387
2,404
3.48062
0.333333
0.011136
0.023757
0.024499
0.044543
0.035635
0.016333
0.016333
0.016333
0
0
0.027289
0.31406
2,404
71
84
33.859155
0.789569
0.446339
0
0.05
0
0
0.046656
0
0
0
0
0.014085
0
1
0.025
false
0
0.05
0
0.125
0
0
0
0
null
0
0
0
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
59a40cc079480869f23fb682e6df5e92e64c6346
2,236
py
Python
src/SVC/diagnostics.py
Sapphirine/bestbuy-recommend
b165f1eb8961b5ab77be34ab0d8ee13aec3bcb95
[ "MIT" ]
null
null
null
src/SVC/diagnostics.py
Sapphirine/bestbuy-recommend
b165f1eb8961b5ab77be34ab0d8ee13aec3bcb95
[ "MIT" ]
null
null
null
src/SVC/diagnostics.py
Sapphirine/bestbuy-recommend
b165f1eb8961b5ab77be34ab0d8ee13aec3bcb95
[ "MIT" ]
2
2019-05-24T09:58:09.000Z
2021-03-22T10:43:25.000Z
def _purge_classes_with_too_few_members(training_data, training_labels, minimum): import numpy import scipy.sparse print "Purging samples of classes with < %s members" % minimum # for iteration. training_data = training_data.todok() # count first. frequencies = dict() for value i...
33.373134
96
0.665027
313
2,236
4.530351
0.300319
0.126939
0.06347
0.055007
0.190409
0.190409
0.136812
0.136812
0.077574
0.077574
0
0.033967
0.223166
2,236
66
97
33.878788
0.782383
0.022809
0
0
0
0
0.08895
0
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
59a7b8a22f9d25d04542eb1e4e01cdb61cec0bed
2,255
py
Python
graphtheory/coloring/tests/test_edgecolorcomplete.py
gitter-badger/graphs-dict
2be1a5b140feb050eec799d6cadf6de5eef01745
[ "BSD-3-Clause" ]
36
2015-09-20T20:55:39.000Z
2021-09-20T05:49:03.000Z
graphtheory/coloring/tests/test_edgecolorcomplete.py
gitter-badger/graphs-dict
2be1a5b140feb050eec799d6cadf6de5eef01745
[ "BSD-3-Clause" ]
6
2016-03-25T21:41:46.000Z
2020-02-12T03:18:59.000Z
graphtheory/coloring/tests/test_edgecolorcomplete.py
gitter-badger/graphs-dict
2be1a5b140feb050eec799d6cadf6de5eef01745
[ "BSD-3-Clause" ]
9
2016-09-12T07:57:27.000Z
2022-03-21T16:15:39.000Z
#!/usr/bin/python import unittest from graphtheory.structures.edges import Edge from graphtheory.structures.graphs import Graph from graphtheory.structures.factory import GraphFactory from graphtheory.coloring.edgecolorcomplete import CompleteGraphEdgeColoring class TestEdgeColoring(unittest.TestCase): def setUp...
33.161765
76
0.614634
258
2,255
5.25969
0.27907
0.103169
0.106116
0.044215
0.638172
0.638172
0.638172
0.638172
0.638172
0.638172
0
0.005573
0.283814
2,255
67
77
33.656716
0.834675
0.047894
0
0.588235
0
0
0.003737
0
0
0
0
0
0.176471
1
0.098039
false
0.039216
0.098039
0
0.215686
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
59aa9c58766ee4f69ae85cd594770b5affd8f817
1,757
py
Python
convolution/models/lenet.py
skn123/butterfly
7217b5d93bc78e1229fed3761bcc70d943f604b7
[ "Apache-2.0" ]
52
2020-08-05T08:32:24.000Z
2022-03-27T21:56:34.000Z
convolution/models/lenet.py
skn123/butterfly
7217b5d93bc78e1229fed3761bcc70d943f604b7
[ "Apache-2.0" ]
13
2020-09-14T23:34:32.000Z
2022-02-15T10:51:03.000Z
convolution/models/lenet.py
skn123/butterfly
7217b5d93bc78e1229fed3761bcc70d943f604b7
[ "Apache-2.0" ]
11
2020-10-15T07:03:25.000Z
2022-03-25T12:03:49.000Z
'''LeNet in PyTorch.''' import torch.nn as nn import torch.nn.functional as F class LeNet(nn.Module): name = 'lenet' def __init__(self, num_classes=10): super().__init__() self.conv1 = nn.Conv2d(3, 6, 5) self.conv2 = nn.Conv2d(6, 16, 5) self.fc1 = nn.Linear(16*5*5, 120) ...
33.788462
84
0.582242
269
1,757
3.684015
0.208178
0.040363
0.064581
0.096872
0.762866
0.732593
0.686176
0.64884
0.57114
0.504541
0
0.067337
0.264656
1,757
51
85
34.45098
0.69969
0.009676
0
0.619048
0
0
0.020761
0
0
0
0
0
0.02381
1
0.095238
false
0
0.047619
0
0.285714
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
59b78cfe1d3777ba32e5ac07b8597679f6cbb431
9,642
py
Python
spotinst_sdk2/test/elastigroup/gcp/test_gcp_eg_client.py
spotinst/spotinst-sdk-python
545bb4e45b2979bd3b5577abc293ee58d3b7bbf5
[ "Apache-2.0" ]
17
2018-10-16T16:09:49.000Z
2022-02-12T21:23:51.000Z
spotinst_sdk2/test/elastigroup/gcp/test_gcp_eg_client.py
spotinst/spotinst-sdk-python
545bb4e45b2979bd3b5577abc293ee58d3b7bbf5
[ "Apache-2.0" ]
72
2018-05-30T14:28:45.000Z
2022-03-25T13:21:31.000Z
spotinst_sdk2/test/elastigroup/gcp/test_gcp_eg_client.py
spotinst/spotinst-sdk-python
545bb4e45b2979bd3b5577abc293ee58d3b7bbf5
[ "Apache-2.0" ]
30
2018-02-15T17:52:51.000Z
2022-02-12T21:23:52.000Z
import os import unittest import json from mock import patch from spotinst_sdk2 import SpotinstSession from spotinst_sdk2.models.elastigroup.gcp import * class SimpleNamespace: def __init__(self, **kwargs): self.__dict__.update(kwargs) class GcpInitTestCase(unittest.TestCase): def setUp(self): self.s...
38.110672
124
0.78044
1,362
9,642
5.20558
0.104258
0.098166
0.100846
0.137518
0.742595
0.688999
0.673484
0.655571
0.632722
0.606065
0
0.013853
0.0866
9,642
252
125
38.261905
0.791189
0.005082
0
0.43871
0
0
0.156429
0.089999
0
0
0
0
0.103226
1
0.122581
false
0
0.070968
0
0.232258
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
59bb8afc2d91799987a82baa06377f1100d1a3a8
387
py
Python
contactnetwork/migrations/0005_auto_20190123_1022.py
pszgaspar/protwis
4989a67175ef3c95047d795c843cf6b9cf4141fa
[ "Apache-2.0" ]
21
2016-01-20T09:33:14.000Z
2021-12-20T19:19:45.000Z
contactnetwork/migrations/0005_auto_20190123_1022.py
pszgaspar/protwis
4989a67175ef3c95047d795c843cf6b9cf4141fa
[ "Apache-2.0" ]
75
2016-02-26T16:29:58.000Z
2022-03-21T12:35:13.000Z
contactnetwork/migrations/0005_auto_20190123_1022.py
pszgaspar/protwis
4989a67175ef3c95047d795c843cf6b9cf4141fa
[ "Apache-2.0" ]
77
2016-01-22T08:44:26.000Z
2022-02-01T15:54:56.000Z
# Generated by Django 2.0.8 on 2019-01-23 09:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('contactnetwork', '0004_auto_20190122_1556'), ] operations = [ migrations.AlterField( model_name='distance', name='di...
20.368421
54
0.602067
39
387
5.871795
0.820513
0.104803
0
0
0
0
0
0
0
0
0
0.112319
0.286822
387
18
55
21.5
0.717391
0.116279
0
0
1
0
0.155882
0.067647
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
59bf372bba136bb4127a8f565076e0b03adcb778
325
py
Python
items/admin.py
LluisoCP/BooksAndFilms
a972091e920cb94313ab1f005a01bd72df538891
[ "MIT" ]
null
null
null
items/admin.py
LluisoCP/BooksAndFilms
a972091e920cb94313ab1f005a01bd72df538891
[ "MIT" ]
null
null
null
items/admin.py
LluisoCP/BooksAndFilms
a972091e920cb94313ab1f005a01bd72df538891
[ "MIT" ]
null
null
null
from django.contrib import admin from items.models import Book, Author, Genre, Comment # Register your models here. admin.site.register(Author) admin.site.register(Genre) admin.site.register(Comment) @admin.register(Book) class BookAdmin(admin.ModelAdmin): list_display = ('title', 'author', 'display_genre', 'langu...
32.5
67
0.775385
43
325
5.813953
0.511628
0.108
0.204
0
0
0
0
0
0
0
0
0
0.098462
325
10
67
32.5
0.853242
0.08
0
0
0
0
0.107383
0
0
0
0
0
0
1
0
false
0
0.25
0
0.5
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
59ced0d106612662226dfcb6f4fa466803fae34d
228
py
Python
tools/gui-editor/wrapper/gui_list.py
jordsti/stigame
6ac0ae737667b1c77da3ef5007f5c4a3a080045a
[ "MIT" ]
8
2015-02-03T20:23:49.000Z
2022-02-15T07:51:05.000Z
tools/gui-editor/wrapper/gui_list.py
jordsti/stigame
6ac0ae737667b1c77da3ef5007f5c4a3a080045a
[ "MIT" ]
null
null
null
tools/gui-editor/wrapper/gui_list.py
jordsti/stigame
6ac0ae737667b1c77da3ef5007f5c4a3a080045a
[ "MIT" ]
2
2017-02-13T18:04:00.000Z
2020-08-24T03:21:37.000Z
__author__ = 'JordSti' import item class gui_list(item.item): def __init__(self): item.item.__init__(self) self.obj = self.lib.List_new() def add(self, vo): self.lib.List_add(self.obj, vo.obj)
19
43
0.631579
34
228
3.794118
0.441176
0.124031
0.170543
0
0
0
0
0
0
0
0
0
0.232456
228
12
43
19
0.737143
0
0
0
0
0
0.030568
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
59d0dc2d1597483c5d0f3ee3b4a158ac2b8cc774
2,585
py
Python
robocute/mouse.py
kfields/robocute
f6f15ab74266053da5fe4ede3cc81310a62146e5
[ "MIT" ]
1
2015-08-24T21:58:34.000Z
2015-08-24T21:58:34.000Z
robocute/mouse.py
kfields/robocute
f6f15ab74266053da5fe4ede3cc81310a62146e5
[ "MIT" ]
null
null
null
robocute/mouse.py
kfields/robocute
f6f15ab74266053da5fe4ede3cc81310a62146e5
[ "MIT" ]
null
null
null
from robocute.node import Node, Coord from robocute.vu import ImageVu from robocute.message import Message from robocute.mailbox import Mailbox class Result(Coord): def __init__(self, node, cellX, cellY, cellZ): Coord.__init__(self, cellX, cellY, cellZ) self.node = node ...
29.712644
64
0.565957
312
2,585
4.432692
0.214744
0.020246
0.039046
0.098337
0.440347
0.392625
0.376717
0.335503
0.31598
0.160521
0
0.000575
0.32766
2,585
87
65
29.712644
0.795167
0.025145
0
0.375
0
0
0.00833
0
0
0
0
0
0
1
0.265625
false
0.046875
0.0625
0.015625
0.484375
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
59e489d79ed526fa797aa600d04bb02a901c22fa
340
py
Python
test/test_common/stopDiscovery.py
timkrentz/riaps-integration
22ceacb3043af3c726a31ff3ea337337e619377e
[ "Apache-2.0" ]
22
2019-02-24T10:15:20.000Z
2021-10-16T14:56:53.000Z
test/test_common/stopDiscovery.py
timkrentz/riaps-integration
22ceacb3043af3c726a31ff3ea337337e619377e
[ "Apache-2.0" ]
10
2018-11-12T12:42:26.000Z
2022-03-11T07:25:06.000Z
test/test_common/stopDiscovery.py
timkrentz/riaps-integration
22ceacb3043af3c726a31ff3ea337337e619377e
[ "Apache-2.0" ]
5
2019-06-11T07:46:49.000Z
2020-12-19T17:47:35.000Z
from subprocess import check_output import subprocess import os import signal def get_pid(name): return check_output(["pidof",name]) try: pid = get_pid("rdiscoveryd").decode("utf-8") if pid != "": os.kill(int(pid), signal.SIGINT) except subprocess.CalledProcessError as e: print("No process wi...
21.25
48
0.702941
48
340
4.895833
0.666667
0.13617
0
0
0
0
0
0
0
0
0
0.003584
0.179412
340
15
49
22.666667
0.83871
0
0
0
0
0
0.15
0
0
0
0
0
0
1
0.083333
false
0
0.333333
0.083333
0.5
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
59e4cd63db5ac755ca3e8662470ddf025f257734
983
py
Python
decks.py
mnajmikl/Blackjack
1b1d249fa384c8cf23a4a2a8b70dad2a2378c141
[ "MIT" ]
1
2022-01-17T14:05:21.000Z
2022-01-17T14:05:21.000Z
decks.py
mnajmikl/Blackjack
1b1d249fa384c8cf23a4a2a8b70dad2a2378c141
[ "MIT" ]
null
null
null
decks.py
mnajmikl/Blackjack
1b1d249fa384c8cf23a4a2a8b70dad2a2378c141
[ "MIT" ]
null
null
null
""" decks.py """ import random from cards import * """ Cards in deck are stored in the following format: [(face, suit, value), -> 1st card (face, suit, value), -> 2nd card ... ] -> nth card """ def createdeck() -> list: deck = [(faceschars[i], s, cardsvalues[i]) for s in...
28.085714
66
0.607325
121
983
4.933884
0.404959
0.033501
0.050251
0.092127
0.130653
0.053601
0
0
0
0
0
0.011004
0.260427
983
34
67
28.911765
0.810179
0.008138
0
0
0
0
0
0
0
0
0
0
0
1
0.263158
false
0
0.105263
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
59e7734699c595182544a0cb5665f874b337184b
1,913
py
Python
dfm/filters.py
Sumith1896/dotfiles
a7e413ed0d59c95f642384bec463472b6cd8411f
[ "MIT" ]
11
2019-01-30T04:40:52.000Z
2022-03-09T14:33:47.000Z
dfm/filters.py
vacancy/dotfiles
63ae9d2d3d1393317561a8626bd3cde5037d8c3f
[ "MIT" ]
1
2020-05-30T23:45:18.000Z
2020-05-30T23:45:18.000Z
dfm/filters.py
Sumith1896/dotfiles
a7e413ed0d59c95f642384bec463472b6cd8411f
[ "MIT" ]
5
2018-03-24T19:06:04.000Z
2021-08-29T20:23:15.000Z
# -*- coding: utf-8 -*- # File : filters.py # Author : Jiayuan Mao # Email : maojiayuan@gmail.com # Date : 09/03/2018 # # This file is part of dotfiles. import os.path as osp import platform from .logging import get_logger logger = get_logger(__file__) __all__ = ['Filter', 'PlatformFilter', 'OSXFilter', 'Linux...
23.617284
102
0.604286
224
1,913
4.946429
0.352679
0.043321
0.049639
0.028881
0.176895
0.059567
0.059567
0.059567
0
0
0
0.006489
0.274961
1,913
80
103
23.9125
0.792358
0.074752
0
0.196078
0
0
0.055619
0
0
0
0
0
0
1
0.235294
false
0
0.058824
0.039216
0.490196
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ab78dbbb43f957f94c5278ff9e14acef3c971cc9
1,875
py
Python
jotleaf/main/pusher_helpers.py
reverie/jotleaf.com
86311b546bb5bae7ba826f5576ea82ac515e8b7d
[ "MIT" ]
1
2020-10-25T15:10:43.000Z
2020-10-25T15:10:43.000Z
jotleaf/main/pusher_helpers.py
reverie/jotleaf.com
86311b546bb5bae7ba826f5576ea82ac515e8b7d
[ "MIT" ]
null
null
null
jotleaf/main/pusher_helpers.py
reverie/jotleaf.com
86311b546bb5bae7ba826f5576ea82ac515e8b7d
[ "MIT" ]
null
null
null
import logging import functools logger = logging.getLogger('django.request') def make_pusher(): from main.api2 import APIEncoder from pusher2 import Pusher from django.conf import settings return Pusher( settings.PUSHER_APP_ID, settings.PUSHER_KEY, settings.PUSHER_SECRET, ...
35.377358
146
0.692267
262
1,875
4.709924
0.381679
0.071313
0.055105
0.048622
0.118314
0.118314
0.06483
0.06483
0
0
0
0.00882
0.213867
1,875
52
147
36.057692
0.828358
0.118933
0
0.055556
0
0
0.058323
0
0
0
0
0
0
0
null
null
0
0.138889
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ab7bf16d6f8249d987725e79f59f7634b99d9099
608
py
Python
custom_components/react/tasks/store_hacs_data.py
gertjanstulp/ha-mapper
9cc84a4856e5f3e45077fd7d2586188b199f83d8
[ "Apache-2.0" ]
null
null
null
custom_components/react/tasks/store_hacs_data.py
gertjanstulp/ha-mapper
9cc84a4856e5f3e45077fd7d2586188b199f83d8
[ "Apache-2.0" ]
null
null
null
custom_components/react/tasks/store_hacs_data.py
gertjanstulp/ha-mapper
9cc84a4856e5f3e45077fd7d2586188b199f83d8
[ "Apache-2.0" ]
null
null
null
""""Store React data.""" from __future__ import annotations from homeassistant.const import EVENT_HOMEASSISTANT_FINAL_WRITE from homeassistant.core import Event from ..base import ReactBase from .base import ReactTask async def async_setup_task(react: ReactBase) -> Task: """Set up this task.""" return Task(...
24.32
63
0.71875
78
608
5.384615
0.461538
0.042857
0.109524
0.133333
0
0
0
0
0
0
0
0
0.175987
608
24
64
25.333333
0.838323
0.059211
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.416667
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ab8511cbe3b1b17dcc5fe332e72dcf85a906e7d5
369
py
Python
experimental/tSolver.py
kakitone/finishingTool
a1f2608a9090adde1108451d2efb034461a75ad5
[ "MIT" ]
48
2015-01-06T22:10:34.000Z
2022-03-25T09:45:54.000Z
experimental/tSolver.py
kakitone/finishingTool
a1f2608a9090adde1108451d2efb034461a75ad5
[ "MIT" ]
24
2015-01-12T02:03:06.000Z
2022-03-21T20:58:05.000Z
experimental/tSolver.py
kakitone/finishingTool
a1f2608a9090adde1108451d2efb034461a75ad5
[ "MIT" ]
13
2015-04-06T07:03:09.000Z
2021-12-11T00:24:11.000Z
import tandemRepeatSolver import time import argparse t0 = time.time() parser = argparse.ArgumentParser(description='tSolver') parser.add_argument('folderName') parser.add_argument('mummerLink') args = vars(parser.parse_args()) print "args", args tandemRepeatSolver.mainFlowForTandemResolve(args['folderName'] , args...
21.705882
84
0.775068
41
369
6.902439
0.439024
0.084806
0.120141
0
0
0
0
0
0
0
0
0.00597
0.092141
369
16
85
23.0625
0.838806
0
0
0
0
0
0.149457
0
0
0
0
0
0
0
null
null
0
0.272727
null
null
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ab8821564ad601acf7b2fee607ae1746d50c0ce7
2,051
py
Python
bcs-ui/backend/container_service/projects/constants.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
599
2019-06-25T03:20:46.000Z
2022-03-31T12:14:33.000Z
bcs-ui/backend/container_service/projects/constants.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
537
2019-06-27T06:03:44.000Z
2022-03-31T12:10:01.000Z
bcs-ui/backend/container_service/projects/constants.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
214
2019-06-25T03:26:05.000Z
2022-03-31T07:52:03.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
25.320988
115
0.638713
246
2,051
5.195122
0.638211
0.046948
0.020344
0.025039
0
0
0
0
0
0
0
0.012666
0.230132
2,051
80
116
25.6375
0.796707
0.393467
0
0.051282
0
0
0.19656
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.641026
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ab89c7c78b37ac92e544373e92ab5fbd9c58ca04
495
py
Python
uri/python/1052.py
el-cardu/challenges
836453415e08b04e08d4e10d2f69257052551fa6
[ "Unlicense" ]
null
null
null
uri/python/1052.py
el-cardu/challenges
836453415e08b04e08d4e10d2f69257052551fa6
[ "Unlicense" ]
null
null
null
uri/python/1052.py
el-cardu/challenges
836453415e08b04e08d4e10d2f69257052551fa6
[ "Unlicense" ]
null
null
null
month = int(input()) if month == 1: month = 'January' elif month == 2: month = 'February' elif month == 3: month = 'March' elif month == 4: month = 'April' elif month == 5: month = 'May' elif month == 6: month = 'June' elif month == 7: month = 'July' elif month == 8: month = 'August' el...
17.068966
23
0.561616
65
495
4.276923
0.461538
0.356115
0
0
0
0
0
0
0
0
0
0.042017
0.278788
495
28
24
17.678571
0.736695
0
0
0
0
0
0.149495
0
0
0
0
0
0
1
0
false
0
0
0
0
0.038462
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ab8ea81780184c97d296cac823f34f6361582040
807
py
Python
setup.py
tanbro/subword-nmt
1ff336d7936dc10b687f323d106d861ce7cccfc9
[ "MIT" ]
null
null
null
setup.py
tanbro/subword-nmt
1ff336d7936dc10b687f323d106d861ce7cccfc9
[ "MIT" ]
null
null
null
setup.py
tanbro/subword-nmt
1ff336d7936dc10b687f323d106d861ce7cccfc9
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='subword_nmt', version='0.3.6', description='Unsupervised Word Segmentation for Neural Machine Translation and Text Generation', url='https://github.com/tanbro/subword-nmt', author='liu xue yan', license='MIT', classifiers=[ 'I...
33.625
100
0.640644
84
807
6.047619
0.738095
0.098425
0.059055
0.07874
0
0
0
0
0
0
0
0.006221
0.203222
807
23
101
35.086957
0.783826
0
0
0
0
0
0.52912
0.076828
0
0
0
0
0
1
0
true
0
0.045455
0
0.045455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
ab8eafd08923beb52068b6c17ea378d6dfdee661
1,039
py
Python
FreeCodeCamp.org/Introduntion.py
MizaN13/PythonAbc
db8aa05497a6a1bf3eafcfdd6c31880b57e509fb
[ "MIT" ]
null
null
null
FreeCodeCamp.org/Introduntion.py
MizaN13/PythonAbc
db8aa05497a6a1bf3eafcfdd6c31880b57e509fb
[ "MIT" ]
null
null
null
FreeCodeCamp.org/Introduntion.py
MizaN13/PythonAbc
db8aa05497a6a1bf3eafcfdd6c31880b57e509fb
[ "MIT" ]
null
null
null
print("Hello World!!!!!!!!!!!!!!!!!!!!!!!") Person_Name = "John" Person_Age = "35" is_Male = True print("There was a man named " + Person_Name + ",") print(Person_Name + " is " + Person_Age + " Years old.") # working with string print("Covid19\nBD\nQuatentines Day\nStarted Date:26-03-2020") Phrase = "Hello Expertla...
18.22807
62
0.668912
169
1,039
4.04142
0.431953
0.144949
0.030747
0.064422
0
0
0
0
0
0
0
0.051535
0.122233
1,039
57
63
18.22807
0.697368
0.073147
0
0.052632
0
0
0.221734
0.05708
0
0
0
0
0
1
0
false
0
0.026316
0
0.026316
0.815789
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
ab92762e756687a8640bbe50d4bfa1e3aac49e19
3,038
py
Python
scripts/hmmgap.py
SaierLaboratory/biotools
0d17655ab2e60c4750a753dddd68517ec5ca6f1f
[ "BSD-3-Clause" ]
2
2018-08-29T14:50:25.000Z
2018-09-12T13:45:25.000Z
scripts/hmmgap.py
SaierLaboratory/biotools
0d17655ab2e60c4750a753dddd68517ec5ca6f1f
[ "BSD-3-Clause" ]
5
2018-06-15T01:04:13.000Z
2021-03-02T15:58:33.000Z
scripts/hmmgap.py
SaierLaboratory/biotools
0d17655ab2e60c4750a753dddd68517ec5ca6f1f
[ "BSD-3-Clause" ]
2
2019-07-19T07:59:15.000Z
2019-11-27T18:53:03.000Z
#!/usr/bin/env python import tempfile import re import subprocess import hmmtop from Bio import SeqIO class annotate: def __init__(self): self.global_tms_ranges = {} self.local_tms_ranges = {} self.annotate = [] self.hmmtop = False self.annotation = False def __call__...
26.649123
82
0.520408
368
3,038
4.17663
0.320652
0.027326
0.033832
0.049447
0.029928
0
0
0
0
0
0
0.007303
0.368993
3,038
113
83
26.884956
0.794471
0.013496
0
0.146067
0
0
0.024382
0
0
0
0
0
0
0
null
null
0.011236
0.11236
null
null
0.022472
0
0
0
null
0
0
0
0
0
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
ab9da0cc1d032e1fe77e0f7e3e7482b0fafaa58a
1,170
py
Python
blog/migrations/0004_photo_tags_photo_title_alter_blogpost_tags_and_more.py
Swannbm/blog-julie
8c1aa97e8b57a9e38a8d9aa7c9d590b74aa2ffd1
[ "CC0-1.0" ]
null
null
null
blog/migrations/0004_photo_tags_photo_title_alter_blogpost_tags_and_more.py
Swannbm/blog-julie
8c1aa97e8b57a9e38a8d9aa7c9d590b74aa2ffd1
[ "CC0-1.0" ]
null
null
null
blog/migrations/0004_photo_tags_photo_title_alter_blogpost_tags_and_more.py
Swannbm/blog-julie
8c1aa97e8b57a9e38a8d9aa7c9d590b74aa2ffd1
[ "CC0-1.0" ]
null
null
null
# Generated by Django 4.0.2 on 2022-02-22 19:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0003_photo_blogpost_main_photo'), ] operations = [ migrations.AddField( model_name='photo', name='tags', ...
30
100
0.575214
120
1,170
5.466667
0.408333
0.068598
0.114329
0.144817
0.657012
0.608232
0.41311
0.285061
0.285061
0.285061
0
0.034188
0.3
1,170
38
101
30.789474
0.766789
0.038462
0
0.5
1
0
0.109528
0.026714
0
0
0
0
0
1
0
false
0
0.03125
0
0.125
0
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
aba361dad28e47cde4059f9c859729a276448de6
2,065
py
Python
dpmModule/jobs/jobclass/cygnus.py
kmsiapps/maplestory_dpm_calc
fbbc5384fdb6aefb58aa4d0d286a6c2972807d57
[ "MIT" ]
null
null
null
dpmModule/jobs/jobclass/cygnus.py
kmsiapps/maplestory_dpm_calc
fbbc5384fdb6aefb58aa4d0d286a6c2972807d57
[ "MIT" ]
null
null
null
dpmModule/jobs/jobclass/cygnus.py
kmsiapps/maplestory_dpm_calc
fbbc5384fdb6aefb58aa4d0d286a6c2972807d57
[ "MIT" ]
null
null
null
from ...kernel import core from ...kernel.core import VSkillModifier as V from ...kernel.core import CharacterModifier as MDF from ...character import characterKernel as ck from functools import partial def PhalanxChargeWrapper(vEhc, num1, num2): PhalanxCharge = core.DamageSkill("시그너스 팔랑크스", 780, 450 + 18*vEhc.get...
40.490196
223
0.658111
245
2,065
5.428571
0.379592
0.045113
0.060902
0.058647
0.140602
0.078195
0.078195
0.078195
0
0
0
0.042092
0.240678
2,065
51
224
40.490196
0.806122
0.027603
0
0.111111
0
0
0.01596
0
0
0
0
0
0
1
0.138889
false
0.111111
0.277778
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
abaaa889a43064ea5b905a960abf0500b7efb4e6
6,634
py
Python
interpreter.py
luisincrespo/ftp-client
09352e16b37fdb9cd14bd0e20438b7dfea774445
[ "MIT" ]
5
2019-04-28T05:55:17.000Z
2020-10-16T08:54:29.000Z
interpreter.py
luisincrespo/ftp-client
09352e16b37fdb9cd14bd0e20438b7dfea774445
[ "MIT" ]
1
2020-04-04T05:42:41.000Z
2020-04-05T10:40:29.000Z
interpreter.py
luisincrespo/ftp-client
09352e16b37fdb9cd14bd0e20438b7dfea774445
[ "MIT" ]
3
2019-02-24T09:11:38.000Z
2020-09-27T02:59:02.000Z
import os from cmd import Cmd from client import FtpClient class FtpInterpreter(Cmd): """ FTP client command line utility. """ def __init__(self, debug=False): Cmd.__init__(self) self.intro = ('FTP Client. Start typing help or ? to see available ' 'commands.') ...
31.590476
78
0.571752
714
6,634
5.145658
0.170868
0.052259
0.069407
0.080022
0.462167
0.31301
0.290691
0.204682
0.192433
0.14344
0
0
0.340669
6,634
209
79
31.741627
0.839963
0
0
0.279661
0
0
0.097709
0
0
0
0
0
0
0
null
null
0.042373
0.025424
null
null
0.118644
0
0
0
null
0
0
0
0
0
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
abbcd998d6b445efa40fe2611f169eb3159f0673
763
py
Python
myig/forms.py
Yvonne-Ouma/Instagram-app
1a758f46186b181eaa6bbb551759c68c8a026527
[ "Unlicense" ]
null
null
null
myig/forms.py
Yvonne-Ouma/Instagram-app
1a758f46186b181eaa6bbb551759c68c8a026527
[ "Unlicense" ]
null
null
null
myig/forms.py
Yvonne-Ouma/Instagram-app
1a758f46186b181eaa6bbb551759c68c8a026527
[ "Unlicense" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from .models import Profile, Image, Comment class SignupForm(UserCreationForm): email = forms.EmailField(max_length=200, help_text='Required') class Meta: model = User f...
24.612903
76
0.664482
84
763
5.988095
0.464286
0.071571
0.111332
0.137177
0.166998
0
0
0
0
0
0
0.008361
0.216252
763
30
77
25.433333
0.832776
0
0
0.190476
0
0
0.133683
0
0
0
0
0
0
1
0
false
0.047619
0.190476
0
0.619048
0
0
0
0
null
0
0
0
0
0
0
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
abbda90d924997a09b5e3af10282547cdb065486
8,354
py
Python
Version 0.8/EvaClientQCU.py
gabrieloandco/BB84py
0b2c01c00aac142503cddc429f4118e497b5e2de
[ "MIT" ]
null
null
null
Version 0.8/EvaClientQCU.py
gabrieloandco/BB84py
0b2c01c00aac142503cddc429f4118e497b5e2de
[ "MIT" ]
null
null
null
Version 0.8/EvaClientQCU.py
gabrieloandco/BB84py
0b2c01c00aac142503cddc429f4118e497b5e2de
[ "MIT" ]
1
2019-12-04T08:47:30.000Z
2019-12-04T08:47:30.000Z
# Copyright (c) 2016 Gabriel Oliveri (<gabrieloandco@gmail.com>) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy...
32.505837
121
0.626407
919
8,354
5.685528
0.28074
0.024115
0.028134
0.010335
0.226794
0.142392
0.092632
0.035981
0.024115
0.024115
0
0.020895
0.272444
8,354
256
122
32.632813
0.838763
0.130955
0
0.248804
0
0
0.085256
0
0
0
0
0
0
0
null
null
0.004785
0.038278
null
null
0.143541
0
0
0
null
0
0
0
0
0
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
abc8a53ec9a9b81ce3e52f22790801aeab432029
3,522
py
Python
runElbowMethod.py
segunolulana/simsearch
6ab80f4f2bb74e2880f8a6c2bb8efddafa8af7af
[ "MIT" ]
28
2017-02-18T14:55:00.000Z
2022-02-28T03:56:27.000Z
runElbowMethod.py
segunolulana/simsearch
6ab80f4f2bb74e2880f8a6c2bb8efddafa8af7af
[ "MIT" ]
2
2018-05-07T08:58:20.000Z
2020-01-22T20:32:13.000Z
runElbowMethod.py
segunolulana/simsearch
6ab80f4f2bb74e2880f8a6c2bb8efddafa8af7af
[ "MIT" ]
20
2017-04-27T18:26:45.000Z
2021-12-14T08:21:07.000Z
# -*- coding: utf-8 -*- """ This script uses the elbow method to help identify a good value of 'k' to use for k-means clustering. @author: Chris McCormick """ from scipy.spatial.distance import cdist, pdist from sklearn.cluster import KMeans from simsearch import SimSearch import numpy as np import matplotlib.pyplot ...
29.596639
82
0.616411
500
3,522
4.318
0.406
0.009264
0.022233
0.036128
0.171376
0.171376
0.114868
0.079667
0.079667
0.079667
0
0.022476
0.204145
3,522
119
83
29.596639
0.74777
0.35548
0
0.196078
0
0
0.154424
0
0
0
0
0.008403
0
0
null
null
0
0.098039
null
null
0.058824
0
0
0
null
0
0
0
0
0
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
abcc19533d635220cdd6268071dd3c7c03bf4690
5,448
py
Python
genomicode/luminexlib.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
9
2017-01-13T02:38:41.000Z
2021-04-08T00:44:39.000Z
genomicode/luminexlib.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
null
null
null
genomicode/luminexlib.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
4
2017-01-05T16:25:25.000Z
2019-12-12T20:07:38.000Z
""" Functions: get_tag make_upstream_probe make_downstream_probe make_probes """ BEAD2TAG = { "LUA-1" : "CTTTAATCTCAATCAATACAAATC", "LUA-2" : "CTTTATCAATACATACTACAATCA", "LUA-3" : "TACACTTTATCAAATCTTACAATC", "LUA-4" : "TACATTACCAATAATCTTCAAATC", "LUA-5" : "CAATTCAAATCACAATAATCAATC", "LUA-6" :...
36.810811
63
0.674927
472
5,448
7.70339
0.53178
0.008801
0.014026
0.017327
0.051705
0
0
0
0
0
0
0.050613
0.176762
5,448
147
64
37.061224
0.760089
0.053781
0
0.015873
0
0
0.591051
0.466926
0
0
0
0
0.031746
1
0.039683
false
0
0
0
0.079365
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
abcc280831c0e189a75b2cc68fac536d95c7ab0c
19,820
py
Python
code/AR.py
alexmill/covid19demographics-fall
b53708883a0c091f7e4eaef3d270153d88fe11f9
[ "MIT" ]
null
null
null
code/AR.py
alexmill/covid19demographics-fall
b53708883a0c091f7e4eaef3d270153d88fe11f9
[ "MIT" ]
null
null
null
code/AR.py
alexmill/covid19demographics-fall
b53708883a0c091f7e4eaef3d270153d88fe11f9
[ "MIT" ]
2
2020-09-24T01:01:11.000Z
2020-10-06T19:17:43.000Z
from bs4 import BeautifulSoup import csv from datetime import datetime import time import re import sys from urllib.request import urlopen import requests from selenium import webdriver from selenium.webdriver.common.by import By from selenium.common.exceptions import TimeoutException from selenium.webdriver.support im...
68.581315
2,147
0.699849
2,747
19,820
4.903895
0.122315
0.035632
0.056417
0.062356
0.68139
0.602925
0.533591
0.509836
0.500779
0.477544
0
0.097018
0.147124
19,820
288
2,148
68.819444
0.699894
0.1611
0
0.258883
0
0.050761
0.593778
0.003141
0
0
0
0
0
1
0.005076
false
0
0.081218
0
0.086294
0.025381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
abdc0d3ed937d36e2285f9c7e8fd298e325d8b28
414
py
Python
python/hard_python/friendbook/friendbook/p5/friend.py
ii6uu99/ipynb
d924a6926838ca5e563620cd324368a07d2c2521
[ "MIT" ]
1
2021-01-27T09:01:33.000Z
2021-01-27T09:01:33.000Z
python/hard_python/friendbook/friendbook/p5/friend.py
ii6uu99/ipynb
d924a6926838ca5e563620cd324368a07d2c2521
[ "MIT" ]
null
null
null
python/hard_python/friendbook/friendbook/p5/friend.py
ii6uu99/ipynb
d924a6926838ca5e563620cd324368a07d2c2521
[ "MIT" ]
1
2021-01-26T13:22:21.000Z
2021-01-26T13:22:21.000Z
from friend_data import mock_data def print_usage(): print("欢迎使用FriendBook,您可以输入以下命令:") print("list: 显示名单") print("张三:查询张三的情况,李四同理") print("886: 退出") print_usage() names, records = mock_data() for r in records: print(f"{r[0][1]} {r[1]} {r[2][1]} {r[3]}") while(True): cmd = input('请输入命令:') if(cmd == '886'): ...
15.923077
44
0.599034
63
414
3.857143
0.603175
0.024691
0
0
0
0
0
0
0
0
0
0.034188
0.152174
414
25
45
16.56
0.65812
0
0
0
0
0.052632
0.29927
0.060827
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.105263
0.526316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
abde628be21d5349a0c23f42a37d67063a55b7f8
944
py
Python
Introduction.py
HasturDev/PyPuzzle
e6fd6935be15b415ff93065b1a05abf68243e2d3
[ "MIT" ]
null
null
null
Introduction.py
HasturDev/PyPuzzle
e6fd6935be15b415ff93065b1a05abf68243e2d3
[ "MIT" ]
null
null
null
Introduction.py
HasturDev/PyPuzzle
e6fd6935be15b415ff93065b1a05abf68243e2d3
[ "MIT" ]
null
null
null
def Introduction(example): """Make an entry into the dictionary. When this entry is called the dictionary will print an explination of your puzzle. Make sure to include the call required to run your test.""" dictionary = {'example':'Text', 'first_test':'Simply import the test file with from tests import ...
49.684211
113
0.684322
138
944
4.666667
0.528986
0.040373
0.040373
0.052795
0
0
0
0
0
0
0
0
0.233051
944
18
114
52.444444
0.889503
0.184322
0
0
0
0
0.687335
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.25
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
abdefe80b6e035cfa3a6a4ffa9da81c46cc8b291
1,645
py
Python
hackernews_scraper/test/factories.py
llazzaro/hackernews-scraper
c0cb791b0c2b5bca92a65d1078e4e1ac8c394f2b
[ "BSD-2-Clause" ]
9
2017-05-01T20:23:55.000Z
2021-03-23T04:49:15.000Z
hackernews_scraper/test/factories.py
llazzaro/hackernews-scraper
c0cb791b0c2b5bca92a65d1078e4e1ac8c394f2b
[ "BSD-2-Clause" ]
3
2019-06-30T09:45:22.000Z
2020-05-24T17:43:25.000Z
hackernews_scraper/test/factories.py
llazzaro/hackernews-scraper
c0cb791b0c2b5bca92a65d1078e4e1ac8c394f2b
[ "BSD-2-Clause" ]
2
2017-12-19T10:12:56.000Z
2019-10-09T03:48:06.000Z
from datetime import datetime, timedelta import factory from factory.fuzzy import FuzzyText, FuzzyInteger import time class ItemFactory(factory.Factory): FACTORY_FOR = dict @factory.sequence def created_at_i(n): return int(time.time()) - n objectID = FuzzyInteger(100) title = FuzzyText(l...
24.552239
69
0.678419
206
1,645
5.31068
0.286408
0.102377
0.082267
0.11426
0.564899
0.539305
0.486289
0.486289
0.403108
0.403108
0
0.032333
0.210334
1,645
66
70
24.924242
0.809854
0
0
0.591837
0
0
0.024316
0
0
0
0
0
0
1
0.102041
false
0
0.081633
0.102041
0.897959
0
0
0
0
null
0
0
0
0
0
0
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
abebe14961661711fbc43d9bc11b078ab6eaff67
445
py
Python
rest_api/migrations/0005_auto_20201111_0954.py
InspectorIncognito/gtfs-editor
4e3245f44ec44aeb2d28aa25786dc95a3193fb81
[ "MIT" ]
2
2021-10-01T16:11:20.000Z
2022-01-15T10:55:40.000Z
rest_api/migrations/0005_auto_20201111_0954.py
InspectorIncognito/gtfs-editor
4e3245f44ec44aeb2d28aa25786dc95a3193fb81
[ "MIT" ]
3
2021-06-10T19:17:55.000Z
2022-03-05T08:37:46.000Z
rest_api/migrations/0005_auto_20201111_0954.py
InspectorIncognito/gtfs-editor
4e3245f44ec44aeb2d28aa25786dc95a3193fb81
[ "MIT" ]
1
2022-03-05T08:37:53.000Z
2022-03-05T08:37:53.000Z
# Generated by Django 3.0.7 on 2020-11-11 12:54 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('rest_api', '0004_auto_20201111_0925'), ] operations = [ migrations.AlterUniqueTogether( name='pathway', unique_together=set(...
20.227273
48
0.573034
43
445
5.790698
0.790698
0.088353
0
0
0
0
0
0
0
0
0
0.101974
0.316854
445
21
49
21.190476
0.717105
0.101124
0
0.133333
1
0
0.130653
0.057789
0
0
0
0
0
1
0
false
0
0.066667
0
0.266667
0
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
abf2887245b1a8ddf21be2910f3ea889ea7ee45e
4,522
py
Python
marker/commands/run.py
mustafaquraish/marker
2b7f08e98c6c552938754d850f7795bd2cd289ad
[ "MIT" ]
4
2020-10-03T20:15:26.000Z
2021-05-10T15:14:08.000Z
marker/commands/run.py
mustafaquraish/marker
2b7f08e98c6c552938754d850f7795bd2cd289ad
[ "MIT" ]
2
2020-06-17T22:31:15.000Z
2021-05-26T01:18:49.000Z
marker/commands/run.py
mustafaquraish/marker
2b7f08e98c6c552938754d850f7795bd2cd289ad
[ "MIT" ]
2
2020-07-28T22:43:15.000Z
2022-01-08T11:06:08.000Z
import os import sys from ..utils import pushd, listdir from ..utils import run_command from ..utils.tests import run_test from ..utils.marksheet import Marksheet from ..utils.report import generate_report import json def mark_submission(student, marker): ''' Given a student identifier, run all the test case...
35.328125
79
0.556391
513
4,522
4.805068
0.31384
0.032454
0.019473
0.010548
0
0
0
0
0
0
0
0.001835
0.27709
4,522
127
80
35.606299
0.752218
0.282839
0
0.029851
1
0
0.128366
0
0
0
0
0
0
1
0.029851
false
0
0.119403
0
0.19403
0
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
abf3a8304bab40c959594587ae6658f30a120db0
747
py
Python
src/pipelinex/extras/ops/ignite/metrics/utils.py
MarchRaBBiT/pipelinex
ea8def32a71752b667f9f3522acba3fd79102fe1
[ "Apache-2.0" ]
188
2019-11-28T17:48:28.000Z
2022-03-09T16:51:27.000Z
src/pipelinex/extras/ops/ignite/metrics/utils.py
MarchRaBBiT/pipelinex
ea8def32a71752b667f9f3522acba3fd79102fe1
[ "Apache-2.0" ]
13
2020-03-26T06:25:34.000Z
2022-03-24T01:15:57.000Z
src/pipelinex/extras/ops/ignite/metrics/utils.py
MarchRaBBiT/pipelinex
ea8def32a71752b667f9f3522acba3fd79102fe1
[ "Apache-2.0" ]
14
2020-02-11T21:51:18.000Z
2022-03-31T08:42:10.000Z
import torch from ignite.utils import to_onehot class ClassificationOutputTransform: def __init__(self, num_classes=None): self._num_classes = num_classes def __call__(self, output): if isinstance(output, tuple): y_pred, y = output elif isinstance(output, dict): ...
28.730769
74
0.578313
98
747
4.081633
0.346939
0.125
0.21
0.06
0.16
0.16
0.16
0.16
0.16
0.16
0
0.00789
0.321285
747
25
75
29.88
0.781065
0
0
0.095238
0
0
0.009371
0
0
0
0
0
0
1
0.095238
false
0
0.095238
0
0.285714
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
abfd772e382a6bcafe9e4dad3c63f63f2d1b1d17
284
py
Python
day8/macro_demo/app.py
gaohj/wh1904js
a3af38f8311f79eb9f2e08a3de16dd1e02c40714
[ "Apache-2.0" ]
null
null
null
day8/macro_demo/app.py
gaohj/wh1904js
a3af38f8311f79eb9f2e08a3de16dd1e02c40714
[ "Apache-2.0" ]
null
null
null
day8/macro_demo/app.py
gaohj/wh1904js
a3af38f8311f79eb9f2e08a3de16dd1e02c40714
[ "Apache-2.0" ]
null
null
null
from flask import Flask,render_template app = Flask(__name__) app.config['TEMPLATES_AUTO_RELOAD'] = True @app.route('/') def hello_world(): return render_template('index/index.html', username='扛把子') if __name__ == '__main__': app.run(debug=True,host='0.0.0.0',port=5002)
20.285714
62
0.711268
42
284
4.404762
0.690476
0.032432
0.032432
0
0
0
0
0
0
0
0
0.032
0.119718
284
13
63
21.846154
0.708
0
0
0
0
0
0.197183
0.073944
0
0
0
0
0
1
0.125
false
0
0.125
0.125
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
abfec0983cc620d5cc3e79af428e98ebc8707bba
2,885
py
Python
src/negotiating_agent/test_agent/TU-Delft-Collaborative-AI-Negotiation/agents/time_dependent_agent/extended_util_space.py
HahaBill/CollaborativeAI
f771cd2f34774c74c58e49a7e983d6244ea35eff
[ "MIT" ]
1
2022-02-17T19:14:46.000Z
2022-02-17T19:14:46.000Z
src/negotiating_agent/test_agent/TU-Delft-Collaborative-AI-Negotiation/agents/time_dependent_agent/extended_util_space.py
HahaBill/CollaborativeAI
f771cd2f34774c74c58e49a7e983d6244ea35eff
[ "MIT" ]
null
null
null
src/negotiating_agent/test_agent/TU-Delft-Collaborative-AI-Negotiation/agents/time_dependent_agent/extended_util_space.py
HahaBill/CollaborativeAI
f771cd2f34774c74c58e49a7e983d6244ea35eff
[ "MIT" ]
null
null
null
from geniusweb.bidspace.BidsWithUtility import BidsWithUtility from geniusweb.bidspace.Interval import Interval from geniusweb.bidspace.IssueInfo import IssueInfo from geniusweb.issuevalue.Bid import Bid from geniusweb.issuevalue.Value import Value from geniusweb.profile.utilityspace.LinearAdditive import LinearAdditiv...
36.0625
80
0.639861
314
2,885
5.802548
0.420382
0.04281
0.034577
0.01427
0.021954
0.021954
0
0
0
0
0
0.002427
0.285962
2,885
79
81
36.518987
0.882039
0.287002
0
0
0
0
0
0
0
0
0
0.012658
0
1
0.139535
false
0
0.209302
0.046512
0.465116
0
0
0
0
null
0
0
0
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
28019c1e7804ea2ee4a11494378b861ba926e82c
575
py
Python
api/auditable/models.py
arunrapolu4491/representation-grant-app
e9e70cb095be68211539a533708023c8842cded4
[ "Apache-2.0" ]
null
null
null
api/auditable/models.py
arunrapolu4491/representation-grant-app
e9e70cb095be68211539a533708023c8842cded4
[ "Apache-2.0" ]
null
null
null
api/auditable/models.py
arunrapolu4491/representation-grant-app
e9e70cb095be68211539a533708023c8842cded4
[ "Apache-2.0" ]
null
null
null
from django.db import models # Create your models here. from django.conf import settings class Auditable(models.Model): CREATE_TIMESTAMP = models.DateTimeField(auto_now_add=True, blank=True, null=True) # CREATE_USER = models.ForeignKey('User', related_name='%(app_label)s_%(class)s_CREATE_USER', blank=True, n...
35.9375
120
0.744348
81
575
5.074074
0.382716
0.087591
0.126521
0.16545
0.647202
0.243309
0.243309
0.243309
0.243309
0.243309
0
0
0.133913
575
15
121
38.333333
0.825301
0.441739
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.857143
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f9eb9c5cadc2e0246b2d78002c82212167ce6cfe
2,772
py
Python
pta/__init__.py
jepler/pta
e9ef90fa63cd8f9729adae70b98f9e1fe8532e28
[ "BSD-3-Clause", "Unlicense" ]
2
2015-11-01T01:38:38.000Z
2021-10-02T21:04:31.000Z
pta/__init__.py
jepler/pta
e9ef90fa63cd8f9729adae70b98f9e1fe8532e28
[ "BSD-3-Clause", "Unlicense" ]
null
null
null
pta/__init__.py
jepler/pta
e9ef90fa63cd8f9729adae70b98f9e1fe8532e28
[ "BSD-3-Clause", "Unlicense" ]
1
2016-07-06T12:55:28.000Z
2016-07-06T12:55:28.000Z
# -*- python coding: utf-8 -*- # # Copyright © 2014 Jeff Epler http://emergent.unpythonic.net # # This program is is licensed under a disjunctive dual license giving you # the choice of one of the two following sets of free software/open source # licensing terms: # # * GNU General Public License (GPL), version 2.0 o...
42
79
0.727633
395
2,772
5.098734
0.491139
0.014896
0.031778
0.04568
0.159881
0.095333
0.067527
0.067527
0.067527
0.067527
0
0.009677
0.217172
2,772
65
80
42.646154
0.917972
0.945887
0
0
0
0
0.081395
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f9ef1a18884feea74da958f13026022e83d72f13
5,740
py
Python
contrib/NumSciPy/Array.py
celiafish/VisTrails
d8cb575b8b121941de190fe608003ad1427ef9f6
[ "BSD-3-Clause" ]
83
2015-01-05T14:50:50.000Z
2021-09-17T19:45:26.000Z
contrib/NumSciPy/Array.py
celiafish/VisTrails
d8cb575b8b121941de190fe608003ad1427ef9f6
[ "BSD-3-Clause" ]
254
2015-01-02T20:39:19.000Z
2018-11-28T17:16:44.000Z
contrib/NumSciPy/Array.py
celiafish/VisTrails
d8cb575b8b121941de190fe608003ad1427ef9f6
[ "BSD-3-Clause" ]
40
2015-04-17T16:46:36.000Z
2021-09-28T22:43:24.000Z
import core.modules import core.modules.module_registry from core.modules.vistrails_module import Module, ModuleError import numpy class ArrayModule(object): my_namespace = 'numpy|array' class NDArray(Module, ArrayModule): """ Container class for the numpy.ndarray class """ def __init__(self): Mo...
22.868526
74
0.645122
769
5,740
4.704811
0.184655
0.116915
0.1534
0.126036
0.2178
0.079326
0.053897
0.045329
0.045329
0.045329
0
0.003476
0.248258
5,740
250
75
22.96
0.834994
0.143554
0
0.074074
0
0
0.005199
0
0
0
0
0
0
0
null
null
0
0.02963
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f9f736be0c3e9a36b7e5f7dc778d98b1a5a4e1bb
839
py
Python
configRes.py
artsiom-sinitski/ETH_PricePrediction_Model
1d46fb708228e611b0e18b202d8f3815e4e2ee90
[ "MIT" ]
3
2019-08-19T15:49:12.000Z
2021-04-02T00:20:36.000Z
configRes.py
artsiom-sinitski/ETH_PricePrediction_Model
1d46fb708228e611b0e18b202d8f3815e4e2ee90
[ "MIT" ]
null
null
null
configRes.py
artsiom-sinitski/ETH_PricePrediction_Model
1d46fb708228e611b0e18b202d8f3815e4e2ee90
[ "MIT" ]
null
null
null
""" Configuration to get the same results every time. https://keras.io/getting-started/faq/#how-can-i-obtain-reproducible-results-using-keras-during-development """ import os import random as rn import numpy as np import tensorflow as tf from keras import backend as K # Set up random seed to # get the same results ...
25.424242
106
0.772348
141
839
4.475177
0.546099
0.050713
0.063391
0.038035
0.088748
0.088748
0.088748
0
0
0
0
0.012146
0.116806
839
33
107
25.424242
0.839406
0.381406
0
0
0
0
0.108481
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e60092e5cc4d770a8a759f1d7b2bd759b3164f52
451
py
Python
accounts/urls.py
horizonltd/corona
fd7302aae313e0767a73ffd772553cefad71acaf
[ "MIT" ]
null
null
null
accounts/urls.py
horizonltd/corona
fd7302aae313e0767a73ffd772553cefad71acaf
[ "MIT" ]
10
2020-03-31T01:56:33.000Z
2022-02-10T11:23:42.000Z
accounts/urls.py
horizonltd/corona
fd7302aae313e0767a73ffd772553cefad71acaf
[ "MIT" ]
null
null
null
from rest_framework import routers from accounts.views import UserViewSet from django.urls import path, include from rest_framework_jwt.views import refresh_jwt_token, obtain_jwt_token router = routers.DefaultRouter() router.register('users', UserViewSet) urlpatterns = [ path('', include(router.urls)), #path(...
30.066667
72
0.758315
59
451
5.59322
0.40678
0.09697
0.10303
0
0
0
0
0
0
0
0
0
0.117517
451
15
73
30.066667
0.829146
0.090909
0
0
0
0
0.078049
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e6013ff2427a26b036209cb10faa383cbe4ab15c
2,069
py
Python
users/serializers.py
prasenjitaich/UserAuthenticationApp
5571bfa69e1de0071974e2c3f590fe7345829297
[ "MIT" ]
null
null
null
users/serializers.py
prasenjitaich/UserAuthenticationApp
5571bfa69e1de0071974e2c3f590fe7345829297
[ "MIT" ]
null
null
null
users/serializers.py
prasenjitaich/UserAuthenticationApp
5571bfa69e1de0071974e2c3f590fe7345829297
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import User, ApiKey class UserSerializer(serializers.ModelSerializer): """ serializer to handle turning our `User` object into something that can be JSONified and sent to the client """ password = serializers.CharField(write_only=True) def c...
35.067797
113
0.645239
235
2,069
5.548936
0.340426
0.139571
0.048313
0.052914
0.328988
0.240798
0.199387
0.142638
0.07362
0.07362
0
0
0.253746
2,069
58
114
35.672414
0.84456
0.292895
0
0.153846
0
0
0.148887
0
0
0
0
0
0
1
0.115385
false
0.192308
0.076923
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e603a353e99ebdb35c40436fa5568a37707666df
652
py
Python
main/courses/exams/actions.py
mahkhaled/class2go
b32cb441e8d96c257f70cb61274812ebeed2649d
[ "Apache-2.0" ]
null
null
null
main/courses/exams/actions.py
mahkhaled/class2go
b32cb441e8d96c257f70cb61274812ebeed2649d
[ "Apache-2.0" ]
null
null
null
main/courses/exams/actions.py
mahkhaled/class2go
b32cb441e8d96c257f70cb61274812ebeed2649d
[ "Apache-2.0" ]
null
null
null
from django.http import HttpResponse, Http404 from django.shortcuts import render, redirect from courses.actions import auth_is_course_admin_view_wrapper from courses.common_page_data import get_common_page_data from courses.exams.forms import * @auth_is_course_admin_view_wrapper def delete_exam(request): ...
32.6
127
0.751534
90
652
5.166667
0.433333
0.086022
0.12043
0.077419
0.146237
0.146237
0.146237
0
0
0
0
0.010949
0.159509
652
19
128
34.315789
0.837591
0
0
0
0
0
0.07109
0
0
0
0
0
0
1
0.066667
false
0
0.333333
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e60eac3427ab4793447ae9b9479bec8e3041a694
1,106
py
Python
tests/data_structures/test_heap.py
frapa/py_data_structures
ad6f0cc35a6cc896f31d94bc7b20054015376173
[ "MIT" ]
null
null
null
tests/data_structures/test_heap.py
frapa/py_data_structures
ad6f0cc35a6cc896f31d94bc7b20054015376173
[ "MIT" ]
null
null
null
tests/data_structures/test_heap.py
frapa/py_data_structures
ad6f0cc35a6cc896f31d94bc7b20054015376173
[ "MIT" ]
null
null
null
from pytest import raises, mark import numpy as np from src.data_structures.heap import Heap, HeapEmptyError def test_heap_peek_error(): heap = Heap() with raises(HeapEmptyError): heap.peek() def test_heap_insert(): heap = Heap() heap.insert(1) heap.insert(4) heap.insert(5) hea...
17.83871
57
0.615732
161
1,106
4.111801
0.267081
0.21148
0.083082
0.054381
0.256798
0.256798
0.256798
0.256798
0.256798
0.256798
0
0.061831
0.239602
1,106
61
58
18.131148
0.725327
0
0
0.414634
0
0
0.003617
0
0
0
0
0
0.243902
1
0.121951
false
0
0.073171
0
0.195122
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e60f060daa00220d08c03f943fca35893ec75215
2,632
py
Python
packages/w3af/w3af/plugins/attack/payloads/payloads/tests/payload_test_helper.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
tools/w3af/w3af/plugins/attack/payloads/payloads/tests/payload_test_helper.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/w3af/w3af/plugins/attack/payloads/payloads/tests/payload_test_helper.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
""" payload_test_helper.py Copyright 2012 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 of the License. w3af is distributed in the h...
30.964706
77
0.645137
348
2,632
4.729885
0.448276
0.018226
0.03949
0.045565
0.123937
0.034022
0
0
0
0
0
0.015034
0.267097
2,632
84
78
31.333333
0.838258
0.380699
0
0
0
0
0.098299
0.036547
0
0
0
0.011905
0.078947
1
0.105263
false
0
0.078947
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
1
0
0
0
0
0
0
0
0
0
0
1
e61a2c992df7c50bd393a530f65696aa7da90fe7
655
py
Python
Repeated_Substring_Pattern.py
thydeyx/LeetCode-Python
03296dfa37910ef13b0726bde5e757b52f1590d7
[ "MIT" ]
1
2017-05-21T04:28:37.000Z
2017-05-21T04:28:37.000Z
Repeated_Substring_Pattern.py
thydeyx/LeetCode-Python
03296dfa37910ef13b0726bde5e757b52f1590d7
[ "MIT" ]
null
null
null
Repeated_Substring_Pattern.py
thydeyx/LeetCode-Python
03296dfa37910ef13b0726bde5e757b52f1590d7
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # # Author : TangHanYi # E-mail : thydeyx@163.com # Create Date : 2016-11-21 05:13:40 PM # Last modified : 2016-11-21 05:31:40 PM # File Name : Repeated_Substring_Pattern.py # Desc : class Solution(object): def repeatedSubstringPattern(self, string): s = '$' + stri...
21.833333
47
0.554198
107
655
3.299065
0.514019
0.016997
0.045326
0.056657
0.033994
0.033994
0
0
0
0
0
0.086316
0.274809
655
29
48
22.586207
0.656842
0.332824
0
0
0
0
0.049065
0
0
0
0
0
0
0
null
null
0
0
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e61e78de024ad3875eae3264ca01367ced05ba7f
470
py
Python
tests/conftest.py
fubuloubu/evm-asm
de975c4a138892b12ab96080311067f241affba2
[ "Apache-2.0" ]
7
2021-01-24T18:17:33.000Z
2021-02-11T19:30:27.000Z
tests/conftest.py
manifoldfinance/evm-asm
de975c4a138892b12ab96080311067f241affba2
[ "Apache-2.0" ]
3
2021-03-07T16:09:00.000Z
2022-03-05T17:25:39.000Z
tests/conftest.py
manifoldfinance/evm-asm
de975c4a138892b12ab96080311067f241affba2
[ "Apache-2.0" ]
2
2021-05-05T03:41:14.000Z
2021-11-16T22:20:15.000Z
import pytest from eth.vm import forks as pyevm_forks from evm_asm import evm_opcodes @pytest.fixture(scope="session") def w3(): from web3.auto.infura.mainnet import w3 yield w3 @pytest.fixture(params=[*evm_opcodes.forks()]) def fork_name(request): yield request.param @pytest.fixture def fork_expect...
20.434783
65
0.759574
69
470
4.971014
0.449275
0.093294
0.087464
0
0
0
0
0
0
0
0
0.009852
0.13617
470
22
66
21.363636
0.834975
0
0
0
0
0
0.07234
0.057447
0
0
0
0
0
1
0.214286
false
0
0.285714
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e6217520a0013e155e222399c1fd619338ae8308
3,951
py
Python
Documentation/Scripts/generateSwaggerApi.py
asaaki/ArangoDB
a1d4f6f33c09ffd6f67744dbe748e83dc0fe6b82
[ "Apache-2.0" ]
15
2019-08-08T02:06:36.000Z
2019-10-15T17:52:58.000Z
Documentation/Scripts/generateSwaggerApi.py
asaaki/ArangoDB
a1d4f6f33c09ffd6f67744dbe748e83dc0fe6b82
[ "Apache-2.0" ]
null
null
null
Documentation/Scripts/generateSwaggerApi.py
asaaki/ArangoDB
a1d4f6f33c09ffd6f67744dbe748e83dc0fe6b82
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ################################################################################ ### @brief creates a Swagger JSON api file ### ### @file ### ### DISCLAIMER ### ### Copyright by triAGENS GmbH - All rights reserved. ### ### The Programs (which include both the software and doc...
34.964602
123
0.663123
484
3,951
5.413223
0.440083
0.054962
0.073282
0.024427
0.027481
0
0
0
0
0
0
0.004148
0.145786
3,951
112
124
35.276786
0.772148
0.399139
0
0
0
0
0.494067
0.353583
0
0
0
0
0
0
null
null
0
0.037037
null
null
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e628a9934f3285be25b34e1a29eb4195e651ffcb
309
py
Python
covid_tracker/Untitled-2.py
KahfiA/covid-tracker-backend
a1f627dc7e20d8b23aff7762b55e1e44553e98f2
[ "Apache-2.0" ]
null
null
null
covid_tracker/Untitled-2.py
KahfiA/covid-tracker-backend
a1f627dc7e20d8b23aff7762b55e1e44553e98f2
[ "Apache-2.0" ]
null
null
null
covid_tracker/Untitled-2.py
KahfiA/covid-tracker-backend
a1f627dc7e20d8b23aff7762b55e1e44553e98f2
[ "Apache-2.0" ]
null
null
null
def create_position(db: Session, position_id: int, position = schemas.PositionCreate): db_position = models.Person(name = position.name, age = position.age, gender = position.gender, condition = position.condition) db.add(db_position) db.commit() db.refresh(db_position) return db_position
51.5
131
0.744337
40
309
5.6
0.475
0.178571
0
0
0
0
0
0
0
0
0
0
0.148867
309
6
132
51.5
0.851711
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e62c8976d8b4ba9e927d75d0866040cb7bb9274d
6,815
py
Python
utils.py
WeiChengTseng/NCTU_DL_HW1
e6d3b81c4bf00a1ef1846d9bf84438fabc1e1216
[ "MIT" ]
1
2022-01-11T06:00:09.000Z
2022-01-11T06:00:09.000Z
utils.py
WeiChengTseng/NCTU_DL_HW1
e6d3b81c4bf00a1ef1846d9bf84438fabc1e1216
[ "MIT" ]
null
null
null
utils.py
WeiChengTseng/NCTU_DL_HW1
e6d3b81c4bf00a1ef1846d9bf84438fabc1e1216
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import os import matplotlib.pyplot as plt import scipy as sp import copy import tqdm from scipy import signal from solver import Solver from model import FullyConnectedNet try: plt.style.use('gadfly') except: print('fail to use gadfly') pass np.random.seed(0) # plt.s...
26.312741
91
0.550404
985
6,815
3.693401
0.159391
0.076965
0.084662
0.092358
0.683617
0.658604
0.642111
0.620121
0.607477
0.601154
0
0.039146
0.299046
6,815
258
92
26.414729
0.72242
0.031695
0
0.591346
0
0
0.069369
0
0
0
0
0
0
1
0.033654
false
0.004808
0.048077
0.004808
0.120192
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e62f79b5af5db4796283df7a00409253727c97f5
1,071
py
Python
python/login_system/services/user_services.py
gio-shara-code/console_apps
ec94c6a1ce25db711dab5306efbab33ec1691c96
[ "MIT" ]
null
null
null
python/login_system/services/user_services.py
gio-shara-code/console_apps
ec94c6a1ce25db711dab5306efbab33ec1691c96
[ "MIT" ]
null
null
null
python/login_system/services/user_services.py
gio-shara-code/console_apps
ec94c6a1ce25db711dab5306efbab33ec1691c96
[ "MIT" ]
null
null
null
import json from os import confstr from enums.instance import Instance from models.user import User from services import file_services def get_user_by_email(email: str) -> User: users = file_services.get_all_users() for user in users: if(user["email"] == email): return User.from_json(user)...
28.945946
59
0.706816
156
1,071
4.564103
0.224359
0.117978
0.143258
0.11236
0.58427
0.58427
0.58427
0.539326
0.539326
0.539326
0
0
0.19888
1,071
37
60
28.945946
0.829837
0
0
0.517241
0
0
0.027985
0
0
0
0
0
0
1
0.137931
false
0.068966
0.172414
0
0.448276
0
0
0
0
null
0
0
0
0
0
0
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
e631e851696b0aeea55a057a3ba890e2f98b0459
850
py
Python
port_monitor/migrations/0002_auto_20190522_0341.py
tzing/telnet-monitor
b92e4fca99eaba72bf30397656d70251034fd579
[ "MIT" ]
null
null
null
port_monitor/migrations/0002_auto_20190522_0341.py
tzing/telnet-monitor
b92e4fca99eaba72bf30397656d70251034fd579
[ "MIT" ]
2
2019-12-04T22:29:00.000Z
2020-06-05T20:07:26.000Z
port_monitor/migrations/0002_auto_20190522_0341.py
tzing/telnet-monitor
b92e4fca99eaba72bf30397656d70251034fd579
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-05-22 03:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('port_monitor', '0001_initial'), ] operations = [ migrations.AddField( model_name='monitortarget', name='order', ...
29.310345
149
0.601176
89
850
5.629213
0.606742
0.053892
0.131737
0.155689
0.183633
0.183633
0
0
0
0
0
0.041051
0.283529
850
28
150
30.357143
0.781609
0.052941
0
0.363636
1
0
0.199253
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e644558e96378c15c4dcf63a23697a21f79eca93
1,496
py
Python
assignments/mammals.py
noelleclement/pythoncourse
37d6b26aaf7c8d4537f13fd1b92bfa2d5e4d5128
[ "MIT" ]
null
null
null
assignments/mammals.py
noelleclement/pythoncourse
37d6b26aaf7c8d4537f13fd1b92bfa2d5e4d5128
[ "MIT" ]
null
null
null
assignments/mammals.py
noelleclement/pythoncourse
37d6b26aaf7c8d4537f13fd1b92bfa2d5e4d5128
[ "MIT" ]
null
null
null
#### create a hierarchy of mammals #### class Mammal: def __init__ (self, name): self.name = name def speak (self): print('Hi! I am', self.name) class LandMammal (Mammal): def __init__ (self, name): super().__init__(name) def walk (self): print('Look at me, me is ...
19.179487
105
0.606952
185
1,496
4.583784
0.291892
0.09434
0.103774
0.141509
0.502358
0.477594
0.477594
0.329009
0.329009
0
0
0
0.259358
1,496
77
106
19.428571
0.765343
0.019385
0
0.348837
0
0
0.164722
0
0
0
0
0
0
1
0.372093
false
0
0
0
0.55814
0.186047
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e646018485b2132aa93d67b7142ef5cfdea1f676
12,938
py
Python
ufssanalyzer/electrical/eNetwork.py
CIDARLAB/SS-Analyzer
9deb76e78f55810b3819304d198122f7c4e88e88
[ "BSD-2-Clause" ]
null
null
null
ufssanalyzer/electrical/eNetwork.py
CIDARLAB/SS-Analyzer
9deb76e78f55810b3819304d198122f7c4e88e88
[ "BSD-2-Clause" ]
2
2021-03-29T21:59:43.000Z
2021-03-29T22:00:25.000Z
ufssanalyzer/electrical/eNetwork.py
CIDARLAB/SS-Analyzer
9deb76e78f55810b3819304d198122f7c4e88e88
[ "BSD-2-Clause" ]
null
null
null
from typing import Dict, List, Tuple import networkx as nx from parchmint.component import Component from parchmint.connection import Connection from parchmint.target import Target from ufssanalyzer.config import get_flowrate, get_inlets_outlets, get_pressure from ufssanalyzer.electrical.constants import IN from ufss...
39.565749
108
0.64639
1,573
12,938
5.208519
0.202797
0.029293
0.019651
0.024777
0.158916
0.123764
0.070792
0.059319
0.028317
0.028317
0
0.001744
0.291081
12,938
326
109
39.687117
0.891518
0.399985
0
0.119403
0
0
0.056727
0
0
0
0
0.018405
0.007463
1
0.097015
false
0
0.074627
0
0.223881
0.08209
0
0
0
null
0
0
0
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
e6488946d80625880f04c55ebd309669b199ed3f
5,430
py
Python
tests/tform_test.py
danielkychen/rasl
75cea33a615e6ebe0e7f6d43d93bf81c8077f7e4
[ "MIT" ]
49
2016-04-18T17:22:26.000Z
2021-10-31T01:31:35.000Z
tests/tform_test.py
danielkychen/rasl
75cea33a615e6ebe0e7f6d43d93bf81c8077f7e4
[ "MIT" ]
3
2018-05-11T11:59:25.000Z
2018-05-23T14:21:56.000Z
tests/tform_test.py
danielkychen/rasl
75cea33a615e6ebe0e7f6d43d93bf81c8077f7e4
[ "MIT" ]
12
2016-11-08T08:31:02.000Z
2021-04-23T18:12:09.000Z
# pylint:disable=import-error """test transforms """ from __future__ import division, print_function import numpy as np from rasl.toolbox import (projective_matrix_to_parameters, parameters_to_projective_matrix) from rasl import (EuclideanTransform, SimilarityTransform, AffineTransform, ...
39.347826
87
0.656906
737
5,430
4.710991
0.112619
0.073733
0.057028
0.084677
0.761521
0.711118
0.684044
0.652362
0.631336
0.5553
0
0.046218
0.199079
5,430
137
88
39.635037
0.752127
0.027993
0
0.487179
0
0
0.019943
0
0
0
0
0
0.307692
1
0.136752
false
0
0.034188
0.008547
0.179487
0.008547
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e652a4134415eb76b263a8644da6298cfaaa7dc1
8,199
py
Python
demo/model.py
JarryShaw/darc
0fc8782bb2f641ca3734c94666cbc36e3d9cb09f
[ "BSD-3-Clause" ]
24
2020-07-08T06:16:52.000Z
2022-02-19T00:33:34.000Z
demo/model.py
JarryShaw/darc
0fc8782bb2f641ca3734c94666cbc36e3d9cb09f
[ "BSD-3-Clause" ]
42
2020-05-29T12:56:10.000Z
2022-03-07T17:12:08.000Z
demo/model.py
JarryShaw/darc
0fc8782bb2f641ca3734c94666cbc36e3d9cb09f
[ "BSD-3-Clause" ]
7
2020-07-11T18:57:24.000Z
2022-02-01T21:46:30.000Z
# -*- coding: utf-8 -*- # pylint: disable=ungrouped-imports import enum import os from typing import TYPE_CHECKING import peewee import playhouse.mysql_ext import playhouse.shortcuts if TYPE_CHECKING: from datetime import datetime from enum import IntEnum from typing import Any, Dict, List, Optional # d...
29.387097
124
0.628003
960
8,199
5.319792
0.230208
0.005483
0.014098
0.023497
0.481888
0.401606
0.354611
0.332681
0.317407
0.317407
0
0.003514
0.23637
8,199
278
125
29.492806
0.812171
0.43298
0
0.25
0
0
0.074194
0
0
0
0
0
0
1
0.06
false
0
0.09
0
0.76
0
0
0
0
null
0
0
0
0
0
0
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
e65f04bb5533a96c179a81f423904e8f31cdb8b0
189
py
Python
nmappyscan.py
fch310/nmappyscan
2f15fa8d367d134805e2fea9974405ad7e4f6550
[ "CC0-1.0" ]
null
null
null
nmappyscan.py
fch310/nmappyscan
2f15fa8d367d134805e2fea9974405ad7e4f6550
[ "CC0-1.0" ]
null
null
null
nmappyscan.py
fch310/nmappyscan
2f15fa8d367d134805e2fea9974405ad7e4f6550
[ "CC0-1.0" ]
null
null
null
#Automate script for scan IP with nmap value = input('Enter the file name: ') file = open (value,"r") content = file.readlines() for line in content: IP = line.split() print(IP)
17.181818
38
0.661376
29
189
4.310345
0.724138
0
0
0
0
0
0
0
0
0
0
0
0.21164
189
10
39
18.9
0.838926
0.195767
0
0
0
0
0.146667
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c6fef7663255497f14e04d58946238d551397d6a
231
py
Python
scisalt/accelphys/__init__.py
joelfrederico/mytools
7bf57c49c7dde0a8b0aa337fbd2fbd527ce7a67f
[ "MIT" ]
1
2021-03-31T23:27:09.000Z
2021-03-31T23:27:09.000Z
scisalt/accelphys/__init__.py
joelfrederico/mytools
7bf57c49c7dde0a8b0aa337fbd2fbd527ce7a67f
[ "MIT" ]
null
null
null
scisalt/accelphys/__init__.py
joelfrederico/mytools
7bf57c49c7dde0a8b0aa337fbd2fbd527ce7a67f
[ "MIT" ]
null
null
null
# Author: Joel Frederico """ Calculates various useful quantities in accelerator physics. """ __all__ = [ 'BDES2K', 'K2BDES', 'fitimageslice' ] from .BDES2K import * # noqa from .fitimageslice import fitimageslice
19.25
60
0.692641
22
231
7.090909
0.772727
0
0
0
0
0
0
0
0
0
0
0.016304
0.203463
231
11
61
21
0.831522
0.385281
0
0
0
0
0.18797
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1