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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f7e60d27b51a3dff61c7cb059e0b9cff13ac099a | 7,350 | py | Python | src/pretalx/orga/views/organiser.py | s-light/pretalx | 5abed452688d8c0b3e44e71b7ce3ab9b6d80bd95 | [
"Apache-2.0"
] | null | null | null | src/pretalx/orga/views/organiser.py | s-light/pretalx | 5abed452688d8c0b3e44e71b7ce3ab9b6d80bd95 | [
"Apache-2.0"
] | null | null | null | src/pretalx/orga/views/organiser.py | s-light/pretalx | 5abed452688d8c0b3e44e71b7ce3ab9b6d80bd95 | [
"Apache-2.0"
] | null | null | null | from django.contrib import messages
from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404, redirect
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _
from django.views.generic import DeleteView, DetailView, TemplateView, Upd... | 34.186047 | 96 | 0.664354 | 844 | 7,350 | 5.627962 | 0.159953 | 0.071789 | 0.058947 | 0.035368 | 0.474526 | 0.416211 | 0.393684 | 0.375579 | 0.34 | 0.298316 | 0 | 0.002125 | 0.231837 | 7,350 | 214 | 97 | 34.345794 | 0.839178 | 0 | 0 | 0.458824 | 0 | 0 | 0.111293 | 0.035782 | 0 | 0 | 0 | 0 | 0 | 1 | 0.164706 | false | 0.029412 | 0.064706 | 0.064706 | 0.611765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f7e96d408a486372497a396dbf9f04233a32a423 | 2,082 | py | Python | src/classes/indicator/macd_indicator.py | matsuo7y/trade_centre | e2a4d8191963dd71a1c6aa9cfe19097b4f196e1a | [
"MIT"
] | null | null | null | src/classes/indicator/macd_indicator.py | matsuo7y/trade_centre | e2a4d8191963dd71a1c6aa9cfe19097b4f196e1a | [
"MIT"
] | null | null | null | src/classes/indicator/macd_indicator.py | matsuo7y/trade_centre | e2a4d8191963dd71a1c6aa9cfe19097b4f196e1a | [
"MIT"
] | null | null | null | import logging
from enum import Enum
import talib
from .indicator import AbstractIndicator, IndicatorValue
class MACDIndicatorSign(Enum):
SEPARATE_MACD_GREATER = 1
SEPATATE_SIGNAL_GREATER = 2
BOTH_UNDER_MACD_LESS = 3
BOTH_UNDER_SIGNAL_LESS = 4
BOTH_OVER_MACD_GREATER = 5
BOTH_OVER_SIGNAL_GREA... | 37.178571 | 120 | 0.676273 | 234 | 2,082 | 5.692308 | 0.252137 | 0.084084 | 0.126126 | 0.202703 | 0.407658 | 0.407658 | 0.361862 | 0.361862 | 0.361862 | 0.132132 | 0 | 0.010256 | 0.25072 | 2,082 | 55 | 121 | 37.854545 | 0.84359 | 0 | 0 | 0.119048 | 0 | 0 | 0.013929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.357143 | 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 |
f7ea4e3bb3d057fe6f4a2355e5f5289102278615 | 7,391 | py | Python | ykman/util.py | canokeys/yubikey-manager | 7e9fff8232ed914c417e0dcf7e81766869a91451 | [
"BSD-2-Clause"
] | 2 | 2022-03-16T04:52:27.000Z | 2022-03-16T13:52:21.000Z | ykman/util.py | canokeys/yubikey-manager | 7e9fff8232ed914c417e0dcf7e81766869a91451 | [
"BSD-2-Clause"
] | null | null | null | ykman/util.py | canokeys/yubikey-manager | 7e9fff8232ed914c417e0dcf7e81766869a91451 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2015 Yubico AB
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditi... | 32.848889 | 88 | 0.670951 | 904 | 7,391 | 5.358407 | 0.300885 | 0.024979 | 0.00929 | 0.014451 | 0.249794 | 0.176713 | 0.143683 | 0.125516 | 0.092898 | 0.092898 | 0 | 0.020845 | 0.253552 | 7,391 | 224 | 89 | 32.995536 | 0.857169 | 0.292653 | 0 | 0.206107 | 0 | 0 | 0.088824 | 0 | 0 | 0 | 0.001569 | 0 | 0 | 1 | 0.068702 | false | 0.137405 | 0.091603 | 0.007634 | 0.282443 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f7edec421f54e82551f72a2a432135b40ace6af3 | 2,217 | py | Python | moderngl_window/context/pyside2/keys.py | DavideRuzza/moderngl-window | e9debc6ed4a1899aa83c0da2320e03b0c2922b80 | [
"MIT"
] | 142 | 2019-11-11T23:14:28.000Z | 2022-03-29T08:37:03.000Z | moderngl_window/context/pyside2/keys.py | DavideRuzza/moderngl-window | e9debc6ed4a1899aa83c0da2320e03b0c2922b80 | [
"MIT"
] | 107 | 2019-10-31T20:31:45.000Z | 2022-03-23T15:01:41.000Z | moderngl_window/context/pyside2/keys.py | DavideRuzza/moderngl-window | e9debc6ed4a1899aa83c0da2320e03b0c2922b80 | [
"MIT"
] | 36 | 2019-12-12T16:14:10.000Z | 2022-01-18T22:58:21.000Z | # flake8: noqa E741
from PySide2.QtCore import Qt
from moderngl_window.context.base import BaseKeys
class Keys(BaseKeys):
"""
Namespace mapping pyside2 specific key constants
"""
ESCAPE = Qt.Key_Escape
SPACE = Qt.Key_Space
ENTER = Qt.Key_Enter
PAGE_UP = Qt.Key_PageUp
P... | 21.950495 | 79 | 0.583672 | 393 | 2,217 | 3.015267 | 0.274809 | 0.350211 | 0.011814 | 0.011814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051491 | 0.334235 | 2,217 | 100 | 80 | 22.17 | 0.751355 | 0.063148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023256 | 0 | 1 | 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 |
f7eeca84c240f67aa836ffc6c4aba51af0ffd7b4 | 654 | py | Python | simple_example.py | xavi-mat/myrtf | c94687cc172b7181bc3ca2ecf3ff152af78e37ff | [
"MIT"
] | 1 | 2020-02-08T00:36:26.000Z | 2020-02-08T00:36:26.000Z | simple_example.py | xavi-mat/simplertf | c94687cc172b7181bc3ca2ecf3ff152af78e37ff | [
"MIT"
] | null | null | null | simple_example.py | xavi-mat/simplertf | c94687cc172b7181bc3ca2ecf3ff152af78e37ff | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import simplertf
r = simplertf.RTF("My Document Title", verbose=True)
r.author = "Myself"
r.set_layout("A4") # The same result using r.layout = "A4"
r.par("This text starts a paragraph.")
r.text(" This text continues the paragraph, note the space before 'This'.")
r.note("The text of a footno... | 31.142857 | 89 | 0.715596 | 113 | 654 | 4.123894 | 0.486726 | 0.032189 | 0.038627 | 0.077253 | 0.098712 | 0.098712 | 0.098712 | 0 | 0 | 0 | 0 | 0.005386 | 0.148318 | 654 | 20 | 90 | 32.7 | 0.831239 | 0.090214 | 0 | 0 | 0 | 0 | 0.650927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7f029f8beafc41eb1aacc38595b64db0500b5a5 | 469 | py | Python | Ch7/numericProgressions.py | mtrdazzo/data-structures-python | 0d6f0a9edeee09c0693d1ef7c79b5a0f69edf079 | [
"MIT"
] | null | null | null | Ch7/numericProgressions.py | mtrdazzo/data-structures-python | 0d6f0a9edeee09c0693d1ef7c79b5a0f69edf079 | [
"MIT"
] | null | null | null | Ch7/numericProgressions.py | mtrdazzo/data-structures-python | 0d6f0a9edeee09c0693d1ef7c79b5a0f69edf079 | [
"MIT"
] | null | null | null | class Progression:
def __init__(self, start=0):
self._current = start
def _advance(self):
self.current += 1
def __next__(self):
if self.current is None:
raise StopIteration()
else:
answer = self._current
self._advance()
return... | 22.333333 | 58 | 0.556503 | 54 | 469 | 4.518519 | 0.518519 | 0.180328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.343284 | 469 | 20 | 59 | 23.45 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0.002132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0 | 0.0625 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7f099a3d5d24bd192bd6f10b1470e5c95f4875b | 6,256 | py | Python | google-datacatalog-qlik-connector/tests/google/datacatalog_connectors/qlik/scrape/engine_api_measures_helper_test.py | anugrah86/datacatalog-connectors-bi | 58cc57e12632cbd1e237b3d6930e519333c51f4e | [
"Apache-2.0"
] | 27 | 2020-04-27T21:55:49.000Z | 2022-02-18T22:09:13.000Z | google-datacatalog-qlik-connector/tests/google/datacatalog_connectors/qlik/scrape/engine_api_measures_helper_test.py | anugrah86/datacatalog-connectors-bi | 58cc57e12632cbd1e237b3d6930e519333c51f4e | [
"Apache-2.0"
] | 36 | 2020-05-01T15:26:14.000Z | 2022-03-26T00:09:19.000Z | google-datacatalog-qlik-connector/tests/google/datacatalog_connectors/qlik/scrape/engine_api_measures_helper_test.py | anugrah86/datacatalog-connectors-bi | 58cc57e12632cbd1e237b3d6930e519333c51f4e | [
"Apache-2.0"
] | 18 | 2020-04-30T22:14:09.000Z | 2022-01-13T10:28:03.000Z | #!/usr/bin/python
#
# Copyright 2021 Google LLC
#
# 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 ag... | 38.380368 | 79 | 0.617807 | 709 | 6,256 | 5.071932 | 0.270804 | 0.026696 | 0.03059 | 0.035039 | 0.670745 | 0.650167 | 0.642937 | 0.642937 | 0.642937 | 0.621524 | 0 | 0.00836 | 0.292519 | 6,256 | 162 | 80 | 38.617284 | 0.804112 | 0.205882 | 0 | 0.486957 | 0 | 0 | 0.174256 | 0.127505 | 0 | 0 | 0 | 0 | 0.078261 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.121739 | 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 |
f7f3767d0ba100472c0068b2df4bef992993febc | 1,023 | py | Python | Alternate implementation/vran.py | ashtedroid/Test-Cases-Prioritization-and-Analysis | 70a6997f3764ea39c51fdc8cd6806e430088f8a7 | [
"MIT"
] | 1 | 2020-04-24T08:08:49.000Z | 2020-04-24T08:08:49.000Z | Alternate implementation/vran.py | ashtedroid/Test-Cases-Prioritization-and-Analysis | 70a6997f3764ea39c51fdc8cd6806e430088f8a7 | [
"MIT"
] | null | null | null | Alternate implementation/vran.py | ashtedroid/Test-Cases-Prioritization-and-Analysis | 70a6997f3764ea39c51fdc8cd6806e430088f8a7 | [
"MIT"
] | null | null | null | '''
=================================================================
@version 2.0
@author Ashwin Ramadevanahalli
@title Testing.
Random Priorization module.
=================================================================
'''
import random
import vec_manipulation
import sys
def pri(rrlist,location,p... | 17.947368 | 92 | 0.57087 | 125 | 1,023 | 4.64 | 0.448 | 0.103448 | 0.098276 | 0.082759 | 0.182759 | 0.096552 | 0.096552 | 0 | 0 | 0 | 0 | 0.013793 | 0.14956 | 1,023 | 56 | 93 | 18.267857 | 0.652874 | 0 | 0 | 0.230769 | 0 | 0 | 0.098945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115385 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f7f922da71d5b0b3cd3455181465feb7dfb1351d | 3,511 | py | Python | scripts/test-omw-cili-db.py | sehqlr/OMW | 008bd8a96c7bd054b7284a407dc8e12167ec8832 | [
"MIT"
] | 33 | 2016-08-18T02:42:16.000Z | 2021-07-07T02:38:55.000Z | scripts/test-omw-cili-db.py | sehqlr/OMW | 008bd8a96c7bd054b7284a407dc8e12167ec8832 | [
"MIT"
] | 82 | 2016-12-05T11:40:41.000Z | 2021-03-17T08:44:40.000Z | scripts/test-omw-cili-db.py | sehqlr/OMW | 008bd8a96c7bd054b7284a407dc8e12167ec8832 | [
"MIT"
] | 12 | 2016-08-01T01:54:06.000Z | 2020-10-03T09:48:48.000Z | import sqlite3
import sys, time
dbfile = "omw.db"
con = sqlite3.connect(dbfile)
curs = con.cursor()
print("\nYou should be testing over an empty table!")
print("Failure to comply will result in foreverness... \n")
commandlist = [
("""PRAGMA foreign_keys = 1;""",
"""Activating foreign key constraints"""),
("""INSER... | 24.552448 | 73 | 0.603817 | 465 | 3,511 | 4.488172 | 0.236559 | 0.043124 | 0.057499 | 0.072832 | 0.159559 | 0.128414 | 0.115956 | 0.090081 | 0.090081 | 0.060374 | 0 | 0.015994 | 0.18086 | 3,511 | 142 | 74 | 24.725352 | 0.709666 | 0.049559 | 0 | 0.27957 | 0 | 0.043011 | 0.668995 | 0.027551 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.010753 | 0.021505 | 0 | 0.021505 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7faa87c8956ffaf946e44fe4188181df5f38082 | 7,935 | py | Python | src/test/python/org/o3project/odenos/core/component/network/flow/test_flow.py | o3project/odenos | 837d0d3d3c37482e843c40c5eeeac10646e68c65 | [
"Apache-2.0"
] | 26 | 2015-02-18T10:22:50.000Z | 2020-06-18T05:07:54.000Z | src/test/python/org/o3project/odenos/core/component/network/flow/test_flow.py | o3project/odenos | 837d0d3d3c37482e843c40c5eeeac10646e68c65 | [
"Apache-2.0"
] | 45 | 2015-02-20T00:40:45.000Z | 2021-12-14T21:07:57.000Z | src/test/python/org/o3project/odenos/core/component/network/flow/test_flow.py | o3project/odenos | 837d0d3d3c37482e843c40c5eeeac10646e68c65 | [
"Apache-2.0"
] | 30 | 2015-02-19T02:00:35.000Z | 2017-02-18T15:28:09.000Z | # -*- coding:utf-8 -*-
# Copyright 2015 NEC Corporation. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License... | 41.984127 | 77 | 0.558916 | 794 | 7,935 | 5.455919 | 0.167506 | 0.156971 | 0.201754 | 0.138504 | 0.719067 | 0.690905 | 0.5988 | 0.564635 | 0.433056 | 0.426131 | 0 | 0.019106 | 0.340391 | 7,935 | 188 | 78 | 42.207447 | 0.808559 | 0.118336 | 0 | 0.553333 | 0 | 0 | 0.048664 | 0 | 0 | 0 | 0 | 0 | 0.306667 | 1 | 0.113333 | false | 0 | 0.013333 | 0 | 0.186667 | 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 |
f7fc10f508eb733944921ea518ef70fe71b77d03 | 742 | py | Python | app/appapi/paths/base_api.py | QuittyMR/HYDI-scaffolder | 688b5ec5e2a46486521f7b4488de41b0b48a733d | [
"MIT"
] | null | null | null | app/appapi/paths/base_api.py | QuittyMR/HYDI-scaffolder | 688b5ec5e2a46486521f7b4488de41b0b48a733d | [
"MIT"
] | null | null | null | app/appapi/paths/base_api.py | QuittyMR/HYDI-scaffolder | 688b5ec5e2a46486521f7b4488de41b0b48a733d | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
from six import add_metaclass
@add_metaclass(ABCMeta)
class BaseApi(object):
"""
Every API path class should inherit from this interface-class, and imported in paths/__init__.py .
Each public method you define here will become an api route in the path returned by _... | 37.1 | 118 | 0.703504 | 105 | 742 | 4.885714 | 0.685714 | 0.046784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227763 | 742 | 19 | 119 | 39.052632 | 0.895288 | 0.684636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7901a80de89eb080152807d040a6b0cd565910ee | 3,346 | py | Python | Clases/Palabras.py | JorgeSchelotto/TrabajoFinalSeminarioPython | aae8cc914ff55cc09b7538722f27e1ec22954e57 | [
"MIT"
] | null | null | null | Clases/Palabras.py | JorgeSchelotto/TrabajoFinalSeminarioPython | aae8cc914ff55cc09b7538722f27e1ec22954e57 | [
"MIT"
] | null | null | null | Clases/Palabras.py | JorgeSchelotto/TrabajoFinalSeminarioPython | aae8cc914ff55cc09b7538722f27e1ec22954e57 | [
"MIT"
] | null | null | null | __author__ = 'Burgos, Agustin - Schelotto, Jorge'
# -*- coding: utf-8 -*-
# Copyright 2018 autors: Burgos Agustin, Schelotto Jorge
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without res... | 35.978495 | 128 | 0.633293 | 454 | 3,346 | 4.601322 | 0.381057 | 0.068933 | 0.046912 | 0.045955 | 0.166587 | 0.154141 | 0.134035 | 0.084251 | 0.084251 | 0.084251 | 0 | 0.011954 | 0.274955 | 3,346 | 92 | 129 | 36.369565 | 0.849134 | 0.382247 | 0 | 0.132075 | 0 | 0 | 0.016667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.188679 | false | 0 | 0.018868 | 0.113208 | 0.339623 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
79047555a9cb961132f9f4c9bf637bfcd9bcd92d | 3,907 | py | Python | utils/preprocessing_data.py | 1Stohk1/tami | e0aa902bb767631dd2435ed0eac05209b9bd64ed | [
"MIT"
] | 2 | 2020-12-17T20:51:48.000Z | 2021-02-01T09:28:30.000Z | utils/preprocessing_data.py | Djack1010/claransom | e823a64ed957b37ce5f9bcf77ada1e7097a06fc4 | [
"MIT"
] | 1 | 2020-12-25T19:48:49.000Z | 2020-12-25T19:48:49.000Z | utils/preprocessing_data.py | Djack1010/claransom | e823a64ed957b37ce5f9bcf77ada1e7097a06fc4 | [
"MIT"
] | 2 | 2020-11-02T12:00:27.000Z | 2021-09-20T09:52:45.000Z | import os
import numpy as np
import pickle
import pathlib
from random import shuffle, choice
def get_info_dataset(dataset_path, update=False):
# TODO: Implements some checks to verify edits to the dataset from last pickle.dump(data)
storing_data_path = dataset_path + "/info.txt"
if update and os.path.exi... | 48.8375 | 120 | 0.604044 | 545 | 3,907 | 4.13945 | 0.225688 | 0.063387 | 0.015514 | 0.046543 | 0.353723 | 0.285018 | 0.281472 | 0.237589 | 0.237589 | 0.207447 | 0 | 0.000696 | 0.264653 | 3,907 | 79 | 121 | 49.455696 | 0.784546 | 0.09291 | 0 | 0.107143 | 0 | 0 | 0.151344 | 0 | 0 | 0 | 0 | 0.012658 | 0 | 1 | 0.017857 | false | 0 | 0.089286 | 0 | 0.125 | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
7906de69213fac71644c64f5bd8688674e6c5710 | 15,151 | py | Python | external/jsoncppWrapper/makerelease.py | csyzzkdcz/effective-garbanzo | 87223ecfc26371a9b251a70a0111ca4e0d95b594 | [
"MIT"
] | null | null | null | external/jsoncppWrapper/makerelease.py | csyzzkdcz/effective-garbanzo | 87223ecfc26371a9b251a70a0111ca4e0d95b594 | [
"MIT"
] | null | null | null | external/jsoncppWrapper/makerelease.py | csyzzkdcz/effective-garbanzo | 87223ecfc26371a9b251a70a0111ca4e0d95b594 | [
"MIT"
] | null | null | null | """Tag the sandbox for release, make source and doc tarballs.
Requires Python 2.6
Example of invocation (use to test the script):
python makerelease.py --force --retag --platform=msvc6,msvc71,msvc80,mingw -ublep 0.5.0 0.6.0-dev
Example of invocation when doing a release:
python makerelease.py 0.5.0 0.6.0-dev... | 41.059621 | 124 | 0.620883 | 1,885 | 15,151 | 4.813263 | 0.208488 | 0.011242 | 0.014879 | 0.011022 | 0.210294 | 0.135677 | 0.074507 | 0.046732 | 0.038356 | 0.038356 | 0 | 0.005734 | 0.263283 | 15,151 | 368 | 125 | 41.171196 | 0.807113 | 0.024685 | 0 | 0.138514 | 0 | 0.003378 | 0.227575 | 0.007021 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010135 | 0.043919 | null | null | 0.087838 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
791309e0bde464a10516d5dcb3a7d7c53459e1e5 | 703 | py | Python | face_1.py | Mishiba-Toshihiro/IoT_to_AWS | db6f550adfc61dbd943482b6c0967ea2ebb577a7 | [
"MIT"
] | null | null | null | face_1.py | Mishiba-Toshihiro/IoT_to_AWS | db6f550adfc61dbd943482b6c0967ea2ebb577a7 | [
"MIT"
] | null | null | null | face_1.py | Mishiba-Toshihiro/IoT_to_AWS | db6f550adfc61dbd943482b6c0967ea2ebb577a7 | [
"MIT"
] | null | null | null | import cv2
import os
image = cv2.imread("/content/drive/My Drive/DIC_personal/data/face.jpg")
cascade = cv2.CascadeClassifier("/content/drive/My Drive/DIC_personal/haarcascades/haarcascade_upperbody.xml")
#image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
face_list = cascade.detectMultiScale(image)
#face_list = cascade.... | 30.565217 | 110 | 0.72973 | 104 | 703 | 4.855769 | 0.528846 | 0.063366 | 0.055446 | 0.075248 | 0.261386 | 0.118812 | 0 | 0 | 0 | 0 | 0 | 0.054927 | 0.119488 | 703 | 23 | 111 | 30.565217 | 0.760905 | 0.194879 | 0 | 0 | 0 | 0 | 0.244248 | 0.157522 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
791410919cad70f44baa5c8eccf3982e8b6d8d93 | 426 | py | Python | user/migrations/0005_auto_20191121_0120.py | darkliang/JudeeBE | 7e0ef9c9a69215c8ffd20cd09ddd300df1dec729 | [
"MIT"
] | 1 | 2022-02-17T18:15:36.000Z | 2022-02-17T18:15:36.000Z | user/migrations/0005_auto_20191121_0120.py | darkliang/JudeeBE | 7e0ef9c9a69215c8ffd20cd09ddd300df1dec729 | [
"MIT"
] | null | null | null | user/migrations/0005_auto_20191121_0120.py | darkliang/JudeeBE | 7e0ef9c9a69215c8ffd20cd09ddd300df1dec729 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2019-11-21 01:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0004_remove_user_register_time'),
]
operations = [
migrations.AlterField(
model_name='user',
name='username'... | 22.421053 | 86 | 0.622066 | 48 | 426 | 5.375 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070288 | 0.265258 | 426 | 18 | 87 | 23.666667 | 0.753994 | 0.105634 | 0 | 0 | 1 | 0 | 0.121372 | 0.079156 | 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 |
791502aa664313a04ad5c3f52129619c69d2e86c | 3,047 | py | Python | batch/train_model.py | alexanderlevin/mnist_digit_recognition | 57a3beab46d2c77e8387472ebc32c0a6c44eedb4 | [
"MIT"
] | null | null | null | batch/train_model.py | alexanderlevin/mnist_digit_recognition | 57a3beab46d2c77e8387472ebc32c0a6c44eedb4 | [
"MIT"
] | null | null | null | batch/train_model.py | alexanderlevin/mnist_digit_recognition | 57a3beab46d2c77e8387472ebc32c0a6c44eedb4 | [
"MIT"
] | null | null | null | import argparse
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
parser = argparse.ArgumentParser(description="Batch arguments")
parser.add_argument('--num-training-steps', type=int, dest='num_training_steps', default=2000)
parser.add_argument('--mini-batch-size', type=int, dest='mini... | 34.235955 | 94 | 0.656055 | 480 | 3,047 | 3.925 | 0.302083 | 0.014862 | 0.025478 | 0.035032 | 0.127919 | 0.082803 | 0.031847 | 0.031847 | 0.031847 | 0.031847 | 0 | 0.05705 | 0.194618 | 3,047 | 88 | 95 | 34.625 | 0.710676 | 0 | 0 | 0.061538 | 0 | 0 | 0.066951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046154 | null | null | 0.046154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7921c5e2cf5ecfd51ec3a0a943a45ce5b888cd21 | 2,116 | py | Python | src/helow/reporter/migrations/0013_auto_20200519_1300.py | BuildForSDG/team-079 | 817fd17f566be07c4b225c769ba6576462f080b8 | [
"MIT"
] | null | null | null | src/helow/reporter/migrations/0013_auto_20200519_1300.py | BuildForSDG/team-079 | 817fd17f566be07c4b225c769ba6576462f080b8 | [
"MIT"
] | null | null | null | src/helow/reporter/migrations/0013_auto_20200519_1300.py | BuildForSDG/team-079 | 817fd17f566be07c4b225c769ba6576462f080b8 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-05-19 13:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('reporter', '0012_auto_20200518_2249'),
]
operations = [
migrations.RenameField(
model_name='inc... | 32.553846 | 148 | 0.566635 | 188 | 2,116 | 6.207447 | 0.393617 | 0.061697 | 0.17138 | 0.138817 | 0.51671 | 0.51671 | 0.476435 | 0.347044 | 0.347044 | 0.347044 | 0 | 0.0255 | 0.314272 | 2,116 | 64 | 149 | 33.0625 | 0.778773 | 0.021267 | 0 | 0.517241 | 1 | 0 | 0.165297 | 0.0232 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.086207 | 0 | 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 |
7924084498d4d3b5b3f2ae5e05a8c22261410faa | 256 | py | Python | app/views/board.py | valentinDruzhinin/task-tracker | fa4fd5a5341f2d0ce5f259c1a687c4a86f11d1c4 | [
"MIT"
] | null | null | null | app/views/board.py | valentinDruzhinin/task-tracker | fa4fd5a5341f2d0ce5f259c1a687c4a86f11d1c4 | [
"MIT"
] | null | null | null | app/views/board.py | valentinDruzhinin/task-tracker | fa4fd5a5341f2d0ce5f259c1a687c4a86f11d1c4 | [
"MIT"
] | null | null | null | from flask import current_app, render_template, request
def board(board_id):
if request.method == 'GET':
return render_template(
'dashboard.html',
board=current_app.dashboard_repository.query(id=board_id)[0]
)
| 25.6 | 72 | 0.65625 | 31 | 256 | 5.193548 | 0.645161 | 0.124224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005181 | 0.246094 | 256 | 9 | 73 | 28.444444 | 0.829016 | 0 | 0 | 0 | 0 | 0 | 0.066406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
79276818eba65b950a31d4f349342a3baf9480f6 | 4,940 | py | Python | pupa/tests/scrape/test_vote_event_scrape.py | azban/pupa | 158378e19bcc322796aa4fb766784cbd4fd08413 | [
"BSD-3-Clause"
] | 62 | 2015-01-08T05:46:46.000Z | 2022-01-31T03:27:14.000Z | pupa/tests/scrape/test_vote_event_scrape.py | azban/pupa | 158378e19bcc322796aa4fb766784cbd4fd08413 | [
"BSD-3-Clause"
] | 199 | 2015-01-10T03:19:37.000Z | 2021-05-21T20:34:58.000Z | pupa/tests/scrape/test_vote_event_scrape.py | azban/pupa | 158378e19bcc322796aa4fb766784cbd4fd08413 | [
"BSD-3-Clause"
] | 35 | 2015-03-09T19:41:42.000Z | 2021-06-22T20:01:35.000Z | import pytest
from pupa.scrape import VoteEvent, Bill, Organization, OrderVoteEvent
from pupa.utils import get_pseudo_id
def toy_vote_event():
ve = VoteEvent(legislative_session="2009", motion_text="passage of the bill",
start_date="2009-01-07", result='pass', classification='bill-passage')
... | 34.788732 | 92 | 0.642105 | 713 | 4,940 | 4.246844 | 0.176718 | 0.059445 | 0.042933 | 0.054491 | 0.641017 | 0.583884 | 0.528402 | 0.476222 | 0.476222 | 0.476222 | 0 | 0.080837 | 0.216194 | 4,940 | 141 | 93 | 35.035461 | 0.701188 | 0.074899 | 0 | 0.349515 | 0 | 0 | 0.199869 | 0.035941 | 0 | 0 | 0 | 0 | 0.262136 | 1 | 0.116505 | false | 0.097087 | 0.029126 | 0 | 0.15534 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
79278a6188924e8e81b1c19a4a96e1875dc2e641 | 909 | py | Python | mantle/common/siso.py | splhack/mantle | 42fe81df22f4556f891f77b9c9acfd7e8bbe648b | [
"MIT"
] | null | null | null | mantle/common/siso.py | splhack/mantle | 42fe81df22f4556f891f77b9c9acfd7e8bbe648b | [
"MIT"
] | null | null | null | mantle/common/siso.py | splhack/mantle | 42fe81df22f4556f891f77b9c9acfd7e8bbe648b | [
"MIT"
] | null | null | null | from magma import *
from .register import _RegisterName, FFs
__all__ = ['DefineSISO', 'SISO']
@cache_definition
def DefineSISO(n, init=0, has_ce=False, has_reset=False):
"""
Generate Serial-In, Serial-Out shift register.
I : In(Bit), O : Out(Bit)
"""
class _SISO(Circuit):
name = _Registe... | 30.3 | 71 | 0.59956 | 124 | 909 | 4.193548 | 0.330645 | 0.076923 | 0.092308 | 0.1 | 0.261538 | 0.261538 | 0.211538 | 0.211538 | 0.111538 | 0 | 0 | 0.002963 | 0.257426 | 909 | 29 | 72 | 31.344828 | 0.767407 | 0.080308 | 0 | 0 | 1 | 0 | 0.026961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.1 | 0.05 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
792cd5e9eb4aba4d85462809212c7c8c91068519 | 326 | py | Python | src/python/trust_network_backend/tnb/apps/core/api.py | vladiibine/trust-network | 10d7c2f9082e9ad1944b2fb68206cb7657f63bde | [
"MIT"
] | 2 | 2017-02-06T10:31:34.000Z | 2018-02-21T09:06:09.000Z | src/python/trust_network_backend/tnb/apps/core/api.py | vladiibine/trust-network | 10d7c2f9082e9ad1944b2fb68206cb7657f63bde | [
"MIT"
] | null | null | null | src/python/trust_network_backend/tnb/apps/core/api.py | vladiibine/trust-network | 10d7c2f9082e9ad1944b2fb68206cb7657f63bde | [
"MIT"
] | null | null | null | from tornado import gen
from restless.preparers import FieldsPreparer
from tnb.contrib.handlers import RestHandler
class HealthcheckHandler(RestHandler):
preparer = FieldsPreparer(fields={
'message': 'message'
})
@gen.coroutine
def list(self):
return [{'message': 'Believe I\'m a hum... | 20.375 | 52 | 0.696319 | 35 | 326 | 6.485714 | 0.742857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202454 | 326 | 15 | 53 | 21.733333 | 0.873077 | 0 | 0 | 0 | 0 | 0 | 0.095092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0.1 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
792de2f7a3fdd0799b7cc0d6f33de412f16ce37c | 483 | py | Python | EWR/Exercise 2017 04 26/03 Tabelle.py | Koopakiller/Edu | 575c43dae24a4432e8c8fb2eda96e948cc33ec32 | [
"MIT"
] | null | null | null | EWR/Exercise 2017 04 26/03 Tabelle.py | Koopakiller/Edu | 575c43dae24a4432e8c8fb2eda96e948cc33ec32 | [
"MIT"
] | null | null | null | EWR/Exercise 2017 04 26/03 Tabelle.py | Koopakiller/Edu | 575c43dae24a4432e8c8fb2eda96e948cc33ec32 | [
"MIT"
] | null | null | null |
maxExponent = 6
maxNumber = 8
for p in range(1, maxExponent + 1):
format = "{:>" + str(max(len(str((maxNumber)**(p))) + 1, 4)) + "}"
if p == 1:
print (format.format("i"), end="")
else:
print (format.format("i^" + str(p)), end="")
print ("")
for i in range(1, maxNumber + 1):
for p ... | 28.411765 | 74 | 0.492754 | 67 | 483 | 3.552239 | 0.283582 | 0.088235 | 0.10084 | 0.226891 | 0.453782 | 0.453782 | 0.453782 | 0.453782 | 0.453782 | 0.453782 | 0 | 0.036313 | 0.258799 | 483 | 17 | 75 | 28.411765 | 0.628492 | 0 | 0 | 0.428571 | 0 | 0 | 0.022774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.357143 | 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 |
792ee29a1305a7e63f49efce3fca6f6e3522c6fb | 1,186 | py | Python | pyanoled/visualizer/color_schemes/KeyScheme.py | ethanlu/pyanoled | 5eabefc791c70afecfd2f4e3b61c78d150c6f551 | [
"MIT"
] | null | null | null | pyanoled/visualizer/color_schemes/KeyScheme.py | ethanlu/pyanoled | 5eabefc791c70afecfd2f4e3b61c78d150c6f551 | [
"MIT"
] | null | null | null | pyanoled/visualizer/color_schemes/KeyScheme.py | ethanlu/pyanoled | 5eabefc791c70afecfd2f4e3b61c78d150c6f551 | [
"MIT"
] | null | null | null | from pyanoled.event.Events import KeyEvent
from pyanoled.visualizer.color_schemes.Scheme import Scheme
from typing import Tuple
class KeyScheme(Scheme):
"""
two colors mapped to black and white keys
"""
def get_color(self, key: KeyEvent) -> Tuple:
if key.normalized_note < 3:
# fi... | 32.054054 | 85 | 0.581788 | 141 | 1,186 | 4.801418 | 0.404255 | 0.088626 | 0.132939 | 0.088626 | 0.274742 | 0.165436 | 0.165436 | 0 | 0 | 0 | 0 | 0.040252 | 0.32968 | 1,186 | 36 | 86 | 32.944444 | 0.811321 | 0.20742 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.136364 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
79342f4f804798f32b4e497c4534a1ac1fb12e8f | 1,412 | py | Python | Exploitation/Web-Exploitation/SQL-Injection/sqliv/src/reverseip.py | FOGSEC/TID3xploits | b57d8bae454081a3883a5684679e2a329e72d6e5 | [
"MIT"
] | 5 | 2018-01-15T13:58:40.000Z | 2022-02-17T02:38:58.000Z | Exploitation/Web-Exploitation/SQL-Injection/sqliv/src/reverseip.py | bhattsameer/TID3xploits | b57d8bae454081a3883a5684679e2a329e72d6e5 | [
"MIT"
] | null | null | null | Exploitation/Web-Exploitation/SQL-Injection/sqliv/src/reverseip.py | bhattsameer/TID3xploits | b57d8bae454081a3883a5684679e2a329e72d6e5 | [
"MIT"
] | 4 | 2019-06-21T07:51:11.000Z | 2020-11-04T05:20:09.000Z | # Reverse Domain Lookup
import sys
import urllib
import urllib2
import json
from urlparse import urlparse
from web import useragents
def reverseip(url):
"""return domains from given the same server"""
# get only domain name
url = urlparse(url).netloc if urlparse(url).netloc != '' else urlparse(url).pat... | 26.148148 | 98 | 0.641643 | 165 | 1,412 | 5.472727 | 0.533333 | 0.035437 | 0.062016 | 0.033223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009937 | 0.216006 | 1,412 | 53 | 99 | 26.641509 | 0.805781 | 0.048159 | 0 | 0 | 0 | 0 | 0.163313 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.121212 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7935a4a25768c0263c403d30c976a3bac4ae4d81 | 699 | py | Python | pterradactyl/util/__init__.py | GiampaoloFalqui/pterradactyl | 3d34f8088784c53e3d0871d8ca81f2381f2c2be9 | [
"Apache-2.0"
] | 2 | 2022-03-31T09:02:49.000Z | 2022-03-31T18:56:52.000Z | pterradactyl/util/__init__.py | GiampaoloFalqui/pterradactyl | 3d34f8088784c53e3d0871d8ca81f2381f2c2be9 | [
"Apache-2.0"
] | 4 | 2021-12-20T18:31:47.000Z | 2022-03-14T16:31:49.000Z | pterradactyl/util/__init__.py | GiampaoloFalqui/pterradactyl | 3d34f8088784c53e3d0871d8ca81f2381f2c2be9 | [
"Apache-2.0"
] | null | null | null | import itertools
def merge_dict(*args):
return dict(
list(
itertools.chain.from_iterable(
[list(arg.items()) for arg in args]
)
)
)
def lookup(data, *args, default=None):
for arg in args:
if arg in data.keys():
return data[arg]
... | 19.416667 | 101 | 0.559371 | 92 | 699 | 4.206522 | 0.358696 | 0.05168 | 0.062016 | 0.093023 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.323319 | 699 | 35 | 102 | 19.971429 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.041667 | 0.083333 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f70020b4615ef66843d3d64a999da443cca1e88c | 418 | py | Python | catalog/migrations/0003_item_tags.py | yeezy-na-izi/YlDjango | 6fd0763183d76e4f7ca4a9686170d0665d7c04e9 | [
"MIT"
] | 6 | 2022-03-06T10:43:06.000Z | 2022-03-24T13:00:12.000Z | catalog/migrations/0003_item_tags.py | yeezy-na-izi/YlDjango | 6fd0763183d76e4f7ca4a9686170d0665d7c04e9 | [
"MIT"
] | 6 | 2022-03-09T13:22:41.000Z | 2022-03-25T09:21:37.000Z | catalog/migrations/0003_item_tags.py | yeezy-na-izi/YlDjango | 6fd0763183d76e4f7ca4a9686170d0665d7c04e9 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.12 on 2022-03-21 09:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalog', '0002_tag'),
]
operations = [
migrations.AddField(
model_name='item',
name='tags',
field=mode... | 22 | 102 | 0.598086 | 46 | 418 | 5.347826 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0.270335 | 418 | 18 | 103 | 23.222222 | 0.740984 | 0.110048 | 0 | 0 | 1 | 0 | 0.116216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f70745fb4433febb663cfc4f6924bdf4b71efdcf | 359 | py | Python | app.py | bjongbloedt/menu | 800b2045a28d1b3937ebefdda0b7a2ad45c09bb6 | [
"MIT"
] | null | null | null | app.py | bjongbloedt/menu | 800b2045a28d1b3937ebefdda0b7a2ad45c09bb6 | [
"MIT"
] | 1 | 2021-06-01T21:44:43.000Z | 2021-06-01T21:44:43.000Z | app.py | bjongbloedt/menu | 800b2045a28d1b3937ebefdda0b7a2ad45c09bb6 | [
"MIT"
] | null | null | null | from apistar.backends import sqlalchemy_backend
from apistar.frameworks.wsgi import WSGIApp as App
from project.routes import routes
from project.settings import settings
app = App(
routes=routes,
settings=settings,
commands=sqlalchemy_backend.commands,
components=sqlalchemy_backend.components
)
if ... | 21.117647 | 50 | 0.777159 | 43 | 359 | 6.232558 | 0.44186 | 0.190299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153203 | 359 | 16 | 51 | 22.4375 | 0.881579 | 0 | 0 | 0 | 0 | 0 | 0.022284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f70896259323c12a6a8a8989b79dfbdb5e1f2dfa | 1,080 | py | Python | libp2p/network/stream/net_stream.py | ChihChengLiang/py-libp2p | f0046fa3e0952b492837a698b1988e05c9821f47 | [
"Apache-2.0",
"MIT"
] | null | null | null | libp2p/network/stream/net_stream.py | ChihChengLiang/py-libp2p | f0046fa3e0952b492837a698b1988e05c9821f47 | [
"Apache-2.0",
"MIT"
] | null | null | null | libp2p/network/stream/net_stream.py | ChihChengLiang/py-libp2p | f0046fa3e0952b492837a698b1988e05c9821f47 | [
"Apache-2.0",
"MIT"
] | null | null | null | from .net_stream_interface import INetStream
class NetStream(INetStream):
def __init__(self, muxed_stream):
self.muxed_stream = muxed_stream
self.mplex_conn = muxed_stream.mplex_conn
self.protocol_id = None
def get_protocol(self):
"""
:return: protocol id that stream ... | 24 | 59 | 0.587963 | 125 | 1,080 | 4.896 | 0.328 | 0.130719 | 0.122549 | 0.098039 | 0.189542 | 0.104575 | 0.104575 | 0 | 0 | 0 | 0 | 0 | 0.32963 | 1,080 | 44 | 60 | 24.545455 | 0.845304 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f70ab5c7458892a86950720ad6a41431776a170d | 355 | py | Python | tests/views.py | iLoveTux/django-slick-reporting | ef88f3bab3094e976bd306a112501d547c88fed1 | [
"BSD-3-Clause"
] | null | null | null | tests/views.py | iLoveTux/django-slick-reporting | ef88f3bab3094e976bd306a112501d547c88fed1 | [
"BSD-3-Clause"
] | null | null | null | tests/views.py | iLoveTux/django-slick-reporting | ef88f3bab3094e976bd306a112501d547c88fed1 | [
"BSD-3-Clause"
] | null | null | null | from slick_reporting.views import SampleReportView
from .models import OrderLine
class MonthlyProductSales(SampleReportView):
report_model = OrderLine
date_field = 'date_placed' # or 'order__date_placed'
group_by = 'product'
columns = ['name', 'sku']
time_series_pattern = 'monthly'
time_serie... | 29.583333 | 57 | 0.746479 | 39 | 355 | 6.358974 | 0.74359 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166197 | 355 | 11 | 58 | 32.272727 | 0.837838 | 0.064789 | 0 | 0 | 0 | 0 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f70ad45594920c02ebd62ebd037cc86e54c3965b | 386 | py | Python | OOP_formy/src/pages/file_upload.py | AntonioIonica/Automation_testing | 6f7c94c55677b0958e6fada24058f1a00d2c0d0e | [
"MIT"
] | null | null | null | OOP_formy/src/pages/file_upload.py | AntonioIonica/Automation_testing | 6f7c94c55677b0958e6fada24058f1a00d2c0d0e | [
"MIT"
] | null | null | null | OOP_formy/src/pages/file_upload.py | AntonioIonica/Automation_testing | 6f7c94c55677b0958e6fada24058f1a00d2c0d0e | [
"MIT"
] | null | null | null | """
File upload page using a png file
"""
from selenium.webdriver.common.by import By
from pages.base_page import BasePage
class FileUpload(BasePage):
FILE_UP = (By.ID, 'file-upload-field')
def upload_file(self):
file_up = self.driver.find_element(*self.FILE_UP)
file_up.send_keys('C:/Users/a... | 25.733333 | 102 | 0.735751 | 57 | 386 | 4.807018 | 0.631579 | 0.087591 | 0.072993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147668 | 386 | 14 | 103 | 27.571429 | 0.832827 | 0.085492 | 0 | 0 | 0 | 0 | 0.26087 | 0.211594 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f714e47b106eac676e74b6b6d55a7dccf1215a4c | 8,482 | py | Python | datasets/wikitext/wikitext.py | WojciechKusa/datasets | 1406a04c3e911cec2680d8bc513653e0cafcaaa4 | [
"Apache-2.0"
] | 10,608 | 2020-09-10T15:47:50.000Z | 2022-03-31T22:51:47.000Z | datasets/wikitext/wikitext.py | WojciechKusa/datasets | 1406a04c3e911cec2680d8bc513653e0cafcaaa4 | [
"Apache-2.0"
] | 2,396 | 2020-09-10T14:55:31.000Z | 2022-03-31T19:41:04.000Z | datasets/wikitext/wikitext.py | WojciechKusa/datasets | 1406a04c3e911cec2680d8bc513653e0cafcaaa4 | [
"Apache-2.0"
] | 1,530 | 2020-09-10T21:43:10.000Z | 2022-03-31T01:59:12.000Z | """TODO(wikitext): Add a description here."""
import os
import datasets
_CITATION = """\
@misc{merity2016pointer,
title={Pointer Sentinel Mixture Models},
author={Stephen Merity and Caiming Xiong and James Bradbury and Richard Socher},
year={2016},
eprint={1609.07843},
archivePrefix={... | 43.948187 | 119 | 0.524051 | 848 | 8,482 | 5.108491 | 0.259434 | 0.040628 | 0.036934 | 0.051708 | 0.555402 | 0.551708 | 0.54109 | 0.515697 | 0.509234 | 0.509234 | 0 | 0.015316 | 0.368781 | 8,482 | 192 | 120 | 44.177083 | 0.793799 | 0.108111 | 0 | 0.496732 | 0 | 0.006536 | 0.257677 | 0.017891 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.026144 | false | 0 | 0.013072 | 0.006536 | 0.098039 | 0.006536 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
f71622aea7d6b89a7c4742971cb49b5011e7e9cd | 6,024 | py | Python | src/oci/log_analytics/models/parser_test_result.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 249 | 2017-09-11T22:06:05.000Z | 2022-03-04T17:09:29.000Z | src/oci/log_analytics/models/parser_test_result.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 228 | 2017-09-11T23:07:26.000Z | 2022-03-23T10:58:50.000Z | src/oci/log_analytics/models/parser_test_result.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 224 | 2017-09-27T07:32:43.000Z | 2022-03-25T16:55:42.000Z | # coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 30.892308 | 245 | 0.65488 | 662 | 6,024 | 5.752266 | 0.188822 | 0.040966 | 0.144433 | 0.068277 | 0.545431 | 0.402836 | 0.256303 | 0.21271 | 0.21271 | 0.129202 | 0 | 0.004107 | 0.27241 | 6,024 | 194 | 246 | 31.051546 | 0.864705 | 0.511288 | 0 | 0.080645 | 0 | 0 | 0.122883 | 0.032566 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.032258 | 0.032258 | 0.419355 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f7186fc46e644f635442d789ab4d0f721f98e6ea | 1,072 | py | Python | pythonLib/Evaluate_tool/test.py | BK-bokai/TW-SIM | 4e0bce9949919463af9d475b719a579b5e17c343 | [
"MIT"
] | null | null | null | pythonLib/Evaluate_tool/test.py | BK-bokai/TW-SIM | 4e0bce9949919463af9d475b719a579b5e17c343 | [
"MIT"
] | 4 | 2020-09-07T20:55:40.000Z | 2021-10-06T13:08:51.000Z | pythonLib/Evaluate_tool/test.py | BK-bokai/BK_WEB | 8c730e7fff54353768e19eeecb296c5435fd63b3 | [
"MIT"
] | null | null | null | import MySQLdb
import re, time
#connect() 方法用於建立資料庫的連線,裡面可以指定引數:使用者名稱,密碼,主機等資訊。
#這只是連線到了資料庫,要想操作資料庫需要建立遊標。
conn= MySQLdb.connect(
host='localhost',
port = 3306,
user='bokai',
passwd='2841p4204',
db ='tw_sim_evaluate',
)
#通過獲取到的資料庫連線conn下的cursor()方法來建立遊標。
cur = conn.curso... | 26.146341 | 124 | 0.646455 | 137 | 1,072 | 4.941606 | 0.467153 | 0.047267 | 0.06647 | 0.070901 | 0.076809 | 0.076809 | 0.076809 | 0 | 0 | 0 | 0 | 0.066069 | 0.166978 | 1,072 | 40 | 125 | 26.8 | 0.692049 | 0.570896 | 0 | 0 | 0 | 0 | 0.273973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.125 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f722b721e7eab69ffbf8ddc2e18bb83c2eacb719 | 797 | py | Python | tests/test_utils.py | marteinn/wagtail-meta-preview | c07a1bace9b9f18dc4c4ef5429eb9b94fdc4eb0b | [
"MIT"
] | 22 | 2020-08-02T07:37:48.000Z | 2022-03-23T08:10:42.000Z | tests/test_utils.py | marteinn/wagtail-meta-preview | c07a1bace9b9f18dc4c4ef5429eb9b94fdc4eb0b | [
"MIT"
] | 2 | 2020-08-02T19:27:12.000Z | 2020-08-16T10:02:59.000Z | tests/test_utils.py | marteinn/wagtail-meta-preview | c07a1bace9b9f18dc4c4ef5429eb9b94fdc4eb0b | [
"MIT"
] | 2 | 2020-08-02T18:55:44.000Z | 2020-08-03T12:01:54.000Z | from io import BytesIO
import PIL.Image
from django.test import TestCase
from django.core.files.images import ImageFile
from wagtail.tests.utils import WagtailTestUtils
from wagtail.images.models import Image
from wagtail_meta_preview.utils import get_focal
# Taken from wagtail.images.test.utils
def get_test_image_... | 28.464286 | 79 | 0.705144 | 112 | 797 | 4.919643 | 0.428571 | 0.079855 | 0.07078 | 0.058076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021116 | 0.16813 | 797 | 27 | 80 | 29.518519 | 0.809955 | 0.045169 | 0 | 0 | 0 | 0 | 0.064559 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.157895 | false | 0 | 0.368421 | 0 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f7330613c773e3513188aafb37bf605465fc7e38 | 428 | py | Python | scheduler.py | becca-mayers/alert-bot | c4abdc39038fdda97a08c650a64d231282ba0cce | [
"MIT"
] | null | null | null | scheduler.py | becca-mayers/alert-bot | c4abdc39038fdda97a08c650a64d231282ba0cce | [
"MIT"
] | null | null | null | scheduler.py | becca-mayers/alert-bot | c4abdc39038fdda97a08c650a64d231282ba0cce | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 9 16:31:57 2021
@author: beccamayers
"""
import schedule
from datetime import datetime
from alert_bot import get_alert
import time
now = datetime.now()
timestamp = now.strftime("%b%d%Y %H%M%p")
def job():
print("Launching Alert Bot app...")
ge... | 16.461538 | 42 | 0.633178 | 62 | 428 | 4.306452 | 0.725806 | 0.059925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039157 | 0.224299 | 428 | 26 | 43 | 16.461538 | 0.76506 | 0.186916 | 0 | 0 | 0 | 0 | 0.123418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.384615 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f7330cccd845faac892f6590e80c0731c10bfa86 | 1,330 | py | Python | Problems/Next Lucky Number/lucky.py | jamtot/HackerEarth | 71b919920dbc5b3af3fc49920939bab418455fb6 | [
"MIT"
] | 3 | 2018-07-17T09:03:02.000Z | 2020-05-11T18:03:25.000Z | Problems/Next Lucky Number/lucky.py | jamtot/HackerEarth | 71b919920dbc5b3af3fc49920939bab418455fb6 | [
"MIT"
] | null | null | null | Problems/Next Lucky Number/lucky.py | jamtot/HackerEarth | 71b919920dbc5b3af3fc49920939bab418455fb6 | [
"MIT"
] | 2 | 2016-06-01T13:16:27.000Z | 2018-09-25T08:32:24.000Z | def next_lucky(n):
if len(n) == 0:
return ''
if int(n[0]) < 3:
return '3'*len(n)
elif int(n[0]) == 3:
pos1 = int(n[0]+next_lucky(n[1:]))
pos2 = int('5'+'3'*(len(n)-1))
if pos1 > pos2: pos1,pos2 = pos2,pos1
if pos1 > int(n):
return str(pos1)
... | 23.75 | 45 | 0.496241 | 198 | 1,330 | 3.181818 | 0.237374 | 0.142857 | 0.055556 | 0.057143 | 0.577778 | 0.504762 | 0.504762 | 0.504762 | 0.504762 | 0.504762 | 0 | 0.081345 | 0.306767 | 1,330 | 55 | 46 | 24.181818 | 0.601952 | 0.043609 | 0 | 0.375 | 0 | 0 | 0.038934 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | null | null | 0 | 0 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f73882396283137fefa94120bdcfa33bbc48a1a3 | 743 | py | Python | util/make-gnuplot.py | LudwikJaniuk/cut-match-game | 15ea67bcd927d4b3ab88fd916b290df2fc8eb8f2 | [
"MIT"
] | 1 | 2020-08-03T20:50:54.000Z | 2020-08-03T20:50:54.000Z | util/make-gnuplot.py | LudwikJaniuk/cut-match-game | 15ea67bcd927d4b3ab88fd916b290df2fc8eb8f2 | [
"MIT"
] | null | null | null | util/make-gnuplot.py | LudwikJaniuk/cut-match-game | 15ea67bcd927d4b3ab88fd916b290df2fc8eb8f2 | [
"MIT"
] | null | null | null | #!python3
import sys
# Used to generate output that my gnuplot will accept
lines = iter(sys.stdin)
next(lines)
lines = map(lambda s: s.split(), lines)
#0 Graph_name vertices edges g_phi h_phi timed_out
#6 spent_time allowed_time read_as_multi CASE best_cut_conductance
#11 best_cut_expansion edges_crossing size1 si... | 30.958333 | 108 | 0.724092 | 132 | 743 | 3.901515 | 0.628788 | 0.067961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102362 | 0.145357 | 743 | 23 | 109 | 32.304348 | 0.708661 | 0.512786 | 0 | 0 | 1 | 0.125 | 0.525424 | 0.327684 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7392f365d0342a88e633f9fe40d39d11062f96b | 11,951 | py | Python | lib/mma.py | zzzace2000/cairl_nodegam | 90d0d56a0e7be3d1cbba6179cbfc36d626456770 | [
"MIT"
] | 3 | 2021-11-10T14:48:24.000Z | 2022-01-03T12:35:39.000Z | lib/mma.py | zzzace2000/cairl_nodegam | 90d0d56a0e7be3d1cbba6179cbfc36d626456770 | [
"MIT"
] | null | null | null | lib/mma.py | zzzace2000/cairl_nodegam | 90d0d56a0e7be3d1cbba6179cbfc36d626456770 | [
"MIT"
] | null | null | null | import logging
import cvxpy as cvx
import numpy as np
from numpy.linalg import norm
from tqdm import tqdm
class MaxMarginAbbeel(object):
"""
implementation of (Abbeel & Ng 2004)
two versions: available
1. max-margin (stable, computationally more heavy)
2. projection (simpler)
"""
def ... | 30.487245 | 97 | 0.534683 | 1,474 | 11,951 | 4.048847 | 0.164179 | 0.029156 | 0.010556 | 0.012567 | 0.252513 | 0.19437 | 0.170241 | 0.151475 | 0.127346 | 0.103217 | 0 | 0.010935 | 0.349594 | 11,951 | 391 | 98 | 30.565217 | 0.756851 | 0.336039 | 0 | 0.158192 | 0 | 0 | 0.049229 | 0 | 0 | 0 | 0 | 0.012788 | 0 | 1 | 0.028249 | false | 0 | 0.028249 | 0 | 0.084746 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
f746c90f8434ef6641634d7b1b3a48ce8effce9e | 1,051 | py | Python | tests/pksetup_data/pksetupunit2/setup.py | radiasoft/pykern | bf5946e20d77d13ceab387c33ac75c59b6579de6 | [
"Apache-2.0"
] | 8 | 2016-10-26T13:23:44.000Z | 2022-03-02T22:03:01.000Z | tests/pksetup_data/pksetupunit2/setup.py | radiasoft/pykern | bf5946e20d77d13ceab387c33ac75c59b6579de6 | [
"Apache-2.0"
] | 124 | 2016-03-01T15:32:54.000Z | 2022-03-31T17:42:40.000Z | tests/pksetup_data/pksetupunit2/setup.py | radiasoft/pykern | bf5946e20d77d13ceab387c33ac75c59b6579de6 | [
"Apache-2.0"
] | 10 | 2015-05-09T14:17:36.000Z | 2020-02-10T18:42:53.000Z | # -*- coding: utf-8 -*-
u"""pksetupunit2 setup script
:copyright: Copyright (c) 2016 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
"""
import pykern.pksetup
pykern.pksetup.setup(
name='pksetupunit2',
author='RadiaSoft LLC',
author_email='pip@radiasoft.net',... | 31.848485 | 67 | 0.62607 | 112 | 1,051 | 5.848214 | 0.669643 | 0.087023 | 0.114504 | 0.061069 | 0.134351 | 0.134351 | 0.134351 | 0.134351 | 0.134351 | 0.134351 | 0 | 0.022005 | 0.221694 | 1,051 | 32 | 68 | 32.84375 | 0.778729 | 0.21313 | 0 | 0 | 0 | 0 | 0.568987 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.04 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f748969a3893b8d1317621ccb2f48bf92fc504d0 | 1,941 | py | Python | utils/emailConfig/email_config.py | wdangelo/file-collector-afd | 068078c5dc224f86035da0fefb75e09745255023 | [
"MIT"
] | 1 | 2021-12-08T13:58:55.000Z | 2021-12-08T13:58:55.000Z | utils/emailConfig/email_config.py | wdangelo/file-collector-afd | 068078c5dc224f86035da0fefb75e09745255023 | [
"MIT"
] | null | null | null | utils/emailConfig/email_config.py | wdangelo/file-collector-afd | 068078c5dc224f86035da0fefb75e09745255023 | [
"MIT"
] | null | null | null | import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.mime.base import MIMEBase
from email import encoders
from datetime import datetime
def sending(message):
date_hour_now = datetime.now()
date_hour_now_format = date_hour_now.strftime(f" data: %d/%m... | 34.052632 | 94 | 0.652241 | 247 | 1,941 | 4.967611 | 0.477733 | 0.051345 | 0.03586 | 0.02771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01688 | 0.236991 | 1,941 | 57 | 95 | 34.052632 | 0.811614 | 0.148892 | 0 | 0 | 0 | 0.025641 | 0.303289 | 0.087698 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.051282 | 0.179487 | 0 | 0.205128 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f74b1dd3c9c1877f382ad9de3cc6b438830e37af | 517 | py | Python | run.py | y-naka/auto_test | 46294b58afa768c7717d5cbff4eb22b3bc294ebd | [
"BSD-3-Clause"
] | null | null | null | run.py | y-naka/auto_test | 46294b58afa768c7717d5cbff4eb22b3bc294ebd | [
"BSD-3-Clause"
] | null | null | null | run.py | y-naka/auto_test | 46294b58afa768c7717d5cbff4eb22b3bc294ebd | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# vim:fileencoding=utf-8
# Author: Shinya Suzuki
# Created: 2017-11-16
from application import app
from application.models import init_schema, init_data
import click
@app.cli.command(help="Initialize database")
def initdb():
init_schema()
init_data({"profile": [{"name": "Takuji Yamada",... | 25.85 | 110 | 0.700193 | 74 | 517 | 4.72973 | 0.72973 | 0.017143 | 0.08 | 0.102857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037778 | 0.129594 | 517 | 19 | 111 | 27.210526 | 0.74 | 0.16441 | 0 | 0 | 0 | 0 | 0.28271 | 0.063084 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | true | 0 | 0.3 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f74b8742b523ab4e459cece29dc0bef34dcb9103 | 7,138 | py | Python | sdk/lusid/models/aggregation_options.py | slemasne/lusid-sdk-python-preview | 94a97951ec2052bc1672b7be21e52ad2fcf6eea0 | [
"MIT"
] | null | null | null | sdk/lusid/models/aggregation_options.py | slemasne/lusid-sdk-python-preview | 94a97951ec2052bc1672b7be21e52ad2fcf6eea0 | [
"MIT"
] | null | null | null | sdk/lusid/models/aggregation_options.py | slemasne/lusid-sdk-python-preview | 94a97951ec2052bc1672b7be21e52ad2fcf6eea0 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
LUSID API
FINBOURNE Technology # noqa: E501
The version of the OpenAPI document: 0.11.3725
Contact: info@finbourne.com
Generated by: https://openapi-generator.tech
"""
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getf... | 40.327684 | 312 | 0.669936 | 897 | 7,138 | 5.115942 | 0.199554 | 0.035084 | 0.055132 | 0.085204 | 0.638701 | 0.574635 | 0.501416 | 0.468294 | 0.430595 | 0.357376 | 0 | 0.010051 | 0.261278 | 7,138 | 176 | 313 | 40.556818 | 0.860231 | 0.419165 | 0 | 0.108434 | 1 | 0 | 0.068557 | 0.037316 | 0 | 0 | 0 | 0 | 0 | 1 | 0.13253 | false | 0 | 0.084337 | 0 | 0.409639 | 0.024096 | 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 |
f7537af03db5a999f20e6fa7d3483695ad604428 | 688 | py | Python | qal/tools/__init__.py | OptimalBPM/qal | 4d7a31c0d68042b4110e1fa3e733711e0fdd473e | [
"Unlicense"
] | 3 | 2016-05-02T14:35:55.000Z | 2021-08-31T14:19:15.000Z | qal/tools/__init__.py | OptimalBPM/qal | 4d7a31c0d68042b4110e1fa3e733711e0fdd473e | [
"Unlicense"
] | null | null | null | qal/tools/__init__.py | OptimalBPM/qal | 4d7a31c0d68042b4110e1fa3e733711e0fdd473e | [
"Unlicense"
] | 1 | 2018-03-18T13:19:52.000Z | 2018-03-18T13:19:52.000Z | """
*****************************************
The OptimalBPM tools package.
*****************************************
Optimal BPM™ is a Business Process Management system (BPM) and surrounding tools
Optimalbpm-tools are a collection of tools made to solve some of the common problems in BPM.
htt... | 38.222222 | 105 | 0.655523 | 83 | 688 | 5.289157 | 0.638554 | 0.068337 | 0.077449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036332 | 0.159884 | 688 | 18 | 106 | 38.222222 | 0.719723 | 0.80814 | 0 | 0 | 0 | 0 | 0.402174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f756096bfb07a0ddfccecf4c5a90a427387a98a5 | 2,250 | py | Python | shopping_ingredient/views.py | leichandra/mealplanshop | a10fb2f2d2967d6a00f27452d180cd1b302bc23a | [
"MIT"
] | null | null | null | shopping_ingredient/views.py | leichandra/mealplanshop | a10fb2f2d2967d6a00f27452d180cd1b302bc23a | [
"MIT"
] | 3 | 2021-02-24T05:18:03.000Z | 2021-03-11T04:07:03.000Z | shopping_ingredient/views.py | leichandra/mealplanshop | a10fb2f2d2967d6a00f27452d180cd1b302bc23a | [
"MIT"
] | null | null | null | from django.core.exceptions import ValidationError
from django.forms import modelformset_factory
from django.http import JsonResponse
from django.shortcuts import render, redirect
from django.views.decorators.csrf import csrf_exempt
from rest_framework.decorators import api_view
from rest_framework.response import Res... | 38.793103 | 107 | 0.751111 | 224 | 2,250 | 7.401786 | 0.334821 | 0.130277 | 0.03076 | 0.074789 | 0.242461 | 0.242461 | 0.207479 | 0.114596 | 0.114596 | 0.114596 | 0 | 0.003717 | 0.163111 | 2,250 | 57 | 108 | 39.473684 | 0.876792 | 0.082667 | 0 | 0.142857 | 0 | 0 | 0.088921 | 0.039359 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.261905 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f758988c86a5e081219ab492b385e94aaa9cbb4d | 347 | py | Python | pdpython_model/generic_model/agents.py | seifely/pdpython | 41410ca2807509caf32794bef57e7e210dcbce6f | [
"MIT"
] | null | null | null | pdpython_model/generic_model/agents.py | seifely/pdpython | 41410ca2807509caf32794bef57e7e210dcbce6f | [
"MIT"
] | null | null | null | pdpython_model/generic_model/agents.py | seifely/pdpython | 41410ca2807509caf32794bef57e7e210dcbce6f | [
"MIT"
] | null | null | null | from mesa import Agent
class Gagent(Agent):
def __init__(self, pos, model, stepcount=0, score=0):
super().__init__(pos, model)
self.pos = pos
self.stepCount = stepcount
self.score = score
def some_function(self):
a = 2 + 2
return a
def step(self):
... | 21.6875 | 57 | 0.587896 | 45 | 347 | 4.311111 | 0.488889 | 0.072165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016598 | 0.305476 | 347 | 16 | 58 | 21.6875 | 0.788382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0 | 0.5 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f75b7ebe1e7f04e730dbe05d28e393850da42957 | 515 | py | Python | convert_to_maxcut.py | knshnb/MQLib | 66495e135f7bba3e84fb6836b03eb5f13a6ca7cf | [
"MIT"
] | null | null | null | convert_to_maxcut.py | knshnb/MQLib | 66495e135f7bba3e84fb6836b03eb5f13a6ca7cf | [
"MIT"
] | null | null | null | convert_to_maxcut.py | knshnb/MQLib | 66495e135f7bba3e84fb6836b03eb5f13a6ca7cf | [
"MIT"
] | null | null | null | import os
def write_maxcut_file(filename):
with open(os.path.join("data", filename)) as f:
lines = f.readlines()
with open(os.path.join("maxcut", filename), mode='w') as f:
f.write(lines[0])
for line in lines[1::]:
u, v = map(int, line.split())
f.write("{} {} 1\... | 28.611111 | 63 | 0.565049 | 76 | 515 | 3.671053 | 0.460526 | 0.086022 | 0.107527 | 0.164875 | 0.250896 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013055 | 0.256311 | 515 | 17 | 64 | 30.294118 | 0.715405 | 0 | 0 | 0 | 0 | 0 | 0.069903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.153846 | 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 |
f75efd63503aeacd53469975d288399e399cf562 | 2,441 | py | Python | zywsgi/http_parsed.py | caoziyao/pywframe | 96a044134e9887453fa0ca499288ca87c03852d6 | [
"MIT"
] | 1 | 2019-05-20T07:36:17.000Z | 2019-05-20T07:36:17.000Z | zywsgi/http_parsed.py | caoziyao/pywframe | 96a044134e9887453fa0ca499288ca87c03852d6 | [
"MIT"
] | null | null | null | zywsgi/http_parsed.py | caoziyao/pywframe | 96a044134e9887453fa0ca499288ca87c03852d6 | [
"MIT"
] | 1 | 2019-05-20T09:02:30.000Z | 2019-05-20T09:02:30.000Z | # coding: utf-8
"""
@author: csy
@license: (C) Copyright 2017-2018
@contact: wyzycao@gmail.com
@time: 2018/11/26
@desc:
"""
class BaseRequest(object):
"""
base request class
"""
def __init__(self, request):
self.request = request
self._parsed_request()
def _parsed_request(self):... | 22.394495 | 72 | 0.465383 | 263 | 2,441 | 4.197719 | 0.258555 | 0.069746 | 0.072464 | 0.039855 | 0.152174 | 0.115942 | 0.115942 | 0.115942 | 0.077899 | 0.077899 | 0 | 0.018072 | 0.387956 | 2,441 | 108 | 73 | 22.601852 | 0.720884 | 0.374437 | 0 | 0.078947 | 0 | 0 | 0.023599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0 | 0 | 0.342105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f75f6adf27e1f26e3578541864362daf9d58b137 | 10,052 | py | Python | vvmovie/__init__.py | chiluf/visvis.dev | 373846ea25044b7ca50f44c63dab4248e14deacd | [
"BSD-3-Clause"
] | null | null | null | vvmovie/__init__.py | chiluf/visvis.dev | 373846ea25044b7ca50f44c63dab4248e14deacd | [
"BSD-3-Clause"
] | null | null | null | vvmovie/__init__.py | chiluf/visvis.dev | 373846ea25044b7ca50f44c63dab4248e14deacd | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (C) 2012, Almar Klein
# This code is subject to the (new) BSD license:
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the a... | 41.028571 | 80 | 0.668424 | 1,358 | 10,052 | 4.947717 | 0.318115 | 0.005209 | 0.008037 | 0.013395 | 0.355559 | 0.324453 | 0.3057 | 0.270874 | 0.258967 | 0.250335 | 0 | 0.009452 | 0.252686 | 10,052 | 244 | 81 | 41.196721 | 0.884984 | 0.166733 | 0 | 0.490196 | 0 | 0.039216 | 0.141536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.098039 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f75fd4de2f4d9853dca2b398f32bcd5181b6b94b | 2,055 | py | Python | Recsys_Challenge_Trailmix/Recsys_Challenge_Trailmix_CODEONLY/Model_Word2Vec/Model_2_war.py | xing-zhao/RecSys-Challenge-2018-Trailmix | 27a3524c9cd397b62f7c008bd0b79a81fa16a852 | [
"Apache-2.0"
] | null | null | null | Recsys_Challenge_Trailmix/Recsys_Challenge_Trailmix_CODEONLY/Model_Word2Vec/Model_2_war.py | xing-zhao/RecSys-Challenge-2018-Trailmix | 27a3524c9cd397b62f7c008bd0b79a81fa16a852 | [
"Apache-2.0"
] | null | null | null | Recsys_Challenge_Trailmix/Recsys_Challenge_Trailmix_CODEONLY/Model_Word2Vec/Model_2_war.py | xing-zhao/RecSys-Challenge-2018-Trailmix | 27a3524c9cd397b62f7c008bd0b79a81fa16a852 | [
"Apache-2.0"
] | 1 | 2018-12-30T14:54:59.000Z | 2018-12-30T14:54:59.000Z | import pandas
from sklearn import model_selection
from sklearn.linear_model import LogisticRegression
import pickle
import codecs
import json
import gensim
import numpy as np
import math
import random
import numpy
import operator
import scipy
import Queue
from heapq import nlargest
import sys
start = int(sys.argv[1]) ... | 24.464286 | 113 | 0.662774 | 305 | 2,055 | 4.301639 | 0.337705 | 0.042683 | 0.064024 | 0.032012 | 0.144817 | 0.129573 | 0.096037 | 0.060976 | 0.060976 | 0.060976 | 0 | 0.022054 | 0.227737 | 2,055 | 84 | 114 | 24.464286 | 0.804663 | 0.046229 | 0 | 0.111111 | 0 | 0 | 0.038344 | 0.026074 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.253968 | null | null | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f76076fab05fe1c3d63727f6017923c955d283f6 | 2,301 | py | Python | coro/log/asn1.py | amitdev/shrapnel | e9032fe6c906d8ebe55164c91a263c1ee7d7b045 | [
"BSD-2-Clause"
] | 98 | 2015-01-09T05:35:59.000Z | 2021-11-22T17:38:58.000Z | coro/log/asn1.py | amitdev/shrapnel | e9032fe6c906d8ebe55164c91a263c1ee7d7b045 | [
"BSD-2-Clause"
] | 22 | 2015-02-10T23:57:53.000Z | 2020-01-31T01:14:55.000Z | coro/log/asn1.py | amitdev/shrapnel | e9032fe6c906d8ebe55164c91a263c1ee7d7b045 | [
"BSD-2-Clause"
] | 22 | 2015-03-07T20:59:32.000Z | 2021-07-22T09:23:52.000Z |
from coro.asn1.python import encode, decode
import coro
import struct
# four bytes from os.urandom().
MAGIC = '%\xf1\xbfB'
class Logger:
magic = MAGIC
def __init__ (self, file):
self.encode = encode
self.file = file
def log (self, *data):
data = self.encode ((coro.now_usec, dat... | 23.01 | 70 | 0.447631 | 268 | 2,301 | 3.802239 | 0.317164 | 0.052993 | 0.023553 | 0.032385 | 0.13052 | 0.041217 | 0.041217 | 0 | 0 | 0 | 0 | 0.03535 | 0.446762 | 2,301 | 99 | 71 | 23.242424 | 0.765122 | 0.012603 | 0 | 0.309524 | 0 | 0 | 0.026884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035714 | 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 |
f76ea82ed756cf7630e642876abc39014ec2c499 | 1,269 | py | Python | tests/io/test_pazy_udpout.py | ACea15/sharpy | c89ecb74be3cb9e37b23ac8a282c73b9b55dd792 | [
"BSD-3-Clause"
] | 80 | 2018-08-30T13:01:52.000Z | 2022-03-24T15:02:48.000Z | tests/io/test_pazy_udpout.py | ACea15/sharpy | c89ecb74be3cb9e37b23ac8a282c73b9b55dd792 | [
"BSD-3-Clause"
] | 88 | 2018-05-17T16:18:58.000Z | 2022-03-11T21:05:48.000Z | tests/io/test_pazy_udpout.py | ACea15/sharpy | c89ecb74be3cb9e37b23ac8a282c73b9b55dd792 | [
"BSD-3-Clause"
] | 44 | 2018-01-02T14:27:28.000Z | 2022-03-12T13:49:36.000Z | import unittest
import tests.io.generate_pazy_udpout as gp
import os
import shutil
class TestPazyCoupledStatic(unittest.TestCase):
"""
Test Pazy wing static coupled case and compare against a benchmark result.
As of the time of writing, benchmark result has not been verified but it
serves as a backward... | 30.214286 | 81 | 0.590229 | 161 | 1,269 | 4.391304 | 0.496894 | 0.063649 | 0.084866 | 0.090523 | 0.128713 | 0.128713 | 0.090523 | 0 | 0 | 0 | 0 | 0.017483 | 0.323877 | 1,269 | 42 | 82 | 30.214286 | 0.806527 | 0.174153 | 0 | 0.074074 | 1 | 0 | 0.054634 | 0.026341 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.148148 | 0 | 0.296296 | 0 | 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 |
f777606137aac9b1339a5b380a67c2ce6dacfa8d | 362 | py | Python | setup.py | EgorVoron/ken_perlin_noise | c9024871026a705e3549a29f8b0eb8edf1c90293 | [
"MIT"
] | null | null | null | setup.py | EgorVoron/ken_perlin_noise | c9024871026a705e3549a29f8b0eb8edf1c90293 | [
"MIT"
] | null | null | null | setup.py | EgorVoron/ken_perlin_noise | c9024871026a705e3549a29f8b0eb8edf1c90293 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name="ken_perlin_noise",
version="0.0.1",
packages=find_packages(),
include_package_data=True,
python_requires='>=3',
url="https://github.com/EgorVoron/py-perlin-noise",
author="EgorVoron",
license="MIT",
install_requires=[
... | 21.294118 | 55 | 0.649171 | 45 | 362 | 5.022222 | 0.777778 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024138 | 0.198895 | 362 | 16 | 56 | 22.625 | 0.755172 | 0 | 0 | 0 | 0 | 0 | 0.251381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f777d1a72cedc9cd425385f7aa97d27a24aa4b0e | 2,963 | py | Python | python/comfo/types.py | ti-mo/comfo | 9d6e04ef0540d399243ba317f3a0a168498acd5c | [
"MIT"
] | 3 | 2017-11-14T11:56:01.000Z | 2020-10-24T12:19:10.000Z | python/comfo/types.py | ti-mo/comfo | 9d6e04ef0540d399243ba317f3a0a168498acd5c | [
"MIT"
] | null | null | null | python/comfo/types.py | ti-mo/comfo | 9d6e04ef0540d399243ba317f3a0a168498acd5c | [
"MIT"
] | null | null | null | """
Concrete types for converting from protobuf objects.
Since the Python protobuf compiler outputs code that generates
classes on the fly from a symbol database, we convert them as
concrete types here to ensure the expected fields are present.
"""
from pprint import pformat
class ComfoMessage:
"""Mixin for prot... | 29.336634 | 67 | 0.661154 | 359 | 2,963 | 5.339833 | 0.311978 | 0.00939 | 0.034429 | 0.046948 | 0.300469 | 0.300469 | 0.300469 | 0.280647 | 0.280647 | 0.280647 | 0 | 0.001792 | 0.246709 | 2,963 | 100 | 68 | 29.63 | 0.857079 | 0.315896 | 0 | 0.111111 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12963 | false | 0.018519 | 0.018519 | 0 | 0.388889 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f77833f32db20ad30b33b31c71422d01262729e9 | 495 | py | Python | setup.py | cidreixd/webmo-library-python | b08830a7d9589c1e29ae66fdb6d1533eae6db094 | [
"MIT"
] | 3 | 2016-10-11T01:09:39.000Z | 2019-04-11T06:50:32.000Z | setup.py | cidreixd/webmo-library-python | b08830a7d9589c1e29ae66fdb6d1533eae6db094 | [
"MIT"
] | null | null | null | setup.py | cidreixd/webmo-library-python | b08830a7d9589c1e29ae66fdb6d1533eae6db094 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name = 'PyWebmo',
packages = ['PyWebmo'],
version = '0.1',
description = 'Webmo client library for Python',
author = 'Cidre Interaction Design Inc.',
author_email = 'info@cidre.tokyo',
url = 'https://github.com/cidreixd/webmo-library-python',
download_url = 'https://g... | 30.9375 | 80 | 0.682828 | 58 | 495 | 5.775862 | 0.655172 | 0.01194 | 0.083582 | 0.101493 | 0.256716 | 0.256716 | 0.256716 | 0.256716 | 0 | 0 | 0 | 0.009501 | 0.149495 | 495 | 15 | 81 | 33 | 0.786223 | 0 | 0 | 0 | 0 | 0 | 0.472727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f77e833abef7c4aee361f3cd660200642179868d | 2,505 | py | Python | graphene/types/union.py | LucasPickering/graphene | cc7e734d7e3a8bab0cb89a3dab48290162d0008e | [
"MIT"
] | null | null | null | graphene/types/union.py | LucasPickering/graphene | cc7e734d7e3a8bab0cb89a3dab48290162d0008e | [
"MIT"
] | null | null | null | graphene/types/union.py | LucasPickering/graphene | cc7e734d7e3a8bab0cb89a3dab48290162d0008e | [
"MIT"
] | null | null | null | from .base import BaseOptions, BaseType
from .unmountedtype import UnmountedType
# For static type checking with Mypy
MYPY = False
if MYPY:
from .objecttype import ObjectType # NOQA
from typing import Iterable, Type # NOQA
class UnionOptions(BaseOptions):
types = () # type: Iterable[Type[ObjectType]]
... | 32.960526 | 105 | 0.661876 | 311 | 2,505 | 5.237942 | 0.382637 | 0.024555 | 0.022099 | 0.036832 | 0.041743 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000545 | 0.267864 | 2,505 | 75 | 106 | 33.4 | 0.887677 | 0.581238 | 0 | 0.2 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.12 | false | 0 | 0.2 | 0 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f7807b646362ead7ba9a40c3b0c58fa38c29cac9 | 302 | py | Python | src/traf/setup.py | larioandr/thesis-models | ecbc8c01aaeaa69034d6fe1d8577ab655968ea5f | [
"MIT"
] | 1 | 2021-01-17T15:49:03.000Z | 2021-01-17T15:49:03.000Z | src/traf/setup.py | larioandr/thesis-models | ecbc8c01aaeaa69034d6fe1d8577ab655968ea5f | [
"MIT"
] | null | null | null | src/traf/setup.py | larioandr/thesis-models | ecbc8c01aaeaa69034d6fe1d8577ab655968ea5f | [
"MIT"
] | 1 | 2021-03-07T15:31:06.000Z | 2021-03-07T15:31:06.000Z | from setuptools import setup
setup(
name='traf',
version='1.0',
py_modules=['traf'],
install_requires=[
'Click',
'numpy>=1.19.2',
],
tests_requires=[
'pytest',
],
entry_points='''
[console_scripts]
traf=traf.main:main
'''
)
| 15.1 | 28 | 0.509934 | 31 | 302 | 4.806452 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.324503 | 302 | 19 | 29 | 15.894737 | 0.70098 | 0 | 0 | 0.117647 | 0 | 0 | 0.311258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f780f2afdc50414dc71ae5f8693882623c9fa3c0 | 10,095 | py | Python | btrack/models.py | nthndy/BayesianTracker | 443f984ce830373e140f744a27179debdf34ae58 | [
"MIT"
] | null | null | null | btrack/models.py | nthndy/BayesianTracker | 443f984ce830373e140f744a27179debdf34ae58 | [
"MIT"
] | null | null | null | btrack/models.py | nthndy/BayesianTracker | 443f984ce830373e140f744a27179debdf34ae58 | [
"MIT"
] | null | null | null | from typing import List, Optional
import numpy as np
from pydantic import BaseModel, root_validator, validator
from . import constants
from .optimise.hypothesis import H_TYPES, PyHypothesisParams
__all__ = ["MotionModel", "ObjectModel", "HypothesisModel"]
def _check_symmetric(
x: np.ndarray, rtol: float = 1e-5... | 32.990196 | 80 | 0.641803 | 1,324 | 10,095 | 4.818731 | 0.255287 | 0.02069 | 0.015987 | 0.015674 | 0.255799 | 0.213009 | 0.199216 | 0.155329 | 0.102351 | 0.045768 | 0 | 0.005678 | 0.267261 | 10,095 | 305 | 81 | 33.098361 | 0.856834 | 0.485983 | 0 | 0.195489 | 0 | 0 | 0.091473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112782 | false | 0 | 0.037594 | 0.007519 | 0.56391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f78ed5674e048054d82dada03f765704e190dbd7 | 1,142 | py | Python | jupyterhub_config.py | datalayer-examples/crossplane-examples | 1b5b0e6845bd38c0a1f91d8343e4976c4233826c | [
"MIT"
] | 3 | 2021-05-17T12:31:55.000Z | 2022-03-14T13:38:03.000Z | jupyterhub_config.py | datalayer-examples/crossplane-examples | 1b5b0e6845bd38c0a1f91d8343e4976c4233826c | [
"MIT"
] | null | null | null | jupyterhub_config.py | datalayer-examples/crossplane-examples | 1b5b0e6845bd38c0a1f91d8343e4976c4233826c | [
"MIT"
] | 2 | 2021-05-17T21:27:20.000Z | 2022-01-07T13:49:30.000Z | import os
# --- JupyterHub ---
c.JupyterHub.ip = '0.0.0.0'
c.JupyterHub.port = 8000
c.JupyterHub.cookie_secret = '288696652124211857713239dcd33bba50309572f4725ad4bc50107613fd7ba8'
c.JupyterHub.confirm_no_ssl = True
c.JupyterHub.log_level = 'DEBUG'
c.JupyterHub.admin_access = False
# --- ConfigurableHTTPProxy ---
c.Co... | 28.55 | 103 | 0.751313 | 122 | 1,142 | 6.918033 | 0.459016 | 0.117299 | 0.007109 | 0.056872 | 0.066351 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093688 | 0.112084 | 1,142 | 39 | 104 | 29.282051 | 0.738659 | 0.17951 | 0 | 0.16 | 0 | 0 | 0.27694 | 0.205819 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.08 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f7914806b958e217d908cdea98c249c44d508128 | 6,173 | py | Python | resnet.py | timsque/deep-histopath | a91619cc5b20c5a760d72d89124e558306ef5fc3 | [
"Apache-2.0"
] | 166 | 2018-04-09T17:55:36.000Z | 2022-03-16T06:06:18.000Z | resnet.py | timsque/deep-histopath | a91619cc5b20c5a760d72d89124e558306ef5fc3 | [
"Apache-2.0"
] | 8 | 2018-05-11T21:07:37.000Z | 2021-06-01T03:18:59.000Z | resnet.py | timsque/deep-histopath | a91619cc5b20c5a760d72d89124e558306ef5fc3 | [
"Apache-2.0"
] | 75 | 2018-05-29T16:21:50.000Z | 2022-03-24T10:54:44.000Z | """Custom ResNet model with pre-activation residual blocks.
He K, Zhang X, Ren S, Sun J. Identity Mappings in Deep Residual
Networks. arXiv.org. 2016.
Author: Mike Dusenberry
"""
import tensorflow as tf
def res_block(xin, dbottle, dout, k, stride):
"""A residual block.
This implements the "pre-activation" form... | 37.640244 | 101 | 0.655273 | 1,002 | 6,173 | 3.992016 | 0.254491 | 0.049 | 0.0715 | 0.0665 | 0.481 | 0.428 | 0.39625 | 0.35075 | 0.314 | 0.292 | 0 | 0.046309 | 0.198931 | 6,173 | 163 | 102 | 37.871166 | 0.762588 | 0.488417 | 0 | 0.28125 | 0 | 0 | 0.045695 | 0 | 0 | 0 | 0 | 0.01227 | 0.015625 | 1 | 0.03125 | false | 0 | 0.015625 | 0 | 0.078125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
f7932ef983da058c3e8c7885f8d0f0959b792da2 | 632 | py | Python | dev/tools/snake-eye/polyline.py | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 50 | 2018-12-21T08:21:38.000Z | 2022-01-24T09:47:59.000Z | dev/tools/snake-eye/polyline.py | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 2 | 2018-12-19T13:42:47.000Z | 2019-05-13T04:11:45.000Z | dev/tools/snake-eye/polyline.py | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 27 | 2018-11-28T07:30:34.000Z | 2022-02-05T02:22:26.000Z | #!/usr/bin/env python
# Copyright Singapore-MIT Alliance for Research and Technology
import re
from point import Point
class Polyline(Point):
regexp = re.compile("aimsun::polyline section-id=(\d+), x=(\d+), y=(\d+)")
def __init__(self, x, y, section):
super(Polyline, self).__init__(x, y)
sel... | 25.28 | 83 | 0.625 | 84 | 632 | 4.559524 | 0.571429 | 0.05483 | 0.052219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006224 | 0.237342 | 632 | 24 | 84 | 26.333333 | 0.788382 | 0.128165 | 0 | 0 | 0 | 0 | 0.107468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.125 | 0.0625 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f79406c2c24ec0aa106561050d428d1dc7e14955 | 9,039 | py | Python | perceptron.py | anish-shekhawat/ai-perceptron | 42141dcd01814065eecb139ff76ede78d5d7e4b4 | [
"MIT"
] | null | null | null | perceptron.py | anish-shekhawat/ai-perceptron | 42141dcd01814065eecb139ff76ede78d5d7e4b4 | [
"MIT"
] | null | null | null | perceptron.py | anish-shekhawat/ai-perceptron | 42141dcd01814065eecb139ff76ede78d5d7e4b4 | [
"MIT"
] | 1 | 2018-11-15T19:08:05.000Z | 2018-11-15T19:08:05.000Z | #!/usr/bin/env python
import sys
import os.path
import re
import random
import math
ground_function = ""
def validate_ground_func_file():
global ground_function
with open(sys.argv[3], 'r') as file:
line = file.readline()
line = line.strip()
if line == 'NBF':
line = fil... | 26.742604 | 78 | 0.577498 | 1,154 | 9,039 | 4.383016 | 0.136915 | 0.029063 | 0.047054 | 0.017398 | 0.475484 | 0.423092 | 0.358244 | 0.338869 | 0.299921 | 0.299921 | 0 | 0.017416 | 0.288527 | 9,039 | 337 | 79 | 26.821958 | 0.769087 | 0.032747 | 0 | 0.406114 | 0 | 0 | 0.08507 | 0.004122 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021834 | null | null | 0.113537 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f79505951bcff209b9f924ea0e3029ed669d984f | 2,261 | py | Python | src/python/bot/minimizer/delta_minimizer.py | mi-ac/clusterfuzz | 0b5c023eca9e3aac41faba17da8f341c0ca2ddc7 | [
"Apache-2.0"
] | 5,023 | 2019-02-07T16:57:56.000Z | 2022-03-31T01:08:05.000Z | src/python/bot/minimizer/delta_minimizer.py | mi-ac/clusterfuzz | 0b5c023eca9e3aac41faba17da8f341c0ca2ddc7 | [
"Apache-2.0"
] | 2,303 | 2019-02-07T17:36:36.000Z | 2022-03-31T15:44:38.000Z | src/python/bot/minimizer/delta_minimizer.py | mi-ac/clusterfuzz | 0b5c023eca9e3aac41faba17da8f341c0ca2ddc7 | [
"Apache-2.0"
] | 564 | 2019-02-07T17:34:24.000Z | 2022-03-26T09:25:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 34.257576 | 80 | 0.723131 | 304 | 2,261 | 5.305921 | 0.457237 | 0.037198 | 0.016119 | 0.019839 | 0.029758 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006511 | 0.184874 | 2,261 | 65 | 81 | 34.784615 | 0.868692 | 0.440513 | 0 | 0 | 0 | 0 | 0.012305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.066667 | 0.1 | 0 | 0.366667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f795a7e32a0ba8754e9336b7969d052c44abcb0f | 674 | py | Python | 000000stepikProgBasKirFed/Stepik000000ProgBasKirFedсh02p01st06TASK06_20210206_conditional.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 000000stepikProgBasKirFed/Stepik000000ProgBasKirFedсh02p01st06TASK06_20210206_conditional.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 000000stepikProgBasKirFed/Stepik000000ProgBasKirFedсh02p01st06TASK06_20210206_conditional.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | '''
Напишите программу, которая переведет название времени года с русского языка (Зима, Весна, Лето, Осень) на английский язык (Winter, Spring, Summer, Autumn)
Формат входных данных
Строка, содержащая название времени года на русском языке. Первая буква заглавная, остальные - строчные.
Формат выходных данных
Строка... | 24.071429 | 155 | 0.737389 | 86 | 674 | 5.72093 | 0.5 | 0.081301 | 0.115854 | 0.121951 | 0.345528 | 0.345528 | 0.174797 | 0 | 0 | 0 | 0 | 0 | 0.161721 | 674 | 27 | 156 | 24.962963 | 0.870796 | 0.683976 | 0 | 0 | 0 | 0 | 0.204878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f7981ba0a998526eafe7c1c4b4206fa0333d452d | 2,432 | py | Python | minion_service/spider_core/scheduler.py | goodking-bq/scrapy_workstation | 76a0897cbde417a7d07bbac9f42958f56109d0d1 | [
"MIT"
] | null | null | null | minion_service/spider_core/scheduler.py | goodking-bq/scrapy_workstation | 76a0897cbde417a7d07bbac9f42958f56109d0d1 | [
"MIT"
] | null | null | null | minion_service/spider_core/scheduler.py | goodking-bq/scrapy_workstation | 76a0897cbde417a7d07bbac9f42958f56109d0d1 | [
"MIT"
] | null | null | null | # coding:utf-8
from __future__ import absolute_import, unicode_literals
from scrapy.utils.misc import load_object
from scrapy.utils.reqser import request_from_dict, request_to_dict
import json
from .mongo import Mongo
__author__ = "golden"
__date__ = '2017/6/6'
class MongoScheduler(object):
def __init__(self, du... | 35.246377 | 98 | 0.668586 | 304 | 2,432 | 5.101974 | 0.279605 | 0.038685 | 0.032237 | 0.038685 | 0.130239 | 0.130239 | 0.130239 | 0.085106 | 0 | 0 | 0 | 0.004235 | 0.223273 | 2,432 | 68 | 99 | 35.764706 | 0.816834 | 0.00699 | 0 | 0 | 0 | 0 | 0.061851 | 0.019925 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207547 | false | 0 | 0.09434 | 0.037736 | 0.45283 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f79efd343af194ced7b4dd472b25c3a86c33292b | 1,145 | py | Python | critic/actions.py | signaldetect/messity | d26fb352269984c791de79c82a0cbae425def002 | [
"MIT"
] | null | null | null | critic/actions.py | signaldetect/messity | d26fb352269984c791de79c82a0cbae425def002 | [
"MIT"
] | null | null | null | critic/actions.py | signaldetect/messity | d26fb352269984c791de79c82a0cbae425def002 | [
"MIT"
] | null | null | null | """
Actions of the `critic` app
"""
from django.core.mail import mail_admins
from critic import signals
def create_app_links():
"""
Creates links of the `critic` app
"""
signals.app_link_ready.send(
sender=None, # not specified
base_pattern=r'^critic/',
url_name='critic:revi... | 24.361702 | 68 | 0.604367 | 148 | 1,145 | 4.513514 | 0.459459 | 0.07485 | 0.067365 | 0.085329 | 0.22006 | 0.151198 | 0.10479 | 0 | 0 | 0 | 0 | 0.00365 | 0.282096 | 1,145 | 46 | 69 | 24.891304 | 0.809002 | 0.175546 | 0 | 0.172414 | 0 | 0 | 0.2051 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.068966 | false | 0 | 0.068966 | 0 | 0.137931 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7a0eac0321018164c2dd3e1e0a2160d84c36c58 | 1,285 | py | Python | FBDParser/patterns/_sidebars.py | jonix6/fbdparser | 617a79bf9062092e4fa971bbd66da02cd9d45124 | [
"MIT"
] | 7 | 2021-03-15T08:43:56.000Z | 2022-01-09T11:56:43.000Z | FBDParser/patterns/_sidebars.py | jonix6/fbdparser | 617a79bf9062092e4fa971bbd66da02cd9d45124 | [
"MIT"
] | null | null | null | FBDParser/patterns/_sidebars.py | jonix6/fbdparser | 617a79bf9062092e4fa971bbd66da02cd9d45124 | [
"MIT"
] | 3 | 2021-09-07T09:40:16.000Z | 2022-01-11T10:32:23.000Z | # -*- coding: utf-8 -*-
from ._global import _f
"========================================边栏类======================================"
# 栏间线
column_sep = _f(r'''(?P<xx> # 栏线线型
F| # 反线
S| # 双线
Z| # 正线(缺省)
D| # 点线
Q| # 曲线
=| # 双曲线
CW| # 外粗内细文武线
XW| # 外细内粗文武线
{lace} # 花边线
)'''... | 21.779661 | 83 | 0.335409 | 135 | 1,285 | 2.977778 | 0.57037 | 0.074627 | 0.044776 | 0.069652 | 0.039801 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011749 | 0.403891 | 1,285 | 58 | 84 | 22.155172 | 0.513055 | 0.040467 | 0 | 0.12766 | 0 | 0 | 0.804401 | 0.116544 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.12766 | 0 | 0 | 0 | 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 |
e38be9b991224eef52a4fb99c7da9227373af2ab | 1,822 | py | Python | core/src/epicli/cli/engine/PrepareEngine.py | Mincom/epiphany | f0215e1272b014f093ca6be6c5eb5ba6c73d2c79 | [
"Apache-2.0"
] | null | null | null | core/src/epicli/cli/engine/PrepareEngine.py | Mincom/epiphany | f0215e1272b014f093ca6be6c5eb5ba6c73d2c79 | [
"Apache-2.0"
] | null | null | null | core/src/epicli/cli/engine/PrepareEngine.py | Mincom/epiphany | f0215e1272b014f093ca6be6c5eb5ba6c73d2c79 | [
"Apache-2.0"
] | null | null | null | import os
import stat
import inspect
import shutil
from os.path import dirname
from cli.helpers.Step import Step
from cli.helpers.data_loader import DATA_FOLDER_PATH
from cli.helpers.Config import Config
from cli.helpers.build_saver import copy_files_recursively
class PrepareEngine(Step):
PREPARE_PATH = DATA_FO... | 34.377358 | 110 | 0.713502 | 243 | 1,822 | 5.028807 | 0.345679 | 0.02946 | 0.045827 | 0.02946 | 0.145663 | 0.07365 | 0.07365 | 0.07365 | 0 | 0 | 0 | 0.000681 | 0.193743 | 1,822 | 52 | 111 | 35.038462 | 0.831178 | 0.03348 | 0 | 0 | 0 | 0 | 0.177474 | 0.085324 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0 | 0.243243 | 0 | 0.513514 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e38c37516c5c2f12af66e6e318b6f75bc4952ce2 | 4,498 | py | Python | uber/cadence/api/v1/service_meta_pb2.py | cadence-oss/cadence-python | 28f3eb1c2026acfce5b328f94ffe30ec72276625 | [
"MIT"
] | 6 | 2021-11-08T01:20:03.000Z | 2021-12-27T23:06:05.000Z | uber/cadence/api/v1/service_meta_pb2.py | cadence-oss/cadence-python | 28f3eb1c2026acfce5b328f94ffe30ec72276625 | [
"MIT"
] | 2 | 2021-12-27T18:53:05.000Z | 2022-01-27T14:20:41.000Z | uber/cadence/api/v1/service_meta_pb2.py | cadence-oss/cadence-python | 28f3eb1c2026acfce5b328f94ffe30ec72276625 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: uber/cadence/api/v1/service_meta.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _refle... | 32.594203 | 430 | 0.765007 | 552 | 4,498 | 5.942029 | 0.251812 | 0.067073 | 0.076829 | 0.078049 | 0.489329 | 0.45 | 0.442683 | 0.342683 | 0.29939 | 0.264634 | 0 | 0.029412 | 0.108048 | 4,498 | 137 | 431 | 32.832117 | 0.788136 | 0.083593 | 0 | 0.5 | 1 | 0.018182 | 0.247202 | 0.2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.036364 | 0 | 0.036364 | 0 | 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 |
e38c4ca5b2767b830c488712a98b9ba5a67f4a62 | 11,132 | py | Python | steiner/component_finder.py | ASchidler/pace17 | 755e9d652c7d4d9dd1f71fb508ebf773efee8488 | [
"MIT"
] | 1 | 2019-01-15T16:58:03.000Z | 2019-01-15T16:58:03.000Z | steiner/component_finder.py | ASchidler/pace17 | 755e9d652c7d4d9dd1f71fb508ebf773efee8488 | [
"MIT"
] | null | null | null | steiner/component_finder.py | ASchidler/pace17 | 755e9d652c7d4d9dd1f71fb508ebf773efee8488 | [
"MIT"
] | null | null | null | import networkx as nx
from sys import maxint
import itertools as it
from structures import union_find as uf, steiner_graph as sg
"""Tries to split the graph into two parts that can be solved separately. Originally this has only be done for
articulation points. The generalization of separators of larger size is from P... | 40.187726 | 120 | 0.505659 | 1,403 | 11,132 | 3.900214 | 0.224519 | 0.01462 | 0.009137 | 0.019737 | 0.11038 | 0.054094 | 0.040205 | 0.009137 | 0.009137 | 0.009137 | 0 | 0.016426 | 0.41484 | 11,132 | 276 | 121 | 40.333333 | 0.823611 | 0.178494 | 0 | 0.146067 | 0 | 0 | 0.011561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022472 | null | null | 0.005618 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e38f7ee8f4b286b3f72388a4c45775289e7b6a02 | 2,812 | py | Python | draw_lens_plt.py | jfblanchard/optical-tools | 25ce0f2238e1c22b6694d00d359e4243a33db30b | [
"Apache-2.0"
] | null | null | null | draw_lens_plt.py | jfblanchard/optical-tools | 25ce0f2238e1c22b6694d00d359e4243a33db30b | [
"Apache-2.0"
] | null | null | null | draw_lens_plt.py | jfblanchard/optical-tools | 25ce0f2238e1c22b6694d00d359e4243a33db30b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
script to draw a homebrew 2D arc. patches arc is not working for me.
Want to define the clear aperture and then draw the arc from those points
This is for drawing lenses.
"""
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
mpl.rcParams['lines.linewidth'] = .5... | 29.914894 | 105 | 0.598506 | 455 | 2,812 | 3.610989 | 0.43956 | 0.034084 | 0.018259 | 0.018259 | 0.07182 | 0.029215 | 0 | 0 | 0 | 0 | 0 | 0.059084 | 0.277738 | 2,812 | 94 | 106 | 29.914894 | 0.749877 | 0.421764 | 0 | 0 | 0 | 0 | 0.028259 | 0 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.093023 | false | 0 | 0.069767 | 0 | 0.186047 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e39287a3b9a1c1d92fb9866a4a792352e3297cc6 | 4,069 | py | Python | Santa's Uncertain Bags/commonutils.py | rupakc/Kaggle-Compendium | 61634ba742f9a0239f2d1e45973c4bb477ac6306 | [
"MIT"
] | 17 | 2018-01-11T05:49:06.000Z | 2021-08-22T16:50:10.000Z | Santa's Uncertain Bags/commonutils.py | Tuanlase02874/Machine-Learning-Kaggle | c31651acd8f2407d8b60774e843a2527ce19b013 | [
"MIT"
] | null | null | null | Santa's Uncertain Bags/commonutils.py | Tuanlase02874/Machine-Learning-Kaggle | c31651acd8f2407d8b60774e843a2527ce19b013 | [
"MIT"
] | 8 | 2017-11-27T06:58:50.000Z | 2021-08-22T16:50:13.000Z | import numpy as np
import pandas as pd
import constants
import bag
import operator
np.random.seed(42)
def generate_random_numbers_range(start_range,stop_range,batch_size=1000):
return list(np.random.randint(start_range,stop_range,size=batch_size))
def randomly_shuffle_dataframe(df):
shuffled_data_frame = df... | 39.125 | 151 | 0.69157 | 589 | 4,069 | 4.451613 | 0.21562 | 0.070175 | 0.044622 | 0.030511 | 0.207094 | 0.10984 | 0.030511 | 0 | 0 | 0 | 0 | 0.02663 | 0.1971 | 4,069 | 103 | 152 | 39.504854 | 0.775941 | 0 | 0 | 0 | 1 | 0 | 0.021627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.120482 | false | 0 | 0.060241 | 0.024096 | 0.433735 | 0 | 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 |
e3933f92a14b02e1b2f5cfd074ddfa9ac6c14a8d | 10,208 | py | Python | api/urls.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | 1 | 2020-07-16T10:58:23.000Z | 2020-07-16T10:58:23.000Z | api/urls.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | 13 | 2018-11-30T02:29:39.000Z | 2022-03-11T23:35:49.000Z | api/urls.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | null | null | null | from django.conf.urls import url, include
from rest_framework import routers
from rest_framework.authtoken import views
# PUBLIC
from api.views.authentication.login import LoginViewSet
from api.views.authentication.logout import LogoutViewSet
from api.views.authentication.register import RegisterViewSet
from api.views... | 63.012346 | 155 | 0.866771 | 1,024 | 10,208 | 8.513672 | 0.189453 | 0.049782 | 0.085341 | 0.138793 | 0.222299 | 0.166896 | 0.02535 | 0.014109 | 0 | 0 | 0 | 0 | 0.057602 | 10,208 | 161 | 156 | 63.403727 | 0.906237 | 0.053096 | 0 | 0.014925 | 0 | 0 | 0.141362 | 0.041041 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.029851 | 0.485075 | 0 | 0.485075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e398aec004b411d0fdea26ccf28fb7b3f0d737f9 | 898 | py | Python | inference.py | Evaaaaaaa/Learn2Relax-Stress-Detection-on-Social-Media | a2b4dd59b4fc9b832f51abce5c369cab2905ad87 | [
"MIT"
] | 3 | 2020-06-26T22:25:31.000Z | 2020-11-01T06:21:58.000Z | inference.py | Evaaaaaaa/Learn2Relax-Stress-Detection-on-Social-Media | a2b4dd59b4fc9b832f51abce5c369cab2905ad87 | [
"MIT"
] | null | null | null | inference.py | Evaaaaaaa/Learn2Relax-Stress-Detection-on-Social-Media | a2b4dd59b4fc9b832f51abce5c369cab2905ad87 | [
"MIT"
] | 1 | 2020-06-24T00:21:35.000Z | 2020-06-24T00:21:35.000Z | import pandas as pd
import numpy as np
import pickle
from nltk.corpus import RegexpTokenizer
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.svm import LinearSVC
# Loads model and inferences input string
def inference(model_dir, text):
tokenizer = RegexpTokenizer(r'[a-zA-Z]{2,}')
token... | 34.538462 | 90 | 0.710468 | 115 | 898 | 5.443478 | 0.6 | 0.038339 | 0.044728 | 0.060703 | 0.070288 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00684 | 0.185969 | 898 | 25 | 91 | 35.92 | 0.849521 | 0.148107 | 0 | 0 | 0 | 0 | 0.077734 | 0.027668 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e39bf07cedb4c4e4c16cc3b39d72b51a2690599b | 1,722 | py | Python | opencv/commercial/Examples/Person/utils/onlinevid.py | SSG-DRD-IOT/commercial-iot-security-system | 0c3d89b35d0468d4d3cc5ce2653b3f0ac82652a9 | [
"MIT"
] | null | null | null | opencv/commercial/Examples/Person/utils/onlinevid.py | SSG-DRD-IOT/commercial-iot-security-system | 0c3d89b35d0468d4d3cc5ce2653b3f0ac82652a9 | [
"MIT"
] | null | null | null | opencv/commercial/Examples/Person/utils/onlinevid.py | SSG-DRD-IOT/commercial-iot-security-system | 0c3d89b35d0468d4d3cc5ce2653b3f0ac82652a9 | [
"MIT"
] | 3 | 2022-01-22T05:02:41.000Z | 2022-03-31T08:13:06.000Z | ###############################################################################
# Author: Daniil Budanov
# Contact: danbudanov@gmail.com
# Summer Internship - 2016
###############################################################################
# Title: onlinevid.py
# Project: Security System
# Description:
# class fo... | 33.764706 | 98 | 0.539489 | 203 | 1,722 | 4.546798 | 0.55665 | 0.068256 | 0.042254 | 0.03467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.219512 | 1,722 | 50 | 99 | 34.44 | 0.655506 | 0.25784 | 0 | 0 | 0 | 0 | 0.039191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e39dd02d7866cdb3f3deab26657b0a30e3d0be04 | 1,382 | py | Python | pyCs/task.py | kinpa200296/TM_labs | a0d69c6318e774f418f478f65dcfd8fbc684e51f | [
"MIT"
] | null | null | null | pyCs/task.py | kinpa200296/TM_labs | a0d69c6318e774f418f478f65dcfd8fbc684e51f | [
"MIT"
] | null | null | null | pyCs/task.py | kinpa200296/TM_labs | a0d69c6318e774f418f478f65dcfd8fbc684e51f | [
"MIT"
] | null | null | null | from lab1 import LexicalParser
if __name__ == '__main__':
lexer = LexicalParser()
tokens = lexer.parse('code.in')
error_cnt = 0
for token in tokens:
if token.name == 'unknown':
error_cnt += 1
if error_cnt != 0:
print 'Errors found. Total: {quantity}'.format(quantity=err... | 39.485714 | 100 | 0.562952 | 179 | 1,382 | 4.139665 | 0.26257 | 0.157895 | 0.107962 | 0.134953 | 0.581646 | 0.581646 | 0.483131 | 0.394062 | 0.348178 | 0.267206 | 0 | 0.004167 | 0.305355 | 1,382 | 34 | 101 | 40.647059 | 0.767708 | 0.034732 | 0 | 0.483871 | 0 | 0 | 0.115616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032258 | null | null | 0.096774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e39eb9c2419db9e8c60efc95b9ee5288a0045420 | 8,227 | py | Python | aql/entity/aql_entity.py | menify/aqualid | 58b6d552d677272aaa3bbfb0fe5601c46e126c7e | [
"MIT"
] | 1 | 2019-04-22T09:09:46.000Z | 2019-04-22T09:09:46.000Z | aql/entity/aql_entity.py | JamesLinus/aqualid | 58b6d552d677272aaa3bbfb0fe5601c46e126c7e | [
"MIT"
] | 1 | 2015-01-10T23:12:29.000Z | 2015-01-10T23:12:29.000Z | aql/entity/aql_entity.py | menify/aqualid | 58b6d552d677272aaa3bbfb0fe5601c46e126c7e | [
"MIT"
] | null | null | null | #
# Copyright (c) 2014-2015 The developers of Aqualid project
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, mo... | 28.467128 | 80 | 0.473076 | 725 | 8,227 | 5.158621 | 0.255172 | 0.031283 | 0.013369 | 0.040642 | 0.197594 | 0.158824 | 0.149198 | 0.135829 | 0.135829 | 0.135829 | 0 | 0.001285 | 0.243224 | 8,227 | 288 | 81 | 28.565972 | 0.599422 | 0.371338 | 0 | 0.320896 | 0 | 0 | 0.09471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216418 | false | 0.014925 | 0.022388 | 0.074627 | 0.470149 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e3a3d1d486898e7483dde2331878918a7f239f48 | 132 | py | Python | sample.py | adi-chang/basic-python | 3b64aa42cf4260ea03f1bd27e5b1131cef81f87a | [
"CC0-1.0"
] | null | null | null | sample.py | adi-chang/basic-python | 3b64aa42cf4260ea03f1bd27e5b1131cef81f87a | [
"CC0-1.0"
] | null | null | null | sample.py | adi-chang/basic-python | 3b64aa42cf4260ea03f1bd27e5b1131cef81f87a | [
"CC0-1.0"
] | null | null | null | import os
cmd1 = 'git --version'
os.system(cmd1)
cmd2 = 'python belajar.py'
result = os.system(cmd2)
print('result:', result)
| 10.153846 | 26 | 0.666667 | 19 | 132 | 4.631579 | 0.631579 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 0.166667 | 132 | 12 | 27 | 11 | 0.763636 | 0 | 0 | 0 | 0 | 0 | 0.289063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e3a5b7129f3abf0a2adcd84ec0a2389c7bc9baa8 | 1,103 | py | Python | src/arago/hiro/abc/health.py | 166MMX/hiro-python-library | fb29e3247a8fe1b0f7dc4e68141cf7340a8dd0a5 | [
"MIT"
] | null | null | null | src/arago/hiro/abc/health.py | 166MMX/hiro-python-library | fb29e3247a8fe1b0f7dc4e68141cf7340a8dd0a5 | [
"MIT"
] | null | null | null | src/arago/hiro/abc/health.py | 166MMX/hiro-python-library | fb29e3247a8fe1b0f7dc4e68141cf7340a8dd0a5 | [
"MIT"
] | null | null | null | from abc import abstractmethod
from typing import TYPE_CHECKING, Any, Dict, Mapping, Optional
from requests import Response
from .common import AbcRest, AbcData, AbcModel
if TYPE_CHECKING:
from arago.hiro.client.rest_base_client import HiroRestBaseClient
# https://tools.ietf.org/html/draft-inadarei-api-health-... | 21.627451 | 70 | 0.679964 | 109 | 1,103 | 6.623853 | 0.440367 | 0.141274 | 0.124654 | 0.108033 | 0.376731 | 0.376731 | 0.376731 | 0.376731 | 0.376731 | 0.376731 | 0 | 0.002288 | 0.207616 | 1,103 | 50 | 71 | 22.06 | 0.823799 | 0.129646 | 0 | 0.666667 | 0 | 0 | 0.056545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.166667 | 0 | 0.566667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e3a755a2b37b9514cd9cd36548eadb52ca1dddd4 | 13,077 | py | Python | direct/data/datasets.py | iamRyanChia/direct | c3c5e828c22c07e712cb2a4995c47f68a958f13d | [
"Apache-2.0"
] | null | null | null | direct/data/datasets.py | iamRyanChia/direct | c3c5e828c22c07e712cb2a4995c47f68a958f13d | [
"Apache-2.0"
] | null | null | null | direct/data/datasets.py | iamRyanChia/direct | c3c5e828c22c07e712cb2a4995c47f68a958f13d | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright (c) DIRECT Contributors
import numpy as np
import pathlib
import bisect
from typing import Callable, Dict, Optional, Any, List, Union
from functools import lru_cache
from direct.data.h5_data import H5SliceData
from direct.utils import str_to_class, remove_keys
from direct.types import PathO... | 34.965241 | 144 | 0.630573 | 1,553 | 13,077 | 5.096587 | 0.216355 | 0.022994 | 0.008339 | 0.01415 | 0.227164 | 0.192925 | 0.15439 | 0.116488 | 0.116488 | 0.107391 | 0 | 0.012802 | 0.27124 | 13,077 | 373 | 145 | 35.058981 | 0.817733 | 0.16464 | 0 | 0.274131 | 0 | 0 | 0.106191 | 0.006591 | 0 | 0 | 0 | 0.005362 | 0.007722 | 1 | 0.054054 | false | 0.084942 | 0.050193 | 0.003861 | 0.158301 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e3a8e465a90f1831d8adb09a32b2319689500f65 | 1,998 | py | Python | tests/settings.py | pandichef/indjections | e8f0e62cf648607ed50330ac69dd12e9fc0cf710 | [
"BSD-2-Clause"
] | 7 | 2020-07-20T00:33:15.000Z | 2020-07-24T04:14:53.000Z | tests/settings.py | pandichef/indjections | e8f0e62cf648607ed50330ac69dd12e9fc0cf710 | [
"BSD-2-Clause"
] | 17 | 2020-07-20T03:17:06.000Z | 2020-07-27T07:36:25.000Z | tests/settings.py | pandichef/indjections | e8f0e62cf648607ed50330ac69dd12e9fc0cf710 | [
"BSD-2-Clause"
] | null | null | null | import os
BASE_DIR = os.path.dirname(__file__)
DEBUG = True
INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes", # grappelli wants this to be above
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"indjections",... | 31.714286 | 83 | 0.645145 | 198 | 1,998 | 6.353535 | 0.429293 | 0.113673 | 0.040541 | 0.033386 | 0.040541 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000625 | 0.1997 | 1,998 | 62 | 84 | 32.225806 | 0.786116 | 0.146146 | 0 | 0 | 0 | 0 | 0.566627 | 0.40566 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019231 | 0 | 0.019231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3ab3086478e914fefc2ed7046ab7aba81539be3 | 6,449 | py | Python | sld-api-backend/crud/user.py | terjekv/Stack-Lifecycle-Deployment | a3ad70c70718395a6ad9bd5e4013affe1f3f8902 | [
"MIT"
] | 115 | 2021-03-07T18:14:39.000Z | 2022-03-20T20:17:03.000Z | sld-api-backend/crud/user.py | terjekv/Stack-Lifecycle-Deployment | a3ad70c70718395a6ad9bd5e4013affe1f3f8902 | [
"MIT"
] | 6 | 2021-09-24T07:21:46.000Z | 2022-03-05T14:13:55.000Z | sld-api-backend/crud/user.py | terjekv/Stack-Lifecycle-Deployment | a3ad70c70718395a6ad9bd5e4013affe1f3f8902 | [
"MIT"
] | 13 | 2021-06-16T08:48:50.000Z | 2022-03-16T09:11:59.000Z | import bcrypt
import sys
from sqlalchemy.orm import Session
from sqlalchemy import exc
import datetime
from security.vault import vault_encrypt, vault_decrypt
from security.tokens import get_password_hash
from config.api import settings
import db.models as models
import schemas.schemas as schemas
import logging
loggi... | 27.678112 | 108 | 0.643666 | 864 | 6,449 | 4.652778 | 0.149306 | 0.049254 | 0.047264 | 0.089552 | 0.607711 | 0.558955 | 0.5 | 0.437065 | 0.395522 | 0.363184 | 0 | 0.002684 | 0.249031 | 6,449 | 232 | 109 | 27.797414 | 0.82738 | 0 | 0 | 0.502618 | 0 | 0 | 0.026051 | 0.004497 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094241 | false | 0.073298 | 0.062827 | 0 | 0.251309 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e3af08410d9c5693e8d704179a7f6be10d293646 | 648 | py | Python | dj_promocodes/promocodes/tests/factories.py | iSuperMostafa/dj_promocodes | fec26f037b3ae3731c8d1431ec54e8da7f61c947 | [
"MIT"
] | null | null | null | dj_promocodes/promocodes/tests/factories.py | iSuperMostafa/dj_promocodes | fec26f037b3ae3731c8d1431ec54e8da7f61c947 | [
"MIT"
] | null | null | null | dj_promocodes/promocodes/tests/factories.py | iSuperMostafa/dj_promocodes | fec26f037b3ae3731c8d1431ec54e8da7f61c947 | [
"MIT"
] | null | null | null | from factory import Faker
from factory.django import DjangoModelFactory
from faker import Faker as Fake
from dj_promocodes.promocodes.models import Promocode, Transaction
fake = Fake()
class PromocodeFactory(DjangoModelFactory):
class Meta:
model = Promocode
title = Faker("name")
description = F... | 25.92 | 70 | 0.723765 | 80 | 648 | 5.75 | 0.475 | 0.047826 | 0.117391 | 0.13913 | 0.152174 | 0.152174 | 0.152174 | 0.152174 | 0.152174 | 0.152174 | 0 | 0.022684 | 0.183642 | 648 | 24 | 71 | 27 | 0.846881 | 0 | 0 | 0.111111 | 0 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e3af1db0059d556b5947cba23fc1871691ff6eb4 | 14,614 | py | Python | get_executions.py | n-exploit/vitae | c27c354259b65d0571318662d1313663cac7ceb3 | [
"MIT"
] | null | null | null | get_executions.py | n-exploit/vitae | c27c354259b65d0571318662d1313663cac7ceb3 | [
"MIT"
] | null | null | null | get_executions.py | n-exploit/vitae | c27c354259b65d0571318662d1313663cac7ceb3 | [
"MIT"
] | null | null | null | from steem import Steem
from steem.amount import Amount
from datetime import datetime
import time
import os
import csv
import ast
import requests
import shutil
import rethinkdb as r
def cls():
os.system('cls')
def value(rshares):
return (float(rshares) * reward_share * base)
stream = set()
... | 34.961722 | 124 | 0.461886 | 1,354 | 14,614 | 4.869276 | 0.186115 | 0.016988 | 0.012134 | 0.019718 | 0.261489 | 0.200212 | 0.181405 | 0.165479 | 0.165479 | 0.165479 | 0 | 0.008479 | 0.418913 | 14,614 | 417 | 125 | 35.045564 | 0.767899 | 0.041672 | 0 | 0.365325 | 0 | 0 | 0.116294 | 0.005233 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040248 | false | 0.052632 | 0.03096 | 0.003096 | 0.077399 | 0.027864 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e3bc3c832637edea6fe4bd1a52892cd1b10f7a4a | 2,194 | py | Python | syft_proto/types/torch/v1/size_pb2.py | vkkhare/syft-proto | 513b4af50d7476bd5b1ff9dfb6da8528100f961d | [
"Apache-2.0"
] | 1 | 2021-01-31T15:24:25.000Z | 2021-01-31T15:24:25.000Z | syft_proto/types/torch/v1/size_pb2.py | vkkhare/syft-proto | 513b4af50d7476bd5b1ff9dfb6da8528100f961d | [
"Apache-2.0"
] | null | null | null | syft_proto/types/torch/v1/size_pb2.py | vkkhare/syft-proto | 513b4af50d7476bd5b1ff9dfb6da8528100f961d | [
"Apache-2.0"
] | 1 | 2021-01-31T15:23:04.000Z | 2021-01-31T15:23:04.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: syft_proto/types/torch/v1/size.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbo... | 30.472222 | 212 | 0.760711 | 291 | 2,194 | 5.439863 | 0.360825 | 0.069488 | 0.075805 | 0.096652 | 0.25458 | 0.241314 | 0.101074 | 0.041693 | 0 | 0 | 0 | 0.027692 | 0.111212 | 2,194 | 71 | 213 | 30.901408 | 0.784103 | 0.120784 | 0 | 0.156863 | 1 | 0.019608 | 0.23205 | 0.204475 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078431 | 0 | 0.078431 | 0 | 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 |
e3bee31202a51b703a55aeae69f1411905deda20 | 1,271 | py | Python | common/__init__.py | flipcoder/siege-tools | df8a9fa5a4a6f2bcce4789cebe17b0c4dd3f7e60 | [
"MIT"
] | 6 | 2015-08-14T15:26:38.000Z | 2019-11-14T01:08:31.000Z | common/__init__.py | flipcoder/siege-tools | df8a9fa5a4a6f2bcce4789cebe17b0c4dd3f7e60 | [
"MIT"
] | null | null | null | common/__init__.py | flipcoder/siege-tools | df8a9fa5a4a6f2bcce4789cebe17b0c4dd3f7e60 | [
"MIT"
] | 1 | 2019-05-10T04:52:40.000Z | 2019-05-10T04:52:40.000Z | #!/usr/bin/env python
import os
import sys
import subprocess
_program_name = None
def bit(x):
return 1<<x
def mask(x):
return (1<<x)-1
def set_program_name(name):
global _program_name
_program_name = name
def program_name():
if not _program_name:
return os.path.basename(sys.argv[0]).sp... | 21.913793 | 83 | 0.634933 | 176 | 1,271 | 4.5 | 0.494318 | 0.097222 | 0.020202 | 0.022727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014894 | 0.260425 | 1,271 | 57 | 84 | 22.298246 | 0.82766 | 0.436664 | 0 | 0 | 0 | 0 | 0.001435 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.193548 | false | 0.032258 | 0.096774 | 0.096774 | 0.806452 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e3bee503c00e637525df1d286c40cbd36c1cc38a | 875 | py | Python | pyicloud/exceptions.py | rdidyk/pyicloud | 7d274e24426071f091b789a618209d4d971b570e | [
"MIT"
] | 42 | 2018-06-25T08:46:47.000Z | 2022-03-09T02:55:19.000Z | pyicloud/exceptions.py | rdidyk/pyicloud | 7d274e24426071f091b789a618209d4d971b570e | [
"MIT"
] | 2 | 2019-06-28T09:47:07.000Z | 2020-09-30T06:08:49.000Z | pyicloud/exceptions.py | rdidyk/pyicloud | 7d274e24426071f091b789a618209d4d971b570e | [
"MIT"
] | 9 | 2019-05-11T01:09:08.000Z | 2020-09-29T10:21:35.000Z |
class PyiCloudException(Exception):
pass
class PyiCloudNoDevicesException(PyiCloudException):
pass
class PyiCloudAPIResponseError(PyiCloudException):
def __init__(self, reason, code):
self.reason = reason
self.code = code
message = reason
if code:
message += ... | 21.341463 | 66 | 0.725714 | 70 | 875 | 8.842857 | 0.357143 | 0.072698 | 0.12601 | 0.090469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002857 | 0.2 | 875 | 40 | 67 | 21.875 | 0.881429 | 0 | 0 | 0.25 | 0 | 0 | 0.050343 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.291667 | 0 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e3c8f52c8744adf70880871156bb3071b53cf4ba | 13,568 | py | Python | python/mainApplication.py | sylwow/Engineering-Thesis | 2d5ca1b30603d9ad1da57d4fd473d49756f59296 | [
"MIT"
] | 2 | 2020-04-05T06:14:36.000Z | 2020-10-04T11:26:45.000Z | python/mainApplication.py | sylwow/Engineering-Thesis | 2d5ca1b30603d9ad1da57d4fd473d49756f59296 | [
"MIT"
] | null | null | null | python/mainApplication.py | sylwow/Engineering-Thesis | 2d5ca1b30603d9ad1da57d4fd473d49756f59296 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'guiLayout.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
from serialComunication import Commands
from datetime import datetime
from mai... | 38.876791 | 128 | 0.651975 | 1,414 | 13,568 | 6.197313 | 0.19802 | 0.054319 | 0.040169 | 0.024649 | 0.255392 | 0.193541 | 0.10978 | 0.089239 | 0.047929 | 0.047929 | 0 | 0.029631 | 0.238871 | 13,568 | 348 | 129 | 38.988506 | 0.818921 | 0.016878 | 0 | 0.181185 | 1 | 0 | 0.052124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055749 | false | 0.010453 | 0.031359 | 0 | 0.108014 | 0.034843 | 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 |
e3ca6438d1e2bb1f396774d856c2efc351af28f2 | 5,979 | py | Python | gcs/frontend/Ui_channel_widget.py | cuspaceflight/m4-gcs | 577aed522c541d5910010fd48d123a1e0c622552 | [
"MIT"
] | null | null | null | gcs/frontend/Ui_channel_widget.py | cuspaceflight/m4-gcs | 577aed522c541d5910010fd48d123a1e0c622552 | [
"MIT"
] | null | null | null | gcs/frontend/Ui_channel_widget.py | cuspaceflight/m4-gcs | 577aed522c541d5910010fd48d123a1e0c622552 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui/Ui_channel_widget.ui'
#
# Created by: PyQt5 UI code generator 5.5.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_channel_widget(object):
def setupUi(self, channel_widge... | 51.543103 | 91 | 0.704131 | 701 | 5,979 | 5.831669 | 0.159772 | 0.07045 | 0.047701 | 0.072652 | 0.348092 | 0.205724 | 0.061644 | 0.042564 | 0.042564 | 0.042564 | 0 | 0.033198 | 0.178792 | 5,979 | 115 | 92 | 51.991304 | 0.799389 | 0.03228 | 0 | 0.058252 | 1 | 0 | 0.099515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019417 | false | 0 | 0.009709 | 0 | 0.038835 | 0 | 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 |
e3d06feba6cfdffde15384dab31f0c669b5e3317 | 453 | py | Python | lp3thw/dic.py | Herne/pythonplayground | c321ebbfe0480b36df077425ba2756adac480ac9 | [
"MIT"
] | 1 | 2017-05-01T10:13:02.000Z | 2017-05-01T10:13:02.000Z | lp3thw/dic.py | Herne/pythonplayground | c321ebbfe0480b36df077425ba2756adac480ac9 | [
"MIT"
] | null | null | null | lp3thw/dic.py | Herne/pythonplayground | c321ebbfe0480b36df077425ba2756adac480ac9 | [
"MIT"
] | null | null | null | student = {"name": "Mark", "student_id": 15163, "feedback": None, "lastname": "Kowalski"}
try:
last_name = student["lastname"]
print(last_name)
numbered_last_name = 3 + last_name
except KeyError:
print("key lastname doesn't exist")
except TypeError as error:
print("I can't add these 2 together!")
... | 28.3125 | 89 | 0.686534 | 62 | 453 | 4.919355 | 0.548387 | 0.104918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018229 | 0.152318 | 453 | 15 | 90 | 30.2 | 0.776042 | 0 | 0 | 0 | 0 | 0 | 0.286976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
e3d285018dc1dba75838fe677dc2c617ea5a564e | 7,081 | py | Python | vspk/v6/nuthreatpreventioninfo.py | axxyhtrx/vspk-python | 4495882c6bcbb1ef51b14b9f4dc7efe46476ff50 | [
"BSD-3-Clause"
] | 19 | 2016-03-07T12:34:22.000Z | 2020-06-11T11:09:02.000Z | vspk/v6/nuthreatpreventioninfo.py | axxyhtrx/vspk-python | 4495882c6bcbb1ef51b14b9f4dc7efe46476ff50 | [
"BSD-3-Clause"
] | 40 | 2016-06-13T15:36:54.000Z | 2020-11-10T18:14:43.000Z | vspk/v6/nuthreatpreventioninfo.py | axxyhtrx/vspk-python | 4495882c6bcbb1ef51b14b9f4dc7efe46476ff50 | [
"BSD-3-Clause"
] | 15 | 2016-06-10T22:06:01.000Z | 2020-12-15T18:37:42.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrigh... | 35.762626 | 278 | 0.679283 | 763 | 7,081 | 6.079948 | 0.304063 | 0.056047 | 0.067256 | 0.082776 | 0.363009 | 0.281957 | 0.265143 | 0.256521 | 0.234964 | 0.234964 | 0 | 0.001713 | 0.258156 | 7,081 | 198 | 279 | 35.762626 | 0.881401 | 0.460811 | 0 | 0.06 | 0 | 0 | 0.162465 | 0.027389 | 0 | 0 | 0 | 0 | 0 | 1 | 0.14 | false | 0 | 0.02 | 0 | 0.66 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e3d60774b3d251b81899519641259a4a6b5ab889 | 312 | py | Python | gan/mygan.py | s0531/Keras-GAN | e18e5f7f8c12ff203784e9155f1663620163fbc3 | [
"MIT"
] | null | null | null | gan/mygan.py | s0531/Keras-GAN | e18e5f7f8c12ff203784e9155f1663620163fbc3 | [
"MIT"
] | null | null | null | gan/mygan.py | s0531/Keras-GAN | e18e5f7f8c12ff203784e9155f1663620163fbc3 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# coding: utf-8
class Gan():
def __init__(self):
self.height = 28
self.width = 19
self.a = 2
def getHeight(self):
print('height: %d' % self.height)
def getWidth(self):
print('width: %d' % self.width)
if __name__ == '__main__':
gan = Gan()
gan.getWidth()
gan.getHeight()
| 14.181818 | 35 | 0.625 | 45 | 312 | 4.066667 | 0.533333 | 0.10929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027888 | 0.195513 | 312 | 21 | 36 | 14.857143 | 0.701195 | 0.099359 | 0 | 0 | 0 | 0 | 0.097122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0 | 0.307692 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e3d9dd918c2bea2556cc6c9d6081751566658410 | 10,089 | py | Python | gsae/models/inv_scattering.py | dbhaskar92/GSAE | 3340dfc38f95b29ff04d890d93deedf8dcae9324 | [
"Apache-2.0"
] | 3 | 2021-05-18T21:28:54.000Z | 2022-01-29T23:59:18.000Z | gsae/models/inv_scattering.py | dbhaskar92/GSAE | 3340dfc38f95b29ff04d890d93deedf8dcae9324 | [
"Apache-2.0"
] | null | null | null | gsae/models/inv_scattering.py | dbhaskar92/GSAE | 3340dfc38f95b29ff04d890d93deedf8dcae9324 | [
"Apache-2.0"
] | 3 | 2021-07-07T17:48:28.000Z | 2022-01-29T23:59:21.000Z |
from einops import rearrange,
from einops.layers.torch import Rearrange
import torch
import torch.utils.data
from torch import nn, optim
from torch.nn import functional as F
class generator_soft(nn.Module):
def __init__(self, input_size, hidden_size, graph_size, dev, node_dim):
super(generator_soft, s... | 29.937685 | 95 | 0.531569 | 1,306 | 10,089 | 3.891271 | 0.150077 | 0.062967 | 0.049587 | 0.036797 | 0.500394 | 0.461629 | 0.432704 | 0.417355 | 0.388233 | 0.353601 | 0 | 0.02168 | 0.346219 | 10,089 | 337 | 96 | 29.937685 | 0.748787 | 0.074636 | 0 | 0.33871 | 0 | 0 | 0.011117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032258 | null | null | 0.005376 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e3dc24f51599f1b7ef70d53120bc7ed7a8a24648 | 1,208 | py | Python | tests/unit/v0x04/test_controller2switch/test_meter_mod.py | josemauro/python-openflow | 0537c626f3aeb4c53995b65e0783f09ad5e63101 | [
"MIT"
] | 48 | 2016-06-09T14:36:22.000Z | 2021-11-11T16:05:19.000Z | tests/unit/v0x04/test_controller2switch/test_meter_mod.py | josemauro/python-openflow | 0537c626f3aeb4c53995b65e0783f09ad5e63101 | [
"MIT"
] | 338 | 2016-05-06T18:42:36.000Z | 2021-04-29T17:57:09.000Z | tests/unit/v0x04/test_controller2switch/test_meter_mod.py | josemauro/python-openflow | 0537c626f3aeb4c53995b65e0783f09ad5e63101 | [
"MIT"
] | 46 | 2016-05-24T15:32:56.000Z | 2021-06-01T12:16:17.000Z | """MeterMod tests."""
from unittest import TestCase
from pyof.v0x04.controller2switch.meter_mod import (
MeterBandDrop, MeterBandDscpRemark, MeterBandExperimenter, MeterBandHeader,
MeterMod)
class TestMeterMod(TestCase):
"""MeterMod test."""
def test_min_size(self):
"""Test minimum message s... | 25.702128 | 79 | 0.68543 | 118 | 1,208 | 6.881356 | 0.271186 | 0.098522 | 0.067734 | 0.086207 | 0.373153 | 0.373153 | 0.373153 | 0.373153 | 0.373153 | 0.373153 | 0 | 0.014156 | 0.181291 | 1,208 | 46 | 80 | 26.26087 | 0.806876 | 0.21606 | 0 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263158 | 1 | 0.263158 | false | 0 | 0.105263 | 0 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e3df875ca5b598dfc1cc941cf557481d90654922 | 999 | py | Python | 02 - Curso Em Video/Aula 22/ex110/moeda.py | GabrielTrentino/Python_Basico | f13f6448c275c14896337d2018b04cbf5a54efd3 | [
"MIT"
] | null | null | null | 02 - Curso Em Video/Aula 22/ex110/moeda.py | GabrielTrentino/Python_Basico | f13f6448c275c14896337d2018b04cbf5a54efd3 | [
"MIT"
] | null | null | null | 02 - Curso Em Video/Aula 22/ex110/moeda.py | GabrielTrentino/Python_Basico | f13f6448c275c14896337d2018b04cbf5a54efd3 | [
"MIT"
] | null | null | null | def aumentar(valor=0, taxa=0, format=False):
res = valor*(1 + taxa/100)
return res if format is False else moeda(res)
def diminuir(valor=0, taxa=0, format=False):
res = valor*(1-taxa/100)
return res if format is False else moeda(res)
def dobro(valor=0, format=False):
res = valor*2
... | 29.382353 | 65 | 0.603604 | 162 | 999 | 3.722222 | 0.228395 | 0.059701 | 0.079602 | 0.099502 | 0.527363 | 0.470978 | 0.470978 | 0.470978 | 0.470978 | 0.470978 | 0 | 0.05689 | 0.208208 | 999 | 33 | 66 | 30.272727 | 0.705436 | 0 | 0 | 0.291667 | 0 | 0 | 0.279503 | 0.116977 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.041667 | 0.458333 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e3eb1a44ecbb426d8bff488b6fb7eba9b8f3d315 | 8,263 | py | Python | ui/weather.py | UlovHer/WeatherApplication | 2257a60545eeb9bd13ecfef7abaed7eb3286c286 | [
"MIT"
] | null | null | null | ui/weather.py | UlovHer/WeatherApplication | 2257a60545eeb9bd13ecfef7abaed7eb3286c286 | [
"MIT"
] | null | null | null | ui/weather.py | UlovHer/WeatherApplication | 2257a60545eeb9bd13ecfef7abaed7eb3286c286 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'weather.ui'
#
# Created by: PyQt5 UI code generator 5.15.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui... | 52.297468 | 101 | 0.698173 | 914 | 8,263 | 6.204595 | 0.199125 | 0.068771 | 0.06207 | 0.058191 | 0.333451 | 0.333451 | 0.206489 | 0 | 0 | 0 | 0 | 0.043967 | 0.1825 | 8,263 | 157 | 102 | 52.630573 | 0.795559 | 0.032918 | 0 | 0.069444 | 1 | 0 | 0.045477 | 0.002881 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013889 | false | 0 | 0.013889 | 0 | 0.034722 | 0 | 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 |
e3ec0c143888dbd9c8346d810aa56aa9ae5981e2 | 3,116 | py | Python | model/code/stations_join.py | HsKA-OSGIS-archive/signis | 394fbd5e250647ec9ce7dad44bc58041bfed8a48 | [
"MIT"
] | 1 | 2018-11-20T13:35:07.000Z | 2018-11-20T13:35:07.000Z | model/code/stations_join.py | HsKA-OSGIS/signis | 394fbd5e250647ec9ce7dad44bc58041bfed8a48 | [
"MIT"
] | null | null | null | model/code/stations_join.py | HsKA-OSGIS/signis | 394fbd5e250647ec9ce7dad44bc58041bfed8a48 | [
"MIT"
] | 1 | 2020-11-04T08:40:29.000Z | 2020-11-04T08:40:29.000Z | # coding=utf-8
# Import modules
import sys
from qgis.core import *
from qgis.gui import *
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qgis.utils import *
from os.path import expanduser
# Configure QGIS directories and start the app
# Not to be used in QGIS python editor
app = QgsApplica... | 26.184874 | 88 | 0.741977 | 431 | 3,116 | 5.197216 | 0.364269 | 0.116518 | 0.15 | 0.192857 | 0.059821 | 0.027679 | 0 | 0 | 0 | 0 | 0 | 0.053482 | 0.105905 | 3,116 | 118 | 89 | 26.40678 | 0.750538 | 0.065789 | 0 | 0 | 0 | 0 | 0.378024 | 0.360055 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012987 | false | 0 | 0.155844 | 0 | 0.168831 | 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 |
e3ec22a7807b654c58be08c6c9be1a070e8835e5 | 8,736 | py | Python | Ano_1/LabI/AP2/repositoryContent/AP2.py | Karkanius/MIECT | 9ca9ca118a0875991bcd9bd324105ff9bc444495 | [
"MIT"
] | 7 | 2018-02-20T13:14:51.000Z | 2019-02-23T19:40:25.000Z | Ano_1/LabI/AP2/repositoryContent/AP2.py | Karkanius/MIECT | 9ca9ca118a0875991bcd9bd324105ff9bc444495 | [
"MIT"
] | null | null | null | Ano_1/LabI/AP2/repositoryContent/AP2.py | Karkanius/MIECT | 9ca9ca118a0875991bcd9bd324105ff9bc444495 | [
"MIT"
] | 2 | 2019-01-18T17:30:51.000Z | 2019-11-23T11:49:49.000Z | # -*- coding: utf-8 -*- # Importing all the modules needed fot the project
import base64 # Base64 is used to encode the signature
import time # time is used to get the current time in seconds through the method time.time()
import socket ... | 32.117647 | 120 | 0.615842 | 1,324 | 8,736 | 3.979607 | 0.180514 | 0.013285 | 0.018789 | 0.023534 | 0.424749 | 0.327387 | 0.283735 | 0.272158 | 0.263807 | 0.252799 | 0 | 0.012217 | 0.241071 | 8,736 | 272 | 121 | 32.117647 | 0.776772 | 0.172505 | 0 | 0.381579 | 0 | 0 | 0.19424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065789 | null | null | 0.162281 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e3ec9ad0b514d8feee737379663e9ca978c9798b | 5,073 | py | Python | euca2ools/commands/bundle/uploadbundle.py | Juniper/euca2ools | 67879bf3513eba2b5329fa9ba6919a080e2e7e0b | [
"BSD-2-Clause"
] | null | null | null | euca2ools/commands/bundle/uploadbundle.py | Juniper/euca2ools | 67879bf3513eba2b5329fa9ba6919a080e2e7e0b | [
"BSD-2-Clause"
] | null | null | null | euca2ools/commands/bundle/uploadbundle.py | Juniper/euca2ools | 67879bf3513eba2b5329fa9ba6919a080e2e7e0b | [
"BSD-2-Clause"
] | 2 | 2016-06-24T20:19:40.000Z | 2020-02-05T10:50:19.000Z | # Copyright 2009-2014 Eucalyptus Systems, Inc.
#
# Redistribution and use of this software in source and binary forms,
# with or without modification, are permitted provided that the following
# conditions are met:
#
# Redistributions of source code must retain the above copyright notice,
# this list of conditions ... | 44.5 | 78 | 0.641829 | 600 | 5,073 | 5.338333 | 0.365 | 0.024977 | 0.024977 | 0.015923 | 0.112082 | 0.067749 | 0.04246 | 0.04246 | 0.04246 | 0.04246 | 0 | 0.006178 | 0.266115 | 5,073 | 113 | 79 | 44.893805 | 0.85415 | 0.280505 | 0 | 0.028571 | 0 | 0 | 0.157459 | 0 | 0 | 0 | 0 | 0.00885 | 0.014286 | 0 | null | null | 0 | 0.114286 | null | null | 0.042857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e3ef797df4d982da91216484c9fe78b8c861a203 | 2,422 | py | Python | tests/test_requirements.py | Natrinicle/home-assistant | 7bb53449428b0787cca1d0c986c93a458401e6fb | [
"Apache-2.0"
] | 2 | 2020-08-29T07:24:56.000Z | 2020-10-27T21:47:35.000Z | tests/test_requirements.py | Natrinicle/home-assistant | 7bb53449428b0787cca1d0c986c93a458401e6fb | [
"Apache-2.0"
] | 6 | 2021-02-08T20:25:50.000Z | 2022-03-11T23:27:53.000Z | tests/test_requirements.py | Natrinicle/home-assistant | 7bb53449428b0787cca1d0c986c93a458401e6fb | [
"Apache-2.0"
] | 3 | 2018-09-14T07:34:09.000Z | 2018-09-29T12:57:10.000Z | """Test requirements module."""
import os
from unittest import mock
from homeassistant import loader, setup
from homeassistant.requirements import CONSTRAINT_FILE
from tests.common import get_test_home_assistant, MockModule
class TestRequirements:
"""Test the requirements module."""
hass = None
backup_... | 37.84375 | 73 | 0.659372 | 293 | 2,422 | 5.245734 | 0.255973 | 0.057254 | 0.045543 | 0.067664 | 0.681848 | 0.676643 | 0.676643 | 0.676643 | 0.676643 | 0.614183 | 0 | 0.00639 | 0.224608 | 2,422 | 63 | 74 | 38.444444 | 0.812034 | 0.09166 | 0 | 0.617021 | 0 | 0 | 0.160443 | 0.076533 | 0 | 0 | 0 | 0 | 0.12766 | 1 | 0.085106 | false | 0 | 0.106383 | 0 | 0.255319 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.