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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5c819c819bef050aaef5bc3328d995aeb334d786 | 2,224 | py | Python | answer_selection/datasets/msmarco/subsample_dataset.py | shashiongithub/Document-Modeling-with-External-Information | 8db8dc4ab2d9a49af6523742ce9580aa22e12c8e | [
"BSD-2-Clause"
] | null | null | null | answer_selection/datasets/msmarco/subsample_dataset.py | shashiongithub/Document-Modeling-with-External-Information | 8db8dc4ab2d9a49af6523742ce9580aa22e12c8e | [
"BSD-2-Clause"
] | null | null | null | answer_selection/datasets/msmarco/subsample_dataset.py | shashiongithub/Document-Modeling-with-External-Information | 8db8dc4ab2d9a49af6523742ce9580aa22e12c8e | [
"BSD-2-Clause"
] | null | null | null | ####################################
# Author: Ronald Cardenas
# Date: July 2017
# Project: Document Modeling with External Attention for Sentence Extraction
####################################
'''
Subsamples data to ~half the size and
generates .doc and .question files, each with format
<story_id>
wid wid w... | 28.883117 | 104 | 0.667716 | 332 | 2,224 | 4.26506 | 0.322289 | 0.029661 | 0.035311 | 0.033898 | 0.318503 | 0.30226 | 0.30226 | 0.261299 | 0.261299 | 0.200565 | 0 | 0.013771 | 0.151079 | 2,224 | 76 | 105 | 29.263158 | 0.736229 | 0.146133 | 0 | 0 | 0 | 0 | 0.14978 | 0.031938 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.214286 | 0 | 0.214286 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5c86d6bba6ee3b79449069a74f94326353455e25 | 347 | py | Python | test/subtract_test.py | AliabbasMerchant/OpenSourceWorkshop | abaf1808bb4e0b6dd09929e30035d1b0f96c625f | [
"MIT"
] | 2 | 2019-10-02T09:10:03.000Z | 2019-10-02T10:56:15.000Z | test/subtract_test.py | AliabbasMerchant/OpenSourceWorkshop | abaf1808bb4e0b6dd09929e30035d1b0f96c625f | [
"MIT"
] | 6 | 2019-10-02T09:40:40.000Z | 2019-10-02T10:32:02.000Z | test/subtract_test.py | AliabbasMerchant/OpenSourceWorkshop | abaf1808bb4e0b6dd09929e30035d1b0f96c625f | [
"MIT"
] | 14 | 2019-10-02T06:35:10.000Z | 2019-10-02T12:08:16.000Z | import unittest
import coc_package
class TestSubtractFunction(unittest.TestCase):
def test_add_for_ints(self):
self.assertEqual(coc_package.subtract(3, 5), 3 - 5)
def test_add_error(self):
with self.assertRaises(AttributeError):
coc_package.subtract(3, "5")
if __name__ == '__ma... | 20.411765 | 59 | 0.691643 | 43 | 347 | 5.209302 | 0.55814 | 0.133929 | 0.089286 | 0.169643 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021661 | 0.201729 | 347 | 16 | 60 | 21.6875 | 0.787004 | 0 | 0 | 0 | 0 | 0 | 0.025937 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.5 | 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 |
5c8ab0503030f1a2a9596fc64c343e92387dc12e | 640 | py | Python | adventure/migrations/0013_auto_20160403_0015.py | matthew-macgregor/eamon | e59d14e790fd8e95f5f1a91d1965f549c2b673ba | [
"MIT"
] | 22 | 2016-03-22T07:28:42.000Z | 2022-02-12T16:03:17.000Z | adventure/migrations/0013_auto_20160403_0015.py | matthew-macgregor/eamon | e59d14e790fd8e95f5f1a91d1965f549c2b673ba | [
"MIT"
] | 103 | 2017-04-14T23:19:19.000Z | 2022-01-27T03:05:36.000Z | adventure/migrations/0013_auto_20160403_0015.py | matthew-macgregor/eamon | e59d14e790fd8e95f5f1a91d1965f549c2b673ba | [
"MIT"
] | 7 | 2019-04-09T16:12:10.000Z | 2021-12-15T17:09:32.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-04-03 07:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('adventure', '0012_adventure_edx_program_file'),
]
operations = [
migrations.... | 24.615385 | 62 | 0.603125 | 68 | 640 | 5.485294 | 0.661765 | 0.096515 | 0.123324 | 0.144772 | 0.27882 | 0.27882 | 0.27882 | 0.27882 | 0.27882 | 0.27882 | 0 | 0.056399 | 0.279688 | 640 | 25 | 63 | 25.6 | 0.752712 | 0.104688 | 0 | 0.444444 | 1 | 0 | 0.124561 | 0.054386 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 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 |
5c8e3ab60bbd1d948cebd67c737d992fb9fca791 | 654 | py | Python | src/lib/docker/images/create/utils/docker_image_target.py | SimonDudanski/integration-test-docker-environment | 3ea81172248f770596d81ff378772677ab5656ea | [
"MIT"
] | null | null | null | src/lib/docker/images/create/utils/docker_image_target.py | SimonDudanski/integration-test-docker-environment | 3ea81172248f770596d81ff378772677ab5656ea | [
"MIT"
] | null | null | null | src/lib/docker/images/create/utils/docker_image_target.py | SimonDudanski/integration-test-docker-environment | 3ea81172248f770596d81ff378772677ab5656ea | [
"MIT"
] | null | null | null | import docker
import luigi
from ......lib.config.docker_config import docker_client_config
class DockerImageTarget(luigi.Target):
def __init__(self, image_name: str, image_tag: str):
self.image_name = image_name
self.image_tag = image_tag
def get_complete_name(self):
return f"{self.i... | 27.25 | 63 | 0.648318 | 81 | 654 | 4.962963 | 0.419753 | 0.11194 | 0.097015 | 0.089552 | 0.104478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256881 | 654 | 23 | 64 | 28.434783 | 0.82716 | 0 | 0 | 0 | 0 | 0 | 0.051988 | 0.051988 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.055556 | 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 | 0 | 1 | 0 | 0 | 1 |
5c8f40eeaa29ed58c0fa13ba1f60cba830203990 | 3,152 | py | Python | pretex.py | sidward/pretex | 82b60768da30c09a789eda8016baa8cd7de73126 | [
"MIT"
] | null | null | null | pretex.py | sidward/pretex | 82b60768da30c09a789eda8016baa8cd7de73126 | [
"MIT"
] | null | null | null | pretex.py | sidward/pretex | 82b60768da30c09a789eda8016baa8cd7de73126 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
keywords = ['theme', 'title', 'author', 'date', 'sec', 'subsec', 'slide', 'txt', 'box', 'img']
def clean_input(expr):
newexpr = []
for elm in expr:
newexpr = newexpr + elm.split();
return newexpr
def parse(src):
expr = []
while src:
elm = src.pop(... | 30.601942 | 107 | 0.46764 | 359 | 3,152 | 4.011142 | 0.197772 | 0.105556 | 0.099306 | 0.111111 | 0.440972 | 0.422222 | 0.336111 | 0.315278 | 0.283333 | 0.283333 | 0 | 0.007218 | 0.340736 | 3,152 | 102 | 108 | 30.901961 | 0.685756 | 0.006345 | 0 | 0.358025 | 0 | 0 | 0.196103 | 0.064836 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012346 | null | null | 0.012346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5c8f91cec41b79fd661fc570328c75cde6f6193e | 972 | py | Python | zero_padding.py | dcxSt/kaggle_mais | 0861cb42e9a7912fc7fb1fbacc93cd18f9539d61 | [
"MIT"
] | null | null | null | zero_padding.py | dcxSt/kaggle_mais | 0861cb42e9a7912fc7fb1fbacc93cd18f9539d61 | [
"MIT"
] | null | null | null | zero_padding.py | dcxSt/kaggle_mais | 0861cb42e9a7912fc7fb1fbacc93cd18f9539d61 | [
"MIT"
] | null | null | null | #! /home/steve/anaconda3/bin/python3.7
import numpy as np
train_images = np.load("train_images.npy")
padded_train_images = []
print("padding train images")
for i in train_images:
entry=[]
entry.append(np.zeros(32))
entry.append(np.zeros(32))
for j in i:
entry.append([0,0]+list(j)+[0,0])
e... | 23.142857 | 65 | 0.688272 | 156 | 972 | 4.147436 | 0.198718 | 0.170015 | 0.160742 | 0.222566 | 0.556414 | 0.488408 | 0.383308 | 0.383308 | 0.383308 | 0.383308 | 0 | 0.032807 | 0.153292 | 972 | 41 | 66 | 23.707317 | 0.753341 | 0.038066 | 0 | 0.482759 | 0 | 0 | 0.177921 | 0.048232 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.034483 | 0.137931 | 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 |
5c92de7982ef93330281cb9c649e4fa4b37e99ec | 676 | py | Python | satchmo/apps/satchmo_store/shop/views/home.py | predatell/satchmo | 6ced1f845aadec240c7e433c3cbf4caca96e0d92 | [
"BSD-3-Clause"
] | null | null | null | satchmo/apps/satchmo_store/shop/views/home.py | predatell/satchmo | 6ced1f845aadec240c7e433c3cbf4caca96e0d92 | [
"BSD-3-Clause"
] | null | null | null | satchmo/apps/satchmo_store/shop/views/home.py | predatell/satchmo | 6ced1f845aadec240c7e433c3cbf4caca96e0d92 | [
"BSD-3-Clause"
] | null | null | null | from django.views.generic import ListView
from livesettings.functions import config_value
from product.models import Product
from product.views import display_featured
class HomeListView(ListView):
model = Product
template_name = "shop/index.html"
context_object_name = "all_products_list"
def get_q... | 29.391304 | 75 | 0.747041 | 85 | 676 | 5.694118 | 0.482353 | 0.03719 | 0.057851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16568 | 676 | 22 | 76 | 30.727273 | 0.858156 | 0 | 0 | 0 | 0 | 0 | 0.093195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.266667 | 0.133333 | 0.933333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5c942678484aeb8fada1843d43f920af2d380f52 | 282 | py | Python | swatch/__main__.py | NickM-27/swatch | c46ab86f344433cf032c557621bb3f48f7548baa | [
"MIT"
] | null | null | null | swatch/__main__.py | NickM-27/swatch | c46ab86f344433cf032c557621bb3f48f7548baa | [
"MIT"
] | 3 | 2022-03-25T02:27:16.000Z | 2022-03-25T21:59:43.000Z | swatch/__main__.py | NickM-27/swatch | c46ab86f344433cf032c557621bb3f48f7548baa | [
"MIT"
] | null | null | null | """Swatch service."""
import sys
import threading
from swatch.app import SwatchApp
threading.current_thread().name = "swatch"
cli = sys.modules["flask.cli"]
cli.show_server_banner = lambda *x: None
if __name__ == "__main__":
swatch_app = SwatchApp()
swatch_app.start()
| 17.625 | 42 | 0.719858 | 37 | 282 | 5.135135 | 0.621622 | 0.142105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 282 | 15 | 43 | 18.8 | 0.791667 | 0.053191 | 0 | 0 | 0 | 0 | 0.088123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5c9627eb626e6e7298c1841008141d8acc6718ef | 7,659 | py | Python | applications/EIVideo/QEIVideo/gui/ui_main_window.py | GT-ZhangAcer/PaddleVideo | 5a26872781a5e9bcff6feb93cf2375cf292da103 | [
"Apache-2.0"
] | 5 | 2022-01-30T07:35:58.000Z | 2022-02-08T05:45:20.000Z | applications/EIVideo/QEIVideo/gui/ui_main_window.py | GT-ZhangAcer/PaddleVideo | 5a26872781a5e9bcff6feb93cf2375cf292da103 | [
"Apache-2.0"
] | 1 | 2022-01-14T02:33:28.000Z | 2022-01-14T02:33:28.000Z | applications/EIVideo/QEIVideo/gui/ui_main_window.py | GT-ZhangAcer/PaddleVideo | 5a26872781a5e9bcff6feb93cf2375cf292da103 | [
"Apache-2.0"
] | 1 | 2022-01-24T16:27:01.000Z | 2022-01-24T16:27:01.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'GUI.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtWidgets
... | 45.052941 | 93 | 0.681159 | 829 | 7,659 | 6.202654 | 0.273824 | 0.029755 | 0.030338 | 0.02042 | 0.135745 | 0.076818 | 0.02431 | 0.017503 | 0 | 0 | 0 | 0.03168 | 0.212822 | 7,659 | 169 | 94 | 45.319527 | 0.821198 | 0.04857 | 0 | 0 | 1 | 0 | 0.072352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014599 | false | 0 | 0.036496 | 0 | 0.058394 | 0 | 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 |
5c97cbf8151ce71c2b75d050a0e3ee26a6a6dd1c | 4,213 | py | Python | crawlers/model/table.py | arnoldschan/indonesian_news | 3bdd21ef855a9f298b290f45d070a1d0a648a4ea | [
"MIT"
] | 1 | 2021-09-30T15:29:05.000Z | 2021-09-30T15:29:05.000Z | crawlers/model/table.py | arnoldschan/indonesian_news | 3bdd21ef855a9f298b290f45d070a1d0a648a4ea | [
"MIT"
] | 1 | 2021-12-19T22:54:52.000Z | 2021-12-19T22:54:52.000Z | crawlers/model/table.py | arnoldschan/indonesian_news | 3bdd21ef855a9f298b290f45d070a1d0a648a4ea | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from sqlalchemy import Column, Integer, String, Text, DateTime,ForeignKey,Sequence
from crawlers.util.db import ORMBaseClass
class Artist(ORMBaseClass):
__tablename__ = "artist"
__table_args__ = {'extend_existing': True}
id = Column(Integer(), primary_key=True)
... | 33.704 | 86 | 0.670069 | 505 | 4,213 | 5.142574 | 0.104951 | 0.053138 | 0.109742 | 0.115518 | 0.594917 | 0.551791 | 0.522911 | 0.430882 | 0.407008 | 0.381594 | 0 | 0.006306 | 0.209589 | 4,213 | 124 | 87 | 33.975806 | 0.773574 | 0 | 0 | 0.440367 | 0 | 0 | 0.087111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.100917 | false | 0 | 0.027523 | 0 | 0.715596 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5ca01ffb515f7017ce77a0447365629537c145a6 | 22,967 | py | Python | generalexam/scripts/plot_predictors_full_grid.py | thunderhoser/GeneralExam | 95b99a16fdaa67dae69586c7f7c76e27ccd4b89a | [
"MIT"
] | 4 | 2019-05-10T11:03:48.000Z | 2020-10-19T08:04:09.000Z | generalexam/scripts/plot_predictors_full_grid.py | thunderhoser/GeneralExam | 95b99a16fdaa67dae69586c7f7c76e27ccd4b89a | [
"MIT"
] | null | null | null | generalexam/scripts/plot_predictors_full_grid.py | thunderhoser/GeneralExam | 95b99a16fdaa67dae69586c7f7c76e27ccd4b89a | [
"MIT"
] | 3 | 2020-11-19T08:16:31.000Z | 2021-03-04T02:30:15.000Z | """Plots predictors on full NARR grid."""
import argparse
import numpy
import matplotlib
matplotlib.use('agg')
import matplotlib.colors
import matplotlib.pyplot as pyplot
from gewittergefahr.gg_utils import time_conversion
from gewittergefahr.gg_utils import time_periods
from gewittergefahr.gg_utils import nwp_model_u... | 39.735294 | 80 | 0.725911 | 3,207 | 22,967 | 4.701902 | 0.119426 | 0.018105 | 0.019895 | 0.013529 | 0.546256 | 0.443663 | 0.326016 | 0.265004 | 0.192254 | 0.152862 | 0 | 0.008773 | 0.20094 | 22,967 | 577 | 81 | 39.804159 | 0.812881 | 0.007184 | 0 | 0.133178 | 0 | 0 | 0.105065 | 0.020784 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042056 | null | null | 0.014019 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5ca8a1fdafaec50e0dc4077978e23f15f436d5c7 | 607 | py | Python | tests/app/serializers.py | simiotics/djangorestframework-queryfields | b0aed3eb51625b20d187aa2ca1ec5a2982b979e2 | [
"MIT"
] | 195 | 2016-10-21T21:18:17.000Z | 2022-03-27T09:28:08.000Z | tests/app/serializers.py | simiotics/djangorestframework-queryfields | b0aed3eb51625b20d187aa2ca1ec5a2982b979e2 | [
"MIT"
] | 24 | 2016-10-24T17:03:25.000Z | 2021-06-27T18:34:07.000Z | tests/app/serializers.py | simiotics/djangorestframework-queryfields | b0aed3eb51625b20d187aa2ca1ec5a2982b979e2 | [
"MIT"
] | 19 | 2017-02-24T23:14:18.000Z | 2021-08-02T10:30:33.000Z | from rest_framework import serializers
from drf_queryfields import QueryFieldsMixin
from tests.app.fields import BoomField
from tests.app.models import Snippet
class QuoteSerializer(QueryFieldsMixin, serializers.Serializer):
character = serializers.CharField()
line = serializers.CharField()
sketch = ser... | 23.346154 | 71 | 0.76771 | 56 | 607 | 8.285714 | 0.517857 | 0.172414 | 0.051724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16145 | 607 | 25 | 72 | 24.28 | 0.911591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.866667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5cab69610b4c8cb444c4e7abd88a43e7b6d85818 | 4,913 | py | Python | tests/jsmarionette/runner/marionette-js-runner/host/python/runner-service/runner_service/listener.py | J0WI/gaia | 3d5b7c537d8d8e2eb9731d6a39e44bc8606bcfbc | [
"Apache-2.0"
] | 2 | 2016-05-21T22:59:12.000Z | 2017-12-22T01:41:44.000Z | tests/jsmarionette/runner/marionette-js-runner/host/python/runner-service/runner_service/listener.py | J0WI/gaia | 3d5b7c537d8d8e2eb9731d6a39e44bc8606bcfbc | [
"Apache-2.0"
] | 1 | 2017-02-21T21:36:12.000Z | 2017-02-21T21:36:30.000Z | tests/jsmarionette/runner/marionette-js-runner/host/python/runner-service/runner_service/listener.py | J0WI/gaia | 3d5b7c537d8d8e2eb9731d6a39e44bc8606bcfbc | [
"Apache-2.0"
] | 1 | 2019-01-21T16:08:41.000Z | 2019-01-21T16:08:41.000Z | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import socket
import sys
import os
import json
import uuid
import BaseHTTPServer
import traceback
import mozcrash
from ... | 31.292994 | 78 | 0.576837 | 563 | 4,913 | 4.909414 | 0.344583 | 0.016281 | 0.026049 | 0.018452 | 0.077424 | 0.045586 | 0.032562 | 0.032562 | 0 | 0 | 0 | 0.006557 | 0.317118 | 4,913 | 156 | 79 | 31.49359 | 0.817288 | 0.067576 | 0 | 0.08 | 0 | 0 | 0.131305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02 | 0.09 | null | null | 0.06 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5cb187798c5e53f0ff57f09d21ef65c879206dc5 | 2,994 | py | Python | _build/jupyter_execute/content/c6/s2/bagging.py | curioushruti/mlbook | a56da46354b7dc61fcfc3a134f55a803c37d919e | [
"MIT"
] | 970 | 2020-08-31T17:28:22.000Z | 2022-03-26T11:41:17.000Z | _build/jupyter_execute/content/c6/s2/bagging.py | curioushruti/mlbook | a56da46354b7dc61fcfc3a134f55a803c37d919e | [
"MIT"
] | 14 | 2020-08-31T17:56:31.000Z | 2021-11-15T03:13:25.000Z | _build/jupyter_execute/content/c6/s2/bagging.py | curioushruti/mlbook | a56da46354b7dc61fcfc3a134f55a803c37d919e | [
"MIT"
] | 193 | 2020-08-31T16:25:22.000Z | 2022-02-02T18:47:49.000Z | # Bagging
Bagging can be used for regression or classification, though we will demonstrate a regression bagging model here. Since this model is based on decision tree regressors, we'll first import our {doc}`regression tree </content/c5/s2/regression_tree>` construction from the previous chapter. We'll also import num... | 38.883117 | 421 | 0.680695 | 475 | 2,994 | 4.166316 | 0.362105 | 0.027792 | 0.014149 | 0.01617 | 0.046993 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009854 | 0.220441 | 2,994 | 77 | 422 | 38.883117 | 0.838046 | 0.037742 | 0 | 0 | 0 | 0.020408 | 0.062064 | 0.011506 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cb994ca4b549ad88c8f1994efda7702f6c25694 | 1,726 | py | Python | magic/configuration.py | pan-webis-de/magic | ced7114acc2c1b48d2f6268b539aa2632dac7c4c | [
"MIT"
] | 7 | 2016-10-25T14:23:48.000Z | 2017-07-03T17:28:40.000Z | magic/configuration.py | pan-webis-de/modaresi16 | ced7114acc2c1b48d2f6268b539aa2632dac7c4c | [
"MIT"
] | null | null | null | magic/configuration.py | pan-webis-de/modaresi16 | ced7114acc2c1b48d2f6268b539aa2632dac7c4c | [
"MIT"
] | 2 | 2017-03-16T00:12:17.000Z | 2019-05-14T09:02:18.000Z | import logging
logger = logging.getLogger(__name__)
class Configuration():
def __init__(self):
self.profiler_registry = {}
self.dataset_registry = {}
def profiler(self, name, **args):
logger.debug('Register profiler {}, opt={}'.format(name, args))
def decorator(f):
... | 29.254237 | 99 | 0.576477 | 183 | 1,726 | 5.306011 | 0.218579 | 0.061792 | 0.102987 | 0.037075 | 0.626159 | 0.564367 | 0.451081 | 0.451081 | 0.451081 | 0.354274 | 0 | 0 | 0.318076 | 1,726 | 58 | 100 | 29.758621 | 0.824979 | 0 | 0 | 0.409091 | 0 | 0 | 0.1292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.022727 | 0.090909 | 0.522727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5cb9b764ce5e15acb30f471a224c0876cdbc1db5 | 5,587 | py | Python | test_sab_spectra.py | r0b0tAnthony/sab_spectra | 1afd33903c89032829c526314ddce9e6adf7980f | [
"MIT"
] | null | null | null | test_sab_spectra.py | r0b0tAnthony/sab_spectra | 1afd33903c89032829c526314ddce9e6adf7980f | [
"MIT"
] | null | null | null | test_sab_spectra.py | r0b0tAnthony/sab_spectra | 1afd33903c89032829c526314ddce9e6adf7980f | [
"MIT"
] | null | null | null | import unittest, os
import sab_spectra, numpy
from pprint import pprint
from airPLS import airPLS
class SabSpectraTestCase(unittest.TestCase):
"""Tests for `sab_spectra.py`"""
def test_nextVersion_nonExistentFolder(self):
absPath = os.path.abspath(os.path.curdir)
testBaseName = "test_sub_folde... | 39.06993 | 145 | 0.617147 | 627 | 5,587 | 5.398724 | 0.264753 | 0.064993 | 0.047858 | 0.054948 | 0.460561 | 0.417725 | 0.387001 | 0.325554 | 0.307533 | 0.260857 | 0 | 0.083333 | 0.254698 | 5,587 | 142 | 146 | 39.34507 | 0.729587 | 0 | 0 | 0.258333 | 0 | 0 | 0.10477 | 0.007741 | 0 | 0 | 0 | 0 | 0.175 | 0 | null | null | 0.008333 | 0.033333 | 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 |
5cbdce4508c33b2470e6dcaf5a776db8e0c1afbb | 787 | py | Python | programming/dsame/trees/DiameterOfBinaryTree.py | vamsitallapudi/Coderefer-Python-Projects | a7acc682251661e296c64533f4a85d47e6eedda2 | [
"Apache-2.0"
] | 1 | 2021-01-03T06:42:58.000Z | 2021-01-03T06:42:58.000Z | programming/dsame/trees/DiameterOfBinaryTree.py | vamsitallapudi/Coderefer-Python-Projects | a7acc682251661e296c64533f4a85d47e6eedda2 | [
"Apache-2.0"
] | null | null | null | programming/dsame/trees/DiameterOfBinaryTree.py | vamsitallapudi/Coderefer-Python-Projects | a7acc682251661e296c64533f4a85d47e6eedda2 | [
"Apache-2.0"
] | null | null | null | from dsame.trees.BinaryTreeNode import *
"""
diameter of a binary tree calculating nodes. To calculate edges only remove the addition of
1 from line 14
"""
class Solution:
def diameterOfBinaryTree(self, root: BinaryTreeNode) -> int:
if not root:
return 0
lHeight = self.height(root.le... | 30.269231 | 92 | 0.682338 | 90 | 787 | 5.966667 | 0.477778 | 0.074488 | 0.104283 | 0.055866 | 0.05959 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011457 | 0.223634 | 787 | 25 | 93 | 31.48 | 0.86743 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.533333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5cbe2cbcfade5d1dc466379a608b5990d80b1695 | 935 | py | Python | example_config.py | afcarl/corvid | e257074edeac1e8dce4a737b60e93a9bea37b6b9 | [
"Apache-2.0"
] | 1 | 2019-04-15T13:49:39.000Z | 2019-04-15T13:49:39.000Z | example_config.py | afcarl/corvid | e257074edeac1e8dce4a737b60e93a9bea37b6b9 | [
"Apache-2.0"
] | null | null | null | example_config.py | afcarl/corvid | e257074edeac1e8dce4a737b60e93a9bea37b6b9 | [
"Apache-2.0"
] | 1 | 2020-09-02T13:49:52.000Z | 2020-09-02T13:49:52.000Z | """
Example configuration file containing paths to other tools or directories
Variables defined in this file are imported in the scripts found in `scripts/`
"""
import os
from corvid.util.files import canonicalize_path
ES_PROD_URL = 'http://my.prod.es.server.url:8080/'
ES_DEV_URL = 'http://my.dev.es.server.url:80... | 29.21875 | 85 | 0.747594 | 159 | 935 | 4.150943 | 0.415094 | 0.074242 | 0.090909 | 0.127273 | 0.304545 | 0.169697 | 0.078788 | 0 | 0 | 0 | 0 | 0.016807 | 0.109091 | 935 | 32 | 86 | 29.21875 | 0.77551 | 0.163636 | 0 | 0.117647 | 0 | 0.058824 | 0.243208 | 0.090556 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.117647 | 0.117647 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5cbe9302bb171d9f3acb9a28dbe3d950cf6c24e9 | 1,632 | py | Python | sirepo/template/elegant_command_importer.py | bsmith39/CS595Project | 96f4930ea2974f219432ab8b3e7f585b5554b367 | [
"Apache-2.0"
] | 1 | 2019-06-06T08:08:11.000Z | 2019-06-06T08:08:11.000Z | sirepo/template/elegant_command_importer.py | bsmith39/CS595Project | 96f4930ea2974f219432ab8b3e7f585b5554b367 | [
"Apache-2.0"
] | null | null | null | sirepo/template/elegant_command_importer.py | bsmith39/CS595Project | 96f4930ea2974f219432ab8b3e7f585b5554b367 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
u"""elegant lattice parser.
:copyright: Copyright (c) 2015 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
"""
from __future__ import absolute_import, division, print_function
import re
from sirepo import simulation_db
from sirepo.template import... | 31.384615 | 89 | 0.703431 | 213 | 1,632 | 5.15493 | 0.43662 | 0.031876 | 0.04918 | 0.065574 | 0.084699 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005331 | 0.195466 | 1,632 | 51 | 90 | 32 | 0.830922 | 0.196078 | 0 | 0.058824 | 0 | 0 | 0.115886 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.088235 | false | 0 | 0.235294 | 0 | 0.411765 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
5cc4de2073429f222af53c8cb2985e1c3917ccf6 | 2,184 | py | Python | pdms/qtum_bridge/robin8/test_sc.py | chris0203/pmes | 97df332b859803e9953f983dda3ca47d4bc35758 | [
"Apache-2.0"
] | 5 | 2018-07-31T07:37:09.000Z | 2019-05-27T04:40:38.000Z | pdms/qtum_bridge/robin8/test_sc.py | chris0203/pmes | 97df332b859803e9953f983dda3ca47d4bc35758 | [
"Apache-2.0"
] | 4 | 2018-08-01T11:11:54.000Z | 2022-03-11T23:20:53.000Z | pdms/qtum_bridge/robin8/test_sc.py | chris0203/pmes | 97df332b859803e9953f983dda3ca47d4bc35758 | [
"Apache-2.0"
] | 5 | 2018-06-09T07:42:04.000Z | 2018-12-28T21:15:52.000Z | from robin8.qtum_contract_handler import QtumContractHandler
from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException
import time
contract_owner = 'qgh88fssi4JrkH8LLvkqvC7SzGxvyApYis'
contract_owner_hex = 'fdc1ae05c161833cdf135863e332126e15d7568c'
contract_address = '4f9ab7a8f5a2238b4315978e14305ce8db856f34... | 40.444444 | 127 | 0.690018 | 281 | 2,184 | 5.010676 | 0.288256 | 0.034091 | 0.068182 | 0.0625 | 0.300426 | 0.279119 | 0.257813 | 0.257813 | 0.066761 | 0 | 0 | 0.063712 | 0.173535 | 2,184 | 53 | 128 | 41.207547 | 0.716343 | 0.088828 | 0 | 0.051282 | 0 | 0 | 0.17365 | 0.057547 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179487 | false | 0 | 0.076923 | 0.153846 | 0.435897 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
5cc5fca7b04c576b20c6e89cd0337d87195cd79e | 728 | py | Python | dev/scripts/github_get_release_fixes.py | danielpalstra/mealie | 6c549ff99329e494bc6aad2109973e7eec6c445e | [
"MIT"
] | null | null | null | dev/scripts/github_get_release_fixes.py | danielpalstra/mealie | 6c549ff99329e494bc6aad2109973e7eec6c445e | [
"MIT"
] | 4 | 2022-03-30T15:11:24.000Z | 2022-03-30T15:47:58.000Z | dev/scripts/github_get_release_fixes.py | danielpalstra/mealie | 6c549ff99329e494bc6aad2109973e7eec6c445e | [
"MIT"
] | null | null | null | import json
import requests
from pydantic import BaseModel
class GithubIssue(BaseModel):
url: str
number: int
title: str
def get_issues_by_label(label="fixed-pending-release") -> list[GithubIssue]:
issues_url = f"https://api.github.com/repos/hay-kot/mealie/issues?labels={label}"
response = re... | 22.060606 | 92 | 0.699176 | 98 | 728 | 4.989796 | 0.489796 | 0.055215 | 0.04499 | 0.06544 | 0.07771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163462 | 728 | 32 | 93 | 22.75 | 0.802956 | 0 | 0 | 0 | 0 | 0.052632 | 0.196429 | 0.068681 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.157895 | 0.052632 | 0.631579 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5cc9b7ed717ab759b54763a8cacea8e89d42ebcc | 2,891 | py | Python | runSimpleHTTP.py | socialcar-project-eu/destination-tagging | a515fcbc05d9bbfed0fefc394bc108c25c75185b | [
"MIT"
] | null | null | null | runSimpleHTTP.py | socialcar-project-eu/destination-tagging | a515fcbc05d9bbfed0fefc394bc108c25c75185b | [
"MIT"
] | null | null | null | runSimpleHTTP.py | socialcar-project-eu/destination-tagging | a515fcbc05d9bbfed0fefc394bc108c25c75185b | [
"MIT"
] | 3 | 2018-04-26T13:18:42.000Z | 2019-07-07T10:52:49.000Z | #!/usr/bin/python
"""
Save this file as server.py
>>> python server.py 0.0.0.0 8001
serving on 0.0.0.0:8001
or simply
>>> python server.py
Serving on localhost:8000
You can use this to test GET and POST methods.
"""
import SimpleHTTPServer
import SocketServer
import logging
import cgi
import sys
if len(sys.arg... | 28.91 | 95 | 0.571429 | 347 | 2,891 | 4.706052 | 0.371758 | 0.077159 | 0.051439 | 0.004899 | 0.154317 | 0.045315 | 0.045315 | 0 | 0 | 0 | 0 | 0.017613 | 0.292978 | 2,891 | 99 | 96 | 29.20202 | 0.781311 | 0.254929 | 0 | 0.136364 | 0 | 0 | 0.178701 | 0.017662 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.113636 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cccbd0f6d2273187e36df5dcc3d00de674b7940 | 14,675 | py | Python | NESS/VISTA/VISTA_Query_Mosaic.py | drtobybrown/AncillaryDataButton | 129d282c0891a2e8fcb808847befb431d7242fd7 | [
"MIT"
] | 1 | 2021-09-08T00:16:00.000Z | 2021-09-08T00:16:00.000Z | NESS/VISTA/VISTA_Query_Mosaic.py | drtobybrown/AncillaryDataButton | 129d282c0891a2e8fcb808847befb431d7242fd7 | [
"MIT"
] | null | null | null | NESS/VISTA/VISTA_Query_Mosaic.py | drtobybrown/AncillaryDataButton | 129d282c0891a2e8fcb808847befb431d7242fd7 | [
"MIT"
] | 2 | 2019-10-17T20:01:58.000Z | 2021-05-13T17:26:32.000Z | # Identify location
import socket
location = socket.gethostname()
if location == 'Monolith':
dropbox = 'E:\\Users\\Chris\\Dropbox\\'
if location == 'Hobbitslayer':
dropbox = 'C:\\Users\\spx7cjc\\Dropbox\\'
if location in ['saruman','scoobydoo','caroline','herschel01','gandalf','ghost']:
dropbox = '/home/her... | 47.957516 | 263 | 0.620852 | 1,982 | 14,675 | 4.408174 | 0.220484 | 0.03365 | 0.046927 | 0.030216 | 0.304223 | 0.278585 | 0.255809 | 0.204761 | 0.127962 | 0.070047 | 0 | 0.01331 | 0.257649 | 14,675 | 305 | 264 | 48.114754 | 0.788691 | 0.167087 | 0 | 0.204545 | 0 | 0.009091 | 0.124394 | 0.029723 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004545 | 0.077273 | null | null | 0.063636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5ccdebf1e4bb468937719166d75ce8b7df896aed | 2,614 | py | Python | fl_learning/scripts/learning.py | l1va/fanlearn | 2a1e827268ed819a9e194f992615456a2fb6d9f8 | [
"MIT"
] | 1 | 2019-09-21T12:37:30.000Z | 2019-09-21T12:37:30.000Z | fl_learning/scripts/learning.py | Alonso94/fanlearn | 2a1e827268ed819a9e194f992615456a2fb6d9f8 | [
"MIT"
] | null | null | null | fl_learning/scripts/learning.py | Alonso94/fanlearn | 2a1e827268ed819a9e194f992615456a2fb6d9f8 | [
"MIT"
] | 3 | 2018-08-13T07:51:10.000Z | 2018-11-23T06:10:51.000Z | #!/usr/bin/env python
from fl_learning.srv import *
import rospy
import numpy as np
import random
import math
# Set environment parameters
env_width = 10
env_height = 4
num_actions = 4
# Initialize Q-table
Q_table = np.zeros([env_width, env_height, env_width, env_height, env_width, env_height, num_actions])
def lear... | 36.305556 | 511 | 0.72303 | 406 | 2,614 | 4.342365 | 0.226601 | 0.045377 | 0.07941 | 0.047646 | 0.316506 | 0.27283 | 0.27283 | 0.27283 | 0.243902 | 0.243902 | 0 | 0.009255 | 0.173298 | 2,614 | 71 | 512 | 36.816901 | 0.806571 | 0.081102 | 0 | 0 | 0 | 0 | 0.034699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.108696 | null | null | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5cce0a73c014f3f0103e2e2a25d985c2792fcfe0 | 2,293 | py | Python | bin/main.py | adtender/RNGundam | c20c5ecb4496021fdfe1986f2559f55949322680 | [
"MIT"
] | null | null | null | bin/main.py | adtender/RNGundam | c20c5ecb4496021fdfe1986f2559f55949322680 | [
"MIT"
] | null | null | null | bin/main.py | adtender/RNGundam | c20c5ecb4496021fdfe1986f2559f55949322680 | [
"MIT"
] | null | null | null | import os
import sys
import screenshot
import tweetMedia
import config
import sqlite3
# TODO:
# Fix error 413 on linux (fixed?)
# Fix gif outside time limit
# remake code to no longer use itsoffset (done on hdmv)
# frame selection is accurate on no_subtitles and hdmv, ass is off by nearly 4 seconds on index 297
# f... | 28.308642 | 109 | 0.632359 | 308 | 2,293 | 4.62013 | 0.564935 | 0.021082 | 0.029515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017523 | 0.278238 | 2,293 | 81 | 110 | 28.308642 | 0.842296 | 0.415177 | 0 | 0.111111 | 0 | 0 | 0.052312 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.222222 | 0.088889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
5ccfe034b2b0925f89eceb4474138f570a1b4121 | 722 | py | Python | 101. Symmetric Tree/solution.py | Rukeith/leetcode | 001aaf83968889d0cbc634dcc3bd1b59728d1ecc | [
"MIT"
] | 3 | 2018-06-19T08:36:32.000Z | 2019-03-25T04:05:04.000Z | 101. Symmetric Tree/solution.py | Rukeith/leetcode | 001aaf83968889d0cbc634dcc3bd1b59728d1ecc | [
"MIT"
] | null | null | null | 101. Symmetric Tree/solution.py | Rukeith/leetcode | 001aaf83968889d0cbc634dcc3bd1b59728d1ecc | [
"MIT"
] | null | null | null | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def compare(self, lleft, rright):
if (not lleft) and (not rright):
return True
elif (not lleft) or (not rrig... | 27.769231 | 104 | 0.545706 | 86 | 722 | 4.534884 | 0.372093 | 0.084615 | 0.076923 | 0.107692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.360111 | 722 | 25 | 105 | 28.88 | 0.844156 | 0.206371 | 0 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5cd3c9e9e2081a2206895af3dd5284c6512dd41f | 3,056 | py | Python | coh-metrix_3/book_test1/Tkentei.py | Lee-guccii/ExtensiveReading_YL_Estimation | 89e3d4aacdc6e7d812b8cedc24f37e1f173087bc | [
"MIT"
] | null | null | null | coh-metrix_3/book_test1/Tkentei.py | Lee-guccii/ExtensiveReading_YL_Estimation | 89e3d4aacdc6e7d812b8cedc24f37e1f173087bc | [
"MIT"
] | null | null | null | coh-metrix_3/book_test1/Tkentei.py | Lee-guccii/ExtensiveReading_YL_Estimation | 89e3d4aacdc6e7d812b8cedc24f37e1f173087bc | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
from scipy import stats
from scipy.stats import spearmanr
import scipy
import statistics
#####################################
#多読図書の誤差
gosa_t = [2.5936085940242886, 0.3649609355211716, -1.5684807178864082, 0.08092297493428235, 0.22543171481307445, -1.3691957161909... | 27.044248 | 363 | 0.701571 | 417 | 3,056 | 4.997602 | 0.326139 | 0.025912 | 0.028791 | 0.028791 | 0.228407 | 0.174184 | 0.152591 | 0.089251 | 0.06142 | 0.06142 | 0 | 0.242365 | 0.164267 | 3,056 | 112 | 364 | 27.285714 | 0.566954 | 0.166558 | 0 | 0.142857 | 0 | 0 | 0.088719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.367347 | 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 |
5cd64c2625f058f08d841539b9462da6a4354cdd | 4,177 | py | Python | fitbenchmarking/cost_func/base_cost_func.py | fitbenchmarking/fitbenchmarking | ea398efa61f071dc64fe7c3b484d5bb4e1897856 | [
"BSD-3-Clause"
] | 6 | 2019-07-22T01:56:10.000Z | 2021-12-10T05:29:30.000Z | fitbenchmarking/cost_func/base_cost_func.py | fitbenchmarking/fitbenchmarking | ea398efa61f071dc64fe7c3b484d5bb4e1897856 | [
"BSD-3-Clause"
] | 677 | 2019-04-29T10:23:49.000Z | 2022-03-22T12:01:30.000Z | fitbenchmarking/cost_func/base_cost_func.py | fitbenchmarking/fitbenchmarking | ea398efa61f071dc64fe7c3b484d5bb4e1897856 | [
"BSD-3-Clause"
] | 8 | 2019-06-13T10:32:17.000Z | 2020-12-09T15:08:40.000Z | """
Implements the base class for the cost function class.
"""
from abc import ABCMeta, abstractmethod
from fitbenchmarking.utils.exceptions import IncompatibleMinimizerError
class CostFunc:
"""
Base class for the cost functions.
"""
__metaclass__ = ABCMeta
def __init__(self, problem):
... | 31.885496 | 80 | 0.630596 | 490 | 4,177 | 5.318367 | 0.236735 | 0.02878 | 0.051804 | 0.03914 | 0.550652 | 0.437068 | 0.431696 | 0.40944 | 0.364927 | 0.31888 | 0 | 0.002402 | 0.30237 | 4,177 | 130 | 81 | 32.130769 | 0.891901 | 0.547522 | 0 | 0.322581 | 0 | 0 | 0.073295 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.064516 | 0 | 0.354839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5cd6d6035c8157d9e264421115c148f01deef56f | 556 | py | Python | apps/blog/migrations/0002_auto_20170717_1021.py | itpubs/reflecting | 994dee02e440f5dcde5e04190073a153b1a4973f | [
"MIT"
] | 4 | 2016-03-22T10:24:55.000Z | 2018-03-19T18:46:45.000Z | apps/blog/migrations/0002_auto_20170717_1021.py | itpubs/reflecting | 994dee02e440f5dcde5e04190073a153b1a4973f | [
"MIT"
] | null | null | null | apps/blog/migrations/0002_auto_20170717_1021.py | itpubs/reflecting | 994dee02e440f5dcde5e04190073a153b1a4973f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-07-17 10:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.RemoveField(
... | 22.24 | 54 | 0.588129 | 57 | 556 | 5.54386 | 0.736842 | 0.056962 | 0.101266 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 0.294964 | 556 | 24 | 55 | 23.166667 | 0.752551 | 0.122302 | 0 | 0.235294 | 1 | 0 | 0.11134 | 0 | 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 |
5cd88421b07804b9e70ab4165b3074da68dccc32 | 485 | py | Python | examples/src/dbnd_examples/tests/documentation_snippets/task_pipelines_data/test_dynamic_tasks_with_pipeline.py | kalebinn/dbnd | 89b6ac3537f861784be73ffe8989bf63fca7401c | [
"Apache-2.0"
] | null | null | null | examples/src/dbnd_examples/tests/documentation_snippets/task_pipelines_data/test_dynamic_tasks_with_pipeline.py | kalebinn/dbnd | 89b6ac3537f861784be73ffe8989bf63fca7401c | [
"Apache-2.0"
] | null | null | null | examples/src/dbnd_examples/tests/documentation_snippets/task_pipelines_data/test_dynamic_tasks_with_pipeline.py | kalebinn/dbnd | 89b6ac3537f861784be73ffe8989bf63fca7401c | [
"Apache-2.0"
] | null | null | null | import pytest
import six
if six.PY2:
pytestmark = pytest.mark.skip("Python 2 non compatible code") # py2 styling
else:
from dbnd_examples.features.dynamic_tasks_with_pipeline import (
say_hello_to_everybody,
)
class TestDynamicTasks(object):
def test_run_say_hello_to_everybody(self):
... | 24.25 | 80 | 0.659794 | 65 | 485 | 4.676923 | 0.646154 | 0.078947 | 0.098684 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019499 | 0.259794 | 485 | 19 | 81 | 25.526316 | 0.827298 | 0.02268 | 0 | 0 | 0 | 0 | 0.186441 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.333333 | 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 |
5cd9a3ccd639f1b71905db85688e10748e32e16d | 1,431 | py | Python | linkedin/merge_singly_linked_list.py | shwetabhsharan/leetcode | 6630592b1f962bb4c4bb3c83162a8ff12b2074b3 | [
"MIT"
] | null | null | null | linkedin/merge_singly_linked_list.py | shwetabhsharan/leetcode | 6630592b1f962bb4c4bb3c83162a8ff12b2074b3 | [
"MIT"
] | null | null | null | linkedin/merge_singly_linked_list.py | shwetabhsharan/leetcode | 6630592b1f962bb4c4bb3c83162a8ff12b2074b3 | [
"MIT"
] | null | null | null | """
Merge two singly linked
1->2->4, 1->3->4
1->1->2->3->4->4
"""
class Node(object):
def __init__(self, value):
self.value = value
self.next = None
class SLL(object):
def __init__(self):
self.head = None
def add(self, value):
node = Node(value)
node.next = self.he... | 18.346154 | 42 | 0.519916 | 200 | 1,431 | 3.605 | 0.2 | 0.099861 | 0.037448 | 0.054092 | 0.248266 | 0.190014 | 0.135922 | 0.083218 | 0 | 0 | 0 | 0.044809 | 0.360587 | 1,431 | 78 | 43 | 18.346154 | 0.743169 | 0.02935 | 0 | 0.327273 | 0 | 0 | 0.000766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.072727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7a22b79d0a30a862812261cf3b398f014efc7fd2 | 2,120 | py | Python | programs/migrations/0001_initial.py | cclauss/Workout-progress-tracker | d9613fb9333496455107bb066395066bd9f2018c | [
"MIT"
] | null | null | null | programs/migrations/0001_initial.py | cclauss/Workout-progress-tracker | d9613fb9333496455107bb066395066bd9f2018c | [
"MIT"
] | null | null | null | programs/migrations/0001_initial.py | cclauss/Workout-progress-tracker | d9613fb9333496455107bb066395066bd9f2018c | [
"MIT"
] | null | null | null | # Generated by Django 3.1.6 on 2021-02-18 01:18
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('exercises', '0001_initial'),
]
operations = [
migrations.CreateModel(
name=... | 47.111111 | 238 | 0.571226 | 207 | 2,120 | 5.748792 | 0.415459 | 0.060504 | 0.063025 | 0.057983 | 0.352941 | 0.352941 | 0.352941 | 0.318487 | 0.318487 | 0.318487 | 0 | 0.026217 | 0.24434 | 2,120 | 44 | 239 | 48.181818 | 0.716604 | 0.021226 | 0 | 0.459459 | 1 | 0 | 0.182344 | 0.021225 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.054054 | 0 | 0.162162 | 0 | 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 |
7a26d98e715c78e7928377c8acc06dc6fcde6e26 | 620 | py | Python | db/classes/ProblemTag.py | Sky-Nik/MathForces | b52ad8cd089c1651428ac2ac7ca1bcc958f84bf3 | [
"MIT"
] | 3 | 2019-07-23T07:44:34.000Z | 2021-01-04T06:12:41.000Z | db/classes/ProblemTag.py | Sky-Nik/MathForces | b52ad8cd089c1651428ac2ac7ca1bcc958f84bf3 | [
"MIT"
] | null | null | null | db/classes/ProblemTag.py | Sky-Nik/MathForces | b52ad8cd089c1651428ac2ac7ca1bcc958f84bf3 | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Integer, ForeignKey
from sqlalchemy.orm import relationship
from db.classes.Base import Base
class ProblemTag(Base):
""" many 2 many relationship between problems and tags """
__tablename__ = 'problems_tags'
problemId = Column(Integer, ForeignKey('problems.id'), primary_ke... | 32.631579 | 78 | 0.727419 | 73 | 620 | 6 | 0.479452 | 0.089041 | 0.157534 | 0.073059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001901 | 0.151613 | 620 | 18 | 79 | 34.444444 | 0.830798 | 0.080645 | 0 | 0 | 0 | 0 | 0.201068 | 0.069395 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0.090909 | 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 |
7a27f747d7cdcc455c5aa23089ca1df8d6c8968b | 2,276 | py | Python | routes.py | Suuuuuprr/Rustin-Joger-final | 8674350e3825209e98f141fb187698846ce4b036 | [
"MIT"
] | null | null | null | routes.py | Suuuuuprr/Rustin-Joger-final | 8674350e3825209e98f141fb187698846ce4b036 | [
"MIT"
] | null | null | null | routes.py | Suuuuuprr/Rustin-Joger-final | 8674350e3825209e98f141fb187698846ce4b036 | [
"MIT"
] | null | null | null | import random
from app import app
from flask import jsonify, send_from_directory, request, url_for, redirect, flash
from utils import execute_sql, generate
# serve site assets
@app.route('/public/<path:path>')
def serve_static_assets(path):
return send_from_directory('public', path)
@app.route('/r/create', metho... | 26.16092 | 115 | 0.601494 | 278 | 2,276 | 4.866906 | 0.241007 | 0.044346 | 0.033259 | 0.070214 | 0.521064 | 0.481153 | 0.481153 | 0.422025 | 0.422025 | 0.412417 | 0 | 0.005051 | 0.217047 | 2,276 | 87 | 116 | 26.16092 | 0.754209 | 0.007469 | 0 | 0.389831 | 1 | 0.033898 | 0.344553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101695 | false | 0 | 0.067797 | 0.016949 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a2d9eec366441c8f88db44c9c0fa6facd41b7ea | 1,309 | py | Python | pytimize/programs/tests/integer/test_relax.py | TerrayTM/pytimize | 5d3508e8da4d2e6c8e52d3386b580bc300dc52d5 | [
"Apache-2.0"
] | 10 | 2020-02-24T01:52:20.000Z | 2022-03-12T02:50:58.000Z | pytimize/programs/tests/integer/test_relax.py | TerrayTM/pytimize | 5d3508e8da4d2e6c8e52d3386b580bc300dc52d5 | [
"Apache-2.0"
] | null | null | null | pytimize/programs/tests/integer/test_relax.py | TerrayTM/pytimize | 5d3508e8da4d2e6c8e52d3386b580bc300dc52d5 | [
"Apache-2.0"
] | 2 | 2021-10-03T22:18:47.000Z | 2021-10-03T22:19:27.000Z | import math
import numpy as np
from ... import IntegerProgram, LinearProgram
from unittest import TestCase, main
class TestRelax(TestCase):
def test_relax(self) -> None:
A = np.array([
[1, 2, 3, 4],
[3, 5, 7, 9]
])
b = np.array([-9, 7])
c = np.array([1, 7, 1... | 40.90625 | 114 | 0.632544 | 174 | 1,309 | 4.683908 | 0.333333 | 0.09816 | 0.127607 | 0.166871 | 0.225767 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017822 | 0.228419 | 1,309 | 31 | 115 | 42.225806 | 0.789109 | 0 | 0 | 0 | 0 | 0 | 0.252865 | 0 | 0 | 0 | 0 | 0 | 0.346154 | 1 | 0.038462 | false | 0 | 0.153846 | 0 | 0.230769 | 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 |
7a3030e1feacc30fd6ca5e7135fa4b37a3b9a218 | 2,429 | py | Python | assets_arch_search/arch_search_run_train.py | msaddler/pitchnet | 8e26034be177deff7447ade7f782a4a9581c2188 | [
"MIT"
] | 6 | 2021-12-21T05:38:03.000Z | 2022-03-31T21:05:56.000Z | assets_arch_search/arch_search_run_train.py | msaddler/pitchnet | 8e26034be177deff7447ade7f782a4a9581c2188 | [
"MIT"
] | null | null | null | assets_arch_search/arch_search_run_train.py | msaddler/pitchnet | 8e26034be177deff7447ade7f782a4a9581c2188 | [
"MIT"
] | 1 | 2022-03-28T19:33:53.000Z | 2022-03-28T19:33:53.000Z | import sys
import os
import glob
import json
import numpy as np
import pdb
import argparse
import arch_search_generate_output_directory
sys.path.append('/packages/msutil')
import run_train_or_eval
def train_random_arch(output_dir_pattern, source_config_fn, job_idx,
tfrecords_regex_train=None, ... | 39.819672 | 102 | 0.646768 | 291 | 2,429 | 5.082474 | 0.316151 | 0.060852 | 0.047329 | 0.048682 | 0.170385 | 0.118999 | 0.07167 | 0.07167 | 0.07167 | 0.07167 | 0 | 0 | 0.26513 | 2,429 | 60 | 103 | 40.483333 | 0.828571 | 0 | 0 | 0 | 1 | 0 | 0.205235 | 0.018695 | 0 | 0 | 0 | 0 | 0.085106 | 1 | 0.042553 | false | 0 | 0.191489 | 0 | 0.234043 | 0.085106 | 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 |
7a32b5397e64a2616d97ea01a48f92befdf364c4 | 979 | py | Python | corehq/form_processor/tests/test_models.py | omari-funzone/commcare-hq | 5edb462c891fc08e51c4babd7acdf12c0006a602 | [
"BSD-3-Clause"
] | null | null | null | corehq/form_processor/tests/test_models.py | omari-funzone/commcare-hq | 5edb462c891fc08e51c4babd7acdf12c0006a602 | [
"BSD-3-Clause"
] | 34 | 2020-12-11T18:51:17.000Z | 2022-02-21T10:13:26.000Z | corehq/form_processor/tests/test_models.py | omari-funzone/commcare-hq | 5edb462c891fc08e51c4babd7acdf12c0006a602 | [
"BSD-3-Clause"
] | null | null | null | from django.test import SimpleTestCase
from unittest.mock import MagicMock
from corehq.form_processor.models import Attachment
class AttachmentHasSizeTests(SimpleTestCase):
def test_handles_no_size_property(self):
raw_content = MagicMock(spec_set=[''])
attachment = self.create_attachment_with_con... | 37.653846 | 91 | 0.749745 | 116 | 979 | 6.008621 | 0.327586 | 0.10043 | 0.114778 | 0.15495 | 0.466284 | 0.388809 | 0.388809 | 0.388809 | 0.388809 | 0.388809 | 0 | 0.00486 | 0.159346 | 979 | 25 | 92 | 39.16 | 0.842041 | 0 | 0 | 0.263158 | 0 | 0 | 0.027579 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.210526 | false | 0 | 0.157895 | 0.052632 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a3376c319dfb72db0d8c00216ac8f680492f001 | 292 | py | Python | abusehelper/bots/dragonresearchgroup/ssh.py | heikipikker/abusehelper | c451e36e9927b95ba82253accf170121fce61f4f | [
"MIT"
] | 1 | 2020-04-07T07:01:12.000Z | 2020-04-07T07:01:12.000Z | abusehelper/bots/dragonresearchgroup/ssh.py | heikipikker/abusehelper | c451e36e9927b95ba82253accf170121fce61f4f | [
"MIT"
] | null | null | null | abusehelper/bots/dragonresearchgroup/ssh.py | heikipikker/abusehelper | c451e36e9927b95ba82253accf170121fce61f4f | [
"MIT"
] | 1 | 2020-04-07T07:01:13.000Z | 2020-04-07T07:01:13.000Z | """
Dragon research group bot (SSH)
Maintainer: Codenomicon <clarified@codenomicon.com>
"""
from . import DragonBot
class DragonSshBot(DragonBot):
url = "http://dragonresearchgroup.org/insight/sshpwauth.txt"
if __name__ == "__main__":
DragonSshBot.from_command_line().execute()
| 18.25 | 64 | 0.739726 | 31 | 292 | 6.645161 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130137 | 292 | 15 | 65 | 19.466667 | 0.811024 | 0.287671 | 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7a37a78bde893d3fe2949c73dd0698f98a71ea8d | 245 | py | Python | game.py | Software-Cat/Python-Graphics-Project | 987cb5a7b9dcfb145e31f8b7d34d4ced1c62b7cd | [
"MIT"
] | null | null | null | game.py | Software-Cat/Python-Graphics-Project | 987cb5a7b9dcfb145e31f8b7d34d4ced1c62b7cd | [
"MIT"
] | null | null | null | game.py | Software-Cat/Python-Graphics-Project | 987cb5a7b9dcfb145e31f8b7d34d4ced1c62b7cd | [
"MIT"
] | null | null | null | from graphics import *
class Entity:
def __init__(self, xPos, yPos, xVel=0, yVel=0, xAccel=[], yAccel=[]):
self.xPos = xPos
self.yPos = yPos
self.xVel = xVel
self.yVel = yVel
def main():
pass
main()
| 14.411765 | 73 | 0.559184 | 32 | 245 | 4.15625 | 0.53125 | 0.120301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011834 | 0.310204 | 245 | 16 | 74 | 15.3125 | 0.775148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7a3822212923ae2e36bd4ef3ad6233ad28d240ca | 220 | py | Python | week07/code09.py | byeongal/KMUCP | 5bafe02c40aae67fc53d9e6cdcb727929368587e | [
"MIT"
] | null | null | null | week07/code09.py | byeongal/KMUCP | 5bafe02c40aae67fc53d9e6cdcb727929368587e | [
"MIT"
] | null | null | null | week07/code09.py | byeongal/KMUCP | 5bafe02c40aae67fc53d9e6cdcb727929368587e | [
"MIT"
] | 1 | 2019-11-27T20:28:19.000Z | 2019-11-27T20:28:19.000Z | import turtle
t = turtle.Turtle()
color_list = ["black", "red", "green", "blue", "cyan", "yellow", "magenta"]
for i in range(7):
radius = (i + 1) * 10
t.color(color_list[i])
t.circle(radius)
turtle.mainloop() | 27.5 | 75 | 0.613636 | 33 | 220 | 4.030303 | 0.666667 | 0.135338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022099 | 0.177273 | 220 | 8 | 76 | 27.5 | 0.712707 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
7a3bba72cc1fed5acddc2e0ca65c97447036f28e | 7,431 | py | Python | workflow/workflow/custom_workflows/service_request/models.py | dannybrowne86/django-workflow | 4ce1198ef883c104c41fd9d8a7e27a42c4b94243 | [
"Apache-2.0"
] | null | null | null | workflow/workflow/custom_workflows/service_request/models.py | dannybrowne86/django-workflow | 4ce1198ef883c104c41fd9d8a7e27a42c4b94243 | [
"Apache-2.0"
] | null | null | null | workflow/workflow/custom_workflows/service_request/models.py | dannybrowne86/django-workflow | 4ce1198ef883c104c41fd9d8a7e27a42c4b94243 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from .base_workflow import Ticket, TicketHistory
class ServiceRequest(Ticket):
AC_STATUS = (
('aog', 'AOG'),
('mtx', 'Scheduled Maintenance'),
('other', 'Other (Provide in Description)')
)
CERTS = (
('far91', 'FAR 91'),
('far121', 'F... | 42.706897 | 77 | 0.645404 | 855 | 7,431 | 5.39883 | 0.218713 | 0.07799 | 0.07799 | 0.103986 | 0.665945 | 0.633882 | 0.623484 | 0.623484 | 0.623484 | 0.603986 | 0 | 0.046512 | 0.230386 | 7,431 | 173 | 78 | 42.953757 | 0.760622 | 0.017763 | 0 | 0.376623 | 0 | 0 | 0.202386 | 0.018922 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006494 | false | 0 | 0.012987 | 0 | 0.350649 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a3d013af201e693e97ff79ae581e760ef52914a | 765 | py | Python | src/isilon_hadoop_tools/__init__.py | tucked/isilon_hadoop_tools | 8fb5aa704109f4e8e07b79e65cb81acca0e3ec57 | [
"MIT"
] | 16 | 2016-07-14T17:27:11.000Z | 2020-09-22T22:45:43.000Z | src/isilon_hadoop_tools/__init__.py | tucked/isilon_hadoop_tools | 8fb5aa704109f4e8e07b79e65cb81acca0e3ec57 | [
"MIT"
] | 70 | 2016-07-29T04:59:27.000Z | 2022-03-30T22:12:44.000Z | src/isilon_hadoop_tools/__init__.py | tucked/isilon_hadoop_tools | 8fb5aa704109f4e8e07b79e65cb81acca0e3ec57 | [
"MIT"
] | 18 | 2016-07-29T04:28:09.000Z | 2022-03-29T07:41:55.000Z | """Isilon Hadoop Tools"""
from pkg_resources import get_distribution
__all__ = [
# Constants
'__version__',
# Exceptions
'IsilonHadoopToolError',
]
__version__ = get_distribution(__name__).version
class IsilonHadoopToolError(Exception):
"""All Exceptions emitted from this package inherit from ... | 24.677419 | 86 | 0.618301 | 72 | 765 | 5.972222 | 0.583333 | 0.069767 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003578 | 0.269281 | 765 | 30 | 87 | 25.5 | 0.765653 | 0.179085 | 0 | 0 | 0 | 0 | 0.108943 | 0.034146 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 0.111111 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
7a45eeff2778f914338fcd5dca930c7679375b3a | 1,362 | py | Python | rx/abstractobserver.py | rlugojr/RxPy | 9f9b1de0ab833e53b0d1626a3b43a6c9424f01ec | [
"ECL-2.0",
"Apache-2.0"
] | 78 | 2015-01-22T23:57:01.000Z | 2021-06-04T15:16:22.000Z | rx/abstractobserver.py | rlugojr/RxPy | 9f9b1de0ab833e53b0d1626a3b43a6c9424f01ec | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2015-10-19T12:59:57.000Z | 2015-10-19T12:59:57.000Z | rx/abstractobserver.py | rlugojr/RxPy | 9f9b1de0ab833e53b0d1626a3b43a6c9424f01ec | [
"ECL-2.0",
"Apache-2.0"
] | 11 | 2015-02-16T20:43:45.000Z | 2018-05-30T11:46:50.000Z |
class AbstractObserver(object):
"""Abstract Observer"""
def __init__(self):
self.is_stopped = False
def next(self, value):
raise NotImplementedError
def error(self, error):
raise NotImplementedError
def completed(self):
raise NotImplementedError
def on_next(... | 24.763636 | 74 | 0.573421 | 155 | 1,362 | 4.935484 | 0.303226 | 0.070588 | 0.152941 | 0.057516 | 0.223529 | 0.223529 | 0.223529 | 0.223529 | 0.166013 | 0.166013 | 0 | 0 | 0.347283 | 1,362 | 55 | 75 | 24.763636 | 0.860517 | 0.267988 | 0 | 0.392857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.321429 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a4c1fa2befa9bf6ae7268aed07e1d851f3a767d | 615 | py | Python | DryveBackend/user.py | AHS-Open-Sorcery/Dryve | 0c9ca57ef698acbe65a4f9b5f7ed2c563765ab63 | [
"MIT"
] | 1 | 2019-07-17T13:12:33.000Z | 2019-07-17T13:12:33.000Z | DryveBackend/user.py | AHS-Open-Sorcery/Dryve | 0c9ca57ef698acbe65a4f9b5f7ed2c563765ab63 | [
"MIT"
] | null | null | null | DryveBackend/user.py | AHS-Open-Sorcery/Dryve | 0c9ca57ef698acbe65a4f9b5f7ed2c563765ab63 | [
"MIT"
] | null | null | null | from typing import List
from request import *
from trip import *
from datetime import datetime
class User:
name: str
id: str
def __init__(self, name, _id):
self.name = name
self.id = _id
self.requests = []
self.offers = []
def __eq__(self, other):
return other... | 21.964286 | 83 | 0.606504 | 78 | 615 | 4.628205 | 0.384615 | 0.049862 | 0.077562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294309 | 615 | 27 | 84 | 22.777778 | 0.831797 | 0.011382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.05 | 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 |
7a4c20ddb959ea5cc78c03d084b0557249f587e8 | 1,434 | py | Python | aiocypher/interface/transaction.py | bbc/rd-cloudfit-python-aiocypher | eb6ce85ee1045ed715bbc4f2b5e033688f7fb5f2 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-11-09T20:48:18.000Z | 2021-11-12T07:45:39.000Z | aiocypher/interface/transaction.py | bbc/rd-cloudfit-python-aiocypher | eb6ce85ee1045ed715bbc4f2b5e033688f7fb5f2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | aiocypher/interface/transaction.py | bbc/rd-cloudfit-python-aiocypher | eb6ce85ee1045ed715bbc4f2b5e033688f7fb5f2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #
#
# Copyright 2020-21 British Broadcasting Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 31.173913 | 112 | 0.708508 | 200 | 1,434 | 5.04 | 0.605 | 0.059524 | 0.025794 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008985 | 0.223849 | 1,434 | 45 | 113 | 31.866667 | 0.896676 | 0.698745 | 0 | 0 | 0 | 0 | 0.030899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7a52685452a872554d84d9d471707dbaa5e9aa4c | 4,847 | py | Python | niftynet/engine/application_initializer.py | tdml13/NiftyNet | b35fa19ca307e81d229e2fe8269a417724833da2 | [
"Apache-2.0"
] | 1,403 | 2017-08-30T11:49:45.000Z | 2022-03-31T11:44:05.000Z | niftynet/engine/application_initializer.py | tdml13/NiftyNet | b35fa19ca307e81d229e2fe8269a417724833da2 | [
"Apache-2.0"
] | 360 | 2017-10-03T15:33:53.000Z | 2021-03-17T06:27:38.000Z | niftynet/engine/application_initializer.py | tdml13/NiftyNet | b35fa19ca307e81d229e2fe8269a417724833da2 | [
"Apache-2.0"
] | 464 | 2017-09-13T20:56:32.000Z | 2022-02-11T20:33:47.000Z | # -*- coding: utf-8 -*-
"""
Loading modules from a string representing the class name
or a short name that matches the dictionary item defined
in this module
all classes and docs are taken from
https://github.com/tensorflow/tensorflow/blob/r1.3/tensorflow/python/ops/init_ops.py
"""
import tensorflow as tf
SEED = 42
... | 25.645503 | 86 | 0.605117 | 550 | 4,847 | 5.24 | 0.238182 | 0.045802 | 0.062457 | 0.090215 | 0.619709 | 0.580153 | 0.559334 | 0.559334 | 0.559334 | 0.559334 | 0 | 0.011564 | 0.286363 | 4,847 | 188 | 87 | 25.781915 | 0.821625 | 0.429338 | 0 | 0.421053 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 1 | 0.175439 | false | 0 | 0.017544 | 0 | 0.54386 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7a57d54a02d83d004249606bb450ecb3860d9b42 | 1,652 | py | Python | test/test_local_interpolation.py | FedericoV/diffrax | 98b010242394491fea832e77dc94f456b48495fa | [
"Apache-2.0"
] | 377 | 2022-02-07T11:13:56.000Z | 2022-03-31T18:35:51.000Z | test/test_local_interpolation.py | FedericoV/diffrax | 98b010242394491fea832e77dc94f456b48495fa | [
"Apache-2.0"
] | 25 | 2022-02-08T23:08:11.000Z | 2022-03-30T21:21:18.000Z | test/test_local_interpolation.py | FedericoV/diffrax | 98b010242394491fea832e77dc94f456b48495fa | [
"Apache-2.0"
] | 15 | 2022-02-08T04:46:23.000Z | 2022-03-30T20:53:10.000Z | import diffrax.local_interpolation
import jax
import jax.numpy as jnp
from helpers import shaped_allclose
def test_local_linear_interpolation():
t0 = 2.0
t1 = 3.3
t0_ = 2.8
t1_ = 2.9
for y0 in (2.1, jnp.array(2.1), jnp.array([2.1, 3.1])):
for y1 in (2.2, jnp.array(2.2), jnp.array([2.2, 3.... | 34.416667 | 85 | 0.549637 | 211 | 1,652 | 4.123223 | 0.222749 | 0.112644 | 0.110345 | 0.165517 | 0.625287 | 0.549425 | 0.498851 | 0.462069 | 0.229885 | 0.229885 | 0 | 0.070662 | 0.323245 | 1,652 | 47 | 86 | 35.148936 | 0.707513 | 0.050847 | 0 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171429 | 1 | 0.028571 | false | 0 | 0.114286 | 0 | 0.142857 | 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 |
7a6017809bac0b2abbb99ff34123e903d8abde17 | 623 | py | Python | jianzhioffer/fib.py | summer-vacation/AlgoExec | 55c6c3e7890b596b709b50cafa415b9594c03edd | [
"MIT"
] | null | null | null | jianzhioffer/fib.py | summer-vacation/AlgoExec | 55c6c3e7890b596b709b50cafa415b9594c03edd | [
"MIT"
] | 2 | 2019-12-09T06:12:51.000Z | 2019-12-16T14:38:34.000Z | jianzhioffer/fib.py | summer-vacation/AlgoExec | 55c6c3e7890b596b709b50cafa415b9594c03edd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
File Name: fib.py
Author : jynnezhang
Date: 2020/4/30 11:16 上午
Description:
斐波那契
递归会超时!
https://leetcode-cn.com/problems/fei-bo-na-qi-shu-lie-lcof/
https://leetcode-cn.com/problems/fibonacci-number/
"""
class Solution:
def fib(self, n: int) -> int:
if n == 0:
... | 18.323529 | 59 | 0.500803 | 98 | 623 | 3.183673 | 0.55102 | 0.028846 | 0.096154 | 0.115385 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06357 | 0.343499 | 623 | 33 | 60 | 18.878788 | 0.699267 | 0.383628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0 | 0 | 0.533333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7a60326e3422c7844c35c0427ce17f0e6b242756 | 236 | py | Python | fpssh/clients/miko/single.py | deadwind4/fast-pssh | 5ccacae1da0aaa16a65bcfee6e1a08c8b89f297a | [
"MIT"
] | 1 | 2019-11-28T13:06:47.000Z | 2019-11-28T13:06:47.000Z | fpssh/clients/miko/single.py | deadwind4/fast-pssh | 5ccacae1da0aaa16a65bcfee6e1a08c8b89f297a | [
"MIT"
] | null | null | null | fpssh/clients/miko/single.py | deadwind4/fast-pssh | 5ccacae1da0aaa16a65bcfee6e1a08c8b89f297a | [
"MIT"
] | null | null | null | import logging
import paramiko
from gevent import monkey
monkey.patch_all()
class SSHClient:
def __init__(self):
client = paramiko.SSHClient()
self.client = client
self.host = None
self.port = None | 18.153846 | 37 | 0.661017 | 28 | 236 | 5.392857 | 0.607143 | 0.13245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266949 | 236 | 13 | 38 | 18.153846 | 0.872832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a61ed668aad16ec7b16ed541f744bcd5edc5d12 | 2,129 | py | Python | study/stage010_study.py | DingJohn/git-study | 250493b477d4a4b54f41e372c38531f61e344027 | [
"MIT"
] | null | null | null | study/stage010_study.py | DingJohn/git-study | 250493b477d4a4b54f41e372c38531f61e344027 | [
"MIT"
] | null | null | null | study/stage010_study.py | DingJohn/git-study | 250493b477d4a4b54f41e372c38531f61e344027 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
'''
函数的参数
'''
print("===============================默认参数====================================")
def enroll(name, age, sex='男', city='上海'):
print("姓名:" + str(name) + ",年龄:" + str(age) + ",性别:" + str(sex) + ",地址:" + str(city))
enroll("jack", "12", "女")
enroll("to... | 21.505051 | 89 | 0.433067 | 277 | 2,129 | 3.277978 | 0.393502 | 0.039648 | 0.013216 | 0.013216 | 0.093612 | 0.093612 | 0.017621 | 0.017621 | 0 | 0 | 0 | 0.0346 | 0.171912 | 2,129 | 98 | 90 | 21.72449 | 0.480431 | 0.053077 | 0 | 0.040816 | 0 | 0 | 0.331166 | 0.21911 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163265 | false | 0 | 0 | 0 | 0.244898 | 0.346939 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a678285c4f556aef9e37708d80f7355ee16a552 | 6,955 | py | Python | CapitalGains.py | nsarathc/machinemove | 2453266bfe8f4f736314df496cd4f375af8fa0e6 | [
"MIT"
] | null | null | null | CapitalGains.py | nsarathc/machinemove | 2453266bfe8f4f736314df496cd4f375af8fa0e6 | [
"MIT"
] | null | null | null | CapitalGains.py | nsarathc/machinemove | 2453266bfe8f4f736314df496cd4f375af8fa0e6 | [
"MIT"
] | null | null | null | from collections import deque
from datetime import date
from prettytable import PrettyTable
import copy
import pdb
import csv
import pprint
import types
class Defaults(object):
UNIT_PRECISION = 4
AMOUNT_PRECISION = 2
PURCHASE = ('Purchase', 'Systematic Investment', 'Lateral Shift In')
REDEEM = ('Rede... | 36.994681 | 137 | 0.590798 | 598 | 6,955 | 6.747492 | 0.235786 | 0.048575 | 0.038166 | 0.052045 | 0.240397 | 0.234944 | 0.200496 | 0.165056 | 0.085254 | 0.036679 | 0 | 0.003579 | 0.317038 | 6,955 | 187 | 138 | 37.192513 | 0.845895 | 0 | 0 | 0.168919 | 0 | 0 | 0.04371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006757 | 0.054054 | null | null | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7a6be4dea6eddaf5c1bba12f312928d68933c103 | 427 | py | Python | nablapps/qrTickets/urls.py | pettaroni/nablaweb | 5e610698a276884b9cd779a718dfdee641713636 | [
"MIT"
] | null | null | null | nablapps/qrTickets/urls.py | pettaroni/nablaweb | 5e610698a276884b9cd779a718dfdee641713636 | [
"MIT"
] | null | null | null | nablapps/qrTickets/urls.py | pettaroni/nablaweb | 5e610698a276884b9cd779a718dfdee641713636 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from .views import *
urlpatterns = [
url(r'generate/$', GenerateTicketsView.as_view(), name='generate_tickets'),
url(r'register/(?P<qr_event_id>[0-9]+)/(?P<qr_ticket_id>[\w\-]+)/$', RegisterTicketsView.as_view(), name='register_tickets'),
url(r'render/(?P<qr_event_id>[0-9]... | 32.846154 | 129 | 0.651054 | 63 | 427 | 4.206349 | 0.428571 | 0.060377 | 0.075472 | 0.075472 | 0.181132 | 0.181132 | 0.181132 | 0.181132 | 0.181132 | 0.181132 | 0 | 0.010444 | 0.103045 | 427 | 12 | 130 | 35.583333 | 0.681462 | 0 | 0 | 0 | 1 | 0 | 0.414118 | 0.277647 | 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 | 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 |
7a71ad7455000eab68eab87ba6b0a40cc02855dd | 1,945 | py | Python | snoopdroid.py | Rafiot/viper-modules | 812642effecf8ae64bce76fa0f72116e0c2c81cd | [
"BSD-3-Clause"
] | 5 | 2019-12-20T09:42:41.000Z | 2021-04-30T07:05:00.000Z | snoopdroid.py | SubSpaceManeuvers/viper-modules | c8f19c6d4e0e976e2ad8730e0862c2250e3acdd5 | [
"BSD-3-Clause"
] | 7 | 2019-11-25T13:13:15.000Z | 2020-09-09T09:04:46.000Z | snoopdroid.py | SubSpaceManeuvers/viper-modules | c8f19c6d4e0e976e2ad8730e0862c2250e3acdd5 | [
"BSD-3-Clause"
] | 10 | 2019-11-20T04:57:51.000Z | 2021-01-21T18:51:47.000Z | # -*- coding: utf-8 -*-
# This file is part of Viper - https://github.com/viper-framework/viper
# See the file 'LICENSE' for copying permission.
from viper.common.abstracts import Module
from viper.core.project import __project__
try:
import snoopdroid
HAVE_SNOOPDROID = True
except ImportError:
HAVE_SNOOP... | 32.966102 | 159 | 0.63856 | 229 | 1,945 | 5.248908 | 0.432314 | 0.036606 | 0.032446 | 0.052413 | 0.063228 | 0.063228 | 0.063228 | 0.063228 | 0.063228 | 0 | 0 | 0.001362 | 0.245244 | 1,945 | 58 | 160 | 33.534483 | 0.817439 | 0.073522 | 0 | 0.181818 | 0 | 0 | 0.214246 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.340909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
7a71edafe291e892209cd2919962bd583f9a5aff | 989 | py | Python | accounts/templatetags/gravatar.py | bbengfort/ledger | f3b961be568d3a373228ee2ccf52afc7fb7ca9a8 | [
"MIT"
] | 1 | 2018-08-15T22:34:33.000Z | 2018-08-15T22:34:33.000Z | accounts/templatetags/gravatar.py | bbengfort/ledger | f3b961be568d3a373228ee2ccf52afc7fb7ca9a8 | [
"MIT"
] | 75 | 2018-05-07T21:13:27.000Z | 2021-09-22T17:45:20.000Z | accounts/templatetags/gravatar.py | bbengfort/ledger | f3b961be568d3a373228ee2ccf52afc7fb7ca9a8 | [
"MIT"
] | 2 | 2018-08-15T22:34:34.000Z | 2020-07-04T17:27:41.000Z | # accounts.templatetags.gravatar
# Helpers for user profile images
#
# Author: Benjamin Bengfort <benjamin@bengfort.com>
# Created: Sat Dec 28 15:58:52 2019 -0600
#
# ID: gravatar.py [] benjamin@bengfort.com $
"""
Helpers for user profile images.
TODO: move to profiles specific app when created.
"""
#############... | 29.088235 | 74 | 0.493428 | 97 | 989 | 5.010309 | 0.680412 | 0.098765 | 0.057613 | 0.08642 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026048 | 0.107179 | 989 | 34 | 75 | 29.088235 | 0.524349 | 0.308392 | 0 | 0 | 0 | 0.111111 | 0.175202 | 0.140162 | 0 | 0 | 0 | 0.029412 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a721920bd925414a5df38cda59f586b27264680 | 2,287 | py | Python | ansiprint.py | tebeka/pythonwise | 56f8cb7aa792c3ad6a3dc754e15f6a04890d694a | [
"BSD-3-Clause"
] | 21 | 2016-11-16T20:08:56.000Z | 2021-12-11T23:13:05.000Z | ansiprint.py | tebeka/pythonwise | 56f8cb7aa792c3ad6a3dc754e15f6a04890d694a | [
"BSD-3-Clause"
] | 1 | 2020-10-05T08:35:31.000Z | 2020-10-05T08:35:31.000Z | ansiprint.py | tebeka/pythonwise | 56f8cb7aa792c3ad6a3dc754e15f6a04890d694a | [
"BSD-3-Clause"
] | 8 | 2016-11-12T22:54:55.000Z | 2021-02-10T10:46:23.000Z | #!/usr/bin/env python
'''Print message using ANSI terminal codes'''
__author__ = "Miki Tebeka <miki@mikitebeka.com>"
from sys import stdout, stderr
# Format
bright = 1
dim = 2
underline = 4
blink = 5
reverse = 7
hidden = 8
# Forground
black = 30
red = 31
green = 32
yellow = 33
blue = 34
magenta = 35
cyan = 36
white... | 21.780952 | 77 | 0.548754 | 304 | 2,287 | 4.003289 | 0.401316 | 0.028759 | 0.024651 | 0.011504 | 0.087099 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033544 | 0.309139 | 2,287 | 104 | 78 | 21.990385 | 0.736709 | 0.020988 | 0 | 0.052632 | 0 | 0 | 0.163 | 0.0105 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039474 | null | null | 0.131579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7a7644903e5ac568f977e79fddaad4768143f91b | 1,505 | py | Python | vmanage/cli/show/omp.py | weiborao/python-viptela | b89c80bb096b668cf6b01398880c4db90fb2a0a1 | [
"BSD-Source-Code"
] | 1 | 2019-11-22T11:15:41.000Z | 2019-11-22T11:15:41.000Z | vmanage/cli/show/omp.py | weiborao/python-viptela | b89c80bb096b668cf6b01398880c4db90fb2a0a1 | [
"BSD-Source-Code"
] | null | null | null | vmanage/cli/show/omp.py | weiborao/python-viptela | b89c80bb096b668cf6b01398880c4db90fb2a0a1 | [
"BSD-Source-Code"
] | null | null | null | import click
import pprint
import ipaddress
@click.command()
@click.argument('device', required=True)
@click.option('--json/--no-json', default=False)
@click.pass_context
def peers(ctx, device, json):
"""
Show OMP peer information
"""
vmanage_session = ctx.obj
# Check to see if we were passed in... | 28.942308 | 167 | 0.53887 | 187 | 1,505 | 4.224599 | 0.417112 | 0.060759 | 0.040506 | 0.048101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009183 | 0.276412 | 1,505 | 51 | 168 | 29.509804 | 0.716253 | 0.078405 | 0 | 0.166667 | 0 | 0.027778 | 0.297417 | 0.095941 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.083333 | 0.083333 | 0 | 0.138889 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7a7b7db31bfeadfa6c06a13c3d936ded5ab6ce91 | 1,301 | py | Python | tests/test_wd.py | alliance-genome/ontobio | 0ec3aa6fea9d4492a9873a4b9b394c4866f741b6 | [
"BSD-3-Clause"
] | 101 | 2017-04-19T20:54:49.000Z | 2022-03-14T02:32:11.000Z | tests/test_wd.py | alliance-genome/ontobio | 0ec3aa6fea9d4492a9873a4b9b394c4866f741b6 | [
"BSD-3-Clause"
] | 402 | 2017-04-24T19:53:12.000Z | 2022-03-31T20:27:59.000Z | tests/test_wd.py | alliance-genome/ontobio | 0ec3aa6fea9d4492a9873a4b9b394c4866f741b6 | [
"BSD-3-Clause"
] | 30 | 2017-04-20T17:59:12.000Z | 2022-02-25T22:26:08.000Z | from ontobio.ontol_factory import OntologyFactory
from ontobio.assoc_factory import AssociationSetFactory
from ontobio.assocmodel import AssociationSet
import ontobio.sparql.wikidata as wd
import logging
PTSD = 'DOID:2055'
def test_wd_sparql_ptsd():
"""
TODO
test using PTSD
"""
xrefs = wd.fetchal... | 28.911111 | 86 | 0.611837 | 148 | 1,301 | 5.290541 | 0.506757 | 0.042146 | 0.015326 | 0.03576 | 0.048531 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013361 | 0.252114 | 1,301 | 44 | 87 | 29.568182 | 0.791367 | 0.016141 | 0 | 0.066667 | 0 | 0 | 0.103968 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.033333 | false | 0 | 0.166667 | 0 | 0.2 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a8792b36e4c99fe98e410799fcf6de051c63066 | 510 | py | Python | zombie/compat.py | timgates42/python-zombie | 638916572d8ee5ebbdb2dcfc5000a952e99f280f | [
"MIT"
] | 28 | 2015-01-13T21:46:49.000Z | 2022-01-25T06:11:17.000Z | zombie/compat.py | GwG422/python-zombie | 638916572d8ee5ebbdb2dcfc5000a952e99f280f | [
"MIT"
] | 4 | 2015-01-19T19:35:01.000Z | 2022-02-28T15:50:52.000Z | zombie/compat.py | GwG422/python-zombie | 638916572d8ee5ebbdb2dcfc5000a952e99f280f | [
"MIT"
] | 9 | 2015-01-26T05:30:44.000Z | 2021-12-24T23:46:58.000Z | import sys
# True if we are running on Python 3.
PY3 = sys.version_info[0] == 3
PY26 = sys.version_info[0] == 2 and sys.version_info[1] == 6
if PY3:
from io import BytesIO as StringIO
from urllib.parse import urlparse
else:
from urlparse import urlparse # noqa
from cStringIO import StringIO # noqa
... | 21.25 | 60 | 0.688235 | 80 | 510 | 4.325 | 0.525 | 0.086705 | 0.121387 | 0.086705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041026 | 0.235294 | 510 | 23 | 61 | 22.173913 | 0.846154 | 0.088235 | 0 | 0.277778 | 0 | 0 | 0.010846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.388889 | 0.055556 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7a890e2985671bd7137a00bb3470b972657f8e94 | 23,335 | py | Python | o365_ip_url_automation.py | f5devcentral/f5-office365-ip-url-automation | bfa9571245a0a15499fa4d74d59307c6fc176875 | [
"Apache-2.0"
] | 1 | 2020-01-22T17:14:28.000Z | 2020-01-22T17:14:28.000Z | o365_ip_url_automation.py | f5devcentral/f5-office365-ip-url-automation | bfa9571245a0a15499fa4d74d59307c6fc176875 | [
"Apache-2.0"
] | null | null | null | o365_ip_url_automation.py | f5devcentral/f5-office365-ip-url-automation | bfa9571245a0a15499fa4d74d59307c6fc176875 | [
"Apache-2.0"
] | 1 | 2021-12-11T10:09:46.000Z | 2021-12-11T10:09:46.000Z | #!/bin/python
# -*- coding: utf-8 -*-
# Office 365 IP Address and URL Web Service Automation for BIG-IP
# https://docs.microsoft.com/en-us/Office365/Enterprise/office-365-ip-web-service
# Version: 1.07
# Last Modified: 16th July 2020
# Original author: Makoto Omura, F5 Networks Japan G.K.
#
# v1.05: Updated for SSL Orc... | 49.126316 | 195 | 0.55676 | 2,857 | 23,335 | 4.369268 | 0.152258 | 0.037491 | 0.031242 | 0.015381 | 0.535769 | 0.46351 | 0.416006 | 0.37531 | 0.348955 | 0.335977 | 0 | 0.030595 | 0.233812 | 23,335 | 474 | 196 | 49.229958 | 0.667431 | 0.380459 | 0 | 0.254826 | 0 | 0.003861 | 0.26614 | 0.017696 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007722 | false | 0.061776 | 0.03861 | 0 | 0.050193 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7a8b929775db4b56ff1eaef7cb70b4f466275da2 | 798 | py | Python | gscripts/general/normalize_bedGraph.py | YeoLab/gscripts | ae653d29d0ce82d342f7f6ff5bbeedd27a2e062b | [
"MIT"
] | 12 | 2015-07-10T09:36:49.000Z | 2021-07-06T03:25:04.000Z | gscripts/general/normalize_bedGraph.py | YeoLab/gscripts | ae653d29d0ce82d342f7f6ff5bbeedd27a2e062b | [
"MIT"
] | 43 | 2015-01-21T20:01:38.000Z | 2021-04-13T17:50:38.000Z | gscripts/general/normalize_bedGraph.py | YeoLab/gscripts | ae653d29d0ce82d342f7f6ff5bbeedd27a2e062b | [
"MIT"
] | 19 | 2015-05-02T09:33:17.000Z | 2022-02-12T17:08:06.000Z | #!/usr/bin/python
'''
Created on Jan 10, 2014
@author: gpratt
Used for normalizing a wiggle file by the total number of reads in a dataset
'''
import argparse
import pysam
parser = argparse.ArgumentParser(description="""Takes a bedgraph and an indexed bam file and normalized bedgraph by number of reads in bam file... | 29.555556 | 149 | 0.715539 | 121 | 798 | 4.677686 | 0.545455 | 0.037102 | 0.045936 | 0.053004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022523 | 0.165414 | 798 | 26 | 150 | 30.692308 | 0.827327 | 0.02005 | 0 | 0 | 0 | 0.071429 | 0.305344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a8c29fd91aee09c1c0e80978108cb53e5751754 | 716 | py | Python | active_learning_ts/query_selection/query_optimizers/max_entropy_query_optimizer.py | hassberg/active_learning_ts | 7ebdabd3349d3ac4ea2761a8aa869b8d222a2d83 | [
"MIT"
] | 1 | 2022-02-14T09:38:22.000Z | 2022-02-14T09:38:22.000Z | active_learning_ts/query_selection/query_optimizers/max_entropy_query_optimizer.py | hassberg/active_learning_ts | 7ebdabd3349d3ac4ea2761a8aa869b8d222a2d83 | [
"MIT"
] | 1 | 2022-02-11T12:13:31.000Z | 2022-02-11T12:13:31.000Z | active_learning_ts/query_selection/query_optimizers/max_entropy_query_optimizer.py | hassberg/active_learning_ts | 7ebdabd3349d3ac4ea2761a8aa869b8d222a2d83 | [
"MIT"
] | 2 | 2021-12-15T12:56:30.000Z | 2022-02-01T15:31:08.000Z | import tensorflow as tf
from active_learning_ts.query_selection.query_optimizer import QueryOptimizer
from active_learning_ts.query_selection.query_optimizers.generic_max_query_optimizer import GenericMaximumQueryOptimizer
class MaximumEntropyQueryOptimizer(QueryOptimizer):
"""
Selects the best queries from ... | 37.684211 | 120 | 0.702514 | 76 | 716 | 6.276316 | 0.526316 | 0.1174 | 0.075472 | 0.083857 | 0.163522 | 0.163522 | 0.163522 | 0 | 0 | 0 | 0 | 0.003656 | 0.236034 | 716 | 18 | 121 | 39.777778 | 0.868373 | 0.060056 | 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 |
7a9267c508d9034cce83fd3beadc7a328f96f9b5 | 680 | py | Python | pythondesafios/desafio075.py | matheus-rosario/curso-python | ac9ccf7fc4b3f708821e44787a1bdc231d9426ac | [
"MIT"
] | null | null | null | pythondesafios/desafio075.py | matheus-rosario/curso-python | ac9ccf7fc4b3f708821e44787a1bdc231d9426ac | [
"MIT"
] | null | null | null | pythondesafios/desafio075.py | matheus-rosario/curso-python | ac9ccf7fc4b3f708821e44787a1bdc231d9426ac | [
"MIT"
] | null | null | null | #Desenvolva um programa que leia quatro valores pelo teclado e guarde-os em uma tupla. No final, mostre:
#A) Quantas vezes apareceu o valor 9.
#B) Em que posição foi digitado o primeiro valor 3.
#C) Quais foram os números pares.
números = (int(input('Primeiro número: ')), int(input('Segundo número: ')), int(input('Terc... | 48.571429 | 139 | 0.694118 | 112 | 680 | 4.223214 | 0.544643 | 0.067653 | 0.088795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017668 | 0.167647 | 680 | 14 | 140 | 48.571429 | 0.816254 | 0.325 | 0 | 0 | 0 | 0 | 0.52193 | 0.046053 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7aa0246dd5e3dee5d630ca3a47ea9af2540e5d1a | 3,103 | py | Python | requests_f5auth/xf5_auth.py | imecimore/requests-f5auth | ec354b08c4221447e1a404b07260bdb8928b1830 | [
"0BSD"
] | null | null | null | requests_f5auth/xf5_auth.py | imecimore/requests-f5auth | ec354b08c4221447e1a404b07260bdb8928b1830 | [
"0BSD"
] | null | null | null | requests_f5auth/xf5_auth.py | imecimore/requests-f5auth | ec354b08c4221447e1a404b07260bdb8928b1830 | [
"0BSD"
] | null | null | null | # -*- coding: utf-8 -*-
try:
from urlparse import urlparse
except ImportError:
from urllib.parse import urlparse
import logging
import time
from requests.auth import AuthBase
from .utils import (f5_login, f5_exchange_token)
from .exceptions import F5AuthenticationError
log = logging.getLogger(__name... | 32.322917 | 104 | 0.643571 | 369 | 3,103 | 5.165312 | 0.308943 | 0.080797 | 0.055089 | 0.03148 | 0.134313 | 0.087093 | 0.027282 | 0 | 0 | 0 | 0 | 0.014305 | 0.279085 | 3,103 | 95 | 105 | 32.663158 | 0.837729 | 0.121495 | 0 | 0.047619 | 0 | 0 | 0.065041 | 0.015891 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079365 | false | 0.079365 | 0.126984 | 0.047619 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7aa45575c2acb62950152d8610998047851ba23c | 2,309 | py | Python | main_abbyy.py | sgino209/cloudOCR | 2b5fe9815eede07ca0bd786a665b3dfd7f2a47d1 | [
"Apache-2.0"
] | null | null | null | main_abbyy.py | sgino209/cloudOCR | 2b5fe9815eede07ca0bd786a665b3dfd7f2a47d1 | [
"Apache-2.0"
] | null | null | null | main_abbyy.py | sgino209/cloudOCR | 2b5fe9815eede07ca0bd786a665b3dfd7f2a47d1 | [
"Apache-2.0"
] | null | null | null | from sys import stdout
from os import path
from AbbyyOnlineSdk import *
# Recognize a file at filePath and save result to resultFilePath
def recognizeFile(processor, filePath, resultFilePath, language, outputFormat):
prediction = {}
print "Uploading.."
settings = ProcessingSettings()
settings.Languag... | 32.521127 | 97 | 0.679082 | 266 | 2,309 | 5.87218 | 0.477444 | 0.011524 | 0.015365 | 0.020487 | 0.028169 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00114 | 0.240364 | 2,309 | 70 | 98 | 32.985714 | 0.889396 | 0.252923 | 0 | 0.2 | 0 | 0 | 0.131272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022222 | 0.066667 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7aa8b13bfa0291518b2ab3d19d66654d146d3aa4 | 3,489 | py | Python | TestZernikePoly.py | sunabove/Zernike | 91f9868de75fde18eff81858b765819a27067644 | [
"MIT"
] | null | null | null | TestZernikePoly.py | sunabove/Zernike | 91f9868de75fde18eff81858b765819a27067644 | [
"MIT"
] | null | null | null | TestZernikePoly.py | sunabove/Zernike | 91f9868de75fde18eff81858b765819a27067644 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from Zernike import *
import matplotlib.pyplot as plt
def np_analytic_polynomial(x, n, m ):
y = np.array( [ analytic_polynomial(n, m, rho) for rho in x ] )
return y
pass # -- np_analytic_polynomial
def analytic_polynomial(n, m, rho):
m = abs( m )
R =... | 25.844444 | 98 | 0.364861 | 486 | 3,489 | 2.534979 | 0.230453 | 0.060877 | 0.043831 | 0.024351 | 0.171266 | 0.075487 | 0.038961 | 0 | 0 | 0 | 0 | 0.110689 | 0.471768 | 3,489 | 135 | 99 | 25.844444 | 0.557786 | 0.026655 | 0 | 0.311321 | 0 | 0 | 0.0393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0.122642 | 0.018868 | 0 | 0.056604 | 0.009434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7aac3b28485cd7f45c1b48031364808add91ceb7 | 912 | py | Python | opencolorio_config_aces/config/reference/__init__.py | michdolan/OpenColorIO-Config-ACES | 5216c2a184e03529557993b7dc670d351aadddc7 | [
"BSD-3-Clause"
] | null | null | null | opencolorio_config_aces/config/reference/__init__.py | michdolan/OpenColorIO-Config-ACES | 5216c2a184e03529557993b7dc670d351aadddc7 | [
"BSD-3-Clause"
] | null | null | null | opencolorio_config_aces/config/reference/__init__.py | michdolan/OpenColorIO-Config-ACES | 5216c2a184e03529557993b7dc670d351aadddc7 | [
"BSD-3-Clause"
] | null | null | null | # SPDX-License-Identifier: BSD-3-Clause
# Copyright Contributors to the OpenColorIO Project.
from .discover import (
discover_aces_ctl_transforms,
classify_aces_ctl_transforms,
unclassify_ctl_transforms,
filter_ctl_transforms,
print_aces_taxonomy,
build_aces_conversion_graph,
node_to_ctl_tr... | 27.636364 | 70 | 0.770833 | 102 | 912 | 6.264706 | 0.343137 | 0.162754 | 0.106416 | 0.078247 | 0.679186 | 0.679186 | 0.679186 | 0.679186 | 0.679186 | 0.679186 | 0 | 0.001295 | 0.153509 | 912 | 32 | 71 | 28.5 | 0.826425 | 0.096491 | 0 | 0 | 0 | 0 | 0.35201 | 0.27162 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7aadf0d503d46b5b56e0e06b38a9157ae0453a75 | 454 | py | Python | ghostwriter/reporting/migrations/0004_report_delivered.py | bbhunter/Ghostwriter | 1b684ddd119feed9891e83b39c9b314b41d086ca | [
"BSD-3-Clause"
] | 601 | 2019-07-30T17:06:37.000Z | 2022-03-31T00:55:31.000Z | ghostwriter/reporting/migrations/0004_report_delivered.py | chrismaddalena/Ghostwriter | 5a938358450cd0e69a42883b1b18e067644744a8 | [
"BSD-3-Clause"
] | 150 | 2019-08-01T07:20:22.000Z | 2022-03-29T19:18:02.000Z | ghostwriter/reporting/migrations/0004_report_delivered.py | chrismaddalena/Ghostwriter | 5a938358450cd0e69a42883b1b18e067644744a8 | [
"BSD-3-Clause"
] | 126 | 2019-07-30T17:42:49.000Z | 2022-03-21T20:43:35.000Z | # Generated by Django 2.2.3 on 2019-08-27 18:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reporting', '0003_findingnote'),
]
operations = [
migrations.AddField(
model_name='report',
name='delivered',
... | 23.894737 | 122 | 0.627753 | 49 | 454 | 5.734694 | 0.795918 | 0.092527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05638 | 0.257709 | 454 | 18 | 123 | 25.222222 | 0.777448 | 0.099119 | 0 | 0 | 1 | 0 | 0.191646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7aae3fda5635392c4cd041c8892516745aeaa0ce | 375 | py | Python | soluciones/problema25.py | hernan-erasmo/project-euler | d68aa90c5fe2bf733bec54af5a786a2c144783bc | [
"Unlicense"
] | null | null | null | soluciones/problema25.py | hernan-erasmo/project-euler | d68aa90c5fe2bf733bec54af5a786a2c144783bc | [
"Unlicense"
] | null | null | null | soluciones/problema25.py | hernan-erasmo/project-euler | d68aa90c5fe2bf733bec54af5a786a2c144783bc | [
"Unlicense"
] | null | null | null | def main():
fib_inicial = [1,1] #Primeros dos numeros de la secuencia de Fibonacci
lista = fib_inicial
tope = 10**999
for n in itertools.count(start=1,step=1):
lista.append(lista[0]+lista[1])
del(lista[0])
if (lista[0] >= tope) or (lista[1] >= tope):
break
print "La respuesta es", n + len(fib_inicial)... | 20.833333 | 72 | 0.664 | 61 | 375 | 3.901639 | 0.57377 | 0.12605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045752 | 0.184 | 375 | 17 | 73 | 22.058824 | 0.732026 | 0.130667 | 0 | 0 | 0 | 0 | 0.070769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7aafb7e8cdca00edb7c91ed32d34649f7297e0e4 | 656 | py | Python | Commands/reimport.py | hanss314/TheBrainOfTWOWCentral | a97d40ebb73904f236d7b3db6ec9f8c3fe999f4e | [
"MIT"
] | null | null | null | Commands/reimport.py | hanss314/TheBrainOfTWOWCentral | a97d40ebb73904f236d7b3db6ec9f8c3fe999f4e | [
"MIT"
] | null | null | null | Commands/reimport.py | hanss314/TheBrainOfTWOWCentral | a97d40ebb73904f236d7b3db6ec9f8c3fe999f4e | [
"MIT"
] | null | null | null | from Config._const import PREFIX
import time
HELP = {
"COOLDOWN": 10,
"MAIN": "Reimports the commands, updating command code without needing to restart",
"FORMAT": "",
"CHANNEL": 2,
"USAGE": f"""Using `{PREFIX}reimport` will trigger a command reimport.
It'll report the time it took to import the commands.""".re... | 32.8 | 105 | 0.692073 | 92 | 656 | 4.913043 | 0.663043 | 0.048673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008945 | 0.147866 | 656 | 20 | 106 | 32.8 | 0.799642 | 0.047256 | 0 | 0 | 0 | 0.058824 | 0.539326 | 0.033708 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.411765 | 0 | 0.470588 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7ac102df02edc0e324d49a72d865ee42d9929bba | 2,770 | py | Python | botRanger.py | Greeser/chat_wars_bots | 8f42541474b91df77f408ad7a10fb65d8a573a12 | [
"MIT"
] | null | null | null | botRanger.py | Greeser/chat_wars_bots | 8f42541474b91df77f408ad7a10fb65d8a573a12 | [
"MIT"
] | 9 | 2020-03-24T16:58:44.000Z | 2022-03-11T23:46:17.000Z | botRanger.py | Greeser/chat_wars_bots | 8f42541474b91df77f408ad7a10fb65d8a573a12 | [
"MIT"
] | null | null | null | import time
import telethon.sync
from telethon import TelegramClient, events
from telethon.tl.types import PeerUser, PeerChat, PeerChannel
import asyncio
import datetime
import random
import argparse
# sample API_ID from https://github.com/telegramdesktop/tdesktop/blob/f98fdeab3fb2ba6f55daf8481595f879729d1b84/Telegram... | 31.83908 | 145 | 0.679061 | 367 | 2,770 | 4.945504 | 0.416894 | 0.054545 | 0.053994 | 0.069421 | 0.208815 | 0.208815 | 0.179063 | 0.179063 | 0.13719 | 0 | 0 | 0.030014 | 0.206137 | 2,770 | 86 | 146 | 32.209302 | 0.78945 | 0.094224 | 0 | 0.031746 | 0 | 0 | 0.081796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.031746 | 0.126984 | null | null | 0.079365 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8f85e278a0a89ee002a30663a1fe06227de47f37 | 1,356 | py | Python | lcd_ticker.py | zimolzak/Raspberry-Pi-newbie | 0efec1c8da758226a94d8ee1a6f791ca7e008787 | [
"MIT"
] | null | null | null | lcd_ticker.py | zimolzak/Raspberry-Pi-newbie | 0efec1c8da758226a94d8ee1a6f791ca7e008787 | [
"MIT"
] | null | null | null | lcd_ticker.py | zimolzak/Raspberry-Pi-newbie | 0efec1c8da758226a94d8ee1a6f791ca7e008787 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Display stock quotes on LCD"""
import ystockquote as y
from lcd import lcd_string, tn
symbols = ['^IXIC', 'YMH16.CBT', 'YHOO', 'AAPL', 'MSFT', 'F', 'T', 'KO',
'GOOG', 'SYK', 'DIS', 'GM',
'GE', 'BAC', 'IBM', 'C', 'AMZN', 'AET', 'DOW', 'INTC', 'PFE',
'MRK', 'RT... | 27.12 | 78 | 0.49705 | 169 | 1,356 | 3.87574 | 0.585799 | 0.146565 | 0.067176 | 0.042748 | 0.079389 | 0.079389 | 0.079389 | 0 | 0 | 0 | 0 | 0.027601 | 0.30531 | 1,356 | 49 | 79 | 27.673469 | 0.667728 | 0.014749 | 0 | 0.309524 | 0 | 0 | 0.165131 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f87a17d5ceb0c7a487211c77ba6a49a6f1d4fc7 | 1,946 | py | Python | backend/apps/projects/models.py | skiv23/portfolio | 3c1a7b0cf0fb67148ce4b0491132e3a01375c9b0 | [
"MIT"
] | null | null | null | backend/apps/projects/models.py | skiv23/portfolio | 3c1a7b0cf0fb67148ce4b0491132e3a01375c9b0 | [
"MIT"
] | null | null | null | backend/apps/projects/models.py | skiv23/portfolio | 3c1a7b0cf0fb67148ce4b0491132e3a01375c9b0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.core.files.temp import NamedTemporaryFile
from django.core.files import File
from django.db import models
from django.utils.translation import ugettext_lazy as _
from apps.about.models import Skill
from .thumbnail import Thumbnail
class Project(models.Model):
name = models.Ch... | 34.140351 | 116 | 0.681398 | 228 | 1,946 | 5.578947 | 0.350877 | 0.084906 | 0.042453 | 0.063679 | 0.077044 | 0.077044 | 0.077044 | 0.077044 | 0.077044 | 0.077044 | 0 | 0.002569 | 0.199897 | 1,946 | 56 | 117 | 34.75 | 0.814387 | 0.010791 | 0 | 0.142857 | 0 | 0 | 0.048362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.071429 | 0.595238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8f8c8397a75e36581ea4468c87e0d3ec4fbe334e | 166 | py | Python | confab/tests/data/autotasks/settings.py | locationlabs/confab | a39c3d7aae11b2f373b8911b4f3caa75548a00c6 | [
"Apache-2.0"
] | 3 | 2015-01-23T09:39:25.000Z | 2022-02-25T15:47:26.000Z | confab/tests/data/autotasks/settings.py | locationlabs/confab | a39c3d7aae11b2f373b8911b4f3caa75548a00c6 | [
"Apache-2.0"
] | null | null | null | confab/tests/data/autotasks/settings.py | locationlabs/confab | a39c3d7aae11b2f373b8911b4f3caa75548a00c6 | [
"Apache-2.0"
] | 1 | 2021-09-08T09:52:11.000Z | 2021-09-08T09:52:11.000Z | environmentdefs = {
"local": ["localhost"],
"other": ["localhost"]
}
roledefs = {
"role": ["localhost"]
}
componentdefs = {
"role": ["component"]
}
| 12.769231 | 27 | 0.542169 | 11 | 166 | 8.181818 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228916 | 166 | 12 | 28 | 13.833333 | 0.703125 | 0 | 0 | 0 | 0 | 0 | 0.325301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f8fdef99f610781464281193bab9a495f544efd | 3,479 | py | Python | instagram/migrations/0001_initial.py | casio-ka/insta | 2b58d1aaa99aa269b5d93f1e2cbcda175a76ebc3 | [
"MIT"
] | null | null | null | instagram/migrations/0001_initial.py | casio-ka/insta | 2b58d1aaa99aa269b5d93f1e2cbcda175a76ebc3 | [
"MIT"
] | null | null | null | instagram/migrations/0001_initial.py | casio-ka/insta | 2b58d1aaa99aa269b5d93f1e2cbcda175a76ebc3 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-10-28 20:29
import cloudinary.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'... | 46.386667 | 143 | 0.594136 | 355 | 3,479 | 5.661972 | 0.261972 | 0.044776 | 0.048756 | 0.076617 | 0.624876 | 0.563682 | 0.500498 | 0.48209 | 0.443284 | 0.443284 | 0 | 0.016777 | 0.263294 | 3,479 | 74 | 144 | 47.013514 | 0.76746 | 0.012935 | 0 | 0.38806 | 1 | 0 | 0.101981 | 0.010781 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.059701 | 0 | 0.119403 | 0 | 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 |
8f90f50710e24e3e4e4379f52d0335baf13ee6bb | 577 | py | Python | saleor/webhook/migrations/0003_unmount_service_account.py | angeles-ricardo-89/saleor | 5fab7a883d025bff83320fbdd557ed7afa2923a9 | [
"BSD-3-Clause"
] | 4 | 2021-03-27T16:38:48.000Z | 2021-10-18T12:54:15.000Z | saleor/webhook/migrations/0003_unmount_service_account.py | DuongHieuMAI/saleor | e20b6283182f3a2886fe36fcdef8e47e4fcf7a14 | [
"CC-BY-4.0"
] | 13 | 2021-03-19T02:54:47.000Z | 2022-03-12T00:36:26.000Z | saleor/webhook/migrations/0003_unmount_service_account.py | DuongHieuMAI/saleor | e20b6283182f3a2886fe36fcdef8e47e4fcf7a14 | [
"CC-BY-4.0"
] | 12 | 2019-03-21T03:24:58.000Z | 2022-01-13T10:55:34.000Z | # Generated by Django 3.0.5 on 2020-04-16 06:01
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("webhook", "0002_webhook_name"),
("account", "0043_rename_service_account_to_app"),
]
state_operations = [
migrations.RemoveField(model_name=... | 25.086957 | 79 | 0.660312 | 61 | 577 | 6 | 0.590164 | 0.122951 | 0.087432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051225 | 0.221837 | 577 | 22 | 80 | 26.227273 | 0.76392 | 0.07799 | 0 | 0 | 1 | 0 | 0.188679 | 0.064151 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f9162eaf5e37247876ff4ab1dccc8c0dc433b99 | 856 | py | Python | database/query/query_user.py | EderReisS/API-python-SQL | 3a80c4d96a8218eacb7c6fabbf3563e311c3966c | [
"MIT"
] | null | null | null | database/query/query_user.py | EderReisS/API-python-SQL | 3a80c4d96a8218eacb7c6fabbf3563e311c3966c | [
"MIT"
] | null | null | null | database/query/query_user.py | EderReisS/API-python-SQL | 3a80c4d96a8218eacb7c6fabbf3563e311c3966c | [
"MIT"
] | null | null | null | class QueryUser:
CREATE_TABLE_USERS: str = """
CREATE TABLE IF NOT EXISTS users (
user_id INTEGER PRIMARY KEY NOT NULL,
name TEXT NOT NULL,
email TEXT NOT NULL,
phone TEXT NOT NULL,
address TEXT NOT NULL,
country TEX... | 26.75 | 94 | 0.525701 | 98 | 856 | 4.408163 | 0.336735 | 0.097222 | 0.127315 | 0.076389 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.358645 | 856 | 32 | 95 | 26.75 | 0.786885 | 0 | 0 | 0.222222 | 0 | 0.037037 | 0.711785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f935b00d44283440d3bac551a5d403166215753 | 10,989 | py | Python | Aeneas/aeneas/aeneas/logger.py | yalhaizaey/Dreich | 9528856c3879d4c9d3ced453f223785a71188808 | [
"Apache-2.0"
] | 25 | 2019-05-09T19:03:37.000Z | 2022-02-06T20:47:37.000Z | Experiments/Aeneas/aeneas/aeneas/logger.py | jonathanmcchesney/DeFog | bc314d41471d00b9d605bb4519f31a465e0a6b75 | [
"Apache-2.0"
] | null | null | null | Experiments/Aeneas/aeneas/aeneas/logger.py | jonathanmcchesney/DeFog | bc314d41471d00b9d605bb4519f31a465e0a6b75 | [
"Apache-2.0"
] | 9 | 2019-08-19T19:00:41.000Z | 2021-12-09T04:46:07.000Z | #!/usr/bin/env python
# coding=utf-8
# aeneas is a Python/C library and a set of tools
# to automagically synchronize audio and text (aka forced alignment)
#
# Copyright (C) 2012-2013, Alberto Pettarin (www.albertopettarin.it)
# Copyright (C) 2013-2015, ReadBeyond Srl (www.readbeyond.it)
# Copyright (C) 2015-2017, A... | 28.322165 | 94 | 0.599054 | 1,314 | 10,989 | 4.895738 | 0.180365 | 0.039173 | 0.032644 | 0.022851 | 0.341209 | 0.250427 | 0.212498 | 0.170216 | 0.103529 | 0.103529 | 0 | 0.00433 | 0.306397 | 10,989 | 387 | 95 | 28.395349 | 0.839675 | 0.38675 | 0 | 0.21118 | 0 | 0 | 0.034245 | 0.003707 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.037267 | 0.024845 | 0.459627 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f96a2fc5f17e241166f19a97b256a75e60cd225 | 9,050 | py | Python | PythonReference.py | fireheadmx/ProjectEuler | 4a62fa140d6e76398a81cfc0e20c5dad7228f44f | [
"MIT"
] | null | null | null | PythonReference.py | fireheadmx/ProjectEuler | 4a62fa140d6e76398a81cfc0e20c5dad7228f44f | [
"MIT"
] | null | null | null | PythonReference.py | fireheadmx/ProjectEuler | 4a62fa140d6e76398a81cfc0e20c5dad7228f44f | [
"MIT"
] | null | null | null | #** Python **
# ZEN OF PYTHON
# Beautiful is better than ugly.
# Explicit is better than implicit.
# Simple is better than complex.
# Complex is better than complicated.
# Flat is better than nested.
# Sparse is better than dense.
# Readability counts.
# Special cases aren't special enough to break the rules.
# Althou... | 25.27933 | 260 | 0.682431 | 1,339 | 9,050 | 4.567588 | 0.378641 | 0.01308 | 0.013734 | 0.005396 | 0.067037 | 0.027796 | 0.011772 | 0 | 0 | 0 | 0 | 0.017653 | 0.18 | 9,050 | 357 | 261 | 25.35014 | 0.806091 | 0 | 0 | 0.135747 | 0 | 0 | 0.074336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.0181 | 0.063348 | null | null | 0.113122 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8f9e856ab0e59ea3e41151fe102e49c8e0b7c0c6 | 960 | py | Python | clinic_app/migrations/0008_prescription.py | ngetichnicholas/Meds | 2dd2b649ea216f76b2d316dac0591a01d2c836bf | [
"MIT"
] | 1 | 2021-07-31T07:59:32.000Z | 2021-07-31T07:59:32.000Z | clinic_app/migrations/0008_prescription.py | ngetichnicholas/Meds | 2dd2b649ea216f76b2d316dac0591a01d2c836bf | [
"MIT"
] | null | null | null | clinic_app/migrations/0008_prescription.py | ngetichnicholas/Meds | 2dd2b649ea216f76b2d316dac0591a01d2c836bf | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-27 13:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('clinic_app', '0007_medicine'),
]
operations = [
migrations.CreateModel(
name='Prescription',
... | 36.923077 | 126 | 0.622917 | 104 | 960 | 5.625 | 0.519231 | 0.068376 | 0.095727 | 0.150427 | 0.328205 | 0.328205 | 0.328205 | 0.328205 | 0.328205 | 0.328205 | 0 | 0.025921 | 0.236458 | 960 | 25 | 127 | 38.4 | 0.772169 | 0.046875 | 0 | 0 | 1 | 0 | 0.141292 | 0.026287 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8faa28a3b881f792b89ea2704b09e35cf79fa508 | 3,504 | py | Python | toy/run.py | pseyfert/transfer-learning | 3c56bb98c96eed17efbd687cea78a035f8a95694 | [
"MIT"
] | 1 | 2016-07-07T16:43:35.000Z | 2016-07-07T16:43:35.000Z | toy/run.py | pseyfert/transfer-learning | 3c56bb98c96eed17efbd687cea78a035f8a95694 | [
"MIT"
] | null | null | null | toy/run.py | pseyfert/transfer-learning | 3c56bb98c96eed17efbd687cea78a035f8a95694 | [
"MIT"
] | null | null | null | niter = 9000
grl = True
normalise = True # False = output between -.5 and .5; True = mean 0. and RMS = 1.
from ROOT import TChain, TTree, TH1F
import numpy as np
from numpy import array
import h5py
import sys
import pickle
from progressbar import ProgressBar
import matplotlib.pyplot as plt
plt.ion()
import numpy
def... | 33.371429 | 92 | 0.573345 | 484 | 3,504 | 4.090909 | 0.262397 | 0.063636 | 0.075758 | 0.051515 | 0.309596 | 0.236364 | 0.155556 | 0.117172 | 0.117172 | 0.072727 | 0 | 0.049187 | 0.263128 | 3,504 | 104 | 93 | 33.692308 | 0.717661 | 0.054509 | 0 | 0.060241 | 0 | 0 | 0.055354 | 0.016939 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.13253 | null | null | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8fac438c3dae4f91ebce44d34b53c9f177c6f5a6 | 1,054 | py | Python | config.py | hyu9999/paper_trading | 7383eba9a68c7f49c6cf515c56fdc9bbe12f8306 | [
"MIT"
] | 34 | 2019-09-24T05:26:33.000Z | 2022-03-31T03:01:12.000Z | config.py | hyu9999/paper_trading | 7383eba9a68c7f49c6cf515c56fdc9bbe12f8306 | [
"MIT"
] | 8 | 2019-09-25T03:18:27.000Z | 2020-05-12T03:10:42.000Z | config.py | hyu9999/paper_trading | 7383eba9a68c7f49c6cf515c56fdc9bbe12f8306 | [
"MIT"
] | 17 | 2020-02-21T14:11:38.000Z | 2022-02-10T02:20:33.000Z | import os
from paper_trading.utility.constant import ConfigType
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
DEBUG = False
SECRET_KEY = os.environ.get('SECRET_KEY') or "j1as78a1gf6a4ea1f5d6a78e41fa56e"
@staticmethod
def init_app(app):
pass
class TradingConfig(Config):
... | 22.425532 | 82 | 0.685958 | 130 | 1,054 | 5.315385 | 0.392308 | 0.026049 | 0.026049 | 0.073806 | 0.324168 | 0.324168 | 0.324168 | 0.324168 | 0.324168 | 0.324168 | 0 | 0.077016 | 0.211575 | 1,054 | 47 | 83 | 22.425532 | 0.754513 | 0 | 0 | 0.432432 | 0 | 0 | 0.088152 | 0.029384 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0.027027 | 0.054054 | 0 | 0.756757 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8fb00b2598e6025dc25c1876ffe0d3bf798a97b6 | 887 | py | Python | test/mc_init_inherited_test.py | lechat/multiconf | c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3 | [
"BSD-3-Clause"
] | null | null | null | test/mc_init_inherited_test.py | lechat/multiconf | c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3 | [
"BSD-3-Clause"
] | null | null | null | test/mc_init_inherited_test.py | lechat/multiconf | c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3 | [
"BSD-3-Clause"
] | null | null | null | from multiconf.envs import EnvFactory
from multiconf import ConfigRoot, ConfigItem
efac = EnvFactory()
pp = efac.Env('pp')
prod = efac.Env('prod')
def test_mc_init_inherited():
class XBase(ConfigItem):
def mc_init(self):
super(XBase, self).mc_init()
self.version = 1
class X1(... | 22.74359 | 51 | 0.590755 | 115 | 887 | 4.478261 | 0.278261 | 0.081553 | 0.116505 | 0.075728 | 0.446602 | 0.264078 | 0.174757 | 0.174757 | 0.174757 | 0 | 0 | 0.033281 | 0.288613 | 887 | 38 | 52 | 23.342105 | 0.782884 | 0 | 0 | 0.310345 | 0 | 0 | 0.036077 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 0 | null | null | 0 | 0.068966 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8fb4ced95e7afe34f961d780965327a32779a45e | 239 | py | Python | Dataset/Leetcode/train/78/333.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/78/333.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/78/333.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, nums: List[int]) -> List[List[int]]:
res = [[]]
for num in nums:
res.append([num])
for temp in res[1:-1]:
res.append(temp+[num])
return res
| 23.9 | 54 | 0.464435 | 31 | 239 | 3.580645 | 0.516129 | 0.126126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013605 | 0.384937 | 239 | 9 | 55 | 26.555556 | 0.741497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 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 |
8fbce3c19afc587495a8e4125780653dc3f1a7e3 | 78,172 | py | Python | assignment/assignment2/main/mc/parser/.antlr/MCParser.py | khoidohpc/ppl-course | 3bcff3eeeeebc24f0fc9e3f844779f439aa97544 | [
"MIT"
] | 2 | 2020-10-21T13:04:18.000Z | 2022-01-12T11:06:31.000Z | assignment/assignment2/main/mc/parser/.antlr/MCParser.py | khoidohpc/ppl-course | 3bcff3eeeeebc24f0fc9e3f844779f439aa97544 | [
"MIT"
] | null | null | null | assignment/assignment2/main/mc/parser/.antlr/MCParser.py | khoidohpc/ppl-course | 3bcff3eeeeebc24f0fc9e3f844779f439aa97544 | [
"MIT"
] | 1 | 2022-01-12T11:06:45.000Z | 2022-01-12T11:06:45.000Z | # Generated from /home/hpcc/ppl-course/assignment/assignment2/main/mc/parser/MC.g4 by ANTLR 4.7.1
# encoding: utf-8
from antlr4 import *
from io import StringIO
from typing.io import TextIO
import sys
def serializedATN():
with StringIO() as buf:
buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964... | 33.928819 | 534 | 0.558154 | 9,293 | 78,172 | 4.604971 | 0.081029 | 0.017058 | 0.011707 | 0.012712 | 0.686708 | 0.618358 | 0.580642 | 0.546852 | 0.51124 | 0.499252 | 0 | 0.091301 | 0.316673 | 78,172 | 2,303 | 535 | 33.943552 | 0.70983 | 0.00339 | 0 | 0.558126 | 1 | 0.044018 | 0.10197 | 0.090478 | 0 | 0 | 0.000462 | 0 | 0 | 1 | 0.132054 | false | 0.02088 | 0.004515 | 0.082957 | 0.326749 | 0 | 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 |
8fc5662eb228798459a5039e828db1ecc60f7178 | 3,149 | py | Python | RDFtoNexus.py | jcgood/desmeme | a7faa9b8a1d1dc0c7a348aa4541e1e17ee2bc40e | [
"Unlicense"
] | 1 | 2017-08-30T21:11:29.000Z | 2017-08-30T21:11:29.000Z | RDFtoNexus.py | jcgood/desmeme | a7faa9b8a1d1dc0c7a348aa4541e1e17ee2bc40e | [
"Unlicense"
] | null | null | null | RDFtoNexus.py | jcgood/desmeme | a7faa9b8a1d1dc0c7a348aa4541e1e17ee2bc40e | [
"Unlicense"
] | null | null | null | #!/usr/bin/python2.7
import tdag
from tdag import rdfGraph, Namespace, RDF, tdag, conflate, process_template, prettyName
from tdag import simUI_d, get_distances, to_nex, draw_graphs, full_grid, process_templates, process_templates_noComp
rdfTemplates = rdfGraph()
instanceNS = Namespace("http://purl.org/linguistics/... | 27.622807 | 116 | 0.752302 | 332 | 3,149 | 7.078313 | 0.361446 | 0.038298 | 0.030638 | 0.052766 | 0.371064 | 0.341277 | 0.305532 | 0.305532 | 0.305532 | 0.305532 | 0 | 0.007275 | 0.127024 | 3,149 | 113 | 117 | 27.867257 | 0.847581 | 0.10162 | 0 | 0.441176 | 0 | 0 | 0.18617 | 0.126241 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044118 | null | null | 0.191176 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8fceb848d6a2e830094399061e1cd3f8432f9fbd | 1,066 | py | Python | office365/onedrive/workbook.py | nsmcan/Office365-REST-Python-Client | e5e00cc3604c1ed8cc629ef6b948887614ecb204 | [
"MIT"
] | null | null | null | office365/onedrive/workbook.py | nsmcan/Office365-REST-Python-Client | e5e00cc3604c1ed8cc629ef6b948887614ecb204 | [
"MIT"
] | null | null | null | office365/onedrive/workbook.py | nsmcan/Office365-REST-Python-Client | e5e00cc3604c1ed8cc629ef6b948887614ecb204 | [
"MIT"
] | null | null | null | from office365.entity import Entity
from office365.onedrive.workbookNamedItem import WorkbookNamedItemCollection
from office365.onedrive.workbookWorksheet import WorkbookWorksheetCollection
from office365.runtime.resource_path import ResourcePath
class Workbook(Entity):
"""The top-level object that contains relat... | 48.454545 | 120 | 0.679174 | 101 | 1,066 | 7.138614 | 0.485149 | 0.072122 | 0.058252 | 0.069348 | 0.160888 | 0.085992 | 0 | 0 | 0 | 0 | 0 | 0.014888 | 0.243902 | 1,066 | 21 | 121 | 50.761905 | 0.879653 | 0.257036 | 0 | 0.142857 | 0 | 0 | 0.03866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8fd10e2509892718e5332264296d5e25b0298ce8 | 326 | py | Python | default_config.py | wjshan/base_package | c5a7c6f55c2beb769ba6295907080068c6d4022c | [
"Apache-2.0"
] | null | null | null | default_config.py | wjshan/base_package | c5a7c6f55c2beb769ba6295907080068c6d4022c | [
"Apache-2.0"
] | null | null | null | default_config.py | wjshan/base_package | c5a7c6f55c2beb769ba6295907080068c6d4022c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# (C) shan weijia, 2018
# All rights reserved
'''Description '''
__author__ = 'shan weijia <shanweijia@jiaaocap.com>'
__time__ = '2018/12/22 8:10 PM'
SQLALCHEMY_DATABASE_URI = "mysql://root:root@127.0.0.1:3306/test" # 配置数据库连接地址
SECRET_KEY = "cd17cb5e-fa95-45bd-98b8-fd6a8dd45957"
SALT = "Goo... | 23.285714 | 78 | 0.696319 | 46 | 326 | 4.695652 | 0.869565 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151408 | 0.128834 | 326 | 13 | 79 | 25.076923 | 0.609155 | 0.266871 | 0 | 0 | 0 | 0 | 0.586957 | 0.426087 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8fd1d0bc48767289e8e48ce3aa4d8183434b56ba | 15,331 | py | Python | lanthanum/tests/test_schema_fields.py | kingstonlabs/django-lanthanum | 726f714ecd874a9a598d3e12d113a62f24832514 | [
"BSD-3-Clause"
] | null | null | null | lanthanum/tests/test_schema_fields.py | kingstonlabs/django-lanthanum | 726f714ecd874a9a598d3e12d113a62f24832514 | [
"BSD-3-Clause"
] | null | null | null | lanthanum/tests/test_schema_fields.py | kingstonlabs/django-lanthanum | 726f714ecd874a9a598d3e12d113a62f24832514 | [
"BSD-3-Clause"
] | null | null | null | from decimal import Decimal
from ..schema_fields import (
ArrayField,
BooleanField,
DynamicArrayField,
Field,
CharField,
DecimalField,
IntegerField,
TextField
)
from .utils import assert_dict_equal
class TestField:
def test_schema_basic(self):
field = Field()
asser... | 30.600798 | 79 | 0.541974 | 1,528 | 15,331 | 5.149869 | 0.093586 | 0.034693 | 0.043843 | 0.064303 | 0.768204 | 0.741263 | 0.671115 | 0.633371 | 0.569577 | 0.562969 | 0 | 0.002629 | 0.354967 | 15,331 | 500 | 80 | 30.662 | 0.793103 | 0.017742 | 0 | 0.581019 | 0 | 0 | 0.080583 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.090278 | false | 0 | 0.006944 | 0 | 0.12037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8fdb3f19ee693ac315efe7c28a6e28f1f9a91af7 | 1,914 | py | Python | tests/test_cloud_aws.py | amannars/cm | ca80cf06b39bec918889c2fd355c76277d883679 | [
"Apache-2.0"
] | null | null | null | tests/test_cloud_aws.py | amannars/cm | ca80cf06b39bec918889c2fd355c76277d883679 | [
"Apache-2.0"
] | 1 | 2020-10-21T18:15:46.000Z | 2020-10-21T18:15:46.000Z | tests/test_cloud_aws.py | amannars/cm | ca80cf06b39bec918889c2fd355c76277d883679 | [
"Apache-2.0"
] | null | null | null | import time
from deprecated.draft.vm.api.Vm import Vm
from cloudmesh.management.configuration.config import Config
from cloudmesh.management.debug import HEADING, myself
# nosetest -v --nopature tests/test_cloud_aws.py
class TestCloudAws:
def setup(self):
self.config = Config()
self.aws = Vm("aw... | 30.380952 | 65 | 0.660397 | 268 | 1,914 | 4.455224 | 0.276119 | 0.073702 | 0.110553 | 0.134003 | 0.359296 | 0.204355 | 0.172529 | 0.172529 | 0.172529 | 0.172529 | 0 | 0.021233 | 0.2372 | 1,914 | 62 | 66 | 30.870968 | 0.796575 | 0.065308 | 0 | 0.217391 | 0 | 0 | 0.019048 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 1 | 0.217391 | false | 0 | 0.086957 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8fe0df737e2c58b7d746d96a8647a65fabb90747 | 6,257 | py | Python | weather-phat.py | MichaelBell/InkyWeather | 290e5a08fab290bdf7c519b061d6e68e442472ae | [
"MIT"
] | null | null | null | weather-phat.py | MichaelBell/InkyWeather | 290e5a08fab290bdf7c519b061d6e68e442472ae | [
"MIT"
] | null | null | null | weather-phat.py | MichaelBell/InkyWeather | 290e5a08fab290bdf7c519b061d6e68e442472ae | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import glob
import json
import time
import urllib
import argparse
from inky import InkyPHAT
from PIL import Image, ImageDraw, ImageFont
#from font_fredoka_one import FredokaOne
from font_source_sans_pro import SourceSansProBold
from utils import get_api_key
try:
impo... | 28.570776 | 130 | 0.658622 | 927 | 6,257 | 4.349515 | 0.316073 | 0.049107 | 0.02381 | 0.024802 | 0.134177 | 0.088046 | 0.082093 | 0.049851 | 0.049851 | 0.049851 | 0 | 0.04386 | 0.198338 | 6,257 | 218 | 131 | 28.701835 | 0.75937 | 0.135688 | 0 | 0.098592 | 0 | 0.007042 | 0.116461 | 0.004306 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.077465 | null | null | 0.021127 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8fe7a1cb7b3a1e63411d1e94bd338d02e5175af5 | 551 | py | Python | human_services/locations/migrations/0008_auto_20180131_2317.py | DarwishMenna/pathways-backend | e9825e0373c586ce8f07ee8b70aecc7de679fb41 | [
"BSD-3-Clause"
] | 12 | 2017-08-30T18:21:00.000Z | 2021-12-09T04:04:17.000Z | human_services/locations/migrations/0008_auto_20180131_2317.py | DarwishMenna/pathways-backend | e9825e0373c586ce8f07ee8b70aecc7de679fb41 | [
"BSD-3-Clause"
] | 424 | 2017-08-08T18:32:14.000Z | 2022-03-30T21:42:51.000Z | human_services/locations/migrations/0008_auto_20180131_2317.py | DarwishMenna/pathways-backend | e9825e0373c586ce8f07ee8b70aecc7de679fb41 | [
"BSD-3-Clause"
] | 7 | 2017-09-29T21:14:37.000Z | 2019-12-30T21:07:37.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-01-31 23:17
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('locations', '0007_auto_20180126_2137'),
]
operatio... | 25.045455 | 105 | 0.658802 | 62 | 551 | 5.693548 | 0.709677 | 0.067989 | 0.07932 | 0.124646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077103 | 0.22323 | 551 | 21 | 106 | 26.238095 | 0.747664 | 0.123412 | 0 | 0 | 1 | 0 | 0.147917 | 0.047917 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ff1c4efb4960deb70765998adc851f7250b29c9 | 2,876 | py | Python | htm2md/const.py | miso24/htm2md | 609a370e7695a5e91e94d6521ca5547bc42c3acf | [
"MIT"
] | null | null | null | htm2md/const.py | miso24/htm2md | 609a370e7695a5e91e94d6521ca5547bc42c3acf | [
"MIT"
] | null | null | null | htm2md/const.py | miso24/htm2md | 609a370e7695a5e91e94d6521ca5547bc42c3acf | [
"MIT"
] | null | null | null | from typing import Final, List
SELF_CLOSING_TAGS: Final[List[str]] = [
"area",
"base",
"br",
"col",
"embed",
"hr",
"img",
"input",
"keygen",
"link",
"meta",
"param",
"source",
"track",
"wbr",
]
HIGHLIGHT_LANGUAGES: Final[List[str]] = [
"1c",
"abnf",
... | 13.695238 | 41 | 0.423505 | 227 | 2,876 | 5.348018 | 0.929515 | 0.022241 | 0.019769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005408 | 0.357093 | 2,876 | 209 | 42 | 13.760766 | 0.651163 | 0 | 0 | 0 | 0 | 0 | 0.396732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.004831 | 0 | 0.004831 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8ffd2b348adbe82647e3ac4c364da3889cff76b2 | 4,973 | py | Python | src/mbed_cloud/foundation/entities/security/server_credentials.py | GQMai/mbed-cloud-sdk-python | 76ef009903415f37f69dcc5778be8f5fb14c08fe | [
"Apache-2.0"
] | 12 | 2017-12-28T11:18:43.000Z | 2020-10-04T12:11:15.000Z | src/mbed_cloud/foundation/entities/security/server_credentials.py | GQMai/mbed-cloud-sdk-python | 76ef009903415f37f69dcc5778be8f5fb14c08fe | [
"Apache-2.0"
] | 50 | 2017-12-21T12:50:41.000Z | 2020-01-13T16:07:08.000Z | src/mbed_cloud/foundation/entities/security/server_credentials.py | GQMai/mbed-cloud-sdk-python | 76ef009903415f37f69dcc5778be8f5fb14c08fe | [
"Apache-2.0"
] | 8 | 2018-04-25T17:47:29.000Z | 2019-08-29T06:38:27.000Z | """
.. warning::
ServerCredentials should not be imported directly from this module as the
organisation may change in the future, please use the :mod:`mbed_cloud.foundation` module to import entities.
Foundation Entity: ServerCredentials
====================================
Entities normally contain methods t... | 32.503268 | 122 | 0.680475 | 615 | 4,973 | 5.365854 | 0.317073 | 0.061818 | 0.028788 | 0.027879 | 0.299091 | 0.241818 | 0.20303 | 0.183636 | 0.164242 | 0.164242 | 0 | 0.00626 | 0.229037 | 4,973 | 152 | 123 | 32.717105 | 0.85446 | 0.596823 | 0 | 0.162162 | 0 | 0 | 0.083384 | 0.036254 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0 | 0.162162 | 0 | 0.648649 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8ffda8e4645869f39153fc8371ec9ef8e9f6fe0b | 1,397 | py | Python | deploy/comm/log.py | linbin524/WeBASE | d28aa2bea297b6adf0e51c991d537735a577a1b9 | [
"Apache-2.0"
] | null | null | null | deploy/comm/log.py | linbin524/WeBASE | d28aa2bea297b6adf0e51c991d537735a577a1b9 | [
"Apache-2.0"
] | null | null | null | deploy/comm/log.py | linbin524/WeBASE | d28aa2bea297b6adf0e51c991d537735a577a1b9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
import logging, os
class Logger:
def __init__(self, path, clever=logging.DEBUG, Flevel=logging.DEBUG):
self.logger = logging.getLogger(path)
self.logger.setLevel(logging.DEBUG)
log_format = logging.Formatter('[%(asctime)s] [%(levelname)s] %(message)s... | 26.865385 | 104 | 0.643522 | 164 | 1,397 | 5.396341 | 0.359756 | 0.101695 | 0.084746 | 0.118644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000927 | 0.227631 | 1,397 | 52 | 105 | 26.865385 | 0.819277 | 0.02577 | 0 | 0 | 0 | 0 | 0.091912 | 0.033088 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025641 | null | null | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8904eed6e14dad581aeb65a22eec5ba973ad8d69 | 2,646 | py | Python | Scripts/simulation/venues/club_venue/club_dj_situation.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/venues/club_venue/club_dj_situation.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/venues/club_venue/club_dj_situation.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\venues\club_venue\club_dj_situation.py
# Compiled at: 2017-02-03 07:14:23
# Size of source mod 2**32... | 44.1 | 188 | 0.736961 | 325 | 2,646 | 5.8 | 0.486154 | 0.023873 | 0.048806 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031643 | 0.187831 | 2,646 | 60 | 189 | 44.1 | 0.84551 | 0.120937 | 0 | 0.139535 | 0 | 0.023256 | 0.184483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0.046512 | 0.232558 | 0.046512 | 0.534884 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
89119394518fae449490165427818c9b01607e93 | 962 | py | Python | ikalog/utils/image_loader.py | fetus-hina/IkaLog | bd476da541fcc296f792d4db76a6b9174c4777ad | [
"Apache-2.0"
] | 285 | 2015-08-15T14:38:38.000Z | 2022-02-18T15:00:06.000Z | ikalog/utils/image_loader.py | fetus-hina/IkaLog | bd476da541fcc296f792d4db76a6b9174c4777ad | [
"Apache-2.0"
] | 323 | 2015-09-24T12:21:34.000Z | 2018-05-06T16:34:54.000Z | ikalog/utils/image_loader.py | fetus-hina/IkaLog | bd476da541fcc296f792d4db76a6b9174c4777ad | [
"Apache-2.0"
] | 72 | 2015-08-22T00:18:54.000Z | 2022-02-18T14:44:20.000Z |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# IkaLog
# ======
# Copyright (C) 2015 Takeshi HASEGAWA
#
# 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/... | 25.315789 | 75 | 0.695426 | 144 | 962 | 4.631944 | 0.694444 | 0.089955 | 0.038981 | 0.047976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018301 | 0.204782 | 962 | 37 | 76 | 26 | 0.853595 | 0.651767 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8919632679f04b21bf4331d439df1b673f37eda3 | 3,793 | py | Python | tests/test_nested.py | krakozaure/pyzzy | 17a316c0ced8095b671186c73fb5bf1daa2c140b | [
"MIT"
] | null | null | null | tests/test_nested.py | krakozaure/pyzzy | 17a316c0ced8095b671186c73fb5bf1daa2c140b | [
"MIT"
] | null | null | null | tests/test_nested.py | krakozaure/pyzzy | 17a316c0ced8095b671186c73fb5bf1daa2c140b | [
"MIT"
] | null | null | null | import pytest
from pyzzy.utils import nested
@pytest.fixture
def DATA_SOURCE():
return {"key1": [{"key2": [{"key3": "value1"}]}]}
def test_proxybase_dunders():
data = {"key1": "value1", "key2": "value2"}
pb = nested.ProxyBase(data)
assert pb
assert dir(pb) == dir(data)
assert... | 28.734848 | 81 | 0.654891 | 504 | 3,793 | 4.710317 | 0.130952 | 0.105308 | 0.079612 | 0.088458 | 0.692502 | 0.629739 | 0.563185 | 0.532013 | 0.399326 | 0.342881 | 0 | 0.036609 | 0.179014 | 3,793 | 131 | 82 | 28.954198 | 0.725755 | 0 | 0 | 0.280488 | 0 | 0 | 0.133807 | 0.08793 | 0 | 0 | 0 | 0 | 0.256098 | 1 | 0.280488 | false | 0 | 0.02439 | 0.012195 | 0.317073 | 0.012195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
891a975fd45f9d824f75a660a3a6f3be4f2899c1 | 4,058 | py | Python | src/patent_client/uspto/fulltext/schema.py | parkerhancock/python-ip | 046c1ebbe31e9058a0e421659a3300e8a578fd41 | [
"Apache-2.0"
] | 15 | 2018-10-23T01:15:29.000Z | 2022-02-01T19:53:44.000Z | src/patent_client/uspto/fulltext/schema.py | grimmer0125/patent_client | 8943ca970d174ecf8aad10669a95ceddd75f5e13 | [
"Apache-2.0"
] | 33 | 2018-10-26T03:48:51.000Z | 2022-01-17T09:16:07.000Z | src/patent_client/uspto/fulltext/schema.py | grimmer0125/patent_client | 8943ca970d174ecf8aad10669a95ceddd75f5e13 | [
"Apache-2.0"
] | 7 | 2019-02-14T20:25:20.000Z | 2021-05-24T07:49:34.000Z | import re
from patent_client.util.schema import *
from dateutil.parser import parse as parse_dt
from .model import Publication, Inventor, Applicant, Assignee, RelatedPatentDocument, PriorPublication, USReference, ForeignReference, NPLReference, CpcClass, USClass, ForeignPriority
# Related People
class InventorSchema... | 32.725806 | 183 | 0.736816 | 392 | 4,058 | 7.372449 | 0.306122 | 0.085467 | 0.038754 | 0.050865 | 0.023529 | 0.023529 | 0 | 0 | 0 | 0 | 0 | 0.001474 | 0.163874 | 4,058 | 124 | 184 | 32.725806 | 0.85028 | 0.023903 | 0 | 0.184783 | 0 | 0 | 0.0364 | 0.006825 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.01087 | 0.043478 | 0 | 0.98913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
891adb7f74e45d236f1af5442d7c831c95913044 | 6,613 | py | Python | core/art/jobSubResults.py | yesw2000/panda-bigmon-core | b45cef335209547cbe8abe65ec67754d7864bec1 | [
"Apache-2.0"
] | null | null | null | core/art/jobSubResults.py | yesw2000/panda-bigmon-core | b45cef335209547cbe8abe65ec67754d7864bec1 | [
"Apache-2.0"
] | null | null | null | core/art/jobSubResults.py | yesw2000/panda-bigmon-core | b45cef335209547cbe8abe65ec67754d7864bec1 | [
"Apache-2.0"
] | null | null | null |
import urllib, urllib3, json
from datetime import datetime
from core.art.modelsART import ARTSubResult
from django.db import connection, transaction, DatabaseError
from core.settings import defaultDatetimeFormat
import logging
_logger = logging.getLogger('bigpandamon-error')
def getJobReport(guid, lfn, scope):
... | 32.416667 | 145 | 0.603206 | 787 | 6,613 | 4.98094 | 0.233799 | 0.020408 | 0.021429 | 0.011224 | 0.525 | 0.483418 | 0.460459 | 0.382143 | 0.365816 | 0.354082 | 0 | 0.004418 | 0.281264 | 6,613 | 204 | 146 | 32.416667 | 0.820324 | 0.093301 | 0 | 0.546154 | 0 | 0 | 0.20338 | 0.019502 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046154 | null | null | 0.046154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
891b02926e7d74cc4a12ba05108743e149510151 | 1,373 | py | Python | run/old_scripts/process_annotations_file.py | olavosamp/semiauto-video-annotation | b1a46f9c0ad3bdcedab76b4cd730747ee2afd2fd | [
"MIT"
] | null | null | null | run/old_scripts/process_annotations_file.py | olavosamp/semiauto-video-annotation | b1a46f9c0ad3bdcedab76b4cd730747ee2afd2fd | [
"MIT"
] | 20 | 2019-07-15T21:49:29.000Z | 2020-01-09T14:35:03.000Z | run/old_scripts/process_annotations_file.py | olavosamp/semiauto-video-annotation | b1a46f9c0ad3bdcedab76b4cd730747ee2afd2fd | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from pathlib import Path
import libs.dirs as dirs
import libs.utils as utils
import libs.dataset_utils as dutils
from libs.index import IndexManager
''' Add FrameHash and FramePath to a interface-style... | 40.382353 | 131 | 0.762564 | 173 | 1,373 | 5.855491 | 0.439306 | 0.117473 | 0.035538 | 0.053307 | 0.141165 | 0.141165 | 0.141165 | 0.141165 | 0.102665 | 0.102665 | 0 | 0.008532 | 0.146395 | 1,373 | 34 | 132 | 40.382353 | 0.855802 | 0.134741 | 0 | 0 | 0 | 0 | 0.189702 | 0.159892 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.333333 | 0 | 0.428571 | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.