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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f5244b46ffd0e88de2b91d56e12c5e1928ccd87e | 520 | py | Python | twitoff/twitter.py | unburied/TwitOff | ff3a6225fcc39efab69bb29263a61bd62b3ee646 | [
"MIT"
] | null | null | null | twitoff/twitter.py | unburied/TwitOff | ff3a6225fcc39efab69bb29263a61bd62b3ee646 | [
"MIT"
] | 4 | 2021-06-08T21:03:01.000Z | 2022-03-12T00:22:11.000Z | twitoff/twitter.py | unburied/TwitOff | ff3a6225fcc39efab69bb29263a61bd62b3ee646 | [
"MIT"
] | null | null | null | """Retrieve tweets, embeddings, save to databse"""
import basilica
import tweepy
from decouple import config
from .models import DB, Tweet, User
import os
TWITTER_AUTH = tweepy.OAuthHandler(config('TWITTER_CONSUMER_KEY'),
config('TWITTER_CONSUMER_SECRET'))
TWITTER_AUTH.set_access_... | 34.666667 | 69 | 0.711538 | 60 | 520 | 5.9 | 0.466667 | 0.146893 | 0.118644 | 0.135593 | 0.166667 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196154 | 520 | 15 | 70 | 34.666667 | 0.84689 | 0.084615 | 0 | 0 | 0 | 0 | 0.225053 | 0.106157 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f5362a880906939ea656960ead570489cdb55df9 | 4,200 | py | Python | samples/cli/accelbyte_py_sdk_cli/platform/_query_items.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | samples/cli/accelbyte_py_sdk_cli/platform/_query_items.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | 1 | 2021-10-13T03:46:58.000Z | 2021-10-13T03:46:58.000Z | samples/cli/accelbyte_py_sdk_cli/platform/_query_items.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template_file: python-cli-command.j2
# justice-platform-service (4.10.0)
# pylint: disable=duplicate-co... | 35.294118 | 88 | 0.692143 | 554 | 4,200 | 5.043321 | 0.263538 | 0.070866 | 0.075161 | 0.083751 | 0.115963 | 0.067287 | 0.044023 | 0.044023 | 0 | 0 | 0 | 0.003193 | 0.179762 | 4,200 | 118 | 89 | 35.59322 | 0.807837 | 0.176905 | 0 | 0 | 1 | 0 | 0.122817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011364 | false | 0 | 0.113636 | 0 | 0.136364 | 0 | 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 |
f539a669562b4bc693c42991171382ca74fbb1e2 | 629 | py | Python | angalabiri/blog/migrations/0005_auto_20210327_0511.py | dark-codr/ebiangala | 0af3de29b2afa71df3e138cd16ecddc69fbd597d | [
"MIT"
] | 1 | 2021-03-25T14:06:23.000Z | 2021-03-25T14:06:23.000Z | angalabiri/blog/migrations/0005_auto_20210327_0511.py | dark-codr/ebiangala | 0af3de29b2afa71df3e138cd16ecddc69fbd597d | [
"MIT"
] | 5 | 2021-09-08T03:08:46.000Z | 2022-03-12T00:56:35.000Z | angalabiri/blog/migrations/0005_auto_20210327_0511.py | me-edavids/ebiangala | 0af3de29b2afa71df3e138cd16ecddc69fbd597d | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-27 04:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0004_auto_20210327_0508'),
]
operations = [
migrations.AlterField(
model_name='comment',
name='email',
... | 26.208333 | 95 | 0.604134 | 68 | 629 | 5.455882 | 0.661765 | 0.088949 | 0.134771 | 0.156334 | 0.215633 | 0.215633 | 0 | 0 | 0 | 0 | 0 | 0.077093 | 0.278219 | 629 | 23 | 96 | 27.347826 | 0.740088 | 0.071542 | 0 | 0.352941 | 1 | 0 | 0.135739 | 0.039519 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f53cb29283c7278fb09b3c405673bbf9a82a2011 | 1,898 | py | Python | setup.py | sergioisidoro/django-flows | 326baa3e216a15bd7a8d13b2a09ba9752e250dbb | [
"BSD-2-Clause"
] | 104 | 2015-01-05T14:29:16.000Z | 2021-11-08T11:20:24.000Z | setup.py | sergioisidoro/django-flows | 326baa3e216a15bd7a8d13b2a09ba9752e250dbb | [
"BSD-2-Clause"
] | 4 | 2015-09-23T11:14:50.000Z | 2020-03-21T06:08:34.000Z | setup.py | sergioisidoro/django-flows | 326baa3e216a15bd7a8d13b2a09ba9752e250dbb | [
"BSD-2-Clause"
] | 16 | 2015-01-05T10:13:44.000Z | 2022-02-14T05:21:23.000Z | # -*- coding: UTF-8 -*-
from distutils.core import setup
from setuptools import find_packages
import time
_version = "1.3"
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests", "example"])
# common dependencies
_install_requires = [
'django>=1.4',
'six'
]
_short_description = "d... | 35.811321 | 112 | 0.727608 | 244 | 1,898 | 5.565574 | 0.545082 | 0.048601 | 0.022091 | 0.02651 | 0.178203 | 0.178203 | 0.178203 | 0.178203 | 0.178203 | 0.178203 | 0 | 0.005135 | 0.179136 | 1,898 | 52 | 113 | 36.5 | 0.866496 | 0.021602 | 0 | 0 | 0 | 0.069767 | 0.654261 | 0.015102 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.069767 | 0 | 0.069767 | 0 | 0 | 0 | 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 |
f541b794c2a8e93c62a257571c0b23df49309189 | 2,204 | py | Python | v1-python/imgencode.py | alexadam/img-encode | b014bbe30d782dfa9ee79b19d1b0aaf65cbca3ee | [
"MIT"
] | 202 | 2015-02-26T14:40:12.000Z | 2022-03-10T19:29:15.000Z | v1-python/imgencode.py | alexadam/img-encode | b014bbe30d782dfa9ee79b19d1b0aaf65cbca3ee | [
"MIT"
] | 3 | 2015-11-03T19:22:55.000Z | 2018-11-15T21:07:58.000Z | v1-python/imgencode.py | alexadam/img-encode | b014bbe30d782dfa9ee79b19d1b0aaf65cbca3ee | [
"MIT"
] | 42 | 2015-02-26T21:31:36.000Z | 2022-02-22T13:17:09.000Z | #!/usr/bin/python
from PIL import Image
import math, wave, array, sys, getopt
def start(inputfile, outputfile, duration):
im = Image.open(inputfile)
width, height = im.size
rgb_im = im.convert('RGB')
durationSeconds = float(duration)
tmpData = []
maxFreq = 0
data = array.array('h')
... | 27.209877 | 89 | 0.528131 | 251 | 2,204 | 4.565737 | 0.406375 | 0.020942 | 0.070681 | 0.055846 | 0.108202 | 0.108202 | 0.108202 | 0.108202 | 0.108202 | 0.108202 | 0 | 0.021633 | 0.349819 | 2,204 | 80 | 90 | 27.55 | 0.778088 | 0.00726 | 0 | 0.033333 | 0 | 0 | 0.083219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f54818f5189cb98d9aa80e754dc5ada990710588 | 2,451 | py | Python | banco1.py | iansantana00/Python-Course | 43852aa64c93099342ab4765b0fe8729a959449e | [
"MIT"
] | 2 | 2022-01-13T15:55:58.000Z | 2022-02-11T23:18:34.000Z | banco1.py | iansantana00/Python-Course | 43852aa64c93099342ab4765b0fe8729a959449e | [
"MIT"
] | null | null | null | banco1.py | iansantana00/Python-Course | 43852aa64c93099342ab4765b0fe8729a959449e | [
"MIT"
] | null | null | null |
class Conta:
def __init__(self, numero, titular, saldo, limite):
self._numero = numero
self._titular = titular
self._saldo = saldo
self._limite = limite
def deposita(self, valor):
self._saldo += valor
if valor <= 0:
return 'Não foi possí... | 26.354839 | 70 | 0.576499 | 285 | 2,451 | 4.677193 | 0.242105 | 0.087772 | 0.067517 | 0.090023 | 0.357839 | 0.335334 | 0.335334 | 0.294824 | 0.264816 | 0.234059 | 0 | 0.061556 | 0.29743 | 2,451 | 92 | 71 | 26.641304 | 0.712544 | 0 | 0 | 0.285714 | 0 | 0 | 0.120119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0.017857 | 0.339286 | 0.089286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f54bb2264992ff7d812e8e002bf3c5b313002279 | 907 | py | Python | opentpod/object_detector/migrations/0005_trainconfig.py | cnguyen123/OpenTPOD | bc2f1ba86f9797c11579f382e0773ef92aa16ff9 | [
"Apache-2.0"
] | 111 | 2020-04-18T10:06:44.000Z | 2022-02-18T06:58:41.000Z | opentpod/object_detector/migrations/0005_trainconfig.py | cnguyen123/OpenTPOD | bc2f1ba86f9797c11579f382e0773ef92aa16ff9 | [
"Apache-2.0"
] | 17 | 2019-08-23T15:51:00.000Z | 2020-02-18T20:22:35.000Z | opentpod/object_detector/migrations/0005_trainconfig.py | cnguyen123/OpenTPOD | bc2f1ba86f9797c11579f382e0773ef92aa16ff9 | [
"Apache-2.0"
] | 15 | 2020-04-18T13:12:25.000Z | 2022-02-02T22:20:43.000Z | # Generated by Django 2.2.3 on 2019-11-19 20:38
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('object_detector', '0004_auto_20191115_1631'),
]
operations = [
migrations.CreateModel(
name='Tr... | 34.884615 | 127 | 0.624035 | 90 | 907 | 6.122222 | 0.655556 | 0.043557 | 0.050817 | 0.079855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058651 | 0.248071 | 907 | 25 | 128 | 36.28 | 0.749267 | 0.049614 | 0 | 0 | 1 | 0 | 0.156977 | 0.054651 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f54f0af9be3816dd2862651af6d9fcdc2b3569d8 | 621 | py | Python | tests/unit/pylib/test_pyload.py | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | 5 | 2019-10-14T01:06:57.000Z | 2021-02-02T16:33:06.000Z | tests/unit/pylib/test_pyload.py | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | null | null | null | tests/unit/pylib/test_pyload.py | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | null | null | null | from tools.pydict_load import pydict_load
from tools.cfg_load import cfg_load
from scipy import constants
def test_pydict_load_01():
filename = 'tests/unit/pylib/test_pyload_input1.txt'
d=pydict_load(filename, verbose=True)
assert d.pop('proton_mass')==constants.proton_mass
assert (d.pop('array')==[1,... | 29.571429 | 74 | 0.713366 | 101 | 621 | 4.19802 | 0.425743 | 0.141509 | 0.117925 | 0.080189 | 0.353774 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0.030189 | 0.146538 | 621 | 20 | 75 | 31.05 | 0.769811 | 0 | 0 | 0.125 | 0 | 0 | 0.178744 | 0.125604 | 0 | 0 | 0 | 0 | 0.4375 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5514cc04336dc9fca0193899da645ababe5b68f | 1,237 | py | Python | app/ext/site/login/main.py | machado2077/admin-e-vendas-para-loja-com-flask | 1ba62028678de317c11ee963af6c006dda35dc40 | [
"MIT"
] | null | null | null | app/ext/site/login/main.py | machado2077/admin-e-vendas-para-loja-com-flask | 1ba62028678de317c11ee963af6c006dda35dc40 | [
"MIT"
] | null | null | null | app/ext/site/login/main.py | machado2077/admin-e-vendas-para-loja-com-flask | 1ba62028678de317c11ee963af6c006dda35dc40 | [
"MIT"
] | null | null | null | from flask import Blueprint, request, redirect, render_template, url_for, session, flash
from wtforms import Form, PasswordField
from wtforms.validators import DataRequired
from app.ext.db.main import Credenciais
class LoginForm(Form):
credencial = PasswordField("credencial", validators=[DataRequired()])
bp = Blue... | 28.113636 | 88 | 0.723525 | 154 | 1,237 | 5.688312 | 0.38961 | 0.05137 | 0.068493 | 0.085616 | 0.133562 | 0.133562 | 0.09589 | 0.09589 | 0 | 0 | 0 | 0 | 0.128537 | 1,237 | 43 | 89 | 28.767442 | 0.812616 | 0 | 0 | 0.117647 | 0 | 0 | 0.157639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.117647 | 0 | 0.382353 | 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 |
f5547afa68072b75540b64d969967867b0da7415 | 4,513 | py | Python | tools/create_buffer.py | Rhunter1/xively-client-c | bbb0a472c7b2f592c8d167eedf46221626f881df | [
"BSD-3-Clause"
] | null | null | null | tools/create_buffer.py | Rhunter1/xively-client-c | bbb0a472c7b2f592c8d167eedf46221626f881df | [
"BSD-3-Clause"
] | null | null | null | tools/create_buffer.py | Rhunter1/xively-client-c | bbb0a472c7b2f592c8d167eedf46221626f881df | [
"BSD-3-Clause"
] | 2 | 2019-09-18T11:26:52.000Z | 2019-10-25T19:27:31.000Z | #!/usr/bin/env python
# Copyright (c) 2003-2018, Xively All rights reserved.
#
# This is part of the Xively C Client library,
# it is licensed under the BSD 3-Clause license.
import argparse
import os.path
import struct
from pprint import pprint
h_file_name = ""
c_file_name = ""
ROOTCA_LIST_LEN_MACRO = "XI_ROOTCA_L... | 29.496732 | 185 | 0.606692 | 661 | 4,513 | 3.869894 | 0.257186 | 0.065676 | 0.040657 | 0.04222 | 0.345192 | 0.288116 | 0.209148 | 0.156372 | 0.08835 | 0.08835 | 0 | 0.010931 | 0.249945 | 4,513 | 152 | 186 | 29.690789 | 0.744756 | 0.036561 | 0 | 0.204082 | 0 | 0 | 0.178664 | 0.018384 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.040816 | null | null | 0.05102 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f55ab83c082cead67bb4cd42aafb49f7a634d8a9 | 578 | py | Python | lesson_01/01.py | alexartwww/geekbrains | f58720dc1d29bc94201b8b9c9239813c0d14ed64 | [
"MIT"
] | null | null | null | lesson_01/01.py | alexartwww/geekbrains | f58720dc1d29bc94201b8b9c9239813c0d14ed64 | [
"MIT"
] | null | null | null | lesson_01/01.py | alexartwww/geekbrains | f58720dc1d29bc94201b8b9c9239813c0d14ed64 | [
"MIT"
] | null | null | null | from common import input_value
task = '''
Поработайте с переменными, создайте несколько, выведите на экран, запросите у пользователя несколько чисел и строк
и сохраните в переменные, выведите на экран.
'''
if __name__ == '__main__':
print(task)
a = 1
b = 2.3445
c = 'hello'
d = True
a = input_... | 22.230769 | 114 | 0.584775 | 80 | 578 | 4.0625 | 0.525 | 0.153846 | 0.184615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027211 | 0.237024 | 578 | 25 | 115 | 23.12 | 0.709751 | 0 | 0 | 0 | 0 | 0 | 0.442907 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.263158 | 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 |
f55dcd389b1ce65f032913fdadc7cedcd8041d35 | 1,185 | py | Python | demo/blog/views.py | andrewebdev/django-ostinato | 2c435dea23319be6e9011e7381afca2b4092b5a2 | [
"MIT"
] | 5 | 2015-01-28T09:56:48.000Z | 2020-05-22T21:07:30.000Z | demo/blog/views.py | andrewebdev/django-ostinato | 2c435dea23319be6e9011e7381afca2b4092b5a2 | [
"MIT"
] | 18 | 2015-02-03T15:37:22.000Z | 2020-06-05T16:41:15.000Z | demo/blog/views.py | andrewebdev/django-ostinato | 2c435dea23319be6e9011e7381afca2b4092b5a2 | [
"MIT"
] | 2 | 2015-02-23T19:34:59.000Z | 2017-01-22T02:10:12.000Z | from ostinato.pages.views import PageView
from django.views.generic.detail import DetailView
from django.views.generic.dates import DateDetailView
from ostinato.pages.models import Page
from blog.models import Entry
class LandingPageView(PageView):
def get_context_data(self, **kwargs):
c = super(Landing... | 28.902439 | 71 | 0.696203 | 146 | 1,185 | 5.486301 | 0.369863 | 0.074906 | 0.104869 | 0.06367 | 0.400749 | 0.370787 | 0.370787 | 0.370787 | 0.329588 | 0.329588 | 0 | 0.002081 | 0.18903 | 1,185 | 40 | 72 | 29.625 | 0.831426 | 0 | 0 | 0.413793 | 0 | 0 | 0.069257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.172414 | 0 | 0.758621 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f562db77cb5bc68be20e97b78abe1aaf09c04516 | 457 | py | Python | src/uix/components/game_resume.py | stefaniavallone/kaboo | 1492ef9313fa39cf6bf9ac9417a53f6e3c10921b | [
"MIT"
] | null | null | null | src/uix/components/game_resume.py | stefaniavallone/kaboo | 1492ef9313fa39cf6bf9ac9417a53f6e3c10921b | [
"MIT"
] | 1 | 2022-03-17T03:02:44.000Z | 2022-03-17T03:02:44.000Z | src/uix/components/game_resume.py | stefaniavallone/kaboo | 1492ef9313fa39cf6bf9ac9417a53f6e3c10921b | [
"MIT"
] | 2 | 2022-03-03T16:35:22.000Z | 2022-03-17T02:54:25.000Z | from kivy.lang import Builder
from kivy.properties import StringProperty
from kivymd.uix.gridlayout import MDGridLayout
Builder.load_file("uix/components/kv/game_resume.kv")
class GameResume(MDGridLayout):
num_players = StringProperty()
num_jumps = StringProperty()
round_time = StringProperty()
game... | 21.761905 | 53 | 0.724289 | 49 | 457 | 6.469388 | 0.632653 | 0.050473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179431 | 457 | 20 | 54 | 22.85 | 0.845333 | 0 | 0 | 0 | 0 | 0 | 0.070175 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f569230fdef69e78242ebbc5c3db7e1d7f100075 | 344 | py | Python | controller/SnesMappings.py | ploiu/pythonGeometryWars | b128dae2b77c88f925a5a6b6af0d6500728a9b4c | [
"MIT"
] | null | null | null | controller/SnesMappings.py | ploiu/pythonGeometryWars | b128dae2b77c88f925a5a6b6af0d6500728a9b4c | [
"MIT"
] | null | null | null | controller/SnesMappings.py | ploiu/pythonGeometryWars | b128dae2b77c88f925a5a6b6af0d6500728a9b4c | [
"MIT"
] | null | null | null | from enum import IntEnum
class SNESButtons(IntEnum):
X = 0
A = 1
B = 2
Y = 3
L_BUMPER = 4
R_BUMPER = 5
SELECT = 8
START = 9
class SNESAxes(IntEnum):
HORIZONTAL = 0
VERTICAL = 1
# the mappings are different on windows for some reason
class SNESAxes_Win(IntEnum):
HORIZONT... | 14.333333 | 55 | 0.616279 | 49 | 344 | 4.265306 | 0.734694 | 0.124402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0.319767 | 344 | 23 | 56 | 14.956522 | 0.84188 | 0.15407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 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 |
f56fe72bfb4d53f1e0c9e526b8b0287a0ce44757 | 1,284 | py | Python | snaps/models.py | Brayonski/Gallery | 2712702602981353af4953facec0eeb53856a91d | [
"MIT"
] | null | null | null | snaps/models.py | Brayonski/Gallery | 2712702602981353af4953facec0eeb53856a91d | [
"MIT"
] | null | null | null | snaps/models.py | Brayonski/Gallery | 2712702602981353af4953facec0eeb53856a91d | [
"MIT"
] | null | null | null | from django.db import models
import datetime as dt
# Create your models here.
class Location(models.Model):
location = models.CharField(max_length=50)
def __str__(self):
return self.location
class Meta:
ordering = ['location']
class Category(models.Model):
category = models.CharField... | 24.226415 | 77 | 0.665888 | 152 | 1,284 | 5.388158 | 0.328947 | 0.039072 | 0.065934 | 0.087912 | 0.205128 | 0.112332 | 0.112332 | 0.112332 | 0.112332 | 0.112332 | 0 | 0.006167 | 0.242212 | 1,284 | 52 | 78 | 24.692308 | 0.83556 | 0.018692 | 0 | 0.194444 | 0 | 0 | 0.011129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.055556 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f57ba69beeb1be9b71a5f1a9388ca5e718ee77b1 | 425 | py | Python | core/urls.py | ArJSarmiento/Image-Classifier-Django | e8031f3d64ff3ee9bf1780e1d1c1641e2a5774c6 | [
"MIT"
] | null | null | null | core/urls.py | ArJSarmiento/Image-Classifier-Django | e8031f3d64ff3ee9bf1780e1d1c1641e2a5774c6 | [
"MIT"
] | null | null | null | core/urls.py | ArJSarmiento/Image-Classifier-Django | e8031f3d64ff3ee9bf1780e1d1c1641e2a5774c6 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
from . import views
urlpatterns = [
path('', views.index, name="index"),
path('classify', views.classify, name="classify"),
path('admin/', admin.site.urls),
... | 28.333333 | 80 | 0.715294 | 55 | 425 | 5.472727 | 0.4 | 0.13289 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164706 | 425 | 15 | 80 | 28.333333 | 0.847887 | 0 | 0 | 0 | 0 | 0 | 0.065534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f57be6d33c85cdf82288510349c8493a6124cdd4 | 912 | py | Python | camelcase.py | mkhalil7625/capstone-week3 | 0a1f4eedf19b858dc7fd35e15fc2cc2a12748d10 | [
"MIT"
] | null | null | null | camelcase.py | mkhalil7625/capstone-week3 | 0a1f4eedf19b858dc7fd35e15fc2cc2a12748d10 | [
"MIT"
] | null | null | null | camelcase.py | mkhalil7625/capstone-week3 | 0a1f4eedf19b858dc7fd35e15fc2cc2a12748d10 | [
"MIT"
] | null | null | null | def camelcase(sentence):
""" Convert sentence to camelCase, for example,
"Display all books"
is converted to "displayAllBooks" """
title_case = sentence.title() # Uppercase first letter of each word
upper_camel_cased = title_case.replace(' ', '') # remove spaces
# Lowercase first letter, join with rest of... | 29.419355 | 68 | 0.70943 | 125 | 912 | 5.032 | 0.576 | 0.047695 | 0.071542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005291 | 0.171053 | 912 | 30 | 69 | 30.4 | 0.82672 | 0.377193 | 0 | 0 | 0 | 0 | 0.213504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f5806e03a27b2e36c41d88740fb9a40c50336ef2 | 6,171 | py | Python | tests/test_anomalies.py | IRC-SPHERE/SklearnHyperStream | 7799e0ea15135fe5cb2935bdd39b471c53ccf0ff | [
"MIT"
] | 3 | 2017-11-27T11:12:35.000Z | 2019-12-25T12:33:17.000Z | tests/test_anomalies.py | IRC-SPHERE/SklearnHyperStream | 7799e0ea15135fe5cb2935bdd39b471c53ccf0ff | [
"MIT"
] | 5 | 2017-08-22T19:25:26.000Z | 2017-11-27T10:58:58.000Z | tests/test_anomalies.py | IRC-SPHERE/SklearnHyperStream | 7799e0ea15135fe5cb2935bdd39b471c53ccf0ff | [
"MIT"
] | 1 | 2018-11-19T08:01:55.000Z | 2018-11-19T08:01:55.000Z | # The MIT License (MIT) # Copyright (c) 2014-2017 University of Bristol
#
# 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... | 51.425 | 84 | 0.567655 | 1,216 | 6,171 | 2.841283 | 0.208059 | 0.013893 | 0.020839 | 0.013893 | 0.288567 | 0.26686 | 0.24602 | 0.23589 | 0.23589 | 0.223444 | 0 | 0.242718 | 0.265597 | 6,171 | 119 | 85 | 51.857143 | 0.519638 | 0.21358 | 0 | 0 | 0 | 0 | 0.025264 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 1 | 0.024691 | false | 0 | 0.074074 | 0 | 0.111111 | 0.074074 | 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 |
f583a1b18d7674f3c08bae5c3b31d37048e4ceb9 | 5,093 | py | Python | benchmark.py | feifeibear/dlbench | 978b034e9c34e6aaa38782bb1e4a2cea0c01d0f9 | [
"MIT"
] | 181 | 2017-01-29T23:50:25.000Z | 2022-01-15T13:43:17.000Z | benchmark.py | waltersharpWEI/dlbenchData | 8f551ead44141aa1f678b1a32724d07ccbf4db5b | [
"MIT"
] | 33 | 2017-01-30T00:50:24.000Z | 2020-12-19T07:00:56.000Z | benchmark.py | waltersharpWEI/dlbenchData | 8f551ead44141aa1f678b1a32724d07ccbf4db5b | [
"MIT"
] | 54 | 2017-01-30T21:04:27.000Z | 2020-07-09T03:26:56.000Z | import argparse
import sys,os,time
import subprocess
import collect_gpu_power as cgp
from threading import Thread
# Parse arguments
parser = argparse.ArgumentParser(description='Benchmark deep learning tools')
parser.add_argument('-config', type=str, help='Path to the config file')
parser.add_argument('-post', type=b... | 36.640288 | 170 | 0.621834 | 737 | 5,093 | 4.101764 | 0.214383 | 0.071783 | 0.026464 | 0.027787 | 0.200132 | 0.123387 | 0.10784 | 0.075422 | 0.063513 | 0.063513 | 0 | 0.011905 | 0.191832 | 5,093 | 138 | 171 | 36.905797 | 0.722546 | 0.012959 | 0 | 0.114754 | 0 | 0 | 0.170683 | 0.004182 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.040984 | null | null | 0.131148 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f5a0de8ca51aacea2a4fd5ac3bf6cbc8bb475332 | 4,900 | py | Python | datyy/components/cards.py | VladimirSiv/datyy | 4f3b54557850212ca3ce4c0d16cd56eb9989d7c4 | [
"MIT"
] | null | null | null | datyy/components/cards.py | VladimirSiv/datyy | 4f3b54557850212ca3ce4c0d16cd56eb9989d7c4 | [
"MIT"
] | null | null | null | datyy/components/cards.py | VladimirSiv/datyy | 4f3b54557850212ca3ce4c0d16cd56eb9989d7c4 | [
"MIT"
] | null | null | null | import dash_html_components as html
import dash_core_components as dcc
def simple_info_card(id_, title):
"""Generates simple info card component
Args:
id_ (str): Component id
title (str): Component title
Returns:
obj: Html div object
"""
return html.Div(
classNam... | 27.840909 | 78 | 0.423673 | 426 | 4,900 | 4.79108 | 0.199531 | 0.102891 | 0.11661 | 0.053895 | 0.55267 | 0.455659 | 0.393435 | 0.362077 | 0.312102 | 0.229789 | 0 | 0.001952 | 0.477347 | 4,900 | 175 | 79 | 28 | 0.795002 | 0.193469 | 0 | 0.522936 | 1 | 0 | 0.141569 | 0.018293 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045872 | false | 0 | 0.018349 | 0 | 0.119266 | 0 | 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 |
f5a334a9e9ab480dae7340e92e354cdee3a30dcb | 205 | py | Python | examples/alert.py | pzahemszky/guizero | be298433a96ef1af91ecd6e90b469af62ecaa61c | [
"BSD-3-Clause"
] | 320 | 2016-11-14T09:28:43.000Z | 2022-03-29T03:55:33.000Z | examples/alert.py | pzahemszky/guizero | be298433a96ef1af91ecd6e90b469af62ecaa61c | [
"BSD-3-Clause"
] | 355 | 2016-12-29T08:45:45.000Z | 2022-03-25T14:12:00.000Z | examples/alert.py | pzahemszky/guizero | be298433a96ef1af91ecd6e90b469af62ecaa61c | [
"BSD-3-Clause"
] | 91 | 2016-11-14T11:09:55.000Z | 2022-03-19T08:39:55.000Z | from guizero import App
app = App()
app.info("Info", "This is a guizero app")
app.error("Error", "Try and keep these out your code...")
app.warn("Warning", "These are helpful to alert users")
app.display() | 34.166667 | 57 | 0.702439 | 35 | 205 | 4.114286 | 0.685714 | 0.166667 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136585 | 205 | 6 | 58 | 34.166667 | 0.813559 | 0 | 0 | 0 | 0 | 0 | 0.504854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1920623a5770d1b271a99da9f22436f409b7caf8 | 3,227 | py | Python | tests/test_translation.py | ikonst/jschon | 4aa5c2ffce1dca831342aab232bceff9c542c137 | [
"MIT"
] | null | null | null | tests/test_translation.py | ikonst/jschon | 4aa5c2ffce1dca831342aab232bceff9c542c137 | [
"MIT"
] | null | null | null | tests/test_translation.py | ikonst/jschon | 4aa5c2ffce1dca831342aab232bceff9c542c137 | [
"MIT"
] | null | null | null | import pathlib
from datetime import datetime
from urllib.parse import urlparse
import pytest
from jschon import JSON, JSONSchema
from jschon.jsonpatch import JSONPatch
from jschon.translation import translation_filter
from jschon.utils import json_loadf
example_dir = pathlib.Path(__file__).parent / 'data' / 'transla... | 35.076087 | 116 | 0.695693 | 385 | 3,227 | 5.675325 | 0.267532 | 0.032037 | 0.057666 | 0.048055 | 0.153776 | 0.128146 | 0.100687 | 0 | 0 | 0 | 0 | 0.017215 | 0.18996 | 3,227 | 91 | 117 | 35.461538 | 0.818669 | 0.052061 | 0 | 0.03125 | 0 | 0 | 0.120249 | 0.051114 | 0 | 0 | 0 | 0.010989 | 0.203125 | 1 | 0.078125 | false | 0 | 0.125 | 0.015625 | 0.234375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
19220d31d51bd9e27d25a340f85c6be435c73374 | 1,666 | py | Python | unitx/constants.py | supertask/UnitX | f3c8c564cb7822cebb24ebc000ca454f3222fbf2 | [
"MIT"
] | 2 | 2019-07-19T09:57:32.000Z | 2019-12-30T17:44:03.000Z | unitx/constants.py | 0ED/UnitX | f3c8c564cb7822cebb24ebc000ca454f3222fbf2 | [
"MIT"
] | 1 | 2016-11-04T23:34:21.000Z | 2016-11-04T23:34:21.000Z | unitx/constants.py | supertask/UnitX | f3c8c564cb7822cebb24ebc000ca454f3222fbf2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
class Constants(object):
"""A class defining a fixed numer for some classes."""
#
# Exit statuses
#
EXIT_SUCCESS = 0
EXIT_FAILURE = 1
EXIT_FAILURE_IN_UNITX = 44
#
# Unit databases
#
SYSTEM_UNIT_DATA = 'data/unit_tab... | 27.766667 | 96 | 0.672269 | 221 | 1,666 | 4.809955 | 0.38914 | 0.158043 | 0.067733 | 0.079022 | 0.155221 | 0.096896 | 0.052681 | 0.052681 | 0 | 0 | 0 | 0.006813 | 0.207083 | 1,666 | 59 | 97 | 28.237288 | 0.79788 | 0.057023 | 0 | 0 | 0 | 0 | 0.287671 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0 | null | null | 0 | 0.032258 | null | null | 0.387097 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1927f06130bad5f5e4f1933aa4953d8eeed71e6f | 2,606 | py | Python | AndroidPushSession.py | szqh97/teamtalk-pushserver | 35158c1122186072b08b1647f2fabbc5bccd08fb | [
"Apache-2.0"
] | null | null | null | AndroidPushSession.py | szqh97/teamtalk-pushserver | 35158c1122186072b08b1647f2fabbc5bccd08fb | [
"Apache-2.0"
] | null | null | null | AndroidPushSession.py | szqh97/teamtalk-pushserver | 35158c1122186072b08b1647f2fabbc5bccd08fb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import traceback
import time
from util.common import install_logger
logger = install_logger(__name__)
from pushTasks import APNs2Tasks
class AndroidPushCmd(object):
"""Docstring for MyClass. """
def __init__(self, device_token, push_flash, push_data)... | 28.021505 | 72 | 0.574444 | 290 | 2,606 | 4.87931 | 0.368966 | 0.038163 | 0.033922 | 0.031802 | 0.040283 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028745 | 0.305833 | 2,606 | 92 | 73 | 28.326087 | 0.753455 | 0.104375 | 0 | 0 | 0 | 0 | 0.134375 | 0.038839 | 0 | 0 | 0 | 0.086957 | 0 | 1 | 0.05 | false | 0 | 0.116667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1929d9dd2de5e93454f9086ba2db22f9c030f014 | 499 | py | Python | BOJ/13000~13999/13400~13499/13423.py | shinkeonkim/today-ps | f3e5e38c5215f19579bb0422f303a9c18c626afa | [
"Apache-2.0"
] | 2 | 2020-01-29T06:54:41.000Z | 2021-11-07T13:23:27.000Z | BOJ/13000~13999/13400~13499/13423.py | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | BOJ/13000~13999/13400~13499/13423.py | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | for t in range(int(input())):
n = int(input())
L = list(map(int,input().split()))
L.sort()
d = dict()
for i in L:
d[i] = 1
cnt = 0
for i in range(n):
for j in range(i+1,n):
try:
if d[L[i] - (L[j]-L[i])] == 1:
cnt+=1
... | 20.791667 | 46 | 0.308617 | 69 | 499 | 2.231884 | 0.347826 | 0.051948 | 0.097403 | 0.090909 | 0.194805 | 0.194805 | 0.194805 | 0.194805 | 0 | 0 | 0 | 0.033058 | 0.51503 | 499 | 23 | 47 | 21.695652 | 0.603306 | 0 | 0 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
192c6dd1e70cd5b314e2df75b8d0d6d499592cae | 551 | py | Python | tests/test_mystem.py | smoke-b/pymystem3 | 098781ec2419a25e817e3c15447093b8577dfff6 | [
"MIT"
] | 205 | 2017-11-06T06:39:41.000Z | 2022-03-31T06:55:11.000Z | tests/test_mystem.py | smoke-b/pymystem3 | 098781ec2419a25e817e3c15447093b8577dfff6 | [
"MIT"
] | 31 | 2017-10-30T09:56:58.000Z | 2022-02-04T12:35:24.000Z | tests/test_mystem.py | smoke-b/pymystem3 | 098781ec2419a25e817e3c15447093b8577dfff6 | [
"MIT"
] | 42 | 2017-10-30T06:54:46.000Z | 2022-02-09T09:33:41.000Z | # -*- coding: utf-8 -*-
from pymystem3 import Mystem
class TestMystem(object):
def test_mystem(self):
m = Mystem()
tokens = m.lemmatize("Мама мыла раму")
assert ["мама", " ", "мыть", " ", "рама", "\n"] == tokens
def test_mystem_not_entireinput(self):
m = Mystem(entire_input=F... | 26.238095 | 65 | 0.558984 | 65 | 551 | 4.630769 | 0.446154 | 0.069767 | 0.129568 | 0.112957 | 0.431894 | 0.431894 | 0.305648 | 0.305648 | 0.305648 | 0.305648 | 0 | 0.004988 | 0.272232 | 551 | 20 | 66 | 27.55 | 0.745636 | 0.038113 | 0 | 0.285714 | 0 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.214286 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
192e8a16b15dabab0d143c207c927aef447945a4 | 705 | py | Python | stats/views.py | bartromgens/waarnemingkaart | 3889d429a1c10586115b045a17be3e9c98931613 | [
"MIT"
] | null | null | null | stats/views.py | bartromgens/waarnemingkaart | 3889d429a1c10586115b045a17be3e9c98931613 | [
"MIT"
] | 8 | 2020-01-01T16:11:19.000Z | 2021-12-13T19:42:07.000Z | stats/views.py | bartromgens/waarnemingkaart | 3889d429a1c10586115b045a17be3e9c98931613 | [
"MIT"
] | 1 | 2020-11-15T23:06:43.000Z | 2020-11-15T23:06:43.000Z | from django.views.generic import TemplateView
from django.http import HttpResponse
from django.utils.safestring import mark_safe
from observation.models import Observation
from stats.plots import PlotObservationsVsTime
class ObservationsVsTimeView(TemplateView):
template_name = "stats/observations_vs_time.html"... | 37.105263 | 101 | 0.777305 | 79 | 705 | 6.721519 | 0.56962 | 0.056497 | 0.052731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13617 | 705 | 18 | 102 | 39.166667 | 0.871921 | 0 | 0 | 0 | 0 | 0 | 0.087943 | 0.043972 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1935291152fe32f369bf0cd498436fd3e64d8853 | 2,700 | py | Python | src/lib/game.py | HanSaloZu/Tic-Tac-Toe-Game-in-Python-Tkinter | 779e805e07c46b7527d9b4ae4fc3ae8cf9e18616 | [
"MIT"
] | null | null | null | src/lib/game.py | HanSaloZu/Tic-Tac-Toe-Game-in-Python-Tkinter | 779e805e07c46b7527d9b4ae4fc3ae8cf9e18616 | [
"MIT"
] | null | null | null | src/lib/game.py | HanSaloZu/Tic-Tac-Toe-Game-in-Python-Tkinter | 779e805e07c46b7527d9b4ae4fc3ae8cf9e18616 | [
"MIT"
] | null | null | null | from random import choice
class Game:
def __init__(self, gui: object):
self.gui: object = gui
self.field = gui.grid.field
self.current_sym: str = choice(["X", "0"])
for row in range(3):
for col in range(3):
btn = self.gui.grid.field[row][col]
... | 29.347826 | 78 | 0.452222 | 325 | 2,700 | 3.64 | 0.187692 | 0.20541 | 0.08284 | 0.057481 | 0.343195 | 0.312764 | 0.251902 | 0.223161 | 0.223161 | 0.223161 | 0 | 0.030208 | 0.411481 | 2,700 | 91 | 79 | 29.67033 | 0.714286 | 0 | 0 | 0.278481 | 0 | 0 | 0.018519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101266 | false | 0 | 0.012658 | 0.012658 | 0.189873 | 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 |
193a5f253b85578e66a44eed5a58cc9da47b2f84 | 366 | py | Python | src/batch_norm/setup.py | RaulMurillo/cpp-torch | 30d0ee38c20f389e4b996d821952a48cccc70789 | [
"MIT"
] | null | null | null | src/batch_norm/setup.py | RaulMurillo/cpp-torch | 30d0ee38c20f389e4b996d821952a48cccc70789 | [
"MIT"
] | null | null | null | src/batch_norm/setup.py | RaulMurillo/cpp-torch | 30d0ee38c20f389e4b996d821952a48cccc70789 | [
"MIT"
] | null | null | null | from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CppExtension # , CUDAExtension
setup(
name='batch_norm_cpp',
ext_modules=[
CppExtension(
name='batch_norm_cpu',
sources=['batch_norm_binding.cpp'],
),
# CUDAExtension(...),
],... | 24.4 | 85 | 0.636612 | 35 | 366 | 6.4 | 0.6 | 0.120536 | 0.116071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248634 | 366 | 14 | 86 | 26.142857 | 0.814545 | 0.095628 | 0 | 0 | 0 | 0 | 0.179878 | 0.067073 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
193ec0b5b3bea03b15c42cfd89cd30d8e9a05180 | 897 | py | Python | tests/face_recognition_test.py | mrlathome/faceutils | 705e966eb07f06e403dfdc3ca9cd4bc7741f7c56 | [
"MIT"
] | 19 | 2018-11-21T07:32:00.000Z | 2022-01-31T13:01:14.000Z | tests/face_recognition_test.py | mrlathome/ros-face-recognition | 705e966eb07f06e403dfdc3ca9cd4bc7741f7c56 | [
"MIT"
] | 3 | 2019-08-09T15:57:22.000Z | 2019-08-18T05:13:39.000Z | tests/face_recognition_test.py | mrlathome/faceutils | 705e966eb07f06e403dfdc3ca9cd4bc7741f7c56 | [
"MIT"
] | 10 | 2019-01-22T05:04:36.000Z | 2022-03-28T01:39:18.000Z | import os
import unittest
import tempfile
import shutil
from faceutils import detect_faces, io, face_landmarks, extract_face_features, features_distance
class RecognitionTest(unittest.TestCase):
"""
Test methods in face recognition
"""
def __init__(self, *args, **kwargs):
unittest.TestCase._... | 28.935484 | 109 | 0.710145 | 115 | 897 | 5.182609 | 0.408696 | 0.055369 | 0.063758 | 0.060403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005472 | 0.185061 | 897 | 30 | 110 | 29.9 | 0.80985 | 0.035674 | 0 | 0 | 0 | 0 | 0.070671 | 0.061249 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.157895 | false | 0 | 0.263158 | 0.052632 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1942f0e56e606954a5f47c6a9dcfc46898435334 | 952 | py | Python | login.py | debecerra/cmput404-lab3-cgi | 9873f5e88757cd58a73229cd3f92d3bb83c0dcf0 | [
"Apache-2.0"
] | null | null | null | login.py | debecerra/cmput404-lab3-cgi | 9873f5e88757cd58a73229cd3f92d3bb83c0dcf0 | [
"Apache-2.0"
] | null | null | null | login.py | debecerra/cmput404-lab3-cgi | 9873f5e88757cd58a73229cd3f92d3bb83c0dcf0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import cgi, cgitb, os
from templates import secret_page, after_login_incorrect
import secret
form = cgi.FieldStorage()
username_field = form.getvalue("username")
password_field = form.getvalue("password")
if username_field == secret.username and password_field == secret.password:
print("Se... | 24.410256 | 75 | 0.662815 | 127 | 952 | 4.834646 | 0.433071 | 0.052117 | 0.061889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001282 | 0.180672 | 952 | 39 | 76 | 24.410256 | 0.785897 | 0.153361 | 0 | 0.153846 | 0 | 0 | 0.11596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.153846 | 0.115385 | 0 | 0.115385 | 0.192308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1951371ac055960293461dbd7db1db8c82ed298a | 1,865 | py | Python | emailer/emailer.py | AlexanderEllis/trello-emailer | dd474ccaf814151d388b063b6a200f94c91a1b53 | [
"MIT"
] | null | null | null | emailer/emailer.py | AlexanderEllis/trello-emailer | dd474ccaf814151d388b063b6a200f94c91a1b53 | [
"MIT"
] | null | null | null | emailer/emailer.py | AlexanderEllis/trello-emailer | dd474ccaf814151d388b063b6a200f94c91a1b53 | [
"MIT"
] | null | null | null | from trello import TrelloClient
from user_config import TRELLO_API_INFO, BOARDS_TO_WATCH
from send_email import send_email
def analyze_boards(board_list, trello_client, email_body):
"""
This function takes in a list of Trello boards to anaylze
For each card in each board, it parses for the checklists and a... | 33.303571 | 95 | 0.629491 | 240 | 1,865 | 4.658333 | 0.341667 | 0.072451 | 0.05814 | 0.037567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001512 | 0.290617 | 1,865 | 55 | 96 | 33.909091 | 0.843537 | 0.249866 | 0 | 0 | 0 | 0 | 0.053104 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1952dfca9c28a5d744ecff99bc976e1123538fcd | 1,641 | py | Python | tests/test_config_access.py | pgoelter/pyconfig | 4da120c073488f19fa45e9b830e399c273d567ea | [
"MIT"
] | null | null | null | tests/test_config_access.py | pgoelter/pyconfig | 4da120c073488f19fa45e9b830e399c273d567ea | [
"MIT"
] | 8 | 2021-04-08T12:33:47.000Z | 2021-04-08T15:26:39.000Z | tests/test_config_access.py | pgoelter/pyconfig | 4da120c073488f19fa45e9b830e399c273d567ea | [
"MIT"
] | null | null | null | from pyconfig import Config
import pytest
@pytest.fixture
def sample_config_object():
Config.__instance__ = None
config: Config = Config()
config.set(route="database.connection.user", value="Testuser")
config.set(route="database.connection.password", value="PASSWORD")
config.set(route="database.c... | 27.35 | 74 | 0.639244 | 170 | 1,641 | 5.941176 | 0.247059 | 0.062376 | 0.09703 | 0.087129 | 0.577228 | 0.263366 | 0.122772 | 0.122772 | 0.122772 | 0.122772 | 0 | 0.015823 | 0.229738 | 1,641 | 59 | 75 | 27.813559 | 0.783228 | 0 | 0 | 0.261905 | 0 | 0 | 0.240098 | 0.075564 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.095238 | false | 0.071429 | 0.047619 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
195a1162d320ea2e4356531b0aa56458c1e11679 | 1,010 | py | Python | swallow/quote.py | hashknot/swallow | 84296ffc6eff40bb4b8e55f3e58d1bf49659b145 | [
"MIT"
] | null | null | null | swallow/quote.py | hashknot/swallow | 84296ffc6eff40bb4b8e55f3e58d1bf49659b145 | [
"MIT"
] | null | null | null | swallow/quote.py | hashknot/swallow | 84296ffc6eff40bb4b8e55f3e58d1bf49659b145 | [
"MIT"
] | null | null | null | """
Defines quote providing classes.
"""
import requests
from bs4 import BeautifulSoup
QUOTE_BR_URL = 'http://www.bookreporter.com/features/quotes'
""" bookreporter.com's quote of the day URL """
class BaseQuote(object):
def __init__(*args, **kwargs):
pass
def get(self):
"""
Must ret... | 28.055556 | 88 | 0.636634 | 116 | 1,010 | 5.448276 | 0.525862 | 0.06962 | 0.031646 | 0.066456 | 0.170886 | 0.091772 | 0.091772 | 0 | 0 | 0 | 0 | 0.012706 | 0.220792 | 1,010 | 35 | 89 | 28.857143 | 0.790343 | 0.172277 | 0 | 0.117647 | 0 | 0 | 0.149394 | 0.030956 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.058824 | 0.117647 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
195a30ad5c023c11e2c3d468d88766ef3be272c3 | 2,891 | py | Python | 0-EXP-LUYCKX08-A.py | webis-de/Luyckx2008 | a7b2711a354a71ba326ddb1e495a8343091e4d8c | [
"Unlicense"
] | null | null | null | 0-EXP-LUYCKX08-A.py | webis-de/Luyckx2008 | a7b2711a354a71ba326ddb1e495a8343091e4d8c | [
"Unlicense"
] | null | null | null | 0-EXP-LUYCKX08-A.py | webis-de/Luyckx2008 | a7b2711a354a71ba326ddb1e495a8343091e4d8c | [
"Unlicense"
] | null | null | null | from LuyckxFeatures import *
import personae
import numpy as np
import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot as plt
import os
import timblClassification as timbl
from collections import Counter
from matplotlib import rc
rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']})
rc('text'... | 38.039474 | 128 | 0.631269 | 414 | 2,891 | 4.350242 | 0.350242 | 0.033315 | 0.019989 | 0.018878 | 0.203776 | 0.15769 | 0.119933 | 0.051083 | 0.051083 | 0.051083 | 0 | 0.042105 | 0.178485 | 2,891 | 75 | 129 | 38.546667 | 0.716211 | 0.002767 | 0 | 0.03125 | 0 | 0 | 0.13178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.140625 | null | null | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
195b571e742cd0add4bcb1177ed0623858c7ee78 | 1,488 | py | Python | marcher/library.py | paquinn/voxign | cfb476405ad966aaaa1d5ca5bb6f78e1e7b95fe2 | [
"BSD-3-Clause"
] | null | null | null | marcher/library.py | paquinn/voxign | cfb476405ad966aaaa1d5ca5bb6f78e1e7b95fe2 | [
"BSD-3-Clause"
] | null | null | null | marcher/library.py | paquinn/voxign | cfb476405ad966aaaa1d5ca5bb6f78e1e7b95fe2 | [
"BSD-3-Clause"
] | null | null | null | from marcher.function import Primitive, Combinator, Operator
from marcher.vector import vec3, vec2
# --- Primitives --- #
@Primitive.register()
def Plane(p: vec3): """
return p.y;
"""
@Primitive.register()
def Sphere(p: vec3, r: float) -> float: """
return length(p) - r;
"""
@Primitive.register()
def Box(... | 18.6 | 67 | 0.575269 | 234 | 1,488 | 3.65812 | 0.213675 | 0.154206 | 0.140187 | 0.060748 | 0.453271 | 0.359813 | 0.359813 | 0.359813 | 0.296729 | 0.296729 | 0 | 0.044591 | 0.186156 | 1,488 | 80 | 68 | 18.6 | 0.662263 | 0.375672 | 0 | 0.5 | 0 | 0.074074 | 0.41205 | 0.099723 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.037037 | 0 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1976dbc94219601c18a4ba90c4e9c8dcfe67eadb | 3,382 | py | Python | testframework/integration/modules/property/material/b_gen_material.py | ZtModArchive/blender_niftools_addon | fc28f567e1fa431ec6633cb2a138898136090b29 | [
"BSD-3-Clause"
] | 94 | 2020-11-06T15:06:20.000Z | 2022-03-25T05:58:10.000Z | testframework/integration/modules/property/material/b_gen_material.py | ZtModArchive/blender_niftools_addon | fc28f567e1fa431ec6633cb2a138898136090b29 | [
"BSD-3-Clause"
] | 97 | 2020-11-02T19:15:47.000Z | 2022-03-30T16:23:17.000Z | testframework/integration/modules/property/material/b_gen_material.py | ZtModArchive/blender_niftools_addon | fc28f567e1fa431ec6633cb2a138898136090b29 | [
"BSD-3-Clause"
] | 23 | 2020-11-29T17:51:15.000Z | 2022-03-30T19:31:29.000Z | # ***** BEGIN LICENSE BLOCK *****
#
# Copyright © 2005, NIF File Format Library and Tools contributors.
# 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... | 35.229167 | 71 | 0.721467 | 520 | 3,382 | 4.528846 | 0.348077 | 0.050955 | 0.057325 | 0.076433 | 0.380892 | 0.258174 | 0.188535 | 0.158811 | 0.13673 | 0.106157 | 0 | 0.020543 | 0.193968 | 3,382 | 95 | 72 | 35.6 | 0.842993 | 0.527203 | 0 | 0.131579 | 0 | 0 | 0.005161 | 0 | 0 | 0 | 0 | 0 | 0.236842 | 1 | 0.210526 | false | 0 | 0.052632 | 0 | 0.394737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1977289e5943c04e8827e8b5ec458f5db7ef06b1 | 1,178 | py | Python | src/ope/deep_gmm/oadam/types.py | liyuan9988/IVOPEwithACME | d77fab09b2e1cb8d3dbd8b2ab88adcce6a853558 | [
"MIT"
] | 1 | 2020-09-05T01:25:39.000Z | 2020-09-05T01:25:39.000Z | src/ope/deep_gmm/oadam/types.py | liyuan9988/IVOPEwithACME | d77fab09b2e1cb8d3dbd8b2ab88adcce6a853558 | [
"MIT"
] | null | null | null | src/ope/deep_gmm/oadam/types.py | liyuan9988/IVOPEwithACME | d77fab09b2e1cb8d3dbd8b2ab88adcce6a853558 | [
"MIT"
] | null | null | null | """Type aliases for Sonnet.
Copied from sonnet/v2/src/types.py
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import tensorflow.compat.v2 as tf
from typing import Callable, Iterable, Mapping, Optional, Sequence, Text, Tuple, Union
... | 33.657143 | 86 | 0.756367 | 158 | 1,178 | 5.550633 | 0.563291 | 0.04561 | 0.054732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011811 | 0.137521 | 1,178 | 34 | 87 | 34.647059 | 0.851378 | 0.274194 | 0 | 0 | 0 | 0 | 0.023697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.352941 | 0 | 0.352941 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
197dfc157b27bb7ee61c6416b5dbd95a7c3ceaf3 | 277 | py | Python | catalog/bindings/csw/polar_csref.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/csw/polar_csref.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/csw/polar_csref.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from bindings.csw.polar_csref_type import PolarCsrefType
__NAMESPACE__ = "http://www.opengis.net/gml"
@dataclass
class PolarCsref(PolarCsrefType):
class Meta:
name = "polarCSRef"
namespace = "http://www.opengis.net/gml"
| 23.083333 | 56 | 0.736462 | 32 | 277 | 6.1875 | 0.625 | 0.131313 | 0.161616 | 0.232323 | 0.292929 | 0.292929 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162455 | 277 | 11 | 57 | 25.181818 | 0.853448 | 0 | 0 | 0 | 0 | 0 | 0.223827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1994bb131c1e34c4cbc1c73fa383f1153704a45a | 1,194 | py | Python | product/migrations/0001_initial.py | JAYBLA/mobile_payments | 9fcd7b4b3f894e14225fd1ebefc31a9e18c11112 | [
"MIT"
] | null | null | null | product/migrations/0001_initial.py | JAYBLA/mobile_payments | 9fcd7b4b3f894e14225fd1ebefc31a9e18c11112 | [
"MIT"
] | null | null | null | product/migrations/0001_initial.py | JAYBLA/mobile_payments | 9fcd7b4b3f894e14225fd1ebefc31a9e18c11112 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-08-06 19:23
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AU... | 37.3125 | 118 | 0.644891 | 125 | 1,194 | 6.032 | 0.568 | 0.03183 | 0.05305 | 0.058355 | 0.074271 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021763 | 0.230318 | 1,194 | 31 | 119 | 38.516129 | 0.798694 | 0.037688 | 0 | 0 | 1 | 0 | 0.069747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 |
1998cb6c9d384fbb6fcdb9165bdad5cf2429323c | 8,042 | py | Python | BeaverBotFinal.py | vinnyasa/BeaverBuddy | 95158f8f1f17606d25348dbf143c9a30076f127a | [
"MIT"
] | 1 | 2020-05-12T06:49:35.000Z | 2020-05-12T06:49:35.000Z | BeaverBotFinal.py | vinnyasa/BeaverBuddy | 95158f8f1f17606d25348dbf143c9a30076f127a | [
"MIT"
] | null | null | null | BeaverBotFinal.py | vinnyasa/BeaverBuddy | 95158f8f1f17606d25348dbf143c9a30076f127a | [
"MIT"
] | 1 | 2018-01-08T04:37:38.000Z | 2018-01-08T04:37:38.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'BeaverBot.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
from APIRequest import APIRequest
import os
from subprocess import call
from gtt... | 49.950311 | 152 | 0.696344 | 883 | 8,042 | 6.319366 | 0.242356 | 0.143369 | 0.096774 | 0.060215 | 0.416129 | 0.408602 | 0.402867 | 0.380287 | 0.362007 | 0.362007 | 0 | 0.041762 | 0.184158 | 8,042 | 161 | 153 | 49.950311 | 0.808718 | 0.060433 | 0 | 0 | 1 | 0.025424 | 0.079729 | 0.022552 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042373 | false | 0 | 0.059322 | 0 | 0.110169 | 0.016949 | 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 |
199b8798dd17243b0b22cecf9dc1f74bbe00ad99 | 393 | py | Python | threads_procs/show_ver_simple.py | tgnelson/pynet-ons-feb19 | c789e14812b90342f640f690e2717d36152487bc | [
"Apache-2.0"
] | null | null | null | threads_procs/show_ver_simple.py | tgnelson/pynet-ons-feb19 | c789e14812b90342f640f690e2717d36152487bc | [
"Apache-2.0"
] | null | null | null | threads_procs/show_ver_simple.py | tgnelson/pynet-ons-feb19 | c789e14812b90342f640f690e2717d36152487bc | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from netmiko import ConnectHandler
from getpass import getpass
device = {
"device_type": "juniper_junos",
"ip": "184.105.247.76",
"username": "pyclass",
"password": getpass(),
"port": 22,
}
net_connect = ConnectHandler(**device)
output = net_connect.send_command_expect("show ... | 18.714286 | 56 | 0.666667 | 48 | 393 | 5.333333 | 0.6875 | 0.078125 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051515 | 0.160305 | 393 | 20 | 57 | 19.65 | 0.724242 | 0.050891 | 0 | 0.25 | 0 | 0 | 0.217742 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 0 | 0.125 | 0.3125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
199bc05b93faa5846defd905d53336f90f87831d | 1,179 | py | Python | oscar/apps/search/abstract_indexes.py | owad/django-oscar | cfa69e37dc9abc97a7aff5c8616da319e1771008 | [
"BSD-3-Clause"
] | 1 | 2022-03-17T19:26:13.000Z | 2022-03-17T19:26:13.000Z | oscar/apps/search/abstract_indexes.py | aykut/django-oscar | ca3629e74ea1e0affc55d3de4e97f523e352d267 | [
"BSD-3-Clause"
] | null | null | null | oscar/apps/search/abstract_indexes.py | aykut/django-oscar | ca3629e74ea1e0affc55d3de4e97f523e352d267 | [
"BSD-3-Clause"
] | 1 | 2019-03-23T10:26:02.000Z | 2019-03-23T10:26:02.000Z | from haystack.indexes import *
from oscar.core.loading import import_module
product_models = import_module('product.models', ['Item'])
class AbstractProductIndex(SearchIndex):
u"""
Base class for products solr index definition. Overide by creating your
own copy of oscar.search_indexes.py
"""
tex... | 32.75 | 113 | 0.703986 | 154 | 1,179 | 5.24026 | 0.551948 | 0.055762 | 0.047088 | 0.061958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211196 | 1,179 | 35 | 114 | 33.685714 | 0.867742 | 0.311281 | 0 | 0 | 0 | 0 | 0.159341 | 0.049451 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
19a571f070b08c55e59157f44415892c64f75787 | 13,444 | py | Python | github/tests/test_hooks.py | kasrasamareh454/beekeeper | 8e8719a9a46f0e8aaae35a2027f69a252a5371f1 | [
"BSD-3-Clause"
] | 23 | 2017-07-31T14:29:46.000Z | 2019-02-12T02:47:12.000Z | github/tests/test_hooks.py | kasrasamareh454/beekeeper | 8e8719a9a46f0e8aaae35a2027f69a252a5371f1 | [
"BSD-3-Clause"
] | 9 | 2017-08-09T05:49:11.000Z | 2019-03-19T18:01:59.000Z | github/tests/test_hooks.py | kasrasamareh454/beekeeper | 8e8719a9a46f0e8aaae35a2027f69a252a5371f1 | [
"BSD-3-Clause"
] | 12 | 2017-08-08T01:31:22.000Z | 2018-09-04T09:17:53.000Z | from datetime import datetime
import json
import os
import pytz
from django.test import TestCase
from django.utils import timezone
from ..models import User as GithubUser, Repository, Commit, PullRequest, PullRequestUpdate, Push
from ..hooks import pull_request_handler, push_handler
UTC = pytz.timezone('UTC')
c... | 41.366154 | 130 | 0.666543 | 1,541 | 13,444 | 5.691759 | 0.10318 | 0.18983 | 0.053358 | 0.071828 | 0.704937 | 0.664462 | 0.633565 | 0.604036 | 0.584198 | 0.542013 | 0 | 0.043552 | 0.214371 | 13,444 | 324 | 131 | 41.493827 | 0.786877 | 0.043514 | 0 | 0.528689 | 0 | 0 | 0.13379 | 0.015264 | 0 | 0 | 0 | 0 | 0.495902 | 1 | 0.04918 | false | 0 | 0.032787 | 0 | 0.090164 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19afe002a218017fc8a2ea1a9773852a3edcd051 | 1,860 | py | Python | core/layers---old/convolutional.py | luckylwk/neural-network-theano | 420c89e7028fcd9671866918c22a837d04387012 | [
"MIT"
] | null | null | null | core/layers---old/convolutional.py | luckylwk/neural-network-theano | 420c89e7028fcd9671866918c22a837d04387012 | [
"MIT"
] | null | null | null | core/layers---old/convolutional.py | luckylwk/neural-network-theano | 420c89e7028fcd9671866918c22a837d04387012 | [
"MIT"
] | null | null | null | import numpy as np
import theano
from ..utils.activation import *
from .base import Layer
__all__ = [
"Convolutional2DLayer"
]
class Convolutional2DLayer(Layer):
'''
Standard Convolutional 2D Layer
'''
def __init__( self, layerInput, kernels, kernelSize, kernelStride=1, **kwargs ):
super(Convolutional2D... | 28.181818 | 119 | 0.636559 | 200 | 1,860 | 5.805 | 0.405 | 0.060293 | 0.036176 | 0.037898 | 0.098191 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009766 | 0.174194 | 1,860 | 65 | 120 | 28.615385 | 0.746094 | 0.262366 | 0 | 0 | 0 | 0 | 0.140112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.269231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5feaa3b82970f0f22a9cdbb6fc8b055b1637e091 | 589 | py | Python | tests/test_bibtex.py | AquaDiva-INFRA1/ad-query-proxy | 2b34f94f5e5f12843c87c7e8a82cdc6260ae07b4 | [
"MIT"
] | null | null | null | tests/test_bibtex.py | AquaDiva-INFRA1/ad-query-proxy | 2b34f94f5e5f12843c87c7e8a82cdc6260ae07b4 | [
"MIT"
] | null | null | null | tests/test_bibtex.py | AquaDiva-INFRA1/ad-query-proxy | 2b34f94f5e5f12843c87c7e8a82cdc6260ae07b4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu May 28 16:06:14 2020
@author: Ronja Karmann
"""
from parsers.bibtex import parse
def test_parse() -> None:
source = "tests/resources/bibtex.bib"
with open(source, encoding="utf-8") as data:
for bibdict in parse(data):
asser... | 29.45 | 72 | 0.606112 | 75 | 589 | 4.746667 | 0.653333 | 0.109551 | 0.08427 | 0.123596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060948 | 0.247878 | 589 | 19 | 73 | 31 | 0.742664 | 0.174873 | 0 | 0 | 0 | 0 | 0.259958 | 0.054507 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fee63f21903d67383da43334f79aed6669f16ed | 996 | py | Python | tests/test_osc_recorder.py | oishefarhan/OSC-recorder | 7379912b68f4e9e96edabe953e9090e0f00e14a4 | [
"MIT"
] | 3 | 2020-05-25T12:21:56.000Z | 2021-07-01T11:27:55.000Z | tests/test_osc_recorder.py | oishefarhan/OSC-recorder | 7379912b68f4e9e96edabe953e9090e0f00e14a4 | [
"MIT"
] | 2 | 2020-10-23T09:14:58.000Z | 2021-05-19T13:49:04.000Z | tests/test_osc_recorder.py | oishefarhan/OSC-recorder | 7379912b68f4e9e96edabe953e9090e0f00e14a4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `osc_recorder` package."""
# import pytest
from osc_recorder import TimeSeriesBundle
def test_time_series_bundle_format(ts_bundle):
"""Testing TimeSeriesBundle is in the correct format."""
assert isinstance(ts_bundle, TimeSeriesBundle)
for name,... | 32.129032 | 66 | 0.686747 | 121 | 996 | 5.471074 | 0.380165 | 0.072508 | 0.090634 | 0.093656 | 0.096677 | 0.096677 | 0.096677 | 0.096677 | 0 | 0 | 0 | 0.001269 | 0.208835 | 996 | 30 | 67 | 33.2 | 0.838832 | 0.198795 | 0 | 0.117647 | 0 | 0 | 0.04359 | 0 | 0 | 0 | 0 | 0 | 0.411765 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ff4496fb66738159d73e00a9189385c533e93fc | 896 | py | Python | mainsite/forms.py | zqsun/Buybuybiz_pinax | 80cfba721ab7ea83538b11c830158259816aec2e | [
"MIT"
] | null | null | null | mainsite/forms.py | zqsun/Buybuybiz_pinax | 80cfba721ab7ea83538b11c830158259816aec2e | [
"MIT"
] | null | null | null | mainsite/forms.py | zqsun/Buybuybiz_pinax | 80cfba721ab7ea83538b11c830158259816aec2e | [
"MIT"
] | null | null | null | from django import forms
from haystack.forms import SearchForm
from myaccount.models import bizCategory, bizGoal
class ProjectSearchForm(SearchForm):
category = forms.ModelChoiceField(queryset=bizCategory.objects.all(),required=False,empty_label="All Categories")
goal = forms.ModelChoiceField(queryset=bizGoal.object... | 38.956522 | 117 | 0.757813 | 112 | 896 | 5.982143 | 0.517857 | 0.065672 | 0.089552 | 0.068657 | 0.098507 | 0.098507 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106027 | 896 | 23 | 118 | 38.956522 | 0.836454 | 0.204241 | 0 | 0 | 0 | 0 | 0.088983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5ff47320cac743c47d3e4b24dc7838cdfb4f59e1 | 584 | py | Python | tests/preprocess/test_preprocess.py | A-Jatin/classify-fashion-images | 7ce94c24658ea54a574b3f756051bff76bfa9be5 | [
"MIT"
] | null | null | null | tests/preprocess/test_preprocess.py | A-Jatin/classify-fashion-images | 7ce94c24658ea54a574b3f756051bff76bfa9be5 | [
"MIT"
] | null | null | null | tests/preprocess/test_preprocess.py | A-Jatin/classify-fashion-images | 7ce94c24658ea54a574b3f756051bff76bfa9be5 | [
"MIT"
] | null | null | null | import os
import numpy as np
import pytest
from config.stage import ConfigStage
from extract.stage import ExtractStage
from preprocess.stage import PreprocessStage
@pytest.mark.parametrize("action", ['train'])
def test_extract_stage(action):
path = os.path.abspath(os.path.join(__file__, "../../..", 'resources/co... | 34.352941 | 87 | 0.741438 | 72 | 584 | 5.930556 | 0.444444 | 0.077283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130137 | 584 | 17 | 88 | 34.352941 | 0.840551 | 0 | 0 | 0 | 0 | 0 | 0.068376 | 0.035897 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.071429 | false | 0 | 0.428571 | 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 |
5ffc70e3debba36f13f1e2ba3102a20f244e6a03 | 3,146 | py | Python | frontend/migrations/0001_initial.py | evantbyrne/khanban | 39ed990a706013408cd7ccc82d6045b2319507c4 | [
"0BSD"
] | 1 | 2018-09-03T21:07:43.000Z | 2018-09-03T21:07:43.000Z | frontend/migrations/0001_initial.py | evantbyrne/khanban | 39ed990a706013408cd7ccc82d6045b2319507c4 | [
"0BSD"
] | 43 | 2018-06-27T23:48:00.000Z | 2018-10-28T19:58:09.000Z | frontend/migrations/0001_initial.py | evantbyrne/khanban | 39ed990a706013408cd7ccc82d6045b2319507c4 | [
"0BSD"
] | null | null | null | # Generated by Django 2.1.1 on 2018-09-22 16:01
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 42.513514 | 182 | 0.58487 | 307 | 3,146 | 5.824104 | 0.283388 | 0.035235 | 0.03915 | 0.061521 | 0.430649 | 0.430649 | 0.360179 | 0.360179 | 0.332774 | 0.303132 | 0 | 0.012346 | 0.279085 | 3,146 | 73 | 183 | 43.09589 | 0.776014 | 0.014304 | 0 | 0.5 | 1 | 0 | 0.114876 | 0.006776 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.106061 | 0 | 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 |
271324e4c60ee078a0e0e0caa2b1ede21cca43bc | 1,726 | py | Python | axiom/plugins/maplistcmd.py | jsza/jump-map-list | 7db4a9ef7031dede6ad382cc0a4c9061cd544a16 | [
"MIT"
] | null | null | null | axiom/plugins/maplistcmd.py | jsza/jump-map-list | 7db4a9ef7031dede6ad382cc0a4c9061cd544a16 | [
"MIT"
] | null | null | null | axiom/plugins/maplistcmd.py | jsza/jump-map-list | 7db4a9ef7031dede6ad382cc0a4c9061cd544a16 | [
"MIT"
] | null | null | null | from axiom.scripts.axiomatic import AxiomaticCommand, AxiomaticSubCommand
from twisted.python.filepath import FilePath
from jumpmaplist.items import Author
def steamidTo64(steamid):
steamid = steamid[8:]
y, z = map(int, steamid.split(':'))
return str(z * 2 + y + 76561197960265728)
class AddSuperuser... | 26.96875 | 92 | 0.634994 | 184 | 1,726 | 5.956522 | 0.467391 | 0.038321 | 0.04927 | 0.041971 | 0.15146 | 0.15146 | 0.074818 | 0 | 0 | 0 | 0 | 0.018997 | 0.237543 | 1,726 | 63 | 93 | 27.396825 | 0.81383 | 0 | 0 | 0.348837 | 0 | 0 | 0.20336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.139535 | 0.023256 | 0.511628 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2714398a9265a3cba4832704a985acb07f970615 | 1,836 | py | Python | coverage-3.7.1/tests/test_collector.py | I-Valchev/UrPas | 7babb5208fab6975891fba440e633cc9ad6e8718 | [
"Apache-2.0"
] | 1 | 2015-03-04T09:00:44.000Z | 2015-03-04T09:00:44.000Z | coverage-3.7.1/tests/test_collector.py | I-Valchev/UrPas | 7babb5208fab6975891fba440e633cc9ad6e8718 | [
"Apache-2.0"
] | null | null | null | coverage-3.7.1/tests/test_collector.py | I-Valchev/UrPas | 7babb5208fab6975891fba440e633cc9ad6e8718 | [
"Apache-2.0"
] | null | null | null | """Tests of coverage/collector.py and other collectors."""
import re
import coverage
from coverage.backward import StringIO
from coverage.backward import set # pylint: disable=W0622
from tests.coveragetest import CoverageTest
class CollectorTest(CoverageTest):
"""Test specific aspects of the ... | 31.118644 | 78 | 0.587146 | 227 | 1,836 | 4.678414 | 0.480176 | 0.031073 | 0.037665 | 0.048964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.313725 | 1,836 | 58 | 79 | 31.655172 | 0.830952 | 0.31427 | 0 | 0.0625 | 0 | 0 | 0.271994 | 0 | 0 | 0 | 0 | 0.017241 | 0.0625 | 1 | 0.03125 | false | 0 | 0.21875 | 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 |
2715f738c0c8c3b31646fedd2dc2342c2336ca55 | 752 | py | Python | 0301-0400/0304-Range Sum Query 2D - Immutable/0304-Range Sum Query 2D - Immutable.py | jiadaizhao/LeetCode | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | [
"MIT"
] | 49 | 2018-05-05T02:53:10.000Z | 2022-03-30T12:08:09.000Z | 0301-0400/0304-Range Sum Query 2D - Immutable/0304-Range Sum Query 2D - Immutable.py | jolly-fellow/LeetCode | ab20b3ec137ed05fad1edda1c30db04ab355486f | [
"MIT"
] | 11 | 2017-12-15T22:31:44.000Z | 2020-10-02T12:42:49.000Z | 0301-0400/0304-Range Sum Query 2D - Immutable/0304-Range Sum Query 2D - Immutable.py | jolly-fellow/LeetCode | ab20b3ec137ed05fad1edda1c30db04ab355486f | [
"MIT"
] | 28 | 2017-12-05T10:56:51.000Z | 2022-01-26T18:18:27.000Z | class NumMatrix:
def __init__(self, matrix: List[List[int]]):
if not matrix:
return
self.presum = [[0] * (1 + len(matrix[0])) for _ in range(1 + len(matrix))]
for i in range(len(matrix)):
for j in range(len(matrix[0])):
self.presum[i + 1][j + 1] =... | 41.777778 | 132 | 0.586436 | 116 | 752 | 3.75 | 0.310345 | 0.206897 | 0.101149 | 0.073563 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052724 | 0.243351 | 752 | 17 | 133 | 44.235294 | 0.711775 | 0.174202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.1 | 0.5 | 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 |
27194fa57fb2199f80140749e136502858d175a3 | 3,911 | py | Python | src/cogs/listeners/on_member_update.py | psydox/Axie_Manager_Bot | 34894e4f6f3eb55efbdea2d4a1e54ec23ffd1ffd | [
"MIT"
] | 4 | 2021-12-10T01:44:15.000Z | 2021-12-14T11:57:20.000Z | src/cogs/listeners/on_member_update.py | psydox/Axie_Manager_Bot | 34894e4f6f3eb55efbdea2d4a1e54ec23ffd1ffd | [
"MIT"
] | 133 | 2021-10-16T16:05:44.000Z | 2022-02-25T10:28:44.000Z | src/cogs/listeners/on_member_update.py | psydox/Axie_Manager_Bot | 34894e4f6f3eb55efbdea2d4a1e54ec23ffd1ffd | [
"MIT"
] | 5 | 2021-12-14T11:57:22.000Z | 2022-03-02T09:11:05.000Z | ##> Imports
# > Discord dependencies
import discord
from discord.ext import commands
# Import local dependencies
from config import config
class On_member_update(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.Cog.listener()
async def on_member_update(self, before, after):
... | 48.8875 | 171 | 0.630018 | 555 | 3,911 | 4.423423 | 0.333333 | 0.009776 | 0.028513 | 0.023218 | 0.501833 | 0.460285 | 0.411405 | 0.411405 | 0.411405 | 0.378819 | 0 | 0.002199 | 0.30248 | 3,911 | 79 | 172 | 49.506329 | 0.890029 | 0.01483 | 0 | 0.372881 | 0 | 0.135593 | 0.638088 | 0.011951 | 0 | 0 | 0.004157 | 0 | 0 | 1 | 0.033898 | false | 0.033898 | 0.084746 | 0 | 0.135593 | 0 | 0 | 0 | 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 |
271a0f364f7bff86e88ae876c181cad1483884de | 1,605 | py | Python | Bulls and Cows(1).py | adityaastro2004/bulls_and_cows | 67691dcebb923f1a78f0e467610a8ec203190938 | [
"MIT"
] | null | null | null | Bulls and Cows(1).py | adityaastro2004/bulls_and_cows | 67691dcebb923f1a78f0e467610a8ec203190938 | [
"MIT"
] | null | null | null | Bulls and Cows(1).py | adityaastro2004/bulls_and_cows | 67691dcebb923f1a78f0e467610a8ec203190938 | [
"MIT"
] | null | null | null | print(''' BULLS AND COWS
RULES:-
1) YOU HAVE TO GUESS A 4 DIGIT NUMBER
2) IF THE DIGIT OF YOUR NUMBER MATCHES THE DIGIT IN THE COMPUTER GENERATED NUMBER BUT NOT IN THE RIGHT PLACE, IT WILL BE A COW.
3) IF YOUR NUMBER HAS A DIGIT AT SAME PLACE AS THE COMPUTER GENERATED NUMBER IT WILL BE A BULL
4) TH... | 25.47619 | 128 | 0.601869 | 261 | 1,605 | 3.639847 | 0.344828 | 0.050526 | 0.029474 | 0.027368 | 0.029474 | 0.029474 | 0 | 0 | 0 | 0 | 0 | 0.023705 | 0.290343 | 1,605 | 62 | 129 | 25.887097 | 0.81036 | 0.004984 | 0 | 0.192308 | 1 | 0.038462 | 0.42531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.019231 | 0 | 0.134615 | 0.134615 | 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 |
2721700a9e23c4f68fd715040930baaf5b158c42 | 662 | py | Python | Machine Learning/Support Vector Machine/svm.py | jadhaddad01/AI_ML_Python | c401fe49639c260880df31916dd4230ede58896a | [
"MIT"
] | 2 | 2020-09-18T04:05:37.000Z | 2020-09-18T19:25:40.000Z | Machine Learning/Support Vector Machine/svm.py | jadhaddad01/AI_ML_Python | c401fe49639c260880df31916dd4230ede58896a | [
"MIT"
] | null | null | null | Machine Learning/Support Vector Machine/svm.py | jadhaddad01/AI_ML_Python | c401fe49639c260880df31916dd4230ede58896a | [
"MIT"
] | null | null | null | import sklearn
from sklearn import datasets
from sklearn import svm
from sklearn import metrics
from sklearn.neighbors import KNeighborsClassifier
cancer = datasets.load_breast_cancer()
#print(cancer.feature_names)
#print(cancer.target_names)
x = cancer.data
y = cancer.target
x_train, x_test, y_train, y_test = skle... | 24.518519 | 96 | 0.768882 | 109 | 662 | 4.495413 | 0.486239 | 0.089796 | 0.104082 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006885 | 0.122357 | 662 | 27 | 97 | 24.518519 | 0.836489 | 0.223565 | 0 | 0 | 0 | 0 | 0.041096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 |
27224405aa322324dfcfd30ba82b4a0aa27bc621 | 827 | py | Python | schemas.py | thatfuckingbird/hydrus-websocket-server | b55454740dca5101448bf92224432f8bdbec7e77 | [
"WTFPL"
] | null | null | null | schemas.py | thatfuckingbird/hydrus-websocket-server | b55454740dca5101448bf92224432f8bdbec7e77 | [
"WTFPL"
] | null | null | null | schemas.py | thatfuckingbird/hydrus-websocket-server | b55454740dca5101448bf92224432f8bdbec7e77 | [
"WTFPL"
] | null | null | null | from hydrus.client import ClientConstants as CC
from hydrus.core import HydrusGlobals as HG
from hydrus.core import HydrusConstants as HC
enums = {
"DuplicateTypes": {
"DUPLICATE_POTENTIAL": HC.DUPLICATE_POTENTIAL,
"DUPLICATE_FALSE_POSITIVE": HC.DUPLICATE_FALSE_POSITIVE,
"DUPLICATE_SAME_QUA... | 35.956522 | 73 | 0.732769 | 89 | 827 | 6.449438 | 0.325843 | 0.210801 | 0.08885 | 0.069686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185006 | 827 | 23 | 74 | 35.956522 | 0.851632 | 0 | 0 | 0 | 0 | 0 | 0.283816 | 0.147343 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.15 | 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 |
2723dfc96cb30bf8b40c23e58817963d82811475 | 15,377 | py | Python | lyacompiler/lya_virtualmachine.py | MC911-MV-1s2016/lya-compiler-python | b876857161ca988a419a3c27a2f1cbb5214c50e6 | [
"BSD-3-Clause"
] | null | null | null | lyacompiler/lya_virtualmachine.py | MC911-MV-1s2016/lya-compiler-python | b876857161ca988a419a3c27a2f1cbb5214c50e6 | [
"BSD-3-Clause"
] | null | null | null | lyacompiler/lya_virtualmachine.py | MC911-MV-1s2016/lya-compiler-python | b876857161ca988a419a3c27a2f1cbb5214c50e6 | [
"BSD-3-Clause"
] | null | null | null | # ------------------------------------------------------------
# MC911 - Compiler construction laboratory.
# IC - UNICAMP
#
# RA094139 - Marcelo Mingatos de Toledo
# RA093175 - Victor Fernando Pompeo Barbosa
#
# lya_virtualmachine.py
# Lya Virtual Machine that executes LyaInstructions.
#
# -----------------------------... | 31.190669 | 102 | 0.44352 | 1,918 | 15,377 | 3.498436 | 0.131387 | 0.051863 | 0.146051 | 0.147839 | 0.379285 | 0.31073 | 0.255589 | 0.237407 | 0.227422 | 0.174814 | 0 | 0.020372 | 0.409443 | 15,377 | 492 | 103 | 31.254065 | 0.718533 | 0.361839 | 0 | 0.208955 | 0 | 0 | 0.015869 | 0 | 0 | 0 | 0 | 0.002033 | 0 | 1 | 0.238806 | false | 0.024876 | 0.014925 | 0 | 0.303483 | 0.024876 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
27298849bd7e94a990634b69cbc469ec8e65999f | 791 | py | Python | model/ff.py | nashory/rtic-gcn-pytorch | 75c3a6d6c05dd69f1260db7b0b4bfaca20c56d5d | [
"MIT"
] | 6 | 2021-10-22T02:46:31.000Z | 2022-03-16T07:16:19.000Z | model/ff.py | nashory/rtic-gcn-pytorch | 75c3a6d6c05dd69f1260db7b0b4bfaca20c56d5d | [
"MIT"
] | 1 | 2021-11-30T03:38:00.000Z | 2021-12-02T07:41:02.000Z | model/ff.py | nashory/rtic-gcn-pytorch | 75c3a6d6c05dd69f1260db7b0b4bfaca20c56d5d | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from block import fusions
from model.base import ImageEncoderTextEncoderBase
class FeatureFusionMethod(ImageEncoderTextEncoderBase):
"""FeatureFusionMethod"""
def __init__(self, cfg, texts):
super(FeatureFusionMethod, self).__init__(cfg, texts)
ff_type = cf... | 32.958333 | 88 | 0.711757 | 105 | 791 | 4.971429 | 0.4 | 0.045977 | 0.045977 | 0.034483 | 0.091954 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190898 | 791 | 23 | 89 | 34.391304 | 0.815625 | 0.041719 | 0 | 0 | 0 | 0 | 0.070479 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.133333 | false | 0 | 0.266667 | 0.066667 | 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 |
272d369341e8c6f9a6b7394ae88dfc48b3f95629 | 5,829 | py | Python | v1-3-arg.py | DBMSRmutl/meterOCR | df5d6b92584e180dcb5637a2a31e143253a197a1 | [
"Apache-2.0"
] | 7 | 2017-08-27T01:55:19.000Z | 2021-04-13T09:43:08.000Z | v1-3-arg.py | DBMSRmutl/meterOCR | df5d6b92584e180dcb5637a2a31e143253a197a1 | [
"Apache-2.0"
] | null | null | null | v1-3-arg.py | DBMSRmutl/meterOCR | df5d6b92584e180dcb5637a2a31e143253a197a1 | [
"Apache-2.0"
] | 2 | 2017-12-07T03:26:03.000Z | 2018-09-02T04:05:51.000Z | import cv2
import numpy as np
import os
import sys
import time
#from uploadToGDrive import main_upload
#import uploadToGDrive
def readimage(filename):
print filename
image = cv2.imread(filename, cv2.IMREAD_GRAYSCALE) # reading image
if image is None:
print 'Can not find the image!'
... | 39.924658 | 101 | 0.533539 | 663 | 5,829 | 4.636501 | 0.238311 | 0.040989 | 0.039362 | 0.059206 | 0.387118 | 0.3689 | 0.347755 | 0.339623 | 0.339623 | 0.301236 | 0 | 0.029274 | 0.232287 | 5,829 | 145 | 102 | 40.2 | 0.657654 | 0.187854 | 0 | 0.302752 | 0 | 0 | 0.119877 | 0 | 0.045872 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045872 | null | null | 0.155963 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
273195d1ad2d70c97af02e846c9d88c0bb0b4853 | 629 | py | Python | Common/URLExtractor.py | FrankLicm/Webspam-detection-based-on-machine-learning | 652b3e243c40d8db1e252c01c7bf5d47afc3a76f | [
"Apache-2.0"
] | 1 | 2019-11-02T23:18:52.000Z | 2019-11-02T23:18:52.000Z | Common/URLExtractor.py | FrankLicm/Webspam-detection-based-on-machine-learning | 652b3e243c40d8db1e252c01c7bf5d47afc3a76f | [
"Apache-2.0"
] | null | null | null | Common/URLExtractor.py | FrankLicm/Webspam-detection-based-on-machine-learning | 652b3e243c40d8db1e252c01c7bf5d47afc3a76f | [
"Apache-2.0"
] | 1 | 2020-04-03T09:41:42.000Z | 2020-04-03T09:41:42.000Z | # -*- coding: UTF-8 -*-
import FileNameGenerator as FNG
def Extract(text):
text = str(text)
if "http" in text:
text = text.split("\t")
return text[0]
else:
return ""
def ExtractFromFileName(name):
name=str(name)
if "http" in name and "~" in name:
name=name.split("~"... | 26.208333 | 113 | 0.612083 | 80 | 629 | 4.7125 | 0.525 | 0.06366 | 0.04244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064583 | 0.236884 | 629 | 23 | 114 | 27.347826 | 0.720833 | 0.143084 | 0 | 0.222222 | 0 | 0.055556 | 0.186916 | 0.149533 | 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 |
2739821c00d052945fa3fccd6796005c4cda7d4b | 2,089 | py | Python | Cadastramento-pessoas.py | vitor-antoni/Cadastramento-pessoas | 1b753e2f6261900e18ef9bd53b71a72b435b847a | [
"MIT"
] | 1 | 2022-03-11T12:49:45.000Z | 2022-03-11T12:49:45.000Z | Cadastramento-pessoas.py | vitor-antoni/Cadastramento-pessoas | 1b753e2f6261900e18ef9bd53b71a72b435b847a | [
"MIT"
] | null | null | null | Cadastramento-pessoas.py | vitor-antoni/Cadastramento-pessoas | 1b753e2f6261900e18ef9bd53b71a72b435b847a | [
"MIT"
] | null | null | null | cores = {'verde': '\033[1;32m',
'vermelho': '\033[1;31m',
'azul': '\033[1;34m',
'violeta': '\033[1;35m',
'clear': '\033[m'}
pessoa = dict()
lista = list()
lista_mulheres = list()
lista_idade_maior_media = list()
media = 0
while True:
pessoa["Nome"] = str(input("Digite o nome: "))... | 47.477273 | 122 | 0.622307 | 309 | 2,089 | 4.135922 | 0.313916 | 0.032864 | 0.046948 | 0.062598 | 0.098592 | 0.079812 | 0.035994 | 0.035994 | 0 | 0 | 0 | 0.024894 | 0.211584 | 2,089 | 44 | 123 | 47.477273 | 0.751063 | 0.156534 | 0 | 0.045455 | 0 | 0 | 0.347183 | 0.08708 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.227273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
273df3d2155024fd70e27a7270e8f400b2d14d25 | 15,095 | py | Python | tests/bugs/core_4821_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2022-02-05T11:37:13.000Z | 2022-02-05T11:37:13.000Z | tests/bugs/core_4821_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-09-03T11:47:00.000Z | 2021-09-03T12:42:10.000Z | tests/bugs/core_4821_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-06-30T14:14:16.000Z | 2021-06-30T14:14:16.000Z | #coding:utf-8
#
# id: bugs.core_4821
# title: grant create database to ROLE does not work: "no permission for CREATE access to DATABASE ..."
# decription:
# ::: NOTE ::: Test requires that databases.conf contains 'RemoteAccess = true' for security.db
# This line is a... | 47.768987 | 216 | 0.643259 | 2,109 | 15,095 | 4.388336 | 0.158369 | 0.019881 | 0.051864 | 0.034576 | 0.610589 | 0.558833 | 0.520908 | 0.489357 | 0.446786 | 0.394814 | 0 | 0.037779 | 0.223186 | 15,095 | 315 | 217 | 47.920635 | 0.751492 | 0.585293 | 0 | 0.415094 | 0 | 0.028302 | 0.406229 | 0.090606 | 0 | 0 | 0 | 0 | 0.018868 | 1 | 0.009434 | false | 0.066038 | 0.037736 | 0 | 0.04717 | 0.04717 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
273e0fd5d9722217aac7744c9fab6ffac059c3c5 | 658 | py | Python | src/visions/core/model/dtypes/float_int_fix/tenzing_integer.py | sweersr/visions | 1af04235cb77bec52e4923627dfbf968ed1a584d | [
"BSD-4-Clause"
] | null | null | null | src/visions/core/model/dtypes/float_int_fix/tenzing_integer.py | sweersr/visions | 1af04235cb77bec52e4923627dfbf968ed1a584d | [
"BSD-4-Clause"
] | null | null | null | src/visions/core/model/dtypes/float_int_fix/tenzing_integer.py | sweersr/visions | 1af04235cb77bec52e4923627dfbf968ed1a584d | [
"BSD-4-Clause"
] | null | null | null | import pandas.api.types as pdt
import pandas as pd
from visions.core.model.type import VisionsBaseType
class visions_integer(VisionsBaseType):
"""**Integer** implementation of :class:`visions.core.models.VisionsBaseType`.
Examples:
>>> x = pd.Series([1, 2, 3])
>>> x in visions_integer
... | 25.307692 | 82 | 0.641337 | 79 | 658 | 5.265823 | 0.556962 | 0.076923 | 0.052885 | 0.0625 | 0.091346 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01006 | 0.244681 | 658 | 25 | 83 | 26.32 | 0.826962 | 0.238602 | 0 | 0.153846 | 0 | 0 | 0.010549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0.076923 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
273ef0e8bc3ebace73cdd7d4156562c57095187c | 3,299 | py | Python | src/test/test_main_method.py | mmatthews06/python-mocks | c78d62f05a0fbb232ec9f8b28542c9a3f5e45b58 | [
"MIT"
] | null | null | null | src/test/test_main_method.py | mmatthews06/python-mocks | c78d62f05a0fbb232ec9f8b28542c9a3f5e45b58 | [
"MIT"
] | null | null | null | src/test/test_main_method.py | mmatthews06/python-mocks | c78d62f05a0fbb232ec9f8b28542c9a3f5e45b58 | [
"MIT"
] | null | null | null | '''
test_main_method.py
'''
import inspect
import sys
import unittest
from io import StringIO
from unittest.mock import patch
from unittest.mock import MagicMock
import main as mainModule
from main import main
class TestMainMethod(unittest.TestCase):
# pylint: disable=no-self-use
'''
Tests for the main m... | 32.99 | 104 | 0.618672 | 383 | 3,299 | 5.208877 | 0.308094 | 0.05213 | 0.070175 | 0.084211 | 0.455138 | 0.410025 | 0.394987 | 0.360902 | 0.3198 | 0.274687 | 0 | 0.002048 | 0.260079 | 3,299 | 99 | 105 | 33.323232 | 0.81524 | 0.236738 | 0 | 0.339286 | 0 | 0 | 0.116833 | 0.018174 | 0 | 0 | 0 | 0 | 0.160714 | 1 | 0.125 | false | 0.053571 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2746690cd41a43402f72e92ff4ee6701933e25a3 | 687 | py | Python | ecommerce/product/migrations/0018_auto_20210319_0929.py | MirjahonMirsaidov/ecommerce-web-app | 22d0fe5648b7acb5f819f7634abcf61b6bc12ed9 | [
"Unlicense"
] | null | null | null | ecommerce/product/migrations/0018_auto_20210319_0929.py | MirjahonMirsaidov/ecommerce-web-app | 22d0fe5648b7acb5f819f7634abcf61b6bc12ed9 | [
"Unlicense"
] | null | null | null | ecommerce/product/migrations/0018_auto_20210319_0929.py | MirjahonMirsaidov/ecommerce-web-app | 22d0fe5648b7acb5f819f7634abcf61b6bc12ed9 | [
"Unlicense"
] | null | null | null | # Generated by Django 3.1.2 on 2021-03-19 04:29
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('product', '0017_productvariation_variation_image'),
]
operations = [
migrations.AddField(
model_nam... | 26.423077 | 93 | 0.628821 | 69 | 687 | 6.115942 | 0.637681 | 0.052133 | 0.090047 | 0.127962 | 0.222749 | 0.222749 | 0 | 0 | 0 | 0 | 0 | 0.037773 | 0.267831 | 687 | 25 | 94 | 27.48 | 0.801193 | 0.065502 | 0 | 0.315789 | 1 | 0 | 0.148438 | 0.057813 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 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 |
274715ad12f32bc9b1db053d07a706d494596b90 | 1,428 | py | Python | mathml/pmathml/opdict.py | ahjulstad/mathdom-python3 | 1fbb7e49d736f03db532423e057c2380ef000dd7 | [
"MIT"
] | 1 | 2016-11-02T06:27:02.000Z | 2016-11-02T06:27:02.000Z | mathml/pmathml/opdict.py | ahjulstad/mathdom-python3 | 1fbb7e49d736f03db532423e057c2380ef000dd7 | [
"MIT"
] | null | null | null | mathml/pmathml/opdict.py | ahjulstad/mathdom-python3 | 1fbb7e49d736f03db532423e057c2380ef000dd7 | [
"MIT"
] | null | null | null | from . import opdict_data
from . import entities
import sys
opdict = {}
import os
def _lookup_entity(content):
if content.startswith('&') and content.endswith(';'):
return entities.map[content[1:-1]]
else:
return content
for line in opdict_data.data.split('\n'):
tokens = line.split()
if not tokens... | 21.636364 | 57 | 0.606443 | 159 | 1,428 | 5.371069 | 0.383648 | 0.098361 | 0.065574 | 0.080796 | 0.185012 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008443 | 0.253501 | 1,428 | 65 | 58 | 21.969231 | 0.792683 | 0.009804 | 0 | 0.275862 | 0 | 0 | 0.131113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068966 | 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 |
274a34ebc83b7aee9c331f97e10616da559d6a51 | 1,101 | py | Python | app/api/models/base.py | rivendale/ethsigns | 8ffecc264a54b00d5615c6fa36c9f661dce468b5 | [
"MIT"
] | 1 | 2021-01-24T04:27:57.000Z | 2021-01-24T04:27:57.000Z | app/api/models/base.py | rivendale/ethsigns | 8ffecc264a54b00d5615c6fa36c9f661dce468b5 | [
"MIT"
] | 19 | 2021-02-07T18:24:31.000Z | 2021-07-02T08:03:56.000Z | app/api/models/base.py | rivendale/ethsigns | 8ffecc264a54b00d5615c6fa36c9f661dce468b5 | [
"MIT"
] | null | null | null | """Module for generic model operations mixin."""
from app import db
class ModelOperations(object):
"""Mixin class with generic model operations."""
def save(self):
"""
Save a model instance
"""
db.session.add(self)
db.session.commit()
return self
def upda... | 21.173077 | 52 | 0.536785 | 120 | 1,101 | 4.808333 | 0.333333 | 0.109185 | 0.155979 | 0.124783 | 0.317158 | 0.239168 | 0.149047 | 0.149047 | 0.149047 | 0 | 0 | 0 | 0.344233 | 1,101 | 51 | 53 | 21.588235 | 0.799169 | 0.165304 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.045455 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
274aa9d0e99c18115acab03fb88155977471b53b | 2,632 | py | Python | pqcrypto/kem/common.py | GaloisInc/pqcrypto | dd8c56fd876a397caef06a00d35537a4f9c1db28 | [
"BSD-3-Clause"
] | 15 | 2020-09-07T17:09:33.000Z | 2022-02-04T00:03:37.000Z | pqcrypto/kem/common.py | GaloisInc/pqcrypto | dd8c56fd876a397caef06a00d35537a4f9c1db28 | [
"BSD-3-Clause"
] | 6 | 2020-09-07T18:19:04.000Z | 2022-03-24T06:48:14.000Z | pqcrypto/kem/common.py | GaloisInc/pqcrypto | dd8c56fd876a397caef06a00d35537a4f9c1db28 | [
"BSD-3-Clause"
] | 4 | 2021-11-25T06:56:31.000Z | 2022-02-03T14:27:06.000Z | from ..common import _run_in_threadpool
def _kem_generate_keypair_factory(ffi, lib, use_threadpool=False):
def generate_keypair():
public_key_buf = ffi.new("uint8_t [{}]".format(lib.CRYPTO_PUBLICKEYBYTES))
secret_key_buf = ffi.new("uint8_t [{}]".format(lib.CRYPTO_SECRETKEYBYTES))
if 0 != ... | 41.125 | 96 | 0.703647 | 336 | 2,632 | 5.229167 | 0.166667 | 0.097325 | 0.027319 | 0.039841 | 0.383039 | 0.331246 | 0.323278 | 0.196357 | 0.184405 | 0.094479 | 0 | 0.003772 | 0.194149 | 2,632 | 63 | 97 | 41.777778 | 0.824611 | 0 | 0 | 0.05 | 1 | 0 | 0.161854 | 0.028875 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.025 | 0 | 0.325 | 0 | 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 |
2755fbb3a16afbfecf37da90d43e7add646405f6 | 3,741 | py | Python | pyslave/drivers/rohdeschwarz/__zvb__/parse.py | NS2LPS/pyslave | adc30a4f762f42811587be1f10b08f1d2865098e | [
"MIT"
] | 1 | 2020-10-01T15:12:12.000Z | 2020-10-01T15:12:12.000Z | pyslave/drivers/rohdeschwarz/__zvb__/parse.py | NS2LPS/pyslave | adc30a4f762f42811587be1f10b08f1d2865098e | [
"MIT"
] | null | null | null | pyslave/drivers/rohdeschwarz/__zvb__/parse.py | NS2LPS/pyslave | adc30a4f762f42811587be1f10b08f1d2865098e | [
"MIT"
] | null | null | null | # Parse header file to generate Python wrapper around the rszvb DLL for the Rohde&Scwarz ZVA 40 Network Anlyzer
fout = open("rszvb_v2.py",'w')
# First load the DLL
print >>fout , """import numpy as numpy
from ctypes import *
# Prerequisition: installed rszvb driver 32-bit
# Reference to rszvb dll
rszvbDL... | 38.96875 | 161 | 0.51938 | 436 | 3,741 | 4.288991 | 0.330275 | 0.052941 | 0.037433 | 0.016043 | 0.13369 | 0.101604 | 0.040642 | 0 | 0 | 0 | 0 | 0.026886 | 0.333868 | 3,741 | 96 | 162 | 38.96875 | 0.723515 | 0.04571 | 0 | 0.052632 | 1 | 0 | 0.418323 | 0.082685 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.013158 | 0.026316 | 0 | 0.039474 | 0.144737 | 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 |
275e14f7468be4a07248c9f6f2bb66f5a44fef87 | 1,980 | py | Python | colorTracking.py | rajatvisitme/OpenCV_colorTracking | 2130cecb9ba514249735b3106c7a118341b0ce0b | [
"MIT"
] | 1 | 2019-04-12T04:34:29.000Z | 2019-04-12T04:34:29.000Z | colorTracking.py | rajatvisitme/OpenCV_colorTracking | 2130cecb9ba514249735b3106c7a118341b0ce0b | [
"MIT"
] | null | null | null | colorTracking.py | rajatvisitme/OpenCV_colorTracking | 2130cecb9ba514249735b3106c7a118341b0ce0b | [
"MIT"
] | null | null | null | import cv2
import numpy as np
def emptyFunction():
pass
def main():
windowName = "Color Tracking"
cv2.namedWindow(windowName)
#Capturing live video
cap = cv2.VideoCapture(0)
if cap.isOpened():
ret, frame = cap.read()
else:
ret = False
#Lower values - BGR
cv2.createTrackbar('low_B', windowName, 0, 255,... | 26.052632 | 78 | 0.709596 | 272 | 1,980 | 5.018382 | 0.272059 | 0.074725 | 0.061538 | 0.118681 | 0.248352 | 0.177289 | 0.174359 | 0 | 0 | 0 | 0 | 0.067348 | 0.160101 | 1,980 | 75 | 79 | 26.4 | 0.753458 | 0 | 0 | 0.046512 | 0 | 0 | 0.078106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.023256 | 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 |
2760322b5434f0762612e2070bb125bfc3e541a6 | 890 | py | Python | djangoWeb/use_drf/serializer.py | Mr-IT007/django-vue | 2e8465d42b63286b974ee144180e0c881b68a207 | [
"MIT"
] | 1 | 2021-04-22T09:18:27.000Z | 2021-04-22T09:18:27.000Z | djangoWeb/use_drf/serializer.py | Mr-IT007/django-vue | 2e8465d42b63286b974ee144180e0c881b68a207 | [
"MIT"
] | null | null | null | djangoWeb/use_drf/serializer.py | Mr-IT007/django-vue | 2e8465d42b63286b974ee144180e0c881b68a207 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from meituan.models import Merchant, GoodsCategory, Goods
class MerchantSerializer(serializers.ModelSerializer):
class Meta:
model = Merchant
fields = '__all__'
# exclude = ['name']
class GoodsSerializer(serializers.ModelSerializer):
class Meta:... | 26.969697 | 80 | 0.703371 | 91 | 890 | 6.659341 | 0.527473 | 0.128713 | 0.069307 | 0.115512 | 0.132013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216854 | 890 | 32 | 81 | 27.8125 | 0.86944 | 0.026966 | 0 | 0.285714 | 0 | 0 | 0.060255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.619048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
27655b15db8e18f1c97238516ecb889beda51aa9 | 3,446 | py | Python | features/fun/slap.py | Shikiiii/mommybot | 022a13248e4ecc845277cb19b77304694b36fd9c | [
"MIT"
] | 1 | 2020-03-18T13:32:37.000Z | 2020-03-18T13:32:37.000Z | features/fun/slap.py | Shikiiii/mommybot | 022a13248e4ecc845277cb19b77304694b36fd9c | [
"MIT"
] | null | null | null | features/fun/slap.py | Shikiiii/mommybot | 022a13248e4ecc845277cb19b77304694b36fd9c | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
import traceback
import datetime
import asyncio
import random
from datetime import datetime
from storage import *
slap_gifs = [
"https://cdn.discordapp.com/attachments/670153232039018516/674300987120418846/da424ee4ad0dadbb88be107b5c68a58e0ebfe632_hq.gif",
"https:... | 63.814815 | 190 | 0.791352 | 423 | 3,446 | 6.359338 | 0.281324 | 0.047584 | 0.107063 | 0.124907 | 0.59145 | 0.59145 | 0.572862 | 0.320446 | 0.260223 | 0.260223 | 0 | 0.209317 | 0.065583 | 3,446 | 53 | 191 | 65.018868 | 0.624845 | 0 | 0 | 0.22 | 0 | 0.02 | 0.565003 | 0.064423 | 0 | 0 | 0.009286 | 0 | 0 | 1 | 0 | false | 0 | 0.16 | 0 | 0.16 | 0.04 | 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 |
276b9bb88b3ed59a941472da279bba1dfb89a02a | 4,212 | py | Python | cyborg_enhancement/mitaka_version/cyborg/cyborg/accelerator/drivers/modules/spdk.py | opnfv/cran | 60a2982c7b9de09880005b23da88bff0a8d59467 | [
"Apache-2.0"
] | 1 | 2018-01-26T06:33:05.000Z | 2018-01-26T06:33:05.000Z | cyborg_enhancement/mitaka_version/cyborg/cyborg/accelerator/drivers/modules/spdk.py | opnfv/cran | 60a2982c7b9de09880005b23da88bff0a8d59467 | [
"Apache-2.0"
] | null | null | null | cyborg_enhancement/mitaka_version/cyborg/cyborg/accelerator/drivers/modules/spdk.py | opnfv/cran | 60a2982c7b9de09880005b23da88bff0a8d59467 | [
"Apache-2.0"
] | null | null | null | """
Cyborg SPDK driver modules implementation.
"""
import socket
from cyborg.accelerator.common import exception
from cyborg.accelerator.drivers.modules import generic
from oslo_log import log as logging
from oslo_config import cfg
from oslo_concurrency import processutils as putils
from cyborg.common.i18n i... | 28.459459 | 80 | 0.622745 | 468 | 4,212 | 5.373932 | 0.282051 | 0.035785 | 0.027833 | 0.015109 | 0.199602 | 0.127237 | 0.043738 | 0.043738 | 0.043738 | 0.043738 | 0 | 0.003322 | 0.285375 | 4,212 | 147 | 81 | 28.653061 | 0.832226 | 0.009972 | 0 | 0.138614 | 0 | 0 | 0.087024 | 0.011725 | 0 | 0 | 0 | 0 | 0 | 1 | 0.188119 | false | 0.09901 | 0.108911 | 0.049505 | 0.356436 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
27893ffc27834cc5ddbe457489df39d9ef3b50d0 | 268 | py | Python | wsgi.py | dangwy/slsds | 5d30385ed616ee12893e99d6e9ccbb4d4cd31351 | [
"Apache-2.0"
] | null | null | null | wsgi.py | dangwy/slsds | 5d30385ed616ee12893e99d6e9ccbb4d4cd31351 | [
"Apache-2.0"
] | null | null | null | wsgi.py | dangwy/slsds | 5d30385ed616ee12893e99d6e9ccbb4d4cd31351 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
[uwsgi]
# uwsgi 启动时所使用的地址与端口
socket = 127.0.0.1:7878
# 指向网站目录
chdir = /home/www/
# python 启动程序文件
wsgi-file = manage.py
# python 程序内用以启动的 application 变量名
callable = app
# 处理器数
processes = 4
# 线程数
threads = 2
#状态检测地址
stats = 127.0.0.1:9191 | 11.652174 | 33 | 0.66791 | 41 | 268 | 4.365854 | 0.829268 | 0.044693 | 0.055866 | 0.067039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105991 | 0.190299 | 268 | 23 | 34 | 11.652174 | 0.718894 | 0.402985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
278e35d114ce10fee36cc2ee4a5adf5657d342df | 1,330 | py | Python | deprecated/code_manager/javascript_parser/pre_process_constant.py | utarsuno/quasar_source | 634fcd71ad78cd99cca4f1852693a02acae3107d | [
"MIT"
] | 7 | 2017-07-11T04:40:49.000Z | 2020-10-22T04:43:08.000Z | deprecated/code_manager/javascript_parser/pre_process_constant.py | utarsuno/quasar_source | 634fcd71ad78cd99cca4f1852693a02acae3107d | [
"MIT"
] | 2 | 2020-07-07T19:52:42.000Z | 2021-03-09T03:26:35.000Z | deprecated/code_manager/javascript_parser/pre_process_constant.py | utarsuno/quasar_source | 634fcd71ad78cd99cca4f1852693a02acae3107d | [
"MIT"
] | 1 | 2018-11-14T06:08:50.000Z | 2018-11-14T06:08:50.000Z | # coding=utf-8
"""This module, pre_process_constant.py, provides an abstraction for JS constants to pre-process."""
class PreProcessConstant(object):
"""Represents a constant to pre-process."""
def __init__(self, raw_line):
self._raw = raw_line
self._variable = None
self._value = None
self._initia... | 23.333333 | 100 | 0.676692 | 188 | 1,330 | 4.617021 | 0.335106 | 0.013825 | 0.032258 | 0.018433 | 0.073733 | 0.073733 | 0 | 0 | 0 | 0 | 0 | 0.001825 | 0.17594 | 1,330 | 56 | 101 | 23.75 | 0.790146 | 0.234586 | 0 | 0.058824 | 0 | 0 | 0.048682 | 0.028398 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0.176471 | 0 | 0 | 0.264706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2792d6900a8b0563c062d2f34297896dee31e1b3 | 1,316 | py | Python | tools/nclt/python/ms25_euler_to_rosbag.py | MinesNicaicai/large-scale-pointcloud-matching | cfe140f2be1110ed75b6edd27538021e513a31c9 | [
"MIT"
] | 1 | 2020-11-21T16:39:51.000Z | 2020-11-21T16:39:51.000Z | tools/nclt/python/ms25_euler_to_rosbag.py | MinesNicaicai/large-scale-pointcloud-matching | cfe140f2be1110ed75b6edd27538021e513a31c9 | [
"MIT"
] | null | null | null | tools/nclt/python/ms25_euler_to_rosbag.py | MinesNicaicai/large-scale-pointcloud-matching | cfe140f2be1110ed75b6edd27538021e513a31c9 | [
"MIT"
] | 1 | 2020-12-13T14:51:44.000Z | 2020-12-13T14:51:44.000Z | # !/usr/bin/python
#
# Convert the ms25_euler csv files to a rosbag
#
# To call:
#
# python ms25_euler_to_rosbag.py ms25_euler.csv ms25_euler.bag
#
import rosbag, rospy
from std_msgs.msg import Float64MultiArray, MultiArrayDimension, MultiArrayLayout
import sys
import numpy as np
def main(args):
if len(sys.ar... | 21.225806 | 81 | 0.598784 | 176 | 1,316 | 4.3125 | 0.420455 | 0.130435 | 0.063241 | 0.051383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04661 | 0.282675 | 1,316 | 61 | 82 | 21.57377 | 0.757415 | 0.101064 | 0 | 0.058824 | 0 | 0 | 0.073254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27a466e36691afccf30b8313968ad60cf66e1b75 | 562 | py | Python | app/chargen.py | manna/musical-autocomplete | ec71176ad7a98b25969a7cb5d4e5f0216ec1590f | [
"MIT"
] | 1 | 2020-02-20T13:45:51.000Z | 2020-02-20T13:45:51.000Z | app/chargen.py | manna/musical-autocomplete | ec71176ad7a98b25969a7cb5d4e5f0216ec1590f | [
"MIT"
] | null | null | null | app/chargen.py | manna/musical-autocomplete | ec71176ad7a98b25969a7cb5d4e5f0216ec1590f | [
"MIT"
] | null | null | null | from mytextgenrnn import textgenrnn
textgen = textgenrnn()
print '\n'
def get_next_words(prefix, n=5):
words = []
temp = 0.2
while len(words) < n:
raw_word, likelihood = textgen.generate_word(
n=1, prefix=prefix, temperature=temp, return_as_list=True
)[0]
print raw_wor... | 24.434783 | 69 | 0.601423 | 77 | 562 | 4.25974 | 0.532468 | 0.064024 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027638 | 0.291815 | 562 | 22 | 70 | 25.545455 | 0.796482 | 0 | 0 | 0 | 0 | 0 | 0.065836 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27a78602bc84f95e92f06b27c3a2747bbaeb212d | 1,165 | py | Python | project/HTML/1022/s4day751/app01/views/account.py | lcscim/python-demo | c312b53f9a0f845051e6b9966d030753505d6c56 | [
"Apache-2.0"
] | null | null | null | project/HTML/1022/s4day751/app01/views/account.py | lcscim/python-demo | c312b53f9a0f845051e6b9966d030753505d6c56 | [
"Apache-2.0"
] | null | null | null | project/HTML/1022/s4day751/app01/views/account.py | lcscim/python-demo | c312b53f9a0f845051e6b9966d030753505d6c56 | [
"Apache-2.0"
] | null | null | null | #__author__:asus
#date:2018/10/22
from django.shortcuts import render,HttpResponse,redirect
from app01 import models
def login(req):
if req.method=='GET':
return render(req,'login.html')
else:
user=req.POST.get('username')
pwd=req.POST.get('password')
gender=req.POST.ge... | 36.40625 | 112 | 0.611159 | 139 | 1,165 | 5.064748 | 0.395683 | 0.039773 | 0.056818 | 0.056818 | 0.184659 | 0.116477 | 0.116477 | 0 | 0 | 0 | 0 | 0.012387 | 0.237768 | 1,165 | 31 | 113 | 37.580645 | 0.780405 | 0.186266 | 0 | 0.136364 | 0 | 0 | 0.132159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.136364 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
27a9c70335e5cc4b5a56e709850c0d0067a0b822 | 5,917 | py | Python | BruteForce/Wordpress.py | Zusyaku/Termux-And-Lali-Linux-V2 | b1a1b0841d22d4bf2cc7932b72716d55f070871e | [
"Apache-2.0"
] | 2 | 2021-11-17T03:35:03.000Z | 2021-12-08T06:00:31.000Z | BruteForce/Wordpress.py | Zusyaku/Termux-And-Lali-Linux-V2 | b1a1b0841d22d4bf2cc7932b72716d55f070871e | [
"Apache-2.0"
] | null | null | null | BruteForce/Wordpress.py | Zusyaku/Termux-And-Lali-Linux-V2 | b1a1b0841d22d4bf2cc7932b72716d55f070871e | [
"Apache-2.0"
] | 2 | 2021-11-05T18:07:48.000Z | 2022-02-24T21:25:07.000Z | # uncompyle6 version 2.11.5
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.18 (default, Apr 20 2020, 20:30:41)
# [GCC 9.3.0]
# Embedded file name: BruteForce\Wordpress.py
import requests
import re
import threading
import time
import json
from Exploits import printModule
from Tools import shellupload
r = '... | 39.97973 | 205 | 0.488085 | 630 | 5,917 | 4.55873 | 0.331746 | 0.019499 | 0.022981 | 0.017758 | 0.238858 | 0.190111 | 0.167131 | 0.148329 | 0.148329 | 0.073816 | 0 | 0.04519 | 0.360487 | 5,917 | 148 | 206 | 39.97973 | 0.713795 | 0.029407 | 0 | 0.29771 | 0 | 0.030534 | 0.222377 | 0.049146 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030534 | false | 0.122137 | 0.053435 | 0 | 0.122137 | 0.030534 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
27ad7c4cc89c1aaf55b7ff03faa512b7f421e5d0 | 2,183 | py | Python | src/neuralkg/lit_model/BaseLitModel.py | zjukg/NeuralKG | 9fe97c29496ed08bc72c76e4dd71e72cbfbe5afa | [
"Apache-2.0"
] | 52 | 2022-01-19T09:08:07.000Z | 2022-03-31T07:02:17.000Z | src/neuralkg/lit_model/BaseLitModel.py | zjukg/NeuralKG | 9fe97c29496ed08bc72c76e4dd71e72cbfbe5afa | [
"Apache-2.0"
] | 2 | 2022-03-08T20:47:38.000Z | 2022-03-18T09:52:33.000Z | src/neuralkg/lit_model/BaseLitModel.py | zjukg/NeuralKG | 9fe97c29496ed08bc72c76e4dd71e72cbfbe5afa | [
"Apache-2.0"
] | 10 | 2022-02-28T07:54:14.000Z | 2022-03-23T14:06:33.000Z | import argparse
import pytorch_lightning as pl
import torch
from collections import defaultdict as ddict
from neuralkg import loss
import numpy as np
class Config(dict):
def __getattr__(self, name):
return self.get(name)
def __setattr__(self, name, val):
self[name] = val
class BaseLitMode... | 31.185714 | 118 | 0.648191 | 271 | 2,183 | 5.070111 | 0.376384 | 0.087336 | 0.098253 | 0.039301 | 0.252547 | 0.19869 | 0.163755 | 0.163755 | 0.163755 | 0.163755 | 0 | 0.004914 | 0.254237 | 2,183 | 70 | 119 | 31.185714 | 0.839066 | 0.179111 | 0 | 0.116279 | 0 | 0 | 0.013945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232558 | false | 0 | 0.139535 | 0.023256 | 0.488372 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
27b25f4a4cbfe426c22168e0f2eb2d790a9ca781 | 1,158 | py | Python | cleave/debug/__init__.py | Max201/cleave-server | 68253ea62f14738d1756a54ff7b7889d210671c7 | [
"Apache-2.0"
] | 2 | 2015-11-06T18:59:14.000Z | 2016-02-11T02:50:36.000Z | cleave/debug/__init__.py | Max201/cleave-server | 68253ea62f14738d1756a54ff7b7889d210671c7 | [
"Apache-2.0"
] | 1 | 2016-03-18T18:32:35.000Z | 2016-03-18T18:32:35.000Z | cleave/debug/__init__.py | Max201/cleave-server | 68253ea62f14738d1756a54ff7b7889d210671c7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from datetime import datetime
class Log(object):
DEBUG = True
# Console colors output
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE =... | 21.444444 | 78 | 0.549223 | 141 | 1,158 | 4.48227 | 0.404255 | 0.189873 | 0.082278 | 0.082278 | 0.177215 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0.045838 | 0.284111 | 1,158 | 53 | 79 | 21.849057 | 0.716526 | 0.055268 | 0 | 0.216216 | 0 | 0 | 0.127406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027027 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27bec24f8db716b005a59c4de1ec3678d697b589 | 3,302 | py | Python | src/pykeen/nn/node_piece/__init__.py | dobraczka/pykeen | c34d4016bc979acb17b88ba3a20d0caa93427bf5 | [
"MIT"
] | 88 | 2018-10-14T16:28:38.000Z | 2020-06-22T08:03:15.000Z | src/pykeen/nn/node_piece/__init__.py | dobraczka/pykeen | c34d4016bc979acb17b88ba3a20d0caa93427bf5 | [
"MIT"
] | 42 | 2018-10-10T18:05:56.000Z | 2020-06-09T09:19:27.000Z | src/pykeen/nn/node_piece/__init__.py | dobraczka/pykeen | c34d4016bc979acb17b88ba3a20d0caa93427bf5 | [
"MIT"
] | 19 | 2019-02-15T17:36:46.000Z | 2020-03-28T11:03:41.000Z | # -*- coding: utf-8 -*-
"""
NodePiece modules.
A :class:`NodePieceRepresentation` contains a collection of :class:`TokenizationRepresentation`.
A :class:`TokenizationRepresentation` is defined as :class:`Representation` module mapping token
indices to representations, also called the `vocabulary` in resemblance of to... | 35.891304 | 117 | 0.782253 | 318 | 3,302 | 8.053459 | 0.468553 | 0.029285 | 0.007029 | 0.011714 | 0.014057 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000358 | 0.153543 | 3,302 | 91 | 118 | 36.285714 | 0.915921 | 0.520896 | 0 | 0 | 0 | 0 | 0.341417 | 0.264837 | 0 | 0 | 0 | 0.010989 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27c2506895ffb54a4d911663b73339f3d56dbffc | 578 | py | Python | hypha/apply/projects/migrations/0008_add_value_validator.py | maxpearl/hypha | e181ebadfb744aab34617bb766e746368d6f2de0 | [
"BSD-3-Clause"
] | 20 | 2021-04-08T16:38:49.000Z | 2022-02-09T20:05:57.000Z | hypha/apply/projects/migrations/0008_add_value_validator.py | maxpearl/hypha | e181ebadfb744aab34617bb766e746368d6f2de0 | [
"BSD-3-Clause"
] | 1,098 | 2017-12-15T11:23:03.000Z | 2020-01-24T07:58:07.000Z | hypha/apply/projects/migrations/0008_add_value_validator.py | maxpearl/hypha | e181ebadfb744aab34617bb766e746368d6f2de0 | [
"BSD-3-Clause"
] | 17 | 2020-02-07T14:55:54.000Z | 2021-04-04T19:32:38.000Z | # Generated by Django 2.0.13 on 2019-08-07 08:38
from decimal import Decimal
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('application_projects', '0007_fix_proposed_end_date_verbose_name'),
]
operations = [
... | 27.52381 | 154 | 0.681661 | 67 | 578 | 5.731343 | 0.671642 | 0.067708 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058952 | 0.207612 | 578 | 20 | 155 | 28.9 | 0.779476 | 0.079585 | 0 | 0 | 1 | 0 | 0.141509 | 0.073585 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27c2a7d51fa0279f2b7a80e2ad8090d289f8830e | 1,372 | py | Python | Backend/server.py | AriYoung00/Veritas | f81588406e606789cc0702f60ac34f0cf4fc4f61 | [
"Apache-2.0"
] | null | null | null | Backend/server.py | AriYoung00/Veritas | f81588406e606789cc0702f60ac34f0cf4fc4f61 | [
"Apache-2.0"
] | null | null | null | Backend/server.py | AriYoung00/Veritas | f81588406e606789cc0702f60ac34f0cf4fc4f61 | [
"Apache-2.0"
] | 1 | 2019-03-31T16:54:28.000Z | 2019-03-31T16:54:28.000Z | import flask
from flask import Flask
from flask import request
from bigchain_db import download
app = Flask(__name__)
@app.route('/api/getTopics', methods=['POST', 'GET'])
def get_topics():
date = request.args.get('date')
articles = download.get_articles(date)
topics = []
for article in articles:
... | 29.826087 | 108 | 0.609329 | 158 | 1,372 | 5.208861 | 0.291139 | 0.120292 | 0.196841 | 0.08384 | 0.481166 | 0.18712 | 0.116646 | 0.116646 | 0.116646 | 0 | 0 | 0 | 0.204082 | 1,372 | 45 | 109 | 30.488889 | 0.753663 | 0 | 0 | 0.30303 | 0 | 0 | 0.203353 | 0.039359 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.121212 | 0 | 0.242424 | 0.030303 | 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 |
27c7ae8af176047a2315c8a138916efe8b712874 | 3,017 | py | Python | wxVTK/src/DisplayWindow.py | darrenleeweber/pyBEM | bc4b96ec93cd202b7a80f2803011f29582bb5393 | [
"Apache-2.0"
] | null | null | null | wxVTK/src/DisplayWindow.py | darrenleeweber/pyBEM | bc4b96ec93cd202b7a80f2803011f29582bb5393 | [
"Apache-2.0"
] | null | null | null | wxVTK/src/DisplayWindow.py | darrenleeweber/pyBEM | bc4b96ec93cd202b7a80f2803011f29582bb5393 | [
"Apache-2.0"
] | null | null | null | # python planes8.py -c camera.pickle
# Hit "b" to save a camera position into a file called camera.pickle
# Hit "t" to save an image.
import vtk
import cmath
import pickle
import os
import math
import sys
import getopt
class DisplayWindow:
def __init__(self):
self.backgroundColor = (.2,.2,.2... | 27.678899 | 99 | 0.646669 | 337 | 3,017 | 5.753709 | 0.47181 | 0.028881 | 0.015472 | 0.016503 | 0.031975 | 0.031975 | 0.031975 | 0 | 0 | 0 | 0 | 0.028748 | 0.25058 | 3,017 | 109 | 100 | 27.678899 | 0.828837 | 0.196221 | 0 | 0 | 0 | 0 | 0.021304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014706 | 0.102941 | null | null | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
27c8dfdaddc0f55c3b39d4ce0be1fc95a4f07f77 | 2,835 | py | Python | servergrimoire/dispatcher.py | fundor333/servergrimoire | 4615606b043c544aacc87c3e5771a78fca887bac | [
"MIT"
] | null | null | null | servergrimoire/dispatcher.py | fundor333/servergrimoire | 4615606b043c544aacc87c3e5771a78fca887bac | [
"MIT"
] | 4 | 2020-09-21T15:34:26.000Z | 2021-04-06T19:49:08.000Z | servergrimoire/dispatcher.py | fundor333/servergrimoire | 4615606b043c544aacc87c3e5771a78fca887bac | [
"MIT"
] | 1 | 2020-09-13T19:47:08.000Z | 2020-09-13T19:47:08.000Z | from importlib import import_module
import click
from servergrimoire.app import GrimoirePage
def dynamic_import(abs_module_path, class_name):
module_object = import_module(abs_module_path)
target_class = getattr(module_object, class_name)
return target_class
@click.group()
@click.option(
"--c",
... | 26.009174 | 79 | 0.640212 | 426 | 2,835 | 4.20892 | 0.220657 | 0.087005 | 0.085332 | 0.080312 | 0.302844 | 0.163971 | 0.163971 | 0.163971 | 0.163971 | 0.163971 | 0 | 0.137681 | 0.221164 | 2,835 | 108 | 80 | 26.25 | 0.674366 | 0 | 0 | 0.238806 | 0 | 0 | 0.285171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134328 | false | 0.104478 | 0.074627 | 0 | 0.223881 | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
27ced2f68e8163854a13bf49204056893b9753c8 | 2,883 | py | Python | app.py | cdepman/falcon_api | 42d2ec646a8af5c4bd62460af5a227c805d0a825 | [
"MIT"
] | null | null | null | app.py | cdepman/falcon_api | 42d2ec646a8af5c4bd62460af5a227c805d0a825 | [
"MIT"
] | null | null | null | app.py | cdepman/falcon_api | 42d2ec646a8af5c4bd62460af5a227c805d0a825 | [
"MIT"
] | null | null | null | import falcon
import json
import redis
import utils
from bson.json_util import dumps
from postgres import *
from rethink_client import *
from mongo_client import *
class NoteResource:
def on_get(self, req, resp):
if req.get_param("id"):
result = {'note': rethinkdb.db(PROJECT_DB).table(PROJECT... | 33.523256 | 140 | 0.571627 | 345 | 2,883 | 4.672464 | 0.327536 | 0.039702 | 0.034119 | 0.05273 | 0.391439 | 0.362903 | 0.201613 | 0.132754 | 0.132754 | 0.132754 | 0 | 0.005544 | 0.311828 | 2,883 | 85 | 141 | 33.917647 | 0.806956 | 0 | 0 | 0.342466 | 0 | 0 | 0.11377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.109589 | null | null | 0.09589 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
27dab844ddf97c4307d35bbcba822f399105ec4f | 1,235 | py | Python | examples/example_download_radar.py | wavestoweather/enstools | d0f612b0187b0ad54dfbbb78aa678564f46eaedf | [
"Apache-2.0"
] | 5 | 2021-12-16T14:08:00.000Z | 2022-03-02T14:08:10.000Z | examples/example_download_radar.py | wavestoweather/enstools | d0f612b0187b0ad54dfbbb78aa678564f46eaedf | [
"Apache-2.0"
] | null | null | null | examples/example_download_radar.py | wavestoweather/enstools | d0f612b0187b0ad54dfbbb78aa678564f46eaedf | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from enstools.opendata import retrieve_radar, getDWDRadar
# search for data using the content object
content = getDWDRadar()
print("Available Product Classes:", content.get_product_classes())
print("Available products:", content.get_products())
data_times_re = content.get_avail_data_times(prod... | 45.740741 | 103 | 0.789474 | 185 | 1,235 | 4.951351 | 0.210811 | 0.117904 | 0.081878 | 0.074236 | 0.439956 | 0.409389 | 0.208515 | 0.063319 | 0 | 0 | 0 | 0.00446 | 0.092308 | 1,235 | 26 | 104 | 47.5 | 0.812667 | 0.072065 | 0 | 0 | 0 | 0 | 0.238845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.411765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
27db10d4c9c37080a701671e47458dbae72cb2da | 333 | py | Python | backend/account_app/connections.py | michaeljarizala/django-react-app-boilerplate | 2a5e8a57f21a5a411d47032f8e55afdba99db603 | [
"MIT"
] | null | null | null | backend/account_app/connections.py | michaeljarizala/django-react-app-boilerplate | 2a5e8a57f21a5a411d47032f8e55afdba99db603 | [
"MIT"
] | 5 | 2021-03-30T13:45:26.000Z | 2021-09-22T19:16:06.000Z | backend/account_app/connections.py | michaeljarizala/django-react-app-boilerplate | 2a5e8a57f21a5a411d47032f8e55afdba99db603 | [
"MIT"
] | null | null | null | from django.core.mail import get_connection
class EmailConnection():
# Gmail connection
def connection(host, port, username, password):
try:
connection = get_connection(
host=host,
port=port,
username=username,
password=password,
use_tls=True
)
return connection
except Exception as e... | 20.8125 | 48 | 0.708709 | 40 | 333 | 5.825 | 0.625 | 0.111588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207207 | 333 | 16 | 49 | 20.8125 | 0.882576 | 0.048048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.142857 | 0.071429 | 0 | 0.285714 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
27dbdde09ca26645321e5e0e047896c9c1002430 | 269 | py | Python | semestre01/exercises_university_uri/1071.py | alaanlimaa/impactaADS | 307d0b2c7831a5038184592afae7a825b2774498 | [
"MIT"
] | null | null | null | semestre01/exercises_university_uri/1071.py | alaanlimaa/impactaADS | 307d0b2c7831a5038184592afae7a825b2774498 | [
"MIT"
] | null | null | null | semestre01/exercises_university_uri/1071.py | alaanlimaa/impactaADS | 307d0b2c7831a5038184592afae7a825b2774498 | [
"MIT"
] | null | null | null | x = int(input())
y = int(input())
soma = 0
if y < 0:
for c in range(x, y, -1):
if c % 2 != 0:
soma += c
print(soma)
elif x > y:
for c in range(y, x):
if c % 2 != 0:
soma += c
print(soma)
else:
print('0')
| 12.809524 | 29 | 0.401487 | 46 | 269 | 2.347826 | 0.347826 | 0.148148 | 0.111111 | 0.203704 | 0.351852 | 0.351852 | 0.351852 | 0.351852 | 0 | 0 | 0 | 0.051948 | 0.427509 | 269 | 20 | 30 | 13.45 | 0.649351 | 0 | 0 | 0.4 | 0 | 0 | 0.003788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
27e29c79fe385562172fea857418cf1272109849 | 660 | py | Python | backend/src/users/models.py | shubham-00/stockist.ga | ef79799f2044619f7b8f82589e55f31778e222be | [
"Apache-2.0"
] | 2 | 2021-03-18T13:41:35.000Z | 2021-03-31T16:30:24.000Z | backend/src/users/models.py | shubham-00/stockist | ef79799f2044619f7b8f82589e55f31778e222be | [
"Apache-2.0"
] | null | null | null | backend/src/users/models.py | shubham-00/stockist | ef79799f2044619f7b8f82589e55f31778e222be | [
"Apache-2.0"
] | null | null | null | from companies.models import Company
from django.contrib.auth.models import User
from django.db import models
from django.db.models.signals import post_save
from django.dispatch import receiver
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
company = models.ForeignKey... | 33 | 77 | 0.768182 | 87 | 660 | 5.735632 | 0.448276 | 0.08016 | 0.048096 | 0.084168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137879 | 660 | 19 | 78 | 34.736842 | 0.876977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
27e6e693149589920a4a03b07ea7539ba0a5f74a | 2,934 | py | Python | kfusion/thirdparty/checkKernels.py | mcanalesmayo/heterogeneous-slambench | 2f9222dc438aa1a53dbcf9b7e5d79b90a5eb9514 | [
"MIT"
] | 9 | 2019-06-22T17:44:17.000Z | 2020-06-13T15:31:11.000Z | kfusion/thirdparty/checkKernels.py | mcanalesmayo/heterogeneous-slambench | 2f9222dc438aa1a53dbcf9b7e5d79b90a5eb9514 | [
"MIT"
] | null | null | null | kfusion/thirdparty/checkKernels.py | mcanalesmayo/heterogeneous-slambench | 2f9222dc438aa1a53dbcf9b7e5d79b90a5eb9514 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2014 University of Edinburgh, Imperial College, University of Manchester.
# Developed in the PAMELA project, EPSRC Programme Grant EP/K008730/1
#
# This code is licensed under the MIT License.
import sys
import re
import math
import numpy
import csv
import os.path
KERNEL_CONSISTE... | 29.938776 | 100 | 0.645194 | 332 | 2,934 | 5.674699 | 0.53012 | 0.018577 | 0.014862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015537 | 0.210293 | 2,934 | 98 | 101 | 29.938776 | 0.797583 | 0.125426 | 0 | 0 | 0 | 0 | 0.287837 | 0.018772 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.152778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
27e72743beb415606f3be01844b41880aca51750 | 1,895 | py | Python | complaint_app/views.py | sriniArumalla/fullstack-coding-challenge | 654b03f5e1ef69387540820a0004afc598e307d0 | [
"MIT"
] | null | null | null | complaint_app/views.py | sriniArumalla/fullstack-coding-challenge | 654b03f5e1ef69387540820a0004afc598e307d0 | [
"MIT"
] | 5 | 2020-06-06T01:31:01.000Z | 2021-06-09T18:57:04.000Z | complaint_app/views.py | sriniArumalla/fullstack-coding-challenge | 654b03f5e1ef69387540820a0004afc598e307d0 | [
"MIT"
] | null | null | null | from rest_framework import viewsets
from .models import UserProfile, Complaint
from .serializers import UserSerializer, UserProfileSerializer, ComplaintSerializer
from rest_framework.response import Response
from rest_framework import status
from complaint_app import models
# Create your views here.
def getUserDistric... | 33.839286 | 83 | 0.731398 | 222 | 1,895 | 6.099099 | 0.31982 | 0.048744 | 0.070901 | 0.088626 | 0.376662 | 0.361152 | 0.254062 | 0.228951 | 0.171344 | 0.171344 | 0 | 0.004551 | 0.188391 | 1,895 | 55 | 84 | 34.454545 | 0.875813 | 0.381003 | 0 | 0.333333 | 0 | 0 | 0.01645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.2 | 0.1 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
27f181e9be2a8fdba6fe501ae475a529d6233d6d | 784 | py | Python | dbsetup.py | janastu/swtstore | 7326138bf2fbf2a4ed8c7300c68092f91709dfc2 | [
"BSD-2-Clause"
] | 2 | 2015-04-28T00:35:21.000Z | 2016-02-11T19:31:15.000Z | dbsetup.py | janastu/swtstore | 7326138bf2fbf2a4ed8c7300c68092f91709dfc2 | [
"BSD-2-Clause"
] | 9 | 2015-02-02T11:24:23.000Z | 2017-12-29T07:49:07.000Z | dbsetup.py | janastu/swtstore | 7326138bf2fbf2a4ed8c7300c68092f91709dfc2 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# swtstore->dbsetup.py
# Create and setup databases for the first time run of the application
import sys
import os
# Get the path to the base directory of the app
BASE_DIR = os.path.join(os.path.dirname(__file__))
# append the path to the WSGI env path
sys.path.insert(0, BASE_DIR)
# Import ... | 25.290323 | 74 | 0.753827 | 122 | 784 | 4.704918 | 0.565574 | 0.062718 | 0.031359 | 0.041812 | 0.108014 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003072 | 0.169643 | 784 | 30 | 75 | 26.133333 | 0.878648 | 0.506378 | 0 | 0 | 0 | 0 | 0.02122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
27f34bc75b3c3f4e410237189ffaf43b82f04040 | 9,332 | py | Python | nlu_engine/entity_extractor.py | secretsauceai/NLU-engine-prototype-benchmarks | 085419b3697c002f6626c72dafb3857a9b37bb3f | [
"Apache-2.0"
] | null | null | null | nlu_engine/entity_extractor.py | secretsauceai/NLU-engine-prototype-benchmarks | 085419b3697c002f6626c72dafb3857a9b37bb3f | [
"Apache-2.0"
] | null | null | null | nlu_engine/entity_extractor.py | secretsauceai/NLU-engine-prototype-benchmarks | 085419b3697c002f6626c72dafb3857a9b37bb3f | [
"Apache-2.0"
] | null | null | null | import re
import nltk
import re
import sklearn_crfsuite
crf = sklearn_crfsuite.CRF(
algorithm='lbfgs',
c1=0.1,
c2=0.1,
max_iterations=100,
all_possible_transitions=True
)
class EntityExtractor:
"""
Extracts entities from an utterance.
"""
@staticmethod
def seperate_types_and_e... | 35.082707 | 230 | 0.608766 | 986 | 9,332 | 5.56288 | 0.197769 | 0.054695 | 0.024795 | 0.02516 | 0.284047 | 0.216226 | 0.184321 | 0.154239 | 0.106472 | 0.089699 | 0 | 0.013883 | 0.297578 | 9,332 | 266 | 231 | 35.082707 | 0.822883 | 0.171132 | 0 | 0.221591 | 0 | 0 | 0.036359 | 0 | 0 | 0 | 0 | 0.015038 | 0 | 1 | 0.113636 | false | 0.005682 | 0.022727 | 0.017045 | 0.25 | 0.005682 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
27f6b72e52687f9ce6b1e3dbe6a254f3bd317647 | 2,959 | py | Python | pins/tests/conftest.py | machow/pins-python | f5cd3a320c45d06a2969332bbea8c17bc3f9ecd5 | [
"MIT"
] | null | null | null | pins/tests/conftest.py | machow/pins-python | f5cd3a320c45d06a2969332bbea8c17bc3f9ecd5 | [
"MIT"
] | 34 | 2022-02-12T01:48:50.000Z | 2022-03-31T22:07:18.000Z | pins/tests/conftest.py | machow/pins-python | f5cd3a320c45d06a2969332bbea8c17bc3f9ecd5 | [
"MIT"
] | null | null | null | import pytest
import tempfile
import os
from importlib_resources import files
from pytest import mark as m
from pathlib import Path
from pins.tests.helpers import BoardBuilder, RscBoardBuilder, Snapshot, rm_env
EXAMPLE_REL_PATH = "pins/tests/pins-compat"
PATH_TO_EXAMPLE_BOARD = files("pins") / "tests/pins-compat"
PAT... | 30.193878 | 93 | 0.710375 | 420 | 2,959 | 4.82619 | 0.383333 | 0.02664 | 0.039467 | 0.02812 | 0.156389 | 0.156389 | 0.140602 | 0.109028 | 0.092748 | 0.092748 | 0 | 0.010175 | 0.169652 | 2,959 | 97 | 94 | 30.505155 | 0.814815 | 0.210206 | 0 | 0.186441 | 0 | 0.016949 | 0.171613 | 0.022366 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.152542 | false | 0 | 0.135593 | 0.016949 | 0.338983 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
27f89337fb7d4a710fe6bf4c93fd18f67d270ddc | 4,454 | py | Python | app/user_wrapper.py | igorxxl8/Calistra | ced32a53f42a8d7a2309a1eb15acef42418a3ecb | [
"MIT"
] | null | null | null | app/user_wrapper.py | igorxxl8/Calistra | ced32a53f42a8d7a2309a1eb15acef42418a3ecb | [
"MIT"
] | null | null | null | app/user_wrapper.py | igorxxl8/Calistra | ced32a53f42a8d7a2309a1eb15acef42418a3ecb | [
"MIT"
] | null | null | null | """
This module contains user wrapper that stores registration data
for authenticate users in the console interface
"""
from calistra_lib.storage.json_serializer import JsonDatabase
from calistra_lib.exceptions.base_exception import AppError
from calistra_lib.logger import log_cli
class UserWrapper:
"""
Repr... | 27.325153 | 79 | 0.592277 | 498 | 4,454 | 5.084337 | 0.232932 | 0.086888 | 0.044234 | 0.025276 | 0.28357 | 0.21643 | 0.165087 | 0.055687 | 0 | 0 | 0 | 0 | 0.310956 | 4,454 | 162 | 80 | 27.493827 | 0.825024 | 0.176695 | 0 | 0.189873 | 0 | 0 | 0.072964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189873 | false | 0.113924 | 0.037975 | 0.025316 | 0.35443 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
27f94b15ac07ffd83475557d044cb090f835fe19 | 877 | py | Python | maxSquareInBinaryMatrix.py | gvalleru/interviewquestions | 65d1a65c17e21390fe1fe976daed03de160e0400 | [
"Apache-2.0"
] | null | null | null | maxSquareInBinaryMatrix.py | gvalleru/interviewquestions | 65d1a65c17e21390fe1fe976daed03de160e0400 | [
"Apache-2.0"
] | null | null | null | maxSquareInBinaryMatrix.py | gvalleru/interviewquestions | 65d1a65c17e21390fe1fe976daed03de160e0400 | [
"Apache-2.0"
] | null | null | null |
def print_matrix(m):
for i in m:
for j in i:
print j,
print ""
print ""
def find_max_square(m):
row = len(m)
col = len(m[0])
max_sq = 0
max_row = 0
max_col = 0
for i in range(1, row):
for j in range(1, col):
if m[i][j] == 1:
... | 24.361111 | 85 | 0.437856 | 163 | 877 | 2.214724 | 0.128834 | 0.105263 | 0.099723 | 0.066482 | 0.379501 | 0.33241 | 0.254848 | 0.116343 | 0.116343 | 0.116343 | 0 | 0.094972 | 0.387685 | 877 | 36 | 86 | 24.361111 | 0.577281 | 0.129989 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.269231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7e01c30cf06c18da6ee197eeab294c44ac49e85c | 2,725 | py | Python | kome/tdsystem/crawler.py | chopstickexe/kome | 939dbf5fe5e7094ca9509992b5e997e2e7a8a471 | [
"Apache-2.0"
] | null | null | null | kome/tdsystem/crawler.py | chopstickexe/kome | 939dbf5fe5e7094ca9509992b5e997e2e7a8a471 | [
"Apache-2.0"
] | null | null | null | kome/tdsystem/crawler.py | chopstickexe/kome | 939dbf5fe5e7094ca9509992b5e997e2e7a8a471 | [
"Apache-2.0"
] | null | null | null | import logging
import time
import random
import chromedriver_binary # noqa: F401
from selenium.webdriver import Chrome
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.select import Select
class TdsystemCrawler:
def __init__(self, headless: bool = True):
self.root = ... | 30.277778 | 88 | 0.637798 | 347 | 2,725 | 4.70317 | 0.371758 | 0.067402 | 0.026961 | 0.036765 | 0.118873 | 0.118873 | 0.039216 | 0 | 0 | 0 | 0 | 0.014663 | 0.249174 | 2,725 | 89 | 89 | 30.617978 | 0.782991 | 0.025688 | 0 | 0.073529 | 0 | 0 | 0.078868 | 0.009434 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.147059 | false | 0 | 0.102941 | 0.014706 | 0.338235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.