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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
114982c1eafc185c89486875155657b542342040 | 905 | py | Python | Day-48/Wiki_Interaction/interaction.py | MihirMore/100daysofcode-Python | 947d91842639c04ee7d23cc82bf04053d3982a85 | [
"MIT"
] | 4 | 2021-04-09T20:01:22.000Z | 2022-03-18T20:49:58.000Z | Day-48/Wiki_Interaction/interaction.py | MihirMore/100daysofcode-Python | 947d91842639c04ee7d23cc82bf04053d3982a85 | [
"MIT"
] | null | null | null | Day-48/Wiki_Interaction/interaction.py | MihirMore/100daysofcode-Python | 947d91842639c04ee7d23cc82bf04053d3982a85 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
chrome_driver_path = "C:\Program Files\chromedriver_win32\chromedriver.exe"
driver = webdriver.Chrome(executable_path=chrome_driver_path)
driver.get("http://secure-retreat-92358.herokuapp.com/")
number_of_articles = driver.find_element_by_... | 33.518519 | 75 | 0.81989 | 136 | 905 | 5.102941 | 0.411765 | 0.100865 | 0.17147 | 0.191643 | 0.230548 | 0.164265 | 0 | 0 | 0 | 0 | 0 | 0.011751 | 0.059669 | 905 | 26 | 76 | 34.807692 | 0.80376 | 0 | 0 | 0 | 0 | 0 | 0.207735 | 0.068508 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 0.047619 | 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 |
114cf40c68698e4730b54f9bd545e4c801a6aab5 | 38,882 | py | Python | code/prediction/methods.py | philipversteeg/validation-yeast | a977a2b038618530b75577495ade6b7a9e728da4 | [
"BSD-2-Clause"
] | 1 | 2018-02-15T10:50:56.000Z | 2018-02-15T10:50:56.000Z | code/prediction/methods.py | philipversteeg/validation-yeast | a977a2b038618530b75577495ade6b7a9e728da4 | [
"BSD-2-Clause"
] | null | null | null | code/prediction/methods.py | philipversteeg/validation-yeast | a977a2b038618530b75577495ade6b7a9e728da4 | [
"BSD-2-Clause"
] | null | null | null | """Methods that predict a causal effect.
Instantiate class and call fit method.
"""
# stdlib
import os
import time
import abc
from functools import wraps
import tempfile
from subprocess import check_call
# math stats ml
import numpy as np
from scipy.stats import kendalltau, spearmanr
from scipy.spatial.distance impor... | 44.950289 | 152 | 0.63559 | 4,763 | 38,882 | 5.009238 | 0.116103 | 0.032189 | 0.017436 | 0.015089 | 0.604719 | 0.575045 | 0.550275 | 0.531162 | 0.525253 | 0.509661 | 0 | 0.003534 | 0.250476 | 38,882 | 864 | 153 | 45.002315 | 0.815153 | 0.093565 | 0 | 0.496109 | 0 | 0 | 0.072776 | 0.008102 | 0 | 0 | 0 | 0 | 0.011673 | 0 | null | null | 0.003891 | 0.025292 | null | null | 0.046693 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
11616f7ff348fb772c0e34cfec05b99915aec2d5 | 2,219 | py | Python | Source/FaceRecognition/Agents/SystemAgent.py | robertkarol/ReDe-Multiagent-Face-Recognition-System | df17cebecc51b2fafb01e07a9bb68e9e4e04163a | [
"MIT"
] | null | null | null | Source/FaceRecognition/Agents/SystemAgent.py | robertkarol/ReDe-Multiagent-Face-Recognition-System | df17cebecc51b2fafb01e07a9bb68e9e4e04163a | [
"MIT"
] | 7 | 2020-04-24T08:22:20.000Z | 2021-05-21T16:11:52.000Z | Source/FaceRecognition/Agents/SystemAgent.py | robertkarol/ReDe-Multiagent-Face-Recognition-System | df17cebecc51b2fafb01e07a9bb68e9e4e04163a | [
"MIT"
] | 1 | 2020-04-26T15:05:07.000Z | 2020-04-26T15:05:07.000Z | from Utils.Logging import LoggingMixin
from spade.agent import Agent
from spade.behaviour import CyclicBehaviour
from spade.message import Message
class SystemAgent(Agent, LoggingMixin):
class MessageReceiverBehavior(CyclicBehaviour):
def __init__(self, outer_ref):
super().__init__()
... | 40.345455 | 102 | 0.652546 | 261 | 2,219 | 5.203065 | 0.291188 | 0.088365 | 0.123711 | 0.055228 | 0.199558 | 0.177467 | 0.133284 | 0.133284 | 0.133284 | 0.133284 | 0 | 0.001196 | 0.246507 | 2,219 | 54 | 103 | 41.092593 | 0.811005 | 0 | 0 | 0 | 0 | 0 | 0.177557 | 0.049572 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.068182 | 0.090909 | 0.022727 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fec85595764c3c86cb185b82f1f42e05a9165c3a | 1,072 | py | Python | 8. md_main.py | PuneethKouloorkar/SPC-Water-Model | faa18fe344dee47eb8eb8e939bd15c5876af12e4 | [
"MIT"
] | null | null | null | 8. md_main.py | PuneethKouloorkar/SPC-Water-Model | faa18fe344dee47eb8eb8e939bd15c5876af12e4 | [
"MIT"
] | null | null | null | 8. md_main.py | PuneethKouloorkar/SPC-Water-Model | faa18fe344dee47eb8eb8e939bd15c5876af12e4 | [
"MIT"
] | null | null | null | import numpy as np
from md_sim import *
import matplotlib.pyplot as plt
# notes on input file format : col 0 = molecule number, col 1 = mass, col 2= molecule number, col 3-5 = positions
def main():
<<<<<<< HEAD
if timestep % dump_frequency == 0:
total_energy, temperature = simulation.calculate_hamiltonia... | 25.52381 | 114 | 0.724813 | 127 | 1,072 | 5.889764 | 0.527559 | 0.085562 | 0.045455 | 0.085562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01676 | 0.165112 | 1,072 | 41 | 115 | 26.146341 | 0.818994 | 0 | 0 | 0.076923 | 0 | 0 | 0.020311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115385 | 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 |
fedc78485617cf899bd5b7b29bb874dc769d7645 | 499 | py | Python | SWIM-Executables/Windows/pyinstaller-2.0 for windows/buildtests/import/relimp/relimp/relimp2.py | alexsigaras/SWIM | 1a35df8acb26bdcb307a1b8f60e9feba68ed1715 | [
"MIT"
] | 47 | 2020-03-08T08:43:28.000Z | 2022-03-18T18:51:55.000Z | SWIM-Executables/Windows/pyinstaller-2.0 for windows/buildtests/import/relimp/relimp/relimp2.py | alexsigaras/SWIM | 1a35df8acb26bdcb307a1b8f60e9feba68ed1715 | [
"MIT"
] | null | null | null | SWIM-Executables/Windows/pyinstaller-2.0 for windows/buildtests/import/relimp/relimp/relimp2.py | alexsigaras/SWIM | 1a35df8acb26bdcb307a1b8f60e9feba68ed1715 | [
"MIT"
] | 16 | 2020-03-08T08:43:30.000Z | 2022-01-10T22:05:57.000Z |
from __future__ import absolute_import
name = 'relimp.relimp.relimp2'
from . import relimp3
assert relimp3.name == 'relimp.relimp.relimp3'
from .. import relimp
assert relimp.name == 'relimp.relimp'
import relimp
assert relimp.name == 'relimp'
import relimp.relimp2
assert relimp.relimp2.name == 'relimp.relimp2'
... | 21.695652 | 60 | 0.757515 | 69 | 499 | 5.405797 | 0.376812 | 0.160858 | 0.128686 | 0.128686 | 0.182306 | 0.182306 | 0 | 0 | 0 | 0 | 0 | 0.023474 | 0.146293 | 499 | 22 | 61 | 22.681818 | 0.852113 | 0.338677 | 0 | 0 | 0 | 0 | 0.232198 | 0.130031 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
fedec09d5298e2f77cfb19a2c659a369f1a2f996 | 560 | py | Python | OpenCV/networktablesaddon.py | cyamonide/FRC-2017 | 1726f844ccf15d94f966669e21db583dcf4cf78b | [
"MIT"
] | null | null | null | OpenCV/networktablesaddon.py | cyamonide/FRC-2017 | 1726f844ccf15d94f966669e21db583dcf4cf78b | [
"MIT"
] | null | null | null | OpenCV/networktablesaddon.py | cyamonide/FRC-2017 | 1726f844ccf15d94f966669e21db583dcf4cf78b | [
"MIT"
] | null | null | null | from networktables import NetworkTable
import logging
logging.basicConfig(level=logging.DEBUG) # enables logging for pynetworktables
NetworkTable.setIPAddress("roboRIO-4914-FRC.local")
NetworkTable.setClientMode()
NewtorkTable.initialize()
table = NetworkTable.getTable("ContoursReport")
while True:
if len(filtere... | 29.473684 | 78 | 0.705357 | 60 | 560 | 6.583333 | 0.566667 | 0.212658 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019355 | 0.169643 | 560 | 18 | 79 | 31.111111 | 0.830108 | 0.0625 | 0 | 0 | 0 | 0 | 0.114723 | 0.042065 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
fedf02b8834a72ff1654ca6da113bca8d04dd2c6 | 639 | py | Python | serializers/Base_Serializer.py | AdarshK1/rosbag-dl-utils-mirror | 6139b8a7d43ecd43c4ec079d2f673540491692ce | [
"Apache-2.0"
] | null | null | null | serializers/Base_Serializer.py | AdarshK1/rosbag-dl-utils-mirror | 6139b8a7d43ecd43c4ec079d2f673540491692ce | [
"Apache-2.0"
] | null | null | null | serializers/Base_Serializer.py | AdarshK1/rosbag-dl-utils-mirror | 6139b8a7d43ecd43c4ec079d2f673540491692ce | [
"Apache-2.0"
] | null | null | null | """
Copyright (C) Ghost Robotics - All Rights Reserved
Written by Adarsh Kulkarni <adarsh@ghostrobotics.io>
"""
import os
import rospy
class BaseSerializer:
def __init__(self, topic_name='', skip_frame=1, directory_name='./', bag_file=''):
self.dir_name = directory_name
self.counter = 0
se... | 26.625 | 86 | 0.611894 | 78 | 639 | 4.74359 | 0.589744 | 0.072973 | 0.12973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014463 | 0.242567 | 639 | 23 | 87 | 27.782609 | 0.75 | 0.161189 | 0 | 0 | 0 | 0 | 0.024621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fee29afa34d238876897d0acab6b817ef8b6e8f5 | 1,723 | py | Python | learning_journal/security.py | han8909227/pyramid-learning-journal | c08e63756ae8d466b5efcbf00b1631b57391bf34 | [
"MIT"
] | null | null | null | learning_journal/security.py | han8909227/pyramid-learning-journal | c08e63756ae8d466b5efcbf00b1631b57391bf34 | [
"MIT"
] | 3 | 2019-12-26T16:39:26.000Z | 2021-06-01T21:55:48.000Z | learning_journal/security.py | han8909227/pyramid-learning-journal | c08e63756ae8d466b5efcbf00b1631b57391bf34 | [
"MIT"
] | null | null | null | """Configure and hold all pertinent security information for the app."""
import os
from pyramid.authentication import AuthTktAuthenticationPolicy
from pyramid.authorization import ACLAuthorizationPolicy
from pyramid.security import Authenticated
from pyramid.security import Allow
from passlib.apps import custom_app_con... | 32.509434 | 77 | 0.724898 | 201 | 1,723 | 6.00995 | 0.427861 | 0.052152 | 0.039735 | 0.039735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002132 | 0.183401 | 1,723 | 52 | 78 | 33.134615 | 0.856432 | 0.204295 | 0 | 0 | 0 | 0 | 0.047015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0.09375 | 0.21875 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fee7ee08afbf0b8a989c0954b49afad23fe38ec9 | 1,670 | py | Python | pizza_box/handlers.py | jklynch/pizza-box | 6d669413f28c188f00d46e843f2d362651ab3e38 | [
"BSD-3-Clause"
] | null | null | null | pizza_box/handlers.py | jklynch/pizza-box | 6d669413f28c188f00d46e843f2d362651ab3e38 | [
"BSD-3-Clause"
] | 8 | 2020-10-09T19:59:18.000Z | 2020-10-16T16:27:29.000Z | pizza_box/handlers.py | jklynch/pizza-box | 6d669413f28c188f00d46e843f2d362651ab3e38 | [
"BSD-3-Clause"
] | 1 | 2020-10-16T14:50:41.000Z | 2020-10-16T14:50:41.000Z | import os
import numpy as np
import pandas as pd
from databroker.assets.handlers_base import HandlerBase
class APBBinFileHandler(HandlerBase):
"Read electrometer *.bin files"
def __init__(self, fpath):
# It's a text config file, which we don't store in the resources yet, parsing for now
fpat... | 37.954545 | 98 | 0.579042 | 231 | 1,670 | 4.04329 | 0.454545 | 0.089936 | 0.019272 | 0.041756 | 0.036403 | 0.036403 | 0 | 0 | 0 | 0 | 0 | 0.031822 | 0.247305 | 1,670 | 43 | 99 | 38.837209 | 0.711217 | 0.298204 | 0 | 0 | 0 | 0 | 0.081308 | 0.026823 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0.038462 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fef44bf3d10e54f43ff548c27fb11dca9ca7df02 | 2,211 | py | Python | smoke_test.py | rphilander/proteus | 840ed265131c7399b983802afaae61306f02ba3b | [
"MIT"
] | null | null | null | smoke_test.py | rphilander/proteus | 840ed265131c7399b983802afaae61306f02ba3b | [
"MIT"
] | null | null | null | smoke_test.py | rphilander/proteus | 840ed265131c7399b983802afaae61306f02ba3b | [
"MIT"
] | null | null | null | import unittest
from core import Atom, AtomIndex, interpret, Query
from database import DB
import grammar
import rows2atoms
test_data = [ '\t'.join(['Manster Bones', '27', 'United States', '2012', 'Bowling', '2', '1', '0', '3']) ]
class SmokeTests(unittest.TestCase):
@classmethod
def setUpClass(cls):
... | 33.5 | 106 | 0.655812 | 285 | 2,211 | 4.901754 | 0.315789 | 0.064424 | 0.042949 | 0.07874 | 0.262706 | 0.241947 | 0.186113 | 0.150322 | 0.150322 | 0.150322 | 0 | 0.013929 | 0.220715 | 2,211 | 65 | 107 | 34.015385 | 0.796866 | 0 | 0 | 0.16 | 0 | 0 | 0.108548 | 0 | 0 | 0 | 0 | 0 | 0.14 | 0 | null | null | 0 | 0.1 | null | null | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fefbb710d46a9fb17ee87caf2a317902a57554c4 | 527 | py | Python | python/EXERCICIO 71 - SIMULADOR DO CAIXA ELETRONICO.py | debor4h/exerciciosPython | a18d88c6e98bc49005bfcb8badeb712007c16d69 | [
"MIT"
] | 1 | 2022-03-15T02:25:17.000Z | 2022-03-15T02:25:17.000Z | python/EXERCICIO 71 - SIMULADOR DO CAIXA ELETRONICO.py | debor4h/exerciciosPython | a18d88c6e98bc49005bfcb8badeb712007c16d69 | [
"MIT"
] | null | null | null | python/EXERCICIO 71 - SIMULADOR DO CAIXA ELETRONICO.py | debor4h/exerciciosPython | a18d88c6e98bc49005bfcb8badeb712007c16d69 | [
"MIT"
] | null | null | null | #071)Simular caixa eletronico, celulas 50,20,10,1 R$.EX: 100 e duas celulas de 50
#FORMA SEM O WHILE
saque = float(input('Qual valor você quer sacar? R$ '))
if saque == 0 or saque < 0:
print('Digite um valor acima de ZERO, por favor!')
cinquenta = saque//50
vinte = (saque%50)//20
dez = ((saque%50)%20)//10
um = ((saq... | 29.277778 | 81 | 0.658444 | 101 | 527 | 3.435644 | 0.435644 | 0.080692 | 0.126801 | 0.149856 | 0.086455 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100687 | 0.170778 | 527 | 17 | 82 | 31 | 0.693364 | 0.184061 | 0 | 0 | 0 | 0 | 0.518779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
fefce0ce72b4f6e85489a872e47be3071b0cfb24 | 498 | py | Python | authentication/admin.py | shayweitzman/MyAutoBook | b5451e6d2db07c839b61802f94b57824a6b17da8 | [
"Unlicense"
] | 1 | 2022-01-24T15:49:32.000Z | 2022-01-24T15:49:32.000Z | authentication/admin.py | shayweitzman/MyAutoBook | b5451e6d2db07c839b61802f94b57824a6b17da8 | [
"Unlicense"
] | null | null | null | authentication/admin.py | shayweitzman/MyAutoBook | b5451e6d2db07c839b61802f94b57824a6b17da8 | [
"Unlicense"
] | 2 | 2021-01-03T15:19:05.000Z | 2021-01-14T08:14:12.000Z | from django.contrib import admin
from .models import Student,Adult
class AdultAdmin(admin.ModelAdmin):
search_fields = ['user__first_name', 'user__last_name','ID_Number' ,'id','user__username',]
list_display = ('user','id','ID_Number',)
class StudentAdmin(admin.ModelAdmin):
search_fields = ['user__first_n... | 33.2 | 95 | 0.742972 | 64 | 498 | 5.4375 | 0.40625 | 0.086207 | 0.12069 | 0.155172 | 0.477011 | 0.477011 | 0.310345 | 0.310345 | 0.310345 | 0.310345 | 0 | 0 | 0.096386 | 498 | 14 | 96 | 35.571429 | 0.773333 | 0 | 0 | 0 | 0 | 0 | 0.269076 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fefe1c353f7dc38d6a35b46761349e5e0da4fc45 | 196 | py | Python | sikulix4python/sxclasses.py | cdlaimin/sikulix4python | 66d4f529a60dd802b73900f1baa858eaad454867 | [
"MIT"
] | 71 | 2019-03-15T10:08:54.000Z | 2022-01-20T20:40:31.000Z | sikulix4python/sxclasses.py | cdlaimin/sikulix4python | 66d4f529a60dd802b73900f1baa858eaad454867 | [
"MIT"
] | 10 | 2019-04-10T02:27:52.000Z | 2022-02-16T10:37:16.000Z | sikulix4python/sxclasses.py | cdlaimin/sikulix4python | 66d4f529a60dd802b73900f1baa858eaad454867 | [
"MIT"
] | 28 | 2019-03-19T10:50:50.000Z | 2022-02-24T15:37:18.000Z | from . sxbase import *
from . sxregion import Region
class Screen(Region):
SXClass = SXScreen
class Location(SXBase):
SXClass = SXLocation
class Image(SXBase):
SXClass = SXImage
| 13.066667 | 29 | 0.704082 | 22 | 196 | 6.272727 | 0.590909 | 0.188406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219388 | 196 | 14 | 30 | 14 | 0.901961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fefea3bd651ce6a122ed7dddb4420015f863dc88 | 363 | py | Python | sumultiply.py | GraceAKelly/Is-it-Tuesday | 9fcec0ca650189c993c86def52b49758cd0cc73c | [
"Apache-2.0"
] | null | null | null | sumultiply.py | GraceAKelly/Is-it-Tuesday | 9fcec0ca650189c993c86def52b49758cd0cc73c | [
"Apache-2.0"
] | null | null | null | sumultiply.py | GraceAKelly/Is-it-Tuesday | 9fcec0ca650189c993c86def52b49758cd0cc73c | [
"Apache-2.0"
] | null | null | null | # Grace Kelly
# 08 March 2018
# Practice problem 1
# Use summultiple function
# # https://github.com/ianmcloughlin/problems-python-fundamentals
def sumultiply(x, y): # Define optput required
total = 0
for i in range(y):
total = total + x # Change definition of total Loop y and add x to total
return total
print(sum... | 24.2 | 72 | 0.735537 | 56 | 363 | 4.767857 | 0.785714 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052805 | 0.165289 | 363 | 14 | 73 | 25.928571 | 0.828383 | 0.575758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3a05fb6f6850d68b21428ab2f1a6b361ef30667b | 426 | py | Python | 2-python-intermediario (Programacao Procedural)/aula16-reduce/aula16-reduce.py | Leodf/projetos-python | 64e6262e6535d92624ad50148634d881608a7523 | [
"MIT"
] | null | null | null | 2-python-intermediario (Programacao Procedural)/aula16-reduce/aula16-reduce.py | Leodf/projetos-python | 64e6262e6535d92624ad50148634d881608a7523 | [
"MIT"
] | null | null | null | 2-python-intermediario (Programacao Procedural)/aula16-reduce/aula16-reduce.py | Leodf/projetos-python | 64e6262e6535d92624ad50148634d881608a7523 | [
"MIT"
] | null | null | null |
from dados import pessoas, produtos, lista
from functools import reduce
"""
acumula = 0
for item in lista:
acumula += item
print(acumula)
"""
# soma_lista = reduce(lambda ac, i: i + ac, lista, 0)
# print(soma_lista)
# soma_precos = reduce(lambda ac, p: p['preco'] + ac, produtos, 0)
# print(soma_precos / len(pro... | 22.421053 | 66 | 0.685446 | 65 | 426 | 4.4 | 0.369231 | 0.125874 | 0.146853 | 0.104895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011299 | 0.169014 | 426 | 19 | 67 | 22.421053 | 0.79661 | 0.396714 | 0 | 0 | 0 | 0 | 0.02809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3a0beb6d01c78f817e3730d7d0fd9c80e33ee184 | 2,684 | py | Python | py/dd_sliceapply_all.py | bcgov/diutils | caf510c81f7f43372d4a8e18f77eaa86cdede6a5 | [
"Apache-2.0"
] | null | null | null | py/dd_sliceapply_all.py | bcgov/diutils | caf510c81f7f43372d4a8e18f77eaa86cdede6a5 | [
"Apache-2.0"
] | 1 | 2020-12-14T22:00:24.000Z | 2020-12-14T22:00:24.000Z | py/dd_sliceapply_all.py | bcgov/diutils | caf510c81f7f43372d4a8e18f77eaa86cdede6a5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Province of British Columbia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 35.315789 | 121 | 0.637854 | 403 | 2,684 | 4.176179 | 0.414392 | 0.035651 | 0.032086 | 0.03268 | 0.124183 | 0.079026 | 0.039216 | 0.039216 | 0 | 0 | 0 | 0.012008 | 0.224292 | 2,684 | 75 | 122 | 35.786667 | 0.79635 | 0.243666 | 0 | 0.090909 | 0 | 0.022727 | 0.362493 | 0.089576 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068182 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3a11b5a5fbec933a09e6cee949e08c1de8d780ad | 639 | py | Python | tests/Handlers/test_DictionaryDeserializer.py | TheBoringBakery/Riot-Watcher | 6e05fffe127530a75fd63e67da37ba81489fd4fe | [
"MIT"
] | 489 | 2015-01-04T22:49:51.000Z | 2022-03-28T03:15:54.000Z | tests/Handlers/test_DictionaryDeserializer.py | TheBoringBakery/Riot-Watcher | 6e05fffe127530a75fd63e67da37ba81489fd4fe | [
"MIT"
] | 162 | 2015-02-09T22:10:40.000Z | 2022-02-22T13:48:50.000Z | tests/Handlers/test_DictionaryDeserializer.py | TheBoringBakery/Riot-Watcher | 6e05fffe127530a75fd63e67da37ba81489fd4fe | [
"MIT"
] | 221 | 2015-01-07T18:01:57.000Z | 2022-03-26T21:18:48.000Z | import json
import pytest
from riotwatcher.Handlers import DictionaryDeserializer
@pytest.mark.unit
class TestDictionaryDeserializer:
def test_basic_json(self):
deserializer = DictionaryDeserializer()
expected = {
"test": {"object": "type", "int": 1},
"bool": True,
... | 22.034483 | 71 | 0.605634 | 53 | 639 | 7.226415 | 0.584906 | 0.036554 | 0.198433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002137 | 0.267606 | 639 | 28 | 72 | 22.821429 | 0.816239 | 0 | 0 | 0.111111 | 0 | 0 | 0.054773 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
3a1b8944c0642a7777a795999a67ab6ebd1571e2 | 48,448 | py | Python | bco_api/api/views.py | biocompute-objects/bco_api | 981341ca2074d337e66e78096397e8fbbcbebc6e | [
"MIT"
] | 1 | 2022-03-09T15:25:39.000Z | 2022-03-09T15:25:39.000Z | bco_api/api/views.py | biocompute-objects/bco_api | 981341ca2074d337e66e78096397e8fbbcbebc6e | [
"MIT"
] | 46 | 2021-06-17T19:43:04.000Z | 2022-03-29T13:43:10.000Z | bco_api/api/views.py | biocompute-objects/bco_api | 981341ca2074d337e66e78096397e8fbbcbebc6e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""BCODB views
Django views for BCODB API
"""
# Based on the "Class Based API View" example at
# https://codeloop.org/django-rest-framework-course-for-beginners/
# For instructions on calling class methods from other classes, see
# https://stackoverflow.com/questions/3856413/call-class-method-f... | 40.988156 | 204 | 0.602481 | 5,071 | 48,448 | 5.573457 | 0.100769 | 0.043591 | 0.059442 | 0.085766 | 0.709656 | 0.663871 | 0.634929 | 0.591869 | 0.548066 | 0.500053 | 0 | 0.013897 | 0.297494 | 48,448 | 1,181 | 205 | 41.022862 | 0.816512 | 0.21295 | 0 | 0.500745 | 0 | 0 | 0.210509 | 0.018573 | 0 | 0 | 0 | 0.012701 | 0 | 1 | 0.043219 | false | 0 | 0.052161 | 0.032787 | 0.262295 | 0.00149 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
3a1e6a198dcf50b50fb2545838efd78b66c406d3 | 2,829 | py | Python | justify.py | teared/sublime-justify | 01e3f8f5464b42374934022d9520df6fa7f78403 | [
"Unlicense"
] | 3 | 2015-06-30T15:16:51.000Z | 2018-02-11T01:48:58.000Z | justify.py | teared/sublime-justify | 01e3f8f5464b42374934022d9520df6fa7f78403 | [
"Unlicense"
] | null | null | null | justify.py | teared/sublime-justify | 01e3f8f5464b42374934022d9520df6fa7f78403 | [
"Unlicense"
] | 2 | 2019-05-03T00:17:29.000Z | 2021-04-05T23:25:35.000Z | import re
import sublime
import sublime_plugin
from Default.paragraph import *
from Default.paragraph import OldWrapLinesCommand as WrapLinesCommand
from . import jtextwrap as textwrap
class WrapLinesJustifiedCommand(WrapLinesCommand):
''' Same as parent, except using jtextwrap. '''
def __init__(self, *args, *... | 34.084337 | 82 | 0.533404 | 326 | 2,829 | 4.542945 | 0.358896 | 0.086428 | 0.051992 | 0.076975 | 0.232951 | 0.19919 | 0.081026 | 0.040513 | 0 | 0 | 0 | 0.00732 | 0.372216 | 2,829 | 82 | 83 | 34.5 | 0.826577 | 0.13397 | 0 | 0.266667 | 0 | 0 | 0.020517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.066667 | 0.1 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3a285a04cd8f3ef4e3f982128d534efd911e7580 | 1,116 | py | Python | extensions/utils/plugging.py | taciturasa/atteybot-neo | e0d8953e58f74dda19f14cbecc5644978c233559 | [
"MIT"
] | 1 | 2020-03-13T23:45:46.000Z | 2020-03-13T23:45:46.000Z | extensions/utils/plugging.py | taciturasa/atteybot-neo | e0d8953e58f74dda19f14cbecc5644978c233559 | [
"MIT"
] | null | null | null | extensions/utils/plugging.py | taciturasa/atteybot-neo | e0d8953e58f74dda19f14cbecc5644978c233559 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# attey plugging util
# Provides utils for dealing with plugs and entries inside panels.
'''Plugging File'''
import discord
from discord.ext import commands
import rethinkdb
from extensions.utils import logging
def entry():
def inner():
...
return inner
def selection():
... | 21.461538 | 66 | 0.558244 | 125 | 1,116 | 4.896 | 0.448 | 0.039216 | 0.068627 | 0.093137 | 0.333333 | 0.261438 | 0.160131 | 0.160131 | 0.160131 | 0 | 0 | 0.00134 | 0.331541 | 1,116 | 52 | 67 | 21.461538 | 0.819035 | 0.147849 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 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 |
3a3eb74c989c102fd4cd8127b399fa9a8ebee1d5 | 6,624 | py | Python | src/mapstp/cli/runner.py | MC-kit/map-stp | a82b6560358a37f704fd0fe76c76def27a15458d | [
"MIT"
] | null | null | null | src/mapstp/cli/runner.py | MC-kit/map-stp | a82b6560358a37f704fd0fe76c76def27a15458d | [
"MIT"
] | 19 | 2021-11-29T10:29:30.000Z | 2022-03-17T11:21:08.000Z | src/mapstp/cli/runner.py | MC-kit/map-stp | a82b6560358a37f704fd0fe76c76def27a15458d | [
"MIT"
] | null | null | null | """Application to transfer meta information from STP.
For given STP file creates Excel table with a list
of STP paths to STP components, corresponding to cells
in MCNP model, would it be generated from the STP with SuperMC.
The excel also contains material numbers, densities, correction factors,
and RWCL id. The valu... | 29.309735 | 97 | 0.698521 | 886 | 6,624 | 5.065463 | 0.276524 | 0.018048 | 0.026738 | 0.02139 | 0.260918 | 0.256907 | 0.256907 | 0.256016 | 0.256016 | 0.22861 | 0 | 0.000754 | 0.199275 | 6,624 | 225 | 98 | 29.44 | 0.8454 | 0.320199 | 0 | 0.158273 | 1 | 0 | 0.376038 | 0.010321 | 0 | 0 | 0 | 0.004444 | 0 | 1 | 0.007194 | false | 0.007194 | 0.071942 | 0 | 0.093525 | 0.007194 | 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 |
3a43951afa3f066a82a397d1838189f905b735a2 | 9,401 | py | Python | strategies/analyser.py | Sytten/artis | fd407b4558212c435abf8f697ea7891c5375a10e | [
"MIT"
] | 6 | 2018-12-17T19:43:26.000Z | 2021-12-19T22:49:13.000Z | strategies/analyser.py | Sytten/artis | fd407b4558212c435abf8f697ea7891c5375a10e | [
"MIT"
] | null | null | null | strategies/analyser.py | Sytten/artis | fd407b4558212c435abf8f697ea7891c5375a10e | [
"MIT"
] | 1 | 2019-09-19T05:30:53.000Z | 2019-09-19T05:30:53.000Z | import logging
import ccxt.async as ccxt
from liqui import Liqui
from binance.client import Client
from database.models.types import Types
from database.models.status import Status
from dynaconf import settings
logger = logging.getLogger(__name__)
class CoinAnalysis(object):
def __init__(self, coin=None, origin=... | 38.371429 | 119 | 0.598979 | 1,050 | 9,401 | 5.247619 | 0.122857 | 0.039201 | 0.050091 | 0.062613 | 0.5951 | 0.523049 | 0.497278 | 0.403085 | 0.350817 | 0.321779 | 0 | 0.003992 | 0.280502 | 9,401 | 244 | 120 | 38.528689 | 0.810615 | 0.033401 | 0 | 0.457286 | 0 | 0 | 0.141975 | 0 | 0 | 0 | 0 | 0.004098 | 0 | 0 | null | null | 0 | 0.035176 | 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 |
3a4866f725785121d1fcb79febeec99cffaf0c12 | 2,848 | py | Python | xdev/__init__.py | Erotemic/xdev | 86d11305d1c6c54188a012fc61f82cb60c496f38 | [
"Apache-2.0"
] | 3 | 2019-03-04T02:49:22.000Z | 2022-02-08T14:41:23.000Z | xdev/__init__.py | Erotemic/xdev | 86d11305d1c6c54188a012fc61f82cb60c496f38 | [
"Apache-2.0"
] | 4 | 2021-10-05T21:11:38.000Z | 2022-03-25T17:41:10.000Z | xdev/__init__.py | Erotemic/xdev | 86d11305d1c6c54188a012fc61f82cb60c496f38 | [
"Apache-2.0"
] | null | null | null | """
This is Jon Crall's xdev module.
These are tools I often use in IPython, but they almost never make it into
production code, otherwise they would be in :mod:`ubelt`.
"""
__dev__ = """
CommandLine:
# Regenerate the tail of this file
mkinit ~/code/xdev/xdev -w
TODO:
- [ ] Update mkinit so we can either... | 33.505882 | 79 | 0.696278 | 342 | 2,848 | 5.538012 | 0.418129 | 0.088701 | 0.073918 | 0.023231 | 0.057022 | 0.027455 | 0 | 0 | 0 | 0 | 0 | 0.002644 | 0.203301 | 2,848 | 84 | 80 | 33.904762 | 0.832085 | 0.069522 | 0 | 0 | 0 | 0 | 0.397348 | 0.029545 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.015873 | 0.380952 | 0 | 0.380952 | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3a55f3e8a524f3f8e4a51c0525886b03c3bb8dbd | 10,695 | py | Python | undaqTools/tests/test_element.py | rogerlew/undaqTools | 5010e6ab303bd8664d28e4eea839c258791cf6dd | [
"Apache-2.0"
] | null | null | null | undaqTools/tests/test_element.py | rogerlew/undaqTools | 5010e6ab303bd8664d28e4eea839c258791cf6dd | [
"Apache-2.0"
] | 1 | 2021-07-08T15:56:06.000Z | 2021-07-27T18:34:58.000Z | undaqTools/tests/test_element.py | rogerlew/undaqTools | 5010e6ab303bd8664d28e4eea839c258791cf6dd | [
"Apache-2.0"
] | 6 | 2016-10-04T21:23:52.000Z | 2021-07-09T12:31:28.000Z | from __future__ import print_function
# Copyright (c) 2013, Roger Lew
# All rights reserved.
import os
import unittest
import numpy as np
from scipy.signal import detrend
from numpy.testing import assert_array_equal
from undaqTools import Daq, Element, fslice, findex
test_file = 'data reduction_20130204125617.daq'... | 33.317757 | 92 | 0.490697 | 1,408 | 10,695 | 3.619318 | 0.134233 | 0.065934 | 0.095369 | 0.122449 | 0.714482 | 0.681515 | 0.670722 | 0.633438 | 0.605377 | 0.584184 | 0 | 0.157223 | 0.369612 | 10,695 | 320 | 93 | 33.421875 | 0.598635 | 0.119682 | 0 | 0.640553 | 0 | 0 | 0.041608 | 0.003058 | 0 | 0 | 0 | 0 | 0.175115 | 0 | null | null | 0.009217 | 0.032258 | null | null | 0.004608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3a5ac07cccea483bf853a4345f93bbf45c33210a | 865 | py | Python | meiduo_mall/meiduo_mall/apps/meiduo_admin/views/order.py | ZHD165/Django_- | f89c80a22c5065b46900a20bd505614b5bcb2e6e | [
"MIT"
] | null | null | null | meiduo_mall/meiduo_mall/apps/meiduo_admin/views/order.py | ZHD165/Django_- | f89c80a22c5065b46900a20bd505614b5bcb2e6e | [
"MIT"
] | null | null | null | meiduo_mall/meiduo_mall/apps/meiduo_admin/views/order.py | ZHD165/Django_- | f89c80a22c5065b46900a20bd505614b5bcb2e6e | [
"MIT"
] | null | null | null | from rest_framework.viewsets import ModelViewSet
from orders.models import OrderInfo
from meiduo_admin.utils import PageNum
from meiduo_admin.serializers.order import OrderSeriazlier
from rest_framework.decorators import action
from rest_framework.response import Response
class OrdersView(ModelViewSet):
serializer... | 29.827586 | 58 | 0.678613 | 92 | 865 | 6.26087 | 0.51087 | 0.041667 | 0.088542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241619 | 865 | 28 | 59 | 30.892857 | 0.878049 | 0.056647 | 0 | 0 | 0 | 0 | 0.028395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | 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 |
28a6d45bc92a6e1abe55be5dd9e692195ef620d8 | 4,170 | py | Python | analysis_tools/PYTHON_RICARDO/rpl/tools/voxelization/test_intersection.py | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | analysis_tools/PYTHON_RICARDO/rpl/tools/voxelization/test_intersection.py | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | analysis_tools/PYTHON_RICARDO/rpl/tools/voxelization/test_intersection.py | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | """ Represent a triangulated surface using a 3D boolean grid"""
import numpy as np
from scipy import ndimage
import matplotlib.pyplot as plt
import matplotlib.cm as cm
voxel_size = 0.05
#stl_file = "50_standing"
#stl_file = "50p_hunch8"
stl_file = "volume_w_seats"
file_name = "voxels_temp_" + stl_file ... | 30.661765 | 134 | 0.561631 | 576 | 4,170 | 3.798611 | 0.184028 | 0.095978 | 0.077697 | 0.035192 | 0.450183 | 0.430987 | 0.332724 | 0.273309 | 0.143967 | 0.143967 | 0 | 0.022976 | 0.321583 | 4,170 | 136 | 135 | 30.661765 | 0.750442 | 0.1753 | 0 | 0.136364 | 0 | 0 | 0.032451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.060606 | null | null | 0.106061 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
28a8c51ef0a5f90d220349580731047b34d9dde8 | 2,459 | py | Python | scripts/import-ig-siis.py | firebird631/siis | 8d64e8fb67619aaa5c0a62fda9de51dedcd47796 | [
"PostgreSQL"
] | null | null | null | scripts/import-ig-siis.py | firebird631/siis | 8d64e8fb67619aaa5c0a62fda9de51dedcd47796 | [
"PostgreSQL"
] | null | null | null | scripts/import-ig-siis.py | firebird631/siis | 8d64e8fb67619aaa5c0a62fda9de51dedcd47796 | [
"PostgreSQL"
] | null | null | null | #!/usr/bin/python3
import sys
import subprocess
import pathlib
BROKER = "ig.com"
BASE_PATH = "/mnt/storage/Data/market/ig.com/dumps"
PREFIX = "full"
MARKETS = {
"CS.D.AUDNZD.MINI.IP": "AUDNZD",
"CS.D.AUDUSD.MINI.IP": "AUDUSD",
"CS.D.EURCAD.MINI.IP": "EURCAD",
"CS.D.EURCHF.MINI.IP": "EURCHF",
"CS.D... | 28.929412 | 101 | 0.561204 | 357 | 2,459 | 3.778711 | 0.319328 | 0.024463 | 0.053373 | 0.032617 | 0.355819 | 0.299481 | 0.253521 | 0.253521 | 0.253521 | 0.253521 | 0 | 0.096449 | 0.232615 | 2,459 | 84 | 102 | 29.27381 | 0.618442 | 0.063847 | 0 | 0.196721 | 0 | 0 | 0.373141 | 0.044619 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.032787 | false | 0 | 0.196721 | 0 | 0.262295 | 0.098361 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
28aa20d9276cf621dfea7eb047b052a2cc1301af | 1,787 | py | Python | website/auth.py | MarcelKolodziej/Flask-Blog | ae341841a3937400ce4091d521516bb49770d633 | [
"MIT"
] | null | null | null | website/auth.py | MarcelKolodziej/Flask-Blog | ae341841a3937400ce4091d521516bb49770d633 | [
"MIT"
] | null | null | null | website/auth.py | MarcelKolodziej/Flask-Blog | ae341841a3937400ce4091d521516bb49770d633 | [
"MIT"
] | null | null | null | from flask import Blueprint, render_template, redirect, url_for,request, flash
from . import db
from .models import User
from flask_login import login_user, logout_user, login_required
auth = Blueprint("auth", __name__)
@auth.route("/login", methods=['GET', 'POST'])
def login():
email = request.form.get("email")
... | 37.229167 | 87 | 0.623951 | 215 | 1,787 | 5.083721 | 0.334884 | 0.060384 | 0.076853 | 0.031107 | 0.153705 | 0.10979 | 0.056725 | 0 | 0 | 0 | 0 | 0.008035 | 0.233912 | 1,787 | 47 | 88 | 38.021277 | 0.790358 | 0 | 0 | 0.04878 | 0 | 0 | 0.177677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0.195122 | 0.097561 | 0.02439 | 0.268293 | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
28b0abafa42a841914c1cd31abc06fe8d8ca4704 | 4,342 | py | Python | app/core/migrations/0011_auto_20200903_2018.py | ig0r45ure/recipe-app-api | 0654102293d6e58c13c4b7520909eb6c0ddb45f2 | [
"MIT"
] | null | null | null | app/core/migrations/0011_auto_20200903_2018.py | ig0r45ure/recipe-app-api | 0654102293d6e58c13c4b7520909eb6c0ddb45f2 | [
"MIT"
] | null | null | null | app/core/migrations/0011_auto_20200903_2018.py | ig0r45ure/recipe-app-api | 0654102293d6e58c13c4b7520909eb6c0ddb45f2 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.10 on 2020-09-03 20:18
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0010_orgunit_is_hqunit'),
]
operations = [
migrations.CreateModel(
name='Action',
... | 44.306122 | 173 | 0.563335 | 416 | 4,342 | 5.745192 | 0.271635 | 0.062762 | 0.067782 | 0.090377 | 0.592887 | 0.537238 | 0.445188 | 0.445188 | 0.445188 | 0.427197 | 0 | 0.021201 | 0.283049 | 4,342 | 97 | 174 | 44.762887 | 0.746547 | 0.010594 | 0 | 0.527473 | 1 | 0 | 0.150908 | 0.005123 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021978 | 0 | 0.054945 | 0 | 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 |
28b3501d83808336463cf6f0c234c5e4a31d30f7 | 616 | py | Python | buildpack/databroker/config_generator/scripts/generators/stream.py | jobvs/cf-mendix-buildpack | 7df5585b5ac8550fd36d21c9d354d74489ff78c0 | [
"Apache-2.0"
] | 36 | 2015-01-22T16:28:55.000Z | 2021-12-28T10:26:10.000Z | buildpack/databroker/config_generator/scripts/generators/stream.py | jobvs/cf-mendix-buildpack | 7df5585b5ac8550fd36d21c9d354d74489ff78c0 | [
"Apache-2.0"
] | 208 | 2015-06-01T13:39:17.000Z | 2022-03-24T14:16:09.000Z | buildpack/databroker/config_generator/scripts/generators/stream.py | jobvs/cf-mendix-buildpack | 7df5585b5ac8550fd36d21c9d354d74489ff78c0 | [
"Apache-2.0"
] | 135 | 2015-01-17T14:47:22.000Z | 2022-03-07T08:20:18.000Z | import json
from buildpack.databroker.config_generator.scripts.utils import (
template_engine_instance,
)
def generate_config(config):
topologies = {"topologies": []}
env = template_engine_instance()
template = env.get_template("streaming_producer.json.j2")
for service in config.DataBrokerConfigur... | 34.222222 | 68 | 0.738636 | 59 | 616 | 7.576271 | 0.576271 | 0.06264 | 0.098434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001969 | 0.175325 | 616 | 17 | 69 | 36.235294 | 0.877953 | 0 | 0 | 0 | 1 | 0 | 0.074675 | 0.042208 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
28bf7d0d23be8e4b1b9d6f09bd5feb7005ad0239 | 605 | py | Python | aldryn_video/migrations/0002_auto_20201028_1115.py | okfn/website | 7d2fc8e4b379c7cb7e47887acbc83d31d5f855b1 | [
"MIT"
] | 74 | 2016-06-27T17:06:44.000Z | 2022-03-20T19:42:07.000Z | aldryn_video/migrations/0002_auto_20201028_1115.py | okfn/website | 7d2fc8e4b379c7cb7e47887acbc83d31d5f855b1 | [
"MIT"
] | 370 | 2016-06-09T09:15:00.000Z | 2022-03-28T19:02:31.000Z | aldryn_video/migrations/0002_auto_20201028_1115.py | okfn/website | 7d2fc8e4b379c7cb7e47887acbc83d31d5f855b1 | [
"MIT"
] | 104 | 2016-06-09T15:16:02.000Z | 2022-03-12T13:14:10.000Z | # Generated by Django 2.2.16 on 2020-10-28 11:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('aldryn_video', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='oembedvide... | 30.25 | 223 | 0.690909 | 70 | 605 | 5.814286 | 0.671429 | 0.058968 | 0.068796 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041152 | 0.196694 | 605 | 19 | 224 | 31.842105 | 0.796296 | 0.076033 | 0 | 0 | 1 | 0 | 0.174147 | 0.05386 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 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 |
28d40053c91fe46275c6c3999a48e5957247541a | 441 | py | Python | Leetcode/1000-2000/1865. Finding Pairs With a Certain Sum/1865.py | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/1000-2000/1865. Finding Pairs With a Certain Sum/1865.py | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/1000-2000/1865. Finding Pairs With a Certain Sum/1865.py | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | class FindSumPairs:
def __init__(self, nums1: List[int], nums2: List[int]):
self.nums1 = nums1
self.nums2 = nums2
self.count2 = Counter(nums2)
def add(self, index: int, val: int) -> None:
self.count2[self.nums2[index]] -= 1
self.nums2[index] += val
self.count2[self.nums2[index]] += 1
def... | 25.941176 | 57 | 0.614512 | 65 | 441 | 4.107692 | 0.369231 | 0.134831 | 0.157303 | 0.142322 | 0.187266 | 0.187266 | 0 | 0 | 0 | 0 | 0 | 0.053412 | 0.235828 | 441 | 16 | 58 | 27.5625 | 0.738872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
28d5c6f35f1b85abcf29350b3a9639b011883e3f | 1,073 | py | Python | tests/integration/test_map_failure.py | elin1231/htmap | b9c43ec1d86e90730210c3317409b75595061d91 | [
"Apache-2.0"
] | 21 | 2018-11-28T23:59:18.000Z | 2021-11-16T20:09:27.000Z | tests/integration/test_map_failure.py | elin1231/htmap | b9c43ec1d86e90730210c3317409b75595061d91 | [
"Apache-2.0"
] | 184 | 2018-09-24T03:30:19.000Z | 2021-06-29T01:01:34.000Z | tests/integration/test_map_failure.py | elin1231/htmap | b9c43ec1d86e90730210c3317409b75595061d91 | [
"Apache-2.0"
] | 6 | 2019-08-08T19:38:22.000Z | 2021-09-05T05:39:49.000Z | # Copyright 2018 HTCondor Team, Computer Sciences Department,
# University of Wisconsin-Madison, WI.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICE... | 31.558824 | 74 | 0.744641 | 153 | 1,073 | 5.137255 | 0.673203 | 0.076336 | 0.033079 | 0.040712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012387 | 0.172414 | 1,073 | 33 | 75 | 32.515152 | 0.872748 | 0.575023 | 0 | 0 | 0 | 0 | 0.063492 | 0.063492 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.181818 | false | 0.090909 | 0.181818 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
28d76e5d7b1046fecd900f32bd0b0c1ee1c410be | 2,910 | py | Python | s7_scalable_applications/exercise_files/lfw_dataset.py | fimselamse/dtu_mlops | 550291e60c691584e7765857405072ec7cefefff | [
"Apache-2.0"
] | null | null | null | s7_scalable_applications/exercise_files/lfw_dataset.py | fimselamse/dtu_mlops | 550291e60c691584e7765857405072ec7cefefff | [
"Apache-2.0"
] | null | null | null | s7_scalable_applications/exercise_files/lfw_dataset.py | fimselamse/dtu_mlops | 550291e60c691584e7765857405072ec7cefefff | [
"Apache-2.0"
] | null | null | null | """
LFW dataloading
"""
import argparse
import time
import numpy as np
import torch
from PIL import Image
from torch.utils.data import DataLoader, Dataset
from torchvision import transforms
import os
import glob
import matplotlib.pyplot as plt
class LFWDataset(Dataset):
def __init__(self, path_to_folder: str, tr... | 30.3125 | 68 | 0.590378 | 361 | 2,910 | 4.567867 | 0.351801 | 0.032747 | 0.061856 | 0.019406 | 0.06792 | 0.038811 | 0 | 0 | 0 | 0 | 0 | 0.015981 | 0.290378 | 2,910 | 95 | 69 | 30.631579 | 0.782567 | 0.042955 | 0 | 0 | 0 | 0 | 0.066715 | 0.010458 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.042254 | false | 0 | 0.140845 | 0.014085 | 0.225352 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
28e2f45cf26fbf816621e69ee7d6cc809d05de0c | 19,307 | py | Python | protocols/ddg_monomer_16/run_preminimization.py | Kortemme-Lab/ddg | 37d405af2dac41477c689e6e63d5f5c2b9f5a665 | [
"MIT-0",
"MIT"
] | 11 | 2015-05-07T13:05:52.000Z | 2021-07-18T03:37:47.000Z | protocols/ddg_monomer_16/run_preminimization.py | Kortemme-Lab/ddg | 37d405af2dac41477c689e6e63d5f5c2b9f5a665 | [
"MIT-0",
"MIT"
] | 5 | 2016-01-31T01:34:00.000Z | 2021-12-12T04:18:18.000Z | protocols/ddg_monomer_16/run_preminimization.py | Kortemme-Lab/ddg | 37d405af2dac41477c689e6e63d5f5c2b9f5a665 | [
"MIT-0",
"MIT"
] | 8 | 2016-01-08T19:22:16.000Z | 2021-07-18T03:37:48.000Z | #!/usr/bin/env python2
# The MIT License (MIT)
#
# Copyright (c) 2015 Kyle A. Barlow, Shane O'Connor
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without ... | 47.789604 | 227 | 0.696121 | 2,724 | 19,307 | 4.729075 | 0.202643 | 0.015215 | 0.013197 | 0.013197 | 0.26013 | 0.215805 | 0.174119 | 0.157662 | 0.143611 | 0.143611 | 0 | 0.009559 | 0.214326 | 19,307 | 403 | 228 | 47.908189 | 0.839673 | 0.169938 | 0 | 0.1417 | 0 | 0.016194 | 0.183154 | 0.011295 | 0 | 0 | 0 | 0 | 0.032389 | 0 | null | null | 0.012146 | 0.08502 | null | null | 0.072874 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
28e8f42ac4dfe6b5ceb43f6d0973de03472548de | 1,564 | py | Python | lambda.py | diegonat/smsantispam | b43b6d91adda17eaf9f9969a56e9b247780424a1 | [
"Unlicense"
] | null | null | null | lambda.py | diegonat/smsantispam | b43b6d91adda17eaf9f9969a56e9b247780424a1 | [
"Unlicense"
] | null | null | null | lambda.py | diegonat/smsantispam | b43b6d91adda17eaf9f9969a56e9b247780424a1 | [
"Unlicense"
] | null | null | null | import ctypes
import os
from six.moves import urllib
import zipfile
import stat
import logging
import json
logging.basicConfig(level=logging.DEBUG)
print "logging"
def response(status_code, response_body):
return {
'statusCode': status_code,
'body': json.dumps(response_body) if res... | 24.061538 | 87 | 0.638747 | 188 | 1,564 | 5.25 | 0.478723 | 0.036474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014419 | 0.246164 | 1,564 | 64 | 88 | 24.4375 | 0.822731 | 0.024936 | 0 | 0 | 0 | 0 | 0.078084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.229167 | null | null | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
28ef25a57a700f30595e5f04cc7d76ad5118bbea | 839 | py | Python | api_blog/serializers.py | poya-kob/BiaBegard | b7387d4253dbae0650e61c686752dba342b0342e | [
"MIT"
] | null | null | null | api_blog/serializers.py | poya-kob/BiaBegard | b7387d4253dbae0650e61c686752dba342b0342e | [
"MIT"
] | null | null | null | api_blog/serializers.py | poya-kob/BiaBegard | b7387d4253dbae0650e61c686752dba342b0342e | [
"MIT"
] | 1 | 2021-11-07T15:56:04.000Z | 2021-11-07T15:56:04.000Z | from rest_framework.serializers import HyperlinkedModelSerializer, ModelSerializer
from rest_framework import serializers
from .models import Blog, BlogCategory, Comments
class CategorySerializer(ModelSerializer):
class Meta:
model = BlogCategory
exclude = ['id']
class BlogListSerializer(Hyperl... | 23.305556 | 82 | 0.710369 | 68 | 839 | 8.676471 | 0.441176 | 0.061017 | 0.094915 | 0.061017 | 0.105085 | 0.105085 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212157 | 839 | 35 | 83 | 23.971429 | 0.892587 | 0.046484 | 0 | 0.272727 | 0 | 0 | 0.041353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
28fba28b478f41583f672d13c923d196bf4c8069 | 1,875 | py | Python | {{cookiecutter.project_pypi_name}}/setup.py | dalthviz/spyder5-plugin-cookiecutter | b01a27ec9881d61585e3eb076090c4513b0b4ccb | [
"MIT"
] | null | null | null | {{cookiecutter.project_pypi_name}}/setup.py | dalthviz/spyder5-plugin-cookiecutter | b01a27ec9881d61585e3eb076090c4513b0b4ccb | [
"MIT"
] | null | null | null | {{cookiecutter.project_pypi_name}}/setup.py | dalthviz/spyder5-plugin-cookiecutter | b01a27ec9881d61585e3eb076090c4513b0b4ccb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# ----------------------------------------------------------------------------
# Copyright © {% now "local", "%Y" %}, {{ cookiecutter.full_name }}
#
# Licensed under the terms of the {{ cookiecutter.open_source_license }}
# ------------------------------------------------------------------------... | 36.764706 | 152 | 0.585067 | 165 | 1,875 | 6.448485 | 0.509091 | 0.142857 | 0.093985 | 0.097744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007864 | 0.186133 | 1,875 | 50 | 153 | 37.5 | 0.688729 | 0.201067 | 0 | 0.081081 | 0 | 0.027027 | 0.578147 | 0.21231 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081081 | 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 |
28fceab862c7c5376ee90277e625d7b88dbfe5bd | 1,257 | py | Python | mysuper/users/migrations/0004_assets_employee.py | oreon/mysuper | 6f0829c5c5b2e358effaf9e9d904be994668f602 | [
"BSD-3-Clause"
] | null | null | null | mysuper/users/migrations/0004_assets_employee.py | oreon/mysuper | 6f0829c5c5b2e358effaf9e9d904be994668f602 | [
"BSD-3-Clause"
] | null | null | null | mysuper/users/migrations/0004_assets_employee.py | oreon/mysuper | 6f0829c5c5b2e358effaf9e9d904be994668f602 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-28 23:51
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0003_department'),
]
operations = [
... | 38.090909 | 144 | 0.617343 | 136 | 1,257 | 5.558824 | 0.433824 | 0.042328 | 0.055556 | 0.087302 | 0.502646 | 0.502646 | 0.502646 | 0.502646 | 0.502646 | 0.502646 | 0 | 0.026261 | 0.242641 | 1,257 | 32 | 145 | 39.28125 | 0.767857 | 0.053302 | 0 | 0.4 | 1 | 0 | 0.122999 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.24 | 0 | 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 |
28ff9c7388f39a2df950981ba0286bf7c0b1594b | 1,448 | py | Python | rsgeo-py/tests/test_geometry.py | YuRiTan/geofunc | 1757f13ec3777cb63a6de151f2aa216b88ad12ee | [
"MIT"
] | 3 | 2020-12-15T15:17:31.000Z | 2021-03-24T14:00:12.000Z | rsgeo-py/tests/test_geometry.py | YuRiTan/rsgeo | 1757f13ec3777cb63a6de151f2aa216b88ad12ee | [
"MIT"
] | null | null | null | rsgeo-py/tests/test_geometry.py | YuRiTan/rsgeo | 1757f13ec3777cb63a6de151f2aa216b88ad12ee | [
"MIT"
] | null | null | null | import numpy as np
import pytest
from rsgeo.geometry import Polygon # noqa
class TestPolygon:
def setup_method(self):
self.p = Polygon([(0, 0), (1, 1), (1, 0), (0, 0)])
def test_repr(self):
str_repr = str(self.p)
exp = "Polygon([(0, 0), (1, 1), (1, 0), (0, 0)])"
assert str_r... | 31.478261 | 86 | 0.564917 | 226 | 1,448 | 3.442478 | 0.238938 | 0.051414 | 0.030848 | 0.069409 | 0.515424 | 0.447301 | 0.317481 | 0.275064 | 0.18509 | 0.14653 | 0 | 0.070436 | 0.254834 | 1,448 | 45 | 87 | 32.177778 | 0.650602 | 0.002762 | 0 | 0.057143 | 0 | 0.028571 | 0.036061 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.228571 | false | 0 | 0.085714 | 0 | 0.342857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e902f482d6efb5b457a1632dc627c36156be8e3d | 2,340 | py | Python | mfg_ais.py | taiwenko/python | c13c170405f4cac1d1c191413f8b61e21052d8b3 | [
"MIT"
] | null | null | null | mfg_ais.py | taiwenko/python | c13c170405f4cac1d1c191413f8b61e21052d8b3 | [
"MIT"
] | null | null | null | mfg_ais.py | taiwenko/python | c13c170405f4cac1d1c191413f8b61e21052d8b3 | [
"MIT"
] | 1 | 2019-08-30T04:00:34.000Z | 2019-08-30T04:00:34.000Z | #!/usr/bin/env python
# rffe functional test
# Author: TaiWen Ko
import xpf6020
import bk8500
import math
import os
from time import sleep
from blessings import Terminal
t = Terminal()
print "Accessing the Power Supply"
ps_path = '/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A403OT39-if00-port0'
ps = xpf6020.Xpf602... | 24.893617 | 82 | 0.664957 | 392 | 2,340 | 3.737245 | 0.30102 | 0.024573 | 0.075085 | 0.076451 | 0.342662 | 0.316724 | 0.275085 | 0.275085 | 0.275085 | 0.227986 | 0 | 0.040021 | 0.177778 | 2,340 | 93 | 83 | 25.16129 | 0.721414 | 0.02906 | 0 | 0.205882 | 0 | 0 | 0.13933 | 0.027337 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.029412 | 0.088235 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9078aa96127e3ac39e935b2dad6eb75ac8378b3 | 1,488 | py | Python | src/pyats/atom.py | CDonnerer/PyATS | 7db098c307ededa63c1a54c0ac1f2036ad35f7ac | [
"MIT"
] | null | null | null | src/pyats/atom.py | CDonnerer/PyATS | 7db098c307ededa63c1a54c0ac1f2036ad35f7ac | [
"MIT"
] | null | null | null | src/pyats/atom.py | CDonnerer/PyATS | 7db098c307ededa63c1a54c0ac1f2036ad35f7ac | [
"MIT"
] | null | null | null | import os
import io
import numpy as np
class Atom(object):
def __init__(self, element, wpos, rpos):
"""
:param element: Periodic symbol
:param wpos: Wyckoff position
:param rpos: Symmetry-equivalent positions
"""
self.element = element
self.wpos = wpos
... | 25.655172 | 93 | 0.509409 | 199 | 1,488 | 3.723618 | 0.427136 | 0.059379 | 0.021592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013655 | 0.360215 | 1,488 | 58 | 94 | 25.655172 | 0.764706 | 0.160618 | 0 | 0 | 0 | 0 | 0.0382 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.114286 | false | 0 | 0.085714 | 0 | 0.314286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e90881a24f0e4b298f98b37ccecb32404b6dd599 | 317 | py | Python | config.py | dunossauro/Aul-o_de_flask | 10faaa5d28cd57db62c88975f6fbb675c84566b6 | [
"MIT"
] | 3 | 2019-02-02T21:32:05.000Z | 2021-09-10T03:53:23.000Z | config.py | bergpb/Aulao_de_flask | 10faaa5d28cd57db62c88975f6fbb675c84566b6 | [
"MIT"
] | null | null | null | config.py | bergpb/Aulao_de_flask | 10faaa5d28cd57db62c88975f6fbb675c84566b6 | [
"MIT"
] | 3 | 2019-02-03T00:52:01.000Z | 2022-01-28T16:18:36.000Z | from os import path
dirname = path.dirname(__file__)
class Config:
# SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_DATABASE_URI = f'sqlite:///{dirname}/db.sqlite3'
BATATINHAS = 3
class development(Config):
DEBUG = True
SQLALCHEMY_ECHO = True
class production(Config):
DEBUG = False
| 16.684211 | 63 | 0.712934 | 37 | 317 | 5.864865 | 0.675676 | 0.101382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.198738 | 317 | 18 | 64 | 17.611111 | 0.846457 | 0.119874 | 0 | 0 | 0 | 0 | 0.108303 | 0.108303 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e908a487be31f4fbd900fc21345b41355b86ef3c | 295 | py | Python | L2/type_var.py | thebestday/python | 2efb7fbd5c4ee40c03233875c1989ce68aa0fe18 | [
"MIT"
] | null | null | null | L2/type_var.py | thebestday/python | 2efb7fbd5c4ee40c03233875c1989ce68aa0fe18 | [
"MIT"
] | null | null | null | L2/type_var.py | thebestday/python | 2efb7fbd5c4ee40c03233875c1989ce68aa0fe18 | [
"MIT"
] | null | null | null | # Типы переменных
# Марка
name = 'ford'
print(name, type(name)) # class string
# Age
age = 3
print(age, type(age)) # class int
# Обьем двигателя
engine_volume = 1.6
print(engine_volume, type(engine_volume)) # class float
# Есть ли люк
see_sky = False
print(see_sky, type(see_sky)) # class bool
| 19.666667 | 55 | 0.718644 | 48 | 295 | 4.291667 | 0.541667 | 0.174757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012097 | 0.159322 | 295 | 14 | 56 | 21.071429 | 0.818548 | 0.335593 | 0 | 0 | 0 | 0 | 0.021622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e9096a057ec0bf10108ed9746f8fa3b52e6dbf50 | 850 | py | Python | venmo-sim/metis/metis_verify.py | akatsarakis/tx_benchmarking | f8233e58bba3f4fb54d82273d7ca8631bae36ebc | [
"MIT"
] | 3 | 2020-07-07T17:08:41.000Z | 2022-01-10T19:25:46.000Z | venmo-sim/metis/metis_verify.py | akatsarakis/tx_benchmarking | f8233e58bba3f4fb54d82273d7ca8631bae36ebc | [
"MIT"
] | null | null | null | venmo-sim/metis/metis_verify.py | akatsarakis/tx_benchmarking | f8233e58bba3f4fb54d82273d7ca8631bae36ebc | [
"MIT"
] | null | null | null | # Generate some graph to verify the quality of Metis' partitioning
# A graph with 300 vertices, vertices 0~99, 100~199, 200~299 form
# a complete graph respectively
# and add some random disturbing edges
import random
import os
os.environ["METIS_DLL"] = "/usr/local/lib/libmetis.so"
import metis
import networkx as nx
... | 25.757576 | 66 | 0.681176 | 140 | 850 | 4.028571 | 0.485714 | 0.115248 | 0.113475 | 0.049645 | 0.039007 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067548 | 0.198824 | 850 | 32 | 67 | 26.5625 | 0.760646 | 0.261176 | 0 | 0.090909 | 1 | 0 | 0.099839 | 0.083736 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.181818 | 0 | 0.227273 | 0.045455 | 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 |
e9159b31b9985e5bbd3247337c4a16d116e33030 | 1,678 | py | Python | unit_bot/bot.py | trimailov/unit-conversion-bot | 9b6533a4142a179b6eca89eb5860bebeadcf8128 | [
"MIT"
] | 1 | 2017-07-14T07:46:58.000Z | 2017-07-14T07:46:58.000Z | unit_bot/bot.py | trimailov/unit-bot | 9b6533a4142a179b6eca89eb5860bebeadcf8128 | [
"MIT"
] | null | null | null | unit_bot/bot.py | trimailov/unit-bot | 9b6533a4142a179b6eca89eb5860bebeadcf8128 | [
"MIT"
] | null | null | null | import logging
import praw
from unit_bot import creds
from unit_bot.finder import Finder
def scan_and_respond(reply=False, sub='test_unitbot'):
logging.basicConfig(filename="info.log", level=logging.INFO)
r = praw.Reddit(user_agent=creds.USER_AGENT)
r.login(creds.USERNAME, creds.PASSWORD, disable_warni... | 37.288889 | 76 | 0.577473 | 203 | 1,678 | 4.665025 | 0.44335 | 0.046463 | 0.023231 | 0.040127 | 0.092925 | 0.092925 | 0.092925 | 0.092925 | 0.092925 | 0.092925 | 0 | 0 | 0.340882 | 1,678 | 44 | 77 | 38.136364 | 0.856239 | 0.150179 | 0 | 0.137931 | 0 | 0 | 0.066949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.068966 | 0.137931 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e91c455f24cbf392babfd705c959392c0af62827 | 2,350 | py | Python | spkcspider/apps/spider_webcfg/models.py | devkral/spkbspider | 97e448b4da412acebd66c4469c7fcdd07bf90ed2 | [
"MIT"
] | 5 | 2019-06-24T14:15:54.000Z | 2021-05-14T23:16:31.000Z | spkcspider/apps/spider_webcfg/models.py | devkral/spkbspider | 97e448b4da412acebd66c4469c7fcdd07bf90ed2 | [
"MIT"
] | 2 | 2018-06-19T09:56:18.000Z | 2018-11-20T12:02:44.000Z | spkcspider/apps/spider_webcfg/models.py | devkral/spkbspider | 97e448b4da412acebd66c4469c7fcdd07bf90ed2 | [
"MIT"
] | null | null | null | __all__ = ["WebConfig"]
from django.urls import reverse
from django.utils.translation import pgettext
from spkcspider.apps.spider.models import DataContent
from spkcspider.apps.spider import registry
from spkcspider.constants import ActionUrl, VariantType
from spkcspider.utils.fields import add_by_field
# from spkcsp... | 29.375 | 79 | 0.608936 | 248 | 2,350 | 5.625 | 0.471774 | 0.050179 | 0.03871 | 0.051613 | 0.207168 | 0.143369 | 0.143369 | 0 | 0 | 0 | 0 | 0.012797 | 0.301702 | 2,350 | 79 | 80 | 29.746835 | 0.837294 | 0.126809 | 0 | 0.133333 | 0 | 0 | 0.097847 | 0.013699 | 0 | 0 | 0 | 0.012658 | 0 | 1 | 0.116667 | false | 0 | 0.116667 | 0.05 | 0.433333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e91d3c242ca92c398ab32e41497a3a60b82c54cf | 1,273 | py | Python | AutoGrade/forms.py | bilalzaib/AutoGrader | 40767cfc3351fde6948a4381eadabc3bf52ce8a6 | [
"MIT"
] | 23 | 2019-07-04T02:43:32.000Z | 2022-01-08T04:04:39.000Z | AutoGrade/forms.py | adroit-404/AutoGrader | 40767cfc3351fde6948a4381eadabc3bf52ce8a6 | [
"MIT"
] | 69 | 2017-08-29T13:34:53.000Z | 2019-04-04T07:08:38.000Z | AutoGrade/forms.py | adroit-404/AutoGrader | 40767cfc3351fde6948a4381eadabc3bf52ce8a6 | [
"MIT"
] | 7 | 2017-09-01T15:23:17.000Z | 2019-06-10T12:41:14.000Z | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django.forms import ModelForm
from .models import Course, Submission, Assignment
class SignUpForm(UserCreationForm):
def clean_email(self):
email = self.cleaned_data.get('email')... | 31.825 | 94 | 0.672427 | 149 | 1,273 | 5.684564 | 0.42953 | 0.047226 | 0.053129 | 0.063754 | 0.269185 | 0.193625 | 0.193625 | 0.193625 | 0.106257 | 0.106257 | 0 | 0.004004 | 0.21524 | 1,273 | 39 | 95 | 32.641026 | 0.843844 | 0 | 0 | 0.290323 | 0 | 0 | 0.133648 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.032258 | 0.16129 | 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 |
e91fec1f58f4c085f105abf558b5dd061e0c06d4 | 5,712 | py | Python | ThingsConnectorTests/ThingsConnectorBaseTests.py | huvermann/MyPiHomeAutomation | dcda589e82456bb34d3bbbfdcb45ec1066f3d2f8 | [
"MIT"
] | null | null | null | ThingsConnectorTests/ThingsConnectorBaseTests.py | huvermann/MyPiHomeAutomation | dcda589e82456bb34d3bbbfdcb45ec1066f3d2f8 | [
"MIT"
] | null | null | null | ThingsConnectorTests/ThingsConnectorBaseTests.py | huvermann/MyPiHomeAutomation | dcda589e82456bb34d3bbbfdcb45ec1066f3d2f8 | [
"MIT"
] | null | null | null | import unittest
import sys
import json
sys.path.append("..\ThingsConnector")
from ThingsConnectorBase import ThingsConectorBase
#from .. import module # Import module from a higher directory.
from ThingsItemBase import ThingsItemBase
class FunctionMock(object):
def __init__(self, ):
self.mockCalled = Fals... | 37.578947 | 126 | 0.660539 | 499 | 5,712 | 7.503006 | 0.226453 | 0.016827 | 0.052885 | 0.059295 | 0.421474 | 0.413729 | 0.400374 | 0.327457 | 0.307425 | 0.307425 | 0 | 0.003832 | 0.223389 | 5,712 | 152 | 127 | 37.578947 | 0.839946 | 0.022584 | 0 | 0.517857 | 0 | 0.008929 | 0.110286 | 0 | 0 | 0 | 0 | 0 | 0.151786 | 0 | null | null | 0.017857 | 0.044643 | 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 |
e92610c7bf59b3830b9cc455a09124e0dc3f913c | 2,633 | py | Python | src/pyapp/conf/helpers/bases.py | pyapp-org/pyapp | 46c9e8e3dbf1a872628fad8224b99b458972c92c | [
"BSD-3-Clause"
] | 5 | 2020-01-09T14:46:33.000Z | 2021-04-23T15:25:11.000Z | src/pyapp/conf/helpers/bases.py | pyapp-org/pyapp | 46c9e8e3dbf1a872628fad8224b99b458972c92c | [
"BSD-3-Clause"
] | 111 | 2019-06-30T05:45:57.000Z | 2022-03-28T11:15:29.000Z | src/pyapp/conf/helpers/bases.py | pyapp-org/pyapp | 46c9e8e3dbf1a872628fad8224b99b458972c92c | [
"BSD-3-Clause"
] | 2 | 2019-05-29T09:01:10.000Z | 2021-04-23T15:25:32.000Z | """
Conf Helper Bases
~~~~~~~~~~~~~~~~~
"""
import abc
import threading
from abc import ABCMeta
from typing import Any
from typing import Generic
from typing import TypeVar
class DefaultCache(dict):
"""
Very similar to :py:class:`collections.defaultdict` (using __missing__)
however passes the specified k... | 25.563107 | 78 | 0.649449 | 295 | 2,633 | 5.569492 | 0.342373 | 0.059647 | 0.043822 | 0.023737 | 0.370055 | 0.337188 | 0.337188 | 0.301887 | 0.301887 | 0.301887 | 0 | 0 | 0.254083 | 2,633 | 102 | 79 | 25.813725 | 0.836558 | 0.298899 | 0 | 0.227273 | 0 | 0 | 0.021499 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.159091 | false | 0 | 0.136364 | 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 |
e93d64745869b8f1fc177907b23ee5d3d57f1636 | 1,045 | py | Python | ArkDiscordBot/bot_commands/ark.py | Jackybeat/ArkDiscordBot | f902d024e6f90540e2d15dc3d1b3f220998ea182 | [
"MIT"
] | 1 | 2018-08-20T14:11:39.000Z | 2018-08-20T14:11:39.000Z | ArkDiscordBot/bot_commands/ark.py | Jackybeat/ArkDiscordBot | f902d024e6f90540e2d15dc3d1b3f220998ea182 | [
"MIT"
] | 1 | 2018-03-17T19:00:55.000Z | 2018-06-03T14:38:45.000Z | ArkDiscordBot/bot_commands/ark.py | Jackybeat/ArkDiscordBot | f902d024e6f90540e2d15dc3d1b3f220998ea182 | [
"MIT"
] | 1 | 2018-08-20T14:11:46.000Z | 2018-08-20T14:11:46.000Z | # -*- coding: utf-8 -*-
'''
Created on 2 mars 2017
@author: Jacky
'''
import logging
from discord.ext import commands
from ArkDiscordBot.apps import bot
from ArkDiscordBot.discord.utils import parse_context
logger = logging.getLogger('BOT.{}'.format(__name__))
class Commons:
@commands.command(pass_conte... | 24.880952 | 93 | 0.623923 | 126 | 1,045 | 5.087302 | 0.555556 | 0.053042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018277 | 0.266986 | 1,045 | 41 | 94 | 25.487805 | 0.818538 | 0.058373 | 0 | 0 | 0 | 0 | 0.110723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.210526 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e944304ba9eea0773445d59a7bfc92c434dd17b6 | 2,470 | py | Python | mesh/scale_test.py | melonwan/sphereHand | 4a5bae9ddc7da42c25e528686b7c6a5388a5e945 | [
"MIT"
] | 53 | 2019-04-23T14:16:34.000Z | 2022-01-13T07:06:53.000Z | mesh/scale_test.py | melonwan/sphereHand | 4a5bae9ddc7da42c25e528686b7c6a5388a5e945 | [
"MIT"
] | 7 | 2019-05-08T10:15:35.000Z | 2022-03-20T12:57:57.000Z | mesh/scale_test.py | melonwan/sphereHand | 4a5bae9ddc7da42c25e528686b7c6a5388a5e945 | [
"MIT"
] | 3 | 2019-05-12T10:33:45.000Z | 2020-01-13T08:36:56.000Z | # to test the gradient back-propagation
from __future__ import absolute_import, division, print_function
import torch
import pickle
import torch.nn as nn
import torch.nn.functional as F
import matplotlib.pyplot as plt
import numpy as np
import cv2
import torch.utils.data as data
from mesh.multiview_utility import Mutua... | 32.5 | 91 | 0.703644 | 361 | 2,470 | 4.612188 | 0.315789 | 0.054054 | 0.018018 | 0.028829 | 0.184985 | 0.048048 | 0.027628 | 0 | 0 | 0 | 0 | 0.038631 | 0.172065 | 2,470 | 76 | 92 | 32.5 | 0.77555 | 0.01498 | 0 | 0.033898 | 0 | 0 | 0.033306 | 0.030839 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.305085 | 0 | 0.338983 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3a5d53e039e596fe145bc0abe341b2c3dc6929f8 | 418 | py | Python | djangobmf/migrations/0002_removed_notification_and_watch.py | dmatthes/django-bmf | 3a97167de7841b13f1ddd23b33ae65e98dc49dfd | [
"BSD-3-Clause"
] | 1 | 2020-05-11T08:00:49.000Z | 2020-05-11T08:00:49.000Z | djangobmf/migrations/0002_removed_notification_and_watch.py | dmatthes/django-bmf | 3a97167de7841b13f1ddd23b33ae65e98dc49dfd | [
"BSD-3-Clause"
] | null | null | null | djangobmf/migrations/0002_removed_notification_and_watch.py | dmatthes/django-bmf | 3a97167de7841b13f1ddd23b33ae65e98dc49dfd | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('djangobmf', '0001_initial'),
]
operations = [
migrations.DeleteModel(
name='Not... | 19 | 40 | 0.600478 | 36 | 418 | 6.805556 | 0.694444 | 0.081633 | 0.204082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016835 | 0.289474 | 418 | 21 | 41 | 19.904762 | 0.808081 | 0.050239 | 0 | 0.266667 | 0 | 0 | 0.096203 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 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 |
3a66590a44e555c673f51de795835e9d9a56326d | 1,952 | py | Python | web/foi_requests/tests/conftest.py | okfn-brasil/pedidosanonimos | 25935346be655f60bb5648d164e781ccf4c65bbb | [
"MIT"
] | 33 | 2018-11-06T12:37:00.000Z | 2022-01-23T02:12:52.000Z | web/foi_requests/tests/conftest.py | okfn-brasil/pedidosanonimos | 25935346be655f60bb5648d164e781ccf4c65bbb | [
"MIT"
] | 15 | 2018-11-07T11:49:37.000Z | 2020-07-08T23:30:33.000Z | web/foi_requests/tests/conftest.py | okfn-brasil/pedidosanonimos | 25935346be655f60bb5648d164e781ccf4c65bbb | [
"MIT"
] | 11 | 2018-11-18T13:36:10.000Z | 2020-06-20T21:36:27.000Z | import pytest
from django.db import transaction
from django.utils import timezone
from ..models import Message, FOIRequest, Esic, PublicBody
@pytest.fixture
def public_body(esic):
return PublicBody(
name='example',
esic=esic
)
@pytest.fixture
def esic():
return Esic(
url='http:/... | 22.964706 | 73 | 0.679303 | 245 | 1,952 | 5.171429 | 0.240816 | 0.11839 | 0.088398 | 0.054459 | 0.292818 | 0.033149 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23668 | 1,952 | 84 | 74 | 23.238095 | 0.850336 | 0.060451 | 0 | 0.206349 | 0 | 0 | 0.013654 | 0 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.142857 | false | 0 | 0.063492 | 0.095238 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a67f0f808879f51079a42676b0ee9e297c90a20 | 766 | gyp | Python | binding.gyp | immuta/node-libhdfs3 | 606363faec5f9b1c3a0dcae793b4614f53e5ebb2 | [
"MIT"
] | null | null | null | binding.gyp | immuta/node-libhdfs3 | 606363faec5f9b1c3a0dcae793b4614f53e5ebb2 | [
"MIT"
] | 3 | 2017-06-21T22:00:18.000Z | 2020-07-07T01:21:27.000Z | binding.gyp | immuta/node-libhdfs3 | 606363faec5f9b1c3a0dcae793b4614f53e5ebb2 | [
"MIT"
] | 1 | 2017-11-29T16:52:45.000Z | 2017-11-29T16:52:45.000Z | {
'targets' : [
{
'target_name' : 'hdfs3_bindings',
'sources' : [
'src/addon.cc',
'src/HDFileSystem.cc',
'src/HDFile.cc'
],
'xcode_settings': {
'OTHER_CFLAGS': ['-Wno-unused-parameter', '-Wno-unus... | 31.916667 | 91 | 0.353786 | 51 | 766 | 5.215686 | 0.666667 | 0.135338 | 0.135338 | 0.157895 | 0.24812 | 0.24812 | 0 | 0 | 0 | 0 | 0 | 0.007026 | 0.442559 | 766 | 24 | 92 | 31.916667 | 0.615925 | 0 | 0 | 0.083333 | 0 | 0 | 0.400261 | 0.054759 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a6f949dffbcd5f2b977ccb29bf32e3a9018d255 | 361 | py | Python | Secao7_ColecoesPython/Exercicios/Exerc.3.py | PauloFTeixeira/curso_python | 9040c7dcc5262620f6330bb9637710bb8899bc6b | [
"MIT"
] | null | null | null | Secao7_ColecoesPython/Exercicios/Exerc.3.py | PauloFTeixeira/curso_python | 9040c7dcc5262620f6330bb9637710bb8899bc6b | [
"MIT"
] | null | null | null | Secao7_ColecoesPython/Exercicios/Exerc.3.py | PauloFTeixeira/curso_python | 9040c7dcc5262620f6330bb9637710bb8899bc6b | [
"MIT"
] | null | null | null | """
Ler um conjunto de números reais, armazenando-o em vetor e calcular o quadrado dos componentes deste vetor,
armazenando o resultado em outro vetor. Os conjuntos têm 10 elementos cada. Imprima todos os elementos.
"""
vetor = set(range(1, 11))
vetor1 = set({})
for numero in vetor:
numero = numero ** 2
vetor... | 27.769231 | 108 | 0.728532 | 55 | 361 | 4.781818 | 0.672727 | 0.091255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.177285 | 361 | 12 | 109 | 30.083333 | 0.855219 | 0.587258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
3a7b040341d02774bc3161342a3273bc4a2c9edf | 1,198 | py | Python | python/atlasPH.py | ferguman/OpenAg-MVP-II | 600ce329f373ef3dc867163cdd09a424b49cd007 | [
"MIT"
] | 2 | 2019-03-18T05:47:55.000Z | 2019-05-30T13:08:13.000Z | python/atlasPH.py | ferguman/OpenAg-MVP-II | 600ce329f373ef3dc867163cdd09a424b49cd007 | [
"MIT"
] | 14 | 2018-06-27T14:02:23.000Z | 2020-02-16T19:47:43.000Z | python/atlasPH.py | ferguman/OpenAg-MVP-II | 600ce329f373ef3dc867163cdd09a424b49cd007 | [
"MIT"
] | null | null | null | import smbus2, time
address = 0x63 #Atlas PH Probe standard I2C address is 99 decimal.
class atlasPH(object):
def __init__(self):
self.bus = smbus2.SMBus(1)
def write(self, command):
self.bus.write_byte(address, ord(command))
def readBlock(self, numBytes):
retur... | 25.489362 | 84 | 0.557596 | 147 | 1,198 | 4.435374 | 0.44898 | 0.042945 | 0.055215 | 0.052147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031863 | 0.318865 | 1,198 | 46 | 85 | 26.043478 | 0.767157 | 0.084307 | 0 | 0.058824 | 0 | 0 | 0.110018 | 0 | 0 | 0 | 0.003578 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.029412 | 0.029412 | 0.441176 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a8fdbe0b5588f2deaee2d690e03eb531c22a4ae | 2,065 | py | Python | purge/admin.py | gregschmit/django-purge | 04f1488d73f6e5be750a84bde8f2b73d9b112bb6 | [
"MIT"
] | 1 | 2019-02-20T08:35:11.000Z | 2019-02-20T08:35:11.000Z | purge/admin.py | gregschmit/django-purge | 04f1488d73f6e5be750a84bde8f2b73d9b112bb6 | [
"MIT"
] | null | null | null | purge/admin.py | gregschmit/django-purge | 04f1488d73f6e5be750a84bde8f2b73d9b112bb6 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.admin.widgets import FilteredSelectMultiple
from django.contrib.contenttypes.models import ContentType
from django.forms import ModelMultipleChoiceField
from django.utils.html import format_html
from . import models
class CustomModelMCF(ModelMultipleChoiceField):
... | 43.93617 | 243 | 0.720581 | 238 | 2,065 | 5.920168 | 0.331933 | 0.068133 | 0.02555 | 0.035486 | 0.438609 | 0.388928 | 0.388928 | 0.388928 | 0.388928 | 0.313698 | 0 | 0.001127 | 0.14092 | 2,065 | 46 | 244 | 44.891304 | 0.793123 | 0 | 0 | 0.176471 | 0 | 0 | 0.279903 | 0.045521 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.176471 | 0.058824 | 0.735294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3a9a5b55eb0db5aabcd6a33215321df9cfa78280 | 2,987 | py | Python | kagura/utils.py | nishio/kagura | 3748a8b2ed5680ddc03abfdae2326fe49607d878 | [
"MIT"
] | 1 | 2021-03-09T04:28:57.000Z | 2021-03-09T04:28:57.000Z | kagura/utils.py | nishio/kagura | 3748a8b2ed5680ddc03abfdae2326fe49607d878 | [
"MIT"
] | null | null | null | kagura/utils.py | nishio/kagura | 3748a8b2ed5680ddc03abfdae2326fe49607d878 | [
"MIT"
] | null | null | null | """
utilities
=========
"""
def stratified_split(xs, ys, nfold=10):
"""
USAGE:
train_xs, test_xs, train_ys, test_ys = stratified_split(xs, ys)
"""
from sklearn.cross_validation import StratifiedKFold
train, test = StratifiedKFold(ys, nfold).__iter__().next()
return xs[train], xs[test], ys[... | 25.10084 | 76 | 0.579846 | 397 | 2,987 | 4.282116 | 0.332494 | 0.032353 | 0.044118 | 0.028235 | 0.138235 | 0.027059 | 0 | 0 | 0 | 0 | 0 | 0.017086 | 0.29461 | 2,987 | 118 | 77 | 25.313559 | 0.789748 | 0 | 0 | 0.08642 | 0 | 0 | 0.072581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3aa1de018de871c858a8cf85e0642828d164c0e7 | 2,155 | py | Python | utils/subtitution.py | Samoray-l337/CryptoGuesser | 7e9df5a15b3cb9958518fbcb008a03bb9364d3da | [
"MIT"
] | null | null | null | utils/subtitution.py | Samoray-l337/CryptoGuesser | 7e9df5a15b3cb9958518fbcb008a03bb9364d3da | [
"MIT"
] | null | null | null | utils/subtitution.py | Samoray-l337/CryptoGuesser | 7e9df5a15b3cb9958518fbcb008a03bb9364d3da | [
"MIT"
] | null | null | null | import utils.config as config
from utils.words import prensetage_of_real_words_in_list
from utils.random import random_subtitution_string
from utils.search import is_known_part_in_text
from string import ascii_lowercase
from tqdm import tqdm
def get_array_key_from_string(string):
return { ascii_lowercase[i]: stri... | 39.181818 | 108 | 0.746172 | 319 | 2,155 | 4.661442 | 0.222571 | 0.084734 | 0.06456 | 0.05111 | 0.572966 | 0.443847 | 0.341627 | 0.341627 | 0.341627 | 0.286483 | 0 | 0.004535 | 0.181439 | 2,155 | 55 | 109 | 39.181818 | 0.838435 | 0.03109 | 0 | 0.3 | 0 | 0 | 0.000479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.15 | 0.025 | 0.525 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3aa3b38c176030a9064ad7af57108cf970e35f9b | 601 | py | Python | pastetape/db/base.py | EXLER/Pastetape | 82c57bcc05f1f0b580eddfa231e4bef86597264e | [
"MIT"
] | 1 | 2021-07-08T12:42:10.000Z | 2021-07-08T12:42:10.000Z | pastetape/db/base.py | EXLER/Pastetape | 82c57bcc05f1f0b580eddfa231e4bef86597264e | [
"MIT"
] | null | null | null | pastetape/db/base.py | EXLER/Pastetape | 82c57bcc05f1f0b580eddfa231e4bef86597264e | [
"MIT"
] | 1 | 2021-07-08T12:42:12.000Z | 2021-07-08T12:42:12.000Z | from sqlalchemy.ext.declarative import as_declarative, declared_attr
from pastetape.db.session import engine
@as_declarative()
class Base:
__name__: str
@declared_attr
def __tablename__(cls) -> str:
return cls.__name__.lower()
def initialize_db() -> None:
"""
Initializes the database t... | 24.04 | 100 | 0.72213 | 74 | 601 | 5.621622 | 0.689189 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193012 | 601 | 24 | 101 | 25.041667 | 0.857732 | 0.25624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0.090909 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3aa75be2e025b222552bd381d28a319ca4e96123 | 1,850 | py | Python | courseparticipation/api/permissions.py | TBrockmeyer/courses-participation-api | 39d9edc9a80faa28e9ad711342b3041cb6635be4 | [
"MIT"
] | null | null | null | courseparticipation/api/permissions.py | TBrockmeyer/courses-participation-api | 39d9edc9a80faa28e9ad711342b3041cb6635be4 | [
"MIT"
] | null | null | null | courseparticipation/api/permissions.py | TBrockmeyer/courses-participation-api | 39d9edc9a80faa28e9ad711342b3041cb6635be4 | [
"MIT"
] | null | null | null | from rest_framework import permissions
class IsAdminOrReadOnly(permissions.BasePermission):
"""
Custom permission to only allow admins to edit an object, and all others to view it.
"""
def has_permission(self, request, view):
# Read permissions are allowed to any authenticated request,
... | 37.755102 | 105 | 0.629189 | 240 | 1,850 | 4.783333 | 0.354167 | 0.067073 | 0.05662 | 0.057491 | 0.30662 | 0.19338 | 0.090592 | 0 | 0 | 0 | 0 | 0 | 0.308649 | 1,850 | 49 | 106 | 37.755102 | 0.897576 | 0.355135 | 0 | 0.541667 | 0 | 0 | 0.013121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.041667 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3aab31f57c86cd9a0668aea34b9b402e88948d36 | 1,107 | py | Python | lesson10/qiangshihong/users/urls.py | herrywen-nanj/51reboot | 1130c79a360e1b548a6eaad176eb60f8bed22f40 | [
"Apache-2.0"
] | null | null | null | lesson10/qiangshihong/users/urls.py | herrywen-nanj/51reboot | 1130c79a360e1b548a6eaad176eb60f8bed22f40 | [
"Apache-2.0"
] | null | null | null | lesson10/qiangshihong/users/urls.py | herrywen-nanj/51reboot | 1130c79a360e1b548a6eaad176eb60f8bed22f40 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# author: qsh
from django.urls import path, re_path
from . import views_old,views1,views
from . import views,user,roles
app_name = 'users'
urlpatterns = [
# http://ip:8000/
path("", views.IndexView.as_view(), name='index'),
# http://ip:8000/login/
path("login/", views.LoginView.as_vi... | 38.172414 | 108 | 0.663053 | 147 | 1,107 | 4.836735 | 0.401361 | 0.084388 | 0.140647 | 0.059072 | 0.098453 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018538 | 0.122855 | 1,107 | 28 | 109 | 39.535714 | 0.713697 | 0.174345 | 0 | 0 | 0 | 0 | 0.238938 | 0.066372 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.1875 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3aadc3537af578445cd65f67c4572925dbbf0773 | 312 | py | Python | lab2/p4b.py | sarahmid/programming-bootcamp | 6dc6ab0ecfac662eb9676956ab0ae799953e88ae | [
"MIT"
] | 1 | 2020-11-06T03:29:24.000Z | 2020-11-06T03:29:24.000Z | lab2/p4b.py | sarahmid/programming-bootcamp | 6dc6ab0ecfac662eb9676956ab0ae799953e88ae | [
"MIT"
] | null | null | null | lab2/p4b.py | sarahmid/programming-bootcamp | 6dc6ab0ecfac662eb9676956ab0ae799953e88ae | [
"MIT"
] | null | null | null | dnaSeq = raw_input("Enter a DNA sequence: ")
motif = raw_input("Enter a motif to search for: ")
if len(motif) > len(dnaSeq):
print "Error: motif sequence is longer than DNA sequence."
else:
if motif in dnaSeq:
print "Found the motif in the sequence."
else:
print "Did not find the motif in the sequence." | 31.2 | 59 | 0.714744 | 52 | 312 | 4.25 | 0.480769 | 0.095023 | 0.117647 | 0.126697 | 0.190045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185897 | 312 | 10 | 60 | 31.2 | 0.870079 | 0 | 0 | 0.222222 | 0 | 0 | 0.549521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ab37ee5cdb84ceaee330ce1eecafe3afbe3fd5c | 1,646 | py | Python | Filter.py | eejwa/Data-Preprocessing | 41d27d694ed07e052c4d4680d989601850debcc9 | [
"MIT"
] | null | null | null | Filter.py | eejwa/Data-Preprocessing | 41d27d694ed07e052c4d4680d989601850debcc9 | [
"MIT"
] | null | null | null | Filter.py | eejwa/Data-Preprocessing | 41d27d694ed07e052c4d4680d989601850debcc9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
usage = """Code to filter traces in the directory given a frequency band and file wildcard.
[-fl][-fh][-f][-t] where:
-fl = miniumum frequency value (e.g. 0.05)
-fh = maxiumum frequency value (e.g. 1.0)
-f = filename wildcard (e.g. '*SAC')
-t = type of filtering (e.g. bandpass)
"""
import obsp... | 34.291667 | 183 | 0.72904 | 254 | 1,646 | 4.649606 | 0.413386 | 0.008467 | 0.057578 | 0.0779 | 0.204911 | 0.204911 | 0.204911 | 0.142252 | 0.142252 | 0.142252 | 0 | 0.006285 | 0.130012 | 1,646 | 47 | 184 | 35.021277 | 0.818436 | 0.072904 | 0 | 0 | 0 | 0 | 0.444809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.115385 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3ac0901790b59f23dbf4b8aabd26ad7fb8437fb5 | 796 | py | Python | ovirtlib4/networks.py | MosheSheena/ovirtlib4 | 340ff6401c6291460da8ef7163838101cab717b9 | [
"Apache-2.0"
] | null | null | null | ovirtlib4/networks.py | MosheSheena/ovirtlib4 | 340ff6401c6291460da8ef7163838101cab717b9 | [
"Apache-2.0"
] | 4 | 2021-08-08T11:48:58.000Z | 2022-03-15T12:59:04.000Z | ovirtlib4/networks.py | MosheSheena/ovirtlib4 | 340ff6401c6291460da8ef7163838101cab717b9 | [
"Apache-2.0"
] | 3 | 2020-07-29T16:27:34.000Z | 2021-07-28T11:16:29.000Z | # -*- coding: utf-8 -*-
import ovirtsdk4.types as types
from .system_service import CollectionService, CollectionEntity
class Networks(CollectionService):
"""
Gives access to all oVirt Networks
"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.service =... | 26.533333 | 74 | 0.677136 | 83 | 796 | 6.192771 | 0.493976 | 0.077821 | 0.042802 | 0.058366 | 0.155642 | 0.155642 | 0.155642 | 0.155642 | 0.155642 | 0 | 0 | 0.003165 | 0.20603 | 796 | 29 | 75 | 27.448276 | 0.810127 | 0.157035 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3ac2740c0e5c139ad6eae7f670f40ddd476288f5 | 1,812 | py | Python | Lib/sunos5/SOCKET.py | AtjonTV/Python-1.4 | 2a80562c5a163490f444181cb75ca1b3089759ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | null | null | null | Lib/sunos5/SOCKET.py | AtjonTV/Python-1.4 | 2a80562c5a163490f444181cb75ca1b3089759ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | null | null | null | Lib/sunos5/SOCKET.py | AtjonTV/Python-1.4 | 2a80562c5a163490f444181cb75ca1b3089759ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | null | null | null | # Generated by h2py from /usr/include/sys/socket.h
NC_TPI_CLTS = 1
NC_TPI_COTS = 2
NC_TPI_COTS_ORD = 3
NC_TPI_RAW = 4
SOCK_STREAM = NC_TPI_COTS
SOCK_DGRAM = NC_TPI_CLTS
SOCK_RAW = NC_TPI_RAW
SOCK_RDM = 5
SOCK_SEQPACKET = 6
SO_DEBUG = 0x0001
SO_ACCEPTCONN = 0x0002
SO_REUSEADDR = 0x0004
SO_KEEPALIVE = 0x0008
SO_DONTROUTE... | 17.423077 | 50 | 0.766556 | 348 | 1,812 | 3.603448 | 0.393678 | 0.027911 | 0.021531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127333 | 0.172185 | 1,812 | 103 | 51 | 17.592233 | 0.708667 | 0.02649 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0.069807 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ac5078a14f8186a6b7a0ba77157e8c31c88f685 | 574 | py | Python | services/backend/src/schemas/notes.py | gideonmandu/note_taking_app | bf358a421b42d941ee47cb9c617678d3c074e24d | [
"MIT"
] | null | null | null | services/backend/src/schemas/notes.py | gideonmandu/note_taking_app | bf358a421b42d941ee47cb9c617678d3c074e24d | [
"MIT"
] | null | null | null | services/backend/src/schemas/notes.py | gideonmandu/note_taking_app | bf358a421b42d941ee47cb9c617678d3c074e24d | [
"MIT"
] | null | null | null | from pydantic import BaseModel
from tortoise.contrib.pydantic import pydantic_model_creator
from typing import Optional
from src.database.models import Notes
# Creating new notes
NoteInSchema = pydantic_model_creator(
Notes, name="NoteIn", exclude=["author_id"], exclude_readonly=True
)
# retrieving Notes
NoteOu... | 22.96 | 70 | 0.745645 | 67 | 574 | 6.223881 | 0.537313 | 0.093525 | 0.143885 | 0.119904 | 0.139089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158537 | 574 | 24 | 71 | 23.916667 | 0.863354 | 0.060976 | 0 | 0 | 0 | 0 | 0.154851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.25 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3ad658f663ab436d69c55ee076787f7c5af82a70 | 554 | py | Python | pbs_util/prime_example.py | Clyde-fare/pbs_util | 1c1ed93773a9a020f9216056d2ae49cc0cd589d1 | [
"BSD-3-Clause"
] | 1 | 2015-08-24T02:48:00.000Z | 2015-08-24T02:48:00.000Z | pbs_util/prime_example.py | Clyde-fare/pbs_util | 1c1ed93773a9a020f9216056d2ae49cc0cd589d1 | [
"BSD-3-Clause"
] | null | null | null | pbs_util/prime_example.py | Clyde-fare/pbs_util | 1c1ed93773a9a020f9216056d2ae49cc0cd589d1 | [
"BSD-3-Clause"
] | null | null | null | import pbs_util.pbs_map as ppm
class PrimeWorker(ppm.Worker):
def __call__(self, n):
is_prime = True
for m in xrange(2,n):
if n % m == 0:
is_prime = False
break
return (n, is_prime)
if __name__ == "__main__":
for (n, is_prime) ... | 25.181818 | 77 | 0.476534 | 69 | 554 | 3.521739 | 0.565217 | 0.17284 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04375 | 0.422383 | 554 | 21 | 78 | 26.380952 | 0.715625 | 0 | 0 | 0 | 0 | 0 | 0.061372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3adbf439491da91e824f8b8117c4be60189e19af | 2,610 | py | Python | src/podrum/network/protocol/AdventureSettingsPacket.py | genisyspromcpe/Podrum | c3e4644764308d587cf24a068c4568484eb0fb05 | [
"Apache-2.0"
] | 1 | 2021-11-05T16:59:49.000Z | 2021-11-05T16:59:49.000Z | src/podrum/network/protocol/AdventureSettingsPacket.py | genisyspromcpe/Podrum | c3e4644764308d587cf24a068c4568484eb0fb05 | [
"Apache-2.0"
] | null | null | null | src/podrum/network/protocol/AdventureSettingsPacket.py | genisyspromcpe/Podrum | c3e4644764308d587cf24a068c4568484eb0fb05 | [
"Apache-2.0"
] | null | null | null | """
* ____ _
* | _ \ ___ __| |_ __ _ _ _ __ ___
* | |_) / _ \ / _` | '__| | | | '_ ` _ \
* | __/ (_) | (_| | | | |_| | | | | | |
* |_| \___/ \__,_|_| \__,_|_| |_| |_|
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the Licens... | 30.705882 | 84 | 0.657088 | 268 | 2,610 | 6.067164 | 0.41791 | 0.079951 | 0.098401 | 0.046125 | 0.233702 | 0.233702 | 0.233702 | 0.200492 | 0.200492 | 0.200492 | 0 | 0.036735 | 0.249042 | 2,610 | 84 | 85 | 31.071429 | 0.792857 | 0.15364 | 0 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028649 | 0 | 0 | 1 | 0.067797 | false | 0 | 0.050847 | 0 | 0.644068 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3ae7d0b0f7f8efe78a27d29989cacba363301144 | 2,033 | py | Python | src/huntsman/pocs/core.py | danjampro/huntsman-pocs | 7ec4f43776ac36d7bff2cf0a4926eb69daa5ca25 | [
"MIT"
] | null | null | null | src/huntsman/pocs/core.py | danjampro/huntsman-pocs | 7ec4f43776ac36d7bff2cf0a4926eb69daa5ca25 | [
"MIT"
] | 1 | 2020-09-15T09:11:18.000Z | 2020-09-15T09:11:18.000Z | src/huntsman/pocs/core.py | danjampro/huntsman-pocs | 7ec4f43776ac36d7bff2cf0a4926eb69daa5ca25 | [
"MIT"
] | 2 | 2020-12-16T09:07:17.000Z | 2020-12-18T06:06:24.000Z | from panoptes.pocs.core import POCS
class HuntsmanPOCS(POCS):
""" Minimal overrides to the POCS class """
def __init__(self, *args, **kwargs):
self._dome_open_states = []
super().__init__(*args, **kwargs)
def run(self, initial_next_state='starting', *args, **kwargs):
""" Override... | 40.66 | 96 | 0.639941 | 263 | 2,033 | 4.756654 | 0.319392 | 0.079137 | 0.076739 | 0.043165 | 0.156675 | 0.118305 | 0.118305 | 0.118305 | 0.118305 | 0.118305 | 0 | 0 | 0.257747 | 2,033 | 49 | 97 | 41.489796 | 0.829026 | 0.348254 | 0 | 0 | 0 | 0 | 0.222409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.047619 | 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 |
3af6b73729ef2e5afac07a66509a37c7cb74963d | 3,940 | py | Python | audacitorch/core.py | hugofloresgarcia/audacitorch | 71f1c9a7045544556d102c2c77c137a21e159084 | [
"MIT"
] | 32 | 2021-10-30T04:36:15.000Z | 2022-03-18T17:47:13.000Z | audacitorch/core.py | hugofloresgarcia/torchaudacity | 71f1c9a7045544556d102c2c77c137a21e159084 | [
"MIT"
] | 4 | 2021-09-23T00:48:12.000Z | 2021-10-21T21:12:43.000Z | audacitorch/core.py | hugofloresgarcia/audacitorch | 71f1c9a7045544556d102c2c77c137a21e159084 | [
"MIT"
] | 2 | 2021-12-16T22:26:58.000Z | 2021-12-28T18:09:32.000Z | from typing import Tuple
import torch
from torch import nn
def _waveform_check(x: torch.Tensor):
assert x.ndim == 2, "input must have two dimensions (channels, samples)"
assert x.shape[-1] > x.shape[0], f"The number of channels {x.shape[-2]} exceeds the number of samples {x.shape[-1]} in your INPUT waveform. \
... | 39.009901 | 143 | 0.653046 | 522 | 3,940 | 4.854406 | 0.275862 | 0.060773 | 0.030781 | 0.04341 | 0.452644 | 0.427782 | 0.427782 | 0.407656 | 0.393054 | 0.340963 | 0 | 0.007486 | 0.254061 | 3,940 | 100 | 144 | 39.4 | 0.854712 | 0.435787 | 0 | 0.128205 | 0 | 0.025641 | 0.219882 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.153846 | false | 0.102564 | 0.076923 | 0 | 0.358974 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
aaff73c48a74e2d5a92cc648d869da320d67337b | 190 | py | Python | taller control repetitivas/ejercicio_10.py | cristianm24/algoritmos-y-programacion- | d61846e7936e1620298968d4ba3ac8ad2ebd57fa | [
"MIT"
] | null | null | null | taller control repetitivas/ejercicio_10.py | cristianm24/algoritmos-y-programacion- | d61846e7936e1620298968d4ba3ac8ad2ebd57fa | [
"MIT"
] | null | null | null | taller control repetitivas/ejercicio_10.py | cristianm24/algoritmos-y-programacion- | d61846e7936e1620298968d4ba3ac8ad2ebd57fa | [
"MIT"
] | null | null | null | lista=[]
datos=int(input("Ingrese numero de datos: "))
for i in range(0,datos):
alt=float(input("Ingrese las alturas: "))
lista.append(alt)
print("La altura maxima es: ", max(lista)) | 31.666667 | 45 | 0.673684 | 30 | 190 | 4.266667 | 0.766667 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0.147368 | 190 | 6 | 46 | 31.666667 | 0.783951 | 0 | 0 | 0 | 0 | 0 | 0.350785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
c9006d1a4d572dc67dc1b37e14ea20fc91dd78f8 | 310 | py | Python | tests/test2.py | gaoce/timevis | ae9c8de1cd08107eb8d5c3951370f608a847ca5d | [
"MIT"
] | 1 | 2015-05-07T15:24:35.000Z | 2015-05-07T15:24:35.000Z | tests/test2.py | gaoce/TimeVisAn | ae9c8de1cd08107eb8d5c3951370f608a847ca5d | [
"MIT"
] | null | null | null | tests/test2.py | gaoce/TimeVisAn | ae9c8de1cd08107eb8d5c3951370f608a847ca5d | [
"MIT"
] | null | null | null | import os
import os.path
import json
# The folder holding the test data
data_path = os.path.dirname('.')
# Set the temporal config for testing
os.environ['TIMEVIS_CONFIG'] = os.path.join(data_path, 'config.py')
import timevis
app = timevis.app.test_client()
url = '/api/v2/experiment'
resp = app.get(url)
| 18.235294 | 67 | 0.732258 | 50 | 310 | 4.46 | 0.54 | 0.080717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003745 | 0.13871 | 310 | 16 | 68 | 19.375 | 0.831461 | 0.219355 | 0 | 0 | 0 | 0 | 0.175732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c90baa6e8f7e51fa711bc90fdf3af0cfe423d90e | 4,333 | py | Python | yuzu/utils/utils.py | andymitch/yuzu | 34c67d7a19a9d51a7478050ada6286d97ffa9910 | [
"Apache-2.0"
] | null | null | null | yuzu/utils/utils.py | andymitch/yuzu | 34c67d7a19a9d51a7478050ada6286d97ffa9910 | [
"Apache-2.0"
] | 10 | 2021-06-01T04:13:15.000Z | 2021-07-07T03:45:20.000Z | yuzu/utils/utils.py | andymitch/yuzu | 34c67d7a19a9d51a7478050ada6286d97ffa9910 | [
"Apache-2.0"
] | null | null | null | from inspect import signature
from questionary import Style
from pytz import reference
import math, os, datetime
from typing import Callable
from pandas import DataFrame
############################## CONSTANTS
ROOT_PATH = os.path.expanduser('~') + os.sep + '.yuzu'
STRATS_PATH = ROOT_PATH + os.sep + 'strategies'
ENV_... | 49.238636 | 131 | 0.644357 | 572 | 4,333 | 4.798951 | 0.353147 | 0.052095 | 0.032058 | 0.043716 | 0.268488 | 0.230965 | 0.145355 | 0.101275 | 0.069945 | 0 | 0 | 0.040671 | 0.188553 | 4,333 | 88 | 132 | 49.238636 | 0.740046 | 0.097392 | 0 | 0.135135 | 0 | 0 | 0.319685 | 0.016273 | 0 | 0 | 0 | 0.011364 | 0.121622 | 1 | 0.148649 | false | 0 | 0.081081 | 0.013514 | 0.27027 | 0.121622 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c90cc5de13fb24ab2ccde44d3bda7da78f665e88 | 23,187 | py | Python | pyjs/runners/giwebkit.py | chopin/pyjs | 8756402995f4c218602b251c984baf9ea8ddf8bf | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | pyjs/runners/giwebkit.py | chopin/pyjs | 8756402995f4c218602b251c984baf9ea8ddf8bf | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | pyjs/runners/giwebkit.py | chopin/pyjs | 8756402995f4c218602b251c984baf9ea8ddf8bf | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright (C) 2012 C Anthony Risinger <anthony@xtfx.me>
#
# LICENSE: Apache 2.0 <http://www.apache.org/licenses/LICENSE-2.0.txt>
import os
import sys
import logging
logging.basicConfig(level=logging.INFO)
logging.getLogger(__name__).setLevel(logging.DEBUG)
logger = logging.getLogger(__name__)
import re
from urllib ... | 31.850275 | 88 | 0.589037 | 2,660 | 23,187 | 4.96015 | 0.209399 | 0.015158 | 0.011672 | 0.010914 | 0.124299 | 0.072912 | 0.061846 | 0.057602 | 0.046688 | 0.036683 | 0 | 0.00513 | 0.293828 | 23,187 | 727 | 89 | 31.894085 | 0.80066 | 0.104757 | 0 | 0.142857 | 0 | 0 | 0.123915 | 0.023367 | 0 | 0 | 0 | 0.001376 | 0 | 0 | null | null | 0.026316 | 0.037594 | null | null | 0.009399 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c9138c12865c890bacd8e1ad529e4b09cbb9a13e | 1,617 | py | Python | backend/tradersplatform/equipment/urls.py | ybedirhanpak/bounswe2019group1 | 9572fd307345b3f842c2c2ff4426857086484ed5 | [
"MIT"
] | 10 | 2019-02-14T14:53:49.000Z | 2019-10-23T08:03:39.000Z | backend/tradersplatform/equipment/urls.py | ybedirhanpak/bounswe2019group1 | 9572fd307345b3f842c2c2ff4426857086484ed5 | [
"MIT"
] | 364 | 2019-02-14T14:50:12.000Z | 2022-02-10T13:43:09.000Z | backend/tradersplatform/equipment/urls.py | bounswe/bounswe2019group1 | 9572fd307345b3f842c2c2ff4426857086484ed5 | [
"MIT"
] | 8 | 2019-05-05T20:04:31.000Z | 2020-12-24T16:44:54.000Z | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^currency/', views.CurrencyAPI.as_view(), name="update_de"),
url(r'^currencylastmonth/', views.CurrencyAPILastMonth.as_view(), name="update_de"),
url(r'^currencyconvert/', views.CurrencyConverterAPI.as_view(), name="update_de"),
... | 62.192308 | 102 | 0.717378 | 200 | 1,617 | 5.61 | 0.24 | 0.067736 | 0.16934 | 0.270945 | 0.402852 | 0.402852 | 0.402852 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1,617 | 26 | 103 | 62.192308 | 0.763265 | 0 | 0 | 0 | 0 | 0 | 0.276267 | 0.029048 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 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 |
c914dc5b4dad6103f9de989dac8428aaef84fbb2 | 441 | py | Python | L1Trigger/GlobalCaloTrigger/test/testElectrons_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | L1Trigger/GlobalCaloTrigger/test/testElectrons_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | L1Trigger/GlobalCaloTrigger/test/testElectrons_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
process = cms.Process("TestGct")
process.load("L1Trigger.GlobalCaloTrigger.test.gctTest_cff")
process.load("L1Trigger.GlobalCaloTrigger.test.gctConfig_cff")
process.source = cms.Source("EmptySource")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(1)
)... | 27.5625 | 62 | 0.789116 | 54 | 441 | 6.388889 | 0.574074 | 0.113043 | 0.115942 | 0.214493 | 0.237681 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014815 | 0.081633 | 441 | 15 | 63 | 29.4 | 0.837037 | 0 | 0 | 0 | 0 | 0 | 0.284091 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 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 |
c9166a281dd194638b7c4b72a4acdda19fced420 | 834 | py | Python | auto_ml/GRU/gru_tuner.py | AlongZG/XFinAI | 943a1fce709be1da54df8a6ba71c9b8e8505d254 | [
"Apache-2.0"
] | 1 | 2022-03-12T07:11:42.000Z | 2022-03-12T07:11:42.000Z | auto_ml/GRU/gru_tuner.py | AlongZG/XFinAI | 943a1fce709be1da54df8a6ba71c9b8e8505d254 | [
"Apache-2.0"
] | null | null | null | auto_ml/GRU/gru_tuner.py | AlongZG/XFinAI | 943a1fce709be1da54df8a6ba71c9b8e8505d254 | [
"Apache-2.0"
] | null | null | null | import sys
import nni
from sklearn.metrics import r2_score
sys.path.append('../..')
from model_layer.model_hub import GRU
from model_layer.model_tuner import RecurrentModelTuner
from utils import base_io
def main(model_class, future_index, params):
target_metric_func = r2_score
metric_name = 'R... | 30.888889 | 101 | 0.683453 | 105 | 834 | 5.009524 | 0.380952 | 0.114068 | 0.091255 | 0.119772 | 0.117871 | 0.117871 | 0 | 0 | 0 | 0 | 0 | 0.003165 | 0.242206 | 834 | 26 | 102 | 32.076923 | 0.829114 | 0.077938 | 0 | 0 | 0 | 0 | 0.031039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c918bd18680317bb0b0b3ec876daf122c9d77ac5 | 3,020 | py | Python | All_Source_Code/MultilayerPerceptronNeuralNetwork/MultilayerPerceptronNeuralNetwork_9.py | APMonitor/pds | fa9a7ec920802de346dcdf7f5dd92d752142c16f | [
"MIT"
] | 11 | 2021-01-21T09:46:29.000Z | 2022-03-16T19:33:10.000Z | All_Source_Code/MultilayerPerceptronNeuralNetwork/MultilayerPerceptronNeuralNetwork_9.py | the-mahapurush/pds | 7cb4087dd8e75cb1e9b2a4283966c798175f61f7 | [
"MIT"
] | 1 | 2022-03-16T19:47:09.000Z | 2022-03-16T20:11:50.000Z | All_Source_Code/MultilayerPerceptronNeuralNetwork/MultilayerPerceptronNeuralNetwork_9.py | the-mahapurush/pds | 7cb4087dd8e75cb1e9b2a4283966c798175f61f7 | [
"MIT"
] | 12 | 2021-02-08T21:11:11.000Z | 2022-03-20T12:42:49.000Z | from gekko import GEKKO
import numpy as np
import matplotlib.pyplot as plt
# generate training data
x = np.linspace(0.0,2*np.pi,20)
y = np.sin(x)
# option for fitting function
select = True # True / False
if select:
# Size with cosine function
nin = 1 # inputs
n1 = 1 # hidden layer 1 (linear)
n2 ... | 25.59322 | 75 | 0.572517 | 580 | 3,020 | 2.97931 | 0.196552 | 0.056713 | 0.038194 | 0.070023 | 0.394097 | 0.267361 | 0.229167 | 0.194444 | 0.188657 | 0.153935 | 0 | 0.060411 | 0.227152 | 3,020 | 118 | 76 | 25.59322 | 0.679949 | 0.140728 | 0 | 0.326087 | 1 | 0 | 0.018281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032609 | 0 | 0.032609 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c91aab4d937ca9221f0af629d9669470d7e0b2aa | 22,142 | py | Python | mergeLOCandDBpedia.py | thisismattmiller/linked-jazz-name-directory | 87521563401becdffc4695de73102765ea07b6e2 | [
"MIT"
] | 6 | 2015-02-13T11:13:42.000Z | 2016-10-16T06:36:14.000Z | mergeLOCandDBpedia.py | linkedjazz/linked-jazz-name-directory | 87521563401becdffc4695de73102765ea07b6e2 | [
"MIT"
] | 1 | 2015-06-17T23:48:26.000Z | 2015-06-18T00:30:18.000Z | mergeLOCandDBpedia.py | linkedjazz/linked-jazz-name-directory | 87521563401becdffc4695de73102765ea07b6e2 | [
"MIT"
] | 1 | 2016-03-10T04:38:27.000Z | 2016-03-10T04:38:27.000Z | import sys, os, re, urllib, time
def main():
if not os.path.exists('data/loc_single'):
os.makedirs('data/loc_single')
dbData = open('data/jazzPeople.nt', 'r')
personNames = {}
personBirthDates = {}
personDeathDates = {}
nameCollisons = {}
matchesBothDate = []
matchesBothDateURIs = []... | 26.234597 | 205 | 0.573209 | 2,746 | 22,142 | 4.605972 | 0.148216 | 0.01186 | 0.012097 | 0.006325 | 0.393501 | 0.321395 | 0.268264 | 0.203115 | 0.165244 | 0.160342 | 0 | 0.022147 | 0.288321 | 22,142 | 844 | 206 | 26.234597 | 0.780492 | 0.217686 | 0 | 0.345679 | 0 | 0 | 0.09746 | 0.0069 | 0 | 0 | 0 | 0.001185 | 0 | 0 | null | null | 0 | 0.002469 | null | null | 0.08642 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c92aec5412d611551d94038e21842a0b7b55cda0 | 11,019 | py | Python | neuropype/nodes/CrossCorr.py | ablot/Pinceau | ae8f3dd088349f8976a5ddf91d83c60ca1ef39e2 | [
"MIT"
] | null | null | null | neuropype/nodes/CrossCorr.py | ablot/Pinceau | ae8f3dd088349f8976a5ddf91d83c60ca1ef39e2 | [
"MIT"
] | null | null | null | neuropype/nodes/CrossCorr.py | ablot/Pinceau | ae8f3dd088349f8976a5ddf91d83c60ca1ef39e2 | [
"MIT"
] | null | null | null | from neuropype import node
import matplotlib.cm as cm
from neuropype.ressources._common import gaussian_density, flatenList, exponential_density, conv_dict
from neuropype import parameter
from numpy import array
import numpy as np
import neuropype.ressources.progressbar as pgb
from neuropype.ressources.recurtime impo... | 39.213523 | 111 | 0.517833 | 1,262 | 11,019 | 4.421553 | 0.221078 | 0.018817 | 0.030108 | 0.012903 | 0.25466 | 0.209857 | 0.166667 | 0.144803 | 0.144803 | 0.124373 | 0 | 0.014951 | 0.362646 | 11,019 | 280 | 112 | 39.353571 | 0.779581 | 0.047736 | 0 | 0.21028 | 0 | 0 | 0.060466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042056 | null | null | 0.028037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c92eb492dd12d9cad6f3882844f81c16176aedc5 | 2,196 | py | Python | experiments/tf_trainer/common/base_keras_model.py | deeglaze/conversationai-models | 34d4645e5a3c9c632e20d485b783a72e525f8a59 | [
"Apache-2.0"
] | null | null | null | experiments/tf_trainer/common/base_keras_model.py | deeglaze/conversationai-models | 34d4645e5a3c9c632e20d485b783a72e525f8a59 | [
"Apache-2.0"
] | 28 | 2020-09-26T01:20:51.000Z | 2022-02-10T02:27:17.000Z | experiments/tf_trainer/common/base_keras_model.py | deeglaze/conversationai-models | 34d4645e5a3c9c632e20d485b783a72e525f8a59 | [
"Apache-2.0"
] | null | null | null | """Abstract Base Class for Keras Models."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import abc
import tensorflow as tf
from keras import models
from tf_trainer.common import types
from tf_trainer.common import base_model
class BaseKerasModel(base... | 32.776119 | 81 | 0.736339 | 316 | 2,196 | 4.924051 | 0.401899 | 0.057841 | 0.026992 | 0.025707 | 0.104113 | 0.039846 | 0 | 0 | 0 | 0 | 0 | 0.00225 | 0.190346 | 2,196 | 66 | 82 | 33.272727 | 0.872891 | 0.418488 | 0 | 0 | 0 | 0 | 0.0133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.035714 | 0.285714 | 0.035714 | 0.607143 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c9305bf6016ecb6f3a3ce47cef3dbd96805112bd | 2,428 | py | Python | stanza/pipeline/constituency_processor.py | asears/stanza | f91ca215e175d4f7b202259fe789374db7829395 | [
"Apache-2.0"
] | 3,633 | 2016-01-21T17:29:13.000Z | 2022-03-31T13:36:47.000Z | stanza/pipeline/constituency_processor.py | asears/stanza | f91ca215e175d4f7b202259fe789374db7829395 | [
"Apache-2.0"
] | 593 | 2016-01-19T07:16:05.000Z | 2022-03-31T20:23:58.000Z | stanza/pipeline/constituency_processor.py | asears/stanza | f91ca215e175d4f7b202259fe789374db7829395 | [
"Apache-2.0"
] | 525 | 2016-01-20T03:22:19.000Z | 2022-03-24T05:51:56.000Z | """Processor that attaches a constituency tree to a sentence
The model used is a generally a model trained on the Stanford
Sentiment Treebank or some similar dataset. When run, this processor
attaches a score in the form of a string to each sentence in the
document.
TODO: a possible way to generalize this would be t... | 45.811321 | 101 | 0.697282 | 305 | 2,428 | 5.393443 | 0.396721 | 0.038298 | 0.029179 | 0.026748 | 0.035258 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001082 | 0.23888 | 2,428 | 52 | 102 | 46.692308 | 0.889069 | 0.314662 | 0 | 0 | 0 | 0 | 0.043663 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0.074074 | false | 0 | 0.185185 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9373070207db08c0092e72ad233f6df3870cb3d | 847 | py | Python | strings/first_unique_char.py | kandarpck/leetcode | d2ffcccede5d1543aea48f18a39cdbd3d83e3ed8 | [
"MIT"
] | null | null | null | strings/first_unique_char.py | kandarpck/leetcode | d2ffcccede5d1543aea48f18a39cdbd3d83e3ed8 | [
"MIT"
] | null | null | null | strings/first_unique_char.py | kandarpck/leetcode | d2ffcccede5d1543aea48f18a39cdbd3d83e3ed8 | [
"MIT"
] | null | null | null | from collections import Counter
class Solution:
def firstUniqChar(self, s):
"""
:type s: str
:rtype: int
"""
s_counter = Counter(s)
for i, char in enumerate(s):
if s_counter.get(char) == 1:
return i
return -1
def firstUniqCha... | 21.717949 | 61 | 0.502952 | 98 | 847 | 4.244898 | 0.418367 | 0.057692 | 0.151442 | 0.165865 | 0.302885 | 0.105769 | 0.105769 | 0 | 0 | 0 | 0 | 0.009579 | 0.383707 | 847 | 38 | 62 | 22.289474 | 0.787356 | 0.080283 | 0 | 0.478261 | 0 | 0 | 0.06 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.043478 | 0 | 0.347826 | 0.130435 | 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 |
c93f4071198974716d3d6df1e51f55e3f9d0bb7e | 6,168 | py | Python | gaea-platform/src/common/api_exception.py | h3copen/baas | 7fae7bf10be5a4109d809bad68358fb67335a9fe | [
"Apache-2.0"
] | 25 | 2019-04-19T08:57:37.000Z | 2020-10-23T07:59:03.000Z | gaea-platform/src/common/api_exception.py | h3copen/baas | 7fae7bf10be5a4109d809bad68358fb67335a9fe | [
"Apache-2.0"
] | 4 | 2020-04-14T13:06:46.000Z | 2021-12-13T20:46:36.000Z | gaea-platform/src/common/api_exception.py | h3copen/baas | 7fae7bf10be5a4109d809bad68358fb67335a9fe | [
"Apache-2.0"
] | 12 | 2019-04-19T10:01:57.000Z | 2021-01-04T12:07:59.000Z |
from flask import request,json
from werkzeug.exceptions import HTTPException
class ApiException(HTTPException):
code = 500
error_code = 500
msg = 'sorry, made a mistake'
def __init__(self,code=None, error_code=None, msg=None, header=None):
if code:
self.code = code
if msg:... | 27.783784 | 88 | 0.65548 | 802 | 6,168 | 4.975062 | 0.332918 | 0.038346 | 0.012531 | 0.015789 | 0.043609 | 0.011028 | 0 | 0 | 0 | 0 | 0 | 0.023757 | 0.26978 | 6,168 | 222 | 89 | 27.783784 | 0.862123 | 0.333171 | 0 | 0.136364 | 0 | 0 | 0.277359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0.009091 | 0.018182 | 0.009091 | 0.563636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c9431ce65c688ffe5ab210cf871cc8e081844757 | 706 | py | Python | Aeneas_cryptographic_disc.py | barisozbas/IEEExtreme | ac8e15e40e3657c42541c3698d33fa090045d7bd | [
"MIT"
] | 1 | 2018-12-29T11:11:13.000Z | 2018-12-29T11:11:13.000Z | Aeneas_cryptographic_disc.py | barisozbas/IEEExtreme | ac8e15e40e3657c42541c3698d33fa090045d7bd | [
"MIT"
] | null | null | null | Aeneas_cryptographic_disc.py | barisozbas/IEEExtreme | ac8e15e40e3657c42541c3698d33fa090045d7bd | [
"MIT"
] | null | null | null | import math
r = float(raw_input())
gap = lambda (a1,b1), (a2,b2) : math.sqrt( (a1 - a2) * (a1 - a2) + (b1- b2) * (b1-b2) )
polar = lambda r , angle : ( math.cos( angle ) * r, math.sin( angle ) * r)
coord = {0 : (0,0)}
for i in xrange (0,26):
letter, angle = raw_input().split()
angle = math.radians(float(angl... | 22.774194 | 87 | 0.566572 | 110 | 706 | 3.609091 | 0.390909 | 0.060453 | 0.055416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037594 | 0.246459 | 706 | 30 | 88 | 23.533333 | 0.708647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045455 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c944b9fbe4979bf0865d29dd3c92f75c7b9b9d67 | 4,762 | py | Python | smaa.py | youqad/oxford-hack-2020 | 7c4bf02f0dc52ce99cee721a3b7b3344060018f2 | [
"MIT"
] | null | null | null | smaa.py | youqad/oxford-hack-2020 | 7c4bf02f0dc52ce99cee721a3b7b3344060018f2 | [
"MIT"
] | null | null | null | smaa.py | youqad/oxford-hack-2020 | 7c4bf02f0dc52ce99cee721a3b7b3344060018f2 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
import torch
import numpy as np
import pyro
import matplotlib.pyplot as plt
from pyro.infer import MCMC, NUTS
# import pyro.infer
# import pyro.optim
from pyro.distributions import Normal
# def model(data):
# """
# Explanation
# """
# coefs_mean = torch.zeros(dim)
# ... | 32.841379 | 129 | 0.678706 | 592 | 4,762 | 5.378378 | 0.339527 | 0.020101 | 0.02858 | 0.018844 | 0.080088 | 0.021985 | 0 | 0 | 0 | 0 | 0 | 0.007673 | 0.233725 | 4,762 | 145 | 130 | 32.841379 | 0.864894 | 0.237085 | 0 | 0.291667 | 0 | 0 | 0.002429 | 0 | 0 | 0 | 0 | 0.006897 | 0 | 0 | null | null | 0 | 0.145833 | 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 |
c94614ec9d12dc441fe5a44f628907b7866eec01 | 407 | py | Python | gin/gin.py | Javanile/GIN | f4cce7546aa523d568f2c7cf73318fb4ea20ba3e | [
"MIT"
] | 3 | 2016-11-18T16:35:58.000Z | 2017-01-31T15:09:31.000Z | gin/gin.py | javanile/gin | f4cce7546aa523d568f2c7cf73318fb4ea20ba3e | [
"MIT"
] | null | null | null | gin/gin.py | javanile/gin | f4cce7546aa523d568f2c7cf73318fb4ea20ba3e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""gin.gin: provides entry point main()."""
__version__ = "0.0.4"
import sys
import os
from .parser import Parser
def main():
parser = Parser()
gin_src = sys.argv[1]
ini_dst = sys.argv[1].replace(".gin", ".ini")
if not os.path.isfile(gin_src):
print '... | 14.034483 | 49 | 0.574939 | 60 | 407 | 3.733333 | 0.533333 | 0.107143 | 0.080357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023333 | 0.262899 | 407 | 28 | 50 | 14.535714 | 0.723333 | 0.051597 | 0 | 0 | 0 | 0 | 0.082353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9510bb7d8ed6d4d39ee6821945d8452e80085df | 252 | py | Python | dynamodb_scripts/DeleteTables.py | mattmcclean/sam-voting-app | 48569f42cbd19dcbbbb1362894c09475a2af29e1 | [
"Apache-2.0"
] | null | null | null | dynamodb_scripts/DeleteTables.py | mattmcclean/sam-voting-app | 48569f42cbd19dcbbbb1362894c09475a2af29e1 | [
"Apache-2.0"
] | null | null | null | dynamodb_scripts/DeleteTables.py | mattmcclean/sam-voting-app | 48569f42cbd19dcbbbb1362894c09475a2af29e1 | [
"Apache-2.0"
] | 1 | 2021-02-08T13:59:50.000Z | 2021-02-08T13:59:50.000Z | from __future__ import print_function # Python 2/3 compatibility
import boto3
dynamodb = boto3.resource('dynamodb', endpoint_url="http://localhost:8000")
table = dynamodb.Table('Election')
table.delete()
table = dynamodb.Table('Vote')
table.delete() | 25.2 | 75 | 0.769841 | 32 | 252 | 5.875 | 0.65625 | 0.138298 | 0.191489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 0.095238 | 252 | 10 | 76 | 25.2 | 0.789474 | 0.095238 | 0 | 0.285714 | 0 | 0 | 0.180617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 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 |
c95aacac36d02161b484cfa55fefd8c161baf5a3 | 1,240 | py | Python | keyman44/interface/chain_creation.py | sahabi/keyman44 | 73d62eac3b96ec6951b1d88edf5e0f7c787f7440 | [
"MIT"
] | null | null | null | keyman44/interface/chain_creation.py | sahabi/keyman44 | 73d62eac3b96ec6951b1d88edf5e0f7c787f7440 | [
"MIT"
] | null | null | null | keyman44/interface/chain_creation.py | sahabi/keyman44 | 73d62eac3b96ec6951b1d88edf5e0f7c787f7440 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui/chain_creation.ui'
#
# Created by: PyQt5 UI code generator 5.9
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.se... | 37.575758 | 106 | 0.708065 | 140 | 1,240 | 6.214286 | 0.492857 | 0.041379 | 0.044828 | 0.055172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040434 | 0.182258 | 1,240 | 32 | 107 | 38.75 | 0.817554 | 0.151613 | 0 | 0 | 1 | 0 | 0.043103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c95abe449589f695cc8dc319de05486ff4b018fc | 963 | py | Python | cronjob/utils/cache.py | fucangyu/SimpleSpider | a2fd9289f44696c5c06ece9cec8dc5315300eecf | [
"MIT"
] | 4 | 2019-01-13T06:08:48.000Z | 2019-01-14T07:12:37.000Z | cronjob/utils/cache.py | fucangyu/cronjob | 9a27b0a430eab1f9e52ff51700217a7dac15c846 | [
"MIT"
] | 2 | 2019-01-13T04:10:58.000Z | 2019-01-13T07:08:53.000Z | cronjob/utils/cache.py | fucangyu/cronjob | 9a27b0a430eab1f9e52ff51700217a7dac15c846 | [
"MIT"
] | 2 | 2019-01-25T15:43:15.000Z | 2019-06-15T09:42:15.000Z | import logging
import socket
from collections import OrderedDict
LOGGER = logging.getLogger(__name__)
class LocalCache(OrderedDict):
def __init__(self, limit=None):
super().__init__()
self.limit = limit
def __setitem__(self, key, value):
while len(self) >= self.limit:
sel... | 25.342105 | 67 | 0.646937 | 111 | 963 | 5.315315 | 0.423423 | 0.122034 | 0.122034 | 0.172881 | 0.19661 | 0.19661 | 0 | 0 | 0 | 0 | 0 | 0.006897 | 0.247144 | 963 | 37 | 68 | 26.027027 | 0.806897 | 0.044652 | 0 | 0.08 | 0 | 0 | 0.08061 | 0.026144 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.12 | 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 |
c95b1684a0db1f0047a54d631046ca5ea817d08a | 501 | py | Python | test/ResultsAndPrizes/top-3/test_top_3_winning_numbers_of_the_last_draw.py | FearFactor1/SPA | a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7 | [
"Apache-2.0"
] | 1 | 2019-12-05T06:50:54.000Z | 2019-12-05T06:50:54.000Z | test/ResultsAndPrizes/top-3/test_top_3_winning_numbers_of_the_last_draw.py | FearFactor1/SPA | a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7 | [
"Apache-2.0"
] | null | null | null | test/ResultsAndPrizes/top-3/test_top_3_winning_numbers_of_the_last_draw.py | FearFactor1/SPA | a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7 | [
"Apache-2.0"
] | null | null | null | # Топ-3 + Выигрышные номера последнего тиража
def test_top_3_winning_numbers_last_draw(app):
app.ResultAndPrizes.open_page_results_and_prizes()
app.ResultAndPrizes.click_game_top_3()
app.ResultAndPrizes.button_get_report_winners()
assert "ВЫИГРЫШНЫЕ НОМЕРА" in app.ResultAndPrizes.parser_report_text_w... | 41.75 | 82 | 0.828343 | 69 | 501 | 5.507246 | 0.507246 | 0.331579 | 0.086842 | 0.094737 | 0.315789 | 0.315789 | 0.315789 | 0 | 0 | 0 | 0 | 0.019956 | 0.0998 | 501 | 12 | 83 | 41.75 | 0.822616 | 0.085828 | 0 | 0 | 0 | 0 | 0.037199 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 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 |
c966a0f19952a5f4083ba9e72fe82dffea41752a | 21,119 | py | Python | mcommon.py | kunyuan/PyGW | 7b32065586f7d7cc221d051b5254397fdf0a3076 | [
"Unlicense"
] | 7 | 2020-07-06T01:56:46.000Z | 2021-05-13T13:07:06.000Z | mcommon.py | kunyuan/PyGW | 7b32065586f7d7cc221d051b5254397fdf0a3076 | [
"Unlicense"
] | null | null | null | mcommon.py | kunyuan/PyGW | 7b32065586f7d7cc221d051b5254397fdf0a3076 | [
"Unlicense"
] | 1 | 2020-07-06T01:56:59.000Z | 2020-07-06T01:56:59.000Z | from scipy import *
from scipy import optimize
from numpy import linalg
from scipy import interpolate
from inout import *
import for_tetrahedra as ft
import fnc
import for_pade as fpade
from pylab import *
def Give2TanMesh(x0,L,Nw):
def fun(x,x0,L,Nw):
"x[0]=d, x[1]=w"
d=x[0]
w=x[1]
... | 46.415385 | 209 | 0.538615 | 3,145 | 21,119 | 3.552623 | 0.185374 | 0.020943 | 0.015036 | 0.005907 | 0.172559 | 0.114114 | 0.088427 | 0.06292 | 0.036427 | 0.023539 | 0 | 0.036895 | 0.308253 | 21,119 | 454 | 210 | 46.517621 | 0.727907 | 0.237843 | 0 | 0.130031 | 0 | 0.006192 | 0.063467 | 0.00784 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027864 | null | null | 0.089783 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c9686301448dc32dad6dca0715b9454f7824e9bb | 449 | py | Python | webscan/webscan/log.py | gwvsol/WebScanQRcode-JSON-RPC | 69cec4aaaf9289b374eb9a51f22474f1efe308f5 | [
"MIT"
] | null | null | null | webscan/webscan/log.py | gwvsol/WebScanQRcode-JSON-RPC | 69cec4aaaf9289b374eb9a51f22474f1efe308f5 | [
"MIT"
] | null | null | null | webscan/webscan/log.py | gwvsol/WebScanQRcode-JSON-RPC | 69cec4aaaf9289b374eb9a51f22474f1efe308f5 | [
"MIT"
] | null | null | null | # import logging
from loguru import logger as logging
# log_format = '%(asctime)s.%(msecs)d|\
# %(levelname)s|%(module)s.%(funcName)s:%(lineno)d %(message)s'
# logging.basicConfig(level=logging.INFO,
# format=log_format,
# datefmt='%Y-%m-%d %H:%M:%S')
logging.add(str, format="<... | 34.538462 | 68 | 0.603563 | 63 | 449 | 4.269841 | 0.587302 | 0.066915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158129 | 449 | 12 | 69 | 37.416667 | 0.71164 | 0.538976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c971bf79584989fee15209bf83183928c1933cde | 2,921 | py | Python | src/lockFile.py | JaredButcher/Client | 60323eee40c0c68e83b823dd5768db92549900e1 | [
"MIT"
] | null | null | null | src/lockFile.py | JaredButcher/Client | 60323eee40c0c68e83b823dd5768db92549900e1 | [
"MIT"
] | null | null | null | src/lockFile.py | JaredButcher/Client | 60323eee40c0c68e83b823dd5768db92549900e1 | [
"MIT"
] | null | null | null | """MEG system lockfile parser
Can be used to parse the lock file and preform operations on the lockfile
Only interacts with the lockfile, does not preform any git actions
Does not check permissions before actions are taken
All file paths are relitive to the repository directory
Working directory should be changed by ... | 29.505051 | 81 | 0.565902 | 337 | 2,921 | 4.851632 | 0.364985 | 0.066055 | 0.055046 | 0.067278 | 0.206728 | 0.188379 | 0.188379 | 0.145566 | 0.105199 | 0.056269 | 0 | 0 | 0.343718 | 2,921 | 98 | 82 | 29.806122 | 0.852895 | 0.384457 | 0 | 0.139535 | 0 | 0 | 0.067338 | 0 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.139535 | false | 0.023256 | 0.069767 | 0 | 0.302326 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c972a9494d385a1b98ca700a6c765495e952be1a | 857 | py | Python | artistapp/artist/migrations/0007_auto_20201208_1134.py | fallprojects/ArtistApp | 5564a1f7f4fc95261beb462abfa4ca53f3e5c17f | [
"MIT"
] | null | null | null | artistapp/artist/migrations/0007_auto_20201208_1134.py | fallprojects/ArtistApp | 5564a1f7f4fc95261beb462abfa4ca53f3e5c17f | [
"MIT"
] | null | null | null | artistapp/artist/migrations/0007_auto_20201208_1134.py | fallprojects/ArtistApp | 5564a1f7f4fc95261beb462abfa4ca53f3e5c17f | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-12-08 11:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('artist', '0006_auto_20201208_1052'),
]
operations = [
migrations.AlterModelOptions(
name='comme... | 25.205882 | 102 | 0.565928 | 81 | 857 | 5.888889 | 0.555556 | 0.092243 | 0.100629 | 0.125786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054701 | 0.317386 | 857 | 33 | 103 | 25.969697 | 0.760684 | 0.052509 | 0 | 0.259259 | 1 | 0 | 0.106173 | 0.028395 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.185185 | 0 | 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 |
c9748cc470f6cf9a38039359e7d67d00b99bffc7 | 1,405 | py | Python | exercicios/exe084/exe084.py | tiagolsouza/exercicios-Curso-em-video-PYTHON | e4e6975fac7e4883aeab58b970c6ca72895564e4 | [
"MIT"
] | null | null | null | exercicios/exe084/exe084.py | tiagolsouza/exercicios-Curso-em-video-PYTHON | e4e6975fac7e4883aeab58b970c6ca72895564e4 | [
"MIT"
] | null | null | null | exercicios/exe084/exe084.py | tiagolsouza/exercicios-Curso-em-video-PYTHON | e4e6975fac7e4883aeab58b970c6ca72895564e4 | [
"MIT"
] | null | null | null | a = 50
print('\033[32m_\033[m'*a)
print('\033[1;32m{:=^{}}\033[m'.format('SISTEMA DE IDENTIFICAÇÃO DE PESOS', a))
print('\033[32m-\033[m'*a)
listafinal = list()
listainit = list()
tamanho = 0
maiorp = menorp = 0
continuar = 's'
while True:
if 's' in continuar:
listainit.append(str(input('\033[36mNome: '))... | 30.543478 | 85 | 0.589324 | 202 | 1,405 | 4.094059 | 0.292079 | 0.048368 | 0.065296 | 0.033857 | 0.349456 | 0.349456 | 0.200726 | 0.125756 | 0.125756 | 0.07497 | 0 | 0.099083 | 0.224199 | 1,405 | 45 | 86 | 31.222222 | 0.659633 | 0.051957 | 0 | 0.210526 | 0 | 0 | 0.301277 | 0.01728 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.263158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c97f792c12ecfce4d3ec9489e8ebc3d9afca6f52 | 896 | py | Python | setup.py | mMeijden/three3cpo | 8bbcddc467e48136c41cce66ef4115203f4f3b58 | [
"MIT"
] | 6 | 2021-05-18T21:08:46.000Z | 2022-02-26T18:47:16.000Z | setup.py | mMeijden/three3cpo | 8bbcddc467e48136c41cce66ef4115203f4f3b58 | [
"MIT"
] | 1 | 2021-08-02T16:55:09.000Z | 2021-08-09T08:43:28.000Z | setup.py | mMeijden/three3cpo | 8bbcddc467e48136c41cce66ef4115203f4f3b58 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='t3cpo',
packages=find_packages(exclude=['tests', '.github']),
version='0.1',
license='MIT',
description='Python wrapper for the several 3Commas api endpoints',
author='mmeijden',
author_email='me@mmeijden.nl', # Type in your E-Mail
... | 34.461538 | 112 | 0.609375 | 94 | 896 | 5.765957 | 0.734043 | 0.105166 | 0.138376 | 0.143911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020202 | 0.226563 | 896 | 25 | 113 | 35.84 | 0.761905 | 0.021205 | 0 | 0.083333 | 0 | 0 | 0.52 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a311fff7458112cf33a6f6e30d52f6e84bedba91 | 1,837 | py | Python | src/bitvavo_api_upgraded/settings.py | Thaumatorium/python-bitvavo-api | 14fc994f130105a24ba90cc1a36c8e886778ca7d | [
"0BSD"
] | 1 | 2022-01-18T23:39:54.000Z | 2022-01-18T23:39:54.000Z | src/bitvavo_api_upgraded/settings.py | Thaumatorium/python-bitvavo-api | 14fc994f130105a24ba90cc1a36c8e886778ca7d | [
"0BSD"
] | null | null | null | src/bitvavo_api_upgraded/settings.py | Thaumatorium/python-bitvavo-api | 14fc994f130105a24ba90cc1a36c8e886778ca7d | [
"0BSD"
] | null | null | null | import logging
from pathlib import Path
from decouple import Choices, AutoConfig
from bitvavo_api_upgraded.type_aliases import ms
# don't use/import python-decouple's `config`` variable, because the search_path isn't set,
# which means applications that use a .env file can't override these variables :(
config = Auto... | 41.75 | 117 | 0.748503 | 254 | 1,837 | 5.19685 | 0.444882 | 0.078788 | 0.081818 | 0.072727 | 0.139394 | 0.104545 | 0 | 0 | 0 | 0 | 0 | 0.010947 | 0.1546 | 1,837 | 43 | 118 | 42.72093 | 0.839021 | 0.266195 | 0 | 0 | 0 | 0 | 0.238491 | 0.119245 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16 | 0 | 0.72 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.