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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14ba4fe90cb4b517ad2633e86153e277f759083d | 297 | py | Python | rec/urls.py | danielpine/tankonline | b9e009e1934d6a6e93ce1906ae31e17bc161c283 | [
"MIT"
] | null | null | null | rec/urls.py | danielpine/tankonline | b9e009e1934d6a6e93ce1906ae31e17bc161c283 | [
"MIT"
] | null | null | null | rec/urls.py | danielpine/tankonline | b9e009e1934d6a6e93ce1906ae31e17bc161c283 | [
"MIT"
] | null | null | null | # -*-coding:utf-8 -*-
from . import testdb
from . import views
from django.urls import path
from django.conf.urls import url
urlpatterns = [
path('', views.index, name='index'),
url(r'^websocket/', views.websocket_test),
url(r'^tank/', views.tank),
url(r'^snake/', views.snake),
] | 24.75 | 46 | 0.653199 | 42 | 297 | 4.595238 | 0.47619 | 0.062176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004016 | 0.161616 | 297 | 12 | 47 | 24.75 | 0.771084 | 0.063973 | 0 | 0 | 0 | 0 | 0.104693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
14bf060497c79c839725dfee9b4a2168e16faaa4 | 997 | py | Python | examples/passwd_example.py | ZhukovGreen/aiohttp-json-rpc | f359d9106fb837bbad7acccfcdeaecd016b233fd | [
"Apache-2.0"
] | null | null | null | examples/passwd_example.py | ZhukovGreen/aiohttp-json-rpc | f359d9106fb837bbad7acccfcdeaecd016b233fd | [
"Apache-2.0"
] | 1 | 2021-06-10T23:12:18.000Z | 2021-06-10T23:12:18.000Z | examples/passwd_example.py | ZhukovGreen/aiohttp-json-rpc | f359d9106fb837bbad7acccfcdeaecd016b233fd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Florian Scherf <f.scherf@pengutronix.de>
from aiohttp_json_rpc.auth.passwd import PasswdAuthBackend
from aiohttp_json_rpc.auth import login_required
from aiohttp_json_rpc import JsonRpc
from aiohttp.web import Application
import asyncio
import os
@asyncio.corou... | 22.155556 | 74 | 0.673019 | 128 | 997 | 4.992188 | 0.5 | 0.068858 | 0.070423 | 0.084507 | 0.068858 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011278 | 0.199599 | 997 | 44 | 75 | 22.659091 | 0.789474 | 0.110331 | 0 | 0.071429 | 0 | 0 | 0.03624 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.107143 | 0.214286 | 0.071429 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
14bf91be77097e642441a7318f2a35e76129e52a | 1,760 | py | Python | ddc_scripts/hosting/uptimerobot.py | cp4cds/cmip6_range_check_2 | 6fca2632029a2adb9736bfc1382b39f82d8a27e1 | [
"Apache-2.0"
] | null | null | null | ddc_scripts/hosting/uptimerobot.py | cp4cds/cmip6_range_check_2 | 6fca2632029a2adb9736bfc1382b39f82d8a27e1 | [
"Apache-2.0"
] | 1 | 2021-09-27T15:18:39.000Z | 2021-09-27T15:18:39.000Z | ddc_scripts/hosting/uptimerobot.py | cp4cds/cmip6_range_check_2 | 6fca2632029a2adb9736bfc1382b39f82d8a27e1 | [
"Apache-2.0"
] | null | null | null | import glob, json
import collections
import datetime
class Scan01(object):
def __init__(self,years=[2018,2019]):
from datetime import datetime as dt
self._dt = dt
ii = []
for year in years:
ii += glob.glob( '/datacentre/stats/uptime/%s/uptimerobot.*.json' % year )
dd = collections.defaultd... | 30.877193 | 90 | 0.569318 | 247 | 1,760 | 4.012146 | 0.299595 | 0.177598 | 0.104945 | 0.058527 | 0.018163 | 0.018163 | 0 | 0 | 0 | 0 | 0 | 0.027967 | 0.248295 | 1,760 | 56 | 91 | 31.428571 | 0.721088 | 0 | 0 | 0 | 0 | 0 | 0.127273 | 0.026136 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085106 | null | null | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1ad244995bf59128c440e9a8aca7174b5a4c7997 | 2,616 | py | Python | user/models.py | thiagosouzalink/blogphoto_Django | 7d09f44b196897c4d31fff2eff8d2a164e44db27 | [
"MIT"
] | 3 | 2021-01-28T21:21:05.000Z | 2021-03-17T21:28:18.000Z | user/models.py | thiagosouzalink/blogphoto_Django | 7d09f44b196897c4d31fff2eff8d2a164e44db27 | [
"MIT"
] | null | null | null | user/models.py | thiagosouzalink/blogphoto_Django | 7d09f44b196897c4d31fff2eff8d2a164e44db27 | [
"MIT"
] | null | null | null | from django.db import models
from django.urls import reverse
from django.contrib.auth.models import AbstractUser, BaseUserManager
class UserManager(BaseUserManager):
""" Base para customizar User"""
use_in_migrations = True
def _create_user(self, username, email, password, **extra_fields):
i... | 34.421053 | 114 | 0.688838 | 321 | 2,616 | 5.417445 | 0.320872 | 0.075906 | 0.06038 | 0.074756 | 0.323749 | 0.261645 | 0.215066 | 0.215066 | 0.215066 | 0.067855 | 0 | 0.010511 | 0.199924 | 2,616 | 75 | 115 | 34.88 | 0.820354 | 0.009557 | 0 | 0.081633 | 0 | 0 | 0.160652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122449 | false | 0.122449 | 0.061224 | 0.061224 | 0.632653 | 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 |
1ad381f73a38d802bcea0b83343f3c902e5003ee | 1,780 | py | Python | Bluetooth_Low-Energy_MITM/interactive_session.py | PaulPauls/Bluetooth_LE_MITM | afee629c95f407622d3be48841c835c78696dc5c | [
"BSD-3-Clause"
] | 7 | 2019-04-11T06:46:25.000Z | 2021-09-24T08:47:06.000Z | Bluetooth_Low-Energy_MITM/interactive_session.py | PaulPauls/Bluetooth_LE_MITM | afee629c95f407622d3be48841c835c78696dc5c | [
"BSD-3-Clause"
] | null | null | null | Bluetooth_Low-Energy_MITM/interactive_session.py | PaulPauls/Bluetooth_LE_MITM | afee629c95f407622d3be48841c835c78696dc5c | [
"BSD-3-Clause"
] | 1 | 2019-04-11T06:46:27.000Z | 2019-04-11T06:46:27.000Z | import code
import logging
from threading import Thread
from .helpers import setup_logging
# Set up logging
setup_logging()
logger = logging.getLogger(__name__)
class InteractiveSession:
"""
Starting an InteractiveConsole and constantly checking
"""
mitm_handler = None
def __init__(self, mitm_... | 30.689655 | 106 | 0.722472 | 218 | 1,780 | 5.587156 | 0.325688 | 0.135468 | 0.147783 | 0.077997 | 0.307061 | 0.20197 | 0.173235 | 0.173235 | 0.173235 | 0.173235 | 0 | 0 | 0.200562 | 1,780 | 57 | 107 | 31.22807 | 0.855938 | 0.170225 | 0 | 0.058824 | 0 | 0 | 0.027435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264706 | false | 0 | 0.117647 | 0 | 0.441176 | 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 |
1ad975fbe331c44b590072e7a1354def99f64f89 | 336 | py | Python | WorkStation/similar/test.py | HOHOOO/HOHO_Markdown | d9bd1d84346e67ae754e7fd034562057e4573eb5 | [
"MIT"
] | null | null | null | WorkStation/similar/test.py | HOHOOO/HOHO_Markdown | d9bd1d84346e67ae754e7fd034562057e4573eb5 | [
"MIT"
] | 1 | 2017-08-23T13:12:53.000Z | 2017-08-23T13:37:15.000Z | WorkStation/similar/test.py | HOHOOO/HOHO_Markdown | d9bd1d84346e67ae754e7fd034562057e4573eb5 | [
"MIT"
] | 2 | 2017-08-23T13:14:50.000Z | 2018-09-29T05:06:00.000Z | class Main(RequestHandler):
@gen.engine
@tornado.web.asynchronous
def get(self):
if _DEBUG:
pdb.set_trace()
http_client = AsyncHTTPClient()
response = yield gen.Task(http_client.fetch, "http://code.rootk.com")
self.write(str(response))
... | 25.846154 | 85 | 0.571429 | 36 | 336 | 5.222222 | 0.805556 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 336 | 12 | 86 | 28 | 0.813853 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1adb8cd88f6d4c68c1b24a1d5ec19c954f69b719 | 1,462 | py | Python | Python_basics/day05.py | suleisulei/Violent_Python_Examples | df88fc8b0dde5fac135647d46130e98a4f6b90e2 | [
"Apache-2.0"
] | 2 | 2019-07-30T13:47:43.000Z | 2021-12-27T09:03:47.000Z | Python_basics/day05.py | suleisulei/Violent_Python_Examples | df88fc8b0dde5fac135647d46130e98a4f6b90e2 | [
"Apache-2.0"
] | null | null | null | Python_basics/day05.py | suleisulei/Violent_Python_Examples | df88fc8b0dde5fac135647d46130e98a4f6b90e2 | [
"Apache-2.0"
] | null | null | null | # _*_coding:utf8-
# class
# simple class
# class Joker:
# print '[+] Joker is a good man'
# initialize class
class joker:
# initialization,"self",initialization class joker or "yourself"
# actually, self can be changed, but default using "self"
# enjoin local variables
def __init__(self):
... | 25.649123 | 86 | 0.588235 | 198 | 1,462 | 4.141414 | 0.308081 | 0.102439 | 0.040244 | 0.05122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02346 | 0.300274 | 1,462 | 56 | 87 | 26.107143 | 0.778104 | 0.302326 | 0 | 0.133333 | 0 | 0 | 0.085568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1addcd304898a5396675a157ce6ee903d56dbae2 | 2,570 | py | Python | cpdb/pinboard/fields.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 25 | 2018-07-20T22:31:40.000Z | 2021-07-15T16:58:41.000Z | cpdb/pinboard/fields.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 13 | 2018-06-18T23:08:47.000Z | 2022-02-10T07:38:25.000Z | cpdb/pinboard/fields.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 6 | 2018-05-17T21:59:43.000Z | 2020-11-17T00:30:26.000Z | from django.db import models
from django.utils.translation import gettext_lazy as _
from pinboard.utils import int_to_zero_padded_hex, zero_padded_hex_to_int, generate_hex_from_uuid
class HexFieldError(Exception):
pass
class HexFieldTooManyCollisionError(HexFieldError):
pass
# Never rename or change this... | 35.205479 | 115 | 0.645914 | 326 | 2,570 | 4.831288 | 0.312883 | 0.062857 | 0.066032 | 0.035556 | 0.194286 | 0.16 | 0.16 | 0.16 | 0.087619 | 0.087619 | 0 | 0.004849 | 0.277821 | 2,570 | 72 | 116 | 35.694444 | 0.84375 | 0.052529 | 0 | 0.259259 | 1 | 0 | 0.064145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.037037 | 0.055556 | 0 | 0.425926 | 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 |
1aed7a2801abb3fafda1e9bf3cfefb65d777c694 | 909 | py | Python | tensorflow-learning/tensorflow-lab/linear-regression/mini-exam/2.py | hojeong3709/ML | 2fdd8d22dc5584103397559cb23a6efa8bb59637 | [
"MIT"
] | null | null | null | tensorflow-learning/tensorflow-lab/linear-regression/mini-exam/2.py | hojeong3709/ML | 2fdd8d22dc5584103397559cb23a6efa8bb59637 | [
"MIT"
] | 2 | 2020-09-26T00:59:22.000Z | 2020-11-13T18:46:29.000Z | tensorflow-learning/tensorflow-lab/linear-regression/mini-exam/2.py | hojeong3709/numpy-pandas-tensorflow-learning | 2fdd8d22dc5584103397559cb23a6efa8bb59637 | [
"MIT"
] | null | null | null | # electric.csv를 읽어서 w,b를 구하고
# 실측데이터 scatter, 예측데이터는 라인차트를 그리시요.
# 전기생산량이 5인경우 전기사용량을 예측하시오
# 전기생산량, 전기사용량
# Keras 버전으로
import tensorflow as tf
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from tensorflow.keras.layers import Dense
from tensorflow.keras import Sequential
from tensorflow.keras.o... | 25.25 | 106 | 0.738174 | 135 | 909 | 4.948148 | 0.622222 | 0.062874 | 0.085329 | 0.062874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01968 | 0.105611 | 909 | 36 | 107 | 25.25 | 0.801968 | 0.163916 | 0 | 0 | 0 | 0 | 0.130146 | 0.034529 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
21019aa8fb514ae2f924b174916277f27f12d720 | 9,817 | py | Python | pytype/tests/test_solver.py | JelleZijlstra/pytype | 962a0ebc05bd24dea172381b2bedcc547ba53dd5 | [
"Apache-2.0"
] | 11 | 2017-02-12T12:19:50.000Z | 2022-03-06T08:56:48.000Z | pytype/tests/test_solver.py | JelleZijlstra/pytype | 962a0ebc05bd24dea172381b2bedcc547ba53dd5 | [
"Apache-2.0"
] | null | null | null | pytype/tests/test_solver.py | JelleZijlstra/pytype | 962a0ebc05bd24dea172381b2bedcc547ba53dd5 | [
"Apache-2.0"
] | 2 | 2017-06-27T14:41:57.000Z | 2021-12-05T11:27:33.000Z | """Test cases that need solve_unknowns."""
import unittest
from pytype import utils
from pytype.tests import test_inference
class SolverTests(test_inference.InferenceTest):
"""Tests for type inference that also runs convert_structural.py."""
def testAmbiguousAttr(self):
ty = self.Infer("""
class Nod... | 26.039788 | 88 | 0.547316 | 1,105 | 9,817 | 4.786425 | 0.165611 | 0.025714 | 0.077141 | 0.087351 | 0.527132 | 0.483834 | 0.429004 | 0.403857 | 0.36869 | 0.326527 | 0 | 0.003907 | 0.296119 | 9,817 | 376 | 89 | 26.109043 | 0.761505 | 0.021901 | 0 | 0.560748 | 0 | 0.006231 | 0.608342 | 0.031491 | 0 | 0 | 0 | 0.00266 | 0.071651 | 1 | 0.074766 | false | 0.018692 | 0.074766 | 0 | 0.193146 | 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 |
21095ce6c42a2b251597e4f3d0af5d35e3bd2fc5 | 2,122 | py | Python | cogs/errors.py | Skelmis/PyMcBot | b74b4f344bbcc711974f2551f75da3ddb8874e6f | [
"Apache-2.0"
] | 2 | 2020-02-09T08:55:33.000Z | 2021-03-31T20:53:11.000Z | cogs/errors.py | Skelmis/PyMcBot | b74b4f344bbcc711974f2551f75da3ddb8874e6f | [
"Apache-2.0"
] | 2 | 2020-08-20T14:32:49.000Z | 2021-02-07T03:28:45.000Z | cogs/errors.py | Skelmis/PyMcBot | b74b4f344bbcc711974f2551f75da3ddb8874e6f | [
"Apache-2.0"
] | 3 | 2020-10-27T14:27:38.000Z | 2020-12-08T15:11:54.000Z | import logging
import discord
from discord.ext import commands
class Errors(commands.Cog, name="Error handler"):
def __init__(self, bot):
self.bot = bot
self.logger = logging.getLogger(__name__)
@commands.Cog.listener()
async def on_ready(self):
self.logger.info("I'm ready!")
... | 31.671642 | 118 | 0.614986 | 245 | 2,122 | 5.257143 | 0.355102 | 0.111025 | 0.102484 | 0.174689 | 0.40528 | 0.40528 | 0.360248 | 0.360248 | 0.156832 | 0.156832 | 0 | 0 | 0.273798 | 2,122 | 66 | 119 | 32.151515 | 0.835821 | 0 | 0 | 0.217391 | 0 | 0.021739 | 0.207352 | 0.014138 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.065217 | 0 | 0.130435 | 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 |
210c027a778da81f4b906e363775b686062cfe9b | 1,096 | py | Python | nlp_functions.py | allaccountstaken/nlp_with_nltk | 702b19f0e77859be75c6bf3b70081407f612f8e4 | [
"MIT"
] | 1 | 2020-12-28T12:36:59.000Z | 2020-12-28T12:36:59.000Z | nlp_functions.py | allaccountstaken/nlp_with_nltk | 702b19f0e77859be75c6bf3b70081407f612f8e4 | [
"MIT"
] | null | null | null | nlp_functions.py | allaccountstaken/nlp_with_nltk | 702b19f0e77859be75c6bf3b70081407f612f8e4 | [
"MIT"
] | null | null | null | def run_imports():
import re
import string
import nltk
import pandas as pd
def clean_text(text):
import re
import string.punctuation
import nltk
from nltk.corpus import stopwords
import pandas as pd
stopwords = nltk.corpus.stopwords.words('english')
text = "".join([char ... | 19.927273 | 77 | 0.668796 | 141 | 1,096 | 5.106383 | 0.319149 | 0.126389 | 0.077778 | 0.111111 | 0.319444 | 0.280556 | 0.280556 | 0.191667 | 0.191667 | 0.191667 | 0 | 0 | 0.25365 | 1,096 | 54 | 78 | 20.296296 | 0.880196 | 0.086679 | 0 | 0.46875 | 0 | 0 | 0.010267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5625 | 0 | 0.78125 | 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 |
211009cfce8265f8f6fc182e57e2cfcb6afbc616 | 1,134 | py | Python | swarm_tasks/Examples/full_tasks/contam_removal-1.py | rmvanarse/swarm_tasks | 3335297ba8fcdbff756ae519002bcce919d54a84 | [
"MIT"
] | 6 | 2021-03-13T12:54:18.000Z | 2022-01-29T12:12:28.000Z | swarm_tasks/Examples/full_tasks/contam_removal-1.py | rmvanarse/swarm_tasks | 3335297ba8fcdbff756ae519002bcce919d54a84 | [
"MIT"
] | null | null | null | swarm_tasks/Examples/full_tasks/contam_removal-1.py | rmvanarse/swarm_tasks | 3335297ba8fcdbff756ae519002bcce919d54a84 | [
"MIT"
] | 2 | 2021-08-06T15:02:15.000Z | 2022-02-08T12:11:30.000Z | print("Running cont_rem example 1\nUsing source files for package imports\nPARAMETERS:\
Using default hardcoded parameters (listed in swarm_tasks/logs)")
import sys,os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__),'../../..')))
print(sys.path)
import swarm_tasks
#Set demo parameters dire... | 22.235294 | 87 | 0.779541 | 187 | 1,134 | 4.57754 | 0.44385 | 0.128505 | 0.087617 | 0.093458 | 0.221963 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028884 | 0.114638 | 1,134 | 50 | 88 | 22.68 | 0.823705 | 0.039683 | 0 | 0.0625 | 0 | 0 | 0.016575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.34375 | 0 | 0.34375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2110d848e4a7aaff842579b9179652b31ca89567 | 781 | py | Python | setup.py | StreetVC/plaid-python | 8085566cf5a2cc8a2e7333d7c549380e446e0c05 | [
"MIT"
] | 1 | 2021-09-03T19:11:16.000Z | 2021-09-03T19:11:16.000Z | setup.py | gae123/python-plaid | ec89de67ffc44bcf07e8a39a6a70cc92c769af84 | [
"MIT"
] | null | null | null | setup.py | gae123/python-plaid | ec89de67ffc44bcf07e8a39a6a70cc92c769af84 | [
"MIT"
] | null | null | null | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='python-plaid',
version='0.1.0',
description='Simple Python API client for Plaid',
long_description='',
keywords='api, client, plaid',
author='Chris Forrette',
author_email='chris... | 26.931034 | 71 | 0.672215 | 88 | 781 | 5.829545 | 0.647727 | 0.050682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009449 | 0.18694 | 781 | 28 | 72 | 27.892857 | 0.798425 | 0 | 0 | 0 | 0 | 0 | 0.395647 | 0.029449 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 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 |
211132ad7de3889007e021bcd8d4b04c2c1694b4 | 1,232 | py | Python | solutions/problem_008.py | ksvr444/daily-coding-problem | 5d9f488f81c616847ee4e9e48974523ec2d598d7 | [
"MIT"
] | 1,921 | 2018-11-13T18:19:56.000Z | 2021-11-15T14:25:41.000Z | solutions/problem_008.py | MohitIndian/daily-coding-problem | 5d9f488f81c616847ee4e9e48974523ec2d598d7 | [
"MIT"
] | 2 | 2019-07-19T01:06:16.000Z | 2019-08-01T22:21:36.000Z | solutions/problem_008.py | MohitIndian/daily-coding-problem | 5d9f488f81c616847ee4e9e48974523ec2d598d7 | [
"MIT"
] | 1,066 | 2018-11-19T19:06:55.000Z | 2021-11-13T12:33:56.000Z | class Node:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
def __repr__(self):
return str(self.data)
def count_unival_trees(root):
if not root:
return 0
elif not root.left and not root.right:
return 1
elif not root.... | 26.212766 | 81 | 0.676136 | 206 | 1,232 | 3.757282 | 0.174757 | 0.142119 | 0.206718 | 0.129199 | 0.416021 | 0.134367 | 0.080103 | 0 | 0 | 0 | 0 | 0.018595 | 0.214286 | 1,232 | 46 | 82 | 26.782609 | 0.780992 | 0 | 0 | 0 | 0 | 0 | 0.005682 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 1 | 0.076923 | false | 0 | 0 | 0.025641 | 0.25641 | 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 |
2114d648881c7ba7f5d1a6356e4b72fea72679bf | 1,451 | py | Python | Lists/List_Operations.py | maj3r1819/Data-Structures-and-Algorithms | d7587c762b30c1945ebbac60794370215613b670 | [
"MIT"
] | null | null | null | Lists/List_Operations.py | maj3r1819/Data-Structures-and-Algorithms | d7587c762b30c1945ebbac60794370215613b670 | [
"MIT"
] | null | null | null | Lists/List_Operations.py | maj3r1819/Data-Structures-and-Algorithms | d7587c762b30c1945ebbac60794370215613b670 | [
"MIT"
] | null | null | null | # List Operations and Functions
# '+' Operator
print('-----------+ Operator------------')
a = [1,2,3]
b = [4,5,6]
c = a + b
print(c)
print('----------* Operator--------------')
# '*' Operator
a1 = a * 2
print(a1)
print('--------len function----------------')
print(len(a))
print('--------max function----------------')
... | 25.017241 | 87 | 0.565127 | 169 | 1,451 | 4.852071 | 0.414201 | 0.079268 | 0.043902 | 0.056098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014855 | 0.118539 | 1,451 | 57 | 88 | 25.45614 | 0.626271 | 0.10958 | 0 | 0 | 0 | 0 | 0.414786 | 0.167315 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.577778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
2116cd6dead4da94167015b3c7b5c3044f79941d | 1,728 | py | Python | app/schema/user.py | ne-bknn/yatb | b921f2bf0dcf796d1e82b7773f39fc99c63a7483 | [
"Apache-2.0"
] | 15 | 2021-01-13T12:47:17.000Z | 2022-02-14T13:24:51.000Z | app/schema/user.py | ne-bknn/yatb | b921f2bf0dcf796d1e82b7773f39fc99c63a7483 | [
"Apache-2.0"
] | null | null | null | app/schema/user.py | ne-bknn/yatb | b921f2bf0dcf796d1e82b7773f39fc99c63a7483 | [
"Apache-2.0"
] | 1 | 2021-09-28T03:05:46.000Z | 2021-09-28T03:05:46.000Z | import binascii
import datetime
import hashlib
import hmac
import os
import uuid
from typing import Dict, List, Optional, Type, Union
from fastapi import HTTPException, Query, status
from pydantic import BaseModel, Extra, validator
from ..config import settings
from .auth import TYPING_AUTH
from . import EBaseModel, ... | 24.338028 | 91 | 0.630787 | 214 | 1,728 | 4.845794 | 0.448598 | 0.023144 | 0.040501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003888 | 0.255787 | 1,728 | 70 | 92 | 24.685714 | 0.802488 | 0.009259 | 0 | 0 | 0 | 0 | 0.109942 | 0.030994 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092593 | false | 0 | 0.222222 | 0.055556 | 0.648148 | 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 |
211a10166f1da300f8744f6ae71da5a4bc58fa95 | 4,559 | py | Python | segmentation_credit_card/app.py | cbarros7/ML_apps | a88269f1c5edfcd9aac35bd0551c2a82191e8d70 | [
"MIT"
] | null | null | null | segmentation_credit_card/app.py | cbarros7/ML_apps | a88269f1c5edfcd9aac35bd0551c2a82191e8d70 | [
"MIT"
] | null | null | null | segmentation_credit_card/app.py | cbarros7/ML_apps | a88269f1c5edfcd9aac35bd0551c2a82191e8d70 | [
"MIT"
] | null | null | null |
import joblib
import numpy as np
import pandas as pd
import streamlit as st
APP_FILE = "app.py"
MODEL_JOBLIB_FILE = "model.joblib"
def main():
"""This function runs/ orchestrates the Machine Learning App Registry"""
st.markdown(
"""
# Machine Learning App
The main objective of this app is buildin... | 44.696078 | 155 | 0.623602 | 582 | 4,559 | 4.814433 | 0.37457 | 0.03212 | 0.023198 | 0.015703 | 0.089579 | 0.062099 | 0.023555 | 0 | 0 | 0 | 0 | 0.005253 | 0.290195 | 4,559 | 101 | 156 | 45.138614 | 0.86063 | 0.041676 | 0 | 0.111111 | 0 | 0.111111 | 0.649202 | 0.005489 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.055556 | 0 | 0.111111 | 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 |
2120615d2246f4481af7db104a2b1fcd7eaf4067 | 819 | py | Python | setup.py | i3thuan5/TuiTse-TsuSin | b2e12d0565ca2a5c09af0e9f91048233724d8d6c | [
"MIT"
] | null | null | null | setup.py | i3thuan5/TuiTse-TsuSin | b2e12d0565ca2a5c09af0e9f91048233724d8d6c | [
"MIT"
] | 4 | 2020-02-17T02:46:07.000Z | 2021-10-14T06:52:11.000Z | setup.py | i3thuan5/TuiTse-TsuSin | b2e12d0565ca2a5c09af0e9f91048233724d8d6c | [
"MIT"
] | null | null | null | from distutils.core import setup
from panpun import PANPUN
setup(
name='TuiTse-TsuSin',
description='對齊資訊',
long_description='共兩句漢羅對--起-來,掠出字數落勾ê位a̍h-sī無合教典ê用字',
packages=['tuitse'],
version=PANPUN,
author='Tshuà Bûn-lī',
author_email='ithuan@ithuan.tw',
url='https://ithuan.tw/',
... | 26.419355 | 61 | 0.598291 | 89 | 819 | 5.47191 | 0.741573 | 0.049281 | 0.102669 | 0.106776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022329 | 0.234432 | 819 | 30 | 62 | 27.3 | 0.752791 | 0 | 0 | 0.111111 | 0 | 0 | 0.478632 | 0.07326 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.074074 | 0 | 0.074074 | 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 |
212c5d152ed5e199610e9ed07fc6d987cf82b3c7 | 2,072 | py | Python | setup.py | remotesensinginfo/sen1_ard_gamma | 8640d796e71118ecefd0e7f955c2b7526c709cf5 | [
"Apache-2.0"
] | 1 | 2020-05-28T17:49:03.000Z | 2020-05-28T17:49:03.000Z | setup.py | remotesensinginfo/sen1_ard_gamma | 8640d796e71118ecefd0e7f955c2b7526c709cf5 | [
"Apache-2.0"
] | null | null | null | setup.py | remotesensinginfo/sen1_ard_gamma | 8640d796e71118ecefd0e7f955c2b7526c709cf5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
Setup script for sen1_ard_gamma. Use like this for Unix:
$ python setup.py install
"""
# Copyright 2019 Pete Bunting
#
# 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 a... | 35.118644 | 87 | 0.676641 | 275 | 2,072 | 5.014545 | 0.487273 | 0.045685 | 0.078318 | 0.113125 | 0.101523 | 0.039159 | 0.039159 | 0 | 0 | 0 | 0 | 0.028898 | 0.198359 | 2,072 | 58 | 88 | 35.724138 | 0.801325 | 0.388031 | 0 | 0 | 0 | 0 | 0.59466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
213892f1ff425c306bf0191e7b2341b4ae12ef29 | 493 | py | Python | leetcode/leetcode_14.py | HuangJingGitHub/PracMakePert_py | 1e947b0804fdcd50b2a3afc0af9d824cb55978cd | [
"Apache-2.0"
] | 2 | 2019-05-28T15:04:20.000Z | 2019-05-28T15:04:22.000Z | leetcode/leetcode_14.py | HuangJingGitHub/PracMakePert_py | 1e947b0804fdcd50b2a3afc0af9d824cb55978cd | [
"Apache-2.0"
] | null | null | null | leetcode/leetcode_14.py | HuangJingGitHub/PracMakePert_py | 1e947b0804fdcd50b2a3afc0af9d824cb55978cd | [
"Apache-2.0"
] | 1 | 2019-08-30T06:06:33.000Z | 2019-08-30T06:06:33.000Z | class Solution:
def longestCommonPrefix(self, strs: List[str]) -> str:
if len(strs) == 0:
return ""
resLen = 0
while True:
if len(strs[0]) == resLen:
return strs[0]
curChar = strs[0][resLen]
for i in range(1, len(strs)):
... | 30.8125 | 72 | 0.458418 | 57 | 493 | 3.964912 | 0.385965 | 0.132743 | 0.19469 | 0.088496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031034 | 0.411765 | 493 | 15 | 73 | 32.866667 | 0.748276 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.428571 | 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 |
213f8c5b23fa5472be4db0b2cf07a459fa4d8405 | 791 | py | Python | yatube/users/forms.py | kotofey97/yatube_project_finale | 01a11edd771035f961eecfd8dbf0dc004cee537d | [
"MIT"
] | 3 | 2021-10-07T14:11:32.000Z | 2021-12-07T12:23:53.000Z | yatube/users/forms.py | kotofey97/yatube_project_finale | 01a11edd771035f961eecfd8dbf0dc004cee537d | [
"MIT"
] | null | null | null | yatube/users/forms.py | kotofey97/yatube_project_finale | 01a11edd771035f961eecfd8dbf0dc004cee537d | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.contrib.auth.forms import (PasswordChangeForm, PasswordResetForm,
SetPasswordForm, UserCreationForm)
User = get_user_model()
class CreationForm(UserCreationForm):
class Meta(UserCreationForm.Meta):
model = U... | 26.366667 | 77 | 0.668774 | 73 | 791 | 7.09589 | 0.410959 | 0.069498 | 0.100386 | 0.146718 | 0.138996 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006634 | 0.237674 | 791 | 29 | 78 | 27.275862 | 0.852405 | 0 | 0 | 0.35 | 0 | 0 | 0.127686 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.35 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2140cbde7764a06ba45439af5f59356425a74686 | 5,493 | py | Python | translatex/__init__.py | lcmonteiro/tool-translatex | 378bdd6094e89acadf769ead220770d7e2674a47 | [
"MIT"
] | 2 | 2020-06-06T07:52:37.000Z | 2020-07-08T16:34:44.000Z | translatex/__init__.py | lcmonteiro/tool-translatex | 378bdd6094e89acadf769ead220770d7e2674a47 | [
"MIT"
] | null | null | null | translatex/__init__.py | lcmonteiro/tool-translatex | 378bdd6094e89acadf769ead220770d7e2674a47 | [
"MIT"
] | null | null | null | # #################################################################################################
# -------------------------------------------------------------------------------------------------
# File: __init__.py
# Author: Luis Monteiro
#
# Created on nov 11, 2019, 22:00 PM
# ----------------------------------... | 43.251969 | 99 | 0.292918 | 322 | 5,493 | 4.850932 | 0.335404 | 0.035851 | 0.043534 | 0.03265 | 0.101152 | 0.043534 | 0 | 0 | 0 | 0 | 0 | 0.004851 | 0.174404 | 5,493 | 127 | 100 | 43.251969 | 0.339581 | 0.390133 | 0 | 0.24 | 0 | 0 | 0.063281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.093333 | 0 | 0.213333 | 0.053333 | 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 |
21446c6beac6803898c9a298a4fb0bdb821b8f4f | 260 | py | Python | tghs/__init__.py | csala/trello-github-sync | 9128bbfda8f7bc82274f22d50685c7be6f16f570 | [
"MIT"
] | 2 | 2019-01-29T08:09:15.000Z | 2019-02-04T17:18:55.000Z | tghs/__init__.py | csala/trello-github-sync | 9128bbfda8f7bc82274f22d50685c7be6f16f570 | [
"MIT"
] | null | null | null | tghs/__init__.py | csala/trello-github-sync | 9128bbfda8f7bc82274f22d50685c7be6f16f570 | [
"MIT"
] | 2 | 2019-02-04T17:18:59.000Z | 2021-05-05T15:22:45.000Z | # -*- coding: utf-8 -*-
"""Top-level package for Trello Github Sync."""
__author__ = """Carles Sala"""
__email__ = 'carles@pythiac.com'
__version__ = '0.1.0-dev'
from tghs.synchronizer import TrelloGitHubSynchronizer
__all__ = ['TrelloGitHubSynchronizer']
| 21.666667 | 54 | 0.719231 | 29 | 260 | 5.896552 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.123077 | 260 | 11 | 55 | 23.636364 | 0.732456 | 0.246154 | 0 | 0 | 0 | 0 | 0.326316 | 0.126316 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
214f916e291f1ac45253585e8d1c4a8b8ea6e81f | 246 | py | Python | CS Practical/A06.py | adityaruplaha/adityaruplaha-school-projects | b19d06f356fafdbe4189bade59d4a4d1ffec567f | [
"MIT"
] | null | null | null | CS Practical/A06.py | adityaruplaha/adityaruplaha-school-projects | b19d06f356fafdbe4189bade59d4a4d1ffec567f | [
"MIT"
] | null | null | null | CS Practical/A06.py | adityaruplaha/adityaruplaha-school-projects | b19d06f356fafdbe4189bade59d4a4d1ffec567f | [
"MIT"
] | null | null | null | # Avg week temperature
print("Enter temperatures of 7 days:")
a = float(input())
b = float(input())
c = float(input())
d = float(input())
e = float(input())
f = float(input())
g = float(input())
print("Average temperature:", (a+b+c+d+e+f+g)/7)
| 18.923077 | 48 | 0.630081 | 41 | 246 | 3.780488 | 0.463415 | 0.451613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009479 | 0.142276 | 246 | 12 | 49 | 20.5 | 0.725118 | 0.081301 | 0 | 0 | 0 | 0 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 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 |
215017a62ce8ef795cd5ea0ba263ad8beaaada52 | 1,663 | py | Python | locations/spiders/nike.py | thismakessand/alltheplaces | b6116199844c9e88bff3a691290f07a7457470ba | [
"MIT"
] | 1 | 2019-08-19T10:00:55.000Z | 2019-08-19T10:00:55.000Z | locations/spiders/nike.py | thismakessand/alltheplaces | b6116199844c9e88bff3a691290f07a7457470ba | [
"MIT"
] | null | null | null | locations/spiders/nike.py | thismakessand/alltheplaces | b6116199844c9e88bff3a691290f07a7457470ba | [
"MIT"
] | null | null | null | import scrapy
import re
from locations.items import GeojsonPointItem
class NikeSpider(scrapy.Spider):
name = "nike"
allowed_domains = ["www.nike.com"]
download_delay = 1.5
start_urls = (
'https://www.nike.com/us/en_us/retail/en/directory',
)
def parse_stores(self, response):
p... | 50.393939 | 119 | 0.643416 | 180 | 1,663 | 5.861111 | 0.438889 | 0.1109 | 0.166825 | 0.204739 | 0.305213 | 0.305213 | 0.083412 | 0 | 0 | 0 | 0 | 0.002169 | 0.16837 | 1,663 | 32 | 120 | 51.96875 | 0.760665 | 0 | 0 | 0 | 0 | 0.035714 | 0.386049 | 0.311485 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.107143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
215214c06508b559778e8fae8f654cc275c3a48a | 1,099 | py | Python | run_route_scripts/generate_tests/create_random_points_within_radius.py | mixvit/valhalla | 65d56caf85103f267452e7b79e49ec66a9bf480e | [
"MIT"
] | 1 | 2020-01-12T21:14:45.000Z | 2020-01-12T21:14:45.000Z | run_route_scripts/generate_tests/create_random_points_within_radius.py | Bolaxax/valhalla | f5e464a1f7f2d75d08ea6db6bb8418c0f500eccb | [
"MIT"
] | 1 | 2020-03-08T05:08:35.000Z | 2020-03-08T05:08:35.000Z | run_route_scripts/generate_tests/create_random_points_within_radius.py | Bolaxax/valhalla | f5e464a1f7f2d75d08ea6db6bb8418c0f500eccb | [
"MIT"
] | 1 | 2020-11-01T14:49:36.000Z | 2020-11-01T14:49:36.000Z | #!/usr/bin/env python
import sys
import math
import random
import json
### Enter a location in an urban area and then generate a set random locations nearby.
### Continue to use a similar process to generate a smaller number near surrounding urban areas
### until you get the number of locations you need. Next, these ... | 31.4 | 113 | 0.694268 | 185 | 1,099 | 4.059459 | 0.497297 | 0.037284 | 0.026631 | 0.055925 | 0.058589 | 0.058589 | 0.058589 | 0 | 0 | 0 | 0 | 0.030405 | 0.191993 | 1,099 | 34 | 114 | 32.323529 | 0.815315 | 0.385805 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.181818 | 0 | 0.272727 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2155ffa1fb8889dedb92ab112803118fd3bda0f0 | 259 | py | Python | test.py | xuegangliu/Python-Learning | 43e8c57debf6ec186d093dcc0e83c1a628982715 | [
"MIT"
] | null | null | null | test.py | xuegangliu/Python-Learning | 43e8c57debf6ec186d093dcc0e83c1a628982715 | [
"MIT"
] | null | null | null | test.py | xuegangliu/Python-Learning | 43e8c57debf6ec186d093dcc0e83c1a628982715 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# coding=utf-8
# author: xuegangliu
'''
python import模块时, 是在sys.path里按顺序查找的。
sys.path是一个列表,里面以字符串的形式存储了许多路径。
'''
import tests.module_test as module_test
if __name__ == '__main__':
module_test.test_module()
print('bulid success!!') | 18.5 | 39 | 0.72973 | 32 | 259 | 5.53125 | 0.78125 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004425 | 0.127413 | 259 | 14 | 40 | 18.5 | 0.778761 | 0.451737 | 0 | 0 | 0 | 0 | 0.172932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2156a8d4f2fce63b0cc159b753e74a89835e0dd8 | 616 | py | Python | setup.py | fchapoton/openapc-treemaps | 65806c367716474a57276c3d4791cad25b730cbc | [
"MIT"
] | null | null | null | setup.py | fchapoton/openapc-treemaps | 65806c367716474a57276c3d4791cad25b730cbc | [
"MIT"
] | 2 | 2018-07-24T08:55:18.000Z | 2020-11-25T12:47:29.000Z | setup.py | fchapoton/openapc-treemaps | 65806c367716474a57276c3d4791cad25b730cbc | [
"MIT"
] | 3 | 2018-07-24T08:44:22.000Z | 2021-08-24T14:24:09.000Z | from setuptools import setup, find_packages
setup(
name='openapc-treemaps',
version='1.0',
description="Visual Frontend for OpenAPC data, based on OffenerHaushalt",
long_description='',
classifiers=[
],
keywords='',
author='Christoph Broschinski',
author_email='openapc@uni-biele... | 24.64 | 77 | 0.649351 | 64 | 616 | 6.0625 | 0.78125 | 0.061856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004057 | 0.199675 | 616 | 24 | 78 | 25.666667 | 0.782961 | 0 | 0 | 0.086957 | 0 | 0 | 0.270936 | 0.039409 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.043478 | 0 | 0.043478 | 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 |
2166b3a52b218849ce6c8aae921bd0a83938d5f7 | 2,397 | py | Python | unstable/local_tools/pairer.py | lgpdv/tools-artbio | af48e9f6df2717ffd3731a974be1ec36e4eff779 | [
"MIT"
] | null | null | null | unstable/local_tools/pairer.py | lgpdv/tools-artbio | af48e9f6df2717ffd3731a974be1ec36e4eff779 | [
"MIT"
] | null | null | null | unstable/local_tools/pairer.py | lgpdv/tools-artbio | af48e9f6df2717ffd3731a974be1ec36e4eff779 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# script for computing overlap signatures from a bowtie output
# version 3 17-5-2012 complete refactoring with OOP approach
# Usage pairer.py <bowtie input> <minsize query> <maxsize query> <minsize target> <maxsize target> <output> <output1> <<output2> <<output3> <<output4> <<output5> <<output6> <<bow... | 32.835616 | 188 | 0.614935 | 424 | 2,397 | 3.438679 | 0.287736 | 0.041152 | 0.020576 | 0.027435 | 0.308642 | 0.272977 | 0.159808 | 0.159808 | 0.159808 | 0.159808 | 0 | 0.074701 | 0.162286 | 2,397 | 72 | 189 | 33.291667 | 0.651394 | 0.150605 | 0 | 0.089286 | 0 | 0.035714 | 0.073855 | 0.037912 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053571 | null | null | 0.178571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dcbeb827241f2351ca111269a16d93370491dbd1 | 572 | py | Python | maps/tests.py | imagreenplant/beacon-food-forest | 664bb1acb3f6a876df64a940a9440bd9c0f8894f | [
"MIT"
] | 1 | 2016-10-19T16:33:38.000Z | 2016-10-19T16:33:38.000Z | maps/tests.py | imagreenplant/beacon-food-forest | 664bb1acb3f6a876df64a940a9440bd9c0f8894f | [
"MIT"
] | 9 | 2018-06-04T19:05:18.000Z | 2022-01-13T00:41:25.000Z | maps/tests.py | imagreenplant/beacon-food-forest | 664bb1acb3f6a876df64a940a9440bd9c0f8894f | [
"MIT"
] | null | null | null | from django.test import TestCase
from maps.models import KmlMap
from django.core.urlresolvers import reverse
class ResponseStatus(TestCase):
def setUp(self):
self.testKML = KmlMap(name="Test KML", slug="test-kml", kml="blah blah blah")
self.testKML.save()
def test_kml_map(self):
resp... | 30.105263 | 85 | 0.704545 | 76 | 572 | 5.197368 | 0.447368 | 0.083544 | 0.081013 | 0.111392 | 0.308861 | 0.182278 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.181818 | 572 | 18 | 86 | 31.777778 | 0.831197 | 0 | 0 | 0.153846 | 0 | 0 | 0.071678 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.230769 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dcc365de7aa77e91836f0903898ecf1216b151e2 | 2,017 | py | Python | ichnaea/models/api.py | mikiec84/ichnaea | ec223cefb788bb921c0e7f5f51bd3b20eae29edd | [
"Apache-2.0"
] | 348 | 2015-01-13T11:48:07.000Z | 2022-03-31T08:33:07.000Z | ichnaea/models/api.py | mikiec84/ichnaea | ec223cefb788bb921c0e7f5f51bd3b20eae29edd | [
"Apache-2.0"
] | 1,274 | 2015-01-02T18:15:56.000Z | 2022-03-23T15:29:08.000Z | ichnaea/models/api.py | mikiec84/ichnaea | ec223cefb788bb921c0e7f5f51bd3b20eae29edd | [
"Apache-2.0"
] | 149 | 2015-01-04T21:15:07.000Z | 2021-12-10T06:05:09.000Z | from sqlalchemy import Boolean, Column, String
from sqlalchemy.dialects.mysql import INTEGER as Integer, TINYINT as TinyInteger
from ichnaea.models.base import _Model
class ApiKey(_Model):
"""
ApiKey model.
The allow_fallback and fallback columns determine if and what
fallback location provider shou... | 40.34 | 80 | 0.736242 | 268 | 2,017 | 5.432836 | 0.44403 | 0.041209 | 0.024725 | 0.019231 | 0.042582 | 0.042582 | 0 | 0 | 0 | 0 | 0 | 0.019195 | 0.199306 | 2,017 | 49 | 81 | 41.163265 | 0.882353 | 0.563708 | 0 | 0 | 0 | 0 | 0.008838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 |
dcc3e4f4d2216ddf1f6dac7c647252f1c5d93efb | 1,341 | py | Python | docs/conf.py | bhch/django-candy | e7129536bde6a4e3c6710440eefba20a89edebdd | [
"BSD-3-Clause"
] | 11 | 2021-03-04T19:51:32.000Z | 2021-12-11T05:52:14.000Z | docs/conf.py | bhch/django-candy | e7129536bde6a4e3c6710440eefba20a89edebdd | [
"BSD-3-Clause"
] | null | null | null | docs/conf.py | bhch/django-candy | e7129536bde6a4e3c6710440eefba20a89edebdd | [
"BSD-3-Clause"
] | 1 | 2021-03-08T07:14:48.000Z | 2021-03-08T07:14:48.000Z | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | 27.367347 | 85 | 0.678598 | 170 | 1,341 | 5.158824 | 0.617647 | 0.036488 | 0.029647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005155 | 0.131991 | 1,341 | 49 | 86 | 27.367347 | 0.748282 | 0.512304 | 0 | 0 | 0 | 0 | 0.286604 | 0.042056 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.12 | 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 |
dcca926a1a9fa7adf47a3ba93a0b90ee92cfec0a | 7,866 | py | Python | Software/src/liv/iotConnectors/devicehive/examples/gallileo.py | nadaol/Weather_Station | 5bfb31c2974227fcc8d912e3911f356d4e3fb187 | [
"MIT"
] | null | null | null | Software/src/liv/iotConnectors/devicehive/examples/gallileo.py | nadaol/Weather_Station | 5bfb31c2974227fcc8d912e3911f356d4e3fb187 | [
"MIT"
] | null | null | null | Software/src/liv/iotConnectors/devicehive/examples/gallileo.py | nadaol/Weather_Station | 5bfb31c2974227fcc8d912e3911f356d4e3fb187 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# @author astaff
#
# This sample is to demonstrate DeviceHive Python library
# Connect LED to PIN11 of the board and 1-wire sensor to GPIO4 board PIN #7,
# use pins #1 (3v3) or #2 (5v) for power and pin #6 for ground
#
# (C) DataArt Apps, 2012
# Distributed under MIT lic... | 29.908745 | 167 | 0.604119 | 1,030 | 7,866 | 4.485437 | 0.271845 | 0.019048 | 0.022511 | 0.015584 | 0.12987 | 0.097619 | 0.094156 | 0.070996 | 0.062338 | 0.037229 | 0 | 0.016465 | 0.274218 | 7,866 | 262 | 168 | 30.022901 | 0.792783 | 0.129672 | 0 | 0.152941 | 0 | 0 | 0.103012 | 0.012638 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.023529 | 0.052941 | null | null | 0.005882 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dcd07baabe83512fc136055c030e25e7d64af9b7 | 353 | py | Python | src/learning/migrations/0014_tutorial_comment_manytomany_rlationship_deleted.py | Alirezaja1384/MajazAmooz | 9200e46bed33aeb60d578a5c4c02013a8032cf08 | [
"MIT"
] | 3 | 2021-04-01T19:42:53.000Z | 2022-03-01T09:50:17.000Z | src/learning/migrations/0014_tutorial_comment_manytomany_rlationship_deleted.py | Alirezaja1384/MajazAmooz | 9200e46bed33aeb60d578a5c4c02013a8032cf08 | [
"MIT"
] | null | null | null | src/learning/migrations/0014_tutorial_comment_manytomany_rlationship_deleted.py | Alirezaja1384/MajazAmooz | 9200e46bed33aeb60d578a5c4c02013a8032cf08 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-30 12:51
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('learning', '0013_tutorialcomment_isedited_default_false'),
]
operations = [
migrations.RemoveField(
model_name='tutorial',
n... | 19.611111 | 68 | 0.620397 | 36 | 353 | 5.944444 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074219 | 0.274788 | 353 | 17 | 69 | 20.764706 | 0.761719 | 0.127479 | 0 | 0 | 1 | 0 | 0.218954 | 0.140523 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dce10e61f1f082efea4831a43a0593ce13b4fffe | 2,477 | py | Python | python/lib/python2.7/site-packages/python_stdnum-1.6-py2.7.egg/stdnum/do/rnc.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | 1 | 2019-12-19T01:53:13.000Z | 2019-12-19T01:53:13.000Z | python/lib/python2.7/site-packages/python_stdnum-1.6-py2.7.egg/stdnum/do/rnc.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | python/lib/python2.7/site-packages/python_stdnum-1.6-py2.7.egg/stdnum/do/rnc.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | # rnc.py - functions for handling Dominican Republic tax registration
#
# Copyright (C) 2015 Arthur de Jong
#
# This library 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 2.1 of the L... | 30.9625 | 76 | 0.696811 | 351 | 2,477 | 4.903134 | 0.48433 | 0.026148 | 0.020918 | 0.03312 | 0.144102 | 0.112725 | 0.094131 | 0.054619 | 0.054619 | 0.054619 | 0 | 0.047165 | 0.195398 | 2,477 | 79 | 77 | 31.35443 | 0.816357 | 0.63262 | 0 | 0.08 | 0 | 0 | 0.003501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.08 | 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 |
dcf4e44b8eddcc340b9027bb060ab085eb5cbd36 | 632 | py | Python | example/example/task/archive_data.py | bailaohe/parade | e2be18b7c5fa13136435e7a6a29399f9fa392870 | [
"MIT"
] | 39 | 2017-03-07T06:20:03.000Z | 2020-03-01T00:18:21.000Z | example/example/task/archive_data.py | bailaohe/parade | e2be18b7c5fa13136435e7a6a29399f9fa392870 | [
"MIT"
] | 15 | 2017-03-07T08:21:21.000Z | 2019-04-24T09:23:14.000Z | example/example/task/archive_data.py | bailaohe/parade | e2be18b7c5fa13136435e7a6a29399f9fa392870 | [
"MIT"
] | 11 | 2017-03-11T07:13:43.000Z | 2020-05-28T07:34:52.000Z | # -*- coding:utf-8 -*-
from parade.core.task import SingleSourceETLTask
class Db2Es(SingleSourceETLTask):
@property
def target_conn(self):
"""
the target datasource to write the result
:return:
"""
return 'elastic-conn'
@property
def source(self):
retu... | 19.75 | 49 | 0.568038 | 65 | 632 | 5.369231 | 0.615385 | 0.126075 | 0.08596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004773 | 0.337025 | 632 | 31 | 50 | 20.387097 | 0.828162 | 0.113924 | 0 | 0.2 | 0 | 0 | 0.376894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.05 | 0.15 | 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 | 0 | 1 | 0 | 0 | 0 | 1 |
dcf72ab093243b6965c2e9f24e437d970532a1df | 5,205 | py | Python | profiles/views/billing_group_views.py | Sispheor/squest | f852fe7986521a9d8cd9fb5eb0b56aa15f22548c | [
"Apache-2.0"
] | 112 | 2021-04-21T08:52:55.000Z | 2022-03-01T15:09:19.000Z | profiles/views/billing_group_views.py | Sispheor/squest | f852fe7986521a9d8cd9fb5eb0b56aa15f22548c | [
"Apache-2.0"
] | 216 | 2021-04-21T09:06:47.000Z | 2022-03-30T14:21:28.000Z | profiles/views/billing_group_views.py | Sispheor/squest | f852fe7986521a9d8cd9fb5eb0b56aa15f22548c | [
"Apache-2.0"
] | 21 | 2021-04-20T13:53:54.000Z | 2022-03-30T21:43:04.000Z | from django.contrib.auth.decorators import user_passes_test
from django.contrib.auth.models import User
from django.shortcuts import render, redirect, get_object_or_404
from django.urls import reverse
from django.utils.safestring import mark_safe
from profiles.forms import AddUserForm
from profiles.forms.billing_group... | 44.487179 | 116 | 0.676465 | 652 | 5,205 | 5.141104 | 0.147239 | 0.150358 | 0.075179 | 0.038186 | 0.678103 | 0.629475 | 0.579356 | 0.563842 | 0.563842 | 0.563842 | 0 | 0.003573 | 0.193468 | 5,205 | 116 | 117 | 44.87069 | 0.794902 | 0 | 0 | 0.466667 | 0 | 0 | 0.247646 | 0.120653 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.057143 | 0.07619 | 0 | 0.219048 | 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 |
dcfc88216df01b554fbe477e7c0a6b753e956e17 | 5,677 | py | Python | GAN_FASHION_MNIST.py | MarvinMartin24/GAN_FASHION_MNIST | 2b2439e724abae88ed5c266d8526a83e48f248c8 | [
"MIT"
] | 3 | 2019-06-10T21:54:38.000Z | 2020-05-24T11:46:21.000Z | GAN_FASHION_MNIST.py | MarvinMartin24/GAN_FASHION_MNIST | 2b2439e724abae88ed5c266d8526a83e48f248c8 | [
"MIT"
] | null | null | null | GAN_FASHION_MNIST.py | MarvinMartin24/GAN_FASHION_MNIST | 2b2439e724abae88ed5c266d8526a83e48f248c8 | [
"MIT"
] | null | null | null |
# Dependancies
"""# Import packages"""
from __future__ import print_function
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.optim as optim
import torch.utils.data
import torchvision.datasets as dset
import torchvision.transforms as transforms
import torchvision.utils as vutils
from torch.au... | 26.778302 | 139 | 0.65052 | 797 | 5,677 | 4.529486 | 0.258469 | 0.006648 | 0.019391 | 0.004986 | 0.224654 | 0.184211 | 0.139889 | 0.139889 | 0.07867 | 0.044875 | 0 | 0.044512 | 0.192707 | 5,677 | 211 | 140 | 26.905213 | 0.743181 | 0 | 0 | 0.169231 | 0 | 0.007692 | 0.067126 | 0.030336 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.138462 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dcfe20a6ca84e3ecfb31f01c2bc775e742e3ca50 | 186 | py | Python | functions/generators/generator3.py | kashifali-m398/advanced_python | 988f407e986403b3238c9d1ea30b7d6fddf88c84 | [
"MIT"
] | 1 | 2021-01-04T18:33:08.000Z | 2021-01-04T18:33:08.000Z | functions/generators/generator3.py | kashifali-m398/advanced_python | 988f407e986403b3238c9d1ea30b7d6fddf88c84 | [
"MIT"
] | null | null | null | functions/generators/generator3.py | kashifali-m398/advanced_python | 988f407e986403b3238c9d1ea30b7d6fddf88c84 | [
"MIT"
] | null | null | null | """
Generator with a finite loop
can be used with for
"""
def count():
n = 1
while n < 1000:
yield n
n *= 2
gen = count()
for number in gen:
print(number)
| 11.625 | 28 | 0.543011 | 29 | 186 | 3.482759 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049587 | 0.349462 | 186 | 15 | 29 | 12.4 | 0.785124 | 0.263441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.125 | 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 |
0d0681bdfbca277bd8ec305dd71dad48444992ad | 1,787 | py | Python | apps/management/commands/create_admin.py | s-nagaev/stubborn | 092c42f57a3e9f6704171d56ce0bee5f12b29519 | [
"MIT"
] | 1 | 2022-01-21T18:52:20.000Z | 2022-01-21T18:52:20.000Z | apps/management/commands/create_admin.py | s-nagaev/stubborn | c5ad0f02c70ea59af9ecddda76339ae3b3999cd3 | [
"MIT"
] | 4 | 2022-01-07T10:08:18.000Z | 2022-02-06T10:15:22.000Z | apps/management/commands/create_admin.py | s-nagaev/stubborn | c5ad0f02c70ea59af9ecddda76339ae3b3999cd3 | [
"MIT"
] | null | null | null | import logging
import os
from argparse import RawTextHelpFormatter
from typing import Any
from django.contrib.auth import get_user_model
from django.core.management.base import BaseCommand, CommandParser
logger = logging.getLogger(__name__)
class Command(BaseCommand):
help = (
"""Create a superuser with... | 35.039216 | 100 | 0.674874 | 204 | 1,787 | 5.813725 | 0.416667 | 0.025295 | 0.030354 | 0.043002 | 0.072513 | 0.072513 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241746 | 1,787 | 50 | 101 | 35.74 | 0.875277 | 0.148293 | 0 | 0.074074 | 0 | 0 | 0.174847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.111111 | 0.222222 | 0 | 0.481481 | 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 |
0d12d67daffc6efa46ba980073ff78963dd8c22f | 608 | py | Python | src/pygerber/tokens/comment.py | Argmaster/pygerber | 4761a5aa60ff1d11512fb44aabd103246d9a3019 | [
"MIT"
] | 3 | 2021-08-30T07:07:59.000Z | 2021-09-29T22:14:43.000Z | src/pygerber/tokens/comment.py | Argmaster/pygerber | 4761a5aa60ff1d11512fb44aabd103246d9a3019 | [
"MIT"
] | 1 | 2021-09-26T13:28:49.000Z | 2021-09-26T13:28:49.000Z | src/pygerber/tokens/comment.py | Argmaster/pygerber | 4761a5aa60ff1d11512fb44aabd103246d9a3019 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import annotations
import re
from pygerber.validators.basic import String
from .token import Deprecated, Token
class G04_Token(Token):
STRING = String("")
regex = re.compile(r"G04(?P<STRING>.*?)\*")
@Deprecated("The single-quadrant mode G74 was deprecated in 2021.... | 19.612903 | 87 | 0.6875 | 86 | 608 | 4.767442 | 0.488372 | 0.097561 | 0.136585 | 0.146341 | 0.182927 | 0.182927 | 0 | 0 | 0 | 0 | 0 | 0.041176 | 0.161184 | 608 | 30 | 88 | 20.266667 | 0.762745 | 0.034539 | 0 | 0 | 0 | 0 | 0.278632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.866667 | 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 |
0d150ccb1389f41e6fe09fb12f40c65230ad28dc | 705 | py | Python | modules/singleton.py | IT-COMMUNITY-ICT-RUSSIA/itmo-chart-backend | 808d55ea8c45d8b199824df702ba688adbb283b5 | [
"Apache-2.0"
] | null | null | null | modules/singleton.py | IT-COMMUNITY-ICT-RUSSIA/itmo-chart-backend | 808d55ea8c45d8b199824df702ba688adbb283b5 | [
"Apache-2.0"
] | 1 | 2021-12-03T11:17:59.000Z | 2021-12-03T11:17:59.000Z | modules/singleton.py | IT-COMMUNITY-ICT-RUSSIA/itmo-chart-backend | 808d55ea8c45d8b199824df702ba688adbb283b5 | [
"Apache-2.0"
] | 1 | 2022-03-23T14:10:43.000Z | 2022-03-23T14:10:43.000Z | from __future__ import annotations
import typing as tp
class SingletonMeta(type):
"""
The Singleton class ensures there is always only one instance of a certain class that is globally available.
This implementation is __init__ signature agnostic.
"""
_instances: tp.Dict[tp.Any, tp.Any] = {}
... | 30.652174 | 112 | 0.649645 | 88 | 705 | 4.931818 | 0.579545 | 0.057604 | 0.032258 | 0.046083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258156 | 705 | 22 | 113 | 32.045455 | 0.829828 | 0.360284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0d1ccad8e22d17e3b547e019e80aeb55531388ec | 21,936 | py | Python | subversion/tests/cmdline/import_tests.py | markphip/subversion | b68ad49667ccd4a3fd3083c24909e6fcca4b8348 | [
"Apache-2.0"
] | null | null | null | subversion/tests/cmdline/import_tests.py | markphip/subversion | b68ad49667ccd4a3fd3083c24909e6fcca4b8348 | [
"Apache-2.0"
] | 1 | 2016-09-14T18:22:43.000Z | 2016-09-14T18:22:43.000Z | subversion/tests/cmdline/import_tests.py | markphip/subversion | b68ad49667ccd4a3fd3083c24909e6fcca4b8348 | [
"Apache-2.0"
] | 1 | 2020-11-04T07:25:49.000Z | 2020-11-04T07:25:49.000Z | #!/usr/bin/env python
#
# import_tests.py: import tests
#
# Subversion is a tool for revision control.
# See http://subversion.apache.org for more information.
#
# ====================================================================
# Licensed to the Apache Software Foundation (ASF) under one
# or more contri... | 36.929293 | 80 | 0.574261 | 2,944 | 21,936 | 4.102242 | 0.141984 | 0.037261 | 0.058789 | 0.039414 | 0.559328 | 0.531755 | 0.497557 | 0.430819 | 0.363418 | 0.359775 | 0 | 0.011763 | 0.255881 | 21,936 | 593 | 81 | 36.991568 | 0.728114 | 0.253191 | 0 | 0.429752 | 0 | 0 | 0.164607 | 0.004307 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002755 | 0.165289 | 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 |
0d1ea3e39a1432ec9cad3709534f66a859c4e773 | 176 | py | Python | analysis/test.py | gizmo126/HiHungry | 14a3fb7f458fc81828e86f59fba26de78d63d41c | [
"MIT"
] | 2 | 2021-02-13T04:34:21.000Z | 2021-08-30T13:46:31.000Z | analysis/test.py | gizmo126/HiHungry | 14a3fb7f458fc81828e86f59fba26de78d63d41c | [
"MIT"
] | null | null | null | analysis/test.py | gizmo126/HiHungry | 14a3fb7f458fc81828e86f59fba26de78d63d41c | [
"MIT"
] | 1 | 2018-04-24T00:07:18.000Z | 2018-04-24T00:07:18.000Z | "#!/usr/bin/env python"
import json
import sys
try:
data = json.loads(sys.argv[1])
except:
print("ERROR")
sys.exit(1)
result = data
print(json.dumps(sys.path))
| 11.733333 | 34 | 0.642045 | 28 | 176 | 4.035714 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013986 | 0.1875 | 176 | 14 | 35 | 12.571429 | 0.776224 | 0.119318 | 0 | 0 | 0 | 0 | 0.147727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
0d245ab946086181069ef0649a179286d9b0a705 | 5,536 | py | Python | RNN.py | SpeedEX505/pyrnn | ee41962ae1d4414bb99df8d4a05974cf36c7481a | [
"MIT"
] | 1 | 2016-02-09T11:48:17.000Z | 2016-02-09T11:48:17.000Z | RNN.py | SpeedEX505/pyrnn | ee41962ae1d4414bb99df8d4a05974cf36c7481a | [
"MIT"
] | null | null | null | RNN.py | SpeedEX505/pyrnn | ee41962ae1d4414bb99df8d4a05974cf36c7481a | [
"MIT"
] | null | null | null | __author__ = 'sabata tomas'
import copy
import numpy as np
# compute sigmoid nonlinearity
def sigmoid(x):
output = 1 / (1 + np.exp(-x))
return output
# convert output of sigmoid function to its derivative
def sigmoid_output_to_derivative(output):
return output * (1 - output)
class RNN:
def __init... | 41.939394 | 109 | 0.617413 | 716 | 5,536 | 4.52514 | 0.188547 | 0.098457 | 0.037037 | 0.016049 | 0.450309 | 0.352469 | 0.279938 | 0.248457 | 0.248457 | 0.248457 | 0 | 0.022891 | 0.297688 | 5,536 | 131 | 110 | 42.259542 | 0.810442 | 0.123194 | 0 | 0.264368 | 0 | 0 | 0.103814 | 0 | 0 | 0 | 0 | 0.015267 | 0 | 1 | 0.103448 | false | 0 | 0.022989 | 0.011494 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d28cb33d53056e5a65ab1bafdf0cff7f95fcb02 | 1,329 | py | Python | Ch15/s15_16/ui_dialog.py | Deteriorator/PyQt5-Guide | d34a9659894d279b17369528359844a4ae4aeb20 | [
"CC0-1.0"
] | 1 | 2022-02-23T09:58:11.000Z | 2022-02-23T09:58:11.000Z | Ch15/s15_16/ui_dialog.py | Deteriorator/PyQt5-Guide | d34a9659894d279b17369528359844a4ae4aeb20 | [
"CC0-1.0"
] | null | null | null | Ch15/s15_16/ui_dialog.py | Deteriorator/PyQt5-Guide | d34a9659894d279b17369528359844a4ae4aeb20 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'dialog.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_CDialog(object):
def setupUi(self, CDialog):
CDialog.setObjec... | 40.272727 | 115 | 0.712566 | 143 | 1,329 | 6.594406 | 0.461538 | 0.074231 | 0.04666 | 0.050901 | 0.21421 | 0.21421 | 0.21421 | 0.21421 | 0.21421 | 0.21421 | 0 | 0.031164 | 0.179082 | 1,329 | 32 | 116 | 41.53125 | 0.833181 | 0.134688 | 0 | 0 | 1 | 0 | 0.048161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d294e7d1dbc7e227a728f737088761f10a29055 | 554 | py | Python | python-puka/new_task.py | mixmar91/rabbitmq | c8df9230065e9e42bfe7d429b78f1f98426a1109 | [
"Apache-2.0"
] | 1 | 2019-11-17T07:55:36.000Z | 2019-11-17T07:55:36.000Z | python-puka/new_task.py | mixmar91/rabbitmq | c8df9230065e9e42bfe7d429b78f1f98426a1109 | [
"Apache-2.0"
] | null | null | null | python-puka/new_task.py | mixmar91/rabbitmq | c8df9230065e9e42bfe7d429b78f1f98426a1109 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import puka
import sys
client = puka.Client("amqp://localhost/")
promise = client.connect()
client.wait(promise)
promise = client.queue_declare(queue='task_queue', durable=True)
client.wait(promise)
message = ' '.join(sys.argv[1:]) or "Hello World!"
promise = client.basic_publish(exchange='',
... | 25.181818 | 64 | 0.601083 | 64 | 554 | 5.109375 | 0.625 | 0.119266 | 0.155963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004819 | 0.250903 | 554 | 21 | 65 | 26.380952 | 0.783133 | 0.036101 | 0 | 0.2 | 0 | 0 | 0.140713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0d2cbec2ccefaaa6566e4525e8fea003c876f515 | 3,701 | py | Python | DataWrangling/create_mongodb_json.py | steve7an/UDDataAnalyst | 9262d333b09ae3ed193b21c7fe49e04eade2195e | [
"MIT"
] | null | null | null | DataWrangling/create_mongodb_json.py | steve7an/UDDataAnalyst | 9262d333b09ae3ed193b21c7fe49e04eade2195e | [
"MIT"
] | null | null | null | DataWrangling/create_mongodb_json.py | steve7an/UDDataAnalyst | 9262d333b09ae3ed193b21c7fe49e04eade2195e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import xml.etree.cElementTree as ET
import pprint
import re
import codecs
import json
import collections
address_type_direction = re.compile(r'^addr:[a-z]+:[a-z]+$')
address = re.compile(r'^addr:[a-z]+$')
lower = re.compile(r'^([a-z]|_)*$')
lower_colon = re.compile(r'^([a-... | 30.089431 | 90 | 0.552824 | 455 | 3,701 | 4.4 | 0.353846 | 0.006993 | 0.02997 | 0.013986 | 0.045954 | 0.015984 | 0 | 0 | 0 | 0 | 0 | 0.006661 | 0.310457 | 3,701 | 123 | 91 | 30.089431 | 0.777821 | 0.15023 | 0 | 0.114943 | 0 | 0 | 0.073093 | 0.007341 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068966 | null | null | 0.022989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0d2f8b9f2a71eff22cc224c99bf2d0fdb805c9c5 | 401 | py | Python | tunacell/__main__.py | LeBarbouze/tunacell | 837d57e1e6caeddf2e6bcdd2db2986fb456dd605 | [
"MIT"
] | null | null | null | tunacell/__main__.py | LeBarbouze/tunacell | 837d57e1e6caeddf2e6bcdd2db2986fb456dd605 | [
"MIT"
] | 3 | 2017-08-10T11:19:01.000Z | 2019-08-11T11:11:00.000Z | tunacell/__main__.py | LeBarbouze/tunacell | 837d57e1e6caeddf2e6bcdd2db2986fb456dd605 | [
"MIT"
] | 5 | 2017-08-08T22:31:24.000Z | 2021-08-06T04:08:08.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
from tunacell import __version__
def main():
argparser = argparse.ArgumentParser()
argparser.add_argument('-V', '--version', action='store_true', help='Print tunacell version')
args = argparser.parse_args... | 25.0625 | 97 | 0.703242 | 47 | 401 | 5.659574 | 0.638298 | 0.097744 | 0.150376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002967 | 0.159601 | 401 | 16 | 98 | 25.0625 | 0.78635 | 0.104738 | 0 | 0 | 0 | 0 | 0.173184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0d319580f22a02936e31b4098d43a5aeff8ed6fb | 1,109 | py | Python | Day14/main.py | d4yvie/advent_of_code_2021 | bb74b9dc7b23c5ba338dcd8d2e698c7ea4e34c59 | [
"Apache-2.0"
] | null | null | null | Day14/main.py | d4yvie/advent_of_code_2021 | bb74b9dc7b23c5ba338dcd8d2e698c7ea4e34c59 | [
"Apache-2.0"
] | null | null | null | Day14/main.py | d4yvie/advent_of_code_2021 | bb74b9dc7b23c5ba338dcd8d2e698c7ea4e34c59 | [
"Apache-2.0"
] | null | null | null | from collections import Counter
from functools import lru_cache
from print_aoc import print_task1, print_task2
from file_util import read_line_seperated_data_sets
@lru_cache(maxsize=None)
def count(adjacent_elements: str, steps: int) -> Counter:
return Counter(adjacent_elements) if steps == 0 else \
sum((... | 42.653846 | 181 | 0.718665 | 160 | 1,109 | 4.725 | 0.35625 | 0.232804 | 0.083333 | 0.055556 | 0.066138 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030818 | 0.151488 | 1,109 | 25 | 182 | 44.36 | 0.772582 | 0 | 0 | 0 | 0 | 0 | 0.012624 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.210526 | 0.052632 | 0.421053 | 0.157895 | 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 |
0d3afb71a105bbcf0fe6723a110431ee206095fa | 1,358 | py | Python | attacking_anti_tamper/taint_cpp/extern/keystone/suite/regress/x86_call_ptr_sym.py | tum-i4/dta-vs-osc | b39f4d4eb6ffea501025fc3e07622251c2118fe0 | [
"MIT"
] | 15 | 2021-12-08T09:53:35.000Z | 2022-03-07T10:13:37.000Z | attacking_anti_tamper/taint_cpp/extern/keystone/suite/regress/x86_call_ptr_sym.py | archercreat/dta-vs-osc | b39f4d4eb6ffea501025fc3e07622251c2118fe0 | [
"MIT"
] | null | null | null | attacking_anti_tamper/taint_cpp/extern/keystone/suite/regress/x86_call_ptr_sym.py | archercreat/dta-vs-osc | b39f4d4eb6ffea501025fc3e07622251c2118fe0 | [
"MIT"
] | 1 | 2021-12-27T18:01:41.000Z | 2021-12-27T18:01:41.000Z | #!/usr/bin/python
# Marco Bartoli, 2016
# This is to test call [label] on X86.
# Github issue: #271
# Author: Marco Bartoli (wsxarcher)
from keystone import *
import regress
def sym_resolver(symbol, value):
if symbol == b'GetPhoneBuildString':
value = 0x41b000
return True
return False
clas... | 26.627451 | 74 | 0.662739 | 175 | 1,358 | 4.931429 | 0.36 | 0.10197 | 0.073001 | 0.097335 | 0.654693 | 0.654693 | 0.654693 | 0.654693 | 0.654693 | 0.654693 | 0 | 0.074784 | 0.231959 | 1,358 | 50 | 75 | 27.16 | 0.752637 | 0.092047 | 0 | 0.451613 | 0 | 0 | 0.08476 | 0.03423 | 0 | 0 | 0.0652 | 0 | 0.096774 | 1 | 0.129032 | false | 0 | 0.064516 | 0 | 0.354839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d415f53109414d19c2d3daab7d323387d703cce | 3,096 | py | Python | data-structures/hash-table.py | Nyandwi/algorithms-datastructures-concepts | bfcc3d8ebb4eb81d8b159596460eaf5854e5fe25 | [
"MIT"
] | 8 | 2022-02-16T08:35:31.000Z | 2022-03-17T01:52:42.000Z | data-structures/hash-table.py | saibaldas/algorithms | b7c59c1926119a30be35243892c4f086ffd16832 | [
"MIT"
] | null | null | null | data-structures/hash-table.py | saibaldas/algorithms | b7c59c1926119a30be35243892c4f086ffd16832 | [
"MIT"
] | 1 | 2022-03-21T15:44:49.000Z | 2022-03-21T15:44:49.000Z | ## Hash table
# Idea: A smaller dynamic direct access array
# Reference implementation:
#MIT Introduction to Algorithms, Recitation 4
# https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-006-introduction-to-algorithms-spring-2020/lecture-notes/MIT6_006S20_r04.pdf
from random import randint
S... | 26.689655 | 152 | 0.513889 | 444 | 3,096 | 3.468468 | 0.216216 | 0.042208 | 0.027273 | 0.038961 | 0.446753 | 0.42987 | 0.42987 | 0.406494 | 0.406494 | 0.406494 | 0 | 0.033811 | 0.369509 | 3,096 | 115 | 153 | 26.921739 | 0.755123 | 0.165052 | 0 | 0.261905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0 | null | null | 0 | 0.011905 | 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 |
0d450211e1bfa819099f70a300c464b78de81b4e | 2,269 | py | Python | samples/advanced/authentication.py | amerkel2/azure-storage-python | 555b87c3b4ddd2124450ea740305221aa2d6055f | [
"MIT"
] | 348 | 2015-08-18T22:48:21.000Z | 2022-03-28T04:03:29.000Z | samples/advanced/authentication.py | amerkel2/azure-storage-python | 555b87c3b4ddd2124450ea740305221aa2d6055f | [
"MIT"
] | 558 | 2015-08-19T00:10:36.000Z | 2022-03-17T01:17:08.000Z | samples/advanced/authentication.py | amerkel2/azure-storage-python | 555b87c3b4ddd2124450ea740305221aa2d6055f | [
"MIT"
] | 285 | 2015-08-17T23:43:34.000Z | 2022-03-27T19:34:29.000Z | # coding: utf-8
from azure.storage.blob import BlockBlobService
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------... | 34.907692 | 97 | 0.64037 | 237 | 2,269 | 5.915612 | 0.379747 | 0.101997 | 0.10271 | 0.094151 | 0.450785 | 0.421541 | 0.421541 | 0.421541 | 0.328103 | 0.28174 | 0 | 0.000561 | 0.214191 | 2,269 | 64 | 98 | 35.453125 | 0.785754 | 0.296606 | 0 | 0.133333 | 0 | 0 | 0.116751 | 0.032995 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0.033333 | 0.066667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d4624dc509d0676e67afeb1a38cbc20c12b2347 | 1,016 | py | Python | examples/session2-fi/indentation.py | futurice/PythonInBrowser | 066ab28ffad265efc7968b87f33dab2c68216d9d | [
"MIT"
] | 4 | 2015-12-08T19:34:49.000Z | 2019-09-08T22:11:05.000Z | examples/session2-fi/indentation.py | futurice/PythonInBrowser | 066ab28ffad265efc7968b87f33dab2c68216d9d | [
"MIT"
] | 18 | 2016-10-14T13:48:39.000Z | 2019-10-11T12:14:21.000Z | examples/session2-fi/indentation.py | futurice/PythonInBrowser | 066ab28ffad265efc7968b87f33dab2c68216d9d | [
"MIT"
] | 4 | 2015-11-18T15:18:43.000Z | 2018-03-02T09:36:23.000Z | # Lukujonot
import turtle
##### INFO #####
#
# Loop-silmukkaa voi käyttäää lukujonon numeroiden laskemiseen
##### TEHTÄVÄ #####
# Keksitkö mitkä ovat seuraavan lukujonon seuraavat luvut?
# Lisää seuraavat 4 lukua.
[4, 7, 10]
# Pitkän lukujonon laskeminen käsin on tylsää. Laitetaan kone
# tekemään tämä puolestamme... | 22.086957 | 74 | 0.740157 | 133 | 1,016 | 5.654135 | 0.684211 | 0.034574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017689 | 0.165354 | 1,016 | 45 | 75 | 22.577778 | 0.869104 | 0.700787 | 0 | 0 | 0 | 0 | 0.246212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d52fc0c145d0c0eb446298e90334a04f25315cd | 1,221 | py | Python | Test2.py | ujjuboi/DjangoWebSockets-MQTT | 997f7770c12c7f9caa62057adc5e4bbeaa790c33 | [
"Apache-2.0"
] | 1 | 2021-09-13T21:37:30.000Z | 2021-09-13T21:37:30.000Z | Test2.py | ujjuboi/DjangoWebSockets-MQTT | 997f7770c12c7f9caa62057adc5e4bbeaa790c33 | [
"Apache-2.0"
] | null | null | null | Test2.py | ujjuboi/DjangoWebSockets-MQTT | 997f7770c12c7f9caa62057adc5e4bbeaa790c33 | [
"Apache-2.0"
] | 1 | 2021-03-17T17:47:38.000Z | 2021-03-17T17:47:38.000Z | import time
import _thread
import json
import websocket
def on_message(ws, message):
message = json.loads(message)
print (message)
def on_error(ws, error):
print ("eroror:", error)
def on_close(ws):
print ("### closed ###")
# Attemp to reconnect with 2 seconds interval
def on_open(ws):
print... | 29.071429 | 237 | 0.644554 | 131 | 1,221 | 5.80916 | 0.465649 | 0.026281 | 0.023653 | 0.031537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037473 | 0.235053 | 1,221 | 42 | 238 | 29.071429 | 0.777302 | 0.277641 | 0 | 0 | 0 | 0 | 0.340621 | 0.232451 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.173913 | 0 | 0.391304 | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0d53363c4db71dc405492934fb207b54b12cc872 | 600 | py | Python | twitaba/jinja.py | notpushkin/twitaba | 3454ab30b421341739322ec4dc4d6cf4a9d22ac2 | [
"0BSD"
] | 10 | 2019-01-26T00:42:20.000Z | 2020-11-24T16:18:59.000Z | twitaba/jinja.py | notpushkin/twitaba | 3454ab30b421341739322ec4dc4d6cf4a9d22ac2 | [
"0BSD"
] | 1 | 2019-01-26T00:46:46.000Z | 2019-01-26T00:46:46.000Z | twitaba/jinja.py | notpushkin/twitaba | 3454ab30b421341739322ec4dc4d6cf4a9d22ac2 | [
"0BSD"
] | null | null | null | import jinja2
from sanic import response
from .util import get_banner
j2 = jinja2.Environment(
loader=jinja2.PackageLoader(__name__, "templates"),
autoescape=jinja2.select_autoescape(["html", "xml"]),
)
j2.globals.update({"len": len, "get_banner": get_banner})
def renderpost_filter(t, show_thread_link=Fal... | 23.076923 | 83 | 0.733333 | 78 | 600 | 5.397436 | 0.461538 | 0.064133 | 0.099762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 0.125 | 600 | 25 | 84 | 24 | 0.782857 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0.133333 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
0d562b2c84dd550bfa181bdaa7fa38af513b83ac | 2,152 | py | Python | Python-Programs/Programs/P63_Graph.py | shubhamnag14/python-examples | 4dc9227095ed8e91b3c6b18b6f7a81ae60eb6306 | [
"MIT"
] | null | null | null | Python-Programs/Programs/P63_Graph.py | shubhamnag14/python-examples | 4dc9227095ed8e91b3c6b18b6f7a81ae60eb6306 | [
"MIT"
] | null | null | null | Python-Programs/Programs/P63_Graph.py | shubhamnag14/python-examples | 4dc9227095ed8e91b3c6b18b6f7a81ae60eb6306 | [
"MIT"
] | 1 | 2019-10-12T13:32:45.000Z | 2019-10-12T13:32:45.000Z | # Author: OMKAR PATHAK
# In this example, we will see how to implement graphs in Python
class Vertex(object):
''' This class helps to create a Vertex for our graph '''
def __init__(self, key):
self.key = key
self.edges = {}
def addNeighbour(self, neighbour, weight = 0):
self.edges[... | 26.567901 | 106 | 0.583643 | 262 | 2,152 | 4.70229 | 0.293893 | 0.113636 | 0.034091 | 0.032468 | 0.112013 | 0.112013 | 0.066558 | 0 | 0 | 0 | 0 | 0.007807 | 0.285781 | 2,152 | 80 | 107 | 26.9 | 0.793754 | 0.120353 | 0 | 0.037037 | 0 | 0 | 0.025614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.092593 | 0.444444 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d57430298d396d9c8a1f59204c4d064f2ba3b50 | 912 | py | Python | aiocutter/test/github_issue.py | icoxfog417/aiocutter | 42d0defeee40dfac4dc3d475b80feae7ab06ea0f | [
"MIT"
] | 1 | 2016-10-01T02:54:37.000Z | 2016-10-01T02:54:37.000Z | aiocutter/test/github_issue.py | icoxfog417/aiocutter | 42d0defeee40dfac4dc3d475b80feae7ab06ea0f | [
"MIT"
] | 1 | 2015-03-18T05:46:44.000Z | 2015-03-18T06:29:24.000Z | aiocutter/test/github_issue.py | icoxfog417/aiocutter | 42d0defeee40dfac4dc3d475b80feae7ab06ea0f | [
"MIT"
] | null | null | null | from aiocutter.scrap import Scrap
class GithubIssue(Scrap):
def __init__(self, title):
super().__init__()
self.title = title
@classmethod
def get_iterator(cls, url, html):
issues = html.find_all("a", class_="issue-title-link")
return issues
@classmethod
def get_n... | 25.333333 | 88 | 0.611842 | 121 | 912 | 4.322314 | 0.380165 | 0.076482 | 0.068834 | 0.045889 | 0.068834 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.265351 | 912 | 35 | 89 | 26.057143 | 0.773134 | 0 | 0 | 0.115385 | 0 | 0 | 0.037281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.038462 | 0.076923 | 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 |
b491ff86061de93bca2f5f2343d72c054de78f85 | 396 | py | Python | python/build.py | sogartar/faqap | c5c86a37ce9ab7a7627e98ec5cd2ea820d10e39c | [
"Unlicense"
] | 1 | 2021-12-23T17:53:14.000Z | 2021-12-23T17:53:14.000Z | python/build.py | sogartar/faqap | c5c86a37ce9ab7a7627e98ec5cd2ea820d10e39c | [
"Unlicense"
] | null | null | null | python/build.py | sogartar/faqap | c5c86a37ce9ab7a7627e98ec5cd2ea820d10e39c | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
from subprocess import run
from os import path
import sys
curr_script_dir = path.abspath(path.dirname(__file__))
run(
[
sys.executable,
path.join(curr_script_dir, "setup.py"),
"bdist_wheel",
"--universal",
],
check=True,
)
run(
[sys.executable, p... | 18 | 79 | 0.623737 | 51 | 396 | 4.627451 | 0.54902 | 0.127119 | 0.165254 | 0.169492 | 0.372881 | 0.372881 | 0.372881 | 0.372881 | 0.372881 | 0.372881 | 0 | 0.003247 | 0.222222 | 396 | 21 | 80 | 18.857143 | 0.762987 | 0.05303 | 0 | 0.235294 | 0 | 0 | 0.128342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 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 |
b4924286799c44a2e973cf5992c0c00ab6507fa6 | 1,558 | py | Python | Round H/friends2.py | kamyu104/GoogleKickStart-2020 | 7c60b5a7a6c9daaf3f20b28d6b60aab19f5f22df | [
"MIT"
] | 39 | 2020-10-21T16:48:45.000Z | 2022-03-19T08:23:07.000Z | Round H/friends2.py | kamyu104/GoogleKickStart-2020 | 7c60b5a7a6c9daaf3f20b28d6b60aab19f5f22df | [
"MIT"
] | 1 | 2020-10-23T04:19:16.000Z | 2020-10-23T08:56:30.000Z | Round H/friends2.py | kamyu104/GoogleKickStart-2020 | 7c60b5a7a6c9daaf3f20b28d6b60aab19f5f22df | [
"MIT"
] | 18 | 2020-10-21T08:28:05.000Z | 2021-11-12T06:58:42.000Z | # Copyright (c) 2020 kamyu. All rights reserved.
#
# Google Kick Start 2020 Round H - Problem D. Friends
# https://codingcompetitions.withgoogle.com/kickstart/round/000000000019ff49/000000000043aee7
#
# Time: O(A^3 + L^2 * (N + Q)) = O(N + Q) since O(A) = O(26), O(L) = O(20), pass in PyPy2 but Python2
# Space: O(A^2) ... | 33.148936 | 102 | 0.527599 | 258 | 1,558 | 3.147287 | 0.329457 | 0.068966 | 0.029557 | 0.055419 | 0.20197 | 0.108374 | 0.049261 | 0.049261 | 0.049261 | 0 | 0 | 0.056962 | 0.290116 | 1,558 | 46 | 103 | 33.869565 | 0.677215 | 0.268293 | 0 | 0 | 0 | 0 | 0.015098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b492dce495ba64031cb8b0e31f222390e5173b7a | 373 | py | Python | exercises/migrations/0003_rename_number_exercise_count_number.py | OurHomeTrainer/OurHT_Backend | 541b67394732d2da803e99aba53c7a617166edd8 | [
"MIT"
] | null | null | null | exercises/migrations/0003_rename_number_exercise_count_number.py | OurHomeTrainer/OurHT_Backend | 541b67394732d2da803e99aba53c7a617166edd8 | [
"MIT"
] | null | null | null | exercises/migrations/0003_rename_number_exercise_count_number.py | OurHomeTrainer/OurHT_Backend | 541b67394732d2da803e99aba53c7a617166edd8 | [
"MIT"
] | 2 | 2022-01-21T13:26:58.000Z | 2022-03-29T03:50:02.000Z | # Generated by Django 3.2.8 on 2021-11-11 15:27
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('exercises', '0002_auto_20211112_0025'),
]
operations = [
migrations.RenameField(
model_name='exercise',
old_name='number',
... | 19.631579 | 49 | 0.595174 | 40 | 373 | 5.375 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117871 | 0.294906 | 373 | 18 | 50 | 20.722222 | 0.69962 | 0.120643 | 0 | 0 | 1 | 0 | 0.177914 | 0.070552 | 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 |
b499426e85921bfad9ddb1de3c3a0ea80e3bfdf6 | 384 | py | Python | doc/hello/workflow.py | otaviog/rflow | 8594b9c3e9e1da61382f80b66e749cf7b8a33676 | [
"MIT"
] | 6 | 2019-08-26T11:36:58.000Z | 2020-12-15T21:01:24.000Z | doc/hello/workflow.py | otaviog/rflow | 8594b9c3e9e1da61382f80b66e749cf7b8a33676 | [
"MIT"
] | null | null | null | doc/hello/workflow.py | otaviog/rflow | 8594b9c3e9e1da61382f80b66e749cf7b8a33676 | [
"MIT"
] | 1 | 2020-04-13T08:05:27.000Z | 2020-04-13T08:05:27.000Z | import rflow
class CreateMessage(rflow.Interface):
def evaluate(self, msg):
return msg
class Print(rflow.Interface):
def evaluate(self, msg):
print(msg)
@rflow.graph()
def hello(g):
g.create = CreateMessage()
g.create.args.msg = "Hello"
g.print = Print()
g.print.args.msg =... | 15.36 | 37 | 0.632813 | 50 | 384 | 4.7 | 0.4 | 0.089362 | 0.144681 | 0.212766 | 0.27234 | 0.27234 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229167 | 384 | 24 | 38 | 16 | 0.793919 | 0 | 0 | 0.133333 | 0 | 0 | 0.033854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.066667 | 0.066667 | 0.466667 | 0.2 | 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 |
b4994e58a7c277fdacaeddcf92cc4b214753fdbb | 226 | py | Python | apps/__init__.py | LouisPi/PiPortableRecorder | 430a4b6e1e869cbd68fd89bbf97261710fd7db6b | [
"Apache-2.0",
"MIT"
] | 51 | 2017-12-03T21:59:13.000Z | 2021-01-02T17:13:34.000Z | apps/__init__.py | LouisPi/PiPortableRecorder | 430a4b6e1e869cbd68fd89bbf97261710fd7db6b | [
"Apache-2.0",
"MIT"
] | 153 | 2017-10-27T19:59:46.000Z | 2020-01-14T23:58:57.000Z | apps/__init__.py | LouisPi/PiPortableRecorder | 430a4b6e1e869cbd68fd89bbf97261710fd7db6b | [
"Apache-2.0",
"MIT"
] | 26 | 2017-11-16T11:10:56.000Z | 2022-03-29T18:44:48.000Z | _ordering = [
"personal",
"network_apps",
"phone",
"hardware_apps",
"games",
"privacy_apps",
"system_apps",
"media_apps",
"raspberrypi",
"ee_apps",
"utils",
"scripts",
"clock",
"update"]
from zero_app import ZeroApp
| 11.894737 | 28 | 0.668142 | 26 | 226 | 5.5 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137168 | 226 | 18 | 29 | 12.555556 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0.517699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 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 |
b49ac64346b4d320ecb950745092f66fa339f724 | 20,763 | py | Python | bip_utils/bip/bip38/bip38_ec.py | 3rdIteration/bip_utils | 84abeff9158618a0ecf9a059c19fd1a3d882e724 | [
"MIT"
] | null | null | null | bip_utils/bip/bip38/bip38_ec.py | 3rdIteration/bip_utils | 84abeff9158618a0ecf9a059c19fd1a3d882e724 | [
"MIT"
] | null | null | null | bip_utils/bip/bip38/bip38_ec.py | 3rdIteration/bip_utils | 84abeff9158618a0ecf9a059c19fd1a3d882e724 | [
"MIT"
] | null | null | null | # Copyright (c) 2021 Emanuele Bellocchia
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish,... | 39.699809 | 115 | 0.629389 | 2,307 | 20,763 | 5.429562 | 0.155613 | 0.032572 | 0.011496 | 0.010778 | 0.305285 | 0.240061 | 0.205014 | 0.159269 | 0.117835 | 0.083666 | 0 | 0.030248 | 0.307374 | 20,763 | 522 | 116 | 39.775862 | 0.840762 | 0.33815 | 0 | 0.136585 | 0 | 0 | 0.041505 | 0.024113 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068293 | false | 0.170732 | 0.029268 | 0 | 0.292683 | 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 |
b49b81816c18f1cc41a300729882c6b282dfcdc1 | 4,582 | py | Python | temp_tests/inference.py | jarokaz/merlin-on-vertex | d4657a883d9072a1b0381b7e3d8b67493d6c14ee | [
"Apache-2.0"
] | 7 | 2021-09-28T00:08:01.000Z | 2022-01-13T21:25:33.000Z | temp_tests/inference.py | js-ts/merlin-on-vertex | d4657a883d9072a1b0381b7e3d8b67493d6c14ee | [
"Apache-2.0"
] | null | null | null | temp_tests/inference.py | js-ts/merlin-on-vertex | d4657a883d9072a1b0381b7e3d8b67493d6c14ee | [
"Apache-2.0"
] | 2 | 2021-10-09T04:55:34.000Z | 2021-11-20T23:07:36.000Z | import numpy as np
import os
import warnings
import tritonhttpclient
import tritonclient.http as httpclient
from tritonclient.utils import np_to_triton_dtype
_examples = {
'I1': [5, 32, 0],
'I2': [110, 3, 233],
'I3': [0, 5, 1],
'I4': [16, 0, 146],
'I5': [0, 1, 1],
'I6': [1, 0, 0],
... | 31.6 | 98 | 0.620253 | 482 | 4,582 | 5.728216 | 0.506224 | 0.052155 | 0.031873 | 0.016298 | 0.175299 | 0.160087 | 0.128214 | 0.128214 | 0.128214 | 0.128214 | 0 | 0.250573 | 0.237887 | 4,582 | 145 | 99 | 31.6 | 0.540092 | 0.044959 | 0 | 0.12 | 0 | 0 | 0.08464 | 0.010839 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.06 | 0 | 0.15 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b49dae80bc85aa8b953fbddf84f45cec7ae676be | 6,112 | py | Python | src/oci/data_connectivity/models/execute_operation_job.py | pabs3/oci-python-sdk | 437ba18ce39af2d1090e277c4bb8750c89f83021 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/data_connectivity/models/execute_operation_job.py | pabs3/oci-python-sdk | 437ba18ce39af2d1090e277c4bb8750c89f83021 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/data_connectivity/models/execute_operation_job.py | pabs3/oci-python-sdk | 437ba18ce39af2d1090e277c4bb8750c89f83021 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 31.34359 | 245 | 0.657559 | 688 | 6,112 | 5.62064 | 0.193314 | 0.040341 | 0.161624 | 0.074994 | 0.54435 | 0.437807 | 0.302819 | 0.218257 | 0.191363 | 0.191363 | 0 | 0.004049 | 0.272742 | 6,112 | 194 | 246 | 31.505155 | 0.865917 | 0.514889 | 0 | 0.080645 | 0 | 0 | 0.105422 | 0.010757 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.032258 | 0.032258 | 0.419355 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4a2a0eb3243af4c8a45d7f47120ad8ad37f93bc | 15,944 | py | Python | auditai/misc.py | luozimin/audit-ai | 433985ab8f5e65b0be18825849c8ac4a2887329e | [
"MIT"
] | 1 | 2019-02-08T20:07:45.000Z | 2019-02-08T20:07:45.000Z | auditai/misc.py | luozimin/audit-ai | 433985ab8f5e65b0be18825849c8ac4a2887329e | [
"MIT"
] | null | null | null | auditai/misc.py | luozimin/audit-ai | 433985ab8f5e65b0be18825849c8ac4a2887329e | [
"MIT"
] | null | null | null | from collections import defaultdict
import numpy as np
import pandas as pd
from scipy.stats import chi2_contingency, fisher_exact, f_oneway
from .simulations import classifier_posterior_probabilities
from .utils.crosstabs import (crosstab_bayes_factor,
crosstab_ztest,
... | 34.288172 | 80 | 0.617474 | 2,046 | 15,944 | 4.664223 | 0.178397 | 0.026197 | 0.020748 | 0.013099 | 0.264906 | 0.217961 | 0.172587 | 0.165881 | 0.128052 | 0.118831 | 0 | 0.028311 | 0.277785 | 15,944 | 464 | 81 | 34.362069 | 0.800434 | 0.434207 | 0 | 0.093923 | 0 | 0 | 0.084084 | 0 | 0 | 0 | 0 | 0.002155 | 0 | 1 | 0.038674 | false | 0.093923 | 0.038674 | 0 | 0.110497 | 0.082873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b4adbe51642ad03f98665732445eb7dca718bac5 | 416 | py | Python | zeroae/rocksdb/c/__init__.py | zeroae/zeroae-rocksdb | 3f1c81a42f27091161727c94a0d5620c25fd984f | [
"Apache-2.0"
] | null | null | null | zeroae/rocksdb/c/__init__.py | zeroae/zeroae-rocksdb | 3f1c81a42f27091161727c94a0d5620c25fd984f | [
"Apache-2.0"
] | 53 | 2020-04-29T04:46:48.000Z | 2020-05-08T03:43:28.000Z | zeroae/rocksdb/c/__init__.py | zeroae/zeroae-rocksdb | 3f1c81a42f27091161727c94a0d5620c25fd984f | [
"Apache-2.0"
] | null | null | null | import os
from importlib import import_module
from .db import *
# get all modules
_, _, filenames = next(os.walk(__path__[0]), (None, None, []))
py_files = [filename.replace(".py", "")
for filename in filenames
if filename.endswith(".py")]
py_files.remove("__init__")
for module in py_files:
... | 19.809524 | 62 | 0.668269 | 57 | 416 | 4.508772 | 0.526316 | 0.108949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002976 | 0.192308 | 416 | 20 | 63 | 20.8 | 0.761905 | 0.036058 | 0 | 0 | 0 | 0 | 0.098237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b4b45ae304f001f3b2765660baba29a5bd621d39 | 6,171 | py | Python | train_dacon_landmark.py | jireh-father/InsightFace_Pytorch | 6d635cfabe88b15e6a65d1965c48b9266d71e7ea | [
"MIT"
] | null | null | null | train_dacon_landmark.py | jireh-father/InsightFace_Pytorch | 6d635cfabe88b15e6a65d1965c48b9266d71e7ea | [
"MIT"
] | null | null | null | train_dacon_landmark.py | jireh-father/InsightFace_Pytorch | 6d635cfabe88b15e6a65d1965c48b9266d71e7ea | [
"MIT"
] | null | null | null | from config import get_config
from Learner import face_learner
import argparse
import random
import transforms
from pathlib import Path
# python train.py -net mobilefacenet -b 200 -w 4
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='for common image metric learning')
parser.add_argume... | 47.469231 | 117 | 0.663426 | 795 | 6,171 | 4.877987 | 0.21761 | 0.104435 | 0.197267 | 0.088963 | 0.450232 | 0.322589 | 0.322589 | 0.268953 | 0.182826 | 0.120165 | 0 | 0.010385 | 0.204181 | 6,171 | 129 | 118 | 47.837209 | 0.779271 | 0.023983 | 0 | 0.071429 | 0 | 0 | 0.180489 | 0.021605 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.091837 | 0 | 0.091837 | 0.010204 | 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 |
b4c4212df7fe9d3d2392abf5ada435db08ccdd41 | 1,735 | py | Python | twitter-clone/user/views.py | TanmayBhosale/MSCxHacktoberfest | 81d32f7b6734c50ce71bbf20dc4b9f5d5b442396 | [
"MIT"
] | 2 | 2021-10-07T01:42:57.000Z | 2021-10-07T02:03:52.000Z | twitter-clone/user/views.py | TanmayBhosale/MSCxHacktoberfest | 81d32f7b6734c50ce71bbf20dc4b9f5d5b442396 | [
"MIT"
] | 8 | 2021-10-06T13:58:55.000Z | 2021-10-13T10:33:10.000Z | twitter-clone/user/views.py | TanmayBhosale/MSCxHacktoberfest | 81d32f7b6734c50ce71bbf20dc4b9f5d5b442396 | [
"MIT"
] | 2 | 2021-10-07T18:47:25.000Z | 2021-11-30T06:13:22.000Z | from django.shortcuts import render
from django.contrib.auth.models import User, auth
from rest_framework.views import APIView
from rest_framework.response import Response
from .serializers import UserSignUpSerializer , UserLoginSerializer
# Create your views here.
class TwitterUserSignUp(APIView):
def get(self,r... | 39.431818 | 194 | 0.649568 | 201 | 1,735 | 5.557214 | 0.318408 | 0.062668 | 0.076097 | 0.075201 | 0.264996 | 0.264996 | 0.264996 | 0.148612 | 0.148612 | 0.148612 | 0 | 0 | 0.210375 | 1,735 | 44 | 195 | 39.431818 | 0.815328 | 0.040346 | 0 | 0.277778 | 0 | 0 | 0.086643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.083333 | 0.138889 | 0 | 0.5 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b4c737f9e0974b8ed9d7bca49fb2e4f6089f69c3 | 2,257 | py | Python | statistical_overfit.py | michwen/Preparation-Wrangling | f90f69a5ea05c2aab1e4f1f304c4a580d257ede8 | [
"Apache-2.0"
] | null | null | null | statistical_overfit.py | michwen/Preparation-Wrangling | f90f69a5ea05c2aab1e4f1f304c4a580d257ede8 | [
"Apache-2.0"
] | null | null | null | statistical_overfit.py | michwen/Preparation-Wrangling | f90f69a5ea05c2aab1e4f1f304c4a580d257ede8 | [
"Apache-2.0"
] | null | null | null | import csv
import gzip
import numpy as np
import pylab as pl
from sklearn
import linear_model, cross_validation, svm, datasets
from sklearn.metrics
import mean_squared_error
train_filename = 'train.csv.gz'
test_filename = 'test.csv.gz'
pred_filename = 'prediction.csv'
train_data = []
with gzip.open(train_filename, 'r... | 26.869048 | 107 | 0.721755 | 354 | 2,257 | 4.375706 | 0.240113 | 0.071014 | 0.063267 | 0.028405 | 0.131698 | 0.092963 | 0.071014 | 0.038735 | 0.038735 | 0 | 0 | 0.056402 | 0.128046 | 2,257 | 84 | 108 | 26.869048 | 0.730691 | 0 | 0 | 0.060606 | 0 | 0 | 0.069973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | 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 |
b4cadd86545cc467129dc952a61ce8e723e91c61 | 5,527 | py | Python | pysnmp-with-texts/CISCO-STACK-CAPABILITY.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCO-STACK-CAPABILITY.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCO-STACK-CAPABILITY.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-STACK-CAPABILITY (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-STACK-CAPABILITY
# Produced by pysmi-0.3.4 at Wed May 1 12:12:54 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | 112.795918 | 477 | 0.774561 | 573 | 5,527 | 7.467714 | 0.308901 | 0.008413 | 0.039963 | 0.054686 | 0.472307 | 0.338631 | 0.331152 | 0.331152 | 0.331152 | 0.328581 | 0 | 0.119725 | 0.103854 | 5,527 | 48 | 478 | 115.145833 | 0.744195 | 0.061154 | 0 | 0.225 | 0 | 0.125 | 0.329151 | 0.03668 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.175 | 0 | 0.175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4cbb0eb0156f21ab2a73fa02e4c60e5ccef3db3 | 859 | py | Python | src/sales/migrations/0002_auto_20211012_2032.py | evis-market/web-interface-backend | f8930ff1c009ad18e522ab29680b4bcd50a6020e | [
"MIT"
] | 2 | 2021-08-30T22:58:32.000Z | 2021-12-12T10:47:52.000Z | src/sales/migrations/0002_auto_20211012_2032.py | evis-market/web-interface-backend | f8930ff1c009ad18e522ab29680b4bcd50a6020e | [
"MIT"
] | null | null | null | src/sales/migrations/0002_auto_20211012_2032.py | evis-market/web-interface-backend | f8930ff1c009ad18e522ab29680b4bcd50a6020e | [
"MIT"
] | 1 | 2021-08-22T19:12:44.000Z | 2021-08-22T19:12:44.000Z | # Generated by Django 3.2.7 on 2021-10-12 20:32
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('sellers', '0003_auto_202... | 30.678571 | 132 | 0.650757 | 97 | 859 | 5.608247 | 0.494845 | 0.058824 | 0.077206 | 0.121324 | 0.389706 | 0.389706 | 0.253676 | 0.253676 | 0.253676 | 0.253676 | 0 | 0.05287 | 0.229336 | 859 | 27 | 133 | 31.814815 | 0.768882 | 0.052387 | 0 | 0.285714 | 1 | 0 | 0.112069 | 0.028325 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4d73c69d52525c90f05bb56aa4bd035003606e2 | 3,506 | py | Python | honeysnap/output.py | honeynet/honeysnap | 9b5e9ab6b5557692b78efe788cdaf24404ddf1eb | [
"FSFAP"
] | 7 | 2016-06-30T14:19:27.000Z | 2017-07-12T12:14:53.000Z | honeysnap/output.py | honeynet/honeysnap | 9b5e9ab6b5557692b78efe788cdaf24404ddf1eb | [
"FSFAP"
] | null | null | null | honeysnap/output.py | honeynet/honeysnap | 9b5e9ab6b5557692b78efe788cdaf24404ddf1eb | [
"FSFAP"
] | 2 | 2017-02-03T19:46:28.000Z | 2018-11-21T18:14:09.000Z | ################################################################################
# (c) 2006, The Honeynet Project
# Author: Jed Haile jed.haile@thelogangroup.biz
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the... | 24.690141 | 82 | 0.585853 | 423 | 3,506 | 4.605201 | 0.345154 | 0.057495 | 0.057495 | 0.041068 | 0.295688 | 0.202259 | 0.173511 | 0.104723 | 0.104723 | 0.104723 | 0 | 0.007531 | 0.280377 | 3,506 | 142 | 83 | 24.690141 | 0.764566 | 0.223046 | 0 | 0.368421 | 0 | 0 | 0.000849 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013158 | 0.013158 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b4e1ceee24e9eb121c445f19f40594324e6b8459 | 3,369 | py | Python | StorytellersAPI/Resources/LikesResource.py | Storytellers-App/team-project-19-storytellers-of-canada | 9a5f120838568aa13d1619a1fd7f038358bcece4 | [
"MIT"
] | null | null | null | StorytellersAPI/Resources/LikesResource.py | Storytellers-App/team-project-19-storytellers-of-canada | 9a5f120838568aa13d1619a1fd7f038358bcece4 | [
"MIT"
] | 3 | 2021-02-15T01:25:39.000Z | 2021-03-02T02:55:39.000Z | StorytellersAPI/Resources/LikesResource.py | csc301-fall-2020/team-project-19-storytellers-of-canada | 9a5f120838568aa13d1619a1fd7f038358bcece4 | [
"MIT"
] | 1 | 2021-06-10T03:05:38.000Z | 2021-06-10T03:05:38.000Z | from flask_restful import Resource, reqparse, abort, fields, marshal_with, \
marshal
from http import HTTPStatus
from Services.GetUserService import GetUserService
from extensions import db
from models import User
from models import Story, Comment, Like
from sqlalchemy.exc import *
from sqlalchemy import func
from... | 36.619565 | 76 | 0.59721 | 375 | 3,369 | 5.213333 | 0.234667 | 0.040921 | 0.061381 | 0.046036 | 0.732481 | 0.694629 | 0.694629 | 0.694629 | 0.672123 | 0.672123 | 0 | 0.000858 | 0.307806 | 3,369 | 91 | 77 | 37.021978 | 0.837479 | 0 | 0 | 0.604938 | 0 | 0 | 0.07005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024691 | false | 0 | 0.123457 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4e808bf7137591aa7dd471078710577301c98a6 | 57,894 | py | Python | lib/bridgedb/Bridges.py | pagea/bridgedb | a5409eef0f358e4aaaaa252f06679b3088c80f98 | [
"BSD-3-Clause-Clear"
] | null | null | null | lib/bridgedb/Bridges.py | pagea/bridgedb | a5409eef0f358e4aaaaa252f06679b3088c80f98 | [
"BSD-3-Clause-Clear"
] | null | null | null | lib/bridgedb/Bridges.py | pagea/bridgedb | a5409eef0f358e4aaaaa252f06679b3088c80f98 | [
"BSD-3-Clause-Clear"
] | null | null | null | # -*- coding: utf-8 ; test-case-name: bridgedb.test.test_Bridges -*-
#
# This file is part of BridgeDB, a Tor bridge distribution system.
#
# :authors: see AUTHORS file
# :copyright: (c) 2007-2014, The Tor Project, Inc.
# :license: 3-Clause BSD, see LICENSE for licensing information
"""This module has low-level functi... | 39.871901 | 90 | 0.582945 | 6,637 | 57,894 | 5.054693 | 0.142534 | 0.005902 | 0.004173 | 0.005723 | 0.202993 | 0.143913 | 0.114761 | 0.096191 | 0.080541 | 0.07136 | 0 | 0.008324 | 0.325561 | 57,894 | 1,451 | 91 | 39.89938 | 0.850791 | 0.057899 | 0 | 0.301351 | 0 | 0 | 0.06249 | 0.004922 | 0 | 0 | 0 | 0.001378 | 0.031081 | 0 | null | null | 0.016216 | 0.028378 | null | null | 0.07973 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b4eabb3674a9c68ab5ad8f565c7087a56ff5049a | 698 | py | Python | metabase/metabase/doctype/dashboard/dashboard.py | srajelli/frappe-metabase | 022f2e6967e3612ca3d725a82a7f961f879c0008 | [
"MIT"
] | 1 | 2020-08-26T23:23:41.000Z | 2020-08-26T23:23:41.000Z | metabase/metabase/doctype/dashboard/dashboard.py | srajelli/frappe-metabase | 022f2e6967e3612ca3d725a82a7f961f879c0008 | [
"MIT"
] | null | null | null | metabase/metabase/doctype/dashboard/dashboard.py | srajelli/frappe-metabase | 022f2e6967e3612ca3d725a82a7f961f879c0008 | [
"MIT"
] | 1 | 2019-11-26T16:11:30.000Z | 2019-11-26T16:11:30.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Officexlr Business Solutions Pvt Ltd. and Contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe, json
from frappe import _
from frappe.model.document import Document
class Dashboard(Document):
pass
@frappe.w... | 29.083333 | 104 | 0.777937 | 95 | 698 | 5.484211 | 0.547368 | 0.105566 | 0.145873 | 0.092131 | 0.099808 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014563 | 0.114613 | 698 | 24 | 105 | 29.083333 | 0.828479 | 0.206304 | 0 | 0.117647 | 0 | 0 | 0.088929 | 0.038113 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.235294 | 0 | 0.411765 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b4ecbfb0369330724c08afc55d95b9237275bca8 | 4,790 | py | Python | fitting_source/2D_fitting/plot_1_LHistidine_PASS.py | pjgrandinetti/mrsimulator | e603395e52ad162d4a9051a0741651c9030c3459 | [
"BSD-3-Clause"
] | 9 | 2021-06-10T17:52:37.000Z | 2022-02-26T16:14:58.000Z | fitting_source/2D_fitting/plot_1_LHistidine_PASS.py | pjgrandinetti/mrsimulator | e603395e52ad162d4a9051a0741651c9030c3459 | [
"BSD-3-Clause"
] | 74 | 2021-06-07T15:13:49.000Z | 2022-03-29T20:09:19.000Z | fitting_source/2D_fitting/plot_1_LHistidine_PASS.py | mgiammar/mrsimulator | 5ec5551a922d110874ae0c73a6e185a9f674fbe5 | [
"BSD-3-Clause"
] | 3 | 2021-06-17T19:01:50.000Z | 2022-03-10T09:59:00.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
¹³C 2D MAT NMR of L-Histidine
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
"""
# %%
# The following is an illustration for fitting 2D MAT/PASS datasets. The example dataset
# is a :math:`^{13}\text{C}` 2D MAT spectrum of L-Histidine from Walder `et al.` [#f1]_
import numpy as np
impo... | 29.030303 | 88 | 0.685595 | 683 | 4,790 | 4.699854 | 0.41142 | 0.026168 | 0.018692 | 0.015888 | 0.142991 | 0.129907 | 0.129907 | 0.129907 | 0.129907 | 0.129907 | 0 | 0.042626 | 0.147808 | 4,790 | 164 | 89 | 29.207317 | 0.743753 | 0.411691 | 0 | 0.269231 | 0 | 0 | 0.056425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.051282 | 0.128205 | 0 | 0.128205 | 0.012821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b4ede129965276e1809f2baa8bd4080ecfbfb003 | 6,263 | py | Python | pysnmp/CISCO-VLAN-GROUP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/CISCO-VLAN-GROUP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/CISCO-VLAN-GROUP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-VLAN-GROUP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-VLAN-GROUP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:02:29 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | 109.877193 | 912 | 0.768801 | 669 | 6,263 | 7.19432 | 0.221226 | 0.007895 | 0.01122 | 0.014959 | 0.300852 | 0.241845 | 0.184085 | 0.184085 | 0.184085 | 0.181799 | 0 | 0.069386 | 0.084145 | 6,263 | 56 | 913 | 111.839286 | 0.7697 | 0.053329 | 0 | 0.085106 | 0 | 0 | 0.197635 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.191489 | 0 | 0.191489 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4ee99b55988c957da5953e89283b1c83dfc1077 | 10,052 | py | Python | server.py | msoni-sf/intern-hack | 26e443edfd0de0c6031439eae50bc659614f03f0 | [
"MIT"
] | null | null | null | server.py | msoni-sf/intern-hack | 26e443edfd0de0c6031439eae50bc659614f03f0 | [
"MIT"
] | null | null | null | server.py | msoni-sf/intern-hack | 26e443edfd0de0c6031439eae50bc659614f03f0 | [
"MIT"
] | 1 | 2021-07-29T17:41:51.000Z | 2021-07-29T17:41:51.000Z | from flask import Flask, render_template, url_for, redirect, request
import os
import bcrypt
from pprint import pprint
import json
from matching import is_matching
from email_generator import generateOTP, email_alert
from Intruder_alert import SendMail
import io
from base64 import encodebytes
from PIL import Image
from... | 35.519435 | 166 | 0.585257 | 1,236 | 10,052 | 4.64644 | 0.162621 | 0.050496 | 0.062685 | 0.04388 | 0.492774 | 0.423994 | 0.372802 | 0.355389 | 0.336061 | 0.300366 | 0 | 0.002818 | 0.258556 | 10,052 | 282 | 167 | 35.64539 | 0.767745 | 0.01542 | 0 | 0.389121 | 1 | 0 | 0.248685 | 0.051599 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075314 | false | 0.020921 | 0.050209 | 0.033473 | 0.267782 | 0.004184 | 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 |
b4ffa031a0dcf19c8471218e84a3e889aa88b8b4 | 287 | py | Python | Chapter01/caesar5.py | eliebouissa/Hands-On-Cryptography-with-Python | defb1f530d2944547f892644b99b721c5aac912d | [
"MIT"
] | 45 | 2018-06-28T04:42:42.000Z | 2021-12-19T17:09:04.000Z | Chapter01/caesar5.py | eliebouissa/Hands-On-Cryptography-with-Python | defb1f530d2944547f892644b99b721c5aac912d | [
"MIT"
] | 1 | 2019-09-22T22:41:06.000Z | 2020-08-27T07:29:14.000Z | Chapter01/caesar5.py | eliebouissa/Hands-On-Cryptography-with-Python | defb1f530d2944547f892644b99b721c5aac912d | [
"MIT"
] | 24 | 2018-07-22T07:02:04.000Z | 2022-02-16T15:58:36.000Z | alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
str_in = raw_input("Enter ciphertext: ")
for shift in range(26):
n = len(str_in)
str_out = ""
for i in range(n):
c = str_in[i]
loc = alpha.find(c)
newloc = (loc + shift)%26
str_out += alpha[newloc]
print shift, str_out
| 15.944444 | 40 | 0.623693 | 44 | 287 | 3.909091 | 0.477273 | 0.087209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018433 | 0.243902 | 287 | 17 | 41 | 16.882353 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
3708b2a551f7f86f9a3d24c9269862227af04013 | 435 | py | Python | common/pagination.py | pannkotsky/musicworks | b70cf83c513bff43c3aeee58303a7fb499abde51 | [
"Apache-2.0"
] | null | null | null | common/pagination.py | pannkotsky/musicworks | b70cf83c513bff43c3aeee58303a7fb499abde51 | [
"Apache-2.0"
] | 7 | 2020-06-05T23:09:07.000Z | 2022-02-10T13:29:32.000Z | common/pagination.py | pannkotsky/musicworks | b70cf83c513bff43c3aeee58303a7fb499abde51 | [
"Apache-2.0"
] | null | null | null | from rest_framework.pagination import LimitOffsetPagination
from rest_framework.response import Response
class PaginationWithCountHeader(LimitOffsetPagination):
def get_paginated_response(self, data):
headers = {
'X-Total-Count': self.count,
'X-Limit': self.limit
}
... | 29 | 59 | 0.705747 | 45 | 435 | 6.666667 | 0.466667 | 0.053333 | 0.113333 | 0.153333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22069 | 435 | 14 | 60 | 31.071429 | 0.884956 | 0 | 0 | 0 | 0 | 0 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
370ea0b116bed9e9bfce05ded35fd712d3bc4cd7 | 1,121 | py | Python | test/tasks/auth.py | SqrtMinusOne/ERMaket_Experiment | c4a7b61651edd15a619d9b690e2aaeaab4de282d | [
"Apache-2.0"
] | null | null | null | test/tasks/auth.py | SqrtMinusOne/ERMaket_Experiment | c4a7b61651edd15a619d9b690e2aaeaab4de282d | [
"Apache-2.0"
] | null | null | null | test/tasks/auth.py | SqrtMinusOne/ERMaket_Experiment | c4a7b61651edd15a619d9b690e2aaeaab4de282d | [
"Apache-2.0"
] | null | null | null | from collections import deque
from locust import HttpUser, TaskSet, task
import logging
import pandas as pd
from config import Config
CREDENTIALS = None
class LoginTasks(TaskSet):
def on_start(self):
if len(CREDENTIALS) > 0:
self.login, self.password = CREDENTIALS.pop()
else:
... | 24.911111 | 74 | 0.615522 | 132 | 1,121 | 5.098485 | 0.431818 | 0.053492 | 0.062407 | 0.080238 | 0.109955 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00365 | 0.266726 | 1,121 | 44 | 75 | 25.477273 | 0.815085 | 0.078501 | 0 | 0 | 0 | 0 | 0.068027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.133333 | 0.166667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
371d57ebe44a5032056616a2f1338e0539a04a8e | 318 | py | Python | ex7-6.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | ex7-6.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | ex7-6.py | yiyidhuang/PythonCrashCrouse2nd | 3512f9ab8fcf32c6145604a37e2a62feddf174d1 | [
"MIT"
] | null | null | null | prompt = "How old are you?"
message = ""
while message != 'quit':
message = input(prompt)
if message != 'quit':
age = int(message)
if age < 3:
print("Free")
elif age < 12:
print("The fare is 10 dollar")
else:
print("The fare is 15 dollar")
| 21.2 | 42 | 0.493711 | 39 | 318 | 4.025641 | 0.615385 | 0.140127 | 0.152866 | 0.178344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035533 | 0.380503 | 318 | 14 | 43 | 22.714286 | 0.761421 | 0 | 0 | 0 | 0 | 0 | 0.220126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
372115a9889690bd3180bdf913bab25dfd4ad68c | 407 | py | Python | dreal/test/python/odr_test.py | chris-lamb/dreal4 | baa54b73d7ef5c224e6eba59f7bbff50c79b65e9 | [
"Apache-2.0"
] | 2 | 2020-07-12T18:01:24.000Z | 2020-10-02T21:11:51.000Z | dreal/test/python/odr_test.py | martinjos/dlinear4 | c0569f49762393eab2cd5d8823db8decb3cbe15e | [
"Apache-2.0"
] | 1 | 2018-01-19T16:11:44.000Z | 2018-01-19T16:11:44.000Z | dreal/test/python/odr_test.py | martinjos/dlinear4 | c0569f49762393eab2cd5d8823db8decb3cbe15e | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import, division, print_function
import unittest
import dreal
import dreal._odr_test_module_py as odr_test_module
class TestODR(unittest.TestCase):
def test_variable(self):
x1 = dreal.Variable('x')
x2 = odr_test_module.new_variable('x')
self.assertNotEqual... | 22.611111 | 64 | 0.72973 | 56 | 407 | 4.839286 | 0.571429 | 0.077491 | 0.143911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014793 | 0.169533 | 407 | 17 | 65 | 23.941176 | 0.786982 | 0 | 0 | 0 | 0 | 0 | 0.02457 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
37254420921b7fe52dd696ee331b16ce4f4dfa99 | 2,365 | py | Python | Numerical_Methods_Project.py | Crazyhjb/Numerical-Methods-Project | c630c0af42681fba0de7f3d89c2322e2d8e0189f | [
"Apache-2.0"
] | null | null | null | Numerical_Methods_Project.py | Crazyhjb/Numerical-Methods-Project | c630c0af42681fba0de7f3d89c2322e2d8e0189f | [
"Apache-2.0"
] | null | null | null | Numerical_Methods_Project.py | Crazyhjb/Numerical-Methods-Project | c630c0af42681fba0de7f3d89c2322e2d8e0189f | [
"Apache-2.0"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
#Heat equation
A1 = np.array([[4,-1,0,-1,0,0,0,0,0],
[-1,4,-1,0,-1,0,0,0,0],
[0,-1,4,0,0,-1,0,0,0],
[-1,0,0,4,-1,0,-1,0,0],
[0,-1,0,-1,4,-1,0,-1,0],
[0,0,-1,0,-1,4,0,0,-1],
[0,0,0,-1,0,0,4,-1,0],
[0,0,0,0,-1,0,-1,4,-1],
[0,0,0,0,0,-1,0,-1,4]])
b= np... | 30.714286 | 61 | 0.609302 | 548 | 2,365 | 2.629562 | 0.228102 | 0.049965 | 0.037474 | 0.024983 | 0.235947 | 0.111728 | 0.111728 | 0.111728 | 0.090909 | 0.067314 | 0 | 0.178287 | 0.096406 | 2,365 | 77 | 62 | 30.714286 | 0.496022 | 0.052854 | 0 | 0.028169 | 0 | 0 | 0.139352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028169 | 0 | 0.028169 | 0.084507 | 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 |
372cb30e93be2ae60012ccb08f1ba13be64ba26b | 1,858 | py | Python | practice_rounds/__init__.py | oTree-org/snippets | 6bd4b5fe9fdcec4d759cc0a5b2b2b1c7bb6fe73c | [
"MIT"
] | null | null | null | practice_rounds/__init__.py | oTree-org/snippets | 6bd4b5fe9fdcec4d759cc0a5b2b2b1c7bb6fe73c | [
"MIT"
] | null | null | null | practice_rounds/__init__.py | oTree-org/snippets | 6bd4b5fe9fdcec4d759cc0a5b2b2b1c7bb6fe73c | [
"MIT"
] | null | null | null | from otree.api import *
doc = """Practice rounds"""
class C(BaseConstants):
NAME_IN_URL = 'practice_rounds'
PLAYERS_PER_GROUP = None
NUM_PRACTICE_ROUNDS = 2
NUM_REAL_ROUNDS = 10
NUM_ROUNDS = NUM_PRACTICE_ROUNDS + NUM_REAL_ROUNDS
class Subsession(BaseSubsession):
is_practice_round = models.... | 24.447368 | 74 | 0.685145 | 220 | 1,858 | 5.545455 | 0.363636 | 0.080328 | 0.069672 | 0.061475 | 0.181967 | 0.132787 | 0.132787 | 0 | 0 | 0 | 0 | 0.004892 | 0.229817 | 1,858 | 75 | 75 | 24.773333 | 0.847659 | 0.061895 | 0 | 0.12 | 0 | 0 | 0.025287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.02 | 0.02 | 0.02 | 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 |
2e95c16a4bfc00e67e206f4f548bb99073f8c805 | 3,778 | py | Python | course/code/sequences.py | vadym-khodak/python-basic-course | e62f03e4828edd30f44e97a3fab5089f79880dc3 | [
"MIT"
] | 1 | 2022-01-31T15:12:37.000Z | 2022-01-31T15:12:37.000Z | course/code/sequences.py | vadym-khodak/python-basic-course | e62f03e4828edd30f44e97a3fab5089f79880dc3 | [
"MIT"
] | 1 | 2022-02-03T19:07:06.000Z | 2022-02-03T19:07:06.000Z | course/code/sequences.py | vadym-khodak/python-basic-course | e62f03e4828edd30f44e97a3fab5089f79880dc3 | [
"MIT"
] | null | null | null | # list - список, послідовність елементів
# Ініціалізація змінних типу list
names = ["john", "rob", "bill"]
chars = list("hello")
new_chars = ["h", "e", "l", "l", "o"]
new_users = []
numbers = list(range(1, 11))
# Перевірка типу
print(type(names))
# Перевірка змінної типу list
print("rob" in names)
print(chars == new_... | 21.965116 | 74 | 0.721016 | 559 | 3,778 | 4.788909 | 0.261181 | 0.048562 | 0.039223 | 0.037355 | 0.215913 | 0.121778 | 0.104595 | 0.083676 | 0.083676 | 0.076952 | 0 | 0.024248 | 0.137639 | 3,778 | 171 | 75 | 22.093567 | 0.797422 | 0.412388 | 0 | 0.173469 | 0 | 0 | 0.061206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.010204 | 0 | 0 | 0 | 0.622449 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
2e96ba640f3a841b6c013e064c8915c5c918cee6 | 273 | py | Python | falmer/flags/types.py | sussexstudent/services-api | ae735bd9d6177002c3d986e5c19a78102233308f | [
"MIT"
] | 2 | 2017-04-27T19:35:59.000Z | 2017-06-13T16:19:33.000Z | falmer/flags/types.py | sussexstudent/falmer | ae735bd9d6177002c3d986e5c19a78102233308f | [
"MIT"
] | 975 | 2017-04-13T11:31:07.000Z | 2022-02-10T07:46:18.000Z | falmer/flags/types.py | sussexstudent/services-api | ae735bd9d6177002c3d986e5c19a78102233308f | [
"MIT"
] | 3 | 2018-05-09T06:42:25.000Z | 2020-12-10T18:29:30.000Z | from graphene_django import DjangoObjectType
from . import models
class Flag(DjangoObjectType):
class Meta:
model = models.Flag
fields = (
'id',
'name',
'state',
'mode',
'expired',
)
| 18.2 | 44 | 0.490842 | 22 | 273 | 6.045455 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.417582 | 273 | 14 | 45 | 19.5 | 0.836478 | 0 | 0 | 0 | 0 | 0 | 0.080586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
2e9b780c6feddd19d9435fe0d6aff3d126a5b21a | 729 | py | Python | music/migrations/0008_lien_date_validation.py | amin-da71/Benbb96 | 0c9e37425d0665e403ba6fecf0c4b17669c29ada | [
"MIT"
] | null | null | null | music/migrations/0008_lien_date_validation.py | amin-da71/Benbb96 | 0c9e37425d0665e403ba6fecf0c4b17669c29ada | [
"MIT"
] | 13 | 2021-02-13T20:15:18.000Z | 2022-03-11T23:57:07.000Z | music/migrations/0008_lien_date_validation.py | amin-da71/Benbb96 | 0c9e37425d0665e403ba6fecf0c4b17669c29ada | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2019-12-25 21:54
from django.db import migrations, models
from django.utils import timezone
def set_date_validation(apps, schema_editor):
Lien = apps.get_model("music", "Lien")
db_alias = schema_editor.connection.alias
Lien.objects.using(db_alias).update(date_validation=tim... | 27 | 97 | 0.679012 | 88 | 729 | 5.443182 | 0.602273 | 0.11691 | 0.070981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053819 | 0.209877 | 729 | 26 | 98 | 28.038462 | 0.777778 | 0.061728 | 0 | 0 | 1 | 0 | 0.108504 | 0.033724 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 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 |
2eaace4fd7a9898b9f9c13615f246ad6c309d6e0 | 10,010 | py | Python | test/specs/test_spec_file.py | babatana/stograde | c1c447e99c44c23cef9dd857e669861f3708ae77 | [
"MIT"
] | null | null | null | test/specs/test_spec_file.py | babatana/stograde | c1c447e99c44c23cef9dd857e669861f3708ae77 | [
"MIT"
] | null | null | null | test/specs/test_spec_file.py | babatana/stograde | c1c447e99c44c23cef9dd857e669861f3708ae77 | [
"MIT"
] | null | null | null | from stograde.specs.file_options import FileOptions
from stograde.specs.spec_file import create_spec_file
def check_file_options_has_defaults(options: FileOptions,
*,
test_compile_optional: bool = True,
test_hi... | 32.605863 | 88 | 0.617083 | 1,165 | 10,010 | 4.903004 | 0.075536 | 0.109069 | 0.085784 | 0.067227 | 0.72549 | 0.701331 | 0.671218 | 0.593312 | 0.47374 | 0.423669 | 0 | 0.011766 | 0.295305 | 10,010 | 306 | 89 | 32.712418 | 0.797987 | 0.006793 | 0 | 0.471774 | 0 | 0 | 0.148003 | 0 | 0 | 0 | 0 | 0 | 0.262097 | 1 | 0.080645 | false | 0.012097 | 0.008065 | 0 | 0.08871 | 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 |
2eaff6a324fe6bf0dd11bab04051de4784180356 | 7,040 | py | Python | df2pdf.py | gusamarante/df2pdf | 9dee2c6326f52b418f9342d4daa5c0b8d667f309 | [
"MIT"
] | 2 | 2021-12-28T04:17:54.000Z | 2021-12-30T11:54:55.000Z | df2pdf.py | gusamarante/df2pdf | 9dee2c6326f52b418f9342d4daa5c0b8d667f309 | [
"MIT"
] | null | null | null | df2pdf.py | gusamarante/df2pdf | 9dee2c6326f52b418f9342d4daa5c0b8d667f309 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from matplotlib import rcParams
from matplotlib.colors import LinearSegmentedColormap
def df2table(data, col_width=1.8, row_height=0.4, font_size=14,
header_face_color='#3333B2', header_font_color='w',
r... | 42.155689 | 114 | 0.660653 | 994 | 7,040 | 4.583501 | 0.275654 | 0.016462 | 0.011853 | 0.009877 | 0.134767 | 0.09043 | 0.09043 | 0.078578 | 0.078578 | 0.078578 | 0 | 0.008043 | 0.240625 | 7,040 | 166 | 115 | 42.409639 | 0.844183 | 0.427273 | 0 | 0.202381 | 0 | 0 | 0.089096 | 0 | 0 | 0 | 0 | 0.012048 | 0.02381 | 1 | 0.02381 | false | 0 | 0.071429 | 0 | 0.119048 | 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 |
2eb49fbce433b4fcba37ea8eac1de9cbfafeb590 | 421 | py | Python | collab/migrations/0005_auto_20190710_1415.py | xakiv/collab_poc | 4fd88baf14617d6650357231d9ba365f528dbd2c | [
"Apache-2.0"
] | null | null | null | collab/migrations/0005_auto_20190710_1415.py | xakiv/collab_poc | 4fd88baf14617d6650357231d9ba365f528dbd2c | [
"Apache-2.0"
] | null | null | null | collab/migrations/0005_auto_20190710_1415.py | xakiv/collab_poc | 4fd88baf14617d6650357231d9ba365f528dbd2c | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2 on 2019-07-10 14:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('collab', '0004_auto_20190710_1325'),
]
operations = [
migrations.AlterField(
model_name='featuretype',
name='slug',
... | 22.157895 | 85 | 0.615202 | 46 | 421 | 5.5 | 0.804348 | 0.063241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 0.268409 | 421 | 18 | 86 | 23.388889 | 0.714286 | 0.102138 | 0 | 0 | 1 | 0 | 0.12766 | 0.06117 | 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 |
2ebdb76880fa8ac83abdc83edcc2d9824b1fc244 | 619 | py | Python | fleet/migrations/0003_fleet_groups.py | Dreadbomb/allianceauth-fleet | 5eb23018a2bd20602cf1c9aa2cda88b80a1a5514 | [
"MIT"
] | 1 | 2020-08-16T21:10:45.000Z | 2020-08-16T21:10:45.000Z | fleet/migrations/0003_fleet_groups.py | Dreadbomb/allianceauth-fleet | 5eb23018a2bd20602cf1c9aa2cda88b80a1a5514 | [
"MIT"
] | 6 | 2020-06-13T03:51:26.000Z | 2020-09-16T17:17:28.000Z | fleet/migrations/0003_fleet_groups.py | Dreadbomb/allianceauth-fleet | 5eb23018a2bd20602cf1c9aa2cda88b80a1a5514 | [
"MIT"
] | 4 | 2020-09-16T16:07:15.000Z | 2020-12-13T15:34:27.000Z | # Generated by Django 2.2.12 on 2020-06-13 17:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("groupmanagement", "0013_fix_requestlog_date_field"),
("fleet", "0002_fleet_name"),
]
operations = [
migrations.AddField(
... | 25.791667 | 77 | 0.583199 | 63 | 619 | 5.571429 | 0.746032 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056471 | 0.313409 | 619 | 23 | 78 | 26.913043 | 0.769412 | 0.074313 | 0 | 0.117647 | 1 | 0 | 0.290718 | 0.096322 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
2ebf663bee37a46e4f74a27cf9ac97fa622460e5 | 649 | py | Python | src/example_settings.py | robbietjuh/py-nagios-wa | e95040de647d68454733a627178602bc469a29bd | [
"MIT"
] | 4 | 2016-07-04T20:54:37.000Z | 2021-05-22T09:06:18.000Z | src/example_settings.py | robbietjuh/py-nagios-wa | e95040de647d68454733a627178602bc469a29bd | [
"MIT"
] | null | null | null | src/example_settings.py | robbietjuh/py-nagios-wa | e95040de647d68454733a627178602bc469a29bd | [
"MIT"
] | 3 | 2016-09-26T06:31:52.000Z | 2020-10-30T16:34:51.000Z | CREDENTIALS = {
'username': 'Replace with your WA username',
'password': 'Replace with your WA password (b64)'
}
DEFAULT_RECIPIENTS = ('single-user@s.whatsapp.net', 'group-chat@g.us',)
HOST_NOTIFICATION = '%(emoji)s %(type)s HOST ALERT %(emoji)s\n\n' + \
'Host %(host)s, %(address)s is %(st... | 40.5625 | 90 | 0.488444 | 83 | 649 | 3.783133 | 0.373494 | 0.038217 | 0.057325 | 0.10828 | 0.452229 | 0.22293 | 0.22293 | 0.22293 | 0.22293 | 0.22293 | 0 | 0.004474 | 0.311248 | 649 | 16 | 91 | 40.5625 | 0.697987 | 0 | 0 | 0.307692 | 0 | 0.076923 | 0.546154 | 0.04 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2ec192cc6eea44f89a88cbc3bdca0b016f9cb366 | 3,589 | py | Python | tilecache/views.py | neurodata/ocptilecache | 4c0e8ea65c7ed2c532c81de5f842e0dbb944a6f0 | [
"Apache-2.0"
] | null | null | null | tilecache/views.py | neurodata/ocptilecache | 4c0e8ea65c7ed2c532c81de5f842e0dbb944a6f0 | [
"Apache-2.0"
] | 1 | 2016-03-04T01:08:19.000Z | 2016-04-27T02:29:10.000Z | tilecache/views.py | neurodata/ocptilecache | 4c0e8ea65c7ed2c532c81de5f842e0dbb944a6f0 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Open Connectome Project (http://openconnecto.me)
#
# 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 app... | 39.877778 | 114 | 0.672611 | 521 | 3,589 | 4.587332 | 0.349328 | 0.02636 | 0.012552 | 0.014644 | 0.258159 | 0.200837 | 0.160669 | 0.160669 | 0.122176 | 0.07364 | 0 | 0.00408 | 0.180552 | 3,589 | 89 | 115 | 40.325843 | 0.808569 | 0.311507 | 0 | 0.27451 | 0 | 0.039216 | 0.147589 | 0.061635 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.098039 | 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 |
2ecc5dd492c9219ca784137f524bdd96053557ec | 11,651 | py | Python | tests/validation/cattlevalidationtest/core/test_rancher_compose.py | aruneli/rancher-tests | f0ff5539420ac354fc951ed239b002cecde52505 | [
"Apache-2.0"
] | null | null | null | tests/validation/cattlevalidationtest/core/test_rancher_compose.py | aruneli/rancher-tests | f0ff5539420ac354fc951ed239b002cecde52505 | [
"Apache-2.0"
] | null | null | null | tests/validation/cattlevalidationtest/core/test_rancher_compose.py | aruneli/rancher-tests | f0ff5539420ac354fc951ed239b002cecde52505 | [
"Apache-2.0"
] | null | null | null | from tests.validation.cattlevalidationtest.core.common_fixtures import * # NOQA
import pytest
import pickle
TEST_SERVICE_OPT_IMAGE = 'ibuildthecloud/helloworld'
TEST_SERVICE_OPT_IMAGE_LATEST = TEST_SERVICE_OPT_IMAGE + ':latest'
TEST_SERVICE_OPT_IMAGE_UUID = 'docker:' + TEST_SERVICE_OPT_IMAGE_LATEST
LB_IMAGE_UUID = "d... | 44.639847 | 117 | 0.591795 | 1,247 | 11,651 | 5.288693 | 0.176423 | 0.007278 | 0.012737 | 0.014556 | 0.44746 | 0.4 | 0.354359 | 0.309932 | 0.303563 | 0.271721 | 0 | 0.01281 | 0.296455 | 11,651 | 260 | 118 | 44.811538 | 0.791753 | 0.041627 | 0 | 0.220183 | 0 | 0 | 0.144087 | 0.026181 | 0 | 0 | 0 | 0 | 0.114679 | 0 | null | null | 0 | 0.013761 | null | null | 0.110092 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2ed1d903cfa4738f4cfcb2bea7e7927498e2b88b | 678 | py | Python | django_sourcebook/sourcebook/migrations/0007_auto_20200101_1423.py | maxblee/django_sourcebook | f90ca62cfe43c875a485f783ca1a06be40d9bbc5 | [
"MIT"
] | null | null | null | django_sourcebook/sourcebook/migrations/0007_auto_20200101_1423.py | maxblee/django_sourcebook | f90ca62cfe43c875a485f783ca1a06be40d9bbc5 | [
"MIT"
] | null | null | null | django_sourcebook/sourcebook/migrations/0007_auto_20200101_1423.py | maxblee/django_sourcebook | f90ca62cfe43c875a485f783ca1a06be40d9bbc5 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.1 on 2020-01-01 19:23
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
("sourcebook", "0006_auto_20200101_1401"),
]
operations = [
migrations.AddField(
model_name="foiarequ... | 26.076923 | 74 | 0.620944 | 68 | 678 | 6.058824 | 0.691176 | 0.053398 | 0.092233 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068826 | 0.271386 | 678 | 25 | 75 | 27.12 | 0.765182 | 0.066372 | 0 | 0.210526 | 1 | 0 | 0.147385 | 0.03645 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2ef3754609a32b94977b11c8fd2fb0636e6d7c1a | 6,542 | py | Python | plotly_study/callbacks.py | lucasiscovici/plotly_py | 42ab769febb45fbbe0a3c677dc4306a4f59cea36 | [
"MIT"
] | null | null | null | plotly_study/callbacks.py | lucasiscovici/plotly_py | 42ab769febb45fbbe0a3c677dc4306a4f59cea36 | [
"MIT"
] | null | null | null | plotly_study/callbacks.py | lucasiscovici/plotly_py | 42ab769febb45fbbe0a3c677dc4306a4f59cea36 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from plotly_study.utils import _list_repr_elided
class InputDeviceState:
def __init__(
self, ctrl=None, alt=None, shift=None, meta=None, button=None, buttons=None, **_
):
self._ctrl = ctrl
self._alt = alt
self._meta = meta
self._s... | 21.806667 | 88 | 0.516509 | 696 | 6,542 | 4.681034 | 0.189655 | 0.057397 | 0.025783 | 0.027624 | 0.322591 | 0.322591 | 0.228668 | 0.217311 | 0.198281 | 0.173726 | 0 | 0.004162 | 0.375573 | 6,542 | 299 | 89 | 21.879599 | 0.79339 | 0.30159 | 0 | 0.346774 | 0 | 0 | 0.125798 | 0.036379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.201613 | false | 0 | 0.016129 | 0.032258 | 0.419355 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.