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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a7ea14ccf7f41c0614b8f95c605b3bd30018a21b | 2,643 | py | Python | example_project/blog/migrations/0001_initial.py | allran/djangorestframework-appapi | 5e843b70910ccd55d787096ee08eb85315c80000 | [
"BSD-2-Clause"
] | 4 | 2019-10-15T06:47:29.000Z | 2019-11-11T13:16:15.000Z | example_project/blog/migrations/0001_initial.py | allran/djangorestframework-appapi | 5e843b70910ccd55d787096ee08eb85315c80000 | [
"BSD-2-Clause"
] | null | null | null | example_project/blog/migrations/0001_initial.py | allran/djangorestframework-appapi | 5e843b70910ccd55d787096ee08eb85315c80000 | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 2.2.6 on 2019-10-16 02:53
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 43.327869 | 193 | 0.573212 | 275 | 2,643 | 5.323636 | 0.298182 | 0.067623 | 0.086066 | 0.102459 | 0.539617 | 0.539617 | 0.437158 | 0.437158 | 0.437158 | 0.437158 | 0 | 0.012099 | 0.280742 | 2,643 | 60 | 194 | 44.05 | 0.758022 | 0.017026 | 0 | 0.509434 | 1 | 0 | 0.107088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.056604 | 0 | 0.132075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a7f5cbeb6c6ac6730e6541d991681e7c83554dd8 | 523 | py | Python | fun.py | Krishna-Aaseri/Python_Logical_Questions | c0f025a56dbbf85426142adb423b25fa7b034adb | [
"MIT"
] | null | null | null | fun.py | Krishna-Aaseri/Python_Logical_Questions | c0f025a56dbbf85426142adb423b25fa7b034adb | [
"MIT"
] | null | null | null | fun.py | Krishna-Aaseri/Python_Logical_Questions | c0f025a56dbbf85426142adb423b25fa7b034adb | [
"MIT"
] | null | null | null | #def add(num,num1):
# add1=num+num1
# print add1
#add(6,7)
#def welcome():
# print "python kaisa lagta h aapko"
# print "but please reply na kare aap"
#welcome()
user = int(raw_input("enter a number"))
i = 0
new = []
while i < (user):
user1 = int(raw_input("enter a number"))
new.append(user1)
i = i + 1
print new
... | 13.763158 | 54 | 0.565966 | 85 | 523 | 3.411765 | 0.458824 | 0.096552 | 0.075862 | 0.110345 | 0.234483 | 0.158621 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.196941 | 523 | 37 | 55 | 14.135135 | 0.657143 | 0.279159 | 0 | 0.333333 | 0 | 0 | 0.20274 | 0.126027 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a7faceab673a31a756534245b8aaabc503d661d6 | 1,217 | py | Python | docs/demos/theme_explorer/list_group.py | sthagen/facultyai-dash-bootstrap-components | 2dd5eaf1c1494b2077bcee82eb7968ec2e23af46 | [
"Apache-2.0"
] | 50 | 2018-09-23T08:57:28.000Z | 2019-02-02T19:59:35.000Z | docs/demos/theme_explorer/list_group.py | sthagen/dash-bootstrap-components | d79ad7f8fdf4c26165038e6989e24f2ac17663b1 | [
"Apache-2.0"
] | 99 | 2018-09-21T11:06:29.000Z | 2019-02-04T09:04:07.000Z | docs/demos/theme_explorer/list_group.py | sthagen/dash-bootstrap-components | d79ad7f8fdf4c26165038e6989e24f2ac17663b1 | [
"Apache-2.0"
] | 3 | 2018-09-25T02:16:24.000Z | 2018-12-22T20:56:31.000Z | import dash_bootstrap_components as dbc
from dash import html
from .util import make_subheading
list_group = html.Div(
[
make_subheading("ListGroup", "list_group"),
dbc.ListGroup(
[
dbc.ListGroupItem("No color applied"),
dbc.ListGroupItem("The primary it... | 36.878788 | 73 | 0.520953 | 116 | 1,217 | 5.413793 | 0.37931 | 0.305732 | 0.16242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005122 | 0.358258 | 1,217 | 32 | 74 | 38.03125 | 0.798976 | 0 | 0 | 0.066667 | 0 | 0 | 0.215283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5041849eb6e20166cf188e490e80a877301469d | 2,951 | py | Python | download-from-web/govori.py | miroslavradojevic/python-snippets | 753e1c15dc077d3bcf5de4fd5d3a675daf0da27c | [
"MIT"
] | null | null | null | download-from-web/govori.py | miroslavradojevic/python-snippets | 753e1c15dc077d3bcf5de4fd5d3a675daf0da27c | [
"MIT"
] | null | null | null | download-from-web/govori.py | miroslavradojevic/python-snippets | 753e1c15dc077d3bcf5de4fd5d3a675daf0da27c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Download .mp3 podcast files of Radio Belgrade show Govori da bih te video (Speak so that I can see you)
# grab all mp3s and save them with parsed name and date to the output folder
import requests
import os
import time
import xml.dom.minidom
from urllib.parse import urlparse
url = "https://www.... | 36.432099 | 105 | 0.597763 | 390 | 2,951 | 4.410256 | 0.402564 | 0.027907 | 0.034884 | 0.037791 | 0.20407 | 0.159884 | 0.155233 | 0.115116 | 0.115116 | 0.115116 | 0 | 0.011278 | 0.278889 | 2,951 | 80 | 106 | 36.8875 | 0.796992 | 0.227381 | 0 | 0.235294 | 0 | 0.019608 | 0.087053 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0 | false | 0 | 0.098039 | 0 | 0.098039 | 0.196078 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c506aceeb7ea06c9672cd06b35d80f96cd51d00c | 830 | py | Python | setup.py | uhlerlab/conditional_independence | aa4b5117b6f24bf39433d427d490312864e9bd69 | [
"BSD-3-Clause"
] | 4 | 2021-01-29T20:27:31.000Z | 2022-02-01T11:55:33.000Z | setup.py | uhlerlab/conditional_independence | aa4b5117b6f24bf39433d427d490312864e9bd69 | [
"BSD-3-Clause"
] | null | null | null | setup.py | uhlerlab/conditional_independence | aa4b5117b6f24bf39433d427d490312864e9bd69 | [
"BSD-3-Clause"
] | 1 | 2021-09-12T13:41:21.000Z | 2021-09-12T13:41:21.000Z | import setuptools
setuptools.setup(
name='conditional_independence',
version='0.1a.4',
description='Parametric and non-parametric conditional independence tests.',
long_description='',
author='Chandler Squires',
author_email='chandlersquires18@gmail.com',
packages=setuptools.find_packages(e... | 25.151515 | 80 | 0.6 | 71 | 830 | 6.887324 | 0.746479 | 0.092025 | 0.159509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013029 | 0.260241 | 830 | 32 | 81 | 25.9375 | 0.783388 | 0.03012 | 0 | 0 | 0 | 0 | 0.423221 | 0.146067 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.035714 | 0 | 0.035714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c509a2151c61ed3015af0423248b9cd0ce672927 | 1,975 | py | Python | examples/ecs/server_interface.py | wangrui1121/huaweicloud-sdk-python | 240abe00288760115d1791012d4e3c4592d77ad1 | [
"Apache-2.0"
] | 43 | 2018-12-19T08:39:15.000Z | 2021-07-21T02:45:43.000Z | examples/ecs/server_interface.py | wangrui1121/huaweicloud-sdk-python | 240abe00288760115d1791012d4e3c4592d77ad1 | [
"Apache-2.0"
] | 11 | 2019-03-17T13:28:56.000Z | 2020-09-23T23:57:50.000Z | examples/ecs/server_interface.py | wangrui1121/huaweicloud-sdk-python | 240abe00288760115d1791012d4e3c4592d77ad1 | [
"Apache-2.0"
] | 47 | 2018-12-19T05:14:25.000Z | 2022-03-19T15:28:30.000Z | # -*-coding:utf-8 -*-
from openstack import connection
# create connection
username = "xxxxxx"
password = "xxxxxx"
projectId = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx" # tenant ID
userDomainId = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx" # user account ID
auth_url = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx" # endpoint url
conn = connection.... | 32.377049 | 75 | 0.671392 | 225 | 1,975 | 5.595556 | 0.306667 | 0.166799 | 0.183479 | 0.091342 | 0.267673 | 0.230342 | 0.122319 | 0 | 0 | 0 | 0 | 0.024733 | 0.242532 | 1,975 | 60 | 76 | 32.916667 | 0.816845 | 0.081519 | 0 | 0 | 0 | 0 | 0.117517 | 0.086475 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.047619 | 0.02381 | 0 | 0.142857 | 0.095238 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c50a6cdccc88ffe721b0e07a35e407563cda966e | 9,060 | py | Python | sdk/python/pulumi_google_native/dlp/v2/stored_info_type.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 44 | 2021-04-18T23:00:48.000Z | 2022-02-14T17:43:15.000Z | sdk/python/pulumi_google_native/dlp/v2/stored_info_type.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 354 | 2021-04-16T16:48:39.000Z | 2022-03-31T17:16:39.000Z | sdk/python/pulumi_google_native/dlp/v2/stored_info_type.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 8 | 2021-04-24T17:46:51.000Z | 2022-01-05T10:40:21.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 45.757576 | 294 | 0.663135 | 1,014 | 9,060 | 5.642998 | 0.178501 | 0.051905 | 0.046487 | 0.057672 | 0.52604 | 0.48165 | 0.451066 | 0.432891 | 0.401433 | 0.350052 | 0 | 0.002911 | 0.241611 | 9,060 | 197 | 295 | 45.989848 | 0.829865 | 0.281015 | 0 | 0.330709 | 1 | 0 | 0.145884 | 0.057415 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133858 | false | 0.007874 | 0.055118 | 0.015748 | 0.267717 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c50d8c67882d7ef410bf79b36de881a95ed1d06e | 631 | py | Python | python/cw/letterfreq2.py | vesche/snippets | 7a9d598df99c26c4e0c63669f9f95a94eeed0d08 | [
"Unlicense"
] | 7 | 2016-01-03T19:42:07.000Z | 2018-10-23T14:03:12.000Z | python/cw/letterfreq2.py | vesche/snippets | 7a9d598df99c26c4e0c63669f9f95a94eeed0d08 | [
"Unlicense"
] | null | null | null | python/cw/letterfreq2.py | vesche/snippets | 7a9d598df99c26c4e0c63669f9f95a94eeed0d08 | [
"Unlicense"
] | 1 | 2018-03-09T08:52:01.000Z | 2018-03-09T08:52:01.000Z | #!/usr/bin/env python
from __future__ import division
import sys
from string import ascii_lowercase
with open(sys.argv[1]) as f:
data = f.read().splitlines()
d = {}
for line in data:
for letter in line:
letter = letter.lower()
if letter not in ascii_lowercase+' ':
continue
... | 21.033333 | 55 | 0.557845 | 99 | 631 | 3.494949 | 0.454545 | 0.023121 | 0.043353 | 0.060694 | 0.098266 | 0.098266 | 0 | 0 | 0 | 0 | 0 | 0.013129 | 0.275753 | 631 | 29 | 56 | 21.758621 | 0.743982 | 0.031696 | 0 | 0.090909 | 0 | 0 | 0.02459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.136364 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5118009a2cf132e4b87f2f696c2abdd36248815 | 5,479 | py | Python | Coursework_02/Q3/airport/scenarios.py | eBe02/COMP0037-21_22 | c0872548ff4b653e3f786734666838813db2149a | [
"Apache-2.0"
] | null | null | null | Coursework_02/Q3/airport/scenarios.py | eBe02/COMP0037-21_22 | c0872548ff4b653e3f786734666838813db2149a | [
"Apache-2.0"
] | null | null | null | Coursework_02/Q3/airport/scenarios.py | eBe02/COMP0037-21_22 | c0872548ff4b653e3f786734666838813db2149a | [
"Apache-2.0"
] | null | null | null | '''
Created on 25 Jan 2022
@author: ucacsjj
'''
from .airport_map import MapCellType
from .airport_map import AirportMap
# This file contains a set of functions which build different maps. Only
# two of these are needed for the coursework. Others are ones which were
# used for developing and testing the algorithms a... | 32.613095 | 94 | 0.686804 | 852 | 5,479 | 4.10446 | 0.18662 | 0.203031 | 0.111524 | 0.073206 | 0.582499 | 0.47698 | 0.391764 | 0.290535 | 0.251072 | 0.213326 | 0 | 0.072295 | 0.217375 | 5,479 | 167 | 95 | 32.808383 | 0.743237 | 0.162986 | 0 | 0.157303 | 0 | 0 | 0.030695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11236 | false | 0 | 0.022472 | 0 | 0.235955 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c511d2974df6ea839e2f08eec91ae6a38dd211bf | 332 | py | Python | setup.py | abkfenris/adm_locations | 266915ab7e7559bd4c66d4090bcd69a2a93ab563 | [
"MIT"
] | null | null | null | setup.py | abkfenris/adm_locations | 266915ab7e7559bd4c66d4090bcd69a2a93ab563 | [
"MIT"
] | null | null | null | setup.py | abkfenris/adm_locations | 266915ab7e7559bd4c66d4090bcd69a2a93ab563 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='csv_locate',
version='0.1',
py_modules=['csv_to_json'],
install_requires=[
'click',
'colorama',
'geocoder',
'geojson',
'jinja2',
],
entry_points='''
[console_scripts]
csv_locate=csv_to_json:convert... | 17.473684 | 38 | 0.539157 | 33 | 332 | 5.121212 | 0.787879 | 0.106509 | 0.106509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013216 | 0.316265 | 332 | 18 | 39 | 18.444444 | 0.731278 | 0 | 0 | 0 | 0 | 0 | 0.385542 | 0.090361 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5198d8481c8a0970f981fde506e8ae0b90aab1f | 1,763 | py | Python | bin/wls_users.py | rstyczynski/wls-tools | 292a39a3f7af7b9d7d4c4849618d6789daae9b58 | [
"Apache-2.0"
] | null | null | null | bin/wls_users.py | rstyczynski/wls-tools | 292a39a3f7af7b9d7d4c4849618d6789daae9b58 | [
"Apache-2.0"
] | null | null | null | bin/wls_users.py | rstyczynski/wls-tools | 292a39a3f7af7b9d7d4c4849618d6789daae9b58 | [
"Apache-2.0"
] | null | null | null | #!$BEA_HOME/oracle_common/common/bin/wlst.sh
# default values
admin_name = 'AdminServer'
admin_address = 'localhost'
admin_port = 7001
admin_protocol = 't3'
admin_url = admin_protocol + "://" + admin_address + ":" + str(admin_port)
def usage():
print "dump_users [-s|--server -p|--port] [-u|--url] [-d|--delimite... | 27.546875 | 101 | 0.642087 | 212 | 1,763 | 5.235849 | 0.40566 | 0.043243 | 0.032432 | 0.035135 | 0.171171 | 0.171171 | 0.081081 | 0.081081 | 0.081081 | 0 | 0 | 0.007835 | 0.20363 | 1,763 | 64 | 102 | 27.546875 | 0.782764 | 0.038003 | 0 | 0.166667 | 0 | 0 | 0.119315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5206e72ad25192f5a2ed7316aa7ced0c3105161 | 436 | py | Python | tests/test_calculate_branch.py | ivergara/python-abc | b5bb87b80315f8e5ecd2d6f35b7208f0a7df9c3a | [
"Unlicense"
] | 2 | 2021-07-25T20:12:21.000Z | 2021-07-25T21:19:23.000Z | tests/test_calculate_branch.py | ivergara/python-abc | b5bb87b80315f8e5ecd2d6f35b7208f0a7df9c3a | [
"Unlicense"
] | 1 | 2021-12-28T22:07:05.000Z | 2021-12-28T22:07:05.000Z | tests/test_calculate_branch.py | ivergara/python-abc | b5bb87b80315f8e5ecd2d6f35b7208f0a7df9c3a | [
"Unlicense"
] | 1 | 2021-12-07T19:53:45.000Z | 2021-12-07T19:53:45.000Z | import pytest
from tests import assert_source_returns_expected
BRANCH_CASES = [
# Call
('print("hello world")', 'b | print("hello world")'),
# Await
("await noop()", "b | await noop()"),
# Class instantiation
("Noop()", "b | Noop()"),
]
@pytest.mark.parametrize("source,expected", BRANCH_CAS... | 22.947368 | 68 | 0.669725 | 52 | 436 | 5.442308 | 0.5 | 0.14841 | 0.134276 | 0.190813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176606 | 436 | 18 | 69 | 24.222222 | 0.788301 | 0.068807 | 0 | 0 | 0 | 0 | 0.256219 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c53b92a47fb947f6f8b829b01647aa8c055f8973 | 644 | py | Python | character/migrations/0004_alter_character_alignment.py | scottBowles/dnd | a1ef333f1a865d51b5426dc4b3493e8437584565 | [
"MIT"
] | null | null | null | character/migrations/0004_alter_character_alignment.py | scottBowles/dnd | a1ef333f1a865d51b5426dc4b3493e8437584565 | [
"MIT"
] | null | null | null | character/migrations/0004_alter_character_alignment.py | scottBowles/dnd | a1ef333f1a865d51b5426dc4b3493e8437584565 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-08-12 02:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('character', '0003_alter_character_id'),
]
operations = [
migrations.AlterField(
model_name='character',
name='alignm... | 33.894737 | 300 | 0.591615 | 74 | 644 | 5.081081 | 0.689189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039683 | 0.217391 | 644 | 18 | 301 | 35.777778 | 0.706349 | 0.069876 | 0 | 0 | 1 | 0 | 0.298157 | 0.038526 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c53bcf309d42be5b0611b4932b04593b5fb3c79b | 818 | py | Python | graphs_trees/check_balance/test_check_balance.py | filippovitale/interactive-coding-challenges | 8380a7aa98618c3cc9c0271c30bd320937d431ad | [
"Apache-2.0"
] | null | null | null | graphs_trees/check_balance/test_check_balance.py | filippovitale/interactive-coding-challenges | 8380a7aa98618c3cc9c0271c30bd320937d431ad | [
"Apache-2.0"
] | null | null | null | graphs_trees/check_balance/test_check_balance.py | filippovitale/interactive-coding-challenges | 8380a7aa98618c3cc9c0271c30bd320937d431ad | [
"Apache-2.0"
] | 1 | 2019-12-13T12:57:44.000Z | 2019-12-13T12:57:44.000Z | from nose.tools import assert_equal
class TestCheckBalance(object):
def test_check_balance(self):
node = Node(5)
insert(node, 3)
insert(node, 8)
insert(node, 1)
insert(node, 4)
assert_equal(check_balance(node), True)
node = Node(5)
insert(node, 3)
... | 20.974359 | 48 | 0.570905 | 100 | 818 | 4.46 | 0.33 | 0.313901 | 0.107623 | 0.100897 | 0.459641 | 0.327354 | 0.183857 | 0.183857 | 0.183857 | 0.183857 | 0 | 0.032086 | 0.314181 | 818 | 39 | 49 | 20.974359 | 0.762923 | 0 | 0 | 0.413793 | 0 | 0 | 0.042735 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 1 | 0.068966 | false | 0 | 0.034483 | 0 | 0.137931 | 0.034483 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c53d9c366f6302c3f4189f86bcaf5a05f084763e | 19,136 | py | Python | src_RealData/Nets/ObjectOriented.py | XYZsake/DRFNS | 73fc5683db5e9f860846e22c8c0daf73b7103082 | [
"MIT"
] | 42 | 2018-10-07T08:19:01.000Z | 2022-02-08T17:41:24.000Z | src_RealData/Nets/ObjectOriented.py | XYZsake/DRFNS | 73fc5683db5e9f860846e22c8c0daf73b7103082 | [
"MIT"
] | 11 | 2018-12-22T00:15:46.000Z | 2021-12-03T10:29:32.000Z | src_RealData/Nets/ObjectOriented.py | XYZsake/DRFNS | 73fc5683db5e9f860846e22c8c0daf73b7103082 | [
"MIT"
] | 14 | 2018-08-26T06:47:06.000Z | 2021-07-24T11:52:58.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import tensorflow as tf
import numpy as np
import os
from sklearn.metrics import confusion_matrix
from datetime import datetime
class ConvolutionalNeuralNetwork:
"""
Generic object for create DNN models.
This class instinciates all functions
needed for D... | 38.272 | 215 | 0.570861 | 2,351 | 19,136 | 4.482773 | 0.171416 | 0.010817 | 0.016131 | 0.024196 | 0.217668 | 0.155233 | 0.098491 | 0.071828 | 0.057121 | 0.04137 | 0 | 0.022297 | 0.315635 | 19,136 | 500 | 216 | 38.272 | 0.782453 | 0.021112 | 0 | 0.061889 | 0 | 0.006515 | 0.057297 | 0.001441 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016287 | null | null | 0.035831 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c53f7e729f7148ea37a06ebe087c005b16755a1d | 25,133 | py | Python | maintest.py | thorsilver/ABM-for-social-care | 3a47868d2881799980a3f9f24b78c66a31eda194 | [
"MIT"
] | null | null | null | maintest.py | thorsilver/ABM-for-social-care | 3a47868d2881799980a3f9f24b78c66a31eda194 | [
"MIT"
] | null | null | null | maintest.py | thorsilver/ABM-for-social-care | 3a47868d2881799980a3f9f24b78c66a31eda194 | [
"MIT"
] | 1 | 2018-01-05T15:42:40.000Z | 2018-01-05T15:42:40.000Z |
from sim import Sim
import os
import cProfile
import pylab
import math
import matplotlib.pyplot as plt
import argparse
import json
import decimal
import numpy as np
def init_params():
"""Set up the simulation parameters."""
p = {}
## The basics: starting population and year, etc.
p['initialPop'] = 7... | 40.08453 | 188 | 0.56018 | 3,110 | 25,133 | 4.486817 | 0.166559 | 0.043858 | 0.052458 | 0.057045 | 0.490827 | 0.420238 | 0.401462 | 0.386771 | 0.385553 | 0.373155 | 0 | 0.060613 | 0.262165 | 25,133 | 627 | 189 | 40.08453 | 0.691868 | 0.107787 | 0 | 0.383795 | 0 | 0.002132 | 0.229579 | 0.03805 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021322 | null | null | 0.095949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c542862715caa74d2fd3f0e9e9fcab1cbbe24d4a | 284 | py | Python | syncless/wscherry.py | irr/python-labs | 43bb3a528c151653b2be832c7ff13240a10e18a4 | [
"Apache-2.0"
] | 4 | 2015-11-25T09:06:44.000Z | 2019-12-11T21:35:21.000Z | syncless/wscherry.py | irr/python-labs | 43bb3a528c151653b2be832c7ff13240a10e18a4 | [
"Apache-2.0"
] | null | null | null | syncless/wscherry.py | irr/python-labs | 43bb3a528c151653b2be832c7ff13240a10e18a4 | [
"Apache-2.0"
] | 2 | 2015-11-25T09:19:38.000Z | 2016-02-26T03:54:06.000Z | import sys
sys.path.append("/usr/lib/python2.7/site-packages")
import redis
_r = redis.Redis(host='localhost', port=6379, db=0)
import cherrypy
class Test(object):
def index(self):
_r.incr("/")
return "OK!"
index.exposed = True
cherrypy.quickstart(Test())
| 17.75 | 51 | 0.661972 | 40 | 284 | 4.65 | 0.775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030043 | 0.179577 | 284 | 15 | 52 | 18.933333 | 0.76824 | 0 | 0 | 0 | 0 | 0 | 0.158451 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c544eb603d7c0e4860f104e7e494d3ae3bdfe615 | 538 | py | Python | server.py | celinekeisja/jobmonitorservice | aaf56dd198c1275439a0f5ed27617fb458f715ac | [
"MIT"
] | null | null | null | server.py | celinekeisja/jobmonitorservice | aaf56dd198c1275439a0f5ed27617fb458f715ac | [
"MIT"
] | null | null | null | server.py | celinekeisja/jobmonitorservice | aaf56dd198c1275439a0f5ed27617fb458f715ac | [
"MIT"
] | 1 | 2019-11-11T10:26:42.000Z | 2019-11-11T10:26:42.000Z | from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from config import db
import config
app = config.connex_app
app.add_api('swagger.yml')
@app.route('/')
def home():
return 'homepage here'
@app.route("/job")
@app.route("/job/<string:job_id>")
def job(job_id=""):
return 'resul... | 20.692308 | 54 | 0.711896 | 79 | 538 | 4.64557 | 0.468354 | 0.049046 | 0.059946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008602 | 0.135688 | 538 | 26 | 54 | 20.692308 | 0.780645 | 0.089219 | 0 | 0 | 0 | 0 | 0.153374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
c54c0437171dca7cbeb276eabca7979dd5dce208 | 2,202 | py | Python | src/python/compressao_huffman.py | willisnou/Algoritmos-e-Estruturas-de-Dados | b70a2f692ccae948576177560e3628b9dece5aee | [
"MIT"
] | 653 | 2015-06-07T14:45:40.000Z | 2022-03-25T17:31:58.000Z | src/python/compressao_huffman.py | willisnou/Algoritmos-e-Estruturas-de-Dados | b70a2f692ccae948576177560e3628b9dece5aee | [
"MIT"
] | 64 | 2017-10-29T10:53:37.000Z | 2022-03-14T23:49:18.000Z | src/python/compressao_huffman.py | willisnou/Algoritmos-e-Estruturas-de-Dados | b70a2f692ccae948576177560e3628b9dece5aee | [
"MIT"
] | 224 | 2015-06-07T14:46:00.000Z | 2022-03-25T17:36:46.000Z | # Árvore Huffman
class node:
def __init__(self, freq, symbol, left=None, right=None):
# Frequência do Símbolo
self.freq = freq
# Símbolo (caracter)
self.symbol = symbol
# nó à esquerda do nó atual
self.left = left
# nó à direita do nó atual
self.rig... | 24.741573 | 60 | 0.584469 | 297 | 2,202 | 4.292929 | 0.417508 | 0.05098 | 0.014118 | 0.020392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013432 | 0.323797 | 2,202 | 88 | 61 | 25.022727 | 0.842848 | 0.398274 | 0 | 0 | 0 | 0 | 0.030139 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.078947 | 0.131579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c55176ac699f36bb549a798358fd9868f0da10c3 | 7,649 | py | Python | getnear/tseries.py | edwardspeyer/getnear | 746f3cedc1aed6166423f54d32e208017f660b38 | [
"MIT"
] | null | null | null | getnear/tseries.py | edwardspeyer/getnear | 746f3cedc1aed6166423f54d32e208017f660b38 | [
"MIT"
] | null | null | null | getnear/tseries.py | edwardspeyer/getnear | 746f3cedc1aed6166423f54d32e208017f660b38 | [
"MIT"
] | null | null | null | from getnear.config import Tagged, Untagged, Ignore
from getnear.logging import info
from lxml import etree
import re
import requests
import telnetlib
def connect(hostname, *args, **kwargs):
url = f'http://{hostname}/'
html = requests.get(url).text
doc = etree.HTML(html)
for title in doc.xpath('//titl... | 34.61086 | 92 | 0.552098 | 998 | 7,649 | 4.079158 | 0.182365 | 0.056497 | 0.058954 | 0.061901 | 0.378531 | 0.293785 | 0.246868 | 0.211496 | 0.192827 | 0.148366 | 0 | 0.003854 | 0.32148 | 7,649 | 220 | 93 | 34.768182 | 0.78054 | 0.038567 | 0 | 0.268817 | 0 | 0 | 0.108494 | 0 | 0 | 0 | 0 | 0.004545 | 0 | 1 | 0.107527 | false | 0.096774 | 0.032258 | 0 | 0.177419 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c552f157bcec716a7f87d20bd21cf1b7b813d8da | 211 | py | Python | models/dl-weights.py | diegoinacio/object-detection-flask-opencv | bc012e884138e9ead04115b8550e833bed134074 | [
"MIT"
] | 16 | 2020-03-01T07:35:35.000Z | 2022-02-01T16:34:24.000Z | models/dl-weights.py | girish008/Real-Time-Object-Detection-Using-YOLOv3-OpenCV | 6af4c550f6128768b646f5923af87c2f654cd1bd | [
"MIT"
] | 6 | 2020-02-13T12:50:24.000Z | 2022-02-02T03:22:30.000Z | models/dl-weights.py | girish008/Real-Time-Object-Detection-Using-YOLOv3-OpenCV | 6af4c550f6128768b646f5923af87c2f654cd1bd | [
"MIT"
] | 8 | 2020-06-22T10:23:58.000Z | 2022-01-14T21:17:50.000Z | """
This script downloads the weight file
"""
import requests
URL = "https://pjreddie.com/media/files/yolov3.weights"
r = requests.get(URL, allow_redirects=True)
open('yolov3_t.weights', 'wb').write(r.content)
| 23.444444 | 55 | 0.739336 | 31 | 211 | 4.967742 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010471 | 0.094787 | 211 | 8 | 56 | 26.375 | 0.795812 | 0.175355 | 0 | 0 | 0 | 0 | 0.391566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c55ca719e407ecd982eeb52d8e27fa9690f85669 | 420 | py | Python | iis/tests/test_e2e.py | tcpatterson/integrations-core | 3692601de09f8db60f42612b0d623509415bbb53 | [
"BSD-3-Clause"
] | null | null | null | iis/tests/test_e2e.py | tcpatterson/integrations-core | 3692601de09f8db60f42612b0d623509415bbb53 | [
"BSD-3-Clause"
] | null | null | null | iis/tests/test_e2e.py | tcpatterson/integrations-core | 3692601de09f8db60f42612b0d623509415bbb53 | [
"BSD-3-Clause"
] | null | null | null | # (C) Datadog, Inc. 2022-present
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
import pytest
from datadog_checks.dev.testing import requires_py3
from datadog_checks.iis import IIS
@pytest.mark.e2e
@requires_py3
def test_e2e_py3(dd_agent_check, aggregator, instance):
aggregator = dd... | 26.25 | 76 | 0.797619 | 60 | 420 | 5.383333 | 0.633333 | 0.068111 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024324 | 0.119048 | 420 | 15 | 77 | 28 | 0.848649 | 0.242857 | 0 | 0 | 0 | 0 | 0.073248 | 0.073248 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c5681f32ba0443d6943fe18106423ebafc204c78 | 12,733 | py | Python | epgrefresh/src/plugin.py | builder08/enigma2-plugins_2 | f8f08b947e23c1c86b011492a7323125774c3482 | [
"OLDAP-2.3"
] | null | null | null | epgrefresh/src/plugin.py | builder08/enigma2-plugins_2 | f8f08b947e23c1c86b011492a7323125774c3482 | [
"OLDAP-2.3"
] | null | null | null | epgrefresh/src/plugin.py | builder08/enigma2-plugins_2 | f8f08b947e23c1c86b011492a7323125774c3482 | [
"OLDAP-2.3"
] | null | null | null | from __future__ import print_function
# for localized messages
from . import _, NOTIFICATIONDOMAIN
# Config
from Components.config import config, ConfigYesNo, ConfigNumber, ConfigSelection, \
ConfigSubsection, ConfigClock, ConfigYesNo, ConfigInteger, NoSave
from Screens.MessageBox import MessageBox
from Screens.Stan... | 35.766854 | 224 | 0.783162 | 1,464 | 12,733 | 6.717896 | 0.250683 | 0.070056 | 0.123945 | 0.038434 | 0.249009 | 0.204576 | 0.131164 | 0.091408 | 0.080427 | 0.068226 | 0 | 0.004696 | 0.113563 | 12,733 | 355 | 225 | 35.867606 | 0.866661 | 0.102568 | 0 | 0.150198 | 0 | 0 | 0.094273 | 0.00652 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.094862 | null | null | 0.023715 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c56aa8051395c03cfefdb6b4c31ba197b3b0d2c8 | 1,876 | py | Python | examples/server.py | zaibon/tcprouter | 7e9d2590e1b1d9d984ac742bd82fcbcf3d42b3ef | [
"BSD-3-Clause"
] | 5 | 2019-05-30T23:36:05.000Z | 2019-10-10T21:37:53.000Z | examples/server.py | zaibon/tcprouter | 7e9d2590e1b1d9d984ac742bd82fcbcf3d42b3ef | [
"BSD-3-Clause"
] | 7 | 2019-06-12T11:55:46.000Z | 2019-11-18T22:53:06.000Z | examples/server.py | xmonader/eltcprouter | b3435733d102c2435e9f62aa469d34c475cc31bd | [
"BSD-3-Clause"
] | 1 | 2021-01-05T20:09:51.000Z | 2021-01-05T20:09:51.000Z | from gevent import monkey; monkey.patch_all()
import logging
from gevent.server import StreamServer
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
class Receiver(object):
""" Interface for a receiver - mimics Twisted's protocols
"""
def __init__(self):
self.socket =... | 25.351351 | 108 | 0.601812 | 208 | 1,876 | 5.326923 | 0.413462 | 0.036101 | 0.027076 | 0.034296 | 0.041516 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006047 | 0.294776 | 1,876 | 73 | 109 | 25.69863 | 0.831444 | 0.114606 | 0 | 0.148936 | 0 | 0 | 0.07266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170213 | false | 0.06383 | 0.06383 | 0 | 0.297872 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3d6fef82415cc33c1f679313aef262f6b3b670a9 | 17,848 | py | Python | sbvat/utils.py | thudzj/BVAT | 2c7073cb7967583035eece7f4819821b313d73e6 | [
"MIT"
] | 3 | 2019-08-04T03:05:51.000Z | 2021-04-24T02:35:05.000Z | sbvat/utils.py | thudzj/BVAT | 2c7073cb7967583035eece7f4819821b313d73e6 | [
"MIT"
] | null | null | null | sbvat/utils.py | thudzj/BVAT | 2c7073cb7967583035eece7f4819821b313d73e6 | [
"MIT"
] | 1 | 2019-12-29T13:49:22.000Z | 2019-12-29T13:49:22.000Z | import numpy as np
import pickle as pkl
import networkx as nx
import scipy.sparse as sp
from scipy.sparse.linalg.eigen.arpack import eigsh
import sys
import tensorflow as tf
import os
import time
import json
from networkx.readwrite import json_graph
from sklearn.metrics import f1_score
import multiprocessing
def parse... | 38.218415 | 200 | 0.601244 | 2,531 | 17,848 | 4.027262 | 0.141841 | 0.017267 | 0.01295 | 0.006475 | 0.292161 | 0.223585 | 0.168841 | 0.150397 | 0.133915 | 0.121946 | 0 | 0.013552 | 0.264063 | 17,848 | 466 | 201 | 38.300429 | 0.762467 | 0.055468 | 0 | 0.179272 | 0 | 0 | 0.054282 | 0.003056 | 0 | 0 | 0 | 0 | 0.002801 | 0 | null | null | 0 | 0.039216 | null | null | 0.036415 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3d7270ed2ccd3fdf53730944e85357d2c3e72251 | 2,879 | py | Python | Extended Programming Challenges Python/Mnozenie Macierzy/test_main.py | szachovy/School-and-Training | 70f07c0d077da7ba1920d28d881fff7ddcbc37d9 | [
"MIT"
] | null | null | null | Extended Programming Challenges Python/Mnozenie Macierzy/test_main.py | szachovy/School-and-Training | 70f07c0d077da7ba1920d28d881fff7ddcbc37d9 | [
"MIT"
] | null | null | null | Extended Programming Challenges Python/Mnozenie Macierzy/test_main.py | szachovy/School-and-Training | 70f07c0d077da7ba1920d28d881fff7ddcbc37d9 | [
"MIT"
] | null | null | null | import unittest
import main
import re
class MatrixRowsVerification(unittest.TestCase):
def setUp(self):
self.matrix1 = {0: [1, 2, 3], 1: [4, 5, 6]}
self.matrix2 = {0: [1, 2], 1: [3, 4], 2: [5, 6]}
def test_getRowsType(self):
self.assertIsInstance(main.getRows(self.matrix1), int, 'wrong... | 38.905405 | 118 | 0.632511 | 370 | 2,879 | 4.87027 | 0.278378 | 0.057714 | 0.013319 | 0.011099 | 0.391232 | 0.345727 | 0.32131 | 0.279134 | 0.279134 | 0.178135 | 0 | 0.051398 | 0.229594 | 2,879 | 73 | 119 | 39.438356 | 0.761046 | 0 | 0 | 0.185185 | 0 | 0 | 0.167419 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.277778 | false | 0.018519 | 0.055556 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3d7e43dc6fabcfe8138a99da18574265d9a525c8 | 1,786 | py | Python | pyopenproject/business/services/command/priority/find_all.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 5 | 2021-02-25T15:54:28.000Z | 2021-04-22T15:43:36.000Z | pyopenproject/business/services/command/priority/find_all.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 7 | 2021-03-15T16:26:23.000Z | 2022-03-16T13:45:18.000Z | pyopenproject/business/services/command/priority/find_all.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 6 | 2021-06-18T18:59:11.000Z | 2022-03-27T04:58:52.000Z | from pyopenproject.api_connection.exceptions.request_exception import RequestError
from pyopenproject.api_connection.requests.get_request import GetRequest
from pyopenproject.business.exception.business_error import BusinessError
from pyopenproject.business.services.command.find_list_command import FindListCommand
from... | 49.611111 | 93 | 0.594625 | 159 | 1,786 | 6.515723 | 0.377358 | 0.147683 | 0.144788 | 0.083977 | 0.138996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.342665 | 1,786 | 35 | 94 | 51.028571 | 0.882453 | 0.044233 | 0 | 0.068966 | 0 | 0 | 0.028169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.310345 | 0 | 0.448276 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3d85f7e617337855186eb9a6630f328826ed38ef | 868 | py | Python | app/migrations/0003_contacts.py | Joshua-Barawa/Django-IP4 | 5665efe73cf8d2244b7bb35ed627e4e237902156 | [
"Unlicense"
] | null | null | null | app/migrations/0003_contacts.py | Joshua-Barawa/Django-IP4 | 5665efe73cf8d2244b7bb35ed627e4e237902156 | [
"Unlicense"
] | null | null | null | app/migrations/0003_contacts.py | Joshua-Barawa/Django-IP4 | 5665efe73cf8d2244b7bb35ed627e4e237902156 | [
"Unlicense"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-21 13:04
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app', '0002_remove_profile_caption_alter_profile_profile_pic_and_more'),
]
operations = [
migrations.Create... | 34.72 | 117 | 0.623272 | 98 | 868 | 5.357143 | 0.632653 | 0.045714 | 0.053333 | 0.08381 | 0.167619 | 0.167619 | 0.167619 | 0.167619 | 0.167619 | 0 | 0 | 0.039574 | 0.243088 | 868 | 24 | 118 | 36.166667 | 0.759513 | 0.051843 | 0 | 0 | 1 | 0 | 0.137637 | 0.075518 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3d90bec081e48c3692736a49abca5a861a8e0892 | 626 | py | Python | scripts/modules/task_plan_types/date.py | vkostyanetsky/Organizer | b1f0a05c0b6c6e6ea7a78a6bd7a3c70f85b33eba | [
"MIT"
] | null | null | null | scripts/modules/task_plan_types/date.py | vkostyanetsky/Organizer | b1f0a05c0b6c6e6ea7a78a6bd7a3c70f85b33eba | [
"MIT"
] | null | null | null | scripts/modules/task_plan_types/date.py | vkostyanetsky/Organizer | b1f0a05c0b6c6e6ea7a78a6bd7a3c70f85b33eba | [
"MIT"
] | null | null | null | # DD.MM.YYYY (DD — номер дня, MM — номер месяца, YYYY — номер года)
import re
import datetime
def is_task_current(task, date):
result = None
groups = re.match('([0-9]{1,2}).([0-9]{1,2}).([0-9]{4})', task['condition'])
type_is_correct = groups != None
if type_is_correct:
task... | 26.083333 | 91 | 0.600639 | 94 | 626 | 3.808511 | 0.382979 | 0.223464 | 0.01676 | 0.022346 | 0.027933 | 0.027933 | 0 | 0 | 0 | 0 | 0 | 0.030369 | 0.263578 | 626 | 24 | 92 | 26.083333 | 0.739696 | 0.103834 | 0 | 0 | 0 | 0.071429 | 0.094643 | 0.064286 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3da195067ff01ae97b234bc41093431b6cebf500 | 646 | py | Python | class3/collateral/show_genie.py | twin-bridges/netmiko_course | 31943e4f6f66dbfe523d62d5a2f03285802a8c56 | [
"Apache-2.0"
] | 11 | 2020-09-16T06:53:16.000Z | 2021-08-24T21:27:37.000Z | class3/collateral/show_genie.py | twin-bridges/netmiko_course | 31943e4f6f66dbfe523d62d5a2f03285802a8c56 | [
"Apache-2.0"
] | null | null | null | class3/collateral/show_genie.py | twin-bridges/netmiko_course | 31943e4f6f66dbfe523d62d5a2f03285802a8c56 | [
"Apache-2.0"
] | 5 | 2020-10-18T20:25:59.000Z | 2021-10-20T16:27:00.000Z | import os
from netmiko import ConnectHandler
from getpass import getpass
from pprint import pprint
# Code so automated tests will run properly
# Check for environment variable, if that fails, use getpass().
password = os.getenv("NETMIKO_PASSWORD") if os.getenv("NETMIKO_PASSWORD") else getpass()
my_device = {
"dev... | 30.761905 | 88 | 0.733746 | 88 | 646 | 5.238636 | 0.568182 | 0.065076 | 0.065076 | 0.099783 | 0.143167 | 0.143167 | 0.143167 | 0 | 0 | 0 | 0 | 0.001835 | 0.156347 | 646 | 20 | 89 | 32.3 | 0.844037 | 0.260062 | 0 | 0 | 0 | 0 | 0.236287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.214286 | 0.285714 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3da20b359813d6186015461736f4d52256b59084 | 2,793 | py | Python | pints/tests/test_toy_hes1_michaelis_menten_model.py | lisaplag/pints | 3de6617e57ba5b395edaca48961bfc5a4b7209b3 | [
"RSA-MD"
] | null | null | null | pints/tests/test_toy_hes1_michaelis_menten_model.py | lisaplag/pints | 3de6617e57ba5b395edaca48961bfc5a4b7209b3 | [
"RSA-MD"
] | null | null | null | pints/tests/test_toy_hes1_michaelis_menten_model.py | lisaplag/pints | 3de6617e57ba5b395edaca48961bfc5a4b7209b3 | [
"RSA-MD"
] | null | null | null | #!/usr/bin/env python3
#
# Tests if the HES1 Michaelis-Menten toy model runs.
#
# This file is part of PINTS (https://github.com/pints-team/pints/) which is
# released under the BSD 3-clause license. See accompanying LICENSE.md for
# copyright notice and full license details.
#
import unittest
import numpy as np
impor... | 38.260274 | 78 | 0.653419 | 358 | 2,793 | 5.01676 | 0.290503 | 0.044543 | 0.085189 | 0.060134 | 0.434298 | 0.405345 | 0.35412 | 0.330178 | 0.123051 | 0 | 0 | 0.053327 | 0.214465 | 2,793 | 72 | 79 | 38.791667 | 0.765269 | 0.183315 | 0 | 0.044444 | 0 | 0 | 0.003551 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.044444 | false | 0 | 0.088889 | 0 | 0.155556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3da83d4179e3c0fa03b23a086938541e7c9c090e | 931 | py | Python | src/tentaclio/clients/athena_client.py | datavaluepeople/tentaclio | eb6920a0e115c6c08043063a8c1013d812ec34c8 | [
"MIT"
] | 12 | 2019-04-30T16:07:42.000Z | 2021-12-08T08:02:09.000Z | src/tentaclio/clients/athena_client.py | octoenergy/tentaclio | eb6920a0e115c6c08043063a8c1013d812ec34c8 | [
"MIT"
] | 74 | 2019-04-25T11:18:22.000Z | 2022-01-18T11:31:14.000Z | src/tentaclio/clients/athena_client.py | datavaluepeople/tentaclio | eb6920a0e115c6c08043063a8c1013d812ec34c8 | [
"MIT"
] | 4 | 2019-05-05T13:13:21.000Z | 2022-01-14T00:33:07.000Z | """AWS Athena query client.
Overrides the `get_df` convenience methods for loading a DataFrame using PandasCursor,
which is more performant than using sql alchemy functions.
"""
import pandas as pd
from pyathena.pandas_cursor import PandasCursor
from . import decorators, sqla_client
__all__ = ["AthenaClient"]
cl... | 32.103448 | 86 | 0.736842 | 120 | 931 | 5.516667 | 0.583333 | 0.036254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170784 | 931 | 28 | 87 | 33.25 | 0.857513 | 0.337272 | 0 | 0 | 0 | 0 | 0.043333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3dada60e0249d722b9efc92d356114b02e3e0c6c | 18,496 | py | Python | filters/Filter.py | Paul1298/ITMO_FS | 219537776d89e52df0c1c07de2c71ce91c679c50 | [
"MIT"
] | null | null | null | filters/Filter.py | Paul1298/ITMO_FS | 219537776d89e52df0c1c07de2c71ce91c679c50 | [
"MIT"
] | null | null | null | filters/Filter.py | Paul1298/ITMO_FS | 219537776d89e52df0c1c07de2c71ce91c679c50 | [
"MIT"
] | null | null | null | from .utils import *
class Filter(object):####TODO add logging
def __init__(self, measure, cutting_rule):
"""
Basic univariate filter class with chosen(even custom) measure and cutting rule
:param measure:
Examples
--------
>>> f=Filter("PearsonCorr", GLOB_CR[... | 37.670061 | 118 | 0.579477 | 2,419 | 18,496 | 4.227367 | 0.190988 | 0.006845 | 0.009583 | 0.021514 | 0.20487 | 0.154313 | 0.132016 | 0.105907 | 0.087718 | 0.084686 | 0 | 0.010896 | 0.315257 | 18,496 | 490 | 119 | 37.746939 | 0.796368 | 0.216858 | 0 | 0.248447 | 0 | 0 | 0.024234 | 0 | 0 | 0 | 0 | 0.014286 | 0.006211 | 1 | 0.090062 | false | 0 | 0.003106 | 0.018634 | 0.192547 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3daf498d7521399146cf380a60792cc98a71c488 | 6,145 | py | Python | MakeMytripChallenge/script/IFtrial.py | divayjindal95/DataScience | d976a5e3ac9bd36e84149642a5b93f7bfc3540cf | [
"MIT"
] | null | null | null | MakeMytripChallenge/script/IFtrial.py | divayjindal95/DataScience | d976a5e3ac9bd36e84149642a5b93f7bfc3540cf | [
"MIT"
] | null | null | null | MakeMytripChallenge/script/IFtrial.py | divayjindal95/DataScience | d976a5e3ac9bd36e84149642a5b93f7bfc3540cf | [
"MIT"
] | null | null | null | import sys
import warnings
if not sys.warnoptions:
warnings.simplefilter("ignore")
import numpy as np
import pandas as pd
import matplotlib.pylab as plt
from sklearn.naive_bayes import MultinomialNB
from sklearn.ensemble import RandomForestClassifier
from sklearn.ensemble import GradientBoostingClassifier
from ... | 34.138889 | 300 | 0.682832 | 1,172 | 6,145 | 3.399317 | 0.134812 | 0.090361 | 0.10241 | 0.040161 | 0.431476 | 0.370231 | 0.285643 | 0.270582 | 0.203815 | 0.173444 | 0 | 0.017176 | 0.099919 | 6,145 | 180 | 301 | 34.138889 | 0.703128 | 0.277787 | 0 | 0.022472 | 0 | 0 | 0.056797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.168539 | null | null | 0.101124 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3db6b1a2ad7d586c5f66023f21c351a35d9fd997 | 7,604 | py | Python | Appserver/Test/ApiUnitTesting/testBusquedaCandidatos.py | seguijoaquin/taller2 | f41232516de15fe045805131b09299e5c2634e5e | [
"MIT"
] | 2 | 2016-06-06T03:26:49.000Z | 2017-08-06T18:12:33.000Z | Appserver/Test/ApiUnitTesting/testBusquedaCandidatos.py | seguijoaquin/taller2 | f41232516de15fe045805131b09299e5c2634e5e | [
"MIT"
] | 60 | 2016-03-19T16:01:27.000Z | 2016-06-23T16:26:10.000Z | Appserver/Test/ApiUnitTesting/testBusquedaCandidatos.py | seguijoaquin/taller2 | f41232516de15fe045805131b09299e5c2634e5e | [
"MIT"
] | null | null | null | import json
import requests
import unittest
import Utilities
# Precondiciones:
# Intereses:
# No debe haber ningun usuario en el Shared que tenga "interesUnico"
#
Address = "http://localhost:8000"
#Tal vez mandar las URIs a sus respectivas clases
URIResgistro = "/registro"
URILogin = "/login"
URIPedirCandidato = ... | 43.451429 | 233 | 0.768017 | 582 | 7,604 | 10.003436 | 0.331615 | 0.025764 | 0.015459 | 0.013397 | 0.206287 | 0.163861 | 0.081759 | 0.039505 | 0.027825 | 0.027825 | 0 | 0.016539 | 0.157154 | 7,604 | 174 | 234 | 43.701149 | 0.891871 | 0.059442 | 0 | 0.092593 | 0 | 0 | 0.131549 | 0.068366 | 0 | 0 | 0 | 0.005747 | 0.092593 | 1 | 0.138889 | false | 0.046296 | 0.037037 | 0.027778 | 0.361111 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
3db72a55f192a9c9ab68f0478ca0ffc316b36c78 | 1,053 | py | Python | package/diana/utils/iter_dates.py | thomasyi17/diana2 | 2167053dfe15b782d96cb1e695047433f302d4dd | [
"MIT"
] | 15 | 2019-02-12T23:26:09.000Z | 2021-12-21T08:53:58.000Z | package/diana/utils/iter_dates.py | thomasyi17/diana2 | 2167053dfe15b782d96cb1e695047433f302d4dd | [
"MIT"
] | 2 | 2019-01-23T21:13:12.000Z | 2019-06-28T15:45:51.000Z | package/diana/utils/iter_dates.py | thomasyi17/diana2 | 2167053dfe15b782d96cb1e695047433f302d4dd | [
"MIT"
] | 6 | 2019-01-23T20:22:50.000Z | 2022-02-03T03:27:04.000Z | from datetime import datetime, timedelta
class IterDates(object):
def __init__(self, start: datetime, stop: datetime, step: timedelta):
self.start = start
self.stop = stop
self.step = step
self.value = (self.start, self.start + self.step)
def __iter__(self):
return se... | 26.325 | 79 | 0.624881 | 128 | 1,053 | 4.859375 | 0.195313 | 0.115756 | 0.104502 | 0.081994 | 0.538585 | 0.488746 | 0.405145 | 0.160772 | 0.160772 | 0.160772 | 0 | 0.001305 | 0.272555 | 1,053 | 39 | 80 | 27 | 0.810705 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.035714 | 0.071429 | 0.464286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3db739475a32d4a4cd03afcbff8864712c35cad0 | 193 | py | Python | Exercicios Curso Em Video Mundo 2/ex067.py | JorgeTranin/Python_Curso_Em_Video | be74c9301aafc055bdf883be649cb8b7716617e3 | [
"MIT"
] | null | null | null | Exercicios Curso Em Video Mundo 2/ex067.py | JorgeTranin/Python_Curso_Em_Video | be74c9301aafc055bdf883be649cb8b7716617e3 | [
"MIT"
] | null | null | null | Exercicios Curso Em Video Mundo 2/ex067.py | JorgeTranin/Python_Curso_Em_Video | be74c9301aafc055bdf883be649cb8b7716617e3 | [
"MIT"
] | null | null | null | cont = 1
while True:
t = int(input('Quer saber a tabuada de que numero ? '))
if t < 0:
break
for c in range (1, 11):
print(f'{t} X {c} = {t * c}')
print('Obrigado!') | 24.125 | 59 | 0.507772 | 33 | 193 | 2.969697 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038168 | 0.321244 | 193 | 8 | 60 | 24.125 | 0.709924 | 0 | 0 | 0 | 0 | 0 | 0.335052 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3db86f3d8bdc658afbe080624e5b8f952805ce4b | 1,172 | py | Python | src/PassGen/PassGen.py | Natthapolmnc/PasswordGenerator | 1d481de1b4773af99558c68e9570d1801c1f6e2e | [
"MIT"
] | null | null | null | src/PassGen/PassGen.py | Natthapolmnc/PasswordGenerator | 1d481de1b4773af99558c68e9570d1801c1f6e2e | [
"MIT"
] | null | null | null | src/PassGen/PassGen.py | Natthapolmnc/PasswordGenerator | 1d481de1b4773af99558c68e9570d1801c1f6e2e | [
"MIT"
] | null | null | null | import random as rd
def genPass(num , length):
print ("Password Generator")
print ("===================\n")
numpass=num
lenpass=length
AlphaLcase=[ chr(m) for m in range(65, 91)]
AlphaCcase=[ chr(n) for n in range(97, 123)]
Intset=[ chr(p) for p in range(48,58)]
listsetpass=[]
for j... | 35.515152 | 59 | 0.617747 | 133 | 1,172 | 5.443609 | 0.390977 | 0.077348 | 0.041436 | 0.053867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024027 | 0.254266 | 1,172 | 32 | 60 | 36.625 | 0.804348 | 0 | 0 | 0 | 0 | 0 | 0.033276 | 0.017918 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0.580645 | 0.032258 | 0 | 0.096774 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3dbe95131f682ae91ac5d0ab7098a4da9541c391 | 267 | py | Python | gc_win1.py | danz2004/learning_python | 20cb7d33f898bcc406f33565308132dca31e11cd | [
"MIT"
] | null | null | null | gc_win1.py | danz2004/learning_python | 20cb7d33f898bcc406f33565308132dca31e11cd | [
"MIT"
] | null | null | null | gc_win1.py | danz2004/learning_python | 20cb7d33f898bcc406f33565308132dca31e11cd | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
seq = 'ACGACGCAGGAGGAGAGTTTCAGAGATCACGAATACATCCATATTACCCAGAGAGAG'
w = 11
for i in range(len(seq) - w + 1):
count = 0
for j in range(i, i + w):
if seq[j] == 'G' or seq[j] == 'C':
count += 1
print(f'{i} {seq[i:i+w]} {(count / w) : .4f}')
| 26.7 | 65 | 0.595506 | 45 | 267 | 3.533333 | 0.533333 | 0.08805 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032558 | 0.194757 | 267 | 9 | 66 | 29.666667 | 0.706977 | 0.078652 | 0 | 0 | 0 | 0.125 | 0.387755 | 0.232653 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3dbfa17a77ec527273235935d102cd0d8f5bcbb2 | 7,991 | py | Python | gym_flock/envs/old/flocking.py | katetolstaya/gym-flock | 3236d1dafcb1b9be0cf78b471672e8becb2d37af | [
"MIT"
] | 19 | 2019-07-29T22:19:58.000Z | 2022-01-27T04:38:38.000Z | gym_flock/envs/old/flocking.py | henghenghahei849/gym-flock | b09bdfbbe4a96fe052958d1f9e1e9dd314f58419 | [
"MIT"
] | null | null | null | gym_flock/envs/old/flocking.py | henghenghahei849/gym-flock | b09bdfbbe4a96fe052958d1f9e1e9dd314f58419 | [
"MIT"
] | 5 | 2019-10-03T14:44:49.000Z | 2021-12-09T20:39:39.000Z | import gym
from gym import spaces, error, utils
from gym.utils import seeding
import numpy as np
import configparser
from os import path
import matplotlib.pyplot as plt
from matplotlib.pyplot import gca
font = {'family': 'sans-serif',
'weight': 'bold',
'size': 14}
class FlockingEnv(gym.Env):
def... | 36.99537 | 134 | 0.585659 | 1,161 | 7,991 | 3.892334 | 0.236003 | 0.029874 | 0.046249 | 0.026555 | 0.208453 | 0.166409 | 0.135428 | 0.125249 | 0.103563 | 0.068157 | 0 | 0.021663 | 0.289451 | 7,991 | 216 | 135 | 36.99537 | 0.774216 | 0.246527 | 0 | 0.063492 | 0 | 0 | 0.023463 | 0 | 0 | 0 | 0 | 0.013889 | 0.007937 | 1 | 0.087302 | false | 0.007937 | 0.063492 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3dc72f281f6a609f6178afd5c15a1c8b5b592cd3 | 278 | py | Python | subdomains/gen_master_data.py | sjy5386/subshorts | d8170ee4a66989c3e852f86aa83bab6341e3aa10 | [
"MIT"
] | 3 | 2022-03-08T19:02:41.000Z | 2022-03-16T23:04:37.000Z | subdomains/gen_master_data.py | sjy5386/subshorts | d8170ee4a66989c3e852f86aa83bab6341e3aa10 | [
"MIT"
] | 5 | 2022-03-17T02:16:52.000Z | 2022-03-18T02:55:25.000Z | subdomains/gen_master_data.py | sjy5386/subshorts | d8170ee4a66989c3e852f86aa83bab6341e3aa10 | [
"MIT"
] | null | null | null | from .models import ReservedName
def gen_master(apps, scheme_editor):
reserved_names = ['co', 'com', 'example', 'go', 'gov', 'icann', 'ne', 'net', 'nic', 'or', 'org', 'whois', 'www']
for reserved_name in reserved_names:
ReservedName(name=reserved_name).save()
| 34.75 | 116 | 0.647482 | 36 | 278 | 4.833333 | 0.805556 | 0.149425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161871 | 278 | 7 | 117 | 39.714286 | 0.746781 | 0 | 0 | 0 | 0 | 0 | 0.154676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3dd1773f50f2af84354e0431bf0e4276687f173e | 3,401 | py | Python | Server/Python/src/dbs/dao/Oracle/MigrationBlock/Update.py | vkuznet/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 8 | 2015-08-14T04:01:32.000Z | 2021-06-03T00:56:42.000Z | Server/Python/src/dbs/dao/Oracle/MigrationBlock/Update.py | yuyiguo/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 162 | 2015-01-07T21:34:47.000Z | 2021-10-13T09:42:41.000Z | Server/Python/src/dbs/dao/Oracle/MigrationBlock/Update.py | yuyiguo/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 16 | 2015-01-22T15:27:29.000Z | 2021-04-28T09:23:28.000Z | #!/usr/bin/env python
"""
This module provides Migration.Update data access object.
"""
from WMCore.Database.DBFormatter import DBFormatter
from dbs.utils.dbsExceptionHandler import dbsExceptionHandler
from dbs.utils.DBSDaoTools import create_token_generator
class Update(DBFormatter):
"""
Migration Update DAO ... | 46.589041 | 165 | 0.614231 | 362 | 3,401 | 5.571823 | 0.323204 | 0.104115 | 0.063461 | 0.035697 | 0.199306 | 0.098166 | 0.072385 | 0.072385 | 0 | 0 | 0 | 0.015365 | 0.291973 | 3,401 | 72 | 166 | 47.236111 | 0.822259 | 0.019112 | 0 | 0.081081 | 0 | 0 | 0.314986 | 0.095219 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081081 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3dd4b115a1efae712e7d58d8046528f7acbf782b | 1,467 | py | Python | for_straight_forward_relion/read_star_del_metadata_param.py | homurachan/Block-based-recontruction | b3fc02a0648db6aaa5d77dcc4b8e10f3361d66f4 | [
"WTFPL"
] | 11 | 2018-04-17T01:41:11.000Z | 2020-12-11T05:43:21.000Z | for_straight_forward_relion/read_star_del_metadata_param.py | homurachan/Block-based-recontruction | b3fc02a0648db6aaa5d77dcc4b8e10f3361d66f4 | [
"WTFPL"
] | null | null | null | for_straight_forward_relion/read_star_del_metadata_param.py | homurachan/Block-based-recontruction | b3fc02a0648db6aaa5d77dcc4b8e10f3361d66f4 | [
"WTFPL"
] | 3 | 2019-08-23T07:48:50.000Z | 2020-12-08T07:31:41.000Z | #!/usr/bin/env python
import math,os,sys
try:
from optparse import OptionParser
except:
from optik import OptionParser
def main():
(star,mline,line_name,output) = parse_command_line()
aa=open(star,"r")
instar_line=aa.readlines()
out=open(output,"w")
for i in range(0,mline):
if (instar_line[i].split()):
... | 22.227273 | 59 | 0.632584 | 251 | 1,467 | 3.561753 | 0.282869 | 0.123043 | 0.110738 | 0.143177 | 0.314318 | 0.224832 | 0.107383 | 0 | 0 | 0 | 0 | 0.016181 | 0.157464 | 1,467 | 65 | 60 | 22.569231 | 0.70712 | 0.013633 | 0 | 0.072727 | 0 | 0 | 0.080221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054545 | null | null | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3dd551aff5d9acdfce555b2997eb9c881f846544 | 1,382 | py | Python | setup.py | elafefy11/flask_gtts | 8f14b9f114127d8fba240a88f3aa16eb17628872 | [
"MIT"
] | null | null | null | setup.py | elafefy11/flask_gtts | 8f14b9f114127d8fba240a88f3aa16eb17628872 | [
"MIT"
] | null | null | null | setup.py | elafefy11/flask_gtts | 8f14b9f114127d8fba240a88f3aa16eb17628872 | [
"MIT"
] | null | null | null | """
Flask-gTTS
-------------
A Flask extension to add gTTS Google text to speech, into the template,
it makes adding and configuring multiple text to speech audio files at
a time much easier and less time consuming
"""
from setuptools import setup
setup(
name='Flask-gTTS',
version='0.11',
url='https://g... | 29.404255 | 76 | 0.633864 | 157 | 1,382 | 5.464968 | 0.624204 | 0.062937 | 0.055944 | 0.037296 | 0.125874 | 0.074592 | 0.074592 | 0 | 0 | 0 | 0 | 0.013915 | 0.219971 | 1,382 | 46 | 77 | 30.043478 | 0.782004 | 0.152677 | 0 | 0.057143 | 0 | 0 | 0.487091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.028571 | 0 | 0.028571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3dd7149bf486a0156690dac8d36a869ec269ebf6 | 9,280 | py | Python | src/aux_funcs.py | ArunBaskaran/Image-Driven-Machine-Learning-Approach-for-Microstructure-Classification-and-Segmentation-Ti-6Al-4V | 79ca40ababbc65464650c5519f9e7fdbf3c9d14d | [
"MIT"
] | 7 | 2020-03-19T05:04:30.000Z | 2022-03-31T10:29:42.000Z | src/aux_funcs.py | ArunBaskaran/Image-Driven-Machine-Learning-Approach-for-Microstructure-Classification-and-Segmentation-Ti-6Al-4V | 79ca40ababbc65464650c5519f9e7fdbf3c9d14d | [
"MIT"
] | 2 | 2020-08-19T03:24:31.000Z | 2021-03-02T00:18:46.000Z | src/aux_funcs.py | ArunBaskaran/Image-Driven-Machine-Learning-Approach-for-Microstructure-Classification-and-Segmentation-Ti-6Al-4V | 79ca40ababbc65464650c5519f9e7fdbf3c9d14d | [
"MIT"
] | 3 | 2020-09-17T04:15:04.000Z | 2021-01-18T08:37:39.000Z | """
----------------------------------ABOUT-----------------------------------
Author: Arun Baskaran
--------------------------------------------------------------------------
"""
import model_params
def smooth(img):
return 0.5*img + 0.5*(
np.roll(img, +1, axis=0) + np.roll(img, -1, axis=0) +
np.r... | 44.830918 | 210 | 0.650108 | 1,292 | 9,280 | 4.5 | 0.227554 | 0.0258 | 0.016512 | 0.013244 | 0.45012 | 0.405745 | 0.351221 | 0.338493 | 0.314757 | 0.261954 | 0 | 0.044913 | 0.186638 | 9,280 | 206 | 211 | 45.048544 | 0.725358 | 0.027371 | 0 | 0.236686 | 0 | 0 | 0.02873 | 0.003054 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.005917 | null | null | 0.005917 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3dd84d6968111423f954120eed10897fd01c00ea | 1,355 | py | Python | CIFAR10.py | jimmyLeeMc/NeuralNetworkTesting | a6208cc8639a93ac24655495c9ace1acba21c76f | [
"MIT"
] | null | null | null | CIFAR10.py | jimmyLeeMc/NeuralNetworkTesting | a6208cc8639a93ac24655495c9ace1acba21c76f | [
"MIT"
] | null | null | null | CIFAR10.py | jimmyLeeMc/NeuralNetworkTesting | a6208cc8639a93ac24655495c9ace1acba21c76f | [
"MIT"
] | null | null | null |
#CIFAR
from tensorflow import keras
import numpy as np
import matplotlib.pyplot as plt
data = keras.datasets.cifar10
activations=[keras.activations.sigmoid, keras.activations.relu,
keras.layers.LeakyReLU(), keras.activations.tanh]
results=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
class_names=[0,1,2,3,4,5,6,7,8,9]
... | 38.714286 | 108 | 0.591882 | 184 | 1,355 | 4.26087 | 0.434783 | 0.05102 | 0.072704 | 0.091837 | 0.026786 | 0.026786 | 0.026786 | 0.026786 | 0.026786 | 0.026786 | 0 | 0.067554 | 0.278967 | 1,355 | 34 | 109 | 39.852941 | 0.734903 | 0 | 0 | 0 | 0 | 0 | 0.038231 | 0.023238 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.103448 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3dd93f9bb15a42397c641e431fd3df72da46ab0d | 3,127 | py | Python | All_RasPy_Files/edgedetection.py | govindak-umd/Autonomous_Robotics | 5293b871c7032b40cbff7814bd773871ee2c5946 | [
"MIT"
] | 2 | 2020-05-14T11:23:30.000Z | 2020-05-25T06:30:57.000Z | All_RasPy_Files/edgedetection.py | govindak-umd/ENPM809T | 5293b871c7032b40cbff7814bd773871ee2c5946 | [
"MIT"
] | null | null | null | All_RasPy_Files/edgedetection.py | govindak-umd/ENPM809T | 5293b871c7032b40cbff7814bd773871ee2c5946 | [
"MIT"
] | 5 | 2020-06-09T22:09:15.000Z | 2022-01-31T17:11:19.000Z | # ENME 489Y: Remote Sensing
# Edge detection
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
# Define slice of an arbitrary original image
f = np.empty((0))
index = np.empty((0))
# Create intensity data, including noise
for i in range(2000):
index = np.append(index, i)
if i <= 950:
... | 23.689394 | 76 | 0.68692 | 525 | 3,127 | 4.08381 | 0.20381 | 0.035448 | 0.058769 | 0.062966 | 0.539179 | 0.479944 | 0.466884 | 0.373134 | 0.348881 | 0.348881 | 0 | 0.029817 | 0.141989 | 3,127 | 131 | 77 | 23.870229 | 0.769288 | 0.177806 | 0 | 0.40625 | 0 | 0.010417 | 0.237388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03125 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3dda1806de2d35a90208c505c2c72da1466cf4a9 | 1,850 | py | Python | alipay/aop/api/domain/AlipayCommerceReceiptBatchqueryModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/domain/AlipayCommerceReceiptBatchqueryModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/domain/AlipayCommerceReceiptBatchqueryModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayCommerceReceiptBatchqueryModel(object):
def __init__(self):
self._level = None
self._out_biz_no_list = None
@property
def level(self):
return self._level
... | 28.90625 | 81 | 0.585405 | 246 | 1,850 | 4.04878 | 0.203252 | 0.120482 | 0.160643 | 0.240964 | 0.39759 | 0.236948 | 0.160643 | 0.160643 | 0.120482 | 0.068273 | 0 | 0.001587 | 0.318919 | 1,850 | 63 | 82 | 29.365079 | 0.788889 | 0.022703 | 0 | 0.081633 | 0 | 0 | 0.067627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.040816 | 0.040816 | 0.306122 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ddaf9735b2cb2b79bcc96e4e4c161028c28ae19 | 2,632 | py | Python | tests/test_timeconversion.py | FObersteiner/pyFuppes | 2a8c6e210855598dbf4fb491533bf22706340c9a | [
"MIT"
] | 1 | 2020-06-02T08:02:36.000Z | 2020-06-02T08:02:36.000Z | tests/test_timeconversion.py | FObersteiner/pyFuppes | 2a8c6e210855598dbf4fb491533bf22706340c9a | [
"MIT"
] | 3 | 2022-03-04T11:43:19.000Z | 2022-03-25T00:26:46.000Z | tests/test_timeconversion.py | FObersteiner/pyFuppes | 2a8c6e210855598dbf4fb491533bf22706340c9a | [
"MIT"
] | null | null | null | import unittest
from datetime import datetime, timezone
from pyfuppes import timeconversion
class TestTimeconv(unittest.TestCase):
@classmethod
def setUpClass(cls):
# to run before all tests
print("testing pyfuppes.timeconversion...")
@classmethod
def tearDownClass(cls... | 32.9 | 81 | 0.587006 | 344 | 2,632 | 4.363372 | 0.261628 | 0.02998 | 0.111925 | 0.063957 | 0.433711 | 0.393738 | 0.334444 | 0.271153 | 0.187875 | 0.187875 | 0 | 0.134179 | 0.280775 | 2,632 | 79 | 82 | 33.316456 | 0.658743 | 0.049012 | 0 | 0.22807 | 0 | 0 | 0.086507 | 0.041805 | 0 | 0 | 0 | 0 | 0.175439 | 1 | 0.175439 | false | 0.052632 | 0.052632 | 0 | 0.245614 | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3ddd545e8ac1636ac0a7d92a17cca391f2e23803 | 7,468 | py | Python | tool/powermon.py | virajpadte/Power_monitoring_JetsonTX1 | 3f337adb16ce09072d69147b705a0c705b3ad53c | [
"MIT"
] | null | null | null | tool/powermon.py | virajpadte/Power_monitoring_JetsonTX1 | 3f337adb16ce09072d69147b705a0c705b3ad53c | [
"MIT"
] | null | null | null | tool/powermon.py | virajpadte/Power_monitoring_JetsonTX1 | 3f337adb16ce09072d69147b705a0c705b3ad53c | [
"MIT"
] | null | null | null | import sys
import glob
import serial
import ttk
import tkFileDialog
from Tkinter import *
#for plotting we need these:
import matplotlib
matplotlib.use("TkAgg")
import matplotlib.pyplot as plt
from drawnow import *
class MainView:
#CLASS VARIABLES:
closing_status = False
powerW = []
def __init__(se... | 35.561905 | 138 | 0.595742 | 934 | 7,468 | 4.695931 | 0.293362 | 0.02508 | 0.015048 | 0.019152 | 0.28591 | 0.258778 | 0.240538 | 0.212038 | 0.188326 | 0.188326 | 0 | 0.016787 | 0.298072 | 7,468 | 209 | 139 | 35.732057 | 0.819916 | 0.181441 | 0 | 0.324675 | 0 | 0 | 0.102687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006494 | 0.058442 | null | null | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3de3ed318e614e22c2b9f52348133eddba3a0fee | 2,424 | py | Python | messages.py | runjak/hoodedFigure | 539c9839dd47bc181e592bf4a61eaab361b8d316 | [
"MIT"
] | null | null | null | messages.py | runjak/hoodedFigure | 539c9839dd47bc181e592bf4a61eaab361b8d316 | [
"MIT"
] | null | null | null | messages.py | runjak/hoodedFigure | 539c9839dd47bc181e592bf4a61eaab361b8d316 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import random
sentences = [
"Going into the #dogpark is not allowed, @%s.",
"That's my favourite #dogpark @%s - no one is allowed to go into it!",
"That #dogpark you mention is forbidden! Please don't, @%s",
"The #dogpark should be secured with electrified barbwire. "
"Don... | 44.072727 | 79 | 0.636139 | 365 | 2,424 | 4.216438 | 0.50137 | 0.103964 | 0.031189 | 0.020793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002762 | 0.2533 | 2,424 | 54 | 80 | 44.888889 | 0.845856 | 0.008663 | 0 | 0 | 0 | 0 | 0.72803 | 0.008746 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.020408 | 0 | 0.081633 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3deea7c2a0399d6a1677f78e7cc36afe63de0fc2 | 1,780 | py | Python | keystroke/migrations/0001_initial.py | jstavanja/quiz-biometrics-api | 75e0db348668b14a85f94261aac092ae2d5fa9c6 | [
"MIT"
] | null | null | null | keystroke/migrations/0001_initial.py | jstavanja/quiz-biometrics-api | 75e0db348668b14a85f94261aac092ae2d5fa9c6 | [
"MIT"
] | null | null | null | keystroke/migrations/0001_initial.py | jstavanja/quiz-biometrics-api | 75e0db348668b14a85f94261aac092ae2d5fa9c6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-08-20 16:31
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Cre... | 34.901961 | 115 | 0.591573 | 169 | 1,780 | 6.065089 | 0.414201 | 0.03122 | 0.070244 | 0.093659 | 0.572683 | 0.465366 | 0.365854 | 0.365854 | 0.365854 | 0.365854 | 0 | 0.025059 | 0.282584 | 1,780 | 50 | 116 | 35.6 | 0.777604 | 0.038764 | 0 | 0.5 | 1 | 0 | 0.127635 | 0.015808 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3df0af937b9149db956b0d8ec02537a403587abe | 19,082 | py | Python | src/oci/log_analytics/models/query_details.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 249 | 2017-09-11T22:06:05.000Z | 2022-03-04T17:09:29.000Z | src/oci/log_analytics/models/query_details.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 228 | 2017-09-11T23:07:26.000Z | 2022-03-23T10:58:50.000Z | src/oci/log_analytics/models/query_details.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 224 | 2017-09-27T07:32:43.000Z | 2022-03-25T16:55:42.000Z | # coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 35.600746 | 245 | 0.672466 | 2,359 | 19,082 | 5.177618 | 0.110216 | 0.037334 | 0.110529 | 0.050434 | 0.74431 | 0.628623 | 0.540282 | 0.419109 | 0.347225 | 0.312756 | 0 | 0.00257 | 0.265853 | 19,082 | 535 | 246 | 35.66729 | 0.869298 | 0.539094 | 0 | 0.113772 | 0 | 0 | 0.140941 | 0.053231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203593 | false | 0 | 0.011976 | 0.011976 | 0.353293 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3df0f23a4341291aa332900c1b4adf982ac1f716 | 2,740 | py | Python | moist.py | phiriv/moisture_sensor | 1e6a5d967ab639c67bae03847bd58ede31bde564 | [
"MIT"
] | null | null | null | moist.py | phiriv/moisture_sensor | 1e6a5d967ab639c67bae03847bd58ede31bde564 | [
"MIT"
] | null | null | null | moist.py | phiriv/moisture_sensor | 1e6a5d967ab639c67bae03847bd58ede31bde564 | [
"MIT"
] | null | null | null | Script to read temperature data from the DHT11:
# Importeer Adafruit DHT bibliotheek.
import Adafruit_DHT
import time
als = True
while als:
humidity, temperature = Adafruit_DHT.read_retry(Adafruit_DHT.DHT11, 4) #on gpio pin 4 or pin 7
if humidity is not None and temperature is not None:
humidity ... | 30.10989 | 104 | 0.622628 | 362 | 2,740 | 4.671271 | 0.378453 | 0.05204 | 0.021289 | 0.036665 | 0.348906 | 0.301597 | 0.301597 | 0.301597 | 0.301597 | 0.301597 | 0 | 0.026772 | 0.263869 | 2,740 | 90 | 105 | 30.444444 | 0.811601 | 0.082847 | 0 | 0.309859 | 0 | 0 | 0.096975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.140845 | null | null | 0.070423 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3df8c0e29455e554abfe1f3cc62c34726c6ded0b | 1,264 | py | Python | Python/PythonOOP/animals.py | JosephAMumford/CodingDojo | 505be74d18d7a8f41c4b3576ca050b97f840f0a3 | [
"MIT"
] | 2 | 2018-08-18T15:14:45.000Z | 2019-10-16T16:14:13.000Z | Python/PythonOOP/animals.py | JosephAMumford/CodingDojo | 505be74d18d7a8f41c4b3576ca050b97f840f0a3 | [
"MIT"
] | null | null | null | Python/PythonOOP/animals.py | JosephAMumford/CodingDojo | 505be74d18d7a8f41c4b3576ca050b97f840f0a3 | [
"MIT"
] | 6 | 2018-05-05T18:13:05.000Z | 2021-05-20T11:32:48.000Z | class Animal(object):
def __init__(self,name,health):
self.name = name
self.health = 50
def walk(self):
self.health = self.health - 1
return self
def run(self):
self.health = self.health - 5
return self
def display_health(self):
print "Healt... | 22.175439 | 60 | 0.630538 | 168 | 1,264 | 4.684524 | 0.285714 | 0.127065 | 0.071156 | 0.091487 | 0.459975 | 0.266836 | 0.165184 | 0.088945 | 0 | 0 | 0 | 0.030896 | 0.231804 | 1,264 | 56 | 61 | 22.571429 | 0.779609 | 0.211234 | 0 | 0.25 | 0 | 0 | 0.049645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ad000563b867048b766de0b54cb60801221e67a0 | 598 | py | Python | fileparse/python/main.py | mlavergn/benchmarks | 4663009772c71d7c94bcd13eec542d1ce33cef72 | [
"Unlicense"
] | null | null | null | fileparse/python/main.py | mlavergn/benchmarks | 4663009772c71d7c94bcd13eec542d1ce33cef72 | [
"Unlicense"
] | null | null | null | fileparse/python/main.py | mlavergn/benchmarks | 4663009772c71d7c94bcd13eec542d1ce33cef72 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
import timeit
setup = '''
import os
def FileTest(path):
file = open(path, "r")
lines = file.readlines()
data = [None for i in range(len(lines))]
i = 0
for line in lines:
data[i] = line.split(',')
j = 0
for field in data[i]:
data[i][j] = field.strip('\\'\\n')
j += 1
i += 1
re... | 20.62069 | 93 | 0.605351 | 91 | 598 | 3.978022 | 0.450549 | 0.041436 | 0.104972 | 0.149171 | 0.458564 | 0.458564 | 0.458564 | 0.458564 | 0.458564 | 0.458564 | 0 | 0.032653 | 0.180602 | 598 | 28 | 94 | 21.357143 | 0.706122 | 0.026756 | 0 | 0.095238 | 0 | 0 | 0.671256 | 0.036145 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.142857 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a7853c5ab201c882d582391f394325cd2ad7796 | 1,247 | py | Python | src/test/nspawn_test/support/header_test.py | Andrei-Pozolotin/nspawn | 9dd3926f1d1a3a0648f6ec14199cbf4069af1c98 | [
"Apache-2.0"
] | 15 | 2019-10-10T17:35:48.000Z | 2022-01-29T10:41:01.000Z | src/test/nspawn_test/support/header_test.py | Andrei-Pozolotin/nspawn | 9dd3926f1d1a3a0648f6ec14199cbf4069af1c98 | [
"Apache-2.0"
] | null | null | null | src/test/nspawn_test/support/header_test.py | Andrei-Pozolotin/nspawn | 9dd3926f1d1a3a0648f6ec14199cbf4069af1c98 | [
"Apache-2.0"
] | 2 | 2019-10-10T17:36:43.000Z | 2020-06-20T15:28:33.000Z |
from nspawn.support.header import *
def test_header():
print()
head_dict = {
'etag':'some-hash',
'last-modified':'some-time',
'content-length':'some-size',
'nspawn-digest':'some-text',
}
assert head_dict[Header.etag] == 'some-hash'
assert head_dict[Header.last_modi... | 25.44898 | 58 | 0.57498 | 133 | 1,247 | 5.270677 | 0.225564 | 0.119829 | 0.159772 | 0.199715 | 0.514979 | 0.477889 | 0.477889 | 0.477889 | 0.360913 | 0.291013 | 0 | 0.008511 | 0.246191 | 1,247 | 48 | 59 | 25.979167 | 0.737234 | 0 | 0 | 0.619048 | 0 | 0 | 0.28996 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.047619 | false | 0 | 0.02381 | 0 | 0.071429 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a79fb2f2787441274d55999dc0843161af999b5 | 401 | py | Python | dmoj/Uncategorized/tss17a.py | UserBlackBox/competitive-programming | 2aa8ffa6df6a386f8e47d084b5fa32d6d741bbbc | [
"Unlicense"
] | null | null | null | dmoj/Uncategorized/tss17a.py | UserBlackBox/competitive-programming | 2aa8ffa6df6a386f8e47d084b5fa32d6d741bbbc | [
"Unlicense"
] | null | null | null | dmoj/Uncategorized/tss17a.py | UserBlackBox/competitive-programming | 2aa8ffa6df6a386f8e47d084b5fa32d6d741bbbc | [
"Unlicense"
] | null | null | null | # https://dmoj.ca/problem/tss17a
# https://dmoj.ca/submission/2226280
import sys
n = int(sys.stdin.readline()[:-1])
for i in range(n):
instruction = sys.stdin.readline()[:-1].split()
printed = False
for j in range(3):
if instruction.count(instruction[j]) >= 2:
print(instruction[j])
... | 26.733333 | 51 | 0.578554 | 52 | 401 | 4.461538 | 0.596154 | 0.077586 | 0.094828 | 0.146552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043771 | 0.259352 | 401 | 15 | 52 | 26.733333 | 0.737374 | 0.162095 | 0 | 0 | 0 | 0 | 0.008982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
9a7ad9eea9244d2609a2517f92f7fc289fb240da | 1,159 | py | Python | todo/views/users_detail.py | josalhor/WebModels | 6b9cde3141c53562f40b129e6e1c87448ce9853a | [
"BSD-3-Clause"
] | null | null | null | todo/views/users_detail.py | josalhor/WebModels | 6b9cde3141c53562f40b129e6e1c87448ce9853a | [
"BSD-3-Clause"
] | 41 | 2021-03-23T12:58:25.000Z | 2021-05-25T11:38:42.000Z | todo/views/users_detail.py | josalhor/WebModels | 6b9cde3141c53562f40b129e6e1c87448ce9853a | [
"BSD-3-Clause"
] | null | null | null | from todo.templatetags.todo_tags import is_management
from django.contrib.auth.decorators import login_required, user_passes_test
from django.http import HttpResponse
from django.shortcuts import render
from todo.models import Designer, Management, Writer, Editor
@login_required
@user_passes_test(is_management)
def u... | 30.5 | 75 | 0.667817 | 137 | 1,159 | 5.430657 | 0.416058 | 0.075269 | 0.056452 | 0.072581 | 0.236559 | 0.075269 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202761 | 1,159 | 37 | 76 | 31.324324 | 0.805195 | 0.068162 | 0 | 0 | 0 | 0 | 0.092323 | 0.02138 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.08 | 0.2 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9a7dca2e7b004aae5d55d6951056ac9880930921 | 3,100 | py | Python | tests/test_relations.py | OneRaynyDay/treeno | ce11b8447f471c0b5ea596a211b3855625ec43eb | [
"MIT"
] | 1 | 2021-12-28T19:00:01.000Z | 2021-12-28T19:00:01.000Z | tests/test_relations.py | OneRaynyDay/treeno | ce11b8447f471c0b5ea596a211b3855625ec43eb | [
"MIT"
] | null | null | null | tests/test_relations.py | OneRaynyDay/treeno | ce11b8447f471c0b5ea596a211b3855625ec43eb | [
"MIT"
] | null | null | null | import unittest
from treeno.base import PrintMode, PrintOptions
from treeno.expression import Array, Field, wrap_literal
from treeno.orderby import OrderTerm, OrderType
from treeno.relation import (
AliasedRelation,
Lateral,
SampleType,
Table,
TableQuery,
TableSample,
Unnest,
ValuesQuer... | 31 | 84 | 0.560968 | 323 | 3,100 | 5.30031 | 0.204334 | 0.131425 | 0.155374 | 0.228972 | 0.42757 | 0.331776 | 0.245327 | 0.125 | 0.125 | 0.125 | 0 | 0.013902 | 0.303871 | 3,100 | 99 | 85 | 31.313131 | 0.779425 | 0.007742 | 0 | 0.127907 | 0 | 0 | 0.141835 | 0.034483 | 0 | 0 | 0 | 0 | 0.116279 | 1 | 0.05814 | false | 0 | 0.05814 | 0 | 0.127907 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a87b0a003cfac44c4b71f5b09ccd17d4a3eced1 | 8,683 | py | Python | python/accel_adxl345/accel_adxl345.py | iorodeo/accel_adxl345 | aadbca1c57840f66a61556ff02e72e8b8e4e93e0 | [
"Apache-2.0"
] | null | null | null | python/accel_adxl345/accel_adxl345.py | iorodeo/accel_adxl345 | aadbca1c57840f66a61556ff02e72e8b8e4e93e0 | [
"Apache-2.0"
] | null | null | null | python/accel_adxl345/accel_adxl345.py | iorodeo/accel_adxl345 | aadbca1c57840f66a61556ff02e72e8b8e4e93e0 | [
"Apache-2.0"
] | null | null | null | """
accel_adxl345.py
This modules defines the AccelADXL345 class for streaming data from the
ADXL345 accelerometers.
"""
import time
import serial
import sys
import numpy
import struct
BUF_EMPTY_NUM = 5
BUF_EMPTY_DT = 0.05
class AccelADXL345(serial.Serial):
def __init__(self, **kwarg):
# Command ids
... | 27.741214 | 86 | 0.524012 | 943 | 8,683 | 4.73913 | 0.225875 | 0.018796 | 0.022153 | 0.031327 | 0.200269 | 0.160662 | 0.142314 | 0.132916 | 0.121951 | 0.103155 | 0 | 0.019583 | 0.364851 | 8,683 | 312 | 87 | 27.830128 | 0.790752 | 0.090867 | 0 | 0.197605 | 0 | 0 | 0.082905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02994 | null | null | 0.005988 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a8866fd681b05cff1de0c32ef8dae40aefe5351 | 831 | py | Python | polling_stations/apps/data_collection/management/commands/import_tower_hamlets.py | mtravis/UK-Polling-Stations | 26e0331dc29253dc436a0462ffaa01e974c5dc52 | [
"BSD-3-Clause"
] | null | null | null | polling_stations/apps/data_collection/management/commands/import_tower_hamlets.py | mtravis/UK-Polling-Stations | 26e0331dc29253dc436a0462ffaa01e974c5dc52 | [
"BSD-3-Clause"
] | null | null | null | polling_stations/apps/data_collection/management/commands/import_tower_hamlets.py | mtravis/UK-Polling-Stations | 26e0331dc29253dc436a0462ffaa01e974c5dc52 | [
"BSD-3-Clause"
] | null | null | null | from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter
class Command(BaseXpressDemocracyClubCsvImporter):
council_id = "E09000030"
addresses_name = "local.2018-05-03/Version 2/Democracy_Club__03May2018.tsv"
stations_name = "local.2018-05-03/Version 2/Democracy_Club__03May2018.t... | 34.625 | 82 | 0.683514 | 98 | 831 | 5.571429 | 0.591837 | 0.049451 | 0.06044 | 0.071429 | 0.29304 | 0.29304 | 0.18315 | 0.18315 | 0.18315 | 0.18315 | 0 | 0.100304 | 0.208183 | 831 | 23 | 83 | 36.130435 | 0.729483 | 0 | 0 | 0 | 0 | 0 | 0.222623 | 0.132371 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
9a8ce9049f7230937ae69e4978f32515e2f46236 | 654 | py | Python | saltlint/rules/CmdWaitRecommendRule.py | Poulpatine/salt-lint | 304917d95d2730e7df8bd7b5dd29a3bd77c80250 | [
"MIT"
] | null | null | null | saltlint/rules/CmdWaitRecommendRule.py | Poulpatine/salt-lint | 304917d95d2730e7df8bd7b5dd29a3bd77c80250 | [
"MIT"
] | null | null | null | saltlint/rules/CmdWaitRecommendRule.py | Poulpatine/salt-lint | 304917d95d2730e7df8bd7b5dd29a3bd77c80250 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2020 Warpnet B.V.
import re
from saltlint.linter.rule import DeprecationRule
from saltlint.utils import LANGUAGE_SLS
class CmdWaitRecommendRule(DeprecationRule):
id = '213'
shortdesc = 'SaltStack recommends using cmd.run together with onchanges, rather than cmd.wait'
... | 28.434783 | 100 | 0.697248 | 83 | 654 | 5.457831 | 0.674699 | 0.046358 | 0.10596 | 0.119205 | 0.300221 | 0.300221 | 0.300221 | 0.300221 | 0.300221 | 0.300221 | 0 | 0.016886 | 0.185015 | 654 | 22 | 101 | 29.727273 | 0.833021 | 0.08104 | 0 | 0 | 0 | 0 | 0.344482 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0.071429 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9a969dcb4bdc1a8eee56b110c60c1611472a3520 | 1,834 | py | Python | bob-ross/cluster-paintings.py | h4ckfu/data | bdc02fd5051dfb31e42f8e078832ceead92f9958 | [
"CC-BY-4.0"
] | 16,124 | 2015-01-01T06:18:12.000Z | 2022-03-31T00:46:52.000Z | bob-ross/cluster-paintings.py | h4ckfu/data | bdc02fd5051dfb31e42f8e078832ceead92f9958 | [
"CC-BY-4.0"
] | 179 | 2015-01-07T10:19:57.000Z | 2022-02-21T21:19:14.000Z | bob-ross/cluster-paintings.py | h4ckfu/data | bdc02fd5051dfb31e42f8e078832ceead92f9958 | [
"CC-BY-4.0"
] | 12,163 | 2015-01-03T14:23:36.000Z | 2022-03-31T10:10:23.000Z | """
Clusters Bob Ross paintings by features.
By Walter Hickey <walter.hickey@fivethirtyeight.com>
See http://fivethirtyeight.com/features/a-statistical-analysis-of-the-work-of-bob-ross/
"""
import numpy as np
from scipy.cluster.vq import vq, kmeans, whiten
import math
import csv
def main():
# load data into ve... | 31.084746 | 93 | 0.640676 | 262 | 1,834 | 4.400763 | 0.461832 | 0.052038 | 0.039029 | 0.020815 | 0.076323 | 0.032958 | 0 | 0 | 0 | 0 | 0 | 0.021168 | 0.252999 | 1,834 | 59 | 94 | 31.084746 | 0.820438 | 0.260087 | 0 | 0 | 0 | 0 | 0.046713 | 0.019896 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.129032 | null | null | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9a9fc338c15aa55b529d0d570899ecd61a1b41cd | 514 | py | Python | Strings/count-index-find.py | tverma332/python3 | 544c4ec9c726c37293c8da5799f50575cc50852d | [
"MIT"
] | 3 | 2022-03-28T09:10:08.000Z | 2022-03-29T10:47:56.000Z | Strings/count-index-find.py | tverma332/python3 | 544c4ec9c726c37293c8da5799f50575cc50852d | [
"MIT"
] | 1 | 2022-03-27T11:52:58.000Z | 2022-03-27T11:52:58.000Z | Strings/count-index-find.py | tverma332/python3 | 544c4ec9c726c37293c8da5799f50575cc50852d | [
"MIT"
] | null | null | null | # 1) count = To count how many time a particular word & char. is appearing
x = "Keep grinding keep hustling"
print(x.count("t"))
# 2) index = To get index of letter(gives the lowest index)
x="Keep grinding keep hustling"
print(x.index("t")) # will give the lowest index value of (t)
# 3) find = To get index of lett... | 25.7 | 82 | 0.684825 | 88 | 514 | 4 | 0.454545 | 0.068182 | 0.110795 | 0.144886 | 0.474432 | 0.474432 | 0.474432 | 0.210227 | 0.210227 | 0 | 0 | 0.023866 | 0.184825 | 514 | 19 | 83 | 27.052632 | 0.816229 | 0.488327 | 0 | 0.5 | 0 | 0 | 0.488372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
9aa3bdf68ace18fc9d168671cbe55ba44bdbac29 | 416 | py | Python | setup.py | xpac1985/pyASA | a6cf470a4d1b731864a1b450e321901636c1ebdf | [
"MIT"
] | 10 | 2017-02-05T12:15:19.000Z | 2020-05-20T14:33:04.000Z | setup.py | xpac1985/pyASA | a6cf470a4d1b731864a1b450e321901636c1ebdf | [
"MIT"
] | null | null | null | setup.py | xpac1985/pyASA | a6cf470a4d1b731864a1b450e321901636c1ebdf | [
"MIT"
] | 3 | 2017-04-02T13:00:28.000Z | 2020-06-13T23:34:37.000Z | from distutils.core import setup
setup(
name='pyASA',
packages=['pyASA'],
version='0.1.0',
description='Wrapper for the Cisco ASA REST API',
author='xpac',
author_email='bjoern@areafunky.net',
url='https://github.com/xpac1985/pyASA',
download_url='https://github.com/xpac1985/pyASA/tarba... | 27.733333 | 67 | 0.646635 | 54 | 416 | 4.944444 | 0.648148 | 0.014981 | 0.022472 | 0.11236 | 0.224719 | 0.224719 | 0 | 0 | 0 | 0 | 0 | 0.040115 | 0.161058 | 416 | 14 | 68 | 29.714286 | 0.724928 | 0 | 0 | 0 | 0 | 0 | 0.435096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9aa976fa66600077fd0293cccc1c6dcd3ade5f91 | 9,390 | py | Python | Statistical Thinking in Python (Part 1)/Thinking_probabilistically--_Discrete_variables.py | shreejitverma/Data-Scientist | 03c06936e957f93182bb18362b01383e5775ffb1 | [
"MIT"
] | 2 | 2022-03-12T04:53:03.000Z | 2022-03-27T12:39:21.000Z | Statistical Thinking in Python (Part 1)/Thinking_probabilistically--_Discrete_variables.py | shivaniverma1/Data-Scientist | f82939a411484311171465591455880c8e354750 | [
"MIT"
] | null | null | null | Statistical Thinking in Python (Part 1)/Thinking_probabilistically--_Discrete_variables.py | shivaniverma1/Data-Scientist | f82939a411484311171465591455880c8e354750 | [
"MIT"
] | 2 | 2022-03-12T04:52:21.000Z | 2022-03-27T12:45:32.000Z | # Thinking probabilistically-- Discrete variables!!
# Statistical inference rests upon probability. Because we can very rarely say anything meaningful with absolute certainty from data, we use probabilistic language to make quantitative statements about data. In this chapter, you will learn how to think probabilistical... | 47.908163 | 812 | 0.760809 | 1,558 | 9,390 | 4.543004 | 0.252888 | 0.016954 | 0.012433 | 0.021192 | 0.156683 | 0.085476 | 0.067251 | 0.067251 | 0.032778 | 0.015541 | 0 | 0.021335 | 0.181363 | 9,390 | 195 | 813 | 48.153846 | 0.899311 | 0.810969 | 0 | 0.234043 | 0 | 0 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0 | 0 | 0.042553 | 0.085106 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9aacaa2c9c98de085aff50585e25fcd2964d6c96 | 1,008 | py | Python | ml/data_engineering/ETL/extract.py | alexnakagawa/tools | b5e8c047293247c8781d44607968402f637e597e | [
"MIT"
] | null | null | null | ml/data_engineering/ETL/extract.py | alexnakagawa/tools | b5e8c047293247c8781d44607968402f637e597e | [
"MIT"
] | null | null | null | ml/data_engineering/ETL/extract.py | alexnakagawa/tools | b5e8c047293247c8781d44607968402f637e597e | [
"MIT"
] | null | null | null | '''
This is an abstract example of Extracting in an ETL pipeline.
Inspired from the "Introduction to Data Engineering" course on Datacamp.com
Author: Alex Nakagawa
'''
import requests
# Fetch the Hackernews post
resp = requests.get("https://hacker-news.firebaseio.com/v0/item/16222426.json")
# Print the response par... | 30.545455 | 79 | 0.779762 | 150 | 1,008 | 5.1 | 0.526667 | 0.052288 | 0.073203 | 0.078431 | 0.117647 | 0.117647 | 0.117647 | 0.117647 | 0.117647 | 0 | 0 | 0.01484 | 0.130952 | 1,008 | 32 | 80 | 31.5 | 0.858447 | 0.456349 | 0 | 0 | 0 | 0 | 0.256554 | 0.089888 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.083333 | 0 | 0.25 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9ab1353597b9195d65b8c371888b502f56866647 | 3,368 | py | Python | physicspy/optics/jones.py | suyag/physicspy | f2b29a72cb08b1de170274b3e35c3d8eda32f9e1 | [
"MIT"
] | null | null | null | physicspy/optics/jones.py | suyag/physicspy | f2b29a72cb08b1de170274b3e35c3d8eda32f9e1 | [
"MIT"
] | null | null | null | physicspy/optics/jones.py | suyag/physicspy | f2b29a72cb08b1de170274b3e35c3d8eda32f9e1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import division
from numpy import sqrt, cos, sin, arctan, exp, abs, pi, conj
from scipy import array, dot, sum
class JonesVector:
""" A Jones vector class to represent polarized EM waves """
def __init__(self,Jarray=array([1,0])):
self.Jx = Jarray[0]
self.J... | 34.367347 | 101 | 0.518705 | 487 | 3,368 | 3.570842 | 0.281314 | 0.011501 | 0.017251 | 0.023002 | 0.256469 | 0.225417 | 0.225417 | 0.184014 | 0.105808 | 0.090857 | 0 | 0.032738 | 0.301663 | 3,368 | 97 | 102 | 34.721649 | 0.706633 | 0.005938 | 0 | 0.037037 | 0 | 0 | 0.021964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9ab5d8227882ea8202fdc93b49f22e935bbc0e93 | 2,560 | py | Python | aiida/cmdline/params/options/config.py | louisponet/aiida-core | 3214236df66a3792ee57fe38a06c0c3bb65861ab | [
"MIT",
"BSD-3-Clause"
] | 1 | 2020-10-01T17:11:58.000Z | 2020-10-01T17:11:58.000Z | aiida/cmdline/params/options/config.py | louisponet/aiida-core | 3214236df66a3792ee57fe38a06c0c3bb65861ab | [
"MIT",
"BSD-3-Clause"
] | 17 | 2020-03-11T17:04:05.000Z | 2020-05-01T09:34:45.000Z | aiida/cmdline/params/options/config.py | louisponet/aiida-core | 3214236df66a3792ee57fe38a06c0c3bb65861ab | [
"MIT",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# ... | 36.056338 | 116 | 0.605078 | 280 | 2,560 | 5.382143 | 0.442857 | 0.059721 | 0.039814 | 0.05574 | 0.075647 | 0.053086 | 0 | 0 | 0 | 0 | 0 | 0.001045 | 0.252734 | 2,560 | 70 | 117 | 36.571429 | 0.786722 | 0.639844 | 0 | 0 | 0 | 0 | 0.026711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9ab9d917b353cf0f8ea3e285cac62732af59e404 | 563 | py | Python | python_learning/exception_redefinition.py | KonstantinKlepikov/all-python-ml-learning | a8a41347b548828bb8531ccdab89c622a0be20e1 | [
"MIT"
] | null | null | null | python_learning/exception_redefinition.py | KonstantinKlepikov/all-python-ml-learning | a8a41347b548828bb8531ccdab89c622a0be20e1 | [
"MIT"
] | null | null | null | python_learning/exception_redefinition.py | KonstantinKlepikov/all-python-ml-learning | a8a41347b548828bb8531ccdab89c622a0be20e1 | [
"MIT"
] | 1 | 2020-12-23T19:32:51.000Z | 2020-12-23T19:32:51.000Z | # example of redefinition __repr__ and __str__ of exception
class MyBad(Exception):
def __str__(self):
return 'My mistake!'
class MyBad2(Exception):
def __repr__(self):
return 'Not calable' # because buid-in method has __str__
try:
raise MyBad('spam')
except MyBad as X:
print(X) #... | 20.107143 | 65 | 0.648313 | 76 | 563 | 4.434211 | 0.407895 | 0.071217 | 0.083086 | 0.053412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.222025 | 563 | 28 | 66 | 20.107143 | 0.755708 | 0.358792 | 0 | 0.470588 | 0 | 0 | 0.096866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 0.117647 | 0.352941 | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
9abd5d0a8f6f8a824f776810d4a5b66aeca261fa | 650 | py | Python | lambda-sfn-terraform/src/LambdaFunction.py | extremenelson/serverless-patterns | c307599ab2759567c581c37d70561e85b0fa8788 | [
"MIT-0"
] | 1 | 2022-01-12T17:22:02.000Z | 2022-01-12T17:22:02.000Z | lambda-sfn-terraform/src/LambdaFunction.py | extremenelson/serverless-patterns | c307599ab2759567c581c37d70561e85b0fa8788 | [
"MIT-0"
] | null | null | null | lambda-sfn-terraform/src/LambdaFunction.py | extremenelson/serverless-patterns | c307599ab2759567c581c37d70561e85b0fa8788 | [
"MIT-0"
] | null | null | null | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
import json
import boto3
import os
from aws_lambda_powertools import Logger
logger = Logger()
client = boto3.client('stepfunctions')
sfnArn = os.environ['SFN_ARN']
def lambda_handler(event, context):
# TODO impl... | 23.214286 | 68 | 0.676923 | 77 | 650 | 5.649351 | 0.675325 | 0.055172 | 0.050575 | 0.087356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01165 | 0.207692 | 650 | 27 | 69 | 24.074074 | 0.83301 | 0.172308 | 0 | 0 | 0 | 0 | 0.181648 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9ac242f669af4d52c4d497c2811debd7113e2d03 | 691 | py | Python | utils/pad.py | Zenodia/nativePytorch_NMT | bfced09eb6e5476d34619dfc0dd41d4ed610248f | [
"MIT"
] | 60 | 2018-09-28T07:53:11.000Z | 2020-11-06T11:59:07.000Z | utils/pad.py | Pravin74/transformer-pytorch | c31e163ed57321e405771ef7fb556d4d92fd5efb | [
"MIT"
] | 2 | 2021-02-15T14:08:08.000Z | 2021-09-12T12:52:37.000Z | utils/pad.py | Pravin74/transformer-pytorch | c31e163ed57321e405771ef7fb556d4d92fd5efb | [
"MIT"
] | 18 | 2018-09-28T07:56:35.000Z | 2020-11-24T00:11:33.000Z | import torch
import numpy as np
PAD_TOKEN_INDEX = 0
def pad_masking(x, target_len):
# x: (batch_size, seq_len)
batch_size, seq_len = x.size()
padded_positions = x == PAD_TOKEN_INDEX # (batch_size, seq_len)
pad_mask = padded_positions.unsqueeze(1).expand(batch_size, target_len, seq_len)
return pa... | 32.904762 | 87 | 0.723589 | 109 | 691 | 4.266055 | 0.311927 | 0.129032 | 0.154839 | 0.193548 | 0.154839 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0.010345 | 0.160637 | 691 | 21 | 88 | 32.904762 | 0.791379 | 0.108538 | 0 | 0.142857 | 0 | 0 | 0.008157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9ac8a6eee2b79ed601b853802a3795b71f290223 | 5,558 | py | Python | xen/xen-4.2.2/tools/python/scripts/test_vm_create.py | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | 1 | 2018-02-02T00:15:26.000Z | 2018-02-02T00:15:26.000Z | xen/xen-4.2.2/tools/python/scripts/test_vm_create.py | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | null | null | null | xen/xen-4.2.2/tools/python/scripts/test_vm_create.py | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | 1 | 2019-05-27T09:47:18.000Z | 2019-05-27T09:47:18.000Z | #!/usr/bin/python
vm_cfg = {
'name_label': 'APIVM',
'user_version': 1,
'is_a_template': False,
'auto_power_on': False, # TODO
'memory_static_min': 64,
'memory_static_max': 128,
#'memory_dynamic_min': 64,
#'memory_dynamic_max': 128,
'VCPUs_policy': 'credit',
'VCPUs... | 26.216981 | 75 | 0.542821 | 649 | 5,558 | 4.366718 | 0.265023 | 0.100917 | 0.071983 | 0.018349 | 0.254411 | 0.164432 | 0.132675 | 0.02964 | 0.02964 | 0.02964 | 0 | 0.01362 | 0.313062 | 5,558 | 211 | 76 | 26.341232 | 0.728654 | 0.062253 | 0 | 0.142857 | 0 | 0 | 0.235657 | 0.022333 | 0 | 0 | 0 | 0.004739 | 0 | 0 | null | null | 0.012987 | 0.019481 | null | null | 0.032468 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9ac99cea9babd92f880b3baa9bf72af575865d84 | 31,044 | py | Python | gomill/mcts_tuners.py | BenisonSam/goprime | 3613f643ee765b4ad48ebdc27bd9f1121b1c5298 | [
"MIT"
] | null | null | null | gomill/mcts_tuners.py | BenisonSam/goprime | 3613f643ee765b4ad48ebdc27bd9f1121b1c5298 | [
"MIT"
] | null | null | null | gomill/mcts_tuners.py | BenisonSam/goprime | 3613f643ee765b4ad48ebdc27bd9f1121b1c5298 | [
"MIT"
] | null | null | null | """Competitions for parameter tuning using Monte-carlo tree search."""
from __future__ import division
import operator
import random
from heapq import nlargest
from math import exp, log, sqrt
from gomill import compact_tracebacks
from gomill import game_jobs
from gomill import competitions
from gomill import competi... | 35.077966 | 95 | 0.616544 | 3,567 | 31,044 | 5.173255 | 0.143258 | 0.011272 | 0.009213 | 0.007478 | 0.225004 | 0.14751 | 0.100905 | 0.079553 | 0.072075 | 0.054842 | 0 | 0.003019 | 0.295677 | 31,044 | 884 | 96 | 35.117647 | 0.840933 | 0.031439 | 0 | 0.155235 | 0 | 0 | 0.053451 | 0.00358 | 0 | 0 | 0 | 0 | 0.001805 | 0 | null | null | 0 | 0.019856 | null | null | 0.021661 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9acbd6e09016763ff8a75cf2e88c6a01d873ad9c | 9,705 | py | Python | endoscopic_ai.py | dennkitotaichi/AI_prediction_for_patients_with_colorectal_polyps | afbad36cb3fc2de31665fc3b0a7f065b7e6564a0 | [
"MIT"
] | null | null | null | endoscopic_ai.py | dennkitotaichi/AI_prediction_for_patients_with_colorectal_polyps | afbad36cb3fc2de31665fc3b0a7f065b7e6564a0 | [
"MIT"
] | null | null | null | endoscopic_ai.py | dennkitotaichi/AI_prediction_for_patients_with_colorectal_polyps | afbad36cb3fc2de31665fc3b0a7f065b7e6564a0 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#%matplotlib inline
import codecs
import lightgbm as lgb
from sklearn.model_selection import StratifiedShuffleSplit
from sklearn.metrics import mean_squared_error
from sklearn.metrics import r2_score
# Read data
image_file_path = './simulated_dpc_d... | 48.525 | 165 | 0.757651 | 1,544 | 9,705 | 4.446244 | 0.180699 | 0.016606 | 0.02622 | 0.031464 | 0.306336 | 0.215149 | 0.198252 | 0.17276 | 0.162855 | 0.146249 | 0 | 0.03331 | 0.130757 | 9,705 | 199 | 166 | 48.768844 | 0.780346 | 0.188253 | 0 | 0.176871 | 0 | 0 | 0.071192 | 0.006634 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034014 | false | 0 | 0.319728 | 0 | 0.387755 | 0.006803 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9acd3d20a14d9e96bec466426e861a98197f22b0 | 330 | py | Python | src/the_impossible/live/migrations/newsletter/migrations/0002_auto_20200514_1518.py | micha31r/The-Impossible | 7a79dea3169907eb93107107f4003c5813de58dc | [
"MIT"
] | null | null | null | src/the_impossible/live/migrations/newsletter/migrations/0002_auto_20200514_1518.py | micha31r/The-Impossible | 7a79dea3169907eb93107107f4003c5813de58dc | [
"MIT"
] | 2 | 2020-04-15T03:57:42.000Z | 2020-06-06T01:43:34.000Z | src/the_impossible/live/migrations/newsletter/migrations/0002_auto_20200514_1518.py | micha31r/The-Impossible | 7a79dea3169907eb93107107f4003c5813de58dc | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2020-05-14 03:18
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('newsletter', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='Newsletter',
new_name='Subscriber',
... | 18.333333 | 47 | 0.593939 | 34 | 330 | 5.676471 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081545 | 0.293939 | 330 | 17 | 48 | 19.411765 | 0.746781 | 0.136364 | 0 | 0 | 1 | 0 | 0.14841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9ad11bb35b11a89ca5873c299ffa8f65fee28a06 | 3,694 | py | Python | test/test_contacts_info_from_main_page.py | OlgaZtv/python_training | 661165613ef4b9545345a8a2c61a894571ded703 | [
"Apache-2.0"
] | null | null | null | test/test_contacts_info_from_main_page.py | OlgaZtv/python_training | 661165613ef4b9545345a8a2c61a894571ded703 | [
"Apache-2.0"
] | null | null | null | test/test_contacts_info_from_main_page.py | OlgaZtv/python_training | 661165613ef4b9545345a8a2c61a894571ded703 | [
"Apache-2.0"
] | null | null | null | import re
from model.contact import Contact
def test_contact_info_from_home_page(app, db):
app.navigation.open_home_page()
contact_from_home_page = sorted(app.contact.get_contact_list(), key=Contact.id_or_max)
def clean(contact):
return Contact(id=contact.id, firstname=contact.firstname.strip(), ... | 52.028169 | 119 | 0.67542 | 493 | 3,694 | 4.726166 | 0.235294 | 0.122747 | 0.087554 | 0.0897 | 0.414592 | 0.297854 | 0.236052 | 0.226609 | 0.219742 | 0.176824 | 0 | 0.023858 | 0.205739 | 3,694 | 70 | 120 | 52.771429 | 0.770279 | 0.472658 | 0 | 0.125 | 0 | 0 | 0.029703 | 0.01407 | 0 | 0 | 0 | 0 | 0.15625 | 1 | 0.15625 | false | 0 | 0.0625 | 0.125 | 0.34375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
9ad242baf7204452ac38c08eb06958775483a1b5 | 1,790 | py | Python | benchmark.py | raonyguimaraes/machinelearning | 03b18e5c69931c4ee2ea4803de72c846aba97bce | [
"MIT"
] | 1 | 2016-10-23T19:45:12.000Z | 2016-10-23T19:45:12.000Z | benchmark.py | raonyguimaraes/machinelearning | 03b18e5c69931c4ee2ea4803de72c846aba97bce | [
"MIT"
] | null | null | null | benchmark.py | raonyguimaraes/machinelearning | 03b18e5c69931c4ee2ea4803de72c846aba97bce | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Writing Our First Classifier - Machine Learning Recipes #5
#https://www.youtube.com/watch?v=AoeEHqVSNOw&list=PLOU2XLYxmsIIuiBfYad6rFYQU_jL2ryal&index=1
from scipy.spatial import distance
from sklearn.neighbors import KNeighborsClassifier
from sklearn.metrics import accu... | 24.189189 | 92 | 0.754749 | 266 | 1,790 | 4.890977 | 0.315789 | 0.041507 | 0.038432 | 0.027671 | 0.381245 | 0.267487 | 0.236741 | 0.236741 | 0.178324 | 0.119908 | 0 | 0.013012 | 0.141341 | 1,790 | 74 | 93 | 24.189189 | 0.833442 | 0.135196 | 0 | 0.170213 | 0 | 0 | 0.03046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12766 | null | null | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9ad3d0b300ea5b2d36712d2ed1f19a77b925f25f | 383 | py | Python | plaintext_password/checks.py | bryanwills/django-plaintext-password | 752cf0316cdc45dc9bed5f9107614881d613647f | [
"MIT"
] | null | null | null | plaintext_password/checks.py | bryanwills/django-plaintext-password | 752cf0316cdc45dc9bed5f9107614881d613647f | [
"MIT"
] | null | null | null | plaintext_password/checks.py | bryanwills/django-plaintext-password | 752cf0316cdc45dc9bed5f9107614881d613647f | [
"MIT"
] | 2 | 2021-04-23T08:24:08.000Z | 2022-03-01T06:56:33.000Z | from django.contrib.auth.hashers import get_hashers_by_algorithm
from django.core import checks
@checks.register(checks.Tags.security, deploy=True)
def check_for_plaintext_passwords(app_configs, **kwargs):
if "plaintext" in get_hashers_by_algorithm():
yield checks.Critical(
"Plaintext module s... | 34.818182 | 83 | 0.744125 | 51 | 383 | 5.392157 | 0.72549 | 0.072727 | 0.087273 | 0.152727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167102 | 383 | 10 | 84 | 38.3 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0.180157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9ad633a8b545c9fd60433dd7e1485b51abf58bfc | 1,265 | py | Python | app/user/models.py | briankaemingk/streaks-with-todoist | c6cbc982fbedafce04e9f23af7422e996513c8bb | [
"MIT"
] | 3 | 2019-08-06T19:04:32.000Z | 2022-01-19T14:00:12.000Z | app/user/models.py | briankaemingk/streaks-with-todoist | c6cbc982fbedafce04e9f23af7422e996513c8bb | [
"MIT"
] | 6 | 2018-10-14T21:32:58.000Z | 2021-03-20T00:07:56.000Z | app/user/models.py | briankaemingk/streaks-with-todoist | c6cbc982fbedafce04e9f23af7422e996513c8bb | [
"MIT"
] | null | null | null | from app.extensions import db
from flask import current_app
class User(db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer, primary_key=True)
access_token = db.Column(db.String())
jit_feature = db.Column(db.Boolean())
recurrence_resch_feature = db.Column(db.Boolean())
streaks_feature ... | 38.333333 | 147 | 0.714625 | 167 | 1,265 | 5.071856 | 0.269461 | 0.090909 | 0.070838 | 0.141677 | 0.604486 | 0.413223 | 0.276269 | 0.186541 | 0.186541 | 0.186541 | 0 | 0 | 0.177075 | 1,265 | 32 | 148 | 39.53125 | 0.813641 | 0 | 0 | 0 | 0 | 0.045455 | 0.104762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.090909 | 0.045455 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9ad672b90b5e5960648f597358159ab9f9c375ec | 5,060 | py | Python | Invaders/Displays/animation_display.py | JaredsGames/SpaceInvaders | 8a0da236c97340c4a8a06e7dd68e4672f885d9e0 | [
"MIT"
] | null | null | null | Invaders/Displays/animation_display.py | JaredsGames/SpaceInvaders | 8a0da236c97340c4a8a06e7dd68e4672f885d9e0 | [
"MIT"
] | null | null | null | Invaders/Displays/animation_display.py | JaredsGames/SpaceInvaders | 8a0da236c97340c4a8a06e7dd68e4672f885d9e0 | [
"MIT"
] | null | null | null | # Jared Dyreson
# CPSC 386-01
# 2021-11-29
# jareddyreson@csu.fullerton.edu
# @JaredDyreson
#
# Lab 00-04
#
# Some filler text
#
"""
This module contains the Intro display class
"""
import pygame
import functools
import sys
import pathlib
import typing
import os
import dataclasses
import random
from pprint import ppr... | 32.025316 | 86 | 0.594862 | 588 | 5,060 | 4.945578 | 0.30102 | 0.02751 | 0.048143 | 0.018569 | 0.235901 | 0.182256 | 0.120358 | 0.094911 | 0.033012 | 0.033012 | 0 | 0.019682 | 0.317194 | 5,060 | 157 | 87 | 32.229299 | 0.821997 | 0.126285 | 0 | 0.097087 | 0 | 0 | 0.017155 | 0 | 0 | 0 | 0 | 0.012739 | 0 | 1 | 0.029126 | false | 0 | 0.15534 | 0 | 0.203884 | 0.019417 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9ae33df6172e3d387be468447aa95067143972f3 | 4,477 | py | Python | src/apps/tractatusapp/views_spacetree.py | lambdamusic/wittgensteiniana | f9b37282dcf4b93f9a6218cc827a6ab7386a3dd4 | [
"MIT"
] | 1 | 2018-04-24T09:55:40.000Z | 2018-04-24T09:55:40.000Z | src/apps/tractatusapp/views_spacetree.py | lambdamusic/wittgensteiniana | f9b37282dcf4b93f9a6218cc827a6ab7386a3dd4 | [
"MIT"
] | null | null | null | src/apps/tractatusapp/views_spacetree.py | lambdamusic/wittgensteiniana | f9b37282dcf4b93f9a6218cc827a6ab7386a3dd4 | [
"MIT"
] | 1 | 2020-11-25T08:53:49.000Z | 2020-11-25T08:53:49.000Z | """
Using
http://thejit.org/static/v20/Docs/files/Options/Options-Canvas-js.html#Options.Canvas
"""
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.urls import reverse
from django.shortcuts import render, redirect, get_object_or_404
import json
import os
import json
from libs.myuti... | 33.916667 | 309 | 0.663837 | 626 | 4,477 | 4.672524 | 0.375399 | 0.01641 | 0.032821 | 0.036923 | 0.159316 | 0.114872 | 0.092991 | 0.092991 | 0.092991 | 0.092991 | 0 | 0.018654 | 0.173777 | 4,477 | 131 | 310 | 34.175573 | 0.772101 | 0.146973 | 0 | 0.151899 | 0 | 0.113924 | 0.56555 | 0.144289 | 0 | 0 | 0 | 0.022901 | 0 | 1 | 0.037975 | false | 0 | 0.101266 | 0 | 0.189873 | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9aea27159d7833c105fb4af0a9c01c188110c93d | 2,693 | py | Python | polymorphic/tests/test_utils.py | likeanaxon/django-polymorphic | ad4e6e90c82f897300c1c135bd7a95e4b2d802a3 | [
"BSD-3-Clause"
] | 1 | 2021-03-12T17:42:37.000Z | 2021-03-12T17:42:37.000Z | polymorphic/tests/test_utils.py | likeanaxon/django-polymorphic | ad4e6e90c82f897300c1c135bd7a95e4b2d802a3 | [
"BSD-3-Clause"
] | 10 | 2020-02-12T01:46:41.000Z | 2022-02-10T09:00:03.000Z | polymorphic/tests/test_utils.py | likeanaxon/django-polymorphic | ad4e6e90c82f897300c1c135bd7a95e4b2d802a3 | [
"BSD-3-Clause"
] | 1 | 2020-04-18T15:14:47.000Z | 2020-04-18T15:14:47.000Z | from django.test import TransactionTestCase
from polymorphic.models import PolymorphicModel, PolymorphicTypeUndefined
from polymorphic.tests.models import (
Enhance_Base,
Enhance_Inherit,
Model2A,
Model2B,
Model2C,
Model2D,
)
from polymorphic.utils import (
get_base_polymorphic_model,
r... | 32.445783 | 82 | 0.671742 | 296 | 2,693 | 5.871622 | 0.290541 | 0.120829 | 0.161105 | 0.172037 | 0.348677 | 0.3084 | 0.156502 | 0.042578 | 0 | 0 | 0 | 0.027277 | 0.237653 | 2,693 | 82 | 83 | 32.841463 | 0.819289 | 0.105087 | 0 | 0.074074 | 0 | 0 | 0.008554 | 0 | 0 | 0 | 0 | 0 | 0.240741 | 1 | 0.074074 | false | 0.037037 | 0.074074 | 0 | 0.240741 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9af8e51dd66ea49555fb4a24794f6c9c1dc7752a | 885 | py | Python | apps/user/serializers.py | major-hub/soil_app | ddd250161ad496afd4c8484f79500ff2657b51df | [
"MIT"
] | null | null | null | apps/user/serializers.py | major-hub/soil_app | ddd250161ad496afd4c8484f79500ff2657b51df | [
"MIT"
] | null | null | null | apps/user/serializers.py | major-hub/soil_app | ddd250161ad496afd4c8484f79500ff2657b51df | [
"MIT"
] | null | null | null | from rest_framework import serializers
from user.models import User
from main.exceptions.user_exceptions import UserException
user_exception = UserException
class UserRegisterSerializer(serializers.ModelSerializer):
password_confirmation = serializers.CharField(max_length=128)
class Meta:
model = U... | 32.777778 | 116 | 0.754802 | 92 | 885 | 7.054348 | 0.543478 | 0.154083 | 0.070878 | 0.089368 | 0.098613 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012032 | 0.154802 | 885 | 26 | 117 | 34.038462 | 0.855615 | 0 | 0 | 0 | 0 | 0 | 0.14819 | 0.071267 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.352941 | 0.176471 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9aff6921a655770822f92c25247b7dfa80a21333 | 2,521 | py | Python | src/Coord_cmd.py | aembillo/MNWellRecordGui | 1683bdde75ff37a17726ce1cd7ba0135988f2992 | [
"BSD-3-Clause"
] | null | null | null | src/Coord_cmd.py | aembillo/MNWellRecordGui | 1683bdde75ff37a17726ce1cd7ba0135988f2992 | [
"BSD-3-Clause"
] | null | null | null | src/Coord_cmd.py | aembillo/MNWellRecordGui | 1683bdde75ff37a17726ce1cd7ba0135988f2992 | [
"BSD-3-Clause"
] | null | null | null | """ 2015-07-23
Perform coordinate conversions from the command line.
Uses
"""
import argparse
import pyperclip
# p1 = argparse.ArgumentParser()
# p1.add_argument('x')
# print p1.parse_args(['123'])
#
# p2 = argparse.ArgumentParser()
# p2.add_argument('-d', action='store_const',const='dak')
# print p2.p... | 28.647727 | 127 | 0.623165 | 334 | 2,521 | 4.565868 | 0.338323 | 0.086557 | 0.066885 | 0.055082 | 0.247869 | 0.232131 | 0.097049 | 0.097049 | 0.049836 | 0.049836 | 0 | 0.095639 | 0.199524 | 2,521 | 88 | 128 | 28.647727 | 0.660059 | 0.273701 | 0 | 0.117647 | 0 | 0 | 0.185828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.029412 | 0.117647 | null | null | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b103007297614b73c2ae8e2e4d5c35bd947a709c | 1,051 | py | Python | wordcount/views.py | chinya07/Django-wordcount | 57808f922a140b341807a5b5352864cec5728695 | [
"MIT"
] | null | null | null | wordcount/views.py | chinya07/Django-wordcount | 57808f922a140b341807a5b5352864cec5728695 | [
"MIT"
] | null | null | null | wordcount/views.py | chinya07/Django-wordcount | 57808f922a140b341807a5b5352864cec5728695 | [
"MIT"
] | null | null | null | from django.http import HttpResponse
from django.shortcuts import render
import operator
def home(request):
return render(request, 'home.html')
def count(request):
fulltext1=request.GET['fulltext1']
fulltext2=request.GET['fulltext2']
wordlist1=fulltext1.split(' ')
wordlist2=fulltext2.sp... | 30.028571 | 115 | 0.617507 | 110 | 1,051 | 5.881818 | 0.409091 | 0.037094 | 0.088099 | 0.080371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027237 | 0.266413 | 1,051 | 34 | 116 | 30.911765 | 0.811933 | 0.298763 | 0 | 0 | 0 | 0 | 0.104956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.266667 | 0.133333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
b10ef155b141d1ff49de7abd5e3a562536e9e728 | 771 | py | Python | tests/Bio/test_tandem.py | iwasakishuto/Keras-Imitation | 8ac0cd7c8912d49d13b19a0182ad534c0781fbfe | [
"MIT"
] | 4 | 2020-04-25T08:50:36.000Z | 2020-04-26T04:49:16.000Z | tests/Bio/test_tandem.py | iwasakishuto/Keras-Imitation | 8ac0cd7c8912d49d13b19a0182ad534c0781fbfe | [
"MIT"
] | null | null | null | tests/Bio/test_tandem.py | iwasakishuto/Keras-Imitation | 8ac0cd7c8912d49d13b19a0182ad534c0781fbfe | [
"MIT"
] | null | null | null | # coding: utf-8
from kerasy.Bio.tandem import find_tandem
from kerasy.utils import generateSeq
len_sequences = 1000
def get_test_data():
sequence = generateSeq(size=len_sequences,
nucleic_acid='DNA',
weights=None,
seed=123)
seque... | 29.653846 | 91 | 0.660182 | 105 | 771 | 4.52381 | 0.4 | 0.084211 | 0.113684 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017123 | 0.242542 | 771 | 25 | 92 | 30.84 | 0.796233 | 0.016861 | 0 | 0 | 1 | 0 | 0.011905 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b10f2700bf5dd4688d783eebd9aacb68abc85ac5 | 679 | py | Python | NEW_PRAC/HackerRank/Python/SetDifferenceString.py | side-projects-42/INTERVIEW-PREP-COMPLETE | 627a3315cee4bbc38a0e81c256f27f928eac2d63 | [
"MIT"
] | 13 | 2021-03-11T00:25:22.000Z | 2022-03-19T00:19:23.000Z | NEW_PRAC/HackerRank/Python/SetDifferenceString.py | side-projects-42/INTERVIEW-PREP-COMPLETE | 627a3315cee4bbc38a0e81c256f27f928eac2d63 | [
"MIT"
] | 160 | 2021-04-26T19:04:15.000Z | 2022-03-26T20:18:37.000Z | NEW_PRAC/HackerRank/Python/SetDifferenceString.py | side-projects-42/INTERVIEW-PREP-COMPLETE | 627a3315cee4bbc38a0e81c256f27f928eac2d63 | [
"MIT"
] | 12 | 2021-04-26T19:43:01.000Z | 2022-01-31T08:36:29.000Z | # >>> s = set("Hacker")
# >>> print s.difference("Rank")
# set(['c', 'r', 'e', 'H'])
# >>> print s.difference(set(['R', 'a', 'n', 'k']))
# set(['c', 'r', 'e', 'H'])
# >>> print s.difference(['R', 'a', 'n', 'k'])
# set(['c', 'r', 'e', 'H'])
# >>> print s.difference(enumerate(['R', 'a', 'n', 'k']))
# set(['a', 'c', 'r... | 24.25 | 57 | 0.443299 | 103 | 679 | 2.786408 | 0.262136 | 0.10453 | 0.278746 | 0.055749 | 0.445993 | 0.421603 | 0.268293 | 0.268293 | 0.188153 | 0.188153 | 0 | 0.001815 | 0.188513 | 679 | 27 | 58 | 25.148148 | 0.519056 | 0.639175 | 0 | 0 | 0 | 0 | 0.034632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b11347dca32d00ada08a415a09ab2e6c4431c76c | 2,354 | py | Python | chaos_genius/celery_config.py | eltociear/chaos_genius | eb3bc27181c8af4144b95e685386814109173164 | [
"MIT"
] | 1 | 2022-02-25T16:11:34.000Z | 2022-02-25T16:11:34.000Z | chaos_genius/celery_config.py | eltociear/chaos_genius | eb3bc27181c8af4144b95e685386814109173164 | [
"MIT"
] | null | null | null | chaos_genius/celery_config.py | eltociear/chaos_genius | eb3bc27181c8af4144b95e685386814109173164 | [
"MIT"
] | null | null | null | from datetime import timedelta
from celery.schedules import crontab, schedule
CELERY_IMPORTS = ("chaos_genius.jobs")
CELERY_TASK_RESULT_EXPIRES = 30
CELERY_TIMEZONE = "UTC"
CELERY_ACCEPT_CONTENT = ["json", "msgpack", "yaml"]
CELERY_TASK_SERIALIZER = "json"
CELERY_RESULT_SERIALIZER = "json"
CELERYBEAT_SCHEDULE = {
... | 32.694444 | 77 | 0.619371 | 270 | 2,354 | 5.203704 | 0.351852 | 0.086121 | 0.117438 | 0.108185 | 0.398577 | 0.340214 | 0.297509 | 0.176512 | 0.176512 | 0.176512 | 0 | 0.014602 | 0.214528 | 2,354 | 71 | 78 | 33.15493 | 0.745268 | 0.477485 | 0 | 0.129032 | 0 | 0 | 0.336975 | 0.207563 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b122b1664a2960a396de4fbb595bf3821559d96f | 563 | py | Python | orderedtable/urls.py | Shivam2k16/DjangoOrderedTable | da133a23a6659ce5467b8161edcf6db35f1c0b76 | [
"MIT"
] | 2 | 2018-04-15T17:03:59.000Z | 2019-03-23T04:45:00.000Z | orderedtable/urls.py | Shivam2k16/DjangoOrderedTable | da133a23a6659ce5467b8161edcf6db35f1c0b76 | [
"MIT"
] | null | null | null | orderedtable/urls.py | Shivam2k16/DjangoOrderedTable | da133a23a6659ce5467b8161edcf6db35f1c0b76 | [
"MIT"
] | 1 | 2018-04-15T16:54:07.000Z | 2018-04-15T16:54:07.000Z | from django.conf.urls import include, url
from django.contrib import admin
import orderedtable
from orderedtable import views
app_name="orderedtable"
urlpatterns = [
url(r'^$', views.home,name="home"),
url(r'^import-json/$', views.import_json,name="import_json"),
url(r'^project-list/$', views.project_lis... | 33.117647 | 80 | 0.698046 | 79 | 563 | 4.860759 | 0.379747 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108348 | 563 | 16 | 81 | 35.1875 | 0.76494 | 0 | 0 | 0 | 0 | 0 | 0.28952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b123669e9c0103e63c00a8b4dcdbc0e0596f1442 | 2,242 | py | Python | call_google_translate.py | dadap/klingon-assistant-data | 5371f8ae6e3669f48a83087a4937af0dee8d23d1 | [
"Apache-2.0"
] | null | null | null | call_google_translate.py | dadap/klingon-assistant-data | 5371f8ae6e3669f48a83087a4937af0dee8d23d1 | [
"Apache-2.0"
] | 5 | 2018-07-11T09:17:19.000Z | 2018-10-14T10:33:51.000Z | call_google_translate.py | dadap/klingon-assistant-data | 5371f8ae6e3669f48a83087a4937af0dee8d23d1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Calls Google Translate to produce translations.
# To use, set "language" and "dest_language" below. (They are normally the same,
# unless Google uses a different language code than we do.) Then fill in
# the definition_[language] fields with "TRANSLATE" or
# "TRANSLATE: [replacement definition... | 44.84 | 460 | 0.666369 | 336 | 2,242 | 4.389881 | 0.464286 | 0.105763 | 0.088136 | 0.063051 | 0.075932 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037473 | 0.166815 | 2,242 | 49 | 461 | 45.755102 | 0.752141 | 0.303301 | 0 | 0 | 0 | 0 | 0.263226 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b129413908fca02566b29b673b606e60be14141b | 7,824 | py | Python | icetray_version/trunk/resources/scripts/make_plots.py | hershalpandya/airshowerclassification_llhratio_test | a2a2ce5234c8f455fe56c332ab4fcc65008e9409 | [
"MIT"
] | null | null | null | icetray_version/trunk/resources/scripts/make_plots.py | hershalpandya/airshowerclassification_llhratio_test | a2a2ce5234c8f455fe56c332ab4fcc65008e9409 | [
"MIT"
] | null | null | null | icetray_version/trunk/resources/scripts/make_plots.py | hershalpandya/airshowerclassification_llhratio_test | a2a2ce5234c8f455fe56c332ab4fcc65008e9409 | [
"MIT"
] | null | null | null |
# coding: utf-8
# In[1]:
import numpy as np
get_ipython().magic(u'matplotlib inline')
from matplotlib import pyplot as plt
from matplotlib.colors import LogNorm
import sys
sys.path.append('../../python/')
from general_functions import load_5D_PDF_from_file
from mpl_toolkits.mplot3d import Axes3D
from matplotlib imp... | 23.709091 | 103 | 0.61797 | 1,237 | 7,824 | 3.767179 | 0.21342 | 0.013949 | 0.01073 | 0.006438 | 0.174678 | 0.116524 | 0.099356 | 0.070601 | 0.049142 | 0.049142 | 0 | 0.052352 | 0.206544 | 7,824 | 329 | 104 | 23.781155 | 0.698293 | 0.069402 | 0 | 0.125604 | 0 | 0 | 0.06074 | 0.034511 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.019324 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1355b614d3140ba034b33a7f3ee7859a1245971 | 723 | py | Python | flake8_strings/visitor.py | d1618033/flake8-strings | 2ad34a41eab65e2264da7aa91c54dbca701af1c5 | [
"MIT"
] | null | null | null | flake8_strings/visitor.py | d1618033/flake8-strings | 2ad34a41eab65e2264da7aa91c54dbca701af1c5 | [
"MIT"
] | 1 | 2021-02-19T13:50:29.000Z | 2021-02-19T13:50:29.000Z | flake8_strings/visitor.py | d1618033/flake8-strings | 2ad34a41eab65e2264da7aa91c54dbca701af1c5 | [
"MIT"
] | null | null | null | import ast
from typing import List
from flake8_plugin_utils import Visitor
from .errors import UnnecessaryBackslashEscapingError
class StringsVisitor(Visitor):
lines: List[str]
def _is_escaped_char(self, character: str) -> bool:
repr_c = repr(character)
return repr_c[1] == '\\' and repr_c[2... | 27.807692 | 69 | 0.615491 | 93 | 723 | 4.623656 | 0.473118 | 0.034884 | 0.060465 | 0.060465 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015123 | 0.268326 | 723 | 25 | 70 | 28.92 | 0.797732 | 0.013831 | 0 | 0.210526 | 0 | 0 | 0.012658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.210526 | 0 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b13b701d2eb809667c24251d55ce1c0bf248bc34 | 1,465 | py | Python | substitute_finder/migrations/0003_product.py | tohugaby/pur_beurre_web | c3bdacee50907eea79821e7a8b3fe0f349719d88 | [
"MIT"
] | 1 | 2020-01-05T18:58:51.000Z | 2020-01-05T18:58:51.000Z | substitute_finder/migrations/0003_product.py | tohugaby/pur_beurre_web | c3bdacee50907eea79821e7a8b3fe0f349719d88 | [
"MIT"
] | 3 | 2020-06-05T18:35:47.000Z | 2021-06-10T20:32:44.000Z | substitute_finder/migrations/0003_product.py | tomlemeuch/pur_beurre_web | c3bdacee50907eea79821e7a8b3fe0f349719d88 | [
"MIT"
] | null | null | null | # Generated by Django 2.1 on 2018-08-14 09:42
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('substitute_finder', '0002_category'),
]
operations = [
migrations.CreateModel(
name='Product',
... | 44.393939 | 133 | 0.624573 | 149 | 1,465 | 5.932886 | 0.536913 | 0.136878 | 0.10181 | 0.135747 | 0.196833 | 0.085973 | 0.085973 | 0 | 0 | 0 | 0 | 0.03252 | 0.244369 | 1,465 | 32 | 134 | 45.78125 | 0.766034 | 0.029352 | 0 | 0 | 1 | 0 | 0.224648 | 0.01831 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b13f03597d9a5e677488aa6621f7a6411da41c2d | 3,223 | py | Python | Estrangement/tests/test_utils.py | kawadia/estrangement | 612542bf4af64f248766ad28c18028ff4b2307b5 | [
"BSD-3-Clause"
] | 7 | 2015-02-17T14:04:25.000Z | 2020-02-16T08:59:00.000Z | tnetwork/DCD/externals/estrangement_master/Estrangement/tests/test_utils.py | Yquetzal/tnetwork | 43fb2f19aeed57a8a9d9af032ee80f1c9f58516d | [
"BSD-2-Clause"
] | 1 | 2019-07-13T16:16:28.000Z | 2019-07-15T09:34:33.000Z | Estrangement/tests/test_utils.py | kawadia/estrangement | 612542bf4af64f248766ad28c18028ff4b2307b5 | [
"BSD-3-Clause"
] | 4 | 2015-02-20T15:29:59.000Z | 2021-03-28T04:12:08.000Z | import networkx as nx
import sys
import os
import nose
sys.path.append(os.getcwd() + "/..")
import utils
class test_utils:
def setUp(self):
self.g0 = nx.Graph()
self.g1 = nx.Graph()
self.g2 = nx.Graph()
self.g3 = nx.Graph()
self.g4 = nx.Graph()
self.g5 = nx.Graph()
self.g7 = nx.Graph(... | 48.104478 | 127 | 0.630779 | 550 | 3,223 | 3.56 | 0.147273 | 0.091931 | 0.066394 | 0.097038 | 0.64096 | 0.601124 | 0.456588 | 0.361593 | 0.223698 | 0.116445 | 0 | 0.075612 | 0.162892 | 3,223 | 66 | 128 | 48.833333 | 0.650111 | 0.047782 | 0 | 0.035088 | 0 | 0 | 0.043123 | 0 | 0 | 0 | 0 | 0 | 0.368421 | 0 | null | null | 0 | 0.087719 | null | null | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b14084e431f80764a4ba711f2600b59b246111f5 | 830 | py | Python | ex44e.py | liggettla/python | 4bdad72bc2143679be6d1f8722b83cc359753ca9 | [
"MIT"
] | null | null | null | ex44e.py | liggettla/python | 4bdad72bc2143679be6d1f8722b83cc359753ca9 | [
"MIT"
] | null | null | null | ex44e.py | liggettla/python | 4bdad72bc2143679be6d1f8722b83cc359753ca9 | [
"MIT"
] | null | null | null | #Rather than rely on inplicit inheritance from other classes, classes can just
#call the functions from a class; termed composition
class Other(object):
def override(self):
print "OTHER override()"
def implicit(self):
print "OTHER implicit()"
def altered(self):
print "OTHER alter... | 21.842105 | 78 | 0.639759 | 102 | 830 | 5.166667 | 0.372549 | 0.085389 | 0.079696 | 0.075901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257831 | 830 | 37 | 79 | 22.432432 | 0.855519 | 0.263855 | 0 | 0.272727 | 0 | 0 | 0.197694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1450ba4c392fda6a05914dd0e6efe6138ef8c05 | 8,049 | py | Python | src/abaqus/Odb/Odb.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/Odb/Odb.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/Odb/Odb.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | from abaqusConstants import *
from .OdbPart import OdbPart
from .OdbStep import OdbStep
from .SectionCategory import SectionCategory
from ..Amplitude.AmplitudeOdb import AmplitudeOdb
from ..BeamSectionProfile.BeamSectionProfileOdb import BeamSectionProfileOdb
from ..Filter.FilterOdb import FilterOdb
from ..Material.Mat... | 37.966981 | 112 | 0.610262 | 812 | 8,049 | 6.039409 | 0.277094 | 0.018556 | 0.034462 | 0.02447 | 0.205139 | 0.136827 | 0.089519 | 0.040375 | 0.040375 | 0.040375 | 0 | 0.00091 | 0.317431 | 8,049 | 211 | 113 | 38.146919 | 0.891518 | 0.691266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.347826 | 0 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b1483e23d7d2752b7248ed2d54d8ac8e55492604 | 241 | py | Python | popcorn_gallery/tutorials/urls.py | Koenkk/popcorn_maker | 0978b9f98dacd4e8eb753404b24eb584f410aa11 | [
"BSD-3-Clause"
] | 15 | 2015-03-23T02:55:20.000Z | 2021-01-12T12:42:30.000Z | popcorn_gallery/tutorials/urls.py | Koenkk/popcorn_maker | 0978b9f98dacd4e8eb753404b24eb584f410aa11 | [
"BSD-3-Clause"
] | null | null | null | popcorn_gallery/tutorials/urls.py | Koenkk/popcorn_maker | 0978b9f98dacd4e8eb753404b24eb584f410aa11 | [
"BSD-3-Clause"
] | 16 | 2015-02-18T21:43:31.000Z | 2021-11-09T22:50:03.000Z | from django.conf.urls.defaults import patterns, url
urlpatterns = patterns(
'popcorn_gallery.tutorials.views',
url(r'^(?P<slug>[\w-]+)/$', 'object_detail', name='object_detail'),
url(r'^$', 'object_list', name='object_list'),
)
| 30.125 | 71 | 0.66805 | 31 | 241 | 5.032258 | 0.677419 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120332 | 241 | 7 | 72 | 34.428571 | 0.735849 | 0 | 0 | 0 | 0 | 0 | 0.414938 | 0.128631 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b15750ce5aef5b54cce96688ad262cadc96dc7f8 | 4,432 | py | Python | src/taskmaster/client.py | alex/taskmaster | 04a03bf0853facf318ce98192db6389cdaaefe3c | [
"Apache-2.0"
] | 2 | 2015-11-08T12:45:38.000Z | 2017-06-03T09:16:16.000Z | src/taskmaster/client.py | alex/taskmaster | 04a03bf0853facf318ce98192db6389cdaaefe3c | [
"Apache-2.0"
] | null | null | null | src/taskmaster/client.py | alex/taskmaster | 04a03bf0853facf318ce98192db6389cdaaefe3c | [
"Apache-2.0"
] | null | null | null | """
taskmaster.consumer
~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010 DISQUS.
:license: Apache License 2.0, see LICENSE for more details.
"""
import cPickle as pickle
import gevent
from gevent_zeromq import zmq
from gevent.queue import Queue
from taskmaster.util import import_target
class Worker(object):
def __init_... | 25.181818 | 92 | 0.54287 | 476 | 4,432 | 4.978992 | 0.271008 | 0.084388 | 0.029536 | 0.021519 | 0.141772 | 0.118987 | 0.076793 | 0.076793 | 0.047257 | 0.047257 | 0 | 0.00809 | 0.358529 | 4,432 | 175 | 93 | 25.325714 | 0.825536 | 0.026399 | 0 | 0.314516 | 0 | 0 | 0.023005 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0 | null | null | 0 | 0.056452 | null | null | 0.016129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.