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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7f861eb33a0b220e3a89491dc68d3e6bfdddea0a | 725 | py | Python | src/settings/models.py | TolgaKara/prodai | a858d39226a072a2a52513d942dd046bb3787da8 | [
"Apache-2.0"
] | null | null | null | src/settings/models.py | TolgaKara/prodai | a858d39226a072a2a52513d942dd046bb3787da8 | [
"Apache-2.0"
] | 7 | 2020-10-09T09:24:28.000Z | 2022-03-12T00:14:07.000Z | src/settings/models.py | TolgaKara/prodai | a858d39226a072a2a52513d942dd046bb3787da8 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Setting(models.Model):
user_id = models.ForeignKey(User, on_delete=models.CASCADE)
class TimeTrackingSetting(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
max_daily_work_ti... | 31.521739 | 63 | 0.768276 | 90 | 725 | 6.033333 | 0.455556 | 0.132597 | 0.082873 | 0.121547 | 0.281768 | 0.281768 | 0.281768 | 0.206262 | 0.206262 | 0.206262 | 0 | 0.012759 | 0.135172 | 725 | 22 | 64 | 32.954545 | 0.85327 | 0.033103 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7f9732b0483bd520dbc21d4a193f8cf3d1d42f99 | 2,578 | py | Python | ansible/terminal_plugins/aos.py | xwjiang2021/sonic-mgmt | 82c446b9fb016eb070af765aa9d9999e55b27342 | [
"Apache-2.0"
] | 2 | 2021-11-24T09:33:41.000Z | 2021-12-03T09:08:29.000Z | ansible/terminal_plugins/aos.py | xwjiang2021/sonic-mgmt | 82c446b9fb016eb070af765aa9d9999e55b27342 | [
"Apache-2.0"
] | null | null | null | ansible/terminal_plugins/aos.py | xwjiang2021/sonic-mgmt | 82c446b9fb016eb070af765aa9d9999e55b27342 | [
"Apache-2.0"
] | null | null | null | from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import re
import json
from ansible.plugins.terminal import TerminalBase
from ansible.errors import AnsibleConnectionFailure
from ansible.module_utils._text import to_bytes, to_text
class TerminalModule(TerminalBase):
termin... | 37.362319 | 141 | 0.595035 | 331 | 2,578 | 4.483384 | 0.410876 | 0.084906 | 0.103774 | 0.040431 | 0.206199 | 0.119946 | 0.044474 | 0.044474 | 0 | 0 | 0 | 0.001549 | 0.248642 | 2,578 | 68 | 142 | 37.911765 | 0.764584 | 0.04422 | 0 | 0.132075 | 0 | 0 | 0.273466 | 0.029663 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0.09434 | 0.113208 | 0 | 0.264151 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7f9d05c84680fa636b07deb1bc4b9da548452f7b | 3,879 | py | Python | setup.py | annieapp/annie | 82e0e858d835fcafa70629377a58102699bb8bb2 | [
"MIT"
] | 4 | 2019-06-17T15:44:54.000Z | 2022-03-25T15:40:04.000Z | setup.py | annieapp/annie | 82e0e858d835fcafa70629377a58102699bb8bb2 | [
"MIT"
] | 5 | 2019-06-12T15:25:51.000Z | 2019-07-04T23:33:06.000Z | setup.py | RDIL/annie | 82e0e858d835fcafa70629377a58102699bb8bb2 | [
"MIT"
] | 1 | 2019-06-18T00:04:41.000Z | 2019-06-18T00:04:41.000Z | """
Annie Modified MIT License
Copyright (c) 2019-present year Reece Dunham and the Annie Team
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation th... | 39.181818 | 78 | 0.685228 | 463 | 3,879 | 5.714903 | 0.460043 | 0.056689 | 0.075586 | 0.058957 | 0.140212 | 0.062736 | 0.033258 | 0.033258 | 0 | 0 | 0 | 0.00956 | 0.191029 | 3,879 | 98 | 79 | 39.581633 | 0.833652 | 0.305749 | 0 | 0 | 0 | 0 | 0.668901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014286 | 0 | 0.014286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f9deee06e30542f48efc2735e6a677bc1ee2c2d | 427 | py | Python | store/migrations/0011_watch_slug.py | StilyanMinchev/OnlineStore | 9f4c5a4d13150d753a0a85908c0cd56246106fb8 | [
"MIT"
] | 1 | 2020-12-27T09:36:28.000Z | 2020-12-27T09:36:28.000Z | store/migrations/0011_watch_slug.py | StilyanMinchev/OnlineStore | 9f4c5a4d13150d753a0a85908c0cd56246106fb8 | [
"MIT"
] | 7 | 2021-06-05T00:01:05.000Z | 2022-03-12T00:52:05.000Z | store/migrations/0011_watch_slug.py | StilyanMinchev/OnlineStore | 9f4c5a4d13150d753a0a85908c0cd56246106fb8 | [
"MIT"
] | 1 | 2020-12-27T09:36:31.000Z | 2020-12-27T09:36:31.000Z | # Generated by Django 3.1.3 on 2020-12-13 08:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0010_auto_20201212_2058'),
]
operations = [
migrations.AddField(
model_name='watch',
name='slug',
... | 21.35 | 62 | 0.594848 | 46 | 427 | 5.413043 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10596 | 0.29274 | 427 | 19 | 63 | 22.473684 | 0.718543 | 0.105386 | 0 | 0 | 1 | 0 | 0.097368 | 0.060526 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7fa2a0f0ee0be54fb76852220d29ddc43297d130 | 937 | py | Python | mytravelblog/accounts/tests/forms/tests_EditPasswordForm.py | yetoshimo/my-travel-blog | de67dd135e66f2dda121850d54fd56fd644b9bff | [
"MIT"
] | null | null | null | mytravelblog/accounts/tests/forms/tests_EditPasswordForm.py | yetoshimo/my-travel-blog | de67dd135e66f2dda121850d54fd56fd644b9bff | [
"MIT"
] | null | null | null | mytravelblog/accounts/tests/forms/tests_EditPasswordForm.py | yetoshimo/my-travel-blog | de67dd135e66f2dda121850d54fd56fd644b9bff | [
"MIT"
] | null | null | null | from django import test as django_tests
from django.contrib.auth import get_user_model
from mytravelblog.accounts.forms import UserLoginForm, EditPasswordForm
UserModel = get_user_model()
class EditPasswordFromTests(django_tests.TestCase):
def setUp(self):
self.username = 'testuser'
self.passwor... | 33.464286 | 107 | 0.693703 | 104 | 937 | 6.019231 | 0.461538 | 0.103834 | 0.086262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01084 | 0.21238 | 937 | 27 | 108 | 34.703704 | 0.837398 | 0 | 0 | 0 | 0 | 0 | 0.089648 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.095238 | false | 0.47619 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7fa65605f373bb773e7700052c14cdd58e55214a | 929 | py | Python | Python/eight_kyu/abbrev_name.py | Brokenshire/codewars-projects | db9cd09618b8a7085b0d53ad76f73f9e249b9396 | [
"Apache-2.0"
] | 1 | 2019-12-20T04:09:56.000Z | 2019-12-20T04:09:56.000Z | Python/eight_kyu/abbrev_name.py | Brokenshire/codewars-projects | db9cd09618b8a7085b0d53ad76f73f9e249b9396 | [
"Apache-2.0"
] | null | null | null | Python/eight_kyu/abbrev_name.py | Brokenshire/codewars-projects | db9cd09618b8a7085b0d53ad76f73f9e249b9396 | [
"Apache-2.0"
] | null | null | null | # Python solution for 'Abbreviate a Two Word Name' codewars question.
# Level: 8 kyu
# Tags: FUNDAMENTALS, STRINGS, and ARRAYS.
# Author: Jack Brokenshire
# Date: 16/05/2020
import unittest
def abbrev_name(name):
"""
Converts name of two words into initials.
:param name: a string.
:return: two capita... | 28.151515 | 69 | 0.658773 | 124 | 929 | 4.798387 | 0.604839 | 0.134454 | 0.176471 | 0.210084 | 0.090756 | 0.090756 | 0 | 0 | 0 | 0 | 0 | 0.017287 | 0.190527 | 929 | 32 | 70 | 29.03125 | 0.773936 | 0.347686 | 0 | 0 | 0 | 0 | 0.146597 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7fa7c7a849af2d16d11ffa6cce19f13ddd50d411 | 1,876 | py | Python | assets/python_scripts/cvScale.py | weiSupreme/weiSupreme.github.io | 59d419f2d8207c7da0a427330b21546f4f0d85d0 | [
"CC-BY-4.0"
] | 3 | 2018-09-15T05:47:35.000Z | 2019-04-08T07:00:02.000Z | assets/python_scripts/cvScale.py | weiSupreme/weiSupreme.github.io | 59d419f2d8207c7da0a427330b21546f4f0d85d0 | [
"CC-BY-4.0"
] | null | null | null | assets/python_scripts/cvScale.py | weiSupreme/weiSupreme.github.io | 59d419f2d8207c7da0a427330b21546f4f0d85d0 | [
"CC-BY-4.0"
] | null | null | null | import os
import cv2
import random
src_dir = "select2000/"
name_idx = 6000
dest_img_dir = "scale/image/"
dest_txt_dir = "scale/txt/"
img_list = os.listdir(src_dir)
def write_label(old_name, new_name, hratio_, wratio_):
old_obj = open(src_dir+old_name)
new_obj = open(dest_txt_dir+new_name, 'w')
old_txt = ... | 30.258065 | 244 | 0.591151 | 271 | 1,876 | 3.822878 | 0.276753 | 0.127413 | 0.049228 | 0.040541 | 0.135135 | 0.104247 | 0.061776 | 0.061776 | 0 | 0 | 0 | 0.033333 | 0.264392 | 1,876 | 61 | 245 | 30.754098 | 0.717391 | 0.013326 | 0 | 0.042553 | 0 | 0 | 0.035154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06383 | null | null | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7fb037fc5e93403c24d4069718d9478ba79f717e | 13,941 | py | Python | mod_spotted_extended_light/mod_spotted_extended_light308.py | chipsi007/spoter-mods | 0b8745cf06c651d84e356d16ce9d49f574dac81e | [
"WTFPL"
] | null | null | null | mod_spotted_extended_light/mod_spotted_extended_light308.py | chipsi007/spoter-mods | 0b8745cf06c651d84e356d16ce9d49f574dac81e | [
"WTFPL"
] | null | null | null | mod_spotted_extended_light/mod_spotted_extended_light308.py | chipsi007/spoter-mods | 0b8745cf06c651d84e356d16ce9d49f574dac81e | [
"WTFPL"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import re
import json
import codecs
import datetime
import threading
import urllib
import urllib2
import string
import random
import BigWorld
from constants import AUTH_REALM
from gui.Scaleform.daapi.view.lobby.hangar.Hangar import Hangar
from gui.battle_control import g_sessionProvi... | 46.781879 | 197 | 0.582742 | 1,689 | 13,941 | 4.618709 | 0.19775 | 0.006666 | 0.032688 | 0.032816 | 0.361748 | 0.3015 | 0.223177 | 0.193693 | 0.157928 | 0.142161 | 0 | 0.010411 | 0.269636 | 13,941 | 297 | 198 | 46.939394 | 0.755647 | 0.016283 | 0 | 0.18677 | 0 | 0 | 0.175195 | 0.028615 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007782 | 0.07393 | null | null | 0.038911 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7fb04d7e5c955b6114c4a179c5490fcab0e0ff9c | 3,497 | py | Python | adjutantclient/osc/v1/tokens.py | openstack/python-adjutantclient | 20d234bc370056184a0885e6e6f735db056668a2 | [
"Apache-2.0"
] | 6 | 2017-10-31T13:27:59.000Z | 2019-01-28T22:09:25.000Z | adjutantclient/osc/v1/tokens.py | openstack/python-adjutantclient | 20d234bc370056184a0885e6e6f735db056668a2 | [
"Apache-2.0"
] | null | null | null | adjutantclient/osc/v1/tokens.py | openstack/python-adjutantclient | 20d234bc370056184a0885e6e6f735db056668a2 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2016 Catalyst IT Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 32.682243 | 78 | 0.654847 | 437 | 3,497 | 5.075515 | 0.350114 | 0.045086 | 0.037872 | 0.054103 | 0.286294 | 0.286294 | 0.286294 | 0.270063 | 0.188007 | 0.188007 | 0 | 0.004106 | 0.233915 | 3,497 | 106 | 79 | 32.990566 | 0.823815 | 0.197312 | 0 | 0.301587 | 0 | 0 | 0.108508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126984 | false | 0.063492 | 0.079365 | 0 | 0.380952 | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7fb71d82abd96a4b2037456c5481862b49d126e5 | 6,010 | py | Python | src/django/addr/addr/settings.py | deshk04/addressparser | 03c33859bb585a6cf767e0f4d3dfd23cabd2d78b | [
"MIT"
] | null | null | null | src/django/addr/addr/settings.py | deshk04/addressparser | 03c33859bb585a6cf767e0f4d3dfd23cabd2d78b | [
"MIT"
] | null | null | null | src/django/addr/addr/settings.py | deshk04/addressparser | 03c33859bb585a6cf767e0f4d3dfd23cabd2d78b | [
"MIT"
] | null | null | null | """
Django settings for addr project.
Generated by 'django-admin startproject' using Django 1.11.29.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
f... | 29.033816 | 99 | 0.67604 | 632 | 6,010 | 6.272152 | 0.351266 | 0.078708 | 0.0333 | 0.044147 | 0.432392 | 0.395056 | 0.340061 | 0.317861 | 0.279768 | 0.248739 | 0 | 0.022277 | 0.185857 | 6,010 | 206 | 100 | 29.174757 | 0.78786 | 0.26772 | 0 | 0.33871 | 1 | 0 | 0.49587 | 0.382515 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.048387 | 0.024194 | 0 | 0.024194 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7fba6b53744ed7ffa8875853e834cde754de773e | 5,106 | py | Python | xxhh/rank.py | jannson/Similar | 975527fae5fe63ab63913fa1f24619d616331687 | [
"MIT"
] | 2 | 2015-12-17T17:25:44.000Z | 2019-01-24T16:46:55.000Z | xxhh/rank.py | jannson/Similar | 975527fae5fe63ab63913fa1f24619d616331687 | [
"MIT"
] | null | null | null | xxhh/rank.py | jannson/Similar | 975527fae5fe63ab63913fa1f24619d616331687 | [
"MIT"
] | null | null | null | import sys, os, os.path, re
import codecs
import numpy as np
from scipy.sparse import *
from scipy import *
from sklearn.externals import joblib
import networkx as nx
django_path = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(13, django_path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'xxhh.settings'
from d... | 33.372549 | 138 | 0.53584 | 681 | 5,106 | 3.911894 | 0.211454 | 0.045045 | 0.033784 | 0.040541 | 0.281532 | 0.220345 | 0.170796 | 0.140015 | 0.087462 | 0.066066 | 0 | 0.034777 | 0.335488 | 5,106 | 152 | 139 | 33.592105 | 0.750368 | 0.133373 | 0 | 0.12844 | 0 | 0 | 0.038206 | 0.005221 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.091743 | null | null | 0.036697 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7fbb8f0f4fee8e352ae2772b0862fa10d84c521b | 1,290 | py | Python | temp/pattern.py | BlueBeret/ComputerGraphics-Assignment | 5df905adfe8bcc958493337a80bd6eb75806bf6b | [
"MIT"
] | 1 | 2022-03-11T14:03:37.000Z | 2022-03-11T14:03:37.000Z | temp/pattern.py | BlueBeret/ComputerGraphics-Assignment | 5df905adfe8bcc958493337a80bd6eb75806bf6b | [
"MIT"
] | null | null | null | temp/pattern.py | BlueBeret/ComputerGraphics-Assignment | 5df905adfe8bcc958493337a80bd6eb75806bf6b | [
"MIT"
] | null | null | null | from tkinter import *
root = Tk()
canvas = Canvas(root,
width=1000,
height=1000,
background="#FFFFFF")
canvas.pack(expand=YES, fill=BOTH)
def dot(x,y,size=1, color="#FF0000", outline=""):
if size==1:
canvas.create_line(x,y,x+1,y, fill=color, width=size)
return
canvas.create_ova... | 29.318182 | 100 | 0.591473 | 219 | 1,290 | 3.406393 | 0.305936 | 0.241287 | 0.037534 | 0.018767 | 0.093834 | 0.032172 | 0 | 0 | 0 | 0 | 0 | 0.080426 | 0.2 | 1,290 | 44 | 101 | 29.318182 | 0.642442 | 0 | 0 | 0.0625 | 0 | 0 | 0.024012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.03125 | 0 | 0.15625 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f68072e40e9326d2208563fb1dc9bb70cc1a0ff4 | 3,420 | py | Python | gadann/updater.py | dpineo/gadann | ff5dce9a8fc6192ba1efd854672f593872116beb | [
"MIT"
] | null | null | null | gadann/updater.py | dpineo/gadann | ff5dce9a8fc6192ba1efd854672f593872116beb | [
"MIT"
] | null | null | null | gadann/updater.py | dpineo/gadann | ff5dce9a8fc6192ba1efd854672f593872116beb | [
"MIT"
] | null | null | null | #
# GADANN - GPU Accelerated Deep Artificial Neural Network
#
# Copyright (C) 2014 Daniel Pineo (daniel@pineo.net)
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restricti... | 37.173913 | 142 | 0.65614 | 473 | 3,420 | 4.649049 | 0.327696 | 0.070032 | 0.065484 | 0.023647 | 0.352888 | 0.326057 | 0.31196 | 0.31196 | 0.297408 | 0.297408 | 0 | 0.016988 | 0.24269 | 3,420 | 91 | 143 | 37.582418 | 0.832046 | 0.332749 | 0 | 0.489796 | 0 | 0 | 0.00738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22449 | false | 0.020408 | 0.040816 | 0.061224 | 0.408163 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f682fe676c7e1a1a9637f751482cd8ab906a78f3 | 880 | py | Python | Aula37/View/testesquad.py | PabloSchumacher/TrabalhosPython | 828edd35eb40442629211bc9f1477f75fb025d74 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | Aula37/View/testesquad.py | PabloSchumacher/TrabalhosPython | 828edd35eb40442629211bc9f1477f75fb025d74 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | Aula37/View/testesquad.py | PabloSchumacher/TrabalhosPython | 828edd35eb40442629211bc9f1477f75fb025d74 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | import sys
sys.path.append( r"C:\Users\900157\Documents\Github\TrabalhosPython\Aula37" )
from Controller.squad_controller import SquadController
from Model.squad import Squad
squad = Squad()
squad.nome = 'JooJ'
squad.descricao = 'Intermediário'
squad.npessoas = 20
squad.backend.nome = 'Lua' #Adicionar
squad.b... | 38.26087 | 77 | 0.671591 | 99 | 880 | 5.929293 | 0.474747 | 0.081772 | 0.081772 | 0.107325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022026 | 0.226136 | 880 | 23 | 78 | 38.26087 | 0.839941 | 0.275 | 0 | 0 | 0 | 0 | 0.1296 | 0.088 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f684bccdded45f6ae63003186c9bee87eac9d795 | 5,427 | py | Python | restapi/resources/login.py | fossabot/http-api | 57a646884e62fe024f6dd7edcc572c85f2955f16 | [
"MIT"
] | null | null | null | restapi/resources/login.py | fossabot/http-api | 57a646884e62fe024f6dd7edcc572c85f2955f16 | [
"MIT"
] | null | null | null | restapi/resources/login.py | fossabot/http-api | 57a646884e62fe024f6dd7edcc572c85f2955f16 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from datetime import datetime, timedelta
import pytz
from restapi.rest.definition import EndpointResource
from restapi.exceptions import RestApiException
from restapi.connectors.authentication import HandleSecurity
from restapi import decorators
from restapi.confs import WRAP_RESPONSE
from re... | 32.112426 | 87 | 0.575456 | 562 | 5,427 | 5.395018 | 0.263345 | 0.031662 | 0.030013 | 0.019789 | 0.092348 | 0.027045 | 0.027045 | 0.027045 | 0 | 0 | 0 | 0.002684 | 0.313433 | 5,427 | 168 | 88 | 32.303571 | 0.811057 | 0.054911 | 0 | 0.051282 | 0 | 0 | 0.121475 | 0.005036 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017094 | false | 0.188034 | 0.068376 | 0 | 0.17094 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f68c3bc365dd845146ca474b6dad80a6bde410a7 | 659 | py | Python | Python/_10_09/2.3.19.py | MBkkt/Homework | db92bdb9262f1737d637f01d5cf2d3680e379a7b | [
"MIT"
] | 1 | 2019-04-07T18:27:29.000Z | 2019-04-07T18:27:29.000Z | Python/_10_09/2.3.19.py | MBkkt/Homework | db92bdb9262f1737d637f01d5cf2d3680e379a7b | [
"MIT"
] | 1 | 2019-10-02T23:01:01.000Z | 2019-10-02T23:01:01.000Z | Python/_10_09/2.3.19.py | MBkkt/Homework | db92bdb9262f1737d637f01d5cf2d3680e379a7b | [
"MIT"
] | 2 | 2018-10-19T22:42:54.000Z | 2019-03-10T14:57:59.000Z | """ Комбинации. Составьте программу combinations. ру, получающую из командной
строки один аргумент n и выводящую все 2" комбинаций любого
размера. Комбинация - это подмножество из п элементов, независимо
от порядка. Например, когда п = 3, вы должны получить следующий вывод:
а аЬ аЬс ас Ь ьс с
Обратите внимание, чт... | 34.684211 | 123 | 0.70258 | 94 | 659 | 4.819149 | 0.776596 | 0.046358 | 0.03532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005597 | 0.186646 | 659 | 18 | 124 | 36.611111 | 0.839552 | 0.578149 | 0 | 0 | 0 | 0 | 0.039683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
f68d61972a56264e1422d85b1127e77df23bf4c2 | 2,130 | py | Python | src/rubrik_config/rubrik_config_base.py | rubrikinc/rubrik-config-backup | 4c421f5090064372f6e89673a5d445de8248ddda | [
"MIT"
] | 2 | 2021-01-27T21:15:24.000Z | 2021-06-08T17:31:15.000Z | src/rubrik_config/rubrik_config_base.py | rubrikinc/rubrik-config-backup | 4c421f5090064372f6e89673a5d445de8248ddda | [
"MIT"
] | 1 | 2020-12-10T07:01:09.000Z | 2020-12-10T07:01:09.000Z | src/rubrik_config/rubrik_config_base.py | rubrikinc/rubrik-config-backup | 4c421f5090064372f6e89673a5d445de8248ddda | [
"MIT"
] | null | null | null | import abc
import json
import os
from rubrik_config import helpers
class RubrikConfigBase(abc.ABC):
def __init__(self, path, rubrik, logger):
self.path = path
self.rubrik = rubrik
self.logger = logger
self.cluster_version = self.rubrik.cluster_version()
self.cluster_name... | 26.296296 | 89 | 0.567606 | 245 | 2,130 | 4.816327 | 0.383673 | 0.037288 | 0.050847 | 0.040678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002125 | 0.337089 | 2,130 | 80 | 90 | 26.625 | 0.833569 | 0.226761 | 0 | 0.153846 | 0 | 0 | 0.100264 | 0.05409 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0.076923 | 0.102564 | 0 | 0.282051 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f68e8c40892b76a4713ca99cffde2e9dcbf87b67 | 2,105 | py | Python | prev_ob_models/exclude/GilraBhalla2015/synapses/mitral_granule_NMDA.py | fameshpatel/olfactorybulb | 8d7a644b4560309ef177c0590ff73ed4c2432604 | [
"MIT"
] | null | null | null | prev_ob_models/exclude/GilraBhalla2015/synapses/mitral_granule_NMDA.py | fameshpatel/olfactorybulb | 8d7a644b4560309ef177c0590ff73ed4c2432604 | [
"MIT"
] | null | null | null | prev_ob_models/exclude/GilraBhalla2015/synapses/mitral_granule_NMDA.py | fameshpatel/olfactorybulb | 8d7a644b4560309ef177c0590ff73ed4c2432604 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import math
# The PYTHONPATH should contain the location of moose.py and _moose.so
# files. Putting ".." with the assumption that moose.py and _moose.so
# has been generated in ${MOOSE_SOURCE_DIRECTORY}/pymoose/ (as default
# pymoose build does) and this file i... | 38.981481 | 106 | 0.679335 | 281 | 2,105 | 4.886121 | 0.41637 | 0.094683 | 0.123816 | 0.0437 | 0.097597 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004875 | 0.220428 | 2,105 | 53 | 107 | 39.716981 | 0.83181 | 0.418527 | 0 | 0.08 | 0 | 0 | 0.146168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.28 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f691db8dd8822bcebc9d504797dbc6f906497158 | 900 | py | Python | hparams.py | SuzukiDaishi/AutoVC.pytorch | 0ce6f2dd5b6e34f812c56fc1466bb3444ef837bd | [
"MIT"
] | 25 | 2020-06-09T14:44:14.000Z | 2022-03-26T11:19:47.000Z | hparams.py | SuzukiDaishi/AutoVC.pytorch | 0ce6f2dd5b6e34f812c56fc1466bb3444ef837bd | [
"MIT"
] | 2 | 2020-10-27T02:31:28.000Z | 2021-02-21T02:47:02.000Z | hparams.py | SuzukiDaishi/AutoVC.pytorch | 0ce6f2dd5b6e34f812c56fc1466bb3444ef837bd | [
"MIT"
] | 4 | 2020-10-27T02:03:35.000Z | 2022-03-26T11:19:41.000Z | class hparams:
sample_rate = 16000
n_fft = 1024
#fft_bins = n_fft // 2 + 1
num_mels = 80
hop_length = 256
win_length = 1024
fmin = 90
fmax = 7600
min_level_db = -100
ref_level_db = 20
seq_len_factor = 64
bits = 12
seq_len = seq_len_factor * hop_length
d... | 21.428571 | 45 | 0.61 | 126 | 900 | 4.047619 | 0.603175 | 0.035294 | 0.047059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152459 | 0.322222 | 900 | 41 | 46 | 21.95122 | 0.683607 | 0.045556 | 0 | 0 | 0 | 0 | 0.008178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f692bbf1983670a97677d806c68b916963e86d4a | 2,542 | py | Python | expRT/BTS_Material.py | EJ-Chang/OSD-Study | d7029879fa95406daf8f8e67a15bf859e7bcbce9 | [
"MIT"
] | null | null | null | expRT/BTS_Material.py | EJ-Chang/OSD-Study | d7029879fa95406daf8f8e67a15bf859e7bcbce9 | [
"MIT"
] | 15 | 2020-04-17T08:38:50.000Z | 2020-06-04T10:01:50.000Z | expRT/BTS_Material.py | EJ-Chang/OSD-Study | d7029879fa95406daf8f8e67a15bf859e7bcbce9 | [
"MIT"
] | null | null | null | # Material
buttonType = ['Arrow button', 'Radio button', 'Switch button', 'Option']
requestLUT = [
{
'name' : 'Radio',
'on' : 'OSD_ImgFolder/radio_on.png',
'off' : 'OSD_ImgFolder/radio_off.png',
'default' : 'off',
'hint_path' : 'OSD_ImgFolder/L4 off.png',
'hint': 0
},
{
'nam... | 21.361345 | 84 | 0.486231 | 291 | 2,542 | 4.092784 | 0.178694 | 0.221662 | 0.161209 | 0.120907 | 0.621327 | 0.490344 | 0.216625 | 0.216625 | 0.216625 | 0.216625 | 0 | 0.107574 | 0.283242 | 2,542 | 119 | 85 | 21.361345 | 0.546103 | 0.003147 | 0 | 0.254717 | 0 | 0 | 0.422029 | 0.135018 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f6ac1d6095f521421f885471df134a2eb8d6bf74 | 811 | py | Python | Chapter 9/code1.py | PacktPublishing/Mastering-IPython-4 | d752f7ba38e0c9399a83d57da406fe26152f272b | [
"MIT"
] | 22 | 2016-06-07T07:52:35.000Z | 2021-11-08T13:12:21.000Z | Chapter 9/code1.py | PacktPublishing/Mastering-IPython-4 | d752f7ba38e0c9399a83d57da406fe26152f272b | [
"MIT"
] | 2 | 2016-05-23T08:20:54.000Z | 2018-07-02T08:21:32.000Z | Chapter 9/code1.py | PacktPublishing/Mastering-IPython-4 | d752f7ba38e0c9399a83d57da406fe26152f272b | [
"MIT"
] | 27 | 2016-05-23T08:19:51.000Z | 2021-08-31T02:46:00.000Z | """
This is an abbreviated version of my random number generator test suite.
It uses the pytest framework. It does not do much in this form.
"""
import numpy as np
import scipy.stats
import random
class TestRandoms( ):
"""
This is the main class.
Normally it would hold all the tests, plus and setup and... | 24.575758 | 79 | 0.614057 | 120 | 811 | 4.125 | 0.608333 | 0.024242 | 0.084848 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035149 | 0.298397 | 811 | 32 | 80 | 25.34375 | 0.834798 | 0.440197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.142857 | false | 0.071429 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f6b177997afccd32ce4402f37f222e11eaf794c4 | 915 | py | Python | config.py | mscienski/code-challenge-starter-python-flask | 17f5856bdde0e7ea73dc7dab20b4b366e01a61a2 | [
"MIT"
] | null | null | null | config.py | mscienski/code-challenge-starter-python-flask | 17f5856bdde0e7ea73dc7dab20b4b366e01a61a2 | [
"MIT"
] | null | null | null | config.py | mscienski/code-challenge-starter-python-flask | 17f5856bdde0e7ea73dc7dab20b4b366e01a61a2 | [
"MIT"
] | null | null | null | #pylint: disable=no-member
import os
import logging
from flask import Flask
from flask_cors import CORS
from sqlalchemy.orm import sessionmaker
from flask_sqlalchemy import SQLAlchemy
host: str = os.getenv('DB_HOST', 'localhost')
port: int = int(os.getenv('DB_PORT', '5432'))
user: str = os.getenv('DB_USER', 'postgres'... | 29.516129 | 63 | 0.780328 | 128 | 915 | 5.34375 | 0.382813 | 0.081871 | 0.073099 | 0.057018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00479 | 0.087432 | 915 | 30 | 64 | 30.5 | 0.814371 | 0.027322 | 0 | 0 | 0 | 0 | 0.232846 | 0.149606 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.272727 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f6b27fc8dc15fd2e2b41b5a9f80c430678ed9908 | 389 | py | Python | shared-data/python/tests/labware/__init__.py | Opentrons/protocol_framework | ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f | [
"Apache-2.0"
] | 2 | 2015-11-10T17:49:51.000Z | 2016-01-15T04:43:37.000Z | shared-data/python/tests/labware/__init__.py | Opentrons/labware | e21d8db51eac5818477264a45ef12c0a2d15fb72 | [
"Apache-2.0"
] | null | null | null | shared-data/python/tests/labware/__init__.py | Opentrons/labware | e21d8db51eac5818477264a45ef12c0a2d15fb72 | [
"Apache-2.0"
] | null | null | null | from typing import List, Tuple
from pathlib import Path
def get_ot_defs() -> List[Tuple[str, int]]:
def_files = (
Path(__file__).parent / ".." / ".." / ".." / "labware" / "definitions" / "2"
).glob("**/*.json")
# example filename
# shared-data/labware/definitions/2/opentrons_96_tiprack_300ul... | 27.785714 | 84 | 0.627249 | 52 | 389 | 4.480769 | 0.692308 | 0.077253 | 0.16309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025478 | 0.192802 | 389 | 13 | 85 | 29.923077 | 0.716561 | 0.215938 | 0 | 0 | 0 | 0 | 0.112583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f6b888452d4e63186e8b7dc8abfa403e51a0d83f | 895 | py | Python | apps/civic_pulse/management/commands/create_scraper_user.py | JimHafner/GovLens | ea44084255d5409fa25ab11b24562f4d14d51bd1 | [
"MIT"
] | 17 | 2019-08-21T07:58:05.000Z | 2021-09-03T20:00:56.000Z | apps/civic_pulse/management/commands/create_scraper_user.py | JimHafner/GovLens | ea44084255d5409fa25ab11b24562f4d14d51bd1 | [
"MIT"
] | 51 | 2019-08-20T23:00:10.000Z | 2022-03-11T23:45:35.000Z | apps/civic_pulse/management/commands/create_scraper_user.py | JimHafner/GovLens | ea44084255d5409fa25ab11b24562f4d14d51bd1 | [
"MIT"
] | 44 | 2019-08-30T01:45:53.000Z | 2021-09-30T23:27:02.000Z | """Idempotent management command to create the scraper user with a DRF token
"""
from django.core.management.base import BaseCommand
from django.contrib.auth.models import User
from rest_framework.authtoken.models import Token
SCRAPER_USERNAME = "scraper"
class Command(BaseCommand):
help = "Get or create a scrap... | 33.148148 | 83 | 0.707263 | 120 | 895 | 5.183333 | 0.425 | 0.120579 | 0.053055 | 0.07717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202235 | 895 | 26 | 84 | 34.423077 | 0.871148 | 0.081564 | 0 | 0 | 0 | 0 | 0.257669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.058824 | 0.176471 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f6be3f33c5cbe03b07efac65c5537f50b908734b | 573 | py | Python | grouper/ctl/base.py | aneeq009/merou | 7a87b43aaf64244932fa460842132a2d9329e704 | [
"Apache-2.0"
] | 58 | 2017-05-26T06:46:24.000Z | 2022-03-25T20:55:51.000Z | grouper/ctl/base.py | aneeq009/merou | 7a87b43aaf64244932fa460842132a2d9329e704 | [
"Apache-2.0"
] | 74 | 2017-06-16T17:48:37.000Z | 2022-03-28T23:09:54.000Z | grouper/ctl/base.py | aneeq009/merou | 7a87b43aaf64244932fa460842132a2d9329e704 | [
"Apache-2.0"
] | 43 | 2017-05-20T22:11:51.000Z | 2022-03-25T00:24:56.000Z | from abc import ABCMeta, abstractmethod
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from argparse import ArgumentParser, Namespace
class CtlCommand(metaclass=ABCMeta):
"""Implements a subcommand of grouper-ctl."""
@staticmethod
@abstractmethod
def add_arguments(parser):
# type: (A... | 24.913043 | 72 | 0.666667 | 63 | 573 | 6.015873 | 0.619048 | 0.063325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244328 | 573 | 22 | 73 | 26.045455 | 0.875289 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f6c144a6777f88e0431ff780adf19960dca5e7ab | 6,798 | py | Python | noysim/geo.py | bertdecoensel/noysim | 0f45958093e3db453db8be6edc54f4cb1e119be0 | [
"MIT"
] | 1 | 2016-06-12T08:27:58.000Z | 2016-06-12T08:27:58.000Z | noysim/geo.py | bertdecoensel/noysim | 0f45958093e3db453db8be6edc54f4cb1e119be0 | [
"MIT"
] | null | null | null | noysim/geo.py | bertdecoensel/noysim | 0f45958093e3db453db8be6edc54f4cb1e119be0 | [
"MIT"
] | 1 | 2019-01-16T13:16:56.000Z | 2019-01-16T13:16:56.000Z | # Noysim -- Noise simulation tools for Aimsun.
# Copyright (c) 2010-2011 by Bert De Coensel, Ghent University & Griffith University.
#
# Basic geometry functions and classes
import numpy
import pylab
EPSILON = 10e-12 # smallest difference for points/directions
#-----------------------------------------... | 32.84058 | 115 | 0.529126 | 861 | 6,798 | 4.0964 | 0.212544 | 0.018429 | 0.005954 | 0.019847 | 0.271052 | 0.20499 | 0.142614 | 0.081089 | 0.058407 | 0.013609 | 0 | 0.021518 | 0.220653 | 6,798 | 206 | 116 | 33 | 0.644205 | 0.374816 | 0 | 0.236842 | 0 | 0 | 0.023834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236842 | false | 0.008772 | 0.017544 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f6c25e843d1f45408a584bccb97be735f0255735 | 17,651 | py | Python | pyrometheus/codegen/python.py | pyrometheus/pyrometheus | 9cfb6fb404173c132d1a92439cce0e4ed10d1406 | [
"MIT"
] | 7 | 2021-12-29T18:17:49.000Z | 2022-01-10T09:53:09.000Z | pyrometheus/codegen/python.py | pyrometheus/pyrometheus | 9cfb6fb404173c132d1a92439cce0e4ed10d1406 | [
"MIT"
] | 3 | 2022-02-06T01:22:09.000Z | 2022-03-16T15:20:16.000Z | pyrometheus/codegen/python.py | pyrometheus/pyrometheus | 9cfb6fb404173c132d1a92439cce0e4ed10d1406 | [
"MIT"
] | null | null | null | """
Python code generation
----------------------
.. autofunction:: gen_thermochem_code
.. autofunction:: get_thermochem_class
"""
__copyright__ = """
Copyright (C) 2020 Esteban Cisneros
Copyright (C) 2020 Andreas Kloeckner
"""
__license__ = """
Permission is hereby granted, free of charge, to any person obtaining... | 35.372745 | 89 | 0.622798 | 2,176 | 17,651 | 4.798713 | 0.19761 | 0.028634 | 0.016185 | 0.019536 | 0.344091 | 0.289408 | 0.254549 | 0.216529 | 0.179659 | 0.147673 | 0 | 0.006981 | 0.26956 | 17,651 | 498 | 90 | 35.443775 | 0.802916 | 0.035805 | 0 | 0.234667 | 0 | 0 | 0.689523 | 0.217204 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026667 | false | 0 | 0.026667 | 0.013333 | 0.154667 | 0.002667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f6c4ba56f91f92449ed57ea8aedac277928e66b9 | 3,025 | py | Python | python/dash_tools/staticdownloader.py | jainsat/media-tools | 1f457d3a84dc3e1c8a5461774ebd45bcbb2eefb4 | [
"BSD-3-Clause"
] | 1 | 2021-04-26T06:34:08.000Z | 2021-04-26T06:34:08.000Z | python/dash_tools/staticdownloader.py | jainsat/media-tools | 1f457d3a84dc3e1c8a5461774ebd45bcbb2eefb4 | [
"BSD-3-Clause"
] | null | null | null | python/dash_tools/staticdownloader.py | jainsat/media-tools | 1f457d3a84dc3e1c8a5461774ebd45bcbb2eefb4 | [
"BSD-3-Clause"
] | 1 | 2020-05-18T22:08:07.000Z | 2020-05-18T22:08:07.000Z | #!/usr/bin/env python
import os
from common import fetch_file
import staticmpdparser
import client
import json
import pdb
def download(options, mpd_url=None, mpd_str=None, base_url=None, base_dst=""):
"Download MPD if url specified and then start downloading segments."
if mpd_url:
# First download the ... | 43.84058 | 180 | 0.669421 | 404 | 3,025 | 4.829208 | 0.319307 | 0.039467 | 0.069195 | 0.049206 | 0.253716 | 0.229113 | 0.182983 | 0.137878 | 0.137878 | 0.116863 | 0 | 0.011929 | 0.196364 | 3,025 | 68 | 181 | 44.485294 | 0.790621 | 0.037025 | 0 | 0 | 0 | 0 | 0.265292 | 0.028179 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.116667 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f6c60cbb47c6eb49ed0c025ad7108cd872063833 | 303 | py | Python | Python/Delta/Delta.py | jankupczyk/Proste-Programy-PY | 96d932a5869e71861de89422caf1329f9edcd5f3 | [
"MIT"
] | 1 | 2021-06-28T15:53:51.000Z | 2021-06-28T15:53:51.000Z | Python/Delta/Delta.py | jankupczyk/Proste-Programy-PY | 96d932a5869e71861de89422caf1329f9edcd5f3 | [
"MIT"
] | null | null | null | Python/Delta/Delta.py | jankupczyk/Proste-Programy-PY | 96d932a5869e71861de89422caf1329f9edcd5f3 | [
"MIT"
] | null | null | null | # Oblicza delte
a = int(input("Podaj [a]:"))
b = int(input("Podaj [b]:"))
c = int(input("Podaj [c]:"))
d = b**2-4*a*c
if d > 0:
print("2 rozwiązania")
elif d == 0:
print("1 rozwiązanie")
else:
print("0 rozwiązań")
for i in range():
if i != 0:
print(i, end=" ")
| 17.823529 | 29 | 0.49505 | 49 | 303 | 3.061224 | 0.510204 | 0.16 | 0.26 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036866 | 0.283828 | 303 | 16 | 30 | 18.9375 | 0.654378 | 0.042904 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.307692 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f6c87781dc296b3f3f472139665bb2dcb047df30 | 2,005 | py | Python | common/xrd-ui-tests-python/tests/xroad_global_groups_tests/XroadMemberRemoveFromGlobalGroup.py | nordic-institute/X-Road-tests | e030661a0ad8ceab74dd8122b751e88025a3474a | [
"MIT"
] | 1 | 2019-02-09T00:16:54.000Z | 2019-02-09T00:16:54.000Z | common/xrd-ui-tests-python/tests/xroad_global_groups_tests/XroadMemberRemoveFromGlobalGroup.py | nordic-institute/X-Road-tests | e030661a0ad8ceab74dd8122b751e88025a3474a | [
"MIT"
] | 1 | 2018-06-06T08:33:32.000Z | 2018-06-06T08:33:32.000Z | common/xrd-ui-tests-python/tests/xroad_global_groups_tests/XroadMemberRemoveFromGlobalGroup.py | nordic-institute/X-Road-tests | e030661a0ad8ceab74dd8122b751e88025a3474a | [
"MIT"
] | 3 | 2018-07-09T08:51:00.000Z | 2020-07-23T18:40:24.000Z | import unittest
from helpers import auditchecker, xroad
from main.maincontroller import MainController
from tests.xroad_global_groups_tests import global_groups_tests
class XroadMemberRemoveFromGlobalGroup(unittest.TestCase):
"""
SERVICE_38 Remove an X-Road Member from a Global Group
RIA URL: https://jir... | 43.586957 | 128 | 0.597007 | 233 | 2,005 | 4.798283 | 0.321888 | 0.080501 | 0.104651 | 0.093918 | 0.328265 | 0.194991 | 0 | 0 | 0 | 0 | 0 | 0.008112 | 0.323691 | 2,005 | 45 | 129 | 44.555556 | 0.816372 | 0.105736 | 0 | 0 | 0 | 0 | 0.077797 | 0.020443 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.129032 | 0.129032 | 0 | 0.225806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f6c9dadb66ba06561d5aa2ae635083ad448267fc | 494 | py | Python | sentimental_analysis.py | akrakman/hackillinois | a4cfb107aefb95ff987ba159e3c7867a9d10ce9a | [
"MIT"
] | null | null | null | sentimental_analysis.py | akrakman/hackillinois | a4cfb107aefb95ff987ba159e3c7867a9d10ce9a | [
"MIT"
] | null | null | null | sentimental_analysis.py | akrakman/hackillinois | a4cfb107aefb95ff987ba159e3c7867a9d10ce9a | [
"MIT"
] | null | null | null | from numpy import average, number
from textblob import TextBlob
class ScaleUtilities:
average = 0
number = 0
def __init__(self, string, number):
self.string = string
def get_subjectivity_of(string):
polarity = TextBlob(string).sentiment.polarity * 5
number += 1
average... | 22.454545 | 58 | 0.605263 | 54 | 494 | 5.407407 | 0.5 | 0.089041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017751 | 0.315789 | 494 | 21 | 59 | 23.52381 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.018219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0 | 0.588235 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f6cb67b13096c25131faa2e988c43e882cde21bd | 166,942 | py | Python | SeagateSenseCodes.py | ssmore98/siod | 5e1bd2691710ebaf49223d52894c2b08aa958112 | [
"Unlicense"
] | null | null | null | SeagateSenseCodes.py | ssmore98/siod | 5e1bd2691710ebaf49223d52894c2b08aa958112 | [
"Unlicense"
] | null | null | null | SeagateSenseCodes.py | ssmore98/siod | 5e1bd2691710ebaf49223d52894c2b08aa958112 | [
"Unlicense"
] | null | null | null | seagate_sense_codes = {0: {0: {0: {0: 'No error.', 'L1': 'No Sense', 'L2': 'No Sense'},
31: {0: 'No Specific FRU code.',
'L1': 'No Sense',
'L2': 'Logical unit transitioning to another power condition'}},
... | 82.481225 | 297 | 0.40913 | 14,479 | 166,942 | 4.715519 | 0.111817 | 0.017327 | 0.031797 | 0.041581 | 0.427193 | 0.351588 | 0.295111 | 0.239396 | 0.189129 | 0.148149 | 0 | 0.064969 | 0.513651 | 166,942 | 2,023 | 298 | 82.521997 | 0.775951 | 0 | 0 | 0.227992 | 0 | 0.014837 | 0.459408 | 0.000928 | 0 | 0 | 0.000024 | 0 | 0.00544 | 1 | 0 | false | 0.003956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f6cfba446c1b7d27bb2983b109b1c4404b84a1da | 2,084 | py | Python | project_name/project_name/settings/dev.py | aexeagmbh/django-project-template | 123c4bd8b79320b460677d8df42895600ad99393 | [
"MIT"
] | null | null | null | project_name/project_name/settings/dev.py | aexeagmbh/django-project-template | 123c4bd8b79320b460677d8df42895600ad99393 | [
"MIT"
] | null | null | null | project_name/project_name/settings/dev.py | aexeagmbh/django-project-template | 123c4bd8b79320b460677d8df42895600ad99393 | [
"MIT"
] | null | null | null | # coding=utf-8
"""Development settings and globals."""
from .base import *
# ######### DEBUG CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = True
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-debug
TEMPLATE_DEBUG = DEBUG
# ######### END DEBUG CONFIGURATION... | 26.717949 | 93 | 0.712092 | 224 | 2,084 | 6.4375 | 0.5 | 0.124827 | 0.124827 | 0.052011 | 0.10957 | 0.10957 | 0.10957 | 0.10957 | 0.10957 | 0.079057 | 0 | 0.006098 | 0.134357 | 2,084 | 77 | 94 | 27.064935 | 0.793237 | 0.277831 | 0 | 0 | 0 | 0 | 0.503876 | 0.410148 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.068182 | 0.022727 | 0.113636 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f6d0cac352b221bf2f7870f056af97d65cf0f1e3 | 354 | py | Python | examples/unlock_antidotes.py | astitva22/Pixelate-22-Sample-Arena | 0bee7aea075d760e60456d38225bb3d6d1b68fed | [
"MIT"
] | 1 | 2022-03-01T20:39:25.000Z | 2022-03-01T20:39:25.000Z | examples/unlock_antidotes.py | astitva22/Pixelate-22-Sample-Arena | 0bee7aea075d760e60456d38225bb3d6d1b68fed | [
"MIT"
] | null | null | null | examples/unlock_antidotes.py | astitva22/Pixelate-22-Sample-Arena | 0bee7aea075d760e60456d38225bb3d6d1b68fed | [
"MIT"
] | 7 | 2022-03-01T20:37:14.000Z | 2022-03-09T06:27:38.000Z | import gym
import pixelate_arena
import time
import pybullet as p
import os
if __name__ == "__main__":
parent_path = os.path.dirname(os.getcwd())
os.chdir(parent_path)
env = gym.make("pixelate_arena-v0")
x=0
while True:
p.stepSimulation()
if x==10000:
env.unlock_antidote... | 20.823529 | 46 | 0.629944 | 50 | 354 | 4.2 | 0.6 | 0.12381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034351 | 0.259887 | 354 | 17 | 47 | 20.823529 | 0.767176 | 0 | 0 | 0 | 0 | 0 | 0.070423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f6e28a13700fedee22ada39a3fa8792554af7720 | 11,213 | py | Python | mm2s5/mm2s5.py | scottkirkwood/mm2s5 | 05160ead97b28a82e3d6f529672c8cd2067ff27c | [
"Apache-2.0"
] | null | null | null | mm2s5/mm2s5.py | scottkirkwood/mm2s5 | 05160ead97b28a82e3d6f529672c8cd2067ff27c | [
"Apache-2.0"
] | null | null | null | mm2s5/mm2s5.py | scottkirkwood/mm2s5 | 05160ead97b28a82e3d6f529672c8cd2067ff27c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: latin1 -*-
#
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | 33.471642 | 116 | 0.605725 | 1,559 | 11,213 | 4.263631 | 0.244387 | 0.052956 | 0.018956 | 0.014292 | 0.14232 | 0.09508 | 0.068301 | 0.039717 | 0.02708 | 0.02708 | 0 | 0.011933 | 0.237671 | 11,213 | 334 | 117 | 33.571856 | 0.765676 | 0.09373 | 0 | 0.168889 | 0 | 0.035556 | 0.345503 | 0.061847 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017778 | null | null | 0.035556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f6e364a4d8935e2990712e28b098a07099b88272 | 395 | py | Python | public/ViPER/modules/head.py | severnake/ViPER | e788f73bfe894f7fd03081782c87778de38a8df2 | [
"MIT"
] | 23 | 2016-11-26T06:55:44.000Z | 2021-07-27T19:28:05.000Z | public/ViPER/modules/head.py | severnake/ViPER | e788f73bfe894f7fd03081782c87778de38a8df2 | [
"MIT"
] | 2 | 2021-03-11T04:35:03.000Z | 2021-05-11T22:03:33.000Z | public/ViPER/modules/head.py | severnake/ViPER | e788f73bfe894f7fd03081782c87778de38a8df2 | [
"MIT"
] | 7 | 2017-08-12T10:44:41.000Z | 2022-03-22T05:49:49.000Z | import requests
from termcolor.termcolor import colored, cprint
class header:
"""
Class for extracting headers
"""
def __init__(self):
pass
def get_headers(self, target):
req = requests.head(target)
req = req.headers
for i in... | 23.235294 | 60 | 0.531646 | 45 | 395 | 4.555556 | 0.644444 | 0.087805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.362025 | 395 | 16 | 61 | 24.6875 | 0.789683 | 0.070886 | 0 | 0 | 0 | 0 | 0.011799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0.2 | 0 | 0.5 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f6f037d5301de39668019ccf1a2625274e621032 | 14,051 | py | Python | Model/lookalike-model/tests/pipeline/test_main_clean.py | rangaswamymr/blue-marlin | 2ab39a6af01e14f40386f640fe087aeb284b5524 | [
"Apache-2.0"
] | null | null | null | Model/lookalike-model/tests/pipeline/test_main_clean.py | rangaswamymr/blue-marlin | 2ab39a6af01e14f40386f640fe087aeb284b5524 | [
"Apache-2.0"
] | null | null | null | Model/lookalike-model/tests/pipeline/test_main_clean.py | rangaswamymr/blue-marlin | 2ab39a6af01e14f40386f640fe087aeb284b5524 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | 44.46519 | 142 | 0.647925 | 1,756 | 14,051 | 4.937358 | 0.175968 | 0.02699 | 0.026298 | 0.023529 | 0.526528 | 0.489043 | 0.434833 | 0.410265 | 0.370473 | 0.359285 | 0 | 0.028375 | 0.235001 | 14,051 | 315 | 143 | 44.606349 | 0.778212 | 0.184542 | 0 | 0.4 | 0 | 0 | 0.159035 | 0.007807 | 0 | 0 | 0 | 0 | 0.090476 | 0 | null | null | 0 | 0.038095 | null | null | 0.138095 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f6f688d8a5f12a882c462a7d43fb10da64d6fa89 | 5,009 | py | Python | PiCam/picam.py | alexwtz/pciam | 7e90dd22a8e97e41fb480cb85cdf95cefd2d974e | [
"MIT"
] | null | null | null | PiCam/picam.py | alexwtz/pciam | 7e90dd22a8e97e41fb480cb85cdf95cefd2d974e | [
"MIT"
] | null | null | null | PiCam/picam.py | alexwtz/pciam | 7e90dd22a8e97e41fb480cb85cdf95cefd2d974e | [
"MIT"
] | null | null | null | import serial
import time
import atexit
from functools import wraps
from flask import Flask, render_template, request, Response
app = Flask(__name__)
def check_auth(username, password):
"""This function is called to check if a username /
password combination is valid.
"""
return username == 'admin' and... | 28.787356 | 84 | 0.609503 | 669 | 5,009 | 4.533632 | 0.28849 | 0.039565 | 0.025387 | 0.025058 | 0.294428 | 0.267722 | 0.234751 | 0.234751 | 0.197824 | 0.197824 | 0 | 0.041267 | 0.25015 | 5,009 | 173 | 85 | 28.953757 | 0.766241 | 0.165502 | 0 | 0.345865 | 0 | 0 | 0.130478 | 0.005229 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022556 | 0.037594 | null | null | 0.037594 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f6fc765a80d06b184d48204318ac290f02c0daa1 | 756 | py | Python | ozone-framework-python-server/people/urls.py | aamduka/ozone | 3fdbf232f5ea70661204a632e45310ca9d374973 | [
"Apache-2.0"
] | 6 | 2020-02-21T22:06:31.000Z | 2020-12-08T10:48:07.000Z | ozone-framework-python-server/people/urls.py | aamduka/ozone | 3fdbf232f5ea70661204a632e45310ca9d374973 | [
"Apache-2.0"
] | 12 | 2019-12-26T17:38:40.000Z | 2022-02-10T14:15:55.000Z | ozone-framework-python-server/people/urls.py | aamduka/ozone | 3fdbf232f5ea70661204a632e45310ca9d374973 | [
"Apache-2.0"
] | 4 | 2019-08-05T13:22:29.000Z | 2021-07-21T16:04:03.000Z | from django.urls import path
from rest_framework import routers
from .administration.views import AdministrationOfUserAPIView
from .views import PersonDetailView, PersonDashboardsWidgetsView, PersonWidgetDefinitionViewSet, PersonStackViewset
router = routers.SimpleRouter()
router.register(r'admin/users', Administrati... | 42 | 115 | 0.806878 | 78 | 756 | 7.730769 | 0.410256 | 0.082919 | 0.049751 | 0.066335 | 0.082919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078042 | 756 | 17 | 116 | 44.470588 | 0.865136 | 0 | 0 | 0 | 0 | 0 | 0.201058 | 0.068783 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f6fee774c750964c054daa25511fd9a0fd69478c | 903 | py | Python | api/views/logs/resources.py | bdeprez/machinaris | 233d6e60ae6526b999fb660d9b87a895341de96f | [
"Apache-2.0"
] | null | null | null | api/views/logs/resources.py | bdeprez/machinaris | 233d6e60ae6526b999fb660d9b87a895341de96f | [
"Apache-2.0"
] | null | null | null | api/views/logs/resources.py | bdeprez/machinaris | 233d6e60ae6526b999fb660d9b87a895341de96f | [
"Apache-2.0"
] | null | null | null | import json
import re
import traceback
from flask import request, make_response, abort
from flask.views import MethodView
from api import app
from api.extensions.api import Blueprint
from api.commands import log_parser
blp = Blueprint(
'Log',
__name__,
url_prefix='/logs',
description="Operations on ... | 23.763158 | 127 | 0.687708 | 113 | 903 | 5.371681 | 0.469027 | 0.059308 | 0.052718 | 0.065898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008174 | 0.187154 | 903 | 37 | 128 | 24.405405 | 0.818801 | 0 | 0 | 0.074074 | 0 | 0 | 0.14175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.296296 | 0 | 0.518519 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f6ff14536113c487785785cf8713fabd87f3391a | 34,386 | py | Python | W_conv.py | jeongjuns/Control_yolact | dad800dcc1aa0b02445e302256b4508b7688880c | [
"MIT"
] | null | null | null | W_conv.py | jeongjuns/Control_yolact | dad800dcc1aa0b02445e302256b4508b7688880c | [
"MIT"
] | null | null | null | W_conv.py | jeongjuns/Control_yolact | dad800dcc1aa0b02445e302256b4508b7688880c | [
"MIT"
] | null | null | null |
import math
import warnings
import torch
from torch import Tensor
from torch.nn.parameter import Parameter
import torch.nn.functional as F
import torch.nn.init as init
from torch.nn.modules.module import Module
from torch.nn.modules.utils import _single, _pair, _triple, _reverse_repeat_tuple
from torch.autograd impor... | 34.351648 | 120 | 0.529663 | 4,151 | 34,386 | 4.151289 | 0.051795 | 0.03714 | 0.015669 | 0.03656 | 0.768164 | 0.739961 | 0.688893 | 0.65123 | 0.599756 | 0.57811 | 0 | 0.048043 | 0.343221 | 34,386 | 1,001 | 121 | 34.351648 | 0.714975 | 0.026115 | 0 | 0.563732 | 0 | 0 | 0.02105 | 0.002525 | 0 | 0 | 0 | 0.000999 | 0 | 1 | 0.051248 | false | 0 | 0.015769 | 0 | 0.173456 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 | 1 |
1001525132d1016af0a89108b37f0bd4e52435e6 | 2,246 | py | Python | instapyper.py | rriehle/instapyper | 0a2e01793a971ccaa47dac1cc32b6d6209ad7d77 | [
"MIT"
] | 1 | 2017-09-27T19:17:18.000Z | 2017-09-27T19:17:18.000Z | instapyper.py | rriehle/instapyper | 0a2e01793a971ccaa47dac1cc32b6d6209ad7d77 | [
"MIT"
] | null | null | null | instapyper.py | rriehle/instapyper | 0a2e01793a971ccaa47dac1cc32b6d6209ad7d77 | [
"MIT"
] | null | null | null | # encoding: utf-8
import requests
from requests_oauthlib import OAuth1
class Instapyper:
# Not sure this dict is necessary or even useful
status_codes = {
200: "Ok",
201: "URL successfully added",
400: "Bad Request",
401: "Unauthorized",
403: "Invalid username or pass... | 25.522727 | 93 | 0.547195 | 234 | 2,246 | 5.162393 | 0.431624 | 0.033113 | 0.074503 | 0.086921 | 0.17798 | 0.138245 | 0.11755 | 0.069536 | 0.069536 | 0 | 0 | 0.020861 | 0.338379 | 2,246 | 87 | 94 | 25.816092 | 0.792059 | 0.085931 | 0 | 0.129032 | 0 | 0 | 0.262457 | 0.011347 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.080645 | 0.032258 | 0 | 0.177419 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1003316b1ac47d4a3dfc26a90b05ca7e035820e5 | 6,333 | py | Python | gitea_api/models/internal_tracker.py | awalker125/gitea-api | 2dea0493d4b6a92d6e63a7284afb2c80cbf35cf7 | [
"MIT"
] | null | null | null | gitea_api/models/internal_tracker.py | awalker125/gitea-api | 2dea0493d4b6a92d6e63a7284afb2c80cbf35cf7 | [
"MIT"
] | null | null | null | gitea_api/models/internal_tracker.py | awalker125/gitea-api | 2dea0493d4b6a92d6e63a7284afb2c80cbf35cf7 | [
"MIT"
] | 1 | 2022-01-27T14:12:40.000Z | 2022-01-27T14:12:40.000Z | # coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.15.3
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from gitea_api.configuration import Configuration
clas... | 34.796703 | 160 | 0.657666 | 755 | 6,333 | 5.210596 | 0.166887 | 0.089476 | 0.106762 | 0.116929 | 0.629385 | 0.584138 | 0.548043 | 0.412049 | 0.344433 | 0.240976 | 0 | 0.013997 | 0.266698 | 6,333 | 181 | 161 | 34.98895 | 0.833118 | 0.32528 | 0 | 0.085366 | 1 | 0 | 0.074494 | 0.050202 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0 | 0.04878 | 0 | 0.353659 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1012347db29b0e7431b7d278a87031a83ffc0e9a | 419 | py | Python | mentoring_app/migrations/0007_mentoringprogram_is_published.py | ShouravAhmed/Luminar | f80c621028f81ef7f657592560e4c95fd8e91699 | [
"MIT"
] | null | null | null | mentoring_app/migrations/0007_mentoringprogram_is_published.py | ShouravAhmed/Luminar | f80c621028f81ef7f657592560e4c95fd8e91699 | [
"MIT"
] | null | null | null | mentoring_app/migrations/0007_mentoringprogram_is_published.py | ShouravAhmed/Luminar | f80c621028f81ef7f657592560e4c95fd8e91699 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-12-28 05:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mentoring_app', '0006_mentoringprogram_is_archived'),
]
operations = [
migrations.AddField(
model_name='mentoringprogram',
... | 22.052632 | 63 | 0.630072 | 43 | 419 | 6 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061688 | 0.264916 | 419 | 18 | 64 | 23.277778 | 0.775974 | 0.107399 | 0 | 0 | 1 | 0 | 0.198925 | 0.08871 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
101537d3feef1a4dbbd2ef2f6aa60048ff8c781a | 1,265 | py | Python | RecordSpider/beian.py | wjcIvan/oschinaLearning | 4f172b068ab00063b4b0e6217d031e0dcb48f492 | [
"MIT"
] | 1 | 2020-07-29T07:00:32.000Z | 2020-07-29T07:00:32.000Z | RecordSpider/beian.py | wjcIvan/oschinaLearning | 4f172b068ab00063b4b0e6217d031e0dcb48f492 | [
"MIT"
] | 4 | 2020-07-30T08:44:04.000Z | 2020-07-30T08:45:14.000Z | RecordSpider/beian.py | wjcIvan/oschinaLearning | 4f172b068ab00063b4b0e6217d031e0dcb48f492 | [
"MIT"
] | null | null | null | # coding:utf-8
import sys
from PyQt5 import QtWidgets
import window
import recordSpider
class MainWindow(object):
def __init__(self):
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
self.ui = window.Ui_MainWindow()
self.ui.setupUi(MainWindow)
M... | 30.119048 | 62 | 0.618972 | 144 | 1,265 | 5.256944 | 0.375 | 0.126816 | 0.221929 | 0.110964 | 0.290621 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012698 | 0.252964 | 1,265 | 41 | 63 | 30.853659 | 0.78836 | 0.01581 | 0 | 0 | 0 | 0 | 0.045894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.21875 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
101a10a127a273feed1bef4adf70f1e5a220a9a0 | 2,186 | py | Python | relations/views.py | Mansouroopi/DRF | 057c6d77c012386734deee9c9076264c005d0221 | [
"MIT"
] | null | null | null | relations/views.py | Mansouroopi/DRF | 057c6d77c012386734deee9c9076264c005d0221 | [
"MIT"
] | null | null | null | relations/views.py | Mansouroopi/DRF | 057c6d77c012386734deee9c9076264c005d0221 | [
"MIT"
] | null | null | null |
from snippets.permissions import IsOwnerOrReadOnly
from rest_framework import permissions
from rest_framework import viewsets
from .models import Album, Track, Student, Module
from .serializers import AlbumSerializer, StudentSerializer, ModuleSerializer, TrackSerializer
from rest_framework.response import Response
... | 31.681159 | 94 | 0.663769 | 206 | 2,186 | 6.966019 | 0.339806 | 0.031359 | 0.078049 | 0.089199 | 0.335889 | 0.309408 | 0.309408 | 0.309408 | 0.309408 | 0.309408 | 0 | 0 | 0.245197 | 2,186 | 68 | 95 | 32.147059 | 0.869697 | 0.282251 | 0 | 0 | 0 | 0 | 0.016017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.206897 | 0 | 0.724138 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
63dc294f098bbd41379d16d4e24791b73958a2ea | 1,345 | py | Python | python/examples/test_tds.py | dmillard/autogen | c14790f01b7e6ff4c140331317ad981c33e9b40f | [
"MIT"
] | 33 | 2021-10-29T21:33:39.000Z | 2022-03-31T11:02:43.000Z | python/examples/test_tds.py | dmillard/autogen | c14790f01b7e6ff4c140331317ad981c33e9b40f | [
"MIT"
] | 8 | 2021-08-13T07:01:05.000Z | 2021-11-16T19:07:33.000Z | python/examples/test_tds.py | dmillard/autogen | c14790f01b7e6ff4c140331317ad981c33e9b40f | [
"MIT"
] | 4 | 2021-10-31T10:59:44.000Z | 2021-11-06T07:21:45.000Z | import pytinydiffsim_ad as dp
import autogen as ag
import numpy as np
import math
TIME_STEPS = 20
def func(input_tau):
world = dp.TinyWorld()
world.friction = dp.ADScalar(1.0)
urdf_parser = dp.TinyUrdfParser()
urdf_data = urdf_parser.load_urdf("/root/tiny-differentiable-simulator/data/cartpole.urdf")
print... | 28.617021 | 147 | 0.692193 | 213 | 1,345 | 4.201878 | 0.422535 | 0.050279 | 0.024581 | 0.069274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022948 | 0.157621 | 1,345 | 47 | 148 | 28.617021 | 0.76699 | 0.154647 | 0 | 0 | 1 | 0 | 0.072374 | 0.047661 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.117647 | 0 | 0.176471 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
63e423f755852b992268e18edda0f5773e6503d3 | 760 | py | Python | heap/binary_heap_test.py | dyc-it/algorithm | 68b866c9bf5ee2b479be124d70d2362144d568bb | [
"Apache-2.0"
] | null | null | null | heap/binary_heap_test.py | dyc-it/algorithm | 68b866c9bf5ee2b479be124d70d2362144d568bb | [
"Apache-2.0"
] | null | null | null | heap/binary_heap_test.py | dyc-it/algorithm | 68b866c9bf5ee2b479be124d70d2362144d568bb | [
"Apache-2.0"
] | null | null | null | import unittest
import random
from binary_heap import BinaryHeap
class TestBinaryHeap(unittest.TestCase):
def setUp(self):
size = 8
self.random_list = random.sample(range(0, size), size)
print "random list generated: " + str(self.random_list)
self.heap = BinaryHeap(size)
... | 24.516129 | 63 | 0.607895 | 96 | 760 | 4.65625 | 0.447917 | 0.111857 | 0.12528 | 0.058166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007547 | 0.302632 | 760 | 30 | 64 | 25.333333 | 0.835849 | 0 | 0 | 0 | 0 | 0 | 0.030343 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0 | null | null | 0.045455 | 0.136364 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
63e72dba0fb4b89d7e9e4db6bf070ba06e155aae | 1,473 | py | Python | Fred/7_Gestures/Reactions.py | ProjectHewitt/Fred_Inmoov | 179be5ba18c89fe6b2c64efc0b88c9db8e40b75b | [
"Apache-2.0"
] | 6 | 2021-02-25T02:14:56.000Z | 2021-06-13T16:13:00.000Z | Fred/7_Gestures/Reactions.py | ProjectHewitt/Fred_Inmoov | 179be5ba18c89fe6b2c64efc0b88c9db8e40b75b | [
"Apache-2.0"
] | null | null | null | Fred/7_Gestures/Reactions.py | ProjectHewitt/Fred_Inmoov | 179be5ba18c89fe6b2c64efc0b88c9db8e40b75b | [
"Apache-2.0"
] | 4 | 2021-02-07T00:14:32.000Z | 2021-10-02T03:32:44.000Z | ##############################################################
# Program Code for Fred Inmoov #
# Of the Cyber_One YouTube Channel #
# https://www.youtube.com/cyber_one #
# #
# Thi... | 37.769231 | 68 | 0.376782 | 145 | 1,473 | 3.806897 | 0.531034 | 0.025362 | 0.108696 | 0.119565 | 0.206522 | 0.206522 | 0.206522 | 0.132246 | 0.132246 | 0.132246 | 0 | 0.055138 | 0.458248 | 1,473 | 38 | 69 | 38.763158 | 0.636591 | 0.544467 | 0 | 0.5 | 0 | 0 | 0.143541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
63e9684d10afbc91d9cdbd324d7a08494f2c12d6 | 5,125 | py | Python | signin/jd_job/common.py | nujabse/simpleSignin | e818f9880d97d39beddcadccb53dc23e18fe6d8e | [
"MIT"
] | 11 | 2018-03-07T04:13:05.000Z | 2019-11-28T04:43:55.000Z | signin/jd_job/common.py | nujabse/simpleSignin | e818f9880d97d39beddcadccb53dc23e18fe6d8e | [
"MIT"
] | 2 | 2018-03-04T15:08:01.000Z | 2018-05-28T07:42:47.000Z | signin/jd_job/common.py | nujabse/simpleSignin | e818f9880d97d39beddcadccb53dc23e18fe6d8e | [
"MIT"
] | 15 | 2018-01-25T10:54:06.000Z | 2019-11-05T07:09:20.000Z | #!/usr/bin/env python
# encoding: utf-8
# author: Vincent
# refer: https://github.com/vc5
import re
import time
from requests import Response
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.touch_actions import TouchActions
from ..chrome import mobile_emulation
from lib.se... | 31.441718 | 118 | 0.617756 | 612 | 5,125 | 4.990196 | 0.313725 | 0.03962 | 0.050098 | 0.055992 | 0.254748 | 0.198428 | 0.198428 | 0.112639 | 0.085134 | 0.085134 | 0 | 0.003465 | 0.267902 | 5,125 | 162 | 119 | 31.635802 | 0.810501 | 0.132488 | 0 | 0.207547 | 0 | 0 | 0.099306 | 0.005556 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09434 | false | 0.056604 | 0.066038 | 0 | 0.320755 | 0.009434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
63eb09455a488d9193ff41ee088a0eccb9993357 | 998 | py | Python | Nmapscript.py | WhiteRedTHT/port-scann | bb4a6731f3c4ae484d1978fa7527f55520cb7e99 | [
"MIT"
] | null | null | null | Nmapscript.py | WhiteRedTHT/port-scann | bb4a6731f3c4ae484d1978fa7527f55520cb7e99 | [
"MIT"
] | null | null | null | Nmapscript.py | WhiteRedTHT/port-scann | bb4a6731f3c4ae484d1978fa7527f55520cb7e99 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import vulners
print("---------------------------------------------------------------")
print(""" P4RS Script Hoş Geldiniz
Programı kullanmak için sadece IP adresini yazmanız yeterlidir.
Programı çalıştırmak için; Medusa araçları, searcsploit ve brutespray uygulamaları gerekmekted... | 26.263158 | 179 | 0.61022 | 114 | 998 | 5.289474 | 0.640351 | 0.066335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0.148297 | 998 | 37 | 180 | 26.972973 | 0.703529 | 0.021042 | 0 | 0.111111 | 0 | 0.111111 | 0.651813 | 0.13057 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.166667 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
63f6c1a6e6d4382fdea90513c54f2d68c07f76d8 | 2,491 | py | Python | iu_mongo/session.py | intelligenceunion/mongo-driver | 02bbc6839c8264d4b06b053e8cc83d42147ede17 | [
"MIT"
] | null | null | null | iu_mongo/session.py | intelligenceunion/mongo-driver | 02bbc6839c8264d4b06b053e8cc83d42147ede17 | [
"MIT"
] | null | null | null | iu_mongo/session.py | intelligenceunion/mongo-driver | 02bbc6839c8264d4b06b053e8cc83d42147ede17 | [
"MIT"
] | 1 | 2019-06-21T17:49:08.000Z | 2019-06-21T17:49:08.000Z | from pymongo.read_concern import ReadConcern
from pymongo.read_preferences import ReadPreference
from pymongo.write_concern import WriteConcern
from pymongo.errors import InvalidOperation
from iu_mongo.errors import TransactionError
__all__ = ['Session', 'TransactionContext']
DEFAULT_READ_CONCERN = ReadConcern('major... | 32.350649 | 96 | 0.734243 | 276 | 2,491 | 6.094203 | 0.184783 | 0.111177 | 0.142687 | 0.156956 | 0.440547 | 0.306778 | 0.212842 | 0.128419 | 0.128419 | 0.065398 | 0 | 0.002012 | 0.201927 | 2,491 | 76 | 97 | 32.776316 | 0.844064 | 0 | 0 | 0.293103 | 0 | 0 | 0.016459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.086207 | 0.086207 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
63f8d4f926db9084fff0778f781e3d35e9ba0d24 | 5,009 | py | Python | bin/ingredient_phrase_tagger/training/cli.py | Deekshith1994/Recipes | 5dfc98b249f6caf90571c037eb35560417b6818e | [
"Apache-2.0"
] | null | null | null | bin/ingredient_phrase_tagger/training/cli.py | Deekshith1994/Recipes | 5dfc98b249f6caf90571c037eb35560417b6818e | [
"Apache-2.0"
] | null | null | null | bin/ingredient_phrase_tagger/training/cli.py | Deekshith1994/Recipes | 5dfc98b249f6caf90571c037eb35560417b6818e | [
"Apache-2.0"
] | null | null | null | import re
import decimal
import optparse
import pandas as pd
from ingredient_phrase_tagger.training import utils
class Cli(object):
def __init__(self, argv):
self.opts = self._parse_args(argv)
self._upstream_cursor = None
def run(self):
self.generate_data(self.opts.count, self.opts.o... | 30.730061 | 102 | 0.553404 | 618 | 5,009 | 4.444984 | 0.37055 | 0.014561 | 0.030579 | 0.029123 | 0.040772 | 0.023298 | 0.023298 | 0 | 0 | 0 | 0 | 0.01277 | 0.343382 | 5,009 | 162 | 103 | 30.919753 | 0.822438 | 0.049112 | 0 | 0.117647 | 0 | 0 | 0.046682 | 0.00928 | 0 | 0 | 0 | 0.006173 | 0 | 0 | null | null | 0.023529 | 0.058824 | null | null | 0.023529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
12004752447a3c322e24283675f1768106bc32b5 | 761 | py | Python | wagtailrelated/utils.py | torchbox/wagtail-related | b0e811e5093d6d5c1554cab66f3c5097d6d474ad | [
"BSD-3-Clause"
] | 2 | 2018-09-03T15:09:30.000Z | 2020-11-29T02:23:01.000Z | wagtailrelated/utils.py | torchbox/wagtail-related | b0e811e5093d6d5c1554cab66f3c5097d6d474ad | [
"BSD-3-Clause"
] | null | null | null | wagtailrelated/utils.py | torchbox/wagtail-related | b0e811e5093d6d5c1554cab66f3c5097d6d474ad | [
"BSD-3-Clause"
] | null | null | null | from bs4 import BeautifulSoup
from wagtail.core.fields import StreamField
def extract_text(obj):
"""Extracts data, concatenates and removes html tags
from fields listed in a obj.related_source_fields list.
"""
related_source_fields = getattr(obj._meta.model, 'related_source_fields', None)
if not r... | 29.269231 | 83 | 0.703022 | 96 | 761 | 5.28125 | 0.4375 | 0.128205 | 0.187377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003344 | 0.214192 | 761 | 25 | 84 | 30.44 | 0.844482 | 0.137976 | 0 | 0 | 0 | 0 | 0.048362 | 0.032761 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
12012366643f4f22b21641dcce1d6d36c1aaaf3a | 1,233 | py | Python | codes/globo_videos_cuts/core/tests/models/programs_model_test_case.py | lariodiniz/teste_meta | 3bf043df3ee76871d68a3f8aea7c3ecd53765fec | [
"MIT"
] | null | null | null | codes/globo_videos_cuts/core/tests/models/programs_model_test_case.py | lariodiniz/teste_meta | 3bf043df3ee76871d68a3f8aea7c3ecd53765fec | [
"MIT"
] | null | null | null | codes/globo_videos_cuts/core/tests/models/programs_model_test_case.py | lariodiniz/teste_meta | 3bf043df3ee76871d68a3f8aea7c3ecd53765fec | [
"MIT"
] | null | null | null | # coding: utf-8
__author__ = "Lário dos Santos Diniz"
from django.test import TestCase
from model_mommy import mommy
from core.models import Programs
class ProgramsModelTestCase(TestCase):
"""Class Testing Model Pogramas """
def setUp(self):
"""
Initial Test Settings
"""
... | 33.324324 | 106 | 0.680454 | 161 | 1,233 | 5.086957 | 0.372671 | 0.067155 | 0.117216 | 0.151404 | 0.299145 | 0.299145 | 0.17094 | 0.17094 | 0.17094 | 0.17094 | 0 | 0.005112 | 0.206813 | 1,233 | 36 | 107 | 34.25 | 0.832311 | 0.121655 | 0 | 0 | 0 | 0 | 0.175168 | 0 | 0 | 0 | 0 | 0 | 0.388889 | 1 | 0.222222 | false | 0 | 0.166667 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1204c9abc6db283ce3d3831f239b7fd8af24dbea | 4,563 | py | Python | test_phase_equilibrium.py | khuston/interfacial_transport | dfca4288e2876de81683fb46704c14393afdf422 | [
"MIT"
] | 1 | 2020-05-07T09:25:24.000Z | 2020-05-07T09:25:24.000Z | test_phase_equilibrium.py | khuston/interfacial_transport | dfca4288e2876de81683fb46704c14393afdf422 | [
"MIT"
] | null | null | null | test_phase_equilibrium.py | khuston/interfacial_transport | dfca4288e2876de81683fb46704c14393afdf422 | [
"MIT"
] | null | null | null | import numpy as np
import logging
from interfacial_transport import compute_one_phase_equilibrium, compute_mass_balance_one_phase
from interfacial_transport import compute_two_phase_equilibrium, compute_mass_balance_two_phase
from numpy.testing import assert_almost_equal
logger = logging.getLogger(__name__)
# Check o... | 31.909091 | 201 | 0.60881 | 782 | 4,563 | 3.309463 | 0.112532 | 0.068006 | 0.097372 | 0.056801 | 0.803323 | 0.698609 | 0.688563 | 0.618238 | 0.565688 | 0.53864 | 0 | 0.073051 | 0.238001 | 4,563 | 142 | 202 | 32.133803 | 0.671268 | 0.038571 | 0 | 0.563636 | 0 | 0 | 0.004588 | 0 | 0 | 0 | 0 | 0 | 0.172727 | 1 | 0.063636 | false | 0.009091 | 0.045455 | 0 | 0.109091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1205020ea522f7b1fd7bb580cbb7689312826db5 | 3,914 | py | Python | testbed1/scratchnet_single_switch_test.py | Benny93/SDNMininetScripts | 16844ac1cecfdf27e25ca0f758029c81030b9ba1 | [
"MIT"
] | null | null | null | testbed1/scratchnet_single_switch_test.py | Benny93/SDNMininetScripts | 16844ac1cecfdf27e25ca0f758029c81030b9ba1 | [
"MIT"
] | null | null | null | testbed1/scratchnet_single_switch_test.py | Benny93/SDNMininetScripts | 16844ac1cecfdf27e25ca0f758029c81030b9ba1 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
Build a simple network from scratch, using mininet primitives.
This is more complicated than using the higher-level classes,
but it exposes the configuration details and allows customization.
For most tasks, the higher-level API will be preferable.
"""
import csv
import sys
import time
from mini... | 29.877863 | 143 | 0.648441 | 546 | 3,914 | 4.5 | 0.368132 | 0.04477 | 0.022792 | 0.042735 | 0.245421 | 0.208791 | 0.163614 | 0.148148 | 0.108262 | 0.108262 | 0 | 0.024081 | 0.21487 | 3,914 | 130 | 144 | 30.107692 | 0.775464 | 0.038835 | 0 | 0.148936 | 0 | 0 | 0.247358 | 0.027135 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095745 | null | null | 0.053191 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
12192a5c4a0869098ef5a2f6114fc9d572aaa5ab | 2,101 | py | Python | training/pl_logger.py | stdiff/emo-classifier | 211731a44022408c750b611383216ce0578f2d41 | [
"MIT"
] | null | null | null | training/pl_logger.py | stdiff/emo-classifier | 211731a44022408c750b611383216ce0578f2d41 | [
"MIT"
] | null | null | null | training/pl_logger.py | stdiff/emo-classifier | 211731a44022408c750b611383216ce0578f2d41 | [
"MIT"
] | null | null | null | from typing import Dict, Any, Optional
import pandas as pd
from pytorch_lightning.loggers import LightningLoggerBase
from pytorch_lightning.loggers.base import rank_zero_experiment
from pytorch_lightning.utilities import rank_zero_only
class SimpleLogger(LightningLoggerBase):
def __init__(self):
super().... | 29.180556 | 91 | 0.611614 | 256 | 2,101 | 4.890625 | 0.394531 | 0.044728 | 0.047923 | 0.047923 | 0.028754 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005394 | 0.294146 | 2,101 | 71 | 92 | 29.591549 | 0.83884 | 0.231794 | 0 | 0.229167 | 0 | 0 | 0.036227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0.041667 | 0.104167 | 0.041667 | 0.395833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
12229d09733f5a8668d4db1077a04761f8c6c6e6 | 1,234 | py | Python | pdfencrypter.py | kamimura/pdfendecrypter | 0fc93b8234d7e94cd42267eb05f97ba398f08e1e | [
"MIT"
] | null | null | null | pdfencrypter.py | kamimura/pdfendecrypter | 0fc93b8234d7e94cd42267eb05f97ba398f08e1e | [
"MIT"
] | null | null | null | pdfencrypter.py | kamimura/pdfendecrypter | 0fc93b8234d7e94cd42267eb05f97ba398f08e1e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import PyPDF2
length = len(sys.argv)
if length >= 2:
PASSWORD = sys.argv[1]
else:
print('usage: cmd password [path]')
sys.exit(1)
if length == 3:
PATH = sys.argv[2]
else:
PATH = os.curdir
for folder_name, _, filenames in os.walk... | 32.473684 | 74 | 0.523501 | 139 | 1,234 | 4.52518 | 0.467626 | 0.057234 | 0.050874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015464 | 0.371151 | 1,234 | 37 | 75 | 33.351351 | 0.795103 | 0.034846 | 0 | 0.064516 | 0 | 0 | 0.058873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.096774 | 0.096774 | 0 | 0.096774 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1225b42f1a8d25d36977830638476dfe2a802c62 | 11,992 | py | Python | schemes/mkcap.py | gold2718/ccpp-framework | 66f1a069b6b15748e08adbe940b8ceb9b39619ab | [
"Apache-2.0"
] | null | null | null | schemes/mkcap.py | gold2718/ccpp-framework | 66f1a069b6b15748e08adbe940b8ceb9b39619ab | [
"Apache-2.0"
] | 39 | 2019-01-25T21:50:33.000Z | 2021-09-03T16:57:43.000Z | schemes/mkcap.py | gold2718/ccpp-framework | 66f1a069b6b15748e08adbe940b8ceb9b39619ab | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Script to generate a cap module and subroutines
# from a scheme xml file.
#
from __future__ import print_function
import os
import sys
import getopt
import xml.etree.ElementTree as ET
#################### Main program routine
def main():
args = parse_args()
data = parse_scheme(args['... | 30.827763 | 94 | 0.532688 | 1,376 | 11,992 | 4.503634 | 0.18314 | 0.042601 | 0.028401 | 0.027594 | 0.208165 | 0.118929 | 0.087462 | 0.071648 | 0.041956 | 0.041956 | 0 | 0.002208 | 0.32013 | 11,992 | 388 | 95 | 30.907216 | 0.757881 | 0.082805 | 0 | 0.097902 | 1 | 0 | 0.282347 | 0.006058 | 0.003497 | 0 | 0 | 0 | 0 | 1 | 0.122378 | false | 0.003497 | 0.017483 | 0.003497 | 0.22028 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
122a8bcfb8def21ca6542908e7ec0138c02aea09 | 1,803 | py | Python | scripts/animate_demo.py | wjchen84/rapprentice | 9232a6a21e2c80f00854912f07dcdc725b0be95a | [
"BSD-2-Clause"
] | 23 | 2015-08-25T19:40:18.000Z | 2020-12-27T09:23:06.000Z | scripts/animate_demo.py | wjchen84/rapprentice | 9232a6a21e2c80f00854912f07dcdc725b0be95a | [
"BSD-2-Clause"
] | null | null | null | scripts/animate_demo.py | wjchen84/rapprentice | 9232a6a21e2c80f00854912f07dcdc725b0be95a | [
"BSD-2-Clause"
] | 8 | 2016-05-18T20:13:06.000Z | 2020-11-03T16:09:50.000Z | #!/usr/bin/env python
"""
Animate demonstration trajectory
"""
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("h5file")
parser.add_argument("--seg")
parser.add_argument("--nopause", action="store_true")
args = parser.parse_args()
import h5py, openravepy,trajoptpy
from rapprentice import ani... | 24.04 | 91 | 0.661675 | 277 | 1,803 | 4.151625 | 0.368231 | 0.036522 | 0.015652 | 0.013913 | 0.076522 | 0.076522 | 0.076522 | 0.052174 | 0.052174 | 0 | 0 | 0.040912 | 0.173045 | 1,803 | 74 | 92 | 24.364865 | 0.730382 | 0.011093 | 0 | 0 | 0 | 0 | 0.062572 | 0.014925 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.146341 | null | null | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1234396a6bb8250f31699a3c56eb0bb2cef11b8c | 1,070 | py | Python | tests/library/register_expansion_test.py | Walon1998/dace | 95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0 | [
"BSD-3-Clause"
] | 1 | 2022-03-11T13:36:34.000Z | 2022-03-11T13:36:34.000Z | tests/library/register_expansion_test.py | Walon1998/dace | 95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0 | [
"BSD-3-Clause"
] | null | null | null | tests/library/register_expansion_test.py | Walon1998/dace | 95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved.
import dace
import dace.library
from dace.transformation import transformation as xf
import pytest
@dace.library.node
class MyLibNode(dace.nodes.LibraryNode):
implementations = {}
default_implementation = 'pure'
def __init__(self... | 26.75 | 89 | 0.696262 | 123 | 1,070 | 5.861789 | 0.520325 | 0.04577 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009302 | 0.196262 | 1,070 | 39 | 90 | 27.435897 | 0.82907 | 0.159813 | 0 | 0.08 | 0 | 0 | 0.050279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.04 | 0.16 | 0.04 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1242151ef65549586db3bf65bc0bd27cfd616b7b | 9,415 | py | Python | seek/dbtable_content_blobs.py | BMCBCC/NExtSEEK | 7aca407bbc74efc5beb4a98227c6864444b11f61 | [
"MIT"
] | null | null | null | seek/dbtable_content_blobs.py | BMCBCC/NExtSEEK | 7aca407bbc74efc5beb4a98227c6864444b11f61 | [
"MIT"
] | null | null | null | seek/dbtable_content_blobs.py | BMCBCC/NExtSEEK | 7aca407bbc74efc5beb4a98227c6864444b11f61 | [
"MIT"
] | null | null | null | '''
Created on July 12, 2016
@author: Huiming Ding
Email: huiming@mit.edu
Description:
This script is implemented for the Content_blobs database/table.
Input: No typical input to define.
Output: No typical output to define.
Example command line:
Log of changes:
'''
#!/usr/bin/env pytho... | 34.613971 | 101 | 0.585024 | 1,027 | 9,415 | 5.214216 | 0.259981 | 0.043697 | 0.031373 | 0.020915 | 0.303268 | 0.284967 | 0.267414 | 0.254342 | 0.254342 | 0.239402 | 0 | 0.006545 | 0.334679 | 9,415 | 272 | 102 | 34.613971 | 0.84834 | 0.100372 | 0 | 0.181159 | 0 | 0 | 0.172787 | 0.015791 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065217 | null | null | 0.057971 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1242b70d24751dd58f2e174b2b6dafa4b0cf5800 | 600 | py | Python | netbox_secretstore/__init__.py | motad333/netbox-secretstore | 6ddb3f7bd1b83cc96f140338926aa56a99ce21f3 | [
"Apache-2.0"
] | null | null | null | netbox_secretstore/__init__.py | motad333/netbox-secretstore | 6ddb3f7bd1b83cc96f140338926aa56a99ce21f3 | [
"Apache-2.0"
] | null | null | null | netbox_secretstore/__init__.py | motad333/netbox-secretstore | 6ddb3f7bd1b83cc96f140338926aa56a99ce21f3 | [
"Apache-2.0"
] | null | null | null | from extras.plugins import PluginConfig
from django.utils.translation import gettext_lazy as _
class NetBoxSecretStore(PluginConfig):
name = 'netbox_secretstore'
verbose_name = _('Netbox Secret Store')
description = _('A Secret Storage for NetBox')
version = '1.0.8'
author = 'NetBox Maintainers'
... | 24 | 54 | 0.638333 | 62 | 600 | 5.935484 | 0.725806 | 0.054348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.258333 | 600 | 24 | 55 | 25 | 0.804494 | 0 | 0 | 0 | 0 | 0 | 0.22 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
124ab5ee13504d68a3d114c277fcb2d99863ce77 | 5,229 | py | Python | data/model.py | depowered/mndot-bid-abstracts | bb02c005e7cbd5645502e21c4baebd76170d4be1 | [
"MIT"
] | null | null | null | data/model.py | depowered/mndot-bid-abstracts | bb02c005e7cbd5645502e21c4baebd76170d4be1 | [
"MIT"
] | null | null | null | data/model.py | depowered/mndot-bid-abstracts | bb02c005e7cbd5645502e21c4baebd76170d4be1 | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Integer, String, Float, ForeignKey
from sqlalchemy.engine.create import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
CONNECTION_STRING = "sqlite+pysqlite:///data/db.sqlite"
engine = create_engine(CONNECTION_STRING)
Sess... | 29.542373 | 98 | 0.646969 | 643 | 5,229 | 4.998445 | 0.136858 | 0.064717 | 0.032358 | 0.034848 | 0.333852 | 0.255134 | 0.191661 | 0.168637 | 0.116988 | 0.10392 | 0 | 0.035161 | 0.222222 | 5,229 | 177 | 99 | 29.542373 | 0.755102 | 0.005164 | 0 | 0.14876 | 0 | 0.008264 | 0.309364 | 0.106326 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107438 | false | 0 | 0.033058 | 0.066116 | 0.669421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
12569e9c0d171a9d7527cfe600f2b89b30a16992 | 222 | py | Python | backend/profiles/serializers.py | stevethompsonstar/django-react-blog | 88af926454901c826acc9e2996addd0d53b0626a | [
"MIT"
] | 592 | 2017-03-07T04:29:08.000Z | 2020-09-21T00:36:58.000Z | backend/profiles/serializers.py | stevethompsonstar/django-react-blog | 88af926454901c826acc9e2996addd0d53b0626a | [
"MIT"
] | 8 | 2017-03-08T01:22:36.000Z | 2020-08-20T15:45:42.000Z | backend/profiles/serializers.py | stevethompsonstar/django-react-blog | 88af926454901c826acc9e2996addd0d53b0626a | [
"MIT"
] | 102 | 2017-03-07T05:42:47.000Z | 2020-08-28T20:02:20.000Z | from rest_framework import serializers
from .models import Subscriber
class SubscriberSerializer(serializers.ModelSerializer):
class Meta:
model = Subscriber
fields = (
'email',
)
| 20.181818 | 56 | 0.662162 | 19 | 222 | 7.684211 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279279 | 222 | 10 | 57 | 22.2 | 0.9125 | 0 | 0 | 0 | 0 | 0 | 0.022523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
125da2debfb3bcd25523d38067e1548fefba9b8b | 858 | py | Python | fog/fog-client/setup.py | breakEval13/tor_dev | 1040d906474d1da463f4de57b3c5f72ae14f550d | [
"Apache-2.0"
] | 1 | 2020-07-21T01:23:28.000Z | 2020-07-21T01:23:28.000Z | fog/fog-client/setup.py | breakEval13/tor_dev | 1040d906474d1da463f4de57b3c5f72ae14f550d | [
"Apache-2.0"
] | null | null | null | fog/fog-client/setup.py | breakEval13/tor_dev | 1040d906474d1da463f4de57b3c5f72ae14f550d | [
"Apache-2.0"
] | null | null | null | from distutils.core import setup
import py2exe
# if py2exe complains "can't find P", try one of the following workarounds:
#
# a. py2exe doesn't support zipped eggs - http://www.py2exe.org/index.cgi/ExeWithEggs
# You should give the --always-unzip option to easy_install, or you can use setup.py directly
# $ python s... | 35.75 | 94 | 0.67366 | 122 | 858 | 4.688525 | 0.729508 | 0.024476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008708 | 0.19697 | 858 | 23 | 95 | 37.304348 | 0.82148 | 0.631702 | 0 | 0 | 0 | 0 | 0.323529 | 0.068627 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
126834642203c16a6f094647812a7f04fd742d0c | 853 | py | Python | appshell/endpoints.py | adh/appshell | 94901df8045336e3217eb2fd5eae77cb7c639340 | [
"MIT"
] | 3 | 2015-08-21T22:22:52.000Z | 2018-07-14T03:32:51.000Z | appshell/endpoints.py | adh/appshell | 94901df8045336e3217eb2fd5eae77cb7c639340 | [
"MIT"
] | null | null | null | appshell/endpoints.py | adh/appshell | 94901df8045336e3217eb2fd5eae77cb7c639340 | [
"MIT"
] | 1 | 2015-08-21T22:22:57.000Z | 2015-08-21T22:22:57.000Z | from appshell.base import View
from appshell.templates import confirmation, message
from flask import request, flash, redirect
from flask_babelex import Babel, Domain
mydomain = Domain('appshell')
_ = mydomain.gettext
lazy_gettext = mydomain.lazy_gettext
class ConfirmationEndpoint(View):
methods = ("GET", "POST"... | 25.848485 | 58 | 0.629543 | 94 | 853 | 5.574468 | 0.404255 | 0.057252 | 0.061069 | 0.076336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277843 | 853 | 32 | 59 | 26.65625 | 0.850649 | 0 | 0 | 0 | 0 | 0 | 0.026964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.04 | 0.16 | 0 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
126fc6c0e704141c3768c167da733628103ad816 | 248 | py | Python | yo_fluq_ds/_fluq/_common.py | okulovsky/yo_ds | 9e1fa2e7a1b9746c3982afc152c024169fec45ca | [
"MIT"
] | 16 | 2019-09-26T09:05:42.000Z | 2021-02-04T01:39:09.000Z | yo_fluq_ds/_fluq/_common.py | okulovsky/yo_ds | 9e1fa2e7a1b9746c3982afc152c024169fec45ca | [
"MIT"
] | 2 | 2019-10-23T19:01:23.000Z | 2020-06-11T09:08:45.000Z | yo_fluq_ds/_fluq/_common.py | okulovsky/yo_ds | 9e1fa2e7a1b9746c3982afc152c024169fec45ca | [
"MIT"
] | 2 | 2019-09-26T09:05:50.000Z | 2019-10-23T18:46:11.000Z | from .._common import *
from yo_fluq import *
Queryable = lambda *args, **kwargs: FlupFactory.QueryableFactory(*args, **kwargs)
T = TypeVar('T')
TOut = TypeVar('TOut')
TKey = TypeVar('TKey')
TValue = TypeVar('TValue')
TFactory = TypeVar('TFactory') | 31 | 81 | 0.71371 | 30 | 248 | 5.833333 | 0.566667 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116935 | 248 | 8 | 82 | 31 | 0.799087 | 0 | 0 | 0 | 0 | 0 | 0.092369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89cc8c96ba145a294249c4b138a3c09de02694bc | 949 | py | Python | headless_chrome.py | MineRobber9000/discordscript | c9c4eda0e28db72890d0490617ed361722c7c44c | [
"MIT"
] | null | null | null | headless_chrome.py | MineRobber9000/discordscript | c9c4eda0e28db72890d0490617ed361722c7c44c | [
"MIT"
] | null | null | null | headless_chrome.py | MineRobber9000/discordscript | c9c4eda0e28db72890d0490617ed361722c7c44c | [
"MIT"
] | null | null | null | from selenium import webdriver
def _options_factory():
"""Produces a selenium.webdriver.ChromeOptions object. Used to force "headless" on invocation. You shouldn't call this function."""
ret = webdriver.ChromeOptions()
ret.add_argument("headless")
return ret
def get_driver(*varargs,args=[]):
"""Creates headless ... | 32.724138 | 132 | 0.791359 | 125 | 949 | 5.92 | 0.52 | 0.114865 | 0.085135 | 0.072973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001189 | 0.113804 | 949 | 28 | 133 | 33.892857 | 0.878716 | 0.306639 | 0 | 0 | 0 | 0 | 0.04186 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.263158 | 0.052632 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
89cd7e4794021790017343f1b97d640a8664e0b4 | 2,677 | py | Python | lemonsoap/scent/columns_scent.py | Ekrekr/LemonSoap | 61b86b70a3788486235de2e8baeb7c68b80318a9 | [
"MIT"
] | null | null | null | lemonsoap/scent/columns_scent.py | Ekrekr/LemonSoap | 61b86b70a3788486235de2e8baeb7c68b80318a9 | [
"MIT"
] | 1 | 2019-08-23T18:30:31.000Z | 2019-08-23T18:32:23.000Z | lemonsoap/scent/columns_scent.py | Ekrekr/LemonSoap | 61b86b70a3788486235de2e8baeb7c68b80318a9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
LemonSoap - headers scent.
Deals with column headers.
"""
import pandas as pd
import inflection
import re
import logging
from ..lemon_bar import LemonBar
from .scent_template import ScentTemplate
class ColumnsScent(ScentTemplate):
"""
Manages headers issue identification and fixi... | 27.316327 | 77 | 0.566679 | 304 | 2,677 | 4.875 | 0.453947 | 0.016194 | 0.038462 | 0.022942 | 0.036437 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008479 | 0.339186 | 2,677 | 97 | 78 | 27.597938 | 0.829282 | 0.351886 | 0 | 0 | 0 | 0 | 0.082677 | 0.01706 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89d04b9eb8d01d291b7226fc499b9d1ce4373de0 | 466 | py | Python | arquivos_de_exercicios_descubra_o_python/Cap. 04/escreveArquivo_start.py | DiegoDBLe/Python-Linkedin | 0365fb2c83d04c10a2ebd8b56baddb91a4525811 | [
"MIT"
] | null | null | null | arquivos_de_exercicios_descubra_o_python/Cap. 04/escreveArquivo_start.py | DiegoDBLe/Python-Linkedin | 0365fb2c83d04c10a2ebd8b56baddb91a4525811 | [
"MIT"
] | null | null | null | arquivos_de_exercicios_descubra_o_python/Cap. 04/escreveArquivo_start.py | DiegoDBLe/Python-Linkedin | 0365fb2c83d04c10a2ebd8b56baddb91a4525811 | [
"MIT"
] | null | null | null | #
# Escrevendo arquivos com funções do Python
#
def escreveArquivo():
arquivo = open('NovoArquivo.txt', 'w+')
arquivo.write('Linha gerada com a função Escrevendo Arquivo \r\n')
arquivo.close()
#escreveArquivo()]
def alteraArquivo():
arquivo = open('NovoArquivo.txt', 'a+') # a de append que dizer e... | 18.64 | 106 | 0.690987 | 59 | 466 | 5.457627 | 0.525424 | 0.068323 | 0.136646 | 0.15528 | 0.335404 | 0.204969 | 0.204969 | 0 | 0 | 0 | 0 | 0 | 0.188841 | 466 | 24 | 107 | 19.416667 | 0.851852 | 0.255365 | 0 | 0.222222 | 0 | 0 | 0.376471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89d0cf9f3e0655b88c1a304fee38eb9854817a94 | 1,150 | py | Python | graphio/queries/query_parameters.py | JTaeger/graphio | e856d4266842540cfe56ba7367d8f97183ae2954 | [
"Apache-2.0"
] | null | null | null | graphio/queries/query_parameters.py | JTaeger/graphio | e856d4266842540cfe56ba7367d8f97183ae2954 | [
"Apache-2.0"
] | null | null | null | graphio/queries/query_parameters.py | JTaeger/graphio | e856d4266842540cfe56ba7367d8f97183ae2954 | [
"Apache-2.0"
] | null | null | null | def params_create_rels_unwind_from_objects(relationships, property_identifier=None):
"""
Format Relationship properties into a one level dictionary matching the query generated in
`query_create_rels_from_list`. This is necessary because you cannot access nested dictionairies
in the UNWIND query.
UN... | 33.823529 | 99 | 0.646087 | 155 | 1,150 | 4.632258 | 0.458065 | 0.100279 | 0.019499 | 0.019499 | 0.022284 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006857 | 0.23913 | 1,150 | 33 | 100 | 34.848485 | 0.813714 | 0.506087 | 0 | 0 | 1 | 0 | 0.055118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89d191bec6b5c9759bd10872394402ac762205b9 | 477 | py | Python | user/migrations/0002_userprofile_relations.py | Trippr-dwoc/Trippr-backend | 69a8bb8e1a742b64b4eaf8612f97806e6191e8fb | [
"MIT"
] | null | null | null | user/migrations/0002_userprofile_relations.py | Trippr-dwoc/Trippr-backend | 69a8bb8e1a742b64b4eaf8612f97806e6191e8fb | [
"MIT"
] | null | null | null | user/migrations/0002_userprofile_relations.py | Trippr-dwoc/Trippr-backend | 69a8bb8e1a742b64b4eaf8612f97806e6191e8fb | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-10-19 18:54
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='userprofile',
... | 23.85 | 116 | 0.649895 | 52 | 477 | 5.788462 | 0.673077 | 0.066445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.243187 | 477 | 19 | 117 | 25.105263 | 0.781163 | 0.09434 | 0 | 0 | 1 | 0 | 0.151163 | 0.067442 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89d59366b3b61d950e0acc7ff13715341f62b69d | 47,267 | py | Python | scielomanager/journalmanager/models.py | jamilatta/scielo-manager | d506c6828ba9b1089faa164bc42ba29a0f228e61 | [
"BSD-2-Clause"
] | null | null | null | scielomanager/journalmanager/models.py | jamilatta/scielo-manager | d506c6828ba9b1089faa164bc42ba29a0f228e61 | [
"BSD-2-Clause"
] | null | null | null | scielomanager/journalmanager/models.py | jamilatta/scielo-manager | d506c6828ba9b1089faa164bc42ba29a0f228e61 | [
"BSD-2-Clause"
] | null | null | null | # -*- encoding: utf-8 -*-
import urllib
import hashlib
import logging
import choices
import caching.base
from scielomanager import tools
try:
from collections import OrderedDict
except ImportError:
from ordereddict import OrderedDict
from django.db import (
models,
transaction,
IntegrityError,
... | 38.428455 | 166 | 0.66393 | 5,490 | 47,267 | 5.549545 | 0.124408 | 0.028359 | 0.012801 | 0.014508 | 0.36423 | 0.297272 | 0.252634 | 0.21223 | 0.187153 | 0.173893 | 0 | 0.008292 | 0.229505 | 47,267 | 1,229 | 167 | 38.459723 | 0.828276 | 0.127552 | 0 | 0.268874 | 0 | 0.001325 | 0.085498 | 0.003567 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091391 | false | 0 | 0.034437 | 0.018543 | 0.605298 | 0.010596 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
89d89227f288e0f65c724c9ca47de9d7c7896fe6 | 1,685 | py | Python | src/pyro_util/modules/__init__.py | MacoskoLab/pyro-util | 6ea5e1dfd082abed8e675743c59efe9b548671ab | [
"MIT"
] | null | null | null | src/pyro_util/modules/__init__.py | MacoskoLab/pyro-util | 6ea5e1dfd082abed8e675743c59efe9b548671ab | [
"MIT"
] | null | null | null | src/pyro_util/modules/__init__.py | MacoskoLab/pyro-util | 6ea5e1dfd082abed8e675743c59efe9b548671ab | [
"MIT"
] | null | null | null | from typing import Tuple
import torch
import torch.nn as nn
from pyro.distributions.util import broadcast_shape
from pyro_util.modules.weight_scaling import GammaReLU, WSLinear
T = torch.Tensor
def make_ws_fc(*dims: int) -> nn.Module:
"""Helper function for creating a fully connected neural network.
This v... | 29.561404 | 72 | 0.68546 | 258 | 1,685 | 4.379845 | 0.317829 | 0.022124 | 0.063717 | 0.038938 | 0.499115 | 0.472566 | 0.472566 | 0.472566 | 0.472566 | 0.40531 | 0 | 0.012555 | 0.196439 | 1,685 | 56 | 73 | 30.089286 | 0.822009 | 0.336499 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.2 | 0 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
89d965296e8228cfbfe6118b69532269f5a9bce1 | 10,442 | py | Python | render.py | ondrejkoren/WeatherFrame | 2f9da22e5fa162e9ec7af218f353c16eb1250572 | [
"MIT"
] | 2 | 2020-10-26T19:18:11.000Z | 2020-10-27T17:27:40.000Z | render.py | ondrejkoren/WeatherFrame | 2f9da22e5fa162e9ec7af218f353c16eb1250572 | [
"MIT"
] | null | null | null | render.py | ondrejkoren/WeatherFrame | 2f9da22e5fa162e9ec7af218f353c16eb1250572 | [
"MIT"
] | 1 | 2020-12-18T03:42:42.000Z | 2020-12-18T03:42:42.000Z | from WeatherScreens.RingScreen import RingScreen
from WeatherScreens.QuadrantScreen import QuadrantScreen
from WeatherScreens.ImageScreen import ImageScreen
from WeatherScreens.ScreenBase import ScreenBase
from datetime import datetime, timedelta
from suntime import Sun, SunTimeException
from dateutil import tz
import ... | 83.536 | 187 | 0.538977 | 1,632 | 10,442 | 3.340074 | 0.137255 | 0.062374 | 0.049532 | 0.085856 | 0.409099 | 0.385801 | 0.368189 | 0.227298 | 0.139974 | 0.049532 | 0 | 0.175975 | 0.192396 | 10,442 | 124 | 188 | 84.209677 | 0.470414 | 0.00431 | 0 | 0.034783 | 0 | 0 | 0.35838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078261 | 0 | 0.078261 | 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 | 0 | 0 | 0 | 1 |
89da74e72512e7844f3d0419ef0411f667024554 | 254 | py | Python | evergreen/manage/website/page/urls.py | craigsander/evergreen | 73c8e1ed546e3ac480add3e30e8696f4eb052496 | [
"MIT"
] | null | null | null | evergreen/manage/website/page/urls.py | craigsander/evergreen | 73c8e1ed546e3ac480add3e30e8696f4eb052496 | [
"MIT"
] | 6 | 2016-05-09T02:56:05.000Z | 2016-05-26T18:36:41.000Z | evergreen/manage/website/page/urls.py | craigsander/evergreen | 73c8e1ed546e3ac480add3e30e8696f4eb052496 | [
"MIT"
] | null | null | null | from django.conf.urls import url, include
from django.conf import settings
from . import views
# Wire up our API using automatic URL routing.
# Additionally, we include login URLs for the browsable API.
urlpatterns = [
url(r'manage/', views.index),
]
| 23.090909 | 60 | 0.755906 | 38 | 254 | 5.052632 | 0.684211 | 0.104167 | 0.145833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161417 | 254 | 10 | 61 | 25.4 | 0.901408 | 0.405512 | 0 | 0 | 0 | 0 | 0.047297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
89dffdff4ab352309290e6973585dc0df6b2adbd | 2,440 | py | Python | python/rsa_encrypt_decrypt.py | hipro/hipro | 49e8c9751109839fdef9a6bc812e3b92fdff7d4e | [
"Apache-2.0"
] | null | null | null | python/rsa_encrypt_decrypt.py | hipro/hipro | 49e8c9751109839fdef9a6bc812e3b92fdff7d4e | [
"Apache-2.0"
] | null | null | null | python/rsa_encrypt_decrypt.py | hipro/hipro | 49e8c9751109839fdef9a6bc812e3b92fdff7d4e | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""加密算法:公钥(私钥)加密,私钥解密"""
from Crypto.PublicKey import RSA
from Crypto import Random
DATA = 'Hello, word!'
PRIVATE_KEY_PEM = """-----BEGIN RSA PRIVATE KEY-----
MIICXQIBAAKBgQDB3c0nwVs6koPkpt6REeT07jK7m9qE9BmDw1Zl55T66rGfKM3g
1DFBq7jtcZ+xcgYAGgvJWPW16nylag/1lVNUxMShm2jlp3MwuBNKRvrXP2u29j9v
AAlM9lMLXzt0... | 35.362319 | 66 | 0.812295 | 229 | 2,440 | 8.327511 | 0.379913 | 0.047195 | 0.031463 | 0.037756 | 0.252753 | 0.228631 | 0.191924 | 0.08495 | 0.040902 | 0 | 0 | 0.071363 | 0.104098 | 2,440 | 68 | 67 | 35.882353 | 0.801006 | 0.014754 | 0 | 0.226415 | 0 | 0 | 0.491851 | 0.429586 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0 | 0.113208 | 0 | 0.264151 | 0.113208 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89e266ad4a5dbc97ce90b8acd022e9cd85eb5d18 | 408 | py | Python | shop_website/shop/migrations/0002_auto_20200228_1533.py | omar00070/django-shopping-website | af2741b900b60631349ea2e6de17586994e31680 | [
"MIT"
] | null | null | null | shop_website/shop/migrations/0002_auto_20200228_1533.py | omar00070/django-shopping-website | af2741b900b60631349ea2e6de17586994e31680 | [
"MIT"
] | null | null | null | shop_website/shop/migrations/0002_auto_20200228_1533.py | omar00070/django-shopping-website | af2741b900b60631349ea2e6de17586994e31680 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-02-28 15:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='product',
name='photo',
fiel... | 21.473684 | 86 | 0.60049 | 44 | 408 | 5.477273 | 0.795455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064189 | 0.27451 | 408 | 18 | 87 | 22.666667 | 0.75 | 0.110294 | 0 | 0 | 1 | 0 | 0.144044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89e8f1e4189f0729dfe92491a135e0998857cfdb | 2,306 | py | Python | chainer/links/connection/mgu.py | Qwinpin/chainer | 1dca01bc8a1aceec6ee53a66d24970b203a9fc51 | [
"MIT"
] | 1 | 2019-02-12T23:10:16.000Z | 2019-02-12T23:10:16.000Z | chainer/links/connection/mgu.py | nolfwin/chainer | 8d776fcc1e848cb9d3800a6aab356eb91ae9d088 | [
"MIT"
] | 1 | 2018-06-26T08:16:09.000Z | 2018-06-26T08:16:09.000Z | chainer/links/connection/mgu.py | nolfwin/chainer | 8d776fcc1e848cb9d3800a6aab356eb91ae9d088 | [
"MIT"
] | 1 | 2018-05-28T22:43:34.000Z | 2018-05-28T22:43:34.000Z | import numpy
import chainer
from chainer.backends import cuda
from chainer.functions.activation import sigmoid
from chainer.functions.activation import tanh
from chainer.functions.array import concat
from chainer.functions.math import linear_interpolate
from chainer import link
from chainer.links.connection import lin... | 29.948052 | 76 | 0.630095 | 316 | 2,306 | 4.322785 | 0.259494 | 0.040264 | 0.058565 | 0.064422 | 0.139092 | 0.045388 | 0.045388 | 0.045388 | 0 | 0 | 0 | 0.000601 | 0.278404 | 2,306 | 76 | 77 | 30.342105 | 0.820313 | 0.039896 | 0 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.017241 | 1 | 0.12069 | false | 0 | 0.155172 | 0 | 0.396552 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89f5028eff37603d75de75f5abd7c8d726c5c6e5 | 2,882 | py | Python | deepinesStore/cardg.py | xoascf/store_deepines | d16f5af2b90845d2be3ca19d19cc43d4ad4a0bcf | [
"Apache-2.0"
] | 6 | 2019-09-21T14:16:53.000Z | 2021-04-05T12:21:03.000Z | deepinesStore/cardg.py | xoascf/store_deepines | d16f5af2b90845d2be3ca19d19cc43d4ad4a0bcf | [
"Apache-2.0"
] | 3 | 2019-09-20T02:12:10.000Z | 2021-01-26T20:24:14.000Z | deepinesStore/cardg.py | xoascf/store_deepines | d16f5af2b90845d2be3ca19d19cc43d4ad4a0bcf | [
"Apache-2.0"
] | 14 | 2019-10-20T04:48:07.000Z | 2022-01-29T14:51:09.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'guis/card.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class QLabelClickable(QtWidgets.QLabel):
clicked = QtCore.pyqtSignal()... | 37.428571 | 82 | 0.693616 | 333 | 2,882 | 5.822823 | 0.312312 | 0.041258 | 0.051573 | 0.064982 | 0.235173 | 0.200103 | 0.14131 | 0.115523 | 0.059825 | 0.059825 | 0 | 0.017703 | 0.196391 | 2,882 | 76 | 83 | 37.921053 | 0.819516 | 0.063498 | 0 | 0.107143 | 1 | 0 | 0.068351 | 0.008172 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.017857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
89ff6360ea1be91377db709efe114247c747be5c | 2,295 | py | Python | src/Deque/deque_scratch.py | shapovalovdev/AlgorythmsAndDataStructures | 34d5f38c089e0ba902813607f08847fbdc7361ab | [
"Apache-2.0"
] | null | null | null | src/Deque/deque_scratch.py | shapovalovdev/AlgorythmsAndDataStructures | 34d5f38c089e0ba902813607f08847fbdc7361ab | [
"Apache-2.0"
] | null | null | null | src/Deque/deque_scratch.py | shapovalovdev/AlgorythmsAndDataStructures | 34d5f38c089e0ba902813607f08847fbdc7361ab | [
"Apache-2.0"
] | null | null | null | class Node:
def __init__(self,v):
self.next=None
self.prev=None
self.value=v
class Deque:
def __init__(self):
self.front=None
self.tail=None
def addFront(self, item):
node=Node(item)
if self.front is None: #case of none items
se... | 27.987805 | 86 | 0.484967 | 272 | 2,295 | 4.055147 | 0.150735 | 0.203989 | 0.06981 | 0.05893 | 0.366274 | 0.297371 | 0.229374 | 0.189483 | 0.161378 | 0.161378 | 0 | 0.002357 | 0.445316 | 2,295 | 82 | 87 | 27.987805 | 0.864101 | 0.062309 | 0 | 0.472973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121622 | false | 0 | 0 | 0 | 0.27027 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6002ee1619df2f3a01c18514eb41944710fe8cf | 1,529 | py | Python | ife/features/tests/test_features.py | Collonville/ImageFeatureExtractor | 92c9b4bbb19ac6f319d86e2e9837425a822e78aa | [
"BSD-3-Clause"
] | 2 | 2020-09-10T09:59:45.000Z | 2021-02-18T06:06:57.000Z | ife/features/tests/test_features.py | Collonville/ImageFeatureExtractor | 92c9b4bbb19ac6f319d86e2e9837425a822e78aa | [
"BSD-3-Clause"
] | 9 | 2019-07-24T14:34:45.000Z | 2021-06-01T01:43:45.000Z | ife/features/tests/test_features.py | Collonville/ImageFeatureExtractor | 92c9b4bbb19ac6f319d86e2e9837425a822e78aa | [
"BSD-3-Clause"
] | 1 | 2019-08-10T12:37:07.000Z | 2019-08-10T12:37:07.000Z | import unittest
from collections import defaultdict
import numpy as np
import pandas as pd
from ife.io.io import ImageReader
class TestMomentFeatures(unittest.TestCase):
def test_moment_output_type(self) -> None:
features = ImageReader.read_from_single_file("ife/data/small_rgb.jpg")
moment = fe... | 32.531915 | 78 | 0.689993 | 182 | 1,529 | 5.664835 | 0.241758 | 0.096993 | 0.108632 | 0.162949 | 0.746848 | 0.686712 | 0.670223 | 0.580019 | 0.580019 | 0.484966 | 0 | 0.006494 | 0.194245 | 1,529 | 46 | 79 | 33.23913 | 0.830357 | 0.007848 | 0 | 0.322581 | 0 | 0 | 0.051485 | 0.029043 | 0 | 0 | 0 | 0 | 0.354839 | 1 | 0.064516 | false | 0 | 0.16129 | 0 | 0.258065 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6045b4c7f02b396222d75c9572cf50573b6e5e0 | 4,116 | py | Python | mysite/timesheets/models.py | xanderyzwich/Timesheets | 15685ac7b786d3e66bd24e8a3a252f193ee8f49b | [
"MIT"
] | null | null | null | mysite/timesheets/models.py | xanderyzwich/Timesheets | 15685ac7b786d3e66bd24e8a3a252f193ee8f49b | [
"MIT"
] | 1 | 2019-06-11T21:23:49.000Z | 2019-06-11T21:23:49.000Z | mysite/timesheets/models.py | xanderyzwich/Timesheets | 15685ac7b786d3e66bd24e8a3a252f193ee8f49b | [
"MIT"
] | null | null | null | """The database models and form based on the timesheet model"""
import datetime
from django.db import models
from django.forms import ModelForm, ValidationError
# Create your models here.
class Task(models.Model):
"""Used to support Timesheet class"""
type = models.CharField(max_length=25)
class Meta:... | 34.881356 | 117 | 0.659864 | 519 | 4,116 | 5.084778 | 0.188825 | 0.061008 | 0.040925 | 0.054566 | 0.442213 | 0.419098 | 0.364532 | 0.333839 | 0.30125 | 0.271694 | 0 | 0.005542 | 0.210884 | 4,116 | 117 | 118 | 35.179487 | 0.806958 | 0.094023 | 0 | 0.27027 | 0 | 0 | 0.086839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.040541 | 0.081081 | 0.702703 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d604e88c648108777cbfd88997a6da0f4142321d | 972 | py | Python | waferscreen/inst_control/inactive/keithley_2700_multimeter.py | chw3k5/WaferScreen | c0ca7fe939fe7cd0b722b7d6129b148c03a7505c | [
"Apache-2.0"
] | 1 | 2021-07-30T19:06:07.000Z | 2021-07-30T19:06:07.000Z | waferscreen/inst_control/inactive/keithley_2700_multimeter.py | chw3k5/WaferScreen | c0ca7fe939fe7cd0b722b7d6129b148c03a7505c | [
"Apache-2.0"
] | 8 | 2021-04-22T20:47:48.000Z | 2021-07-30T19:06:01.000Z | waferscreen/inst_control/inactive/keithley_2700_multimeter.py | chw3k5/WaferScreen | c0ca7fe939fe7cd0b722b7d6129b148c03a7505c | [
"Apache-2.0"
] | null | null | null | '''
Created on Mar 11, 2009
@author: schimaf
'''
import gpib_instrument
class Keithley2700Multimeter(gpib_instrument.Gpib_Instrument):
'''
classdocs
'''
def __init__(self, pad, board_number = 0, name = '', sad = 0, timeout = 13, send_eoi = 1, eos_mode = 0):
'''
Constructor
'... | 24.923077 | 111 | 0.56893 | 104 | 972 | 5.125 | 0.567308 | 0.078799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060241 | 0.316872 | 972 | 39 | 112 | 24.923077 | 0.74247 | 0.039095 | 0 | 0 | 0 | 0 | 0.100728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d60722b9887f89e13eb10b2c11b054a0ed09389f | 324 | py | Python | test/test_comment.py | ExiaSR/server | f29ce921681d8b70f9e2541f7e251deb894bea29 | [
"Apache-2.0"
] | 3 | 2017-02-22T21:15:27.000Z | 2017-08-07T17:30:21.000Z | test/test_comment.py | ExiaSR/server | f29ce921681d8b70f9e2541f7e251deb894bea29 | [
"Apache-2.0"
] | 4 | 2017-02-24T00:47:02.000Z | 2017-03-20T08:51:02.000Z | test/test_comment.py | TeamGhostBuster/restful-api | f29ce921681d8b70f9e2541f7e251deb894bea29 | [
"Apache-2.0"
] | 1 | 2017-01-27T16:22:46.000Z | 2017-01-27T16:22:46.000Z | import pytest
from test.conftest import *
@pytest.mark.run(after='test_create_article_for_user')
@post('/article/{}/comment', {"comment": "shit posting #1"})
def test_post_comment_to_article(result=None, url_id=['article_id']):
assert result.status_code == 200
assert result.json()['content'] == 'shit posting ... | 32.4 | 69 | 0.725309 | 46 | 324 | 4.869565 | 0.630435 | 0.107143 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017301 | 0.108025 | 324 | 9 | 70 | 36 | 0.757785 | 0 | 0 | 0 | 0 | 0 | 0.311728 | 0.08642 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d607862cf4892c18870cfcbccf290b4c451cd8b2 | 2,243 | py | Python | mazeinawall/generate_dataset.py | ncvescera/QRL-Maze_in_a_Wall | c150612bd17b1a70439853acfbdb2bc7d2b92a67 | [
"Apache-2.0"
] | 2 | 2022-02-25T15:55:28.000Z | 2022-03-24T17:41:42.000Z | mazeinawall/generate_dataset.py | ncvescera/QRL-Maze_in_a_Wall | c150612bd17b1a70439853acfbdb2bc7d2b92a67 | [
"Apache-2.0"
] | 1 | 2022-02-03T15:48:30.000Z | 2022-02-17T08:52:21.000Z | mazeinawall/generate_dataset.py | ncvescera/QRL-Maze_in_a_Wall | c150612bd17b1a70439853acfbdb2bc7d2b92a67 | [
"Apache-2.0"
] | null | null | null | from random import randint, seed
import numpy as np
from os import path, mkdir
from maze_utils import generate_grid
seed_number = 69
training_folder = "training"
testing_folder = "testing"
tot_elem_training = 100 # numero di matrici da generare
tot_elem_testing = 20 # numero di matrici da generare
max_w = 10 ... | 25.488636 | 76 | 0.637539 | 326 | 2,243 | 4.217791 | 0.269939 | 0.011636 | 0.043636 | 0.049455 | 0.552 | 0.491636 | 0.458182 | 0.458182 | 0.458182 | 0.411636 | 0 | 0.01599 | 0.275078 | 2,243 | 87 | 77 | 25.781609 | 0.829643 | 0.316095 | 0 | 0.3 | 1 | 0 | 0.063624 | 0.043568 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.1 | 0 | 0.175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d60b9e43d95710ca6c53adbaecd49a801012a6ac | 660 | py | Python | controllers/home.py | elydev01/kvtemplate2 | e1563574795b711b722d5219e8e8a7a158137884 | [
"MIT"
] | null | null | null | controllers/home.py | elydev01/kvtemplate2 | e1563574795b711b722d5219e8e8a7a158137884 | [
"MIT"
] | null | null | null | controllers/home.py | elydev01/kvtemplate2 | e1563574795b711b722d5219e8e8a7a158137884 | [
"MIT"
] | null | null | null | from kivy.lang import Builder
from kivy.metrics import dp
from kivy import properties as p
from kivy.animation import Animation
from kivymd.app import MDApp as App
from kivymd.uix.screen import MDScreen
class HomeMainScreen(MDScreen):
bg_pos = p.NumericProperty(0)
def toggle_bg_pos(self):
bg_pos... | 20 | 60 | 0.698485 | 98 | 660 | 4.540816 | 0.5 | 0.067416 | 0.040449 | 0.044944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009416 | 0.195455 | 660 | 32 | 61 | 20.625 | 0.828625 | 0 | 0 | 0 | 0 | 0 | 0.039394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.3 | 0.05 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
d60fbcd4c5db31db47d319f9c2fd9dae6d72dff3 | 260 | py | Python | H/283. Move Zeroes.py | shaohy/leetcode | a5a4bbd768b5d5e394f327785bd99c8a3b11ae0b | [
"MIT"
] | null | null | null | H/283. Move Zeroes.py | shaohy/leetcode | a5a4bbd768b5d5e394f327785bd99c8a3b11ae0b | [
"MIT"
] | null | null | null | H/283. Move Zeroes.py | shaohy/leetcode | a5a4bbd768b5d5e394f327785bd99c8a3b11ae0b | [
"MIT"
] | null | null | null | class Solution:
def moveZeroes(self, nums: List[int]) -> None:
"""
Do not return anything, modify nums in-place instead.
"""
for i in nums:
if i == 0:
nums.append(i)
nums.remove(i) | 28.888889 | 61 | 0.476923 | 31 | 260 | 4 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006536 | 0.411538 | 260 | 9 | 62 | 28.888889 | 0.803922 | 0.203846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d611e9107074951bab0a620dc787648f0af98fce | 3,045 | py | Python | ultimate-utils-proj-src/uutils/torch/torch_geometric/__init__.py | CBMM/ultimate-utils | 2179eb6a510128ecefea5e2e19108098f6728b05 | [
"MIT"
] | null | null | null | ultimate-utils-proj-src/uutils/torch/torch_geometric/__init__.py | CBMM/ultimate-utils | 2179eb6a510128ecefea5e2e19108098f6728b05 | [
"MIT"
] | null | null | null | ultimate-utils-proj-src/uutils/torch/torch_geometric/__init__.py | CBMM/ultimate-utils | 2179eb6a510128ecefea5e2e19108098f6728b05 | [
"MIT"
] | null | null | null |
# def draw_nx(g, labels=None):
# import matplotlib.pyplot as plt
# if labels is not None:
# g = nx.relabel_nodes(g, labels)
# pos = nx.kamada_kawai_layout(g)
# nx.draw(g, pos, with_labels=True)
# plt.show()
#
# def draw_nx_attributes_as_labels(g, attribute):
# # import pylab
# impo... | 32.052632 | 129 | 0.639737 | 428 | 3,045 | 4.406542 | 0.320093 | 0.025451 | 0.055673 | 0.063627 | 0.256098 | 0.193001 | 0.145281 | 0.098621 | 0.098621 | 0.098621 | 0 | 0.038039 | 0.222989 | 3,045 | 95 | 130 | 32.052632 | 0.759087 | 0.785878 | 0 | 0 | 0 | 0 | 0.024306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.25 | 0 | 0.3125 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d61e6516f718df3f31a9d34a9f5fa19b3f8b469f | 2,071 | py | Python | spinup/exercises/problem_set_1/exercise1_1.py | wowbob396/spinningup | 717013c2d404666a9c362a045bbebe395e58d8a0 | [
"MIT"
] | null | null | null | spinup/exercises/problem_set_1/exercise1_1.py | wowbob396/spinningup | 717013c2d404666a9c362a045bbebe395e58d8a0 | [
"MIT"
] | null | null | null | spinup/exercises/problem_set_1/exercise1_1.py | wowbob396/spinningup | 717013c2d404666a9c362a045bbebe395e58d8a0 | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
import math
"""
Exercise 1.1: Diagonal Gaussian Likelihood
Write a function which takes in Tensorflow symbols for the means and
log stds of a batch of diagonal Gaussian distributions, along with a
Tensorflow placeholder for (previously-generated) samples from those
distri... | 29.169014 | 112 | 0.638822 | 278 | 2,071 | 4.57554 | 0.348921 | 0.113208 | 0.04717 | 0.062893 | 0.230346 | 0.154874 | 0.053459 | 0 | 0 | 0 | 0 | 0.016518 | 0.239981 | 2,071 | 71 | 113 | 29.169014 | 0.791614 | 0.103332 | 0 | 0 | 0 | 0 | 0.00602 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.068966 | false | 0.034483 | 0.172414 | 0 | 0.275862 | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d62251a3f732e6d3445b6aaa9d46a183c953d427 | 262 | py | Python | setup.py | yuvipanda/fakeokclient | 379893350457900dd10452c27b774f73a1850ed2 | [
"BSD-3-Clause"
] | null | null | null | setup.py | yuvipanda/fakeokclient | 379893350457900dd10452c27b774f73a1850ed2 | [
"BSD-3-Clause"
] | null | null | null | setup.py | yuvipanda/fakeokclient | 379893350457900dd10452c27b774f73a1850ed2 | [
"BSD-3-Clause"
] | null | null | null | import setuptools
setuptools.setup(
name="fakeokpy",
version='0.1',
url="https://github.com/yuvipanda/fakeokpy",
author="Yuvi Panda",
author_email="yuvipanda@gmail.com",
license="BSD-3-Clause",
packages=setuptools.find_packages(),
)
| 21.833333 | 48 | 0.679389 | 31 | 262 | 5.677419 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013575 | 0.156489 | 262 | 11 | 49 | 23.818182 | 0.782805 | 0 | 0 | 0 | 0 | 0 | 0.339695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6225ce13fba3710da7c5601f7127c0706c16753 | 3,889 | py | Python | Archive/Presentation/Cat Code Presentation.py | JohanWinther/cat-state-encoding | 3fa95c5c9d9d223e4b9fbc38fe5e27a46d0d12ef | [
"MIT"
] | 3 | 2020-02-10T01:53:29.000Z | 2022-01-13T09:23:40.000Z | Archive/Presentation/Cat Code Presentation.py | JohanWinther/cat-state-encoding | 3fa95c5c9d9d223e4b9fbc38fe5e27a46d0d12ef | [
"MIT"
] | null | null | null | Archive/Presentation/Cat Code Presentation.py | JohanWinther/cat-state-encoding | 3fa95c5c9d9d223e4b9fbc38fe5e27a46d0d12ef | [
"MIT"
] | 1 | 2021-07-31T08:55:43.000Z | 2021-07-31T08:55:43.000Z |
# coding: utf-8
# $ \newcommand{\cat}[2][\phantom{i}]{\ket{C^{#2}_{#1\alpha}}} $
# $ \newcommand{\ket}[1]{|#1\rangle} $
# $ \newcommand{\bra}[1]{\langle#1|} $
# $ \newcommand{\braket}[2]{\langle#1|#2\rangle} $
# $\newcommand{\au}{\hat{a}^\dagger}$
# $\newcommand{\ad}{\hat{a}}$
# $\newcommand{\bu}{\hat{b}^\dagger}$
# ... | 40.092784 | 280 | 0.651839 | 631 | 3,889 | 3.944532 | 0.432647 | 0.044998 | 0.050623 | 0.064685 | 0.073122 | 0.031338 | 0.031338 | 0.031338 | 0.031338 | 0.031338 | 0 | 0.028493 | 0.16071 | 3,889 | 96 | 281 | 40.510417 | 0.733762 | 0.894574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6240d57782a997c5e7d887f0b05f55415199e37 | 965 | py | Python | problems/41/problem_41.py | r1cc4rdo/daily_coding_problem | 6ac85309fad2f64231ac7ab94aa4158e18bdec40 | [
"Unlicense"
] | 158 | 2018-01-25T06:33:30.000Z | 2022-03-14T23:18:05.000Z | problems/41/problem_41.py | r1cc4rdo/daily_coding_problem | 6ac85309fad2f64231ac7ab94aa4158e18bdec40 | [
"Unlicense"
] | 9 | 2018-07-04T00:31:57.000Z | 2020-05-16T21:02:30.000Z | problems/41/problem_41.py | r1cc4rdo/daily_coding_problem | 6ac85309fad2f64231ac7ab94aa4158e18bdec40 | [
"Unlicense"
] | 50 | 2018-06-22T16:48:44.000Z | 2022-01-11T16:45:48.000Z | def coding_problem_41(flights_db, starting_airport):
"""
Given an unordered list of flights taken by someone, each represented as (origin, destination) pairs, and a
starting airport, compute the person's itinerary. If no such itinerary exists, return null. If there are multiple
possible itineraries, ret... | 40.208333 | 117 | 0.609326 | 131 | 965 | 4.351145 | 0.557252 | 0.091228 | 0.105263 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010283 | 0.193782 | 965 | 23 | 118 | 41.956522 | 0.722365 | 0.790674 | 0 | 0 | 0 | 0 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d62ad03a43eda3844d3bfe00ca8827143a6790cf | 288 | py | Python | rgs/__init__.py | slavakargin/RandomGeometricStructures | 02cdc1b4d3128e23b1e78f1f1612b51917894eea | [
"MIT"
] | null | null | null | rgs/__init__.py | slavakargin/RandomGeometricStructures | 02cdc1b4d3128e23b1e78f1f1612b51917894eea | [
"MIT"
] | null | null | null | rgs/__init__.py | slavakargin/RandomGeometricStructures | 02cdc1b4d3128e23b1e78f1f1612b51917894eea | [
"MIT"
] | null | null | null | '''
A package to manipulate and display some random structures,
including meander systems, planar triangulations, and ribbon tilings
Created on May 8, 2021
@author: vladislavkargin
'''
'''
#I prefer blank __init__.py
from . import mndrpy
from . import pmaps
from . import ribbons
''' | 16.941176 | 68 | 0.753472 | 38 | 288 | 5.605263 | 0.868421 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.166667 | 288 | 17 | 69 | 16.941176 | 0.866667 | 0.621528 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d631a41f89b7ce2f5771d40e6b71d43ca80b06fc | 282 | py | Python | api/serializers/RouteDistanceSerializer.py | M4hakala/drf_route_api_example | 894989bf71a6c781c54093a7ac6a8d7a1d951146 | [
"MIT"
] | null | null | null | api/serializers/RouteDistanceSerializer.py | M4hakala/drf_route_api_example | 894989bf71a6c781c54093a7ac6a8d7a1d951146 | [
"MIT"
] | null | null | null | api/serializers/RouteDistanceSerializer.py | M4hakala/drf_route_api_example | 894989bf71a6c781c54093a7ac6a8d7a1d951146 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from api.models import RouteModel
class RouteDistanceSerializer(serializers.ModelSerializer):
km = serializers.FloatField(source='distance', read_only=True)
class Meta:
model = RouteModel
fields = ('route_id', 'km')
| 25.636364 | 66 | 0.737589 | 30 | 282 | 6.833333 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177305 | 282 | 10 | 67 | 28.2 | 0.883621 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d63513361fda0a919145ea884276a37e0a46cdc6 | 4,051 | py | Python | tree/basic.py | Matioz/AlphaZero | d50ca8e57752ada2e5a5f6b817d67b6fe753449d | [
"MIT"
] | 1 | 2020-08-08T14:01:27.000Z | 2020-08-08T14:01:27.000Z | tree/basic.py | Matioz/AlphaZero | d50ca8e57752ada2e5a5f6b817d67b6fe753449d | [
"MIT"
] | 13 | 2018-05-20T10:41:08.000Z | 2022-03-11T23:39:11.000Z | tree/basic.py | piojanu/AlphaZero | 7285559374c331d83320f1ef447fb185880531c6 | [
"MIT"
] | null | null | null | import numpy as np
from abc import ABCMeta, abstractmethod
class Node(object):
"""Represents state in MCTS search tree.
Args:
state (object): The environment state corresponding to this node in the search tree.
Note:
Node object is immutable. Node is left without exit edges (empty dict)... | 28.935714 | 100 | 0.607011 | 515 | 4,051 | 4.673786 | 0.291262 | 0.029913 | 0.024927 | 0.013295 | 0.263398 | 0.225177 | 0.194433 | 0.170337 | 0.133776 | 0.103864 | 0 | 0.004274 | 0.306838 | 4,051 | 139 | 101 | 29.143885 | 0.85292 | 0.470254 | 0 | 0.160714 | 0 | 0 | 0.018558 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 1 | 0.232143 | false | 0 | 0.035714 | 0 | 0.464286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d648b943b6e2a77549b2f9c033aba864d03bf880 | 506 | py | Python | integrations-and-supported-tools/fastai/scripts/Neptune_fastai.py | neptune-ai/examples | e64cfaadb028e2187063fc43768dfee44074729b | [
"MIT"
] | 15 | 2021-06-11T16:35:15.000Z | 2022-03-29T15:53:59.000Z | integrations-and-supported-tools/fastai/scripts/Neptune_fastai.py | neptune-ai/examples | e64cfaadb028e2187063fc43768dfee44074729b | [
"MIT"
] | 12 | 2021-04-26T13:07:50.000Z | 2021-11-15T10:50:03.000Z | integrations-and-supported-tools/fastai/scripts/Neptune_fastai.py | neptune-ai/examples | e64cfaadb028e2187063fc43768dfee44074729b | [
"MIT"
] | 10 | 2021-05-07T16:28:18.000Z | 2022-02-28T21:47:11.000Z | import fastai
from neptune.new.integrations.fastai import NeptuneCallback
from fastai.vision.all import *
import neptune.new as neptune
run = neptune.init(
project="common/fastai-integration", api_token="ANONYMOUS", tags="basic"
)
path = untar_data(URLs.MNIST_TINY)
dls = ImageDataLoaders.from_csv(path)
# Log all... | 26.631579 | 95 | 0.784585 | 73 | 506 | 5.30137 | 0.657534 | 0.05168 | 0.056848 | 0.082687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008811 | 0.102767 | 506 | 18 | 96 | 28.111111 | 0.843612 | 0.075099 | 0 | 0 | 0 | 0 | 0.10515 | 0.053648 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d648e5cbc312d423bf5006d19075c50d0c7bd02f | 17,011 | py | Python | setup.py | Ademan/psycopg2 | bf7e1da0aee83c500a3f9477fd1646e3ee28a3d1 | [
"OpenSSL"
] | 2 | 2016-07-18T08:53:22.000Z | 2018-03-28T16:59:52.000Z | setup.py | Ademan/psycopg2 | bf7e1da0aee83c500a3f9477fd1646e3ee28a3d1 | [
"OpenSSL"
] | null | null | null | setup.py | Ademan/psycopg2 | bf7e1da0aee83c500a3f9477fd1646e3ee28a3d1 | [
"OpenSSL"
] | null | null | null | # setup.py - distutils packaging
#
# Copyright (C) 2003-2010 Federico Di Gregorio <fog@debian.org>
#
# psycopg2 is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at... | 37.970982 | 89 | 0.628064 | 2,099 | 17,011 | 4.930443 | 0.272034 | 0.027829 | 0.027539 | 0.009856 | 0.114214 | 0.073727 | 0.036719 | 0.018166 | 0.00889 | 0 | 0 | 0.009467 | 0.27347 | 17,011 | 447 | 90 | 38.055928 | 0.827899 | 0.157957 | 0 | 0.105085 | 0 | 0 | 0.209302 | 0.019576 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00339 | 0.044068 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.