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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c4a075973e7cf967bb0491dab744bd0c9bc905bb | 586 | py | Python | Geeks4Geeks/Median2Arr.py | aparnamaleth/CodingPractice | 937600b0dce20be023527cc036d1118312a140ea | [
"MIT"
] | null | null | null | Geeks4Geeks/Median2Arr.py | aparnamaleth/CodingPractice | 937600b0dce20be023527cc036d1118312a140ea | [
"MIT"
] | null | null | null | Geeks4Geeks/Median2Arr.py | aparnamaleth/CodingPractice | 937600b0dce20be023527cc036d1118312a140ea | [
"MIT"
] | null | null | null | def Median2Arr(A1, A2,):
n = len(A1)
if n == 2:
Answer = max(A1[0], A2[0])
Answer1 = min(A1[1], A2[1])
Answer = (Answer + Answer1)/2
return Answer
if n%2 ==0:
Med1 = (A1[n/2] + A1[n/2 + 1]) / 2
Med2 = (A2[n/2] + A2[n/2 + 1]) /2
else:
Med1 = A1[n/2]
Med2 = A2[n/2]
if Med1 == Med2:
return Med1
... | 17.757576 | 41 | 0.493174 | 110 | 586 | 2.627273 | 0.227273 | 0.083045 | 0.069204 | 0.055363 | 0.062284 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188725 | 0.303754 | 586 | 32 | 42 | 18.3125 | 0.519608 | 0 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c4a229016fc18eeba9a7f999388054e0b643cef3 | 6,095 | py | Python | sample_project/sample_project/settings.py | alan-fernandes/django-djaesy | bc95d65af8ad08a8bbe7275dbccabec581f4f2ac | [
"MIT"
] | 1 | 2021-08-28T00:48:11.000Z | 2021-08-28T00:48:11.000Z | sample_project/sample_project/settings.py | alan-fernandes/django-djaesy | bc95d65af8ad08a8bbe7275dbccabec581f4f2ac | [
"MIT"
] | 1 | 2020-10-30T21:10:01.000Z | 2020-10-30T21:10:01.000Z | sample_project/sample_project/settings.py | alan-fernandes/django-djaesy | bc95d65af8ad08a8bbe7275dbccabec581f4f2ac | [
"MIT"
] | 1 | 2020-10-30T20:46:19.000Z | 2020-10-30T20:46:19.000Z | """
Django settings for djaesy project.
Generated by 'django-admin startproject' using Django 3.0.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
fro... | 25.826271 | 93 | 0.66776 | 668 | 6,095 | 5.88024 | 0.378743 | 0.049644 | 0.025458 | 0.038187 | 0.205703 | 0.158096 | 0.08834 | 0.065173 | 0.03055 | 0 | 0 | 0.011893 | 0.172272 | 6,095 | 235 | 94 | 25.93617 | 0.7667 | 0.554061 | 0 | 0 | 1 | 0.014493 | 0.429635 | 0.314779 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057971 | 0 | 0.057971 | 0 | 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 |
c4a66684b95959544c263cfe533e862688dd5ebb | 1,284 | py | Python | paprika_sync/core/migrations/0003_newsitem.py | grschafer/paprika-sync | 8b6fcd6246557bb79009fa9355fd4d588fb8ed90 | [
"MIT"
] | null | null | null | paprika_sync/core/migrations/0003_newsitem.py | grschafer/paprika-sync | 8b6fcd6246557bb79009fa9355fd4d588fb8ed90 | [
"MIT"
] | null | null | null | paprika_sync/core/migrations/0003_newsitem.py | grschafer/paprika-sync | 8b6fcd6246557bb79009fa9355fd4d588fb8ed90 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.13 on 2019-03-17 01:41
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0002_paprikaaccount_import_status'),
]
operations = [
... | 42.8 | 209 | 0.627726 | 138 | 1,284 | 5.666667 | 0.601449 | 0.030691 | 0.053708 | 0.069054 | 0.158568 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023139 | 0.225857 | 1,284 | 29 | 210 | 44.275862 | 0.763581 | 0.035826 | 0 | 0 | 1 | 0 | 0.236246 | 0.026699 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.173913 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c4aa61666282e97a5ea9fe21651e5a93519d3d2f | 65,426 | py | Python | mosfit/converter.py | bxg682/MOSFiT | c65ab943bd0024b3d72c992c01a19f4f82956e98 | [
"MIT"
] | 25 | 2017-05-01T10:26:00.000Z | 2021-12-29T09:36:06.000Z | mosfit/converter.py | bxg682/MOSFiT | c65ab943bd0024b3d72c992c01a19f4f82956e98 | [
"MIT"
] | 156 | 2016-09-19T21:06:42.000Z | 2022-02-07T02:32:39.000Z | mosfit/converter.py | bxg682/MOSFiT | c65ab943bd0024b3d72c992c01a19f4f82956e98 | [
"MIT"
] | 48 | 2016-10-05T20:32:31.000Z | 2022-02-16T16:57:56.000Z | # -*- coding: UTF-8 -*-
"""A class for converting ASCII inputs to JSON."""
import csv
import os
import re
from collections import Counter, OrderedDict
from decimal import Decimal
from itertools import chain, product
import inflect
import numpy as np
from astrocats.catalog.catalog import Catalog
from astrocats.catalog.... | 49.565152 | 80 | 0.381546 | 5,473 | 65,426 | 4.412388 | 0.116207 | 0.023686 | 0.010187 | 0.006957 | 0.338523 | 0.23148 | 0.192637 | 0.14336 | 0.123194 | 0.087581 | 0 | 0.00658 | 0.533137 | 65,426 | 1,319 | 81 | 49.602729 | 0.783565 | 0.036178 | 0 | 0.246798 | 0 | 0 | 0.040633 | 0.000349 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003416 | false | 0.005978 | 0.017933 | 0 | 0.028181 | 0.005124 | 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 |
c4b2dce27c6e2363731e8e333ab981cfb9f0d524 | 4,268 | py | Python | Leak #5 - Lost In Translation/windows/Resources/Ops/PyScripts/lib/ops/marker.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | 9 | 2019-11-22T04:58:40.000Z | 2022-02-26T16:47:28.000Z | Python.Fuzzbunch/Resources/Ops/PyScripts/lib/ops/marker.py | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | null | null | null | Python.Fuzzbunch/Resources/Ops/PyScripts/lib/ops/marker.py | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | 8 | 2017-09-27T10:31:18.000Z | 2022-01-08T10:30:46.000Z |
import time, datetime, sys
import ops.db
import ops.project
def ensureMarkerTable(dbHandle=None):
if (dbHandle is None):
dbHandle = ops.db.Database(db=ops.db.TARGET_DB, isolation_level=None)
curs = dbHandle.connection.cursor()
else:
curs = dbHandle.cursor()
try:
curs.execut... | 38.45045 | 138 | 0.64761 | 599 | 4,268 | 4.502504 | 0.135225 | 0.04264 | 0.062662 | 0.070078 | 0.718205 | 0.689284 | 0.657768 | 0.596589 | 0.56396 | 0.491287 | 0 | 0.01584 | 0.216026 | 4,268 | 111 | 139 | 38.45045 | 0.790197 | 0 | 0 | 0.387097 | 0 | 0 | 0.107779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.182796 | false | 0.010753 | 0.032258 | 0.129032 | 0.387097 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
c4b9608ac990a876bd61d117cc20a1f3778a31df | 512 | py | Python | hkm/migrations/0034_postal_code_to_charfield.py | andersinno/kuvaselaamo | aed553a0ba85e82055e0de025ba2d3e3e4f2c9e6 | [
"MIT"
] | 1 | 2017-05-07T10:46:24.000Z | 2017-05-07T10:46:24.000Z | hkm/migrations/0034_postal_code_to_charfield.py | City-of-Helsinki/kuvaselaamo | 3fa9b69e3f5496620852d8b138129d0069339fcd | [
"MIT"
] | 60 | 2016-10-18T11:18:48.000Z | 2022-02-13T20:04:18.000Z | hkm/migrations/0034_postal_code_to_charfield.py | andersinno/kuvaselaamo | aed553a0ba85e82055e0de025ba2d3e3e4f2c9e6 | [
"MIT"
] | 9 | 2017-04-18T13:26:26.000Z | 2020-02-13T20:05:13.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2018-01-31 07:58
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hkm', '0033_add_product_order_collection_hash'),
]
operations = [
migration... | 24.380952 | 89 | 0.644531 | 59 | 512 | 5.355932 | 0.813559 | 0.063291 | 0.088608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059126 | 0.240234 | 512 | 20 | 90 | 25.6 | 0.753213 | 0.132813 | 0 | 0 | 1 | 0 | 0.170068 | 0.086168 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c4ba7ea21ed8e081076c12c1fd2ea8ebe068b56b | 721 | py | Python | setup.py | skspoon/cascade | 00534bd7e2558b880dfeb2e8bb2248a104ba6083 | [
"MIT"
] | null | null | null | setup.py | skspoon/cascade | 00534bd7e2558b880dfeb2e8bb2248a104ba6083 | [
"MIT"
] | null | null | null | setup.py | skspoon/cascade | 00534bd7e2558b880dfeb2e8bb2248a104ba6083 | [
"MIT"
] | null | null | null | from setuptools import setup, PEP420PackageFinder
setup(
name="cascade",
version="0.0.1",
packages=PEP420PackageFinder.find("src"),
package_data={"cascade.executor": ["data/*.toml"]},
package_dir={"": "src"},
install_requires=["numpy", "pandas", "scipy", "toml", "sqlalchemy"],
extras_requir... | 32.772727 | 102 | 0.613037 | 67 | 721 | 6.432836 | 0.746269 | 0.104408 | 0.102088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015598 | 0.199723 | 721 | 21 | 103 | 34.333333 | 0.731369 | 0 | 0 | 0 | 0 | 0 | 0.42025 | 0.147018 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c4c8961de61ead8a7859f7c68a598a30ab5f4d0e | 1,502 | py | Python | aiida_siesta/examples/plugins/siesta/get_cif.py | mailhexu/aiida_siesta_plugin | 313ef4b3532b54d8d0c81788b683c53cb4701965 | [
"MIT"
] | null | null | null | aiida_siesta/examples/plugins/siesta/get_cif.py | mailhexu/aiida_siesta_plugin | 313ef4b3532b54d8d0c81788b683c53cb4701965 | [
"MIT"
] | 2 | 2019-05-12T22:11:46.000Z | 2019-05-13T11:46:16.000Z | aiida_siesta/examples/plugins/siesta/get_cif.py | mailhexu/aiida_siesta_plugin | 313ef4b3532b54d8d0c81788b683c53cb4701965 | [
"MIT"
] | null | null | null | #!/usr/bin/env runaiida
# -*- coding: utf-8 -*-
import sys
import os
__copyright__ = u"Copyright (c), This file is part of the AiiDA platform. For further information please visit http://www.aiida.net/. All rights reserved"
__license__ = "Non-Commercial, End-User Software License Agreement, see LICENSE.txt file."
__ve... | 25.033333 | 154 | 0.653795 | 194 | 1,502 | 4.881443 | 0.561856 | 0.044351 | 0.019007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005937 | 0.215047 | 1,502 | 59 | 155 | 25.457627 | 0.797286 | 0.113182 | 0 | 0.2 | 0 | 0.028571 | 0.35839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c4d1e02791aadea70d20f4d00dead242b72c1458 | 1,814 | py | Python | tests/test_manager_math.py | BvB93/AssertionLib | 843e866702c17dc7ae5fa9f1a6e841ace7c5d06c | [
"Apache-2.0"
] | 2 | 2019-10-17T14:09:26.000Z | 2020-11-29T21:28:07.000Z | tests/test_manager_math.py | BvB93/AssertionLib | 843e866702c17dc7ae5fa9f1a6e841ace7c5d06c | [
"Apache-2.0"
] | 10 | 2020-05-24T15:11:24.000Z | 2021-10-12T09:49:41.000Z | tests/test_manager_math.py | BvB93/AssertionLib | 843e866702c17dc7ae5fa9f1a6e841ace7c5d06c | [
"Apache-2.0"
] | 1 | 2020-08-16T20:55:26.000Z | 2020-08-16T20:55:26.000Z | """Tests for the :class:`AssertionManager<assertionlib.manager.AssertionManager>` class."""
import math
from assertionlib import assertion
inf = math.inf
nan = math.nan
def test_allclose() -> None:
"""Test :meth:`AssertionManager.allclose`."""
assertion.allclose(1, 1)
assertion.allclose(1, 1, rel_tol=1... | 30.233333 | 91 | 0.688534 | 224 | 1,814 | 5.540179 | 0.178571 | 0.088638 | 0.168413 | 0.112812 | 0.385979 | 0.24577 | 0.132957 | 0.132957 | 0.132957 | 0 | 0 | 0.029278 | 0.152701 | 1,814 | 59 | 92 | 30.745763 | 0.778139 | 0.153252 | 0 | 0 | 0 | 0 | 0.007973 | 0 | 0 | 0 | 0 | 0 | 0.8 | 1 | 0.125 | false | 0 | 0.05 | 0 | 0.175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
c4d294064653fc6ad7cb8c0eaad5ba22f6fda288 | 11,137 | py | Python | thop/vision/onnx_counter.py | jinmingyi1998/pytorch-OpCounter | 010d2857eeab7397615249f855342806aaa3bc04 | [
"MIT"
] | 3,444 | 2018-02-11T06:51:19.000Z | 2022-03-31T06:40:39.000Z | thop/vision/onnx_counter.py | jinmingyi1998/pytorch-OpCounter | 010d2857eeab7397615249f855342806aaa3bc04 | [
"MIT"
] | 143 | 2018-11-18T03:23:07.000Z | 2022-03-31T01:52:16.000Z | thop/vision/onnx_counter.py | jinmingyi1998/pytorch-OpCounter | 010d2857eeab7397615249f855342806aaa3bc04 | [
"MIT"
] | 475 | 2018-02-22T07:50:36.000Z | 2022-03-26T10:26:29.000Z | import torch
import numpy as np
from onnx import numpy_helper
from thop.vision.basic_hooks import zero_ops
from .counter import counter_matmul, counter_zero_ops,\
counter_conv, counter_mul, counter_norm, counter_pow,\
counter_sqrt, counter_div, counter_softmax, counter_avgpool
def onnx_counter_matmul(diction,... | 32.375 | 90 | 0.655024 | 1,606 | 11,137 | 4.305106 | 0.073474 | 0.101822 | 0.111079 | 0.071305 | 0.725195 | 0.700752 | 0.671102 | 0.639427 | 0.627278 | 0.591119 | 0 | 0.015193 | 0.219898 | 11,137 | 343 | 91 | 32.469388 | 0.780617 | 0.089701 | 0 | 0.598456 | 0 | 0 | 0.026642 | 0.00208 | 0 | 0 | 0 | 0.002915 | 0 | 1 | 0.084942 | false | 0.003861 | 0.019305 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c4d5f20f83d2c8015613b1361f9ed03fe9703069 | 6,202 | py | Python | src/om_aiv_util/om_aiv_util/ld_states_publisher.py | zach-goh/Omron_AMR_ROS2 | 50d98b31cd1d9a1e694a92c3f59d7f173ecd5a52 | [
"BSD-3-Clause"
] | 2 | 2022-01-04T02:55:51.000Z | 2022-03-18T05:43:33.000Z | src/om_aiv_util/om_aiv_util/ld_states_publisher.py | zach-goh/Omron_AMR_ROS2 | 50d98b31cd1d9a1e694a92c3f59d7f173ecd5a52 | [
"BSD-3-Clause"
] | 3 | 2021-08-25T13:56:12.000Z | 2021-10-13T00:51:14.000Z | src/om_aiv_util/om_aiv_util/ld_states_publisher.py | zach-goh/Omron_AMR_ROS2 | 50d98b31cd1d9a1e694a92c3f59d7f173ecd5a52 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import rclpy
import sys
import time
from std_msgs.msg import String
from om_aiv_util.socket_listener import *
from om_aiv_msg.msg import Status, Location
from rclpy.node import Node
class LdStatePublisher(Node):
def __init__(self, listener):
super().__init__('ld_states_publisher_node... | 35.238636 | 102 | 0.604644 | 707 | 6,202 | 5.062235 | 0.200849 | 0.053646 | 0.050293 | 0.077117 | 0.288908 | 0.200335 | 0.143336 | 0.112322 | 0.091646 | 0.091646 | 0 | 0.007025 | 0.288455 | 6,202 | 176 | 103 | 35.238636 | 0.803988 | 0.046114 | 0 | 0.266667 | 0 | 0 | 0.082814 | 0.021193 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.059259 | 0.051852 | 0 | 0.133333 | 0.007407 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c4da15cec1b9c35bd51bb285796a6ff93061da05 | 1,920 | py | Python | Crawl library journal data/functions.py | luoagnes/financial-reports-analysis | 3056a59a09780e2d7cebf1c406dbe22cae506eea | [
"Apache-2.0"
] | 4 | 2017-11-06T18:53:18.000Z | 2021-02-03T02:51:27.000Z | Crawl library journal data/functions.py | luoagnes/financial-reports-analysis | 3056a59a09780e2d7cebf1c406dbe22cae506eea | [
"Apache-2.0"
] | null | null | null | Crawl library journal data/functions.py | luoagnes/financial-reports-analysis | 3056a59a09780e2d7cebf1c406dbe22cae506eea | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import time
from selenium import webdriver
from selenium.webdriver.support.select import Select
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
def get_browser_driver():
driver= webdriver.Chrome(executable_path='C:\Python27\chromedriver.exe')
print 'get the browser driver s... | 28.656716 | 143 | 0.590104 | 208 | 1,920 | 5.245192 | 0.427885 | 0.073327 | 0.124656 | 0.139322 | 0.290559 | 0.232814 | 0.232814 | 0.148488 | 0 | 0 | 0 | 0.024709 | 0.283333 | 1,920 | 66 | 144 | 29.090909 | 0.768169 | 0.038021 | 0 | 0.170213 | 0 | 0 | 0.508428 | 0.152257 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021277 | 0.085106 | null | null | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c4de6e151be86442d74b6b111741d20bd2109c71 | 4,732 | py | Python | bin/input_module_general_service.py | splunk/ta-webex-meetings-add-on-for-splunk | bd1416a3e498a849dc8a96dbc5f637ad905b613e | [
"Apache-2.0"
] | null | null | null | bin/input_module_general_service.py | splunk/ta-webex-meetings-add-on-for-splunk | bd1416a3e498a849dc8a96dbc5f637ad905b613e | [
"Apache-2.0"
] | 4 | 2020-04-22T16:38:26.000Z | 2020-04-28T06:38:48.000Z | bin/input_module_general_service.py | splunk/ta-webex-meetings-add-on-for-splunk | bd1416a3e498a849dc8a96dbc5f637ad905b613e | [
"Apache-2.0"
] | null | null | null |
# encoding = utf-8
import os
import sys
import time
import datetime
import requests
from datetime import date, timedelta
from datetime import datetime
from utils.webex_constant import authentication_type
from utils.webex_common_functions import fetch_webex_logs
from utils.access_token_functions import update_access... | 40.101695 | 167 | 0.644548 | 573 | 4,732 | 5.09075 | 0.249564 | 0.043195 | 0.041138 | 0.060336 | 0.230374 | 0.15084 | 0.148783 | 0.143984 | 0.130271 | 0.130271 | 0 | 0.004024 | 0.212172 | 4,732 | 117 | 168 | 40.444444 | 0.778433 | 0.104607 | 0 | 0.049383 | 0 | 0 | 0.246858 | 0.035096 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024691 | false | 0.08642 | 0.123457 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c4e546a714341b69b92ba02db9d2df4d02e7cc73 | 1,800 | py | Python | zfused_maya/zfused_maya/tool/animation/studiolibrary/packages/studioqt/color.py | zhoulh0322/zfused_outsource_old | 3d20c1493c3cffd742b10a7db6e0b1f3bb374af8 | [
"Apache-2.0"
] | 1 | 2022-01-14T11:40:35.000Z | 2022-01-14T11:40:35.000Z | zfused_maya/zfused_maya/tool/animation/studiolibrary/packages/studioqt/color.py | zhoulh0322/zfused_outsource_old | 3d20c1493c3cffd742b10a7db6e0b1f3bb374af8 | [
"Apache-2.0"
] | null | null | null | zfused_maya/zfused_maya/tool/animation/studiolibrary/packages/studioqt/color.py | zhoulh0322/zfused_outsource_old | 3d20c1493c3cffd742b10a7db6e0b1f3bb374af8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 by Kurt Rathjen. All Rights Reserved.
#
# This library is free software: you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation, either
# version 3 of the License, or (at your option) any later version.
# This l... | 30.508475 | 78 | 0.587778 | 235 | 1,800 | 4.485106 | 0.497872 | 0.011385 | 0.011385 | 0.05408 | 0.157495 | 0.094877 | 0.064516 | 0 | 0 | 0 | 0 | 0.013209 | 0.285 | 1,800 | 58 | 79 | 31.034483 | 0.80575 | 0.415 | 0 | 0.08 | 0 | 0 | 0.052687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.04 | 0 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c4fe30d3708ee614ce3b595dbb92cf5f08528f49 | 2,392 | py | Python | gammapy/cube/tests/test_exposure.py | watsonjj/gammapy | 8d2498c8f63f73d1fbe4ba81ab02d9e72552df67 | [
"BSD-3-Clause"
] | null | null | null | gammapy/cube/tests/test_exposure.py | watsonjj/gammapy | 8d2498c8f63f73d1fbe4ba81ab02d9e72552df67 | [
"BSD-3-Clause"
] | null | null | null | gammapy/cube/tests/test_exposure.py | watsonjj/gammapy | 8d2498c8f63f73d1fbe4ba81ab02d9e72552df67 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
import pytest
from numpy.testing import assert_allclose
from astropy.coordinates import SkyCoord
from ...utils.testing import requires_data
from ...maps import WcsGeom, HpxGeom, MapAxis, WcsNDMap
from ...irf import EffectiveAreaTable2D
from ..exposure impo... | 30.278481 | 82 | 0.616639 | 312 | 2,392 | 4.580128 | 0.387821 | 0.029391 | 0.030791 | 0.039888 | 0.137159 | 0.055283 | 0.037789 | 0.037789 | 0 | 0 | 0 | 0.045652 | 0.230769 | 2,392 | 78 | 83 | 30.666667 | 0.730978 | 0.098662 | 0 | 0 | 0 | 0.017241 | 0.094551 | 0.033535 | 0 | 0 | 0 | 0.012821 | 0.12069 | 1 | 0.068966 | false | 0 | 0.155172 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
f201f5bf8910483e49d296e327650c6e18c1af74 | 3,015 | py | Python | libs/webargs/falconparser.py | Sparklingx/nzbhydra | e2433e1155255ba37341cc79750b104e7dd8889a | [
"Apache-2.0"
] | 674 | 2015-11-06T04:22:47.000Z | 2022-02-26T17:31:43.000Z | libs/webargs/falconparser.py | Sparklingx/nzbhydra | e2433e1155255ba37341cc79750b104e7dd8889a | [
"Apache-2.0"
] | 713 | 2015-11-06T10:48:58.000Z | 2018-11-27T16:32:18.000Z | libs/webargs/falconparser.py | Sparklingx/nzbhydra | e2433e1155255ba37341cc79750b104e7dd8889a | [
"Apache-2.0"
] | 106 | 2015-12-07T11:21:06.000Z | 2022-03-11T10:58:41.000Z | # -*- coding: utf-8 -*-
"""Falcon request argument parsing module.
"""
import falcon
from webargs import core
HTTP_422 = '422 Unprocessable entity'
def parse_json_body(req):
if req.content_length in (None, 0):
# Nothing to do
return {}
content_type = req.get_header('Content-Type')
if cont... | 33.876404 | 82 | 0.638143 | 387 | 3,015 | 4.819121 | 0.284238 | 0.048257 | 0.035389 | 0.051475 | 0.123861 | 0.123861 | 0.06756 | 0.06756 | 0.06756 | 0.06756 | 0 | 0.005757 | 0.251078 | 3,015 | 88 | 83 | 34.261364 | 0.820195 | 0.207629 | 0 | 0.075472 | 0 | 0 | 0.064851 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 1 | 0.207547 | false | 0.018868 | 0.037736 | 0 | 0.471698 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f205412ac0ab7e00b86521fd52c305e174f6c5b4 | 614 | py | Python | clients/tests.py | Boring-Mind/bank-transactions | e537114c0dd1402c9beb579d78c31519cb6da64b | [
"MIT"
] | null | null | null | clients/tests.py | Boring-Mind/bank-transactions | e537114c0dd1402c9beb579d78c31519cb6da64b | [
"MIT"
] | 3 | 2021-06-04T23:47:36.000Z | 2021-09-22T19:30:21.000Z | clients/tests.py | Boring-Mind/bank-transactions | e537114c0dd1402c9beb579d78c31519cb6da64b | [
"MIT"
] | null | null | null | from rest_framework.test import APITestCase
from .models import Client
class ModelIntegrationTests(APITestCase):
def test_password_is_saved_as_hash(self):
"""Ensure password is stored as correct hash.
For hashing we use Argon2.
"""
password = 'SomeP@ssw0rd'
client = Clien... | 26.695652 | 58 | 0.64658 | 66 | 614 | 5.863636 | 0.69697 | 0.05168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077605 | 0.265472 | 614 | 22 | 59 | 27.909091 | 0.780488 | 0.114007 | 0 | 0 | 0 | 0 | 0.143954 | 0.057582 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0.384615 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f20e37de9b4ccd385d6136830fd6f38ca8eec07b | 1,217 | py | Python | mnist-estimator/passo-a-passo/estimator.py | limasigor2/tensorflow-brasil | 247239d7878627be95c409f146a6f68263217241 | [
"Apache-2.0"
] | 70 | 2017-12-01T20:46:56.000Z | 2020-12-22T19:15:50.000Z | mnist-estimator/passo-a-passo/estimator.py | limasigor2/tensorflow-brasil | 247239d7878627be95c409f146a6f68263217241 | [
"Apache-2.0"
] | 6 | 2017-12-12T20:02:04.000Z | 2019-10-09T14:59:58.000Z | mnist-estimator/passo-a-passo/estimator.py | limasigor2/tensorflow-brasil | 247239d7878627be95c409f146a6f68263217241 | [
"Apache-2.0"
] | 29 | 2017-12-09T22:54:46.000Z | 2021-02-03T15:25:35.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
import numpy as np
# Input functions
from input_fn import mnist_treino_input, mnist_teste_input
# Model functions
from model_fn import model_fn
# Permite impr... | 25.893617 | 108 | 0.792933 | 176 | 1,217 | 5.164773 | 0.352273 | 0.046205 | 0.052805 | 0.044004 | 0.407041 | 0.349835 | 0.283828 | 0.283828 | 0.283828 | 0.283828 | 0 | 0.021316 | 0.113394 | 1,217 | 46 | 109 | 26.456522 | 0.821131 | 0.233361 | 0 | 0 | 0 | 0 | 0.100977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f20f6ce951f398cb2d70539e19430417b9ac8023 | 8,998 | py | Python | lib/python3.8/site-packages/ansible_collections/netbox/netbox/plugins/modules/netbox_power_port_template.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | lib/python3.8/site-packages/ansible_collections/netbox/netbox/plugins/modules/netbox_power_port_template.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | lib/python3.8/site-packages/ansible_collections/netbox/netbox/plugins/modules/netbox_power_port_template.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# © 2020 Nokia
# Licensed under the GNU General Public License v3.0 only
# SPDX-License-Identifier: GPL-3.0-only
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {
"metadata_version": "1.1",
"status": ["preview"... | 29.598684 | 145 | 0.484441 | 962 | 8,998 | 4.432432 | 0.272349 | 0.045028 | 0.028143 | 0.020638 | 0.408068 | 0.378518 | 0.361163 | 0.361163 | 0.361163 | 0.333959 | 0 | 0.081045 | 0.421316 | 8,998 | 303 | 146 | 29.69637 | 0.737661 | 0.022227 | 0 | 0.215827 | 0 | 0.003597 | 0.623789 | 0.016293 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003597 | false | 0 | 0.014388 | 0 | 0.017986 | 0.003597 | 0 | 0 | 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 |
f212463ce9e47972682169113da16c7b35099a86 | 1,428 | py | Python | ssh/ssh_startup_config.py | xanderstevenson/network-automation-demo | 0300675c5e8dc15510a7f4ddfa9997e37b34951b | [
"MIT"
] | 1 | 2021-02-15T13:11:09.000Z | 2021-02-15T13:11:09.000Z | ssh/ssh_startup_config.py | xanderstevenson/swiss-army-conf | 0300675c5e8dc15510a7f4ddfa9997e37b34951b | [
"MIT"
] | null | null | null | ssh/ssh_startup_config.py | xanderstevenson/swiss-army-conf | 0300675c5e8dc15510a7f4ddfa9997e37b34951b | [
"MIT"
] | null | null | null |
from netmiko import ConnectHandler
from getpass import getpass
import re
from prettytable import PrettyTable
import os
import datetime
def ssh_startup_config(username, password):
start_config_device = ConnectHandler(device_type='cisco_ios', host='ios-xe-mgmt.cisco.com', port=8181, username=username, passwor... | 46.064516 | 144 | 0.559524 | 153 | 1,428 | 4.993464 | 0.45098 | 0.172775 | 0.117801 | 0.104712 | 0.155759 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003215 | 0.128852 | 1,428 | 31 | 145 | 46.064516 | 0.610932 | 0.032213 | 0 | 0.153846 | 0 | 0 | 0.381159 | 0.285507 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.115385 | 0.230769 | 0 | 0.269231 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f215a0ab7cd925d69869e1706f202f0984a3f32f | 1,705 | py | Python | RLBotPack/blind_and_deaf/hover.py | L0laapk3/RLBotPack | f54038475d2a57428f3784560755f96bfcf8015f | [
"MIT"
] | 13 | 2019-05-25T20:25:51.000Z | 2022-03-19T13:36:23.000Z | RLBotPack/blind_and_deaf/hover.py | L0laapk3/RLBotPack | f54038475d2a57428f3784560755f96bfcf8015f | [
"MIT"
] | 53 | 2019-06-07T13:31:59.000Z | 2022-03-28T22:53:47.000Z | RLBotPack/blind_and_deaf/hover.py | L0laapk3/RLBotPack | f54038475d2a57428f3784560755f96bfcf8015f | [
"MIT"
] | 78 | 2019-06-30T08:42:13.000Z | 2022-03-23T20:11:42.000Z | from rlutilities.simulation import Game, Input, Car
from rlutilities.linear_algebra import vec3, normalize, look_at, norm
from rlutilities.mechanics import AerialTurn
class Hover:
"""
PD controller for hovering in the air.
This was also used in the Airshow :)
"""
P = 2.8
D = 3.0
... | 32.788462 | 108 | 0.593548 | 228 | 1,705 | 4.342105 | 0.403509 | 0.056566 | 0.045455 | 0.024242 | 0.040404 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031463 | 0.310264 | 1,705 | 51 | 109 | 33.431373 | 0.810374 | 0.180645 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.0625 | false | 0 | 0.09375 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f2177a134fa760f0dbe60662a31c492c261cceb2 | 465 | py | Python | py/benchmark.py | easycoder/EasyCoder | b9a1add42b01dd98059045aac64fda8abc7b5de5 | [
"Apache-2.0"
] | 2 | 2021-08-15T06:05:25.000Z | 2021-08-20T18:03:24.000Z | py/benchmark.py | easycoder/EasyCoder | b9a1add42b01dd98059045aac64fda8abc7b5de5 | [
"Apache-2.0"
] | 1 | 2021-02-28T20:46:36.000Z | 2021-02-28T20:46:36.000Z | py/benchmark.py | easycoder/EasyCoder | b9a1add42b01dd98059045aac64fda8abc7b5de5 | [
"Apache-2.0"
] | null | null | null | import sys
from ec_program import Program
from ec_core import Core
from ec_autogui import Autogui
class EasyCoder:
def __init__(self):
self.version = 1
domainMap = {}
domainMap['core'] = Core
# domainMap['autogui'] = Autogui
scriptName = '/home/graham/Dropbox/Code/VisualStudio/EasyCoder/easycoder.github.io/py... | 20.217391 | 101 | 0.729032 | 61 | 465 | 5.311475 | 0.57377 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002519 | 0.146237 | 465 | 23 | 102 | 20.217391 | 0.813602 | 0.064516 | 0 | 0 | 0 | 0.0625 | 0.225806 | 0.195853 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f21899863a7b8f0b92f3fb74a0b79896d4da2822 | 534 | py | Python | devices/migrations/0005_auto_20171026_1835.py | svelle/Lagerregal | d0340d2fa5bbb8dfc090c23a772f46f769064ea1 | [
"BSD-3-Clause"
] | null | null | null | devices/migrations/0005_auto_20171026_1835.py | svelle/Lagerregal | d0340d2fa5bbb8dfc090c23a772f46f769064ea1 | [
"BSD-3-Clause"
] | null | null | null | devices/migrations/0005_auto_20171026_1835.py | svelle/Lagerregal | d0340d2fa5bbb8dfc090c23a772f46f769064ea1 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-26 23:35
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('devices', '0004_auto_20160429_1044'),
]
operations = [
migrations.AlterModelOptions... | 26.7 | 165 | 0.634831 | 56 | 534 | 5.839286 | 0.75 | 0.073395 | 0.116208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0.217228 | 534 | 19 | 166 | 28.105263 | 0.703349 | 0.127341 | 0 | 0 | 1 | 0 | 0.300216 | 0.049676 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f219680af43e6697d3cfda8ef11309891e983e6f | 11,538 | py | Python | server/sandbox/sandbox/partner/migrations/0001_initial.py | MaximBrewer/sebe | 4b94b2c782d018b6fa3a130fa30173386cc9bfdd | [
"0BSD"
] | 8 | 2016-06-18T01:40:26.000Z | 2021-02-08T04:08:58.000Z | server/sandbox/sandbox/partner/migrations/0001_initial.py | MaximBrewer/sebe | 4b94b2c782d018b6fa3a130fa30173386cc9bfdd | [
"0BSD"
] | 16 | 2018-05-04T13:00:07.000Z | 2021-05-27T14:54:09.000Z | server/sandbox/sandbox/partner/migrations/0001_initial.py | MaximBrewer/sebe | 4b94b2c782d018b6fa3a130fa30173386cc9bfdd | [
"0BSD"
] | 3 | 2016-12-19T11:30:47.000Z | 2019-10-27T20:30:15.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import oscar.models.fields.autoslugfield
import oscar.models.fields
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
("catalogue", "0001_initial"),
("a... | 34.035398 | 88 | 0.346507 | 672 | 11,538 | 5.75744 | 0.230655 | 0.125097 | 0.046524 | 0.055828 | 0.425174 | 0.398553 | 0.354097 | 0.281468 | 0.169294 | 0.169294 | 0 | 0.012154 | 0.565003 | 11,538 | 338 | 89 | 34.136095 | 0.758717 | 0.00182 | 0 | 0.545181 | 0 | 0 | 0.116457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.01506 | 0 | 0.024096 | 0 | 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 |
f21cb9df46d14c9ebe720c2b3c3de34dede01b0a | 963 | py | Python | container_env/__init__.py | LKummer/container-env | d7e67b3a72079791fbe62d3acb96238631dccd66 | [
"MIT"
] | null | null | null | container_env/__init__.py | LKummer/container-env | d7e67b3a72079791fbe62d3acb96238631dccd66 | [
"MIT"
] | null | null | null | container_env/__init__.py | LKummer/container-env | d7e67b3a72079791fbe62d3acb96238631dccd66 | [
"MIT"
] | null | null | null | """Container environment variable utilities
"""
from os import getenv
__version__ = "0.1.0"
def get_environment(variable, default=None, encoding="utf-8"):
"""Get value of an environment variable.
Returns the value of an environment variable if it exists.
If it does not exist and a {variable}_FILE varia... | 32.1 | 78 | 0.668744 | 130 | 963 | 4.892308 | 0.446154 | 0.149371 | 0.028302 | 0.062893 | 0.08805 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.248183 | 963 | 29 | 79 | 33.206897 | 0.872928 | 0.629283 | 0 | 0 | 0 | 0 | 0.087838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f2234c6ff78521904023b135ef16f2c63f61891f | 11,786 | py | Python | cloudmesh_client/cloud/iaas/CloudProviderBase.py | izelarabm/client | d257de3b5ded6714b7cb52765b4b7fd0bffecd0c | [
"Apache-2.0"
] | 3 | 2016-07-16T20:35:41.000Z | 2017-03-27T23:31:27.000Z | cloudmesh_client/cloud/iaas/CloudProviderBase.py | izelarabm/client | d257de3b5ded6714b7cb52765b4b7fd0bffecd0c | [
"Apache-2.0"
] | 259 | 2015-06-18T19:19:14.000Z | 2021-09-23T23:22:30.000Z | cloudmesh_client/cloud/iaas/CloudProviderBase.py | izelarabm/client | d257de3b5ded6714b7cb52765b4b7fd0bffecd0c | [
"Apache-2.0"
] | 19 | 2015-12-09T05:55:13.000Z | 2018-12-02T08:08:43.000Z | # from cloudmesh_client.hostlist import Parameter
import inspect
# from abc import ABCMeta
from cloudmesh_client.common.Printer import Printer
from cloudmesh_client.shell.console import Console
# noinspection PyBroadException,PyUnreachableCode,PyUnusedLocal
class CloudProviderBase(object):
# __metaclass__ = A... | 26.970252 | 99 | 0.496267 | 1,154 | 11,786 | 5.021664 | 0.164645 | 0.062123 | 0.062123 | 0.048318 | 0.521311 | 0.50975 | 0.500777 | 0.500777 | 0.489387 | 0.489387 | 0 | 0.005548 | 0.357713 | 11,786 | 436 | 100 | 27.03211 | 0.759974 | 0.215425 | 0 | 0.414013 | 0 | 0 | 0.092144 | 0 | 0 | 0 | 0 | 0.006881 | 0 | 1 | 0.203822 | false | 0.006369 | 0.025478 | 0 | 0.426752 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1eea14e8e4192f3a90245efde6040bdb1b441aa4 | 2,938 | py | Python | src/game/objects/props.py | GersonFeDutra/purple_garden | a194e5350970bb28b57e315a6eb39a8918c70aea | [
"MIT"
] | null | null | null | src/game/objects/props.py | GersonFeDutra/purple_garden | a194e5350970bb28b57e315a6eb39a8918c70aea | [
"MIT"
] | null | null | null | src/game/objects/props.py | GersonFeDutra/purple_garden | a194e5350970bb28b57e315a6eb39a8918c70aea | [
"MIT"
] | null | null | null | from ..utils import animation_slice
from ..consts import PhysicsLayers
from src.core.nodes import *
def make_sprite(spritesheet: Surface, spritesheet_data: dict[str, list[dict]], color: Color, name='Sprite') -> Sprite:
atlas: AtlasPage = AtlasPage()
sprite: Sprite = Sprite(atlas=atlas, name=name)
animatio... | 35.39759 | 118 | 0.634445 | 345 | 2,938 | 5.188406 | 0.269565 | 0.058659 | 0.058101 | 0.055307 | 0.278771 | 0.278771 | 0.263687 | 0.147486 | 0.12067 | 0.073743 | 0 | 0.016334 | 0.24983 | 2,938 | 82 | 119 | 35.829268 | 0.795826 | 0.025868 | 0 | 0.035714 | 0 | 0 | 0.02381 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.107143 | false | 0 | 0.053571 | 0 | 0.339286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1eead1c55fbf72b7bd49f2c318e03854e570caa3 | 4,575 | py | Python | unit_test.py | ksaper/CloudShell_LDAP_Integration | 3ee19b4bfef2925c50554fe07bf5451098d3f36a | [
"Apache-2.0"
] | null | null | null | unit_test.py | ksaper/CloudShell_LDAP_Integration | 3ee19b4bfef2925c50554fe07bf5451098d3f36a | [
"Apache-2.0"
] | null | null | null | unit_test.py | ksaper/CloudShell_LDAP_Integration | 3ee19b4bfef2925c50554fe07bf5451098d3f36a | [
"Apache-2.0"
] | null | null | null | from ldap_user_mgmt import ldapimport
test_runner = ldapimport()
error_log = []
t_user = 'unit_test_user'
user_created = 0
# Get user list from CloudShell
try:
master_list = test_runner.load_cloudshell_users()
print 'CloudShell User List'
print master_list
except:
error_log.append('Fail... | 33.394161 | 105 | 0.605902 | 563 | 4,575 | 4.719361 | 0.181172 | 0.097855 | 0.073767 | 0.090327 | 0.444486 | 0.394053 | 0.316522 | 0.293941 | 0.239368 | 0.239368 | 0 | 0.001281 | 0.317377 | 4,575 | 136 | 106 | 33.639706 | 0.849504 | 0.066011 | 0 | 0.386792 | 0 | 0 | 0.298326 | 0.01722 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028302 | 0.028302 | null | null | 0.264151 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1ef2449fd7acab9b82f4e0adc223286030bac406 | 17,515 | py | Python | src/oci/core/models/create_ip_sec_connection_details.py | ezequielramos/oci-python-sdk | cc4235cf217beaf9feed75760e9ce82610222762 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2020-09-10T22:09:45.000Z | 2021-12-24T17:00:07.000Z | src/oci/core/models/create_ip_sec_connection_details.py | ezequielramos/oci-python-sdk | cc4235cf217beaf9feed75760e9ce82610222762 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/core/models/create_ip_sec_connection_details.py | ezequielramos/oci-python-sdk | cc4235cf217beaf9feed75760e9ce82610222762 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 37.505353 | 245 | 0.677362 | 2,095 | 17,515 | 5.473031 | 0.124105 | 0.026688 | 0.148264 | 0.046049 | 0.776557 | 0.684894 | 0.596372 | 0.532444 | 0.510727 | 0.489098 | 0 | 0.005557 | 0.250014 | 17,515 | 466 | 246 | 37.585837 | 0.867311 | 0.637454 | 0 | 0.086957 | 0 | 0 | 0.137992 | 0.030762 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208696 | false | 0 | 0.017391 | 0.017391 | 0.373913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1ef53f32f9453ea05450c9b565c89e587c932d81 | 1,920 | py | Python | scriptabit/dates.py | luqiang21/scriptabit | 0d0cf71814e98954850891fa0887bdcffcf7147d | [
"Apache-2.0"
] | 9 | 2016-09-04T07:02:20.000Z | 2021-06-29T07:29:40.000Z | scriptabit/dates.py | luqiang21/scriptabit | 0d0cf71814e98954850891fa0887bdcffcf7147d | [
"Apache-2.0"
] | 35 | 2016-07-30T01:03:15.000Z | 2022-02-12T20:27:37.000Z | scriptabit/dates.py | luqiang21/scriptabit | 0d0cf71814e98954850891fa0887bdcffcf7147d | [
"Apache-2.0"
] | 8 | 2016-09-05T12:36:53.000Z | 2020-06-15T18:25:50.000Z | # -*- coding: utf-8 -*-
""" Datetime functions
"""
# Ensure backwards compatibility with Python 2
from __future__ import (
absolute_import,
division,
print_function,
unicode_literals)
from builtins import *
from datetime import datetime
import iso8601
import pytz
from tzlocal import get_localzone
def... | 30 | 80 | 0.693229 | 244 | 1,920 | 5.372951 | 0.430328 | 0.045767 | 0.042715 | 0.024409 | 0.433257 | 0.402746 | 0.402746 | 0.402746 | 0.402746 | 0.402746 | 0 | 0.026189 | 0.244271 | 1,920 | 63 | 81 | 30.47619 | 0.877326 | 0.580208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.318182 | 0 | 0.5 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4804555e12ac9b16a8a552342009a1a9b505699a | 1,234 | py | Python | backend/users/serializers.py | ShivanS93/green-your-impact | ef52a1526e22c7852a70e962902ee47966ef7258 | [
"MIT"
] | 2 | 2021-09-04T07:14:41.000Z | 2022-02-22T17:54:25.000Z | backend/users/serializers.py | ShivanS93/green-your-impact | ef52a1526e22c7852a70e962902ee47966ef7258 | [
"MIT"
] | 2 | 2021-09-04T04:50:11.000Z | 2021-09-19T09:40:33.000Z | backend/users/serializers.py | ShivanS93/green-your-impact | ef52a1526e22c7852a70e962902ee47966ef7258 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from events.models import Event
from .models import CustomUser
class UserEventSerializer(serializers.ModelSerializer):
url = serializers.HyperlinkedIdentityField(
view_name="events-detail", read_only=True
)
# TODO Need to some how filter the nested seriali... | 24.196078 | 73 | 0.612642 | 117 | 1,234 | 6.333333 | 0.512821 | 0.032389 | 0.048583 | 0.107962 | 0.251012 | 0.194332 | 0.194332 | 0 | 0 | 0 | 0 | 0 | 0.30389 | 1,234 | 50 | 74 | 24.68 | 0.862631 | 0.095624 | 0 | 0.277778 | 0 | 0 | 0.132075 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4805d8322d54971ac1e093ff18900bfb34644d77 | 2,745 | py | Python | Project1/server.py | TheLurkingCat/Network-Programming | 4a088e0d594abdc168360b9b688004c21bd52541 | [
"MIT"
] | null | null | null | Project1/server.py | TheLurkingCat/Network-Programming | 4a088e0d594abdc168360b9b688004c21bd52541 | [
"MIT"
] | null | null | null | Project1/server.py | TheLurkingCat/Network-Programming | 4a088e0d594abdc168360b9b688004c21bd52541 | [
"MIT"
] | null | null | null | import socket
import socketserver
import typing
import pymongo
from constant import WELCOME, backspace, fail, success, usage
from user import User
class Server(socketserver.StreamRequestHandler):
def __init__(self, *args):
self.function = {
"register": self.register,
"login": sel... | 30.5 | 64 | 0.561384 | 285 | 2,745 | 5.340351 | 0.319298 | 0.076873 | 0.042707 | 0.033509 | 0.21682 | 0.136662 | 0.136662 | 0.086728 | 0.086728 | 0.086728 | 0 | 0.002672 | 0.318397 | 2,745 | 89 | 65 | 30.842697 | 0.810796 | 0 | 0 | 0.12987 | 0 | 0 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116883 | false | 0.051948 | 0.077922 | 0 | 0.220779 | 0.025974 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
480732e74cc3f5ccc17cd382d2caa4a0595fcf0a | 177 | py | Python | boj/17283_IAmGroot.py | CoodingPenguin/algorithm-c-sharp | d30985f79b450e876eba6eae732a629cbe55accf | [
"MIT"
] | 1 | 2021-08-05T11:02:59.000Z | 2021-08-05T11:02:59.000Z | boj/17283_IAmGroot.py | CoodingPenguin/problem-solving | d30985f79b450e876eba6eae732a629cbe55accf | [
"MIT"
] | null | null | null | boj/17283_IAmGroot.py | CoodingPenguin/problem-solving | d30985f79b450e876eba6eae732a629cbe55accf | [
"MIT"
] | null | null | null | l, r = int(input()), int(input()) / 100
count = 1
result = 0
while True:
l = int(l*r)
if l <= 5:
break
result += (2**count)*l
count += 1
print(result)
| 13.615385 | 39 | 0.497175 | 29 | 177 | 3.034483 | 0.551724 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066116 | 0.316384 | 177 | 12 | 40 | 14.75 | 0.661157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
480adb0a8ad8294b7d93423d2e326db7d56edb18 | 6,103 | py | Python | simprod-scripts/python/util/arguments.py | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | 1 | 2020-12-24T22:00:01.000Z | 2020-12-24T22:00:01.000Z | simprod-scripts/python/util/arguments.py | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | null | null | null | simprod-scripts/python/util/arguments.py | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | 3 | 2020-07-17T09:20:29.000Z | 2021-03-30T16:44:18.000Z | #!/usr/bin/env python
"""
Common argparse arguments and utility functions
"""
from os.path import expandvars
import json
# split up a comma-delimited string into list
def _comma_list(arg_list, type):
return [type(a) for a in arg_list.split(',')]
def int_comma_list(arg_list):
return _comma_list(arg_list, in... | 40.959732 | 103 | 0.591512 | 630 | 6,103 | 5.604762 | 0.225397 | 0.061172 | 0.115548 | 0.123761 | 0.312376 | 0.273294 | 0.256301 | 0.156896 | 0.108751 | 0.027188 | 0 | 0.003949 | 0.294609 | 6,103 | 148 | 104 | 41.236486 | 0.81626 | 0.021137 | 0 | 0.181818 | 0 | 0 | 0.250084 | 0.022994 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236364 | false | 0 | 0.018182 | 0.036364 | 0.290909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
48117e3e84c7b9bead342389f5c7149b3343c70c | 933 | py | Python | backend/core/migrations/0006_auto_20210828_0430.py | barbashovtd/kvant | a7d7656d29700f7b522df4a9b60aa9f17f3149fb | [
"MIT"
] | null | null | null | backend/core/migrations/0006_auto_20210828_0430.py | barbashovtd/kvant | a7d7656d29700f7b522df4a9b60aa9f17f3149fb | [
"MIT"
] | null | null | null | backend/core/migrations/0006_auto_20210828_0430.py | barbashovtd/kvant | a7d7656d29700f7b522df4a9b60aa9f17f3149fb | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-08-28 04:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0005_auto_20210828_0428'),
]
operations = [
migrations.RemoveField(
model_name='section',
name='teachers',
... | 29.15625 | 146 | 0.592712 | 91 | 933 | 5.934066 | 0.483516 | 0.101852 | 0.096296 | 0.111111 | 0.403704 | 0.2 | 0.2 | 0.2 | 0.2 | 0 | 0 | 0.046338 | 0.282958 | 933 | 31 | 147 | 30.096774 | 0.760837 | 0.048232 | 0 | 0.64 | 1 | 0 | 0.180587 | 0.025959 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.16 | 0 | 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 |
481c3cef7c71b18d91c2c9c4d960422824924ef6 | 599 | py | Python | scripts/testRobots.py | WorldViews/Spirals | 7efe2d145298a53c9d79db73b79428efff1e0908 | [
"MIT"
] | null | null | null | scripts/testRobots.py | WorldViews/Spirals | 7efe2d145298a53c9d79db73b79428efff1e0908 | [
"MIT"
] | 2 | 2021-02-08T20:23:17.000Z | 2021-04-30T20:42:00.000Z | scripts/testRobots.py | WorldViews/Spirals | 7efe2d145298a53c9d79db73b79428efff1e0908 | [
"MIT"
] | 2 | 2016-05-26T20:24:00.000Z | 2019-08-01T03:11:49.000Z |
import sys, time
from math import sin,cos
import WVPoster
SLEEP_TIME = 0.1
def run():
wvp = WVPoster.WVPoster("tours.paldeploy.com")
i = 0
while 1:
i += 1
x = 20+5*cos(i/10.0)
y = 15 + 10*sin(i/10.0)
obj = {'type': 'robot',
'id': 'pal_robot_beam1',
... | 20.655172 | 50 | 0.504174 | 77 | 599 | 3.753247 | 0.571429 | 0.093426 | 0.027682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051151 | 0.347245 | 599 | 28 | 51 | 21.392857 | 0.68798 | 0 | 0 | 0 | 0 | 0 | 0.187605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.136364 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
481f61d2d96dd40cb4838b33c7dcb994b0ea4a49 | 4,752 | py | Python | trojai/test/datagen/test_text_datagen_zero_len_seq.py | C0ldstudy/trojai | 10ac6c719f367a569a48b19e7ef18cf90df3a310 | [
"Apache-2.0"
] | 59 | 2019-07-11T02:33:38.000Z | 2022-02-02T01:51:29.000Z | trojai/test/datagen/test_text_datagen_zero_len_seq.py | C0ldstudy/trojai | 10ac6c719f367a569a48b19e7ef18cf90df3a310 | [
"Apache-2.0"
] | 4 | 2020-04-13T03:48:32.000Z | 2021-09-11T05:13:57.000Z | trojai/test/datagen/test_text_datagen_zero_len_seq.py | C0ldstudy/trojai | 10ac6c719f367a569a48b19e7ef18cf90df3a310 | [
"Apache-2.0"
] | 19 | 2019-09-17T21:09:06.000Z | 2022-03-31T17:55:18.000Z | import unittest
from trojai.datagen.text_entity import GenericTextEntity
"""
We notice that if a text sequence, after delimiting, has sequences of length 0, then
TorchText doesn't like it. Example of a file which works is in:
files/9139_8.txt.works
Example of a file which is broken is:
files/9139.8.txt.broken
This ... | 57.253012 | 135 | 0.668771 | 679 | 4,752 | 4.56701 | 0.346097 | 0.034827 | 0.03386 | 0.03386 | 0.543373 | 0.508223 | 0.508223 | 0.508223 | 0.479845 | 0.479845 | 0 | 0.017039 | 0.246633 | 4,752 | 82 | 136 | 57.95122 | 0.849162 | 0 | 0 | 0.102564 | 0 | 0.205128 | 0.548992 | 0.008687 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.051282 | 0 | 0.128205 | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
481f84adfabc3058b71911ed43c1b95aee1b2083 | 7,958 | py | Python | workflow/scripts/varscan2vcf.py | elsamah/ExomeSeq_wNorm | 2dea03fd58a444e40e88b8925430d1cf404135aa | [
"MIT"
] | null | null | null | workflow/scripts/varscan2vcf.py | elsamah/ExomeSeq_wNorm | 2dea03fd58a444e40e88b8925430d1cf404135aa | [
"MIT"
] | null | null | null | workflow/scripts/varscan2vcf.py | elsamah/ExomeSeq_wNorm | 2dea03fd58a444e40e88b8925430d1cf404135aa | [
"MIT"
] | 1 | 2022-02-02T15:26:41.000Z | 2022-02-02T15:26:41.000Z | '''
Takes output file generated by VarScan2 somatic programme and converts the formats.
from: https://github.com/student-t/Varscan2VCF/blob/master/vscan2vcf.py
'''
import argparse, math, re
parser = argparse.ArgumentParser(
description="Converts VarScan2 somatic vcf to native format and vice-versa.\nInput is auto... | 37.537736 | 357 | 0.608067 | 1,101 | 7,958 | 4.281562 | 0.226158 | 0.012728 | 0.018456 | 0.023759 | 0.20577 | 0.154646 | 0.119431 | 0.080399 | 0.067247 | 0.0507 | 0 | 0.036009 | 0.207841 | 7,958 | 211 | 358 | 37.71564 | 0.71177 | 0.06572 | 0 | 0.080537 | 1 | 0.020134 | 0.241033 | 0.179891 | 0.026846 | 0 | 0 | 0 | 0 | 1 | 0.040268 | false | 0.006711 | 0.006711 | 0 | 0.04698 | 0.053691 | 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 |
4821d997fc90a2d96bd189cd2c21858745f5ab3b | 806 | py | Python | 04_ExtractURLScreenshotTitleDesc.py | Shahid1993/Deployment_learning | 029aec21f5702f550affd0a2e9d8bbbb14b70e5c | [
"MIT"
] | null | null | null | 04_ExtractURLScreenshotTitleDesc.py | Shahid1993/Deployment_learning | 029aec21f5702f550affd0a2e9d8bbbb14b70e5c | [
"MIT"
] | null | null | null | 04_ExtractURLScreenshotTitleDesc.py | Shahid1993/Deployment_learning | 029aec21f5702f550affd0a2e9d8bbbb14b70e5c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import requests
from bs4 import BeautifulSoup
from selenium import webdriver
from pyvirtualdisplay import Display
# We use PyVirtualDisplay (a Python wrapper for Xvfb)
# to run headless WebDriver tests.
display = Display(visible=0, size=(800, 600))
display.start()
# URLs can be sh... | 21.783784 | 78 | 0.738213 | 118 | 806 | 4.983051 | 0.610169 | 0.020408 | 0.034014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019858 | 0.12531 | 806 | 36 | 79 | 22.388889 | 0.814184 | 0.222084 | 0 | 0 | 0 | 0 | 0.11129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4824d5040d796622ce77bc7b0d8e5b88bd484f58 | 11,009 | py | Python | src/tzer/context.py | Tzer-AnonBot/tzer | 07799222118f757bdcb6a14654a6addda2dcf55c | [
"Apache-2.0"
] | 47 | 2021-12-16T19:48:49.000Z | 2022-03-24T03:14:14.000Z | src/tzer/context.py | Tzer-AnonBot/tzer | 07799222118f757bdcb6a14654a6addda2dcf55c | [
"Apache-2.0"
] | null | null | null | src/tzer/context.py | Tzer-AnonBot/tzer | 07799222118f757bdcb6a14654a6addda2dcf55c | [
"Apache-2.0"
] | 4 | 2021-10-16T20:36:58.000Z | 2022-01-25T04:27:49.000Z | from typing import Dict, List
from dataclasses import dataclass, field
import tvm
from tvm import relay
import pickle
import random
import numpy as np
import random
from copy import deepcopy
from .tvmpass import PassDependenceGraph, PassNode
# TODO: Add parameters.
# TODO: Add more passes.
_RELAY_FUNCTION_HARD_PASSE... | 37.962069 | 149 | 0.601871 | 1,332 | 11,009 | 4.728979 | 0.220721 | 0.062232 | 0.02429 | 0.032862 | 0.152564 | 0.07271 | 0.059692 | 0.040959 | 0.040959 | 0.011748 | 0 | 0.005149 | 0.294305 | 11,009 | 289 | 150 | 38.093426 | 0.805638 | 0.133618 | 0 | 0.084507 | 0 | 0 | 0.026557 | 0 | 0 | 0 | 0 | 0.00692 | 0.032864 | 1 | 0.070423 | false | 0.098592 | 0.046948 | 0 | 0.230047 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
482c15fe535a164dfdde11c1dfe98e3221ad10f7 | 2,859 | py | Python | test/test_catalog.py | jmorton-usgs/sat-stac | 40e60f225ac3ed9d89b45fe564c8c5f33fdee7e8 | [
"MIT"
] | 61 | 2018-12-10T17:36:23.000Z | 2022-02-10T09:12:02.000Z | test/test_catalog.py | jmorton-usgs/sat-stac | 40e60f225ac3ed9d89b45fe564c8c5f33fdee7e8 | [
"MIT"
] | 31 | 2018-11-14T01:30:19.000Z | 2022-02-21T14:44:29.000Z | test/test_catalog.py | jmorton-usgs/sat-stac | 40e60f225ac3ed9d89b45fe564c8c5f33fdee7e8 | [
"MIT"
] | 24 | 2019-01-06T17:08:52.000Z | 2021-12-16T08:41:26.000Z | import json
import os
import unittest
import shutil
from satstac import __version__, Catalog, STACError, Item
testpath = os.path.dirname(__file__)
class Test(unittest.TestCase):
path = os.path.join(testpath, 'test-catalog')
@classmethod
def tearDownClass(cls):
""" Remove test files """
... | 31.417582 | 96 | 0.614201 | 378 | 2,859 | 4.534392 | 0.243386 | 0.044924 | 0.04084 | 0.052509 | 0.283547 | 0.212369 | 0.212369 | 0.07818 | 0 | 0 | 0 | 0.010609 | 0.241693 | 2,859 | 90 | 97 | 31.766667 | 0.779982 | 0.035677 | 0 | 0.151515 | 0 | 0 | 0.10509 | 0.013182 | 0 | 0 | 0 | 0 | 0.242424 | 1 | 0.212121 | false | 0 | 0.075758 | 0 | 0.348485 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
482f23dc17004567e1f1018b8e14c3dd811800d7 | 1,413 | py | Python | hms/migrations/0001_initial.py | kasparov-creat/hms-api | 7cf7da5da59a8bebfd4629fd65ac159ab19319ec | [
"MIT"
] | null | null | null | hms/migrations/0001_initial.py | kasparov-creat/hms-api | 7cf7da5da59a8bebfd4629fd65ac159ab19319ec | [
"MIT"
] | null | null | null | hms/migrations/0001_initial.py | kasparov-creat/hms-api | 7cf7da5da59a8bebfd4629fd65ac159ab19319ec | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-08 17:04
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... | 47.1 | 390 | 0.664544 | 145 | 1,413 | 6.358621 | 0.558621 | 0.02603 | 0.030369 | 0.047722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020282 | 0.197452 | 1,413 | 29 | 391 | 48.724138 | 0.792769 | 0.031847 | 0 | 0 | 1 | 0 | 0.263543 | 0.077599 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
48341de3011736c00d341881fa61ee3d72c3850b | 3,305 | py | Python | blog/migrations/0001_initial.py | Asko-Dev/artinii_blog | 8fadfb5de13b31024b6aa83783f6da208714143c | [
"MIT"
] | null | null | null | blog/migrations/0001_initial.py | Asko-Dev/artinii_blog | 8fadfb5de13b31024b6aa83783f6da208714143c | [
"MIT"
] | null | null | null | blog/migrations/0001_initial.py | Asko-Dev/artinii_blog | 8fadfb5de13b31024b6aa83783f6da208714143c | [
"MIT"
] | null | null | null | # Generated by Django 2.1 on 2020-11-28 00:58
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import multiselectfield.db.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.s... | 60.090909 | 255 | 0.606657 | 345 | 3,305 | 5.689855 | 0.307246 | 0.11462 | 0.154865 | 0.122262 | 0.496179 | 0.386144 | 0.351503 | 0.351503 | 0.198166 | 0.124809 | 0 | 0.02543 | 0.226626 | 3,305 | 54 | 256 | 61.203704 | 0.742567 | 0.013011 | 0 | 0 | 1 | 0 | 0.132515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.106383 | 0 | 0.191489 | 0 | 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 |
48359912ff771425321d6aa6f1cf346fcd4e65df | 7,044 | py | Python | pysnmp/Juniper-E2-Registry.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/Juniper-E2-Registry.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/Juniper-E2-Registry.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Juniper-E2-Registry (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-E2-Registry
# Produced by pysmi-0.3.4 at Mon Apr 29 19:51:41 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default... | 91.480519 | 1,146 | 0.759796 | 853 | 7,044 | 6.271981 | 0.169988 | 0.011963 | 0.017383 | 0.02243 | 0.264673 | 0.219626 | 0.219626 | 0.219626 | 0.219626 | 0.219626 | 0 | 0.149528 | 0.097104 | 7,044 | 76 | 1,147 | 92.684211 | 0.691667 | 0.047132 | 0 | 0 | 0 | 0 | 0.111443 | 0.006564 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.101449 | 0 | 0.101449 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4837cf7ea6707c20b3173bd2ea59b2ba3cd0b79d | 793 | py | Python | app/__init__.py | ruiwu1990/fire_education | 51f4806ed406f6fc7f69816f55aa9f4b10c99db3 | [
"BSD-3-Clause"
] | null | null | null | app/__init__.py | ruiwu1990/fire_education | 51f4806ed406f6fc7f69816f55aa9f4b10c99db3 | [
"BSD-3-Clause"
] | null | null | null | app/__init__.py | ruiwu1990/fire_education | 51f4806ed406f6fc7f69816f55aa9f4b10c99db3 | [
"BSD-3-Clause"
] | null | null | null | """
VW Platform Application Package Constructor
"""
from flask import Flask
from flask_cors import CORS
from flask_mongoengine import MongoEngine
from config import config
db = MongoEngine()
# enable cross-origin resource sharing for the REST API
cors = CORS(resources={r'/api/*': {'origins': '*'}})
# enable cross... | 22.027778 | 55 | 0.728878 | 110 | 793 | 5.072727 | 0.318182 | 0.048387 | 0.053763 | 0.089606 | 0.261649 | 0.261649 | 0.261649 | 0.261649 | 0.261649 | 0.261649 | 0 | 0 | 0.165195 | 793 | 35 | 56 | 22.657143 | 0.8429 | 0.191677 | 0 | 0.111111 | 0 | 0 | 0.044304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.333333 | 0 | 0.444444 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
48424188e06e7a419d37da6c4d4baea1eee28276 | 1,316 | py | Python | objects/CSCG/base/forms/base/time_wise/BC/main.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | 1 | 2020-10-14T12:48:35.000Z | 2020-10-14T12:48:35.000Z | objects/CSCG/base/forms/base/time_wise/BC/main.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | null | null | null | objects/CSCG/base/forms/base/time_wise/BC/main.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | null | null | null | from screws.freeze.base import FrozenOnly
from objects.CSCG.base.forms.base.time_wise.BC.do import CSCG_FTWBC_DO
class CSCG_Form_TimeWise_BC(FrozenOnly):
"""Note that the TW.BC of a form will not be saved!!!!.
"""
def __init__(self, tw):
self._tw_ = tw
self._f_ = tw._f_
self._ndim... | 25.307692 | 83 | 0.604863 | 176 | 1,316 | 4.102273 | 0.352273 | 0.066482 | 0.041551 | 0.038781 | 0.141274 | 0.088643 | 0.088643 | 0.088643 | 0 | 0 | 0 | 0 | 0.294073 | 1,316 | 52 | 84 | 25.307692 | 0.77718 | 0.196049 | 0 | 0.225806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.064516 | 0.032258 | 0.419355 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
484567b8670cb4b389945106c1a7d64512db75c1 | 229 | py | Python | setup.py | kunchamharsha/audiotranscriptionservice | 03ee9e02ca3294fa86c9236b7013880311cc7f40 | [
"BSD-3-Clause"
] | null | null | null | setup.py | kunchamharsha/audiotranscriptionservice | 03ee9e02ca3294fa86c9236b7013880311cc7f40 | [
"BSD-3-Clause"
] | null | null | null | setup.py | kunchamharsha/audiotranscriptionservice | 03ee9e02ca3294fa86c9236b7013880311cc7f40 | [
"BSD-3-Clause"
] | null | null | null | import os
array=[
'flask',
'flask-admin',
'flask-login',
'enum',
'requests',
'python-dateutil',
'sqlalchemy',
'python-dotenv',
'moviepy',
'pydub',
'speechrecognition'
]
for package in array:
os.system('pip install '+package)
| 12.052632 | 34 | 0.68559 | 27 | 229 | 5.814815 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113537 | 229 | 18 | 35 | 12.722222 | 0.773399 | 0 | 0 | 0 | 0 | 0 | 0.515284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4845bdd634f906d54cb4717c7c9cdae0e78862c7 | 4,179 | py | Python | napkin/gen_plantuml.py | scottx611x/napkin | 318363364abea483173813d5212772ee9a641fe8 | [
"MIT"
] | null | null | null | napkin/gen_plantuml.py | scottx611x/napkin | 318363364abea483173813d5212772ee9a641fe8 | [
"MIT"
] | null | null | null | napkin/gen_plantuml.py | scottx611x/napkin | 318363364abea483173813d5212772ee9a641fe8 | [
"MIT"
] | null | null | null | """
PlanUML format sequence diagram generation
"""
import re
import os
from . import sd_action
from . import util
def _output_participants(sd_context):
"""
Generate a string containing participants in order of the occurrence.
"""
output = []
for o in sd_context._objects.values():
stereoty... | 33.97561 | 79 | 0.543431 | 457 | 4,179 | 4.761488 | 0.225383 | 0.104779 | 0.057904 | 0.077206 | 0.350643 | 0.28079 | 0.178309 | 0.149816 | 0.149816 | 0.115809 | 0 | 0.00036 | 0.335966 | 4,179 | 122 | 80 | 34.254098 | 0.783784 | 0.045944 | 0 | 0.208791 | 1 | 0 | 0.100785 | 0.006837 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032967 | false | 0.010989 | 0.043956 | 0 | 0.10989 | 0 | 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 |
48506e1cecc8b184cf371042107afc744f1a9950 | 613 | py | Python | test/layers/operations/test_abs.py | ridgei/onnx2keras | 7050d3025ec756a5f2c03d1d5e5dd3d07a47d54a | [
"MIT"
] | null | null | null | test/layers/operations/test_abs.py | ridgei/onnx2keras | 7050d3025ec756a5f2c03d1d5e5dd3d07a47d54a | [
"MIT"
] | 2 | 2020-12-24T03:19:08.000Z | 2021-01-05T05:02:11.000Z | test/layers/operations/test_abs.py | ridgei/onnx2keras | 7050d3025ec756a5f2c03d1d5e5dd3d07a47d54a | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import numpy as np
import pytest
from test.utils import convert_and_test
class LayerAbs(nn.Module):
"""
Test for nn.layers based types
"""
def __init__(self):
super(LayerAbs, self).__init__()
def forward(self, x):
x = torch.abs(x)
return... | 21.892857 | 93 | 0.67863 | 88 | 613 | 4.5 | 0.511364 | 0.141414 | 0.070707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020576 | 0.207178 | 613 | 27 | 94 | 22.703704 | 0.794239 | 0.04894 | 0 | 0 | 0 | 0 | 0.026455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.294118 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4853595d57590185ce27084ccfdc31f9fc0fedcc | 1,749 | py | Python | tournament_fixtures.py | guillermogfer/tournament-results | 12fc5bc6bf2958415325b1d8fe07a2f5099547d7 | [
"MIT"
] | null | null | null | tournament_fixtures.py | guillermogfer/tournament-results | 12fc5bc6bf2958415325b1d8fe07a2f5099547d7 | [
"MIT"
] | null | null | null | tournament_fixtures.py | guillermogfer/tournament-results | 12fc5bc6bf2958415325b1d8fe07a2f5099547d7 | [
"MIT"
] | null | null | null | import random
from tournament import connect
from tournament import reportMatch
from tournament_test import testDelete
the_players = [
(1, 'Jeff'),
(2, 'Adarsh'),
(3, 'Amanda'),
(4, 'Eduardo'),
(5, 'Philip'),
(6, 'Jee')
]
def registerPlayerUpdated(player_id, name):
"""Add a player to t... | 26.907692 | 76 | 0.644368 | 226 | 1,749 | 4.747788 | 0.367257 | 0.055918 | 0.037279 | 0.035415 | 0.055918 | 0.055918 | 0.055918 | 0 | 0 | 0 | 0 | 0.023592 | 0.248714 | 1,749 | 65 | 77 | 26.907692 | 0.792998 | 0 | 0 | 0 | 0 | 0 | 0.079784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
485586bb47e2700e810068611cea6593483bd3bf | 12,307 | py | Python | qgis_leeds/pyScripts/test.py | RohitDhankar/dcGIS | 835c66edd319372b590c0c7b92450694ff8920cd | [
"MIT"
] | null | null | null | qgis_leeds/pyScripts/test.py | RohitDhankar/dcGIS | 835c66edd319372b590c0c7b92450694ff8920cd | [
"MIT"
] | null | null | null | qgis_leeds/pyScripts/test.py | RohitDhankar/dcGIS | 835c66edd319372b590c0c7b92450694ff8920cd | [
"MIT"
] | null | null | null | #Create lines between houses within 15km of each turbine
#To check if line crosses any building height data
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qgis.core import *
from qgis.gui import *
from qgis.analysis import *
from doViewshedHack import *
import processing
import timeit
import os
def run_scri... | 30.312808 | 209 | 0.717153 | 1,406 | 12,307 | 6.263158 | 0.280939 | 0.008517 | 0.028617 | 0.03543 | 0.326482 | 0.28685 | 0.233931 | 0.180104 | 0.168521 | 0.124233 | 0 | 0.014635 | 0.139433 | 12,307 | 405 | 210 | 30.387654 | 0.816826 | 0.618916 | 0 | 0.103448 | 0 | 0.022989 | 0.2215 | 0.157186 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.103448 | null | null | 0.126437 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
485738c003f44eea89c692e512e80d492ef22ccb | 374 | py | Python | modules/yats/check/urls.py | PrathameshBolade/yats | 93bb5271255120b7131a3bc416e3386428a4d3ec | [
"MIT"
] | 54 | 2015-01-26T07:56:59.000Z | 2022-03-10T18:48:05.000Z | modules/yats/check/urls.py | PrathameshBolade/yats | 93bb5271255120b7131a3bc416e3386428a4d3ec | [
"MIT"
] | 8 | 2015-03-15T18:33:39.000Z | 2021-12-21T14:23:11.000Z | modules/yats/check/urls.py | PrathameshBolade/yats | 93bb5271255120b7131a3bc416e3386428a4d3ec | [
"MIT"
] | 23 | 2015-02-19T16:55:35.000Z | 2022-03-11T19:49:06.000Z | # -*- coding: utf-8 -*-
from django.conf.urls import url
from . views import raiseerror, raise404, notfound
urlpatterns = [
url(r'^check/raise/500/$',
view=raiseerror,
name='check_raise'),
url(r'^check/raise/404/$',
view=raise404,
name='check_raise'),
url(r'^check/404/$',
... | 20.777778 | 50 | 0.582888 | 45 | 374 | 4.777778 | 0.466667 | 0.232558 | 0.125581 | 0.130233 | 0.213953 | 0.213953 | 0 | 0 | 0 | 0 | 0 | 0.056738 | 0.245989 | 374 | 17 | 51 | 22 | 0.705674 | 0.05615 | 0 | 0.230769 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 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 |
4864aeb2a568c2aa0c8f73a20304bc78504c51a1 | 1,171 | py | Python | school/migrations/0024_grading.py | ntwaliandy/school-system | 93b81f62a21ae477ac524a99d2fbb6f16ef2efae | [
"MIT"
] | null | null | null | school/migrations/0024_grading.py | ntwaliandy/school-system | 93b81f62a21ae477ac524a99d2fbb6f16ef2efae | [
"MIT"
] | null | null | null | school/migrations/0024_grading.py | ntwaliandy/school-system | 93b81f62a21ae477ac524a99d2fbb6f16ef2efae | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2021-10-30 09:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('school', '0023_auto_20211024_1308'),
]
operations = [
migrations.CreateModel(
name='Grading',
fields=[
... | 40.37931 | 114 | 0.595218 | 129 | 1,171 | 5.224806 | 0.488372 | 0.111276 | 0.097923 | 0.066766 | 0.458457 | 0.381306 | 0.332344 | 0.332344 | 0.145401 | 0.145401 | 0 | 0.05421 | 0.259607 | 1,171 | 28 | 115 | 41.821429 | 0.723183 | 0.038429 | 0 | 0 | 1 | 0 | 0.118327 | 0.020463 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 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 |
486bacaee0b11d5405b8c7585ee132cf245d124e | 1,903 | py | Python | corsheaders/middleware.py | britco/django-cors-headers | 826b767a56532dc8609e2fcabbc1820a5a4194ad | [
"MIT"
] | null | null | null | corsheaders/middleware.py | britco/django-cors-headers | 826b767a56532dc8609e2fcabbc1820a5a4194ad | [
"MIT"
] | null | null | null | corsheaders/middleware.py | britco/django-cors-headers | 826b767a56532dc8609e2fcabbc1820a5a4194ad | [
"MIT"
] | null | null | null | from django import http
from urlparse import urlparse
from corsheaders import defaults as settings
class CorsMiddleware(object):
def process_request(self, request):
'''
If CORS preflight header, then create an empty body response (200 OK) and return it
Django won't b... | 39.645833 | 106 | 0.622701 | 207 | 1,903 | 5.574879 | 0.381643 | 0.103986 | 0.109185 | 0.090121 | 0.091854 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002242 | 0.2969 | 1,903 | 47 | 107 | 40.489362 | 0.860239 | 0.155018 | 0 | 0.115385 | 0 | 0 | 0.159244 | 0.134953 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.076923 | false | 0 | 0.115385 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
486c6487384fbe9ea51cb59e16a03a36fa0e4317 | 3,954 | py | Python | cmframework/src/cmframework/utils/cmpluginloader.py | akraino-edge-stack/ta-config-manager | 8a3f88d0dbf6afdb0130b9d35e563f8a54d15d44 | [
"Apache-2.0"
] | null | null | null | cmframework/src/cmframework/utils/cmpluginloader.py | akraino-edge-stack/ta-config-manager | 8a3f88d0dbf6afdb0130b9d35e563f8a54d15d44 | [
"Apache-2.0"
] | null | null | null | cmframework/src/cmframework/utils/cmpluginloader.py | akraino-edge-stack/ta-config-manager | 8a3f88d0dbf6afdb0130b9d35e563f8a54d15d44 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Nokia
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softwar... | 35.621622 | 92 | 0.611027 | 457 | 3,954 | 5.172867 | 0.36105 | 0.050761 | 0.033841 | 0.013536 | 0.103215 | 0.047377 | 0.047377 | 0.047377 | 0.047377 | 0.047377 | 0 | 0.003988 | 0.302479 | 3,954 | 110 | 93 | 35.945455 | 0.853154 | 0.183359 | 0 | 0.075949 | 0 | 0 | 0.100592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012658 | 0.063291 | null | null | 0.025316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
48708dc85d0c14d35897b537e57e40b3a01785ad | 478 | py | Python | Dataset/Leetcode/valid/26/476.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/26/476.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/26/476.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, nums: List[int]) -> int:
flag = 0
index = 0
sum_inx = 0
leng = len(nums)
while flag + sum_inx < leng:
while flag+index+1<leng and nums[flag]==nums[flag + index + 1]:
index = index + 1
nums[flag:leng - sum_... | 29.875 | 81 | 0.48954 | 63 | 478 | 3.619048 | 0.301587 | 0.157895 | 0.087719 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028269 | 0.40795 | 478 | 15 | 82 | 31.866667 | 0.777385 | 0 | 0 | 0.142857 | 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 |
487649e7755c6a88c44b68ace7829df13e84a932 | 14,648 | py | Python | tests/test_encryption.py | IABTechLab/uid2-client-python | 17a64c7a615b2912be3c312f4608022badd8a5d4 | [
"Apache-2.0"
] | 1 | 2021-07-29T14:38:52.000Z | 2021-07-29T14:38:52.000Z | tests/test_encryption.py | IABTechLab/uid2-client-python | 17a64c7a615b2912be3c312f4608022badd8a5d4 | [
"Apache-2.0"
] | null | null | null | tests/test_encryption.py | IABTechLab/uid2-client-python | 17a64c7a615b2912be3c312f4608022badd8a5d4 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021 The Trade Desk, Inc
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following discl... | 40.802228 | 186 | 0.688695 | 1,914 | 14,648 | 4.99373 | 0.149425 | 0.032957 | 0.05022 | 0.080561 | 0.734045 | 0.701297 | 0.66991 | 0.636639 | 0.629107 | 0.593325 | 0 | 0.049281 | 0.207605 | 14,648 | 358 | 187 | 40.916201 | 0.774188 | 0.087384 | 0 | 0.597561 | 0 | 0 | 0.019258 | 0.003297 | 0 | 0 | 0 | 0 | 0.154472 | 1 | 0.126016 | false | 0 | 0.028455 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
487797f69409b560d7ee06e5715777da6c5e93d2 | 886 | py | Python | project/home/forms.py | Kirza/flask-learning | 9e672c82fdd8b3d8d4f4d0d3695608648c13f305 | [
"MIT"
] | null | null | null | project/home/forms.py | Kirza/flask-learning | 9e672c82fdd8b3d8d4f4d0d3695608648c13f305 | [
"MIT"
] | null | null | null | project/home/forms.py | Kirza/flask-learning | 9e672c82fdd8b3d8d4f4d0d3695608648c13f305 | [
"MIT"
] | null | null | null | from flask_wtf import Form
from wtforms import TextField, TextAreaField, FileField
from wtforms.validators import DataRequired, Length
class MessageForm(Form):
title = TextField('Title', validators=[DataRequired()])
description = TextField(
'Description', validators=[DataRequired(), Length(max=140)])
... | 42.190476 | 120 | 0.734763 | 99 | 886 | 6.525253 | 0.424242 | 0.083591 | 0.130031 | 0.143963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022193 | 0.13544 | 886 | 20 | 121 | 44.3 | 0.821149 | 0 | 0 | 0.125 | 0 | 0 | 0.138826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.9375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
487d725c0ce2728d0ce8db8ae82f6d03b04482b2 | 538 | py | Python | Code/birthday2.py | ahumeijun/PersonalLearning | 3041eb9448f07d08ebbfe60e27fc72138ae58cb2 | [
"MIT"
] | null | null | null | Code/birthday2.py | ahumeijun/PersonalLearning | 3041eb9448f07d08ebbfe60e27fc72138ae58cb2 | [
"MIT"
] | null | null | null | Code/birthday2.py | ahumeijun/PersonalLearning | 3041eb9448f07d08ebbfe60e27fc72138ae58cb2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#!/usr/bin/env python
import math
def A(m ,n):
ret = math.factorial(n) / math.factorial(n-m)
return ret
def C(m, n):
ret = A(m, n) / math.factorial(m)
return ret
def cell(i, n, count):
ret = (-1 ** i) * C(i, count) * ((1 - float(i) / count) ** n)
print ret
return ... | 20.692308 | 65 | 0.535316 | 85 | 538 | 3.294118 | 0.4 | 0.021429 | 0.128571 | 0.092857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030075 | 0.258364 | 538 | 26 | 66 | 20.692308 | 0.671679 | 0.076208 | 0 | 0.166667 | 0 | 0 | 0.050505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4881684c8362d8f55e4a2fbe4360f9146cb20dc3 | 742 | py | Python | mrivis/__init__.py | raamana/mrivis | fe6523d7f0c6be375503e6c6b160fff804b8eec2 | [
"MIT"
] | 20 | 2017-12-06T03:57:20.000Z | 2021-06-18T13:47:52.000Z | mrivis/__init__.py | raamana/mrivis | fe6523d7f0c6be375503e6c6b160fff804b8eec2 | [
"MIT"
] | 10 | 2018-04-11T20:17:44.000Z | 2021-02-11T16:52:12.000Z | mrivis/__init__.py | raamana/mrivis | fe6523d7f0c6be375503e6c6b160fff804b8eec2 | [
"MIT"
] | 3 | 2017-12-05T21:45:32.000Z | 2021-02-16T23:54:57.000Z | # -*- coding: utf-8 -*-
"""Top-level package for mrivis."""
__author__ = """Pradeep Reddy Raamana"""
__email__ = 'raamana@gmail.com'
__all__ = ['checkerboard', 'color_mix', 'voxelwise_diff', 'collage', 'aseg_on_mri',
'Collage', 'SlicePicker', 'color_maps']
from sys import version_info
if version_info.maj... | 32.26087 | 93 | 0.735849 | 90 | 742 | 5.711111 | 0.544444 | 0.077821 | 0.077821 | 0.11284 | 0.190661 | 0.190661 | 0.190661 | 0.190661 | 0.190661 | 0 | 0 | 0.004754 | 0.149596 | 742 | 22 | 94 | 33.727273 | 0.809826 | 0.114555 | 0 | 0 | 0 | 0 | 0.233846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4888ee15f516ea7fae2ed3952967c844fedbcc4d | 3,361 | py | Python | day11.py | walkcs/AoC | 8e621d7522f67537a1aff9acc4329adfa0026865 | [
"MIT"
] | null | null | null | day11.py | walkcs/AoC | 8e621d7522f67537a1aff9acc4329adfa0026865 | [
"MIT"
] | null | null | null | day11.py | walkcs/AoC | 8e621d7522f67537a1aff9acc4329adfa0026865 | [
"MIT"
] | null | null | null | from os import urandom
import numpy as np
s1 = '''
11111
19991
19191
19991
11111'''
sampleIn = '''
5483143223
2745854711
5264556173
6141336146
6357385478
4167524645
2176841721
6882881134
4846848554
5283751526'''
realIn = '''
4438624262
6263251864
2618812434
2134264565
1815131247
2612457325
8585767584
7217134556
2825... | 23.669014 | 64 | 0.495388 | 401 | 3,361 | 4.134663 | 0.226933 | 0.027141 | 0.043426 | 0.086852 | 0.705066 | 0.693607 | 0.693607 | 0.668275 | 0.668275 | 0.668275 | 0 | 0.153051 | 0.395418 | 3,361 | 142 | 65 | 23.669014 | 0.662894 | 0 | 0 | 0.618644 | 0 | 0 | 0.074361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.016949 | 0 | 0.050847 | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f95b20af796ce85b0f9f85efa61b2857ba7f7f6 | 445 | py | Python | backend/src/flights/urls.py | Rezwanul-Haque/django_angular_boilerplate | 2075e7bd68cd7dc786b0f813569dea3995b10285 | [
"MIT"
] | null | null | null | backend/src/flights/urls.py | Rezwanul-Haque/django_angular_boilerplate | 2075e7bd68cd7dc786b0f813569dea3995b10285 | [
"MIT"
] | 16 | 2019-12-13T19:04:54.000Z | 2022-03-02T06:35:42.000Z | backend/src/flights/urls.py | Rezwanul-Haque/django_angular_boilerplate | 2075e7bd68cd7dc786b0f813569dea3995b10285 | [
"MIT"
] | null | null | null | from django.urls import path, include
from django.conf.urls import url
from rest_framework import routers
from . import views
app_name = "flights"
# router = routers.DefaultRouter()
# router.register(r'users', views.UserViewSet)
urlpatterns = [
# path("", views.index, name='index')
# path("", include(router.... | 27.8125 | 63 | 0.703371 | 58 | 445 | 5.327586 | 0.482759 | 0.064725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139326 | 445 | 16 | 64 | 27.8125 | 0.806789 | 0.323596 | 0 | 0 | 0 | 0 | 0.131313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6f99b6b0ac5626002a2b2f1100c026e1bfe31bc5 | 1,819 | py | Python | kaggle_alaska_2/logger.py | ternaus/kaggle_alaska_2 | 1dd491d0103fb7c9b636d99e66b3a0971043bc3f | [
"MIT"
] | 8 | 2020-06-01T10:42:40.000Z | 2022-02-17T08:42:49.000Z | kaggle_alaska_2/logger.py | ternaus/kaggle_alaska_2 | 1dd491d0103fb7c9b636d99e66b3a0971043bc3f | [
"MIT"
] | null | null | null | kaggle_alaska_2/logger.py | ternaus/kaggle_alaska_2 | 1dd491d0103fb7c9b636d99e66b3a0971043bc3f | [
"MIT"
] | 2 | 2020-06-08T22:34:38.000Z | 2022-02-24T03:15:59.000Z | """
Logger, that has an output consistent with DVC plots
https://dvc.org/doc/command-reference/plots
Ex:
epoch, AUC, loss
34, 0.91935, 0.0317345
35, 0.91913, 0.0317829
36, 0.92256, 0.0304632
37, 0.92302, 0.0299015
"""
import csv
from pytorch_lightning.loggers import LightningLoggerBase
from pyt... | 26.362319 | 81 | 0.638263 | 243 | 1,819 | 4.559671 | 0.345679 | 0.075812 | 0.064982 | 0.072202 | 0.288809 | 0.208484 | 0.175993 | 0.175993 | 0.146209 | 0.074007 | 0 | 0.047584 | 0.260583 | 1,819 | 68 | 82 | 26.75 | 0.776208 | 0.127543 | 0 | 0.219512 | 0 | 0 | 0.022799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146341 | false | 0.073171 | 0.097561 | 0.02439 | 0.292683 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6fa138ac9fd974893971c39f54eaaa10bbb0b6ee | 2,660 | py | Python | Primers/src/core.py | NicolasBizzozzero/Online-Judges | e0b492d2eb301cc46691cd9809ea54e8c13cbed0 | [
"Unlicense"
] | null | null | null | Primers/src/core.py | NicolasBizzozzero/Online-Judges | e0b492d2eb301cc46691cd9809ea54e8c13cbed0 | [
"Unlicense"
] | null | null | null | Primers/src/core.py | NicolasBizzozzero/Online-Judges | e0b492d2eb301cc46691cd9809ea54e8c13cbed0 | [
"Unlicense"
] | null | null | null | # TODO: Faire un test QUI MARCHE sur une des annales du hashcode
# TODO: Coder une solution algo genetique.
# TODO: Voir si splitter Problem en une seconde classe (Solver?) (qui gère parsing + output) est pas plus pratique. C'est surement plus lisible.
import glob
import os
import collections
import ntpath
from typin... | 33.670886 | 144 | 0.685338 | 352 | 2,660 | 4.917614 | 0.340909 | 0.064702 | 0.060081 | 0.029463 | 0.092432 | 0.055459 | 0 | 0 | 0 | 0 | 0 | 0.00048 | 0.216917 | 2,660 | 78 | 145 | 34.102564 | 0.830533 | 0.180827 | 0 | 0.061224 | 0 | 0 | 0.025534 | 0 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.142857 | false | 0 | 0.102041 | 0 | 0.285714 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6fa41fe12c81f90c7ee4ff176c55aae7866f9c06 | 8,130 | py | Python | pincer/exceptions.py | shivamdurgbuns/Pincer | aa27d6d65023ea62a2d0c09c1e9bc0fe4763e0c3 | [
"MIT"
] | null | null | null | pincer/exceptions.py | shivamdurgbuns/Pincer | aa27d6d65023ea62a2d0c09c1e9bc0fe4763e0c3 | [
"MIT"
] | null | null | null | pincer/exceptions.py | shivamdurgbuns/Pincer | aa27d6d65023ea62a2d0c09c1e9bc0fe4763e0c3 | [
"MIT"
] | null | null | null | # Copyright Pincer 2021-Present
# Full MIT License can be found in `LICENSE` at the project root.
from typing import Optional
class PincerError(Exception):
"""Base exception class for all Pincer errors"""
class InvalidPayload(PincerError):
"""Exception which gets thrown if an invalid payload has been receiv... | 25.974441 | 79 | 0.695695 | 983 | 8,130 | 5.706002 | 0.316378 | 0.035657 | 0.028882 | 0.029952 | 0.163309 | 0.087716 | 0.051524 | 0.031022 | 0.014976 | 0 | 0 | 0.005305 | 0.211685 | 8,130 | 312 | 80 | 26.057692 | 0.86987 | 0.535301 | 0 | 0 | 0 | 0 | 0.048473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068493 | false | 0 | 0.013699 | 0 | 0.794521 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6fab9a5e4852bf016020a7759efae2a6e68925d6 | 3,992 | py | Python | monkq/assets/order.py | zsluedem/MonkTrader | 760942a59919b34c876467bc0eb4afb30689cbc1 | [
"MIT"
] | 2 | 2018-11-17T06:39:36.000Z | 2019-01-18T13:14:15.000Z | monkq/assets/order.py | zsluedem/MonkTrader | 760942a59919b34c876467bc0eb4afb30689cbc1 | [
"MIT"
] | 37 | 2018-11-04T15:05:04.000Z | 2019-03-09T09:26:30.000Z | monkq/assets/order.py | zsluedem/MonkTrader | 760942a59919b34c876467bc0eb4afb30689cbc1 | [
"MIT"
] | null | null | null | #
# MIT License
#
# Copyright (c) 2018 WillQ
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publ... | 30.945736 | 109 | 0.721693 | 496 | 3,992 | 5.739919 | 0.344758 | 0.044257 | 0.044257 | 0.015806 | 0.244819 | 0.171409 | 0.171409 | 0.117316 | 0.092027 | 0.092027 | 0 | 0.00469 | 0.198898 | 3,992 | 128 | 110 | 31.1875 | 0.885553 | 0.273297 | 0 | 0.311688 | 0 | 0 | 0.029913 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 1 | 0.103896 | false | 0.012987 | 0.116883 | 0.077922 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6fac85af28902ad344eac46a75a7ff1ce63ba191 | 1,293 | py | Python | tapi/tapi_app/tapi_app.py | rvilalta/OFC2019_SC472 | c0bcbd05bb6c90eb9d8ab5abdc10b04d65a8a5d3 | [
"Apache-2.0"
] | 2 | 2018-11-28T15:03:08.000Z | 2019-02-04T15:19:58.000Z | tapi/tapi_app/tapi_app.py | rvilalta/OFC2019_SC472 | c0bcbd05bb6c90eb9d8ab5abdc10b04d65a8a5d3 | [
"Apache-2.0"
] | null | null | null | tapi/tapi_app/tapi_app.py | rvilalta/OFC2019_SC472 | c0bcbd05bb6c90eb9d8ab5abdc10b04d65a8a5d3 | [
"Apache-2.0"
] | 2 | 2021-09-28T15:31:03.000Z | 2021-11-16T17:53:59.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import requests
from requests.auth import HTTPBasicAuth
import json
import matplotlib.pyplot as plt
import networkx as nx
import random
IP = '127.0.0.1'
PORT = '8080'
def retrieveTopology(ip, port, user='', password=''):
print ("Reading network-topology")
topologies... | 29.386364 | 95 | 0.645012 | 170 | 1,293 | 4.758824 | 0.423529 | 0.039555 | 0.048208 | 0.044499 | 0.123609 | 0.071693 | 0.071693 | 0 | 0 | 0 | 0 | 0.023077 | 0.195669 | 1,293 | 43 | 96 | 30.069767 | 0.754808 | 0.029389 | 0 | 0 | 0 | 0 | 0.174781 | 0.051077 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0.060606 | 0.181818 | 0 | 0.272727 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6fad19984916aba47a4c2a59ab4aea566af0b6a6 | 1,049 | py | Python | django_datatables/includes.py | jonesim/django-datatables | 69bab121ab76b5e785099687d0dd9ae61b8f8e58 | [
"MIT"
] | 7 | 2020-12-04T16:16:16.000Z | 2022-01-23T19:29:32.000Z | django_datatables/includes.py | jonesim/django-datatables | 69bab121ab76b5e785099687d0dd9ae61b8f8e58 | [
"MIT"
] | null | null | null | django_datatables/includes.py | jonesim/django-datatables | 69bab121ab76b5e785099687d0dd9ae61b8f8e58 | [
"MIT"
] | 1 | 2020-12-04T16:16:22.000Z | 2020-12-04T16:16:22.000Z | from importlib.metadata import PackageNotFoundError
from ajax_helpers.html_include import SourceBase, pip_version
try:
version = pip_version('django-filtered-datatables')
except PackageNotFoundError:
version = 'local'
class DataTables(SourceBase):
cdn_path = 'cdn.datatables.net/v/dt/dt-1.10.18/b-1.5.6/b... | 26.225 | 92 | 0.714013 | 140 | 1,049 | 5.178571 | 0.414286 | 0.053793 | 0.070345 | 0.055172 | 0.091034 | 0.091034 | 0 | 0 | 0 | 0 | 0 | 0.029181 | 0.15062 | 1,049 | 39 | 93 | 26.897436 | 0.784512 | 0 | 0 | 0.111111 | 0 | 0.037037 | 0.326978 | 0.230696 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.740741 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6fb1b8e0af0721d93e6cf3eaa0ff72ac84b6b60f | 37,618 | py | Python | settings/electrum_words/russian.py | BitRubCoinprojects/BRCGUIWallet | bcc9953534dad2cdc7e288d92f8826fcf54fb694 | [
"BSD-3-Clause"
] | 49 | 2017-10-13T13:37:32.000Z | 2020-10-25T12:02:47.000Z | settings/electrum_words/russian.py | BitRubCoinprojects/BRCGUIWallet | bcc9953534dad2cdc7e288d92f8826fcf54fb694 | [
"BSD-3-Clause"
] | 46 | 2017-09-10T20:47:59.000Z | 2019-09-17T17:23:29.000Z | settings/electrum_words/russian.py | BitRubCoinprojects/BRCGUIWallet | bcc9953534dad2cdc7e288d92f8826fcf54fb694 | [
"BSD-3-Clause"
] | 57 | 2017-07-11T09:00:04.000Z | 2022-01-07T22:43:14.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Copyright (c) 2019, Sumokoin Project (www.sumokoin.org)
Portions Copyright (c) 2014-2018, The Monero Project
* Word list created by Monero contributor sammy007
'''
from settings.electrum_words.english import LanguageBase
class Russian(LanguageBase):
def __init__(self... | 22.895922 | 56 | 0.30504 | 3,304 | 37,618 | 3.469734 | 0.504237 | 0.001745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001036 | 0.563906 | 37,618 | 1,642 | 57 | 22.909866 | 0.697775 | 0.00529 | 0 | 0 | 0 | 0 | 0.255787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000613 | false | 0 | 0.000613 | 0 | 0.001838 | 0 | 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 |
6fb283118abfeec8c0b21af177b6f833e251ac0e | 314 | py | Python | src/app.py | felipeagger/task-scheduler-py | 804f7a3177afa53e3aa7fe89551ca92a75f882ee | [
"BSD-2-Clause"
] | 2 | 2020-10-25T23:38:28.000Z | 2020-10-28T02:56:08.000Z | src/app.py | felipeagger/task-scheduler-py | 804f7a3177afa53e3aa7fe89551ca92a75f882ee | [
"BSD-2-Clause"
] | null | null | null | src/app.py | felipeagger/task-scheduler-py | 804f7a3177afa53e3aa7fe89551ca92a75f882ee | [
"BSD-2-Clause"
] | 1 | 2020-12-10T16:02:35.000Z | 2020-12-10T16:02:35.000Z | from os import getenv
from gevent import monkey; monkey.patch_all()
from flask import Flask
from huey import RedisHuey
DEBUG = getenv('DEBUG', True)
app = Flask(__name__)
app.config.from_object(__name__)
huey = RedisHuey('task-scheduler', host=getenv('REDIS_HOST'), always_eager=DEBUG)
huey.immediate = False
| 20.933333 | 81 | 0.773885 | 45 | 314 | 5.133333 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121019 | 314 | 14 | 82 | 22.428571 | 0.836957 | 0 | 0 | 0 | 0 | 0 | 0.092357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6fbc6eed5d79a9d7af29dcb7fb966fa5d0ea26ea | 6,709 | py | Python | django_autoutils/model_utils.py | rezazeiny/django-autoutils | 268181cbe2e08b2ea042ec02e4145b5578218382 | [
"MIT"
] | null | null | null | django_autoutils/model_utils.py | rezazeiny/django-autoutils | 268181cbe2e08b2ea042ec02e4145b5578218382 | [
"MIT"
] | null | null | null | django_autoutils/model_utils.py | rezazeiny/django-autoutils | 268181cbe2e08b2ea042ec02e4145b5578218382 | [
"MIT"
] | null | null | null | """
All utils for model
"""
import hashlib
import logging
import os
import random
import string
from threading import Thread
from typing import Callable
from django.contrib.auth import get_user_model
from django.contrib.messages import add_message
from django.db import models, transaction, IntegrityError, Operatio... | 31.947619 | 119 | 0.59219 | 750 | 6,709 | 5.124 | 0.213333 | 0.031226 | 0.020297 | 0.02498 | 0.323185 | 0.218059 | 0.218059 | 0.200885 | 0.175904 | 0.175904 | 0 | 0.000657 | 0.319571 | 6,709 | 209 | 120 | 32.100478 | 0.841183 | 0.140856 | 0 | 0.162162 | 0 | 0 | 0.079631 | 0.013272 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153153 | false | 0.009009 | 0.135135 | 0.009009 | 0.522523 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6fc0b098916f743234fbedc2465a7407b71c38c6 | 243 | py | Python | strings/merge-the-tools.py | anishLearnsToCode/hackerrank-python | 7d707c07af051e7b00471ebe547effd7e1d6d9d9 | [
"MIT"
] | 2 | 2020-05-21T16:18:26.000Z | 2021-11-28T15:44:33.000Z | strings/merge-the-tools.py | anishLearnsToCode/hackerrank-python | 7d707c07af051e7b00471ebe547effd7e1d6d9d9 | [
"MIT"
] | null | null | null | strings/merge-the-tools.py | anishLearnsToCode/hackerrank-python | 7d707c07af051e7b00471ebe547effd7e1d6d9d9 | [
"MIT"
] | 2 | 2020-11-01T00:55:53.000Z | 2021-10-31T16:05:17.000Z | line, k = input(), int(input())
iterator = line.__iter__()
iterators = zip(*([iterator] * k))
for word in iterators:
d = dict()
result = ''.join([d.setdefault(letter, letter) for letter in word if letter not in d])
print(result)
| 24.3 | 90 | 0.63786 | 35 | 243 | 4.314286 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197531 | 243 | 9 | 91 | 27 | 0.774359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6fc545b5186aa5447ced6de65027e8777c469f4c | 705 | py | Python | app/Account.py | nakano16180/pingcrm-masonite | 04f97a9d52659b56f401a02a675fa671711b4d83 | [
"MIT"
] | 2 | 2021-03-12T21:39:37.000Z | 2021-08-30T04:42:17.000Z | app/Account.py | nakano16180/pingcrm-masonite | 04f97a9d52659b56f401a02a675fa671711b4d83 | [
"MIT"
] | 5 | 2020-09-24T19:25:20.000Z | 2021-06-28T21:50:33.000Z | app/Account.py | nakano16180/pingcrm-masonite | 04f97a9d52659b56f401a02a675fa671711b4d83 | [
"MIT"
] | null | null | null | """Account Model."""
from masoniteorm.relationships import has_many
from masoniteorm.models import Model
from masoniteorm.scopes import scope
class Account(Model):
"""Account Model."""
__fillable__ = ["name"]
@has_many('id', 'account_id')
def users(self):
from app.User import User
r... | 21.363636 | 50 | 0.662411 | 85 | 705 | 5.317647 | 0.329412 | 0.099558 | 0.097345 | 0.106195 | 0.139381 | 0.139381 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234043 | 705 | 32 | 51 | 22.03125 | 0.837037 | 0.041135 | 0 | 0.15 | 0 | 0 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0.05 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6fc8b59d68e8d9761b545baba153fcd28f55fcf8 | 766 | py | Python | setup.py | mharish2797/hac_img | 3133bc8a10771adc84227b7e6474ea2355a09e25 | [
"MIT"
] | null | null | null | setup.py | mharish2797/hac_img | 3133bc8a10771adc84227b7e6474ea2355a09e25 | [
"MIT"
] | null | null | null | setup.py | mharish2797/hac_img | 3133bc8a10771adc84227b7e6474ea2355a09e25 | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name='hac-img',
packages = ['hac-img'],
version='0.0.1',
license='MIT',
description='Hierarchical clustering algorithm for image clustering using Scikit-Image',
author = 'Harish Mohan', # Type in your name
author_email = 'mharish2797... | 45.058824 | 108 | 0.644909 | 97 | 766 | 5.030928 | 0.659794 | 0.04918 | 0.012295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023569 | 0.224543 | 766 | 17 | 109 | 45.058824 | 0.79798 | 0.206266 | 0 | 0 | 0 | 0.066667 | 0.436153 | 0.034826 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6fd0689bd6a6945511b1604a06f54e5aee1d008d | 592 | py | Python | Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/EXT/draw_range_elements.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/EXT/draw_range_elements.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/EXT/draw_range_elements.py | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | '''OpenGL extension EXT.draw_range_elements
This module customises the behaviour of the
OpenGL.raw.GL.EXT.draw_range_elements to provide a more
Python-friendly API
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions, wrapper
from OpenGL.GL import glget
import ctypes
from OpenGL... | 31.157895 | 82 | 0.798986 | 72 | 592 | 6.486111 | 0.569444 | 0.085653 | 0.077088 | 0.12848 | 0.132762 | 0.132762 | 0.132762 | 0 | 0 | 0 | 0 | 0 | 0.113176 | 592 | 18 | 83 | 32.888889 | 0.889524 | 0.320946 | 0 | 0 | 0 | 0 | 0.063613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6fd2d34f4cb162e389785227df5a4916fd3739ec | 1,638 | py | Python | kissim/tests/api/test_api_compare.py | volkamerlab/kissim | 35198a5efd4b651dd3952bf26ac5098fd1c4dfaa | [
"MIT"
] | 15 | 2020-06-23T14:46:07.000Z | 2022-02-03T04:23:56.000Z | kissim/tests/api/test_api_compare.py | volkamerlab/kissim | 35198a5efd4b651dd3952bf26ac5098fd1c4dfaa | [
"MIT"
] | 66 | 2020-11-05T11:45:21.000Z | 2021-12-15T12:11:20.000Z | kissim/tests/api/test_api_compare.py | volkamerlab/kissim | 35198a5efd4b651dd3952bf26ac5098fd1c4dfaa | [
"MIT"
] | 3 | 2021-02-27T12:56:27.000Z | 2022-02-03T04:23:57.000Z | """
Unit and regression test for the kissim.api.compare module.
"""
from pathlib import Path
import pytest
from kissim.api import encode, compare
from kissim.encoding import FingerprintGenerator
@pytest.mark.parametrize(
"output_path, feature_weights, n_cores",
[
(None, None, 1),
(None, Non... | 34.125 | 95 | 0.694139 | 227 | 1,638 | 4.740088 | 0.211454 | 0.104089 | 0.150558 | 0.193309 | 0.312268 | 0.276952 | 0.249071 | 0.163569 | 0.163569 | 0.057621 | 0 | 0.048595 | 0.195971 | 1,638 | 47 | 96 | 34.851064 | 0.768413 | 0.03602 | 0 | 0 | 0 | 0 | 0.122215 | 0.098027 | 0 | 0 | 0 | 0 | 0.15625 | 1 | 0.03125 | false | 0 | 0.125 | 0 | 0.15625 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6fd7594f6f867c98c30565124ab2c6d9447c0139 | 1,293 | py | Python | github-100-exercises/day17.py | vigneshmb/python_utils | 67837c0267930392422cf0d35f264812e73f83b0 | [
"MIT"
] | null | null | null | github-100-exercises/day17.py | vigneshmb/python_utils | 67837c0267930392422cf0d35f264812e73f83b0 | [
"MIT"
] | null | null | null | github-100-exercises/day17.py | vigneshmb/python_utils | 67837c0267930392422cf0d35f264812e73f83b0 | [
"MIT"
] | 1 | 2022-01-18T01:14:50.000Z | 2022-01-18T01:14:50.000Z | """
Please write assert statements to verify that every number in the list [2,4,6,8] is even.
data = [2,4,5,6]
for i in data:
assert i%2 == 0, "{} is not an even number".format(i)
"""
"""
Please write a program which accepts basic mathematic expression from console and print the evaluation result.
Example: If... | 17.712329 | 110 | 0.645785 | 206 | 1,293 | 4.043689 | 0.451456 | 0.039616 | 0.021609 | 0.05042 | 0.211285 | 0.211285 | 0.211285 | 0.115246 | 0.115246 | 0.115246 | 0 | 0.042531 | 0.254447 | 1,293 | 72 | 111 | 17.958333 | 0.821577 | 0.139211 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6fda754880836b21a6d0661237a1554b49e28088 | 392 | py | Python | pandera/koalas_accessor.py | matthiashuschle/pandera | c9a2be0e37c91d43dff93805b434a774d6d3b433 | [
"MIT"
] | 1 | 2021-02-05T14:48:13.000Z | 2021-02-05T14:48:13.000Z | pandera/koalas_accessor.py | matthiashuschle/pandera | c9a2be0e37c91d43dff93805b434a774d6d3b433 | [
"MIT"
] | 14 | 2020-09-11T03:06:25.000Z | 2020-12-17T21:03:13.000Z | pandera/koalas_accessor.py | matthiashuschle/pandera | c9a2be0e37c91d43dff93805b434a774d6d3b433 | [
"MIT"
] | null | null | null | """Register koalas accessor for pandera schema metadata."""
from databricks.koalas.extensions import (
register_dataframe_accessor,
register_series_accessor,
)
from pandera.pandas_accessor import (
PanderaDataFrameAccessor,
PanderaSeriesAccessor,
)
register_dataframe_accessor("pandera")(PanderaDataFr... | 26.133333 | 64 | 0.816327 | 35 | 392 | 8.885714 | 0.457143 | 0.109325 | 0.160772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 392 | 14 | 65 | 28 | 0.888571 | 0.135204 | 0 | 0 | 0 | 0 | 0.042042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6fdbc1a61a18b939b424ff4358e3e10ecb3351d2 | 733 | py | Python | packages/w3af/w3af/core/controllers/tests/pylint_plugins/ordereddict_fix.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | 3 | 2019-04-09T22:59:33.000Z | 2019-06-14T09:23:24.000Z | tools/w3af/w3af/core/controllers/tests/pylint_plugins/ordereddict_fix.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | tools/w3af/w3af/core/controllers/tests/pylint_plugins/ordereddict_fix.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | from astroid import MANAGER
from astroid import scoped_nodes
NEED_FIX = ('Headers', 'NonRepeatKeyValueContainer', 'KeyValueContainer',
'FormParameters')
FIX_MEMBERS = ('update', 'items', 'iteritems', 'keys', '__setitem__',
'setdefault', 'get')
def register(linter):
pass
def transform... | 27.148148 | 76 | 0.673943 | 89 | 733 | 5.41573 | 0.617978 | 0.068465 | 0.070539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22101 | 733 | 27 | 77 | 27.148148 | 0.844133 | 0.268759 | 0 | 0 | 0 | 0 | 0.220039 | 0.051081 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6fdcc45253678801b59dd7a1d44dbc2224039eed | 2,823 | py | Python | molly/url_shortener/views.py | mollyproject/mollyproject | 3247c6bac3f39ce8d275d19aa410b30c6284b8a7 | [
"Apache-2.0"
] | 7 | 2015-05-16T13:27:21.000Z | 2019-08-06T11:09:24.000Z | molly/url_shortener/views.py | mollyproject/mollyproject | 3247c6bac3f39ce8d275d19aa410b30c6284b8a7 | [
"Apache-2.0"
] | null | null | null | molly/url_shortener/views.py | mollyproject/mollyproject | 3247c6bac3f39ce8d275d19aa410b30c6284b8a7 | [
"Apache-2.0"
] | 4 | 2015-11-27T13:36:36.000Z | 2021-03-09T17:55:53.000Z | import random
import re
from datetime import timedelta
from django.http import Http404
from django.core.urlresolvers import resolve, reverse
from django.shortcuts import get_object_or_404
from django.utils.translation import ugettext as _
from molly.utils.views import BaseView
from molly.url_shortener import get_sho... | 34.012048 | 115 | 0.570315 | 293 | 2,823 | 5.296928 | 0.290102 | 0.092139 | 0.046392 | 0.05799 | 0.122423 | 0.095361 | 0.095361 | 0 | 0 | 0 | 0 | 0.014099 | 0.321644 | 2,823 | 82 | 116 | 34.426829 | 0.796345 | 0 | 0 | 0.205882 | 0 | 0 | 0.104499 | 0.008856 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.132353 | 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 |
6fde13461c28aff68218adafc01db3e38c9a1dad | 1,272 | py | Python | scripts/delete.py | ibenrodriguez/racker | 21b99f53cb3c3ae555f6ff41b679f6395f426e69 | [
"Apache-2.0"
] | 2 | 2015-02-15T01:12:19.000Z | 2021-11-24T14:17:44.000Z | scripts/delete.py | ibenrodriguez/racker | 21b99f53cb3c3ae555f6ff41b679f6395f426e69 | [
"Apache-2.0"
] | null | null | null | scripts/delete.py | ibenrodriguez/racker | 21b99f53cb3c3ae555f6ff41b679f6395f426e69 | [
"Apache-2.0"
] | null | null | null | from pysphere import *
from pysphere.resources import VimService_services as VI
# from pysphere.vi_task import *
# from pysphere.vi_server import *
#Connect to the server
s = VIServer()
s.connect("vi-ip-address", "vi-password", "vi-password")
"""
resource_pool = s.get_resource_pools()
print resource_pool
"""
vmlist... | 27.06383 | 74 | 0.724057 | 190 | 1,272 | 4.6 | 0.373684 | 0.045767 | 0.04119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165881 | 1,272 | 46 | 75 | 27.652174 | 0.823751 | 0.138365 | 0 | 0.071429 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.035714 | 0.071429 | null | null | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6fde92233a75bb5f74db375e8332e6693c526bf3 | 17,066 | py | Python | hamper_pokedex.py | magical/hamper-pokedex | d2231995dc77fa7363d4aad31b2d42af51c3a095 | [
"MIT"
] | null | null | null | hamper_pokedex.py | magical/hamper-pokedex | d2231995dc77fa7363d4aad31b2d42af51c3a095 | [
"MIT"
] | null | null | null | hamper_pokedex.py | magical/hamper-pokedex | d2231995dc77fa7363d4aad31b2d42af51c3a095 | [
"MIT"
] | null | null | null | # coding: utf-8
# Copyright 2015 Andrew Ekstedt
# NO WARRANTY. See LICENSE for details.
from collections import defaultdict
import urllib
from hamper import interfaces
import pokedex.db
import pokedex.db.tables as t
import pokedex.lookup
from sqlalchemy import sql
__all__ = ('Plugin',)
# TODO: Something more decla... | 38.09375 | 295 | 0.610043 | 2,377 | 17,066 | 4.315524 | 0.183424 | 0.003314 | 0.015208 | 0.018717 | 0.194287 | 0.112888 | 0.043868 | 0.035095 | 0.011113 | 0.011113 | 0 | 0.018985 | 0.256182 | 17,066 | 447 | 296 | 38.178971 | 0.783835 | 0.033986 | 0 | 0.062315 | 0 | 0.038576 | 0.219548 | 0.002969 | 0 | 0 | 0 | 0.004474 | 0.038576 | 0 | null | null | 0 | 0.029674 | 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 |
6fe3078a1a5f1ed74ac0cb6cb465b4bd3da33eb9 | 2,961 | py | Python | ws_client.py | rahulmr/aliceblue-python | efa2e7ddc6e62c50631a1eb689b6cbc2bb339e7b | [
"MIT"
] | 12 | 2020-03-24T17:43:16.000Z | 2022-03-06T06:06:11.000Z | ws_client.py | rahulmr/aliceblue-python | efa2e7ddc6e62c50631a1eb689b6cbc2bb339e7b | [
"MIT"
] | 1 | 2020-04-08T18:51:18.000Z | 2020-04-12T05:53:13.000Z | ws_client.py | aeron7/aliceblue-python | efa2e7ddc6e62c50631a1eb689b6cbc2bb339e7b | [
"MIT"
] | 12 | 2020-03-05T07:44:47.000Z | 2021-12-14T18:01:04.000Z | import websocket
import threading
import json
import time
from bytes_marketdata import CliMarketdataRes
def heartbeat_thread(clientSocket):
while clientSocket:
send_data = '{"a": "h", "v": [], "m": ""}'
try:
clientSocket.send(send_data)
except Exception as e:
... | 34.430233 | 120 | 0.665991 | 340 | 2,961 | 5.520588 | 0.332353 | 0.095898 | 0.023974 | 0.018114 | 0.027704 | 0.027704 | 0 | 0 | 0 | 0 | 0 | 0.006048 | 0.21817 | 2,961 | 85 | 121 | 34.835294 | 0.804752 | 0.072273 | 0 | 0 | 0 | 0 | 0.199781 | 0.030679 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.078125 | 0 | 0.1875 | 0.421875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6fefe920702e6bf14c8bd2c5931e9716aed0d636 | 720 | py | Python | 2021_18.py | flyingOwl/advent_of_code_2021 | a2da6760248653ae8a27c3870afa04cc82f6ae2c | [
"MIT"
] | null | null | null | 2021_18.py | flyingOwl/advent_of_code_2021 | a2da6760248653ae8a27c3870afa04cc82f6ae2c | [
"MIT"
] | null | null | null | 2021_18.py | flyingOwl/advent_of_code_2021 | a2da6760248653ae8a27c3870afa04cc82f6ae2c | [
"MIT"
] | null | null | null | import sys
E=enumerate
N=[[[int(v),l[:i].count('[')-l[:i].count(']')] for i,v in E(l) if v.isdigit()] for l in open(sys.argv[1]).read().splitlines()]
V=lambda N:N.index(max(N,key=lambda v:v[1]))
def r(N):
i=V(N);v,d=N[i]
if d>4:
if i>0:N[i-1][0]+=v
if i+2<len(N):N[i+2][0]+=N[i+1][0]
N[i:i+2]=[[0,d-1]];return(N,... | 27.692308 | 126 | 0.523611 | 212 | 720 | 1.778302 | 0.198113 | 0.05305 | 0.084881 | 0.03183 | 0.145889 | 0.037135 | 0.037135 | 0 | 0 | 0 | 0 | 0.05873 | 0.125 | 720 | 25 | 127 | 28.8 | 0.539683 | 0 | 0 | 0 | 0 | 0 | 0.036111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.041667 | 0 | 0.25 | 0.083333 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6ff54e76d334df366a5f252649315ad6f488780d | 2,158 | py | Python | src/spider.py | yuebanyishenqiu/Spider | b94c9ba17867bfdd98c6b2da7208fae88c7e513e | [
"MIT"
] | null | null | null | src/spider.py | yuebanyishenqiu/Spider | b94c9ba17867bfdd98c6b2da7208fae88c7e513e | [
"MIT"
] | null | null | null | src/spider.py | yuebanyishenqiu/Spider | b94c9ba17867bfdd98c6b2da7208fae88c7e513e | [
"MIT"
] | null | null | null | #Author: yuebanyishenqiu
#E-mail:thisispwj@outlook.com
# -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding("utf8")
import requests
from bs4 import BeautifulSoup
import codecs
import time
def get_request_kwargs(timeout,useragent):
#add some parameters
return{
'headers':{'Us... | 30.394366 | 137 | 0.57507 | 280 | 2,158 | 4.339286 | 0.478571 | 0.026337 | 0.026337 | 0.03786 | 0.088889 | 0.036214 | 0 | 0 | 0 | 0 | 0 | 0.028178 | 0.292864 | 2,158 | 70 | 138 | 30.828571 | 0.768021 | 0.073679 | 0 | 0.030769 | 0 | 0.015385 | 0.142931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.030769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6ff76de1a7f5b26a8e06c677c28e7c468eaa4415 | 1,864 | py | Python | ansible/modules/windows/win_webpicmd.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | ansible/modules/windows/win_webpicmd.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | ansible/modules/windows/win_webpicmd.py | EnjoyLifeFund/py36pkgs | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2020-02-13T14:24:57.000Z | 2020-02-13T14:24:57.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2015, Peter Mounce <public@neverrunwithscissors.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version... | 35.169811 | 187 | 0.726395 | 265 | 1,864 | 5.071698 | 0.550943 | 0.018601 | 0.059524 | 0.042411 | 0.154762 | 0.135417 | 0.09375 | 0.09375 | 0.09375 | 0 | 0 | 0.009229 | 0.186159 | 1,864 | 52 | 188 | 35.846154 | 0.87673 | 0.434549 | 0 | 0.153846 | 0 | 0.076923 | 0.850097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b5007da5f1f10738f74fe08688a1a94991e935af | 340 | py | Python | zd2.py | danilusikov0913/2lr | 158a223609eee8bdb77886538a70958f3ce73205 | [
"MIT"
] | null | null | null | zd2.py | danilusikov0913/2lr | 158a223609eee8bdb77886538a70958f3ce73205 | [
"MIT"
] | null | null | null | zd2.py | danilusikov0913/2lr | 158a223609eee8bdb77886538a70958f3ce73205 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Определение общих символов в двух строках, введенных с клавиатуры.
if __name__ == "__main__":
print('Введитите 1 строку')
s1 = set(input())
print('Введитите 2 строку')
s2 = set(input())
# Нахождение пересечений
a = s1.intersection(s2)
print(a... | 24.285714 | 68 | 0.632353 | 44 | 340 | 4.704545 | 0.75 | 0.135266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030075 | 0.217647 | 340 | 13 | 69 | 26.153846 | 0.74812 | 0.391176 | 0 | 0 | 0 | 0 | 0.216749 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
b5008388f1a69a78710f733c7cb949c92a5986e4 | 1,179 | py | Python | backend/appengine/routes/students/home.py | SamaraCardoso27/eMakeup | 02c3099aca85b5f54214c3a32590e80eb61621e7 | [
"MIT"
] | null | null | null | backend/appengine/routes/students/home.py | SamaraCardoso27/eMakeup | 02c3099aca85b5f54214c3a32590e80eb61621e7 | [
"MIT"
] | null | null | null | backend/appengine/routes/students/home.py | SamaraCardoso27/eMakeup | 02c3099aca85b5f54214c3a32590e80eb61621e7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from student.student_model import Course, Student
from config.template_middleware import TemplateResponse
from gaecookie.decorator import no_csrf
from gaepermission.decorator import login_not_required
from routes.students.new import salvar... | 25.630435 | 86 | 0.768448 | 159 | 1,179 | 5.421384 | 0.402516 | 0.097448 | 0.055684 | 0.032483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000989 | 0.142494 | 1,179 | 45 | 87 | 26.2 | 0.851632 | 0.017812 | 0 | 0.071429 | 0 | 0 | 0.071924 | 0.023397 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 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 |
b502d2f89cc118235d0a56a471714bbbee2b8469 | 1,076 | py | Python | symbolic_calculation.py | Sarrasor/KinematicsCalculation | 4e05acfe0052b90da43e3074bbecb4bb89104301 | [
"MIT"
] | 25 | 2021-01-09T09:40:26.000Z | 2022-03-27T12:35:37.000Z | symbolic_calculation.py | Sarrasor/KinematicsCalculation | 4e05acfe0052b90da43e3074bbecb4bb89104301 | [
"MIT"
] | 1 | 2021-07-15T15:52:05.000Z | 2021-07-16T08:47:56.000Z | symbolic_calculation.py | Sarrasor/KinematicsCalculation | 4e05acfe0052b90da43e3074bbecb4bb89104301 | [
"MIT"
] | 10 | 2021-02-26T05:21:23.000Z | 2021-12-23T16:54:51.000Z | """
Symbolic transformation usage example
"""
from utils.robo_math import SymbolicTransformation as st
def main():
T_ik = st("TxTyTzRzRyRx", ['x', 'y', 'z', 'alpha', 'theta', 'gamma'])
T_0 = st("Tz", ['l_0']).inv() * T_ik * st("Tx", ["l_6"]).inv()
T_012 = st("RzTzTxRyTxRyRyiTx",
["q_0", "l... | 24.454545 | 73 | 0.568773 | 170 | 1,076 | 3.335294 | 0.305882 | 0.049383 | 0.049383 | 0.121693 | 0.162258 | 0.162258 | 0 | 0 | 0 | 0 | 0 | 0.06933 | 0.209108 | 1,076 | 43 | 74 | 25.023256 | 0.596945 | 0.034387 | 0 | 0 | 0 | 0 | 0.383123 | 0.13967 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.035714 | 0 | 0.071429 | 0.607143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b505e04da15acb83ec3d6fb465df2c0e941341e8 | 623 | py | Python | nineml/abstraction/randomdistribution/visitors/validators/types.py | INCF/nineml-python | 062a2ac8a9be97cee4dad02938e3858e051cf07c | [
"BSD-3-Clause"
] | 6 | 2017-12-26T14:15:28.000Z | 2021-10-10T22:45:51.000Z | nineml/abstraction/randomdistribution/visitors/validators/types.py | INCF/nineml-python | 062a2ac8a9be97cee4dad02938e3858e051cf07c | [
"BSD-3-Clause"
] | 25 | 2017-07-05T03:53:53.000Z | 2021-01-19T14:14:05.000Z | nineml/abstraction/randomdistribution/visitors/validators/types.py | INCF/nineml-python | 062a2ac8a9be97cee4dad02938e3858e051cf07c | [
"BSD-3-Clause"
] | 5 | 2017-12-26T14:15:12.000Z | 2021-10-10T22:45:39.000Z | """
docstring needed
:copyright: Copyright 2010-2017 by the NineML Python team, see AUTHORS.
:license: BSD-3, see LICENSE for details.
"""
from ....componentclass.visitors.validators.types import (
TypesComponentValidator)
from ..base import BaseRandomDistributionVisitor
from ...base import RandomDistribution
c... | 32.789474 | 101 | 0.752809 | 51 | 623 | 9.176471 | 0.72549 | 0.034188 | 0.059829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01938 | 0.17175 | 623 | 18 | 102 | 34.611111 | 0.887597 | 0.256822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b510934cb898afdb147cc2111b21fa0321377a41 | 567 | py | Python | versus/migrations/0008_auto_20201022_2136.py | amin-da71/Benbb96 | 0c9e37425d0665e403ba6fecf0c4b17669c29ada | [
"MIT"
] | null | null | null | versus/migrations/0008_auto_20201022_2136.py | amin-da71/Benbb96 | 0c9e37425d0665e403ba6fecf0c4b17669c29ada | [
"MIT"
] | 13 | 2021-02-13T20:15:18.000Z | 2022-03-11T23:57:07.000Z | versus/migrations/0008_auto_20201022_2136.py | amin-da71/Benbb96 | 0c9e37425d0665e403ba6fecf0c4b17669c29ada | [
"MIT"
] | null | null | null | # Generated by Django 2.2.13 on 2020-10-22 19:36
import autoslug.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('versus', '0007_auto_20200516_1849'),
]
operations = [
migrations.AlterModelOptions(
name='joueur',
o... | 23.625 | 98 | 0.594356 | 56 | 567 | 5.928571 | 0.75 | 0.084337 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 0.280423 | 567 | 23 | 99 | 24.652174 | 0.735294 | 0.081129 | 0 | 0.117647 | 1 | 0 | 0.11368 | 0.044316 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b51311f3740f3275b1c53766a1b69d6236a397a6 | 633 | py | Python | core/eeadm/test/test_recall.py | brockpalen/ltfsee-globus | 5cb322ef09cd4f883951de96e5cb242f876ccd9c | [
"MIT"
] | null | null | null | core/eeadm/test/test_recall.py | brockpalen/ltfsee-globus | 5cb322ef09cd4f883951de96e5cb242f876ccd9c | [
"MIT"
] | null | null | null | core/eeadm/test/test_recall.py | brockpalen/ltfsee-globus | 5cb322ef09cd4f883951de96e5cb242f876ccd9c | [
"MIT"
] | null | null | null | """Cases for eeadm/file_state.py."""
from unittest.mock import MagicMock, patch
import pytest # noqa
import core
from core.eeadm.recall import EEADM_Recall
@patch("sh.eeadm", create=True)
def test_EEADM_Recall(monkeypatch):
"""Call EEADM_Recall it should return right away and find command in background."""
... | 31.65 | 87 | 0.731438 | 93 | 633 | 4.817204 | 0.494624 | 0.171875 | 0.100446 | 0.053571 | 0.15625 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0.003656 | 0.135861 | 633 | 19 | 88 | 33.315789 | 0.815356 | 0.274882 | 0 | 0 | 0 | 0 | 0.131991 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b51326f701ccd6a949760fe277f4f79837078b3b | 980 | py | Python | example.py | shonteag/canonical_args_frontend | baeedda80f9799191c51cca9d0b6523471132295 | [
"MIT"
] | null | null | null | example.py | shonteag/canonical_args_frontend | baeedda80f9799191c51cca9d0b6523471132295 | [
"MIT"
] | null | null | null | example.py | shonteag/canonical_args_frontend | baeedda80f9799191c51cca9d0b6523471132295 | [
"MIT"
] | null | null | null | from canonical_args.frontend.html import generate
if __name__ == "__main__":
stuff = {
"args": [
{
"name": "arg1",
"type": "one([int, float, str, dict])",
"values": {
"int": ">=0",
"float": "<=0",
"str": ["A", "B", "C"],
"dict": {
"subkey1": {
"type": "one([int, float... | 16.610169 | 49 | 0.389796 | 89 | 980 | 4.179775 | 0.438202 | 0.107527 | 0.080645 | 0.120968 | 0.204301 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018033 | 0.377551 | 980 | 58 | 50 | 16.896552 | 0.591803 | 0 | 0 | 0.232143 | 1 | 0 | 0.288776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017857 | 0 | 0.017857 | 0 | 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 |
b5135d483c61b35835eaacf0de2d00e81268a27c | 1,192 | py | Python | carTest/tank/models.py | Iovecoding/carTest | 7ae29a18f440356d5a818af486093e1880143f93 | [
"MIT"
] | null | null | null | carTest/tank/models.py | Iovecoding/carTest | 7ae29a18f440356d5a818af486093e1880143f93 | [
"MIT"
] | null | null | null | carTest/tank/models.py | Iovecoding/carTest | 7ae29a18f440356d5a818af486093e1880143f93 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Tank(models.Model):
name = models.CharField(verbose_name=u'装备名称',max_length = 100)
country = models.CharField(verbose_name =u'研制国家',max_length = 20)
start = models.IntegerField(verbose_name =u'起始制造年份')
end = models.IntegerField(verbose_name ... | 36.121212 | 89 | 0.697148 | 167 | 1,192 | 4.772455 | 0.437126 | 0.193225 | 0.165621 | 0.145546 | 0.531995 | 0.129235 | 0.097867 | 0 | 0 | 0 | 0 | 0.020429 | 0.178691 | 1,192 | 32 | 90 | 37.25 | 0.793667 | 0.04698 | 0 | 0 | 0 | 0 | 0.070859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0.047619 | 0.809524 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b515fc14ddf5c3c6dcb655850522781f700bfdfa | 5,053 | py | Python | your_profile/views.py | Jonak-Adipta-Kalita/JAK-Website | 39c3723e95d99e990a2e23dbb05746def2ac903a | [
"MIT"
] | 1 | 2021-08-31T14:21:16.000Z | 2021-08-31T14:21:16.000Z | your_profile/views.py | Jonak-Adipta-Kalita/JAK-Website | 39c3723e95d99e990a2e23dbb05746def2ac903a | [
"MIT"
] | 74 | 2021-11-03T03:19:12.000Z | 2022-03-31T03:23:49.000Z | your_profile/views.py | Jonak-Adipta-Kalita/JAK-Website | 39c3723e95d99e990a2e23dbb05746def2ac903a | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login, logout
from django.contrib import messages
from .models import Notification
import json, requests
import credentials
def handle_change_password(request):
if request.user.i... | 38.572519 | 88 | 0.636256 | 529 | 5,053 | 5.986767 | 0.223062 | 0.048626 | 0.068203 | 0.04168 | 0.531102 | 0.43827 | 0.394064 | 0.361857 | 0.329965 | 0.329965 | 0 | 0.0077 | 0.2547 | 5,053 | 130 | 89 | 38.869231 | 0.833245 | 0 | 0 | 0.466102 | 0 | 0 | 0.196121 | 0.030279 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0.144068 | 0.059322 | 0 | 0.279661 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
82eb472ba23be560ff3fd22e6713b9fa94b5eb07 | 288 | py | Python | plinn/__version__.py | giannitedesco/plinn | 3fb28a39097f0f2b3a2333b488a0e2a5abe7e48e | [
"Apache-2.0"
] | null | null | null | plinn/__version__.py | giannitedesco/plinn | 3fb28a39097f0f2b3a2333b488a0e2a5abe7e48e | [
"Apache-2.0"
] | null | null | null | plinn/__version__.py | giannitedesco/plinn | 3fb28a39097f0f2b3a2333b488a0e2a5abe7e48e | [
"Apache-2.0"
] | null | null | null | __title__ = 'plinn'
__description__ = "Partition Like It's 1999"
__url__ = 'https://github.com/giannitedesco/plinn'
__author__ = 'Gianni Tedesco'
__author_email__ = 'gianni@scaramanga.co.uk'
__copyright__ = 'Copyright 2020 Gianni Tedesco'
__license__ = 'Apache 2.0'
__version__ = '0.0.2'
| 32 | 50 | 0.760417 | 36 | 288 | 5.166667 | 0.75 | 0.139785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050781 | 0.111111 | 288 | 8 | 51 | 36 | 0.675781 | 0 | 0 | 0 | 0 | 0 | 0.513889 | 0.079861 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
82f14fafded99fb9f1e29a1cd3fa98673922746f | 2,054 | py | Python | podcast/views.py | sourcery-ai-bot/django-podcast | 14db0fd6ef3d836ba4755fa5d138d5c94c09bf40 | [
"BSD-3-Clause"
] | 18 | 2015-04-18T14:23:10.000Z | 2020-11-03T00:40:55.000Z | podcast/views.py | sourcery-ai-bot/django-podcast | 14db0fd6ef3d836ba4755fa5d138d5c94c09bf40 | [
"BSD-3-Clause"
] | 1 | 2018-12-15T23:39:49.000Z | 2018-12-15T23:39:49.000Z | podcast/views.py | ligonier/django-podcast | 26a97c02ad7cad91c0af5ea5154eaa71d50b245b | [
"BSD-3-Clause"
] | 11 | 2015-04-12T15:28:22.000Z | 2021-06-21T20:55:45.000Z | from django.views.generic import DetailView, ListView
from .models import Enclosure, Episode, Show
class EpisodeDetail(DetailView):
model = Episode
slug_url_kwarg = "episode_slug"
def get_queryset(self):
return self.model.objects.published().filter(show__slug__exact=self.kwargs['show_slug'])
... | 28.527778 | 168 | 0.735151 | 254 | 2,054 | 5.641732 | 0.240157 | 0.055827 | 0.046057 | 0.066294 | 0.51291 | 0.444522 | 0.390091 | 0.330775 | 0.315422 | 0.315422 | 0 | 0.001146 | 0.150438 | 2,054 | 71 | 169 | 28.929577 | 0.820057 | 0 | 0 | 0.295455 | 0 | 0 | 0.119766 | 0.05112 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0 | 0.045455 | 0.045455 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d2013fea1b7251492302613a91d45ea926b70be2 | 13,848 | py | Python | mcpython/server/worldgen/WorldGenerationHandler.py | mcpython4-coding/core | e4c4f59dab68c90e2028db3add2e5065116bf4a6 | [
"CC0-1.0",
"MIT"
] | 2 | 2019-11-02T05:26:11.000Z | 2019-11-03T08:52:18.000Z | mcpython/server/worldgen/WorldGenerationHandler.py | mcpython4-coding/core | e4c4f59dab68c90e2028db3add2e5065116bf4a6 | [
"CC0-1.0",
"MIT"
] | 25 | 2019-11-02T05:24:29.000Z | 2022-02-09T14:09:08.000Z | mcpython/server/worldgen/WorldGenerationHandler.py | mcpython4-coding/core | e4c4f59dab68c90e2028db3add2e5065116bf4a6 | [
"CC0-1.0",
"MIT"
] | 5 | 2019-11-09T05:36:06.000Z | 2021-11-28T13:07:08.000Z | """
mcpython - a minecraft clone written in python licenced under the MIT-licence
(https://github.com/mcpython4-coding/core)
Contributors: uuk, xkcdjerry (inactive)
Based on the game of fogleman (https://github.com/fogleman/Minecraft), licenced under the MIT-licence
Original game "minecraft" by Mojang Studios (www.m... | 35.507692 | 121 | 0.642475 | 1,466 | 13,848 | 5.914052 | 0.22101 | 0.029066 | 0.032987 | 0.041522 | 0.290542 | 0.244752 | 0.198501 | 0.134141 | 0.101038 | 0.026528 | 0 | 0.000101 | 0.281557 | 13,848 | 389 | 122 | 35.598972 | 0.871344 | 0.171794 | 0 | 0.146718 | 0 | 0 | 0.039326 | 0.011572 | 0 | 0 | 0 | 0.010283 | 0 | 1 | 0.057915 | false | 0 | 0.073359 | 0.003861 | 0.166023 | 0.003861 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
d2018d5205fae3a05412ef874406ca0a0d77b27b | 3,707 | py | Python | scripts/score.py | hkhpub/dstc6-track1 | 6ced57134a73dc6efe2dfc25c1fc6ce5fe1097d4 | [
"MIT"
] | 3 | 2017-08-22T12:38:42.000Z | 2018-01-19T07:23:10.000Z | scripts/score.py | hkhpub/dstc6-track1 | 6ced57134a73dc6efe2dfc25c1fc6ce5fe1097d4 | [
"MIT"
] | null | null | null | scripts/score.py | hkhpub/dstc6-track1 | 6ced57134a73dc6efe2dfc25c1fc6ce5fe1097d4 | [
"MIT"
] | null | null | null |
import json
### The current dialog format
### [{dialog_id : " ", lst_candidate_id: [{candidate_id: " ", rank: " "}, ...]}]
def do_parse_cmdline():
from optparse import OptionParser
parser = OptionParser()
parser.add_option("--input-result-file-test", dest="inputfiletest",
# defau... | 37.07 | 95 | 0.58457 | 426 | 3,707 | 4.861502 | 0.232394 | 0.086915 | 0.091743 | 0.088846 | 0.337518 | 0.256398 | 0.171415 | 0.141478 | 0.141478 | 0.120715 | 0 | 0.011689 | 0.284597 | 3,707 | 100 | 96 | 37.07 | 0.769231 | 0.144322 | 0 | 0.107143 | 0 | 0 | 0.191881 | 0.038693 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035714 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d201abde2c8f3b309ec935c8ee18b0626812b88b | 1,018 | py | Python | Sec_9_comprehensions/d_dictionary_comprehension.py | PauloAlexSilva/Python | 690913cdcfd8bde52d9ddd15e3c838e6aef27730 | [
"MIT"
] | null | null | null | Sec_9_comprehensions/d_dictionary_comprehension.py | PauloAlexSilva/Python | 690913cdcfd8bde52d9ddd15e3c838e6aef27730 | [
"MIT"
] | null | null | null | Sec_9_comprehensions/d_dictionary_comprehension.py | PauloAlexSilva/Python | 690913cdcfd8bde52d9ddd15e3c838e6aef27730 | [
"MIT"
] | null | null | null | """
Dictionary Comprehension
Se quiseremos criar uma lista fazemos:
lista = [1, 2, 3, 4]
Se quiseremos criar uma tupla:
tupla = (1, 2, 3, 4) # 1, 2, 3, 4
Se quisermos criar um set (conjunto):
conjunto = {1, 2, 3, 4}
Se quisermos criar um dicionário:
dicionario = {'a': 1, 'b': 2, 'c': 3, 'd': 3}
# ... | 17.859649 | 68 | 0.559921 | 178 | 1,018 | 3.202247 | 0.320225 | 0.02807 | 0.036842 | 0.049123 | 0.154386 | 0.117544 | 0.117544 | 0.105263 | 0 | 0 | 0 | 0.089514 | 0.231827 | 1,018 | 56 | 69 | 18.178571 | 0.639386 | 0.881139 | 0 | 0 | 0 | 0 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.