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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
682b439a68c9aa5528add307c36e60310cd9655f | 580 | py | Python | exos/temperatures.py | afafe78/python-im | c831eb92c163084bb3c9098e40d28e7ba8600319 | [
"MIT"
] | 7 | 2016-09-29T07:20:25.000Z | 2021-03-15T15:00:06.000Z | exos/temperatures.py | afafe78/python-im | c831eb92c163084bb3c9098e40d28e7ba8600319 | [
"MIT"
] | 1 | 2018-10-08T10:52:48.000Z | 2018-10-08T10:52:48.000Z | exos/temperatures.py | afafe78/python-im | c831eb92c163084bb3c9098e40d28e7ba8600319 | [
"MIT"
] | 11 | 2017-01-12T18:50:49.000Z | 2021-02-28T22:44:29.000Z | import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
n = int(input()) # the number of temperatures to analyse
temps = input() # the n temperatures expressed as integers ranging from -273 to 5526
temps = temps.split()
if n == 0:
pr... | 26.363636 | 85 | 0.641379 | 88 | 580 | 4.159091 | 0.511364 | 0.114754 | 0.090164 | 0.076503 | 0.092896 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025822 | 0.265517 | 580 | 21 | 86 | 27.619048 | 0.833333 | 0.363793 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
682c0922524d4921d715e9972404209c73d7dea6 | 694 | py | Python | omep-python-test.py | yas-sim/openvino-model-experiment-package | cb96331908b55c5ab15c7bc8c042fb53cd4a2b35 | [
"Apache-2.0"
] | 3 | 2020-07-04T02:16:42.000Z | 2020-07-05T21:21:22.000Z | omep-python-test.py | yas-sim/openvino-model-experiment-package | cb96331908b55c5ab15c7bc8c042fb53cd4a2b35 | [
"Apache-2.0"
] | null | null | null | omep-python-test.py | yas-sim/openvino-model-experiment-package | cb96331908b55c5ab15c7bc8c042fb53cd4a2b35 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import cv2
import matplotlib.pyplot as plt
from openvino.inference_engine import IECore
import openvino_model_experiment_package as omep
# Load an IR model
model = 'intel/human-pose-estimation-0001/FP16/human-pose-estimation-0001'
ie, net, exenet, inblobs, outblobs, inshapes, outshapes = omep.loa... | 27.76 | 85 | 0.795389 | 108 | 694 | 4.925926 | 0.546296 | 0.052632 | 0.045113 | 0.086466 | 0.12406 | 0.12406 | 0 | 0 | 0 | 0 | 0 | 0.0352 | 0.099424 | 694 | 24 | 86 | 28.916667 | 0.816 | 0.069164 | 0 | 0 | 0 | 0 | 0.164852 | 0.099533 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
682d4d61b5d8bc567488186baf7596163fa2d5a9 | 1,200 | py | Python | foodies/forms.py | sharonandisi/foodgram | 489794bf23734a80961fd9a790ac17c694335d27 | [
"PostgreSQL"
] | null | null | null | foodies/forms.py | sharonandisi/foodgram | 489794bf23734a80961fd9a790ac17c694335d27 | [
"PostgreSQL"
] | null | null | null | foodies/forms.py | sharonandisi/foodgram | 489794bf23734a80961fd9a790ac17c694335d27 | [
"PostgreSQL"
] | null | null | null | from django import forms
from .models import Image, Profile, Comments
class NewsLetterForm(forms.Form):
your_name = forms.CharField(label='First Name', max_length=30)
email = forms.EmailField(label='Email')
class NewImageForm(forms.ModelForm):
class Meta:
model = Image
exclude = ['prof... | 28.571429 | 91 | 0.626667 | 126 | 1,200 | 5.896825 | 0.412698 | 0.07537 | 0.102288 | 0.123822 | 0.250336 | 0.107672 | 0.107672 | 0 | 0 | 0 | 0 | 0.008909 | 0.251667 | 1,200 | 42 | 92 | 28.571429 | 0.818486 | 0 | 0 | 0.228571 | 0 | 0 | 0.121565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.542857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6831bfd553ffd66dddccc11e3bad3d1009993596 | 1,508 | py | Python | docs/source/examples/complex.py | dev10110/pyObjective | 6d831accaf5c67a8252b2dc744001dd9e5db5f4d | [
"MIT"
] | null | null | null | docs/source/examples/complex.py | dev10110/pyObjective | 6d831accaf5c67a8252b2dc744001dd9e5db5f4d | [
"MIT"
] | null | null | null | docs/source/examples/complex.py | dev10110/pyObjective | 6d831accaf5c67a8252b2dc744001dd9e5db5f4d | [
"MIT"
] | null | null | null | from pyObjective import Variable, Model
import numpy as np
"""This example script is written to demonstrate the use of classes, and how more complicated models can be built,
and still passed to the solver. As a rudimentary example, it has two cubes and a sphere, and we are trying to find
the dimensions such that the... | 24.322581 | 115 | 0.653183 | 243 | 1,508 | 4 | 0.444444 | 0.00823 | 0.012346 | 0.016461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021533 | 0.230106 | 1,508 | 61 | 116 | 24.721311 | 0.815676 | 0.238064 | 0 | 0.071429 | 0 | 0 | 0.037175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.071429 | 0.107143 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
6837584b088def649cb22875398b8143f9388db8 | 5,398 | py | Python | sandbox/bendpy/discont/dg_sine.py | MiroK/lega | ceb684ad639521e4a6e679188761984e2caa5611 | [
"MIT"
] | 3 | 2015-07-14T01:19:17.000Z | 2020-12-10T14:00:45.000Z | sandbox/bendpy/discont/dg_sine.py | MiroK/lega | ceb684ad639521e4a6e679188761984e2caa5611 | [
"MIT"
] | null | null | null | sandbox/bendpy/discont/dg_sine.py | MiroK/lega | ceb684ad639521e4a6e679188761984e2caa5611 | [
"MIT"
] | null | null | null | # Analytical solutions for problems that can be solved with the two sine basis.
###
# Problem one is
#
# -u`` = f in [0, pi] with u(0) = u(pi) = 0 for f which is
# g on [0, pi/2) and h on [pi/2, pi]
#
###
# Problem two is
#
# u```` = f in [0, pi] with u(0) = u(pi) = 0, u`(0) = u`(pi) = 0 for f which is
# g on [0, ... | 31.022989 | 79 | 0.483142 | 938 | 5,398 | 2.746269 | 0.148188 | 0.073758 | 0.02795 | 0.023292 | 0.448758 | 0.384705 | 0.262422 | 0.249612 | 0.208463 | 0.189829 | 0 | 0.084006 | 0.311967 | 5,398 | 173 | 80 | 31.202312 | 0.609585 | 0.210263 | 0 | 0.15 | 0 | 0 | 0.012168 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0 | null | null | 0 | 0.06 | null | null | 0.01 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6849219d3c1b5f5dd246b210ec443de592738989 | 744 | py | Python | lcd/interrupts/interrupt3.py | BornToDebug/homeStruction | 354e03c05cb363d8397d0e2d7afeb78a029266f9 | [
"Apache-2.0"
] | 6 | 2016-08-31T16:46:54.000Z | 2017-09-15T19:34:30.000Z | lcd/interrupts/interrupt3.py | BornToDebug/homeStruction | 354e03c05cb363d8397d0e2d7afeb78a029266f9 | [
"Apache-2.0"
] | 4 | 2016-09-02T09:18:41.000Z | 2016-09-02T09:24:08.000Z | lcd/interrupts/interrupt3.py | BornToDebug/homeStruction | 354e03c05cb363d8397d0e2d7afeb78a029266f9 | [
"Apache-2.0"
] | null | null | null | import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(23, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(24, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
def my_callback(channel):
print "falling edge detected on 18"
def my_callback2(channel):
print "falling edge detect... | 27.555556 | 78 | 0.77957 | 127 | 744 | 4.409449 | 0.401575 | 0.048214 | 0.053571 | 0.064286 | 0.280357 | 0.280357 | 0.1625 | 0.121429 | 0.121429 | 0.121429 | 0 | 0.042296 | 0.110215 | 744 | 26 | 79 | 28.615385 | 0.803625 | 0 | 0 | 0.105263 | 0 | 0 | 0.235215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
684b4c2dccb681c7ad6626bfed2957b27acae3cb | 879 | py | Python | backdoors/shell/__pupy/pupy/packages/src/VideoCapture/src/fixhtml.py | mehrdad-shokri/backdoorme | f9755ca6cec600335e681752e7a1c5c617bb5a39 | [
"MIT"
] | 796 | 2015-10-09T20:30:04.000Z | 2022-03-24T19:07:32.000Z | backdoors/shell/__pupy/pupy/packages/src/VideoCapture/src/fixhtml.py | mehrdad-shokri/backdoorme | f9755ca6cec600335e681752e7a1c5c617bb5a39 | [
"MIT"
] | 169 | 2015-11-26T16:14:02.000Z | 2020-08-04T21:51:58.000Z | backdoors/shell/__pupy/pupy/packages/src/VideoCapture/src/fixhtml.py | mehrdad-shokri/backdoorme | f9755ca6cec600335e681752e7a1c5c617bb5a39 | [
"MIT"
] | 168 | 2015-11-27T23:21:04.000Z | 2022-01-23T06:14:33.000Z | import os, string
oldWin = '''span {
font-family: Verdana;
background: #e0e0d0;
font-size: 10pt;
}
</style>
</head>
<body bgcolor="#e0e0d0">
'''
oldLinux = '''span {
font-family: Verdana;
background: #e0e0d0;
font-size: 13pt;
}
</style>
</head>
<body bgcolor="#e0e0d0">
'''
new = '''span {
font-family: Verdana... | 18.3125 | 53 | 0.571104 | 110 | 879 | 4.563636 | 0.436364 | 0.047809 | 0.083665 | 0.125498 | 0.282869 | 0.179283 | 0.179283 | 0.179283 | 0 | 0 | 0 | 0.029985 | 0.241183 | 879 | 47 | 54 | 18.702128 | 0.722639 | 0 | 0 | 0.428571 | 0 | 0 | 0.360637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02381 | null | null | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
684f7a6494a0ed2b61957330a13887c3aaff66e6 | 436 | py | Python | tests/fixtures/reporters/feed.py | kuc2477/news | 215f87e6ce1a7fc99175596e6fd5b4b50a3179c6 | [
"MIT"
] | 2 | 2016-01-21T04:16:57.000Z | 2016-04-27T04:46:13.000Z | tests/fixtures/reporters/feed.py | kuc2477/news | 215f87e6ce1a7fc99175596e6fd5b4b50a3179c6 | [
"MIT"
] | null | null | null | tests/fixtures/reporters/feed.py | kuc2477/news | 215f87e6ce1a7fc99175596e6fd5b4b50a3179c6 | [
"MIT"
] | null | null | null | import pytest
from news.reporters import ReporterMeta
from news.reporters.feed import AtomReporter, RSSReporter
@pytest.fixture
def rss_reporter(sa_schedule, sa_backend):
meta = ReporterMeta(schedule=sa_schedule)
return RSSReporter(meta=meta, backend=sa_backend)
@pytest.fixture
def atom_reporter(sa_schedule... | 27.25 | 57 | 0.805046 | 56 | 436 | 6.089286 | 0.339286 | 0.117302 | 0.099707 | 0.117302 | 0.533724 | 0.392962 | 0.392962 | 0.392962 | 0.392962 | 0.392962 | 0 | 0 | 0.116972 | 436 | 15 | 58 | 29.066667 | 0.885714 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6850a777d683c3f59834728ab8d549add89917c0 | 4,945 | py | Python | deployer/main.py | sportsy/deployer | e5dff46707773992aad7bcf47539b1d59ac3ee2c | [
"MIT"
] | null | null | null | deployer/main.py | sportsy/deployer | e5dff46707773992aad7bcf47539b1d59ac3ee2c | [
"MIT"
] | null | null | null | deployer/main.py | sportsy/deployer | e5dff46707773992aad7bcf47539b1d59ac3ee2c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
import os
import ConfigParser
import json
import time
import threading
from distutils.core import setup
import pika
import boto
import pusherclient
from boto.sqs.message import RawMessage
# set defaults
channel = None
global pusher
config = ConfigParser.ConfigParser()
class MQServer... | 29.969697 | 173 | 0.61092 | 589 | 4,945 | 5.025467 | 0.293718 | 0.051689 | 0.035473 | 0.02027 | 0.246959 | 0.223649 | 0.223649 | 0.150676 | 0.101351 | 0.101351 | 0 | 0.003681 | 0.285743 | 4,945 | 164 | 174 | 30.152439 | 0.834371 | 0.179171 | 0 | 0.170213 | 0 | 0 | 0.126261 | 0.007503 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117021 | null | null | 0.085106 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6851afbd7c56c12caaf48e494760ed9de7cf64a5 | 5,005 | py | Python | lib/browser.py | qwghlm/WhensMyBus | bef206c15a5efdeeca234a9f31d98b2ec33342af | [
"MIT"
] | 4 | 2015-01-02T20:31:43.000Z | 2017-03-02T11:27:39.000Z | lib/browser.py | qwghlm/WhensMyBus | bef206c15a5efdeeca234a9f31d98b2ec33342af | [
"MIT"
] | 1 | 2016-10-17T21:23:48.000Z | 2016-10-17T21:23:48.000Z | lib/browser.py | qwghlm/WhensMyBus | bef206c15a5efdeeca234a9f31d98b2ec33342af | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Data browser for When's My Transport, with caching and JSON/XML parsing
"""
import json
import logging
import os
import urllib2
import time
from xml.dom.minidom import parseString
from xml.etree.ElementTree import fromstring
from lib.exceptions import WhensMyTransportException
#
# API URLs ... | 39.409449 | 120 | 0.600999 | 619 | 5,005 | 4.717286 | 0.311793 | 0.049315 | 0.061644 | 0.039384 | 0.328082 | 0.318836 | 0.284932 | 0.226712 | 0.19726 | 0.138356 | 0 | 0.005917 | 0.290909 | 5,005 | 126 | 121 | 39.722222 | 0.81685 | 0.092907 | 0 | 0.2 | 0 | 0.011765 | 0.196392 | 0.040904 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.094118 | 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 |
6851b38c6e5c265b8398f65f866f61d65d0c141e | 1,099 | py | Python | oommfpy/tools/plot_tools.py | davidcortesortuno/oommfpy | daa56f96fd0d301d42a4bc260f7142f0a8e62f8d | [
"BSD-2-Clause"
] | 9 | 2019-05-25T07:42:14.000Z | 2022-02-22T21:08:47.000Z | oommfpy/tools/plot_tools.py | davidcortesortuno/oommfpy | daa56f96fd0d301d42a4bc260f7142f0a8e62f8d | [
"BSD-2-Clause"
] | 9 | 2019-05-25T07:41:57.000Z | 2021-11-27T14:12:28.000Z | oommfpy/tools/plot_tools.py | davidcortesortuno/oommfpy | daa56f96fd0d301d42a4bc260f7142f0a8e62f8d | [
"BSD-2-Clause"
] | 7 | 2019-07-21T05:42:39.000Z | 2022-03-28T13:57:03.000Z | import colorsys
import numpy as np
# -----------------------------------------------------------------------------
# Utilities to generate a HSL colourmap from the magnetisation field data
def convert_to_RGB(hls_color):
return np.array(colorsys.hls_to_rgb(hls_color[0] / (2 * np.pi),
... | 28.921053 | 79 | 0.44404 | 125 | 1,099 | 3.72 | 0.384 | 0.135484 | 0.043011 | 0.055914 | 0.077419 | 0.04086 | 0 | 0 | 0 | 0 | 0 | 0.028646 | 0.301183 | 1,099 | 37 | 80 | 29.702703 | 0.576823 | 0.237489 | 0 | 0 | 1 | 0 | 0.059756 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0.05 | 0.35 | 0 | 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 |
68532915a517819212ed6da9e432ef69c63e0d22 | 299 | py | Python | 83. Remove Duplicates from Sorted List.py | fossabot/leetcode-2 | 335f1aa3ee785320515c3d3f03c2cb2df3bc13ba | [
"MIT"
] | 2 | 2018-02-26T09:12:19.000Z | 2019-06-07T13:38:10.000Z | 83. Remove Duplicates from Sorted List.py | fossabot/leetcode-2 | 335f1aa3ee785320515c3d3f03c2cb2df3bc13ba | [
"MIT"
] | 1 | 2018-12-24T07:03:34.000Z | 2018-12-24T07:03:34.000Z | 83. Remove Duplicates from Sorted List.py | fossabot/leetcode-2 | 335f1aa3ee785320515c3d3f03c2cb2df3bc13ba | [
"MIT"
] | 2 | 2018-12-24T07:01:03.000Z | 2019-06-07T13:38:07.000Z | class Solution(object):
def deleteDuplicates(self, head):
initial = head
while head:
if head.next and head.val == head.next.val:
head.next = head.next.next
else:
head = head.next
head = initial
return head
| 24.916667 | 55 | 0.51505 | 33 | 299 | 4.666667 | 0.454545 | 0.25974 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.404682 | 299 | 11 | 56 | 27.181818 | 0.865169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 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 |
6853c8f28ea7f7496002136021b31195092bc07c | 3,233 | py | Python | app/grid_model.py | vinhta314/game-of-life-visualiser | 957ba490c12836e38e6b40024046c10466780739 | [
"MIT"
] | null | null | null | app/grid_model.py | vinhta314/game-of-life-visualiser | 957ba490c12836e38e6b40024046c10466780739 | [
"MIT"
] | null | null | null | app/grid_model.py | vinhta314/game-of-life-visualiser | 957ba490c12836e38e6b40024046c10466780739 | [
"MIT"
] | null | null | null | import numpy as np
class CellularAutomationModel:
grid_width = 40
grid_height = 40
def __init__(self):
self.grid = self._randomised_grid()
def evolve(self):
"""
Evolve the current grid state using Conway's Game of Life algorithm.
:returns
dict: A dictiona... | 32.989796 | 110 | 0.590473 | 457 | 3,233 | 4.019694 | 0.229759 | 0.073489 | 0.016331 | 0.032662 | 0.335329 | 0.230811 | 0.18454 | 0.08601 | 0.08601 | 0.067501 | 0 | 0.018198 | 0.320136 | 3,233 | 97 | 111 | 33.329897 | 0.817561 | 0.301577 | 0 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191489 | false | 0 | 0.021277 | 0 | 0.510638 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
685ec69b006b0a9078bc34ecf58f2a15ca333c06 | 3,284 | py | Python | colour/examples/temperature/examples_cct.py | soma2000-lang/colour | bb7ee23ac65e09613af78bd18dd98dffb1a2904a | [
"BSD-3-Clause"
] | 1 | 2022-02-12T06:28:15.000Z | 2022-02-12T06:28:15.000Z | colour/examples/temperature/examples_cct.py | soma2000-lang/colour | bb7ee23ac65e09613af78bd18dd98dffb1a2904a | [
"BSD-3-Clause"
] | null | null | null | colour/examples/temperature/examples_cct.py | soma2000-lang/colour | bb7ee23ac65e09613af78bd18dd98dffb1a2904a | [
"BSD-3-Clause"
] | null | null | null | """
Showcases correlated colour temperature computations.
"""
import colour
from colour.utilities import message_box
message_box("Correlated Colour Temperature Computations")
cmfs = colour.MSDS_CMFS["CIE 1931 2 Degree Standard Observer"]
illuminant = colour.SDS_ILLUMINANTS["D65"]
xy = colour.XYZ_to_xy(colour.sd_to_X... | 32.196078 | 78 | 0.739647 | 529 | 3,284 | 4.413989 | 0.15879 | 0.094218 | 0.094218 | 0.080942 | 0.712206 | 0.712206 | 0.589293 | 0.525054 | 0.499358 | 0.487366 | 0 | 0.054138 | 0.116931 | 3,284 | 101 | 79 | 32.514851 | 0.751034 | 0.016139 | 0 | 0.376623 | 0 | 0.051948 | 0.448961 | 0.014272 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025974 | 0 | 0.025974 | 0.376623 | 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 |
68620b151d37333bd311ec05c4015d1947dbf90c | 11,285 | py | Python | plugin/CustomerSupportArchive/chipDiagnostics/tools/flowcorr.py | iontorrent/TS | 7591590843c967435ee093a3ffe9a2c6dea45ed8 | [
"Apache-2.0"
] | 125 | 2015-01-22T05:43:23.000Z | 2022-03-22T17:15:59.000Z | plugin/CustomerSupportArchive/Lane_Diagnostics/tools/flowcorr.py | iontorrent/TS | 7591590843c967435ee093a3ffe9a2c6dea45ed8 | [
"Apache-2.0"
] | 59 | 2015-02-10T09:13:06.000Z | 2021-11-11T02:32:38.000Z | plugin/CustomerSupportArchive/autoCal/tools/flowcorr.py | iontorrent/TS | 7591590843c967435ee093a3ffe9a2c6dea45ed8 | [
"Apache-2.0"
] | 98 | 2015-01-17T01:25:10.000Z | 2022-03-18T17:29:42.000Z | import os
import numpy as np
from . import imtools, datprops
from .datfile import DatFile
from .chiptype import ChipType
moduleDir = os.path.abspath( os.path.dirname( __file__ ) )
class FlowCorr:
def __init__( self, chiptype, xblock=None, yblock=None, rootdir='.', method='' ):
'''
Initialize a fl... | 49.933628 | 203 | 0.589012 | 1,320 | 11,285 | 4.990152 | 0.235606 | 0.120237 | 0.048581 | 0.030363 | 0.442538 | 0.413694 | 0.366935 | 0.331866 | 0.298467 | 0.288143 | 0 | 0.00851 | 0.33354 | 11,285 | 225 | 204 | 50.155556 | 0.867305 | 0.178378 | 0 | 0.410959 | 0 | 0 | 0.044194 | 0 | 0 | 0 | 0 | 0.004444 | 0 | 0 | null | null | 0.013699 | 0.034247 | null | null | 0.027397 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6864b398d75f0afbf2d3bc574f814cc0b57e494e | 2,354 | py | Python | recohut/models/dnn.py | sparsh-ai/recohut | 4121f665761ffe38c9b6337eaa9293b26bee2376 | [
"Apache-2.0"
] | null | null | null | recohut/models/dnn.py | sparsh-ai/recohut | 4121f665761ffe38c9b6337eaa9293b26bee2376 | [
"Apache-2.0"
] | 1 | 2022-01-12T05:40:57.000Z | 2022-01-12T05:40:57.000Z | recohut/models/dnn.py | RecoHut-Projects/recohut | 4121f665761ffe38c9b6337eaa9293b26bee2376 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/models/models.dnn.ipynb (unless otherwise specified).
__all__ = ['Multi_Layer_Perceptron', 'CollabFNet']
# Cell
import torch
import torch.nn as nn
import torch.nn.functional as F
# Cell
class Multi_Layer_Perceptron(nn.Module):
def __init__(self, args, num_users, nu... | 37.967742 | 104 | 0.65463 | 334 | 2,354 | 4.365269 | 0.272455 | 0.032922 | 0.038409 | 0.020576 | 0.128944 | 0.082305 | 0 | 0 | 0 | 0 | 0 | 0.013165 | 0.225573 | 2,354 | 62 | 105 | 37.967742 | 0.786615 | 0.08836 | 0 | 0 | 1 | 0 | 0.01496 | 0.010285 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0.021739 | 0.065217 | 0 | 0.26087 | 0 | 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 |
686f8c834ca06e0613cf090830a8208f91cd4c47 | 2,465 | py | Python | tests/test_gremlin_pl.py | joshim5/mogwai | 917fe5b2dea9c3adc3a3d1dfe41ae33c3ae86f55 | [
"BSD-3-Clause"
] | 24 | 2020-11-20T19:10:23.000Z | 2022-03-13T13:26:56.000Z | tests/test_gremlin_pl.py | joshim5/mogwai | 917fe5b2dea9c3adc3a3d1dfe41ae33c3ae86f55 | [
"BSD-3-Clause"
] | 10 | 2020-10-21T21:42:14.000Z | 2020-11-18T07:57:30.000Z | tests/test_gremlin_pl.py | joshim5/mogwai | 917fe5b2dea9c3adc3a3d1dfe41ae33c3ae86f55 | [
"BSD-3-Clause"
] | 7 | 2020-12-27T00:44:18.000Z | 2021-11-07T05:16:49.000Z | import itertools
import numpy as np
import torch
import unittest
from mogwai.data_loading import one_hot
from mogwai.models import GremlinPseudolikelihood
class TestGremlinPL(unittest.TestCase):
def setUp(self):
torch.manual_seed(0)
N = 100
L = 20
A = 8
msa = torch.randin... | 28.333333 | 76 | 0.610142 | 333 | 2,465 | 4.384384 | 0.375375 | 0.055479 | 0.013699 | 0.032877 | 0.276712 | 0.252055 | 0.252055 | 0.252055 | 0.252055 | 0.252055 | 0 | 0.025481 | 0.28357 | 2,465 | 86 | 77 | 28.662791 | 0.801246 | 0.108722 | 0 | 0.360656 | 0 | 0 | 0.003653 | 0 | 0 | 0 | 0 | 0.011628 | 0.081967 | 1 | 0.114754 | false | 0 | 0.098361 | 0 | 0.262295 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
68777c8ef19f2208020f8f076d6002af81ebebd7 | 3,608 | py | Python | doc/source/notebooks/regression.py | codelover-without-talent/GPflow | 1af7b1ca7da6687974150a1440d821a106b2159d | [
"Apache-2.0"
] | 1 | 2018-08-22T06:34:59.000Z | 2018-08-22T06:34:59.000Z | doc/source/notebooks/regression.py | codelover-without-talent/GPflow | 1af7b1ca7da6687974150a1440d821a106b2159d | [
"Apache-2.0"
] | null | null | null | doc/source/notebooks/regression.py | codelover-without-talent/GPflow | 1af7b1ca7da6687974150a1440d821a106b2159d | [
"Apache-2.0"
] | 2 | 2019-03-09T11:46:11.000Z | 2021-12-20T10:22:34.000Z | from matplotlib import pyplot as plt
import gpflow
import tensorflow as tf
import os
import numpy as np
import cProfile
def outputGraph(model, dirName, fileName):
model.compile()
if not(os.path.isdir(dirName)):
os.mkdir(dirName)
fullFileName = os.path.join(dirName, fileName)
if os.path.isfile(f... | 29.818182 | 96 | 0.641075 | 539 | 3,608 | 4.233766 | 0.320965 | 0.01227 | 0.006573 | 0.021034 | 0.24014 | 0.14461 | 0.12007 | 0.079316 | 0.041192 | 0 | 0 | 0.032821 | 0.206208 | 3,608 | 120 | 97 | 30.066667 | 0.763966 | 0.105322 | 0 | 0.148936 | 0 | 0 | 0.07458 | 0 | 0 | 0 | 0 | 0.008333 | 0 | 0 | null | null | 0 | 0.06383 | null | null | 0.031915 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6878bc63f5a5d101c27062d6aecd9e1581e3ee6e | 335 | py | Python | database/__init__.py | eddycheong/skeleton-flask-sqlalchemy | 117e4cac0bf4d912f9546e2aeac77bccc2b7e3c0 | [
"MIT"
] | null | null | null | database/__init__.py | eddycheong/skeleton-flask-sqlalchemy | 117e4cac0bf4d912f9546e2aeac77bccc2b7e3c0 | [
"MIT"
] | null | null | null | database/__init__.py | eddycheong/skeleton-flask-sqlalchemy | 117e4cac0bf4d912f9546e2aeac77bccc2b7e3c0 | [
"MIT"
] | null | null | null | import configparser
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
config = configparser.ConfigParser()
config.read('alembic.ini')
connection_url = config['alembic']['sqlalchemy.url']
Engine = create_engine(connection_url, connect_args={'check_same_thread': False})
Session = sessionmaker... | 27.916667 | 81 | 0.81194 | 40 | 335 | 6.625 | 0.55 | 0.10566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083582 | 335 | 11 | 82 | 30.454545 | 0.863192 | 0 | 0 | 0 | 0 | 0 | 0.146707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6879a284797d76bfbb26fa832ed9b1a3cdbb362e | 11,872 | py | Python | mrplot/modules/design/variable_design.py | enzofabricio/mrplot | 45e865241ea6ed7a4e524cbcbac54b75f2976696 | [
"MIT"
] | null | null | null | mrplot/modules/design/variable_design.py | enzofabricio/mrplot | 45e865241ea6ed7a4e524cbcbac54b75f2976696 | [
"MIT"
] | null | null | null | mrplot/modules/design/variable_design.py | enzofabricio/mrplot | 45e865241ea6ed7a4e524cbcbac54b75f2976696 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'variable_design.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow... | 54.962963 | 105 | 0.685057 | 1,376 | 11,872 | 5.728924 | 0.140988 | 0.028416 | 0.075352 | 0.039579 | 0.502981 | 0.332614 | 0.253584 | 0.174299 | 0.124572 | 0.074845 | 0 | 0.059415 | 0.187668 | 11,872 | 215 | 106 | 55.218605 | 0.757984 | 0.01592 | 0 | 0.149254 | 1 | 0 | 0.143106 | 0.002094 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00995 | false | 0 | 0.00995 | 0 | 0.024876 | 0 | 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 |
687da6b0eb4b67490262b063fd83e99351f1851c | 1,538 | py | Python | ptxt/journal/models.py | mvasilkov/scrapheap | 53e30b88879ab8e4d80867b0ec7fa631ce46e55e | [
"MIT"
] | 2 | 2021-11-29T13:51:27.000Z | 2021-12-12T14:59:42.000Z | ptxt/journal/models.py | mvasilkov/scrapheap | 53e30b88879ab8e4d80867b0ec7fa631ce46e55e | [
"MIT"
] | null | null | null | ptxt/journal/models.py | mvasilkov/scrapheap | 53e30b88879ab8e4d80867b0ec7fa631ce46e55e | [
"MIT"
] | null | null | null | from django.core.validators import MinLengthValidator
from django.contrib.auth.models import User
from django.contrib.auth.validators import UnicodeUsernameValidator
from django.db import models
from django.db.models.signals import pre_save
from django.dispatch import receiver
from django.utils.encoding import iri_to_u... | 34.954545 | 94 | 0.755527 | 196 | 1,538 | 5.765306 | 0.428571 | 0.061947 | 0.030089 | 0.037168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004566 | 0.145644 | 1,538 | 43 | 95 | 35.767442 | 0.855403 | 0.051365 | 0 | 0 | 0 | 0 | 0.051476 | 0.037062 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.290323 | 0.096774 | 0.870968 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
688f82d913086422926e43ef0486a06096928207 | 570 | py | Python | lazysignup/utils.py | yoccodog/django-lazysignup | 18d273b97083c8e2a21e54bf326f41c0b4e231fb | [
"BSD-3-Clause"
] | null | null | null | lazysignup/utils.py | yoccodog/django-lazysignup | 18d273b97083c8e2a21e54bf326f41c0b4e231fb | [
"BSD-3-Clause"
] | null | null | null | lazysignup/utils.py | yoccodog/django-lazysignup | 18d273b97083c8e2a21e54bf326f41c0b4e231fb | [
"BSD-3-Clause"
] | 1 | 2018-06-22T13:07:34.000Z | 2018-06-22T13:07:34.000Z | def is_lazy_user(user):
""" Return True if the passed user is a lazy user. """
# Anonymous users are not lazy.
if user.is_anonymous:
return False
# Check the user backend. If the lazy signup backend
# authenticated them, then the user is lazy.
backend = getattr(user, 'backend', None)
... | 33.529412 | 63 | 0.685965 | 78 | 570 | 4.974359 | 0.551282 | 0.046392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002278 | 0.229825 | 570 | 16 | 64 | 35.625 | 0.881549 | 0.403509 | 0 | 0 | 0 | 0 | 0.133333 | 0.112121 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | 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 |
689285cf22e54c3ba6df2bb206502e17fb240035 | 1,970 | py | Python | alien_invasion.py | shtiyu/biubiubiu | ebb41a14d4fd14cfc2a27a01af755713e084c4b3 | [
"MIT"
] | 3 | 2018-11-22T11:31:47.000Z | 2022-02-22T06:29:59.000Z | alien_invasion.py | shtiyu/biubiubiu | ebb41a14d4fd14cfc2a27a01af755713e084c4b3 | [
"MIT"
] | null | null | null | alien_invasion.py | shtiyu/biubiubiu | ebb41a14d4fd14cfc2a27a01af755713e084c4b3 | [
"MIT"
] | null | null | null | import pygame
from pygame.sprite import Group
from button import Button
from game_stats import GameStats
from settings import Settings
from ship import Ship
from scoreboard import Scoreboard
import game_funcitons as gf
def run_game():
pygame.init()
pygame.mixer.init()
ai_settings = Settings()
screen =... | 28.970588 | 128 | 0.664975 | 258 | 1,970 | 4.829457 | 0.286822 | 0.11236 | 0.11557 | 0.067416 | 0.223917 | 0.099518 | 0 | 0 | 0 | 0 | 0 | 0.021419 | 0.241624 | 1,970 | 68 | 129 | 28.970588 | 0.812584 | 0.013706 | 0 | 0.085106 | 0 | 0 | 0.018051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0.085106 | 0.170213 | 0 | 0.191489 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
68998d2ad54cd9bef2834023dae463b6fbec5d90 | 1,128 | py | Python | src/3-all_together/parse_vectors.py | bt3gl/Tool-NetClean_Complex_Networks_Data_Cleanser | 312f4fe2a080b75550e353a55ebf5b03d4d9c9a1 | [
"MIT"
] | 5 | 2015-04-14T04:09:40.000Z | 2018-05-18T21:57:21.000Z | src/3-all_together/parse_vectors.py | aquario-crypto/NetClean-Complex_Networks_Data_Cleanser | 312f4fe2a080b75550e353a55ebf5b03d4d9c9a1 | [
"MIT"
] | null | null | null | src/3-all_together/parse_vectors.py | aquario-crypto/NetClean-Complex_Networks_Data_Cleanser | 312f4fe2a080b75550e353a55ebf5b03d4d9c9a1 | [
"MIT"
] | 4 | 2015-04-14T04:11:28.000Z | 2019-07-12T03:47:30.000Z | #!/usr/bin/env python
__author__ = "Mari Wahl"
__copyright__ = "Copyright 2014, The Cogent Project"
__credits__ = ["Mari Wahl"]
__license__ = "GPL"
__version__ = "2.0"
__maintainer__ = "Mari Wahl"
__email__ = "marina.w4hl@gmail.com"
import os
from constants import SUBFOLDERS, FEATURES
def create_input_files(... | 21.692308 | 61 | 0.625 | 134 | 1,128 | 4.850746 | 0.514925 | 0.024615 | 0.049231 | 0.076923 | 0.061538 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0.008255 | 0.248227 | 1,128 | 51 | 62 | 22.117647 | 0.758255 | 0.050532 | 0 | 0 | 0 | 0 | 0.183349 | 0.043966 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | null | null | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
689c35abc62fa1170e0db4a74ec9011f9d0a466c | 1,775 | py | Python | backend/utils/__init__.py | szkkteam/agrosys | a390332202f7200632d2ff3816e1b0f3cc76f586 | [
"MIT"
] | null | null | null | backend/utils/__init__.py | szkkteam/agrosys | a390332202f7200632d2ff3816e1b0f3cc76f586 | [
"MIT"
] | null | null | null | backend/utils/__init__.py | szkkteam/agrosys | a390332202f7200632d2ff3816e1b0f3cc76f586 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Common Python library imports
import re
import unicodedata
# Pip package imports
from flask_sqlalchemy.model import camel_to_snake_case
from flask import current_app
from itsdangerous import URLSafeSerializer, BadData
from loguru import logger
# Internal package import... | 27.307692 | 100 | 0.654085 | 242 | 1,775 | 4.665289 | 0.454545 | 0.044287 | 0.031887 | 0.028344 | 0.136404 | 0.136404 | 0.136404 | 0.136404 | 0.136404 | 0.136404 | 0 | 0.002857 | 0.211268 | 1,775 | 64 | 101 | 27.734375 | 0.803571 | 0.167887 | 0 | 0.05 | 0 | 0 | 0.074074 | 0.030178 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175 | false | 0.05 | 0.175 | 0.025 | 0.675 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
68a37f7b4dbe79a75b57e0f1d831de618aa2079e | 563 | py | Python | test/unit/unittest_utils/utility.py | tsungjui/fusionline | 26d5d41e82ac83822ba41df1cd14c54afa112655 | [
"CC-BY-3.0"
] | 1 | 2019-11-03T11:45:43.000Z | 2019-11-03T11:45:43.000Z | test/unit/unittest_utils/utility.py | tsungjui/fusionline | 26d5d41e82ac83822ba41df1cd14c54afa112655 | [
"CC-BY-3.0"
] | 4 | 2017-05-24T19:36:34.000Z | 2019-08-23T02:49:18.000Z | test/unit/unittest_utils/utility.py | abretaud/galaxy | 1ad89511540e6800cd2d0da5d878c1c77d8ccfe9 | [
"CC-BY-3.0"
] | null | null | null | """
Unit test utilities.
"""
import textwrap
def clean_multiline_string( multiline_string, sep='\n' ):
"""
Dedent, split, remove first and last empty lines, rejoin.
"""
multiline_string = textwrap.dedent( multiline_string )
string_list = multiline_string.split( sep )
if not string_list[0]:
... | 23.458333 | 61 | 0.641208 | 71 | 563 | 4.802817 | 0.450704 | 0.234604 | 0.096774 | 0.087977 | 0.123167 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0.225577 | 563 | 23 | 62 | 24.478261 | 0.772936 | 0.195382 | 0 | 0 | 0 | 0 | 0.060465 | 0.051163 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 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 |
d79a69ca5970bcc43c73bbe72a7d4bd0d0841c39 | 491 | py | Python | rabbitai/migrations/versions/d7c1a0d6f2da_remove_limit_used_from_query_model.py | psbsgic/rabbitai | 769e120ba605d56ac076f810a549c38dac410c8e | [
"Apache-2.0"
] | null | null | null | rabbitai/migrations/versions/d7c1a0d6f2da_remove_limit_used_from_query_model.py | psbsgic/rabbitai | 769e120ba605d56ac076f810a549c38dac410c8e | [
"Apache-2.0"
] | null | null | null | rabbitai/migrations/versions/d7c1a0d6f2da_remove_limit_used_from_query_model.py | psbsgic/rabbitai | 769e120ba605d56ac076f810a549c38dac410c8e | [
"Apache-2.0"
] | 1 | 2021-07-09T16:29:50.000Z | 2021-07-09T16:29:50.000Z | """Remove limit used from query model
Revision ID: d7c1a0d6f2da
Revises: afc69274c25a
Create Date: 2019-06-04 10:12:36.675369
"""
# revision identifiers, used by Alembic.
revision = "d7c1a0d6f2da"
down_revision = "afc69274c25a"
import sqlalchemy as sa
from alembic import op
def upgrade():
with op.batch_alter_... | 20.458333 | 80 | 0.735234 | 69 | 491 | 5.101449 | 0.608696 | 0.076705 | 0.085227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0.148676 | 491 | 23 | 81 | 21.347826 | 0.736842 | 0.331976 | 0 | 0 | 0 | 0 | 0.16875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d79b4bcbf6a110684a6330158716bc8642e8c218 | 641 | py | Python | flow/core/gcp_credentials.py | hwknsj/synergy_flow | aba8f57b2cbeeb0368a64eaa7e5369fcef0a3136 | [
"BSD-3-Clause"
] | null | null | null | flow/core/gcp_credentials.py | hwknsj/synergy_flow | aba8f57b2cbeeb0368a64eaa7e5369fcef0a3136 | [
"BSD-3-Clause"
] | 1 | 2016-10-03T18:48:15.000Z | 2019-11-01T21:53:30.000Z | flow/core/gcp_credentials.py | hwknsj/synergy_flow | aba8f57b2cbeeb0368a64eaa7e5369fcef0a3136 | [
"BSD-3-Clause"
] | 1 | 2019-11-02T00:45:26.000Z | 2019-11-02T00:45:26.000Z | import io
import json
from google.auth import compute_engine
from google.oauth2 import service_account
def gcp_credentials(service_account_file):
if service_account_file:
with io.open(service_account_file, 'r', encoding='utf-8') as json_fi:
credentials_info = json.load(json_fi)
creden... | 35.611111 | 93 | 0.75195 | 80 | 641 | 5.8 | 0.475 | 0.181034 | 0.116379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003846 | 0.188768 | 641 | 17 | 94 | 37.705882 | 0.888462 | 0.212168 | 0 | 0 | 0 | 0 | 0.011952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d79bfd3dab6cfcc04ef37c5a0243968c7e22addb | 491 | py | Python | demos/template/src/urls.py | akornatskyy/wheezy.web | 417834db697cf1f78f3a60cc880b9fd25d40c6de | [
"MIT"
] | 17 | 2020-08-29T18:45:51.000Z | 2022-03-02T19:37:13.000Z | demos/template/src/urls.py | akornatskyy/wheezy.web | 417834db697cf1f78f3a60cc880b9fd25d40c6de | [
"MIT"
] | 29 | 2020-07-18T04:34:03.000Z | 2021-07-06T09:42:36.000Z | demos/template/src/urls.py | akornatskyy/wheezy.web | 417834db697cf1f78f3a60cc880b9fd25d40c6de | [
"MIT"
] | 1 | 2022-03-14T08:41:42.000Z | 2022-03-14T08:41:42.000Z | """
"""
from membership.web.urls import membership_urls
from public.web.urls import error_urls, public_urls, static_urls
from public.web.views import home
from wheezy.routing import url
locale_pattern = "{locale:(en|ru)}/"
locale_defaults = {"locale": "en"}
locale_urls = public_urls + membership_urls
locale_urls.app... | 25.842105 | 64 | 0.747454 | 68 | 491 | 5.132353 | 0.323529 | 0.120344 | 0.074499 | 0.097421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120163 | 491 | 18 | 65 | 27.277778 | 0.80787 | 0 | 0 | 0 | 0 | 0 | 0.078512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d79dec81c3204981b242083307d7250e99c10afb | 271 | py | Python | fileInfo.py | Jiaoma/fileStr | f400f607c7ab6923b36ffdda4e6eccdbc12c32cd | [
"MIT"
] | null | null | null | fileInfo.py | Jiaoma/fileStr | f400f607c7ab6923b36ffdda4e6eccdbc12c32cd | [
"MIT"
] | null | null | null | fileInfo.py | Jiaoma/fileStr | f400f607c7ab6923b36ffdda4e6eccdbc12c32cd | [
"MIT"
] | null | null | null | from os import listdir
from os.path import join
import os, errno
def getImageNum(rootDir):
return len(listdir(join(rootDir)))
def safeMkdir(path:str):
try:
os.makedirs(path)
except OSError as e:
if e.errno != errno.EEXIST:
raise | 19.357143 | 38 | 0.649446 | 38 | 271 | 4.631579 | 0.605263 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258303 | 271 | 14 | 39 | 19.357143 | 0.875622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d7a7ff3bd6f840a0858a02d02a7395eeedc612d9 | 3,333 | py | Python | recohut/models/layers/graph.py | sparsh-ai/recohut | 4121f665761ffe38c9b6337eaa9293b26bee2376 | [
"Apache-2.0"
] | null | null | null | recohut/models/layers/graph.py | sparsh-ai/recohut | 4121f665761ffe38c9b6337eaa9293b26bee2376 | [
"Apache-2.0"
] | 1 | 2022-01-12T05:40:57.000Z | 2022-01-12T05:40:57.000Z | recohut/models/layers/graph.py | RecoHut-Projects/recohut | 4121f665761ffe38c9b6337eaa9293b26bee2376 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/models/layers/models.layers.graph.ipynb (unless otherwise specified).
__all__ = ['FiGNN_Layer', 'GraphLayer']
# Cell
import torch
import torch.nn as nn
import torch.nn.functional as F
from itertools import product
# Cell
class FiGNN_Layer(nn.Module):
def __init__(s... | 40.646341 | 117 | 0.610561 | 455 | 3,333 | 4.213187 | 0.257143 | 0.106416 | 0.04747 | 0.065728 | 0.237872 | 0.174231 | 0.10433 | 0.10433 | 0.10433 | 0.062598 | 0 | 0.007104 | 0.282028 | 3,333 | 82 | 118 | 40.646341 | 0.793982 | 0.057006 | 0 | 0.042254 | 1 | 0 | 0.007969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070423 | false | 0 | 0.056338 | 0 | 0.197183 | 0 | 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 |
d7a9af578243dd70e67e5e691e31327e0ed63c8d | 3,908 | py | Python | src/consumer/catalog-search/swagger_server/models/error_response.py | CADDE-sip/connector | 233b63df334dea67c05d379e925ebb7cc15f4b4d | [
"MIT"
] | 1 | 2022-03-29T05:44:47.000Z | 2022-03-29T05:44:47.000Z | src/provider/provenance-management/swagger_server/models/error_response.py | CADDE-sip/connector | 233b63df334dea67c05d379e925ebb7cc15f4b4d | [
"MIT"
] | null | null | null | src/provider/provenance-management/swagger_server/models/error_response.py | CADDE-sip/connector | 233b63df334dea67c05d379e925ebb7cc15f4b4d | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from swagger_server.models.base_model_ import Model
from swagger_server import util
class ErrorResponse(Model):
"""NOTE: This class is auto generated by the swagg... | 25.376623 | 116 | 0.570368 | 444 | 3,908 | 4.954955 | 0.177928 | 0.057273 | 0.181364 | 0.034091 | 0.452727 | 0.416818 | 0.395 | 0.152727 | 0 | 0 | 0 | 0.021244 | 0.337513 | 3,908 | 153 | 117 | 25.542484 | 0.828505 | 0.425026 | 0 | 0.222222 | 0 | 0 | 0.093385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.092593 | 0 | 0.388889 | 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 |
d7ac26c759283e3913ac9e8cb81d30bdc1dc518a | 9,903 | py | Python | proa.py | andrehigher/ProA | bd05d231f6edb1c2f87a3c067ff0cf1f2867b9b5 | [
"Apache-2.0"
] | null | null | null | proa.py | andrehigher/ProA | bd05d231f6edb1c2f87a3c067ff0cf1f2867b9b5 | [
"Apache-2.0"
] | null | null | null | proa.py | andrehigher/ProA | bd05d231f6edb1c2f87a3c067ff0cf1f2867b9b5 | [
"Apache-2.0"
] | null | null | null | """ A Python Class
A simple Python graph class to do essential operations into graph.
"""
import operator
import math
from random import choice
from collections import defaultdict
import networkx as nx
class ProA():
def __init__(self, graph):
""" Initializes util object.
"""
self.__graph =... | 36.951493 | 139 | 0.58144 | 1,131 | 9,903 | 4.885942 | 0.148541 | 0.063518 | 0.017915 | 0.015201 | 0.23688 | 0.150923 | 0.09591 | 0.067318 | 0.041983 | 0.024973 | 0 | 0.016155 | 0.312431 | 9,903 | 267 | 140 | 37.089888 | 0.795418 | 0.053216 | 0 | 0.163743 | 0 | 0 | 0.030566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.023392 | 0.02924 | null | null | 0.128655 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d7afd3383399873e7b024e174d09b83c6155eba6 | 2,928 | py | Python | infra/tools/git-push-speed.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | null | null | null | infra/tools/git-push-speed.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | null | null | null | infra/tools/git-push-speed.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Measures the average time used by git-push command in CQ based on data from
chromium-cq-status.appspot.com."""
import argparse
import json
import logging... | 36.148148 | 79 | 0.653005 | 367 | 2,928 | 5.092643 | 0.411444 | 0.017121 | 0.027287 | 0.024612 | 0.055645 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004787 | 0.215164 | 2,928 | 80 | 80 | 36.6 | 0.808529 | 0.128415 | 0 | 0 | 0 | 0 | 0.248766 | 0.018503 | 0 | 0 | 0 | 0 | 0.018519 | 0 | null | null | 0 | 0.092593 | null | null | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d7b668f8518c7dd4a692c3180e8c31313bbcc189 | 8,139 | py | Python | spa/tests/dom_helper.py | fergalmoran/dss.api | d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073 | [
"BSD-2-Clause"
] | null | null | null | spa/tests/dom_helper.py | fergalmoran/dss.api | d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073 | [
"BSD-2-Clause"
] | null | null | null | spa/tests/dom_helper.py | fergalmoran/dss.api | d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073 | [
"BSD-2-Clause"
] | null | null | null | from selenium.common.exceptions import NoSuchElementException, TimeoutException
class DomHelper(object):
driver = None
waiter = None
def open_page(self, url):
self.driver.get(url)
def reload_page(self):
self.driver.refresh()
def print_el(self, element):
print('tag: ' + e... | 38.03271 | 154 | 0.615678 | 980 | 8,139 | 4.935714 | 0.120408 | 0.069465 | 0.018607 | 0.033492 | 0.473847 | 0.424437 | 0.353111 | 0.315071 | 0.27269 | 0.220591 | 0 | 0 | 0.286153 | 8,139 | 214 | 155 | 38.03271 | 0.83253 | 0 | 0 | 0.314286 | 0 | 0 | 0.088206 | 0.002703 | 0 | 0 | 0 | 0 | 0 | 1 | 0.211429 | false | 0 | 0.005714 | 0.028571 | 0.331429 | 0.017143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d7bd3f72caaeb6260431ad1a59089ba8056f0635 | 43,253 | py | Python | inventory/views.py | yellowjaguar5/lnldb | dea7708f5e4e103ef6ef968c9f3a4deaa58861c5 | [
"MIT"
] | 5 | 2017-09-25T21:24:59.000Z | 2021-12-18T17:08:13.000Z | inventory/views.py | yellowjaguar5/lnldb | dea7708f5e4e103ef6ef968c9f3a4deaa58861c5 | [
"MIT"
] | 304 | 2015-03-24T17:44:22.000Z | 2022-03-29T14:09:41.000Z | inventory/views.py | yellowjaguar5/lnldb | dea7708f5e4e103ef6ef968c9f3a4deaa58861c5 | [
"MIT"
] | 10 | 2017-10-24T02:18:12.000Z | 2021-09-20T20:40:25.000Z | from io import BytesIO
import json
import re
import requests
from django.conf import settings
from django.contrib import messages
from django.contrib.auth.decorators import login_required, permission_required
from django.core.exceptions import PermissionDenied
from django.core.paginator import EmptyPage, PageNotAnInte... | 51.369359 | 199 | 0.565464 | 4,417 | 43,253 | 5.364954 | 0.092144 | 0.022281 | 0.025235 | 0.032916 | 0.748956 | 0.710385 | 0.681099 | 0.642866 | 0.611765 | 0.558045 | 0 | 0.007702 | 0.327607 | 43,253 | 841 | 200 | 51.43044 | 0.807104 | 0.272628 | 0 | 0.620833 | 0 | 0.004167 | 0.172339 | 0.025158 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0.002083 | 0.04375 | 0.002083 | 0.15625 | 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 |
d7c1f88f81f11884d3d6e8d5e5c7d5256d7a55bf | 1,376 | py | Python | apps/accounts/tests/functional/transactions/test_confirm_email.py | victoraguilarc/xib.li | 11e61641d0b2bad148713488aa7b730c1f6cbb0c | [
"MIT"
] | 1 | 2020-05-08T09:29:08.000Z | 2020-05-08T09:29:08.000Z | apps/accounts/tests/functional/transactions/test_confirm_email.py | victoraguilarc/xib.li | 11e61641d0b2bad148713488aa7b730c1f6cbb0c | [
"MIT"
] | 1 | 2020-05-08T16:47:17.000Z | 2020-05-13T21:05:00.000Z | apps/accounts/tests/functional/transactions/test_confirm_email.py | victoraguilarc/xib.li | 11e61641d0b2bad148713488aa7b730c1f6cbb0c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
import pytest
from django.test import RequestFactory
from django.urls import reverse
from doubles import allow, expect
from rest_framework import status
from apps.accounts.models.choices import ActionCategory
from apps.accounts.services.auth import AuthService
from apps... | 32.761905 | 90 | 0.750727 | 170 | 1,376 | 5.835294 | 0.388235 | 0.120968 | 0.064516 | 0.05746 | 0.316532 | 0.316532 | 0.316532 | 0.316532 | 0.316532 | 0.141129 | 0 | 0.006944 | 0.162791 | 1,376 | 41 | 91 | 33.560976 | 0.854167 | 0.03125 | 0 | 0.142857 | 0 | 0 | 0.030098 | 0.016554 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.107143 | false | 0 | 0.321429 | 0.035714 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d7c647bb1019176d7d7f0e17a3dee844575194ad | 11,017 | py | Python | tools/external_converter_v2/parser/operations/op_io.py | pangge/Anakin | f327267d1ee2038d92d8c704ec9f1a03cb800fc8 | [
"Apache-2.0"
] | 533 | 2018-05-18T06:14:04.000Z | 2022-03-23T11:46:30.000Z | tools/external_converter_v2/parser/operations/op_io.py | pangge/Anakin | f327267d1ee2038d92d8c704ec9f1a03cb800fc8 | [
"Apache-2.0"
] | 100 | 2018-05-26T08:32:48.000Z | 2022-03-17T03:26:25.000Z | tools/external_converter_v2/parser/operations/op_io.py | pangge/Anakin | f327267d1ee2038d92d8c704ec9f1a03cb800fc8 | [
"Apache-2.0"
] | 167 | 2018-05-18T06:14:35.000Z | 2022-02-14T01:44:20.000Z | #! /usr/bin/env python
# Copyright (c) 2017, Cuichaowen. All rights reserved.
# -*- coding: utf-8 -*-
# ops helper dictionary
class Dictionary(object):
"""
Dictionary for op param which needs to be combined
"""
def __init__(self):
self.__dict__ = {}
def set_attr(self, **kwargs):
... | 54.004902 | 108 | 0.338023 | 750 | 11,017 | 4.505333 | 0.290667 | 0.026931 | 0.063924 | 0.07813 | 0.060373 | 0.028411 | 0 | 0 | 0 | 0 | 0 | 0.005802 | 0.593265 | 11,017 | 203 | 109 | 54.270936 | 0.74827 | 0.081329 | 0 | 0.014493 | 0 | 0 | 0.001601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7c9ba9ae60b31b077eadce9426f0130ab05c043 | 276 | py | Python | totality/test_main.py | str8d8a/totality-python | cebfd7df880dd42da86fb3094676dd62d2e6d99a | [
"MIT"
] | null | null | null | totality/test_main.py | str8d8a/totality-python | cebfd7df880dd42da86fb3094676dd62d2e6d99a | [
"MIT"
] | null | null | null | totality/test_main.py | str8d8a/totality-python | cebfd7df880dd42da86fb3094676dd62d2e6d99a | [
"MIT"
] | null | null | null | from totality import Totality, Node, NodeId
def test_basic():
t = Totality()
coll = t.create_collection(username="system")
node_id = NodeId(node_type="facility")
node = Node(node_id, 34, -120, collection=coll)
print(node.to_doc())
assert t is not None | 30.666667 | 51 | 0.684783 | 40 | 276 | 4.575 | 0.65 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022422 | 0.192029 | 276 | 9 | 52 | 30.666667 | 0.798206 | 0 | 0 | 0 | 0 | 0 | 0.050542 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0.125 | 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 |
d7ca9ef5912d23f52e3b73b63d9991b17b4b8ce7 | 1,343 | py | Python | src/compath_resources/summarize.py | ComPath/resources | e8da7b511c2b558b8fd0bf38888b512008ac1ba3 | [
"MIT"
] | 3 | 2018-05-14T14:46:39.000Z | 2019-06-20T10:28:26.000Z | src/compath_resources/summarize.py | ComPath/compath-resources | e8da7b511c2b558b8fd0bf38888b512008ac1ba3 | [
"MIT"
] | 13 | 2020-03-28T13:36:32.000Z | 2021-01-19T15:00:07.000Z | src/compath_resources/summarize.py | ComPath/resources | e8da7b511c2b558b8fd0bf38888b512008ac1ba3 | [
"MIT"
] | 1 | 2021-12-01T09:49:59.000Z | 2021-12-01T09:49:59.000Z | # -*- coding: utf-8 -*-
"""Generate charts for the ComPath GitHub Pages site."""
import click
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
from more_click import verbose_option
from compath_resources import get_df
from compath_resources.constants import DATA_DIRECTORY, IMG_DIRECTORY
__a... | 28.574468 | 94 | 0.693969 | 194 | 1,343 | 4.597938 | 0.494845 | 0.035874 | 0.026906 | 0.049327 | 0.067265 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014072 | 0.153388 | 1,343 | 46 | 95 | 29.195652 | 0.770449 | 0.079672 | 0 | 0 | 1 | 0 | 0.133878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.212121 | 0 | 0.242424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7d0a76d7b4cce22fdb7bb20a546cca9f12ef41b | 340 | py | Python | abc153_e.py | tkt989/atcoder | d4f334f60c9d487a1d9c166cda3e2303d5db23e5 | [
"MIT"
] | null | null | null | abc153_e.py | tkt989/atcoder | d4f334f60c9d487a1d9c166cda3e2303d5db23e5 | [
"MIT"
] | null | null | null | abc153_e.py | tkt989/atcoder | d4f334f60c9d487a1d9c166cda3e2303d5db23e5 | [
"MIT"
] | null | null | null | import math
H, N = [int(n) for n in input().split()]
A = []
B = []
for _ in range(N):
a, b = [int(n) for n in input().split()]
A.append(a)
B.append(b)
p = []
for i in range(N):
p.append(A[i] / B[i])
for pp in p:
pass
# print(pp)
maisu = []
for i in range(N):
maisu.append(math.ceil(H / A[i]))
for m ... | 13.076923 | 42 | 0.538235 | 70 | 340 | 2.6 | 0.3 | 0.032967 | 0.131868 | 0.087912 | 0.362637 | 0.230769 | 0.230769 | 0.230769 | 0 | 0 | 0 | 0 | 0.247059 | 340 | 26 | 43 | 13.076923 | 0.710938 | 0.026471 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d7d12e722f235c4570fb348b9967c5ef1d812876 | 7,467 | py | Python | util.py | ChannyHong/ISREncoder | be8145756d50582c371378aa846906d6f94a45f6 | [
"Apache-2.0"
] | 6 | 2020-01-16T17:43:36.000Z | 2021-04-25T08:52:38.000Z | util.py | ChannyHong/ISREncoder | be8145756d50582c371378aa846906d6f94a45f6 | [
"Apache-2.0"
] | null | null | null | util.py | ChannyHong/ISREncoder | be8145756d50582c371378aa846906d6f94a45f6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Superb AI, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 33.78733 | 140 | 0.759207 | 1,007 | 7,467 | 5.357498 | 0.232373 | 0.048193 | 0.025209 | 0.014458 | 0.49342 | 0.442817 | 0.319184 | 0.319184 | 0.286747 | 0.220575 | 0 | 0.008323 | 0.147181 | 7,467 | 220 | 141 | 33.940909 | 0.838882 | 0.108477 | 0 | 0.253333 | 0 | 0 | 0.045197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026667 | 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 |
d7d42afdeeec54d2a3cf68a4146560be3acb0b13 | 5,676 | py | Python | shortening_calculations.py | joferkington/oost_paper_code | 6c6cf242a3fa6f4373c8ed528f6510f5fdf96d4d | [
"MIT"
] | 20 | 2015-06-25T19:56:45.000Z | 2021-05-18T00:35:33.000Z | shortening_calculations.py | joferkington/oost_paper_code | 6c6cf242a3fa6f4373c8ed528f6510f5fdf96d4d | [
"MIT"
] | null | null | null | shortening_calculations.py | joferkington/oost_paper_code | 6c6cf242a3fa6f4373c8ed528f6510f5fdf96d4d | [
"MIT"
] | 19 | 2015-09-10T00:21:33.000Z | 2019-05-02T19:34:38.000Z | from uncertainties import ufloat
from utilities import min_value, max_value
def main():
print 'Plate motion rate parallel to section'
print plate_motion()
print 'Shortening (including ductile) from bed-length'
print bed_length_shortening()
print 'Estimated total shortening accomodated by OOSTS'
... | 32.434286 | 80 | 0.688161 | 733 | 5,676 | 5.173261 | 0.25648 | 0.031909 | 0.031382 | 0.017405 | 0.315928 | 0.273207 | 0.255011 | 0.228903 | 0.183017 | 0.155063 | 0 | 0.022827 | 0.235906 | 5,676 | 174 | 81 | 32.62069 | 0.85151 | 0.079457 | 0 | 0.169231 | 0 | 0 | 0.100316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061538 | null | null | 0.215385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d7d889701d322c85cba5e27beaf93698e762c786 | 2,483 | py | Python | tests/server_state_item_test.py | whitphx/streamlit-server-state | 12e0d07e4863ea33529c1685c764c9a4214df8e2 | [
"MIT"
] | 20 | 2021-07-11T14:47:50.000Z | 2022-02-08T07:44:03.000Z | tests/server_state_item_test.py | whitphx/streamlit-server-state | 12e0d07e4863ea33529c1685c764c9a4214df8e2 | [
"MIT"
] | 31 | 2021-07-23T15:21:27.000Z | 2022-03-30T15:19:17.000Z | tests/server_state_item_test.py | whitphx/streamlit-server-state | 12e0d07e4863ea33529c1685c764c9a4214df8e2 | [
"MIT"
] | 1 | 2022-01-03T02:01:24.000Z | 2022-01-03T02:01:24.000Z | from unittest.mock import ANY, Mock, patch
import pytest
from streamlit_server_state.server_state_item import ServerStateItem
@pytest.fixture
def patch_is_rerunnable():
with patch(
"streamlit_server_state.server_state_item.is_rerunnable"
) as mock_is_rerunnable:
mock_is_rerunnable.return_val... | 24.343137 | 85 | 0.755135 | 335 | 2,483 | 5.161194 | 0.18209 | 0.117987 | 0.176981 | 0.159051 | 0.738577 | 0.722961 | 0.615963 | 0.574899 | 0.511857 | 0.393291 | 0 | 0.013378 | 0.157068 | 2,483 | 101 | 86 | 24.584158 | 0.812709 | 0.014096 | 0 | 0.567164 | 0 | 0 | 0.023313 | 0.022086 | 0 | 0 | 0 | 0 | 0.253731 | 1 | 0.089552 | false | 0 | 0.044776 | 0 | 0.134328 | 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 |
d7dfa172aeeb64d0717b70994ce79034e4b91fe6 | 424 | py | Python | find_duplicate_7kyu/find_the_duplicate.py | philipwerner/code-katas | 3bdce2b5d12df612e7c8f2e2b8b5ebe16a653712 | [
"MIT"
] | null | null | null | find_duplicate_7kyu/find_the_duplicate.py | philipwerner/code-katas | 3bdce2b5d12df612e7c8f2e2b8b5ebe16a653712 | [
"MIT"
] | null | null | null | find_duplicate_7kyu/find_the_duplicate.py | philipwerner/code-katas | 3bdce2b5d12df612e7c8f2e2b8b5ebe16a653712 | [
"MIT"
] | null | null | null | """Kata: Find the Duplicated Number in a Consecutive Unsorted List - Finds and returns
the duplicated number from the list
#1 Best Practices Solution by SquishyStrawberry
def find_dup(arr):
return (i for i in arr if arr.count(i) > 1).next()
"""
def find_dup(arr):
"""This will find the duplicated int in the ... | 28.266667 | 87 | 0.683962 | 72 | 424 | 4 | 0.5 | 0.135417 | 0.118056 | 0.090278 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011976 | 0.212264 | 424 | 14 | 88 | 30.285714 | 0.850299 | 0.681604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7dfcf7248542aa01e4dc5de7a80c637f4e680b5 | 2,998 | py | Python | text_generator.py | agvergara/RNN_Text_Generator | c1bcae06085b2ce8ec6f94ba9378c74a9c834c93 | [
"Apache-2.0"
] | null | null | null | text_generator.py | agvergara/RNN_Text_Generator | c1bcae06085b2ce8ec6f94ba9378c74a9c834c93 | [
"Apache-2.0"
] | null | null | null | text_generator.py | agvergara/RNN_Text_Generator | c1bcae06085b2ce8ec6f94ba9378c74a9c834c93 | [
"Apache-2.0"
] | null | null | null | #coding:cp1252
"""
@author: Antonio Gomez Vergara
Generates text using word embeddings (still in process of study how word embeddings works)
"""
import sys
import text_utils
from rnn_class import TextGeneratorModel
MIN_WORD_FREQ = 10
SEED = "Nenita hello"
SEQUENCE_LEN = len(SEED)
STRIDE = 1
BATCH_SIZE... | 42.828571 | 185 | 0.740494 | 408 | 2,998 | 5.112745 | 0.348039 | 0.030201 | 0.021093 | 0.018217 | 0.050815 | 0.050815 | 0.029722 | 0 | 0 | 0 | 0 | 0.014498 | 0.148766 | 2,998 | 69 | 186 | 43.449275 | 0.8029 | 0.051368 | 0 | 0 | 1 | 0 | 0.192043 | 0.031465 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.311111 | 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 |
d7e19de3f7cb4cc70ee65050649024f1a0772784 | 429 | py | Python | PivotExamples.py | KSim818/sandpit | 30a13e75db7c3c8d0ac84593db251e19144abac2 | [
"Apache-2.0"
] | null | null | null | PivotExamples.py | KSim818/sandpit | 30a13e75db7c3c8d0ac84593db251e19144abac2 | [
"Apache-2.0"
] | null | null | null | PivotExamples.py | KSim818/sandpit | 30a13e75db7c3c8d0ac84593db251e19144abac2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 18 16:14:01 2019
@author: KatieSi
"""
# https://jakevdp.github.io/PythonDataScienceHandbook/03.09-pivot-tables.html
import numpy as np
import pandas as pd
import seaborn as sns
titanic = sns.load_dataset('titanic')
titanic.head()
titanic.groupby(['sex', 'class'])['survi... | 25.235294 | 77 | 0.708625 | 59 | 429 | 5.135593 | 0.745763 | 0.092409 | 0.112211 | 0.145215 | 0.257426 | 0.257426 | 0 | 0 | 0 | 0 | 0 | 0.043814 | 0.095571 | 429 | 17 | 78 | 25.235294 | 0.737113 | 0.354312 | 0 | 0 | 0 | 0 | 0.178439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d7e5a49c03c6113e3e09dbacc624a1673c95d301 | 1,336 | py | Python | 10/lottery.py | sukio-1024/codeitPy | 43f4c6d5205eab9cb4780ceb8799b04ce7b10acb | [
"MIT"
] | null | null | null | 10/lottery.py | sukio-1024/codeitPy | 43f4c6d5205eab9cb4780ceb8799b04ce7b10acb | [
"MIT"
] | null | null | null | 10/lottery.py | sukio-1024/codeitPy | 43f4c6d5205eab9cb4780ceb8799b04ce7b10acb | [
"MIT"
] | null | null | null | from random import randint
# 무작위로 정렬된 1 - 45 사이의 숫자 여섯개 뽑기
def generate_numbers():
# 코드를 입력하세요
numbers = []
while (len(numbers) < 6):
number = randint(1, 45)
if number not in numbers:
numbers.append(number)
numbers.sort()
return numbers
# 보너스까지 포함해 7개 숫자 뽑기
# 정렬된 6개의 당... | 22.644068 | 67 | 0.589072 | 182 | 1,336 | 4.214286 | 0.43956 | 0.091265 | 0.052151 | 0.057366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085526 | 0.317365 | 1,336 | 58 | 68 | 23.034483 | 0.755482 | 0.141467 | 0 | 0.157895 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.026316 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7e74a16bd1d49e08dbc231924a1101d9a8cb72e | 1,181 | py | Python | backend-project/small_eod/letters/migrations/0011_auto_20200618_1921.py | WlodzimierzKorza/small_eod | 027022bd71122a949a2787d0fb86518df80e48cd | [
"MIT"
] | 64 | 2019-12-30T11:24:03.000Z | 2021-06-24T01:04:56.000Z | backend-project/small_eod/letters/migrations/0011_auto_20200618_1921.py | WlodzimierzKorza/small_eod | 027022bd71122a949a2787d0fb86518df80e48cd | [
"MIT"
] | 465 | 2018-06-13T21:43:43.000Z | 2022-01-04T23:33:56.000Z | backend-project/small_eod/letters/migrations/0011_auto_20200618_1921.py | WlodzimierzKorza/small_eod | 027022bd71122a949a2787d0fb86518df80e48cd | [
"MIT"
] | 72 | 2018-12-02T19:47:03.000Z | 2022-01-04T22:54:49.000Z | # Generated by Django 3.0.7 on 2020-06-18 19:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('letters', '0010_remove_letter_address'),
]
operations = [
migrations.CreateModel(
name='Documen... | 31.078947 | 175 | 0.589331 | 118 | 1,181 | 5.762712 | 0.533898 | 0.035294 | 0.070588 | 0.083824 | 0.117647 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0.026159 | 0.287892 | 1,181 | 37 | 176 | 31.918919 | 0.782402 | 0.038103 | 0 | 0.322581 | 1 | 0 | 0.159612 | 0.022928 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.16129 | 0 | 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 |
d7e8137c5791af611e110bf8ad7f195a10e8a8ad | 776 | py | Python | classes/dns.py | double-beep/SmokeDetector | 2d90dd23bbe15536868b699e79d4f0551a60f092 | [
"Apache-2.0",
"MIT"
] | 464 | 2015-01-03T05:57:08.000Z | 2022-03-23T05:42:39.000Z | classes/dns.py | double-beep/SmokeDetector | 2d90dd23bbe15536868b699e79d4f0551a60f092 | [
"Apache-2.0",
"MIT"
] | 6,210 | 2015-01-03T05:37:36.000Z | 2022-03-31T09:31:45.000Z | classes/dns.py | double-beep/SmokeDetector | 2d90dd23bbe15536868b699e79d4f0551a60f092 | [
"Apache-2.0",
"MIT"
] | 322 | 2015-01-14T05:13:06.000Z | 2022-03-28T01:18:31.000Z | import dns
import dns.resolver
import dns.rdatatype
def dns_resolve(domain: str) -> list:
addrs = []
resolver = dns.resolver.Resolver(configure=False)
# Default to Google DNS
resolver.nameservers = ['8.8.8.8', '8.8.4.4']
try:
for answer in resolver.resolve(domain, 'A').response.answer:
... | 25.866667 | 71 | 0.594072 | 95 | 776 | 4.842105 | 0.357895 | 0.119565 | 0.026087 | 0.026087 | 0.617391 | 0.604348 | 0.604348 | 0.452174 | 0.452174 | 0.230435 | 0 | 0.01476 | 0.301546 | 776 | 29 | 72 | 26.758621 | 0.833948 | 0.027062 | 0 | 0.454545 | 0 | 0 | 0.025232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.090909 | 0.136364 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d7f300fca751082084b5f11135e6ffc4d5eded17 | 1,930 | py | Python | tests/commands/mc-1.14/test_loot.py | Le0Developer/mcast | bdabd897e399ff17c734b9e02d3e1e5099674a1c | [
"MIT"
] | 2 | 2021-12-28T14:10:13.000Z | 2022-01-12T16:59:20.000Z | tests/commands/mc-1.14/test_loot.py | Le0Developer/mcast | bdabd897e399ff17c734b9e02d3e1e5099674a1c | [
"MIT"
] | 11 | 2021-01-18T09:00:23.000Z | 2021-01-29T09:29:04.000Z | tests/commands/mc-1.14/test_loot.py | Le0Developer/mcast | bdabd897e399ff17c734b9e02d3e1e5099674a1c | [
"MIT"
] | null | null | null |
from mcfunction.versions.mc_1_14.loot import loot, ParsedLootCommand
from mcfunction.nodes import EntityNode, PositionNode
def test_loot_spawn():
parsed = loot.parse('loot spawn 0 0 0 kill @e')
parsed: ParsedLootCommand
assert parsed.target_type.value == 'spawn'
assert isinstance(parsed.target, Posi... | 31.129032 | 79 | 0.681347 | 270 | 1,930 | 4.762963 | 0.162963 | 0.043546 | 0.032659 | 0.068429 | 0.582426 | 0.505443 | 0.505443 | 0.501555 | 0.4479 | 0.366252 | 0 | 0.034552 | 0.220207 | 1,930 | 61 | 80 | 31.639344 | 0.819934 | 0 | 0 | 0.175 | 0 | 0 | 0.255054 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.125 | false | 0 | 0.05 | 0 | 0.175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7fff513272ef6ea7c292003102cdb722d219305 | 1,549 | py | Python | TextAdventure.py | glors131/Portfolio1 | 64c36e1f1893fe30d0b13f6d419cf75a3fcf03cb | [
"MIT"
] | null | null | null | TextAdventure.py | glors131/Portfolio1 | 64c36e1f1893fe30d0b13f6d419cf75a3fcf03cb | [
"MIT"
] | null | null | null | TextAdventure.py | glors131/Portfolio1 | 64c36e1f1893fe30d0b13f6d419cf75a3fcf03cb | [
"MIT"
] | null | null | null | start = '''You wake up one morning and find yourself in a big crisis.
Trouble has arised and your worst fears have come true. Zoom is out to destroy
the world for good. However, a castrophe has happened and now the love of
your life is in danger. Which do you decide to save today?'''
print(start)
done = False
... | 39.717949 | 99 | 0.671401 | 257 | 1,549 | 4.011673 | 0.377432 | 0.078565 | 0.052376 | 0.058196 | 0.258002 | 0.13967 | 0.104753 | 0.104753 | 0.104753 | 0.069835 | 0 | 0 | 0.247256 | 1,549 | 39 | 100 | 39.717949 | 0.88422 | 0 | 0 | 0.272727 | 0 | 0.030303 | 0.657407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.363636 | 0 | 0 | 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 |
cc00205c58c037f18c599c68cbd7da80776abb99 | 3,141 | py | Python | catkin_workspace/src/project_weather_x/scripts/weather_server.py | NarendraPatwardhan/HuskyWeatherCast | 1ffadca23368a497ce7d3003806b548307bb7596 | [
"MIT"
] | null | null | null | catkin_workspace/src/project_weather_x/scripts/weather_server.py | NarendraPatwardhan/HuskyWeatherCast | 1ffadca23368a497ce7d3003806b548307bb7596 | [
"MIT"
] | null | null | null | catkin_workspace/src/project_weather_x/scripts/weather_server.py | NarendraPatwardhan/HuskyWeatherCast | 1ffadca23368a497ce7d3003806b548307bb7596 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import division
from project_weather_x.srv import Weather,WeatherResponse
import os
import rospy
import numpy as np
import urllib2
import cv2
import json
def handle_weather(req):
print "Returning weather data for zipcode [%s]"%(req)
return WeatherResponse(showWeather(pro... | 41.88 | 121 | 0.69914 | 461 | 3,141 | 4.587852 | 0.381779 | 0.05721 | 0.037825 | 0.047281 | 0.135225 | 0.135225 | 0.113475 | 0.113475 | 0.113475 | 0.08227 | 0 | 0.072659 | 0.149952 | 3,141 | 74 | 122 | 42.445946 | 0.719476 | 0.006367 | 0 | 0 | 0 | 0 | 0.158435 | 0.020526 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.121212 | null | null | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cc0180fa1725a1c40ecec04f320fe9877adad635 | 654 | py | Python | main.py | Answeroid/fb-harvester | 74ebab2345540888ffc2e3b873069fc363218e9c | [
"Apache-2.0"
] | null | null | null | main.py | Answeroid/fb-harvester | 74ebab2345540888ffc2e3b873069fc363218e9c | [
"Apache-2.0"
] | null | null | null | main.py | Answeroid/fb-harvester | 74ebab2345540888ffc2e3b873069fc363218e9c | [
"Apache-2.0"
] | null | null | null | from selenium import webdriver
from fb_auth import auth
from logger import Logger
def main():
# TODO add possibility to login to different FB accounts (use csv file to store them)
# TODO handle all exceptions especially when account was blocked
# TODO save automatic screenshots from time to time
# TOD... | 27.25 | 96 | 0.721713 | 89 | 654 | 5.179775 | 0.640449 | 0.030369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001912 | 0.200306 | 654 | 23 | 97 | 28.434783 | 0.879541 | 0.396024 | 0 | 0 | 0 | 0 | 0.238462 | 0.153846 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc048c5fb136986da892240b2448b0adce46347e | 1,310 | py | Python | src/modules/agents/n_rnn_agent.py | Sud0x67/mrmix | 4f4784e421c768509bd007e21b4455b56edc7cd2 | [
"Apache-2.0"
] | 4 | 2022-03-17T05:01:30.000Z | 2022-03-17T05:09:17.000Z | src/modules/agents/n_rnn_agent.py | Sud0x67/mrmix | 4f4784e421c768509bd007e21b4455b56edc7cd2 | [
"Apache-2.0"
] | null | null | null | src/modules/agents/n_rnn_agent.py | Sud0x67/mrmix | 4f4784e421c768509bd007e21b4455b56edc7cd2 | [
"Apache-2.0"
] | null | null | null | import torch.nn as nn
import torch.nn.functional as F
import torch as th
import numpy as np
import torch.nn.init as init
class NRNNAgent(nn.Module):
def __init__(self, input_shape, args):
super(NRNNAgent, self).__init__()
self.args = args
self.fc1 = nn.Linear(input_shape, args.rnn_hidden_d... | 36.388889 | 87 | 0.629771 | 203 | 1,310 | 3.871921 | 0.369458 | 0.062341 | 0.115776 | 0.142494 | 0.232824 | 0.080153 | 0 | 0 | 0 | 0 | 0 | 0.013225 | 0.249618 | 1,310 | 36 | 88 | 36.388889 | 0.786368 | 0.252672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 1 | 0.142857 | false | 0 | 0.238095 | 0.047619 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
cc0b0aa90c189510f88d632e9c48035e5079064b | 960 | py | Python | code/12_paketierung/intents/functions/location/intent_location.py | padmalcom/AISpeechAssistant | b7501a23a8f513acb5043f3c7bb06df129bdc2cc | [
"Apache-2.0"
] | 1 | 2021-09-08T09:21:16.000Z | 2021-09-08T09:21:16.000Z | code/12_paketierung/intents/functions/location/intent_location.py | padmalcom/AISpeechAssistant | b7501a23a8f513acb5043f3c7bb06df129bdc2cc | [
"Apache-2.0"
] | null | null | null | code/12_paketierung/intents/functions/location/intent_location.py | padmalcom/AISpeechAssistant | b7501a23a8f513acb5043f3c7bb06df129bdc2cc | [
"Apache-2.0"
] | 2 | 2022-02-06T09:54:40.000Z | 2022-03-01T07:52:51.000Z | from loguru import logger
from chatbot import register_call
import global_variables
import random
import os
import yaml
import geocoder
import constants
@register_call("location")
def location(session_id = "general", dummy=0):
config_path = constants.find_data_file(os.path.join('intents','functions','location','conf... | 30.967742 | 109 | 0.760417 | 131 | 960 | 5.442748 | 0.610687 | 0.025245 | 0.042076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00237 | 0.120833 | 960 | 31 | 110 | 30.967742 | 0.842417 | 0.090625 | 0 | 0 | 0 | 0 | 0.227325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.363636 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cc0ba0fc63266122471cb93b1a794001da14190a | 531 | py | Python | sagemaker/ssedata.py | cleveranjos/Rapid-ML-Gateway | 10a14abfce3351791331642c47eddfbf622e76d2 | [
"MIT"
] | 147 | 2017-06-26T11:25:12.000Z | 2022-03-21T22:59:25.000Z | sagemaker/ssedata.py | cleveranjos/Rapid-ML-Gateway | 10a14abfce3351791331642c47eddfbf622e76d2 | [
"MIT"
] | 28 | 2017-06-30T14:00:36.000Z | 2021-03-08T14:13:57.000Z | sagemaker/ssedata.py | cleveranjos/Rapid-ML-Gateway | 10a14abfce3351791331642c47eddfbf622e76d2 | [
"MIT"
] | 123 | 2017-06-27T14:08:18.000Z | 2022-01-05T06:26:31.000Z | from enum import Enum
class ArgType(Enum):
"""
Represents data types that can be used
as arguments in different script functions.
"""
Undefined = -1
Empty = 0
String = 1
Numeric = 2
Mixed = 3
class ReturnType(Enum):
"""
Represents return types that can
be used in scri... | 15.617647 | 47 | 0.585687 | 63 | 531 | 4.936508 | 0.571429 | 0.135048 | 0.07717 | 0.090032 | 0.115756 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033803 | 0.33145 | 531 | 33 | 48 | 16.090909 | 0.842254 | 0.323917 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cc22117e8552bbc6f7598294280399755ea7e496 | 1,255 | py | Python | bootstrapvz/common/fs/virtualharddisk.py | brett-smith/bootstrap-vz | 2eaa98db684b85186f3ecd6e5d1304aaceca6b73 | [
"Apache-2.0"
] | null | null | null | bootstrapvz/common/fs/virtualharddisk.py | brett-smith/bootstrap-vz | 2eaa98db684b85186f3ecd6e5d1304aaceca6b73 | [
"Apache-2.0"
] | null | null | null | bootstrapvz/common/fs/virtualharddisk.py | brett-smith/bootstrap-vz | 2eaa98db684b85186f3ecd6e5d1304aaceca6b73 | [
"Apache-2.0"
] | null | null | null | from .qemuvolume import QEMUVolume
from ..tools import log_check_call
import math
class VirtualHardDisk(QEMUVolume):
extension = 'vhd'
qemu_format = 'vpc'
ovf_uri = 'http://go.microsoft.com/fwlink/?LinkId=137171'
# Azure requires the image size to be a multiple of 1 MiB.
# VHDs are dynamic by def... | 44.821429 | 163 | 0.658964 | 186 | 1,255 | 4.301075 | 0.516129 | 0.0675 | 0.08125 | 0.06 | 0.0475 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014042 | 0.205578 | 1,255 | 27 | 164 | 46.481481 | 0.788365 | 0.278884 | 0 | 0 | 0 | 0 | 0.173526 | 0.028921 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cc22c0eacdbe6c82e058120ed038bae92274d066 | 2,180 | py | Python | tests/test_flight_path.py | flyinactor91/AVWX-Engine | 0d3ce2c6e962d2a3ec9db711caf9d1c94658fa80 | [
"MIT"
] | 30 | 2015-09-08T20:38:41.000Z | 2019-03-10T07:10:47.000Z | tests/test_flight_path.py | sthagen/avwx-engine | af235b9d26e5495f04076ed5499cf8cd131d4efc | [
"MIT"
] | 5 | 2015-08-12T15:50:07.000Z | 2019-04-16T00:42:12.000Z | tests/test_flight_path.py | sthagen/avwx-engine | af235b9d26e5495f04076ed5499cf8cd131d4efc | [
"MIT"
] | 11 | 2016-01-17T10:10:29.000Z | 2019-01-13T17:55:36.000Z | """
Flight path tests
"""
from typing import List, Union
from avwx import flight_path
from avwx.structs import Coord
FLIGHT_PATHS = (
(
[(12.34, -12.34, "12.34,-12.34"), (-43.21, 43.21, "-43.21,43.21")],
[(12.34, -12.34, "12.34,-12.34"), (-43.21, 43.21, "-43.21,43.21")],
),
(
[(12.... | 29.459459 | 82 | 0.444037 | 303 | 2,180 | 3.158416 | 0.254125 | 0.066876 | 0.075235 | 0.100313 | 0.413793 | 0.378265 | 0.344828 | 0.344828 | 0.328109 | 0.328109 | 0 | 0.193017 | 0.30367 | 2,180 | 73 | 83 | 29.863014 | 0.437418 | 0.059174 | 0 | 0.354839 | 0 | 0 | 0.117763 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 1 | 0.032258 | false | 0 | 0.048387 | 0 | 0.096774 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc28f5fd9c4c6567c22450f12618546e4bf5cda0 | 233 | py | Python | Algorithms/Implementation/Utopian_Tree.py | gauthamkrishna-g/HackerRank | 472d7a56fc1c1c4f8f03fcabc09d08da4000efde | [
"MIT"
] | 1 | 2017-12-02T14:23:44.000Z | 2017-12-02T14:23:44.000Z | Algorithms/Implementation/Utopian_Tree.py | gauthamkrishna-g/HackerRank | 472d7a56fc1c1c4f8f03fcabc09d08da4000efde | [
"MIT"
] | null | null | null | Algorithms/Implementation/Utopian_Tree.py | gauthamkrishna-g/HackerRank | 472d7a56fc1c1c4f8f03fcabc09d08da4000efde | [
"MIT"
] | null | null | null | #!/bin/python3
h = 0
t = int(input().strip())
for a0 in range(t):
n = int(input().strip())
if n%2 == 1:
h = 2 ** (int(n/2) + 2) - 2
elif n%2 == 0:
h = 2 ** (int(n/2) + 1) - 1
print(h) | 23.3 | 36 | 0.381974 | 41 | 233 | 2.170732 | 0.439024 | 0.089888 | 0.292135 | 0.134831 | 0.157303 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104895 | 0.386266 | 233 | 10 | 37 | 23.3 | 0.517483 | 0.055794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 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 |
cc2966cfdb66f1e643f7d0786e36c50b3ffaaa9b | 3,319 | py | Python | pymtl3/passes/rtlir/behavioral/test/BehavioralRTLIRL4Pass_test.py | hsqforfun/pymtl3 | 05e06601cf262a663a95d1235cb99056ece84580 | [
"BSD-3-Clause"
] | 1 | 2019-11-12T12:26:01.000Z | 2019-11-12T12:26:01.000Z | pymtl3/passes/rtlir/behavioral/test/BehavioralRTLIRL4Pass_test.py | hsqforfun/pymtl3 | 05e06601cf262a663a95d1235cb99056ece84580 | [
"BSD-3-Clause"
] | null | null | null | pymtl3/passes/rtlir/behavioral/test/BehavioralRTLIRL4Pass_test.py | hsqforfun/pymtl3 | 05e06601cf262a663a95d1235cb99056ece84580 | [
"BSD-3-Clause"
] | null | null | null | #=========================================================================
# BehavioralRTLIRL4Pass_test.py
#=========================================================================
# Author : Peitian Pan
# Date : Feb 2, 2019
"""Test the level 4 behavioral RTLIR passes.
The L4 generation, L4 type check, and visualiz... | 32.861386 | 82 | 0.582706 | 360 | 3,319 | 5.222222 | 0.291667 | 0.047872 | 0.051064 | 0.067021 | 0.355319 | 0.274468 | 0.274468 | 0.274468 | 0.274468 | 0.274468 | 0 | 0.01629 | 0.186201 | 3,319 | 100 | 83 | 33.19 | 0.679748 | 0.238024 | 0 | 0.438356 | 0 | 0 | 0.027523 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 1 | 0.178082 | false | 0.191781 | 0.136986 | 0 | 0.39726 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cc314cd567ba488be7f25e7b527b175fec18ba02 | 7,961 | py | Python | perde-tests/tests/test_attrs.py | YushiOMOTE/perde | beeb3208ea2d6edcc4df2b5d74834fadd2807fbc | [
"MIT"
] | 19 | 2020-10-29T11:38:19.000Z | 2022-03-13T03:14:21.000Z | perde-tests/tests/test_attrs.py | YushiOMOTE/perde | beeb3208ea2d6edcc4df2b5d74834fadd2807fbc | [
"MIT"
] | 19 | 2020-10-29T08:02:10.000Z | 2020-12-22T06:25:48.000Z | perde-tests/tests/test_attrs.py | YushiOMOTE/perde | beeb3208ea2d6edcc4df2b5d74834fadd2807fbc | [
"MIT"
] | 1 | 2021-05-06T07:38:20.000Z | 2021-05-06T07:38:20.000Z | from dataclasses import dataclass, field
from typing import Dict
import perde
import pytest
from util import FORMATS, FORMATS_EXCEPT
"""rust
#[derive(Serialize, Debug, new)]
struct Plain {
a: String,
b: String,
c: u64,
}
add!(Plain {"xxx".into(), "yyy".into(), 3});
"""
@pytest.mark.parametrize("m", FORMATS)
d... | 19.464548 | 79 | 0.633589 | 917 | 7,961 | 5.395856 | 0.135224 | 0.054568 | 0.072757 | 0.08367 | 0.517785 | 0.478577 | 0.400162 | 0.316694 | 0.263945 | 0.246564 | 0 | 0.011665 | 0.203115 | 7,961 | 408 | 80 | 19.512255 | 0.768285 | 0.003266 | 0 | 0.517731 | 0 | 0 | 0.083333 | 0.0234 | 0 | 0 | 0 | 0 | 0.021277 | 1 | 0.092199 | false | 0 | 0.035461 | 0 | 0.574468 | 0.007092 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0bc43b9539ad1613a8c75e0fca099de18da296b5 | 224 | py | Python | nnunet/utilities/nii2niigz.py | kvpratama/nnunet | f4868fc96a7c3e5faca064e3b78b283d004da40b | [
"Apache-2.0"
] | null | null | null | nnunet/utilities/nii2niigz.py | kvpratama/nnunet | f4868fc96a7c3e5faca064e3b78b283d004da40b | [
"Apache-2.0"
] | null | null | null | nnunet/utilities/nii2niigz.py | kvpratama/nnunet | f4868fc96a7c3e5faca064e3b78b283d004da40b | [
"Apache-2.0"
] | null | null | null | import glob
import nibabel as nib
import pdb
nii_files = glob.glob('./train3d/*.nii')
for nii_file in nii_files:
nii = nib.load(nii_file)
nib.save(nii, nii_file[:-4] + '_0000.nii.gz')
print(nii_file[:-4] + '.nii.gz')
| 17.230769 | 46 | 0.678571 | 40 | 224 | 3.625 | 0.45 | 0.193103 | 0.110345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036458 | 0.142857 | 224 | 12 | 47 | 18.666667 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0.152466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0bd12a0dfa02e72aa6f565510969aa9408cd87e2 | 338 | py | Python | hardhat/recipes/python/py.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null | hardhat/recipes/python/py.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null | hardhat/recipes/python/py.py | stangelandcl/hardhat | 1ad0c5dec16728c0243023acb9594f435ef18f9c | [
"MIT"
] | null | null | null |
from .base import PipBaseRecipe
class PyRecipe(PipBaseRecipe):
def __init__(self, *args, **kwargs):
super(PyRecipe, self).__init__(*args, **kwargs)
self.sha256 = '1f9a981438f2acc20470b301a07a4963' \
'75641f902320f70e31916fe3377385a9'
self.name = 'py'
self.ver... | 24.142857 | 58 | 0.627219 | 30 | 338 | 6.8 | 0.7 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223108 | 0.257396 | 338 | 13 | 59 | 26 | 0.589641 | 0 | 0 | 0 | 0 | 0 | 0.214925 | 0.191045 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0bd4eab1a0789e3a62397b13129e735e19c46a8a | 8,651 | py | Python | src/ros/rosmake/test/test_parallel_build.py | jungleni/ros_code_reading | 499e98c0b0d309da78060b19b55c420c22110d65 | [
"Apache-2.0"
] | 742 | 2017-07-05T02:49:36.000Z | 2022-03-30T12:55:43.000Z | src/ros/rosmake/test/test_parallel_build.py | jungleni/ros_code_reading | 499e98c0b0d309da78060b19b55c420c22110d65 | [
"Apache-2.0"
] | 73 | 2017-07-06T12:50:51.000Z | 2022-03-07T08:07:07.000Z | src/ros/rosmake/test/test_parallel_build.py | jungleni/ros_code_reading | 499e98c0b0d309da78060b19b55c420c22110d65 | [
"Apache-2.0"
] | 425 | 2017-07-04T22:03:29.000Z | 2022-03-29T06:59:06.000Z | #!/usr/bin/env python
# Copyright (c) 2009, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright
# n... | 35.747934 | 93 | 0.596116 | 1,094 | 8,651 | 4.607861 | 0.176417 | 0.116048 | 0.131522 | 0.054751 | 0.593533 | 0.53045 | 0.491172 | 0.462408 | 0.456457 | 0.438207 | 0 | 0.008022 | 0.250722 | 8,651 | 241 | 94 | 35.896266 | 0.76967 | 0.189573 | 0 | 0.552941 | 0 | 0 | 0.028518 | 0 | 0 | 0 | 0 | 0 | 0.505882 | 1 | 0.052941 | false | 0 | 0.017647 | 0 | 0.082353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0bd90dcd08f531dd13aaeed5fdef14dcf683d7de | 2,897 | py | Python | Python_practice.py | ftercero/Election_Analysis | 52ae67ffa1e4e552653d96b42fd388bacfcd2227 | [
"Apache-2.0"
] | null | null | null | Python_practice.py | ftercero/Election_Analysis | 52ae67ffa1e4e552653d96b42fd388bacfcd2227 | [
"Apache-2.0"
] | null | null | null | Python_practice.py | ftercero/Election_Analysis | 52ae67ffa1e4e552653d96b42fd388bacfcd2227 | [
"Apache-2.0"
] | null | null | null | #print ("Hello World")
#counties=["Arapahoes","Denver","Jefferson"]
#if counties[1]=='Denver':
# print(counties[1])
#counties = ["Arapahoe","Denver","Jefferson"]
#if "El Paso" in counties:
# print("El Paso is in the list of counties.")
#else:
# print("El Paso is not the list of counties.")
#if "Arapahoe" in ... | 34.082353 | 87 | 0.70038 | 430 | 2,897 | 4.627907 | 0.255814 | 0.055276 | 0.027136 | 0.051256 | 0.457286 | 0.397487 | 0.324121 | 0.302513 | 0.209045 | 0.209045 | 0 | 0.019486 | 0.167415 | 2,897 | 84 | 88 | 34.488095 | 0.805556 | 0.825682 | 0 | 0 | 0 | 0 | 0.321267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0bdc5b9ff9f1b0f990c0c865e7cf1275a25cef14 | 1,600 | py | Python | compss/programming_model/bindings/python/src/pycompss/matlib/algebra/mean.py | TANGO-Project/compss-tango | d9e007b6fe4f8337d4f267f95f383d8962602ab8 | [
"Apache-2.0"
] | 3 | 2018-03-05T14:52:22.000Z | 2019-02-08T09:58:24.000Z | compss/programming_model/bindings/python/src/pycompss/matlib/algebra/mean.py | TANGO-Project/compss-tango | d9e007b6fe4f8337d4f267f95f383d8962602ab8 | [
"Apache-2.0"
] | null | null | null | compss/programming_model/bindings/python/src/pycompss/matlib/algebra/mean.py | TANGO-Project/compss-tango | d9e007b6fe4f8337d4f267f95f383d8962602ab8 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2002.2.rc1710017 Barcelona Supercomputing Center (www.bsc.es)
#
# 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... | 26.229508 | 75 | 0.660625 | 229 | 1,600 | 4.541485 | 0.484716 | 0.057692 | 0.042308 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017713 | 0.22375 | 1,600 | 60 | 76 | 26.666667 | 0.819646 | 0.57 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.157895 | 0.052632 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0be08126819855add6dce623e8e5ab3393911667 | 1,407 | py | Python | account/models/addon.py | avwx-rest/account-backend | 4d2a8e47736cfe3421b3e55b47e6770490564149 | [
"MIT"
] | null | null | null | account/models/addon.py | avwx-rest/account-backend | 4d2a8e47736cfe3421b3e55b47e6770490564149 | [
"MIT"
] | null | null | null | account/models/addon.py | avwx-rest/account-backend | 4d2a8e47736cfe3421b3e55b47e6770490564149 | [
"MIT"
] | null | null | null | """
Plan add-on models
"""
# pylint: disable=too-few-public-methods
from typing import Optional
from beanie import Document
from pydantic import BaseModel
class AddonOut(BaseModel):
"""Addon fields returned to the user"""
key: str
name: str
description: str
class UserAddon(AddonOut):
"""Addo... | 23.065574 | 67 | 0.608387 | 177 | 1,407 | 4.762712 | 0.40113 | 0.023725 | 0.021352 | 0.049822 | 0.118624 | 0.118624 | 0.061684 | 0.061684 | 0.061684 | 0 | 0 | 0 | 0.277186 | 1,407 | 60 | 68 | 23.45 | 0.828909 | 0.154229 | 0 | 0.0625 | 0 | 0 | 0.030499 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.09375 | 0 | 0.53125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0be53f53aa8ef004a05d693483b9d9e80f01a479 | 4,584 | py | Python | python_libs/train_lib.py | rubenIzquierdo/lda_wsd | b4ef1c2276b0eba48efda411ee67dcda25b481b1 | [
"Apache-2.0"
] | 1 | 2020-09-20T09:38:05.000Z | 2020-09-20T09:38:05.000Z | python_libs/train_lib.py | rubenIzquierdo/lda_wsd | b4ef1c2276b0eba48efda411ee67dcda25b481b1 | [
"Apache-2.0"
] | null | null | null | python_libs/train_lib.py | rubenIzquierdo/lda_wsd | b4ef1c2276b0eba48efda411ee67dcda25b481b1 | [
"Apache-2.0"
] | null | null | null | ##############################################
# Author: Ruben Izquierdo Bevia #
# VU University of Amsterdam #
# Mail: ruben.izquierdobevia@vu.nl #
# rubensanvi@gmail.com #
# Webpage: http://rubenizquierdobevia.com #
# Version: 1.0 ... | 39.86087 | 160 | 0.603839 | 597 | 4,584 | 4.410385 | 0.274707 | 0.037979 | 0.030384 | 0.03722 | 0.210406 | 0.186859 | 0.136726 | 0.113179 | 0.113179 | 0.113179 | 0 | 0.005935 | 0.264834 | 4,584 | 114 | 161 | 40.210526 | 0.775371 | 0.210079 | 0 | 0.058824 | 0 | 0.014706 | 0.139588 | 0.006293 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0be8b81ee3c1560dffccec8e0d9a6d2ccd6cd6c8 | 1,620 | py | Python | pincer/utils/snowflake.py | MithicSpirit/Pincer | 3e5aee5bc228a77caac59e07299d54e558b7f39d | [
"MIT"
] | 1 | 2021-11-16T05:19:26.000Z | 2021-11-16T05:19:26.000Z | pincer/utils/snowflake.py | Seanpm2001-Discord/Pincer | a2c045f85f44712f3257e5cc50b3acacbd1302f9 | [
"MIT"
] | null | null | null | pincer/utils/snowflake.py | Seanpm2001-Discord/Pincer | a2c045f85f44712f3257e5cc50b3acacbd1302f9 | [
"MIT"
] | null | null | null | # Copyright Pincer 2021-Present
# Full MIT License can be found in `LICENSE` at the project root.
from __future__ import annotations
class Snowflake(int):
"""Discord utilizes Twitter's snowflake format for uniquely
identifiable descriptors (IDs).
These IDs are guaranteed to be unique across all of Disco... | 27.931034 | 72 | 0.621605 | 203 | 1,620 | 4.901478 | 0.53202 | 0.044221 | 0.048241 | 0.060302 | 0.050251 | 0.050251 | 0 | 0 | 0 | 0 | 0 | 0.034394 | 0.282099 | 1,620 | 57 | 73 | 28.421053 | 0.821152 | 0.528395 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.05 | 0.05 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0bf431d2785411629685e804d55562f39393e330 | 3,442 | py | Python | pingdom/pingdom.py | srinivas-kandula/integrations | 7c9857fadacc845b3261ba5c1244faccd6511c80 | [
"Apache-2.0"
] | 10 | 2016-09-23T21:09:55.000Z | 2022-02-05T08:12:43.000Z | pingdom/pingdom.py | srinivas-kandula/integrations | 7c9857fadacc845b3261ba5c1244faccd6511c80 | [
"Apache-2.0"
] | 20 | 2017-06-29T00:20:56.000Z | 2022-03-24T07:32:15.000Z | pingdom/pingdom.py | srinivas-kandula/integrations | 7c9857fadacc845b3261ba5c1244faccd6511c80 | [
"Apache-2.0"
] | 39 | 2016-11-22T17:19:44.000Z | 2022-03-24T07:09:42.000Z | import sys
import requests
import json
import argparse
import time
parser = argparse.ArgumentParser(description='Collects monitoring data from Pingdom.')
parser.add_argument('-u', '--pingdom-user-name', help='The Pingdom User Name', required=True)
parser.add_argument('-p', '--pingdom-password', help='The Pingdom Passw... | 35.484536 | 129 | 0.597908 | 406 | 3,442 | 4.884236 | 0.243842 | 0.036309 | 0.040343 | 0.032274 | 0.155825 | 0.036309 | 0.036309 | 0.036309 | 0.036309 | 0.036309 | 0 | 0.007981 | 0.271935 | 3,442 | 96 | 130 | 35.854167 | 0.78332 | 0 | 0 | 0 | 0 | 0 | 0.151947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075949 | false | 0.063291 | 0.063291 | 0 | 0.164557 | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0bf55cef9243ecacb2a401a9c42afa57b35ecfc2 | 10,224 | py | Python | OpenData/Upsilon/Upsilon.py | tylern4/tylern4.github.io | 77d8b5fecd91d2b884ae54e2fb3d59c521e02b8b | [
"MIT"
] | null | null | null | OpenData/Upsilon/Upsilon.py | tylern4/tylern4.github.io | 77d8b5fecd91d2b884ae54e2fb3d59c521e02b8b | [
"MIT"
] | null | null | null | OpenData/Upsilon/Upsilon.py | tylern4/tylern4.github.io | 77d8b5fecd91d2b884ae54e2fb3d59c521e02b8b | [
"MIT"
] | 1 | 2018-07-29T15:46:03.000Z | 2018-07-29T15:46:03.000Z | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
from scipy import stats
from pandas.tools.plotting import scatter_matrix
from scipy.optimize import curve_fit
from matplotlib.colors import LogNorm
df = pd.read_csv('/Users/tylern/Homework/PHYS723/project/LHC/CM... | 34.894198 | 83 | 0.601624 | 1,752 | 10,224 | 3.445776 | 0.129566 | 0.026503 | 0.043068 | 0.053006 | 0.716084 | 0.696538 | 0.68428 | 0.672685 | 0.656452 | 0.633262 | 0 | 0.064381 | 0.109742 | 10,224 | 293 | 84 | 34.894198 | 0.598879 | 0.07052 | 0 | 0.384211 | 0 | 0.015789 | 0.115355 | 0.007924 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031579 | false | 0 | 0.042105 | 0.026316 | 0.105263 | 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 |
0bf5dadbd56e25b757cc7da476655a19d6ca5294 | 4,187 | py | Python | lib/JumpScale/lib/perftesttools/NodeBase.py | rudecs/jumpscale_core7 | 30c03f26f1cdad3edbb9d79d50fbada8acc974f5 | [
"Apache-2.0"
] | null | null | null | lib/JumpScale/lib/perftesttools/NodeBase.py | rudecs/jumpscale_core7 | 30c03f26f1cdad3edbb9d79d50fbada8acc974f5 | [
"Apache-2.0"
] | 4 | 2016-08-25T12:08:39.000Z | 2018-04-12T12:36:01.000Z | lib/JumpScale/lib/perftesttools/NodeBase.py | rudecs/jumpscale_core7 | 30c03f26f1cdad3edbb9d79d50fbada8acc974f5 | [
"Apache-2.0"
] | 3 | 2016-03-08T07:49:34.000Z | 2018-10-19T13:56:43.000Z | from JumpScale import j
# import sys
# import time
# import json
# import os
# import psutil
from MonitorTools import *
# from pssh import ParallelSSHClient
from gevent import monkey
monkey.patch_socket()
class NodeBase(MonitorTools):
def __init__(self,ipaddr,sshport=22,role=None,name=""):
"""
e... | 32.968504 | 152 | 0.602579 | 515 | 4,187 | 4.840777 | 0.308738 | 0.021661 | 0.068592 | 0.06418 | 0.141195 | 0.141195 | 0.109106 | 0.082631 | 0.082631 | 0.082631 | 0 | 0.011859 | 0.254836 | 4,187 | 126 | 153 | 33.230159 | 0.787179 | 0.144734 | 0 | 0.055556 | 0 | 0 | 0.16608 | 0.026115 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.097222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0bfc78ffcaa52c031df7862987e09dbeaa8057b9 | 61,939 | py | Python | sdk/python/pulumi_azure_native/edgeorder/v20201201preview/outputs.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | 31 | 2020-09-21T09:41:01.000Z | 2021-02-26T13:21:59.000Z | sdk/python/pulumi_azure_native/edgeorder/v20201201preview/outputs.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | 231 | 2020-09-21T09:38:45.000Z | 2021-03-01T11:16:03.000Z | sdk/python/pulumi_azure_native/edgeorder/v20201201preview/outputs.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | 4 | 2020-09-29T14:14:59.000Z | 2021-02-10T20:38:16.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | 35.679147 | 141 | 0.651883 | 6,123 | 61,939 | 6.336926 | 0.060591 | 0.028066 | 0.04054 | 0.059251 | 0.598026 | 0.509188 | 0.44986 | 0.404655 | 0.374243 | 0.341538 | 0 | 0.000648 | 0.252087 | 61,939 | 1,735 | 142 | 35.699712 | 0.836935 | 0.244595 | 0 | 0.423581 | 1 | 0 | 0.211236 | 0.12299 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181223 | false | 0 | 0.007642 | 0.025109 | 0.370087 | 0 | 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 |
0bfd287e39c3f7db093ee81af20b674fef10f6e4 | 754 | py | Python | open-hackathon/src/hackathon/__init__.py | SpAiNiOr/LABOSS | 32ad341821e9f30fecfa338b5669f574d32dd0fa | [
"Apache-2.0"
] | null | null | null | open-hackathon/src/hackathon/__init__.py | SpAiNiOr/LABOSS | 32ad341821e9f30fecfa338b5669f574d32dd0fa | [
"Apache-2.0"
] | null | null | null | open-hackathon/src/hackathon/__init__.py | SpAiNiOr/LABOSS | 32ad341821e9f30fecfa338b5669f574d32dd0fa | [
"Apache-2.0"
] | null | null | null | __author__ = 'Junbo Wang'
__version__ = '2.0'
from flask import Flask
from hackathon.functions import safe_get_config
from flask_restful import Api
from flask_cors import CORS
# flask
app = Flask(__name__)
app.config['SECRET_KEY'] = '*K&ep_me^se(ret_!@#$'
# flask restful
api = Api(app)
# CORS
app.config['CORS_HEADE... | 21.542857 | 78 | 0.696286 | 105 | 754 | 4.771429 | 0.52381 | 0.053892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.167109 | 754 | 34 | 79 | 22.176471 | 0.791401 | 0.481432 | 0 | 0 | 0 | 0 | 0.198391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0400e97086bae64fd628eddd3e280d7f1e6fb57b | 14,853 | py | Python | python_scripts/geometry_factory.py | rwilliams01/isogeometric_application | e505061603b56b4f426220946da5ec551dc6c142 | [
"MIT"
] | null | null | null | python_scripts/geometry_factory.py | rwilliams01/isogeometric_application | e505061603b56b4f426220946da5ec551dc6c142 | [
"MIT"
] | null | null | null | python_scripts/geometry_factory.py | rwilliams01/isogeometric_application | e505061603b56b4f426220946da5ec551dc6c142 | [
"MIT"
] | null | null | null | import math
from KratosMultiphysics import *
from KratosMultiphysics.BRepApplication import *
from KratosMultiphysics.IsogeometricApplication import *
###
### This module is a factory to generate typical geometries for isogeometric analysis, e.g. circle, l-shape, ...
###
nurbs_fespace_library = BSplinesFESpaceLibrary... | 38.280928 | 158 | 0.642698 | 2,172 | 14,853 | 4.244015 | 0.13674 | 0.007377 | 0.029507 | 0.021697 | 0.440985 | 0.370905 | 0.316338 | 0.284986 | 0.232805 | 0.204925 | 0 | 0.043968 | 0.217532 | 14,853 | 387 | 159 | 38.379845 | 0.749183 | 0.225544 | 0 | 0.142857 | 1 | 0 | 0.019122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069388 | false | 0 | 0.016327 | 0.016327 | 0.15102 | 0.012245 | 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 |
040553ee254257bcd7d020b647af86d296e5b39b | 4,167 | py | Python | pylearn2/models/local_coordinate_coding.py | Menerve/pylearn2 | ad7bcfda3294404aebd71f5a5c4a8623d401a98e | [
"BSD-3-Clause"
] | 3 | 2016-01-23T10:18:39.000Z | 2019-02-28T06:22:45.000Z | pylearn2/models/local_coordinate_coding.py | Menerve/pylearn2 | ad7bcfda3294404aebd71f5a5c4a8623d401a98e | [
"BSD-3-Clause"
] | null | null | null | pylearn2/models/local_coordinate_coding.py | Menerve/pylearn2 | ad7bcfda3294404aebd71f5a5c4a8623d401a98e | [
"BSD-3-Clause"
] | null | null | null | """
.. todo::
WRITEME
"""
import logging
from theano import function, shared
from pylearn2.optimization import linear_cg as cg
from pylearn2.optimization.feature_sign import feature_sign_search
import numpy as N
import theano.tensor as T
from pylearn2.utils.rng import make_np_rng
logger = logging.getLogger(__nam... | 25.564417 | 75 | 0.556036 | 535 | 4,167 | 4.170093 | 0.28785 | 0.017929 | 0.02017 | 0.018826 | 0.077095 | 0.039444 | 0 | 0 | 0 | 0 | 0 | 0.00846 | 0.319174 | 4,167 | 162 | 76 | 25.722222 | 0.777934 | 0.147828 | 0 | 0.025316 | 0 | 0 | 0.0716 | 0 | 0 | 0 | 0 | 0.049383 | 0.037975 | 1 | 0.075949 | false | 0 | 0.088608 | 0 | 0.227848 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0405d2a62685ff4d6a8f6ab13f719af2aff5fa9b | 7,239 | py | Python | components/mpas-source/testing_and_setup/compass/landice/hydro-radial/plot_hydro-radial_profile.py | meng630/GMD_E3SM_SCM | 990f84598b79f9b4763c3a825a7d25f4e0f5a565 | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | components/mpas-source/testing_and_setup/compass/landice/hydro-radial/plot_hydro-radial_profile.py | meng630/GMD_E3SM_SCM | 990f84598b79f9b4763c3a825a7d25f4e0f5a565 | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | components/mpas-source/testing_and_setup/compass/landice/hydro-radial/plot_hydro-radial_profile.py | meng630/GMD_E3SM_SCM | 990f84598b79f9b4763c3a825a7d25f4e0f5a565 | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | #!/usr/bin/env python
'''
Plots profiles for hydro-margin test case
'''
from __future__ import absolute_import, division, print_function, unicode_literals
import numpy as np
import netCDF4
from optparse import OptionParser
import matplotlib.pyplot as plt
from matplotlib import cm
secInYr = 3600.0 * 24.0 * 365.0 # N... | 29.426829 | 154 | 0.683105 | 1,188 | 7,239 | 4.112795 | 0.247475 | 0.05526 | 0.038273 | 0.03991 | 0.28858 | 0.193 | 0.168031 | 0.12894 | 0.10438 | 0.10438 | 0 | 0.030095 | 0.114104 | 7,239 | 245 | 155 | 29.546939 | 0.731795 | 0 | 0 | 0.247059 | 0 | 0 | 0.237155 | 0.00851 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035294 | null | null | 0.094118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0405f2b3fc38c8bd5678c1eebbbb0e7b2bd3a132 | 3,301 | py | Python | abovl/app.py | romanchyla/arxiv_biboverlay | 2847a564b55fd96d461798c535377c679bc829e8 | [
"MIT"
] | 2 | 2019-03-17T01:50:46.000Z | 2020-10-02T07:57:21.000Z | abovl/app.py | mattbierbaum/arxiv_biboverlay | 2847a564b55fd96d461798c535377c679bc829e8 | [
"MIT"
] | 1 | 2019-10-24T12:16:30.000Z | 2019-10-24T12:19:13.000Z | abovl/app.py | arXiv/arxiv-biboverlay-ads-tokens | 2847a564b55fd96d461798c535377c679bc829e8 | [
"MIT"
] | 2 | 2020-12-06T16:29:19.000Z | 2021-11-05T12:30:41.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
from adsmutils import ADSFlask, get_date
from views import bp
from abovl.models import OAuthClient
from flask.ext.session import Session
def create_app(**config):
"""
Create the application and return it to the user
:return: flask.Flask application
"""
ap... | 38.383721 | 120 | 0.580127 | 385 | 3,301 | 4.844156 | 0.38961 | 0.048257 | 0.062735 | 0.040751 | 0.169437 | 0.106166 | 0.043968 | 0.043968 | 0.043968 | 0.043968 | 0 | 0.005532 | 0.288095 | 3,301 | 86 | 121 | 38.383721 | 0.788085 | 0.134202 | 0 | 0.113208 | 0 | 0 | 0.147937 | 0.014936 | 0 | 0 | 0 | 0.011628 | 0 | 1 | 0.113208 | false | 0 | 0.075472 | 0 | 0.283019 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0406964288c8043fef5666ff547d7e3e0ba8ec71 | 792 | py | Python | 2017-05-13-concurrent-and-parallel-programming-in-python-part-1/threading_no_inheritance.py | funweb/blog | 3544121ba70522d5ffced1a0d7f8ff3fa0afdeca | [
"BSD-3-Clause"
] | 4 | 2016-07-23T14:15:56.000Z | 2019-05-22T10:05:27.000Z | 2017-05-13-concurrent-and-parallel-programming-in-python-part-1/threading_no_inheritance.py | funweb/blog | 3544121ba70522d5ffced1a0d7f8ff3fa0afdeca | [
"BSD-3-Clause"
] | null | null | null | 2017-05-13-concurrent-and-parallel-programming-in-python-part-1/threading_no_inheritance.py | funweb/blog | 3544121ba70522d5ffced1a0d7f8ff3fa0afdeca | [
"BSD-3-Clause"
] | 3 | 2016-08-30T15:42:32.000Z | 2019-11-24T09:58:21.000Z | #!/usr/bin/env python
#
# Author: Daniela Duricekova <daniela.duricekova@gmail.com>
#
import requests
import threading
import queue
URLS = [
'https://xkcd.com/138/',
'https://xkcd.com/149/',
'https://xkcd.com/285/',
'https://xkcd.com/303/',
'https://xkcd.com/327/',
'https://xkcd.com/387/',
... | 19.317073 | 73 | 0.592172 | 105 | 792 | 4.352381 | 0.47619 | 0.157549 | 0.210066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 0.222222 | 792 | 40 | 74 | 19.8 | 0.702922 | 0.10101 | 0 | 0 | 0 | 0 | 0.248588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.111111 | 0 | 0.148148 | 0.037037 | 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 |
040a73dce7da16a79d50d9fa98ac26dd027253c4 | 3,235 | py | Python | pickups/irc.py | mtomwing/pickups | b25967eab1ec6316995b1420b2e9d9b862094bf8 | [
"MIT"
] | 75 | 2015-01-07T15:32:23.000Z | 2022-02-09T23:09:24.000Z | pickups/irc.py | okurz/pickups | b25967eab1ec6316995b1420b2e9d9b862094bf8 | [
"MIT"
] | 18 | 2015-02-17T17:31:46.000Z | 2017-04-22T05:36:46.000Z | pickups/irc.py | okurz/pickups | b25967eab1ec6316995b1420b2e9d9b862094bf8 | [
"MIT"
] | 28 | 2015-01-21T16:23:30.000Z | 2022-02-09T23:09:36.000Z | import logging
RPL_WELCOME = 1
RPL_WHOISUSER = 311
RPL_ENDOFWHO = 315
RPL_LISTSTART = 321
RPL_LIST = 322
RPL_LISTEND = 323
RPL_TOPIC = 332
RPL_WHOREPLY = 352
RPL_NAMREPLY = 353
RPL_ENDOFNAMES = 366
RPL_MOTD = 372
RPL_MOTDSTART = 375
RPL_ENDOFMOTD = 376
ERR_NOSUCHCHANNEL = 403
logger = logging.getLogger(__name__)
... | 31.715686 | 78 | 0.605873 | 398 | 3,235 | 4.829146 | 0.30402 | 0.051509 | 0.060874 | 0.026535 | 0.041623 | 0.029136 | 0 | 0 | 0 | 0 | 0 | 0.01825 | 0.254714 | 3,235 | 101 | 79 | 32.029703 | 0.77893 | 0.160433 | 0 | 0 | 0 | 0 | 0.074953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.015152 | 0.015152 | 0.257576 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0418998a91da3e3d7abd865cd4fdccc83d2e5270 | 325 | py | Python | arboreto/utils.py | redst4r/arboreto | 3ff7b6f987b32e5774771751dea646fa6feaaa52 | [
"BSD-3-Clause"
] | 20 | 2018-06-28T07:00:47.000Z | 2020-10-08T08:58:22.000Z | arboreto/utils.py | redst4r/arboreto | 3ff7b6f987b32e5774771751dea646fa6feaaa52 | [
"BSD-3-Clause"
] | 23 | 2018-06-06T13:11:20.000Z | 2021-01-08T03:37:43.000Z | arboreto/utils.py | redst4r/arboreto | 3ff7b6f987b32e5774771751dea646fa6feaaa52 | [
"BSD-3-Clause"
] | 15 | 2018-11-21T08:21:46.000Z | 2020-11-25T06:28:32.000Z | """
Utility functions.
"""
def load_tf_names(path):
"""
:param path: the path of the transcription factor list file.
:return: a list of transcription factor names read from the file.
"""
with open(path) as file:
tfs_in_file = [line.strip() for line in file.readlines()]
return tfs_in_... | 20.3125 | 69 | 0.655385 | 47 | 325 | 4.404255 | 0.574468 | 0.086957 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24 | 325 | 15 | 70 | 21.666667 | 0.838057 | 0.446154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
041b02a9d732f392f197e950c0af95abe44f914e | 678 | py | Python | user.py | kevin3708/PythonIP1 | e0909ec45ae653a3b81eaa44ce2679d401c5480a | [
"Unlicense"
] | null | null | null | user.py | kevin3708/PythonIP1 | e0909ec45ae653a3b81eaa44ce2679d401c5480a | [
"Unlicense"
] | null | null | null | user.py | kevin3708/PythonIP1 | e0909ec45ae653a3b81eaa44ce2679d401c5480a | [
"Unlicense"
] | null | null | null | class User:
"""
Class that generates new instances of users.
"""
user_list = []
def __init__(self,tUsername,iUsername,email,sUsername):
self.tUsername=tUsername
self.iUsername=iUsername
self.email=email
self.sUsername=sUsername
def save_user(self):
Us... | 23.37931 | 59 | 0.584071 | 71 | 678 | 5.422535 | 0.422535 | 0.062338 | 0.062338 | 0.083117 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.306785 | 678 | 28 | 60 | 24.214286 | 0.819149 | 0.064897 | 0 | 0 | 1 | 0 | 0.116694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.05 | 0.35 | 0 | 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 |
0423e7262923e363b55991428757fd12dccb993b | 2,147 | py | Python | src/mqc/qc_filters.py | stephenkraemer/bistro | c9f63e948d20f8f1e59163f6267ad83cb70caa9d | [
"BSD-3-Clause"
] | 1 | 2020-11-09T13:41:46.000Z | 2020-11-09T13:41:46.000Z | src/mqc/qc_filters.py | stephenkraemer/bistro | c9f63e948d20f8f1e59163f6267ad83cb70caa9d | [
"BSD-3-Clause"
] | null | null | null | src/mqc/qc_filters.py | stephenkraemer/bistro | c9f63e948d20f8f1e59163f6267ad83cb70caa9d | [
"BSD-3-Clause"
] | null | null | null | """MotifPileupProcessors for QC filtering"""
# TODO: combine PhredFilter and MapqFilter to avoid cost for double
# iteration
from mqc.visitors import Visitor
from mqc.pileup.pileup import MotifPileup
import mqc.flag_and_index_values as mfl
qflag = mfl.qc_fail_flags
mflag = mfl.methylation_status_flags
from typing ... | 37.666667 | 83 | 0.72054 | 289 | 2,147 | 5.16955 | 0.408305 | 0.040161 | 0.034806 | 0.038822 | 0.196787 | 0.156627 | 0.156627 | 0.103079 | 0.052209 | 0.052209 | 0 | 0.000595 | 0.217047 | 2,147 | 56 | 84 | 38.339286 | 0.888162 | 0.467629 | 0 | 0.285714 | 0 | 0 | 0.067847 | 0.045231 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.190476 | false | 0 | 0.190476 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
04252521ad95d6d680ccffe8c6e5cf43ba96bcec | 1,110 | py | Python | akilib/raspberrypi/AKI_I2C_LPS25H.py | nonNoise/akilib | f111514f544ef765205faebd925d19c810121dad | [
"MIT"
] | 29 | 2015-05-28T11:20:36.000Z | 2018-09-07T07:35:08.000Z | examples/raspberrypi/akilib/raspberrypi/AKI_I2C_LPS25H.py | nonNoise/akilib | f111514f544ef765205faebd925d19c810121dad | [
"MIT"
] | null | null | null | examples/raspberrypi/akilib/raspberrypi/AKI_I2C_LPS25H.py | nonNoise/akilib | f111514f544ef765205faebd925d19c810121dad | [
"MIT"
] | 4 | 2015-07-03T08:41:19.000Z | 2018-09-07T07:35:51.000Z | #import mraa
import smbus
import time
I2C_ADDR = 0x5C
class AKI_I2C_LPS25H:
def __init__(self):
print "AKI_I2C_LPS25H"
self.i2c = smbus.SMBus(1)
def i2cReg(self,wr,addr=0x00,data=0x00):
try:
if(wr == "w"):
return self.i2c.write_byte_data(I2C_ADDR,addr,data)... | 25.227273 | 67 | 0.496396 | 159 | 1,110 | 3.345912 | 0.371069 | 0.150376 | 0.12406 | 0.067669 | 0.201128 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0.103933 | 0.358559 | 1,110 | 44 | 68 | 25.227273 | 0.643258 | 0.01982 | 0 | 0 | 0 | 0 | 0.027599 | 0 | 0 | 0 | 0.045998 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
042f01e87ae3c4cbb27a11e0655de18410d4c635 | 818 | py | Python | events/migrations/0002_auto_20210501_1442.py | seanyoung247/TWCoulsdon | 870ae7e8ea6a3fc23d24fe21bbb21965cdbab27b | [
"MIT"
] | 1 | 2021-12-28T15:43:39.000Z | 2021-12-28T15:43:39.000Z | events/migrations/0002_auto_20210501_1442.py | seanyoung247/TWCoulsdon | 870ae7e8ea6a3fc23d24fe21bbb21965cdbab27b | [
"MIT"
] | 5 | 2021-05-14T22:46:26.000Z | 2021-05-26T02:18:46.000Z | events/migrations/0002_auto_20210501_1442.py | seanyoung247/TWCoulsdon | 870ae7e8ea6a3fc23d24fe21bbb21965cdbab27b | [
"MIT"
] | 1 | 2021-05-29T18:24:49.000Z | 2021-05-29T18:24:49.000Z | # Generated by Django 3.2 on 2021-05-01 14:42
from django.db import migrations, models
import easy_thumbnails.fields
import embed_video.fields
class Migration(migrations.Migration):
dependencies = [
('events', '0001_initial'),
]
operations = [
migrations.AddField(
model_name... | 26.387097 | 100 | 0.601467 | 82 | 818 | 5.890244 | 0.560976 | 0.055901 | 0.080745 | 0.10559 | 0.190476 | 0.190476 | 0.190476 | 0.190476 | 0 | 0 | 0 | 0.030769 | 0.284841 | 818 | 30 | 101 | 27.266667 | 0.794872 | 0.052567 | 0 | 0.208333 | 1 | 0 | 0.068564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
04317857b939c2cd80e35a253468a62b54df8cd9 | 1,025 | py | Python | realsense/manual/cluster.py | mrzhuzhe/yunru | faa7380a5363f654f1dc8f5d53b077d9f33bff6f | [
"MIT"
] | null | null | null | realsense/manual/cluster.py | mrzhuzhe/yunru | faa7380a5363f654f1dc8f5d53b077d9f33bff6f | [
"MIT"
] | null | null | null | realsense/manual/cluster.py | mrzhuzhe/yunru | faa7380a5363f654f1dc8f5d53b077d9f33bff6f | [
"MIT"
] | null | null | null | # 聚类
# 需要移除远处点
import open3d as o3d
import numpy as np
import matplotlib.pyplot as plt
sourcePath="./zz_test_panda/scene/integrated.ply"
tatgetPath="./zz_test_panda/scene/cropped_1.ply"
# 加载点云
print("Load a ply point cloud, print it, and render it")
pcd = o3d.io.read_point_cloud(sourcePath)
with o3d.utility.Verbosi... | 35.344828 | 89 | 0.736585 | 141 | 1,025 | 5.241135 | 0.574468 | 0.043302 | 0.02977 | 0.043302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224859 | 0.136585 | 1,025 | 29 | 90 | 35.344828 | 0.610169 | 0.014634 | 0 | 0 | 0 | 0 | 0.161867 | 0.070506 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0438c8f80da4005db7ce794a5dd25fc90d51a567 | 2,110 | py | Python | custom_components/magic_lights/setup_tasks/create_living_space.py | justanotherariel/hass_MagicLights | 61ac0db1f7c3575e52912b372176d45e647b728e | [
"MIT"
] | null | null | null | custom_components/magic_lights/setup_tasks/create_living_space.py | justanotherariel/hass_MagicLights | 61ac0db1f7c3575e52912b372176d45e647b728e | [
"MIT"
] | null | null | null | custom_components/magic_lights/setup_tasks/create_living_space.py | justanotherariel/hass_MagicLights | 61ac0db1f7c3575e52912b372176d45e647b728e | [
"MIT"
] | null | null | null | from __future__ import annotations
import asyncio
import logging
from custom_components.magic_lights.setup_tasks.task import SetupTask
from custom_components.magic_lights.helpers.service_call import create_async_call
from typing import Dict, Tuple
from custom_components.magic_lights.magicbase.share import get_magic
f... | 24.252874 | 81 | 0.667773 | 283 | 2,110 | 4.75265 | 0.272085 | 0.035688 | 0.05948 | 0.074349 | 0.092193 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000619 | 0.234123 | 2,110 | 86 | 82 | 24.534884 | 0.831683 | 0.037441 | 0 | 0.122807 | 0 | 0 | 0.048371 | 0 | 0 | 0 | 0 | 0.011628 | 0 | 1 | 0.070175 | false | 0 | 0.140351 | 0 | 0.280702 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
044c425f4547c6aed3f6f7f9c9c78fa729ba7b06 | 680 | py | Python | jasper.py | ramosmy/acoustic_model | 3c721b15830dcaeb71f3b828cacb999c14e9651c | [
"MIT"
] | 6 | 2019-07-18T07:33:51.000Z | 2021-11-27T12:48:02.000Z | jasper.py | ramosmy/acoustic_model | 3c721b15830dcaeb71f3b828cacb999c14e9651c | [
"MIT"
] | 2 | 2019-11-08T07:25:39.000Z | 2019-12-03T16:38:37.000Z | jasper.py | ramosmy/acoustic_model | 3c721b15830dcaeb71f3b828cacb999c14e9651c | [
"MIT"
] | 7 | 2019-09-23T05:30:48.000Z | 2021-01-19T08:34:18.000Z | """
Citing from jasper from Nvidia
"""
import torch
import torch.nn as nn
import torch.functional as F
class SubBlock(nn.Module):
def __init__(self, dropout):
super(SubBlock, self).__init__()
self.conv = nn.Conv1d(in_channels=256, out_channels=256,
kernel_size=11... | 25.185185 | 66 | 0.607353 | 91 | 680 | 4.340659 | 0.483516 | 0.083544 | 0.04557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03055 | 0.277941 | 680 | 27 | 67 | 25.185185 | 0.773931 | 0.044118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0.052632 | 0.157895 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
04522f05b28efbf881a74b37b11db3f8da797911 | 8,936 | py | Python | opencamlib-read-only/scripts/voronoi/voronoi_bisectors.py | play113/swer | 78764c67885dfacb1fa24e494a20681265f5254c | [
"MIT"
] | null | null | null | opencamlib-read-only/scripts/voronoi/voronoi_bisectors.py | play113/swer | 78764c67885dfacb1fa24e494a20681265f5254c | [
"MIT"
] | null | null | null | opencamlib-read-only/scripts/voronoi/voronoi_bisectors.py | play113/swer | 78764c67885dfacb1fa24e494a20681265f5254c | [
"MIT"
] | 1 | 2020-07-04T13:58:00.000Z | 2020-07-04T13:58:00.000Z | import ocl
import camvtk
import time
import vtk
import datetime
import math
import random
def drawVertex(myscreen, p, vertexColor, rad=1):
myscreen.addActor( camvtk.Sphere( center=(p.x,p.y,p.z), radius=rad, color=vertexColor ) )
def drawEdge(myscreen, e, edgeColor=camvtk.yellow):
p1 = e[0]
p2 = e[1]
... | 30.189189 | 109 | 0.513653 | 1,463 | 8,936 | 3.1162 | 0.159262 | 0.043869 | 0.024128 | 0.005264 | 0.328361 | 0.269577 | 0.253126 | 0.227682 | 0.204869 | 0.191709 | 0 | 0.098282 | 0.303156 | 8,936 | 295 | 110 | 30.291525 | 0.633853 | 0.320501 | 0 | 0.183908 | 0 | 0 | 0.013468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04023 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
045237c527cde898e9b9472e8d4dba096a190def | 760 | py | Python | wheel5/scheduler.py | xdralex/pytorch-wheel5 | 336529e354a45908cf3f8f12cd401a95fb2a5351 | [
"MIT"
] | 2 | 2020-06-08T13:10:06.000Z | 2020-07-07T05:34:18.000Z | wheel5/scheduler.py | xdralex/pytorch-wheel5 | 336529e354a45908cf3f8f12cd401a95fb2a5351 | [
"MIT"
] | 1 | 2020-04-29T08:46:14.000Z | 2020-04-29T08:46:14.000Z | wheel5/scheduler.py | xdralex/pytorch-wheel5 | 336529e354a45908cf3f8f12cd401a95fb2a5351 | [
"MIT"
] | null | null | null | from torch.optim.lr_scheduler import _LRScheduler
class WarmupScheduler(_LRScheduler):
def __init__(self, optimizer, epochs, next_scheduler):
self.epochs = epochs
self.next_scheduler = next_scheduler
super(WarmupScheduler, self).__init__(optimizer)
def get_lr(self):
if self.la... | 34.545455 | 86 | 0.659211 | 95 | 760 | 5.042105 | 0.315789 | 0.135699 | 0.125261 | 0.106472 | 0.279749 | 0.231733 | 0.158664 | 0 | 0 | 0 | 0 | 0 | 0.255263 | 760 | 21 | 87 | 36.190476 | 0.84629 | 0 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
04538ee88a4559bebed7924c46e1d13c7c263e79 | 5,290 | py | Python | rmApp.py | LREN-CHUV/mip-apps-manager | 989d4a9fa5bf398ba71b5e4622e3f1deed0ac055 | [
"MIT"
] | null | null | null | rmApp.py | LREN-CHUV/mip-apps-manager | 989d4a9fa5bf398ba71b5e4622e3f1deed0ac055 | [
"MIT"
] | null | null | null | rmApp.py | LREN-CHUV/mip-apps-manager | 989d4a9fa5bf398ba71b5e4622e3f1deed0ac055 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import argparse, shutil, os, sys
def getArgs():
parser = argparse.ArgumentParser()
parser.add_argument('app', help='Application identifier (used by the app developer)')
parser.add_argument('mipDir', help='Directory containing the mip application (<path>/app/)')
return parser.parse_args()
... | 28.138298 | 98 | 0.656333 | 732 | 5,290 | 4.728142 | 0.230874 | 0.034383 | 0.027738 | 0.02427 | 0.374169 | 0.333719 | 0.268131 | 0.258885 | 0.239237 | 0.13002 | 0 | 0.020667 | 0.195085 | 5,290 | 187 | 99 | 28.28877 | 0.792156 | 0.048015 | 0 | 0.434211 | 0 | 0 | 0.28125 | 0.022094 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.006579 | null | null | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
04548c65b3a29cd8c065d7a21cdd9addeb849019 | 1,846 | py | Python | setup.py | aparafita/flow-torch | 4b94a444d05f75334c91bfd697087b393c49d3c3 | [
"MIT"
] | 22 | 2020-01-20T02:32:45.000Z | 2021-12-14T17:22:40.000Z | setup.py | aparafita/flow-torch | 4b94a444d05f75334c91bfd697087b393c49d3c3 | [
"MIT"
] | null | null | null | setup.py | aparafita/flow-torch | 4b94a444d05f75334c91bfd697087b393c49d3c3 | [
"MIT"
] | 2 | 2020-08-19T03:03:29.000Z | 2021-06-10T05:49:26.000Z | #!/usr/bin/env python
from setuptools import setup
version = '0.1.2'
long_description = """
# flow
This project implements basic Normalizing Flows in PyTorch
and provides functionality for defining your own easily,
following the conditioner-transformer architecture.
This is specially useful for lower-dimensional... | 32.385965 | 80 | 0.712351 | 215 | 1,846 | 6.055814 | 0.669767 | 0.046083 | 0.032258 | 0.052995 | 0.062212 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004624 | 0.179848 | 1,846 | 56 | 81 | 32.964286 | 0.85535 | 0.010834 | 0 | 0.043478 | 0 | 0 | 0.644932 | 0.038356 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021739 | 0 | 0.021739 | 0 | 0 | 0 | 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 |
0455b199d187f2d50b426f8cc0174c4016c20c0b | 692 | py | Python | PDF-Tools/makepdf/make-pdf-helloworld.py | maysam-h/pdf-toolz | dc182242b11dd1737ee787f19395569382af510f | [
"BSD-2-Clause"
] | null | null | null | PDF-Tools/makepdf/make-pdf-helloworld.py | maysam-h/pdf-toolz | dc182242b11dd1737ee787f19395569382af510f | [
"BSD-2-Clause"
] | null | null | null | PDF-Tools/makepdf/make-pdf-helloworld.py | maysam-h/pdf-toolz | dc182242b11dd1737ee787f19395569382af510f | [
"BSD-2-Clause"
] | 1 | 2020-09-17T23:17:16.000Z | 2020-09-17T23:17:16.000Z | #20080518
#20080519
import mPDF
import time
import zlib
import sys
if len(sys.argv) != 2:
print "Usage: make-pdf-helloworld pdf-file"
print " "
print " Source code put in the public domain by Didier Stevens, no Copyright"
print " Use at your own risk"
print " https://DidierStevens... | 20.352941 | 83 | 0.605491 | 106 | 692 | 3.95283 | 0.650943 | 0.033413 | 0.052506 | 0.057279 | 0.076372 | 0.076372 | 0 | 0 | 0 | 0 | 0 | 0.114458 | 0.280347 | 692 | 33 | 84 | 20.969697 | 0.726908 | 0.115607 | 0 | 0 | 0 | 0 | 0.463542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.227273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0456a960cd6f7a8fb4aa5ca64de8acbb20393184 | 1,909 | py | Python | hackerrank/Data Structures/Super Maximum Cost Queries/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerrank/Data Structures/Super Maximum Cost Queries/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerrank/Data Structures/Super Maximum Cost Queries/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | #!/bin/python3
import os
#
# Complete the 'solve' function below.
#
# The function is expected to return an INTEGER_ARRAY.
# The function accepts following parameters:
# 1. 2D_INTEGER_ARRAY tree
# 2. 2D_INTEGER_ARRAY queries
#
def solve(tree, queries):
# Write your code here
from bisect import bisect_righ... | 23 | 64 | 0.510739 | 281 | 1,909 | 3.380783 | 0.323843 | 0.010526 | 0.056842 | 0.008421 | 0.113684 | 0.103158 | 0.103158 | 0.035789 | 0.035789 | 0 | 0 | 0.018053 | 0.332635 | 1,909 | 82 | 65 | 23.280488 | 0.72763 | 0.116291 | 0 | 0 | 0 | 0 | 0.014311 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.056604 | false | 0 | 0.037736 | 0 | 0.113208 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0457bad8f142fab99c1a60023685415f8bbe17c7 | 2,598 | py | Python | tests/test.py | bitlang/kabob | fe5c428df2723979183bb72a7435ffd34e404199 | [
"MIT"
] | null | null | null | tests/test.py | bitlang/kabob | fe5c428df2723979183bb72a7435ffd34e404199 | [
"MIT"
] | null | null | null | tests/test.py | bitlang/kabob | fe5c428df2723979183bb72a7435ffd34e404199 | [
"MIT"
] | null | null | null | from unittest import TestCase
from kabob import _
class KabobTestCase(TestCase):
def _T(self, obj, kbb):
from kabob.wand import Kabob
self.assertIsInstance(kbb, Kabob)
return [x for x in kbb(obj)]
class TestKabob(KabobTestCase):
def test_contains(self):
fixture = [dict(bar=1... | 33.307692 | 91 | 0.550038 | 336 | 2,598 | 4.098214 | 0.160714 | 0.096587 | 0.179375 | 0.188816 | 0.631808 | 0.559913 | 0.490922 | 0.490922 | 0.479303 | 0.431373 | 0 | 0.074881 | 0.275212 | 2,598 | 77 | 92 | 33.74026 | 0.656399 | 0 | 0 | 0.172414 | 0 | 0 | 0.015781 | 0 | 0 | 0 | 0 | 0 | 0.241379 | 1 | 0.172414 | false | 0 | 0.051724 | 0 | 0.327586 | 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 |
045ab6d7b2818c3906b03b2e9bb0ddef41f82336 | 26,619 | py | Python | vistrails/gui/modules/constant_configuration.py | remram44/VisTrails-mybinder | ee7477b471920d738f3ac430932f01901b56ed44 | [
"BSD-3-Clause"
] | 83 | 2015-01-05T14:50:50.000Z | 2021-09-17T19:45:26.000Z | vistrails/gui/modules/constant_configuration.py | remram44/VisTrails-mybinder | ee7477b471920d738f3ac430932f01901b56ed44 | [
"BSD-3-Clause"
] | 254 | 2015-01-02T20:39:19.000Z | 2018-11-28T17:16:44.000Z | vistrails/gui/modules/constant_configuration.py | remram44/VisTrails-mybinder | ee7477b471920d738f3ac430932f01901b56ed44 | [
"BSD-3-Clause"
] | 40 | 2015-04-17T16:46:36.000Z | 2021-09-28T22:43:24.000Z | ###############################################################################
##
## Copyright (C) 2014-2016, New York University.
## Copyright (C) 2011-2014, NYU-Poly.
## Copyright (C) 2006-2011, University of Utah.
## All rights reserved.
## Contact: contact@vistrails.org
##
## This file is part of VisTrails.
##
## ... | 37.125523 | 122 | 0.626845 | 2,754 | 26,619 | 5.942629 | 0.214597 | 0.017109 | 0.015092 | 0.021997 | 0.401931 | 0.342845 | 0.298668 | 0.230539 | 0.210558 | 0.193144 | 0 | 0.00686 | 0.255231 | 26,619 | 716 | 123 | 37.177374 | 0.818663 | 0.091701 | 0 | 0.427105 | 0 | 0 | 0.02403 | 0.001096 | 0 | 0 | 0 | 0.001397 | 0 | 0 | null | null | 0.00616 | 0.022587 | 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 |
045aff75c614e75b486992543a832ede496de5f2 | 1,324 | py | Python | setup.py | davidrpugh/solowPy | 91577e04481cec80679ae571ec2bdaa5788151b4 | [
"MIT"
] | 31 | 2016-02-29T00:20:53.000Z | 2022-01-26T17:40:38.000Z | setup.py | rfonsek/solowPy | 91577e04481cec80679ae571ec2bdaa5788151b4 | [
"MIT"
] | 11 | 2015-04-04T20:01:35.000Z | 2017-02-20T05:42:49.000Z | setup.py | rfonsek/solowPy | 91577e04481cec80679ae571ec2bdaa5788151b4 | [
"MIT"
] | 20 | 2015-08-23T23:42:09.000Z | 2022-02-23T08:00:53.000Z | import os
from distutils.core import setup
def read(*paths):
"""Build a file path from *paths* and return the contents."""
with open(os.path.join(*paths), 'r') as f:
return f.read()
DESCRIPTION = ("Library for solving, simulating, and estimating the " +
"Solow (1956) model of economic... | 33.1 | 71 | 0.561934 | 133 | 1,324 | 5.578947 | 0.601504 | 0.153639 | 0.202156 | 0.105121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017372 | 0.304381 | 1,324 | 39 | 72 | 33.948718 | 0.788274 | 0.041541 | 0 | 0 | 0 | 0 | 0.475059 | 0.019794 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.0625 | 0 | 0.125 | 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 |
045e78652d194f324a318fa3d010fd1ce3d5d4e7 | 12,020 | py | Python | CRYSTAL/crystal_raman.py | permanentchange/raman-sc | 909c8d879dd97f118860e2a3a4edae2aa03f02b5 | [
"MIT"
] | 1 | 2021-01-30T12:38:07.000Z | 2021-01-30T12:38:07.000Z | CRYSTAL/crystal_raman.py | permanentchange/raman-sc | 909c8d879dd97f118860e2a3a4edae2aa03f02b5 | [
"MIT"
] | null | null | null | CRYSTAL/crystal_raman.py | permanentchange/raman-sc | 909c8d879dd97f118860e2a3a4edae2aa03f02b5 | [
"MIT"
] | 1 | 2021-05-10T01:38:30.000Z | 2021-05-10T01:38:30.000Z | #!/usr/bin/env python
#
# Raman off-resonant activity calculator
# using CRYSTAL as a back-end.
#
# Contributors: Alexandr Fonari (Georgia Tech)
# MIT license, 2013
#
#
def parse_fort34_header(fort34_fh):
import sys
from math import sqrt
#
fort34_fh.seek(0) # just in case
#
header = [fort34_fh.n... | 39.281046 | 152 | 0.505324 | 1,573 | 12,020 | 3.718373 | 0.204704 | 0.028723 | 0.011284 | 0.020687 | 0.371858 | 0.258848 | 0.179689 | 0.11472 | 0.090956 | 0.073175 | 0 | 0.043462 | 0.349168 | 12,020 | 305 | 153 | 39.409836 | 0.704206 | 0.112562 | 0 | 0.285714 | 0 | 0.017857 | 0.184978 | 0.022821 | 0 | 0 | 0 | 0 | 0.013393 | 0 | null | null | 0 | 0.058036 | null | null | 0.147321 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f08b140b4aa6ed14ab345d4ef1509b7d92f9f433 | 1,770 | py | Python | source/study/score.py | mverleg/WW | b58a9bbfc91d19541840f490ed59997d85389c0a | [
"MIT"
] | null | null | null | source/study/score.py | mverleg/WW | b58a9bbfc91d19541840f490ed59997d85389c0a | [
"MIT"
] | 1 | 2016-03-18T09:29:42.000Z | 2016-03-18T09:29:42.000Z | source/study/score.py | mverleg/WW | b58a9bbfc91d19541840f490ed59997d85389c0a | [
"MIT"
] | null | null | null | from sys import stderr
from study.models import Result, ActiveTranslation
def update_score(learner, result, verified=False):
"""
Update the score after a phrase has been judged.
:param result: Result.CORRECT, Result.CLOSE or Result.INCORRECT
:return: Result instance
"""
if result == Result.CORRECT:
base =... | 39.333333 | 292 | 0.766102 | 237 | 1,770 | 5.64557 | 0.49789 | 0.06278 | 0.049327 | 0.038864 | 0.06278 | 0.06278 | 0.06278 | 0 | 0 | 0 | 0 | 0.001329 | 0.149718 | 1,770 | 44 | 293 | 40.227273 | 0.887708 | 0.59887 | 0 | 0 | 0 | 0 | 0.073314 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.