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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24b7c41cba674d3c5a96735fae3e61b4d3db7195 | 1,376 | py | Python | i3configger/bindings.py | obestwalter/i3-configger | c981a01f5b89fd37ab5a98af1229819cea305f6a | [
"MIT"
] | 30 | 2017-05-20T12:27:37.000Z | 2021-09-27T17:01:20.000Z | i3configger/bindings.py | obestwalter/i3configger | c981a01f5b89fd37ab5a98af1229819cea305f6a | [
"MIT"
] | 9 | 2017-05-21T23:17:04.000Z | 2019-05-09T13:24:32.000Z | i3configger/bindings.py | obestwalter/i3-configger | c981a01f5b89fd37ab5a98af1229819cea305f6a | [
"MIT"
] | 3 | 2017-06-04T20:29:29.000Z | 2021-09-27T17:01:23.000Z | """WARNING Just an experiment - please ignore this."""
from i3configger import config
BINDCODE = "bindcode"
BINDSYM = "bindsym"
class Bindings:
"""
bindsym | bindcode
[--release] [<Group>+][<Modifiers>+]<keysym> command
[--release] [--border] [--whole-window] [<Modifiers>+]button<n> command
"""
... | 30.577778 | 78 | 0.652616 | 173 | 1,376 | 5.075145 | 0.578035 | 0.037585 | 0.020501 | 0.022779 | 0.04328 | 0.04328 | 0.04328 | 0 | 0 | 0 | 0 | 0.001894 | 0.232558 | 1,376 | 44 | 79 | 31.272727 | 0.829545 | 0.389535 | 0 | 0.105263 | 0 | 0 | 0.0323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0 | 0.368421 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24ba97b99cd37843fd8b359e53696bd9e75b0abb | 1,867 | py | Python | musketeer/fitSignals.py | TChis/Musketeer | bd67b2e7f4e1827c96d10bbf278c781ce22681f3 | [
"MIT"
] | null | null | null | musketeer/fitSignals.py | TChis/Musketeer | bd67b2e7f4e1827c96d10bbf278c781ce22681f3 | [
"MIT"
] | null | null | null | musketeer/fitSignals.py | TChis/Musketeer | bd67b2e7f4e1827c96d10bbf278c781ce22681f3 | [
"MIT"
] | 2 | 2021-05-07T12:29:02.000Z | 2022-01-10T11:57:22.000Z | import numpy as np
from numpy.linalg import lstsq
from scipy.optimize import lsq_linear
from . import moduleFrame
class FitSignals(moduleFrame.Strategy):
def __call__(self, signalVars, knownSpectra):
# rows are additions, columns are contributors
knownMask = ~np.isnan(knownSpectra[:, 0])
... | 38.102041 | 79 | 0.689877 | 170 | 1,867 | 7.505882 | 0.458824 | 0.028213 | 0.017241 | 0.032915 | 0.051724 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004144 | 0.224424 | 1,867 | 48 | 80 | 38.895833 | 0.877072 | 0.066417 | 0 | 0.054054 | 0 | 0 | 0.056929 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.054054 | false | 0 | 0.108108 | 0 | 0.405405 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
24bce25b915ba22957eca242f8aa3b075851e90b | 588 | py | Python | translations/migrations/0025_move_category_m2m.py | TranslateForSG/translateforsg-backend | 319d90229fa0b22e4a6e77b321276e0e93cb6413 | [
"MIT"
] | 2 | 2020-05-08T07:18:05.000Z | 2020-05-13T13:22:19.000Z | translations/migrations/0025_move_category_m2m.py | aniruddha-adhikary/translateforsg-backend | 319d90229fa0b22e4a6e77b321276e0e93cb6413 | [
"MIT"
] | 7 | 2021-03-19T02:03:21.000Z | 2021-09-22T18:54:02.000Z | translations/migrations/0025_move_category_m2m.py | aniruddha-adhikary/translateforsg-backend | 319d90229fa0b22e4a6e77b321276e0e93cb6413 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-04-21 11:08
from django.db import migrations
def move_category_m2m(apps, schema_editor):
Category = apps.get_model('translations', 'Category')
Phrase = apps.get_model('translations', 'Phrase')
for category in Category.objects.all():
for phrase in Phrase.object... | 25.565217 | 63 | 0.692177 | 70 | 588 | 5.671429 | 0.614286 | 0.060453 | 0.075567 | 0.120907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069915 | 0.197279 | 588 | 22 | 64 | 26.727273 | 0.771186 | 0.076531 | 0 | 0 | 1 | 0 | 0.134935 | 0.042514 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24c51f4ab48e95013feb31263b800f59b0194d64 | 4,028 | py | Python | mipkit/dl/metrics.py | congvmit/mipkit | d65a5083852dcfc5db766175aa402a5e3a506f21 | [
"MIT"
] | 8 | 2021-06-17T08:13:51.000Z | 2022-02-21T13:31:18.000Z | mipkit/dl/metrics.py | congvmit/mipkit | d65a5083852dcfc5db766175aa402a5e3a506f21 | [
"MIT"
] | null | null | null | mipkit/dl/metrics.py | congvmit/mipkit | d65a5083852dcfc5db766175aa402a5e3a506f21 | [
"MIT"
] | null | null | null | """
The MIT License (MIT)
Copyright (c) 2021 Cong Vo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge... | 41.958333 | 93 | 0.680238 | 584 | 4,028 | 4.64726 | 0.405822 | 0.032424 | 0.02395 | 0.031319 | 0.08622 | 0.056006 | 0.030214 | 0 | 0 | 0 | 0 | 0.013518 | 0.228649 | 4,028 | 95 | 94 | 42.4 | 0.859994 | 0.815789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24cccb183a4ac3f9434412a945c1d0bccd279086 | 4,709 | py | Python | app/scripts/config_check.py | PromoFaux/plex-utills | 570e2e4525b992978780b6a195df94c674c94ac3 | [
"MIT"
] | 179 | 2020-02-27T01:09:32.000Z | 2022-03-28T21:56:20.000Z | app/scripts/config_check.py | PromoFaux/plex-utills | 570e2e4525b992978780b6a195df94c674c94ac3 | [
"MIT"
] | 94 | 2020-03-03T03:22:42.000Z | 2022-03-28T20:13:22.000Z | app/scripts/config_check.py | PromoFaux/plex-utills | 570e2e4525b992978780b6a195df94c674c94ac3 | [
"MIT"
] | 36 | 2020-02-28T13:58:54.000Z | 2022-03-26T10:04:25.000Z | #!/usr/local/bin/python3
import os
import subprocess
from subprocess import Popen, PIPE, STDOUT
from configparser import ConfigParser
import subprocess
import plexapi
import schedule
import time
from datetime import datetime
import re
from colorama import Fore, Back, Style
import socket
from urllib import... | 30.185897 | 151 | 0.674241 | 668 | 4,709 | 4.672156 | 0.208084 | 0.048702 | 0.053829 | 0.103172 | 0.534124 | 0.497597 | 0.497597 | 0.441205 | 0.441205 | 0.419096 | 0 | 0.011705 | 0.201741 | 4,709 | 156 | 152 | 30.185897 | 0.818569 | 0.004884 | 0 | 0.455882 | 0 | 0.007353 | 0.401898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.213235 | 0.102941 | 0 | 0.102941 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
24cf41a00623d50e881d78fdc44ceca7f693a7f5 | 1,371 | py | Python | feed/models.py | mehDkhan/zngol | 3a6449cb1b83e4a9707d103e8b9c9748a8ba5810 | [
"MIT"
] | null | null | null | feed/models.py | mehDkhan/zngol | 3a6449cb1b83e4a9707d103e8b9c9748a8ba5810 | [
"MIT"
] | 8 | 2020-02-12T01:08:53.000Z | 2022-02-10T08:31:06.000Z | feed/models.py | mehDkhan/zngol | 3a6449cb1b83e4a9707d103e8b9c9748a8ba5810 | [
"MIT"
] | null | null | null | from django.db import models
from account.models import User
from django.utils import timezone
from django.utils.text import slugify
class Post(models.Model):
author = models.ForeignKey(to=User,
on_delete=models.SET_NULL,
related_name='feed_posts',
... | 32.642857 | 85 | 0.635303 | 163 | 1,371 | 5.190184 | 0.392638 | 0.035461 | 0.049645 | 0.092199 | 0.085106 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0.008763 | 0.250912 | 1,371 | 42 | 86 | 32.642857 | 0.814995 | 0 | 0 | 0.125 | 0 | 0 | 0.049563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.125 | 0.0625 | 0.71875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
24d041644a0972c3d43a61ae3680b9999e219c63 | 898 | py | Python | setup.py | ebruagbay/dsmlbc6_ebruagbay | b58ade5c808ded057595b9c607b745971580b3dd | [
"MIT"
] | null | null | null | setup.py | ebruagbay/dsmlbc6_ebruagbay | b58ade5c808ded057595b9c607b745971580b3dd | [
"MIT"
] | null | null | null | setup.py | ebruagbay/dsmlbc6_ebruagbay | b58ade5c808ded057595b9c607b745971580b3dd | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(name="dsmlbc6_ebruagbay",
version="0.0.2",
license="MIT",
author="Ebru Topsakal Agbay",
author_mail="ebrugeo@gmail.com",
description="Data Science Tools",
url="https://github.com/ebr... | 44.9 | 74 | 0.481069 | 69 | 898 | 6.202899 | 0.73913 | 0.133178 | 0.175234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018727 | 0.405345 | 898 | 20 | 75 | 44.9 | 0.782772 | 0 | 0 | 0 | 0 | 0 | 0.408231 | 0.024472 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24d17cdc96014255022efc31f4e73c1c00af18cc | 996 | py | Python | outputs/admin.py | jayvdb/django-outputs | fcd1386b5dd95d71655e44fa49b766941bbcad43 | [
"Apache-2.0"
] | null | null | null | outputs/admin.py | jayvdb/django-outputs | fcd1386b5dd95d71655e44fa49b766941bbcad43 | [
"Apache-2.0"
] | null | null | null | outputs/admin.py | jayvdb/django-outputs | fcd1386b5dd95d71655e44fa49b766941bbcad43 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from outputs.models import Export, Scheduler
@admin.register(Export)
class ExportAdmin(admin.ModelAdmin):
date_hierarchy = 'created'
search_fields = ['creator__first_name', 'creator__last_name']
list_select_related = ['creator', 'content_type']
list_filter = ['format'... | 36.888889 | 97 | 0.699799 | 115 | 996 | 5.747826 | 0.434783 | 0.099849 | 0.090772 | 0.08472 | 0.484115 | 0.484115 | 0.484115 | 0.372163 | 0.372163 | 0.372163 | 0 | 0 | 0.15261 | 996 | 26 | 98 | 38.307692 | 0.783175 | 0 | 0 | 0.3 | 0 | 0 | 0.291165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
24d19ac974b3536f36cf25e1c8b1eefc826bb152 | 1,124 | py | Python | scrapeProject/spiders/pragativadi.py | OdiaNLP/DataScraper | a065d350602fc370cacde3f8ab62c3cc5b9e1ba9 | [
"MIT"
] | null | null | null | scrapeProject/spiders/pragativadi.py | OdiaNLP/DataScraper | a065d350602fc370cacde3f8ab62c3cc5b9e1ba9 | [
"MIT"
] | null | null | null | scrapeProject/spiders/pragativadi.py | OdiaNLP/DataScraper | a065d350602fc370cacde3f8ab62c3cc5b9e1ba9 | [
"MIT"
] | null | null | null | from scrapy.linkextractors import LinkExtractor
from scrapy.loader import ItemLoader
from scrapy.loader.processors import MapCompose, Join
from scrapy.spiders import CrawlSpider, Rule
from scrapeProject.items import ScrapeprojectItem
class PragativadiSpider(CrawlSpider):
name = 'pragativadi'
start_urls = ["h... | 40.142857 | 120 | 0.682384 | 128 | 1,124 | 5.929688 | 0.523438 | 0.052701 | 0.042161 | 0.081686 | 0.097497 | 0.097497 | 0.097497 | 0 | 0 | 0 | 0 | 0.002169 | 0.179715 | 1,124 | 27 | 121 | 41.62963 | 0.821041 | 0.070285 | 0 | 0.105263 | 0 | 0 | 0.224568 | 0.138196 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.263158 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
24dba7886b98a74cae8aad667f6a9c05f67ebc42 | 1,745 | py | Python | deeplearning/ml4pl/filesystem_paths.py | island255/ProGraML | 6c4ea50639773009e7c287feb62c6994fa4f3445 | [
"Apache-2.0"
] | 1 | 2020-07-14T12:17:45.000Z | 2020-07-14T12:17:45.000Z | deeplearning/ml4pl/filesystem_paths.py | island255/ProGraML | 6c4ea50639773009e7c287feb62c6994fa4f3445 | [
"Apache-2.0"
] | null | null | null | deeplearning/ml4pl/filesystem_paths.py | island255/ProGraML | 6c4ea50639773009e7c287feb62c6994fa4f3445 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 the ProGraML authors.
#
# Contact Chris Cummins <chrisc.101@gmail.com>.
#
# 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... | 32.924528 | 80 | 0.750143 | 266 | 1,745 | 4.879699 | 0.556391 | 0.03775 | 0.03698 | 0.024653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.169628 | 1,745 | 52 | 81 | 33.557692 | 0.881297 | 0.75702 | 0 | 0 | 0 | 0 | 0.186842 | 0.089474 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
24e20217d793c96b06ef2e09e523e4525409a89a | 4,565 | py | Python | var/www/cgi-bin/ewmethodConf.py | DanielAndreasen/FASMA-web | 4b87b2ac0be98817825fc94e5f287e5eb968d392 | [
"MIT"
] | 1 | 2017-01-24T14:15:22.000Z | 2017-01-24T14:15:22.000Z | var/www/cgi-bin/ewmethodConf.py | DanielAndreasen/FASMA-web | 4b87b2ac0be98817825fc94e5f287e5eb968d392 | [
"MIT"
] | 2 | 2016-11-02T15:07:13.000Z | 2018-03-10T12:20:09.000Z | var/www/cgi-bin/ewmethodConf.py | DanielAndreasen/FASMA-web | 4b87b2ac0be98817825fc94e5f287e5eb968d392 | [
"MIT"
] | null | null | null | #!/home/daniel/Software/anaconda3/bin/python
# Import modules for CGI handling
import os
import cgi, cgitb
from ewDriver import ewdriver
from emailSender import sendEmail
def cgi2dict(form):
"""Convert the form from cgi.FieldStorage to a python dictionary"""
params = {'initial': False,
'fixtef... | 31.923077 | 124 | 0.50471 | 483 | 4,565 | 4.745342 | 0.351967 | 0.023997 | 0.038394 | 0.018325 | 0.021379 | 0.021379 | 0 | 0 | 0 | 0 | 0 | 0.006201 | 0.328806 | 4,565 | 142 | 125 | 32.147887 | 0.741841 | 0.046878 | 0 | 0.104348 | 0 | 0 | 0.421886 | 0.051836 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034783 | null | null | 0.052174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
24e30f0e72c5758202069450d33b77fffecaba08 | 5,964 | py | Python | common/utils.py | quentin-xia/Maticv | 76d599b68ef5bdab10e8dbc0c120657610933ad8 | [
"MIT"
] | null | null | null | common/utils.py | quentin-xia/Maticv | 76d599b68ef5bdab10e8dbc0c120657610933ad8 | [
"MIT"
] | null | null | null | common/utils.py | quentin-xia/Maticv | 76d599b68ef5bdab10e8dbc0c120657610933ad8 | [
"MIT"
] | null | null | null | #/usr/bin/env python
#-*- coding:utf-8 -*-
import math,os
import numpy as np
from adb import Adb
from screencap import MinicapStream
import tempfile
import hashlib
import gl
import platform
if platform.system() is "Windows":
try:
import maticv.common.opencv.x32.cv2 as cv2
except:
import maticv.c... | 29.092683 | 111 | 0.557176 | 736 | 5,964 | 4.361413 | 0.285326 | 0.011215 | 0.02243 | 0.02243 | 0.101558 | 0.034268 | 0 | 0 | 0 | 0 | 0 | 0.026606 | 0.331992 | 5,964 | 204 | 112 | 29.235294 | 0.779116 | 0.058015 | 0 | 0.178808 | 0 | 0 | 0.026118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006623 | 0.072848 | null | null | 0.006623 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
24ec8172b6e1c2fe9947b2843a4b87484a6b677e | 6,510 | py | Python | code/ner/model/net.py | gilbert98xD/mtextos2122 | 4811575134344c0bf255fa592c3b82efdb59d867 | [
"CC-BY-4.0"
] | 2 | 2022-03-07T13:47:36.000Z | 2022-03-07T16:10:34.000Z | code/ner/model/net.py | gilbert98xD/mtextos2122 | 4811575134344c0bf255fa592c3b82efdb59d867 | [
"CC-BY-4.0"
] | null | null | null | code/ner/model/net.py | gilbert98xD/mtextos2122 | 4811575134344c0bf255fa592c3b82efdb59d867 | [
"CC-BY-4.0"
] | null | null | null | """
## Minería de textos
Universidad de Alicante, curso 2021-2022
Esta documentación forma parte de la práctica "[Lectura y documentación de un sistema de
extracción de entidades](https://jaspock.github.io/mtextos2122/bloque2_practica.html)" y se
basa en el código del curso [CS230](https://github.com/cs230-stanford/c... | 29.726027 | 119 | 0.618126 | 862 | 6,510 | 4.62993 | 0.37007 | 0.012027 | 0.013029 | 0.00902 | 0.061138 | 0.061138 | 0.061138 | 0.061138 | 0.061138 | 0.041092 | 0 | 0.008564 | 0.300461 | 6,510 | 218 | 120 | 29.862385 | 0.867809 | 0.286022 | 0 | 0 | 0 | 0 | 0.005895 | 0 | 0 | 0 | 0 | 0.018349 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
24f4d7e1005a990eff108660ee3c6c03d85c23a0 | 439 | py | Python | neosis_telephone_directory/telephone_directory/migrations/0003_contacts_profile_pic.py | borkarfaiz/neosis_telephone_directory | d4a0f7197ac15f4993488e21459a744c370fde0f | [
"MIT"
] | null | null | null | neosis_telephone_directory/telephone_directory/migrations/0003_contacts_profile_pic.py | borkarfaiz/neosis_telephone_directory | d4a0f7197ac15f4993488e21459a744c370fde0f | [
"MIT"
] | null | null | null | neosis_telephone_directory/telephone_directory/migrations/0003_contacts_profile_pic.py | borkarfaiz/neosis_telephone_directory | d4a0f7197ac15f4993488e21459a744c370fde0f | [
"MIT"
] | null | null | null | # Generated by Django 3.0.11 on 2020-12-09 06:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('telephone_directory', '0002_auto_20201208_1801'),
]
operations = [
migrations.AddField(
model_name='contacts',
name... | 23.105263 | 85 | 0.626424 | 49 | 439 | 5.44898 | 0.816327 | 0.074906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09816 | 0.257403 | 439 | 18 | 86 | 24.388889 | 0.720859 | 0.104784 | 0 | 0 | 1 | 0 | 0.186701 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24fce3d07a8f2fe74c6a87ee177cf440ad8e2e09 | 1,704 | py | Python | backend/pah_fm/urls.py | w1stler/pah-fm | e69600ba602715ae0b61dfa0bead934a0ed7f36f | [
"MIT"
] | 8 | 2019-08-09T11:06:16.000Z | 2021-10-05T14:56:31.000Z | backend/pah_fm/urls.py | w1stler/pah-fm | e69600ba602715ae0b61dfa0bead934a0ed7f36f | [
"MIT"
] | 382 | 2018-10-17T19:05:30.000Z | 2022-02-10T07:09:45.000Z | backend/pah_fm/urls.py | w1stler/pah-fm | e69600ba602715ae0b61dfa0bead934a0ed7f36f | [
"MIT"
] | 45 | 2018-10-17T17:04:04.000Z | 2021-10-05T14:30:35.000Z | """pah_fm URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | 37.866667 | 80 | 0.723592 | 231 | 1,704 | 5.246753 | 0.354978 | 0.039604 | 0.066007 | 0.019802 | 0.096535 | 0.096535 | 0.061881 | 0 | 0 | 0 | 0 | 0.005476 | 0.142606 | 1,704 | 44 | 81 | 38.727273 | 0.824093 | 0.365023 | 0 | 0 | 0 | 0 | 0.136744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.08 | 0.28 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
24fd6c41fe4fbfb1df5a007cfef9baca40a53801 | 172 | py | Python | deciphon_cli/console/env.py | EBI-Metagenomics/deciphon-cli | aa090c886db1f4dacc6bc88b46b6ebcecb79eaab | [
"MIT"
] | null | null | null | deciphon_cli/console/env.py | EBI-Metagenomics/deciphon-cli | aa090c886db1f4dacc6bc88b46b6ebcecb79eaab | [
"MIT"
] | null | null | null | deciphon_cli/console/env.py | EBI-Metagenomics/deciphon-cli | aa090c886db1f4dacc6bc88b46b6ebcecb79eaab | [
"MIT"
] | null | null | null | import typer
import deciphon_cli.data as data
__all__ = ["app"]
app = typer.Typer()
@app.command()
def default():
typer.echo(data.env_example_content(), nl=False)
| 13.230769 | 52 | 0.703488 | 25 | 172 | 4.56 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151163 | 172 | 12 | 53 | 14.333333 | 0.780822 | 0 | 0 | 0 | 0 | 0 | 0.017442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 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 |
24fd822b165bd2a82075658d81849e6e2daa014f | 4,158 | py | Python | wftests/ci/pylint_checker.py | YutakaMizugaki/warriorframework | 685761cf044182ec88ce86a942d4be1e150a1256 | [
"Apache-2.0"
] | 24 | 2017-06-06T15:48:08.000Z | 2021-03-17T07:52:52.000Z | wftests/ci/pylint_checker.py | YutakaMizugaki/warriorframework | 685761cf044182ec88ce86a942d4be1e150a1256 | [
"Apache-2.0"
] | 272 | 2017-05-19T20:39:12.000Z | 2021-12-13T19:34:51.000Z | wftests/ci/pylint_checker.py | pavithra-gowda/warrior | 19b153310552b986b86b5470fcfea9547a74c3a9 | [
"Apache-2.0"
] | 37 | 2017-05-17T21:24:37.000Z | 2021-07-24T18:09:22.000Z | """
Get a list of file and run pylint on each of the files
on pull request source branch and target branch
"""
import sys
import subprocess
# from pylint import epylint as lint
def process_file_list(input_file, rc_file):
"""
Generate a list of files that need to be pylint
"""
filelist = open(input_... | 31.5 | 116 | 0.575998 | 565 | 4,158 | 4.145133 | 0.238938 | 0.038856 | 0.051238 | 0.029889 | 0.30316 | 0.235696 | 0.235696 | 0.192143 | 0.125961 | 0.125961 | 0 | 0.012097 | 0.284271 | 4,158 | 131 | 117 | 31.740458 | 0.774866 | 0.016354 | 0 | 0.275862 | 0 | 0 | 0.213715 | 0.007161 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011494 | 0.022989 | null | null | 0.218391 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
24ff72339ada2faf39d38cc9fe1209fcafd6136d | 3,269 | py | Python | draw_macros/drawEnvelope.py | nkarast/WWTheoryUncertainties | d2d3e5cab4cd72256cdc572fee05acfbe3372f5a | [
"MIT"
] | null | null | null | draw_macros/drawEnvelope.py | nkarast/WWTheoryUncertainties | d2d3e5cab4cd72256cdc572fee05acfbe3372f5a | [
"MIT"
] | null | null | null | draw_macros/drawEnvelope.py | nkarast/WWTheoryUncertainties | d2d3e5cab4cd72256cdc572fee05acfbe3372f5a | [
"MIT"
] | null | null | null | import ROOT as rt
import glob
debug = 1
def setstyle():
rt.gStyle.SetOptStat(0);
rt.gStyle.SetFillColor(10);
rt.gStyle.SetFrameFillColor(10);
rt.gStyle.SetCanvasColor(10);
rt.gStyle.SetPadColor(10);
rt.gStyle.SetTitleFillColor(0);
rt.gStyle.SetStatColor(10);
rt.gStyle.SetCanvasBorderM... | 28.181034 | 118 | 0.653105 | 424 | 3,269 | 4.981132 | 0.353774 | 0.090909 | 0.02983 | 0.017992 | 0.027462 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052256 | 0.186296 | 3,269 | 116 | 119 | 28.181034 | 0.741729 | 0.016213 | 0 | 0.021505 | 0 | 0.010753 | 0.083696 | 0.02738 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021505 | null | null | 0.021505 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7002ef7c1c1b47d0e90a43b630eeacf894b6e9ba | 3,071 | py | Python | code/nearest_neighbor_classify.py | lionelmessi6410/Scene-recognition-with-bag-of-words | 1bbc11cd060f792b54b86baa8a5f7483133b9f2c | [
"MIT"
] | 22 | 2019-11-27T04:14:07.000Z | 2022-01-10T08:16:58.000Z | code/nearest_neighbor_classify.py | lionelmessi6410/Scene-recognition-with-bag-of-words | 1bbc11cd060f792b54b86baa8a5f7483133b9f2c | [
"MIT"
] | null | null | null | code/nearest_neighbor_classify.py | lionelmessi6410/Scene-recognition-with-bag-of-words | 1bbc11cd060f792b54b86baa8a5f7483133b9f2c | [
"MIT"
] | 10 | 2019-12-13T07:31:09.000Z | 2021-12-18T18:21:20.000Z | from __future__ import print_function
import numpy as np
import scipy.spatial.distance as distance
def nearest_neighbor_classify(train_image_feats, train_labels, test_image_feats):
###########################################################################
# TODO: ... | 43.871429 | 83 | 0.471508 | 288 | 3,071 | 4.885417 | 0.4375 | 0.099502 | 0.063966 | 0.028429 | 0.157783 | 0.157783 | 0.082445 | 0.082445 | 0.082445 | 0.082445 | 0 | 0.002874 | 0.320091 | 3,071 | 70 | 84 | 43.871429 | 0.670977 | 0.451319 | 0 | 0 | 0 | 0 | 0.112108 | 0 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.041667 | false | 0 | 0.125 | 0 | 0.208333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
700d715f42f1fc60d05299634ce5489d3b1d246c | 1,178 | py | Python | programs/pygame/dwarf_fight/utils.py | xzpeter/pylibs | d4aa451e5ecb1cfb160a7e39846f9ae148e5c3d6 | [
"BSD-3-Clause"
] | null | null | null | programs/pygame/dwarf_fight/utils.py | xzpeter/pylibs | d4aa451e5ecb1cfb160a7e39846f9ae148e5c3d6 | [
"BSD-3-Clause"
] | null | null | null | programs/pygame/dwarf_fight/utils.py | xzpeter/pylibs | d4aa451e5ecb1cfb160a7e39846f9ae148e5c3d6 | [
"BSD-3-Clause"
] | null | null | null | import time
import math
import random
# Define some colors
black = ( 0, 0, 0)
white = ( 255, 255, 255)
green = ( 0, 255, 0)
blue = ( 0, 0, 255)
red = ( 255, 0, 0)
yellow = ( 255, 255, 0)
def debug (msg):
print "%s: %s" % (time.strftime("%D %H:%m:%S"), msg)
def warn (msg):
... | 22.653846 | 56 | 0.556876 | 177 | 1,178 | 3.649718 | 0.338983 | 0.012384 | 0.034056 | 0.049536 | 0.074303 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063702 | 0.293718 | 1,178 | 51 | 57 | 23.098039 | 0.71274 | 0.01528 | 0 | 0.097561 | 0 | 0 | 0.025907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073171 | null | null | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
70155480f5510345df2cb67b5bd92fa6a2bec8a6 | 4,564 | py | Python | yearn/vaults_v2.py | nymmrx/yearn-exporter | 64b87128b76cd637965abb56e421bfd67238e2a7 | [
"MIT"
] | null | null | null | yearn/vaults_v2.py | nymmrx/yearn-exporter | 64b87128b76cd637965abb56e421bfd67238e2a7 | [
"MIT"
] | null | null | null | yearn/vaults_v2.py | nymmrx/yearn-exporter | 64b87128b76cd637965abb56e421bfd67238e2a7 | [
"MIT"
] | 1 | 2021-06-04T19:07:16.000Z | 2021-06-04T19:07:16.000Z | from dataclasses import dataclass
from typing import List
from brownie import interface, web3
from brownie.network.contract import InterfaceContainer
from packaging import version
from yearn import strategies
from yearn import uniswap
from yearn.mutlicall import fetch_multicall
VAULTS_EVENT_TOPIC = '0xce089905ba4a4d... | 36.806452 | 118 | 0.72064 | 420 | 4,564 | 7.754762 | 0.366667 | 0.007369 | 0.044212 | 0.063555 | 0.116672 | 0.101934 | 0.101934 | 0.04237 | 0.04237 | 0.04237 | 0 | 0.214909 | 0.171122 | 4,564 | 123 | 119 | 37.105691 | 0.646048 | 0.182954 | 0 | 0.215054 | 0 | 0 | 0.387645 | 0.205557 | 0 | 0 | 0.205557 | 0.00813 | 0.010753 | 1 | 0.043011 | false | 0 | 0.086022 | 0.021505 | 0.204301 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
702de2efe4664687f5a4403142b920e4ac69ee5e | 22,245 | py | Python | exactdiag_4site2particles/fh.py | PedroMDuarte/thesis-hubbard | c63df1283086267bd3014e084b36408cbdcde5eb | [
"MIT"
] | 2 | 2019-06-08T14:55:24.000Z | 2021-01-18T13:52:17.000Z | exactdiag_4site2particles/fh.py | PedroMDuarte/thesis-hubbard | c63df1283086267bd3014e084b36408cbdcde5eb | [
"MIT"
] | null | null | null | exactdiag_4site2particles/fh.py | PedroMDuarte/thesis-hubbard | c63df1283086267bd3014e084b36408cbdcde5eb | [
"MIT"
] | 2 | 2020-07-08T05:50:34.000Z | 2022-01-17T09:57:31.000Z | import numpy as np
class lattice():
"""Contains functions to help out calculate matrices
in the Fermi-Hubbard model"""
def __init__(self, xs,ys,zs):
'''The dimensions of the grid are given to initialize the lattice.
Recommended max of 4 sites, otherwise it can take too long to
... | 32.713235 | 81 | 0.475882 | 2,917 | 22,245 | 3.607816 | 0.184779 | 0.006842 | 0.005131 | 0.003326 | 0.294185 | 0.268339 | 0.220544 | 0.207431 | 0.186716 | 0.165716 | 0 | 0.039583 | 0.391279 | 22,245 | 679 | 82 | 32.761414 | 0.737612 | 0.119937 | 0 | 0.29932 | 0 | 0 | 0.071437 | 0.002903 | 0 | 0 | 0 | 0 | 0.004535 | 0 | null | null | 0 | 0.020408 | null | null | 0.117914 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7030d6e9feb4e14bd7bd841d594abc3eb0f18ef0 | 5,422 | py | Python | tests/test_connection.py | miiklay/pymapd | 4665ea704eb7ffabf72048f1cb3519b4497b8830 | [
"Apache-2.0"
] | null | null | null | tests/test_connection.py | miiklay/pymapd | 4665ea704eb7ffabf72048f1cb3519b4497b8830 | [
"Apache-2.0"
] | null | null | null | tests/test_connection.py | miiklay/pymapd | 4665ea704eb7ffabf72048f1cb3519b4497b8830 | [
"Apache-2.0"
] | null | null | null | import pytest
from mapd.ttypes import TColumnType, TTypeInfo
from pymapd import OperationalError, connect
from pymapd.cursor import Cursor
from pymapd.connection import _parse_uri, ConnectionInfo
from pymapd._parsers import ColumnDetails, _extract_column_details
class TestConnect(object):
def test_host_specifie... | 43.725806 | 79 | 0.536887 | 549 | 5,422 | 5.129326 | 0.200364 | 0.051136 | 0.06392 | 0.068182 | 0.599787 | 0.554332 | 0.554332 | 0.554332 | 0.554332 | 0.554332 | 0 | 0.021203 | 0.356326 | 5,422 | 123 | 80 | 44.081301 | 0.785673 | 0.00166 | 0 | 0.409524 | 0 | 0 | 0.080022 | 0.018111 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.095238 | false | 0.057143 | 0.057143 | 0 | 0.180952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
703107f699c7f26c45918048eaa30145a2e5dcb7 | 1,149 | py | Python | setup.py | tmeiczin/pyautomount | 1e1b01538e8cb15931e63a97633f37f3e55a96b3 | [
"MIT"
] | null | null | null | setup.py | tmeiczin/pyautomount | 1e1b01538e8cb15931e63a97633f37f3e55a96b3 | [
"MIT"
] | null | null | null | setup.py | tmeiczin/pyautomount | 1e1b01538e8cb15931e63a97633f37f3e55a96b3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
from subprocess import Popen, PIPE
setup(
name='pyautomount',
version='1.0.0',
author=['Terrence Meiczinger'],
author_email='terrence72@gmail.com',
license='LICENSE',
url='https://github.com/tmeiczin/pyautomount',
download_u... | 29.461538 | 70 | 0.624021 | 112 | 1,149 | 6.258929 | 0.705357 | 0.081312 | 0.10699 | 0.048502 | 0.071327 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00905 | 0.230635 | 1,149 | 38 | 71 | 30.236842 | 0.783937 | 0.017406 | 0 | 0.085714 | 0 | 0 | 0.464539 | 0.022163 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.057143 | 0 | 0.057143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
70365219313e16a31641d194a9ebac7e3c52aa71 | 7,190 | py | Python | app/auth/views.py | fushouhai/flask_11_28 | 49a030d8a61a1a3cdd1f32746978781a5266c599 | [
"MIT"
] | null | null | null | app/auth/views.py | fushouhai/flask_11_28 | 49a030d8a61a1a3cdd1f32746978781a5266c599 | [
"MIT"
] | null | null | null | app/auth/views.py | fushouhai/flask_11_28 | 49a030d8a61a1a3cdd1f32746978781a5266c599 | [
"MIT"
] | null | null | null | from flask import render_template, redirect, request, url_for, flash, session, current_app
from flask_login import login_user, logout_user, login_required, \
current_user
from . import auth
from .. import db
from ..models import User
from ..email import send_email
from .forms import LoginForm, RegistrationForm, Cha... | 38.864865 | 108 | 0.665229 | 889 | 7,190 | 5.20135 | 0.150731 | 0.028547 | 0.073529 | 0.086505 | 0.588235 | 0.532007 | 0.443123 | 0.384516 | 0.292388 | 0.260164 | 0 | 0.001059 | 0.212239 | 7,190 | 184 | 109 | 39.076087 | 0.815325 | 0 | 0 | 0.345455 | 0 | 0 | 0.211266 | 0.054659 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084848 | false | 0.193939 | 0.048485 | 0 | 0.309091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
703c18b3d77e9deeb40500573ea0b2b61e8d29d8 | 12,733 | py | Python | src/evaluation_system/model/user.py | FREVA-CLINT/Freva | 53c6d0951a8dcfe985c8f33cbb3fbac7e8a3db04 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2020-06-12T18:18:48.000Z | 2021-12-18T03:35:08.000Z | src/evaluation_system/model/user.py | FREVA-CLINT/Freva | 53c6d0951a8dcfe985c8f33cbb3fbac7e8a3db04 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/evaluation_system/model/user.py | FREVA-CLINT/Freva | 53c6d0951a8dcfe985c8f33cbb3fbac7e8a3db04 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | '''
.. moduleauthor:: Sebastian Illing / estani
This module manages the abstraction of a user providing thus all information about him/her that
might be required anywhere else.
'''
import pwd
import os
import sys
from ConfigParser import SafeConfigParser as Config
from evaluation_system.misc import config, utils
from ... | 42.872054 | 130 | 0.641404 | 1,612 | 12,733 | 4.968983 | 0.183002 | 0.035955 | 0.015106 | 0.021348 | 0.402497 | 0.369164 | 0.348315 | 0.290262 | 0.290262 | 0.280774 | 0 | 0.000741 | 0.258305 | 12,733 | 296 | 131 | 43.016892 | 0.847416 | 0.079636 | 0 | 0.085271 | 0 | 0 | 0.090721 | 0.008274 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015504 | 0.046512 | 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 |
703c2951dba5449a5db47926cbcfb472f6a8c13d | 622 | py | Python | python/sortalgorithm/quickSort.py | Turingu/leetcode | ac75c14604b29df394b768b23a94bb7bf310777b | [
"MIT"
] | 1 | 2020-01-01T17:46:11.000Z | 2020-01-01T17:46:11.000Z | python/sortalgorithm/quickSort.py | Turingu/leetcode | ac75c14604b29df394b768b23a94bb7bf310777b | [
"MIT"
] | null | null | null | python/sortalgorithm/quickSort.py | Turingu/leetcode | ac75c14604b29df394b768b23a94bb7bf310777b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
class QuickSort:
"""
快速排序
"""
def __init__(self):
pass
def quicksort(self, nums):
if len(nums) == 1 or len(nums) == 0:
return nums
less = []
greater = []
middle_num = nums.pop()
for num i... | 19.4375 | 76 | 0.5 | 73 | 622 | 4.041096 | 0.506849 | 0.122034 | 0.074576 | 0.094915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022613 | 0.360129 | 622 | 31 | 77 | 20.064516 | 0.718593 | 0.075563 | 0 | 0 | 0 | 0 | 0.014337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.058824 | 0 | 0 | 0.294118 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7041ada191d0f5730f5d5dde284d632d5177384a | 24,098 | py | Python | src/SegnetModel.py | JasonChu1313/Satellite-Segmentation | c41727af305d09ce93f745b841d228b7a4f24a9c | [
"MIT"
] | 1 | 2019-01-29T04:35:39.000Z | 2019-01-29T04:35:39.000Z | src/SegnetModel.py | JasonChu1313/Satellite-Segmentation | c41727af305d09ce93f745b841d228b7a4f24a9c | [
"MIT"
] | null | null | null | src/SegnetModel.py | JasonChu1313/Satellite-Segmentation | c41727af305d09ce93f745b841d228b7a4f24a9c | [
"MIT"
] | null | null | null | from Model import Model
from Config import Config
from math import ceil
import readfile
import customer_init
import numpy as np
import time
import datetime
import util
import os
import random
from tempfile import TemporaryFile
from customer_init import orthogonal_initializer
import tensorflow as tf
from tensorflow.core... | 48.196 | 146 | 0.586314 | 2,931 | 24,098 | 4.564995 | 0.148414 | 0.036622 | 0.015695 | 0.01704 | 0.393049 | 0.334604 | 0.293423 | 0.248655 | 0.224439 | 0.195217 | 0 | 0.026658 | 0.310399 | 24,098 | 499 | 147 | 48.292585 | 0.778493 | 0.189061 | 0 | 0.20339 | 0 | 0 | 0.038655 | 0.003476 | 0 | 0 | 0 | 0 | 0.00339 | 0 | null | null | 0.00678 | 0.057627 | null | null | 0.023729 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
70474720aff7dcf7a5a4c61d68b746a8c74298dc | 51,753 | py | Python | pythonjs/runtime/builtins.py | bpmbank/PythonJS | 591a80afd8233fb715493591db2b68f1748558d9 | [
"BSD-3-Clause"
] | 319 | 2015-01-02T11:34:16.000Z | 2022-03-25T00:43:33.000Z | pythonjs/runtime/builtins.py | bpmbank/PythonJS | 591a80afd8233fb715493591db2b68f1748558d9 | [
"BSD-3-Clause"
] | 10 | 2015-02-03T02:33:09.000Z | 2021-11-09T21:41:00.000Z | pythonjs/runtime/builtins.py | bpmbank/PythonJS | 591a80afd8233fb715493591db2b68f1748558d9 | [
"BSD-3-Clause"
] | 61 | 2015-01-02T12:01:56.000Z | 2021-12-08T07:16:16.000Z | # PythonJS builtins
# by Amirouche Boubekki and Brett Hartshorn - copyright 2013
# License: "New BSD"
pythonjs.configure( runtime_exceptions=False )
pythonjs.configure( direct_operator='+' )
pythonjs.configure( direct_operator='*' )
pythonjs.configure( direct_keys=True )
_PythonJS_UID = 0
inline('IndexError = functi... | 25.14723 | 177 | 0.638591 | 7,240 | 51,753 | 4.397376 | 0.104696 | 0.009235 | 0.005026 | 0.002764 | 0.309012 | 0.252097 | 0.212363 | 0.181581 | 0.162515 | 0.132864 | 0 | 0.01067 | 0.224934 | 51,753 | 2,057 | 178 | 25.159456 | 0.782983 | 0.148668 | 0 | 0.385219 | 0 | 0.00327 | 0.101019 | 0.017401 | 0 | 0 | 0 | 0.003403 | 0 | 0 | null | null | 0.00654 | 0 | null | null | 0.007194 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
704898ebecbbd9155f7d6b166429c2459741b79f | 1,714 | py | Python | feedmapper/migrations/0001_initial.py | benwhalley/django-feedmapper | 23eeabeda4d7ab6c3404f96348905c2ca12e964e | [
"BSD-3-Clause"
] | null | null | null | feedmapper/migrations/0001_initial.py | benwhalley/django-feedmapper | 23eeabeda4d7ab6c3404f96348905c2ca12e964e | [
"BSD-3-Clause"
] | null | null | null | feedmapper/migrations/0001_initial.py | benwhalley/django-feedmapper | 23eeabeda4d7ab6c3404f96348905c2ca12e964e | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-11-26 10:42
from __future__ import unicode_literals
from django.db import migrations, models
import jsonfield.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(... | 51.939394 | 234 | 0.658693 | 198 | 1,714 | 5.550505 | 0.5 | 0.100091 | 0.032757 | 0.051865 | 0.062784 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019853 | 0.206534 | 1,714 | 32 | 235 | 53.5625 | 0.788235 | 0.040257 | 0 | 0 | 1 | 0 | 0.272229 | 0.048721 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.291667 | 0 | 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 |
7048c4e22df4e28d615e6cb3c66edb19918a9647 | 1,264 | py | Python | static/_source.py | Manazius/blacksmith-bot | c31ebdc8f8df1ab79ea1cc833e2c5c2266a231ea | [
"Apache-2.0"
] | 3 | 2015-10-15T15:40:17.000Z | 2021-06-08T05:39:21.000Z | static/_source.py | Manazius/blacksmith-bot | c31ebdc8f8df1ab79ea1cc833e2c5c2266a231ea | [
"Apache-2.0"
] | 1 | 2019-04-06T11:54:56.000Z | 2019-04-07T00:57:49.000Z | static/_source.py | Manazius/blacksmith-bot | c31ebdc8f8df1ab79ea1cc833e2c5c2266a231ea | [
"Apache-2.0"
] | 3 | 2015-10-26T14:49:57.000Z | 2018-03-04T15:34:11.000Z | # coding: utf-8
# BlackSmith general configuration file
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Jabber server to connect
SERVER = 'example.com'
# Connecting Port
PORT = 5222
# Jabber server`s connecting Host
HOST = 'example.com'
# Using TLS (True - to enable, False - to disable)
SECURE ... | 22.175439 | 72 | 0.58307 | 148 | 1,264 | 4.918919 | 0.601351 | 0.041209 | 0.065934 | 0.046703 | 0.151099 | 0.151099 | 0 | 0 | 0 | 0 | 0 | 0.022388 | 0.151899 | 1,264 | 56 | 73 | 22.571429 | 0.656716 | 0.698576 | 0 | 0 | 0 | 0 | 0.218487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
704c2153fa8d91e12d420a68efc08384b40b0410 | 2,025 | py | Python | src/ndn/app_support/light_versec/grammar.py | tianyuan129/python-ndn | f390b3122d2a233a9a22a1ee9468b1241c46ef86 | [
"Apache-2.0"
] | null | null | null | src/ndn/app_support/light_versec/grammar.py | tianyuan129/python-ndn | f390b3122d2a233a9a22a1ee9468b1241c46ef86 | [
"Apache-2.0"
] | null | null | null | src/ndn/app_support/light_versec/grammar.py | tianyuan129/python-ndn | f390b3122d2a233a9a22a1ee9468b1241c46ef86 | [
"Apache-2.0"
] | 1 | 2020-09-25T18:38:23.000Z | 2020-09-25T18:38:23.000Z | # -----------------------------------------------------------------------------
# This piece of work is inspired by Pollere' VerSec:
# https://github.com/pollere/DCT
# But this code is implemented independently without using any line of the
# original one, and released under Apache License.
#
# Copyright (C) 2019-2022 ... | 36.818182 | 79 | 0.609877 | 252 | 2,025 | 4.718254 | 0.484127 | 0.050463 | 0.037006 | 0.026913 | 0.074853 | 0.053827 | 0.053827 | 0.053827 | 0 | 0 | 0 | 0.007552 | 0.215309 | 2,025 | 54 | 80 | 37.5 | 0.740717 | 0.474568 | 0 | 0.076923 | 0 | 0 | 0.957733 | 0.020173 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7052230dd2fbe62419de26e704bc3a6fc7f8c7d8 | 335 | py | Python | service/models.py | robscarvalho8/currency_converter | 21ac36583da15271bfbae9ee511093948af37534 | [
"MIT"
] | null | null | null | service/models.py | robscarvalho8/currency_converter | 21ac36583da15271bfbae9ee511093948af37534 | [
"MIT"
] | null | null | null | service/models.py | robscarvalho8/currency_converter | 21ac36583da15271bfbae9ee511093948af37534 | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Date, Integer, String, Float
from database import Base
class Currency(Base):
__tablename__ = "currency"
id = Column(Integer, primary_key=True, autoincrement=True)
name = Column(String)
abbreviated = Column(String)
dolar_quotation = Column(Float)
date_quotation ... | 23.928571 | 62 | 0.728358 | 39 | 335 | 6.076923 | 0.564103 | 0.084388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185075 | 335 | 13 | 63 | 25.769231 | 0.868132 | 0 | 0 | 0 | 0 | 0 | 0.023881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7055e9bdeeea00b88731d10f9f645b5f2d10ded1 | 3,640 | py | Python | stanCode_Projects/boggle_game_solver/boggle.py | yjchang-tw/sc-projects | 474f10ec740b8ce9dedcdd01f8c285f58d642ec8 | [
"MIT"
] | null | null | null | stanCode_Projects/boggle_game_solver/boggle.py | yjchang-tw/sc-projects | 474f10ec740b8ce9dedcdd01f8c285f58d642ec8 | [
"MIT"
] | null | null | null | stanCode_Projects/boggle_game_solver/boggle.py | yjchang-tw/sc-projects | 474f10ec740b8ce9dedcdd01f8c285f58d642ec8 | [
"MIT"
] | null | null | null | """
File: boggle.py
Name:
----------------------------------------
TODO:
"""
# This is the file name of the dictionary txt file
# we will be checking if a word exists by searching through it
FILE = 'dictionary.txt'
dict_list = []
final = []
def main():
"""
TODO:
"""
read_dictionary()
temp = ''
word_lst = []
for... | 21.162791 | 96 | 0.545055 | 583 | 3,640 | 3.301887 | 0.210978 | 0.123636 | 0.054026 | 0.054026 | 0.254026 | 0.162597 | 0.022857 | 0.022857 | 0 | 0 | 0 | 0.038288 | 0.268132 | 3,640 | 171 | 97 | 21.28655 | 0.684309 | 0.432692 | 0 | 0.1 | 0 | 0 | 0.057839 | 0 | 0 | 0 | 0 | 0.011696 | 0 | 1 | 0.057143 | false | 0 | 0 | 0 | 0.085714 | 0.042857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
7056d18658c61757b2d33f0ad939e77a9975faf5 | 207 | py | Python | tags/urls.py | jrdbnntt/FaceTags | 0d2e9a78521d90f19f3feb6440421a42f0327472 | [
"Apache-2.0"
] | null | null | null | tags/urls.py | jrdbnntt/FaceTags | 0d2e9a78521d90f19f3feb6440421a42f0327472 | [
"Apache-2.0"
] | null | null | null | tags/urls.py | jrdbnntt/FaceTags | 0d2e9a78521d90f19f3feb6440421a42f0327472 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
import views
urlpatterns = [
url(r'^user/', views.get_user, name='user'),
url(r'^all/', views.get_all, name='all'),
url(r'^fix/$', views.get_fix, name='fix'),
]
| 23 | 48 | 0.628019 | 33 | 207 | 3.848485 | 0.424242 | 0.094488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154589 | 207 | 8 | 49 | 25.875 | 0.725714 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
705c42c02eee24ad63d65a1412a711fc1a3dbabb | 377 | py | Python | code/utils.py | Riccorl/ml-malware-classifier | f07d40f395bf11169d6eb57b9975760e625eb092 | [
"MIT"
] | 5 | 2018-11-26T13:34:20.000Z | 2019-10-22T03:25:24.000Z | code/utils.py | Riccorl/ml-malware-classificator | f07d40f395bf11169d6eb57b9975760e625eb092 | [
"MIT"
] | 2 | 2019-06-01T05:28:14.000Z | 2019-06-02T10:55:42.000Z | code/utils.py | Riccorl/ml-malware-classificator | f07d40f395bf11169d6eb57b9975760e625eb092 | [
"MIT"
] | 2 | 2020-09-20T21:22:59.000Z | 2021-05-26T02:57:41.000Z | def timer(start: float, end: float) -> str:
"""
Timer function. Compute execution time from strart to end (end - start).
:param start: start time
:param end: end time
:return: end - start
"""
hours, rem = divmod(end - start, 3600)
minutes, seconds = divmod(rem, 60)
return "{:0>2}:{:0... | 31.416667 | 77 | 0.607427 | 53 | 377 | 4.320755 | 0.528302 | 0.104803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044674 | 0.228117 | 377 | 11 | 78 | 34.272727 | 0.742268 | 0.3687 | 0 | 0 | 0 | 0 | 0.105263 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7060539b2e45ee14195f9314ca889a6ddf2387b8 | 695 | py | Python | malib/envs/gr_football/__init__.py | ReinholdM/play_football_with_human | 9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c | [
"MIT"
] | 5 | 2021-11-17T03:11:13.000Z | 2021-12-23T09:04:21.000Z | malib/envs/gr_football/__init__.py | ReinholdM/play_football_with_human | 9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c | [
"MIT"
] | null | null | null | malib/envs/gr_football/__init__.py | ReinholdM/play_football_with_human | 9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c | [
"MIT"
] | null | null | null | from .grf_env import BaseGFootBall as base_env, ParameterSharingWrapper
from .encoders import encoder_basic, encoder_highpass, rewarder_basic
default_config = {
# env building config
"use_built_in_GK": True,
"scenario_config": {
"env_name": "5_vs_5",
"number_of_left_players_agent_controls":... | 28.958333 | 71 | 0.661871 | 81 | 695 | 5.308642 | 0.617284 | 0.048837 | 0.093023 | 0.097674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009225 | 0.220144 | 695 | 23 | 72 | 30.217391 | 0.784133 | 0.064748 | 0 | 0 | 0 | 0 | 0.301391 | 0.153014 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.111111 | 0.055556 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
706338e7331b1562584249f362b42d600f79a095 | 1,215 | py | Python | tools/perf/contrib/cluster_telemetry/rasterize_and_record_micro_ct.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | tools/perf/contrib/cluster_telemetry/rasterize_and_record_micro_ct.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | tools/perf/contrib/cluster_telemetry/rasterize_and_record_micro_ct.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from contrib.cluster_telemetry import ct_benchmarks_util
from contrib.cluster_telemetry import page_set
from contrib.cluster_telemetry import repaint_helpers... | 34.714286 | 73 | 0.8107 | 140 | 1,215 | 6.785714 | 0.542857 | 0.063158 | 0.094737 | 0.096842 | 0.201053 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003791 | 0.131687 | 1,215 | 34 | 74 | 35.735294 | 0.896682 | 0.209054 | 0 | 0.142857 | 0 | 0 | 0.030462 | 0.030462 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.190476 | 0.095238 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
706e04d6ec9e8da6c51a9f6c58f84eb9714001e8 | 691 | py | Python | 2016/python/day20.py | astonshane/AdventOfCode | 25c7380e73eede3f79287de6a9dedc8314ab7965 | [
"MIT"
] | null | null | null | 2016/python/day20.py | astonshane/AdventOfCode | 25c7380e73eede3f79287de6a9dedc8314ab7965 | [
"MIT"
] | null | null | null | 2016/python/day20.py | astonshane/AdventOfCode | 25c7380e73eede3f79287de6a9dedc8314ab7965 | [
"MIT"
] | null | null | null | MAX = 4294967295
blacklist = []
with open("inputs/day20.txt") as f:
for line in f:
line = line.strip().split('-')
blacklist.append([int(x) for x in line])
blacklist.sort()
def part1():
ip = 0
for i in range(0, len(blacklist)):
bl = blacklist[i]
if ip < bl[0]:
... | 16.452381 | 48 | 0.47178 | 102 | 691 | 3.166667 | 0.343137 | 0.06192 | 0.055728 | 0.065015 | 0.396285 | 0.371517 | 0.371517 | 0.371517 | 0.272446 | 0.272446 | 0 | 0.078341 | 0.371925 | 691 | 41 | 49 | 16.853659 | 0.665899 | 0 | 0 | 0.37931 | 0 | 0 | 0.047757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
707f2e96048822ebc61af551711d5b289dab5523 | 4,550 | py | Python | model.py | Riksi/nerf | 4cbc0a19f2abd80465b4fba9ba2d6dbfd4ab08ea | [
"MIT"
] | null | null | null | model.py | Riksi/nerf | 4cbc0a19f2abd80465b4fba9ba2d6dbfd4ab08ea | [
"MIT"
] | null | null | null | model.py | Riksi/nerf | 4cbc0a19f2abd80465b4fba9ba2d6dbfd4ab08ea | [
"MIT"
] | null | null | null | import tensorflow as tf
import math
from helpers import get_rays, ndc_rays
def get_sample_bounds(near, far, num_samples):
diff = (far - near)
idx = tf.range(num_samples)
diff_term = diff / num_samples
start = near + idx * diff_term
end = start + diff_term
return start, end
def get_embedding(... | 25.561798 | 96 | 0.526154 | 556 | 4,550 | 4.098921 | 0.251799 | 0.048267 | 0.022817 | 0.031593 | 0.171128 | 0.124616 | 0.074594 | 0.074594 | 0.074594 | 0 | 0 | 0.021024 | 0.351868 | 4,550 | 177 | 97 | 25.706215 | 0.75178 | 0.046154 | 0 | 0.074074 | 0 | 0 | 0.001862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027778 | 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 |
70835d3043da389a933c6f4fb7d3c80b37959050 | 3,056 | py | Python | diagnostics/diagnostic_analysis/scripts/export_csv.py | zhj-buffer/ROS2-driver-for-Realsense | 936cf27be4e7dc3d699ff99499e72ea8638cc622 | [
"Apache-2.0"
] | 2 | 2021-07-14T12:33:55.000Z | 2021-11-21T07:14:13.000Z | melodic/src/diagnostics/diagnostic_analysis/scripts/export_csv.py | disorn-inc/ROS-melodic-python3-Opencv-4.1.1-CUDA | 3d265bb64712e3cd7dfa0ad56d78fcdebafdb4b0 | [
"BSD-3-Clause"
] | 1 | 2021-07-08T10:26:06.000Z | 2021-07-08T10:31:11.000Z | melodic/src/diagnostics/diagnostic_analysis/scripts/export_csv.py | disorn-inc/ROS-melodic-python3-Opencv-4.1.1-CUDA | 3d265bb64712e3cd7dfa0ad56d78fcdebafdb4b0 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
#
# Software License Agreement (BSD License)
#
# Copyright (c) 2008, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code m... | 39.179487 | 96 | 0.708115 | 403 | 3,056 | 5.315136 | 0.526055 | 0.011204 | 0.019608 | 0.021008 | 0.085901 | 0.063492 | 0.063492 | 0.063492 | 0.063492 | 0.063492 | 0 | 0.002494 | 0.212696 | 3,056 | 77 | 97 | 39.688312 | 0.887781 | 0.551047 | 0 | 0 | 0 | 0 | 0.174663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.241379 | null | null | 0.172414 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
708a5b2019c15309a0d19d434e0322b1d3a4cda7 | 325 | py | Python | unit_06/car7.py | janusnic/21v-pyqt | 8ee3828e1c6e6259367d6cedbd63b9057cf52c24 | [
"MIT"
] | null | null | null | unit_06/car7.py | janusnic/21v-pyqt | 8ee3828e1c6e6259367d6cedbd63b9057cf52c24 | [
"MIT"
] | null | null | null | unit_06/car7.py | janusnic/21v-pyqt | 8ee3828e1c6e6259367d6cedbd63b9057cf52c24 | [
"MIT"
] | 2 | 2019-11-14T15:04:22.000Z | 2021-10-31T07:34:46.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sqlite3 as lite
import sys
uId = 1
uPrice = 62300
con = lite.connect('test.db')
with con:
cur = con.cursor()
cur.execute("UPDATE Cars SET Price=? WHERE Id=?", (uPrice, uId))
con.commit()
print "Number of rows updated: %d" % cur.row... | 17.105263 | 76 | 0.593846 | 46 | 325 | 4.195652 | 0.804348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032922 | 0.252308 | 325 | 19 | 77 | 17.105263 | 0.761317 | 0.116923 | 0 | 0 | 0 | 0 | 0.234266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
708ddb951ae7cdc4d261f043827396558a075007 | 1,470 | py | Python | packages/pyright-internal/src/tests/samples/properties3.py | Jasha10/pyright | 0ce0cfa10fe7faa41071a2cc417bb449cf8276fe | [
"MIT"
] | 3,934 | 2019-03-22T09:26:41.000Z | 2019-05-06T21:03:08.000Z | packages/pyright-internal/src/tests/samples/properties3.py | Jasha10/pyright | 0ce0cfa10fe7faa41071a2cc417bb449cf8276fe | [
"MIT"
] | 107 | 2019-03-24T04:09:37.000Z | 2019-05-06T17:00:04.000Z | packages/pyright-internal/src/tests/samples/properties3.py | Jasha10/pyright | 0ce0cfa10fe7faa41071a2cc417bb449cf8276fe | [
"MIT"
] | 119 | 2019-03-23T10:48:04.000Z | 2019-05-06T08:57:56.000Z | # This sample tests the type checker's ability to handle
# custom subclasses of property.
from typing import Any, Callable
class custom_property1(property):
pass
class Custom1(object):
@custom_property1
def x(self) -> int:
return 3
@custom_property1
def y(self) -> float:
retur... | 15.638298 | 64 | 0.627211 | 228 | 1,470 | 3.964912 | 0.302632 | 0.030973 | 0.061947 | 0.088496 | 0.420354 | 0.373894 | 0.373894 | 0.283186 | 0.24115 | 0.150442 | 0 | 0.035714 | 0.27619 | 1,470 | 93 | 65 | 15.806452 | 0.81391 | 0.259184 | 0 | 0.529412 | 0 | 0 | 0.004638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.196078 | false | 0.117647 | 0.019608 | 0.078431 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
70a1684fb88e63e0907be1bba1399d11eb060a74 | 150 | py | Python | Project_Euler/01_mults_3_or_5/find_sum.py | perlygatekeeper/glowing-robot | 7ef5eb089f552a1de309092606c95e805e6723a0 | [
"Artistic-2.0"
] | 2 | 2015-06-05T15:40:06.000Z | 2020-03-19T17:08:37.000Z | Project_Euler/01_mults_3_or_5/find_sum.py | perlygatekeeper/glowing-robot | 7ef5eb089f552a1de309092606c95e805e6723a0 | [
"Artistic-2.0"
] | null | null | null | Project_Euler/01_mults_3_or_5/find_sum.py | perlygatekeeper/glowing-robot | 7ef5eb089f552a1de309092606c95e805e6723a0 | [
"Artistic-2.0"
] | null | null | null | #!/opt/local/bin/python
sum_3_5 = 0
for i in range(1,1000):
if i % 3 == 0 or i % 5 == 0:
print(i)
sum_3_5 += i
print(sum_3_5)
| 12.5 | 32 | 0.513333 | 32 | 150 | 2.21875 | 0.53125 | 0.169014 | 0.211268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158416 | 0.326667 | 150 | 11 | 33 | 13.636364 | 0.544554 | 0.146667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
70a9bb288ab4678c73dcaaed29cf5fcda9867f4f | 1,115 | py | Python | playlist_creation/migrations/0002_create_privacy_policy_flatpage.py | theLionWar/time_capsule | 64a5c8f430e6815dae8ee2f93f55d9b406911377 | [
"MIT"
] | null | null | null | playlist_creation/migrations/0002_create_privacy_policy_flatpage.py | theLionWar/time_capsule | 64a5c8f430e6815dae8ee2f93f55d9b406911377 | [
"MIT"
] | null | null | null | playlist_creation/migrations/0002_create_privacy_policy_flatpage.py | theLionWar/time_capsule | 64a5c8f430e6815dae8ee2f93f55d9b406911377 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-08-03 15:02
from django.contrib.sites.management import create_default_site
from django.db import migrations
def create_privacy_policy_flatpage(apps, schema_editor):
Site = apps.get_model("sites", "Site")
site = Site.objects.first()
if not site:
create_default_s... | 30.135135 | 76 | 0.658296 | 127 | 1,115 | 5.559055 | 0.464567 | 0.128895 | 0.11898 | 0.076487 | 0.209632 | 0.209632 | 0 | 0 | 0 | 0 | 0 | 0.026682 | 0.226906 | 1,115 | 36 | 77 | 30.972222 | 0.792343 | 0.040359 | 0 | 0.153846 | 1 | 0 | 0.142322 | 0.022472 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.269231 | 0 | 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 |
70aa7222dc1e2e9cae7903ea030f5828a1ff715a | 3,607 | py | Python | profiles_api/views.py | singhmonika10/profiles-rest-api | 69b403aaa24ca16a265db06cdbc99c970eb146c1 | [
"MIT"
] | null | null | null | profiles_api/views.py | singhmonika10/profiles-rest-api | 69b403aaa24ca16a265db06cdbc99c970eb146c1 | [
"MIT"
] | 6 | 2020-06-06T01:42:09.000Z | 2021-06-10T20:01:52.000Z | profiles_api/views.py | singhmonika10/profiles-rest-api | 69b403aaa24ca16a265db06cdbc99c970eb146c1 | [
"MIT"
] | null | null | null | from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework import viewsets
from rest_framework.authentication import TokenAuthentication
from rest_framework import filters
from profiles_api import serializers
from profiles_api import mo... | 30.567797 | 76 | 0.640144 | 392 | 3,607 | 5.788265 | 0.32398 | 0.080212 | 0.040106 | 0.052446 | 0.352138 | 0.2684 | 0.183341 | 0.183341 | 0.183341 | 0.183341 | 0 | 0.002217 | 0.249792 | 3,607 | 117 | 77 | 30.82906 | 0.83629 | 0.107291 | 0 | 0.253521 | 0 | 0 | 0.163544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15493 | false | 0 | 0.126761 | 0 | 0.619718 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5606244a09399ed959432761133bc9ec94e45b68 | 5,831 | py | Python | mprocessing/client.py | ftranschel/evoMPS | b9e8d13066d12ee779376fdfd24ac2b34ac73ba2 | [
"BSD-3-Clause"
] | 1 | 2017-02-26T12:36:40.000Z | 2017-02-26T12:36:40.000Z | mprocessing/client.py | ftranschel/evoMPS | b9e8d13066d12ee779376fdfd24ac2b34ac73ba2 | [
"BSD-3-Clause"
] | null | null | null | mprocessing/client.py | ftranschel/evoMPS | b9e8d13066d12ee779376fdfd24ac2b34ac73ba2 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This module is part of
an extension of evoMPS by adding
dissipative dynmaics based on
Monte-Carlo methods.
This part is the client file
for the distributed computing
framework that utilizes parallel
processing to speed up dissipative
dynamics.
@author: F.W.G. Transch... | 28.724138 | 79 | 0.629395 | 776 | 5,831 | 4.612113 | 0.367268 | 0.013412 | 0.013412 | 0.00922 | 0.077396 | 0.077396 | 0.060631 | 0.043308 | 0.03297 | 0.03297 | 0 | 0.006286 | 0.290688 | 5,831 | 202 | 80 | 28.866337 | 0.859043 | 0.079403 | 0 | 0.214286 | 0 | 0 | 0.099232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008929 | 0.205357 | null | null | 0.133929 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
560a9dc22e71652afba1f2f2605eeeb97cccd37c | 2,268 | py | Python | auctions/models.py | adamiantorno/CS50W-commerce | 017d690b8b344158f0bdcff165f60702f173618b | [
"MIT"
] | null | null | null | auctions/models.py | adamiantorno/CS50W-commerce | 017d690b8b344158f0bdcff165f60702f173618b | [
"MIT"
] | null | null | null | auctions/models.py | adamiantorno/CS50W-commerce | 017d690b8b344158f0bdcff165f60702f173618b | [
"MIT"
] | null | null | null | from django.contrib.auth.models import AbstractUser
from django.urls import reverse
from django.db import models
from datetime import date
class User(AbstractUser):
pass
class Listing(models.Model):
CATEGORIES = (
('ART', 'Art'),
('CLT', 'Clothing & Accessories'),
('ELE', 'Electronic... | 32.4 | 104 | 0.689594 | 279 | 2,268 | 5.437276 | 0.362007 | 0.036915 | 0.064601 | 0.096902 | 0.428477 | 0.411997 | 0.340804 | 0.264997 | 0.264997 | 0.170073 | 0 | 0.009081 | 0.174603 | 2,268 | 69 | 105 | 32.869565 | 0.801282 | 0 | 0 | 0.083333 | 0 | 0 | 0.136544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104167 | false | 0.020833 | 0.083333 | 0.104167 | 0.791667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5611625ebacc0d47640b097555b0e9f837492d3b | 3,109 | py | Python | CameraToServer/python/client/SendDataWithSSL.py | yabuta/CameraSender | 99b84ae941782924ecb677a1f38a18dd082459d5 | [
"MIT"
] | null | null | null | CameraToServer/python/client/SendDataWithSSL.py | yabuta/CameraSender | 99b84ae941782924ecb677a1f38a18dd082459d5 | [
"MIT"
] | null | null | null | CameraToServer/python/client/SendDataWithSSL.py | yabuta/CameraSender | 99b84ae941782924ecb677a1f38a18dd082459d5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import socket
import cv2
import time
import threading
import datetime
import ssl
import readSettings as RS
"""
send picture per 5 second.
when called stop, thread finish.
picture convert from mat to jpeg
"""
class SendThread(threading.Thread):
def __init__(self... | 29.330189 | 90 | 0.5468 | 354 | 3,109 | 4.672316 | 0.412429 | 0.027207 | 0.024184 | 0.019347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012407 | 0.351882 | 3,109 | 105 | 91 | 29.609524 | 0.808437 | 0.108717 | 0 | 0.030769 | 0 | 0 | 0.041463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107692 | null | null | 0.092308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
561789e6a59c1c859ca74d0814d0ff171e8cafa1 | 6,112 | py | Python | PyFunceble/checker/syntax/domain_base.py | Centaurioun/PyFunceble | 59b809f3322118f7824195752c6015220738d4a0 | [
"Apache-2.0"
] | 213 | 2017-11-19T16:00:29.000Z | 2022-03-30T20:51:35.000Z | PyFunceble/checker/syntax/domain_base.py | Centaurioun/PyFunceble | 59b809f3322118f7824195752c6015220738d4a0 | [
"Apache-2.0"
] | 270 | 2018-01-10T12:42:41.000Z | 2022-03-22T00:03:23.000Z | PyFunceble/checker/syntax/domain_base.py | Centaurioun/PyFunceble | 59b809f3322118f7824195752c6015220738d4a0 | [
"Apache-2.0"
] | 48 | 2017-12-09T22:53:49.000Z | 2022-01-29T15:50:52.000Z | """
The tool to check the availability or syntax of domain, IP or URL.
::
██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗
██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝
██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ █████╗ █... | 29.52657 | 125 | 0.586224 | 697 | 6,112 | 5.596844 | 0.341463 | 0.034607 | 0.043066 | 0.032299 | 0.163804 | 0.14586 | 0.075365 | 0.075365 | 0.053832 | 0.030761 | 0 | 0.011366 | 0.26587 | 6,112 | 206 | 126 | 29.669903 | 0.770894 | 0.434228 | 0 | 0.2 | 0 | 0 | 0.006829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.516667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
562235d95b74c7a9bd19a09f477eb9ad2191d459 | 8,183 | py | Python | Computer_science/B05_Python/01_Basics/S12_Debugging.py | Polirecyliente/SGConocimiento | 560b08984236d7a10f50c6b5e6fb28844193d81b | [
"CC-BY-4.0"
] | null | null | null | Computer_science/B05_Python/01_Basics/S12_Debugging.py | Polirecyliente/SGConocimiento | 560b08984236d7a10f50c6b5e6fb28844193d81b | [
"CC-BY-4.0"
] | null | null | null | Computer_science/B05_Python/01_Basics/S12_Debugging.py | Polirecyliente/SGConocimiento | 560b08984236d7a10f50c6b5e6fb28844193d81b | [
"CC-BY-4.0"
] | null | null | null |
# Debugging
#T# Table of contents
#C# Python debugger (pdb)
#T# Beginning of content
#C# Python debugger (pdb)
# |-------------------------------------------------------------
#T# pdb is the builtin Python debugger, it has breakpoints, stepping through the code, printing the values of variables, post-mortem deb... | 42.619792 | 253 | 0.717096 | 1,333 | 8,183 | 4.366842 | 0.221305 | 0.021989 | 0.051366 | 0.034015 | 0.267308 | 0.197045 | 0.160969 | 0.144305 | 0.144305 | 0.121972 | 0 | 0.037463 | 0.181229 | 8,183 | 192 | 254 | 42.619792 | 0.831343 | 0.873396 | 0 | 0.589744 | 0 | 0 | 0.12561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.051282 | 0 | 0.128205 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5624f94b924fed45d90c5a7120d1219ba2228c0e | 543 | py | Python | python3/numpy/numpy_absolute.py | Nahid-Hassan/code-snippets | 24bd4b81564887822a0801a696001fcbeb6a7a75 | [
"MIT"
] | 2 | 2020-09-29T04:09:41.000Z | 2020-10-18T13:33:36.000Z | python3/numpy/numpy_absolute.py | Nahid-Hassan/code-snippets | 24bd4b81564887822a0801a696001fcbeb6a7a75 | [
"MIT"
] | null | null | null | python3/numpy/numpy_absolute.py | Nahid-Hassan/code-snippets | 24bd4b81564887822a0801a696001fcbeb6a7a75 | [
"MIT"
] | 1 | 2021-12-26T04:55:55.000Z | 2021-12-26T04:55:55.000Z | """
Created on Sat Mar 23 00:23:27 2019
@author: nahid
"""
#https://docs.scipy.org/doc/numpy/reference/generated/numpy.absolute.html
import numpy as np
import matplotlib.pyplot as plt
x = np.array([-1.2, 1.2])
x = np.absolute(x)
print(x)
print(np.absolute(1 + 2j))
#Plot the function over [-10, 10]:
x = np.linspace(-1... | 23.608696 | 76 | 0.672192 | 100 | 543 | 3.65 | 0.55 | 0.054795 | 0.060274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080338 | 0.128913 | 543 | 23 | 77 | 23.608696 | 0.691332 | 0.368324 | 0 | 0.214286 | 1 | 0 | 0.011976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
562f521bc543c349ce98082080bb5aacbf7c8b15 | 1,467 | py | Python | problems/324.Wiggle_Sort_II/try.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/324.Wiggle_Sort_II/try.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/324.Wiggle_Sort_II/try.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | # coding=utf-8
# Author: Jianghan LI
# Question: 324.Wiggle_Sort_II
# Date:
# Complexity: O(N)
import random
class Solution(object):
def wiggleSort(self, nums):
"""
:type nums: List[int]
:rtype: void Do not return anything, modify nums in-place instead.
"""
i = 1
... | 24.864407 | 74 | 0.362645 | 195 | 1,467 | 2.717949 | 0.297436 | 0.05283 | 0.169811 | 0.113208 | 0.339623 | 0.316981 | 0.316981 | 0.316981 | 0.316981 | 0.316981 | 0 | 0.075641 | 0.468303 | 1,467 | 58 | 75 | 25.293103 | 0.603846 | 0.080436 | 0 | 0.472222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027778 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
563378f9927ab2c4212b302cc8dcfd23528fc8a2 | 1,667 | py | Python | mount_point.py | janglapuk/smstools-bot | e1bc4ee486b1425326028b68ce6d075cdcd6726d | [
"MIT"
] | null | null | null | mount_point.py | janglapuk/smstools-bot | e1bc4ee486b1425326028b68ce6d075cdcd6726d | [
"MIT"
] | null | null | null | mount_point.py | janglapuk/smstools-bot | e1bc4ee486b1425326028b68ce6d075cdcd6726d | [
"MIT"
] | 1 | 2019-02-06T08:56:11.000Z | 2019-02-06T08:56:11.000Z | import spf, os
from email.parser import Parser
__author__ = "TRA"
__doc__ = '''Modified mount point module'''
RECEIVED = 'RECEIVED'
SENT = 'SENT'
FAILED = 'FAILED'
REPORT = 'REPORT'
class Bot(object, metaclass=spf.MountPoint):
_runnable = False
_program = None
_headers = None
_body = None
trim = False
d... | 20.084337 | 58 | 0.627475 | 221 | 1,667 | 4.402715 | 0.357466 | 0.079137 | 0.086331 | 0.032888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257349 | 1,667 | 82 | 59 | 20.329268 | 0.785945 | 0.041392 | 0 | 0 | 0 | 0 | 0.045768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189655 | false | 0 | 0.034483 | 0.103448 | 0.431034 | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
565396c20414a45a7b60faed824ce5d1bc750a09 | 621 | py | Python | kubernetes_typed/client/models/v1_iscsi_volume_source.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | 22 | 2020-12-10T13:06:02.000Z | 2022-02-13T21:58:15.000Z | kubernetes_typed/client/models/v1_iscsi_volume_source.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | 4 | 2021-03-08T07:06:12.000Z | 2022-03-29T23:41:45.000Z | kubernetes_typed/client/models/v1_iscsi_volume_source.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | 2 | 2021-09-05T19:18:28.000Z | 2022-03-14T02:56:17.000Z | # Code generated by `typeddictgen`. DO NOT EDIT.
"""V1ISCSIVolumeSourceDict generated type."""
from typing import TypedDict, List
from kubernetes_typed.client import V1LocalObjectReferenceDict
V1ISCSIVolumeSourceDict = TypedDict(
"V1ISCSIVolumeSourceDict",
{
"chapAuthDiscovery": bool,
"chapAut... | 25.875 | 62 | 0.634461 | 49 | 621 | 8.020408 | 0.693878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.251208 | 621 | 23 | 63 | 27 | 0.834409 | 0.140097 | 0 | 0 | 1 | 0 | 0.246212 | 0.043561 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
56700e57818953003d07b25e398460473fe1926b | 525 | py | Python | src/web_homepage/jinja.py | Mattan-Qwer/test1 | 16bc7642a18d632181480644d1f188c9fb3785bc | [
"Apache-2.0"
] | 1 | 2021-07-25T12:46:08.000Z | 2021-07-25T12:46:08.000Z | src/web_homepage/jinja.py | Mattan-Qwer/test1 | 16bc7642a18d632181480644d1f188c9fb3785bc | [
"Apache-2.0"
] | 3 | 2021-03-04T21:15:32.000Z | 2021-05-15T22:01:11.000Z | src/web_homepage/jinja.py | Mattan-Qwer/test1 | 16bc7642a18d632181480644d1f188c9fb3785bc | [
"Apache-2.0"
] | 2 | 2021-03-17T18:02:58.000Z | 2021-07-15T17:58:28.000Z | from django.templatetags.static import static
from django.urls import reverse
from jinja2 import Environment
from fontawesome_5.templatetags import fontawesome_5
from wissenslandkarte.settings import DEBUG, ENABLE_LIVE_JS
def environment(**options):
env = Environment(**options)
env.globals.update({
... | 26.25 | 67 | 0.727619 | 61 | 525 | 6.04918 | 0.42623 | 0.162602 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014151 | 0.192381 | 525 | 19 | 68 | 27.631579 | 0.856132 | 0 | 0 | 0 | 0 | 0 | 0.104762 | 0.04 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5671326c276d2e23216bc6e77ae1e2508c743236 | 273 | py | Python | app.py | EGeorge2021r/nft-marketplace | cc6a31f67e4657da72e59d5106a85b4d7dd0eb7f | [
"MIT"
] | null | null | null | app.py | EGeorge2021r/nft-marketplace | cc6a31f67e4657da72e59d5106a85b4d7dd0eb7f | [
"MIT"
] | 5 | 2022-02-20T00:49:34.000Z | 2022-02-25T21:29:49.000Z | app.py | EGeorge2021r/nft-marketplace | cc6a31f67e4657da72e59d5106a85b4d7dd0eb7f | [
"MIT"
] | 2 | 2022-02-21T03:29:34.000Z | 2022-03-04T00:46:46.000Z | import streamlit as st
from multiapp import MultiApp
from apps import buyer, home,creator # import your app modules here
app = MultiApp()
app.add_app("Home", home.home)
app.add_app("Creator", creator.creator)
app.add_app("Buyer", buyer.buyer)
# The main app
app.run()
| 18.2 | 67 | 0.747253 | 44 | 273 | 4.568182 | 0.409091 | 0.089552 | 0.134328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139194 | 273 | 14 | 68 | 19.5 | 0.855319 | 0.150183 | 0 | 0 | 0 | 0 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56751bf83e23ee1f59d7cb7602bc4e9a2548390d | 587 | py | Python | library/tests/test_setup.py | edalatpour/unicornhatmini-python | d1bbfe8d4fdabad5a14489505ba3751386e2f990 | [
"MIT"
] | 32 | 2020-05-01T16:07:22.000Z | 2022-03-18T13:02:54.000Z | library/tests/test_setup.py | edalatpour/unicornhatmini-python | d1bbfe8d4fdabad5a14489505ba3751386e2f990 | [
"MIT"
] | 10 | 2020-04-26T13:40:50.000Z | 2022-01-06T14:22:03.000Z | library/tests/test_setup.py | edalatpour/unicornhatmini-python | d1bbfe8d4fdabad5a14489505ba3751386e2f990 | [
"MIT"
] | 19 | 2020-05-05T15:12:18.000Z | 2022-03-31T09:18:20.000Z | import mock
def test_setup(GPIO, spidev):
from unicornhatmini import UnicornHATMini
unicornhatmini = UnicornHATMini()
spidev.SpiDev.assert_has_calls((
mock.call(0, 0),
mock.call(0, 1)
), any_order=True)
GPIO.setwarnings.assert_called_once_with(False)
GPIO.setmode.assert_calle... | 23.48 | 65 | 0.739353 | 68 | 587 | 6.147059 | 0.441176 | 0.267943 | 0.114833 | 0.143541 | 0.315789 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0.008282 | 0.177172 | 587 | 24 | 66 | 24.458333 | 0.857143 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
567bcfdb694290f895bf395e9cbebe9b725dbb36 | 4,192 | py | Python | namebench/appengine/models.py | chicks-net/namebench | 8dd5e67ba3077650d49aa47a75a257e3286c8044 | [
"Apache-2.0"
] | 2 | 2017-12-13T00:39:46.000Z | 2018-05-02T14:35:48.000Z | namebench/appengine/models.py | chicks-net/namebench | 8dd5e67ba3077650d49aa47a75a257e3286c8044 | [
"Apache-2.0"
] | null | null | null | namebench/appengine/models.py | chicks-net/namebench | 8dd5e67ba3077650d49aa47a75a257e3286c8044 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 37.428571 | 101 | 0.76479 | 495 | 4,192 | 6.361616 | 0.389899 | 0.10162 | 0.055891 | 0.020959 | 0.308034 | 0.268657 | 0.162591 | 0.136551 | 0.136551 | 0.085742 | 0 | 0.002209 | 0.135973 | 4,192 | 111 | 102 | 37.765766 | 0.8672 | 0.203244 | 0 | 0.207317 | 0 | 0 | 0.027108 | 0 | 0 | 0 | 0 | 0.009009 | 0 | 1 | 0 | false | 0 | 0.036585 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
567e66953f9087009e3135f6fcd09362a85c10a2 | 416 | py | Python | PE/PE77.py | bristy/codemania | ceaacce07cb1b66202e17ad313a3467bd591bdc1 | [
"MIT"
] | null | null | null | PE/PE77.py | bristy/codemania | ceaacce07cb1b66202e17ad313a3467bd591bdc1 | [
"MIT"
] | null | null | null | PE/PE77.py | bristy/codemania | ceaacce07cb1b66202e17ad313a3467bd591bdc1 | [
"MIT"
] | null | null | null | # https://projecteuler.net/problem=77
from prime_util import sieve
MAX = 5000
INF = 1 << 31
def pe77():
primes, s = sieve(MAX)
dp = [0] * MAX
dp[0] = 1
for p in primes:
w = p
while w < MAX:
dp[w] = dp[w] + dp[w - p]
w += 1
for i, p in enumerate(dp):
... | 16 | 37 | 0.463942 | 62 | 416 | 2.967742 | 0.532258 | 0.081522 | 0.065217 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08502 | 0.40625 | 416 | 25 | 38 | 16.64 | 0.659919 | 0.084135 | 0 | 0 | 0 | 0 | 0.021108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5691317d3c567d014aec439954667396b59f6a2b | 735 | py | Python | src/my_pytube/__init__.py | mjmartinson/intravideo_search | 7c123f515d0e9fb0934cae5894088a0dabcb166f | [
"MIT"
] | null | null | null | src/my_pytube/__init__.py | mjmartinson/intravideo_search | 7c123f515d0e9fb0934cae5894088a0dabcb166f | [
"MIT"
] | null | null | null | src/my_pytube/__init__.py | mjmartinson/intravideo_search | 7c123f515d0e9fb0934cae5894088a0dabcb166f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# flake8: noqa
# noreorder
"""
Pytube: a very serious Python library for downloading YouTube Videos.
"""
__title__ = 'my_pytube'
__version__ = '9.5.2'
__author__ = 'Nick Ficano'
__license__ = 'MIT License'
__copyright__ = 'Copyright 2019 Nick Ficano'
#import logging
#import query
#import stream... | 22.96875 | 69 | 0.786395 | 100 | 735 | 5.32 | 0.47 | 0.120301 | 0.157895 | 0.06391 | 0.086466 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014041 | 0.127891 | 735 | 31 | 70 | 23.709677 | 0.815913 | 0.270748 | 0 | 0 | 0 | 0 | 0.130769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
56960d66f7d4e91cd7177d74b8b5d014ec97d10d | 634 | py | Python | setup.py | AjayMT/emitter | 8b8c1aaab39ca858a59ad45a36f22f2737a0d46a | [
"MIT"
] | 1 | 2021-01-04T05:29:49.000Z | 2021-01-04T05:29:49.000Z | setup.py | AjayMT/emitter | 8b8c1aaab39ca858a59ad45a36f22f2737a0d46a | [
"MIT"
] | null | null | null | setup.py | AjayMT/emitter | 8b8c1aaab39ca858a59ad45a36f22f2737a0d46a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
setup(
name='emitter',
version='0.0.7',
description='simple event emitter',
author='Ajay MT',
author_email='ajaymt@icloud.com',
url='http://github.com/ajaymt/emitter',
download_url='https://github.com/AjayMT/emitter/tarball/v0.0.7',
... | 27.565217 | 68 | 0.632492 | 72 | 634 | 5.527778 | 0.736111 | 0.01005 | 0.075377 | 0.110553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014056 | 0.214511 | 634 | 22 | 69 | 28.818182 | 0.785141 | 0.031546 | 0 | 0 | 0 | 0 | 0.535073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5697543911acf8f5ff9fcad51bfbbe032aa5d07b | 358 | py | Python | preprocessing/extract_hashtags.py | acvander/kaggle_real_or_not | 737d949b1f8446e734ed5113b84b5b199a7aee3c | [
"MIT"
] | null | null | null | preprocessing/extract_hashtags.py | acvander/kaggle_real_or_not | 737d949b1f8446e734ed5113b84b5b199a7aee3c | [
"MIT"
] | 10 | 2020-02-11T19:07:36.000Z | 2022-02-09T23:35:13.000Z | preprocessing/extract_hashtags.py | acvander/kaggle_real_or_not | 737d949b1f8446e734ed5113b84b5b199a7aee3c | [
"MIT"
] | null | null | null | import re
import pandas as pd
def extract_hashtags(df: pd.DataFrame) -> pd.DataFrame:
pattern = re.compile(r'#(\w+)')
def get_hashtags(row: pd.Series) -> pd.Series:
text = row['text']
hashtags = re.findall(pattern, text)
row['hashtags'] = hashtags
return row
df = df.app... | 21.058824 | 55 | 0.614525 | 49 | 358 | 4.428571 | 0.469388 | 0.101382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003731 | 0.251397 | 358 | 17 | 56 | 21.058824 | 0.80597 | 0 | 0 | 0 | 0 | 0 | 0.050139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56978a1f08405d1e9c9e366fa78cdc804de04d55 | 1,472 | py | Python | app/app.py | escofresco/makeschool_fsp2_realtweets | a1df7c54e5ef3d5a91282141389200248b40f695 | [
"MIT"
] | null | null | null | app/app.py | escofresco/makeschool_fsp2_realtweets | a1df7c54e5ef3d5a91282141389200248b40f695 | [
"MIT"
] | 9 | 2019-11-17T22:33:15.000Z | 2021-06-02T00:37:50.000Z | app/app.py | escofresco/makeschool_fsp2_realtweets | a1df7c54e5ef3d5a91282141389200248b40f695 | [
"MIT"
] | null | null | null | import marshal
from multiprocessing import Condition, Process, Queue, Pipe
import os
from threading import Timer
from types import FunctionType
import pickle
from celery import Celery
from flask import Flask, url_for
from grams.grams import Histogram
from grams.markov import MC
import time
def make_app():
def... | 23.365079 | 73 | 0.623641 | 177 | 1,472 | 4.903955 | 0.446328 | 0.069124 | 0.02765 | 0.048387 | 0.071429 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0.005769 | 0.293478 | 1,472 | 62 | 74 | 23.741935 | 0.828846 | 0.046196 | 0 | 0.102564 | 0 | 0 | 0.043634 | 0.029328 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0 | 0.282051 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
56a4c4a9da8e522b22406ce899d916afef096ab3 | 427 | py | Python | apps/blog/template.py | Bean-jun/PersonBlogSystemFlask | 7935dfa8e8f1a385a296267045f6f26e03fd6b18 | [
"MIT"
] | null | null | null | apps/blog/template.py | Bean-jun/PersonBlogSystemFlask | 7935dfa8e8f1a385a296267045f6f26e03fd6b18 | [
"MIT"
] | null | null | null | apps/blog/template.py | Bean-jun/PersonBlogSystemFlask | 7935dfa8e8f1a385a296267045f6f26e03fd6b18 | [
"MIT"
] | null | null | null | from flask import request
from apps.blog import home_blueprint
from apps.models import Category
@home_blueprint.app_template_global("category_navigate")
def category_navigate():
"""导航栏"""
category_obj = Category.query.all()
return category_obj
# 前端template页面可以使用这部分获取,或者直接使用request.user亦可
@home_blueprint... | 23.722222 | 56 | 0.779859 | 51 | 427 | 6.27451 | 0.509804 | 0.121875 | 0.1 | 0.15 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124122 | 427 | 17 | 57 | 25.117647 | 0.855615 | 0.124122 | 0 | 0 | 0 | 0 | 0.093664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.7 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3b0964e54ac0934e525bad71399782f8aff00bb9 | 377 | py | Python | alshamelah_api/apps/authors/models.py | devna-dev/durar-backend | 36ea29bafd4cb95098e4057eb71df211dc923008 | [
"MIT"
] | null | null | null | alshamelah_api/apps/authors/models.py | devna-dev/durar-backend | 36ea29bafd4cb95098e4057eb71df211dc923008 | [
"MIT"
] | null | null | null | alshamelah_api/apps/authors/models.py | devna-dev/durar-backend | 36ea29bafd4cb95098e4057eb71df211dc923008 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import ugettext_lazy as _
from ..core.models import BaseModel
class Author(BaseModel):
name = models.CharField(max_length=100, verbose_name=_(u'name'), null=False, blank=False)
class Meta:
verbose_name_plural = "Authors"
ordering = [... | 23.5625 | 93 | 0.702918 | 49 | 377 | 5.183673 | 0.653061 | 0.07874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009934 | 0.198939 | 377 | 15 | 94 | 25.133333 | 0.831126 | 0 | 0 | 0 | 0 | 0 | 0.039788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0.1 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3b13ffb0d8a69d11829542e3e7415101aea54667 | 394 | py | Python | 2020/2/2-1.py | jonathonball/adventofcode | 041f3bb2b1ebe3ddcb21341bf52f29512e17a326 | [
"MIT"
] | 1 | 2020-01-17T18:59:59.000Z | 2020-01-17T18:59:59.000Z | 2020/2/2-1.py | jonathonball/adventofcode | 041f3bb2b1ebe3ddcb21341bf52f29512e17a326 | [
"MIT"
] | null | null | null | 2020/2/2-1.py | jonathonball/adventofcode | 041f3bb2b1ebe3ddcb21341bf52f29512e17a326 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import sys
total_valid = 0
for line in sys.stdin:
raw = line.strip()
rules, password = raw.split(":")
ranges, character = rules.split(" ")
min_range, max_range = [ int(x) for x in ranges.split("-") ]
count = password.count(character)
if count >= min_r... | 23.176471 | 64 | 0.598985 | 53 | 394 | 4.320755 | 0.54717 | 0.131004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0.269036 | 394 | 16 | 65 | 24.625 | 0.784722 | 0.043147 | 0 | 0 | 0 | 0 | 0.007979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 0.090909 | 0 | 0.090909 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3b1fa76083519e9576fd893b3ec3da51308b56e5 | 2,644 | py | Python | test_auth_app/backend/db_set_users.py | MalyshevValery/testweb | fec105a62b0ef4488e523e1bf3a9bde16e82bffe | [
"MIT"
] | null | null | null | test_auth_app/backend/db_set_users.py | MalyshevValery/testweb | fec105a62b0ef4488e523e1bf3a9bde16e82bffe | [
"MIT"
] | null | null | null | test_auth_app/backend/db_set_users.py | MalyshevValery/testweb | fec105a62b0ef4488e523e1bf3a9bde16e82bffe | [
"MIT"
] | null | null | null | import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
__author__ = "eduard.snezhko@gmail.com"
from test_auth_app.backend import test_auth_app_db
from test_auth_app.backend.db_models import User, Role, Application
from test_auth_app.backend.... | 34.789474 | 167 | 0.708396 | 411 | 2,644 | 4.352798 | 0.287105 | 0.044718 | 0.061487 | 0.050866 | 0.428731 | 0.329793 | 0.220235 | 0.202348 | 0.062605 | 0.062605 | 0 | 0.005005 | 0.168684 | 2,644 | 75 | 168 | 35.253333 | 0.808917 | 0.064297 | 0 | 0.28 | 0 | 0.04 | 0.256078 | 0.024311 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.06 | 0.12 | 0 | 0.22 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3b212170dc8dc576e182a858e68aeef56e1e1acd | 1,232 | py | Python | activecollab_digger/views.py | kingsdigitallab/django-activecollab-digger | 508c31eb4a3fe9887aa9d3a86ea160f3bc1e60b0 | [
"MIT"
] | null | null | null | activecollab_digger/views.py | kingsdigitallab/django-activecollab-digger | 508c31eb4a3fe9887aa9d3a86ea160f3bc1e60b0 | [
"MIT"
] | null | null | null | activecollab_digger/views.py | kingsdigitallab/django-activecollab-digger | 508c31eb4a3fe9887aa9d3a86ea160f3bc1e60b0 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import JsonResponse
from django.views.generic.base import TemplateView
from .activecollab import get_activecollab, post_activecollab
class IndexPageView(LoginRequiredMixin, TemplateView):
template_name = '... | 27.377778 | 77 | 0.659091 | 141 | 1,232 | 5.58156 | 0.347518 | 0.050826 | 0.055909 | 0.07878 | 0.360864 | 0.360864 | 0.360864 | 0.360864 | 0.233799 | 0.233799 | 0 | 0.006244 | 0.219968 | 1,232 | 44 | 78 | 28 | 0.812695 | 0 | 0 | 0.275862 | 0 | 0 | 0.109578 | 0.024351 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.172414 | 0 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3b29c188db2f818925355ab781e7bf18b7f0fea1 | 933 | py | Python | pool.py | Reno-Greenleaf/tomb | 6a76f640e523903f32c5fa178295435a24289559 | [
"MIT"
] | null | null | null | pool.py | Reno-Greenleaf/tomb | 6a76f640e523903f32c5fa178295435a24289559 | [
"MIT"
] | null | null | null | pool.py | Reno-Greenleaf/tomb | 6a76f640e523903f32c5fa178295435a24289559 | [
"MIT"
] | null | null | null | from actor import Actor, Location, Passage, Switch, Ghost
from json import load
class Pool(dict):
""" Contains ingame objects. """
def fill(self):
with open('data/actors.json', 'r') as data:
actors = load(data)
for name, properties in actors.items():
self._build(properties, name)
with ope... | 24.552632 | 72 | 0.639871 | 121 | 933 | 4.909091 | 0.355372 | 0.141414 | 0.040404 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239014 | 933 | 38 | 73 | 24.552632 | 0.83662 | 0.025723 | 0 | 0.074074 | 0 | 0 | 0.09867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.074074 | 0.074074 | 0.037037 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3b2f210471d573b08554a8de2790e7a4843a9bc9 | 1,072 | py | Python | tests/test_equity.py | the-Arki/portfolio-tracker | eed07936876d720d29383d315003a11e9f6a2ee9 | [
"MIT"
] | null | null | null | tests/test_equity.py | the-Arki/portfolio-tracker | eed07936876d720d29383d315003a11e9f6a2ee9 | [
"MIT"
] | null | null | null | tests/test_equity.py | the-Arki/portfolio-tracker | eed07936876d720d29383d315003a11e9f6a2ee9 | [
"MIT"
] | null | null | null | from defer import return_value
from src.stock import Equity
from src.io_manager import read_json
import pytest
equity_info = read_json('./tests/equity_info.json')
equity = Equity('MSFT')
def test__get_info(mocker):
mocker.patch('src.stock.Equity._get_info', return_value=equity_info)
assert equity._get_info(... | 31.529412 | 72 | 0.75653 | 147 | 1,072 | 5.217687 | 0.204082 | 0.156454 | 0.084746 | 0.104302 | 0.617992 | 0.617992 | 0.542373 | 0.42764 | 0.42764 | 0.42764 | 0 | 0 | 0.125933 | 1,072 | 34 | 73 | 31.529412 | 0.81857 | 0 | 0 | 0.32 | 0 | 0 | 0.158434 | 0.119292 | 0 | 0 | 0 | 0 | 0.24 | 1 | 0.24 | false | 0 | 0.16 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3b35bf097dce90dcfad194835db3744ff6739f05 | 326 | py | Python | mindefuse/strategy/swaszek/agent/agent.py | sinistro14/mindefuse | c7371a81731d0b9a03d3ef18f91c336e4135c17d | [
"MIT"
] | null | null | null | mindefuse/strategy/swaszek/agent/agent.py | sinistro14/mindefuse | c7371a81731d0b9a03d3ef18f91c336e4135c17d | [
"MIT"
] | 1 | 2019-08-22T19:51:12.000Z | 2019-08-22T19:51:12.000Z | mindefuse/strategy/swaszek/agent/agent.py | sinistro14/mindefuse | c7371a81731d0b9a03d3ef18f91c336e4135c17d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.7
from abc import ABC, abstractmethod
class Agent(ABC):
@abstractmethod
def agent_choice(self, possibilities):
"""
Returns the choice of the specific agent
:param possibilities: list of all possible solutions of which the agent will pick one
"""
... | 21.733333 | 93 | 0.656442 | 41 | 326 | 5.195122 | 0.707317 | 0.159624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008439 | 0.273006 | 326 | 14 | 94 | 23.285714 | 0.890295 | 0.460123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3b36c4ed7d21b51f5c92a0c2c42d4ae3822cf137 | 4,497 | py | Python | Python/klampt/robotcspace.py | bbgw/Klampt | 3c022da372c81646ec9f7492fad499740431d38b | [
"BSD-3-Clause"
] | null | null | null | Python/klampt/robotcspace.py | bbgw/Klampt | 3c022da372c81646ec9f7492fad499740431d38b | [
"BSD-3-Clause"
] | null | null | null | Python/klampt/robotcspace.py | bbgw/Klampt | 3c022da372c81646ec9f7492fad499740431d38b | [
"BSD-3-Clause"
] | null | null | null | import cspace
import robotsim
import robotcollide
from cspaceutils import AdaptiveCSpace
class RobotCSpace(AdaptiveCSpace):
"""A basic robot cspace that allows collision free motion.
Warning: if your robot has non-standard joints, like a free-
floating base or continuously rotating (spin) joints, you will... | 35.976 | 82 | 0.632866 | 537 | 4,497 | 5.26257 | 0.318436 | 0.041401 | 0.015924 | 0.036801 | 0.302902 | 0.255485 | 0.194621 | 0.150035 | 0.150035 | 0.150035 | 0 | 0.002155 | 0.277741 | 4,497 | 124 | 83 | 36.266129 | 0.867919 | 0.096731 | 0 | 0.375 | 0 | 0 | 0.01528 | 0 | 0 | 0 | 0 | 0.008065 | 0 | 0 | null | null | 0 | 0.055556 | 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 |
3b3d82864cc0776c4af3325f627956c088809c05 | 673 | py | Python | footy/test/clubs/test_club_gateway.py | bryce-klinker/hello-python | c62ac61f40c1d9fcb77dbde49161da399787d96d | [
"MIT"
] | null | null | null | footy/test/clubs/test_club_gateway.py | bryce-klinker/hello-python | c62ac61f40c1d9fcb77dbde49161da399787d96d | [
"MIT"
] | null | null | null | footy/test/clubs/test_club_gateway.py | bryce-klinker/hello-python | c62ac61f40c1d9fcb77dbde49161da399787d96d | [
"MIT"
] | null | null | null | import unittest
from nose.tools import *
from footy.test_data.test_data_paths import premier_league_2015_2016_path
from footy.src.clubs.club_gateway import ClubGateway
class ClubGatewayTest(unittest.TestCase):
def setUp(self):
self.gateway = ClubGateway(premier_league_2015_2016_path)
def test_get_al... | 32.047619 | 73 | 0.732541 | 91 | 673 | 5.164835 | 0.428571 | 0.051064 | 0.07234 | 0.089362 | 0.361702 | 0.178723 | 0.178723 | 0.178723 | 0 | 0 | 0 | 0.0375 | 0.167905 | 673 | 20 | 74 | 33.65 | 0.801786 | 0 | 0 | 0.133333 | 0 | 0 | 0.043091 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.2 | false | 0 | 0.266667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3b466b48be2d2a162d6c9c6df33ff4e475906464 | 735 | py | Python | k-way_merge/k_smallest_number.py | mridulpant2010/algorithms | 1234b8a0232d6fce647e868e1057b6ec87e0b3bb | [
"Unlicense"
] | null | null | null | k-way_merge/k_smallest_number.py | mridulpant2010/algorithms | 1234b8a0232d6fce647e868e1057b6ec87e0b3bb | [
"Unlicense"
] | null | null | null | k-way_merge/k_smallest_number.py | mridulpant2010/algorithms | 1234b8a0232d6fce647e868e1057b6ec87e0b3bb | [
"Unlicense"
] | null | null | null | import heapq
def find_k_closest_numbers(lis,k,n):
he=[]
#merged=[]
heapq.heapify(he)
for i in range(len(lis)):
heapq.heappush(he,(lis[i][0],(i,0)))
#print(he,len(he))
numberCount=0
top=0
while he:
top,pos=heapq.heappop(he)
#print(top,pos)
... | 24.5 | 53 | 0.50068 | 117 | 735 | 3 | 0.393162 | 0.042735 | 0.102564 | 0.162393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067864 | 0.318367 | 735 | 30 | 54 | 24.5 | 0.632735 | 0.054422 | 0 | 0 | 0 | 0 | 0.012066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.125 | 0.041667 | 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 |
3b49afd725f055d1a828c47230e22c3488471dc9 | 6,617 | py | Python | abintb/spin.py | abyellow/abin-tight-binding | 538aef632937b1840d5ffd184f162858637b01f5 | [
"MIT"
] | 1 | 2018-02-22T19:13:24.000Z | 2018-02-22T19:13:24.000Z | abintb/spin.py | abyellow/abin-tight-binding | 538aef632937b1840d5ffd184f162858637b01f5 | [
"MIT"
] | null | null | null | abintb/spin.py | abyellow/abin-tight-binding | 538aef632937b1840d5ffd184f162858637b01f5 | [
"MIT"
] | 1 | 2017-09-14T17:25:09.000Z | 2017-09-14T17:25:09.000Z | import numpy as np
from time import time
#from itertools import product
import sys
import matplotlib.pyplot as plt
#from matplotlib.colors import LogNorm
from sshPES import PES
from sshIniData import SSHIniData
from sshHf import SSHHf
#from mpl_toolkits.mplot3d import Axes3D
class pseudoSpin(PES):
def integral_PES... | 25.35249 | 125 | 0.626417 | 1,230 | 6,617 | 3.226829 | 0.196748 | 0.007055 | 0.032754 | 0.015117 | 0.272865 | 0.185437 | 0.146133 | 0.091711 | 0.077601 | 0.077601 | 0 | 0.047029 | 0.170923 | 6,617 | 260 | 126 | 25.45 | 0.676449 | 0.059997 | 0 | 0.108374 | 0 | 0.019704 | 0.109372 | 0.058719 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039409 | null | null | 0.049261 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3b588b6ce0959e11ca51f7007731ed436c1a00ca | 1,923 | py | Python | tests/test_types.py | juniorcarvalho/python-btr | 3c63fe939882d719a4ebbc07685c87429782c247 | [
"MIT"
] | null | null | null | tests/test_types.py | juniorcarvalho/python-btr | 3c63fe939882d719a4ebbc07685c87429782c247 | [
"MIT"
] | null | null | null | tests/test_types.py | juniorcarvalho/python-btr | 3c63fe939882d719a4ebbc07685c87429782c247 | [
"MIT"
] | 1 | 2018-12-03T00:32:55.000Z | 2018-12-03T00:32:55.000Z | from decimal import InvalidOperation
import pytest
from binance.types import Results, Trading, format_fee
def test_results_attributes():
tr = Results(
datetime_value='2018-11-13 01:58:03',
pair='STORMBTC',
type_operation='SELL',
order_price='0.0',
order_amount='2200.0',
... | 23.740741 | 54 | 0.620905 | 249 | 1,923 | 4.666667 | 0.208835 | 0.096386 | 0.137694 | 0.22031 | 0.525818 | 0.51463 | 0.394148 | 0.319277 | 0.141136 | 0.141136 | 0 | 0.070014 | 0.264691 | 1,923 | 80 | 55 | 24.0375 | 0.751768 | 0 | 0 | 0.41791 | 0 | 0 | 0.085283 | 0 | 0 | 0 | 0 | 0 | 0.298507 | 1 | 0.044776 | false | 0 | 0.044776 | 0 | 0.089552 | 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 |
3b69aec95b3206db693240793ada22d1a026d313 | 1,417 | py | Python | tests/port_tests/polygon_tests/test_equals.py | skrat/martinez | 86db48324cb50ecb52be8ab2e4278a6d5cdd562b | [
"MIT"
] | 7 | 2020-05-07T08:13:44.000Z | 2021-12-17T07:33:51.000Z | tests/port_tests/polygon_tests/test_equals.py | skrat/martinez | 86db48324cb50ecb52be8ab2e4278a6d5cdd562b | [
"MIT"
] | 17 | 2019-11-29T23:17:26.000Z | 2020-12-20T15:47:17.000Z | tests/port_tests/polygon_tests/test_equals.py | skrat/martinez | 86db48324cb50ecb52be8ab2e4278a6d5cdd562b | [
"MIT"
] | 1 | 2020-12-17T22:44:21.000Z | 2020-12-17T22:44:21.000Z | from typing import Tuple
from hypothesis import given
from tests.port_tests.hints import PortedPolygon
from tests.utils import (equivalence,
implication)
from . import strategies
@given(strategies.polygons)
def test_reflexivity(polygon: PortedPolygon) -> None:
assert polygon == polygon
... | 33.738095 | 78 | 0.661962 | 134 | 1,417 | 6.723881 | 0.261194 | 0.119867 | 0.17758 | 0.194229 | 0.449501 | 0.378468 | 0.378468 | 0.224195 | 0.224195 | 0.224195 | 0 | 0 | 0.275229 | 1,417 | 41 | 79 | 34.560976 | 0.877313 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.178571 | 0 | 0.321429 | 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 |
3b7429619e17d7df3d00811edac6228a84a03e82 | 12,649 | py | Python | rsvis/tools/canvas/imgcv.py | Tom-Hirschberger/DataVisualization | 1aec6a85e2af7ba62ba47e6ee93dc9a7d99c6221 | [
"MIT"
] | null | null | null | rsvis/tools/canvas/imgcv.py | Tom-Hirschberger/DataVisualization | 1aec6a85e2af7ba62ba47e6ee93dc9a7d99c6221 | [
"MIT"
] | 4 | 2020-04-28T11:53:24.000Z | 2022-03-12T00:15:30.000Z | rsvis/tools/canvas/imgcv.py | Tom-Hirschberger/DataVisualization | 1aec6a85e2af7ba62ba47e6ee93dc9a7d99c6221 | [
"MIT"
] | 2 | 2020-07-01T15:35:29.000Z | 2021-03-11T17:53:23.000Z | # ===========================================================================
# imgcv.py ----------------------------------------------------------------
# ===========================================================================
# import ------------------------------------------------------------------
# -----... | 43.920139 | 135 | 0.386908 | 1,164 | 12,649 | 3.99055 | 0.131443 | 0.058127 | 0.03014 | 0.012917 | 0.227987 | 0.152637 | 0.117115 | 0.09085 | 0.065016 | 0.065016 | 0 | 0.015315 | 0.215353 | 12,649 | 288 | 136 | 43.920139 | 0.452695 | 0.342161 | 0 | 0.122807 | 0 | 0 | 0.00853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146199 | false | 0.005848 | 0.035088 | 0.035088 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3b7cf7fe88491f39d41118c5372b2efff2e8da58 | 12,343 | py | Python | doclabel/core/models.py | sondh0127/doclabel | 2cadea9fc925435aea49ac0b56c29474664ade4e | [
"MIT"
] | null | null | null | doclabel/core/models.py | sondh0127/doclabel | 2cadea9fc925435aea49ac0b56c29474664ade4e | [
"MIT"
] | null | null | null | doclabel/core/models.py | sondh0127/doclabel | 2cadea9fc925435aea49ac0b56c29474664ade4e | [
"MIT"
] | null | null | null | import string
import os
from django.conf import settings
from django.dispatch import receiver
from django.db.models.signals import post_save, pre_delete, post_delete
from django.db import models
from django.urls import reverse
from django.contrib.auth import get_user_model
from django.contrib.postgres.fields import JS... | 31.894057 | 88 | 0.694969 | 1,369 | 12,343 | 6.09569 | 0.17385 | 0.011504 | 0.023487 | 0.032714 | 0.47166 | 0.424206 | 0.36429 | 0.297903 | 0.270102 | 0.251168 | 0 | 0.004217 | 0.212347 | 12,343 | 386 | 89 | 31.976684 | 0.854145 | 0.024548 | 0 | 0.341463 | 0 | 0 | 0.067919 | 0.015629 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118467 | false | 0 | 0.076655 | 0.045296 | 0.550523 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3b979d74f6e8f31c561e6e8ceb34cc6c5fafe859 | 3,197 | py | Python | config/HttpdParser.py | automicus/OpenAlarm | 68bcc4aa75338e8d5a2ff423029f7c4064d2b9c8 | [
"Apache-2.0"
] | 1 | 2016-03-30T05:41:19.000Z | 2016-03-30T05:41:19.000Z | config/HttpdParser.py | automicus/OpenAlarm | 68bcc4aa75338e8d5a2ff423029f7c4064d2b9c8 | [
"Apache-2.0"
] | null | null | null | config/HttpdParser.py | automicus/OpenAlarm | 68bcc4aa75338e8d5a2ff423029f7c4064d2b9c8 | [
"Apache-2.0"
] | null | null | null | from HTMLParser import HTMLParser
class HttpdParser(HTMLParser):
def __init_var__(self):
# create status variables
self._inHttpd = None
self._inKey = None
self.httpd = None
def read(self, fname):
self.__init_var__()
cache = open(fname).read()
self.feed... | 26.865546 | 71 | 0.541758 | 369 | 3,197 | 4.482385 | 0.165312 | 0.093108 | 0.133011 | 0.159613 | 0.515115 | 0.452237 | 0.312576 | 0.189238 | 0.159613 | 0.159613 | 0 | 0.000481 | 0.34939 | 3,197 | 118 | 72 | 27.09322 | 0.794712 | 0.055052 | 0 | 0.426966 | 0 | 0 | 0.031209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011236 | null | null | 0.011236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3b9fb3dac066072f489c406ee52505f3cf651095 | 14,898 | py | Python | Script_Kali_Machine/DownloadTools_Old.py | manesec/tools4me | d6f0e41aabc3dc4fdc1ff8ad8bebaf578fdbe69e | [
"MIT"
] | null | null | null | Script_Kali_Machine/DownloadTools_Old.py | manesec/tools4me | d6f0e41aabc3dc4fdc1ff8ad8bebaf578fdbe69e | [
"MIT"
] | null | null | null | Script_Kali_Machine/DownloadTools_Old.py | manesec/tools4me | d6f0e41aabc3dc4fdc1ff8ad8bebaf578fdbe69e | [
"MIT"
] | 2 | 2022-02-09T07:30:12.000Z | 2022-03-06T08:00:22.000Z | # List slow update ..
Optional_Installation = {
# Update ExploitDB
"EXPLOITDB" : True,
# Install ZAP
# It have some bug in old kali linux, if you are running old kali linux please disable it.
"ZAP" : False,
# Install DBeaver
"DBEAVER" : True,
# Install Big Webshell Collection ~ 0.84 G... | 39.941019 | 142 | 0.647872 | 1,964 | 14,898 | 4.974033 | 0.161914 | 0.07534 | 0.075955 | 0.069608 | 0.530556 | 0.483673 | 0.415293 | 0.361142 | 0.352032 | 0.314566 | 0 | 0.015756 | 0.105383 | 14,898 | 372 | 143 | 40.048387 | 0.704607 | 0.024097 | 0 | 0.319728 | 0 | 0.142857 | 0.716461 | 0.083595 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.006803 | 0 | 0.006803 | 0.238095 | 0 | 0 | 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 |
3ba11498a776ef72e094f9860944bc017a359568 | 7,375 | py | Python | metrics/recall/recall.py | leondz/datasets | 4110fb6034f79c5fb470cf1043ff52180e9c63b7 | [
"Apache-2.0"
] | 3,395 | 2020-05-13T21:16:50.000Z | 2020-09-10T14:36:50.000Z | metrics/recall/recall.py | leondz/datasets | 4110fb6034f79c5fb470cf1043ff52180e9c63b7 | [
"Apache-2.0"
] | 370 | 2020-05-13T21:28:57.000Z | 2020-09-10T11:03:38.000Z | metrics/recall/recall.py | leondz/datasets | 4110fb6034f79c5fb470cf1043ff52180e9c63b7 | [
"Apache-2.0"
] | 258 | 2020-05-15T01:17:09.000Z | 2020-09-10T12:41:43.000Z | # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# 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.... | 54.62963 | 503 | 0.672949 | 975 | 7,375 | 5.029744 | 0.315897 | 0.037113 | 0.027121 | 0.037113 | 0.226754 | 0.199429 | 0.184747 | 0.184747 | 0.155791 | 0.140498 | 0 | 0.030833 | 0.21722 | 7,375 | 134 | 504 | 55.037313 | 0.818638 | 0.085288 | 0 | 0.203884 | 0 | 0.174757 | 0.792509 | 0.084869 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019417 | false | 0.009709 | 0.019417 | 0.009709 | 0.067961 | 0.067961 | 0 | 0 | 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 |
8e605be6a5e8d416273e08bffcd14fcff9ddc548 | 848 | py | Python | blog/home/migrations/0001_initial.py | iflyBird/blog | 33dbf6345ae4ae64f726c7ce5353b7c7864351af | [
"MIT"
] | null | null | null | blog/home/migrations/0001_initial.py | iflyBird/blog | 33dbf6345ae4ae64f726c7ce5353b7c7864351af | [
"MIT"
] | null | null | null | blog/home/migrations/0001_initial.py | iflyBird/blog | 33dbf6345ae4ae64f726c7ce5353b7c7864351af | [
"MIT"
] | null | null | null | # Generated by Django 2.1.8 on 2020-05-27 15:24
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ArticleCategory',... | 28.266667 | 118 | 0.568396 | 88 | 848 | 5.375 | 0.659091 | 0.069767 | 0.02537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062925 | 0.306604 | 848 | 29 | 119 | 29.241379 | 0.741497 | 0.053066 | 0 | 0 | 1 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.318182 | 0 | 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 |
8e66f42aa9f3d76581d68b02d53d96cb65653cfe | 1,066 | py | Python | src/compas_ghpython/artists/polylineartist.py | Sam-Bouten/compas | 011c7779ded9b69bb602568b470bb0443e336f62 | [
"MIT"
] | null | null | null | src/compas_ghpython/artists/polylineartist.py | Sam-Bouten/compas | 011c7779ded9b69bb602568b470bb0443e336f62 | [
"MIT"
] | null | null | null | src/compas_ghpython/artists/polylineartist.py | Sam-Bouten/compas | 011c7779ded9b69bb602568b470bb0443e336f62 | [
"MIT"
] | null | null | null | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import compas_ghpython
from compas.artists import PrimitiveArtist
from .artist import GHArtist
class PolylineArtist(GHArtist, PrimitiveArtist):
"""Artist for drawing polylines.
Parameters
-------... | 26.65 | 112 | 0.680113 | 110 | 1,066 | 6.318182 | 0.445455 | 0.043165 | 0.069065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00119 | 0.212008 | 1,066 | 39 | 113 | 27.333333 | 0.82619 | 0.336773 | 0 | 0 | 0 | 0 | 0.009554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.066667 | 0.8 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
8e67cd9cfa819f5435d8aaa629ca0362047fd00b | 2,356 | py | Python | auctions/utils.py | zebadiahtaylor/cs50-Commerce | c8c56a0da861a32b1929053dd62e926e37f6b1b5 | [
"MIT"
] | null | null | null | auctions/utils.py | zebadiahtaylor/cs50-Commerce | c8c56a0da861a32b1929053dd62e926e37f6b1b5 | [
"MIT"
] | null | null | null | auctions/utils.py | zebadiahtaylor/cs50-Commerce | c8c56a0da861a32b1929053dd62e926e37f6b1b5 | [
"MIT"
] | null | null | null | from .models import Auction, Bid, Comment, User
from django.db.models import Max
def has_bids(auction):
"""
Returns True if others have bid on the item.
TODO: Throws TypeError if user not logged in
"""
# auction = Auction.objects.get(id=auction)
has_bids = False
try:
current_bid ... | 24.8 | 110 | 0.660866 | 311 | 2,356 | 4.807074 | 0.189711 | 0.056187 | 0.04214 | 0.090301 | 0.318395 | 0.190635 | 0.124415 | 0.124415 | 0.124415 | 0.092308 | 0 | 0 | 0.247029 | 2,356 | 94 | 111 | 25.06383 | 0.842728 | 0.095076 | 0 | 0.254545 | 0 | 0 | 0.044231 | 0 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.127273 | false | 0.036364 | 0.036364 | 0 | 0.345455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
8e6c720ed11080cd24768da2e5b31afb17339d1c | 1,778 | py | Python | tests/test_urls.py | kverdecia/dj-mypypi2 | 4ca5f67901a6a41029b4e1b0eccf8d74d4958b58 | [
"MIT"
] | 1 | 2021-08-12T08:59:09.000Z | 2021-08-12T08:59:09.000Z | tests/test_urls.py | kverdecia/dj-mypypi2 | 4ca5f67901a6a41029b4e1b0eccf8d74d4958b58 | [
"MIT"
] | 8 | 2021-04-24T06:08:07.000Z | 2021-07-25T07:18:03.000Z | tests/test_urls.py | kverdecia/dj-mypypi2 | 4ca5f67901a6a41029b4e1b0eccf8d74d4958b58 | [
"MIT"
] | null | null | null | import cuid
from django.urls import reverse, resolve
from django.test import TestCase
from djmypypi2 import models
from djmypypi2 import factories
class TestUrls(TestCase):
def test_package_list_reverse(self):
url = reverse('djmypypi2:package-list')
self.assertEqual(url, '/mypypi2/')
def te... | 35.56 | 98 | 0.707537 | 207 | 1,778 | 5.898551 | 0.154589 | 0.078624 | 0.093366 | 0.075348 | 0.548731 | 0.398034 | 0.149058 | 0.116298 | 0 | 0 | 0 | 0.012212 | 0.170979 | 1,778 | 49 | 99 | 36.285714 | 0.816147 | 0 | 0 | 0.117647 | 0 | 0 | 0.223847 | 0.181102 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.235294 | false | 0 | 0.147059 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8e6f1d30087ea8e2e9784ed81ab2535019f36f7a | 2,263 | py | Python | google-datacatalog-tableau-connector/src/google/datacatalog_connectors/tableau/scrape/rest_api_helper.py | Parkman328/datacatalog-connectors-bi | 630de336617728713779d7224eeab140d5abaec2 | [
"Apache-2.0"
] | 27 | 2020-04-27T21:55:49.000Z | 2022-02-18T22:09:13.000Z | google-datacatalog-tableau-connector/src/google/datacatalog_connectors/tableau/scrape/rest_api_helper.py | Parkman328/datacatalog-connectors-bi | 630de336617728713779d7224eeab140d5abaec2 | [
"Apache-2.0"
] | 36 | 2020-05-01T15:26:14.000Z | 2022-03-26T00:09:19.000Z | google-datacatalog-tableau-connector/src/google/datacatalog_connectors/tableau/scrape/rest_api_helper.py | Parkman328/datacatalog-connectors-bi | 630de336617728713779d7224eeab140d5abaec2 | [
"Apache-2.0"
] | 18 | 2020-04-30T22:14:09.000Z | 2022-01-13T10:28:03.000Z | #!/usr/bin/python
#
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 31 | 74 | 0.646929 | 260 | 2,263 | 5.280769 | 0.434615 | 0.0437 | 0.040787 | 0.023307 | 0.077203 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004875 | 0.274856 | 2,263 | 72 | 75 | 31.430556 | 0.83181 | 0.249669 | 0 | 0 | 0 | 0 | 0.066548 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.047619 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8e90797c1a396d8d5df4b10107f151b6eb6a4b1d | 445 | py | Python | Symbol Patterns/symbolpattern143.py | vaidehisinha1/Python-PatternHouse | 49f71bcc5319a838592e69b0e49ef1edba32bf7c | [
"MIT"
] | null | null | null | Symbol Patterns/symbolpattern143.py | vaidehisinha1/Python-PatternHouse | 49f71bcc5319a838592e69b0e49ef1edba32bf7c | [
"MIT"
] | 471 | 2022-01-15T07:07:18.000Z | 2022-02-28T16:01:42.000Z | Symbol Patterns/symbolpattern143.py | vaidehisinha1/Python-PatternHouse | 49f71bcc5319a838592e69b0e49ef1edba32bf7c | [
"MIT"
] | 2 | 2022-01-17T09:43:16.000Z | 2022-01-29T15:15:47.000Z | height = int(input())
for i in range(1,height+1):
for j in range(1, height+1):
if(i == height//2 or i == height or j == 1 or j == height and i >= height//2 or (j%2==1 and i<= height//2)):
print("*",end=" ")
else:
print(end=" ")
print()
# Sample Input :- 7
#... | 18.541667 | 116 | 0.346067 | 52 | 445 | 2.961538 | 0.365385 | 0.181818 | 0.155844 | 0.181818 | 0.194805 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.431461 | 445 | 23 | 117 | 19.347826 | 0.565217 | 0.285393 | 0 | 0 | 0 | 0 | 0.012987 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 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 |
8e9a24be54fa83ecc2a85a73f853297e027edb0d | 4,001 | py | Python | ejercicios/alarma.py | proto-tools-docs/Soluciones | 7a619e00572a3496cb08a90702f152f52c6d5e56 | [
"MIT"
] | null | null | null | ejercicios/alarma.py | proto-tools-docs/Soluciones | 7a619e00572a3496cb08a90702f152f52c6d5e56 | [
"MIT"
] | null | null | null | ejercicios/alarma.py | proto-tools-docs/Soluciones | 7a619e00572a3496cb08a90702f152f52c6d5e56 | [
"MIT"
] | null | null | null | """AyudaEnPython: https://www.facebook.com/groups/ayudapython
Crear una aplicación de consola que permita al usuario programar alarmas
de tiempo. Para realizar esta aplicación deberá presentarle al usuario
las siguientes opciones: ver alarmas activas, agregar nueva alarma,
agregar nueva alarma con tiempo aleatorio, ed... | 31.015504 | 75 | 0.610847 | 460 | 4,001 | 5.195652 | 0.31087 | 0.025105 | 0.022594 | 0.02636 | 0.135146 | 0.102092 | 0.078661 | 0.078661 | 0.03682 | 0 | 0 | 0.009781 | 0.258935 | 4,001 | 129 | 76 | 31.015504 | 0.79629 | 0.453887 | 0 | 0.115942 | 0 | 0 | 0.180817 | 0.034878 | 0 | 0 | 0 | 0.046512 | 0 | 1 | 0.173913 | false | 0 | 0.043478 | 0.014493 | 0.26087 | 0.072464 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
8e9d82a4e05b9da4170cbe9911065b74ac889a13 | 2,976 | py | Python | climops/calculate_statistics.py | YakelynRJ/climops | 79384df69a499784e9b4be6ed4f81c1866e1b29d | [
"MIT"
] | null | null | null | climops/calculate_statistics.py | YakelynRJ/climops | 79384df69a499784e9b4be6ed4f81c1866e1b29d | [
"MIT"
] | 8 | 2018-12-06T22:30:26.000Z | 2018-12-12T02:32:12.000Z | climops/calculate_statistics.py | HamidPahlavan/project | 79384df69a499784e9b4be6ed4f81c1866e1b29d | [
"MIT"
] | null | null | null | """
This module is used to generate correlation (R) and regression (b)
coefficients for relationships between the 2015 Census,
2018 Yale Climate Opinion Maps (YCOM) and land area datasets,
as well as p values for these relationships.
"""
import numpy as np
import pandas as pd
from scipy.stats import linregress
def ca... | 39.68 | 97 | 0.713374 | 412 | 2,976 | 4.975728 | 0.254854 | 0.081951 | 0.058537 | 0.021463 | 0.555122 | 0.555122 | 0.555122 | 0.491707 | 0.381463 | 0.381463 | 0 | 0.007595 | 0.203629 | 2,976 | 74 | 98 | 40.216216 | 0.857384 | 0.403898 | 0 | 0.275862 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.103448 | 0 | 0.448276 | 0 | 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 |
8e9dcbc8e5b65bb12dd6691d988f8f04cfc8ae26 | 275 | py | Python | vFXT/version.py | ekpgh/AvereSDK-1 | 1e3584f08d2fb519ea3870e7e440cded9aacacd2 | [
"MIT"
] | null | null | null | vFXT/version.py | ekpgh/AvereSDK-1 | 1e3584f08d2fb519ea3870e7e440cded9aacacd2 | [
"MIT"
] | 2 | 2019-03-07T23:59:08.000Z | 2019-03-20T21:47:25.000Z | vFXT/version.py | ekpgh/AvereSDK-1 | 1e3584f08d2fb519ea3870e7e440cded9aacacd2 | [
"MIT"
] | null | null | null | # Copyright (c) 2015-2020 Avere Systems, Inc. All Rights Reserved.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in the project root for license information.
__version__ = "0.5.4.3"
__version_info__ = (0, 5, 4, 3)
| 45.833333 | 90 | 0.745455 | 42 | 275 | 4.666667 | 0.690476 | 0.102041 | 0.173469 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0.156364 | 275 | 5 | 91 | 55 | 0.775862 | 0.770909 | 0 | 0 | 0 | 0 | 0.118644 | 0 | 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 | 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 |
8e9e302f177c972e4caf914f4f0b636eed885e2d | 251 | py | Python | exercises/solution_F4.py | dataXcode/IPP | c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b | [
"MIT"
] | null | null | null | exercises/solution_F4.py | dataXcode/IPP | c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b | [
"MIT"
] | null | null | null | exercises/solution_F4.py | dataXcode/IPP | c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b | [
"MIT"
] | null | null | null | house = [ ['hallway', 14.35],
['kitchen', 15.0],
['living room', 19.0],
['bedroom', 12.5],
['bathroom', 8.75] ]
# Code the for loop
for x in house:
print(str(x[0]) + ' area is ' + str(x[1]) + 'm')
| 25.1 | 50 | 0.426295 | 35 | 251 | 3.057143 | 0.8 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110429 | 0.350598 | 251 | 9 | 51 | 27.888889 | 0.546012 | 0.067729 | 0 | 0 | 0 | 0 | 0.215517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 |
8eaa9e9b44dd4cdbcc7d177b9fd352b66bc449f6 | 1,050 | py | Python | vuln_server/vulnerabilities/subprocess_vuln.py | denny00786/CASoftwareDevelopment | d03c82b6bb033a39b4270115ec464eca773e0814 | [
"Apache-2.0"
] | 1 | 2020-04-02T00:29:16.000Z | 2020-04-02T00:29:16.000Z | vuln_server/vulnerabilities/subprocess_vuln.py | denny00786/CASoftwareDevelopment | d03c82b6bb033a39b4270115ec464eca773e0814 | [
"Apache-2.0"
] | null | null | null | vuln_server/vulnerabilities/subprocess_vuln.py | denny00786/CASoftwareDevelopment | d03c82b6bb033a39b4270115ec464eca773e0814 | [
"Apache-2.0"
] | 4 | 2021-04-01T21:31:01.000Z | 2022-03-23T08:22:44.000Z | import subprocess
from vuln_server.outputgrabber import OutputGrabber
from flask import request, redirect, render_template
class SubprocessVuln():
def bypass(self):
if request.method == 'POST':
# Check if data is not empty, post forms has all params defined
# which may be empty a... | 38.888889 | 79 | 0.552381 | 102 | 1,050 | 5.637255 | 0.686275 | 0.048696 | 0.055652 | 0.069565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001534 | 0.379048 | 1,050 | 26 | 80 | 40.384615 | 0.880368 | 0.209524 | 0 | 0 | 0 | 0 | 0.078788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8eab0af3b0aca18605cc36d406b8f68048ee7f83 | 2,050 | py | Python | tests/test_resource.py | luhn/pyramid-resource | 7de2f4d136ef39f8b223ef675def6a04d71311ae | [
"MIT"
] | 1 | 2019-02-05T03:06:24.000Z | 2019-02-05T03:06:24.000Z | tests/test_resource.py | luhn/pyramid-resource | 7de2f4d136ef39f8b223ef675def6a04d71311ae | [
"MIT"
] | null | null | null | tests/test_resource.py | luhn/pyramid-resource | 7de2f4d136ef39f8b223ef675def6a04d71311ae | [
"MIT"
] | null | null | null | import pytest
from pyramid_resource import Resource
def test_default_lookup():
class SubResource(Resource):
pass
class MyResource(Resource):
__children__ = {
"sub": SubResource,
}
root = MyResource("request")
sub = root["sub"]
assert isinstance(sub, SubResour... | 24.117647 | 60 | 0.621463 | 218 | 2,050 | 5.66055 | 0.201835 | 0.072934 | 0.077796 | 0.090762 | 0.544571 | 0.544571 | 0.544571 | 0.461912 | 0.461912 | 0.461912 | 0 | 0.000664 | 0.264878 | 2,050 | 84 | 61 | 24.404762 | 0.818182 | 0 | 0 | 0.523077 | 0 | 0 | 0.080976 | 0 | 0 | 0 | 0 | 0 | 0.369231 | 1 | 0.107692 | false | 0.061538 | 0.030769 | 0.015385 | 0.338462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8eb957a2a53df1c654647771e4169777cc775e3d | 1,222 | py | Python | pile.py | yehudareisler/risky-game | ea919bd07a2acf75dfd184b5c59ad80d41f47428 | [
"MIT"
] | 3 | 2021-01-21T02:06:12.000Z | 2022-03-14T10:26:43.000Z | pile.py | yehudareisler/risky-game | ea919bd07a2acf75dfd184b5c59ad80d41f47428 | [
"MIT"
] | null | null | null | pile.py | yehudareisler/risky-game | ea919bd07a2acf75dfd184b5c59ad80d41f47428 | [
"MIT"
] | 1 | 2021-08-29T07:47:12.000Z | 2021-08-29T07:47:12.000Z | import random
from card import Card, CardType
class Pile:
def __init__(self, cards):
self.cards = cards
def __getitem__(self, key):
return self.cards[key]
def __str__(self):
representation = f'Pile with {len(self.cards)} cards:\n'
for card in self.cards:
rep... | 24.44 | 70 | 0.594926 | 151 | 1,222 | 4.602649 | 0.311258 | 0.142446 | 0.060432 | 0.069065 | 0.060432 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001163 | 0.296236 | 1,222 | 49 | 71 | 24.938776 | 0.806977 | 0 | 0 | 0 | 0 | 0 | 0.036007 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.257143 | false | 0 | 0.057143 | 0.057143 | 0.457143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8ec74f7148172e1125c6011ff0477dea31725ff0 | 1,038 | py | Python | CH02/2.5.py | MonoHaru/Deep-Learning-from-Scratch_2 | e7dd6e7c82a34fadfa17331c2934f5f9ae2c3ec3 | [
"MIT"
] | null | null | null | CH02/2.5.py | MonoHaru/Deep-Learning-from-Scratch_2 | e7dd6e7c82a34fadfa17331c2934f5f9ae2c3ec3 | [
"MIT"
] | null | null | null | CH02/2.5.py | MonoHaru/Deep-Learning-from-Scratch_2 | e7dd6e7c82a34fadfa17331c2934f5f9ae2c3ec3 | [
"MIT"
] | null | null | null | # 2.5 정리
# 이번 장에서는 자연어를 대상으로,
# 특히 컴퓨터에게 '단어의 의미'를 이해하기 위한 주제로 진행함
# 시소러스 기법
'''
단어들의 관련성을 사람이 수작업으로 하나씩 정의한다.
이 작업은 매우 힘들고 (느낌의 미세한 차이를 나타낼 수 없다 등) 표현력에도 한계가 있다.
'''
# 통계 기반 기법
'''
말뭉치로부터 단어의 의미를 자동으로 추출하고, 그 의미를 벡터로 표현한다.
구체적으로
1. 단어의 동시발생 행렬을 만든다.
2. PPMI 행렬로 변환한다.
3. 안정... | 28.833333 | 78 | 0.60501 | 216 | 1,038 | 2.898148 | 0.75463 | 0.01278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018336 | 0.316956 | 1,038 | 36 | 79 | 28.833333 | 0.864598 | 0.17341 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8eca58ddc6a8a4fc980e7ffec65c56c6b1e8dc5f | 343 | py | Python | data/bug_dataset.py | happygirlzt/soft_alignment_model_bug_deduplication | 9c529542749a52e377baeb99d1782920bc72df49 | [
"Unlicense"
] | 2 | 2020-11-11T00:26:25.000Z | 2020-12-21T16:17:28.000Z | data/bug_dataset.py | happygirlzt/soft_alignment_model_bug_deduplication | 9c529542749a52e377baeb99d1782920bc72df49 | [
"Unlicense"
] | 5 | 2020-12-22T10:59:38.000Z | 2021-07-13T15:00:46.000Z | data/bug_dataset.py | irving-muller/soft_alignment_model_bug_deduplication | abf786a17f526d965f1b6c303b06f26662d22f32 | [
"Unlicense"
] | 6 | 2020-09-25T01:01:37.000Z | 2022-02-20T19:29:31.000Z | """
Each dataset has bug report ids and the ids of duplicate bug reports.
"""
class BugDataset(object):
def __init__(self, file):
f = open(file, 'r')
self.info = f.readline().strip()
self.bugIds = [id for id in f.readline().strip().split()]
self.duplicateIds = [id for id in f.readl... | 28.583333 | 71 | 0.612245 | 49 | 343 | 4.204082 | 0.612245 | 0.131068 | 0.203884 | 0.087379 | 0.271845 | 0.271845 | 0.271845 | 0.271845 | 0 | 0 | 0 | 0 | 0.230321 | 343 | 11 | 72 | 31.181818 | 0.780303 | 0.201166 | 0 | 0 | 0 | 0 | 0.003759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8eca5e2a175ef4b1ea3f4ed24d6fd9463dbced1b | 517 | py | Python | orm_sqlfan/libreria/migrations/0004_auto_20191125_0518.py | rulotr/djangorm_sqlfan | 4bcadd1459e5a39584bb5ad8bafaaf3993324f6a | [
"MIT"
] | 2 | 2021-09-29T01:08:56.000Z | 2022-02-14T03:34:37.000Z | orm_sqlfan/libreria/migrations/0004_auto_20191125_0518.py | rulotr/djangorm_sqlfan | 4bcadd1459e5a39584bb5ad8bafaaf3993324f6a | [
"MIT"
] | 4 | 2020-02-12T02:52:19.000Z | 2021-04-08T20:46:05.000Z | orm_sqlfan/libreria/migrations/0004_auto_20191125_0518.py | rulotr/djangorm_sqlfan | 4bcadd1459e5a39584bb5ad8bafaaf3993324f6a | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2019-11-25 05:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('libreria', '0003_auto_20191125_0515'),
]
operations = [
migrations.RemoveField(
model_name='libro',
name='id',
... | 22.478261 | 85 | 0.580271 | 54 | 517 | 5.425926 | 0.777778 | 0.061433 | 0.095563 | 0.122867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091667 | 0.303675 | 517 | 22 | 86 | 23.5 | 0.722222 | 0.087041 | 0 | 0.25 | 1 | 0 | 0.1 | 0.048936 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 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 |
8ece4878dfbf0ffee3c017f8812769aed1333588 | 4,582 | py | Python | tests/h/services/flag_test.py | pombredanne/h | 9c4c2dc0d53ed5bed5183936c24b4c27b23070b4 | [
"BSD-2-Clause"
] | 2,103 | 2015-01-07T12:47:49.000Z | 2022-03-29T02:38:25.000Z | tests/h/services/flag_test.py | pombredanne/h | 9c4c2dc0d53ed5bed5183936c24b4c27b23070b4 | [
"BSD-2-Clause"
] | 4,322 | 2015-01-04T17:18:01.000Z | 2022-03-31T17:06:02.000Z | tests/h/services/flag_test.py | admariner/h | 25ef1b8d94889df86ace5a084f1aa0effd9f4e25 | [
"BSD-2-Clause"
] | 389 | 2015-01-24T04:10:02.000Z | 2022-03-28T08:00:16.000Z | import pytest
from h import models
from h.services import flag
class TestFlagServiceFlagged:
def test_it_returns_true_when_flag_exists(self, svc, flag):
assert svc.flagged(flag.user, flag.annotation) is True
def test_it_returns_false_when_flag_does_not_exist(self, svc, user, annotation):
ass... | 31.6 | 86 | 0.685072 | 576 | 4,582 | 5.182292 | 0.154514 | 0.039866 | 0.030151 | 0.029481 | 0.370854 | 0.254271 | 0.225796 | 0.162144 | 0.094472 | 0.036181 | 0 | 0.005045 | 0.221301 | 4,582 | 144 | 87 | 31.819444 | 0.831558 | 0.027717 | 0 | 0.138614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19802 | 1 | 0.237624 | false | 0 | 0.029703 | 0.059406 | 0.376238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.