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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a72ca519fefb7672f8b3cc43bac7f1a7aa4ac154 | 2,398 | py | Python | Leak #5 - Lost In Translation/windows/Resources/Python/Core/Lib/idlelib/Percolator.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | 9 | 2019-11-22T04:58:40.000Z | 2022-02-26T16:47:28.000Z | Leak #5 - Lost In Translation/windows/Resources/Python/Core/Lib/idlelib/Percolator.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | null | null | null | Leak #5 - Lost In Translation/windows/Resources/Python/Core/Lib/idlelib/Percolator.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | 8 | 2017-09-27T10:31:18.000Z | 2022-01-08T10:30:46.000Z | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: Percolator.py
from idlelib.WidgetRedirector import WidgetRedirector
from idlelib.Delegator import Delegator
class Percolator:
def __init__(self... | 25.784946 | 71 | 0.592577 | 286 | 2,398 | 4.884615 | 0.286713 | 0.050107 | 0.023622 | 0.020043 | 0.110236 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030751 | 0.294829 | 2,398 | 93 | 72 | 25.784946 | 0.795387 | 0.07256 | 0 | 0.142857 | 0 | 0 | 0.025237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042857 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a7339bf8356d9cb4d573bdcdcf957cca6fe7a0db | 539 | py | Python | Python/6/ElementEqualsItsIndex/element_equals_its_index.py | hwakabh/codewars | 7afce5a7424d35abc55c350301ac134f2d3edd3d | [
"MIT"
] | null | null | null | Python/6/ElementEqualsItsIndex/element_equals_its_index.py | hwakabh/codewars | 7afce5a7424d35abc55c350301ac134f2d3edd3d | [
"MIT"
] | 6 | 2020-02-21T17:01:59.000Z | 2021-05-04T07:04:41.000Z | Python/6/ElementEqualsItsIndex/element_equals_its_index.py | hwakabh/codewars | 7afce5a7424d35abc55c350301ac134f2d3edd3d | [
"MIT"
] | null | null | null | import sys
def index_equals_value(arr):
l, h = 0, len(arr) - 1
while l <= h:
m = (l + h) // 2
if arr[m] < m:
l = m + 1
elif m < arr[m]:
h = m - 1
elif l != h:
h = m
else:
return m
# Case if not found
return -1
i... | 19.962963 | 92 | 0.447124 | 79 | 539 | 2.898734 | 0.493671 | 0.034935 | 0.139738 | 0.165939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025157 | 0.410019 | 539 | 26 | 93 | 20.730769 | 0.694969 | 0.03154 | 0 | 0.1 | 0 | 0 | 0.094231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.2 | 0.05 | 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 |
a73694056c79552e0edd40cfcbf2b0dfe7a8091d | 2,198 | py | Python | mailsync/api/mailchimp.py | georgismitev/mailsync-app | 142cbf5e77e1580fc04a44443b10b4e48d3a66e8 | [
"MIT"
] | null | null | null | mailsync/api/mailchimp.py | georgismitev/mailsync-app | 142cbf5e77e1580fc04a44443b10b4e48d3a66e8 | [
"MIT"
] | 1 | 2019-07-23T02:39:16.000Z | 2019-07-23T02:39:16.000Z | mailsync/api/mailchimp.py | georgismitev/mailsync-app | 142cbf5e77e1580fc04a44443b10b4e48d3a66e8 | [
"MIT"
] | 1 | 2019-09-23T22:00:04.000Z | 2019-09-23T22:00:04.000Z | import datetime
import logging
from mailsnake import MailSnake
from mailsync.models.customfield import CustomField
class MailChimp(object):
def __init__(self, apikey):
self.api_key = apikey
self.provider = MailSnake(self.api_key)
def test_connection(self):
try:
self.provider.ping()
except Exception,... | 23.382979 | 99 | 0.698362 | 282 | 2,198 | 5.237589 | 0.326241 | 0.056872 | 0.020311 | 0.050779 | 0.081923 | 0.081923 | 0.05958 | 0.05958 | 0 | 0 | 0 | 0.002221 | 0.180619 | 2,198 | 94 | 100 | 23.382979 | 0.817879 | 0.000455 | 0 | 0.276923 | 0 | 0 | 0.055125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061538 | 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 |
a73b6f39558ac1abf5af3d864bf190db7635de54 | 303 | py | Python | src/homework/widget/clock_app.py | acc-cosc-1336/cosc-1336-spring-2018-artgonzalezacc | c5dcc0ad7c47345c274d61c7e94f6c3b0ed42245 | [
"MIT"
] | null | null | null | src/homework/widget/clock_app.py | acc-cosc-1336/cosc-1336-spring-2018-artgonzalezacc | c5dcc0ad7c47345c274d61c7e94f6c3b0ed42245 | [
"MIT"
] | null | null | null | src/homework/widget/clock_app.py | acc-cosc-1336/cosc-1336-spring-2018-artgonzalezacc | c5dcc0ad7c47345c274d61c7e94f6c3b0ed42245 | [
"MIT"
] | null | null | null | from tkinter import Tk
from src.homework.widget.main_frame import MainFrame
class ClockApp(Tk):
def __init__(self, *args, **kwargs):
Tk.__init__(self, *args, **kwargs)
frame = MainFrame(self)
frame.pack()
if __name__ == '__main__':
app = ClockApp()
app.mainloop()
| 21.642857 | 52 | 0.646865 | 37 | 303 | 4.837838 | 0.594595 | 0.089385 | 0.134078 | 0.201117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224422 | 303 | 13 | 53 | 23.307692 | 0.761702 | 0 | 0 | 0 | 0 | 0 | 0.026403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 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 |
595867ff2722c9e0305c99b1814e2b948031a092 | 1,940 | py | Python | test_annd.py | maria-kuruvilla/temp_collective_code | 11367dd6d70d924af0d1ea765fb95734b00253bb | [
"MIT"
] | null | null | null | test_annd.py | maria-kuruvilla/temp_collective_code | 11367dd6d70d924af0d1ea765fb95734b00253bb | [
"MIT"
] | null | null | null | test_annd.py | maria-kuruvilla/temp_collective_code | 11367dd6d70d924af0d1ea765fb95734b00253bb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 2 13:09:50 2020
@author: Maria Kuruvilla
"""
import os
import pathlib
from pprint import pprint
import numpy as np
from scipy import stats
from scipy.spatial import distance
import matplotlib.pyplot as plt
from matplotlib.pyplot import figure
import trajectorytools as... | 34.642857 | 180 | 0.699485 | 268 | 1,940 | 4.876866 | 0.406716 | 0.026779 | 0.045907 | 0.088753 | 0.220352 | 0.220352 | 0.165264 | 0.108646 | 0.108646 | 0.108646 | 0 | 0.024659 | 0.20567 | 1,940 | 55 | 181 | 35.272727 | 0.823491 | 0.209794 | 0 | 0.060606 | 0 | 0 | 0.095395 | 0.080921 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
595d22cff54ce1baaf78dde269c14024e1e4f928 | 2,649 | py | Python | tests/test_error_handlers.py | swistakm/falcon | 229918c6e34aece9234466fa255ae8ac2d4a7c16 | [
"Apache-2.0"
] | null | null | null | tests/test_error_handlers.py | swistakm/falcon | 229918c6e34aece9234466fa255ae8ac2d4a7c16 | [
"Apache-2.0"
] | null | null | null | tests/test_error_handlers.py | swistakm/falcon | 229918c6e34aece9234466fa255ae8ac2d4a7c16 | [
"Apache-2.0"
] | null | null | null | import falcon
from falcon import testing
def capture_error(ex, req, resp, params):
resp.status = falcon.HTTP_723
resp.body = 'error: %s' % str(ex)
def handle_error_first(ex, req, resp, params):
resp.status = falcon.HTTP_200
resp.body = 'first error handler'
class CustomBaseException(Exception):
... | 29.433333 | 74 | 0.686674 | 306 | 2,649 | 5.75817 | 0.254902 | 0.061294 | 0.045403 | 0.059591 | 0.435301 | 0.410897 | 0.359251 | 0.31328 | 0.115778 | 0 | 0 | 0.008633 | 0.212911 | 2,649 | 89 | 75 | 29.764045 | 0.836451 | 0 | 0 | 0.166667 | 0 | 0 | 0.100038 | 0 | 0 | 0 | 0 | 0 | 0.183333 | 1 | 0.233333 | false | 0.016667 | 0.033333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5961ebbf6e1b181be98bd83deb7ef1ec1f9a603d | 3,054 | py | Python | percolate/__init__.py | bt402/pypercolate | 92478c1fc4d4ff5ae157f7607fd74f6f9ec360ac | [
"0BSD"
] | 12 | 2015-04-30T21:03:48.000Z | 2021-05-14T11:11:54.000Z | percolate/__init__.py | bt402/pypercolate | 92478c1fc4d4ff5ae157f7607fd74f6f9ec360ac | [
"0BSD"
] | 10 | 2015-03-13T21:12:48.000Z | 2022-02-10T13:29:00.000Z | percolate/__init__.py | bt402/pypercolate | 92478c1fc4d4ff5ae157f7607fd74f6f9ec360ac | [
"0BSD"
] | 7 | 2018-01-19T12:37:30.000Z | 2021-09-17T21:56:54.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
Implements the Newman-Ziff algorithm for Monte Carlo simulation of percolation
This module implements the Newman-Ziff algorithm for Monte Carlo simulation of
Bernoulli percolation on arbitrary graphs.
The :mod:`percolate` module provides these high-level functions from the... | 29.941176 | 79 | 0.761297 | 393 | 3,054 | 5.768448 | 0.455471 | 0.058227 | 0.037053 | 0.020291 | 0.127922 | 0.082929 | 0.050287 | 0.050287 | 0.050287 | 0.050287 | 0 | 0.019208 | 0.164702 | 3,054 | 101 | 80 | 30.237624 | 0.869463 | 0.792403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.235294 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5961f5af32a581ca60df1df04ea624fa8a58bdd6 | 4,605 | py | Python | datastore/core/serialize.py | Swixx/py-datastore | dfa1f9dcc3cc3beac3c3e79d085cb6e89da97a1c | [
"MIT"
] | null | null | null | datastore/core/serialize.py | Swixx/py-datastore | dfa1f9dcc3cc3beac3c3e79d085cb6e89da97a1c | [
"MIT"
] | null | null | null | datastore/core/serialize.py | Swixx/py-datastore | dfa1f9dcc3cc3beac3c3e79d085cb6e89da97a1c | [
"MIT"
] | null | null | null | import abc
import typing
from . import binarystore
from . import objectstore
from . import key as key_
from . import query as query_
class util: # noqa
from .util import stream
T_co = typing.TypeVar("T_co", covariant=True)
#FIXME: This stuff should support streaming data to the maximum extent possible
class Se... | 25.302198 | 94 | 0.703583 | 614 | 4,605 | 5.187296 | 0.30456 | 0.065934 | 0.033909 | 0.036107 | 0.179592 | 0.119937 | 0.119937 | 0.099843 | 0.099843 | 0.099843 | 0 | 0 | 0.184148 | 4,605 | 181 | 95 | 25.441989 | 0.847751 | 0.260586 | 0 | 0.095238 | 0 | 0 | 0.016228 | 0 | 0 | 0 | 0 | 0.022099 | 0 | 1 | 0.071429 | false | 0.047619 | 0.166667 | 0 | 0.452381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
596466607a443b5775d3bc3e0a1ac2f2cc5607f8 | 5,893 | py | Python | model/src/model/predict_workouts.py | MultiW/nimble-xc | bb9058d0f441b5d382abb97c3bb1753fd9d7c9b7 | [
"MIT"
] | 4 | 2021-08-02T07:28:06.000Z | 2022-01-26T00:09:39.000Z | model/src/model/predict_workouts.py | MultiW/nimble-xc | bb9058d0f441b5d382abb97c3bb1753fd9d7c9b7 | [
"MIT"
] | 5 | 2021-04-23T00:59:29.000Z | 2021-05-06T00:42:39.000Z | model/src/model/predict_workouts.py | MultiW/nimble-xc | bb9058d0f441b5d382abb97c3bb1753fd9d7c9b7 | [
"MIT"
] | null | null | null | import numpy as np
import math
# import data types
from numpy import ndarray
from typing import List, Tuple, Dict
from src.predict.predict import classify_imu_datapoints, classify_imu_datapoints_no_norm
from src.data.util import are_overlapping
from src.data.workout import Activity
from src.data.imu_util import norma... | 35.715152 | 124 | 0.673511 | 776 | 5,893 | 4.832474 | 0.185567 | 0.0616 | 0.0176 | 0.018667 | 0.301067 | 0.1728 | 0.143467 | 0.143467 | 0.120533 | 0.0928 | 0 | 0.008768 | 0.245206 | 5,893 | 165 | 125 | 35.715152 | 0.834308 | 0.206686 | 0 | 0.166667 | 0 | 0 | 0.004543 | 0 | 0 | 0 | 0 | 0.012121 | 0 | 1 | 0.09375 | false | 0 | 0.083333 | 0.020833 | 0.28125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
5964a90fb2d883f744316df413e26e3f2acbf893 | 5,161 | py | Python | src/openeo_aggregator/config.py | Open-EO/openeo-aggregator | 88bc1ef44b700dd1b13b29e6c50eda0f197280eb | [
"Apache-2.0"
] | 1 | 2021-05-19T10:17:45.000Z | 2021-05-19T10:17:45.000Z | src/openeo_aggregator/config.py | Open-EO/openeo-aggregator | 88bc1ef44b700dd1b13b29e6c50eda0f197280eb | [
"Apache-2.0"
] | 32 | 2021-07-19T13:11:26.000Z | 2022-03-24T16:42:05.000Z | src/openeo_aggregator/config.py | Open-EO/openeo-aggregator | 88bc1ef44b700dd1b13b29e6c50eda0f197280eb | [
"Apache-2.0"
] | 1 | 2021-10-21T08:20:12.000Z | 2021-10-21T08:20:12.000Z | import logging
import logging.config
import os
from pathlib import Path
from typing import Any, List, Union
from openeo_driver.users.oidc import OidcProvider
from openeo_driver.utils import dict_item
_log = logging.getLogger(__name__)
OPENEO_AGGREGATOR_CONFIG = "OPENEO_AGGREGATOR_CONFIG"
ENVIRONMENT_INDICATOR = "ENV... | 33.732026 | 111 | 0.623523 | 594 | 5,161 | 5.244108 | 0.373737 | 0.046228 | 0.049438 | 0.014125 | 0.026966 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00607 | 0.26584 | 5,161 | 152 | 112 | 33.953947 | 0.816046 | 0.17516 | 0 | 0.056075 | 0 | 0.009346 | 0.214949 | 0.055939 | 0 | 0 | 0 | 0.013158 | 0 | 1 | 0.056075 | false | 0.009346 | 0.065421 | 0.018692 | 0.252336 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
59659df36475aeb275fd12aac45e3b76d16767e4 | 1,119 | py | Python | setup/terraform/web/app/__init__.py | rch/edge2ai-workshop | 32af34e39439d17c2a73ba85e69248e88928a187 | [
"Apache-2.0"
] | 61 | 2019-08-21T12:33:34.000Z | 2022-02-11T14:52:46.000Z | setup/terraform/web/app/__init__.py | rch/edge2ai-workshop | 32af34e39439d17c2a73ba85e69248e88928a187 | [
"Apache-2.0"
] | 20 | 2019-10-16T15:11:01.000Z | 2021-03-31T05:34:56.000Z | setup/terraform/web/app/__init__.py | rch/edge2ai-workshop | 32af34e39439d17c2a73ba85e69248e88928a187 | [
"Apache-2.0"
] | 74 | 2019-08-21T12:33:52.000Z | 2022-02-17T03:28:56.000Z | """
Application module
"""
from logging import INFO, Formatter
from logging.handlers import SMTPHandler, RotatingFileHandler
import os
from flask import Flask
from flask_bootstrap import Bootstrap
from flask_login import LoginManager
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
from dotenv... | 28.692308 | 94 | 0.765862 | 148 | 1,119 | 5.662162 | 0.425676 | 0.053699 | 0.033413 | 0.047733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.133155 | 1,119 | 38 | 95 | 29.447368 | 0.853608 | 0.050938 | 0 | 0 | 0 | 0.034483 | 0.118596 | 0.02277 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.37931 | 0 | 0.37931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
596c8ba3b97d149effe90a46d3ddb503d4d4cf6a | 1,965 | py | Python | src/homomorphic_encryption_scheme.py | UMComp4140ATeam/Raymond | 2ccff4d15835ab386d3e25b2bb3a7ed03feffe81 | [
"MIT"
] | 1 | 2015-10-04T16:19:16.000Z | 2015-10-04T16:19:16.000Z | src/homomorphic_encryption_scheme.py | UMComp4140ATeam/Raymond | 2ccff4d15835ab386d3e25b2bb3a7ed03feffe81 | [
"MIT"
] | null | null | null | src/homomorphic_encryption_scheme.py | UMComp4140ATeam/Raymond | 2ccff4d15835ab386d3e25b2bb3a7ed03feffe81 | [
"MIT"
] | null | null | null | #!/bin/python
# -*- coding: utf-8 -*-
import bit_encrypter
import bootstrappable_keygen
import bootstrappable_decryption
import dimension_modulus_reduction
import homomorphic_arithmetic
class HomomorphicEncryptionScheme(object):
def __init__(self, short_dimension, long_dimension, multiplicative_depth, short_odd_m... | 54.583333 | 194 | 0.782188 | 216 | 1,965 | 6.625 | 0.333333 | 0.076869 | 0.068484 | 0.047519 | 0.168414 | 0.151642 | 0.131377 | 0.131377 | 0.131377 | 0.131377 | 0 | 0.004194 | 0.150636 | 1,965 | 36 | 195 | 54.583333 | 0.853206 | 0.049364 | 0 | 0 | 0 | 0 | 0.021972 | 0.014469 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.192308 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
596f31427d6c2581eab9ada50b0a4e2a65704c9f | 13,522 | py | Python | sqla.py | derez/bitrunner | 9ebe361ae7a067bc8ea6586b55e66d67d6a099d2 | [
"MIT"
] | null | null | null | sqla.py | derez/bitrunner | 9ebe361ae7a067bc8ea6586b55e66d67d6a099d2 | [
"MIT"
] | null | null | null | sqla.py | derez/bitrunner | 9ebe361ae7a067bc8ea6586b55e66d67d6a099d2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*
import logging
logger = logging.getLogger(__file__)
try:
import sqlalchemy
except ImportError, err:
#logger.error('SqlAlchemy import not available')
raise LibraryImportError('SqlAlchemy import not available ({0})'.format(err))
from sqlalchemy.orm import RelationshipProperty, ColumnP... | 32.042654 | 104 | 0.637849 | 1,624 | 13,522 | 5.168103 | 0.179187 | 0.046586 | 0.019659 | 0.017872 | 0.388419 | 0.34362 | 0.28631 | 0.2682 | 0.26391 | 0.227451 | 0 | 0.001622 | 0.270448 | 13,522 | 421 | 105 | 32.118765 | 0.849164 | 0.063674 | 0 | 0.368889 | 0 | 0 | 0.083173 | 0.019161 | 0 | 0 | 0 | 0.002375 | 0 | 0 | null | null | 0.008889 | 0.066667 | null | null | 0.013333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
597936143ed3bac74ba8388c44a1683a1920157e | 600 | py | Python | database2.py | dlunna/gob.selenium | 9c663e78b880b3363731f6e6f5b6899a972ef7c0 | [
"MIT"
] | null | null | null | database2.py | dlunna/gob.selenium | 9c663e78b880b3363731f6e6f5b6899a972ef7c0 | [
"MIT"
] | null | null | null | database2.py | dlunna/gob.selenium | 9c663e78b880b3363731f6e6f5b6899a972ef7c0 | [
"MIT"
] | null | null | null | import pymysql
# Conectar con base de datos
conexion = pymysql.connect(host="localhost",
port="3306",
user="inventario2019",
password="1a2s3d4f.",
database="inventario2019",
)
#cursor... | 25 | 53 | 0.578333 | 53 | 600 | 6.528302 | 0.735849 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039024 | 0.316667 | 600 | 24 | 54 | 25 | 0.804878 | 0.456667 | 0 | 0 | 0 | 0 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
597b72c354a466e026cee243b36b7bc35112846f | 3,751 | py | Python | tests/components/meater/test_config_flow.py | mtarjoianu/core | 44e9146463ac505eb3d1c0651ad126cb25c28a54 | [
"Apache-2.0"
] | 3 | 2019-10-02T04:40:26.000Z | 2020-02-16T13:19:08.000Z | tests/components/meater/test_config_flow.py | mtarjoianu/core | 44e9146463ac505eb3d1c0651ad126cb25c28a54 | [
"Apache-2.0"
] | 25 | 2021-10-02T10:01:14.000Z | 2022-03-31T06:11:49.000Z | tests/components/meater/test_config_flow.py | mtarjoianu/core | 44e9146463ac505eb3d1c0651ad126cb25c28a54 | [
"Apache-2.0"
] | 1 | 2021-12-10T10:33:28.000Z | 2021-12-10T10:33:28.000Z | """Define tests for the Meater config flow."""
from unittest.mock import AsyncMock, patch
from meater import AuthenticationError, ServiceUnavailableError
import pytest
from homeassistant import data_entry_flow
from homeassistant.components.meater import DOMAIN
from homeassistant.config_entries import SOURCE_USER
from... | 34.412844 | 88 | 0.716875 | 471 | 3,751 | 5.484076 | 0.22293 | 0.041812 | 0.034069 | 0.054201 | 0.527681 | 0.489741 | 0.489741 | 0.475416 | 0.376694 | 0.318622 | 0 | 0.007339 | 0.164489 | 3,751 | 108 | 89 | 34.731481 | 0.816847 | 0.029859 | 0 | 0.273973 | 0 | 0 | 0.145703 | 0.038061 | 0 | 0 | 0 | 0 | 0.150685 | 1 | 0.027397 | false | 0.109589 | 0.109589 | 0 | 0.150685 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
597d30f1a72b600a7488e871dba304393212bbba | 6,363 | py | Python | classes/chrome_driver.py | ChristianGracia/Pythion-Post-Bot | 7b382123b6dac26a5121ca4314a6aa474902e6d3 | [
"MIT"
] | null | null | null | classes/chrome_driver.py | ChristianGracia/Pythion-Post-Bot | 7b382123b6dac26a5121ca4314a6aa474902e6d3 | [
"MIT"
] | null | null | null | classes/chrome_driver.py | ChristianGracia/Pythion-Post-Bot | 7b382123b6dac26a5121ca4314a6aa474902e6d3 | [
"MIT"
] | null | null | null | import os, time, random, json, datetime
from selenium.webdriver.chrome.options import Options
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from time import sleep
from random import randint
import pydub
import urllib
from speech_recognition import Recognizer, AudioFile
from classes.st... | 38.79878 | 226 | 0.639635 | 833 | 6,363 | 4.711885 | 0.238896 | 0.056561 | 0.036688 | 0.061656 | 0.358471 | 0.311338 | 0.275159 | 0.234904 | 0.225478 | 0.17758 | 0 | 0.024123 | 0.211693 | 6,363 | 163 | 227 | 39.03681 | 0.758373 | 0.339777 | 0 | 0.128571 | 0 | 0.071429 | 0.178907 | 0.1281 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.057143 | 0.142857 | 0 | 0.3 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
597e24eeb36a67e098d1a4188b73cf20c4e7eff5 | 5,959 | py | Python | src/aeroport/storage/fs_storage.py | anti1869/aeroport | e72ea137e76a679b7e3dc55a8e419c2c638c24f6 | [
"Apache-2.0"
] | null | null | null | src/aeroport/storage/fs_storage.py | anti1869/aeroport | e72ea137e76a679b7e3dc55a8e419c2c638c24f6 | [
"Apache-2.0"
] | null | null | null | src/aeroport/storage/fs_storage.py | anti1869/aeroport | e72ea137e76a679b7e3dc55a8e419c2c638c24f6 | [
"Apache-2.0"
] | null | null | null | import logging
from functools import partial
import os
import shutil
from typing import BinaryIO, Iterable, Optional
from sunhead.metrics import get_metrics
from aeroport.storage.abc import AbstractStorage, ObjectInStorage
from aeroport.storage import storage_executor
from aeroport.storage import exceptions
from aero... | 36.335366 | 113 | 0.63853 | 747 | 5,959 | 4.787149 | 0.203481 | 0.075503 | 0.03915 | 0.050336 | 0.337528 | 0.297539 | 0.253635 | 0.228468 | 0.210011 | 0.130872 | 0 | 0.00787 | 0.275046 | 5,959 | 163 | 114 | 36.558282 | 0.819907 | 0.058063 | 0 | 0.166667 | 0 | 0 | 0.010092 | 0.004298 | 0 | 0 | 0 | 0.01227 | 0 | 1 | 0.070175 | false | 0 | 0.087719 | 0 | 0.245614 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
59871d4341af8c6af47b26ba105f890e4937aeb6 | 792 | py | Python | inventario/migrations/0007_auto_20160319_2147.py | exildev/pisix | 6e844be31333c7f6cd12fd0e21dc990405f9c27c | [
"MIT"
] | null | null | null | inventario/migrations/0007_auto_20160319_2147.py | exildev/pisix | 6e844be31333c7f6cd12fd0e21dc990405f9c27c | [
"MIT"
] | null | null | null | inventario/migrations/0007_auto_20160319_2147.py | exildev/pisix | 6e844be31333c7f6cd12fd0e21dc990405f9c27c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-03-19 21:47
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('inventario', '0006_auto_20160319_1726'),
]
operatio... | 30.461538 | 138 | 0.661616 | 82 | 792 | 6.219512 | 0.670732 | 0.047059 | 0.054902 | 0.086275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053485 | 0.22096 | 792 | 25 | 139 | 31.68 | 0.773096 | 0.084596 | 0 | 0.111111 | 1 | 0 | 0.260388 | 0.066482 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 |
598bd1490e82f443075e58a8ef5470d15f291b02 | 565 | py | Python | mysite/main/migrations/0012_auto_20200409_1502.py | trinamntn08/demoAI | 9fb5e5ef32f550a9b69c8cb78343bbb3ac15bd4e | [
"MIT"
] | null | null | null | mysite/main/migrations/0012_auto_20200409_1502.py | trinamntn08/demoAI | 9fb5e5ef32f550a9b69c8cb78343bbb3ac15bd4e | [
"MIT"
] | null | null | null | mysite/main/migrations/0012_auto_20200409_1502.py | trinamntn08/demoAI | 9fb5e5ef32f550a9b69c8cb78343bbb3ac15bd4e | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-04-09 13:02
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0011_auto_20200406_1659'),
]
operations = [
migrations.DeleteModel(
name='ImageInput',
),
... | 24.565217 | 128 | 0.615929 | 60 | 565 | 5.7 | 0.733333 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116223 | 0.269027 | 565 | 22 | 129 | 25.681818 | 0.711864 | 0.079646 | 0 | 0.125 | 1 | 0 | 0.148649 | 0.044402 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.3125 | 0 | 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 |
598e5b8d4c16dc0f0b9105abeed10a92eb73787d | 2,189 | py | Python | examples/cf_push_core.py | hsdp/python-cf-api | 13fc605e2ea3b5c09cc8a556c58e8c36ae290c8c | [
"Apache-2.0"
] | 20 | 2018-01-19T20:19:02.000Z | 2020-06-09T08:45:40.000Z | examples/cf_push_core.py | hsdp/python-cf-api | 13fc605e2ea3b5c09cc8a556c58e8c36ae290c8c | [
"Apache-2.0"
] | 4 | 2018-01-20T00:24:27.000Z | 2020-03-16T01:26:27.000Z | examples/cf_push_core.py | hsdp/python-cf-api | 13fc605e2ea3b5c09cc8a556c58e8c36ae290c8c | [
"Apache-2.0"
] | 3 | 2020-02-19T22:56:50.000Z | 2021-05-12T19:38:33.000Z | """Deploys a Cloud Foundry application using a manifest
"""
from __future__ import print_function
import os
import sys
import json
import cf_api
from cf_api.deploy_manifest import Deploy
from getpass import getpass
print('----------')
# cloud_controller_url = 'https://api.changeme.com'
cloud_controller_url = raw_inpu... | 33.166667 | 83 | 0.724989 | 306 | 2,189 | 4.964052 | 0.336601 | 0.0237 | 0.0474 | 0.021066 | 0.290981 | 0.290981 | 0.290981 | 0.290981 | 0.236998 | 0.236998 | 0 | 0.00516 | 0.114664 | 2,189 | 65 | 84 | 33.676923 | 0.778638 | 0.180905 | 0 | 0.3 | 0 | 0 | 0.163953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.06 | 0.14 | 0 | 0.14 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
598fdb4ce323744f69819e4f34d80ef0597969b6 | 593 | py | Python | cleaning/models.py | Atilla106/members.atilla.org | 980fe41e7651b55b7c61b256fff026fdfe888a5f | [
"MIT"
] | 1 | 2017-03-25T23:26:40.000Z | 2017-03-25T23:26:40.000Z | cleaning/models.py | Atilla106/members.atilla.org | 980fe41e7651b55b7c61b256fff026fdfe888a5f | [
"MIT"
] | 1 | 2020-06-05T17:14:04.000Z | 2020-06-05T17:14:04.000Z | cleaning/models.py | Atilla106/members.atilla.org | 980fe41e7651b55b7c61b256fff026fdfe888a5f | [
"MIT"
] | null | null | null | from datetime import date
from django.db import models
from accounts.models import Account
class CleaningRoster(models.Model):
"""
Model representing a randomly-selected roster for the room's cleaning
"""
# Date where the people were selected
date = models.DateField(auto_now_add=True)
clean... | 25.782609 | 73 | 0.698145 | 74 | 593 | 5.513514 | 0.621622 | 0.04902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198988 | 593 | 22 | 74 | 26.954545 | 0.858947 | 0.178752 | 0 | 0 | 0 | 0 | 0.025478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0.090909 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5991670b072364e9ce3b47872ca4ace3819ede6c | 35,403 | py | Python | designs/kitaplarim.py | Brktrlw/ogrencitakip | 74937f6ddbf8ea9ab735139ef636366fa7d14b33 | [
"Apache-2.0"
] | 1 | 2021-05-09T19:06:04.000Z | 2021-05-09T19:06:04.000Z | designs/kitaplarim.py | Brktrlw/ogrencitakip | 74937f6ddbf8ea9ab735139ef636366fa7d14b33 | [
"Apache-2.0"
] | null | null | null | designs/kitaplarim.py | Brktrlw/ogrencitakip | 74937f6ddbf8ea9ab735139ef636366fa7d14b33 | [
"Apache-2.0"
] | null | null | null | qt# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'kitaplarim.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,... | 48.563786 | 122 | 0.699263 | 4,297 | 35,403 | 5.646032 | 0.080754 | 0.051193 | 0.035613 | 0.046742 | 0.736491 | 0.6766 | 0.588888 | 0.509666 | 0.464573 | 0.434978 | 0 | 0.045876 | 0.168178 | 35,403 | 728 | 123 | 48.630495 | 0.777955 | 0.007768 | 0 | 0.440845 | 1 | 0.004225 | 0.21213 | 0.041315 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002817 | false | 0 | 0.004225 | 0 | 0.008451 | 0 | 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 |
59b4d705c23c07b2529114c4e7bbc72e756a17a7 | 2,153 | py | Python | Class1/07-00 Simple_test_on_Keras/DataGenerate.py | vvchenvv/Self_Driving_Tutorial | 649fddeb1371aa2a02ed49e5dbb8204119b0a3c1 | [
"MIT"
] | 7 | 2018-12-27T11:06:21.000Z | 2021-09-16T03:07:20.000Z | Class1/07-00 Simple_test_on_Keras/DataGenerate.py | vvchenvv/Self_Driving_Tutorial | 649fddeb1371aa2a02ed49e5dbb8204119b0a3c1 | [
"MIT"
] | null | null | null | Class1/07-00 Simple_test_on_Keras/DataGenerate.py | vvchenvv/Self_Driving_Tutorial | 649fddeb1371aa2a02ed49e5dbb8204119b0a3c1 | [
"MIT"
] | 8 | 2019-02-22T22:20:56.000Z | 2021-12-16T06:04:45.000Z | import pickle
import matplotlib.pyplot as plt
import numpy as np
class DataGenerate():
def __init__(self,path,mode):
# WAITING FOR CODE PACKAGE TO SYNC UP
with open(path, mode) as f:
self.data = pickle.load(f)
self.X_train, self.y_train = self.data['features'], self.data['labels... | 37.77193 | 108 | 0.618672 | 311 | 2,153 | 4.090032 | 0.353698 | 0.031447 | 0.039308 | 0.022013 | 0.168239 | 0.143082 | 0.051887 | 0.051887 | 0.051887 | 0 | 0 | 0.010533 | 0.250348 | 2,153 | 56 | 109 | 38.446429 | 0.777571 | 0.035764 | 0 | 0.046512 | 1 | 0 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.069767 | 0 | 0.139535 | 0.069767 | 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 |
59b7409343bcbbd75eb40a50c9155513ebd1211e | 297 | py | Python | example_lambda.py | sidh261805/python_examples | 7ea5d34b7a27e8b85b39c8fa4ce21d36309b7de3 | [
"MIT"
] | null | null | null | example_lambda.py | sidh261805/python_examples | 7ea5d34b7a27e8b85b39c8fa4ce21d36309b7de3 | [
"MIT"
] | null | null | null | example_lambda.py | sidh261805/python_examples | 7ea5d34b7a27e8b85b39c8fa4ce21d36309b7de3 | [
"MIT"
] | null | null | null |
fun = lambda s : True if len(s) > 5 else False
print(fun("sidd"))
print(fun("sidddha"))
names = ['alka','sidd','lala']
for pos,name in enumerate(names):
print(f"{pos} ===> {name}")
string = "lala"
for pos,name in enumerate(names):
if(name == string):
print(f"{pos} ===> {name}") | 22.846154 | 46 | 0.585859 | 45 | 297 | 3.866667 | 0.488889 | 0.16092 | 0.114943 | 0.16092 | 0.344828 | 0.344828 | 0.344828 | 0 | 0 | 0 | 0 | 0.004132 | 0.185185 | 297 | 13 | 47 | 22.846154 | 0.714876 | 0 | 0 | 0.4 | 0 | 0 | 0.205387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 |
59ba1de61150f0ad0632887a548f3de136f11d89 | 826 | py | Python | example/random_forest.py | Valay/cifar-10 | 1610688a9d5e72091b70b72031677ff377ac17cb | [
"MIT"
] | 1 | 2017-06-01T05:21:08.000Z | 2017-06-01T05:21:08.000Z | example/random_forest.py | Valay/cifar-10 | 1610688a9d5e72091b70b72031677ff377ac17cb | [
"MIT"
] | null | null | null | example/random_forest.py | Valay/cifar-10 | 1610688a9d5e72091b70b72031677ff377ac17cb | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
from sklearn.ensemble import RandomForestClassifier
from sklearn import linear_model
# Generate a function
x = np.random.uniform(1,100,1000) # 1000 random numbers between 1 and 100
y = np.log(x) # function y is lograthim of x
y = y + np.random.normal(0,0.3,1000) ... | 23.6 | 74 | 0.713075 | 138 | 826 | 4.253623 | 0.427536 | 0.017036 | 0.017036 | 0.054514 | 0.064736 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067893 | 0.144068 | 826 | 34 | 75 | 24.294118 | 0.762376 | 0.365617 | 0 | 0 | 1 | 0 | 0.017647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.210526 | 0 | 0.210526 | 0 | 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 |
59c2a948117aa2b832617c9e147b8b6e78e87428 | 14,579 | py | Python | modules/savage/graphics/base.py | unimauro/eden | b739d334e6828d0db14b3790f2f5e2666fc83576 | [
"MIT"
] | 1 | 2016-12-22T09:31:22.000Z | 2016-12-22T09:31:22.000Z | modules/savage/graphics/base.py | andygimma/eden | 716d5e11ec0030493b582fa67d6f1c35de0af50d | [
"MIT"
] | null | null | null | modules/savage/graphics/base.py | andygimma/eden | 716d5e11ec0030493b582fa67d6f1c35de0af50d | [
"MIT"
] | 1 | 2020-04-29T13:58:31.000Z | 2020-04-29T13:58:31.000Z | from utils import ViewBox, attributesToSVG
from ..utils.struct import Vector as V, identity
from ..utils.dictionary import Dictionary
class Element (object):
def __init__ (self, **attr):
if attr.has_key ('name'):
self.name = attr['name']
else:
self.name = None
if at... | 28.755424 | 91 | 0.530352 | 1,550 | 14,579 | 4.907097 | 0.130968 | 0.026295 | 0.031554 | 0.02051 | 0.278464 | 0.23258 | 0.148567 | 0.137523 | 0.11767 | 0.084801 | 0 | 0.005807 | 0.350367 | 14,579 | 506 | 92 | 28.812253 | 0.797276 | 0.003773 | 0 | 0.265823 | 0 | 0 | 0.065112 | 0.006343 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025316 | null | null | 0.006329 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
59c4a7cc72e1bb34f0dbd1fb0905d19b514e9e16 | 1,963 | py | Python | example/fibre_matrix.py | Eacaen/composite-blade-design | 61437988c4b1a8008927e6365d4c8ba8ba94d162 | [
"CNRI-Python",
"OML"
] | 9 | 2018-06-01T07:12:25.000Z | 2022-03-18T08:43:09.000Z | example/fibre_matrix.py | furetosan/composite-blade-design | 61437988c4b1a8008927e6365d4c8ba8ba94d162 | [
"CNRI-Python",
"OML"
] | null | null | null | example/fibre_matrix.py | furetosan/composite-blade-design | 61437988c4b1a8008927e6365d4c8ba8ba94d162 | [
"CNRI-Python",
"OML"
] | 3 | 2019-10-16T01:42:41.000Z | 2021-01-14T14:35:27.000Z | import sys
sys.path.insert(0, "../source")
from laminate_Tools import *
import matplotlib.pyplot as plt
import matplotlib
if __name__ == "__main__":
#define lamina from fibre and matrix
f = Fibre(Ef1 = 74000e6,Ef2 = 74000e6 , Gf12 = 30800e6,vf21 = 0.2,density = 2.55e3)
m = Matrix(Em = 3300e6 , Gm = 1222e6 , vm = 0.3... | 28.042857 | 84 | 0.620479 | 354 | 1,963 | 3.276836 | 0.336158 | 0.043103 | 0.094828 | 0.062069 | 0.415517 | 0.415517 | 0.415517 | 0.415517 | 0.390517 | 0.390517 | 0 | 0.110769 | 0.172185 | 1,963 | 70 | 85 | 28.042857 | 0.603077 | 0.258278 | 0 | 0.205128 | 0 | 0 | 0.077191 | 0.052851 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.102564 | null | null | 0.282051 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
59c8a8fff78977171e33ac588daf4ec56bf061cc | 7,909 | py | Python | examples/modules/regression.py | snehankekre/streamlit-yellowbrick | fd94bf4554966390ee578831612350d613aa3de7 | [
"MIT"
] | 7 | 2021-06-08T10:24:19.000Z | 2022-02-02T11:57:56.000Z | examples/modules/regression.py | snehankekre/streamlit-yellowbrick | fd94bf4554966390ee578831612350d613aa3de7 | [
"MIT"
] | null | null | null | examples/modules/regression.py | snehankekre/streamlit-yellowbrick | fd94bf4554966390ee578831612350d613aa3de7 | [
"MIT"
] | null | null | null | import streamlit as st
from streamlit_yellowbrick import st_yellowbrick
def run_regression():
with st.sidebar.form(key="regression_form"):
regression_visualizers = st.multiselect(
"Choose Regression Visualizers",
[
"Residuals Plot",
"Prediction Erro... | 33.799145 | 97 | 0.6571 | 974 | 7,909 | 5.221766 | 0.200205 | 0.025954 | 0.022021 | 0.025954 | 0.69072 | 0.682855 | 0.677546 | 0.665356 | 0.659457 | 0.645694 | 0 | 0.007944 | 0.283727 | 7,909 | 233 | 98 | 33.944206 | 0.88985 | 0.067897 | 0 | 0.434783 | 0 | 0 | 0.077417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.152174 | 0 | 0.23913 | 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 |
59ce11dd75a07ff45e43570d5b6ee510a66ca940 | 4,830 | py | Python | server.py | tjeason/contactor | 7a36b9354865b44f161c36e120775fb73fd84ab9 | [
"Unlicense",
"MIT"
] | null | null | null | server.py | tjeason/contactor | 7a36b9354865b44f161c36e120775fb73fd84ab9 | [
"Unlicense",
"MIT"
] | null | null | null | server.py | tjeason/contactor | 7a36b9354865b44f161c36e120775fb73fd84ab9 | [
"Unlicense",
"MIT"
] | null | null | null | #!/usr/bin/env python
# File: server.py
import BaseHTTPServer
import cgi
import SimpleHTTPServer
import sys
import time
from mailgunner import MailGunHandler
from mandriller import MandrillHandler
from log import logColor
ServerClass = BaseHTTPServer.HTTPServer
# HTTP requests handler.
class ContactorRequestHandler(... | 42 | 171 | 0.587371 | 504 | 4,830 | 5.293651 | 0.28373 | 0.041979 | 0.028861 | 0.047226 | 0.337331 | 0.334333 | 0.296852 | 0.288606 | 0.255622 | 0.197901 | 0 | 0.006899 | 0.27971 | 4,830 | 114 | 172 | 42.368421 | 0.759989 | 0.074741 | 0 | 0.036585 | 0 | 0.036585 | 0.259641 | 0.007399 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.097561 | null | null | 0.158537 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
59d3a87dd0a848239dc988c1f90748b1191f4985 | 2,378 | py | Python | src/main/3.training_score.py | Peter-32/hand_study | c746d26dd6e3880f948b5f1c215058f6ff1cfd14 | [
"MIT"
] | null | null | null | src/main/3.training_score.py | Peter-32/hand_study | c746d26dd6e3880f948b5f1c215058f6ff1cfd14 | [
"MIT"
] | null | null | null | src/main/3.training_score.py | Peter-32/hand_study | c746d26dd6e3880f948b5f1c215058f6ff1cfd14 | [
"MIT"
] | null | null | null | # Add this project to the path
import os; import sys; currDir = os.path.dirname(os.path.realpath("__file__"))
rootDir = os.path.abspath(os.path.join(currDir, '..')); sys.path.insert(1, rootDir)
# Warnings
import warnings
warnings.filterwarnings("ignore")
# My modules
from features.build_features import *
# Public mo... | 32.575342 | 121 | 0.739697 | 339 | 2,378 | 4.943953 | 0.324484 | 0.0358 | 0.0179 | 0.0179 | 0.140811 | 0.125298 | 0.046539 | 0 | 0 | 0 | 0 | 0.012634 | 0.134567 | 2,378 | 72 | 122 | 33.027778 | 0.801749 | 0.404962 | 0 | 0 | 0 | 0 | 0.066235 | 0.020158 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.424242 | 0 | 0.424242 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
59d555bb59789a603db3402abc1a9cc992f384bf | 1,628 | py | Python | GamesAsArt_check_repetitions.py | mtavast/gpt-experiences | 013f4fc51734ad15bd7af4b58c82647caceb0cb0 | [
"Apache-2.0"
] | null | null | null | GamesAsArt_check_repetitions.py | mtavast/gpt-experiences | 013f4fc51734ad15bd7af4b58c82647caceb0cb0 | [
"Apache-2.0"
] | null | null | null | GamesAsArt_check_repetitions.py | mtavast/gpt-experiences | 013f4fc51734ad15bd7af4b58c82647caceb0cb0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Aug 30 10:45:11 2021
This script was used to change the filenames of already generated prompts, that had repetitions of over 10 character.
@author: tavastm1
"""
import re
import os
path = 'prompts/GamesAsArt/'
#file_start= 'thinking_game_' # ... | 30.148148 | 117 | 0.645577 | 228 | 1,628 | 4.539474 | 0.451754 | 0.046377 | 0.028986 | 0.021256 | 0.10628 | 0.07343 | 0.07343 | 0.07343 | 0.07343 | 0 | 0 | 0.0311 | 0.22973 | 1,628 | 54 | 118 | 30.148148 | 0.794258 | 0.297912 | 0 | 0.060606 | 1 | 0 | 0.104317 | 0.055755 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.060606 | 0 | 0.090909 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
59e6830a8bc8093fbe7ea49095e567ce517f7b3b | 3,482 | py | Python | tests/utilities/simnode_ssh.py | foobug/suzieq | c5927616a0e1a1fd9283f2a3eeb120d24ff0f2b5 | [
"Apache-2.0"
] | null | null | null | tests/utilities/simnode_ssh.py | foobug/suzieq | c5927616a0e1a1fd9283f2a3eeb120d24ff0f2b5 | [
"Apache-2.0"
] | null | null | null | tests/utilities/simnode_ssh.py | foobug/suzieq | c5927616a0e1a1fd9283f2a3eeb120d24ff0f2b5 | [
"Apache-2.0"
] | null | null | null | import asyncio
import asyncssh
import sys
import os
import crypt
from importlib.util import find_spec
class MySSHServerSession(asyncssh.SSHServerSession):
def __init__(self):
self._input = ''
self._data = None
self.devtype = 'iosxr'
self.run_as_shell = False
self.prompt = '... | 29.508475 | 79 | 0.61143 | 428 | 3,482 | 4.778037 | 0.331776 | 0.031296 | 0.022005 | 0.03423 | 0.129095 | 0.06846 | 0.046944 | 0.046944 | 0 | 0 | 0 | 0.003964 | 0.275416 | 3,482 | 117 | 80 | 29.760684 | 0.806579 | 0.071511 | 0 | 0.08046 | 0 | 0 | 0.137029 | 0.05886 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0.068966 | 0.068966 | 0.034483 | 0.356322 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
59e728ce6a4f98f17922cd473a73ef11c8fe05a6 | 1,188 | py | Python | fantasy_machine/stats/stats.py | radspork/lou-machine | 4c75c23edc8105dc977167ab4dfeeaecb785a8e1 | [
"MIT"
] | 2 | 2019-03-19T16:49:06.000Z | 2019-03-19T16:51:54.000Z | fantasy_machine/stats/stats.py | radspork/lou-machine | 4c75c23edc8105dc977167ab4dfeeaecb785a8e1 | [
"MIT"
] | null | null | null | fantasy_machine/stats/stats.py | radspork/lou-machine | 4c75c23edc8105dc977167ab4dfeeaecb785a8e1 | [
"MIT"
] | 1 | 2021-02-25T18:43:06.000Z | 2021-02-25T18:43:06.000Z | import pandas as pd
from fantasy_machine import config
import sqlite3
from .stat_metrics import mlb_stat_metrics, nfl_stat_metrics, f_scoring
class metric_calculator(object):
def __init__(self, data, stat_metrics, ):
self.mts = stat_metrics(data)
self.fs = f_scoring(data)
self.metric_fxns ... | 39.6 | 125 | 0.68771 | 158 | 1,188 | 4.924051 | 0.398734 | 0.089974 | 0.071979 | 0.056555 | 0.133676 | 0.133676 | 0.133676 | 0.133676 | 0.133676 | 0.133676 | 0 | 0.002176 | 0.226431 | 1,188 | 30 | 126 | 39.6 | 0.844396 | 0.097643 | 0 | 0.181818 | 0 | 0 | 0.037987 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
59ea4fe785ebb85e175d0e253ceda6d7924056f8 | 385 | py | Python | jetbull/cloud_ml/_http.py | icoxfog417/jetbull | 41d726fa077eaf1634071f1a8bb8395e7a528f40 | [
"MIT"
] | null | null | null | jetbull/cloud_ml/_http.py | icoxfog417/jetbull | 41d726fa077eaf1634071f1a8bb8395e7a528f40 | [
"MIT"
] | null | null | null | jetbull/cloud_ml/_http.py | icoxfog417/jetbull | 41d726fa077eaf1634071f1a8bb8395e7a528f40 | [
"MIT"
] | null | null | null | from google.cloud import _http
from jetbull.cloud_ml import __version__
_CLIENT_INFO = _http.CLIENT_INFO_TEMPLATE.format(__version__)
class Connection(_http.JSONConnection):
API_BASE_URL = "https://ml.googleapis.com"
API_VERSION = "v1"
API_URL_TEMPLATE = "{api_base_url}/{api_version}{path}"
_EXTRA_H... | 25.666667 | 61 | 0.745455 | 50 | 385 | 5.12 | 0.52 | 0.15625 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003077 | 0.155844 | 385 | 14 | 62 | 27.5 | 0.784615 | 0 | 0 | 0 | 0 | 0 | 0.158442 | 0.088312 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ab7a65ded320ca537649b7184b500b1d5c5962d1 | 987 | py | Python | mp/remote.py | kerryeon/mp_python | 1aca4069bc635959fa4f3ce94507c55226219039 | [
"MIT"
] | 1 | 2021-04-08T01:59:11.000Z | 2021-04-08T01:59:11.000Z | mp/remote.py | kerryeon/mp_python | 1aca4069bc635959fa4f3ce94507c55226219039 | [
"MIT"
] | null | null | null | mp/remote.py | kerryeon/mp_python | 1aca4069bc635959fa4f3ce94507c55226219039 | [
"MIT"
] | null | null | null | from argparse import ArgumentParser
from getpass import getpass
from mp import RemoteInterpreter
from paramiko.ssh_exception import AuthenticationException
if __name__ == '__main__':
parser = ArgumentParser(prog='mp', usage='%(prog)s [hostname] [user] [-p port] [-d dir_process] [-i interpreter]')
parser.add_... | 32.9 | 118 | 0.682877 | 108 | 987 | 6.074074 | 0.453704 | 0.068598 | 0.129573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002491 | 0.186424 | 987 | 29 | 119 | 34.034483 | 0.814446 | 0.021277 | 0 | 0.086957 | 0 | 0.043478 | 0.169263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.086957 | 0.173913 | 0 | 0.173913 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ab89121649f02502afb45f46a2c3ba9991e8c71f | 1,297 | py | Python | examples/reg_overlap/isa.py | cdonovick/peak-examples | 9d0799f1afafc801619a5cb15acd69603c49bb17 | [
"MIT"
] | null | null | null | examples/reg_overlap/isa.py | cdonovick/peak-examples | 9d0799f1afafc801619a5cb15acd69603c49bb17 | [
"MIT"
] | null | null | null | examples/reg_overlap/isa.py | cdonovick/peak-examples | 9d0799f1afafc801619a5cb15acd69603c49bb17 | [
"MIT"
] | null | null | null | from types import SimpleNamespace
from hwtypes.adt import Enum, Product, Sum, TaggedUnion
from peak import family_closure
from . import family
@family_closure(family)
def ISA_fc(family):
Bit = family.Bit
BitVector = family.BitVector
Idx = family.Idx
Word = family.Word
DWord = family.DWord
... | 17.767123 | 55 | 0.545104 | 163 | 1,297 | 4.319018 | 0.343558 | 0.045455 | 0.036932 | 0.051136 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082938 | 0.349268 | 1,297 | 72 | 56 | 18.013889 | 0.751185 | 0 | 0 | 0.226415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.075472 | 0 | 0.641509 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ab8a4c4459df1270c8947a5c0b47457c6d65f22f | 574 | py | Python | app/__init__.py | CosminTraistaru/CandImiCumpar | e84e46d5b7968e1d2a90efe13877b9672a90c693 | [
"Apache-2.0"
] | null | null | null | app/__init__.py | CosminTraistaru/CandImiCumpar | e84e46d5b7968e1d2a90efe13877b9672a90c693 | [
"Apache-2.0"
] | null | null | null | app/__init__.py | CosminTraistaru/CandImiCumpar | e84e46d5b7968e1d2a90efe13877b9672a90c693 | [
"Apache-2.0"
] | null | null | null | #!flask/bin/python
import flask.ext.whooshalchemy
from flask import Flask
from flask_bootstrap import Bootstrap
from flask_appconfig import AppConfig
from flask.ext.sqlalchemy import SQLAlchemy
from app.config import SQLALCHEMY_DATABASE_URI, SECRET_KEY, WHOOSH_BASE
app = Flask(__name__)
AppConfig(app)
Bootstrap(a... | 24.956522 | 71 | 0.8223 | 81 | 574 | 5.592593 | 0.296296 | 0.07947 | 0.139073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095819 | 574 | 23 | 72 | 24.956522 | 0.872832 | 0.029617 | 0 | 0 | 0 | 0 | 0.078995 | 0.041293 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.466667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ab8ab0bee7bdc9677450360c5d6c60f646709da6 | 705 | py | Python | taiga/projects/migrations/0048_auto_20160615_1508.py | threefoldtech/Threefold-Circles | cbc433796b25cf7af9a295af65d665a4a279e2d6 | [
"Apache-2.0"
] | 1 | 2017-05-29T19:01:06.000Z | 2017-05-29T19:01:06.000Z | docker-images/taigav2/taiga-back/taiga/projects/migrations/0048_auto_20160615_1508.py | mattcongy/itshop | 6be025a9eaa7fe7f495b5777d1f0e5a3184121c9 | [
"MIT"
] | 12 | 2019-11-25T14:08:32.000Z | 2021-06-24T10:35:51.000Z | taiga/projects/migrations/0048_auto_20160615_1508.py | threefoldtech/Threefold-Circles | cbc433796b25cf7af9a295af65d665a4a279e2d6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-06-15 15:08
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projects', '0047_auto_20160614_1201'),
]
operations = [
migrations.AlterMode... | 28.2 | 132 | 0.624113 | 70 | 705 | 6.1 | 0.7 | 0.077283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06968 | 0.246809 | 705 | 24 | 133 | 29.375 | 0.734463 | 0.095035 | 0 | 0.117647 | 1 | 0 | 0.247244 | 0.03622 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 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 |
ab8db087d9ddeb26d309ab04fcad6ec3a0cb3b25 | 2,727 | py | Python | mysql_operation.py | GodXuxilie/DatabaseSystem | 81a9aaaef3c1d9fc66c8189d6fda08879b2142ae | [
"Apache-2.0"
] | 3 | 2020-06-14T13:35:00.000Z | 2021-12-14T07:28:18.000Z | mysql_operation.py | GodXuxilie/DatabaseSystem | 81a9aaaef3c1d9fc66c8189d6fda08879b2142ae | [
"Apache-2.0"
] | null | null | null | mysql_operation.py | GodXuxilie/DatabaseSystem | 81a9aaaef3c1d9fc66c8189d6fda08879b2142ae | [
"Apache-2.0"
] | 2 | 2020-06-10T02:25:56.000Z | 2020-06-14T13:35:08.000Z | import pymysql
import pandas as pd
import pickle
import numpy as np
import databaseInfo as db
databaseName = 'root'
databasePasswd = 'root'
def user_info_query(user_id):
conn = pymysql.connect(host=db.databaseAddress, user=db.databaseLoginName, password=db.databasePasswd, database=db.databaseName)
cur = conn.... | 37.875 | 134 | 0.690502 | 384 | 2,727 | 4.669271 | 0.268229 | 0.055215 | 0.040156 | 0.033463 | 0.26715 | 0.208031 | 0.189626 | 0.151701 | 0.151701 | 0.151701 | 0 | 0.016577 | 0.181518 | 2,727 | 71 | 135 | 38.408451 | 0.786738 | 0.113678 | 0 | 0.153846 | 0 | 0 | 0.05618 | 0.009571 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.057692 | 0.096154 | 0 | 0.173077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ab9534a1232da7a01e676ac22ad67cf985bbd5aa | 516 | py | Python | autumn/core/inputs/covid_mmr/fetch.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | autumn/core/inputs/covid_mmr/fetch.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | autumn/core/inputs/covid_mmr/fetch.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-10-22T04:47:34.000Z | 2019-10-22T04:47:34.000Z | """
This file download the latest data for Myanmar
"""
import pandas as pd
from autumn.settings import INPUT_DATA_PATH
from pathlib import Path
INPUT_DATA_PATH = Path(INPUT_DATA_PATH)
COVID_MMR_TESTING_CSV = INPUT_DATA_PATH / "covid_mmr" / "cases.csv"
URL = "https://docs.google.com/spreadsheets/d/1VeUof9_-s0bsndo8t... | 25.8 | 157 | 0.79845 | 77 | 516 | 5.038961 | 0.532468 | 0.092784 | 0.134021 | 0.087629 | 0.108247 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030435 | 0.108527 | 516 | 19 | 158 | 27.157895 | 0.813043 | 0.089147 | 0 | 0 | 0 | 0.111111 | 0.361472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ab9768cd218f1e5fdd127281d3d83eee2afd201b | 746 | py | Python | lib/cache.py | labriny/Sublime-Text--cdnjs | 43d6c51d1c57a23451a50e2ce83b1c57e36b43a2 | [
"Unlicense"
] | 23 | 2015-02-09T16:03:41.000Z | 2021-07-25T21:06:07.000Z | lib/cache.py | labriny/Sublime-Text--cdnjs | 43d6c51d1c57a23451a50e2ce83b1c57e36b43a2 | [
"Unlicense"
] | 6 | 2015-02-25T19:41:22.000Z | 2018-11-11T00:44:57.000Z | lib/cache.py | labriny/Sublime-Text--cdnjs | 43d6c51d1c57a23451a50e2ce83b1c57e36b43a2 | [
"Unlicense"
] | 7 | 2015-02-03T11:11:53.000Z | 2019-07-16T18:34:44.000Z | import json
import os
import time
def get_cache_path():
home = os.path.expanduser("~")
return home + '/package_list.cdncache'
def time_has_passed(last_time, time_now):
time_is_blank = time_now is None or last_time is None
if time_is_blank:
return time_is_blank
time_difference = int(time.t... | 24.064516 | 57 | 0.691689 | 110 | 746 | 4.418182 | 0.345455 | 0.057613 | 0.106996 | 0.061728 | 0.156379 | 0.156379 | 0.156379 | 0 | 0 | 0 | 0 | 0 | 0.209115 | 746 | 31 | 58 | 24.064516 | 0.823729 | 0 | 0 | 0 | 0 | 0 | 0.033467 | 0.029451 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0.173913 | 0.130435 | 0 | 0.478261 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ab9f7176f7ce69768399448f7073e8defee9b55c | 860 | py | Python | extraResources/electron-backend/routes/delete_toa_entry.py | vilaj46/ad1-ad2-briefs | 8bd5de28315a0525b28adb4cf8f1a7d22eefef25 | [
"MIT"
] | null | null | null | extraResources/electron-backend/routes/delete_toa_entry.py | vilaj46/ad1-ad2-briefs | 8bd5de28315a0525b28adb4cf8f1a7d22eefef25 | [
"MIT"
] | null | null | null | extraResources/electron-backend/routes/delete_toa_entry.py | vilaj46/ad1-ad2-briefs | 8bd5de28315a0525b28adb4cf8f1a7d22eefef25 | [
"MIT"
] | null | null | null | from classes.Table_Of_Authorities import get_my_toa
def delete_toa_entry(IDNumber):
TABLE_OF_AUTHORITIES = get_my_toa()
old_entries = TABLE_OF_AUTHORITIES.data['entries']
index = TABLE_OF_AUTHORITIES.find_index_with_IDNumber(IDNumber)
if str(index) != 'False':
new_entries = old_entries[0:inde... | 35.833333 | 76 | 0.7 | 103 | 860 | 5.398058 | 0.38835 | 0.125899 | 0.323741 | 0.134892 | 0.25 | 0.194245 | 0.118705 | 0 | 0 | 0 | 0 | 0.007375 | 0.211628 | 860 | 23 | 77 | 37.391304 | 0.812684 | 0 | 0 | 0.105263 | 0 | 0 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.210526 | 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 |
aba5cf33889379a57b592b6dfc02e813d9d712f2 | 618 | py | Python | src/models/address.py | uinvent/flask_boilerplate | a2b703eeab0e902ab39629226d68933d129d779a | [
"MIT"
] | 3 | 2020-03-30T15:11:42.000Z | 2021-12-30T10:05:15.000Z | src/models/address.py | uinvent/flask-boilerplate | a2b703eeab0e902ab39629226d68933d129d779a | [
"MIT"
] | null | null | null | src/models/address.py | uinvent/flask-boilerplate | a2b703eeab0e902ab39629226d68933d129d779a | [
"MIT"
] | null | null | null | """
Address Model
"""
from sqlalchemy import Column, Integer, String, ForeignKey
from sqlalchemy.orm import relationship
from .base import BaseModel
class AddressModel(BaseModel):
__tablename__ = 'address'
id = Column(Integer, primary_key=True, nullable=False)
line_1 = Column(String(300), nullable=False)
... | 32.526316 | 63 | 0.728155 | 75 | 618 | 5.88 | 0.453333 | 0.136054 | 0.077098 | 0.104308 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030534 | 0.152104 | 618 | 18 | 64 | 34.333333 | 0.811069 | 0.021036 | 0 | 0 | 0 | 0 | 0.045226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 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 |
abb66c13dee75e36f9da064a2a67b1078d99e59d | 1,368 | py | Python | modules/python/test/test_misc.py | liqingshan/opencv | 5e68f35500a859838ab8688bd3487cf9edece3f7 | [
"BSD-3-Clause"
] | 17 | 2016-03-16T08:48:30.000Z | 2022-02-21T12:09:28.000Z | modules/python/test/test_misc.py | nurisis/opencv | 4378b4d03d8415a132b6675883957243f95d75ee | [
"BSD-3-Clause"
] | 5 | 2017-10-15T15:44:47.000Z | 2022-02-17T11:31:32.000Z | modules/python/test/test_misc.py | nurisis/opencv | 4378b4d03d8415a132b6675883957243f95d75ee | [
"BSD-3-Clause"
] | 25 | 2018-09-26T08:51:13.000Z | 2022-02-24T13:43:58.000Z | #!/usr/bin/env python
from __future__ import print_function
import numpy as np
import cv2 as cv
from tests_common import NewOpenCVTests
class Bindings(NewOpenCVTests):
def test_inheritance(self):
bm = cv.StereoBM_create()
bm.getPreFilterCap() # from StereoBM
bm.getBlockSize() # from Ster... | 26.823529 | 76 | 0.604532 | 160 | 1,368 | 4.99375 | 0.4125 | 0.075094 | 0.041302 | 0.05632 | 0.284105 | 0.284105 | 0.284105 | 0.284105 | 0.284105 | 0.284105 | 0 | 0.00627 | 0.300439 | 1,368 | 50 | 77 | 27.36 | 0.828631 | 0.122807 | 0 | 0.405405 | 0 | 0 | 0.029387 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 1 | 0.081081 | false | 0.081081 | 0.108108 | 0 | 0.216216 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
abb9144f4d28f92434892ead87fa38e17eb6a1e1 | 1,902 | py | Python | app/star_class.py | MickeyPvX/nms_name_gen | eec7b82c6b150e19393958d8271c833dcd8522c5 | [
"MIT"
] | 1 | 2021-09-23T18:23:30.000Z | 2021-09-23T18:23:30.000Z | app/star_class.py | MickeyPvX/nms_name_gen | eec7b82c6b150e19393958d8271c833dcd8522c5 | [
"MIT"
] | null | null | null | app/star_class.py | MickeyPvX/nms_name_gen | eec7b82c6b150e19393958d8271c833dcd8522c5 | [
"MIT"
] | null | null | null | from .models.type_validator import TypeValidator
from .models.typed_list import TypedList
from utils.star_class_map import spectral_class_map, oddity_map
from config import NMSConfig
class StarClass(object):
config = TypeValidator(dict)
spectral_class_str = TypeValidator(str)
spectral_class = TypeValidat... | 39.625 | 99 | 0.643533 | 241 | 1,902 | 4.879668 | 0.302905 | 0.210034 | 0.159014 | 0.119048 | 0.153061 | 0.057823 | 0.057823 | 0 | 0 | 0 | 0 | 0.011963 | 0.252892 | 1,902 | 47 | 100 | 40.468085 | 0.815623 | 0 | 0 | 0 | 0 | 0 | 0.138801 | 0.063617 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.342105 | 0.026316 | 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 |
abc364f90c965b3e93febffc9d6496e4b434eccc | 3,256 | py | Python | extensions/exclusive/exclusive.py | wowdd1/xlinkbook | f3de5a80c296c35e3012c3a1184b452d6fac1fd6 | [
"MIT"
] | 27 | 2016-07-11T21:16:41.000Z | 2021-07-23T23:10:42.000Z | extensions/exclusive/exclusive.py | honorpeter/xlinkBook | e6646603b06eb5ffa9d8e5f4980599b183fe427a | [
"MIT"
] | 1 | 2017-06-29T09:24:51.000Z | 2018-04-29T02:28:39.000Z | extensions/exclusive/exclusive.py | honorpeter/xlinkBook | e6646603b06eb5ffa9d8e5f4980599b183fe427a | [
"MIT"
] | 18 | 2016-10-21T08:19:51.000Z | 2020-11-04T05:09:11.000Z | #!/usr/bin/env python
from extensions.bas_extension import BaseExtension
from config import Config
from utils import Utils
from record import Record
from knowledgegraph import KnowledgeGraph
import os
class Exclusive(BaseExtension):
def __init__(self):
BaseExtension.__init__(self)
self.utils = Ut... | 44 | 161 | 0.560811 | 339 | 3,256 | 5.268437 | 0.286136 | 0.053751 | 0.035834 | 0.023516 | 0.335946 | 0.287794 | 0.237402 | 0.237402 | 0.237402 | 0.199328 | 0 | 0.006829 | 0.280405 | 3,256 | 73 | 162 | 44.60274 | 0.755442 | 0.119472 | 0 | 0.240741 | 0 | 0 | 0.104232 | 0.008744 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
abcdc0c693374e7df11b7e7d600717c03f6505a5 | 16,072 | py | Python | hard-gists/8577232/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/8577232/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/8577232/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | from Queue import Queue # Threadsafe queue for threads to use
from collections import Counter # To count stuff for us
import datetime # Because datetime printing is hard
from pprint import pprint
import time # Should be obvious
import subprocess # Used to s... | 36.27991 | 96 | 0.583001 | 2,024 | 16,072 | 4.461462 | 0.20504 | 0.023034 | 0.032115 | 0.010631 | 0.285161 | 0.238427 | 0.185936 | 0.146512 | 0.120377 | 0.081395 | 0 | 0.01376 | 0.303634 | 16,072 | 442 | 97 | 36.361991 | 0.793066 | 0.210366 | 0 | 0.17037 | 0 | 0 | 0.161825 | 0.00746 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037037 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
abd654bab4bbd8c6b22feb2b231345d3a40ac56b | 1,431 | py | Python | TaxiBJ/src/data/utils.py | panzheyi/MF-STN | 70d875d6b287a398b783e74031bb8237d44e5f8c | [
"MIT"
] | 19 | 2019-10-28T09:41:51.000Z | 2022-03-09T02:37:01.000Z | TaxiNYC/src/data/utils.py | yoshall/MF-STN | 70d875d6b287a398b783e74031bb8237d44e5f8c | [
"MIT"
] | null | null | null | TaxiNYC/src/data/utils.py | yoshall/MF-STN | 70d875d6b287a398b783e74031bb8237d44e5f8c | [
"MIT"
] | 8 | 2020-11-20T09:02:30.000Z | 2021-08-12T05:50:54.000Z | import os
import h5py
import numpy as np
import pandas as pd
import multiprocessing as mp
class Scaler:
def __init__(self, mean=None, std=None):
self.mean = mean
self.std = std
def fit(self, data):
self.mean = np.mean(data)
self.std = np.std(data)
def set_mean(self, mean):
self.mean = me... | 21.358209 | 49 | 0.640112 | 231 | 1,431 | 3.887446 | 0.34632 | 0.062361 | 0.020045 | 0.023385 | 0.13029 | 0.113586 | 0.044543 | 0 | 0 | 0 | 0 | 0.010714 | 0.217331 | 1,431 | 67 | 50 | 21.358209 | 0.791071 | 0 | 0 | 0.148148 | 0 | 0 | 0.008053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203704 | false | 0 | 0.092593 | 0.037037 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
abdfccd801f100b899d0d8d608bdf3ecafaa7316 | 3,987 | py | Python | mmdet/models/detectors/template_detector.py | sleichu2/template_detection_mmdet | 2758a27cb65bc5b141fd425776b2e7edc51551c6 | [
"Apache-2.0"
] | 2 | 2020-02-19T03:18:41.000Z | 2020-08-05T07:34:13.000Z | mmdet/models/detectors/template_detector.py | sleichu2/template_detection_mmdet | 2758a27cb65bc5b141fd425776b2e7edc51551c6 | [
"Apache-2.0"
] | null | null | null | mmdet/models/detectors/template_detector.py | sleichu2/template_detection_mmdet | 2758a27cb65bc5b141fd425776b2e7edc51551c6 | [
"Apache-2.0"
] | null | null | null | from ..registry import DETECTORS
from .single_stage import SingleStageDetector
from mmdet.core import bbox2result
import torch
@DETECTORS.register_module
class TemplateDetector(SingleStageDetector):
def __init__(self,
backbone,
neck,
bbox_head,
tr... | 40.683673 | 108 | 0.572862 | 474 | 3,987 | 4.556962 | 0.28481 | 0.058333 | 0.055556 | 0.091667 | 0.248611 | 0.214352 | 0.138889 | 0.047222 | 0.047222 | 0.047222 | 0 | 0.004568 | 0.341109 | 3,987 | 97 | 109 | 41.103093 | 0.817663 | 0.176574 | 0 | 0.166667 | 0 | 0 | 0.034439 | 0 | 0 | 0 | 0 | 0.010309 | 0.027778 | 1 | 0.083333 | false | 0 | 0.055556 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
abe5940a85d46be8dabc3af8d61091b32f45a374 | 21,017 | py | Python | generate_wavelets.py | rosydavis/rdavis_msee_project_csun2017 | d23159d19b5b3ea47ddd4a0f9684477346560fc2 | [
"MIT"
] | 1 | 2018-07-06T17:06:05.000Z | 2018-07-06T17:06:05.000Z | generate_wavelets.py | rosydavis/rdavis_msee_project_csun2017 | d23159d19b5b3ea47ddd4a0f9684477346560fc2 | [
"MIT"
] | 19 | 2020-01-28T21:46:45.000Z | 2022-02-09T23:41:05.000Z | generate_wavelets.py | rosydavis/rdavis_msee_project_csun2017 | d23159d19b5b3ea47ddd4a0f9684477346560fc2 | [
"MIT"
] | null | null | null | # File: generate_wavelets.py
# Author: Rosy Davis, rosydavis@ieee.org
# Last modified: 2017 Nov. 28
#
# A utility script to generate DWT image files for the image files requested.
# Parse passed-in arguments:
import argparse
# Other imports
import os
import numpy as np # For math and analysis
imp... | 35.56176 | 121 | 0.694676 | 3,167 | 21,017 | 4.454373 | 0.190717 | 0.031757 | 0.02155 | 0.023818 | 0.35415 | 0.316439 | 0.265755 | 0.246686 | 0.223577 | 0.208691 | 0 | 0.011793 | 0.180996 | 21,017 | 590 | 122 | 35.622034 | 0.807762 | 0.257411 | 0 | 0.2267 | 1 | 0.002519 | 0.192429 | 0.029326 | 0 | 0 | 0 | 0 | 0.005038 | 1 | 0.017632 | false | 0 | 0.040302 | 0 | 0.073048 | 0.073048 | 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 |
abe609090b4e55239e7644c865e0ddf0c4077465 | 1,849 | py | Python | desafio087.py | marcelocmedeiros/RevisaoPython | 04c602bf17e8ab37c9660337a8f8497eb498e10d | [
"MIT"
] | null | null | null | desafio087.py | marcelocmedeiros/RevisaoPython | 04c602bf17e8ab37c9660337a8f8497eb498e10d | [
"MIT"
] | null | null | null | desafio087.py | marcelocmedeiros/RevisaoPython | 04c602bf17e8ab37c9660337a8f8497eb498e10d | [
"MIT"
] | null | null | null | # Marcelo Campos de Medeiros
# ADS UNIFIP
# REVISÃO DE PYTHON
# AULA 18 Variáveis Composta Listas 2° parte---> GUSTAVO GUANABARA
'''
A primore o desafio 86 e mostre:
1- Soma de todos os valores pares digitados
2- Soma de todos os valores terceira coluna
3- O maior valor da segunda linha
'''
print('='*30)
p... | 36.98 | 94 | 0.639264 | 313 | 1,849 | 3.779553 | 0.338658 | 0.016906 | 0.020287 | 0.020287 | 0.240913 | 0.207101 | 0.098901 | 0.007608 | 0 | 0 | 0 | 0.047283 | 0.23364 | 1,849 | 49 | 95 | 37.734694 | 0.786874 | 0.501352 | 0 | 0.461538 | 0 | 0 | 0.242222 | 0 | 0 | 0 | 0 | 0.040816 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.384615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
abe894db6d085651e79078df08a1e288e9897fc6 | 2,303 | py | Python | NUMBER TO WORDS.py | Vedakeerthi/Python-programs | 91f3f21211bfaba576d1ce5981166e356fc36b38 | [
"MIT"
] | null | null | null | NUMBER TO WORDS.py | Vedakeerthi/Python-programs | 91f3f21211bfaba576d1ce5981166e356fc36b38 | [
"MIT"
] | null | null | null | NUMBER TO WORDS.py | Vedakeerthi/Python-programs | 91f3f21211bfaba576d1ce5981166e356fc36b38 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[1]:
# Installation of module
pip install num2words
# In[3]:
#converting number to words using module
from num2words import *
a = int(input("ENTER A NUMBER : "))
b = num2words(a,lang="en")
print(b.upper())
# In[12]:
#converting number to words using function
def num_wo... | 26.471264 | 130 | 0.442901 | 299 | 2,303 | 3.32107 | 0.257525 | 0.096677 | 0.036254 | 0.033233 | 0.375629 | 0.278953 | 0.176234 | 0.176234 | 0.176234 | 0.155086 | 0 | 0.031618 | 0.409466 | 2,303 | 86 | 131 | 26.77907 | 0.698529 | 0.06904 | 0 | 0.396825 | 0 | 0 | 0.162529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015873 | null | null | 0.079365 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
abe968b7333bddeca8d067c451e7e7219a14a55d | 9,366 | py | Python | GUI/Generic/Document.py | gcewing/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 9 | 2019-07-15T19:03:27.000Z | 2021-11-24T19:50:02.000Z | GUI/Generic/Document.py | mnabeelp/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 3 | 2019-09-11T13:22:10.000Z | 2020-08-19T20:13:00.000Z | GUI/Generic/Document.py | mnabeelp/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 4 | 2020-02-23T16:50:06.000Z | 2022-02-10T07:15:35.000Z | #
# Python GUI - Documents - Generic
#
import os, tempfile
from GUI import export
from GUI.Alerts import confirm, confirm_or_cancel
from GUI.Properties import overridable_property
from GUI import Model
from GUI import MessageHandler
from GUI.Files import FileRef, DirRef
from GUI.FileDialogs import request_new_file
fr... | 28.642202 | 85 | 0.720905 | 1,416 | 9,366 | 4.610169 | 0.189266 | 0.035386 | 0.02068 | 0.010417 | 0.178309 | 0.132353 | 0.090993 | 0.052696 | 0.052696 | 0.052696 | 0 | 0.001452 | 0.190903 | 9,366 | 326 | 86 | 28.730061 | 0.859989 | 0.071429 | 0 | 0.159204 | 0 | 0 | 0.077647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00995 | 0.054726 | null | null | 0.004975 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
abe98eb32e656e00f0028955e36cde21c14eb6b4 | 1,296 | py | Python | aimmspack/_lib/config.py | ro-56/aimmspack | c259d1e8b047cbaae250718e7bf329abcc1219e1 | [
"MIT"
] | null | null | null | aimmspack/_lib/config.py | ro-56/aimmspack | c259d1e8b047cbaae250718e7bf329abcc1219e1 | [
"MIT"
] | 5 | 2021-07-27T22:44:27.000Z | 2021-08-20T20:48:33.000Z | aimmspack/_lib/config.py | ro-56/aimmspack | c259d1e8b047cbaae250718e7bf329abcc1219e1 | [
"MIT"
] | null | null | null | from typing import Optional
from pathlib import Path
from pydantic import BaseModel
class AppConfig(BaseModel):
name: str
version: Optional[str] = ''
infix: Optional[str] = ''
def get_export_name(self):
"""Returns the final compiled app name with the .aimmspack extension"""
appName: s... | 29.454545 | 79 | 0.637346 | 161 | 1,296 | 5.043478 | 0.31677 | 0.036946 | 0.055419 | 0.078818 | 0.108374 | 0.083744 | 0.083744 | 0.083744 | 0 | 0 | 0 | 0.006154 | 0.247685 | 1,296 | 43 | 80 | 30.139535 | 0.826667 | 0.18287 | 0 | 0.066667 | 0 | 0 | 0.181118 | 0.121387 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.1 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
abf2a6cf9e3cede3eec9bd9c1a79523732a17a21 | 1,804 | py | Python | server.py | AlfredBroda/WebSocketSerial | 4a14b413fbae22754fad3ccc53052712525205f2 | [
"Apache-2.0"
] | null | null | null | server.py | AlfredBroda/WebSocketSerial | 4a14b413fbae22754fad3ccc53052712525205f2 | [
"Apache-2.0"
] | null | null | null | server.py | AlfredBroda/WebSocketSerial | 4a14b413fbae22754fad3ccc53052712525205f2 | [
"Apache-2.0"
] | null | null | null | import tornado.httpserver
import tornado.ioloop
import tornado.web
import tornado.websocket
import tornado.gen
from tornado.options import define, options
import multiprocessing
import serialworker
import json
define("port", default=8080, help="run on the given port", type=int)
clients = []
input_queue = multiproces... | 27.753846 | 83 | 0.699002 | 213 | 1,804 | 5.807512 | 0.455399 | 0.052546 | 0.04042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004912 | 0.210089 | 1,804 | 64 | 84 | 28.1875 | 0.863158 | 0.114191 | 0 | 0 | 0 | 0 | 0.077792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.183673 | null | null | 0.081633 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2800d87b6d9db4e1c7e6e922b9b240f15577b091 | 2,092 | py | Python | com/alipay/ams/api/response/pay/alipay_refund_response.py | simkemc/global-open-sdk-python | 408d19f6b9673cade967e167a686e25406a6c7d4 | [
"MIT"
] | 3 | 2021-07-09T07:40:13.000Z | 2022-03-16T09:13:27.000Z | com/alipay/ams/api/response/pay/alipay_refund_response.py | simkemc/global-open-sdk-python | 408d19f6b9673cade967e167a686e25406a6c7d4 | [
"MIT"
] | null | null | null | com/alipay/ams/api/response/pay/alipay_refund_response.py | simkemc/global-open-sdk-python | 408d19f6b9673cade967e167a686e25406a6c7d4 | [
"MIT"
] | 3 | 2020-06-18T03:12:35.000Z | 2022-01-25T08:55:23.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from com.alipay.ams.api.response.alipay_response import AlipayResponse
from com.alipay.ams.api.model.amount import Amount
class AlipayRefundResponse(AlipayResponse):
def __init__(self, rsp_body):
super(AlipayRefundResponse, self).__init__()
self.__re... | 33.206349 | 105 | 0.692639 | 237 | 2,092 | 5.616034 | 0.189873 | 0.112697 | 0.094666 | 0.126221 | 0.329076 | 0.160781 | 0 | 0 | 0 | 0 | 0 | 0.000622 | 0.231358 | 2,092 | 62 | 106 | 33.741935 | 0.827114 | 0.020076 | 0 | 0.125 | 0 | 0 | 0.082071 | 0.029311 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.041667 | 0.125 | 0.354167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
280649caa1fd988c71236c7b29643a82e16669b6 | 257 | py | Python | 05/D-Fibonacci.py | toratarou3153/python-learning | 4d3cd07f73baaa0ee537fb1896ef51c2897dc955 | [
"MIT"
] | 1 | 2021-03-22T04:31:14.000Z | 2021-03-22T04:31:14.000Z | 05/D-Fibonacci.py | toratarou3153/python-learning | 4d3cd07f73baaa0ee537fb1896ef51c2897dc955 | [
"MIT"
] | null | null | null | 05/D-Fibonacci.py | toratarou3153/python-learning | 4d3cd07f73baaa0ee537fb1896ef51c2897dc955 | [
"MIT"
] | null | null | null | def fibonacci(N :int)->int:
if N==1 or N==2:
return 1
else :
return fibonacci(N-1)+fibonacci(N-2)
def main():
# input
N = int(input())
# compute
# output
print(fibonacci(N))
if __name__ == '__main__':
main()
| 17.133333 | 44 | 0.533074 | 36 | 257 | 3.583333 | 0.444444 | 0.310078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02809 | 0.307393 | 257 | 14 | 45 | 18.357143 | 0.696629 | 0.077821 | 0 | 0 | 0 | 0 | 0.034335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0.1 | 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 |
f9eb05a55bf63a8e3412f305c0188ce757769811 | 228 | py | Python | math_fun.py | kyungjin96/algorithm | 7cdf4dbab9eb5d2e8260a9c97b4e89b27582a797 | [
"Apache-2.0"
] | null | null | null | math_fun.py | kyungjin96/algorithm | 7cdf4dbab9eb5d2e8260a9c97b4e89b27582a797 | [
"Apache-2.0"
] | null | null | null | math_fun.py | kyungjin96/algorithm | 7cdf4dbab9eb5d2e8260a9c97b4e89b27582a797 | [
"Apache-2.0"
] | null | null | null | import numpy as np
# laser = [0.1, 0.2, 0.3, 0.4, 0.5]
# laser_arr = np.array(laser)
# result = np.count_nonzero(laser_arr >= 0.2)
import math
radian = math.radians(90)
con_d = math.degrees(radian)
print(radian,':::',con_d) | 17.538462 | 45 | 0.657895 | 43 | 228 | 3.372093 | 0.55814 | 0.027586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072539 | 0.153509 | 228 | 13 | 46 | 17.538462 | 0.678756 | 0.460526 | 0 | 0 | 0 | 0 | 0.025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f9ef12ce1ccf99517b4ac6435732c753af78ab79 | 730 | py | Python | genetic algorithm/onepointcrossover.py | antonvs88/multiobj-guided-evac | 84d78ac29419011d7af45391f230f50e8cbe30f4 | [
"MIT"
] | 1 | 2021-09-28T05:33:22.000Z | 2021-09-28T05:33:22.000Z | genetic algorithm/onepointcrossover.py | antonvs88/multiobj-guided-evac | 84d78ac29419011d7af45391f230f50e8cbe30f4 | [
"MIT"
] | 1 | 2020-05-13T11:05:16.000Z | 2020-05-13T14:11:40.000Z | genetic algorithm/hexagon-shaped area/hidden genes genetic algorithm/onepointcrossover.py | antonvs88/optimal-guided-evacuation | ece2e12204bd41596173af5aacc0933acfd6b7c1 | [
"MIT"
] | null | null | null | import numpy as np
def onepointcrossover(exits1, cells1, exits2, cells2):
"""Apply a one point crossover on parents.
"""
n_guides = len(exits1)
crossover_point = np.round(n_guides/2)
newexits1 = []
newcells1 = []
newexits2 = []
newcells2 = []
for i in range(n_guides):
if i... | 26.071429 | 54 | 0.594521 | 80 | 730 | 5.3625 | 0.425 | 0.048951 | 0.125874 | 0.167832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05814 | 0.293151 | 730 | 27 | 55 | 27.037037 | 0.773256 | 0.053425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.15 | 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 |
f9f09545d871cb009ecefc9d05b3a5fcc1bacc59 | 408 | py | Python | catalog/bindings/gmd/abstract_surface.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/gmd/abstract_surface.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/gmd/abstract_surface.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from bindings.gmd.abstract_surface_type import AbstractSurfaceType
__NAMESPACE__ = "http://www.opengis.net/gml"
@dataclass
class AbstractSurface(AbstractSurfaceType):
"""
The AbstractSurface element is the abstract head of the substitution group
for all (continuous) surf... | 25.5 | 78 | 0.747549 | 46 | 408 | 6.5 | 0.652174 | 0.086957 | 0.107023 | 0.153846 | 0.19398 | 0.19398 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169118 | 408 | 15 | 79 | 27.2 | 0.882006 | 0.276961 | 0 | 0 | 0 | 0 | 0.189091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f9fc345052dd82902b4bf8576ef31f2bcd7e3d9b | 479 | py | Python | normalWordCloud1.py | praneethr1000/youtube-song-comment-highlights | e92453b7d797eb6860a1faabca24ddf223336566 | [
"MIT"
] | null | null | null | normalWordCloud1.py | praneethr1000/youtube-song-comment-highlights | e92453b7d797eb6860a1faabca24ddf223336566 | [
"MIT"
] | null | null | null | normalWordCloud1.py | praneethr1000/youtube-song-comment-highlights | e92453b7d797eb6860a1faabca24ddf223336566 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: praneeth
"""
import os
from os import path
from wordcloud import WordCloud
d = path.dirname(__file__) if "__file__" in locals() else os.getcwd()
text = open(path.join(d, 'comments.txt')).read()
# Generate a word cloud image
wordcloud = WordCloud().generate(text)
# Display the ... | 18.423077 | 69 | 0.718163 | 67 | 479 | 5 | 0.671642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004808 | 0.131524 | 479 | 25 | 70 | 19.16 | 0.800481 | 0.202505 | 0 | 0 | 0 | 0 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f9fd494d464bbf7ac1dfa0a5dea0a87c95283e57 | 1,029 | py | Python | tests/benchmarkstt/test_segmentation_core.py | ioannisNoukakis/benchmarkstt | 41074c9b89632e8d9ff8e0ee72187211052bfb04 | [
"MIT"
] | 30 | 2019-04-26T14:57:47.000Z | 2022-01-31T13:59:12.000Z | tests/benchmarkstt/test_segmentation_core.py | ioannisNoukakis/benchmarkstt | 41074c9b89632e8d9ff8e0ee72187211052bfb04 | [
"MIT"
] | 86 | 2019-04-24T13:42:48.000Z | 2022-02-22T08:57:10.000Z | tests/benchmarkstt/test_segmentation_core.py | ioannisNoukakis/benchmarkstt | 41074c9b89632e8d9ff8e0ee72187211052bfb04 | [
"MIT"
] | 7 | 2019-06-28T13:08:50.000Z | 2022-02-09T12:37:27.000Z | from benchmarkstt.segmentation import core
from benchmarkstt.schema import Item
import pytest
@pytest.mark.parametrize('text,expected', [
('hello world! how are you doing?! ', ['hello ', 'world! ', 'how ', 'are ', 'you ', 'doing?! ']),
('\nhello world! how are you doing?! ', ['\nhello ', ... | 35.482759 | 117 | 0.524781 | 119 | 1,029 | 4.504202 | 0.344538 | 0.119403 | 0.156716 | 0.179104 | 0.279851 | 0.279851 | 0.195896 | 0.195896 | 0.128731 | 0.128731 | 0 | 0.001302 | 0.253644 | 1,029 | 28 | 118 | 36.75 | 0.696615 | 0 | 0 | 0.24 | 0 | 0 | 0.286686 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.04 | false | 0 | 0.12 | 0 | 0.16 | 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 |
f9fd8ed8b22d73a3d1684042befb9910f5b85e3f | 18,459 | py | Python | tenkit/mro/stages/bcl_processor/demultiplex/__init__.py | qiangli/cellranger | 046e24c3275cfbd4516a6ebc064594513a5c45b7 | [
"MIT"
] | 1 | 2019-03-29T04:05:58.000Z | 2019-03-29T04:05:58.000Z | tenkit/mro/stages/bcl_processor/demultiplex/__init__.py | qiangli/cellranger | 046e24c3275cfbd4516a6ebc064594513a5c45b7 | [
"MIT"
] | null | null | null | tenkit/mro/stages/bcl_processor/demultiplex/__init__.py | qiangli/cellranger | 046e24c3275cfbd4516a6ebc064594513a5c45b7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Copyright (c) 2015 10X Genomics, Inc. All rights reserved.
#
# 1. Demultiplex reads using the I1 reads, if present. Initially we will detect
# common sample indicies by looking at the reads. In the future we will
# accept a sample sheet
# 2. Put the output FASTQ files in a canonical loc... | 36.918 | 131 | 0.647435 | 2,665 | 18,459 | 4.265666 | 0.157223 | 0.022167 | 0.006861 | 0.00431 | 0.301284 | 0.239796 | 0.208832 | 0.179451 | 0.179451 | 0.149455 | 0 | 0.010863 | 0.256948 | 18,459 | 499 | 132 | 36.991984 | 0.81795 | 0.194539 | 0 | 0.2 | 0 | 0.003125 | 0.108669 | 0.010008 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 0.003125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e604263e17a1ea76fa82aa6a10d240d24d8a0d46 | 636 | py | Python | tahoe_sites/migrations/0002_auto_20220117_0354.py | appsembler/tahoe-sites | d6a9395f03751cf3e0409eae24c489854d51f2ff | [
"MIT"
] | null | null | null | tahoe_sites/migrations/0002_auto_20220117_0354.py | appsembler/tahoe-sites | d6a9395f03751cf3e0409eae24c489854d51f2ff | [
"MIT"
] | 22 | 2022-01-17T08:01:29.000Z | 2022-03-14T19:09:54.000Z | tahoe_sites/migrations/0002_auto_20220117_0354.py | appsembler/tahoe-sites | d6a9395f03751cf3e0409eae24c489854d51f2ff | [
"MIT"
] | null | null | null | # Generated by Django 2.2.26 on 2022-01-17 03:54
from django.conf import settings
from django.db import migrations
from tahoe_sites import zd_helpers
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('organizations', '0011_histor... | 25.44 | 73 | 0.657233 | 63 | 636 | 6.412698 | 0.698413 | 0.049505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.245283 | 636 | 24 | 74 | 26.5 | 0.791667 | 0.072327 | 0 | 0 | 1 | 0 | 0.188776 | 0.10034 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e60ad42130cb0a10eded2b42b7a4658a273f1c89 | 1,627 | py | Python | bot.py | DSW12018/LoremBot | 0eb0af789921818662f9c2a1494773437b9cbc33 | [
"MIT"
] | null | null | null | bot.py | DSW12018/LoremBot | 0eb0af789921818662f9c2a1494773437b9cbc33 | [
"MIT"
] | 9 | 2018-06-10T01:15:05.000Z | 2018-06-18T08:53:48.000Z | bot.py | DSW12018/LoremBot | 0eb0af789921818662f9c2a1494773437b9cbc33 | [
"MIT"
] | null | null | null | from lorembot.services import TelegramService
from lorembot.observers import Messaging
from lorembot.utils import CommandMapper
from lorembot.settings import Settings
from lorembot.telegram.methods import SendContact, SendMessage
#from .commands import TaskCommands
from lorembot.command_collection import CommandCollec... | 25.421875 | 64 | 0.667486 | 154 | 1,627 | 6.941558 | 0.467532 | 0.078578 | 0.037418 | 0.050515 | 0.117867 | 0.08232 | 0 | 0 | 0 | 0 | 0 | 0.023753 | 0.223725 | 1,627 | 63 | 65 | 25.825397 | 0.822645 | 0.163491 | 0 | 0.04878 | 0 | 0 | 0.111686 | 0.033284 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.073171 | false | 0 | 0.170732 | 0 | 0.268293 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e6220b4b182df12e230b4d09ced317c23b869736 | 7,380 | py | Python | models.py | 10DarkShadow01/Emotional-Intelligence-alpha- | 60542236f02c7955a786401e00a24b1a2853532d | [
"Apache-2.0"
] | null | null | null | models.py | 10DarkShadow01/Emotional-Intelligence-alpha- | 60542236f02c7955a786401e00a24b1a2853532d | [
"Apache-2.0"
] | null | null | null | models.py | 10DarkShadow01/Emotional-Intelligence-alpha- | 60542236f02c7955a786401e00a24b1a2853532d | [
"Apache-2.0"
] | null | null | null | import wave
import numpy as np
import math
import os
import pickle
from keras.preprocessing import sequence
from sklearn.ensemble import RandomForestRegressor as RFR
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation, Merge, TimeDistributedDens... | 26.73913 | 122 | 0.61897 | 1,189 | 7,380 | 3.735913 | 0.137931 | 0.051328 | 0.034669 | 0.037821 | 0.497524 | 0.412877 | 0.359523 | 0.322377 | 0.27285 | 0.242458 | 0 | 0.031909 | 0.210163 | 7,380 | 275 | 123 | 26.836364 | 0.730142 | 0 | 0 | 0.326829 | 0 | 0 | 0.018325 | 0.003258 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078049 | null | null | 0.063415 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e623706290ea11207941226706ddd89a16732a7d | 1,613 | py | Python | tests/str_parse_str_test.py | trigaten/DAIDE | 5fbef0cbe26bcf0fc46dcb0dceec3325b404f8f6 | [
"MIT"
] | null | null | null | tests/str_parse_str_test.py | trigaten/DAIDE | 5fbef0cbe26bcf0fc46dcb0dceec3325b404f8f6 | [
"MIT"
] | null | null | null | tests/str_parse_str_test.py | trigaten/DAIDE | 5fbef0cbe26bcf0fc46dcb0dceec3325b404f8f6 | [
"MIT"
] | null | null | null |
from DAIDE import Order, Province, Arrangement, Unit
from DAIDE import YES
from DAIDE import MTO, SUP, CVY, CTO, VIA
from DAIDE import PRP, FCT
from DAIDE import ALY
from DAIDE import XDO
from DAIDE import AND, ORR
from utils import EXAMPLE_ORDER, EXAMPLE_UNIT, EXAMPLE_PROVINCE, str_parse_str_test
"""lvl0"""
object... | 24.439394 | 94 | 0.786113 | 247 | 1,613 | 4.793522 | 0.125506 | 0.114865 | 0.157939 | 0.215372 | 0.735642 | 0.690878 | 0.665541 | 0.635135 | 0.527027 | 0.5 | 0 | 0.004791 | 0.094234 | 1,613 | 65 | 95 | 24.815385 | 0.805613 | 0.00372 | 0 | 0.4 | 0 | 0 | 0.007692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
e6253d97a884d36d84820d66e211f6e451ad4ec5 | 9,235 | py | Python | S4_filter_rkmd_annotations.py | luketrichardson/RKMD-MS-Imaging-Annotation-and-Filtering | 4f9959f0a22774fefd223e9625fcf72fd54139bf | [
"Apache-2.0"
] | 1 | 2022-03-29T01:06:39.000Z | 2022-03-29T01:06:39.000Z | S4_filter_rkmd_annotations.py | luketrichardson/RKMD-MS-Image-Annotation-and-Filtering | 4f9959f0a22774fefd223e9625fcf72fd54139bf | [
"Apache-2.0"
] | null | null | null | S4_filter_rkmd_annotations.py | luketrichardson/RKMD-MS-Image-Annotation-and-Filtering | 4f9959f0a22774fefd223e9625fcf72fd54139bf | [
"Apache-2.0"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import os, sys, pickle
from tqdm import tqdm, trange
## SCRIPT 4: Run this script fourth to generate class-based image datasets.
def gen_image_params(classes=False, chain_lengths=False, unsaturations=False):
run_list, run_type, ev... | 36.792829 | 198 | 0.524418 | 1,141 | 9,235 | 4.077125 | 0.263804 | 0.014617 | 0.021281 | 0.010318 | 0.148323 | 0.105546 | 0.062984 | 0.044282 | 0.044282 | 0.032674 | 0 | 0.038294 | 0.352463 | 9,235 | 250 | 199 | 36.94 | 0.739632 | 0.15019 | 0 | 0.05618 | 1 | 0.016854 | 0.123993 | 0.042123 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02809 | false | 0 | 0.02809 | 0 | 0.08427 | 0.011236 | 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 |
e62e292ee301735147b787c50a03cb9cfd0836ac | 807 | py | Python | templates/src.py | ErikThorsell/advent-of-code-python | 8afb3d2dd731b77a421eff9dbd33d1f6a9dfbee3 | [
"MIT"
] | 2 | 2021-12-03T16:17:13.000Z | 2022-01-27T12:29:45.000Z | templates/src.py | ErikThorsell/advent-of-code-python | 8afb3d2dd731b77a421eff9dbd33d1f6a9dfbee3 | [
"MIT"
] | null | null | null | templates/src.py | ErikThorsell/advent-of-code-python | 8afb3d2dd731b77a421eff9dbd33d1f6a9dfbee3 | [
"MIT"
] | 1 | 2021-12-29T20:38:38.000Z | 2021-12-29T20:38:38.000Z | """Solution module for Day X, YEAR"""
import copy
import time
from sys import maxsize
from advent_of_code.utils.fetch import fetch
from advent_of_code.utils.parse import split_number_by_newline
def solution_1(input):
pass
def solution_2(input):
pass
def run(year: int, day: int):
print(f"\n🌟 Fetching... | 24.454545 | 79 | 0.700124 | 128 | 807 | 4.265625 | 0.375 | 0.058608 | 0.10989 | 0.058608 | 0.410256 | 0.333333 | 0.333333 | 0.238095 | 0.238095 | 0.238095 | 0 | 0.021116 | 0.178439 | 807 | 32 | 80 | 25.21875 | 0.799397 | 0.038414 | 0 | 0.285714 | 0 | 0.095238 | 0.216883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.095238 | 0.238095 | 0 | 0.380952 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e632d803b50bc657dbfb6a616f75d19f112cda6e | 12,892 | py | Python | models.py | matpalm/malmomo | 35861223dc65b7f10c780ec7cd7cdcaf50a46ead | [
"MIT"
] | 54 | 2016-11-10T18:31:52.000Z | 2021-02-14T11:57:42.000Z | models.py | matpalm/malmomo | 35861223dc65b7f10c780ec7cd7cdcaf50a46ead | [
"MIT"
] | null | null | null | models.py | matpalm/malmomo | 35861223dc65b7f10c780ec7cd7cdcaf50a46ead | [
"MIT"
] | 11 | 2016-11-11T07:11:52.000Z | 2021-09-10T17:52:01.000Z | import base_network
import numpy as np
import ou_noise
import signal
import tensorflow as tf
import tensorflow.contrib.slim as slim
import util
def add_opts(parser):
parser.add_argument('--share-conv-net', type=bool, default=True,
help="if set (dft) we have one network for processing input img ... | 50.556863 | 112 | 0.6148 | 1,657 | 12,892 | 4.567894 | 0.206397 | 0.029066 | 0.018893 | 0.012551 | 0.285903 | 0.257762 | 0.204783 | 0.191042 | 0.178359 | 0.14969 | 0 | 0.013533 | 0.294989 | 12,892 | 254 | 113 | 50.755906 | 0.819232 | 0.181663 | 0 | 0.224719 | 0 | 0 | 0.084392 | 0.008372 | 0 | 0 | 0 | 0.003937 | 0 | 0 | null | null | 0 | 0.067416 | null | null | 0.073034 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e63e13c9d7b043dc4aa702d608fd0c4977c370f4 | 837 | py | Python | utils.py | ZouhairKhatouri/Landmark-Tree-construction-and-processing | d505d59bca2ba70d2ebd3464b6d84e8016b09400 | [
"MIT"
] | null | null | null | utils.py | ZouhairKhatouri/Landmark-Tree-construction-and-processing | d505d59bca2ba70d2ebd3464b6d84e8016b09400 | [
"MIT"
] | null | null | null | utils.py | ZouhairKhatouri/Landmark-Tree-construction-and-processing | d505d59bca2ba70d2ebd3464b6d84e8016b09400 | [
"MIT"
] | null | null | null | """
@Author : Niama ELKHBIR
@Last update : 22/03/2020
"""
## TODO :
# Globals :
N = 200
# Imports :
import cv2
##
def getFileName(n):
if 0 <= n and n < 10:
return '00000'+str(n)+'.png'
elif 10 <= n and n < 100:
return '0000'+str(n)+'.png'
elif 100 <= n and n < 1000:
... | 24.617647 | 90 | 0.568698 | 112 | 837 | 4.1875 | 0.508929 | 0.034115 | 0.042644 | 0.070362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091973 | 0.285544 | 837 | 34 | 91 | 24.617647 | 0.692308 | 0.120669 | 0 | 0 | 0 | 0 | 0.094203 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.45 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e6440c5542c6ab32e27c5d3e136b2c9023c21593 | 7,675 | py | Python | bills/models.py | TClaypool00/ExpenseTrackerClient-Python | 44f45e7e7b7434d19a20a0d1b565592a157bed88 | [
"MIT"
] | null | null | null | bills/models.py | TClaypool00/ExpenseTrackerClient-Python | 44f45e7e7b7434d19a20a0d1b565592a157bed88 | [
"MIT"
] | null | null | null | bills/models.py | TClaypool00/ExpenseTrackerClient-Python | 44f45e7e7b7434d19a20a0d1b565592a157bed88 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import AbstractUser, BaseUserManager
from django.utils.translation import gettext_lazy as _
class Bills(models.Model):
billid = models.AutoField(db_column='billId', primary_key=True) # Field name made lowercase.
billname = models.CharField(db_column... | 56.433824 | 157 | 0.720651 | 981 | 7,675 | 5.479103 | 0.16208 | 0.066977 | 0.082233 | 0.139163 | 0.54586 | 0.506047 | 0.471442 | 0.36614 | 0.325209 | 0.289116 | 0 | 0.011907 | 0.168339 | 7,675 | 136 | 158 | 56.433824 | 0.830174 | 0.147101 | 0 | 0.175926 | 0 | 0 | 0.099569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.064815 | 0.027778 | 0 | 0.805556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e6463defdd855d612541f78de27e5c83d3232ca5 | 914 | py | Python | leetcode/implement_queue_by_stack.py | yatao91/learning_road | e88dc43de98e35922bfc71c222ec71766851e618 | [
"MIT"
] | 3 | 2021-05-25T16:58:52.000Z | 2022-02-05T09:37:17.000Z | leetcode/implement_queue_by_stack.py | yataosu/learning_road | e88dc43de98e35922bfc71c222ec71766851e618 | [
"MIT"
] | null | null | null | leetcode/implement_queue_by_stack.py | yataosu/learning_road | e88dc43de98e35922bfc71c222ec71766851e618 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
class MyQueue:
def __init__(self):
"""
Initialize your data structure here.
"""
self.queue = []
def push(self, x: int) -> None:
"""
Push element x to the back of queue.
"""
self.queue.append(x)
def pop(self) -> int:... | 19.446809 | 76 | 0.50547 | 113 | 914 | 3.929204 | 0.451327 | 0.101351 | 0.076577 | 0.099099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020548 | 0.36105 | 914 | 46 | 77 | 19.869565 | 0.739726 | 0.245077 | 0 | 0 | 0 | 0 | 0.013937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0 | 0 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e647516235eab8e25909eb8636b36e5a60949fc6 | 903 | py | Python | server/mu_calculus/mu_blueprint.py | Xogiga/KAMIStudio | bdaebc3def154d22292cd2753391a9523f8a42d2 | [
"MIT"
] | null | null | null | server/mu_calculus/mu_blueprint.py | Xogiga/KAMIStudio | bdaebc3def154d22292cd2753391a9523f8a42d2 | [
"MIT"
] | null | null | null | server/mu_calculus/mu_blueprint.py | Xogiga/KAMIStudio | bdaebc3def154d22292cd2753391a9523f8a42d2 | [
"MIT"
] | null | null | null | """handle requests relative to mu-calculus checking"""
from flask import Blueprint, Response, request
import json
from base.webserver_utils import apply_on_node
import flex
from flex.loading.schema.paths.path_item.operation.responses.single.schema\
import schema_validator
import os
import subprocess
mu_blueprin... | 31.137931 | 75 | 0.692137 | 116 | 903 | 5.12931 | 0.465517 | 0.129412 | 0.055462 | 0.070588 | 0.087395 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004144 | 0.198228 | 903 | 28 | 76 | 32.25 | 0.81768 | 0.053156 | 0 | 0 | 0 | 0 | 0.094229 | 0.038869 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.333333 | 0 | 0.52381 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e64d30d47150a9d2304c52daa79397f3476fb5bc | 1,263 | py | Python | Explore/Introduction to Data Structure. Linked List/003. Linked List Cycle II/SolutionPython3.py | SpacelandingCat/leetcode | 761093513aed0d4779944ca152180e3356facc2f | [
"MIT"
] | null | null | null | Explore/Introduction to Data Structure. Linked List/003. Linked List Cycle II/SolutionPython3.py | SpacelandingCat/leetcode | 761093513aed0d4779944ca152180e3356facc2f | [
"MIT"
] | null | null | null | Explore/Introduction to Data Structure. Linked List/003. Linked List Cycle II/SolutionPython3.py | SpacelandingCat/leetcode | 761093513aed0d4779944ca152180e3356facc2f | [
"MIT"
] | null | null | null | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def detectCycle(self, head: ListNode) -> ListNode:
cs = head
cf = head
if head == None:
return None
if cf.next == None:
... | 26.87234 | 54 | 0.357878 | 133 | 1,263 | 3.368421 | 0.225564 | 0.174107 | 0.125 | 0.080357 | 0.129464 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01083 | 0.561362 | 1,263 | 47 | 55 | 26.87234 | 0.797834 | 0.097387 | 0 | 0.439024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0 | 0 | 0.195122 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e66566b068ce8ab678ca08c07de045da4d9b9fb1 | 3,621 | py | Python | urbansim_templates/shared/output_column.py | AZMAG/urbansim_templates | 723b83b4187da53a50ee03fdba4842a464f68240 | [
"BSD-3-Clause"
] | 19 | 2018-10-20T21:18:11.000Z | 2021-11-15T07:11:03.000Z | urbansim_templates/shared/output_column.py | AZMAG/urbansim_templates | 723b83b4187da53a50ee03fdba4842a464f68240 | [
"BSD-3-Clause"
] | 91 | 2018-03-15T17:42:44.000Z | 2022-03-21T18:56:07.000Z | urbansim_templates/shared/output_column.py | AZMAG/urbansim_templates | 723b83b4187da53a50ee03fdba4842a464f68240 | [
"BSD-3-Clause"
] | 12 | 2018-06-22T15:45:15.000Z | 2021-10-02T00:13:36.000Z | import orca
from urbansim_templates import __version__
class OutputColumnSettings():
"""
Stores standard parameters used by templates that generate or modify columns.
Parameters can be passed to the constructor or set as attributes.
Parameters
----------
column_name : str, optional
... | 28.069767 | 88 | 0.561723 | 375 | 3,621 | 5.253333 | 0.317333 | 0.050761 | 0.02132 | 0.017259 | 0.02132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.338857 | 3,621 | 128 | 89 | 28.289063 | 0.822891 | 0.376415 | 0 | 0 | 1 | 0 | 0.073656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0 | 0.042553 | 0 | 0.234043 | 0 | 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 |
05061b7fa41f1e98c817b912ef8fe91e99d8078e | 6,899 | py | Python | pyfan/graph/exa/scatterline3.py | FanWangEcon/pyfan | 126e91c0c6d930f1c335a07396d1d2145b247cea | [
"MIT"
] | 1 | 2020-08-02T21:43:39.000Z | 2020-08-02T21:43:39.000Z | pyfan/graph/exa/scatterline3.py | FanWangEcon/pyfan | 126e91c0c6d930f1c335a07396d1d2145b247cea | [
"MIT"
] | null | null | null | pyfan/graph/exa/scatterline3.py | FanWangEcon/pyfan | 126e91c0c6d930f1c335a07396d1d2145b247cea | [
"MIT"
] | 1 | 2020-12-02T06:45:20.000Z | 2020-12-02T06:45:20.000Z | """
The :mod:`pyfan.graph.example.scatterline3` generates a graprh with three lines.
This is the functionalized vesrion of `plot_randgrid Example <https://pyfan.readthedocs.io/en/latest/auto_examples/plot_randgrid.html#sphx-glr-auto-examples-plot-randgrid-py>`_.
Includes method :func:`gph_scatter_line_rand`.
"""
impo... | 37.906593 | 177 | 0.614582 | 1,060 | 6,899 | 3.766981 | 0.287736 | 0.025545 | 0.018032 | 0.010018 | 0.205359 | 0.185825 | 0.172302 | 0.159279 | 0.123717 | 0.123717 | 0 | 0.145665 | 0.284534 | 6,899 | 181 | 178 | 38.116022 | 0.66329 | 0.468039 | 0 | 0.142857 | 1 | 0 | 0.11808 | 0.027816 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012987 | false | 0 | 0.116883 | 0 | 0.142857 | 0.025974 | 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 |
05098e3f335f8b8f80cb46b6426468d141ba5acb | 1,470 | py | Python | ABR_Datasets_API/setup.py | patrickkesper/amira_blender_rendering | acea7b1727e5eb93998cb3154fb2080122962505 | [
"ECL-2.0",
"Apache-2.0"
] | 26 | 2020-11-13T18:57:40.000Z | 2022-03-08T18:54:02.000Z | ABR_Datasets_API/setup.py | patrickkesper/amira_blender_rendering | acea7b1727e5eb93998cb3154fb2080122962505 | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2021-01-21T11:56:46.000Z | 2021-09-22T08:39:10.000Z | ABR_Datasets_API/setup.py | patrickkesper/amira_blender_rendering | acea7b1727e5eb93998cb3154fb2080122962505 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2020-11-19T15:46:33.000Z | 2021-03-26T05:42:44.000Z | #!/usr/bin/env python3
# Copyright (c) 2020 - for information on the respective copyright owner
# see the NOTICE file and/or the repository
# <https://github.com/boschresearch/amira-blender-rendering>.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance ... | 30.625 | 80 | 0.703401 | 197 | 1,470 | 5.187817 | 0.604061 | 0.058708 | 0.058708 | 0.031311 | 0.027397 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013378 | 0.186395 | 1,470 | 47 | 81 | 31.276596 | 0.841137 | 0.487075 | 0 | 0 | 0 | 0 | 0.367209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | true | 0 | 0.043478 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05133a2119e60ce4f9a18ef5c8eeb5104d3be2f2 | 770 | py | Python | ParamGenerators/CSVParamGenerator.py | Tamilarasan-Aruchamy/stream-bms-data-AkshayUHegde | 040070eab4fdf4ffb800212005d3ffa17fcfd74f | [
"MIT"
] | null | null | null | ParamGenerators/CSVParamGenerator.py | Tamilarasan-Aruchamy/stream-bms-data-AkshayUHegde | 040070eab4fdf4ffb800212005d3ffa17fcfd74f | [
"MIT"
] | null | null | null | ParamGenerators/CSVParamGenerator.py | Tamilarasan-Aruchamy/stream-bms-data-AkshayUHegde | 040070eab4fdf4ffb800212005d3ffa17fcfd74f | [
"MIT"
] | 1 | 2021-06-13T16:54:06.000Z | 2021-06-13T16:54:06.000Z | import csv
from .ParamGenerator import ParamGenerator
class CSVParamGenerator(ParamGenerator):
def __init__(self):
self.source = []
self.count = 0
def set_source(self, source):
try:
with open(source, newline='') as f:
reader = csv.reader(f)
... | 26.551724 | 87 | 0.546753 | 87 | 770 | 4.770115 | 0.425287 | 0.216867 | 0.101205 | 0.137349 | 0.154217 | 0.154217 | 0.154217 | 0 | 0 | 0 | 0 | 0.008048 | 0.354545 | 770 | 28 | 88 | 27.5 | 0.826962 | 0 | 0 | 0.086957 | 0 | 0 | 0.044156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.086957 | 0 | 0.478261 | 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 |
051781682ed2c09341bbae010567c590616ad315 | 2,031 | py | Python | sonarqube/community/project_branches.py | ckho-wkcda/python-sonarqube-api | 9414a1763e0f3e2bab4d9afe6b5df71c785a86e7 | [
"MIT"
] | 113 | 2020-07-08T18:52:12.000Z | 2022-03-29T09:32:22.000Z | sonarqube/community/project_branches.py | ckho-wkcda/python-sonarqube-api | 9414a1763e0f3e2bab4d9afe6b5df71c785a86e7 | [
"MIT"
] | 39 | 2020-08-26T11:47:19.000Z | 2022-03-24T11:40:54.000Z | sonarqube/community/project_branches.py | ckho-wkcda/python-sonarqube-api | 9414a1763e0f3e2bab4d9afe6b5df71c785a86e7 | [
"MIT"
] | 39 | 2020-06-01T07:21:33.000Z | 2022-02-24T02:51:20.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Author: Jialiang Shi
from sonarqube.utils.rest_client import RestClient
from sonarqube.utils.config import (
API_PROJECT_BRANCHES_LIST_ENDPOINT,
API_PROJECT_BRANCHES_DELETE_ENDPOINT,
API_PROJECT_BRANCHES_RENAME_ENDPOINT,
API_PROJECT_BRANCHES_SET_PROTECTION... | 29.434783 | 115 | 0.66322 | 246 | 2,031 | 5.252033 | 0.333333 | 0.116099 | 0.111455 | 0.068111 | 0.412539 | 0.22678 | 0.097523 | 0.072755 | 0.072755 | 0.072755 | 0 | 0.005988 | 0.25997 | 2,031 | 69 | 116 | 29.434783 | 0.853626 | 0.397341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.157895 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
05344f2b26d9962a9b074a87885d649769b47fb1 | 4,590 | py | Python | lightning_pass/gui/mouse_randomness.py | kucera-lukas/lightning-pass | 6be2860dae5e93a09702c180321d75bc5fe01b93 | [
"MIT"
] | null | null | null | lightning_pass/gui/mouse_randomness.py | kucera-lukas/lightning-pass | 6be2860dae5e93a09702c180321d75bc5fe01b93 | [
"MIT"
] | null | null | null | lightning_pass/gui/mouse_randomness.py | kucera-lukas/lightning-pass | 6be2860dae5e93a09702c180321d75bc5fe01b93 | [
"MIT"
] | null | null | null | """Module containing classes used for operations with mouse randomness generation."""
import random
import string
from typing import Generator, NamedTuple, Optional
from PyQt5 import QtCore, QtWidgets
class MouseTracker(QtCore.QObject):
"""This class contains functionality for setting up a mouse tracker over a c... | 27.987805 | 113 | 0.614597 | 508 | 4,590 | 5.425197 | 0.338583 | 0.027939 | 0.023222 | 0.010885 | 0.081277 | 0.081277 | 0.043541 | 0.043541 | 0.043541 | 0.043541 | 0 | 0.002762 | 0.289978 | 4,590 | 163 | 114 | 28.159509 | 0.842897 | 0.292593 | 0 | 0.068182 | 0 | 0 | 0.060813 | 0.030244 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102273 | false | 0.102273 | 0.045455 | 0 | 0.375 | 0.034091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
053b393e908f485322fd7a3da5c11408c934ede8 | 581 | py | Python | src/git_inspector/cli/dynamic_terminal_output.py | acardos/git_inspector | ee194a62606ddb882ce0736618bae053e6b8521d | [
"MIT"
] | 4 | 2021-12-06T15:35:19.000Z | 2022-01-23T23:17:38.000Z | src/git_inspector/cli/dynamic_terminal_output.py | acardos/git_inspector | ee194a62606ddb882ce0736618bae053e6b8521d | [
"MIT"
] | 20 | 2019-01-23T18:45:44.000Z | 2020-11-09T18:36:30.000Z | src/git_inspector/cli/dynamic_terminal_output.py | acardos/git_inspector | ee194a62606ddb882ce0736618bae053e6b8521d | [
"MIT"
] | 1 | 2022-01-22T11:37:08.000Z | 2022-01-22T11:37:08.000Z | import sys
class DynamicTerminalOutput:
def __init__(self, start_output):
self.last_output = start_output
print(start_output)
def update(self, new_output: str):
self._clear_previous()
print(new_output)
self.last_output = new_output
def clear(self):
self.up... | 26.409091 | 66 | 0.619621 | 78 | 581 | 4.333333 | 0.461538 | 0.097633 | 0.12426 | 0.118343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016588 | 0.273666 | 581 | 21 | 67 | 27.666667 | 0.78436 | 0.07401 | 0 | 0 | 0 | 0 | 0.026168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
053eda430d1592e5f9ffde06b1075401f59132e9 | 398 | py | Python | estrutura-sequencial/ex11.py | nlnadialigia/exercises-python-brasil | 667e8ff916687afd49eee536b7ef5d6683ccd212 | [
"MIT"
] | null | null | null | estrutura-sequencial/ex11.py | nlnadialigia/exercises-python-brasil | 667e8ff916687afd49eee536b7ef5d6683ccd212 | [
"MIT"
] | null | null | null | estrutura-sequencial/ex11.py | nlnadialigia/exercises-python-brasil | 667e8ff916687afd49eee536b7ef5d6683ccd212 | [
"MIT"
] | null | null | null | numA = int(input('Digite um número inteiro: '))
numB = int(input('Digite outro número inteiro: '))
numC = float(input('Digite um número real: '))
a = (2 * numA) * (numB / 2)
b = (3 * numA) + numC
c = numC ** 3
print(f'O produto do dobro de {numA} com metade de6 {numB} é igual a {a}')
print(f'A soma do triplo de {numA} ... | 39.8 | 74 | 0.633166 | 74 | 398 | 3.405405 | 0.472973 | 0.130952 | 0.083333 | 0.150794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018634 | 0.190955 | 398 | 9 | 75 | 44.222222 | 0.763975 | 0 | 0 | 0 | 0 | 0 | 0.585427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
054601f8f8db1a650bd84b958f6ec4ac6f0ecde8 | 625 | py | Python | main.py | jonmcclu/boxnote-converter | 412e4aeeab2ab047447823db602df1ed9f41ae66 | [
"MIT"
] | null | null | null | main.py | jonmcclu/boxnote-converter | 412e4aeeab2ab047447823db602df1ed9f41ae66 | [
"MIT"
] | null | null | null | main.py | jonmcclu/boxnote-converter | 412e4aeeab2ab047447823db602df1ed9f41ae66 | [
"MIT"
] | null | null | null | import functions.functions as functions
import os
from tkinter import messagebox
from tkinter import *
if __name__ == "__main__":
settings = functions.import_settings()
source = settings['source_directory']
root = Tk()
root.withdraw()
for subdir, dirs, files in os.walk(source):
for filena... | 28.409091 | 102 | 0.6608 | 70 | 625 | 5.742857 | 0.585714 | 0.074627 | 0.084577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2464 | 625 | 21 | 103 | 29.761905 | 0.853503 | 0.024 | 0 | 0 | 0 | 0 | 0.169408 | 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 |
054addeabde922ecc8b86c40d80feef7eb474968 | 1,493 | py | Python | teamleader/helper.py | rubenvdb/python-teamleader | 314de055cbffd35c139b4109fcad1fb3cf906b90 | [
"MIT"
] | null | null | null | teamleader/helper.py | rubenvdb/python-teamleader | 314de055cbffd35c139b4109fcad1fb3cf906b90 | [
"MIT"
] | 1 | 2016-12-07T20:02:18.000Z | 2016-12-07T20:02:18.000Z | teamleader/helper.py | rubenvdb/python-teamleader | 314de055cbffd35c139b4109fcad1fb3cf906b90 | [
"MIT"
] | 4 | 2016-11-22T08:43:50.000Z | 2020-01-08T15:25:59.000Z | """
Teamleader Helper functions
"""
from teamleader.api import Teamleader
from teamleader.exceptions import InvalidInputError
def vat_liability_to_invoice(customer_vat_liability, tariff='21', service=False):
'''Determine invoice line vat term based on default tariff and customer VAT liability.
'''
tariff... | 34.72093 | 99 | 0.717348 | 180 | 1,493 | 5.688889 | 0.361111 | 0.128906 | 0.195313 | 0.140625 | 0.179688 | 0.179688 | 0.074219 | 0.074219 | 0 | 0 | 0 | 0.010788 | 0.1929 | 1,493 | 42 | 100 | 35.547619 | 0.839004 | 0.139317 | 0 | 0.111111 | 0 | 0 | 0.178374 | 0.017364 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.444444 | 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 |
054cf909bddd5e9151e36e939a35bb14084ca46c | 3,647 | py | Python | Contacts .py | shuttle2021/Pandemic-Data-Analysis- | c3ed90bc4ff6ed057e574d5979eaafb28c83da78 | [
"MIT"
] | 1 | 2020-07-03T21:05:17.000Z | 2020-07-03T21:05:17.000Z | Contacts .py | shuttle2021/Pandemic-Data-Analysis- | c3ed90bc4ff6ed057e574d5979eaafb28c83da78 | [
"MIT"
] | null | null | null | Contacts .py | shuttle2021/Pandemic-Data-Analysis- | c3ed90bc4ff6ed057e574d5979eaafb28c83da78 | [
"MIT"
] | 1 | 2020-07-12T08:47:45.000Z | 2020-07-12T08:47:45.000Z |
database = {"shuttle":9080590855,"barath":638383877,"hannah":6987237898}
print("\nGreeting\'s from Vigneshwaram")
print("Welcome to phoneBook\n")
while True:
print("Type EDIT to edit the contact number\n CREATE to create a new contact\n SEARCH to search a specific contact\n DELETE to Delete the con... | 27.014815 | 208 | 0.493556 | 359 | 3,647 | 5.013928 | 0.253482 | 0.077778 | 0.06 | 0.051111 | 0.133889 | 0.133889 | 0.133889 | 0.115 | 0.058889 | 0.058889 | 0 | 0.014292 | 0.386071 | 3,647 | 134 | 209 | 27.216418 | 0.789638 | 0 | 0 | 0.495327 | 0 | 0.009346 | 0.308832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046729 | false | 0.009346 | 0 | 0 | 0.046729 | 0.551402 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05539c98b67c0f7afbe3b8379b95a49bc20bacb7 | 4,821 | py | Python | src/grammar.py | DenisFovas/lftc_lab_4 | de8df4d0f3efae3799f28fe3f93e7e9b30b1d0a3 | [
"MIT"
] | null | null | null | src/grammar.py | DenisFovas/lftc_lab_4 | de8df4d0f3efae3799f28fe3f93e7e9b30b1d0a3 | [
"MIT"
] | null | null | null | src/grammar.py | DenisFovas/lftc_lab_4 | de8df4d0f3efae3799f28fe3f93e7e9b30b1d0a3 | [
"MIT"
] | null | null | null | import utils
# The purpose of this module is to provide helpers for dealing with the input grammar.
# E.g. generate a parsing table, enrich the read grammar, etc.
# This constructs a more detailed object from the input grammar,
# e.g. generate a set of all the nonterminals for easier verification in later parts of th... | 30.707006 | 120 | 0.692595 | 456 | 4,821 | 7.322368 | 0.258772 | 0.02336 | 0.023959 | 0.025157 | 0.139563 | 0.139563 | 0.139563 | 0.071279 | 0.032345 | 0.032345 | 0 | 0.003741 | 0.223812 | 4,821 | 156 | 121 | 30.903846 | 0.888562 | 0.126322 | 0 | 0.303922 | 1 | 0 | 0.052607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068627 | false | 0 | 0.009804 | 0.009804 | 0.147059 | 0 | 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 |
0553f351e4450889ab7e5f231e1a5998004bfd5d | 417 | py | Python | flod_auth/alembic/versions/20141014-1925-4753005aff55_remove_auth_token.py | Trondheim-kommune/Tilskuddsbasen | 4f8ce270ef7296069f8e43bfb4bf6a570a7a35d4 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2017-10-17T12:15:28.000Z | 2017-10-17T12:15:28.000Z | flod_auth/alembic/versions/20141014-1925-4753005aff55_remove_auth_token.py | Trondheim-kommune/Bookingbasen | 58235a5a1fd6ad291cb237e6ec9a67bfe8c463c6 | [
"BSD-2-Clause-FreeBSD"
] | 6 | 2021-03-22T17:15:52.000Z | 2022-01-13T00:39:58.000Z | flod_auth/alembic/versions/20141014-1925-4753005aff55_remove_auth_token.py | Trondheim-kommune/Tilskuddsbasen | 4f8ce270ef7296069f8e43bfb4bf6a570a7a35d4 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-09-09T13:35:03.000Z | 2019-09-09T13:35:03.000Z | """remove auth_token
Revision ID: 4753005aff55
Revises: b52d1797a8d
Create Date: 2014-10-14 19:25:01.267434
"""
# revision identifiers, used by Alembic.
revision = '4753005aff55'
down_revision = 'b52d1797a8d'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.drop_column('user', 'auth_token')
... | 17.375 | 78 | 0.7506 | 53 | 417 | 5.830189 | 0.792453 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146479 | 0.148681 | 417 | 23 | 79 | 18.130435 | 0.723944 | 0.347722 | 0 | 0 | 0 | 0 | 0.310606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
055775f132a8771e81aae859fc895ac36c76c468 | 1,321 | py | Python | imagefy/sales/views.py | dvl/imagefy-web | be9f1502acf2f684a5dc59570eec00616e7dde4c | [
"MIT"
] | null | null | null | imagefy/sales/views.py | dvl/imagefy-web | be9f1502acf2f684a5dc59570eec00616e7dde4c | [
"MIT"
] | null | null | null | imagefy/sales/views.py | dvl/imagefy-web | be9f1502acf2f684a5dc59570eec00616e7dde4c | [
"MIT"
] | null | null | null | import requests
from django.contrib.auth.mixins import LoginRequiredMixin
from django.core.exceptions import PermissionDenied
from django.http import JsonResponse
from django.views.generic import ListView, DetailView
from imagefy.wishes.models import Wish
class WishListView(LoginRequiredMixin, ListView):
model ... | 26.959184 | 97 | 0.708554 | 147 | 1,321 | 6.210884 | 0.455782 | 0.071194 | 0.098576 | 0.046002 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205148 | 1,321 | 48 | 98 | 27.520833 | 0.869524 | 0 | 0 | 0.064516 | 0 | 0 | 0.097653 | 0.037093 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.193548 | 0 | 0.548387 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0558d14f115b4facb5d7a6901a922242a24f2074 | 1,050 | py | Python | marketplaces/allegro/allegro.py | granatd/wholesale-allegro-integration | 3498e584b4a0160f6229ee2d1f8c4a74a1cc3d24 | [
"Apache-2.0"
] | null | null | null | marketplaces/allegro/allegro.py | granatd/wholesale-allegro-integration | 3498e584b4a0160f6229ee2d1f8c4a74a1cc3d24 | [
"Apache-2.0"
] | null | null | null | marketplaces/allegro/allegro.py | granatd/wholesale-allegro-integration | 3498e584b4a0160f6229ee2d1f8c4a74a1cc3d24 | [
"Apache-2.0"
] | null | null | null | from marketplaces.allegro.auctions import Auction
from marketplaces.allegro.auctions import RestAPI
class Allegro:
auction = Auction
restAPI = RestAPI
def __init__(self):
self.auction = None
self.filteredOffers = None
def createAuction(self, integrator):
self.auction = Auctio... | 30.882353 | 111 | 0.674286 | 113 | 1,050 | 6.230089 | 0.353982 | 0.178977 | 0.065341 | 0.088068 | 0.105114 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004957 | 0.231429 | 1,050 | 33 | 112 | 31.818182 | 0.86741 | 0 | 0 | 0.173913 | 0 | 0 | 0.034286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.086957 | 0 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
055c124554c0dd07684098efeb6cf0f18d6672d7 | 2,508 | py | Python | scrapers/spiders/person_group_spider.py | timholds/MIT-Media-Lab-Neo4j | 3c07c4cf6d79ce87c8ba7beead492bdb4734d798 | [
"MIT"
] | null | null | null | scrapers/spiders/person_group_spider.py | timholds/MIT-Media-Lab-Neo4j | 3c07c4cf6d79ce87c8ba7beead492bdb4734d798 | [
"MIT"
] | null | null | null | scrapers/spiders/person_group_spider.py | timholds/MIT-Media-Lab-Neo4j | 3c07c4cf6d79ce87c8ba7beead492bdb4734d798 | [
"MIT"
] | null | null | null | import scrapy
class ProjectsSpider(scrapy.Spider):
name = "group_person"
def start_requests(self):
urls = ['http://www.media.mit.edu/search/?page=1&filter=group',
'http://www.media.mit.edu/search/?page=2&filter=group']
for url in urls:
yield scrapy.Request(url=url,... | 26.4 | 104 | 0.567384 | 293 | 2,508 | 4.757679 | 0.259386 | 0.063128 | 0.064562 | 0.040172 | 0.324247 | 0.240316 | 0.199426 | 0.104735 | 0.104735 | 0.104735 | 0 | 0.00564 | 0.293062 | 2,508 | 94 | 105 | 26.680851 | 0.780598 | 0.020734 | 0 | 0 | 0 | 0 | 0.194671 | 0 | 0 | 0 | 0 | 0.021277 | 0.035714 | 1 | 0.107143 | false | 0 | 0.035714 | 0 | 0.214286 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
055f8998bd475a3f874ea7444e44ac523d2ad33f | 1,645 | py | Python | two.py | ApoorvaSanthosh/pythonTest | 21975e840162ada78409ce3f7c87628127701b62 | [
"WTFPL"
] | null | null | null | two.py | ApoorvaSanthosh/pythonTest | 21975e840162ada78409ce3f7c87628127701b62 | [
"WTFPL"
] | null | null | null | two.py | ApoorvaSanthosh/pythonTest | 21975e840162ada78409ce3f7c87628127701b62 | [
"WTFPL"
] | 1 | 2021-03-17T15:35:11.000Z | 2021-03-17T15:35:11.000Z | #take a user input
i = input()
print (i)
#int
i = 23
#float
j = 23.5
#bool
k = True
# char
l = 'w'
#string
m = "word"
#input typecasting
print("Try to enter an alphabet")
value1 = input()
value2 = int(value1)
print (value2+1)
print("Please input integers only")
a = int(input())
b = int(input())
#Operator 1
pri... | 12.462121 | 147 | 0.65228 | 319 | 1,645 | 3.363636 | 0.322884 | 0.12302 | 0.110904 | 0.145387 | 0.373719 | 0.353215 | 0.353215 | 0.353215 | 0.353215 | 0.333644 | 0 | 0.056759 | 0.186018 | 1,645 | 132 | 147 | 12.462121 | 0.744586 | 0.335562 | 0 | 0.526316 | 0 | 0 | 0.060748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.618421 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0563ba5542ed75ecb83ca7de8ba9c57e1f9b9efb | 4,732 | py | Python | kick/device2/series3/actions/webserver/__init__.py | CiscoDevNet/firepower-kickstart | 37a36856fcdc661e8c51edaa694e48f74cc6fcb5 | [
"Apache-2.0"
] | 2 | 2020-02-10T23:36:57.000Z | 2020-03-25T15:46:05.000Z | kick/device2/series3/actions/webserver/__init__.py | CiscoDevNet/firepower-kickstart | 37a36856fcdc661e8c51edaa694e48f74cc6fcb5 | [
"Apache-2.0"
] | 1 | 2020-08-07T13:01:32.000Z | 2020-08-07T13:01:32.000Z | kick/device2/series3/actions/webserver/__init__.py | CiscoDevNet/firepower-kickstart | 37a36856fcdc661e8c51edaa694e48f74cc6fcb5 | [
"Apache-2.0"
] | 1 | 2020-02-19T13:58:35.000Z | 2020-02-19T13:58:35.000Z | """Library to access the webserver."""
import re
import time
import logging
logger = logging.getLogger(__name__)
from unicon.eal.expect import Spawn, TimeoutError
from unicon.utils import AttributeDict
from unicon.eal.dialogs import Dialog
MAX_RETRY_COUNT = 3
class Webserver:
def __init__(self, hostname='AST-IN... | 30.333333 | 88 | 0.612003 | 558 | 4,732 | 5.082437 | 0.306452 | 0.028561 | 0.016925 | 0.020099 | 0.059944 | 0.039492 | 0.039492 | 0.039492 | 0.039492 | 0.039492 | 0 | 0.004815 | 0.29776 | 4,732 | 155 | 89 | 30.529032 | 0.848631 | 0.325866 | 0 | 0.060606 | 0 | 0 | 0.092741 | 0.018062 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106061 | false | 0.090909 | 0.136364 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0563c41e973e7539c719b9a06be6be48041f675f | 2,047 | py | Python | src/main/python/sensor.py | SmartDogHouse/SmartDogHouse-Software | 00caf23e3fe8dae2d30c339f801d7c1a7ddca0c2 | [
"MIT"
] | 4 | 2021-05-17T10:42:48.000Z | 2021-08-09T15:51:28.000Z | src/main/python/sensor.py | SmartDogHouse/SmartDogHouse-Software | 00caf23e3fe8dae2d30c339f801d7c1a7ddca0c2 | [
"MIT"
] | 148 | 2021-05-17T10:03:52.000Z | 2021-07-25T15:44:10.000Z | src/main/python/sensor.py | SmartDogHouse/SmartDogHouse-Software | 00caf23e3fe8dae2d30c339f801d7c1a7ddca0c2 | [
"MIT"
] | 1 | 2021-06-27T17:25:20.000Z | 2021-06-27T17:25:20.000Z | class Sensor:
"""Sensor, measures an amount """
last_measure = -1
def __init__(self, range_min=0, range_max=4095, average_converging_speed=1 / 2):
""" constructor.
:param range_min: min value of sensor
:param range_max: max value of sensor
:param average_converging_speed: s... | 43.553191 | 116 | 0.612604 | 241 | 2,047 | 4.966805 | 0.298755 | 0.101086 | 0.110276 | 0.065163 | 0.133668 | 0.045113 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.296532 | 2,047 | 46 | 117 | 44.5 | 0.820139 | 0.291158 | 0 | 0.074074 | 0 | 0 | 0.061372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0 | 0 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05664b279496c8fa6ba8b914b16db1faf5c6d571 | 1,274 | py | Python | dashboard-project/dataset_importer/util.py | Sheepzez/dumfries-economic-dashboard | 6332772ccddca110d54a01cad38f6f720d05e798 | [
"Unlicense"
] | 1 | 2016-05-01T21:21:58.000Z | 2016-05-01T21:21:58.000Z | dashboard-project/dataset_importer/util.py | Sheepzez/dumfries-economic-dashboard | 6332772ccddca110d54a01cad38f6f720d05e798 | [
"Unlicense"
] | null | null | null | dashboard-project/dataset_importer/util.py | Sheepzez/dumfries-economic-dashboard | 6332772ccddca110d54a01cad38f6f720d05e798 | [
"Unlicense"
] | null | null | null | import json
from datetime import datetime, date
import dateutil.parser
class DatetimeEncoder(json.JSONEncoder):
"""
A type of JSONEncoder that knows how to handle date and datetime
objects. Serialises to a standard ISO format, which is
usable directly in JS.
"""
def default(self, obj):
... | 34.432432 | 88 | 0.572998 | 150 | 1,274 | 4.78 | 0.46 | 0.008368 | 0.039052 | 0.050209 | 0.080893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.306122 | 1,274 | 37 | 89 | 34.432432 | 0.811086 | 0.155416 | 0 | 0.16 | 0 | 0 | 0.040836 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.12 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0569de6a4140317817c866119c72f754afdc6c23 | 1,225 | py | Python | paperboy/resources/job.py | chris-aeviator/paperboy | 604c912c3530cd37fb07dcf22321d9dde15465ee | [
"Apache-2.0"
] | 233 | 2018-11-01T09:17:08.000Z | 2022-03-22T08:27:24.000Z | paperboy/resources/job.py | chris-aeviator/paperboy | 604c912c3530cd37fb07dcf22321d9dde15465ee | [
"Apache-2.0"
] | 99 | 2018-10-17T21:48:42.000Z | 2021-05-07T08:33:36.000Z | paperboy/resources/job.py | chris-aeviator/paperboy | 604c912c3530cd37fb07dcf22321d9dde15465ee | [
"Apache-2.0"
] | 29 | 2018-11-01T11:33:08.000Z | 2022-01-12T22:12:19.000Z | import json
from .base import BaseResource
class JobResource(BaseResource):
def __init__(self, *args, **kwargs):
super(JobResource, self).__init__(*args, **kwargs)
def on_get(self, req, resp):
'''List all job instances'''
resp.content_type = 'application/json'
resp.body = json... | 38.28125 | 118 | 0.64898 | 156 | 1,225 | 4.955128 | 0.307692 | 0.058215 | 0.062096 | 0.087969 | 0.688228 | 0.688228 | 0.688228 | 0.364812 | 0.364812 | 0.243208 | 0 | 0 | 0.200816 | 1,225 | 31 | 119 | 39.516129 | 0.789581 | 0.075918 | 0 | 0.333333 | 0 | 0 | 0.0681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.095238 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
056b69c9444f8493b7372c01c4b24da20accf1c6 | 22,089 | py | Python | tests/python/tests.py | carlschroedl/pivot | a1e4042e2b29d2e8323dece2558086a031250e88 | [
"Apache-2.0"
] | 10 | 2017-04-30T14:10:06.000Z | 2020-10-04T23:07:43.000Z | tests/python/tests.py | carlschroedl/pivot | a1e4042e2b29d2e8323dece2558086a031250e88 | [
"Apache-2.0"
] | 114 | 2017-05-19T17:21:59.000Z | 2021-06-29T12:40:21.000Z | tests/python/tests.py | carlschroedl/pivot | a1e4042e2b29d2e8323dece2558086a031250e88 | [
"Apache-2.0"
] | 12 | 2017-07-03T20:04:26.000Z | 2018-10-03T11:03:34.000Z | #!/usr/bin/env python
import os, sys, json, requests, time, re, argparse, inspect, random, itertools
from pivot_api import API
def flatten_results(results):
return list(itertools.chain(*results))
def test1(api):
users = api.load_users()
userA = users[0]
userB = users[1]
# election (A's view)
... | 35.570048 | 127 | 0.64385 | 2,831 | 22,089 | 4.8852 | 0.131756 | 0.075199 | 0.031815 | 0.031598 | 0.583297 | 0.552205 | 0.500217 | 0.467173 | 0.426175 | 0.396095 | 0 | 0.012592 | 0.216261 | 22,089 | 620 | 128 | 35.627419 | 0.786275 | 0.058581 | 0 | 0.503226 | 0 | 0 | 0.121839 | 0.005686 | 0 | 0 | 0 | 0.003226 | 0.178495 | 0 | null | null | 0.008602 | 0.010753 | null | null | 0.075269 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
056f6f4e5bf7e91b8c4f812eebcff126bf5bcaca | 4,373 | py | Python | MiniAttention/MiniAttention.py | rawaa123/MiniAttention | 98b4273ce571f05ca9943bbe45924ba1c6cfb702 | [
"MIT"
] | 5 | 2020-08-06T17:58:30.000Z | 2021-04-10T12:09:44.000Z | MiniAttention/MiniAttention.py | rawaa123/MiniAttention | 98b4273ce571f05ca9943bbe45924ba1c6cfb702 | [
"MIT"
] | 1 | 2020-09-02T18:52:39.000Z | 2020-09-02T18:52:39.000Z | MiniAttention/MiniAttention.py | rawaa123/MiniAttention | 98b4273ce571f05ca9943bbe45924ba1c6cfb702 | [
"MIT"
] | 4 | 2021-03-05T06:22:49.000Z | 2022-01-04T21:23:24.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 6 12:45:35 2020
@author: Abhilash
"""
import numpy as np
import pandas as pd
import tensorflow as tf
from tensorflow import keras
from keras import backend as k
from keras.layers import LSTM,Dense,Flatten,Bidirectional
from keras.activations import softmax,relu,elu,sigm... | 46.031579 | 157 | 0.715756 | 656 | 4,373 | 4.644817 | 0.295732 | 0.035445 | 0.01444 | 0.020676 | 0.087299 | 0.078766 | 0.056449 | 0.056449 | 0.03085 | 0.03085 | 0 | 0.009164 | 0.201464 | 4,373 | 94 | 158 | 46.521277 | 0.863402 | 0.41459 | 0 | 0.038462 | 0 | 0 | 0.014208 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.442308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05733b89e8fb587e3d04cf3d29728c0113d94a2d | 5,094 | py | Python | Asap-3.8.4/Test/MonteCarloOptim_NbList.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | 1 | 2021-10-19T11:35:34.000Z | 2021-10-19T11:35:34.000Z | Asap-3.8.4/Test/MonteCarloOptim_NbList.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | null | null | null | Asap-3.8.4/Test/MonteCarloOptim_NbList.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | 3 | 2016-07-18T19:22:48.000Z | 2021-07-06T03:06:42.000Z | from numpy import *
from asap3 import *
from ase.lattice.cubic import FaceCenteredCubic
from ase import data
from asap3.testtools import *
import time
#random.seed([114173, 98658])
listcutoff = 4.98409 # The EMT value for Cu
element = "Cu"
latconst = data.reference_states[data.atomic_numbers[element]]['a']
def che... | 33.513158 | 80 | 0.579309 | 697 | 5,094 | 4.17934 | 0.262554 | 0.013732 | 0.004119 | 0.008239 | 0.263989 | 0.139375 | 0.097494 | 0.097494 | 0.097494 | 0.097494 | 0 | 0.042307 | 0.271496 | 5,094 | 151 | 81 | 33.735099 | 0.742657 | 0.145073 | 0 | 0.144144 | 0 | 0 | 0.12549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054054 | null | null | 0.198198 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
057347ea03c1c02d6220fc31c0fc9879c70959b9 | 1,304 | py | Python | examples/variables01.py | gtaffoni/Learn-Python | dc7a56e05f9f5b47621e6f37a9cfb36b83926de9 | [
"Apache-2.0"
] | null | null | null | examples/variables01.py | gtaffoni/Learn-Python | dc7a56e05f9f5b47621e6f37a9cfb36b83926de9 | [
"Apache-2.0"
] | null | null | null | examples/variables01.py | gtaffoni/Learn-Python | dc7a56e05f9f5b47621e6f37a9cfb36b83926de9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#-----------------------------------------------------------------------------
#
# variables01.py
# Learn Python
#
# Created by giuliano taffoni on 31/03/17.
# Copyright 2017 Guliano Taffoni. All rights reserved.
#
# The full license is in the file LICENSE, distributed with this software.
#---... | 25.076923 | 78 | 0.525307 | 157 | 1,304 | 4.235669 | 0.471338 | 0.054135 | 0.052632 | 0.058647 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024494 | 0.279908 | 1,304 | 51 | 79 | 25.568627 | 0.683706 | 0.414877 | 0 | 0 | 0 | 0 | 0.297837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15 | null | null | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.