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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
604c11d1662643b5e9e977b3126e196c0ca94747 | 1,944 | py | Python | edit/editpublisher.py | lokal-profil/isfdb_site | 0ce20d6347849926d4eda961ea9249c31519eea5 | [
"BSD-3-Clause"
] | null | null | null | edit/editpublisher.py | lokal-profil/isfdb_site | 0ce20d6347849926d4eda961ea9249c31519eea5 | [
"BSD-3-Clause"
] | null | null | null | edit/editpublisher.py | lokal-profil/isfdb_site | 0ce20d6347849926d4eda961ea9249c31519eea5 | [
"BSD-3-Clause"
] | null | null | null | #!_PYTHONLOC
#
# (C) COPYRIGHT 2004-2021 Al von Ruff and Ahasuerus
# ALL RIGHTS RESERVED
#
# The copyright notice above does not evidence any actual or
# intended publication of such source code.
#
# Version: $Revision$
# Date: $Date$
from isfdblib import *
from isfdblib_help import *
fr... | 28.173913 | 98 | 0.677469 | 219 | 1,944 | 5.885845 | 0.479452 | 0.03879 | 0.00931 | 0.00931 | 0.004655 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012266 | 0.203189 | 1,944 | 68 | 99 | 28.588235 | 0.819884 | 0.154835 | 0 | 0.052632 | 0 | 0.026316 | 0.280809 | 0.052728 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.447368 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 2 |
604f0eeff04eca0db1f9e0f762b1e72dacff74c1 | 2,907 | py | Python | audioanalysis_demo/test_audio_analysis.py | tiaotiao/applets | c583a4405ed18c7d74bfba49884525c43d114398 | [
"MIT"
] | null | null | null | audioanalysis_demo/test_audio_analysis.py | tiaotiao/applets | c583a4405ed18c7d74bfba49884525c43d114398 | [
"MIT"
] | null | null | null | audioanalysis_demo/test_audio_analysis.py | tiaotiao/applets | c583a4405ed18c7d74bfba49884525c43d114398 | [
"MIT"
] | null | null | null |
import sys, wave
import AudioAnalysis
FILE_NAME = "snippet.wav"
def testWavWrite():
try:
f = wave.open(FILE_NAME, "rb")
except Exception, e:
print e
print "File type is not wav!"
return
c = wave.open("cnv_" + FILE_NAME, "wb")
print f.getnchannels()
print ... | 23.827869 | 88 | 0.579635 | 340 | 2,907 | 4.894118 | 0.323529 | 0.043269 | 0.024038 | 0.016827 | 0.208534 | 0.208534 | 0.141827 | 0.141827 | 0.141827 | 0.141827 | 0 | 0.011429 | 0.277606 | 2,907 | 122 | 89 | 23.827869 | 0.780952 | 0.117647 | 0 | 0.197368 | 0 | 0 | 0.146504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026316 | null | null | 0.460526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 2 |
6053b76dec55ceda546ea38cd4b295199bfedd36 | 382 | py | Python | openslides_backend/action/topic/delete.py | reiterl/openslides-backend | d36667f00087ae8baf25853d4cef18a5e6dc7b3b | [
"MIT"
] | null | null | null | openslides_backend/action/topic/delete.py | reiterl/openslides-backend | d36667f00087ae8baf25853d4cef18a5e6dc7b3b | [
"MIT"
] | null | null | null | openslides_backend/action/topic/delete.py | reiterl/openslides-backend | d36667f00087ae8baf25853d4cef18a5e6dc7b3b | [
"MIT"
] | null | null | null | from ...models.models import Topic
from ..default_schema import DefaultSchema
from ..generics import DeleteAction
from ..register import register_action
@register_action("topic.delete")
class TopicDelete(DeleteAction):
"""
Action to delete simple topics that can be shown in the agenda.
"""
model = To... | 25.466667 | 67 | 0.740838 | 46 | 382 | 6.043478 | 0.565217 | 0.100719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162304 | 382 | 14 | 68 | 27.285714 | 0.86875 | 0.164921 | 0 | 0 | 0 | 0 | 0.039604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
605951901688fbda8e99d2e5f2796e9b32eff1fe | 18,195 | py | Python | exchange_calendars/extensions/exchange_calendar_krx.py | syonoki/exchange_calendars | 639ab0f88a874af99bb601824a8ffef2572820d4 | [
"Apache-2.0"
] | null | null | null | exchange_calendars/extensions/exchange_calendar_krx.py | syonoki/exchange_calendars | 639ab0f88a874af99bb601824a8ffef2572820d4 | [
"Apache-2.0"
] | null | null | null | exchange_calendars/extensions/exchange_calendar_krx.py | syonoki/exchange_calendars | 639ab0f88a874af99bb601824a8ffef2572820d4 | [
"Apache-2.0"
] | null | null | null | """
Last update: 2018-10-26
"""
from exchange_calendars.extensions.calendar_extension import ExtendedExchangeCalendar
from pandas import (
Timestamp,
)
from pandas.tseries.holiday import (
Holiday,
previous_friday,
)
from exchange_calendars.exchange_calendar import HolidayCalendar
from datetime import tim... | 28.474178 | 85 | 0.580599 | 2,452 | 18,195 | 4.294861 | 0.081158 | 0.159054 | 0.340329 | 0.041022 | 0.645238 | 0.069699 | 0.012914 | 0 | 0 | 0 | 0 | 0.207138 | 0.19313 | 18,195 | 638 | 86 | 28.518809 | 0.510183 | 0.044957 | 0 | 0.04142 | 0 | 0 | 0.265002 | 0.001216 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021696 | false | 0 | 0.013807 | 0.021696 | 0.059172 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
605c46e1dca45ffe66a05a4a91174510b5abbb04 | 433 | py | Python | src/forecastmgmt/ui/masterdata/person_window.py | vvladych/forecastmgmt | 9eea272d00bb42031f49b5bb5af01388ecce31cf | [
"Unlicense"
] | null | null | null | src/forecastmgmt/ui/masterdata/person_window.py | vvladych/forecastmgmt | 9eea272d00bb42031f49b5bb5af01388ecce31cf | [
"Unlicense"
] | 37 | 2015-07-01T22:18:51.000Z | 2016-03-11T21:17:12.000Z | src/forecastmgmt/ui/masterdata/person_window.py | vvladych/forecastmgmt | 9eea272d00bb42031f49b5bb5af01388ecce31cf | [
"Unlicense"
] | null | null | null | from gi.repository import Gtk
from masterdata_abstract_window import MasterdataAbstractWindow
from person_add_mask import PersonAddMask
from person_list_mask import PersonListMask
class PersonWindow(MasterdataAbstractWindow):
def __init__(self, main_window):
super(PersonWindow, self).__init__(main_windo... | 25.470588 | 124 | 0.757506 | 45 | 433 | 6.866667 | 0.533333 | 0.097087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191686 | 433 | 16 | 125 | 27.0625 | 0.882857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.571429 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
606613f1ae0ac5127e78b4dfa447fad203daeafe | 6,736 | py | Python | scripts/generate.py | jwise/pebble-caltrain | 770497cb38205827fee2e4e4cfdd79bcf60ceb65 | [
"MIT"
] | 1 | 2019-06-18T01:17:25.000Z | 2019-06-18T01:17:25.000Z | scripts/generate.py | jwise/pebble-caltrain | 770497cb38205827fee2e4e4cfdd79bcf60ceb65 | [
"MIT"
] | null | null | null | scripts/generate.py | jwise/pebble-caltrain | 770497cb38205827fee2e4e4cfdd79bcf60ceb65 | [
"MIT"
] | null | null | null | __author__ = 'katharine'
import csv
import struct
import time
import datetime
def generate_files(source_dir, target_dir):
stops_txt = [x for x in csv.DictReader(open("%s/stops.txt" % source_dir, 'rb')) if x['location_type'] == '0']
print "%d stops" % len(stops_txt)
name_replacements = (
('Caltra... | 36.215054 | 138 | 0.532512 | 924 | 6,736 | 3.728355 | 0.198052 | 0.021771 | 0.048766 | 0.065022 | 0.354717 | 0.29492 | 0.219448 | 0.16836 | 0.13643 | 0.13643 | 0 | 0.013849 | 0.28177 | 6,736 | 185 | 139 | 36.410811 | 0.698222 | 0.036372 | 0 | 0.144737 | 1 | 0 | 0.172398 | 0.003238 | 0 | 0 | 0.000617 | 0 | 0 | 0 | null | null | 0 | 0.032895 | null | null | 0.006579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6066c37cd5157dfddcd5a311c42cacbf5b1656ab | 203 | py | Python | cmsplugin_cascade/migrations/0007_add_proxy_models.py | teklager/djangocms-cascade | adc461f7054c6c0f88bc732aefd03b157df2f514 | [
"MIT"
] | 139 | 2015-01-08T22:27:06.000Z | 2021-08-19T03:36:58.000Z | cmsplugin_cascade/migrations/0007_add_proxy_models.py | teklager/djangocms-cascade | adc461f7054c6c0f88bc732aefd03b157df2f514 | [
"MIT"
] | 286 | 2015-01-02T14:15:14.000Z | 2022-03-22T11:00:12.000Z | cmsplugin_cascade/migrations/0007_add_proxy_models.py | teklager/djangocms-cascade | adc461f7054c6c0f88bc732aefd03b157df2f514 | [
"MIT"
] | 91 | 2015-01-16T15:06:23.000Z | 2022-03-23T23:36:54.000Z | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cmsplugin_cascade', '0006_bootstrapgallerypluginmodel'),
]
operations = [
]
| 16.916667 | 66 | 0.679803 | 16 | 203 | 8.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 0.221675 | 203 | 11 | 67 | 18.454545 | 0.835443 | 0 | 0 | 0 | 0 | 0 | 0.241379 | 0.157635 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 2 |
608959b12d0989d6fd9417a960a75d31ceab0a32 | 461 | py | Python | Topics/Submitting data/POST Request With Several Keys/main.py | valenciarichards/hypernews-portal | 0b6c4d8aefe4f8fc7dc90d6542716e98f52515b3 | [
"MIT"
] | 1 | 2021-07-26T03:06:14.000Z | 2021-07-26T03:06:14.000Z | Topics/Submitting data/POST Request With Several Keys/main.py | valenciarichards/hypernews-portal | 0b6c4d8aefe4f8fc7dc90d6542716e98f52515b3 | [
"MIT"
] | null | null | null | Topics/Submitting data/POST Request With Several Keys/main.py | valenciarichards/hypernews-portal | 0b6c4d8aefe4f8fc7dc90d6542716e98f52515b3 | [
"MIT"
] | null | null | null | from django.shortcuts import redirect
from django.views import View
class TodoView(View):
all_todos = []
def post(self, request, *args, **kwargs):
todo = request.POST.get("todo")
important = request.POST.get("important")
if todo not in self.all_todos:
if important:
... | 27.117647 | 56 | 0.590022 | 55 | 461 | 4.854545 | 0.472727 | 0.149813 | 0.179775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.301518 | 461 | 16 | 57 | 28.8125 | 0.829193 | 0 | 0 | 0 | 0 | 0 | 0.030369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
608a1240bebe926df3b7d5f1923157bb4c477433 | 1,614 | py | Python | pybinsim/pose.py | fkleinTUI/pyBinSim | 5320f62422e0a92154272f8167b87cabdcafe27f | [
"MIT"
] | null | null | null | pybinsim/pose.py | fkleinTUI/pyBinSim | 5320f62422e0a92154272f8167b87cabdcafe27f | [
"MIT"
] | null | null | null | pybinsim/pose.py | fkleinTUI/pyBinSim | 5320f62422e0a92154272f8167b87cabdcafe27f | [
"MIT"
] | null | null | null | import logging
from collections import namedtuple
logger = logging.getLogger("pybinsim.Pose")
class Orientation(namedtuple('Orientation', ['yaw', 'pitch', 'roll'])):
pass
class Position(namedtuple('Position', ['x', 'y', 'z'])):
pass
class Custom(namedtuple('CustomValues', ['a', 'b', 'c'])):
pass
cl... | 32.938776 | 103 | 0.669145 | 198 | 1,614 | 5.222222 | 0.29798 | 0.182785 | 0.275629 | 0.030948 | 0.297872 | 0.259188 | 0.259188 | 0.259188 | 0.259188 | 0.259188 | 0 | 0.015613 | 0.20632 | 1,614 | 48 | 104 | 33.625 | 0.791569 | 0.050805 | 0 | 0.241379 | 0 | 0 | 0.061478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.103448 | 0.068966 | 0 | 0.413793 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
60931ff29f096eec340bc02f5f6b68402207873f | 5,803 | py | Python | pulsar/datadog_checks/pulsar/check.py | divyamamgai/integrations-extras | 8c40a9cf870578687cc224ee91d3c70cd3a435a4 | [
"BSD-3-Clause"
] | 158 | 2016-06-02T16:25:31.000Z | 2022-03-16T15:55:14.000Z | pulsar/datadog_checks/pulsar/check.py | divyamamgai/integrations-extras | 8c40a9cf870578687cc224ee91d3c70cd3a435a4 | [
"BSD-3-Clause"
] | 554 | 2016-03-15T17:39:12.000Z | 2022-03-31T10:29:16.000Z | pulsar/datadog_checks/pulsar/check.py | divyamamgai/integrations-extras | 8c40a9cf870578687cc224ee91d3c70cd3a435a4 | [
"BSD-3-Clause"
] | 431 | 2016-05-13T15:33:13.000Z | 2022-03-31T10:06:46.000Z | from datadog_checks.base import ConfigurationError, OpenMetricsBaseCheck
EVENT_TYPE = SOURCE_TYPE_NAME = 'pulsar'
class PulsarCheck(OpenMetricsBaseCheck):
"""
PulsarCheck derives from AgentCheck that provides the required check method
"""
def __init__(self, name, init_config, instances=None):
... | 58.616162 | 117 | 0.693607 | 659 | 5,803 | 5.485584 | 0.182094 | 0.086307 | 0.126141 | 0.104564 | 0.334993 | 0.104011 | 0.036238 | 0 | 0 | 0 | 0 | 0.015546 | 0.212993 | 5,803 | 98 | 118 | 59.214286 | 0.776002 | 0.012924 | 0 | 0 | 0 | 0 | 0.631653 | 0.492647 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011236 | false | 0 | 0.011236 | 0 | 0.033708 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6093e7dfd679097b8c74873a9180892df2d03fa2 | 1,756 | py | Python | magie/window.py | NiumXp/Magie | f0dc1d135274b5453fde659ba46f09f4b303c099 | [
"MIT"
] | 1 | 2020-10-26T17:16:52.000Z | 2020-10-26T17:16:52.000Z | magie/window.py | NiumXp/Magie | f0dc1d135274b5453fde659ba46f09f4b303c099 | [
"MIT"
] | null | null | null | magie/window.py | NiumXp/Magie | f0dc1d135274b5453fde659ba46f09f4b303c099 | [
"MIT"
] | null | null | null | import pygame
class Window:
def __init__(self, title: str, dimension: tuple):
self.surface = None
self.initial_title = title
self.initial_dimension = dimension
@property
def title(self) -> str:
"""Returns the title of the window."""
return pygame.disp... | 27.4375 | 71 | 0.574601 | 207 | 1,756 | 4.719807 | 0.183575 | 0.102354 | 0.102354 | 0.052201 | 0.21392 | 0.172979 | 0.123849 | 0.090072 | 0.090072 | 0.090072 | 0 | 0.00165 | 0.309795 | 1,756 | 63 | 72 | 27.873016 | 0.804455 | 0.16344 | 0 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.282051 | false | 0 | 0.025641 | 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 | 1 | 0 | 0 | 2 |
609ff6c4c10fb31262c0f09062e4b789c62b7f8c | 360 | py | Python | tests/__init__.py | issuu/jmespath | 7480643df8ad0c99269b1fa6b9e793582bcb7efe | [
"MIT"
] | null | null | null | tests/__init__.py | issuu/jmespath | 7480643df8ad0c99269b1fa6b9e793582bcb7efe | [
"MIT"
] | null | null | null | tests/__init__.py | issuu/jmespath | 7480643df8ad0c99269b1fa6b9e793582bcb7efe | [
"MIT"
] | null | null | null | import sys
# The unittest module got a significant overhaul
# in 2.7, so if we're in 2.6 we can use the backported
# version unittest2.
if sys.version_info[:2] == (2, 6):
import unittest2 as unittest
import simplejson as json
from ordereddict import OrderedDict
else:
import unittest
import json
... | 21.176471 | 54 | 0.725 | 54 | 360 | 4.814815 | 0.555556 | 0.023077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032143 | 0.222222 | 360 | 16 | 55 | 22.5 | 0.896429 | 0.327778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.777778 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
60a1ad6402e8e4a36b677d266c4a8212a4c64c09 | 15,419 | py | Python | WebPortal/gbol_portal/vars.py | ZFMK/GermanBarcodeofLife | f9e9af699ba3f5b3d0d537819a8463c4162d7e82 | [
"Apache-2.0"
] | null | null | null | WebPortal/gbol_portal/vars.py | ZFMK/GermanBarcodeofLife | f9e9af699ba3f5b3d0d537819a8463c4162d7e82 | [
"Apache-2.0"
] | null | null | null | WebPortal/gbol_portal/vars.py | ZFMK/GermanBarcodeofLife | f9e9af699ba3f5b3d0d537819a8463c4162d7e82 | [
"Apache-2.0"
] | null | null | null | import configparser
c = configparser.ConfigParser()
c.read("production.ini")
config = {}
config['host'] = c['dboption']['chost']
config['port'] = int(c['dboption']['cport'])
config['user'] = c['dboption']['cuser']
config['pw'] = c['dboption']['cpw']
config['db'] = c['dboption']['cdb']
config['homepath'] = c['option'][... | 48.335423 | 120 | 0.613075 | 1,833 | 15,419 | 5.091653 | 0.327878 | 0.010286 | 0.006429 | 0.009643 | 0.23508 | 0.196078 | 0.165649 | 0.15322 | 0.132433 | 0.107361 | 0 | 0.033188 | 0.243725 | 15,419 | 318 | 121 | 48.487421 | 0.767173 | 0.006356 | 0 | 0.213483 | 0 | 0.014981 | 0.673738 | 0.03512 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.067416 | 0.003745 | 0 | 0.003745 | 0.003745 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
60aaca2558f26dc382fc17ea023f8e47287579c5 | 26,892 | py | Python | datastore/core/test/test_basic.py | jbenet/datastore | 6c0e9f39b844788ca21c5cf613c625a72fb20c20 | [
"MIT"
] | 1 | 2015-05-24T13:11:16.000Z | 2015-05-24T13:11:16.000Z | datastore/core/test/test_basic.py | jbenet/datastore | 6c0e9f39b844788ca21c5cf613c625a72fb20c20 | [
"MIT"
] | null | null | null | datastore/core/test/test_basic.py | jbenet/datastore | 6c0e9f39b844788ca21c5cf613c625a72fb20c20 | [
"MIT"
] | null | null | null |
import unittest
import logging
from ..basic import DictDatastore
from ..key import Key
from ..query import Query
class TestDatastore(unittest.TestCase):
def subtest_simple(self, stores, numelems=1000):
def checkLength(len):
try:
for sn in stores:
self.assertEqual(len(sn), numelems)
... | 27.553279 | 77 | 0.643611 | 3,624 | 26,892 | 4.734547 | 0.075055 | 0.160858 | 0.059797 | 0.057524 | 0.679625 | 0.62822 | 0.58107 | 0.561429 | 0.522264 | 0.510024 | 0 | 0.024767 | 0.201249 | 26,892 | 975 | 78 | 27.581538 | 0.774022 | 0.039305 | 0 | 0.610072 | 0 | 0 | 0.034456 | 0.013527 | 0 | 0 | 0 | 0.001026 | 0.420144 | 0 | null | null | 0.008633 | 0.03741 | null | null | 0.001439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
60aeca0f1277fa05a855d2d1630e9fb88e8caff2 | 124 | py | Python | entry.py | Allenyou1126/allenyou-acme.sh | 2f5fa606cb0a66ded49d75a98d0dc47adc68c87c | [
"Apache-2.0"
] | null | null | null | entry.py | Allenyou1126/allenyou-acme.sh | 2f5fa606cb0a66ded49d75a98d0dc47adc68c87c | [
"Apache-2.0"
] | null | null | null | entry.py | Allenyou1126/allenyou-acme.sh | 2f5fa606cb0a66ded49d75a98d0dc47adc68c87c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import json
from allenyoucert import Cert
def main():
certList = list()
a = json()
main()
| 11.272727 | 29 | 0.645161 | 17 | 124 | 4.705882 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.225806 | 124 | 10 | 30 | 12.4 | 0.822917 | 0.169355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
60b0bb8f2315cabad512414bb05d03c08dd3d690 | 882 | py | Python | users/forms.py | iurykrieger96/alura-django | d8ed9998ccbc629127b2c6ca3ed3798da9a578f3 | [
"MIT"
] | null | null | null | users/forms.py | iurykrieger96/alura-django | d8ed9998ccbc629127b2c6ca3ed3798da9a578f3 | [
"MIT"
] | null | null | null | users/forms.py | iurykrieger96/alura-django | d8ed9998ccbc629127b2c6ca3ed3798da9a578f3 | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.models import User
from django.forms.utils import ErrorList
class UserForm(forms.Form):
name = forms.CharField(required=True)
email = forms.EmailField(required=True)
password = forms.CharField(required=True)
phone = forms.CharField(required=True)
n... | 32.666667 | 90 | 0.679138 | 110 | 882 | 5.345455 | 0.481818 | 0.102041 | 0.14966 | 0.176871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219955 | 882 | 26 | 91 | 33.923077 | 0.854651 | 0 | 0 | 0.095238 | 0 | 0 | 0.072562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.047619 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
60b74cba1803d593d12dfa926f3a269a994bf89a | 705 | py | Python | examples/multiple_deserializers.py | klauer/apischema | 0da9b96b74dabe8704e2dcfca4502aed98500799 | [
"MIT"
] | null | null | null | examples/multiple_deserializers.py | klauer/apischema | 0da9b96b74dabe8704e2dcfca4502aed98500799 | [
"MIT"
] | null | null | null | examples/multiple_deserializers.py | klauer/apischema | 0da9b96b74dabe8704e2dcfca4502aed98500799 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from apischema import deserialize, deserializer
from apischema.json_schema import deserialization_schema
@dataclass
class Expression:
value: int
@deserializer
def evaluate_expression(expr: str) -> Expression:
return Expression(int(eval(expr)))
# Could be shorten into des... | 25.178571 | 86 | 0.753191 | 81 | 705 | 6.481481 | 0.481481 | 0.049524 | 0.099048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016367 | 0.133333 | 705 | 27 | 87 | 26.111111 | 0.842881 | 0.10922 | 0 | 0.117647 | 0 | 0 | 0.116613 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.117647 | false | 0 | 0.176471 | 0.117647 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
60bc5e49484474aa3891401d08c7a54d11595b9c | 3,145 | py | Python | iqoptionapi/country_id.py | mustx1/MYIQ | 3afb597aa8a8abc278b7d70dad46af81789eae3e | [
"MIT"
] | 3 | 2021-07-09T18:34:57.000Z | 2021-08-04T18:05:17.000Z | iqoptionapi/country_id.py | mustx1/MYIQ | 3afb597aa8a8abc278b7d70dad46af81789eae3e | [
"MIT"
] | 5 | 2022-01-20T00:32:49.000Z | 2022-02-16T23:12:10.000Z | iqoptionapi/country_id.py | mustx1/MYIQ | 3afb597aa8a8abc278b7d70dad46af81789eae3e | [
"MIT"
] | 2 | 2021-06-15T15:13:07.000Z | 2021-12-08T04:16:36.000Z | ID = {"Worldwide":0,
"AF": 1,
"AL": 2,
"DZ": 3,
"AD": 5,
"AO": 6,
"AI": 7,
"AG": 9,
"AR": 10,
"AM": 11,
"AW": 12,
"AT": 14,
"AZ": 15,
"BS": 16,
"BH": 17,
"BD": 18,
"BB": 19,
"BY": 20,
"BZ": 22,
"BJ": 23,
... | 16.465969 | 20 | 0.275358 | 381 | 3,145 | 2.272966 | 0.997375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292818 | 0.482035 | 3,145 | 190 | 21 | 16.552632 | 0.238797 | 0 | 0 | 0 | 0 | 0 | 0.123052 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
60c6f3e298d768073d3b87bc2b50e42241d8b8c4 | 6,395 | py | Python | src/_cffi_src/openssl/engine.py | balabit-deps/balabit-os-6-python-cryptography | c31d184a56a18bad89a6444313367be71b5b0877 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/_cffi_src/openssl/engine.py | balabit-deps/balabit-os-6-python-cryptography | c31d184a56a18bad89a6444313367be71b5b0877 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/_cffi_src/openssl/engine.py | balabit-deps/balabit-os-6-python-cryptography | c31d184a56a18bad89a6444313367be71b5b0877 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
from __future__ import absolute_import, division, print_function
INCLUDES = """
#include <openssl/engine.h>
"""
TYPES = """
static const ... | 37.180233 | 79 | 0.792807 | 943 | 6,395 | 4.991516 | 0.135737 | 0.126195 | 0.073932 | 0.046739 | 0.380922 | 0.191417 | 0.101976 | 0.046526 | 0.046526 | 0.028681 | 0 | 0.000695 | 0.100547 | 6,395 | 171 | 80 | 37.397661 | 0.817629 | 0.027052 | 0 | 0.031847 | 0 | 0 | 0.973303 | 0.490994 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006369 | 0 | 0.006369 | 0.006369 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
60c93dc759e4957c6c02160af6c8d88b4200fc54 | 1,518 | py | Python | notes/algo-ds-practice/problems/graph/mother_vertex.py | Anmol-Singh-Jaggi/interview-notes | 65af75e2b5725894fa5e13bb5cd9ecf152a0d652 | [
"MIT"
] | 6 | 2020-07-05T05:15:19.000Z | 2021-01-24T20:17:14.000Z | notes/algo-ds-practice/problems/graph/mother_vertex.py | Anmol-Singh-Jaggi/interview-notes | 65af75e2b5725894fa5e13bb5cd9ecf152a0d652 | [
"MIT"
] | null | null | null | notes/algo-ds-practice/problems/graph/mother_vertex.py | Anmol-Singh-Jaggi/interview-notes | 65af75e2b5725894fa5e13bb5cd9ecf152a0d652 | [
"MIT"
] | 2 | 2020-09-14T06:46:37.000Z | 2021-06-15T09:17:21.000Z | '''
What is a Mother Vertex?
A mother vertex in a graph G = (V,E) is a vertex v such that all other vertices in G can be reached by a path from v.
How to find mother vertex?
Case 1:- Undirected Connected Graph : In this case, all the vertices are mother vertices as we can reach to all the other nodes in the graph... | 43.371429 | 178 | 0.729908 | 284 | 1,518 | 3.901408 | 0.334507 | 0.086643 | 0.058664 | 0.040614 | 0.217509 | 0.152527 | 0.105596 | 0.105596 | 0.105596 | 0.105596 | 0 | 0.002517 | 0.214756 | 1,518 | 34 | 179 | 44.647059 | 0.927013 | 0.994071 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
60ce6d6b59025060fc5b78c3b1b74f61b441a1a2 | 1,058 | py | Python | scripts/quest/q3526s.py | pantskun/swordiemen | fc33ffec168e6611587fdc75de8270f6827a4176 | [
"MIT"
] | null | null | null | scripts/quest/q3526s.py | pantskun/swordiemen | fc33ffec168e6611587fdc75de8270f6827a4176 | [
"MIT"
] | null | null | null | scripts/quest/q3526s.py | pantskun/swordiemen | fc33ffec168e6611587fdc75de8270f6827a4176 | [
"MIT"
] | null | null | null | # In Search for the Lost Memory [Explorer Thief] (3526)
# To be replaced with GMS's exact dialogue.
# Following dialogue has been edited from DeepL on JMS's dialogue transcript (no KMS footage anywhere):
# https://kaengouraiu2.blog.fc2.com/blog-entry-46.html
recoveredMemory = 7081
darkLord = 1052001
sm.setSpeakerID(... | 48.090909 | 111 | 0.753308 | 181 | 1,058 | 4.403315 | 0.674033 | 0.015056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022321 | 0.153119 | 1,058 | 22 | 112 | 48.090909 | 0.867188 | 0.236295 | 0 | 0 | 0 | 0.357143 | 0.679104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
60cffac1ca4370e00b0819dac3003373ca8c201a | 361 | py | Python | foundation/djangocms_submenu/cms_plugins.py | Mindelirium/foundation | 2d07e430915d696ca7376afea633692119c4d30e | [
"MIT"
] | null | null | null | foundation/djangocms_submenu/cms_plugins.py | Mindelirium/foundation | 2d07e430915d696ca7376afea633692119c4d30e | [
"MIT"
] | null | null | null | foundation/djangocms_submenu/cms_plugins.py | Mindelirium/foundation | 2d07e430915d696ca7376afea633692119c4d30e | [
"MIT"
] | null | null | null | from django.utils.translation import ugettext_lazy as _
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from cms.models.pluginmodel import CMSPlugin
class SubmenuPlugin(CMSPluginBase):
model = CMSPlugin
name = _("Submenu")
render_template = "cms/plugins/submenu.html"
pl... | 25.785714 | 55 | 0.806094 | 45 | 361 | 6.266667 | 0.577778 | 0.074468 | 0.092199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127424 | 361 | 13 | 56 | 27.769231 | 0.895238 | 0 | 0 | 0 | 0 | 0 | 0.085873 | 0.066482 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
60d36c2c07868be1d602edbfc58792e48953ffe7 | 960 | py | Python | StickyDJ-Bot/src/clients/client.py | JCab09/StickyDJ-Bot | feaf2229a6729be6ad022f9105da19192e3a91d3 | [
"WTFPL"
] | null | null | null | StickyDJ-Bot/src/clients/client.py | JCab09/StickyDJ-Bot | feaf2229a6729be6ad022f9105da19192e3a91d3 | [
"WTFPL"
] | null | null | null | StickyDJ-Bot/src/clients/client.py | JCab09/StickyDJ-Bot | feaf2229a6729be6ad022f9105da19192e3a91d3 | [
"WTFPL"
] | null | null | null | #!/usr/bin/env python3
"""
Base-Client Class
This is the parent-class of all client-classes and holds properties and functions they all depend on.
Author: Jason Cabezuela
"""
import src.util.debugger as Debugger
import src.util.configmaker as configmaker
class BaseClient(object):
"""Base-Client Class"""
def ... | 27.428571 | 101 | 0.684375 | 108 | 960 | 5.944444 | 0.518519 | 0.11838 | 0.046729 | 0.056075 | 0.096573 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00134 | 0.222917 | 960 | 34 | 102 | 28.235294 | 0.859249 | 0.295833 | 0 | 0 | 0 | 0 | 0.053599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.133333 | 0.066667 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
60d3ab0d0b30464f05fb6f22999b5abfbd62a774 | 1,575 | py | Python | cryptomon/ascii.py | S0L1DUS/cryptocoinmon | 37b210ca2f93f0b70f160ad903782408dee0f9e9 | [
"MIT"
] | null | null | null | cryptomon/ascii.py | S0L1DUS/cryptocoinmon | 37b210ca2f93f0b70f160ad903782408dee0f9e9 | [
"MIT"
] | null | null | null | cryptomon/ascii.py | S0L1DUS/cryptocoinmon | 37b210ca2f93f0b70f160ad903782408dee0f9e9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
from cryptomon.common import Colors
if sys.version_info >= (3, 0):
import io
else:
import StringIO as io
ascii_title = """
/$$$$$$ /$$ /$$ /$$
/$$__ $$ | $$ ... | 37.5 | 93 | 0.258413 | 72 | 1,575 | 4.625 | 0.513889 | 0.108108 | 0.114114 | 0.144144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010804 | 0.471111 | 1,575 | 41 | 94 | 38.414634 | 0.388956 | 0.013333 | 0 | 0 | 0 | 0.133333 | 0.66817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.133333 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
60dcfdc60c959c4708ded0468f3983791fbd3721 | 596 | py | Python | mineshaft.py | DidymusRex/PiCraft | 07b7dad2e68a2473e4314c9b77cb82abce41ae97 | [
"Unlicense"
] | null | null | null | mineshaft.py | DidymusRex/PiCraft | 07b7dad2e68a2473e4314c9b77cb82abce41ae97 | [
"Unlicense"
] | null | null | null | mineshaft.py | DidymusRex/PiCraft | 07b7dad2e68a2473e4314c9b77cb82abce41ae97 | [
"Unlicense"
] | null | null | null | #! /usr/bin/env python
import mcpi.minecraft as minecraft
import mcpi.block as block
import random
import time
mc = minecraft.Minecraft.create()
# ----------------------------------------------------------------------
# S E T U P
# ----------------------------------------------------------------------
# Where Am ... | 24.833333 | 86 | 0.513423 | 91 | 596 | 3.351648 | 0.450549 | 0.065574 | 0.068852 | 0.078689 | 0.347541 | 0.347541 | 0.308197 | 0.308197 | 0.308197 | 0.308197 | 0 | 0.032443 | 0.120805 | 596 | 23 | 87 | 25.913043 | 0.549618 | 0.313758 | 0 | 0 | 0 | 0 | 0.077114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.4 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
60e2a8760c2ed0b0d0f7dbca153dcadf9a319042 | 4,827 | py | Python | src/cowrie/telnet/userauth.py | uwacyber/cowrie | 1d81e1ca5d0b8461e06f17aee26cb7bf108a16e5 | [
"BSD-3-Clause"
] | 2,316 | 2015-06-25T18:51:02.000Z | 2022-03-29T23:31:16.000Z | src/cowrie/telnet/userauth.py | uwacyber/cowrie | 1d81e1ca5d0b8461e06f17aee26cb7bf108a16e5 | [
"BSD-3-Clause"
] | 632 | 2015-07-08T19:02:05.000Z | 2022-03-20T03:20:56.000Z | src/cowrie/telnet/userauth.py | uwacyber/cowrie | 1d81e1ca5d0b8461e06f17aee26cb7bf108a16e5 | [
"BSD-3-Clause"
] | 486 | 2015-08-12T05:02:45.000Z | 2022-03-27T19:54:02.000Z | # Copyright (C) 2015, 2016 GoSecure Inc.
"""
Telnet Transport and Authentication for the Honeypot
@author: Olivier Bilodeau <obilodeau@gosecure.ca>
"""
from __future__ import annotations
import struct
from twisted.conch.telnet import (
ECHO,
LINEMODE,
NAWS,
SGA,
AuthenticatingTelnetProtocol,
... | 32.18 | 82 | 0.63207 | 534 | 4,827 | 5.681648 | 0.430712 | 0.072841 | 0.035597 | 0.029005 | 0.062953 | 0.041529 | 0 | 0 | 0 | 0 | 0 | 0.008109 | 0.284649 | 4,827 | 149 | 83 | 32.395973 | 0.870547 | 0.315724 | 0 | 0.180723 | 0 | 0 | 0.043423 | 0 | 0 | 0 | 0 | 0.020134 | 0 | 1 | 0.13253 | false | 0.084337 | 0.072289 | 0 | 0.373494 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
60e7397962091395a87e3dcdedd54da76ffb66e6 | 515 | py | Python | filer/tests/utils/__init__.py | pbs/django-filer | c862a84d4e1d86c14eeb509e341f6a7d39a421bf | [
"BSD-3-Clause"
] | 1 | 2015-03-03T15:49:14.000Z | 2015-03-03T15:49:14.000Z | filer/tests/utils/__init__.py | pbs/django-filer | c862a84d4e1d86c14eeb509e341f6a7d39a421bf | [
"BSD-3-Clause"
] | 10 | 2015-04-08T14:16:52.000Z | 2021-12-15T16:17:57.000Z | filer/tests/utils/__init__.py | pbs/django-filer | c862a84d4e1d86c14eeb509e341f6a7d39a421bf | [
"BSD-3-Clause"
] | null | null | null | from django.template.loaders.base import Loader as BaseLoader
from django.template.base import TemplateDoesNotExist
class Mock():
pass
class MockLoader(BaseLoader):
is_usable = True
def load_template_source(self, template_name, template_dirs=None):
if template_name == 'cms_mock_template.html':... | 25.75 | 70 | 0.671845 | 60 | 515 | 5.616667 | 0.583333 | 0.106825 | 0.106825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.231068 | 515 | 19 | 71 | 27.105263 | 0.828283 | 0 | 0 | 0 | 0 | 0 | 0.145631 | 0.042718 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 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 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
60ebcdffbce13db306c3a548fbb31af96bfe8e29 | 1,549 | py | Python | molecule/default/tests/test_default.py | joshbenner/sensu-ansible-role | ecc92ba3462d7edf50ad96ddda61080ba58c29f8 | [
"BSD-3-Clause"
] | null | null | null | molecule/default/tests/test_default.py | joshbenner/sensu-ansible-role | ecc92ba3462d7edf50ad96ddda61080ba58c29f8 | [
"BSD-3-Clause"
] | 1 | 2018-10-31T03:14:05.000Z | 2018-10-31T03:14:05.000Z | molecule/default/tests/test_default.py | joshbenner/sensu-ansible-role | ecc92ba3462d7edf50ad96ddda61080ba58c29f8 | [
"BSD-3-Clause"
] | null | null | null | import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_packages(host):
package = host.package('sensu')
assert package.is_installed
assert '1.7.0' in package.version
def test_di... | 24.587302 | 70 | 0.713363 | 223 | 1,549 | 4.789238 | 0.345291 | 0.065543 | 0.070225 | 0.044944 | 0.138577 | 0.048689 | 0 | 0 | 0 | 0 | 0 | 0.017571 | 0.154939 | 1,549 | 62 | 71 | 24.983871 | 0.798319 | 0.019367 | 0 | 0 | 0 | 0 | 0.187212 | 0.074489 | 0 | 0 | 0 | 0 | 0.560976 | 1 | 0.219512 | false | 0 | 0.04878 | 0 | 0.268293 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
60ed370b9d6be678d96e0ec349072e5fb104c1f2 | 1,582 | py | Python | gellifinsta/models.py | vallka/djellifique | fb84fba6be413f9d38276d89ae84aeaff761218f | [
"MIT"
] | null | null | null | gellifinsta/models.py | vallka/djellifique | fb84fba6be413f9d38276d89ae84aeaff761218f | [
"MIT"
] | null | null | null | gellifinsta/models.py | vallka/djellifique | fb84fba6be413f9d38276d89ae84aeaff761218f | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.html import mark_safe
# Create your models here.
class Gellifinsta(models.Model):
class Meta:
ordering = ['-taken_at_datetime']
shortcode = models.CharField(_("Shortcode"), max_length=20)
taken_... | 35.954545 | 91 | 0.689633 | 199 | 1,582 | 5.226131 | 0.371859 | 0.072115 | 0.046154 | 0.038462 | 0.178846 | 0.125 | 0.082692 | 0 | 0 | 0 | 0 | 0.012908 | 0.167509 | 1,582 | 43 | 92 | 36.790698 | 0.776765 | 0.015171 | 0 | 0.1875 | 0 | 0 | 0.106684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.09375 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
60fea0a23e4a5ea1e75b9b0eb479df0b1f05f8bb | 707 | py | Python | examples/GenerateSubset.py | vitay/YouTubeFacesDB | e7225e8d775ad64889fbee57a4452a25573a0360 | [
"MIT"
] | 11 | 2018-02-25T16:20:16.000Z | 2021-07-27T02:46:09.000Z | examples/GenerateSubset.py | vitay/YouTubeFacesDB | e7225e8d775ad64889fbee57a4452a25573a0360 | [
"MIT"
] | 1 | 2018-12-14T19:56:16.000Z | 2018-12-16T22:09:30.000Z | examples/GenerateSubset.py | vitay/YouTubeFacesDB | e7225e8d775ad64889fbee57a4452a25573a0360 | [
"MIT"
] | 3 | 2017-05-05T03:23:17.000Z | 2019-11-11T01:39:25.000Z | from YouTubeFacesDB import generate_ytf_database
###############################################################################
# Create the dataset
###############################################################################
generate_ytf_database(
directory= '../data',#'/scratch/vitay/Datasets/YouTubeFaces'... | 47.133333 | 95 | 0.550212 | 82 | 707 | 4.670732 | 0.658537 | 0.039164 | 0.099217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020101 | 0.155587 | 707 | 15 | 96 | 47.133333 | 0.621441 | 0.414427 | 0 | 0 | 1 | 0 | 0.060976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8801787fa421093191e86dccf0ba799d1e648912 | 506 | py | Python | hyssop_aiohttp/component/__init__.py | hsky77/hyssop | 4ab1e82f9e2592de56589c7426a037564bef49a6 | [
"MIT"
] | null | null | null | hyssop_aiohttp/component/__init__.py | hsky77/hyssop | 4ab1e82f9e2592de56589c7426a037564bef49a6 | [
"MIT"
] | null | null | null | hyssop_aiohttp/component/__init__.py | hsky77/hyssop | 4ab1e82f9e2592de56589c7426a037564bef49a6 | [
"MIT"
] | null | null | null | # Copyright (C) 2020-Present the hyssop authors and contributors.
#
# This module is part of hyssop and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
'''
File created: January 1st 2021
Modified By: hsky77
Last Updated: January 7th 2021 15:30:08 pm
'''
from hyssop.project.com... | 25.3 | 69 | 0.774704 | 66 | 506 | 5.909091 | 0.757576 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050228 | 0.134387 | 506 | 19 | 70 | 26.631579 | 0.840183 | 0.551383 | 0 | 0 | 0 | 0 | 0.171296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
8801ff2af63497d7ca9dadd57139f98ae23b3370 | 5,081 | py | Python | punkweb_boards/rest/serializers.py | Punkweb/punkweb-boards | 8934d15fbff2a3ce9191fdb19d58d029eb55ef16 | [
"BSD-3-Clause"
] | 20 | 2018-02-22T11:36:04.000Z | 2022-03-22T11:48:22.000Z | punkweb_boards/rest/serializers.py | imgVOID/punkweb-boards | 8934d15fbff2a3ce9191fdb19d58d029eb55ef16 | [
"BSD-3-Clause"
] | 28 | 2018-02-22T07:11:46.000Z | 2022-02-23T08:05:29.000Z | punkweb_boards/rest/serializers.py | imgVOID/punkweb-boards | 8934d15fbff2a3ce9191fdb19d58d029eb55ef16 | [
"BSD-3-Clause"
] | 5 | 2018-02-25T11:05:19.000Z | 2021-05-27T02:25:31.000Z | from rest_framework import serializers
from punkweb_boards.conf.settings import SHOUTBOX_DISABLED_TAGS
from punkweb_boards.models import (
BoardProfile,
Category,
Subcategory,
Thread,
Post,
Conversation,
Message,
Report,
Shout,
)
class BoardProfileSerializer(serializers.ModelSerial... | 30.793939 | 81 | 0.657745 | 478 | 5,081 | 6.732218 | 0.209205 | 0.223741 | 0.205096 | 0.126787 | 0.529832 | 0.224052 | 0.159416 | 0.128341 | 0.116221 | 0.070851 | 0 | 0.000261 | 0.245818 | 5,081 | 164 | 82 | 30.981707 | 0.839509 | 0 | 0 | 0.226277 | 0 | 0 | 0.142492 | 0.045463 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029197 | false | 0 | 0.021898 | 0.021898 | 0.437956 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
88031b336437f0a5497f94eace7653d85a0ddb61 | 1,326 | py | Python | runtime/components/Statistic/moving_minimum_time.py | ulise/hetida-designer | a6be8eb45abf950d5498e3ca756ea1d2e46b5c00 | [
"MIT"
] | 41 | 2020-11-18T10:12:29.000Z | 2022-03-28T21:46:41.000Z | runtime/components/Statistic/moving_minimum_time.py | ulise/hetida-designer | a6be8eb45abf950d5498e3ca756ea1d2e46b5c00 | [
"MIT"
] | 4 | 2020-12-08T15:28:15.000Z | 2022-02-01T11:40:17.000Z | runtime/components/Statistic/moving_minimum_time.py | ulise/hetida-designer | a6be8eb45abf950d5498e3ca756ea1d2e46b5c00 | [
"MIT"
] | 14 | 2020-11-18T11:39:17.000Z | 2022-03-21T15:05:11.000Z | from hetdesrun.component.registration import register
from hetdesrun.datatypes import DataType
import pandas as pd
import numpy as np
# ***** DO NOT EDIT LINES BELOW *****
# These lines may be overwritten if input/output changes.
@register(
inputs={"data": DataType.Any, "t": DataType.String},
outputs={"movmin... | 28.212766 | 68 | 0.555053 | 180 | 1,326 | 4.066667 | 0.466667 | 0.065574 | 0.057377 | 0.071038 | 0.147541 | 0.098361 | 0.038251 | 0 | 0 | 0 | 0 | 0.137461 | 0.281297 | 1,326 | 46 | 69 | 28.826087 | 0.63064 | 0.457014 | 0 | 0.111111 | 1 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
880be95fb023fa99a8e4f0737f4b060a1751c3cd | 576 | py | Python | keyboardrow.py | AndySamoil/Elite_Code | 7dc3b7b1b8688c932474f8a10fd2637fd2918bdd | [
"MIT"
] | null | null | null | keyboardrow.py | AndySamoil/Elite_Code | 7dc3b7b1b8688c932474f8a10fd2637fd2918bdd | [
"MIT"
] | null | null | null | keyboardrow.py | AndySamoil/Elite_Code | 7dc3b7b1b8688c932474f8a10fd2637fd2918bdd | [
"MIT"
] | null | null | null | def findWords(self, words: List[str]) -> List[str]:
''' sets and iterate through sets
'''
every = [set("qwertyuiop"), set("asdfghjkl"), set("zxcvbnm")]
ans = []
for word in words:
l = len(word)
for sett in every:
... | 27.428571 | 69 | 0.362847 | 53 | 576 | 3.943396 | 0.566038 | 0.066986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007547 | 0.539931 | 576 | 21 | 70 | 27.428571 | 0.781132 | 0 | 0 | 0 | 0 | 0 | 0.048964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8811e504a270f2f7246e1ece4241279f011e0643 | 745 | py | Python | netbox/ipam/managers.py | aslafy-z/netbox | a5512dd4c46c005df8752fc330c1382ac22b31ea | [
"Apache-2.0"
] | 1 | 2022-01-25T09:02:56.000Z | 2022-01-25T09:02:56.000Z | netbox/ipam/managers.py | aslafy-z/netbox | a5512dd4c46c005df8752fc330c1382ac22b31ea | [
"Apache-2.0"
] | 4 | 2021-06-08T22:29:06.000Z | 2022-03-12T00:48:51.000Z | netbox/ipam/managers.py | aslafy-z/netbox | a5512dd4c46c005df8752fc330c1382ac22b31ea | [
"Apache-2.0"
] | null | null | null | from django.db import models
from ipam.lookups import Host, Inet
class IPAddressManager(models.Manager):
def get_queryset(self):
"""
By default, PostgreSQL will order INETs with shorter (larger) prefix lengths ahead of those with longer
(smaller) masks. This makes no sense when ordering ... | 41.388889 | 118 | 0.689933 | 111 | 745 | 4.603604 | 0.738739 | 0.043053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008834 | 0.240268 | 745 | 17 | 119 | 43.823529 | 0.893993 | 0.613423 | 0 | 0 | 0 | 0 | 0.030172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
714b8d767c11fadd1e5da33bbf5b7d19a7d70405 | 382 | py | Python | py/2016/5B.py | pedrotari7/advent_of_code | 98d5bc8d903435624a019a5702f5421d7b4ef8c8 | [
"MIT"
] | null | null | null | py/2016/5B.py | pedrotari7/advent_of_code | 98d5bc8d903435624a019a5702f5421d7b4ef8c8 | [
"MIT"
] | null | null | null | py/2016/5B.py | pedrotari7/advent_of_code | 98d5bc8d903435624a019a5702f5421d7b4ef8c8 | [
"MIT"
] | null | null | null | import md5
(i,count) = (0,0)
password = ['']*8
while 1:
key = 'reyedfim' + str(i)
md = md5.new(key).hexdigest()
if md[:5] == '00000':
index = int(md[5],16)
if index < len(password) and password[index]=='':
password[index] = md[6]
count += 1
if count ... | 17.363636 | 58 | 0.465969 | 50 | 382 | 3.56 | 0.54 | 0.033708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077236 | 0.356021 | 382 | 22 | 59 | 17.363636 | 0.646341 | 0 | 0 | 0 | 0 | 0 | 0.033943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.266667 | 0.066667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
715a02ff047054f60c24cd7d80d0ef426229bc1b | 1,658 | py | Python | src/exabgp/bgp/message/update/attribute/bgpls/link/mplsmask.py | pierky/exabgp | 34be537ae5906c0830b31da1152ae63108ccf911 | [
"BSD-3-Clause"
] | 1,560 | 2015-01-01T08:53:05.000Z | 2022-03-29T20:22:43.000Z | src/exabgp/bgp/message/update/attribute/bgpls/link/mplsmask.py | pierky/exabgp | 34be537ae5906c0830b31da1152ae63108ccf911 | [
"BSD-3-Clause"
] | 818 | 2015-01-01T17:38:40.000Z | 2022-03-30T07:29:24.000Z | src/exabgp/bgp/message/update/attribute/bgpls/link/mplsmask.py | pierky/exabgp | 34be537ae5906c0830b31da1152ae63108ccf911 | [
"BSD-3-Clause"
] | 439 | 2015-01-06T21:20:41.000Z | 2022-03-19T23:24:25.000Z | # encoding: utf-8
"""
mplsmask.py
Created by Evelio Vila on 2016-12-01.
Copyright (c) 2014-2017 Exa Networks. All rights reserved.
"""
from exabgp.bgp.message.notification import Notify
from exabgp.bgp.message.update.attribute.bgpls.linkstate import LinkState
from exabgp.bgp.message.update.attribute.bgpls.linkstate im... | 41.45 | 77 | 0.390229 | 164 | 1,658 | 3.945122 | 0.518293 | 0.015456 | 0.018547 | 0.02473 | 0.309119 | 0.281298 | 0.281298 | 0.219475 | 0.219475 | 0.049459 | 0 | 0.071119 | 0.304584 | 1,658 | 39 | 78 | 42.512821 | 0.490026 | 0.729795 | 0 | 0 | 0 | 0 | 0.130641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
715e64156e2717f5d7270f3da98702a6b8223554 | 253 | py | Python | helpers/Screen.py | 1000monkeys/MastermindRedux | 6b07a341ecbf2ea325949a49c84218cc3632cd33 | [
"Unlicense"
] | null | null | null | helpers/Screen.py | 1000monkeys/MastermindRedux | 6b07a341ecbf2ea325949a49c84218cc3632cd33 | [
"Unlicense"
] | null | null | null | helpers/Screen.py | 1000monkeys/MastermindRedux | 6b07a341ecbf2ea325949a49c84218cc3632cd33 | [
"Unlicense"
] | null | null | null | import sys
class Screen:
def __init__(self) -> None:
pass
def handle_events(self, events):
for event in events:
if event.type == self.pygame.QUIT:
sys.exit()
def draw(self, screen):
pass | 19.461538 | 46 | 0.545455 | 31 | 253 | 4.290323 | 0.645161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.359684 | 253 | 13 | 47 | 19.461538 | 0.820988 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.2 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
71727855c3b5a49ba770b23fd1b96b453bcf8530 | 855 | py | Python | carPooling/migrations/0018_auto_20190521_1651.py | yangtao4389/pinche | 81463761058f67d47cea980f29a061b1e1b2d08a | [
"Apache-2.0"
] | 1 | 2020-09-30T01:27:57.000Z | 2020-09-30T01:27:57.000Z | carPooling/migrations/0018_auto_20190521_1651.py | yangtao4389/pinche | 81463761058f67d47cea980f29a061b1e1b2d08a | [
"Apache-2.0"
] | 9 | 2020-06-05T19:51:33.000Z | 2022-03-11T23:40:25.000Z | carPooling/migrations/0018_auto_20190521_1651.py | yangtao4389/pinche | 81463761058f67d47cea980f29a061b1e1b2d08a | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.4 on 2019-05-21 16:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('carPooling', '0017_carpoolingrecunbook'),
]
operations = [
migrations.AlterField(
model_name='carpoolinguserconf',
n... | 29.482759 | 98 | 0.611696 | 89 | 855 | 5.696629 | 0.505618 | 0.118343 | 0.147929 | 0.171598 | 0.57002 | 0.57002 | 0.57002 | 0.157791 | 0 | 0 | 0 | 0.043339 | 0.271345 | 855 | 28 | 99 | 30.535714 | 0.770465 | 0.052632 | 0 | 0.409091 | 1 | 0 | 0.153465 | 0.029703 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
717d2436cb249576851958abd14c5cdda155ab5a | 565 | py | Python | PySDDP/term.py | tscher/PySDDP | ece69b77c951cbb1f046ac184f6fe4fc025ad690 | [
"MIT"
] | 9 | 2021-01-07T13:35:47.000Z | 2022-02-06T14:30:33.000Z | PySDDP/term.py | AndreMarcato/PySDDP | e6b1e60df6a5598c30552be61b07ed642e46399c | [
"MIT"
] | null | null | null | PySDDP/term.py | AndreMarcato/PySDDP | e6b1e60df6a5598c30552be61b07ed642e46399c | [
"MIT"
] | 3 | 2021-01-08T11:37:23.000Z | 2021-04-19T15:07:26.000Z | class term(object):
# Dados de cadastro das usinas termeletrica (presentes no TERM.DAT)
Codigo = None
Nome = None
Potencia = None
FCMax = None
TEIF = None
IP = None
GTMin = None
# Dados Adicionais Especificados no arquivo de configuracao termica (CONFT)
Sist = None
Status = ... | 23.541667 | 79 | 0.640708 | 68 | 565 | 5.323529 | 0.544118 | 0.049724 | 0.104972 | 0.176796 | 0.237569 | 0.237569 | 0.237569 | 0 | 0 | 0 | 0 | 0 | 0.297345 | 565 | 23 | 80 | 24.565217 | 0.911839 | 0.366372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.882353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
718a929c80bd8d634b1687ba5560ac7c6a4f6fe7 | 264 | py | Python | venv/lib/python2.7/dist-packages/landscape/sysinfo/load.py | pengwu/scapy_env | 3db9c5dea2e219048a2387649d6d89be342903d9 | [
"MIT"
] | null | null | null | venv/lib/python2.7/dist-packages/landscape/sysinfo/load.py | pengwu/scapy_env | 3db9c5dea2e219048a2387649d6d89be342903d9 | [
"MIT"
] | null | null | null | venv/lib/python2.7/dist-packages/landscape/sysinfo/load.py | pengwu/scapy_env | 3db9c5dea2e219048a2387649d6d89be342903d9 | [
"MIT"
] | null | null | null | import os
from twisted.internet.defer import succeed
class Load(object):
def register(self, sysinfo):
self._sysinfo = sysinfo
def run(self):
self._sysinfo.add_header("System load", str(os.getloadavg()[0]))
return succeed(None)
| 18.857143 | 72 | 0.666667 | 34 | 264 | 5.088235 | 0.676471 | 0.190751 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004854 | 0.219697 | 264 | 13 | 73 | 20.307692 | 0.834951 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
718c6a96017a844d29bf1f77cede2d377a4c970c | 675 | py | Python | src/boh_api/viewsets.py | dougmorato/bag-of-holding | 8a7bc45ced8837bdb00da60dcfb496bb0271f161 | [
"Apache-2.0"
] | null | null | null | src/boh_api/viewsets.py | dougmorato/bag-of-holding | 8a7bc45ced8837bdb00da60dcfb496bb0271f161 | [
"Apache-2.0"
] | 1 | 2021-06-10T23:58:45.000Z | 2021-06-10T23:58:45.000Z | src/boh_api/viewsets.py | dougmorato/bag-of-holding | 8a7bc45ced8837bdb00da60dcfb496bb0271f161 | [
"Apache-2.0"
] | null | null | null | from rest_framework import viewsets
from boh import models
from . import serializers
class OrganizationViewSet(viewsets.ModelViewSet):
queryset = models.Organization.objects.all()
serializer_class = serializers.OrganizationSerializer
class ApplicationViewSet(viewsets.ModelViewSet):
queryset = models.A... | 25.961538 | 57 | 0.8 | 64 | 675 | 8.359375 | 0.40625 | 0.149533 | 0.209346 | 0.254206 | 0.269159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127407 | 675 | 25 | 58 | 27 | 0.908319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
719fb32d418ed1529b6d751555ff2385cebf2266 | 623 | py | Python | Last 3 digits of 11^x.py | jaiveergill/Last-Three-Digits-of-11-x | def4519b9b46e41b4c4f2b3a5dbe5566316dd83e | [
"MIT"
] | null | null | null | Last 3 digits of 11^x.py | jaiveergill/Last-Three-Digits-of-11-x | def4519b9b46e41b4c4f2b3a5dbe5566316dd83e | [
"MIT"
] | null | null | null | Last 3 digits of 11^x.py | jaiveergill/Last-Three-Digits-of-11-x | def4519b9b46e41b4c4f2b3a5dbe5566316dd83e | [
"MIT"
] | null | null | null | # This is a simple program to find the last three digits of 11 raised to any given number.
# The main algorithm that does the work is on line 10
def trim_num(num):
if len(str(num)) > 3: # no need to trim if the number is 3 or less digits long
return str(num)[(len(str(num)) - 3):] # trims the number
ret... | 44.5 | 179 | 0.662921 | 114 | 623 | 3.587719 | 0.535088 | 0.04401 | 0.05868 | 0.08802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039337 | 0.224719 | 623 | 13 | 180 | 47.923077 | 0.807453 | 0.569823 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
71a33e281903173f09972e5b14ecf88c5dd711ba | 1,251 | py | Python | summary/summary_avail.py | bit0fun/plugins | 1f6f701bf1e60882b8fa61cb735e7033c8c29e3c | [
"BSD-3-Clause"
] | 173 | 2019-01-17T12:40:47.000Z | 2022-03-27T12:14:00.000Z | summary/summary_avail.py | bit0fun/plugins | 1f6f701bf1e60882b8fa61cb735e7033c8c29e3c | [
"BSD-3-Clause"
] | 284 | 2019-03-01T17:54:14.000Z | 2022-03-29T13:27:51.000Z | summary/summary_avail.py | bit0fun/plugins | 1f6f701bf1e60882b8fa61cb735e7033c8c29e3c | [
"BSD-3-Clause"
] | 92 | 2019-02-26T03:45:40.000Z | 2022-03-28T03:23:50.000Z | from datetime import datetime
# ensure an rpc peer is added
def addpeer(p, rpcpeer):
pid = rpcpeer['id']
if pid not in p.persist['peerstate']:
p.persist['peerstate'][pid] = {
'connected': rpcpeer['connected'],
'last_seen': datetime.now() if rpcpeer['connected'] else None,
... | 36.794118 | 108 | 0.60032 | 156 | 1,251 | 4.769231 | 0.326923 | 0.11828 | 0.205645 | 0.215054 | 0.278226 | 0.094086 | 0.094086 | 0.094086 | 0 | 0 | 0 | 0.013613 | 0.236611 | 1,251 | 33 | 109 | 37.909091 | 0.765445 | 0.06235 | 0 | 0.08 | 0 | 0 | 0.184615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.04 | 0 | 0.12 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
71b9f1ca619e6a3da629a83c1ba692653be95c14 | 409 | py | Python | panel/api/models/provider.py | angeelgarr/DCPanel | 1901a0f4b1b4273b60d3a218797fb6614d05b4c0 | [
"MIT"
] | 7 | 2016-01-06T13:28:35.000Z | 2020-11-30T07:35:59.000Z | panel/api/models/provider.py | angeelgarr/DCPanel | 1901a0f4b1b4273b60d3a218797fb6614d05b4c0 | [
"MIT"
] | null | null | null | panel/api/models/provider.py | angeelgarr/DCPanel | 1901a0f4b1b4273b60d3a218797fb6614d05b4c0 | [
"MIT"
] | 6 | 2017-07-18T06:41:56.000Z | 2022-01-17T07:04:44.000Z | from django.db import models
from django.contrib import admin
class Provider(models.Model):
name = models.CharField(max_length=50)
domain = models.CharField(max_length=50)
class Meta:
ordering = ['name']
app_label = 'api'
def __str__(self):
return self.domain
@admin.registe... | 20.45 | 44 | 0.682152 | 50 | 409 | 5.42 | 0.6 | 0.073801 | 0.132841 | 0.177122 | 0.191882 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.207824 | 409 | 19 | 45 | 21.526316 | 0.824074 | 0 | 0 | 0 | 0 | 0 | 0.041565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0.076923 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
71c3d256540447d130560ac9efdd84ad55be2fad | 970 | py | Python | IceSpringMusicPlayer/plugins/IceSpringHelloWorldPlugin/helloWorldPlugin.py | baijifeilong/rawsteelp | 425547e6e2395bf4acb62435b18b5b3a4b7ebef4 | [
"MIT"
] | null | null | null | IceSpringMusicPlayer/plugins/IceSpringHelloWorldPlugin/helloWorldPlugin.py | baijifeilong/rawsteelp | 425547e6e2395bf4acb62435b18b5b3a4b7ebef4 | [
"MIT"
] | null | null | null | IceSpringMusicPlayer/plugins/IceSpringHelloWorldPlugin/helloWorldPlugin.py | baijifeilong/rawsteelp | 425547e6e2395bf4acb62435b18b5b3a4b7ebef4 | [
"MIT"
] | null | null | null | # Created by BaiJiFeiLong@gmail.com at 2022/1/21 17:13
import typing
from IceSpringRealOptional.typingUtils import gg
from PySide2 import QtWidgets, QtCore
from IceSpringMusicPlayer import tt
from IceSpringMusicPlayer.common.pluginMixin import PluginMixin
from IceSpringMusicPlayer.common.pluginWidgetMixin import Plu... | 33.448276 | 93 | 0.760825 | 100 | 970 | 7.28 | 0.55 | 0.131868 | 0.082418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014616 | 0.153608 | 970 | 28 | 94 | 34.642857 | 0.872107 | 0.053608 | 0 | 0.1 | 0 | 0 | 0.012009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.35 | 0.1 | 0.65 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
71cfe70b6d19b560b2ea31dad54f5ad9cbddfef1 | 291 | py | Python | Projects/envirohat-monitor/clear-screen.py | pkbullock/RaspberryPi | 1c8e83566e97f65fe530d8d43293f4b26c015d0d | [
"MIT"
] | null | null | null | Projects/envirohat-monitor/clear-screen.py | pkbullock/RaspberryPi | 1c8e83566e97f65fe530d8d43293f4b26c015d0d | [
"MIT"
] | null | null | null | Projects/envirohat-monitor/clear-screen.py | pkbullock/RaspberryPi | 1c8e83566e97f65fe530d8d43293f4b26c015d0d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import ST7735
import sys
st7735 = ST7735.ST7735(
port=0,
cs=1,
dc=9,
backlight=12,
rotation=270,
spi_speed_hz=10000000
)
# Reset the display
st7735.begin()
st7735.reset()
st7735.set_backlight(0)
print "\nDone."
# Exit cleanly
sys.exit(0) | 12.652174 | 25 | 0.666667 | 43 | 291 | 4.44186 | 0.697674 | 0.125654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202586 | 0.202749 | 291 | 23 | 26 | 12.652174 | 0.62069 | 0.178694 | 0 | 0 | 0 | 0 | 0.029536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
71d94b479d90dc462de92906e5d1f18653ee665b | 433 | py | Python | cauldron/cli/server/routes/ui_statuses.py | JohnnyPeng18/cauldron | 09120c2a4cef65df46f8c0c94f5d79395b3298cd | [
"MIT"
] | 90 | 2016-09-02T15:11:10.000Z | 2022-01-02T11:37:57.000Z | cauldron/cli/server/routes/ui_statuses.py | JohnnyPeng18/cauldron | 09120c2a4cef65df46f8c0c94f5d79395b3298cd | [
"MIT"
] | 86 | 2016-09-23T16:52:22.000Z | 2022-03-31T21:39:56.000Z | cauldron/cli/server/routes/ui_statuses.py | JohnnyPeng18/cauldron | 09120c2a4cef65df46f8c0c94f5d79395b3298cd | [
"MIT"
] | 261 | 2016-12-22T05:36:48.000Z | 2021-11-26T12:40:42.000Z | import flask
from cauldron.cli.server import run as server_runner
from cauldron.ui import arguments
from cauldron.ui import statuses
@server_runner.APPLICATION.route('/ui-status', methods=['POST'])
def ui_status():
args = arguments.from_request()
last_timestamp = args.get('last_timestamp', 0)
force = arg... | 28.866667 | 64 | 0.750577 | 59 | 433 | 5.372881 | 0.491525 | 0.113565 | 0.088328 | 0.126183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002681 | 0.138568 | 433 | 14 | 65 | 30.928571 | 0.847185 | 0 | 0 | 0 | 0 | 0 | 0.076212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
71de0e1236a03e6cfb4186e21a5012996969d350 | 130 | py | Python | WebVisualizations/data.py | chuhaovince/Web-Design-Challenge | 1826a0e2dfbe4e11feb78f0ecce02e0f8a0a7eb5 | [
"ADSL"
] | null | null | null | WebVisualizations/data.py | chuhaovince/Web-Design-Challenge | 1826a0e2dfbe4e11feb78f0ecce02e0f8a0a7eb5 | [
"ADSL"
] | null | null | null | WebVisualizations/data.py | chuhaovince/Web-Design-Challenge | 1826a0e2dfbe4e11feb78f0ecce02e0f8a0a7eb5 | [
"ADSL"
] | null | null | null | import pandas as pd
path = "Resources/cities.csv"
data = pd.read_csv(path)
data_html = data.to_html("data.html", bold_rows = True) | 32.5 | 55 | 0.746154 | 23 | 130 | 4.043478 | 0.652174 | 0.172043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 130 | 4 | 55 | 32.5 | 0.808696 | 0 | 0 | 0 | 0 | 0 | 0.221374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e087f1cb73d38e79a6d1863be5eb904e7f3b6261 | 1,541 | py | Python | Data_and_Dicts.py | melkisedeath/Harmonic_Analysis_and_Trajectory | a5a2819c053ddd287dcb668fac2f1be7e44f6c59 | [
"MIT"
] | null | null | null | Data_and_Dicts.py | melkisedeath/Harmonic_Analysis_and_Trajectory | a5a2819c053ddd287dcb668fac2f1be7e44f6c59 | [
"MIT"
] | null | null | null | Data_and_Dicts.py | melkisedeath/Harmonic_Analysis_and_Trajectory | a5a2819c053ddd287dcb668fac2f1be7e44f6c59 | [
"MIT"
] | null | null | null | """HERE are the base Points for all valid Tonnetze Systems.
A period of all 12 notes divided by mod 3, mod 4 (always stable)
"""
# x = 4, y = 3
NotePointsT345 = {
0: (0, 0),
1: (1, 3),
2: (2, 2),
3: (0, 1),
4: (1, 0),
5: (2, 3),
6: (0, 2),
7: (1, 1),
8: (2, 0),
9: (0, 3),
1... | 14.817308 | 64 | 0.345879 | 265 | 1,541 | 2.011321 | 0.177358 | 0.041276 | 0.028143 | 0.037523 | 0.262664 | 0.170732 | 0.170732 | 0.150094 | 0.041276 | 0.041276 | 0 | 0.301587 | 0.386762 | 1,541 | 103 | 65 | 14.961165 | 0.262434 | 0.121999 | 0 | 0.494118 | 0 | 0 | 0.032787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e09a1b7388131ca361a24a122df607870ceb2f36 | 5,249 | py | Python | legacy/neural_qa/train.py | FrancisLiang/models-1 | e14d5bc1ab36d0dd11977f27cff54605bf99c945 | [
"Apache-2.0"
] | 4 | 2020-01-04T13:15:02.000Z | 2021-07-21T07:50:02.000Z | legacy/neural_qa/train.py | FrancisLiang/models-1 | e14d5bc1ab36d0dd11977f27cff54605bf99c945 | [
"Apache-2.0"
] | 2 | 2019-06-26T03:21:49.000Z | 2019-09-19T09:43:42.000Z | legacy/neural_qa/train.py | FrancisLiang/models-1 | e14d5bc1ab36d0dd11977f27cff54605bf99c945 | [
"Apache-2.0"
] | 3 | 2019-10-31T07:18:49.000Z | 2020-01-13T03:18:39.000Z | import sys
import os
import argparse
import numpy as np
import paddle.v2 as paddle
import reader
import utils
import network
import config
from utils import logger
def save_model(trainer, model_save_dir, parameters, pass_id):
f = os.path.join(model_save_dir, "params_pass_%05d.tar.gz" % pass_id)
logger.info(... | 33.864516 | 79 | 0.638407 | 671 | 5,249 | 4.749627 | 0.281669 | 0.031377 | 0.018826 | 0.018826 | 0.097898 | 0.026985 | 0.026985 | 0.026985 | 0 | 0 | 0 | 0.011604 | 0.261193 | 5,249 | 154 | 80 | 34.084416 | 0.810211 | 0.085159 | 0 | 0.02 | 0 | 0 | 0.093065 | 0.005195 | 0 | 0 | 0 | 0.006494 | 0 | 0 | null | null | 0.1 | 0.1 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e0a33a3a50dffea3e1b1459aa66fc2a300fcaf7e | 879 | py | Python | tests/test_random.py | hirnimeshrampuresoftware/python-tcod | c82d60eaaf12e50b405d55df1026c1d00dd283b6 | [
"BSD-2-Clause"
] | 231 | 2018-06-28T10:07:41.000Z | 2022-03-20T16:17:19.000Z | tests/test_random.py | hirnimeshrampuresoftware/python-tcod | c82d60eaaf12e50b405d55df1026c1d00dd283b6 | [
"BSD-2-Clause"
] | 66 | 2018-06-27T19:04:25.000Z | 2022-03-30T21:15:15.000Z | tests/test_random.py | hirnimeshrampuresoftware/python-tcod | c82d60eaaf12e50b405d55df1026c1d00dd283b6 | [
"BSD-2-Clause"
] | 31 | 2018-09-12T00:35:42.000Z | 2022-03-20T16:17:22.000Z | import copy
import pickle
import tcod
def test_tcod_random() -> None:
rand = tcod.random.Random(tcod.random.COMPLEMENTARY_MULTIPLY_WITH_CARRY)
assert 0 <= rand.randint(0, 100) <= 100
assert 0 <= rand.uniform(0, 100) <= 100
rand.guass(0, 1)
rand.inverse_guass(0, 1)
def test_tcod_random_copy() ->... | 30.310345 | 76 | 0.675768 | 136 | 879 | 4.264706 | 0.191176 | 0.048276 | 0.186207 | 0.186207 | 0.662069 | 0.662069 | 0.6 | 0.541379 | 0.541379 | 0.541379 | 0 | 0.071724 | 0.175199 | 879 | 28 | 77 | 31.392857 | 0.728276 | 0 | 0 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.380952 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e0b1b9a256ca71156990f5651aa970e6f745d293 | 1,524 | py | Python | apps/user/urls.py | mrf-foundation/ckios_v1 | 3556a99ba5e01f00e137fd124903ace77d2cba28 | [
"Apache-2.0"
] | null | null | null | apps/user/urls.py | mrf-foundation/ckios_v1 | 3556a99ba5e01f00e137fd124903ace77d2cba28 | [
"Apache-2.0"
] | null | null | null | apps/user/urls.py | mrf-foundation/ckios_v1 | 3556a99ba5e01f00e137fd124903ace77d2cba28 | [
"Apache-2.0"
] | null | null | null | # -*- encoding: utf-8 -*-
"""
Copyright (c) 2021 ronyman.com
"""
from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from apps.user import views as user_views
from.views im... | 47.625 | 146 | 0.75 | 197 | 1,524 | 5.588832 | 0.284264 | 0.057221 | 0.036331 | 0.049046 | 0.117166 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005069 | 0.093832 | 1,524 | 32 | 147 | 47.625 | 0.79218 | 0.079396 | 0 | 0 | 0 | 0 | 0.27351 | 0.124192 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.190476 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
e0cbddbdfa807e2e3192b9b0f5e91d704ca43fe7 | 1,684 | py | Python | tnnt/uniqdeaths.py | tnnt-devteam/python-backend | 1ecb0ddaccf176726739b64212831d038a7463a0 | [
"MIT"
] | null | null | null | tnnt/uniqdeaths.py | tnnt-devteam/python-backend | 1ecb0ddaccf176726739b64212831d038a7463a0 | [
"MIT"
] | 10 | 2021-07-19T13:04:20.000Z | 2021-12-02T18:36:29.000Z | tnnt/uniqdeaths.py | tnnt-devteam/python-backend | 1ecb0ddaccf176726739b64212831d038a7463a0 | [
"MIT"
] | 1 | 2021-10-17T10:36:51.000Z | 2021-10-17T10:36:51.000Z | from tnnt.settings import UNIQUE_DEATH_REJECTIONS, UNIQUE_DEATH_NORMALIZATIONS
import re
def normalize(death):
# Given a death string, apply normalizations from settings.
for regtuple in UNIQUE_DEATH_NORMALIZATIONS:
death = re.sub(regtuple[0], regtuple[1], death)
return death
def reject(death):
... | 42.1 | 80 | 0.726841 | 252 | 1,684 | 4.785714 | 0.460317 | 0.045605 | 0.034826 | 0.026534 | 0.036484 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010518 | 0.20962 | 1,684 | 39 | 81 | 43.179487 | 0.895567 | 0.606295 | 0 | 0 | 0 | 0 | 0.007776 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e0cd77f1011874355803f2699f0949c70a877b16 | 286 | py | Python | locan/data/hulls/__init__.py | super-resolution/Locan | 94ed7759f7d7ceddee7c7feaabff80010cfedf30 | [
"BSD-3-Clause"
] | 8 | 2021-11-25T20:05:49.000Z | 2022-03-27T17:45:00.000Z | locan/data/hulls/__init__.py | super-resolution/Locan | 94ed7759f7d7ceddee7c7feaabff80010cfedf30 | [
"BSD-3-Clause"
] | 4 | 2021-12-15T22:39:20.000Z | 2022-03-11T17:35:34.000Z | locan/data/hulls/__init__.py | super-resolution/Locan | 94ed7759f7d7ceddee7c7feaabff80010cfedf30 | [
"BSD-3-Clause"
] | 1 | 2022-03-22T19:53:13.000Z | 2022-03-22T19:53:13.000Z | """
Hull objects of localization data.
Submodules:
-----------
.. autosummary::
:toctree: ./
hull
alpha_shape
"""
from locan.data.hulls.alpha_shape import *
from locan.data.hulls.hull import *
__all__ = []
__all__.extend(hull.__all__)
__all__.extend(alpha_shape.__all__)
| 13.619048 | 42 | 0.688811 | 34 | 286 | 5.117647 | 0.470588 | 0.172414 | 0.149425 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15035 | 286 | 20 | 43 | 14.3 | 0.716049 | 0.409091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
e0d53d1eacb61e87932581de548a87b7c4071732 | 3,258 | py | Python | networks/metrics.py | pabloduque0/cnn_deconv_viz | 3fc3d8a9dbad8e8e28d4df4023bdb438e4c9cf85 | [
"MIT"
] | null | null | null | networks/metrics.py | pabloduque0/cnn_deconv_viz | 3fc3d8a9dbad8e8e28d4df4023bdb438e4c9cf85 | [
"MIT"
] | null | null | null | networks/metrics.py | pabloduque0/cnn_deconv_viz | 3fc3d8a9dbad8e8e28d4df4023bdb438e4c9cf85 | [
"MIT"
] | null | null | null | from keras import backend as K
import tensorflow as tf
import numpy as np
def custom_dice_coefficient(y_true, y_pred, recall_weight=0.3):
recall_weight = tf.Variable(recall_weight, dtype=tf.float32)
regular_dice = dice_coefficient(y_true, y_pred)
recall = lession_recall(y_true, y_pred)
recall = tf.cas... | 30.448598 | 126 | 0.736648 | 551 | 3,258 | 3.990926 | 0.170599 | 0.081855 | 0.057299 | 0.095498 | 0.452933 | 0.360164 | 0.252842 | 0.18372 | 0.109141 | 0.109141 | 0 | 0.020697 | 0.154696 | 3,258 | 107 | 127 | 30.448598 | 0.777778 | 0 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202899 | false | 0 | 0.043478 | 0.115942 | 0.449275 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
e0e356f37fd9ccf2de0310d2d8f77f903645f43e | 324 | py | Python | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/stock/models/web_planner.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | 1 | 2019-12-19T01:53:13.000Z | 2019-12-19T01:53:13.000Z | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/stock/models/web_planner.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/stock/models/web_planner.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from odoo import models
class PlannerInventory(models.Model):
_inherit = 'web.planner'
def _get_planner_application(self):
planner = super(PlannerInventory, self)._get_planner_application()
planner.append(['planner_inventory', 'Inventory Planner'])
return plan... | 24.923077 | 74 | 0.697531 | 34 | 324 | 6.411765 | 0.617647 | 0.091743 | 0.192661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003802 | 0.188272 | 324 | 12 | 75 | 27 | 0.825095 | 0.064815 | 0 | 0 | 0 | 0 | 0.149502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.714286 | 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 | 1 | 0 | 0 | 2 |
e0eeafb1dffc9fb35d396d75f5c0ceb8be5469f6 | 545 | py | Python | django/currencies/migrations/0003_auto_20211121_0701.py | AngelOnFira/megagame-controller | 033fec84babf80ffd0868a0f7d946ac4c18b061c | [
"MIT"
] | null | null | null | django/currencies/migrations/0003_auto_20211121_0701.py | AngelOnFira/megagame-controller | 033fec84babf80ffd0868a0f7d946ac4c18b061c | [
"MIT"
] | 1 | 2022-03-03T21:56:12.000Z | 2022-03-03T21:56:12.000Z | django/currencies/migrations/0003_auto_20211121_0701.py | AngelOnFira/megagame-controller | 033fec84babf80ffd0868a0f7d946ac4c18b061c | [
"MIT"
] | null | null | null | # Generated by Django 3.2.8 on 2021-11-21 12:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("currencies", "0002_initial"),
]
operations = [
migrations.AddField(
model_name="payment",
name="completed",
... | 22.708333 | 53 | 0.577982 | 52 | 545 | 5.980769 | 0.711538 | 0.115756 | 0.14791 | 0.173633 | 0.244373 | 0.244373 | 0 | 0 | 0 | 0 | 0 | 0.05305 | 0.308257 | 545 | 23 | 54 | 23.695652 | 0.771883 | 0.082569 | 0 | 0.352941 | 1 | 0 | 0.124498 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e0f2ec36c80ac0eba008f5fa3fbe488f2f46b78b | 171 | py | Python | modulo-3/aulas/modulos e pacotes/uteis.py | Luis-Felipe-N/curso-em-video-python | 09ff58ae31ae0360ebec74de609011d527956065 | [
"MIT"
] | null | null | null | modulo-3/aulas/modulos e pacotes/uteis.py | Luis-Felipe-N/curso-em-video-python | 09ff58ae31ae0360ebec74de609011d527956065 | [
"MIT"
] | null | null | null | modulo-3/aulas/modulos e pacotes/uteis.py | Luis-Felipe-N/curso-em-video-python | 09ff58ae31ae0360ebec74de609011d527956065 | [
"MIT"
] | null | null | null | def fatorial(n):
f = 1
while n != 0:
f *= n
n -= 1
return f
def dobro(n):
n *= 2
return n
def triplo(n):
n *= 3
return n
| 11.4 | 17 | 0.403509 | 28 | 171 | 2.464286 | 0.428571 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.473684 | 171 | 14 | 18 | 12.214286 | 0.711111 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e0f9e97bf2ab57eb94b8a3dc17de1f26affd17b5 | 121 | py | Python | output/models/ms_data/regex/re_l32_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/regex/re_l32_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/regex/re_l32_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.regex.re_l32_xsd.re_l32 import (
Regex,
Doc,
)
__all__ = [
"Regex",
"Doc",
]
| 12.1 | 59 | 0.603306 | 17 | 121 | 3.823529 | 0.705882 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043956 | 0.247934 | 121 | 9 | 60 | 13.444444 | 0.67033 | 0 | 0 | 0 | 0 | 0 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4607ba171b6d586a01f576a069c7a776194711fd | 2,646 | py | Python | app/forms.py | Rahmatullina/FinalYearProject | 326f521b9f600dbbc7ace2223bd5aafc79b2267c | [
"Apache-2.0"
] | null | null | null | app/forms.py | Rahmatullina/FinalYearProject | 326f521b9f600dbbc7ace2223bd5aafc79b2267c | [
"Apache-2.0"
] | 9 | 2020-09-26T01:09:35.000Z | 2022-02-10T01:32:30.000Z | app/forms.py | Rahmatullina/FinalYearProject | 326f521b9f600dbbc7ace2223bd5aafc79b2267c | [
"Apache-2.0"
] | null | null | null | from django import forms
from django.contrib.auth.forms import PasswordResetForm, SetPasswordForm
# from .models import RegionModel
# from .models import SERVICE_CHOICES, REGION_CHOICES
from django.contrib.auth import authenticate
# from django.contrib.auth.forms import UserCreationForm, UserChangeForm
# from .models i... | 46.421053 | 120 | 0.62585 | 260 | 2,646 | 6.3 | 0.273077 | 0.059829 | 0.08547 | 0.106838 | 0.538462 | 0.494505 | 0.455433 | 0.455433 | 0.455433 | 0.421856 | 0 | 0.011663 | 0.254724 | 2,646 | 56 | 121 | 47.25 | 0.818966 | 0.595994 | 0 | 0.333333 | 0 | 0 | 0.140655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.333333 | 0.166667 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
460a2bcd85d3d00d44d62b6c67fe157741f17339 | 363 | py | Python | biblioteca/views.py | Dagmoores/ProjetoIntegradorIUnivesp | 86f5004c359b760cceec87bfa905db16e3375653 | [
"MIT"
] | null | null | null | biblioteca/views.py | Dagmoores/ProjetoIntegradorIUnivesp | 86f5004c359b760cceec87bfa905db16e3375653 | [
"MIT"
] | null | null | null | biblioteca/views.py | Dagmoores/ProjetoIntegradorIUnivesp | 86f5004c359b760cceec87bfa905db16e3375653 | [
"MIT"
] | null | null | null | from django.views.generic import DetailView, ListView, TemplateView
from .models import Books
class BooksListView(ListView):
model = Books
class BooksDeitalView(DetailView):
model = Books
class Home(TemplateView):
template_name = './biblioteca/index.html'
class TermsOfService(TemplateView):
templat... | 24.2 | 67 | 0.77135 | 38 | 363 | 7.315789 | 0.552632 | 0.107914 | 0.107914 | 0.244604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137741 | 363 | 15 | 68 | 24.2 | 0.888179 | 0 | 0 | 0.2 | 0 | 0 | 0.151099 | 0.151099 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
460d75e0442c54e12cc43f9bb046096139d2369e | 2,741 | py | Python | recipes/Python/52228_Remote_control_with_telnetlib/recipe-52228.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/52228_Remote_control_with_telnetlib/recipe-52228.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/52228_Remote_control_with_telnetlib/recipe-52228.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | # auto_telnet.py - remote control via telnet
import os, sys, string, telnetlib
from getpass import getpass
class AutoTelnet:
def __init__(self, user_list, cmd_list, **kw):
self.host = kw.get('host', 'localhost')
self.timeout = kw.get('timeout', 600)
self.command_prompt = kw.get('command_pro... | 34.2625 | 76 | 0.553448 | 343 | 2,741 | 4.300292 | 0.271137 | 0.037966 | 0.057627 | 0.048814 | 0.199322 | 0.181695 | 0.112542 | 0.065085 | 0.065085 | 0.065085 | 0 | 0.01174 | 0.316308 | 2,741 | 79 | 77 | 34.696203 | 0.775347 | 0.015323 | 0 | 0.175676 | 0 | 0 | 0.119021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.094595 | 0.040541 | null | null | 0.067568 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
4610420d2938e979a1edec925cfaa9db7b11366a | 755 | py | Python | Codes/Python32/Lib/importlib/test/extension/test_path_hook.py | eyantra/FireBird_Swiss_Knife | cac322cf28e2d690b86ba28a75e87551e5e47988 | [
"MIT"
] | 319 | 2016-09-22T15:54:48.000Z | 2022-03-18T02:36:58.000Z | Codes/Python32/Lib/importlib/test/extension/test_path_hook.py | eyantra/FireBird_Swiss_Knife | cac322cf28e2d690b86ba28a75e87551e5e47988 | [
"MIT"
] | 9 | 2016-11-03T21:56:41.000Z | 2020-08-09T19:27:37.000Z | Codes/Python32/Lib/importlib/test/extension/test_path_hook.py | eyantra/FireBird_Swiss_Knife | cac322cf28e2d690b86ba28a75e87551e5e47988 | [
"MIT"
] | 27 | 2016-10-06T16:05:32.000Z | 2022-03-18T02:37:00.000Z | from importlib import _bootstrap
from . import util
import collections
import imp
import sys
import unittest
class PathHookTests(unittest.TestCase):
"""Test the path hook for extension modules."""
# XXX Should it only succeed for pre-existing directories?
# XXX Should it only work for directories contai... | 23.59375 | 77 | 0.721854 | 98 | 755 | 5.367347 | 0.520408 | 0.045627 | 0.041825 | 0.057034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205298 | 755 | 31 | 78 | 24.354839 | 0.876667 | 0.325828 | 0 | 0 | 0 | 0 | 0.038 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.1875 | false | 0 | 0.4375 | 0.0625 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1ca1fbc58c354b91137807db3948258d4447da15 | 4,395 | py | Python | minos/api_gateway/common/exceptions.py | Clariteia/api_gateway_common | e68095f31091699fc6cc4537bd6acf97a8dc6c3e | [
"MIT"
] | 3 | 2021-05-14T08:13:09.000Z | 2021-05-26T11:25:35.000Z | minos/api_gateway/common/exceptions.py | Clariteia/api_gateway_common | e68095f31091699fc6cc4537bd6acf97a8dc6c3e | [
"MIT"
] | 27 | 2021-05-13T08:43:19.000Z | 2021-08-24T17:19:36.000Z | minos/api_gateway/common/exceptions.py | Clariteia/api_gateway_common | e68095f31091699fc6cc4537bd6acf97a8dc6c3e | [
"MIT"
] | null | null | null | """
Copyright (C) 2021 Clariteia SL
This file is part of minos framework.
Minos framework can not be copied and/or distributed without the express permission of Clariteia SL.
"""
from typing import (
Any,
Type,
)
class MinosException(Exception):
"""Exception class for import packages or modules"""
... | 30.520833 | 116 | 0.739022 | 487 | 4,395 | 6.558522 | 0.305955 | 0.02129 | 0.061052 | 0.08923 | 0.340326 | 0.33469 | 0.268316 | 0.201628 | 0.169693 | 0.111459 | 0 | 0.00111 | 0.180432 | 4,395 | 143 | 117 | 30.734266 | 0.885619 | 0.363367 | 0 | 0.254237 | 0 | 0.016949 | 0.120446 | 0.019331 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101695 | false | 0.169492 | 0.033898 | 0.016949 | 0.559322 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
1caab3990fb21bf24a942c5cae050f1ff9f8b143 | 305 | py | Python | tests/fixtures/db/sqlite.py | code-watch/meltano | 2afff73ed43669b5134dacfce61814f7f4e77a13 | [
"MIT"
] | 8 | 2020-06-16T22:29:54.000Z | 2021-06-04T11:57:57.000Z | tests/fixtures/db/sqlite.py | dotmesh-io/meltano | 4616d44ded9dff4e9ad19a9004349e9baa16ddd5 | [
"MIT"
] | 38 | 2019-12-09T06:53:33.000Z | 2022-03-29T22:29:19.000Z | tests/fixtures/db/sqlite.py | aroder/meltano | b8d1d812f4051b6334986fc6b447d23c4d0d5043 | [
"MIT"
] | 2 | 2020-06-16T22:29:59.000Z | 2020-11-04T05:47:50.000Z | import pytest
import os
import sqlalchemy
import contextlib
@pytest.fixture(scope="session")
def engine_uri(test_dir):
database_path = test_dir.joinpath("pytest_meltano.db")
try:
database_path.unlink()
except FileNotFoundError:
pass
return f"sqlite:///{database_path}"
| 17.941176 | 58 | 0.714754 | 37 | 305 | 5.702703 | 0.702703 | 0.170616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186885 | 305 | 16 | 59 | 19.0625 | 0.850806 | 0 | 0 | 0 | 0 | 0 | 0.160656 | 0.081967 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
1cab4f72005e2a4605f4cdeb62be5961ecba1542 | 336 | py | Python | arxiv/canonical/util.py | arXiv/arxiv-canonical | a758ed88a568f23a834288aed4dcf7039c1340cf | [
"MIT"
] | 5 | 2019-05-26T22:52:54.000Z | 2021-11-05T12:27:11.000Z | arxiv/canonical/util.py | arXiv/arxiv-canonical | a758ed88a568f23a834288aed4dcf7039c1340cf | [
"MIT"
] | 31 | 2019-06-24T13:51:25.000Z | 2021-11-12T22:27:10.000Z | arxiv/canonical/util.py | arXiv/arxiv-canonical | a758ed88a568f23a834288aed4dcf7039c1340cf | [
"MIT"
] | 4 | 2019-01-10T22:01:54.000Z | 2021-11-05T12:26:58.000Z | """Various helpers and utilities that don't belong anywhere else."""
from typing import Dict, Generic, TypeVar
KeyType = TypeVar('KeyType')
ValueType = TypeVar('ValueType')
class GenericMonoDict(Dict[KeyType, ValueType]):
"""A dict with specific key and value types."""
def __getitem__(self, key: KeyType) -... | 28 | 68 | 0.720238 | 41 | 336 | 5.804878 | 0.707317 | 0.201681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151786 | 336 | 12 | 69 | 28 | 0.835088 | 0.309524 | 0 | 0 | 0 | 0 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 | 1 | 0 | 0 | 2 |
1cd41a80f04199f3be841ce38a8ac4428c343606 | 6,620 | py | Python | show/drawing.py | nohamanona/poke-auto-fuka | 9d355694efa0168738795afb403fc89264dcaeae | [
"Apache-2.0"
] | 5 | 2019-12-31T18:38:52.000Z | 2021-01-07T08:57:17.000Z | show/drawing.py | nohamanona/poke-auto-fuka | 9d355694efa0168738795afb403fc89264dcaeae | [
"Apache-2.0"
] | null | null | null | show/drawing.py | nohamanona/poke-auto-fuka | 9d355694efa0168738795afb403fc89264dcaeae | [
"Apache-2.0"
] | 1 | 2020-03-03T08:14:47.000Z | 2020-03-03T08:14:47.000Z | import cv2
import numpy as np
class DrawingClass(object):
def __init__(self):
self.draw_command ='None'
self.frame_count = 0
def drawing(self, frame, fps, num_egg, htc_egg, state):
cv2.putText(frame, 'FPS: {:.2f}'.format(fps),
(10, 30), cv2.FONT_HERSHEY_SIMP... | 51.317829 | 109 | 0.540483 | 902 | 6,620 | 3.86031 | 0.09867 | 0.134406 | 0.050258 | 0.124641 | 0.814474 | 0.684951 | 0.652786 | 0.647042 | 0.647042 | 0.637565 | 0 | 0.149515 | 0.299849 | 6,620 | 129 | 110 | 51.317829 | 0.601726 | 0.004834 | 0 | 0.42735 | 0 | 0 | 0.062713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.017094 | 0 | 0.068376 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1cdaebcf2a2178841183e0647850aae12465877f | 1,859 | py | Python | football/football_test.py | EEdwardsA/DS-OOP-Review | 2352866c5d0ea6a09802c29c17366450f35c75ae | [
"MIT"
] | null | null | null | football/football_test.py | EEdwardsA/DS-OOP-Review | 2352866c5d0ea6a09802c29c17366450f35c75ae | [
"MIT"
] | null | null | null | football/football_test.py | EEdwardsA/DS-OOP-Review | 2352866c5d0ea6a09802c29c17366450f35c75ae | [
"MIT"
] | null | null | null | import unittest
from players import Player, Quarterback
from possible_values import *
from game import Game
from random import randint, uniform, sample
from season import *
# TODO - some things you can add...
class FootballGameTest(unittest.TestCase):
'''test the class'''
def test_field_goal_made(self):
... | 28.166667 | 64 | 0.652501 | 236 | 1,859 | 4.927966 | 0.326271 | 0.042132 | 0.051591 | 0.068788 | 0.217541 | 0.075666 | 0.075666 | 0.075666 | 0.075666 | 0.075666 | 0 | 0.02477 | 0.239914 | 1,859 | 65 | 65 | 28.6 | 0.798301 | 0.088757 | 0 | 0.186047 | 0 | 0 | 0.017964 | 0 | 0 | 0 | 0 | 0.015385 | 0.162791 | 1 | 0.162791 | false | 0.093023 | 0.139535 | 0 | 0.348837 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1cdce77473b836e98d4d4044b2d6d581603e5972 | 1,930 | py | Python | users/views.py | rossm6/accounts | 74633ce4038806222048d85ef9dfe97a957a6a71 | [
"MIT"
] | 11 | 2021-01-23T01:09:54.000Z | 2021-01-25T07:16:30.000Z | users/views.py | rossm6/accounts | 74633ce4038806222048d85ef9dfe97a957a6a71 | [
"MIT"
] | 7 | 2021-04-06T18:19:10.000Z | 2021-09-22T19:45:03.000Z | users/views.py | rossm6/accounts | 74633ce4038806222048d85ef9dfe97a957a6a71 | [
"MIT"
] | 3 | 2021-01-23T18:55:32.000Z | 2021-02-16T17:47:59.000Z | from django.contrib.auth import update_session_auth_hash
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.models import User
from django.contrib.auth.views import (LoginView, PasswordResetConfirmView,
PasswordResetView)
from django.http import Htt... | 33.275862 | 103 | 0.748705 | 206 | 1,930 | 6.902913 | 0.383495 | 0.056259 | 0.04782 | 0.059072 | 0.035162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178238 | 1,930 | 57 | 104 | 33.859649 | 0.896595 | 0.029534 | 0 | 0.04878 | 0 | 0 | 0.047594 | 0.026203 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0.195122 | 0.268293 | 0.02439 | 0.829268 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
1cdeb5c9ff7c16810e652dbe520cbde408b27771 | 939 | py | Python | metrics/serializers.py | BrianWaganerSTL/RocketDBaaS | d924589188411371842513060a5e08b1be3cdccf | [
"MIT"
] | 1 | 2018-11-04T09:36:35.000Z | 2018-11-04T09:36:35.000Z | metrics/serializers.py | BrianWaganerSTL/RocketDBaaS_api | d924589188411371842513060a5e08b1be3cdccf | [
"MIT"
] | null | null | null | metrics/serializers.py | BrianWaganerSTL/RocketDBaaS_api | d924589188411371842513060a5e08b1be3cdccf | [
"MIT"
] | null | null | null | from rest_framework import serializers
from metrics.models import Metrics_Cpu, Metrics_PingServer, Metrics_MountPoint, \
Metrics_CpuLoad, Metrics_PingDb
class Metrics_CpuSerializer(serializers.ModelSerializer):
class Meta:
model = Metrics_Cpu
fields = '__all__'
depth = 0
class Metrics... | 27.617647 | 81 | 0.698616 | 89 | 939 | 6.966292 | 0.280899 | 0.096774 | 0.25 | 0.282258 | 0.553226 | 0.553226 | 0 | 0 | 0 | 0 | 0 | 0.007022 | 0.241747 | 939 | 34 | 82 | 27.617647 | 0.863764 | 0 | 0 | 0.535714 | 0 | 0 | 0.037234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1ce1d1ce742bc81665dc46ca2940199356484a9f | 1,010 | py | Python | tests/structures/test_generator.py | cherub96/voc | 2692d56059e4d4a52768270feaf5179b23609b04 | [
"BSD-3-Clause"
] | 1 | 2021-01-03T00:59:50.000Z | 2021-01-03T00:59:50.000Z | tests/structures/test_generator.py | cherub96/voc | 2692d56059e4d4a52768270feaf5179b23609b04 | [
"BSD-3-Clause"
] | null | null | null | tests/structures/test_generator.py | cherub96/voc | 2692d56059e4d4a52768270feaf5179b23609b04 | [
"BSD-3-Clause"
] | null | null | null | from ..utils import TranspileTestCase
class GeneratorTests(TranspileTestCase):
def test_simple_generator(self):
self.assertCodeExecution("""
def multiplier(first, second):
y = first * second
yield y
y *= second
yield y
... | 28.055556 | 44 | 0.40099 | 87 | 1,010 | 4.586207 | 0.436782 | 0.110276 | 0.120301 | 0.097744 | 0.323308 | 0.12782 | 0.12782 | 0.12782 | 0.12782 | 0.12782 | 0 | 0.020661 | 0.520792 | 1,010 | 35 | 45 | 28.857143 | 0.803719 | 0 | 0 | 0.433333 | 0 | 0 | 0.766337 | 0.046535 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.033333 | 0 | 0.133333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1ce7603f33584c5aefec4359d0957617e3a28159 | 5,106 | py | Python | CreateHalo.py | yoyoberenguer/MultiplayerGameEngine | 1d1a4c0ab40d636322c4e3299cbc84fb57965b31 | [
"MIT"
] | 4 | 2019-09-08T13:54:14.000Z | 2021-12-18T11:46:59.000Z | CreateHalo.py | yoyoberenguer/MultiplayerGameEngine | 1d1a4c0ab40d636322c4e3299cbc84fb57965b31 | [
"MIT"
] | 1 | 2019-09-01T11:21:39.000Z | 2019-09-01T15:01:21.000Z | CreateHalo.py | yoyoberenguer/MultiplayerGameEngine | 1d1a4c0ab40d636322c4e3299cbc84fb57965b31 | [
"MIT"
] | 1 | 2019-08-23T07:00:20.000Z | 2019-08-23T07:00:20.000Z |
import pygame
from NetworkBroadcast import Broadcast, AnimatedSprite, DeleteSpriteCommand
from Textures import HALO_SPRITE12, HALO_SPRITE14, HALO_SPRITE13
__author__ = "Yoann Berenguer"
__credits__ = ["Yoann Berenguer"]
__version__ = "1.0.0"
__maintainer__ = "Yoann Berenguer"
__email__ = "yoyoberenguer@hotma... | 31.9125 | 99 | 0.570897 | 564 | 5,106 | 4.929078 | 0.166667 | 0.057554 | 0.040288 | 0.038849 | 0.694964 | 0.674101 | 0.674101 | 0.674101 | 0.674101 | 0.646043 | 0 | 0.008455 | 0.328241 | 5,106 | 159 | 100 | 32.113208 | 0.802041 | 0.017039 | 0 | 0.731481 | 0 | 0 | 0.032124 | 0.005181 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.018519 | 0.027778 | 0.018519 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1ce98f8cbd7283e38faf8437d2c92e51357a9597 | 93 | py | Python | day4/homework/q7.py | AkshayManchanda/Python_Training | 5a50472d118ac6d40145bf1dd60f26864bf9fb6c | [
"MIT"
] | null | null | null | day4/homework/q7.py | AkshayManchanda/Python_Training | 5a50472d118ac6d40145bf1dd60f26864bf9fb6c | [
"MIT"
] | null | null | null | day4/homework/q7.py | AkshayManchanda/Python_Training | 5a50472d118ac6d40145bf1dd60f26864bf9fb6c | [
"MIT"
] | null | null | null | i=input("Enter a string: ")
list = i.split()
list.sort()
for i in list:
print(i,end=' ')
| 15.5 | 27 | 0.591398 | 17 | 93 | 3.235294 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 93 | 5 | 28 | 18.6 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0.182796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1ceddd105ecb3e0dcae569f584b7c20f28eab09e | 553 | py | Python | Python/Calculating_Trimmed_Means/calculating_trimmed_means1.py | PeriscopeData/analytics-toolbox | 83effdee380c33e5eecea29528acf5375fd496fb | [
"MIT"
] | 2 | 2019-09-27T22:19:09.000Z | 2019-12-02T23:12:18.000Z | Python/Calculating_Trimmed_Means/calculating_trimmed_means1.py | PeriscopeData/analytics-toolbox | 83effdee380c33e5eecea29528acf5375fd496fb | [
"MIT"
] | 1 | 2019-10-03T17:46:23.000Z | 2019-10-03T17:46:23.000Z | Python/Calculating_Trimmed_Means/calculating_trimmed_means1.py | PeriscopeData/analytics-toolbox | 83effdee380c33e5eecea29528acf5375fd496fb | [
"MIT"
] | 2 | 2021-07-17T18:23:50.000Z | 2022-03-03T04:53:03.000Z | # SQL output is imported as a pandas dataframe variable called "df"
# Source: https://stackoverflow.com/questions/19441730/trimmed-mean-with-percentage-limit-in-python
import pandas as pd
import matplotlib.pyplot as plt
from scipy.stats import tmean, scoreatpercentile
import numpy as np
def trimmean(arr, percent):
... | 39.5 | 100 | 0.779385 | 77 | 553 | 5.519481 | 0.688312 | 0.047059 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026749 | 0.121157 | 553 | 14 | 101 | 39.5 | 0.847737 | 0.296564 | 0 | 0 | 0 | 0 | 0.020672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e80208494724abb41e0606d412c1f9f663383e0b | 227 | py | Python | 2020_01_01/max_values/max_values.py | 94JuHo/Algorithm_study | e2c10ec680d966e5bcc4e7cb88d9514f9ccbbf15 | [
"MIT"
] | null | null | null | 2020_01_01/max_values/max_values.py | 94JuHo/Algorithm_study | e2c10ec680d966e5bcc4e7cb88d9514f9ccbbf15 | [
"MIT"
] | null | null | null | 2020_01_01/max_values/max_values.py | 94JuHo/Algorithm_study | e2c10ec680d966e5bcc4e7cb88d9514f9ccbbf15 | [
"MIT"
] | null | null | null | values = []
for i in range(9):
values.append(int(input('')))
max_value = 0
location = 0
for i in range(9):
if values[i] > max_value:
max_value = values[i]
location = i+1
print(max_value)
print(location) | 18.916667 | 33 | 0.61674 | 37 | 227 | 3.675676 | 0.432432 | 0.235294 | 0.088235 | 0.161765 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028902 | 0.237885 | 227 | 12 | 34 | 18.916667 | 0.757225 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | null | 1 | 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 | 2 |
e804b98c7267ddc9714ddf384d8bd8fa54ddef35 | 5,249 | py | Python | nova/api/openstack/compute/legacy_v2/contrib/console_auth_tokens.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/api/openstack/compute/legacy_v2/contrib/console_auth_tokens.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/api/openstack/compute/legacy_v2/contrib/console_auth_tokens.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Copyright 2013 Cloudbase Solutions Srl'
nl|'\n'
comment|'# All Rights Reserved.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'... | 14.62117 | 88 | 0.634597 | 751 | 5,249 | 4.376831 | 0.22237 | 0.094919 | 0.063888 | 0.036507 | 0.346821 | 0.280499 | 0.159112 | 0.153636 | 0.095528 | 0.06328 | 0 | 0.005547 | 0.107068 | 5,249 | 358 | 89 | 14.662011 | 0.695754 | 0 | 0 | 0.801676 | 0 | 0 | 0.437417 | 0.042484 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.013966 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e811c36f36c477d41124bae1d31894772c187da0 | 135 | py | Python | ExerciciosdePython/ex049.py | aleksandromelo/Exercicios | 782ff539efa1286180eaf8df8c25c4eca7a5e669 | [
"MIT"
] | null | null | null | ExerciciosdePython/ex049.py | aleksandromelo/Exercicios | 782ff539efa1286180eaf8df8c25c4eca7a5e669 | [
"MIT"
] | null | null | null | ExerciciosdePython/ex049.py | aleksandromelo/Exercicios | 782ff539efa1286180eaf8df8c25c4eca7a5e669 | [
"MIT"
] | null | null | null | num = int(input('Digite um número para ver sua tabuada: '))
for i in range(1, 11):
print('{} x {:2} = {}'.format(num, i, num * i)) | 33.75 | 59 | 0.57037 | 24 | 135 | 3.208333 | 0.833333 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037383 | 0.207407 | 135 | 4 | 60 | 33.75 | 0.682243 | 0 | 0 | 0 | 0 | 0 | 0.389706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e815853c059c203edb8fd8cdf216a9a5dcd145cf | 218 | py | Python | src/createData.py | saijananiganesan/SimPathFinder | 1634f2cb82c8056256d191be72589c4c531a3f67 | [
"MIT"
] | null | null | null | src/createData.py | saijananiganesan/SimPathFinder | 1634f2cb82c8056256d191be72589c4c531a3f67 | [
"MIT"
] | 1 | 2021-09-27T18:46:29.000Z | 2021-10-01T19:19:48.000Z | src/createData.py | saijananiganesan/SimPathFinder | 1634f2cb82c8056256d191be72589c4c531a3f67 | [
"MIT"
] | null | null | null | from __init__ import ExtractUnlabeledData, SampleUnlabeledData, ExtractLabeledData
E = ExtractLabeledData(data_dir='../labeldata/')
E.get_pathways()
E.get_pathway_names()
E.get_classes_dict()
E.create_df_all_labels()
| 27.25 | 82 | 0.825688 | 27 | 218 | 6.185185 | 0.740741 | 0.071856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06422 | 218 | 7 | 83 | 31.142857 | 0.818627 | 0 | 0 | 0 | 0 | 0 | 0.059633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e81b190b66eb2d495bc411eca3c4ded7a86955c8 | 892 | py | Python | app/api/serializers.py | michelmarcondes/django-study-with-docker | 248e41db3f16a5d26662c5e93ebf32716a20195e | [
"MIT"
] | null | null | null | app/api/serializers.py | michelmarcondes/django-study-with-docker | 248e41db3f16a5d26662c5e93ebf32716a20195e | [
"MIT"
] | null | null | null | app/api/serializers.py | michelmarcondes/django-study-with-docker | 248e41db3f16a5d26662c5e93ebf32716a20195e | [
"MIT"
] | null | null | null | from rest_framework import serializers
from projects.models import Project, Tag, Review
from users.models import Profile
class ReviewSerializer(serializers.ModelSerializer):
class Meta:
model = Review
fields = '__all__'
class ProfileSerializer(serializers.ModelSerializer):
class Meta:
... | 24.777778 | 57 | 0.696188 | 86 | 892 | 7 | 0.430233 | 0.172757 | 0.093023 | 0.174419 | 0.199336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2287 | 892 | 36 | 58 | 24.777778 | 0.875 | 0 | 0 | 0.307692 | 0 | 0 | 0.031355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e836603f27c307f1405743aabfd1cf7f2bab9fdf | 2,695 | py | Python | Chapter04/python/2.0.0/com/sparksamples/util.py | quguiliang/Machine-Learning-with-Spark-Second-Edition | 0ba131e6c15a3de97609c6cb5d976806ccc14f09 | [
"MIT"
] | 112 | 2017-05-13T15:44:29.000Z | 2022-02-19T20:14:14.000Z | Chapter04/python/2.0.0/com/sparksamples/util.py | tophua/Machine-Learning-with-Spark-Second-Edition | 0d93e992f6c79d55ad5cdcab735dbe6674143974 | [
"MIT"
] | 1 | 2017-05-25T00:10:43.000Z | 2017-05-25T00:10:43.000Z | Chapter04/python/2.0.0/com/sparksamples/util.py | tophua/Machine-Learning-with-Spark-Second-Edition | 0d93e992f6c79d55ad5cdcab735dbe6674143974 | [
"MIT"
] | 115 | 2017-05-06T10:49:00.000Z | 2022-03-08T07:48:54.000Z | import os
import sys
from pyspark.sql.types import *
PATH = "/home/ubuntu/work/ml-resources/spark-ml/data"
SPARK_HOME = "/home/ubuntu/work/spark-2.0.0-bin-hadoop2.7/"
os.environ['SPARK_HOME'] = SPARK_HOME
sys.path.append(SPARK_HOME + "/python")
from pyspark import SparkContext
from pyspark import SparkConf
from pyspa... | 35.460526 | 89 | 0.656401 | 305 | 2,695 | 5.718033 | 0.298361 | 0.223624 | 0.268349 | 0.018349 | 0.358372 | 0.297018 | 0.287844 | 0.287844 | 0.186927 | 0.186927 | 0 | 0.020777 | 0.178479 | 2,695 | 75 | 90 | 35.933333 | 0.766938 | 0 | 0 | 0.298246 | 0 | 0.017544 | 0.128853 | 0.050501 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.175439 | 0.035088 | 0.315789 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
1c0188f969e63d35026803dbf920b5a12f7d75cf | 12,648 | py | Python | specs/d3d9caps.py | prahal/apitrace | e9426dd61586757d23d7dddc85b3076f477e7f07 | [
"MIT"
] | 1 | 2020-06-19T12:34:44.000Z | 2020-06-19T12:34:44.000Z | specs/d3d9caps.py | prahal/apitrace | e9426dd61586757d23d7dddc85b3076f477e7f07 | [
"MIT"
] | null | null | null | specs/d3d9caps.py | prahal/apitrace | e9426dd61586757d23d7dddc85b3076f477e7f07 | [
"MIT"
] | null | null | null | ##########################################################################
#
# Copyright 2008-2009 VMware, Inc.
# All Rights Reserved.
#
# 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 withou... | 29.971564 | 79 | 0.716872 | 949 | 12,648 | 9.266596 | 0.454162 | 0.026154 | 0.007391 | 0.007505 | 0.01501 | 0.01501 | 0.01501 | 0 | 0 | 0 | 0 | 0.040682 | 0.156546 | 12,648 | 421 | 80 | 30.042755 | 0.783652 | 0.119466 | 0 | 0.092486 | 0 | 0 | 0.607384 | 0.464266 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.00578 | 0 | 0.00578 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c1a874f462704bb21b985ac2653cb99f9e8cd06 | 351 | py | Python | offspect/gui/VWidgets/message.py | translationalneurosurgery/tool-offspect | 011dafb697e8542fc7c3cf8af8523af3ff704a14 | [
"MIT"
] | 1 | 2022-02-23T12:26:45.000Z | 2022-02-23T12:26:45.000Z | offspect/gui/VWidgets/message.py | neuromti/tool-offspect | 011dafb697e8542fc7c3cf8af8523af3ff704a14 | [
"MIT"
] | 51 | 2020-03-15T14:52:36.000Z | 2020-09-28T09:30:53.000Z | offspect/gui/VWidgets/message.py | neuromti/tool-offspect | 011dafb697e8542fc7c3cf8af8523af3ff704a14 | [
"MIT"
] | 1 | 2020-03-24T07:35:30.000Z | 2020-03-24T07:35:30.000Z | # from PyQt5.QtWidgets import QMessageBox
# def raise_error(message: str = "DEFAULT:Error Description:More Information"):
# box = QMessageBox()
# kind, msg, info = message.split(":")
# box.setIcon(QMessageBox.Critical)
# box.setWindowTitle(kind + " Error")
# box.setText(msg)
# box.setInformati... | 29.25 | 79 | 0.669516 | 38 | 351 | 6.131579 | 0.657895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003509 | 0.188034 | 351 | 11 | 80 | 31.909091 | 0.814035 | 0.940171 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c29c6717099eef5374f68ca8190022df79ffc51 | 4,574 | py | Python | Footy/UnsupportedBantzStrings.py | schleising/banter-bot | 3e51453ae993d2c26dc51464a3cef3875a6be3c9 | [
"Apache-2.0"
] | null | null | null | Footy/UnsupportedBantzStrings.py | schleising/banter-bot | 3e51453ae993d2c26dc51464a3cef3875a6be3c9 | [
"Apache-2.0"
] | 2 | 2022-03-27T10:44:38.000Z | 2022-03-28T19:24:39.000Z | Footy/UnsupportedBantzStrings.py | schleising/banter-bot | 3e51453ae993d2c26dc51464a3cef3875a6be3c9 | [
"Apache-2.0"
] | 1 | 2022-03-28T11:45:47.000Z | 2022-03-28T11:45:47.000Z | # {team} -> Name of team
# {name} -> Name of person who supports team
teamMatchStarted: list[str] = [
"{team} are shit",
"{team} cunts",
"Dirty {team}",
"Dirty {team}, dirty {name}",
]
drawing: list[str] = [
"{team} level, this is a shit match",
"Boring old {team}",
"Happy with how it's go... | 34.390977 | 131 | 0.622868 | 687 | 4,574 | 4.148472 | 0.404658 | 0.027018 | 0.012632 | 0.011228 | 0.027368 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001148 | 0.238085 | 4,574 | 132 | 132 | 34.651515 | 0.816356 | 0.014211 | 0 | 0.033613 | 0 | 0.016807 | 0.749001 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.008403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c2a4f856378f5f6862c783cf6cd99f449623c3f | 3,271 | py | Python | nlpir/native/classifier.py | NLPIR-team/nlpir-python | 029f81e69ee561725fa017dce09cfd55acb34d20 | [
"MIT"
] | 18 | 2021-01-01T03:07:17.000Z | 2022-03-20T11:25:46.000Z | nlpir/native/classifier.py | yangyaofei/nlpir-python | af7bca9e2c3ba5f07316364da8f5e46a2bbc7c52 | [
"MIT"
] | 23 | 2020-12-04T07:10:09.000Z | 2022-03-10T09:39:26.000Z | nlpir/native/classifier.py | yangyaofei/nlpir-python | af7bca9e2c3ba5f07316364da8f5e46a2bbc7c52 | [
"MIT"
] | 13 | 2020-10-23T13:38:26.000Z | 2022-03-18T12:10:10.000Z | # coding=utf-8
from nlpir.native.nlpir_base import NLPIRBase
from ctypes import c_bool, c_char_p, c_int, POINTER, Structure, c_float
class StDoc(Structure):
__fields__ = [
("sTitle", c_char_p),
("sContent", c_char_p),
("sAuthor", c_char_p),
("sBoard", c_char_p),
("sDatatype... | 27.957265 | 112 | 0.597982 | 426 | 3,271 | 4.312207 | 0.274648 | 0.048993 | 0.058792 | 0.030484 | 0.41644 | 0.242243 | 0.218291 | 0.199238 | 0.148068 | 0.148068 | 0 | 0.017131 | 0.286151 | 3,271 | 116 | 113 | 28.198276 | 0.769593 | 0.293183 | 0 | 0.205128 | 0 | 0 | 0.106022 | 0.025219 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.051282 | 0.051282 | 0.589744 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1c2b194566a9e96dba834338ec915a2289eb1837 | 682 | py | Python | functions/markdown-to-html/markdown2html.py | truls/faas-profiler | d54ca0d9926f38c693f616ba4d08414aea823f51 | [
"MIT"
] | null | null | null | functions/markdown-to-html/markdown2html.py | truls/faas-profiler | d54ca0d9926f38c693f616ba4d08414aea823f51 | [
"MIT"
] | null | null | null | functions/markdown-to-html/markdown2html.py | truls/faas-profiler | d54ca0d9926f38c693f616ba4d08414aea823f51 | [
"MIT"
] | null | null | null | # Copyright (c) 2019 Princeton University
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from markdown import markdown
import base64
import json
import base64
def main(params):
try:
md = json.loads(base64.decodebytes(params["__... | 29.652174 | 108 | 0.690616 | 94 | 682 | 4.893617 | 0.617021 | 0.026087 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028623 | 0.180352 | 682 | 22 | 109 | 31 | 0.794275 | 0.233138 | 0 | 0.153846 | 0 | 0 | 0.235521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1c2db146a81095258082a5e01445b3cddf1eab20 | 8,037 | py | Python | users/models.py | moshthepitt/probsc | 9b8cab206bb1c41238e36bd77f5e0573df4d8e2d | [
"MIT"
] | null | null | null | users/models.py | moshthepitt/probsc | 9b8cab206bb1c41238e36bd77f5e0573df4d8e2d | [
"MIT"
] | null | null | null | users/models.py | moshthepitt/probsc | 9b8cab206bb1c41238e36bd77f5e0573df4d8e2d | [
"MIT"
] | null | null | null | from django.conf import settings
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.encoding import python_2_unicode_compatible
from django.urls import reverse
from django_extensions.db.models import TimeStampedModel
from mptt.models import MPTTModel, TreeForeignKey
... | 33.911392 | 79 | 0.630459 | 902 | 8,037 | 5.37694 | 0.190687 | 0.039175 | 0.032165 | 0.03299 | 0.491959 | 0.399381 | 0.352577 | 0.312165 | 0.289278 | 0.289278 | 0 | 0.002873 | 0.26378 | 8,037 | 236 | 80 | 34.055085 | 0.816799 | 0.057857 | 0 | 0.321429 | 0 | 0 | 0.087583 | 0.018158 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136905 | false | 0 | 0.047619 | 0.113095 | 0.553571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
1c30e979a316677653e10a7d840b2373d881b549 | 1,925 | py | Python | src/modules/loss.py | ab3llini/BlindLess | 46c50fb2748b9d372044d00b901f0cde91946684 | [
"MIT"
] | 1 | 2022-03-19T09:19:12.000Z | 2022-03-19T09:19:12.000Z | src/modules/loss.py | ab3llini/BlindLess | 46c50fb2748b9d372044d00b901f0cde91946684 | [
"MIT"
] | 1 | 2020-02-06T18:26:07.000Z | 2020-02-06T18:26:07.000Z | src/modules/loss.py | ab3llini/BlindLess | 46c50fb2748b9d372044d00b901f0cde91946684 | [
"MIT"
] | null | null | null | from torch.nn import CrossEntropyLoss
class GPT2Loss(CrossEntropyLoss):
def __init__(self, pad_token_id):
super(GPT2Loss, self).__init__(ignore_index=pad_token_id)
def forward(self, output, labels):
"""
Loss function for gpt2
:param output:
:param labels:
:retu... | 31.048387 | 75 | 0.619221 | 230 | 1,925 | 5.008696 | 0.252174 | 0.048611 | 0.060764 | 0.055556 | 0.664931 | 0.642361 | 0.597222 | 0.597222 | 0.524306 | 0.524306 | 0 | 0.014184 | 0.267532 | 1,925 | 61 | 76 | 31.557377 | 0.802837 | 0.232727 | 0 | 0.36 | 0 | 0 | 0.021106 | 0 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.24 | false | 0 | 0.04 | 0 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1c31541017e2e3db5152ae18abbb5211d1ab50d4 | 6,481 | py | Python | analyze_tls.py | khushhallchandra/CN-project | 405ce86e4e65e116531aa19287b8d05c959b1441 | [
"MIT"
] | null | null | null | analyze_tls.py | khushhallchandra/CN-project | 405ce86e4e65e116531aa19287b8d05c959b1441 | [
"MIT"
] | null | null | null | analyze_tls.py | khushhallchandra/CN-project | 405ce86e4e65e116531aa19287b8d05c959b1441 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
def main(filename):
data = pd.read_csv(filename, header=None)
means = data.mean(axis = 0)
stds = data.std(axis = 0)
return means[0], means[1], stds[0], stds[1]
if __name__ == '__main__':
files_http1 = ['./results/benchmark_siz... | 54.923729 | 257 | 0.738158 | 974 | 6,481 | 4.526694 | 0.103696 | 0.059878 | 0.090724 | 0.083466 | 0.889091 | 0.75482 | 0.540712 | 0.529372 | 0.448628 | 0.346564 | 0 | 0.044298 | 0.132696 | 6,481 | 118 | 258 | 54.923729 | 0.740082 | 0.059404 | 0 | 0.186047 | 0 | 0 | 0.19698 | 0.14675 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011628 | false | 0 | 0.034884 | 0 | 0.05814 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c33fa15ddbf9c5dfc357e4226f51b2734c6f579 | 738 | py | Python | nodes/List/GetTaskRenderListIndex.py | atticus-lv/RenderNode | 8a4797a2186b76fedebc5d634cff298e69089474 | [
"Apache-2.0"
] | 17 | 2021-11-21T09:26:55.000Z | 2022-03-09T06:56:01.000Z | nodes/List/GetTaskRenderListIndex.py | atticus-lv/RenderNode | 8a4797a2186b76fedebc5d634cff298e69089474 | [
"Apache-2.0"
] | 1 | 2021-12-05T13:02:48.000Z | 2021-12-06T08:02:34.000Z | nodes/List/GetTaskRenderListIndex.py | atticus-lv/RenderNode | 8a4797a2186b76fedebc5d634cff298e69089474 | [
"Apache-2.0"
] | 4 | 2021-11-23T14:49:34.000Z | 2021-12-30T15:04:58.000Z | import bpy
from bpy.props import *
from ...nodes.BASE.node_base import RenderNodeBase
class RenderNodeGetListIndex(RenderNodeBase):
"""A simple input node"""
bl_idname = 'RenderNodeGetListIndex'
bl_label = 'Get List Index'
def init(self, context):
self.create_output('RenderNodeSocketInt', "i... | 26.357143 | 81 | 0.730352 | 88 | 738 | 5.977273 | 0.522727 | 0.153992 | 0.045627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001618 | 0.162602 | 738 | 27 | 82 | 27.333333 | 0.849515 | 0.025745 | 0 | 0 | 0 | 0 | 0.130435 | 0.070126 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1c3ca96a8752bea73f340ee28894ea1bdab8af22 | 215 | py | Python | Python 3/19.prac_no2.py | ByeonUi-Hyeok/practice | 6f55ddcb662e2bf8e0c3fb4c4af0beb77a1c7d2d | [
"MIT"
] | 1 | 2021-06-11T08:55:03.000Z | 2021-06-11T08:55:03.000Z | Python 3/19.prac_no2.py | ByeonUi-Hyeok/practice | 6f55ddcb662e2bf8e0c3fb4c4af0beb77a1c7d2d | [
"MIT"
] | null | null | null | Python 3/19.prac_no2.py | ByeonUi-Hyeok/practice | 6f55ddcb662e2bf8e0c3fb4c4af0beb77a1c7d2d | [
"MIT"
] | null | null | null | import funcvote as vote
votes = input("투표내용 >>>")
# print(votes)
# print(type(votes))
result = vote.str2int(votes)
print(vote.countvotes(result))
result = vote.countvotes(result)
vote.printvote(result)
# 투표 초안 | 14.333333 | 32 | 0.716279 | 29 | 215 | 5.310345 | 0.517241 | 0.194805 | 0.25974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005348 | 0.130233 | 215 | 15 | 33 | 14.333333 | 0.818182 | 0.172093 | 0 | 0 | 0 | 0 | 0.045714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.333333 | 1 | 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 | 2 |
1c3f21c6980082d2b5b98180066cf9ba8b94eb50 | 156 | py | Python | utils/runtime_mode.py | omiderfanmanesh/dengue-infections-prediction | 6b4e4aa4af6f6e2cc581fd7828634bbfdc446340 | [
"Apache-2.0"
] | null | null | null | utils/runtime_mode.py | omiderfanmanesh/dengue-infections-prediction | 6b4e4aa4af6f6e2cc581fd7828634bbfdc446340 | [
"Apache-2.0"
] | null | null | null | utils/runtime_mode.py | omiderfanmanesh/dengue-infections-prediction | 6b4e4aa4af6f6e2cc581fd7828634bbfdc446340 | [
"Apache-2.0"
] | 1 | 2021-06-05T10:05:44.000Z | 2021-06-05T10:05:44.000Z | # Copyright (c) 2021, Omid Erfanmanesh, All rights reserved.
class RuntimeMode:
TRAIN = 0
TUNING = 1
CROSS_VAL = 2
FEATURE_IMPORTANCE = 3
| 19.5 | 61 | 0.666667 | 20 | 156 | 5.1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069565 | 0.262821 | 156 | 7 | 62 | 22.285714 | 0.817391 | 0.371795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c45545157e97f9c4e1cc68b6cafb654b5d57282 | 439 | py | Python | news/views.py | valch85/newssite | ef612a7bde4ff1d6e1e35f5cc4ec9407f031270e | [
"Apache-2.0"
] | null | null | null | news/views.py | valch85/newssite | ef612a7bde4ff1d6e1e35f5cc4ec9407f031270e | [
"Apache-2.0"
] | 2 | 2020-02-12T00:16:37.000Z | 2020-06-05T20:42:49.000Z | news/views.py | valch85/newssite | ef612a7bde4ff1d6e1e35f5cc4ec9407f031270e | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render, get_object_or_404
from .models import News
# Create your views here.
def index(request):
latest_news_list = News.objects.order_by('-pub_date')[:10]
context = {'latest_news_list': latest_news_list}
return render(request, 'news/index.html', context)
def detail(request, ... | 27.4375 | 62 | 0.728929 | 66 | 439 | 4.606061 | 0.5 | 0.098684 | 0.138158 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021333 | 0.145786 | 439 | 15 | 63 | 29.266667 | 0.789333 | 0.052392 | 0 | 0 | 0 | 0 | 0.143204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1c4d007b31f3f642fe520a7abaa4b88348fd22fe | 179 | py | Python | torch/metrics/accuracy_score.py | LilDataScientist/PyTorch-From-Scratch | ae3c0bffc5a36a9a7c123b98f52bdaa32fbedef6 | [
"MIT"
] | null | null | null | torch/metrics/accuracy_score.py | LilDataScientist/PyTorch-From-Scratch | ae3c0bffc5a36a9a7c123b98f52bdaa32fbedef6 | [
"MIT"
] | null | null | null | torch/metrics/accuracy_score.py | LilDataScientist/PyTorch-From-Scratch | ae3c0bffc5a36a9a7c123b98f52bdaa32fbedef6 | [
"MIT"
] | null | null | null | import numpy as np
def accuracy_score(y_true, y_pred):
a = np.argmax(y_true, axis=1)
b = np.argmax(y_pred, axis=1)
return np.count_nonzero(a == b) / y_true.shape[0]
| 22.375 | 53 | 0.664804 | 35 | 179 | 3.2 | 0.571429 | 0.133929 | 0.160714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.195531 | 179 | 7 | 54 | 25.571429 | 0.756944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1c57c91d84e8ef886ecab5c688f26666500663aa | 536 | py | Python | Tree/node.py | philipwerner/python_data_structures | 554c38376b732f65c5c168d0e1bd30bea3d1ab6b | [
"MIT"
] | null | null | null | Tree/node.py | philipwerner/python_data_structures | 554c38376b732f65c5c168d0e1bd30bea3d1ab6b | [
"MIT"
] | null | null | null | Tree/node.py | philipwerner/python_data_structures | 554c38376b732f65c5c168d0e1bd30bea3d1ab6b | [
"MIT"
] | null | null | null | """Node class module for Binary Tree."""
class Node(object):
"""The Node class."""
def __init__(self, value):
"""Initialization of node object."""
self.value = value
self.left = None
self.right = None
def __str__(self):
"""Return a string representation of the nod... | 26.8 | 88 | 0.585821 | 66 | 536 | 4.575758 | 0.363636 | 0.13245 | 0.072848 | 0.152318 | 0.238411 | 0.238411 | 0.238411 | 0 | 0 | 0 | 0 | 0 | 0.268657 | 536 | 19 | 89 | 28.210526 | 0.770408 | 0.328358 | 0 | 0 | 0 | 0.111111 | 0.245509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1c5a7f175c98d892dc83db59726cb2f27a8bed94 | 2,198 | py | Python | parser/fase2/team20/execution/executeSentence2.py | LopDlMa/tytus | 0b43ee1c7300cb11ddbe593e08239321b71dc443 | [
"MIT"
] | null | null | null | parser/fase2/team20/execution/executeSentence2.py | LopDlMa/tytus | 0b43ee1c7300cb11ddbe593e08239321b71dc443 | [
"MIT"
] | null | null | null | parser/fase2/team20/execution/executeSentence2.py | LopDlMa/tytus | 0b43ee1c7300cb11ddbe593e08239321b71dc443 | [
"MIT"
] | null | null | null | from .AST.sentence import *
from .AST.expression import *
from .AST.error import *
import sys
sys.path.append("../")
from console import *
def executeSentence2(self, sentence):
if isinstance(sentence, CreateDatabase):
h=0
elif isinstance(sentence, ShowDatabases):
h=0
e... | 36.032787 | 135 | 0.641947 | 219 | 2,198 | 6.442922 | 0.242009 | 0.216867 | 0.249468 | 0.136074 | 0.642098 | 0.437987 | 0.437987 | 0.437987 | 0.437987 | 0.437987 | 0 | 0.010989 | 0.213376 | 2,198 | 60 | 136 | 36.633333 | 0.80509 | 0.032757 | 0 | 0.509091 | 0 | 0 | 0.056026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.090909 | 0 | 0.109091 | 0.054545 | 0 | 0 | 0 | null | 1 | 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 | 2 |
1c5d3932d3d58eb3852f548752bb665e5c02d910 | 475 | py | Python | pysol/core/helpers.py | lotfio/pysol | 34fac6d1ec246a7a037d8237e00974a9a9548faa | [
"MIT"
] | 2 | 2019-10-09T21:58:20.000Z | 2020-01-08T07:29:28.000Z | pysol/core/helpers.py | lotfio/pysol | 34fac6d1ec246a7a037d8237e00974a9a9548faa | [
"MIT"
] | null | null | null | pysol/core/helpers.py | lotfio/pysol | 34fac6d1ec246a7a037d8237e00974a9a9548faa | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#| This file is part of cony
#|
#| @package Pysol python cli application
#| @author <lotfio lakehal>
#| @license MIT
#| @version 0.1.0
#| @copyright 2019 lotfio lakehal
import sys
# load module function
# this function loads a module by string name
def load_module(module):
... | 23.75 | 53 | 0.673684 | 64 | 475 | 4.859375 | 0.640625 | 0.128617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02168 | 0.223158 | 475 | 20 | 53 | 23.75 | 0.821138 | 0.547368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
1c76dc2dd43f773b5f6265abe296c42c73bdff7c | 597 | py | Python | rgislackbot/dispatcher/dispatchconfig.py | raginggeek/RGISlackBot | 9fddf78b37f494eb6605da890a28f41427f37f03 | [
"MIT"
] | null | null | null | rgislackbot/dispatcher/dispatchconfig.py | raginggeek/RGISlackBot | 9fddf78b37f494eb6605da890a28f41427f37f03 | [
"MIT"
] | 11 | 2019-03-08T01:38:40.000Z | 2019-03-15T16:21:59.000Z | rgislackbot/dispatcher/dispatchconfig.py | raginggeek/RGISlackBot | 9fddf78b37f494eb6605da890a28f41427f37f03 | [
"MIT"
] | null | null | null | class DispatchConfig:
def __init__(self, raw_config):
self.registered_commands = {}
for package in raw_config["handlers"]:
for command in package["commands"]:
self.registered_commands[command] = {
"class": package["class"],
"fullpat... | 37.3125 | 99 | 0.572864 | 57 | 597 | 5.77193 | 0.421053 | 0.170213 | 0.267477 | 0.176292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.313233 | 597 | 15 | 100 | 39.8 | 0.802439 | 0 | 0 | 0 | 0 | 0 | 0.088777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1c79747bf1ea18f4c3b8be4f42301cb16c8ee8f3 | 223 | py | Python | labJS/conf.py | lpomfrey/django-labjs | f35346ec7f3b87ae24b2d7a01c06001ceb4173bc | [
"MIT"
] | null | null | null | labJS/conf.py | lpomfrey/django-labjs | f35346ec7f3b87ae24b2d7a01c06001ceb4173bc | [
"MIT"
] | null | null | null | labJS/conf.py | lpomfrey/django-labjs | f35346ec7f3b87ae24b2d7a01c06001ceb4173bc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from appconf import AppConf
from django.conf import settings # noqa
class LabjsConf(AppConf):
ENABLED = not settings.DEBUG
DEBUG_TOGGLE = 'labjs'
| 18.583333 | 40 | 0.730942 | 28 | 223 | 5.607143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.183857 | 223 | 11 | 41 | 20.272727 | 0.857143 | 0.116592 | 0 | 0 | 0 | 0 | 0.025773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
1c855f3c4b60017317473eca05c6f77584434cbc | 2,464 | py | Python | QUICK_START/NODE_SQUEEZESEG_CLUSTER/src/script/squeezeseg/utils/clock.py | Hqss/DINK | 5fecaa65e2f9da48eb8ac38ef709aa555fca8766 | [
"BSD-3-Clause"
] | 189 | 2019-01-16T03:05:23.000Z | 2020-09-14T14:54:16.000Z | QUICK_START/NODE_SQUEEZESEG_CLUSTER/src/script/squeezeseg/utils/clock.py | jtpils/DINK | 5f6b3eaba279126f79ae6607f965311002d7451c | [
"BSD-3-Clause"
] | 3 | 2019-02-11T06:20:15.000Z | 2020-04-05T07:03:53.000Z | QUICK_START/NODE_SQUEEZESEG_CLUSTER/src/script/squeezeseg/utils/clock.py | jtpils/DINK | 5f6b3eaba279126f79ae6607f965311002d7451c | [
"BSD-3-Clause"
] | 25 | 2019-01-16T03:05:24.000Z | 2020-04-04T21:07:53.000Z | #! /usr/bin/python2
# -*- coding: utf-8 -*-
"""
Clock function to take running time following Segmatch.
"""
# BSD 3-Clause License
#
# Copyright (c) 2019, FPAI
# Copyright (c) 2019, SeriouslyHAO
# Copyright (c) 2019, xcj2019
# Copyright (c) 2019, Leonfirst
#
# All rights reserved.
#
# Redistribution and use in source a... | 39.741935 | 114 | 0.745536 | 328 | 2,464 | 5.542683 | 0.503049 | 0.022002 | 0.033003 | 0.028053 | 0.140814 | 0.114411 | 0.114411 | 0.074807 | 0.074807 | 0.074807 | 0 | 0.016882 | 0.18263 | 2,464 | 61 | 115 | 40.393443 | 0.885799 | 0.683847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0.058824 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.