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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
870809a622678f66861521a9ea326be99a0d5ece | 23,522 | py | Python | volatility/volatility/plugins/volshell.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | 2 | 2018-07-16T13:30:40.000Z | 2018-07-17T12:02:05.000Z | volatility/volatility/plugins/volshell.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | null | null | null | volatility/volatility/plugins/volshell.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | null | null | null | # Volatility
# Copyright (C) 2008-2013 Volatility Foundation
#
# This file is part of Volatility.
#
# Volatility is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your o... | 42.612319 | 244 | 0.529292 | 2,646 | 23,522 | 4.643991 | 0.207483 | 0.006917 | 0.015218 | 0.011963 | 0.240804 | 0.207926 | 0.173584 | 0.168376 | 0.160075 | 0.135661 | 0 | 0.020206 | 0.38143 | 23,522 | 551 | 245 | 42.689655 | 0.82433 | 0.071423 | 0 | 0.276074 | 0 | 0.003067 | 0.122573 | 0.00505 | 0 | 0 | 0.001202 | 0.001815 | 0 | 0 | null | null | 0.006135 | 0.052147 | null | null | 0.153374 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
871214f4d6dedbfa3e1263c3ed40b7b6f267e4d5 | 1,916 | py | Python | kh_site/healers/models.py | nhuntwalker/kyeisha-site | ccccc4a277f354a5f64c38476885a499483f80fc | [
"MIT"
] | null | null | null | kh_site/healers/models.py | nhuntwalker/kyeisha-site | ccccc4a277f354a5f64c38476885a499483f80fc | [
"MIT"
] | 7 | 2020-06-05T18:51:41.000Z | 2022-03-11T23:28:14.000Z | kh_site/healers/models.py | nhuntwalker/kyeisha-site | ccccc4a277f354a5f64c38476885a499483f80fc | [
"MIT"
] | null | null | null | """Models for event posts."""
from django.db import models
from django.forms import ModelForm
import datetime
from localflavor.us.models import USStateField
def _image_path(instance, filename):
"""Photo will be uploaded to media root then correct folder."""
return "{0}/{1}".format(datetime.date.today(), filen... | 29.476923 | 74 | 0.668058 | 234 | 1,916 | 5.363248 | 0.457265 | 0.050199 | 0.086056 | 0.114741 | 0.043028 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012516 | 0.207724 | 1,916 | 64 | 75 | 29.9375 | 0.814229 | 0.167015 | 0 | 0.114286 | 0 | 0 | 0.047896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.114286 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8712fe73c83c68d8db25a65cdf3ad3eebedd4ad1 | 339 | py | Python | variableServer/views/viewsets.py | bhecquet/seleniumRobot-server | b5930a21a25d63f2071dd57a55855b62808800d1 | [
"Apache-2.0"
] | null | null | null | variableServer/views/viewsets.py | bhecquet/seleniumRobot-server | b5930a21a25d63f2071dd57a55855b62808800d1 | [
"Apache-2.0"
] | 95 | 2017-05-04T09:00:52.000Z | 2022-03-11T23:19:20.000Z | variableServer/views/viewsets.py | bhecquet/seleniumRobot-server | b5930a21a25d63f2071dd57a55855b62808800d1 | [
"Apache-2.0"
] | null | null | null | '''
Created on 4 mai 2017
@author: bhecquet
'''
from rest_framework import viewsets
from variableServer.models import Variable
from variableServer.views.serializers import VariableSerializer
class VariableViewSet(viewsets.ModelViewSet):
queryset = Variable.objects.all()
serializer_class = V... | 22.6 | 64 | 0.764012 | 34 | 339 | 7.558824 | 0.735294 | 0.140078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.174041 | 339 | 14 | 65 | 24.214286 | 0.9 | 0.117994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
87179fcc7eaf3febe68137e306d6b74716d57061 | 2,068 | py | Python | news_pipeline/news_monitor.py | XinliWang/NewsCrawler | 43ac9ab5251bc3274d34e3416fa159fc30f3a83e | [
"MIT"
] | 1 | 2019-02-21T07:22:53.000Z | 2019-02-21T07:22:53.000Z | news_pipeline/news_monitor.py | XinliWang/NewsCrawler | 43ac9ab5251bc3274d34e3416fa159fc30f3a83e | [
"MIT"
] | null | null | null | news_pipeline/news_monitor.py | XinliWang/NewsCrawler | 43ac9ab5251bc3274d34e3416fa159fc30f3a83e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import redis
import os
import sys
import hashlib
import datetime
import yaml
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'utils'))
from cloudAMQP_client import CloudAMQPClient
import news_api_client
# Read configuration file
with open("../config.yml", 'r') as ymlfile:
con... | 34.466667 | 110 | 0.693907 | 295 | 2,068 | 4.647458 | 0.423729 | 0.03574 | 0.026258 | 0.046681 | 0.125456 | 0.065646 | 0 | 0 | 0 | 0 | 0 | 0.011721 | 0.216151 | 2,068 | 59 | 111 | 35.050847 | 0.834053 | 0.229691 | 0 | 0 | 0 | 0 | 0.103797 | 0.016456 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.210526 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87240b4a116601c59be009327e1dd88d6e4157b4 | 3,309 | py | Python | generators/DataGenerator.py | banutu98/IHD | 45137bb04c17bb14fe90bba29267c31b41dfe7b9 | [
"MIT"
] | null | null | null | generators/DataGenerator.py | banutu98/IHD | 45137bb04c17bb14fe90bba29267c31b41dfe7b9 | [
"MIT"
] | null | null | null | generators/DataGenerator.py | banutu98/IHD | 45137bb04c17bb14fe90bba29267c31b41dfe7b9 | [
"MIT"
] | null | null | null | import random
from keras.utils import Sequence
from utilities.augmentations import *
from Preprocessor import Preprocessor
class DataGenerator(Sequence):
def __init__(self, list_ids, labels=None, batch_size=1, img_size=(512, 512, 3),
img_dir=TRAIN_DIR_STAGE_2, shuffle=True, n_classes=2):
... | 41.886076 | 91 | 0.562708 | 412 | 3,309 | 4.364078 | 0.339806 | 0.040044 | 0.043382 | 0.03782 | 0.243048 | 0.215239 | 0.12792 | 0.12792 | 0.12792 | 0.12792 | 0 | 0.014572 | 0.336355 | 3,309 | 78 | 92 | 42.423077 | 0.804189 | 0.127229 | 0 | 0.209677 | 0 | 0 | 0.005913 | 0 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.080645 | false | 0.016129 | 0.064516 | 0.016129 | 0.225806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87261c5a567ce5e9ee9a2392856eae0dd9ddd1ea | 635 | py | Python | rurina2/prefabs/rmath.py | TeaCondemns/rurina | 43725ebea5872953125271a9abb300a4e3a80a64 | [
"MIT"
] | null | null | null | rurina2/prefabs/rmath.py | TeaCondemns/rurina | 43725ebea5872953125271a9abb300a4e3a80a64 | [
"MIT"
] | null | null | null | rurina2/prefabs/rmath.py | TeaCondemns/rurina | 43725ebea5872953125271a9abb300a4e3a80a64 | [
"MIT"
] | null | null | null | from math import sqrt
def distance(x0, y0, x1, y1) -> float:
return sqrt((x0 - x1) ** 2 + (y0 - y1) ** 2)
def move_negativity(num1, num2):
if (num2 < 0 and num1 < 0) or (num2 > 0 and num1 > 0) or (num2 == 0):
return num1
return -num1
def num_in_interval(num, min, max) -> bool:
return min ... | 16.710526 | 73 | 0.577953 | 93 | 635 | 3.698925 | 0.365591 | 0.122093 | 0.046512 | 0.069767 | 0.101744 | 0.101744 | 0.101744 | 0.101744 | 0 | 0 | 0 | 0.059603 | 0.286614 | 635 | 37 | 74 | 17.162162 | 0.699779 | 0 | 0 | 0 | 0 | 0 | 0.096063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.043478 | 0.086957 | 0.521739 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
872a1cddcaea784e1cd0245601194c12791830b5 | 1,053 | py | Python | polls/migrations/0002_profile.py | neethu567/learm_profile | c129961865fca88cdc9c1992683d59966ce88bf0 | [
"MIT"
] | null | null | null | polls/migrations/0002_profile.py | neethu567/learm_profile | c129961865fca88cdc9c1992683d59966ce88bf0 | [
"MIT"
] | null | null | null | polls/migrations/0002_profile.py | neethu567/learm_profile | c129961865fca88cdc9c1992683d59966ce88bf0 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2020-09-30 09:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('polls', '0001_initial'),... | 36.310345 | 121 | 0.621083 | 114 | 1,053 | 5.596491 | 0.587719 | 0.037618 | 0.043887 | 0.068966 | 0.103448 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0.028967 | 0.245964 | 1,053 | 28 | 122 | 37.607143 | 0.774559 | 0.042735 | 0 | 0 | 1 | 0 | 0.079523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8733f6858457d4aeca6925b66315b6f07e515718 | 490 | py | Python | Django/myblog/bookmanager/migrations/0006_auto_20190422_1236.py | taoyan/python | 3fbb1e534ec91b33cd2ac690966d7253c2f5d757 | [
"MIT"
] | 1 | 2019-05-04T09:21:52.000Z | 2019-05-04T09:21:52.000Z | Django/myblog/bookmanager/migrations/0006_auto_20190422_1236.py | taoyan/python | 3fbb1e534ec91b33cd2ac690966d7253c2f5d757 | [
"MIT"
] | 26 | 2020-07-18T02:02:54.000Z | 2022-02-26T10:49:58.000Z | Django/myblog/bookmanager/migrations/0006_auto_20190422_1236.py | taoyan/python | 3fbb1e534ec91b33cd2ac690966d7253c2f5d757 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2019-04-22 12:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bookmanager', '0005_auto_20190422_1213'),
]
operations = [
migrations.Alte... | 23.333333 | 86 | 0.630612 | 53 | 490 | 5.641509 | 0.773585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092141 | 0.246939 | 490 | 20 | 87 | 24.5 | 0.718157 | 0.140816 | 0 | 0 | 1 | 0 | 0.155502 | 0.055024 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8734132541ab5ce69ed240741277e35a508b597f | 723 | py | Python | Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch09_search_and_sort/ex07_bucket_sort_test.py | Kreijeck/learning | eaffee08e61f2a34e01eb8f9f04519aac633f48c | [
"MIT"
] | null | null | null | Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch09_search_and_sort/ex07_bucket_sort_test.py | Kreijeck/learning | eaffee08e61f2a34e01eb8f9f04519aac633f48c | [
"MIT"
] | null | null | null | Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch09_search_and_sort/ex07_bucket_sort_test.py | Kreijeck/learning | eaffee08e61f2a34e01eb8f9f04519aac633f48c | [
"MIT"
] | null | null | null | # Beispielprogramm für das Buch "Python Challenge"
#
# Copyright 2020 by Michael Inden
import pytest
from ch09_search_and_sort.solutions.ex07_bucket_sort import bucket_sort
@pytest.mark.parametrize("values, max, expected",
[([10, 50, 22, 7, 42, 111, 50, 7], 150,
[... | 34.428571 | 71 | 0.492393 | 103 | 723 | 3.368932 | 0.446602 | 0.115274 | 0.097983 | 0.040346 | 0.172911 | 0.172911 | 0.172911 | 0.172911 | 0 | 0 | 0 | 0.213043 | 0.363762 | 723 | 20 | 72 | 36.15 | 0.541304 | 0.11065 | 0 | 0.166667 | 0 | 0 | 0.032864 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8737e5cdd9333fef2d427a6e7db9075b82563eac | 3,832 | py | Python | cohesity_management_sdk/samples/register_vcenter/register_vcenter.py | sachinthakare-cohesity/management-sdk-python | c95f67b7d387d5bab8392be43190e598280ae7b5 | [
"MIT"
] | null | null | null | cohesity_management_sdk/samples/register_vcenter/register_vcenter.py | sachinthakare-cohesity/management-sdk-python | c95f67b7d387d5bab8392be43190e598280ae7b5 | [
"MIT"
] | null | null | null | cohesity_management_sdk/samples/register_vcenter/register_vcenter.py | sachinthakare-cohesity/management-sdk-python | c95f67b7d387d5bab8392be43190e598280ae7b5 | [
"MIT"
] | null | null | null | # Copyright 2019 Cohesity Inc.
#
# Python example to add a VM to a protection Job.
# This script is compatible with Python2
# Usage: python register_vcenter.py
import os
import argparse
from cohesity_management_sdk.cohesity_client import CohesityClient
from cohesity_management_sdk.models.environment_enum import Enviro... | 35.813084 | 75 | 0.686326 | 452 | 3,832 | 5.524336 | 0.287611 | 0.040048 | 0.021626 | 0.040048 | 0.196636 | 0.018422 | 0 | 0 | 0 | 0 | 0 | 0.001714 | 0.238779 | 3,832 | 106 | 76 | 36.150943 | 0.854302 | 0.131785 | 0 | 0.029412 | 0 | 0 | 0.133415 | 0.021826 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073529 | false | 0.132353 | 0.102941 | 0 | 0.220588 | 0.044118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
874013e33f755df5a8b5db5a2c0cf3c4ff21417e | 1,104 | py | Python | DataProcessor/EventSender.py | znichols/racKet | 4ea226a404dfd1b6ae853316d31a679289e7714a | [
"MIT"
] | 1 | 2016-11-16T14:54:46.000Z | 2016-11-16T14:54:46.000Z | DataProcessor/EventSender.py | znichols/racKet | 4ea226a404dfd1b6ae853316d31a679289e7714a | [
"MIT"
] | null | null | null | DataProcessor/EventSender.py | znichols/racKet | 4ea226a404dfd1b6ae853316d31a679289e7714a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import logging, socket, sys
import simplejson as json
class EventSender:
"""Object for setting up an event sending client to talk to the sound engine server"""
def __init__(self, port, logging_handler=logging.StreamHandler(stream=sys.stdout)):
self.logger = logging.getLogger(__na... | 36.8 | 99 | 0.65942 | 142 | 1,104 | 4.93662 | 0.443662 | 0.099857 | 0.059914 | 0.068474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240036 | 1,104 | 29 | 100 | 38.068966 | 0.835518 | 0.018116 | 0 | 0 | 0 | 0 | 0.07322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8740af3c3d6397cef334956ea836922eead92e10 | 5,158 | py | Python | mailadmin.py | FabianWe/pymailadmin | 35792ee95f1e01c31e098782fd83189439c2d629 | [
"MIT"
] | null | null | null | mailadmin.py | FabianWe/pymailadmin | 35792ee95f1e01c31e098782fd83189439c2d629 | [
"MIT"
] | null | null | null | mailadmin.py | FabianWe/pymailadmin | 35792ee95f1e01c31e098782fd83189439c2d629 | [
"MIT"
] | null | null | null | # Copyright (c) 2016, 2017 Fabian Wenzelmann
# MIT License
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify... | 30.52071 | 135 | 0.646762 | 730 | 5,158 | 4.49863 | 0.30137 | 0.024361 | 0.014616 | 0.01827 | 0.343179 | 0.337393 | 0.310597 | 0.293544 | 0.25335 | 0.193666 | 0 | 0.016133 | 0.230903 | 5,158 | 168 | 136 | 30.702381 | 0.811697 | 0.216363 | 0 | 0.471154 | 0 | 0.009615 | 0.244256 | 0.015738 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096154 | false | 0.076923 | 0.067308 | 0.038462 | 0.221154 | 0.057692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8743c432fedb989d64ebea69523fa64ee1413439 | 7,839 | py | Python | baobab/generate.py | aymgal/baobab | 960ddbd55fc4391f2b857f2232af38c45c809ae8 | [
"MIT"
] | null | null | null | baobab/generate.py | aymgal/baobab | 960ddbd55fc4391f2b857f2232af38c45c809ae8 | [
"MIT"
] | null | null | null | baobab/generate.py | aymgal/baobab | 960ddbd55fc4391f2b857f2232af38c45c809ae8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Generating the training data.
This script generates the training data according to the config specifications.
Example
-------
To run this script, pass in the desired config file as argument::
$ generate baobab/configs/tdlmc_diagonal_config.py --n_data 1000
"""
import os, sys
import r... | 44.794286 | 303 | 0.664243 | 1,014 | 7,839 | 4.884615 | 0.251479 | 0.026247 | 0.015546 | 0.012114 | 0.162528 | 0.147385 | 0.081769 | 0.081769 | 0.063598 | 0.063598 | 0 | 0.004187 | 0.238296 | 7,839 | 174 | 304 | 45.051724 | 0.825322 | 0.211124 | 0 | 0.091667 | 1 | 0 | 0.089219 | 0.02153 | 0 | 0 | 0 | 0.005747 | 0 | 1 | 0.016667 | false | 0.008333 | 0.15 | 0 | 0.175 | 0.025 | 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 |
874464963057dac79d14fcb1eca28768acd65bc3 | 13,611 | py | Python | src/NodeGenerators/GenerateNodeProfile.py | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/NodeGenerators/GenerateNodeProfile.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/NodeGenerators/GenerateNodeProfile.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | from math import *
import numpy as np
from NodeGeneratorBase import *
from Spheral import (Vector1d, Tensor1d, SymTensor1d,
Vector2d, Tensor2d, SymTensor2d, rotationMatrix2d, testPointInBox2d,
Vector3d, Tensor3d, SymTensor3d, rotationMatrix3d, testPointInBox3d)
from SpheralTe... | 41.370821 | 147 | 0.385864 | 1,365 | 13,611 | 3.830037 | 0.147253 | 0.027735 | 0.025249 | 0.03443 | 0.663351 | 0.626052 | 0.600803 | 0.588179 | 0.581867 | 0.581867 | 0 | 0.024042 | 0.330762 | 13,611 | 328 | 148 | 41.496951 | 0.549896 | 0.362574 | 0 | 0.643902 | 0 | 0 | 0.011648 | 0 | 0 | 0 | 0 | 0 | 0.156098 | 0 | null | null | 0 | 0.02439 | null | null | 0.009756 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
874eb66332ff06657cf0367c7b83145a04a676d4 | 438 | py | Python | app/api/cylinder.py | ogawaryu/small-python-project | cca1e45ab00291dab8f00ba2a80c534517caf658 | [
"MIT"
] | null | null | null | app/api/cylinder.py | ogawaryu/small-python-project | cca1e45ab00291dab8f00ba2a80c534517caf658 | [
"MIT"
] | null | null | null | app/api/cylinder.py | ogawaryu/small-python-project | cca1e45ab00291dab8f00ba2a80c534517caf658 | [
"MIT"
] | null | null | null | from flask_restful import Resource
from flask import request
from common.cylinder import get_volume_cylinder
class Cylinder(Resource):
def get(self):
radius = request.args.get('radius')
if radius:
volume = get_volume_cylinder(radius)
return {
'label': 'Volume o... | 29.2 | 79 | 0.614155 | 51 | 438 | 5.176471 | 0.490196 | 0.068182 | 0.128788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009967 | 0.312785 | 438 | 14 | 80 | 31.285714 | 0.86711 | 0 | 0 | 0 | 0 | 0 | 0.139269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8759385a275085d4a6d00b0e3e93105f990c0dbb | 2,309 | py | Python | backend/app/api/room.py | rk250ky/coworktest | 466f5eb262cba3753388bd6c77e7604640ed1d77 | [
"MIT"
] | null | null | null | backend/app/api/room.py | rk250ky/coworktest | 466f5eb262cba3753388bd6c77e7604640ed1d77 | [
"MIT"
] | null | null | null | backend/app/api/room.py | rk250ky/coworktest | 466f5eb262cba3753388bd6c77e7604640ed1d77 | [
"MIT"
] | null | null | null | import json
from flask import jsonify, request, make_response, render_template
from flask.blueprints import Blueprint
from app.daos import room_dao
room_bp = Blueprint("room_bp", __name__)
@room_bp.route("/rooms", methods=["GET"])
def get_room_list():
# TODO: check if tenant has permissions to view all r... | 33.463768 | 86 | 0.581637 | 290 | 2,309 | 4.482759 | 0.306897 | 0.032308 | 0.042308 | 0.061538 | 0.198462 | 0.143077 | 0.085385 | 0.085385 | 0 | 0 | 0 | 0.004217 | 0.281074 | 2,309 | 69 | 87 | 33.463768 | 0.778916 | 0.094413 | 0 | 0.087719 | 0 | 0 | 0.111552 | 0.014378 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.087719 | false | 0 | 0.070175 | 0.017544 | 0.245614 | 0.035088 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
875dba0ed62d6fc5cf3808e0b05361004e0f872b | 376 | py | Python | pyleecan/Methods/Machine/CondType12/comp_surface_active.py | IrakozeFD/pyleecan | 5a93bd98755d880176c1ce8ac90f36ca1b907055 | [
"Apache-2.0"
] | 95 | 2019-01-23T04:19:45.000Z | 2022-03-17T18:22:10.000Z | pyleecan/Methods/Machine/CondType12/comp_surface_active.py | IrakozeFD/pyleecan | 5a93bd98755d880176c1ce8ac90f36ca1b907055 | [
"Apache-2.0"
] | 366 | 2019-02-20T07:15:08.000Z | 2022-03-31T13:37:23.000Z | pyleecan/Methods/Machine/CondType12/comp_surface_active.py | IrakozeFD/pyleecan | 5a93bd98755d880176c1ce8ac90f36ca1b907055 | [
"Apache-2.0"
] | 74 | 2019-01-24T01:47:31.000Z | 2022-02-25T05:44:42.000Z | # -*- coding: utf-8 -*-
from numpy import pi
def comp_surface_active(self):
"""Compute the active surface of the conductor
Parameters
----------
self : CondType12
A CondType12 object
Returns
-------
Sact: float
Surface without insulation [m**2]
"""
Sact = ((sel... | 15.666667 | 54 | 0.558511 | 44 | 376 | 4.727273 | 0.704545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034091 | 0.297872 | 376 | 23 | 55 | 16.347826 | 0.753788 | 0.526596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87682708a5cba151e5553cff4f9d7145ab24f56d | 2,503 | py | Python | Python/API Flask_Restful/Pessoa Endereco/Dao/pessoa_dao.py | Renanrbsc/Machine-Learning | cbf67d7ed978ba4c2fdc678e62fc742769987cea | [
"MIT"
] | 1 | 2020-01-28T10:48:38.000Z | 2020-01-28T10:48:38.000Z | Python/API Flask_Restful/Pessoa Endereco/Dao/pessoa_dao.py | Renanrbsc/Machine-Learning | cbf67d7ed978ba4c2fdc678e62fc742769987cea | [
"MIT"
] | null | null | null | Python/API Flask_Restful/Pessoa Endereco/Dao/pessoa_dao.py | Renanrbsc/Machine-Learning | cbf67d7ed978ba4c2fdc678e62fc742769987cea | [
"MIT"
] | null | null | null | import MySQLdb
from Model.pessoa_model import PessoaModel
class PessoaDao:
# --- Inicialização da conecção com o servidor local
# --- Inicialização do cursor para manter conecção
def __init__(self):
self.connection = MySQLdb.connect(host='mysql.padawans.dev',database='padawans16',user='padawans16'... | 40.370968 | 149 | 0.592889 | 270 | 2,503 | 5.388889 | 0.366667 | 0.061856 | 0.058419 | 0.031615 | 0.445361 | 0.380069 | 0.191065 | 0.191065 | 0.191065 | 0.191065 | 0 | 0.012195 | 0.279265 | 2,503 | 62 | 150 | 40.370968 | 0.794346 | 0.119057 | 0 | 0.152174 | 0 | 0 | 0.278636 | 0.015909 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.130435 | false | 0.021739 | 0.043478 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
8770af9a676c965f261f4cdea53a8b050920a507 | 7,056 | py | Python | tests/features/steps/step_definitions.py | johshoff/pgcli | d6897a7fdfd815491d98687b6153a5cf5885db1d | [
"BSD-3-Clause"
] | 2 | 2015-09-20T09:18:34.000Z | 2021-01-05T12:17:06.000Z | tests/features/steps/step_definitions.py | johshoff/pgcli | d6897a7fdfd815491d98687b6153a5cf5885db1d | [
"BSD-3-Clause"
] | null | null | null | tests/features/steps/step_definitions.py | johshoff/pgcli | d6897a7fdfd815491d98687b6153a5cf5885db1d | [
"BSD-3-Clause"
] | 1 | 2017-02-26T04:35:13.000Z | 2017-02-26T04:35:13.000Z | # -*- coding: utf-8 -*-
"""
Steps for behavioral style tests are defined in this module.
Each step is defined by the string decorating it.
This string is used to call the step in "*.feature" file.
"""
from __future__ import unicode_literals
import pip
import pexpect
import os
import re
from behave import given, when,... | 23.210526 | 84 | 0.655329 | 958 | 7,056 | 4.663883 | 0.187891 | 0.051701 | 0.072516 | 0.039391 | 0.263876 | 0.185989 | 0.125783 | 0.095345 | 0.095345 | 0.073411 | 0 | 0.006563 | 0.200964 | 7,056 | 303 | 85 | 23.287129 | 0.785917 | 0.15788 | 0 | 0.044776 | 0 | 0.007463 | 0.239716 | 0.009101 | 0 | 0 | 0 | 0 | 0.007463 | 1 | 0.253731 | false | 0 | 0.044776 | 0 | 0.298507 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8770f2232856c850f1c293196fae18c214e35056 | 580 | py | Python | point.py | sletort/pointpointgame | 93a9649d4a1910e59d7e1061a1d072560bd43e0b | [
"MIT"
] | null | null | null | point.py | sletort/pointpointgame | 93a9649d4a1910e59d7e1061a1d072560bd43e0b | [
"MIT"
] | null | null | null | point.py | sletort/pointpointgame | 93a9649d4a1910e59d7e1061a1d072560bd43e0b | [
"MIT"
] | null | null | null | ########################################################
# POINT POINT GAME
#
# Catégorie : Stratégie
# Auteur : Gabeta Soro (Alchimiste des codes)
# Pseudo : @lChiMi5tE_d0t_toRr€nt
# Compagnie : EnighmaLab
# Date de création : 17/05/2017
# Scène : Player vs... | 23.2 | 56 | 0.503448 | 56 | 580 | 5.196429 | 0.75 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03139 | 0.231034 | 580 | 24 | 57 | 24.166667 | 0.618834 | 0.456897 | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
87753b734c4ac854ca64c4f8d754051eb3874771 | 1,913 | py | Python | day25.py | matejm/advent-of-code-2016 | d3c40b1ee100be698ee395db94bf09fdc330c809 | [
"MIT"
] | null | null | null | day25.py | matejm/advent-of-code-2016 | d3c40b1ee100be698ee395db94bf09fdc330c809 | [
"MIT"
] | null | null | null | day25.py | matejm/advent-of-code-2016 | d3c40b1ee100be698ee395db94bf09fdc330c809 | [
"MIT"
] | null | null | null | commands = []
while True:
try: line = input()
except: break
if not line: break
commands.append(line.split())
for starting_a in range(155, 160):
d = {'a': starting_a, 'b': 0, 'c': 0, 'd': 0}
i = 0
out = []
while len(out) < 100:
if commands[i][0] == 'inc' and commands[i+1][0] == ... | 35.425926 | 165 | 0.414532 | 264 | 1,913 | 2.992424 | 0.162879 | 0.262025 | 0.139241 | 0.083544 | 0.256962 | 0.239241 | 0.182278 | 0.182278 | 0.126582 | 0.060759 | 0 | 0.050391 | 0.398327 | 1,913 | 53 | 166 | 36.09434 | 0.635969 | 0 | 0 | 0.117647 | 0 | 0 | 0.032933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.019608 | 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 |
87793353e707eeb3d4d37b9dd4cffb341b5dfcc9 | 1,729 | py | Python | BinBPCoords.py | EichlerLab/chm1_scripts | 55d1783139f4ccc6e41c79812920785b1eaea65e | [
"MIT"
] | 5 | 2016-04-21T20:00:01.000Z | 2020-03-12T16:35:55.000Z | BinBPCoords.py | EichlerLab/chm1_scripts | 55d1783139f4ccc6e41c79812920785b1eaea65e | [
"MIT"
] | null | null | null | BinBPCoords.py | EichlerLab/chm1_scripts | 55d1783139f4ccc6e41c79812920785b1eaea65e | [
"MIT"
] | 8 | 2015-09-15T07:08:06.000Z | 2021-07-13T02:25:12.000Z | #!/usr/bin/env python
import argparse
import sys
import numpy as np
import Tools
ap = argparse.ArgumentParser(description="Bin bp coordinates.")
ap.add_argument("coords", help="Bed file of coordinates.")
ap.add_argument("fai", help="index of genome.")
ap.add_argument("col", help="which column to cluster [1 or 2]", ty... | 33.901961 | 123 | 0.625795 | 252 | 1,729 | 4.257937 | 0.373016 | 0.032619 | 0.084809 | 0.044734 | 0.12302 | 0.055918 | 0.055918 | 0.055918 | 0 | 0 | 0 | 0.015942 | 0.201851 | 1,729 | 50 | 124 | 34.58 | 0.761594 | 0.011567 | 0 | 0.05 | 0 | 0 | 0.163934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
877b6f389ad3f1bc73642dc76047352c4e7e5b45 | 5,822 | py | Python | accelbyte_py_sdk/api/platform/wrappers/_fulfillment_script.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | accelbyte_py_sdk/api/platform/wrappers/_fulfillment_script.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | 1 | 2021-10-13T03:46:58.000Z | 2021-10-13T03:46:58.000Z | accelbyte_py_sdk/api/platform/wrappers/_fulfillment_script.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template file: justice_py_sdk_codegen/__main__.py
# pylint: disable=duplicate-code
# pylint: disable=li... | 41 | 167 | 0.786843 | 665 | 5,822 | 6.619549 | 0.162406 | 0.139028 | 0.098137 | 0.070877 | 0.699909 | 0.625852 | 0.618128 | 0.608133 | 0.586779 | 0.586779 | 0 | 0.000781 | 0.11989 | 5,822 | 141 | 168 | 41.29078 | 0.858314 | 0.13157 | 0 | 0.549451 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065934 | false | 0 | 0.208791 | 0 | 0.406593 | 0 | 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 |
5e46ce9f90124e2d5f6f1ad7b7f0e0115dbc8535 | 438 | py | Python | B_bit_magic/F_count_setbit.py | Princeton21/DSA | 0f2321b284fc54f4ddf73733cc1a8d05e549aeea | [
"MIT"
] | 58 | 2021-01-06T10:05:51.000Z | 2022-02-10T05:15:19.000Z | B_bit_magic/F_count_setbit.py | Princeton21/DSA | 0f2321b284fc54f4ddf73733cc1a8d05e549aeea | [
"MIT"
] | 5 | 2021-02-22T04:14:24.000Z | 2021-12-26T09:19:17.000Z | B_bit_magic/F_count_setbit.py | Princeton21/DSA | 0f2321b284fc54f4ddf73733cc1a8d05e549aeea | [
"MIT"
] | 27 | 2021-02-09T13:58:33.000Z | 2022-03-06T03:48:08.000Z | def method1(n: int) -> int:
c = 0
while n:
c += n & 1
n >>= 1
return c
def method2(n: int) -> int:
if n == 0:
return 0
else:
return (n & 1) + method2(n >> 1)
if __name__ == "__main__":
"""
from timeit import timeit
print(timeit(lambda: method1(9), numb... | 19.909091 | 75 | 0.541096 | 58 | 438 | 3.948276 | 0.413793 | 0.034935 | 0.061135 | 0.113537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208609 | 0.310502 | 438 | 21 | 76 | 20.857143 | 0.549669 | 0 | 0 | 0 | 0 | 0 | 0.03252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e47f667b63de50be2c44f04c2c94d7b19c76cb2 | 455 | py | Python | aoc/utils.py | pjiranek/AoC | d0205d6facb39fb526b6f7241bcd4c7c6a2be8b3 | [
"WTFPL"
] | null | null | null | aoc/utils.py | pjiranek/AoC | d0205d6facb39fb526b6f7241bcd4c7c6a2be8b3 | [
"WTFPL"
] | null | null | null | aoc/utils.py | pjiranek/AoC | d0205d6facb39fb526b6f7241bcd4c7c6a2be8b3 | [
"WTFPL"
] | null | null | null | import time
def read_input(file_name):
with open(file_name, 'r') as f:
stripped_lines = (line.rstrip() for line in f.readlines())
return [line for line in stripped_lines if line]
def timeit(func):
def wrapper(*args, **kwargs):
start_time = time.time()
func(*args, **kwargs)
... | 22.75 | 83 | 0.621978 | 64 | 455 | 4.21875 | 0.53125 | 0.118519 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005848 | 0.248352 | 455 | 19 | 84 | 23.947368 | 0.783626 | 0 | 0 | 0 | 0 | 0 | 0.048352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0 | 0.5 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5e489229d801a2b7cc89377fc7cae3a626a622eb | 5,359 | py | Python | third_party/a2c_ppo_acktr/distributions.py | googleinterns/gail-dyn | 31c93b12d068dede0dbe69547f0b2e500374f260 | [
"Apache-2.0"
] | null | null | null | third_party/a2c_ppo_acktr/distributions.py | googleinterns/gail-dyn | 31c93b12d068dede0dbe69547f0b2e500374f260 | [
"Apache-2.0"
] | null | null | null | third_party/a2c_ppo_acktr/distributions.py | googleinterns/gail-dyn | 31c93b12d068dede0dbe69547f0b2e500374f260 | [
"Apache-2.0"
] | null | null | null | # MIT License
#
# Copyright (c) 2017 Ilya Kostrikov and (c) 2020 Google LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights... | 31.89881 | 88 | 0.650681 | 711 | 5,359 | 4.734177 | 0.261603 | 0.050505 | 0.032086 | 0.050802 | 0.524064 | 0.524064 | 0.504456 | 0.504456 | 0.468509 | 0.468509 | 0 | 0.00938 | 0.244075 | 5,359 | 167 | 89 | 32.08982 | 0.821526 | 0.252846 | 0 | 0.48913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228261 | false | 0 | 0.054348 | 0.097826 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5e4d1f9896178881efe2533dfb2197f9ec1b1165 | 1,568 | py | Python | pyplanes/media/fluid.py | pyplanes/pyplanes | 0b69ac4cfff0d278497fe2ad5ae096721c983f6f | [
"MIT"
] | null | null | null | pyplanes/media/fluid.py | pyplanes/pyplanes | 0b69ac4cfff0d278497fe2ad5ae096721c983f6f | [
"MIT"
] | 1 | 2021-06-01T23:05:58.000Z | 2021-06-01T23:05:58.000Z | pyplanes/media/fluid.py | pyplanes/pyplanes | 0b69ac4cfff0d278497fe2ad5ae096721c983f6f | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding:utf8 -*-
#
# fluid.py
#
# This file is part of pyplanes, a software distributed under the MIT license.
# For any question, please contact mathieu@matael.org.
#
# Copyright (c) 2018 The pyplanes authors
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
#... | 27.508772 | 80 | 0.670918 | 210 | 1,568 | 4.947619 | 0.52381 | 0.052936 | 0.019249 | 0.026949 | 0.215592 | 0.184793 | 0.184793 | 0.12512 | 0.12512 | 0.12512 | 0 | 0.004177 | 0.236607 | 1,568 | 56 | 81 | 28 | 0.863826 | 0.699617 | 0 | 0 | 0 | 0 | 0.022556 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e51dcc8b3a3a2687cfec7bd455e2aba0fbd6398 | 78,879 | py | Python | tools/mytools/ARIA/src/py/aria/ancProtocol.py | fmareuil/Galaxy_test_pasteur | 6f84fb0fc52e3e7dd358623b5da5354c66e16a5f | [
"CC-BY-3.0"
] | null | null | null | tools/mytools/ARIA/src/py/aria/ancProtocol.py | fmareuil/Galaxy_test_pasteur | 6f84fb0fc52e3e7dd358623b5da5354c66e16a5f | [
"CC-BY-3.0"
] | null | null | null | tools/mytools/ARIA/src/py/aria/ancProtocol.py | fmareuil/Galaxy_test_pasteur | 6f84fb0fc52e3e7dd358623b5da5354c66e16a5f | [
"CC-BY-3.0"
] | null | null | null | """
ARIA -- Ambiguous Restraints for Iterative Assignment
A software for automated NOE assignment
Version 2.3
Copyright (C) Benjamin Bardiaux, Michael Habeck, Therese Malliavin,
Wolfgang Rieping, and Michael Nilges
All rights reserved.
NO W... | 34.265421 | 136 | 0.561163 | 7,843 | 78,879 | 5.510264 | 0.117047 | 0.009163 | 0.006248 | 0.003563 | 0.285119 | 0.213296 | 0.175648 | 0.144596 | 0.118865 | 0.097577 | 0 | 0.005648 | 0.353554 | 78,879 | 2,301 | 137 | 34.280313 | 0.841894 | 0.134713 | 0 | 0.283492 | 0 | 0 | 0.108981 | 0.021588 | 0 | 0 | 0 | 0.001738 | 0 | 0 | null | null | 0 | 0.059637 | 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 |
5e55bb1178488e10e55f383d8c417535d6041a4a | 392 | py | Python | setup.py | SakiiR/eve-rights | 8af4be16c7afe7d99a42b8c5d2407f17a22866fb | [
"MIT"
] | null | null | null | setup.py | SakiiR/eve-rights | 8af4be16c7afe7d99a42b8c5d2407f17a22866fb | [
"MIT"
] | null | null | null | setup.py | SakiiR/eve-rights | 8af4be16c7afe7d99a42b8c5d2407f17a22866fb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='eve_rights',
version='0.0.2',
description='Handle per-item rights in your python-eve application',
url='http://github.com/SakiiR/eve-rights',
author='SakiiR',
author_email='sakiirlessons@gmail.com',
... | 26.133333 | 74 | 0.642857 | 51 | 392 | 4.862745 | 0.764706 | 0.108871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.193878 | 392 | 14 | 75 | 28 | 0.772152 | 0.107143 | 0 | 0 | 0 | 0 | 0.416667 | 0.066092 | 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 |
5e57940c175d94dc3ebaf5836b8691f2381f2a38 | 2,990 | py | Python | iowa_tools/io.py | sveinugu/iowa_tools | 5af96bb40a1f89222e24c36dc47523646fe5d718 | [
"MIT"
] | 2 | 2020-02-09T22:31:09.000Z | 2020-02-10T08:05:50.000Z | iowa_tools/io.py | sveinugu/iowa_tools | 5af96bb40a1f89222e24c36dc47523646fe5d718 | [
"MIT"
] | 1 | 2020-02-10T13:09:56.000Z | 2020-02-10T13:09:56.000Z | iowa_tools/io.py | sveinugu/iowa_tools | 5af96bb40a1f89222e24c36dc47523646fe5d718 | [
"MIT"
] | 2 | 2020-02-09T22:31:16.000Z | 2020-02-10T04:38:47.000Z | import json
import os
from collections import OrderedDict
from iowa_tools.formats import JsonDataset, convert_dataframe_to_json, \
convert_dataframe_to_csv, convert_json_to_dataframe, convert_csv_to_dataframe
from iowa_tools.constants import JSON_DATA_SUFFIX, JSON_HEADERS_SUFFIX, ST_VOTES, \
CSV_SUFFIX, DATA_D... | 36.024096 | 90 | 0.782943 | 430 | 2,990 | 5.034884 | 0.162791 | 0.06097 | 0.036952 | 0.029099 | 0.401386 | 0.32933 | 0.294226 | 0.15612 | 0.15612 | 0.092379 | 0 | 0.001932 | 0.134448 | 2,990 | 82 | 91 | 36.463415 | 0.834621 | 0.004682 | 0 | 0.075472 | 0 | 0 | 0.00807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.245283 | false | 0 | 0.09434 | 0.075472 | 0.528302 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5e64f5583365724968239c28a07ff45f5cb78ab1 | 471 | py | Python | apps/06_lolcat_factory/you_try/cat_factory.py | Lux-Ferre/python-jumpstart-course-demos | 5fded4292af06b2c5d698207c8bcfdf1ddc922b4 | [
"MIT"
] | null | null | null | apps/06_lolcat_factory/you_try/cat_factory.py | Lux-Ferre/python-jumpstart-course-demos | 5fded4292af06b2c5d698207c8bcfdf1ddc922b4 | [
"MIT"
] | null | null | null | apps/06_lolcat_factory/you_try/cat_factory.py | Lux-Ferre/python-jumpstart-course-demos | 5fded4292af06b2c5d698207c8bcfdf1ddc922b4 | [
"MIT"
] | null | null | null | import os
from apps import jumpstart
def get_folder():
folder = "data"
sub_path = "06_lolcat_factory/you_try"
full_path = os.path.abspath(os.path.join(".", sub_path, folder))
if not os.path.exists(full_path):
os.mkdir(full_path)
return full_path
def fetch_cats(folder_path):
pass
def... | 20.478261 | 68 | 0.681529 | 69 | 471 | 4.289855 | 0.478261 | 0.108108 | 0.067568 | 0.128378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005319 | 0.201699 | 471 | 23 | 69 | 20.478261 | 0.781915 | 0 | 0 | 0 | 0 | 0 | 0.112288 | 0.052966 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.058824 | 0.117647 | 0 | 0.352941 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5e67e6a31ec3e6f5f0d525c947c6d285cc763b62 | 282 | py | Python | src/recommendations/src/recommendations-service/run_tests.py | ronaks4/retail-demo-store | f32e193c77ae5568e29bb5a26e70cf02ef4112e2 | [
"MIT-0"
] | null | null | null | src/recommendations/src/recommendations-service/run_tests.py | ronaks4/retail-demo-store | f32e193c77ae5568e29bb5a26e70cf02ef4112e2 | [
"MIT-0"
] | null | null | null | src/recommendations/src/recommendations-service/run_tests.py | ronaks4/retail-demo-store | f32e193c77ae5568e29bb5a26e70cf02ef4112e2 | [
"MIT-0"
] | null | null | null | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
import os, sys, unittest
os.environ['EVIDENTLY_PROJECT_NAME'] = 'retaildemostore'
sys.argv += ['discover', os.path.dirname(sys.argv[0]), 'test_*.py']
unittest.main(module=None) | 28.2 | 68 | 0.737589 | 40 | 282 | 5.125 | 0.825 | 0.068293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007905 | 0.102837 | 282 | 10 | 69 | 28.2 | 0.802372 | 0.343972 | 0 | 0 | 0 | 0 | 0.295082 | 0.120219 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e71c8ca8b92e1b27e018aba0a988c2d6868ee6b | 3,821 | py | Python | ucsmsdk/mometa/equipment/EquipmentPowerCapDef.py | Kego/ucsmsdk | 244f283a5c295cf746110bb96686d079b19927ce | [
"Apache-2.0"
] | 78 | 2015-11-30T14:10:05.000Z | 2022-02-13T00:29:08.000Z | ucsmsdk/mometa/equipment/EquipmentPowerCapDef.py | Kego/ucsmsdk | 244f283a5c295cf746110bb96686d079b19927ce | [
"Apache-2.0"
] | 113 | 2015-11-20T09:42:46.000Z | 2022-03-16T16:53:29.000Z | ucsmsdk/mometa/equipment/EquipmentPowerCapDef.py | Kego/ucsmsdk | 244f283a5c295cf746110bb96686d079b19927ce | [
"Apache-2.0"
] | 86 | 2015-12-12T08:22:18.000Z | 2022-01-23T03:56:34.000Z | """This module contains the general information for EquipmentPowerCapDef ManagedObject."""
from ...ucsmo import ManagedObject
from ...ucscoremeta import MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
class EquipmentPowerCapDefConsts:
IS_POWER_DEPLOYMENT_NEEDED_FALSE = "false"
IS_POWER_DEPLOYMENT_N... | 57.893939 | 247 | 0.688825 | 391 | 3,821 | 6.478261 | 0.265985 | 0.095539 | 0.110541 | 0.165811 | 0.268456 | 0.212396 | 0.152388 | 0.152388 | 0.152388 | 0.127912 | 0 | 0.023913 | 0.157289 | 3,821 | 65 | 248 | 58.784615 | 0.762733 | 0.031405 | 0 | 0 | 0 | 0.057692 | 0.297019 | 0.120054 | 0 | 0 | 0.004607 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.057692 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e8049d1a3e14b541b566b36d8569a52797bca81 | 1,357 | py | Python | app/tests/test_views_examples.py | KaiserBloo/memegen | ee757e916aa37176a6562021cee9bb0ce0bdad0d | [
"MIT"
] | null | null | null | app/tests/test_views_examples.py | KaiserBloo/memegen | ee757e916aa37176a6562021cee9bb0ce0bdad0d | [
"MIT"
] | null | null | null | app/tests/test_views_examples.py | KaiserBloo/memegen | ee757e916aa37176a6562021cee9bb0ce0bdad0d | [
"MIT"
] | null | null | null | import pytest
from .. import settings
def describe_examples():
@pytest.mark.slow
def it_displays_images(expect, client):
request, response = client.get("/examples", timeout=10)
expect(response.status) == 200
expect(response.text.count("img")) > 100
expect(response.text).exclud... | 36.675676 | 76 | 0.639646 | 150 | 1,357 | 5.7 | 0.28 | 0.196491 | 0.168421 | 0.079532 | 0.723977 | 0.642105 | 0.467836 | 0.31345 | 0.31345 | 0.31345 | 0 | 0.030564 | 0.228445 | 1,357 | 36 | 77 | 37.694444 | 0.786055 | 0 | 0 | 0.433333 | 0 | 0 | 0.091378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0.066667 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5e847d169271c19c54fb3bfd7ac2652c7090daa9 | 241 | py | Python | pyshard/core/typing.py | la9ran9e/pyshard | 99a345e01c9e949720c345ed142cae9c7d2839f7 | [
"MIT"
] | 6 | 2019-07-11T14:08:41.000Z | 2021-04-11T03:33:10.000Z | pyshard/core/typing.py | la9ran9e/pyshard | 99a345e01c9e949720c345ed142cae9c7d2839f7 | [
"MIT"
] | 2 | 2019-07-19T20:07:32.000Z | 2022-02-12T10:17:52.000Z | pyshard/core/typing.py | la9ran9e/pyshard | 99a345e01c9e949720c345ed142cae9c7d2839f7 | [
"MIT"
] | 1 | 2022-02-12T10:11:16.000Z | 2022-02-12T10:11:16.000Z | from typing import *
Key = Union[int, float, str]
Doc = Union[int, float, str, dict, list, tuple]
Hash = float
Offset = int
Addr = Tuple[str, int]
Codec = str
Request = Tuple[str, list, dict]
Response = str
rRequest = str
rResponse = str
| 16.066667 | 47 | 0.684647 | 37 | 241 | 4.459459 | 0.540541 | 0.09697 | 0.157576 | 0.193939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195021 | 241 | 14 | 48 | 17.214286 | 0.850515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e868e54bb1da2dd6aab8b32d792c19256dd8185 | 931 | py | Python | agile/ideas/models.py | gorkarevilla/agile | 0401c1c724f155f5e07c41f060d1c12b8f7d0aa4 | [
"Apache-2.0"
] | null | null | null | agile/ideas/models.py | gorkarevilla/agile | 0401c1c724f155f5e07c41f060d1c12b8f7d0aa4 | [
"Apache-2.0"
] | null | null | null | agile/ideas/models.py | gorkarevilla/agile | 0401c1c724f155f5e07c41f060d1c12b8f7d0aa4 | [
"Apache-2.0"
] | null | null | null | #from __future__ import unicode_literals
# Create your models here.
from django.contrib.auth.models import User
from django.core.validators import MinLengthValidator
from django.db import models
class Idea(models.Model):
idea_title = models.CharField(max_length=50, validators=[MinLengthValidator(3, message='Leng... | 40.478261 | 124 | 0.776584 | 128 | 931 | 5.46875 | 0.46875 | 0.042857 | 0.06 | 0.09 | 0.16 | 0.16 | 0.16 | 0.16 | 0.16 | 0.16 | 0 | 0.011016 | 0.122449 | 931 | 22 | 125 | 42.318182 | 0.845777 | 0.090226 | 0 | 0 | 0 | 0 | 0.059242 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5e8c19c730cad21848eb8b468566d09062eaa4a7 | 786 | py | Python | audit_web_client/flask/api/config.py | levon003/wiki-ores-feedback | 29e7f1a41b16a7c57448d5bbc5801653debbc115 | [
"MIT"
] | 2 | 2022-03-27T19:24:30.000Z | 2022-03-29T16:15:31.000Z | audit_web_client/flask/api/config.py | levon003/wiki-ores-feedback | 29e7f1a41b16a7c57448d5bbc5801653debbc115 | [
"MIT"
] | 1 | 2021-04-23T21:03:45.000Z | 2021-04-23T21:03:45.000Z | audit_web_client/flask/api/config.py | levon003/wiki-ores-feedback | 29e7f1a41b16a7c57448d5bbc5801653debbc115 | [
"MIT"
] | null | null | null |
import subprocess
import os
def get_git_root_dir():
res = subprocess.run(["git", "rev-parse", "--show-toplevel"],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE
)
path = res.stdout.decode('utf-8').strip()
return path
def get_mariadb_password(mysql_config_filepath):
with open(mys... | 28.071429 | 94 | 0.604326 | 93 | 786 | 4.88172 | 0.548387 | 0.096916 | 0.167401 | 0.057269 | 0.162996 | 0.162996 | 0 | 0 | 0 | 0 | 0 | 0.001773 | 0.282443 | 786 | 27 | 95 | 29.111111 | 0.803191 | 0 | 0 | 0 | 0 | 0 | 0.094268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.136364 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5e8d48f86fd0ff5f7e55a3943816a822bda387a5 | 15,066 | py | Python | convert.py | gk159yo/script_optfs | e896289a35cff177c8d4d883bc530c1571efd20b | [
"Apache-2.0"
] | null | null | null | convert.py | gk159yo/script_optfs | e896289a35cff177c8d4d883bc530c1571efd20b | [
"Apache-2.0"
] | null | null | null | convert.py | gk159yo/script_optfs | e896289a35cff177c8d4d883bc530c1571efd20b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
""" Usage: call with <filename>
"""
import os
import re
import sys
import string
import clang.cindex
from subprocess import call
import shutil, errno
foi = ["printf"] # List of functions that affect osync/dsync placement
fsync_wrappers = {} # { (str) filepath ... | 31.192547 | 112 | 0.63932 | 1,996 | 15,066 | 4.635271 | 0.161824 | 0.046368 | 0.013835 | 0.01297 | 0.213792 | 0.140943 | 0.098141 | 0.082036 | 0.065175 | 0.057177 | 0 | 0.003832 | 0.272601 | 15,066 | 482 | 113 | 31.257261 | 0.840405 | 0.302204 | 0 | 0.231076 | 0 | 0 | 0.050496 | 0.003084 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027888 | null | null | 0.047809 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5e8db426a8f381cf35d3c7212f4c36eec3ded0aa | 688 | py | Python | day3/rest/restapi_ex1.py | rhuey-eqix/pynet-ons | 7c7ce2d1aa263afa7701b2495b0e237110775a1d | [
"Apache-2.0"
] | 1 | 2021-01-11T23:17:26.000Z | 2021-01-11T23:17:26.000Z | day3/rest/restapi_ex1.py | rhuey-eqix/pynet-ons | 7c7ce2d1aa263afa7701b2495b0e237110775a1d | [
"Apache-2.0"
] | null | null | null | day3/rest/restapi_ex1.py | rhuey-eqix/pynet-ons | 7c7ce2d1aa263afa7701b2495b0e237110775a1d | [
"Apache-2.0"
] | 7 | 2020-07-21T17:15:08.000Z | 2021-12-14T01:13:56.000Z | #!/usr/bin/env python
import requests
from pprint import pprint
from urllib3.exceptions import InsecureRequestWarning
# Ignore insecure warings for sites with self-signed certificates
requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning)
def main():
url = "https://netbox.lasthop.io/api/"
... | 22.933333 | 75 | 0.712209 | 81 | 688 | 5.901235 | 0.641975 | 0.069038 | 0.079498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006981 | 0.167151 | 688 | 29 | 76 | 23.724138 | 0.827225 | 0.122093 | 0 | 0.25 | 0 | 0 | 0.122924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.2 | 0.55 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5e913d5ac1791c4d18994a60384de9fc6e96e38a | 599 | py | Python | models/migrations/0053_auto_20190813_1401.py | isstek/clientmanagement | 26bd6bbd974f24211dd0ae4b1c75ee8e4b150767 | [
"MIT"
] | null | null | null | models/migrations/0053_auto_20190813_1401.py | isstek/clientmanagement | 26bd6bbd974f24211dd0ae4b1c75ee8e4b150767 | [
"MIT"
] | 11 | 2019-05-02T20:10:16.000Z | 2022-02-10T07:10:25.000Z | models/migrations/0053_auto_20190813_1401.py | isstek/clientmanagement | 26bd6bbd974f24211dd0ae4b1c75ee8e4b150767 | [
"MIT"
] | 2 | 2020-11-04T03:05:23.000Z | 2020-11-05T08:14:14.000Z | # Generated by Django 2.2.3 on 2019-08-13 18:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('models', '0052_auto_20190805_1405'),
]
operations = [
migrations.RenameField(
model_name='secretnote',
old_name='rea... | 24.958333 | 109 | 0.595993 | 65 | 599 | 5.323077 | 0.692308 | 0.078035 | 0.109827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075294 | 0.290484 | 599 | 23 | 110 | 26.043478 | 0.738824 | 0.075125 | 0 | 0.235294 | 1 | 0 | 0.177536 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e928fe97cd0eafc9d8340162a87656c0634101b | 456 | py | Python | exercises/004_Strings/strings_001.py | Kike-Ramirez/intro-py-td | c117ef7b645add0987593f2ff3eb5bb97724e8d9 | [
"MIT"
] | null | null | null | exercises/004_Strings/strings_001.py | Kike-Ramirez/intro-py-td | c117ef7b645add0987593f2ff3eb5bb97724e8d9 | [
"MIT"
] | null | null | null | exercises/004_Strings/strings_001.py | Kike-Ramirez/intro-py-td | c117ef7b645add0987593f2ff3eb5bb97724e8d9 | [
"MIT"
] | null | null | null | ## Python INTRO for TD Users
## Kike Ramírez
## May, 2018
## Understanding python strings.
string1 = "I Love Python!"
## Print first character
print ("string1[0]:",string1[0])
## Print characters from 3 to 5!
print ("string1[2:5]:",string1[2:5])
## Print last character only
print ("string1[-1]:",string1[-1])
## ... | 19 | 36 | 0.664474 | 67 | 456 | 4.522388 | 0.447761 | 0.19802 | 0.138614 | 0.132013 | 0.30033 | 0.171617 | 0 | 0 | 0 | 0 | 0 | 0.077519 | 0.151316 | 456 | 23 | 37 | 19.826087 | 0.705426 | 0.475877 | 0 | 0 | 0 | 0 | 0.340909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.833333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5e94a199a67e4bef17ca6447eb5dd09955529c6d | 2,998 | py | Python | notebooks and scripts/data_manipulation.py | david-j-cox/twitter-aba-sentiment | cd120b012481995cd84be6d6134c39f23c775c64 | [
"MIT"
] | null | null | null | notebooks and scripts/data_manipulation.py | david-j-cox/twitter-aba-sentiment | cd120b012481995cd84be6d6134c39f23c775c64 | [
"MIT"
] | null | null | null | notebooks and scripts/data_manipulation.py | david-j-cox/twitter-aba-sentiment | cd120b012481995cd84be6d6134c39f23c775c64 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 5 19:33:10 2021
@author: jacobsosine
"""
import numpy as np
import pandas as pd
import json
import string
import re
raw = pd.read_csv('../data/01_raw/aba_twitter_scrape.csv')
df = raw.copy()
# df[:100].to_csv('../data/01_raw/aba_twitter_scrap... | 25.40678 | 119 | 0.654436 | 453 | 2,998 | 4.192053 | 0.379691 | 0.042127 | 0.078989 | 0.050026 | 0.206951 | 0.206951 | 0.17009 | 0.134808 | 0.134808 | 0.113744 | 0 | 0.028375 | 0.177118 | 2,998 | 118 | 120 | 25.40678 | 0.738549 | 0.173115 | 0 | 0.03125 | 0 | 0 | 0.149459 | 0.040383 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e98a45bb0b88643afbbb73962e2056b0b3ff0b5 | 3,918 | py | Python | pico/led.py | MATRIXKOO/W2812_with_raspberry | a81971a7efd12aa5b8ac642d411332806e4cdcad | [
"MIT"
] | null | null | null | pico/led.py | MATRIXKOO/W2812_with_raspberry | a81971a7efd12aa5b8ac642d411332806e4cdcad | [
"MIT"
] | null | null | null | pico/led.py | MATRIXKOO/W2812_with_raspberry | a81971a7efd12aa5b8ac642d411332806e4cdcad | [
"MIT"
] | null | null | null | from ws2812 import *
from RGBs import *
from random import *
np = ws2812b(60, 0, 22)
def fill_breath(RGB, top_bright):
R = RGB[0]
G = RGB[1]
B = RGB[2]
while True:
for i in range(1, 100, 1):
np.brightness(i)
np.fill(R, G, B)
np.s... | 25.441558 | 75 | 0.482899 | 544 | 3,918 | 3.347426 | 0.134191 | 0.039539 | 0.016474 | 0.021966 | 0.442065 | 0.344316 | 0.331686 | 0.321801 | 0.282262 | 0.282262 | 0 | 0.057215 | 0.393313 | 3,918 | 153 | 76 | 25.607843 | 0.708877 | 0 | 0 | 0.488 | 0 | 0 | 0.004515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008 | 0.024 | null | null | 0.048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5e99e09ff2b6f6b5cc6708381484bb95d2bd7b30 | 2,458 | py | Python | archive/2017/week17/tasks/about_strings.py | YAtOff/python0 | b5af5004131d64dd52d42746eddb72b6c43a13c7 | [
"Apache-2.0"
] | 6 | 2017-11-08T14:04:39.000Z | 2019-03-24T22:11:04.000Z | archive/2017/week17/tasks/about_strings.py | YAtOff/python0 | b5af5004131d64dd52d42746eddb72b6c43a13c7 | [
"Apache-2.0"
] | null | null | null | archive/2017/week17/tasks/about_strings.py | YAtOff/python0 | b5af5004131d64dd52d42746eddb72b6c43a13c7 | [
"Apache-2.0"
] | 7 | 2015-10-27T09:04:58.000Z | 2019-03-03T14:18:26.000Z | __ = "-=> FILL ME IN! <=-"
def assert_equal(expected, actual):
assert expected == actual, '%r == %r' % (expected, actual)
# double quoted strings are strings
string = "Hello, world."
assert_equal(__, isinstance(string, str))
# single quoted strings are also strings
string = 'Goodbye, world.'
assert_equal(__, i... | 23.409524 | 67 | 0.707486 | 344 | 2,458 | 4.848837 | 0.293605 | 0.164868 | 0.086331 | 0.06295 | 0.371103 | 0.278777 | 0.140288 | 0 | 0 | 0 | 0 | 0.000485 | 0.16192 | 2,458 | 105 | 68 | 23.409524 | 0.809223 | 0.350285 | 0 | 0.433333 | 0 | 0 | 0.180723 | 0 | 0.016667 | 0 | 0 | 0 | 0.433333 | 1 | 0.016667 | false | 0 | 0 | 0 | 0.016667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e9f6759a0c772a0b08ee308bd8faf4525f3fd52 | 550 | py | Python | setup.py | kylebebak/py-geohash64 | 533476556071e8b1982639f53067bb7d50fdbfce | [
"MIT"
] | 16 | 2016-07-31T06:19:00.000Z | 2022-03-16T05:47:19.000Z | setup.py | kylebebak/py-geohash64 | 533476556071e8b1982639f53067bb7d50fdbfce | [
"MIT"
] | 1 | 2018-12-03T10:58:20.000Z | 2018-12-03T10:58:20.000Z | setup.py | kylebebak/py-geohash64 | 533476556071e8b1982639f53067bb7d50fdbfce | [
"MIT"
] | 5 | 2017-05-25T09:03:59.000Z | 2021-04-30T11:22:09.000Z | from distutils.core import setup
setup(
name = 'py-geohash-any',
packages = ['py_geohash_any', 'py_geohash_any.tests'],
version = '1.1',
description = 'Python geohash library designed to use any encoding',
author = 'Kyle Bebak',
author_email = 'kylebebak@gmail.com',
url = 'https://... | 34.375 | 78 | 0.632727 | 70 | 550 | 4.885714 | 0.6 | 0.131579 | 0.175439 | 0.099415 | 0.222222 | 0.222222 | 0.222222 | 0.222222 | 0 | 0 | 0 | 0.01373 | 0.205455 | 550 | 15 | 79 | 36.666667 | 0.768879 | 0 | 0 | 0 | 0 | 0 | 0.491589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5ea0e250b83345196ff48f6592fbb8b419797d8b | 783 | py | Python | tests/test_utils.py | noviluni/belvaio-request-id | 8063dd5b6320cb91f037ba39d460e3202be6ed2a | [
"MIT"
] | null | null | null | tests/test_utils.py | noviluni/belvaio-request-id | 8063dd5b6320cb91f037ba39d460e3202be6ed2a | [
"MIT"
] | 6 | 2020-03-18T16:12:34.000Z | 2021-09-13T11:41:57.000Z | tests/test_utils.py | noviluni/belvaio-request-id | 8063dd5b6320cb91f037ba39d460e3202be6ed2a | [
"MIT"
] | 1 | 2021-04-29T18:43:14.000Z | 2021-04-29T18:43:14.000Z | from uuid import uuid4
import pytest
from belvaio_request_id.utils import get_request_id, set_request_id
@pytest.fixture
def uuid4_mock(mocker):
request_id = uuid4().hex
uuid4_mock = mocker.patch("belvaio_request_id.utils.uuid4")
uuid4_mock.return_value.hex = request_id
return request_id
def test_... | 25.258065 | 67 | 0.777778 | 121 | 783 | 4.578512 | 0.272727 | 0.341155 | 0.086643 | 0.086643 | 0.301444 | 0.301444 | 0.252708 | 0.129964 | 0 | 0 | 0 | 0.016467 | 0.146871 | 783 | 30 | 68 | 26.1 | 0.812874 | 0 | 0 | 0.2 | 0 | 0 | 0.090677 | 0.038314 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.15 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ea2b1e4f16f6cf422c0f03e90bb4f0f44c65361 | 2,975 | py | Python | parseGraph.py | niole/Parse-Graph | e70dabee30893e82ab294d3f69296a91da31fc0a | [
"Apache-2.0"
] | null | null | null | parseGraph.py | niole/Parse-Graph | e70dabee30893e82ab294d3f69296a91da31fc0a | [
"Apache-2.0"
] | null | null | null | parseGraph.py | niole/Parse-Graph | e70dabee30893e82ab294d3f69296a91da31fc0a | [
"Apache-2.0"
] | null | null | null | import collections
def parseGraphFromString(inputLines):
graph = collections.defaultdict(set)
for line in inputLines:
graph[line[0]].add(line[5])
return graph
output = {
'a' : {'b', 'c'},
'b' : {'c', 'f'},
'd' : {'a'}
}
inputLines = """a -> b
b -> c
a -> c
d -> a
b ... | 35.843373 | 113 | 0.623529 | 378 | 2,975 | 4.907407 | 0.272487 | 0.041509 | 0.071159 | 0.097035 | 0.28841 | 0.168194 | 0.103504 | 0.053908 | 0 | 0 | 0 | 0.003124 | 0.246723 | 2,975 | 82 | 114 | 36.280488 | 0.824632 | 0.147563 | 0 | 0.2 | 0 | 0 | 0.034151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018182 | null | null | 0.054545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5ea546b91ac7b4cb5e8ab2c07709df0a92faaf34 | 640 | py | Python | typeidea/blog/migrations/0005_auto_20191206_0004.py | persue/typeidea | 1510efaf9c260c802390ab6490e726182e8037ab | [
"Apache-2.0"
] | null | null | null | typeidea/blog/migrations/0005_auto_20191206_0004.py | persue/typeidea | 1510efaf9c260c802390ab6490e726182e8037ab | [
"Apache-2.0"
] | 5 | 2021-03-19T09:17:12.000Z | 2022-03-12T00:08:19.000Z | typeidea/blog/migrations/0005_auto_20191206_0004.py | persue/typeidea | 1510efaf9c260c802390ab6490e726182e8037ab | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.26 on 2019-12-05 16:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0004_post_content_html'),
]
operations = [
migrations.AlterModelOp... | 25.6 | 93 | 0.59375 | 68 | 640 | 5.382353 | 0.75 | 0.090164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046908 | 0.267188 | 640 | 24 | 94 | 26.666667 | 0.733475 | 0.107813 | 0 | 0.117647 | 1 | 0 | 0.167254 | 0.038732 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 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 |
5ea5be3c53b78e95c5a65a5316ceb4cdd2ac3cc7 | 195 | py | Python | internetarchive/query-shelf.py | wumpus/visigoth-data | 6887937f4547a5c8a9b52c5a0e75cb258cc55c97 | [
"Apache-2.0"
] | 1 | 2019-02-18T19:34:24.000Z | 2019-02-18T19:34:24.000Z | internetarchive/query-shelf.py | wumpus/visigoth-data | 6887937f4547a5c8a9b52c5a0e75cb258cc55c97 | [
"Apache-2.0"
] | null | null | null | internetarchive/query-shelf.py | wumpus/visigoth-data | 6887937f4547a5c8a9b52c5a0e75cb258cc55c97 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import shelve
import sys
print("saw filename of", sys.argv[1])
with shelve.open(sys.argv[1], flag='r') as d:
for k in sys.argv[2:]:
print(k, ',', d.get(k))
| 16.25 | 45 | 0.605128 | 36 | 195 | 3.277778 | 0.666667 | 0.177966 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025478 | 0.194872 | 195 | 11 | 46 | 17.727273 | 0.726115 | 0.107692 | 0 | 0 | 0 | 0 | 0.098837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5eaf4026b0235c733fb0a6061f3ded5f93d095c3 | 912 | py | Python | EmpowermentParser.py | theckhd/EmpDataLogger | 075b43b9de2cc2bccf42d330f2d3a65c59af5df4 | [
"MIT"
] | null | null | null | EmpowermentParser.py | theckhd/EmpDataLogger | 075b43b9de2cc2bccf42d330f2d3a65c59af5df4 | [
"MIT"
] | null | null | null | EmpowermentParser.py | theckhd/EmpDataLogger | 075b43b9de2cc2bccf42d330f2d3a65c59af5df4 | [
"MIT"
] | null | null | null | import sys
import os.path
import datetime
def Main(argv=None):
if argv is None:
argv = sys.argv
secretWorldPathName = "W:\\Secret World Legends\\"
outputCSVPathName = "W:\\Secret World Legends\\"
try:
lines = []
with open(secretWorldPathName + 'ClientLog.txt', 'r') as logFi... | 36.48 | 144 | 0.593202 | 101 | 912 | 5.277228 | 0.534653 | 0.157599 | 0.045028 | 0.071295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004511 | 0.270833 | 912 | 25 | 145 | 36.48 | 0.796992 | 0 | 0 | 0 | 0 | 0 | 0.184477 | 0.023622 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5eb6a6f3fdc2cd5ba4b8d40d98ad6a34b6211d3d | 314 | py | Python | sanity_checker/similarity.py | QData/SanityCheck | 7cbf37296f84584b5372a1d556911ad4c1dfe138 | [
"Apache-2.0"
] | null | null | null | sanity_checker/similarity.py | QData/SanityCheck | 7cbf37296f84584b5372a1d556911ad4c1dfe138 | [
"Apache-2.0"
] | null | null | null | sanity_checker/similarity.py | QData/SanityCheck | 7cbf37296f84584b5372a1d556911ad4c1dfe138 | [
"Apache-2.0"
] | 1 | 2019-09-13T18:00:54.000Z | 2019-09-13T18:00:54.000Z |
from sklearn.metrics import mean_squared_error
import numpy as np
def mse(A, B):
return (np.square(A - B)).mean(axis=None)
from scipy.stats import spearmanr
def spearman_rank(A, B):
result = 0.0
for i in range(len(A)):
result += spearmanr(A[i], B[i], axis=None)[0]
return result / len(A) | 26.166667 | 53 | 0.659236 | 55 | 314 | 3.709091 | 0.545455 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012 | 0.203822 | 314 | 12 | 54 | 26.166667 | 0.804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0.1 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5eb6eea2ac96f08fe67f5b3c89277087f63138e7 | 1,790 | py | Python | public-engines/spark-mllib-engine/spark_mllib_engine/data_handler/training_preparator.py | lucasnil/incubator-marvin | 41023ddd819babff9c7718ab5c7f092d73eada9d | [
"Apache-2.0"
] | null | null | null | public-engines/spark-mllib-engine/spark_mllib_engine/data_handler/training_preparator.py | lucasnil/incubator-marvin | 41023ddd819babff9c7718ab5c7f092d73eada9d | [
"Apache-2.0"
] | null | null | null | public-engines/spark-mllib-engine/spark_mllib_engine/data_handler/training_preparator.py | lucasnil/incubator-marvin | 41023ddd819babff9c7718ab5c7f092d73eada9d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
"""TrainingPreparator engine action.
Use this module to add the project main code.
"""
from .._compatibility import six
from .._logging import get_logger
from ..spark_serializer import SparkSerializer
from marvin_python_toolbox.engine_base import EngineBaseDataHandler
__all__ =... | 30.338983 | 135 | 0.715084 | 190 | 1,790 | 6.589474 | 0.547368 | 0.035144 | 0.020767 | 0.031949 | 0.041534 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003441 | 0.188268 | 1,790 | 58 | 136 | 30.862069 | 0.858224 | 0.189385 | 0 | 0 | 0 | 0 | 0.115438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 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 |
5eba02722b84cfa92f7a56f41cf658445ef2ae67 | 3,896 | py | Python | func_preproc/SliceTimer.py | spisakt/PUMI | bea29696aa90e5581f08919e1a2cd9f569284984 | [
"BSD-3-Clause"
] | 5 | 2018-06-12T08:17:13.000Z | 2022-02-25T20:07:00.000Z | func_preproc/SliceTimer.py | spisakt/PUMI | bea29696aa90e5581f08919e1a2cd9f569284984 | [
"BSD-3-Clause"
] | null | null | null | func_preproc/SliceTimer.py | spisakt/PUMI | bea29696aa90e5581f08919e1a2cd9f569284984 | [
"BSD-3-Clause"
] | 2 | 2020-10-19T15:27:28.000Z | 2021-06-04T17:02:27.000Z | def slt_workflow(slicetiming_txt="alt+z",SinkTag="func_preproc",wf_name="slicetiming_correction"):
"""
Modified version of porcupine generated slicetiming code:
`source: -`
Creates a slice time corrected functional image.
Workflow inputs:
:param func: The reoriented functional file.
... | 32.466667 | 167 | 0.670431 | 427 | 3,896 | 5.98829 | 0.355972 | 0.081736 | 0.035198 | 0.048494 | 0.197497 | 0.066484 | 0 | 0 | 0 | 0 | 0 | 0.017385 | 0.23229 | 3,896 | 119 | 168 | 32.739496 | 0.837513 | 0.375257 | 0 | 0 | 1 | 0 | 0.105532 | 0.009362 | 0 | 0 | 0 | 0.008403 | 0 | 1 | 0.022727 | false | 0 | 0.204545 | 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 |
5ebca8ed469afbba8c886b1cccfa304ab8b0ddb7 | 4,886 | py | Python | preprocessing/create_labels.py | Jack-0-0/Detecting-and-Classifying-Animal-Calls | 7632216c389b579ef048823247c835cc5942d6df | [
"MIT"
] | null | null | null | preprocessing/create_labels.py | Jack-0-0/Detecting-and-Classifying-Animal-Calls | 7632216c389b579ef048823247c835cc5942d6df | [
"MIT"
] | null | null | null | preprocessing/create_labels.py | Jack-0-0/Detecting-and-Classifying-Animal-Calls | 7632216c389b579ef048823247c835cc5942d6df | [
"MIT"
] | 1 | 2019-10-24T21:19:43.000Z | 2019-10-24T21:19:43.000Z | import numpy as np
import pandas as pd
import glob
import sys
import os
def find_label(file, path):
"""Find audit label relating to spectrogram file.
# Arguments
file: spectrogram file.
path: spectrogram directory.
# Returns
audit label file path relating to spectrogram file.
If the ... | 35.151079 | 113 | 0.576955 | 693 | 4,886 | 3.903319 | 0.207792 | 0.028096 | 0.038817 | 0.048799 | 0.271719 | 0.236599 | 0.184843 | 0.140481 | 0.096488 | 0.067653 | 0 | 0.038363 | 0.279779 | 4,886 | 138 | 114 | 35.405797 | 0.730321 | 0.013917 | 0 | 0 | 0 | 0 | 0.122232 | 0.042463 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.067568 | 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 |
5ec0a3be6d802c3005d4ad224ff24717f465307e | 3,889 | py | Python | TODO/build_update.py | dingdang2012/tlsprober | 927f6177939470235bf336bca27096369932fc66 | [
"Apache-2.0"
] | 1 | 2019-01-30T13:18:02.000Z | 2019-01-30T13:18:02.000Z | TODO/build_update.py | dingdang2012/tlsprober | 927f6177939470235bf336bca27096369932fc66 | [
"Apache-2.0"
] | null | null | null | TODO/build_update.py | dingdang2012/tlsprober | 927f6177939470235bf336bca27096369932fc66 | [
"Apache-2.0"
] | null | null | null | # Copyright 2010-2012 Opera Software ASA
#
# 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 ... | 29.687023 | 94 | 0.715351 | 566 | 3,889 | 4.768551 | 0.353357 | 0.038533 | 0.035569 | 0.048907 | 0.188588 | 0.129678 | 0.071137 | 0.071137 | 0.071137 | 0.071137 | 0 | 0.01189 | 0.178195 | 3,889 | 130 | 95 | 29.915385 | 0.832603 | 0.148881 | 0 | 0.26087 | 0 | 0 | 0.121575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.101449 | null | null | 0.057971 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ec334c4aa466a12e06c402c4292fd4acc1a02c2 | 1,450 | py | Python | webtool/server/views/frontend/retrainings.py | wodo/WebTool3 | 1582a03d619434d8a6139f705a1b5860e9b5b8b8 | [
"BSD-2-Clause"
] | 13 | 2018-12-16T21:01:24.000Z | 2019-07-03T06:23:41.000Z | webtool/server/views/frontend/retrainings.py | dav-kempten/WebTool3 | 859f39df67cb0f853c7fe33cb5d08b999d8692fc | [
"BSD-2-Clause"
] | 26 | 2019-07-07T06:44:06.000Z | 2021-09-07T07:28:34.000Z | webtool/server/views/frontend/retrainings.py | dav-kempten/WebTool3 | 859f39df67cb0f853c7fe33cb5d08b999d8692fc | [
"BSD-2-Clause"
] | 3 | 2017-06-18T06:22:52.000Z | 2019-07-03T06:21:05.000Z | # -*- coding: utf-8 -*-
from django.http import Http404
from django.template.defaultfilters import date
from rest_framework import viewsets, permissions, status, mixins
from rest_framework.response import Response
from server.models import Retraining
from server.serializers.frontend.retrainings import RetrainingListSe... | 33.72093 | 95 | 0.684138 | 157 | 1,450 | 6.261147 | 0.573248 | 0.020346 | 0.034588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007895 | 0.213793 | 1,450 | 42 | 96 | 34.52381 | 0.854386 | 0.066207 | 0 | 0 | 0 | 0 | 0.056054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.206897 | 0.034483 | 0.517241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5ecfc186716e752020f338de3bd2ffa9c9e45aac | 3,211 | py | Python | src/survivor_scraping/reddit/reddit_transform.py | SeanAmmirati/survivor_processing | b4a032ee9e9ad55cf0b15c46ee9a8028be4bafe8 | [
"MIT"
] | null | null | null | src/survivor_scraping/reddit/reddit_transform.py | SeanAmmirati/survivor_processing | b4a032ee9e9ad55cf0b15c46ee9a8028be4bafe8 | [
"MIT"
] | null | null | null | src/survivor_scraping/reddit/reddit_transform.py | SeanAmmirati/survivor_processing | b4a032ee9e9ad55cf0b15c46ee9a8028be4bafe8 | [
"MIT"
] | null | null | null | from ..helpers.db_funcs import create_season_times, create_episode_times
from ..helpers.transform_helpers import add_to_df, coerce_col, sync_with_remote
import pandas as pd
from collections import OrderedDict
def process_utc(df, *args, **kwargs):
return pd.DataFrame(pd.to_datetime(df['created_utc'], unit='s'))
... | 35.677778 | 88 | 0.641856 | 394 | 3,211 | 4.885787 | 0.279188 | 0.051429 | 0.024935 | 0.032727 | 0.127792 | 0.067532 | 0.043636 | 0.043636 | 0 | 0 | 0 | 0 | 0.257864 | 3,211 | 89 | 89 | 36.078652 | 0.807805 | 0.037372 | 0 | 0 | 0 | 0 | 0.084845 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.101695 | false | 0 | 0.067797 | 0.050847 | 0.271186 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
5ed40d091d5d7be22698283c930ca81d1d4163e7 | 292 | py | Python | CursoEmVideo/pythonProject/ex003.py | cassio645/Aprendendo-python | 17a8b5a0e7abc3342d24841ed28093db13d2c130 | [
"MIT"
] | null | null | null | CursoEmVideo/pythonProject/ex003.py | cassio645/Aprendendo-python | 17a8b5a0e7abc3342d24841ed28093db13d2c130 | [
"MIT"
] | null | null | null | CursoEmVideo/pythonProject/ex003.py | cassio645/Aprendendo-python | 17a8b5a0e7abc3342d24841ed28093db13d2c130 | [
"MIT"
] | null | null | null | #somando dois numeros
n1 = int(input('Digite o primeiro numero: '))
n2 = int(input('Digite o segundo numero: '))
s = n1 + n2
print('{} mais {} é igual a {}'.format(n1, n2, s))
# int 7, -4, 0 9875
# float 4.5 0.076 -15.223 3.1415333 7.0
# bool True False
# str alfanumerico ' '
| 20.857143 | 50 | 0.599315 | 50 | 292 | 3.5 | 0.7 | 0.091429 | 0.16 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151786 | 0.232877 | 292 | 13 | 51 | 22.461538 | 0.629464 | 0.424658 | 0 | 0 | 0 | 0 | 0.453988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ed5f90c7bc53c6a4797f77e88cf0a4358cb90a0 | 1,553 | py | Python | pointpy/oauth.py | Gyran/pointpy | 6492aece2c20e5a81876979c81bcc07f25466cb4 | [
"0BSD"
] | null | null | null | pointpy/oauth.py | Gyran/pointpy | 6492aece2c20e5a81876979c81bcc07f25466cb4 | [
"0BSD"
] | null | null | null | pointpy/oauth.py | Gyran/pointpy | 6492aece2c20e5a81876979c81bcc07f25466cb4 | [
"0BSD"
] | null | null | null | import requests
import time
class PointOAuthError(Exception):
pass
class PointCredentialsManager(object):
OAUTH_TOKEN_URL = 'https://api.minut.com/v1/oauth/token'
def __init__(self, client_id, client_secret, username, password):
self.client_id = client_id
self.client_secret = client_sec... | 28.236364 | 74 | 0.64971 | 189 | 1,553 | 4.994709 | 0.301587 | 0.17161 | 0.110169 | 0.057203 | 0.322034 | 0.231992 | 0.138771 | 0.082627 | 0 | 0 | 0 | 0.005177 | 0.253703 | 1,553 | 54 | 75 | 28.759259 | 0.809318 | 0 | 0 | 0.052632 | 0 | 0 | 0.094012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131579 | false | 0.131579 | 0.052632 | 0 | 0.394737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5ed7855f58f22db6d0d20e8dd304767eeac7f908 | 5,599 | py | Python | src/pyslice/pyslice_lib/PySPG/ParamIterators.py | abhishekmishragithub/pyslice | b97ee211ab4f527034a688f7c4a48f60b0083df9 | [
"BSD-3-Clause"
] | null | null | null | src/pyslice/pyslice_lib/PySPG/ParamIterators.py | abhishekmishragithub/pyslice | b97ee211ab4f527034a688f7c4a48f60b0083df9 | [
"BSD-3-Clause"
] | 3 | 2020-11-24T18:09:28.000Z | 2021-10-04T07:14:36.000Z | src/pyslice/pyslice_lib/PySPG/ParamIterators.py | abhishekmishragithub/pyslice | b97ee211ab4f527034a688f7c4a48f60b0083df9 | [
"BSD-3-Clause"
] | 1 | 2021-10-04T06:00:17.000Z | 2021-10-04T06:00:17.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import sys
#
# :::~ Copyright (C) 2005 by Claudio J. Tessone <tessonec@imedea.uib.es>
#
# Created on: 09 Jan 2005
#
# Copyright: Distributed according to GNU/GPL Version 2
# (see http://www.gnu.org)
#
#
from builtins import map, object, range
f... | 28.860825 | 112 | 0.599393 | 669 | 5,599 | 4.825112 | 0.312407 | 0.047088 | 0.034077 | 0.026332 | 0.32373 | 0.261462 | 0.23482 | 0.200434 | 0.119888 | 0.119888 | 0 | 0.00708 | 0.293624 | 5,599 | 193 | 113 | 29.010363 | 0.809102 | 0.289337 | 0 | 0.424528 | 0 | 0 | 0.058209 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 1 | 0.216981 | false | 0.009434 | 0.037736 | 0.056604 | 0.424528 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0d58aa8d16aa47fd0f4abca33bc4212a52eff553 | 2,106 | py | Python | helper_funcs/trie.py | linminhtoo/algorithms | 884422a7c9f531e7ccaae03ba1ccbd6966b23dd3 | [
"MIT"
] | null | null | null | helper_funcs/trie.py | linminhtoo/algorithms | 884422a7c9f531e7ccaae03ba1ccbd6966b23dd3 | [
"MIT"
] | null | null | null | helper_funcs/trie.py | linminhtoo/algorithms | 884422a7c9f531e7ccaae03ba1ccbd6966b23dd3 | [
"MIT"
] | null | null | null | # https://leetcode.com/discuss/general-discussion/1066206/introduction-to-trie
# https://leetcode.com/problems/implement-trie-prefix-tree/
# https://medium.com/@prefixyteam/how-we-built-prefixy-a-scalable-prefix-search-service-for-powering-autocomplete-c20f98e2eff1
class Trie:
def __init__(self):
self.root ... | 33.428571 | 126 | 0.585945 | 268 | 2,106 | 4.451493 | 0.268657 | 0.194468 | 0.080469 | 0.093881 | 0.616094 | 0.584241 | 0.584241 | 0.574183 | 0.574183 | 0.574183 | 0 | 0.014727 | 0.322887 | 2,106 | 63 | 127 | 33.428571 | 0.821879 | 0.216999 | 0 | 0.865385 | 0 | 0 | 0.002436 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.019231 | 0 | 0.365385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d594a3e53c05b4fcc06c97d9d58303cbb0cfe51 | 367 | py | Python | ex114.py | jefernathan/Python | 2f840a625e8d46d41ab36df07ef50ae15a03c5ab | [
"MIT"
] | null | null | null | ex114.py | jefernathan/Python | 2f840a625e8d46d41ab36df07ef50ae15a03c5ab | [
"MIT"
] | null | null | null | ex114.py | jefernathan/Python | 2f840a625e8d46d41ab36df07ef50ae15a03c5ab | [
"MIT"
] | null | null | null | # Crie um código em Python que teste se o site pudim está acessível pelo computador usado.
import urllib.request
try:
site = urllib.request.urlopen('http://pudim.com.br/')
except urllib.request.URLError:
print('\033[;31mO site pudim.com.br não esta acessível no momento\033[m')
else:
print('\033[;32mO site ... | 36.7 | 90 | 0.735695 | 60 | 367 | 4.5 | 0.6 | 0.1 | 0.111111 | 0.103704 | 0.192593 | 0.192593 | 0 | 0 | 0 | 0 | 0 | 0.051118 | 0.147139 | 367 | 9 | 91 | 40.777778 | 0.811502 | 0.239782 | 0 | 0 | 0 | 0 | 0.519856 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 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 |
0d5d02fddca0b8622f45bc1aeac3e4a19e040d72 | 946 | py | Python | registration/admin.py | ravsimar-sodhi/SRIP-web-app | a134919c7c403d0344a20fae2e29b564244d4e87 | [
"MIT"
] | null | null | null | registration/admin.py | ravsimar-sodhi/SRIP-web-app | a134919c7c403d0344a20fae2e29b564244d4e87 | [
"MIT"
] | null | null | null | registration/admin.py | ravsimar-sodhi/SRIP-web-app | a134919c7c403d0344a20fae2e29b564244d4e87 | [
"MIT"
] | null | null | null | from django.contrib import admin
#from guardian.admin import GuardedModelAdmin
from django.core.mail import EmailMessage
from .models import Student, User
# Register your models here.
class UserAdmin(admin.ModelAdmin):
pass
admin.site.register(User, UserAdmin)
class StudentAdmin(admin.ModelAdmin):
list_displa... | 36.384615 | 148 | 0.675476 | 115 | 946 | 5.495652 | 0.6 | 0.031646 | 0.053797 | 0.063291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00267 | 0.208245 | 946 | 25 | 149 | 37.84 | 0.841122 | 0.075053 | 0 | 0 | 0 | 0.055556 | 0.21764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.166667 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0d6b4c72499379f55830f39ec2a9157a25592b7b | 745 | py | Python | app_device/migrations/0001_initial.py | tvasilii/django-antifraud | f12126afacadb3be26aef0803d1239dafac2a5a4 | [
"MIT"
] | null | null | null | app_device/migrations/0001_initial.py | tvasilii/django-antifraud | f12126afacadb3be26aef0803d1239dafac2a5a4 | [
"MIT"
] | 5 | 2018-12-10T15:16:02.000Z | 2021-03-23T04:38:21.000Z | app_device/migrations/0001_initial.py | tvasilii/django-antifraud | f12126afacadb3be26aef0803d1239dafac2a5a4 | [
"MIT"
] | 1 | 2018-12-12T10:14:18.000Z | 2018-12-12T10:14:18.000Z | # Generated by Django 2.1.4 on 2018-12-06 18:40
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Tor',
fields=[
... | 29.8 | 133 | 0.622819 | 82 | 745 | 5.512195 | 0.670732 | 0.044248 | 0.088496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034173 | 0.253691 | 745 | 24 | 134 | 31.041667 | 0.778777 | 0.060403 | 0 | 0 | 1 | 0 | 0.051576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d6db56c6754ca924918d0e3d725dd630f405262 | 2,542 | py | Python | balboa/characterization/characterize_env_balance.py | charles-blouin/Servorobots | c5839f96462a6fab9cfe6440a78cf545d29f933c | [
"MIT"
] | 2 | 2019-02-28T20:25:40.000Z | 2021-03-12T03:22:01.000Z | balboa/characterization/characterize_env_balance.py | charles-blouin/Servorobots | c5839f96462a6fab9cfe6440a78cf545d29f933c | [
"MIT"
] | null | null | null | balboa/characterization/characterize_env_balance.py | charles-blouin/Servorobots | c5839f96462a6fab9cfe6440a78cf545d29f933c | [
"MIT"
] | 1 | 2019-01-23T17:58:55.000Z | 2019-01-23T17:58:55.000Z | import numpy as np
import matplotlib.pyplot as plt
import json
import gym
from balboa.sim_env_motor_test import sim_motor_test
import scipy.optimize as opt
# python -m balboa.characterization.characterize_env_balance
file_name = 'balboa/characterization/tests/01_real_env_balance.txt'
action_labels = ["Motor 0", "Mo... | 34.351351 | 101 | 0.632179 | 362 | 2,542 | 4.281768 | 0.356354 | 0.054194 | 0.030968 | 0.028387 | 0.174194 | 0.112258 | 0.054194 | 0.054194 | 0.054194 | 0 | 0 | 0.018127 | 0.218725 | 2,542 | 74 | 102 | 34.351351 | 0.762336 | 0.148702 | 0 | 0 | 0 | 0 | 0.146311 | 0.050837 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0 | false | 0 | 0.146341 | 0 | 0.146341 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0d7babeba0a157abb1b49c478cb6c548ce71b008 | 8,286 | py | Python | metal_python/models/v1_machine_ipmi.py | metal-stack/metal-python | cdf40fa86d2b2944f9818cef1c6723b1eecc506e | [
"MIT"
] | 7 | 2020-12-21T05:24:24.000Z | 2022-02-12T20:55:32.000Z | metal_python/models/v1_machine_ipmi.py | metal-stack/metal-python | cdf40fa86d2b2944f9818cef1c6723b1eecc506e | [
"MIT"
] | 6 | 2020-09-16T07:23:34.000Z | 2022-01-18T12:05:30.000Z | metal_python/models/v1_machine_ipmi.py | metal-stack/metal-python | cdf40fa86d2b2944f9818cef1c6723b1eecc506e | [
"MIT"
] | null | null | null | # coding: utf-8
"""
metal-api
API to manage and control plane resources like machines, switches, operating system images, machine sizes, networks, IP addresses and more # noqa: E501
OpenAPI spec version: v0.15.7
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprin... | 27.078431 | 156 | 0.566739 | 922 | 8,286 | 5.023861 | 0.14859 | 0.060449 | 0.131261 | 0.119171 | 0.430484 | 0.380829 | 0.378886 | 0.154361 | 0.084413 | 0.016408 | 0 | 0.028059 | 0.333333 | 8,286 | 305 | 157 | 27.167213 | 0.810463 | 0.32573 | 0 | 0.071942 | 0 | 0 | 0.123976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.158273 | false | 0.086331 | 0.021583 | 0 | 0.302158 | 0.014388 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0d7ef8e1083a9e44a4f157ded644a85a8066d86b | 7,494 | py | Python | submissions/aardvark/wumpus.py | LukeLT255/aima-python | aa79b0f3db54764052de2559d1d1530b17e61312 | [
"MIT"
] | 1 | 2018-08-24T14:04:18.000Z | 2018-08-24T14:04:18.000Z | submissions/aardvark/wumpus.py | LukeLT255/aima-python | aa79b0f3db54764052de2559d1d1530b17e61312 | [
"MIT"
] | null | null | null | submissions/aardvark/wumpus.py | LukeLT255/aima-python | aa79b0f3db54764052de2559d1d1530b17e61312 | [
"MIT"
] | 1 | 2018-08-23T19:27:23.000Z | 2018-08-23T19:27:23.000Z | # ______________________________________________________________________________
# The Wumpus World
class Gold(Thing):
def __eq__(self, rhs):
'''All Gold are equal'''
return rhs.__class__ == Gold
pass
class Bump(Thing):
pass
class Glitter(Thing):
pass
class Pit(Thing):
pass
cl... | 36.378641 | 107 | 0.577395 | 948 | 7,494 | 4.338608 | 0.196203 | 0.023827 | 0.037929 | 0.035011 | 0.25699 | 0.210066 | 0.207148 | 0.14904 | 0.11646 | 0.11646 | 0 | 0.014139 | 0.311049 | 7,494 | 205 | 108 | 36.556098 | 0.782491 | 0.132506 | 0 | 0.183673 | 0 | 0 | 0.024815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068027 | false | 0.061224 | 0 | 0 | 0.251701 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0d7ff462ecd92243c9fc8d27794602cf37874820 | 1,580 | py | Python | pineapple/pineapple_nodes/nodes/value_nodes.py | societe-generale/Pineapple | 2aad2fbd0d7e231608d1d02bce45a28cd22f82a8 | [
"MIT"
] | null | null | null | pineapple/pineapple_nodes/nodes/value_nodes.py | societe-generale/Pineapple | 2aad2fbd0d7e231608d1d02bce45a28cd22f82a8 | [
"MIT"
] | null | null | null | pineapple/pineapple_nodes/nodes/value_nodes.py | societe-generale/Pineapple | 2aad2fbd0d7e231608d1d02bce45a28cd22f82a8 | [
"MIT"
] | null | null | null | from pineapple_core.core.node import node, wrap
from pineapple_core.core.input_flags import Hidden
from pineapple_core.core.types import Any
from pineapple_core.core.node_output import NodeOutput
@node(module="Value", name="String", autotrigger=True)
def string_node(a: Hidden(str)) -> str:
return a
@node(module... | 25.079365 | 72 | 0.701266 | 220 | 1,580 | 4.868182 | 0.204545 | 0.056022 | 0.084034 | 0.106443 | 0.248366 | 0.097106 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177215 | 1,580 | 62 | 73 | 25.483871 | 0.823846 | 0 | 0 | 0.111111 | 0 | 0 | 0.037975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.088889 | 0.133333 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
0d82392ed9b72d541925f33c5a97d93c198eeb95 | 29,295 | py | Python | src/ratslam/posecell_networkv.py | raouiyounes/ratslamPython | 33604f2a4c7b6e9d8ed0cbfd910fa0e78f72415c | [
"BSD-3-Clause"
] | null | null | null | src/ratslam/posecell_networkv.py | raouiyounes/ratslamPython | 33604f2a4c7b6e9d8ed0cbfd910fa0e78f72415c | [
"BSD-3-Clause"
] | null | null | null | src/ratslam/posecell_networkv.py | raouiyounes/ratslamPython | 33604f2a4c7b6e9d8ed0cbfd910fa0e78f72415c | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import math
import itertools
import numpy
from enum import Enum
from pylab import *
import sys
import pdb
class PosecellExperience:
x_pc = 0.0
y_pc = 0.0
th_pc = 0.0
vt_id = 0
class PosecellVisualTemplate:
pc_x = 0.0
pc_y = 0.0
pc_th = 0.0
decay = 0.0
exps = [];
... | 40.130137 | 202 | 0.546305 | 4,378 | 29,295 | 3.365464 | 0.066469 | 0.105878 | 0.080019 | 0.053753 | 0.620334 | 0.523551 | 0.453102 | 0.392969 | 0.348989 | 0.294421 | 0 | 0.032383 | 0.339068 | 29,295 | 730 | 203 | 40.130137 | 0.728592 | 0 | 0 | 0.232877 | 0 | 0 | 0.003757 | 0.002518 | 0 | 0 | 0 | 0 | 0.001957 | 0 | null | null | 0 | 0.015656 | null | null | 0.003914 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0d83906fb055372878012d1e2c3cfffc4249ab2a | 613 | py | Python | baseline/text2langstats.py | parallelcrawl/DataCollection | 4308473e6b53779159a15c1416bff3f2291dd1f2 | [
"Apache-2.0"
] | 8 | 2018-02-08T16:03:00.000Z | 2022-01-19T11:41:38.000Z | baseline/text2langstats.py | christianbuck/CorpusMining | f9248c3528a415a1e5af2c5a54a60c16cd79ff1d | [
"Apache-2.0"
] | 3 | 2017-08-08T10:53:29.000Z | 2017-08-08T10:58:51.000Z | baseline/text2langstats.py | parallelcrawl/DataCollection | 4308473e6b53779159a15c1416bff3f2291dd1f2 | [
"Apache-2.0"
] | 4 | 2018-06-09T21:53:09.000Z | 2022-01-19T11:41:48.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from collections import defaultdict
magic_number = "df6fa1abb58549287111ba8d776733e9"
langstats = defaultdict(int)
lang = None
for line in sys.stdin:
if line.startswith(magic_number):
# df6fa1abb58549287111ba8d776733e9
# http://www.achpr.... | 25.541667 | 70 | 0.670473 | 77 | 613 | 5.285714 | 0.688312 | 0.019656 | 0.211302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105578 | 0.181077 | 613 | 23 | 71 | 26.652174 | 0.705179 | 0.25938 | 0 | 0 | 0 | 0 | 0.10245 | 0.071269 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
0d8810f7645bbf6f7a31bb05fd305d59cfe2d50f | 272 | py | Python | crowdfunding_web_app/user_profile/urls.py | atefhares/CrowdFunding-Wep-App | c486fe98d05def0001895fc59238aff8c8b1c4f6 | [
"MIT"
] | null | null | null | crowdfunding_web_app/user_profile/urls.py | atefhares/CrowdFunding-Wep-App | c486fe98d05def0001895fc59238aff8c8b1c4f6 | [
"MIT"
] | 8 | 2021-03-19T01:07:49.000Z | 2022-03-12T00:21:57.000Z | crowdfunding_web_app/user_profile/urls.py | atefhares/CrowdFunding-Web-App | c486fe98d05def0001895fc59238aff8c8b1c4f6 | [
"MIT"
] | 3 | 2020-04-05T08:06:11.000Z | 2020-04-05T14:56:02.000Z | from django.urls import path
from . import views
urlpatterns = [
path('', views.profile, name="profile"),
path('delete', views.deleteuser, name="delete"),
path('edit', views.edit_profile, name='edit'),
path('projects', views.list_projects, name="list")
]
| 27.2 | 54 | 0.672794 | 34 | 272 | 5.323529 | 0.411765 | 0.121547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150735 | 272 | 9 | 55 | 30.222222 | 0.78355 | 0 | 0 | 0 | 0 | 0 | 0.143382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d88806d174cb20048449ccb64070dc8fbc36732 | 368 | py | Python | edm_web1/app/core/forms.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | edm_web1/app/core/forms.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | 18 | 2020-06-05T18:17:40.000Z | 2022-03-11T23:25:21.000Z | edm_web1/app/core/forms.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | # coding=utf-8
from django import forms
from app.core.models import Customer, CustomerDomain
class CustomerForm(forms.ModelForm):
class Meta:
model = Customer
fields = ['linkman', 'phone', 'mobile', 'email', 'im', 'address']
class CustomerDomainForm(forms.ModelForm):
class Meta:
mod... | 21.647059 | 73 | 0.663043 | 39 | 368 | 6.25641 | 0.666667 | 0.114754 | 0.155738 | 0.188525 | 0.229508 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003484 | 0.220109 | 368 | 16 | 74 | 23 | 0.84669 | 0.032609 | 0 | 0.2 | 0 | 0 | 0.107345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d8fce6a19322b8c356ec5535b60d120c370b727 | 9,730 | py | Python | misc_scripts/eval_vision.py | laknath/exploring_meta | 103434035c92f829c847183e1b5b4b03a1b0b31d | [
"MIT"
] | 9 | 2021-03-07T21:11:40.000Z | 2022-03-01T08:36:01.000Z | misc_scripts/eval_vision.py | laknath/exploring_meta | 103434035c92f829c847183e1b5b4b03a1b0b31d | [
"MIT"
] | 3 | 2020-12-11T15:52:09.000Z | 2021-09-29T09:03:43.000Z | misc_scripts/eval_vision.py | laknath/exploring_meta | 103434035c92f829c847183e1b5b4b03a1b0b31d | [
"MIT"
] | 2 | 2021-11-26T12:38:26.000Z | 2022-02-19T12:44:56.000Z | #!/usr/bin/env python3
import os
import json
import torch
from misc_scripts import run_cl_exp, run_rep_exp
from utils import get_mini_imagenet, get_omniglot
from core_functions.vision import evaluate
from core_functions.vision_models import OmniglotCNN, MiniImagenetCNN, ConvBase
from core_functions.maml import MAML
... | 38.458498 | 117 | 0.696711 | 1,383 | 9,730 | 4.602314 | 0.151844 | 0.046504 | 0.047133 | 0.062844 | 0.722231 | 0.70055 | 0.673998 | 0.644462 | 0.612255 | 0.590573 | 0 | 0.063312 | 0.185098 | 9,730 | 252 | 118 | 38.611111 | 0.739438 | 0.034327 | 0 | 0.377907 | 0 | 0.034884 | 0.330987 | 0.256427 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040698 | false | 0 | 0.046512 | 0.005814 | 0.110465 | 0.05814 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d90fb63f6665b97969db6aa4bcf67f33268f4d4 | 3,227 | py | Python | src/pretalx/schedule/migrations/0001_initial.py | xhub/pretalx | 33bd07ec98ddeb5b7ff35fe7e30c4d38bef57d7e | [
"Apache-2.0"
] | null | null | null | src/pretalx/schedule/migrations/0001_initial.py | xhub/pretalx | 33bd07ec98ddeb5b7ff35fe7e30c4d38bef57d7e | [
"Apache-2.0"
] | 1 | 2019-07-05T20:03:42.000Z | 2019-07-05T20:03:42.000Z | src/pretalx/schedule/migrations/0001_initial.py | xhub/pretalx | 33bd07ec98ddeb5b7ff35fe7e30c4d38bef57d7e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-04-29 15:18
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import i18nfield.fields
import pretalx.common.mixins
class Migration(migrations.Migration):
... | 47.455882 | 151 | 0.619771 | 326 | 3,227 | 6.015337 | 0.282209 | 0.036716 | 0.057114 | 0.08975 | 0.63539 | 0.63539 | 0.595614 | 0.573687 | 0.573687 | 0.573687 | 0 | 0.023218 | 0.239231 | 3,227 | 67 | 152 | 48.164179 | 0.77556 | 0.021072 | 0 | 0.474576 | 1 | 0 | 0.103929 | 0.013942 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.101695 | 0 | 0.169492 | 0 | 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 |
0d94e57a12d85a53f14c8512b3dec773d9825449 | 948 | py | Python | ex1/solutions/limit.py | filmnoirprod/oslab | 7d5a9dcc6e49aea12d9a877c9a4019d47f892ee4 | [
"MIT"
] | null | null | null | ex1/solutions/limit.py | filmnoirprod/oslab | 7d5a9dcc6e49aea12d9a877c9a4019d47f892ee4 | [
"MIT"
] | null | null | null | ex1/solutions/limit.py | filmnoirprod/oslab | 7d5a9dcc6e49aea12d9a877c9a4019d47f892ee4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys, os
def create(str):
path = os.path.expanduser("/sys/fs/cgroup/cpu/"+ str[1]+"/"+str[3])
if not os.path.exists(path):
os.makedirs(path)
def remove(str):
path = os.path.expanduser("/sys/fs/cgroup/cpu/"+ str[1]+"/"+str[3])
os.removedirs(path)
def add(str):
path = os.path.... | 20.608696 | 69 | 0.580169 | 150 | 948 | 3.586667 | 0.34 | 0.055762 | 0.066915 | 0.096654 | 0.36803 | 0.36803 | 0.36803 | 0.36803 | 0.36803 | 0.36803 | 0 | 0.018088 | 0.183544 | 948 | 45 | 70 | 21.066667 | 0.677003 | 0.021097 | 0 | 0.162162 | 0 | 0 | 0.150108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027027 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0d956adb319bf84a4c9268e23e36a04c70c08d4b | 12,591 | py | Python | octoprint_prometheus_exporter/__init__.py | hairyhenderson/OctoPrint-Prometheus-Exporter | 461d2f6d1d16145858ff1769f05117625c63e407 | [
"MIT"
] | null | null | null | octoprint_prometheus_exporter/__init__.py | hairyhenderson/OctoPrint-Prometheus-Exporter | 461d2f6d1d16145858ff1769f05117625c63e407 | [
"MIT"
] | null | null | null | octoprint_prometheus_exporter/__init__.py | hairyhenderson/OctoPrint-Prometheus-Exporter | 461d2f6d1d16145858ff1769f05117625c63e407 | [
"MIT"
] | null | null | null | # coding=utf-8
from __future__ import absolute_import, division, print_function, unicode_literals
from threading import Timer
import time
import os
import octoprint.plugin
from octoprint.util.version import get_octoprint_version_string
from octoprint.util import RepeatedTimer
from prometheus_client import Counter, Inf... | 38.741538 | 124 | 0.762767 | 1,721 | 12,591 | 5.297501 | 0.189425 | 0.039487 | 0.019963 | 0.021718 | 0.277065 | 0.183942 | 0.170231 | 0.13952 | 0.069979 | 0.069979 | 0 | 0.004224 | 0.135176 | 12,591 | 324 | 125 | 38.861111 | 0.833043 | 0.138353 | 0 | 0.121622 | 0 | 0 | 0.18666 | 0.0717 | 0 | 0 | 0 | 0.003086 | 0 | 1 | 0.09009 | false | 0.018018 | 0.054054 | 0.009009 | 0.297297 | 0.436937 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0d9beacdcb21b6ee9c4f2fc2ad46c653e8fbd769 | 552 | py | Python | thinking-in-python/python/base/10.字典.py | yihonglei/road-of-arch | cbd650de04637c9c18276f3b4d3fea8f9b92f22c | [
"Apache-2.0"
] | 3 | 2020-07-22T10:51:58.000Z | 2021-08-03T07:37:45.000Z | thinking-in-python/python/base/10.字典.py | yihonglei/road-of-arch | cbd650de04637c9c18276f3b4d3fea8f9b92f22c | [
"Apache-2.0"
] | 1 | 2022-01-24T03:36:05.000Z | 2022-02-08T09:02:57.000Z | thinking-in-python/python/base/10.字典.py | yihonglei/road-of-arch | cbd650de04637c9c18276f3b4d3fea8f9b92f22c | [
"Apache-2.0"
] | 4 | 2021-06-28T15:28:11.000Z | 2022-03-03T06:39:30.000Z | """
########################B6-Dictionary(字典)#########################
"""
"""
字典(dictionary)是Python中另一个非常有用的内置数据类型。
列表是有序的对象集合,字典是无序的对象集合。两者之间的区别在于:字典当中的元素是通过键来存取的,而不是通过偏移存取。
字典是一种映射类型,字典用"{ }"标识,它是一个无序的键(key) : 值(value)对集合。
键(key)必须使用不可变类型。在同一个字典中,键(key)必须是唯一的。
"""
dict = {}
dict['one'] = "one的value"
dict[2] = "two"
... | 29.052632 | 66 | 0.583333 | 61 | 552 | 5.278689 | 0.639344 | 0.121118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012793 | 0.150362 | 552 | 19 | 67 | 29.052632 | 0.673774 | 0.201087 | 0 | 0 | 0 | 0 | 0.138655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.555556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0da9bdcd639a2d6b1c7e0d8a6c3bc09385131f65 | 2,867 | py | Python | sentiment_analysis.py | haakonbu/TDT4305-Project-2 | e914af3ad86f4f84192de64eee69819bdf081e49 | [
"MIT"
] | null | null | null | sentiment_analysis.py | haakonbu/TDT4305-Project-2 | e914af3ad86f4f84192de64eee69819bdf081e49 | [
"MIT"
] | null | null | null | sentiment_analysis.py | haakonbu/TDT4305-Project-2 | e914af3ad86f4f84192de64eee69819bdf081e49 | [
"MIT"
] | null | null | null | from pyspark import SparkContext, SparkConf
import base64
from operator import add
sparkConf = SparkConf().setAppName("Yelp").setMaster("local")
sc = SparkContext(conf=sparkConf)
file = open('stopwords.txt', 'r')
stop_words = file.read().split('\n')
def find_top_k_most_positive_reviews(folder_name, input_file, k):
... | 32.213483 | 107 | 0.670038 | 405 | 2,867 | 4.597531 | 0.328395 | 0.043502 | 0.032223 | 0.030612 | 0.162728 | 0.123523 | 0.094522 | 0.094522 | 0.04189 | 0.04189 | 0 | 0.012719 | 0.204744 | 2,867 | 88 | 108 | 32.579545 | 0.803947 | 0.086153 | 0 | 0.088889 | 0 | 0 | 0.05314 | 0.018357 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0dbb135254b4ed94149f28e7de4cc4505882103c | 188 | py | Python | Python Practice Programs/04-SumOfDigit.py | Himanshu44626748/Learn-Python | f3a4d997f2d29b146e5f7434f4801ae94bc3483f | [
"MIT"
] | 2 | 2020-05-30T20:31:17.000Z | 2020-07-07T15:15:43.000Z | Python Practice Programs/04-SumOfDigit.py | Himanshu44626748/Learn-Python | f3a4d997f2d29b146e5f7434f4801ae94bc3483f | [
"MIT"
] | null | null | null | Python Practice Programs/04-SumOfDigit.py | Himanshu44626748/Learn-Python | f3a4d997f2d29b146e5f7434f4801ae94bc3483f | [
"MIT"
] | 1 | 2020-08-13T07:59:02.000Z | 2020-08-13T07:59:02.000Z | # Program to input a number and find it's sum of digits
n = int(input("Enter the number: "))
tot = 0
while(n>0):
d = n%10
tot = tot+d
n=n//10
print("Sum of Digits is:",tot) | 15.666667 | 55 | 0.595745 | 38 | 188 | 2.947368 | 0.605263 | 0.089286 | 0.196429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042857 | 0.255319 | 188 | 12 | 56 | 15.666667 | 0.757143 | 0.281915 | 0 | 0 | 0 | 0 | 0.261194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 |
0dc2f302a813669ac577613f2d5e946c16c86d91 | 878 | py | Python | api/views.py | andres-root/djangolab | 57954575e020347658796354cac901b067a9ed96 | [
"MIT"
] | null | null | null | api/views.py | andres-root/djangolab | 57954575e020347658796354cac901b067a9ed96 | [
"MIT"
] | 17 | 2020-01-28T21:44:50.000Z | 2022-03-11T23:13:48.000Z | api/views.py | andres-root/djangolab | 57954575e020347658796354cac901b067a9ed96 | [
"MIT"
] | null | null | null | # from django.shortcuts import render
from django.http import JsonResponse
from django.contrib.auth.models import User
def index(request):
if request.method == 'GET':
first_name = request.GET.get('first_name', '')
last_name = request.GET.get('last_name', '')
email = request.GET.get('email'... | 33.769231 | 126 | 0.585421 | 104 | 878 | 4.798077 | 0.326923 | 0.09018 | 0.130261 | 0.068136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004886 | 0.300683 | 878 | 25 | 127 | 35.12 | 0.807818 | 0.039863 | 0 | 0 | 0 | 0 | 0.066587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.15 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0dc330e8ed2515dcbc815f5316ec98f2c674ebc2 | 1,555 | py | Python | src/onitool/oni2depth.py | iiharu/pyoni | 3e62cedc1ed7dc726e421858ff143f7b7a713403 | [
"MIT"
] | 7 | 2016-06-16T15:26:38.000Z | 2020-03-29T17:40:52.000Z | src/onitool/oni2depth.py | iiharu/pyoni | 3e62cedc1ed7dc726e421858ff143f7b7a713403 | [
"MIT"
] | 5 | 2016-06-16T15:39:17.000Z | 2021-02-19T16:14:53.000Z | src/onitool/oni2depth.py | iiharu/pyoni | 3e62cedc1ed7dc726e421858ff143f7b7a713403 | [
"MIT"
] | 8 | 2017-12-13T08:27:50.000Z | 2021-02-16T10:25:07.000Z | # Extracts a singla RAW depth file of contiguous data
#
# Requires to build xndec
import struct
from onifile import *
from xndec import *
if __name__ == "__main__":
import sys,os
if len(sys.argv) == 0:
print "Required: ONIfilename"
sys.exit(-1)
docolor = len(sys.argv) > 3
filesize = ... | 26.810345 | 85 | 0.454662 | 184 | 1,555 | 3.771739 | 0.5 | 0.021614 | 0.028818 | 0.0317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.421222 | 1,555 | 57 | 86 | 27.280702 | 0.743333 | 0.099678 | 0 | 0.045455 | 0 | 0 | 0.072505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0dc6c4e945523214061fddd2141fc2c264d6f8af | 351 | py | Python | .history/test_20211125020355.py | chenhuiyu/LeetCode-python | 2ceb4af821a9b7344c00549abbfdd5f72a5d595b | [
"Apache-2.0"
] | null | null | null | .history/test_20211125020355.py | chenhuiyu/LeetCode-python | 2ceb4af821a9b7344c00549abbfdd5f72a5d595b | [
"Apache-2.0"
] | null | null | null | .history/test_20211125020355.py | chenhuiyu/LeetCode-python | 2ceb4af821a9b7344c00549abbfdd5f72a5d595b | [
"Apache-2.0"
] | null | null | null | class Solution:
def maxSubArray(self, nums: List[int]) -> int
left=0
right=left
summax=0
while right<len(nums):
summax+=nums[right]
if summax<=0:
summax=0
left=right+1
right=left
else:
... | 25.071429 | 49 | 0.441595 | 37 | 351 | 4.189189 | 0.486486 | 0.135484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032432 | 0.472934 | 351 | 14 | 50 | 25.071429 | 0.805405 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0dc92473609a8ebe0ae121b4cf57caea2f9edb62 | 6,245 | py | Python | mkdocs_exclude_search/plugin.py | seppi91/mkdocs-exclude-search | 01692de9f5a1c7ab5aa6815191c159a0e4db77c0 | [
"MIT"
] | null | null | null | mkdocs_exclude_search/plugin.py | seppi91/mkdocs-exclude-search | 01692de9f5a1c7ab5aa6815191c159a0e4db77c0 | [
"MIT"
] | null | null | null | mkdocs_exclude_search/plugin.py | seppi91/mkdocs-exclude-search | 01692de9f5a1c7ab5aa6815191c159a0e4db77c0 | [
"MIT"
] | null | null | null | import json
from pathlib import Path
import logging
from typing import List, Dict
from fnmatch import fnmatch
from mkdocs.config import config_options
from mkdocs.plugins import BasePlugin
from mkdocs.utils import warning_filter
def get_logger():
"""
Return a pre-configured logger.
"""
logger = loggi... | 34.888268 | 107 | 0.597278 | 714 | 6,245 | 5.043417 | 0.231092 | 0.067204 | 0.012219 | 0.01333 | 0.221327 | 0.127187 | 0.109969 | 0.109969 | 0.067204 | 0.038323 | 0 | 0.001168 | 0.314492 | 6,245 | 178 | 108 | 35.08427 | 0.839991 | 0.188471 | 0 | 0.145299 | 0 | 0 | 0.099629 | 0.021202 | 0 | 0 | 0 | 0.016854 | 0 | 1 | 0.068376 | false | 0 | 0.068376 | 0 | 0.213675 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0de78fb0e791ad671ca7b6446b01556fd4a550f3 | 2,701 | py | Python | model/fstreeitem.py | gnyiri/filesystem-analyzer | 2073ac8a81ef36d29695d336f3482d7aee235d85 | [
"BSD-2-Clause"
] | null | null | null | model/fstreeitem.py | gnyiri/filesystem-analyzer | 2073ac8a81ef36d29695d336f3482d7aee235d85 | [
"BSD-2-Clause"
] | null | null | null | model/fstreeitem.py | gnyiri/filesystem-analyzer | 2073ac8a81ef36d29695d336f3482d7aee235d85 | [
"BSD-2-Clause"
] | null | null | null | import os
from PyQt5.QtCore import Qt
from PyQt5.Qt import QIcon, QVariant
from enum import Enum
from util.fsbase import FSBase
from util.fsapp import FSExtensionType
class FSTreeItem(FSBase):
ATTRIBUTES = ["name", "count", "size (mb)", "path"]
SIZE_DIVISOR = 1024 * 1024
def __init__(self, name, extensi... | 26.480392 | 95 | 0.563125 | 308 | 2,701 | 4.801948 | 0.233766 | 0.074375 | 0.047329 | 0.043272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010839 | 0.350981 | 2,701 | 101 | 96 | 26.742574 | 0.832858 | 0 | 0 | 0.204819 | 0 | 0 | 0.022214 | 0.008515 | 0 | 0 | 0 | 0 | 0.012048 | 1 | 0.156627 | false | 0 | 0.072289 | 0.096386 | 0.518072 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0de9091e88553b55b834696c29e5ea8ffd91aefa | 322 | py | Python | tests/test_skipped.py | efpato/allure-pytest-logger | 0758d5a1438e1d05093ac3b9ef4573fb219ecbeb | [
"MIT"
] | null | null | null | tests/test_skipped.py | efpato/allure-pytest-logger | 0758d5a1438e1d05093ac3b9ef4573fb219ecbeb | [
"MIT"
] | null | null | null | tests/test_skipped.py | efpato/allure-pytest-logger | 0758d5a1438e1d05093ac3b9ef4573fb219ecbeb | [
"MIT"
] | null | null | null | import logging
import allure
import pytest
logger = logging.getLogger(__name__)
@pytest.mark.skip
def test1():
logger.debug("=== skipped 1")
with allure.step("Check"):
assert False
@pytest.mark.skip
def test2():
logger.debug("=== skipped 2")
with allure.step("Check"):
assert Fals... | 14 | 36 | 0.649068 | 40 | 322 | 5.125 | 0.525 | 0.097561 | 0.136585 | 0.165854 | 0.292683 | 0.292683 | 0 | 0 | 0 | 0 | 0 | 0.01581 | 0.214286 | 322 | 22 | 37 | 14.636364 | 0.794466 | 0 | 0 | 0.428571 | 0 | 0 | 0.111801 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.214286 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0dec4296213ea661014373f4fd17379d74fce77a | 1,176 | py | Python | etl/parsers/etw/Microsoft_Windows_Graphics_Printing3D.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 104 | 2020-03-04T14:31:31.000Z | 2022-03-28T02:59:36.000Z | etl/parsers/etw/Microsoft_Windows_Graphics_Printing3D.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 7 | 2020-04-20T09:18:39.000Z | 2022-03-19T17:06:19.000Z | etl/parsers/etw/Microsoft_Windows_Graphics_Printing3D.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 16 | 2020-03-05T18:55:59.000Z | 2022-03-01T10:19:28.000Z | # -*- coding: utf-8 -*-
"""
Microsoft-Windows-Graphics-Printing3D
GUID : be967569-e3c8-425b-ad0e-4f2c790b1848
"""
from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct
from etl.utils import WString, CString, SystemTime, Guid
from etl.dtyp import Sid
... | 29.4 | 123 | 0.72534 | 152 | 1,176 | 5.453947 | 0.335526 | 0.096502 | 0.144753 | 0.205066 | 0.642943 | 0.642943 | 0.562123 | 0.335344 | 0.335344 | 0.335344 | 0 | 0.148851 | 0.14881 | 1,176 | 39 | 124 | 30.153846 | 0.679321 | 0.088435 | 0 | 0.32 | 0 | 0 | 0.162747 | 0.135466 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16 | 0 | 0.48 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
216efa67107503ebdb696e3dbfc6e57fb3842829 | 504 | py | Python | DoarSangue.py | RafaelViniciusGarcia/DoarSangue1 | f7a56de1e870c6321f2945f0e2584d1f25a0cdde | [
"MIT"
] | null | null | null | DoarSangue.py | RafaelViniciusGarcia/DoarSangue1 | f7a56de1e870c6321f2945f0e2584d1f25a0cdde | [
"MIT"
] | null | null | null | DoarSangue.py | RafaelViniciusGarcia/DoarSangue1 | f7a56de1e870c6321f2945f0e2584d1f25a0cdde | [
"MIT"
] | null | null | null | def doador():
nome = str(input('Qual o seu nome senhor(a)?'))
print('Meu nome é {}'.format(nome))
idade = int(input('Qual a sua idade?'))
print('Minha idade é {}'.format(idade))
peso = float(input('Digite o seu peso'))
print('Meu peso é {}'.format(peso))
if idade >= 18 and peso >= 50:
... | 21.913043 | 83 | 0.60119 | 73 | 504 | 4.150685 | 0.520548 | 0.069307 | 0.092409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01039 | 0.236111 | 504 | 22 | 84 | 22.909091 | 0.776623 | 0 | 0 | 0 | 0 | 0 | 0.433198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.083333 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
216f17b2de770ca4088cf95d53a3dc89965490a3 | 1,803 | py | Python | backend/migrations/versions/fcd6c141f060_.py | sartography/star-drive | c0f33378d42913c3e677e07f74eb46d7b2b82a0a | [
"MIT"
] | null | null | null | backend/migrations/versions/fcd6c141f060_.py | sartography/star-drive | c0f33378d42913c3e677e07f74eb46d7b2b82a0a | [
"MIT"
] | 368 | 2018-12-18T14:43:20.000Z | 2022-03-02T02:54:18.000Z | backend/migrations/versions/fcd6c141f060_.py | sartography/star-drive | c0f33378d42913c3e677e07f74eb46d7b2b82a0a | [
"MIT"
] | 2 | 2019-10-02T03:06:06.000Z | 2020-10-05T16:53:48.000Z | """empty message
Revision ID: fcd6c141f060
Revises: 0bdde178b75e
Create Date: 2020-08-21 15:57:35.342233
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = 'fcd6c141f060'
down_revision = '0bdde178b75e'
branch_labels = None... | 38.361702 | 112 | 0.708264 | 226 | 1,803 | 5.504425 | 0.362832 | 0.090032 | 0.146302 | 0.192926 | 0.360932 | 0.34164 | 0.29582 | 0.12701 | 0 | 0 | 0 | 0.029337 | 0.130338 | 1,803 | 46 | 113 | 39.195652 | 0.764031 | 0.163616 | 0 | 0 | 0 | 0 | 0.246771 | 0.104011 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.103448 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2175f7c0f2ee78b33966a0a4f3136f7d40a566cc | 2,173 | py | Python | sample/consumer/consumer.py | sd0408/amazon-cloudwatch-alarms-controller-for-kubernetes | cd778768363bf5575be0a73cab3b375950bc8c94 | [
"MIT-0"
] | 3 | 2021-08-13T17:21:06.000Z | 2021-12-18T00:13:05.000Z | sample/consumer/consumer.py | sd0408/amazon-cloudwatch-alarms-controller-for-kubernetes | cd778768363bf5575be0a73cab3b375950bc8c94 | [
"MIT-0"
] | null | null | null | sample/consumer/consumer.py | sd0408/amazon-cloudwatch-alarms-controller-for-kubernetes | cd778768363bf5575be0a73cab3b375950bc8c94 | [
"MIT-0"
] | 1 | 2021-08-04T19:19:26.000Z | 2021-08-04T19:19:26.000Z | # Basic packages for your application
import boto3
import json
import random
import time
import os
import logging
# Add imports for OTel components into the application
from opentelemetry import trace
from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
from opentelemetry.trace import Spa... | 35.622951 | 114 | 0.792453 | 273 | 2,173 | 6.084249 | 0.406593 | 0.081878 | 0.060205 | 0.043347 | 0.142685 | 0.087899 | 0.043347 | 0 | 0 | 0 | 0 | 0.004795 | 0.136217 | 2,173 | 60 | 115 | 36.216667 | 0.880128 | 0.164749 | 0 | 0.046512 | 0 | 0 | 0.086836 | 0.034292 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.325581 | 0 | 0.325581 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2178574be15a71351d3101cef4a113022e30b385 | 1,197 | py | Python | var/spack/repos/builtin/packages/py-jupyterhub/package.py | whitfin/spack | aabd2be31a511d0e00c1017f7311a421659319d9 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 2 | 2016-01-12T20:14:40.000Z | 2017-06-16T07:03:46.000Z | var/spack/repos/builtin/packages/py-jupyterhub/package.py | whitfin/spack | aabd2be31a511d0e00c1017f7311a421659319d9 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 75 | 2016-07-27T11:43:00.000Z | 2020-12-08T15:56:53.000Z | var/spack/repos/builtin/packages/py-jupyterhub/package.py | whitfin/spack | aabd2be31a511d0e00c1017f7311a421659319d9 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 8 | 2015-10-16T13:51:49.000Z | 2021-10-18T13:58:03.000Z | # Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyJupyterhub(PythonPackage):
"""Multi-user server for Jupyter notebooks."""
homepage ... | 37.40625 | 98 | 0.690058 | 160 | 1,197 | 5.06875 | 0.50625 | 0.166461 | 0.176326 | 0.207152 | 0.244143 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064016 | 0.13868 | 1,197 | 31 | 99 | 38.612903 | 0.722599 | 0.192147 | 0 | 0 | 0 | 0.05 | 0.422756 | 0.066806 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
217c557d2ee92c5f0e2277e0612f77b17e4fb9e6 | 732 | py | Python | apps/index/models.py | JanKruska/occpm | 0838f522064429cb7e3db3eb56379b731aabc6dc | [
"MIT"
] | 2 | 2021-11-30T17:23:23.000Z | 2021-12-30T12:12:18.000Z | apps/index/models.py | JanKruska/occpm | 0838f522064429cb7e3db3eb56379b731aabc6dc | [
"MIT"
] | null | null | null | apps/index/models.py | JanKruska/occpm | 0838f522064429cb7e3db3eb56379b731aabc6dc | [
"MIT"
] | 3 | 2021-11-11T17:46:32.000Z | 2022-01-03T22:25:21.000Z | from django.db import models
from django.core.files.storage import FileSystemStorage
from django.db.models.fields.related import ForeignKey
fs = FileSystemStorage()
class EventLog(models.Model):
name = models.CharField(max_length=100)
file = models.FileField(storage=fs)
hash = models.CharField(max_length... | 28.153846 | 81 | 0.755464 | 85 | 732 | 6.341176 | 0.470588 | 0.055659 | 0.044527 | 0.089054 | 0.118738 | 0.118738 | 0 | 0 | 0 | 0 | 0 | 0.009631 | 0.148907 | 732 | 25 | 82 | 29.28 | 0.855538 | 0 | 0 | 0 | 0 | 0 | 0.045082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
217cff6fa2b3506b22d56e8e44d838be1501611d | 1,715 | py | Python | tests/test_cuda_ops.py | jovsa/jTorch | c9ffb38ac14d01c01bd7bb493307868a3d150d88 | [
"MIT"
] | 1 | 2020-11-03T03:12:40.000Z | 2020-11-03T03:12:40.000Z | tests/test_cuda_ops.py | jovsa/jTorch | c9ffb38ac14d01c01bd7bb493307868a3d150d88 | [
"MIT"
] | 2 | 2021-06-08T06:37:01.000Z | 2021-08-30T06:50:31.000Z | tests/test_cuda_ops.py | jovsa/jTorch | c9ffb38ac14d01c01bd7bb493307868a3d150d88 | [
"MIT"
] | null | null | null | import jtorch
import pytest
from hypothesis import given
from .strategies import tensors, shaped_tensors, assert_close
from .test_tensor import one_arg, two_arg, reduce
# TESTS are the same as test_tensor with different backend
CudaTensorFunctions = jtorch.make_tensor_functions(jtorch.CudaOps)
@given(tensors(backend... | 27.66129 | 84 | 0.727697 | 268 | 1,715 | 4.496269 | 0.201493 | 0.099585 | 0.033195 | 0.179253 | 0.648133 | 0.639834 | 0.623237 | 0.566805 | 0.566805 | 0.526971 | 0 | 0.038718 | 0.126531 | 1,715 | 61 | 85 | 28.114754 | 0.765688 | 0.041983 | 0 | 0.533333 | 0 | 0 | 0.007317 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.133333 | false | 0 | 0.111111 | 0 | 0.244444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
218184c6ef04d63195519ad2d161a113959bc68c | 2,192 | py | Python | parser/fase2/team16/Temporales.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/fase2/team16/Temporales.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/fase2/team16/Temporales.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | from random import *
class Temporales:
def __init__(self, tablaSimbolos={}, variables={}, funciones={}, temp= 0, etiqueta = 0, parametro=0, funcion = 1, retorno = 0):
self.variables = variables.copy()
self.parametro = parametro
self.funciones = funciones.copy()
self.tablaSimbolos = ... | 28.102564 | 131 | 0.590328 | 234 | 2,192 | 5.495727 | 0.269231 | 0.092535 | 0.031104 | 0.055988 | 0.11353 | 0.048212 | 0 | 0 | 0 | 0 | 0 | 0.01255 | 0.309307 | 2,192 | 78 | 132 | 28.102564 | 0.836856 | 0 | 0 | 0.1875 | 0 | 0 | 0.009576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203125 | false | 0.03125 | 0.015625 | 0 | 0.375 | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
21852dbdc7c1643406e26e161c2c82694f372f9c | 9,485 | py | Python | mal/forum.py | Skylake-dev/mal.py | a9586b4bfba3ad44feaca45dca4d377324f5a01e | [
"MIT"
] | 1 | 2022-03-28T10:45:00.000Z | 2022-03-28T10:45:00.000Z | mal/forum.py | Skylake-dev/mal.py | a9586b4bfba3ad44feaca45dca4d377324f5a01e | [
"MIT"
] | null | null | null | mal/forum.py | Skylake-dev/mal.py | a9586b4bfba3ad44feaca45dca4d377324f5a01e | [
"MIT"
] | null | null | null | from datetime import datetime
from typing import List, Iterator, Optional
from .base import PaginatedObject
from .typed import (
SubBoardPayload,
BoardPayload,
BoardCategoryPayload,
TopicPayload,
ForumTopicsPayload,
ForumUserPayload,
PollOptionPayload,
PollPayload,
ForumPostPayload... | 29.548287 | 104 | 0.614128 | 1,201 | 9,485 | 4.677769 | 0.129892 | 0.01513 | 0.021538 | 0.02937 | 0.268067 | 0.192061 | 0.173905 | 0.106444 | 0.088644 | 0.05696 | 0 | 0.001741 | 0.273274 | 9,485 | 320 | 105 | 29.640625 | 0.813289 | 0.252926 | 0 | 0.27907 | 0 | 0.005814 | 0.100222 | 0.01584 | 0 | 0 | 0 | 0 | 0 | 1 | 0.226744 | false | 0 | 0.023256 | 0.087209 | 0.476744 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
21854461164d53e7d2552de7294476b3688e89d8 | 1,004 | py | Python | SENN/invarsenn.py | EdwardGuen/SENN-revisited | 41145a89214c6d978eb7c83e74c0f43007e0be4d | [
"MIT"
] | null | null | null | SENN/invarsenn.py | EdwardGuen/SENN-revisited | 41145a89214c6d978eb7c83e74c0f43007e0be4d | [
"MIT"
] | null | null | null | SENN/invarsenn.py | EdwardGuen/SENN-revisited | 41145a89214c6d978eb7c83e74c0f43007e0be4d | [
"MIT"
] | null | null | null | ## torch
import torch.nn as nn
class InvarSennM1(nn.Module):
def __init__(self, conceptizer, parametrizer, aggregator):
super(InvarSennM1, self).__init__()
self.conceptizer = conceptizer
self.parametrizer = parametrizer
self.aggregator = aggregator
def forward(self, x):
... | 35.857143 | 90 | 0.690239 | 111 | 1,004 | 6.045045 | 0.306306 | 0.04769 | 0.032787 | 0.044709 | 0.056632 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037179 | 0.223108 | 1,004 | 27 | 91 | 37.185185 | 0.823077 | 0.089641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0.190476 | false | 0 | 0.047619 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
218c02164b41e97bdfaa112ae7a630b1297b8753 | 1,463 | py | Python | setup.py | IlyaKozlov/dedoc | aa25a8868b5fd61314a32de2e22871a6d10fa3be | [
"Apache-2.0"
] | null | null | null | setup.py | IlyaKozlov/dedoc | aa25a8868b5fd61314a32de2e22871a6d10fa3be | [
"Apache-2.0"
] | null | null | null | setup.py | IlyaKozlov/dedoc | aa25a8868b5fd61314a32de2e22871a6d10fa3be | [
"Apache-2.0"
] | null | null | null | import pathlib
import pkg_resources
from setuptools import setup
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
with open(path.join(here, "VERSION")) as f... | 22.166667 | 65 | 0.650034 | 169 | 1,463 | 5.502959 | 0.497041 | 0.122581 | 0.16129 | 0.167742 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013135 | 0.219412 | 1,463 | 65 | 66 | 22.507692 | 0.801226 | 0.030759 | 0 | 0 | 0 | 0 | 0.355226 | 0.014831 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.102564 | 0 | 0.102564 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2197445f2f5d8443ac278e799de20586bfd13bcf | 2,170 | py | Python | imagersite/imager_profile/views.py | Loaye/django-imager-group | a4bdd285b8063d2553f59f2a78aaef0fcfd0c95d | [
"MIT"
] | null | null | null | imagersite/imager_profile/views.py | Loaye/django-imager-group | a4bdd285b8063d2553f59f2a78aaef0fcfd0c95d | [
"MIT"
] | null | null | null | imagersite/imager_profile/views.py | Loaye/django-imager-group | a4bdd285b8063d2553f59f2a78aaef0fcfd0c95d | [
"MIT"
] | 2 | 2017-11-29T23:33:53.000Z | 2017-12-05T22:36:09.000Z | """Views for this awesome app."""
from django.shortcuts import render
from django.urls import reverse_lazy
from django.http import Http404
from django.contrib.auth.models import User
from django.views.generic import TemplateView, CreateView
from imager_images.models import Photo, Album
from imager_profile.models import... | 24.659091 | 64 | 0.617972 | 234 | 2,170 | 5.628205 | 0.337607 | 0.041002 | 0.068337 | 0.047836 | 0.413819 | 0.377373 | 0.377373 | 0.352316 | 0.294609 | 0.2612 | 0 | 0.007614 | 0.273733 | 2,170 | 87 | 65 | 24.942529 | 0.828046 | 0.07788 | 0 | 0.4 | 0 | 0 | 0.055243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.133333 | 0 | 0.516667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
219809b9c9a6a3de18ca64f33c010e2392e6fc4f | 2,724 | py | Python | server/migrations/0010_auto_20201124_1751.py | valdergallo/django_database_manager | 72eecc1d7f8fc2cedc076715c2749504c5f28c1a | [
"MIT"
] | 2 | 2020-11-07T11:51:20.000Z | 2021-08-16T11:19:20.000Z | server/migrations/0010_auto_20201124_1751.py | valdergallo/django_database_manager | 72eecc1d7f8fc2cedc076715c2749504c5f28c1a | [
"MIT"
] | 7 | 2020-11-07T11:26:36.000Z | 2021-08-21T12:21:45.000Z | server/migrations/0010_auto_20201124_1751.py | valdergallo/django_database_manager | 72eecc1d7f8fc2cedc076715c2749504c5f28c1a | [
"MIT"
] | 2 | 2021-08-17T21:18:34.000Z | 2021-08-21T16:42:46.000Z | # Generated by Django 3.1.3 on 2020-11-24 17:51
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import server.models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("ser... | 30.266667 | 86 | 0.428781 | 208 | 2,724 | 5.451923 | 0.350962 | 0.035273 | 0.049383 | 0.077601 | 0.366843 | 0.366843 | 0.302469 | 0.302469 | 0.22134 | 0.22134 | 0 | 0.026518 | 0.473935 | 2,724 | 89 | 87 | 30.606742 | 0.764829 | 0.01652 | 0 | 0.542169 | 1 | 0 | 0.075458 | 0.024281 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.024096 | 0.048193 | 0 | 0.084337 | 0 | 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 |
21abd028ed326d8822ddf8b60895e70cd4c10d7f | 405 | py | Python | web_app/migrations/0005_alter_clientleads_date.py | BuilderTron/torres_yardworks | 75f9be62ea9a8a48295836ca5a35121cb1ee0472 | [
"MIT"
] | null | null | null | web_app/migrations/0005_alter_clientleads_date.py | BuilderTron/torres_yardworks | 75f9be62ea9a8a48295836ca5a35121cb1ee0472 | [
"MIT"
] | null | null | null | web_app/migrations/0005_alter_clientleads_date.py | BuilderTron/torres_yardworks | 75f9be62ea9a8a48295836ca5a35121cb1ee0472 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-10-07 19:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('web_app', '0004_alter_clientleads_date'),
]
operations = [
migrations.AlterField(
model_name='clientleads',
name='da... | 21.315789 | 62 | 0.609877 | 44 | 405 | 5.5 | 0.795455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064846 | 0.276543 | 405 | 18 | 63 | 22.5 | 0.761092 | 0.111111 | 0 | 0 | 1 | 0 | 0.136872 | 0.075419 | 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 |
21b1d521f72bf4a98a2063d9998f006943c124e7 | 3,087 | py | Python | web.py | Ding-Flash/SDN | 8f6e99a4cd53f055efc6291c6d0d124bc992dab5 | [
"MIT"
] | null | null | null | web.py | Ding-Flash/SDN | 8f6e99a4cd53f055efc6291c6d0d124bc992dab5 | [
"MIT"
] | null | null | null | web.py | Ding-Flash/SDN | 8f6e99a4cd53f055efc6291c6d0d124bc992dab5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from flask import Flask, request
import json
app = Flask(__name__)
# datapath集合 元素组成 datapath_id:port
datapath_c0 = set()
datapath_c1 = set()
# 流表监控集合
flow_table_c0 = {}
flow_table_c1 = {}
# 流表中miss流量、
flow_miss_c0 = {}
flow_miss_c1 = {}
# 端口流量监控集合
flow_port_c0 = {}
flow_port_c1 = {}
@ap... | 26.612069 | 67 | 0.598639 | 415 | 3,087 | 4.248193 | 0.173494 | 0.081679 | 0.027794 | 0.036302 | 0.601815 | 0.470788 | 0.414634 | 0.380601 | 0.380601 | 0.314237 | 0 | 0.01602 | 0.231616 | 3,087 | 115 | 68 | 26.843478 | 0.727234 | 0.026239 | 0 | 0.318182 | 0 | 0 | 0.163667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022727 | null | null | 0.079545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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.