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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d7e72c05c821b5b2aa9289c98ad93b19e168816c | 1,487 | py | Python | issue_order/migrations/0005_auto_20170211_0033.py | jiejiang/courier | 6fdeaf041c77dba0f97e206adb7b0cded9674d3d | [
"Apache-2.0"
] | null | null | null | issue_order/migrations/0005_auto_20170211_0033.py | jiejiang/courier | 6fdeaf041c77dba0f97e206adb7b0cded9674d3d | [
"Apache-2.0"
] | 13 | 2020-02-12T02:56:24.000Z | 2022-01-13T01:23:08.000Z | issue_order/migrations/0005_auto_20170211_0033.py | jiejiang/courier | 6fdeaf041c77dba0f97e206adb7b0cded9674d3d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-02-11 00:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('issue_order', '0004_auto_20170210_2358'),
]
operations = [
migrations.Alter... | 36.268293 | 193 | 0.615333 | 162 | 1,487 | 5.475309 | 0.438272 | 0.11274 | 0.140924 | 0.163472 | 0.535513 | 0.425028 | 0.171364 | 0.171364 | 0.171364 | 0.171364 | 0 | 0.049416 | 0.251513 | 1,487 | 40 | 194 | 37.175 | 0.747529 | 0.04573 | 0 | 0.454545 | 1 | 0 | 0.146893 | 0.016243 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d7ec3af0754886496ab74d63932b32e5dda81ec2 | 547 | py | Python | resources/__init__.py | tiralinka/amazon_fires | bda8cb2a6910be17e9cbbfb4f214a2b019efd145 | [
"MIT"
] | 1 | 2021-03-08T02:40:00.000Z | 2021-03-08T02:40:00.000Z | resources/__init__.py | tiralinka/amazon_fires | bda8cb2a6910be17e9cbbfb4f214a2b019efd145 | [
"MIT"
] | null | null | null | resources/__init__.py | tiralinka/amazon_fires | bda8cb2a6910be17e9cbbfb4f214a2b019efd145 | [
"MIT"
] | 2 | 2021-01-17T13:51:31.000Z | 2021-05-27T22:22:49.000Z | """
This package contains modules built specifically for the project in question.
Below are decribed the modules and packages used in the notebooks of this project.
Modules
-----------
polynomials:
| This module groups functions and classes for generating polynomials
| whether fitting data or directly ortogonal ... | 28.789474 | 87 | 0.778793 | 67 | 547 | 6.358209 | 0.597015 | 0.070423 | 0.075117 | 0.117371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162706 | 547 | 19 | 88 | 28.789474 | 0.930131 | 0.985375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d7f2887e18f1782d6580198e20f7cacc72ac9027 | 292 | py | Python | elasticine/adapter.py | Drizzt1991/plasticine | be61baa88f53bdfa666d068a14f17ccc0cfe4d02 | [
"MIT"
] | null | null | null | elasticine/adapter.py | Drizzt1991/plasticine | be61baa88f53bdfa666d068a14f17ccc0cfe4d02 | [
"MIT"
] | null | null | null | elasticine/adapter.py | Drizzt1991/plasticine | be61baa88f53bdfa666d068a14f17ccc0cfe4d02 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from elasticsearch import Elasticsearch
class ElasticAdapter(object):
""" Abstraction in case we will need to add another or change elastic
driver.
"""
def __init__(self, hosts, **es_params):
self.es = Elasticsearch(hosts, **es_params)
| 22.461538 | 73 | 0.660959 | 35 | 292 | 5.342857 | 0.8 | 0.074866 | 0.139037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004425 | 0.226027 | 292 | 12 | 74 | 24.333333 | 0.823009 | 0.328767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
cc0fa341d500758a4666f87a2715835852c484f0 | 12,526 | py | Python | vb2py/PythonCard/tools/codeEditor/codeEditorR.rsrc.py | ceprio/xl_vb2py | 899fec0301140fd8bd313e8c80b3fa839b3f5ee4 | [
"BSD-3-Clause"
] | null | null | null | vb2py/PythonCard/tools/codeEditor/codeEditorR.rsrc.py | ceprio/xl_vb2py | 899fec0301140fd8bd313e8c80b3fa839b3f5ee4 | [
"BSD-3-Clause"
] | null | null | null | vb2py/PythonCard/tools/codeEditor/codeEditorR.rsrc.py | ceprio/xl_vb2py | 899fec0301140fd8bd313e8c80b3fa839b3f5ee4 | [
"BSD-3-Clause"
] | null | null | null | {'application':{'type':'Application',
'name':'codeEditor',
'backgrounds': [
{'type':'Background',
'name':'bgCodeEditor',
'title':'Code Editor R PythonCard Application',
'size':(400, 300),
'statusBar':1,
'visible':0,
'style':['resizeable'],
... | 35.284507 | 228 | 0.345042 | 685 | 12,526 | 6.309489 | 0.370803 | 0.161037 | 0.214715 | 0.053447 | 0.071726 | 0.041647 | 0.041647 | 0.041647 | 0 | 0 | 0 | 0.00737 | 0.490899 | 12,526 | 354 | 229 | 35.384181 | 0.670378 | 0.003593 | 0 | 0.278736 | 0 | 0.002874 | 0.368117 | 0.046325 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cc126dbbfecd1ff026b9c6b831a847190b8423eb | 911 | py | Python | unittest_reinvent/diversity_filter_tests/test_murcko_scaffold_superfluous_addition.py | MolecularAI/reinvent-scoring | f7e052ceeffd29e17e1672c33607189873c82a45 | [
"MIT"
] | null | null | null | unittest_reinvent/diversity_filter_tests/test_murcko_scaffold_superfluous_addition.py | MolecularAI/reinvent-scoring | f7e052ceeffd29e17e1672c33607189873c82a45 | [
"MIT"
] | 2 | 2021-11-01T23:19:42.000Z | 2021-11-22T23:41:39.000Z | unittest_reinvent/diversity_filter_tests/test_murcko_scaffold_superfluous_addition.py | MolecularAI/reinvent-scoring | f7e052ceeffd29e17e1672c33607189873c82a45 | [
"MIT"
] | 2 | 2021-11-18T13:14:22.000Z | 2022-03-16T07:52:57.000Z | from reinvent_scoring.scoring.diversity_filters.curriculum_learning.update_diversity_filter_dto import \
UpdateDiversityFilterDTO
from unittest_reinvent.diversity_filter_tests.test_murcko_scaffold_base import BaseMurckoScaffoldFilter
from unittest_reinvent.diversity_filter_tests.fixtures import tanimoto_scaffold_fi... | 45.55 | 104 | 0.815587 | 102 | 911 | 6.921569 | 0.490196 | 0.084986 | 0.084986 | 0.082153 | 0.113314 | 0.113314 | 0 | 0 | 0 | 0 | 0 | 0.004988 | 0.119649 | 911 | 19 | 105 | 47.947368 | 0.875312 | 0.037322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0bcce6782aa31e7dd2aa944b38edc0071b4e58f7 | 847 | py | Python | boardgame/connectfour/connectfourviewer.py | suryaambrose/boardgame | 459f9ae26ce571d34da88c295eb577b835f3ad13 | [
"MIT"
] | null | null | null | boardgame/connectfour/connectfourviewer.py | suryaambrose/boardgame | 459f9ae26ce571d34da88c295eb577b835f3ad13 | [
"MIT"
] | null | null | null | boardgame/connectfour/connectfourviewer.py | suryaambrose/boardgame | 459f9ae26ce571d34da88c295eb577b835f3ad13 | [
"MIT"
] | null | null | null | import os
import sys
from ..gameviewer import GameViewer
class ConnectFourViewer(GameViewer):
def __init__(self):
super(ConnectFourViewer, self).__init__([6,7])
def showState(self, state):
os.system("clear")
sys.stdout.write("x\y|")
for k in range(0, self.map_width):
sys.stdout.write("%d "%(k))
sys.std... | 25.666667 | 83 | 0.654073 | 133 | 847 | 4.037594 | 0.481203 | 0.134078 | 0.208566 | 0.067039 | 0.154562 | 0.126629 | 0.126629 | 0.126629 | 0.126629 | 0 | 0 | 0.010145 | 0.18536 | 847 | 33 | 84 | 25.666667 | 0.768116 | 0 | 0 | 0 | 0 | 0 | 0.086085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0bd3fe284b31a90b04c8a385e5ac021eadf08bd7 | 577 | py | Python | tests/test_article.py | JohnKarima/news-hub | 261969fe949bf7efbdc6dabb502b7b9b9eecabac | [
"MIT"
] | null | null | null | tests/test_article.py | JohnKarima/news-hub | 261969fe949bf7efbdc6dabb502b7b9b9eecabac | [
"MIT"
] | null | null | null | tests/test_article.py | JohnKarima/news-hub | 261969fe949bf7efbdc6dabb502b7b9b9eecabac | [
"MIT"
] | null | null | null | import unittest
from app.models import Article
class ArticleTest(unittest.TestCase):
'''
Test Class to test the behaviour of the Article class
'''
def setUp(self):
'''
Set up method that will run before every Test
'''
self.new_article = Article('NewsDaily', 'NewsDailyTr... | 33.941176 | 224 | 0.679376 | 73 | 577 | 5.328767 | 0.671233 | 0.061697 | 0.071979 | 0.107969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015119 | 0.197574 | 577 | 16 | 225 | 36.0625 | 0.825054 | 0.171577 | 0 | 0 | 0 | 0 | 0.359909 | 0.068337 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
0bd5c6b04b7d3a4ccf8589e0b2129df29191d0f5 | 737 | py | Python | miqa/core/models/image.py | davidshq/miqa-1 | aeb5fbf40a65a6fdb82b6e3d3aff8fe47474792f | [
"Apache-2.0"
] | null | null | null | miqa/core/models/image.py | davidshq/miqa-1 | aeb5fbf40a65a6fdb82b6e3d3aff8fe47474792f | [
"Apache-2.0"
] | null | null | null | miqa/core/models/image.py | davidshq/miqa-1 | aeb5fbf40a65a6fdb82b6e3d3aff8fe47474792f | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
from uuid import uuid4
from django.db import models
from django_extensions.db.models import TimeStampedModel
class Image(TimeStampedModel, models.Model):
class Meta:
indexes = [models.Index(fields=['scan', 'name'])]
ordering = ['name']
id = models.UUIDField(primary_k... | 29.48 | 85 | 0.700136 | 96 | 737 | 5.28125 | 0.53125 | 0.039448 | 0.071006 | 0.094675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013289 | 0.183175 | 737 | 24 | 86 | 30.708333 | 0.828904 | 0 | 0 | 0.111111 | 0 | 0 | 0.029851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
0bee95548e6fcafe6a5b00d7403872593616c0ae | 11,892 | py | Python | src/app/todos/routes.py | alexzanderr/metro.digital | 71a58b417f6498808224a6de96578bde76f89c60 | [
"MIT"
] | null | null | null | src/app/todos/routes.py | alexzanderr/metro.digital | 71a58b417f6498808224a6de96578bde76f89c60 | [
"MIT"
] | 1 | 2021-12-16T22:11:25.000Z | 2021-12-16T22:11:25.000Z | src/app/todos/routes.py | alexzanderr/flask_web_app | 71a58b417f6498808224a6de96578bde76f89c60 | [
"MIT"
] | null | null | null | """
# type: ignore
type ignore is to tell LSP-pyright to ignore the line
because something it thinks that there are errors, but actually at runtime there are not
"""
from .validation import validate_password_check
from .validation import validate_email
from .validation import validate_password
from .valida... | 30.414322 | 93 | 0.670114 | 1,451 | 11,892 | 5.248794 | 0.168849 | 0.034139 | 0.029543 | 0.02416 | 0.464154 | 0.389049 | 0.353072 | 0.32261 | 0.318146 | 0.298845 | 0 | 0.013751 | 0.21115 | 11,892 | 390 | 94 | 30.492308 | 0.798103 | 0.255466 | 0 | 0.354839 | 0 | 0 | 0.116357 | 0.004848 | 0 | 0 | 0 | 0.017949 | 0 | 1 | 0.073733 | false | 0.087558 | 0.105991 | 0.013825 | 0.262673 | 0.013825 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0bff94692e4bbe3d3e04ebd669ece2fd2be0847b | 489 | py | Python | nrm_django/nrm_site/settings/test.py | 18F/NRM-Grants-Agreements | 7b9016e034b75a2237f7c70ba539b542108c335e | [
"CC0-1.0"
] | 5 | 2020-11-18T20:00:02.000Z | 2021-04-16T23:50:07.000Z | nrm_django/nrm_site/settings/test.py | USDAForestService/NRM-Grants-Agreements | 7b9016e034b75a2237f7c70ba539b542108c335e | [
"CC0-1.0"
] | 210 | 2021-04-28T16:26:34.000Z | 2022-03-14T16:31:21.000Z | nrm_django/nrm_site/settings/test.py | USDAForestService/NRM-Grants-Agreements | 7b9016e034b75a2237f7c70ba539b542108c335e | [
"CC0-1.0"
] | 2 | 2021-07-06T20:57:27.000Z | 2021-07-07T13:06:46.000Z | import os
from .base import * # noqa
import dj_database_url
SECRET_KEY = "test mode"
database_url = os.getenv("DATABASE_URL")
if database_url:
DATABASES = {"default": dj_database_url.parse(database_url)}
else:
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
... | 21.26087 | 64 | 0.554192 | 50 | 489 | 5.22 | 0.62 | 0.252874 | 0.099617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01173 | 0.302658 | 489 | 22 | 65 | 22.227273 | 0.753666 | 0.00818 | 0 | 0 | 0 | 0 | 0.269151 | 0.060041 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.166667 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
042a1dff477ec006dda477d8738dfe23bcc7b467 | 9,358 | py | Python | modules.py | callistachang/CycleGAN-Music-Transfer | 928e87b4bebc4da1dcf7c43936d2c10fe76170f1 | [
"MIT"
] | null | null | null | modules.py | callistachang/CycleGAN-Music-Transfer | 928e87b4bebc4da1dcf7c43936d2c10fe76170f1 | [
"MIT"
] | 1 | 2021-07-07T13:36:18.000Z | 2021-07-07T13:36:18.000Z | modules.py | callistachang/CycleGAN-Music-Transfer | 928e87b4bebc4da1dcf7c43936d2c10fe76170f1 | [
"MIT"
] | null | null | null | import numpy as np
import tensorflow as tf
from tensorflow.keras import Model, layers, Input
from collections import namedtuple
def abs_criterion(pred, target):
return tf.reduce_mean(tf.abs(pred - target))
def mae_criterion(pred, target):
return tf.reduce_mean((pred - target) ** 2)
def sce_criterion(logit... | 25.498638 | 85 | 0.556315 | 1,179 | 9,358 | 4.272265 | 0.124682 | 0.037522 | 0.038118 | 0.044471 | 0.797499 | 0.771491 | 0.725829 | 0.633313 | 0.626166 | 0.559659 | 0 | 0.051493 | 0.298568 | 9,358 | 366 | 86 | 25.568306 | 0.715874 | 0.131545 | 0 | 0.666667 | 0 | 0 | 0.047136 | 0.002969 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054902 | false | 0 | 0.015686 | 0.023529 | 0.12549 | 0.003922 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 2 |
0436d3f10986a9986bb88f66529f9631838fc465 | 295 | py | Python | class2/demo3.py | sanderslhc/python-learing | 2769f72c9b6de24d768175bed1aa9851d0469d19 | [
"MIT"
] | 1 | 2021-07-20T09:52:55.000Z | 2021-07-20T09:52:55.000Z | class2/demo3.py | sanderslhc/python-learning | 2769f72c9b6de24d768175bed1aa9851d0469d19 | [
"MIT"
] | null | null | null | class2/demo3.py | sanderslhc/python-learning | 2769f72c9b6de24d768175bed1aa9851d0469d19 | [
"MIT"
] | null | null | null | #多分支结构
score=int(input('请输入成绩'))
#判断
if score>=90 and score<=100:
print('A')
elif score>=80 and score<=89:
print('B')
elif score>=70 and score<=79:
print('C')
elif score>=60 and score<=69:
print('D')
elif score>=0 and score<=59:
print('E')
else:
print('无效') | 19.666667 | 30 | 0.572881 | 49 | 295 | 3.44898 | 0.55102 | 0.236686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 0.227119 | 295 | 15 | 31 | 19.666667 | 0.653509 | 0.023729 | 0 | 0 | 0 | 0 | 0.043956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.461538 | 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 | 1 | 0 | 2 |
0447af988a6ba77384680fe4e01e6a7e24dba0af | 2,253 | py | Python | src/ch3/generatefeedvector.py | amolnayak311/Programming-Collective-Intelligence | eaa55c3989a8d36e7b766fbaba267b4cbaedf5be | [
"Apache-2.0"
] | null | null | null | src/ch3/generatefeedvector.py | amolnayak311/Programming-Collective-Intelligence | eaa55c3989a8d36e7b766fbaba267b4cbaedf5be | [
"Apache-2.0"
] | null | null | null | src/ch3/generatefeedvector.py | amolnayak311/Programming-Collective-Intelligence | eaa55c3989a8d36e7b766fbaba267b4cbaedf5be | [
"Apache-2.0"
] | null | null | null | '''
Created on Sep 4, 2015
@author: Amol
'''
from feedparser import parse
import re
from itertools import groupby
#Remove HTML and get the remaining words
def getwords(html):
txt = re.compile(r'<[^>]+>').sub('', html)
words = re.compile(r'[^A-Z^a-z]+').split(txt)
return [word.lower() for word in words if... | 31.732394 | 127 | 0.637816 | 341 | 2,253 | 4.187683 | 0.407625 | 0.033613 | 0.02521 | 0.021008 | 0.040616 | 0.040616 | 0.040616 | 0 | 0 | 0 | 0 | 0.009308 | 0.237017 | 2,253 | 71 | 128 | 31.732394 | 0.821408 | 0.195739 | 0 | 0 | 0 | 0 | 0.165247 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.104167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
044bb9506b68dc9263b143fd71b62d2aa484539b | 10,954 | py | Python | 0.17/_downloads/8c453dbbabf4b225611c41642ea9b1d5/plot_morph_stc.py | drammock/mne-tools.github.io | 5d3a104d174255644d8d5335f58036e32695e85d | [
"BSD-3-Clause"
] | null | null | null | 0.17/_downloads/8c453dbbabf4b225611c41642ea9b1d5/plot_morph_stc.py | drammock/mne-tools.github.io | 5d3a104d174255644d8d5335f58036e32695e85d | [
"BSD-3-Clause"
] | null | null | null | 0.17/_downloads/8c453dbbabf4b225611c41642ea9b1d5/plot_morph_stc.py | drammock/mne-tools.github.io | 5d3a104d174255644d8d5335f58036e32695e85d | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
r"""
================================================================
Morphing source estimates: Moving data from one brain to another
================================================================
Morphing refers to the operation of transferring
:ref:`source estimates <sphx_glr_auto_tutorial... | 43.125984 | 80 | 0.726675 | 1,673 | 10,954 | 4.705918 | 0.304244 | 0.010161 | 0.011177 | 0.012702 | 0.142512 | 0.117363 | 0.088657 | 0.059698 | 0.053855 | 0.04344 | 0 | 0.00799 | 0.154464 | 10,954 | 253 | 81 | 43.296443 | 0.842043 | 0.998722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0453131e08ad9df3feb4129ffbeb4612445ebb21 | 763 | py | Python | analysis/dbase/tracking/train.py | BrancoLab/FC_analysis | 7124a7d998275bce6f7a18c264399c7dabfd430b | [
"MIT"
] | 1 | 2018-08-20T14:47:09.000Z | 2018-08-20T14:47:09.000Z | analysis/dbase/tracking/train.py | BrancoLab/FC_analysis | 7124a7d998275bce6f7a18c264399c7dabfd430b | [
"MIT"
] | null | null | null | analysis/dbase/tracking/train.py | BrancoLab/FC_analysis | 7124a7d998275bce6f7a18c264399c7dabfd430b | [
"MIT"
] | 1 | 2018-09-24T15:58:57.000Z | 2018-09-24T15:58:57.000Z | import deeplabcut as dlc
import os
from fcutils.file_io.utils import listdir
# from fcutils.video.utils import trim_clip
config_file = 'D:\\Dropbox (UCL - SWC)\\Rotation_vte\\Locomotion\\dlc\\locomotion-Federico\\config.yaml'
dlc.train_network(config_file)
# fld = 'D:\\Dropbox (UCL - SWC)\\Rotation_vte\\Locomotion... | 34.681818 | 162 | 0.728702 | 121 | 763 | 4.404959 | 0.46281 | 0.075047 | 0.056285 | 0.073171 | 0.258912 | 0.258912 | 0.258912 | 0.258912 | 0 | 0 | 0 | 0.064706 | 0.108781 | 763 | 22 | 163 | 34.681818 | 0.719118 | 0.686763 | 0 | 0 | 0 | 0.2 | 0.382609 | 0.3 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f08b09f830197b622c222148be38b3159d8bff5d | 6,346 | py | Python | src/experimental_results/outdoor test/path_planning_analysis.py | NASLab/GroundROS | 6673db009ffcff59500eb1e3d5873111282e7749 | [
"MIT"
] | 1 | 2017-12-17T11:11:55.000Z | 2017-12-17T11:11:55.000Z | src/experimental_results/outdoor test/path_planning_analysis.py | NASLab/GroundROS | 6673db009ffcff59500eb1e3d5873111282e7749 | [
"MIT"
] | 2 | 2015-10-02T19:02:06.000Z | 2015-10-02T19:02:36.000Z | src/experimental_results/outdoor test/path_planning_analysis.py | NASLab/GroundROS | 6673db009ffcff59500eb1e3d5873111282e7749 | [
"MIT"
] | null | null | null | # python experimental tests for Husky
from numpy import sin, cos, pi, load
import matplotlib.pyplot as plt
from time import sleep
yaw_bound = 2 * pi / 180
yaw_calibrate = pi / 180 * (0)
x_offset_calibrate = 0
y_offset_calibrate = -.08
f0 = plt.figure()
ax0 = f0.add_subplot(111)
ax1 = f0.add_subplot(111)
env_data = ... | 30.956098 | 129 | 0.560668 | 1,051 | 6,346 | 3.226451 | 0.125595 | 0.094957 | 0.063698 | 0.053082 | 0.728104 | 0.690357 | 0.629018 | 0.616927 | 0.600708 | 0.600708 | 0 | 0.043806 | 0.248188 | 6,346 | 204 | 130 | 31.107843 | 0.666946 | 0.656161 | 0 | 0 | 0 | 0 | 0.019932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06 | null | null | 0.02 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f08ba58aa1ee5462b9589a7cefae921b8d9e4b35 | 477 | py | Python | titan/react_pkg/prettier/__init__.py | mnieber/moonleap | 2c951565c32f2e733a063b4a4f7b3d917ef1ec07 | [
"MIT"
] | null | null | null | titan/react_pkg/prettier/__init__.py | mnieber/moonleap | 2c951565c32f2e733a063b4a4f7b3d917ef1ec07 | [
"MIT"
] | null | null | null | titan/react_pkg/prettier/__init__.py | mnieber/moonleap | 2c951565c32f2e733a063b4a4f7b3d917ef1ec07 | [
"MIT"
] | null | null | null | from pathlib import Path
from moonleap import add, create
from titan.project_pkg.service import Tool
from titan.react_pkg.nodepackage import load_node_package_config
class Prettier(Tool):
pass
base_tags = [("prettier", ["tool"])]
@create("prettier")
def create_prettier(term, block):
prettier = Prettier(n... | 22.714286 | 66 | 0.761006 | 62 | 477 | 5.532258 | 0.532258 | 0.052478 | 0.087464 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136268 | 477 | 20 | 67 | 23.85 | 0.832524 | 0 | 0 | 0 | 0 | 0 | 0.077568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.307692 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
f0935e4564c845dcf620246319af92237bea563f | 167 | py | Python | calvestbr/__init__.py | IsaacHiguchi/calvestbr | ebf702e9e67299c822a6cc21cad60b247446fcfa | [
"MIT"
] | null | null | null | calvestbr/__init__.py | IsaacHiguchi/calvestbr | ebf702e9e67299c822a6cc21cad60b247446fcfa | [
"MIT"
] | null | null | null | calvestbr/__init__.py | IsaacHiguchi/calvestbr | ebf702e9e67299c822a6cc21cad60b247446fcfa | [
"MIT"
] | null | null | null | """Top-level package for Calendário dos Vestibulares do Brasil."""
__author__ = """Ana_Isaac_Marina"""
__email__ = 'marinalara170303@gmail.com'
__version__ = '0.0.1'
| 27.833333 | 66 | 0.742515 | 21 | 167 | 5.238095 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060403 | 0.107784 | 167 | 5 | 67 | 33.4 | 0.677852 | 0.359281 | 0 | 0 | 0 | 0 | 0.465347 | 0.257426 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
f0ad10d1d55fd2bdc2c491c48aba252ed553fa31 | 3,568 | py | Python | srblib/__init__.py | srbcheema1/srblib | 26146cb0d5586548da5f97a9fe3af355cd97f3ca | [
"MIT"
] | 2 | 2019-04-03T00:51:54.000Z | 2019-05-16T10:33:44.000Z | srblib/__init__.py | srbcheema1/srblib | 26146cb0d5586548da5f97a9fe3af355cd97f3ca | [
"MIT"
] | null | null | null | srblib/__init__.py | srbcheema1/srblib | 26146cb0d5586548da5f97a9fe3af355cd97f3ca | [
"MIT"
] | null | null | null | __version__ = '0.1.6'
__mod_name__ = 'srblib'
from .colour import Colour # A class with color names and a static print function which prints coloured output to stderr
from .debugger import debug # a boolean whose value can be changed in ~/.config/srblib/debug.json
from .debugger import on_appveyor # a boolean value ... | 60.474576 | 120 | 0.7912 | 597 | 3,568 | 4.638191 | 0.340034 | 0.019502 | 0.020224 | 0.028891 | 0.156013 | 0.071506 | 0.049837 | 0.049837 | 0.029614 | 0.029614 | 0 | 0.002695 | 0.168161 | 3,568 | 58 | 121 | 61.517241 | 0.930256 | 0.597534 | 0 | 0 | 0 | 0 | 0.007891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.952381 | 0 | 0.952381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
f0c3581446d85c97a243b1adbc5978391a877b8e | 269 | py | Python | src/app/buy_btc.py | simondorfman/hello_cb_pro | cdb96ee1390d22753630e24dac9bfdc5e47e788d | [
"MIT"
] | null | null | null | src/app/buy_btc.py | simondorfman/hello_cb_pro | cdb96ee1390d22753630e24dac9bfdc5e47e788d | [
"MIT"
] | null | null | null | src/app/buy_btc.py | simondorfman/hello_cb_pro | cdb96ee1390d22753630e24dac9bfdc5e47e788d | [
"MIT"
] | null | null | null | import os
from cbt.private_client import PrivateClient
from cbt.auth import get_new_private_connection
if __name__ == "__main__":
usd = os.getenv("USD_BUY")
auth = get_new_private_connection()
client = PrivateClient(auth)
client.market_buy_btc(usd)
| 20.692308 | 47 | 0.754647 | 37 | 269 | 5 | 0.513514 | 0.075676 | 0.140541 | 0.248649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163569 | 269 | 12 | 48 | 22.416667 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0.055762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f0ca3d609391dc32aa46d1c4b4ec4ee3f9a34e0a | 448 | py | Python | cbandits/core/bayesian_nn.py | AlliedToasters/dev_bandits | 7e3655bd5a91854951a52d0f037ee06aefb2922c | [
"MIT"
] | null | null | null | cbandits/core/bayesian_nn.py | AlliedToasters/dev_bandits | 7e3655bd5a91854951a52d0f037ee06aefb2922c | [
"MIT"
] | null | null | null | cbandits/core/bayesian_nn.py | AlliedToasters/dev_bandits | 7e3655bd5a91854951a52d0f037ee06aefb2922c | [
"MIT"
] | null | null | null | """Define the abstract class for Bayesian Neural Networks."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
class BayesianNN(object):
"""A Bayesian neural network keeps a distribution over neural nets."""
def __init__(self, optimizer):
p... | 21.333333 | 74 | 0.694196 | 55 | 448 | 5.309091 | 0.618182 | 0.10274 | 0.164384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234375 | 448 | 21 | 75 | 21.333333 | 0.851312 | 0.267857 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0.25 | 0 | 0.666667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f0d87d7b32c42472be81003f06fe5e9c4bf5e20f | 1,781 | py | Python | e_secretary/migrations/0010_auto_20190329_2219.py | tsitsikas96/e-secretary | bdda95e17093da730af33acf4b15ed03331c7643 | [
"MIT"
] | null | null | null | e_secretary/migrations/0010_auto_20190329_2219.py | tsitsikas96/e-secretary | bdda95e17093da730af33acf4b15ed03331c7643 | [
"MIT"
] | null | null | null | e_secretary/migrations/0010_auto_20190329_2219.py | tsitsikas96/e-secretary | bdda95e17093da730af33acf4b15ed03331c7643 | [
"MIT"
] | 1 | 2020-03-08T16:12:34.000Z | 2020-03-08T16:12:34.000Z | # Generated by Django 2.1.7 on 2019-03-29 20:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('e_secretary', '0009_profile'),
]
operations = [
migrations.AlterModelOptions(
name='professor',
options={'ordering':... | 27.4 | 91 | 0.522179 | 150 | 1,781 | 6.086667 | 0.393333 | 0.098576 | 0.170865 | 0.197152 | 0.466594 | 0.422782 | 0 | 0 | 0 | 0 | 0 | 0.022589 | 0.353734 | 1,781 | 64 | 92 | 27.828125 | 0.770634 | 0.025267 | 0 | 0.689655 | 1 | 0 | 0.131488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017241 | 0 | 0.068966 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f0db46fd26b0c7315a9b0cf93b8d1fbaf8362e97 | 2,743 | py | Python | gender_converter/logger_aegender.py | roebel/DeepGC | 03eee63ff9d9f4daa34435ddca530b262f097ea6 | [
"MIT"
] | null | null | null | gender_converter/logger_aegender.py | roebel/DeepGC | 03eee63ff9d9f4daa34435ddca530b262f097ea6 | [
"MIT"
] | 1 | 2021-08-11T06:41:56.000Z | 2021-08-11T06:41:56.000Z | gender_converter/logger_aegender.py | roebel/DeepGC | 03eee63ff9d9f4daa34435ddca530b262f097ea6 | [
"MIT"
] | null | null | null | import random
from plotting_utils import plot_spectrogram_to_numpy, image_for_logger, plot_to_image
import numpy as np
import tensorflow as tf
class GParrotLogger():
def __init__(self, logdir, ali_path='ali'):
# super(ParrotLogger, self).__init__(logdir)
self.writer = tf.summary.create_file_write... | 55.979592 | 112 | 0.728035 | 321 | 2,743 | 5.912773 | 0.190031 | 0.094837 | 0.150158 | 0.214963 | 0.758166 | 0.711275 | 0.651212 | 0.574289 | 0.574289 | 0.305585 | 0 | 0 | 0.176085 | 2,743 | 48 | 113 | 57.145833 | 0.839823 | 0.015312 | 0 | 0.263158 | 0 | 0 | 0.125602 | 0.033346 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.105263 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 2 |
f0dc6c0f1ad89845b0333162183c190359534d22 | 906 | py | Python | texel/keys.py | Xen0byte/texel | 9dcfba163c66e9da5e9b0757c4e587f297b0cfcb | [
"MIT"
] | 119 | 2022-02-06T21:47:55.000Z | 2022-03-21T23:14:30.000Z | texel/keys.py | Xen0byte/texel | 9dcfba163c66e9da5e9b0757c4e587f297b0cfcb | [
"MIT"
] | 3 | 2022-02-07T08:47:20.000Z | 2022-02-09T09:07:17.000Z | texel/keys.py | Xen0byte/texel | 9dcfba163c66e9da5e9b0757c4e587f297b0cfcb | [
"MIT"
] | 5 | 2022-02-07T08:13:11.000Z | 2022-02-12T22:31:37.000Z | import curses
class Key:
def __init__(self, *values):
self.values = values
self._hash = hash(values)
self._keyset = set(values)
def __eq__(self, other):
return self._hash == other._hash
def __hash__(self):
return self._hash
class Keys:
ESC = Key(27)
TAB ... | 25.885714 | 80 | 0.572848 | 139 | 906 | 3.517986 | 0.33813 | 0.06135 | 0.09816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007396 | 0.253863 | 906 | 34 | 81 | 26.647059 | 0.715976 | 0 | 0 | 0 | 0 | 0 | 0.015453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.037037 | 0.111111 | 0.851852 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
f0e7d6bd1974b95ea4a8abd9c52fb010ef93328b | 475 | py | Python | app/converter/nsl/substance_cv_converter.py | c0d3m0nkey/xml-to-json-converter | 9cf040b591f45031c80dc5bc64d6fbb2c4665d25 | [
"BSD-2-Clause"
] | null | null | null | app/converter/nsl/substance_cv_converter.py | c0d3m0nkey/xml-to-json-converter | 9cf040b591f45031c80dc5bc64d6fbb2c4665d25 | [
"BSD-2-Clause"
] | null | null | null | app/converter/nsl/substance_cv_converter.py | c0d3m0nkey/xml-to-json-converter | 9cf040b591f45031c80dc5bc64d6fbb2c4665d25 | [
"BSD-2-Clause"
] | null | null | null | from lxml import objectify, etree
from operator import itemgetter
from ..xml_converter import XmlConverter
class SubstanceCVConverter(XmlConverter):
def convert(self, xml):
item = {}
item["term_english_equiv"] = str(xml.attrib["term-english-equiv"])
item["term_id"] = str(xml.attrib["term-i... | 36.538462 | 74 | 0.671579 | 60 | 475 | 5.2 | 0.433333 | 0.102564 | 0.153846 | 0.205128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187368 | 475 | 12 | 75 | 39.583333 | 0.80829 | 0 | 0 | 0 | 0 | 0 | 0.214737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f0f5116f620313599917f1b146e0c00251125aed | 728 | py | Python | prickly-pufferfish/python_questions/merge_ranges.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 40 | 2020-08-02T07:38:22.000Z | 2021-07-26T01:46:50.000Z | prickly-pufferfish/python_questions/merge_ranges.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 134 | 2020-07-31T12:15:45.000Z | 2020-12-13T04:42:19.000Z | prickly-pufferfish/python_questions/merge_ranges.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 101 | 2020-07-31T12:00:47.000Z | 2021-11-01T09:06:58.000Z | """
In HiCal, a meeting is stored as tuples of integers (start_time, end_time). /
These integers represent the number of 30-minute blocks past 9:00am. /
For example: /
(2, 3) # meeting from 10:00 - 10:30 am /
(6, 9) # meeting from 12:00 - 1:30 pm /
Write a function merge_ranges() that /
takes a list of meeting time ran... | 28 | 77 | 0.539835 | 131 | 728 | 2.938931 | 0.389313 | 0.171429 | 0.093506 | 0.101299 | 0.194805 | 0.194805 | 0.155844 | 0.155844 | 0.155844 | 0 | 0 | 0.14433 | 0.200549 | 728 | 25 | 78 | 29.12 | 0.517182 | 0.987637 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0b04b5673e663cf9c8fc8da92d1c7bd8d879657a | 1,152 | py | Python | Neural_Networks/Multilayer/Neural_Multi_pybrain.py | jeffreire/Deep_Learning | 960142080dc63ea103b326ea3d6d17bd44ae0f51 | [
"MIT"
] | null | null | null | Neural_Networks/Multilayer/Neural_Multi_pybrain.py | jeffreire/Deep_Learning | 960142080dc63ea103b326ea3d6d17bd44ae0f51 | [
"MIT"
] | null | null | null | Neural_Networks/Multilayer/Neural_Multi_pybrain.py | jeffreire/Deep_Learning | 960142080dc63ea103b326ea3d6d17bd44ae0f51 | [
"MIT"
] | null | null | null | # from pybrain.datasets import SupervisedDataSet
# from pybrain.supervised.trainers import BackpropTrainer
# from pybrain.structure.modules import SoftmaxLayer
# from pybrain.structure.modules import SigmoidLayer
# from pybrain.tools.s import buildNetwork
# (x,y,z) = x é a quantidade de camadas de entrada, y é a... | 39.724138 | 123 | 0.664931 | 165 | 1,152 | 4.642424 | 0.484848 | 0.071802 | 0.046997 | 0.05483 | 0.138381 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04102 | 0.217014 | 1,152 | 29 | 124 | 39.724138 | 0.808204 | 0.923611 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0b08ce05031842d1b1da5e73875c7ace68953124 | 6,040 | py | Python | mydb/test_postgres.py | dappsunilabs/DB4SCI | 54bdd03aaa12957e622c921b263e187740a8b2ae | [
"Apache-2.0"
] | 7 | 2018-12-05T19:18:20.000Z | 2020-11-21T07:27:54.000Z | mydb/test_postgres.py | dappsunilabs/DB4SCI | 54bdd03aaa12957e622c921b263e187740a8b2ae | [
"Apache-2.0"
] | 8 | 2018-04-25T06:02:41.000Z | 2020-09-08T21:55:56.000Z | mydb/test_postgres.py | FredHutch/DB4SCI | cc950a36b6b678fe16c1c91925ec402581636fc0 | [
"Apache-2.0"
] | 2 | 2019-11-14T02:09:09.000Z | 2021-12-28T19:05:51.000Z | #!/usr/bin/python
import time
import psycopg2
import argparse
import postgres_util
import container_util
import admin_db
import volumes
from send_mail import send_mail
from config import Config
def full_test(params):
admin_db.init_db()
con_name = params['dbname']
dbtype = params['dbtype']
print('Star... | 36.606061 | 86 | 0.565728 | 672 | 6,040 | 4.93006 | 0.269345 | 0.063387 | 0.048295 | 0.060368 | 0.252943 | 0.167522 | 0.088138 | 0.088138 | 0.088138 | 0.088138 | 0 | 0.005579 | 0.287748 | 6,040 | 164 | 87 | 36.829268 | 0.764528 | 0.011755 | 0 | 0.124138 | 0 | 0 | 0.264085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.068966 | 0.068966 | null | null | 0.227586 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0b0f14dc9edd917b5943eaee8fa4e20472331f44 | 170 | py | Python | src/matlab2cpp/node/__init__.py | neilferg/matlab2cpp | aa26671fc73dad297c977511053b076e05bdd2df | [
"BSD-3-Clause"
] | null | null | null | src/matlab2cpp/node/__init__.py | neilferg/matlab2cpp | aa26671fc73dad297c977511053b076e05bdd2df | [
"BSD-3-Clause"
] | null | null | null | src/matlab2cpp/node/__init__.py | neilferg/matlab2cpp | aa26671fc73dad297c977511053b076e05bdd2df | [
"BSD-3-Clause"
] | null | null | null | """
The module contains the following submodules.
"""
from .frontend import Node
__all__ = ["Node"]
if __name__ == "__main__":
import doctest
doctest.testmod()
| 15.454545 | 45 | 0.688235 | 19 | 170 | 5.526316 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188235 | 170 | 10 | 46 | 17 | 0.76087 | 0.264706 | 0 | 0 | 0 | 0 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
9bd8035c6b3b5723ba2c49f36471229439b947c4 | 1,013 | py | Python | gitrack/exceptions.py | AuHau/giTrack | 802ee23513d60b2379f0f5968e595288d5b6c31d | [
"MIT"
] | 5 | 2019-02-19T10:56:56.000Z | 2020-11-28T11:37:45.000Z | gitrack/exceptions.py | AuHau/giTrack | 802ee23513d60b2379f0f5968e595288d5b6c31d | [
"MIT"
] | 63 | 2019-01-21T21:44:28.000Z | 2022-03-21T14:01:11.000Z | gitrack/exceptions.py | AuHau/giTrack | 802ee23513d60b2379f0f5968e595288d5b6c31d | [
"MIT"
] | 2 | 2019-01-04T19:31:52.000Z | 2020-12-10T21:40:09.000Z |
class GitrackException(Exception):
"""
General giTrack's exception
"""
pass
class ConfigException(GitrackException):
"""
Exception related to Config functionality.
"""
pass
class InitializedRepoException(GitrackException):
"""
Raised when user tries to initialized repo that ... | 19.862745 | 88 | 0.691017 | 96 | 1,013 | 7.125 | 0.479167 | 0.078947 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215202 | 1,013 | 50 | 89 | 20.26 | 0.860377 | 0.228036 | 0 | 0.333333 | 0 | 0 | 0.019444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.333333 | 0 | 0.047619 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
501a6e4b0542dfab3ece831a797cbcd4d5a9b0c2 | 7,119 | py | Python | oembed/migrations/0001_initial.py | EightMedia/djangoembed | ee325f7375c48405f9c3e7e2c0fa7f5a08fafd48 | [
"MIT"
] | 8 | 2015-02-06T19:18:49.000Z | 2021-01-01T05:46:02.000Z | oembed/migrations/0001_initial.py | EightMedia/djangoembed | ee325f7375c48405f9c3e7e2c0fa7f5a08fafd48 | [
"MIT"
] | null | null | null | oembed/migrations/0001_initial.py | EightMedia/djangoembed | ee325f7375c48405f9c3e7e2c0fa7f5a08fafd48 | [
"MIT"
] | 5 | 2015-03-15T11:41:26.000Z | 2018-03-08T09:45:26.000Z | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.conf import settings
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'StoredOEmbed'
db.create_table('oembed_storedoembed', (
... | 62.447368 | 197 | 0.606827 | 758 | 7,119 | 5.572559 | 0.131926 | 0.092803 | 0.159091 | 0.227273 | 0.735795 | 0.71875 | 0.680398 | 0.651989 | 0.622869 | 0.495265 | 0 | 0.006722 | 0.184998 | 7,119 | 113 | 198 | 63 | 0.721303 | 0.052114 | 0 | 0.229885 | 0 | 0 | 0.501633 | 0.293114 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022989 | false | 0 | 0.057471 | 0 | 0.114943 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 2 |
5025f16dc15906f1c7c7af67d516b81c43cb2edb | 967 | bzl | Python | source/bazel/deps/libevent/get.bzl | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 1 | 2019-01-06T08:45:46.000Z | 2019-01-06T08:45:46.000Z | source/bazel/deps/libevent/get.bzl | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 264 | 2015-11-30T08:34:00.000Z | 2018-06-26T02:28:41.000Z | source/bazel/deps/libevent/get.bzl | UniLang/compiler | c338ee92994600af801033a37dfb2f1a0c9ca897 | [
"MIT"
] | null | null | null | # Do not edit this file directly.
# It was auto-generated by: code/programs/reflexivity/reflexive_refresh
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
def libevent():
http_archive(
name = "libevent",
build_fi... | 37.192308 | 130 | 0.623578 | 100 | 967 | 5.91 | 0.6 | 0.030457 | 0.047377 | 0.064298 | 0.145516 | 0.145516 | 0.145516 | 0.145516 | 0.145516 | 0.145516 | 0 | 0.117962 | 0.228542 | 967 | 25 | 131 | 38.68 | 0.674263 | 0.104447 | 0 | 0.190476 | 1 | 0.047619 | 0.590962 | 0.31518 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | true | 0 | 0 | 0 | 0.047619 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
502f754cdffdb05797ba5ba3fc5cba7ad3499d41 | 250 | py | Python | segitiga/hitung-luas-segitiga.py | Yurimahendra/latihan-big-data | 5ea495bc1187c4d99a83654f8377d73e72eb63d2 | [
"MIT"
] | null | null | null | segitiga/hitung-luas-segitiga.py | Yurimahendra/latihan-big-data | 5ea495bc1187c4d99a83654f8377d73e72eb63d2 | [
"MIT"
] | null | null | null | segitiga/hitung-luas-segitiga.py | Yurimahendra/latihan-big-data | 5ea495bc1187c4d99a83654f8377d73e72eb63d2 | [
"MIT"
] | null | null | null | # jumlah segitiga
n = 123
# panjang alas sebuah segitiga
alas = 30
# tinggi sebuah segitiga
tinggi = 18
# hitung luas sebuah segitiga
luas = alas * tinggi * 1/2
# hitung luas total
luastotal = n * luas
print('luas total : ', luastotal,'satuan luas') | 20.833333 | 47 | 0.716 | 36 | 250 | 4.972222 | 0.5 | 0.234637 | 0.201117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044554 | 0.192 | 250 | 12 | 47 | 20.833333 | 0.841584 | 0.452 | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
503945544f0f8af4e632fde69205e3dc522fc1a7 | 562 | py | Python | kolejka/judge/tasks/list_files.py | zielinskit/kolejka-judge | 571df05b12c5a4748d7a2ca4c217b0042acf6b48 | [
"MIT"
] | null | null | null | kolejka/judge/tasks/list_files.py | zielinskit/kolejka-judge | 571df05b12c5a4748d7a2ca4c217b0042acf6b48 | [
"MIT"
] | null | null | null | kolejka/judge/tasks/list_files.py | zielinskit/kolejka-judge | 571df05b12c5a4748d7a2ca4c217b0042acf6b48 | [
"MIT"
] | null | null | null | import glob
import itertools
from functools import partial
from typing import Tuple, Optional
from kolejka.judge.tasks.base import TaskBase
class ListFiles(TaskBase):
def __init__(self, *args, variable_name):
self.files = list(args)
self.variable_name = variable_name
def execute(self, enviro... | 29.578947 | 104 | 0.729537 | 71 | 562 | 5.633803 | 0.507042 | 0.12 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174377 | 562 | 18 | 105 | 31.222222 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.384615 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
504170f7d179aab0a2ca38addb3c52b1e0a07920 | 519 | py | Python | ExIt/Expert/BaseExpert.py | LarsChrWiik/Expert-Iteration-Algorithmic-Comparison | daed2972159c451be19892ee31c413d60dd2f987 | [
"MIT"
] | 1 | 2019-03-01T15:46:06.000Z | 2019-03-01T15:46:06.000Z | ExIt/Expert/BaseExpert.py | LarsChrWiik/Expert-Iteration | daed2972159c451be19892ee31c413d60dd2f987 | [
"MIT"
] | null | null | null | ExIt/Expert/BaseExpert.py | LarsChrWiik/Expert-Iteration | daed2972159c451be19892ee31c413d60dd2f987 | [
"MIT"
] | null | null | null |
from ExIt.Apprentice import BaseApprentice
from Games.GameLogic import BaseGame
class BaseExpert:
""" Class for the tree search algorithm used for policy improvement """
def __init__(self):
self.__name__ = type(self).__name__
def search(self, state: BaseGame, predictor: BaseApprentice, search_t... | 32.4375 | 102 | 0.722543 | 62 | 519 | 5.774194 | 0.677419 | 0.094972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196532 | 519 | 15 | 103 | 34.6 | 0.858513 | 0.27553 | 0 | 0 | 0 | 0 | 0.07932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
5044725258a6a777f86c0f33b6d96e0f8f308a62 | 1,235 | py | Python | monasca_common/kafka_lib/partitioner/base.py | zhangjm12/monasca-common | 2ebc766534eba6163e98b94a1f114ece18739fff | [
"Apache-2.0"
] | 26 | 2015-10-18T02:54:54.000Z | 2022-02-15T01:36:41.000Z | monasca_common/kafka_lib/partitioner/base.py | zhangjm12/monasca-common | 2ebc766534eba6163e98b94a1f114ece18739fff | [
"Apache-2.0"
] | 18 | 2019-11-01T13:03:36.000Z | 2022-02-16T02:28:52.000Z | monasca_common/kafka_lib/partitioner/base.py | zhangjm12/monasca-common | 2ebc766534eba6163e98b94a1f114ece18739fff | [
"Apache-2.0"
] | 22 | 2016-06-01T11:47:17.000Z | 2020-02-11T14:41:45.000Z | # 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, software
# distributed under the Li... | 33.378378 | 77 | 0.680972 | 160 | 1,235 | 5.225 | 0.56875 | 0.07177 | 0.0311 | 0.038278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004334 | 0.252632 | 1,235 | 36 | 78 | 34.305556 | 0.901408 | 0.690688 | 0 | 0 | 0 | 0 | 0.152672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
504a5158dee21a88d36bd8c0ab457b382a4195ba | 143 | py | Python | Python/CodingBat/string_times.py | dvt32/cpp-journey | afd7db7a1ad106c41601fb09e963902187ae36e6 | [
"MIT"
] | 1 | 2018-05-24T11:30:05.000Z | 2018-05-24T11:30:05.000Z | Python/CodingBat/string_times.py | dvt32/cpp-journey | afd7db7a1ad106c41601fb09e963902187ae36e6 | [
"MIT"
] | null | null | null | Python/CodingBat/string_times.py | dvt32/cpp-journey | afd7db7a1ad106c41601fb09e963902187ae36e6 | [
"MIT"
] | 2 | 2017-08-11T06:53:30.000Z | 2017-08-29T12:07:52.000Z | # http://codingbat.com/prob/p193507
def string_times(str, n):
result = ""
for i in range(0, n):
result += str
return result
| 14.3 | 35 | 0.601399 | 21 | 143 | 4.047619 | 0.809524 | 0.164706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066038 | 0.258741 | 143 | 9 | 36 | 15.888889 | 0.735849 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 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 | 2 |
504e0deae6fdb470fcb220ab052c73d97c382d30 | 636 | py | Python | recipe_server/recipeView.py | Shouyin/Recipe | dffaafdebefd7c39a1438444db910f5d7943cf1f | [
"MIT"
] | null | null | null | recipe_server/recipeView.py | Shouyin/Recipe | dffaafdebefd7c39a1438444db910f5d7943cf1f | [
"MIT"
] | null | null | null | recipe_server/recipeView.py | Shouyin/Recipe | dffaafdebefd7c39a1438444db910f5d7943cf1f | [
"MIT"
] | null | null | null | from django import http
from django.shortcuts import render
from django.shortcuts import render_to_response
from . import settings
from .scripts import logic
import os
import urllib
import json
def recipe_html(request):
print(os.path.join(settings.BASE_DIR, "recipe_server/static"))
return render_to_response("r... | 28.909091 | 70 | 0.751572 | 84 | 636 | 5.547619 | 0.452381 | 0.16309 | 0.081545 | 0.107296 | 0.133047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154088 | 636 | 22 | 70 | 28.909091 | 0.866171 | 0 | 0 | 0 | 0 | 0 | 0.070644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.421053 | 0 | 0.631579 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
504e2922325d5c9d9b0ab7cf89788990779e8e47 | 296 | py | Python | ua_project_transfer/wf_steps_template.py | UACoreFacilitiesIT/UA-Project_Transfer | 0360f20f54a6c9c49dcdb1568a1c961222cb1404 | [
"MIT"
] | 1 | 2020-07-14T16:27:25.000Z | 2020-07-14T16:27:25.000Z | ua_project_transfer/wf_steps_template.py | UACoreFacilitiesIT/UA-Project_Transfer | 0360f20f54a6c9c49dcdb1568a1c961222cb1404 | [
"MIT"
] | null | null | null | ua_project_transfer/wf_steps_template.py | UACoreFacilitiesIT/UA-Project_Transfer | 0360f20f54a6c9c49dcdb1568a1c961222cb1404 | [
"MIT"
] | null | null | null | """A json-like master list of workflows and steps."""
# NOTE: Create a json-like dictionary in the form of:
# WF_STEPS = {
# env1: {
# 1st condition defined in next_steps: {
# 2nd condition defined in next_steps: (Workflow Name, Step Name),
# },
# },
# }
WF_STEPS = {}
| 24.666667 | 76 | 0.608108 | 40 | 296 | 4.4 | 0.625 | 0.056818 | 0.102273 | 0.25 | 0.306818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013761 | 0.263514 | 296 | 11 | 77 | 26.909091 | 0.793578 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 2 |
5050238035d838d374850823b3ad1446226e79b5 | 329 | py | Python | tools/exploitation_tools.py | LucaRibeiro/pentestools | 2e7a6b9bf51a84aec90944c50a23e882d184ccdc | [
"MIT"
] | 1 | 2021-02-18T16:15:25.000Z | 2021-02-18T16:15:25.000Z | tools/exploitation_tools.py | LucaRibeiro/Pentools | 2e7a6b9bf51a84aec90944c50a23e882d184ccdc | [
"MIT"
] | null | null | null | tools/exploitation_tools.py | LucaRibeiro/Pentools | 2e7a6b9bf51a84aec90944c50a23e882d184ccdc | [
"MIT"
] | null | null | null | #!/usr/bin/python3
list = ["Armitage", "Backdoor Factory", "BeEF","cisco-auditing-tool",
"cisco-global-exploiter","cisco-ocs","cisco-torch","Commix","crackle",
"exploitdb","jboss-autopwn","Linux Exploit Suggester","Maltego Teeth",
"Metasploit Framework","MSFPC","RouterSploit","SET","ShellNoob","sqlmap",
"THC-IPV6","Ye... | 41.125 | 73 | 0.714286 | 38 | 329 | 6.184211 | 0.921053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00639 | 0.048632 | 329 | 7 | 74 | 47 | 0.744409 | 0.051672 | 0 | 0 | 0 | 0 | 0.742765 | 0.07074 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
50530270ca9767c3a423e4f06bb397a9db26bf9c | 1,152 | py | Python | web/api/serializer/foodComment.py | bounswe/bounswe2016group2 | f5dbba9b78fc03e8fd6a1fc7548de6cd1177a5ad | [
"Apache-2.0"
] | 10 | 2016-02-10T13:57:10.000Z | 2021-04-01T14:34:33.000Z | web/api/serializer/foodComment.py | bounswe/bounswe2016group2 | f5dbba9b78fc03e8fd6a1fc7548de6cd1177a5ad | [
"Apache-2.0"
] | 203 | 2016-02-14T16:13:15.000Z | 2016-12-23T21:27:08.000Z | web/api/serializer/foodComment.py | bounswe/bounswe2016group2 | f5dbba9b78fc03e8fd6a1fc7548de6cd1177a5ad | [
"Apache-2.0"
] | 2 | 2017-05-10T18:41:28.000Z | 2019-02-27T21:01:18.000Z | from rest_framework import serializers
from api.model.foodComment import FoodComment
from api.model.food import Food
from django.contrib.auth.models import User
from api.serializer.user import UserSerializer
class FoodCommentSerializer(serializers.ModelSerializer):
comment = serializers.CharField(max_length=255... | 27.428571 | 82 | 0.730903 | 115 | 1,152 | 7.217391 | 0.347826 | 0.077108 | 0.19759 | 0.090361 | 0.507229 | 0.43012 | 0.43012 | 0.43012 | 0.43012 | 0.359036 | 0 | 0.009554 | 0.182292 | 1,152 | 41 | 83 | 28.097561 | 0.87155 | 0 | 0 | 0.555556 | 0 | 0 | 0.025174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.185185 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
505bbd3722c72235b1e0bdbc9e5ed0fb5d0411eb | 780 | py | Python | solutions/problem_122.py | ksvr444/daily-coding-problem | 5d9f488f81c616847ee4e9e48974523ec2d598d7 | [
"MIT"
] | 1,921 | 2018-11-13T18:19:56.000Z | 2021-11-15T14:25:41.000Z | solutions/problem_122.py | MohitIndian/daily-coding-problem | 5d9f488f81c616847ee4e9e48974523ec2d598d7 | [
"MIT"
] | 2 | 2019-07-19T01:06:16.000Z | 2019-08-01T22:21:36.000Z | solutions/problem_122.py | MohitIndian/daily-coding-problem | 5d9f488f81c616847ee4e9e48974523ec2d598d7 | [
"MIT"
] | 1,066 | 2018-11-19T19:06:55.000Z | 2021-11-13T12:33:56.000Z | def get_max_coins_helper(matrix, crow, ccol, rows, cols):
cval = matrix[crow][ccol]
if crow == rows - 1 and ccol == cols - 1:
return cval
down, right = cval, cval
if crow < rows - 1:
down += get_max_coins_helper(
matrix, crow + 1, ccol, rows, cols)
if ccol < cols - 1:
... | 23.636364 | 57 | 0.534615 | 120 | 780 | 3.325 | 0.233333 | 0.105263 | 0.192982 | 0.170426 | 0.466165 | 0.408521 | 0.290727 | 0.135338 | 0.135338 | 0.135338 | 0 | 0.069811 | 0.320513 | 780 | 32 | 58 | 24.375 | 0.683019 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
5060bae394ef43f65427b7889ebd8a488a199475 | 1,014 | py | Python | toughradius/common/event_common.py | geosson/GSRadius | 5870e3d055e8366f98b8e65220a1520b5da22f6d | [
"Apache-2.0"
] | 1 | 2019-05-12T15:06:58.000Z | 2019-05-12T15:06:58.000Z | toughradius/common/event_common.py | geosson/GSRadius | 5870e3d055e8366f98b8e65220a1520b5da22f6d | [
"Apache-2.0"
] | null | null | null | toughradius/common/event_common.py | geosson/GSRadius | 5870e3d055e8366f98b8e65220a1520b5da22f6d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding:utf-8
from toughlib import dispatch
"""触发邮件,短信发送公共方法"""
def trigger_notify(obj, user_info, **kwargs):
if int(obj.get_param_value("webhook_notify_enable", 0)) > 0 and kwargs.get('webhook_notify'):
dispatch.pub(kwargs['webhook_notify'], user_info, async=False)
if int(o... | 39 | 98 | 0.68146 | 143 | 1,014 | 4.566434 | 0.272727 | 0.064319 | 0.117917 | 0.171516 | 0.526799 | 0.473201 | 0.401225 | 0.401225 | 0.309342 | 0.309342 | 0 | 0.008304 | 0.168639 | 1,014 | 25 | 99 | 40.56 | 0.766311 | 0.032544 | 0 | 0 | 0 | 0 | 0.246347 | 0.021921 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ac94d7600e1dceeb8d2024e62d34864ff7ca1d58 | 2,041 | py | Python | app/models/admin.py | ShuaiGao/mini-shop-server | 8a72b2d457bba8778e97637027ffa82bfa11e8a9 | [
"MIT"
] | null | null | null | app/models/admin.py | ShuaiGao/mini-shop-server | 8a72b2d457bba8778e97637027ffa82bfa11e8a9 | [
"MIT"
] | 1 | 2019-07-08T12:32:29.000Z | 2019-07-08T12:32:29.000Z | app/models/admin.py | ShuaiGao/mini-shop-server | 8a72b2d457bba8778e97637027ffa82bfa11e8a9 | [
"MIT"
] | null | null | null | # _*_ coding: utf-8 _*_
"""
Created by Allen7D on 2018/6/16.
"""
import os.path as op
from flask_admin import Admin, BaseView, expose
from flask import render_template, redirect, url_for
from flask_admin.contrib.sqla import ModelView
from flask_admin.contrib.fileadmin import FileAdmin
from flask_admin import form
fro... | 27.958904 | 78 | 0.709456 | 284 | 2,041 | 4.929577 | 0.433099 | 0.03 | 0.055714 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011986 | 0.141597 | 2,041 | 72 | 79 | 28.347222 | 0.7871 | 0.234199 | 0 | 0 | 0 | 0 | 0.097529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.325 | 0.025 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ac9516fa184eda7179ab54abc6a3a63da22f79c3 | 9,334 | py | Python | MKCommand.py | the-snowwhite/Machinekit-Workbench | 3e0c3ae55e67553bd599a3010ccf3a0392212333 | [
"MIT"
] | 8 | 2019-09-27T18:45:51.000Z | 2020-02-27T09:58:10.000Z | MKCommand.py | the-snowwhite/Machinekit-Workbench | 3e0c3ae55e67553bd599a3010ccf3a0392212333 | [
"MIT"
] | null | null | null | MKCommand.py | the-snowwhite/Machinekit-Workbench | 3e0c3ae55e67553bd599a3010ccf3a0392212333 | [
"MIT"
] | 3 | 2019-10-19T00:18:41.000Z | 2019-11-17T19:58:44.000Z | # Classes implementing the different commands that can be sent to MK
# The implemented classes do not cover the complete functional set of MK
# but are what is required to implement a basic UI.
import enum
import machinetalk.protobuf.message_pb2 as MESSAGE
import machinetalk.protobuf.status_pb2 as STATUS
import machi... | 42.235294 | 123 | 0.714378 | 1,198 | 9,334 | 5.300501 | 0.234558 | 0.052913 | 0.031496 | 0.044882 | 0.367717 | 0.292913 | 0.251024 | 0.199213 | 0.165512 | 0.105039 | 0 | 0.001756 | 0.206985 | 9,334 | 220 | 124 | 42.427273 | 0.85612 | 0.349261 | 0 | 0.206107 | 0 | 0 | 0.013358 | 0.003597 | 0 | 0 | 0 | 0 | 0 | 1 | 0.251908 | false | 0 | 0.030534 | 0.030534 | 0.557252 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
ac97d43733100708fa2b0d168201fd6612736104 | 2,185 | py | Python | GearC/material.py | cfernandesFEUP/Gear-Calculation | c15249c23f97e1168e3316ad5e27ed747758353a | [
"Unlicense"
] | 3 | 2020-09-01T13:19:10.000Z | 2021-12-13T13:59:00.000Z | GearC/material.py | cfernandesFEUP/Gear-Calculation | c15249c23f97e1168e3316ad5e27ed747758353a | [
"Unlicense"
] | null | null | null | GearC/material.py | cfernandesFEUP/Gear-Calculation | c15249c23f97e1168e3316ad5e27ed747758353a | [
"Unlicense"
] | null | null | null | ## LIBRARY OF MATERIALS #######################################################
def matp(mat, Tbulk, NL):
import numpy as np
E, v, cpg, kg, rohg, sigmaHlim, sigmaFlim = [np.zeros(2) for _ in range(7)]
for i in range(len(E)):
if mat[i] == 'POM':
E[i] = 3.2e9 # 2900 MPa (min) ... | 46.489362 | 101 | 0.381236 | 318 | 2,185 | 2.616352 | 0.295597 | 0.019231 | 0.018029 | 0.046875 | 0.512019 | 0.454327 | 0.370192 | 0.300481 | 0.262019 | 0.262019 | 0 | 0.223632 | 0.422883 | 2,185 | 46 | 102 | 47.5 | 0.436162 | 0.150114 | 0 | 0.244444 | 0 | 0 | 0.010945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.022222 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
aca120dbe457333e15ac5e2607f6815fc7e3bb5a | 4,465 | py | Python | deepchem/data/tests/test_shape.py | deloragaskins/deepchem | 234ab699cdb997e5963966a8b6926cb2cda7c064 | [
"MIT"
] | 3,782 | 2016-02-21T03:53:11.000Z | 2022-03-31T16:10:26.000Z | deepchem/data/tests/test_shape.py | deloragaskins/deepchem | 234ab699cdb997e5963966a8b6926cb2cda7c064 | [
"MIT"
] | 2,666 | 2016-02-11T01:54:54.000Z | 2022-03-31T11:14:33.000Z | deepchem/data/tests/test_shape.py | deloragaskins/deepchem | 234ab699cdb997e5963966a8b6926cb2cda7c064 | [
"MIT"
] | 1,597 | 2016-02-21T03:10:08.000Z | 2022-03-30T13:21:28.000Z | import deepchem as dc
import numpy as np
import os
def test_numpy_dataset_get_shape():
"""Test that get_shape works for numpy datasets."""
num_datapoints = 100
num_features = 10
num_tasks = 10
# Generate data
X = np.random.rand(num_datapoints, num_features)
y = np.random.randint(2, size=(num_datapoints,... | 33.074074 | 80 | 0.738186 | 695 | 4,465 | 4.48777 | 0.179856 | 0.1042 | 0.076948 | 0.067329 | 0.73421 | 0.714332 | 0.686759 | 0.678423 | 0.678423 | 0.505931 | 0 | 0.01338 | 0.163046 | 4,465 | 134 | 81 | 33.320896 | 0.821247 | 0.253303 | 0 | 0.746835 | 0 | 0 | 0.021413 | 0.00673 | 0 | 0 | 0 | 0 | 0.278481 | 1 | 0.075949 | false | 0 | 0.037975 | 0 | 0.113924 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
acad836bb967db6d3ec59df7b4fb252d32176a06 | 905 | py | Python | src/the_teleop/test_popout.py | NuenoB/TheTeleop | 57e3f745d391743fac408fb44bf20ffad945aa19 | [
"BSD-3-Clause"
] | null | null | null | src/the_teleop/test_popout.py | NuenoB/TheTeleop | 57e3f745d391743fac408fb44bf20ffad945aa19 | [
"BSD-3-Clause"
] | null | null | null | src/the_teleop/test_popout.py | NuenoB/TheTeleop | 57e3f745d391743fac408fb44bf20ffad945aa19 | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
import os
import rospy
import rospkg
from readbag import restore
from qt_gui.plugin import Plugin
from python_qt_binding.QtCore import Qt
from python_qt_binding import loadUi
from python_qt_binding.QtGui import QFileDialog, QGraphicsView, QIcon, QWidget
from PyQt4 import QtGui, QtCore
from exam... | 23.815789 | 78 | 0.709392 | 124 | 905 | 5.016129 | 0.427419 | 0.07074 | 0.057878 | 0.09164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015342 | 0.207735 | 905 | 38 | 79 | 23.815789 | 0.852162 | 0.023204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.448276 | 0 | 0.586207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
acb17cfb85ffc305e2395079620b49264e4e9636 | 377 | py | Python | active/setup.py | jordan-schneider/value-alignment-verification | f2c877b16dfefa7cd8089b7aa3fe084ab907235e | [
"MIT"
] | null | null | null | active/setup.py | jordan-schneider/value-alignment-verification | f2c877b16dfefa7cd8089b7aa3fe084ab907235e | [
"MIT"
] | 2 | 2020-05-25T14:50:11.000Z | 2021-01-18T20:23:30.000Z | active/setup.py | jordan-schneider/batch-active-preference-based-learning | f2c877b16dfefa7cd8089b7aa3fe084ab907235e | [
"MIT"
] | 1 | 2021-08-24T18:22:13.000Z | 2021-08-24T18:22:13.000Z | from distutils.core import setup
from pathlib import Path
# TODO(joschnei): Add typing info
setup(
name="active",
version="0.1",
packages=["active",],
install_requires=[
"scipy",
"numpy",
"driver @ git+https://github.com/jordan-schneider/driver-env.git#egg=driver",
],
p... | 19.842105 | 85 | 0.588859 | 43 | 377 | 5.116279 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0.246684 | 377 | 18 | 86 | 20.944444 | 0.767606 | 0.082228 | 0 | 0 | 0 | 0.066667 | 0.328488 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0 | true | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ace2b1a29a3abb15aedb474de4948707e3d81eeb | 416 | py | Python | erpnext_feature_board/hook_events/review_request.py | akurungadam/erpnext_feature_board | 8c99b4dfaa79d86d8e8b46fa1bf235d0bfa471e0 | [
"MIT"
] | 15 | 2021-05-31T16:29:22.000Z | 2021-12-02T20:18:32.000Z | erpnext_feature_board/hook_events/review_request.py | akurungadam/erpnext_feature_board | 8c99b4dfaa79d86d8e8b46fa1bf235d0bfa471e0 | [
"MIT"
] | 18 | 2021-06-01T07:39:08.000Z | 2021-07-14T09:02:35.000Z | erpnext_feature_board/hook_events/review_request.py | akurungadam/erpnext_feature_board | 8c99b4dfaa79d86d8e8b46fa1bf235d0bfa471e0 | [
"MIT"
] | 6 | 2021-06-01T07:19:53.000Z | 2021-12-28T20:06:25.000Z | import frappe
def delete_approved_build_requests():
"""
Scheduled hook to delete approved Review Requests for changing site deployments.
"""
approved_build_requests = frappe.get_all(
"Review Request",
filters={
"request_type": ["in", ["Build", "Upgrade", "Delete"]],
"request_status": "Approved",
},
... | 21.894737 | 81 | 0.71875 | 49 | 416 | 5.877551 | 0.510204 | 0.135417 | 0.21875 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151442 | 416 | 18 | 82 | 23.111111 | 0.815864 | 0.192308 | 0 | 0 | 0 | 0 | 0.251534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
ace7ab1c03480ac4b4f41e3fb954c1d488666de5 | 247 | py | Python | trustpayments/models/failure_category.py | TrustPayments/python-sdk | 6fde6eb8cfce270c3612a2903a845c13018c3bb9 | [
"Apache-2.0"
] | 2 | 2020-01-16T13:24:06.000Z | 2020-11-21T17:40:17.000Z | postfinancecheckout/models/failure_category.py | pfpayments/python-sdk | b8ef159ea3c843a8d0361d1e0b122a9958adbcb4 | [
"Apache-2.0"
] | 4 | 2019-10-14T17:33:23.000Z | 2021-10-01T14:49:11.000Z | postfinancecheckout/models/failure_category.py | pfpayments/python-sdk | b8ef159ea3c843a8d0361d1e0b122a9958adbcb4 | [
"Apache-2.0"
] | 2 | 2019-10-15T14:17:10.000Z | 2021-09-17T13:07:09.000Z | # coding: utf-8
from enum import Enum, unique
@unique
class FailureCategory(Enum):
TEMPORARY_ISSUE = "TEMPORARY_ISSUE"
INTERNAL = "INTERNAL"
END_USER = "END_USER"
CONFIGURATION = "CONFIGURATION"
DEVELOPER = "DEVELOPER"
| 17.642857 | 39 | 0.688259 | 26 | 247 | 6.384615 | 0.615385 | 0.168675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005181 | 0.218623 | 247 | 13 | 40 | 19 | 0.854922 | 0.052632 | 0 | 0 | 0 | 0 | 0.229437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.875 | 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 | 1 | 0 | 0 | 2 |
acee87269de38c5afcc9577b696b2d9e96852134 | 149 | py | Python | Questoes/b1_q09_piso.py | viniciusm0raes/python | c4d4f1a08d1e4de105109e1f67fae9fcc20d7fce | [
"MIT"
] | null | null | null | Questoes/b1_q09_piso.py | viniciusm0raes/python | c4d4f1a08d1e4de105109e1f67fae9fcc20d7fce | [
"MIT"
] | null | null | null | Questoes/b1_q09_piso.py | viniciusm0raes/python | c4d4f1a08d1e4de105109e1f67fae9fcc20d7fce | [
"MIT"
] | null | null | null | metros = float(input('Quantos metros de piso vc deseja? '))
preco = 70
total = metros*preco
print('O preço total do pedido é: R$ %.2f' % (total))
| 18.625 | 59 | 0.66443 | 24 | 149 | 4.125 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024793 | 0.187919 | 149 | 7 | 60 | 21.285714 | 0.793388 | 0 | 0 | 0 | 0 | 0 | 0.459459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 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 | 2 |
acf995ba4adee5652bf497dcac8aaaa0df89b254 | 702 | py | Python | tests/test_day22.py | arcadecoffee/advent-2021 | 57d24cd6ba6e2b4d7e68ea492b955b73eaad7b6a | [
"MIT"
] | null | null | null | tests/test_day22.py | arcadecoffee/advent-2021 | 57d24cd6ba6e2b4d7e68ea492b955b73eaad7b6a | [
"MIT"
] | null | null | null | tests/test_day22.py | arcadecoffee/advent-2021 | 57d24cd6ba6e2b4d7e68ea492b955b73eaad7b6a | [
"MIT"
] | null | null | null | """
Tests for Day 22
"""
from day22.module import part_1, part_2, \
FULL_INPUT_FILE, TEST_INPUT_FILE_1, TEST_INPUT_FILE_2, TEST_INPUT_FILE_3
def test_part_1_1():
result = part_1(TEST_INPUT_FILE_1)
assert result == 39
def test_part_1_2():
result = part_1(TEST_INPUT_FILE_2)
assert result == 59078... | 18.972973 | 76 | 0.720798 | 114 | 702 | 3.982456 | 0.219298 | 0.198238 | 0.200441 | 0.123348 | 0.473568 | 0.244493 | 0 | 0 | 0 | 0 | 0 | 0.141093 | 0.192308 | 702 | 36 | 77 | 19.5 | 0.659612 | 0.022792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.3 | false | 0 | 0.05 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4a21f3279034131e287608aa7f238be08a6231f6 | 986 | py | Python | project4github/largest_digit.py | chinkaih319/SC101 | 25c179c96e0a2bbc4e47768c029ee4bf49e06245 | [
"MIT"
] | null | null | null | project4github/largest_digit.py | chinkaih319/SC101 | 25c179c96e0a2bbc4e47768c029ee4bf49e06245 | [
"MIT"
] | null | null | null | project4github/largest_digit.py | chinkaih319/SC101 | 25c179c96e0a2bbc4e47768c029ee4bf49e06245 | [
"MIT"
] | null | null | null | """
File: largest_digit.py
Name:
----------------------------------
This file recursively prints the biggest digit in
5 different integers, 12345, 281, 6, -111, -9453
If your implementation is correct, you should see
5, 8, 6, 1, 9 on Console.
"""
def main():
print(find_largest_digit(12345)) # 5
print(find_larg... | 18.603774 | 54 | 0.558824 | 149 | 986 | 3.557047 | 0.315436 | 0.158491 | 0.181132 | 0.198113 | 0.143396 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0.085048 | 0.260649 | 986 | 52 | 55 | 18.961538 | 0.641975 | 0.271805 | 0 | 0.193548 | 0 | 0 | 0.011494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0 | 0 | 0.290323 | 0.16129 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
c57cdef697b1ae7480e0770028e9b4a5e38b5778 | 2,155 | py | Python | stock/migrations/0020_stockproductcds_stockproductdis.py | unicefburundi/paludisme | 775af3c15349d4437e3780690eb6fa2ea8622ee7 | [
"MIT"
] | 1 | 2017-04-26T10:09:12.000Z | 2017-04-26T10:09:12.000Z | stock/migrations/0020_stockproductcds_stockproductdis.py | srugano/paludisme | 775af3c15349d4437e3780690eb6fa2ea8622ee7 | [
"MIT"
] | null | null | null | stock/migrations/0020_stockproductcds_stockproductdis.py | srugano/paludisme | 775af3c15349d4437e3780690eb6fa2ea8622ee7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-10 20:53
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("bdiadmin", "0013_auto_20170319_1415"),
("stock", "0... | 32.164179 | 86 | 0.429234 | 155 | 2,155 | 5.832258 | 0.445161 | 0.035398 | 0.079646 | 0.106195 | 0.615044 | 0.615044 | 0.615044 | 0.615044 | 0.615044 | 0.615044 | 0 | 0.047496 | 0.462645 | 2,155 | 66 | 87 | 32.651515 | 0.733161 | 0.031555 | 0 | 0.644068 | 1 | 0 | 0.086852 | 0.021113 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.050847 | 0 | 0.101695 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c584ba722dcfc049b1e65f8d0be9570ef5cdc8bf | 1,566 | py | Python | KivyApp/login.py | yeltayzhastay/jadenapp | 41f593fb897cb6b4e17aeeb1dff4287a9e89f4d9 | [
"MIT"
] | null | null | null | KivyApp/login.py | yeltayzhastay/jadenapp | 41f593fb897cb6b4e17aeeb1dff4287a9e89f4d9 | [
"MIT"
] | null | null | null | KivyApp/login.py | yeltayzhastay/jadenapp | 41f593fb897cb6b4e17aeeb1dff4287a9e89f4d9 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import pickle
from sklearn.metrics.pairwise import linear_kernel
from sklearn.feature_extraction.text import TfidfVectorizer
import csv
from kivy.app import App
from kivy.uix.gridlayout import GridLayout
from kivy.uix.label import Label
from kivy.uix.textinput import TextInput
... | 27.473684 | 81 | 0.659642 | 193 | 1,566 | 5.124352 | 0.419689 | 0.032356 | 0.052578 | 0.0364 | 0.107179 | 0.06269 | 0 | 0 | 0 | 0 | 0 | 0.004143 | 0.229246 | 1,566 | 57 | 82 | 27.473684 | 0.815244 | 0 | 0 | 0 | 0 | 0 | 0.042757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.071429 | 0.238095 | 0.02381 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
c5924e0b85cfa3c5247ec98d6988bcc8eef21a43 | 251 | py | Python | 1 - Beginner/1079.py | andrematte/uri-submissions | 796e7fee56650d9e882880318d6e7734038be2dc | [
"MIT"
] | 1 | 2020-09-09T12:48:09.000Z | 2020-09-09T12:48:09.000Z | 1 - Beginner/1079.py | andrematte/uri-submissions | 796e7fee56650d9e882880318d6e7734038be2dc | [
"MIT"
] | null | null | null | 1 - Beginner/1079.py | andrematte/uri-submissions | 796e7fee56650d9e882880318d6e7734038be2dc | [
"MIT"
] | null | null | null | # Uri Online Judge 1079
N = int(input())
for i in range(0,N):
Numbers = input()
num1 = float(Numbers.split()[0])
num2 = float(Numbers.split()[1])
num3 = float(Numbers.split()[2])
print(((2*num1+3*num2+5*num3)/10).__round__(1)) | 19.307692 | 51 | 0.59761 | 40 | 251 | 3.65 | 0.625 | 0.246575 | 0.349315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09901 | 0.195219 | 251 | 13 | 51 | 19.307692 | 0.623762 | 0.083665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c597a65becfbb1c61ad0f698d1e6335d34dce5df | 4,251 | py | Python | viewcount.py | Peace1-zhwiki/MOSIW | 13a97842ef53fd500296d3569e548a83e12698d1 | [
"MIT"
] | null | null | null | viewcount.py | Peace1-zhwiki/MOSIW | 13a97842ef53fd500296d3569e548a83e12698d1 | [
"MIT"
] | null | null | null | viewcount.py | Peace1-zhwiki/MOSIW | 13a97842ef53fd500296d3569e548a83e12698d1 | [
"MIT"
] | null | null | null | import pywikibot
from pywikibot import pagegenerators
from urllib.request import urlopen
import urllib.parse
import regex as re #use this rather than "re" to avoid the "look-behind requires fixed-width pattern" error
site = pywikibot.Site('zh','wikipedia')
cat = pywikibot.Category(site,'Category:連結格式不正確的條目')
page_to_w... | 53.810127 | 1,865 | 0.717008 | 801 | 4,251 | 3.742821 | 0.64794 | 0.007338 | 0.012008 | 0.01501 | 0.073382 | 0.051368 | 0.038692 | 0 | 0 | 0 | 0 | 0.018369 | 0.065161 | 4,251 | 79 | 1,866 | 53.810127 | 0.736034 | 0.020466 | 0 | 0.032787 | 0 | 0.04918 | 0.54707 | 0.476945 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.081967 | 0 | 0.081967 | 0.065574 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c5ae3a56e64e4529136d5912d32600637f06223a | 417 | py | Python | base/migrations/0006_profile_history.py | polarity-cf/arugo | 530ea6092702916d63f36308d5a615d118b73850 | [
"MIT"
] | 34 | 2021-11-11T14:00:15.000Z | 2022-03-16T12:30:04.000Z | base/migrations/0006_profile_history.py | polarity-cf/arugo | 530ea6092702916d63f36308d5a615d118b73850 | [
"MIT"
] | 22 | 2021-11-11T23:18:14.000Z | 2022-03-31T15:07:02.000Z | base/migrations/0006_profile_history.py | polarity-cf/arugo | 530ea6092702916d63f36308d5a615d118b73850 | [
"MIT"
] | 1 | 2022-03-14T07:35:09.000Z | 2022-03-14T07:35:09.000Z | # Generated by Django 3.2.9 on 2021-11-13 14:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0005_authquery_password'),
]
operations = [
migrations.AddField(
model_name='profile',
name='h... | 21.947368 | 67 | 0.568345 | 42 | 417 | 5.547619 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080139 | 0.311751 | 417 | 18 | 68 | 23.166667 | 0.731707 | 0.107914 | 0 | 0 | 1 | 0 | 0.122159 | 0.065341 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c5c4c83c0fcae56bd39628ba7e24ff40a480e5b9 | 3,553 | py | Python | models/van_der_waals.py | HARSHAL-IITB/spa-design-tool | 84d250a02cc3f4af56770550c9f559feb524cb07 | [
"MIT"
] | null | null | null | models/van_der_waals.py | HARSHAL-IITB/spa-design-tool | 84d250a02cc3f4af56770550c9f559feb524cb07 | [
"MIT"
] | null | null | null | models/van_der_waals.py | HARSHAL-IITB/spa-design-tool | 84d250a02cc3f4af56770550c9f559feb524cb07 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# The MIT License (MIT)
#
# Copyright (c) 2015, EPFL Reconfigurable Robotics Laboratory,
# Philip Moseley, philip.moseley@gmail.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (th... | 41.8 | 82 | 0.474529 | 507 | 3,553 | 3.323471 | 0.321499 | 0.022552 | 0.061721 | 0.037389 | 0.232641 | 0.222552 | 0.18635 | 0.15727 | 0.152522 | 0.152522 | 0 | 0.046312 | 0.179567 | 3,553 | 84 | 83 | 42.297619 | 0.531732 | 0.612722 | 0 | 0.342857 | 0 | 0 | 0.046252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.028571 | 0.114286 | 0.371429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
c5ca707dce77fad1c990e8395c01664a2f944aa1 | 4,980 | py | Python | idfy_rest_client/models/person_person_information.py | dealflowteam/Idfy | fa3918a6c54ea0eedb9146578645b7eb1755b642 | [
"MIT"
] | null | null | null | idfy_rest_client/models/person_person_information.py | dealflowteam/Idfy | fa3918a6c54ea0eedb9146578645b7eb1755b642 | [
"MIT"
] | null | null | null | idfy_rest_client/models/person_person_information.py | dealflowteam/Idfy | fa3918a6c54ea0eedb9146578645b7eb1755b642 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
idfy_rest_client.models.person_person_information
This file was automatically generated for Idfy by APIMATIC v2.0 ( https://apimatic.io )
"""
from idfy_rest_client.api_helper import APIHelper
class PersonPersonInformation(object):
"""Implementation of the 'Person.P... | 34.109589 | 121 | 0.555823 | 481 | 4,980 | 5.644491 | 0.237006 | 0.044199 | 0.097974 | 0.1186 | 0.138858 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003454 | 0.360442 | 4,980 | 145 | 122 | 34.344828 | 0.84898 | 0.324699 | 0 | 0 | 1 | 0 | 0.100295 | 0 | 0 | 0 | 0 | 0.103448 | 0 | 1 | 0.023256 | false | 0 | 0.011628 | 0 | 0.081395 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c5d42cfeef185ddf6696d8600cebabde18dc035e | 25,439 | py | Python | odym/modules/test/DSM_test_known_results.py | DominikWiedenhofer/ODYM | 89aca3706b34df02d745f5d76cffc9f50dc2c3e7 | [
"MIT"
] | 3 | 2019-04-01T09:35:29.000Z | 2021-01-03T18:51:55.000Z | odym/modules/test/DSM_test_known_results.py | DominikWiedenhofer/ODYM | 89aca3706b34df02d745f5d76cffc9f50dc2c3e7 | [
"MIT"
] | null | null | null | odym/modules/test/DSM_test_known_results.py | DominikWiedenhofer/ODYM | 89aca3706b34df02d745f5d76cffc9f50dc2c3e7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 11 16:19:39 2014
"""
import os
import sys
import imp
# Put location of
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..\\..')) + '\\modules') # add ODYM module directory to system path
#NOTE: Hidden variable __file__ must be know to script ... | 59.576112 | 182 | 0.626243 | 3,649 | 25,439 | 4.179775 | 0.160866 | 0.037372 | 0.04701 | 0.051665 | 0.591922 | 0.541372 | 0.498951 | 0.460858 | 0.436992 | 0.385654 | 0 | 0.301661 | 0.225952 | 25,439 | 426 | 183 | 59.715962 | 0.472906 | 0.073706 | 0 | 0.208723 | 0 | 0 | 0.007163 | 0 | 0 | 0 | 0 | 0 | 0.174455 | 1 | 0.037383 | false | 0 | 0.018692 | 0 | 0.05919 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c5d6d1a64a423018703822d97798dfe358235126 | 1,081 | py | Python | HLTrigger/Configuration/python/HLT_75e33/paths/HLT_DoublePFPuppiJets128_DoublePFPuppiBTagDeepCSV_2p4_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:24:46.000Z | 2021-11-30T16:24:46.000Z | HLTrigger/Configuration/python/HLT_75e33/paths/HLT_DoublePFPuppiJets128_DoublePFPuppiBTagDeepCSV_2p4_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 4 | 2021-11-29T13:57:56.000Z | 2022-03-29T06:28:36.000Z | HLTrigger/Configuration/python/HLT_75e33/paths/HLT_DoublePFPuppiJets128_DoublePFPuppiBTagDeepCSV_2p4_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:16:05.000Z | 2021-11-30T16:16:05.000Z | import FWCore.ParameterSet.Config as cms
from ..modules.hltBTagPFPuppiDeepCSV0p865DoubleEta2p4_cfi import *
from ..modules.hltDoublePFPuppiJets128Eta2p4MaxDeta1p6_cfi import *
from ..modules.hltDoublePFPuppiJets128MaxEta2p4_cfi import *
from ..modules.l1tDoublePFPuppiJet112offMaxEta2p4_cfi import *
from ..modules.l1tD... | 41.576923 | 68 | 0.848289 | 72 | 1,081 | 12.555556 | 0.347222 | 0.099558 | 0.129425 | 0.121681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073045 | 0.100833 | 1,081 | 25 | 69 | 43.24 | 0.856996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.478261 | 0 | 0.478261 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
c5de930741f4d8551e11905355564ca78fd72a62 | 320 | py | Python | alertmanager_telegram/config.py | medeirosjrm/alertmanager-telegram | ff9701936ec766b7992399fd741d8a8a4dab3957 | [
"Apache-2.0"
] | 5 | 2020-05-20T11:37:37.000Z | 2021-11-23T09:04:14.000Z | alertmanager_telegram/config.py | medeirosjrm/alertmanager-telegram | ff9701936ec766b7992399fd741d8a8a4dab3957 | [
"Apache-2.0"
] | null | null | null | alertmanager_telegram/config.py | medeirosjrm/alertmanager-telegram | ff9701936ec766b7992399fd741d8a8a4dab3957 | [
"Apache-2.0"
] | 3 | 2021-01-31T17:57:08.000Z | 2021-11-24T13:33:31.000Z | import os
TELEGRAM_CHAT_ID = os.environ.get("TELEGRAM_CHAT_ID")
if not TELEGRAM_CHAT_ID:
raise ValueError("No TELEGRAM_CHAT_ID set for application")
TELEGRAM_TOKEN = os.environ.get("TELEGRAM_TOKEN")
if not TELEGRAM_TOKEN:
raise ValueError("No TELEGRAM_TOKEN set for application")
TEMPLATES_AUTO_RELOAD = True
| 26.666667 | 63 | 0.796875 | 48 | 320 | 5.020833 | 0.416667 | 0.19917 | 0.232365 | 0.165975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 320 | 11 | 64 | 29.090909 | 0.860714 | 0 | 0 | 0 | 0 | 0 | 0.33125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
c5e00eaee5bf1dc4f3ef2430a8612b17e78c2729 | 282 | py | Python | appexemple/__main__.py | yoannmos/Inupdater-AppExemple | ac62430a8ca02505eb73afaff698500b7f46ea31 | [
"MIT"
] | null | null | null | appexemple/__main__.py | yoannmos/Inupdater-AppExemple | ac62430a8ca02505eb73afaff698500b7f46ea31 | [
"MIT"
] | null | null | null | appexemple/__main__.py | yoannmos/Inupdater-AppExemple | ac62430a8ca02505eb73afaff698500b7f46ea31 | [
"MIT"
] | null | null | null | import sys
from pathlib import Path
from appexemple import __version__
print(
f"""
Hello you are in App Exemple version {__version__}\n
sys.argv[-1] : {sys.argv[-1]}\n
Path().cwd() : {Path().cwd()}\n
Path(__file__) : {Path(__file__)},\n
"""
)
input("Press [Enter] to quit.")
| 17.625 | 52 | 0.663121 | 43 | 282 | 3.976744 | 0.581395 | 0.081871 | 0.093567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.148936 | 282 | 15 | 53 | 18.8 | 0.704167 | 0 | 0 | 0 | 0 | 0 | 0.62766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c5e73f85a5d535b9725cdc5daf85b03ea7c65ebb | 904 | py | Python | venv/lib/python3.7/site-packages/webdriver_manager/microsoft.py | wayshon/pylogin | 12ecfddc3ceaf552a42f62608027924541c63254 | [
"Apache-2.0"
] | null | null | null | venv/lib/python3.7/site-packages/webdriver_manager/microsoft.py | wayshon/pylogin | 12ecfddc3ceaf552a42f62608027924541c63254 | [
"Apache-2.0"
] | 7 | 2019-12-04T23:08:08.000Z | 2022-02-10T12:47:38.000Z | venv/lib/python3.7/site-packages/webdriver_manager/microsoft.py | wayshon/pylogin | 12ecfddc3ceaf552a42f62608027924541c63254 | [
"Apache-2.0"
] | null | null | null | from webdriver_manager.driver import EdgeDriver, IEDriver
from webdriver_manager.manager import DriverManager
from webdriver_manager import utils
class EdgeDriverManager(DriverManager):
def __init__(self, version=None,
os_type=utils.os_name()):
super(EdgeDriverManager, self).__init__()
... | 34.769231 | 73 | 0.683628 | 104 | 904 | 5.625 | 0.269231 | 0.071795 | 0.102564 | 0.082051 | 0.451282 | 0.451282 | 0.451282 | 0.451282 | 0.451282 | 0.451282 | 0 | 0 | 0.215708 | 904 | 25 | 74 | 36.16 | 0.825106 | 0.034292 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.176471 | 0.117647 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
c5ef8d7c1493136be617512f99564772f9d404af | 1,354 | py | Python | Python/sir_cost.py | Wasim5620/SIRmodel | bbca1431673dc5450f290db1235eb73e92e74979 | [
"MIT"
] | 26 | 2018-08-08T20:40:21.000Z | 2022-01-13T19:46:40.000Z | Python/sir_cost.py | Wasim5620/SIRmodel | bbca1431673dc5450f290db1235eb73e92e74979 | [
"MIT"
] | 24 | 2020-03-25T19:35:43.000Z | 2022-02-10T11:46:50.000Z | Python/sir_cost.py | Wasim5620/SIRmodel | bbca1431673dc5450f290db1235eb73e92e74979 | [
"MIT"
] | 9 | 2017-07-22T04:23:15.000Z | 2021-03-19T09:42:35.000Z | # cost function for the SIR model for python 2.7
# Marisa Eisenberg (marisae@umich.edu)
# Yu-Han Kao (kaoyh@umich.edu) -7-9-17
import numpy as np
import sir_ode
from scipy.stats import poisson
from scipy.stats import norm
from scipy.integrate import odeint as ode
def NLL(params, data, times): #negative log likelihoo... | 46.689655 | 117 | 0.697194 | 230 | 1,354 | 4.086957 | 0.53913 | 0.025532 | 0.029787 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012015 | 0.200886 | 1,354 | 28 | 118 | 48.357143 | 0.856747 | 0.693501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
c5f1d3547439c81f976d6e6a8b962ce796bdbe68 | 125 | py | Python | fhirbug/constants.py | VerdantAI/fhirbug | 8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d | [
"MIT"
] | 8 | 2019-01-06T18:11:20.000Z | 2022-02-24T02:06:55.000Z | fhirbug/constants.py | VerdantAI/fhirbug | 8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d | [
"MIT"
] | 5 | 2019-01-25T14:15:35.000Z | 2021-06-01T23:22:41.000Z | fhirbug/constants.py | VerdantAI/fhirbug | 8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d | [
"MIT"
] | 3 | 2020-10-14T23:09:29.000Z | 2021-08-09T19:27:31.000Z |
# Audit Event Outcomes
AUDIT_SUCCESS = "0"
AUDIT_MINOR_FAILURE = "4"
AUDIT_SERIOUS_FAILURE = "8"
AUDIT_MAJOR_FAILURE = "12"
| 17.857143 | 27 | 0.76 | 18 | 125 | 4.888889 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046296 | 0.136 | 125 | 6 | 28 | 20.833333 | 0.768519 | 0.16 | 0 | 0 | 0 | 0 | 0.04902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
c5f32783266b0ae2f58b621ca0211597718a479a | 323 | py | Python | task_queue/management/commands/run_scheduler.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 9 | 2019-03-26T14:50:00.000Z | 2020-11-10T16:44:08.000Z | task_queue/management/commands/run_scheduler.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 22 | 2019-03-02T23:16:13.000Z | 2022-02-27T10:36:36.000Z | task_queue/management/commands/run_scheduler.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 5 | 2019-04-24T00:51:30.000Z | 2020-11-06T18:31:49.000Z | import asyncio
from django.core.management.base import BaseCommand
from Harvest.utils import get_logger
from task_queue.scheduler import QueueScheduler
logger = get_logger(__name__)
class Command(BaseCommand):
help = "Run the queue consumer"
def handle(self, *args, **options):
QueueScheduler().run... | 20.1875 | 51 | 0.755418 | 40 | 323 | 5.925 | 0.7 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160991 | 323 | 15 | 52 | 21.533333 | 0.874539 | 0 | 0 | 0 | 0 | 0 | 0.068111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
c5f43a8aa085560b1c95a6c088b9ec19d6141f65 | 2,005 | py | Python | examples/example2.py | alenaizan/resp | 41c58f465f9f3c00225dba9dfa54e5269a970240 | [
"BSD-3-Clause"
] | 10 | 2019-03-15T20:33:02.000Z | 2021-12-15T02:05:28.000Z | examples/example2.py | alenaizan/resp | 41c58f465f9f3c00225dba9dfa54e5269a970240 | [
"BSD-3-Clause"
] | 18 | 2018-06-13T04:10:39.000Z | 2022-03-18T08:17:33.000Z | examples/example2.py | alenaizan/resp | 41c58f465f9f3c00225dba9dfa54e5269a970240 | [
"BSD-3-Clause"
] | 5 | 2018-06-13T02:57:28.000Z | 2021-06-08T15:43:15.000Z | import psi4
import resp
# Initialize two different conformations of ethanol
geometry = """C 0.00000000 0.00000000 0.00000000
C 1.48805540 -0.00728176 0.39653260
O 2.04971655 1.37648153 0.25604810
H 3.06429978 1.37151670 0.52641124
H 1.58679428 -0.33618761 1.43102358
H 2.03441010 -0.68906454 -... | 30.378788 | 79 | 0.653367 | 293 | 2,005 | 4.409556 | 0.419795 | 0.041796 | 0.03096 | 0.055728 | 0.139319 | 0.094427 | 0.058824 | 0.058824 | 0.058824 | 0.058824 | 0 | 0.336484 | 0.208479 | 2,005 | 65 | 80 | 30.846154 | 0.477631 | 0.083292 | 0 | 0.078431 | 0 | 0 | 0.505459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.039216 | 0 | 0.039216 | 0.098039 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a84380c1f97670fcb660541a388530604b2cd9bd | 1,180 | py | Python | bot/audio_trial2.py | Nova-Striker/discord-bot | 1c977711f348467bd73e1886c27ad4a9a93c779b | [
"Apache-2.0"
] | 1 | 2020-11-10T06:33:49.000Z | 2020-11-10T06:33:49.000Z | bot/audio_trial2.py | Nova-Striker/discord-bot | 1c977711f348467bd73e1886c27ad4a9a93c779b | [
"Apache-2.0"
] | null | null | null | bot/audio_trial2.py | Nova-Striker/discord-bot | 1c977711f348467bd73e1886c27ad4a9a93c779b | [
"Apache-2.0"
] | 1 | 2020-11-13T17:12:00.000Z | 2020-11-13T17:12:00.000Z | ##incompleted yt tuitorial
##import discord
##import json
##import asyncio
##import youtube_dl
##import shell
##import os
##from discord.utils import get
##from discord.ext import commands
##
##@client.command(pass_context=True)
##async def join(ctx):
## global voice
## channel=ctx.message.author... | 28.095238 | 62 | 0.626271 | 149 | 1,180 | 4.879195 | 0.422819 | 0.053645 | 0.070151 | 0.099037 | 0.459422 | 0.459422 | 0.401651 | 0.302613 | 0.302613 | 0.302613 | 0 | 0 | 0.207627 | 1,180 | 41 | 63 | 28.780488 | 0.77754 | 0.854237 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a8487bc9414b8343a3c74e1a9dd0ffa5bd1bc6e4 | 1,012 | py | Python | algs4/max_pq.py | dumpmemory/algs4-py | 8555076b554583b5438ed5180e2815cf049fb233 | [
"MIT"
] | 230 | 2018-02-27T02:26:44.000Z | 2022-03-29T10:26:57.000Z | algs4/max_pq.py | dumpmemory/algs4-py | 8555076b554583b5438ed5180e2815cf049fb233 | [
"MIT"
] | 5 | 2018-04-06T12:08:56.000Z | 2021-12-19T09:44:58.000Z | algs4/max_pq.py | dumpmemory/algs4-py | 8555076b554583b5438ed5180e2815cf049fb233 | [
"MIT"
] | 55 | 2018-02-27T02:26:45.000Z | 2022-03-30T03:51:41.000Z | class MaxPQ:
def __init__(self):
self.pq = []
def insert(self, v):
self.pq.append(v)
self.swim(len(self.pq) - 1)
def max(self):
return self.pq[0]
def del_max(self, ):
m = self.pq[0]
self.pq[0], self.pq[-1] = self.pq[-1], self.pq[0]
self.pq = se... | 23 | 65 | 0.414032 | 162 | 1,012 | 2.549383 | 0.185185 | 0.40678 | 0.152542 | 0.106538 | 0.348668 | 0.234867 | 0.099274 | 0.099274 | 0 | 0 | 0 | 0.042017 | 0.412055 | 1,012 | 43 | 66 | 23.534884 | 0.652101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0 | 0.090909 | 0.393939 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a84ba5a5805b33c3b1ad0afc0fc822a27f2c5d05 | 2,926 | py | Python | tests/test_python.py | sfeltman/libsmf | a70eb477732d2e8584af59389b4909541cf5bc98 | [
"BSD-2-Clause"
] | 1 | 2019-04-15T01:37:55.000Z | 2019-04-15T01:37:55.000Z | tests/test_python.py | sfeltman/libsmf | a70eb477732d2e8584af59389b4909541cf5bc98 | [
"BSD-2-Clause"
] | null | null | null | tests/test_python.py | sfeltman/libsmf | a70eb477732d2e8584af59389b4909541cf5bc98 | [
"BSD-2-Clause"
] | null | null | null | import os
import unittest
import tempfile
from gi.repository import Smf
class Test(unittest.TestCase):
def setUp(self):
self.path = os.path.dirname(__file__)
def compare_smf_files(self, a, b):
self.assertEqual(a.format, b.format)
self.assertEqual(a.ppqn, b.ppqn)
self.assertEq... | 38 | 86 | 0.669515 | 369 | 2,926 | 5.02981 | 0.230352 | 0.210129 | 0.101832 | 0.016164 | 0.148707 | 0.116379 | 0.043103 | 0.043103 | 0.043103 | 0.043103 | 0 | 0.002677 | 0.234108 | 2,926 | 76 | 87 | 38.5 | 0.825524 | 0.059467 | 0 | 0 | 0 | 0 | 0.013464 | 0 | 0 | 0 | 0 | 0 | 0.418182 | 1 | 0.090909 | false | 0.018182 | 0.072727 | 0 | 0.181818 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a855889fb82fea703cc4439aa3a13845ae7ffaa9 | 1,903 | py | Python | examples/ADT.py | SophiaZhyrovetska/Music_analizer | 9454aa1df9a75b25526a972c620a4aea3f30541f | [
"MIT"
] | 2 | 2018-06-26T21:49:49.000Z | 2018-06-26T21:49:53.000Z | examples/ADT.py | SophiaZhyrovetska/Music_analizer | 9454aa1df9a75b25526a972c620a4aea3f30541f | [
"MIT"
] | 1 | 2018-06-20T23:17:52.000Z | 2018-06-27T08:43:49.000Z | examples/ADT.py | SophiaZhyrovetska/Music_analizer | 9454aa1df9a75b25526a972c620a4aea3f30541f | [
"MIT"
] | 1 | 2018-06-26T21:49:52.000Z | 2018-06-26T21:49:52.000Z | class Song:
"A class for representing a song"
def __init__(self, name, singer):
"""
Initialize a new song with it's name and singer
:param name: str
:param singer: str
"""
self.name = name
self.singer = singer
self.mood = self.mood()
def text... | 20.462366 | 92 | 0.504467 | 217 | 1,903 | 4.35023 | 0.230415 | 0.081568 | 0.063559 | 0.055085 | 0.247881 | 0.177966 | 0.073093 | 0 | 0 | 0 | 0 | 0 | 0.405675 | 1,903 | 92 | 93 | 20.684783 | 0.83466 | 0.426169 | 0 | 0.451613 | 0 | 0 | 0.169109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.354839 | false | 0.258065 | 0 | 0 | 0.451613 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a87a0c58e2acdc88f9a0c4132a845c88665fa4ac | 1,531 | py | Python | stubs.min/Autodesk/Revit/DB/__init___parts/BRepBuilderGeometryId.py | denfromufa/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2017-07-07T11:15:45.000Z | 2017-07-07T11:15:45.000Z | stubs.min/Autodesk/Revit/DB/__init___parts/BRepBuilderGeometryId.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/Autodesk/Revit/DB/__init___parts/BRepBuilderGeometryId.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class BRepBuilderGeometryId(object,IDisposable):
"""
This class is used by the BRepBuilder class to identify objects it creates (faces,edges,etc.).
BRepBuilderGeometryId(other: BRepBuilderGeometryId)
"""
def Dispose(self):
""" Dispose(self: BRepBuilderGeometryId) """
pass
@staticmethod
def Inva... | 33.282609 | 215 | 0.701502 | 165 | 1,531 | 6.054545 | 0.412121 | 0.035035 | 0.048048 | 0.057057 | 0.113113 | 0.113113 | 0.113113 | 0.113113 | 0.113113 | 0.113113 | 0 | 0 | 0.171783 | 1,531 | 45 | 216 | 34.022222 | 0.787855 | 0.525147 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.4 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a8803c766a451bb61117713eb202084c40d7750f | 1,435 | py | Python | students/k3343/laboratory_works/Berezhnova_Marina/laboratory_work_1/django_project_flights/flights_app/models.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 10 | 2020-03-20T09:06:12.000Z | 2021-07-27T13:06:02.000Z | students/k3343/laboratory_works/Berezhnova_Marina/laboratory_work_1/django_project_flights/flights_app/models.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 134 | 2020-03-23T09:47:48.000Z | 2022-03-12T01:05:19.000Z | students/k3343/laboratory_works/Berezhnova_Marina/laboratory_work_1/django_project_flights/flights_app/models.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 71 | 2020-03-20T12:45:56.000Z | 2021-10-31T19:22:25.000Z | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Companies(models.Model):
name = models.CharField(max_length=30)
def __str__(self):
return "{}".format(self.name)
class Gates(models.Model):
name = models.CharField(max_length=30)
def __... | 27.075472 | 110 | 0.687108 | 175 | 1,435 | 5.451429 | 0.325714 | 0.057652 | 0.073375 | 0.110063 | 0.197065 | 0.159329 | 0.159329 | 0.159329 | 0.159329 | 0.159329 | 0 | 0.014202 | 0.165854 | 1,435 | 52 | 111 | 27.596154 | 0.78279 | 0.016725 | 0 | 0.228571 | 0 | 0 | 0.078779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.057143 | 0.114286 | 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 | 1 | 1 | 0 | 0 | 2 |
a883398d1013f82065fdcd6cb3f64c0a32a024f7 | 743 | py | Python | membership/urls.py | kay-han/building-blog | 2bdbee68b484193c636ed869b2de605df67b2a48 | [
"Unlicense"
] | null | null | null | membership/urls.py | kay-han/building-blog | 2bdbee68b484193c636ed869b2de605df67b2a48 | [
"Unlicense"
] | null | null | null | membership/urls.py | kay-han/building-blog | 2bdbee68b484193c636ed869b2de605df67b2a48 | [
"Unlicense"
] | null | null | null | from django.urls import path
from .views import UserRegisterView, UserEditView, PasswordsChangeView
from django.contrib.auth import views as auth_views #It allows using some of the views that come with the authentication system comes with django
from . import views
urlpatterns = [
path('registeration/', UserRegis... | 57.153846 | 146 | 0.776581 | 90 | 743 | 6.277778 | 0.4 | 0.042478 | 0.035398 | 0.116814 | 0.279646 | 0.279646 | 0.279646 | 0.279646 | 0.279646 | 0.279646 | 0 | 0 | 0.106326 | 743 | 12 | 147 | 61.916667 | 0.850904 | 0.270525 | 0 | 0 | 0 | 0 | 0.244444 | 0.1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.3 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
a89d5ea301daab707e4e307ee463a9e25963e7c1 | 7,626 | py | Python | tests/epc_schemes/test_giai.py | nedap/retail-epcpy | f5a454f2a06053f64bc42e6c6411fbd6cb47e745 | [
"MIT"
] | 2 | 2022-03-21T08:22:30.000Z | 2022-03-22T12:32:29.000Z | tests/epc_schemes/test_giai.py | nedap/retail-epcpy | f5a454f2a06053f64bc42e6c6411fbd6cb47e745 | [
"MIT"
] | 1 | 2022-03-28T14:48:52.000Z | 2022-03-28T14:48:52.000Z | tests/epc_schemes/test_giai.py | nedap/retail-epcpy | f5a454f2a06053f64bc42e6c6411fbd6cb47e745 | [
"MIT"
] | null | null | null | import unittest
from epcpy.epc_schemes.giai import GIAI, GIAIFilterValue
from tests.epc_schemes.test_base_scheme import (
TestEPCSchemeInitMeta,
TestGS1ElementMeta,
TestTagEncodableMeta,
)
class TestGIAIInit(
unittest.TestCase,
metaclass=TestEPCSchemeInitMeta,
scheme=GIAI,
valid_data=[
... | 34.663636 | 80 | 0.550747 | 720 | 7,626 | 5.527778 | 0.134722 | 0.051256 | 0.076884 | 0.074623 | 0.682915 | 0.656533 | 0.574372 | 0.545477 | 0.403769 | 0.36005 | 0 | 0.216465 | 0.31668 | 7,626 | 219 | 81 | 34.821918 | 0.547304 | 0 | 0 | 0.363208 | 0 | 0 | 0.450433 | 0.325334 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.014151 | 0.014151 | 0 | 0.028302 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a89fa94a38be0f7ff83779a36c140bcbf11011b7 | 1,422 | py | Python | publicacion/migrations/0002_remove_publicacion_user_publicacion_autor_and_more.py | chelocastillo1/test | b783e64dbd3071c3ed074e9ce23da047e9bad97d | [
"CC0-1.0"
] | 1 | 2021-12-12T22:27:52.000Z | 2021-12-12T22:27:52.000Z | publicacion/migrations/0002_remove_publicacion_user_publicacion_autor_and_more.py | chelocastillo1/test | b783e64dbd3071c3ed074e9ce23da047e9bad97d | [
"CC0-1.0"
] | null | null | null | publicacion/migrations/0002_remove_publicacion_user_publicacion_autor_and_more.py | chelocastillo1/test | b783e64dbd3071c3ed074e9ce23da047e9bad97d | [
"CC0-1.0"
] | null | null | null | # Generated by Django 4.0 on 2021-12-15 02:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cuenta', '0001_initial'),
('publicacion', '0001_initial'),
]
operations = [
migrations.RemoveField(
... | 28.44 | 116 | 0.561181 | 123 | 1,422 | 6.382114 | 0.447154 | 0.080255 | 0.178344 | 0.214013 | 0.389809 | 0.389809 | 0.173248 | 0.173248 | 0.173248 | 0 | 0 | 0.026887 | 0.319972 | 1,422 | 49 | 117 | 29.020408 | 0.784902 | 0.030239 | 0 | 0.511628 | 1 | 0 | 0.135802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046512 | 0 | 0.116279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a8a48dba10dc8bcece98d956d127819f587eacf1 | 13,796 | py | Python | src/main/java/nl/Ipsen5Server/Service/kik-bot-api-unofficial/examples/kik_unofficial/protobuf/common/v2/model_pb2.py | anthonyscheeres/Ipen5BackendGroep11 | e2675c2ac6580f0a6f1d9e5f755f19405d17e514 | [
"Apache-2.0"
] | null | null | null | src/main/java/nl/Ipsen5Server/Service/kik-bot-api-unofficial/examples/kik_unofficial/protobuf/common/v2/model_pb2.py | anthonyscheeres/Ipen5BackendGroep11 | e2675c2ac6580f0a6f1d9e5f755f19405d17e514 | [
"Apache-2.0"
] | null | null | null | src/main/java/nl/Ipsen5Server/Service/kik-bot-api-unofficial/examples/kik_unofficial/protobuf/common/v2/model_pb2.py | anthonyscheeres/Ipen5BackendGroep11 | e2675c2ac6580f0a6f1d9e5f755f19405d17e514 | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: common/v2/model.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import refle... | 37.79726 | 1,243 | 0.711293 | 1,781 | 13,796 | 5.211679 | 0.130264 | 0.032752 | 0.021978 | 0.071429 | 0.65794 | 0.577031 | 0.551605 | 0.538246 | 0.512821 | 0.512821 | 0 | 0.072892 | 0.125906 | 13,796 | 364 | 1,244 | 37.901099 | 0.696824 | 0.044796 | 0 | 0.574132 | 1 | 0.025237 | 0.25123 | 0.190688 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025237 | 0 | 0.025237 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a8a830fc1bf61dcb27f3d46222c49301867517cd | 1,216 | py | Python | woodstock/auth_backends.py | allink/woodstock | afafecb7c4454f96e51c051044ed8ed74853c048 | [
"BSD-3-Clause"
] | null | null | null | woodstock/auth_backends.py | allink/woodstock | afafecb7c4454f96e51c051044ed8ed74853c048 | [
"BSD-3-Clause"
] | null | null | null | woodstock/auth_backends.py | allink/woodstock | afafecb7c4454f96e51c051044ed8ed74853c048 | [
"BSD-3-Clause"
] | null | null | null | from woodstock.models import Invitee, Participant
from woodstock import settings
from django.core.exceptions import ObjectDoesNotExist
class PersonBackend(object):
supports_object_permissions = False
supports_anonymous_user = False
supports_inactive_user = False
def authenticate(self, username=None, ... | 27.636364 | 68 | 0.649671 | 120 | 1,216 | 6.466667 | 0.358333 | 0.05799 | 0.061856 | 0.073454 | 0.188144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279605 | 1,216 | 43 | 69 | 28.27907 | 0.885845 | 0.081414 | 0 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.103448 | 0.103448 | 0 | 0.655172 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
a8b7116ef65af10b72e0c07da19900a3a9d62e85 | 48,908 | py | Python | deep_disfluency/corpus/tree_pos_map_writer.py | askender/deep_disfluency | bea8403ed954df8eadd3e2b9d98bb7c2b416a665 | [
"MIT"
] | null | null | null | deep_disfluency/corpus/tree_pos_map_writer.py | askender/deep_disfluency | bea8403ed954df8eadd3e2b9d98bb7c2b416a665 | [
"MIT"
] | null | null | null | deep_disfluency/corpus/tree_pos_map_writer.py | askender/deep_disfluency | bea8403ed954df8eadd3e2b9d98bb7c2b416a665 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from collections import defaultdict
import re
from nltk import tree
from swda import CorpusReader
from tree_pos_map import TreeMapCorpus
from tree_pos_map import POSMapCorpus
possibleMistranscription = [("its", "it's"),
("Its", "It's"),
(... | 53.393013 | 86 | 0.329598 | 3,344 | 48,908 | 4.752093 | 0.111842 | 0.015103 | 0.026052 | 0.014725 | 0.574036 | 0.526273 | 0.496445 | 0.46454 | 0.415959 | 0.40073 | 0 | 0.011476 | 0.588431 | 48,908 | 915 | 87 | 53.451366 | 0.777982 | 0.154719 | 0 | 0.633491 | 0 | 0 | 0.025872 | 0.00106 | 0 | 0 | 0 | 0.001093 | 0 | 0 | null | null | 0.006319 | 0.009479 | null | null | 0.022117 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a8c4ef65d4167eae76cb55b333d7586f25c61d43 | 169 | py | Python | base/NeighborResult.py | Holly-Jiang/QCTSA | b90136b9df18fc21ae53b431f1e5e0c6ef786fae | [
"MIT"
] | null | null | null | base/NeighborResult.py | Holly-Jiang/QCTSA | b90136b9df18fc21ae53b431f1e5e0c6ef786fae | [
"MIT"
] | null | null | null | base/NeighborResult.py | Holly-Jiang/QCTSA | b90136b9df18fc21ae53b431f1e5e0c6ef786fae | [
"MIT"
] | null | null | null | class NeighborResult:
def __init__(self):
self.solutions = []
self.choose_path = []
self.current_num = 0
self.curr_solved_gates = []
| 24.142857 | 35 | 0.585799 | 18 | 169 | 5.055556 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.307692 | 169 | 6 | 36 | 28.166667 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 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 | 2 |
a8c77d5a50c3e402e1747bc1dedba092e6e2fa50 | 4,131 | py | Python | machine/EventCase.py | technosvitman/sm_gene | 243d060fec7c642ce74843776a016ded13a68855 | [
"MIT"
] | null | null | null | machine/EventCase.py | technosvitman/sm_gene | 243d060fec7c642ce74843776a016ded13a68855 | [
"MIT"
] | 9 | 2021-08-11T07:25:53.000Z | 2021-09-01T11:10:33.000Z | machine/EventCase.py | technosvitman/sm_gene | 243d060fec7c642ce74843776a016ded13a68855 | [
"MIT"
] | null | null | null |
'''
@brief this class reflect action decision regarding condition
'''
class EventAction():
'''
@brief build event action
@param cond the conditions to perform the action
@param to the target state if any
@param job the job to do if any
'''
def __init__(self, cond="", to=... | 25.189024 | 107 | 0.487775 | 422 | 4,131 | 4.561611 | 0.206161 | 0.041558 | 0.036364 | 0.028052 | 0.204675 | 0.188052 | 0.188052 | 0.154805 | 0.154805 | 0.112208 | 0 | 0 | 0.41007 | 4,131 | 164 | 108 | 25.189024 | 0.789906 | 0.068748 | 0 | 0.185714 | 0 | 0 | 0.018643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242857 | false | 0 | 0 | 0.114286 | 0.485714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
764382ce910f9b78f0afeeafad12a7ae05b25d0c | 2,879 | py | Python | lib/ezdxf/sections/abstract.py | tapnair/DXFer | 8ec957d80c2f251bb78440147d1478106f99b3eb | [
"MIT"
] | 4 | 2019-03-31T00:41:13.000Z | 2021-07-31T05:09:07.000Z | lib/ezdxf/sections/abstract.py | tapnair/DXFer | 8ec957d80c2f251bb78440147d1478106f99b3eb | [
"MIT"
] | null | null | null | lib/ezdxf/sections/abstract.py | tapnair/DXFer | 8ec957d80c2f251bb78440147d1478106f99b3eb | [
"MIT"
] | 5 | 2018-03-29T06:28:07.000Z | 2021-07-31T05:09:08.000Z | # Purpose: entity section
# Created: 13.03.2011
# Copyright (C) 2011, Manfred Moitzi
# License: MIT License
from __future__ import unicode_literals
__author__ = "mozman <mozman@gmx.at>"
from itertools import islice
from ..lldxf.tags import TagGroups, DXFStructureError
from ..lldxf.classifiedtags import ClassifiedTags... | 31.293478 | 104 | 0.658909 | 367 | 2,879 | 4.948229 | 0.313352 | 0.090859 | 0.090859 | 0.029736 | 0.052313 | 0.034141 | 0 | 0 | 0 | 0 | 0 | 0.011009 | 0.242793 | 2,879 | 91 | 105 | 31.637363 | 0.822018 | 0.134422 | 0 | 0.033898 | 0 | 0 | 0.048178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.237288 | false | 0 | 0.084746 | 0.101695 | 0.491525 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
764937dbe3389486664886c5dde62290994457f4 | 551 | py | Python | lessweb/__init__.py | qorzj/lessweb | d21473d724216c3afa1101729137573ff21b7015 | [
"MIT"
] | 17 | 2017-11-02T02:07:35.000Z | 2020-07-23T06:33:36.000Z | lessweb/__init__.py | qorzj/lessweb | d21473d724216c3afa1101729137573ff21b7015 | [
"MIT"
] | 12 | 2018-02-06T05:52:04.000Z | 2021-02-07T14:43:35.000Z | lessweb/__init__.py | qorzj/lessweb | d21473d724216c3afa1101729137573ff21b7015 | [
"MIT"
] | 2 | 2018-06-06T09:30:44.000Z | 2018-09-19T02:03:16.000Z | """lessweb: 用最python3的方法创建web apps"""
__version__ = '0.3.3'
__author__ = [
'qorzj <inull@qq.com>',
]
__license__ = "MIT"
# from . import application, context, model, storage, webapi
from .application import interceptor, Application
from .context import Context, Request, Response
from .storage import Storage
fr... | 26.238095 | 84 | 0.771325 | 64 | 551 | 6.4375 | 0.59375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008421 | 0.137931 | 551 | 20 | 85 | 27.55 | 0.858947 | 0.165154 | 0 | 0 | 0 | 0 | 0.061674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.615385 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
765bdbd234fb42e7aa71522393ad38a642d864a9 | 13,184 | py | Python | web/adoption_stories/adopteeStories/models.py | CuriousG102/Chinese-Adoption | 8aa487b859ee330bd524381e8688aae68c225437 | [
"MIT"
] | null | null | null | web/adoption_stories/adopteeStories/models.py | CuriousG102/Chinese-Adoption | 8aa487b859ee330bd524381e8688aae68c225437 | [
"MIT"
] | null | null | null | web/adoption_stories/adopteeStories/models.py | CuriousG102/Chinese-Adoption | 8aa487b859ee330bd524381e8688aae68c225437 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.encoding import force_text
from django.utils.translation import ugettext_lazy as _
from embed_video.fields import EmbedYoutubeField, EmbedSoundcloudField
from .custom_model_fields import RestrictedImageField
from .default_settings import ADOPTEE_STORIES_CONFIG as config
... | 51.701961 | 112 | 0.586999 | 1,463 | 13,184 | 5.101846 | 0.122351 | 0.091372 | 0.109325 | 0.096463 | 0.708467 | 0.700831 | 0.689309 | 0.669078 | 0.6597 | 0.609593 | 0 | 0.004548 | 0.332828 | 13,184 | 254 | 113 | 51.905512 | 0.84402 | 0.22679 | 0 | 0.515924 | 0 | 0 | 0.127504 | 0.00977 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038217 | false | 0 | 0.038217 | 0.006369 | 0.496815 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
765c85c98a88ed131ecd9f838f2186d4fb82671f | 169 | py | Python | core/utils/gpu_check.py | andregri/keras-segmentation | 699043adc4dd74b97cbed3d3e5b8d8aafb03b71c | [
"Apache-2.0"
] | null | null | null | core/utils/gpu_check.py | andregri/keras-segmentation | 699043adc4dd74b97cbed3d3e5b8d8aafb03b71c | [
"Apache-2.0"
] | null | null | null | core/utils/gpu_check.py | andregri/keras-segmentation | 699043adc4dd74b97cbed3d3e5b8d8aafb03b71c | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
def check_gpu():
n_gpus = len(tf.config.experimental.list_physical_devices('GPU'))
print("Num GPUs Available: ", n_gpus)
check_gpu()
| 16.9 | 69 | 0.715976 | 25 | 169 | 4.6 | 0.72 | 0.13913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159763 | 169 | 9 | 70 | 18.777778 | 0.809859 | 0 | 0 | 0 | 0 | 0 | 0.136095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0.2 | 1 | 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 | 2 |
766aab70e53fbf30d766b2eb2c674ed0d93615eb | 604 | py | Python | cavoke_server/tasks.py | cavoke-project/cavoke_server | 5d2e39ca760e140ab9a8b0c50b45a6d4b22e21b5 | [
"MIT"
] | null | null | null | cavoke_server/tasks.py | cavoke-project/cavoke_server | 5d2e39ca760e140ab9a8b0c50b45a6d4b22e21b5 | [
"MIT"
] | 1 | 2020-01-06T17:47:03.000Z | 2020-01-06T17:47:03.000Z | cavoke_server/tasks.py | cavoke-project/cavoke-server | 5d2e39ca760e140ab9a8b0c50b45a6d4b22e21b5 | [
"MIT"
] | null | null | null | # from celery.schedules import crontab
# from celery.task import periodic_task
# from django.utils import timezone
# from cavoke_app.models import GameSession
#
#
# @periodic_task(run_every=crontab(minute='*/1'))
# def delete_old_foos():
# # Query all the foos in our database
# gss = GameSession.objects.all()
#... | 30.2 | 67 | 0.655629 | 78 | 604 | 5 | 0.653846 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002165 | 0.235099 | 604 | 19 | 68 | 31.789474 | 0.841991 | 0.928808 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
767abb3e3d12d3c5ac07f73a70a0a54a78206ee1 | 302 | py | Python | packages/models-library/src/models_library/__init__.py | elisabettai/osparc-simcore | ad7b6e05111b50fe95e49306a992170490a7247f | [
"MIT"
] | null | null | null | packages/models-library/src/models_library/__init__.py | elisabettai/osparc-simcore | ad7b6e05111b50fe95e49306a992170490a7247f | [
"MIT"
] | 55 | 2018-05-15T09:47:00.000Z | 2022-03-31T06:56:50.000Z | packages/models-library/src/models_library/__init__.py | mrnicegyu11/osparc-simcore | b6fa6c245dbfbc18cc74a387111a52de9b05d1f4 | [
"MIT"
] | 1 | 2020-04-22T15:06:58.000Z | 2020-04-22T15:06:58.000Z | """ osparc's service models library
"""
#
# NOTE:
# - "examples" = [ ...] keyword and NOT "example". See https://json-schema.org/understanding-json-schema/reference/generic.html#annotations
#
import pkg_resources
__version__: str = pkg_resources.get_distribution("simcore-models-library").version
| 25.166667 | 141 | 0.738411 | 36 | 302 | 6 | 0.805556 | 0.12037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109272 | 302 | 11 | 142 | 27.454545 | 0.802974 | 0.586093 | 0 | 0 | 0 | 0 | 0.196429 | 0.196429 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
76803418e7c483c10d751d87b7054156573f1939 | 586 | py | Python | src/waldur_ansible/python_management/migrations/0004_removed_virtual_env_field_from_global_requests.py | opennode/waldur-ansible | c81c5f0491be02fa9a55a6d5bf9d845750fd1ba9 | [
"MIT"
] | 1 | 2017-09-05T08:09:47.000Z | 2017-09-05T08:09:47.000Z | src/waldur_ansible/python_management/migrations/0004_removed_virtual_env_field_from_global_requests.py | opennode/waldur-ansible | c81c5f0491be02fa9a55a6d5bf9d845750fd1ba9 | [
"MIT"
] | null | null | null | src/waldur_ansible/python_management/migrations/0004_removed_virtual_env_field_from_global_requests.py | opennode/waldur-ansible | c81c5f0491be02fa9a55a6d5bf9d845750fd1ba9 | [
"MIT"
] | 3 | 2017-09-24T03:13:19.000Z | 2018-08-12T07:44:38.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-03-27 14:01
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('python_management', '0003_added_unique_constraint'),
]
operations = [
migrations.Re... | 24.416667 | 64 | 0.645051 | 55 | 586 | 6.6 | 0.709091 | 0.115702 | 0.143251 | 0.165289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048165 | 0.255973 | 586 | 23 | 65 | 25.478261 | 0.784404 | 0.116041 | 0 | 0.375 | 1 | 0 | 0.279612 | 0.184466 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
76adf99c53be9fdd9abcf7404d34ffbbdbf4e9ae | 1,422 | py | Python | api-reference-examples/python/pytx/pytx/threat_descriptor.py | b-bold/ThreatExchange | 6f8d0dc803faccf576c9398569bb52d54a4f9a87 | [
"BSD-3-Clause"
] | 997 | 2015-03-13T18:04:03.000Z | 2022-03-30T12:09:10.000Z | api-reference-examples/python/pytx/pytx/threat_descriptor.py | b-bold/ThreatExchange | 6f8d0dc803faccf576c9398569bb52d54a4f9a87 | [
"BSD-3-Clause"
] | 444 | 2015-03-26T17:28:49.000Z | 2022-03-28T19:34:05.000Z | api-reference-examples/python/pytx/pytx/threat_descriptor.py | b-bold/ThreatExchange | 6f8d0dc803faccf576c9398569bb52d54a4f9a87 | [
"BSD-3-Clause"
] | 294 | 2015-03-13T22:19:43.000Z | 2022-03-30T08:42:45.000Z | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from .common import Common
from .vocabulary import ThreatDescriptor as td
from .vocabulary import ThreatExchange as t
class ThreatDescriptor(Common):
_URL = t.URL + t.VERSION + t.THREAT_DESCRIPTORS
_DETAILS = t.URL + t.VERSION
_RELATE... | 20.911765 | 70 | 0.553446 | 162 | 1,422 | 4.666667 | 0.358025 | 0.021164 | 0.019841 | 0.047619 | 0.600529 | 0.600529 | 0.600529 | 0.600529 | 0.600529 | 0.600529 | 0 | 0 | 0.357947 | 1,422 | 67 | 71 | 21.223881 | 0.828039 | 0.04782 | 0 | 0.711864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.050847 | 0 | 0.186441 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
76bbc2598c25fd191128e41eb9c547440be4a5b9 | 86 | py | Python | src/integ_test_resources/common/platforms.py | kaichengyan/amplify-ci-support | 5a56acd7fa8fb37ec7db975e080be6ba838dcec7 | [
"Apache-2.0"
] | 9 | 2020-06-09T21:59:02.000Z | 2021-06-27T07:15:18.000Z | src/integ_test_resources/common/platforms.py | kaichengyan/amplify-ci-support | 5a56acd7fa8fb37ec7db975e080be6ba838dcec7 | [
"Apache-2.0"
] | 27 | 2020-05-06T13:48:06.000Z | 2022-02-14T10:10:33.000Z | src/integ_test_resources/common/platforms.py | kaichengyan/amplify-ci-support | 5a56acd7fa8fb37ec7db975e080be6ba838dcec7 | [
"Apache-2.0"
] | 12 | 2020-05-15T11:51:41.000Z | 2022-02-11T18:07:15.000Z | from enum import Enum
class Platform(Enum):
IOS = "ios"
ANDROID = "android"
| 12.285714 | 23 | 0.639535 | 11 | 86 | 5 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255814 | 86 | 6 | 24 | 14.333333 | 0.859375 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 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 | 2 |
4f1d60a2d4237bbd3efae93314b622ddcfa12232 | 408 | py | Python | examples/ivis_job/docker_build.py | smartarch/qoscloud | 13b11b0baaad0d9b234d7defccdbd8756c2618a1 | [
"MIT"
] | 2 | 2021-02-20T13:53:02.000Z | 2021-11-15T16:11:32.000Z | examples/ivis_job/docker_build.py | smartarch/qoscloud | 13b11b0baaad0d9b234d7defccdbd8756c2618a1 | [
"MIT"
] | null | null | null | examples/ivis_job/docker_build.py | smartarch/qoscloud | 13b11b0baaad0d9b234d7defccdbd8756c2618a1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
This script builds the docker images of image client and recognizer server and pushes them to dockerhub.
"""
from subprocess import call
print("Building the default docker image")
call("docker build -t d3srepo/qoscloud-default -f Dockerfile ../..", shell=True)
print(... | 31.384615 | 104 | 0.742647 | 58 | 408 | 5.224138 | 0.689655 | 0.072607 | 0.145215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011268 | 0.129902 | 408 | 12 | 105 | 34 | 0.842254 | 0.362745 | 0 | 0 | 0 | 0 | 0.621514 | 0.191235 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0.4 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4f24e90f804e495cead994aea15903dbefcdaca4 | 141 | py | Python | Semana 07/frequencia.py | heltonricardo/grupo-estudos-maratonas-programacao | 0c07d84a900858616647d07574ec56b0533cddfb | [
"MIT"
] | null | null | null | Semana 07/frequencia.py | heltonricardo/grupo-estudos-maratonas-programacao | 0c07d84a900858616647d07574ec56b0533cddfb | [
"MIT"
] | null | null | null | Semana 07/frequencia.py | heltonricardo/grupo-estudos-maratonas-programacao | 0c07d84a900858616647d07574ec56b0533cddfb | [
"MIT"
] | null | null | null | n = int(input())
v = []
for i in range(n): v.append(int(input()))
s = sorted(set(v))
for i in s: print(f'{i} aparece {v.count(i)} vez (es)')
| 23.5 | 55 | 0.574468 | 30 | 141 | 2.7 | 0.6 | 0.197531 | 0.123457 | 0.17284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163121 | 141 | 5 | 56 | 28.2 | 0.686441 | 0 | 0 | 0 | 0 | 0 | 0.234043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
4f42f0318bdc9f9e318bf4c6ab8ff73477869c44 | 1,337 | py | Python | tests/core/test_base_component.py | strickvl/zenml | f1499e9c3fee00fd1d66de14cab66c4472c0085d | [
"Apache-2.0"
] | 1,275 | 2020-11-19T14:18:25.000Z | 2021-08-13T07:31:39.000Z | tests/core/test_base_component.py | strickvl/zenml | f1499e9c3fee00fd1d66de14cab66c4472c0085d | [
"Apache-2.0"
] | 62 | 2020-11-30T16:06:14.000Z | 2021-08-10T08:34:52.000Z | tests/core/test_base_component.py | strickvl/zenml | f1499e9c3fee00fd1d66de14cab66c4472c0085d | [
"Apache-2.0"
] | 75 | 2020-12-22T19:15:08.000Z | 2021-08-13T03:07:50.000Z | # Copyright (c) ZenML GmbH 2021. All Rights Reserved.
#
# 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 applica... | 33.425 | 70 | 0.735228 | 188 | 1,337 | 5.154255 | 0.569149 | 0.06192 | 0.026832 | 0.033024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007394 | 0.190726 | 1,337 | 39 | 71 | 34.282051 | 0.88817 | 0.727001 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4f43d6d7f8cc17aa055442affd0c29f290e5addd | 591 | py | Python | courses/migrations/0009_alter_skills_program_duration_and_more.py | sisekelohub/sisekelo | 7e1b0de6abf07e65ed746d0d929c3de37fb421c3 | [
"MIT"
] | 1 | 2022-02-20T16:03:04.000Z | 2022-02-20T16:03:04.000Z | courses/migrations/0009_alter_skills_program_duration_and_more.py | sisekelohub/sisekelo | 7e1b0de6abf07e65ed746d0d929c3de37fb421c3 | [
"MIT"
] | null | null | null | courses/migrations/0009_alter_skills_program_duration_and_more.py | sisekelohub/sisekelo | 7e1b0de6abf07e65ed746d0d929c3de37fb421c3 | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2022-01-02 21:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0008_alter_learnership_duration'),
]
operations = [
migrations.AlterField(
model_name='skills_program',
nam... | 24.625 | 61 | 0.602369 | 60 | 591 | 5.783333 | 0.65 | 0.115274 | 0.144092 | 0.167147 | 0.293948 | 0.293948 | 0.293948 | 0.293948 | 0.293948 | 0.293948 | 0 | 0.052257 | 0.287648 | 591 | 23 | 62 | 25.695652 | 0.771972 | 0.072758 | 0 | 0.470588 | 1 | 0 | 0.157509 | 0.056777 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4f54da94c5e8d003456c1c27b57ad6a8d761118e | 355 | py | Python | ocdskingfisher/sources/digiwhist_germany.py | odscjames/lhs-alpha | d882cadfcf3464fd29529cb862567dc311d892e2 | [
"BSD-3-Clause"
] | null | null | null | ocdskingfisher/sources/digiwhist_germany.py | odscjames/lhs-alpha | d882cadfcf3464fd29529cb862567dc311d892e2 | [
"BSD-3-Clause"
] | null | null | null | ocdskingfisher/sources/digiwhist_germany.py | odscjames/lhs-alpha | d882cadfcf3464fd29529cb862567dc311d892e2 | [
"BSD-3-Clause"
] | null | null | null | from ocdskingfisher.sources.digiwhist_base import DigiwhistBaseSource
class DigiwhistGermanyRepublicSource(DigiwhistBaseSource):
publisher_name = 'Digiwhist Germany'
url = 'https://opentender.eu/download'
source_id = 'digiwhist_germany'
def get_data_url(self):
return 'https://opentender.eu/da... | 32.272727 | 74 | 0.771831 | 40 | 355 | 6.65 | 0.75 | 0.120301 | 0.12782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132394 | 355 | 10 | 75 | 35.5 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0.340845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
4f5645014936668c159ef7897d13239bafc29c34 | 209 | py | Python | reagent/core/fb_checker.py | alexnikulkov/ReAgent | e404c5772ea4118105c2eb136ca96ad5ca8e01db | [
"BSD-3-Clause"
] | 1 | 2021-05-03T15:18:58.000Z | 2021-05-03T15:18:58.000Z | reagent/core/fb_checker.py | alexnikulkov/ReAgent | e404c5772ea4118105c2eb136ca96ad5ca8e01db | [
"BSD-3-Clause"
] | null | null | null | reagent/core/fb_checker.py | alexnikulkov/ReAgent | e404c5772ea4118105c2eb136ca96ad5ca8e01db | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import importlib.util
def is_fb_environment():
if importlib.util.find_spec("fblearner") is not None:
return True
return False
IS_FB_ENVIRONMENT = is_fb_environment()
| 17.416667 | 57 | 0.727273 | 30 | 209 | 4.833333 | 0.666667 | 0.082759 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005848 | 0.181818 | 209 | 11 | 58 | 19 | 0.842105 | 0.100478 | 0 | 0 | 0 | 0 | 0.048128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
4f7749d7fdeb213a71c50fac2777773a4cae4cde | 982 | py | Python | sdk/ml/azure-ai-ml/azure/ai/ml/_schema/_sweep/search_space/randint.py | dubiety/azure-sdk-for-python | 62ffa839f5d753594cf0fe63668f454a9d87a346 | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | sdk/ml/azure-ai-ml/azure/ai/ml/_schema/_sweep/search_space/randint.py | ellhe-blaster/azure-sdk-for-python | 82193ba5e81cc5e5e5a5239bba58abe62e86f469 | [
"MIT"
] | null | null | null | sdk/ml/azure-ai-ml/azure/ai/ml/_schema/_sweep/search_space/randint.py | ellhe-blaster/azure-sdk-for-python | 82193ba5e81cc5e5e5a5239bba58abe62e86f469 | [
"MIT"
] | null | null | null | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
from azure.ai.ml.constants import SearchSpace
from marshmallow import fields, post_load, pre_dump, ValidationError
from azure.ai.ml._schema... | 35.071429 | 86 | 0.649695 | 105 | 982 | 6.009524 | 0.495238 | 0.071315 | 0.087163 | 0.103011 | 0.215531 | 0.215531 | 0.142631 | 0.142631 | 0.142631 | 0.142631 | 0 | 0 | 0.158859 | 982 | 27 | 87 | 36.37037 | 0.763923 | 0.176171 | 0 | 0.117647 | 0 | 0 | 0.06087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.352941 | 0 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.