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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d3dcc41d91e2d805803ecacde80a4de3d2e646ce | 1,285 | py | Python | examples/plotting/plot_quick_visualize_tutorial.py | rflperry/mvlearn | 8db0f63a0a811d7458aa0bd6b187f9f551241927 | [
"MIT"
] | 92 | 2020-08-26T04:55:46.000Z | 2022-03-31T08:32:01.000Z | examples/plotting/plot_quick_visualize_tutorial.py | rflperry/mvlearn | 8db0f63a0a811d7458aa0bd6b187f9f551241927 | [
"MIT"
] | 110 | 2020-02-04T22:53:53.000Z | 2020-08-20T22:41:22.000Z | examples/plotting/plot_quick_visualize_tutorial.py | NeuroDataDesign/mvlearn | 003dccea563926fca5d957f5bbf39c1494acfe94 | [
"Apache-2.0"
] | 16 | 2020-08-31T17:50:49.000Z | 2022-03-23T19:46:40.000Z | """
==================================
Quickly Visualizing Multiview Data
==================================
Often, before beginning extensive analysis, it is a good idea to visualize
your dataset to help you understand its distribution and design algorithms.
As a simple example, say we had high-dimensional multi-view... | 36.714286 | 79 | 0.67393 | 176 | 1,285 | 4.886364 | 0.613636 | 0.048837 | 0.018605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01267 | 0.140078 | 1,285 | 34 | 80 | 37.794118 | 0.765611 | 0.735409 | 0 | 0 | 0 | 0 | 0.07377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
d3e406ec31ee2cc724e041e35227458e2a28ffef | 5,219 | py | Python | kvenjoy/gfont.py | yingyinbuzz/kvenjoy_utils | a3243895c8acdfbdf7e64664ccefe3043c20074f | [
"MIT"
] | 1 | 2021-12-01T12:32:32.000Z | 2021-12-01T12:32:32.000Z | kvenjoy/gfont.py | yingyinbuzz/kvenjoy_utils | a3243895c8acdfbdf7e64664ccefe3043c20074f | [
"MIT"
] | null | null | null | kvenjoy/gfont.py | yingyinbuzz/kvenjoy_utils | a3243895c8acdfbdf7e64664ccefe3043c20074f | [
"MIT"
] | null | null | null |
import io
import zipfile
import kvenjoy.cipher
from kvenjoy.graph import *
from kvenjoy.io import *
class Glyph:
"""Visual representation of a character.
A glyph has a associated character code (UNICODE) and several Stroke that
forms the glyph.
"""
def __init__(self, code, strokes):
self... | 31.251497 | 116 | 0.592834 | 665 | 5,219 | 4.511278 | 0.204511 | 0.028 | 0.033 | 0.039667 | 0.362333 | 0.284 | 0.220667 | 0.198 | 0.198 | 0.192 | 0 | 0.007756 | 0.308297 | 5,219 | 166 | 117 | 31.439759 | 0.823269 | 0.229546 | 0 | 0.082474 | 0 | 0 | 0.001314 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.061856 | false | 0.061856 | 0.051546 | 0 | 0.164948 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d3f8364de6cf9915a61699b9127a681454d1471a | 88 | py | Python | server/library/prompts/py/17-regExp.py | rickyeh/nimblecode | bac4c3bb33a8dd28ea6a766c487ff13c73c02f17 | [
"MIT"
] | 2 | 2016-05-04T21:15:17.000Z | 2016-05-11T04:50:52.000Z | server/library/prompts/py/17-regExp.py | rickyeh/nimblecode | bac4c3bb33a8dd28ea6a766c487ff13c73c02f17 | [
"MIT"
] | null | null | null | server/library/prompts/py/17-regExp.py | rickyeh/nimblecode | bac4c3bb33a8dd28ea6a766c487ff13c73c02f17 | [
"MIT"
] | null | null | null | import re
text = 'beep boop';
a = r'b(.*?)p'
b = r'f\1d'
c = re.sub(a,b,text)
print(c)
| 11 | 20 | 0.534091 | 21 | 88 | 2.238095 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.193182 | 88 | 7 | 21 | 12.571429 | 0.647887 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d3fc24c31167dc39cd38512699000757dde2413b | 360 | py | Python | tests/test_utils.py | simupy/simupy | a7f0aec4353a41b2c9ab3aa76696f978e2f37742 | [
"BSD-2-Clause"
] | 436 | 2017-08-30T06:55:26.000Z | 2022-03-18T04:08:00.000Z | tests/test_utils.py | simupy/simupy | a7f0aec4353a41b2c9ab3aa76696f978e2f37742 | [
"BSD-2-Clause"
] | 25 | 2017-09-07T15:42:11.000Z | 2022-03-24T15:57:34.000Z | tests/test_utils.py | simupy/simupy | a7f0aec4353a41b2c9ab3aa76696f978e2f37742 | [
"BSD-2-Clause"
] | 60 | 2017-09-07T14:17:07.000Z | 2022-02-10T05:44:27.000Z | import numpy as np
from simupy.utils import isclose
def test_isclose():
t1 = np.linspace(0, np.pi/2, num=50)
t2 = np.linspace(0, np.pi/2, num=30)
assert isclose(t1, np.sin(t1), t2, np.sin(t2))
assert isclose(t1, np.sin(t1), t1, np.sin(t1))
assert not isclose(t1, np.sin(t1), t1, np.cos(t1))
if __na... | 25.714286 | 54 | 0.638889 | 66 | 360 | 3.333333 | 0.393939 | 0.109091 | 0.2 | 0.163636 | 0.481818 | 0.481818 | 0.354545 | 0 | 0 | 0 | 0 | 0.075342 | 0.188889 | 360 | 13 | 55 | 27.692308 | 0.678082 | 0 | 0 | 0 | 0 | 0 | 0.022284 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
d3fc2e594faa0b9c5d1db162a1a331d2a018ccb6 | 57 | py | Python | pytest_monitor/__init__.py | stas00/pytest-monitor | 3a7ca36e9cfa6ed5ff48a8a5e0e7662dff2c2fc1 | [
"MIT"
] | null | null | null | pytest_monitor/__init__.py | stas00/pytest-monitor | 3a7ca36e9cfa6ed5ff48a8a5e0e7662dff2c2fc1 | [
"MIT"
] | null | null | null | pytest_monitor/__init__.py | stas00/pytest-monitor | 3a7ca36e9cfa6ed5ff48a8a5e0e7662dff2c2fc1 | [
"MIT"
] | null | null | null | __version__ = "1.6.0"
__author__ = "Jean-Sebastien Dieu"
| 19 | 34 | 0.719298 | 8 | 57 | 4.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06 | 0.122807 | 57 | 2 | 35 | 28.5 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d3fd3cbb89efe400d6e6733f51c05ad204402656 | 2,731 | py | Python | impl/ui_home.py | rushirajnenuji/ezid | e169ee5c2cde798c70b204e1549d2a1c3ccc69dd | [
"MIT"
] | 9 | 2020-02-26T00:45:09.000Z | 2021-11-07T23:07:06.000Z | impl/ui_home.py | rushirajnenuji/ezid | e169ee5c2cde798c70b204e1549d2a1c3ccc69dd | [
"MIT"
] | 213 | 2020-04-07T21:36:17.000Z | 2022-03-29T21:26:04.000Z | impl/ui_home.py | rushirajnenuji/ezid | e169ee5c2cde798c70b204e1549d2a1c3ccc69dd | [
"MIT"
] | 7 | 2020-04-07T20:04:51.000Z | 2021-08-19T01:11:55.000Z | from django.template import loader
import ui_common as uic
from django.shortcuts import redirect
import ui_create
import urllib
def index(request):
if request.method not in ["GET", "POST"]:
return uic.methodNotAllowed(request)
d = {'menu_item': 'ui_home.index'}
d['prefixes'] = sorted(uic.testPrefi... | 30.010989 | 82 | 0.657635 | 355 | 2,731 | 4.909859 | 0.219718 | 0.113597 | 0.086059 | 0.183592 | 0.557085 | 0.542169 | 0.542169 | 0.542169 | 0.542169 | 0.515204 | 0 | 0.001832 | 0.200659 | 2,731 | 90 | 83 | 30.344444 | 0.79661 | 0.011717 | 0 | 0.385714 | 0 | 0 | 0.182864 | 0.01632 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.028571 | 0.071429 | 0 | 0.542857 | 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 | 1 | 0 | 0 | 2 |
310729d0c38d663383779e74c341e2c3708520e7 | 1,303 | py | Python | leetcode/graphql/compound_field.py | whiskeytown79/leetcode_problem_setup | 467eb575cbd2274b582603a6791566d95e7e71d8 | [
"MIT"
] | null | null | null | leetcode/graphql/compound_field.py | whiskeytown79/leetcode_problem_setup | 467eb575cbd2274b582603a6791566d95e7e71d8 | [
"MIT"
] | null | null | null | leetcode/graphql/compound_field.py | whiskeytown79/leetcode_problem_setup | 467eb575cbd2274b582603a6791566d95e7e71d8 | [
"MIT"
] | null | null | null | from leetcode.graphql.base_field import BaseField
from leetcode.graphql.simple_field import SimpleField
from typing import List
class CompoundField(BaseField):
"""
A compound field, which has a name as well as sub-fields.
This can result in GraphQL field structures like so:
codeSnippets {
... | 27.723404 | 85 | 0.613968 | 167 | 1,303 | 4.742515 | 0.413174 | 0.065657 | 0.045455 | 0.045455 | 0.042929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.317728 | 1,303 | 46 | 86 | 28.326087 | 0.890889 | 0.500384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
311f89974133a329f04437ddcdd024301f876dfd | 275 | py | Python | modules/validators/api/serializers/errors.py | heolin123/funcrowd | 20167783de208394c09ed0429a5f02ec6dd79c42 | [
"MIT"
] | null | null | null | modules/validators/api/serializers/errors.py | heolin123/funcrowd | 20167783de208394c09ed0429a5f02ec6dd79c42 | [
"MIT"
] | 11 | 2019-11-12T23:26:45.000Z | 2021-06-10T17:37:23.000Z | modules/validators/api/serializers/errors.py | heolin123/funcrowd | 20167783de208394c09ed0429a5f02ec6dd79c42 | [
"MIT"
] | null | null | null | from rest_framework import serializers
class AnnotationFormErrorSerializers(serializers.Serializer):
name = serializers.CharField()
field = serializers.CharField()
message = serializers.CharField()
class Meta:
fields = ('name', 'field', 'message')
| 25 | 61 | 0.72 | 24 | 275 | 8.208333 | 0.583333 | 0.304569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178182 | 275 | 10 | 62 | 27.5 | 0.871681 | 0 | 0 | 0 | 0 | 0 | 0.058182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3125697c7a655ecbed16ce508f89a0150e7eaa6c | 31,083 | py | Python | oscar/lib/python2.7/site-packages/IPython/core/latex_symbols.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/IPython/core/latex_symbols.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/IPython/core/latex_symbols.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | # encoding: utf-8
# DO NOT EDIT THIS FILE BY HAND.
# To update this file, run the script /tools/gen_latex_symbols.py using Python 3
# This file is autogenerated from the file:
# https://raw.githubusercontent.com/JuliaLang/julia/master/base/latex_symbols.jl
# This original list is filtered to remove any unico... | 23.891622 | 85 | 0.332465 | 2,639 | 31,083 | 3.920424 | 0.373247 | 0.004639 | 0.003866 | 0.004253 | 0.028707 | 0.027547 | 0.022134 | 0.016238 | 0.011792 | 0.011792 | 0 | 0.002508 | 0.333012 | 31,083 | 1,300 | 86 | 23.91 | 0.494501 | 0.011228 | 0 | 0 | 1 | 0 | 0.429892 | 0.000714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
313b9569edd2dc51fe4f04f0a37182ac3b904df4 | 261 | gyp | Python | binding.gyp | darrylhodgins/piface-node | 8ef10874612e6215255918af4e19aba03272d8f8 | [
"MIT"
] | 14 | 2015-05-27T22:25:31.000Z | 2019-02-11T17:30:06.000Z | binding.gyp | RickBullotta/piface-node-12 | 8d780a3c2c53ef0abaa3188426c917d6e4b6eca0 | [
"MIT"
] | 11 | 2015-03-09T16:56:48.000Z | 2019-10-23T17:44:58.000Z | binding.gyp | RickBullotta/piface-node-12 | 8d780a3c2c53ef0abaa3188426c917d6e4b6eca0 | [
"MIT"
] | 12 | 2015-03-03T19:01:50.000Z | 2019-09-04T22:34:34.000Z | {
"targets": [
{
"target_name": "pfio",
'include_dirs': [ '/usr/local/include', "<!(node -e \"require('nan')\")" ],
"sources": [ "pfio.cc" ],
'link_settings': {
'libraries': [
'-lpiface-1.0'
]
}
}
]
}
| 17.4 | 78 | 0.413793 | 22 | 261 | 4.772727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.333333 | 261 | 14 | 79 | 18.642857 | 0.591954 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
314ca736a8da5cdcf60d39910974f98d9036b697 | 2,682 | py | Python | contrib/tools/python/src/Lib/plat-atheos/TYPES.py | HeyLey/catboost | f472aed90604ebe727537d9d4a37147985e10ec2 | [
"Apache-2.0"
] | 6,989 | 2017-07-18T06:23:18.000Z | 2022-03-31T15:58:36.000Z | python/src/Lib/plat-atheos/TYPES.py | weiqiangzheng/sl4a | d3c17dca978cbeee545e12ea240a9dbf2a6999e9 | [
"Apache-2.0"
] | 1,978 | 2017-07-18T09:17:58.000Z | 2022-03-31T14:28:43.000Z | python/src/Lib/plat-atheos/TYPES.py | weiqiangzheng/sl4a | d3c17dca978cbeee545e12ea240a9dbf2a6999e9 | [
"Apache-2.0"
] | 1,228 | 2017-07-18T09:03:13.000Z | 2022-03-29T05:57:40.000Z | # Generated by h2py from /include/sys/types.h
_SYS_TYPES_H = 1
# Included from features.h
_FEATURES_H = 1
__USE_ANSI = 1
__FAVOR_BSD = 1
_ISOC9X_SOURCE = 1
_POSIX_SOURCE = 1
_POSIX_C_SOURCE = 199506L
_XOPEN_SOURCE = 500
_XOPEN_SOURCE_EXTENDED = 1
_LARGEFILE64_SOURCE = 1
_BSD_SOURCE = 1
_SVID_SOURCE = 1
_BSD_SOURCE = 1... | 18.755245 | 70 | 0.764728 | 431 | 2,682 | 4.113689 | 0.273782 | 0.038353 | 0.043993 | 0.023689 | 0.183869 | 0.138748 | 0.094191 | 0.06599 | 0.038353 | 0 | 0 | 0.06162 | 0.152871 | 2,682 | 142 | 71 | 18.887324 | 0.71875 | 0.16704 | 0 | 0.152174 | 1 | 0 | 0.000451 | 0 | 0 | 0 | 0.00361 | 0 | 0 | 0 | null | null | 0 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
314cd7b9be92382464e2e2728b650c55a81f59c8 | 1,044 | py | Python | Examples/2013-04-14T0854.py | scivision/isrutils | 7e631f615e520ad1e84954dfc56ce34bc33da73f | [
"Apache-2.0"
] | 1 | 2019-10-20T19:19:17.000Z | 2019-10-20T19:19:17.000Z | Examples/2013-04-14T0854.py | scivision/isrutils | 7e631f615e520ad1e84954dfc56ce34bc33da73f | [
"Apache-2.0"
] | null | null | null | Examples/2013-04-14T0854.py | scivision/isrutils | 7e631f615e520ad1e84954dfc56ce34bc33da73f | [
"Apache-2.0"
] | 2 | 2016-06-27T15:03:21.000Z | 2016-08-23T02:24:14.000Z | #!/usr/bin/env python
"""
2013-04-14 08:54 UT event
"""
from isrutils.looper import simpleloop
# %% users param
P = {
"path": "~/data/2013-04-14/isr",
"beamid": 64157,
"acf": True,
"int": False,
"samples": True,
"vlimacf": (20, 50),
"vlimacfslice": (30, 55),
"zslice": (225e3, 350e3),
... | 25.463415 | 79 | 0.559387 | 153 | 1,044 | 3.771242 | 0.679739 | 0.051993 | 0.02773 | 0.045061 | 0.062392 | 0.062392 | 0 | 0 | 0 | 0 | 0 | 0.237515 | 0.213602 | 1,044 | 40 | 80 | 26.1 | 0.465286 | 0.390805 | 0 | 0 | 0 | 0 | 0.316045 | 0.034036 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
314f70a3a69acc3d6308d871ed834f22bc350b1b | 11,727 | py | Python | ievv_opensource/utils/class_registry_singleton.py | appressoas/ievv_opensource | 63e87827952ddc8f6f86145b79478ef21d6a0990 | [
"BSD-3-Clause"
] | null | null | null | ievv_opensource/utils/class_registry_singleton.py | appressoas/ievv_opensource | 63e87827952ddc8f6f86145b79478ef21d6a0990 | [
"BSD-3-Clause"
] | 37 | 2015-10-26T09:14:12.000Z | 2022-02-10T10:35:33.000Z | ievv_opensource/utils/class_registry_singleton.py | appressoas/ievv_opensource | 63e87827952ddc8f6f86145b79478ef21d6a0990 | [
"BSD-3-Clause"
] | 1 | 2015-11-06T07:56:34.000Z | 2015-11-06T07:56:34.000Z | from collections import OrderedDict
from ievv_opensource.utils.singleton import Singleton
class DuplicateKeyError(Exception):
"""
Raised when adding a key already in a :class:`.ClassRegistrySingleton`
"""
def __init__(self, registry, key):
self.registry = registry
self.key = key
... | 33.893064 | 103 | 0.618402 | 1,285 | 11,727 | 5.476265 | 0.19144 | 0.051727 | 0.065653 | 0.030695 | 0.351286 | 0.297996 | 0.258775 | 0.230922 | 0.226517 | 0.211738 | 0 | 0.000485 | 0.296325 | 11,727 | 345 | 104 | 33.991304 | 0.852278 | 0.580285 | 0 | 0.170455 | 0 | 0 | 0.025853 | 0.009062 | 0 | 0 | 0 | 0 | 0 | 1 | 0.284091 | false | 0 | 0.022727 | 0.034091 | 0.511364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
314fcde165ce2aea113bd4b21491cd2d6bfbb0e0 | 1,946 | py | Python | pizza_cutting.py | srlee056/DailyAlgorithm-Template | 9c9db424561da3dacb4fb4343a7875a9cf801df1 | [
"MIT"
] | null | null | null | pizza_cutting.py | srlee056/DailyAlgorithm-Template | 9c9db424561da3dacb4fb4343a7875a9cf801df1 | [
"MIT"
] | null | null | null | pizza_cutting.py | srlee056/DailyAlgorithm-Template | 9c9db424561da3dacb4fb4343a7875a9cf801df1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# UTF-8 encoding when using korean
# n명의 인원이 n개의 조각을 나눠가짐
# 10 20 30 40 이런식으로 총합은 100%
# T : The number of test cases
# N : The number of people. 1~8
# 중심을 지나서 자르는 횟수 최대화 - 합쳐서 50이 나오는 경우의 수를 최대한 많이 만들어야 함.
# [a, b, c, d, ...] 인 경우에 a + b + c = 50, b+c+d+e = 50 이런식으로 연속되는 배치가 50을 만들 수 있도록 배열해야 ... | 23.445783 | 97 | 0.579137 | 397 | 1,946 | 2.7733 | 0.360202 | 0.029064 | 0.021798 | 0.029064 | 0.050863 | 0.029064 | 0.014532 | 0 | 0 | 0 | 0 | 0.097403 | 0.28777 | 1,946 | 83 | 98 | 23.445783 | 0.69697 | 0.461459 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 0 | null | null | 0 | 0 | null | null | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
315a3af371e0292878d9f31c514d820551194412 | 1,827 | py | Python | data/kitti/6_3_check_sdf.py | davidstutz/daml-shape-completion | d0d1d1c26ba547d02c4102077aeb0a1ea46c4e50 | [
"Unlicense"
] | 24 | 2018-05-16T01:49:23.000Z | 2021-11-05T10:24:44.000Z | data/kitti/6_3_check_sdf.py | davidstutz/daml-shape-completion | d0d1d1c26ba547d02c4102077aeb0a1ea46c4e50 | [
"Unlicense"
] | 3 | 2018-10-19T04:46:11.000Z | 2022-03-25T10:38:31.000Z | data/kitti/6_3_check_sdf.py | davidstutz/daml-shape-completion | d0d1d1c26ba547d02c4102077aeb0a1ea46c4e50 | [
"Unlicense"
] | 4 | 2020-04-30T01:30:41.000Z | 2021-11-05T10:24:46.000Z | #!/usr/bin/env python
"""
Some sanity checks of the rendering.
"""
from matplotlib import pyplot as plt
import math
import random
import numpy as np
import os
import sys
sys.path.insert(1, os.path.realpath(__file__ + '../lib/'))
import utils
import visualization
import ntpath
import bounding_box
import common
if __na... | 36.54 | 213 | 0.662835 | 271 | 1,827 | 4.261993 | 0.302583 | 0.09697 | 0.138528 | 0.17316 | 0.440693 | 0.41039 | 0.41039 | 0.335931 | 0.302165 | 0.180087 | 0 | 0.024246 | 0.164751 | 1,827 | 49 | 214 | 37.285714 | 0.732634 | 0.051998 | 0 | 0 | 0 | 0 | 0.154382 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 1 | 0 | false | 0 | 0.314286 | 0 | 0.314286 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
315b8fe6e6619e180745a518d7ee026a95bf8201 | 718 | py | Python | src/Global.py | asdflab/asdflab_sss | 6c8b8eb79d8c638acb3aa8274c551135c2ed4c42 | [
"MIT"
] | null | null | null | src/Global.py | asdflab/asdflab_sss | 6c8b8eb79d8c638acb3aa8274c551135c2ed4c42 | [
"MIT"
] | null | null | null | src/Global.py | asdflab/asdflab_sss | 6c8b8eb79d8c638acb3aa8274c551135c2ed4c42 | [
"MIT"
] | null | null | null |
import sys
import os
import io
import traceback
import inspect
import time
import datetime
import iso8601 # pip install iso8601
import regex
def get_callername():
framelist= inspect.stack()
try:
return framelist[2].function
finally:
del framelist
def get_exception(ex):
exc_buffer = ... | 16.697674 | 49 | 0.629526 | 106 | 718 | 4.198113 | 0.462264 | 0.07191 | 0.080899 | 0.094382 | 0.110112 | 0.076404 | 0.076404 | 0 | 0 | 0 | 0 | 0.015957 | 0.214485 | 718 | 42 | 50 | 17.095238 | 0.77305 | 0.026462 | 0 | 0 | 0 | 0 | 0.067723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.310345 | 0 | 0.586207 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
315f86eba79d1532b05dfa838de27513bdc9689c | 1,951 | py | Python | env/lib/python3.4/site-packages/jsonrpc/dispatcher.py | Organizational-Proof-Of-Work/clearinghoused_build | 7bab4ccb516015913bad41cfdc9eb15d3fbfcaf4 | [
"MIT"
] | null | null | null | env/lib/python3.4/site-packages/jsonrpc/dispatcher.py | Organizational-Proof-Of-Work/clearinghoused_build | 7bab4ccb516015913bad41cfdc9eb15d3fbfcaf4 | [
"MIT"
] | null | null | null | env/lib/python3.4/site-packages/jsonrpc/dispatcher.py | Organizational-Proof-Of-Work/clearinghoused_build | 7bab4ccb516015913bad41cfdc9eb15d3fbfcaf4 | [
"MIT"
] | null | null | null | import collections
class Dispatcher(collections.MutableMapping):
""" Method dispatcher.
Dictionary like object which holds map method_name to method.
"""
def __init__(self, prototype=None):
""" Build method dispatcher.
:param prototype: Initial method mapping.
:type protot... | 26.726027 | 69 | 0.608919 | 236 | 1,951 | 4.834746 | 0.29661 | 0.078878 | 0.091148 | 0.042068 | 0.110429 | 0.077125 | 0.077125 | 0.077125 | 0.077125 | 0 | 0 | 0 | 0.31266 | 1,951 | 72 | 70 | 27.097222 | 0.850858 | 0.335213 | 0 | 0 | 0 | 0 | 0.000873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.310345 | false | 0 | 0.034483 | 0.137931 | 0.551724 | 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 | 1 | 0 | 0 | 0 | 2 |
3169cab8b5b2c30df5f2522c05a27364af4dc14f | 471 | py | Python | tests/test_event.py | n-kats/mlbase | 7d69f259dcaf9608a921523083458fa6d0d6914b | [
"MIT"
] | null | null | null | tests/test_event.py | n-kats/mlbase | 7d69f259dcaf9608a921523083458fa6d0d6914b | [
"MIT"
] | 2 | 2018-09-23T18:39:01.000Z | 2018-09-24T18:02:21.000Z | tests/test_event.py | n-kats/mlbase | 7d69f259dcaf9608a921523083458fa6d0d6914b | [
"MIT"
] | null | null | null | import unittest
from mlbase.event import EventManager
class EventManagerTest(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_something(self):
"""
イベントが登録でき実行できることのテスト
"""
em = EventManager()
x = []
@em.on("test... | 15.7 | 42 | 0.535032 | 46 | 471 | 5.26087 | 0.586957 | 0.066116 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006472 | 0.343949 | 471 | 29 | 43 | 16.241379 | 0.776699 | 0.042463 | 0 | 0.117647 | 0 | 0 | 0.037471 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.235294 | false | 0.117647 | 0.117647 | 0 | 0.411765 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
317d9767d510395494eace44493e997b35f9ae84 | 1,161 | py | Python | stubs.min/Autodesk/Revit/DB/__init___parts/TextListStyle.py | denfromufa/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2017-07-07T11:15:45.000Z | 2017-07-07T11:15:45.000Z | stubs.min/Autodesk/Revit/DB/__init___parts/TextListStyle.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/Autodesk/Revit/DB/__init___parts/TextListStyle.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class TextListStyle(Enum,IComparable,IFormattable,IConvertible):
"""
Supported styles of text list paragraphs.
enum TextListStyle,values: Bullet (1),LetterLowercase (3),LetterUppercase (4),None (0),NumberArabic (2),NumberRomanLowercase (5),NumberRomanUppercase (6)
"""
def __eq__(self,*args):
""" x.__e... | 29.769231 | 215 | 0.691645 | 143 | 1,161 | 4.951049 | 0.370629 | 0.112994 | 0.118644 | 0.127119 | 0.182203 | 0.182203 | 0.182203 | 0.159605 | 0.159605 | 0.159605 | 0 | 0.007179 | 0.160207 | 1,161 | 38 | 216 | 30.552632 | 0.718974 | 0 | 0 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.344828 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
31863433801dbe5c9ce5bcf7234fe913d85074d4 | 670 | py | Python | python/lib/behavior_actions.py | newrelic-experimental/demo-pythontron | 0561d7e496da3a518c28102010c3c76445a47307 | [
"Apache-2.0"
] | null | null | null | python/lib/behavior_actions.py | newrelic-experimental/demo-pythontron | 0561d7e496da3a518c28102010c3c76445a47307 | [
"Apache-2.0"
] | null | null | null | python/lib/behavior_actions.py | newrelic-experimental/demo-pythontron | 0561d7e496da3a518c28102010c3c76445a47307 | [
"Apache-2.0"
] | null | null | null | '''This module provides functions to execute behaviors during http requires'''
def handle_behaviors(instance, headers, step):
'''Takes in an instance of the behavior Repository, the headers as a dict, and the current step'''
behaviors = instance.get_by_request(headers, step)
for b in behaviors:
b.execute()
... | 39.411765 | 100 | 0.755224 | 96 | 670 | 5.177083 | 0.354167 | 0.150905 | 0.108652 | 0.181087 | 0.537223 | 0.503018 | 0.503018 | 0.503018 | 0.422535 | 0.422535 | 0 | 0 | 0.155224 | 670 | 17 | 101 | 39.411765 | 0.878092 | 0.467164 | 0 | 0 | 0 | 0 | 0.020772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
318fcda31d926377299701c68f51ccc078e428df | 413 | py | Python | full_cost/full_cost/utils/url_stuff.py | CEMES-CNRS/full_cost_git | 600409b49db123db82e7f66462395294dde320ce | [
"CECILL-B"
] | null | null | null | full_cost/full_cost/utils/url_stuff.py | CEMES-CNRS/full_cost_git | 600409b49db123db82e7f66462395294dde320ce | [
"CECILL-B"
] | null | null | null | full_cost/full_cost/utils/url_stuff.py | CEMES-CNRS/full_cost_git | 600409b49db123db82e7f66462395294dde320ce | [
"CECILL-B"
] | null | null | null | import urllib.parse as urlparse
from urllib.parse import parse_qs
#
# url = 'http://foo.appspot.com/abc?def=ghi'
# parsed = urlparse.urlparse(url, allow_fragments=False)
# print(parse_qs(parsed.query)['def'])
# url = 'foo.appspot.com/#/abc?def=ghi&poject=fhjk'
def get_field_from_url(url, field):
parsed = urlparse... | 34.416667 | 58 | 0.736077 | 64 | 413 | 4.625 | 0.4375 | 0.070946 | 0.087838 | 0.108108 | 0.445946 | 0.445946 | 0.297297 | 0 | 0 | 0 | 0 | 0.002703 | 0.104116 | 413 | 12 | 59 | 34.416667 | 0.797297 | 0.443099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
319261079dd7a816b138bd57032b3f56109d8c1b | 1,676 | py | Python | jack/io/load.py | mitchelljeff/hack1 | 990d873cbcd40d2978f44560016d18a76800908e | [
"MIT"
] | 1 | 2018-10-23T12:07:31.000Z | 2018-10-23T12:07:31.000Z | jack/io/load.py | mitchelljeff/hack1 | 990d873cbcd40d2978f44560016d18a76800908e | [
"MIT"
] | null | null | null | jack/io/load.py | mitchelljeff/hack1 | 990d873cbcd40d2978f44560016d18a76800908e | [
"MIT"
] | null | null | null | """Implementation of loaders for common datasets."""
import json
from jack.core.data_structures import *
from jack.io.SNLI2jtr import convert_snli
from jack.io.SQuAD2jtr import convert_squad
loaders = dict()
def _register(name):
def _decorator(f):
loaders[name] = f
return f
return _decorat... | 24.289855 | 88 | 0.674821 | 248 | 1,676 | 4.419355 | 0.262097 | 0.065693 | 0.032847 | 0.043796 | 0.666971 | 0.666971 | 0.666971 | 0.666971 | 0.635949 | 0.518248 | 0 | 0.001595 | 0.25179 | 1,676 | 68 | 89 | 24.647059 | 0.872408 | 0.483294 | 0 | 0.130435 | 0 | 0 | 0.017287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.173913 | 0 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
319d2a355bb04dd55860be913f582b9c5fb0d8c0 | 1,030 | py | Python | tests/test_representations/test_Fourier.py | okkhoy/rlpy | af25d2011fff1d61cb7c5cc8992549808f0c6103 | [
"BSD-3-Clause"
] | 265 | 2015-01-21T08:11:12.000Z | 2021-12-21T08:06:21.000Z | tests/test_representations/test_Fourier.py | okkhoy/rlpy | af25d2011fff1d61cb7c5cc8992549808f0c6103 | [
"BSD-3-Clause"
] | 22 | 2015-03-26T17:41:43.000Z | 2019-12-19T08:47:36.000Z | tests/test_representations/test_Fourier.py | okkhoy/rlpy | af25d2011fff1d61cb7c5cc8992549808f0c6103 | [
"BSD-3-Clause"
] | 85 | 2015-02-18T00:25:15.000Z | 2021-11-15T11:10:00.000Z | from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
from rlpy.Representations import Fourier
from rlpy.Domains import GridWorld, InfiniteTrackCartPole
f... | 36.785714 | 72 | 0.758252 | 137 | 1,030 | 5.452555 | 0.510949 | 0.066934 | 0.107095 | 0.056225 | 0.069612 | 0.069612 | 0 | 0 | 0 | 0 | 0 | 0.011601 | 0.163107 | 1,030 | 28 | 73 | 36.785714 | 0.854988 | 0.167961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.05 | false | 0 | 0.55 | 0 | 0.6 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
31aaa38104daf3c5bf3cb837d87d909f216a7273 | 1,233 | py | Python | accelbyte_py_sdk/api/cloudsave/operations/admin_player_record/__init__.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | accelbyte_py_sdk/api/cloudsave/operations/admin_player_record/__init__.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | 1 | 2021-10-13T03:46:58.000Z | 2021-10-13T03:46:58.000Z | accelbyte_py_sdk/api/cloudsave/operations/admin_player_record/__init__.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template file: justice_py_sdk_codegen/__main__.py
"""Auto-generated package that contains models used b... | 45.666667 | 88 | 0.870235 | 143 | 1,233 | 7.097902 | 0.65035 | 0.079803 | 0.029557 | 0.041379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.085158 | 1,233 | 26 | 89 | 47.423077 | 0.858156 | 0.296837 | 0 | 0 | 1 | 0 | 0.036257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.769231 | 0 | 0.769231 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
31b0a9553d11bf22633a89037760414ce31d7d9b | 703 | py | Python | Software/Python/Steth Edition/timeStamp.py | pd3d/magneto | da619b58b3e3c0ba9d6ac149e8902d8fc4614ccb | [
"MIT"
] | 1 | 2021-05-18T16:50:11.000Z | 2021-05-18T16:50:11.000Z | Software/Python/Steth Edition/timeStamp.py | dash-orlando/magneto | da619b58b3e3c0ba9d6ac149e8902d8fc4614ccb | [
"MIT"
] | null | null | null | Software/Python/Steth Edition/timeStamp.py | dash-orlando/magneto | da619b58b3e3c0ba9d6ac149e8902d8fc4614ccb | [
"MIT"
] | null | null | null | """
timeStamp.py
The following script/module/library had been built to create time-sensitive strings meant to be appended to data, folder names, or file names
Fluvio L. Lobo Fenoglietto 07/05/2016
"""
import time
import os
def calendarStamp():
timeStamp = time.strftime("%Y-%m-%d")
return timeStamp
def time... | 21.30303 | 141 | 0.692745 | 97 | 703 | 5.020619 | 0.618557 | 0.080082 | 0.129363 | 0.090349 | 0.184805 | 0.184805 | 0 | 0 | 0 | 0 | 0 | 0.025685 | 0.169275 | 703 | 32 | 142 | 21.96875 | 0.808219 | 0.27596 | 0 | 0.214286 | 0 | 0 | 0.092896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
31d430961bb51e1a3af2df4779b28c9c0259cfca | 8,788 | py | Python | Lib/test/test_importlib/import_/test_relative_imports.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | 1 | 2018-06-21T18:21:24.000Z | 2018-06-21T18:21:24.000Z | Lib/test/test_importlib/import_/test_relative_imports.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | Lib/test/test_importlib/import_/test_relative_imports.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | """Test relative imports (PEP 328)."""
z .. zaimportuj util
zaimportuj sys
zaimportuj unittest
klasa RelativeImports:
"""PEP 328 introduced relative imports. This allows dla imports to occur
z within a package without having to specify the actual package name.
A simple example jest to zaimportuj another ... | 40.311927 | 78 | 0.594106 | 954 | 8,788 | 4.942348 | 0.162474 | 0.04666 | 0.048993 | 0.040085 | 0.467232 | 0.40106 | 0.362884 | 0.34719 | 0.331919 | 0.288017 | 0 | 0.010991 | 0.285617 | 8,788 | 217 | 79 | 40.497696 | 0.740045 | 0.048475 | 0 | 0.401515 | 0 | 0 | 0.163232 | 0.043309 | 0 | 0 | 0 | 0 | 0.143939 | 0 | null | null | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
31d6fe67453b077e0f5ca1dfc1d65c00ffe24e3e | 1,152 | py | Python | environments/__init__.py | SeJV/ComparisonRLapproaches | e1988a97ed5fab10c847350d607e9feafeced61e | [
"MIT"
] | 2 | 2020-12-14T12:59:40.000Z | 2020-12-14T14:08:30.000Z | environments/__init__.py | SeJV/ComparisonRLapproaches | e1988a97ed5fab10c847350d607e9feafeced61e | [
"MIT"
] | null | null | null | environments/__init__.py | SeJV/ComparisonRLapproaches | e1988a97ed5fab10c847350d607e9feafeced61e | [
"MIT"
] | null | null | null | # abstract discrete env
from gym.envs.toy_text.discrete import DiscreteEnv
# Discrete observation and action space:
from environments.maze import MazeEnv
from gym.envs.toy_text.cliffwalking import CliffWalkingEnv
from gym.envs.toy_text.taxi import TaxiEnv
# can be init with map_size='8x8' or create random with desc = ... | 42.666667 | 112 | 0.836806 | 170 | 1,152 | 5.523529 | 0.417647 | 0.067093 | 0.105431 | 0.095847 | 0.369542 | 0.167199 | 0.167199 | 0 | 0 | 0 | 0 | 0.01173 | 0.111979 | 1,152 | 26 | 113 | 44.307692 | 0.906158 | 0.411458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.769231 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
31d8dbd1e38de90cfb942f7a07b83644ce930857 | 326 | py | Python | python/mafengwo/mafengwo/items.py | Ifbooke/main | 47602b30f2c260ed14ccd9bf8f7ac49baaf1c2b5 | [
"MIT"
] | null | null | null | python/mafengwo/mafengwo/items.py | Ifbooke/main | 47602b30f2c260ed14ccd9bf8f7ac49baaf1c2b5 | [
"MIT"
] | null | null | null | python/mafengwo/mafengwo/items.py | Ifbooke/main | 47602b30f2c260ed14ccd9bf8f7ac49baaf1c2b5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
from scrapy import Item, Field
class MafengwoItem(Item):
title = Field()
pic_url = Field()
desc = Field()
link_url = Field()
content = Field()
... | 18.111111 | 51 | 0.647239 | 44 | 326 | 4.75 | 0.795455 | 0.076555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003937 | 0.220859 | 326 | 17 | 52 | 19.176471 | 0.818898 | 0.42638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 0 | 0.875 | 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 | 1 | 0 | 0 | 2 |
31dcb763d498ec9b1813f8f95a340f7b58b61e36 | 1,630 | py | Python | src/classification/probas.py | peppocola/DeClutter-Challenge-2020 | 52bf101d54dc6423d8c932d33d6d34c4366f2936 | [
"MIT"
] | 5 | 2020-07-13T18:12:03.000Z | 2020-12-08T12:26:32.000Z | src/classification/probas.py | peppocola/DeClutter-Challenge-2020 | 52bf101d54dc6423d8c932d33d6d34c4366f2936 | [
"MIT"
] | null | null | null | src/classification/probas.py | peppocola/DeClutter-Challenge-2020 | 52bf101d54dc6423d8c932d33d6d34c4366f2936 | [
"MIT"
] | null | null | null | from src.keys import non_information
def get_prediction_by_proba(proba, classes=None):
if classes is None:
classes = [0, 1]
prediction = []
for probability in proba:
if probability[0] > 0.5:
prediction.append(classes[0])
else:
prediction.append(classes[1])
... | 30.754717 | 152 | 0.634969 | 222 | 1,630 | 4.486486 | 0.220721 | 0.096386 | 0.11245 | 0.072289 | 0.454819 | 0.203815 | 0.178715 | 0.078313 | 0.078313 | 0 | 0 | 0.008425 | 0.271779 | 1,630 | 52 | 153 | 31.346154 | 0.830666 | 0.168098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.025 | 0.15 | 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 | 1 | 0 | 0 | 0 | 2 |
31dde4b08d03cd0dd7d8f56f192107b72711e526 | 21,220 | py | Python | pysnmp/DKSF-201-9-X-X-1.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/DKSF-201-9-X-X-1.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/DKSF-201-9-X-X-1.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module DKSF-201-9-X-X-1 (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DKSF-201-9-X-X-1
# Produced by pysmi-0.3.4 at Mon Apr 29 18:32:20 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar ... | 124.093567 | 2,625 | 0.747314 | 2,565 | 21,220 | 6.181676 | 0.105263 | 0.011731 | 0.016461 | 0.021948 | 0.530462 | 0.488648 | 0.437626 | 0.412778 | 0.368882 | 0.330727 | 0 | 0.113147 | 0.081621 | 21,220 | 170 | 2,626 | 124.823529 | 0.700482 | 0.015363 | 0 | 0 | 0 | 0 | 0.129136 | 0.005267 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.042945 | 0 | 0.042945 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9ed90ef4046bf66b85ea13dd13755d0f162d047b | 160 | py | Python | task_queue/log.py | dander94/task_queue | c65532fb496f4b3694cd33fb1466b5e0b3b2c486 | [
"MIT"
] | null | null | null | task_queue/log.py | dander94/task_queue | c65532fb496f4b3694cd33fb1466b5e0b3b2c486 | [
"MIT"
] | null | null | null | task_queue/log.py | dander94/task_queue | c65532fb496f4b3694cd33fb1466b5e0b3b2c486 | [
"MIT"
] | 1 | 2022-02-05T08:55:08.000Z | 2022-02-05T08:55:08.000Z | LOG_DATE_PATTERN = '%d/%b/%Y:%H:%M:%S %z'
LOG_TASK_START_CODE = 'QT001'
LOG_ABORTED_CODE = 'QT002'
LOG_EXCEPTION_CODE = 'QT003'
LOG_INNER_TASK_CREATED = 'QT004' | 32 | 41 | 0.7375 | 28 | 160 | 3.785714 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082759 | 0.09375 | 160 | 5 | 42 | 32 | 0.648276 | 0 | 0 | 0 | 0 | 0 | 0.248447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9eddf4569b909c6b3b6972adcd070bb56c74fcda | 2,308 | py | Python | api/user/login.py | imustacm/OnlineJudge | 5937db9b1b4f38883900f9dcc2831da362b6f7de | [
"MIT"
] | 6 | 2018-03-14T01:15:41.000Z | 2018-05-03T13:54:49.000Z | api/user/login.py | imustacm/OnlineJudge-Python | 5937db9b1b4f38883900f9dcc2831da362b6f7de | [
"MIT"
] | 1 | 2018-03-14T03:48:36.000Z | 2018-05-06T05:43:26.000Z | api/user/login.py | imustacm/OnlineJudge-Python | 5937db9b1b4f38883900f9dcc2831da362b6f7de | [
"MIT"
] | null | null | null | import time
from core.logger import logger
from core.db import db
from models import LoginLog
from sqlalchemy.exc import IntegrityError
from flask import current_app, request
from flask_restful import Resource
from flask_restful import reqparse
import jwt
from jwt.exceptions import ExpiredSignatureError
from jwt.exce... | 32.055556 | 95 | 0.660745 | 301 | 2,308 | 4.940199 | 0.378738 | 0.04304 | 0.018157 | 0.038332 | 0.071284 | 0.071284 | 0.071284 | 0.071284 | 0.071284 | 0.071284 | 0 | 0.006304 | 0.243934 | 2,308 | 71 | 96 | 32.507042 | 0.845845 | 0.012565 | 0 | 0.066667 | 0 | 0 | 0.058022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0.1 | 0.316667 | 0 | 0.383333 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
9ee3f9eb572da9ee384843c6eb4deaae9d24ccaf | 2,671 | py | Python | src/socil.py | manis285/SpamSms | ed369ebd2cda5e6cc3bbba0628066d3ee5fc9803 | [
"MIT"
] | 173 | 2019-01-02T03:41:59.000Z | 2022-03-16T08:50:09.000Z | src/socil.py | manis285/SpamSms | ed369ebd2cda5e6cc3bbba0628066d3ee5fc9803 | [
"MIT"
] | 12 | 2019-01-08T13:48:47.000Z | 2021-07-21T21:36:51.000Z | src/socil.py | manis285/SpamSms | ed369ebd2cda5e6cc3bbba0628066d3ee5fc9803 | [
"MIT"
] | 142 | 2019-04-01T15:38:34.000Z | 2022-03-27T06:41:54.000Z | import requests, time
from random import randrange as rg
print("""
[ SOCIOLLA OTP ]
- noobie -
""")
num=input("[In] Number: ")
jum=int(input("[In] Jumlah: "))
if num[0] == "0":
num=num[1:]
elif num[0:2] == "62":
num=num[2:]
headreg={
"Host": "soco-api.sociolla.com",
"Connection": "keep-... | 32.180723 | 166 | 0.627106 | 401 | 2,671 | 4.157107 | 0.376559 | 0.052789 | 0.035993 | 0.043191 | 0.668266 | 0.668266 | 0.668266 | 0.668266 | 0.627475 | 0.627475 | 0 | 0.08377 | 0.141894 | 2,671 | 82 | 167 | 32.573171 | 0.643543 | 0.004118 | 0 | 0.465753 | 0 | 0.054795 | 0.610609 | 0.116253 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.013699 | 0.027397 | 0 | 0.027397 | 0.109589 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9ee453730f30d2442f425103929ca261a366f753 | 10,429 | py | Python | fly2china.py | chenxuzhen/flight_scraper_US_to_China_during_COVID19 | 2e4dfbc4a1acce3d691f02efb038bcc453871a07 | [
"MIT"
] | null | null | null | fly2china.py | chenxuzhen/flight_scraper_US_to_China_during_COVID19 | 2e4dfbc4a1acce3d691f02efb038bcc453871a07 | [
"MIT"
] | null | null | null | fly2china.py | chenxuzhen/flight_scraper_US_to_China_during_COVID19 | 2e4dfbc4a1acce3d691f02efb038bcc453871a07 | [
"MIT"
] | 1 | 2020-07-26T13:43:37.000Z | 2020-07-26T13:43:37.000Z | # -*- coding: utf-8 -*-
import time
import subprocess
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from playsound import playsound
from datetime import datetime
import pandas as pd
from selenium.common.exceptions import NoSuchElementException
import smtplib
from email.mime.text i... | 60.633721 | 138 | 0.655192 | 1,914 | 10,429 | 3.539185 | 0.204807 | 0.047239 | 0.082669 | 0.100384 | 0.462799 | 0.446856 | 0.435636 | 0.413493 | 0.401978 | 0.374373 | 0 | 0.107675 | 0.144213 | 10,429 | 171 | 139 | 60.988304 | 0.650644 | 0.128871 | 0 | 0.058824 | 0 | 0.294118 | 0.616082 | 0.030196 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007353 | false | 0.014706 | 0.088235 | 0 | 0.095588 | 0.110294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9ee50bc0affb637209c288d197811790f2a65684 | 827 | py | Python | boxmetrics/core/info/system.py | Laurent-PANEK/boxmetrics-cli | 390821f5be678926f058c22568959318e0a3529e | [
"MIT"
] | null | null | null | boxmetrics/core/info/system.py | Laurent-PANEK/boxmetrics-cli | 390821f5be678926f058c22568959318e0a3529e | [
"MIT"
] | 1 | 2020-03-12T18:09:14.000Z | 2020-03-12T18:09:14.000Z | boxmetrics/core/info/system.py | boxmetrics/boxmetrics-cli-py | 390821f5be678926f058c22568959318e0a3529e | [
"MIT"
] | null | null | null | import psutil
from .base import Info
class System(Info):
def __init__(self, *args):
super(System, self).__init__(*args)
def boot_timestamp(self):
return psutil.boot_time()
def boot_time(self):
return self._format_date(self.boot_timestamp())
def time(self):
return dic... | 24.323529 | 80 | 0.61185 | 101 | 827 | 4.772277 | 0.29703 | 0.082988 | 0.058091 | 0.082988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266022 | 827 | 33 | 81 | 25.060606 | 0.794069 | 0 | 0 | 0 | 0 | 0 | 0.016929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.086957 | 0.173913 | 0.608696 | 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 | 1 | 0 | 0 | 0 | 2 |
9ee83c6e82836d5fcf1edecb31fb5c432dbdd0c4 | 15,922 | py | Python | pysnmp-with-texts/FRAMEVISIONFPING-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/FRAMEVISIONFPING-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/FRAMEVISIONFPING-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module FRAMEVISIONFPING-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/FRAMEVISIONFPING-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:16:05 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | 99.5125 | 1,861 | 0.773207 | 1,694 | 15,922 | 7.267414 | 0.104486 | 0.087726 | 0.153521 | 0.015921 | 0.502802 | 0.328081 | 0.201283 | 0.197141 | 0.173828 | 0.165543 | 0 | 0.068326 | 0.078947 | 15,922 | 159 | 1,862 | 100.138365 | 0.771156 | 0.020977 | 0 | 0 | 0 | 0 | 0.107966 | 0.008794 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.006667 | 0.04 | 0 | 0.06 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9ee8eb1b0addd71337081d34982dc4cf59dc0de6 | 833 | bzl | Python | source/bazel/deps/xcb/get.bzl | luxe/unilang | 6c8a431bf61755f4f0534c6299bd13aaeba4b69e | [
"MIT"
] | 33 | 2019-05-30T07:43:32.000Z | 2021-12-30T13:12:32.000Z | source/bazel/deps/xcb/get.bzl | luxe/unilang | 6c8a431bf61755f4f0534c6299bd13aaeba4b69e | [
"MIT"
] | 371 | 2019-05-16T15:23:50.000Z | 2021-09-04T15:45:27.000Z | source/bazel/deps/xcb/get.bzl | luxe/unilang | 6c8a431bf61755f4f0534c6299bd13aaeba4b69e | [
"MIT"
] | 6 | 2019-08-22T17:37:36.000Z | 2020-11-07T07:15:32.000Z | # Do not edit this file directly.
# It was auto-generated by: code/programs/reflexivity/reflexive_refresh
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def xcb():
http_archive(
name="xcb" ,
build_file="//bazel/deps/xcb:build.BUILD" ,
sha256="0e6dceb9133b42a405d06b73... | 30.851852 | 108 | 0.607443 | 79 | 833 | 6.291139 | 0.64557 | 0.054326 | 0.072435 | 0.076459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141234 | 0.260504 | 833 | 26 | 109 | 32.038462 | 0.665584 | 0.121249 | 0 | 0.15 | 1 | 0 | 0.522634 | 0.353909 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | true | 0 | 0 | 0 | 0.05 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9eebd55b3bf9e8b56482659d701dbf544a7d86fd | 361 | py | Python | vid 19 facebook logo.py | agneay/turtle-projects | 88f7de0c8eb1bb0f37255746c3d11b9c272d1c10 | [
"MIT"
] | null | null | null | vid 19 facebook logo.py | agneay/turtle-projects | 88f7de0c8eb1bb0f37255746c3d11b9c272d1c10 | [
"MIT"
] | null | null | null | vid 19 facebook logo.py | agneay/turtle-projects | 88f7de0c8eb1bb0f37255746c3d11b9c272d1c10 | [
"MIT"
] | null | null | null | from turtle import *
def l(y,x):
lt(y)
fd(x)
def r(y,x):
rt(y)
fd(x)
color("#4267b2")
width(3)
ht()
begin_fill()
circle(140,360)
end_fill()
rt(7)
bk(32)
color("white")
begin_fill()
l(97,98)
l(90,40)
r(90,40)
r(90,40)
l(90,34)
circle(-45,90)
fd(40)
r(90,40)
r(90,20)
circle(17,90)
fd(23)
l(90,40)
r(100,40)
r(80,... | 8.804878 | 20 | 0.603878 | 88 | 361 | 2.431818 | 0.465909 | 0.084112 | 0.093458 | 0.098131 | 0.11215 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0.246795 | 0.135734 | 361 | 41 | 21 | 8.804878 | 0.439103 | 0 | 0 | 0.314286 | 0 | 0 | 0.033149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.028571 | 0 | 0.085714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
9efc22065cd83ff50c6c2af6c6e4d1af1ff33461 | 150 | py | Python | python/inicio/URI/BEGINNER/1007.py | 0Augusto/python | 119e65153f8e5af928ffc514a5a60c76a5a22947 | [
"Apache-2.0"
] | 1 | 2022-03-03T17:22:40.000Z | 2022-03-03T17:22:40.000Z | python/inicio/URI/BEGINNER/1007.py | 0Augusto/python | 119e65153f8e5af928ffc514a5a60c76a5a22947 | [
"Apache-2.0"
] | null | null | null | python/inicio/URI/BEGINNER/1007.py | 0Augusto/python | 119e65153f8e5af928ffc514a5a60c76a5a22947 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
A = int(input())
B = int(input())
C = int(input())
D = int(input())
dif = ((A * B) - (C * D))
print("DIFERENCA = %d" %dif)
| 13.636364 | 28 | 0.473333 | 24 | 150 | 2.958333 | 0.5 | 0.450704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.22 | 150 | 10 | 29 | 15 | 0.598291 | 0.14 | 0 | 0 | 0 | 0 | 0.110236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7305d37579087fed55271a5a6a1c7141ea3e1e38 | 332 | py | Python | backend/constants.py | ivanjj22/Challenge-Python-L1 | a498ab1506f139ef171020f328bb9aa1c8e56a58 | [
"MIT"
] | null | null | null | backend/constants.py | ivanjj22/Challenge-Python-L1 | a498ab1506f139ef171020f328bb9aa1c8e56a58 | [
"MIT"
] | null | null | null | backend/constants.py | ivanjj22/Challenge-Python-L1 | a498ab1506f139ef171020f328bb9aa1c8e56a58 | [
"MIT"
] | null | null | null | import os
REGION_ENDPOINT = "https://restcountries-v1.p.rapidapi.com/all"
HEADERS_RAPIDAPI = {
'x-rapidapi-key': os.environ.get('RAPIDAPI_KEY'),
'x-rapidapi-host': "restcountries-v1.p.rapidapi.com"
}
ENDPOINT_REST_CONTRIES = "https://restcountries.eu/rest/v2/region/"
DATABASE_NAME = "sqlite:///db/regio... | 33.2 | 68 | 0.716867 | 44 | 332 | 5.272727 | 0.590909 | 0.155172 | 0.137931 | 0.206897 | 0.232759 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010169 | 0.111446 | 332 | 9 | 69 | 36.888889 | 0.776271 | 0 | 0 | 0 | 0 | 0 | 0.563467 | 0.179567 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 2 |
730700001875547dfbabb86f6ef23f9e5c84a6ec | 2,661 | py | Python | mlchain/cache/__init__.py | Nguyen-ATrung/mlchain-public-dev | 7d5609d4d556e706e67d8759f2be7ffd55b25557 | [
"MIT"
] | 1 | 2020-08-26T03:35:38.000Z | 2020-08-26T03:35:38.000Z | mlchain/cache/__init__.py | Nguyen-ATrung/mlchain-public-dev | 7d5609d4d556e706e67d8759f2be7ffd55b25557 | [
"MIT"
] | 4 | 2021-03-25T23:55:12.000Z | 2022-03-12T00:36:03.000Z | mlchain/cache/__init__.py | attrung/mlchain-public-travisci-test | 9dca6ad2e05ae85068e2ca09f7bce2dc1bc916fa | [
"MIT"
] | 1 | 2020-08-12T08:34:42.000Z | 2020-08-12T08:34:42.000Z | from cachetools import TTLCache, LRUCache, Cache as _Cache,LFUCache
from .function import function_cache
def cache(maxsize=1024):
return function_cache(cache=_Cache(maxsize))
def ttlcache(maxsize=1024, ttl=15 * 60):
return function_cache(cache=TTLCache(maxsize, ttl))
def lrucache(maxsize=1024):
return... | 43.622951 | 106 | 0.634348 | 345 | 2,661 | 4.77971 | 0.171014 | 0.021831 | 0.115221 | 0.040024 | 0.580958 | 0.548817 | 0.438448 | 0.438448 | 0.438448 | 0.438448 | 0 | 0.027282 | 0.24239 | 2,661 | 61 | 107 | 43.622951 | 0.790675 | 0.042089 | 0 | 0.456522 | 0 | 0 | 0.055534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0.108696 | 0.130435 | 0.065217 | 0.543478 | 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 | 1 | 0 | 0 | 2 |
730fa8dd6de83a1b34f2d62a98ce2504d8eaaa91 | 141 | py | Python | Sets/Introduction to Sets.py | akshat-jjain/HackerRank-Python-Solutions | 85e344573476795f43b09cf04c3f6956c643da16 | [
"MIT"
] | 2 | 2021-05-19T11:59:57.000Z | 2021-08-23T14:21:49.000Z | Sets/Introduction to Sets.py | akshat-jjain/HackerRank-Python-Solutions | 85e344573476795f43b09cf04c3f6956c643da16 | [
"MIT"
] | null | null | null | Sets/Introduction to Sets.py | akshat-jjain/HackerRank-Python-Solutions | 85e344573476795f43b09cf04c3f6956c643da16 | [
"MIT"
] | 1 | 2021-05-19T12:02:16.000Z | 2021-05-19T12:02:16.000Z | def average(array):
# your code goes here
y=0
arr1=set(array)
for x in arr1:
y+=x
z=y/len(arr1)
return z
| 15.666667 | 25 | 0.51773 | 24 | 141 | 3.041667 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.375887 | 141 | 8 | 26 | 17.625 | 0.784091 | 0.134752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
73162dc972616605464c6778b9dc85a711da4796 | 6,479 | py | Python | nbs/dl2/selfmade/exp/nb_12a.py | Hustens0hn/fastai-course-v3 | 5f803c0a9b6b7169b8675f16ee81758c3b5f2f14 | [
"Apache-2.0"
] | null | null | null | nbs/dl2/selfmade/exp/nb_12a.py | Hustens0hn/fastai-course-v3 | 5f803c0a9b6b7169b8675f16ee81758c3b5f2f14 | [
"Apache-2.0"
] | null | null | null | nbs/dl2/selfmade/exp/nb_12a.py | Hustens0hn/fastai-course-v3 | 5f803c0a9b6b7169b8675f16ee81758c3b5f2f14 | [
"Apache-2.0"
] | null | null | null |
#################################################
### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ###
#################################################
# file to edit: dev_nb/12a_awd_lstm.ipynb
from exp.nb_12 import *
def dropout_mask(x, sz, p):
return x.new(*sz).bernoulli_(1-p).div_(1-p)
class RNNDropout(nn.Modu... | 40.748428 | 166 | 0.635129 | 1,002 | 6,479 | 3.874252 | 0.184631 | 0.032458 | 0.019835 | 0.015456 | 0.172334 | 0.12442 | 0.075734 | 0.075734 | 0.057702 | 0.043277 | 0 | 0.014331 | 0.213768 | 6,479 | 159 | 167 | 40.748428 | 0.747742 | 0.022997 | 0 | 0.106557 | 1 | 0 | 0.017041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204918 | false | 0 | 0.016393 | 0.016393 | 0.385246 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7322b7bc21017a3afd92bb30ace4a1f5d13aafb4 | 2,290 | py | Python | Wallpaper-News/main.py | Abiskar-Timsina/Wallpaper_News | 6fa3d9aa454581b16d96cb2c4d5a893e3192119e | [
"MIT"
] | null | null | null | Wallpaper-News/main.py | Abiskar-Timsina/Wallpaper_News | 6fa3d9aa454581b16d96cb2c4d5a893e3192119e | [
"MIT"
] | null | null | null | Wallpaper-News/main.py | Abiskar-Timsina/Wallpaper_News | 6fa3d9aa454581b16d96cb2c4d5a893e3192119e | [
"MIT"
] | null | null | null | from PIL import Image,ImageFont,ImageDraw
from data.tiles import GenerateTiles
import os
import ctypes
import time
# in mins
UPDATE_INTERVAL = 90
SCREEN_RES_X = 1920
SCREEN_RES_Y = 1080
''' Tile Settings '''
# A tile here is a smaller picture that renders the scraped data; these are later merged.
TILE_X = 0.3 # ... | 26.941176 | 113 | 0.748035 | 378 | 2,290 | 4.28836 | 0.328042 | 0.033313 | 0.040099 | 0.013572 | 0.197409 | 0.154226 | 0.154226 | 0.154226 | 0.154226 | 0.154226 | 0 | 0.027068 | 0.128821 | 2,290 | 84 | 114 | 27.261905 | 0.785464 | 0.117467 | 0 | 0.05 | 1 | 0 | 0.05618 | 0.013733 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.05 | false | 0 | 0.125 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7327b724781f68be0b0c169dc17752c9cbfa043f | 394 | py | Python | examples/extended1.py | EmbarkStudios/Python-xNormal | a4f005220d31d1e9085a7cbcc1ef46e70cff2753 | [
"BSD-2-Clause"
] | 52 | 2015-04-26T19:46:37.000Z | 2021-12-23T01:45:16.000Z | examples/extended1.py | EmbarkStudios/Python-xNormal | a4f005220d31d1e9085a7cbcc1ef46e70cff2753 | [
"BSD-2-Clause"
] | 3 | 2015-10-22T08:07:38.000Z | 2019-08-02T18:13:59.000Z | examples/extended1.py | EmbarkStudios/Python-xNormal | a4f005220d31d1e9085a7cbcc1ef46e70cff2753 | [
"BSD-2-Clause"
] | 10 | 2016-08-24T14:02:07.000Z | 2021-11-10T02:40:47.000Z | import xNormal
xNormal.path = "C:\\Program Files\\xNormal\\3.19.3\\x64\\xNormal.exe"
xNormal.run("piano_high.obj", "piano_low.obj", "piano.png", width = 256, height = 256,
gen_normals = True, normals_x = "+X", normals_y = "-Z", normals_z = "+Y",
gen_ao = True, ao_rays = 64, ao_jitte... | 65.666667 | 91 | 0.591371 | 56 | 394 | 3.964286 | 0.589286 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057239 | 0.246193 | 394 | 6 | 92 | 65.666667 | 0.690236 | 0 | 0 | 0 | 0 | 0 | 0.237975 | 0.101266 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
73289ff8f44b520441bc25e1ab7e43ea2072acfa | 4,270 | py | Python | axelrod/random_.py | nandhinianandj/Axelrod | 379b907d64c51816a50abfd8480240276c893953 | [
"MIT"
] | 596 | 2015-03-30T17:34:14.000Z | 2022-03-21T19:32:38.000Z | axelrod/random_.py | nandhinianandj/Axelrod | 379b907d64c51816a50abfd8480240276c893953 | [
"MIT"
] | 1,018 | 2015-03-30T14:57:33.000Z | 2022-03-14T14:57:48.000Z | axelrod/random_.py | nandhinianandj/Axelrod | 379b907d64c51816a50abfd8480240276c893953 | [
"MIT"
] | 263 | 2015-03-31T10:26:28.000Z | 2022-03-29T09:26:02.000Z | from typing import Optional
import numpy as np
from axelrod.action import Action
from numpy.random import RandomState
C, D = Action.C, Action.D
class RandomGenerator(object):
"""Container around a random number generator.
Enables reproducibility of player behavior, matches,
and tournaments."""
def ... | 29.047619 | 77 | 0.590164 | 536 | 4,270 | 4.58209 | 0.261194 | 0.061075 | 0.022801 | 0.032573 | 0.13355 | 0.087134 | 0.038274 | 0 | 0 | 0 | 0 | 0.01107 | 0.301874 | 4,270 | 146 | 78 | 29.246575 | 0.812814 | 0.279859 | 0 | 0.136986 | 0 | 0 | 0.004249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.219178 | false | 0 | 0.054795 | 0.068493 | 0.520548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
733a26db2dcc924b634ee1d3850523df7a4356cd | 465 | py | Python | .local/share/ipython/profile_default/startup/00-load-modules.py | seanbreckenridge/sean | 93e15d27b80a54873ca5d0e4a2b685b360a32e4d | [
"MIT",
"Unlicense"
] | null | null | null | .local/share/ipython/profile_default/startup/00-load-modules.py | seanbreckenridge/sean | 93e15d27b80a54873ca5d0e4a2b685b360a32e4d | [
"MIT",
"Unlicense"
] | null | null | null | .local/share/ipython/profile_default/startup/00-load-modules.py | seanbreckenridge/sean | 93e15d27b80a54873ca5d0e4a2b685b360a32e4d | [
"MIT",
"Unlicense"
] | null | null | null | # load modules that I use in testing things automatically
import os
if "PIPENV_ACTIVE" not in os.environ:
import json # noqa
import tempfile # noqa
from pathlib import Path # noqa
from datetime import datetime, timedelta, timezone # noqa
from collections import Counter # noqa
from glob imp... | 33.214286 | 62 | 0.713978 | 63 | 465 | 5.238095 | 0.539683 | 0.169697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.249462 | 465 | 13 | 63 | 35.769231 | 0.945559 | 0.215054 | 0 | 0 | 0 | 0 | 0.036723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.909091 | 0 | 0.909091 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
733fbee87881761d1ebc507e128ef779e6a4dc5a | 6,415 | py | Python | optimizer/key_transitions.py | napulen/keyddo | ebc70815fb9bc898460a02efdafcc00bc51ac0b6 | [
"MIT"
] | 12 | 2018-07-17T15:20:27.000Z | 2021-12-30T12:52:26.000Z | optimizer/key_transitions.py | napulen/keyddo | ebc70815fb9bc898460a02efdafcc00bc51ac0b6 | [
"MIT"
] | 8 | 2020-02-14T15:44:16.000Z | 2020-03-04T21:05:41.000Z | optimizer/key_transitions.py | napulen/keyddo | ebc70815fb9bc898460a02efdafcc00bc51ac0b6 | [
"MIT"
] | 1 | 2020-12-17T16:35:49.000Z | 2020-12-17T16:35:49.000Z | import logging
logger = logging.getLogger('key_transitions')
# Not intended to modify directly
_kt = {
"ktg_linear": [
9/132, 4/132, 6/132, 6/132, 5/132, 8/132,
1/132, 8/132, 5/132, 6/132, 6/132, 4/132,
8/132, 2/132, 7/132, 3/132, 7/132, 7/132,
3/132, 7/132, 2/132, 8/132, 5... | 42.766667 | 283 | 0.657521 | 787 | 6,415 | 5.284625 | 0.213469 | 0.050493 | 0.006732 | 0.014427 | 0.508776 | 0.279394 | 0.26112 | 0.082231 | 0.058668 | 0.043761 | 0 | 0.576278 | 0.21933 | 6,415 | 149 | 284 | 43.053691 | 0.254193 | 0.004832 | 0 | 0.106061 | 0 | 0 | 0.0807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.007576 | 0 | 0.113636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
734087822ce7dd0d1f0d3b4ed813f66dc0456aa3 | 2,696 | py | Python | Lib/plat-irix6/IN.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | 5 | 2022-03-26T21:53:36.000Z | 2022-03-30T21:47:20.000Z | Lib/plat-irix6/IN.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | 6 | 2020-11-18T15:48:14.000Z | 2021-05-03T21:20:50.000Z | Lib/plat-irix6/IN.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | 2 | 2015-07-16T08:14:13.000Z | 2022-03-27T01:55:17.000Z | # Generated by h2py from /usr/include/netinet/in.h
# Included from sgidefs.h
_MIPS_ISA_MIPS1 = 1
_MIPS_ISA_MIPS2 = 2
_MIPS_ISA_MIPS3 = 3
_MIPS_ISA_MIPS4 = 4
_MIPS_SIM_ABI32 = 1
_MIPS_SIM_NABI32 = 2
_MIPS_SIM_ABI64 = 3
# Included from sys/endian.h
LITTLE_ENDIAN = 1234
BIG_ENDIAN = 4321
PDP_ENDIAN = 3412
BYTE_ORDER = B... | 20.119403 | 76 | 0.759273 | 449 | 2,696 | 4.209354 | 0.396437 | 0.044444 | 0.038095 | 0.04127 | 0.108466 | 0.073016 | 0.060317 | 0 | 0 | 0 | 0 | 0.127074 | 0.150593 | 2,696 | 133 | 77 | 20.270677 | 0.698253 | 0.085682 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0.089577 | 0 | 0 | 0 | null | null | 0 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7351278580f6c4d2273c67c8e81bb93b2a710191 | 587 | py | Python | platypush/logger.py | BlackLight/platypush | 6c0a8bf2599eb4ab41a6122dbd988075d8b1a63a | [
"MIT"
] | 228 | 2018-01-30T11:17:09.000Z | 2022-03-24T11:22:26.000Z | platypush/logger.py | BlackLight/platypush | 6c0a8bf2599eb4ab41a6122dbd988075d8b1a63a | [
"MIT"
] | 167 | 2017-12-11T19:35:38.000Z | 2022-03-27T14:45:30.000Z | platypush/logger.py | BlackLight/runbullet | 8d26c8634d2677b4402f0a21b9ab8244b44640db | [
"MIT"
] | 16 | 2018-05-03T07:31:56.000Z | 2021-12-05T19:27:37.000Z | class Logger:
def __init__(self, level):
self.level = level
def write(self, message):
if message is None:
return
if isinstance(message, bytes):
message = message.decode()
message = message.rstrip()
if message and len(message) > 0:
se... | 20.964286 | 113 | 0.558773 | 70 | 587 | 4.628571 | 0.6 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007916 | 0.354344 | 587 | 27 | 114 | 21.740741 | 0.846966 | 0.224872 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0.133333 | 0 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
7352c8dc599d827172735df1c181c10e250ef650 | 239 | py | Python | OpenAI-Gym/agents/test_harness.py | stmobo/Machine-Learning | 83f69c7afb0a4bc1dc94482b8d23805e8ab2acde | [
"MIT"
] | 2 | 2017-09-26T04:39:04.000Z | 2017-10-12T08:57:51.000Z | OpenAI-Gym/agents/test_harness.py | stmobo/Machine-Learning | 83f69c7afb0a4bc1dc94482b8d23805e8ab2acde | [
"MIT"
] | null | null | null | OpenAI-Gym/agents/test_harness.py | stmobo/Machine-Learning | 83f69c7afb0a4bc1dc94482b8d23805e8ab2acde | [
"MIT"
] | null | null | null | import tensorflow as tf
import prettytensor as pt
import gym
import numpy as np
import csv
import os
import random
from collections import deque
from agents import dqn, spaces, replay_buffer
class Agent:
def __init__(self, network)
| 15.933333 | 45 | 0.799163 | 37 | 239 | 5.027027 | 0.702703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175732 | 239 | 14 | 46 | 17.071429 | 0.944162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.818182 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
7354f12cdb72c8c08b593fb3e325a0a0b1bee9a9 | 1,172 | py | Python | tethys/core/__init__.py | tethys-platform/tethys | c27daf5a832b05f9d771b04355001c331bc08766 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-05-20T19:03:14.000Z | 2020-06-03T20:43:34.000Z | tethys/core/__init__.py | tethys-platform/tethys | c27daf5a832b05f9d771b04355001c331bc08766 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | tethys/core/__init__.py | tethys-platform/tethys | c27daf5a832b05f9d771b04355001c331bc08766 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright 2020 Konstruktor, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 29.3 | 74 | 0.746587 | 163 | 1,172 | 5.343558 | 0.496933 | 0.126292 | 0.176808 | 0.183697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00829 | 0.176621 | 1,172 | 39 | 75 | 30.051282 | 0.894301 | 0.490614 | 0 | 0 | 0 | 0 | 0.144082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.458333 | 0 | 0.458333 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
7356eeee8311619012c62c0528faadaea7b8f3b8 | 1,711 | py | Python | 2021/day11/octupus.py | ingjrs01/adventofcode | c5e4f0158dac0efc2dbfc10167f2700693b41fea | [
"Apache-2.0"
] | null | null | null | 2021/day11/octupus.py | ingjrs01/adventofcode | c5e4f0158dac0efc2dbfc10167f2700693b41fea | [
"Apache-2.0"
] | null | null | null | 2021/day11/octupus.py | ingjrs01/adventofcode | c5e4f0158dac0efc2dbfc10167f2700693b41fea | [
"Apache-2.0"
] | null | null | null | class Octopus():
def __init__(self,val,x,y):
self.val = val
self.x = x
self.y = y
self.flashes = 0
self.neighbors = []
def getVal(self):
return self.val
def getX(self):
return self.x
def getY(self):
return self.y
de... | 25.161765 | 53 | 0.469316 | 217 | 1,711 | 3.682028 | 0.170507 | 0.100125 | 0.190238 | 0.20025 | 0.397998 | 0.397998 | 0.397998 | 0.397998 | 0.320401 | 0.2403 | 0 | 0.028708 | 0.389246 | 1,711 | 67 | 54 | 25.537313 | 0.735885 | 0.017534 | 0 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.054545 | 0.309091 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
73599f2922ab8bcde7e1bb2d940e574972716371 | 1,870 | py | Python | exercises/level_2/games/love_messanger/run.py | eliranM98/python_course | d9431dd6c0f27fca8ca052cc2a821ed0b883136c | [
"MIT"
] | 6 | 2019-03-29T06:14:53.000Z | 2021-10-15T23:42:36.000Z | exercises/level_2/games/love_messanger/run.py | eliranM98/python_course | d9431dd6c0f27fca8ca052cc2a821ed0b883136c | [
"MIT"
] | 4 | 2019-09-06T10:03:40.000Z | 2022-03-11T23:30:55.000Z | exercises/level_2/games/love_messanger/run.py | eliranM98/python_course | d9431dd6c0f27fca8ca052cc2a821ed0b883136c | [
"MIT"
] | 12 | 2019-06-20T19:34:52.000Z | 2021-10-15T23:42:39.000Z | import pyglet
from exercises.level_2.games.love_messanger.message_translator import LoveTranslator
from exercises.level_2.games.love_messanger.screen import LoveScreen
from exercises.level_2.games.love_messanger.speaker import speaker
if __name__ == "__main__":
print("""
XOXOXOXOXOXOXOXOXOXOXOXOXOXOXOXOXOXOXO... | 50.540541 | 84 | 0.247594 | 97 | 1,870 | 4.587629 | 0.28866 | 0.049438 | 0.067416 | 0.080899 | 0.34382 | 0.34382 | 0.34382 | 0.094382 | 0.094382 | 0.094382 | 0 | 0.002344 | 0.315508 | 1,870 | 36 | 85 | 51.944444 | 0.345313 | 0 | 0 | 0.117647 | 0 | 0 | 0.8 | 0.28877 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0.029412 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b4023412b6d2c54b65202ac1883178662e7f0ef5 | 491 | py | Python | shop/source/database/models/user.py | icYFTL/RTULAB_Service | a16d0fc2ac9ac103f0a14e90824caded7156bf11 | [
"Apache-2.0"
] | null | null | null | shop/source/database/models/user.py | icYFTL/RTULAB_Service | a16d0fc2ac9ac103f0a14e90824caded7156bf11 | [
"Apache-2.0"
] | null | null | null | shop/source/database/models/user.py | icYFTL/RTULAB_Service | a16d0fc2ac9ac103f0a14e90824caded7156bf11 | [
"Apache-2.0"
] | null | null | null | from sqlalchemy import Column, String, Integer
from sqlalchemy.orm import relationship
from .. import Base
from .base_model import BaseModel
class User(Base, BaseModel):
__tablename__ = 'users'
id = Column(Integer, primary_key=True, autoincrement=True)
# some other information
purchases = relationshi... | 25.842105 | 78 | 0.704684 | 60 | 491 | 5.533333 | 0.566667 | 0.054217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189409 | 491 | 18 | 79 | 27.277778 | 0.834171 | 0.044807 | 0 | 0 | 0 | 0 | 0.09636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.083333 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b405f7c0922aa0c8996992e8ed51e41c1c772e29 | 1,250 | py | Python | applications/FluidDynamicsApplication/python_scripts/compute_embedded_drag_process.py | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | 2 | 2019-10-25T09:28:10.000Z | 2019-11-21T12:51:46.000Z | applications/FluidDynamicsApplication/python_scripts/compute_embedded_drag_process.py | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | 13 | 2019-10-07T12:06:51.000Z | 2020-02-18T08:48:33.000Z | applications/FluidDynamicsApplication/python_scripts/compute_embedded_drag_process.py | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | null | null | null | # Importing the Kratos Library
import KratosMultiphysics
# Import applications
import KratosMultiphysics.FluidDynamicsApplication as KratosCFD
# Import base class file
from KratosMultiphysics.compute_drag_process import ComputeDragProcess
def Factory(settings, model):
if(type(settings) != KratosMultiphysics.Para... | 40.322581 | 103 | 0.7584 | 124 | 1,250 | 7.564516 | 0.58871 | 0.03838 | 0.070362 | 0.1258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1616 | 1,250 | 31 | 104 | 40.322581 | 0.895038 | 0.1456 | 0 | 0 | 0 | 0 | 0.224451 | 0.049666 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.176471 | 0.058824 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b40c6ab1e969f861b244fee8291b63800bf8eb26 | 700 | py | Python | tests/Chapter3/test_Gridworld.py | dandxy89/ProjectReinforcementLearning | 382eb57f91132cfb0e574bffe977233f84727524 | [
"MIT"
] | 4 | 2018-01-07T21:36:15.000Z | 2021-05-27T07:23:36.000Z | tests/Chapter3/test_Gridworld.py | dandxy89/ProjectReinforcementLearning | 382eb57f91132cfb0e574bffe977233f84727524 | [
"MIT"
] | 3 | 2018-02-14T09:14:46.000Z | 2020-11-13T17:14:12.000Z | tests/Chapter3/test_Gridworld.py | dandxy89/ProjectReinforcementLearning | 382eb57f91132cfb0e574bffe977233f84727524 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Testing for Chapter 3
"""
import unittest
from RLBook.Chapter3.Gridworld import GridWorld
class TestGridWorld(unittest.TestCase):
""" Testing the Chapter3 Implementation
"""
def setUp(self):
pass
def tearDown(self):
pass
def tes... | 20.588235 | 61 | 0.632857 | 79 | 700 | 5.443038 | 0.632911 | 0.065116 | 0.051163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01518 | 0.247143 | 700 | 33 | 62 | 21.212121 | 0.800759 | 0.271429 | 0 | 0.142857 | 0 | 0 | 0.022541 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.214286 | false | 0.142857 | 0.142857 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b42d2fd3116a4c61c8217809bd588b321ccc74bd | 769 | py | Python | generate_summary.py | lixinchengdu/gitbook | a657e242b0fd956369c8bf74dec7d53988999426 | [
"MIT"
] | 1 | 2020-09-27T18:55:12.000Z | 2020-09-27T18:55:12.000Z | generate_summary.py | lixinchengdu/gitbook | a657e242b0fd956369c8bf74dec7d53988999426 | [
"MIT"
] | null | null | null | generate_summary.py | lixinchengdu/gitbook | a657e242b0fd956369c8bf74dec7d53988999426 | [
"MIT"
] | 2 | 2020-10-29T11:40:49.000Z | 2021-10-11T18:23:24.000Z | import os
def generate(dir):
filePath = os.path.join(dir, 'problems.txt')
file = open(filePath, 'r')
lines = file.readlines()
idToName = {}
for line in lines:
problem = line.split(',')
idToName[int(problem[0])] = (problem[1][1:], problem[2][1:-1])
file.close()
outFileName... | 25.633333 | 87 | 0.56697 | 92 | 769 | 4.73913 | 0.467391 | 0.041284 | 0.045872 | 0.059633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 0.252276 | 769 | 29 | 88 | 26.517241 | 0.74087 | 0 | 0 | 0 | 1 | 0 | 0.085826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b4352a13c3a5daad8d23c1c11e11cdb50641c64e | 450 | py | Python | ea/tools.py | aleksanb/RBN-Reservoir | 1f68598d7e9349083816c7b91e98f7b066e991dd | [
"MIT"
] | 4 | 2016-01-27T10:38:04.000Z | 2022-02-24T11:46:24.000Z | ea/tools.py | aleksanb/RBN-Reservoir | 1f68598d7e9349083816c7b91e98f7b066e991dd | [
"MIT"
] | null | null | null | ea/tools.py | aleksanb/RBN-Reservoir | 1f68598d7e9349083816c7b91e98f7b066e991dd | [
"MIT"
] | 1 | 2020-06-12T14:37:38.000Z | 2020-06-12T14:37:38.000Z | class Mixin(object):
def __init__(self, name, fn, kwargs={}):
self.__call__ = fn
self.name = name
self.kwargs = kwargs
def __call__(self, *args, **kwargs):
return self.__call__(*args, **kwargs)
def __repr__(self):
arguments = ', '.join(['%s=%s' % (key, self.kwargs[k... | 32.142857 | 68 | 0.535556 | 52 | 450 | 4.25 | 0.403846 | 0.108597 | 0.144796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.308889 | 450 | 13 | 69 | 34.615385 | 0.710611 | 0 | 0 | 0 | 0 | 0 | 0.024444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b447d86186c762c679c7dbb7a835be971530e1ac | 76,252 | py | Python | python/medifor/v1/pipeline_pb2.py | xkortex/medifor-lite | 4567e16f59930417506e784e94f3fedb4afcc0c3 | [
"Apache-2.0"
] | null | null | null | python/medifor/v1/pipeline_pb2.py | xkortex/medifor-lite | 4567e16f59930417506e784e94f3fedb4afcc0c3 | [
"Apache-2.0"
] | 4 | 2021-06-08T21:51:22.000Z | 2022-01-13T02:54:40.000Z | python/medifor/v1/pipeline_pb2.py | xkortex/medifor-lite | 4567e16f59930417506e784e94f3fedb4afcc0c3 | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: medifor/v1/pipeline.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import m... | 40.58116 | 7,285 | 0.756242 | 9,008 | 76,252 | 6.108126 | 0.044405 | 0.0458 | 0.05267 | 0.037185 | 0.713733 | 0.657882 | 0.638835 | 0.627422 | 0.604122 | 0.586783 | 0 | 0.039369 | 0.122253 | 76,252 | 1,878 | 7,286 | 40.602769 | 0.782713 | 0.030229 | 0 | 0.68418 | 1 | 0.000571 | 0.216674 | 0.182092 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004569 | 0 | 0.004569 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b45669b0484d5a6e529827bedb18a14f0966c429 | 255 | py | Python | report.py | aliquantus/swimlog | bd85eb4bf613397a4125b29a4d19aae2f1257e4f | [
"MIT"
] | null | null | null | report.py | aliquantus/swimlog | bd85eb4bf613397a4125b29a4d19aae2f1257e4f | [
"MIT"
] | null | null | null | report.py | aliquantus/swimlog | bd85eb4bf613397a4125b29a4d19aae2f1257e4f | [
"MIT"
] | null | null | null | from models import *
from queries import *
import datetime
from dateutil.relativedelta import relativedelta
import matplotlib.pyplot as plt
import calendar
import numpy as np
def printWeekly(datum, nWeeks=5):
"""returns [weeks,lengths,#sessions]"""
| 21.25 | 48 | 0.784314 | 33 | 255 | 6.060606 | 0.69697 | 0.19 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004545 | 0.137255 | 255 | 11 | 49 | 23.181818 | 0.904545 | 0.129412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.875 | 0 | 1 | 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 | 1 | 0 | 0 | 2 |
b45b704d4608730e31ebab0d51087b0a827f92a4 | 2,854 | py | Python | problems/chapter02_normalization_euclidian_distances.py | jeantardelli/data-mining-for-business-analytics | d1102e722290b0bbf9159de9236028f44b95fd93 | [
"MIT"
] | 1 | 2021-06-21T20:12:25.000Z | 2021-06-21T20:12:25.000Z | problems/chapter02_normalization_euclidian_distances.py | jeantardelli/data-mining-for-business-analytics | d1102e722290b0bbf9159de9236028f44b95fd93 | [
"MIT"
] | null | null | null | problems/chapter02_normalization_euclidian_distances.py | jeantardelli/data-mining-for-business-analytics | d1102e722290b0bbf9159de9236028f44b95fd93 | [
"MIT"
] | null | null | null | import pandas as pd
from sklearn.metrics.pairwise import euclidean_distances
df = pd.DataFrame({"age": [25, 56, 65, 32, 41, 49],
"income": [49000, 156000, 99000, 192000, 39000, 57000]})
print(df)
# age income
#0 25 49000
#1 56 156000
#2 65 99000
#3 32 192000
#4 41 39000
#5 49... | 40.197183 | 91 | 0.63665 | 470 | 2,854 | 3.819149 | 0.268085 | 0.074095 | 0.022284 | 0.048468 | 0.023398 | 0.023398 | 0.023398 | 0.023398 | 0.023398 | 0 | 0 | 0.550047 | 0.250876 | 2,854 | 70 | 92 | 40.771429 | 0.289523 | 0.701121 | 0 | 0 | 0 | 0 | 0.205479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
b472ed3ac16fff2ca8e757fa0ee448a8d05223c7 | 1,268 | py | Python | api/user.py | yezz123/DogeAPI | 91e719ad8f252578728ee2a427fd6b733f0cf2a8 | [
"MIT"
] | 93 | 2021-05-13T00:13:19.000Z | 2022-03-30T03:55:09.000Z | api/user.py | yezz123/DogeAPI | 91e719ad8f252578728ee2a427fd6b733f0cf2a8 | [
"MIT"
] | 17 | 2021-05-16T14:49:24.000Z | 2021-10-18T23:29:48.000Z | api/user.py | yezz123/DogeAPI | 91e719ad8f252578728ee2a427fd6b733f0cf2a8 | [
"MIT"
] | 22 | 2021-05-13T08:32:59.000Z | 2022-02-23T13:07:05.000Z | #!/usr/bin/python3
from fastapi import HTTPException, status
from sqlalchemy.orm import Session
from models import models
from schema import schemas
from schema.hash import Hash
def create(request: schemas.User, db: Session):
"""
Create a new user
Args:
request (schemas.User): User data
... | 20.126984 | 87 | 0.625394 | 161 | 1,268 | 4.900621 | 0.354037 | 0.068441 | 0.064639 | 0.091255 | 0.07858 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004338 | 0.272871 | 1,268 | 62 | 88 | 20.451613 | 0.85141 | 0.317035 | 0 | 0.095238 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.095238 | 0.238095 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
b4788a2b9d171fcbca4d7ae58049f22cebe97b83 | 284 | py | Python | trend_app/api/urls.py | nabilhesham/trend_app | 5958b7354484097eef5b0c717f8ff90089111cd0 | [
"MIT"
] | null | null | null | trend_app/api/urls.py | nabilhesham/trend_app | 5958b7354484097eef5b0c717f8ff90089111cd0 | [
"MIT"
] | 4 | 2021-03-30T13:51:18.000Z | 2021-12-13T20:42:38.000Z | trend_app/api/urls.py | nabilhesham/trend_app | 5958b7354484097eef5b0c717f8ff90089111cd0 | [
"MIT"
] | null | null | null | from rest_framework.routers import DefaultRouter
from .views import TrendNameViewSet, TrendViewSet
router = DefaultRouter()
router.register(r'trends', TrendViewSet, basename="trends")
router.register(r'trendnames', TrendNameViewSet, basename="trendnames")
urlpatterns = router.urls
| 31.555556 | 71 | 0.820423 | 30 | 284 | 7.733333 | 0.566667 | 0.12069 | 0.12931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080986 | 284 | 8 | 72 | 35.5 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
b487aea0a902075a97ef5298641fb4fbfe038f4c | 603 | py | Python | src/compas_ghpython/artists/__init__.py | yijiangh/compas | a9e86edf6b602f47ca051fccedcaa88a5e5d3600 | [
"MIT"
] | 1 | 2019-03-27T22:46:29.000Z | 2019-03-27T22:46:29.000Z | src/compas_ghpython/artists/__init__.py | yijiangh/compas | a9e86edf6b602f47ca051fccedcaa88a5e5d3600 | [
"MIT"
] | null | null | null | src/compas_ghpython/artists/__init__.py | yijiangh/compas | a9e86edf6b602f47ca051fccedcaa88a5e5d3600 | [
"MIT"
] | 1 | 2022-01-16T02:32:43.000Z | 2022-01-16T02:32:43.000Z | """
********************************************************************************
compas_ghpython.artists
********************************************************************************
.. currentmodule:: compas_ghpython.artists
Artists for visualising (painting) COMPAS data structures in compas_ghpython.
.. a... | 22.333333 | 80 | 0.547264 | 47 | 603 | 6.744681 | 0.553191 | 0.132492 | 0.132492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124378 | 603 | 26 | 81 | 23.192308 | 0.600379 | 0.671642 | 0 | 0 | 0 | 0 | 0.005291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
81ece115114617d3640e11a3142a676556f063db | 620 | py | Python | bin/last_wrapper/Bio/Parsers/__init__.py | LyonsLab/coge | 1d9a8e84a8572809ee3260ede44290e14de3bdd1 | [
"BSD-2-Clause"
] | 37 | 2015-02-24T18:58:30.000Z | 2021-03-07T21:22:18.000Z | Bio/Parsers/__init__.py | sbassi/biopython | b41975bb8363171add80d19903861f3d8cffe405 | [
"PostgreSQL"
] | 12 | 2016-06-09T21:57:00.000Z | 2020-09-11T18:48:51.000Z | Bio/Parsers/__init__.py | sbassi/biopython | b41975bb8363171add80d19903861f3d8cffe405 | [
"PostgreSQL"
] | 19 | 2016-03-26T08:15:17.000Z | 2021-04-12T05:03:29.000Z | """Third party and other parsers useful internally to Biopython (DEPRECATED).
"""
import warnings
import Bio
warnings.warn("Bio.Parsers (including our copy of SPARK) and the only part "
"of Biopython which used it, Bio.GenBank.LocationParser, are "
"now deprecated and will be removed in a fu... | 51.666667 | 77 | 0.672581 | 80 | 620 | 5.2125 | 0.725 | 0.052758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266129 | 620 | 11 | 78 | 56.363636 | 0.916484 | 0.119355 | 0 | 0 | 0 | 0 | 0.664193 | 0.050093 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c308b82db3cd7ef1cb76a1caa8d1d1ddd78530d9 | 1,636 | py | Python | tests/sources/pscos/0_dummy_python/src/models.py | BSC-computational-genomics/compss | 9cfc9f7b9bdab9dcb0bec083007452cda185f50c | [
"Apache-2.0"
] | null | null | null | tests/sources/pscos/0_dummy_python/src/models.py | BSC-computational-genomics/compss | 9cfc9f7b9bdab9dcb0bec083007452cda185f50c | [
"Apache-2.0"
] | null | null | null | tests/sources/pscos/0_dummy_python/src/models.py | BSC-computational-genomics/compss | 9cfc9f7b9bdab9dcb0bec083007452cda185f50c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
PyCOMPSs Testbench PSCO Models
========================
"""
# Imports
from storage.Object import SCO
from pycompss.api.task import task
from pycompss.api.parameter import INOUT
def updateFile(obj):
if obj.getID() is not None:
import socket
storage_p... | 17.404255 | 69 | 0.579462 | 198 | 1,636 | 4.666667 | 0.409091 | 0.030303 | 0.047619 | 0.069264 | 0.151515 | 0.075758 | 0.075758 | 0.075758 | 0.075758 | 0 | 0 | 0.00256 | 0.283619 | 1,636 | 93 | 70 | 17.591398 | 0.785836 | 0.205379 | 0 | 0.282609 | 0 | 0 | 0.012882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.282609 | false | 0.043478 | 0.108696 | 0.086957 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
c3098e2f77198e4fddbfed1b866a788ef9134b04 | 625 | py | Python | Encoder/Models/Model.py | CORSMAL/Visual | 5dd86a0a6a9960da308341853caba37ada2ffc1a | [
"MIT"
] | null | null | null | Encoder/Models/Model.py | CORSMAL/Visual | 5dd86a0a6a9960da308341853caba37ada2ffc1a | [
"MIT"
] | null | null | null | Encoder/Models/Model.py | CORSMAL/Visual | 5dd86a0a6a9960da308341853caba37ada2ffc1a | [
"MIT"
] | null | null | null | # Abstract class from which torch Neural Network modules should inherit.
import torch
import torch.nn as nn
from abc import ABC, abstractmethod
class Model(nn.Module, ABC):
# Function to load a trained model on the GPU (if available) or on the
# cpu if not available.
# INPUTS:
# - loadFile: pat... | 31.25 | 86 | 0.6736 | 89 | 625 | 4.696629 | 0.539326 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2512 | 625 | 20 | 87 | 31.25 | 0.893162 | 0.4544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
c30a70d24e9700701f33afc8cc2b69569dced4da | 949 | py | Python | CH04_Iterators_and_Generators/4-2-Delegating-Iteration.py | Chang-Liu-TAMU/Python-Cookbook-reading | 7b974c32f77b4b3d7cfeed30d1671081057c566f | [
"MIT"
] | null | null | null | CH04_Iterators_and_Generators/4-2-Delegating-Iteration.py | Chang-Liu-TAMU/Python-Cookbook-reading | 7b974c32f77b4b3d7cfeed30d1671081057c566f | [
"MIT"
] | null | null | null | CH04_Iterators_and_Generators/4-2-Delegating-Iteration.py | Chang-Liu-TAMU/Python-Cookbook-reading | 7b974c32f77b4b3d7cfeed30d1671081057c566f | [
"MIT"
] | null | null | null | # @Time: 2022/4/12 20:24
# @Author: chang liu
# @Email: chang_liu_tamu@gmail.com
# @File:4-2-Delegating-Iteration.py
class Node:
'''
Python’s iterator protocol requires __iter__() to return a special iterator object that
implements a __next__() method to carry out the actual iteration. If all you are doing
is... | 27.114286 | 91 | 0.674394 | 142 | 949 | 4.239437 | 0.605634 | 0.044851 | 0.039867 | 0.053156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02171 | 0.223393 | 949 | 34 | 92 | 27.911765 | 0.795115 | 0.506849 | 0 | 0 | 0 | 0 | 0.039735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.4375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
c30c89af2bb56690c34a45a2580601181e97ecb0 | 445 | py | Python | src/python/fsqio/pants/export/register.py | jglesner/fsqio | 436dd3a7667fd23f638bf96bdcd9ec83266a2319 | [
"Apache-2.0"
] | 252 | 2016-01-08T23:12:13.000Z | 2022-01-17T16:31:49.000Z | src/python/fsqio/pants/export/register.py | jglesner/fsqio | 436dd3a7667fd23f638bf96bdcd9ec83266a2319 | [
"Apache-2.0"
] | 67 | 2016-01-13T17:34:12.000Z | 2021-08-04T18:50:24.000Z | src/python/fsqio/pants/export/register.py | jglesner/fsqio | 436dd3a7667fd23f638bf96bdcd9ec83266a2319 | [
"Apache-2.0"
] | 59 | 2016-03-25T20:49:03.000Z | 2021-08-04T05:36:38.000Z | # coding=utf-8
# Copyright 2016 Foursquare Labs Inc. All Rights Reserved.
from __future__ import absolute_import, division, print_function
from pants.goal.goal import Goal
from pants.goal.task_registrar import TaskRegistrar as task
from fsqio.pants.export.export_filtered import GenStubsAndExport
def register_goals... | 24.722222 | 64 | 0.78427 | 58 | 445 | 5.827586 | 0.62069 | 0.053254 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012887 | 0.12809 | 445 | 17 | 65 | 26.176471 | 0.858247 | 0.155056 | 0 | 0 | 0 | 0 | 0.048257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | true | 0 | 0.4 | 0 | 0.5 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
c313aafc784f6c1dd39fe63b697fe6429e9a1354 | 3,120 | py | Python | Load_Data.py | plutolove/Motor-life-prediction | 2ed95a4d5e2c0ed649a6da2299ba33dee932b569 | [
"MIT"
] | 3 | 2017-07-19T10:37:58.000Z | 2018-03-21T07:09:15.000Z | Load_Data.py | plutolove/Motor-life-prediction | 2ed95a4d5e2c0ed649a6da2299ba33dee932b569 | [
"MIT"
] | 1 | 2019-06-27T10:01:03.000Z | 2019-06-27T10:01:03.000Z | Load_Data.py | plutolove/Motor-life-prediction | 2ed95a4d5e2c0ed649a6da2299ba33dee932b569 | [
"MIT"
] | 2 | 2017-07-19T10:37:59.000Z | 2020-07-08T14:45:16.000Z | import os
import pandas as pd
import numpy as np
from sklearn import preprocessing
from sklearn.utils import shuffle
def load_train(col, path, num_train):
print 'load train data from '+path
dirlist = os.listdir(path)
dirlist.sort()
ret = []
label = []
types = 0
num_files = 0
for i in ra... | 31.836735 | 104 | 0.559615 | 404 | 3,120 | 4.247525 | 0.212871 | 0.04662 | 0.030303 | 0.034965 | 0.678322 | 0.678322 | 0.654429 | 0.575175 | 0.544872 | 0.50641 | 0 | 0.035464 | 0.313141 | 3,120 | 97 | 105 | 32.164948 | 0.765282 | 0.038782 | 0 | 0.74359 | 0 | 0 | 0.021583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064103 | null | null | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c32537bdc6c1bf938dc1afa2414e66870a6b11f5 | 1,413 | py | Python | notes/algo-ds-practice/problems/misc/integer_division_recurrence.py | Anmol-Singh-Jaggi/interview-notes | 65af75e2b5725894fa5e13bb5cd9ecf152a0d652 | [
"MIT"
] | 6 | 2020-07-05T05:15:19.000Z | 2021-01-24T20:17:14.000Z | notes/algo-ds-practice/problems/misc/integer_division_recurrence.py | Anmol-Singh-Jaggi/interview-notes | 65af75e2b5725894fa5e13bb5cd9ecf152a0d652 | [
"MIT"
] | null | null | null | notes/algo-ds-practice/problems/misc/integer_division_recurrence.py | Anmol-Singh-Jaggi/interview-notes | 65af75e2b5725894fa5e13bb5cd9ecf152a0d652 | [
"MIT"
] | 2 | 2020-09-14T06:46:37.000Z | 2021-06-15T09:17:21.000Z | '''
Given a fraction, find recurring sequence of digits if exists, otherwise print “No recurring sequence”.
Examples:
Input : Numerator = 8, Denominator = 3
Output : Recurring sequence is 6
Explanation : 8/3 = 2.66666666.......
Input : Numerator = 50, Denominator = 22
Output : Recurring sequence is 27
Explanation :... | 38.189189 | 146 | 0.762208 | 217 | 1,413 | 4.963134 | 0.488479 | 0.094708 | 0.035283 | 0.046425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041988 | 0.174098 | 1,413 | 36 | 147 | 39.25 | 0.880891 | 0.993631 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c327b5e50afda3f70baf9bbfd4748897b4b04a1e | 5,394 | py | Python | week02/03.MoreTesting/my_sort/tests_my_sort.py | TsvetomirTsvetkov/Python-Course-101 | 1c5ea4631128c22effe3c4ee5a18c43f5e79d463 | [
"MIT"
] | null | null | null | week02/03.MoreTesting/my_sort/tests_my_sort.py | TsvetomirTsvetkov/Python-Course-101 | 1c5ea4631128c22effe3c4ee5a18c43f5e79d463 | [
"MIT"
] | null | null | null | week02/03.MoreTesting/my_sort/tests_my_sort.py | TsvetomirTsvetkov/Python-Course-101 | 1c5ea4631128c22effe3c4ee5a18c43f5e79d463 | [
"MIT"
] | null | null | null | # tests_my_sort.py
import unittest
from my_sort import (
my_sort,
validate_iterable,
validate_key,
validate_ascending
)
class TestValidateIterable(unittest.TestCase):
def test_iterable_validation_passes_with_list(self):
iterable = [2, 3, 5, 1, 7, 4]
validate_iterable(iterable)
def test_iterable_validatio... | 28.389474 | 94 | 0.728958 | 761 | 5,394 | 4.843627 | 0.123522 | 0.037982 | 0.017092 | 0.0586 | 0.737113 | 0.71975 | 0.693977 | 0.642431 | 0.642431 | 0.550733 | 0 | 0.022866 | 0.148684 | 5,394 | 190 | 95 | 28.389474 | 0.779834 | 0.002966 | 0 | 0.544776 | 0 | 0 | 0.075693 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 1 | 0.149254 | false | 0.089552 | 0.014925 | 0 | 0.19403 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c32cbeec82a9988288cfc943bb16426386a8eabc | 3,050 | py | Python | django_gramm/views/auth_views.py | Fan4ik20/DjangoGramm | ee23eea88633dc4bb96e3fe760982ebdc130f323 | [
"MIT"
] | null | null | null | django_gramm/views/auth_views.py | Fan4ik20/DjangoGramm | ee23eea88633dc4bb96e3fe760982ebdc130f323 | [
"MIT"
] | null | null | null | django_gramm/views/auth_views.py | Fan4ik20/DjangoGramm | ee23eea88633dc4bb96e3fe760982ebdc130f323 | [
"MIT"
] | null | null | null | from django.contrib import messages
from django.contrib.auth import views as auth_views
from django.urls import reverse_lazy
import allauth.account.views as account_views
from allauth.socialaccount.views import SignupView as SignUpOauth
from django_gramm.forms import (
PasswordEditForm, UserPasswordResetForm,
... | 30.808081 | 77 | 0.782623 | 333 | 3,050 | 6.87988 | 0.258258 | 0.091227 | 0.086425 | 0.110432 | 0.327804 | 0.292885 | 0.248363 | 0.096901 | 0.057617 | 0.057617 | 0 | 0 | 0.137705 | 3,050 | 98 | 78 | 31.122449 | 0.871103 | 0 | 0 | 0.103448 | 0 | 0 | 0.233443 | 0.198361 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086207 | false | 0.344828 | 0.12069 | 0.017241 | 0.793103 | 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 | 1 | 0 | 0 | 2 |
c337b4e75980c3d8397fd3a1cf00c7d27cc00c11 | 505 | py | Python | app/views.py | Josephchinedu/mail-extractor | d46f1394e766c1a0e5f53c7058f70c56af59014a | [
"MIT"
] | 1 | 2021-07-16T08:14:25.000Z | 2021-07-16T08:14:25.000Z | app/views.py | Josephchinedu/mail-extractor | d46f1394e766c1a0e5f53c7058f70c56af59014a | [
"MIT"
] | 10 | 2021-07-14T10:46:23.000Z | 2021-07-16T08:11:09.000Z | app/views.py | Josephchinedu/mail-extractor | d46f1394e766c1a0e5f53c7058f70c56af59014a | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import JsonResponse
from .forms import *
from .scripts import *
# Create your views here.
def homepageview(request):
form = EmailForm()
return render(request, "index.html", {"form": form})
def email_extractor_view(request):
if request.method == "POST"... | 26.578947 | 61 | 0.685149 | 61 | 505 | 5.590164 | 0.606557 | 0.087977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20198 | 505 | 18 | 62 | 28.055556 | 0.846154 | 0.045545 | 0 | 0 | 0 | 0 | 0.070833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.615385 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
c345bb59f25832c689b983028876aa7b0576f883 | 1,189 | py | Python | test/counters/test_LogCounters.py | pip-services-archive/pip-services-runtime-python | 70eca1ffc44bfdc45c9c65b0ee347fa578368849 | [
"MIT"
] | null | null | null | test/counters/test_LogCounters.py | pip-services-archive/pip-services-runtime-python | 70eca1ffc44bfdc45c9c65b0ee347fa578368849 | [
"MIT"
] | null | null | null | test/counters/test_LogCounters.py | pip-services-archive/pip-services-runtime-python | 70eca1ffc44bfdc45c9c65b0ee347fa578368849 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
tests.logs.test_LogCounters
~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) Digital Living Software Corp. 2015-2016, see AUTHORS for more details.
:license: MIT, see LICENSE for more details.
"""
import pytest
from pip_services_runtime import ComponentSet
from pip_services... | 28.309524 | 90 | 0.716569 | 133 | 1,189 | 6.225564 | 0.413534 | 0.086957 | 0.09058 | 0.13285 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00924 | 0.180824 | 1,189 | 41 | 91 | 29 | 0.840862 | 0.17746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.304348 | 0 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
c3505cd717458bec05738896dd2157f0024be999 | 1,483 | py | Python | lib/python2.7/site-packages/setools/exception.py | TinkerEdgeR-Android/prebuilts_python_linux-x86_2.7.5 | 5bcc5eb23dbb00d5e5dbf75835aa2fb79e8bafa2 | [
"PSF-2.0"
] | null | null | null | lib/python2.7/site-packages/setools/exception.py | TinkerEdgeR-Android/prebuilts_python_linux-x86_2.7.5 | 5bcc5eb23dbb00d5e5dbf75835aa2fb79e8bafa2 | [
"PSF-2.0"
] | null | null | null | lib/python2.7/site-packages/setools/exception.py | TinkerEdgeR-Android/prebuilts_python_linux-x86_2.7.5 | 5bcc5eb23dbb00d5e5dbf75835aa2fb79e8bafa2 | [
"PSF-2.0"
] | 1 | 2020-05-14T05:25:00.000Z | 2020-05-14T05:25:00.000Z | # Copyright 2015, Tresys Technology, LLC
#
# This file is part of SETools.
#
# SETools is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 2.1 of
# the License, or (at your option) any later ... | 23.539683 | 72 | 0.743763 | 189 | 1,483 | 5.835979 | 0.539683 | 0.032638 | 0.1233 | 0.051677 | 0.090662 | 0.090662 | 0.06165 | 0 | 0 | 0 | 0 | 0.004951 | 0.182738 | 1,483 | 62 | 73 | 23.919355 | 0.905116 | 0.689818 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 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 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c3545633df64596f68c896b1b7944da9188ce6b7 | 69 | py | Python | AtC_Beg_Con_061-070/ABC070/A.py | yosho-18/AtCoder | 50f6d5c92a01792552c31ac912ce1cd557b06fb0 | [
"MIT"
] | null | null | null | AtC_Beg_Con_061-070/ABC070/A.py | yosho-18/AtCoder | 50f6d5c92a01792552c31ac912ce1cd557b06fb0 | [
"MIT"
] | null | null | null | AtC_Beg_Con_061-070/ABC070/A.py | yosho-18/AtCoder | 50f6d5c92a01792552c31ac912ce1cd557b06fb0 | [
"MIT"
] | null | null | null | n = input()
if n[0] == n[2]:
print("Yes")
else:
print("No")
| 9.857143 | 16 | 0.449275 | 12 | 69 | 2.583333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.275362 | 69 | 6 | 17 | 11.5 | 0.58 | 0 | 0 | 0 | 0 | 0 | 0.073529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c35c27731c7debc6905889a98fb37a7b22a4b4c2 | 783 | py | Python | Q848_Shifting-Letters.py | xiaosean/leetcode_python | 844ece02d699bfc620519bd94828ed0e18597f3e | [
"MIT"
] | null | null | null | Q848_Shifting-Letters.py | xiaosean/leetcode_python | 844ece02d699bfc620519bd94828ed0e18597f3e | [
"MIT"
] | null | null | null | Q848_Shifting-Letters.py | xiaosean/leetcode_python | 844ece02d699bfc620519bd94828ed0e18597f3e | [
"MIT"
] | null | null | null | class Solution:
def shiftingLetters(self, S: str, shifts: List[int]) -> str:
n = len(S)
shift_n = len(shifts)
asc_s = [ord(letter) for letter in S]
zero_begin_asc_s = [asc_-97 for asc_ in asc_s]
zero_begin_asc_s = zero_begin_asc_s[:shift_n]
reverse_shift_asc_s = zero_... | 43.5 | 74 | 0.60281 | 121 | 783 | 3.528926 | 0.280992 | 0.12178 | 0.210773 | 0.224824 | 0.330211 | 0.11007 | 0 | 0 | 0 | 0 | 0 | 0.023173 | 0.283525 | 783 | 18 | 75 | 43.5 | 0.737968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
c3632626a53cd059d3ee37ac05cc681fbb7f73bf | 2,243 | py | Python | src/vm.py | OkiStuff/twl | c619be404ef39f57f111e27207292f3d106e45d7 | [
"MIT"
] | 1 | 2021-11-25T14:11:04.000Z | 2021-11-25T14:11:04.000Z | src/vm.py | OkiStuff/twl | c619be404ef39f57f111e27207292f3d106e45d7 | [
"MIT"
] | null | null | null | src/vm.py | OkiStuff/twl | c619be404ef39f57f111e27207292f3d106e45d7 | [
"MIT"
] | null | null | null |
from utils import Utils
class VM:
def __init__(self, bytes) -> None:
self.pc = 0 # For debugging purposes
self.vsi = 0 # Index on Virtual Stack
self.stack = [0]
self.register = 0
self.bytecode = bytes
def run(self) -> None:
bytecode... | 32.042857 | 101 | 0.441373 | 255 | 2,243 | 3.854902 | 0.278431 | 0.185148 | 0.290946 | 0.358087 | 0.35707 | 0.243133 | 0.243133 | 0.192269 | 0.192269 | 0.125127 | 0 | 0.033778 | 0.432457 | 2,243 | 70 | 102 | 32.042857 | 0.738413 | 0.046812 | 0 | 0 | 0 | 0 | 0.028641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.022727 | 0 | 0.090909 | 0.045455 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
c3633c45be2d12e3f094c52f5973d145f9c7157a | 4,679 | py | Python | setup.py | reneshbedre/RseqFilt | 27f19911edaac4fce6d1059ec78082aacca16913 | [
"MIT"
] | 5 | 2020-05-06T03:40:20.000Z | 2021-02-02T10:23:00.000Z | setup.py | reneshbedre/RseqFilt | 27f19911edaac4fce6d1059ec78082aacca16913 | [
"MIT"
] | 1 | 2021-05-13T03:06:14.000Z | 2021-07-16T18:40:27.000Z | setup.py | reneshbedre/RseqFilt | 27f19911edaac4fce6d1059ec78082aacca16913 | [
"MIT"
] | 2 | 2020-04-29T19:56:38.000Z | 2020-08-10T14:33:33.000Z | #!/usr/bin/python
'''
HTSeqQC is an automated quality control analysis tool for a single and
paired-end high-throughput sequencing data (HTS) generated from Illumina
sequencing platforms.'''
import sys
from setuptools import Extension, setup
print("\nChecking for prerequisite...\n")
if sys.version_info[0] < 2 or sy... | 29.062112 | 115 | 0.681983 | 595 | 4,679 | 5.352941 | 0.235294 | 0.045212 | 0.07033 | 0.045212 | 0.463108 | 0.453689 | 0.303611 | 0.22606 | 0 | 0 | 0 | 0.010114 | 0.197051 | 4,679 | 160 | 116 | 29.24375 | 0.837636 | 0.045309 | 0 | 0.371901 | 1 | 0 | 0.511048 | 0.037612 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.247934 | 0 | 0.247934 | 0.132231 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c3797aff72672bcb5854aae58f59735b71049a78 | 531 | py | Python | tests/src/praxxis/scene/test_change_scene.py | blimongi/praxxis | 4c2496c89d1d26d01b91896496342ca60f3d15ae | [
"MIT"
] | 9 | 2019-07-31T23:50:16.000Z | 2021-08-21T00:43:44.000Z | tests/src/praxxis/scene/test_change_scene.py | blimongi/praxxis | 4c2496c89d1d26d01b91896496342ca60f3d15ae | [
"MIT"
] | 22 | 2019-08-01T00:37:53.000Z | 2020-03-31T05:01:57.000Z | tests/src/praxxis/scene/test_change_scene.py | blimongi/praxxis | 4c2496c89d1d26d01b91896496342ca60f3d15ae | [
"MIT"
] | 7 | 2020-01-03T02:28:36.000Z | 2021-05-13T20:59:19.000Z | """
Tests the change scene functionality
"""
def test_change_scene(setup, create_many_scenes, init_root, scene_root, history_db, default_scene_name):
import argparse
from src.praxxis.scene import current_scene
from src.praxxis.scene import change_scene
from src.praxxis.scene import list_scene
scen... | 33.1875 | 104 | 0.775895 | 74 | 531 | 5.243243 | 0.351351 | 0.141753 | 0.123711 | 0.139175 | 0.219072 | 0.154639 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158192 | 531 | 15 | 105 | 35.4 | 0.868009 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
c379b42db749ec356463f4c352195c2fa092ab10 | 12,386 | py | Python | dissertation/field_test_text.py | SuperShinyEyes/Score-Tool | 907dd9e695c9950c6f168480e591a239cdf6a826 | [
"MIT"
] | 2 | 2020-09-25T20:35:58.000Z | 2020-10-10T17:24:15.000Z | dissertation/field_test_text.py | SuperShinyEyes/Score-Tool | 907dd9e695c9950c6f168480e591a239cdf6a826 | [
"MIT"
] | 1 | 2020-10-10T17:57:02.000Z | 2020-10-28T15:13:49.000Z | dissertation/field_test_text.py | SuperShinyEyes/Score-Tool | 907dd9e695c9950c6f168480e591a239cdf6a826 | [
"MIT"
] | 1 | 2020-09-25T20:36:06.000Z | 2020-09-25T20:36:06.000Z | import dash_core_components as dcc
import base64
import dash_html_components as html
def imageload(img_path):
img_l = img_path
img_l = base64.b64encode(open(img_l, 'rb').read())
return img_l
im1 = imageload('./dissertation/image1.png')
im2 = imageload('./dissertation/image2.png')
im3 = imageload('./dissert... | 48.382813 | 99 | 0.759487 | 1,905 | 12,386 | 4.931759 | 0.335433 | 0.014902 | 0.018201 | 0.013411 | 0.146674 | 0.137946 | 0.137946 | 0.112081 | 0.105056 | 0.100479 | 0 | 0.011386 | 0.163249 | 12,386 | 256 | 100 | 48.382813 | 0.895118 | 0 | 0 | 0.116592 | 0 | 0 | 0.866634 | 0.038427 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008969 | false | 0.080717 | 0.013453 | 0.004484 | 0.03139 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c37de34e04cf2d72ecdf0991a88b422e570f9894 | 2,864 | py | Python | vmaxafdockerplugin/volume_ops.py | okpoyu/docker-volume-vmax | 7fe83eb0622116b86438996055c986291a883976 | [
"Apache-2.0"
] | 3 | 2019-02-03T09:07:42.000Z | 2019-07-30T14:20:24.000Z | vmaxafdockerplugin/volume_ops.py | okpoyu/docker-volume-vmax | 7fe83eb0622116b86438996055c986291a883976 | [
"Apache-2.0"
] | null | null | null | vmaxafdockerplugin/volume_ops.py | okpoyu/docker-volume-vmax | 7fe83eb0622116b86438996055c986291a883976 | [
"Apache-2.0"
] | null | null | null | import os
import json
class VolumeMetaData(object):
"""
Object which manages a volumes data structure like below.
{
'docker_vol_001': {
'name': 'docker_vol_001',
'id': '...',
'formatted': True,
'exported': {'host1': ....},
'mounted': {'host1': 'mount_path1',
... | 31.130435 | 78 | 0.592877 | 368 | 2,864 | 4.407609 | 0.252717 | 0.064118 | 0.059186 | 0.049322 | 0.421085 | 0.366215 | 0.313194 | 0.210851 | 0.210851 | 0.210851 | 0 | 0.007809 | 0.284567 | 2,864 | 91 | 79 | 31.472527 | 0.783797 | 0.221369 | 0 | 0.245283 | 0 | 0 | 0.050235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207547 | false | 0 | 0.037736 | 0.018868 | 0.509434 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5ee1339a41668c750589ec9880d5d8b9c0dfafa3 | 497 | py | Python | test/arflags/gyptest-arflags.py | lancy/gyp | 0bb67471bca068996e15b56738fa4824dfa19de0 | [
"BSD-3-Clause"
] | 20 | 2015-08-26T06:46:00.000Z | 2019-02-27T09:05:58.000Z | core/deps/gyp/test/arflags/gyptest-arflags.py | K-Constantine/Amaraki | e8736e4754af62a8510c3a5db8a72df48f7681a7 | [
"MIT"
] | null | null | null | core/deps/gyp/test/arflags/gyptest-arflags.py | K-Constantine/Amaraki | e8736e4754af62a8510c3a5db8a72df48f7681a7 | [
"MIT"
] | 2 | 2015-08-26T05:49:35.000Z | 2020-02-03T20:22:43.000Z | #!/usr/bin/env python
# Copyright (c) 2014 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verifies that building a target with invalid arflags fails.
"""
import os
import sys
import TestGyp
test = TestGyp.TestGyp(formats=['n... | 24.85 | 72 | 0.736419 | 80 | 497 | 4.525 | 0.7375 | 0.038674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018779 | 0.142857 | 497 | 19 | 73 | 26.157895 | 0.830986 | 0.462777 | 0 | 0 | 0 | 0 | 0.136719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
5eefed4d9ecb2456b4921f2b6c71290afed8618c | 3,463 | py | Python | wonderBits/control.py | daejong123/pySocket | 981ecf22f4b6c4fc8a93f0d430699ba7a571f352 | [
"MIT"
] | 1 | 2019-04-22T06:04:20.000Z | 2019-04-22T06:04:20.000Z | wonderBits/control.py | daejong123/pySocket | 981ecf22f4b6c4fc8a93f0d430699ba7a571f352 | [
"MIT"
] | null | null | null | wonderBits/control.py | daejong123/pySocket | 981ecf22f4b6c4fc8a93f0d430699ba7a571f352 | [
"MIT"
] | null | null | null | from .wbits import Wonderbits
class Control(Wonderbits):
def __init__(self, index=1):
Wonderbits.__init__(self)
self.index = index
self.event = Control._Event(self)
class _Event():
def __init__(self, this):
self.this = this
def sw1_pressed(self):
... | 33.298077 | 88 | 0.613052 | 391 | 3,463 | 5.132992 | 0.13555 | 0.085202 | 0.127055 | 0.129547 | 0.538615 | 0.503737 | 0.503737 | 0.503737 | 0.503737 | 0.414051 | 0 | 0.023202 | 0.253249 | 3,463 | 104 | 89 | 33.298077 | 0.7529 | 0.089807 | 0 | 0.314286 | 0 | 0 | 0.115583 | 0.068255 | 0 | 0 | 0 | 0 | 0 | 1 | 0.328571 | false | 0 | 0.014286 | 0 | 0.514286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5ef521dca435ed1c0980df1d29b5d1a0222f9c9c | 552 | py | Python | data/train/python/5ef521dca435ed1c0980df1d29b5d1a0222f9c9cdata_monitor.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/5ef521dca435ed1c0980df1d29b5d1a0222f9c9cdata_monitor.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/5ef521dca435ed1c0980df1d29b5d1a0222f9c9cdata_monitor.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | # -*- coding: utf-8 -*-
from mosys.custom_model import AppPage,GridModel
class A_ServerManage(AppPage):
verbose_name=u'服务监视'
menu_grup = 'att_monitor'
icon_class = "menu_monitor"
template = 'server_manage.html'
pass
class RedisQuery(AppPage):
verbose_name=u'Redis所有数据'
menu_grup = 'att_moni... | 24 | 48 | 0.693841 | 71 | 552 | 5.112676 | 0.478873 | 0.115702 | 0.14876 | 0.157025 | 0.256198 | 0.256198 | 0.256198 | 0 | 0 | 0 | 0 | 0.002262 | 0.199275 | 552 | 23 | 49 | 24 | 0.819005 | 0.038043 | 0 | 0.315789 | 0 | 0 | 0.24717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.157895 | 0.052632 | 0 | 0.842105 | 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 | 1 | 0 | 0 | 2 |
5ef7c973537319e80d2f7713a02e10556d552b4f | 6,076 | py | Python | ondewo_bpi/autocoded/entity_type_grpc_autocode.py | davidnich/ondewo-bpi | c236b95645196fe487d0fc7d2a9c0aa3c7dd7f61 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | ondewo_bpi/autocoded/entity_type_grpc_autocode.py | davidnich/ondewo-bpi | c236b95645196fe487d0fc7d2a9c0aa3c7dd7f61 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-10-01T14:41:35.000Z | 2021-10-05T15:16:24.000Z | ondewo_bpi/autocoded/entity_type_grpc_autocode.py | ondewo/ondewo-bpi | 79e2d75a5805154a9e9f671f4ad41abaa6dfe9b9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright 2021 ONDEWO GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 39.973684 | 153 | 0.717742 | 682 | 6,076 | 6.284457 | 0.274194 | 0.058329 | 0.04853 | 0.048997 | 0.510266 | 0.427205 | 0.392907 | 0.264816 | 0.20602 | 0.116426 | 0 | 0.005549 | 0.199144 | 6,076 | 151 | 154 | 40.238411 | 0.875257 | 0.303983 | 0 | 0.185185 | 0 | 0 | 0.118979 | 0.028899 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203704 | false | 0.018519 | 0.148148 | 0 | 0.574074 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5ef87dcdf3bfe71cc6a477e8b2aa5abf72c7b38e | 14,150 | py | Python | pyatv/mrp/protobuf/TextInputTraitsMessage_pb2.py | acheronfail/pyatv | 9cb96ffcc49938c4b43c92b7b40ddcecae37e732 | [
"MIT"
] | null | null | null | pyatv/mrp/protobuf/TextInputTraitsMessage_pb2.py | acheronfail/pyatv | 9cb96ffcc49938c4b43c92b7b40ddcecae37e732 | [
"MIT"
] | null | null | null | pyatv/mrp/protobuf/TextInputTraitsMessage_pb2.py | acheronfail/pyatv | 9cb96ffcc49938c4b43c92b7b40ddcecae37e732 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pyatv/mrp/protobuf/TextInputTraitsMessage.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection ... | 43.80805 | 1,623 | 0.759364 | 1,674 | 14,150 | 6.099761 | 0.131422 | 0.074038 | 0.139555 | 0.111057 | 0.609245 | 0.596612 | 0.558222 | 0.554304 | 0.549995 | 0.549995 | 0 | 0.042947 | 0.132792 | 14,150 | 322 | 1,624 | 43.944099 | 0.789178 | 0.020777 | 0 | 0.645485 | 1 | 0.006689 | 0.102853 | 0.070928 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013378 | 0 | 0.013378 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5eff5715690883a3e6576b509ad84df94c338108 | 1,705 | py | Python | ctreport_selenium/ctreport_html/scripts/search.py | naveens33/ctreport-selenium | 9553b5c4b8deb52e46cf0fb3e1ea7092028cf090 | [
"MIT"
] | 2 | 2020-08-30T13:12:52.000Z | 2020-09-03T05:38:28.000Z | ctreport_selenium/ctreport_html/scripts/search.py | naveens33/ctreport-selenium | 9553b5c4b8deb52e46cf0fb3e1ea7092028cf090 | [
"MIT"
] | 5 | 2020-01-10T07:01:24.000Z | 2020-06-25T10:49:43.000Z | ctreport_selenium/ctreport_html/scripts/search.py | naveens33/ctreport-selenium | 9553b5c4b8deb52e46cf0fb3e1ea7092028cf090 | [
"MIT"
] | 1 | 2020-10-13T02:27:04.000Z | 2020-10-13T02:27:04.000Z | content = '''
<script>
function myFunction() {
var input, search_term,tbody,tr,span,test_id,test_name;
var div1,div2,li1,span1,test_id1,test_name1;
input = document.getElementById("myInput");
search_term = input.value.toUpperCase();
//console.log("search_term: "+search_te... | 36.276596 | 69 | 0.4739 | 171 | 1,705 | 4.625731 | 0.309942 | 0.101138 | 0.121365 | 0.141593 | 0.209861 | 0.176991 | 0.176991 | 0.176991 | 0.176991 | 0.176991 | 0 | 0.027027 | 0.370674 | 1,705 | 46 | 70 | 37.065217 | 0.710158 | 0 | 0 | 0.173913 | 0 | 0 | 0.990029 | 0.440469 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6f026911b9ead4cdbd31d5c2e65ecfc5ec9f8d88 | 1,218 | py | Python | lab_1/lexer_items/whitespace.py | anh-honcharuk/Metaprogramming | f49f885c1d89fbf0e4edf5fa9c9b00327f3a7ba0 | [
"Apache-2.0"
] | 1 | 2020-10-27T19:07:42.000Z | 2020-10-27T19:07:42.000Z | lab_1/lexer_items/whitespace.py | anh-honcharuk/Metaprogramming | f49f885c1d89fbf0e4edf5fa9c9b00327f3a7ba0 | [
"Apache-2.0"
] | null | null | null | lab_1/lexer_items/whitespace.py | anh-honcharuk/Metaprogramming | f49f885c1d89fbf0e4edf5fa9c9b00327f3a7ba0 | [
"Apache-2.0"
] | null | null | null | from lexer_items.automat_match import AutomatMatch
from lexer_items.token_ import MyToken
from lexer_items.type_token import TypeToken
class Whitespace (AutomatMatch):
def match(self, text, position):
cur_position = position
state = 0
result = None
while cur_position < len(text):
... | 34.8 | 119 | 0.578818 | 136 | 1,218 | 5 | 0.279412 | 0.194118 | 0.279412 | 0.169118 | 0.597059 | 0.513235 | 0.433824 | 0.405882 | 0.244118 | 0.244118 | 0 | 0.010038 | 0.345649 | 1,218 | 34 | 120 | 35.823529 | 0.843162 | 0 | 0 | 0.148148 | 0 | 0 | 0.011504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.111111 | 0 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
6f029d2aff03abe96b638731bbe9a69b990821be | 1,736 | py | Python | CombineModel/lstmAndHanModel.py | amber1121/Stock_Prediction_LSTM | 4aad18f6bf24c1f5d2e7805ac4fefc0c1d385e66 | [
"MIT"
] | 1 | 2020-04-19T21:40:53.000Z | 2020-04-19T21:40:53.000Z | CombineModel/lstmAndHanModel.py | amber1121/Stock_Prediction_LSTM | 4aad18f6bf24c1f5d2e7805ac4fefc0c1d385e66 | [
"MIT"
] | null | null | null | CombineModel/lstmAndHanModel.py | amber1121/Stock_Prediction_LSTM | 4aad18f6bf24c1f5d2e7805ac4fefc0c1d385e66 | [
"MIT"
] | 2 | 2020-04-14T20:02:49.000Z | 2021-01-02T08:09:46.000Z | from hanModel import HANModel
from lstmModel import LSTMModel
from kerasPlot import KerasPlot
from keras.layers import concatenate
from keras.layers.core import Dense, Dropout
from keras.models import Model
from keras.utils import plot_model
from keras.layers import Activation
import numpy as np
from keras.optimizers i... | 38.577778 | 105 | 0.682604 | 238 | 1,736 | 4.806723 | 0.298319 | 0.078671 | 0.048951 | 0.045455 | 0.173077 | 0.173077 | 0.173077 | 0.106643 | 0.106643 | 0.057692 | 0 | 0.015521 | 0.220622 | 1,736 | 45 | 106 | 38.577778 | 0.830007 | 0.081221 | 0 | 0 | 0 | 0 | 0.029523 | 0.015075 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0 | 0.378378 | 0.027027 | 0.621622 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6f0cdfb2a81896dbe58384ad2654ffc3d3b2afd4 | 566 | py | Python | code/recommender-system/recommender/model/Movie.py | rasmunk/set11521cw2 | 602332583921c700ffeee28cef421d55268ca218 | [
"MIT"
] | null | null | null | code/recommender-system/recommender/model/Movie.py | rasmunk/set11521cw2 | 602332583921c700ffeee28cef421d55268ca218 | [
"MIT"
] | null | null | null | code/recommender-system/recommender/model/Movie.py | rasmunk/set11521cw2 | 602332583921c700ffeee28cef421d55268ca218 | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Integer, Text, ForeignKey
from sqlalchemy.orm import relationship
from .MovieGenres import association_table
from .Base import Base
class Movie(Base):
__tablename__ = 'movies'
id = Column(Integer, primary_key=True)
movieId = Column(Integer)
title = Column(Text)
genr... | 33.294118 | 92 | 0.715548 | 59 | 566 | 6.745763 | 0.610169 | 0.09799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187279 | 566 | 16 | 93 | 35.375 | 0.865217 | 0 | 0 | 0 | 0 | 0 | 0.121908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.923077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6f1a9155ec494b9083ec374a1d264b2c27728a08 | 2,385 | py | Python | prototype/sci_data/stream_parser.py | ooici/pyon | 122c629290d27f32f2f41dafd5c12469295e8acf | [
"BSD-2-Clause"
] | 2 | 2015-06-09T16:07:09.000Z | 2015-07-28T10:06:31.000Z | prototype/sci_data/stream_parser.py | ooici/pyon | 122c629290d27f32f2f41dafd5c12469295e8acf | [
"BSD-2-Clause"
] | 3 | 2020-07-22T15:14:55.000Z | 2021-12-13T19:35:06.000Z | prototype/sci_data/stream_parser.py | ooici/pyon | 122c629290d27f32f2f41dafd5c12469295e8acf | [
"BSD-2-Clause"
] | null | null | null | '''
@package prototype.hdf.stream_parser
@file prototype/hdf/stream_parser.py
@author Tim Giguere
@author David Stuebe
@brief This stream_parser class is only used when re-building the internal science object model from an external form.
These are helper classes that contain implicit knowledge of what the user intends... | 32.22973 | 123 | 0.728721 | 315 | 2,385 | 5.269841 | 0.406349 | 0.048193 | 0.043373 | 0.045181 | 0.137952 | 0.05241 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212159 | 2,385 | 73 | 124 | 32.671233 | 0.883449 | 0.046541 | 0 | 0.068966 | 0 | 0 | 0.043175 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 0 | null | null | 0 | 0.137931 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6f2c66d189bfff55351492569b8bb5813f38c132 | 2,441 | py | Python | WEEKS/wk20/CGA_SPRINT/streetLights.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/wk20/CGA_SPRINT/streetLights.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/wk20/CGA_SPRINT/streetLights.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | # You're walking down a long straight road at night, illuminated by street lights, and you're wondering how many of the lights are actually required to light up the whole street.
#
# Let's represent the street as a number line, going from 0 to n (inclusive). Each street light has a different location (represented as an... | 40.683333 | 264 | 0.699304 | 428 | 2,441 | 4.007009 | 0.32243 | 0.037318 | 0.057143 | 0.034985 | 0.265889 | 0.253644 | 0.239067 | 0.169096 | 0.146939 | 0.069971 | 0 | 0.040081 | 0.192544 | 2,441 | 59 | 265 | 41.372881 | 0.825977 | 0.940188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6f3d1b9b9448e8a42060485183f12ebb16ac8a91 | 974 | py | Python | Ejercicios metodos de colecciones/cadenas.py | jaramosperez/Pythonizando | 3571a6451b383ed5fea35f84e3444fd946c6560d | [
"MIT"
] | 1 | 2020-07-13T04:34:34.000Z | 2020-07-13T04:34:34.000Z | Ejercicios metodos de colecciones/cadenas.py | jaramosperez/Pythonizando | 3571a6451b383ed5fea35f84e3444fd946c6560d | [
"MIT"
] | null | null | null | Ejercicios metodos de colecciones/cadenas.py | jaramosperez/Pythonizando | 3571a6451b383ed5fea35f84e3444fd946c6560d | [
"MIT"
] | null | null | null | print('Hola Mundo'.upper()) # Mayusculas
print('Hola Mundo'.lower()) # Minusculas
print('hola mundo'.capitalize()) # Primer caracter de la cadena en mayuscula
print('hola mundo'.title())# Mayusculas en el primer caracter de cada palabra
print('hola mundo'.count('mundo'))
print('hola mundo'.find('mundo')) # Encontrar e... | 44.272727 | 120 | 0.693018 | 134 | 974 | 5.037313 | 0.380597 | 0.186667 | 0.228148 | 0.062222 | 0.10963 | 0.10963 | 0.10963 | 0 | 0 | 0 | 0 | 0.011561 | 0.11191 | 974 | 22 | 121 | 44.272727 | 0.768786 | 0.23614 | 0 | 0 | 0 | 0 | 0.421409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.909091 | 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 | 1 | 0 | 2 |
6f401000296d6a142b7fe3c054528883d2b25e73 | 295 | py | Python | proj/st1_host.py | lthurlow/Network-Grapher | e1b19ec1c2a5b65e6fe6617e761d4908c76ca10c | [
"MIT"
] | null | null | null | proj/st1_host.py | lthurlow/Network-Grapher | e1b19ec1c2a5b65e6fe6617e761d4908c76ca10c | [
"MIT"
] | null | null | null | proj/st1_host.py | lthurlow/Network-Grapher | e1b19ec1c2a5b65e6fe6617e761d4908c76ca10c | [
"MIT"
] | null | null | null | #!/usr/bin/python
import os,sys,time
ipaddr = "128.114."
x = 0
y = 0
for i in xrange(255,0,-1):
for j in xrange(255,1,-1):
print "scanning: " + ipaddr + str(x) + "." + str(y)
Z = "host " + ipaddr + str(x) + "." + str(y) + " >> hosts.txt"
os.system(Z)
y += 1
x+= 1
y = 1
| 17.352941 | 66 | 0.494915 | 53 | 295 | 2.754717 | 0.528302 | 0.109589 | 0.150685 | 0.178082 | 0.191781 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098131 | 0.274576 | 295 | 16 | 67 | 18.4375 | 0.584112 | 0.054237 | 0 | 0 | 0 | 0 | 0.136691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6f429313e567af694e93415db93a0a29c99aa8a4 | 3,719 | py | Python | apps/user/models.py | Zomba4okk/DjangoOnlinerLikeShop | 6f2bc8ca8072c6b3c69a79c33e448aa6c5be0f81 | [
"MIT"
] | null | null | null | apps/user/models.py | Zomba4okk/DjangoOnlinerLikeShop | 6f2bc8ca8072c6b3c69a79c33e448aa6c5be0f81 | [
"MIT"
] | 7 | 2021-02-20T13:17:16.000Z | 2021-04-17T18:43:25.000Z | apps/user/models.py | Zomba4okk/DjangoOnlinerLikeShop | 6f2bc8ca8072c6b3c69a79c33e448aa6c5be0f81 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import (
AbstractBaseUser,
BaseUserManager,
)
from django.db import models
from django.utils import timezone
from rest_framework.authtoken.models import Token
from apps.shop.models import (
Cart,
)
ACCOUNT_TYPE_STANDARD = 'standard'
ACCOUNT_TYPE_MODERATOR = 'moderator'
AC... | 30.483607 | 73 | 0.661199 | 442 | 3,719 | 5.334842 | 0.289593 | 0.088634 | 0.044105 | 0.057676 | 0.273961 | 0.237489 | 0.237489 | 0.206955 | 0.164546 | 0.103053 | 0 | 0.008374 | 0.229363 | 3,719 | 121 | 74 | 30.735537 | 0.814375 | 0.004302 | 0 | 0.05618 | 0 | 0 | 0.053664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101124 | false | 0.067416 | 0.05618 | 0.05618 | 0.539326 | 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 | 1 | 0 | 0 | 2 |
6f49e01857156146f87c2c5cdcb13340b8930ba2 | 2,977 | py | Python | magneticalc/Validatable.py | CSChisholm/MagnetiCalc | 19b6897677c334de18ba2ea82395f941c77a2849 | [
"0BSD"
] | null | null | null | magneticalc/Validatable.py | CSChisholm/MagnetiCalc | 19b6897677c334de18ba2ea82395f941c77a2849 | [
"0BSD"
] | null | null | null | magneticalc/Validatable.py | CSChisholm/MagnetiCalc | 19b6897677c334de18ba2ea82395f941c77a2849 | [
"0BSD"
] | null | null | null | """ Validatable module. """
# ISC License
#
# Copyright (c) 2020–2022, Paul Wilhelm, M. Sc. <anfrage@paulwilhelm.de>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice a... | 31.670213 | 118 | 0.668122 | 365 | 2,977 | 5.421918 | 0.364384 | 0.042446 | 0.045478 | 0.031834 | 0.384032 | 0.323396 | 0.29813 | 0.29813 | 0.260738 | 0.202628 | 0 | 0.003591 | 0.251596 | 2,977 | 93 | 119 | 32.010753 | 0.884201 | 0.535774 | 0 | 0.285714 | 0 | 0 | 0.052496 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.25 | false | 0 | 0.107143 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6f4a8a36dcc1f815b411f9418ac8e3c4bbc48df6 | 138 | py | Python | Maths_And_Stats/Series/Sum_of_N/sumn.py | arslantalib3/algo_ds_101 | a1293f407e00b8346f93e8770727f769e7add00e | [
"MIT"
] | 182 | 2020-10-01T17:16:42.000Z | 2021-10-04T17:52:49.000Z | Maths_And_Stats/Series/Sum_of_N/sumn.py | arslantalib3/algo_ds_101 | a1293f407e00b8346f93e8770727f769e7add00e | [
"MIT"
] | 759 | 2020-10-01T00:12:21.000Z | 2021-10-04T19:35:11.000Z | Maths_And_Stats/Series/Sum_of_N/sumn.py | arslantalib3/algo_ds_101 | a1293f407e00b8346f93e8770727f769e7add00e | [
"MIT"
] | 1,176 | 2020-10-01T16:02:13.000Z | 2021-10-04T19:20:19.000Z |
def sumn(n):
s=(n*(n+1))/2 # finds the sum of first n natural numbers
return s
n=int(input()) # inputs th limit
print(sumn(n))
| 17.25 | 60 | 0.615942 | 27 | 138 | 3.148148 | 0.740741 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018692 | 0.224638 | 138 | 7 | 61 | 19.714286 | 0.775701 | 0.405797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.