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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9e0b38785f42750dd7b982e0c8d839a178312ded | 40,098 | py | Python | autoscale/server_control/server_control.py | usaar33/ec2_autoscale | e1646869057c1d01d031b2a19bb62db5c31817aa | [
"MIT"
] | null | null | null | autoscale/server_control/server_control.py | usaar33/ec2_autoscale | e1646869057c1d01d031b2a19bb62db5c31817aa | [
"MIT"
] | null | null | null | autoscale/server_control/server_control.py | usaar33/ec2_autoscale | e1646869057c1d01d031b2a19bb62db5c31817aa | [
"MIT"
] | null | null | null | '''
Low-level object to bring up and tear down servers
Abstraction note: Instance objects are expected to conform to boto standard
Note that this method is not intended to be auto-scaler specific; it is a generic server booting system.
'''
import __builtin__
from datetime import datetime as dtime
import errno
import ... | 41.899687 | 142 | 0.628236 | 4,842 | 40,098 | 5.035729 | 0.15696 | 0.024115 | 0.009187 | 0.007382 | 0.323996 | 0.272895 | 0.255342 | 0.23094 | 0.223229 | 0.203338 | 0 | 0.004993 | 0.295725 | 40,098 | 956 | 143 | 41.943515 | 0.858428 | 0.076388 | 0 | 0.28 | 0 | 0.010909 | 0.10608 | 0.004116 | 0 | 0 | 0 | 0.004184 | 0 | 0 | null | null | 0.009091 | 0.02 | null | null | 0.001818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9e0b3bc70906b500cf50dddc216cc8fd7866998a | 2,833 | py | Python | wordup/word/models.py | douglasgoodwin/wordup | 80cb67453f586df90d5069d1c187e77d1b97c3e1 | [
"BSD-3-Clause"
] | null | null | null | wordup/word/models.py | douglasgoodwin/wordup | 80cb67453f586df90d5069d1c187e77d1b97c3e1 | [
"BSD-3-Clause"
] | null | null | null | wordup/word/models.py | douglasgoodwin/wordup | 80cb67453f586df90d5069d1c187e77d1b97c3e1 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime as dt
from flask import url_for
# from flask.ext.login import UserMixin
from flask.ext.security import (
# Security,
# SQLAlchemyUserDatastore,
UserMixin,
RoleMixin,
# login_required,
)
from wordup.extensions import bcrypt
from wordup.database import (
Column,
db,
Mo... | 27.240385 | 74 | 0.716908 | 355 | 2,833 | 5.48169 | 0.233803 | 0.069887 | 0.086331 | 0.065776 | 0.443988 | 0.321686 | 0.233813 | 0.233813 | 0.193731 | 0.193731 | 0 | 0.012136 | 0.127427 | 2,833 | 103 | 75 | 27.504854 | 0.775081 | 0.080127 | 0 | 0.191176 | 0 | 0 | 0.079922 | 0.017154 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191176 | false | 0 | 0.073529 | 0.132353 | 0.794118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
9e0c340f69851c686328d7ba4d3a209c56118bd1 | 480 | py | Python | charity/migrations/0009_auto_20200911_1545.py | KamilKamilK/Clothes-sharing | 522709a4d357320f5f5ec253d1bd18fb18116755 | [
"Apache-2.0"
] | 1 | 2020-09-30T11:57:22.000Z | 2020-09-30T11:57:22.000Z | charity/migrations/0009_auto_20200911_1545.py | KamilKamilK/Clothes-sharing | 522709a4d357320f5f5ec253d1bd18fb18116755 | [
"Apache-2.0"
] | null | null | null | charity/migrations/0009_auto_20200911_1545.py | KamilKamilK/Clothes-sharing | 522709a4d357320f5f5ec253d1bd18fb18116755 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.1 on 2020-09-11 15:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('charity', '0008_auto_20200907_1752'),
]
operations = [
migrations.AlterField(
model_name='institution',
name='type',... | 25.263158 | 141 | 0.604167 | 51 | 480 | 5.588235 | 0.862745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088643 | 0.247917 | 480 | 18 | 142 | 26.666667 | 0.700831 | 0.09375 | 0 | 0 | 1 | 0 | 0.224018 | 0.053118 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9e133d208483ae0c6a2522be98455da2949f45d6 | 5,730 | py | Python | mundo-03/ex112/utilitiescev/currency/__init__.py | bryan-lima/python-cursoemvideo | 6b8b621fb5958d8b5314bc788e8ef3bb4bfe5217 | [
"MIT"
] | null | null | null | mundo-03/ex112/utilitiescev/currency/__init__.py | bryan-lima/python-cursoemvideo | 6b8b621fb5958d8b5314bc788e8ef3bb4bfe5217 | [
"MIT"
] | null | null | null | mundo-03/ex112/utilitiescev/currency/__init__.py | bryan-lima/python-cursoemvideo | 6b8b621fb5958d8b5314bc788e8ef3bb4bfe5217 | [
"MIT"
] | null | null | null | def increase(value=0, rate=0, formatted=False):
"""
#EN-US:
→ Calculates the increase of a certain price,
returning the result with or without formatting.
:param value: the price you want to readjust.
:param rate: what is the percentage increase.
:param formatted: want formatted output or no... | 36.496815 | 120 | 0.676963 | 815 | 5,730 | 4.761963 | 0.206135 | 0.03092 | 0.026797 | 0.04741 | 0.558361 | 0.476681 | 0.463283 | 0.455037 | 0.437001 | 0.415872 | 0 | 0.010165 | 0.2274 | 5,730 | 156 | 121 | 36.730769 | 0.863339 | 0.673997 | 0 | 0.107143 | 0 | 0.071429 | 0.280142 | 0.039716 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.035714 | 0 | 0.5 | 0.321429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f508d262307bc04433208f40ef35b0ac05edf2b7 | 1,494 | py | Python | pyle38/commands/fset.py | iwpnd/pyle38 | d2d6fa4e11b7444ed97df9152ee8e0a9dd0952d7 | [
"MIT"
] | 44 | 2021-04-08T07:06:19.000Z | 2022-02-16T15:06:05.000Z | pyle38/commands/fset.py | iwpnd/pyle38 | d2d6fa4e11b7444ed97df9152ee8e0a9dd0952d7 | [
"MIT"
] | 50 | 2021-04-19T10:03:12.000Z | 2022-03-03T16:13:50.000Z | pyle38/commands/fset.py | iwpnd/pyle38 | d2d6fa4e11b7444ed97df9152ee8e0a9dd0952d7 | [
"MIT"
] | 4 | 2021-04-29T08:20:21.000Z | 2022-03-12T07:28:19.000Z | from __future__ import annotations
from typing import Literal, Optional
from ..client import Client, Command
from ..responses import Fields, JSONResponse
from .executable import Compiled, Executable
class Fset(Executable):
_key: str
_id: str
_xx: Optional[Literal["XX"]] = None
_fields: Fields = {}
... | 23.714286 | 82 | 0.566934 | 172 | 1,494 | 4.732558 | 0.267442 | 0.103194 | 0.047912 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3166 | 1,494 | 62 | 83 | 24.096774 | 0.797258 | 0.008032 | 0 | 0.090909 | 0 | 0 | 0.002703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.159091 | false | 0 | 0.113636 | 0.022727 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f50f4a72a09d8ffd90cbe12a890dbd4079a91755 | 4,606 | py | Python | Code/model.py | Yongmin-Yoo/ML_Cassifier | 35b82cb9c9d84b1b831e899528e77cbab62142f8 | [
"MIT"
] | null | null | null | Code/model.py | Yongmin-Yoo/ML_Cassifier | 35b82cb9c9d84b1b831e899528e77cbab62142f8 | [
"MIT"
] | null | null | null | Code/model.py | Yongmin-Yoo/ML_Cassifier | 35b82cb9c9d84b1b831e899528e77cbab62142f8 | [
"MIT"
] | null | null | null | import os
import pandas as pd
import numpy as np
import pandas_profiling
import matplotlib.pyplot as plt
import warnings
import seaborn as sns
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import train_test_split , cross_val_score , KFold
from sklearn.linear_model import LogisticRegressi... | 36.555556 | 78 | 0.536474 | 454 | 4,606 | 5.121145 | 0.14978 | 0.108387 | 0.075269 | 0.129032 | 0.552688 | 0.552688 | 0.552688 | 0.467957 | 0.287742 | 0.176344 | 0 | 0 | 0.122449 | 4,606 | 125 | 79 | 36.848 | 0.57521 | 0 | 0 | 0.266667 | 0 | 0 | 0.307425 | 0.245332 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.188889 | 0 | 0.322222 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
f5156a3efbf2764d028dfbb874585bd9bb3ca31b | 1,612 | py | Python | test/ovpn-config-splitter.test.py | hzengin/openvpn-config-splitter | d1a69735d218c00ecd235662c5390e3154333f5d | [
"Apache-2.0"
] | null | null | null | test/ovpn-config-splitter.test.py | hzengin/openvpn-config-splitter | d1a69735d218c00ecd235662c5390e3154333f5d | [
"Apache-2.0"
] | null | null | null | test/ovpn-config-splitter.test.py | hzengin/openvpn-config-splitter | d1a69735d218c00ecd235662c5390e3154333f5d | [
"Apache-2.0"
] | null | null | null | import unittest
import lib.splitter as splitter
from lib.exceptions import InvalidConfigFile
class TestOpenVPNConfigSplitter(unittest.TestCase):
def setUp(self):
self.source = open("fixtures/client.ovpn", mode="r").read()
# splitter should return a new valid config file which contains new entries
... | 52 | 118 | 0.710298 | 209 | 1,612 | 5.444976 | 0.425837 | 0.035149 | 0.052724 | 0.073814 | 0.288225 | 0.288225 | 0.170475 | 0.105448 | 0 | 0 | 0 | 0.012039 | 0.175558 | 1,612 | 30 | 119 | 53.733333 | 0.844244 | 0.112903 | 0 | 0 | 0 | 0 | 0.34386 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.190476 | false | 0 | 0.142857 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f51c30c50ebd7f1c2223a8e931c9641ec1809ea4 | 366 | py | Python | utils/get_pair_number.py | RoMeLaUCLA/ReDUCE | fd54bed7bb6847ca5b8362ff4337653d62e97468 | [
"MIT"
] | 2 | 2021-10-14T23:25:10.000Z | 2021-12-23T21:54:56.000Z | utils/get_pair_number.py | RoMeLaUCLA/ReDUCE | fd54bed7bb6847ca5b8362ff4337653d62e97468 | [
"MIT"
] | null | null | null | utils/get_pair_number.py | RoMeLaUCLA/ReDUCE | fd54bed7bb6847ca5b8362ff4337653d62e97468 | [
"MIT"
] | 2 | 2022-03-10T09:52:56.000Z | 2022-03-31T06:20:36.000Z | def get_pair_number(list_pairs, item_left, item_right):
# Retrieve pair number
found = False
ct_pair = 0
iter_pair = 0
while not found:
if list_pairs[iter_pair, 0] == item_left and list_pairs[iter_pair, 1] == item_right:
ct_pair = iter_pair
found = True
else:
... | 28.153846 | 92 | 0.606557 | 53 | 366 | 3.867925 | 0.433962 | 0.195122 | 0.087805 | 0.165854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020161 | 0.322404 | 366 | 12 | 93 | 30.5 | 0.806452 | 0.054645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f51d02d1bd24f75230fb3c739698ebe44432bb43 | 1,247 | py | Python | Creator/main.py | AndrewChe7/VKGraph | 21c6a3f51807508432018e3a55dd9f107131b7e9 | [
"MIT"
] | 1 | 2018-03-12T04:08:29.000Z | 2018-03-12T04:08:29.000Z | Creator/main.py | AndrewChe7/VKGraph | 21c6a3f51807508432018e3a55dd9f107131b7e9 | [
"MIT"
] | 3 | 2018-05-23T08:52:55.000Z | 2018-05-23T08:55:51.000Z | Creator/main.py | AndrewChe7/VKGraph | 21c6a3f51807508432018e3a55dd9f107131b7e9 | [
"MIT"
] | 1 | 2018-03-12T02:03:25.000Z | 2018-03-12T02:03:25.000Z |
import vk
import json
TOKEN = ''
session = vk.Session(access_token=TOKEN)
api = vk.API(session, v='5.35', lang='ru', timeout=10)
users = []
links = []
def get_user (user_id):
return api.users.get(user_ids=user_id)[0]
def get_friends (user_id):
return api.friends.get(user_id=user_id)['items']
def add_user (u... | 19.793651 | 91 | 0.597434 | 192 | 1,247 | 3.71875 | 0.359375 | 0.067227 | 0.044818 | 0.042017 | 0.044818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00691 | 0.18765 | 1,247 | 63 | 92 | 19.793651 | 0.697927 | 0.078589 | 0 | 0 | 0 | 0 | 0.125654 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.142857 | false | 0 | 0.047619 | 0.047619 | 0.238095 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f524a38d11d244a0c037ec189256faa190c4d1a9 | 14,452 | py | Python | filters.py | fghso/instagram-crawler | ad56db13b1c8c9b426f3e3e90091570cd8ae1049 | [
"MIT"
] | null | null | null | filters.py | fghso/instagram-crawler | ad56db13b1c8c9b426f3e3e90091570cd8ae1049 | [
"MIT"
] | null | null | null | filters.py | fghso/instagram-crawler | ad56db13b1c8c9b426f3e3e90091570cd8ae1049 | [
"MIT"
] | null | null | null | # -*- coding: iso-8859-1 -*-
import sys
import os
import threading
import httplib2
import json
import csv
import xmltodict
import random
import Queue
import common
import persistence
import mysql.connector
class BaseFilter():
def __init__(self, configurationsDictionary):
self._extractConfig(configurati... | 46.922078 | 162 | 0.603377 | 1,437 | 14,452 | 6.004871 | 0.177453 | 0.068374 | 0.025032 | 0.012168 | 0.481052 | 0.423688 | 0.410245 | 0.378491 | 0.344999 | 0.303859 | 0 | 0.006678 | 0.264323 | 14,452 | 308 | 163 | 46.922078 | 0.804929 | 0.061168 | 0 | 0.347639 | 0 | 0 | 0.142541 | 0.007976 | 0.008584 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021459 | 0.051502 | null | null | 0.012876 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f530fcd5141b7a123dbcd582fcc67895e6ef26ce | 993 | py | Python | example/video.py | yxiao1996/pystereogram | bcce4568b44919b96635f775a123a9d0df47ebd3 | [
"MIT"
] | 2 | 2021-07-31T17:29:03.000Z | 2021-09-03T16:13:35.000Z | example/video.py | yxiao1996/pystereogram | bcce4568b44919b96635f775a123a9d0df47ebd3 | [
"MIT"
] | null | null | null | example/video.py | yxiao1996/pystereogram | bcce4568b44919b96635f775a123a9d0df47ebd3 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.image as mpimg
from autostereogram.converter import StereogramConverter
import skvideo.io
from skimage import color
import os
import re
import time
def main():
image_path = '../rgbd-scenes/bear_front/depth/'
image_files = os.listdir(image_path)
frame_converter = Stereog... | 38.192308 | 100 | 0.688822 | 127 | 993 | 5.125984 | 0.527559 | 0.0553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015248 | 0.207452 | 993 | 26 | 101 | 38.192308 | 0.811944 | 0 | 0 | 0 | 0 | 0 | 0.06338 | 0.032193 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.333333 | 0 | 0.375 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f5376a0d280c9e0684980367685b8a613bb1d164 | 8,403 | py | Python | model_compression_toolkit/ptq/keras/quantization_facade.py | reuvenperetz/model_optimization | 40de02d56750ee4cc20e693da63bc2e70b4d20e6 | [
"Apache-2.0"
] | 42 | 2021-10-31T10:17:49.000Z | 2022-03-21T08:51:46.000Z | model_compression_toolkit/ptq/keras/quantization_facade.py | reuvenperetz/model_optimization | 40de02d56750ee4cc20e693da63bc2e70b4d20e6 | [
"Apache-2.0"
] | 6 | 2021-10-31T15:06:03.000Z | 2022-03-31T10:32:53.000Z | model_compression_toolkit/ptq/keras/quantization_facade.py | reuvenperetz/model_optimization | 40de02d56750ee4cc20e693da63bc2e70b4d20e6 | [
"Apache-2.0"
] | 18 | 2021-11-01T12:16:43.000Z | 2022-03-25T16:52:37.000Z | # Copyright 2022 Sony Semiconductors Israel, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 58.354167 | 332 | 0.688326 | 971 | 8,403 | 5.796087 | 0.298661 | 0.042289 | 0.065387 | 0.067164 | 0.158493 | 0.106787 | 0.051173 | 0.036603 | 0 | 0 | 0 | 0.005094 | 0.25241 | 8,403 | 143 | 333 | 58.762238 | 0.890799 | 0.511127 | 0 | 0 | 0 | 0 | 0.132863 | 0.046367 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0.020408 | 0.408163 | 0 | 0.469388 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f53d067b3a8155ea72d2506a1367cbd8746aeff3 | 65,676 | py | Python | varIncrementPhase2.py | Ranumao/totemClust | 0b26db10e244ba8d83afe8b331e3fd38b938b001 | [
"BSD-2-Clause"
] | null | null | null | varIncrementPhase2.py | Ranumao/totemClust | 0b26db10e244ba8d83afe8b331e3fd38b938b001 | [
"BSD-2-Clause"
] | null | null | null | varIncrementPhase2.py | Ranumao/totemClust | 0b26db10e244ba8d83afe8b331e3fd38b938b001 | [
"BSD-2-Clause"
] | 1 | 2021-05-09T12:38:49.000Z | 2021-05-09T12:38:49.000Z | # Copyright (C) 2013 by
# David Combe (david.combe@gmail.com), Universite Jean Monnet, Saint-Etienne
# All rights reserved.
# BSD license.
from __future__ import division
from pprint import pprint
import networkx as nx # pour les exemples
import sys
import random
import math
#import modAttrEsp as ma
... | 32.146843 | 349 | 0.571259 | 6,016 | 65,676 | 6.212766 | 0.108045 | 0.021672 | 0.005619 | 0.01501 | 0.429366 | 0.359402 | 0.275123 | 0.233706 | 0.217412 | 0.193172 | 0 | 0.014616 | 0.321822 | 65,676 | 2,042 | 350 | 32.162586 | 0.82454 | 0.367867 | 0 | 0.293729 | 0 | 0 | 0.018564 | 0.005903 | 0 | 0 | 0 | 0 | 0.054455 | 0 | null | null | 0.006601 | 0.024752 | null | null | 0.042904 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f53d810f32483b4f19193ad432dcee618237cd29 | 2,679 | py | Python | KHK Light Show/KHK Light Show/2.x.x/2.0.0/MusicFrameData.py | KappaEtaKappa/Sound-To-Disco | 0ee48660b0da581767727d5baea931725cac880b | [
"MIT"
] | null | null | null | KHK Light Show/KHK Light Show/2.x.x/2.0.0/MusicFrameData.py | KappaEtaKappa/Sound-To-Disco | 0ee48660b0da581767727d5baea931725cac880b | [
"MIT"
] | null | null | null | KHK Light Show/KHK Light Show/2.x.x/2.0.0/MusicFrameData.py | KappaEtaKappa/Sound-To-Disco | 0ee48660b0da581767727d5baea931725cac880b | [
"MIT"
] | null | null | null | ######################################### BeatDetector #############################################
# Author: Dan Boehm
#
# Copyright: 2011
#
# Description: The MusicFrameData class contains all of the information necessary for the
# LightSelector to make its decisions. It provides an easily accessible format f... | 44.65 | 100 | 0.599851 | 308 | 2,679 | 5.165584 | 0.457792 | 0.03017 | 0.010057 | 0.023884 | 0.070396 | 0.070396 | 0.070396 | 0.070396 | 0.070396 | 0.070396 | 0 | 0.002716 | 0.175439 | 2,679 | 60 | 101 | 44.65 | 0.717519 | 0.688317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f53f4d9556785adc4f17698b97f6782b69bb0401 | 260 | py | Python | marketvis/__init__.py | ryanpstauffer/market-vis | 257e23af786ff5612a2765a15efe8fb54e63fdb0 | [
"MIT"
] | 2 | 2016-04-04T22:44:10.000Z | 2021-07-16T10:32:19.000Z | marketvis/__init__.py | hyperfraise/market-vis | 257e23af786ff5612a2765a15efe8fb54e63fdb0 | [
"MIT"
] | 6 | 2016-04-04T19:02:52.000Z | 2016-04-06T18:37:13.000Z | marketvis/__init__.py | hyperfraise/market-vis | 257e23af786ff5612a2765a15efe8fb54e63fdb0 | [
"MIT"
] | 4 | 2016-04-04T22:44:58.000Z | 2021-07-16T10:32:21.000Z | # -*- coding: utf-8 -*-
"""
[Python 2.7 (Mayavi is not yet compatible with Python 3+)]
Created on Wed Apr 6 13:51:02 2016
@author: Ryan Stauffer
https://github.com/ryanpstauffer/market-vis
Market Visualization Prototype
__init__.py
"""
__version__ = "0.0.1"
| 20 | 58 | 0.711538 | 41 | 260 | 4.317073 | 0.926829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080717 | 0.142308 | 260 | 12 | 59 | 21.666667 | 0.713004 | 0.873077 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f544784c3b88f8c7f4d11f72a811759063aa4bea | 1,153 | py | Python | fairgraph/openminds/core/actors/affiliation.py | HumanBrainProject/fairgraph | 6cc43ad7a6e0f8f5c533c9c8def9274ce7dc0810 | [
"Apache-2.0"
] | 8 | 2019-10-16T13:27:10.000Z | 2022-03-12T12:03:02.000Z | fairgraph/openminds/core/actors/affiliation.py | HumanBrainProject/fairgraph | 6cc43ad7a6e0f8f5c533c9c8def9274ce7dc0810 | [
"Apache-2.0"
] | 26 | 2019-06-12T13:56:26.000Z | 2021-11-24T08:48:47.000Z | fairgraph/openminds/core/actors/affiliation.py | HumanBrainProject/fairgraph | 6cc43ad7a6e0f8f5c533c9c8def9274ce7dc0810 | [
"Apache-2.0"
] | 8 | 2019-06-26T07:10:44.000Z | 2021-02-04T15:13:16.000Z | """
"""
# this file was auto-generated
from datetime import date, datetime
from fairgraph.base_v3 import EmbeddedMetadata, IRI
from fairgraph.fields import Field
class Affiliation(EmbeddedMetadata):
"""
"""
type = ["https://openminds.ebrains.eu/core/Affiliation"]
context = {
"schema"... | 32.027778 | 113 | 0.646141 | 125 | 1,153 | 5.936 | 0.48 | 0.060647 | 0.113208 | 0.123989 | 0.264151 | 0.191375 | 0.191375 | 0.191375 | 0.191375 | 0.191375 | 0 | 0.001101 | 0.212489 | 1,153 | 35 | 114 | 32.942857 | 0.816079 | 0.024284 | 0 | 0 | 1 | 0 | 0.484517 | 0.02459 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5452a67493bf22bdb03629e03758caec95a4e11 | 639 | py | Python | src/python/e2e-test-runner/e2e_test_runner/main.py | inickles/grapl | f906aba74b2249c9c7d7b1afe6fc540551cdee8b | [
"Apache-2.0"
] | 313 | 2018-10-15T05:58:39.000Z | 2020-04-21T20:31:39.000Z | src/python/e2e-test-runner/e2e_test_runner/main.py | graplsec/grapl | 68386b425c8e9e34f7380a078279b67b316fe2a0 | [
"Apache-2.0"
] | 848 | 2020-04-26T19:23:37.000Z | 2022-03-31T16:57:39.000Z | src/python/e2e-test-runner/e2e_test_runner/main.py | graplsec/grapl | 68386b425c8e9e34f7380a078279b67b316fe2a0 | [
"Apache-2.0"
] | 43 | 2020-04-27T20:59:18.000Z | 2022-03-29T21:56:09.000Z | import os
import sys
from pathlib import Path
from grapl_common.debugger.vsc_debugger import wait_for_vsc_debugger
from grapl_common.grapl_logger import get_module_grapl_logger
LOGGER = get_module_grapl_logger()
def main() -> None:
wait_for_vsc_debugger("grapl_e2e_tests")
LOGGER.info("executing pytest")
... | 25.56 | 82 | 0.771518 | 94 | 639 | 4.957447 | 0.489362 | 0.05794 | 0.064378 | 0.077253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001859 | 0.158059 | 639 | 24 | 83 | 26.625 | 0.864312 | 0.143975 | 0 | 0 | 0 | 0 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.428571 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f54c296f3f8b5823a23db7a40af70e245c04da20 | 8,252 | py | Python | custom_optimizers.py | naruarjun/SADAM-reproducibility | 1654804268ae984f49abc3ab2495c350dc09a3e2 | [
"MIT"
] | null | null | null | custom_optimizers.py | naruarjun/SADAM-reproducibility | 1654804268ae984f49abc3ab2495c350dc09a3e2 | [
"MIT"
] | null | null | null | custom_optimizers.py | naruarjun/SADAM-reproducibility | 1654804268ae984f49abc3ab2495c350dc09a3e2 | [
"MIT"
] | null | null | null | import math
import torch
class SC_SGD(torch.optim.Optimizer):
def __init__(self, params, convex=False, lr=1e-2, eps=1e-9,
weight_decay=1e-2, correct_bias=True):
if lr < 0.0:
raise ValueError("Invalid LR {} Allowed >= 0.0".format(lr))
if not eps >= 0.0:
rai... | 34.527197 | 77 | 0.49285 | 957 | 8,252 | 4.054336 | 0.102403 | 0.073711 | 0.062371 | 0.016237 | 0.721392 | 0.685052 | 0.659278 | 0.635052 | 0.635052 | 0.60232 | 0 | 0.028093 | 0.391784 | 8,252 | 238 | 78 | 34.672269 | 0.744969 | 0.019632 | 0 | 0.659218 | 0 | 0 | 0.073602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061453 | false | 0 | 0.011173 | 0 | 0.117318 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f551579b434d2c160f6aa99b1a3f9cbb9d35a3a5 | 1,143 | py | Python | awords/urls.py | kelvin-daniel/awards | 60a11708b3a487e0515bda848e53fc9ae3793e27 | [
"MIT"
] | 2 | 2022-03-24T07:47:56.000Z | 2022-03-24T07:48:02.000Z | awords/urls.py | kelvin-daniel/awards | 60a11708b3a487e0515bda848e53fc9ae3793e27 | [
"MIT"
] | null | null | null | awords/urls.py | kelvin-daniel/awards | 60a11708b3a487e0515bda848e53fc9ae3793e27 | [
"MIT"
] | null | null | null | from . import views
from django.urls import path, include, re_path
from django.conf.urls.static import static
from django.conf import settings
from rest_framework.authtoken.views import obtain_auth_token
from django.contrib.auth import views as authViews
from .views import Signup
#url urlpatterns
urlpatterns=[
pat... | 45.72 | 111 | 0.736658 | 153 | 1,143 | 5.392157 | 0.372549 | 0.048485 | 0.033939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092738 | 1,143 | 25 | 112 | 45.72 | 0.795564 | 0.013123 | 0 | 0 | 0 | 0 | 0.208333 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.304348 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f55b97c8400d747ab389367be3bdf6e19e6c1797 | 15,213 | py | Python | tests/functional/MHD/magnetic-decay/magnetic-decay.py | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | tests/MHD/magnetic-decay/magnetic-decay.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | tests/MHD/magnetic-decay/magnetic-decay.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | #-------------------------------------------------------------------------------
# A magnetic signal is placed in a resistive medium and allowed to decay.
# This test has 1D, 2D, and 3D configurations that treat the same problem.
#-------------------------------------------------------------------------------
from math... | 36.307876 | 81 | 0.527575 | 1,508 | 15,213 | 5.322281 | 0.275199 | 0.014951 | 0.008971 | 0.004485 | 0.183529 | 0.182781 | 0.131074 | 0.091827 | 0.052953 | 0.050087 | 0 | 0.030252 | 0.217774 | 15,213 | 418 | 82 | 36.394737 | 0.644202 | 0.354697 | 0 | 0.192857 | 0 | 0 | 0.044476 | 0.017091 | 0 | 0 | 0 | 0 | 0.003571 | 0 | null | null | 0 | 0.035714 | null | null | 0.003571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f560f34820ea1112970919abd38152db2b7a83f9 | 1,261 | py | Python | lab7_wyjatki/test_trinagles.py | Damian9449/Python | dc9091e15356733821bbb6a768b7d5e428640340 | [
"MIT"
] | 1 | 2017-11-15T13:03:40.000Z | 2017-11-15T13:03:40.000Z | lab7_wyjatki/test_trinagles.py | Damian9449/Python | dc9091e15356733821bbb6a768b7d5e428640340 | [
"MIT"
] | null | null | null | lab7_wyjatki/test_trinagles.py | Damian9449/Python | dc9091e15356733821bbb6a768b7d5e428640340 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import unittest
from points import Point
from trinagles import Triangle
class TestTriangle(unittest.TestCase):
def setUp(self):
self.tr1 = Triangle(1, 1, 5, 1, 1, 4)
self.tr2 = Triangle(1, 1, 5, 1, 1, 4)
def test_str(self):
self.assertEqual(str(self.tr1), "[(1, 1), ... | 30.02381 | 77 | 0.523394 | 176 | 1,261 | 3.659091 | 0.255682 | 0.097826 | 0.147516 | 0.024845 | 0.371118 | 0.194099 | 0.128882 | 0.128882 | 0.108696 | 0 | 0 | 0.085253 | 0.311657 | 1,261 | 42 | 78 | 30.02381 | 0.656682 | 0.160983 | 0 | 0 | 0 | 0 | 0.055081 | 0 | 0 | 0 | 0 | 0 | 0.28 | 0 | null | null | 0.04 | 0.12 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5686d90b118515b646eae2223d6dfa7fd5e9857 | 2,038 | py | Python | recipes/irrxml/all/conanfile.py | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 562 | 2019-09-04T12:23:43.000Z | 2022-03-29T16:41:43.000Z | recipes/irrxml/all/conanfile.py | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 9,799 | 2019-09-04T12:02:11.000Z | 2022-03-31T23:55:45.000Z | recipes/irrxml/all/conanfile.py | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 1,126 | 2019-09-04T11:57:46.000Z | 2022-03-31T16:43:38.000Z | import os
from conans import ConanFile, CMake, tools
class IrrXMLConan(ConanFile):
name = "irrxml"
license = "ZLIB"
homepage = "http://www.ambiera.com/irrxml"
url = "https://github.com/conan-io/conan-center-index"
description = "irrXML is a simple and fast open source xml parser for C++"
topic... | 33.409836 | 114 | 0.636899 | 244 | 2,038 | 5.168033 | 0.418033 | 0.028549 | 0.020619 | 0.028549 | 0.07613 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001899 | 0.22473 | 2,038 | 60 | 115 | 33.966667 | 0.796203 | 0 | 0 | 0.081633 | 0 | 0 | 0.186457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183673 | false | 0 | 0.040816 | 0.040816 | 0.530612 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f572eae5c0a51ddfcaa176538264dc9a764ab3fa | 388 | py | Python | posthog/migrations/0122_organization_setup_section_2_completed.py | FarazPatankar/posthog | dddf2644376d0fd6836ed96c139f6a825c74202f | [
"MIT"
] | 7,409 | 2020-02-09T23:18:10.000Z | 2022-03-31T22:36:25.000Z | posthog/migrations/0122_organization_setup_section_2_completed.py | FarazPatankar/posthog | dddf2644376d0fd6836ed96c139f6a825c74202f | [
"MIT"
] | 5,709 | 2020-02-09T23:26:13.000Z | 2022-03-31T20:20:01.000Z | posthog/migrations/0122_organization_setup_section_2_completed.py | FarazPatankar/posthog | dddf2644376d0fd6836ed96c139f6a825c74202f | [
"MIT"
] | 647 | 2020-02-13T17:50:55.000Z | 2022-03-31T11:24:19.000Z | # Generated by Django 3.0.11 on 2021-02-02 15:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("posthog", "0121_person_email_index"),
]
operations = [
migrations.AddField(
model_name="organization", name="setup_section_2_co... | 22.823529 | 113 | 0.662371 | 44 | 388 | 5.681818 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0.224227 | 388 | 16 | 114 | 24.25 | 0.760797 | 0.118557 | 0 | 0 | 1 | 0 | 0.197059 | 0.141176 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f57687d1d9f1cfb72dd80b73c4a2f7e3c315b17b | 1,166 | py | Python | src/markdown_storage/test_data.py | stephanpoetschner/markdown_storage | 69005db4484010e0d2282bdeb0d0bcc30a316932 | [
"MIT"
] | null | null | null | src/markdown_storage/test_data.py | stephanpoetschner/markdown_storage | 69005db4484010e0d2282bdeb0d0bcc30a316932 | [
"MIT"
] | null | null | null | src/markdown_storage/test_data.py | stephanpoetschner/markdown_storage | 69005db4484010e0d2282bdeb0d0bcc30a316932 | [
"MIT"
] | null | null | null | SAMPLE_TEXT = """title: FH Technikum Wien
subline: Elektronische Informationsdienste
externalurl: http://technikum-wien.at
duration: "abgeschlossen: 2006"
date: 2006-12-30 12:00
---
* Leistungsstipendium mehrmals erhalten: wird pro Studiengang (ca. 240 Studenten) an 6 Studenten pro Jahr vergeben.
* Teammitglied der [Au... | 53 | 281 | 0.734134 | 143 | 1,166 | 5.958042 | 0.384615 | 0.091549 | 0.056338 | 0.070423 | 0.626761 | 0.556338 | 0.532864 | 0.532864 | 0.532864 | 0.532864 | 0 | 0.070244 | 0.120926 | 1,166 | 22 | 282 | 53 | 0.760976 | 0 | 0 | 0 | 0 | 0.111111 | 0.804167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f587ccbb9eed07e473cbb2d24a3de8b1a3f87dca | 1,826 | py | Python | setup.py | dmwoods38/pySecurityCenter | f1ece77dcd3ac3d2928bb43b0635a160715a3b61 | [
"Info-ZIP"
] | 1 | 2016-08-02T06:28:05.000Z | 2016-08-02T06:28:05.000Z | setup.py | dmwoods38/pySecurityCenter | f1ece77dcd3ac3d2928bb43b0635a160715a3b61 | [
"Info-ZIP"
] | null | null | null | setup.py | dmwoods38/pySecurityCenter | f1ece77dcd3ac3d2928bb43b0635a160715a3b61 | [
"Info-ZIP"
] | null | null | null | from distutils.core import setup
import sys
import securitycenter
# A simple little hack to generate the RST file for pretty formatting for pypi.
try:
import pypandoc
with open('README', 'w') as pypidoc:
pypidoc.write(pypandoc.convert('README.md', 'rst'))
except:
pass
# These are the requirements ... | 35.803922 | 83 | 0.688938 | 231 | 1,826 | 5.34632 | 0.575758 | 0.006478 | 0.080972 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023497 | 0.207558 | 1,826 | 50 | 84 | 36.52 | 0.829993 | 0.268346 | 0 | 0 | 1 | 0 | 0.410392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.025641 | 0.102564 | 0 | 0.102564 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f58f98b99280cd88f0c6973f976d09aa5f8ab130 | 30,902 | py | Python | peanut/hpl.py | Ezibenroc/peanut | 0a4c0abf31e49c837db9971a50c0f9843e8de47f | [
"MIT"
] | 4 | 2020-03-31T09:13:26.000Z | 2021-05-19T13:08:39.000Z | peanut/hpl.py | Ezibenroc/peanut | 0a4c0abf31e49c837db9971a50c0f9843e8de47f | [
"MIT"
] | null | null | null | peanut/hpl.py | Ezibenroc/peanut | 0a4c0abf31e49c837db9971a50c0f9843e8de47f | [
"MIT"
] | null | null | null | import os
import time
from .peanut import logger, ExpFile, Time, RunError
from .abstract_hpl import AbstractHPL
class HPL(AbstractHPL):
installfile_types = {'warmup_time': int, 'trace_dgemm': bool, 'monitoring': int, 'openmpi': str,
**AbstractHPL.installfile_types}
def install_akypuer... | 37.916564 | 156 | 0.60132 | 4,260 | 30,902 | 4.152817 | 0.133099 | 0.036742 | 0.035272 | 0.026454 | 0.623368 | 0.577243 | 0.524108 | 0.495111 | 0.471087 | 0.452773 | 0 | 0.049767 | 0.236619 | 30,902 | 814 | 157 | 37.963145 | 0.70017 | 0.001521 | 0 | 0.406369 | 0 | 0.089172 | 0.765955 | 0.11665 | 0 | 0 | 0 | 0 | 0.003822 | 1 | 0.006369 | false | 0 | 0.005096 | 0.002548 | 0.024204 | 0.007643 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f590a7dffeb4319ce5119b841fa296654a31e176 | 247 | py | Python | frontend/urls.py | wi11z/food-ordering | 4758aaa9c1677d94f435821ccc517c62bbed5fb2 | [
"MIT"
] | null | null | null | frontend/urls.py | wi11z/food-ordering | 4758aaa9c1677d94f435821ccc517c62bbed5fb2 | [
"MIT"
] | null | null | null | frontend/urls.py | wi11z/food-ordering | 4758aaa9c1677d94f435821ccc517c62bbed5fb2 | [
"MIT"
] | null | null | null | from django.urls import path
from frontend import views
urlpatterns = [
path('', views.index, name='index'),
path('register', views.registration_form, name='register'),
path('registering', views.register_user, name='registering')
]
| 22.454545 | 64 | 0.708502 | 29 | 247 | 5.965517 | 0.517241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145749 | 247 | 10 | 65 | 24.7 | 0.819905 | 0 | 0 | 0 | 0 | 0 | 0.174089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f59d3641eefd09d3b71b178de78b1518a9d7a5b8 | 1,130 | py | Python | py/vision/test1/ocr_test.py | mabotech/mabo.io | 7f646db9d5ee3cd0b137866bf8eaf295890f134c | [
"MIT"
] | null | null | null | py/vision/test1/ocr_test.py | mabotech/mabo.io | 7f646db9d5ee3cd0b137866bf8eaf295890f134c | [
"MIT"
] | null | null | null | py/vision/test1/ocr_test.py | mabotech/mabo.io | 7f646db9d5ee3cd0b137866bf8eaf295890f134c | [
"MIT"
] | 1 | 2021-01-30T01:47:01.000Z | 2021-01-30T01:47:01.000Z | import cv2.cv as cv
import tesseract
import time
start = time.time()
image=cv.LoadImage("app2.jpg", cv.CV_LOAD_IMAGE_GRAYSCALE)
api = tesseract.TessBaseAPI()
api.Init("E:\\Tesseract-OCR\\test-slim","eng",tesseract.OEM_DEFAULT)
#api.SetPageSegMode(tesseract.PSM_SINGLE_WORD)
api.SetPageSegMode(tesseract.PSM_AUTO)
te... | 25.681818 | 68 | 0.783186 | 146 | 1,130 | 6.006849 | 0.356164 | 0.051311 | 0.068415 | 0.086659 | 0.184721 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004785 | 0.075221 | 1,130 | 44 | 69 | 25.681818 | 0.83445 | 0.120354 | 0 | 0.129032 | 0 | 0 | 0.169526 | 0.138244 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096774 | null | null | 0.322581 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5a1d1982a3adbcd42d0296efa61bc00697bde1b | 733 | py | Python | spring2015puzzles/money.py | edunham/toys | 4f3df49c66b1931cd9f5e3584e90f4c2a09d88e7 | [
"MIT"
] | 8 | 2015-09-28T09:09:12.000Z | 2020-10-12T07:00:54.000Z | spring2015puzzles/money.py | edunham/toys | 4f3df49c66b1931cd9f5e3584e90f4c2a09d88e7 | [
"MIT"
] | 1 | 2021-06-09T06:06:40.000Z | 2021-06-09T06:06:40.000Z | spring2015puzzles/money.py | edunham/toys | 4f3df49c66b1931cd9f5e3584e90f4c2a09d88e7 | [
"MIT"
] | 2 | 2016-09-27T06:25:47.000Z | 2017-01-19T04:56:10.000Z | #! /usr/bin/env python
import sys
def count_coins(amount):
pennies = int(amount * 100)
quarters = pennies/25
pennies = pennies - quarters * 25
dimes = pennies/10
pennies = pennies - dimes * 10
nickels = pennies/5
pennies = pennies - nickels * 5
print "It would take "+str(quarters)+" qu... | 26.178571 | 76 | 0.607094 | 97 | 733 | 4.484536 | 0.515464 | 0.128736 | 0.073563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038745 | 0.260573 | 733 | 27 | 77 | 27.148148 | 0.763838 | 0.028649 | 0 | 0.090909 | 0 | 0 | 0.211268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045455 | null | null | 0.227273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5a21e9c99f26e0304dde4cd3295e4ef3b0dd0cf | 463 | py | Python | yatube/posts/migrations/0023_auto_20210821_1635.py | EugeneSal/hw05-ver2 | b2bc43eaac1b77d9dda31a0867f3f8cae1b4fbba | [
"BSD-2-Clause"
] | null | null | null | yatube/posts/migrations/0023_auto_20210821_1635.py | EugeneSal/hw05-ver2 | b2bc43eaac1b77d9dda31a0867f3f8cae1b4fbba | [
"BSD-2-Clause"
] | null | null | null | yatube/posts/migrations/0023_auto_20210821_1635.py | EugeneSal/hw05-ver2 | b2bc43eaac1b77d9dda31a0867f3f8cae1b4fbba | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 2.2.6 on 2021-08-21 16:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0022_auto_20210808_1553'),
]
operations = [
migrations.AlterField(
model_name='post',
name='views',
... | 24.368421 | 132 | 0.62419 | 53 | 463 | 5.320755 | 0.754717 | 0.056738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08908 | 0.24838 | 463 | 18 | 133 | 25.722222 | 0.721264 | 0.097192 | 0 | 0 | 1 | 0 | 0.153846 | 0.055288 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5a4fea37ee83ef4a476dfd3d67a46312c50f9a3 | 1,174 | py | Python | Tree_Divide&Conquer/242.py | wilbertgeng/LintCode_exercise | e7a343b746e98ca3b4bc7b36655af7291f3150db | [
"MIT"
] | null | null | null | Tree_Divide&Conquer/242.py | wilbertgeng/LintCode_exercise | e7a343b746e98ca3b4bc7b36655af7291f3150db | [
"MIT"
] | null | null | null | Tree_Divide&Conquer/242.py | wilbertgeng/LintCode_exercise | e7a343b746e98ca3b4bc7b36655af7291f3150db | [
"MIT"
] | null | null | null | """242 · Convert Binary Tree to Linked Lists by Depth"""
"""
Definition of TreeNode:
class TreeNode:
def __init__(self, val):
this.val = val
this.left, this.right = None, None
Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
... | 26.681818 | 56 | 0.524702 | 135 | 1,174 | 4.481481 | 0.422222 | 0.052893 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00554 | 0.385009 | 1,174 | 43 | 57 | 27.302326 | 0.831025 | 0.138842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0.043478 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5a5d9548048d51e81e6caa7f88042c87c428fad | 214 | py | Python | setup.py | ioliveros/github-api-client | 2bbc832af0a7e744958e4741b9f6419cdabc4eb0 | [
"MIT"
] | null | null | null | setup.py | ioliveros/github-api-client | 2bbc832af0a7e744958e4741b9f6419cdabc4eb0 | [
"MIT"
] | 1 | 2021-06-02T03:15:56.000Z | 2021-06-02T03:15:56.000Z | setup.py | ioliveros/github-api-client | 2bbc832af0a7e744958e4741b9f6419cdabc4eb0 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='github_api_client',
version='1.1',
author='Ian Oliveros',
author_email='ioliveros.dev@gmail.com',
packages=find_packages(),
python_requires='>=3.6'
)
| 19.454545 | 43 | 0.747664 | 30 | 214 | 5.133333 | 0.8 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020725 | 0.098131 | 214 | 10 | 44 | 21.4 | 0.777202 | 0 | 0 | 0 | 0 | 0 | 0.280374 | 0.107477 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1919ddf3e6f0f79d111bed660c33642423190a25 | 8,651 | py | Python | Tools/jythonc/main.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | Tools/jythonc/main.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | Tools/jythonc/main.py | doom38/jython_v2.2.1 | 0803a0c953c294e6d14f9fc7d08edf6a3e630a15 | [
"CNRI-Jython"
] | null | null | null | # Copyright (c) Corporation for National Research Initiatives
"""Usage: jythonc [options] [module]*
where options include:
--ignore-warning
-i
silence the jythonc deprecation warning
--package package
-p package
put all compiled code into the named Java package
--jar jarfile
-j jarfile
... | 27.81672 | 231 | 0.57161 | 990 | 8,651 | 4.990909 | 0.266667 | 0.014167 | 0.023679 | 0.014572 | 0.126695 | 0.052621 | 0.044121 | 0.035216 | 0 | 0 | 0 | 0.004392 | 0.315686 | 8,651 | 310 | 232 | 27.906452 | 0.830236 | 0.05456 | 0 | 0.096774 | 0 | 0.005376 | 0.130878 | 0.017806 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05914 | null | null | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
191ff24f2b2c1b60dbd5d8db20e4a3a8289df994 | 3,356 | py | Python | 2020_2021/Training_8/sbox/sbox.py | 0awawa0/DonNU_CTF | 7ff693fdba4609298f5556ea583fe604980d76e3 | [
"MIT"
] | null | null | null | 2020_2021/Training_8/sbox/sbox.py | 0awawa0/DonNU_CTF | 7ff693fdba4609298f5556ea583fe604980d76e3 | [
"MIT"
] | null | null | null | 2020_2021/Training_8/sbox/sbox.py | 0awawa0/DonNU_CTF | 7ff693fdba4609298f5556ea583fe604980d76e3 | [
"MIT"
] | null | null | null | import random
from lib.types import IStdin, IStdout
inv_s_box = (
0x52, 0x09, 0x6A, 0xD5, 0x30, 0x36, 0xA5, 0x38, 0xBF, 0x40, 0xA3, 0x9E, 0x81, 0xF3, 0xD7, 0xFB,
0x7C, 0xE3, 0x39, 0x82, 0x9B, 0x2F, 0xFF, 0x87, 0x34, 0x8E, 0x43, 0x44, 0xC4, 0xDE, 0xE9, 0xCB,
0x54, 0x7B, 0x94, 0x32, 0xA6, 0xC2, 0x23, 0x3D, ... | 54.129032 | 126 | 0.5882 | 540 | 3,356 | 3.585185 | 0.653704 | 0.041322 | 0.065083 | 0.070248 | 0.103822 | 0.018595 | 0 | 0 | 0 | 0 | 0 | 0.262347 | 0.245828 | 3,356 | 61 | 127 | 55.016393 | 0.502568 | 0 | 0 | 0.04 | 0 | 0.12 | 0.223778 | 0.008045 | 0 | 0 | 0.305125 | 0 | 0 | 1 | 0.02 | false | 0 | 0.04 | 0 | 0.1 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
192a051f6b11c08afe70f8dc1bb84cfd1466fcd3 | 525 | py | Python | pymnet/benchmarks/bm1.py | HassanAKhan/HassanAKhan.github.io | 3cd2be1724f7fa90c417eb5ded19b17708f7ea3e | [
"BSD-3-Clause"
] | 1 | 2021-07-04T15:38:52.000Z | 2021-07-04T15:38:52.000Z | pymnet/benchmarks/bm1.py | HassanAKhan/HassanAKhan.github.io | 3cd2be1724f7fa90c417eb5ded19b17708f7ea3e | [
"BSD-3-Clause"
] | null | null | null | pymnet/benchmarks/bm1.py | HassanAKhan/HassanAKhan.github.io | 3cd2be1724f7fa90c417eb5ded19b17708f7ea3e | [
"BSD-3-Clause"
] | null | null | null | from pymnet import *
from timeit import Timer
### ER with large number of layers
def create_er():
net=er(10,10**5*[0.1])
return net
timer=Timer(create_er)
result=timer.timeit(number=100)
### ER with large number of nodes
def create_er2():
net=er(10**5,10*[10**-5])
return net
timer2=Timer(create_e... | 14.583333 | 34 | 0.689524 | 87 | 525 | 4.114943 | 0.356322 | 0.041899 | 0.058659 | 0.094972 | 0.178771 | 0.072626 | 0.072626 | 0 | 0 | 0 | 0 | 0.096847 | 0.154286 | 525 | 35 | 35 | 15 | 0.709459 | 0.142857 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
192b2d9845d50bc63c73ea0a78d0274b05073bca | 1,569 | py | Python | auto.py | varun-0007/udacity-course-auto-complete | 98638eb00f210ddeb92843c5242deb78b63d3a8e | [
"Unlicense"
] | 1 | 2021-08-24T10:40:36.000Z | 2021-08-24T10:40:36.000Z | auto.py | varun-0007/udacity-course-auto-complete | 98638eb00f210ddeb92843c5242deb78b63d3a8e | [
"Unlicense"
] | null | null | null | auto.py | varun-0007/udacity-course-auto-complete | 98638eb00f210ddeb92843c5242deb78b63d3a8e | [
"Unlicense"
] | null | null | null | from typing import ContextManager
from selenium import webdriver
from selenium import *
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time
mail ... | 29.055556 | 77 | 0.741236 | 208 | 1,569 | 5.370192 | 0.326923 | 0.062668 | 0.106535 | 0.119069 | 0.376902 | 0.31513 | 0.288272 | 0.232766 | 0.232766 | 0.232766 | 0 | 0.011119 | 0.140217 | 1,569 | 54 | 78 | 29.055556 | 0.816901 | 0.182919 | 0 | 0.233333 | 0 | 0 | 0.194335 | 0.077105 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.266667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
19371313741158be9939db0bc23eb9d1c5f60b09 | 446 | py | Python | pyswitch/switch.py | JakeRoggenbuck/pyswitch | 27c5e7470ae6b8258b690ed3fe1b74a77d074e94 | [
"MIT"
] | null | null | null | pyswitch/switch.py | JakeRoggenbuck/pyswitch | 27c5e7470ae6b8258b690ed3fe1b74a77d074e94 | [
"MIT"
] | null | null | null | pyswitch/switch.py | JakeRoggenbuck/pyswitch | 27c5e7470ae6b8258b690ed3fe1b74a77d074e94 | [
"MIT"
] | null | null | null | class Switch:
def __init__(self):
self.cases = {}
def case(self, case, function, parameters=None):
self.cases[str(case)] = {"name": function, "parameters": parameters}
def switch(self, case):
if (func := self.cases.get(str(case))):
name = func['name']
if fun... | 29.733333 | 76 | 0.53139 | 49 | 446 | 4.755102 | 0.387755 | 0.11588 | 0.094421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.32287 | 446 | 14 | 77 | 31.857143 | 0.771523 | 0 | 0 | 0 | 0 | 0 | 0.085202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
193ac9a0d781b6b7c7f1a38ef136634976bbb093 | 18,303 | py | Python | napalm_ebayios/ios_ebay.py | eBay/pynetforce | 599fbfd4d2dc23c0d70a730c80a0e63a4f461b2f | [
"Apache-2.0"
] | 16 | 2018-01-26T19:29:50.000Z | 2020-07-31T04:50:37.000Z | napalm_ebayios/ios_ebay.py | eBay/pynetforce | 599fbfd4d2dc23c0d70a730c80a0e63a4f461b2f | [
"Apache-2.0"
] | 3 | 2018-02-02T21:45:00.000Z | 2019-09-13T15:31:50.000Z | napalm_ebayios/ios_ebay.py | eBay/pynetforce | 599fbfd4d2dc23c0d70a730c80a0e63a4f461b2f | [
"Apache-2.0"
] | 7 | 2018-01-27T01:08:49.000Z | 2021-01-15T11:03:59.000Z | # Copyright 2018 eBay Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 39.276824 | 93 | 0.551822 | 1,978 | 18,303 | 4.865015 | 0.196663 | 0.031175 | 0.020264 | 0.016003 | 0.414528 | 0.320067 | 0.271953 | 0.215525 | 0.199106 | 0.178115 | 0 | 0.020993 | 0.344151 | 18,303 | 465 | 94 | 39.36129 | 0.780656 | 0.156586 | 0 | 0.357558 | 0 | 0.002907 | 0.078196 | 0.004804 | 0 | 0 | 0 | 0.002151 | 0 | 1 | 0.087209 | false | 0.052326 | 0.031977 | 0 | 0.159884 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
193e2f9d39bac98b67bd6a1654074a745ff2f6a6 | 94,829 | py | Python | omd/versions/1.2.8p15.cre/share/check_mk/web/plugins/wato/active_checks.py | NCAR/spol-nagios | 4f88bef953983050bc6568d3f1027615fbe223fb | [
"BSD-3-Clause"
] | null | null | null | omd/versions/1.2.8p15.cre/share/check_mk/web/plugins/wato/active_checks.py | NCAR/spol-nagios | 4f88bef953983050bc6568d3f1027615fbe223fb | [
"BSD-3-Clause"
] | null | null | null | omd/versions/1.2.8p15.cre/share/check_mk/web/plugins/wato/active_checks.py | NCAR/spol-nagios | 4f88bef953983050bc6568d3f1027615fbe223fb | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# -*- encoding: utf-8; py-indent-offset: 4 -*-
# +------------------------------------------------------------------+
# | ____ _ _ __ __ _ __ |
# | / ___| |__ ___ ___| | __ | \/ | |/ / |
# | | | | '_ \ / _ \/ __| |/ /... | 46.57613 | 140 | 0.370087 | 6,877 | 94,829 | 4.960012 | 0.136106 | 0.026385 | 0.030343 | 0.012137 | 0.36866 | 0.322662 | 0.28027 | 0.242216 | 0.224304 | 0.21375 | 0 | 0.009718 | 0.543146 | 94,829 | 2,035 | 141 | 46.599017 | 0.777624 | 0.016503 | 0 | 0.543556 | 0 | 0.00866 | 0.295439 | 0.006897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001528 | false | 0.014264 | 0.000509 | 0.000509 | 0.004075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
194890c477786ffbcbbc1cb4611026b1a391269a | 2,949 | py | Python | kubectlutils/kcommon.py | jordilin/acmescripts | 7414e0da949f56f177515eec0745a7e82bc7cba8 | [
"BSD-2-Clause"
] | 5 | 2018-12-08T14:18:26.000Z | 2021-03-25T22:51:37.000Z | kubectlutils/kcommon.py | jordilin/acmescripts | 7414e0da949f56f177515eec0745a7e82bc7cba8 | [
"BSD-2-Clause"
] | null | null | null | kubectlutils/kcommon.py | jordilin/acmescripts | 7414e0da949f56f177515eec0745a7e82bc7cba8 | [
"BSD-2-Clause"
] | 1 | 2020-12-31T16:45:45.000Z | 2020-12-31T16:45:45.000Z | #!/usr/bin/env python
import subprocess
def get_command(argvs, unit):
cmd = []
namespace = ""
if len(argvs) == 2:
namespace = argvs[1]
cmd = ["kubectl", "get", unit, "-n", namespace]
else:
cmd = ["kubectl", "get", unit]
return cmd, namespace
def span(lines, namespace):
... | 28.911765 | 103 | 0.489658 | 324 | 2,949 | 4.429012 | 0.262346 | 0.039024 | 0.036237 | 0.056446 | 0.2 | 0.096167 | 0 | 0 | 0 | 0 | 0 | 0.018201 | 0.366565 | 2,949 | 101 | 104 | 29.19802 | 0.75 | 0.071211 | 0 | 0.231707 | 0 | 0 | 0.110542 | 0.025622 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012195 | null | null | 0.182927 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
194d13091770601861183eed3674381af86b5164 | 1,582 | py | Python | health_protocol/migrations/0001_initial.py | aryaputra28/covidify-PerancanganWeb | 34d6d0017f44248c172fc58e6e1b138e23e68a95 | [
"Unlicense"
] | null | null | null | health_protocol/migrations/0001_initial.py | aryaputra28/covidify-PerancanganWeb | 34d6d0017f44248c172fc58e6e1b138e23e68a95 | [
"Unlicense"
] | null | null | null | health_protocol/migrations/0001_initial.py | aryaputra28/covidify-PerancanganWeb | 34d6d0017f44248c172fc58e6e1b138e23e68a95 | [
"Unlicense"
] | null | null | null | # Generated by Django 3.1.2 on 2021-01-02 14:08
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('main', '0003_pengguna_namalengkap'),
]
operations = [
migrations.CreateModel(
... | 42.756757 | 153 | 0.60493 | 166 | 1,582 | 5.650602 | 0.433735 | 0.042644 | 0.059701 | 0.093817 | 0.342217 | 0.342217 | 0.342217 | 0.342217 | 0.342217 | 0.285714 | 0 | 0.019983 | 0.240834 | 1,582 | 36 | 154 | 43.944444 | 0.761032 | 0.028445 | 0 | 0.344828 | 1 | 0 | 0.154397 | 0.033876 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1954ac82ea4670d2abdd66a4be8ccb6a421ec651 | 4,504 | py | Python | ghwht/hooks/base.py | flyingdice/github-webhook-types | 38edff89ec3ce809a510328463a43d7bea56ae36 | [
"Apache-2.0"
] | null | null | null | ghwht/hooks/base.py | flyingdice/github-webhook-types | 38edff89ec3ce809a510328463a43d7bea56ae36 | [
"Apache-2.0"
] | null | null | null | ghwht/hooks/base.py | flyingdice/github-webhook-types | 38edff89ec3ce809a510328463a43d7bea56ae36 | [
"Apache-2.0"
] | null | null | null | """
ghwht/hooks/base
~~~~~~~~~~~~~~~~
Contains types generic to all GitHub webhooks.
"""
import enum
import operator
from typing import Any, Generic, Optional, TypeVar
from uuid import UUID
from pydantic import dataclasses, generics
class EventName(str, enum.Enum):
"""
Enumeration for all known... | 28.871795 | 93 | 0.680062 | 512 | 4,504 | 5.902344 | 0.417969 | 0.016545 | 0.023163 | 0.022502 | 0.132363 | 0.114494 | 0.114494 | 0.114494 | 0.114494 | 0.114494 | 0 | 0 | 0.224689 | 4,504 | 155 | 94 | 29.058065 | 0.865407 | 0.362789 | 0 | 0 | 0 | 0 | 0.225405 | 0.039955 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0375 | false | 0 | 0.075 | 0.025 | 0.925 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
195d89a3747665a3cbd86900eb157c586590ba06 | 2,604 | py | Python | gallant_grasshoppers/views/game_page.py | jumpyapple/gallant-grasshoppers | e4d0948ed877d33b80f10884e95148beb82951a8 | [
"MIT"
] | null | null | null | gallant_grasshoppers/views/game_page.py | jumpyapple/gallant-grasshoppers | e4d0948ed877d33b80f10884e95148beb82951a8 | [
"MIT"
] | null | null | null | gallant_grasshoppers/views/game_page.py | jumpyapple/gallant-grasshoppers | e4d0948ed877d33b80f10884e95148beb82951a8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import render as r # ignore this. it is correct syntax
from blessed import Terminal
from . import BasePage
Component = r.Component
class GamePage(BasePage):
"""A game page."""
def __init__(self, state: object, term: Terminal, renderstate: object):
super().__init__(state, ter... | 37.2 | 103 | 0.605991 | 345 | 2,604 | 4.368116 | 0.356522 | 0.071666 | 0.039814 | 0.050431 | 0.070338 | 0.039814 | 0.039814 | 0.039814 | 0.039814 | 0 | 0 | 0.014553 | 0.261137 | 2,604 | 69 | 104 | 37.73913 | 0.768711 | 0.108295 | 0 | 0 | 0 | 0 | 0.065303 | 0.009142 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.088889 | false | 0 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1960f68acb139145c32d00ec963b1e955d7a27f8 | 1,858 | py | Python | main/core/s3utils.py | alainalberto/cubtrucking | d53992d56d7e061488a549e5253db222844131e2 | [
"MIT"
] | null | null | null | main/core/s3utils.py | alainalberto/cubtrucking | d53992d56d7e061488a549e5253db222844131e2 | [
"MIT"
] | null | null | null | main/core/s3utils.py | alainalberto/cubtrucking | d53992d56d7e061488a549e5253db222844131e2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Storages for split media and static in different folders."""
from __future__ import unicode_literals
from pipeline.storage import PipelineMixin
import storages.backends.s3boto
class StaticRootS3BotoStorage(storages.backends.s3boto.S3BotoStorage):
"""Storage for save all static files i... | 32.596491 | 93 | 0.657696 | 184 | 1,858 | 6.440217 | 0.228261 | 0.067511 | 0.092827 | 0.118143 | 0.670886 | 0.612658 | 0.612658 | 0.612658 | 0.612658 | 0.590717 | 0 | 0.01244 | 0.221206 | 1,858 | 57 | 94 | 32.596491 | 0.806496 | 0.306781 | 0 | 0.421053 | 0 | 0 | 0.047745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1961209e4b234ec03cdb51583769db38b6cce24f | 744 | py | Python | src/fixt/_cleanups.py | jlee-made/fixt | b625c93f5a5a237b43b74e680e2593c7602d501c | [
"MIT"
] | null | null | null | src/fixt/_cleanups.py | jlee-made/fixt | b625c93f5a5a237b43b74e680e2593c7602d501c | [
"MIT"
] | null | null | null | src/fixt/_cleanups.py | jlee-made/fixt | b625c93f5a5a237b43b74e680e2593c7602d501c | [
"MIT"
] | 1 | 2019-03-10T11:39:14.000Z | 2019-03-10T11:39:14.000Z | import logging
logger = logging.getLogger(__name__)
class FailedToCleanUpError(Exception):
pass
class Cleanups:
def __init__(self):
self._cleanups = []
def add_cleanup(self, func):
self._cleanups.append(func)
def clean_up(self):
success = True
for func in revers... | 18.146341 | 70 | 0.584677 | 75 | 744 | 5.6 | 0.493333 | 0.142857 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.323925 | 744 | 40 | 71 | 18.6 | 0.83499 | 0.025538 | 0 | 0 | 0 | 0 | 0.038943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0.041667 | 0.041667 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19702b8d081e6bc38a8748511c43e495ed28ce66 | 2,710 | py | Python | env_renderer.py | facebookresearch/ScaDiver | 96001537f9ab2eddfe871b78807923a30f7d012f | [
"BSD-3-Clause"
] | 91 | 2020-08-28T19:30:19.000Z | 2022-03-24T00:36:27.000Z | env_renderer.py | ErikGartner/ScaDiver | b7c13aa96f4313346ec6356931737f3bb169ca26 | [
"BSD-3-Clause"
] | 5 | 2020-11-02T12:31:12.000Z | 2022-03-07T18:31:20.000Z | env_renderer.py | ErikGartner/ScaDiver | b7c13aa96f4313346ec6356931737f3bb169ca26 | [
"BSD-3-Clause"
] | 15 | 2020-08-31T22:13:16.000Z | 2021-12-23T06:24:25.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
import numpy as np
import render_module as rm
from fairmotion.viz import glut_viewer
rm.initialize()
def axis_to_str(axis):
if np.allclose(axis, np.array([1.0, 0.0, 0.0])):
return 'x'
elif np.allclose(axis, np.array([0.0, 1.0, 0.0])):
return ... | 33.875 | 85 | 0.564945 | 373 | 2,710 | 3.911528 | 0.252011 | 0.078136 | 0.014393 | 0.041124 | 0.220014 | 0.088417 | 0.088417 | 0.037012 | 0 | 0 | 0 | 0.02381 | 0.318081 | 2,710 | 80 | 86 | 33.875 | 0.765693 | 0.017712 | 0 | 0.08 | 0 | 0 | 0.016159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173333 | false | 0.053333 | 0.04 | 0 | 0.28 | 0.013333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
19876874dda26cef370bff6701a315160753eb08 | 388 | py | Python | setup.py | edmundlth/seqstats | 70d6c209fa1bf1e23ec2de9d57ad29743d18e9bd | [
"MIT"
] | null | null | null | setup.py | edmundlth/seqstats | 70d6c209fa1bf1e23ec2de9d57ad29743d18e9bd | [
"MIT"
] | null | null | null | setup.py | edmundlth/seqstats | 70d6c209fa1bf1e23ec2de9d57ad29743d18e9bd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
setup(name="seqstats",
version="0.0.1",
author="Edmund Lau",
author_email="edmundlth95@gmail.com",
packages=["seqstats"],
entry_points={
"console_scripts":["seqstats = seqstats.seqstats:main"]
},
url="",
... | 22.823529 | 65 | 0.590206 | 40 | 388 | 5.625 | 0.8 | 0.142222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017182 | 0.25 | 388 | 16 | 66 | 24.25 | 0.756014 | 0.051546 | 0 | 0 | 0 | 0 | 0.316076 | 0.117166 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1988a1273c6b22f9748c50997af44049569721f6 | 777 | py | Python | tests/test_utils.py | Nobatek/openweathermap-client | 07cd28fa7930e3d595d1946236c9b00851eb8bfa | [
"MIT"
] | null | null | null | tests/test_utils.py | Nobatek/openweathermap-client | 07cd28fa7930e3d595d1946236c9b00851eb8bfa | [
"MIT"
] | null | null | null | tests/test_utils.py | Nobatek/openweathermap-client | 07cd28fa7930e3d595d1946236c9b00851eb8bfa | [
"MIT"
] | null | null | null | """Tests for OpenWeatherMap utils."""
import datetime as dt
from openweathermap_client.utils import dt_from_timestamp
class TestUtils():
"""Utils tests."""
def test_utils_dt_from_timestamp(self):
"""Tests from timestamp conversion."""
# with timezone awareness
dt_utcnow = dt.dateti... | 31.08 | 79 | 0.689833 | 104 | 777 | 4.855769 | 0.278846 | 0.083168 | 0.178218 | 0.166337 | 0.328713 | 0.328713 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209781 | 777 | 24 | 80 | 32.375 | 0.822476 | 0.166023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
198a7dda568dc4fb0945489fd07eee698544f696 | 4,596 | py | Python | scripts/python/convert/data2netCDF.py | ScottLongmore/MIRS_TC | 51c3964b8192f71716f075fbe3fd2ffbdb656fb5 | [
"BSD-3-Clause"
] | 1 | 2020-04-03T05:26:32.000Z | 2020-04-03T05:26:32.000Z | scripts/python/convert/data2netCDF.py | ScottLongmore/MIRS_TC | 51c3964b8192f71716f075fbe3fd2ffbdb656fb5 | [
"BSD-3-Clause"
] | null | null | null | scripts/python/convert/data2netCDF.py | ScottLongmore/MIRS_TC | 51c3964b8192f71716f075fbe3fd2ffbdb656fb5 | [
"BSD-3-Clause"
] | null | null | null | #/usr/bin/python
'''
data2netCDF - creates a data instance from given module, class and data file,
profiles data variables, and converts specified data variables to
netCDF variables using conversion routines specified in config.
'''
# Stock Modules
import re
import os
import sys
import date... | 38.949153 | 118 | 0.626197 | 491 | 4,596 | 5.804481 | 0.315682 | 0.019298 | 0.026667 | 0.014035 | 0.02386 | 0.02386 | 0.02386 | 0.02386 | 0 | 0 | 0 | 0.005226 | 0.292211 | 4,596 | 117 | 119 | 39.282051 | 0.870888 | 0.201915 | 0 | 0.106061 | 0 | 0 | 0.084946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.227273 | null | null | 0.015152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
198fd07174be1dc8047c12efcb3d70dbce436183 | 395 | py | Python | Employee/migrations/0015_alter_rating_note.py | khalil-Hennara/Incentive_system | 1eb51ed3c773744dd14de3291e6e247b0c6bb3a4 | [
"Apache-2.0"
] | 1 | 2021-09-16T15:35:55.000Z | 2021-09-16T15:35:55.000Z | Employee/migrations/0015_alter_rating_note.py | khalil-Hennara/Incentive_system | 1eb51ed3c773744dd14de3291e6e247b0c6bb3a4 | [
"Apache-2.0"
] | null | null | null | Employee/migrations/0015_alter_rating_note.py | khalil-Hennara/Incentive_system | 1eb51ed3c773744dd14de3291e6e247b0c6bb3a4 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2 on 2021-04-17 08:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Employee', '0014_auto_20210416_1809'),
]
operations = [
migrations.AlterField(
model_name='rating',
name='note',
... | 20.789474 | 62 | 0.602532 | 43 | 395 | 5.418605 | 0.860465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116608 | 0.283544 | 395 | 18 | 63 | 21.944444 | 0.706714 | 0.108861 | 0 | 0 | 1 | 0 | 0.117143 | 0.065714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1999319fbbcbd1e627df90b53a2686eff06b2d05 | 3,542 | py | Python | cctbx/examples/tst_structure_factor_derivatives.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | cctbx/examples/tst_structure_factor_derivatives.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | cctbx/examples/tst_structure_factor_derivatives.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | from __future__ import division
from cctbx.examples.structure_factor_derivatives \
import parameters, gradients, pack_gradients, structure_factor
from cctbx.examples.exp_i_alpha_derivatives import least_squares
from libtbx.test_utils import approx_equal
import random
import copy
from cStringIO import StringIO
import ... | 34.38835 | 78 | 0.663467 | 567 | 3,542 | 3.86067 | 0.178131 | 0.045683 | 0.063956 | 0.050251 | 0.596163 | 0.536775 | 0.510279 | 0.454545 | 0.440384 | 0.440384 | 0 | 0.01557 | 0.202146 | 3,542 | 102 | 79 | 34.72549 | 0.759023 | 0 | 0 | 0.40625 | 0 | 0 | 0.016657 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0 | null | null | 0 | 0.083333 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
199c77ff83fd280d198a22f8eee46ddf420de5c1 | 7,423 | py | Python | sdk/python/pulumi_google_native/dlp/v2/get_job_trigger.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 44 | 2021-04-18T23:00:48.000Z | 2022-02-14T17:43:15.000Z | sdk/python/pulumi_google_native/dlp/v2/get_job_trigger.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 354 | 2021-04-16T16:48:39.000Z | 2022-03-31T17:16:39.000Z | sdk/python/pulumi_google_native/dlp/v2/get_job_trigger.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 8 | 2021-04-24T17:46:51.000Z | 2022-01-05T10:40:21.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 38.863874 | 239 | 0.653105 | 873 | 7,423 | 5.304696 | 0.208477 | 0.030879 | 0.028504 | 0.064781 | 0.240553 | 0.157633 | 0.117685 | 0.099115 | 0.031959 | 0.031959 | 0 | 0.00394 | 0.247744 | 7,423 | 190 | 240 | 39.068421 | 0.825394 | 0.171359 | 0 | 0.115385 | 1 | 0 | 0.157805 | 0.036351 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107692 | false | 0 | 0.046154 | 0 | 0.261538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19a13da09a6c222e23593a350ea80078eb6845d7 | 3,498 | py | Python | pgx/Transformable.py | tantiem/pgxtended | 4f5c05ea0eebb3a6bebac1a35a74f0d161951772 | [
"MIT"
] | null | null | null | pgx/Transformable.py | tantiem/pgxtended | 4f5c05ea0eebb3a6bebac1a35a74f0d161951772 | [
"MIT"
] | null | null | null | pgx/Transformable.py | tantiem/pgxtended | 4f5c05ea0eebb3a6bebac1a35a74f0d161951772 | [
"MIT"
] | null | null | null | from . import Drawable
from pygame import rect
from pygame import transform
from pygame import math
class Transformable(Drawable.Drawable):
"""
Inherits Drawable
The main parent class to all functional subtype drawn objects. Contains functionality for scaling, rotating, and moving
drawn objects.
pos: s.e;
ima... | 29.15 | 130 | 0.731847 | 460 | 3,498 | 5.51087 | 0.341304 | 0.033136 | 0.018935 | 0.022485 | 0.166864 | 0.140828 | 0.105325 | 0.042604 | 0.042604 | 0.042604 | 0 | 0.012077 | 0.171527 | 3,498 | 119 | 131 | 29.394958 | 0.862664 | 0.582047 | 0 | 0 | 0 | 0 | 0.028065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.111111 | 0 | 0.5 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19a8bfa7c83f390c2d4a69cea3d55c92183258ec | 1,626 | py | Python | python/acceptlanguageparser.py | strukturag/goacceptlanguageparser | 7224a0cc2c17bdc38ba09f8361dcc6174505016a | [
"BSD-3-Clause"
] | 2 | 2017-08-04T07:37:54.000Z | 2021-03-18T12:27:32.000Z | python/acceptlanguageparser.py | strukturag/goacceptlanguageparser | 7224a0cc2c17bdc38ba09f8361dcc6174505016a | [
"BSD-3-Clause"
] | null | null | null | python/acceptlanguageparser.py | strukturag/goacceptlanguageparser | 7224a0cc2c17bdc38ba09f8361dcc6174505016a | [
"BSD-3-Clause"
] | 1 | 2021-02-05T09:06:14.000Z | 2021-02-05T09:06:14.000Z | #!/usr/bin/python
# Copyright 2014 struktur AG. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
def parseAcceptLanguage(languages, supported_languages=None):
langs = []
browser_pref_langs = languages.split(',')
i = 0
length =... | 26.225806 | 61 | 0.535055 | 193 | 1,626 | 4.414508 | 0.507772 | 0.06338 | 0.056338 | 0.061033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016315 | 0.359164 | 1,626 | 61 | 62 | 26.655738 | 0.801344 | 0.266298 | 0 | 0.060606 | 0 | 0 | 0.032258 | 0.019525 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.030303 | 0 | null | null | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19b11c777f2c90f47dd35fb8cb2de5b77e1d7e85 | 581 | py | Python | src/main/python/leetcode-python/239.maxSlidingWindow.py | sonymoon/algorithm | cc2a9e0125fc64bdbf6549034bad6482d2027ea2 | [
"Apache-2.0"
] | null | null | null | src/main/python/leetcode-python/239.maxSlidingWindow.py | sonymoon/algorithm | cc2a9e0125fc64bdbf6549034bad6482d2027ea2 | [
"Apache-2.0"
] | null | null | null | src/main/python/leetcode-python/239.maxSlidingWindow.py | sonymoon/algorithm | cc2a9e0125fc64bdbf6549034bad6482d2027ea2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
class Solution(object):
def maxSlidingWindow(self, nums, k):
if k <= 0 or not nums:
return []
q = []
result = []
for i, v in enumerate(nums):
while q and v > nums[q[-1]]:
q.pop() # 弹出比较小的值
q.append(i)... | 18.741935 | 55 | 0.409639 | 67 | 581 | 3.552239 | 0.522388 | 0.042017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03481 | 0.45611 | 581 | 30 | 56 | 19.366667 | 0.718354 | 0.089501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fd801e758520d5836af7bc39e805e4a9cf478e7 | 1,179 | py | Python | backend/models/workflow.py | Exanis/cannelloni | 43adcaf468d95ca774a82e1d2fea3877f0b648a4 | [
"MIT"
] | 1 | 2017-03-16T16:10:37.000Z | 2017-03-16T16:10:37.000Z | backend/models/workflow.py | Exanis/cannelloni | 43adcaf468d95ca774a82e1d2fea3877f0b648a4 | [
"MIT"
] | null | null | null | backend/models/workflow.py | Exanis/cannelloni | 43adcaf468d95ca774a82e1d2fea3877f0b648a4 | [
"MIT"
] | null | null | null | # -*- coding: utf8 -*-
"Workflow related variables"
from uuid import uuid4
from django.db import models
class Workflow(models.Model):
"A workflow"
uuid = models.UUIDField(primary_key=True, default=uuid4, editable=False)
namespace = models.ForeignKey("backend.Namespace", related_name="workflows_relation")... | 28.071429 | 89 | 0.687023 | 146 | 1,179 | 5.424658 | 0.376712 | 0.050505 | 0.030303 | 0.04798 | 0.462121 | 0.409091 | 0.409091 | 0.310606 | 0.310606 | 0.310606 | 0 | 0.011803 | 0.2095 | 1,179 | 41 | 90 | 28.756098 | 0.837983 | 0.161154 | 0 | 0.333333 | 0 | 0 | 0.215212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0.066667 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5fe0ef3eec49a2bbe8aa98eab3333aaaa00272fa | 1,926 | py | Python | Ago-Dic-2021/castro-torres-maria-guadalupe/practica2/ejercicio-9-9.py | AnhellO/DAS_Sistemas | 07b4eca78357d02d225d570033d05748d91383e3 | [
"MIT"
] | 41 | 2017-09-26T09:36:32.000Z | 2022-03-19T18:05:25.000Z | Ago-Dic-2021/castro-torres-maria-guadalupe/practica2/ejercicio-9-9.py | AnhellO/DAS_Sistemas | 07b4eca78357d02d225d570033d05748d91383e3 | [
"MIT"
] | 67 | 2017-09-11T05:06:12.000Z | 2022-02-14T04:44:04.000Z | Ago-Dic-2021/castro-torres-maria-guadalupe/practica2/ejercicio-9-9.py | AnhellO/DAS_Sistemas | 07b4eca78357d02d225d570033d05748d91383e3 | [
"MIT"
] | 210 | 2017-09-01T00:10:08.000Z | 2022-03-19T18:05:12.000Z | class Car():
def __init__(self, manufacturer, model, year):
self.manufacturer = manufacturer
self.model = model
self.year = year
self.odometer_reading = 0
def get_descriptive_name(self):
long_name = f"{self.year} {self.manufacturer} {self.model}"
return ... | 30.09375 | 71 | 0.629803 | 231 | 1,926 | 5.056277 | 0.363636 | 0.075342 | 0.089897 | 0.043664 | 0.177226 | 0.139555 | 0.114726 | 0 | 0 | 0 | 0 | 0.018545 | 0.272066 | 1,926 | 64 | 72 | 30.09375 | 0.813837 | 0 | 0 | 0.170213 | 0 | 0 | 0.233005 | 0.023871 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212766 | false | 0 | 0 | 0 | 0.297872 | 0.170213 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fe43c5eaad848d93019adfa64a8e08532cd8d65 | 752 | py | Python | example/example.py | morphhyy/meroshare_API | b334ad2a98dec61f9bb3d056a2d743f77e5326f7 | [
"MIT"
] | 4 | 2021-09-22T03:37:43.000Z | 2022-01-04T01:53:11.000Z | example/example.py | morphhyy/meroshare_API | b334ad2a98dec61f9bb3d056a2d743f77e5326f7 | [
"MIT"
] | 2 | 2021-07-17T09:11:55.000Z | 2021-07-30T10:52:52.000Z | example/example.py | punkholic/meroshare_API | b334ad2a98dec61f9bb3d056a2d743f77e5326f7 | [
"MIT"
] | 2 | 2021-07-17T09:03:55.000Z | 2021-07-17T14:53:17.000Z | from MeroShareAPI import MeroShare
from env import password
def searchBank(code):
for i in MeroShare.getBankInfo():
if i['code'] == str(code):
return i['id']
def checkForIPOResult(boid):
for i in MeroShare.getCompany()['body']:
result = MeroShare.checkIPOResult(i['id'], boid)
... | 25.066667 | 65 | 0.675532 | 82 | 752 | 6.195122 | 0.52439 | 0.023622 | 0.023622 | 0.059055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017628 | 0.170213 | 752 | 29 | 66 | 25.931034 | 0.796474 | 0 | 0 | 0 | 0 | 0 | 0.098535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.166667 | 0.111111 | 0 | 0.277778 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5fe6cd9ed5d538319d6978f60726634dc927d4d2 | 747 | py | Python | main/hw1-insertion-sort/hw1-insertion-sort-inflexible.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/hw1-insertion-sort/hw1-insertion-sort-inflexible.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/hw1-insertion-sort/hw1-insertion-sort-inflexible.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | #!/usr/bin/env python2
def read_record():
"""Reads a line of input as a list of integers."""
length = int(raw_input())
record = map(int, raw_input().split())
if len(record) != length:
raise ValueError('wrong record length')
return record
def insertion_sort(a):
"""Sorts the list, a, w... | 24.096774 | 65 | 0.56091 | 110 | 747 | 3.681818 | 0.472727 | 0.074074 | 0.044444 | 0.034568 | 0.054321 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012963 | 0.277108 | 747 | 30 | 66 | 24.9 | 0.737037 | 0.028112 | 0 | 0 | 0 | 0 | 0.056239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5fe70e54715029b3eab32d52e6d41cc835edfbbc | 1,040 | py | Python | pocketsphinx-5prealpha/swig/python/test/continuous_test.py | sowmyavasudeva/SmartBookmark | 797a90cfea624d2ab977e5aa78614c0db1177a23 | [
"Apache-2.0"
] | 139 | 2017-06-10T17:23:54.000Z | 2022-03-23T21:08:17.000Z | pocketsphinx-5prealpha/swig/python/test/continuous_test.py | sowmyavasudeva/SmartBookmark | 797a90cfea624d2ab977e5aa78614c0db1177a23 | [
"Apache-2.0"
] | 72 | 2017-09-30T17:58:56.000Z | 2021-08-16T08:13:01.000Z | pocketsphinx-5prealpha/swig/python/test/continuous_test.py | sowmyavasudeva/SmartBookmark | 797a90cfea624d2ab977e5aa78614c0db1177a23 | [
"Apache-2.0"
] | 67 | 2017-11-28T17:59:19.000Z | 2022-02-22T04:09:38.000Z | #!/usr/bin/python
from os import environ, path
from pocketsphinx.pocketsphinx import *
from sphinxbase.sphinxbase import *
MODELDIR = "../../../model"
DATADIR = "../../../test/data"
config = Decoder.default_config()
config.set_string('-hmm', path.join(MODELDIR, 'en-us/en-us'))
config.set_string('-lm', path.join(MOD... | 28.888889 | 75 | 0.648077 | 143 | 1,040 | 4.559441 | 0.426573 | 0.03681 | 0.092025 | 0.082822 | 0.104294 | 0.07362 | 0.07362 | 0 | 0 | 0 | 0 | 0.022406 | 0.184615 | 1,040 | 35 | 76 | 29.714286 | 0.746462 | 0.057692 | 0 | 0.148148 | 0 | 0 | 0.137014 | 0.02454 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ff206e6ee074766f0e7a54ff5ebc80763d87869 | 1,619 | py | Python | src/docserver/_patch.py | djpugh/docserver | 8b272ae8fe75b4773da6111a074a141bcf4698c9 | [
"MIT"
] | 1 | 2020-12-29T09:16:51.000Z | 2020-12-29T09:16:51.000Z | src/docserver/_patch.py | djpugh/docserver | 8b272ae8fe75b4773da6111a074a141bcf4698c9 | [
"MIT"
] | 36 | 2020-11-14T18:47:37.000Z | 2022-03-26T15:37:25.000Z | src/docserver/_patch.py | djpugh/docserver | 8b272ae8fe75b4773da6111a074a141bcf4698c9 | [
"MIT"
] | null | null | null | from fastapi import applications
from fastapi.openapi.docs import get_redoc_html as _get_redoc_html
from fastapi.openapi.docs import get_swagger_ui_html as _get_swagger_ui_html
from fastapi_aad_auth.ui.jinja import Jinja2Templates
from starlette.responses import HTMLResponse
from docserver import config
# TODO: chec... | 33.729167 | 162 | 0.733169 | 223 | 1,619 | 5.103139 | 0.295964 | 0.042179 | 0.063269 | 0.084359 | 0.260105 | 0.213533 | 0.075571 | 0.075571 | 0 | 0 | 0 | 0.002144 | 0.135886 | 1,619 | 47 | 163 | 34.446809 | 0.811294 | 0.022236 | 0 | 0.064516 | 0 | 0.032258 | 0.234662 | 0.11828 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.129032 | false | 0 | 0.225806 | 0 | 0.483871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ffe85aa27be4c8aee0e7c26e465512715f091f1 | 567 | py | Python | setup_logger.py | my87432122/pderl | 2d9e38ee62f74b4b8c5611c78caa3b0e2b77e8f4 | [
"MIT"
] | null | null | null | setup_logger.py | my87432122/pderl | 2d9e38ee62f74b4b8c5611c78caa3b0e2b77e8f4 | [
"MIT"
] | null | null | null | setup_logger.py | my87432122/pderl | 2d9e38ee62f74b4b8c5611c78caa3b0e2b77e8f4 | [
"MIT"
] | null | null | null | import argparse
parser.add_argument('--reward_freq',type=int,default=-1)
parser.add_argument('--policy', type=str, default='pso_td3')
parser.add_argument('--env', type=str, default='HalfCheetah-v3')
parser.add_argument('--datestamp', action='store_true')
parser.add_argument('--seed', '-s', type=int, default=0)
from u... | 31.5 | 64 | 0.751323 | 80 | 567 | 5.125 | 0.4625 | 0.109756 | 0.207317 | 0.112195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007737 | 0.088183 | 567 | 17 | 65 | 33.352941 | 0.7853 | 0.049383 | 0 | 0 | 0 | 0 | 0.18622 | 0.044693 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ffe9a6929705db761e7ba275d00711a4d2a660c | 2,207 | py | Python | aws_automation/utility.py | VCCRI/Scavenger | a17f48b242a1cd8d626ad3a21439fa2c80b06533 | [
"MIT"
] | 4 | 2018-07-25T15:52:00.000Z | 2020-10-20T00:47:35.000Z | aws_automation/utility.py | VCCRI/Scavenger | a17f48b242a1cd8d626ad3a21439fa2c80b06533 | [
"MIT"
] | null | null | null | aws_automation/utility.py | VCCRI/Scavenger | a17f48b242a1cd8d626ad3a21439fa2c80b06533 | [
"MIT"
] | null | null | null | # utility.py
"""library of utility functions
Available functions
- file_to_list: makes a list out of the lines of a file
- copy_local_to_remote: copies files from local to remote system
- remote_command: executes a command on a remote system
"""
import subprocess
import os
# local imports
import constants as CONST
#... | 27.936709 | 78 | 0.63797 | 333 | 2,207 | 4.147147 | 0.276276 | 0.069515 | 0.028965 | 0.021723 | 0.171615 | 0.15134 | 0.15134 | 0.06155 | 0.06155 | 0.043447 | 0 | 0 | 0.28319 | 2,207 | 78 | 79 | 28.294872 | 0.872946 | 0.570911 | 0 | 0.076923 | 0 | 0 | 0.030266 | 0 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.192308 | false | 0 | 0.115385 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2704de5b9d648ddc17162fe743b07f3880936463 | 2,237 | py | Python | account/admin.py | Tarun1226/Fitgirl | 41686530c09eee33492d70474cd11749123e8eba | [
"MIT"
] | null | null | null | account/admin.py | Tarun1226/Fitgirl | 41686530c09eee33492d70474cd11749123e8eba | [
"MIT"
] | 13 | 2019-03-04T00:59:24.000Z | 2021-09-08T00:51:08.000Z | account/admin.py | Tarun1226/Fitgirl | 41686530c09eee33492d70474cd11749123e8eba | [
"MIT"
] | 1 | 2019-03-11T02:24:52.000Z | 2019-03-11T02:24:52.000Z | # from django.contrib import admin
# Register your models here.
from django.contrib import admin
from .models import Program
from .models import Profile, Affirmations, InspirationalQuotes, Dailyquote, Reward
from django.contrib.auth.models import User
from django.contrib.auth.admin import UserAdmin
from django.contrib... | 31.957143 | 85 | 0.7443 | 248 | 2,237 | 6.53629 | 0.306452 | 0.049969 | 0.083899 | 0.064158 | 0.128933 | 0.06169 | 0.06169 | 0.06169 | 0.06169 | 0 | 0 | 0 | 0.138131 | 2,237 | 70 | 86 | 31.957143 | 0.840768 | 0.12025 | 0 | 0.044444 | 0 | 0 | 0.176951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.133333 | 0 | 0.822222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
270ad2e890cc0aeacf59c6843c8cc0def9b87f11 | 545 | py | Python | examples/reflection/server.py | artificial-aidan/grpclib | 948e32a29a4ad82ebbfdbb681f7a797f6233bff3 | [
"BSD-3-Clause"
] | 754 | 2017-08-01T23:41:24.000Z | 2022-03-31T09:03:24.000Z | examples/reflection/server.py | artificial-aidan/grpclib | 948e32a29a4ad82ebbfdbb681f7a797f6233bff3 | [
"BSD-3-Clause"
] | 154 | 2017-09-17T21:58:38.000Z | 2022-03-10T20:58:39.000Z | examples/reflection/server.py | artificial-aidan/grpclib | 948e32a29a4ad82ebbfdbb681f7a797f6233bff3 | [
"BSD-3-Clause"
] | 86 | 2017-09-17T12:53:23.000Z | 2022-02-16T21:59:24.000Z | import asyncio
from grpclib.utils import graceful_exit
from grpclib.server import Server
from grpclib.reflection.service import ServerReflection
from helloworld.server import Greeter
async def main(*, host: str = '127.0.0.1', port: int = 50051) -> None:
services = ServerReflection.extend([Greeter()])
serve... | 24.772727 | 70 | 0.700917 | 69 | 545 | 5.376812 | 0.565217 | 0.088949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024664 | 0.181651 | 545 | 21 | 71 | 25.952381 | 0.807175 | 0 | 0 | 0 | 0 | 0 | 0.075229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
270bf2f58fe4200e08bb8e3747a0d628ed690db8 | 373 | py | Python | problem-001/gen.py | memset0/naive-toys | be12745d268722351935414187ea06635d95c81a | [
"MIT"
] | 4 | 2021-09-10T08:51:40.000Z | 2021-10-07T03:00:48.000Z | problem-001/gen.py | memset0/naive-toys | be12745d268722351935414187ea06635d95c81a | [
"MIT"
] | null | null | null | problem-001/gen.py | memset0/naive-toys | be12745d268722351935414187ea06635d95c81a | [
"MIT"
] | null | null | null | import random
n = 20
m = 10
seed = 20210929
charset = [
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E',
'F', 'G', 'H', 'J', 'K', 'M', 'N', 'P', 'R', 'S', 'T', 'W', 'X', 'Y', 'Z',
]
random.seed(seed)
with open('bh.csv', 'w+') as file:
for _ in range(n):
file.write(''.join... | 24.866667 | 78 | 0.423592 | 64 | 373 | 2.4375 | 0.765625 | 0.025641 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076125 | 0.225201 | 373 | 14 | 79 | 26.642857 | 0.463668 | 0 | 0 | 0 | 0 | 0 | 0.107239 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27149e0308c73db56310d363b4d57738b505c190 | 2,742 | py | Python | ichnaea/tests/factories.py | JaredKerim-Mozilla/ichnaea | cfaef2b903960374050be3ea2e4c1520687de56b | [
"Apache-1.1"
] | null | null | null | ichnaea/tests/factories.py | JaredKerim-Mozilla/ichnaea | cfaef2b903960374050be3ea2e4c1520687de56b | [
"Apache-1.1"
] | null | null | null | ichnaea/tests/factories.py | JaredKerim-Mozilla/ichnaea | cfaef2b903960374050be3ea2e4c1520687de56b | [
"Apache-1.1"
] | null | null | null | from inspect import ismethod
import factory
from factory.alchemy import SQLAlchemyModelFactory
from factory import fuzzy
from ichnaea.constants import (
CELL_MIN_ACCURACY,
LAC_MIN_ACCURACY,
WIFI_MIN_ACCURACY,
)
from ichnaea.models import (
Cell,
CellArea,
CellBlacklist,
CellObservation,
... | 18.653061 | 75 | 0.696207 | 274 | 2,742 | 6.850365 | 0.375912 | 0.047949 | 0.067128 | 0.052744 | 0.022376 | 0.022376 | 0.022376 | 0 | 0 | 0 | 0 | 0.018466 | 0.229759 | 2,742 | 146 | 76 | 18.780822 | 0.870265 | 0.022247 | 0 | 0.153846 | 0 | 0 | 0.018692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021978 | false | 0 | 0.076923 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
271677e07c10788e5c14e1005102a43c52e3c82a | 2,313 | py | Python | controller/tuning.py | will07c5/quadcopter | b076521a9543fa684be9e38884d14783c4282194 | [
"MIT"
] | null | null | null | controller/tuning.py | will07c5/quadcopter | b076521a9543fa684be9e38884d14783c4282194 | [
"MIT"
] | null | null | null | controller/tuning.py | will07c5/quadcopter | b076521a9543fa684be9e38884d14783c4282194 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import curses
import sys
import time
from copter import *
values = {}
value = float(0)
valStep = 0.01
valueName = ""
def enterValueInputState(stdscr, name):
global state, valueName, values, value
valueName = name
if valueName not in values:
values[valueName] = float(0)
state = UserInputSt... | 23.845361 | 81 | 0.664937 | 306 | 2,313 | 5.022876 | 0.323529 | 0.093689 | 0.081978 | 0.065062 | 0.093038 | 0.093038 | 0.093038 | 0.060507 | 0.060507 | 0.060507 | 0 | 0.04305 | 0.166451 | 2,313 | 96 | 82 | 24.09375 | 0.754149 | 0.016861 | 0 | 0.116883 | 0 | 0 | 0.075704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051948 | null | null | 0.025974 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
273adb4696572eeb748dbf5f355239de3de33405 | 1,568 | py | Python | code/robotling/boot.py | boeh-da/robotling | 5925deb670803ece305baa0973914dfb8346524c | [
"MIT"
] | null | null | null | code/robotling/boot.py | boeh-da/robotling | 5925deb670803ece305baa0973914dfb8346524c | [
"MIT"
] | null | null | null | code/robotling/boot.py | boeh-da/robotling | 5925deb670803ece305baa0973914dfb8346524c | [
"MIT"
] | 1 | 2021-05-04T09:35:09.000Z | 2021-05-04T09:35:09.000Z | # ----------------------------------------------------------------------------
# Copyright [2017] [Mauro Riva <lemariva@mail.com> <lemariva.com>]
#
# 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 ... | 30.153846 | 78 | 0.627551 | 201 | 1,568 | 4.820896 | 0.572139 | 0.03612 | 0.037152 | 0.033024 | 0.028896 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007496 | 0.149235 | 1,568 | 51 | 79 | 30.745098 | 0.718891 | 0.651786 | 0 | 0.368421 | 0 | 0 | 0.082979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.157895 | 0.263158 | 0 | 0.315789 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
27408a50399fd675c57560cf078e96072213e7ca | 4,883 | py | Python | ripiu/djangocms_aoxomoxoa/admin/options/slider.py | ripiu/djangocms_aoxomoxoa | e801e49259fba739308daa37bc9bbd28ba0a8e27 | [
"BSD-3-Clause"
] | null | null | null | ripiu/djangocms_aoxomoxoa/admin/options/slider.py | ripiu/djangocms_aoxomoxoa | e801e49259fba739308daa37bc9bbd28ba0a8e27 | [
"BSD-3-Clause"
] | null | null | null | ripiu/djangocms_aoxomoxoa/admin/options/slider.py | ripiu/djangocms_aoxomoxoa | e801e49259fba739308daa37bc9bbd28ba0a8e27 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
class SliderUniteOptionsAdmin(admin.ModelAdmin):
'''
Compact theme
Default theme
Grid theme
Slider
'''
fieldsets = (
(_('Navigation options'), {
'classes': ('collapse',),
... | 38.448819 | 77 | 0.584886 | 424 | 4,883 | 6.028302 | 0.216981 | 0.158451 | 0.038341 | 0.034429 | 0.021909 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000623 | 0.343027 | 4,883 | 126 | 78 | 38.753968 | 0.796135 | 0.009216 | 0 | 0 | 0 | 0 | 0.559044 | 0.516216 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02 | 0 | 0.04 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2743c424397d3a686307dc7c5e2274c463951553 | 3,641 | py | Python | scripts/beam_mapper/get_beam_map.py | zjc263/GPU_SDR | a57a29925b915c6eb995eb3c76c4ec34f96c3a0b | [
"Apache-2.0"
] | 9 | 2019-07-23T10:31:18.000Z | 2022-03-15T19:29:26.000Z | scripts/beam_mapper/get_beam_map.py | zjc263/GPU_SDR | a57a29925b915c6eb995eb3c76c4ec34f96c3a0b | [
"Apache-2.0"
] | 5 | 2019-09-11T22:31:29.000Z | 2022-01-25T18:26:56.000Z | scripts/beam_mapper/get_beam_map.py | zjc263/GPU_SDR | a57a29925b915c6eb995eb3c76c4ec34f96c3a0b | [
"Apache-2.0"
] | 7 | 2019-08-29T20:47:56.000Z | 2021-06-10T15:07:35.000Z | #########################################################
# DEVELOPED TO MAKE SINGLE FILE CONTAINING A BEAM MAP #
# OF OPTICALLY COUPLED KIDS #
#########################################################
import numpy as np
import sys,os
import time
import velmex as v
try:
import pyUSRP ... | 41.375 | 172 | 0.614941 | 497 | 3,641 | 4.390342 | 0.37827 | 0.045371 | 0.085701 | 0.026123 | 0.095325 | 0.095325 | 0.065995 | 0 | 0 | 0 | 0 | 0.011989 | 0.221093 | 3,641 | 87 | 173 | 41.850575 | 0.757405 | 0.043944 | 0 | 0.151515 | 0 | 0 | 0.21435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015152 | 0.136364 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
274976eb0b694732378e8eb42a8792a5c398c910 | 530 | py | Python | nymms/utils/tests/test_commands.py | isabella232/nymms | 75fb3d6f56488d9fdd6366557e28acb728377de5 | [
"BSD-2-Clause"
] | 26 | 2015-01-15T23:42:43.000Z | 2022-02-28T09:12:50.000Z | nymms/utils/tests/test_commands.py | cloudtools/nymms | 75fb3d6f56488d9fdd6366557e28acb728377de5 | [
"BSD-2-Clause"
] | 9 | 2015-02-09T15:44:25.000Z | 2016-06-04T21:06:03.000Z | nymms/utils/tests/test_commands.py | isabella232/nymms | 75fb3d6f56488d9fdd6366557e28acb728377de5 | [
"BSD-2-Clause"
] | 13 | 2015-03-05T22:53:24.000Z | 2021-02-11T11:33:33.000Z | import unittest
from nymms.utils import commands
class TestCommands(unittest.TestCase):
def test_execute_failure(self):
with self.assertRaises(commands.CommandFailure):
# Non-existant command
commands.execute('xxxps auwwwx', 10)
def test_execute_timeout(self):
with se... | 27.894737 | 56 | 0.677358 | 60 | 530 | 5.883333 | 0.55 | 0.05949 | 0.11898 | 0.135977 | 0.181303 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014599 | 0.224528 | 530 | 18 | 57 | 29.444444 | 0.844282 | 0.037736 | 0 | 0 | 0 | 0 | 0.066929 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
274e8d639753059550d759feb997c36d0acbb5e0 | 313 | py | Python | 1 - Beginner/1164.py | andrematte/uri-submissions | 796e7fee56650d9e882880318d6e7734038be2dc | [
"MIT"
] | 1 | 2020-09-09T12:48:09.000Z | 2020-09-09T12:48:09.000Z | 1 - Beginner/1164.py | andrematte/uri-submissions | 796e7fee56650d9e882880318d6e7734038be2dc | [
"MIT"
] | null | null | null | 1 - Beginner/1164.py | andrematte/uri-submissions | 796e7fee56650d9e882880318d6e7734038be2dc | [
"MIT"
] | null | null | null | # URI Online Judge 1164
N = int(input())
for i in range(N):
sum = 0
entrada = int(input())
for j in range(1,entrada):
if entrada%j==0:
sum += j
if entrada == sum:
print("{} eh perfeito".format(entrada))
else:
print("{} nao eh perfeito".format(entrada)) | 18.411765 | 51 | 0.533546 | 44 | 313 | 3.795455 | 0.522727 | 0.095808 | 0.131737 | 0.275449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03271 | 0.316294 | 313 | 17 | 51 | 18.411765 | 0.747664 | 0.067093 | 0 | 0 | 0 | 0 | 0.109966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2754ea84788121f14282b9bf6725cfdab6bbd4b1 | 6,488 | py | Python | talks/events/migrations/0001_initial.py | alan-turing-institute/talks.ox | 5e172b7bb7296fcfc2d5c1b5978ec98a6643d90a | [
"Apache-2.0"
] | 5 | 2015-09-03T11:46:07.000Z | 2022-01-12T10:15:50.000Z | talks/events/migrations/0001_initial.py | alan-turing-institute/talks.ox | 5e172b7bb7296fcfc2d5c1b5978ec98a6643d90a | [
"Apache-2.0"
] | 306 | 2015-01-05T10:16:56.000Z | 2021-06-10T08:00:31.000Z | talks/events/migrations/0001_initial.py | alan-turing-institute/talks.ox | 5e172b7bb7296fcfc2d5c1b5978ec98a6643d90a | [
"Apache-2.0"
] | 5 | 2016-04-21T10:40:20.000Z | 2021-01-05T09:15:23.000Z | # Generated by Django 2.0.13 on 2020-07-21 13:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('con... | 58.981818 | 208 | 0.602805 | 651 | 6,488 | 5.87404 | 0.262673 | 0.061192 | 0.057531 | 0.069038 | 0.500262 | 0.460513 | 0.377877 | 0.302824 | 0.274582 | 0.226464 | 0 | 0.009754 | 0.241523 | 6,488 | 109 | 209 | 59.522936 | 0.767324 | 0.00709 | 0 | 0.401961 | 1 | 0 | 0.200932 | 0.00823 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.039216 | 0 | 0.078431 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
275d2b8c3844ee5f596a3577c50a2c9bb7e6ffe8 | 213 | py | Python | geostacks/tests/test1.py | geostacks/GeoStacks | d0546048902aa281047d5589a5ff6974420fdaf4 | [
"BSD-3-Clause"
] | 4 | 2021-05-15T01:21:41.000Z | 2021-06-01T12:45:52.000Z | geostacks/tests/test1.py | geostacks/GeoStacks | d0546048902aa281047d5589a5ff6974420fdaf4 | [
"BSD-3-Clause"
] | 23 | 2021-04-19T21:17:18.000Z | 2021-07-10T01:44:33.000Z | geostacks/tests/test1.py | geostacks/GeoStacks | d0546048902aa281047d5589a5ff6974420fdaf4 | [
"BSD-3-Clause"
] | null | null | null | from geostacks import SpatialIndexLS8
def test1():
ls8 = SpatialIndexLS8()
idxs = ls8.query_pathrow(69, -50) # lat, lon
assert len(idxs.data.index) == 10 or len(idx) == 10 # should find 10 matches | 35.5 | 82 | 0.671362 | 30 | 213 | 4.733333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089286 | 0.211268 | 213 | 6 | 82 | 35.5 | 0.755952 | 0.14554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
275da0f7df868dc15ae3e95ef373d340629b89fb | 462 | py | Python | OoPs/multilevel_inheritance.py | mukul20-21/python_datastructure | 6126722f0742110752fb634a7da1081bdbce9444 | [
"Apache-2.0"
] | null | null | null | OoPs/multilevel_inheritance.py | mukul20-21/python_datastructure | 6126722f0742110752fb634a7da1081bdbce9444 | [
"Apache-2.0"
] | null | null | null | OoPs/multilevel_inheritance.py | mukul20-21/python_datastructure | 6126722f0742110752fb634a7da1081bdbce9444 | [
"Apache-2.0"
] | null | null | null | #base class
class person:
def dislay(self):
print("Here the element of base class person...!!!! \n")
#derived class_1
class employee(person):
def printing(self):
print("Here the element of first element of derived class.....!!!! \n")
# derived class_2
class programmer(employee):
def sh... | 24.315789 | 79 | 0.662338 | 64 | 462 | 4.75 | 0.359375 | 0.197368 | 0.128289 | 0.157895 | 0.164474 | 0.164474 | 0 | 0 | 0 | 0 | 0 | 0.019074 | 0.205628 | 462 | 19 | 80 | 24.315789 | 0.809264 | 0.097403 | 0 | 0 | 0 | 0 | 0.407229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0 | 0.461538 | 0.384615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2766c691fb811359869df969d459d393a7125292 | 554 | py | Python | cloudshell/sdn/odl/flows/remove_openflow_flow.py | QualiSystems/cloudshell-sdn-odl | 47e30b9439dc7b29736d5114ecbfb7f392f8b6b1 | [
"Apache-2.0"
] | 1 | 2017-09-15T06:30:03.000Z | 2017-09-15T06:30:03.000Z | cloudshell/sdn/odl/flows/remove_openflow_flow.py | QualiSystems/cloudshell-sdn-odl | 47e30b9439dc7b29736d5114ecbfb7f392f8b6b1 | [
"Apache-2.0"
] | null | null | null | cloudshell/sdn/odl/flows/remove_openflow_flow.py | QualiSystems/cloudshell-sdn-odl | 47e30b9439dc7b29736d5114ecbfb7f392f8b6b1 | [
"Apache-2.0"
] | null | null | null | class ODLRemoveOpenflowFlow(object):
def __init__(self, odl_client, logger):
"""
:param cloudshell.sdn.odl.client.ODLClient odl_client:
:param logging.Logger logger:
"""
self._odl_client = odl_client
self._logger = logger
def execute_flow(self, node_id, table_id... | 27.7 | 94 | 0.619134 | 70 | 554 | 4.514286 | 0.342857 | 0.170886 | 0.123418 | 0.082278 | 0.094937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279783 | 554 | 19 | 95 | 29.157895 | 0.79198 | 0.277978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
276b1fda2ae3bc67daf4a05d65bf242f7b4dbc36 | 2,661 | py | Python | colour/models/dataset/xtreme_rgb.py | canavandl/colour | a453cd37b6135a9092d5ea5b2aafb8d19134bdff | [
"BSD-3-Clause"
] | 1 | 2019-06-27T11:32:48.000Z | 2019-06-27T11:32:48.000Z | colour/models/dataset/xtreme_rgb.py | canavandl/colour | a453cd37b6135a9092d5ea5b2aafb8d19134bdff | [
"BSD-3-Clause"
] | null | null | null | colour/models/dataset/xtreme_rgb.py | canavandl/colour | a453cd37b6135a9092d5ea5b2aafb8d19134bdff | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Xtreme RGB Colourspace
======================
Defines the *Xtreme RGB* colourspace:
- :attr:`XTREME_RGB_COLOURSPACE`.
See Also
--------
`RGB Colourspaces IPython Notebook
<http://nbviewer.ipython.org/github/colour-science/colour-ipython/blob/master/notebooks/model... | 25.342857 | 115 | 0.718903 | 330 | 2,661 | 5.387879 | 0.306061 | 0.207537 | 0.146232 | 0.03937 | 0.40045 | 0.223847 | 0.209224 | 0.209224 | 0.183352 | 0.183352 | 0 | 0.018427 | 0.163848 | 2,661 | 104 | 116 | 25.586538 | 0.780674 | 0.169861 | 0 | 0 | 0 | 0 | 0.266315 | 0.12261 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
277b41f93056a535f4db6031cd9be22a0efbee7f | 464 | py | Python | pythonprojects/scripy_test/request.py | ErikaPM/projects | 4ff801c829dedfdd8463c1f0b1423baa282d8ef0 | [
"MIT"
] | null | null | null | pythonprojects/scripy_test/request.py | ErikaPM/projects | 4ff801c829dedfdd8463c1f0b1423baa282d8ef0 | [
"MIT"
] | null | null | null | pythonprojects/scripy_test/request.py | ErikaPM/projects | 4ff801c829dedfdd8463c1f0b1423baa282d8ef0 | [
"MIT"
] | null | null | null | import requests
session=requests.Session()
response=session.get('https://www.superfinanciera.gov.co/Superfinanciera-Tasas/generic/activeInterestRates.seam')
print(session.cookies.get_dict())
r = session.post('https://www.superfinanciera.gov.co/Superfinanciera-Tasas/generic/activeInterestRates.seam',
data = {'LoanP... | 42.181818 | 113 | 0.793103 | 54 | 464 | 6.759259 | 0.592593 | 0.082192 | 0.126027 | 0.142466 | 0.427397 | 0.427397 | 0.427397 | 0.427397 | 0.427397 | 0.427397 | 0 | 0.006834 | 0.053879 | 464 | 11 | 114 | 42.181818 | 0.824601 | 0 | 0 | 0 | 0 | 0 | 0.615054 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27802629a8f3b19ea289ffd88029613831350ac4 | 826 | py | Python | kleenextractor/kleenextractor_definition.py | Edenskull/KleenExtractor | bcff22254ffa3692888e755e0488fc2556d02d3e | [
"MIT"
] | null | null | null | kleenextractor/kleenextractor_definition.py | Edenskull/KleenExtractor | bcff22254ffa3692888e755e0488fc2556d02d3e | [
"MIT"
] | null | null | null | kleenextractor/kleenextractor_definition.py | Edenskull/KleenExtractor | bcff22254ffa3692888e755e0488fc2556d02d3e | [
"MIT"
] | null | null | null | from enum import Enum
class KleenExtractorDefinition(Enum):
CREATE_TABLES_SCRIPT = """
DROP TABLE IF EXISTS files;
DROP TABLE IF EXISTS folders;
CREATE TABLE files(
source varchar(255),
name varchar(255),
parent varchar(255),
executed integer... | 33.04 | 103 | 0.57385 | 88 | 826 | 5.272727 | 0.397727 | 0.150862 | 0.047414 | 0.073276 | 0.198276 | 0.198276 | 0.198276 | 0.198276 | 0.198276 | 0 | 0 | 0.04007 | 0.305085 | 826 | 24 | 104 | 34.416667 | 0.768293 | 0 | 0 | 0.363636 | 0 | 0 | 0.745763 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
278064b5b4f5e2fa023c22192239afe41c97d767 | 3,895 | py | Python | src/db_storage/read.py | pps-ti/computer-aided-diagnosys-system-prototype | d66f8561745853f5e61d928d8c2556f11adb3ecc | [
"CC0-1.0",
"0BSD"
] | null | null | null | src/db_storage/read.py | pps-ti/computer-aided-diagnosys-system-prototype | d66f8561745853f5e61d928d8c2556f11adb3ecc | [
"CC0-1.0",
"0BSD"
] | null | null | null | src/db_storage/read.py | pps-ti/computer-aided-diagnosys-system-prototype | d66f8561745853f5e61d928d8c2556f11adb3ecc | [
"CC0-1.0",
"0BSD"
] | null | null | null | import os, sys; sys.path.append(os.path.dirname(os.path.realpath(__file__)))
from conn import db
def get_id(email, password, akun_rs = True, regis = "N"):
# TO CHECKING THE USER ID IN DATABASE
if regis != "N" and akun_rs:
for i in db.child('akun_rs').get().val():
if db.child('akun_rs/'+i).get().val()['em... | 41.88172 | 202 | 0.638511 | 579 | 3,895 | 4.150259 | 0.17962 | 0.059925 | 0.100707 | 0.097378 | 0.561382 | 0.519351 | 0.505618 | 0.428631 | 0.330004 | 0.238868 | 0 | 0.00123 | 0.16534 | 3,895 | 93 | 203 | 41.88172 | 0.737927 | 0.056996 | 0 | 0.229508 | 0 | 0 | 0.188695 | 0.012561 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114754 | false | 0.065574 | 0.098361 | 0.016393 | 0.344262 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2782fc6e92ac95d519a71daf3ab003eca983b8d2 | 1,867 | py | Python | src/command_modules/azure-cli-documentdb/azure/cli/command_modules/documentdb/commands.py | enterstudio/azure-cli | b0504c3b634e17f1afc944a9572864a40da6bc18 | [
"MIT"
] | null | null | null | src/command_modules/azure-cli-documentdb/azure/cli/command_modules/documentdb/commands.py | enterstudio/azure-cli | b0504c3b634e17f1afc944a9572864a40da6bc18 | [
"MIT"
] | null | null | null | src/command_modules/azure-cli-documentdb/azure/cli/command_modules/documentdb/commands.py | enterstudio/azure-cli | b0504c3b634e17f1afc944a9572864a40da6bc18 | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 81.173913 | 150 | 0.756829 | 201 | 1,867 | 6.572139 | 0.313433 | 0.09841 | 0.10598 | 0.181681 | 0.457229 | 0.339137 | 0.154428 | 0 | 0 | 0 | 0 | 0 | 0.050348 | 1,867 | 22 | 151 | 84.863636 | 0.745065 | 0.195501 | 0 | 0 | 0 | 0 | 0.475267 | 0.343583 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27831fad78dedf64cf6ad2874fab895cdb0943b5 | 579 | py | Python | personal_portfolio/vendor/migrations/0016_masterkbli.py | numbstudent/ghvms | 6d5f93c76498e0fa167b0ce7dfed53764242626f | [
"MIT"
] | null | null | null | personal_portfolio/vendor/migrations/0016_masterkbli.py | numbstudent/ghvms | 6d5f93c76498e0fa167b0ce7dfed53764242626f | [
"MIT"
] | null | null | null | personal_portfolio/vendor/migrations/0016_masterkbli.py | numbstudent/ghvms | 6d5f93c76498e0fa167b0ce7dfed53764242626f | [
"MIT"
] | null | null | null | # Generated by Django 3.1.6 on 2021-02-25 02:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('vendor', '0015_bankvendorperusahaan'),
]
operations = [
migrations.CreateModel(
name='MasterKbli',
fields=[
... | 26.318182 | 114 | 0.578584 | 58 | 579 | 5.672414 | 0.758621 | 0.091185 | 0.109422 | 0.145897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058394 | 0.290155 | 579 | 21 | 115 | 27.571429 | 0.742092 | 0.07772 | 0 | 0 | 1 | 0 | 0.101504 | 0.046992 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2788785deabf6782468675807c2e223e47ef712c | 841 | py | Python | bp_assister.py | jainakshay91/UserAssociation | e37d37ec85e73efb4b2223510d4192a12c44938a | [
"MIT"
] | 1 | 2021-08-02T15:17:30.000Z | 2021-08-02T15:17:30.000Z | bp_assister.py | jainakshay91/MWC_Demo | c4e5e909c565af959158ef6ec68c433f2e0c4c49 | [
"MIT"
] | 2 | 2021-04-03T07:55:27.000Z | 2021-04-03T07:55:27.000Z | bp_assister.py | jainakshay91/UserAssociation | e37d37ec85e73efb4b2223510d4192a12c44938a | [
"MIT"
] | null | null | null | # ====================================================================================================
# This file provides class with the necessary sub functions for the calculation of breakpoint distance
# ====================================================================================================
class bp_a... | 33.64 | 102 | 0.372176 | 94 | 841 | 3.234043 | 0.531915 | 0.082237 | 0.069079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054701 | 0.3044 | 841 | 24 | 103 | 35.041667 | 0.464957 | 0.393579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
278f2e36732b7e85e49471e6a8919b16cf3181d4 | 1,779 | py | Python | tests/test_scripts.py | jscheytt/endo-loc | e425716e434087157ada3e35c309281dda3eca62 | [
"Apache-2.0"
] | null | null | null | tests/test_scripts.py | jscheytt/endo-loc | e425716e434087157ada3e35c309281dda3eca62 | [
"Apache-2.0"
] | null | null | null | tests/test_scripts.py | jscheytt/endo-loc | e425716e434087157ada3e35c309281dda3eca62 | [
"Apache-2.0"
] | null | null | null | import subprocess
import os
import pytest
import helper.helper as hlp
import tests.conftest as cft
def run_python_subprocess(*args):
return subprocess.run(["python", *args], cwd=pytest.config.rootdir.strpath)
def test_convert_labels():
length_orig = hlp.file_length(cft.eval_label_list)
ret = run_pytho... | 33.566038 | 102 | 0.655987 | 275 | 1,779 | 3.996364 | 0.323636 | 0.049136 | 0.047316 | 0.019108 | 0.307552 | 0.199272 | 0.188353 | 0.147407 | 0.147407 | 0.147407 | 0 | 0.003037 | 0.259696 | 1,779 | 52 | 103 | 34.211538 | 0.831435 | 0.077572 | 0 | 0.15 | 0 | 0 | 0.044621 | 0.033007 | 0 | 0 | 0 | 0.019231 | 0.2 | 1 | 0.075 | false | 0 | 0.15 | 0.025 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
279a8738c0594879f3f8d2d28b931ed9fb64144e | 1,119 | py | Python | 02 - Multiple Linear Regression/MLR.py | abdulKarim002/Regression | ba69eea14177977cb60abe11f3ae5b1babde2f45 | [
"MIT"
] | 1 | 2019-05-21T02:50:06.000Z | 2019-05-21T02:50:06.000Z | 02 - Multiple Linear Regression/MLR.py | abdulKarim002/Regression | ba69eea14177977cb60abe11f3ae5b1babde2f45 | [
"MIT"
] | null | null | null | 02 - Multiple Linear Regression/MLR.py | abdulKarim002/Regression | ba69eea14177977cb60abe11f3ae5b1babde2f45 | [
"MIT"
] | 1 | 2018-10-24T04:40:23.000Z | 2018-10-24T04:40:23.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Aug 18 23:20:36 2018
@author: abdul
"""
# Multi Linear Regression
import numpy as np #for mathematical calculation
import matplotlib.pyplot as plt #for ploting nice chat and graph
import pandas as pd
dataset = pd.read_csv('50_Startups.csv')
X =... | 26.642857 | 91 | 0.759607 | 165 | 1,119 | 5.012121 | 0.545455 | 0.039903 | 0.031439 | 0.036276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025853 | 0.135836 | 1,119 | 41 | 92 | 27.292683 | 0.829369 | 0.31546 | 0 | 0 | 0 | 0 | 0.020027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
27ae48a3f2b66747ca2fb2a57142f96278ba70a7 | 446 | py | Python | server/ImageQueue.py | PyCN/ImageServer | 1d8cdb21ddad2eef8d1f911a64e7dfa12c4d5885 | [
"Apache-2.0"
] | 9 | 2017-12-05T06:38:26.000Z | 2019-01-17T03:01:46.000Z | server/ImageQueue.py | PyCN/ImageServer | 1d8cdb21ddad2eef8d1f911a64e7dfa12c4d5885 | [
"Apache-2.0"
] | 1 | 2019-01-17T03:03:41.000Z | 2019-01-17T03:03:41.000Z | server/ImageQueue.py | PyCN/ImageServer | 1d8cdb21ddad2eef8d1f911a64e7dfa12c4d5885 | [
"Apache-2.0"
] | 6 | 2017-04-20T07:55:51.000Z | 2019-03-13T03:45:10.000Z | #coding=utf-8
from util import RedisUtil
from util import FileUtil
class ImageQueue:
def __init__(self,prepare_dir,queue_dir):
self.prepare_dir = prepare_dir
self.queue_dir = queue_dir
def transfer(self,num=100,size):
images = RedisUtil.pop(num,"prepare")
if images:
if RedisUtil.push(images,"image") and ... | 24.777778 | 67 | 0.757848 | 66 | 446 | 4.939394 | 0.469697 | 0.122699 | 0.128834 | 0.116564 | 0.134969 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010444 | 0.141256 | 446 | 17 | 68 | 26.235294 | 0.840731 | 0.026906 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27b1b41b00e02f25f931b66d1e9416ea1af55027 | 2,898 | py | Python | src/scheduled_thread_pool_executor/ScheduledTask.py | syogaraj/scheduled_thread_pool_executor | 746671b00d58a601dd117dd29fbb715f9c831e39 | [
"MIT"
] | null | null | null | src/scheduled_thread_pool_executor/ScheduledTask.py | syogaraj/scheduled_thread_pool_executor | 746671b00d58a601dd117dd29fbb715f9c831e39 | [
"MIT"
] | null | null | null | src/scheduled_thread_pool_executor/ScheduledTask.py | syogaraj/scheduled_thread_pool_executor | 746671b00d58a601dd117dd29fbb715f9c831e39 | [
"MIT"
] | null | null | null | """Wrapper for the task submitted to ScheduledThreadPoolExecutor class"""
import time
from typing import Callable
class ScheduledTask:
def __init__(self, runnable: Callable, initial_delay: int, period: int, *args, time_func=time.time, **kwargs):
super().__init__()
self.runnable = runnable
... | 36.225 | 183 | 0.623533 | 371 | 2,898 | 4.549865 | 0.237197 | 0.037915 | 0.035545 | 0.028436 | 0.113744 | 0.040284 | 0.040284 | 0.040284 | 0 | 0 | 0 | 0.019868 | 0.270531 | 2,898 | 79 | 184 | 36.683544 | 0.778619 | 0.034852 | 0 | 0.09375 | 0 | 0.015625 | 0.108961 | 0.025806 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.03125 | 0.109375 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
27b32e4301b68cbce029467d67db9db810666d70 | 356 | py | Python | backend/blog/models.py | adityamittl/Winter-is-comming | d1bb490b0e5bca76e15c1f314fb332f2258f60d9 | [
"MIT"
] | 2 | 2021-10-30T11:28:43.000Z | 2022-01-08T08:33:16.000Z | backend/blog/models.py | adityamittl/Winter-is-comming | d1bb490b0e5bca76e15c1f314fb332f2258f60d9 | [
"MIT"
] | null | null | null | backend/blog/models.py | adityamittl/Winter-is-comming | d1bb490b0e5bca76e15c1f314fb332f2258f60d9 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django.utils.timezone import now
class blog(models.Model):
by = models.ForeignKey(User,on_delete=models.CASCADE)
date = models.DateField(default= now)
title = models.CharField(max_length=500)
body = models.TextField()
lik... | 32.363636 | 57 | 0.755618 | 49 | 356 | 5.44898 | 0.653061 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013115 | 0.143258 | 356 | 10 | 58 | 35.6 | 0.862295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
27b5ee8e1a38e37d5f878d9b0a8e74059aa56b94 | 1,952 | py | Python | multipy/scripts/analyze_data.py | OrionisBio/multipy | 9eff1864e434a93fd8d0f86d9284244c748557e1 | [
"BSD-3-Clause"
] | 84 | 2018-03-16T12:45:15.000Z | 2022-03-14T11:22:00.000Z | multipy/scripts/analyze_data.py | OrionisBio/multipy | 9eff1864e434a93fd8d0f86d9284244c748557e1 | [
"BSD-3-Clause"
] | 7 | 2018-09-03T11:38:24.000Z | 2022-02-22T00:00:35.000Z | multipy/scripts/analyze_data.py | OrionisBio/multipy | 9eff1864e434a93fd8d0f86d9284244c748557e1 | [
"BSD-3-Clause"
] | 19 | 2018-06-19T16:14:37.000Z | 2022-02-14T12:24:14.000Z | # -*- encoding: utf-8 -*-
"""Script for analyzing data from the simulated primary and follow-up
experiments."""
# Allow importing modules from parent directory.
import sys
sys.path.append('..')
from fdr import lsu, tst, qvalue
from fwer import bonferroni, sidak, hochberg, holm_bonferroni
from permutation import tfr_p... | 30.984127 | 73 | 0.685963 | 275 | 1,952 | 4.661818 | 0.407273 | 0.037442 | 0.042122 | 0.037442 | 0.117785 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011222 | 0.178279 | 1,952 | 62 | 74 | 31.483871 | 0.78803 | 0.119877 | 0 | 0 | 0 | 0 | 0.114485 | 0.017078 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0 | false | 0 | 0.189189 | 0 | 0.189189 | 0.108108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27b5fa48155ce1e9cc12b4db7bd48c1e9df7a92e | 217 | py | Python | agentseir_vi/model/utils.py | johnurbanik/ABM-SEIR | 4b260407519c9c202f8522f2a9b9098836c3711f | [
"Apache-2.0"
] | 1 | 2020-08-17T20:41:16.000Z | 2020-08-17T20:41:16.000Z | agentseir_vi/model/utils.py | johnurbanik/ABM-SEIR | 4b260407519c9c202f8522f2a9b9098836c3711f | [
"Apache-2.0"
] | null | null | null | agentseir_vi/model/utils.py | johnurbanik/ABM-SEIR | 4b260407519c9c202f8522f2a9b9098836c3711f | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
def log_to_file(filename, message):
log_message = f'{datetime.now()}::: {message}'
with open(filename, 'a+') as fl:
fl.write(log_message + '\n')
print(log_message) | 21.7 | 50 | 0.64977 | 30 | 217 | 4.533333 | 0.633333 | 0.220588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198157 | 217 | 10 | 51 | 21.7 | 0.781609 | 0 | 0 | 0 | 0 | 0 | 0.151376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27c4eb188cdc4c49121eb63169be3221832191ad | 2,088 | py | Python | exatomic/qchem/output.py | herbertludowieg/exatomic | d177781a649ba3a12e5c1147672767ac4a388a6c | [
"Apache-2.0"
] | 11 | 2016-08-01T15:11:39.000Z | 2020-09-18T00:00:29.000Z | exatomic/qchem/output.py | herbertludowieg/exatomic | d177781a649ba3a12e5c1147672767ac4a388a6c | [
"Apache-2.0"
] | 121 | 2016-07-09T03:20:15.000Z | 2021-12-07T01:43:02.000Z | exatomic/qchem/output.py | herbertludowieg/exatomic | d177781a649ba3a12e5c1147672767ac4a388a6c | [
"Apache-2.0"
] | 9 | 2016-07-13T12:39:39.000Z | 2022-02-28T06:58:43.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2015-2020, Exa Analytics Development Team
# Distributed under the terms of the Apache License 2.0
"""
Q-Chem Ouput Editor
#######################
Editor classes for simple Q-Chem output files
"""
import six
import numpy as np
import pandas as pd
from exa import TypedMeta
from ex... | 33.142857 | 92 | 0.636973 | 260 | 2,088 | 5.023077 | 0.457692 | 0.05513 | 0.049005 | 0.045942 | 0.032159 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015518 | 0.228448 | 2,088 | 62 | 93 | 33.677419 | 0.795158 | 0.168103 | 0 | 0 | 0 | 0 | 0.078488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.23913 | 0 | 0.543478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
27cb9ea00f6bc51782cf287807199506cfadbe2d | 980 | py | Python | data_api/migrations/0001_initial.py | quiquent/stackbuild | d9e4c68cb6d2a4712b292fbf80905eb22471064b | [
"Apache-2.0"
] | null | null | null | data_api/migrations/0001_initial.py | quiquent/stackbuild | d9e4c68cb6d2a4712b292fbf80905eb22471064b | [
"Apache-2.0"
] | null | null | null | data_api/migrations/0001_initial.py | quiquent/stackbuild | d9e4c68cb6d2a4712b292fbf80905eb22471064b | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.8 on 2021-10-31 07:55
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Dataset',
fields=[
('id', models.BigAutoFie... | 32.666667 | 117 | 0.558163 | 93 | 980 | 5.774194 | 0.602151 | 0.083799 | 0.100559 | 0.134078 | 0.256983 | 0.156425 | 0.156425 | 0.156425 | 0 | 0 | 0 | 0.037901 | 0.3 | 980 | 29 | 118 | 33.793103 | 0.744898 | 0.045918 | 0 | 0 | 1 | 0 | 0.072883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27cd8b214ca96ae10205845b8ab16178d24a348b | 294 | py | Python | setup.py | yupix/MisskeyNotFoundFixer | 929c35b50e175cab4d519b1aa4daae28bb2f6270 | [
"MIT"
] | null | null | null | setup.py | yupix/MisskeyNotFoundFixer | 929c35b50e175cab4d519b1aa4daae28bb2f6270 | [
"MIT"
] | null | null | null | setup.py | yupix/MisskeyNotFoundFixer | 929c35b50e175cab4d519b1aa4daae28bb2f6270 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='mnff',
version='0.0.1',
author='yupix',
description='',
packages=find_packages(),
install_requires=['mi.py'],
entry_points={
'console_scripts': [
'mnff=mnff.cli:main',
]
}
)
| 16.333333 | 43 | 0.564626 | 31 | 294 | 5.193548 | 0.774194 | 0.149068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014151 | 0.278912 | 294 | 17 | 44 | 17.294118 | 0.745283 | 0 | 0 | 0 | 0 | 0 | 0.176871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27cf63dcc3d16e28b5a541bba7bf9ad6d2f9b712 | 7,522 | py | Python | core/report.py | Raybeam/rb_status_plugin | f0b85ee18d8bfeba9c19696f5af574857213e521 | [
"MIT"
] | 12 | 2020-07-09T17:19:00.000Z | 2021-07-19T19:11:11.000Z | core/report.py | Raybeam/rb_status_plugin | f0b85ee18d8bfeba9c19696f5af574857213e521 | [
"MIT"
] | 19 | 2020-06-02T18:22:29.000Z | 2021-04-07T18:18:10.000Z | core/report.py | Raybeam/rb_status_plugin | f0b85ee18d8bfeba9c19696f5af574857213e521 | [
"MIT"
] | 1 | 2020-07-18T17:45:55.000Z | 2020-07-18T17:45:55.000Z | import inflection
import datetime
from airflow.utils.db import provide_session
from airflow.configuration import conf
from airflow.exceptions import DagNotFound, DagRunAlreadyExists
from airflow import models
from airflow.models import DagBag, DagModel, DagRun, Variable
from airflow.utils import timezone
from airflow.... | 30.702041 | 88 | 0.643313 | 948 | 7,522 | 4.82173 | 0.197257 | 0.041566 | 0.025596 | 0.018377 | 0.180923 | 0.117042 | 0.10151 | 0.080508 | 0.066944 | 0.042441 | 0 | 0.000365 | 0.271603 | 7,522 | 244 | 89 | 30.827869 | 0.833911 | 0.151422 | 0 | 0.110429 | 0 | 0 | 0.047681 | 0.014223 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202454 | false | 0 | 0.079755 | 0.006135 | 0.374233 | 0.006135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27dee02ff860a61cd3978c5b5f9445bc91e11d15 | 11,505 | py | Python | MainForm.py | tayyipgoren/massMailerBCC | c8418ba4b5eba5d46fa8bcfef13e8520d8159011 | [
"MIT"
] | 2 | 2019-04-14T14:25:20.000Z | 2019-07-09T07:00:24.000Z | MainForm.py | tayyipgoren/massMailerBCC | c8418ba4b5eba5d46fa8bcfef13e8520d8159011 | [
"MIT"
] | null | null | null | MainForm.py | tayyipgoren/massMailerBCC | c8418ba4b5eba5d46fa8bcfef13e8520d8159011 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'untitled.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
import massMailerwithBCC as mail
from PyQt4 import QtTest
try:
_fromUtf8 ... | 50.021739 | 157 | 0.707692 | 1,177 | 11,505 | 6.762107 | 0.175021 | 0.067848 | 0.016334 | 0.024124 | 0.302802 | 0.283453 | 0.196884 | 0.18432 | 0.18432 | 0.152029 | 0 | 0.01392 | 0.188266 | 11,505 | 229 | 158 | 50.240175 | 0.838312 | 0.015819 | 0 | 0.13 | 1 | 0 | 0.064857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.005 | 0.02 | 0.015 | 0.09 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27e4f98254c29025978a7316d4928f71623cb87b | 470 | py | Python | src/utils/constants.py | daudprobst/master_thesis | cb0aca50e928439e8d877976ab8ae4986150ba52 | [
"MIT"
] | null | null | null | src/utils/constants.py | daudprobst/master_thesis | cb0aca50e928439e8d877976ab8ae4986150ba52 | [
"MIT"
] | null | null | null | src/utils/constants.py | daudprobst/master_thesis | cb0aca50e928439e8d877976ab8ae4986150ba52 | [
"MIT"
] | null | null | null | """Color palette 'The New Defaults' from clrs.cc"""
clrs = {
"aqua": "#7FDBFF",
"blue": "#0074D9",
"navy": "#001F3F",
"teal": "#39CCCC",
"green": "#2ECC40",
"olive": "#3D9970",
"lime": "#01FF70",
"yellow": "#FFDC00",
"orange": "#FF851B",
"red": "#FF4136",
"fuchsia": "#F012BE"... | 22.380952 | 51 | 0.480851 | 43 | 470 | 5.255814 | 0.976744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140056 | 0.240426 | 470 | 20 | 52 | 23.5 | 0.492997 | 0.095745 | 0 | 0 | 0 | 0 | 0.484487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27e5ae54b5c0d9ab2a366fa52e3a317eed953e3c | 4,675 | py | Python | ebooks.py | ashkitten/ananas-ebooks | 69481d7c6523873667a4817d440d36d6e8289b78 | [
"MIT"
] | null | null | null | ebooks.py | ashkitten/ananas-ebooks | 69481d7c6523873667a4817d440d36d6e8289b78 | [
"MIT"
] | null | null | null | ebooks.py | ashkitten/ananas-ebooks | 69481d7c6523873667a4817d440d36d6e8289b78 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from mastodon import Mastodon
import markovify
import html
import json
import os
import sys
import getopt
from ananas import PineappleBot, hourly, schedule, reply, html_strip_tags, daily
class ebooksBot(PineappleBot):
def start(self):
try:
self.exclude_replies = bool(self.... | 34.88806 | 150 | 0.625455 | 612 | 4,675 | 4.671569 | 0.346405 | 0.019587 | 0.020986 | 0.019937 | 0.053865 | 0.01469 | 0 | 0 | 0 | 0 | 0 | 0.007538 | 0.262246 | 4,675 | 133 | 151 | 35.150376 | 0.821398 | 0.123422 | 0 | 0.133929 | 0 | 0 | 0.065756 | 0 | 0 | 0 | 0 | 0.007519 | 0 | 0 | null | null | 0.008929 | 0.071429 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
27f20c88c33774240130b3f246f2dcbf8785cd64 | 901 | py | Python | password_generator/modules/users.py | rhoenkelevra/python_simple_applications | 28ceb5f9fe7ecf11d606d49463385e92927e8f98 | [
"MIT"
] | null | null | null | password_generator/modules/users.py | rhoenkelevra/python_simple_applications | 28ceb5f9fe7ecf11d606d49463385e92927e8f98 | [
"MIT"
] | null | null | null | password_generator/modules/users.py | rhoenkelevra/python_simple_applications | 28ceb5f9fe7ecf11d606d49463385e92927e8f98 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import mysql.connector as mydb
import typing
from modules.connector import connect as cnn
cursor = cnn.cursor()
class Users:
users = []
def __init__(self, user):
self._user = user
def add_user():
name = input("Enter you name: ")
login = input("Enter you ... | 23.710526 | 77 | 0.574917 | 102 | 901 | 5.019608 | 0.480392 | 0.117188 | 0.101563 | 0.085938 | 0.257813 | 0.257813 | 0.257813 | 0.257813 | 0.257813 | 0.257813 | 0 | 0.01278 | 0.305216 | 901 | 37 | 78 | 24.351351 | 0.805112 | 0.023307 | 0 | 0.230769 | 0 | 0 | 0.257403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.384615 | 0.115385 | 0 | 0.346154 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
27f6b8dcedb8da48707be84e54dd1fff9b4c0a30 | 3,168 | py | Python | ote_sdk/ote_sdk/usecases/evaluation/metrics_helper.py | vyashina/training_extensions | e7aa33af94a1f8004d3ea2df259d99234dfca046 | [
"Apache-2.0"
] | null | null | null | ote_sdk/ote_sdk/usecases/evaluation/metrics_helper.py | vyashina/training_extensions | e7aa33af94a1f8004d3ea2df259d99234dfca046 | [
"Apache-2.0"
] | null | null | null | ote_sdk/ote_sdk/usecases/evaluation/metrics_helper.py | vyashina/training_extensions | e7aa33af94a1f8004d3ea2df259d99234dfca046 | [
"Apache-2.0"
] | null | null | null | """ This module contains the helper functions which can be called directly by
algorithm implementers to obtain the metrices """
# INTEL CONFIDENTIAL
#
# Copyright (C) 2021 Intel Corporation
#
# This software and the related documents are Intel copyrighted materials, and
# your use of them is governed by the express li... | 39.111111 | 118 | 0.709912 | 365 | 3,168 | 6.076712 | 0.378082 | 0.021641 | 0.022543 | 0.032462 | 0.333183 | 0.220469 | 0.196123 | 0.145176 | 0.107304 | 0.107304 | 0 | 0.001653 | 0.236111 | 3,168 | 80 | 119 | 39.6 | 0.914876 | 0.553977 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.107143 | false | 0 | 0.178571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.