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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8e65daebe577c08239034ca2c192e6c446ad91d9 | 5,865 | py | Python | tests/integration/test_clone_project.py | superannotateai/superannotate-python-sdk | e2ce848b61efed608265fa64f3781fd5a17c929b | [
"MIT"
] | 26 | 2020-09-25T06:25:06.000Z | 2022-01-30T16:44:07.000Z | tests/integration/test_clone_project.py | superannotateai/superannotate-python-sdk | e2ce848b61efed608265fa64f3781fd5a17c929b | [
"MIT"
] | 12 | 2020-12-21T19:59:48.000Z | 2022-01-21T10:32:07.000Z | tests/integration/test_clone_project.py | superannotateai/superannotate-python-sdk | e2ce848b61efed608265fa64f3781fd5a17c929b | [
"MIT"
] | 11 | 2020-09-17T13:39:19.000Z | 2022-03-02T18:12:29.000Z | import os
from os.path import dirname
from unittest import TestCase
import pytest
import src.superannotate as sa
class TestCloneProject(TestCase):
PROJECT_NAME_1 = "test_create_like_project_1"
PROJECT_NAME_2 = "test_create_like_project_2"
PROJECT_DESCRIPTION = "desc"
PROJECT_TYPE = "Vector"
IMAGE_... | 35.762195 | 94 | 0.539301 | 574 | 5,865 | 5.207317 | 0.1777 | 0.103045 | 0.100368 | 0.064236 | 0.619605 | 0.552024 | 0.529274 | 0.517899 | 0.45634 | 0.45634 | 0 | 0.014392 | 0.336573 | 5,865 | 163 | 95 | 35.981595 | 0.753791 | 0 | 0 | 0.430556 | 0 | 0 | 0.139471 | 0.023188 | 0 | 0 | 0 | 0 | 0.145833 | 1 | 0.048611 | false | 0 | 0.034722 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e68d491045b46e0d5c3609fa40d0f8cbf83aabf | 3,106 | py | Python | src/image_caption_machine/world/place.py | brandontrabucco/ros-image-captioner | 5fd18317f2ec600cdc61628028292a22eef45fc2 | [
"MIT"
] | 3 | 2018-09-08T10:28:59.000Z | 2019-09-08T00:11:33.000Z | src/image_caption_machine/world/place.py | brandontrabucco/ros-image-captioner | 5fd18317f2ec600cdc61628028292a22eef45fc2 | [
"MIT"
] | null | null | null | src/image_caption_machine/world/place.py | brandontrabucco/ros-image-captioner | 5fd18317f2ec600cdc61628028292a22eef45fc2 | [
"MIT"
] | 2 | 2019-04-17T17:24:28.000Z | 2019-06-10T18:16:44.000Z | """Author: Brandon Trabucco.
Utility class for loading and managing locations in the robot's map.
"""
import json
import math
import rospy
from rt_msgs.msg import Odom
from std_msgs.msg import Header
from geometry_msgs.msg import Pose
from geometry_msgs.msg import Point
from geometry_msgs.msg import Quaternion
from g... | 24.650794 | 83 | 0.603348 | 397 | 3,106 | 4.579345 | 0.219144 | 0.10286 | 0.016502 | 0.017602 | 0.366337 | 0.182618 | 0.177118 | 0.094609 | 0 | 0 | 0 | 0.007805 | 0.298777 | 3,106 | 125 | 84 | 24.848 | 0.826905 | 0.245654 | 0 | 0.068966 | 0 | 0 | 0.03098 | 0.01139 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155172 | false | 0 | 0.224138 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
8e69d02ee0597be4c48dd1fc7fd8cd5d2f553e35 | 2,238 | py | Python | joplin_web/api/serializers.py | kuyper/joplin-web | 7a13b75cbb55741ddfb58767af34c7ad164fec11 | [
"BSD-3-Clause"
] | null | null | null | joplin_web/api/serializers.py | kuyper/joplin-web | 7a13b75cbb55741ddfb58767af34c7ad164fec11 | [
"BSD-3-Clause"
] | null | null | null | joplin_web/api/serializers.py | kuyper/joplin-web | 7a13b75cbb55741ddfb58767af34c7ad164fec11 | [
"BSD-3-Clause"
] | 1 | 2019-12-13T15:18:58.000Z | 2019-12-13T15:18:58.000Z | from rest_framework import serializers
from joplin_web.models import Folders, Notes, Tags, NoteTags, Version
class FoldersSerializer(serializers.ModelSerializer):
nb_notes = serializers.IntegerField(read_only=True)
class Meta:
fields = ('id', 'title', 'parent_id', 'nb_notes', 'created_time')
... | 29.84 | 98 | 0.628239 | 209 | 2,238 | 6.526316 | 0.277512 | 0.052786 | 0.052786 | 0.062317 | 0.280059 | 0.18695 | 0.165689 | 0.121701 | 0.121701 | 0.121701 | 0 | 0 | 0.259607 | 2,238 | 74 | 99 | 30.243243 | 0.823174 | 0 | 0 | 0.25 | 0 | 0 | 0.14924 | 0.00983 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
8e6ab08948cc89750d63dd9c07947a6c58786c2f | 5,859 | py | Python | Plots/MapProjections/NCL_sat_3.py | learn2free/GeoCAT-examples | 3ac152a767e78a362a8ebb6f677005f3de320ca6 | [
"Apache-2.0"
] | 1 | 2021-05-09T02:54:10.000Z | 2021-05-09T02:54:10.000Z | Plots/MapProjections/NCL_sat_3.py | learn2free/GeoCAT-examples | 3ac152a767e78a362a8ebb6f677005f3de320ca6 | [
"Apache-2.0"
] | null | null | null | Plots/MapProjections/NCL_sat_3.py | learn2free/GeoCAT-examples | 3ac152a767e78a362a8ebb6f677005f3de320ca6 | [
"Apache-2.0"
] | null | null | null | """
NCL_sat_3.py
================
This script illustrates the following concepts:
- zooming into an orthographic projection
- plotting filled contour data on an orthographic map
- plotting lat/lon tick marks on an orthographic map
See following URLs to see the reproduced NCL plot & script:
- Original ... | 33.48 | 82 | 0.497013 | 656 | 5,859 | 4.396341 | 0.397866 | 0.020804 | 0.049931 | 0.019071 | 0.197642 | 0.166436 | 0.126907 | 0.126907 | 0.126907 | 0.126907 | 0 | 0.040806 | 0.330773 | 5,859 | 174 | 83 | 33.672414 | 0.694721 | 0.206861 | 0 | 0.287037 | 0 | 0 | 0.082501 | 0.008134 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009259 | false | 0 | 0.074074 | 0 | 0.083333 | 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 | 0 | 0 | 1 | 0 |
8e6c93847574069cca7db77ebf31e5ff0a8a00ef | 2,047 | py | Python | bot/team.py | mcfunley/clippingsbot | 2954d5b5aa854b57d062a98e2133d258f9fd86c7 | [
"MIT"
] | 1 | 2019-02-06T16:52:05.000Z | 2019-02-06T16:52:05.000Z | bot/team.py | mcfunley/clippingsbot | 2954d5b5aa854b57d062a98e2133d258f9fd86c7 | [
"MIT"
] | null | null | null | bot/team.py | mcfunley/clippingsbot | 2954d5b5aa854b57d062a98e2133d258f9fd86c7 | [
"MIT"
] | null | null | null | from bot import db
def save(data):
sql = """
insert into clippingsbot.teams (
team_id, access_token, user_id, team_name, scope
) values (
:team_id, :access_token, :user_id, :team_name, :scope
) on conflict (team_id) do update
set scope = excluded.scope,
access_token = exclud... | 28.041096 | 76 | 0.662921 | 283 | 2,047 | 4.5053 | 0.162544 | 0.141176 | 0.120784 | 0.065882 | 0.615686 | 0.611765 | 0.465882 | 0.465882 | 0.465882 | 0.409412 | 0 | 0 | 0.225696 | 2,047 | 72 | 77 | 28.430556 | 0.804416 | 0 | 0 | 0.241379 | 0 | 0 | 0.579873 | 0.085002 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12069 | false | 0 | 0.017241 | 0.017241 | 0.224138 | 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 | 0 | 0 | 1 | 0 |
8e6d24e204761284a5dd415da03add5895524b76 | 3,947 | py | Python | meeshkan/nlp/spec_transformer.py | meeshkan/meeshkan-nlp | 63ef1e0ef31fd9c2031c89e9fd6ca3fc46eef13e | [
"MIT"
] | 1 | 2020-04-02T08:02:33.000Z | 2020-04-02T08:02:33.000Z | meeshkan/nlp/spec_transformer.py | meeshkan/meeshkan-nlp | 63ef1e0ef31fd9c2031c89e9fd6ca3fc46eef13e | [
"MIT"
] | 9 | 2020-03-24T21:09:16.000Z | 2020-07-24T09:58:11.000Z | meeshkan/nlp/spec_transformer.py | meeshkan/meeshkan-nlp | 63ef1e0ef31fd9c2031c89e9fd6ca3fc46eef13e | [
"MIT"
] | null | null | null | import typing
from operator import itemgetter
from http_types import HttpExchange
from jsonpath_rw import parse
from openapi_typed_2 import OpenAPIObject, convert_from_openapi, convert_to_openapi
from meeshkan.nlp.data_extractor import DataExtractor
from meeshkan.nlp.entity_extractor import EntityExtractor
from meesh... | 40.27551 | 88 | 0.624272 | 445 | 3,947 | 5.253933 | 0.229213 | 0.071856 | 0.032079 | 0.023097 | 0.124038 | 0.047049 | 0.023952 | 0 | 0 | 0 | 0 | 0.002841 | 0.286547 | 3,947 | 97 | 89 | 40.690722 | 0.827415 | 0 | 0 | 0.1 | 0 | 0 | 0.047124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e7144c085cff446c01b799bb109c5bbe09b0b02 | 3,216 | py | Python | policies.py | IBM/LOA | 9cd402c814f1d9c8b4de52ee18a3cb7ec2c6d07a | [
"MIT"
] | 12 | 2021-12-15T09:03:36.000Z | 2022-03-28T21:37:25.000Z | policies.py | IBM/LOA | 9cd402c814f1d9c8b4de52ee18a3cb7ec2c6d07a | [
"MIT"
] | 3 | 2022-01-04T18:03:01.000Z | 2022-03-31T16:15:25.000Z | policies.py | IBM/LOA | 9cd402c814f1d9c8b4de52ee18a3cb7ec2c6d07a | [
"MIT"
] | 4 | 2022-01-04T17:44:23.000Z | 2022-03-28T21:37:42.000Z | import os
import sys
import torch.nn as nn
if True:
DDLNN_HOME = os.environ['DDLNN_HOME']
meta_rule_home = '{}/src/meta_rule/'.format(DDLNN_HOME)
src_rule_home = '{}/dd_lnn/'.format(DDLNN_HOME)
sys.path.append(meta_rule_home)
sys.path.append(src_rule_home)
from lnn_operators \
impor... | 30.056075 | 79 | 0.600435 | 403 | 3,216 | 4.506203 | 0.26799 | 0.044053 | 0.042401 | 0.029736 | 0.202093 | 0.155286 | 0.155286 | 0.093612 | 0.093612 | 0.051762 | 0 | 0.010733 | 0.304726 | 3,216 | 106 | 80 | 30.339623 | 0.801431 | 0 | 0 | 0.182927 | 0 | 0 | 0.036692 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 1 | 0.085366 | false | 0 | 0.04878 | 0.012195 | 0.207317 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e723b8f4a32d0c8a03c62c48807cc3c480dfc71 | 16,604 | py | Python | PsychoPy/testscript.py | esbenkc/Experimental-Methods-1 | e2fa12df0f98043ea83f61f439525a5e78978340 | [
"MIT"
] | null | null | null | PsychoPy/testscript.py | esbenkc/Experimental-Methods-1 | e2fa12df0f98043ea83f61f439525a5e78978340 | [
"MIT"
] | null | null | null | PsychoPy/testscript.py | esbenkc/Experimental-Methods-1 | e2fa12df0f98043ea83f61f439525a5e78978340 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This experiment was created using PsychoPy3 Experiment Builder (v3.1.3),
on June 24, 2019, at 16:21
If you publish work using this script please cite the PsychoPy publications:
Peirce, JW (2007) PsychoPy - Psychophysics software in Python.
Journal of Neu... | 41.51 | 201 | 0.668152 | 2,021 | 16,604 | 5.476497 | 0.242454 | 0.0206 | 0.008945 | 0.015179 | 0.500271 | 0.489339 | 0.451662 | 0.369353 | 0.369353 | 0.342971 | 0 | 0.011611 | 0.232293 | 16,604 | 399 | 202 | 41.614035 | 0.856672 | 0.333895 | 0 | 0.441948 | 0 | 0.003745 | 0.091625 | 0.006597 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037453 | 0 | 0.037453 | 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 | 0 | 0 | 1 | 0 |
8e745ff62ea6033b9af40da163096d4969eae110 | 3,856 | py | Python | EmbLearning/config.py | zhangjindou/SoLE | 2c20e39603ece315d571f8eb12674c6be8d378a4 | [
"MIT"
] | 2 | 2021-03-14T06:35:12.000Z | 2022-01-03T08:39:30.000Z | EmbLearning/config.py | zhangjindou/SoLE | 2c20e39603ece315d571f8eb12674c6be8d378a4 | [
"MIT"
] | null | null | null | EmbLearning/config.py | zhangjindou/SoLE | 2c20e39603ece315d571f8eb12674c6be8d378a4 | [
"MIT"
] | 1 | 2021-03-14T06:35:13.000Z | 2021-03-14T06:35:13.000Z | # ----------------------- PATH ------------------------
ROOT_PATH = "."
DATA_PATH = "%s/../Datasets" % ROOT_PATH
FB15K_DATA_PATH = "%s/fb15k" % DATA_PATH
DB100K_DATA_PATH = "%s/db100k" % DATA_PATH
FB15K_SPARSE_DATA_PATH = "%s/fb15k-sparse" % DATA_PATH
LOG_PATH = "%s/log_dir" % ROOT_PATH
CHECKPOINT_PATH = "%s/checkpoi... | 34.428571 | 76 | 0.673237 | 534 | 3,856 | 4.430712 | 0.071161 | 0.125106 | 0.098901 | 0.088335 | 0.72612 | 0.581572 | 0.480981 | 0.346577 | 0.3153 | 0.243449 | 0 | 0.093683 | 0.158454 | 3,856 | 111 | 77 | 34.738739 | 0.635439 | 0.041753 | 0 | 0.357895 | 0 | 0 | 0.238147 | 0.052831 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e79f3580f36653daa75d2b29b580bf63af34199 | 932 | py | Python | Krypton/WebApp/__init__.py | BolunHan/Krypton | 8caf8e8efad6172ea0783c777e7df49a2ac512cb | [
"MIT"
] | null | null | null | Krypton/WebApp/__init__.py | BolunHan/Krypton | 8caf8e8efad6172ea0783c777e7df49a2ac512cb | [
"MIT"
] | null | null | null | Krypton/WebApp/__init__.py | BolunHan/Krypton | 8caf8e8efad6172ea0783c777e7df49a2ac512cb | [
"MIT"
] | null | null | null | from flask import Flask
from werkzeug.middleware.dispatcher import DispatcherMiddleware
from werkzeug.serving import run_simple
from Base import Telemetric, CONFIG
__all__ = ['start_app']
__version__ = "0.1.0"
LOGGER = Telemetric.LOGGER.getChild('WebApp')
APP = Flask(__name__)
HOSTNAME = CONFIG.get('WebApp', 'HOST',... | 23.3 | 83 | 0.683476 | 109 | 932 | 5.504587 | 0.422018 | 0.04 | 0.01 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012 | 0.195279 | 932 | 39 | 84 | 23.897436 | 0.788 | 0 | 0 | 0.071429 | 0 | 0 | 0.146996 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.214286 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e7b1a04d745dc6e204362c61a41930cc35f005b | 682 | py | Python | class3/testsvg.py | dnsbob/pynet_testz | 8a4c778e8592efd796dc27417b7ae7ee4d9111cc | [
"Apache-2.0"
] | null | null | null | class3/testsvg.py | dnsbob/pynet_testz | 8a4c778e8592efd796dc27417b7ae7ee4d9111cc | [
"Apache-2.0"
] | null | null | null | class3/testsvg.py | dnsbob/pynet_testz | 8a4c778e8592efd796dc27417b7ae7ee4d9111cc | [
"Apache-2.0"
] | null | null | null | ''' testsvg.py '''
import pygal
fa4_in_packets = [24, 21, 40, 32, 21, 21, 49, 9, 21, 34, 24, 21]
fa4_out_packets = [21, 24, 21, 40, 32, 21, 21, 49, 9, 21, 34, 24]
# Create a Chart of type Line
line_chart = pygal.Line()
# Title
line_chart.title = 'Input/Output Packets and Bytes'
# X-axis labels (samples were every ... | 29.652174 | 93 | 0.678886 | 121 | 682 | 3.68595 | 0.561983 | 0.121076 | 0.053812 | 0.035874 | 0.09417 | 0.09417 | 0.09417 | 0.09417 | 0.09417 | 0.09417 | 0 | 0.127622 | 0.16129 | 682 | 22 | 94 | 31 | 0.652098 | 0.313783 | 0 | 0 | 0 | 0 | 0.175055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 | 0 | 0 | 1 | 0 |
8e7b99b3286e2086dc64ba2272a4da8ef40cb9cf | 2,573 | py | Python | CKC102_python_example.py | sagenew/scc-ckc-api-examples | fd86e435877cf68f35d01b8314a47a08b83eb391 | [
"MIT"
] | null | null | null | CKC102_python_example.py | sagenew/scc-ckc-api-examples | fd86e435877cf68f35d01b8314a47a08b83eb391 | [
"MIT"
] | null | null | null | CKC102_python_example.py | sagenew/scc-ckc-api-examples | fd86e435877cf68f35d01b8314a47a08b83eb391 | [
"MIT"
] | null | null | null | import urllib.parse, urllib.request, json, ssl
# Authentication and API Requests
# LEARNING LAB 2 Cisco Kinetic for Cities
# The Initial login steps are the same as Learning Lab 1.
# You can skip ahead to 'LEARNING LAB 2 CODE BEGINS HERE'
#Ignore invalid Certificates
ssl._create_default_https_context = ssl._create_... | 37.289855 | 128 | 0.724835 | 350 | 2,573 | 5.285714 | 0.342857 | 0.047568 | 0.032432 | 0.04973 | 0.634054 | 0.634054 | 0.588108 | 0.588108 | 0.588108 | 0.588108 | 0 | 0.027196 | 0.128255 | 2,573 | 68 | 129 | 37.838235 | 0.797593 | 0.465604 | 0 | 0.333333 | 0 | 0.083333 | 0.335223 | 0.0583 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 0.208333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e7d265dcc13b68469fdea2d8131380b85fbb3c6 | 4,780 | py | Python | judge/machine.py | Means88/judge-backend | 6e998ebb145911e66f8baec6568f007082835a61 | [
"MIT"
] | null | null | null | judge/machine.py | Means88/judge-backend | 6e998ebb145911e66f8baec6568f007082835a61 | [
"MIT"
] | 3 | 2020-06-05T19:21:25.000Z | 2021-06-10T20:54:22.000Z | judge/machine.py | Means88/judge-backend | 6e998ebb145911e66f8baec6568f007082835a61 | [
"MIT"
] | null | null | null | import json
import uuid
import os
import docker
import time
from celery.utils.log import get_task_logger
from config import settings
from .language import LANGUAGE
from .status import ComputingStatus
logger = get_task_logger(__name__)
class Machine:
client = docker.from_env()
def __init__(self):
s... | 32.965517 | 105 | 0.565063 | 549 | 4,780 | 4.703097 | 0.227687 | 0.070488 | 0.030209 | 0.024787 | 0.201394 | 0.112316 | 0.048025 | 0.026336 | 0 | 0 | 0 | 0.013543 | 0.320293 | 4,780 | 144 | 106 | 33.194444 | 0.781163 | 0.017573 | 0 | 0.136752 | 0 | 0 | 0.086354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068376 | false | 0 | 0.076923 | 0.008547 | 0.205128 | 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 | 0 | 0 | 1 | 0 |
8e7edf92edac4cf5b0a634e3bcb329f30e6b8e66 | 2,160 | py | Python | sources/classic/messaging_kombu/consumer.py | variasov/classic_messaging_kombu | c4191f3d1f788a39f50dc137eca1b67f3ee2af20 | [
"MIT"
] | 1 | 2021-11-12T08:19:53.000Z | 2021-11-12T08:19:53.000Z | sources/classic/messaging_kombu/consumer.py | variasov/classic_messaging_kombu | c4191f3d1f788a39f50dc137eca1b67f3ee2af20 | [
"MIT"
] | null | null | null | sources/classic/messaging_kombu/consumer.py | variasov/classic_messaging_kombu | c4191f3d1f788a39f50dc137eca1b67f3ee2af20 | [
"MIT"
] | null | null | null | from functools import partial
import logging
from typing import Callable, Any, Iterable
from collections import defaultdict
from kombu import Connection
from kombu.mixins import ConsumerMixin
from classic.components import component
from .handlers import MessageHandler, SimpleMessageHandler
from .scheme import Broke... | 29.589041 | 75 | 0.6375 | 231 | 2,160 | 5.796537 | 0.380952 | 0.04481 | 0.023898 | 0.028379 | 0.0941 | 0.0941 | 0.0941 | 0.0941 | 0.0941 | 0.0941 | 0 | 0 | 0.27963 | 2,160 | 72 | 76 | 30 | 0.86054 | 0 | 0 | 0.071429 | 0 | 0 | 0.042593 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 1 | 0.125 | false | 0 | 0.160714 | 0 | 0.392857 | 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 | 0 | 0 | 1 | 0 |
8e7ff2193d4240f5f73671b8a5f9d6d5555d5513 | 2,004 | py | Python | du4/du4.py | Honzaik/PocAlgDU | a3d32d1906298ba4bc1627640ecc04370ff4e49c | [
"Unlicense"
] | null | null | null | du4/du4.py | Honzaik/PocAlgDU | a3d32d1906298ba4bc1627640ecc04370ff4e49c | [
"Unlicense"
] | null | null | null | du4/du4.py | Honzaik/PocAlgDU | a3d32d1906298ba4bc1627640ecc04370ff4e49c | [
"Unlicense"
] | null | null | null | from cmath import exp, pi
from math import log2
def vratLiche(a):
oddA = list();
for i in range(len(a)):
if(i % 2 == 1):
oddA.append(a[i])
return oddA
def vratSude(a):
evenA = list()
for i in range(len(a)):
if(i % 2 == 0):
evenA.append(a[i])
return evenA... | 27.833333 | 65 | 0.510978 | 312 | 2,004 | 3.282051 | 0.237179 | 0.054688 | 0.035156 | 0.064453 | 0.136719 | 0.085938 | 0.044922 | 0.044922 | 0.044922 | 0.044922 | 0 | 0.038405 | 0.324351 | 2,004 | 72 | 66 | 27.833333 | 0.717873 | 0.043912 | 0 | 0.061538 | 0 | 0 | 0.00314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092308 | false | 0 | 0.030769 | 0 | 0.230769 | 0.030769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e85f751c8a5501a2b056c1fde74847efffec00d | 4,147 | py | Python | tests/test_cv.py | goyoambrosio/RobotAtHome2 | 9ab31e5e11d8551b9f6934d90245221449dbbbf4 | [
"MIT"
] | 1 | 2022-03-08T19:00:37.000Z | 2022-03-08T19:00:37.000Z | tests/test_cv.py | goyoambrosio/RobotAtHome2 | 9ab31e5e11d8551b9f6934d90245221449dbbbf4 | [
"MIT"
] | null | null | null | tests/test_cv.py | goyoambrosio/RobotAtHome2 | 9ab31e5e11d8551b9f6934d90245221449dbbbf4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8; buffer-read-only: t -*-
__author__ = "Gregorio Ambrosio"
__contact__ = "gambrosio[at]uma.es"
__copyright__ = "Copyright 2021, Gregorio Ambrosio"
__date__ = "2021/02/22"
__license__ = "MIT"
import unittest
import os
import sys
import pandas as pd
import matplotlib.pyplot as p... | 30.947761 | 78 | 0.564022 | 521 | 4,147 | 4.305182 | 0.318618 | 0.034775 | 0.028087 | 0.023183 | 0.317878 | 0.231832 | 0.187249 | 0.187249 | 0.161391 | 0.161391 | 0 | 0.025965 | 0.312756 | 4,147 | 133 | 79 | 31.180451 | 0.751228 | 0.196528 | 0 | 0.136986 | 0 | 0 | 0.155533 | 0.007311 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109589 | false | 0 | 0.09589 | 0 | 0.219178 | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e8737e7bdcd75430db3502155a2cb8e2ea47372 | 4,483 | py | Python | third_party/DiffAugment_pytorch.py | SuperStar0907/lecam-gan | e502c9b182345ddd03d29edda56b76caa7d8fb41 | [
"Apache-2.0"
] | 135 | 2021-03-23T23:07:47.000Z | 2022-03-30T03:08:42.000Z | third_party/DiffAugment_pytorch.py | SuperStar0907/lecam-gan | e502c9b182345ddd03d29edda56b76caa7d8fb41 | [
"Apache-2.0"
] | 12 | 2021-04-06T16:57:14.000Z | 2021-12-31T07:06:05.000Z | third_party/DiffAugment_pytorch.py | SuperStar0907/lecam-gan | e502c9b182345ddd03d29edda56b76caa7d8fb41 | [
"Apache-2.0"
] | 13 | 2021-03-24T14:37:48.000Z | 2022-03-06T13:24:52.000Z | # Differentiable Augmentation for Data-Efficient GAN Training
# Shengyu Zhao, Zhijian Liu, Ji Lin, Jun-Yan Zhu, and Song Han
# https://arxiv.org/pdf/2006.10738
import torch
import torch.nn.functional as F
from torch.distributions.dirichlet import _Dirichlet
def BetaSample(alpha, beta, sample_shape=torch.Size()):
... | 39.672566 | 110 | 0.586438 | 731 | 4,483 | 3.48974 | 0.153215 | 0.05096 | 0.081537 | 0.024696 | 0.519796 | 0.459428 | 0.411995 | 0.400235 | 0.378283 | 0.378283 | 0 | 0.049063 | 0.249833 | 4,483 | 112 | 111 | 40.026786 | 0.709486 | 0.03636 | 0 | 0.244186 | 0 | 0 | 0.008193 | 0 | 0 | 0 | 0 | 0.008929 | 0 | 1 | 0.093023 | false | 0 | 0.034884 | 0 | 0.22093 | 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 | 0 | 0 | 1 | 0 |
8e8a1596a6b3ed1679875e09d7a25bdcda290e69 | 3,000 | py | Python | advent_of_code_2021/day4/giant_squid.py | mortendaehli/advent-of-code-2021 | b36959eeff461d1d9eb8bf32c1efc767f6f00b23 | [
"MIT"
] | null | null | null | advent_of_code_2021/day4/giant_squid.py | mortendaehli/advent-of-code-2021 | b36959eeff461d1d9eb8bf32c1efc767f6f00b23 | [
"MIT"
] | null | null | null | advent_of_code_2021/day4/giant_squid.py | mortendaehli/advent-of-code-2021 | b36959eeff461d1d9eb8bf32c1efc767f6f00b23 | [
"MIT"
] | null | null | null | import re
from dataclasses import dataclass
from typing import List, Optional
@dataclass
class PlayBoard:
numbers: List[List[Optional[int]]]
def read_numbers() -> List[int]:
with open("data.txt", "r") as file:
data = file.readline()
return list(map(int, data.split(",")))
def read_boards() -> L... | 30.30303 | 118 | 0.640333 | 426 | 3,000 | 4.316901 | 0.293427 | 0.078303 | 0.045677 | 0.039152 | 0.434475 | 0.426862 | 0.371398 | 0.371398 | 0.349103 | 0.316476 | 0 | 0.011146 | 0.252333 | 3,000 | 98 | 119 | 30.612245 | 0.808738 | 0.071333 | 0 | 0.378788 | 0 | 0.015152 | 0.117071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.287879 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e8ac78399e840a9f4584fc74b5d093c38c0fc44 | 265 | py | Python | lastrender/settings.py | jc855/lastgraph | a2917e73f0e0b9409e897e4a83944e72161a33ce | [
"BSD-3-Clause"
] | 77 | 2015-01-03T20:26:28.000Z | 2021-07-07T15:08:25.000Z | lastrender/settings.py | jc855/lastgraph | a2917e73f0e0b9409e897e4a83944e72161a33ce | [
"BSD-3-Clause"
] | 1 | 2021-06-10T23:42:31.000Z | 2021-06-10T23:42:31.000Z | lastrender/settings.py | jc855/lastgraph | a2917e73f0e0b9409e897e4a83944e72161a33ce | [
"BSD-3-Clause"
] | 20 | 2015-01-17T16:33:41.000Z | 2021-12-23T03:40:36.000Z | import os
static_path = os.path.join(os.path.dirname(__file__), "..", "static")
apiurl = "http://localhost:8000/api/%s"
local_store = os.path.join(static_path, "graphs")
local_store_url = "http://localhost:8000/static/graphs"
nodename = "lg"
nodepwd = "lg@home"
| 24.090909 | 69 | 0.709434 | 39 | 265 | 4.589744 | 0.538462 | 0.100559 | 0.111732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033473 | 0.098113 | 265 | 10 | 70 | 26.5 | 0.715481 | 0 | 0 | 0 | 0 | 0 | 0.324528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 | 0 | 0 | 1 | 0 |
8e8b609df5d78fd1e3a458dac9a51ed8f9a19335 | 952 | py | Python | src/omnis/structure_nodes/loop.py | rodrigogomesantos/omnis | a6f59c870d86c112f26a5b98c31889d64eea39eb | [
"MIT"
] | null | null | null | src/omnis/structure_nodes/loop.py | rodrigogomesantos/omnis | a6f59c870d86c112f26a5b98c31889d64eea39eb | [
"MIT"
] | null | null | null | src/omnis/structure_nodes/loop.py | rodrigogomesantos/omnis | a6f59c870d86c112f26a5b98c31889d64eea39eb | [
"MIT"
] | null | null | null | class loop():
def __init__(self, _loop_type, **kwargs) -> None:
self.type = _loop_type
self.kwargs = kwargs
self.break_function = self.kwargs.get("break_function")
self.range = kwargs.get("range")
self.start = getattr(self, f"_{self.type}")
self.counter = 0
se... | 35.259259 | 63 | 0.590336 | 113 | 952 | 4.743363 | 0.265487 | 0.143657 | 0.16791 | 0.078358 | 0.25 | 0.141791 | 0.141791 | 0 | 0 | 0 | 0 | 0.00744 | 0.294118 | 952 | 27 | 64 | 35.259259 | 0.790179 | 0 | 0 | 0.208333 | 0 | 0 | 0.032529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e8bc66edbc27feb19c1a24e01f7065d5f4aedb0 | 4,646 | py | Python | mesh_vertex_color/np_ray_triangle_intersection.py | naysok/Mesh_Vertex_Color | c6fafe480957305176ac1adc14c093d9278baa94 | [
"MIT"
] | 1 | 2020-09-17T16:41:34.000Z | 2020-09-17T16:41:34.000Z | mesh_vertex_color/np_ray_triangle_intersection.py | naysok/Mesh_Vertex_Color | c6fafe480957305176ac1adc14c093d9278baa94 | [
"MIT"
] | null | null | null | mesh_vertex_color/np_ray_triangle_intersection.py | naysok/Mesh_Vertex_Color | c6fafe480957305176ac1adc14c093d9278baa94 | [
"MIT"
] | null | null | null | import sys
import numpy as np
#############################################################
### ###
### Module for Python3 ###
### * Using Numpy ( + Cupy ? ) ###
### ... | 30.168831 | 88 | 0.44619 | 588 | 4,646 | 3.357143 | 0.17517 | 0.035461 | 0.030395 | 0.016717 | 0.096758 | 0.01925 | 0 | 0 | 0 | 0 | 0 | 0.042479 | 0.381834 | 4,646 | 154 | 89 | 30.168831 | 0.644847 | 0.314895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0.013514 | 0.027027 | 0 | 0.081081 | 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 | 0 | 0 | 1 | 0 |
8e8c088d3edb685bf729a71250bfe8e5e7bfb65d | 2,046 | py | Python | src/dungeonbot/plugins/helpers/die_roll.py | tlake/dungeonbot_backup | 715c14d3a06d8a7a8771572371b67cc87c7e17fb | [
"MIT"
] | null | null | null | src/dungeonbot/plugins/helpers/die_roll.py | tlake/dungeonbot_backup | 715c14d3a06d8a7a8771572371b67cc87c7e17fb | [
"MIT"
] | null | null | null | src/dungeonbot/plugins/helpers/die_roll.py | tlake/dungeonbot_backup | 715c14d3a06d8a7a8771572371b67cc87c7e17fb | [
"MIT"
] | null | null | null | class DieRoll(object):
"""Roll object that parses roll string and calls appropriate function."""
def __init__(self, roll_str, flag):
"""Initialize Die roll object by breaking apart roll string."""
valid_flags = {
"a": self.advantage,
"d": self.disadvantage
}
... | 31.476923 | 77 | 0.535679 | 233 | 2,046 | 4.553648 | 0.283262 | 0.082941 | 0.051838 | 0.042413 | 0.04147 | 0.04147 | 0 | 0 | 0 | 0 | 0 | 0.003693 | 0.338221 | 2,046 | 64 | 78 | 31.96875 | 0.779911 | 0.105083 | 0 | 0 | 0 | 0 | 0.052222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102041 | false | 0 | 0.020408 | 0 | 0.22449 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e8d954a7e320b872b94573d4e171b827ee4d202 | 1,099 | py | Python | src/utils/load_or_make.py | jlehnersd/metis_project2 | 0bde762c43c4cf9aa5c6672b894e704803616aa3 | [
"MIT"
] | 16 | 2019-04-08T22:09:51.000Z | 2021-08-02T18:18:41.000Z | src/utils/load_or_make.py | jlehnersd/metis_project2 | 0bde762c43c4cf9aa5c6672b894e704803616aa3 | [
"MIT"
] | 1 | 2019-11-19T06:27:37.000Z | 2019-12-26T20:56:03.000Z | src/utils/load_or_make.py | floraxinru/metisproject04 | 80ee97eedbf675d6f5064eb92fd7166b56bb81e6 | [
"MIT"
] | 8 | 2019-04-08T23:01:39.000Z | 2021-08-02T18:18:43.000Z |
import os, pickle
import functools
def load_or_make(creator):
"""
Loads data that is pickled at filepath if filepath exists;
otherwise, calls creator(*args, **kwargs) to create the data
and pickle it at filepath.
Returns the data in either case.
Inputs:
- filepath: path to where data... | 28.179487 | 67 | 0.606915 | 140 | 1,099 | 4.685714 | 0.435714 | 0.07622 | 0.030488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.304823 | 1,099 | 38 | 68 | 28.921053 | 0.858639 | 0.495905 | 0 | 0 | 0 | 0 | 0.008677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e8f2cd4383b58674dc6f3bff361444a5618a257 | 13,075 | py | Python | ir.py | safx/nu-scraper | 6b18d9f4937bd2a1cd5b89b141868e1ae60a5a4e | [
"MIT"
] | 3 | 2021-02-05T08:30:40.000Z | 2021-02-05T11:33:16.000Z | ir.py | safx/nu-scraper | 6b18d9f4937bd2a1cd5b89b141868e1ae60a5a4e | [
"MIT"
] | null | null | null | ir.py | safx/nu-scraper | 6b18d9f4937bd2a1cd5b89b141868e1ae60a5a4e | [
"MIT"
] | null | null | null | from os import replace
from typing import List, Dict, Any, Callable
import os
import re
import json
import functools
ST_UNKNOWN = "*"
ST_BOOL = "bool"
ST_INT = "integer"
ST_STR = "string"
ST_FLOAT = "float"
ST_URL = "url"
ST_DATETIME = "datetime"
REGEXP_URL = re.compile('^https?://.+$')
REGEX... | 36.218837 | 144 | 0.578356 | 1,399 | 13,075 | 5.255897 | 0.137956 | 0.023256 | 0.015232 | 0.013328 | 0.241398 | 0.166191 | 0.148783 | 0.133823 | 0.120495 | 0.102543 | 0 | 0.004619 | 0.304551 | 13,075 | 360 | 145 | 36.319444 | 0.804025 | 0.032352 | 0 | 0.255814 | 0 | 0.003322 | 0.018195 | 0.003006 | 0 | 0 | 0 | 0.002778 | 0.043189 | 1 | 0.17608 | false | 0.013289 | 0.019934 | 0.089701 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e8fa3cd904b0121303ce6cd660e368b0933349e | 393 | py | Python | setup.py | RonenHoffer/grebot | a8ca01baba72ff13ad68706626c5fd51630bbdf1 | [
"MIT"
] | null | null | null | setup.py | RonenHoffer/grebot | a8ca01baba72ff13ad68706626c5fd51630bbdf1 | [
"MIT"
] | null | null | null | setup.py | RonenHoffer/grebot | a8ca01baba72ff13ad68706626c5fd51630bbdf1 | [
"MIT"
] | 1 | 2016-01-27T13:37:09.000Z | 2016-01-27T13:37:09.000Z | from setuptools import setup
from platform import system
SYSTEM = system()
VERSION = '1.0.2'
if SYSTEM == 'Windows':
scripts = ['grebot/grebot.bat']
else:
scripts = ['grebot/grebot.sh']
setup(
name='grebot',
version=VERSION,
packages=['grebot'],
license='MIT',
long_description=open('READM... | 18.714286 | 47 | 0.653944 | 46 | 393 | 5.543478 | 0.652174 | 0.094118 | 0.14902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009375 | 0.185751 | 393 | 20 | 48 | 19.65 | 0.7875 | 0 | 0 | 0 | 0 | 0 | 0.198473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 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 | 0 | 0 | 1 | 0 |
8e90005a1d37aeec86aa49ac6b0e7b616e3410f4 | 3,774 | py | Python | src/arcos_gui/magic_guis.py | bgraedel/arcos-gui | aaeeba3aae1bc9a23c635ebabf6309f878ad8a39 | [
"BSD-3-Clause"
] | 2 | 2022-02-22T14:24:38.000Z | 2022-02-26T13:33:25.000Z | src/arcos_gui/magic_guis.py | bgraedel/arcos-gui | aaeeba3aae1bc9a23c635ebabf6309f878ad8a39 | [
"BSD-3-Clause"
] | null | null | null | src/arcos_gui/magic_guis.py | bgraedel/arcos-gui | aaeeba3aae1bc9a23c635ebabf6309f878ad8a39 | [
"BSD-3-Clause"
] | null | null | null | import operator
from magicgui import magicgui
OPERATOR_DICTIONARY = {
"Divide": (operator.truediv, "Measurement_Ratio"),
"Multiply": (operator.mul, "Measurement_Product"),
"Add": (operator.add, "Measurement_Sum"),
"Subtract": (operator.sub, "Measurement_Difference"),
}
measurement_math_options = list... | 29.952381 | 144 | 0.621092 | 421 | 3,774 | 5.425178 | 0.308789 | 0.043345 | 0.063047 | 0.044658 | 0.109457 | 0.064799 | 0.064799 | 0.064799 | 0.064799 | 0.048161 | 0 | 0.015267 | 0.236354 | 3,774 | 125 | 145 | 30.192 | 0.777238 | 0.052464 | 0 | 0.119266 | 0 | 0 | 0.392958 | 0.006197 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036697 | false | 0 | 0.018349 | 0 | 0.055046 | 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 | 0 | 0 | 1 | 0 |
8e91dfb90c4fe4bfe8c34531aaadba87573629d2 | 980 | py | Python | setup.py | michaelremington2/uumarrty | 4c48b496e09429eb6777f9dececa7c7be203cc8c | [
"BSD-3-Clause"
] | null | null | null | setup.py | michaelremington2/uumarrty | 4c48b496e09429eb6777f9dececa7c7be203cc8c | [
"BSD-3-Clause"
] | null | null | null | setup.py | michaelremington2/uumarrty | 4c48b496e09429eb6777f9dececa7c7be203cc8c | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='uumarrty',
version='0.0.1',
url='https://github.com/michaelremington2/uumarrty',
author='Michael Remington and Jeet Sukumaran',
... | 28.823529 | 68 | 0.656122 | 110 | 980 | 5.727273 | 0.754545 | 0.095238 | 0.060317 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011392 | 0.193878 | 980 | 34 | 69 | 28.823529 | 0.786076 | 0.043878 | 0 | 0.071429 | 0 | 0 | 0.443376 | 0.054487 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e948cdbd864ca7d68940aa639d8604501f00bc5 | 683 | py | Python | RackPi/Pages/Reboot.py | DarkIrata/rackpi | e588f9b42ae55c8a763ce9e7a953e29f25e696b3 | [
"MIT"
] | null | null | null | RackPi/Pages/Reboot.py | DarkIrata/rackpi | e588f9b42ae55c8a763ce9e7a953e29f25e696b3 | [
"MIT"
] | null | null | null | RackPi/Pages/Reboot.py | DarkIrata/rackpi | e588f9b42ae55c8a763ce9e7a953e29f25e696b3 | [
"MIT"
] | null | null | null | from Data.Drawer import Drawer
from Data.Helper import *
from Pages.PageBase import PageBase
class Reboot(PageBase):
def __init__(self, drawer: Drawer):
PageBase.__init__(self, drawer)
def UpdateCanvas(self):
if not self.CanUpdate(100):
return
self.drawer.ClearCanv... | 31.045455 | 65 | 0.610542 | 75 | 683 | 5.453333 | 0.48 | 0.171149 | 0.168704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011976 | 0.266471 | 683 | 22 | 66 | 31.045455 | 0.804391 | 0 | 0 | 0.111111 | 0 | 0 | 0.116959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.444444 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e98c19a9f41dbb82f2ec64a837df13e0499732e | 380 | py | Python | ex018.py | Gustavo-Dev-Web/python | 88c9a51cba5290d1dcfce8ea9481ed4749503f68 | [
"MIT"
] | null | null | null | ex018.py | Gustavo-Dev-Web/python | 88c9a51cba5290d1dcfce8ea9481ed4749503f68 | [
"MIT"
] | null | null | null | ex018.py | Gustavo-Dev-Web/python | 88c9a51cba5290d1dcfce8ea9481ed4749503f68 | [
"MIT"
] | null | null | null | from math import radians, sin, cos, tan
angulo = float(input('Digite o ângulo que você deseja: '))
seno = sin(radians(angulo))
cosseno = cos(radians(angulo))
tangente = tan(radians(angulo))
print(f'O ângulo de {angulo} tem o SENO de {seno :.2f}!')
print(f'O ângulo de {angulo} tem o COSSENO de {cosseno :.2f}!')
print(... | 34.545455 | 65 | 0.694737 | 64 | 380 | 4.125 | 0.390625 | 0.106061 | 0.079545 | 0.147727 | 0.295455 | 0.295455 | 0.295455 | 0.295455 | 0 | 0 | 0 | 0.009288 | 0.15 | 380 | 10 | 66 | 38 | 0.80805 | 0 | 0 | 0 | 0 | 0 | 0.494737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8e9b97604a5cb5368bd271887ae7d926ada9d2f3 | 685 | py | Python | LeetCode/python/061-090/086-partition-list/solution.py | shootsoft/practice | 49f28c2e0240de61d00e4e0291b3c5edd930e345 | [
"Apache-2.0"
] | null | null | null | LeetCode/python/061-090/086-partition-list/solution.py | shootsoft/practice | 49f28c2e0240de61d00e4e0291b3c5edd930e345 | [
"Apache-2.0"
] | null | null | null | LeetCode/python/061-090/086-partition-list/solution.py | shootsoft/practice | 49f28c2e0240de61d00e4e0291b3c5edd930e345 | [
"Apache-2.0"
] | null | null | null | __author__ = 'yinjun'
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
# @param head, a ListNode
# @param x, an integer
# @return a ListNode
def partition(self, head, x):
h1 = ListNode(0)
... | 18.513514 | 41 | 0.464234 | 83 | 685 | 3.73494 | 0.39759 | 0.03871 | 0.083871 | 0.103226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043928 | 0.435037 | 685 | 36 | 42 | 19.027778 | 0.757106 | 0.272993 | 0 | 0 | 0 | 0 | 0.01227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e9d1f88f2018b598e87d9922395a3eec689c6a1 | 2,389 | py | Python | jasonhelper/__init__.py | jbkoh/jason_python_helper | 6a9d8e31d070b5adb827ba96887db24cb431b94e | [
"MIT"
] | null | null | null | jasonhelper/__init__.py | jbkoh/jason_python_helper | 6a9d8e31d070b5adb827ba96887db24cb431b94e | [
"MIT"
] | 1 | 2017-10-12T23:01:32.000Z | 2017-11-21T06:44:07.000Z | jasonhelper/__init__.py | jbkoh/jason_python_helper | 6a9d8e31d070b5adb827ba96887db24cb431b94e | [
"MIT"
] | 1 | 2018-09-19T15:12:57.000Z | 2018-09-19T15:12:57.000Z | import argparse
import os
import time
## Argparser
def str2slist(s):
s.replace(' ', '')
return s.split(',')
def str2ilist(s):
s.replace(' ', '')
return [int(c) for c in s.split(',')]
def str2bool(v):
if v in ['true', 'True']:
return True
elif v in ['false', 'False']:
return F... | 25.688172 | 69 | 0.601925 | 334 | 2,389 | 4.113772 | 0.296407 | 0.064047 | 0.029112 | 0.039301 | 0.055313 | 0.055313 | 0.055313 | 0 | 0 | 0 | 0 | 0.015792 | 0.257848 | 2,389 | 92 | 70 | 25.967391 | 0.759165 | 0.062788 | 0 | 0.085714 | 0 | 0 | 0.026906 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 1 | 0.2 | false | 0 | 0.042857 | 0 | 0.342857 | 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 | 0 | 0 | 1 | 0 |
8e9d9a8e7ebad14756d858c92a15d00b8f0de94b | 2,983 | py | Python | data_evaluation.py | portaloffreedom/reinforcement-learning-in-rust | 470a8b6486a2c83dccbab9a0ef4bfd020e975d56 | [
"MIT"
] | null | null | null | data_evaluation.py | portaloffreedom/reinforcement-learning-in-rust | 470a8b6486a2c83dccbab9a0ef4bfd020e975d56 | [
"MIT"
] | null | null | null | data_evaluation.py | portaloffreedom/reinforcement-learning-in-rust | 470a8b6486a2c83dccbab9a0ef4bfd020e975d56 | [
"MIT"
] | null | null | null | # Download data, unzip, etc.
from matplotlib import pyplot as plt
import pandas as pd
import numpy as np
import scipy.stats as st
# Set some parameters to apply to all plots. These can be overridden
# in each plot if desired
import matplotlib
# Plot size to 14" x 7"
matplotlib.rc('figure', figsize = (14, 7))
# Font... | 33.516854 | 111 | 0.638284 | 430 | 2,983 | 4.27907 | 0.327907 | 0.019022 | 0.043478 | 0.052174 | 0.229891 | 0.201087 | 0.201087 | 0.13913 | 0.13913 | 0.103261 | 0 | 0.03048 | 0.252095 | 2,983 | 89 | 112 | 33.516854 | 0.794263 | 0.315454 | 0 | 0 | 0 | 0 | 0.096822 | 0.028798 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.108696 | 0 | 0.152174 | 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 | 0 | 0 | 1 | 0 |
8ea223055e4d3fcfd6d5415328c4b3e36324649c | 3,988 | py | Python | roles/openshift_health_checker/library/rpm_version.py | KoteikinyDrova/openshift-ansible | 3db2bb10c0ad5e7ed702bfccdec03562533e8539 | [
"Apache-2.0"
] | 1 | 2019-03-13T10:14:35.000Z | 2019-03-13T10:14:35.000Z | roles/openshift_health_checker/library/rpm_version.py | KoteikinyDrova/openshift-ansible | 3db2bb10c0ad5e7ed702bfccdec03562533e8539 | [
"Apache-2.0"
] | 1 | 2021-09-23T23:36:29.000Z | 2021-09-23T23:36:29.000Z | roles/openshift_health_checker/library/rpm_version.py | KoteikinyDrova/openshift-ansible | 3db2bb10c0ad5e7ed702bfccdec03562533e8539 | [
"Apache-2.0"
] | 4 | 2018-10-27T00:29:24.000Z | 2022-01-07T07:39:51.000Z | #!/usr/bin/python
"""
Ansible module for rpm-based systems determining existing package version information in a host.
"""
from ansible.module_utils.basic import AnsibleModule
IMPORT_EXCEPTION = None
try:
import rpm # pylint: disable=import-error
except ImportError as err:
IMPORT_EXCEPTION = err # in tox te... | 31.15625 | 116 | 0.621364 | 476 | 3,988 | 4.926471 | 0.277311 | 0.044776 | 0.030704 | 0.021748 | 0.078465 | 0.065672 | 0.045203 | 0.045203 | 0 | 0 | 0 | 0.001054 | 0.286108 | 3,988 | 127 | 117 | 31.401575 | 0.82262 | 0.127633 | 0 | 0.137931 | 0 | 0 | 0.115753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.08046 | 0.011494 | 0.206897 | 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 | 0 | 0 | 1 | 0 |
8ea5524aaaf6020d2fb120959b8bb005d31ffdc3 | 12,967 | py | Python | spider_proxy/app/managers/proxy_fetch.py | seniortesting/python-spider | 0b70817373e2e22267ddf3b80b9b7eb15931e41e | [
"MIT"
] | null | null | null | spider_proxy/app/managers/proxy_fetch.py | seniortesting/python-spider | 0b70817373e2e22267ddf3b80b9b7eb15931e41e | [
"MIT"
] | null | null | null | spider_proxy/app/managers/proxy_fetch.py | seniortesting/python-spider | 0b70817373e2e22267ddf3b80b9b7eb15931e41e | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
import logging
import re
from time import sleep
import requests
import urllib3
from app.utils.spider_utils import getHtmlTree, verifyProxyFormat
from app.utils.web_request import WebRequest
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
logging.basicConfig(level=logging.IN... | 36.94302 | 134 | 0.488162 | 1,477 | 12,967 | 4.199729 | 0.215978 | 0.008061 | 0.011607 | 0.012252 | 0.34048 | 0.270031 | 0.226342 | 0.212317 | 0.168467 | 0.154603 | 0 | 0.027294 | 0.336007 | 12,967 | 350 | 135 | 37.048571 | 0.693148 | 0.390376 | 0 | 0.297468 | 0 | 0.037975 | 0.19589 | 0.039632 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063291 | false | 0.018987 | 0.056962 | 0 | 0.132911 | 0.025316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8ea66006c86aaaba9532a364fe87531b05105008 | 1,384 | py | Python | Mundo 3/File 105.py | PedroHenriqueSimoes/Exercicios-Python | 702a819d508dd7878b88fb676559d899237ac761 | [
"MIT"
] | 1 | 2020-04-30T21:32:01.000Z | 2020-04-30T21:32:01.000Z | Mundo 3/File 105.py | PedroHenriqueSimoes/Exercicios-Python | 702a819d508dd7878b88fb676559d899237ac761 | [
"MIT"
] | 1 | 2021-10-05T02:00:04.000Z | 2021-10-05T02:00:04.000Z | Mundo 3/File 105.py | PedroHenriqueSimoes/Exercicios-Python | 702a819d508dd7878b88fb676559d899237ac761 | [
"MIT"
] | null | null | null | def notas(*n, show=False):
"""
-> Função que lê varias notas e retorna um dicionario com dados
:param n: Lê varias notas (numero indefinido)
:param show: Mostra a situação do aluno (opc)
:return: Retorna um dicionario
"""
dados = dict()
dados['total'] = len(n)
dados['maior'] = max(n... | 28.244898 | 77 | 0.533237 | 188 | 1,384 | 3.925532 | 0.414894 | 0.03252 | 0.03252 | 0.04336 | 0.204607 | 0.143631 | 0.143631 | 0.143631 | 0.143631 | 0.143631 | 0 | 0.022893 | 0.305636 | 1,384 | 48 | 78 | 28.833333 | 0.745057 | 0.134393 | 0 | 0.225 | 0 | 0 | 0.257485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0 | 0 | 0.05 | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8ea6772e802a782c50f83515c19392b32fbb9402 | 779 | py | Python | Backend/ChatBot/question detection.py | paucutrina/RareHacks_Chatbot | c7ecfef693bf2f477d090629d6eecf7b0bf57872 | [
"MIT"
] | null | null | null | Backend/ChatBot/question detection.py | paucutrina/RareHacks_Chatbot | c7ecfef693bf2f477d090629d6eecf7b0bf57872 | [
"MIT"
] | null | null | null | Backend/ChatBot/question detection.py | paucutrina/RareHacks_Chatbot | c7ecfef693bf2f477d090629d6eecf7b0bf57872 | [
"MIT"
] | null | null | null | from nltk import sent_tokenize, word_tokenize, pos_tag, ne_chunk
sentence = 'Usually I go to the hospital when I am afraid. When I sould go there?'
sentences_splitted = sent_tokenize(sentence)
sentence_words_splitted = [word_tokenize(s) for s in sentences_splitted]
question = [ne_chunk(pos_tag(s)) for s in sentences_... | 51.933333 | 172 | 0.69448 | 117 | 779 | 4.461538 | 0.529915 | 0.097701 | 0.08046 | 0.02682 | 0.091954 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0.00463 | 0.168164 | 779 | 14 | 173 | 55.642857 | 0.800926 | 0.110398 | 0 | 0 | 0 | 0 | 0.197101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 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 | 0 | 0 | 1 | 0 |
8ea86f5c1066313076da8b4f11d85883b0f7d98c | 16,079 | py | Python | tp4/src/back-end/translator.py | ha2398/compiladores1-tps | a70de7cbb6a76301258f1e0f88141a57c6a15d5e | [
"MIT"
] | null | null | null | tp4/src/back-end/translator.py | ha2398/compiladores1-tps | a70de7cbb6a76301258f1e0f88141a57c6a15d5e | [
"MIT"
] | null | null | null | tp4/src/back-end/translator.py | ha2398/compiladores1-tps | a70de7cbb6a76301258f1e0f88141a57c6a15d5e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
'''
translator.py: 3 address code -> TAM translator.
@author: Hugo Araujo de Sousa [2013007463]
@email: hugosousa@dcc.ufmg.br
@DCC053 - Compiladores I - UFMG
'''
# TODO: Need to handle floating point literals.
# TAM does not provide arithmetic routines for floating point!?
import argparse as... | 26.57686 | 80 | 0.602525 | 2,320 | 16,079 | 4.072414 | 0.109914 | 0.050804 | 0.082557 | 0.118649 | 0.600021 | 0.574619 | 0.540538 | 0.52699 | 0.52699 | 0.497248 | 0 | 0.038027 | 0.229678 | 16,079 | 604 | 81 | 26.620861 | 0.72477 | 0.193296 | 0 | 0.540052 | 0 | 0 | 0.060002 | 0.007539 | 0 | 0 | 0 | 0.001656 | 0 | 1 | 0.023256 | false | 0 | 0.007752 | 0 | 0.03876 | 0.010336 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8eab3a16c60da45c7e9e2c9740482835876404d6 | 2,501 | py | Python | CaffeNet/caffenet_settings.py | MasazI/DeepLearning_TensorFlow | 6a0865850b32eb4af52bc41984e0cbaa2a19c48a | [
"MIT"
] | 17 | 2015-12-20T14:10:35.000Z | 2022-02-28T13:06:33.000Z | CaffeNet/caffenet_settings.py | MasazI/DeepLearning_TensorFlow | 6a0865850b32eb4af52bc41984e0cbaa2a19c48a | [
"MIT"
] | 1 | 2019-02-20T12:37:56.000Z | 2019-02-20T12:37:56.000Z | CaffeNet/caffenet_settings.py | MasazI/DeepLearning_TensorFlow | 6a0865850b32eb4af52bc41984e0cbaa2a19c48a | [
"MIT"
] | 8 | 2015-11-14T04:32:10.000Z | 2020-12-26T01:12:18.000Z | # encoding: utf-8
import tensorflow as tf
flags = tf.app.flags
FLAGS = flags.FLAGS
# train settings
flags.DEFINE_integer('batch_size', 40, 'the number of images in a batch.')
flags.DEFINE_integer('training_data_type', 1, '0: directly feed, 1: tfrecords')
#flags.DEFINE_string('train_tfrecords', 'data/train_caltech_ra... | 59.547619 | 115 | 0.773291 | 378 | 2,501 | 4.902116 | 0.314815 | 0.172153 | 0.135996 | 0.067998 | 0.348624 | 0.233135 | 0.206152 | 0.178629 | 0.093362 | 0.059363 | 0 | 0.022497 | 0.093563 | 2,501 | 41 | 116 | 61 | 0.794883 | 0.09916 | 0 | 0 | 0 | 0 | 0.563224 | 0.076135 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 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 | 0 | 0 | 1 | 0 |
8eab8b064c9e76464450980bd8d5e48a2c98df8b | 2,529 | py | Python | mnist_train.py | danielgolf/AI-playground | d1148da7a3ca42b788a7ba268d3367bca0803cb9 | [
"MIT"
] | null | null | null | mnist_train.py | danielgolf/AI-playground | d1148da7a3ca42b788a7ba268d3367bca0803cb9 | [
"MIT"
] | null | null | null | mnist_train.py | danielgolf/AI-playground | d1148da7a3ca42b788a7ba268d3367bca0803cb9 | [
"MIT"
] | null | null | null | import numpy as np
import keras
import keras.layers as layers
from get_mnist import get_mnist_preproc
### --- hyperparameterrs --- ###
epochs = 48
batch_size = 64
num_classes = 10
reg = 3e-3
### --- hyperparams end --- ###
### --- setup data --- ###
traini, trainl, vali, vall, testi, testl = get_mnist_preproc()
... | 19.453846 | 62 | 0.627521 | 293 | 2,529 | 5.286689 | 0.331058 | 0.036152 | 0.063267 | 0.109748 | 0.336346 | 0.336346 | 0.271143 | 0.271143 | 0.271143 | 0.271143 | 0 | 0.01757 | 0.212337 | 2,529 | 129 | 63 | 19.604651 | 0.76004 | 0.109134 | 0 | 0.363636 | 0 | 0 | 0.08958 | 0.033821 | 0 | 0 | 0 | 0.007752 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8eaeba892f2de5df103a615e0e9a36e8ab22471a | 25,480 | py | Python | c2cgeoportal/__init__.py | kalbermattenm/c2cgeoportal | 4ab41ec7130536bc86f4c05ca330e9ce3dfb93c1 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | c2cgeoportal/__init__.py | kalbermattenm/c2cgeoportal | 4ab41ec7130536bc86f4c05ca330e9ce3dfb93c1 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | c2cgeoportal/__init__.py | kalbermattenm/c2cgeoportal | 4ab41ec7130536bc86f4c05ca330e9ce3dfb93c1 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2011-2016, Camptocamp SA
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice, this
#... | 35.586592 | 98 | 0.672567 | 3,060 | 25,480 | 5.395098 | 0.19281 | 0.045248 | 0.051729 | 0.022654 | 0.279666 | 0.229814 | 0.162336 | 0.124962 | 0.110849 | 0.107759 | 0 | 0.006095 | 0.220879 | 25,480 | 715 | 99 | 35.636364 | 0.825509 | 0.206279 | 0 | 0.222917 | 0 | 0 | 0.171229 | 0.044174 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06875 | false | 0.010417 | 0.052083 | 0.004167 | 0.18125 | 0.014583 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8eaf5d71da4aea86f6032fa830b38828a3ca197e | 1,102 | py | Python | app/cruds/seeds.py | woods0918/graphql_server_sample | b19e57fedb8cdb41ee001c8e80ef4baeebc8fe99 | [
"MIT"
] | null | null | null | app/cruds/seeds.py | woods0918/graphql_server_sample | b19e57fedb8cdb41ee001c8e80ef4baeebc8fe99 | [
"MIT"
] | null | null | null | app/cruds/seeds.py | woods0918/graphql_server_sample | b19e57fedb8cdb41ee001c8e80ef4baeebc8fe99 | [
"MIT"
] | null | null | null | import sys
import pathlib
from datetime import datetime
current_dir = pathlib.Path(__file__).resolve().parent
sys.path.append( str(current_dir) + '/../../' )
from app.database import BASE, ENGINE, session_scope
from app.models.todos import Todo
from app.models.users import User
def generate_seed_data():
BASE.met... | 29.783784 | 54 | 0.57804 | 125 | 1,102 | 4.92 | 0.504 | 0.107317 | 0.042276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02836 | 0.264065 | 1,102 | 36 | 55 | 30.611111 | 0.729963 | 0 | 0 | 0 | 0 | 0 | 0.11706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.193548 | 0 | 0.225806 | 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 | 0 | 0 | 1 | 0 |
8eaf99475c5184ec13f9c69b29833abb9f843b06 | 3,217 | py | Python | tests/test_rogue_web.py | bfontaine/rogue_scores | 894f118de81e91246a114a0bc3ed74de2edd3cc8 | [
"MIT"
] | null | null | null | tests/test_rogue_web.py | bfontaine/rogue_scores | 894f118de81e91246a114a0bc3ed74de2edd3cc8 | [
"MIT"
] | 5 | 2019-11-04T09:00:39.000Z | 2021-03-30T06:44:26.000Z | tests/test_rogue_web.py | bfontaine/rogue_scores | 894f118de81e91246a114a0bc3ed74de2edd3cc8 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
import os
import os.path
import json
import platform
import tempfile
import logging
if platform.python_version() < '2.7':
import unittest2 as unittest
else:
import unittest
from rogue_scores.web import app
from rogue_scores.web.app import index, scores_upload, scores_json
class FakeR... | 30.638095 | 78 | 0.5788 | 385 | 3,217 | 4.711688 | 0.285714 | 0.049614 | 0.033076 | 0.035832 | 0.305402 | 0.194598 | 0.181918 | 0.181918 | 0.181918 | 0.181918 | 0 | 0.011869 | 0.266708 | 3,217 | 104 | 79 | 30.932692 | 0.7571 | 0.023624 | 0 | 0.271605 | 0 | 0 | 0.093231 | 0.007663 | 0 | 0 | 0 | 0 | 0.098765 | 1 | 0.123457 | false | 0 | 0.123457 | 0 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8eb1ed9124daee9f997f42d027fa2279f05ec66b | 3,162 | py | Python | OwnVsRent/Investment.py | hermantai/beta-programs | 06dadc61845a55f15dba76f1438b6795d26d6820 | [
"Apache-2.0"
] | null | null | null | OwnVsRent/Investment.py | hermantai/beta-programs | 06dadc61845a55f15dba76f1438b6795d26d6820 | [
"Apache-2.0"
] | null | null | null | OwnVsRent/Investment.py | hermantai/beta-programs | 06dadc61845a55f15dba76f1438b6795d26d6820 | [
"Apache-2.0"
] | null | null | null | """
Investment
created by Herman Tai 3/20/2008
"""
from math import *
TOLERANCE = 0.0000001
def equals(n1,n2):
return abs(n1-n2) <TOLERANCE
def calculate_monthly_payment(principle,year,rate_percent):
terms = year * 12.0
rate = rate_percent/100.0
monthly_rate = rate/12.0
# special case
if mo... | 31.62 | 159 | 0.63852 | 444 | 3,162 | 4.373874 | 0.207207 | 0.013903 | 0.018023 | 0.027806 | 0.065911 | 0.029866 | 0.029866 | 0.029866 | 0 | 0 | 0 | 0.045209 | 0.237508 | 3,162 | 99 | 160 | 31.939394 | 0.760265 | 0.038267 | 0 | 0.053333 | 0 | 0 | 0.001982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.013333 | 0.053333 | 0.36 | 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 | 0 | 0 | 1 | 0 |
8eb2a4b31e0e2b5fb4e1538f458c2107162096b7 | 1,544 | py | Python | Sakurajima/models/recommendation.py | TrimVis/Sakurajima | 9d3f6acc0a6228d94da58a518f7cfdd796d652f7 | [
"MIT"
] | null | null | null | Sakurajima/models/recommendation.py | TrimVis/Sakurajima | 9d3f6acc0a6228d94da58a518f7cfdd796d652f7 | [
"MIT"
] | null | null | null | Sakurajima/models/recommendation.py | TrimVis/Sakurajima | 9d3f6acc0a6228d94da58a518f7cfdd796d652f7 | [
"MIT"
] | null | null | null | import requests
import json
from Sakurajima.models import base_models as bm
class RecommendationEntry(object):
def __init__(self, data_dict, headers, cookies, api_url):
self.__headers = headers
self.__cookies = cookies
self.__API_URL = api_url
self.title = data_dict.get("title", No... | 35.090909 | 85 | 0.619171 | 189 | 1,544 | 4.724868 | 0.275132 | 0.107503 | 0.135498 | 0.038074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262953 | 1,544 | 43 | 86 | 35.906977 | 0.78471 | 0 | 0 | 0 | 0 | 0 | 0.115285 | 0.013601 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.078947 | 0.026316 | 0.289474 | 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 | 0 | 0 | 1 | 0 |
8eb329a5034df522f053c63062da9cdf64fd7143 | 3,620 | py | Python | edinet_baseline_hourly_module/edinet_models/pyEMIS/EventDetection/event_model.py | BeeGroup-cimne/module_edinet | 0cda52e9d6222a681f85567e9bf0f7e5885ebf5e | [
"MIT"
] | null | null | null | edinet_baseline_hourly_module/edinet_models/pyEMIS/EventDetection/event_model.py | BeeGroup-cimne/module_edinet | 0cda52e9d6222a681f85567e9bf0f7e5885ebf5e | [
"MIT"
] | 13 | 2021-03-25T22:24:38.000Z | 2022-03-12T00:56:45.000Z | edinet_baseline_hourly_module/edinet_models/pyEMIS/EventDetection/event_model.py | BeeGroup-cimne/module_edinet | 0cda52e9d6222a681f85567e9bf0f7e5885ebf5e | [
"MIT"
] | 1 | 2019-03-13T09:49:56.000Z | 2019-03-13T09:49:56.000Z | """Events separate segements of data. A model is fitted to each segment independently"""
import numpy as np
class InvalidPeriod(Exception): pass
class event(object):
def __init__(self, date):
self.date = date
def period_range(min_date, max_date, events, index):
if index > len(events): raise InvalidPe... | 34.150943 | 110 | 0.625138 | 487 | 3,620 | 4.507187 | 0.232033 | 0.032802 | 0.031891 | 0.020046 | 0.217768 | 0.176765 | 0.121185 | 0.07836 | 0.07836 | 0.07836 | 0 | 0.007766 | 0.253039 | 3,620 | 105 | 111 | 34.47619 | 0.803994 | 0.112431 | 0 | 0.195122 | 0 | 0 | 0.034796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134146 | false | 0.012195 | 0.04878 | 0 | 0.304878 | 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 | 0 | 0 | 1 | 0 |
8eb3fe8d61ca018e169ea0f932496e2418d8f490 | 2,388 | py | Python | muscle_tuning/logisticregression_tuning.py | c60evaporator/param_tuning_utility | 8518b76369dcc918172a87ab4c975ee3a12f7045 | [
"BSD-3-Clause"
] | null | null | null | muscle_tuning/logisticregression_tuning.py | c60evaporator/param_tuning_utility | 8518b76369dcc918172a87ab4c975ee3a12f7045 | [
"BSD-3-Clause"
] | null | null | null | muscle_tuning/logisticregression_tuning.py | c60evaporator/param_tuning_utility | 8518b76369dcc918172a87ab4c975ee3a12f7045 | [
"BSD-3-Clause"
] | null | null | null | from sklearn.linear_model import LogisticRegression
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import StandardScaler
import numpy as np
from .param_tuning import ParamTuning
class LogisticRegressionTuning(ParamTuning):
"""
サポートベクター分類チューニング用クラス
"""
# 共通定数
SEED = 42 # デフォルト乱... | 32.27027 | 105 | 0.600503 | 233 | 2,388 | 5.922747 | 0.613734 | 0.030435 | 0.052174 | 0.054348 | 0.018841 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039365 | 0.28727 | 2,388 | 74 | 106 | 32.27027 | 0.771445 | 0.341709 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.138889 | 0 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8eb4e2799d377de7e9d39b8148f9aadd7b2d4071 | 1,578 | py | Python | main.py | Marques004/Medical-Data-Visualizer | 1c096cc3f7732b532b94a60021f102f15680f98c | [
"MIT"
] | null | null | null | main.py | Marques004/Medical-Data-Visualizer | 1c096cc3f7732b532b94a60021f102f15680f98c | [
"MIT"
] | null | null | null | main.py | Marques004/Medical-Data-Visualizer | 1c096cc3f7732b532b94a60021f102f15680f98c | [
"MIT"
] | null | null | null | import os
os.environ['MPLCONFIGDIR'] = os.getcwd() + "/configs/"
import matplotlib
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
df = pd.read_csv('medical_examination.csv')
df['overweight'] = (df['weight'] / (df['height']/100)**2).apply(lambda x: 1 if x > 25 else 0)
df['... | 33.574468 | 144 | 0.627376 | 240 | 1,578 | 4.033333 | 0.4125 | 0.041322 | 0.030992 | 0.02686 | 0.225207 | 0.14876 | 0.045455 | 0.045455 | 0.045455 | 0 | 0 | 0.028788 | 0.163498 | 1,578 | 46 | 145 | 34.304348 | 0.704545 | 0.031686 | 0 | 0.064516 | 0 | 0 | 0.216393 | 0.015082 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.193548 | 0 | 0.322581 | 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 | 0 | 0 | 1 | 0 |
8eb5d6396e2a31bb9fbff7585432ac8ecb96f4b0 | 2,785 | py | Python | Gadakeco_Code/src/gui/guiscrollbar.py | YueNing/gadakeco-ml | ec64703d7d6582d867b873f333b230d32b0e1d1a | [
"MIT"
] | 3 | 2019-07-26T15:47:23.000Z | 2019-10-02T13:39:49.000Z | Gadakeco_Code/src/gui/guiscrollbar.py | YueNing/gadakeco-ml | ec64703d7d6582d867b873f333b230d32b0e1d1a | [
"MIT"
] | 5 | 2019-07-26T20:32:50.000Z | 2019-07-26T20:48:34.000Z | Gadakeco_Code/src/gui/guiscrollbar.py | YueNing/gadakeco-neat | ec64703d7d6582d867b873f333b230d32b0e1d1a | [
"MIT"
] | 1 | 2019-07-28T21:51:19.000Z | 2019-07-28T21:51:19.000Z | import pygame
from gui.guielement import GuiElement
HORIZONTAL = 0
VERTICAL = 1
class GuiScrollbar(GuiElement):
"""
scrollbar / slider
"""
def __init__(self, x, y, width, height, fontObj, value=0.0, orientation=HORIZONTAL, barLength=30):
GuiElement.__init__(self, x, y, width, ... | 36.168831 | 117 | 0.549013 | 300 | 2,785 | 4.97 | 0.243333 | 0.078471 | 0.032193 | 0.050302 | 0.202549 | 0.177062 | 0.109993 | 0.02951 | 0 | 0 | 0 | 0.035219 | 0.32711 | 2,785 | 76 | 118 | 36.644737 | 0.760406 | 0.006463 | 0 | 0.224138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0.017241 | 0.034483 | 0.034483 | 0.310345 | 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 | 0 | 0 | 1 | 0 |
8eb61d8e3e5b97341a3cbfca6e4c058994f2fde4 | 1,785 | py | Python | sympy/physics/unitsystems/systems/natural.py | shipci/sympy | 4b59927bed992b980c9b3faac01becb36feef26b | [
"BSD-3-Clause"
] | 4 | 2018-07-04T17:20:12.000Z | 2019-07-14T18:07:25.000Z | sympy/physics/unitsystems/systems/natural.py | curzel-it/KiPyCalc | 909c783d5e6967ea58ca93f875106d8a8e3ca5db | [
"MIT"
] | 7 | 2017-05-01T14:15:32.000Z | 2017-09-06T20:44:24.000Z | sympy/physics/unitsystems/systems/natural.py | curzel-it/KiPyCalc | 909c783d5e6967ea58ca93f875106d8a8e3ca5db | [
"MIT"
] | 3 | 2015-04-18T22:33:32.000Z | 2015-09-23T06:45:07.000Z | # -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
Naturalunit system.
The natural system comes from "setting c = 1, hbar = 1". From the computer
point of view it means that we use velocity and action instead of length and
time. Moreover instead of mass we use energy.
"""
from __future__ import division
from sympy... | 37.1875 | 76 | 0.712605 | 252 | 1,785 | 5.019841 | 0.293651 | 0.113043 | 0.028459 | 0.064032 | 0.063241 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03553 | 0.132773 | 1,785 | 47 | 77 | 37.978723 | 0.781654 | 0.189356 | 0 | 0 | 0 | 0 | 0.080949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.173913 | 0 | 0.173913 | 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 | 0 | 0 | 1 | 0 |
8eb7a596233dad4bd13e3f014ef38f1b7c4660a5 | 867 | py | Python | git_pylint/reporter.py | vcoder4c/git_pylint | 9e72e725152d59c1f94663c8ca1e841615a4b6cd | [
"MIT"
] | 1 | 2020-08-29T19:23:06.000Z | 2020-08-29T19:23:06.000Z | git_pylint/reporter.py | vcoder4c/git_pylint | 9e72e725152d59c1f94663c8ca1e841615a4b6cd | [
"MIT"
] | null | null | null | git_pylint/reporter.py | vcoder4c/git_pylint | 9e72e725152d59c1f94663c8ca1e841615a4b6cd | [
"MIT"
] | null | null | null | from pylint.reporters.json import JSONReporter
def json_reporter_handle_message(self, msg):
"""Manage message of different type and in the context of path."""
self.messages.append({
'path': msg.path,
'abspath': msg.abspath,
'line': msg.line,
'column': msg.column,
'modul... | 27.967742 | 73 | 0.600923 | 105 | 867 | 4.780952 | 0.4 | 0.047809 | 0.071713 | 0.099602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00152 | 0.241061 | 867 | 30 | 74 | 28.9 | 0.761398 | 0.069204 | 0 | 0 | 0 | 0 | 0.128589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.041667 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8eba32c6fbf4ca5fdda513dc3cc28ee4369367a4 | 12,492 | py | Python | partstem/__init__.py | AndreyPerelygin/partstem | dacd0537aa2ddf8ac85fd28fc337dd9f0e8235a4 | [
"Apache-2.0"
] | null | null | null | partstem/__init__.py | AndreyPerelygin/partstem | dacd0537aa2ddf8ac85fd28fc337dd9f0e8235a4 | [
"Apache-2.0"
] | null | null | null | partstem/__init__.py | AndreyPerelygin/partstem | dacd0537aa2ddf8ac85fd28fc337dd9f0e8235a4 | [
"Apache-2.0"
] | null | null | null | from nltk.stem import SnowballStemmer
from nltk.stem.api import StemmerI
import nltk
import json
class ParticleStemmer(SnowballStemmer):
def __init__(self, language="english", ignore_stopwords=False, suffix_rule_list={}):
super().__init__(language=language, ignore_stopwords=ignore_stopwords)
if language == "engl... | 35.896552 | 891 | 0.580692 | 1,132 | 12,492 | 6.338339 | 0.482332 | 0.015331 | 0.013659 | 0.012544 | 0.060627 | 0.045157 | 0.029826 | 0.021742 | 0.021742 | 0.011429 | 0 | 0.001082 | 0.186039 | 12,492 | 348 | 892 | 35.896552 | 0.704563 | 0 | 0 | 0.038576 | 0 | 0 | 0.458897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005935 | false | 0 | 0.014837 | 0 | 0.026706 | 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 | 0 | 0 | 1 | 0 |
8ebd3cea58ee2b7b8500c146fbc4d43dc8ae98f8 | 6,340 | py | Python | analysis/Scripts/FunctionScript.py | data301-2021-summer2/group07-Project | 48e399c45cecbe2e596dbd214fa21b939f75e5ae | [
"MIT"
] | null | null | null | analysis/Scripts/FunctionScript.py | data301-2021-summer2/group07-Project | 48e399c45cecbe2e596dbd214fa21b939f75e5ae | [
"MIT"
] | 1 | 2021-08-06T11:01:27.000Z | 2021-08-16T05:20:02.000Z | analysis/Scripts/FunctionScript.py | data301-2021-summer2/group07-Project | 48e399c45cecbe2e596dbd214fa21b939f75e5ae | [
"MIT"
] | 2 | 2021-07-12T21:48:09.000Z | 2021-08-15T00:19:27.000Z | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
def LoadnClean (path):
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
df = (
pd.read_csv(path,index_col = 0)
)
df1 = ( df
.replace("",float("NaN"))
... | 43.129252 | 195 | 0.435016 | 600 | 6,340 | 4.566667 | 0.24 | 0.061314 | 0.014599 | 0.017518 | 0.516058 | 0.516058 | 0.508759 | 0.470803 | 0.470803 | 0.470803 | 0 | 0.090767 | 0.395268 | 6,340 | 146 | 196 | 43.424658 | 0.623892 | 0.006467 | 0 | 0.530769 | 0 | 0 | 0.278272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030769 | false | 0 | 0.092308 | 0 | 0.146154 | 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 | 0 | 0 | 1 | 0 |
8ec13621ede7ad08cdf4a9c2edd5a1f939fb4fac | 1,820 | py | Python | AI_Web/GA/tools/pre_load_data.py | xwy27/ArtificialIntelligenceProjects | e2b0154f07d749084e2d670260fa82f8f5ea23ed | [
"MIT"
] | 4 | 2018-12-19T14:10:56.000Z | 2021-07-12T06:05:17.000Z | AI_Web/GA/tools/pre_load_data.py | xwy27/ArtificialIntelligenceProjects | e2b0154f07d749084e2d670260fa82f8f5ea23ed | [
"MIT"
] | 1 | 2019-08-06T01:57:41.000Z | 2019-08-06T01:57:41.000Z | AI_Web/SA/tools/pre_load_data.py | xwy27/ArtificialIntelligenceProjects | e2b0154f07d749084e2d670260fa82f8f5ea23ed | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''pre load default TSP city data into database'''
from django.db.transaction import atomic
from ..models import *
import os
@atomic
def atomic_save(items):
for item in items:
item.save()
# Load default city data
def load_cities(cities_folder_path, delete=False):
'''
Load data fi... | 26.764706 | 64 | 0.562088 | 233 | 1,820 | 4.309013 | 0.446352 | 0.039841 | 0.063745 | 0.032869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008744 | 0.308791 | 1,820 | 67 | 65 | 27.164179 | 0.789348 | 0.132418 | 0 | 0 | 0 | 0 | 0.150931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.065217 | 0 | 0.130435 | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8ec186c4e3adffdeaef95f08452042f97de330e2 | 11,725 | py | Python | saasy_boi/apis.py | NetskopeOSS/sassy_boi | dbbfd9223a8a93e495ea39c0e8ea54be5fb47715 | [
"BSD-3-Clause"
] | 6 | 2019-10-09T03:51:34.000Z | 2022-01-08T19:59:07.000Z | saasy_boi/apis.py | NetskopeOSS/sassy_boi | dbbfd9223a8a93e495ea39c0e8ea54be5fb47715 | [
"BSD-3-Clause"
] | null | null | null | saasy_boi/apis.py | NetskopeOSS/sassy_boi | dbbfd9223a8a93e495ea39c0e8ea54be5fb47715 | [
"BSD-3-Clause"
] | 1 | 2021-08-05T07:25:06.000Z | 2021-08-05T07:25:06.000Z | # Copyright 2019 Netskope, Inc.
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
# following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
# disclaimer.
#
# 2. ... | 27.916667 | 120 | 0.615778 | 1,469 | 11,725 | 4.81484 | 0.252553 | 0.036901 | 0.03167 | 0.039587 | 0.379188 | 0.336774 | 0.293369 | 0.251378 | 0.214478 | 0.20557 | 0 | 0.008366 | 0.266013 | 11,725 | 419 | 121 | 27.983294 | 0.813502 | 0.206482 | 0 | 0.454545 | 0 | 0.003247 | 0.1823 | 0.006167 | 0 | 0 | 0 | 0.002387 | 0 | 1 | 0.061688 | false | 0.003247 | 0.032468 | 0 | 0.178571 | 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 | 0 | 0 | 1 | 0 |
8ec330c45c5450e56db86bcc225b4e9c85a36af2 | 941 | py | Python | codeforces/B/8-451B.py | safiulanik/problem-solving | 116539750b901b55fe6e69447c8ede78f2e9ff16 | [
"MIT"
] | null | null | null | codeforces/B/8-451B.py | safiulanik/problem-solving | 116539750b901b55fe6e69447c8ede78f2e9ff16 | [
"MIT"
] | null | null | null | codeforces/B/8-451B.py | safiulanik/problem-solving | 116539750b901b55fe6e69447c8ede78f2e9ff16 | [
"MIT"
] | null | null | null | """
URL: https://codeforces.com/problemset/problem/451/B
Author: Safiul Kabir [safiulanik at gmail.com]
Tags: implementation, sortings, *1300
"""
def main():
n = int(input())
ll = list(map(int, input().split()))
start, end = -1, -1
for i in range(n - 1):
if ll[i] > ll[i + 1]:
sta... | 20.021277 | 74 | 0.430393 | 133 | 941 | 3.045113 | 0.330827 | 0.059259 | 0.061728 | 0.108642 | 0.325926 | 0.128395 | 0.054321 | 0.054321 | 0 | 0 | 0 | 0.045126 | 0.411265 | 941 | 46 | 75 | 20.456522 | 0.685921 | 0.14559 | 0 | 0.322581 | 0 | 0 | 0.032663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0 | 0 | 0.064516 | 0.193548 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8ec5c30f23ba531d5364376457bcfc23d7f65b85 | 2,877 | py | Python | finetune-data-sampling/pytorch_softmax_regression_4_class.py | lankuohsing/machine-learning-in-python | a7317325dd914402231ee908e4208e1ddb171a28 | [
"MIT"
] | null | null | null | finetune-data-sampling/pytorch_softmax_regression_4_class.py | lankuohsing/machine-learning-in-python | a7317325dd914402231ee908e4208e1ddb171a28 | [
"MIT"
] | null | null | null | finetune-data-sampling/pytorch_softmax_regression_4_class.py | lankuohsing/machine-learning-in-python | a7317325dd914402231ee908e4208e1ddb171a28 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 7 22:03:24 2021
@author: lankuohsing
"""
import numpy as np
import torch.utils.data as Data
import torch
from collections import OrderedDict
from torchsummary import summary
# In[]
data1=[]
labels1=[]
data2=[]
labels2=[]
with open("./dataset/4_class_data_2d.txt",'r',enc... | 33.453488 | 186 | 0.668752 | 410 | 2,877 | 4.507317 | 0.356098 | 0.026515 | 0.019481 | 0.030844 | 0.070346 | 0.041126 | 0.041126 | 0.041126 | 0 | 0 | 0 | 0.033784 | 0.17692 | 2,877 | 86 | 187 | 33.453488 | 0.746622 | 0.126521 | 0 | 0 | 0 | 0 | 0.040048 | 0.011614 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028986 | false | 0 | 0.072464 | 0 | 0.130435 | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8ec8117705a6e00290140c42310bd866602c4857 | 6,543 | py | Python | Training.py | Waewarin-C/MLProject | 9bd3821db24b1210621169cbbfdd68a1d6e6ab20 | [
"CC-BY-4.0"
] | null | null | null | Training.py | Waewarin-C/MLProject | 9bd3821db24b1210621169cbbfdd68a1d6e6ab20 | [
"CC-BY-4.0"
] | null | null | null | Training.py | Waewarin-C/MLProject | 9bd3821db24b1210621169cbbfdd68a1d6e6ab20 | [
"CC-BY-4.0"
] | null | null | null | from TabularTrainer import *
from RandomPlayer import *
from TicTacToe import *
import matplotlib.pyplot as plt
action_to_coordinate = {0: (0, 0), 1: (0, 1), 2: (0, 2),
3: (1, 0), 4: (1, 1), 5: (1, 2),
6: (2, 0), 7: (2, 1), 8: (2, 2)}
NUM_OF_BATTLES = 10
NUM_OF_GAMES = ... | 34.436842 | 107 | 0.561058 | 795 | 6,543 | 4.474214 | 0.208805 | 0.031487 | 0.030363 | 0.031487 | 0.264268 | 0.187799 | 0.07928 | 0.07928 | 0.067473 | 0.058195 | 0 | 0.050988 | 0.334556 | 6,543 | 189 | 108 | 34.619048 | 0.765962 | 0.073667 | 0 | 0.2 | 0 | 0 | 0.028921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.028571 | 0 | 0.157143 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8ec9af37320f3317b87c57c752336e62fe5c3973 | 3,402 | py | Python | util/visualize3d.py | jshuhnow/OddEyeCam | ed76cd1c29701b7b49f20bcd61e7e72d3140fda8 | [
"MIT"
] | 8 | 2020-10-08T13:32:33.000Z | 2021-12-08T10:59:03.000Z | util/visualize3d.py | jshuhnow/OddEyeCam | ed76cd1c29701b7b49f20bcd61e7e72d3140fda8 | [
"MIT"
] | null | null | null | util/visualize3d.py | jshuhnow/OddEyeCam | ed76cd1c29701b7b49f20bcd61e7e72d3140fda8 | [
"MIT"
] | 1 | 2021-04-15T23:50:13.000Z | 2021-04-15T23:50:13.000Z | import os
import sys
from core.math_tool.coordinate_system import CoordSys
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import cv2
def _update_element(obj,data,is_Point=False):
if is_Point:
obj.set_data(data[0], data[1])
obj.set_3d_properties(data[2], z... | 43.063291 | 129 | 0.592593 | 527 | 3,402 | 3.56167 | 0.225806 | 0.03463 | 0.041023 | 0.053277 | 0.386787 | 0.351625 | 0.318061 | 0.318061 | 0.318061 | 0.318061 | 0 | 0.044952 | 0.228395 | 3,402 | 79 | 130 | 43.063291 | 0.670095 | 0.033804 | 0 | 0.089552 | 0 | 0 | 0.008534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044776 | false | 0 | 0.104478 | 0 | 0.149254 | 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 | 0 | 0 | 1 | 0 |
8ecb338cf3968f1e2415034f8610eb76602e4a7a | 7,134 | py | Python | spell/keyboardspell.py | leolca/spellcheck | 1edf7a598052822d0f95885288a3cf7f6d706c84 | [
"MIT"
] | null | null | null | spell/keyboardspell.py | leolca/spellcheck | 1edf7a598052822d0f95885288a3cf7f6d706c84 | [
"MIT"
] | null | null | null | spell/keyboardspell.py | leolca/spellcheck | 1edf7a598052822d0f95885288a3cf7f6d706c84 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .utils import exists, nlargest, removeMultiple
from .spell import Spell
class KeyboardSpell(Spell):
def __init__(self, spelldic=None, corpusfile=None, suffixfile=None, language=None, encoding=None, keyboardlayoutfile=None, weightObjFun=None):
# call the parent constructor
... | 45.43949 | 174 | 0.585506 | 844 | 7,134 | 4.885071 | 0.241706 | 0.03056 | 0.021829 | 0.036866 | 0.294446 | 0.256124 | 0.252244 | 0.226049 | 0.205675 | 0.191123 | 0 | 0.021691 | 0.308523 | 7,134 | 156 | 175 | 45.730769 | 0.814109 | 0.340342 | 0 | 0.083333 | 0 | 0 | 0.019822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 0.011905 | 0.261905 | 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 | 0 | 0 | 1 | 0 |
8ecc375f9b2ef579824f623a0c86a56a39d05d4d | 2,262 | py | Python | src/helpTool/imFilterPipeline.py | uguisu/DraftTensorflow_chinese_hand_writing | 13f4097dff53ff32d10d51789975700e18052500 | [
"Apache-2.0"
] | null | null | null | src/helpTool/imFilterPipeline.py | uguisu/DraftTensorflow_chinese_hand_writing | 13f4097dff53ff32d10d51789975700e18052500 | [
"Apache-2.0"
] | 1 | 2018-01-25T06:39:52.000Z | 2018-01-25T13:37:44.000Z | src/helpTool/imFilterPipeline.py | uguisu/DraftTensorflow_chinese_hand_writing | 13f4097dff53ff32d10d51789975700e18052500 | [
"Apache-2.0"
] | 1 | 2018-04-22T13:55:18.000Z | 2018-04-22T13:55:18.000Z | # encoding: UTF-8
import cv2
import numpy as np
class ImFilterPipeline:
def __init__(self):
# init pipeline
self._pipeline = {
"rotated": 0,
"blur": 0,
"gaussianBlur": 0,
"resize": 0
}
@property
def pipeline(self):
return s... | 29.763158 | 103 | 0.564987 | 297 | 2,262 | 4.20202 | 0.319865 | 0.057692 | 0.044872 | 0.032051 | 0.073718 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043786 | 0.313439 | 2,262 | 75 | 104 | 30.16 | 0.75982 | 0.2542 | 0 | 0 | 0 | 0 | 0.035605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0 | 0.04878 | 0.097561 | 0.390244 | 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 | 0 | 0 | 1 | 0 |
8ecef356f844a42e3d374691a1124f1ea40fd4a1 | 1,225 | py | Python | etc/metadataParsers/includes/nameparser-0.2.3/setup.py | organisciak/HTRC-BookwormDB | bc24080d6443f8da38255e19149431c9e5b182ab | [
"MIT"
] | null | null | null | etc/metadataParsers/includes/nameparser-0.2.3/setup.py | organisciak/HTRC-BookwormDB | bc24080d6443f8da38255e19149431c9e5b182ab | [
"MIT"
] | null | null | null | etc/metadataParsers/includes/nameparser-0.2.3/setup.py | organisciak/HTRC-BookwormDB | bc24080d6443f8da38255e19149431c9e5b182ab | [
"MIT"
] | null | null | null | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import nameparser
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
README = read('README.rst')
setup(name='nameparser',
packages = ['nameparser'... | 35 | 105 | 0.629388 | 119 | 1,225 | 6.252101 | 0.672269 | 0.02957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001111 | 0.265306 | 1,225 | 34 | 106 | 36.029412 | 0.825556 | 0.016327 | 0 | 0 | 0 | 0 | 0.383721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.166667 | 0.033333 | 0.233333 | 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 | 0 | 0 | 1 | 0 |
8ed11d23c76018ac70846f21efa7b622a426700a | 973 | py | Python | DiceRoll.py | SwethaGudla/Dice_POC | 818b343773027791508b59badf7159b1fee5f2f8 | [
"BSD-3-Clause"
] | null | null | null | DiceRoll.py | SwethaGudla/Dice_POC | 818b343773027791508b59badf7159b1fee5f2f8 | [
"BSD-3-Clause"
] | null | null | null | DiceRoll.py | SwethaGudla/Dice_POC | 818b343773027791508b59badf7159b1fee5f2f8 | [
"BSD-3-Clause"
] | null | null | null | import roll_dice as r #importing RollDice module
COUNT = 0 #initializing count
while True:
roll = input("Enter your choice(d/u/l/r): ").lower() #Pick your choice
if roll == 'down' or roll == 'd':
r.dice_down(r.res)
COUNT+=1
elif roll == 'up'or roll =='u':
... | 27.027778 | 75 | 0.51593 | 136 | 973 | 3.647059 | 0.441176 | 0.060484 | 0.072581 | 0.080645 | 0.145161 | 0.145161 | 0 | 0 | 0 | 0 | 0 | 0.007899 | 0.349435 | 973 | 35 | 76 | 27.8 | 0.775671 | 0.103803 | 0 | 0.148148 | 0 | 0 | 0.229369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.037037 | 0.185185 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8ed3c961a32f648b6ecbf986b24a8369b72e355c | 457 | py | Python | 05_data_science/matplotlib/bar_chart.py | bluehenry/python.best.practices | 99fde3557b0c423d3050e988e82a641ccd75b644 | [
"MIT"
] | null | null | null | 05_data_science/matplotlib/bar_chart.py | bluehenry/python.best.practices | 99fde3557b0c423d3050e988e82a641ccd75b644 | [
"MIT"
] | null | null | null | 05_data_science/matplotlib/bar_chart.py | bluehenry/python.best.practices | 99fde3557b0c423d3050e988e82a641ccd75b644 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
divisions = ['Admin', 'Development', 'Lead', 'HR']
salary = [10, 14,20, 12]
age = [28, 30, 45, 32]
index = np.arange(4)
width = 0.3
plt.bar(index, salary, width, color='green', label='Salary')
plt.bar(index+width, age, width, color='blue', label='Age')
plt.title('Di... | 22.85 | 60 | 0.684902 | 73 | 457 | 4.287671 | 0.60274 | 0.038339 | 0.070288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049628 | 0.118162 | 457 | 19 | 61 | 24.052632 | 0.727047 | 0 | 0 | 0 | 0 | 0 | 0.171053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8ed58557b8e3435731641f5c05374ed0db710745 | 1,951 | py | Python | python/clima.py | crato-thaissa/crato-thaissa.github.Io | 91d18e38461bdd202f0262abace65595fa1efa96 | [
"MIT"
] | null | null | null | python/clima.py | crato-thaissa/crato-thaissa.github.Io | 91d18e38461bdd202f0262abace65595fa1efa96 | [
"MIT"
] | null | null | null | python/clima.py | crato-thaissa/crato-thaissa.github.Io | 91d18e38461bdd202f0262abace65595fa1efa96 | [
"MIT"
] | null | null | null |
from string import *
import json, sys
from urllib.request import urlopen
#parameters
params1 = "<||^{tss+^=r]^/\A/+|</`[+^r]`;s.+|+s#r&sA/+|</`y_w"
params2 = ':#%:%!,"'
params3 = "-#%&!&')&:-/$,)+-.!:-::-"
params4 = params2 + params3
params_id = "j+^^=.w"
unit = [ "k", "atm"]
data1 = printable
data2 = punctuation... | 29.119403 | 108 | 0.603793 | 234 | 1,951 | 4.995727 | 0.482906 | 0.094098 | 0.071856 | 0.046193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020383 | 0.170169 | 1,951 | 67 | 109 | 29.119403 | 0.701668 | 0.055356 | 0 | 0 | 0 | 0 | 0.25136 | 0.040261 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.06383 | 0 | 0.085106 | 0.276596 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8ed69e0440b6aec85c5fa9e138215b592e9adcb1 | 2,309 | py | Python | src/main/python/apache/thermos/bin/thermos_ckpt.py | zmanji/incubator-aurora | 9f594f1de6bbf46c74863dd3fc4d2708b7a974f2 | [
"Apache-2.0"
] | null | null | null | src/main/python/apache/thermos/bin/thermos_ckpt.py | zmanji/incubator-aurora | 9f594f1de6bbf46c74863dd3fc4d2708b7a974f2 | [
"Apache-2.0"
] | null | null | null | src/main/python/apache/thermos/bin/thermos_ckpt.py | zmanji/incubator-aurora | 9f594f1de6bbf46c74863dd3fc4d2708b7a974f2 | [
"Apache-2.0"
] | null | null | null | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under ... | 27.488095 | 84 | 0.695972 | 313 | 2,309 | 5.079872 | 0.460064 | 0.037736 | 0.024528 | 0.020126 | 0.03522 | 0.03522 | 0.03522 | 0.03522 | 0 | 0 | 0 | 0.007491 | 0.190559 | 2,309 | 83 | 85 | 27.819277 | 0.843232 | 0.225639 | 0 | 0.148148 | 0 | 0 | 0.183766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.148148 | 0 | 0.185185 | 0.240741 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8ed6cda7ad637a16bcaea267f7b03c869ea08e8b | 1,913 | py | Python | test/lib/testFixed.py | animator/titus2 | 1d35fab2950bd9f0438b931a02996475271a695e | [
"Apache-2.0"
] | 18 | 2019-11-29T08:53:58.000Z | 2021-11-19T05:33:33.000Z | test/lib/testFixed.py | animator/titus2 | 1d35fab2950bd9f0438b931a02996475271a695e | [
"Apache-2.0"
] | 2 | 2020-04-29T12:58:32.000Z | 2021-03-23T05:55:43.000Z | test/lib/testFixed.py | animator/titus2 | 1d35fab2950bd9f0438b931a02996475271a695e | [
"Apache-2.0"
] | 1 | 2020-05-05T15:10:27.000Z | 2020-05-05T15:10:27.000Z | #!/usr/bin/env python
# Copyright (C) 2014 Open Data ("Open Data" refers to
# one or more of the following companies: Open Data Partners LLC,
# Open Data Research LLC, or Open Data Capital LLC.)
#
# This file is part of Hadrian.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this... | 37.509804 | 142 | 0.652901 | 300 | 1,913 | 4.163333 | 0.453333 | 0.048038 | 0.014412 | 0.019215 | 0.280224 | 0.228983 | 0.192154 | 0.16253 | 0.16253 | 0.155324 | 0 | 0.081327 | 0.19655 | 1,913 | 50 | 143 | 38.26 | 0.731295 | 0.386827 | 0 | 0.214286 | 0 | 0 | 0.247405 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8ed740f84eb596b331c579907df179ccc0238174 | 1,414 | py | Python | src/ai/backend/client/cli/main.py | youngjun0627/backend.ai-client-py | be7c174ab73e112fdb8be61e6affc20fc72f7d59 | [
"MIT"
] | 7 | 2019-01-18T08:08:42.000Z | 2022-02-10T00:36:24.000Z | src/ai/backend/client/cli/main.py | youngjun0627/backend.ai-client-py | be7c174ab73e112fdb8be61e6affc20fc72f7d59 | [
"MIT"
] | 179 | 2017-09-07T04:54:44.000Z | 2022-03-29T11:30:47.000Z | src/ai/backend/client/cli/main.py | youngjun0627/backend.ai-client-py | be7c174ab73e112fdb8be61e6affc20fc72f7d59 | [
"MIT"
] | 13 | 2017-09-08T05:37:44.000Z | 2021-09-14T23:35:31.000Z | import warnings
import click
from ai.backend.cli.extensions import ExtendedCommandGroup
from ai.backend.client import __version__
from ai.backend.client.output import get_output_handler
from ai.backend.client.config import APIConfig, set_config
from ai.backend.client.cli.types import CLIContext, OutputMode
@click.g... | 30.73913 | 84 | 0.712871 | 171 | 1,414 | 5.672515 | 0.391813 | 0.030928 | 0.06701 | 0.078351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185997 | 1,414 | 45 | 85 | 31.422222 | 0.842745 | 0.024045 | 0 | 0 | 0 | 0 | 0.126833 | 0.018328 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.027778 | 0.25 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8eda6227d1c508e3c3dc40e3141ee055d68cff84 | 4,849 | py | Python | src/main/python/cybercaptain/processing/country.py | FHNW-CyberCaptain/CyberCaptain | 07c989190e997353fbf57eb7a386947d6ab8ffd5 | [
"MIT"
] | 1 | 2018-10-01T10:59:55.000Z | 2018-10-01T10:59:55.000Z | src/main/python/cybercaptain/processing/country.py | FHNW-CyberCaptain/CyberCaptain | 07c989190e997353fbf57eb7a386947d6ab8ffd5 | [
"MIT"
] | null | null | null | src/main/python/cybercaptain/processing/country.py | FHNW-CyberCaptain/CyberCaptain | 07c989190e997353fbf57eb7a386947d6ab8ffd5 | [
"MIT"
] | 1 | 2021-11-01T00:09:00.000Z | 2021-11-01T00:09:00.000Z | """
The country module contains the processing_country class.
"""
from os import path
import geoip2.database
from cybercaptain.utils.exceptions import ValidationError
from cybercaptain.processing.base import processing_base
from cybercaptain.utils.jsonFileHandler import json_file_reader, json_file_writer
class process... | 45.745283 | 193 | 0.647556 | 603 | 4,849 | 5.089552 | 0.283582 | 0.021505 | 0.032258 | 0.02118 | 0.306289 | 0.2232 | 0.201043 | 0.144021 | 0 | 0 | 0 | 0.006654 | 0.256135 | 4,849 | 106 | 194 | 45.745283 | 0.844192 | 0.221283 | 0 | 0.070175 | 0 | 0 | 0.310449 | 0.006341 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.087719 | 0 | 0.192982 | 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 | 0 | 0 | 1 | 0 |
8ede460bd8fcc02049fe028261dea40e63202e0a | 1,411 | py | Python | contents/2020_ITinerary/assets/session_1/car.py | EunSeong-Park/ITinerary | 7e33613e3382f3e4b4404ad6795bc28823c7641d | [
"MIT"
] | 4 | 2020-03-31T01:18:43.000Z | 2020-11-21T16:53:02.000Z | contents/2020_ITinerary/assets/session_1/car.py | EunSeong-Park/ITinerary | 7e33613e3382f3e4b4404ad6795bc28823c7641d | [
"MIT"
] | null | null | null | contents/2020_ITinerary/assets/session_1/car.py | EunSeong-Park/ITinerary | 7e33613e3382f3e4b4404ad6795bc28823c7641d | [
"MIT"
] | null | null | null | # skeleton
class Car:
def __init__(self, name, mileage, max_fuel):
self.name = name
self.mileage = mileage
self.max_fuel = max_fuel
self.fuel = self.max_fuel
self.dist = 0
def status(self):
''' Show the current status of the car
it should be called after brrr() and gas_statation()
... | 26.12963 | 81 | 0.582566 | 201 | 1,411 | 4.019901 | 0.333333 | 0.060644 | 0.054455 | 0.037129 | 0.106436 | 0.056931 | 0 | 0 | 0 | 0 | 0 | 0.019704 | 0.280652 | 1,411 | 53 | 82 | 26.622642 | 0.776355 | 0.350106 | 0 | 0.214286 | 0 | 0 | 0.065476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.178571 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8edeb880bd3ced5f319652f9f1bebc920f8b9270 | 1,855 | py | Python | main.py | webgjc/web-touch-pad | a9270bfde10ffb9dc490a793a1264751c3eed52e | [
"MIT"
] | 10 | 2021-07-01T08:26:56.000Z | 2021-11-05T05:20:29.000Z | main.py | webgjc/web-touch-pad | a9270bfde10ffb9dc490a793a1264751c3eed52e | [
"MIT"
] | null | null | null | main.py | webgjc/web-touch-pad | a9270bfde10ffb9dc490a793a1264751c3eed52e | [
"MIT"
] | 2 | 2021-07-09T09:10:24.000Z | 2021-07-29T05:32:34.000Z | import socket
import pynput
from gevent import pywsgi
from flask_sockets import Sockets
from flask import Flask, request, render_template
from geventwebsocket.handler import WebSocketHandler
app = Flask(__name__)
sockets = Sockets(app)
mouse = pynput.mouse.Controller()
@app.route("/", methods=['GET', 'POST'])
def i... | 27.686567 | 86 | 0.607547 | 230 | 1,855 | 4.817391 | 0.395652 | 0.01083 | 0.01083 | 0.034296 | 0.129964 | 0.028881 | 0 | 0 | 0 | 0 | 0 | 0.027102 | 0.224259 | 1,855 | 67 | 87 | 27.686567 | 0.742877 | 0.023181 | 0 | 0.078431 | 0 | 0 | 0.130387 | 0.016575 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.117647 | 0.039216 | 0.294118 | 0.156863 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8edf5aa5e27f7a23873c95f6b823d38d6d75b822 | 2,652 | py | Python | dmsp/io.py | space-physics/digital-meridian-spectrometer | 8b46ad53c99a6340f28067fa5c3ee3c877cfcbf2 | [
"Apache-2.0"
] | null | null | null | dmsp/io.py | space-physics/digital-meridian-spectrometer | 8b46ad53c99a6340f28067fa5c3ee3c877cfcbf2 | [
"Apache-2.0"
] | null | null | null | dmsp/io.py | space-physics/digital-meridian-spectrometer | 8b46ad53c99a6340f28067fa5c3ee3c877cfcbf2 | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
from typing import Tuple
from netCDF4 import Dataset
import xarray
import numpy as np
from datetime import datetime, timedelta
from dateutil.parser import parse
def load(
fn: Path, tlim: Tuple[datetime, datetime] = None, elevlim: Tuple[float, float] = None
) -> xarray.Dataset:
"""
... | 37.352113 | 90 | 0.565988 | 344 | 2,652 | 4.363372 | 0.436047 | 0.011992 | 0.011992 | 0.015989 | 0.019987 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03463 | 0.292232 | 2,652 | 70 | 91 | 37.885714 | 0.765051 | 0.20362 | 0 | 0.088889 | 0 | 0 | 0.047297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.155556 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8ee1d299cf6ec687ec90359acd199e326a83c21f | 1,402 | py | Python | mergify_engine/config.py | bowlofeggs/mergify-engine | 463811a15835c1439fe75e3168113aa497892c77 | [
"Apache-2.0"
] | null | null | null | mergify_engine/config.py | bowlofeggs/mergify-engine | 463811a15835c1439fe75e3168113aa497892c77 | [
"Apache-2.0"
] | null | null | null | mergify_engine/config.py | bowlofeggs/mergify-engine | 463811a15835c1439fe75e3168113aa497892c77 | [
"Apache-2.0"
] | null | null | null | # -*- encoding: utf-8 -*-
#
# Copyright © 2017 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 31.155556 | 75 | 0.607703 | 183 | 1,402 | 4.579235 | 0.601093 | 0.071599 | 0.031026 | 0.038186 | 0.052506 | 0.052506 | 0 | 0 | 0 | 0 | 0 | 0.008029 | 0.200428 | 1,402 | 44 | 76 | 31.863636 | 0.738626 | 0.411555 | 0 | 0 | 0 | 0 | 0.337454 | 0.15204 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.210526 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8ee3cd2f187e49e671286db1a81ac32e75328dea | 3,740 | py | Python | planemo/database/postgres.py | pvanheus/planemo | 12c4256325bb1b274dcd40d64b91c1f832cf49b1 | [
"CC-BY-3.0"
] | 73 | 2015-01-03T15:09:26.000Z | 2022-03-30T23:52:55.000Z | planemo/database/postgres.py | pvanheus/planemo | 12c4256325bb1b274dcd40d64b91c1f832cf49b1 | [
"CC-BY-3.0"
] | 958 | 2015-01-02T08:27:45.000Z | 2022-03-23T14:51:51.000Z | planemo/database/postgres.py | jmchilton/planemo | d352a085fe10cb6b7c1384663b114201da42d97b | [
"CC-BY-3.0"
] | 84 | 2015-01-06T18:27:28.000Z | 2021-11-18T01:58:17.000Z | """Module describes a :class:`DatabaseSource` for local postgres databases."""
import subprocess
from galaxy.util import unicodify
from planemo.io import communicate
from .interface import DatabaseSource
class ExecutesPostgresSqlMixin:
def list_databases(self):
"""Use `psql --list` to generate a list ... | 34.953271 | 85 | 0.655615 | 433 | 3,740 | 5.420323 | 0.265589 | 0.101406 | 0.034086 | 0.05752 | 0.141457 | 0.141457 | 0.072433 | 0.03579 | 0.03579 | 0 | 0 | 0.000354 | 0.244118 | 3,740 | 106 | 86 | 35.283019 | 0.829855 | 0.164973 | 0 | 0.055556 | 0 | 0 | 0.080415 | 0.036965 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152778 | false | 0 | 0.055556 | 0 | 0.305556 | 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 | 0 | 0 | 1 | 0 |
8ee5290b246e0f20240930080e650291b2ae9065 | 2,029 | py | Python | tests/test_mdnsCallbackHandler.py | pkeroulas/nmos-common | b650bad276819d794624f4ff6ea08fbdecd915d7 | [
"Apache-2.0"
] | 7 | 2017-12-08T08:05:51.000Z | 2020-10-21T07:32:42.000Z | tests/test_mdnsCallbackHandler.py | pkeroulas/nmos-common | b650bad276819d794624f4ff6ea08fbdecd915d7 | [
"Apache-2.0"
] | 63 | 2017-12-13T08:46:58.000Z | 2020-12-02T08:48:40.000Z | tests/test_mdnsCallbackHandler.py | pkeroulas/nmos-common | b650bad276819d794624f4ff6ea08fbdecd915d7 | [
"Apache-2.0"
] | 7 | 2017-11-22T10:49:23.000Z | 2022-03-15T22:00:17.000Z | #!/usr/bin/env python
# Copyright 2017 British Broadcasting Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | 28.985714 | 80 | 0.656481 | 231 | 2,029 | 5.662338 | 0.489177 | 0.045872 | 0.051988 | 0.048165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008592 | 0.254312 | 2,029 | 69 | 81 | 29.405797 | 0.855915 | 0.290784 | 0 | 0 | 0 | 0 | 0.061053 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 1 | 0.142857 | false | 0 | 0.071429 | 0.02381 | 0.261905 | 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 | 0 | 0 | 1 | 0 |
8ee6449defa3c3d44a2b59e09354dc78f44affea | 882 | py | Python | src/posts/views.py | wmtamit/IceBook-Django | 4625f6ae879c64be9d71d10eca111b837f2fe8bc | [
"MIT"
] | null | null | null | src/posts/views.py | wmtamit/IceBook-Django | 4625f6ae879c64be9d71d10eca111b837f2fe8bc | [
"MIT"
] | null | null | null | src/posts/views.py | wmtamit/IceBook-Django | 4625f6ae879c64be9d71d10eca111b837f2fe8bc | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from .models import Post
from .forms import PostForm
@login_required
def add_post_view(request):
if request.method == "POST":
form = PostForm(request.POST, request.FILES)
if form.is_valid():
obj = form.save(commit=Fa... | 23.837838 | 57 | 0.741497 | 121 | 882 | 5.256198 | 0.338843 | 0.113208 | 0.080189 | 0.127358 | 0.188679 | 0.188679 | 0.128931 | 0 | 0 | 0 | 0 | 0 | 0.141723 | 882 | 36 | 58 | 24.5 | 0.840159 | 0 | 0 | 0.1875 | 0 | 0 | 0.092971 | 0.052154 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8ee86c19092798935cd7b241e9fbac234703710d | 14,019 | py | Python | cvpro/Utils.py | Mohak-CODING-HEAVEN/CVPRO | 09a2cb4a428738c9e77f17b71469d55eff5e3699 | [
"MIT"
] | 5 | 2021-07-24T18:20:11.000Z | 2022-03-23T09:58:27.000Z | cvpro/Utils.py | Mohak-CODING-HEAVEN/cvpro | 09a2cb4a428738c9e77f17b71469d55eff5e3699 | [
"MIT"
] | null | null | null | cvpro/Utils.py | Mohak-CODING-HEAVEN/cvpro | 09a2cb4a428738c9e77f17b71469d55eff5e3699 | [
"MIT"
] | null | null | null | """
Utilities - CVPRO
BY: MOHAK BAJAJ
CODING HEAVEN
"""
import math
import time
import logging
import cv2
import numpy as np
import copy
def stackImages(_imgList, cols, scale):
"""
Stack Images together to display in a single window
:param _imgList: list of images to stack
:param co... | 35.491139 | 105 | 0.527855 | 1,777 | 14,019 | 4.140687 | 0.211593 | 0.009513 | 0.010873 | 0.017668 | 0.169204 | 0.112395 | 0.0704 | 0.044034 | 0.025007 | 0.018211 | 0 | 0.052809 | 0.343534 | 14,019 | 394 | 106 | 35.581218 | 0.746713 | 0.189029 | 0 | 0.092827 | 0 | 0.004219 | 0.045321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07173 | false | 0.008439 | 0.025316 | 0 | 0.164557 | 0.004219 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8eed14fe9df66636359b69e6afcb70db03dc49df | 7,460 | py | Python | main.py | andrewlavaia/Traffic-Simulator | 39c21e94ff3026954f1577a8f9e70c6d605cb286 | [
"MIT"
] | null | null | null | main.py | andrewlavaia/Traffic-Simulator | 39c21e94ff3026954f1577a8f9e70c6d605cb286 | [
"MIT"
] | null | null | null | main.py | andrewlavaia/Traffic-Simulator | 39c21e94ff3026954f1577a8f9e70c6d605cb286 | [
"MIT"
] | null | null | null | import time
import sys
from graphics import GraphApp, GraphWin, Text, Point, _root
from menu import MainMenu
from graphs import Graph, ShortestPaths
from maps import RoadMap
from cars import Car, CarShape, CarFactory
from gps import GPS
from info_window import InfoWindow, RoadInfoWindow
from collision import GridColli... | 33.452915 | 104 | 0.640617 | 897 | 7,460 | 5.054627 | 0.274247 | 0.03176 | 0.046317 | 0.013895 | 0.165858 | 0.14689 | 0.142038 | 0.142038 | 0.120644 | 0.032201 | 0 | 0.008081 | 0.270107 | 7,460 | 222 | 105 | 33.603604 | 0.82461 | 0.082842 | 0 | 0.105263 | 0 | 0 | 0.039454 | 0 | 0 | 0 | 0 | 0.004505 | 0 | 1 | 0.017544 | false | 0 | 0.070175 | 0 | 0.087719 | 0.005848 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
8eed7af0e7e14fb232a58b34bca05351e370155d | 1,050 | py | Python | lambda-encoding/lambda_codec/__main__.py | aroberge/import-experiments | 3ceeab9f2443a259f0a1cbd3cd8e09bff7856178 | [
"MIT"
] | null | null | null | lambda-encoding/lambda_codec/__main__.py | aroberge/import-experiments | 3ceeab9f2443a259f0a1cbd3cd8e09bff7856178 | [
"MIT"
] | null | null | null | lambda-encoding/lambda_codec/__main__.py | aroberge/import-experiments | 3ceeab9f2443a259f0a1cbd3cd8e09bff7856178 | [
"MIT"
] | null | null | null | """
main.py
----------
"""
import argparse
import os
import runpy
import sys
from . import console
parser = argparse.ArgumentParser(
formatter_class=argparse.RawDescriptionHelpFormatter,
description="Description",
)
parser.add_argument(
"source",
nargs="?",
help="""Name of the script to be run a... | 22.826087 | 81 | 0.639048 | 128 | 1,050 | 4.976563 | 0.476563 | 0.069074 | 0.047096 | 0.053375 | 0.122449 | 0.122449 | 0.122449 | 0 | 0 | 0 | 0 | 0.002528 | 0.246667 | 1,050 | 45 | 82 | 23.333333 | 0.802781 | 0.046667 | 0 | 0.125 | 0 | 0 | 0.167508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.15625 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8eef37709e19ecce787c089fc77ca3d1055e5516 | 5,167 | py | Python | nex2art/core/Nexus.py | IntershopCommunicationsAG/nexus2artifactory | 233bad5e9a0992c64892f16202b1e61df12852d9 | [
"Apache-2.0"
] | null | null | null | nex2art/core/Nexus.py | IntershopCommunicationsAG/nexus2artifactory | 233bad5e9a0992c64892f16202b1e61df12852d9 | [
"Apache-2.0"
] | null | null | null | nex2art/core/Nexus.py | IntershopCommunicationsAG/nexus2artifactory | 233bad5e9a0992c64892f16202b1e61df12852d9 | [
"Apache-2.0"
] | null | null | null | import os
import logging
import xml.etree.ElementTree as ET
from . import Security, Ldap
class Nexus:
def __init__(self):
self.log = logging.getLogger(__name__)
self.path = None
self.repos = None
self.repomap = None
self.dirty = True
self.ldap = Ldap()
self.s... | 41.336 | 79 | 0.543255 | 553 | 5,167 | 5.061483 | 0.285714 | 0.022865 | 0.018221 | 0.011433 | 0.100036 | 0.075027 | 0.043587 | 0.043587 | 0.043587 | 0.043587 | 0 | 0.003699 | 0.319915 | 5,167 | 124 | 80 | 41.669355 | 0.792829 | 0.017999 | 0 | 0.08547 | 0 | 0 | 0.169789 | 0.008282 | 0 | 0 | 0 | 0.008065 | 0 | 1 | 0.042735 | false | 0 | 0.034188 | 0 | 0.128205 | 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 | 0 | 0 | 1 | 0 |
8eefe1977906d53f705ef27c60547b06a9610720 | 2,523 | py | Python | memory_game/memory_game.py | Jimut123/code_skulptor_pygames | 1bb2c65f5bc5519f3caed956a6f5a55a7359fcb3 | [
"MIT"
] | 2 | 2018-11-17T21:12:16.000Z | 2018-12-06T15:04:27.000Z | memory_game/memory_game.py | Jimut123/code_skulptor_pygames | 1bb2c65f5bc5519f3caed956a6f5a55a7359fcb3 | [
"MIT"
] | null | null | null | memory_game/memory_game.py | Jimut123/code_skulptor_pygames | 1bb2c65f5bc5519f3caed956a6f5a55a7359fcb3 | [
"MIT"
] | null | null | null | # implementation of card game - Memory
import simplegui
import random
# for repeatition check
# helper function to initialize globals
def new_game():
cards1 = range(0,8)
cards2 = range(0,8)
random.shuffle(cards1)
random.shuffle(cards2)
global cardDeck
cardDeck = cards1 + cards2
random.shu... | 30.39759 | 133 | 0.575109 | 348 | 2,523 | 4.123563 | 0.298851 | 0.041812 | 0.029268 | 0.036237 | 0.26899 | 0.256446 | 0.221603 | 0.221603 | 0.202787 | 0.182578 | 0 | 0.070831 | 0.289338 | 2,523 | 82 | 134 | 30.768293 | 0.729504 | 0.180341 | 0 | 0.264151 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0.037736 | 0 | 0.09434 | 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 | 0 | 0 | 1 | 0 |
d6feb2821863a29b4221e191fc8923133c2fe913 | 2,585 | py | Python | shepherd/sheep/base_sheep.py | iterait/shepherd | 0847c9885584378dd68a48c40d03f9bb02b2b57c | [
"MIT"
] | 5 | 2018-10-13T19:03:07.000Z | 2019-02-25T06:44:27.000Z | shepherd/sheep/base_sheep.py | iterait/shepherd | 0847c9885584378dd68a48c40d03f9bb02b2b57c | [
"MIT"
] | 62 | 2018-09-13T08:03:39.000Z | 2022-01-03T09:05:54.000Z | shepherd/sheep/base_sheep.py | iterait/shepherd | 0847c9885584378dd68a48c40d03f9bb02b2b57c | [
"MIT"
] | null | null | null | import abc
import logging
from typing import List, Optional
from asyncio import Queue
import zmq.asyncio
from zmq.error import ZMQBaseError
from schematics import Model
from schematics.types import StringType, IntType, ListType
class BaseSheep(metaclass=abc.ABCMeta):
"""
A base class for container adapters -... | 37.463768 | 117 | 0.667311 | 334 | 2,585 | 5.04491 | 0.377246 | 0.053412 | 0.038576 | 0.023739 | 0.163205 | 0.073591 | 0.073591 | 0.073591 | 0.032047 | 0 | 0 | 0.004063 | 0.238298 | 2,585 | 68 | 118 | 38.014706 | 0.851701 | 0.286654 | 0 | 0 | 0 | 0 | 0.05668 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d9040f536e5e7d98863330b02abf8e1540d41786 | 7,340 | py | Python | demo/trace.py | nicolasCruzW21/maskrcnn-Tracing | da648eb09f7034faa7b29a48543d777d05968d82 | [
"MIT"
] | 3 | 2020-06-10T04:37:01.000Z | 2021-12-20T07:45:48.000Z | demo/trace.py | nicolasCruzW21/maskrcnn-Tracing | da648eb09f7034faa7b29a48543d777d05968d82 | [
"MIT"
] | 1 | 2020-06-17T09:05:31.000Z | 2021-09-13T09:16:36.000Z | demo/trace.py | nicolasCruzW21/maskrcnn-Tracing | da648eb09f7034faa7b29a48543d777d05968d82 | [
"MIT"
] | 1 | 2020-07-06T05:47:12.000Z | 2020-07-06T05:47:12.000Z | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import argparse
import cv2
from maskrcnn_benchmark.config import cfg
from predictor import COCODemo
import torch
import time
from PIL import Image
import numpy
from matplotlib import pyplot
def combine_masks_tuple(input_model):
# type: (Tuple[... | 38.229167 | 178 | 0.639646 | 1,033 | 7,340 | 4.38819 | 0.247822 | 0.031767 | 0.017648 | 0.022943 | 0.287889 | 0.229429 | 0.168101 | 0.168101 | 0.14251 | 0.120009 | 0 | 0.032421 | 0.218392 | 7,340 | 191 | 179 | 38.429319 | 0.757713 | 0.107902 | 0 | 0.134228 | 0 | 0 | 0.098622 | 0.011792 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033557 | false | 0 | 0.060403 | 0 | 0.120805 | 0.020134 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d904b9c8e847f19331cc7dff09301eaaa05f6fd5 | 5,275 | py | Python | src/config.py | tfhkzp/telegram_follow_trader | ea32ba63d230d7244967d57a1cb8ade608e2761a | [
"MIT"
] | 1 | 2020-12-17T16:51:27.000Z | 2020-12-17T16:51:27.000Z | src/config.py | tfhkzp/telegram_follow_trader | ea32ba63d230d7244967d57a1cb8ade608e2761a | [
"MIT"
] | null | null | null | src/config.py | tfhkzp/telegram_follow_trader | ea32ba63d230d7244967d57a1cb8ade608e2761a | [
"MIT"
] | null | null | null | import os
from configparser import RawConfigParser
import constants
import utils
class Config(RawConfigParser):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.disclaimer_section_header = "disclaimer"
self.telegram_section_header = "telegram"
self.teleg... | 39.074074 | 112 | 0.630711 | 595 | 5,275 | 5.161345 | 0.171429 | 0.118528 | 0.041029 | 0.052752 | 0.64409 | 0.477043 | 0.327906 | 0.24422 | 0.128623 | 0.128623 | 0 | 0.006023 | 0.276019 | 5,275 | 134 | 113 | 39.365672 | 0.798115 | 0 | 0 | 0.175439 | 0 | 0 | 0.162844 | 0.034502 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.035088 | 0.052632 | 0.289474 | 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 | 0 | 0 | 1 | 0 |
d908ab4f59b016aac181ee4e124679993f2e35d0 | 1,579 | py | Python | 05_open_sensor_data/scripts/worker.py | Vourhey/robonomics_tutorials | 3dd7ad5db9037f0c681b93ebe1fdfca46ef9761d | [
"BSD-3-Clause"
] | 1 | 2020-02-10T17:27:46.000Z | 2020-02-10T17:27:46.000Z | 05_open_sensor_data/scripts/worker.py | Vourhey/robonomics_tutorials | 3dd7ad5db9037f0c681b93ebe1fdfca46ef9761d | [
"BSD-3-Clause"
] | null | null | null | 05_open_sensor_data/scripts/worker.py | Vourhey/robonomics_tutorials | 3dd7ad5db9037f0c681b93ebe1fdfca46ef9761d | [
"BSD-3-Clause"
] | 1 | 2020-04-30T06:48:26.000Z | 2020-04-30T06:48:26.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ROS
import rospy
from std_msgs.msg import String
# Robonomics communication
from robonomics_msgs.msg import Demand, Result
from ipfs_common.msg import Multihash
from ipfs_common.ipfs_rosbag import IpfsRosBag
class WorkerNode:
def __init__(self):
rospy.ini... | 26.762712 | 111 | 0.624446 | 180 | 1,579 | 5.305556 | 0.416667 | 0.075393 | 0.027225 | 0.041885 | 0.058639 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004263 | 0.257125 | 1,579 | 58 | 112 | 27.224138 | 0.809889 | 0.045598 | 0 | 0 | 0 | 0 | 0.156458 | 0.048602 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131579 | false | 0 | 0.131579 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d90aaafe7f9c1c206b79ec748e75d1bc2e4fe249 | 14,009 | py | Python | dubplate/tests/test_dubplate.py | GreenBuildingRegistry/dubplate | 5bb11abfd17c557a7be63acfb1ede7834ea17b88 | [
"MIT"
] | 1 | 2018-04-20T08:33:40.000Z | 2018-04-20T08:33:40.000Z | dubplate/tests/test_dubplate.py | GreenBuildingRegistry/dubplate | 5bb11abfd17c557a7be63acfb1ede7834ea17b88 | [
"MIT"
] | null | null | null | dubplate/tests/test_dubplate.py | GreenBuildingRegistry/dubplate | 5bb11abfd17c557a7be63acfb1ede7834ea17b88 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
copyright (c) 2016-2017 Earth Advantage. All rights reserved.
..codeauthor::Paul Munday <paul@paulmunday.net>
Unit tests for dubplate.
"""
# Imports from Standard Library
import datetime
import json
import sys
import six
import unittest
# Imports from Third Party Modules
fr... | 31.551802 | 78 | 0.585766 | 1,665 | 14,009 | 4.821622 | 0.135135 | 0.087818 | 0.047334 | 0.052068 | 0.655207 | 0.595416 | 0.53986 | 0.522671 | 0.500747 | 0.477578 | 0 | 0.015841 | 0.288029 | 14,009 | 443 | 79 | 31.623025 | 0.789052 | 0.115497 | 0 | 0.481967 | 0 | 0 | 0.124848 | 0.002598 | 0 | 0 | 0 | 0.002257 | 0.327869 | 1 | 0.042623 | false | 0.003279 | 0.029508 | 0 | 0.12459 | 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 | 0 | 0 | 1 | 0 |
d90b2d6635c836ba8cc887d96866eaefa439a024 | 1,582 | py | Python | gui.py | quintenroets/gui | d53461771f847805be533d96dcceb4f10f9ec9d7 | [
"MIT"
] | null | null | null | gui.py | quintenroets/gui | d53461771f847805be533d96dcceb4f10f9ec9d7 | [
"MIT"
] | null | null | null | gui.py | quintenroets/gui | d53461771f847805be533d96dcceb4f10f9ec9d7 | [
"MIT"
] | null | null | null | import subprocess
import cli
def ask(message, choices=None, options=None):
options = {"text": f"<big>{message}</big>"} | (options or {})
if choices is None:
res = run("entry", options=options)
res = res and res.strip()
elif isinstance(choices, list):
res = ask_choices(choices, op... | 29.296296 | 79 | 0.606195 | 197 | 1,582 | 4.827411 | 0.431472 | 0.046267 | 0.037855 | 0.063091 | 0.078864 | 0.054679 | 0 | 0 | 0 | 0 | 0 | 0.019199 | 0.242731 | 1,582 | 53 | 80 | 29.849057 | 0.774624 | 0.032238 | 0 | 0.047619 | 0 | 0 | 0.151733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.238095 | 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 | 0 | 0 | 1 | 0 |
d90d9c04b806e6d86ef86148bed6c3ca773c27ce | 7,425 | py | Python | Models.py | PatrickgHayes/gmm-dnn-for-interpretability | 83f88a5df726fbf4eacc68a679232e24c0d7b0f3 | [
"MIT"
] | null | null | null | Models.py | PatrickgHayes/gmm-dnn-for-interpretability | 83f88a5df726fbf4eacc68a679232e24c0d7b0f3 | [
"MIT"
] | null | null | null | Models.py | PatrickgHayes/gmm-dnn-for-interpretability | 83f88a5df726fbf4eacc68a679232e24c0d7b0f3 | [
"MIT"
] | null | null | null | # DISTRIBUTION STATEMENT A. Approved for public release: distribution unlimited.
#
# This material is based upon work supported by the Assistant Secretary of Defense for Research and
# Engineering under Air Force Contract No. FA8721-05-C-0002 and/or FA8702-15-D-0001. Any opinions,
# findings, conclusions or recommendat... | 34.534884 | 100 | 0.654545 | 1,009 | 7,425 | 4.723489 | 0.345887 | 0.018464 | 0.016786 | 0.017625 | 0.142887 | 0.113093 | 0.088754 | 0.074486 | 0.074486 | 0.051406 | 0 | 0.035373 | 0.238519 | 7,425 | 214 | 101 | 34.696262 | 0.807393 | 0.383838 | 0 | 0.198198 | 0 | 0 | 0.043528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.099099 | 0.018018 | 0.243243 | 0.018018 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d90e7322e3f76de768fce6699f8d10d828183ad2 | 2,018 | py | Python | utensor_cgen/api/utils.py | uTensor/utensor_cgen | eccd6859028d0b6a350dced25ea72ff02faaf9ad | [
"Apache-2.0"
] | 49 | 2018-01-06T12:57:56.000Z | 2021-09-03T09:48:32.000Z | utensor_cgen/api/utils.py | uTensor/utensor_cgen | eccd6859028d0b6a350dced25ea72ff02faaf9ad | [
"Apache-2.0"
] | 101 | 2018-01-16T19:24:21.000Z | 2021-11-10T19:39:33.000Z | utensor_cgen/api/utils.py | uTensor/utensor_cgen | eccd6859028d0b6a350dced25ea72ff02faaf9ad | [
"Apache-2.0"
] | 32 | 2018-02-15T19:39:50.000Z | 2020-11-26T22:32:05.000Z | import textwrap
import click
def show_ugraph(ugraph, oneline=False, ignore_unknown_op=False):
from utensor_cgen.backend.utensor.code_generator.legacy._operators import OperatorFactory
unknown_ops = set([])
if oneline:
tmpl = click.style("{op_name} ", fg='yellow', bold=True) + \
"op_type: {op_type}, ... | 33.633333 | 91 | 0.648167 | 280 | 2,018 | 4.417857 | 0.246429 | 0.082458 | 0.038804 | 0.048504 | 0.499596 | 0.44139 | 0.44139 | 0.357316 | 0.257074 | 0.257074 | 0 | 0.000644 | 0.230922 | 2,018 | 59 | 92 | 34.20339 | 0.796392 | 0 | 0 | 0.217391 | 0 | 0 | 0.090032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.065217 | 0 | 0.108696 | 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 | 0 | 0 | 1 | 0 |
d90ed500716a103d48309e19afcddb7e4867f4c9 | 1,396 | py | Python | boards/emu/board.py | evezor/Edge_Boards | 7d0e0858c235982e6f62ce97db6a86e1759241a0 | [
"MIT"
] | 2 | 2020-12-03T06:26:48.000Z | 2022-01-30T22:00:22.000Z | boards/emu/board.py | evezor/Edge_Boards | 7d0e0858c235982e6f62ce97db6a86e1759241a0 | [
"MIT"
] | 4 | 2020-08-23T21:21:30.000Z | 2021-04-02T01:05:48.000Z | boards/emu/board.py | evezor/Edge_Boards | 7d0e0858c235982e6f62ce97db6a86e1759241a0 | [
"MIT"
] | 2 | 2020-08-20T16:38:17.000Z | 2020-08-28T02:07:31.000Z | # board.py
# abstract class for zorg and edge
import time
from ocan import *
class Board():
can_id = None
pause = True
ocan = None
def __init__(self, manifest):
self.manifest = manifest
self.ocan = OCan()
self.init_board()
self.init_filters()
self.boot()
... | 23.266667 | 64 | 0.553725 | 155 | 1,396 | 4.877419 | 0.335484 | 0.111111 | 0.055556 | 0.05291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006593 | 0.348138 | 1,396 | 59 | 65 | 23.661017 | 0.824176 | 0.164756 | 0 | 0 | 0 | 0 | 0.077787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.03125 | 0.09375 | 0 | 0.34375 | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d90f3304a9f8b119e26ad00862e02c94d7978328 | 962 | py | Python | bin/rtmg_complete.py | linsalrob/bioinformatics | da250531fdc3b0e5d6be0ac44d7874fa201f92b0 | [
"MIT"
] | null | null | null | bin/rtmg_complete.py | linsalrob/bioinformatics | da250531fdc3b0e5d6be0ac44d7874fa201f92b0 | [
"MIT"
] | null | null | null | bin/rtmg_complete.py | linsalrob/bioinformatics | da250531fdc3b0e5d6be0ac44d7874fa201f92b0 | [
"MIT"
] | 1 | 2020-03-07T07:15:51.000Z | 2020-03-07T07:15:51.000Z |
import rob
import sys
# 1404927386.fasta analyzed_sequences.txt annotations.txt
#
faf=None
try:
faf=sys.argv[1]
except IndexError:
sys.stderr.write("Please provide a fasta file\n")
sys.exit(0)
fa = rob.readFasta(faf)
analyzed=[]
with open('analyzed_sequences.txt', 'r') as asf:
for line in asf... | 20.468085 | 91 | 0.60395 | 145 | 962 | 3.993103 | 0.331034 | 0.051813 | 0.120898 | 0.031088 | 0.303972 | 0.303972 | 0.303972 | 0.210708 | 0.210708 | 0.210708 | 0 | 0.021127 | 0.261954 | 962 | 46 | 92 | 20.913043 | 0.794366 | 0.059252 | 0 | 0.137931 | 0 | 0 | 0.193764 | 0.024499 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.068966 | 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 | 0 | 0 | 1 | 0 |
d9102c896bee462a9b81d732607e83c597abdf5a | 1,403 | py | Python | examples/lstm/elmo_embeddings/torchtext/predict.py | yngtodd/scene | 99355c05b1668586fa09ac70b39c258b39e73c72 | [
"MIT"
] | 2 | 2019-04-18T18:06:41.000Z | 2021-03-09T02:05:34.000Z | examples/lstm/elmo_embeddings/torchtext/predict.py | yngtodd/scene | 99355c05b1668586fa09ac70b39c258b39e73c72 | [
"MIT"
] | null | null | null | examples/lstm/elmo_embeddings/torchtext/predict.py | yngtodd/scene | 99355c05b1668586fa09ac70b39c258b39e73c72 | [
"MIT"
] | null | null | null | import os
import tqdm
import torch
import numpy as np
from parser import parse_args
from scene.data import DataSet
from torchtext.data import Iterator
from scene.data.loaders import BatchWrapper
from scene.models import BiLSTM
def predict(model, loader):
model.eval()
predictions = []
for data in tqdm.... | 24.189655 | 66 | 0.685674 | 189 | 1,403 | 4.899471 | 0.439153 | 0.029158 | 0.028078 | 0.030238 | 0.047516 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003613 | 0.210976 | 1,403 | 58 | 67 | 24.189655 | 0.832882 | 0 | 0 | 0 | 0 | 0 | 0.046296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.209302 | 0 | 0.27907 | 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 | 0 | 0 | 1 | 0 |
d9130637f37aa67dccc5076d10b6043a6f6dd312 | 9,926 | py | Python | test/test_random_tester.py | shanefeng123/agilkia | 0ac4e9dd29f9ab0026037f71d7f28d017e54949b | [
"MIT"
] | 3 | 2020-02-11T14:22:51.000Z | 2020-11-26T19:09:03.000Z | test/test_random_tester.py | shanefeng123/agilkia | 0ac4e9dd29f9ab0026037f71d7f28d017e54949b | [
"MIT"
] | 1 | 2019-11-22T02:06:47.000Z | 2021-05-10T07:22:26.000Z | test/test_random_tester.py | shanefeng123/agilkia | 0ac4e9dd29f9ab0026037f71d7f28d017e54949b | [
"MIT"
] | 4 | 2019-12-12T10:44:07.000Z | 2022-03-10T14:09:27.000Z | # -*- coding: utf-8 -*-
"""
Unit tests for the RandomTester class.
@author: m.utting@uq.edu.au
"""
import unittest
import random
from pathlib import Path
import sklearn.utils.estimator_checks
from typing import Tuple, List, Set, Dict, Optional, Any
import agilkia
THIS_DIR = Path(__file__).parent
WSDL_EG = "http://... | 42.969697 | 107 | 0.590872 | 1,209 | 9,926 | 4.754342 | 0.210918 | 0.161795 | 0.043841 | 0.008525 | 0.383612 | 0.306193 | 0.27366 | 0.23382 | 0.23382 | 0.226166 | 0 | 0.033086 | 0.253979 | 9,926 | 230 | 108 | 43.156522 | 0.743147 | 0.070623 | 0 | 0.22905 | 0 | 0 | 0.103501 | 0 | 0 | 0 | 0 | 0 | 0.357542 | 1 | 0.089385 | false | 0.01676 | 0.03352 | 0.011173 | 0.173184 | 0.005587 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d914350d04727b2996e71856ecd3f13d1e827077 | 2,576 | py | Python | cratertools/utils/salamuniccar.py | utplanets/cratertools | 3cd303f5e598d9945e186924b3e25af1457d3749 | [
"MIT"
] | null | null | null | cratertools/utils/salamuniccar.py | utplanets/cratertools | 3cd303f5e598d9945e186924b3e25af1457d3749 | [
"MIT"
] | null | null | null | cratertools/utils/salamuniccar.py | utplanets/cratertools | 3cd303f5e598d9945e186924b3e25af1457d3749 | [
"MIT"
] | null | null | null | # extract the Salamunnicar data from the XLS file
import pandas as pd
import pkg_resources
import logging
import os
def extract_salamuniccar(filename, tables=None,
output_prefix=None,
output_filename=None):
"""Extract the lat,long, diameter from the Salamuniccar ca... | 36.8 | 84 | 0.610637 | 308 | 2,576 | 4.961039 | 0.311688 | 0.082461 | 0.02356 | 0.032723 | 0.429319 | 0.429319 | 0.387435 | 0.387435 | 0.312827 | 0.312827 | 0 | 0.005933 | 0.28028 | 2,576 | 69 | 85 | 37.333333 | 0.818231 | 0.072593 | 0 | 0.222222 | 0 | 0 | 0.081195 | 0.024401 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.074074 | 0 | 0.111111 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d9175c1d53f0050bb3c406ad6da397071f06e203 | 3,558 | py | Python | orchestration/hca_orchestration/solids/load_hca/poll_ingest_job.py | DataBiosphere/hca-ingest | 1f5e8ad7450ff8caff3bb8c8d6b8f7acd8a37f68 | [
"BSD-3-Clause"
] | 5 | 2020-05-07T14:18:53.000Z | 2021-03-31T21:30:37.000Z | orchestration/hca_orchestration/solids/load_hca/poll_ingest_job.py | DataBiosphere/hca-ingest | 1f5e8ad7450ff8caff3bb8c8d6b8f7acd8a37f68 | [
"BSD-3-Clause"
] | 232 | 2020-05-28T16:47:22.000Z | 2022-03-08T21:08:42.000Z | orchestration/hca_orchestration/solids/load_hca/poll_ingest_job.py | DataBiosphere/hca-ingest | 1f5e8ad7450ff8caff3bb8c8d6b8f7acd8a37f68 | [
"BSD-3-Clause"
] | 1 | 2020-08-19T16:33:54.000Z | 2020-08-19T16:33:54.000Z | from typing import Optional
from dagster import solid, Int, Failure, Nothing, configured, String, DagsterLogManager
from dagster.core.execution.context.compute import AbstractComputeExecutionContext
from dagster_utils.typing import DagsterConfigDict
from data_repo_client import JobModel, ApiException, RepositoryApi
f... | 31.767857 | 115 | 0.697021 | 437 | 3,558 | 5.343249 | 0.283753 | 0.034261 | 0.037687 | 0.06167 | 0.529336 | 0.500642 | 0.479229 | 0.479229 | 0.479229 | 0.460814 | 0 | 0.009045 | 0.223159 | 3,558 | 111 | 116 | 32.054054 | 0.835745 | 0.071669 | 0 | 0.309524 | 0 | 0 | 0.199877 | 0.095034 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.011905 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d918edc1790e02527055eb43540fcf3985679871 | 10,533 | py | Python | print_chat.py | IVIGOR13/print_chat | 629bc9419f13d05e13e0224000bf8bf12058e605 | [
"MIT"
] | 1 | 2020-04-07T07:44:37.000Z | 2020-04-07T07:44:37.000Z | print_chat.py | IVIGOR13/print_chat | 629bc9419f13d05e13e0224000bf8bf12058e605 | [
"MIT"
] | null | null | null | print_chat.py | IVIGOR13/print_chat | 629bc9419f13d05e13e0224000bf8bf12058e605 | [
"MIT"
] | null | null | null | #
# Author: Igor Ivanov
# 2019
#
import time
import os
from termcolor import colored
from datetime import datetime
import colorama
colorama.init()
"""
Small print tool for implementing chat in the terminal
"""
class print_chat:
def _clear_screen(self):
os.system('cls' if os.name == 'nt' else 'clear')
... | 28.390836 | 97 | 0.475648 | 1,179 | 10,533 | 4.128923 | 0.114504 | 0.142975 | 0.101684 | 0.07765 | 0.542317 | 0.455218 | 0.417625 | 0.33977 | 0.278554 | 0.271364 | 0 | 0.007979 | 0.393145 | 10,533 | 370 | 98 | 28.467568 | 0.753598 | 0.028007 | 0 | 0.488806 | 0 | 0 | 0.032658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130597 | false | 0 | 0.018657 | 0.011194 | 0.201493 | 0.063433 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d919543d1b1062c7801bafa6f3961d97bf6f7fb6 | 850 | py | Python | src/settings.py | doksketch/happy-dating | 680c63f38fe039b6567f5fce94c3d0fa3b968019 | [
"MIT"
] | null | null | null | src/settings.py | doksketch/happy-dating | 680c63f38fe039b6567f5fce94c3d0fa3b968019 | [
"MIT"
] | null | null | null | src/settings.py | doksketch/happy-dating | 680c63f38fe039b6567f5fce94c3d0fa3b968019 | [
"MIT"
] | null | null | null | logreg_params = dict(multi_class='ovr',
class_weight=None,
random_state=43,
max_iter=300,
n_jobs=-1,
penalty='l2',
C=0.5)
rnn_params = dict(
# Пути к данным
df="../coleridgeinitiative-s... | 29.310345 | 68 | 0.615294 | 99 | 850 | 4.989899 | 0.818182 | 0.040486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041391 | 0.289412 | 850 | 29 | 69 | 29.310345 | 0.77649 | 0.129412 | 0 | 0 | 0 | 0 | 0.130435 | 0.078804 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d91a437d3329267d3f78bc766ee6ddef015b51b1 | 1,741 | py | Python | examples/zio_console_example.py | miiohio/ziopy | c216bfb834f08bce0419a906b9bf174697d06023 | [
"MIT"
] | 28 | 2021-03-03T16:29:36.000Z | 2022-03-31T05:05:59.000Z | examples/zio_console_example.py | miiohio/ziopy | c216bfb834f08bce0419a906b9bf174697d06023 | [
"MIT"
] | 1 | 2019-10-08T20:09:47.000Z | 2019-10-08T20:09:47.000Z | examples/zio_console_example.py | harveywi/ziopy | c216bfb834f08bce0419a906b9bf174697d06023 | [
"MIT"
] | 1 | 2022-01-28T15:37:43.000Z | 2022-01-28T15:37:43.000Z | from typing import NoReturn, Union
import ziopy.services.console as console
import ziopy.services.system as system
from ziopy.environments import ConsoleSystemEnvironment
from ziopy.services.console import Console, LiveConsole
from ziopy.zio import ZIO, ZIOMonad, monadic, unsafe_run, Environment
@monadic
def program... | 27.203125 | 93 | 0.658817 | 233 | 1,741 | 4.841202 | 0.334764 | 0.053191 | 0.026596 | 0.065603 | 0.047872 | 0.047872 | 0.047872 | 0 | 0 | 0 | 0 | 0.008715 | 0.209075 | 1,741 | 63 | 94 | 27.634921 | 0.810458 | 0.03274 | 0 | 0.040816 | 0 | 0 | 0.115933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.122449 | 0 | 0.204082 | 0.122449 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
d91ba473ca0e37b17defe052cdc5b0b0991183c2 | 1,872 | py | Python | examples/Classify/MNistLoader.py | parrisma/TicTacToe-DeepLearning | 4fefb1ef9d172eb19709f0f2a681307537769f58 | [
"MIT"
] | 1 | 2021-08-17T12:09:48.000Z | 2021-08-17T12:09:48.000Z | examples/Classify/MNistLoader.py | parrisma/TicTacToe-DeepLearning | 4fefb1ef9d172eb19709f0f2a681307537769f58 | [
"MIT"
] | null | null | null | examples/Classify/MNistLoader.py | parrisma/TicTacToe-DeepLearning | 4fefb1ef9d172eb19709f0f2a681307537769f58 | [
"MIT"
] | null | null | null | import os
import struct
import unittest
import numpy as np
#
# based on https://gist.github.com/akesling/5358964
# Which contains comment.
# > Loosely inspired by http://abel.ee.ucla.edu/cvxopt/_downloads/mnist.py
# > which is GPL licensed.
#
class MNistLoader:
@classmethod
def read_mnist(cls,
... | 25.643836 | 83 | 0.587073 | 234 | 1,872 | 4.606838 | 0.487179 | 0.083488 | 0.037106 | 0.051948 | 0.166976 | 0.109462 | 0.068646 | 0.068646 | 0.068646 | 0 | 0 | 0.031088 | 0.278312 | 1,872 | 72 | 84 | 26 | 0.766839 | 0.142094 | 0 | 0.05 | 0 | 0 | 0.096287 | 0.073002 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d91e5b227907a31856a0adc939b8a34e7e1a5f00 | 3,321 | py | Python | diagnostics/plots/dipole_vids.py | wheelerMT/spin-1_BEC | e8ea34699b4001847c6b4c7451c11be241ce598f | [
"MIT"
] | null | null | null | diagnostics/plots/dipole_vids.py | wheelerMT/spin-1_BEC | e8ea34699b4001847c6b4c7451c11be241ce598f | [
"MIT"
] | null | null | null | diagnostics/plots/dipole_vids.py | wheelerMT/spin-1_BEC | e8ea34699b4001847c6b4c7451c11be241ce598f | [
"MIT"
] | null | null | null | import h5py
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
# Load in data:
filename = input('Enter data filename: ')
data_file = h5py.File('../../data/{}.hdf5'.format(filename), 'r')
psi_plus = data_file['wavefunction/psi_plus']
psi_0 = data_file['wavefunction/psi_0']
psi_... | 39.070588 | 118 | 0.620897 | 563 | 3,321 | 3.507993 | 0.269982 | 0.042532 | 0.03038 | 0.024304 | 0.384304 | 0.355443 | 0.258228 | 0.155949 | 0.108354 | 0.108354 | 0 | 0.045016 | 0.157182 | 3,321 | 84 | 119 | 39.535714 | 0.660593 | 0.076182 | 0 | 0.071429 | 0 | 0 | 0.126719 | 0.023248 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0 | 0.071429 | 0 | 0.107143 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d924de18914aff5fa9f08bc65617db228d203fc4 | 2,296 | py | Python | gen_sample_by_PIL.py | chldong/cnn_captcha | 3c528ac30b6278bc55f04ac0dd565985ef4d5f52 | [
"Apache-2.0"
] | null | null | null | gen_sample_by_PIL.py | chldong/cnn_captcha | 3c528ac30b6278bc55f04ac0dd565985ef4d5f52 | [
"Apache-2.0"
] | null | null | null | gen_sample_by_PIL.py | chldong/cnn_captcha | 3c528ac30b6278bc55f04ac0dd565985ef4d5f52 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
"""
使用PIL lib生成验证码(前提:pip install PIL)
"""
from PIL import Image,ImageFont,ImageDraw,ImageFilter
import os
import random
import time
import json
def gen_special_img(text, file_path, width, height):
# 生成img文件
fontSize = 16
backGroundColor = (102,142,107)
fontColor = (112,66,60)
... | 30.210526 | 104 | 0.642857 | 295 | 2,296 | 4.861017 | 0.420339 | 0.03417 | 0.018131 | 0.02371 | 0.203626 | 0.203626 | 0.203626 | 0.203626 | 0.156206 | 0.156206 | 0 | 0.024876 | 0.212108 | 2,296 | 75 | 105 | 30.613333 | 0.767828 | 0.155488 | 0 | 0 | 0 | 0 | 0.07628 | 0.012539 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.106383 | 0 | 0.170213 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |