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
6d204183e5cd741d9554eb163777278f904f7099
3,380
py
Python
mowl/graph/walking_rdf_and_owl/triples.py
bio-ontology-research-group/mlwo
cbe390d37a34355fe9cb969149a5c7775c5bb46a
[ "BSD-3-Clause" ]
null
null
null
mowl/graph/walking_rdf_and_owl/triples.py
bio-ontology-research-group/mlwo
cbe390d37a34355fe9cb969149a5c7775c5bb46a
[ "BSD-3-Clause" ]
15
2019-09-04T07:49:40.000Z
2022-02-10T11:31:17.000Z
mowl/graph/walking_rdf_and_owl/triples.py
bio-ontology-research-group/mlwo
cbe390d37a34355fe9cb969149a5c7775c5bb46a
[ "BSD-3-Clause" ]
1
2019-09-03T03:31:28.000Z
2019-09-03T03:31:28.000Z
from random import random class Triplet(): def __init__(self, entity_1, relation, entity_2, score = random()): self.__entity_1 = entity_1 self.__relation = relation self.__entity_2 = entity_2 self.__score = float(score) # for developing purposes def __repr__(self): ...
28.888889
195
0.589941
450
3,380
4.135556
0.224444
0.07899
0.035465
0.045137
0.224073
0.144546
0.112843
0.036539
0
0
0
0.02209
0.30355
3,380
117
196
28.888889
0.768479
0.157396
0
0.278481
0
0
0.009243
0
0
0
0
0
0
1
0.202532
false
0
0.012658
0.088608
0.405063
0
0
0
0
null
0
0
0
0
0
0
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
6d20ccc88bf55d948a139763f89ca798ffc5719d
1,225
py
Python
src/websitemailer/screenshots.py
city-of-baltimore/website-mailer
178bb01ccea2a7887fc03c50b97ef1ad4f5ae986
[ "MIT" ]
null
null
null
src/websitemailer/screenshots.py
city-of-baltimore/website-mailer
178bb01ccea2a7887fc03c50b97ef1ad4f5ae986
[ "MIT" ]
null
null
null
src/websitemailer/screenshots.py
city-of-baltimore/website-mailer
178bb01ccea2a7887fc03c50b97ef1ad4f5ae986
[ "MIT" ]
null
null
null
"""Takes a screenshot of a webpage""" from pathlib import Path from tempfile import NamedTemporaryFile from time import sleep from loguru import logger from selenium import webdriver # type: ignore from selenium.webdriver.chrome.options import Options # type: ignore def take_screenshot(url, driver_path, dest_file:...
37.121212
102
0.723265
175
1,225
4.977143
0.422857
0.064294
0.027555
0.036739
0
0
0
0
0
0
0
0.001022
0.201633
1,225
32
103
38.28125
0.889571
0.346939
0
0
0
0
0.108179
0
0
0
0
0
0
1
0.052632
false
0
0.315789
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
0
0
0
1
0
0
0
0
1
6d217ceadcf8a03c2628a8cb1265b1858ebe33bf
619
py
Python
tests/integration_tests/edges_tests/test_copy.py
lycantropos/seidel
d4514f1041fe64c7faf3fd9a3f61769449070b51
[ "MIT" ]
3
2020-07-06T04:28:19.000Z
2021-04-20T07:50:53.000Z
tests/integration_tests/edges_tests/test_copy.py
lycantropos/seidel
d4514f1041fe64c7faf3fd9a3f61769449070b51
[ "MIT" ]
null
null
null
tests/integration_tests/edges_tests/test_copy.py
lycantropos/seidel
d4514f1041fe64c7faf3fd9a3f61769449070b51
[ "MIT" ]
null
null
null
import copy from hypothesis import given from tests.utils import (BoundPortedEdgesPair, are_bound_ported_edges_equal) from . import strategies @given(strategies.edges_pairs) def test_shallow(edges_pair: BoundPortedEdgesPair) -> None: bound, ported = edges_pair assert are_bound_port...
26.913043
76
0.714055
73
619
5.780822
0.315068
0.130332
0.189573
0.135071
0.620853
0.563981
0.412322
0.412322
0.412322
0.412322
0
0
0.210016
619
22
77
28.136364
0.862986
0
0
0.285714
0
0
0
0
0
0
0
0
0.142857
1
0.142857
false
0
0.285714
0
0.428571
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
6d259abd8da45ace7606cac7534ce7fe136ed21c
1,181
py
Python
back-end/src/db-fixer.py
gfxcc/san11-platform-back-end
74f60d201e21396c5c8601ddc404077ebd97871f
[ "MIT" ]
1
2022-03-13T04:24:00.000Z
2022-03-13T04:24:00.000Z
back-end/src/db-fixer.py
gfxcc/san11-platform-back-end
74f60d201e21396c5c8601ddc404077ebd97871f
[ "MIT" ]
null
null
null
back-end/src/db-fixer.py
gfxcc/san11-platform-back-end
74f60d201e21396c5c8601ddc404077ebd97871f
[ "MIT" ]
null
null
null
import logging import os from typing import Optional from handler.model.base.base_db import ListOptions from handler.model.model_activity import ModelActivity from handler.model.model_user import ModelUser from handler.util.time_util import get_now def _get_earlist_activity(user: ModelUser) -> Optional[ModelActivity...
32.805556
93
0.740051
163
1,181
5.110429
0.392638
0.096038
0.057623
0.05042
0.067227
0
0
0
0
0
0
0.00203
0.165961
1,181
35
94
33.742857
0.843655
0.144793
0
0
0
0
0.057809
0
0
0
0
0
0
1
0.136364
false
0
0.318182
0
0.5
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6d292b42033212ab18a570d3499c1c82bd8e4752
4,599
py
Python
test/test_tracker.py
TechnicallyWilliams/sync-week-austin-2018
6b1b4f5ebf34253a7694cceaae8eda450c926312
[ "MIT" ]
null
null
null
test/test_tracker.py
TechnicallyWilliams/sync-week-austin-2018
6b1b4f5ebf34253a7694cceaae8eda450c926312
[ "MIT" ]
null
null
null
test/test_tracker.py
TechnicallyWilliams/sync-week-austin-2018
6b1b4f5ebf34253a7694cceaae8eda450c926312
[ "MIT" ]
null
null
null
import cv2 import os import sys import unittest import threading if __name__ == '__main__': sys.path.append(os.path.join(os.path.dirname(__file__), '..')) import leapvision.tracker class SingleObjectTrackerTest(unittest.TestCase): def setUp(self): self.video_path = os.path.join( os.path.d...
34.840909
87
0.554903
470
4,599
5.310638
0.259574
0.064103
0.076923
0.064904
0.379006
0.336138
0.300881
0.279247
0.279247
0.279247
0
0.045262
0.332246
4,599
131
88
35.10687
0.767502
0
0
0.428571
0
0
0.034005
0
0
0
0.001259
0
0.10989
0
null
null
0
0.065934
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
6d29a3925f9a06b7fb05c693887c0a51b39f8c6f
2,228
py
Python
Python/main/store.py
ihongs/HongsCode
ade690b187acafdb67ee861c941c4c8a3d7434c0
[ "MIT" ]
1
2018-12-20T10:05:26.000Z
2018-12-20T10:05:26.000Z
Python/main/store.py
ihongs/HongsCode
ade690b187acafdb67ee861c941c4c8a3d7434c0
[ "MIT" ]
null
null
null
Python/main/store.py
ihongs/HongsCode
ade690b187acafdb67ee861c941c4c8a3d7434c0
[ "MIT" ]
null
null
null
#!/usr/bin/python #coding=utf-8 # 目录文件备份工具 # 用于备份特定的数据目录或文件 # 作者: kevin.hongs@gmail.com # 修订: 2016/03/03 import os import re import sys import time import shutil import tarfile from getopt import getopt if __name__ == "__main__": def cmd_help(): print "Usage: cleat.py SRC_PATH DST_PATH" print "A...
22.969072
81
0.467684
313
2,228
3.27476
0.396166
0.034146
0.039024
0.054634
0.11122
0.052683
0.052683
0
0
0
0
0.013649
0.375224
2,228
96
82
23.208333
0.722701
0.048025
0
0.166667
0
0.013889
0.268339
0.016091
0
0
0
0
0
0
null
null
0
0.097222
null
null
0.194444
0
0
0
null
0
0
0
0
0
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
6d2dd5987d25fe961e9ce14c281afd1822603edd
415
py
Python
mxonline-master/untitled1/apps/courses/migrations/0005_video_url.py
zzrose/MXonline
3274195f748517a47dfa7e47f7fa164f9bb34c82
[ "Apache-2.0" ]
1
2019-02-25T23:17:32.000Z
2019-02-25T23:17:32.000Z
mxonline-master/untitled1/apps/courses/migrations/0005_video_url.py
zzrose/MXonline
3274195f748517a47dfa7e47f7fa164f9bb34c82
[ "Apache-2.0" ]
null
null
null
mxonline-master/untitled1/apps/courses/migrations/0005_video_url.py
zzrose/MXonline
3274195f748517a47dfa7e47f7fa164f9bb34c82
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.1 on 2018-02-20 05:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('courses', '0004_course_tag'), ] operations = [ migrations.AddField( model_name='video', name='url', fiel...
21.842105
93
0.6
46
415
5.304348
0.826087
0.07377
0
0
0
0
0
0
0
0
0
0.07309
0.274699
415
18
94
23.055556
0.737542
0.108434
0
0
1
0
0.116848
0
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
6d37521917a96e585d2c7b2a5706f3b67f69c2e6
476
py
Python
app/overpass/nodes.py
wolfhardfehre/guide-io
cf076bad0634bcaf4ad0be4822539b7c8d254e76
[ "MIT" ]
null
null
null
app/overpass/nodes.py
wolfhardfehre/guide-io
cf076bad0634bcaf4ad0be4822539b7c8d254e76
[ "MIT" ]
null
null
null
app/overpass/nodes.py
wolfhardfehre/guide-io
cf076bad0634bcaf4ad0be4822539b7c8d254e76
[ "MIT" ]
null
null
null
from app.overpass.overpass import Overpass from app.overpass.location import Location class Nodes(Overpass): TYPE = 'node' if __name__ == '__main__': import pandas as pd pd.options.display.max_columns = None pd.options.display.width = 800 nodes = Nodes() nodes.location = Location(13.383333,...
21.636364
51
0.682773
59
476
5.355932
0.610169
0.044304
0.094937
0
0
0
0
0
0
0
0
0.060686
0.203782
476
21
52
22.666667
0.773087
0
0
0
0
0
0.07563
0.05042
0
0
0
0
0
1
0
false
0.2
0.2
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
1
0
0
0
0
0
1
6d3d502a9e4fab4b8d06fc5ff16a2568aab18edb
1,400
py
Python
tests/unit/test_public_html.py
milescsmith/cookiecutter-wordpress
3bc3178af15e481d3a18df4ff4fcc93f618a6fdc
[ "MIT" ]
null
null
null
tests/unit/test_public_html.py
milescsmith/cookiecutter-wordpress
3bc3178af15e481d3a18df4ff4fcc93f618a6fdc
[ "MIT" ]
null
null
null
tests/unit/test_public_html.py
milescsmith/cookiecutter-wordpress
3bc3178af15e481d3a18df4ff4fcc93f618a6fdc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest class SetupPublicHtml: @pytest.fixture() def context(self): return None @pytest.fixture() def template(self, cookies, context): if context is None: return cookies.bake() else: return cookies.bake(extra_context=cont...
23.728814
66
0.627143
158
1,400
5.455696
0.291139
0.034803
0.092807
0.143852
0.522042
0.488399
0.488399
0.488399
0.488399
0.488399
0
0.003802
0.248571
1,400
58
67
24.137931
0.815589
0.015
0
0.414634
0
0
0.079884
0
0
0
0
0
0.097561
1
0.219512
false
0
0.02439
0.097561
0.536585
0
0
0
0
null
0
0
0
0
0
0
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
6d3dde38158663d28e76c909e8c536123b26caa7
4,262
py
Python
isaactest/tests/accordion_behaviour.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
null
null
null
isaactest/tests/accordion_behaviour.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
1
2016-01-15T11:28:06.000Z
2016-01-25T17:09:18.000Z
isaactest/tests/accordion_behaviour.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
1
2019-05-14T16:53:49.000Z
2019-05-14T16:53:49.000Z
import time from ..utils.log import log, INFO, ERROR, PASS from ..utils.i_selenium import assert_tab, image_div from ..utils.i_selenium import wait_for_xpath_element, wait_for_invisible_xpath from ..utils.isaac import open_accordion_section, close_accordion_section, wait_accordion_open, wait_accordion_closed from ..tes...
45.827957
169
0.690286
539
4,262
5.269017
0.243043
0.036972
0.03662
0.04507
0.409507
0.343662
0.276056
0.258451
0.207042
0.189789
0
0.00149
0.212576
4,262
92
170
46.326087
0.844756
0.009385
0
0.3875
0
0
0.330461
0.060061
0
0
0
0
0.05
0
null
null
0.025
0.0875
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
6d3eb041ca451c14bb7749af771a32d51f111d6d
587
py
Python
yggdrasil/communication/AsciiMapComm.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
22
2019-02-05T15:20:07.000Z
2022-02-25T09:00:40.000Z
yggdrasil/communication/AsciiMapComm.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
48
2019-02-15T20:41:24.000Z
2022-03-16T20:52:02.000Z
yggdrasil/communication/AsciiMapComm.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
16
2019-04-27T03:36:40.000Z
2021-12-02T09:47:06.000Z
from yggdrasil.communication import FileComm class AsciiMapComm(FileComm.FileComm): r"""Class for handling I/O from/to a ASCII map on disk. Args: name (str): The environment variable where file path is stored. **kwargs: Additional keywords arguments are passed to parent class. """ _...
32.611111
75
0.625213
69
587
5.231884
0.811594
0.044321
0
0
0
0
0
0
0
0
0
0
0.30494
587
17
76
34.529412
0.884804
0.337308
0
0
0
0
0.29863
0
0
0
0
0
0
1
0
false
0
0.125
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
6d4b7c11dabe41f806cbc11a1847f9f742c15d13
1,436
py
Python
jupyterlab/tests/test_build_api.py
orpheus92/jupyter-beta
3ca2665cf28cefb66bd096bb0ce32ec32ba6dfe5
[ "BSD-3-Clause" ]
null
null
null
jupyterlab/tests/test_build_api.py
orpheus92/jupyter-beta
3ca2665cf28cefb66bd096bb0ce32ec32ba6dfe5
[ "BSD-3-Clause" ]
null
null
null
jupyterlab/tests/test_build_api.py
orpheus92/jupyter-beta
3ca2665cf28cefb66bd096bb0ce32ec32ba6dfe5
[ "BSD-3-Clause" ]
null
null
null
"""Test the kernels service API.""" import threading import time from jupyterlab.tests.utils import LabTestBase, APITester from notebook.tests.launchnotebook import assert_http_error class BuildAPITester(APITester): """Wrapper for build REST API requests""" url = 'lab/api/build' def getStatus(self): ...
25.192982
65
0.614206
175
1,436
4.902857
0.382857
0.073427
0.097902
0.074592
0.146853
0.146853
0.079254
0.079254
0
0
0
0.014368
0.272981
1,436
56
66
25.642857
0.807471
0.103064
0
0.111111
0
0
0.041831
0
0
0
0
0
0.194444
1
0.222222
false
0
0.111111
0.083333
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
6d4ff338a5048d79569541e65f7625f4beff0e41
395
py
Python
Olympiad Solutions/URI/1181.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
36
2019-12-27T08:23:08.000Z
2022-01-24T20:35:47.000Z
Olympiad Solutions/URI/1181.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
10
2019-11-13T02:55:18.000Z
2021-10-13T23:28:09.000Z
Olympiad Solutions/URI/1181.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
53
2020-08-15T11:08:40.000Z
2021-10-09T15:51:38.000Z
# Ivan Carvalho # Solution to https://www.urionlinejudge.com.br/judge/problems/view/1181 #!/usr/bin/env python2.7 linha = int(raw_input()) array = [[0 for j in xrange(12)] for k in xrange(12)] operacao = raw_input() for p in xrange(12): for k in xrange(12): array[p][k]=float(raw_input()) if operacao == "S": print "...
28.214286
72
0.663291
69
395
3.753623
0.565217
0.123552
0.15444
0.100386
0.339768
0.185328
0.185328
0.185328
0
0
0
0.05848
0.134177
395
13
73
30.384615
0.69883
0.270886
0
0
0
0
0.03169
0
0
0
0
0
0
0
null
null
0
0
null
null
0.2
0
0
0
null
0
0
0
0
0
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
6d50afec427856861c969ad355d8c5fa162ca5ff
276
py
Python
packages/PIPS/validation/Benchmarks/Hyantes.sub/remove_reduction.py
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
51
2015-01-31T01:51:39.000Z
2022-02-18T02:01:50.000Z
packages/PIPS/validation/Benchmarks/Hyantes.sub/remove_reduction.py
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
7
2017-05-29T09:29:00.000Z
2019-03-11T16:01:39.000Z
packages/PIPS/validation/Benchmarks/Hyantes.sub/remove_reduction.py
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
12
2015-03-26T08:05:38.000Z
2022-02-18T02:01:51.000Z
from __future__ import with_statement from pyps import workspace with workspace("hyantes.c", "options.c") as w: w.props.constant_path_effects=False f=w["hyantes!do_run_AMORTIZED_DISK"] for l in f.all_loops: l.reduction_variable_expansion() f.display()
30.666667
46
0.73913
42
276
4.547619
0.738095
0
0
0
0
0
0
0
0
0
0
0
0.163043
276
8
47
34.5
0.82684
0
0
0
0
0
0.17029
0.105072
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6d57153945b51f7d7faf6071ea0fd9dbff460656
2,377
py
Python
domain/meta/schedule.py
trcox/py-core-domain
ca490809b247aef08e7de8981432f31b4f9d31a1
[ "Apache-2.0" ]
null
null
null
domain/meta/schedule.py
trcox/py-core-domain
ca490809b247aef08e7de8981432f31b4f9d31a1
[ "Apache-2.0" ]
null
null
null
domain/meta/schedule.py
trcox/py-core-domain
ca490809b247aef08e7de8981432f31b4f9d31a1
[ "Apache-2.0" ]
null
null
null
# ******************************************************************************* # Copyright 2017 Dell Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/L...
44.849057
99
0.634834
301
2,377
4.943522
0.488372
0.040323
0.040323
0.021505
0.129032
0.129032
0.129032
0.129032
0.129032
0.129032
0
0.01226
0.21077
2,377
52
100
45.711538
0.780917
0.600337
0
0
0
0.058824
0.114007
0
0
0
0
0.019231
0
1
0.117647
false
0
0.058824
0.058824
0.352941
0
0
0
0
null
0
0
0
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
6d5bd3fb4d8e9779c1930d9978e30ba7ba6d66cc
1,737
py
Python
chipy_org/apps/main/views.py
land-of-apps/chipy.org
be433d0cb3453a1550f344c02d6164b6bf4d9e63
[ "MIT" ]
88
2015-01-01T21:12:18.000Z
2022-03-01T13:36:59.000Z
chipy_org/apps/main/views.py
land-of-apps/chipy.org
be433d0cb3453a1550f344c02d6164b6bf4d9e63
[ "MIT" ]
296
2015-01-02T15:55:19.000Z
2022-03-20T20:11:47.000Z
chipy_org/apps/main/views.py
land-of-apps/chipy.org
be433d0cb3453a1550f344c02d6164b6bf4d9e63
[ "MIT" ]
83
2015-01-25T02:34:24.000Z
2021-11-08T20:28:36.000Z
import datetime import sys import traceback from django.contrib import messages from django.contrib.auth.views import LogoutView from django.http import HttpResponse, HttpResponseServerError from django.template import loader from django.views.generic import TemplateView from chipy_org.apps.meetings.models import Mee...
28.016129
98
0.672999
193
1,737
5.937824
0.450777
0.04363
0.031414
0.041885
0.041885
0
0
0
0
0
0
0.013373
0.225101
1,737
61
99
28.47541
0.838039
0
0
0
0
0
0.075417
0
0
0
0
0
0
1
0.108696
false
0
0.23913
0.043478
0.543478
0.021739
0
0
0
null
0
0
0
0
0
0
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
6d5c27efea898ab26417bfa0e4161873555a02b3
1,718
py
Python
web_market/catalog/models.py
AK-1121/small_market_with_django
95a3b395e272b3c84400cd3d2ef92affe76dc328
[ "MIT" ]
null
null
null
web_market/catalog/models.py
AK-1121/small_market_with_django
95a3b395e272b3c84400cd3d2ef92affe76dc328
[ "MIT" ]
null
null
null
web_market/catalog/models.py
AK-1121/small_market_with_django
95a3b395e272b3c84400cd3d2ef92affe76dc328
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class ProductType(models.Model): name = models.CharField(max_length=50, unique=True) raiting = models.FloatField() description = models.TextField(default='') class SubProductType(models.Model): name = models.CharField(max_length=50, unique=True...
31.236364
72
0.720023
202
1,718
5.990099
0.321782
0.123967
0.14876
0.198347
0.478512
0.323141
0.232231
0.2
0.122314
0.122314
0
0.025
0.161816
1,718
54
73
31.814815
0.815278
0.01397
0
0.368421
0
0
0.023077
0
0
0
0
0
0
1
0
false
0
0.026316
0
0.921053
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
6d5cfd7abf19372973186603f8a82d3a006b104a
336
py
Python
src/app/voltdb/voltdb_src/tools/tcpprobe.py
OpenMPDK/SMDK
8f19d32d999731242cb1ab116a4cb445d9993b15
[ "BSD-3-Clause" ]
44
2022-03-16T08:32:31.000Z
2022-03-31T16:02:35.000Z
src/app/voltdb/voltdb_src/tools/tcpprobe.py
H2O0Lee/SMDK
eff49bc17a55a83ea968112feb2e2f2ea18c4ff5
[ "BSD-3-Clause" ]
1
2022-03-29T02:30:28.000Z
2022-03-30T03:40:46.000Z
src/app/voltdb/voltdb_src/tools/tcpprobe.py
H2O0Lee/SMDK
eff49bc17a55a83ea968112feb2e2f2ea18c4ff5
[ "BSD-3-Clause" ]
18
2022-03-19T04:41:04.000Z
2022-03-31T03:32:12.000Z
#!/usr/bin/env python from __future__ import with_statement from sys import argv from socket import socket from contextlib import closing def main(args): host, port = args[1:] with closing(socket()) as s: try: s.connect((host,int(port))) except: return 1 if __name__ == '__main__': exit(main(argv)) # v...
18.666667
37
0.699405
54
336
4.111111
0.648148
0
0
0
0
0
0
0
0
0
0
0.014388
0.172619
336
17
38
19.764706
0.784173
0.110119
0
0
0
0
0.026936
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6d648804452d20f1849971ab4c6c5df716e95168
25,970
py
Python
spotifython/session.py
Guptacos/spotifython
9d42e903f29667906abd959b45b642a9645c60d1
[ "MIT" ]
null
null
null
spotifython/session.py
Guptacos/spotifython
9d42e903f29667906abd959b45b642a9645c60d1
[ "MIT" ]
61
2020-04-25T20:17:05.000Z
2020-09-20T20:41:24.000Z
spotifython/session.py
Guptacos/spotifython
9d42e903f29667906abd959b45b642a9645c60d1
[ "MIT" ]
null
null
null
""" Session class. """ # Standard library imports import math # Local imports import spotifython.constants as const from spotifython.endpoints import Endpoints import spotifython.utils as utils class Session: """ Represents an interactive Spotify session, tied to a Spotify API token. Use methods here to dea...
35.575342
86
0.578783
3,070
25,970
4.789902
0.134202
0.018973
0.007956
0.010609
0.472288
0.444951
0.389527
0.36865
0.352193
0.334444
0
0.005973
0.348903
25,970
729
87
35.624143
0.863682
0.40824
0
0.337931
0
0
0.069017
0.001633
0
0
0
0.010974
0
1
0.062069
false
0
0.031034
0
0.151724
0
0
0
0
null
0
0
0
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
6d659aab0b30c16249cae3380b770eb52697e6c0
2,993
py
Python
paper/plotPreliminary.py
SebastianGer/biases-in-word-embeddings
001499003caf213acf62dffbe29a54259a60e3e4
[ "MIT" ]
null
null
null
paper/plotPreliminary.py
SebastianGer/biases-in-word-embeddings
001499003caf213acf62dffbe29a54259a60e3e4
[ "MIT" ]
null
null
null
paper/plotPreliminary.py
SebastianGer/biases-in-word-embeddings
001499003caf213acf62dffbe29a54259a60e3e4
[ "MIT" ]
null
null
null
# Plots results of preliminary experiments to determine parameter settings for all other experiments import pandas as pd import matplotlib matplotlib.use('pgf') import matplotlib.pyplot as plt df = pd.read_csv("data/preliminaryWord2vecComplete_clean.csv") df3 = df.query('(skipgram == 1) & (contextwindow == 3)') df5...
39.381579
100
0.700969
416
2,993
5.026442
0.204327
0.04352
0.08704
0.13056
0.765662
0.713534
0.568149
0.568149
0.568149
0.568149
0
0.049531
0.109589
2,993
75
101
39.906667
0.735084
0.048112
0
0.517241
0
0
0.427215
0.09564
0
0
0
0
0
1
0
false
0
0.051724
0
0.051724
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
ed999549258bd692481abf7879dce3a39b46c915
5,996
py
Python
src/opendr/perception/object_detection_3d/voxel_object_detection_3d/second_detector/pytorch/builder/lr_scheduler_builder.py
makistsantekidis/opendr
07dee3b59d3487b9c5a93d6946317178a02c9890
[ "Apache-2.0" ]
217
2020-04-10T16:39:36.000Z
2022-03-30T15:39:04.000Z
src/opendr/perception/object_detection_3d/voxel_object_detection_3d/second_detector/pytorch/builder/lr_scheduler_builder.py
makistsantekidis/opendr
07dee3b59d3487b9c5a93d6946317178a02c9890
[ "Apache-2.0" ]
79
2021-06-23T10:40:10.000Z
2021-12-16T07:59:42.000Z
src/opendr/perception/object_detection_3d/voxel_object_detection_3d/second_detector/pytorch/builder/lr_scheduler_builder.py
makistsantekidis/opendr
07dee3b59d3487b9c5a93d6946317178a02c9890
[ "Apache-2.0" ]
29
2021-12-16T09:26:13.000Z
2022-03-29T15:19:18.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.690476
84
0.698299
695
5,996
5.683453
0.217266
0.203544
0.068354
0.048608
0.696709
0.690127
0.660253
0.612911
0.586076
0.548101
0
0.003006
0.223149
5,996
167
85
35.904192
0.844998
0.203469
0
0.509804
0
0
0.105832
0.044115
0
0
0
0
0
1
0.039216
false
0
0.009804
0
0.088235
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
ed9a8d66960ed413540be7e9fc0394c6fc149910
1,656
py
Python
samples/wmi/wmi_request.py
R3dFruitRollUp/PythonForWindows
b253bc5873e7d97087ed22f2753b51fc6880ec18
[ "BSD-3-Clause" ]
1
2018-11-15T11:15:56.000Z
2018-11-15T11:15:56.000Z
samples/wmi/wmi_request.py
killvxk/PythonForWindows
b253bc5873e7d97087ed22f2753b51fc6880ec18
[ "BSD-3-Clause" ]
null
null
null
samples/wmi/wmi_request.py
killvxk/PythonForWindows
b253bc5873e7d97087ed22f2753b51fc6880ec18
[ "BSD-3-Clause" ]
1
2018-12-01T19:11:49.000Z
2018-12-01T19:11:49.000Z
import sys import os.path import pprint sys.path.append(os.path.abspath(__file__ + "\..\..")) import windows print("WMI requester is {0}".format(windows.system.wmi)) print("Selecting * from 'Win32_Process'") result = windows.system.wmi.select("Win32_Process") print("They are <{0}> processes".format(len(result))) pri...
36.8
98
0.660628
214
1,656
5.070093
0.359813
0.04977
0.03871
0.071889
0.04977
0
0
0
0
0
0
0.022853
0.128019
1,656
44
99
37.636364
0.728532
0
0
0
0
0
0.424682
0.029643
0
0
0
0
0
1
0
false
0
0.121212
0
0.121212
0.666667
0
0
0
null
0
0
0
0
0
0
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
ed9e27a1dfc15a74b30acc3524b9b0e30df90f89
4,975
py
Python
racing_data/performance_list.py
predictive-punter/racing_data
0d1b0ad0fe7591ce859d528af719349c0c7534d3
[ "MIT" ]
15
2017-04-08T05:22:49.000Z
2021-04-20T17:33:22.000Z
racing_data/performance_list.py
phillc73/racing_data
0d1b0ad0fe7591ce859d528af719349c0c7534d3
[ "MIT" ]
54
2016-07-21T10:35:45.000Z
2016-07-30T23:06:50.000Z
racing_data/performance_list.py
phillc73/racing_data
0d1b0ad0fe7591ce859d528af719349c0c7534d3
[ "MIT" ]
7
2016-12-15T06:02:54.000Z
2020-04-20T15:32:55.000Z
class PerformanceList(list): """A performance list provides statistical analysis functionality for a list of performances""" @property def earnings(self): """Return the total prize money for the performances in this list""" prize_monies = [performance['prize_money'] for performance in self...
34.79021
156
0.665126
627
4,975
5.204147
0.141946
0.033098
0.052099
0.101134
0.532026
0.456635
0.317806
0.257125
0.238124
0.162734
0
0.00509
0.249648
4,975
142
157
35.035211
0.869006
0.296884
0
0.246753
0
0
0.032382
0
0
0
0
0
0
1
0.246753
false
0
0
0
0.532468
0
0
0
0
null
0
0
0
0
0
0
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
eda283b01e0b59cd7f31f32beaffd18135370de1
695
py
Python
generatemusic/generate_waveforms.py
WiktorSa/Music-Generation-with-LSTM-and-.wav-files
37b713b5e6193788a7710cc0fac4134efb74fa62
[ "MIT" ]
1
2022-03-09T20:13:57.000Z
2022-03-09T20:13:57.000Z
generatemusic/generate_waveforms.py
WiktorSa/Music-Generation-with-LSTM-and-.wav-files
37b713b5e6193788a7710cc0fac4134efb74fa62
[ "MIT" ]
1
2021-10-01T16:20:06.000Z
2021-10-01T17:25:30.000Z
generatemusic/generate_waveforms.py
WiktorSa/Music-Generation-with-LSTM-and-.wav-files
37b713b5e6193788a7710cc0fac4134efb74fa62
[ "MIT" ]
null
null
null
import numpy as np from scipy.fft import ifft def generate_waveforms(data: np.ndarray) -> np.ndarray: """ Generate waveforms from frequency domains :param data: frequency domains (where first n/2 examples consist of real values and the rest consists of imaginary values) :return: numpy array conta...
26.730769
105
0.722302
93
695
5.258065
0.483871
0.114519
0.07362
0.09816
0
0
0
0
0
0
0
0.010733
0.195683
695
25
106
27.8
0.864043
0.303597
0
0
1
0
0.015351
0
0
0
0
0
0
1
0.090909
false
0
0.181818
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
edb1f4bb4d10e992c753da4af6fcdd517e93ba5c
132
py
Python
fundamentos-de-programacao/lista-15-05-19/Q1-RaizQuadrada.py
kbcvcbk/cesar-school
b857ac651175bd08551303a7e82d16c4a9f621d8
[ "MIT" ]
2
2020-05-14T00:29:38.000Z
2022-03-08T23:28:02.000Z
fundamentos-de-programacao/lista-15-05-19/Q1-RaizQuadrada.py
kbcvcbk/cesar-school
b857ac651175bd08551303a7e82d16c4a9f621d8
[ "MIT" ]
1
2022-03-02T11:26:37.000Z
2022-03-02T11:26:37.000Z
fundamentos-de-programacao/lista-15-05-19/Q1-RaizQuadrada.py
kbcvcbk/cesar-school
b857ac651175bd08551303a7e82d16c4a9f621d8
[ "MIT" ]
2
2020-11-03T09:36:27.000Z
2022-03-08T23:28:14.000Z
n = float(input("Digite o número: ")) b=2 dif=3.14 while dif >= 0.0001: p=(b+(n/b))/2 print("p é",p) b=p pq = p*p dif=abs(n-pq)
14.666667
37
0.55303
33
132
2.212121
0.575758
0.054795
0
0
0
0
0
0
0
0
0
0.092593
0.181818
132
9
38
14.666667
0.583333
0
0
0
0
0
0.150376
0
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
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
edb23193c334891acc883361c3d8e788e913535e
633
py
Python
src/main/resources/opennlp.models/download_models.py
sully90/dp-search-service
efc6a94dad1c5b3fc898da9ced1606aa345c7ecd
[ "MIT" ]
null
null
null
src/main/resources/opennlp.models/download_models.py
sully90/dp-search-service
efc6a94dad1c5b3fc898da9ced1606aa345c7ecd
[ "MIT" ]
null
null
null
src/main/resources/opennlp.models/download_models.py
sully90/dp-search-service
efc6a94dad1c5b3fc898da9ced1606aa345c7ecd
[ "MIT" ]
null
null
null
#!/usr/bin/python import os def download_model(model_name): ''' Downloads a given model binary ''' print "Downloading ", model_name cmd = "wget http://opennlp.sourceforge.net/models-1.5/%s" % model_name os.system(cmd) if __name__ == "__main__": model_names = ["en-ner-dates.bin", "en-ner-l...
30.142857
102
0.630332
92
633
4.141304
0.5
0.104987
0.125984
0.115486
0
0
0
0
0
0
0
0.003922
0.194313
633
20
103
31.65
0.743137
0.025276
0
0
0
0
0.394737
0.077193
0
0
0
0
0
0
null
null
0
0.083333
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
edb648c98f0f42744495f4d789c1cca05e6c4704
486
py
Python
dhnx/helpers.py
rbv83/DHNx
e236d720c7ec3c0f400648b96141454557d35476
[ "MIT" ]
14
2020-06-25T14:03:21.000Z
2021-11-25T12:53:08.000Z
dhnx/helpers.py
rbv83/DHNx
e236d720c7ec3c0f400648b96141454557d35476
[ "MIT" ]
51
2020-02-19T14:42:38.000Z
2022-03-23T08:30:31.000Z
dhnx/helpers.py
oemof-heat/district_heating_simulation
edb5c9be17f74d7f200c1eb6a17000a26633bdc3
[ "MIT" ]
3
2020-10-23T15:54:11.000Z
2022-02-28T12:53:09.000Z
import addict class Dict(addict.Dict): def __init__(self, *args, **kwargs): super().__init__(self, *args, **kwargs) def __repr__(self): overview = ['* ' + str(key) for key, value in self.items()] return '\n'.join(overview) def sum_ignore_none(*items): not_none = [value for value...
21.130435
67
0.62963
67
486
4.223881
0.432836
0.09894
0.159011
0.127208
0
0
0
0
0
0
0
0
0.253086
486
22
68
22.090909
0.779614
0
0
0
0
0
0.00823
0
0
0
0
0
0
1
0.214286
false
0
0.071429
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
edb92c5fd296cb3e07169dc79510c1f1c49d8cee
2,286
py
Python
sktime/utils/validation.py
TonyBagnall/sktime
837a77026be3e53511c3d6139ddad14a39351bf5
[ "BSD-3-Clause" ]
2
2019-08-19T13:59:21.000Z
2020-03-02T20:32:31.000Z
sktime/utils/validation.py
TonyBagnall/boss_fork
837a77026be3e53511c3d6139ddad14a39351bf5
[ "BSD-3-Clause" ]
null
null
null
sktime/utils/validation.py
TonyBagnall/boss_fork
837a77026be3e53511c3d6139ddad14a39351bf5
[ "BSD-3-Clause" ]
2
2019-08-24T12:06:15.000Z
2020-01-09T07:32:40.000Z
import numpy as np def check_ts_X_y(X, y): """Placeholder function for input validation. """ # TODO: add proper checks (e.g. check if input stuff is pandas full of objects) # currently it checks neither the data nor the datatype # return check_X_y(X, y, dtype=None, ensure_2d=False) return X, y ...
38.1
112
0.645232
346
2,286
4.213873
0.346821
0.041152
0.022634
0.005487
0.378601
0.368999
0.341564
0.251029
0.251029
0.251029
0
0.009547
0.266842
2,286
59
113
38.745763
0.860382
0.515311
0
0
0
0
0.211946
0
0
0
0
0.050847
0
1
0.157895
false
0
0.052632
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
edb94d210e20eefd62f4198317637767af846a19
324
py
Python
mysite/migrations/0003_remove_blog_image.py
roku104/mysite
774c55751ac6f29c1fb07c4da72a5894c5cbaf19
[ "MIT" ]
1
2018-11-21T02:14:32.000Z
2018-11-21T02:14:32.000Z
mysite/migrations/0003_remove_blog_image.py
roku104/mysite
774c55751ac6f29c1fb07c4da72a5894c5cbaf19
[ "MIT" ]
null
null
null
mysite/migrations/0003_remove_blog_image.py
roku104/mysite
774c55751ac6f29c1fb07c4da72a5894c5cbaf19
[ "MIT" ]
null
null
null
# Generated by Django 2.1.1 on 2018-09-26 15:25 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('mysite', '0002_auto_20180912_1246'), ] operations = [ migrations.RemoveField( model_name='blog', name='image', ), ...
18
47
0.58642
35
324
5.314286
0.828571
0
0
0
0
0
0
0
0
0
0
0.136564
0.299383
324
17
48
19.058824
0.682819
0.138889
0
0
1
0
0.137184
0.083032
0
0
0
0
0
1
0
false
0
0.090909
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
edc6534f0db68594afcf99358c2a9b3928d7a532
1,010
py
Python
81.py
brianfl/project-euler
9f83a3c2da04fd0801a4a575081add665edccd5f
[ "MIT" ]
null
null
null
81.py
brianfl/project-euler
9f83a3c2da04fd0801a4a575081add665edccd5f
[ "MIT" ]
null
null
null
81.py
brianfl/project-euler
9f83a3c2da04fd0801a4a575081add665edccd5f
[ "MIT" ]
null
null
null
with open('matrix.txt', 'r') as m: n = m.read().split('\n') matrix = [i.split(',') for i in n] del matrix[-1] for index1, value1 in enumerate(matrix): for index2, value2 in enumerate(value1): matrix[index1][index2] = int(value2) row_pos = len(matrix)-1 ind_pos = len(matrix[row_pos])-1 while r...
24.047619
71
0.582178
154
1,010
3.668831
0.396104
0.084956
0.106195
0.069027
0.178761
0.081416
0.081416
0.081416
0
0
0
0.055633
0.288119
1,010
42
72
24.047619
0.730181
0.005941
0
0.296296
0
0
0.01649
0
0
0
0
0
0
1
0
false
0.074074
0
0
0
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
0
0
0
1
0
0
0
0
0
1
edc8f195103066572e1257568eab242e02e23b02
1,472
py
Python
findance/entity/migrations/0001_initial.py
mccartnm/findance
5d8b980cbe3f0b3dbe5798a75f58b5749088331f
[ "MIT" ]
null
null
null
findance/entity/migrations/0001_initial.py
mccartnm/findance
5d8b980cbe3f0b3dbe5798a75f58b5749088331f
[ "MIT" ]
null
null
null
findance/entity/migrations/0001_initial.py
mccartnm/findance
5d8b980cbe3f0b3dbe5798a75f58b5749088331f
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-04-26 15:52 from django.db import migrations, models import django.db.models.deletion import findance.abstract class Migration(migrations.Migration): initial = True dependencies = [ ('assets', '0001_initial'), ] operations = [ migrations.CreateMode...
35.047619
158
0.559103
132
1,472
6.166667
0.507576
0.09828
0.152334
0.054054
0.348894
0.275184
0.275184
0.275184
0.275184
0.275184
0
0.018217
0.29144
1,472
41
159
35.902439
0.762224
0.029212
0
0.470588
1
0
0.13595
0.014716
0
0
0
0
0
1
0
false
0
0.088235
0
0.205882
0
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
edd10011ec4f0f850a3332528aca6a5835c7347c
181
py
Python
numpy_test.py
weepingwillowben/image-learn
2acbf1c51600256e3d9b5d7cf13f0870556bca00
[ "MIT" ]
null
null
null
numpy_test.py
weepingwillowben/image-learn
2acbf1c51600256e3d9b5d7cf13f0870556bca00
[ "MIT" ]
null
null
null
numpy_test.py
weepingwillowben/image-learn
2acbf1c51600256e3d9b5d7cf13f0870556bca00
[ "MIT" ]
null
null
null
import numpy as np arg = np.arange(100).reshape((10,10)) print(arg) print(arg[[(1,2),(3,4)]]) res = np.digitize(0.4,[0.2,0.3]) print(res) print(np.add.accumulate([0.1,0.2,0.3]))
16.454545
39
0.624309
40
181
2.825
0.475
0.141593
0.053097
0.070796
0
0
0
0
0
0
0
0.140244
0.093923
181
10
40
18.1
0.54878
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.571429
0
0
0
null
0
0
0
0
0
0
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
edd1a2eba2e777e57dd9ae7fe78935cdfc83cf44
4,165
py
Python
scripts/fsm.py
ut-osa/syncchar
eba20da163260b6ae1ef3e334ad2137873a8d625
[ "BSD-3-Clause" ]
null
null
null
scripts/fsm.py
ut-osa/syncchar
eba20da163260b6ae1ef3e334ad2137873a8d625
[ "BSD-3-Clause" ]
null
null
null
scripts/fsm.py
ut-osa/syncchar
eba20da163260b6ae1ef3e334ad2137873a8d625
[ "BSD-3-Clause" ]
1
2019-05-14T16:36:45.000Z
2019-05-14T16:36:45.000Z
""" Finite state machine class. The fsm class stores dictionary of state/input keys, values are next state and action when searching for matching state/input key, exact match is checked first, then the input is matched against any regular expressions associated with the state. As a last resort, state/None can be use...
26.870968
67
0.664586
586
4,165
4.686007
0.293515
0.055717
0.025492
0.029133
0.287327
0.287327
0.262564
0.262564
0.262564
0.262564
0
0.000314
0.236495
4,165
154
68
27.045455
0.863208
0.163505
0
0.442857
0
0
0.020253
0
0
0
0
0
0
0
null
null
0
0.014286
null
null
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
edd26443fbb7199143965a3072eb5ab1a9be5393
735
py
Python
marvin/screen.py
Emphebion/MARVIN
2053e8ce31b5e332e7c12271a71df3c25b0cb1a0
[ "MIT" ]
null
null
null
marvin/screen.py
Emphebion/MARVIN
2053e8ce31b5e332e7c12271a71df3c25b0cb1a0
[ "MIT" ]
null
null
null
marvin/screen.py
Emphebion/MARVIN
2053e8ce31b5e332e7c12271a71df3c25b0cb1a0
[ "MIT" ]
null
null
null
############################################# # Screen # =========================================== # Purpose is to: # - What am I doing here? ############################################# import pygame class Screen: def __init__(self, config_file, parser): parser.read(config_file) self.size = [x...
26.25
80
0.487075
81
735
4.271605
0.506173
0.040462
0.063584
0
0
0
0
0
0
0
0
0.010435
0.217687
735
28
81
26.25
0.591304
0.121088
0
0
0
0
0.019928
0
0
0
0
0
0
1
0.25
false
0
0.0625
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
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
edd3070e919c28d260fa10a51ae510e33f6b0078
12,332
py
Python
daguerre/tests/unit/test_management.py
littleweaver/django-daguerre
9437dfc3f27386eac8aa769077e5715b81b5fe30
[ "BSD-3-Clause" ]
20
2015-01-08T07:43:42.000Z
2018-01-28T02:25:51.000Z
daguerre/tests/unit/test_management.py
littleweaver/django-daguerre
9437dfc3f27386eac8aa769077e5715b81b5fe30
[ "BSD-3-Clause" ]
28
2015-04-01T20:24:28.000Z
2017-12-11T12:04:58.000Z
daguerre/tests/unit/test_management.py
littleweaver/django-daguerre
9437dfc3f27386eac8aa769077e5715b81b5fe30
[ "BSD-3-Clause" ]
10
2015-04-09T10:56:41.000Z
2018-01-26T07:11:05.000Z
from django.conf import settings from django.core.files.storage import default_storage from django.core.management.base import CommandError from django.test.utils import override_settings import mock from daguerre.adjustments import Fit from daguerre.management.commands._daguerre_clean import Command as Clean from dag...
40.565789
80
0.586685
1,183
12,332
5.896872
0.137785
0.069381
0.027953
0.065367
0.75129
0.688503
0.661554
0.630304
0.619983
0.604788
0
0.021127
0.309115
12,332
303
81
40.69967
0.797653
0.018894
0
0.578313
0
0
0.099167
0.013156
0
0
0
0
0.128514
1
0.084337
false
0.004016
0.044177
0
0.140562
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
edd63cd9fb4b41ff585ff6a70fe4ee13e645a40a
1,586
py
Python
waitingthread.py
souzabrizolara/door-strut-simulator
6de931f2d8b76b57a4fe457ecac6b7f13e373220
[ "MIT" ]
null
null
null
waitingthread.py
souzabrizolara/door-strut-simulator
6de931f2d8b76b57a4fe457ecac6b7f13e373220
[ "MIT" ]
null
null
null
waitingthread.py
souzabrizolara/door-strut-simulator
6de931f2d8b76b57a4fe457ecac6b7f13e373220
[ "MIT" ]
null
null
null
import threading import sys import time class WaitingThread(threading.Thread): def __init__(self, lp, waitTime = 5): threading.Thread.__init__(self) self.running = True self.waitCondition = threading.Condition(threading.RLock()) self.waitTime = waitTime self.lastTime = No...
25.580645
67
0.583228
153
1,586
5.993464
0.300654
0.203926
0.104689
0.091603
0
0
0
0
0
0
0
0.001852
0.319042
1,586
61
68
26
0.847222
0
0
0.326531
0
0
0.009464
0
0
0
0
0
0
1
0.183673
false
0.040816
0.061224
0.020408
0.306122
0.020408
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
edd64bd4827b991c5d28e9da19d3d313de93c8a0
7,209
py
Python
dental/settings.py
AbhiyantrikTechnology/DentalHub-Backend
89802b3e7671ffe8b3d287a998c3c4f375b58f03
[ "MIT" ]
1
2021-04-03T19:57:32.000Z
2021-04-03T19:57:32.000Z
dental/settings.py
AbhiyantrikTechnology/DentalHub-Backend
89802b3e7671ffe8b3d287a998c3c4f375b58f03
[ "MIT" ]
null
null
null
dental/settings.py
AbhiyantrikTechnology/DentalHub-Backend
89802b3e7671ffe8b3d287a998c3c4f375b58f03
[ "MIT" ]
null
null
null
""" Django settings for dental project. Generated by 'django-admin startproject' using Django 2.0. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os impor...
26.025271
91
0.657928
767
7,209
6.029987
0.367666
0.044973
0.020757
0.037838
0.162162
0.128649
0.075027
0.075027
0.043243
0
0
0.010457
0.20405
7,209
276
92
26.119565
0.795573
0.265224
0
0.047619
1
0
0.468851
0.28996
0
0
0
0
0
1
0
false
0.047619
0.029762
0
0.029762
0
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
edd85d21386459fc38710dc31cb59fc4dd97a292
210
py
Python
http-requests/variables.py
cmin764/robots
447a8a44cb4231e1cb8acd271eb4f2c9bb2d3e21
[ "MIT" ]
1
2022-03-17T20:28:06.000Z
2022-03-17T20:28:06.000Z
http-requests/variables.py
cmin764/robots
447a8a44cb4231e1cb8acd271eb4f2c9bb2d3e21
[ "MIT" ]
null
null
null
http-requests/variables.py
cmin764/robots
447a8a44cb4231e1cb8acd271eb4f2c9bb2d3e21
[ "MIT" ]
null
null
null
from pathlib import Path api_key_name = "api_key_cosmin" portrait_gif = Path("devdata") / "portrait.gif" api_base = "https://sandbox.zamzar.com/v1" # SANDBOX # api_base = "https://api.zamzar.com/v1" # LIVE
26.25
53
0.714286
32
210
4.46875
0.5625
0.083916
0.167832
0
0
0
0
0
0
0
0
0.010929
0.128571
210
7
54
30
0.770492
0.252381
0
0
0
0
0.405229
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
eddc0f7669654fde433ed24f9dc39fbd4ba45302
2,102
py
Python
tangle_connector/tests/test_tangle_connector.py
stkubr/MAML
fa621b21420c76f4df0afba56bbcb492c63a31f0
[ "MIT" ]
4
2019-01-16T22:53:57.000Z
2019-04-11T08:20:16.000Z
tangle_connector/tests/test_tangle_connector.py
stkubr/MAML
fa621b21420c76f4df0afba56bbcb492c63a31f0
[ "MIT" ]
4
2019-01-23T07:07:06.000Z
2019-07-22T16:33:30.000Z
tangle_connector/tests/test_tangle_connector.py
stkubr/MAML
fa621b21420c76f4df0afba56bbcb492c63a31f0
[ "MIT" ]
4
2019-01-16T22:54:04.000Z
2020-01-29T18:31:23.000Z
from unittest import TestCase from iota import Address, TransactionHash from tangle_connector import TangleConnector class TestTangleConnector(TestCase): def setUp(self): self.tangle_con = TangleConnector() def test_get_node(self): res = self.tangle_con.get_node() self.assertEqual(r...
40.423077
116
0.764986
212
2,102
7.240566
0.216981
0.065147
0.084691
0.083388
0.458632
0.376547
0.270358
0.270358
0.270358
0.186319
0
0.016978
0.159372
2,102
51
117
41.215686
0.851726
0
0
0.189189
0
0
0.271429
0.252857
0
0
0
0
0.216216
1
0.243243
false
0
0.081081
0
0.351351
0
0
0
0
null
0
0
0
0
0
0
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
ede54949181848e3b9662de38d4f462733cf71e6
603
py
Python
ztag/annotations/americanmegatrends.py
justinbastress/ztag
137b754dfe22b7d6e0945ae33def372ec67d092b
[ "Apache-2.0" ]
107
2015-10-13T16:03:21.000Z
2021-11-08T10:53:07.000Z
ztag/annotations/americanmegatrends.py
justinbastress/ztag
137b754dfe22b7d6e0945ae33def372ec67d092b
[ "Apache-2.0" ]
73
2015-10-14T17:27:10.000Z
2018-10-01T14:32:44.000Z
ztag/annotations/americanmegatrends.py
justinbastress/ztag
137b754dfe22b7d6e0945ae33def372ec67d092b
[ "Apache-2.0" ]
36
2015-10-14T17:13:20.000Z
2021-10-05T19:41:10.000Z
from ztag.annotation import * class AmericanMegatrends(Annotation): protocol = protocols.HTTPS subprotocol = protocols.HTTPS.TLS port = None tests = { "american_megatrends":{ "local_metadata":{ "manufacturer": Manufacturer.AMERICANMEGATRENDS } ...
26.217391
81
0.621891
50
603
7.44
0.66
0.075269
0.134409
0.198925
0.295699
0
0
0
0
0
0
0.002304
0.280265
603
22
82
27.409091
0.854839
0
0
0
0
0
0.172757
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.470588
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
edf3aad2c02724856ffa4ce73bc25b97e1a9d7b0
937
py
Python
Bot/script7.py
hjunor/Bot-python-Instagran
448312b12c5bdf959d7dd4ddb5a1eb5e1291f5c4
[ "MIT" ]
1
2020-07-29T18:00:18.000Z
2020-07-29T18:00:18.000Z
Bot/script7.py
hjunor/Bot-python-Instagram
448312b12c5bdf959d7dd4ddb5a1eb5e1291f5c4
[ "MIT" ]
null
null
null
Bot/script7.py
hjunor/Bot-python-Instagram
448312b12c5bdf959d7dd4ddb5a1eb5e1291f5c4
[ "MIT" ]
null
null
null
#parar de seguir seguidores ... from instapy import InstaPy from instapy import smart_run session = InstaPy(username='' , password='') with smart_run(session): session.set_do_follow(enabled=True, percentage=100) session.set_do_like(enabled=True, percentage=100) session.unfollow_users(amount=100, allFol...
37.48
130
0.716115
125
937
5.24
0.504
0.061069
0.054962
0.073282
0.319084
0.146565
0.146565
0.146565
0.146565
0.146565
0
0.0425
0.146211
937
24
131
39.041667
0.77625
0.14301
0
0
0
0
0.122396
0
0
0
0
0
0
1
0
false
0.083333
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
610406ba37832372e56f799a0a8405cc81ffc202
2,200
py
Python
src/GUI.py
samm82/WebexPollBuilder
9dc52595fae22043f48981c12eeda0d90b000fc8
[ "MIT" ]
null
null
null
src/GUI.py
samm82/WebexPollBuilder
9dc52595fae22043f48981c12eeda0d90b000fc8
[ "MIT" ]
13
2020-09-10T01:18:43.000Z
2020-09-21T12:56:58.000Z
src/GUI.py
samm82/WebexPollBuilder
9dc52595fae22043f48981c12eeda0d90b000fc8
[ "MIT" ]
null
null
null
import PySimpleGUI as sg def webexPollBuilderGUI(t): return sg.Window("Webex Poll Builder").Layout( [[sg.Text("How long should the question last for?"), sg.Combo(t)], [sg.Text("Select the file with the question and answers.")], [sg.In(), sg.FileBrowse()], [sg.Text("Sel...
28.571429
74
0.605909
269
2,200
4.95539
0.36803
0.047262
0.058515
0.054014
0.186797
0.181545
0.171043
0.114029
0.061515
0.061515
0
0.001812
0.247273
2,200
76
75
28.947368
0.80314
0
0
0
0
0
0.415455
0
0
0
0
0
0
1
0.26
false
0
0.02
0.02
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
610a96c124ddf123bf15adaeaa766b98e989700b
3,022
py
Python
tests/smoke/basic_tests.py
hsyed/rules_kotlin_old
7abdd03cf63dcbc629033aac82de7681d27eebe0
[ "Apache-2.0" ]
9
2018-02-08T04:07:22.000Z
2019-11-15T04:17:33.000Z
tests/smoke/basic_tests.py
hsyed/rules_kotlin_old
7abdd03cf63dcbc629033aac82de7681d27eebe0
[ "Apache-2.0" ]
null
null
null
tests/smoke/basic_tests.py
hsyed/rules_kotlin_old
7abdd03cf63dcbc629033aac82de7681d27eebe0
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
42.56338
149
0.74818
358
3,022
6.097765
0.385475
0.038479
0.087952
0.066422
0.420522
0.225836
0.179111
0.136051
0.136051
0.136051
0
0.003137
0.156188
3,022
70
150
43.171429
0.852941
0.273991
0
0.083333
0
0
0.288143
0.221507
0
0
0
0
0.194444
1
0.333333
false
0
0.055556
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
611181e7d0195f21d069fc45894a9609fc7010a3
11,206
py
Python
pynars/NARS/DataStructures/_py/Memory.py
AIxer/PyNARS
443b6a5e1c9779a1b861df1ca51ce5a190998d2e
[ "MIT" ]
null
null
null
pynars/NARS/DataStructures/_py/Memory.py
AIxer/PyNARS
443b6a5e1c9779a1b861df1ca51ce5a190998d2e
[ "MIT" ]
null
null
null
pynars/NARS/DataStructures/_py/Memory.py
AIxer/PyNARS
443b6a5e1c9779a1b861df1ca51ce5a190998d2e
[ "MIT" ]
null
null
null
from pynars.Config import Enable from pynars.NAL.Inference.LocalRules import solve_query, solution_query, solution_question from pynars.NAL.MetaLevelInference.VariableSubstitution import unification__var_const from pynars.NARS.DataStructures._py.Link import TaskLink from pynars.Narsese._py.Sentence import Goal, Judgem...
40.601449
165
0.602534
1,269
11,206
5.170213
0.173365
0.035208
0.024691
0.017375
0.385764
0.345831
0.300412
0.288523
0.262003
0.237769
0
0.002608
0.315724
11,206
276
166
40.601449
0.853026
0.199536
0
0.304965
0
0.007092
0.019095
0.015303
0
0
0
0.01087
0
1
0.120567
false
0.014184
0.078014
0.035461
0.312057
0
0
0
0
null
0
0
0
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
6111ddacc44418041a2bb2b9f13a62afcc927800
1,861
py
Python
fn/fn_engine.py
zjjott/curiosity
d6aa8ef2503e7e21e26f53e964667288337d4ed1
[ "MIT" ]
null
null
null
fn/fn_engine.py
zjjott/curiosity
d6aa8ef2503e7e21e26f53e964667288337d4ed1
[ "MIT" ]
null
null
null
fn/fn_engine.py
zjjott/curiosity
d6aa8ef2503e7e21e26f53e964667288337d4ed1
[ "MIT" ]
null
null
null
# coding=utf-8 """实现时间片算法""" from __future__ import unicode_literals, absolute_import from fn.fn_loop import LoopContext from fn.fn_eval import EvalContext from collections import deque class TimeSliceEngine(object): def __init__(self): # 运行上下文保存在这里面,切换时从里面开始切换,里面都应该是可执行的函数 # 上下文应当是一个可循环、可修改(运行结束...
23.2625
56
0.577109
198
1,861
5.217172
0.489899
0.085189
0.052275
0.03485
0.10455
0.056147
0
0
0
0
0
0.011182
0.327243
1,861
79
57
23.556962
0.813898
0.191295
0
0.153846
0
0
0
0
0
0
0
0
0
1
0.230769
false
0
0.102564
0.025641
0.487179
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
611c86f8ffe03767be73c533d68fe0d78449ed8f
12,750
py
Python
PythonProjects/99-CapstoneProject-202020-DavidAndVIbha/labs/lab4_read_sensors.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/99-CapstoneProject-202020-DavidAndVIbha/labs/lab4_read_sensors.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/99-CapstoneProject-202020-DavidAndVIbha/labs/lab4_read_sensors.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
""" Capstone Team Project. Code to run on a ROBOT (NOT a laptop). This module is for testing STAND-ALONE code running on the ROBOT (WITHOUT having LAPTOP GUI code running on the LAPTOP at the same time). In tests the various SENSORS available to you. Authors: Your professors (for the framework). Winter term, 2019-2...
37.946429
79
0.590039
1,547
12,750
4.777634
0.184228
0.078474
0.077391
0.052767
0.534434
0.509945
0.49655
0.457989
0.453254
0.423082
0
0.011372
0.241333
12,750
335
80
38.059701
0.752714
0.082039
0
0.516
0
0
0.475169
0.069457
0
0
0
0
0
1
0.032
false
0
0.008
0
0.04
0.7
0
0
0
null
0
0
0
0
0
0
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
611d13547f13c33b7652ed80fb015010531fb338
12,233
py
Python
tests/unit_tests/test_tethys_apps/test_base/test_workspace.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
79
2015-10-05T13:13:28.000Z
2022-02-01T12:30:33.000Z
tests/unit_tests/test_tethys_apps/test_base/test_workspace.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
542
2015-08-12T22:11:32.000Z
2022-03-29T22:18:08.000Z
tests/unit_tests/test_tethys_apps/test_base/test_workspace.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
71
2016-01-16T01:03:41.000Z
2022-03-31T17:55:54.000Z
import unittest import tethys_apps.base.workspace as base_workspace import os import shutil from unittest import mock from ... import UserFactory from django.http import HttpRequest from django.contrib.auth.models import User from django.core.exceptions import PermissionDenied import tethys_apps.base.app_base as tethys...
43.689286
118
0.710619
1,588
12,233
5.209698
0.108312
0.033845
0.052581
0.050526
0.751722
0.721383
0.684879
0.655506
0.604497
0.595673
0
0.006234
0.186953
12,233
279
119
43.845878
0.825558
0.054852
0
0.450495
0
0
0.159587
0.09414
0
0
0
0
0.247525
1
0.089109
false
0.019802
0.064356
0.009901
0.168317
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
6127b9212cd94fad711feb777e1aec83d4f79910
3,170
py
Python
src/crimedb/regions/base.py
pgriess/crimedb
c29c6fb32b9270516ee6f7aaf62d3c1886589f96
[ "Apache-2.0" ]
2
2015-11-23T22:58:04.000Z
2018-06-08T17:58:17.000Z
src/crimedb/regions/base.py
pgriess/crimedb
c29c6fb32b9270516ee6f7aaf62d3c1886589f96
[ "Apache-2.0" ]
6
2015-04-03T14:58:32.000Z
2015-04-05T19:47:21.000Z
src/crimedb/regions/base.py
pgriess/crimedb
c29c6fb32b9270516ee6f7aaf62d3c1886589f96
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Peter Griess # # 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,...
29.082569
79
0.65489
412
3,170
4.963592
0.48301
0.02934
0.016137
0.015648
0.102689
0.05868
0.05868
0.035208
0.035208
0
0
0.003911
0.274132
3,170
108
80
29.351852
0.884833
0.51041
0
0.081081
0
0
0.046995
0.01849
0
0
0
0
0
1
0.162162
false
0.081081
0.189189
0
0.432432
0
0
0
0
null
0
0
0
0
0
0
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
612b78a9bead3fbce9a078b2158bf96beee36bfe
2,429
py
Python
demands/models.py
moileretour/joatu
9d18cb58b4280235688e269be6fd2d34b77ccead
[ "MIT" ]
1
2018-05-01T04:54:36.000Z
2018-05-01T04:54:36.000Z
demands/models.py
moileretour/joatu
9d18cb58b4280235688e269be6fd2d34b77ccead
[ "MIT" ]
null
null
null
demands/models.py
moileretour/joatu
9d18cb58b4280235688e269be6fd2d34b77ccead
[ "MIT" ]
3
2018-04-13T18:28:32.000Z
2018-05-01T01:38:38.000Z
from django.db import models from profiles.models import Profile, ProfileHub from hubs.models import Hub, HubGeolocation from django.db.models.signals import post_save from demands.extras.coordinates import coordinates_calculation from demands.extras.distance import distance_calculation # Create your models here. clas...
48.58
121
0.766159
315
2,429
5.726984
0.301587
0.049889
0.059867
0.079823
0.195122
0.099778
0.06541
0.06541
0.06541
0.06541
0
0.010481
0.135858
2,429
50
122
48.58
0.848976
0.022231
0
0
0
0
0.015592
0
0
0
0
0
0
1
0.025
false
0
0.15
0
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
612c7b5f5d8b05511afc52271ac9e21aebf3efa3
3,353
py
Python
post.py
DzikuVx/PogodaWSzczecinie
cac67d69d7e57081dd325914ca4c2a3c0bdc65ab
[ "MIT" ]
null
null
null
post.py
DzikuVx/PogodaWSzczecinie
cac67d69d7e57081dd325914ca4c2a3c0bdc65ab
[ "MIT" ]
null
null
null
post.py
DzikuVx/PogodaWSzczecinie
cac67d69d7e57081dd325914ca4c2a3c0bdc65ab
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import random import time import tweetpony import urllib2 import json from config import config def fetch(url): req = urllib2.Request(url) response = urllib2.urlopen(req) return response.read() def get_json(): return json.loads(fetch("http://weather.spychalski.info/api.php")...
33.19802
119
0.559201
398
3,353
4.59799
0.30402
0.078142
0.096175
0.104918
0.434973
0.393443
0.35847
0.35847
0.35847
0.266667
0
0.015853
0.303907
3,353
100
120
33.53
0.768209
0.024456
0
0.3
0
0
0.212186
0
0
0
0
0
0
0
null
null
0
0.085714
null
null
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b615798ba86de33143bd8b83d54e8c2cb5fd5d97
1,992
py
Python
src/licma/tests/test_pyrules_m2crypto_oop.py
stg-tud/licma
b899e6e682f7716d19e79d6ce7b73c28c6efd4cf
[ "MIT" ]
5
2021-09-13T11:24:13.000Z
2022-03-18T21:56:58.000Z
src/licma/tests/test_pyrules_m2crypto_oop.py
stg-tud/licma
b899e6e682f7716d19e79d6ce7b73c28c6efd4cf
[ "MIT" ]
null
null
null
src/licma/tests/test_pyrules_m2crypto_oop.py
stg-tud/licma
b899e6e682f7716d19e79d6ce7b73c28c6efd4cf
[ "MIT" ]
1
2021-09-13T06:02:20.000Z
2021-09-13T06:02:20.000Z
import unittest from licma.babel_fish.babel_fish import BabelFish from licma.rules.python.pyrules_m2crypto.pyrule1_m2crypto import PyRule1M2Crypto from licma.rules.python.pyrules_m2crypto.pyrule2_m2crypto import PyRule2M2Crypto from licma.rules.python.pyrules_m2crypto.pyrule3_m2crypto import PyRule3M2Crypto from licma...
46.325581
98
0.703313
198
1,992
6.813131
0.242424
0.096368
0.133432
0.17791
0.485545
0.366938
0
0
0
0
0
0.041536
0.202309
1,992
42
99
47.428571
0.807426
0
0
0
0
0
0.310241
0.306225
0
0
0
0
0
1
0.15625
false
0
0.25
0
0.46875
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
b6176beeb32ae6064f09171a1d1d0db9edfa1f3a
1,160
py
Python
leflow/easy_example.py
santacml/Malware-as-Video
12dc3954f2237cb34857a44eadbb5ca76f8e97b5
[ "MIT" ]
1
2019-05-26T22:40:00.000Z
2019-05-26T22:40:00.000Z
leflow/easy_example.py
santacml/Malware-as-Video
12dc3954f2237cb34857a44eadbb5ca76f8e97b5
[ "MIT" ]
null
null
null
leflow/easy_example.py
santacml/Malware-as-Video
12dc3954f2237cb34857a44eadbb5ca76f8e97b5
[ "MIT" ]
1
2019-06-27T20:21:49.000Z
2019-06-27T20:21:49.000Z
import tensorflow as tf import numpy as np import sys sys.path.append('../LeFlow/src') import processMif as mif # This creates a random 32-bit floating point input for your variables def rand(dim): #return np.random.random(dim).astype(np.float32) return np.ones(dim).astype(np.float32) nodes = 1 X = tf.place...
25.777778
97
0.671552
183
1,160
4.191257
0.480874
0.027379
0.028683
0.046936
0
0
0
0
0
0
0
0.042328
0.185345
1,160
44
98
26.363636
0.769312
0.347414
0
0
0
0
0.064343
0
0
0
0
0
0
0
null
null
0
0.181818
null
null
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b618335f706022104fc8e982cca8ccd5f542436e
1,894
py
Python
123.py
zhirihuixin/wzh_private
b090a1f68093b180b83b4f3146e56d264f63d5bd
[ "MIT" ]
1
2017-03-21T09:07:30.000Z
2017-03-21T09:07:30.000Z
123.py
zhirihuixin/wzh_private
b090a1f68093b180b83b4f3146e56d264f63d5bd
[ "MIT" ]
null
null
null
123.py
zhirihuixin/wzh_private
b090a1f68093b180b83b4f3146e56d264f63d5bd
[ "MIT" ]
null
null
null
import pickle import numpy as np pkl_file = open('D:\wangzhihui\\123\wzh\ResNext101_32_4d_faster_rcnn_merge_bn_scale_iter_60000\\detections.pkl', 'rb') data1 = pickle.load(pkl_file) def py_cpu_nms(dets, thresh): """Pure Python NMS baseline.""" x1 = dets[:, 0] y1 = dets[:, 1] x2 = dets[:, 2] y2 = d...
23.675
118
0.534319
332
1,894
2.990964
0.286145
0.024169
0.050352
0.048338
0.125881
0.11279
0.09567
0.062437
0.062437
0.062437
0
0.086986
0.229145
1,894
79
119
23.974684
0.593151
0
0
0.153846
0
0
0.053311
0.052189
0
0
0
0
0
0
null
null
0
0.046154
null
null
0.261538
0
0
0
null
0
0
0
0
0
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
b61b86ab032b9a24da2c37b62cc30d9b56165a99
1,447
py
Python
autodraft/draftHost/importers/positions.py
gnmerritt/autodraft
b4071f9cc5eaf57beb19ba1aec99377afdbfb09a
[ "MIT" ]
null
null
null
autodraft/draftHost/importers/positions.py
gnmerritt/autodraft
b4071f9cc5eaf57beb19ba1aec99377afdbfb09a
[ "MIT" ]
null
null
null
autodraft/draftHost/importers/positions.py
gnmerritt/autodraft
b4071f9cc5eaf57beb19ba1aec99377afdbfb09a
[ "MIT" ]
null
null
null
from draftHost.models import NflPosition, FantasyPosition # path relative to manage.py NFL_DATA_FILE = "draftHost/data/nfl_positions.txt" FANTASY_DATA_FILE = "draftHost/data/fantasy_positions.txt" class PositionImporter(object): def add_positions(self): try: data = open(NFL_DATA_FILE, 'r') ...
33.651163
73
0.54112
150
1,447
5.093333
0.406667
0.041885
0.028796
0.054974
0.246073
0.183246
0.183246
0.125654
0.125654
0.125654
0
0.004292
0.355909
1,447
42
74
34.452381
0.815451
0.017968
0
0.342857
0
0
0.10007
0.047921
0
0
0
0
0
0
null
null
0
0.057143
null
null
0.114286
0
0
0
null
0
0
0
0
0
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
b62a365f11a3573b0d239a3c19cd065df9a235b5
1,048
py
Python
tests/middleware/test_secure_headers_middleware.py
Abeautifulsnow/masonite
f0ebb5ca05f5d88f21264e1cd0934435bd0a8791
[ "MIT" ]
1
2022-02-24T06:21:18.000Z
2022-02-24T06:21:18.000Z
tests/middleware/test_secure_headers_middleware.py
Abeautifulsnow/masonite
f0ebb5ca05f5d88f21264e1cd0934435bd0a8791
[ "MIT" ]
1
2020-10-26T12:33:05.000Z
2020-10-26T12:33:05.000Z
tests/middleware/test_secure_headers_middleware.py
Abeautifulsnow/masonite
f0ebb5ca05f5d88f21264e1cd0934435bd0a8791
[ "MIT" ]
null
null
null
""" Test Secure Headers Midddleware """ from src.masonite.middleware import SecureHeadersMiddleware from src.masonite.request import Request from src.masonite.testing import TestCase, generate_wsgi class TestSecureHeadersMiddleware(TestCase): def setUp(self): super().setUp() self.request = Reque...
40.307692
113
0.73187
118
1,048
6.389831
0.389831
0.116711
0.067639
0.095491
0.27321
0.27321
0.135279
0.135279
0
0
0
0.008979
0.149809
1,048
25
114
41.92
0.837262
0.02958
0
0.222222
1
0
0.136769
0.046581
0
0
0
0
0.166667
1
0.166667
false
0
0.166667
0
0.388889
0
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
b630cb3736e98a7c40bd2693a526558233a1f22d
745
py
Python
meiduo_mall/meiduo_mall/utils/authenticate.py
yuluo0809/meiduo
384935ee44bbbfa82314363ae0b886ca0a5ca70e
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/utils/authenticate.py
yuluo0809/meiduo
384935ee44bbbfa82314363ae0b886ca0a5ca70e
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/utils/authenticate.py
yuluo0809/meiduo
384935ee44bbbfa82314363ae0b886ca0a5ca70e
[ "MIT" ]
null
null
null
from django.contrib.auth.backends import ModelBackend import re from users.models import User from django.db.models import Q class MeiduoModelBackend(ModelBackend): def authenticate(self, request, username=None, password=None, **kwargs): if request is None: try: user = User.obj...
32.391304
97
0.591946
82
745
5.341463
0.426829
0.045662
0.050228
0.082192
0.484018
0.484018
0.484018
0.484018
0.484018
0.484018
0
0
0.327517
745
22
98
33.863636
0.874252
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0.05
false
0.15
0.2
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
b6391b49ca6fcd9413c9bf008da249b350c2a41b
568
py
Python
am_instapound_backend/pictures/api/permissions.py
eryknn/am-instapound-backend
b7114ce323229e92b2770403cb72886726a461ef
[ "MIT" ]
null
null
null
am_instapound_backend/pictures/api/permissions.py
eryknn/am-instapound-backend
b7114ce323229e92b2770403cb72886726a461ef
[ "MIT" ]
null
null
null
am_instapound_backend/pictures/api/permissions.py
eryknn/am-instapound-backend
b7114ce323229e92b2770403cb72886726a461ef
[ "MIT" ]
null
null
null
from rest_framework import permissions class IsPictureCreatorOrSafeOnly(permissions.BasePermission): def has_object_permission(self, request, view, obj): if request.method in permissions.SAFE_METHODS or view.action == 'like': return True return obj.uploaded_by == request.user class...
28.4
79
0.730634
63
568
6.444444
0.492063
0.123153
0.137931
0.152709
0.512315
0.512315
0.512315
0.512315
0.512315
0.512315
0
0
0.200704
568
19
80
29.894737
0.894273
0
0
0.363636
0
0
0.007042
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0
0.818182
0
0
0
0
null
0
0
0
0
0
0
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
b63a56f5ac4eb798614b96efdd9374c1833b3b4f
5,597
py
Python
focus/PhaseretrievalresultsTinyTim.py
sniemi/SamPy
e048756feca67197cf5f995afd7d75d8286e017b
[ "BSD-2-Clause" ]
5
2016-05-28T14:12:28.000Z
2021-04-22T10:23:12.000Z
focus/PhaseretrievalresultsTinyTim.py
sniemi/SamPy
e048756feca67197cf5f995afd7d75d8286e017b
[ "BSD-2-Clause" ]
null
null
null
focus/PhaseretrievalresultsTinyTim.py
sniemi/SamPy
e048756feca67197cf5f995afd7d75d8286e017b
[ "BSD-2-Clause" ]
2
2015-07-13T10:04:10.000Z
2021-04-22T10:23:23.000Z
""" TinyTim model PSF phase retrieval results. HISTORY: Created on March 3, 2011 :author: Sami-Matias Niemi :contact: niemi@stsci.edu :version: 0.1 """ import matplotlib matplotlib.use('PDF') import pylab as P import glob as G import numpy as N import os from matplotlib import cm import SamPy.focus.phaseretrievalres...
31.44382
98
0.516527
740
5,597
3.867568
0.285135
0.033194
0.033543
0.025157
0.341719
0.314465
0.279874
0.177149
0.132075
0.104822
0
0.058224
0.334108
5,597
178
99
31.44382
0.709686
0.031803
0
0.193798
0
0
0.167243
0.006144
0
0
0
0
0
0
null
null
0
0.054264
null
null
0.093023
0
0
0
null
0
0
0
0
0
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
b63dbaf072cedc88a4143c750b428be483d16342
2,115
py
Python
docdown/media.py
Mobelux/DocDown-Python
7f6270dfe17678cc0f2e899f9665342a0784cffb
[ "BSD-3-Clause" ]
1
2016-12-13T19:37:20.000Z
2016-12-13T19:37:20.000Z
docdown/media.py
Mobelux/DocDown-Python
7f6270dfe17678cc0f2e899f9665342a0784cffb
[ "BSD-3-Clause" ]
2
2021-04-20T13:52:15.000Z
2021-04-26T16:26:24.000Z
docdown/media.py
Mobelux/DocDown-Python
7f6270dfe17678cc0f2e899f9665342a0784cffb
[ "BSD-3-Clause" ]
4
2017-05-21T12:59:09.000Z
2021-04-19T17:41:32.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals, print_function from markdown.treeprocessors import Treeprocessor from markdown.extensions import Extension class MediaTreeprocessor(Treeprocessor): def __init__(self, media_url=None, **kwargs): self.media_url = media_url ...
39.166667
112
0.597636
241
2,115
5.041494
0.369295
0.072428
0.115226
0.148148
0.148148
0.148148
0.148148
0.148148
0.148148
0.148148
0
0.001318
0.28227
2,115
53
113
39.90566
0.799078
0.242553
0
0
0
0
0.052963
0
0
0
0
0.018868
0
1
0.178571
false
0
0.107143
0.035714
0.392857
0.035714
0
0
0
null
0
0
0
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
b63f2d5649a160a388ae34356632cd2b5e280e3f
2,275
py
Python
kymatio/phaseexp1d/pyscatwave/scatwave/scattering1d/examples/synthetic.py
sixin-zh/kymatio_wph
237c0d2009766cf83b2145420a14d3c6e90dc983
[ "BSD-3-Clause" ]
null
null
null
kymatio/phaseexp1d/pyscatwave/scatwave/scattering1d/examples/synthetic.py
sixin-zh/kymatio_wph
237c0d2009766cf83b2145420a14d3c6e90dc983
[ "BSD-3-Clause" ]
null
null
null
kymatio/phaseexp1d/pyscatwave/scatwave/scattering1d/examples/synthetic.py
sixin-zh/kymatio_wph
237c0d2009766cf83b2145420a14d3c6e90dc983
[ "BSD-3-Clause" ]
null
null
null
import torch from torch.autograd import Variable from scatwave import Scattering1D import matplotlib.pyplot as plt import numpy as np from sklearn.utils import check_random_state def generate_harmonic_signal(T, num_intervals=4, gamma=0.9, random_state=42): """ Generates a harmonic signal, which is made of pie...
32.971014
77
0.638681
340
2,275
4.152941
0.35
0.031161
0.038244
0.048867
0.120397
0.120397
0.120397
0.077904
0.077904
0.077904
0
0.037543
0.227253
2,275
68
78
33.455882
0.765643
0.103736
0
0
1
0
0.051587
0
0
0
0
0
0
1
0.039216
false
0
0.117647
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b648270cc7e72988968f45c3ecb5aa68300d62b6
397
py
Python
Python/concatenation.py
aaavinash85/Python
cd58606f6f01c9bdccffb58e0f73825958679125
[ "MIT" ]
null
null
null
Python/concatenation.py
aaavinash85/Python
cd58606f6f01c9bdccffb58e0f73825958679125
[ "MIT" ]
null
null
null
Python/concatenation.py
aaavinash85/Python
cd58606f6f01c9bdccffb58e0f73825958679125
[ "MIT" ]
null
null
null
name='avi' print(name) #name[0]='k' here this results in a error because strings are immutable last_letters=name[1:] print(last_letters) print('k'+last_letters) #here is the string concateation #here we replaced 'a' with 'k' lname='koshal' print("the concated string=",'Avinash'+ ln...
33.083333
83
0.642317
60
397
4.2
0.566667
0.130952
0
0
0
0
0
0
0
0
0
0.019802
0.236776
397
11
84
36.090909
0.811881
0.453401
0
0
0
0
0.178404
0
0
0
0
0
0
1
0
false
0
0
0
0
0.555556
0
0
0
null
0
0
0
0
0
0
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
b6513dae72381facd289c7f1890adba74d041c52
393
py
Python
generate_azn.py
brunston/enigma
3944fade43e100f3f631e308cf70fd28242a7b26
[ "MIT" ]
null
null
null
generate_azn.py
brunston/enigma
3944fade43e100f3f631e308cf70fd28242a7b26
[ "MIT" ]
null
null
null
generate_azn.py
brunston/enigma
3944fade43e100f3f631e308cf70fd28242a7b26
[ "MIT" ]
null
null
null
# generate a*z_n = {ax : x in z_n} for any a in z_n # brupoon n = int(input("Z_n (integer n)? ")) a = int(input("a for a*Z_n (integer a)?")) z_n = [] az_n = [] for i in range(n): # standard set z_n z_n.append(i) for x in range(n): value = (a*x) % n # find ax in z_n az_n.append(value) #az_n = sort...
18.714286
51
0.572519
88
393
2.363636
0.284091
0.115385
0.057692
0.048077
0
0
0
0
0
0
0
0.006601
0.229008
393
20
52
19.65
0.679868
0.274809
0
0
1
0
0.21147
0
0
0
0
0
0
1
0
false
0
0
0
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b653fd0336b468f5a851d3b61d250feb356b48bb
39,571
py
Python
_build/jupyter_execute/lectures/lecture4.py
hfboyce/tableau_course
1480600c711bfa91d2169e999bbf194dd0332088
[ "MIT" ]
null
null
null
_build/jupyter_execute/lectures/lecture4.py
hfboyce/tableau_course
1480600c711bfa91d2169e999bbf194dd0332088
[ "MIT" ]
null
null
null
_build/jupyter_execute/lectures/lecture4.py
hfboyce/tableau_course
1480600c711bfa91d2169e999bbf194dd0332088
[ "MIT" ]
null
null
null
# SVM with RBF Kernel and Feature Preprocessing *Hayley Boyce, April 28th 2021* # Importing our libraries import pandas as pd import altair as alt import numpy as np from sklearn.tree import DecisionTreeClassifier from sklearn.dummy import DummyClassifier, DummyRegressor from sklearn.neighbors import KNeighborsClassi...
38.795098
354
0.753329
6,502
39,571
4.488465
0.146724
0.024877
0.00771
0.004523
0.226494
0.176227
0.152755
0.126028
0.106874
0.087171
0
0.012725
0.157969
39,571
1,019
355
38.83317
0.863145
0
0
0.150847
0
0.10339
0.043639
0.003104
0
0
0
0
0
0
null
null
0.00339
0.045763
null
null
0.025424
0
0
0
null
0
0
0
0
0
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
b6547eff1c540120f338f2f7ef9eb6aa040c4692
169
py
Python
HomeWork7.18.py
TiAmolj/Python-By-Joker
df37ddfb58c40d68298b4e862ba23671943de8cf
[ "Apache-2.0" ]
null
null
null
HomeWork7.18.py
TiAmolj/Python-By-Joker
df37ddfb58c40d68298b4e862ba23671943de8cf
[ "Apache-2.0" ]
null
null
null
HomeWork7.18.py
TiAmolj/Python-By-Joker
df37ddfb58c40d68298b4e862ba23671943de8cf
[ "Apache-2.0" ]
null
null
null
# 1 import math r = float(input('输入五边形顶点到中心的距离:')) s = 2*r*(math.sin(math.pi/5)) Area = 5*s*s/(4*math.tan(math.pi/5)) print('The area of the pentagon is %.2f'%Area)
28.166667
46
0.633136
34
169
3.147059
0.617647
0.11215
0.130841
0
0
0
0
0
0
0
0
0.048276
0.142012
169
6
46
28.166667
0.689655
0.005917
0
0
0
0
0.283951
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
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
b656698542559160e5320731eda58e8762740f15
20,918
py
Python
app/models.py
LianYun/xing
de0656083133ca78bdbd42c64c2fa3ce1a4fe962
[ "MIT" ]
2
2015-12-20T15:21:30.000Z
2016-08-25T08:56:31.000Z
app/models.py
LianYun/xing
de0656083133ca78bdbd42c64c2fa3ce1a4fe962
[ "MIT" ]
13
2015-12-13T15:57:30.000Z
2016-03-06T09:46:17.000Z
app/models.py
LianYun/xing
de0656083133ca78bdbd42c64c2fa3ce1a4fe962
[ "MIT" ]
null
null
null
# _*_ coding: utf-8 _*_ """ 本部分定义应用的所有数据库对象。 """ from werkzeug.security import generate_password_hash, check_password_hash from flask.ext.login import UserMixin, AnonymousUserMixin from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from flask import current_app, url_for import datetime from markdow...
34.747508
126
0.563295
2,285
20,918
4.978556
0.153611
0.031646
0.037799
0.025404
0.459124
0.360759
0.327444
0.268372
0.212377
0.171062
0
0.015569
0.321398
20,918
601
127
34.805324
0.78584
0.019074
0
0.29718
1
0.004338
0.079743
0.00511
0
0
0.001376
0
0
1
0.097614
false
0.023861
0.032538
0.030369
0.373102
0
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
b65918d8d15e00f6bff0edc5207846f79e249686
3,058
py
Python
src/python_cryptography/4.signature.py
sudeep0901/python
7a50af12e72d21ca4cad7f2afa4c6f929552043f
[ "MIT" ]
null
null
null
src/python_cryptography/4.signature.py
sudeep0901/python
7a50af12e72d21ca4cad7f2afa4c6f929552043f
[ "MIT" ]
3
2019-12-26T05:13:55.000Z
2020-03-07T06:59:56.000Z
src/python_cryptography/4.signature.py
sudeep0901/python
7a50af12e72d21ca4cad7f2afa4c6f929552043f
[ "MIT" ]
null
null
null
# RSA # RSA Tool generate private public key from Crypto.PublicKey import RSA from Crypto.Cipher import PKCS1_OAEP from Crypto import Random from Crypto.Hash import SHA256 import base64 from Crypto.Signature import PKCS1_PSS class CrptyoRSA: PRIVATE_KEY_FILE = "private_key.pem" PUBLIC_KEY_FILE = "public_key...
31.854167
74
0.683126
384
3,058
5.138021
0.192708
0.082108
0.028383
0.03852
0.228586
0.130765
0.081095
0.081095
0
0
0
0.019789
0.223349
3,058
95
75
32.189474
0.810947
0.105625
0
0.031746
1
0
0.036357
0
0
0
0
0
0
1
0.15873
false
0
0.15873
0.031746
0.47619
0.031746
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
b65d709e70f3299340952e6028e59d6ffbba4e90
547
py
Python
mundo_2/ex066.py
tseiiti/curso_em_video
59565ce809c1f025fb41ab69de3b8c5b53c8f7b2
[ "MIT" ]
null
null
null
mundo_2/ex066.py
tseiiti/curso_em_video
59565ce809c1f025fb41ab69de3b8c5b53c8f7b2
[ "MIT" ]
null
null
null
mundo_2/ex066.py
tseiiti/curso_em_video
59565ce809c1f025fb41ab69de3b8c5b53c8f7b2
[ "MIT" ]
null
null
null
from os import system, name system('cls' if name == 'nt' else 'clear') dsc = ('''DESAFIO 066: Crie um programa que leia vários números inteiros pelo teclado. O programa só vai parar quando o usuário digitar o valor 999, que é a condição de parada. No final, mostre quantos números foram digitados e qual foi a soma e...
24.863636
68
0.670932
96
547
3.822917
0.71875
0.027248
0
0
0
0
0
0
0
0
0
0.030516
0.221207
547
21
69
26.047619
0.830986
0
0
0
0
0
0.641682
0
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b66034e39bac2f1599e4b00ddf1f3159436715fb
11,943
py
Python
tools/pnfs_db_restore.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
4
2021-10-17T11:17:59.000Z
2022-02-28T16:58:40.000Z
tools/pnfs_db_restore.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
17
2021-10-05T21:44:06.000Z
2022-03-31T16:58:40.000Z
tools/pnfs_db_restore.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
8
2021-09-02T18:55:49.000Z
2022-03-09T21:05:28.000Z
#!/usr/bin/env python ############################################################################### # # This script is to be used to restore and start pnfs from live backup # # # $Id$ ############################################################################### import getopt import os import pwd import re import s...
33.928977
135
0.554635
1,463
11,943
4.416951
0.233766
0.01857
0.012999
0.010059
0.127669
0.113123
0.091767
0.079851
0.076447
0.051377
0
0.007341
0.292808
11,943
351
136
34.025641
0.757755
0
0
0.203571
0
0.010714
0.202183
0.026123
0
0
0
0
0
0
null
null
0.003571
0.05
null
null
0.078571
0
0
0
null
0
0
0
0
0
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
b664480b84ef977aa0b729cdb4d540f18537ee31
185
py
Python
Textual/ver.py
precla/plugins
3bcfe83295264bc73e6dfe70ae15d9b3d6650f6e
[ "MIT" ]
93
2015-01-05T23:19:59.000Z
2022-02-16T00:56:50.000Z
Textual/ver.py
FichteForks/tingping-plugins
85e07ccb3b66b78414dd5aa6f14f3a17bd384a2b
[ "MIT" ]
7
2015-01-21T23:50:08.000Z
2018-07-26T21:29:38.000Z
Textual/ver.py
FichteForks/tingping-plugins
85e07ccb3b66b78414dd5aa6f14f3a17bd384a2b
[ "MIT" ]
53
2015-01-19T12:16:58.000Z
2021-08-30T01:18:29.000Z
#!/usr/bin/env python import sys if len(sys.argv) < 3 or not sys.argv[2]: print('/echo nick required.') sys.exit() nick = sys.argv[2] print('/ctcp {} VERSION'.format(nick))
15.416667
40
0.627027
31
185
3.741935
0.677419
0.181034
0.137931
0.224138
0
0
0
0
0
0
0
0.019737
0.178378
185
11
41
16.818182
0.743421
0.108108
0
0
0
0
0.219512
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.333333
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
b670fa0f0102d71543d8ccaedc1d30fd90503e7f
477
py
Python
payroll/employee_management/migrations/0015_auto_20200302_1717.py
the-krafty-koder/pay-3
20426ef00b78c2a65fb4031a7692866bd22a991a
[ "MIT" ]
1
2021-03-26T19:39:30.000Z
2021-03-26T19:39:30.000Z
payroll/employee_management/migrations/0015_auto_20200302_1717.py
the-krafty-koder/pay-3
20426ef00b78c2a65fb4031a7692866bd22a991a
[ "MIT" ]
12
2020-10-27T22:47:01.000Z
2022-03-12T00:42:49.000Z
payroll/employee_management/migrations/0015_auto_20200302_1717.py
the-krafty-koder/pay-3
20426ef00b78c2a65fb4031a7692866bd22a991a
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2020-03-02 17:17 from django.db import migrations, models import employee_management.models class Migration(migrations.Migration): dependencies = [ ('employee_management', '0014_auto_20200302_1716'), ] operations = [ migrations.AlterField( mode...
23.85
93
0.66457
52
477
5.903846
0.692308
0.175896
0.156352
0
0
0
0
0
0
0
0
0.085165
0.236897
477
19
94
25.105263
0.758242
0.09434
0
0
1
0
0.130233
0.053488
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b6743b740ca63e21a2b17bf0b3f68e580bd80f5d
353
py
Python
samples/sample.py
eduardo-vitral/BALRoGO
d4608aa861899fdd447613968fbd53019037bc46
[ "MIT" ]
null
null
null
samples/sample.py
eduardo-vitral/BALRoGO
d4608aa861899fdd447613968fbd53019037bc46
[ "MIT" ]
null
null
null
samples/sample.py
eduardo-vitral/BALRoGO
d4608aa861899fdd447613968fbd53019037bc46
[ "MIT" ]
null
null
null
from balrogo import gaia # Read HDU print("Reading input...") path = r"./samples/SCULPTOR.fits" # Run sample code print("Running code...") final_data, results_sd, var_sd, results_pm, var_pm = gaia.extract_object(path) print("results_pm:", results_pm) print("var_pm:", var_pm) print("results_sd:", result...
22.0625
79
0.696884
54
353
4.296296
0.481481
0.116379
0.060345
0
0
0
0
0
0
0
0
0
0.147309
353
15
80
23.533333
0.770764
0.067989
0
0
0
0
0.289389
0.073955
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.666667
0
0
0
null
0
0
0
0
0
0
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
b678cfb0be769b12f1acf94c09d18da017d53bfe
757
py
Python
ex042.py
ezequielwish/Python3
a4489d49e6919649437cb9e682614240701e2b68
[ "MIT" ]
1
2022-01-24T02:01:32.000Z
2022-01-24T02:01:32.000Z
ex042.py
ezequielwish/Python3
a4489d49e6919649437cb9e682614240701e2b68
[ "MIT" ]
null
null
null
ex042.py
ezequielwish/Python3
a4489d49e6919649437cb9e682614240701e2b68
[ "MIT" ]
null
null
null
# Refaça o DESAFIO 35 dos triângulos, acrescentando o recurso de mostrar que tipo de triângulo será formado: # # – EQUILÁTERO: todos os lados iguais # # – ISÓSCELES: dois lados iguais, um diferente # # – ESCALENO: todos os lados diferentes side1 = int(input('Primeiro lado: ')) side2 = int(input('Segundo lado: ')) side...
31.541667
108
0.65786
103
757
4.815534
0.495146
0.080645
0.048387
0.068548
0
0
0
0
0
0
0
0.0625
0.217966
757
23
109
32.913043
0.77027
0.297226
0
0.142857
0
0
0.30916
0
0
0
0
0.043478
0
1
0
false
0
0
0
0
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
b67b288e83765b98929b985fef59c826ad896b2c
1,532
py
Python
usaspending_api/references/migrations/0052_toptieragencypublisheddabsview.py
ststuck/usaspending-api
b13bd5bcba0369ff8512f61a34745626c3969391
[ "CC0-1.0" ]
217
2016-11-03T17:09:53.000Z
2022-03-10T04:17:54.000Z
usaspending_api/references/migrations/0052_toptieragencypublisheddabsview.py
Hk92a/usaspending-api
25daa9dbc30835b8f4b4c797c592ba9ecc78ca00
[ "CC0-1.0" ]
622
2016-09-02T19:18:23.000Z
2022-03-29T17:11:01.000Z
usaspending_api/references/migrations/0052_toptieragencypublisheddabsview.py
Hk92a/usaspending-api
25daa9dbc30835b8f4b4c797c592ba9ecc78ca00
[ "CC0-1.0" ]
93
2016-09-07T20:28:57.000Z
2022-02-25T00:25:27.000Z
# Generated by Django 2.2.19 on 2021-03-11 18:27 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ("references", "0051_auto_20210223_1404"), ("submissions", "0015_submissionattributes_history"), ] operation...
34.044444
109
0.553525
150
1,532
5.386667
0.506667
0.112624
0.055693
0.081683
0.10396
0
0
0
0
0
0
0.037344
0.370757
1,532
44
110
34.818182
0.80083
0.030026
0
0.090909
1
0
0.292786
0.213579
0
0
0
0
0
1
0
false
0
0.090909
0
0.227273
0
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
b67d5f4f80272dd118a8a67e39a34490d5c2cb23
392
py
Python
user/migrations/0002_auto_20171228_1322.py
MirzaBaig715/learn-online
1f2e5a48e383d632933b1eca98f7a2a88a92b2db
[ "MIT" ]
null
null
null
user/migrations/0002_auto_20171228_1322.py
MirzaBaig715/learn-online
1f2e5a48e383d632933b1eca98f7a2a88a92b2db
[ "MIT" ]
null
null
null
user/migrations/0002_auto_20171228_1322.py
MirzaBaig715/learn-online
1f2e5a48e383d632933b1eca98f7a2a88a92b2db
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2017-12-28 13:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0001_initial'), ] operations = [ migrations.AlterField( model_name='tutor', name='salary', field=m...
20.631579
73
0.591837
43
392
5.325581
0.837209
0
0
0
0
0
0
0
0
0
0
0.0681
0.288265
392
18
74
21.777778
0.752688
0.109694
0
0
1
0
0.07781
0
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
b680c50a7b7c89ff2e3642335168615352eb2ef1
1,132
py
Python
twitter_clone/users/models/profile.py
ag94e/Twitter_clone
037ab41b79e7c236a85bb0e9c0e892dfa3ba407a
[ "MIT" ]
null
null
null
twitter_clone/users/models/profile.py
ag94e/Twitter_clone
037ab41b79e7c236a85bb0e9c0e892dfa3ba407a
[ "MIT" ]
null
null
null
twitter_clone/users/models/profile.py
ag94e/Twitter_clone
037ab41b79e7c236a85bb0e9c0e892dfa3ba407a
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models from django.core.validators import RegexValidator class Profile(models.Model): """ Profile model. A proxy model that extends the data with data with extra information. """ user = models.OneToOneField(User, on_delete=models.CAS...
33.294118
102
0.678445
137
1,132
5.49635
0.576642
0.039841
0.099602
0.103586
0
0
0
0
0
0
0
0.029445
0.219965
1,132
34
103
33.294118
0.82333
0.089223
0
0
0
0
0.109235
0
0
0
0
0
0
1
0.037037
false
0
0.111111
0
0.592593
0
0
0
0
null
0
0
0
0
0
0
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
b6854c3fe8824d72793c01c59fac84170b474e24
636
py
Python
setup.py
bmsimang/Analyse_Function_Predict_Group2
2f4ee80860ff781493e78cff693d18dd049fdd35
[ "MIT" ]
null
null
null
setup.py
bmsimang/Analyse_Function_Predict_Group2
2f4ee80860ff781493e78cff693d18dd049fdd35
[ "MIT" ]
null
null
null
setup.py
bmsimang/Analyse_Function_Predict_Group2
2f4ee80860ff781493e78cff693d18dd049fdd35
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='predict_functions_package', version='0.1', packages=find_packages(exclude=['tests*']), license='MIT', description='A list of python Data Analysis Functions', long_description=open('README.md').read(), install_requires=['numpy', 'panda...
45.428571
144
0.745283
76
636
6.118421
0.75
0.086022
0
0
0
0
0
0
0
0
0
0.014311
0.121069
636
14
145
45.428571
0.817531
0
0
0
0
0.076923
0.565149
0.197802
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
b69653e1f2c2a35c5240a6afe449e5f0e3532b91
1,598
py
Python
scripts/download_external.py
Wujingli/OpenWebGlobeDataProcessing
932eaa00c81fc0571122bc618ade010fa255735e
[ "MIT" ]
null
null
null
scripts/download_external.py
Wujingli/OpenWebGlobeDataProcessing
932eaa00c81fc0571122bc618ade010fa255735e
[ "MIT" ]
null
null
null
scripts/download_external.py
Wujingli/OpenWebGlobeDataProcessing
932eaa00c81fc0571122bc618ade010fa255735e
[ "MIT" ]
2
2019-06-08T15:59:26.000Z
2021-02-06T08:13:01.000Z
#!/usr/bin/python import urllib2 import sys import os import os.path import tarfile #------------------------------------------------------------------------------- # OS specific setupls if sys.platform == 'win32': print "Windows detected..." dest = "dataprocessing_external_win32.tar.gz" elif sys.platform == '...
28.035088
87
0.518773
149
1,598
5.516779
0.496644
0.053528
0.126521
0.124088
0
0
0
0
0
0
0
0.006484
0.131414
1,598
56
88
28.535714
0.585735
0.306633
0
0.055556
0
0
0.394713
0.123974
0
0
0
0
0
0
null
null
0
0.138889
null
null
0.277778
0
0
0
null
0
0
0
0
0
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
b6a965062e5afc5623bfcef05658f50d3355f266
6,919
py
Python
src/summarizeRankings.py
dentearl/assemblAnalysis
c8524456dff720d37356c55d7640687415bc1df6
[ "MIT" ]
1
2020-11-12T06:32:26.000Z
2020-11-12T06:32:26.000Z
src/summarizeRankings.py
dentearl/assemblAnalysis
c8524456dff720d37356c55d7640687415bc1df6
[ "MIT" ]
null
null
null
src/summarizeRankings.py
dentearl/assemblAnalysis
c8524456dff720d37356c55d7640687415bc1df6
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ summarizeRankings.py dent earl, dearl (a) soe ucsc edu 27 April 2011 Python script to take a set of rankings files and aggregate their results. """ ############################## # Copyright (C) 2009-2011 by # Dent Earl (dearl@soe.ucsc.edu, dent.earl@gmail.com) # Benedict Paten (benedict@so...
34.944444
96
0.581298
899
6,919
4.448276
0.298109
0.024756
0.03851
0.018755
0.094524
0.059515
0.014004
0
0
0
0
0.008183
0.29354
6,919
197
97
35.121827
0.809943
0.206677
0
0.152778
0
0
0.145034
0
0
0
0
0
0
0
null
null
0
0.027778
null
null
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b6abc4c54da088d5c140905ed4814491c96271ee
719
py
Python
integrationTests/get_standup_threads_test.py
Teaminator/standup-and-prosper-sdk.py
ccdba4a24f395dc0b45d9f9da9bdf5038e1b1617
[ "Apache-2.0" ]
1
2021-09-16T08:02:35.000Z
2021-09-16T08:02:35.000Z
integrationTests/get_standup_threads_test.py
Teaminator/standup-and-prosper-sdk.py
ccdba4a24f395dc0b45d9f9da9bdf5038e1b1617
[ "Apache-2.0" ]
1
2021-06-14T16:45:56.000Z
2021-06-14T16:56:05.000Z
integrationTests/get_standup_threads_test.py
Teaminator/standup-and-prosper-sdk.py
ccdba4a24f395dc0b45d9f9da9bdf5038e1b1617
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import unittest import nose import time from standup_and_prosper_sdk import ApiClient, StandupsApi class GetStandupThreadsTest(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def get_standup_threads(self): # Enable test # def test_get_sta...
19.972222
65
0.720445
88
719
5.534091
0.465909
0.143737
0.104723
0.086242
0
0
0
0
0
0
0
0.00173
0.196106
719
36
66
19.972222
0.84083
0.154381
0
0.142857
0
0
0.03204
0
0
0
0
0
0
1
0.142857
false
0.142857
0.238095
0
0.428571
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b6abe6095de15d3b6a74511316430a41cae18b7f
343
py
Python
app.py
bameda/pharmap-api
71f5353c19951a4350c3ace2855063093924f061
[ "MIT" ]
null
null
null
app.py
bameda/pharmap-api
71f5353c19951a4350c3ace2855063093924f061
[ "MIT" ]
null
null
null
app.py
bameda/pharmap-api
71f5353c19951a4350c3ace2855063093924f061
[ "MIT" ]
null
null
null
from apistar import App from apistar.commands import create_tables from pharmap.commands import sample_data from pharmap.storage.models import * # noqa from pharmap.routes import routes from pharmap.settings import settings commands = [ create_tables, sample_data, ] app = App(routes=routes, settings=settin...
20.176471
62
0.793003
45
343
5.955556
0.333333
0.164179
0
0
0
0
0
0
0
0
0
0
0.145773
343
16
63
21.4375
0.914676
0.011662
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.545455
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b6ac8fa3607de31632714669b2afbc009736258a
771
py
Python
src/encoded/tests/test_upgrade_star_qc.py
KCL-ORG/encoded
5a1904e948bfd652e8a8d52c6717d7fc0b56b681
[ "MIT" ]
4
2018-01-04T22:31:08.000Z
2021-07-15T17:39:16.000Z
src/encoded/tests/test_upgrade_star_qc.py
KCL-ORG/encoded
5a1904e948bfd652e8a8d52c6717d7fc0b56b681
[ "MIT" ]
38
2019-03-22T14:11:51.000Z
2022-03-30T23:56:09.000Z
src/encoded/tests/test_upgrade_star_qc.py
KCL-ORG/encoded
5a1904e948bfd652e8a8d52c6717d7fc0b56b681
[ "MIT" ]
10
2017-09-14T00:57:07.000Z
2021-07-27T23:41:14.000Z
import pytest @pytest.fixture def star_quality_metric(pipeline, analysis_step_run, bam_file): return { 'status': "finished", 'pipeline': pipeline['uuid'], 'step_run': analysis_step_run['uuid'], 'schema_version': '2', 'quality_metric_of': [bam_file['uuid']] } def test_...
33.521739
72
0.603113
83
771
5.301205
0.433735
0.177273
0.193182
0
0
0
0
0
0
0
0
0.005357
0.273671
771
22
73
35.045455
0.780357
0
0
0
0
0
0.141375
0
0
0
0
0
0.055556
1
0.111111
false
0
0.111111
0.055556
0.277778
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
b6ae3b9a42fc929cb17efa0d2f10f351f17fc531
1,814
py
Python
Task/Align-columns/Python/align-columns-2.py
LaudateCorpus1/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
1
2018-11-09T22:08:38.000Z
2018-11-09T22:08:38.000Z
Task/Align-columns/Python/align-columns-2.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
null
null
null
Task/Align-columns/Python/align-columns-2.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
from StringIO import StringIO textinfile = '''Given$a$text$file$of$many$lines,$where$fields$within$a$line$ are$delineated$by$a$single$'dollar'$character,$write$a$program that$aligns$each$column$of$fields$by$ensuring$that$words$in$each$ column$are$separated$by$at$least$one$space. Further,$allow$for$each$word$in$a$colum...
39.434783
101
0.708379
254
1,814
5.059055
0.425197
0.021012
0.028016
0.029572
0.129183
0.06537
0.06537
0.06537
0.06537
0.06537
0
0.002654
0.169239
1,814
45
102
40.311111
0.850033
0.076075
0
0
0
0.115385
0.33169
0.25
0
0
0
0
0.038462
0
null
null
0
0.038462
null
null
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fcb1cc84b208a5f7c8a0147b44b6a2cf9aac9163
1,654
py
Python
k2/python/k2/ragged/ops.py
pzelasko/k2
2dbb3e09b152fcf98354c946baa271e5b57c8321
[ "Apache-2.0" ]
null
null
null
k2/python/k2/ragged/ops.py
pzelasko/k2
2dbb3e09b152fcf98354c946baa271e5b57c8321
[ "Apache-2.0" ]
null
null
null
k2/python/k2/ragged/ops.py
pzelasko/k2
2dbb3e09b152fcf98354c946baa271e5b57c8321
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../../LICENSE for clarification regarding multiple authors from typing import Tuple, Optional from typing import Union import torch import _k2 def index(src: Union[_k2.RaggedArc, _k2.RaggedInt], indexes: torch.Tensor, ...
35.956522
76
0.613059
212
1,654
4.683962
0.386792
0.096677
0.080564
0.036254
0.221551
0.16717
0.16717
0.16717
0.098691
0.098691
0
0.018581
0.28416
1,654
45
77
36.755556
0.820101
0.620919
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
fcb287f343755fad071871dc930601e1e2bb056f
3,849
py
Python
padempdi.py
efurlanm/378
d5c2ab0e80f2930867057c6c7ce9791e711c1391
[ "MIT" ]
null
null
null
padempdi.py
efurlanm/378
d5c2ab0e80f2930867057c6c7ce9791e711c1391
[ "MIT" ]
null
null
null
padempdi.py
efurlanm/378
d5c2ab0e80f2930867057c6c7ce9791e711c1391
[ "MIT" ]
null
null
null
# CAP-378 Trabalho: PAD em PDI # Uso: mpiexec -n <NTASKS> python3 padempdi.py import numpy as np from mpi4py import MPI wt = MPI.Wtime() # "wall time" para cálculo do tempo decorrido comm = MPI.COMM_WORLD # comunicador global (pode servir para definir grupos) cpu = comm.Get_size() # total de ranks que o mp...
46.939024
92
0.649519
587
3,849
4.23339
0.405451
0.020121
0.012072
0.01328
0.012072
0.012072
0
0
0
0
0
0.037723
0.25617
3,849
81
93
47.518519
0.829899
0.528709
0
0.181818
0
0
0.021011
0
0
0
0
0.012346
0
1
0
false
0
0.045455
0
0.045455
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
fcb486efe8ea339f4620466cdeeeb1c8db201f10
452
py
Python
redirector/main.py
dyakovri/redirector-api
cd576d9b27b4de5777dd2112e9e355e8585dc44e
[ "BSD-2-Clause" ]
1
2022-03-23T17:56:15.000Z
2022-03-23T17:56:15.000Z
redirector/main.py
dyakovri/redirector-api
cd576d9b27b4de5777dd2112e9e355e8585dc44e
[ "BSD-2-Clause" ]
null
null
null
redirector/main.py
dyakovri/redirector-api
cd576d9b27b4de5777dd2112e9e355e8585dc44e
[ "BSD-2-Clause" ]
null
null
null
from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from fastapi_sqlalchemy import DBSessionMiddleware from .router import router from .settings import get_settings app = FastAPI() app.add_middleware(DBSessionMiddleware, db_url=get_settings().DB_DSN) app.add_middleware( CORSMiddleware, ...
25.111111
69
0.778761
53
452
6.415094
0.433962
0.097059
0.094118
0
0
0
0
0
0
0
0
0
0.121681
452
17
70
26.588235
0.856423
0
0
0
0
0
0.006637
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fcb56437c8a13d8cdb0778f357f19d4d66ab7b36
9,761
py
Python
openmdao.gui/src/openmdao/gui/omg.py
swryan/OpenMDAO-Framework
f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec
[ "Apache-2.0" ]
null
null
null
openmdao.gui/src/openmdao/gui/omg.py
swryan/OpenMDAO-Framework
f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec
[ "Apache-2.0" ]
null
null
null
openmdao.gui/src/openmdao/gui/omg.py
swryan/OpenMDAO-Framework
f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec
[ "Apache-2.0" ]
null
null
null
""" OpenMDAO GUI This graphical user interface for OpenMDAO is implemented as a web application. Running this file will start a tornado web server on a local port and open a browser on that port. An up-to-date version of Chrome or Firefox with support for WebSockets is required. """ import os import signal import s...
36.151852
110
0.588259
1,092
9,761
5.130952
0.291209
0.018205
0.016063
0.009995
0.07139
0.042299
0.012493
0
0
0
0
0.003048
0.294232
9,761
269
111
36.286245
0.810277
0.047536
0
0.142045
0
0
0.193138
0.019156
0
0
0
0
0
0
null
null
0
0.113636
null
null
0.079545
0
0
0
null
0
0
0
0
0
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
fcc018897dfa0d7cbd2e1c6b70a4ad965a9993a5
4,566
py
Python
plugins/dbnd-aws/src/dbnd_aws/sagemaker/estimator_config.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
224
2020-01-02T10:46:37.000Z
2022-03-02T13:54:08.000Z
plugins/dbnd-aws/src/dbnd_aws/sagemaker/estimator_config.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
16
2020-03-11T09:37:58.000Z
2022-01-26T10:22:08.000Z
plugins/dbnd-aws/src/dbnd_aws/sagemaker/estimator_config.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
24
2020-03-24T13:53:50.000Z
2022-03-22T11:55:18.000Z
from typing import Dict from dbnd import Config, parameter class Algorithm(object): PCA = "pca" KMEANS = "kmeans" LINEAR_LEARNER = "linear-learner" FACTORIZATION_MACHINES = "factorization-machines" NTM = "ntm" RANDOMCUTFOREST = "randomcutforest" KNN = "knn" OBJECT2VEC = "object2vec" ...
36.528
91
0.683968
501
4,566
6
0.271457
0.060546
0.082169
0.047904
0.403194
0.368596
0.368596
0.34664
0.29674
0.29674
0
0.004199
0.217696
4,566
124
92
36.822581
0.837346
0.033947
0
0.393939
0
0
0.183882
0.01521
0
0
0
0
0
1
0.090909
false
0
0.050505
0.010101
0.575758
0
0
0
0
null
0
0
0
0
0
0
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
fcc1530ac8b10a17bd4fe4a2a933eb918ae322db
1,050
py
Python
tests/test_self_relation.py
5thsymphony/sqlalchemy-to-ormar
9b732739355c39e2d5237af7cb4c1aa15e7f356f
[ "MIT" ]
5
2021-04-10T13:01:11.000Z
2021-08-02T21:28:37.000Z
tests/test_self_relation.py
5thsymphony/sqlalchemy-to-ormar
9b732739355c39e2d5237af7cb4c1aa15e7f356f
[ "MIT" ]
1
2021-04-29T17:22:10.000Z
2021-05-03T16:40:40.000Z
tests/test_self_relation.py
5thsymphony/sqlalchemy-to-ormar
9b732739355c39e2d5237af7cb4c1aa15e7f356f
[ "MIT" ]
1
2022-02-02T20:27:24.000Z
2022-02-02T20:27:24.000Z
from databases import Database from sqlalchemy import ( Column, ForeignKey, Integer, MetaData, String, create_engine, ) from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship from sqlalchemy_to_ormar import sqlalchemy_to_ormar Base = declarative_base() ...
27.631579
79
0.733333
128
1,050
5.789063
0.414063
0.080972
0.080972
0.051282
0
0
0
0
0
0
0
0.015837
0.158095
1,050
37
80
28.378378
0.822398
0.011429
0
0
0
0
0.046332
0
0
0
0
0
0.033333
1
0.033333
false
0.033333
0.166667
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fcc1d38991ad927da7c9cb2f94c47879d3c7c94d
341
py
Python
setup.py
medecau/yamly
6d10f5e58ced6490489f8c7dff856cb1553fd7d7
[ "MIT" ]
1
2018-01-26T04:01:58.000Z
2018-01-26T04:01:58.000Z
setup.py
medecau/yamly
6d10f5e58ced6490489f8c7dff856cb1553fd7d7
[ "MIT" ]
null
null
null
setup.py
medecau/yamly
6d10f5e58ced6490489f8c7dff856cb1553fd7d7
[ "MIT" ]
null
null
null
from distutils.core import setup setup(name = 'yamly', version = '0.1', py_modules = ['yamly',], description = "pyyaml wrapper", author = "Pedro Rodrigues", author_email = "medecau@gmail.com", license = 'MIT', url = "http://medecau.github.com/pyyaml/", install_requires =...
26.230769
48
0.580645
36
341
5.416667
0.805556
0
0
0
0
0
0
0
0
0
0
0.007937
0.260997
341
12
49
28.416667
0.765873
0
0
0
0
0
0.296188
0
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
fcc9b8226e96c6e28f85197970bc3c0f4fa4224e
1,219
py
Python
Unit 5/t.py
yeshellohi/CodeHS-APCS-Java
f5dd2ecc6635b01d38d08f046bf893e36d20453e
[ "MIT" ]
2
2021-04-21T21:27:25.000Z
2021-04-21T21:27:27.000Z
Unit 5/t.py
hristojj/CodeHS-APCS-Java
35257c9ce09b68d93b20d7c89a2b4be98e6b0698
[ "MIT" ]
null
null
null
Unit 5/t.py
hristojj/CodeHS-APCS-Java
35257c9ce09b68d93b20d7c89a2b4be98e6b0698
[ "MIT" ]
null
null
null
a="5.2.6 Our First Array" b="5.2.7 Array Length" c="5.2.8 Last Element in Array" d="5.3.6 Print Array" e="5.3.7 Print Odd Array Indices" f="5.3.8 Find the Minimum Index" g="5.3.12 Find the Median" h="5.3.13 Top Student" i="5.4.6 Get First Element" j="5.4.9 Road Trip" nameL = {1:a, 2:b, 3:c, 4:d, ...
30.475
80
0.488925
185
1,219
2.945946
0.486486
0.110092
0.115596
0.044037
0.075229
0.051376
0
0
0
0
0
0.052247
0.21493
1,219
40
81
30.475
0.517241
0
0
0.057143
0
0
0.727966
0.216949
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
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fcd051cc9d371ceb9894a4f98003dc7676180be6
2,405
py
Python
src/display.py
Gravens/AirDimples
5531b0e43afb1349b121a54bb8ab1dd29bba0a84
[ "Apache-2.0" ]
null
null
null
src/display.py
Gravens/AirDimples
5531b0e43afb1349b121a54bb8ab1dd29bba0a84
[ "Apache-2.0" ]
2
2021-07-14T09:32:01.000Z
2021-07-19T16:25:15.000Z
src/display.py
Gravens/AirDimples
5531b0e43afb1349b121a54bb8ab1dd29bba0a84
[ "Apache-2.0" ]
1
2021-07-14T15:31:02.000Z
2021-07-14T15:31:02.000Z
import time from threading import Thread import cv2 import keyboard import drawing import utils from config import config from gameplay import GameWithFriendOpenVINO from utils import log class DisplayThread(Thread): def __init__(self, frame_deque, joints_deque, fps=24, gui=None): super().__init__() ...
29.329268
118
0.600832
295
2,405
4.688136
0.325424
0.045553
0.040492
0.032538
0.093275
0.072307
0.072307
0.072307
0.072307
0.072307
0
0.009074
0.312682
2,405
81
119
29.691358
0.827586
0.012474
0
0.123077
0
0
0.026127
0
0
0
0
0.012346
0
1
0.092308
false
0
0.138462
0
0.261538
0
0
0
0
null
0
0
0
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
fcd6079c76e2339ed83df903d08fd0f21d9fd5ff
1,524
py
Python
lens_it.py
chemicoPy/lens_it
36005bc82f1fec32280e91ee6841ba3a17db97aa
[ "Apache-2.0" ]
null
null
null
lens_it.py
chemicoPy/lens_it
36005bc82f1fec32280e91ee6841ba3a17db97aa
[ "Apache-2.0" ]
1
2021-06-19T13:03:08.000Z
2021-06-24T20:36:58.000Z
lens_it.py
chemicoPy/lens_it
36005bc82f1fec32280e91ee6841ba3a17db97aa
[ "Apache-2.0" ]
1
2021-07-01T03:27:54.000Z
2021-07-01T03:27:54.000Z
import numpy as np from numpy import * import pandas as pd from pandas import DataFrame, Series from numpy.random import randn import tensorflow as tf import matplotlib.pyplot as plt from PIL import Image import re from skimage.io import imread, imshow from termcolor import colored import keras import h5py ...
24.983607
91
0.736877
232
1,524
4.737069
0.452586
0.043676
0.061874
0.057325
0
0
0
0
0
0
0
0.020602
0.171916
1,524
60
92
25.4
0.850238
0
0
0
0
0
0.080988
0.024022
0
0
0
0
0
1
0
false
0
0.571429
0
0.571429
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fce0601a6ff2cda3356985a40d589f3821be9bbb
1,222
py
Python
tests/test_visitor.py
christophevg/schema-tools
50e7650a4d13662f231234ec12b3c0a8af759c09
[ "MIT" ]
1
2020-11-15T20:57:20.000Z
2020-11-15T20:57:20.000Z
tests/test_visitor.py
christophevg/schema-tools
50e7650a4d13662f231234ec12b3c0a8af759c09
[ "MIT" ]
null
null
null
tests/test_visitor.py
christophevg/schema-tools
50e7650a4d13662f231234ec12b3c0a8af759c09
[ "MIT" ]
null
null
null
from schema_tools import yaml from schema_tools.schema import build from schema_tools.schema.json import IntegerSchema, StringSchema, TupleItem def test_allow_for_empty_properties(): # empty properties shouldn't fail building object schema from AST ast = yaml.loads(""" something: type: objec...
30.55
75
0.724223
154
1,222
5.649351
0.253247
0.137931
0.16092
0.178161
0.632184
0.554023
0.468966
0.468966
0.468966
0.468966
0
0.005958
0.175941
1,222
39
76
31.333333
0.857994
0.156301
0
0.484848
0
0
0.164557
0
0
0
0
0
0.242424
1
0.090909
false
0
0.090909
0
0.181818
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
fcf06f020add9f824d183bcba4b082d5c4bee1d3
2,200
py
Python
experiments/detectability_one_net/train_model.py
cassianobecker/msbm
6ce22f93f63071dc3ca722d499db376ea678eb23
[ "MIT" ]
null
null
null
experiments/detectability_one_net/train_model.py
cassianobecker/msbm
6ce22f93f63071dc3ca722d499db376ea678eb23
[ "MIT" ]
null
null
null
experiments/detectability_one_net/train_model.py
cassianobecker/msbm
6ce22f93f63071dc3ca722d499db376ea678eb23
[ "MIT" ]
null
null
null
# Experiment that generates several sets of networks of varying CH-divergence types # then trains an msbm of a single type in a "consensus" type of way. Then we report the # average rand_index and average entropy of the z variables, which are indicators of how well # the algorithm is learning the true model. import o...
34.920635
97
0.617273
313
2,200
4.14377
0.4377
0.037008
0.009252
0.018504
0.026214
0
0
0
0
0
0
0.014076
0.257273
2,200
63
98
34.920635
0.779682
0.193636
0
0
1
0
0.096263
0
0
0
0
0
0
1
0.022727
false
0
0.136364
0
0.159091
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fcf437071f3aca1716b10d46267ae94434da6f1c
372
py
Python
sparweltbitool/client_redis.py
checkout-charlie/bitool
e41ce66ab2b88992dbfc08d79372bf3965724f3e
[ "MIT" ]
null
null
null
sparweltbitool/client_redis.py
checkout-charlie/bitool
e41ce66ab2b88992dbfc08d79372bf3965724f3e
[ "MIT" ]
null
null
null
sparweltbitool/client_redis.py
checkout-charlie/bitool
e41ce66ab2b88992dbfc08d79372bf3965724f3e
[ "MIT" ]
1
2015-07-22T16:53:42.000Z
2015-07-22T16:53:42.000Z
import redis from sparweltbitool.config import config from sparweltbitool.singleton import Singleton @Singleton class ClientRedis(object): """ Operations with Redis.""" def __init__(self): self.r = redis.StrictRedis( host=config.get('redis', 'host'), port=config.get('redis',...
21.882353
46
0.637097
41
372
5.682927
0.487805
0.11588
0.180258
0
0
0
0
0
0
0
0
0
0.228495
372
16
47
23.25
0.811847
0.05914
0
0
0
0
0.072886
0
0
0
0
0
0
1
0.1
false
0
0.3
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
fcf50282811ffc8a770fa38ebbb80b3ac990778e
6,317
py
Python
analytics/analyser/tests/unittest_analyser.py
sadikovi/Pulsar
3267426cf5bd676a3c4c20cbee88a80b89e65b0f
[ "Apache-2.0" ]
null
null
null
analytics/analyser/tests/unittest_analyser.py
sadikovi/Pulsar
3267426cf5bd676a3c4c20cbee88a80b89e65b0f
[ "Apache-2.0" ]
29
2015-02-23T07:59:13.000Z
2015-04-05T09:49:53.000Z
analytics/analyser/tests/unittest_analyser.py
sadikovi/Pulsar
3267426cf5bd676a3c4c20cbee88a80b89e65b0f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' Copyright 2015 Ivan Sadikov 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...
39.72956
107
0.611999
692
6,317
5.524566
0.304913
0.020926
0.015694
0.022234
0.33717
0.324614
0.324614
0.303688
0.271515
0.271515
0
0.021555
0.25091
6,317
158
108
39.981013
0.786348
0.070128
0
0.317757
0
0
0.089002
0
0
0
0
0
0.11215
0
null
null
0
0.102804
null
null
0.028037
0
0
0
null
0
0
0
0
0
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
fcf8e2c0ca1804414fbed4b83ad2f9184ee49834
1,246
py
Python
1._metis_models_and_data_2019-12-16b/METIS source code/Context actions/default/InvalidateKPIs.py
tamas-borbath/METIS
cf3dc0f0f96ccb6ad72ddf15ba7e31ddc6339036
[ "CC-BY-4.0" ]
1
2021-12-07T09:05:48.000Z
2021-12-07T09:05:48.000Z
1._metis_models_and_data_2019-12-16b/METIS source code/Context actions/default/InvalidateKPIs.py
tamas-borbath/METIS_data_and_scripts
cf3dc0f0f96ccb6ad72ddf15ba7e31ddc6339036
[ "CC-BY-4.0" ]
null
null
null
1._metis_models_and_data_2019-12-16b/METIS source code/Context actions/default/InvalidateKPIs.py
tamas-borbath/METIS_data_and_scripts
cf3dc0f0f96ccb6ad72ddf15ba7e31ddc6339036
[ "CC-BY-4.0" ]
null
null
null
######################################################## # Copyright (c) 2015-2017 by European Commission. # # All Rights Reserved. # ######################################################## """ This context action deletes all KPI values in the current context """ from com.artel...
32.789474
149
0.668539
113
1,246
7.371681
0.530973
0.092437
0.120048
0.10084
0.156062
0.093637
0
0
0
0
0
0.007715
0.167737
1,246
37
150
33.675676
0.795564
0.174157
0
0.176471
0
0
0.119159
0
0
0
0
0
0
1
0.235294
false
0
0.117647
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
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
fcf9531b2057af5f9ea183e50dad9241ce6ec6e4
1,358
py
Python
2021/Day06/Day06-Prob2-Unlimited-fish.py
guilhermebaos/Advent-of-Code-Solutions
232facf72a21284478134b2c56357352b4aaaf74
[ "MIT" ]
null
null
null
2021/Day06/Day06-Prob2-Unlimited-fish.py
guilhermebaos/Advent-of-Code-Solutions
232facf72a21284478134b2c56357352b4aaaf74
[ "MIT" ]
null
null
null
2021/Day06/Day06-Prob2-Unlimited-fish.py
guilhermebaos/Advent-of-Code-Solutions
232facf72a21284478134b2c56357352b4aaaf74
[ "MIT" ]
null
null
null
# Puzzle Input ---------- with open('Day06-Input.txt', 'r') as file: puzzle = list(map(int, file.read().split(','))) with open('Day06-Test01.txt', 'r') as file: test01 = list(map(int, file.read().split(','))) # Main Code ---------- # Count the first few fish and organize them by age in a dictionary def coun...
29.521739
96
0.627393
223
1,358
3.547085
0.32287
0.159292
0.22756
0.115044
0.313527
0.058154
0
0
0
0
0
0.026393
0.246686
1,358
45
97
30.177778
0.746823
0.228277
0
0
0
0
0.033719
0
0
0
0
0
0
1
0.086957
false
0
0
0
0.173913
0.086957
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
fcfc93a2b90466a4bcdb00869bfa82e76236d6e4
2,980
py
Python
cv-classify.py
linovaldivia/cv-classify
f60cb2e4de4d020ac51e6e046f5dc9c6a6c4656c
[ "MIT" ]
null
null
null
cv-classify.py
linovaldivia/cv-classify
f60cb2e4de4d020ac51e6e046f5dc9c6a6c4656c
[ "MIT" ]
null
null
null
cv-classify.py
linovaldivia/cv-classify
f60cb2e4de4d020ac51e6e046f5dc9c6a6c4656c
[ "MIT" ]
null
null
null
import sys import getopt import trainer import classifier def show_help(): print "options: " print "-t, --training <training-data-dir> Enter training mode and use given directory for training data" print "-c, --classify <img-dir> Enter classify mode, using the images in t...
41.971831
259
0.590268
359
2,980
4.771588
0.292479
0.077058
0.031524
0.02627
0.088733
0.068885
0.046702
0
0
0
0
0.002378
0.294295
2,980
70
260
42.571429
0.812173
0.005705
0
0.080645
0
0.064516
0.386356
0
0
0
0
0
0
0
null
null
0
0.064516
null
null
0.145161
0
0
0
null
0
0
0
0
0
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
fcffd6e5c047818eed25631c704cc70770c625fb
4,562
py
Python
dream_machine/webgl/render_targets.py
Aeva/dream_machine
6f8e913096806bf04d7db257a9033e580d5d46d4
[ "Apache-2.0" ]
3
2020-08-03T15:49:13.000Z
2020-08-08T03:14:00.000Z
dream_machine/webgl/render_targets.py
Aeva/dream_machine
6f8e913096806bf04d7db257a9033e580d5d46d4
[ "Apache-2.0" ]
28
2020-08-26T01:45:44.000Z
2020-11-12T03:12:13.000Z
dream_machine/webgl/render_targets.py
Aeva/dream_machine
6f8e913096806bf04d7db257a9033e580d5d46d4
[ "Apache-2.0" ]
null
null
null
 # Copyright 2020 Aeva Palecek # # 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 writin...
32.820144
144
0.707584
495
4,562
6.329293
0.286869
0.045962
0.056176
0.042451
0.252154
0.252154
0.187041
0.157038
0.118736
0.082988
0
0.003754
0.182595
4,562
138
145
33.057971
0.836149
0.120342
0
0.277778
0
0.011111
0.150613
0.075056
0
0
0
0
0.022222
0
null
null
0
0.022222
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