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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c0625e8a4e69329de4d15cbb6fb4a15e6d3d78e8 | 378 | py | Python | test-asyncio.py | kerberosdelhades/micropython | 78e2e37d35e4536da55c58f7092fe873fec64894 | [
"MIT"
] | null | null | null | test-asyncio.py | kerberosdelhades/micropython | 78e2e37d35e4536da55c58f7092fe873fec64894 | [
"MIT"
] | null | null | null | test-asyncio.py | kerberosdelhades/micropython | 78e2e37d35e4536da55c58f7092fe873fec64894 | [
"MIT"
] | null | null | null | import uasyncio as asyncio
async def odd():
count = 0
while True:
print(count)
count += 2
await asyncio.sleep(0.5)
async def even():
count = 1
while True:
print(count)
count += 2
await asyncio.sleep(0.5)
loop = asyncio.get_event_loop()
loop.crea... | 18.9 | 32 | 0.589947 | 52 | 378 | 4.192308 | 0.480769 | 0.073395 | 0.12844 | 0.174312 | 0.40367 | 0.40367 | 0.40367 | 0.40367 | 0.40367 | 0.40367 | 0 | 0.030075 | 0.296296 | 378 | 20 | 33 | 18.9 | 0.789474 | 0 | 0 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.117647 | 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 |
c0632a603e90edea0b7f7f43e3697c6676035932 | 1,169 | py | Python | api/prediction/views.py | pchico83/flowers | 99376fca21a108e6c7fb9afa660ed3e8583314c9 | [
"Apache-2.0"
] | null | null | null | api/prediction/views.py | pchico83/flowers | 99376fca21a108e6c7fb9afa660ed3e8583314c9 | [
"Apache-2.0"
] | 6 | 2021-06-10T20:43:42.000Z | 2022-02-27T14:11:17.000Z | api/prediction/views.py | Youngestdev/flowers | 99376fca21a108e6c7fb9afa660ed3e8583314c9 | [
"Apache-2.0"
] | 1 | 2021-04-21T13:41:32.000Z | 2021-04-21T13:41:32.000Z | from rest_framework import status
from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework.authentication import TokenAuthentication
from rest_framework.permissions import IsAuthenticated
from prediction.apps import Predic... | 36.53125 | 75 | 0.706587 | 146 | 1,169 | 5.486301 | 0.458904 | 0.059925 | 0.127341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009751 | 0.210436 | 1,169 | 32 | 76 | 36.53125 | 0.858072 | 0.065868 | 0 | 0 | 0 | 0 | 0.028466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.307692 | 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 |
c068cb26283295f5fbd42eb23de5f8a6725c13b9 | 1,722 | py | Python | CS5200-Database-Management-System/Final-Project/app/__init__.py | tjyiiuan/Graduate-Courses | 7f8b018dc92431d8f054a38e1a7fd2c284e1cce0 | [
"MIT"
] | null | null | null | CS5200-Database-Management-System/Final-Project/app/__init__.py | tjyiiuan/Graduate-Courses | 7f8b018dc92431d8f054a38e1a7fd2c284e1cce0 | [
"MIT"
] | null | null | null | CS5200-Database-Management-System/Final-Project/app/__init__.py | tjyiiuan/Graduate-Courses | 7f8b018dc92431d8f054a38e1a7fd2c284e1cce0 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_babel import Babel
from flask_sqlalchemy import SQLAlchemy
from flask_mail import Mail
from flask_login import LoginManager
from flask_pagedown import PageDown
from flask_moment import Moment
from flask_whooshee import Whooshee
from config import config
babel = Babel()
db = SQLAlche... | 31.309091 | 75 | 0.764808 | 241 | 1,722 | 5.219917 | 0.186722 | 0.064388 | 0.055644 | 0.022258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005517 | 0.157956 | 1,722 | 54 | 76 | 31.888889 | 0.862069 | 0.019164 | 0 | 0 | 0 | 0 | 0.040901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.386364 | 0 | 0.431818 | 0.318182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c069bf72499e350e0670b3b653519b780c027db3 | 10,069 | py | Python | scripts/create_fluseverity_figs_v5/evaluate_state_early_warning_v5.py | eclee25/flu-SDI-exploratory-age | 2f5a4d97b84d2116e179e85fe334edf4556aa946 | [
"MIT"
] | 3 | 2018-03-29T23:02:43.000Z | 2020-08-10T12:01:50.000Z | scripts/create_fluseverity_figs_v5/evaluate_state_early_warning_v5.py | eclee25/flu-SDI-exploratory-age | 2f5a4d97b84d2116e179e85fe334edf4556aa946 | [
"MIT"
] | null | null | null | scripts/create_fluseverity_figs_v5/evaluate_state_early_warning_v5.py | eclee25/flu-SDI-exploratory-age | 2f5a4d97b84d2116e179e85fe334edf4556aa946 | [
"MIT"
] | null | null | null | #!/usr/bin/python
##############################################
###Python template
###Author: Elizabeth Lee
###Date: 11/1/14
###Function: What is the distribution of state early warnings that match national classifications across the 2001-02 through 2008-09 seasons (state level peak based retro classification)?
# Wha... | 46.400922 | 209 | 0.726686 | 1,676 | 10,069 | 4.173031 | 0.146181 | 0.015871 | 0.026308 | 0.026022 | 0.58636 | 0.546611 | 0.472548 | 0.418788 | 0.389906 | 0.331999 | 0 | 0.024036 | 0.144702 | 10,069 | 217 | 210 | 46.400922 | 0.788086 | 0.492005 | 0 | 0.148936 | 0 | 0.031915 | 0.223114 | 0.111442 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042553 | null | null | 0.148936 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c06a15eb2facb75d7b14d90ac018e8ec61997e93 | 515 | py | Python | rent/accounts/urls.py | ahmedsadman/house-rent-service | b2054f67e61e81153b8b2d78613b37e296d4e863 | [
"MIT"
] | 1 | 2019-09-11T10:39:59.000Z | 2019-09-11T10:39:59.000Z | rent/accounts/urls.py | ahmedsadman/house-rent-service | b2054f67e61e81153b8b2d78613b37e296d4e863 | [
"MIT"
] | null | null | null | rent/accounts/urls.py | ahmedsadman/house-rent-service | b2054f67e61e81153b8b2d78613b37e296d4e863 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from django.contrib.auth import views as auth_views
from . import views
from . import forms
app_name = 'accounts'
urlpatterns = [
url(r'login/$', auth_views.LoginView.as_view(
template_name='accounts/login.html', authentication_form=forms.CustomAuthForm), name='login'),
... | 36.785714 | 102 | 0.718447 | 71 | 515 | 5.070423 | 0.408451 | 0.044444 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124272 | 515 | 14 | 103 | 36.785714 | 0.798226 | 0 | 0 | 0 | 0 | 0 | 0.168605 | 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 |
fbe875ff910b1d2ef7a964179616c4980d6d29fb | 3,791 | py | Python | components/settings_dialog.py | eSentire/kafka-dashboard | 7c3d6e8814c3e1cd965f74beeb7f5e171b6d7bcb | [
"MIT"
] | 1 | 2018-08-09T10:38:26.000Z | 2018-08-09T10:38:26.000Z | components/settings_dialog.py | eSentire/kafka-dashboard | 7c3d6e8814c3e1cd965f74beeb7f5e171b6d7bcb | [
"MIT"
] | 1 | 2017-07-13T13:56:10.000Z | 2017-07-13T13:56:10.000Z | components/settings_dialog.py | eSentire/kafka-dashboard | 7c3d6e8814c3e1cd965f74beeb7f5e171b6d7bcb | [
"MIT"
] | 3 | 2018-01-19T06:17:08.000Z | 2021-11-18T04:55:17.000Z | import configparser
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
class SettingsDialog(Gtk.Dialog):
def __init__(self, parent, config_file):
buttons = (Gtk.STOCK_OK, Gtk.ResponseType.OK)
Gtk.Dialog.__init__(self, "Settings", parent, 0, buttons)
# Load defaults f... | 39.082474 | 95 | 0.617515 | 484 | 3,791 | 4.57438 | 0.21281 | 0.067751 | 0.074526 | 0.029359 | 0.348238 | 0.261066 | 0.20009 | 0.14589 | 0.107949 | 0.107949 | 0 | 0.019353 | 0.25033 | 3,791 | 96 | 96 | 39.489583 | 0.759676 | 0.026906 | 0 | 0.1875 | 0 | 0 | 0.109604 | 0 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.0375 | false | 0 | 0.0375 | 0.0125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fbeadca335d3eaef9ecb13a3810cdb206cf0db64 | 2,178 | py | Python | src/syft/core/common/serde/serialize.py | godormad/PySyft | fcb3374b6318dcccf377175fb8db6f70e9e1d1e3 | [
"Apache-2.0"
] | null | null | null | src/syft/core/common/serde/serialize.py | godormad/PySyft | fcb3374b6318dcccf377175fb8db6f70e9e1d1e3 | [
"Apache-2.0"
] | null | null | null | src/syft/core/common/serde/serialize.py | godormad/PySyft | fcb3374b6318dcccf377175fb8db6f70e9e1d1e3 | [
"Apache-2.0"
] | null | null | null | # stdlib
from typing import Union
# third party
from google.protobuf.message import Message
# syft relative
from ....logger import traceback_and_raise
from .serializable import Serializable
def _serialize(
obj: object,
to_proto: bool = True,
to_bytes: bool = False,
) -> Union[str, bytes, Message]:
"... | 35.129032 | 87 | 0.703857 | 309 | 2,178 | 4.841424 | 0.38835 | 0.06016 | 0.046123 | 0.026738 | 0.187166 | 0.139037 | 0.139037 | 0.090909 | 0.046791 | 0.046791 | 0 | 0 | 0.232782 | 2,178 | 61 | 88 | 35.704918 | 0.895272 | 0.493572 | 0 | 0.16 | 0 | 0 | 0.136677 | 0.049164 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.04 | false | 0 | 0.16 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fbf0b8ea7d45cbf53a195b9ff7c87df7a14a3459 | 2,849 | py | Python | 232-implement-queue-using-stacks.py | mvj3/leetcode | 3111199beeaefbb3a74173e783ed21c9e53ab203 | [
"MIT"
] | null | null | null | 232-implement-queue-using-stacks.py | mvj3/leetcode | 3111199beeaefbb3a74173e783ed21c9e53ab203 | [
"MIT"
] | null | null | null | 232-implement-queue-using-stacks.py | mvj3/leetcode | 3111199beeaefbb3a74173e783ed21c9e53ab203 | [
"MIT"
] | null | null | null | """
Question:
Implement Queue using Stacks
Implement the following operations of a queue using stacks.
push(x) -- Push element x to the back of queue.
pop() -- Removes the element from in front of queue.
peek() -- Get the front element.
empty() -- Return whether the queue is empty.
Notes:... | 26.137615 | 196 | 0.621622 | 413 | 2,849 | 4.215496 | 0.348668 | 0.032165 | 0.052269 | 0.032165 | 0.170017 | 0.094199 | 0.094199 | 0 | 0 | 0 | 0 | 0.012195 | 0.280449 | 2,849 | 108 | 197 | 26.37963 | 0.837073 | 0.479115 | 0 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 1 | 0.23913 | false | 0 | 0 | 0.086957 | 0.456522 | 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 |
fbf33d2f14659d79fca66142618d4884276c7813 | 2,267 | py | Python | ASR/infer_datalayers.py | IQTLabs/VOiCES_Toolkit | 722172ffda014e1a9e172869e3ae8c1ab03c33f3 | [
"Apache-2.0"
] | 1 | 2020-06-22T15:00:18.000Z | 2020-06-22T15:00:18.000Z | ASR/infer_datalayers.py | Lab41/VOiCES_Toolkit | 722172ffda014e1a9e172869e3ae8c1ab03c33f3 | [
"Apache-2.0"
] | null | null | null | ASR/infer_datalayers.py | Lab41/VOiCES_Toolkit | 722172ffda014e1a9e172869e3ae8c1ab03c33f3 | [
"Apache-2.0"
] | 2 | 2021-03-27T03:21:06.000Z | 2021-07-17T02:14:20.000Z | import nemo
import nemo_asr
from nemo_asr.helpers import post_process_predictions
import numpy as np
from nemo_asr.parts.features import WaveformFeaturizer
from nemo.backends.pytorch.nm import DataLayerNM
from nemo.core.neural_types import *
import librosa
import pandas as pd
import torch
from ruamel.yaml import YAML
i... | 28.696203 | 79 | 0.632554 | 283 | 2,267 | 4.876325 | 0.424028 | 0.050725 | 0.043478 | 0.030435 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004969 | 0.28981 | 2,267 | 78 | 80 | 29.064103 | 0.852174 | 0.200706 | 0 | 0.12 | 0 | 0 | 0.014109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.24 | 0.08 | 0.54 | 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 |
fbf4874750258056faef6412f690422587b253c6 | 3,538 | py | Python | lib/tests/test_tools.py | anujjamwal/sushi | 2a941dc65a9c6343b497ba06e6290b0a63c32a45 | [
"MIT"
] | null | null | null | lib/tests/test_tools.py | anujjamwal/sushi | 2a941dc65a9c6343b497ba06e6290b0a63c32a45 | [
"MIT"
] | null | null | null | lib/tests/test_tools.py | anujjamwal/sushi | 2a941dc65a9c6343b497ba06e6290b0a63c32a45 | [
"MIT"
] | null | null | null | import unittest
from multiprocessing import Process
from threading import Thread
from lib.sushi.tools import HttpMethod
from lib.sushi.tools.utils import Query
from ..sushi.tools import parameter, expose, application
def pi():
return 3.1415
def square(x):
return x * x
def pow(x, y):
return pow(x, y)
... | 31.589286 | 90 | 0.67411 | 451 | 3,538 | 5.144124 | 0.208426 | 0.096552 | 0.087931 | 0.038793 | 0.615086 | 0.498276 | 0.434483 | 0.356897 | 0.339655 | 0.301724 | 0 | 0.007679 | 0.19022 | 3,538 | 111 | 91 | 31.873874 | 0.802094 | 0 | 0 | 0.227848 | 0 | 0 | 0.035896 | 0 | 0 | 0 | 0 | 0 | 0.316456 | 1 | 0.21519 | false | 0 | 0.101266 | 0.050633 | 0.43038 | 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 |
fbf4c76c0d21350f4236c160e5facbad0b2adfe6 | 2,971 | py | Python | agpy/fits_overlap.py | hessammehr/agpy | a9436f8e5b9210ef8a86d03d0fd94f2d4e6212db | [
"MIT"
] | 16 | 2015-05-08T11:14:26.000Z | 2021-11-19T19:05:16.000Z | agpy/fits_overlap.py | hessammehr/agpy | a9436f8e5b9210ef8a86d03d0fd94f2d4e6212db | [
"MIT"
] | 3 | 2016-05-12T16:27:14.000Z | 2020-12-27T01:14:24.000Z | agpy/fits_overlap.py | hessammehr/agpy | a9436f8e5b9210ef8a86d03d0fd94f2d4e6212db | [
"MIT"
] | 19 | 2015-03-30T22:34:14.000Z | 2020-11-25T23:29:53.000Z | import numpy as np
try:
import astropy.io.fits as pyfits
import astropy.wcs as pywcs
except ImportError:
import pyfits
import pywcs
def fits_overlap(file1,file2):
"""
Create a header containing the exact overlap region between two .fits files
Does NOT check to make sure the FITS files are ... | 30.628866 | 137 | 0.63413 | 417 | 2,971 | 4.46283 | 0.297362 | 0.058033 | 0.017732 | 0.024718 | 0.247179 | 0.231059 | 0.231059 | 0.20849 | 0.145083 | 0.145083 | 0 | 0.064901 | 0.23763 | 2,971 | 96 | 138 | 30.947917 | 0.756733 | 0.034668 | 0 | 0.070175 | 0 | 0 | 0.039437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | 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 |
fbf5fe106a145b3b923e9faf9b5dd307651b7a73 | 1,061 | py | Python | promgen/migrations/0011_notifier_counts.py | kackey0-1/promgen | 8fb7b65c8a814429a0b5f484bfec931df76c5d83 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | 913 | 2016-08-02T03:06:09.000Z | 2022-03-29T17:35:26.000Z | promgen/migrations/0011_notifier_counts.py | kackey0-1/promgen | 8fb7b65c8a814429a0b5f484bfec931df76c5d83 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | 299 | 2016-08-08T02:48:02.000Z | 2022-03-31T01:01:15.000Z | promgen/migrations/0011_notifier_counts.py | kackey0-1/promgen | 8fb7b65c8a814429a0b5f484bfec931df76c5d83 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | 152 | 2016-08-06T08:23:15.000Z | 2022-02-28T09:17:12.000Z | # Generated by Django 2.2.4 on 2019-11-28 02:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('promgen', '0010_app_label_migration'),
]
operations = [
migrations.AddField(
model_name='alert'... | 31.205882 | 114 | 0.586239 | 103 | 1,061 | 5.932039 | 0.572816 | 0.03928 | 0.045827 | 0.072013 | 0.278232 | 0.278232 | 0.176759 | 0 | 0 | 0 | 0 | 0.027704 | 0.28558 | 1,061 | 33 | 115 | 32.151515 | 0.778364 | 0.042413 | 0 | 0.333333 | 1 | 0 | 0.106509 | 0.023669 | 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 |
fbf7d7bbb0028b7e6fcb0959c8a77a77e17b3793 | 360 | py | Python | examples/initialization_schemes/gaussian.py | uaca/deepy | 090fbad22a08a809b12951cd0d4984f5bd432698 | [
"MIT"
] | 260 | 2015-05-16T07:58:29.000Z | 2016-01-07T09:10:47.000Z | examples/initialization_schemes/gaussian.py | uaca/deepy | 090fbad22a08a809b12951cd0d4984f5bd432698 | [
"MIT"
] | 20 | 2015-04-21T01:46:46.000Z | 2015-12-20T00:04:23.000Z | examples/initialization_schemes/gaussian.py | zomux/deepy | 090fbad22a08a809b12951cd0d4984f5bd432698 | [
"MIT"
] | 50 | 2016-01-27T03:45:25.000Z | 2020-12-16T07:02:57.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from util import run
from deepy.utils import GaussianInitializer
model_path = os.path.join(os.path.dirname(__file__), "models", "gaussian1.gz")
if __name__ == '__main__':
# I have to set std to be 0.1 in this case, or it will not convergence
run(Gaussia... | 30 | 78 | 0.719444 | 57 | 360 | 4.298246 | 0.754386 | 0.073469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019672 | 0.152778 | 360 | 12 | 79 | 30 | 0.783607 | 0.308333 | 0 | 0 | 0 | 0 | 0.105263 | 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 |
fbf977b7aa6a90f84f9bbe804f96af62304f6550 | 909 | py | Python | svgtools/utils.py | vsoch/svgtools | cbc178e3484ca8ca7474c279a8af7a024eed75a9 | [
"MIT"
] | null | null | null | svgtools/utils.py | vsoch/svgtools | cbc178e3484ca8ca7474c279a8af7a024eed75a9 | [
"MIT"
] | 1 | 2020-04-24T15:11:55.000Z | 2020-04-25T00:10:45.000Z | svgtools/utils.py | vsoch/svgtools | cbc178e3484ca8ca7474c279a8af7a024eed75a9 | [
"MIT"
] | null | null | null | '''
utils.py
part of svgtools package
'''
import json
def save_svg(output_file,svg):
'''save_svg saves svg to file
:param output_file: the output file to save to (*.svg)
:param svg: the svg string to save
'''
print "Saving svg file to %s" %(output_file)
filey = open(output_file,"w")
filey... | 25.971429 | 90 | 0.675468 | 138 | 909 | 4.289855 | 0.384058 | 0.152027 | 0.037162 | 0.064189 | 0.077703 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002755 | 0.20132 | 909 | 34 | 91 | 26.735294 | 0.812672 | 0 | 0 | 0.153846 | 0 | 0 | 0.069328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | 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 |
fbfb1ce557b0051c6bfd4fa1ab67f6c2c88526fe | 4,082 | py | Python | src/computer_vision/training/train_daev_model.py | mldiego/Platooning-F1Tenth | ec5eadb137da8428642b3ffd1b8ca31fde4f6dff | [
"MIT"
] | 1 | 2020-09-18T19:08:29.000Z | 2020-09-18T19:08:29.000Z | src/computer_vision/training/train_daev_model.py | mldiego/Platooning-F1Tenth | ec5eadb137da8428642b3ffd1b8ca31fde4f6dff | [
"MIT"
] | null | null | null | src/computer_vision/training/train_daev_model.py | mldiego/Platooning-F1Tenth | ec5eadb137da8428642b3ffd1b8ca31fde4f6dff | [
"MIT"
] | null | null | null | #import the necessary sklearn packages
from sklearn.preprocessing import LabelBinarizer
from sklearn.model_selection import train_test_split
from sklearn.metrics import classification_report
# import sys so we can use packages outside of this folder in
# either python 2 or python 3
import sys
#insert parent directory... | 33.186992 | 205 | 0.787604 | 619 | 4,082 | 5.096931 | 0.408724 | 0.022821 | 0.025357 | 0.031696 | 0.116006 | 0.058954 | 0.058954 | 0.027892 | 0.027892 | 0.027892 | 0 | 0.027049 | 0.103381 | 4,082 | 123 | 206 | 33.186992 | 0.834973 | 0.306712 | 0 | 0 | 0 | 0 | 0.096394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015152 | false | 0 | 0.30303 | 0 | 0.333333 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
fbfbe68cfb854aa022a19fc69e6ed571fcc55844 | 593 | py | Python | mcs/apps/dashboard/models.py | ntk148v/scalable-cloud-storage | 1d4d3ad5a77193d6899fd612d0d07a7d1609087a | [
"BSD-3-Clause"
] | null | null | null | mcs/apps/dashboard/models.py | ntk148v/scalable-cloud-storage | 1d4d3ad5a77193d6899fd612d0d07a7d1609087a | [
"BSD-3-Clause"
] | null | null | null | mcs/apps/dashboard/models.py | ntk148v/scalable-cloud-storage | 1d4d3ad5a77193d6899fd612d0d07a7d1609087a | [
"BSD-3-Clause"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
class CloudRing(models.Model):
class Meta:
db_table = 'cloudring'
app_label = 'dashboard'
identifier = models.CharField(max_length=50)
USERNAME_FIELD = 'identifier'
class CloudNode(models.Model):
class Meta:
... | 21.178571 | 65 | 0.693086 | 66 | 593 | 6.015152 | 0.484848 | 0.055416 | 0.080605 | 0.100756 | 0.403023 | 0.403023 | 0.267003 | 0.267003 | 0.267003 | 0 | 0 | 0.008602 | 0.215852 | 593 | 27 | 66 | 21.962963 | 0.845161 | 0 | 0 | 0.470588 | 0 | 0 | 0.094435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.764706 | 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 |
fbfcb4776b81dd56b28b672b0aef92bb6d3f4609 | 10,596 | py | Python | testgrid/conformance/upload_e2e.py | Noahhoetger2001/test-infra | 207d3f61294114fff2b02ed205f9d8fc30d36db8 | [
"Apache-2.0"
] | 36 | 2018-12-30T07:14:18.000Z | 2022-03-16T02:46:22.000Z | testgrid/conformance/upload_e2e.py | Noahhoetger2001/test-infra | 207d3f61294114fff2b02ed205f9d8fc30d36db8 | [
"Apache-2.0"
] | 225 | 2017-10-24T15:09:45.000Z | 2019-03-11T14:33:55.000Z | testgrid/conformance/upload_e2e.py | Noahhoetger2001/test-infra | 207d3f61294114fff2b02ed205f9d8fc30d36db8 | [
"Apache-2.0"
] | 14 | 2018-12-30T07:15:02.000Z | 2021-12-07T07:23:07.000Z | #!/usr/bin/env python
# Copyright 2018 The Kubernetes Authors.
#
# 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 appli... | 32.703704 | 91 | 0.659872 | 1,454 | 10,596 | 4.69326 | 0.257909 | 0.014947 | 0.003517 | 0.004103 | 0.226846 | 0.17541 | 0.162661 | 0.112544 | 0.112544 | 0.100088 | 0 | 0.008066 | 0.23943 | 10,596 | 323 | 92 | 32.804954 | 0.83869 | 0.246036 | 0 | 0.240223 | 0 | 0.005587 | 0.180829 | 0.021318 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.044693 | 0.055866 | null | null | 0.055866 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2209934051b9fdc3c31ef020caf0545ec2ba5893 | 2,805 | py | Python | byurak/accounts/migrations/0001_initial.py | LikeLion-CAU-9th/Django-fancy-coder | 53c770f4c1891f9076bed8c89d0b942b77e67667 | [
"MIT"
] | null | null | null | byurak/accounts/migrations/0001_initial.py | LikeLion-CAU-9th/Django-fancy-coder | 53c770f4c1891f9076bed8c89d0b942b77e67667 | [
"MIT"
] | 2 | 2021-06-27T16:19:47.000Z | 2021-08-01T16:41:54.000Z | byurak/accounts/migrations/0001_initial.py | LikeLion-CAU-9th/Django-fancy-coder | 53c770f4c1891f9076bed8c89d0b942b77e67667 | [
"MIT"
] | 2 | 2021-08-21T13:32:52.000Z | 2021-12-20T10:12:45.000Z | # Generated by Django 3.2.3 on 2021-05-31 20:05
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.BigAutoField(... | 70.125 | 396 | 0.588235 | 307 | 2,805 | 5.214984 | 0.429967 | 0.056215 | 0.054966 | 0.074953 | 0.452842 | 0.432854 | 0.34416 | 0.34416 | 0.285447 | 0.285447 | 0 | 0.01745 | 0.203209 | 2,805 | 39 | 397 | 71.923077 | 0.698881 | 0.016043 | 0 | 0 | 1 | 0 | 0.276287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.03125 | 0.03125 | 0 | 0.15625 | 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 |
220b5c9e78844e1823eb82d3f9a8c6409f890d05 | 7,340 | py | Python | sqpyte/test/test_tpch.py | hpi-swa-lab/SQPyte | c6f38a5021e791a1d5e492f4d33582cd9727ba71 | [
"MIT"
] | 3 | 2016-07-16T06:37:08.000Z | 2017-07-12T09:49:59.000Z | sqpyte/test/test_tpch.py | hpi-swa-lab/SQPyte | c6f38a5021e791a1d5e492f4d33582cd9727ba71 | [
"MIT"
] | null | null | null | sqpyte/test/test_tpch.py | hpi-swa-lab/SQPyte | c6f38a5021e791a1d5e492f4d33582cd9727ba71 | [
"MIT"
] | null | null | null | from rpython.rtyper.lltypesystem import rffi
from sqpyte.interpreter import SQPyteDB, SQPyteQuery
from sqpyte.capi import CConfig
from sqpyte import capi
import os, sys
tpchdb = os.path.join(os.path.dirname(os.path.abspath(__file__)), "tpch.db")
def test_join():
db = SQPyteDB(tpchdb)
query = db.execute('selec... | 40.10929 | 106 | 0.424387 | 705 | 7,340 | 4.341844 | 0.197163 | 0.027442 | 0.058804 | 0.078406 | 0.651748 | 0.600457 | 0.585756 | 0.512578 | 0.453773 | 0.453773 | 0 | 0.051517 | 0.465804 | 7,340 | 182 | 107 | 40.32967 | 0.729151 | 0 | 0 | 0.545977 | 0 | 0.022989 | 0.297452 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | null | null | 0 | 0.028736 | null | null | 0.011494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
220b75a2f740beab213c588f12e548c1e993eda4 | 1,621 | py | Python | protocols/dataAPI.py | Diapolo10/Grail-0.6 | 3e7b42f105546132f7a6bbe7751a82c9bcc76dd5 | [
"CNRI-Jython"
] | 8 | 2015-02-18T18:50:50.000Z | 2022-03-15T22:21:03.000Z | protocols/dataAPI.py | SimiCode/Grail-Web-Browser | 16b86d3215068d334eacf6153b71a748eed53d3d | [
"CNRI-Jython"
] | null | null | null | protocols/dataAPI.py | SimiCode/Grail-Web-Browser | 16b86d3215068d334eacf6153b71a748eed53d3d | [
"CNRI-Jython"
] | 3 | 2016-04-04T23:54:07.000Z | 2020-10-29T04:25:42.000Z | from Assert import Assert
import nullAPI
import string
class data_access(nullAPI.null_access):
def __init__(self, url, method, params):
if method != "GET":
raise IOError, \
"'data:' scheme does not support the %s method" % method
self.state = nullAPI.META
self... | 29.472727 | 74 | 0.563233 | 195 | 1,621 | 4.54359 | 0.317949 | 0.063205 | 0.090293 | 0.045147 | 0.21219 | 0.112867 | 0.049661 | 0 | 0 | 0 | 0 | 0.015247 | 0.312153 | 1,621 | 54 | 75 | 30.018519 | 0.779372 | 0 | 0 | 0.085106 | 0 | 0 | 0.070944 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 0 | null | null | 0 | 0.085106 | 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 |
220dc5fc8c6909985a9171e73633253f8cd2e2ca | 945 | py | Python | src/Branches/Actions/Action.py | flexiooss/flexio-flow | 47491c7e5b49a02dc859028de0d486edc0014b26 | [
"Apache-2.0"
] | null | null | null | src/Branches/Actions/Action.py | flexiooss/flexio-flow | 47491c7e5b49a02dc859028de0d486edc0014b26 | [
"Apache-2.0"
] | 44 | 2019-04-05T06:08:15.000Z | 2021-09-13T19:37:49.000Z | src/Branches/Actions/Action.py | flexiooss/flexio-flow | 47491c7e5b49a02dc859028de0d486edc0014b26 | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
import abc
from typing import Optional, Dict, Type
from Core.ConfigHandler import ConfigHandler
from Branches.Branches import Branches
from FlexioFlow.Options import Options
from VersionControl.VersionControl import VersionControl
from FlexioFlow.StateHandler import StateHandler
cla... | 32.586207 | 62 | 0.69418 | 92 | 945 | 6.945652 | 0.336957 | 0.065728 | 0.056338 | 0.100156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25291 | 945 | 28 | 63 | 33.75 | 0.905099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.041667 | 0.333333 | 0 | 0.458333 | 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 |
220f37e0c808363102b163a2854a25f2be196547 | 352 | py | Python | papers/CVPR2021-MOSI/impls/__init__.py | huang-ziyuan/EssentialMC2 | 87141df94c1ac8e426ceec071720b97f5b9d3b88 | [
"MIT"
] | 69 | 2021-11-01T11:18:13.000Z | 2022-03-28T04:27:17.000Z | papers/CVPR2021-MOSI/impls/__init__.py | huang-ziyuan/EssentialMC2 | 87141df94c1ac8e426ceec071720b97f5b9d3b88 | [
"MIT"
] | 6 | 2021-11-01T09:28:13.000Z | 2022-02-11T09:49:58.000Z | papers/CVPR2021-MOSI/impls/__init__.py | huang-ziyuan/EssentialMC2 | 87141df94c1ac8e426ceec071720b97f5b9d3b88 | [
"MIT"
] | 16 | 2021-11-11T06:26:18.000Z | 2022-03-20T13:32:15.000Z | # Copyright 2021 Alibaba Group Holding Limited. All Rights Reserved.
from .models import MoSIHead, MoSINet
from .solvers.MoSISolver import MoSISolver
from .transforms.mosi_generator import MoSIGenerator
from .transforms.video import ColorJitterVideo
__all__ = [
"MoSIGenerator", "ColorJitterVideo",
"MoSISolver... | 27.076923 | 68 | 0.775568 | 36 | 352 | 7.444444 | 0.611111 | 0.11194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0.142045 | 352 | 12 | 69 | 29.333333 | 0.874172 | 0.1875 | 0 | 0 | 0 | 0 | 0.190141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
22104fb45944fec3a2b8f0fe443d7c50c3c10a24 | 530 | py | Python | engine/generator.py | stanfortonski/Perlin-Noise-3D-Voxel-Generator | f06b0329c948848b22b5e3c04978e95ce71f5ab0 | [
"MIT"
] | 27 | 2020-05-15T23:24:17.000Z | 2021-11-22T01:23:27.000Z | engine/generator.py | stanfortonski/Perlin-Noise-3D-Voxel-Generator | f06b0329c948848b22b5e3c04978e95ce71f5ab0 | [
"MIT"
] | null | null | null | engine/generator.py | stanfortonski/Perlin-Noise-3D-Voxel-Generator | f06b0329c948848b22b5e3c04978e95ce71f5ab0 | [
"MIT"
] | null | null | null | import glm, random
def generateVoxelPositions(width, height, depth):
blockSize = 1.0
noiseScale = 20.0
amplitude = 20.0
offset = random.randrange(0, 1000000)
data = []
for x in range(width):
for y in range(height):
for z in range(depth):
noise = glm.perlin(gl... | 35.333333 | 125 | 0.592453 | 67 | 530 | 4.686567 | 0.462687 | 0.066879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050938 | 0.296226 | 530 | 15 | 126 | 35.333333 | 0.790885 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2213cdf604a439345bf2a23148ec1147157f74fb | 408 | py | Python | setup.py | Ujjwalgutta/Project_PhotonCommerce | 2b654b95f024a80de71e5c6bca2d4b68d82c130e | [
"MIT"
] | null | null | null | setup.py | Ujjwalgutta/Project_PhotonCommerce | 2b654b95f024a80de71e5c6bca2d4b68d82c130e | [
"MIT"
] | null | null | null | setup.py | Ujjwalgutta/Project_PhotonCommerce | 2b654b95f024a80de71e5c6bca2d4b68d82c130e | [
"MIT"
] | null | null | null | from setuptools import setup
with open("README.MD", "r") as readme_file:
readme = readme_file.read()
setup(name = "iR-Lens",
author = "Ujjwal Gutta",
author_email = "ugutta@asu.edu",
description = "Extract Information from Receipts and Invoices",
long_description = readme
... | 29.142857 | 71 | 0.639706 | 48 | 408 | 5.333333 | 0.75 | 0.078125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232843 | 408 | 13 | 72 | 31.384615 | 0.817891 | 0 | 0 | 0 | 0 | 0 | 0.343137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2214939e28443f08587d30b78d672b94e47ad59a | 1,539 | py | Python | easy_subscription/models.py | rondebu/django-easy-subscription | 630ba13dad5c23133cbfdd3ae8b2e64f0cde7b3a | [
"MIT"
] | null | null | null | easy_subscription/models.py | rondebu/django-easy-subscription | 630ba13dad5c23133cbfdd3ae8b2e64f0cde7b3a | [
"MIT"
] | null | null | null | easy_subscription/models.py | rondebu/django-easy-subscription | 630ba13dad5c23133cbfdd3ae8b2e64f0cde7b3a | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import gettext_lazy as _
from django_countries.fields import CountryField
from .integrations import get_integration
class Subscriber(models.Model):
first_name = models.CharField(_('first name'), max_length=25)
last_name = models.CharField(_('last name... | 36.642857 | 79 | 0.638077 | 158 | 1,539 | 6 | 0.398734 | 0.031646 | 0.040084 | 0.031646 | 0.090717 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00431 | 0.246264 | 1,539 | 41 | 80 | 37.536585 | 0.812931 | 0 | 0 | 0.114286 | 0 | 0 | 0.078622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.114286 | 0.028571 | 0.514286 | 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 |
221564bd82dc3bdb58d0c0c536a0316999f2ae05 | 1,042 | py | Python | setup.py | TH3-MA3STRO/ig-tools | 48298ab7d0cdeb3ceb3858d71667d1cd9b703c22 | [
"MIT"
] | 5 | 2019-08-07T05:15:35.000Z | 2020-03-22T14:39:03.000Z | setup.py | TH3-MA3STRO/ig-tools | 48298ab7d0cdeb3ceb3858d71667d1cd9b703c22 | [
"MIT"
] | null | null | null | setup.py | TH3-MA3STRO/ig-tools | 48298ab7d0cdeb3ceb3858d71667d1cd9b703c22 | [
"MIT"
] | null | null | null | from cli import que1, que2
import glob
import json
from tools import tag_based, profile, execute
import pyautogui
ata = glob.glob('./*.json')
if './configs.json' not in ata:
cn = pyautogui.alert("Configs doesn't exists! Please create it first!")
uname = pyautogui.prompt("Enter Username")
password = pyaut... | 26.05 | 75 | 0.620921 | 150 | 1,042 | 4.193333 | 0.413333 | 0.039746 | 0.063593 | 0.060413 | 0.063593 | 0.063593 | 0.063593 | 0.063593 | 0 | 0 | 0 | 0.008294 | 0.190019 | 1,042 | 39 | 76 | 26.717949 | 0.736967 | 0 | 0 | 0.055556 | 0 | 0 | 0.272553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
221817ade8d20c597d3ccaebefa3600db24fccfa | 1,810 | py | Python | pyaivchat.py | KamiCreed/pyaivchat | ad269084c70967dae51a97c3126bf4b7fd21aeee | [
"MIT"
] | null | null | null | pyaivchat.py | KamiCreed/pyaivchat | ad269084c70967dae51a97c3126bf4b7fd21aeee | [
"MIT"
] | 1 | 2021-12-26T13:06:57.000Z | 2021-12-29T03:23:17.000Z | pyaivchat.py | KamiCreed/pyaivchat | ad269084c70967dae51a97c3126bf4b7fd21aeee | [
"MIT"
] | null | null | null | import os
import argparse
from multiprocessing import Lock, Process, Queue
import subprocess
import traceback
from ytauth import YtAuth
from ytchat import YtChat
from twitchchat import TwitchChat
SECRET_FILE = 'client_secret.json'
def start_yt(prefix, vid_id, tts_queue, ytauth):
# TODO: Search for YouTube events... | 25.492958 | 99 | 0.654144 | 240 | 1,810 | 4.704167 | 0.354167 | 0.085031 | 0.038973 | 0.028344 | 0.096546 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239227 | 1,810 | 70 | 100 | 25.857143 | 0.819898 | 0.201657 | 0 | 0 | 0 | 0 | 0.066946 | 0 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.086957 | false | 0 | 0.173913 | 0 | 0.26087 | 0.065217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
221e7a0ca55354fe41271a354904f07efc555f16 | 4,480 | py | Python | scripts/convert_crime_csv_to_parquet.py | RandomFractals/ChicagoCrimes | 379723cc8463d6122931fa37209ece0422432175 | [
"Apache-2.0"
] | 14 | 2017-07-12T17:54:37.000Z | 2021-06-19T04:20:58.000Z | scripts/convert_crime_csv_to_parquet.py | RandomFractals/ChicagoCrimes | 379723cc8463d6122931fa37209ece0422432175 | [
"Apache-2.0"
] | 1 | 2020-10-16T01:20:03.000Z | 2020-10-16T01:20:03.000Z | scripts/convert_crime_csv_to_parquet.py | RandomFractals/ChicagoCrimes | 379723cc8463d6122931fa37209ece0422432175 | [
"Apache-2.0"
] | 6 | 2018-08-16T21:50:37.000Z | 2022-03-29T22:46:30.000Z | # coding: utf-8
import numpy as np
import pandas as pd
import dask.dataframe as dd
from datetime import datetime
#---------------------------- Print Functions --------------------------------------------
# prints a line separator
def print_line():
print('------------------------------------------------------------... | 32.230216 | 129 | 0.674107 | 604 | 4,480 | 4.877483 | 0.339404 | 0.03055 | 0.028513 | 0.020367 | 0.118126 | 0.071283 | 0.052274 | 0.052274 | 0 | 0 | 0 | 0.014049 | 0.126116 | 4,480 | 138 | 130 | 32.463768 | 0.738442 | 0.294866 | 0 | 0.166667 | 0 | 0 | 0.378205 | 0.055449 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.044444 | 0 | 0.111111 | 0.422222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
222f8a7d3b0e2bb8fd364db78a9fa78766140d83 | 718 | py | Python | testing/test_sct_documentation.py | valosekj/spinalcordtoolbox | 266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09 | [
"MIT"
] | 1 | 2020-05-17T00:39:47.000Z | 2020-05-17T00:39:47.000Z | testing/test_sct_documentation.py | valosekj/spinalcordtoolbox | 266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09 | [
"MIT"
] | null | null | null | testing/test_sct_documentation.py | valosekj/spinalcordtoolbox | 266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#########################################################################################
#
# Test function sct_documentation
#
# ---------------------------------------------------------------------------------------
# Copyright (c) 2014 Polytechnique Montreal <www.neuro.polymtl.ca>
# Author: Aug... | 23.933333 | 89 | 0.422006 | 63 | 718 | 4.619048 | 0.730159 | 0.061856 | 0.082474 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020968 | 0.13649 | 718 | 30 | 90 | 23.933333 | 0.448387 | 0.526462 | 0 | 0 | 0 | 0 | 0.128378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22328e61dba8f4e2e49cbcd0ded363b99a982c4e | 1,101 | py | Python | vendor/feedvalidator/demo/src/missingWebPages.py | BenoitZugmeyer/NewsBlur | 8d63f2598fa83245d381933d552ca490d84df526 | [
"MIT"
] | 2 | 2017-08-14T03:40:11.000Z | 2019-06-15T12:28:49.000Z | vendor/feedvalidator/demo/src/missingWebPages.py | BenoitZugmeyer/NewsBlur | 8d63f2598fa83245d381933d552ca490d84df526 | [
"MIT"
] | 7 | 2021-02-08T20:32:31.000Z | 2022-03-11T23:50:47.000Z | vendor/feedvalidator/demo/src/missingWebPages.py | BenoitZugmeyer/NewsBlur | 8d63f2598fa83245d381933d552ca490d84df526 | [
"MIT"
] | 1 | 2020-03-06T07:40:41.000Z | 2020-03-06T07:40:41.000Z | #!/usr/bin/python
"""
$Id: missingWebPages.py 75 2004-03-28 07:48:21Z josephw $
Show any logging events without explanatory web pages
"""
from sys import path, argv, exit
from os.path import isfile
import inspect
import os.path
curdir = os.path.abspath(os.path.dirname(argv[0]))
BASE = os.path.split(curdir)[0]
path... | 20.018182 | 71 | 0.674841 | 165 | 1,101 | 4.4 | 0.466667 | 0.066116 | 0.041322 | 0.038567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027996 | 0.188919 | 1,101 | 54 | 72 | 20.388889 | 0.784994 | 0.036331 | 0 | 0.114286 | 0 | 0 | 0.026596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
223ee1ed80dec0c8204945f7b6d37e1b476ae59d | 401 | py | Python | pyez/load_temp_conf.py | rsmekala/junosautomation | b76b3e8ce34048e3460cb071d0aeef176ab3836f | [
"Apache-2.0"
] | 117 | 2016-08-22T15:52:28.000Z | 2022-01-08T00:53:28.000Z | pyez/load_temp_conf.py | rsmekala/junosautomation | b76b3e8ce34048e3460cb071d0aeef176ab3836f | [
"Apache-2.0"
] | 12 | 2017-10-28T09:44:44.000Z | 2018-11-21T15:12:42.000Z | pyez/load_temp_conf.py | rsmekala/junosautomation | b76b3e8ce34048e3460cb071d0aeef176ab3836f | [
"Apache-2.0"
] | 78 | 2016-08-19T05:35:28.000Z | 2022-03-13T07:16:27.000Z | from jnpr.junos import Device
from jnpr.junos.utils.config import Config
import yaml
dev = Device(host='xxxx', user='demo', password='demo123', gather_facts=False)
dev.open()
data = yaml.load(open('protocol_data.yml'))
cu = Config(dev)
cu.load(template_path='protocol_temp.j2', template_vars=data, format='text')
cu.... | 20.05 | 78 | 0.72818 | 62 | 401 | 4.612903 | 0.612903 | 0.055944 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011204 | 0.109726 | 401 | 19 | 79 | 21.105263 | 0.789916 | 0 | 0 | 0 | 0 | 0 | 0.129676 | 0 | 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 |
22419f0e9f2d6e0251be749ef9d8c10c16185bf9 | 809 | py | Python | config.py | JoyLubega/Glory-Recipes | 9073123beaab494d45f5620752a10f2ef20ab051 | [
"Apache-2.0"
] | null | null | null | config.py | JoyLubega/Glory-Recipes | 9073123beaab494d45f5620752a10f2ef20ab051 | [
"Apache-2.0"
] | 2 | 2019-06-26T11:12:06.000Z | 2021-06-01T23:51:56.000Z | config.py | JoyLubega/Glory-Recipes | 9073123beaab494d45f5620752a10f2ef20ab051 | [
"Apache-2.0"
] | 1 | 2019-07-02T15:16:38.000Z | 2019-07-02T15:16:38.000Z | import os
class MainConfiguration(object):
DEBUG = False
WTF_CSRF_ENABLED = True
SQLALCHEMY_TRACK_MODIFICATIONS = False
SECRET_KEY = "Thi-is-a-secret-key-pliz-change-it"
class TestingEnvironment(MainConfiguration):
DEBUG = True
TESTING = True
SQLALCHEMY_DATABASE_URI = os.getenv('TEST_DAT... | 23.114286 | 60 | 0.745365 | 78 | 809 | 7.525641 | 0.474359 | 0.045997 | 0.081772 | 0.117547 | 0.18569 | 0.136286 | 0.136286 | 0 | 0 | 0 | 0 | 0 | 0.171817 | 809 | 34 | 61 | 23.794118 | 0.876119 | 0 | 0 | 0.291667 | 0 | 0 | 0.150803 | 0.042027 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
224458e6f5b81c79181025baa72ec13810179e70 | 12,073 | py | Python | simple_object_detection/utils/video/sequence.py | RubenEu/simple-object-detection | a1bd201985cf0a403b5535aa021b2889be58cc90 | [
"MIT"
] | null | null | null | simple_object_detection/utils/video/sequence.py | RubenEu/simple-object-detection | a1bd201985cf0a403b5535aa021b2889be58cc90 | [
"MIT"
] | null | null | null | simple_object_detection/utils/video/sequence.py | RubenEu/simple-object-detection | a1bd201985cf0a403b5535aa021b2889be58cc90 | [
"MIT"
] | null | null | null | from typing import List, Tuple, Optional
import cv2
from simple_object_detection.exceptions import SimpleObjectDetectionException
from simple_object_detection.typing import Image, VideoProperties
class StreamSequence:
"""Clase para cargar los frames de una secuencia de vídeo.
Se utiliza la notación de acce... | 39.325733 | 212 | 0.632817 | 1,522 | 12,073 | 4.884363 | 0.236531 | 0.024213 | 0.024213 | 0.020716 | 0.218456 | 0.125235 | 0.110573 | 0.098197 | 0.080038 | 0.027172 | 0 | 0.008032 | 0.288412 | 12,073 | 306 | 213 | 39.454248 | 0.857293 | 0.423838 | 0 | 0.057851 | 0 | 0 | 0.07893 | 0.003383 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.181818 | false | 0 | 0.033058 | 0 | 0.338843 | 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 |
2247fec855b9498adbc953c67fc9b281fd4da6b3 | 4,989 | py | Python | pollbot/models/poll.py | 3wille/ultimate-poll-bot | 7a99659df463a891b20a1ab424665cd84d4242b4 | [
"MIT"
] | null | null | null | pollbot/models/poll.py | 3wille/ultimate-poll-bot | 7a99659df463a891b20a1ab424665cd84d4242b4 | [
"MIT"
] | null | null | null | pollbot/models/poll.py | 3wille/ultimate-poll-bot | 7a99659df463a891b20a1ab424665cd84d4242b4 | [
"MIT"
] | null | null | null | """The sqlalchemy model for a poll."""
from datetime import datetime, timedelta
from sqlalchemy import (
Date,
Column,
func,
ForeignKey,
text,
)
from sqlalchemy.dialects.postgresql import UUID
from sqlalchemy.types import (
BigInteger,
Boolean,
DateTime,
Integer,
String,
)
from s... | 35.382979 | 116 | 0.670074 | 622 | 4,989 | 5.207396 | 0.241158 | 0.064217 | 0.033961 | 0.064217 | 0.297623 | 0.23217 | 0.095709 | 0.06113 | 0.033961 | 0.033961 | 0 | 0.001546 | 0.222089 | 4,989 | 140 | 117 | 35.635714 | 0.833033 | 0.074764 | 0 | 0.039604 | 0 | 0 | 0.052839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079208 | false | 0.029703 | 0.079208 | 0 | 0.534653 | 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 |
224bfaf6868e41366dddd9acde035386d646d189 | 5,469 | py | Python | pygears/typing/array.py | bogdanvuk/pygears | a0b21d445e1d5c89ad66751447b8253536b835ee | [
"MIT"
] | 120 | 2018-04-23T08:29:04.000Z | 2022-03-30T14:41:52.000Z | pygears/typing/array.py | FZP1607152286/pygears | a0b21d445e1d5c89ad66751447b8253536b835ee | [
"MIT"
] | 12 | 2019-07-09T17:12:58.000Z | 2022-03-18T09:05:10.000Z | pygears/typing/array.py | FZP1607152286/pygears | a0b21d445e1d5c89ad66751447b8253536b835ee | [
"MIT"
] | 12 | 2019-05-10T19:42:08.000Z | 2022-03-28T18:26:44.000Z | from .base import EnumerableGenericMeta, typeof, is_type, TemplateArgumentsError
from .base import class_and_instance_method
# TODO: Check why array is specified when no length is specified
class ArrayType(EnumerableGenericMeta):
def __new__(cls, name, bases, namespace, args=None):
cls = super().__new__(... | 27.903061 | 188 | 0.533736 | 705 | 5,469 | 3.960284 | 0.212766 | 0.028653 | 0.016117 | 0.031519 | 0.129298 | 0.020057 | 0 | 0 | 0 | 0 | 0 | 0.014108 | 0.351984 | 5,469 | 195 | 189 | 28.046154 | 0.773702 | 0.142622 | 0 | 0.198413 | 0 | 0.007937 | 0.036463 | 0.005677 | 0 | 0 | 0 | 0.010256 | 0 | 1 | 0.134921 | false | 0 | 0.015873 | 0.039683 | 0.380952 | 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 |
2251f824583430eed20cea1b302965d765bb2dde | 401 | py | Python | zilencer/migrations/0014_cleanup_pushdevicetoken.py | TylerPham2000/zulip | 2e7aaba0dde5517b4a55cb0bd782f009be45e3ba | [
"Apache-2.0"
] | 17,004 | 2015-09-25T18:27:24.000Z | 2022-03-31T22:02:32.000Z | zilencer/migrations/0014_cleanup_pushdevicetoken.py | TylerPham2000/zulip | 2e7aaba0dde5517b4a55cb0bd782f009be45e3ba | [
"Apache-2.0"
] | 20,344 | 2015-09-25T19:02:42.000Z | 2022-03-31T23:54:40.000Z | zilencer/migrations/0014_cleanup_pushdevicetoken.py | TylerPham2000/zulip | 2e7aaba0dde5517b4a55cb0bd782f009be45e3ba | [
"Apache-2.0"
] | 7,271 | 2015-09-25T18:48:39.000Z | 2022-03-31T21:06:11.000Z | # Generated by Django 1.11.14 on 2018-10-10 22:52
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("zilencer", "0013_remove_customer_billing_user"),
]
operations = [
migrations.AlterUniqueTogether(
name="remotepushdevicetoken",
... | 22.277778 | 69 | 0.625935 | 40 | 401 | 6.125 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0.249377 | 401 | 17 | 70 | 23.588235 | 0.744186 | 0.117207 | 0 | 0 | 1 | 0 | 0.238636 | 0.153409 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2255b014acb3933be44024e688f15db9a1ce7619 | 1,563 | py | Python | robin_stocks/models/account.py | waaronmorris/robin_stocks | e5c3d7a1b0ad57dff49a12c6ec04fdc3fe432223 | [
"MIT"
] | null | null | null | robin_stocks/models/account.py | waaronmorris/robin_stocks | e5c3d7a1b0ad57dff49a12c6ec04fdc3fe432223 | [
"MIT"
] | null | null | null | robin_stocks/models/account.py | waaronmorris/robin_stocks | e5c3d7a1b0ad57dff49a12c6ec04fdc3fe432223 | [
"MIT"
] | null | null | null | from robin_stocks.authentication import login
from robin_stocks import build_holdings, get_day_trades, get_instrument_by_url, get_instruments_by_symbols
from robin_stocks.models import exceptions
class Instrument(object):
def __init__(self, **info):
for attribute, value in info.items():
se... | 26.05 | 112 | 0.658989 | 185 | 1,563 | 5.2 | 0.313514 | 0.029106 | 0.045738 | 0.037422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004244 | 0.246321 | 1,563 | 59 | 113 | 26.491525 | 0.812394 | 0 | 0 | 0.153846 | 0 | 0 | 0.009009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179487 | false | 0.051282 | 0.076923 | 0.025641 | 0.461538 | 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 |
225f064f4a0866fb27c9795a2d822f93d73f195b | 413 | py | Python | scripts/coco_tests/coco_train.py | supernlogn/squeezeDetTL | 473be9c6c9081c6b1bd5622fbed4af6453576895 | [
"MIT"
] | 10 | 2018-11-13T14:18:11.000Z | 2020-04-29T09:35:47.000Z | scripts/coco_tests/coco_train.py | supernlogn/squeezeDetTL | 473be9c6c9081c6b1bd5622fbed4af6453576895 | [
"MIT"
] | 3 | 2018-12-26T06:10:09.000Z | 2021-11-23T22:23:10.000Z | scripts/coco_tests/coco_train.py | supernlogn/squeezeDetTL | 473be9c6c9081c6b1bd5622fbed4af6453576895 | [
"MIT"
] | 1 | 2020-12-08T12:36:43.000Z | 2020-12-08T12:36:43.000Z | import os
import sys
from multiprocessing import Process
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "src"))
cwd = os.getcwd()
from supervisor import supervisor
if __name__ == "__main__":
args = {}
dir_path = os.path.dirname(os.path.abspath(__file__))
args["ext_config... | 27.533333 | 93 | 0.731235 | 59 | 413 | 4.728814 | 0.474576 | 0.129032 | 0.071685 | 0.107527 | 0.136201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108959 | 413 | 15 | 94 | 27.533333 | 0.758152 | 0 | 0 | 0 | 0 | 0 | 0.149758 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
22616ad03f1217c6af341a878205db9c1b2c3975 | 21,003 | py | Python | wb/main/enumerates.py | openvinotoolkit/workbench | 2fc9d1328159161217a47c1a783e474730b250af | [
"Apache-2.0"
] | 23 | 2022-03-17T12:24:09.000Z | 2022-03-31T09:13:30.000Z | wb/main/enumerates.py | openvinotoolkit/workbench | 2fc9d1328159161217a47c1a783e474730b250af | [
"Apache-2.0"
] | 18 | 2022-03-21T08:17:44.000Z | 2022-03-30T12:42:30.000Z | wb/main/enumerates.py | openvinotoolkit/workbench | 2fc9d1328159161217a47c1a783e474730b250af | [
"Apache-2.0"
] | 16 | 2022-03-17T12:24:14.000Z | 2022-03-31T12:15:12.000Z | """
OpenVINO DL Workbench
Enumerates classes
Copyright (c) 2020 Intel Corporation
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 requ... | 30.527616 | 118 | 0.725039 | 2,174 | 21,003 | 6.659614 | 0.227691 | 0.025418 | 0.009324 | 0.010361 | 0.171985 | 0.142078 | 0.091933 | 0.080743 | 0.06092 | 0.049178 | 0 | 0.013981 | 0.192925 | 21,003 | 687 | 119 | 30.572052 | 0.840127 | 0.047184 | 0 | 0.106719 | 0 | 0 | 0.255045 | 0.106715 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031621 | false | 0 | 0.007905 | 0.025692 | 0.899209 | 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 |
2261b8957e66d56d49859c0d90a41bbbc1912254 | 847 | py | Python | exam/migrations/0007_auto_20210926_1136.py | ayuba-hub/eExams | 5c9920cf55b9cb258c7c732bffceb10e5e9188b5 | [
"MIT"
] | null | null | null | exam/migrations/0007_auto_20210926_1136.py | ayuba-hub/eExams | 5c9920cf55b9cb258c7c732bffceb10e5e9188b5 | [
"MIT"
] | null | null | null | exam/migrations/0007_auto_20210926_1136.py | ayuba-hub/eExams | 5c9920cf55b9cb258c7c732bffceb10e5e9188b5 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-26 11:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('exam', '0006_alter_result_student'),
]
operations = [
migrations.AddField(
model_name='course',... | 30.25 | 115 | 0.599764 | 88 | 847 | 5.636364 | 0.659091 | 0.048387 | 0.056452 | 0.08871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040453 | 0.270366 | 847 | 27 | 116 | 31.37037 | 0.762136 | 0.053129 | 0 | 0.095238 | 1 | 0 | 0.12375 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.238095 | 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 |
2263eb87bfc6849d01a95d75e93de5f10ec2849a | 2,019 | py | Python | Metodos Computacionales Uniandes/Code/ejercicio_14.py | aess14/Cursos-Uniandes | be016b25f2f49788235fbe91ec577fd16b9ad613 | [
"MIT"
] | null | null | null | Metodos Computacionales Uniandes/Code/ejercicio_14.py | aess14/Cursos-Uniandes | be016b25f2f49788235fbe91ec577fd16b9ad613 | [
"MIT"
] | null | null | null | Metodos Computacionales Uniandes/Code/ejercicio_14.py | aess14/Cursos-Uniandes | be016b25f2f49788235fbe91ec577fd16b9ad613 | [
"MIT"
] | null | null | null | #El promedio histórico del salario de los egresados de una universidad
#es salario_historico, la desviación estándar es
#de std_salario_historico.
#Calcule con un método Monte Carlo el salario promedio
#salario_promedio que una muestra aleatoria de n_egresados debe tener
#para considerar que cualquier otro grupo de ... | 43.891304 | 89 | 0.776127 | 312 | 2,019 | 4.903846 | 0.448718 | 0.08366 | 0.049673 | 0.027451 | 0.067974 | 0.067974 | 0.067974 | 0.067974 | 0.067974 | 0 | 0 | 0.022169 | 0.173353 | 2,019 | 45 | 90 | 44.866667 | 0.894548 | 0.76523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2264066ab16dc83d6c87a2a182e27fb1d518ecd9 | 2,758 | py | Python | settings.py | keldkemp/ShikiBot | 37e2bc6b9af4ffd885d9e17eaa4da2af7ca0b255 | [
"MIT"
] | null | null | null | settings.py | keldkemp/ShikiBot | 37e2bc6b9af4ffd885d9e17eaa4da2af7ca0b255 | [
"MIT"
] | 5 | 2021-09-14T15:18:14.000Z | 2021-11-01T17:08:18.000Z | settings.py | keldkemp/ShikiBot | 37e2bc6b9af4ffd885d9e17eaa4da2af7ca0b255 | [
"MIT"
] | null | null | null | """
Классы для работы с настройками проекта.
Настройки берутся из файла
"""
import json
import os
import urllib.parse as urlparse
from abc import ABC
# Абстрактный класс по работе с настройками
class Settings(ABC):
__FILE_NAME = 'settings.json'
def __read_file(self) -> json:
f = open(self.__FILE_NAME... | 35.358974 | 115 | 0.631255 | 361 | 2,758 | 4.512465 | 0.227147 | 0.060773 | 0.02701 | 0.046041 | 0.122775 | 0.046654 | 0.046654 | 0 | 0 | 0 | 0 | 0.002402 | 0.245105 | 2,758 | 77 | 116 | 35.818182 | 0.780019 | 0.114576 | 0 | 0.068966 | 0 | 0 | 0.159194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.068966 | 0.068966 | 0 | 0.344828 | 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 |
2264c6d97a19e74e14afa3f2643d0bf1a514029d | 279 | py | Python | monitoria-ilp/lista1/C.py | gustavo-mendel/my-college-projects | ccc1285e1a6863312e275f973e728de231a9458a | [
"MIT"
] | 3 | 2021-08-18T01:59:50.000Z | 2021-08-28T00:19:07.000Z | monitoria-ilp/lista1/C.py | gustavo-mendel/my-college-projects | ccc1285e1a6863312e275f973e728de231a9458a | [
"MIT"
] | 4 | 2021-03-09T18:39:47.000Z | 2021-03-26T00:01:56.000Z | monitoria-ilp/lista1/C.py | gustavo-mendel/my-college-projects | ccc1285e1a6863312e275f973e728de231a9458a | [
"MIT"
] | 1 | 2022-03-20T14:54:09.000Z | 2022-03-20T14:54:09.000Z | kanto, johto, hoenn = input().split()
catch_kanto, catch_johto, catch_hoenn = input().split()
total_kanto = int(kanto) + int(catch_kanto)
total_johto = int(johto) + int(catch_johto)
total_hoenn = int(hoenn) + int(catch_hoenn)
print(f"{total_kanto} {total_johto} {total_hoenn}") | 34.875 | 55 | 0.738351 | 42 | 279 | 4.619048 | 0.238095 | 0.123711 | 0.154639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103943 | 279 | 8 | 56 | 34.875 | 0.776 | 0 | 0 | 0 | 0 | 0 | 0.146429 | 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 |
22663035acd82ec0685e3a8da1ad4ed996fe9400 | 311 | py | Python | Scripts/Python/ListComs.py | TheSchilk/PmodADC | 7c79507034d3c8e1f475fa4ca5fec741bf46c17e | [
"MIT"
] | 1 | 2022-02-15T06:53:36.000Z | 2022-02-15T06:53:36.000Z | Scripts/Python/ListComs.py | TheSchilk/PmodADC | 7c79507034d3c8e1f475fa4ca5fec741bf46c17e | [
"MIT"
] | null | null | null | Scripts/Python/ListComs.py | TheSchilk/PmodADC | 7c79507034d3c8e1f475fa4ca5fec741bf46c17e | [
"MIT"
] | null | null | null | import serial.tools.list_ports
port_list = serial.tools.list_ports.comports()
lg = len(port_list)
msg = ""
if lg == 0:
msg = "No serial ports found...."
else:
msg = str(lg) + " Serial port(s) found:"
for p in port_list:
msg += "\n" + p.device + ": " + p.description
print(msg.rstrip('\n')) | 23.923077 | 53 | 0.607717 | 48 | 311 | 3.833333 | 0.520833 | 0.130435 | 0.163043 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004082 | 0.212219 | 311 | 13 | 54 | 23.923077 | 0.746939 | 0 | 0 | 0 | 0 | 0 | 0.169872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.090909 | 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 |
226a005ed4074fd9c6dc0ffbdd4fe4c0e3fd64d0 | 4,633 | py | Python | src/rules/sf_denovo.py | samesense/mahdi_epi | ec002df1d6b0dbdd4be8675e48971ed604ee9014 | [
"MIT"
] | 4 | 2018-06-05T06:13:04.000Z | 2020-11-16T03:03:14.000Z | src/rules/sf_denovo.py | samesense/mahdi_epi | ec002df1d6b0dbdd4be8675e48971ed604ee9014 | [
"MIT"
] | 25 | 2018-05-25T11:46:06.000Z | 2018-05-29T10:57:07.000Z | src/rules/sf_denovo.py | samesense/mahdi_epi | ec002df1d6b0dbdd4be8675e48971ed604ee9014 | [
"MIT"
] | null | null | null | """Parse variatns from denovo-db:
http://denovo-db.gs.washington.edu/denovo-db/
"""
from const import *
import pandas as pd
rule mk_denovo_vcf:
input: DATA + 'raw/denovo-db.variants.v.1.5.tsv',
DATA + 'raw/EPIv6.xlsx'
output: DATA + 'interim/denovo/denovo.vcf'
shell: ' python {SCRIPTS}lim... | 41.366071 | 128 | 0.543708 | 603 | 4,633 | 4.077944 | 0.301824 | 0.062627 | 0.096787 | 0.130948 | 0.309475 | 0.286702 | 0.104921 | 0.047174 | 0.030094 | 0 | 0 | 0.019051 | 0.286208 | 4,633 | 111 | 129 | 41.738739 | 0.724524 | 0.091302 | 0 | 0.060976 | 0 | 0.04878 | 0.30902 | 0.157306 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02439 | null | null | 0.036585 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
226be38d3c7a83267a81ba3ca527ae359dc14cb5 | 440 | py | Python | Tutorial/Classes_Objects/Student.py | SenonLi/LearnPython | 0d37ed625c623a79daa9c4407751050e683fa3ed | [
"Apache-2.0"
] | null | null | null | Tutorial/Classes_Objects/Student.py | SenonLi/LearnPython | 0d37ed625c623a79daa9c4407751050e683fa3ed | [
"Apache-2.0"
] | null | null | null | Tutorial/Classes_Objects/Student.py | SenonLi/LearnPython | 0d37ed625c623a79daa9c4407751050e683fa3ed | [
"Apache-2.0"
] | null | null | null | from Person import Person
class Student(Person):
def __init__(self, isMale, name, age, isRegistered):
Person.isMale = isMale
self.name = name
self.age = age
self.isRegistered = isRegistered
def gender(self):
if (self.isMale):
print("I am a Male Student! \n"... | 24.444444 | 56 | 0.581818 | 53 | 440 | 4.754717 | 0.45283 | 0.079365 | 0.063492 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.320455 | 440 | 18 | 57 | 24.444444 | 0.842809 | 0 | 0 | 0 | 0 | 0 | 0.108844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.357143 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2272b63f0923f41c3d30e7158a6e53239680b2a0 | 326 | py | Python | alvinchow/sqlalchemy/types/datetime.py | alvinchow86/alvin-python-lib | 523698dd993797ef724a8d3900c384b95c475273 | [
"MIT"
] | 1 | 2020-05-16T07:42:36.000Z | 2020-05-16T07:42:36.000Z | alvinchow/sqlalchemy/types/datetime.py | alvinchow86/alvin-python-lib | 523698dd993797ef724a8d3900c384b95c475273 | [
"MIT"
] | 1 | 2020-12-16T09:09:06.000Z | 2020-12-16T09:09:06.000Z | alvinchow/sqlalchemy/types/datetime.py | alvinchow86/alvin-python-lib | 523698dd993797ef724a8d3900c384b95c475273 | [
"MIT"
] | null | null | null | from dateutil.tz import UTC
from sqlalchemy import types
class UTCDateTime(types.TypeDecorator):
""" Datetime with timezone that always ensures UTC tz """
impl = types.DateTime(timezone=True)
def process_bind_param(self, value, dialect):
if value is not None:
return value.astimezone... | 23.285714 | 61 | 0.705521 | 42 | 326 | 5.428571 | 0.738095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217791 | 326 | 13 | 62 | 25.076923 | 0.894118 | 0.150307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
22737c566a4499fa534ad7a6d866e3f1d13b7b8a | 3,726 | py | Python | VFF/psi_statistics.py | st--/VFF | 828e6c0437eea143274b65c0171ee7605c9d460a | [
"Apache-2.0"
] | 1 | 2021-04-13T16:13:34.000Z | 2021-04-13T16:13:34.000Z | VFF/psi_statistics.py | st--/VFF | 828e6c0437eea143274b65c0171ee7605c9d460a | [
"Apache-2.0"
] | null | null | null | VFF/psi_statistics.py | st--/VFF | 828e6c0437eea143274b65c0171ee7605c9d460a | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 James Hensman
#
# 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, so... | 38.020408 | 134 | 0.564144 | 742 | 3,726 | 2.783019 | 0.168464 | 0.030508 | 0.029056 | 0.021792 | 0.474576 | 0.458111 | 0.398063 | 0.38063 | 0.272639 | 0.230024 | 0 | 0.029242 | 0.256575 | 3,726 | 97 | 135 | 38.412371 | 0.716245 | 0.391304 | 0 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.061224 | false | 0 | 0.040816 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2275a9dd540b50a1c6be0b4700f541c47264f275 | 459 | py | Python | backend-service/users-service/app/app/schemas/pettype.py | abhishek70/python-petclinic-microservices | e15a41a668958f35f1b962487cd2360c5c150f0b | [
"MIT"
] | 2 | 2021-05-19T07:21:59.000Z | 2021-09-15T17:30:08.000Z | backend-service/users-service/app/app/schemas/pettype.py | abhishek70/python-petclinic-microservices | e15a41a668958f35f1b962487cd2360c5c150f0b | [
"MIT"
] | null | null | null | backend-service/users-service/app/app/schemas/pettype.py | abhishek70/python-petclinic-microservices | e15a41a668958f35f1b962487cd2360c5c150f0b | [
"MIT"
] | null | null | null | from pydantic import BaseModel
class PetTypeBase(BaseModel):
name: str
class PetTypeCreate(PetTypeBase):
pass
class PetTypeUpdate(PetTypeBase):
pass
class PetTypeInDBBase(PetTypeBase):
id: int
class Config:
orm_mode = True
arbitrary_types_allowed = True
# Properties to ret... | 14.34375 | 38 | 0.72549 | 49 | 459 | 6.734694 | 0.612245 | 0.090909 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220044 | 459 | 31 | 39 | 14.806452 | 0.921788 | 0.141612 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.0625 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2277483ae5b3902701b21fbd521036d74497e86b | 2,032 | py | Python | game_analysis/get_lucky.py | rortms/tictac | ec57c13bf31f3068c9f80bdc7c1d6737aab0b5be | [
"MIT"
] | null | null | null | game_analysis/get_lucky.py | rortms/tictac | ec57c13bf31f3068c9f80bdc7c1d6737aab0b5be | [
"MIT"
] | null | null | null | game_analysis/get_lucky.py | rortms/tictac | ec57c13bf31f3068c9f80bdc7c1d6737aab0b5be | [
"MIT"
] | null | null | null | import sys
sys.path.append("../")
from time import time
import pandas as pd
from utilities import *
def run():
###############################################################
# Reproduce Lucky_Q, get lucky again
size = 3
ts = [70, 1000, 1000, 1000]
QM = QMap(gamma=0.1, alpha=0.1) #Initiali... | 34.440678 | 105 | 0.51624 | 226 | 2,032 | 4.561947 | 0.384956 | 0.052376 | 0.029098 | 0.077595 | 0.261882 | 0.179437 | 0.119302 | 0.085354 | 0 | 0 | 0 | 0.023005 | 0.315453 | 2,032 | 58 | 106 | 35.034483 | 0.718188 | 0.112205 | 0 | 0.051282 | 0 | 0 | 0.210617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.102564 | null | null | 0.102564 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2277a7d7a7d381c53e629d71fd244bec04a87118 | 3,376 | py | Python | blog/views.py | monk-after-90s/diyblog | bd71a95942f7acf06babe6804362f55accbd44e4 | [
"MIT"
] | null | null | null | blog/views.py | monk-after-90s/diyblog | bd71a95942f7acf06babe6804362f55accbd44e4 | [
"MIT"
] | null | null | null | blog/views.py | monk-after-90s/diyblog | bd71a95942f7acf06babe6804362f55accbd44e4 | [
"MIT"
] | null | null | null | from django.contrib.auth.decorators import login_required
from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import HttpResponseRedirect
from django.shortcuts import render, get_object_or_404
# Create your views here.
from django.urls import reverse
from django.views.generic import DetailView, ... | 31.849057 | 97 | 0.666469 | 397 | 3,376 | 5.518892 | 0.239295 | 0.021908 | 0.032862 | 0.031492 | 0.173437 | 0.137837 | 0.104975 | 0 | 0 | 0 | 0 | 0.003018 | 0.214751 | 3,376 | 105 | 98 | 32.152381 | 0.823463 | 0.234005 | 0 | 0.155172 | 0 | 0 | 0.060476 | 0.027312 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.137931 | 0.068966 | 0.706897 | 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 |
2279efb201fba7398228d9e836ee5e2598dc5ff9 | 4,291 | py | Python | python/GenomeWorkflows/upload_genomes_folder_with_manifest.py | FabricGenomics/omicia_api_examples | b761d40744032720bdf1a4f59877e16b8b1dfcf0 | [
"MIT"
] | 2 | 2017-06-13T13:59:17.000Z | 2021-12-17T18:52:08.000Z | python/GenomeWorkflows/upload_genomes_folder_with_manifest.py | FabricGenomics/omicia_api_examples | b761d40744032720bdf1a4f59877e16b8b1dfcf0 | [
"MIT"
] | 1 | 2017-11-22T00:20:19.000Z | 2017-11-22T00:41:05.000Z | python/GenomeWorkflows/upload_genomes_folder_with_manifest.py | FabricGenomics/omicia_api_examples | b761d40744032720bdf1a4f59877e16b8b1dfcf0 | [
"MIT"
] | 3 | 2020-03-05T18:41:36.000Z | 2021-01-14T08:31:30.000Z | """Upload multiple genomes to an existing project from a folder,
using a manifest to outline each genome's attributes. The manifest
must contain five columns with headers. The first column should
contain the genome filename, the second the genome label, the third
the genome's internal_id, the fourth its sex ('male', 'f... | 37.973451 | 105 | 0.69471 | 589 | 4,291 | 4.887946 | 0.322581 | 0.040639 | 0.029524 | 0.011115 | 0.068079 | 0.068079 | 0.046544 | 0.020841 | 0 | 0 | 0 | 0.012741 | 0.21347 | 4,291 | 112 | 106 | 38.3125 | 0.840296 | 0.368912 | 0 | 0.034483 | 0 | 0 | 0.194486 | 0.03361 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0.068966 | 0.12069 | 0 | 0.206897 | 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 |
227b90b35da17b633586d794fe2e02bae4a61889 | 30,785 | py | Python | multiinstance/density_ratio_em.py | Dzeiberg/multiinstance | 95b70e066610b1935cda9086d8fb8609809e7d15 | [
"Apache-2.0"
] | null | null | null | multiinstance/density_ratio_em.py | Dzeiberg/multiinstance | 95b70e066610b1935cda9086d8fb8609809e7d15 | [
"Apache-2.0"
] | null | null | null | multiinstance/density_ratio_em.py | Dzeiberg/multiinstance | 95b70e066610b1935cda9086d8fb8609809e7d15 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: 47_DREM_2.ipynb (unless otherwise specified).
__all__ = ['DensityRatioEM', 'DensityRatioEM', 'generateParams']
# Cell
from .em import generateBags
from .utils import estimate
from .nnpu import getPosterior as getNNPUPosterior
from .vpu import train as getVPUPosterior
impor... | 47.728682 | 145 | 0.585123 | 3,366 | 30,785 | 5.255199 | 0.137552 | 0.017638 | 0.015433 | 0.021369 | 0.505908 | 0.468653 | 0.443722 | 0.422805 | 0.399966 | 0.38278 | 0 | 0.009238 | 0.314309 | 30,785 | 645 | 146 | 47.728682 | 0.828746 | 0.130908 | 0 | 0.397541 | 1 | 0.006148 | 0.05433 | 0.000857 | 0 | 0 | 0 | 0 | 0.006148 | 1 | 0.07582 | false | 0 | 0.065574 | 0.002049 | 0.194672 | 0.008197 | 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 |
227c6e0843f9c67804b50f27617901c0b6abeb82 | 3,010 | py | Python | preprocessing.py | aadithyamd/video2txt | d6c4c6e8a6d627f1756b29769799530a6173c224 | [
"BSD-2-Clause"
] | null | null | null | preprocessing.py | aadithyamd/video2txt | d6c4c6e8a6d627f1756b29769799530a6173c224 | [
"BSD-2-Clause"
] | null | null | null | preprocessing.py | aadithyamd/video2txt | d6c4c6e8a6d627f1756b29769799530a6173c224 | [
"BSD-2-Clause"
] | null | null | null | #-*- coding: utf-8 -*-
'''
According to the paper, the authors extracted upto 80 frames from each video,
they did not mention if they grabbed first 80 frames, or sampled 80 frames with same intervals,
but anyway I did the latter.
'''
import cv2
import os
import ipdb
import numpy as np
import pandas as pd
import skimage... | 33.820225 | 101 | 0.665781 | 403 | 3,010 | 4.74938 | 0.334988 | 0.075235 | 0.035528 | 0.048067 | 0.296238 | 0.262278 | 0.22466 | 0.114943 | 0.114943 | 0.114943 | 0 | 0.02061 | 0.226246 | 3,010 | 88 | 102 | 34.204545 | 0.801202 | 0.006977 | 0 | 0 | 0 | 0 | 0.105472 | 0.063355 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016129 | 0.112903 | null | null | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97d7d2e92229498c8d95573d98097046aeaa6add | 7,512 | py | Python | wiki-export-split.py | marbu/scriptpile | 7a850e59ac2713f1860959e29a1ea2c0723329da | [
"Apache-2.0"
] | null | null | null | wiki-export-split.py | marbu/scriptpile | 7a850e59ac2713f1860959e29a1ea2c0723329da | [
"Apache-2.0"
] | null | null | null | wiki-export-split.py | marbu/scriptpile | 7a850e59ac2713f1860959e29a1ea2c0723329da | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf8 -*-
"""
wiki-export-split: split wikipedia xml dump into plain text files
"""
# Copyright (C) 2014 martin.bukatovic@gmail.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the ... | 33.686099 | 132 | 0.629925 | 982 | 7,512 | 4.642566 | 0.268839 | 0.038605 | 0.021715 | 0.010529 | 0.188419 | 0.128756 | 0.059224 | 0.048256 | 0.035095 | 0.035095 | 0 | 0.010396 | 0.270101 | 7,512 | 222 | 133 | 33.837838 | 0.821083 | 0.149894 | 0 | 0.245033 | 0 | 0 | 0.083558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013245 | 0.039735 | 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 |
97d9574878dc308d87661fd9836a95d641d56eb2 | 700 | py | Python | solutions/solution345.py | Satily/leetcode_python_solution | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | [
"MIT"
] | 3 | 2018-11-22T10:31:09.000Z | 2019-05-05T15:53:48.000Z | solutions/solution345.py | Satily/leetcode_python_solution | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | [
"MIT"
] | null | null | null | solutions/solution345.py | Satily/leetcode_python_solution | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | [
"MIT"
] | null | null | null | class Solution:
def reverseVowels(self, s: str) -> str:
vowels = {"a", "e", "i", "o", "u", "A", "E", "I", "O", "U"}
ns = [e for e in s]
left, right = 0, len(s) - 1
while right > left:
while s[left] not in vowels and left < right:
left += 1
... | 33.333333 | 68 | 0.475714 | 86 | 700 | 3.77907 | 0.383721 | 0.083077 | 0.24 | 0.024615 | 0.172308 | 0.141538 | 0 | 0 | 0 | 0 | 0 | 0.013393 | 0.36 | 700 | 20 | 69 | 35 | 0.712054 | 0 | 0 | 0.222222 | 0 | 0 | 0.048529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.166667 | 0.166667 | 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 |
97e1f71a3fa46e4084ac43425c978f691a932ce8 | 721 | py | Python | setup.py | YilingCAI/ESMO | 8dc0696794a403a88b6f6bafcc1b13a991b1c1d9 | [
"MIT"
] | null | null | null | setup.py | YilingCAI/ESMO | 8dc0696794a403a88b6f6bafcc1b13a991b1c1d9 | [
"MIT"
] | null | null | null | setup.py | YilingCAI/ESMO | 8dc0696794a403a88b6f6bafcc1b13a991b1c1d9 | [
"MIT"
] | null | null | null | from __future__ import division, absolute_import
from setuptools import setup, find_packages
setup(
name='ESMO',
version='1.0',
author='CAI Yiling, Francois-Marie BREON',
author_email='yiling.cai@lsce.ipsl.fr',
description=
'Variable Renewable Energy Sources Penetration in the Changi... | 32.772727 | 141 | 0.67129 | 79 | 721 | 5.974684 | 0.835443 | 0.050847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005282 | 0.212205 | 721 | 21 | 142 | 34.333333 | 0.825704 | 0 | 0 | 0 | 0 | 0.052632 | 0.432857 | 0.032857 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.105263 | 0 | 0.105263 | 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 |
97ed5e0d85ec295ba1c1c2153e0b9a18c1734d58 | 732 | py | Python | legacy/ABC_104/B1.py | mo-mo-666/AtCoder | 99556f5ed98510850aaa8ab2b845da6a9359f5a5 | [
"MIT"
] | null | null | null | legacy/ABC_104/B1.py | mo-mo-666/AtCoder | 99556f5ed98510850aaa8ab2b845da6a9359f5a5 | [
"MIT"
] | null | null | null | legacy/ABC_104/B1.py | mo-mo-666/AtCoder | 99556f5ed98510850aaa8ab2b845da6a9359f5a5 | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: mo-mo-
#
# Created: 05/08/2018
# Copyright: (c) mo-mo- 2018
# Licence: <your licence>
#-------------------------------------------------------------------------------
... | 18.769231 | 81 | 0.331967 | 78 | 732 | 3.115385 | 0.512821 | 0.08642 | 0.024691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051081 | 0.304645 | 732 | 38 | 82 | 19.263158 | 0.426326 | 0.394809 | 0 | 0.263158 | 0 | 0 | 0.030457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f063beb92aa63b4c5201afd8f54b4ff8228d0d2 | 438 | py | Python | backstage/migrations/0006_carouseldisplay_carousel_img.py | JiajiaHuang/smonus | 95ec209ae3562ea73ee9ce4c22a0d3a3f0975210 | [
"Unlicense"
] | null | null | null | backstage/migrations/0006_carouseldisplay_carousel_img.py | JiajiaHuang/smonus | 95ec209ae3562ea73ee9ce4c22a0d3a3f0975210 | [
"Unlicense"
] | null | null | null | backstage/migrations/0006_carouseldisplay_carousel_img.py | JiajiaHuang/smonus | 95ec209ae3562ea73ee9ce4c22a0d3a3f0975210 | [
"Unlicense"
] | null | null | null | # Generated by Django 2.2.1 on 2020-02-16 13:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backstage', '0005_auto_20200216_1702'),
]
operations = [
migrations.AddField(
model_name='carouseldisplay',
name='ca... | 23.052632 | 87 | 0.623288 | 47 | 438 | 5.680851 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095092 | 0.255708 | 438 | 18 | 88 | 24.333333 | 0.723926 | 0.10274 | 0 | 0 | 1 | 0 | 0.214834 | 0.058824 | 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 |
3f08a09a0f888ebea677e8310cc676d6f7d0b121 | 7,240 | py | Python | src/lib/Bcfg2/Server/Hostbase/hostbase/models.py | amplify-education/bcfg2 | 02d7f574babfeb2da99e2aad3a92b4e8d6494f07 | [
"mpich2"
] | null | null | null | src/lib/Bcfg2/Server/Hostbase/hostbase/models.py | amplify-education/bcfg2 | 02d7f574babfeb2da99e2aad3a92b4e8d6494f07 | [
"mpich2"
] | null | null | null | src/lib/Bcfg2/Server/Hostbase/hostbase/models.py | amplify-education/bcfg2 | 02d7f574babfeb2da99e2aad3a92b4e8d6494f07 | [
"mpich2"
] | null | null | null | from django.db import models
# Create your models here.
class Host(models.Model):
NETGROUP_CHOICES = (
('none', 'none'),('cave', 'cave'),('ccst', 'ccst'),('mcs', 'mcs'),
('mmlab', 'mmlab'),('sp', 'sp'),('red', 'red'),('virtual', 'virtual'),
('win', 'win'),('xterm', 'xterm'),('lcrc', 'lcrc')... | 34.312796 | 89 | 0.619337 | 857 | 7,240 | 5.085181 | 0.215869 | 0.086049 | 0.094998 | 0.126664 | 0.423359 | 0.364158 | 0.312299 | 0.244837 | 0.215236 | 0.155117 | 0 | 0.018404 | 0.219475 | 7,240 | 210 | 90 | 34.47619 | 0.752787 | 0.156768 | 0 | 0.281046 | 0 | 0 | 0.15189 | 0 | 0 | 0 | 0 | 0.004762 | 0 | 1 | 0.078431 | false | 0.045752 | 0.006536 | 0.071895 | 0.679739 | 0.013072 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3f0b24ca55695696c669306e98eb7c7a30d45a08 | 1,976 | py | Python | geni/OMNI_docker/geni-tools-2.11/src/gcf/omnilib/stitch/GENIObject.py | cpemberton3/MeasurementFramework | e911d7da93afcc77b29bb8b0ee39e2e4fee4dd9d | [
"MIT"
] | 12 | 2015-04-30T19:24:47.000Z | 2021-01-07T01:45:18.000Z | geni/OMNI_docker/geni-tools-2.11/src/gcf/omnilib/stitch/GENIObject.py | cpemberton3/MeasurementFramework | e911d7da93afcc77b29bb8b0ee39e2e4fee4dd9d | [
"MIT"
] | 899 | 2015-05-06T12:48:26.000Z | 2021-09-01T12:24:25.000Z | geni/OMNI_docker/geni-tools-2.11/src/gcf/omnilib/stitch/GENIObject.py | cpemberton3/MeasurementFramework | e911d7da93afcc77b29bb8b0ee39e2e4fee4dd9d | [
"MIT"
] | 22 | 2015-05-04T07:15:11.000Z | 2019-04-16T08:32:31.000Z | #----------------------------------------------------------------------
# Copyright (c) 2013-2015 Raytheon BBN Technologies
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and/or hardware specification (the "Work") to
# deal in the Work without restriction, including ... | 38.745098 | 72 | 0.650304 | 260 | 1,976 | 4.773077 | 0.526923 | 0.045125 | 0.014504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005079 | 0.202935 | 1,976 | 50 | 73 | 39.52 | 0.782857 | 0.68168 | 0 | 0 | 0 | 0 | 0.03827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.0625 | 0.125 | 0.0625 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3f0b86abde999f19da3e187778260fd8978f48a1 | 779 | py | Python | roamingmantis/moqhao/adapter/instagram.py | ninoseki/roamingmantis | 252e21c7315eaa1e25e9b319c7ec702bf5431fff | [
"MIT"
] | 2 | 2020-09-08T21:53:57.000Z | 2020-12-17T23:25:05.000Z | roamingmantis/moqhao/adapter/instagram.py | ninoseki/roamingmantis | 252e21c7315eaa1e25e9b319c7ec702bf5431fff | [
"MIT"
] | null | null | null | roamingmantis/moqhao/adapter/instagram.py | ninoseki/roamingmantis | 252e21c7315eaa1e25e9b319c7ec702bf5431fff | [
"MIT"
] | 1 | 2021-03-22T19:26:42.000Z | 2021-03-22T19:26:42.000Z | import httpx
from . import BaseAdapter
class Instagram(BaseAdapter):
def _base_url(self):
return "https://www.instagram.com"
def url(self):
# https://www.instagram.com/{}/?__a=1
return f"{self._base_url()}/{self.id}/?__a=1"
async def _get(self):
async with httpx.AsyncCli... | 28.851852 | 156 | 0.550706 | 98 | 779 | 4.244898 | 0.561224 | 0.050481 | 0.052885 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051471 | 0.301669 | 779 | 26 | 157 | 29.961538 | 0.713235 | 0.044929 | 0 | 0 | 0 | 0.052632 | 0.283019 | 0.04717 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0.105263 | 0.473684 | 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 |
3f1c5599206e1eb619d79c06bb4a209a5eac5d5a | 731 | py | Python | setup.py | justincely/pyspecfit | b0d3b2001777674497786aeeb2c85fa1bb1cf871 | [
"BSD-3-Clause"
] | null | null | null | setup.py | justincely/pyspecfit | b0d3b2001777674497786aeeb2c85fa1bb1cf871 | [
"BSD-3-Clause"
] | 1 | 2015-02-02T19:53:55.000Z | 2016-07-04T19:17:56.000Z | setup.py | justincely/pyspecfit | b0d3b2001777674497786aeeb2c85fa1bb1cf871 | [
"BSD-3-Clause"
] | null | null | null | from distutils.core import setup
import os
import glob
setup(
name = 'pyspecfit',
url = 'http://justincely.github.io',
version = '0.0.1',
description = 'interact with IRAF task specfit I/O products',
author = 'Justin Ely',
author_email = 'ely@stsci.edu',
keywords = ['astronomy'],
classi... | 34.809524 | 83 | 0.582763 | 68 | 731 | 6.25 | 0.779412 | 0.070588 | 0.122353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007707 | 0.290014 | 731 | 20 | 84 | 36.55 | 0.811175 | 0 | 0 | 0 | 0 | 0 | 0.51026 | 0.060192 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.157895 | 0 | 0.157895 | 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 |
3f1dcdb5385b0d082d53bfc0e34654a15da13ac0 | 30,519 | py | Python | src/sage/interfaces/tachyon.py | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | 1,742 | 2015-01-04T07:06:13.000Z | 2022-03-30T11:32:52.000Z | src/sage/interfaces/tachyon.py | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | 66 | 2015-03-19T19:17:24.000Z | 2022-03-16T11:59:30.000Z | src/sage/interfaces/tachyon.py | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | 495 | 2015-01-10T10:23:18.000Z | 2022-03-24T22:06:11.000Z | r"""
The Tachyon Ray Tracer
AUTHOR:
- John E. Stone
"""
#*****************************************************************************
# Copyright (C) 2006 John E. Stone
#
# Distributed under the terms of the GNU General Public License (GPL)
# as published by the Free Software Foundation; either version 2 of... | 38.196496 | 173 | 0.709755 | 4,898 | 30,519 | 4.409351 | 0.201715 | 0.010927 | 0.00764 | 0.005186 | 0.127657 | 0.089688 | 0.074918 | 0.0695 | 0.064268 | 0.051396 | 0 | 0.031655 | 0.215374 | 30,519 | 798 | 174 | 38.244361 | 0.87025 | 0.123267 | 0 | 0.194208 | 0 | 0.015332 | 0.932795 | 0.0186 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006814 | false | 0 | 0.018739 | 0 | 0.028961 | 0.006814 | 0 | 0 | 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 |
3f23e2ccf5cbbc3e60f9145058ed3135d14d4fbb | 1,145 | py | Python | scripts/check_enumerative_guesses.py | pranavk/souper | 60d546d47ba37f89e0e4b3c5eb8e43ca50563d32 | [
"Apache-2.0"
] | null | null | null | scripts/check_enumerative_guesses.py | pranavk/souper | 60d546d47ba37f89e0e4b3c5eb8e43ca50563d32 | [
"Apache-2.0"
] | 3 | 2019-10-15T17:33:05.000Z | 2019-10-16T02:29:10.000Z | scripts/check_enumerative_guesses.py | pranavk/souper | 60d546d47ba37f89e0e4b3c5eb8e43ca50563d32 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import os
import subprocess
import sys
import time
import re
import itertools
import json
num_instrs = [1, 2, 3]
files = ['enum0.opt', 'enum1.opt']
dataflows = ['false']
configs = itertools.product(num_instrs, files, dataflows)
# 0 - num-instrs, 1 - filename, 2 - dataflow
output_lines = []
for con... | 36.935484 | 334 | 0.705677 | 164 | 1,145 | 4.847561 | 0.487805 | 0.085535 | 0.130818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01992 | 0.123144 | 1,145 | 30 | 335 | 38.166667 | 0.771912 | 0.051528 | 0 | 0 | 0 | 0.043478 | 0.324723 | 0.174354 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.304348 | 0 | 0.304348 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3f3173bf1d20895b404ed59140746f22f40b728b | 804 | py | Python | experiment/forms.py | kalenkovich/mousetracking-django | 621e03a2c1cf31e31df2c40a7f525e51a450d916 | [
"MIT"
] | null | null | null | experiment/forms.py | kalenkovich/mousetracking-django | 621e03a2c1cf31e31df2c40a7f525e51a450d916 | [
"MIT"
] | 29 | 2020-05-19T06:14:42.000Z | 2021-06-10T20:12:47.000Z | experiment/forms.py | kalenkovich/mousetracking-django | 621e03a2c1cf31e31df2c40a7f525e51a450d916 | [
"MIT"
] | null | null | null | from django.forms import ModelForm, BooleanField, HiddenInput, CharField
from .models import Participant
class ParticipantForm(ModelForm):
gave_consent = BooleanField(required=True)
form_name = CharField(widget=HiddenInput(), initial=Participant.PARTICIPANT_FORM_NAME)
class Meta:
model = Particip... | 34.956522 | 117 | 0.717662 | 84 | 804 | 6.690476 | 0.607143 | 0.05694 | 0.060498 | 0.081851 | 0.323843 | 0.323843 | 0.323843 | 0 | 0 | 0 | 0 | 0 | 0.190299 | 804 | 22 | 118 | 36.545455 | 0.863287 | 0 | 0 | 0.25 | 0 | 0 | 0.215174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5625 | 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 |
3f349f5ff67e1e9a0e14a94adb47ff8ace9c29bf | 326 | py | Python | app/email.py | Kabu1/blogers | 18eda84b21e4aced075cfd957c287f2a6b1edc60 | [
"Unlicense"
] | null | null | null | app/email.py | Kabu1/blogers | 18eda84b21e4aced075cfd957c287f2a6b1edc60 | [
"Unlicense"
] | null | null | null | app/email.py | Kabu1/blogers | 18eda84b21e4aced075cfd957c287f2a6b1edc60 | [
"Unlicense"
] | null | null | null | from flask_mail import Message
from flask import render_template
from . import mail
def mail_message(subject, template, to, **kwargs):
sender_email='flaskemailmoringa@gmail.com'
email=Message(subject, sender=sender_email, recipients=[to])
email.body=render_template(template+'.txt',**kwargs)
mail.send(... | 32.6 | 64 | 0.763804 | 43 | 326 | 5.651163 | 0.465116 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122699 | 326 | 10 | 65 | 32.6 | 0.84965 | 0 | 0 | 0 | 0 | 0 | 0.094801 | 0.082569 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 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 |
3f3524a20abcad700b49896fec4c2bb9842a7856 | 1,812 | py | Python | keras/layers/convolutional.py | seba-1511/gsoc15-demo | 7fa542f33fdb39d73e2b11318c046ecf35fb9bcf | [
"MIT"
] | 2 | 2015-09-15T19:19:24.000Z | 2019-04-21T12:10:27.000Z | keras/layers/convolutional.py | wavelets/keras | c57d5cce7903511edd4048f8bfed2ad0dc6f6b6b | [
"MIT"
] | null | null | null | keras/layers/convolutional.py | wavelets/keras | c57d5cce7903511edd4048f8bfed2ad0dc6f6b6b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import theano
import theano.tensor as T
from theano.tensor.signal import downsample
from .. import activations, initializations
from ..utils.theano_utils import shared_zeros
from ..layers.core import Layer
# class Convolution1D(Layer): TODO
# class MaxPooling1D(Layer): TODO
class Convoluti... | 29.704918 | 97 | 0.657285 | 235 | 1,812 | 4.880851 | 0.314894 | 0.043592 | 0.024412 | 0.027899 | 0.146469 | 0.109852 | 0.109852 | 0.109852 | 0.062772 | 0 | 0 | 0.01076 | 0.230684 | 1,812 | 60 | 98 | 30.2 | 0.812052 | 0.065673 | 0 | 0.210526 | 0 | 0 | 0.012441 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f3692b5dbd42894f220c0748010a2bf02c06e24 | 2,234 | py | Python | Modeling_Scripts/09_dump_estimated_to_csv.py | VolpeUSDOT/gtfs-measures | 0530d3c7193f10d591edd446d7e4985d03a7c48a | [
"CC0-1.0"
] | 3 | 2019-08-29T13:31:14.000Z | 2021-06-18T06:10:06.000Z | Modeling_Scripts/09_dump_estimated_to_csv.py | VolpeUSDOT/gtfs-measures | 0530d3c7193f10d591edd446d7e4985d03a7c48a | [
"CC0-1.0"
] | null | null | null | Modeling_Scripts/09_dump_estimated_to_csv.py | VolpeUSDOT/gtfs-measures | 0530d3c7193f10d591edd446d7e4985d03a7c48a | [
"CC0-1.0"
] | null | null | null | #------------------------------------------------------------------------------
# Name: Dump Estimated to CSV
#
# Purpose: This function exports estimated ridership data to a csv for
# integration with mapping functions in ArcGIS.
#
# Author: Stephen Zitzow-Childs
#
# Created: Sprint 2... | 45.591837 | 507 | 0.727842 | 278 | 2,234 | 5.625899 | 0.384892 | 0.046036 | 0.08312 | 0.026854 | 0.204604 | 0.124041 | 0.124041 | 0.048593 | 0 | 0 | 0 | 0.014184 | 0.116383 | 2,234 | 49 | 508 | 45.591837 | 0.778116 | 0.254252 | 0 | 0 | 0 | 0.041667 | 0.614779 | 0.273168 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f3994b68bc04067de1ecf448f7b1491bdd5253d | 2,462 | py | Python | ippon/group_phase/authorization_test.py | morynicz/ippon_back | dce901bfc649c6f8efbbf0907654e0860606b3e3 | [
"MIT"
] | null | null | null | ippon/group_phase/authorization_test.py | morynicz/ippon_back | dce901bfc649c6f8efbbf0907654e0860606b3e3 | [
"MIT"
] | 13 | 2018-12-22T15:30:56.000Z | 2022-03-12T00:22:31.000Z | ippon/group_phase/authorization_test.py | morynicz/ippon_back | dce901bfc649c6f8efbbf0907654e0860606b3e3 | [
"MIT"
] | 2 | 2019-06-01T11:28:23.000Z | 2020-03-27T15:19:11.000Z | from django.urls.base import reverse
from rest_framework import status
import ippon.models.group_phase as gpm
import ippon.models.tournament as tm
import ippon.utils.authorization_test_fixtures as iua
class TournamentGroupPhaseAuthorizationAuthenticatedTests(iua.AuthorizationViewsAuthenticatedTests):
def setUp(s... | 47.346154 | 112 | 0.77173 | 276 | 2,462 | 6.568841 | 0.25 | 0.088252 | 0.126862 | 0.11583 | 0.658577 | 0.658577 | 0.658577 | 0.658577 | 0.658577 | 0.622173 | 0 | 0.006645 | 0.144192 | 2,462 | 51 | 113 | 48.27451 | 0.853821 | 0 | 0 | 0.435897 | 0 | 0 | 0.049959 | 0.030463 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.179487 | false | 0 | 0.128205 | 0 | 0.358974 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f3fc22529ecf9f978929f472fb0f7406b667e84 | 1,170 | py | Python | display-client/local/Rainbow.py | actuino/unicorn-display | b8915b0cb0eeda677aea052661545d704fd7dba4 | [
"MIT"
] | 4 | 2017-03-03T08:45:23.000Z | 2017-07-14T13:41:47.000Z | display-client/local/Rainbow.py | actuino/unicorn-display | b8915b0cb0eeda677aea052661545d704fd7dba4 | [
"MIT"
] | 1 | 2021-04-10T11:03:45.000Z | 2021-04-10T11:03:45.000Z | display-client/local/Rainbow.py | actuino/unicorn-display | b8915b0cb0eeda677aea052661545d704fd7dba4 | [
"MIT"
] | null | null | null | import math
import time
import sys
sys.path.append("../classes" )
from AsyncWorker import AsyncWorker
Worker = None
Name = "Rainbow"
i = 0.0
offset = 30
def my_func(unicorn, param):
global i, offset
i = i + 0.3
for y in range(8):
for x in range(8):
r = 0
... | 26 | 82 | 0.491453 | 177 | 1,170 | 3.231638 | 0.344633 | 0.013986 | 0.020979 | 0.036713 | 0.08042 | 0.08042 | 0.08042 | 0.08042 | 0 | 0 | 0 | 0.076517 | 0.352137 | 1,170 | 44 | 83 | 26.590909 | 0.6781 | 0.013675 | 0 | 0.157895 | 0 | 0 | 0.030408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3f425035a26def41fea0247a8fe1f338c2bb415c | 505 | py | Python | src/simulation.py | sofiary/panpow_IEEE118 | 900fd25eef83cd95acc3bd8e789b974603f87f9c | [
"MIT"
] | null | null | null | src/simulation.py | sofiary/panpow_IEEE118 | 900fd25eef83cd95acc3bd8e789b974603f87f9c | [
"MIT"
] | null | null | null | src/simulation.py | sofiary/panpow_IEEE118 | 900fd25eef83cd95acc3bd8e789b974603f87f9c | [
"MIT"
] | null | null | null | import os
import pandapower as pp
import pandapower.networks as pn
from pandapower.plotting.plotly import pf_res_plotly
from preparation import NetworkBuilder
import_rules = dict()
aemo_data = r"data/aemo_data_sources.json"
tnsp_buses = r"data/electranet_buses.json"
if __name__ == "__main__":
builder = NetworkBui... | 28.055556 | 70 | 0.776238 | 73 | 505 | 5.027397 | 0.575342 | 0.087193 | 0.059946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.132673 | 505 | 17 | 71 | 29.705882 | 0.824201 | 0.035644 | 0 | 0 | 0 | 0 | 0.146091 | 0.109054 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3f45a26938dcc2b77a322f2b60e45ca14afd7eb7 | 5,065 | py | Python | src/portals/admins/models.py | IkramKhan-DevOps/pws-ewallet | 7c16a97d521d5eb91cc3bbda64f317c1c2f92658 | [
"MIT"
] | null | null | null | src/portals/admins/models.py | IkramKhan-DevOps/pws-ewallet | 7c16a97d521d5eb91cc3bbda64f317c1c2f92658 | [
"MIT"
] | 3 | 2022-02-24T20:37:00.000Z | 2022-03-26T18:35:25.000Z | src/portals/admins/models.py | IkramKhan-DevOps/pws-ewallet | 7c16a97d521d5eb91cc3bbda64f317c1c2f92658 | [
"MIT"
] | null | null | null | from django.db import models
from django_resized import ResizedImageField
from src.accounts.models import Wallet
""" GENERAL """
class Country(models.Model):
name = models.CharField(max_length=255, unique=True)
short_code = models.CharField(max_length=2, unique=True)
phone_code = models.CharField(max_l... | 29.794118 | 118 | 0.666535 | 587 | 5,065 | 5.55707 | 0.229983 | 0.059779 | 0.044145 | 0.05886 | 0.591048 | 0.559779 | 0.542918 | 0.506438 | 0.42428 | 0.390865 | 0 | 0.011403 | 0.203554 | 5,065 | 169 | 119 | 29.970414 | 0.797224 | 0 | 0 | 0.540323 | 0 | 0 | 0.089296 | 0.009767 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056452 | false | 0 | 0.024194 | 0.056452 | 0.669355 | 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 |
3f5005596835706886e697ec6c51ca9661d05881 | 647 | py | Python | .config/qtile/scripts/lock_screen.py | EdenEast/dots | d7b92bada29887a61ad308ac7f6e245c9797acfe | [
"MIT"
] | 2 | 2021-04-25T04:11:35.000Z | 2022-02-25T13:32:18.000Z | .config/qtile/scripts/lock_screen.py | CruizeMissile/dots | d7b92bada29887a61ad308ac7f6e245c9797acfe | [
"MIT"
] | null | null | null | .config/qtile/scripts/lock_screen.py | CruizeMissile/dots | d7b92bada29887a61ad308ac7f6e245c9797acfe | [
"MIT"
] | 1 | 2021-11-21T12:55:48.000Z | 2021-11-21T12:55:48.000Z | #! /usr/bin/python
import subprocess
def lock_screen():
"""
A function decorator for Qtile to lock the screen with
"""
processes = [
['scrot', '/tmp/screen.png'],
[
'convert',
'/tmp/screen.png',
'-scale', '10%',
'-scale', '1000%',
... | 19.606061 | 58 | 0.474498 | 66 | 647 | 4.5 | 0.575758 | 0.151515 | 0.20202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016867 | 0.358578 | 647 | 32 | 59 | 20.21875 | 0.698795 | 0.111283 | 0 | 0 | 0 | 0 | 0.223614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.181818 | 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 |
3f51d57f2804c3a9504bc512e2c6962d21a68b41 | 448 | py | Python | setup.py | haiyangd/XML2Dict | c0c587738ecc23e88deb300343a2032a5aafa830 | [
"Apache-2.0"
] | 18 | 2015-05-12T19:30:35.000Z | 2021-09-15T14:00:22.000Z | setup.py | haiyangd/XML2Dict | c0c587738ecc23e88deb300343a2032a5aafa830 | [
"Apache-2.0"
] | 8 | 2015-07-11T11:15:43.000Z | 2022-03-25T07:25:17.000Z | setup.py | haiyangd/XML2Dict | c0c587738ecc23e88deb300343a2032a5aafa830 | [
"Apache-2.0"
] | 22 | 2015-06-07T10:52:05.000Z | 2022-03-22T08:19:07.000Z | #!/usr/bin/env python
# -*- conding=utf-8 -*-
from distutils.core import setup
setup(name='XML2Dict',
version='0.2.2',
author='Spring Mc',
author_email='Heresy.Mc@gmail.com',
py_modules=['encoder', 'decoder'],
url='https://github.com/mcspring/XML2Dict',
license='http://www.apache.org/licenses/... | 29.866667 | 62 | 0.676339 | 62 | 448 | 4.83871 | 0.822581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020672 | 0.136161 | 448 | 14 | 63 | 32 | 0.754522 | 0.09375 | 0 | 0 | 0 | 0 | 0.467822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f55f2874d05f3a9b5cc7ef7caafa620ab5f6367 | 11,749 | py | Python | test/queryservice_tests/test_env.py | wubx/vitess | dd88b76ee6ff747f04e5af2bd5796256f8344727 | [
"BSD-3-Clause"
] | 1 | 2018-08-30T09:09:53.000Z | 2018-08-30T09:09:53.000Z | test/queryservice_tests/test_env.py | waderly/vitess | ab3fc2390dfd82fb9b7eb9cf2584ce0fb9aa193d | [
"BSD-3-Clause"
] | null | null | null | test/queryservice_tests/test_env.py | waderly/vitess | ab3fc2390dfd82fb9b7eb9cf2584ce0fb9aa193d | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright 2012, Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can
# be found in the LICENSE file.
import contextlib
import json
import MySQLdb as mysql
import os
import shutil
import subprocess
import time
import urllib2
import uuid
from vt... | 29.594458 | 125 | 0.635714 | 1,457 | 11,749 | 5.00755 | 0.218257 | 0.012336 | 0.020559 | 0.040296 | 0.413377 | 0.362664 | 0.333196 | 0.324424 | 0.292489 | 0.278783 | 0 | 0.007402 | 0.229551 | 11,749 | 396 | 126 | 29.669192 | 0.798608 | 0.045195 | 0 | 0.397554 | 0 | 0 | 0.186256 | 0.021419 | 0 | 0 | 0 | 0.002525 | 0 | 0 | null | null | 0.018349 | 0.051988 | null | null | 0.009174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3f5db5fa836c97004ff87f2d68a2965ef23626d2 | 16,132 | py | Python | snakebids/app.py | akhanf/snakebids | 441d27a11ea43b6284a8e16040dd76f613e67c66 | [
"MIT"
] | 8 | 2021-05-17T19:05:29.000Z | 2022-03-18T17:03:41.000Z | snakebids/app.py | akhanf/snakebids | 441d27a11ea43b6284a8e16040dd76f613e67c66 | [
"MIT"
] | 89 | 2020-12-11T16:40:08.000Z | 2022-03-31T21:48:58.000Z | snakebids/app.py | akhanf/snakebids | 441d27a11ea43b6284a8e16040dd76f613e67c66 | [
"MIT"
] | 3 | 2021-02-24T21:02:44.000Z | 2022-03-16T16:25:51.000Z | #!/usr/bin/env python3
"""Tools to generate a Snakemake-based BIDS app."""
import os
import pathlib
import subprocess
import argparse
import logging
import sys
import yaml
import bids
import snakemake
from snakemake.io import load_configfile
# We define Path here in addition to pathlib to put both variables in globa... | 34.618026 | 106 | 0.590069 | 1,824 | 16,132 | 5.063048 | 0.212171 | 0.037899 | 0.023389 | 0.026205 | 0.198376 | 0.144559 | 0.099513 | 0.077315 | 0.077315 | 0.033351 | 0 | 0.002755 | 0.324882 | 16,132 | 465 | 107 | 34.692473 | 0.845193 | 0.297049 | 0 | 0.122047 | 1 | 0 | 0.154562 | 0.033394 | 0 | 0 | 0 | 0.002151 | 0 | 1 | 0.043307 | false | 0.003937 | 0.055118 | 0 | 0.133858 | 0.007874 | 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 |
3f5de1685e6e442c41efea431c35ecba81d1d6d8 | 5,927 | py | Python | server/services.py | equitypay/api-server | 6830501351c944c075e4792f941b23c9ff63e029 | [
"MIT"
] | 1 | 2021-11-07T10:05:23.000Z | 2021-11-07T10:05:23.000Z | server/services.py | equitypay/api-server | 6830501351c944c075e4792f941b23c9ff63e029 | [
"MIT"
] | null | null | null | server/services.py | equitypay/api-server | 6830501351c944c075e4792f941b23c9ff63e029 | [
"MIT"
] | null | null | null | from .models import ChartTransactions
from .models import ChartVolume
from .models import Transaction
from .models import Address
from .models import Balance
from .models import Output
from .models import Input
from .models import Token
from .models import Block
from .models import Index
from pony import orm
class Ind... | 27.826291 | 103 | 0.633541 | 650 | 5,927 | 5.730769 | 0.16 | 0.120268 | 0.042953 | 0.05557 | 0.340134 | 0.212617 | 0.140671 | 0.140671 | 0.096644 | 0.051544 | 0 | 0.006444 | 0.266914 | 5,927 | 212 | 104 | 27.957547 | 0.850863 | 0 | 0 | 0.337143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.182857 | false | 0 | 0.062857 | 0.148571 | 0.485714 | 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 |
3f652a55d8bea95be3bc47e1df9488d674339c23 | 64,099 | py | Python | CoursMagistral_3.py | Naereen/ALGO1-Info1-2019 | 5732cbbc5a6b9cedd7228ff64ad1f43001d4186b | [
"MIT"
] | 7 | 2019-09-02T15:55:08.000Z | 2021-02-03T17:46:25.000Z | CoursMagistral_3.py | Naereen/ALGO1-Info1-2019 | 5732cbbc5a6b9cedd7228ff64ad1f43001d4186b | [
"MIT"
] | null | null | null | CoursMagistral_3.py | Naereen/ALGO1-Info1-2019 | 5732cbbc5a6b9cedd7228ff64ad1f43001d4186b | [
"MIT"
] | 2 | 2020-08-11T11:21:32.000Z | 2021-12-26T18:51:17.000Z | #!/usr/bin/env python
# coding: utf-8
# # Table of Contents
# <p><div class="lev1 toc-item"><a href="#ALGO1-:-Introduction-à-l'algorithmique" data-toc-modified-id="ALGO1-:-Introduction-à-l'algorithmique-1"><span class="toc-item-num">1 </span><a href="https://perso.crans.org/besson/teach/info1_algo1_2019/" ... | 34.62939 | 9,698 | 0.642491 | 10,649 | 64,099 | 3.76702 | 0.113062 | 0.022535 | 0.016527 | 0.021613 | 0.646766 | 0.60172 | 0.553234 | 0.508289 | 0.477751 | 0.457186 | 0 | 0.045469 | 0.190253 | 64,099 | 1,850 | 9,699 | 34.648108 | 0.727343 | 0.500304 | 0 | 0.522816 | 0 | 0.009126 | 0.134368 | 0.03207 | 0 | 0 | 0 | 0 | 0.022164 | 1 | 0.057366 | false | 0 | 0.022164 | 0.007823 | 0.169492 | 0.024772 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3f6785aefa0a71f8012160917be59e3009a8a36e | 4,147 | py | Python | autodeploy/routers/_predict.py | kartik4949/AutoDeploy | af7b3b32954a574307849ababb05fa2f4a80f52e | [
"MIT"
] | 46 | 2021-08-11T12:24:15.000Z | 2022-01-17T19:34:48.000Z | autodeploy/routers/_predict.py | kartik4949/AutoDeploy | af7b3b32954a574307849ababb05fa2f4a80f52e | [
"MIT"
] | 17 | 2021-08-11T16:06:55.000Z | 2021-10-05T09:44:57.000Z | autodeploy/routers/_predict.py | kartik4949/AutoDeploy | af7b3b32954a574307849ababb05fa2f4a80f52e | [
"MIT"
] | 10 | 2021-08-11T15:57:29.000Z | 2021-12-04T16:44:13.000Z | ''' a simple prediction router. '''
import traceback
import argparse
import os
import requests
from typing import List, Optional, Union, Text, Any
import json
from datetime import datetime
import uvicorn
import validators
import pika
import numpy as np
from fastapi import APIRouter
from fastapi import HTTPException
fr... | 32.653543 | 101 | 0.733542 | 502 | 4,147 | 5.850598 | 0.294821 | 0.051073 | 0.057201 | 0.045284 | 0.164794 | 0.110998 | 0.082397 | 0.032005 | 0.032005 | 0.032005 | 0 | 0.000298 | 0.190981 | 4,147 | 126 | 102 | 32.912698 | 0.875112 | 0.151194 | 0 | 0.082353 | 0 | 0 | 0.067669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047059 | false | 0 | 0.352941 | 0 | 0.435294 | 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 |
3f6a1708694d8bff7dc78e3ea53cd3712392570c | 1,886 | py | Python | {{cookiecutter.repo_dir}}/{{cookiecutter.package_dir}}/api/dummy.py | Themimitoof/cookiecutter-fastapi-postgresql-celery | 77d3cb8650af03145a492f51eafa2f3145bd9af4 | [
"MIT"
] | null | null | null | {{cookiecutter.repo_dir}}/{{cookiecutter.package_dir}}/api/dummy.py | Themimitoof/cookiecutter-fastapi-postgresql-celery | 77d3cb8650af03145a492f51eafa2f3145bd9af4 | [
"MIT"
] | null | null | null | {{cookiecutter.repo_dir}}/{{cookiecutter.package_dir}}/api/dummy.py | Themimitoof/cookiecutter-fastapi-postgresql-celery | 77d3cb8650af03145a492f51eafa2f3145bd9af4 | [
"MIT"
] | null | null | null | from typing import Any, Dict, List
from fastapi import APIRouter, HTTPException
from {{cookiecutter.package_dir}} import models
from {{cookiecutter.package_dir}}.backend.tasks.dummy import dummy_created
from {{cookiecutter.package_dir}}.models import DBSession
from {{cookiecutter.package_dir}}.schemas.dummy import (
... | 21.678161 | 74 | 0.672322 | 227 | 1,886 | 5.475771 | 0.281938 | 0.04827 | 0.074014 | 0.083669 | 0.269509 | 0.213194 | 0.213194 | 0.213194 | 0.213194 | 0.213194 | 0 | 0.008558 | 0.194592 | 1,886 | 86 | 75 | 21.930233 | 0.809743 | 0 | 0 | 0.261905 | 0 | 0 | 0.033604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | 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 |
3f6f301ddca8f7caadb849bccd11bc66635d95ba | 2,200 | py | Python | 0.10.0/conanfile.py | swissdotnet-sa/conan-rabbitmq-c | ae9ac022861a362559440c0fbe15c86da75829d6 | [
"MIT"
] | null | null | null | 0.10.0/conanfile.py | swissdotnet-sa/conan-rabbitmq-c | ae9ac022861a362559440c0fbe15c86da75829d6 | [
"MIT"
] | null | null | null | 0.10.0/conanfile.py | swissdotnet-sa/conan-rabbitmq-c | ae9ac022861a362559440c0fbe15c86da75829d6 | [
"MIT"
] | null | null | null |
from conans import ConanFile, CMake, tools
import os
class RabbitmqCConan(ConanFile):
name = 'rabbitmq-c'
version = '0.10.0'
license = 'MIT'
homepage = 'https://github.com/alanxz/rabbitmq-c'
description = 'RabbitMQ C AMQP client library'
author = 'Simon Lepasteur <simon.lepasteur@swissdotnet.c... | 37.931034 | 152 | 0.632727 | 262 | 2,200 | 5.20229 | 0.438931 | 0.035216 | 0.047689 | 0.041086 | 0.088775 | 0.059428 | 0.059428 | 0 | 0 | 0 | 0 | 0.02807 | 0.222727 | 2,200 | 57 | 153 | 38.596491 | 0.769006 | 0.246364 | 0 | 0 | 0 | 0 | 0.25365 | 0.072384 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.057143 | 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 |
3f71ec53f440ec7ea6ae69fdb54bfa0becf28f82 | 1,257 | py | Python | dreamtable/processors/controllers/egg_tool.py | vreon/dreamtable | e93b12aa657d6dbf5f3552bd451a6f484293799c | [
"MIT"
] | 1 | 2020-08-25T13:12:15.000Z | 2020-08-25T13:12:15.000Z | dreamtable/processors/controllers/egg_tool.py | vreon/dreamtable | e93b12aa657d6dbf5f3552bd451a6f484293799c | [
"MIT"
] | null | null | null | dreamtable/processors/controllers/egg_tool.py | vreon/dreamtable | e93b12aa657d6dbf5f3552bd451a6f484293799c | [
"MIT"
] | null | null | null | import random
import esper
from dreamtable import components as c
from dreamtable.constants import PositionSpace, Tool
from dreamtable.hal import HAL, MouseButton, Vec2
class EggToolController(esper.Processor):
def process(self, hal: HAL) -> None:
if not self.world.context.tool == Tool.EGG:
... | 35.914286 | 85 | 0.599841 | 146 | 1,257 | 5.075342 | 0.60274 | 0.05668 | 0.043185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.303103 | 1,257 | 34 | 86 | 36.970588 | 0.818493 | 0.136038 | 0 | 0 | 0 | 0 | 0.036969 | 0.026802 | 0 | 0 | 0 | 0.029412 | 0 | 1 | 0.04 | false | 0 | 0.2 | 0 | 0.32 | 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 |
3f73c15cdae2cba4d065566616ebed47db6cfc78 | 13,331 | py | Python | ReanalysisRetreival_orig/GOA_Winds/GOA_Winds_StormPatterns.py | shaunwbell/FOCI_Analysis | dde4a5f0badd76fe5719575d5c138813ab156b70 | [
"MIT"
] | null | null | null | ReanalysisRetreival_orig/GOA_Winds/GOA_Winds_StormPatterns.py | shaunwbell/FOCI_Analysis | dde4a5f0badd76fe5719575d5c138813ab156b70 | [
"MIT"
] | null | null | null | ReanalysisRetreival_orig/GOA_Winds/GOA_Winds_StormPatterns.py | shaunwbell/FOCI_Analysis | dde4a5f0badd76fe5719575d5c138813ab156b70 | [
"MIT"
] | null | null | null | #!/usr/bin/env
"""
GOA_Winds_StormPatterns.py
Compare Gorepoint/globec winds (along shore) to telleconnection indices
GorePoint - 58deg 58min N, 150deg 56min W
and Globec3 59.273701N, 148.9653W
Files are created by GOA_Winds_NARR_model_prep.py
-Filtered NARR winds with a triangular filter (1/4, 1/2, ... | 40.033033 | 152 | 0.608431 | 1,929 | 13,331 | 4.030067 | 0.209953 | 0.047337 | 0.058657 | 0.029329 | 0.501415 | 0.452277 | 0.410857 | 0.406226 | 0.361719 | 0.351942 | 0 | 0.056667 | 0.212362 | 13,331 | 333 | 153 | 40.033033 | 0.683714 | 0.080564 | 0 | 0.283654 | 0 | 0.009615 | 0.091916 | 0.02464 | 0 | 0 | 0 | 0.003003 | 0 | 0 | null | null | 0 | 0.033654 | null | null | 0.004808 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3f73e47666d771a52ea49315ea2de587afb47032 | 1,057 | py | Python | src/sample/categories/migrations/0001_initial.py | fierroformo/django-app | 84d5cc3b92ab3091c92bcbb1807295c90150d982 | [
"Apache-2.0"
] | null | null | null | src/sample/categories/migrations/0001_initial.py | fierroformo/django-app | 84d5cc3b92ab3091c92bcbb1807295c90150d982 | [
"Apache-2.0"
] | null | null | null | src/sample/categories/migrations/0001_initial.py | fierroformo/django-app | 84d5cc3b92ab3091c92bcbb1807295c90150d982 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.3 on 2019-07-28 19:11
from django.db import migrations, models
import sample.categories.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | 33.03125 | 119 | 0.580889 | 106 | 1,057 | 5.641509 | 0.584906 | 0.055184 | 0.060201 | 0.083612 | 0.093645 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023968 | 0.289499 | 1,057 | 31 | 120 | 34.096774 | 0.772304 | 0.042573 | 0 | 0 | 1 | 0 | 0.108911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58ca5ef1dda3e2f41c7770864fb85651e040fea2 | 3,144 | py | Python | codebase/modules/configuration/folder_structure.py | iosifache/dike | 9dae16a92b30af804be2a0ab0664cd3654058446 | [
"MIT"
] | 1 | 2021-07-13T08:05:16.000Z | 2021-07-13T08:05:16.000Z | codebase/modules/configuration/folder_structure.py | iosifache/dike | 9dae16a92b30af804be2a0ab0664cd3654058446 | [
"MIT"
] | null | null | null | codebase/modules/configuration/folder_structure.py | iosifache/dike | 9dae16a92b30af804be2a0ab0664cd3654058446 | [
"MIT"
] | null | null | null | """Folder structure of the platform."""
class Folders:
"""Class containing the relevant folders of the platforms.
The members without underscore at the beginning are the exported (useful)
ones. The tests folders are omitted.
"""
_ROOT = "/opt/dike/"
_CODEBASE = _ROOT + "codebase/"
_DATA ... | 46.235294 | 80 | 0.711514 | 355 | 3,144 | 5.873239 | 0.270423 | 0.084412 | 0.064748 | 0.069065 | 0.21247 | 0.070024 | 0.070024 | 0.070024 | 0.070024 | 0.070024 | 0 | 0 | 0.199746 | 3,144 | 67 | 81 | 46.925373 | 0.828696 | 0.159987 | 0 | 0 | 0 | 0 | 0.187452 | 0.039646 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.93617 | 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 |
58d00819bb490b6731be7a760fc390e0e004c908 | 7,432 | py | Python | tinyboot.py | kragen/stoneknifeforth | 35e919e2fd93b6de6ff53028201692c6177b7d28 | [
"CC0-1.0"
] | 322 | 2015-02-03T12:19:06.000Z | 2022-03-28T21:40:37.000Z | tinyboot.py | christianbundy/stoneknifeforth | 35e919e2fd93b6de6ff53028201692c6177b7d28 | [
"CC0-1.0"
] | 8 | 2017-07-19T10:44:40.000Z | 2020-06-28T17:54:09.000Z | tinyboot.py | christianbundy/stoneknifeforth | 35e919e2fd93b6de6ff53028201692c6177b7d28 | [
"CC0-1.0"
] | 23 | 2015-02-13T18:24:54.000Z | 2021-02-08T13:34:32.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Tiny bootstrapping interpreter for the first bootstrap stage.
Implements an extremely minimal Forth-like language, used to write
tinyboot1.tbf1.
The theory is that first we ‘compile’ the program by reading through
it to find compile-time definitions and actions, which sets... | 26.077193 | 73 | 0.647874 | 990 | 7,432 | 4.685859 | 0.266667 | 0.090537 | 0.025652 | 0.030179 | 0.155853 | 0.093986 | 0.039233 | 0.039233 | 0.02285 | 0 | 0 | 0.020936 | 0.235199 | 7,432 | 284 | 74 | 26.169014 | 0.795215 | 0.214882 | 0 | 0.161616 | 0 | 0 | 0.061825 | 0 | 0 | 0 | 0.005152 | 0 | 0.020202 | 1 | 0.217172 | false | 0.020202 | 0.005051 | 0.010101 | 0.262626 | 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 |
58d1fc4df3ced28f5f316bd85233ddf8bbb608c8 | 198 | py | Python | tribolium_clustering/two_d_processing/_random_cmap.py | Cryaaa/tribolium-clustering | f5751ec8c007e95e8a9688d2d8e34508b04f0822 | [
"BSD-3-Clause"
] | null | null | null | tribolium_clustering/two_d_processing/_random_cmap.py | Cryaaa/tribolium-clustering | f5751ec8c007e95e8a9688d2d8e34508b04f0822 | [
"BSD-3-Clause"
] | null | null | null | tribolium_clustering/two_d_processing/_random_cmap.py | Cryaaa/tribolium-clustering | f5751ec8c007e95e8a9688d2d8e34508b04f0822 | [
"BSD-3-Clause"
] | null | null | null | def random_cmap(seed = 1):
import numpy as np
np.random.seed(seed)
black = np.zeros((1,3), dtype=float)
randcmap = np.append(black,(np.random.rand(255,3)),axis=0)
return randcmap | 33 | 62 | 0.656566 | 33 | 198 | 3.909091 | 0.636364 | 0.124031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049689 | 0.186869 | 198 | 6 | 63 | 33 | 0.751553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58dc24297318551df255362414c57d43e16b8c1e | 2,573 | py | Python | ext_yaml_configobj.py | blockchainhelppro/Blockchain-Cement-plant- | e4e6bab8f3b34cc3aba3ac1c5b66374ee2ad7f40 | [
"MIT"
] | 95 | 2018-06-05T10:49:32.000Z | 2019-12-31T11:07:36.000Z | ext_yaml_configobj.py | blockchainhelppro/Blockchain-Cement-plant- | e4e6bab8f3b34cc3aba3ac1c5b66374ee2ad7f40 | [
"MIT"
] | 22 | 2018-06-05T10:58:59.000Z | 2020-07-31T12:13:19.000Z | ext_yaml_configobj.py | blockchainhelppro/Blockchain-Cement-plant- | e4e6bab8f3b34cc3aba3ac1c5b66374ee2ad7f40 | [
"MIT"
] | 21 | 2018-06-04T12:50:27.000Z | 2020-11-05T10:55:28.000Z | """
The Yaml ConfigObj Extension is a combination of the
:class:`YamlConfigHandler` and :class:`ConfigObjConfigHandler` which allows
the application to read Yaml configuration files into a ConfigObj based
configuration handler.
Requirements
------------
* ConfigObj (``pip install configobj``)
* pyYaml (``pip instal... | 24.046729 | 78 | 0.665371 | 291 | 2,573 | 5.790378 | 0.47079 | 0.030861 | 0.026113 | 0.0273 | 0.036795 | 0.036795 | 0 | 0 | 0 | 0 | 0 | 0.000505 | 0.230859 | 2,573 | 106 | 79 | 24.273585 | 0.850935 | 0.729887 | 0 | 0 | 0 | 0 | 0.024138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0 | 0.642857 | 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 |
58dcaed0016cd158f21262207adb4713491c85db | 188 | py | Python | baekjoon/8393.py | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | baekjoon/8393.py | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | baekjoon/8393.py | GihwanKim/Baekjoon | 52eb2bf80bb1243697858445e5b5e2d50d78be4e | [
"MIT"
] | null | null | null | """
8393 : 합
URL : https://www.acmicpc.net/problem/8393
Input :
3
Output :
6
"""
n = int(input())
sum = 0
for i in range(1, n + 1):
sum += i
print(sum)
| 13.428571 | 46 | 0.473404 | 29 | 188 | 3.068966 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107438 | 0.356383 | 188 | 13 | 47 | 14.461538 | 0.628099 | 0.425532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
58df13d5363d5a0ed3c652084b697c81a431e9d9 | 712 | py | Python | db/postgres.py | BernarBerdikul/Auth_sprint_2 | 9286803f7e073456b2f02f2072072773331b9e5b | [
"BSD-3-Clause"
] | null | null | null | db/postgres.py | BernarBerdikul/Auth_sprint_2 | 9286803f7e073456b2f02f2072072773331b9e5b | [
"BSD-3-Clause"
] | null | null | null | db/postgres.py | BernarBerdikul/Auth_sprint_2 | 9286803f7e073456b2f02f2072072773331b9e5b | [
"BSD-3-Clause"
] | null | null | null | import os
from dotenv import load_dotenv
from flask_sqlalchemy import SQLAlchemy
from core import config
load_dotenv()
DB_USER: str = os.getenv("DB_USER")
DB_PASS: str = os.getenv("DB_PASS")
DB_HOST: str = os.getenv("DB_HOST")
DB_PORT: int = int(os.getenv("DB_PORT"))
if config.TESTING:
"""test db"""
DB_TE... | 23.733333 | 87 | 0.661517 | 112 | 712 | 3.901786 | 0.25 | 0.10984 | 0.1373 | 0.148741 | 0.398169 | 0.279176 | 0.279176 | 0.279176 | 0.279176 | 0.279176 | 0 | 0.003413 | 0.176966 | 712 | 29 | 88 | 24.551724 | 0.742321 | 0 | 0 | 0.190476 | 0 | 0 | 0.282799 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.190476 | 0 | 0.190476 | 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 |
58e385b4bf1a6820674fe3c92302397beadaf432 | 323 | py | Python | tools/can_async_example.py | deafloo/ODrive | bae459bb71b39c0169f4b8a322b7371eada58112 | [
"MIT"
] | 1,068 | 2016-05-31T22:39:08.000Z | 2020-12-20T22:13:01.000Z | tools/can_async_example.py | deafloo/ODrive | bae459bb71b39c0169f4b8a322b7371eada58112 | [
"MIT"
] | 389 | 2017-10-16T09:44:20.000Z | 2020-12-21T14:19:38.000Z | tools/can_async_example.py | deafloo/ODrive | bae459bb71b39c0169f4b8a322b7371eada58112 | [
"MIT"
] | 681 | 2016-06-12T01:41:00.000Z | 2020-12-21T12:49:32.000Z | import can
bus1 = can.interface.Bus('can0', bustype='virtual')
bus2 = can.interface.Bus('can0', bustype='virtual')
msg1 = can.Message(arbitration_id=0xabcde, data=[1,2,3])
bus1.send(msg1)
msg2 = bus2.recv()
print(hex(msg1.arbitration_id))
print(hex(msg2.arbitration_id))
assert msg1.arbitration_id == msg2.arbitration... | 26.916667 | 56 | 0.752322 | 49 | 323 | 4.857143 | 0.489796 | 0.273109 | 0.12605 | 0.159664 | 0.277311 | 0.277311 | 0 | 0 | 0 | 0 | 0 | 0.057239 | 0.080495 | 323 | 12 | 57 | 26.916667 | 0.744108 | 0 | 0 | 0 | 0 | 0 | 0.067901 | 0 | 0 | 0 | 0.021605 | 0 | 0.111111 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.222222 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58ef535c34bd03a37a3d451afb4b16dadd41a904 | 336 | py | Python | nonebot_plugin_bam/database/tables/bilibili_user.py | 7sDream/nonebot_plugin_bam | 9d19856661a75484440efff8d77094390230f4c9 | [
"MIT"
] | 4 | 2021-02-08T16:18:12.000Z | 2021-12-28T07:13:51.000Z | nonebot_plugin_bam/database/tables/bilibili_user.py | 7sDream/nonebot_plugin_bam | 9d19856661a75484440efff8d77094390230f4c9 | [
"MIT"
] | null | null | null | nonebot_plugin_bam/database/tables/bilibili_user.py | 7sDream/nonebot_plugin_bam | 9d19856661a75484440efff8d77094390230f4c9 | [
"MIT"
] | null | null | null | from peewee import BigIntegerField, TextField
from ..db import BaseModel
class BilibiliUser(BaseModel):
uid = BigIntegerField(primary_key=True)
nickname = TextField(index=True, unique=True)
rid = BigIntegerField(index=True) # rid = 0 means no room, so can't unique
class Meta:
table_name = "... | 25.846154 | 79 | 0.723214 | 42 | 336 | 5.714286 | 0.690476 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00369 | 0.193452 | 336 | 12 | 80 | 28 | 0.881919 | 0.113095 | 0 | 0 | 0 | 0 | 0.047297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
58f09555b67ae6d5f7ddf1a8cdefe6b13c41c554 | 391 | py | Python | app/api/endpoints/devices.py | ninoseki/uzen | 93726f22f43902e17b22dd36142dac05171d0d84 | [
"MIT"
] | 76 | 2020-02-27T06:36:27.000Z | 2022-03-10T20:18:03.000Z | app/api/endpoints/devices.py | ninoseki/uzen | 93726f22f43902e17b22dd36142dac05171d0d84 | [
"MIT"
] | 33 | 2020-03-13T02:04:14.000Z | 2022-03-04T02:06:11.000Z | app/api/endpoints/devices.py | ninoseki/uzen | 93726f22f43902e17b22dd36142dac05171d0d84 | [
"MIT"
] | 6 | 2020-03-17T16:42:25.000Z | 2021-04-27T06:35:46.000Z | from typing import List
from fastapi import APIRouter
from app import schemas
from app.utils.browser import get_devices as _get_devices
router = APIRouter()
@router.get(
"/",
response_model=List[schemas.Device],
summary="Get a list of devices",
description="Get a list of devices supported to use",
... | 20.578947 | 57 | 0.731458 | 55 | 391 | 5.072727 | 0.472727 | 0.143369 | 0.121864 | 0.071685 | 0.121864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 391 | 18 | 58 | 21.722222 | 0.86646 | 0 | 0 | 0 | 0 | 0 | 0.153453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0.076923 | 0.461538 | 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 |
58f86818916dbe9fe9b2021f3e200dcfed0bdf05 | 8,366 | py | Python | src/udemy_dl/udemy_dl.py | krishnaramg3/hello1 | b14836c9da94f0565aefd72cc6a736645db1e3a9 | [
"Unlicense"
] | 17 | 2015-08-31T23:54:43.000Z | 2021-04-21T15:25:04.000Z | src/udemy_dl/udemy_dl.py | krishnaramg3/hello1 | b14836c9da94f0565aefd72cc6a736645db1e3a9 | [
"Unlicense"
] | null | null | null | src/udemy_dl/udemy_dl.py | krishnaramg3/hello1 | b14836c9da94f0565aefd72cc6a736645db1e3a9 | [
"Unlicense"
] | 17 | 2015-10-08T05:01:43.000Z | 2021-06-23T06:20:09.000Z | #!/usr/bin/env python
# -*- coding: utf8 -*-
import requests
import requests.sessions
import argparse
import getpass
import sys
import re
import os
import json
from .download import download, DLException
from ._version import __version__
class Session:
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac... | 35.752137 | 210 | 0.634473 | 1,062 | 8,366 | 4.838041 | 0.237288 | 0.044375 | 0.033281 | 0.029973 | 0.201051 | 0.139354 | 0.121837 | 0.064617 | 0.017517 | 0.017517 | 0 | 0.01089 | 0.231652 | 8,366 | 233 | 211 | 35.905579 | 0.788426 | 0.036577 | 0 | 0.069767 | 0 | 0.017442 | 0.2212 | 0.011681 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0.05814 | 0.05814 | 0.017442 | 0.25 | 0.05814 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
58fb641ddef7dd56129d8590322e1acc160f4372 | 170 | py | Python | exercises/ja/solution_02_10_01.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 2,085 | 2019-04-17T13:10:40.000Z | 2022-03-30T21:51:46.000Z | exercises/ja/solution_02_10_01.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 79 | 2019-04-18T14:42:55.000Z | 2022-03-07T08:15:43.000Z | exercises/ja/solution_02_10_01.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 361 | 2019-04-17T13:34:32.000Z | 2022-03-28T04:42:45.000Z | import spacy
nlp = spacy.load("ja_core_news_md")
doc1 = nlp("暖かい夏の日です")
doc2 = nlp("外は晴れています")
# doc1とdoc2の類似度を取得
similarity = doc1.similarity(doc2)
print(similarity)
| 15.454545 | 35 | 0.747059 | 22 | 170 | 5.636364 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.117647 | 170 | 10 | 36 | 17 | 0.786667 | 0.094118 | 0 | 0 | 0 | 0 | 0.203947 | 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 |
58ff33a342cc2d42a9a4bce7cac643f208344701 | 6,388 | py | Python | Scripts/run_corrcal_per_freq.py | UKZN-Astronomy/hera_corrcal | 1a3167dd386ed40a7171d1b0ea2cacac7e132806 | [
"MIT"
] | null | null | null | Scripts/run_corrcal_per_freq.py | UKZN-Astronomy/hera_corrcal | 1a3167dd386ed40a7171d1b0ea2cacac7e132806 | [
"MIT"
] | 3 | 2020-07-27T11:45:29.000Z | 2020-08-12T08:20:49.000Z | Scripts/run_corrcal_per_freq.py | UKZN-Astronomy/hera_corrcal | 1a3167dd386ed40a7171d1b0ea2cacac7e132806 | [
"MIT"
] | 1 | 2019-10-29T04:26:20.000Z | 2019-10-29T04:26:20.000Z | #This function compute antenna gain solution per frequency using correlation calibration (corrcal)
from scipy.optimize import fmin_cg
import numpy as np
import matplotlib.pyplot as plt
import corrcal2 as corrcal
from scipy import optimize
import time
def get_corrcal_gainsol(data,ant1,ant2,gain_int,noise,sky_cov_vecs... | 25.149606 | 161 | 0.674076 | 989 | 6,388 | 4.180991 | 0.195147 | 0.0474 | 0.021765 | 0.024184 | 0.387183 | 0.321886 | 0.233857 | 0.205804 | 0.198791 | 0.198791 | 0 | 0.012338 | 0.213369 | 6,388 | 253 | 162 | 25.249012 | 0.810547 | 0 | 0 | 0.273585 | 0 | 0 | 0.013832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056604 | null | null | 0.009434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58ffffb0e97de44d9000dad238f74e0e6962a2f6 | 7,858 | py | Python | pacemaker-django/community/views.py | blesk011/pacemaker-django | 4311537f7025b3d7b49bec0052b04fc342af54a0 | [
"MIT"
] | null | null | null | pacemaker-django/community/views.py | blesk011/pacemaker-django | 4311537f7025b3d7b49bec0052b04fc342af54a0 | [
"MIT"
] | null | null | null | pacemaker-django/community/views.py | blesk011/pacemaker-django | 4311537f7025b3d7b49bec0052b04fc342af54a0 | [
"MIT"
] | null | null | null | from django.views.generic import ListView, DetailView, TemplateView
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.urls import reverse_lazy
from tagging.views import TaggedObjectList
from django.contrib.auth.mixins import LoginRequiredMixin
from community.models import PostIF,Post... | 34.31441 | 111 | 0.671672 | 938 | 7,858 | 5.45629 | 0.186567 | 0.036538 | 0.024619 | 0.031262 | 0.682102 | 0.656702 | 0.621532 | 0.599453 | 0.576397 | 0.556858 | 0 | 0.002598 | 0.21634 | 7,858 | 228 | 112 | 34.464912 | 0.828516 | 0.135912 | 0 | 0.662162 | 0 | 0 | 0.100222 | 0.03997 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101351 | false | 0 | 0.074324 | 0.040541 | 0.628378 | 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 |
4502b293850eacc066ed14cfa3fa36e87c5d1160 | 4,217 | py | Python | flask/app/tables.py | Vivikar/bMRI_analyzer | 23f362c94c19773a398fca53bf261396b0011b59 | [
"MIT"
] | 1 | 2019-12-09T15:20:54.000Z | 2019-12-09T15:20:54.000Z | flask/app/tables.py | Vivikar/bMRI_analyzer | 23f362c94c19773a398fca53bf261396b0011b59 | [
"MIT"
] | 2 | 2021-08-25T15:52:45.000Z | 2022-02-10T01:07:45.000Z | flask/app/tables.py | Vivikar/bMRI_analyzer | 23f362c94c19773a398fca53bf261396b0011b59 | [
"MIT"
] | null | null | null | from flask_table import Table, Col, LinkCol, ButtonCol, BoolCol
from flask import Markup, url_for
from app.db_classes import Therapists, Patients, ImageTypes, TumorTypes
class TherpistCol(Col):
#therap_names = [fname + " " + lname for _,fname, lname in Patients.query.join(Therapists, Patients.therapist_id==Therap... | 45.344086 | 196 | 0.690301 | 554 | 4,217 | 5.070397 | 0.191336 | 0.02492 | 0.041652 | 0.03204 | 0.565682 | 0.528658 | 0.482378 | 0.47241 | 0.402278 | 0.402278 | 0 | 0 | 0.171449 | 4,217 | 92 | 197 | 45.836957 | 0.80395 | 0.229073 | 0 | 0.333333 | 0 | 0 | 0.148628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106061 | false | 0 | 0.045455 | 0 | 0.757576 | 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 |
450c9d2b7d6e24923e286ce0a67b041ec14420aa | 1,021 | py | Python | benchipfs/ipfs_benchmark_server.py | chunchuan-wang/droplet-engine | 5c2dbac90aa3bde837ed4989ecd78235e5d9ef8e | [
"Apache-2.0"
] | 10 | 2020-10-14T14:22:20.000Z | 2022-03-16T11:33:14.000Z | benchipfs/ipfs_benchmark_server.py | chunchuan-wang/droplet-engine | 5c2dbac90aa3bde837ed4989ecd78235e5d9ef8e | [
"Apache-2.0"
] | null | null | null | benchipfs/ipfs_benchmark_server.py | chunchuan-wang/droplet-engine | 5c2dbac90aa3bde837ed4989ecd78235e5d9ef8e | [
"Apache-2.0"
] | 4 | 2020-08-30T12:40:40.000Z | 2021-08-03T15:27:12.000Z | #© 2017-2020, ETH Zurich, D-INFK, lubu@inf.ethz.ch
from flask import Flask
from flask import request, g
from ipfs_util import run_ipfs_load
from do_benchmark import store_chunks
import json
import argparse
FILE = "bench"
app = Flask("IPFS_Benchmark_Server")
@app.route('/ipfs_bench', methods=['POST'])
def run_bench... | 29.171429 | 87 | 0.65524 | 146 | 1,021 | 4.431507 | 0.554795 | 0.009274 | 0.046368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024722 | 0.20764 | 1,021 | 35 | 88 | 29.171429 | 0.773795 | 0.047992 | 0 | 0 | 0 | 0 | 0.114198 | 0.021605 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.