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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bcee75eef13f9de161cfe87a2dc42c7cd699eecc | 1,289 | py | Python | nrutils/generate/pn.py | Cyberface/nrutils_dev | 4dc4e684c3f9bce0ff594fe924198e62a3edfe44 | [
"MIT"
] | null | null | null | nrutils/generate/pn.py | Cyberface/nrutils_dev | 4dc4e684c3f9bce0ff594fe924198e62a3edfe44 | [
"MIT"
] | null | null | null | nrutils/generate/pn.py | Cyberface/nrutils_dev | 4dc4e684c3f9bce0ff594fe924198e62a3edfe44 | [
"MIT"
] | null | null | null | # Module to calculate PN strain waveforms. The output will be members of the gwylm class.
'''
References
[1] "Comparison of post-Newtonian templates ... "
Buonanno, Iyer, Ochsner et al
https://arxiv.org/pdf/0907.0700.pdf
** NONSPINNING
[2] https://arxiv.org/pdf/1502.01747v1.pdf
** GENERAL SPINS
PLAN... | 21.131148 | 110 | 0.579519 | 155 | 1,289 | 4.767742 | 0.677419 | 0.056834 | 0.035183 | 0.043302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034198 | 0.342126 | 1,289 | 60 | 111 | 21.483333 | 0.837264 | 0.565555 | 0 | 0 | 0 | 0 | 0.011173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0.058824 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
bcef84cad262574eb93c23bf32ed5cde2e6aee76 | 172 | py | Python | python_code_examples/scraping/time_sleep.py | gotoplanb/python-adv-web-apps | ea7cec31e412419f39df2744e2b20eff248587cb | [
"MIT"
] | 42 | 2018-03-25T22:41:57.000Z | 2022-01-08T21:23:02.000Z | python_code_examples/scraping/time_sleep.py | gotoplanb/python-adv-web-apps | ea7cec31e412419f39df2744e2b20eff248587cb | [
"MIT"
] | 5 | 2021-05-24T19:18:37.000Z | 2022-02-01T15:41:42.000Z | python_code_examples/scraping/time_sleep.py | gotoplanb/python-adv-web-apps | ea7cec31e412419f39df2744e2b20eff248587cb | [
"MIT"
] | 64 | 2020-03-13T13:16:48.000Z | 2022-03-30T11:25:53.000Z | import time
print("I will write the same line 3 times, slowly.\n")
time.sleep(2)
for n in range(3):
print("Sleep ... zzz ...")
time.sleep(5)
print("\nThe End")
| 14.333333 | 54 | 0.616279 | 30 | 172 | 3.533333 | 0.733333 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029197 | 0.203488 | 172 | 11 | 55 | 15.636364 | 0.744526 | 0 | 0 | 0 | 0 | 0 | 0.412791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bcf2300b6276863e1cf80a1442930cb5181f5130 | 1,652 | py | Python | examples/fantasy/controllers.py | MarSoft/aiohttp_json_api | 1d4864a0f73e4df33278e16d499642a60fa89aaa | [
"MIT"
] | 19 | 2017-08-10T07:58:33.000Z | 2022-02-13T01:30:10.000Z | examples/fantasy/controllers.py | MarSoft/aiohttp_json_api | 1d4864a0f73e4df33278e16d499642a60fa89aaa | [
"MIT"
] | 218 | 2017-06-14T22:41:25.000Z | 2021-07-19T02:57:58.000Z | examples/fantasy/controllers.py | MarSoft/aiohttp_json_api | 1d4864a0f73e4df33278e16d499642a60fa89aaa | [
"MIT"
] | 5 | 2017-08-23T08:17:05.000Z | 2022-03-27T12:27:19.000Z | from aiohttp_json_api.controller import DefaultController
from aiohttp_json_api.errors import ResourceNotFound
from aiohttp_json_api.fields.decorators import includes
import examples.fantasy.tables as tbl
from examples.fantasy.models import Author
class CommonController(DefaultController):
async def create_resou... | 32.392157 | 79 | 0.694915 | 207 | 1,652 | 5.405797 | 0.338164 | 0.042895 | 0.057194 | 0.048257 | 0.268097 | 0.198391 | 0.198391 | 0.198391 | 0.198391 | 0.198391 | 0 | 0 | 0.210654 | 1,652 | 50 | 80 | 33.04 | 0.858129 | 0 | 0 | 0.264706 | 0 | 0 | 0.007264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.147059 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bcf2dc53acbe84bf72632b7f59fa2558753385ae | 1,369 | py | Python | pyvoltha/adapters/extensions/events/heartbeat_event.py | nsharma70/pyvoltha | ea01eb85f45e3cd0bed12b4b446e5af7f66c16db | [
"Apache-2.0"
] | null | null | null | pyvoltha/adapters/extensions/events/heartbeat_event.py | nsharma70/pyvoltha | ea01eb85f45e3cd0bed12b4b446e5af7f66c16db | [
"Apache-2.0"
] | 1 | 2021-03-25T23:34:15.000Z | 2021-03-25T23:34:15.000Z | pyvoltha/adapters/extensions/events/heartbeat_event.py | rohan-agra/VOL-2311-pyvoltha | 54ac9266cf4fc27a7583ba08ada779ad107e9cfe | [
"Apache-2.0"
] | null | null | null | # Copyright 2017-present Adtran, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 45.633333 | 91 | 0.68298 | 160 | 1,369 | 5.6625 | 0.6375 | 0.066225 | 0.028698 | 0.03532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009775 | 0.252739 | 1,369 | 29 | 92 | 47.206897 | 0.875855 | 0.403944 | 0 | 0 | 0 | 0 | 0.03616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
bcf5ffe02665ab8b37908523774e761ae8bb3f6a | 3,032 | py | Python | kubernetes/test/test_v1_api_resource_list.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | kubernetes/test/test_v1_api_resource_list.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | kubernetes/test/test_v1_api_resource_list.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.20.7
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unitte... | 32.255319 | 124 | 0.448549 | 234 | 3,032 | 5.619658 | 0.380342 | 0.073004 | 0.06692 | 0.073004 | 0.343726 | 0.296578 | 0.296578 | 0.237262 | 0.237262 | 0.237262 | 0 | 0.031975 | 0.473945 | 3,032 | 93 | 125 | 32.602151 | 0.792476 | 0.181069 | 0 | 0.676923 | 1 | 0 | 0.012474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061538 | false | 0.030769 | 0.092308 | 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 |
bcf9cedd79928684349e5b9c2f836a7e089f5167 | 463 | py | Python | pictures/urls.py | Tajeu2001/my-gallery | 7ddcfab8c0ced1ae62a5316c5234fa191fb23bdd | [
"MIT"
] | null | null | null | pictures/urls.py | Tajeu2001/my-gallery | 7ddcfab8c0ced1ae62a5316c5234fa191fb23bdd | [
"MIT"
] | null | null | null | pictures/urls.py | Tajeu2001/my-gallery | 7ddcfab8c0ced1ae62a5316c5234fa191fb23bdd | [
"MIT"
] | null | null | null | from django.conf import settings
from django.conf.urls.static import static
from django.urls import path
from . import views
app_name = 'pictures'
urlpatterns = [
path(r'', views.index, name='index'),
path(r'search/', views.search_results, name='search'),
]
if settings.DEBUG:
urlpatterns+= static(set... | 30.866667 | 89 | 0.7473 | 61 | 463 | 5.540984 | 0.409836 | 0.088757 | 0.08284 | 0.136095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138229 | 463 | 15 | 89 | 30.866667 | 0.847118 | 0 | 0 | 0 | 0 | 0 | 0.056034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bcfcc661f6f51d800c8d577fa4c09b46ac7cca28 | 367 | py | Python | src/build_auto.py | kor-solidarity/screeps_python | 18479c00c2284eeddc583ad55e3ae9f9fc3e09ff | [
"MIT"
] | null | null | null | src/build_auto.py | kor-solidarity/screeps_python | 18479c00c2284eeddc583ad55e3ae9f9fc3e09ff | [
"MIT"
] | null | null | null | src/build_auto.py | kor-solidarity/screeps_python | 18479c00c2284eeddc583ad55e3ae9f9fc3e09ff | [
"MIT"
] | null | null | null | from defs import *
__pragma__('noalias', 'name')
__pragma__('noalias', 'undefined')
__pragma__('noalias', 'Infinity')
__pragma__('noalias', 'keys')
__pragma__('noalias', 'get')
__pragma__('noalias', 'set')
__pragma__('noalias', 'type')
__pragma__('noalias', 'update')
def check_for_destroyed_buildings(memory):
# ... | 24.466667 | 42 | 0.713896 | 43 | 367 | 5.27907 | 0.674419 | 0.45815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117166 | 367 | 15 | 43 | 24.466667 | 0.700617 | 0.098093 | 0 | 0 | 0 | 0 | 0.293939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0.090909 | 0.272727 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c0557fe37808878289bb313252d2593c1f18783 | 52,440 | py | Python | python/ccxt/async_support/bitopro.py | sky1008/ccxt | dc094a17dddb2f5fd703901f0b0a08d3fa2618f4 | [
"MIT"
] | 1 | 2022-03-20T07:15:44.000Z | 2022-03-20T07:15:44.000Z | python/ccxt/async_support/bitopro.py | sky1008/ccxt | dc094a17dddb2f5fd703901f0b0a08d3fa2618f4 | [
"MIT"
] | null | null | null | python/ccxt/async_support/bitopro.py | sky1008/ccxt | dc094a17dddb2f5fd703901f0b0a08d3fa2618f4 | [
"MIT"
] | 2 | 2022-03-15T22:31:00.000Z | 2022-03-23T06:08:29.000Z | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
import hashlib
import math
from ccxt.base.errors import ExchangeError
from ccxt.base.... | 39.076006 | 130 | 0.448074 | 3,841 | 52,440 | 6.041656 | 0.168966 | 0.039645 | 0.031974 | 0.0131 | 0.399078 | 0.360338 | 0.336551 | 0.319659 | 0.283892 | 0.262518 | 0 | 0.064866 | 0.425858 | 52,440 | 1,341 | 131 | 39.105145 | 0.705892 | 0.251678 | 0 | 0.277167 | 1 | 0.002442 | 0.127617 | 0.011512 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015873 | false | 0 | 0.01221 | 0.002442 | 0.072039 | 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 |
4c083789e9badf8c167f1b75a431d5ef1136c8ad | 216 | py | Python | am/scraper/tasks/bill_text/scrape_pdf_text.py | access-missouri/am-django-project | 2457b8089900c61c73000c1d7479b7a72f6d1855 | [
"BSD-2-Clause"
] | 4 | 2018-05-01T20:31:49.000Z | 2021-12-20T19:30:40.000Z | am/scraper/tasks/bill_text/scrape_pdf_text.py | access-missouri/am-django-project | 2457b8089900c61c73000c1d7479b7a72f6d1855 | [
"BSD-2-Clause"
] | 22 | 2017-04-13T15:02:09.000Z | 2021-02-02T21:48:41.000Z | am/scraper/tasks/bill_text/scrape_pdf_text.py | access-missouri/am-django-project | 2457b8089900c61c73000c1d7479b7a72f6d1855 | [
"BSD-2-Clause"
] | 1 | 2018-07-02T20:08:43.000Z | 2018-07-02T20:08:43.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
AWS Lambda task for scraping a single BillText from PDF.
"""
from zappa.async import task_sns
@task_sns
def scrape_pdf_text(text_url):
raise ValueError(text_url) | 21.6 | 56 | 0.722222 | 35 | 216 | 4.285714 | 0.771429 | 0.093333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005435 | 0.148148 | 216 | 10 | 57 | 21.6 | 0.809783 | 0.194444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | 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 |
4c08859d455b50ea997d1f52f8102640bd357451 | 3,742 | py | Python | tictactoe.py | Xevaquor/aipac | 718b583ce204952469e5ff96be68ccc41857671c | [
"MIT"
] | null | null | null | tictactoe.py | Xevaquor/aipac | 718b583ce204952469e5ff96be68ccc41857671c | [
"MIT"
] | null | null | null | tictactoe.py | Xevaquor/aipac | 718b583ce204952469e5ff96be68ccc41857671c | [
"MIT"
] | 1 | 2020-06-25T17:23:08.000Z | 2020-06-25T17:23:08.000Z | #!/usr/bin/env python
# coding=utf-8
__author__ = 'Xevaquor'
__license__ = 'MIT'
from copy import deepcopy
import random
from minmax import MinmaxAgent
from common import Field
class RandomAgent(object):
def __init__(self, symbol=Field.Circle):
self.symbol = symbol
def make_move(self, state, game):... | 25.986111 | 88 | 0.516034 | 466 | 3,742 | 3.980687 | 0.23176 | 0.059299 | 0.06469 | 0.086253 | 0.28248 | 0.203774 | 0.149865 | 0.142318 | 0.142318 | 0.099191 | 0 | 0.022755 | 0.354089 | 3,742 | 143 | 89 | 26.167832 | 0.744725 | 0.024853 | 0 | 0.266055 | 0 | 0 | 0.028532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009174 | 0.036697 | null | null | 0.055046 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4c0e7007e9985e6b5600017b20a41ebfda714452 | 1,642 | py | Python | wakawaka/models.py | bartTC/django-wakawaka | 0ea998e1571c47682300bb4a26f80c362dee4ff0 | [
"BSD-3-Clause"
] | 52 | 2015-03-04T03:50:49.000Z | 2022-01-11T06:57:53.000Z | wakawaka/models.py | bartTC/django-wakawaka | 0ea998e1571c47682300bb4a26f80c362dee4ff0 | [
"BSD-3-Clause"
] | 14 | 2016-04-09T11:47:09.000Z | 2021-06-01T23:20:36.000Z | wakawaka/models.py | bartTC/django-wakawaka | 0ea998e1571c47682300bb4a26f80c362dee4ff0 | [
"BSD-3-Clause"
] | 36 | 2015-01-19T00:51:23.000Z | 2021-01-08T12:23:55.000Z | from django.conf import settings
from django.db import models
from django.utils.translation import gettext
from django.utils.translation import gettext_lazy as _
class WikiPage(models.Model):
slug = models.CharField(_('slug'), max_length=255)
created = models.DateTimeField(_('created'), auto_now_add=True)
... | 30.981132 | 68 | 0.655907 | 184 | 1,642 | 5.597826 | 0.380435 | 0.038835 | 0.029126 | 0.050485 | 0.353398 | 0.295146 | 0.219417 | 0.219417 | 0.219417 | 0.219417 | 0 | 0.002342 | 0.219854 | 1,642 | 52 | 69 | 31.576923 | 0.801717 | 0 | 0 | 0.186047 | 0 | 0 | 0.130329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.093023 | 0.069767 | 0.55814 | 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 |
4c0efca8a040c5794a06555244cbaae5ed311ce3 | 744 | py | Python | test/utils/test_download.py | jimbozhang/PySpeechColab | d0a41f6908b3672f926464be9546e2090a2c97f2 | [
"Apache-2.0"
] | 11 | 2021-04-20T05:58:14.000Z | 2021-10-10T05:51:04.000Z | test/utils/test_download.py | jimbozhang/PySpeechColab | d0a41f6908b3672f926464be9546e2090a2c97f2 | [
"Apache-2.0"
] | 4 | 2021-05-06T11:57:12.000Z | 2021-09-27T14:32:15.000Z | test/utils/test_download.py | jimbozhang/PySpeechColab | d0a41f6908b3672f926464be9546e2090a2c97f2 | [
"Apache-2.0"
] | 3 | 2021-04-22T12:14:12.000Z | 2021-08-20T03:07:23.000Z | from tempfile import NamedTemporaryFile
from speechcolab.utils import download
def test_download_from_http_to_buffer():
url = 'https://raw.githubusercontent.com/SpeechColab/PySpeechColab/main/LICENSE'
with NamedTemporaryFile(delete=True) as f:
download.download_from_http(f.name, url)
data = f.... | 35.428571 | 84 | 0.727151 | 94 | 744 | 5.585106 | 0.5 | 0.091429 | 0.057143 | 0.072381 | 0.304762 | 0.304762 | 0.209524 | 0.209524 | 0.209524 | 0 | 0 | 0 | 0.155914 | 744 | 20 | 85 | 37.2 | 0.835987 | 0 | 0 | 0.266667 | 0 | 0 | 0.19086 | 0.030914 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0.133333 | 0.133333 | 0 | 0.266667 | 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 |
4c17091a6751732f1a8efbf04ff2f14405ed7380 | 2,373 | py | Python | common/examples/visualize_wrapper.py | rotem94/MCTS-T- | b15a1e3ac4210fa74d3c3d1f8f31a03b02b6eb91 | [
"MIT"
] | 8 | 2018-07-18T05:43:18.000Z | 2022-02-08T16:12:17.000Z | common/examples/visualize_wrapper.py | rotem94/MCTS-T- | b15a1e3ac4210fa74d3c3d1f8f31a03b02b6eb91 | [
"MIT"
] | 1 | 2022-02-06T12:16:09.000Z | 2022-02-07T09:41:19.000Z | src/common/examples/visualize_wrapper.py | tmoer/cursus | 62c4aa793205294d5b3a99d192e9b6311f4d34a6 | [
"MIT"
] | 4 | 2018-05-29T23:32:40.000Z | 2021-05-22T13:40:55.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Wrapper for visualize.py
@author: thomas
"""
if __name__ == '__main__' and __package__ is None:
from os import sys, path
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
import os
import argparse
from common.visualize import loop_directori... | 43.145455 | 125 | 0.691108 | 311 | 2,373 | 5.03537 | 0.311897 | 0.103448 | 0.195402 | 0.0894 | 0.326309 | 0.256705 | 0.256705 | 0.166028 | 0 | 0 | 0 | 0.004462 | 0.150021 | 2,373 | 54 | 126 | 43.944444 | 0.771939 | 0.03582 | 0 | 0 | 0 | 0 | 0.155838 | 0.010975 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.025 | 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 |
4c1845474c64db77a39d6d5a2b88e685b4c89a6a | 633 | py | Python | python/binary_tree_inorder_traversal.py | anishLearnsToCode/leetcode-algorithms | d5a84e9179a4c3427890313a933fe1950fbcdabc | [
"MIT"
] | 17 | 2020-06-13T15:05:55.000Z | 2022-03-16T18:28:53.000Z | python/binary_tree_inorder_traversal.py | anishLearnsToCode/leetcode-algorithms | d5a84e9179a4c3427890313a933fe1950fbcdabc | [
"MIT"
] | null | null | null | python/binary_tree_inorder_traversal.py | anishLearnsToCode/leetcode-algorithms | d5a84e9179a4c3427890313a933fe1950fbcdabc | [
"MIT"
] | 9 | 2020-12-27T19:17:58.000Z | 2022-03-22T07:02:19.000Z | from typing import Optional, List
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def _inorder_traversal(self, root: TreeNode, list: List[int]) -> None:
... | 26.375 | 74 | 0.64455 | 79 | 633 | 5.012658 | 0.392405 | 0.161616 | 0.151515 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00211 | 0.251185 | 633 | 23 | 75 | 27.521739 | 0.833333 | 0.053712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0 | 0.4375 | 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 |
4c1c0c9d0a78baa68555ff8e320b70aedba5856e | 822 | py | Python | gempy/eti_core/etifile.py | DBerke/DRAGONS | cecf9a03970af95126bd17a227bd5214a5d6c64b | [
"BSD-3-Clause"
] | 19 | 2017-10-23T14:52:51.000Z | 2022-03-28T04:49:00.000Z | gempy/eti_core/etifile.py | DBerke/DRAGONS | cecf9a03970af95126bd17a227bd5214a5d6c64b | [
"BSD-3-Clause"
] | 194 | 2017-11-01T17:32:45.000Z | 2022-03-31T21:32:59.000Z | gempy/eti_core/etifile.py | DBerke/DRAGONS | cecf9a03970af95126bd17a227bd5214a5d6c64b | [
"BSD-3-Clause"
] | 16 | 2017-11-01T05:18:04.000Z | 2021-12-14T23:08:57.000Z | import shutil
import tempfile
from ..utils import logutils
log = logutils.get_logger(__name__)
class ETIFile:
"""The base class for all External Class Interface file objects.
"""
inputs = None
params = None
name = None
def __init__(self, name=None, inputs=None, params=None):
"""
... | 24.176471 | 68 | 0.619221 | 94 | 822 | 5.276596 | 0.468085 | 0.064516 | 0.120968 | 0.114919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27129 | 822 | 33 | 69 | 24.909091 | 0.828047 | 0.170316 | 0 | 0 | 0 | 0 | 0.113178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.142857 | 0 | 0.52381 | 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 |
4c202c0438c55d2069f132367ecedf7e9e33a6dc | 3,702 | py | Python | main.py | cxialab/SeqDistK-Pyhon | dfd6dae4cf027e255618ca54005e95f37f8e773b | [
"Apache-2.0"
] | null | null | null | main.py | cxialab/SeqDistK-Pyhon | dfd6dae4cf027e255618ca54005e95f37f8e773b | [
"Apache-2.0"
] | null | null | null | main.py | cxialab/SeqDistK-Pyhon | dfd6dae4cf027e255618ca54005e95f37f8e773b | [
"Apache-2.0"
] | 2 | 2019-12-01T07:27:02.000Z | 2020-03-22T04:13:14.000Z | # -*- coding: UTF-8 -*-
# @File: main.py
# @Author: htczero
# @Create Data: 2019/11/16
# @Modify Data: 2019/11/16
# @Email: htczero@hotmail.com
from Core import Core
import os
from typing import List, Optional
dic = dict()
def get_k_list(k_str: str) -> Optional[List[int]]:
try:
tmp = k_str.split('-')
... | 30.344262 | 135 | 0.526202 | 479 | 3,702 | 3.983299 | 0.267223 | 0.031447 | 0.040881 | 0.033543 | 0.189203 | 0.02935 | 0 | 0 | 0 | 0 | 0 | 0.024554 | 0.317936 | 3,702 | 121 | 136 | 30.595041 | 0.731089 | 0.077526 | 0 | 0.227273 | 0 | 0.022727 | 0.275618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034091 | false | 0 | 0.034091 | 0 | 0.147727 | 0.409091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4c22b8b15c300039b11be891b0304f07437bd41d | 1,690 | py | Python | blaze/expr/tests/test_slicing.py | quantopian-enterprise/blaze | 6b686bed87993494b11676ed25e7b30f18ca2248 | [
"BSD-3-Clause"
] | 2,106 | 2015-08-20T11:53:30.000Z | 2022-03-30T19:42:11.000Z | blaze/expr/tests/test_slicing.py | quantopian-enterprise/blaze | 6b686bed87993494b11676ed25e7b30f18ca2248 | [
"BSD-3-Clause"
] | 479 | 2015-08-20T06:09:38.000Z | 2020-10-21T13:44:57.000Z | blaze/expr/tests/test_slicing.py | quantopian-enterprise/blaze | 6b686bed87993494b11676ed25e7b30f18ca2248 | [
"BSD-3-Clause"
] | 280 | 2015-08-20T08:42:01.000Z | 2022-03-16T08:05:19.000Z | from blaze.expr import symbol
import numpy as np
from datashape import dshape, isscalar
def test_array_dshape():
x = symbol('x', '5 * 3 * float32')
assert x.shape == (5, 3)
assert x.schema == dshape('float32')
assert len(x) == 5
assert x.ndim == 2
def test_element():
x = symbol('x', '5 * 3 *... | 24.142857 | 75 | 0.547337 | 278 | 1,690 | 3.251799 | 0.183453 | 0.024336 | 0.088496 | 0.049779 | 0.352876 | 0.276549 | 0.276549 | 0.169248 | 0.098451 | 0.066372 | 0 | 0.086287 | 0.231953 | 1,690 | 69 | 76 | 24.492754 | 0.610169 | 0.019527 | 0 | 0.133333 | 0 | 0 | 0.160121 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.2 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c23f2ff7e59f18c9c49eb0ea9d67c03cba4e9b0 | 2,332 | py | Python | nova/conf/base.py | zjzh/nova | 7bb21723171c59b93e28f5d508c2b6df39220f13 | [
"Apache-2.0"
] | 1,874 | 2015-01-04T05:18:34.000Z | 2022-03-31T03:30:28.000Z | nova/conf/base.py | woraser/nova | fc3890667e4971e3f0f35ac921c2a6c25f72adec | [
"Apache-2.0"
] | 40 | 2015-04-13T02:32:42.000Z | 2022-02-16T02:28:06.000Z | nova/conf/base.py | woraser/nova | fc3890667e4971e3f0f35ac921c2a6c25f72adec | [
"Apache-2.0"
] | 1,996 | 2015-01-04T15:11:51.000Z | 2022-03-31T11:03:13.000Z | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2011 Justin Santa Barbara
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance wi... | 32.388889 | 78 | 0.698542 | 323 | 2,332 | 5 | 0.557276 | 0.037152 | 0.016099 | 0.019814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011475 | 0.215266 | 2,332 | 71 | 79 | 32.84507 | 0.871038 | 0.315609 | 0 | 0.195652 | 0 | 0 | 0.659911 | 0.053832 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.043478 | 0.021739 | 0.021739 | 0.086957 | 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 |
4c265116077032ce95fb542eba56c18601148259 | 427 | py | Python | kubernetes_typed/client/models/v1_runtime_class_list.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | null | null | null | kubernetes_typed/client/models/v1_runtime_class_list.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | null | null | null | kubernetes_typed/client/models/v1_runtime_class_list.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | null | null | null | # Code generated by `typeddictgen`. DO NOT EDIT.
"""V1RuntimeClassListDict generated type."""
from typing import TypedDict, List
from kubernetes_typed.client import V1ListMetaDict, V1RuntimeClassDict
V1RuntimeClassListDict = TypedDict(
"V1RuntimeClassListDict",
{
"apiVersion": str,
"items": Li... | 25.117647 | 70 | 0.693208 | 36 | 427 | 8.194444 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020588 | 0.203747 | 427 | 16 | 71 | 26.6875 | 0.847059 | 0.201405 | 0 | 0 | 1 | 0 | 0.146269 | 0.065672 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c2dae808ef9d071eb7a837428c72151fffd6834 | 1,165 | py | Python | n_profile/migrations/0001_initial.py | nirvaris/nirvaris-profile | 76f446d9bb98f61d16eb65d1b3283059bed6ab23 | [
"MIT"
] | 3 | 2015-12-09T16:11:07.000Z | 2021-10-13T10:50:13.000Z | n_profile/migrations/0001_initial.py | nirvaris/nirvaris-profile | 76f446d9bb98f61d16eb65d1b3283059bed6ab23 | [
"MIT"
] | 4 | 2020-02-11T22:01:13.000Z | 2021-06-08T19:03:36.000Z | n_profile/migrations/0001_initial.py | nirvaris/nirvaris-profile | 76f446d9bb98f61d16eb65d1b3283059bed6ab23 | [
"MIT"
] | 4 | 2017-04-14T06:52:47.000Z | 2020-06-11T18:38:40.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-29 16:06
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import n_profile.models
class Migration(migrations.Migration):
initial = True
dependenc... | 37.580645 | 143 | 0.679828 | 142 | 1,165 | 5.34507 | 0.478873 | 0.042161 | 0.073781 | 0.098814 | 0.309618 | 0.309618 | 0.309618 | 0.309618 | 0.309618 | 0.309618 | 0 | 0.033369 | 0.202575 | 1,165 | 30 | 144 | 38.833333 | 0.783638 | 0.058369 | 0 | 0 | 1 | 0 | 0.040219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.227273 | 0 | 0.409091 | 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 |
4c36612c152c9ae979d095d96fd9c9b05e0b5e19 | 2,442 | py | Python | test/test_catkin_create_pkg.py | davetcoleman/catkin_pkg | c376d7b19775c1881c926538de30ebae228cb229 | [
"BSD-3-Clause"
] | null | null | null | test/test_catkin_create_pkg.py | davetcoleman/catkin_pkg | c376d7b19775c1881c926538de30ebae228cb229 | [
"BSD-3-Clause"
] | null | null | null | test/test_catkin_create_pkg.py | davetcoleman/catkin_pkg | c376d7b19775c1881c926538de30ebae228cb229 | [
"BSD-3-Clause"
] | null | null | null | import os
import unittest
import tempfile
import shutil
try:
from catkin_pkg.package_templates import PackageTemplate
except ImportError as impe:
raise ImportError(
'Please adjust your pythonpath before running this test: %s' % str(impe))
import imp
imp.load_source('catkin_create_pkg',
... | 40.032787 | 92 | 0.645782 | 272 | 2,442 | 5.665441 | 0.334559 | 0.165477 | 0.061648 | 0.038936 | 0.278391 | 0.210253 | 0.12719 | 0.059701 | 0.059701 | 0.059701 | 0 | 0.00843 | 0.222768 | 2,442 | 60 | 93 | 40.7 | 0.803477 | 0.003686 | 0 | 0.115385 | 0 | 0 | 0.133278 | 0 | 0 | 0 | 0 | 0 | 0.403846 | 1 | 0.038462 | false | 0 | 0.173077 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c36a68dabd59db3062aa23d5da9162bb50149b7 | 1,709 | py | Python | seriesplugin/src/Logger.py | Haehnchen/enigma2-plugins | 23007eb0b78665cd3a2faf98d1d6145b4f0ada3f | [
"OLDAP-2.3"
] | null | null | null | seriesplugin/src/Logger.py | Haehnchen/enigma2-plugins | 23007eb0b78665cd3a2faf98d1d6145b4f0ada3f | [
"OLDAP-2.3"
] | null | null | null | seriesplugin/src/Logger.py | Haehnchen/enigma2-plugins | 23007eb0b78665cd3a2faf98d1d6145b4f0ada3f | [
"OLDAP-2.3"
] | null | null | null | # -*- coding: utf-8 -*-
#######################################################################
#
# Series Plugin for Enigma-2
# Coded by betonme (c) 2012 <glaserfrank(at)gmail.com>
# Support: http://www.i-have-a-dreambox.com/wbb2/thread.php?threadid=TBD
#
# This program is free software; you can redistrib... | 27.126984 | 75 | 0.639555 | 232 | 1,709 | 4.668103 | 0.530172 | 0.027701 | 0.036934 | 0.040628 | 0.168052 | 0.120037 | 0.120037 | 0.120037 | 0.120037 | 0.120037 | 0 | 0.008571 | 0.180807 | 1,709 | 62 | 76 | 27.564516 | 0.764286 | 0.414862 | 0 | 0.137931 | 0 | 0 | 0.080048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.137931 | null | null | 0.241379 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4c3d50246b185c28cd7b1599103f411489fa49bf | 858 | py | Python | community_supplied/Solutions/EVPN-VXLAN/degradation.py | vvikramb/healthbot-rules | 72bdad144bebb512e9ac32d607b5924d96225334 | [
"Apache-2.0",
"BSD-3-Clause"
] | 43 | 2018-11-27T00:42:45.000Z | 2022-02-24T01:19:39.000Z | community_supplied/Solutions/EVPN-VXLAN/degradation.py | vvikramb/healthbot-rules | 72bdad144bebb512e9ac32d607b5924d96225334 | [
"Apache-2.0",
"BSD-3-Clause"
] | 266 | 2018-10-26T10:19:04.000Z | 2022-03-16T04:38:29.000Z | community_supplied/Solutions/EVPN-VXLAN/degradation.py | vvikramb/healthbot-rules | 72bdad144bebb512e9ac32d607b5924d96225334 | [
"Apache-2.0",
"BSD-3-Clause"
] | 99 | 2018-10-25T09:53:55.000Z | 2021-12-07T09:51:59.000Z | #! /usr/bin/env python3
import requests
from jnpr.junos import Device
from jnpr.junos.utils.config import Config
from jnpr.junos.op.ethport import EthPortTable
from collections import OrderedDict
good_history_uplink = []
def degradation_percent(total_interfaces, current_lldp_interfaces, **kwargs):
global good_his... | 35.75 | 77 | 0.764569 | 114 | 858 | 5.412281 | 0.394737 | 0.142626 | 0.220421 | 0.068071 | 0.158833 | 0.082658 | 0 | 0 | 0 | 0 | 0 | 0.008451 | 0.172494 | 858 | 23 | 78 | 37.304348 | 0.860563 | 0.025641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.25 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c3dfa0d4e58d9f92bca5c904702dfa54c72dda7 | 3,885 | py | Python | pyfr/backends/opencl/types.py | rishit2307/PyFR | 1d249426d8ea4257cb8beff75b6ccd8a058787f4 | [
"BSD-3-Clause"
] | 185 | 2015-01-03T01:06:04.000Z | 2019-09-02T22:10:53.000Z | pyfr/backends/opencl/types.py | rishit2307/PyFR | 1d249426d8ea4257cb8beff75b6ccd8a058787f4 | [
"BSD-3-Clause"
] | 68 | 2015-02-18T13:34:15.000Z | 2019-09-03T13:28:36.000Z | pyfr/backends/opencl/types.py | rishit2307/PyFR | 1d249426d8ea4257cb8beff75b6ccd8a058787f4 | [
"BSD-3-Clause"
] | 105 | 2015-01-09T14:05:22.000Z | 2019-07-25T22:04:00.000Z | # -*- coding: utf-8 -*-
from functools import cached_property
import numpy as np
import pyfr.backends.base as base
class _OpenCLMatrixCommon:
@cached_property
def _as_parameter_(self):
return int(self.data)
class OpenCLMatrixBase(_OpenCLMatrixCommon, base.MatrixBase):
def onalloc(self, baseda... | 29.656489 | 79 | 0.622394 | 484 | 3,885 | 4.894628 | 0.336777 | 0.032503 | 0.027438 | 0.017729 | 0.116505 | 0.101309 | 0.069228 | 0.052343 | 0.052343 | 0.052343 | 0 | 0.00108 | 0.284685 | 3,885 | 130 | 80 | 29.884615 | 0.851385 | 0.151866 | 0 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109589 | false | 0.054795 | 0.054795 | 0.013699 | 0.342466 | 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 |
4c4294c9fba8064c8b922e16ad1a59a0a024b049 | 663 | py | Python | account/urls.py | ElmanTr/simple-django-web | 07f9b938e42ade4b515cbb8b41364089a5f9f2b1 | [
"MIT"
] | 1 | 2020-10-07T14:03:13.000Z | 2020-10-07T14:03:13.000Z | account/urls.py | ElmanTr/simple-django-web | 07f9b938e42ade4b515cbb8b41364089a5f9f2b1 | [
"MIT"
] | null | null | null | account/urls.py | ElmanTr/simple-django-web | 07f9b938e42ade4b515cbb8b41364089a5f9f2b1 | [
"MIT"
] | null | null | null | from django.contrib.auth import views
from django.urls import path
from .views import ArticleList, ArticleCreate, ArticleUpdate, ArticleDelete, Profile, Login, PasswordChange, Registration
app_name = "account"
urlpatterns = [
path('logout/', views.LogoutView.as_view(), name='logout'),
]
urlpatterns += [
path... | 39 | 121 | 0.717949 | 79 | 663 | 5.936709 | 0.392405 | 0.076759 | 0.127932 | 0.108742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107089 | 663 | 17 | 122 | 39 | 0.79223 | 0 | 0 | 0 | 0 | 0 | 0.212349 | 0.069277 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.214286 | 0 | 0.214286 | 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 |
4c504e391e324fa9035b6eb4701b199812831b1d | 26,786 | py | Python | Collusion/Mapper.py | kuz/Human-Intracranial-Recordings-and-DCNN-to-Compare-Biological-and-Artificial-Mechanisms-of-Vision | 77c30bce75132325839d2654a072abffa965b850 | [
"MIT"
] | 9 | 2018-02-02T15:08:45.000Z | 2020-11-16T13:09:53.000Z | Collusion/Mapper.py | kuz/Human-Intracranial-Recordings-and-DCNN-to-Compare-Biological-and-Artificial-Mechanisms-of-Vision | 77c30bce75132325839d2654a072abffa965b850 | [
"MIT"
] | null | null | null | Collusion/Mapper.py | kuz/Human-Intracranial-Recordings-and-DCNN-to-Compare-Biological-and-Artificial-Mechanisms-of-Vision | 77c30bce75132325839d2654a072abffa965b850 | [
"MIT"
] | null | null | null | import os
import argparse
import cPickle
import numpy as np
import scipy.io as sio
import random
from Plotter import Plotter
from scipy.stats import spearmanr, kendalltau
from scipy.stats import mannwhitneyu
from IPython import embed
import pdb
class Mapper:
#: Paths
DATADIR = '../../Data'
SCOREDIR = None... | 45.4 | 242 | 0.599903 | 3,309 | 26,786 | 4.667875 | 0.116047 | 0.033471 | 0.031918 | 0.034961 | 0.600544 | 0.548492 | 0.505503 | 0.469248 | 0.45371 | 0.431633 | 0 | 0.011921 | 0.279736 | 26,786 | 589 | 243 | 45.47708 | 0.78868 | 0.124319 | 0 | 0.444444 | 0 | 0.002778 | 0.111072 | 0.023729 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008333 | 0.030556 | null | null | 0.036111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4c53f8325b2ed059e11517469011bb5314ebe374 | 36,684 | py | Python | astute-dashboard/astutedashboard/common.py | sreenathmmenon/astttproject | 464fe20c8acf14afdfe03d1e4758e3df2b06196e | [
"Apache-2.0"
] | null | null | null | astute-dashboard/astutedashboard/common.py | sreenathmmenon/astttproject | 464fe20c8acf14afdfe03d1e4758e3df2b06196e | [
"Apache-2.0"
] | null | null | null | astute-dashboard/astutedashboard/common.py | sreenathmmenon/astttproject | 464fe20c8acf14afdfe03d1e4758e3df2b06196e | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2017 NephoScale
#
#from keystoneauth1.identity import v2
#from keystoneauth1 import session
#from keystoneclient.v2_0.client import Client as KeystoneClient
#from novaclient.client import Client as NovaClient
from django.conf import settings
from horizon.exceptions import HorizonException
from horizon... | 36.610778 | 159 | 0.647476 | 4,786 | 36,684 | 4.784789 | 0.119933 | 0.028821 | 0.030699 | 0.01607 | 0.477511 | 0.360961 | 0.2869 | 0.242882 | 0.215677 | 0.205109 | 0 | 0.05225 | 0.229419 | 36,684 | 1,001 | 160 | 36.647353 | 0.757853 | 0.141942 | 0 | 0.263323 | 0 | 0 | 0.183089 | 0.072961 | 0 | 0 | 0 | 0.000999 | 0 | 0 | null | null | 0.014107 | 0.032915 | null | null | 0.026646 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4c59e239f88d253a0afdbab4f15304bcfe1a0374 | 854 | py | Python | keyboards/inline/registration_inline.py | vR4eslav/DatingBot | 62f9ccbe1a3d0c65dd8d650400a1b5595be893b5 | [
"Apache-2.0"
] | null | null | null | keyboards/inline/registration_inline.py | vR4eslav/DatingBot | 62f9ccbe1a3d0c65dd8d650400a1b5595be893b5 | [
"Apache-2.0"
] | null | null | null | keyboards/inline/registration_inline.py | vR4eslav/DatingBot | 62f9ccbe1a3d0c65dd8d650400a1b5595be893b5 | [
"Apache-2.0"
] | null | null | null | from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton
async def registration_keyboard():
markup = InlineKeyboardMarkup(row_width=2)
registration = InlineKeyboardButton(text="➕ Регистрация", callback_data="registration")
markup.add(registration)
return markup
async def second_registrat... | 35.583333 | 95 | 0.774005 | 99 | 854 | 6.484848 | 0.444444 | 0.149533 | 0.158879 | 0.172897 | 0.23676 | 0.23676 | 0 | 0 | 0 | 0 | 0 | 0.004065 | 0.135831 | 854 | 23 | 96 | 37.130435 | 0.861789 | 0 | 0 | 0.294118 | 0 | 0 | 0.122951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c60059c64dd347bf560c5411524d36081fd1e47 | 9,281 | py | Python | third_party/closure_linter/closure_linter/typeannotation_test.py | xzhan96/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 123 | 2015-07-03T08:39:12.000Z | 2021-11-14T09:28:14.000Z | third_party/closure_linter/closure_linter/typeannotation_test.py | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 25 | 2015-06-22T10:40:55.000Z | 2019-05-06T12:01:53.000Z | third_party/closure_linter/closure_linter/typeannotation_test.py | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 36 | 2015-07-03T15:17:13.000Z | 2020-10-13T16:34:28.000Z | #!/usr/bin/env python
"""Unit tests for the typeannotation module."""
import unittest as googletest
from closure_linter import testutil
from closure_linter.common import erroraccumulator
CRAZY_TYPE = ('Array.<!function(new:X,{a:null},...(c|d)):'
'function(...(Object.<string>))>')
class TypeErrorEx... | 39.662393 | 79 | 0.698093 | 987 | 9,281 | 6.43769 | 0.213779 | 0.16525 | 0.07932 | 0.05949 | 0.327353 | 0.26503 | 0.248505 | 0.230878 | 0.213724 | 0.168083 | 0 | 0.003432 | 0.152462 | 9,281 | 233 | 80 | 39.832618 | 0.804348 | 0.108393 | 0 | 0.023952 | 0 | 0 | 0.154231 | 0.05947 | 0 | 0 | 0 | 0 | 0.634731 | 1 | 0.113772 | false | 0 | 0.017964 | 0.005988 | 0.167665 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c60cb5edf575f4d1162f98af6ce4728b8505100 | 1,286 | py | Python | arts-main/arts_core/signals.py | SilverLineFramework/orchestrator | 6a11a2754c41bce6999330a927f17038f4070086 | [
"BSD-3-Clause"
] | null | null | null | arts-main/arts_core/signals.py | SilverLineFramework/orchestrator | 6a11a2754c41bce6999330a927f17038f4070086 | [
"BSD-3-Clause"
] | null | null | null | arts-main/arts_core/signals.py | SilverLineFramework/orchestrator | 6a11a2754c41bce6999330a927f17038f4070086 | [
"BSD-3-Clause"
] | null | null | null | """
*TL;DR
Routes app signals; Place to write all app's signal receivers
"""
from django.db.models.signals import post_save, post_delete
from django.dispatch import receiver
from django.apps import apps
from .models import Runtime, Module
##########
#TODO: make adding modules using rest also create modules at remote r... | 34.756757 | 147 | 0.724728 | 174 | 1,286 | 5.252874 | 0.436782 | 0.043764 | 0.035011 | 0.04814 | 0.26477 | 0.26477 | 0.26477 | 0.26477 | 0.26477 | 0.26477 | 0 | 0.001878 | 0.171851 | 1,286 | 36 | 148 | 35.722222 | 0.856338 | 0.260498 | 0 | 0.272727 | 0 | 0 | 0.081433 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 1 | 0.136364 | false | 0 | 0.181818 | 0 | 0.318182 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c618251e147eb82230eb1ea2602671db5801a2e | 121 | py | Python | 2 semester/AP/Practics/2022-03-04/1.5.py | kurpenok/Labs | 069c92b7964a1445d093313b38ebdc56318d2a73 | [
"MIT"
] | 1 | 2022-02-06T17:50:25.000Z | 2022-02-06T17:50:25.000Z | 2 semester/AP/Practics/2022-03-04/1.5.py | kurpenok/Labs | 069c92b7964a1445d093313b38ebdc56318d2a73 | [
"MIT"
] | null | null | null | 2 semester/AP/Practics/2022-03-04/1.5.py | kurpenok/Labs | 069c92b7964a1445d093313b38ebdc56318d2a73 | [
"MIT"
] | 1 | 2022-03-02T06:45:06.000Z | 2022-03-02T06:45:06.000Z | symbol = input()
count = int(input())
c = 0
for i in range(count):
if input() == symbol:
c += 1
print(c)
| 10.083333 | 25 | 0.520661 | 19 | 121 | 3.315789 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.305785 | 121 | 11 | 26 | 11 | 0.72619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 |
4c61908a9b28d0bf68a40ba1badf86878de2e440 | 1,117 | py | Python | test/programytest/storage/stores/nosql/mongo/dao/test_usergroup.py | motazsaad/fit-bot-fb-clt | 580477aa1ec91855b621d9ae276f2705962f6a87 | [
"MIT"
] | 5 | 2018-08-21T00:13:45.000Z | 2018-09-01T20:00:55.000Z | test/programytest/storage/stores/nosql/mongo/dao/test_usergroup.py | motazsaad/fit-bot-fb-clt | 580477aa1ec91855b621d9ae276f2705962f6a87 | [
"MIT"
] | 1 | 2018-09-12T18:30:17.000Z | 2018-09-12T18:30:17.000Z | test/programytest/storage/stores/nosql/mongo/dao/test_usergroup.py | motazsaad/fit-bot-fb-clt | 580477aa1ec91855b621d9ae276f2705962f6a87 | [
"MIT"
] | 5 | 2018-08-21T00:08:36.000Z | 2018-09-23T06:11:04.000Z | import unittest
from programy.storage.stores.nosql.mongo.dao.usergroups import UserGroups
class UserGroupsTests(unittest.TestCase):
def test_init_no_id(self):
usergroups = UserGroups(usergroups={})
self.assertIsNotNone(usergroups)
self.assertIsNone(usergroups.id)
self.assertEqual... | 33.848485 | 84 | 0.680394 | 106 | 1,117 | 7.037736 | 0.264151 | 0.187668 | 0.091153 | 0.069705 | 0.19571 | 0.099196 | 0 | 0 | 0 | 0 | 0 | 0.025414 | 0.189794 | 1,117 | 32 | 85 | 34.90625 | 0.798895 | 0 | 0 | 0.173913 | 0 | 0 | 0.05466 | 0 | 0 | 0 | 0 | 0 | 0.521739 | 1 | 0.130435 | false | 0 | 0.086957 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c619a63b7536c4691afa3e9ae452bdc6e5d4649 | 2,949 | py | Python | dev/Editor/Scripts/viewmodes.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 8 | 2019-10-07T16:33:47.000Z | 2020-12-07T03:59:58.000Z | dev/Editor/Scripts/viewmodes.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | null | null | null | dev/Editor/Scripts/viewmodes.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 5 | 2020-08-27T20:44:18.000Z | 2021-08-21T22:54:11.000Z | #
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or th... | 44.014925 | 85 | 0.701594 | 391 | 2,949 | 5.117647 | 0.324808 | 0.087956 | 0.089955 | 0.237381 | 0.343328 | 0.293353 | 0.067466 | 0 | 0 | 0 | 0 | 0.024264 | 0.147508 | 2,949 | 66 | 86 | 44.681818 | 0.771679 | 0.170566 | 0 | 0 | 0 | 0 | 0.36386 | 0.029569 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 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 |
4c6ac3748ec3e56df73f8e1008f7c0ec17115750 | 61,374 | py | Python | io-control/yami.py | wozio/home-system | ac73bec6e5050246f0e3debfbdfa43d4762bb144 | [
"MIT"
] | null | null | null | io-control/yami.py | wozio/home-system | ac73bec6e5050246f0e3debfbdfa43d4762bb144 | [
"MIT"
] | null | null | null | io-control/yami.py | wozio/home-system | ac73bec6e5050246f0e3debfbdfa43d4762bb144 | [
"MIT"
] | null | null | null | # Copyright Maciej Sobczak 2008-2015.
# This file is part of YAMI4.
#
# YAMI4 is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# YAMI4... | 36.230224 | 88 | 0.589663 | 6,923 | 61,374 | 4.9935 | 0.11599 | 0.028811 | 0.012149 | 0.006248 | 0.433815 | 0.375817 | 0.301331 | 0.251114 | 0.213422 | 0.197657 | 0 | 0.008622 | 0.340437 | 61,374 | 1,693 | 89 | 36.251624 | 0.84538 | 0.064848 | 0 | 0.37678 | 0 | 0 | 0.035036 | 0.003584 | 0 | 0 | 0 | 0.000591 | 0 | 0 | null | null | 0.004381 | 0.009858 | 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 |
4c723f56e3ac745bfc7c7c7a7a980f79d6d42827 | 1,015 | py | Python | biisan/constants.py | tsuyukimakoto/physaliidae | e55416e8b84c4a4ed2a31290f16ccd42350853d2 | [
"MIT"
] | 2 | 2017-04-26T01:10:24.000Z | 2019-05-04T03:29:24.000Z | biisan/constants.py | tsuyukimakoto/physaliidae | e55416e8b84c4a4ed2a31290f16ccd42350853d2 | [
"MIT"
] | 220 | 2019-01-01T03:18:11.000Z | 2022-03-28T20:29:49.000Z | biisan/constants.py | tsuyukimakoto/biisan | 8e55d73c582fcbba918595c2e741ffce7c88aaa9 | [
"MIT"
] | null | null | null | SETTINGS_TMPL = '''import os
from glueplate import Glue as _
settings = _(
blog = _(
title = '{blog_title}',
base_url = '{base_url}',
language = '{language}',
),
dir = _(
output = os.path.abspath(os.path.join('..', 'out'))
),
GLUE_PLATE_PLUS_BEFORE_template_dirs = [o... | 22.555556 | 94 | 0.51133 | 105 | 1,015 | 4.752381 | 0.495238 | 0.09018 | 0.078156 | 0.06012 | 0.092184 | 0.092184 | 0 | 0 | 0 | 0 | 0 | 0.010554 | 0.253202 | 1,015 | 44 | 95 | 23.068182 | 0.647757 | 0 | 0 | 0.184211 | 0 | 0.026316 | 0.720197 | 0.208867 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 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 |
4c759acc6aa478dc70738d4a4ca3998e9a7dc48a | 1,722 | py | Python | config.py | a-rank/avaandmed | 2b282c913b58ba0786cc8c93aab273cdf172c6e1 | [
"Apache-2.0"
] | null | null | null | config.py | a-rank/avaandmed | 2b282c913b58ba0786cc8c93aab273cdf172c6e1 | [
"Apache-2.0"
] | null | null | null | config.py | a-rank/avaandmed | 2b282c913b58ba0786cc8c93aab273cdf172c6e1 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Allan Rank
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 29.186441 | 82 | 0.722997 | 239 | 1,722 | 5.020921 | 0.585774 | 0.05 | 0.04 | 0.026667 | 0.106667 | 0.073333 | 0.073333 | 0.073333 | 0.073333 | 0 | 0 | 0.071327 | 0.18583 | 1,722 | 58 | 83 | 29.689655 | 0.784593 | 0.317654 | 0 | 0.193548 | 0 | 0 | 0.172265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.064516 | 0.032258 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4c782c626ca9a95a3467f7abee49677c1a8fd7a5 | 2,955 | py | Python | dae/dae/backends/impala/tests/test_impala_query_runner.py | iossifovlab/gpf | e556243d29666179dbcb72859845b4d6c011af2b | [
"MIT"
] | null | null | null | dae/dae/backends/impala/tests/test_impala_query_runner.py | iossifovlab/gpf | e556243d29666179dbcb72859845b4d6c011af2b | [
"MIT"
] | 82 | 2019-07-22T11:44:23.000Z | 2022-01-13T15:27:33.000Z | dae/dae/backends/impala/tests/test_impala_query_runner.py | iossifovlab/gpf | e556243d29666179dbcb72859845b4d6c011af2b | [
"MIT"
] | null | null | null |
import time
from concurrent.futures import ThreadPoolExecutor
from queue import Queue
from dae.backends.query_runners import QueryResult
from dae.backends.impala.impala_variants import ImpalaQueryRunner
def create_runner(impala_helpers, query, deserializer=None):
runner = ImpalaQueryRunner(
impala_he... | 22.557252 | 74 | 0.694416 | 358 | 2,955 | 5.46648 | 0.187151 | 0.086357 | 0.091978 | 0.076648 | 0.696474 | 0.635156 | 0.548799 | 0.548799 | 0.548799 | 0.548799 | 0 | 0.012914 | 0.213875 | 2,955 | 130 | 75 | 22.730769 | 0.829531 | 0 | 0 | 0.741176 | 0 | 0 | 0.171293 | 0.118145 | 0 | 0 | 0 | 0 | 0.164706 | 1 | 0.070588 | false | 0 | 0.058824 | 0 | 0.141176 | 0.035294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d5b49a5a2f43a6c0bf5d473cb82a262122ec0a63 | 528 | py | Python | base/views.py | jack17529/DRFapi | 427f4d9b573c810164f89502c5851bf9cf3cfb74 | [
"MIT"
] | null | null | null | base/views.py | jack17529/DRFapi | 427f4d9b573c810164f89502c5851bf9cf3cfb74 | [
"MIT"
] | null | null | null | base/views.py | jack17529/DRFapi | 427f4d9b573c810164f89502c5851bf9cf3cfb74 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from .models import Profiles
# Create your views here.
def home(request):
# return HttpResponse('Home Page')
profiles = Profiles.undeleted_objects.all()
context={'profiles': profiles}
return render(request, 'base/home.html', cont... | 29.333333 | 56 | 0.723485 | 64 | 528 | 5.953125 | 0.4375 | 0.052493 | 0.099738 | 0.120735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160985 | 528 | 17 | 57 | 31.058824 | 0.860045 | 0.174242 | 0 | 0 | 0 | 0 | 0.106481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d5b8dc1a402aedff8ed5f520355ff832fee29f1d | 5,724 | py | Python | asyncorm/database/backends/sql_base_backend.py | kejkz/asyncorm | 6342e2d5fbaa22fb368aead772ac4f255df7562a | [
"Apache-2.0"
] | 1 | 2017-02-27T05:37:39.000Z | 2017-02-27T05:37:39.000Z | asyncorm/database/backends/sql_base_backend.py | kejkz/asyncorm | 6342e2d5fbaa22fb368aead772ac4f255df7562a | [
"Apache-2.0"
] | null | null | null | asyncorm/database/backends/sql_base_backend.py | kejkz/asyncorm | 6342e2d5fbaa22fb368aead772ac4f255df7562a | [
"Apache-2.0"
] | null | null | null | from asyncorm.log import logger
class SQLBaseBackend(object):
"""SQLBaseBackend is in charge on constructing the queries using SQL syntaxself."""
@property
def _db__create_table(self):
return "CREATE TABLE IF NOT EXISTS {table_name} ({field_queries}) "
@property
def _db__drop_table(self)... | 33.670588 | 111 | 0.56202 | 630 | 5,724 | 4.796825 | 0.231746 | 0.046327 | 0.07313 | 0.025149 | 0.18597 | 0.143614 | 0.110523 | 0.056916 | 0.056916 | 0.056916 | 0 | 0.001544 | 0.320929 | 5,724 | 169 | 112 | 33.869822 | 0.77592 | 0.096261 | 0 | 0.282258 | 0 | 0 | 0.303837 | 0.014487 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0.008065 | 0.008065 | 0.129032 | 0.346774 | 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 |
d5b9cc3ebb511b570ae1efd835804ebaac3289dd | 447 | py | Python | api/users/migrations/0007_govuser_default_queue.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | null | null | null | api/users/migrations/0007_govuser_default_queue.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | null | null | null | api/users/migrations/0007_govuser_default_queue.py | django-doctor/lite-api | 1ba278ba22ebcbb977dd7c31dd3701151cd036bf | [
"MIT"
] | null | null | null | # Generated by Django 2.2.11 on 2020-04-29 15:24
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
("users", "0006_auto_20200424_1136"),
]
operations = [
migrations.AddField(
model_name="govuser",
name="d... | 22.35 | 94 | 0.628635 | 50 | 447 | 5.52 | 0.74 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191617 | 0.252796 | 447 | 19 | 95 | 23.526316 | 0.634731 | 0.102908 | 0 | 0 | 1 | 0 | 0.210526 | 0.14787 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d5bab156e66252af034811be62877d34029215fb | 10,651 | py | Python | cytoseg/volume3d_util.py | slash-segmentation/DP2 | 6f768e4b8a75a3ab2bf1359ae94704332426a4d6 | [
"Unlicense"
] | null | null | null | cytoseg/volume3d_util.py | slash-segmentation/DP2 | 6f768e4b8a75a3ab2bf1359ae94704332426a4d6 | [
"Unlicense"
] | null | null | null | cytoseg/volume3d_util.py | slash-segmentation/DP2 | 6f768e4b8a75a3ab2bf1359ae94704332426a4d6 | [
"Unlicense"
] | null | null | null | #This software is Copyright 2012 The Regents of the University of California. All Rights Reserved.
#Permission to use, copy, modify, and distribute this software and its documentation for educational, research and non-profit purposes for non-profit institutions, without fee, and without a written agreement is hereby gr... | 35.036184 | 465 | 0.640315 | 1,288 | 10,651 | 5.283385 | 0.282609 | 0.012932 | 0.02263 | 0.022043 | 0.156356 | 0.07421 | 0.023512 | 0.012638 | 0.006466 | 0 | 0 | 0.020712 | 0.256596 | 10,651 | 303 | 466 | 35.151815 | 0.838722 | 0.274998 | 0 | 0.108696 | 0 | 0 | 0.054478 | 0 | 0 | 0 | 0 | 0.006601 | 0 | 0 | null | null | 0 | 0.036232 | null | null | 0.057971 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d5c51197c47cc7819c4aea766a4f9a39b6108930 | 1,043 | py | Python | webpage/tests.py | acdh-oeaw/diauma | ebaea149dd49347a794da85e20044d78226a1f89 | [
"MIT"
] | null | null | null | webpage/tests.py | acdh-oeaw/diauma | ebaea149dd49347a794da85e20044d78226a1f89 | [
"MIT"
] | 1 | 2017-09-06T11:08:02.000Z | 2017-09-06T15:31:00.000Z | webpage/tests.py | acdh-oeaw/diauma | ebaea149dd49347a794da85e20044d78226a1f89 | [
"MIT"
] | 1 | 2021-11-11T13:44:16.000Z | 2021-11-11T13:44:16.000Z | from django.contrib.auth.models import User
from django.test import Client, TestCase
from django.urls import reverse
class WebpageTest(TestCase):
def setUp(self):
self.client = Client()
User.objects.create_user('temporary', 'temp@gmail.com', 'temporary')
def test_webpage(self):
rv = ... | 40.115385 | 79 | 0.658677 | 123 | 1,043 | 5.520325 | 0.373984 | 0.088365 | 0.088365 | 0.066274 | 0.494845 | 0.480118 | 0.394698 | 0.265096 | 0.265096 | 0.265096 | 0 | 0.003571 | 0.194631 | 1,043 | 25 | 80 | 41.72 | 0.804762 | 0 | 0 | 0.190476 | 0 | 0 | 0.19559 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.095238 | false | 0.095238 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d5c51ce13240bb477f4c223e6f57472562471857 | 2,441 | py | Python | src/sultan/echo/colorlog/notests/test_colorlog.py | curtismuntz/sultan | 65b4271a161d6c19a9eb0170b5a95832a139ab7f | [
"MIT"
] | 692 | 2016-08-30T15:09:48.000Z | 2022-03-15T00:14:22.000Z | src/sultan/echo/colorlog/notests/test_colorlog.py | curtismuntz/sultan | 65b4271a161d6c19a9eb0170b5a95832a139ab7f | [
"MIT"
] | 48 | 2016-08-30T22:39:52.000Z | 2020-09-08T13:34:56.000Z | src/sultan/echo/colorlog/notests/test_colorlog.py | curtismuntz/sultan | 65b4271a161d6c19a9eb0170b5a95832a139ab7f | [
"MIT"
] | 41 | 2016-09-19T20:36:23.000Z | 2021-09-10T13:29:34.000Z | """Test the colorlog.colorlog module."""
import sys
import pytest
def test_colored_formatter(create_and_test_logger):
create_and_test_logger()
def test_custom_colors(create_and_test_logger):
"""Disable all colors and check no escape codes are output."""
create_and_test_logger(
log_colors={}, r... | 29.768293 | 75 | 0.588693 | 298 | 2,441 | 4.543624 | 0.268456 | 0.106352 | 0.153619 | 0.22452 | 0.527326 | 0.463072 | 0.384786 | 0.362629 | 0.334564 | 0.206795 | 0 | 0.012958 | 0.272839 | 2,441 | 81 | 76 | 30.135802 | 0.749859 | 0.075379 | 0 | 0.237288 | 0 | 0 | 0.218263 | 0.131403 | 0 | 0 | 0 | 0 | 0.016949 | 1 | 0.135593 | false | 0 | 0.033898 | 0 | 0.169492 | 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 |
d5cc9b86a7c48675dfa5e77800b4c55aa7650de9 | 602 | py | Python | fulltext/backends/__eml.py | mushroom2/fulltext | c8b9caca70a86383e8e907f19cdb84f8621bde89 | [
"MIT"
] | 83 | 2015-08-14T02:02:42.000Z | 2022-01-17T23:02:35.000Z | fulltext/backends/__eml.py | mushroom2/fulltext | c8b9caca70a86383e8e907f19cdb84f8621bde89 | [
"MIT"
] | 59 | 2017-09-25T20:53:16.000Z | 2020-08-09T11:13:20.000Z | fulltext/backends/__eml.py | mushroom2/fulltext | c8b9caca70a86383e8e907f19cdb84f8621bde89 | [
"MIT"
] | 15 | 2015-04-09T13:59:21.000Z | 2022-03-12T15:21:07.000Z | from email import message_from_file
import codecs
from six import StringIO
from fulltext.util import BaseBackend
# This is used by other modules, hence it's here.
def handle_fobj(f, encoding, errors):
text = StringIO()
encf = codecs.getreader(encoding)(f, errors=errors)
m = message_from_file(encf)
... | 23.153846 | 66 | 0.70598 | 85 | 602 | 4.870588 | 0.564706 | 0.072464 | 0.072464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194352 | 602 | 25 | 67 | 24.08 | 0.853608 | 0.078073 | 0 | 0 | 0 | 0 | 0.018083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0.066667 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d5ccc5e82be80fe120ab27aaf557e51aca6656e7 | 4,461 | py | Python | fsspec/compression.py | ernestoeperez88/filesystem_spec | 2ebac55334c2498e25576a55db33439ecf9f9a9b | [
"BSD-3-Clause"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/fsspec/compression.py | olivier-be/lumberyard | 3d688932f919dbf5821f0cb8a210ce24abe39e9e | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/fsspec/compression.py | olivier-be/lumberyard | 3d688932f919dbf5821f0cb8a210ce24abe39e9e | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | """Helper functions for a standard streaming compression API"""
from bz2 import BZ2File
from gzip import GzipFile
from zipfile import ZipFile
import fsspec.utils
from fsspec.spec import AbstractBufferedFile
def noop_file(file, mode, **kwargs):
return file
# should be functions of the form func(infile, mode=, *... | 29.156863 | 86 | 0.653441 | 556 | 4,461 | 5.188849 | 0.332734 | 0.072444 | 0.029116 | 0.019757 | 0.101213 | 0.059619 | 0.059619 | 0 | 0 | 0 | 0 | 0.006793 | 0.240977 | 4,461 | 152 | 87 | 29.348684 | 0.845245 | 0.246581 | 0 | 0.23913 | 0 | 0 | 0.058483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097826 | false | 0.054348 | 0.173913 | 0.021739 | 0.369565 | 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 |
d5d25b3ae4e422791c8ce8419c43cd269b0451cb | 9,201 | py | Python | sfftk/readers/segreader.py | ssabrii/sfftk | 5cab37f1c9ecb9c2507672fd3232b1b9b5405511 | [
"Apache-2.0"
] | null | null | null | sfftk/readers/segreader.py | ssabrii/sfftk | 5cab37f1c9ecb9c2507672fd3232b1b9b5405511 | [
"Apache-2.0"
] | null | null | null | sfftk/readers/segreader.py | ssabrii/sfftk | 5cab37f1c9ecb9c2507672fd3232b1b9b5405511 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
sfftk.readers.segreader
========================
Ad hoc reader for Segger files
"""
from __future__ import division
import os
import numpy
__author__ = "Paul K. Korir, PhD"
__email__ = "pkorir@ebi.ac.uk, paul.korir@gmail.com"
__date__ = "2017-03-01"
__updated__ = '2018-02-14'
def get_ro... | 36.082353 | 167 | 0.624715 | 1,207 | 9,201 | 4.5029 | 0.224524 | 0.041214 | 0.051518 | 0.033119 | 0.25575 | 0.118491 | 0.065501 | 0.033855 | 0.018399 | 0.018399 | 0 | 0.005804 | 0.269753 | 9,201 | 254 | 168 | 36.224409 | 0.803096 | 0.31627 | 0 | 0.202899 | 0 | 0 | 0.083675 | 0 | 0 | 0 | 0 | 0.011811 | 0 | 1 | 0.181159 | false | 0 | 0.028986 | 0 | 0.413043 | 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 |
d5d76c4a8510680e986449f55e3c610bfdf8edb8 | 409 | py | Python | trucoGemSite/truco/forms.py | emmanuel-santos/GEM | ee04c652a623550581f95579c80bc4f9d084c3cd | [
"MIT"
] | 1 | 2015-10-28T14:11:49.000Z | 2015-10-28T14:11:49.000Z | trucoGemSite/truco/forms.py | emmanuel-santos/GEM | ee04c652a623550581f95579c80bc4f9d084c3cd | [
"MIT"
] | null | null | null | trucoGemSite/truco/forms.py | emmanuel-santos/GEM | ee04c652a623550581f95579c80bc4f9d084c3cd | [
"MIT"
] | null | null | null | from django import forms
from truco.constants import PUNTOS
class NuevaSalaForm(forms.Form):
Nombre = forms.CharField(max_length=50)
Puntos = forms.ChoiceField(widget=forms.RadioSelect,choices=[(15,'15'),(30,'30')])
num_jug = forms.ChoiceField(label='Cantidad de jugadores',choices=[(2,'2'),(4,'4'),(6,'6')]... | 37.181818 | 96 | 0.716381 | 55 | 409 | 5.290909 | 0.563636 | 0.164948 | 0.151203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043836 | 0.107579 | 409 | 11 | 97 | 37.181818 | 0.753425 | 0 | 0 | 0 | 0 | 0 | 0.068293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
d5d8e9b56acac676c04fa0bea12a16ad08d109e7 | 1,362 | py | Python | dictionaries.py | robbroadhead/PythonCertificationSeries | 15a9907b6bd05d6419e9472b56666dacf7dc8333 | [
"CC0-1.0"
] | null | null | null | dictionaries.py | robbroadhead/PythonCertificationSeries | 15a9907b6bd05d6419e9472b56666dacf7dc8333 | [
"CC0-1.0"
] | 1 | 2021-08-21T15:20:56.000Z | 2021-08-21T15:20:56.000Z | dictionaries.py | robbroadhead/PythonCertificationSeries | 15a9907b6bd05d6419e9472b56666dacf7dc8333 | [
"CC0-1.0"
] | null | null | null | import sys
# Application for working with dictionaries
# dictionaries: building, indexing, adding and removing keys, iterating through dictionaries
# as well as their keys and values, checking key existence, keys(), items() and values() methods
sample = {'home': '123 Main street', 'office': '22 Baker Street', 'bill':... | 21.28125 | 96 | 0.696769 | 189 | 1,362 | 5.021164 | 0.407407 | 0.185458 | 0.067439 | 0.046365 | 0.061117 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013502 | 0.129956 | 1,362 | 64 | 97 | 21.28125 | 0.787342 | 0.166667 | 0 | 0.288889 | 0 | 0 | 0.297703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022222 | 0 | 0.022222 | 0.688889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d5e2749541f3394ec65d48a18df8afe1d8876d02 | 1,209 | py | Python | tests/test_benchmark.py | netanelavr/attrs-serde | dda884709fecdfb3655ec722650cea9425b07c36 | [
"MIT"
] | 22 | 2018-11-09T17:20:13.000Z | 2021-09-07T00:19:34.000Z | tests/test_benchmark.py | netanelavr/attrs-serde | dda884709fecdfb3655ec722650cea9425b07c36 | [
"MIT"
] | 10 | 2019-11-24T14:29:25.000Z | 2021-09-01T14:23:11.000Z | tests/test_benchmark.py | netanelavr/attrs-serde | dda884709fecdfb3655ec722650cea9425b07c36 | [
"MIT"
] | 10 | 2019-12-01T22:36:27.000Z | 2021-06-03T13:41:43.000Z | from attrs_serde import serde
from attr import attrs, attrib
import pytest
from attr import asdict
name_path = ["contact", "personal", "name"]
phone_path = ["contact", "phone"]
@serde
@attrs
class Person(object):
name = attrib(metadata={"to": name_path, "from": name_path})
phone = attrib(metadata={"to": phon... | 21.981818 | 80 | 0.674938 | 143 | 1,209 | 5.559441 | 0.244755 | 0.050314 | 0.095597 | 0.120755 | 0.362264 | 0.289308 | 0.246541 | 0.246541 | 0 | 0 | 0 | 0.017964 | 0.171216 | 1,209 | 54 | 81 | 22.388889 | 0.775449 | 0 | 0 | 0.333333 | 0 | 0 | 0.15149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d5e924fc55cb540dd0cd3a0f524a9c7cf160f8da | 183 | py | Python | examples/simple-async.py | mrdon/bottle | f92cb700cb87941ea7184bef4989a6a808e7ba07 | [
"MIT"
] | 8 | 2015-06-14T18:50:15.000Z | 2021-04-25T08:40:08.000Z | examples/simple-async.py | mrdon/bottle | f92cb700cb87941ea7184bef4989a6a808e7ba07 | [
"MIT"
] | null | null | null | examples/simple-async.py | mrdon/bottle | f92cb700cb87941ea7184bef4989a6a808e7ba07 | [
"MIT"
] | 5 | 2015-08-17T19:54:53.000Z | 2021-06-13T20:01:12.000Z | from asyncio import coroutine, sleep
from bottle import get, run
@get('/')
@coroutine
def hello(request, response):
yield from sleep(1)
return "Hello friend"
run(port=8080) | 16.636364 | 36 | 0.715847 | 26 | 183 | 5.038462 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033113 | 0.174863 | 183 | 11 | 37 | 16.636364 | 0.834437 | 0 | 0 | 0 | 0 | 0 | 0.070652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d5ec2926e5fa3b520e4785dcd7db40539a2c9866 | 340 | py | Python | yaksh_data/yaksh/pipeline/user.py | amitpeshwani/question_template | b906dad9140e81ef2d520b9f146c8fa3376b7700 | [
"Python-2.0"
] | 1 | 2022-03-21T11:14:17.000Z | 2022-03-21T11:14:17.000Z | yaksh_data/yaksh/pipeline/user.py | amitpeshwani/question_template | b906dad9140e81ef2d520b9f146c8fa3376b7700 | [
"Python-2.0"
] | null | null | null | yaksh_data/yaksh/pipeline/user.py | amitpeshwani/question_template | b906dad9140e81ef2d520b9f146c8fa3376b7700 | [
"Python-2.0"
] | 1 | 2015-04-05T09:51:54.000Z | 2015-04-05T09:51:54.000Z | from yaksh.models import Profile
def save_profile(backend, user, response, *args, **kwargs):
if not hasattr(user, 'profile'):
profile = Profile.objects.create(user=user)
profile.roll_number = profile.id
else:
profile = Profile.objects.get(user=user)
profile.is_email_verified = True... | 28.333333 | 59 | 0.682353 | 43 | 340 | 5.302326 | 0.604651 | 0.144737 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205882 | 340 | 11 | 60 | 30.909091 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0.020588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 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 |
d5ec979046cfc4106fe3df9dc90838382d63d6bc | 753 | py | Python | src/27-quick-sort/py/__main__.py | MichaelZalla/data-structures-review | 4ef1a70cf28031160eafc81fe3557791c58aed32 | [
"MIT"
] | null | null | null | src/27-quick-sort/py/__main__.py | MichaelZalla/data-structures-review | 4ef1a70cf28031160eafc81fe3557791c58aed32 | [
"MIT"
] | null | null | null | src/27-quick-sort/py/__main__.py | MichaelZalla/data-structures-review | 4ef1a70cf28031160eafc81fe3557791c58aed32 | [
"MIT"
] | null | null | null | import sys
sys.path.append('../../utils/py')
from IsSorted import isSorted
from QuickSort import quickSort
# Test verification function
assert(isSorted([5,1,2,4,9,8,7,1,9]) == False)
assert(isSorted([1,1,2,4,5,7,8,9,9]) == True)
# Quick-sort, base case: Empty sequence
sequence = []
quickSort(sequence)
assert(... | 16.369565 | 67 | 0.726428 | 114 | 753 | 4.798246 | 0.403509 | 0.153565 | 0.16819 | 0.226691 | 0.334552 | 0.263254 | 0.263254 | 0 | 0 | 0 | 0 | 0.100904 | 0.118194 | 753 | 45 | 68 | 16.733333 | 0.722892 | 0.285525 | 0 | 0.444444 | 0 | 0 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
d5ed25ba98be6405c1c4793e0801a6c7360d9878 | 409 | py | Python | server_py/flatgov/bills/migrations/0002_auto_20210819_1556.py | aih/BillMap | d130b1396cb25b415cd7d9ea7389ad558a34eec1 | [
"CC0-1.0"
] | 2 | 2022-01-18T14:55:52.000Z | 2022-01-31T03:38:39.000Z | server_py/flatgov/bills/migrations/0002_auto_20210819_1556.py | aih/FlatGov | 8201ef1813bbc062841421017f492e877f75a5f8 | [
"CC0-1.0"
] | 321 | 2020-09-01T16:20:35.000Z | 2021-07-03T06:42:34.000Z | server_py/flatgov/bills/migrations/0002_auto_20210819_1556.py | aih/FlatGov | 8201ef1813bbc062841421017f492e877f75a5f8 | [
"CC0-1.0"
] | 1 | 2022-03-31T15:02:49.000Z | 2022-03-31T15:02:49.000Z | # Generated by Django 3.1.12 on 2021-08-19 15:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bills', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='bill',
name='es_similar_bills_dict',
... | 21.526316 | 72 | 0.606357 | 46 | 409 | 5.282609 | 0.804348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067568 | 0.276284 | 409 | 18 | 73 | 22.722222 | 0.753378 | 0.112469 | 0 | 0 | 1 | 0 | 0.116343 | 0.058172 | 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 |
d5f2ba3529519aec14410c9afa076fe82afec304 | 1,462 | py | Python | CTFe/main.py | nnonchev/CTFe | b4814e08593ec68b7befec8d07169a08a1ddec10 | [
"MIT"
] | null | null | null | CTFe/main.py | nnonchev/CTFe | b4814e08593ec68b7befec8d07169a08a1ddec10 | [
"MIT"
] | null | null | null | CTFe/main.py | nnonchev/CTFe | b4814e08593ec68b7befec8d07169a08a1ddec10 | [
"MIT"
] | null | null | null | from fastapi import (
FastAPI,
Depends,
)
from CTFe.config.database import dal
from CTFe.utils import (
validators,
enums,
)
from CTFe.views import (
auth_router,
user_router,
team_router,
challenge_router,
attempt_router,
player_router,
contributor_router,
)
app = FastAPI... | 19.493333 | 75 | 0.677155 | 157 | 1,462 | 6.044586 | 0.286624 | 0.073762 | 0.118019 | 0.23393 | 0.455216 | 0.455216 | 0.455216 | 0.455216 | 0.332982 | 0.332982 | 0 | 0.006855 | 0.201778 | 1,462 | 74 | 76 | 19.756757 | 0.806341 | 0 | 0 | 0.552239 | 0 | 0 | 0.055404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074627 | 0 | 0.074627 | 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 |
d5f512d2b6d7d539d280480ec62c1bef659f91bb | 330 | py | Python | Week 5/id_205/LeetCode_647_205.py | theshaodi/algorithm004-05 | cac0cd3bb1211d50936234c08f6ece38677e55cf | [
"Apache-2.0"
] | 1 | 2019-10-12T06:48:45.000Z | 2019-10-12T06:48:45.000Z | Week 5/id_205/LeetCode_647_205.py | theshaodi/algorithm004-05 | cac0cd3bb1211d50936234c08f6ece38677e55cf | [
"Apache-2.0"
] | 1 | 2019-12-01T10:02:03.000Z | 2019-12-01T10:02:03.000Z | Week 5/id_205/LeetCode_647_205.py | theshaodi/algorithm004-05 | cac0cd3bb1211d50936234c08f6ece38677e55cf | [
"Apache-2.0"
] | null | null | null | class Solution:
def countSubstrings(self, s: str) -> int:
p = len(s)
dp = [[i,i+1] for i in range(len(s))]
for i in range(1, len(s)):
for j in dp[i-1]:
if j-1 >= 0 and s[j-1] == s[i]:
p += 1
dp[i].append(j-1)
... | 33 | 48 | 0.381818 | 53 | 330 | 2.377358 | 0.415094 | 0.095238 | 0.095238 | 0.174603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045198 | 0.463636 | 330 | 10 | 49 | 33 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 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 |
d5f60f7cb86978f18cffe874ed7e784819c3a32f | 1,124 | py | Python | .tools/infogen.py | kreusada/JackCogs | f1c5b30e0656cb9634fa8bb0d6b00aa7c2384c40 | [
"Apache-2.0"
] | 18 | 2019-01-18T07:00:26.000Z | 2021-09-22T00:12:40.000Z | .tools/infogen.py | kreusada/JackCogs | f1c5b30e0656cb9634fa8bb0d6b00aa7c2384c40 | [
"Apache-2.0"
] | 43 | 2019-04-28T01:31:17.000Z | 2022-03-08T02:17:55.000Z | .tools/infogen.py | kreusada/JackCogs | f1c5b30e0656cb9634fa8bb0d6b00aa7c2384c40 | [
"Apache-2.0"
] | 20 | 2020-01-21T10:49:37.000Z | 2022-03-21T02:16:45.000Z | # Copyright 2018-2021 Jakub Kuczys (https://github.com/jack1142)
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 34.060606 | 86 | 0.755338 | 177 | 1,124 | 4.717514 | 0.649718 | 0.071856 | 0.031138 | 0.038323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021345 | 0.16637 | 1,124 | 32 | 87 | 35.125 | 0.869797 | 0.786477 | 0 | 0 | 0 | 0 | 0.03653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d5fbe0bbdef8dde10b21c0df8c04c097fbe60d3f | 44,112 | py | Python | application/workprogramsapp/models.py | anyaarz/analytics_backend | 0755554c88432e6305ce1d7f382d343f2faa2d8e | [
"MIT"
] | null | null | null | application/workprogramsapp/models.py | anyaarz/analytics_backend | 0755554c88432e6305ce1d7f382d343f2faa2d8e | [
"MIT"
] | null | null | null | application/workprogramsapp/models.py | anyaarz/analytics_backend | 0755554c88432e6305ce1d7f382d343f2faa2d8e | [
"MIT"
] | null | null | null | import datetime
from django.conf import settings
from django.contrib.auth.models import AbstractUser
from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
from model_clone import CloneMixin
from django.contrib.postgres.fields import ArrayField
from dataprocessing.models ... | 46.828025 | 226 | 0.692442 | 4,752 | 44,112 | 6.175715 | 0.116582 | 0.050976 | 0.047398 | 0.061982 | 0.675912 | 0.62388 | 0.555116 | 0.513068 | 0.473098 | 0.426994 | 0 | 0.010849 | 0.201805 | 44,112 | 941 | 227 | 46.87779 | 0.822636 | 0.1323 | 0 | 0.394915 | 0 | 0 | 0.168041 | 0.04616 | 0 | 0 | 0 | 0.001063 | 0 | 1 | 0.059322 | false | 0 | 0.013559 | 0.044068 | 0.545763 | 0.013559 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d5fc4852b98d806524c50b5d1ab5311fc5b71b54 | 8,122 | py | Python | angr/exploration_techniques/__init__.py | mariusmue/angr | f8304c4b1f0097a721a6692b02a45cabaae137c5 | [
"BSD-2-Clause"
] | null | null | null | angr/exploration_techniques/__init__.py | mariusmue/angr | f8304c4b1f0097a721a6692b02a45cabaae137c5 | [
"BSD-2-Clause"
] | null | null | null | angr/exploration_techniques/__init__.py | mariusmue/angr | f8304c4b1f0097a721a6692b02a45cabaae137c5 | [
"BSD-2-Clause"
] | 1 | 2022-02-10T02:29:38.000Z | 2022-02-10T02:29:38.000Z | from .. import engines
from ..errors import SimError
# 8<----------------- Compatibility layer -----------------
class ExplorationTechniqueMeta(type):
def __new__(mcs, name, bases, attrs):
import inspect
if name != 'ExplorationTechniqueCompat':
if 'step' in attrs and not inspect.getar... | 42.52356 | 164 | 0.649347 | 980 | 8,122 | 5.278571 | 0.27551 | 0.022617 | 0.020298 | 0.022038 | 0.159289 | 0.133965 | 0.080031 | 0.02977 | 0.019718 | 0 | 0 | 0.001491 | 0.256956 | 8,122 | 190 | 165 | 42.747368 | 0.855675 | 0.377986 | 0 | 0.105263 | 0 | 0 | 0.047325 | 0.005543 | 0 | 0 | 0 | 0.005263 | 0 | 1 | 0.178947 | false | 0.010526 | 0.231579 | 0.010526 | 0.642105 | 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 |
d5fda170bc9643c4a09862a9e9b6fa6ded202f8c | 159 | py | Python | numpysamples.py | rresender/python-samples | 2fb2330f59f3cc0c6b975381e22268a758773b69 | [
"MIT"
] | null | null | null | numpysamples.py | rresender/python-samples | 2fb2330f59f3cc0c6b975381e22268a758773b69 | [
"MIT"
] | null | null | null | numpysamples.py | rresender/python-samples | 2fb2330f59f3cc0c6b975381e22268a758773b69 | [
"MIT"
] | null | null | null | import numpy
n = int(input())
matrix = []
for i in range(n):
matrix.append(list(map(float,input().split())))
print(round(numpy.linalg.det(matrix), 2))
| 14.454545 | 51 | 0.647799 | 25 | 159 | 4.12 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.144654 | 159 | 10 | 52 | 15.9 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 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 |
9100269bb8e532c8893d2babb2d6ae3529750bef | 239 | py | Python | tests/test_ranger.py | cybermats/signature_maker | cab52ffeecc9ed96d514692233d68908ecf2dde5 | [
"MIT"
] | null | null | null | tests/test_ranger.py | cybermats/signature_maker | cab52ffeecc9ed96d514692233d68908ecf2dde5 | [
"MIT"
] | null | null | null | tests/test_ranger.py | cybermats/signature_maker | cab52ffeecc9ed96d514692233d68908ecf2dde5 | [
"MIT"
] | null | null | null | import unittest
import PySignature #pylint: disable=import-error
class Test_Ranger(unittest.TestCase):
def test_empty(self):
PySignature.Ranger()
self.assertTrue(True)
if __name__ == '__main__':
unittest.main()
| 18.384615 | 48 | 0.707113 | 27 | 239 | 5.888889 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188285 | 239 | 12 | 49 | 19.916667 | 0.819588 | 0.117155 | 0 | 0 | 0 | 0 | 0.038278 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9100ab2c6c02d6d25f8b678c0010c94e3ded9017 | 8,435 | py | Python | asyncrpc/wsgi.py | cosminbasca/asyncrpc | 49f2b4b5c686e19e9b314189720ed105fda0bb9f | [
"Apache-2.0"
] | 1 | 2015-04-14T14:41:08.000Z | 2015-04-14T14:41:08.000Z | asyncrpc/wsgi.py | cosminbasca/asyncrpc | 49f2b4b5c686e19e9b314189720ed105fda0bb9f | [
"Apache-2.0"
] | null | null | null | asyncrpc/wsgi.py | cosminbasca/asyncrpc | 49f2b4b5c686e19e9b314189720ed105fda0bb9f | [
"Apache-2.0"
] | null | null | null | #
# author: Cosmin Basca
#
# Copyright 2010 University of Zurich
#
# 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 a... | 42.175 | 120 | 0.584114 | 858 | 8,435 | 5.541958 | 0.24359 | 0.029443 | 0.050473 | 0.023554 | 0.389064 | 0.371399 | 0.309359 | 0.299895 | 0.256362 | 0.238696 | 0 | 0.002738 | 0.220628 | 8,435 | 200 | 121 | 42.175 | 0.720566 | 0.199526 | 0 | 0.328358 | 0 | 0 | 0.081159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.11194 | 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 |
91066dc8e8343491eb34a7a00ef3cc43fc20998c | 2,070 | py | Python | tensorlayer/core/activations.py | seetaresearch/Dragon | 494774d3a545f807d483fd9e6e4563cedec6dda5 | [
"BSD-2-Clause"
] | 81 | 2018-03-13T13:08:37.000Z | 2020-06-13T14:36:29.000Z | tensorlayer/core/activations.py | seetaresearch/Dragon | 494774d3a545f807d483fd9e6e4563cedec6dda5 | [
"BSD-2-Clause"
] | 2 | 2019-08-07T09:26:07.000Z | 2019-08-26T07:33:55.000Z | tensorlayer/core/activations.py | seetaresearch/Dragon | 494774d3a545f807d483fd9e6e4563cedec6dda5 | [
"BSD-2-Clause"
] | 13 | 2018-03-13T13:08:50.000Z | 2020-05-28T08:20:22.000Z | # ------------------------------------------------------------
# Copyright (c) 2017-present, SeetaTech, Co.,Ltd.
# Copyright (c) 2016-2018, The TensorLayer contributors.
#
# Licensed under the BSD 2-Clause License.
# You should have received a copy of the BSD 2-Clause License
# along with the software. If not, See,
#
#... | 24.939759 | 73 | 0.569565 | 247 | 2,070 | 4.680162 | 0.489879 | 0.038927 | 0.025952 | 0.022491 | 0.034602 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022581 | 0.251208 | 2,070 | 82 | 74 | 25.243902 | 0.723226 | 0.505797 | 0 | 0 | 0 | 0 | 0.10473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.208333 | 0.041667 | 0.541667 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
910d62e70e08e0098e7bc08a37e9c9dd5979e4bf | 14,128 | py | Python | src/python/sjoin.py | chanul13/EDMFTF | 967d85d898924991b31861b4e1f45129e3eff180 | [
"BSD-3-Clause"
] | 7 | 2018-04-03T06:37:42.000Z | 2021-11-08T11:44:06.000Z | src/python/sjoin.py | chanul13/EDMFTF | 967d85d898924991b31861b4e1f45129e3eff180 | [
"BSD-3-Clause"
] | null | null | null | src/python/sjoin.py | chanul13/EDMFTF | 967d85d898924991b31861b4e1f45129e3eff180 | [
"BSD-3-Clause"
] | 3 | 2016-10-27T20:23:34.000Z | 2019-12-13T13:54:11.000Z | #!/usr/bin/env python
import utils,indmffile,sys,re,os
import optparse
from scipy import *
import numpy
nv = map(int,numpy.__version__.split('.'))
if (nv[0],nv[1]) < (1,6):
loadtxt = io.read_array
def savetxt(filename, data):
io.write_array(filename, data, precision=16)
def loadtxtE(filename):
... | 44.15 | 195 | 0.562358 | 2,033 | 14,128 | 3.884407 | 0.146581 | 0.014942 | 0.028365 | 0.027352 | 0.466506 | 0.400658 | 0.339243 | 0.303533 | 0.277954 | 0.255793 | 0 | 0.027163 | 0.267766 | 14,128 | 319 | 196 | 44.288401 | 0.736201 | 0.14581 | 0 | 0.245455 | 0 | 0.013636 | 0.185747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018182 | null | null | 0.109091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9114dec3499a89b1c878a4b5f9691129b48e4257 | 1,491 | py | Python | openstack/tests/unit/placement/v1/test_resource_class.py | horion/openstacksdk | cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3 | [
"Apache-2.0"
] | 99 | 2018-03-28T15:41:45.000Z | 2022-01-23T17:22:13.000Z | openstack/tests/unit/placement/v1/test_resource_class.py | horion/openstacksdk | cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3 | [
"Apache-2.0"
] | 5 | 2018-05-25T16:54:23.000Z | 2021-11-21T02:27:16.000Z | openstack/tests/unit/placement/v1/test_resource_class.py | horion/openstacksdk | cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3 | [
"Apache-2.0"
] | 104 | 2018-04-06T14:33:54.000Z | 2022-03-01T01:58:09.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | 34.674419 | 75 | 0.700201 | 197 | 1,491 | 5.203046 | 0.532995 | 0.058537 | 0.082927 | 0.107317 | 0.120976 | 0.070244 | 0 | 0 | 0 | 0 | 0 | 0.004191 | 0.199866 | 1,491 | 42 | 76 | 35.5 | 0.854987 | 0.34943 | 0 | 0 | 0 | 0 | 0.08142 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91159fa9a662a4a048f4220574b46c0342d62288 | 1,139 | py | Python | applications/physbam/physbam-lib/Scripts/Archives/test/deformable_rigid.py | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 20 | 2017-07-03T19:09:09.000Z | 2021-09-10T02:53:56.000Z | applications/physbam/physbam-lib/Scripts/Archives/test/deformable_rigid.py | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | null | null | null | applications/physbam/physbam-lib/Scripts/Archives/test/deformable_rigid.py | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 9 | 2017-09-17T02:05:06.000Z | 2020-01-31T00:12:01.000Z | #!/usr/bin/python
import sys
import os
import tests
result_directory=sys.argv[1]
visual_test=tests.VISUAL_TESTS("Fluid 2D",sys.argv[1])
camera_directory=os.getcwd()+"/Scripts/test/cameras"
def deformable_rigid_test(testname,number):
test=tests.TEST(result_directory=result_directory,
name=testname,
direc... | 42.185185 | 118 | 0.792801 | 163 | 1,139 | 5.116564 | 0.392638 | 0.215827 | 0.113909 | 0.139089 | 0.177458 | 0.177458 | 0 | 0 | 0 | 0 | 0 | 0.020154 | 0.085162 | 1,139 | 26 | 119 | 43.807692 | 0.78023 | 0.014047 | 0 | 0 | 0 | 0 | 0.385918 | 0.325312 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
911d6bd2e903ad84722fc0c13834f08201bce030 | 205 | py | Python | crash_course/ch06/aliens.py | dantin/python-by-example | 5769c7a332ebd60fd54e477b6813f2f2a0f3f37f | [
"BSD-3-Clause"
] | null | null | null | crash_course/ch06/aliens.py | dantin/python-by-example | 5769c7a332ebd60fd54e477b6813f2f2a0f3f37f | [
"BSD-3-Clause"
] | null | null | null | crash_course/ch06/aliens.py | dantin/python-by-example | 5769c7a332ebd60fd54e477b6813f2f2a0f3f37f | [
"BSD-3-Clause"
] | null | null | null |
alien_0 = {'color': 'green', 'points': 5}
alien_1 = {'color': 'yellow', 'points': 10}
alien_2 = {'color': 'red', 'points': 15}
aliens = [alien_0, alien_1, alien_2]
for alien in aliens:
print(alien)
| 20.5 | 43 | 0.614634 | 31 | 205 | 3.870968 | 0.516129 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064706 | 0.170732 | 205 | 9 | 44 | 22.777778 | 0.641176 | 0 | 0 | 0 | 0 | 0 | 0.230392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
911e431826a0299c777ebf18a551f41354b96e16 | 298 | py | Python | src/datreant/remote/backends/__init__.py | datreant/datreant.remote | baba162417b1f5d7665fd530b47b1b6fb08679d3 | [
"BSD-3-Clause"
] | null | null | null | src/datreant/remote/backends/__init__.py | datreant/datreant.remote | baba162417b1f5d7665fd530b47b1b6fb08679d3 | [
"BSD-3-Clause"
] | null | null | null | src/datreant/remote/backends/__init__.py | datreant/datreant.remote | baba162417b1f5d7665fd530b47b1b6fb08679d3 | [
"BSD-3-Clause"
] | null | null | null | # -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
# datreant
"""
datreant.backends --- low-level file backends
=============================================
"""
from .core import File, FileSerial
__all__ = ['File', 'FileSerial']
| 21.285714 | 59 | 0.577181 | 32 | 298 | 5.25 | 0.71875 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015326 | 0.124161 | 298 | 13 | 60 | 22.923077 | 0.628352 | 0.708054 | 0 | 0 | 0 | 0 | 0.186667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
911f47014463ff673f2293a897e0ff7773b917c0 | 2,429 | py | Python | raw/res/f.py | s-liuemi/password-keeper | f38cca2ae01eca03a14586f3736bc46a83692a58 | [
"MIT"
] | 29 | 2018-04-16T08:02:23.000Z | 2022-01-28T15:04:26.000Z | raw/res/f.py | s-liuemi/password-keeper | f38cca2ae01eca03a14586f3736bc46a83692a58 | [
"MIT"
] | 3 | 2020-03-16T08:07:25.000Z | 2021-01-20T12:21:25.000Z | raw/res/f.py | s-liuemi/password-keeper | f38cca2ae01eca03a14586f3736bc46a83692a58 | [
"MIT"
] | 21 | 2018-10-29T16:54:27.000Z | 2022-01-11T18:04:53.000Z |
# made with love by Aekansh Dixit (https://github.com/aekanshd/)
# Please credit me in all your future updates, that's all - you're free to use this code commercially, too.
# (c) Aekansh Dixit, 2018 provided under The MIT License (https://opensource.org/licenses/MIT)
# This file contains all the function definition... | 27.292135 | 126 | 0.642651 | 337 | 2,429 | 4.623145 | 0.424332 | 0.032092 | 0.036585 | 0.040436 | 0.098845 | 0.098845 | 0.098845 | 0.073171 | 0.044929 | 0 | 0 | 0.002158 | 0.236723 | 2,429 | 89 | 127 | 27.292135 | 0.838188 | 0.386167 | 0 | 0.392157 | 0 | 0 | 0.140625 | 0.04212 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.196078 | false | 0 | 0.078431 | 0.058824 | 0.490196 | 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 |
912237a6c62baaca6b5cb76f4b58db5b8038b92b | 3,315 | py | Python | src/trafficAssignment/assign.py | salomonw/mixed-traffic-amod-route-rebalance | 7f1edeb195a7bfab835e596ad84deead2957943e | [
"MIT"
] | 1 | 2022-03-07T16:15:56.000Z | 2022-03-07T16:15:56.000Z | src/trafficAssignment/assign.py | salomonw/mixed-traffic-amod-route-rebalance | 7f1edeb195a7bfab835e596ad84deead2957943e | [
"MIT"
] | null | null | null | src/trafficAssignment/assign.py | salomonw/mixed-traffic-amod-route-rebalance | 7f1edeb195a7bfab835e596ad84deead2957943e | [
"MIT"
] | null | null | null |
import networkx as nx
import scipy.optimize
def BPR(x, m, fcoeffs, exo):
return sum([fcoeffs[i]*((x+exo)/m)**i for i in range(len(fcoeffs))])
def BPR_social(x, m, fcoeffs, exo):
return sum([fcoeffs[i]*((x+exo)/m)**i for i in range(len(fcoeffs))]) + sum([fcoeffs[i+1]*(i+1) *((x+exo)/m)**(i) for i in range(len(fcoe... | 27.857143 | 146 | 0.60362 | 667 | 3,315 | 2.850075 | 0.130435 | 0.046291 | 0.053656 | 0.040505 | 0.753288 | 0.700684 | 0.630721 | 0.608101 | 0.589164 | 0.576013 | 0 | 0.028582 | 0.166214 | 3,315 | 119 | 147 | 27.857143 | 0.65919 | 0.024434 | 0 | 0.474227 | 0 | 0 | 0.043061 | 0 | 0 | 0 | 0 | 0.008403 | 0 | 1 | 0.134021 | false | 0 | 0.020619 | 0.030928 | 0.247423 | 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 |
912bd257cb586d21802dc91ce3a921851e6098b7 | 1,081 | py | Python | iic2343/cli/generators.py | daleal/iic2343 | ded3c035e77690e6881a82679d75775452d002e3 | [
"MIT"
] | null | null | null | iic2343/cli/generators.py | daleal/iic2343 | ded3c035e77690e6881a82679d75775452d002e3 | [
"MIT"
] | 4 | 2021-09-15T23:51:29.000Z | 2021-09-16T04:36:16.000Z | iic2343/cli/generators.py | daleal/iic2343 | ded3c035e77690e6881a82679d75775452d002e3 | [
"MIT"
] | 1 | 2021-09-17T04:42:48.000Z | 2021-09-17T04:42:48.000Z | """
A module to hold the CLI parser generators.
"""
from argparse import ArgumentParser, _SubParsersAction
import iic2343
from iic2343.cli.utils import setup_serial_ports_arguments
def generate_main_parser() -> ArgumentParser:
"""Generates the main parser."""
# Create parser
parser = ArgumentParser(
... | 27.025 | 85 | 0.725254 | 119 | 1,081 | 6.336134 | 0.378151 | 0.1313 | 0.159151 | 0.119363 | 0.100796 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022779 | 0.187789 | 1,081 | 39 | 86 | 27.717949 | 0.835991 | 0.178538 | 0 | 0 | 1 | 0 | 0.146482 | 0.024221 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.35 | 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 |
913665fb273dbef7e0b2a6e9b134f20bf973a0d2 | 448 | py | Python | favorite_app/migrations/0002_auto_20190728_2039.py | kenware/favorite-things | 2750c3af8c996bfa6b7ee9ddf2d31984f8375c43 | [
"MIT"
] | null | null | null | favorite_app/migrations/0002_auto_20190728_2039.py | kenware/favorite-things | 2750c3af8c996bfa6b7ee9ddf2d31984f8375c43 | [
"MIT"
] | 9 | 2019-12-04T23:49:13.000Z | 2022-02-10T07:45:17.000Z | favorite_app/migrations/0002_auto_20190728_2039.py | kenware/Continuous-deployement-circleCI-AWS-backend | d5d7630765eb568b1a78cf52ffa5558cf579b7c7 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-07-28 20:39
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('favorite_app', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='favoritethings'... | 22.4 | 74 | 0.638393 | 48 | 448 | 5.875 | 0.75 | 0.078014 | 0.134752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056716 | 0.252232 | 448 | 19 | 75 | 23.578947 | 0.785075 | 0.100446 | 0 | 0 | 1 | 0 | 0.127182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91369128a35d4da0f34ffbf3655c5d7ef335aa5c | 459 | py | Python | python/us-opp/poglavlje06/primjer04.py | jasarsoft/examples | d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e | [
"MIT"
] | null | null | null | python/us-opp/poglavlje06/primjer04.py | jasarsoft/examples | d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e | [
"MIT"
] | null | null | null | python/us-opp/poglavlje06/primjer04.py | jasarsoft/examples | d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e | [
"MIT"
] | null | null | null | #program za crtanje faktalnog stabla zadane duzine
import turtle
def fraktalnoStablo(f_duzina, min_duzina = 10):
#fukcija rezukzivno crta stablo s dva lista
turtle.forward(f_duzina)
if f_duzina > min_duzina:
turtle.left(45)
fraktalnoStablo(0.6*f_duzina, min_duzina)
turtle.right(90)... | 25.5 | 50 | 0.708061 | 64 | 459 | 4.921875 | 0.5 | 0.133333 | 0.126984 | 0.203175 | 0.355556 | 0.355556 | 0.355556 | 0.247619 | 0 | 0 | 0 | 0.046703 | 0.206972 | 459 | 17 | 51 | 27 | 0.818681 | 0.198257 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 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 |
913981d755d1b9cfa9219f61a0f64d271d2f9599 | 8,463 | py | Python | djangoproj/PES_web_site/trunk/djangoproj/djangoapp/crawler/b_googleSearch.py | pbarton666/buzz_bot | 9f44c66e8ecb10e231f70989421f164d7a55029a | [
"MIT"
] | null | null | null | djangoproj/PES_web_site/trunk/djangoproj/djangoapp/crawler/b_googleSearch.py | pbarton666/buzz_bot | 9f44c66e8ecb10e231f70989421f164d7a55029a | [
"MIT"
] | null | null | null | djangoproj/PES_web_site/trunk/djangoproj/djangoapp/crawler/b_googleSearch.py | pbarton666/buzz_bot | 9f44c66e8ecb10e231f70989421f164d7a55029a | [
"MIT"
] | null | null | null | '''
This module is a self contained routine to ransack Google for results around a query. The main entry point is class
SearcherClass()::runSearchEngine. Notes:
- You'll want to substitute your own application key (self.key) if using it a lot
- It depends on module b_openUrl.py (this wraps urllib2 functions)
- ... | 42.104478 | 138 | 0.638781 | 1,069 | 8,463 | 4.945744 | 0.315248 | 0.024589 | 0.01986 | 0.031776 | 0.149801 | 0.120862 | 0.120862 | 0.11027 | 0.100624 | 0.100624 | 0 | 0.005554 | 0.276616 | 8,463 | 201 | 139 | 42.104478 | 0.858053 | 0.160818 | 0 | 0.161017 | 0 | 0.008475 | 0.08861 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0 | null | null | 0.008475 | 0.084746 | 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 |
913994bc9379f53d7fc9fac3afcc94083fb159e3 | 2,850 | py | Python | Prog4comp-SL-HPL-Extra/src/Newton_demo.py | computational-medicine/BMED360-2021 | 2c6052b9affedf1fee23c89d23941bf08eb2614c | [
"MIT"
] | 2 | 2021-04-19T23:22:17.000Z | 2021-04-20T14:04:58.000Z | Prog4comp-SL-HPL-Extra/src/Newton_demo.py | computational-medicine/BMED360-2021 | 2c6052b9affedf1fee23c89d23941bf08eb2614c | [
"MIT"
] | null | null | null | Prog4comp-SL-HPL-Extra/src/Newton_demo.py | computational-medicine/BMED360-2021 | 2c6052b9affedf1fee23c89d23941bf08eb2614c | [
"MIT"
] | 2 | 2020-03-26T17:15:13.000Z | 2020-05-25T08:10:06.000Z | """
This is a program for illustrating the convergence of Newton's method
for solving nonlinear algebraic equations of the form f(x) = 0.
Usage:
python Newton_movie.py f_formula df_formula x0 xmin xmax
where f_formula is a string formula for f(x); df_formula is
a string formula for the derivative f'(x), or df_formula... | 32.022472 | 103 | 0.639298 | 456 | 2,850 | 3.938596 | 0.35307 | 0.007795 | 0.020045 | 0.018931 | 0.111359 | 0.089087 | 0.034521 | 0 | 0 | 0 | 0 | 0.018391 | 0.236842 | 2,850 | 88 | 104 | 32.386364 | 0.807356 | 0.160351 | 0 | 0 | 0 | 0 | 0.107328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.098039 | null | null | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
913b17a81ce8beb21146ba4b605753f045f4f9e4 | 3,541 | py | Python | accounts/views.py | Raistlin11123/inquiry-soso | 380d27219a5855f9e25da90db47f85e46e5e8b5d | [
"MIT"
] | null | null | null | accounts/views.py | Raistlin11123/inquiry-soso | 380d27219a5855f9e25da90db47f85e46e5e8b5d | [
"MIT"
] | null | null | null | accounts/views.py | Raistlin11123/inquiry-soso | 380d27219a5855f9e25da90db47f85e46e5e8b5d | [
"MIT"
] | null | null | null | #all the imports needed
#django import
from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.contrib.auth.decorators import login_required
from django.contrib.auth.model... | 38.912088 | 138 | 0.618187 | 396 | 3,541 | 5.449495 | 0.343434 | 0.040779 | 0.055607 | 0.050046 | 0.308156 | 0.211307 | 0.166821 | 0.137164 | 0.137164 | 0.137164 | 0 | 0.00406 | 0.304434 | 3,541 | 90 | 139 | 39.344444 | 0.872107 | 0.105337 | 0 | 0.253968 | 0 | 0 | 0.163285 | 0.006658 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.174603 | 0.126984 | 0 | 0.301587 | 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 |
913d78bec8b7600b5f70c945e0a5a8cdf3a3e31a | 1,031 | py | Python | tests/factories.py | frainfreeze/sqlalchemy-filters-plus | 1886cf39110504aee54330857b8317a31cd9606e | [
"BSD-3-Clause"
] | 25 | 2021-03-28T18:28:01.000Z | 2022-03-19T00:35:48.000Z | tests/factories.py | frainfreeze/sqlalchemy-filters-plus | 1886cf39110504aee54330857b8317a31cd9606e | [
"BSD-3-Clause"
] | 3 | 2021-09-20T16:37:39.000Z | 2022-03-21T00:47:23.000Z | tests/factories.py | frainfreeze/sqlalchemy-filters-plus | 1886cf39110504aee54330857b8317a31cd9606e | [
"BSD-3-Clause"
] | 4 | 2021-08-28T02:54:16.000Z | 2022-02-25T11:57:35.000Z | from datetime import datetime
import factory
import faker
from factory.alchemy import SQLAlchemyModelFactory
from tests.models import Article
from tests.models import Category
from tests.models import User
factories_registry = set()
Faker = faker.Faker()
class BaseModelFactory(SQLAlchemyModelFactory):
def __i... | 21.479167 | 88 | 0.734239 | 111 | 1,031 | 6.63964 | 0.414414 | 0.048847 | 0.061058 | 0.085482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187197 | 1,031 | 47 | 89 | 21.93617 | 0.879475 | 0 | 0 | 0.133333 | 0 | 0 | 0.007759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.233333 | 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 |
91424b8c0c1da6efa695ec175372f386c1a955d5 | 5,446 | py | Python | bikeshed/messages.py | kojiishi/bikeshed | 0feafaae1a97b66d9da46b325858f9805ac01fb2 | [
"CC0-1.0"
] | null | null | null | bikeshed/messages.py | kojiishi/bikeshed | 0feafaae1a97b66d9da46b325858f9805ac01fb2 | [
"CC0-1.0"
] | null | null | null | bikeshed/messages.py | kojiishi/bikeshed | 0feafaae1a97b66d9da46b325858f9805ac01fb2 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import division, unicode_literals
import sys
from collections import Counter
from lxml import html
import config
messages = set()
messageCounts = Counter()
def p(msg):
if config.quiet == float("infinity"):
return
try:
print msg
except UnicodeEncod... | 31.298851 | 126 | 0.550129 | 574 | 5,446 | 5.212544 | 0.270035 | 0.076203 | 0.030414 | 0.036096 | 0.329545 | 0.317179 | 0.305481 | 0.254011 | 0.238971 | 0.204211 | 0 | 0.018436 | 0.302791 | 5,446 | 173 | 127 | 31.479769 | 0.769028 | 0.003856 | 0 | 0.290541 | 0 | 0 | 0.167988 | 0.030242 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033784 | null | null | 0.067568 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91470595aad1deb3ecffab847143f9a5cbfcde59 | 619 | py | Python | Chapter04/listing4-2.py | TYRMars/PythonLearn | 573c8d0b94b890924942e6ba7882eaf73597fb63 | [
"MIT"
] | null | null | null | Chapter04/listing4-2.py | TYRMars/PythonLearn | 573c8d0b94b890924942e6ba7882eaf73597fb63 | [
"MIT"
] | null | null | null | Chapter04/listing4-2.py | TYRMars/PythonLearn | 573c8d0b94b890924942e6ba7882eaf73597fb63 | [
"MIT"
] | 1 | 2018-08-23T14:41:32.000Z | 2018-08-23T14:41:32.000Z | # A simple database using get()
# Insert database (people) from Listing 4-1 here.
labels = {
'phone': 'phone number',
'addr': 'address'
}
name = raw_input('Name: ')
# Are we looking for a phone number or an address?
request = raw_input('Phone number (p) or address (a)? ')
# Use the correct key:
key = reque... | 24.76 | 58 | 0.646204 | 97 | 619 | 4.103093 | 0.505155 | 0.082915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004024 | 0.197092 | 619 | 25 | 59 | 24.76 | 0.796781 | 0.36349 | 0 | 0 | 0 | 0 | 0.270619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9147b9715c98f55557e612d0188c5afa732078f8 | 1,707 | py | Python | translator/opennebula.py | 5g-media/mape-translation | 2cca5b9b0880fa4580597eb02ad6006b9fe835e5 | [
"Apache-2.0"
] | null | null | null | translator/opennebula.py | 5g-media/mape-translation | 2cca5b9b0880fa4580597eb02ad6006b9fe835e5 | [
"Apache-2.0"
] | 2 | 2020-04-16T06:08:33.000Z | 2020-04-16T06:08:33.000Z | translator/opennebula.py | 5g-media/mape-translation | 2cca5b9b0880fa4580597eb02ad6006b9fe835e5 | [
"Apache-2.0"
] | null | null | null | from translator.basemetric import BaseMetric
from translator.exceptions import OsmInfoNotFound
from translator.utils import get_vdu_details, opennebula_metrics
import copy
class Metric(BaseMetric):
def __init__(self, raw_metric, source="opennebula"):
self.source = source
self.raw_metric = raw_metr... | 33.470588 | 81 | 0.650849 | 219 | 1,707 | 4.858447 | 0.328767 | 0.059211 | 0.06109 | 0.035714 | 0.099624 | 0.065789 | 0.065789 | 0.065789 | 0.065789 | 0 | 0 | 0 | 0.265378 | 1,707 | 50 | 82 | 34.14 | 0.848485 | 0.28471 | 0 | 0 | 0 | 0 | 0.052823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.541667 | 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 |
914db74d84319ec8a069d4d0c10a1177397fe0ca | 4,167 | py | Python | test/tests/slice.py | aisk/pyston | ac69cfef0621dbc8901175e84fa2b5cb5781a646 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | test/tests/slice.py | aisk/pyston | ac69cfef0621dbc8901175e84fa2b5cb5781a646 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | test/tests/slice.py | aisk/pyston | ac69cfef0621dbc8901175e84fa2b5cb5781a646 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | class Indexable(object):
def __getitem__(self, idx):
print "called getitem on object", idx
def __delitem__(self, idx):
print "called delitem on object", idx
def __setitem__(self, idx, item):
print "called setitem on object", idx
class Sliceable(object):
def __getslice__(self, ... | 21.816754 | 86 | 0.688985 | 633 | 4,167 | 4.385466 | 0.21169 | 0.04755 | 0.023775 | 0.036744 | 0.389769 | 0.32853 | 0.283862 | 0.283862 | 0.242795 | 0.242795 | 0 | 0.035609 | 0.184545 | 4,167 | 190 | 87 | 21.931579 | 0.781342 | 0.156467 | 0 | 0.278571 | 0 | 0 | 0.159188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014286 | 0 | null | null | 0.314286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e679c6a4d5d6d9fcdf5fc0c46aeffca611ddb030 | 441 | py | Python | Grundgeruest/migrations/0009_auto_20180327_1546.py | valuehack/scholarium.at | b81220ab18ae6db057132ae2cc43afc22545e5e6 | [
"MIT"
] | 1 | 2017-10-27T15:05:17.000Z | 2017-10-27T15:05:17.000Z | Grundgeruest/migrations/0009_auto_20180327_1546.py | valuehack/scholarium.at | b81220ab18ae6db057132ae2cc43afc22545e5e6 | [
"MIT"
] | 135 | 2017-07-31T20:11:59.000Z | 2022-03-11T23:16:37.000Z | Grundgeruest/migrations/0009_auto_20180327_1546.py | valuehack/scholarium.at | b81220ab18ae6db057132ae2cc43afc22545e5e6 | [
"MIT"
] | 4 | 2017-11-20T12:10:50.000Z | 2018-03-12T10:51:12.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-03-27 15:46
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Grundgeruest', '0008_stufe_unterstuetzung'),
]
operations = [
migrations.RenameFiel... | 21 | 54 | 0.61678 | 46 | 441 | 5.695652 | 0.804348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0.269841 | 441 | 20 | 55 | 22.05 | 0.748447 | 0.154195 | 0 | 0 | 1 | 0 | 0.164865 | 0.067568 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e67a39e042eb1e993eaa81428e048ea2ece545ef | 930 | py | Python | search/migrations/0003_auto_20171028_1641.py | nexuszix/propm | 8640c88d6c97a69c41e489e98c479c5eb0f81a18 | [
"BSD-2-Clause"
] | null | null | null | search/migrations/0003_auto_20171028_1641.py | nexuszix/propm | 8640c88d6c97a69c41e489e98c479c5eb0f81a18 | [
"BSD-2-Clause"
] | null | null | null | search/migrations/0003_auto_20171028_1641.py | nexuszix/propm | 8640c88d6c97a69c41e489e98c479c5eb0f81a18 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-28 09:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('search', '0002_land_created_date'),
]
operations = [
migrations.RemoveField... | 26.571429 | 75 | 0.566667 | 92 | 930 | 5.565217 | 0.521739 | 0.070313 | 0.101563 | 0.132813 | 0.486328 | 0.486328 | 0.417969 | 0.417969 | 0.417969 | 0.324219 | 0 | 0.04644 | 0.305376 | 930 | 34 | 76 | 27.352941 | 0.74613 | 0.073118 | 0 | 0.518519 | 1 | 0 | 0.091967 | 0.025611 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e67c82e682250bc757f318446048d6e59e57d0e2 | 11,603 | py | Python | packages/w3af/w3af/core/data/url/tests/test_xurllib_error_handling.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | 3 | 2019-04-09T22:59:33.000Z | 2019-06-14T09:23:24.000Z | tools/w3af/w3af/core/data/url/tests/test_xurllib_error_handling.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | tools/w3af/w3af/core/data/url/tests/test_xurllib_error_handling.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
test_xurllib_error_handling.py
Copyright 2015 Andres Riancho
This file is part of w3af, http://w3af.org/ .
w3af is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the Licens... | 37.070288 | 86 | 0.602775 | 1,409 | 11,603 | 4.817601 | 0.273953 | 0.037124 | 0.042133 | 0.014143 | 0.388627 | 0.344726 | 0.284915 | 0.269741 | 0.230849 | 0.206541 | 0 | 0.025717 | 0.302939 | 11,603 | 312 | 87 | 37.189103 | 0.813551 | 0.119538 | 0 | 0.367021 | 0 | 0 | 0.095646 | 0.009455 | 0 | 0 | 0 | 0 | 0.117021 | 0 | null | null | 0.010638 | 0.074468 | 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 |
e68989f7441ae5994294fee14189ac15f7004343 | 4,392 | py | Python | starry_process/size.py | arfon/starry_process | 72b2a540e7e4fdb2e6af61507efa1c9861d5c919 | [
"MIT"
] | 13 | 2020-04-14T17:47:28.000Z | 2022-03-16T15:19:48.000Z | starry_process/size.py | arfon/starry_process | 72b2a540e7e4fdb2e6af61507efa1c9861d5c919 | [
"MIT"
] | 22 | 2020-09-23T20:33:22.000Z | 2022-02-07T17:38:09.000Z | starry_process/size.py | arfon/starry_process | 72b2a540e7e4fdb2e6af61507efa1c9861d5c919 | [
"MIT"
] | 8 | 2020-04-14T17:47:44.000Z | 2022-02-06T16:39:47.000Z | from .integrals import MomentIntegral
from .ops import CheckBoundsOp
from .compat import tt, ifelse
import numpy as np
from scipy.special import legendre as P
from .math import matrix_sqrt
class Spot:
def __init__(
self,
ydeg=15,
spts=1000,
eps4=1e-9,
smoothing=0.075,
... | 32.533333 | 79 | 0.528461 | 636 | 4,392 | 3.556604 | 0.273585 | 0.024315 | 0.030946 | 0.028736 | 0.115827 | 0.073386 | 0.05924 | 0.022104 | 0 | 0 | 0 | 0.024991 | 0.334927 | 4,392 | 134 | 80 | 32.776119 | 0.749401 | 0.14959 | 0 | 0 | 0 | 0 | 0.000818 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.09375 | false | 0.010417 | 0.0625 | 0.020833 | 0.239583 | 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 |
e69868332a7c4a187926aaf083c663ab8d02176d | 2,582 | py | Python | crlfsuite/core/cli.py | Nefcore/CRLFsuite | 66d85e4ff38d2a54f548abeaba2a405c075699d5 | [
"MIT"
] | 1 | 2022-03-31T13:12:21.000Z | 2022-03-31T13:12:21.000Z | crlfsuite/core/cli.py | Nefcore/CRLFsuite | 66d85e4ff38d2a54f548abeaba2a405c075699d5 | [
"MIT"
] | null | null | null | crlfsuite/core/cli.py | Nefcore/CRLFsuite | 66d85e4ff38d2a54f548abeaba2a405c075699d5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import argparse
from crlfsuite.utils.utils import get_user_agent, parse_cookies, parse_post_data
from crlfsuite.core.logger import banner
parser = argparse.ArgumentParser()
required_grp = parser.add_argument_group('Main options')
required_grp.add_argument('-u', '--url', dest='url', help='Spec... | 43.033333 | 178 | 0.730442 | 381 | 2,582 | 4.792651 | 0.32021 | 0.096386 | 0.099671 | 0.069003 | 0.064622 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013021 | 0.107668 | 2,582 | 59 | 179 | 43.762712 | 0.779514 | 0.008133 | 0 | 0.12 | 0 | 0.04 | 0.359906 | 0.021102 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.08 | 0.1 | 0 | 0.1 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e69e795d377361a01a958d410c9d56a01919ca11 | 2,177 | py | Python | hikyuu/data/common.py | scanfyu/hikyuu | 55265de4d8d4773391f2dcd1211acec9fe901f53 | [
"MIT"
] | 2 | 2021-09-16T06:09:03.000Z | 2021-12-22T06:44:53.000Z | hikyuu/data/common.py | scanfyu/hikyuu | 55265de4d8d4773391f2dcd1211acec9fe901f53 | [
"MIT"
] | 1 | 2019-04-16T03:23:15.000Z | 2019-04-16T03:23:15.000Z | hikyuu/data/common.py | archya/hikyuu | 2305a977a78bab832bf8fcb4d66482dfef442c9d | [
"MIT"
] | 1 | 2021-11-23T06:36:15.000Z | 2021-11-23T06:36:15.000Z | # coding:utf-8
#
# The MIT License (MIT)
#
# Copyright (c) 2010-2019 fasiondog/hikyuu
#
# 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 r... | 32.014706 | 80 | 0.655949 | 302 | 2,177 | 4.708609 | 0.529801 | 0.061885 | 0.018284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018439 | 0.252641 | 2,177 | 68 | 81 | 32.014706 | 0.855562 | 0.565457 | 0 | 0 | 0 | 0 | 0.041714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0 | 0 | 0.625 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e69eb4c2f0e0d0dd22a8bad7b39a990a85f79a21 | 192 | py | Python | ExerciciosdePython/ex072.py | aleksandromelo/Exercicios | 782ff539efa1286180eaf8df8c25c4eca7a5e669 | [
"MIT"
] | null | null | null | ExerciciosdePython/ex072.py | aleksandromelo/Exercicios | 782ff539efa1286180eaf8df8c25c4eca7a5e669 | [
"MIT"
] | null | null | null | ExerciciosdePython/ex072.py | aleksandromelo/Exercicios | 782ff539efa1286180eaf8df8c25c4eca7a5e669 | [
"MIT"
] | null | null | null | cont = ('zero', 'um', 'dois', 'três', 'quatro', 'cinco', 'seis', 'sete', 'oito', 'nove', 'dez')
n = int(input('Digite um número entre 0 e 10: '))
print(f'Você digitou o número {cont[n]}.')
| 27.428571 | 95 | 0.567708 | 30 | 192 | 3.633333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018634 | 0.161458 | 192 | 6 | 96 | 32 | 0.658385 | 0 | 0 | 0 | 0 | 0 | 0.566138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e6a9f2051d77cf2982999959e1413f9956299f52 | 2,192 | py | Python | showspectralImage.py | guanguanboy/MyHybridSNNew | 26f4efc7f623d3818786d7b967199d37c814ebb8 | [
"MIT"
] | null | null | null | showspectralImage.py | guanguanboy/MyHybridSNNew | 26f4efc7f623d3818786d7b967199d37c814ebb8 | [
"MIT"
] | null | null | null | showspectralImage.py | guanguanboy/MyHybridSNNew | 26f4efc7f623d3818786d7b967199d37c814ebb8 | [
"MIT"
] | null | null | null | import keras
from keras.layers import Conv2D, Conv3D, Flatten, Dense, Reshape, BatchNormalization
from keras.layers import Dropout, Input
from keras.models import Model
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint
from keras.utils import np_utils
from sklearn.decomposition impo... | 28.102564 | 108 | 0.705748 | 325 | 2,192 | 4.624615 | 0.387692 | 0.037259 | 0.046574 | 0.063872 | 0.175649 | 0.175649 | 0.175649 | 0.175649 | 0.090486 | 0 | 0 | 0.020845 | 0.168339 | 2,192 | 77 | 109 | 28.467532 | 0.80362 | 0.081204 | 0 | 0.08 | 0 | 0 | 0.121888 | 0.035788 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.34 | 0 | 0.38 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e6ae12a721865348b061dd641d3df50c01c0e713 | 3,260 | py | Python | dit/utils/tests/test_misc.py | chebee7i/dit | 59626e34c7938fddeec140522dd2a592ba4f42ef | [
"BSD-2-Clause"
] | null | null | null | dit/utils/tests/test_misc.py | chebee7i/dit | 59626e34c7938fddeec140522dd2a592ba4f42ef | [
"BSD-2-Clause"
] | null | null | null | dit/utils/tests/test_misc.py | chebee7i/dit | 59626e34c7938fddeec140522dd2a592ba4f42ef | [
"BSD-2-Clause"
] | null | null | null | """
Tests for dit.utils.misc.
"""
from nose.tools import assert_equal, assert_false, assert_raises, assert_true
from dit.utils.misc import flatten, is_string_like, partitions, partitions2, \
ordered_partitions, require_keys, partition_set, \
abstract_method, digit... | 29.369369 | 78 | 0.58681 | 485 | 3,260 | 3.775258 | 0.218557 | 0.068815 | 0.045877 | 0.019115 | 0.472966 | 0.453304 | 0.411251 | 0.321136 | 0.264883 | 0.264883 | 0 | 0.059951 | 0.247853 | 3,260 | 110 | 79 | 29.636364 | 0.686786 | 0.007669 | 0 | 0.270588 | 0 | 0 | 0.020452 | 0 | 0 | 0 | 0 | 0 | 0.258824 | 1 | 0.223529 | false | 0.011765 | 0.035294 | 0 | 0.270588 | 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 |
e6aea7a76f954a28248e495a87a9a64efe488a59 | 1,540 | py | Python | src/examples.py | ProttoyChakraborty/permutation-flowshop | 1a2c357cc09f717153f3a73081fd51f2a54126a1 | [
"MIT"
] | null | null | null | src/examples.py | ProttoyChakraborty/permutation-flowshop | 1a2c357cc09f717153f3a73081fd51f2a54126a1 | [
"MIT"
] | null | null | null | src/examples.py | ProttoyChakraborty/permutation-flowshop | 1a2c357cc09f717153f3a73081fd51f2a54126a1 | [
"MIT"
] | 1 | 2021-10-02T07:40:54.000Z | 2021-10-02T07:40:54.000Z | """
permutation-flowshop repository
This module has two examples on how to setup and run
the algorithm for Permutation Flowshop scheduling problems.
The first one uses random generated data, while the second
uses one of the instances from the Taillard benchmark set.
"""
import numpy as np
import benchmark
from iterat... | 30.196078 | 82 | 0.731169 | 207 | 1,540 | 5.304348 | 0.454106 | 0.043716 | 0.051002 | 0.041894 | 0.218579 | 0.218579 | 0.218579 | 0.218579 | 0.218579 | 0.218579 | 0 | 0.023828 | 0.182468 | 1,540 | 51 | 83 | 30.196078 | 0.848292 | 0.422078 | 0 | 0.181818 | 1 | 0 | 0.094688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 0.272727 | 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 |
e6b042a0c99128946dc1e0ffef03382ad108497e | 10,339 | py | Python | src/core/web.py | thiago-jsbp/trader0 | ac91abe34d7637c31e7293c16adbb1688797399c | [
"Apache-2.0"
] | null | null | null | src/core/web.py | thiago-jsbp/trader0 | ac91abe34d7637c31e7293c16adbb1688797399c | [
"Apache-2.0"
] | null | null | null | src/core/web.py | thiago-jsbp/trader0 | ac91abe34d7637c31e7293c16adbb1688797399c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from .common import *
from ccxt.base.errors import AuthenticationError, ExchangeError, ExchangeNotAvailable, RequestTimeout
from requests.exceptions import ConnectionError, HTTPError, ReadTimeout
from socket import gaierror, timeout
from urllib3.exceptions import MaxRetryError, NewConnectionErr... | 26.854545 | 101 | 0.55015 | 1,218 | 10,339 | 4.477011 | 0.178982 | 0.123052 | 0.03576 | 0.036677 | 0.348615 | 0.297818 | 0.259674 | 0.217862 | 0.136255 | 0.121584 | 0 | 0.012265 | 0.321791 | 10,339 | 384 | 102 | 26.924479 | 0.765402 | 0.078538 | 0 | 0.34632 | 0 | 0 | 0.051129 | 0.003691 | 0 | 0 | 0 | 0.023438 | 0 | 1 | 0.04329 | false | 0.004329 | 0.030303 | 0 | 0.199134 | 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 |
e6b63506ea7383d049d5514687014fffbba2950f | 7,089 | py | Python | app/loyalty/migrations/0001_initial.py | S3Infosoft/s3-loyalty-webapp | 264b98a325ccfa683737e03623acc99fe3053a99 | [
"MIT"
] | null | null | null | app/loyalty/migrations/0001_initial.py | S3Infosoft/s3-loyalty-webapp | 264b98a325ccfa683737e03623acc99fe3053a99 | [
"MIT"
] | 7 | 2019-06-17T04:11:38.000Z | 2019-08-01T06:23:46.000Z | app/loyalty/migrations/0001_initial.py | S3Infosoft/mvr-loyalty | 264b98a325ccfa683737e03623acc99fe3053a99 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.7 on 2019-07-23 20:38
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(... | 52.125 | 148 | 0.595147 | 738 | 7,089 | 5.560976 | 0.168022 | 0.052632 | 0.040936 | 0.064327 | 0.727583 | 0.688109 | 0.616472 | 0.588207 | 0.501218 | 0.501218 | 0 | 0.0162 | 0.259839 | 7,089 | 135 | 149 | 52.511111 | 0.765962 | 0.006348 | 0 | 0.507813 | 1 | 0 | 0.10977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.039063 | 0 | 0.070313 | 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 |
e6b8682b538974c3b619a10c04e1ec11cda04789 | 285 | py | Python | Python-Server/src/module/hello_handler.py | MCD-50/Fintech | 9aa79a397a2ee09677e5739e10f5af2e5da8be8f | [
"MIT"
] | null | null | null | Python-Server/src/module/hello_handler.py | MCD-50/Fintech | 9aa79a397a2ee09677e5739e10f5af2e5da8be8f | [
"MIT"
] | null | null | null | Python-Server/src/module/hello_handler.py | MCD-50/Fintech | 9aa79a397a2ee09677e5739e10f5af2e5da8be8f | [
"MIT"
] | null | null | null |
import json
from src.helper.collection import handle_error, get_response
class HelloHandler(object):
@staticmethod
def show_message():
try:
res_json = get_response({'text': 'hello'})
return res_json
except Exception as exception:
return handle_error('/', exception) | 20.357143 | 60 | 0.74386 | 36 | 285 | 5.694444 | 0.694444 | 0.107317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 285 | 14 | 61 | 20.357143 | 0.854167 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e6bcbc5c19500fbece0de836da242f5e4acdf6d7 | 703 | py | Python | old_stuff/serial_game/mb_control.py | jrmhaig/microbit_playground | af27843a66f28527a3c930ca9f198e33b3097fab | [
"MIT"
] | 1 | 2017-09-27T15:50:05.000Z | 2017-09-27T15:50:05.000Z | old_stuff/serial_game/mb_control.py | jrmhaig/microbit_playground | af27843a66f28527a3c930ca9f198e33b3097fab | [
"MIT"
] | null | null | null | old_stuff/serial_game/mb_control.py | jrmhaig/microbit_playground | af27843a66f28527a3c930ca9f198e33b3097fab | [
"MIT"
] | null | null | null | import microbit
key_delay = 100
acc = microbit.accelerometer
a = microbit.button_a
b = microbit.button_b
img = microbit.display.image
while True:
microbit.display.clear()
x = acc.get_x()
y = acc.get_y()
if x > 300:
print('r')
img.set_pixel_value(4, 2, 1)
elif x < -300:
prin... | 19.527778 | 36 | 0.55761 | 111 | 703 | 3.351351 | 0.342342 | 0.096774 | 0.177419 | 0.258065 | 0.091398 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067347 | 0.302987 | 703 | 35 | 37 | 20.085714 | 0.691837 | 0 | 0 | 0 | 0 | 0 | 0.008535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.034483 | 0.206897 | 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 |
e6c094a723d9331b3bde835c3f2bd1facbbe142a | 650 | py | Python | chrome/installer/mini_installer/generate_previous_version_mini_installer.py | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | chrome/installer/mini_installer/generate_previous_version_mini_installer.py | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | chrome/installer/mini_installer/generate_previous_version_mini_installer.py | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Generates a mini_installer with a lower version than an existing one."""
import argparse
import subprocess
import sys
def main():
parser = argparse.A... | 23.214286 | 76 | 0.690769 | 87 | 650 | 5 | 0.735632 | 0.05977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.193846 | 650 | 27 | 77 | 24.074074 | 0.822519 | 0.347692 | 0 | 0 | 1 | 0 | 0.25 | 0.074519 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e6c0d524aaebcf781ed5d9800a141c830ebc2d8a | 440 | py | Python | PCB/logo/eagle-hflip.py | scottsilverlabs/raspberrystem-hw-base | 47c591ae8a7bcf0205d4f6b6f2b078505c93e240 | [
"Apache-2.0"
] | null | null | null | PCB/logo/eagle-hflip.py | scottsilverlabs/raspberrystem-hw-base | 47c591ae8a7bcf0205d4f6b6f2b078505c93e240 | [
"Apache-2.0"
] | null | null | null | PCB/logo/eagle-hflip.py | scottsilverlabs/raspberrystem-hw-base | 47c591ae8a7bcf0205d4f6b6f2b078505c93e240 | [
"Apache-2.0"
] | null | null | null | from bs4 import BeautifulSoup
import sys
try:
prog, name = sys.argv
except:
print "Usage: eagle-hflip.py <file> <scale_factor> "
sys.exit()
with file(name) as f:
soup = BeautifulSoup(f)
for tag in soup.plain.find_all(["vertex", "polygon", "wire"]):
for attr in ["x", "x1", "x2", "curve"]:
... | 20.952381 | 62 | 0.597727 | 68 | 440 | 3.838235 | 0.647059 | 0.061303 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011869 | 0.234091 | 440 | 20 | 63 | 22 | 0.762611 | 0 | 0 | 0 | 0 | 0 | 0.164009 | 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 |
e6c0ec773663de49b2fb4d65884f2200ce9beaa3 | 1,089 | py | Python | calculator/simplecalculator.py | KishoreParihar/DemoPythonTest | f9dadbf6cfcd4e6877e31ca65851882f73234307 | [
"MIT"
] | null | null | null | calculator/simplecalculator.py | KishoreParihar/DemoPythonTest | f9dadbf6cfcd4e6877e31ca65851882f73234307 | [
"MIT"
] | null | null | null | calculator/simplecalculator.py | KishoreParihar/DemoPythonTest | f9dadbf6cfcd4e6877e31ca65851882f73234307 | [
"MIT"
] | null | null | null | class Calculator:
def __init__(self, a, b):
self.a = a
self.b = b
def add(self):
return self.a + self.b
def mul(self):
return self.a * self.b
def div(self):
return self.a / self.b
def sub(self):
return self.a - self.b
def add2(self, a, b):
... | 23.170213 | 50 | 0.478421 | 137 | 1,089 | 3.715328 | 0.306569 | 0.068762 | 0.058939 | 0.117878 | 0.180747 | 0.180747 | 0.180747 | 0 | 0 | 0 | 0 | 0.020319 | 0.367309 | 1,089 | 47 | 51 | 23.170213 | 0.718433 | 0 | 0 | 0 | 0 | 0 | 0.154128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0 | 0.131579 | 0.315789 | 0.289474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e6c10361932e56cd7f9595e39797a7057b664a8f | 1,623 | py | Python | src/djangoreactredux/djrenv/lib/python3.5/site-packages/django_rest_logger/log.py | m2jobe/c_x | ba914449a9a85d82703895fc884733ca20454034 | [
"MIT"
] | null | null | null | src/djangoreactredux/djrenv/lib/python3.5/site-packages/django_rest_logger/log.py | m2jobe/c_x | ba914449a9a85d82703895fc884733ca20454034 | [
"MIT"
] | null | null | null | src/djangoreactredux/djrenv/lib/python3.5/site-packages/django_rest_logger/log.py | m2jobe/c_x | ba914449a9a85d82703895fc884733ca20454034 | [
"MIT"
] | null | null | null | import logging
import sys
from django.conf import settings
def exception():
"""
Log an exception during execution.
This method should be used whenever an user wants to log a generic exception that is not
properly managed.
:param exception:
:return:
"""
logger = logging.getLogger(set... | 21.932432 | 92 | 0.692545 | 200 | 1,623 | 5.57 | 0.34 | 0.044883 | 0.068223 | 0.089767 | 0.507181 | 0.397666 | 0.287253 | 0.220826 | 0.220826 | 0.220826 | 0 | 0.00241 | 0.232902 | 1,623 | 73 | 93 | 22.232877 | 0.892369 | 0.516944 | 0 | 0 | 0 | 0 | 0.024845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e6c1f1c6b093a0196f4f419680e6b613ed8b86a9 | 3,271 | py | Python | src/ros/src/ros_homebot_teleop/nodes/mjpeg_streamer.py | chrisspen/homebot | cd1a5a2bddcb90d50a00e67b94297942827fbc61 | [
"MIT"
] | 8 | 2017-11-19T01:42:59.000Z | 2021-02-08T09:18:58.000Z | src/ros/src/ros_homebot_teleop/nodes/mjpeg_streamer.py | chrisspen/homebot | cd1a5a2bddcb90d50a00e67b94297942827fbc61 | [
"MIT"
] | 24 | 2017-02-14T16:50:02.000Z | 2017-06-07T18:38:20.000Z | src/ros/src/ros_homebot_teleop/nodes/mjpeg_streamer.py | chrisspen/homebot | cd1a5a2bddcb90d50a00e67b94297942827fbc61 | [
"MIT"
] | 6 | 2017-05-17T03:07:05.000Z | 2019-11-14T09:33:06.000Z | #!/usr/bin/env python
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import time
from Queue import Queue, Empty
import rospy
from sensor_msgs.msg import CompressedImage
incoming_data = Queue(maxsize=1)
running = True
node = None
capture = False
class CamHandler(BaseHTTPRequestHandler):
def do_GET... | 32.386139 | 99 | 0.521859 | 308 | 3,271 | 5.412338 | 0.402597 | 0.028794 | 0.041992 | 0.05039 | 0.15177 | 0.086383 | 0.052789 | 0.052789 | 0.052789 | 0 | 0 | 0.006382 | 0.377255 | 3,271 | 100 | 100 | 32.71 | 0.811978 | 0.184042 | 0 | 0.246377 | 0 | 0 | 0.120091 | 0.037387 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072464 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e6c20a68d0e4c2832f9eeecf969fafbdf4c18d42 | 428 | py | Python | setup.py | GeoCat/bridge-metadata | 095f40631cbd6835303545075b1168863dd092e5 | [
"MIT"
] | 2 | 2021-06-22T00:53:29.000Z | 2021-09-29T14:52:52.000Z | setup.py | GeoCat/bridge-metadata | 095f40631cbd6835303545075b1168863dd092e5 | [
"MIT"
] | 13 | 2020-05-19T21:17:52.000Z | 2022-03-10T16:48:13.000Z | setup.py | GeoCat/bridge-metadata | 095f40631cbd6835303545075b1168863dd092e5 | [
"MIT"
] | 2 | 2021-01-13T08:56:09.000Z | 2021-10-31T20:27:33.000Z | import os
from setuptools import setup
setup(
name="bridgemetadata",
version="0.1",
author="GeoCat",
author_email="volaya@geocat.net",
description="A library to convert between different GIS metadata formats",
license="MIT",
keywords="GeoCat",
url="",
packages=["bridgemetadata"],
... | 25.176471 | 78 | 0.691589 | 48 | 428 | 6.0625 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008451 | 0.170561 | 428 | 16 | 79 | 26.75 | 0.811268 | 0 | 0 | 0 | 0 | 0 | 0.397196 | 0.077103 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.133333 | 0 | 0.133333 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.