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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
af1ec8087c47a1eaea1162ba296a7e987c7d9b6a | 3,101 | py | Python | leonardo_form_roudnyresl/models.py | dresl/leonardo-form-roudnyresl | 2b79bde22a2a71ca2a3da893f319efe3eaeff3f5 | [
"BSD-3-Clause"
] | null | null | null | leonardo_form_roudnyresl/models.py | dresl/leonardo-form-roudnyresl | 2b79bde22a2a71ca2a3da893f319efe3eaeff3f5 | [
"BSD-3-Clause"
] | null | null | null | leonardo_form_roudnyresl/models.py | dresl/leonardo-form-roudnyresl | 2b79bde22a2a71ca2a3da893f319efe3eaeff3f5 | [
"BSD-3-Clause"
] | null | null | null | # encoding: utf-8
from leonardo.module.web.models import Widget
from leonardo.module.media.fields.image import ImageField
from django.db import models
from django.conf import settings
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
import datetime
from django.utils.encoding imp... | 37.817073 | 111 | 0.694937 | 390 | 3,101 | 5.346154 | 0.387179 | 0.110791 | 0.109353 | 0.13717 | 0.254197 | 0.086811 | 0.056115 | 0.056115 | 0 | 0 | 0 | 0.026442 | 0.195098 | 3,101 | 81 | 112 | 38.283951 | 0.808894 | 0.004837 | 0 | 0.058824 | 0 | 0 | 0.140402 | 0.01297 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.147059 | 0.044118 | 0.602941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
af202fc5e6a5b1b4da7ae6cec4c30281f525a6c2 | 5,723 | py | Python | packages/w3af/w3af/core/data/parsers/tests/test_parser_cache.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | 3 | 2019-04-09T22:59:33.000Z | 2019-06-14T09:23:24.000Z | tools/w3af/w3af/core/data/parsers/tests/test_parser_cache.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | tools/w3af/w3af/core/data/parsers/tests/test_parser_cache.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | """
test_parser_cache.py
Copyright 2012 Andres Riancho
This file is part of w3af, http://w3af.org/ .
w3af is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License.
w3af is distributed in the hop... | 39.19863 | 95 | 0.664162 | 756 | 5,723 | 4.85582 | 0.289683 | 0.028603 | 0.029965 | 0.034868 | 0.361754 | 0.325797 | 0.253609 | 0.225279 | 0.204576 | 0.186598 | 0 | 0.029224 | 0.234667 | 5,723 | 145 | 96 | 39.468966 | 0.808904 | 0.046479 | 0 | 0.246914 | 0 | 0 | 0.092217 | 0.041667 | 0 | 0 | 0 | 0 | 0.111111 | 0 | null | null | 0 | 0.135802 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af2411caa0ac1fa6e34087a3c2693f99dc941d16 | 463 | py | Python | src/library/__init__.py | oschusler/libqasm | 7eb94a3c337d7404900ad2d4837dd0270f09df31 | [
"Apache-2.0"
] | null | null | null | src/library/__init__.py | oschusler/libqasm | 7eb94a3c337d7404900ad2d4837dd0270f09df31 | [
"Apache-2.0"
] | null | null | null | src/library/__init__.py | oschusler/libqasm | 7eb94a3c337d7404900ad2d4837dd0270f09df31 | [
"Apache-2.0"
] | null | null | null | # Author Imran Ashraf
# The import syntax changes slightly between python 2 and 3, so we
# need to detect which version is being used:
from sys import version_info
if version_info[0] == 3:
PY3 = True
# elif version_info[0] == 2:
# PY3 = False
else:
raise EnvironmentError("sys.version_info refers to a versi... | 28.9375 | 69 | 0.697624 | 71 | 463 | 4.464789 | 0.605634 | 0.208202 | 0.07571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024862 | 0.218143 | 463 | 15 | 70 | 30.866667 | 0.850829 | 0.36933 | 0 | 0 | 0 | 0 | 0.353147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af27993af992161ec53864b6b160e4a34becc526 | 2,507 | py | Python | kunai/dnsquery.py | vijayanant/kunai | 0dfe169731eaceb1bba66e12715b3968d2a3de20 | [
"MIT"
] | 1 | 2020-04-12T21:05:46.000Z | 2020-04-12T21:05:46.000Z | kunai/dnsquery.py | vijayanant/kunai | 0dfe169731eaceb1bba66e12715b3968d2a3de20 | [
"MIT"
] | null | null | null | kunai/dnsquery.py | vijayanant/kunai | 0dfe169731eaceb1bba66e12715b3968d2a3de20 | [
"MIT"
] | null | null | null | import re
import socket
pattern = r"((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)([ (\[]?(\.|dot)[ )\]]?(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3})"
ipv4pattern = re.compile(pattern)
class DNSQuery:
def __init__(self, data):
self.data = data
self.domain = ''
t = (ord(data[2]) >> 3) & 15 # Opco... | 31.734177 | 121 | 0.475868 | 330 | 2,507 | 3.560606 | 0.381818 | 0.010213 | 0.035745 | 0.008511 | 0.025532 | 0.025532 | 0.025532 | 0.025532 | 0.025532 | 0.025532 | 0 | 0.06129 | 0.381731 | 2,507 | 78 | 122 | 32.141026 | 0.696774 | 0.116474 | 0 | 0.066667 | 0 | 0.016667 | 0.129941 | 0.05861 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af2b98556ee43202003e7ceb935bda51d50f9419 | 273 | py | Python | metrics/serializers.py | cybrvybe/AU7OMA7A-BI | 1895abdd4b1ec0908b08ece65df460fc23925f25 | [
"MIT"
] | null | null | null | metrics/serializers.py | cybrvybe/AU7OMA7A-BI | 1895abdd4b1ec0908b08ece65df460fc23925f25 | [
"MIT"
] | null | null | null | metrics/serializers.py | cybrvybe/AU7OMA7A-BI | 1895abdd4b1ec0908b08ece65df460fc23925f25 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Metric
class MetricSerializer(
serializers.ModelSerializer
):
class Meta:
model = Metric
fields = (
"title",
"created_at",
"metric"
) | 21 | 39 | 0.553114 | 22 | 273 | 6.772727 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.380952 | 273 | 13 | 40 | 21 | 0.881657 | 0 | 0 | 0 | 0 | 0 | 0.080153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af31ce6b131775b5afc8d831a29aa4e96c746d94 | 451 | py | Python | count_subset_occurrences.py | will-r-wang/opencv-object-detection | 9a8820724bb99f361ec60da9f47cc3a038f5f133 | [
"MIT"
] | null | null | null | count_subset_occurrences.py | will-r-wang/opencv-object-detection | 9a8820724bb99f361ec60da9f47cc3a038f5f133 | [
"MIT"
] | null | null | null | count_subset_occurrences.py | will-r-wang/opencv-object-detection | 9a8820724bb99f361ec60da9f47cc3a038f5f133 | [
"MIT"
] | null | null | null | import numpy as np
def count_subset_occurrences(array, subset_array):
occurrences = 0
for idx in range(len(array) - len(subset_array) + 1):
if np.array_equal(array[idx:(idx + len(subset_array))], subset_array):
occurrences += 1
return occurrences
def test_base_case():
assert count_... | 26.529412 | 78 | 0.620843 | 69 | 451 | 3.869565 | 0.362319 | 0.164794 | 0.164794 | 0.202247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052786 | 0.243902 | 451 | 16 | 79 | 28.1875 | 0.730205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af32aa4cc8173f1d7fd07e9a7d80604784caca10 | 398 | py | Python | cv2/select-pixels-by-RGB/main.py | whitmans-max/python-examples | 881a8f23f0eebc76816a0078e19951893f0daaaa | [
"MIT"
] | 140 | 2017-02-21T22:49:04.000Z | 2022-03-22T17:51:58.000Z | cv2/select-pixels-by-RGB/main.py | whitmans-max/python-examples | 881a8f23f0eebc76816a0078e19951893f0daaaa | [
"MIT"
] | 5 | 2017-12-02T19:55:00.000Z | 2021-09-22T23:18:39.000Z | cv2/select-pixels-by-RGB/main.py | whitmans-max/python-examples | 881a8f23f0eebc76816a0078e19951893f0daaaa | [
"MIT"
] | 79 | 2017-01-25T10:53:33.000Z | 2022-03-11T16:13:57.000Z | #!/usr/bin/env python3
# date: 2019.09.24
# https://stackoverflow.com/questions/58085439/opencv-extract-pixels-with-rbg/
# replaca pixel when `R > G > B`
import cv2
import numpy as np
img = cv2.imread('/home/furas/Obrazy/images/image.png')
# img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
img[ (img[:,:,2] > img[:,:,1]... | 19.9 | 78 | 0.645729 | 63 | 398 | 4.063492 | 0.714286 | 0.09375 | 0.054688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086705 | 0.130653 | 398 | 19 | 79 | 20.947368 | 0.653179 | 0.474874 | 0 | 0 | 0 | 0 | 0.196078 | 0.171569 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
af40e04b9632e19b5ecfc747eec3da402bd81a1a | 894 | py | Python | #7 Kelas Dan Object/Decorator/decorator.py | HudaFiqri/belajarPython | 8bc03e10339ce455afa052c635657b959abef493 | [
"Apache-2.0"
] | 5 | 2019-05-04T03:20:31.000Z | 2021-02-15T12:35:52.000Z | #7 Kelas Dan Object/Decorator/decorator.py | kuhakuu04/belajarPython | 8bc03e10339ce455afa052c635657b959abef493 | [
"Apache-2.0"
] | null | null | null | #7 Kelas Dan Object/Decorator/decorator.py | kuhakuu04/belajarPython | 8bc03e10339ce455afa052c635657b959abef493 | [
"Apache-2.0"
] | null | null | null | '''
decorator
jadi agar memudahkan dalam pembungkusan fungsi maka python menyediakan yang namanya decorator.
sumber referensi: https://www.youtube.com/watch?v=r7Dtus7N4pI
direvisi pada: 26-02-2021
'''
'''
membuat fungsi yang akan dipanggil.
jadi di decorator pada python harus fungsi rekursif untuk mengembalikan valu... | 30.827586 | 135 | 0.777405 | 125 | 894 | 5.528 | 0.616 | 0.052098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01738 | 0.163311 | 894 | 28 | 136 | 31.928571 | 0.906417 | 0.503356 | 0 | 0 | 0 | 0 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.375 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af4763a264f0eb429b836c6ead6fafb39328803d | 3,068 | py | Python | wtss_plugin/help/source/conf.py | AbnerErnaniADSFatec/wtss-qgis | 358d2d796b9a4f7b0a7991c73d76defef93d7e1e | [
"MIT"
] | 1 | 2020-09-21T14:52:36.000Z | 2020-09-21T14:52:36.000Z | wtss_plugin/help/source/conf.py | AbnerErnaniADSFatec/wtss-qgis | 358d2d796b9a4f7b0a7991c73d76defef93d7e1e | [
"MIT"
] | 28 | 2020-07-02T20:52:48.000Z | 2021-04-13T21:09:39.000Z | wtss_plugin/help/source/conf.py | AbnerErnaniADSFatec/wtss-qgis | 358d2d796b9a4f7b0a7991c73d76defef93d7e1e | [
"MIT"
] | 3 | 2020-04-22T19:49:17.000Z | 2020-09-04T20:33:03.000Z | """
WTSS QGIS Plugin.
Python Client Library for Web Time Series Service.
Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/.
-------------------
begin : 2019-05-04
git sha : $Format:%H$
copyright : (C) 2020 by INPE
email ... | 25.566667 | 106 | 0.642112 | 379 | 3,068 | 5.002639 | 0.559367 | 0.021097 | 0.022152 | 0.021097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015606 | 0.185463 | 3,068 | 120 | 107 | 25.566667 | 0.743097 | 0.443611 | 0 | 0 | 1 | 0 | 0.428402 | 0.060355 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.031746 | 0 | 0.031746 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af47cf8bb4ad179477d080fdd4eb4ba2377b9399 | 1,116 | py | Python | model/signalgenerator.py | shuaiwng/python | 3fe232604770c7ec5ac0461d286e6d617848a7be | [
"MIT"
] | 1 | 2021-12-12T20:56:55.000Z | 2021-12-12T20:56:55.000Z | model/signalgenerator.py | shuaiwng/SignalAnalyzer | 3fe232604770c7ec5ac0461d286e6d617848a7be | [
"MIT"
] | null | null | null | model/signalgenerator.py | shuaiwng/SignalAnalyzer | 3fe232604770c7ec5ac0461d286e6d617848a7be | [
"MIT"
] | null | null | null | import random
import numpy as np
import time
class Signalgenerator():
def __init__(self):
self.Fs = 8000
self.f = 2
self.sample = 8000
self.x = np.arange(1, self.sample+1)
self.y = np.empty(self.sample)
self.level = 0
self.filename = ''
def set_filename... | 27.9 | 89 | 0.540323 | 158 | 1,116 | 3.759494 | 0.335443 | 0.106061 | 0.055556 | 0.037037 | 0.158249 | 0.158249 | 0.074074 | 0 | 0 | 0 | 0 | 0.032383 | 0.308244 | 1,116 | 40 | 90 | 27.9 | 0.737047 | 0 | 0 | 0.068966 | 0 | 0 | 0.031334 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.103448 | 0.034483 | 0.37931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af4d03ef372560178af58198790ce13cd5534a2a | 522 | py | Python | shadowsocks/objects/user.py | PaperDashboard/shadowsocks-vanilla | de209a3ddfd632723aa91d3aa617d5d893657260 | [
"Apache-1.1"
] | 1 | 2017-12-05T09:20:47.000Z | 2017-12-05T09:20:47.000Z | shadowsocks/objects/user.py | PaperDashboard/shadowsocks-vanilla | de209a3ddfd632723aa91d3aa617d5d893657260 | [
"Apache-1.1"
] | null | null | null | shadowsocks/objects/user.py | PaperDashboard/shadowsocks-vanilla | de209a3ddfd632723aa91d3aa617d5d893657260 | [
"Apache-1.1"
] | null | null | null | class User(object):
def __init__(self, config):
self.port = int(config["port"])
self.password = str(config["password"])
self.method = str(config["method"])
if "_id" in config:
self.id = config["_id"]["$oid"]
else:
self.id = str(self.port)
... | 34.8 | 49 | 0.521073 | 61 | 522 | 4.295082 | 0.344262 | 0.091603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.33908 | 522 | 15 | 50 | 34.8 | 0.75942 | 0 | 0 | 0 | 0 | 0 | 0.05501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0 | 0.071429 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
af4e1c3552e56199ccd522bb65a4cd2710e7a9c7 | 4,813 | py | Python | tests/test_utilities.py | zachdj/team-crux-p1 | 55b6df9121d0bb4908031cdf777e85810c1ccd32 | [
"MIT"
] | 1 | 2021-05-29T16:02:41.000Z | 2021-05-29T16:02:41.000Z | tests/test_utilities.py | zachdj/team-crux-p1 | 55b6df9121d0bb4908031cdf777e85810c1ccd32 | [
"MIT"
] | null | null | null | tests/test_utilities.py | zachdj/team-crux-p1 | 55b6df9121d0bb4908031cdf777e85810c1ccd32 | [
"MIT"
] | 3 | 2018-02-10T01:30:14.000Z | 2018-03-09T02:49:05.000Z | """
Unit tests for functions in the src.utilities package
"""
import unittest
import warnings
from pyspark import SparkContext, SparkConf
import src.utilities.preprocess as preprocess
import src.utilities.utils as utils
class TestPreprocess(unittest.TestCase):
def setUp(self):
"""
This setup func... | 41.136752 | 113 | 0.672554 | 580 | 4,813 | 5.481034 | 0.313793 | 0.096886 | 0.060396 | 0.110727 | 0.505505 | 0.485373 | 0.475307 | 0.45832 | 0.394778 | 0.394778 | 0 | 0.006631 | 0.216705 | 4,813 | 116 | 114 | 41.491379 | 0.836605 | 0.158321 | 0 | 0.278481 | 0 | 0 | 0.124126 | 0.016234 | 0 | 0 | 0 | 0 | 0.481013 | 1 | 0.101266 | false | 0.012658 | 0.063291 | 0 | 0.189873 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af5b2f73934cfdcc45c03660b0ab870d250052da | 434 | py | Python | server/resources/api/__init__.py | Saakshaat/umass-match | 6a87f11a27e445e0153ec60372ab37ddaedbd1a4 | [
"MIT"
] | null | null | null | server/resources/api/__init__.py | Saakshaat/umass-match | 6a87f11a27e445e0153ec60372ab37ddaedbd1a4 | [
"MIT"
] | 1 | 2020-12-19T06:20:56.000Z | 2020-12-19T06:20:56.000Z | server/resources/api/__init__.py | Saakshaat/umass-match | 6a87f11a27e445e0153ec60372ab37ddaedbd1a4 | [
"MIT"
] | null | null | null | from fastapi import APIRouter
main_router = APIRouter()
from resources.db import session_dependency
session_dep = session_dependency()
@main_router.get("/", status_code=200)
async def root():
return {"msg": "Welcome to UMass Match!"}
from .user import user_router
from .match import match_router
# add indivi... | 20.666667 | 45 | 0.790323 | 61 | 434 | 5.393443 | 0.508197 | 0.121581 | 0.097264 | 0.139818 | 0.176292 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007895 | 0.124424 | 434 | 20 | 46 | 21.7 | 0.857895 | 0.096774 | 0 | 0 | 0 | 0 | 0.069231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
af5c6acfcc35027d9cc105d5f7097e86c0829914 | 8,623 | py | Python | main_deep_feat_select_mlp_l21norm.py | yifeng-li/DECRES | 40c3b9dadfe2f6bdbb6fa6c7f79ccb60de0f8a2c | [
"BSD-3-Clause"
] | 42 | 2015-10-27T17:06:23.000Z | 2022-02-10T16:19:09.000Z | main_deep_feat_select_mlp_l21norm.py | yifeng-li/DECRES | 40c3b9dadfe2f6bdbb6fa6c7f79ccb60de0f8a2c | [
"BSD-3-Clause"
] | 5 | 2016-02-29T16:32:50.000Z | 2019-12-01T11:57:14.000Z | main_deep_feat_select_mlp_l21norm.py | yifeng-li/DECRES | 40c3b9dadfe2f6bdbb6fa6c7f79ccb60de0f8a2c | [
"BSD-3-Clause"
] | 18 | 2016-03-09T18:31:54.000Z | 2021-04-09T09:45:19.000Z | #!/usr/bin/env python
"""
An example of running DFS for MLP based on L2,1-norm.
Yifeng Li
NRC, Ottawa
Aug. 06, 2015
Contact: yifeng.li.cn@gmail.com
"""
#qsub -l procs=1,pmem=2000mb,walltime=36:00:00 -r n -N main_DFS_feature_selection_l21norm -o main_DFS_feature_selection_l21norm.out -e main_DFS_feature_selection_l21nor... | 43.771574 | 243 | 0.604662 | 1,288 | 8,623 | 3.850155 | 0.226708 | 0.008066 | 0.009679 | 0.008066 | 0.393426 | 0.314781 | 0.272636 | 0.209316 | 0.200847 | 0.169792 | 0 | 0.04388 | 0.233561 | 8,623 | 196 | 244 | 43.994898 | 0.706461 | 0.251189 | 0 | 0.098039 | 0 | 0 | 0.054073 | 0.018024 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009804 | 0.068627 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af6077ede2b938beac78d7c098baf68954c10cf1 | 1,010 | py | Python | library/example-exceptions.py | kensoi/testcanarybot | 1570b6dab1ae6902f6179d4d1fed0bb83229ad08 | [
"Apache-2.0"
] | null | null | null | library/example-exceptions.py | kensoi/testcanarybot | 1570b6dab1ae6902f6179d4d1fed0bb83229ad08 | [
"Apache-2.0"
] | 1 | 2021-02-03T12:48:23.000Z | 2021-02-03T12:48:23.000Z | library/example-exceptions.py | kensoi/testcanarybot | 1570b6dab1ae6902f6179d4d1fed0bb83229ad08 | [
"Apache-2.0"
] | 1 | 2021-11-03T12:36:51.000Z | 2021-11-03T12:36:51.000Z | import random
from testcanarybot import objects
from testcanarybot import exceptions
# Copyright 2021 kensoi
class Main(objects.libraryModule):
@objects.priority(commands = ['quit']) # @testcanarybot quit
async def second(self, tools: objects.tools, package: objects.package):
await tools.api.messages.... | 37.407407 | 116 | 0.660396 | 112 | 1,010 | 5.866071 | 0.473214 | 0.03653 | 0.070015 | 0.063927 | 0.350076 | 0.350076 | 0.350076 | 0.350076 | 0.350076 | 0.350076 | 0 | 0.00651 | 0.239604 | 1,010 | 27 | 117 | 37.407407 | 0.848958 | 0.180198 | 0 | 0.3 | 0 | 0 | 0.075334 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.15 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af68bd16fcca5e3bcba0a49e6119dad4a49a17fb | 757 | py | Python | kunquat/tracker/ui/model/orderlistmanager.py | kagu/kunquat | 83a2e972121e6a114ecc5ef4392b501ce926bb06 | [
"CC0-1.0"
] | 13 | 2016-09-01T21:52:49.000Z | 2022-03-24T06:07:20.000Z | kunquat/tracker/ui/model/orderlistmanager.py | kagu/kunquat | 83a2e972121e6a114ecc5ef4392b501ce926bb06 | [
"CC0-1.0"
] | 290 | 2015-03-14T10:59:25.000Z | 2022-03-20T08:32:17.000Z | kunquat/tracker/ui/model/orderlistmanager.py | kagu/kunquat | 83a2e972121e6a114ecc5ef4392b501ce926bb06 | [
"CC0-1.0"
] | 7 | 2015-03-19T13:28:11.000Z | 2019-09-03T16:21:16.000Z | # -*- coding: utf-8 -*-
#
# Author: Tomi Jylhä-Ollila, Finland 2015
#
# This file is part of Kunquat.
#
# CC0 1.0 Universal, http://creativecommons.org/publicdomain/zero/1.0/
#
# To the extent possible under law, Kunquat Affirmers have waived all
# copyright and related or neighboring rights to Kunquat.
#
class Orde... | 23.65625 | 70 | 0.708058 | 92 | 757 | 5.608696 | 0.576087 | 0.085271 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016447 | 0.19683 | 757 | 31 | 71 | 24.419355 | 0.832237 | 0.375165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | 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 | 0 | 0 | 0 | 1 |
af6dc698735e9e78042980a62df253bbed13c2dc | 348 | py | Python | tests/class/method06.py | ktok07b6/polyphony | 657c5c7440520db6b4985970bd50547407693ac4 | [
"MIT"
] | 83 | 2015-11-30T09:59:13.000Z | 2021-08-03T09:12:28.000Z | tests/class/method06.py | jesseclin/polyphony | 657c5c7440520db6b4985970bd50547407693ac4 | [
"MIT"
] | 4 | 2017-02-10T01:43:11.000Z | 2020-07-14T03:52:25.000Z | tests/class/method06.py | jesseclin/polyphony | 657c5c7440520db6b4985970bd50547407693ac4 | [
"MIT"
] | 11 | 2016-11-18T14:39:15.000Z | 2021-02-23T10:05:20.000Z | from polyphony import testbench
class C:
def __init__(self, x):
self.x = x * x
def calc(self, x):
for i in range(x):
self.x += 1
return self.x
def method06(x):
return C(x).calc(x)
@testbench
def test():
assert 2 == method06(1)
assert 6 == method06(2)
asser... | 15.818182 | 31 | 0.551724 | 53 | 348 | 3.54717 | 0.45283 | 0.132979 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067511 | 0.318966 | 348 | 21 | 32 | 16.571429 | 0.725738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.25 | false | 0 | 0.0625 | 0.0625 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af755dd0f46ebbe4c044db00aa8f46090f496324 | 1,968 | py | Python | mysite/apps/repo/migrations/0002_auto_20190811_2046.py | lirixiang123/question_repo | 8be0f4980795ba33d3fec22cc0baf01345b5614b | [
"Apache-2.0"
] | null | null | null | mysite/apps/repo/migrations/0002_auto_20190811_2046.py | lirixiang123/question_repo | 8be0f4980795ba33d3fec22cc0baf01345b5614b | [
"Apache-2.0"
] | 3 | 2020-02-12T03:00:45.000Z | 2021-06-10T21:45:52.000Z | mysite/apps/repo/migrations/0002_auto_20190811_2046.py | lirixiang123/question_repo | 8be0f4980795ba33d3fec22cc0baf01345b5614b | [
"Apache-2.0"
] | 1 | 2021-07-10T16:47:03.000Z | 2021-07-10T16:47:03.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-08-11 12:46
from __future__ import unicode_literals
import ckeditor_uploader.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
... | 37.846154 | 171 | 0.628557 | 196 | 1,968 | 6.107143 | 0.443878 | 0.082707 | 0.050125 | 0.055138 | 0.390977 | 0.309106 | 0.155388 | 0.155388 | 0.155388 | 0.155388 | 0 | 0.014936 | 0.251524 | 1,968 | 51 | 172 | 38.588235 | 0.797692 | 0.035061 | 0 | 0.295455 | 1 | 0 | 0.138186 | 0.025316 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.113636 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af76cee0f2d602fd5bc7a339b757852ca3110b42 | 751 | py | Python | route.py | PeterRyder/EveTradeRoute | 0fa78a5f11a7b77e593dfa52cfd31a22a0e1cd1e | [
"MIT"
] | null | null | null | route.py | PeterRyder/EveTradeRoute | 0fa78a5f11a7b77e593dfa52cfd31a22a0e1cd1e | [
"MIT"
] | null | null | null | route.py | PeterRyder/EveTradeRoute | 0fa78a5f11a7b77e593dfa52cfd31a22a0e1cd1e | [
"MIT"
] | null | null | null | class Route:
def __init__(self, c, s, e):
self.client = c
self.start = s
self.end = e
#self.start = self.get_system(s)
#self.end = self.get_system(e)
def __repr__(self):
return str(self)
def __str__(self):
system_ids = self.get_distance()
return str([self.get_system(id)["name"] ... | 25.033333 | 66 | 0.588549 | 96 | 751 | 4.34375 | 0.354167 | 0.067146 | 0.093525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00188 | 0.291611 | 751 | 29 | 67 | 25.896552 | 0.781955 | 0.079893 | 0 | 0.090909 | 0 | 0 | 0.033382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0 | 0.090909 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af7aacd9d65787a89622616dbf923d9b323d8e6a | 919 | py | Python | formulaic/materializers/arrow.py | CamDavidsonPilon/formulaic | 7afb4e4029860f081e16473621595e2c47634933 | [
"MIT"
] | null | null | null | formulaic/materializers/arrow.py | CamDavidsonPilon/formulaic | 7afb4e4029860f081e16473621595e2c47634933 | [
"MIT"
] | null | null | null | formulaic/materializers/arrow.py | CamDavidsonPilon/formulaic | 7afb4e4029860f081e16473621595e2c47634933 | [
"MIT"
] | null | null | null | from interface_meta import override
from .pandas import PandasMaterializer
class ArrowMaterializer(PandasMaterializer):
REGISTRY_NAME = 'arrow'
DEFAULT_FOR = ['pyarrow.lib.Table']
@override
def _init(self, sparse=False):
super()._init(sparse=sparse)
self.__data_context = LazyArrowTa... | 24.184211 | 65 | 0.663765 | 108 | 919 | 5.342593 | 0.388889 | 0.062392 | 0.07799 | 0.058925 | 0.058925 | 0.058925 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245919 | 919 | 37 | 66 | 24.837838 | 0.832612 | 0 | 0 | 0.076923 | 0 | 0 | 0.023939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.076923 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
af7bcf8a6502a713989239b6e9a91da6b62080c6 | 950 | py | Python | tests/test_server/test_grpc/test_init.py | Tomaz-Vieira/tiktorch | 2d6803c4ba5e26e4b27bf8af6638040fa4fc5628 | [
"MIT"
] | 8 | 2019-04-17T09:00:34.000Z | 2021-12-03T18:09:04.000Z | tests/test_server/test_grpc/test_init.py | Tomaz-Vieira/tiktorch | 2d6803c4ba5e26e4b27bf8af6638040fa4fc5628 | [
"MIT"
] | 82 | 2019-01-09T12:35:52.000Z | 2021-11-24T10:05:43.000Z | tests/test_server/test_grpc/test_init.py | Tomaz-Vieira/tiktorch | 2d6803c4ba5e26e4b27bf8af6638040fa4fc5628 | [
"MIT"
] | 5 | 2019-01-22T09:33:38.000Z | 2021-03-22T14:51:54.000Z | import json
import os
import threading
import grpc
from tiktorch.proto.inference_pb2 import Empty
from tiktorch.proto.inference_pb2_grpc import FlightControlStub
from tiktorch.server.grpc import serve
from tiktorch.utils import wait
def test_serving_on_random_port(tmpdir):
conn_file_path = str(tmpdir / "conn.js... | 25 | 66 | 0.715789 | 136 | 950 | 4.786765 | 0.397059 | 0.073733 | 0.073733 | 0.079877 | 0.089094 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020253 | 0.168421 | 950 | 37 | 67 | 25.675676 | 0.803797 | 0 | 0 | 0 | 0 | 0 | 0.06 | 0 | 0 | 0 | 0 | 0 | 0.12 | 1 | 0.08 | false | 0 | 0.32 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
af7e79ce2044804b4a33ce782dc1ced9b798cd76 | 645 | py | Python | CS303_Artifical-Intelligence/NCS/data/data_F12/Rename-Files.py | Eveneko/SUSTech-Courses | 0420873110e91e8d13e6e85a974f1856e01d28d6 | [
"MIT"
] | 4 | 2020-11-11T11:56:57.000Z | 2021-03-11T10:05:09.000Z | CS303_Artifical-Intelligence/NCS/data/data_F12/Rename-Files.py | Eveneko/SUSTech-Courses | 0420873110e91e8d13e6e85a974f1856e01d28d6 | [
"MIT"
] | null | null | null | CS303_Artifical-Intelligence/NCS/data/data_F12/Rename-Files.py | Eveneko/SUSTech-Courses | 0420873110e91e8d13e6e85a974f1856e01d28d6 | [
"MIT"
] | 3 | 2021-01-07T04:14:11.000Z | 2021-04-27T13:41:36.000Z | import os
# get the folder name
folder_name = os.path.dirname(__file__)
# folder_name = input("Input the folder name:")
# get all files name
file_names = os.listdir(folder_name)
print(file_names)
for i, name in enumerate(file_names):
old_file_name = folder_name + "/" + name
# demo1: for http://www.pdfdo.com/p... | 26.875 | 65 | 0.64031 | 95 | 645 | 4.084211 | 0.452632 | 0.206186 | 0.14433 | 0.139175 | 0.175258 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017143 | 0.186047 | 645 | 23 | 66 | 28.043478 | 0.721905 | 0.370543 | 0 | 0 | 0 | 0 | 0.037688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.111111 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af7fbf8dbf10404f543805ff25ddf9abc5f067b3 | 7,644 | py | Python | taiga/projects/migrations/0046_triggers_to_update_tags_colors.py | threefoldtech/Threefold-Circles | cbc433796b25cf7af9a295af65d665a4a279e2d6 | [
"Apache-2.0"
] | 1 | 2017-05-29T19:01:06.000Z | 2017-05-29T19:01:06.000Z | docker-images/taigav2/taiga-back/taiga/projects/migrations/0046_triggers_to_update_tags_colors.py | mattcongy/itshop | 6be025a9eaa7fe7f495b5777d1f0e5a3184121c9 | [
"MIT"
] | 12 | 2019-11-25T14:08:32.000Z | 2021-06-24T10:35:51.000Z | taiga/projects/migrations/0046_triggers_to_update_tags_colors.py | threefoldtech/Threefold-Circles | cbc433796b25cf7af9a295af65d665a4a279e2d6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-06-07 06:19
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('projects', '0045_merge'),
('userstories', '0011_userstory_tribe_gig'),
('tasks', '000... | 38.41206 | 107 | 0.546703 | 769 | 7,644 | 5.146944 | 0.189857 | 0.131379 | 0.146033 | 0.122031 | 0.48383 | 0.465892 | 0.404497 | 0.358767 | 0.358767 | 0.348408 | 0 | 0.011537 | 0.399006 | 7,644 | 198 | 108 | 38.606061 | 0.850022 | 0.069728 | 0 | 0.666667 | 1 | 0 | 0.111111 | 0.07178 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
af93ca721c4c08bc605cbc188ddb1d166c7df103 | 5,783 | py | Python | pytato/cmath.py | alexfikl/pytato | 6ece6bc8bc35b22fe000a60ded74e8845883d30b | [
"MIT"
] | null | null | null | pytato/cmath.py | alexfikl/pytato | 6ece6bc8bc35b22fe000a60ded74e8845883d30b | [
"MIT"
] | 1 | 2021-04-01T19:31:49.000Z | 2021-04-01T19:31:49.000Z | pytato/cmath.py | kaushikcfd/pytato | 0bf3fdfc35aec5911ca8aabd394c1d7207562edb | [
"MIT"
] | null | null | null | from __future__ import annotations
__copyright__ = """
Copyright (C) 2020 Andreas Kloeckner
Copyright (C) 2020 Matt Wala
Copyright (C) 2020 Xiaoyu Wei
Copyright (C) 2021 Kaushik Kulkarni
"""
__license__ = """
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated ... | 28.348039 | 81 | 0.664707 | 769 | 5,783 | 4.829649 | 0.284785 | 0.096931 | 0.070005 | 0.091546 | 0.289984 | 0.278137 | 0.278137 | 0.278137 | 0.241519 | 0.060582 | 0 | 0.007124 | 0.223241 | 5,783 | 203 | 82 | 28.487685 | 0.819679 | 0.024036 | 0 | 0.107914 | 0 | 0 | 0.332683 | 0.003903 | 0 | 0 | 0 | 0.004926 | 0.014388 | 1 | 0.143885 | false | 0 | 0.057554 | 0.107914 | 0.374101 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
af9542f9d7bad67ab8a6ecd90236770983125bc8 | 2,849 | py | Python | src/sentry_top/plugin.py | robopsi/sentry-top | e6e352a29f6fe33903ea0eb1c378278da19f8752 | [
"Apache-2.0"
] | 10 | 2015-02-11T15:30:41.000Z | 2018-02-28T02:51:32.000Z | src/sentry_top/plugin.py | getsentry/sentry-top | e6e352a29f6fe33903ea0eb1c378278da19f8752 | [
"Apache-2.0"
] | null | null | null | src/sentry_top/plugin.py | getsentry/sentry-top | e6e352a29f6fe33903ea0eb1c378278da19f8752 | [
"Apache-2.0"
] | 2 | 2018-06-05T02:59:43.000Z | 2021-03-04T10:31:33.000Z | import sentry_top
from collections import defaultdict
from nydus.db import create_cluster
from time import time
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from sentry.models import Project
from sentry.plugins.base import Plugin
if not getattr(settings, 'SENTRY_TOP', No... | 28.777778 | 80 | 0.600211 | 356 | 2,849 | 4.688202 | 0.384831 | 0.048532 | 0.030557 | 0.041342 | 0.094667 | 0.094667 | 0.037148 | 0.037148 | 0.037148 | 0 | 0 | 0.010289 | 0.283608 | 2,849 | 98 | 81 | 29.071429 | 0.807447 | 0.05265 | 0 | 0.054795 | 0 | 0 | 0.135115 | 0.025984 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.068493 | false | 0 | 0.109589 | 0.013699 | 0.356164 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
afa022a5cdb798820c311f57b692d3ace057a3a0 | 1,162 | py | Python | tests/commands/conftest.py | danpoland/slacktools-interactivity | d9f28652cf5aa18e90468a5d22487fa261c2e117 | [
"MIT"
] | null | null | null | tests/commands/conftest.py | danpoland/slacktools-interactivity | d9f28652cf5aa18e90468a5d22487fa261c2e117 | [
"MIT"
] | 2 | 2020-03-31T11:28:08.000Z | 2021-02-02T22:53:59.000Z | tests/commands/conftest.py | danpoland/slacktools-interactivity | d9f28652cf5aa18e90468a5d22487fa261c2e117 | [
"MIT"
] | null | null | null | from typing import Dict
import pytest
from interactivity.generics import Payload
def make_command_request_data():
return {
"token": "token",
"command": "/command",
"text": "do_work op1 op2",
"response_url": "https://testing.commands",
"trigger_id": "trigger_id",
"... | 25.26087 | 75 | 0.660929 | 133 | 1,162 | 5.360902 | 0.278195 | 0.169705 | 0.201964 | 0.092567 | 0.164095 | 0.098177 | 0 | 0 | 0 | 0 | 0 | 0.002215 | 0.222892 | 1,162 | 45 | 76 | 25.822222 | 0.787375 | 0 | 0 | 0.088235 | 0 | 0 | 0.244406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.088235 | 0.088235 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
afa68507f64a81b4adb20ebdc68c19129fd0b8d4 | 852 | py | Python | AA.py | BeahIF/ev3 | 542001b4b58f028bf14f81bfb587da576de082ad | [
"MIT"
] | null | null | null | AA.py | BeahIF/ev3 | 542001b4b58f028bf14f81bfb587da576de082ad | [
"MIT"
] | null | null | null | AA.py | BeahIF/ev3 | 542001b4b58f028bf14f81bfb587da576de082ad | [
"MIT"
] | 4 | 2019-08-20T15:07:01.000Z | 2020-03-10T13:53:18.000Z | #!/usr/bin/env python3
#coding: utf-8
from ev3dev.ev3 import *
from threading import *
import time, socket
import math
m1 = LargeMotor('outD')
m2 = LargeMotor('outC')
m3 = MediumMotor('outB')
m4 = MediumMotor('outA')
#Sensor_Cor = [ColorSensor('in1'), ColorSensor('in2')]
#Sensor_Cor[0] = ColorSensor('in1') #2
#Sensor... | 26.625 | 68 | 0.699531 | 130 | 852 | 4.453846 | 0.476923 | 0.07772 | 0.051813 | 0.062176 | 0.227979 | 0.227979 | 0.172712 | 0.172712 | 0.172712 | 0.172712 | 0 | 0.057592 | 0.103286 | 852 | 32 | 69 | 26.625 | 0.700262 | 0.579812 | 0 | 0 | 0 | 0 | 0.076696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
afb97fc46b6886511e2d3d94b66677a30f955bde | 2,462 | py | Python | angular_flask/utils.py | rsom777/Blog | a9a3f9bee8734415b316717236e632127c7c894c | [
"MIT"
] | 7 | 2016-02-10T12:58:20.000Z | 2021-07-29T03:01:22.000Z | angular_flask/utils.py | Clarity-89/blog | 36fecc1a5a70777bbff250c5da982d7a0e7c3334 | [
"MIT"
] | 4 | 2021-06-08T18:58:38.000Z | 2022-03-11T23:13:47.000Z | angular_flask/utils.py | rsom777/Blog | a9a3f9bee8734415b316717236e632127c7c894c | [
"MIT"
] | 1 | 2016-02-13T21:42:24.000Z | 2016-02-13T21:42:24.000Z | """
Helper functions for controllers.py
"""
import os, boto3, uuid, io
from PIL import Image
from flask.ext.httpauth import HTTPBasicAuth
from flask import request, abort
from angular_flask.models import *
auth = HTTPBasicAuth()
@auth.verify_password
def verify_password(username_or_token, password):
"""
Ch... | 31.974026 | 84 | 0.642973 | 326 | 2,462 | 4.776074 | 0.380368 | 0.026975 | 0.038536 | 0.030829 | 0.074502 | 0.074502 | 0.052665 | 0.052665 | 0.052665 | 0 | 0 | 0.015583 | 0.24411 | 2,462 | 76 | 85 | 32.394737 | 0.821064 | 0.282291 | 0 | 0.162791 | 0 | 0 | 0.063208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0.093023 | 0.116279 | 0 | 0.302326 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
afbac0d5d7ba34724bb8dd2c80a6fa71ddd2fe6e | 5,367 | py | Python | core/models.py | aashish01/FYP-Project | 03e4b394a085d1b795a9b6e0859c6be1ea4695bc | [
"MIT"
] | null | null | null | core/models.py | aashish01/FYP-Project | 03e4b394a085d1b795a9b6e0859c6be1ea4695bc | [
"MIT"
] | null | null | null | core/models.py | aashish01/FYP-Project | 03e4b394a085d1b795a9b6e0859c6be1ea4695bc | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django_countries.fields import CountryField
from django.core.validators import MinValueValidator, MaxValueValidator
# Create your models here.
from django.shortcuts import reverse
from django.db.models.signals import pre_save
from Ecommerce.... | 29.651934 | 101 | 0.701323 | 661 | 5,367 | 5.485628 | 0.240545 | 0.053778 | 0.042471 | 0.066189 | 0.447876 | 0.343354 | 0.245725 | 0.230281 | 0.18588 | 0.15444 | 0 | 0.007771 | 0.184833 | 5,367 | 180 | 102 | 29.816667 | 0.821029 | 0.004472 | 0 | 0.183206 | 0 | 0 | 0.03899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114504 | false | 0 | 0.053435 | 0.091603 | 0.732824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
afc76f0b6eec1d30c41f7052bc2f18588567488b | 48,636 | py | Python | djangoproj/djangoapp/crawler/b_crawler.py | pbarton666/buzz_bot | 9f44c66e8ecb10e231f70989421f164d7a55029a | [
"MIT"
] | null | null | null | djangoproj/djangoapp/crawler/b_crawler.py | pbarton666/buzz_bot | 9f44c66e8ecb10e231f70989421f164d7a55029a | [
"MIT"
] | null | null | null | djangoproj/djangoapp/crawler/b_crawler.py | pbarton666/buzz_bot | 9f44c66e8ecb10e231f70989421f164d7a55029a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import with_statement
import logging
# Library path
import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
# Standard libraries
import atexit
import random
import re
import socket
import threading
import time
import traceback
import weakref
import x... | 39.931034 | 143 | 0.60079 | 5,635 | 48,636 | 5.068678 | 0.15173 | 0.025033 | 0.015125 | 0.007002 | 0.241405 | 0.175163 | 0.141867 | 0.112247 | 0.109096 | 0.103984 | 0 | 0.001768 | 0.313924 | 48,636 | 1,218 | 144 | 39.931034 | 0.854202 | 0.128321 | 0 | 0.371512 | 0 | 0 | 0.141649 | 0.011769 | 0 | 0 | 0 | 0.007389 | 0 | 0 | null | null | 0.035242 | 0.0558 | null | null | 0.023495 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
afcbd9d677dc84493c1282995e999657ccf319f3 | 880 | py | Python | connection_speed.py | r-xela/lm_connection_speed | dcac7875456f1d33e1736906be1dfbab5d10d8f8 | [
"MIT"
] | 2 | 2019-11-19T06:52:29.000Z | 2020-02-05T09:41:36.000Z | connection_speed.py | r-xela/lm_connection_speed | dcac7875456f1d33e1736906be1dfbab5d10d8f8 | [
"MIT"
] | null | null | null | connection_speed.py | r-xela/lm_connection_speed | dcac7875456f1d33e1736906be1dfbab5d10d8f8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import json
import requests
import speedtest
requests.packages.urllib3.disable_warnings()
speedtester = speedtest.Speedtest()
best_server = speedtester.get_best_server()
DL = speedtester.download()
UL = speedtester.upload()
dl_rate = "DL {:.2f}".format(DL / 1000 / 10... | 20.952381 | 101 | 0.594318 | 107 | 880 | 4.757009 | 0.504673 | 0.086444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043544 | 0.243182 | 880 | 41 | 102 | 21.463415 | 0.719219 | 0.048864 | 0 | 0 | 0 | 0 | 0.172662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
afd2ea40e2f5a7faa8cf35b0826b81376a8afe1c | 763 | py | Python | src/models/scraping_session.py | magnublo/msc-darkweb-scraping | 7cfb20d9013534d2ad71c388ee59f70b8450773c | [
"MIT"
] | null | null | null | src/models/scraping_session.py | magnublo/msc-darkweb-scraping | 7cfb20d9013534d2ad71c388ee59f70b8450773c | [
"MIT"
] | null | null | null | src/models/scraping_session.py | magnublo/msc-darkweb-scraping | 7cfb20d9013534d2ad71c388ee59f70b8450773c | [
"MIT"
] | null | null | null | import datetime
from sqlalchemy import Column, Integer, DateTime, CHAR, Boolean, String
from definitions import MARKET_NAME_COLUMN_LENGTH, Base
TABLE_NAME = 'scraping_session'
PRIMARY_KEY = 'id'
TABLE_NAME_AND_PRIMARY_KEY = TABLE_NAME+"."+PRIMARY_KEY
class ScrapingSession(Base):
__tablename__ = TABLE_NAME
... | 33.173913 | 71 | 0.775885 | 96 | 763 | 5.833333 | 0.479167 | 0.089286 | 0.057143 | 0.078571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003049 | 0.140236 | 763 | 23 | 72 | 33.173913 | 0.85061 | 0 | 0 | 0 | 0 | 0 | 0.024869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.823529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
bb6a943810cf5bcd10e646a4f9af854a06a95eb2 | 561 | py | Python | config.py | Utekhin/cats_bot | 045aeb516b5e41eb6e68cd4de2a6b2ff1f2451bb | [
"Unlicense"
] | null | null | null | config.py | Utekhin/cats_bot | 045aeb516b5e41eb6e68cd4de2a6b2ff1f2451bb | [
"Unlicense"
] | null | null | null | config.py | Utekhin/cats_bot | 045aeb516b5e41eb6e68cd4de2a6b2ff1f2451bb | [
"Unlicense"
] | null | null | null | # Api key for developers giphy api
GIPHY_API_KEY = 'tM7Id7575757ajDyWx4FyTgJ9DfkArIR'
#
BOT_API_TOKEN = '104565657:AAGFz8aO5757zHRCweJfQt0QvwHPdVI8sVS0'
# Text blocks
WELCOME_TEXT = "Hi there!\nI'm catlover bot\nUse buttons or type anything to get your cats"
RENDER_TEXT = "Input your text to place it over random cat... | 40.071429 | 100 | 0.782531 | 90 | 561 | 4.755556 | 0.622222 | 0.070093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059548 | 0.131907 | 561 | 13 | 101 | 43.153846 | 0.819302 | 0.080214 | 0 | 0 | 0 | 0.142857 | 0.730469 | 0.152344 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb6e83b867f98d34ae7a732768467cc55e863104 | 2,166 | py | Python | aux/backend.py | bischjer/auxiliary | e42d8a4af43c9bd4d816c03edc2465640635b46b | [
"BSD-3-Clause"
] | null | null | null | aux/backend.py | bischjer/auxiliary | e42d8a4af43c9bd4d816c03edc2465640635b46b | [
"BSD-3-Clause"
] | null | null | null | aux/backend.py | bischjer/auxiliary | e42d8a4af43c9bd4d816c03edc2465640635b46b | [
"BSD-3-Clause"
] | null | null | null | from twisted.internet import reactor, threads
import threading
import functools
import aux.protocol as protocol_module
class Backend(object):
def __init__(self):
self.thread = None
self.reactor = reactor
self.event = threading.Event()
self.protocols = protocols_module
def star... | 34.380952 | 77 | 0.588181 | 239 | 2,166 | 5.133891 | 0.376569 | 0.0652 | 0.04564 | 0.04401 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00273 | 0.323638 | 2,166 | 62 | 78 | 34.935484 | 0.834812 | 0.074331 | 0 | 0 | 0 | 0 | 0.054973 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 1 | 0.208333 | false | 0 | 0.083333 | 0.020833 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb6f66c2078b7e51a6fa2487a962132799c32ca3 | 1,857 | py | Python | PyNeuralNetwork/PyNet/old/LoadNetwork.py | mattkjames7/PyNeuralNetwork | edbee96aa9039d22e83253700edaf3b98d4ed9d3 | [
"MIT"
] | null | null | null | PyNeuralNetwork/PyNet/old/LoadNetwork.py | mattkjames7/PyNeuralNetwork | edbee96aa9039d22e83253700edaf3b98d4ed9d3 | [
"MIT"
] | null | null | null | PyNeuralNetwork/PyNet/old/LoadNetwork.py | mattkjames7/PyNeuralNetwork | edbee96aa9039d22e83253700edaf3b98d4ed9d3 | [
"MIT"
] | null | null | null | import numpy as np
import os
from .NeuralNetwork import NeuralNetwork
def LoadNetwork(FileName):
if os.path.isfile(FileName) == False:
print('file not found')
return None
f = open(FileName,'rb')
Trained = np.fromfile(f,dtype='bool8',count=1)[0]
L = np.fromfile(f,dtype='int32',count=1)[0]
s = np.fromfile(f,dty... | 26.15493 | 91 | 0.639203 | 317 | 1,857 | 3.74448 | 0.192429 | 0.192081 | 0.15754 | 0.229149 | 0.411963 | 0.394271 | 0.32519 | 0.121314 | 0.050548 | 0 | 0 | 0.054122 | 0.144319 | 1,857 | 70 | 92 | 26.528571 | 0.692889 | 0 | 0 | 0.051724 | 0 | 0 | 0.099085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0 | 0.051724 | 0 | 0.103448 | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb729d4d6e42fd5fc5797bb2c44ac42465748b37 | 4,581 | py | Python | lunr/storage/helper/utils/jobs.py | PythonGirlSam/lunr | 9476436a46d377fab26674d41ac7444d98df1cbd | [
"Apache-2.0"
] | 6 | 2015-11-09T14:16:26.000Z | 2018-04-05T14:27:35.000Z | lunr/storage/helper/utils/jobs.py | PythonGirlSam/lunr | 9476436a46d377fab26674d41ac7444d98df1cbd | [
"Apache-2.0"
] | 16 | 2016-01-28T20:16:47.000Z | 2019-03-07T07:30:29.000Z | lunr/storage/helper/utils/jobs.py | SaumyaRackspace/lunr | 9476436a46d377fab26674d41ac7444d98df1cbd | [
"Apache-2.0"
] | 18 | 2015-10-23T10:10:52.000Z | 2020-12-15T07:11:52.000Z | # Copyright (c) 2011-2016 Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | 33.933333 | 76 | 0.619079 | 586 | 4,581 | 4.767918 | 0.397611 | 0.046528 | 0.030064 | 0.02577 | 0.183608 | 0.154975 | 0.116321 | 0.088404 | 0.069077 | 0.069077 | 0 | 0.007174 | 0.300153 | 4,581 | 134 | 77 | 34.186567 | 0.864317 | 0.347086 | 0 | 0.263889 | 0 | 0 | 0.114137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013889 | 0.097222 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb7b49b9d3a841fab24f11c1b2e5148f79ec7196 | 1,085 | py | Python | FirebaseManager.py | ksolanoj/GenderAge-Recognition | 98cebe38949395ce8a80f7342ab433551566f470 | [
"MIT"
] | null | null | null | FirebaseManager.py | ksolanoj/GenderAge-Recognition | 98cebe38949395ce8a80f7342ab433551566f470 | [
"MIT"
] | null | null | null | FirebaseManager.py | ksolanoj/GenderAge-Recognition | 98cebe38949395ce8a80f7342ab433551566f470 | [
"MIT"
] | null | null | null | import pyrebase
import time
from FaceRecognitionManager import *
firebaseConfig = {
"apiKey": "AIzaSyCPera806NQnThRLv10pURrWa9GkrUKqYs",
"authDomain": "iaproject-29018.firebaseapp.com",
"projectId": "iaproject-29018",
"storageBucket": "iaproject-29018.appspot.com",
"messagingSenderId": "81705354091... | 24.111111 | 60 | 0.735484 | 106 | 1,085 | 7.462264 | 0.537736 | 0.053097 | 0.037927 | 0.072061 | 0.103666 | 0.103666 | 0.103666 | 0 | 0 | 0 | 0 | 0.07234 | 0.133641 | 1,085 | 44 | 61 | 24.659091 | 0.769149 | 0 | 0 | 0 | 0 | 0 | 0.297674 | 0.128372 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.107143 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bb7d53fc42ddf21732045e254f33bde1ebc964cd | 509 | py | Python | gallery/migrations/0008_shopitem.py | jeffykle/kf-public | 2ea86908709f9903b626e7be192126053f39dfd2 | [
"MIT"
] | null | null | null | gallery/migrations/0008_shopitem.py | jeffykle/kf-public | 2ea86908709f9903b626e7be192126053f39dfd2 | [
"MIT"
] | null | null | null | gallery/migrations/0008_shopitem.py | jeffykle/kf-public | 2ea86908709f9903b626e7be192126053f39dfd2 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-09-06 15:37
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('gallery', '0007_auto_20200905_1239'),
]
operations = [
migrations.CreateModel(
name='ShopItem',
fields=[
],
... | 20.36 | 47 | 0.475442 | 40 | 509 | 5.975 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 0.398821 | 509 | 24 | 48 | 21.208333 | 0.683007 | 0.084479 | 0 | 0 | 1 | 0 | 0.172414 | 0.049569 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb9d1db5941fe5d64b784ab784da0525956a4c5d | 1,970 | py | Python | Tests/Methods/Geometry/test_split_line.py | tobsen2code/pyleecan | 5b1ded9e389e0c79ed7b7c878b6e939f2d9962e9 | [
"Apache-2.0"
] | 95 | 2019-01-23T04:19:45.000Z | 2022-03-17T18:22:10.000Z | Tests/Methods/Geometry/test_split_line.py | Eomys/Pyleecan | 4d7f0cbabf0311006963e7a2f435db2ecd901118 | [
"Apache-2.0"
] | 366 | 2019-02-20T07:15:08.000Z | 2022-03-31T13:37:23.000Z | Tests/Methods/Geometry/test_split_line.py | Eomys/Pyleecan | 4d7f0cbabf0311006963e7a2f435db2ecd901118 | [
"Apache-2.0"
] | 74 | 2019-01-24T01:47:31.000Z | 2022-02-25T05:44:42.000Z | from pyleecan.Classes.Segment import Segment
from pyleecan.Classes.SurfLine import SurfLine
import pytest
line_list = list()
line_list.append(Segment(begin=-1j, end=1j))
line_list.append(Segment(begin=1j, end=1j + 1))
line_list.append(Segment(begin=1j + 1, end=-1j + 1))
line_list.append(Segment(begin=-1j + 1, end=-1j)... | 28.970588 | 80 | 0.665482 | 310 | 1,970 | 3.945161 | 0.174194 | 0.137367 | 0.137367 | 0.206051 | 0.672118 | 0.51758 | 0.51758 | 0.448896 | 0.417825 | 0.367948 | 0 | 0.030883 | 0.178173 | 1,970 | 67 | 81 | 29.402985 | 0.724521 | 0.016244 | 0 | 0.163636 | 0 | 0 | 0.118346 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 1 | 0.018182 | false | 0 | 0.054545 | 0 | 0.072727 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bb9f7eff3676c2cd8c7a032e35c34412da15bfa9 | 4,767 | py | Python | Topic model/tfidf.py | dsh651470774/dshAlgorithm | 4364ef80150ece200f615786da919b617241fbb0 | [
"MIT"
] | null | null | null | Topic model/tfidf.py | dsh651470774/dshAlgorithm | 4364ef80150ece200f615786da919b617241fbb0 | [
"MIT"
] | null | null | null | Topic model/tfidf.py | dsh651470774/dshAlgorithm | 4364ef80150ece200f615786da919b617241fbb0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import csv
import jieba
import codecs
import re
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
import xlwt
from sklearn import metrics
import matplotlib.pyplot as plt
import math
import jieba.posseg as p... | 32.209459 | 100 | 0.650934 | 608 | 4,767 | 5.069079 | 0.342105 | 0.012979 | 0.019468 | 0.021415 | 0.13952 | 0.116158 | 0.075925 | 0.075925 | 0.047372 | 0.047372 | 0 | 0.027084 | 0.202224 | 4,767 | 148 | 101 | 32.209459 | 0.783329 | 0.202643 | 0 | 0.035398 | 0 | 0 | 0.059245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00885 | 0.106195 | null | null | 0.017699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bba5a76f64489bf2de3b85aef2cc1d071877e900 | 1,495 | py | Python | LINKEDLIST_std.py | Furion1995/little_projects | 5373da016e8f7141a6984f7bc42b7b4ce002cbf1 | [
"MIT"
] | null | null | null | LINKEDLIST_std.py | Furion1995/little_projects | 5373da016e8f7141a6984f7bc42b7b4ce002cbf1 | [
"MIT"
] | null | null | null | LINKEDLIST_std.py | Furion1995/little_projects | 5373da016e8f7141a6984f7bc42b7b4ce002cbf1 | [
"MIT"
] | null | null | null | class Node:
def __init__(self, d, n=None, p=None):
self.data = d
self.next_node = n
self.prev_node = p
def __str__(self):
return '(' + str(self.data) + ')'
class LinkedList:
def __init__(self, r=None):
self.root = r
self.size = 0
def... | 27.685185 | 65 | 0.495652 | 190 | 1,495 | 3.663158 | 0.205263 | 0.206897 | 0.103448 | 0.114943 | 0.387931 | 0.341954 | 0.270115 | 0.183908 | 0.183908 | 0.183908 | 0 | 0.003488 | 0.424749 | 1,495 | 54 | 66 | 27.685185 | 0.805814 | 0.045485 | 0 | 0.318182 | 0 | 0 | 0.005839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.159091 | false | 0 | 0 | 0.022727 | 0.318182 | 0.068182 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bbaa2e3f7ffa38e0c06f3e1e6012621b39ff1437 | 4,283 | py | Python | BGD_sample.py | AnitaPetzler/BayesGauss | 52bb098351363988a660d465df3b93cceec22bb7 | [
"MIT"
] | 2 | 2018-07-24T04:42:14.000Z | 2020-04-05T09:48:43.000Z | BGD_sample.py | AnitaPetzler/BayesGauss | 52bb098351363988a660d465df3b93cceec22bb7 | [
"MIT"
] | null | null | null | BGD_sample.py | AnitaPetzler/BayesGauss | 52bb098351363988a660d465df3b93cceec22bb7 | [
"MIT"
] | null | null | null | import BGD
import pickle
'''
Sample code showing implementation of the Bayesian Gaussian Decomposition algorithm BGD
(https://github.com/AnitaPetzler/BayesGauss/)
'''
def FindVelIndex(min_vel, max_vel, vel_axis):
'''
Finds the min and max indices corresponding to
the min and max velocities given.
'''
dv = vel_... | 44.154639 | 197 | 0.691805 | 689 | 4,283 | 3.970972 | 0.161103 | 0.105994 | 0.098684 | 0.065789 | 0.653874 | 0.641813 | 0.58845 | 0.487573 | 0.461988 | 0.388158 | 0 | 0.101421 | 0.162036 | 4,283 | 96 | 198 | 44.614583 | 0.660908 | 0.059071 | 0 | 0.424242 | 0 | 0 | 0.141273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030303 | null | null | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bbac6de5ff9022503ee42e6f0104e2088e46636f | 1,692 | py | Python | producer.py | CloudBreadPaPa/azure-eventhub-kafka-python | f3d4b7041e68634c9f378ed7911f4f6d757e5bd1 | [
"MIT"
] | null | null | null | producer.py | CloudBreadPaPa/azure-eventhub-kafka-python | f3d4b7041e68634c9f378ed7911f4f6d757e5bd1 | [
"MIT"
] | null | null | null | producer.py | CloudBreadPaPa/azure-eventhub-kafka-python | f3d4b7041e68634c9f378ed7911f4f6d757e5bd1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (c) Microsoft Corporation. All rights reserved.
# Copyright 2016 Confluent Inc.
# Licensed under the MIT License.
# Licensed under the Apache License, Version 2.0
#
# Original Confluent sample modified for use with Azure Event Hubs for Apache Kafka Ecosystems
import os
import sys
fr... | 32.538462 | 117 | 0.654255 | 217 | 1,692 | 4.976959 | 0.516129 | 0.018519 | 0.048148 | 0.038889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.223995 | 1,692 | 52 | 118 | 32.538462 | 0.812643 | 0.239953 | 0 | 0 | 0 | 0 | 0.306363 | 0.018068 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0.064516 | 0.096774 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bbb3f65975fc9ec5f5e9f5d2e43f59df49df245c | 4,662 | py | Python | proxy/buffer_io.py | CMA2401PT/Phoenix-Transfer | 183f0a01e796a2d6b33d8853efb585730d05e761 | [
"MIT"
] | 3 | 2022-01-25T06:27:37.000Z | 2022-01-26T09:01:23.000Z | proxy/buffer_io.py | CMA2401PT/Phoenix-Transfer | 183f0a01e796a2d6b33d8853efb585730d05e761 | [
"MIT"
] | null | null | null | proxy/buffer_io.py | CMA2401PT/Phoenix-Transfer | 183f0a01e796a2d6b33d8853efb585730d05e761 | [
"MIT"
] | null | null | null | import struct
import numpy as np
from .nbt import NBTFile
import io
class BufferDecoder(object):
def __init__(self,bytes) -> None:
self.bytes=bytes
self.curr=0
def read_var_uint32(self):
# 我nm真的有必要为了几个比特省到这种地步吗??uint32最多也就5个比特吧??
i,v=0,0
while i<35:
... | 29.694268 | 84 | 0.566066 | 664 | 4,662 | 3.802711 | 0.134036 | 0.120396 | 0.072079 | 0.087525 | 0.485149 | 0.434851 | 0.434851 | 0.39604 | 0.356436 | 0.261386 | 0 | 0.046009 | 0.29601 | 4,662 | 157 | 85 | 29.694268 | 0.723339 | 0.017375 | 0 | 0.306569 | 0 | 0 | 0.022057 | 0 | 0 | 0 | 0.006988 | 0 | 0.014599 | 1 | 0.240876 | false | 0 | 0.029197 | 0.014599 | 0.437956 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bbcc743437772f19cd8d630fb41ad044ef11b311 | 377 | py | Python | ccc/compliancedb.py | busunkim96/cc-utils | aa864b1fad3061410907d6b93b8aee8cd25f33b5 | [
"Apache-2.0"
] | null | null | null | ccc/compliancedb.py | busunkim96/cc-utils | aa864b1fad3061410907d6b93b8aee8cd25f33b5 | [
"Apache-2.0"
] | null | null | null | ccc/compliancedb.py | busunkim96/cc-utils | aa864b1fad3061410907d6b93b8aee8cd25f33b5 | [
"Apache-2.0"
] | null | null | null | import ci.util
from dso.compliancedb.db import ComplianceDB
def default_with_cfg_name(
cfg_name: str,
):
cfg_fac = ci.util.ctx().cfg_factory()
cfg = cfg_fac.compliancedb(cfg_name)
return ComplianceDB(
username=cfg.credentials().username(),
password=cfg.credentials().password(),
... | 23.5625 | 46 | 0.665782 | 46 | 377 | 5.282609 | 0.478261 | 0.08642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 377 | 15 | 47 | 25.133333 | 0.812709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bbe5fcfc34677240f400e7f20bc62353f50a8f33 | 3,774 | py | Python | rejected_article_tracker/tests/test_Result.py | sagepublishing/rejected_article_tracker_pkg | 6b7616b14816406f012980695404bc5bdd7ab93a | [
"MIT"
] | 10 | 2020-12-15T17:28:06.000Z | 2022-03-11T21:50:47.000Z | rejected_article_tracker/tests/test_Result.py | ad48/rejected_article_tracker_pkg | 90a5042b730b01b371c0be67e1e915daa322251a | [
"MIT"
] | 11 | 2021-06-15T00:42:35.000Z | 2021-08-02T16:15:58.000Z | rejected_article_tracker/tests/test_Result.py | ad48/rejected_article_tracker_pkg | 90a5042b730b01b371c0be67e1e915daa322251a | [
"MIT"
] | 2 | 2020-09-14T14:12:38.000Z | 2021-08-02T19:04:14.000Z | import unittest
import pandas as pd
from ..src.Result import Result
class TestResult(unittest.TestCase):
def test__to_dict(self):
original = {
"manuscript_id": 'TVA-18-057',
"decision_date": pd.to_datetime("2020-09-01", errors='coerce', utc=True),
"submission_date": pd.... | 42.886364 | 117 | 0.571542 | 424 | 3,774 | 4.955189 | 0.266509 | 0.13565 | 0.16278 | 0.164208 | 0.66159 | 0.549262 | 0.549262 | 0.531652 | 0.531652 | 0.489767 | 0 | 0.081825 | 0.268151 | 3,774 | 87 | 118 | 43.37931 | 0.678856 | 0 | 0 | 0.5 | 0 | 0 | 0.38749 | 0.03154 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.026316 | false | 0 | 0.039474 | 0 | 0.078947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bbed18228c777bfe22896ceaa83dbf84543deac1 | 7,856 | py | Python | third_party/hlpr_object_labeling/src/object_labeling.py | kirmani/hlpr_cadence | b8756f2ef01ea2c19e1f9481190dac8e541c7244 | [
"MIT"
] | null | null | null | third_party/hlpr_object_labeling/src/object_labeling.py | kirmani/hlpr_cadence | b8756f2ef01ea2c19e1f9481190dac8e541c7244 | [
"MIT"
] | null | null | null | third_party/hlpr_object_labeling/src/object_labeling.py | kirmani/hlpr_cadence | b8756f2ef01ea2c19e1f9481190dac8e541c7244 | [
"MIT"
] | 1 | 2020-12-29T21:17:20.000Z | 2020-12-29T21:17:20.000Z | #!/usr/bin/env python
import os
import sys, time, math, cmath
from std_msgs.msg import String, Header
import numpy as np
import cv2
import roslib
import rospy
import pdb
import tf
import itertools
from Tkinter import *
from hlpr_feature_extraction.msg import PcFeatureArray
from hlpr_object_labeling.msg import LabeledO... | 30.568093 | 149 | 0.670952 | 1,149 | 7,856 | 4.510879 | 0.24456 | 0.016207 | 0.006946 | 0.008682 | 0.108817 | 0.083735 | 0.0683 | 0.052093 | 0.052093 | 0.052093 | 0 | 0.022289 | 0.194756 | 7,856 | 256 | 150 | 30.6875 | 0.797028 | 0.096105 | 0 | 0.144231 | 0 | 0 | 0.050297 | 0.009183 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.067308 | null | null | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bbf0ddabe647e613bcb86f8a0927b4b545c1d938 | 622 | py | Python | main.py | hadarohana/fairseq | badd25fd0e9b8e9b7f98fca8aa5d0decf226fbf6 | [
"MIT"
] | null | null | null | main.py | hadarohana/fairseq | badd25fd0e9b8e9b7f98fca8aa5d0decf226fbf6 | [
"MIT"
] | null | null | null | main.py | hadarohana/fairseq | badd25fd0e9b8e9b7f98fca8aa5d0decf226fbf6 | [
"MIT"
] | null | null | null | # Load the model in fairseq
import torch
from fairseq.models.roberta import RobertaModel
roberta = RobertaModel.from_pretrained(model_name_or_path='./roberta.base', checkpoint_file='model.pt')
roberta.eval() # disable dropout (or leave in train mode to finetune)
tokens = roberta.encode('Hello world!')
print(tokens)
#... | 38.875 | 103 | 0.73955 | 86 | 622 | 5.290698 | 0.488372 | 0.065934 | 0.079121 | 0.10989 | 0.408791 | 0.408791 | 0.408791 | 0.408791 | 0.408791 | 0.408791 | 0 | 0.023853 | 0.123794 | 622 | 16 | 104 | 38.875 | 0.811009 | 0.586817 | 0 | 0 | 0 | 0 | 0.138211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bbfa3f69cc49c6e544c65ed2b974ba1990bc774e | 662 | py | Python | component/parameter/directory.py | BuddyVolly/bfast_preanalysis | 9c19d4b77e32e2921ae126deb11ea615b2bf6c63 | [
"MIT"
] | 1 | 2021-09-01T18:27:32.000Z | 2021-09-01T18:27:32.000Z | component/parameter/directory.py | BuddyVolly/bfast_preanalysis | 9c19d4b77e32e2921ae126deb11ea615b2bf6c63 | [
"MIT"
] | null | null | null | component/parameter/directory.py | BuddyVolly/bfast_preanalysis | 9c19d4b77e32e2921ae126deb11ea615b2bf6c63 | [
"MIT"
] | null | null | null | from pathlib import Path
result_dir = Path().home().joinpath('module_results/bfast_preanalysis')
start = """
### Start date selection
Pick the date of the timeseries' start.
"""
end = """
### End date selection
Pick the date of the timeseries' end.
"""
select = """
### Satellite selection
Select the satell... | 18.914286 | 95 | 0.71148 | 88 | 662 | 5.318182 | 0.625 | 0.055556 | 0.07265 | 0.08547 | 0.166667 | 0.166667 | 0.166667 | 0.166667 | 0 | 0 | 0 | 0 | 0.176737 | 662 | 34 | 96 | 19.470588 | 0.858716 | 0 | 0 | 0.227273 | 0 | 0 | 0.785174 | 0.048412 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a52047741b5b70b594040e52be75e7cc7149d666 | 2,629 | py | Python | DatasetTools/DownloadDataset/DownloadSingleDataset.py | frenky-strasak/HTTPSDetector | 2b0c8d171b345ec0051603fc3c2730b6e62a295e | [
"MIT"
] | 9 | 2020-02-06T18:39:58.000Z | 2022-02-04T12:14:20.000Z | DatasetTools/DownloadDataset/DownloadSingleDataset.py | frenky-strasak/HTTPSDetector | 2b0c8d171b345ec0051603fc3c2730b6e62a295e | [
"MIT"
] | 1 | 2018-03-30T08:47:27.000Z | 2019-04-30T09:08:23.000Z | DatasetTools/DownloadDataset/DownloadSingleDataset.py | frenky-strasak/HTTPSDetector | 2b0c8d171b345ec0051603fc3c2730b6e62a295e | [
"MIT"
] | 4 | 2018-07-13T16:31:11.000Z | 2021-01-07T07:58:05.000Z | """
Download all datasets which have bro folder.
USAGE:
python DownloadDatasets.py https://mcfp.felk.cvut.cz/publicDatasets/
"""
import sys
from bs4 import BeautifulSoup
import requests
import urllib2
import os
import shutil
def find_files(url):
# url = "https://mcfp.felk.cvut.cz/publicDatasets/"
soup = Beau... | 26.555556 | 113 | 0.625713 | 364 | 2,629 | 4.307692 | 0.335165 | 0.045918 | 0.030612 | 0.021684 | 0.219388 | 0.219388 | 0.146684 | 0.146684 | 0.146684 | 0.146684 | 0 | 0.019539 | 0.240776 | 2,629 | 98 | 114 | 26.826531 | 0.766032 | 0.052872 | 0 | 0.090909 | 0 | 0 | 0.10276 | 0.031847 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015152 | 0.090909 | null | null | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a529c90f213fe79c3b9169a7406894359c35c6e8 | 421 | py | Python | about/models.py | sahin88/Django_RestFramework_ReactJS_PortfolioApp_Frontend | 5dd2bb70af93bd115d637cf56e0aeadb7ffc991b | [
"Unlicense"
] | null | null | null | about/models.py | sahin88/Django_RestFramework_ReactJS_PortfolioApp_Frontend | 5dd2bb70af93bd115d637cf56e0aeadb7ffc991b | [
"Unlicense"
] | null | null | null | about/models.py | sahin88/Django_RestFramework_ReactJS_PortfolioApp_Frontend | 5dd2bb70af93bd115d637cf56e0aeadb7ffc991b | [
"Unlicense"
] | null | null | null | from django.db import models
class About(models.Model):
about_image = models.ImageField(upload_to="about/")
about_exp1 = models.TextField(blank=True, null=True)
about_exp2 = models.TextField(blank=True, null=True)
class Programms(models.Model):
name = models.CharField(max_length=255)
icon = mode... | 30.071429 | 71 | 0.743468 | 58 | 421 | 5.275862 | 0.465517 | 0.088235 | 0.127451 | 0.166667 | 0.385621 | 0.20915 | 0 | 0 | 0 | 0 | 0 | 0.027548 | 0.137767 | 421 | 13 | 72 | 32.384615 | 0.815427 | 0 | 0 | 0 | 0 | 0 | 0.014252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a53052a9127438ec7135ae361985c461e22d68e3 | 627 | py | Python | z3py/examples/fixedpoint.3.py | rainoftime/rainoftime.github.io | d6316f153db0ed96309d81a5f32af9887c6f1a9a | [
"MIT"
] | 1 | 2021-08-01T07:28:03.000Z | 2021-08-01T07:28:03.000Z | z3py/examples/fixedpoint.3.py | rainoftime/rainoftime.github.io | d6316f153db0ed96309d81a5f32af9887c6f1a9a | [
"MIT"
] | null | null | null | z3py/examples/fixedpoint.3.py | rainoftime/rainoftime.github.io | d6316f153db0ed96309d81a5f32af9887c6f1a9a | [
"MIT"
] | null | null | null | fp = Fixedpoint()
fp.set(engine='datalog')
s = BitVecSort(3)
edge = Function('edge', s, s, BoolSort())
path = Function('path', s, s, BoolSort())
a = Const('a',s)
b = Const('b',s)
c = Const('c',s)
fp.register_relation(path,edge)
fp.declare_var(a,b,c)
fp.rule(path(a,b), edge(a,b))
fp.rule(path(a,c), [edge(a,b),path(b,c... | 19.59375 | 60 | 0.645933 | 126 | 627 | 3.198413 | 0.333333 | 0.019851 | 0.074442 | 0.054591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042202 | 0.130782 | 627 | 31 | 61 | 20.225806 | 0.697248 | 0 | 0 | 0 | 0 | 0 | 0.15016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a53c73e6a1c97e6393e77cb9ef4bfbc7e6178af5 | 309 | py | Python | examples/sync_cmdclass_pyproject/sync_cmdclass_pyproject/__init__.py | linshoK/pysen | 2b84a15240c5a47cadd8e3fc8392c54c2995b0b1 | [
"MIT"
] | 423 | 2021-03-22T08:45:12.000Z | 2022-03-31T21:05:53.000Z | examples/sync_cmdclass_pyproject/sync_cmdclass_pyproject/__init__.py | linshoK/pysen | 2b84a15240c5a47cadd8e3fc8392c54c2995b0b1 | [
"MIT"
] | 1 | 2022-02-23T08:53:24.000Z | 2022-03-23T14:11:54.000Z | examples/sync_cmdclass_pyproject/sync_cmdclass_pyproject/__init__.py | linshoK/pysen | 2b84a15240c5a47cadd8e3fc8392c54c2995b0b1 | [
"MIT"
] | 9 | 2021-03-26T14:20:07.000Z | 2022-03-24T13:17:06.000Z | from typing import Any, Callable, Optional, Sequence, Set, Tuple
def foo(
a: Any,
b: Callable[[], Tuple[int, int, str]],
c: Set[str],
d: Optional[Sequence[int]] = None,
e: Any = None,
) -> None:
pass
print("Hello world")
foo(a=1, b=lambda: (1, 2, "hoge"), c=set(), d=None, e=None)
| 19.3125 | 64 | 0.576052 | 49 | 309 | 3.632653 | 0.55102 | 0.179775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012552 | 0.226537 | 309 | 15 | 65 | 20.6 | 0.732218 | 0 | 0 | 0 | 0 | 0 | 0.048544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.090909 | 0 | 0.181818 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a53de52fa31c4f92a0313005365df2eb92be401a | 13,095 | py | Python | intersight/models/firmware_base_distributable_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 21 | 2018-03-29T14:20:35.000Z | 2021-10-13T05:11:41.000Z | intersight/models/firmware_base_distributable_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 14 | 2018-01-30T15:45:46.000Z | 2022-02-23T14:23:21.000Z | intersight/models/firmware_base_distributable_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 18 | 2018-01-03T15:09:56.000Z | 2021-07-16T02:21:54.000Z | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | 34.370079 | 1,052 | 0.637342 | 1,478 | 13,095 | 5.492558 | 0.149526 | 0.050259 | 0.177384 | 0.14782 | 0.536585 | 0.450357 | 0.422764 | 0.331116 | 0.221114 | 0.099039 | 0 | 0.018059 | 0.289576 | 13,095 | 380 | 1,053 | 34.460526 | 0.854563 | 0.465139 | 0 | 0.072289 | 0 | 0 | 0.064064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.156627 | false | 0 | 0.024096 | 0 | 0.301205 | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a53e1875e3ffb9d11000a1729ec3197383f69395 | 301 | py | Python | tests/_testsite/dummyapp01/dummymodule01.py | bastiedotorg/django-precise-bbcode | 567a8a7f104fb7f2c9d59f304791e53d2d8f4dea | [
"BSD-3-Clause"
] | 30 | 2015-01-02T13:43:56.000Z | 2021-02-08T18:43:09.000Z | tests/_testsite/dummyapp01/dummymodule01.py | bastiedotorg/django-precise-bbcode | 567a8a7f104fb7f2c9d59f304791e53d2d8f4dea | [
"BSD-3-Clause"
] | 31 | 2015-01-16T00:25:19.000Z | 2021-12-11T16:40:03.000Z | tests/_testsite/dummyapp01/dummymodule01.py | bastiedotorg/django-precise-bbcode | 567a8a7f104fb7f2c9d59f304791e53d2d8f4dea | [
"BSD-3-Clause"
] | 13 | 2015-07-16T23:25:10.000Z | 2020-08-23T20:12:24.000Z | from precise_bbcode.bbcode.tag import BBCodeTag
from precise_bbcode.tag_pool import tag_pool
class LoadDummyTag(BBCodeTag):
name = 'loaddummy01'
definition_string = '[loaddummy01]{TEXT}[/loaddummy01]'
format_string = '<loaddummy>{TEXT}</loaddummy>'
tag_pool.register_tag(LoadDummyTag)
| 25.083333 | 59 | 0.774086 | 35 | 301 | 6.428571 | 0.485714 | 0.093333 | 0.151111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022642 | 0.119601 | 301 | 11 | 60 | 27.363636 | 0.826415 | 0 | 0 | 0 | 0 | 0 | 0.242525 | 0.20598 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a54137fe06ef5ce0ab292563460307aa98055102 | 628 | py | Python | src/smtv_api/helpers/file_utils.py | AdamDomagalsky/smtv-micro-scpr | 87195f4c0f738a687648b3218a0976c3450d0b6c | [
"Apache-2.0"
] | null | null | null | src/smtv_api/helpers/file_utils.py | AdamDomagalsky/smtv-micro-scpr | 87195f4c0f738a687648b3218a0976c3450d0b6c | [
"Apache-2.0"
] | null | null | null | src/smtv_api/helpers/file_utils.py | AdamDomagalsky/smtv-micro-scpr | 87195f4c0f738a687648b3218a0976c3450d0b6c | [
"Apache-2.0"
] | null | null | null | from functools import wraps
import os
import tempfile
import tarfile
def TemporaryDirectory(func):
'''This decorator creates temporary directory and wraps given fuction'''
@wraps(func)
def wrapper(*args, **kwargs):
cwd = os.getcwd()
with tempfile.TemporaryDirectory() as tmp_path:
... | 25.12 | 76 | 0.664013 | 78 | 628 | 5.24359 | 0.538462 | 0.066015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238854 | 628 | 24 | 77 | 26.166667 | 0.855649 | 0.105096 | 0 | 0 | 0 | 0 | 0.007194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.235294 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a54b2a7114d0961320337ad6306ac67924007c97 | 12,120 | py | Python | possum/utils/pos_util_midpoints.py | morales-gregorio/poSSum3 | 82c7187973c989b9b819f5197af30f46a18c50b9 | [
"MIT"
] | 10 | 2015-08-16T23:41:57.000Z | 2021-04-22T14:59:18.000Z | possum/utils/pos_util_midpoints.py | morales-gregorio/poSSum3 | 82c7187973c989b9b819f5197af30f46a18c50b9 | [
"MIT"
] | 2 | 2015-01-31T08:51:16.000Z | 2015-01-31T08:51:46.000Z | possum/utils/pos_util_midpoints.py | morales-gregorio/poSSum3 | 82c7187973c989b9b819f5197af30f46a18c50b9 | [
"MIT"
] | 4 | 2015-08-16T23:39:02.000Z | 2021-04-16T14:36:27.000Z | #!/usr/bin/env python
# encoding: utf-8
import os
import sys
import itk
from possum import pos_itk_core
from possum import pos_itk_transforms
from possum.pos_common import r
"""
.. note::
Some of the non-cruical, optional functions in this module require vtk
module to be installed. If it is not available t... | 37.06422 | 419 | 0.688119 | 1,569 | 12,120 | 5.182919 | 0.268324 | 0.011067 | 0.011067 | 0.014757 | 0.200689 | 0.188883 | 0.181013 | 0.155804 | 0.155804 | 0.155804 | 0 | 0.028351 | 0.228795 | 12,120 | 326 | 420 | 37.177914 | 0.84166 | 0.174422 | 0 | 0.057143 | 0 | 0 | 0.026592 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0 | null | null | 0.009524 | 0.066667 | null | null | 0.009524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5545c9af19aa05dbe9b113d5eb4e09142537dab | 589 | py | Python | tests/unit/raptiformica/actions/prune/test_ensure_neighbour_removed_from_config_by_host.py | vdloo/raptiformica | e2807e5e913312034161efcbd74525a4b15b37e7 | [
"MIT"
] | 21 | 2016-09-04T11:27:31.000Z | 2019-10-30T08:23:14.000Z | tests/unit/raptiformica/actions/prune/test_ensure_neighbour_removed_from_config_by_host.py | vdloo/raptiformica | e2807e5e913312034161efcbd74525a4b15b37e7 | [
"MIT"
] | 5 | 2017-09-17T15:59:37.000Z | 2018-02-03T14:53:32.000Z | tests/unit/raptiformica/actions/prune/test_ensure_neighbour_removed_from_config_by_host.py | vdloo/raptiformica | e2807e5e913312034161efcbd74525a4b15b37e7 | [
"MIT"
] | 2 | 2017-11-21T18:14:51.000Z | 2017-11-22T01:20:45.000Z | from raptiformica.actions.prune import ensure_neighbour_removed_from_config_by_host
from tests.testcase import TestCase
class TestEnsureNeighbourRemovedFromConfigByHost(TestCase):
def setUp(self):
self._del_neighbour_by_key = self.set_up_patch(
'raptiformica.actions.prune._del_neighbour_by_key... | 34.647059 | 90 | 0.760611 | 78 | 589 | 5.230769 | 0.423077 | 0.058824 | 0.161765 | 0.191176 | 0.411765 | 0.279412 | 0.279412 | 0 | 0 | 0 | 0 | 0.01636 | 0.169779 | 589 | 16 | 91 | 36.8125 | 0.817996 | 0 | 0 | 0 | 0 | 0 | 0.112054 | 0.081494 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5555fcd330320eff5032595c7d55a00418b6f19 | 1,355 | py | Python | src/driving_curriculum/agents/algorithmic/teacher_quintic_polynomials.py | takeitallsource/pac-simulator | 2c00d878047ec4a0247167e8a7de5aec8b474086 | [
"MIT"
] | 1 | 2018-07-14T07:09:23.000Z | 2018-07-14T07:09:23.000Z | src/driving_curriculum/agents/algorithmic/teacher_quintic_polynomials.py | takeitallsource/pac-simulator | 2c00d878047ec4a0247167e8a7de5aec8b474086 | [
"MIT"
] | null | null | null | src/driving_curriculum/agents/algorithmic/teacher_quintic_polynomials.py | takeitallsource/pac-simulator | 2c00d878047ec4a0247167e8a7de5aec8b474086 | [
"MIT"
] | null | null | null | from math import cos, sin
import numpy as np
from ....simulator import Agent
from .quintic_polynomials_planner import quinic_polynomials_planner
class TeacherQuinticPolynomials(Agent):
def learn(self, state, action):
raise NotImplementedError()
def explore(self, state, horizon=1):
raise NotI... | 35.657895 | 110 | 0.604428 | 185 | 1,355 | 4.308108 | 0.389189 | 0.070263 | 0.067754 | 0.04266 | 0.052698 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024565 | 0.278967 | 1,355 | 37 | 111 | 36.621622 | 0.791198 | 0.028782 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.137931 | 0 | 0.413793 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a55fefbb4863fb21e8ba4eac4d67cb2fc8f44ae5 | 6,393 | py | Python | crawl/dirbot/spiders/data.py | okfde/odm-datenerfassung | b2c2ce03f03f66cb6966d36231e11fb62766fab3 | [
"MIT"
] | 5 | 2015-05-25T19:58:55.000Z | 2022-02-11T16:19:40.000Z | crawl/dirbot/spiders/data.py | okfde/odm-datenerfassung | b2c2ce03f03f66cb6966d36231e11fb62766fab3 | [
"MIT"
] | 6 | 2015-01-01T10:57:15.000Z | 2015-02-03T08:27:34.000Z | crawl/dirbot/spiders/data.py | okfde/odm-datenerfassung | b2c2ce03f03f66cb6966d36231e11fb62766fab3 | [
"MIT"
] | null | null | null | import unicodecsv
import metautils
from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from scrapy.selector import Selector
from dirbot.items import Website
class DataSpider(CrawlSpider):
name = "data"
rules = (
# Extract all links a... | 44.395833 | 175 | 0.549351 | 739 | 6,393 | 4.668471 | 0.282815 | 0.046667 | 0.027826 | 0.02087 | 0.241739 | 0.181449 | 0.148986 | 0.117681 | 0.08058 | 0.048116 | 0 | 0.00577 | 0.322227 | 6,393 | 143 | 176 | 44.706294 | 0.790445 | 0.142812 | 0 | 0.226804 | 0 | 0 | 0.162544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061856 | null | null | 0.041237 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a56035e47188136908a1db5c156578d6fc879dd3 | 3,336 | py | Python | kerlas/gym_env.py | imandr/KeRLas | 8c347cbfea982f470372fb7cf8943f4d6bda8a8a | [
"BSD-3-Clause"
] | null | null | null | kerlas/gym_env.py | imandr/KeRLas | 8c347cbfea982f470372fb7cf8943f4d6bda8a8a | [
"BSD-3-Clause"
] | null | null | null | kerlas/gym_env.py | imandr/KeRLas | 8c347cbfea982f470372fb7cf8943f4d6bda8a8a | [
"BSD-3-Clause"
] | null | null | null | import gym, random, numpy as np
class MultiEnv(object):
pass
class MultiGymEnv(MultiEnv):
#
# Convert 1-agent Gym environment into a multi-agent environment
#
NAgents = 1
def __init__(self, env, tlimit=None, random_observation_space=None):
if isinstance(env, str):
... | 32.38835 | 93 | 0.590827 | 406 | 3,336 | 4.756158 | 0.187192 | 0.061626 | 0.045572 | 0.033143 | 0.553081 | 0.464008 | 0.464008 | 0.435008 | 0.4029 | 0.336613 | 0 | 0.006499 | 0.308153 | 3,336 | 103 | 94 | 32.38835 | 0.830156 | 0.018585 | 0 | 0.435897 | 0 | 0 | 0.037909 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 1 | 0.205128 | false | 0.012821 | 0.012821 | 0.089744 | 0.423077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a56b1aa1644439200974975a4ff707efa921ff23 | 611 | py | Python | src/RIOT/tests/blob/tests/01-run.py | ARte-team/ARte | 19f17f57522e1b18ba390718fc94be246451837b | [
"MIT"
] | 2 | 2020-04-30T08:17:45.000Z | 2020-05-23T08:46:54.000Z | src/RIOT/tests/blob/tests/01-run.py | ARte-team/ARte | 19f17f57522e1b18ba390718fc94be246451837b | [
"MIT"
] | null | null | null | src/RIOT/tests/blob/tests/01-run.py | ARte-team/ARte | 19f17f57522e1b18ba390718fc94be246451837b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (C) 2019 Kaspar Schleiser <kaspar@schleiser.de>
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import sys
from testrunner import run
def testfunc(child):
... | 24.44 | 68 | 0.720131 | 89 | 611 | 4.764045 | 0.640449 | 0.181604 | 0.264151 | 0.099057 | 0.117925 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039293 | 0.166939 | 611 | 24 | 69 | 25.458333 | 0.793713 | 0.394435 | 0 | 0 | 0 | 0 | 0.156593 | 0 | 0 | 0 | 0.054945 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a56be1f43d7a9a9c403d2ed518f709790ed81f3a | 1,995 | py | Python | consumer_lag.py | aseev-xx/kafka-consumer-lag-metrics | 922e9b11dc95f72e156ea6414ec833d855a0433b | [
"Apache-2.0"
] | null | null | null | consumer_lag.py | aseev-xx/kafka-consumer-lag-metrics | 922e9b11dc95f72e156ea6414ec833d855a0433b | [
"Apache-2.0"
] | null | null | null | consumer_lag.py | aseev-xx/kafka-consumer-lag-metrics | 922e9b11dc95f72e156ea6414ec833d855a0433b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python2.7
# -*- coding: utf-8 -*-
import sys
import requests
import ConfigParser
import time
import socket
import os
# get base json object for next
def get_json_object(url):
try:
obj = requests.get(url)
except requests.exceptions.RequestException as e:
print e
sys.exit(1)... | 27.328767 | 152 | 0.636591 | 240 | 1,995 | 5.104167 | 0.358333 | 0.04 | 0.031837 | 0.026122 | 0.047347 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002567 | 0.219048 | 1,995 | 72 | 153 | 27.708333 | 0.783697 | 0.062155 | 0 | 0 | 0 | 0 | 0.109266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.122449 | null | null | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a573c3e91433bcb012a45b75da109ece52e6e520 | 319 | py | Python | backend/src/baserow/config/asgi.py | ashishdhngr/baserow | b098678d2165eb7c42930ee24dc6753a3cb520c3 | [
"MIT"
] | 839 | 2020-07-20T13:29:34.000Z | 2022-03-31T21:09:16.000Z | backend/src/baserow/config/asgi.py | rasata/baserow | c6e1d7842c53f801e1c96b49f1377da2a06afaa9 | [
"MIT"
] | 28 | 2020-08-07T09:23:58.000Z | 2022-03-01T22:32:40.000Z | backend/src/baserow/config/asgi.py | rasata/baserow | c6e1d7842c53f801e1c96b49f1377da2a06afaa9 | [
"MIT"
] | 79 | 2020-08-04T01:48:01.000Z | 2022-03-27T13:30:54.000Z | import django
from channels.routing import ProtocolTypeRouter
from baserow.ws.routers import websocket_router
from django.core.asgi import get_asgi_application
django.setup()
django_asgi_app = get_asgi_application()
application = ProtocolTypeRouter(
{"http": django_asgi_app, "websocket": websocket_router}
)
| 19.9375 | 60 | 0.815047 | 39 | 319 | 6.410256 | 0.461538 | 0.12 | 0.144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112853 | 319 | 15 | 61 | 21.266667 | 0.883392 | 0 | 0 | 0 | 0 | 0 | 0.040752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a5790a35d7622e179a75b4e27108ddcc59324014 | 5,682 | py | Python | Homework/ArrayList.py | Frumka/python_developer | 049fba788ab8924c99d083d39249faccff027e22 | [
"CC0-1.0"
] | null | null | null | Homework/ArrayList.py | Frumka/python_developer | 049fba788ab8924c99d083d39249faccff027e22 | [
"CC0-1.0"
] | null | null | null | Homework/ArrayList.py | Frumka/python_developer | 049fba788ab8924c99d083d39249faccff027e22 | [
"CC0-1.0"
] | null | null | null | from array import array, ArrayType
from typing import TypeVar, Iterable
from copy import deepcopy
T = TypeVar("T")
class ArrayList(object):
class Iterator(object):
__data: ArrayType
__index: int
def __init__(self, data: ArrayType):
self.__data = data
self.__index ... | 25.827273 | 91 | 0.541535 | 655 | 5,682 | 4.317557 | 0.134351 | 0.111386 | 0.046676 | 0.046676 | 0.414427 | 0.359972 | 0.311881 | 0.292079 | 0.292079 | 0.229137 | 0 | 0.005187 | 0.355333 | 5,682 | 219 | 92 | 25.945205 | 0.766858 | 0 | 0 | 0.275641 | 0 | 0 | 0.033087 | 0.0044 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.019231 | 0.064103 | 0.455128 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a58252683f7e74585f8be7ff56e4a6a6bc78ab6c | 6,514 | py | Python | tmapi/tests/models/test_association.py | ajenhl/django-tmapi | 02f009e1b508218cf330ca7748c3a1dd110f3e8d | [
"Apache-2.0"
] | 2 | 2015-03-22T03:23:36.000Z | 2017-01-08T10:57:18.000Z | tmapi/tests/models/test_association.py | ajenhl/django-tmapi | 02f009e1b508218cf330ca7748c3a1dd110f3e8d | [
"Apache-2.0"
] | null | null | null | tmapi/tests/models/test_association.py | ajenhl/django-tmapi | 02f009e1b508218cf330ca7748c3a1dd110f3e8d | [
"Apache-2.0"
] | 1 | 2020-12-28T04:40:34.000Z | 2020-12-28T04:40:34.000Z | # Copyright 2011 Jamie Norrish (jamie@artefact.org.nz)
#
# 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... | 48.977444 | 77 | 0.678539 | 772 | 6,514 | 5.559585 | 0.182642 | 0.123952 | 0.092964 | 0.085741 | 0.602982 | 0.571295 | 0.54287 | 0.536347 | 0.503029 | 0.464585 | 0 | 0.017623 | 0.215996 | 6,514 | 132 | 78 | 49.348485 | 0.822792 | 0.126036 | 0 | 0.56 | 0 | 0 | 0.068583 | 0 | 0 | 0 | 0 | 0 | 0.49 | 1 | 0.07 | false | 0.01 | 0.02 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a587429d9211fc5aaa96a98f6b750c49783899f6 | 73,209 | py | Python | x-tree/x-tree.py | bzliu94/algorithms | 43ccefd7ea1fd88339bf2afa0b35b0a3bdf6acff | [
"MIT"
] | null | null | null | x-tree/x-tree.py | bzliu94/algorithms | 43ccefd7ea1fd88339bf2afa0b35b0a3bdf6acff | [
"MIT"
] | null | null | null | x-tree/x-tree.py | bzliu94/algorithms | 43ccefd7ea1fd88339bf2afa0b35b0a3bdf6acff | [
"MIT"
] | null | null | null | # 2016-08-21
# x-tree featuring enclosure and containment queries
# dimension is implicit (determined using points sampled) and assumed to be consistent
# we never split a super-node
# updated on 2016-08-23 to fix traditional/non-traditional isLeafNode() distinction
# updated on 2016-08-25 to fix overlap logic for... | 40.357773 | 204 | 0.67769 | 9,400 | 73,209 | 5.068511 | 0.091064 | 0.006549 | 0.009823 | 0.002645 | 0.487889 | 0.414869 | 0.37117 | 0.339896 | 0.29966 | 0.278734 | 0 | 0.030775 | 0.216162 | 73,209 | 1,813 | 205 | 40.380033 | 0.799491 | 0.132306 | 0 | 0.408602 | 0 | 0 | 0.004236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004608 | 0.006144 | null | null | 0.013057 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a589d65fb595d629a3f79445fd1a09a7caaedad0 | 5,153 | py | Python | bogrod/banking/models.py | joostrijneveld/bogrod | 27368a9c9c638e43543e78aef732b4400e095f80 | [
"CC0-1.0"
] | null | null | null | bogrod/banking/models.py | joostrijneveld/bogrod | 27368a9c9c638e43543e78aef732b4400e095f80 | [
"CC0-1.0"
] | null | null | null | bogrod/banking/models.py | joostrijneveld/bogrod | 27368a9c9c638e43543e78aef732b4400e095f80 | [
"CC0-1.0"
] | null | null | null | from django.db import models
from django.db.models import Sum
from django.utils.translation import ugettext_lazy as _
from django.core.exceptions import ValidationError
class Account(models.Model):
iban = models.CharField(_('iban'), max_length=34, unique=True)
ACCOUNT_TYPES = (
('checking', 'Checking ... | 38.17037 | 77 | 0.644285 | 559 | 5,153 | 5.815742 | 0.389982 | 0.038757 | 0.043986 | 0.057521 | 0.276223 | 0.196555 | 0.176253 | 0.16518 | 0.069517 | 0.039988 | 0 | 0.009351 | 0.232098 | 5,153 | 134 | 78 | 38.455224 | 0.812231 | 0.091985 | 0 | 0.057143 | 0 | 0 | 0.145213 | 0.006211 | 0 | 0 | 0 | 0.007463 | 0 | 1 | 0.019048 | false | 0 | 0.038095 | 0.009524 | 0.542857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a58edecd479b04df8ec459e655073c6c8fe2f65a | 458 | py | Python | devops-console/apps/features/migrations/0017_auto_20190911_1550.py | lilinghell/devops | 1b2890d3f2d9f6e15e5b32d0910bc4768f065adc | [
"Apache-2.0"
] | 4 | 2019-12-06T06:19:33.000Z | 2021-12-23T13:05:06.000Z | devops-console/apps/features/migrations/0017_auto_20190911_1550.py | lilinghell/devops | 1b2890d3f2d9f6e15e5b32d0910bc4768f065adc | [
"Apache-2.0"
] | 8 | 2020-03-15T03:40:38.000Z | 2022-03-12T00:50:27.000Z | devops-console/apps/features/migrations/0017_auto_20190911_1550.py | lilinghell/devops | 1b2890d3f2d9f6e15e5b32d0910bc4768f065adc | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.5 on 2019-09-11 07:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('features', '0016_auto_20190605_1830'),
]
operations = [
migrations.AlterField(
model_name='feature',
name='apps',
... | 24.105263 | 122 | 0.633188 | 49 | 458 | 5.77551 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089855 | 0.246725 | 458 | 18 | 123 | 25.444444 | 0.730435 | 0.098253 | 0 | 0 | 1 | 0 | 0.199513 | 0.114355 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a59212c2910b0fae2f0e9553671fdce858b09827 | 7,276 | py | Python | sdk/python/pulumi_oci/identity/get_group.py | EladGabay/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2021-08-17T11:14:46.000Z | 2021-12-31T02:07:03.000Z | sdk/python/pulumi_oci/identity/get_group.py | pulumi-oci/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-09-06T11:21:29.000Z | 2021-09-06T11:21:29.000Z | sdk/python/pulumi_oci/identity/get_group.py | pulumi-oci/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-08-24T23:31:30.000Z | 2022-01-02T19:26:54.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 37.895833 | 280 | 0.659016 | 897 | 7,276 | 5.122631 | 0.225195 | 0.025898 | 0.03482 | 0.065288 | 0.246572 | 0.18259 | 0.109684 | 0.086834 | 0.049184 | 0.049184 | 0 | 0.005777 | 0.23873 | 7,276 | 191 | 281 | 38.094241 | 0.823795 | 0.26072 | 0 | 0.118644 | 1 | 0 | 0.148606 | 0.010404 | 0 | 0 | 0 | 0 | 0 | 1 | 0.110169 | false | 0 | 0.042373 | 0.008475 | 0.271186 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5970c7275692df89520b787bb7634bdec682319 | 375 | py | Python | tests/filters/test_interface.py | FlaskGuys/Flask-Imagine | c42b2f068f449891a72ff48fc3526e8472fe9edb | [
"MIT"
] | 1 | 2016-04-16T00:51:35.000Z | 2016-04-16T00:51:35.000Z | tests/filters/test_interface.py | FlaskGuys/Flask-Imagine | c42b2f068f449891a72ff48fc3526e8472fe9edb | [
"MIT"
] | 8 | 2016-04-12T22:32:51.000Z | 2021-09-07T23:23:32.000Z | tests/filters/test_interface.py | FlaskGuys/Flask-Imagine | c42b2f068f449891a72ff48fc3526e8472fe9edb | [
"MIT"
] | 2 | 2017-05-21T13:45:54.000Z | 2017-12-14T17:28:18.000Z | import unittest
from flask.ext.imagine.filters.interface import ImagineFilterInterface
class TestImagineFilterInterface(unittest.TestCase):
interface = None
def setUp(self):
self.interface = ImagineFilterInterface()
def test_not_implemented_apply_method(self):
with self.assertRaises(NotI... | 26.785714 | 70 | 0.749333 | 36 | 375 | 7.694444 | 0.666667 | 0.093863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173333 | 375 | 13 | 71 | 28.846154 | 0.893548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a59954f76c47c7e70988a2ff1aefbb70103e86ee | 2,131 | py | Python | alura-python/gamelib/dao.py | wiltonpaulo/python-fullcourse | 5befe60221a2e6f8a567a11e2f449245c11b3447 | [
"MIT"
] | null | null | null | alura-python/gamelib/dao.py | wiltonpaulo/python-fullcourse | 5befe60221a2e6f8a567a11e2f449245c11b3447 | [
"MIT"
] | null | null | null | alura-python/gamelib/dao.py | wiltonpaulo/python-fullcourse | 5befe60221a2e6f8a567a11e2f449245c11b3447 | [
"MIT"
] | null | null | null | from models import Game, User
SQL_DELETE_GAME = "delete from game where id = %s"
SQL_GAME_BY_ID = "SELECT id, name, category, console from game where id = %s"
SQL_USER_BY_ID = "SELECT id, name, password from user where id = %s"
SQL_UPDATE_GAME = "UPDATE game SET name=%s, category=%s, console=%s where id = %s"
SQL_SEAR... | 32.287879 | 85 | 0.653684 | 302 | 2,131 | 4.331126 | 0.175497 | 0.050459 | 0.085627 | 0.084098 | 0.419725 | 0.383028 | 0.360092 | 0.306575 | 0.238532 | 0.175841 | 0 | 0.006699 | 0.22947 | 2,131 | 65 | 86 | 32.784615 | 0.78989 | 0 | 0 | 0.285714 | 0 | 0 | 0.143125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204082 | false | 0.020408 | 0.020408 | 0.040816 | 0.408163 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a599d96da739beac2dc62f9356da0419f6d1d636 | 1,771 | py | Python | backend/api/migrations/0004_auto_20191114_1008.py | a-mazalov/django-vuejs | 0aa0cd0c9d23d0019df32fd44fe93754e1260ce1 | [
"MIT"
] | null | null | null | backend/api/migrations/0004_auto_20191114_1008.py | a-mazalov/django-vuejs | 0aa0cd0c9d23d0019df32fd44fe93754e1260ce1 | [
"MIT"
] | null | null | null | backend/api/migrations/0004_auto_20191114_1008.py | a-mazalov/django-vuejs | 0aa0cd0c9d23d0019df32fd44fe93754e1260ce1 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-11-14 07:08
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0003_auto_20191113_1639'),
]
operations = [
migrations.CreateModel(... | 46.605263 | 189 | 0.604743 | 195 | 1,771 | 5.369231 | 0.497436 | 0.04298 | 0.040115 | 0.063037 | 0.191022 | 0.131805 | 0.070678 | 0 | 0 | 0 | 0 | 0.029304 | 0.229249 | 1,771 | 37 | 190 | 47.864865 | 0.737729 | 0.025409 | 0 | 0.096774 | 1 | 0 | 0.158933 | 0.026682 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a59b449ed5424214d1ed21109893c1645ad159f9 | 3,379 | py | Python | B2G/gecko/testing/tps/tps/mozhttpd.py | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | B2G/gecko/testing/tps/tps/mozhttpd.py | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | null | null | null | B2G/gecko/testing/tps/tps/mozhttpd.py | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | #!/usr/bin/python
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import BaseHTTPServer
import SimpleHTTPServer
import threading
import sys
import os
import urllib
im... | 31.877358 | 137 | 0.564664 | 418 | 3,379 | 4.516746 | 0.476077 | 0.023835 | 0.019068 | 0.014831 | 0.027542 | 0.027542 | 0.027542 | 0.027542 | 0 | 0 | 0 | 0.011168 | 0.311039 | 3,379 | 105 | 138 | 32.180952 | 0.799828 | 0.218112 | 0 | 0.058824 | 0 | 0 | 0.10019 | 0.035429 | 0 | 0 | 0 | 0.009524 | 0 | 0 | null | null | 0.014706 | 0.132353 | null | null | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5ab3f99e230dd197e61be5a6c1edd5d7c8d5e6e | 3,194 | py | Python | datapypes/pype.py | msmathers/datapypes | a02e8ef7c238b922afc10841934ea2990a7a541b | [
"MIT"
] | 1 | 2020-04-24T23:20:54.000Z | 2020-04-24T23:20:54.000Z | datapypes/pype.py | msmathers/datapypes | a02e8ef7c238b922afc10841934ea2990a7a541b | [
"MIT"
] | null | null | null | datapypes/pype.py | msmathers/datapypes | a02e8ef7c238b922afc10841934ea2990a7a541b | [
"MIT"
] | null | null | null | from set import Set
from model import Model
from source import Source
from store import Store
class Pype(object):
@property
def set(self):
raise NotImplementedError()
@property
def source(self):
raise NotImplementedError()
@property
def store(self):
raise NotImplemen... | 28.774775 | 75 | 0.650908 | 377 | 3,194 | 5.220159 | 0.156499 | 0.170732 | 0.147358 | 0.130081 | 0.500508 | 0.41565 | 0.332317 | 0.175813 | 0.089431 | 0.089431 | 0 | 0 | 0.242956 | 3,194 | 111 | 76 | 28.774775 | 0.813896 | 0.026925 | 0 | 0.25 | 0 | 0 | 0.01708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.302632 | false | 0 | 0.052632 | 0.065789 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5b5f574b2de1220ddacc4abb794d68f96be6ff9 | 6,849 | py | Python | news_outlet/settings.py | dmahon10/django-tiered-membership-web-app | a2b8ba345d3e814aa44422f7b61016538c52de61 | [
"MIT"
] | null | null | null | news_outlet/settings.py | dmahon10/django-tiered-membership-web-app | a2b8ba345d3e814aa44422f7b61016538c52de61 | [
"MIT"
] | null | null | null | news_outlet/settings.py | dmahon10/django-tiered-membership-web-app | a2b8ba345d3e814aa44422f7b61016538c52de61 | [
"MIT"
] | null | null | null | import os
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = os.environ.get('SECRET_KEY')
ALLOWED_HOSTS = ['.herokuapp.com', 'localhost', '127.0.0.1']
ENIVRONMENT = os.environ.get('ENVIRONMENT', default='development... | 28.5375 | 91 | 0.716017 | 779 | 6,849 | 6.032092 | 0.342747 | 0.052564 | 0.04086 | 0.021707 | 0.178549 | 0.141732 | 0.042137 | 0.017025 | 0.017025 | 0 | 0 | 0.010938 | 0.159001 | 6,849 | 239 | 92 | 28.656904 | 0.804861 | 0.144547 | 0 | 0.062893 | 0 | 0 | 0.408388 | 0.288759 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.050314 | 0.025157 | 0 | 0.025157 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a5b60148b3be5ae0d92a23915ee5899cf08cc33a | 1,521 | py | Python | Misc Learning/HackerRank 30 Days of Code/14 - Scopes.py | hamil168/Learning-Data-Science | dd91e4336b6a48a30265a86f8b816658639a17e9 | [
"BSD-2-Clause"
] | null | null | null | Misc Learning/HackerRank 30 Days of Code/14 - Scopes.py | hamil168/Learning-Data-Science | dd91e4336b6a48a30265a86f8b816658639a17e9 | [
"BSD-2-Clause"
] | 1 | 2018-03-31T05:54:37.000Z | 2018-03-31T05:54:37.000Z | Misc Learning/HackerRank 30 Days of Code/14 - Scopes.py | hamil168/Data-Science-Misc | dd91e4336b6a48a30265a86f8b816658639a17e9 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Hacker Rank 30 Days of Code 14 - Scope
Created on Sun Jul 22 23:53:27 2018
@author: DRB4
Task:
complete Difference class
- class constructor that takes an array of integers and
saves it to an instance variable named elements
- computeDifference method that finds the maximum absolute di... | 24.934426 | 76 | 0.584484 | 197 | 1,521 | 4.477157 | 0.548223 | 0.068027 | 0.022676 | 0.031746 | 0.049887 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039924 | 0.30835 | 1,521 | 61 | 77 | 24.934426 | 0.798479 | 0.485865 | 0 | 0 | 0 | 0 | 0.001379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.058824 | 0 | 0 | 0.235294 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a5b68e6317dfe9a4ccb876fcc65a1805ceacb0a9 | 3,920 | py | Python | dsatools/operators/_ecdf.py | diarmaidocualain/dsatools | 50b9259e2846b5fdd3dc52206967b0ee8d0144de | [
"MIT"
] | 31 | 2020-09-14T16:12:01.000Z | 2022-03-30T01:44:18.000Z | operators/_ecdf.py | Jimmy-INL/dsatools | 5c811838bb3fb8ae00195d5f68e451bd23b3448c | [
"MIT"
] | 4 | 2021-09-24T17:47:42.000Z | 2022-03-04T08:06:43.000Z | operators/_ecdf.py | Jimmy-INL/dsatools | 5c811838bb3fb8ae00195d5f68e451bd23b3448c | [
"MIT"
] | 11 | 2020-12-06T08:18:56.000Z | 2022-03-20T13:28:22.000Z | import numpy as np
import scipy
from ._hist import take_bins
__all__ = ['ecdf']
__EPSILON__ = 1e-8
#--------------------------------------------------------------------
def ecdf(x,y=None):
'''
Empirical Cumulative Density Function (ECDF).
Parameters
-----------
* x,y: 1d ndarrays,
if y ... | 29.923664 | 95 | 0.52449 | 561 | 3,920 | 3.534759 | 0.215686 | 0.042864 | 0.020171 | 0.025214 | 0.290469 | 0.199697 | 0.170953 | 0.143722 | 0.143722 | 0.143722 | 0 | 0.011473 | 0.310714 | 3,920 | 130 | 96 | 30.153846 | 0.722428 | 0.513265 | 0 | 0.145833 | 0 | 0 | 0.01262 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5bee626c25d2a8f3f5ae3db63da257edffe1b34 | 12,332 | py | Python | python/frost_rcmrd.py | vightel/FloodMapsWorkshop | ebc5246fbca52f2ee181a07663b859b2f6f59532 | [
"Apache-2.0"
] | 24 | 2015-02-07T06:34:14.000Z | 2021-11-06T08:06:40.000Z | python/frost_rcmrd.py | vightel/FloodMapsWorkshop | ebc5246fbca52f2ee181a07663b859b2f6f59532 | [
"Apache-2.0"
] | 1 | 2018-07-23T01:54:23.000Z | 2018-07-23T01:55:05.000Z | python/frost_rcmrd.py | vightel/FloodMapsWorkshop | ebc5246fbca52f2ee181a07663b859b2f6f59532 | [
"Apache-2.0"
] | 15 | 2015-03-10T06:39:10.000Z | 2020-01-06T19:54:16.000Z | #!/usr/bin/env python
#
# From Eric Kabuchanga, kabuchanga@rcmrd.org
# RCMRD Nairobi, Kenya
# Minor teaks for MacOSX Pat Cappelaere - Vightel Corporation
#
# Here is the link where you can get the original hdfs and the resulting tif files
# http://41.206.34.124/frostmaps/
# http://41.206.34.124/frostmaps/
import ti... | 34.446927 | 380 | 0.527571 | 1,398 | 12,332 | 4.526466 | 0.257511 | 0.027813 | 0.039823 | 0.051201 | 0.341814 | 0.275126 | 0.25885 | 0.250632 | 0.240518 | 0.229772 | 0 | 0.042418 | 0.231512 | 12,332 | 357 | 381 | 34.543417 | 0.625303 | 0.388583 | 0 | 0.262857 | 0 | 0.005714 | 0.110264 | 0.002944 | 0 | 0 | 0 | 0 | 0.011429 | 0 | null | null | 0 | 0.022857 | null | null | 0.148571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
36ff9c0b110de961934c2421eae6612281f54369 | 886 | py | Python | ext/candc/src/api/nlp/__init__.py | TeamSPoon/logicmoo_nlu | 5c3e5013a3048da7d68a8a43476ad84d3ea4bb47 | [
"MIT"
] | 6 | 2020-01-27T12:08:02.000Z | 2020-02-28T19:30:28.000Z | pack/logicmoo_nlu/prolog/candc/src/api/nlp/__init__.py | logicmoo/old_logicmoo_workspace | 44025b6e389e2f2f7d86b46c1301cab0604bba26 | [
"MIT"
] | 1 | 2020-02-02T13:12:34.000Z | 2020-02-02T13:12:34.000Z | ext/candc/src/api/nlp/__init__.py | TeamSPoon/logicmoo_nlu | 5c3e5013a3048da7d68a8a43476ad84d3ea4bb47 | [
"MIT"
] | null | null | null | # C&C NLP tools
# Copyright (c) Universities of Edinburgh, Oxford and Sydney
# Copyright (c) James R. Curran
#
# This software is covered by a non-commercial use licence.
# See LICENCE.txt for the full text of the licence.
#
# If LICENCE.txt is not included in this distribution
# please email candc@it.usyd.edu.au to ob... | 27.6875 | 68 | 0.717833 | 146 | 886 | 4.294521 | 0.554795 | 0.038278 | 0.028708 | 0.057416 | 0.051037 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004093 | 0.172686 | 886 | 31 | 69 | 28.580645 | 0.851296 | 0.354402 | 0 | 0 | 0 | 0 | 0.001779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3c0416b3e679cfefe3cca3548940bc03e8ee624b | 1,015 | py | Python | tests/__init__.py | mportesdev/handpick | a0b6d4d3dac7e5b43c59b18d42bc7c2987bcc765 | [
"MIT"
] | null | null | null | tests/__init__.py | mportesdev/handpick | a0b6d4d3dac7e5b43c59b18d42bc7c2987bcc765 | [
"MIT"
] | null | null | null | tests/__init__.py | mportesdev/handpick | a0b6d4d3dac7e5b43c59b18d42bc7c2987bcc765 | [
"MIT"
] | null | null | null | def is_even(n):
return n % 2 == 0
def is_positive(n):
return n > 0
# basic sequences (tuple, list, str, bytes, bytearray)
SEQUENCES = (
[
[
"hand",
],
b"pick",
(
42,
b"hand",
),
],
(
"3.14",
(1.414,),
... | 13.533333 | 57 | 0.323153 | 85 | 1,015 | 3.823529 | 0.423529 | 0.092308 | 0.083077 | 0.101538 | 0.550769 | 0.550769 | 0.489231 | 0.489231 | 0.430769 | 0.430769 | 0 | 0.072874 | 0.5133 | 1,015 | 74 | 58 | 13.716216 | 0.58502 | 0.15665 | 0 | 0.416667 | 0 | 0 | 0.077465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0 | 0.033333 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c04d10e1f7e4ba87d9039dd4ca4f909938631a2 | 2,850 | py | Python | solr-admin-app/config.py | sumesh-aot/namex | 53e11aed5ea550b71b7b983f1b57b65db5a06766 | [
"Apache-2.0"
] | 4 | 2018-10-05T23:41:05.000Z | 2019-06-19T16:17:50.000Z | solr-admin-app/config.py | sumesh-aot/namex | 53e11aed5ea550b71b7b983f1b57b65db5a06766 | [
"Apache-2.0"
] | 635 | 2018-05-31T04:12:46.000Z | 2022-03-31T18:45:42.000Z | solr-admin-app/config.py | rarmitag/namex | 1b308bf96130619d4a61d44e075cc7ab177dc6cd | [
"Apache-2.0"
] | 71 | 2018-05-14T20:47:55.000Z | 2022-03-31T23:08:30.000Z |
import os
import dotenv
dotenv.load_dotenv(dotenv.find_dotenv(), override=True)
CONFIGURATION = {
'development': 'config.DevConfig',
'testing': 'config.TestConfig',
'production': 'config.Config',
'default': 'config.Config'
}
class Config(object):
SECRET_KEY = 'My Secret'
# Normal Keycloak ... | 37.5 | 128 | 0.720702 | 345 | 2,850 | 5.631884 | 0.318841 | 0.12352 | 0.066907 | 0.09264 | 0.361297 | 0.282038 | 0.045291 | 0.045291 | 0 | 0 | 0 | 0.005072 | 0.169825 | 2,850 | 75 | 129 | 38 | 0.816145 | 0.150526 | 0 | 0.08 | 0 | 0 | 0.334855 | 0.253112 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.12 | 0.04 | 0 | 0.6 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3c186289b3784aa6795e6ecd0b7fb437dde5b061 | 30,233 | py | Python | printer/mean_printer.py | kuanhsunchen/Suspension | fd6edde34e970ded0ed8b6bb3f046f072987ef78 | [
"CNRI-Python"
] | 1 | 2020-08-24T08:57:53.000Z | 2020-08-24T08:57:53.000Z | printer/mean_printer.py | kuanhsunchen/Suspension | fd6edde34e970ded0ed8b6bb3f046f072987ef78 | [
"CNRI-Python"
] | null | null | null | printer/mean_printer.py | kuanhsunchen/Suspension | fd6edde34e970ded0ed8b6bb3f046f072987ef78 | [
"CNRI-Python"
] | 3 | 2017-09-26T08:14:25.000Z | 2018-08-25T23:09:18.000Z | import matplotlib
matplotlib.use('Agg')
import matplotlib.patches as mpatches
import random
import math
import sys
import numpy as np
import matplotlib.pyplot as plt
import itertools
from matplotlib import rcParams
from matplotlib.backends.backend_pdf import PdfPages
from scipy.stats.mstats import gmean
x1 = []
y1 = []... | 36.2506 | 204 | 0.541726 | 3,814 | 30,233 | 4.283429 | 0.085475 | 0.091877 | 0.031217 | 0.05913 | 0.749526 | 0.69162 | 0.558242 | 0.439065 | 0.351105 | 0.322091 | 0 | 0.082375 | 0.274832 | 30,233 | 833 | 205 | 36.294118 | 0.66279 | 0.066715 | 0 | 0.498333 | 0 | 0 | 0.095121 | 0.00402 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006667 | 0.018333 | null | null | 0.005 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c20281be886f3ceec3418232352fce4419c76ff | 393 | py | Python | analysis/example_utils.py | liuzh91/DEVELOP | be98cf5ac10aaea499579c2de72abfa28fbb7a33 | [
"BSD-3-Clause"
] | 73 | 2019-11-05T07:09:12.000Z | 2022-03-25T02:30:30.000Z | analysis/example_utils.py | liuzh91/DEVELOP | be98cf5ac10aaea499579c2de72abfa28fbb7a33 | [
"BSD-3-Clause"
] | 4 | 2021-11-08T09:14:38.000Z | 2022-03-08T23:33:25.000Z | analysis/example_utils.py | liuzh91/DEVELOP | be98cf5ac10aaea499579c2de72abfa28fbb7a33 | [
"BSD-3-Clause"
] | 22 | 2019-11-05T17:13:46.000Z | 2022-03-29T13:18:30.000Z | from rdkit import Chem
def mol_with_atom_index(mol):
atoms = mol.GetNumAtoms()
tmp_mol = Chem.Mol(mol)
for idx in range(atoms):
tmp_mol.GetAtomWithIdx(idx).SetProp('molAtomMapNumber', str(tmp_mol.GetAtomWithIdx(idx).GetIdx()))
return tmp_mol
def unique_mols(sequence):
seen = set()
retu... | 30.230769 | 106 | 0.694656 | 61 | 393 | 4.344262 | 0.540984 | 0.090566 | 0.150943 | 0.173585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183206 | 393 | 12 | 107 | 32.75 | 0.825545 | 0 | 0 | 0 | 0 | 0 | 0.040712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c23349d56f5c128914d769e0d34f1d97db82430 | 1,895 | py | Python | gtc-model-using-SCIP.py | mgorav/linear-programing | aad01811ec1be697994d12c2ecfb7570d2295dc2 | [
"MIT"
] | 1 | 2020-12-17T08:47:44.000Z | 2020-12-17T08:47:44.000Z | gtc-model-using-SCIP.py | mgorav/linear-programing | aad01811ec1be697994d12c2ecfb7570d2295dc2 | [
"MIT"
] | null | null | null | gtc-model-using-SCIP.py | mgorav/linear-programing | aad01811ec1be697994d12c2ecfb7570d2295dc2 | [
"MIT"
] | null | null | null | from ortools.linear_solver import pywraplp
from ortools.sat.python import cp_model
def main():
solver = pywraplp.Solver.CreateSolver('SCIP')
infinity = solver.infinity()
# wrenches
wrenches = solver.IntVar(0.0, infinity, 'wrenches')
# pliers
pliers = solver.IntVar(0.0, infinity, 'pliers')
... | 35.092593 | 109 | 0.632718 | 218 | 1,895 | 5.40367 | 0.330275 | 0.110357 | 0.091681 | 0.097623 | 0.207131 | 0.08489 | 0.08489 | 0.08489 | 0 | 0 | 0 | 0.052989 | 0.223219 | 1,895 | 54 | 110 | 35.092593 | 0.747283 | 0.044855 | 0 | 0 | 0 | 0 | 0.183787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.060606 | 0 | 0.090909 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
3c252beb3dbf49b0bf78080ff1ee1fd6e3516bf5 | 1,632 | py | Python | Data_Science/chatbotPreprocessing.py | BasilcM/Short_URL | a13c82585215c54aa2dae6d00c6bbbb089606cb9 | [
"Apache-2.0"
] | null | null | null | Data_Science/chatbotPreprocessing.py | BasilcM/Short_URL | a13c82585215c54aa2dae6d00c6bbbb089606cb9 | [
"Apache-2.0"
] | 1 | 2021-12-13T20:44:55.000Z | 2021-12-13T20:44:55.000Z | Data_Science/chatbotPreprocessing.py | BasilcM/Short_URL | a13c82585215c54aa2dae6d00c6bbbb089606cb9 | [
"Apache-2.0"
] | 1 | 2021-06-20T06:48:28.000Z | 2021-06-20T06:48:28.000Z | # -*- coding: utf-8 -*-
import os
import json
import nltk
import gensim
import numpy as np
from gensim import corpora, models, similarities
import pickle
os.chdir("D:\semicolon\Deep Learning\chatbot");
model = gensim.models.Word2Vec.load('word2vec.bin');
path2="corpus";
file=open(path2+'/conversation.j... | 22.054054 | 59 | 0.572917 | 252 | 1,632 | 3.583333 | 0.253968 | 0.108527 | 0.026578 | 0.048726 | 0.383167 | 0.352159 | 0.333333 | 0.333333 | 0.333333 | 0.333333 | 0 | 0.021404 | 0.284314 | 1,632 | 73 | 60 | 22.356164 | 0.751712 | 0.012868 | 0 | 0.352941 | 0 | 0 | 0.070964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.137255 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c2a9af14ebb3d3616d236f382511132af15bb66 | 936 | py | Python | scrapers/competitor_prices/models.py | vlandham/social_shopper | 8370980dda0f8ec56dc16995cad76b7efcfd806b | [
"MIT"
] | null | null | null | scrapers/competitor_prices/models.py | vlandham/social_shopper | 8370980dda0f8ec56dc16995cad76b7efcfd806b | [
"MIT"
] | null | null | null | scrapers/competitor_prices/models.py | vlandham/social_shopper | 8370980dda0f8ec56dc16995cad76b7efcfd806b | [
"MIT"
] | 1 | 2018-08-15T10:40:28.000Z | 2018-08-15T10:40:28.000Z | from sqlalchemy import create_engine, Column, Integer, String, Numeric
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.engine.url import URL
import settings
DeclarativeBase = declarative_base()
def create_competitor_prices_table(engine):
DeclarativeBase.metadata.create_all(engine)
def db_c... | 30.193548 | 70 | 0.759615 | 110 | 936 | 6.254545 | 0.436364 | 0.069767 | 0.052326 | 0.052326 | 0.063953 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007472 | 0.142094 | 936 | 30 | 71 | 31.2 | 0.849315 | 0.142094 | 0 | 0 | 0 | 0 | 0.068831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3c2d1095bd593fd562075384092206974850717c | 1,284 | py | Python | app/core/tests/test_models.py | georgecretu26/recipe-app-api | b88b39555b28426018d67e54d466fc36782354c0 | [
"MIT"
] | null | null | null | app/core/tests/test_models.py | georgecretu26/recipe-app-api | b88b39555b28426018d67e54d466fc36782354c0 | [
"MIT"
] | null | null | null | app/core/tests/test_models.py | georgecretu26/recipe-app-api | b88b39555b28426018d67e54d466fc36782354c0 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.contrib.auth import get_user_model
class ModelTests(TestCase):
def test_create_user_with_email_successful(self):
"""Test creating new user with an email is successful"""
email = "test@gmail.com"
password = "testpass123"
user = get_user_... | 30.571429 | 65 | 0.639408 | 154 | 1,284 | 5.11039 | 0.318182 | 0.068615 | 0.076239 | 0.096569 | 0.360864 | 0.182973 | 0.109276 | 0.109276 | 0.109276 | 0 | 0 | 0.008421 | 0.260125 | 1,284 | 41 | 66 | 31.317073 | 0.82 | 0.116822 | 0 | 0.142857 | 0 | 0 | 0.06469 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.142857 | false | 0.107143 | 0.071429 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3c2fd96418d681171684ed61637c4667531e6f5a | 420 | py | Python | 13_multiprocessing/05_remote_server.py | varshashivhare/Mastering-Python | 6101fa7855e57d0bbd194e936084bd64d9d38d76 | [
"MIT"
] | 30 | 2016-10-28T18:14:15.000Z | 2021-08-29T15:20:56.000Z | 13_multiprocessing/05_remote_server.py | varshashivhare/Mastering-Python | 6101fa7855e57d0bbd194e936084bd64d9d38d76 | [
"MIT"
] | null | null | null | 13_multiprocessing/05_remote_server.py | varshashivhare/Mastering-Python | 6101fa7855e57d0bbd194e936084bd64d9d38d76 | [
"MIT"
] | 31 | 2016-09-10T22:47:12.000Z | 2022-03-13T04:50:35.000Z | constants = __import__('05_remote_processor')
import multiprocessing
from multiprocessing import managers
queue = multiprocessing.Queue()
manager = managers.BaseManager(address=('', constants.port),
authkey=constants.password)
manager.register('queue', callable=lambda: queue)
manager.r... | 26.25 | 60 | 0.742857 | 42 | 420 | 7.238095 | 0.547619 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005587 | 0.147619 | 420 | 15 | 61 | 28 | 0.843575 | 0 | 0 | 0 | 0 | 0 | 0.071599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3c330d486649479fce19cbb649c30d0e573867c1 | 1,491 | py | Python | merc/features/rfc1459/motd.py | merc-devel/merc | 15e010db2474b5d9f9720fc83983b03c95063a02 | [
"MIT"
] | 4 | 2015-02-15T03:37:34.000Z | 2017-03-27T12:39:10.000Z | merc/features/rfc1459/motd.py | merc-devel/merc | 15e010db2474b5d9f9720fc83983b03c95063a02 | [
"MIT"
] | null | null | null | merc/features/rfc1459/motd.py | merc-devel/merc | 15e010db2474b5d9f9720fc83983b03c95063a02 | [
"MIT"
] | null | null | null | from merc import config
from merc import feature
from merc import message
class MotdFeature(feature.Feature):
NAME = __name__
CONFIG_SECTION = 'motd'
install = MotdFeature.install
@MotdFeature.register_config_checker
def check_config(section):
return config.validate(section, str)
class MotdReply(message.R... | 19.88 | 59 | 0.710262 | 200 | 1,491 | 5.045 | 0.315 | 0.059465 | 0.041625 | 0.059465 | 0.262636 | 0.262636 | 0.262636 | 0.232904 | 0.232904 | 0.196234 | 0 | 0.010595 | 0.177062 | 1,491 | 74 | 60 | 20.148649 | 0.811736 | 0 | 0 | 0.265306 | 0 | 0 | 0.049631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183673 | false | 0 | 0.061224 | 0.081633 | 0.693878 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3c35808ed6b73b5f05bee9f370f2ca204e652c0d | 8,712 | py | Python | app.py | jessicagtz/Project-2-Chicago-Communities | 2baad98c537d1f0e1a3a3abdfe83d3aacd81ae1c | [
"MIT"
] | null | null | null | app.py | jessicagtz/Project-2-Chicago-Communities | 2baad98c537d1f0e1a3a3abdfe83d3aacd81ae1c | [
"MIT"
] | null | null | null | app.py | jessicagtz/Project-2-Chicago-Communities | 2baad98c537d1f0e1a3a3abdfe83d3aacd81ae1c | [
"MIT"
] | 2 | 2018-06-19T15:06:53.000Z | 2018-06-30T18:08:17.000Z | import datetime as dt
import numpy as np
import pandas as pd
from flask import (
Flask,
render_template,
jsonify,
request,
redirect)
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
####################... | 31.68 | 174 | 0.629247 | 1,046 | 8,712 | 5.010516 | 0.130975 | 0.06411 | 0.038161 | 0.013738 | 0.646823 | 0.646823 | 0.646823 | 0.629651 | 0.611715 | 0.611715 | 0 | 0.060177 | 0.221763 | 8,712 | 274 | 175 | 31.79562 | 0.712832 | 0.060606 | 0 | 0.531401 | 0 | 0 | 0.100838 | 0.002921 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048309 | false | 0 | 0.038647 | 0.014493 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c3d53afe98e70fec16a155afca23260c7ab896f | 3,065 | py | Python | app/modules/typos.py | Centaurus-dj/Calculonv | 8cbafe42d3fc74c8210e9e19e79d2175c63a7d33 | [
"MIT"
] | null | null | null | app/modules/typos.py | Centaurus-dj/Calculonv | 8cbafe42d3fc74c8210e9e19e79d2175c63a7d33 | [
"MIT"
] | null | null | null | app/modules/typos.py | Centaurus-dj/Calculonv | 8cbafe42d3fc74c8210e9e19e79d2175c63a7d33 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
try: import modules.typo_colors as c;
except Exception as e: print(e)
##############################################################################
####
#### CLASS OF TYPOS USED FOR WRITING
####
########################################################################... | 45.746269 | 135 | 0.514845 | 357 | 3,065 | 4.406162 | 0.361345 | 0.030515 | 0.022886 | 0.032422 | 0.474889 | 0.474889 | 0.474889 | 0.474889 | 0.456453 | 0.456453 | 0 | 0.003956 | 0.340294 | 3,065 | 66 | 136 | 46.439394 | 0.773986 | 0.256444 | 0 | 0.55102 | 0 | 0.020408 | 0.236919 | 0.024225 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.020408 | 0 | 0.183673 | 0.612245 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
3c3ee0b4ca9addfe2abb4c3c1926933b79a670e0 | 2,078 | py | Python | gencode/python/udmi/schema/reflect_config.py | johnrandolph/udmi | 5e9de32fc71de8d006cda2eba4d3372eaf24c7c0 | [
"Apache-2.0"
] | 1 | 2022-02-24T22:57:37.000Z | 2022-02-24T22:57:37.000Z | gencode/python/udmi/schema/reflect_config.py | johnrandolph/udmi | 5e9de32fc71de8d006cda2eba4d3372eaf24c7c0 | [
"Apache-2.0"
] | 5 | 2022-02-24T21:32:24.000Z | 2022-03-23T15:52:25.000Z | gencode/python/udmi/schema/reflect_config.py | johnrandolph/udmi | 5e9de32fc71de8d006cda2eba4d3372eaf24c7c0 | [
"Apache-2.0"
] | null | null | null | """Generated class for reflect_config.json"""
class SetupReflectorConfig:
"""Generated schema class"""
def __init__(self):
self.last_state = None
self.deployed_at = None
@staticmethod
def from_dict(source):
if not source:
return None
result = SetupReflectorConfig()
result.last_stat... | 23.613636 | 77 | 0.658325 | 253 | 2,078 | 5.268775 | 0.15415 | 0.072018 | 0.052513 | 0.051013 | 0.535634 | 0.535634 | 0.535634 | 0.483121 | 0.483121 | 0.483121 | 0 | 0.003139 | 0.233398 | 2,078 | 87 | 78 | 23.885057 | 0.833647 | 0.046198 | 0 | 0.628571 | 1 | 0 | 0.042813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.342857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c418ce294d7b2f4dc67884a65088729bb046e20 | 2,513 | py | Python | dependencies/svgwrite/tests/test_clock_val_parser.py | charlesmchen/typefacet | 8c6db26d0c599ece16f3704696811275120a4044 | [
"Apache-2.0"
] | 21 | 2015-01-16T05:10:02.000Z | 2021-06-11T20:48:15.000Z | dependencies/svgwrite/tests/test_clock_val_parser.py | charlesmchen/typefacet | 8c6db26d0c599ece16f3704696811275120a4044 | [
"Apache-2.0"
] | 1 | 2019-09-09T12:10:27.000Z | 2020-05-22T10:12:14.000Z | dependencies/svgwrite/tests/test_clock_val_parser.py | charlesmchen/typefacet | 8c6db26d0c599ece16f3704696811275120a4044 | [
"Apache-2.0"
] | 2 | 2015-05-03T04:51:08.000Z | 2018-08-24T08:28:53.000Z | #!/usr/bin/env python
#coding:utf-8
# Author: mozman --<mozman@gmx.at>
# Purpose: test clock_val_parser
# Created: 03.11.2010
# Copyright (C) 2010, Manfred Moitzi
# License: GPLv3
import sys
import unittest
PYTHON3 = sys.version_info[0] > 2
if PYTHON3:
import svgwrite.data.pyparsing_py3 as pp
els... | 33.065789 | 88 | 0.661759 | 355 | 2,513 | 4.484507 | 0.332394 | 0.065955 | 0.146985 | 0.163317 | 0.608668 | 0.481784 | 0.369975 | 0.304648 | 0.290201 | 0.237437 | 0 | 0.086269 | 0.220454 | 2,513 | 76 | 89 | 33.065789 | 0.726391 | 0.197772 | 0 | 0.217391 | 0 | 0 | 0.074132 | 0.03888 | 0 | 0 | 0 | 0 | 0.282609 | 1 | 0.173913 | false | 0 | 0.130435 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c41978e8ac985f119a10a9316dbb9e8d6e07029 | 378 | py | Python | manager.py | zhangmingkai4315/Flask-Web-App | a354a1c320103d3e347e998cfcbd9b958050ec0c | [
"MIT"
] | null | null | null | manager.py | zhangmingkai4315/Flask-Web-App | a354a1c320103d3e347e998cfcbd9b958050ec0c | [
"MIT"
] | null | null | null | manager.py | zhangmingkai4315/Flask-Web-App | a354a1c320103d3e347e998cfcbd9b958050ec0c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
from app import create_app,db
from app.models import User,Role
from flask.ext.script import Manager,Shell
from flask.ext.migrate import Migrate,MigrateCommand
app=create_app(os.getenv('FLASK_CONFIG') or 'default')
manager=Manager(app)
migrate=Migrate(app,db)
manager.add_command('db',M... | 23.625 | 54 | 0.785714 | 58 | 378 | 4.913793 | 0.517241 | 0.049123 | 0.084211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 378 | 15 | 55 | 25.2 | 0.833333 | 0.05291 | 0 | 0 | 0 | 0 | 0.081232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3c45c856ae0d09caf778b72f4db59747f21fb1c1 | 2,067 | py | Python | controllers/accounting_controllers.py | rbaylon/ngi | 97907dd687e15d35449f6cf850b6b37e379114ba | [
"BSD-3-Clause"
] | null | null | null | controllers/accounting_controllers.py | rbaylon/ngi | 97907dd687e15d35449f6cf850b6b37e379114ba | [
"BSD-3-Clause"
] | null | null | null | controllers/accounting_controllers.py | rbaylon/ngi | 97907dd687e15d35449f6cf850b6b37e379114ba | [
"BSD-3-Clause"
] | null | null | null | from models import ChapterPayments
from baseapp import db
class ChapterPaymentsController:
def __init__(self):
pass
def add(self, payment):
existing = False
payments = ChapterPayments.query.filter_by(received_date=payment['received_date']).all()
for existing_payment in payment... | 38.277778 | 96 | 0.628931 | 210 | 2,067 | 5.933333 | 0.2 | 0.204655 | 0.091493 | 0.067416 | 0.711075 | 0.686196 | 0.479936 | 0.325843 | 0.139647 | 0.139647 | 0 | 0 | 0.283986 | 2,067 | 54 | 97 | 38.277778 | 0.841892 | 0 | 0 | 0.288889 | 0 | 0 | 0.088491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0.022222 | 0.044444 | 0 | 0.288889 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c461b927554796602692df0743eb75ecb4de25a | 3,747 | py | Python | src/fhir_types/FHIR_DataRequirement.py | anthem-ai/fhir-types | 42348655fb3a9b3f131b911d6bc0782da8c14ce4 | [
"Apache-2.0"
] | 2 | 2022-02-03T00:51:30.000Z | 2022-02-03T18:42:43.000Z | src/fhir_types/FHIR_DataRequirement.py | anthem-ai/fhir-types | 42348655fb3a9b3f131b911d6bc0782da8c14ce4 | [
"Apache-2.0"
] | null | null | null | src/fhir_types/FHIR_DataRequirement.py | anthem-ai/fhir-types | 42348655fb3a9b3f131b911d6bc0782da8c14ce4 | [
"Apache-2.0"
] | null | null | null | from typing import Any, List, Literal, TypedDict
from .FHIR_canonical import FHIR_canonical
from .FHIR_code import FHIR_code
from .FHIR_CodeableConcept import FHIR_CodeableConcept
from .FHIR_DataRequirement_CodeFilter import FHIR_DataRequirement_CodeFilter
from .FHIR_DataRequirement_DateFilter import FHIR_DataRequirem... | 76.469388 | 603 | 0.75874 | 532 | 3,747 | 5.253759 | 0.306391 | 0.0322 | 0.01288 | 0.01288 | 0.156708 | 0.156708 | 0.156708 | 0.087299 | 0.063685 | 0.063685 | 0 | 0 | 0.195356 | 3,747 | 48 | 604 | 78.0625 | 0.927032 | 0.629837 | 0 | 0 | 0 | 0 | 0.10438 | 0.016058 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.354839 | 0 | 0.354839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3c48e27c2579c8b03ce667cdc38a9c0c0809cc60 | 386 | py | Python | ARMODServers/Apps/ARExperiences/migrations/0005_auto_20210411_1029.py | Phantomxm2021/ARMOD-Dashboard | 383cf0a5e72dc5a2651f43e693f06773d5b88bbd | [
"Apache-2.0"
] | 1 | 2021-11-04T09:03:27.000Z | 2021-11-04T09:03:27.000Z | ARMODServers/Apps/ARExperiences/migrations/0005_auto_20210411_1029.py | Phantomxm2021/ARMOD-Dashboard | 383cf0a5e72dc5a2651f43e693f06773d5b88bbd | [
"Apache-2.0"
] | null | null | null | ARMODServers/Apps/ARExperiences/migrations/0005_auto_20210411_1029.py | Phantomxm2021/ARMOD-Dashboard | 383cf0a5e72dc5a2651f43e693f06773d5b88bbd | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.4 on 2021-04-11 02:29
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ARExperiences', '0004_auto_20210411_1019'),
]
operations = [
migrations.RenameField(
model_name='arexperienceasset',
old_nam... | 20.315789 | 53 | 0.608808 | 40 | 386 | 5.7 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112319 | 0.284974 | 386 | 18 | 54 | 21.444444 | 0.713768 | 0.11658 | 0 | 0 | 1 | 0 | 0.20944 | 0.067847 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c4b81441c2fc469a2883930bd71f6f6d3c439e8 | 774 | py | Python | ex075.py | erikamaylim/Python-CursoemVideo | 5a6809818c4c55a02ec52379d95f3d20c833df2e | [
"MIT"
] | null | null | null | ex075.py | erikamaylim/Python-CursoemVideo | 5a6809818c4c55a02ec52379d95f3d20c833df2e | [
"MIT"
] | null | null | null | ex075.py | erikamaylim/Python-CursoemVideo | 5a6809818c4c55a02ec52379d95f3d20c833df2e | [
"MIT"
] | null | null | null | """Desenvolva um programa que leia quatro valores pelo teclado e guarde-os em uma tupla.
No final, mostre:
A) Quantas vezes apareceu o valor 9.
B) Em que posição foi digitado o primeiro valor 3.
C) Quais foram os números pares."""
tuplanum = (int(input('1º valor: ')),
int(input('2º valor: ')),
... | 33.652174 | 88 | 0.629199 | 124 | 774 | 3.927419 | 0.508065 | 0.065708 | 0.080082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024958 | 0.223514 | 774 | 22 | 89 | 35.181818 | 0.785358 | 0.289406 | 0 | 0 | 0 | 0 | 0.409926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
3c549224858ae10e90ad155584b93a1ba06af304 | 2,208 | py | Python | src/python/pcmdi/misc.py | gleckler1/pcmdi_metrics | 5b1c587ba64bb950debffed48b37430817be29e1 | [
"X11",
"MIT"
] | null | null | null | src/python/pcmdi/misc.py | gleckler1/pcmdi_metrics | 5b1c587ba64bb950debffed48b37430817be29e1 | [
"X11",
"MIT"
] | null | null | null | src/python/pcmdi/misc.py | gleckler1/pcmdi_metrics | 5b1c587ba64bb950debffed48b37430817be29e1 | [
"X11",
"MIT"
] | null | null | null | import cdms2 as cdms
import string, os
import ESMP
#### MAKE DIRECTORY
def mkdir_fcn(path):
try:
os.mkdir(path)
except:
pass
return
#### GET INHOUSE DATA THAT HAS BEEN TRANSFORMED/INTERPOLATED
def get_our_model_clim(data_location,var):
pd = data_location
# if var in ['tos','sos','zos']: pd = string.r... | 22.762887 | 116 | 0.655797 | 317 | 2,208 | 4.375394 | 0.287066 | 0.069214 | 0.017304 | 0.023792 | 0.281182 | 0.142754 | 0.142754 | 0.142754 | 0.142754 | 0.142754 | 0 | 0.007004 | 0.15942 | 2,208 | 96 | 117 | 23 | 0.740302 | 0.140399 | 0 | 0.4375 | 0 | 0 | 0.068447 | 0.028381 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.03125 | 0.046875 | null | null | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.