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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fb4e27ed9f0165f7474ca1a89bce202114f9a019 | 3,645 | py | Python | app.py | jasoncordis/spotify-flask | 1e7f2955ab9d825a5f32f494b2966f18c460f311 | [
"Apache-2.0"
] | 58 | 2017-04-20T17:25:25.000Z | 2021-02-05T21:41:25.000Z | app.py | jasoncordis/spotify-flask | 1e7f2955ab9d825a5f32f494b2966f18c460f311 | [
"Apache-2.0"
] | 3 | 2018-04-08T22:03:25.000Z | 2020-05-07T06:03:21.000Z | app.py | jasoncordis/spotify-flask | 1e7f2955ab9d825a5f32f494b2966f18c460f311 | [
"Apache-2.0"
] | 17 | 2017-12-03T04:26:48.000Z | 2021-01-26T21:18:27.000Z | '''
This code was based on these repositories,
so special thanks to:
https://github.com/datademofun/spotify-flask
https://github.com/drshrey/spotify-flask-auth-example
'''
from flask import Flask, request, redirect, g, render_template, session
from spotify_requests import spotify
app = Flask(... | 27.613636 | 72 | 0.609877 | 416 | 3,645 | 5.115385 | 0.242788 | 0.06109 | 0.093985 | 0.046992 | 0.220395 | 0.077068 | 0.077068 | 0.045113 | 0.045113 | 0.045113 | 0 | 0.000731 | 0.249657 | 3,645 | 131 | 73 | 27.824427 | 0.777331 | 0.104801 | 0 | 0.121951 | 0 | 0 | 0.131107 | 0.01577 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134146 | false | 0 | 0.02439 | 0.060976 | 0.341463 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb4e569bf8fd09a1c7d6371a76f1b851a6a2772b | 7,275 | py | Python | ckanext-datagathering/ckanext/datagathering/commands/migrate.py | smallmedia/iod-ckan | dfd85b41286fe86924ec16b0a88efc7292848ceb | [
"Apache-2.0"
] | 4 | 2017-06-12T15:18:30.000Z | 2019-10-11T15:12:43.000Z | ckanext-datagathering/ckanext/datagathering/commands/migrate.py | smallmedia/iod-ckan | dfd85b41286fe86924ec16b0a88efc7292848ceb | [
"Apache-2.0"
] | 64 | 2017-05-14T22:15:53.000Z | 2020-03-08T15:26:49.000Z | ckanext-datagathering/ckanext/datagathering/commands/migrate.py | smallmedia/iod-ckan | dfd85b41286fe86924ec16b0a88efc7292848ceb | [
"Apache-2.0"
] | 2 | 2018-09-08T08:02:25.000Z | 2020-04-24T13:02:06.000Z | from ckan import model
from ckan.lib.cli import CkanCommand
from ckan.lib.munge import munge_title_to_name, substitute_ascii_equivalents
from ckan.logic import get_action
from ckan.lib.helpers import render_markdown
from ckan.plugins import toolkit
import logging
log = logging.getLogger(__name__)
class MigrationCom... | 39.538043 | 121 | 0.576082 | 774 | 7,275 | 5.200258 | 0.25969 | 0.026832 | 0.02087 | 0.011925 | 0.150062 | 0.124472 | 0.104845 | 0.104845 | 0.041739 | 0 | 0 | 0.005503 | 0.325636 | 7,275 | 183 | 122 | 39.754098 | 0.814921 | 0.192852 | 0 | 0.122807 | 0 | 0 | 0.19145 | 0.046401 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061404 | false | 0 | 0.061404 | 0 | 0.201754 | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb4fc030e59a7a7273510289cf7ba58993b6464b | 2,593 | py | Python | tests/tests_lambda.py | schwin007/Lambda-Metric-Shipper | 8659794cfbf54fe74eaa8bb3f956555d101af604 | [
"Apache-2.0"
] | null | null | null | tests/tests_lambda.py | schwin007/Lambda-Metric-Shipper | 8659794cfbf54fe74eaa8bb3f956555d101af604 | [
"Apache-2.0"
] | 2 | 2019-04-05T21:38:16.000Z | 2019-12-25T07:15:37.000Z | tests/tests_lambda.py | schwin007/Lambda-Metric-Shipper | 8659794cfbf54fe74eaa8bb3f956555d101af604 | [
"Apache-2.0"
] | 6 | 2018-07-29T11:41:35.000Z | 2020-12-02T12:22:52.000Z | import logging
import os
import unittest
from logging.config import fileConfig
from src.lambda_function import validate_configurations as validate
# create logger assuming running from ./run script
fileConfig('tests/logging_config.ini')
logger = logging.getLogger(__name__)
class TestLambdaFunction(unittest.TestCase... | 35.520548 | 103 | 0.687235 | 287 | 2,593 | 6.041812 | 0.310105 | 0.063437 | 0.068627 | 0.086505 | 0.429642 | 0.341984 | 0.279123 | 0.213379 | 0.182238 | 0.182238 | 0 | 0.004909 | 0.214423 | 2,593 | 73 | 104 | 35.520548 | 0.846343 | 0.042808 | 0 | 0.211538 | 0 | 0 | 0.35596 | 0.136162 | 0 | 0 | 0 | 0 | 0.134615 | 1 | 0.115385 | false | 0 | 0.096154 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb4fd1b54e5406173715c8f8b6132187b8fbeda2 | 1,954 | py | Python | script/QA_LSTM.py | xjtushilei/Answer_Selection | 4a827f64e5361eab951713c2350632c5278404dd | [
"MIT"
] | 4 | 2017-06-19T01:15:55.000Z | 2020-02-29T03:45:26.000Z | script/QA_LSTM_v2.py | xjtushilei/Answer_Selection | 4a827f64e5361eab951713c2350632c5278404dd | [
"MIT"
] | null | null | null | script/QA_LSTM_v2.py | xjtushilei/Answer_Selection | 4a827f64e5361eab951713c2350632c5278404dd | [
"MIT"
] | null | null | null | import numpy as np
import tensorflow
from keras import Input, optimizers
from keras import backend as K
from keras.engine import Model
from keras import layers
from keras.layers import Bidirectional, LSTM, merge, Reshape, Lambda, Dense, BatchNormalization
K.clear_session()
print("设置显卡信息...")
# 设置tendorflow对显存使用按需增长
co... | 31.516129 | 95 | 0.720061 | 255 | 1,954 | 5.305882 | 0.364706 | 0.026608 | 0.033259 | 0.026608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015957 | 0.134084 | 1,954 | 61 | 96 | 32.032787 | 0.783688 | 0.027124 | 0 | 0 | 0 | 0 | 0.088173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.155556 | 0 | 0.155556 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb51e6590cca3f878c6c2b90af8869c140eb763b | 2,128 | py | Python | server/tests/steps/sql_translator/test_filter.py | davinov/weaverbird | 3f907f080729ba70be8872d6c5ed0fdcec9b8a9a | [
"BSD-3-Clause"
] | 54 | 2019-11-20T15:07:39.000Z | 2022-03-24T22:13:51.000Z | server/tests/steps/sql_translator/test_filter.py | ToucanToco/weaverbird | 7cbd3cc612437a876470cc872efba69526694d62 | [
"BSD-3-Clause"
] | 786 | 2019-10-20T11:48:37.000Z | 2022-03-23T08:58:18.000Z | server/tests/steps/sql_translator/test_filter.py | davinov/weaverbird | 3f907f080729ba70be8872d6c5ed0fdcec9b8a9a | [
"BSD-3-Clause"
] | 10 | 2019-11-21T10:16:16.000Z | 2022-03-21T10:34:06.000Z | import pytest
from weaverbird.backends.sql_translator.metadata import SqlQueryMetadataManager
from weaverbird.backends.sql_translator.steps import translate_filter
from weaverbird.backends.sql_translator.types import SQLQuery
from weaverbird.pipeline.conditions import ComparisonCondition
from weaverbird.pipeline.steps... | 40.150943 | 111 | 0.706767 | 244 | 2,128 | 5.942623 | 0.245902 | 0.068966 | 0.075862 | 0.074483 | 0.696552 | 0.60069 | 0.527586 | 0.517931 | 0.517931 | 0.517931 | 0 | 0.01397 | 0.192669 | 2,128 | 52 | 112 | 40.923077 | 0.830035 | 0 | 0 | 0.340426 | 0 | 0 | 0.307801 | 0.068609 | 0 | 0 | 0 | 0 | 0.042553 | 1 | 0.042553 | false | 0 | 0.12766 | 0 | 0.170213 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb5248790acad20b7f6c753089b4b879cf218187 | 4,322 | py | Python | nose2/plugins/loader/testcases.py | leth/nose2 | a8fb776a0533264e0b123fc01237b9d2a039e9d0 | [
"BSD-2-Clause"
] | null | null | null | nose2/plugins/loader/testcases.py | leth/nose2 | a8fb776a0533264e0b123fc01237b9d2a039e9d0 | [
"BSD-2-Clause"
] | null | null | null | nose2/plugins/loader/testcases.py | leth/nose2 | a8fb776a0533264e0b123fc01237b9d2a039e9d0 | [
"BSD-2-Clause"
] | null | null | null | """
Load tests from :class:`unittest.TestCase` subclasses.
This plugin implements :func:`loadTestsFromName` and
:func:`loadTestsFromModule` to load tests from
:class:`unittest.TestCase` subclasses found in modules or named on the
command line.
"""
# Adapted from unittest2/loader.py from the unittest2 plugins branch.... | 37.258621 | 85 | 0.635817 | 458 | 4,322 | 5.925764 | 0.334061 | 0.035372 | 0.01437 | 0.034267 | 0.109801 | 0.109801 | 0.109801 | 0.037583 | 0.037583 | 0 | 0 | 0.004507 | 0.281351 | 4,322 | 115 | 86 | 37.582609 | 0.869285 | 0.196205 | 0 | 0.1 | 0 | 0 | 0.02179 | 0 | 0 | 0 | 0 | 0.008696 | 0 | 1 | 0.075 | false | 0 | 0.05 | 0 | 0.225 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb56942879beca982f2985123f64367d7b06b779 | 1,431 | py | Python | easy_rec/python/utils/fg_util.py | xia-huang-411303/EasyRec | 7b2050dddc0bfec9e551e2199a36414a3ee82588 | [
"Apache-2.0"
] | 61 | 2021-08-19T06:10:03.000Z | 2021-10-09T06:44:54.000Z | easy_rec/python/utils/fg_util.py | xia-huang-411303/EasyRec | 7b2050dddc0bfec9e551e2199a36414a3ee82588 | [
"Apache-2.0"
] | 41 | 2021-09-08T03:02:42.000Z | 2021-09-29T09:00:57.000Z | easy_rec/python/utils/fg_util.py | xia-huang-411303/EasyRec | 7b2050dddc0bfec9e551e2199a36414a3ee82588 | [
"Apache-2.0"
] | 11 | 2021-08-20T06:19:08.000Z | 2021-10-02T14:55:39.000Z | import json
import logging
import tensorflow as tf
from easy_rec.python.protos.dataset_pb2 import DatasetConfig
from easy_rec.python.protos.feature_config_pb2 import FeatureConfig
from easy_rec.python.utils.config_util import get_compatible_feature_configs
from easy_rec.python.utils.convert_rtp_fg import load_input_... | 34.071429 | 92 | 0.811321 | 215 | 1,431 | 5.004651 | 0.288372 | 0.1171 | 0.040892 | 0.063197 | 0.299257 | 0.120818 | 0 | 0 | 0 | 0 | 0 | 0.003959 | 0.1174 | 1,431 | 41 | 93 | 34.902439 | 0.847981 | 0.002795 | 0 | 0 | 0 | 0 | 0.069474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.21875 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb57d98140afeca2dc5e728adfc2de4c920c0f82 | 15,642 | py | Python | calculate_best_ball_scores.py | arnmishra/sleeper-best-ball | 926d673eebe3a0f114a60f4749dcc451db792b4d | [
"MIT"
] | null | null | null | calculate_best_ball_scores.py | arnmishra/sleeper-best-ball | 926d673eebe3a0f114a60f4749dcc451db792b4d | [
"MIT"
] | null | null | null | calculate_best_ball_scores.py | arnmishra/sleeper-best-ball | 926d673eebe3a0f114a60f4749dcc451db792b4d | [
"MIT"
] | null | null | null | from enum import Enum
import requests
import argparse
import nflgame
def get_user_id_to_team_name(league_id):
"""
Gets a map of fantasy player user id to their team name
"""
user_id_to_team_name = {}
r = requests.get("https://api.sleeper.app/v1/league/%s/users" % league_id)
user_data = r.json()... | 47.256798 | 180 | 0.637642 | 2,336 | 15,642 | 3.97774 | 0.10274 | 0.071567 | 0.064572 | 0.030994 | 0.546492 | 0.477723 | 0.4209 | 0.376345 | 0.349225 | 0.311774 | 0 | 0.020851 | 0.251886 | 15,642 | 330 | 181 | 47.4 | 0.773201 | 0.129076 | 0 | 0.143939 | 0 | 0.034091 | 0.13145 | 0.020818 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.011364 | 0.015152 | 0 | 0.098485 | 0.037879 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb59a435d0311305f0e15444f804e1c503ccd050 | 6,818 | py | Python | evernotebot/bot/storage.py | AuroraDysis/evernote-telegram-bot | eca7b7c53d2e034e366f1e715211dbe98b4991f7 | [
"MIT"
] | 1 | 2021-03-29T07:31:22.000Z | 2021-03-29T07:31:22.000Z | evernotebot/bot/storage.py | AuroraDysis/evernote-telegram-bot | eca7b7c53d2e034e366f1e715211dbe98b4991f7 | [
"MIT"
] | null | null | null | evernotebot/bot/storage.py | AuroraDysis/evernote-telegram-bot | eca7b7c53d2e034e366f1e715211dbe98b4991f7 | [
"MIT"
] | null | null | null | import json
import sqlite3
import typing
from typing import Optional, Dict
from copy import deepcopy
from contextlib import suppress
from bson.objectid import ObjectId
from pymongo import MongoClient
from pymongo.errors import ConfigurationError
class MongoStorageException(Exception):
pass
class Mongo:
def... | 37.668508 | 93 | 0.589909 | 829 | 6,818 | 4.636912 | 0.156815 | 0.08949 | 0.026015 | 0.026015 | 0.329865 | 0.277836 | 0.239594 | 0.189386 | 0.08845 | 0.070239 | 0 | 0.002124 | 0.309328 | 6,818 | 181 | 94 | 37.668508 | 0.814186 | 0 | 0 | 0.175 | 0 | 0 | 0.108227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.00625 | 0.05625 | 0 | 0.2375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb59b4889f363415f77eaf0d9d1624d307371014 | 13,486 | py | Python | tests/models/programdb/opstress/opstress_integration_test.py | TahaEntezari/ramstk | f82e5b31ef5c4e33cc02252263247b99a9abe129 | [
"BSD-3-Clause"
] | 26 | 2019-05-15T02:03:47.000Z | 2022-02-21T07:28:11.000Z | tests/models/programdb/opstress/opstress_integration_test.py | TahaEntezari/ramstk | f82e5b31ef5c4e33cc02252263247b99a9abe129 | [
"BSD-3-Clause"
] | 815 | 2019-05-10T12:31:52.000Z | 2022-03-31T12:56:26.000Z | tests/models/programdb/opstress/opstress_integration_test.py | TahaEntezari/ramstk | f82e5b31ef5c4e33cc02252263247b99a9abe129 | [
"BSD-3-Clause"
] | 9 | 2019-04-20T23:06:29.000Z | 2022-01-24T21:21:04.000Z | # pylint: skip-file
# type: ignore
# -*- coding: utf-8 -*-
#
# tests.models.opstress.opstress_integration_test.py is part of The RAMSTK Project
#
# All rights reserved.
# Copyright since 2007 Doyle "weibullguy" Rowland doyle.rowland <AT> reliaqual <DOT> com
"""Class for testing operating stress integrations."""
... | 39.899408 | 88 | 0.710811 | 1,731 | 13,486 | 5.227036 | 0.112652 | 0.046419 | 0.022989 | 0.039788 | 0.731985 | 0.659814 | 0.599691 | 0.51271 | 0.432913 | 0.329134 | 0 | 0.012608 | 0.194276 | 13,486 | 337 | 89 | 40.017804 | 0.820081 | 0.143334 | 0 | 0.268868 | 0 | 0 | 0.266837 | 0.117285 | 0 | 0 | 0 | 0 | 0.127358 | 1 | 0.146226 | false | 0 | 0.018868 | 0 | 0.188679 | 0.070755 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb5a0434cd62419bd4c146c19aafa8c01ca37afb | 1,159 | py | Python | rssant_async/views.py | landlordlycat/rssant | 12d9182154a3ffaa35310f1258de4be4822cf1e6 | [
"BSD-3-Clause"
] | null | null | null | rssant_async/views.py | landlordlycat/rssant | 12d9182154a3ffaa35310f1258de4be4822cf1e6 | [
"BSD-3-Clause"
] | null | null | null | rssant_async/views.py | landlordlycat/rssant | 12d9182154a3ffaa35310f1258de4be4822cf1e6 | [
"BSD-3-Clause"
] | null | null | null | import os
from validr import T
from aiohttp.web import json_response
from aiohttp.web_request import Request
from rssant_common import timezone
from rssant_common.image_token import ImageToken, ImageTokenDecodeError
from rssant_config import CONFIG
from .rest_validr import ValidrRouteTableDef
from .image_proxy import... | 26.340909 | 71 | 0.724763 | 151 | 1,159 | 5.344371 | 0.350993 | 0.061958 | 0.037175 | 0.039653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008502 | 0.188093 | 1,159 | 43 | 72 | 26.953488 | 0.849097 | 0 | 0 | 0 | 0 | 0 | 0.05522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.257143 | 0 | 0.342857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb5bb09cbb3eed2ec9bb972fd01943b3b7af90ee | 2,785 | py | Python | tests/test_matching.py | grickly-nyu/grickly | 39fbf796ea5918d0183b3aa1b3ae23dcb3d84f22 | [
"MIT"
] | 3 | 2021-02-04T02:53:35.000Z | 2021-07-22T01:09:36.000Z | tests/test_matching.py | grickly-nyu/grickly | 39fbf796ea5918d0183b3aa1b3ae23dcb3d84f22 | [
"MIT"
] | 17 | 2021-02-19T23:25:29.000Z | 2021-05-16T04:18:00.000Z | tests/test_matching.py | grickly-nyu/grickly | 39fbf796ea5918d0183b3aa1b3ae23dcb3d84f22 | [
"MIT"
] | null | null | null | from testing_config import BaseTestConfig
from application.models import User
from application.models import Chatroom
import json
from application.utils import auth
class TestMatch(BaseTestConfig):
test_group = {
"name": "test_group",
"tag": "Poker",
}
test_group2 = {
"name": "test... | 29.315789 | 76 | 0.560144 | 317 | 2,785 | 4.725552 | 0.201893 | 0.100134 | 0.066088 | 0.084112 | 0.701602 | 0.637517 | 0.542724 | 0.542724 | 0.542724 | 0.390521 | 0 | 0.026832 | 0.304129 | 2,785 | 94 | 77 | 29.62766 | 0.74613 | 0.190305 | 0 | 0.311475 | 0 | 0 | 0.165771 | 0 | 0 | 0 | 0 | 0 | 0.114754 | 1 | 0.032787 | false | 0 | 0.081967 | 0 | 0.295082 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb5d367b92efd326d4327262afe891263095720b | 1,633 | py | Python | examples/pycaffe/layers/aggregation_cross_entropy_layer.py | HannaRiver/all-caffe | eae31715d903c1e3ef7035702d66b23d9cdf45c3 | [
"BSD-2-Clause"
] | null | null | null | examples/pycaffe/layers/aggregation_cross_entropy_layer.py | HannaRiver/all-caffe | eae31715d903c1e3ef7035702d66b23d9cdf45c3 | [
"BSD-2-Clause"
] | null | null | null | examples/pycaffe/layers/aggregation_cross_entropy_layer.py | HannaRiver/all-caffe | eae31715d903c1e3ef7035702d66b23d9cdf45c3 | [
"BSD-2-Clause"
] | null | null | null | import sys
sys.path.insert(0, '/home/hena/caffe-ocr/buildcmake/install/python')
sys.path.insert(0, '/home/hena/tool/protobuf-3.1.0/python')
import caffe
import math
import numpy as np
def SoftMax(net_ans):
tmp_net = [math.exp(i) for i in net_ans]
sum_exp = sum(tmp_net)
return [i/sum_exp for i in tmp_net]
... | 29.160714 | 82 | 0.515615 | 209 | 1,633 | 3.961722 | 0.421053 | 0.042271 | 0.05314 | 0.033816 | 0.05314 | 0.05314 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.279853 | 1,633 | 55 | 83 | 29.690909 | 0.680272 | 0.128598 | 0 | 0 | 0 | 0 | 0.174875 | 0.15132 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.030303 | 0.121212 | 0 | 0.363636 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb5dda247bf82e8dba4c4c4fbaea1e533adc2c8f | 2,530 | py | Python | pyroms/sta_hgrid.py | ChuningWang/pyroms2 | 090a1a6d614088612f586f80b335ddb0dc0077a2 | [
"MIT"
] | null | null | null | pyroms/sta_hgrid.py | ChuningWang/pyroms2 | 090a1a6d614088612f586f80b335ddb0dc0077a2 | [
"MIT"
] | null | null | null | pyroms/sta_hgrid.py | ChuningWang/pyroms2 | 090a1a6d614088612f586f80b335ddb0dc0077a2 | [
"MIT"
] | null | null | null | """
Tools for creating and working with Line (Station) Grids
"""
from typing import Union
import pyproj
import numpy as np
_atype = Union[type(None), np.ndarray]
_ptype = Union[type(None), pyproj.Proj]
class StaHGrid:
"""
Stations Grid
EXAMPLES:
--------
>>> x = arange(8)
>>> y = arange(8... | 24.326923 | 75 | 0.527273 | 347 | 2,530 | 3.720461 | 0.244957 | 0.010844 | 0.013943 | 0.01859 | 0.171185 | 0.128582 | 0.128582 | 0.109992 | 0.068164 | 0.010844 | 0 | 0.015033 | 0.342688 | 2,530 | 103 | 76 | 24.563107 | 0.761275 | 0.166008 | 0 | 0.22807 | 0 | 0 | 0.050696 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 1 | 0.105263 | false | 0 | 0.052632 | 0.035088 | 0.298246 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb5e69fb9347917ede848ed32aab714b5ee1edac | 3,364 | py | Python | lstchain/visualization/camera.py | misabelber/cta-lstchain | 08fc4dccfe8a05a77fa46fb4ffb6e26f439c0a93 | [
"BSD-3-Clause"
] | null | null | null | lstchain/visualization/camera.py | misabelber/cta-lstchain | 08fc4dccfe8a05a77fa46fb4ffb6e26f439c0a93 | [
"BSD-3-Clause"
] | null | null | null | lstchain/visualization/camera.py | misabelber/cta-lstchain | 08fc4dccfe8a05a77fa46fb4ffb6e26f439c0a93 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from ..reco.disp import disp_vector
import astropy.units as u
import matplotlib.pyplot as plt
from ctapipe.visualization import CameraDisplay
__all__ = [
'overlay_disp_vector',
'overlay_hillas_major_axis',
'overlay_source',
'display_dl1_event',
]
def display_dl1_event(event, camera_... | 29.769912 | 106 | 0.633472 | 431 | 3,364 | 4.832947 | 0.264501 | 0.053769 | 0.06337 | 0.053289 | 0.294287 | 0.183389 | 0.120019 | 0.095055 | 0 | 0 | 0 | 0.010853 | 0.233056 | 3,364 | 112 | 107 | 30.035714 | 0.796512 | 0.302021 | 0 | 0.043478 | 0 | 0 | 0.09548 | 0.011531 | 0 | 0 | 0 | 0 | 0.021739 | 1 | 0.086957 | false | 0 | 0.108696 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb5ee7c913a1ddd435fb481e4af6d53922603786 | 14,537 | py | Python | QFlow-2.0/QFlow/Process_Data.py | jpzwolak/QFlow-suite | d34d74d8690908137adbce0e71587884758b5ecf | [
"MIT"
] | null | null | null | QFlow-2.0/QFlow/Process_Data.py | jpzwolak/QFlow-suite | d34d74d8690908137adbce0e71587884758b5ecf | [
"MIT"
] | null | null | null | QFlow-2.0/QFlow/Process_Data.py | jpzwolak/QFlow-suite | d34d74d8690908137adbce0e71587884758b5ecf | [
"MIT"
] | 1 | 2022-02-16T22:25:22.000Z | 2022-02-16T22:25:22.000Z | import numpy as np
import random
from scipy.stats import skew as scipy_skew
from skimage.transform import resize as skimage_resize
from QFlow import config
## set of functions for loading and preparing a dataset for training.
def get_num_min_class(labels):
'''
Get the number of the minimum represented class i... | 35.982673 | 81 | 0.65323 | 2,018 | 14,537 | 4.519326 | 0.177403 | 0.025329 | 0.011842 | 0.016447 | 0.24989 | 0.197588 | 0.128728 | 0.108553 | 0.066667 | 0.04364 | 0 | 0.006531 | 0.273234 | 14,537 | 404 | 82 | 35.982673 | 0.856697 | 0.38942 | 0 | 0.123711 | 0 | 0 | 0.032105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061856 | false | 0 | 0.025773 | 0 | 0.154639 | 0.015464 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb61944ce32d6c5a99c9e008904e108e5bfd2d77 | 2,517 | py | Python | search_for_similar_images__perceptual_hash__phash/ui/SelectDirBox.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 117 | 2015-12-18T07:18:27.000Z | 2022-03-28T00:25:54.000Z | search_for_similar_images__perceptual_hash__phash/ui/SelectDirBox.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 8 | 2018-10-03T09:38:46.000Z | 2021-12-13T19:51:09.000Z | search_for_similar_images__perceptual_hash__phash/ui/SelectDirBox.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 28 | 2016-08-02T17:43:47.000Z | 2022-03-21T08:31:12.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
# SOURCE: https://github.com/gil9red/VideoStreamingWithEncryption/blob/37cf7f501460a286ec44a20db7b2403e8cb05d97/server_GUI_Qt/inner_libs/gui/SelectDirBox.py
import os
from PyQt5.QtWidgets import QWidget, QLineEdit, QLabel, QPushButton, QHBoxLa... | 28.931034 | 156 | 0.684148 | 282 | 2,517 | 5.822695 | 0.390071 | 0.071255 | 0.058465 | 0.073082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.205403 | 2,517 | 86 | 157 | 29.267442 | 0.801 | 0.078665 | 0 | 0 | 0 | 0 | 0.037133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.071429 | 0.017857 | 0.267857 | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb62f6a8cb550f9476912173180ad44a3f1fe7d0 | 44,876 | py | Python | Source/Git/wb_git_project.py | barry-scott/git-workbench | 9f352875ab097ce5e45f85bf255b1fa02a196807 | [
"Apache-2.0"
] | 24 | 2017-03-23T06:24:02.000Z | 2022-03-19T13:35:44.000Z | Source/Git/wb_git_project.py | barry-scott/scm-workbench | 5607f12056f8245e0178816603e4922b7f5805ac | [
"Apache-2.0"
] | 14 | 2016-06-21T10:06:27.000Z | 2020-07-25T11:56:23.000Z | Source/Git/wb_git_project.py | barry-scott/git-workbench | 9f352875ab097ce5e45f85bf255b1fa02a196807 | [
"Apache-2.0"
] | 11 | 2016-12-25T12:36:16.000Z | 2022-03-23T14:25:25.000Z | '''
====================================================================
Copyright (c) 2016-2017 Barry A Scott. All rights reserved.
This software is licensed as described in the file LICENSE.txt,
which you should have received as part of this distribution.
======================================================... | 33.741353 | 130 | 0.586661 | 4,903 | 44,876 | 5.111768 | 0.114828 | 0.02793 | 0.020109 | 0.015321 | 0.37302 | 0.292144 | 0.233611 | 0.196186 | 0.173283 | 0.142162 | 0 | 0.002087 | 0.30591 | 44,876 | 1,329 | 131 | 33.766742 | 0.802556 | 0.053659 | 0 | 0.28125 | 0 | 0 | 0.038181 | 0.002028 | 0 | 0 | 0 | 0 | 0.019397 | 1 | 0.168103 | false | 0.006466 | 0.009698 | 0.060345 | 0.331897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb6699684cb8142168142ff3619e29cd5107fcf6 | 3,676 | py | Python | mainSample.py | snipeso/sample_psychopy | 332cd34cf2c584f9ba01302050964649dd2e5367 | [
"Linux-OpenIB"
] | null | null | null | mainSample.py | snipeso/sample_psychopy | 332cd34cf2c584f9ba01302050964649dd2e5367 | [
"Linux-OpenIB"
] | 3 | 2021-06-02T00:56:48.000Z | 2021-09-08T01:35:53.000Z | mainSample.py | snipeso/sample_psychopy | 332cd34cf2c584f9ba01302050964649dd2e5367 | [
"Linux-OpenIB"
] | null | null | null | import logging
import os
import random
import time
import datetime
import sys
import math
from screen import Screen
from scorer import Scorer
from trigger import Trigger
from psychopy import core, event, sound
from psychopy.hardware import keyboard
from pupil_labs import PupilCore
from datalog import Datalog
from conf... | 24.344371 | 105 | 0.658052 | 417 | 3,676 | 5.767386 | 0.405276 | 0.03659 | 0.024948 | 0.037422 | 0.144699 | 0.127235 | 0.127235 | 0.127235 | 0.092308 | 0.092308 | 0 | 0.001267 | 0.140914 | 3,676 | 150 | 106 | 24.506667 | 0.760291 | 0.174918 | 0 | 0.216867 | 0 | 0 | 0.214411 | 0.020387 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024096 | false | 0 | 0.180723 | 0 | 0.204819 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb685e91f9d3ddb25b69ea95c37b26cc21ab500f | 8,008 | py | Python | qmla/remote_model_learning.py | flynnbr11/QMD | ac8cfe1603658ee9b916452f29b99460ee5e3d44 | [
"MIT"
] | 9 | 2021-01-08T12:49:01.000Z | 2021-12-29T06:59:32.000Z | qmla/remote_model_learning.py | flynnbr11/QMD | ac8cfe1603658ee9b916452f29b99460ee5e3d44 | [
"MIT"
] | 2 | 2021-02-22T20:42:25.000Z | 2021-02-22T22:22:59.000Z | qmla/remote_model_learning.py | flynnbr11/QMD | ac8cfe1603658ee9b916452f29b99460ee5e3d44 | [
"MIT"
] | 9 | 2021-02-15T14:18:48.000Z | 2021-12-17T04:02:07.000Z | from __future__ import print_function # so print doesn't show brackets
import copy
import numpy as np
import time as time
import matplotlib.pyplot as plt
import pickle
import redis
import qmla.model_for_learning
import qmla.redis_settings
import qmla.logging
pickle.HIGHEST_PROTOCOL = 4
plt.switch_ba... | 35.591111 | 123 | 0.604146 | 937 | 8,008 | 4.88047 | 0.266809 | 0.022961 | 0.036737 | 0.034988 | 0.197245 | 0.162694 | 0.162694 | 0.132517 | 0.1089 | 0.085721 | 0 | 0.003368 | 0.332542 | 8,008 | 224 | 124 | 35.75 | 0.852198 | 0.25025 | 0 | 0.297468 | 0 | 0 | 0.155249 | 0.043016 | 0 | 0 | 0 | 0.004464 | 0 | 1 | 0.012658 | false | 0.012658 | 0.063291 | 0 | 0.088608 | 0.088608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb69066846fdd4ee95649e7481b0ff3dce03d604 | 9,390 | py | Python | pylinex/quantity/CompiledQuantity.py | CU-NESS/pylinex | b6f342595b6a154e129eb303782e5268088f34d5 | [
"Apache-2.0"
] | null | null | null | pylinex/quantity/CompiledQuantity.py | CU-NESS/pylinex | b6f342595b6a154e129eb303782e5268088f34d5 | [
"Apache-2.0"
] | null | null | null | pylinex/quantity/CompiledQuantity.py | CU-NESS/pylinex | b6f342595b6a154e129eb303782e5268088f34d5 | [
"Apache-2.0"
] | null | null | null | """
File: pylinex/quantity/CompiledQuantity.py
Author: Keith Tauscher
Date: 3 Sep 2017
Description: File containing a class representing a list of Quantities to be
evaluated with the same (or overlapping) arguments. When it is
called, each underlying Quantity is called.
"""
from ..util import... | 39.620253 | 79 | 0.583174 | 1,005 | 9,390 | 5.353234 | 0.206965 | 0.036431 | 0.014498 | 0.017844 | 0.22974 | 0.165428 | 0.121933 | 0.096283 | 0.081784 | 0.063941 | 0 | 0.0041 | 0.350692 | 9,390 | 236 | 80 | 39.788136 | 0.878301 | 0.343024 | 0 | 0.175 | 0 | 0 | 0.151804 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 1 | 0.108333 | false | 0 | 0.041667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb6d1002b4582dd7b3bb100c3a8d3d43f66ca13b | 8,588 | py | Python | tests/test_k8s_cronjob.py | riconnon/kubernetes-py | 42a4537876985ed105ee44b6529763ba5d57c179 | [
"Apache-2.0"
] | null | null | null | tests/test_k8s_cronjob.py | riconnon/kubernetes-py | 42a4537876985ed105ee44b6529763ba5d57c179 | [
"Apache-2.0"
] | null | null | null | tests/test_k8s_cronjob.py | riconnon/kubernetes-py | 42a4537876985ed105ee44b6529763ba5d57c179 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is subject to the terms and conditions defined in
# file 'LICENSE.md', which is part of this source code package.
#
import time
import uuid
from kubernetes.K8sCronJob import K8sCronJob
from kubernetes.K8sPod import K8sPod
from kubernetes.models.v2alpha1.Cro... | 35.053061 | 115 | 0.577317 | 895 | 8,588 | 5.27933 | 0.163128 | 0.078307 | 0.045714 | 0.051217 | 0.599788 | 0.514921 | 0.503492 | 0.497566 | 0.478519 | 0.462434 | 0 | 0.018527 | 0.245808 | 8,588 | 244 | 116 | 35.196721 | 0.710977 | 0.12401 | 0 | 0.530387 | 0 | 0 | 0.032108 | 0 | 0 | 0 | 0 | 0 | 0.154696 | 1 | 0.099448 | false | 0.01105 | 0.049724 | 0 | 0.154696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb6d4b7447432a3d88c9b0ce1e3fc024eb47008f | 9,054 | py | Python | code/nn/optimization.py | serced/rcnn | 1c5949c7ae5652a342b359e9defa72b2a6a6666b | [
"Apache-2.0"
] | 372 | 2016-01-26T02:41:51.000Z | 2022-03-31T02:03:13.000Z | code/nn/optimization.py | serced/rcnn | 1c5949c7ae5652a342b359e9defa72b2a6a6666b | [
"Apache-2.0"
] | 17 | 2016-08-23T17:28:02.000Z | 2020-05-11T15:54:50.000Z | code/nn/optimization.py | serced/rcnn | 1c5949c7ae5652a342b359e9defa72b2a6a6666b | [
"Apache-2.0"
] | 143 | 2016-01-13T05:33:33.000Z | 2021-12-10T16:48:42.000Z | '''
This file implements various optimization methods, including
-- SGD with gradient norm clipping
-- AdaGrad
-- AdaDelta
-- Adam
Transparent to switch between CPU / GPU.
@author: Tao Lei (taolei@csail.mit.edu)
'''
import random
from collections import OrderedDict
import... | 37.882845 | 93 | 0.587254 | 1,260 | 9,054 | 4.05873 | 0.142857 | 0.038131 | 0.052796 | 0.04693 | 0.420806 | 0.394603 | 0.344153 | 0.313649 | 0.272194 | 0.200235 | 0 | 0.018661 | 0.29567 | 9,054 | 238 | 94 | 38.042017 | 0.783284 | 0.052573 | 0 | 0.26738 | 0 | 0 | 0.015849 | 0 | 0 | 0 | 0 | 0 | 0.005348 | 1 | 0.053476 | false | 0 | 0.048128 | 0 | 0.139037 | 0.005348 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb704422d64cb57af346521f6ec226890742b70a | 883 | py | Python | projectlaika/looseWindow.py | TheSgtPepper23/LaikaIA | fc73aa17f74462b211c4a4159b663ed7c3cdb1bd | [
"MIT"
] | null | null | null | projectlaika/looseWindow.py | TheSgtPepper23/LaikaIA | fc73aa17f74462b211c4a4159b663ed7c3cdb1bd | [
"MIT"
] | null | null | null | projectlaika/looseWindow.py | TheSgtPepper23/LaikaIA | fc73aa17f74462b211c4a4159b663ed7c3cdb1bd | [
"MIT"
] | null | null | null | import sys
from PyQt5.QtWidgets import QMainWindow
from PyQt5.QtGui import QPixmap, QIcon
from PyQt5 import uic
from internationalization import LANGUAGE
class Loose(QMainWindow):
def __init__(self, lang):
QMainWindow.__init__(self)
uic.loadUi("windows/Looser.ui", self)
self.lang = lang
... | 35.32 | 82 | 0.698754 | 113 | 883 | 5.283186 | 0.451327 | 0.053601 | 0.046901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004231 | 0.197055 | 883 | 25 | 83 | 35.32 | 0.8378 | 0.07701 | 0 | 0 | 0 | 0 | 0.085185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.238095 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb70843b616618f2f4796598ec6f5433ecaca7a0 | 2,424 | py | Python | scripts/Feature_Generation/calculateSREstrengthDifferenceBetweenWTandMUT_perCluster.py | JayKu4418/Computational-Experimental-framework-for-predicting-effects-of-variants-on-alternative-splicing | 4cb33b94bb8a864bc63fd5a3c96dae547914b20f | [
"CC0-1.0"
] | null | null | null | scripts/Feature_Generation/calculateSREstrengthDifferenceBetweenWTandMUT_perCluster.py | JayKu4418/Computational-Experimental-framework-for-predicting-effects-of-variants-on-alternative-splicing | 4cb33b94bb8a864bc63fd5a3c96dae547914b20f | [
"CC0-1.0"
] | null | null | null | scripts/Feature_Generation/calculateSREstrengthDifferenceBetweenWTandMUT_perCluster.py | JayKu4418/Computational-Experimental-framework-for-predicting-effects-of-variants-on-alternative-splicing | 4cb33b94bb8a864bc63fd5a3c96dae547914b20f | [
"CC0-1.0"
] | null | null | null | import argparse
import Functions_Features.functionsToDetermineMotifStrength as fdm
import pandas as pd
parser = argparse.ArgumentParser()
parser.add_argument("-w","--tmpfolder",type=str,help="Input the upperlevel folder containing folder to Write to")
parser.add_argument("-t","--foldertitle",type=str,help="Input the t... | 47.529412 | 176 | 0.757426 | 307 | 2,424 | 5.830619 | 0.322476 | 0.054749 | 0.058659 | 0.138547 | 0.227933 | 0.174302 | 0 | 0 | 0 | 0 | 0 | 0.009204 | 0.103548 | 2,424 | 51 | 177 | 47.529412 | 0.814542 | 0.076733 | 0 | 0.055556 | 0 | 0 | 0.170022 | 0.01745 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb7155177920bff87f0b52005b1ab66f25856784 | 964 | py | Python | asciinema/asciicast.py | alex/asciinema | ff23896174c07719d3b2ace6320a193934a0ac71 | [
"MIT"
] | 1 | 2015-11-08T13:00:51.000Z | 2015-11-08T13:00:51.000Z | asciinema/asciicast.py | alex/asciinema | ff23896174c07719d3b2ace6320a193934a0ac71 | [
"MIT"
] | null | null | null | asciinema/asciicast.py | alex/asciinema | ff23896174c07719d3b2ace6320a193934a0ac71 | [
"MIT"
] | null | null | null | import os
import subprocess
import time
class Asciicast(object):
def __init__(self, env=os.environ):
self.command = None
self.title = None
self.shell = env.get('SHELL', '/bin/sh')
self.term = env.get('TERM')
self.username = env.get('USER')
@property
def meta_data(... | 26.054054 | 60 | 0.520747 | 98 | 964 | 5.010204 | 0.428571 | 0.03666 | 0.09776 | 0.077393 | 0.093686 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001585 | 0.345436 | 964 | 36 | 61 | 26.777778 | 0.776545 | 0 | 0 | 0 | 0 | 0 | 0.093361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.103448 | 0 | 0.310345 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb731e02437da6274e8e54fa035f9eeb59f57f17 | 17,808 | py | Python | datasets/alt/alt.py | NihalHarish/datasets | 67574a8d74796bc065a8b9b49ec02f7b1200c172 | [
"Apache-2.0"
] | 9 | 2021-04-26T14:43:52.000Z | 2021-11-08T09:47:24.000Z | datasets/alt/alt.py | NihalHarish/datasets | 67574a8d74796bc065a8b9b49ec02f7b1200c172 | [
"Apache-2.0"
] | null | null | null | datasets/alt/alt.py | NihalHarish/datasets | 67574a8d74796bc065a8b9b49ec02f7b1200c172 | [
"Apache-2.0"
] | 1 | 2021-03-24T18:33:32.000Z | 2021-03-24T18:33:32.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Asian Language Treebank (ALT) Project"""
from __future__ import absolute_import, division, print_function
import os
import datasets
_CITATION = """\
@inproceedings{riza2016introduction,
title={Introduction of the asian language treebank},
author={Riza, Hammam an... | 41.901176 | 706 | 0.500898 | 1,868 | 17,808 | 4.702891 | 0.183619 | 0.042914 | 0.062721 | 0.027092 | 0.611497 | 0.560273 | 0.533523 | 0.475583 | 0.436881 | 0.400683 | 0 | 0.017755 | 0.37062 | 17,808 | 424 | 707 | 42 | 0.76606 | 0.063511 | 0 | 0.523121 | 0 | 0.040462 | 0.257769 | 0.037581 | 0 | 0 | 0 | 0 | 0.00289 | 1 | 0.011561 | false | 0 | 0.008671 | 0 | 0.040462 | 0.00289 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb74a99668bbeadd3a3026fa2344b01e7a173609 | 17,918 | py | Python | src/validation/aux_functions.py | christianhilscher/dynasim | 881cfd3bd9d4b9291d289d703ec7da4a617a479a | [
"MIT"
] | null | null | null | src/validation/aux_functions.py | christianhilscher/dynasim | 881cfd3bd9d4b9291d289d703ec7da4a617a479a | [
"MIT"
] | 2 | 2020-08-06T10:01:59.000Z | 2021-05-17T12:14:44.000Z | src/validation/aux_functions.py | christianhilscher/dynasim | 881cfd3bd9d4b9291d289d703ec7da4a617a479a | [
"MIT"
] | 2 | 2020-08-19T06:52:09.000Z | 2021-12-10T08:57:54.000Z | import sys
from pathlib import Path
import numpy as np
import pandas as pd
from bokeh.models import ColumnDataSource
from bokeh.io import export_png
from bokeh.plotting import figure
def plot_lifetime(df, type, path):
df = df.copy()
palette = ["#c9d9d3", "#718dbf", "#e84d60", "#648450"]
ylist = []
... | 34.194656 | 127 | 0.60509 | 2,355 | 17,918 | 4.408493 | 0.107006 | 0.057022 | 0.020805 | 0.02774 | 0.64554 | 0.595261 | 0.514641 | 0.495569 | 0.477076 | 0.451454 | 0 | 0.019135 | 0.262083 | 17,918 | 524 | 128 | 34.194656 | 0.766072 | 0.069093 | 0 | 0.324859 | 0 | 0 | 0.080699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070621 | false | 0.008475 | 0.019774 | 0 | 0.121469 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb79110d81706eec2a558890fdef6435d3ebf1bb | 8,457 | py | Python | tests/test_model.py | zeta1999/OpenJij | 0fe03f07af947f519a32ad58fe20423919651634 | [
"Apache-2.0"
] | null | null | null | tests/test_model.py | zeta1999/OpenJij | 0fe03f07af947f519a32ad58fe20423919651634 | [
"Apache-2.0"
] | null | null | null | tests/test_model.py | zeta1999/OpenJij | 0fe03f07af947f519a32ad58fe20423919651634 | [
"Apache-2.0"
] | 1 | 2021-04-09T09:13:56.000Z | 2021-04-09T09:13:56.000Z | import unittest
import numpy as np
import openjij as oj
import cxxjij as cj
def calculate_ising_energy(h, J, spins):
energy = 0.0
for (i, j), Jij in J.items():
energy += Jij*spins[i]*spins[j]
for i, hi in h.items():
energy += hi * spins[i]
return energy
def calculate_qubo_energy(Q, ... | 37.255507 | 126 | 0.578101 | 1,210 | 8,457 | 3.854545 | 0.106612 | 0.012007 | 0.007719 | 0.017367 | 0.60313 | 0.539451 | 0.496141 | 0.416381 | 0.331475 | 0.268868 | 0 | 0.047024 | 0.270782 | 8,457 | 226 | 127 | 37.420354 | 0.709259 | 0.046825 | 0 | 0.220126 | 0 | 0 | 0.004227 | 0 | 0 | 0 | 0 | 0 | 0.238994 | 1 | 0.09434 | false | 0 | 0.025157 | 0 | 0.144654 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb795f78cbeba316633c5e08d2759b19e5be4e41 | 18,273 | py | Python | src/bgp-acl-agent/bgp-acl-agent.py | jbemmel/srl-bgp-acl | 18d2b625ea24cc1a269513798e0e58e84f3eaca8 | [
"Apache-2.0"
] | 1 | 2022-01-25T16:03:02.000Z | 2022-01-25T16:03:02.000Z | src/bgp-acl-agent/bgp-acl-agent.py | jbemmel/srl-bgp-acl | 18d2b625ea24cc1a269513798e0e58e84f3eaca8 | [
"Apache-2.0"
] | null | null | null | src/bgp-acl-agent/bgp-acl-agent.py | jbemmel/srl-bgp-acl | 18d2b625ea24cc1a269513798e0e58e84f3eaca8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
import grpc
from datetime import datetime
import sys
import logging
import socket
import os
from ipaddress import ip_network, ip_address, IPv4Address
import json
import signal
import traceback
import re
from concurrent.futures import ThreadPoolExecutor
import sdk_service_pb2
impor... | 46.614796 | 150 | 0.591747 | 2,130 | 18,273 | 4.924413 | 0.21784 | 0.039851 | 0.03089 | 0.013347 | 0.245972 | 0.185909 | 0.150062 | 0.14091 | 0.120793 | 0.091143 | 0 | 0.009488 | 0.238658 | 18,273 | 391 | 151 | 46.734015 | 0.744465 | 0.218847 | 0 | 0.137931 | 0 | 0.030651 | 0.221489 | 0.065157 | 0 | 0 | 0 | 0.002558 | 0 | 1 | 0.049808 | false | 0.003831 | 0.072797 | 0 | 0.164751 | 0.003831 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb7b00cf08bb11ddac21a6f98e99ab8e31ed948a | 1,003 | py | Python | tests/test_35_cfgrib_.py | shoyer/cfgrib | fe11a1b638b1779e51da87eaa30f1f12b2d0911c | [
"Apache-2.0"
] | null | null | null | tests/test_35_cfgrib_.py | shoyer/cfgrib | fe11a1b638b1779e51da87eaa30f1f12b2d0911c | [
"Apache-2.0"
] | null | null | null | tests/test_35_cfgrib_.py | shoyer/cfgrib | fe11a1b638b1779e51da87eaa30f1f12b2d0911c | [
"Apache-2.0"
] | null | null | null |
from __future__ import absolute_import, division, print_function, unicode_literals
import os.path
import pytest
xr = pytest.importorskip('xarray') # noqa
from cfgrib import cfgrib_
SAMPLE_DATA_FOLDER = os.path.join(os.path.dirname(__file__), 'sample-data')
TEST_DATA = os.path.join(SAMPLE_DATA_FOLDER, 'era5-level... | 31.34375 | 97 | 0.705882 | 129 | 1,003 | 5.224806 | 0.48062 | 0.066766 | 0.059347 | 0.10089 | 0.192878 | 0.136499 | 0.136499 | 0 | 0 | 0 | 0 | 0.013857 | 0.13659 | 1,003 | 31 | 98 | 32.354839 | 0.764434 | 0.003988 | 0 | 0 | 0 | 0 | 0.157631 | 0.024096 | 0 | 0 | 0 | 0 | 0.315789 | 1 | 0.105263 | false | 0 | 0.263158 | 0 | 0.368421 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb7b2416a898fcaefa5788048c29968341cc3540 | 4,578 | py | Python | apps/stream_ty_gn_threaded/camera_processor.py | MichelleLau/ncappzoo | d222058e9bf16fbfa2670ff686d11fe521a976e0 | [
"MIT"
] | 1 | 2018-11-23T01:48:59.000Z | 2018-11-23T01:48:59.000Z | apps/stream_ty_gn_threaded/camera_processor.py | MichelleLau/ncappzoo | d222058e9bf16fbfa2670ff686d11fe521a976e0 | [
"MIT"
] | 1 | 2018-03-25T19:36:41.000Z | 2018-03-25T19:53:27.000Z | apps/stream_ty_gn_threaded/camera_processor.py | MichelleLau/ncappzoo | d222058e9bf16fbfa2670ff686d11fe521a976e0 | [
"MIT"
] | 1 | 2020-10-01T15:38:04.000Z | 2020-10-01T15:38:04.000Z | #! /usr/bin/env python3
# Copyright(c) 2017 Intel Corporation.
# License: MIT See LICENSE file in root directory.
# NPS
# pulls images from camera device and places them in a Queue
# if the queue is full will start to skip camera frames.
#import numpy as np
import cv2
import queue
import threading
import time
class... | 42 | 118 | 0.676933 | 637 | 4,578 | 4.609105 | 0.288854 | 0.053134 | 0.054496 | 0.025545 | 0.248638 | 0.134196 | 0.109673 | 0.109673 | 0.063352 | 0.035422 | 0 | 0.007683 | 0.260813 | 4,578 | 108 | 119 | 42.388889 | 0.859929 | 0.339668 | 0 | 0.071429 | 0 | 0 | 0.140515 | 0.009702 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.071429 | 0.035714 | 0.285714 | 0.196429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb7ec52a5b793917a80604774ec9ccdc87a89f1d | 858 | py | Python | derive_cubic.py | vuonglv1612/page-dewarp | 68063db040ba97964a22f68a6056467dacd2952f | [
"MIT"
] | 9 | 2021-05-15T21:18:03.000Z | 2022-03-31T16:56:36.000Z | derive_cubic.py | vuonglv1612/page-dewarp | 68063db040ba97964a22f68a6056467dacd2952f | [
"MIT"
] | 5 | 2021-04-23T17:59:23.000Z | 2021-05-23T17:03:40.000Z | derive_cubic.py | vuonglv1612/page-dewarp | 68063db040ba97964a22f68a6056467dacd2952f | [
"MIT"
] | 3 | 2022-02-22T12:09:49.000Z | 2022-03-16T21:33:49.000Z | import numpy as np
from matplotlib import pyplot as plt
from sympy import symbols, solve
a, b, c, d, x, α, β = symbols("a b c d x α β")
# polynomial function f(x) = ax³ + bx² + cx + d
f = a * x ** 3 + b * x ** 2 + c * x + d
fp = f.diff(x) # derivative f'(x)
# evaluate both at x=0 and x=1
f0, f1 = [f.subs(x, i) for... | 21.45 | 61 | 0.581585 | 179 | 858 | 2.765363 | 0.396648 | 0.020202 | 0.030303 | 0.040404 | 0.137374 | 0.10101 | 0.10101 | 0.072727 | 0 | 0 | 0 | 0.048855 | 0.236597 | 858 | 39 | 62 | 22 | 0.70687 | 0.291375 | 0 | 0 | 0 | 0 | 0.023451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.157895 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb80aeb666b891b4a2d73d6188ae90784a764de1 | 13,614 | py | Python | test/test_admin.py | image72/browserscope | 44a63558ee376704d996851099bc7703128201cc | [
"Apache-2.0"
] | 22 | 2015-10-26T15:20:37.000Z | 2022-03-11T06:38:17.000Z | test/test_admin.py | image72/browserscope | 44a63558ee376704d996851099bc7703128201cc | [
"Apache-2.0"
] | 10 | 2016-01-22T18:46:19.000Z | 2019-07-19T12:49:51.000Z | test/test_admin.py | mcauer/browserscope | a9c0e1a250774f14689e06f93ad274d0b9d725e4 | [
"Apache-2.0"
] | 12 | 2015-10-17T09:40:44.000Z | 2019-06-08T19:54:36.000Z | #!/usr/bin/python2.5
#
# Copyright 2009 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the 'License')
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 36.40107 | 80 | 0.659027 | 1,692 | 13,614 | 5.18026 | 0.176123 | 0.051341 | 0.031375 | 0.043126 | 0.682145 | 0.664575 | 0.640388 | 0.63012 | 0.60251 | 0.582202 | 0 | 0.035833 | 0.204642 | 13,614 | 373 | 81 | 36.49866 | 0.773642 | 0.084619 | 0 | 0.627517 | 0 | 0.010067 | 0.190396 | 0.051239 | 0 | 0 | 0 | 0 | 0.120805 | 1 | 0.100671 | false | 0 | 0.053691 | 0 | 0.177852 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb8120f79917456a521cb4d10307f0c3faeada82 | 3,198 | py | Python | ml/rl/models/example_sequence_model.py | ccphillippi/Horizon | a18d8941f663eea55488781c804e6305a36f1b58 | [
"BSD-3-Clause"
] | 1 | 2020-07-30T06:15:20.000Z | 2020-07-30T06:15:20.000Z | ml/rl/models/example_sequence_model.py | ccphillippi/Horizon | a18d8941f663eea55488781c804e6305a36f1b58 | [
"BSD-3-Clause"
] | null | null | null | ml/rl/models/example_sequence_model.py | ccphillippi/Horizon | a18d8941f663eea55488781c804e6305a36f1b58 | [
"BSD-3-Clause"
] | 1 | 2019-06-05T15:52:18.000Z | 2019-06-05T15:52:18.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import logging
from dataclasses import dataclass
from typing import Dict, List
import torch
import torch.nn as nn
from ml.rl import types as rlt
from ml.rl.models.base import ModelBase
logger = logging.getLogger(__name__)... | 29.072727 | 88 | 0.6601 | 372 | 3,198 | 5.438172 | 0.354839 | 0.038557 | 0.023727 | 0.019773 | 0.051409 | 0.051409 | 0.051409 | 0.051409 | 0 | 0 | 0 | 0.01584 | 0.249844 | 3,198 | 109 | 89 | 29.33945 | 0.827428 | 0.069418 | 0 | 0.088608 | 0 | 0 | 0.006093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088608 | false | 0 | 0.088608 | 0.063291 | 0.367089 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb81ef1eb1f00a9abc20cdf31b290c4e33722c10 | 10,692 | py | Python | eval.py | CLT29/pvse | bf5232148396ee5051564ef68a48538de0ddbc84 | [
"MIT"
] | 119 | 2019-06-18T19:10:04.000Z | 2022-03-25T02:24:26.000Z | eval.py | CLT29/pvse | bf5232148396ee5051564ef68a48538de0ddbc84 | [
"MIT"
] | 18 | 2019-08-28T09:32:24.000Z | 2021-09-08T15:25:01.000Z | eval.py | CLT29/pvse | bf5232148396ee5051564ef68a48538de0ddbc84 | [
"MIT"
] | 19 | 2019-07-11T08:19:18.000Z | 2022-02-07T12:59:05.000Z | from __future__ import print_function
import os, sys
import pickle
import time
import glob
import numpy as np
import torch
from model import PVSE
from loss import cosine_sim, order_sim
from vocab import Vocabulary
from data import get_test_loader
from logger import AverageMeter
from option import parser, verify_input... | 36.742268 | 107 | 0.607931 | 1,715 | 10,692 | 3.653644 | 0.141691 | 0.022981 | 0.028726 | 0.030642 | 0.53112 | 0.452921 | 0.403926 | 0.386371 | 0.341366 | 0.341366 | 0 | 0.039573 | 0.220071 | 10,692 | 290 | 108 | 36.868966 | 0.711836 | 0.066592 | 0 | 0.316279 | 0 | 0.009302 | 0.08612 | 0.003525 | 0 | 0 | 0 | 0 | 0.018605 | 1 | 0.023256 | false | 0 | 0.060465 | 0 | 0.116279 | 0.088372 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb82fbf2f9c2c62b4641f184634a4204b573ebe0 | 13,286 | py | Python | paddlex/ppdet/modeling/heads/detr_head.py | xiaolao/PaddleX | 4fa58cd0e485418ba353a87414052bd8a19204e5 | [
"Apache-2.0"
] | 3,655 | 2020-03-28T09:19:50.000Z | 2022-03-31T13:28:39.000Z | paddlex/ppdet/modeling/heads/detr_head.py | BDGZhengzhou/PaddleX | a07b54c6eaa363cb8008b26cba83eed734c52044 | [
"Apache-2.0"
] | 829 | 2020-03-28T04:03:18.000Z | 2022-03-31T14:34:30.000Z | paddlex/ppdet/modeling/heads/detr_head.py | BDGZhengzhou/PaddleX | a07b54c6eaa363cb8008b26cba83eed734c52044 | [
"Apache-2.0"
] | 738 | 2020-03-28T03:56:46.000Z | 2022-03-31T13:11:03.000Z | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 37.215686 | 110 | 0.553967 | 1,592 | 13,286 | 4.350503 | 0.184045 | 0.049379 | 0.020791 | 0.020791 | 0.402686 | 0.326595 | 0.293387 | 0.284147 | 0.237222 | 0.21311 | 0 | 0.015835 | 0.344046 | 13,286 | 356 | 111 | 37.320225 | 0.778887 | 0.137739 | 0 | 0.314607 | 0 | 0 | 0.0207 | 0 | 0 | 0 | 0 | 0 | 0.014981 | 1 | 0.06367 | false | 0 | 0.037453 | 0.011236 | 0.17603 | 0.003745 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb83c2db2b3565baeaebf20f605f38a7b225d465 | 3,911 | py | Python | python/raspberryPi.py | FirewallRobotics/Vinnie-2019 | 2bc74f9947d41960ffe06e39bfc8dbe321ef2ae1 | [
"BSD-3-Clause"
] | null | null | null | python/raspberryPi.py | FirewallRobotics/Vinnie-2019 | 2bc74f9947d41960ffe06e39bfc8dbe321ef2ae1 | [
"BSD-3-Clause"
] | null | null | null | python/raspberryPi.py | FirewallRobotics/Vinnie-2019 | 2bc74f9947d41960ffe06e39bfc8dbe321ef2ae1 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import json
import time
import sys
#import numpy as np
import cv2
from cscore import CameraServer, VideoSource, CvSource, VideoMode, CvSink, UsbCamera
from networktables import NetworkTablesInstance
def Track(frame, sd):
Lower = (0,0,0)
Upper = (0,0,0)
if sd.getNumber("Track", 0):
... | 36.212963 | 112 | 0.604449 | 518 | 3,911 | 4.554054 | 0.403475 | 0.041967 | 0.020348 | 0.050869 | 0.105129 | 0.022043 | 0.022043 | 0.022043 | 0 | 0 | 0 | 0.050985 | 0.27282 | 3,911 | 108 | 113 | 36.212963 | 0.778481 | 0.270008 | 0 | 0.130435 | 0 | 0 | 0.084602 | 0 | 0 | 0 | 0.001416 | 0 | 0 | 1 | 0.014493 | false | 0 | 0.086957 | 0 | 0.101449 | 0.057971 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb88b8dcfd3fd4a86eaad1ea35d9e6acff02b1b6 | 8,108 | py | Python | models/pointSIFT_pointnet_age.py | KelvinTao/pointSIFT_Age2 | b0684ee989b5f6f3dca25e9bbf15b3c5fd8cf1cf | [
"Apache-2.0"
] | null | null | null | models/pointSIFT_pointnet_age.py | KelvinTao/pointSIFT_Age2 | b0684ee989b5f6f3dca25e9bbf15b3c5fd8cf1cf | [
"Apache-2.0"
] | null | null | null | models/pointSIFT_pointnet_age.py | KelvinTao/pointSIFT_Age2 | b0684ee989b5f6f3dca25e9bbf15b3c5fd8cf1cf | [
"Apache-2.0"
] | null | null | null | import os
import sys
import tensorflow as tf
import tf_utils.tf_util as tf_util
from tf_utils.pointSIFT_util import pointSIFT_module, pointSIFT_res_module, pointnet_fp_module, pointnet_sa_module
def placeholder_inputs(batch_size,num_point,num_class):
#num_class=numofclasses*2
pointclouds_pl = tf.placeholder(... | 57.503546 | 218 | 0.741737 | 1,363 | 8,108 | 4.089508 | 0.137197 | 0.096878 | 0.053821 | 0.089702 | 0.561536 | 0.492286 | 0.405633 | 0.390563 | 0.344277 | 0.330822 | 0 | 0.06458 | 0.121485 | 8,108 | 140 | 219 | 57.914286 | 0.717956 | 0.130735 | 0 | 0.037037 | 0 | 0 | 0.057573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.092593 | 0 | 0.240741 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb8c8cf1deb8bca5c92c0e2fc8aa8a95783848a5 | 6,922 | py | Python | src/third_party/swiftshader/third_party/subzero/pydir/wasm-run-torture-tests.py | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | src/third_party/swiftshader/third_party/subzero/pydir/wasm-run-torture-tests.py | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | src/third_party/swiftshader/third_party/subzero/pydir/wasm-run-torture-tests.py | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | #!/usr/bin/env python2
#===- subzero/wasm-run-torture-tests.py - Subzero WASM Torture Test Driver ===//
#
# The Subzero Code Generator
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
#===-----------------------------------------... | 30.095652 | 80 | 0.647501 | 1,024 | 6,922 | 4.249023 | 0.265625 | 0.090784 | 0.044128 | 0.035854 | 0.324983 | 0.251896 | 0.153988 | 0.083199 | 0.037233 | 0.037233 | 0 | 0.091986 | 0.17076 | 6,922 | 229 | 81 | 30.227074 | 0.666028 | 0.254984 | 0 | 0.076087 | 0 | 0.005435 | 0.381925 | 0.042436 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01087 | false | 0.005435 | 0.054348 | 0 | 0.070652 | 0.081522 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb8c8d25a3c49500542e0cea8201311268f861d1 | 4,455 | py | Python | game_vs_ai.py | fernandojosuece/Minimax_AI_connect4 | e0110b7d3d25494b7e950c078eacd1337ee14f17 | [
"MIT"
] | null | null | null | game_vs_ai.py | fernandojosuece/Minimax_AI_connect4 | e0110b7d3d25494b7e950c078eacd1337ee14f17 | [
"MIT"
] | null | null | null | game_vs_ai.py | fernandojosuece/Minimax_AI_connect4 | e0110b7d3d25494b7e950c078eacd1337ee14f17 | [
"MIT"
] | null | null | null | import numpy as np
import pygame
import sys
import math
import random
from board import Board
from ai import Minimax_AI
# function to draw the board in pygame
def draw_board(board):
for c in range(COLUMN_COUNT):
for r in range(ROW_COUNT):
pygame.draw.rect(screen, colors["blue"], (c*SQUARESIZE,... | 32.05036 | 101 | 0.489787 | 487 | 4,455 | 4.36345 | 0.238193 | 0.094118 | 0.059294 | 0.051765 | 0.433412 | 0.359059 | 0.297882 | 0.270118 | 0.270118 | 0.270118 | 0 | 0.029112 | 0.406285 | 4,455 | 138 | 102 | 32.282609 | 0.774291 | 0.047138 | 0 | 0.357143 | 0 | 0 | 0.022437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010204 | false | 0 | 0.071429 | 0 | 0.081633 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb8cffb83eb9a76e5f50b56af16a0174fdb1dc32 | 12,118 | py | Python | dabest/bootstrap_tools.py | nitishkumarmishra/DABEST | 82490f587e9b0180f29baa2daf44aa86cc3f52aa | [
"BSD-3-Clause-Clear"
] | null | null | null | dabest/bootstrap_tools.py | nitishkumarmishra/DABEST | 82490f587e9b0180f29baa2daf44aa86cc3f52aa | [
"BSD-3-Clause-Clear"
] | null | null | null | dabest/bootstrap_tools.py | nitishkumarmishra/DABEST | 82490f587e9b0180f29baa2daf44aa86cc3f52aa | [
"BSD-3-Clause-Clear"
] | null | null | null | #!/usr/bin/python
# -*-coding: utf-8 -*-
# Author: Joses Ho
# Email : joseshowh@gmail.com
from __future__ import division
class bootstrap:
'''Computes the summary statistic and a bootstrapped confidence interval.
Keywords:
x1, x2: array-like
The data in a one-dimensional array form. Onl... | 36.173134 | 104 | 0.605793 | 1,555 | 12,118 | 4.601286 | 0.215434 | 0.019567 | 0.016771 | 0.012579 | 0.245003 | 0.214256 | 0.189658 | 0.178337 | 0.174423 | 0.156394 | 0 | 0.019638 | 0.31086 | 12,118 | 334 | 105 | 36.281437 | 0.837145 | 0.418468 | 0 | 0.248366 | 0 | 0 | 0.093971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026144 | false | 0 | 0.111111 | 0 | 0.163399 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb8ef4de168793f84748b01a69155748193991bb | 2,579 | py | Python | pyflow/demo/cwdDemo/cwdDemo.py | quejebo/pyflow | 99718942f9ea4ac0ceacde17c8006068ef19f2c8 | [
"BSD-2-Clause"
] | 3 | 2019-05-29T23:01:51.000Z | 2020-02-20T21:36:55.000Z | pyflow/demo/cwdDemo/cwdDemo.py | quejebo/pyflow | 99718942f9ea4ac0ceacde17c8006068ef19f2c8 | [
"BSD-2-Clause"
] | null | null | null | pyflow/demo/cwdDemo/cwdDemo.py | quejebo/pyflow | 99718942f9ea4ac0ceacde17c8006068ef19f2c8 | [
"BSD-2-Clause"
] | 2 | 2020-10-31T00:49:40.000Z | 2021-04-28T18:56:40.000Z | #!/usr/bin/env python
#
# pyFlow - a lightweight parallel task engine
#
# Copyright (c) 2012-2017 Illumina, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source ... | 29.643678 | 92 | 0.711904 | 341 | 2,579 | 5.372434 | 0.524927 | 0.016376 | 0.018559 | 0.025109 | 0.143013 | 0.074236 | 0.074236 | 0.074236 | 0.074236 | 0.074236 | 0 | 0.004798 | 0.191935 | 2,579 | 86 | 93 | 29.988372 | 0.87428 | 0.683986 | 0 | 0 | 0 | 0 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
fb906bc559344cfcb6abb67edb4b96c49dafc738 | 4,423 | py | Python | src/py/env.py | timgates42/lithp | 607d20fe18ca0a2af026c12d223bb802746fe7e7 | [
"MIT"
] | 76 | 2015-01-10T08:16:15.000Z | 2022-02-18T05:22:29.000Z | mi/env.py | mountain/mu | 9834a5aea2ade8ad4462fa959d2d00c129335b7c | [
"MIT"
] | null | null | null | mi/env.py | mountain/mu | 9834a5aea2ade8ad4462fa959d2d00c129335b7c | [
"MIT"
] | 14 | 2015-01-11T17:07:10.000Z | 2021-07-25T00:23:59.000Z | # The `Environment` class represents the dynamic environment of McCarthy's original Lisp. The creation of
# this class is actually an interesting story. As many of you probably know, [Paul Graham wrote a paper and
# code for McCarthy's original Lisp](http://www.paulgraham.com/rootsoflisp.html) and it was my first e... | 42.941748 | 141 | 0.640968 | 657 | 4,423 | 4.299848 | 0.401826 | 0.031858 | 0.015575 | 0.011681 | 0.021947 | 0.016283 | 0.016283 | 0 | 0 | 0 | 0 | 0.003759 | 0.278318 | 4,423 | 102 | 142 | 43.362745 | 0.881266 | 0.679177 | 0 | 0.25641 | 0 | 0 | 0.033675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179487 | false | 0 | 0 | 0.051282 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb90bddf16d6e083178b78c9099cb96b4aea6048 | 4,416 | py | Python | tests/storage/test_filesystem.py | dilyanpalauzov/vdirsyncer | a3cf8e67f6396c91172b34896b828a0293ecf3c5 | [
"BSD-3-Clause"
] | 888 | 2016-03-16T12:03:14.000Z | 2022-03-28T17:45:44.000Z | tests/storage/test_filesystem.py | dilyanpalauzov/vdirsyncer | a3cf8e67f6396c91172b34896b828a0293ecf3c5 | [
"BSD-3-Clause"
] | 499 | 2016-03-15T14:18:47.000Z | 2022-03-30T02:12:40.000Z | tests/storage/test_filesystem.py | dilyanpalauzov/vdirsyncer | a3cf8e67f6396c91172b34896b828a0293ecf3c5 | [
"BSD-3-Clause"
] | 135 | 2016-03-25T12:50:14.000Z | 2022-03-25T00:28:59.000Z | import subprocess
import aiostream
import pytest
from vdirsyncer.storage.filesystem import FilesystemStorage
from vdirsyncer.vobject import Item
from . import StorageTests
class TestFilesystemStorage(StorageTests):
storage_class = FilesystemStorage
@pytest.fixture
def get_storage_args(self, tmpdir):
... | 33.969231 | 83 | 0.619339 | 553 | 4,416 | 4.819168 | 0.254973 | 0.039024 | 0.066041 | 0.064165 | 0.467167 | 0.457786 | 0.39137 | 0.378236 | 0.285929 | 0.237523 | 0 | 0.003328 | 0.251585 | 4,416 | 129 | 84 | 34.232558 | 0.803026 | 0.017663 | 0 | 0.298969 | 0 | 0 | 0.047642 | 0 | 0 | 0 | 0 | 0 | 0.14433 | 1 | 0.041237 | false | 0 | 0.061856 | 0 | 0.154639 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb910124233c9edcba63460a96cd8cc70f5f9da6 | 1,635 | py | Python | covid_sicilia.py | Cip0/covid-ita-graph | cb788b845940168ce45abbd6203f464bfe91ea46 | [
"CC0-1.0"
] | null | null | null | covid_sicilia.py | Cip0/covid-ita-graph | cb788b845940168ce45abbd6203f464bfe91ea46 | [
"CC0-1.0"
] | null | null | null | covid_sicilia.py | Cip0/covid-ita-graph | cb788b845940168ce45abbd6203f464bfe91ea46 | [
"CC0-1.0"
] | null | null | null | import pandas as pd
from datetime import timedelta, date
import matplotlib.pyplot as plt
def daterange(start_date, end_date):
for n in range(int((end_date - start_date).days)):
yield start_date + timedelta(n)
def getFileByDate(date = 'latest'):
url = 'https://raw.githubusercontent.com/pcm-dpc/COVID-19/... | 24.402985 | 135 | 0.727217 | 237 | 1,635 | 4.873418 | 0.396624 | 0.078788 | 0.028571 | 0.041558 | 0.129004 | 0.085714 | 0.085714 | 0.085714 | 0.085714 | 0 | 0 | 0.036857 | 0.120489 | 1,635 | 66 | 136 | 24.772727 | 0.766342 | 0.256881 | 0 | 0 | 0 | 0.035714 | 0.170854 | 0.035176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.107143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb91820e24893ea883a473af50f1667df4df55ca | 28,698 | py | Python | mhcflurry/select_allele_specific_models_command.py | ignatovmg/mhcflurry | a4b0ac96ebe7f8be7e4b37f21c430f567ac630e6 | [
"Apache-2.0"
] | 113 | 2018-02-07T05:01:40.000Z | 2022-03-24T14:22:58.000Z | mhcflurry/select_allele_specific_models_command.py | ignatovmg/mhcflurry | a4b0ac96ebe7f8be7e4b37f21c430f567ac630e6 | [
"Apache-2.0"
] | 106 | 2015-09-15T20:12:20.000Z | 2017-12-23T01:54:54.000Z | mhcflurry/select_allele_specific_models_command.py | ignatovmg/mhcflurry | a4b0ac96ebe7f8be7e4b37f21c430f567ac630e6 | [
"Apache-2.0"
] | 33 | 2018-07-09T18:16:44.000Z | 2022-02-21T17:38:26.000Z | """
Model select class1 single allele models.
"""
import argparse
import os
import signal
import sys
import time
import traceback
import random
from functools import partial
from pprint import pprint
import numpy
import pandas
from scipy.stats import kendalltau, percentileofscore, pearsonr
from sklearn.metrics import ... | 36.007528 | 101 | 0.643703 | 3,249 | 28,698 | 5.430286 | 0.135426 | 0.02936 | 0.023125 | 0.010769 | 0.372159 | 0.274046 | 0.207958 | 0.170436 | 0.151278 | 0.130987 | 0 | 0.006925 | 0.26535 | 28,698 | 796 | 102 | 36.052764 | 0.82991 | 0.056067 | 0 | 0.27116 | 0 | 0 | 0.135452 | 0.026994 | 0 | 0 | 0 | 0 | 0.001567 | 1 | 0.050157 | false | 0 | 0.031348 | 0.015674 | 0.133229 | 0.040752 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb93199fe7cc80dd48c6b172980feb9638eeb2ac | 623 | py | Python | CircuitPython_Made_Easy_On_CPX/cpx_temperature_neopixels.py | joewalk102/Adafruit_Learning_System_Guides | 2bda607f8c433c661a2d9d40b4db4fd132334c9a | [
"MIT"
] | 665 | 2017-09-27T21:20:14.000Z | 2022-03-31T09:09:25.000Z | CircuitPython_Made_Easy_On_CPX/cpx_temperature_neopixels.py | joewalk102/Adafruit_Learning_System_Guides | 2bda607f8c433c661a2d9d40b4db4fd132334c9a | [
"MIT"
] | 641 | 2017-10-03T19:46:37.000Z | 2022-03-30T18:28:46.000Z | CircuitPython_Made_Easy_On_CPX/cpx_temperature_neopixels.py | joewalk102/Adafruit_Learning_System_Guides | 2bda607f8c433c661a2d9d40b4db4fd132334c9a | [
"MIT"
] | 734 | 2017-10-02T22:47:38.000Z | 2022-03-30T14:03:51.000Z | import time
from adafruit_circuitplayground.express import cpx
import simpleio
cpx.pixels.auto_write = False
cpx.pixels.brightness = 0.3
# Set these based on your ambient temperature for best results!
minimum_temp = 24
maximum_temp = 30
while True:
# temperature value remapped to pixel position
peak = simple... | 24.92 | 81 | 0.667737 | 92 | 623 | 4.445652 | 0.565217 | 0.110024 | 0.0489 | 0.05379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05428 | 0.23114 | 623 | 24 | 82 | 25.958333 | 0.799582 | 0.170144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb944044bfb463a8599ee79bec50521d35a9aa25 | 1,086 | py | Python | Python_Fundamentals/06_Object_And_Classes/task_object_and_classes/d_exercises.py | Dochko0/Python | e9612c4e842cfd3d9a733526cc7485765ef2238f | [
"MIT"
] | null | null | null | Python_Fundamentals/06_Object_And_Classes/task_object_and_classes/d_exercises.py | Dochko0/Python | e9612c4e842cfd3d9a733526cc7485765ef2238f | [
"MIT"
] | null | null | null | Python_Fundamentals/06_Object_And_Classes/task_object_and_classes/d_exercises.py | Dochko0/Python | e9612c4e842cfd3d9a733526cc7485765ef2238f | [
"MIT"
] | null | null | null | class Exercises:
def __init__(self, topic, course_name, judge_contest_link, problems):
self.topic = topic
self.course_name = course_name
self.judge_contest_link = judge_contest_link
self.problems = [*problems]
def get_info(self):
info = f'Exercises: {self.topic}\n' \
... | 29.351351 | 99 | 0.604052 | 143 | 1,086 | 4.384615 | 0.328671 | 0.095694 | 0.15311 | 0.095694 | 0.23764 | 0.23764 | 0.188198 | 0 | 0 | 0 | 0 | 0.005044 | 0.269797 | 1,086 | 36 | 100 | 30.166667 | 0.785624 | 0 | 0 | 0 | 0 | 0 | 0.215143 | 0.024931 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0 | 0 | 0.148148 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb95d8cb21b1ef70d5c86b417371dd007196c3a0 | 3,575 | py | Python | src/vigorish/scrape/brooks_pitchfx/scrape_task.py | a-luna/vigorish | 6cede5ced76c7d2c9ad0aacdbd2b18c2f1ee4ee6 | [
"MIT"
] | 2 | 2021-07-15T13:53:33.000Z | 2021-07-25T17:03:29.000Z | src/vigorish/scrape/brooks_pitchfx/scrape_task.py | a-luna/vigorish | 6cede5ced76c7d2c9ad0aacdbd2b18c2f1ee4ee6 | [
"MIT"
] | 650 | 2019-05-18T07:00:12.000Z | 2022-01-21T19:38:55.000Z | src/vigorish/scrape/brooks_pitchfx/scrape_task.py | a-luna/vigorish | 6cede5ced76c7d2c9ad0aacdbd2b18c2f1ee4ee6 | [
"MIT"
] | 2 | 2020-03-28T21:01:31.000Z | 2022-01-06T05:16:11.000Z | import vigorish.database as db
from vigorish.enums import DataSet, ScrapeCondition
from vigorish.scrape.brooks_pitchfx.parse_html import parse_pitchfx_log
from vigorish.scrape.scrape_task import ScrapeTaskABC
from vigorish.status.update_status_brooks_pitchfx import update_status_brooks_pitchfx_log
from vigorish.util.dt... | 45.833333 | 99 | 0.645315 | 456 | 3,575 | 4.708333 | 0.210526 | 0.054495 | 0.044714 | 0.037261 | 0.371681 | 0.269679 | 0.223568 | 0.192827 | 0.160224 | 0.160224 | 0 | 0.001964 | 0.287832 | 3,575 | 77 | 100 | 46.428571 | 0.84132 | 0 | 0 | 0.342857 | 0 | 0 | 0.081119 | 0.013986 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0.014286 | 0.1 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb96d6004d5d3c7514625831b9038ed27e6e0930 | 10,309 | py | Python | mayan/apps/rest_api/classes.py | atitaya1412/Mayan-EDMS | bda9302ba4b743e7d829ad118b8b836221888172 | [
"Apache-2.0"
] | 336 | 2019-05-09T07:05:19.000Z | 2022-03-25T09:50:22.000Z | mayan/apps/rest_api/classes.py | atitaya1412/Mayan-EDMS | bda9302ba4b743e7d829ad118b8b836221888172 | [
"Apache-2.0"
] | 9 | 2019-10-29T00:12:27.000Z | 2021-09-09T15:16:51.000Z | mayan/apps/rest_api/classes.py | atitaya1412/Mayan-EDMS | bda9302ba4b743e7d829ad118b8b836221888172 | [
"Apache-2.0"
] | 257 | 2019-05-14T10:26:37.000Z | 2022-03-30T03:37:36.000Z | from collections import namedtuple
import io
import json
from furl import furl
from django.core.handlers.wsgi import WSGIRequest
from django.http.request import QueryDict
from django.template import Variable, VariableDoesNotExist
from django.test.client import MULTIPART_CONTENT
from django.urls import resolve
from dj... | 34.363333 | 85 | 0.549811 | 953 | 10,309 | 5.747114 | 0.18468 | 0.058791 | 0.046011 | 0.035786 | 0.170714 | 0.094577 | 0.015337 | 0.015337 | 0 | 0 | 0 | 0.002757 | 0.366573 | 10,309 | 299 | 86 | 34.478261 | 0.835988 | 0.015811 | 0 | 0.158537 | 0 | 0 | 0.046441 | 0.002366 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044715 | false | 0 | 0.052846 | 0.004065 | 0.142276 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb97fb152011251fca82737d7f9e6211e38b167b | 9,414 | py | Python | turnitin/src9.py | alvaedu/NYUsakai11 | 2434f320c49072d23af77062ea763228374f4c25 | [
"ECL-2.0"
] | 4 | 2017-03-22T16:57:42.000Z | 2020-04-07T17:34:41.000Z | turnitin/src9.py | alvaedu/NYUsakai11 | 2434f320c49072d23af77062ea763228374f4c25 | [
"ECL-2.0"
] | 216 | 2016-06-23T14:02:32.000Z | 2021-08-31T17:11:24.000Z | turnitin/src9.py | alvaedu/NYUsakai11 | 2434f320c49072d23af77062ea763228374f4c25 | [
"ECL-2.0"
] | 15 | 2016-06-17T16:26:08.000Z | 2017-08-19T21:06:33.000Z | """
Test script for src=9 provisioning
Below are some odd examples and notes:
Adding a class
{
'src': '9',
'uln': 'Githens',
'ufn': 'Steven',
'aid': '56021',
'utp': '2',
'said': '56021',
'fid': '2',
'username': 'swgithen',
'ctl': 'CourseTitleb018b622-b425-4af7-bb3d-d0d2b4deb35c',
'diagnost... | 34.866667 | 461 | 0.652008 | 1,065 | 9,414 | 5.702347 | 0.285446 | 0.02223 | 0.031615 | 0.025523 | 0.536802 | 0.454965 | 0.383007 | 0.370492 | 0.326692 | 0.265437 | 0 | 0.104818 | 0.184194 | 9,414 | 269 | 462 | 34.996283 | 0.685938 | 0.490652 | 0 | 0.348684 | 0 | 0 | 0.196769 | 0.041632 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0.085526 | false | 0 | 0.039474 | 0.006579 | 0.184211 | 0.046053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb9ad71d95d0e5101ca350ea6c907e1e31dc4b55 | 7,189 | py | Python | functions.py | brupoon/blackfork | 8acf49907b7140894f72255f5ccd3e3e7cd638a0 | [
"MIT"
] | null | null | null | functions.py | brupoon/blackfork | 8acf49907b7140894f72255f5ccd3e3e7cd638a0 | [
"MIT"
] | null | null | null | functions.py | brupoon/blackfork | 8acf49907b7140894f72255f5ccd3e3e7cd638a0 | [
"MIT"
] | null | null | null | from __future__ import division
from random import *
#...(former location of probability as a FN GLOBAL)
#OUR SUPERCOOL GENETIC MUTANT NINJA TURTALGORITHM
def genetics(sampleList):
winLoss = [] #win/loss arrays for each sample
for sample in range(sampleList):
winLoss.append(isWinSample(sampleList[sampl... | 31.669604 | 100 | 0.640979 | 949 | 7,189 | 4.851423 | 0.23393 | 0.022589 | 0.010426 | 0.011946 | 0.082537 | 0.064726 | 0.044309 | 0.016942 | 0 | 0 | 0 | 0.01983 | 0.263458 | 7,189 | 226 | 101 | 31.809735 | 0.84967 | 0.260259 | 0 | 0.159509 | 0 | 0 | 0.080804 | 0.003983 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116564 | false | 0 | 0.01227 | 0.006135 | 0.245399 | 0.122699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fb9c6e6bdafc518cc8754d80b7344aed59410824 | 458 | py | Python | src/sniptly/output.py | jjaakko/sniptly | c8190294f75a7b3db26af40e4b3592b5c5971b91 | [
"MIT"
] | null | null | null | src/sniptly/output.py | jjaakko/sniptly | c8190294f75a7b3db26af40e4b3592b5c5971b91 | [
"MIT"
] | null | null | null | src/sniptly/output.py | jjaakko/sniptly | c8190294f75a7b3db26af40e4b3592b5c5971b91 | [
"MIT"
] | null | null | null | from typing import Any
from click import echo, style
def out(message: str, new_line: bool = True, **styles: Any) -> None:
if "bold" not in styles:
styles["bold"] = True
message = style(message, **styles)
echo(message, nl=new_line)
def err(message: str, new_line: bool = True, **styles: Any) -... | 26.941176 | 68 | 0.615721 | 65 | 458 | 4.276923 | 0.384615 | 0.100719 | 0.093525 | 0.122302 | 0.611511 | 0.611511 | 0.611511 | 0.611511 | 0.611511 | 0.28777 | 0 | 0 | 0.242358 | 458 | 16 | 69 | 28.625 | 0.801153 | 0 | 0 | 0.333333 | 0 | 0 | 0.032751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
fb9daa303c7186ca7833c4c97259f8015245fe48 | 4,579 | py | Python | src/nemo/transforms.py | thomasjo/nemo-redux | c4196c0d99633dca011d60008be0cb7667c348b7 | [
"MIT"
] | null | null | null | src/nemo/transforms.py | thomasjo/nemo-redux | c4196c0d99633dca011d60008be0cb7667c348b7 | [
"MIT"
] | null | null | null | src/nemo/transforms.py | thomasjo/nemo-redux | c4196c0d99633dca011d60008be0cb7667c348b7 | [
"MIT"
] | null | null | null | import random
from typing import List, Union
import torch
import torchvision.transforms as T
import torchvision.transforms.functional as F
from PIL import Image
class RandomDiscreteRotation():
def __init__(self, angles, resample=0, expand=False):
self.angles = angles
self.resample = resample
... | 28.798742 | 103 | 0.602752 | 569 | 4,579 | 4.632689 | 0.219684 | 0.079287 | 0.037557 | 0.054628 | 0.347876 | 0.261381 | 0.215478 | 0.215478 | 0.186646 | 0.179059 | 0 | 0.013241 | 0.274296 | 4,579 | 158 | 104 | 28.981013 | 0.780018 | 0.006552 | 0 | 0.339286 | 0 | 0 | 0.071098 | 0.010346 | 0 | 0 | 0 | 0 | 0 | 1 | 0.196429 | false | 0 | 0.053571 | 0.017857 | 0.464286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fba2be86b846eae4b6b694478e685649917f0dba | 7,761 | py | Python | mvpa2/tests/test_procrust.py | mortonne/PyMVPA | 98644c5cd9733edd39fac746ea7cf67398674645 | [
"MIT"
] | null | null | null | mvpa2/tests/test_procrust.py | mortonne/PyMVPA | 98644c5cd9733edd39fac746ea7cf67398674645 | [
"MIT"
] | null | null | null | mvpa2/tests/test_procrust.py | mortonne/PyMVPA | 98644c5cd9733edd39fac746ea7cf67398674645 | [
"MIT"
] | null | null | null | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the PyMVPA package for the
# copyright and license terms.
#
### ### ### ### ###... | 37.492754 | 88 | 0.47365 | 847 | 7,761 | 4.239669 | 0.282172 | 0.006683 | 0.005013 | 0.008354 | 0.300195 | 0.154832 | 0.129212 | 0.126427 | 0.096909 | 0.096909 | 0 | 0.030449 | 0.411803 | 7,761 | 206 | 89 | 37.674757 | 0.756188 | 0.146115 | 0 | 0.184211 | 0 | 0 | 0.121544 | 0 | 0 | 0 | 0 | 0 | 0.085526 | 1 | 0.019737 | false | 0 | 0.072368 | 0.006579 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fba8bbf32782335bea4f2efd30632d40070c98c8 | 1,801 | py | Python | scripts/propogate_elab_labels.py | dmort27/elab-order | 5fdca996eea8ab5c6520f9ba565f2fc2cf3e9d0a | [
"MIT"
] | 1 | 2021-09-22T00:28:54.000Z | 2021-09-22T00:28:54.000Z | scripts/propogate_elab_labels.py | dmort27/elab-order | 5fdca996eea8ab5c6520f9ba565f2fc2cf3e9d0a | [
"MIT"
] | null | null | null | scripts/propogate_elab_labels.py | dmort27/elab-order | 5fdca996eea8ab5c6520f9ba565f2fc2cf3e9d0a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import csv
import glob
import os.path
from collections import deque
from tqdm import tqdm
def read_csv(fnin):
with open(fnin) as f:
return {tuple(e) for e in csv.reader(f)}
def write_tagged_span(fout, buffer, count):
b_token = buffer.popleft()
print(f'{b_token}\tB', file=f... | 30.525424 | 67 | 0.583009 | 242 | 1,801 | 4.173554 | 0.342975 | 0.029703 | 0.050495 | 0.062376 | 0.221782 | 0.158416 | 0.09901 | 0.09901 | 0.09901 | 0.09901 | 0 | 0.005516 | 0.295391 | 1,801 | 59 | 68 | 30.525424 | 0.790386 | 0.01166 | 0 | 0.16 | 0 | 0 | 0.093258 | 0.061798 | 0 | 0 | 0 | 0 | 0.02 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.22 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fba8db75cec306c3be997ed165eb4fd61c2a754f | 1,691 | py | Python | python/ml_preproc/pipeline/beam_classes/parse_csv.py | gmogr/dataflow-production-ready | 838dc45d0a01db184ce3f88728303d8ed69361f3 | [
"Apache-2.0"
] | 1 | 2021-01-26T16:58:20.000Z | 2021-01-26T16:58:20.000Z | python/ml_preproc/pipeline/beam_classes/parse_csv.py | gmogr/dataflow-production-ready | 838dc45d0a01db184ce3f88728303d8ed69361f3 | [
"Apache-2.0"
] | null | null | null | python/ml_preproc/pipeline/beam_classes/parse_csv.py | gmogr/dataflow-production-ready | 838dc45d0a01db184ce3f88728303d8ed69361f3 | [
"Apache-2.0"
] | 1 | 2021-04-15T09:18:27.000Z | 2021-04-15T09:18:27.000Z | # Copyright 2020 Google LLC.
# This software is provided as-is, without warranty or representation for any use or purpose.
# Your use of it is subject to your agreement with Google.
from apache_beam import DoFn, pvalue
from apache_beam.metrics import Metrics
from ..model import data_classes
from ..model.data_classe... | 39.325581 | 105 | 0.738025 | 228 | 1,691 | 5.298246 | 0.438596 | 0.049669 | 0.034768 | 0.069536 | 0.099338 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003628 | 0.185098 | 1,691 | 43 | 106 | 39.325581 | 0.873004 | 0.335896 | 0 | 0 | 0 | 0 | 0.102004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.173913 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fba917b2c0de9b130231e038b70145fe9679fe7d | 2,285 | py | Python | src/sentry/integrations/pagerduty/client.py | pombredanne/django-sentry | 4ad09417fb3cfa3aa4a0d4175ae49fe02837c567 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/integrations/pagerduty/client.py | pombredanne/django-sentry | 4ad09417fb3cfa3aa4a0d4175ae49fe02837c567 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/integrations/pagerduty/client.py | pombredanne/django-sentry | 4ad09417fb3cfa3aa4a0d4175ae49fe02837c567 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from sentry.integrations.client import ApiClient
from sentry.models import EventCommon
from sentry.api.serializers import serialize, ExternalEventSerializer
LEVEL_SEVERITY_MAP = {
"debug": "info",
"info": "info",
"warning": "warning",
"error": "error",
"fatal... | 34.621212 | 95 | 0.569365 | 222 | 2,285 | 5.68018 | 0.463964 | 0.044409 | 0.042823 | 0.033307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00194 | 0.323414 | 2,285 | 65 | 96 | 35.153846 | 0.813713 | 0.061707 | 0 | 0.037736 | 0 | 0 | 0.137786 | 0.009809 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09434 | false | 0.037736 | 0.075472 | 0 | 0.283019 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbab99a6802fc429bbfb9a29c754e3ca6d940978 | 3,352 | py | Python | PyBlend/pyblend_prism.py | nfb2021/PrismPyTrace | d4f28cd4156b5543abc3b5634383a81b0663d28e | [
"MIT"
] | null | null | null | PyBlend/pyblend_prism.py | nfb2021/PrismPyTrace | d4f28cd4156b5543abc3b5634383a81b0663d28e | [
"MIT"
] | null | null | null | PyBlend/pyblend_prism.py | nfb2021/PrismPyTrace | d4f28cd4156b5543abc3b5634383a81b0663d28e | [
"MIT"
] | null | null | null | import bpy
import numpy as np
import math
import mathutils
import time
import os
class Prism:
""" ^"""
""" / \\"""
""" / ^ \\"""
""" / | \\"""
""" /'alpha'\\ <-- lenght of this side is calculated based on 'width' and 'alpha'"""
"""/ \\"""
"""-------... | 34.556701 | 171 | 0.545346 | 434 | 3,352 | 4.087558 | 0.274194 | 0.060879 | 0.038331 | 0.065389 | 0.196167 | 0.188275 | 0.100338 | 0.038331 | 0.038331 | 0.038331 | 0 | 0.018221 | 0.312351 | 3,352 | 96 | 172 | 34.916667 | 0.75141 | 0.13574 | 0 | 0.057692 | 0 | 0 | 0.006806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.115385 | 0 | 0.365385 | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbad3dd268d46eacf42426eb3b88f2a9c9f71d9f | 526 | py | Python | setup.py | Lewinta/ProcesosLab | 223ddff1dd8d92403f9ded9f7a42b8f2fa8605f7 | [
"MIT"
] | null | null | null | setup.py | Lewinta/ProcesosLab | 223ddff1dd8d92403f9ded9f7a42b8f2fa8605f7 | [
"MIT"
] | null | null | null | setup.py | Lewinta/ProcesosLab | 223ddff1dd8d92403f9ded9f7a42b8f2fa8605f7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open('requirements.txt') as f:
install_requires = f.read().strip().split('\n')
# get version from __version__ variable in proceso/__init__.py
from proceso import __version__ as version
setup(
name='proceso',
version=version,
description='A ... | 25.047619 | 62 | 0.76616 | 70 | 526 | 5.457143 | 0.685714 | 0.117801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002146 | 0.114068 | 526 | 20 | 63 | 26.3 | 0.817597 | 0.155894 | 0 | 0 | 0 | 0 | 0.206349 | 0.052154 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbad48a7594776e5f25fe4470488384a1f723e04 | 3,650 | py | Python | eye/widgets/misc.py | hydrargyrum/eye | b4a6994fee74b7a70d4f918bc3a29184fe8d5526 | [
"WTFPL"
] | 12 | 2015-09-07T18:32:15.000Z | 2021-02-21T17:29:15.000Z | eye/widgets/misc.py | hydrargyrum/eye | b4a6994fee74b7a70d4f918bc3a29184fe8d5526 | [
"WTFPL"
] | 20 | 2016-08-01T19:24:43.000Z | 2020-12-23T21:29:04.000Z | eye/widgets/misc.py | hydrargyrum/eye | b4a6994fee74b7a70d4f918bc3a29184fe8d5526 | [
"WTFPL"
] | 1 | 2018-09-07T14:26:24.000Z | 2018-09-07T14:26:24.000Z | # this project is licensed under the WTFPLv2, see COPYING.txt for details
import logging
from weakref import ref
from PyQt5.QtCore import QEventLoop
from PyQt5.QtWidgets import QPlainTextEdit, QLabel, QWidget, QRubberBand, QApplication
from ..app import qApp
from ..qt import Slot, Signal
from .helpers import WidgetM... | 25 | 115 | 0.712603 | 452 | 3,650 | 5.670354 | 0.387168 | 0.018728 | 0.017167 | 0.016387 | 0.028872 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005514 | 0.155342 | 3,650 | 145 | 116 | 25.172414 | 0.825819 | 0.12 | 0 | 0.051546 | 0 | 0 | 0.061862 | 0.00691 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134021 | false | 0 | 0.072165 | 0 | 0.319588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbadf16ea0f58eaa3cba965310bc72b10eb1a906 | 10,437 | py | Python | envelopes/envelope.py | siyaoyao/envelopes | 8ad190a55d0d8b805b6ae545b896e719467253b7 | [
"MIT"
] | 202 | 2015-01-04T10:40:04.000Z | 2022-03-17T16:58:22.000Z | envelopes/envelope.py | siyaoyao/envelopes | 8ad190a55d0d8b805b6ae545b896e719467253b7 | [
"MIT"
] | 12 | 2015-04-29T08:12:36.000Z | 2021-06-03T01:34:33.000Z | envelopes/envelope.py | siyaoyao/envelopes | 8ad190a55d0d8b805b6ae545b896e719467253b7 | [
"MIT"
] | 48 | 2015-01-04T10:39:52.000Z | 2022-02-28T03:25:16.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2013 Tomasz Wójcik <tomek@bthlabs.pl>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# ... | 31.531722 | 106 | 0.598927 | 1,328 | 10,437 | 4.527108 | 0.231175 | 0.01996 | 0.013972 | 0.016966 | 0.125749 | 0.083001 | 0.074019 | 0.020958 | 0.020958 | 0.020958 | 0 | 0.004628 | 0.296062 | 10,437 | 330 | 107 | 31.627273 | 0.813665 | 0.296924 | 0 | 0.17801 | 0 | 0 | 0.037622 | 0.003382 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146597 | false | 0.005236 | 0.078534 | 0.026178 | 0.329843 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbaea2b0a2ec669b63e49046a42524be78db8577 | 4,929 | py | Python | dependencies/panda/Pmw/Pmw_2_0_1/lib/PmwOptionMenu.py | SuperM0use24/Project-Altis | 8dec7518a4d3f902cee261fd522ebebc3c171a42 | [
"Apache-2.0"
] | null | null | null | dependencies/panda/Pmw/Pmw_2_0_1/lib/PmwOptionMenu.py | SuperM0use24/Project-Altis | 8dec7518a4d3f902cee261fd522ebebc3c171a42 | [
"Apache-2.0"
] | null | null | null | dependencies/panda/Pmw/Pmw_2_0_1/lib/PmwOptionMenu.py | SuperM0use24/Project-Altis | 8dec7518a4d3f902cee261fd522ebebc3c171a42 | [
"Apache-2.0"
] | null | null | null | import types
import tkinter
import Pmw
import sys
import collections
class OptionMenu(Pmw.MegaWidget):
def __init__(self, parent = None, **kw):
# Define the megawidget options.
INITOPT = Pmw.INITOPT
optiondefs = (
('command', None, None),
('items', ... | 33.080537 | 79 | 0.529113 | 491 | 4,929 | 5.228106 | 0.305499 | 0.054538 | 0.033113 | 0.040904 | 0.128944 | 0.109466 | 0.109466 | 0.079081 | 0 | 0 | 0 | 0.007722 | 0.369446 | 4,929 | 148 | 80 | 33.304054 | 0.818211 | 0.09576 | 0 | 0.238938 | 0 | 0 | 0.066157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070796 | false | 0 | 0.044248 | 0.00885 | 0.212389 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbb096d17208c7f5930144a24371f1c241611091 | 1,991 | py | Python | bin/tabletest.py | tjoneslo/pypdflite | ac2501f30d6619eae9dea5644717575ca9263d0a | [
"MIT"
] | 7 | 2016-05-19T02:23:42.000Z | 2020-04-16T16:19:13.000Z | bin/tabletest.py | tjoneslo/pypdflite | ac2501f30d6619eae9dea5644717575ca9263d0a | [
"MIT"
] | 5 | 2016-11-29T19:21:39.000Z | 2019-08-18T09:44:25.000Z | bin/tabletest.py | tjoneslo/pypdflite | ac2501f30d6619eae9dea5644717575ca9263d0a | [
"MIT"
] | 6 | 2017-01-23T02:12:52.000Z | 2020-07-07T22:34:44.000Z | import os
from pypdflite.pdflite import PDFLite
from pypdflite.pdfobjects.pdfcolor import PDFColor
def TableTest(test_dir):
""" Functional test for text, paragraph, and page
splitting.
"""
data = [["Heading1", "Heading2", "Heading3"],
["Cell a2", "Cell b2", "Cell c2"],
... | 32.639344 | 107 | 0.656454 | 253 | 1,991 | 4.988142 | 0.422925 | 0.061014 | 0.047544 | 0.066561 | 0.127575 | 0.086371 | 0.057052 | 0 | 0 | 0 | 0 | 0.029917 | 0.210949 | 1,991 | 60 | 108 | 33.183333 | 0.773393 | 0.220492 | 0 | 0 | 0 | 0 | 0.141201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.1 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbb2c4cd37463a15b46ecf098fc46612a9561fb6 | 325 | py | Python | leetcode/53.py | jasonlmfong/leetcode | 490764b4212735915fa73e1a1bdfd40b8c8ad9ea | [
"MIT"
] | null | null | null | leetcode/53.py | jasonlmfong/leetcode | 490764b4212735915fa73e1a1bdfd40b8c8ad9ea | [
"MIT"
] | null | null | null | leetcode/53.py | jasonlmfong/leetcode | 490764b4212735915fa73e1a1bdfd40b8c8ad9ea | [
"MIT"
] | null | null | null | class Solution(object):
def maxSubArray(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
Max = -float("inf")
currMax = -float("inf")
for num in nums:
currMax = max(num, num + currMax)
Max = max(Max, currMax)
retur... | 25 | 45 | 0.461538 | 34 | 325 | 4.411765 | 0.558824 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.412308 | 325 | 13 | 46 | 25 | 0.78534 | 0.101538 | 0 | 0 | 0 | 0 | 0.022989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbb2df16b7c104eb5bf6d5b9289bada959a6f3e9 | 967 | py | Python | tests/test_resolver.py | manz/a816 | 2338ebf87039d6a4a4db8014c48c1d0d2488ceca | [
"MIT"
] | 2 | 2018-06-11T23:37:02.000Z | 2018-09-06T04:02:19.000Z | tests/test_resolver.py | manz/a816 | 2338ebf87039d6a4a4db8014c48c1d0d2488ceca | [
"MIT"
] | 8 | 2015-10-30T11:20:45.000Z | 2021-11-21T12:59:33.000Z | tests/test_resolver.py | manz/a816 | 2338ebf87039d6a4a4db8014c48c1d0d2488ceca | [
"MIT"
] | 1 | 2021-03-29T03:21:54.000Z | 2021-03-29T03:21:54.000Z | import unittest
from a816.parse.ast.expression import eval_expression_str
from a816.symbols import Resolver
class ResolverTest(unittest.TestCase):
def test_math_expr_eval(self) -> None:
expr = "0x100+toto & 0xFFFF"
resolver = Resolver()
resolver.current_scope.add_symbol("toto", 0x108000)... | 28.441176 | 69 | 0.663909 | 118 | 967 | 5.228814 | 0.338983 | 0.113452 | 0.137763 | 0.102107 | 0.301459 | 0.301459 | 0.301459 | 0.158833 | 0 | 0 | 0 | 0.049399 | 0.22544 | 967 | 33 | 70 | 29.30303 | 0.774366 | 0 | 0 | 0.173913 | 0 | 0 | 0.05274 | 0 | 0 | 0 | 0.038263 | 0 | 0.173913 | 1 | 0.173913 | false | 0 | 0.130435 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbb5a43012f90f186d93e303de06bb99a2be6844 | 3,333 | py | Python | Actor_CriticPointer_Network-TSP/knapsack_env.py | GeoffNN/DLforCombin | 02553a50491420ab0d51860faff4f9d5aee59616 | [
"MIT"
] | 5 | 2017-12-29T12:16:37.000Z | 2020-05-24T22:53:56.000Z | Actor_CriticPointer_Network-TSP/knapsack_env.py | GeoffNN/DLforCombin | 02553a50491420ab0d51860faff4f9d5aee59616 | [
"MIT"
] | 1 | 2018-01-28T20:09:44.000Z | 2018-01-28T20:09:44.000Z | Actor_CriticPointer_Network-TSP/knapsack_env.py | GeoffNN/DLforCombin | 02553a50491420ab0d51860faff4f9d5aee59616 | [
"MIT"
] | 1 | 2020-05-24T22:53:50.000Z | 2020-05-24T22:53:50.000Z | import numpy as np
import knapsack
class Knapsack:
def __init__(self, K, max_weight, state_shape = 'flat', penalize_repeat = False):
self.K = K
self.max_weight = max_weight
self.penalize_repeat = penalize_repeat # Not used for now, have to figure out details
self.env_name = 'Knapsac... | 38.310345 | 110 | 0.584158 | 442 | 3,333 | 4.237557 | 0.199095 | 0.054458 | 0.096103 | 0.09984 | 0.397224 | 0.269621 | 0.225841 | 0.210892 | 0.210892 | 0.168713 | 0 | 0.00519 | 0.306331 | 3,333 | 86 | 111 | 38.755814 | 0.804931 | 0.030303 | 0 | 0.222222 | 0 | 0 | 0.008677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097222 | false | 0 | 0.027778 | 0.013889 | 0.263889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbb6af8f01f84caaa96ba70cd3d046f928150b4b | 3,063 | py | Python | plotmonitor.py | mjlosch/python_scripts | 7e3c81382484a70a598e81da9ca260e45ad85a00 | [
"MIT"
] | 1 | 2020-11-20T20:07:06.000Z | 2020-11-20T20:07:06.000Z | plotmonitor.py | mjlosch/python_scripts | 7e3c81382484a70a598e81da9ca260e45ad85a00 | [
"MIT"
] | null | null | null | plotmonitor.py | mjlosch/python_scripts | 7e3c81382484a70a598e81da9ca260e45ad85a00 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: iso-8859-15 -*-
######################## -*- coding: utf-8 -*-
"""Usage: plotres.py variable INPUTFILE(S)
"""
import sys
from getopt import gnu_getopt as getopt
import matplotlib.pyplot as plt
import numpy as np
import datetime
# parse command-line arguments
try:
optlist,args =... | 26.179487 | 79 | 0.555664 | 439 | 3,063 | 3.851936 | 0.355353 | 0.053223 | 0.068007 | 0.035482 | 0.115908 | 0.101715 | 0.080426 | 0 | 0 | 0 | 0 | 0.036203 | 0.260529 | 3,063 | 116 | 80 | 26.405172 | 0.710375 | 0.2984 | 0 | 0.119403 | 0 | 0 | 0.073826 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 1 | 0.029851 | false | 0 | 0.089552 | 0.014925 | 0.149254 | 0.089552 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbb7a78d183671e9c2e148567652110d81c620e9 | 14,266 | py | Python | src/primaires/communication/contextes/immersion.py | vlegoff/tsunami | 36b3b974f6eefbf15cd5d5f099fc14630e66570b | [
"BSD-3-Clause"
] | 14 | 2015-08-21T19:15:21.000Z | 2017-11-26T13:59:17.000Z | src/primaires/communication/contextes/immersion.py | vincent-lg/tsunami | 36b3b974f6eefbf15cd5d5f099fc14630e66570b | [
"BSD-3-Clause"
] | 20 | 2015-09-29T20:50:45.000Z | 2018-06-21T12:58:30.000Z | src/primaires/communication/contextes/immersion.py | vlegoff/tsunami | 36b3b974f6eefbf15cd5d5f099fc14630e66570b | [
"BSD-3-Clause"
] | 3 | 2015-05-02T19:42:03.000Z | 2018-09-06T10:55:00.000Z | # -*-coding:Utf-8 -*
# Copyright (c) 2010-2017 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
... | 42.207101 | 80 | 0.570798 | 1,708 | 14,266 | 4.709602 | 0.204333 | 0.049727 | 0.0818 | 0.040154 | 0.424416 | 0.381527 | 0.357161 | 0.341745 | 0.330308 | 0.330308 | 0 | 0.002059 | 0.31908 | 14,266 | 337 | 81 | 42.332344 | 0.826024 | 0.168513 | 0 | 0.451362 | 0 | 0 | 0.180509 | 0 | 0.003891 | 0 | 0 | 0 | 0 | 1 | 0.066148 | false | 0.007782 | 0.031128 | 0.003891 | 0.190661 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbb9ce8232b91bd4820115cf24c512ee8d3b9a6c | 2,104 | py | Python | Projects/ABM_DA/experiments/ukf_experiments/tests/arc_test.py | RobertClay/DUST-RC | 09f7ec9d8d093021d068dff8a7a48c15ea318b86 | [
"MIT"
] | 15 | 2018-11-21T14:57:24.000Z | 2022-03-04T15:42:09.000Z | Projects/ABM_DA/experiments/ukf_experiments/tests/arc_test.py | RobertClay/DUST-RC | 09f7ec9d8d093021d068dff8a7a48c15ea318b86 | [
"MIT"
] | 125 | 2019-11-06T13:03:35.000Z | 2022-03-07T13:38:33.000Z | Projects/ABM_DA/experiments/ukf_experiments/tests/arc_test.py | RobertClay/DUST-RC | 09f7ec9d8d093021d068dff8a7a48c15ea318b86 | [
"MIT"
] | 6 | 2018-11-20T15:56:49.000Z | 2021-10-08T10:21:06.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 13 12:07:22 2020
@author: medrclaa
Stand alone script for testing arc in ARC. simply run
pytest arc_test.py
To ensure the working environment is suitable for running experiments.
If you only wish to run a single experiment then you an easily ha... | 25.047619 | 82 | 0.63308 | 299 | 2,104 | 4.371237 | 0.494983 | 0.021423 | 0.043611 | 0.052793 | 0.079572 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022834 | 0.2923 | 2,104 | 84 | 83 | 25.047619 | 0.854936 | 0.414924 | 0 | 0.12 | 0 | 0 | 0.223866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0.04 | 0.16 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbbb3304e214d67619ec0cdb7ec6c61b33484d73 | 646 | py | Python | setup.py | dunkgray/nomics-python | 1e19647522f62e32218fa4cf859db68d26696d10 | [
"MIT"
] | null | null | null | setup.py | dunkgray/nomics-python | 1e19647522f62e32218fa4cf859db68d26696d10 | [
"MIT"
] | null | null | null | setup.py | dunkgray/nomics-python | 1e19647522f62e32218fa4cf859db68d26696d10 | [
"MIT"
] | null | null | null | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name = "nomics-python",
version = "3.1.0",
author = "Taylor Facen",
author_email = "taylor.facen@gmail.com",
description = "A python wrapper for the Nomics API",
long_description = long_desc... | 30.761905 | 57 | 0.653251 | 74 | 646 | 5.581081 | 0.702703 | 0.145278 | 0.09201 | 0.145278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009785 | 0.208978 | 646 | 21 | 58 | 30.761905 | 0.798434 | 0 | 0 | 0 | 0 | 0 | 0.367852 | 0.034003 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbbbe5438f901d187d2db29f2722a9a76b8e6ff6 | 2,177 | py | Python | tests/test_day3.py | ullumullu/adventofcode2020 | 0ad0e6ac7af7d3c21fe2cb42cbb8d29a992ae6d0 | [
"MIT"
] | null | null | null | tests/test_day3.py | ullumullu/adventofcode2020 | 0ad0e6ac7af7d3c21fe2cb42cbb8d29a992ae6d0 | [
"MIT"
] | null | null | null | tests/test_day3.py | ullumullu/adventofcode2020 | 0ad0e6ac7af7d3c21fe2cb42cbb8d29a992ae6d0 | [
"MIT"
] | null | null | null | import os
from pathlib import Path
from typing import List
from challenges.day3 import frequency_character
def _read_input() -> List[str]:
"""Read the input file."""
travel_map = []
current_path = Path(os.path.dirname(os.path.realpath(__file__)))
image_path = current_path / "resources" / "day3_puzzle_... | 32.984848 | 94 | 0.521819 | 252 | 2,177 | 4.222222 | 0.257937 | 0.052632 | 0.047932 | 0.073308 | 0.394737 | 0.31297 | 0.256579 | 0.206767 | 0.206767 | 0.148496 | 0 | 0.038876 | 0.231971 | 2,177 | 65 | 95 | 33.492308 | 0.597488 | 0.019752 | 0 | 0.428571 | 0 | 0 | 0.147556 | 0.009868 | 0 | 0 | 0 | 0 | 0.102041 | 1 | 0.102041 | false | 0 | 0.081633 | 0 | 0.204082 | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbc1e336b5068fcf3a34a0e6490251bfd7d85954 | 7,658 | py | Python | models/train/train_seq2seq.py | Chucooleg/alfred | 250cdc8b1e75dd6acb9e20d3c616beec63307a46 | [
"MIT"
] | 1 | 2021-07-19T01:58:51.000Z | 2021-07-19T01:58:51.000Z | models/train/train_seq2seq.py | Chucooleg/alfred | 250cdc8b1e75dd6acb9e20d3c616beec63307a46 | [
"MIT"
] | null | null | null | models/train/train_seq2seq.py | Chucooleg/alfred | 250cdc8b1e75dd6acb9e20d3c616beec63307a46 | [
"MIT"
] | null | null | null | import os
import sys
import random
sys.path.append(os.path.join(os.environ['ALFRED_ROOT']))
sys.path.append(os.path.join(os.environ['ALFRED_ROOT'], 'models'))
import torch
import pprint
import json
from data.preprocess import Dataset
from importlib import import_module
from argparse import ArgumentDefaultsHelpFormatte... | 53.180556 | 152 | 0.69953 | 1,064 | 7,658 | 4.888158 | 0.264098 | 0.074409 | 0.14055 | 0.04153 | 0.297251 | 0.193232 | 0.156701 | 0.083253 | 0.055182 | 0.029994 | 0 | 0.008551 | 0.160094 | 7,658 | 144 | 153 | 53.180556 | 0.800062 | 0.042439 | 0 | 0.056604 | 0 | 0.009434 | 0.325632 | 0.017225 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103774 | 0 | 0.103774 | 0.075472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbc2e6fec230818b054f8a5d8e0894e49655314a | 766 | py | Python | Python/first01.py | praseedpai/WhetYourApettite | d71780f5b52401eea71e631ba030270fca5d6005 | [
"MIT"
] | null | null | null | Python/first01.py | praseedpai/WhetYourApettite | d71780f5b52401eea71e631ba030270fca5d6005 | [
"MIT"
] | null | null | null | Python/first01.py | praseedpai/WhetYourApettite | d71780f5b52401eea71e631ba030270fca5d6005 | [
"MIT"
] | null | null | null | import sys
from sys import exit
if len(sys.argv) == 1 :
print ("No command line argument" )
sys.exit()
#else :
# print ("rest of the program ")
#numbers = sys.argv[1:]
#print (sorted(numbers, key=lambda x: float(x)))
numbers = []
i=1
n= len(sys.argv)
while ( i < n ):
numbers.append(sys.argv[i])
i=i+1
... | 15.632653 | 67 | 0.590078 | 122 | 766 | 3.704918 | 0.418033 | 0.106195 | 0.059735 | 0.106195 | 0.112832 | 0.09292 | 0.09292 | 0 | 0 | 0 | 0 | 0.019928 | 0.279373 | 766 | 48 | 68 | 15.958333 | 0.798913 | 0.391645 | 0 | 0 | 0 | 0 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbc2ffbc7159afa22106299ea24d3e4ca2b28846 | 4,553 | py | Python | library/gui.py | bwbryant1/Library | be8f9bb4fef448ca8630cdae36136bf16b691412 | [
"MIT"
] | null | null | null | library/gui.py | bwbryant1/Library | be8f9bb4fef448ca8630cdae36136bf16b691412 | [
"MIT"
] | null | null | null | library/gui.py | bwbryant1/Library | be8f9bb4fef448ca8630cdae36136bf16b691412 | [
"MIT"
] | null | null | null | from . import dbFuncs
import sys, os
import pkg_resources
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QApplication, qApp, QHBoxLayout, QMainWindow, QAction, QMessageBox, QFileDialog, QPushButton
from PyQt5.QtGui import QIcon
class MainWindow(QMainWindow):
def __init__(self):
super(MainWindow,se... | 36.717742 | 143 | 0.648144 | 465 | 4,553 | 6.294624 | 0.397849 | 0.022549 | 0.016399 | 0.031773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004309 | 0.235449 | 4,553 | 123 | 144 | 37.01626 | 0.836541 | 0.009005 | 0 | 0.02 | 0 | 0 | 0.143681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11 | false | 0 | 0.07 | 0 | 0.2 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbc9208f2d120f0ad2e9b2264fc8cd7812726bef | 1,356 | py | Python | upcfcardsearch/c269.py | ProfessorSean/Kasutamaiza | 7a69a69258f67bbb88bebbac6da4e6e1434947e6 | [
"MIT"
] | null | null | null | upcfcardsearch/c269.py | ProfessorSean/Kasutamaiza | 7a69a69258f67bbb88bebbac6da4e6e1434947e6 | [
"MIT"
] | null | null | null | upcfcardsearch/c269.py | ProfessorSean/Kasutamaiza | 7a69a69258f67bbb88bebbac6da4e6e1434947e6 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
from discord.utils import get
class c269(commands.Cog, name="c269"):
def __init__(self, bot: commands.Bot):
self.bot = bot
@commands.command(name='Vir_the_True_Elementalist', aliases=['c269', 'Elementalist_1', 'Distasta_Master_1'])
async def exam... | 56.5 | 348 | 0.702802 | 195 | 1,356 | 4.794872 | 0.569231 | 0.034225 | 0.055615 | 0.072727 | 0.059893 | 0.059893 | 0 | 0 | 0 | 0 | 0 | 0.036804 | 0.178466 | 1,356 | 24 | 349 | 56.5 | 0.802513 | 0 | 0 | 0 | 0 | 0.052632 | 0.442152 | 0.050111 | 0 | 0 | 0.005895 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbc9265e10993b34830de5472d64bcc90ad75783 | 6,116 | py | Python | test/method_comparison.py | kiyami/stad | 492f5d4467553159ba11a17e46bae43e19fd7b6a | [
"MIT"
] | 2 | 2020-03-21T20:36:20.000Z | 2021-09-02T20:02:17.000Z | test/method_comparison.py | kiyami/stad | 492f5d4467553159ba11a17e46bae43e19fd7b6a | [
"MIT"
] | null | null | null | test/method_comparison.py | kiyami/stad | 492f5d4467553159ba11a17e46bae43e19fd7b6a | [
"MIT"
] | null | null | null | from soad import AsymmetricData as asyd
import matplotlib.pyplot as plt
# This script is prepared for showing the difference between methods of handling asymmetric errors.
class Data:
control_variable_parameters = [10.0, 1.0, 1.0]
control_variable = []
variable_list = []
def __init__(self, mu, sigm... | 29.980392 | 149 | 0.641269 | 838 | 6,116 | 4.414081 | 0.159905 | 0.053528 | 0.035685 | 0.038929 | 0.442822 | 0.381184 | 0.340903 | 0.294945 | 0.227359 | 0.199513 | 0 | 0.014825 | 0.25 | 6,116 | 203 | 150 | 30.128079 | 0.791585 | 0.022891 | 0 | 0.353333 | 0 | 0 | 0.034494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.14 | false | 0 | 0.013333 | 0.006667 | 0.26 | 0.106667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbca8cfcb196a659d097cf5eeb8837d15ab42525 | 3,211 | py | Python | python/ex4/ex4.py | SHIMengjie/Machine-Learning-Andrew-Ng-Matlab | 2f54790e33dc538aea1534f40342791fb7c3abb1 | [
"MIT"
] | 6 | 2017-12-27T04:47:18.000Z | 2018-03-02T14:28:38.000Z | python/ex4/ex4.py | SHIMengjie/Machine-Learning-Andrew-Ng-Matlab | 2f54790e33dc538aea1534f40342791fb7c3abb1 | [
"MIT"
] | null | null | null | python/ex4/ex4.py | SHIMengjie/Machine-Learning-Andrew-Ng-Matlab | 2f54790e33dc538aea1534f40342791fb7c3abb1 | [
"MIT"
] | 2 | 2018-05-31T08:04:40.000Z | 2018-08-26T13:37:21.000Z | import scipy.io as scio
import numpy as np
import matplotlib.pyplot as plt
import scipy.optimize as opt
from displayData import display_data
from costFunction import nn_cost_function
from sigmoid import sigmoid_gradient
from randInitializeWeights import rand_init_weights
from checkNNGradients import check_nn_gradients... | 39.158537 | 150 | 0.690439 | 468 | 3,211 | 4.551282 | 0.318376 | 0.061972 | 0.052582 | 0.059155 | 0.278404 | 0.268075 | 0.257277 | 0.250704 | 0.215962 | 0.215962 | 0 | 0.041997 | 0.095297 | 3,211 | 81 | 151 | 39.641975 | 0.691222 | 0.222672 | 0 | 0.078431 | 0 | 0.058824 | 0.169903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.196078 | 0.039216 | 0.27451 | 0.098039 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbca957948e0eda8e87f337b852c488037b3df59 | 2,432 | py | Python | examples/complex_filtering.py | ITgladiator/tortoise-orm | 9a2bd0edd078ae12e5837c22f88c19f8cc84e7d7 | [
"Apache-2.0"
] | null | null | null | examples/complex_filtering.py | ITgladiator/tortoise-orm | 9a2bd0edd078ae12e5837c22f88c19f8cc84e7d7 | [
"Apache-2.0"
] | 5 | 2020-03-24T17:23:14.000Z | 2021-12-13T20:12:49.000Z | examples/complex_filtering.py | ITgladiator/tortoise-orm | 9a2bd0edd078ae12e5837c22f88c19f8cc84e7d7 | [
"Apache-2.0"
] | null | null | null | """
This example shows some more complex querying
Key points are filtering by related names and using Q objects
"""
import asyncio
from tortoise import Tortoise, fields
from tortoise.models import Model
from tortoise.query_utils import Q
class Tournament(Model):
id = fields.IntField(pk=True)
name = fields.T... | 27.022222 | 91 | 0.701891 | 302 | 2,432 | 5.387417 | 0.268212 | 0.043024 | 0.04917 | 0.038722 | 0.277812 | 0.135218 | 0.135218 | 0.114321 | 0.114321 | 0.086048 | 0 | 0.004516 | 0.18051 | 2,432 | 89 | 92 | 27.325843 | 0.811841 | 0.044408 | 0 | 0.266667 | 0 | 0 | 0.072971 | 0.011658 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.066667 | 0.05 | 0.35 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbcb4e1d16ab428716daad73e4a82b2e4b6883b2 | 3,012 | py | Python | igmp/packet/PacketIpHeader.py | pedrofran12/igmp | fec8d366536cbe10b0fe1c14f6a82cd03fe0772a | [
"MIT"
] | 3 | 2020-08-07T21:26:09.000Z | 2021-06-12T10:21:41.000Z | igmp/packet/PacketIpHeader.py | pedrofran12/igmp | fec8d366536cbe10b0fe1c14f6a82cd03fe0772a | [
"MIT"
] | 2 | 2021-08-25T14:58:54.000Z | 2022-01-26T12:00:13.000Z | igmp/packet/PacketIpHeader.py | pedrofran12/igmp | fec8d366536cbe10b0fe1c14f6a82cd03fe0772a | [
"MIT"
] | 3 | 2022-01-24T12:59:00.000Z | 2022-03-25T14:28:56.000Z | import struct
import socket
class PacketIpHeader:
"""
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Version|
+-+-+-+-+
"""
IP_HDR = "! B"... | 33.098901 | 92 | 0.404714 | 310 | 3,012 | 3.73871 | 0.241935 | 0.017256 | 0.020708 | 0.02761 | 0.374461 | 0.339948 | 0.339948 | 0.300259 | 0.300259 | 0.300259 | 0 | 0.044701 | 0.338977 | 3,012 | 90 | 93 | 33.466667 | 0.537418 | 0.397742 | 0 | 0.25641 | 0 | 0 | 0.017581 | 0 | 0 | 0 | 0.008439 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.051282 | 0.051282 | 0.461538 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbcbce60af2ea40ef9771cd4e2bb6d4016db9a38 | 1,547 | py | Python | shopping_mall/shopping_mall/utils/fastdfs/fdfs_storage.py | lzy00001/SHOP_CENTER | 1e26b9694afc89d86f2f3db9c0b0ff1f98ab1369 | [
"MIT"
] | null | null | null | shopping_mall/shopping_mall/utils/fastdfs/fdfs_storage.py | lzy00001/SHOP_CENTER | 1e26b9694afc89d86f2f3db9c0b0ff1f98ab1369 | [
"MIT"
] | null | null | null | shopping_mall/shopping_mall/utils/fastdfs/fdfs_storage.py | lzy00001/SHOP_CENTER | 1e26b9694afc89d86f2f3db9c0b0ff1f98ab1369 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.core.files.storage import Storage
from django.utils.deconstruct import deconstructible
from fdfs_client.client import Fdfs_client
@deconstructible
class FastDFSStorage(Storage):
def __init__(self, base_url=None, client_conf=None):
"""
初始化
:param... | 26.672414 | 56 | 0.599871 | 166 | 1,547 | 5.403614 | 0.39759 | 0.089186 | 0.036789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.312864 | 1,547 | 57 | 57 | 27.140351 | 0.843838 | 0.208145 | 0 | 0 | 0 | 0 | 0.055394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0.038462 | 0.153846 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbcc3437214daafca043a3fde76d32524788bacf | 664 | py | Python | src/sovereign/server.py | bochuxt/envoy-control-plane-python3 | 6d63ad6e1ecff5365bb571f0021951b066f8e270 | [
"Apache-2.0"
] | 1 | 2020-07-08T19:37:09.000Z | 2020-07-08T19:37:09.000Z | src/sovereign/server.py | bochuxt/envoy-control-plane-python3 | 6d63ad6e1ecff5365bb571f0021951b066f8e270 | [
"Apache-2.0"
] | null | null | null | src/sovereign/server.py | bochuxt/envoy-control-plane-python3 | 6d63ad6e1ecff5365bb571f0021951b066f8e270 | [
"Apache-2.0"
] | null | null | null | import gunicorn.app.base
from sovereign import asgi_config
from sovereign.app import app
class StandaloneApplication(gunicorn.app.base.BaseApplication):
def __init__(self, application, options=None):
self.options = options or {}
self.application = application
super().__init__()
def lo... | 22.133333 | 63 | 0.661145 | 76 | 664 | 5.5 | 0.460526 | 0.107656 | 0.07177 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23494 | 664 | 29 | 64 | 22.896552 | 0.822835 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.142857 | 0.047619 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbd1627e659fe085f390ad7f199095412b24f0f3 | 1,533 | py | Python | tests/test_cbers_ndvi.py | RemotePixel/remotepixel-py | bd58db7a394c84651d05c4e6f83da4cd3d4c26f3 | [
"BSD-2-Clause"
] | 5 | 2017-09-29T15:21:39.000Z | 2021-02-23T02:03:18.000Z | tests/test_cbers_ndvi.py | RemotePixel/remotepixel-py | bd58db7a394c84651d05c4e6f83da4cd3d4c26f3 | [
"BSD-2-Clause"
] | 3 | 2017-11-03T13:24:31.000Z | 2018-09-18T13:55:52.000Z | tests/test_cbers_ndvi.py | RemotePixel/remotepixel-py | bd58db7a394c84651d05c4e6f83da4cd3d4c26f3 | [
"BSD-2-Clause"
] | 4 | 2017-10-04T10:42:45.000Z | 2019-06-21T07:49:35.000Z |
import os
from remotepixel import cbers_ndvi
CBERS_SCENE = "CBERS_4_MUX_20171121_057_094_L2"
CBERS_BUCKET = os.path.join(os.path.dirname(__file__), "fixtures", "cbers-pds")
CBERS_PATH = os.path.join(
CBERS_BUCKET, "CBERS4/MUX/057/094/CBERS_4_MUX_20171121_057_094_L2/"
)
def test_point_valid(monkeypatch):
""... | 36.5 | 83 | 0.692107 | 205 | 1,533 | 4.960976 | 0.326829 | 0.086529 | 0.055064 | 0.067847 | 0.6647 | 0.634218 | 0.634218 | 0.585054 | 0.585054 | 0.585054 | 0 | 0.128145 | 0.170254 | 1,533 | 41 | 84 | 37.390244 | 0.671384 | 0.128506 | 0 | 0.275862 | 0 | 0 | 0.195603 | 0.062168 | 0 | 0 | 0 | 0 | 0.103448 | 1 | 0.103448 | false | 0 | 0.068966 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbd2de928f07cf44790d6956008e6625c654e85c | 2,270 | py | Python | test/scons-time/time/no-result.py | moroten/scons | 20927b42ed4f0cb87f51287fa3b4b6cf915afcf8 | [
"MIT"
] | 1,403 | 2017-11-23T14:24:01.000Z | 2022-03-30T20:59:39.000Z | test/scons-time/time/no-result.py | moroten/scons | 20927b42ed4f0cb87f51287fa3b4b6cf915afcf8 | [
"MIT"
] | 3,708 | 2017-11-27T13:47:12.000Z | 2022-03-29T17:21:17.000Z | test/scons-time/time/no-result.py | moroten/scons | 20927b42ed4f0cb87f51287fa3b4b6cf915afcf8 | [
"MIT"
] | 281 | 2017-12-01T23:48:38.000Z | 2022-03-31T15:25:44.000Z | #!/usr/bin/env python
#
# __COPYRIGHT__
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
... | 27.682927 | 73 | 0.711013 | 334 | 2,270 | 4.730539 | 0.535928 | 0.055696 | 0.016456 | 0.010127 | 0.077215 | 0.077215 | 0 | 0 | 0 | 0 | 0 | 0.010315 | 0.188546 | 2,270 | 81 | 74 | 28.024691 | 0.847448 | 0.50793 | 0 | 0.2 | 0 | 0 | 0.295974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.033333 | 0.033333 | 0 | 0.033333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbd3456398088e022605db823242b0036ee40344 | 25,955 | py | Python | alipy/index/index_collections.py | Houchaoqun/ALiPy | 93aff0379db2a1994803d19026c434c2b12a2485 | [
"BSD-3-Clause"
] | 1 | 2019-07-10T10:55:18.000Z | 2019-07-10T10:55:18.000Z | alipy/index/index_collections.py | Houchaoqun/ALiPy | 93aff0379db2a1994803d19026c434c2b12a2485 | [
"BSD-3-Clause"
] | null | null | null | alipy/index/index_collections.py | Houchaoqun/ALiPy | 93aff0379db2a1994803d19026c434c2b12a2485 | [
"BSD-3-Clause"
] | null | null | null | """
The container to store indexes in active learning.
Serve as the basic type of 'set' operation.
"""
# Authors: Ying-Peng Tang
# License: BSD 3 clause
from __future__ import division
import collections
import copy
import numpy as np
from .multi_label_tools import check_index_multilabel, infer_label_size_multilabe... | 36.607898 | 124 | 0.571335 | 3,234 | 25,955 | 4.465677 | 0.112245 | 0.018695 | 0.013502 | 0.009694 | 0.531852 | 0.494391 | 0.459632 | 0.431242 | 0.422379 | 0.422379 | 0 | 0.025806 | 0.316201 | 25,955 | 708 | 125 | 36.659605 | 0.78792 | 0.443807 | 0 | 0.414343 | 0 | 0 | 0.119217 | 0.004176 | 0 | 0 | 0 | 0 | 0.027888 | 1 | 0.103586 | false | 0 | 0.035857 | 0.003984 | 0.270916 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbd4db8145e5a07f88303ba81f436838785ffa65 | 995 | py | Python | the biggidy back end/rawText.py | jlekas/recipe-site | e1c54cb0c19e2c28a968abe8988d7b57fdadbb46 | [
"MIT"
] | 1 | 2019-09-06T00:16:27.000Z | 2019-09-06T00:16:27.000Z | the biggidy back end/rawText.py | jlekas/recipe-site | e1c54cb0c19e2c28a968abe8988d7b57fdadbb46 | [
"MIT"
] | 6 | 2021-03-09T17:29:30.000Z | 2022-02-26T17:43:15.000Z | the biggidy back end/rawText.py | jlekas/recipe-site | e1c54cb0c19e2c28a968abe8988d7b57fdadbb46 | [
"MIT"
] | null | null | null | url = "https://www.delish.com/cooking/recipe-ideas/recipes/a53823/easy-pad-thai-recipe/"
url2 = "https://www.allrecipes.com/recipe/92462/slow-cooker-texas-pulled-pork/"
# opener = urllib.URLopener()
# opener.addheader(('User-Agent', 'Mozilla/5.0'))
# f = urllib.urlopen(url)
import requests
import html2text
h = html2... | 20.729167 | 88 | 0.613065 | 130 | 995 | 4.684615 | 0.484615 | 0.057471 | 0.029557 | 0.032841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027167 | 0.223116 | 995 | 47 | 89 | 21.170213 | 0.760673 | 0.354774 | 0 | 0.090909 | 0 | 0.090909 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbd4f0ccd22a107526cc04a4572d5b45f8b8bf9b | 21,796 | py | Python | tests/test_service_desk.py | p-tombez/jira | a2d9311aa81384382cb3cbe6c9a6bc8f56387feb | [
"BSD-2-Clause"
] | null | null | null | tests/test_service_desk.py | p-tombez/jira | a2d9311aa81384382cb3cbe6c9a6bc8f56387feb | [
"BSD-2-Clause"
] | null | null | null | tests/test_service_desk.py | p-tombez/jira | a2d9311aa81384382cb3cbe6c9a6bc8f56387feb | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function
import inspect
import logging
import os
import platform
import sys
from time import sleep
from flaky import flaky
import pytest
import requests
from jira_test_manager import JiraTestManager
# _non_parallel is used to prevent some tests from failing due to ... | 38.991055 | 117 | 0.677097 | 2,622 | 21,796 | 5.381007 | 0.099924 | 0.048763 | 0.035013 | 0.025516 | 0.744631 | 0.697144 | 0.655964 | 0.611383 | 0.568361 | 0.526472 | 0 | 0.006779 | 0.221692 | 21,796 | 558 | 118 | 39.060932 | 0.824923 | 0.02216 | 0 | 0.541568 | 0 | 0 | 0.086154 | 0.012864 | 0 | 0 | 0 | 0 | 0.251781 | 1 | 0.057007 | false | 0.021378 | 0.045131 | 0.002375 | 0.109264 | 0.002375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbd4fbdd0e8caf1bb4e01991f3ba92b60968ec1e | 211 | py | Python | Atividade do Livro-Nilo Ney(PYTHON)/Cap.05/exe 5.25.py | EduardoJonathan0/Python | 0e4dff4703515a6454ba25c6f401960b6155f32f | [
"MIT"
] | null | null | null | Atividade do Livro-Nilo Ney(PYTHON)/Cap.05/exe 5.25.py | EduardoJonathan0/Python | 0e4dff4703515a6454ba25c6f401960b6155f32f | [
"MIT"
] | null | null | null | Atividade do Livro-Nilo Ney(PYTHON)/Cap.05/exe 5.25.py | EduardoJonathan0/Python | 0e4dff4703515a6454ba25c6f401960b6155f32f | [
"MIT"
] | null | null | null | n = int(input('Insira um número e calcule sua raiz: '))
b = 2
while True:
p = (b + (n / b)) / 2
res = p ** 2
b = p
if abs(n - res) < 0.0001:
break
print(f'p = {p}')
print(f'p² = {res}')
| 17.583333 | 55 | 0.469194 | 39 | 211 | 2.538462 | 0.615385 | 0.040404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06383 | 0.331754 | 211 | 11 | 56 | 19.181818 | 0.638298 | 0 | 0 | 0 | 0 | 0 | 0.255924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbd741a2b97e35d13af8722f7601c0365f0d7506 | 1,732 | py | Python | wolframclient/utils/six.py | krbarker/WolframClientForPython | f2198b15cad0f406b78ad40a4d1e3ca76125b408 | [
"MIT"
] | null | null | null | wolframclient/utils/six.py | krbarker/WolframClientForPython | f2198b15cad0f406b78ad40a4d1e3ca76125b408 | [
"MIT"
] | null | null | null | wolframclient/utils/six.py | krbarker/WolframClientForPython | f2198b15cad0f406b78ad40a4d1e3ca76125b408 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import datetime
import decimal
import platform
import sys
import types
from itertools import chain
#stripped version of SIX
PY2 = sys.version_info[0] == 2
PY3 = sys.version_info[0] == 3
PY_35 = sys.version_info >= (3, 5... | 25.850746 | 79 | 0.691686 | 221 | 1,732 | 5.266968 | 0.475113 | 0.042955 | 0.060137 | 0.03866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017505 | 0.20843 | 1,732 | 66 | 80 | 26.242424 | 0.83151 | 0.151848 | 0 | 0.085106 | 0 | 0 | 0.015038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.191489 | 0 | 0.191489 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbd89ae0e3bc378776e8ecafb307ef98cc2d28f8 | 3,388 | py | Python | Lib/site-packages/pynput/mouse/_xorg.py | djaldave/laevad-python-2.7.18 | df9aac191d554295db45d638e528880a9ab9a3ec | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/pynput/mouse/_xorg.py | djaldave/laevad-python-2.7.18 | df9aac191d554295db45d638e528880a9ab9a3ec | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/pynput/mouse/_xorg.py | djaldave/laevad-python-2.7.18 | df9aac191d554295db45d638e528880a9ab9a3ec | [
"bzip2-1.0.6"
] | null | null | null | # coding=utf-8
# pynput
# Copyright (C) 2015-2016 Moses Palmér
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
... | 30.522523 | 79 | 0.631641 | 471 | 3,388 | 4.409766 | 0.352442 | 0.019259 | 0.02311 | 0.042369 | 0.231584 | 0.187289 | 0.171883 | 0.123736 | 0.094848 | 0.094848 | 0 | 0.010958 | 0.272727 | 3,388 | 110 | 80 | 30.8 | 0.831981 | 0.260626 | 0 | 0.117647 | 0 | 0 | 0.008065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.426471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbdc81d7845fea02b2d263cc5ca73eecc6dfae8e | 2,259 | py | Python | piecutter/engines/mock.py | diecutter/piecutter | 250a90a4cae1b72ff3c141dffb8c58de74dbedfd | [
"BSD-3-Clause"
] | 2 | 2016-05-02T02:22:34.000Z | 2021-02-08T18:17:30.000Z | piecutter/engines/mock.py | diecutter/piecutter | 250a90a4cae1b72ff3c141dffb8c58de74dbedfd | [
"BSD-3-Clause"
] | 2 | 2016-03-22T10:09:13.000Z | 2016-07-01T08:04:43.000Z | piecutter/engines/mock.py | diecutter/piecutter | 250a90a4cae1b72ff3c141dffb8c58de74dbedfd | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Mock template engine, for use in tests."""
from piecutter.engines import Engine
#: Default value used as :py:attr:`MockEngine.render_result`
default_render_result = u'RENDER WITH ARGS={args!s} AND KWARGS={kwargs!s}'
class MockEngine(Engine):
"""Template engine mock.
Typical usage... | 31.375 | 77 | 0.626826 | 296 | 2,259 | 4.719595 | 0.310811 | 0.085898 | 0.057266 | 0.032212 | 0.277738 | 0.213314 | 0.186113 | 0.186113 | 0.125984 | 0.125984 | 0 | 0.004065 | 0.237716 | 2,259 | 71 | 78 | 31.816901 | 0.807201 | 0.656485 | 0 | 0 | 0 | 0 | 0.075563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbddad4ad03be76385839104dc7ae9091a1e919e | 1,331 | py | Python | scripts/lda.py | flatironinstitute/catvae | 4bfdce83a24c0fb0e55215dd24cda5dcaa9d418a | [
"BSD-3-Clause"
] | 6 | 2021-05-23T18:50:48.000Z | 2022-02-23T20:57:36.000Z | scripts/lda.py | flatironinstitute/catvae | 4bfdce83a24c0fb0e55215dd24cda5dcaa9d418a | [
"BSD-3-Clause"
] | 24 | 2021-05-19T17:43:33.000Z | 2022-03-03T21:41:13.000Z | scripts/lda.py | mortonjt/catvae | 003a46682fc33e5b0d66c17e85e59e464a465c53 | [
"BSD-3-Clause"
] | 2 | 2021-05-19T16:21:13.000Z | 2021-09-23T01:11:29.000Z | import argparse
from sklearn.decomposition import LatentDirichletAllocation as LDA
import pickle
from biom import load_table
def main(args):
model = LDA(n_components=args.n_latent, max_iter=args.iterations,
verbose=1, learning_method='online')
table = load_table(args.train_biom)
X = table.... | 36.972222 | 76 | 0.596544 | 151 | 1,331 | 5.099338 | 0.430464 | 0.07013 | 0.132468 | 0.046753 | 0.064935 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01056 | 0.288505 | 1,331 | 35 | 77 | 38.028571 | 0.802534 | 0 | 0 | 0 | 0 | 0 | 0.155522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.129032 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbdf88f92268a5b7f1908449c372b3ef7604c3eb | 2,984 | py | Python | splitjoin.py | sonicskye/senarai | 1d531372b9d290812df97c2be644fe1d4d4ffb1c | [
"MIT"
] | 1 | 2018-12-31T02:55:26.000Z | 2018-12-31T02:55:26.000Z | splitjoin.py | sonicskye/senarai | 1d531372b9d290812df97c2be644fe1d4d4ffb1c | [
"MIT"
] | null | null | null | splitjoin.py | sonicskye/senarai | 1d531372b9d290812df97c2be644fe1d4d4ffb1c | [
"MIT"
] | null | null | null | '''
splitjoin.py
sonicskye@2018
The functions are used to split and join files
based on:
https://stonesoupprogramming.com/2017/09/16/python-split-and-join-file/
with modification by adding natural sort
'''
import os
import re
# https://stackoverflow.com/questions/11150239/python-natural-sorting
def natural_s... | 25.724138 | 79 | 0.647118 | 414 | 2,984 | 4.560386 | 0.345411 | 0.03178 | 0.03178 | 0.019068 | 0.088453 | 0.042903 | 0.042903 | 0 | 0 | 0 | 0 | 0.015924 | 0.263405 | 2,984 | 115 | 80 | 25.947826 | 0.843039 | 0.362601 | 0 | 0.153846 | 0 | 0 | 0.013725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.051282 | 0 | 0.179487 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbdfcde9b6324f3991c172b4af39c20e74cff120 | 9,653 | py | Python | daily_leader_board.py | bundgus/hadoop-yarn-resource-consumption-report | 92ef200b4dbd5fd9d7877817b72d4d407126896f | [
"MIT"
] | 1 | 2019-04-29T18:32:19.000Z | 2019-04-29T18:32:19.000Z | daily_leader_board.py | bundgus/hadoop-yarn-resource-consumption-report | 92ef200b4dbd5fd9d7877817b72d4d407126896f | [
"MIT"
] | null | null | null | daily_leader_board.py | bundgus/hadoop-yarn-resource-consumption-report | 92ef200b4dbd5fd9d7877817b72d4d407126896f | [
"MIT"
] | null | null | null | # Mark Bundgus 2019
import luigi
import logging
from yarn_api_client import ResourceManager # https://python-client-for-hadoop-yarn-api.readthedocs.io
from datetime import datetime
from datetime import timedelta
import pandas as pd
from tabulate import tabulate
import os
import configuration
log = logging.getLogger("... | 43.09375 | 114 | 0.58531 | 1,116 | 9,653 | 4.732079 | 0.170251 | 0.05908 | 0.024995 | 0.041659 | 0.427381 | 0.356372 | 0.305245 | 0.204696 | 0.14751 | 0.14751 | 0 | 0.018603 | 0.320626 | 9,653 | 223 | 115 | 43.286996 | 0.786673 | 0.084637 | 0 | 0.083333 | 0 | 0 | 0.164135 | 0.069032 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.053571 | 0.005952 | 0.125 | 0.053571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fbe1cc6565e4765aae8322647fc0bb9752036f7c | 5,021 | py | Python | src/scripts/train_image.py | paavalipopov/introspection | ee486a9e8c8b6ddb7ab257eae9e14aac5d637527 | [
"Apache-2.0"
] | null | null | null | src/scripts/train_image.py | paavalipopov/introspection | ee486a9e8c8b6ddb7ab257eae9e14aac5d637527 | [
"Apache-2.0"
] | null | null | null | src/scripts/train_image.py | paavalipopov/introspection | ee486a9e8c8b6ddb7ab257eae9e14aac5d637527 | [
"Apache-2.0"
] | null | null | null | import argparse
from datetime import datetime
import os
from catalyst import dl, utils
from catalyst.contrib.data import AllTripletsSampler
from catalyst.contrib.losses import TripletMarginLossWithSampler
from catalyst.data import BatchBalanceClassSampler
from torch import nn, optim
from torch.utils.data import DataLo... | 31.778481 | 92 | 0.601075 | 516 | 5,021 | 5.678295 | 0.333333 | 0.011945 | 0.027304 | 0.027304 | 0.193857 | 0.165188 | 0.106485 | 0.106485 | 0.106485 | 0.106485 | 0 | 0.030718 | 0.286795 | 5,021 | 157 | 93 | 31.980892 | 0.78749 | 0.034854 | 0 | 0.155039 | 0 | 0 | 0.061621 | 0.008065 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.093023 | 0.007752 | 0.131783 | 0.007752 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
836bc2bf5ec4d2f69e9599977608bd55913a2fd3 | 22,536 | py | Python | aegea/batch.py | MrOlm/aegea | 5599ddaf7947918a5c7a0282ab993cfa304790f8 | [
"Apache-2.0"
] | null | null | null | aegea/batch.py | MrOlm/aegea | 5599ddaf7947918a5c7a0282ab993cfa304790f8 | [
"Apache-2.0"
] | null | null | null | aegea/batch.py | MrOlm/aegea | 5599ddaf7947918a5c7a0282ab993cfa304790f8 | [
"Apache-2.0"
] | null | null | null | """
Manage AWS Batch jobs, queues, and compute environments.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import os, sys, argparse, base64, collections, io, subprocess, json, time, re, hashlib, concurrent.futures, itertools
from botocore.exceptions import ClientError
from .... | 57.489796 | 120 | 0.693734 | 2,833 | 22,536 | 5.276385 | 0.180374 | 0.045625 | 0.05004 | 0.019668 | 0.278699 | 0.211868 | 0.162229 | 0.101686 | 0.064624 | 0.057667 | 0 | 0.005018 | 0.177583 | 22,536 | 391 | 121 | 57.636829 | 0.8015 | 0.006479 | 0 | 0.074405 | 0 | 0.005952 | 0.205397 | 0.02377 | 0 | 0 | 0 | 0.002558 | 0 | 1 | 0.083333 | false | 0 | 0.044643 | 0.020833 | 0.184524 | 0.014881 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
836c208587b33a187a0445b8a77d2420c941ff8d | 10,897 | py | Python | src/run_joint_confidence_generator-only.py | williamsashbee/Confident_classifier | cba3ef862b310afc3af6c4a62b524f032f45549e | [
"MIT"
] | null | null | null | src/run_joint_confidence_generator-only.py | williamsashbee/Confident_classifier | cba3ef862b310afc3af6c4a62b524f032f45549e | [
"MIT"
] | null | null | null | src/run_joint_confidence_generator-only.py | williamsashbee/Confident_classifier | cba3ef862b310afc3af6c4a62b524f032f45549e | [
"MIT"
] | null | null | null | ##############################################
# This code is based on samples from pytorch #
##############################################
# Writer: Kimin Lee
from __future__ import print_function
import argparse
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import d... | 35.727869 | 146 | 0.626962 | 1,511 | 10,897 | 4.328259 | 0.203177 | 0.022018 | 0.04159 | 0.010092 | 0.340826 | 0.314526 | 0.29893 | 0.273242 | 0.236239 | 0.171101 | 0 | 0.031748 | 0.210884 | 10,897 | 304 | 147 | 35.845395 | 0.728806 | 0.161696 | 0 | 0.101695 | 0 | 0.00565 | 0.131931 | 0.018812 | 0 | 0 | 0 | 0 | 0.011299 | 1 | 0.011299 | false | 0 | 0.073446 | 0 | 0.084746 | 0.062147 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
836ce39bcde99da750d6f14d0f025be31157aa0f | 302 | py | Python | 450/Nagendra/greedy/Swap and Maximize .py | Nagendracse1/Competitive-Programming | 325e151b9259dbc31d331c8932def42e3ab09913 | [
"MIT"
] | 3 | 2020-12-20T10:23:11.000Z | 2021-06-16T10:34:18.000Z | 450/Nagendra/greedy/Swap and Maximize .py | Spring-dot/Competitive-Programming | 98add277a8b029710c749d1082de25c524e12408 | [
"MIT"
] | null | null | null | 450/Nagendra/greedy/Swap and Maximize .py | Spring-dot/Competitive-Programming | 98add277a8b029710c749d1082de25c524e12408 | [
"MIT"
] | null | null | null | #code https://practice.geeksforgeeks.org/problems/swap-and-maximize/0
for _ in range(int(input())):
n = int(input())
arr = list(map(int, input().split()))
arr.sort()
max = 0
for i in range(n//2):
max -= 2*arr[i]
max += 2*arr[n-i-1]
print(max) | 21.571429 | 69 | 0.523179 | 46 | 302 | 3.413043 | 0.565217 | 0.152866 | 0.089172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027907 | 0.288079 | 302 | 14 | 70 | 21.571429 | 0.702326 | 0.225166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
83703f7128768cbf161b1e6803712f5beeb2dcb8 | 10,284 | py | Python | Probabilistic_Matching.py | Data-Linkage/Rwandan_linkage | 2c9e504b510f5ec54d207779e20b5ad491c4c5df | [
"MIT"
] | null | null | null | Probabilistic_Matching.py | Data-Linkage/Rwandan_linkage | 2c9e504b510f5ec54d207779e20b5ad491c4c5df | [
"MIT"
] | null | null | null | Probabilistic_Matching.py | Data-Linkage/Rwandan_linkage | 2c9e504b510f5ec54d207779e20b5ad491c4c5df | [
"MIT"
] | null | null | null | import pandas as pd
import rapidfuzz
import math
import numpy as np
# ------------------------- #
# --------- DATA ---------- #
# ------------------------- #
# Read in mock census and PES data
CEN = pd.read_csv('Data/Mock_Rwanda_Data_Census.csv')
PES = pd.read_csv('Data/Mock_Rwanda_Data_Pes.csv')
# select ne... | 46.533937 | 160 | 0.587417 | 1,216 | 10,284 | 4.734375 | 0.213816 | 0.165364 | 0.08025 | 0.053847 | 0.280007 | 0.223033 | 0.189508 | 0.125934 | 0.081813 | 0.051763 | 0 | 0.01494 | 0.179891 | 10,284 | 220 | 161 | 46.745455 | 0.667655 | 0.358421 | 0 | 0.032967 | 0 | 0 | 0.183483 | 0.014718 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010989 | false | 0 | 0.043956 | 0 | 0.065934 | 0.021978 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |