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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
653e4d575b3afc091598bb2023a58c02bfcee70f | 4,780 | py | Python | application.py | Wanqianxn/podracer | fd7ed6b0e00122be346f1b00f4513d710112b6de | [
"MIT"
] | null | null | null | application.py | Wanqianxn/podracer | fd7ed6b0e00122be346f1b00f4513d710112b6de | [
"MIT"
] | null | null | null | application.py | Wanqianxn/podracer | fd7ed6b0e00122be346f1b00f4513d710112b6de | [
"MIT"
] | null | null | null | import os, re
from flask import Flask, request, session, g, redirect, url_for, abort, render_template, flash
from flask_session import Session
from mygpoclient.json import JsonClient
from functools import wraps
from tempfile import mkdtemp
from helpers import *
# Create Flask application and set configuration.
app = ... | 35.93985 | 102 | 0.649791 | 547 | 4,780 | 5.548446 | 0.310786 | 0.039868 | 0.03229 | 0.039539 | 0.134432 | 0.085008 | 0.024382 | 0 | 0 | 0 | 0 | 0.003136 | 0.199582 | 4,780 | 132 | 103 | 36.212121 | 0.79012 | 0.094979 | 0 | 0.153846 | 0 | 0 | 0.165285 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086538 | false | 0.076923 | 0.067308 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
654044f89fd9be52451be454ee168e3e056286b6 | 2,715 | py | Python | docs/conf.py | muneebullashariff/systemrdl-compiler | 57b1040c7307246755638069909da62b2edc648c | [
"MIT",
"BSD-3-Clause"
] | 2 | 2020-06-14T04:19:00.000Z | 2020-06-14T04:19:03.000Z | docs/conf.py | muneebullashariff/systemrdl-compiler | 57b1040c7307246755638069909da62b2edc648c | [
"MIT",
"BSD-3-Clause"
] | null | null | null | docs/conf.py | muneebullashariff/systemrdl-compiler | 57b1040c7307246755638069909da62b2edc648c | [
"MIT",
"BSD-3-Clause"
] | null | null | null | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup --------------------------------------------------------------
# If extensions (or module... | 30.852273 | 79 | 0.655617 | 358 | 2,715 | 4.843575 | 0.505587 | 0.020761 | 0.022491 | 0.017301 | 0.056517 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009158 | 0.155433 | 2,715 | 87 | 80 | 31.206897 | 0.747056 | 0.596317 | 0 | 0 | 0 | 0 | 0.269557 | 0.049953 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.030303 | false | 0 | 0.060606 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6546ad88f3b0952ca282e1b6eb60bc7c0762284f | 11,174 | py | Python | src/recording_script_generator/core/importing.py | stefantaubert/recording-script-generator | 01cdcd4b85ed7f245f4bb8535d870c04472746c9 | [
"MIT"
] | null | null | null | src/recording_script_generator/core/importing.py | stefantaubert/recording-script-generator | 01cdcd4b85ed7f245f4bb8535d870c04472746c9 | [
"MIT"
] | null | null | null | src/recording_script_generator/core/importing.py | stefantaubert/recording-script-generator | 01cdcd4b85ed7f245f4bb8535d870c04472746c9 | [
"MIT"
] | null | null | null | from concurrent.futures.thread import ThreadPoolExecutor
from copy import deepcopy
from functools import partial
from logging import getLogger
from multiprocessing import Pool
from pathlib import Path
from typing import List, Optional, Set, Tuple
from recording_script_generator.core.types import (Paths, ReadingPassage... | 36.636066 | 286 | 0.749776 | 1,341 | 11,174 | 5.956003 | 0.150634 | 0.065732 | 0.020283 | 0.027044 | 0.354576 | 0.227244 | 0.154877 | 0.129586 | 0.120571 | 0.110555 | 0 | 0.00213 | 0.159567 | 11,174 | 304 | 287 | 36.756579 | 0.848365 | 0.109898 | 0 | 0.245098 | 0 | 0 | 0.035707 | 0.00232 | 0 | 0 | 0 | 0.003289 | 0.044118 | 1 | 0.063725 | false | 0.176471 | 0.058824 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
654944706d163b548ea9cafa3469a216435078d4 | 2,452 | py | Python | at_learner_core/at_learner_core/datasets/df2dict_dataset.py | hieuvecto/CASIA-SURF_CeFA | 71dfd846ce968b3ed26974392a6e0c9b40aa12ae | [
"MIT"
] | 133 | 2020-03-03T03:58:04.000Z | 2022-03-28T21:42:36.000Z | at_learner_core/at_learner_core/datasets/df2dict_dataset.py | lucaslu1987/CASIA-SURF_CeFA | 205d3d976523ed0c15d1e709ed7f21d50d7cf19b | [
"MIT"
] | 24 | 2020-03-13T09:30:09.000Z | 2022-03-22T07:47:15.000Z | at_learner_core/at_learner_core/datasets/df2dict_dataset.py | lucaslu1987/CASIA-SURF_CeFA | 205d3d976523ed0c15d1e709ed7f21d50d7cf19b | [
"MIT"
] | 29 | 2020-03-10T06:46:45.000Z | 2022-01-29T15:35:21.000Z | from PIL import Image
import pandas as pd
import torch.utils.data
from collections import OrderedDict
import torch
def rgb_loader(path):
return Image.open(path).convert('RGB')
class Df2DictDataset(torch.utils.data.Dataset):
def __init__(self, datalist_config, transforms):
self.datalist_config = data... | 39.548387 | 82 | 0.678222 | 304 | 2,452 | 5.184211 | 0.203947 | 0.168782 | 0.205584 | 0.126904 | 0.560914 | 0.497462 | 0.414975 | 0.385787 | 0.295685 | 0.228426 | 0 | 0.001603 | 0.236949 | 2,452 | 61 | 83 | 40.196721 | 0.840727 | 0 | 0 | 0.081633 | 0 | 0 | 0.027325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102041 | false | 0 | 0.102041 | 0.040816 | 0.306122 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
654dbf4ff3d1b6dbedc2dc98117a33982ffb54c3 | 3,511 | py | Python | src/ROESatistics.py | ChampionNi/money-tree | 64f6894f46f8df011e9a875d9c866958969fce83 | [
"Apache-2.0"
] | null | null | null | src/ROESatistics.py | ChampionNi/money-tree | 64f6894f46f8df011e9a875d9c866958969fce83 | [
"Apache-2.0"
] | null | null | null | src/ROESatistics.py | ChampionNi/money-tree | 64f6894f46f8df011e9a875d9c866958969fce83 | [
"Apache-2.0"
] | null | null | null | #-*-coding=utf-8-*-
__author__ = 'ni'
import pandas as pd
# import os
import numpy as np
import tushare as ts
import time
import globalSetting as gs
THIS_MODULE = 'ROESatistics'
dirfix= gs.g_data_dir + THIS_MODULE + gs.g_dir_separator
def get_years_report(start_year, end_year):
if(start_year > end_year):
... | 27.007692 | 108 | 0.572202 | 479 | 3,511 | 3.995825 | 0.237996 | 0.10815 | 0.103448 | 0.117032 | 0.490596 | 0.401254 | 0.372518 | 0.319227 | 0.319227 | 0.258621 | 0 | 0.015452 | 0.281116 | 3,511 | 129 | 109 | 27.217054 | 0.742868 | 0.143264 | 0 | 0.414634 | 0 | 0 | 0.046231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060976 | false | 0.060976 | 0.060976 | 0 | 0.134146 | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e8f365f837b4668de7e2f04b111d609b4137b895 | 605 | py | Python | examples/matplotlib2/matplotlib_canvas.py | DietmarSchwertberger/wxGlade | 8e78cdc509d458cc896d47315e19f3daa6c09213 | [
"MIT"
] | null | null | null | examples/matplotlib2/matplotlib_canvas.py | DietmarSchwertberger/wxGlade | 8e78cdc509d458cc896d47315e19f3daa6c09213 | [
"MIT"
] | 403 | 2018-01-03T19:47:28.000Z | 2018-03-23T17:43:39.000Z | examples/matplotlib2/matplotlib_canvas.py | DietmarSchwertberger/wxGlade | 8e78cdc509d458cc896d47315e19f3daa6c09213 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# a class to make matplotlib.backend_wxagg.FigureCanvasWxAgg compatible to wxGlade
import wx
import matplotlib
from matplotlib.figure import Figure
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas
class MatplotlibCanvas(FigureCanvas):
... | 26.304348 | 82 | 0.707438 | 75 | 605 | 5.546667 | 0.533333 | 0.057692 | 0.067308 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.196694 | 605 | 22 | 83 | 27.5 | 0.843621 | 0.242975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3301976b2cb4fb5ffc7c65d408c0514be64880fb | 1,269 | py | Python | website/migrations/0005_auto_20180608_1820.py | pomo-mondreganto/CTForces-old | 86758192f800108ff109f07fe155d5a98b4a3e14 | [
"MIT"
] | null | null | null | website/migrations/0005_auto_20180608_1820.py | pomo-mondreganto/CTForces-old | 86758192f800108ff109f07fe155d5a98b4a3e14 | [
"MIT"
] | 6 | 2021-10-01T14:18:34.000Z | 2021-10-01T14:19:17.000Z | website/migrations/0005_auto_20180608_1820.py | pomo-mondreganto/CTForces-old | 86758192f800108ff109f07fe155d5a98b4a3e14 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.5 on 2018-06-08 15:20
import datetime
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('website', '0004_auto_20180602_1043'),
]
operations = [
mig... | 37.323529 | 114 | 0.588652 | 135 | 1,269 | 5.414815 | 0.525926 | 0.043776 | 0.057456 | 0.090287 | 0.221614 | 0.221614 | 0.221614 | 0.221614 | 0.221614 | 0.221614 | 0 | 0.046358 | 0.286052 | 1,269 | 33 | 115 | 38.454545 | 0.760486 | 0.035461 | 0 | 0.074074 | 1 | 0 | 0.090016 | 0.018822 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.148148 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3309c34d3ae14b74e4d79b16938ea7b2148d4994 | 3,659 | py | Python | projects/mlutils/mlutils/visualizations.py | certara-ShengnanHuang/machine-learning | d21dfbeabf2876ffe49fcef444ca4516c4d36df0 | [
"MIT"
] | 2 | 2019-10-18T14:48:04.000Z | 2021-11-21T14:53:17.000Z | projects/mlutils/mlutils/visualizations.py | certara-ShengnanHuang/machine-learning | d21dfbeabf2876ffe49fcef444ca4516c4d36df0 | [
"MIT"
] | null | null | null | projects/mlutils/mlutils/visualizations.py | certara-ShengnanHuang/machine-learning | d21dfbeabf2876ffe49fcef444ca4516c4d36df0 | [
"MIT"
] | 1 | 2020-03-03T21:07:43.000Z | 2020-03-03T21:07:43.000Z | import numpy as np
import matplotlib.pyplot as plt
__all__ = ['vis_importance', 'vis_coef']
def vis_importance(estimator, feature_names, threshold = 0.05, filtered_names = None):
"""
Visualize the relative importance of predictors.
Parameters
----------
estimator : sklearn-like ensemble tree mo... | 35.872549 | 86 | 0.665209 | 474 | 3,659 | 4.974684 | 0.345992 | 0.071247 | 0.012723 | 0.019084 | 0.166243 | 0.131043 | 0.087362 | 0.053435 | 0.053435 | 0.053435 | 0 | 0.01342 | 0.246515 | 3,659 | 101 | 87 | 36.227723 | 0.841857 | 0.359661 | 0 | 0.085106 | 0 | 0 | 0.093055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.319149 | 0 | 0.361702 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
330a1671cdc8da1201c7681907aea9ab9d02905e | 1,239 | py | Python | tests/test_compose.py | sankethvedula/flowtorch | 44a0f0eff842dd33ca17b01f4e02d8cdda005aa8 | [
"MIT"
] | 207 | 2021-11-29T08:32:56.000Z | 2022-03-24T15:13:16.000Z | tests/test_compose.py | sankethvedula/flowtorch | 44a0f0eff842dd33ca17b01f4e02d8cdda005aa8 | [
"MIT"
] | 30 | 2020-12-29T04:42:38.000Z | 2021-02-19T22:29:38.000Z | tests/test_compose.py | sankethvedula/flowtorch | 44a0f0eff842dd33ca17b01f4e02d8cdda005aa8 | [
"MIT"
] | 13 | 2021-11-29T03:29:10.000Z | 2022-03-31T19:52:37.000Z | # Copyright (c) Meta Platforms, Inc
import flowtorch.bijectors as bijs
import flowtorch.distributions as dist
import flowtorch.parameters as params
import torch
import torch.distributions
import torch.optim
def test_compose():
transforms = bijs.Compose(
bijectors=[
bijs.AffineAutoregressive(
... | 30.219512 | 80 | 0.633575 | 132 | 1,239 | 5.848485 | 0.409091 | 0.064767 | 0.11658 | 0.190415 | 0.371762 | 0.371762 | 0.371762 | 0.371762 | 0.132124 | 0.132124 | 0 | 0.014925 | 0.242938 | 1,239 | 40 | 81 | 30.975 | 0.808102 | 0.026634 | 0 | 0.294118 | 0 | 0 | 0.01495 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 1 | 0.029412 | false | 0 | 0.176471 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
330cf3c1093ac10f1dd1254b35561e295abd15ac | 5,974 | py | Python | commands/maf_processing/python/updateMAF_addUniprotISO1.py | cancerregulome/gidget | 6c9e9a37f9992267c7505c7a396ff7e2638599ab | [
"MIT"
] | 3 | 2016-02-22T21:29:23.000Z | 2020-09-19T07:38:21.000Z | commands/maf_processing/python/updateMAF_addUniprotISO1.py | cancerregulome/gidget | 6c9e9a37f9992267c7505c7a396ff7e2638599ab | [
"MIT"
] | 1 | 2015-01-16T02:33:59.000Z | 2015-01-16T02:33:59.000Z | commands/maf_processing/python/updateMAF_addUniprotISO1.py | cancerregulome/gidget | 6c9e9a37f9992267c7505c7a396ff7e2638599ab | [
"MIT"
] | 2 | 2015-12-27T08:40:12.000Z | 2021-03-01T06:30:23.000Z | import os
import shutil
import sys
import linecache
import re
import traceback
__author__ = 'xshu'
# global variables
id2ISOForm1Mapping = {}
mafList = []
def showHelp():
print\
'''
Prerequisite: This program MUST BE executed after updateMAF_addUniprotID.py completes its job
This program updates MA... | 38.050955 | 138 | 0.557415 | 556 | 5,974 | 5.861511 | 0.282374 | 0.023627 | 0.061369 | 0.039276 | 0.257441 | 0.214483 | 0.200368 | 0.200368 | 0.16815 | 0.105861 | 0 | 0.021734 | 0.35303 | 5,974 | 156 | 139 | 38.294872 | 0.821475 | 0.032474 | 0 | 0.055046 | 0 | 0 | 0.045288 | 0.020056 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055046 | null | null | 0.018349 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
330fa300e41b4773da1ce834cd1314044f4cf675 | 1,164 | py | Python | var/spack/repos/builtin/packages/r-genelendatabase/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/r-genelendatabase/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 8 | 2021-11-09T20:28:40.000Z | 2022-03-15T03:26:33.000Z | var/spack/repos/builtin/packages/r-genelendatabase/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class RGenelendatabase(RPackage):
"""Lengths of mRNA transcripts for a number of genomes... | 41.571429 | 78 | 0.736254 | 134 | 1,164 | 6.373134 | 0.597015 | 0.065574 | 0.035129 | 0.046838 | 0.135831 | 0.135831 | 0.084309 | 0.084309 | 0 | 0 | 0 | 0.212302 | 0.134021 | 1,164 | 27 | 79 | 43.111111 | 0.634921 | 0.301546 | 0 | 0 | 0 | 0 | 0.516456 | 0.386076 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
331b13453252306783a1fe820d216978ac3e889a | 4,444 | py | Python | rma/redis.py | yb1682003/redis-memory-analyzer | 4f37fe9b6841bd23616a53395dc2aec5b1f088ff | [
"MIT"
] | 722 | 2016-01-28T13:19:32.000Z | 2022-03-15T19:29:48.000Z | rma/redis.py | yb1682003/redis-memory-analyzer | 4f37fe9b6841bd23616a53395dc2aec5b1f088ff | [
"MIT"
] | 45 | 2016-02-10T12:41:43.000Z | 2021-11-15T07:39:39.000Z | rma/redis.py | yb1682003/redis-memory-analyzer | 4f37fe9b6841bd23616a53395dc2aec5b1f088ff | [
"MIT"
] | 70 | 2016-02-12T07:08:21.000Z | 2022-03-03T02:52:10.000Z | from redis import StrictRedis
from rma.helpers import is_num, next_power_of_2
from rma.jemalloc import Jemalloc
from rma.redis_types import *
size_of_pointer = 8
new_sds = False
allocator = Jemalloc
# Const
REDIS_SHARED_INTEGERS = 10000
REDIS_ENCODING_EMBSTR_SIZE_LIMIT = 39
# String encodings
REDIS_ENCODING_INT = ... | 25.107345 | 110 | 0.669442 | 597 | 4,444 | 4.723618 | 0.279732 | 0.034043 | 0.041489 | 0.042553 | 0.236525 | 0.133333 | 0.075887 | 0.058156 | 0 | 0 | 0 | 0.019852 | 0.240549 | 4,444 | 176 | 111 | 25.25 | 0.815704 | 0.224797 | 0 | 0.217391 | 0 | 0 | 0.011374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184783 | false | 0.021739 | 0.043478 | 0.086957 | 0.532609 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
332b2ce99ebd6b900a723debe614b175fe92134a | 3,092 | py | Python | sqlalchemy_bigid/migration.py | trusttoken/sqlalchemy-pg-bigid | b0f7a621535015d42e4d97a3d75b8d3e8a6bcb85 | [
"MIT"
] | null | null | null | sqlalchemy_bigid/migration.py | trusttoken/sqlalchemy-pg-bigid | b0f7a621535015d42e4d97a3d75b8d3e8a6bcb85 | [
"MIT"
] | null | null | null | sqlalchemy_bigid/migration.py | trusttoken/sqlalchemy-pg-bigid | b0f7a621535015d42e4d97a3d75b8d3e8a6bcb85 | [
"MIT"
] | null | null | null | """
Import this module to override Alembic migration-generation behavior for bigid
https://alembic.sqlalchemy.org/en/latest/api/autogenerate.html#registering-a-comparison-function
"""
from alembic.autogenerate import comparators, rewriter, renderers
from alembic.operations import ops, Operations, MigrateOperation
from... | 32.893617 | 96 | 0.759702 | 354 | 3,092 | 6.415254 | 0.333333 | 0.097314 | 0.060766 | 0.015852 | 0.109203 | 0.06605 | 0.036107 | 0 | 0 | 0 | 0 | 0.000774 | 0.164618 | 3,092 | 93 | 97 | 33.247312 | 0.878436 | 0.165589 | 0 | 0.070175 | 1 | 0 | 0.083957 | 0.041782 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.087719 | 0.052632 | 0.403509 | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
333886eb0a4648c8a000f6432af6e3aa5f64302a | 1,345 | py | Python | lib/misc/safe_signals.py | clouserw/olympia | 1d5755b08a526372ec66e6bc64ab636018181969 | [
"BSD-3-Clause"
] | 1 | 2021-07-29T00:51:09.000Z | 2021-07-29T00:51:09.000Z | lib/misc/safe_signals.py | clouserw/olympia | 1d5755b08a526372ec66e6bc64ab636018181969 | [
"BSD-3-Clause"
] | null | null | null | lib/misc/safe_signals.py | clouserw/olympia | 1d5755b08a526372ec66e6bc64ab636018181969 | [
"BSD-3-Clause"
] | 1 | 2021-03-13T00:33:12.000Z | 2021-03-13T00:33:12.000Z | """
A monkeypatch for ``django.dispatch`` to send signals safely.
Usage::
>>> import safe_signals
>>> safe_signals.start_the_machine()
``django.dispatch.Signal.send`` is replaced with a safer function that catches
and logs errors. It's like ``Signal.send_robust`` but with logging.
"""
import logging
from ... | 25.865385 | 78 | 0.67658 | 168 | 1,345 | 5.214286 | 0.482143 | 0.068493 | 0.054795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223792 | 1,345 | 51 | 79 | 26.372549 | 0.83908 | 0.095911 | 0 | 0.08 | 0 | 0 | 0.052516 | 0.022976 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
333ebaa3100bd3137265a350c841e3a68b675138 | 726 | py | Python | core/__init__.py | lastick1/rexpert | cd5908f69cf54671ffe6bb2991c24d19e8f0036d | [
"MIT"
] | 1 | 2020-07-07T09:58:57.000Z | 2020-07-07T09:58:57.000Z | core/__init__.py | lastick1/rexpert | cd5908f69cf54671ffe6bb2991c24d19e8f0036d | [
"MIT"
] | 42 | 2018-11-11T08:08:46.000Z | 2020-01-10T11:15:47.000Z | core/__init__.py | lastick1/rexpert | cd5908f69cf54671ffe6bb2991c24d19e8f0036d | [
"MIT"
] | null | null | null | """Центральный модуль коммандера"""
from __future__ import annotations
from .events_emitter import EventsEmitter
from .commands_emitter import CommandsEmitter
from .atypes import Atype0, \
Atype1, \
Atype2, \
Atype3, \
Atype4, \
Atype5, \
Atype6, \
Atype7, \
Atype8, \
Atype9, \
A... | 19.621622 | 67 | 0.625344 | 66 | 726 | 6.69697 | 0.742424 | 0.045249 | 0.067873 | 0.085973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068834 | 0.279614 | 726 | 36 | 68 | 20.166667 | 0.776291 | 0.039945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.171429 | 0 | 0.171429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33408333d74bbe042458c0cb28622a3e5e402efa | 2,327 | py | Python | setup.py | stafak/nidaqmx-python | f354d7971b21074c120c6f298dbbf4a5e0e4f4f4 | [
"MIT"
] | 252 | 2017-03-22T02:43:16.000Z | 2022-03-27T14:44:44.000Z | setup.py | stafak/nidaqmx-python | f354d7971b21074c120c6f298dbbf4a5e0e4f4f4 | [
"MIT"
] | 133 | 2017-03-21T20:57:59.000Z | 2022-03-31T16:08:12.000Z | setup.py | stafak/nidaqmx-python | f354d7971b21074c120c6f298dbbf4a5e0e4f4f4 | [
"MIT"
] | 124 | 2017-04-01T18:35:24.000Z | 2022-03-25T06:30:00.000Z | from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
pytest.main(sel... | 31.026667 | 80 | 0.630425 | 266 | 2,327 | 5.379699 | 0.43985 | 0.092942 | 0.122292 | 0.090846 | 0.087352 | 0.036338 | 0 | 0 | 0 | 0 | 0 | 0.010078 | 0.232488 | 2,327 | 74 | 81 | 31.445946 | 0.790594 | 0 | 0 | 0.031746 | 0 | 0.015873 | 0.364144 | 0.020636 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.063492 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
335b0b65d3460729fb6ca9fe6621d185cf86eba3 | 2,846 | py | Python | contrib/workflow/SpiffSignal/src/SpiffSignal/Slot.py | gonicus/clacks | da579f0acc4e48cf2e9451417ac6792282cf7ab6 | [
"ZPL-2.1"
] | 2 | 2015-01-26T07:15:19.000Z | 2015-11-09T13:42:11.000Z | contrib/workflow/SpiffSignal/src/SpiffSignal/Slot.py | gonicus/clacks | da579f0acc4e48cf2e9451417ac6792282cf7ab6 | [
"ZPL-2.1"
] | null | null | null | contrib/workflow/SpiffSignal/src/SpiffSignal/Slot.py | gonicus/clacks | da579f0acc4e48cf2e9451417ac6792282cf7ab6 | [
"ZPL-2.1"
] | null | null | null | # Copyright (C) 2007 Samuel Abels, http://debain.org
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2, as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOU... | 31.622222 | 75 | 0.619817 | 355 | 2,846 | 4.915493 | 0.391549 | 0.068768 | 0.06533 | 0.032665 | 0.205158 | 0.190258 | 0.137536 | 0.137536 | 0.06533 | 0.06533 | 0 | 0.010505 | 0.297611 | 2,846 | 89 | 76 | 31.977528 | 0.862431 | 0.573085 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33662548a7ee2bdadb8bfd362b30fd61ee1fe251 | 2,461 | py | Python | imap-cp.py | dwd/Polymer | 656d2b2f159b649fdb5281b82d938fb5453b9047 | [
"MIT"
] | 4 | 2016-04-14T06:52:02.000Z | 2019-03-30T08:43:14.000Z | imap-cp.py | dwd/Polymer | 656d2b2f159b649fdb5281b82d938fb5453b9047 | [
"MIT"
] | null | null | null | imap-cp.py | dwd/Polymer | 656d2b2f159b649fdb5281b82d938fb5453b9047 | [
"MIT"
] | null | null | null | #
# Copyright 2004,2005 Dave Cridland <dave@cridland.net>
#
# This file forms part of Infotrope Polymer.
#
# Infotrope Polymer is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, o... | 37.861538 | 107 | 0.653393 | 338 | 2,461 | 4.692308 | 0.461538 | 0.040353 | 0.02459 | 0.035939 | 0.051702 | 0.035309 | 0 | 0 | 0 | 0 | 0 | 0.016622 | 0.242178 | 2,461 | 64 | 108 | 38.453125 | 0.83378 | 0.325477 | 0 | 0 | 0 | 0 | 0.092796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.135135 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33722f861199c93dca8239c08c93a364d6370b54 | 743 | py | Python | venv/Lib/site-packages/numpy/typing/tests/data/fail/einsumfunc.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 603 | 2020-12-23T13:49:32.000Z | 2022-03-31T23:38:03.000Z | venv/Lib/site-packages/numpy/typing/tests/data/fail/einsumfunc.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 387 | 2020-12-15T14:54:04.000Z | 2022-03-31T07:00:21.000Z | venv/Lib/site-packages/numpy/typing/tests/data/fail/einsumfunc.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 35 | 2021-03-26T03:12:04.000Z | 2022-03-23T10:15:10.000Z | from typing import List, Any
import numpy as np
AR_i: np.ndarray[Any, np.dtype[np.int64]]
AR_f: np.ndarray[Any, np.dtype[np.float64]]
AR_m: np.ndarray[Any, np.dtype[np.timedelta64]]
AR_O: np.ndarray[Any, np.dtype[np.object_]]
AR_U: np.ndarray[Any, np.dtype[np.str_]]
np.einsum("i,i->i", AR_i, AR_m) # E: incompatible ... | 46.4375 | 105 | 0.69179 | 151 | 743 | 3.258278 | 0.251656 | 0.04878 | 0.056911 | 0.121951 | 0.656504 | 0.656504 | 0.317073 | 0.317073 | 0.284553 | 0.093496 | 0 | 0.015291 | 0.119785 | 743 | 15 | 106 | 49.533333 | 0.737003 | 0.227456 | 0 | 0 | 0 | 0 | 0.084656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68243f7657167d259a79616051bf166fb6761239 | 1,389 | py | Python | instagram/tests.py | Machel54/Instagram | 2e00c818ec068812a7b0dd4b0dc4231c78e5866e | [
"MIT"
] | null | null | null | instagram/tests.py | Machel54/Instagram | 2e00c818ec068812a7b0dd4b0dc4231c78e5866e | [
"MIT"
] | 4 | 2020-06-06T00:10:22.000Z | 2021-09-08T01:26:47.000Z | instagram/tests.py | Machel54/Instagram | 2e00c818ec068812a7b0dd4b0dc4231c78e5866e | [
"MIT"
] | null | null | null | from django.test import TestCase
from .models import User,Profile,Comment
# # Create your tests here.
# class UserTestClass(TestCase):
# # Set up method
# def setUp(self):
# self.logue= User(first_name='Flacko', last_name ='Hearts', email ='logue54@gmail.com')
# # Testing instance
# def tes... | 30.195652 | 96 | 0.635709 | 168 | 1,389 | 5.119048 | 0.392857 | 0.065116 | 0.081395 | 0.083721 | 0.397674 | 0.366279 | 0.324419 | 0.324419 | 0.132558 | 0 | 0 | 0.005753 | 0.2491 | 1,389 | 46 | 97 | 30.195652 | 0.818792 | 0.383009 | 0 | 0.222222 | 0 | 0 | 0.032688 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.277778 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68343bd80f9f66eb7e75e961e9659c7a0e8e1c78 | 9,074 | py | Python | python/graphscope/framework/graph_schema.py | wenyuanyu/GraphScope | a40ccaf70557e608d8b091eb25ab04477f99ce21 | [
"Apache-2.0"
] | 2 | 2020-12-15T08:42:10.000Z | 2022-01-14T09:13:16.000Z | python/graphscope/framework/graph_schema.py | wenyuanyu/GraphScope | a40ccaf70557e608d8b091eb25ab04477f99ce21 | [
"Apache-2.0"
] | 1 | 2020-12-22T13:15:40.000Z | 2020-12-22T13:15:40.000Z | python/graphscope/framework/graph_schema.py | wenyuanyu/GraphScope | a40ccaf70557e608d8b091eb25ab04477f99ce21 | [
"Apache-2.0"
] | 1 | 2021-11-23T03:40:43.000Z | 2021-11-23T03:40:43.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2020 Alibaba Group Holding Limited. 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... | 36.007937 | 101 | 0.581441 | 1,035 | 9,074 | 4.843478 | 0.188406 | 0.0383 | 0.043886 | 0.015161 | 0.433672 | 0.331139 | 0.228606 | 0.202274 | 0.202274 | 0.143228 | 0 | 0.005095 | 0.329513 | 9,074 | 251 | 102 | 36.151394 | 0.818869 | 0.214349 | 0 | 0.257485 | 0 | 0 | 0.047599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.143713 | false | 0 | 0.023952 | 0.101796 | 0.317365 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
6836c4f229cbfd7046dca500b1082c3fa8d5af9f | 1,903 | py | Python | tests/integration/actions/exec/test_stdout_vault.py | goneri/ansible-navigator | 59c5c4e9758404bcf363face09cf46c325b01ad3 | [
"Apache-2.0"
] | null | null | null | tests/integration/actions/exec/test_stdout_vault.py | goneri/ansible-navigator | 59c5c4e9758404bcf363face09cf46c325b01ad3 | [
"Apache-2.0"
] | 8 | 2021-12-13T20:56:47.000Z | 2022-03-10T14:53:04.000Z | tests/integration/actions/exec/test_stdout_vault.py | alisonlhart/ansible-navigator | 006db536ef1ea5b38a195a21ae7c0729d995bebc | [
"Apache-2.0"
] | null | null | null | """Tests for exec, mode stdout, parameters set using the CLI.
A variety of formats are tested here, each with a different
placement of the vault command. Although none result in a vaulted
file, the intent is to ensure the entire vault command is passed
to ansible vault within the execution environment.
"""
import pyt... | 29.276923 | 81 | 0.711508 | 258 | 1,903 | 5.100775 | 0.383721 | 0.082067 | 0.054711 | 0.079787 | 0.264438 | 0.264438 | 0.264438 | 0.264438 | 0.215805 | 0.215805 | 0 | 0 | 0.177089 | 1,903 | 64 | 82 | 29.734375 | 0.840358 | 0.269574 | 0 | 0 | 0 | 0 | 0.448708 | 0.032472 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.058824 | 0.147059 | 0 | 0.323529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
68385802e74e2cdd21dd7db29369156acf109907 | 1,059 | py | Python | ingest.py | cojo24/eia | b2115a4cbc2e30c23abcbf4060deef962d3f82f9 | [
"MIT"
] | 1 | 2022-03-07T20:46:09.000Z | 2022-03-07T20:46:09.000Z | ingest.py | cojo24/eia | b2115a4cbc2e30c23abcbf4060deef962d3f82f9 | [
"MIT"
] | null | null | null | ingest.py | cojo24/eia | b2115a4cbc2e30c23abcbf4060deef962d3f82f9 | [
"MIT"
] | 1 | 2022-03-18T01:07:23.000Z | 2022-03-18T01:07:23.000Z | import os
import pandas as pd
from .client import EIA
from fire import Fire
def get_all_updates(eia_client):
# get number of rows available
updates = eia_client.get_updates(deep=True)
rows_avail = updates['data']['rows_available']
print('Rows Available:', rows_avail)
row_ct = 0
all_rows = []... | 24.627907 | 80 | 0.65628 | 147 | 1,059 | 4.482993 | 0.408163 | 0.060698 | 0.072838 | 0.086495 | 0.115326 | 0.115326 | 0.115326 | 0.115326 | 0 | 0 | 0 | 0.01487 | 0.23796 | 1,059 | 42 | 81 | 25.214286 | 0.801735 | 0.17847 | 0 | 0 | 0 | 0 | 0.115741 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0.08 | false | 0 | 0.16 | 0 | 0.28 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
683cedd1023926a9c0d0e615554a3165b6b71778 | 9,680 | py | Python | scripts/example1_video.py | Rbeaty88/ginga | 08451a81288b8defc54aa9f9e2af23a9ba32e985 | [
"BSD-3-Clause"
] | 1 | 2016-03-21T15:56:15.000Z | 2016-03-21T15:56:15.000Z | scripts/example1_video.py | Rbeaty88/ginga | 08451a81288b8defc54aa9f9e2af23a9ba32e985 | [
"BSD-3-Clause"
] | null | null | null | scripts/example1_video.py | Rbeaty88/ginga | 08451a81288b8defc54aa9f9e2af23a9ba32e985 | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
#
# video_play.py -- video playback example with Ginga
#
# Eric Jeschke (eric@naoj.org)
#
# Copyright (c) Eric R. Jeschke. All rights reserved.
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
"""
This example shows how Ginga has a fa... | 32.05298 | 100 | 0.611674 | 1,233 | 9,680 | 4.704785 | 0.317113 | 0.027581 | 0.0181 | 0.006895 | 0.073263 | 0.073263 | 0.019997 | 0 | 0 | 0 | 0 | 0.011658 | 0.282231 | 9,680 | 301 | 101 | 32.159468 | 0.823258 | 0.117562 | 0 | 0.042328 | 0 | 0.005291 | 0.120765 | 0.002952 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005291 | 0.089947 | null | null | 0.010582 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
683d1f2102a9513fe7e6721ae706dd21d7f537a6 | 491 | py | Python | groovesweepersite/groovesweeperapp/templatetags/lyrics_highlight.py | groovesweeper/groovesweeper.github.io | 6a40973eb665f6b6374a4d22c8239e74cb011798 | [
"MIT"
] | 3 | 2021-04-01T21:08:15.000Z | 2022-02-18T18:26:40.000Z | groovesweepersite/groovesweeperapp/templatetags/lyrics_highlight.py | groovesweeper/groovesweeper.github.io | 6a40973eb665f6b6374a4d22c8239e74cb011798 | [
"MIT"
] | null | null | null | groovesweepersite/groovesweeperapp/templatetags/lyrics_highlight.py | groovesweeper/groovesweeper.github.io | 6a40973eb665f6b6374a4d22c8239e74cb011798 | [
"MIT"
] | null | null | null | from django import template
from django.utils.safestring import mark_safe
from django.utils.html import conditional_escape
from django.template.defaultfilters import stringfilter
register = template.Library()
@register.filter(needs_autoescape=True)
@stringfilter
def highlight(value, explicit_terms, autoescape=True):
... | 32.733333 | 78 | 0.775967 | 62 | 491 | 6.048387 | 0.548387 | 0.106667 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124236 | 491 | 14 | 79 | 35.071429 | 0.872093 | 0 | 0 | 0 | 0 | 0 | 0.071283 | 0.05499 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
683f703291fa2db02a8dad3ccc9acf2a4c72fad8 | 5,870 | py | Python | syzygy/build/lastchange.py | nzeh/syzygy | 3573e3d458dbb4285753c28a7cb42ced739f9f55 | [
"Apache-2.0"
] | 343 | 2015-01-07T05:58:44.000Z | 2022-03-15T14:55:21.000Z | syzygy/build/lastchange.py | nzeh/syzygy-nzeh | 3757e53f850644721284073de318e218224dd411 | [
"Apache-2.0"
] | 61 | 2015-03-19T18:20:21.000Z | 2019-10-23T12:58:23.000Z | syzygy/build/lastchange.py | nzeh/syzygy-nzeh | 3757e53f850644721284073de318e218224dd411 | [
"Apache-2.0"
] | 66 | 2015-01-20T15:35:05.000Z | 2021-11-25T16:49:41.000Z | #!/usr/bin/env python
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | 29.20398 | 79 | 0.689097 | 776 | 5,870 | 5.128866 | 0.371134 | 0.01407 | 0.023869 | 0.00804 | 0.031156 | 0.021106 | 0.021106 | 0.021106 | 0.021106 | 0 | 0 | 0.005811 | 0.208518 | 5,870 | 200 | 80 | 29.35 | 0.850839 | 0.165077 | 0 | 0.092593 | 0 | 0 | 0.178429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009259 | 0.055556 | null | null | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6849ea4763d09979bfbf65d81e54889000fbabcf | 3,351 | py | Python | control/controller.py | kingkevlar/airhockey | 8883034e4968039c6258ba62b8dfb1bcacb025ec | [
"MIT"
] | 2 | 2017-05-12T21:52:21.000Z | 2017-07-26T04:34:24.000Z | control/controller.py | jnez71/airhockey | 8883034e4968039c6258ba62b8dfb1bcacb025ec | [
"MIT"
] | null | null | null | control/controller.py | jnez71/airhockey | 8883034e4968039c6258ba62b8dfb1bcacb025ec | [
"MIT"
] | null | null | null | """
Basic Neural Network Controller
A single layer neural network (NN) is used to generate a
feedforward term for a typical state-feedback (PD) controller.
The system is assumed to have error dynamics of the form,
edot = f(x) - u, i.e. control-affine, holonomic, and time-invariant
The input to the NN is the ful... | 29.394737 | 91 | 0.652044 | 549 | 3,351 | 3.936248 | 0.326047 | 0.04211 | 0.038871 | 0.041647 | 0.089773 | 0.02869 | 0 | 0 | 0 | 0 | 0 | 0.012066 | 0.183826 | 3,351 | 113 | 92 | 29.654867 | 0.778062 | 0.422859 | 0 | 0.046512 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.069767 | 0 | 0.186047 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6852694023db8e8fd8920a02e54136a8e155f19d | 1,487 | py | Python | plyer/platforms/ios/gyroscope.py | magnusvmt/plyer | e1954d975ea2c087fc4a79d5e0708b79dbe26caa | [
"MIT"
] | 3 | 2020-07-17T16:23:14.000Z | 2021-05-25T21:00:49.000Z | plyer/platforms/ios/gyroscope.py | magnusvmt/plyer | e1954d975ea2c087fc4a79d5e0708b79dbe26caa | [
"MIT"
] | 1 | 2021-05-25T20:54:22.000Z | 2021-05-26T20:22:30.000Z | plyer/platforms/ios/gyroscope.py | magnusvmt/plyer | e1954d975ea2c087fc4a79d5e0708b79dbe26caa | [
"MIT"
] | 1 | 2019-05-17T09:45:00.000Z | 2019-05-17T09:45:00.000Z | '''
iOS Gyroscope
---------------------
'''
from plyer.facades import Gyroscope
from pyobjus import autoclass
from pyobjus.dylib_manager import load_framework
load_framework('/System/Library/Frameworks/UIKit.framework')
UIDevice = autoclass('UIDevice')
device = UIDevice.currentDevice()
class IosGyroscope(Gyroscop... | 26.553571 | 70 | 0.65501 | 161 | 1,487 | 5.807453 | 0.354037 | 0.213904 | 0.115508 | 0.141176 | 0.237433 | 0.237433 | 0.187166 | 0 | 0 | 0 | 0 | 0.007813 | 0.225286 | 1,487 | 55 | 71 | 27.036364 | 0.803819 | 0.023537 | 0 | 0.055556 | 0 | 0 | 0.039474 | 0.029086 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0.083333 | 0.361111 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6852844cb87e19b245bace004d1befda712f4bef | 2,856 | py | Python | 4. cuda_kernels.py | abyssnlp/numba-gpu | a8606359b09b9b1c4b92059448b0454ebde3e5ce | [
"Apache-2.0"
] | null | null | null | 4. cuda_kernels.py | abyssnlp/numba-gpu | a8606359b09b9b1c4b92059448b0454ebde3e5ce | [
"Apache-2.0"
] | null | null | null | 4. cuda_kernels.py | abyssnlp/numba-gpu | a8606359b09b9b1c4b92059448b0454ebde3e5ce | [
"Apache-2.0"
] | null | null | null | """ @title: CUDA Kernels with Numba
@author:Shaurya
@date: 2020-12-22
"""
import numpy as np
from time import perf_counter
from functools import wraps
from numba import cuda
#? Performance timer for non-return CUDA functions
def timeit(f):
@wraps(f)
def get_time(*args,**kwargs):
... | 28.277228 | 94 | 0.742647 | 480 | 2,856 | 4.210417 | 0.25 | 0.070757 | 0.059377 | 0.047006 | 0.478476 | 0.44285 | 0.44285 | 0.428006 | 0.404255 | 0.338446 | 0 | 0.020359 | 0.122899 | 2,856 | 101 | 95 | 28.277228 | 0.786427 | 0.169468 | 0 | 0.428571 | 0 | 0 | 0.025596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68682bd79428df4577671093fab4b2469bb22515 | 1,262 | py | Python | base_app/migrations/0015_auto_20220211_1832.py | Afeez1131/Referral_contest | 8511516758e1a63909be333d1890594d32fdd51c | [
"MIT"
] | null | null | null | base_app/migrations/0015_auto_20220211_1832.py | Afeez1131/Referral_contest | 8511516758e1a63909be333d1890594d32fdd51c | [
"MIT"
] | null | null | null | base_app/migrations/0015_auto_20220211_1832.py | Afeez1131/Referral_contest | 8511516758e1a63909be333d1890594d32fdd51c | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2022-02-11 16:32
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("base_app", "0014_auto_20220207_0937"),
]
operations = [
migrations.AlterField(
model_name="guest",
... | 30.047619 | 120 | 0.486529 | 110 | 1,262 | 5.490909 | 0.545455 | 0.072848 | 0.099338 | 0.096026 | 0.55298 | 0.493377 | 0.493377 | 0.493377 | 0.493377 | 0.34106 | 0 | 0.100271 | 0.415214 | 1,262 | 41 | 121 | 30.780488 | 0.718157 | 0.034073 | 0 | 0.571429 | 1 | 0 | 0.215283 | 0.018899 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
686c65c4b30653108658bc80dcf9a353236fe220 | 1,987 | py | Python | model/mosesdecoder/contrib/m4m/scripts/moses.make-lex.py | saeedesm/UNMT_AH | cc171bf66933b5c0ad8a0ab87e57f7364312a7df | [
"Apache-2.0"
] | 3 | 2019-12-02T14:53:29.000Z | 2020-08-12T18:01:49.000Z | tools/mosesdecoder-master/contrib/m4m/scripts/moses.make-lex.py | Pangeamt/nectm | 6b84f048698f2530b9fdbb30695f2e2217c3fbfe | [
"Apache-2.0"
] | 2 | 2020-11-06T14:40:10.000Z | 2020-12-29T19:03:11.000Z | tools/mosesdecoder-master/contrib/m4m/scripts/moses.make-lex.py | Pangeamt/nectm | 6b84f048698f2530b9fdbb30695f2e2217c3fbfe | [
"Apache-2.0"
] | 2 | 2020-03-26T16:05:11.000Z | 2020-08-06T16:35:39.000Z | #!/usr/bin/env python
# Quick hack to extract lexica from Giza-Aligned corpus
# (c) 2011 Ulrich Germann
import sys, os
D = os.popen("zcat %s" % sys.argv[1])
E = os.popen("zcat %s" % sys.argv[2])
A = os.popen("zcat %s" % sys.argv[3])
d_given_e = sys.argv[4]
e_given_d = sys.argv[5]
try:
os.makedirs(os.path.dirnam... | 22.83908 | 63 | 0.481127 | 367 | 1,987 | 2.572207 | 0.237057 | 0.037076 | 0.058263 | 0.038136 | 0.195975 | 0.128178 | 0 | 0 | 0 | 0 | 0 | 0.031884 | 0.305486 | 1,987 | 86 | 64 | 23.104651 | 0.652174 | 0.089582 | 0 | 0.132353 | 0 | 0 | 0.031042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0.132353 | 0.014706 | 0 | 0.044118 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6874168647a5393382d832aaf0539be91668c300 | 3,641 | py | Python | deep_speech_vis/visualization/analyze_relevance.py | anondo1969/deep-speech-vis | 0a0093cbb3542e177610766a7bcf0a9495f4f56e | [
"MIT"
] | null | null | null | deep_speech_vis/visualization/analyze_relevance.py | anondo1969/deep-speech-vis | 0a0093cbb3542e177610766a7bcf0a9495f4f56e | [
"MIT"
] | null | null | null | deep_speech_vis/visualization/analyze_relevance.py | anondo1969/deep-speech-vis | 0a0093cbb3542e177610766a7bcf0a9495f4f56e | [
"MIT"
] | null | null | null | '''
@copyright: Copyright (c) 2016-2017, Vignesh Srinivasan, Sebastian Lapuschkin, Alexander Binder, Gregoire Montavon, Klaus-Robert Mueller, Wojciech Samek
@license : BSD-2-Clause
'''
import render
import numpy as np
import relevance_methods
class relevance_analyzer(object):
def __init__(self, results, weights... | 47.285714 | 153 | 0.662455 | 452 | 3,641 | 5.081858 | 0.25 | 0.045276 | 0.045276 | 0.060949 | 0.34828 | 0.287331 | 0.24902 | 0.18633 | 0.151502 | 0.151502 | 0 | 0.009547 | 0.22329 | 3,641 | 76 | 154 | 47.907895 | 0.802687 | 0.103818 | 0 | 0.04878 | 0 | 0 | 0.115748 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0 | null | null | 0 | 0.073171 | null | null | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
688357bf19999b91d30e6f12ea9715816fb1e4a1 | 578 | py | Python | python/605_Can_Place_Flowers.py | dvlpsh/leetcode-1 | f965328af72113ac8a5a9d6624868c1502be937b | [
"MIT"
] | 4,416 | 2016-03-30T15:02:26.000Z | 2022-03-31T16:31:03.000Z | python/605_Can_Place_Flowers.py | YinpuLi/leetcode-6 | 1371de2631d745efba39de41b51c3424e35da434 | [
"MIT"
] | 20 | 2018-11-17T13:46:25.000Z | 2022-03-13T05:37:06.000Z | python/605_Can_Place_Flowers.py | YinpuLi/leetcode-6 | 1371de2631d745efba39de41b51c3424e35da434 | [
"MIT"
] | 1,374 | 2017-05-26T15:44:30.000Z | 2022-03-30T19:21:02.000Z | class Solution(object):
def canPlaceFlowers(self, flowerbed, n):
"""
:type flowerbed: List[int]
:type n: int
:rtype: bool
"""
count = 0
for i in range(len(flowerbed)):
curr = flowerbed[i]
if i - 1 >= 0:
curr += flowerbed... | 27.52381 | 44 | 0.406574 | 60 | 578 | 3.916667 | 0.433333 | 0.042553 | 0.178723 | 0.165957 | 0.306383 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030405 | 0.487889 | 578 | 20 | 45 | 28.9 | 0.763514 | 0.089965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
688bbe59400ab2ff49adc765b66fd332abcaa9cd | 860 | py | Python | step15_eventbridge/Python/eventbridge_with_lambda/cdk.out/asset.32d3b04c9f62130347ed0c1c56390899ecb62f29ba4fe13306606e7977206146/producer.py | fullstackwebdev/full-stack-serverless-cdk | 798c98300b89cfb5eac6004cd348fa60d05f813b | [
"MIT"
] | 192 | 2020-11-01T17:45:01.000Z | 2022-03-16T08:14:58.000Z | step15_eventbridge/Python/eventbridge_with_lambda/cdk.out/asset.32d3b04c9f62130347ed0c1c56390899ecb62f29ba4fe13306606e7977206146/producer.py | fullstackwebdev/full-stack-serverless-cdk | 798c98300b89cfb5eac6004cd348fa60d05f813b | [
"MIT"
] | 16 | 2020-11-26T19:15:49.000Z | 2020-12-27T00:26:21.000Z | step15_eventbridge/Python/eventbridge_with_lambda/cdk.out/asset.32d3b04c9f62130347ed0c1c56390899ecb62f29ba4fe13306606e7977206146/producer.py | fullstackwebdev/full-stack-serverless-cdk | 798c98300b89cfb5eac6004cd348fa60d05f813b | [
"MIT"
] | 101 | 2020-11-02T08:03:05.000Z | 2022-03-29T00:55:40.000Z | // const AWS = require("aws-sdk");
import json
import boto3
# Create CloudWatchEvents client
cloudwatch_events = boto3.client('events')
def handler(event, context):
print(event["body"])
body = event["body"]
print(body)
console.log("EVENT BODY: \n", event["body"])
# const eventBridge = new AWS.EventB... | 21.5 | 74 | 0.561628 | 85 | 860 | 5.647059 | 0.588235 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009569 | 0.27093 | 860 | 39 | 75 | 22.051282 | 0.755981 | 0 | 0 | 0 | 0 | 0 | 0.251989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68925186191e960bcc1a2f4bc1469664ba8c9a23 | 411 | py | Python | Software_University/python_basics/first_steps_in_coding/lab/deposit_calculator.py | Ivanazzz/SoftUni-W3resource-Python | 892321a290e22a91ff2ac2fef5316179a93f2f17 | [
"MIT"
] | 1 | 2022-01-26T07:38:11.000Z | 2022-01-26T07:38:11.000Z | Software_University/python_basics/first_steps_in_coding/lab/deposit_calculator.py | Ivanazzz/SoftUni-W3resource-Python | 892321a290e22a91ff2ac2fef5316179a93f2f17 | [
"MIT"
] | null | null | null | Software_University/python_basics/first_steps_in_coding/lab/deposit_calculator.py | Ivanazzz/SoftUni-W3resource-Python | 892321a290e22a91ff2ac2fef5316179a93f2f17 | [
"MIT"
] | null | null | null | deposited_amount = float(input("Enter the deposited amount: "))
term_ot_the_deposit = int(input("Enter term of the deposit in months: "))
annual_interest_rate = float(input("Enter the annual interest rate: "))
total_interest = deposited_amount * annual_interest_rate / 100
interest_per_month = total_interest / 12
total_... | 51.375 | 76 | 0.80292 | 59 | 411 | 5.237288 | 0.372881 | 0.194175 | 0.174757 | 0.116505 | 0.200647 | 0.200647 | 0 | 0 | 0 | 0 | 0 | 0.013661 | 0.109489 | 411 | 7 | 77 | 58.714286 | 0.830601 | 0 | 0 | 0 | 0 | 0 | 0.23601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68953c7c5cec94abb5631835e8f905a7159a1ec1 | 18,554 | py | Python | profiler/line_profiler/line_profiler_html.py | co2meal/-bnpy-dev | 74f69afde6c9dac8de4c074842df53ae87a15ac1 | [
"BSD-3-Clause"
] | null | null | null | profiler/line_profiler/line_profiler_html.py | co2meal/-bnpy-dev | 74f69afde6c9dac8de4c074842df53ae87a15ac1 | [
"BSD-3-Clause"
] | null | null | null | profiler/line_profiler/line_profiler_html.py | co2meal/-bnpy-dev | 74f69afde6c9dac8de4c074842df53ae87a15ac1 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import cPickle
from cStringIO import StringIO
import inspect
import linecache
import optparse
import os
import sys
import jinja2
import time
from distutils.dir_util import mkpath
from _line_profiler import LineProfiler as CLineProfiler
### Use absolute not relative paths to allow relocating htm... | 35.007547 | 150 | 0.587097 | 2,363 | 18,554 | 4.451121 | 0.188743 | 0.020917 | 0.013691 | 0.008652 | 0.315649 | 0.259555 | 0.225233 | 0.190721 | 0.155638 | 0.114185 | 0 | 0.010115 | 0.291312 | 18,554 | 529 | 151 | 35.073724 | 0.789794 | 0.050663 | 0 | 0.26455 | 0 | 0.002646 | 0.133775 | 0.009426 | 0 | 0 | 0.000401 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.068783 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68967f407637862f8a32ba91d8be332682ae6e18 | 421 | py | Python | src/service.py | RedHatInsights/openshift-dedicated-backup | efeac222a034d636eeb46a9dc9b75765838e4dd7 | [
"Apache-2.0"
] | 1 | 2021-12-22T15:03:05.000Z | 2021-12-22T15:03:05.000Z | src/service.py | RedHatInsights/openshift-dedicated-backup | efeac222a034d636eeb46a9dc9b75765838e4dd7 | [
"Apache-2.0"
] | 2 | 2021-04-30T20:48:12.000Z | 2021-06-01T22:51:32.000Z | src/service.py | RedHatInsights/openshift-dedicated-backup | efeac222a034d636eeb46a9dc9b75765838e4dd7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import backup
import logger
import os
import schedule
import time
log = logger.logging
try:
BACKUP_INTERVAL = int(os.environ['BACKUP_INTERVAL'])
except (KeyError, ValueError):
BACKUP_INTERVAL = 24
schedule.every(BACKUP_INTERVAL).hours.do(backup.full_backup)
# run once at startup
backup... | 15.592593 | 60 | 0.748219 | 58 | 421 | 5.310345 | 0.603448 | 0.181818 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.144893 | 421 | 26 | 61 | 16.192308 | 0.844444 | 0.087886 | 0 | 0 | 0 | 0 | 0.078534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
6896d91c3558bdb50e319881d49a7f119a2ccd19 | 231 | py | Python | tests/py35_only.py | theendsofinvention/snug | 841353465ee775d92da15334f69653177128da32 | [
"MIT"
] | null | null | null | tests/py35_only.py | theendsofinvention/snug | 841353465ee775d92da15334f69653177128da32 | [
"MIT"
] | null | null | null | tests/py35_only.py | theendsofinvention/snug | 841353465ee775d92da15334f69653177128da32 | [
"MIT"
] | null | null | null | """separate objects only importable on python 3.5+"""
async def consume_aiter(iterable):
"""consume an async iterable to a list"""
result = []
async for item in iterable:
result.append(item)
return result
| 23.1 | 53 | 0.662338 | 31 | 231 | 4.903226 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011299 | 0.233766 | 231 | 9 | 54 | 25.666667 | 0.847458 | 0.203463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68a0c7555fadd14b177ceb99aab55d1dbf9fdc94 | 461 | py | Python | oj/celery.py | AngleMAXIN/nomooc | 0c06b8af405b8254c242b34e85b7cba99c8f5737 | [
"MIT"
] | 1 | 2019-12-04T03:20:16.000Z | 2019-12-04T03:20:16.000Z | oj/celery.py | AngleMAXIN/NoMooc | 0c06b8af405b8254c242b34e85b7cba99c8f5737 | [
"MIT"
] | null | null | null | oj/celery.py | AngleMAXIN/NoMooc | 0c06b8af405b8254c242b34e85b7cba99c8f5737 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, unicode_literals
import os
from celery import Celery, platforms
# set the default Django settings module for the "celery" program.
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "oj.settings")
app = Celery("oj")
# pickle the object when using Windows.
app.config_from_object(... | 25.611111 | 66 | 0.798265 | 65 | 461 | 5.461538 | 0.615385 | 0.078873 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121475 | 461 | 17 | 67 | 27.117647 | 0.876543 | 0.347072 | 0 | 0 | 0 | 0 | 0.185185 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
68a1aef42f7a7449da83cce03cbae131d525c559 | 1,642 | py | Python | homeassistant/components/yolink/coordinator.py | liangleslie/core | cc807b4d597daaaadc92df4a93c6e30da4f570c6 | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/yolink/coordinator.py | liangleslie/core | cc807b4d597daaaadc92df4a93c6e30da4f570c6 | [
"Apache-2.0"
] | 24,710 | 2016-04-13T08:27:26.000Z | 2020-03-02T12:59:13.000Z | homeassistant/components/yolink/coordinator.py | liangleslie/core | cc807b4d597daaaadc92df4a93c6e30da4f570c6 | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """YoLink DataUpdateCoordinator."""
from __future__ import annotations
from datetime import timedelta
import logging
import async_timeout
from yolink.device import YoLinkDevice
from yolink.exception import YoLinkAuthFailError, YoLinkClientError
from homeassistant.core import HomeAssistant
from homeassistant.exceptio... | 35.695652 | 96 | 0.735079 | 183 | 1,642 | 6.333333 | 0.415301 | 0.066437 | 0.038827 | 0.032787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004605 | 0.206456 | 1,642 | 45 | 97 | 36.488889 | 0.884881 | 0.154689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.357143 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
68a416f35663b6c45297c72bf3024a90ae2928e6 | 2,847 | py | Python | build/lib/vectorio/vector/interfaces/ivectorio.py | igor-rodrigues-ss/vectorio | 5c77ba15eea48d2de6c5cf3000148eb149e4e790 | [
"MIT"
] | 1 | 2021-05-15T23:50:16.000Z | 2021-05-15T23:50:16.000Z | vectorio/vector/interfaces/ivectorio.py | igor-rodrigues-ss/vectorio | 5c77ba15eea48d2de6c5cf3000148eb149e4e790 | [
"MIT"
] | null | null | null | vectorio/vector/interfaces/ivectorio.py | igor-rodrigues-ss/vectorio | 5c77ba15eea48d2de6c5cf3000148eb149e4e790 | [
"MIT"
] | null | null | null | #!-*-coding:utf-8-*-
import os
from abc import ABC, abstractmethod
from osgeo.ogr import DataSource
from vectorio.vector.exceptions import DirectoryDoesNotExists
from vectorio.vector.metrics.vertices import Vertices
from typing import Any, Optional, Generator, Union
from vectorio.config import NoneType
from typeguard i... | 35.148148 | 133 | 0.602037 | 309 | 2,847 | 5.401295 | 0.271845 | 0.02876 | 0.075494 | 0.089874 | 0.446375 | 0.446375 | 0.424206 | 0.39305 | 0.270821 | 0.233673 | 0 | 0.002003 | 0.29856 | 2,847 | 80 | 134 | 35.5875 | 0.833751 | 0.016509 | 0 | 0.328125 | 0 | 0 | 0.077198 | 0.055754 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140625 | false | 0.109375 | 0.125 | 0 | 0.296875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
68aa3c68242e9120d5f8eefc41d71288dd7cafdf | 1,541 | py | Python | tests/urls.py | adeteam/django-oauth-toolkit-jwt | 7ea4deed678aba0c52aa82f9b16d7196145e63f9 | [
"MIT"
] | 33 | 2018-07-02T01:08:17.000Z | 2022-03-07T06:38:09.000Z | tests/urls.py | adeteam/django-oauth-toolkit-jwt | 7ea4deed678aba0c52aa82f9b16d7196145e63f9 | [
"MIT"
] | 21 | 2018-06-12T10:41:52.000Z | 2021-08-11T04:02:39.000Z | tests/urls.py | adeteam/django-oauth-toolkit-jwt | 7ea4deed678aba0c52aa82f9b16d7196145e63f9 | [
"MIT"
] | 25 | 2018-07-09T13:25:03.000Z | 2021-07-03T15:18:26.000Z | import json
from django.conf.urls import include, url
from django.contrib import admin
from django.http import HttpResponse
from rest_framework import permissions
from rest_framework.views import APIView
from oauth2_provider.contrib.rest_framework import TokenHasScope
admin.autodiscover()
class MockView(APIView):
... | 27.035088 | 66 | 0.704088 | 169 | 1,541 | 6.295858 | 0.319527 | 0.06203 | 0.067669 | 0.047932 | 0.337406 | 0.337406 | 0.206767 | 0.206767 | 0.171053 | 0.171053 | 0 | 0.002368 | 0.177807 | 1,541 | 56 | 67 | 27.517857 | 0.837411 | 0 | 0 | 0.289474 | 0 | 0 | 0.105775 | 0.031149 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.184211 | 0.078947 | 0.684211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d7a059bc026bd9e1bf07a92d660c75fa42ccbcd2 | 1,416 | py | Python | server.py | quillford/rand0mfish | 043802df85d96e3445da43c9f04e27b242dda780 | [
"MIT"
] | null | null | null | server.py | quillford/rand0mfish | 043802df85d96e3445da43c9f04e27b242dda780 | [
"MIT"
] | null | null | null | server.py | quillford/rand0mfish | 043802df85d96e3445da43c9f04e27b242dda780 | [
"MIT"
] | null | null | null | import json
from bot import Bot
from lichess import Lichess
token = open("token").read()
bot = Bot()
l = Lichess(token)
while True:
print "streaming events..."
for ev in l.stream_events().iter_lines():
if ev == '': continue
ev = json.loads(ev)
if ev["type"] == "challenge":
if bot.acceptabl... | 24.413793 | 88 | 0.566384 | 178 | 1,416 | 4.426966 | 0.359551 | 0.097716 | 0.076142 | 0.060914 | 0.091371 | 0.091371 | 0 | 0 | 0 | 0 | 0 | 0.003802 | 0.257062 | 1,416 | 57 | 89 | 24.842105 | 0.745247 | 0.014831 | 0 | 0.055556 | 0 | 0 | 0.218548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7a2613ed5b38b9a03fa8194c7760e58bcd6b83d | 1,182 | py | Python | www/apis.py | haoxingku/awesome-python3-webapp | bc99ca9777f66378b1d32d6afe87507793250add | [
"Apache-2.0"
] | null | null | null | www/apis.py | haoxingku/awesome-python3-webapp | bc99ca9777f66378b1d32d6afe87507793250add | [
"Apache-2.0"
] | null | null | null | www/apis.py | haoxingku/awesome-python3-webapp | bc99ca9777f66378b1d32d6afe87507793250add | [
"Apache-2.0"
] | null | null | null | #!/user/bin/env python3
# -*- coding: utf-8 -*-
'''
JSON API definition
'''
import json,logging,inspect,functools
class APIError(Excpetion):
'''
the base APIError which contains error(required),data(optional) and message(optional).
'''
def __init__(self,error,data='',message=''):
super(APIEr... | 28.142857 | 100 | 0.679357 | 132 | 1,182 | 5.840909 | 0.409091 | 0.036316 | 0.057069 | 0.049287 | 0.072633 | 0.072633 | 0 | 0 | 0 | 0 | 0 | 0.002094 | 0.192047 | 1,182 | 41 | 101 | 28.829268 | 0.805236 | 0.037225 | 0 | 0 | 0 | 0 | 0.071618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7b0a363eb184e20471c3b267c3d291e604b4799 | 2,278 | py | Python | napeos/gps_file_ops.py | softwarespartan/AGT | cdca4cdb81df2fd868ab4eb037e5ca68e266b27f | [
"MIT"
] | null | null | null | napeos/gps_file_ops.py | softwarespartan/AGT | cdca4cdb81df2fd868ab4eb037e5ca68e266b27f | [
"MIT"
] | null | null | null | napeos/gps_file_ops.py | softwarespartan/AGT | cdca4cdb81df2fd868ab4eb037e5ca68e266b27f | [
"MIT"
] | null | null | null |
import os
from file_ops import *
from gps_file_types import *
RNX2CRXPATH = ""
def rnx_rename(rnxFilePath, newName):
# check input args
if len(newName) != 4:
print "ERROR: invalid rinex file name: "+newName
return
# check that the file exists
if not os.path.exists(rnxFilePat... | 25.886364 | 75 | 0.58604 | 291 | 2,278 | 4.357388 | 0.319588 | 0.078864 | 0.028391 | 0.028391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022194 | 0.307726 | 2,278 | 87 | 76 | 26.183908 | 0.781864 | 0.093503 | 0 | 0.078431 | 0 | 0.019608 | 0.116788 | 0.027737 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.078431 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7be9f4465e9742df3f107a2e9b588a639c19dc9 | 2,310 | py | Python | app/auth/email.py | Orbital-Knewbie/Knewbie | 930d3fbbfba9123e52b7c4c6f70b8a1e994e2883 | [
"MIT"
] | 2 | 2020-11-28T17:57:25.000Z | 2021-06-06T08:37:06.000Z | app/auth/email.py | Orbital-Knewbie/Knewbie | 930d3fbbfba9123e52b7c4c6f70b8a1e994e2883 | [
"MIT"
] | 63 | 2020-05-28T01:42:29.000Z | 2022-03-12T00:35:33.000Z | app/auth/email.py | Orbital-Knewbie/Knewbie | 930d3fbbfba9123e52b7c4c6f70b8a1e994e2883 | [
"MIT"
] | 1 | 2021-02-13T04:58:56.000Z | 2021-02-13T04:58:56.000Z | from flask import current_app, render_template, url_for, redirect, flash
from flask_mail import Message
from app import db, mail
from app.models import User
from app.auth.token import generate_confirmation_token
from app.email import send_email
def send_conf_email(user, confirm_url):
send_email('[Knewbie] Confir... | 40.526316 | 99 | 0.664935 | 282 | 2,310 | 5.223404 | 0.198582 | 0.074678 | 0.09776 | 0.124915 | 0.648337 | 0.5852 | 0.54854 | 0.475221 | 0.423625 | 0.334012 | 0 | 0.002237 | 0.225974 | 2,310 | 56 | 100 | 41.25 | 0.821588 | 0 | 0 | 0.23913 | 1 | 0 | 0.154978 | 0.018182 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0.021739 | 0.130435 | 0 | 0.282609 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7bf420a8fc310d5e3dc98d4d72ac17a5c3475aa | 915 | py | Python | lib/GeneratorBase.py | WojciechMula/simd-byte-lookup | 870eccb54b6ad8888619cceecc3d5ea6a12d213b | [
"BSD-2-Clause"
] | 21 | 2018-10-18T19:14:05.000Z | 2021-11-19T23:27:24.000Z | lib/GeneratorBase.py | WojciechMula/simd-byte-lookup | 870eccb54b6ad8888619cceecc3d5ea6a12d213b | [
"BSD-2-Clause"
] | 1 | 2020-05-09T20:12:37.000Z | 2020-05-09T20:12:37.000Z | lib/GeneratorBase.py | WojciechMula/simd-byte-lookup | 870eccb54b6ad8888619cceecc3d5ea6a12d213b | [
"BSD-2-Clause"
] | 2 | 2019-08-14T10:44:10.000Z | 2020-11-04T00:50:39.000Z | class GeneratorBase(object):
def __init__(self, values, name):
self.values = values
self.name = name
self.__validate()
self.lower_nibbles = [x & 0x0f for x in self.values]
self.higher_nibbles = [x >> 4 for x in self.values]
def __validate(self):
for i, x i... | 26.142857 | 87 | 0.581421 | 117 | 915 | 4.42735 | 0.418803 | 0.135135 | 0.023166 | 0.03861 | 0.061776 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017572 | 0.315847 | 915 | 34 | 88 | 26.911765 | 0.809904 | 0 | 0 | 0 | 0 | 0 | 0.123632 | 0 | 0 | 0 | 0.004376 | 0 | 0 | 1 | 0.227273 | false | 0 | 0 | 0.045455 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7c6d56700b0e6345d2e780bcab416b74f94dfcd | 4,821 | py | Python | process/create_lidar_invariant_mask.py | dhesin/team_sf_lidar | d9201229cf572f6ee3ecd867af2342884a48b386 | [
"MIT"
] | null | null | null | process/create_lidar_invariant_mask.py | dhesin/team_sf_lidar | d9201229cf572f6ee3ecd867af2342884a48b386 | [
"MIT"
] | null | null | null | process/create_lidar_invariant_mask.py | dhesin/team_sf_lidar | d9201229cf572f6ee3ecd867af2342884a48b386 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""Create lidar invariant pixel mask from processed rosbags.
usage: python create_lidar_invariant_mask.py input_dir output_dir
"""
import os
import sys
import argparse
import numpy as np
import rosbag
import sensor_msgs.point_cloud2
import matplotlib.image as mpimg
import pickle
import globals
imp... | 35.189781 | 116 | 0.685128 | 603 | 4,821 | 5.207297 | 0.242123 | 0.037261 | 0.04586 | 0.04586 | 0.367516 | 0.271338 | 0.248408 | 0.153503 | 0.153503 | 0.13121 | 0 | 0.003957 | 0.213649 | 4,821 | 136 | 117 | 35.448529 | 0.824321 | 0.028625 | 0 | 0.193878 | 0 | 0 | 0.135977 | 0.009633 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.112245 | null | null | 0.061224 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7c6d715d8b8f341441ba11523eec7f8e942b72c | 1,942 | py | Python | turnstile_test.py | TobiasPleyer/pystate | a86377117ff126b657c6305e32c0587d299ad4cb | [
"MIT"
] | 7 | 2016-07-08T05:37:44.000Z | 2020-12-02T06:36:04.000Z | turnstile_test.py | TobiasPleyer/pystate | a86377117ff126b657c6305e32c0587d299ad4cb | [
"MIT"
] | 1 | 2018-06-23T18:32:56.000Z | 2018-06-23T18:32:56.000Z | turnstile_test.py | TobiasPleyer/pystate | a86377117ff126b657c6305e32c0587d299ad4cb | [
"MIT"
] | 3 | 2017-10-10T18:12:45.000Z | 2021-05-02T14:35:29.000Z | """
This is a simple example of the pystate class. It implements a turnstile. Initially gates are locked,
depositing a coin unlocks the gate, after a customer passes through the arms are locked again. There
are two states defined: STATE_LOCKED and STATE_UNLOCKED. The events are a string. Legal event values
are: 'CO... | 35.962963 | 107 | 0.69207 | 258 | 1,942 | 5.062016 | 0.387597 | 0.067381 | 0.041348 | 0.030628 | 0.133231 | 0.090352 | 0 | 0 | 0 | 0 | 0 | 0.003919 | 0.211637 | 1,942 | 54 | 108 | 35.962963 | 0.849118 | 0.265705 | 0 | 0.125 | 0 | 0 | 0.291056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.15625 | 0.03125 | 0 | 0.09375 | 0.21875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d7ccc4b06479e9c6f2d2996542f3e81891315074 | 1,069 | py | Python | app/rf/moveScore.py | rbarket/battlesnake2020 | 535a34a3d14a61a6012f605c9701681916cb42a3 | [
"MIT"
] | null | null | null | app/rf/moveScore.py | rbarket/battlesnake2020 | 535a34a3d14a61a6012f605c9701681916cb42a3 | [
"MIT"
] | null | null | null | app/rf/moveScore.py | rbarket/battlesnake2020 | 535a34a3d14a61a6012f605c9701681916cb42a3 | [
"MIT"
] | null | null | null | import operator
from utility import *
def scoreMove(moves, snakes, width, height):
snakeList = []
for snake in snakes:
snakeBody = snake['body'] # snakeBody = list of body parts for one snake
for piece in snakeBody: # iterae through each body piece of that snake
part = [piece['x'], piece['y']]
snakeList.a... | 33.40625 | 105 | 0.685688 | 140 | 1,069 | 5.221429 | 0.457143 | 0.075239 | 0.164159 | 0.191518 | 0.248974 | 0.192886 | 0.192886 | 0 | 0 | 0 | 0 | 0.001125 | 0.168382 | 1,069 | 31 | 106 | 34.483871 | 0.821147 | 0.156221 | 0 | 0 | 0 | 0 | 0.073743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.086957 | 0 | 0.173913 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7d1eaf43939272c05bc25850faf17962912ed03 | 803 | py | Python | metrics/CalibrationNeg.py | Khumayun/FairDeepLearning | e19947c17c282ce1e89ad105cc241ffc07190628 | [
"MIT"
] | 23 | 2021-06-20T07:57:49.000Z | 2022-03-21T05:45:08.000Z | metrics/CalibrationNeg.py | Khumayun/FairDeepLearning | e19947c17c282ce1e89ad105cc241ffc07190628 | [
"MIT"
] | 1 | 2022-03-24T14:29:37.000Z | 2022-03-24T14:29:37.000Z | metrics/CalibrationNeg.py | Khumayun/FairDeepLearning | e19947c17c282ce1e89ad105cc241ffc07190628 | [
"MIT"
] | 8 | 2021-06-20T08:01:55.000Z | 2022-03-24T14:31:41.000Z | from metrics.Metric import Metric
class CalibrationNeg(Metric):
def __init__(self):
Metric.__init__(self)
self.name = "calibrationNeg"
def calc(
self,
actual,
predicted,
dict_of_sensitive_lists,
single_sensitive_name,
unprotected_vals,
p... | 26.766667 | 61 | 0.566625 | 93 | 803 | 4.55914 | 0.365591 | 0.028302 | 0.200472 | 0.127358 | 0.259434 | 0.117925 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.362391 | 803 | 29 | 62 | 27.689655 | 0.796875 | 0 | 0 | 0 | 0 | 0 | 0.017435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.038462 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7d5957758392a8806da8f0ca629629c7c41d1c5 | 278 | py | Python | Scripts/malware_scan/classess/yara_rule.py | Team-Zed-cf/Team-Zed | 662eee2948502fca0bdc477955db17e2d32f92aa | [
"MIT"
] | null | null | null | Scripts/malware_scan/classess/yara_rule.py | Team-Zed-cf/Team-Zed | 662eee2948502fca0bdc477955db17e2d32f92aa | [
"MIT"
] | null | null | null | Scripts/malware_scan/classess/yara_rule.py | Team-Zed-cf/Team-Zed | 662eee2948502fca0bdc477955db17e2d32f92aa | [
"MIT"
] | null | null | null | import yara, os
path = os.path.abspath("YaraRuleProject.yar")
rules = yara.compile(filepath = path)
def check_file_yara(file_name):
matches = rules.match(data = file_name)
if(len(matches) > 0):
return True
else:
print("[+] Passed the Yara rule")
| 19.857143 | 45 | 0.651079 | 38 | 278 | 4.657895 | 0.710526 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004608 | 0.219424 | 278 | 13 | 46 | 21.384615 | 0.81106 | 0 | 0 | 0 | 0 | 0 | 0.155235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.111111 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d7d659ea5ef46a6d601c95c9edd9cd27a57cd39f | 1,106 | py | Python | src/_cffi_src/openssl/provider.py | strouja/cryptography | 0ce8f3a25120fbba775b6a7c8cc344a32c55afbf | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2018-05-28T17:08:17.000Z | 2018-05-28T17:08:17.000Z | src/_cffi_src/openssl/provider.py | strouja/cryptography | 0ce8f3a25120fbba775b6a7c8cc344a32c55afbf | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | 80 | 2021-01-05T06:56:32.000Z | 2022-03-30T21:08:47.000Z | src/_cffi_src/openssl/provider.py | tiran/cryptography | f08a7de651f9e6475c8c0a67d2a61ed8b669ddf6 | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
INCLUDES = """
#if CRYPTOGRAPHY_OPENSSL_300_OR_GREATER
#include <openssl/provider.h>
#include <openssl/proverr.h>
#endif
"""
TYPES = """
... | 26.97561 | 79 | 0.783002 | 164 | 1,106 | 4.963415 | 0.384146 | 0.14742 | 0.128993 | 0.093366 | 0.620393 | 0.620393 | 0.314496 | 0.314496 | 0.314496 | 0.213759 | 0 | 0.012397 | 0.124774 | 1,106 | 40 | 80 | 27.65 | 0.828512 | 0.15642 | 0 | 0.266667 | 0 | 0 | 0.90958 | 0.376749 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7d88531c8c1ce5976842842f30dee1ed80760f3 | 28,165 | py | Python | src/genie/libs/parser/junos/show_pfe.py | noziwatele/genieparser | 4d7a62a870b30dfc8e2a41bf1ad81218bca6f5e9 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/junos/show_pfe.py | noziwatele/genieparser | 4d7a62a870b30dfc8e2a41bf1ad81218bca6f5e9 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/junos/show_pfe.py | noziwatele/genieparser | 4d7a62a870b30dfc8e2a41bf1ad81218bca6f5e9 | [
"Apache-2.0"
] | null | null | null | """ show_pfe.py
JunOs parsers for the following show commands:
* show pfe statistics traffic
"""
# Python
import re
# Metaparser
from genie.metaparser import MetaParser
from genie.metaparser.util.schemaengine import (Any,
Optional, Use, SchemaTypeError, Schema)
class ShowPfeStatisticsTrafficSchema(MetaP... | 42.609682 | 115 | 0.442926 | 2,613 | 28,165 | 4.616533 | 0.070417 | 0.079582 | 0.086214 | 0.039791 | 0.688054 | 0.632264 | 0.628202 | 0.628202 | 0.628202 | 0.62157 | 0 | 0.024247 | 0.439162 | 28,165 | 660 | 116 | 42.674242 | 0.739428 | 0.157927 | 0 | 0.658996 | 0 | 0 | 0.201934 | 0.109999 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002092 | false | 0 | 0.006276 | 0 | 0.018828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7d8c48e35fd8538159532b2769b33d648b4941c | 3,122 | py | Python | NiLBS/main.py | joemarch010/NILBS | c6568818ec8acdb0fe4bd8d197278f0abb361d0b | [
"MIT"
] | 2 | 2021-04-01T07:55:11.000Z | 2021-12-10T02:57:59.000Z | NiLBS/main.py | joemarch010/NILBS | c6568818ec8acdb0fe4bd8d197278f0abb361d0b | [
"MIT"
] | null | null | null | NiLBS/main.py | joemarch010/NILBS | c6568818ec8acdb0fe4bd8d197278f0abb361d0b | [
"MIT"
] | null | null | null | import sys, os, time
import numpy as np
import trimesh
from trimesh.creation import icosphere
from trimesh.transformations import translation_matrix
from human_body_prior.tools.omni_tools import colors
from human_body_prior.mesh import MeshViewer
from human_body_prior.tools.omni_tools import copy2cpu as c2c
from human... | 34.307692 | 120 | 0.796925 | 445 | 3,122 | 5.361798 | 0.323596 | 0.049036 | 0.021794 | 0.030176 | 0.171417 | 0.112322 | 0.031852 | 0.031852 | 0 | 0 | 0 | 0.018645 | 0.106662 | 3,122 | 90 | 121 | 34.688889 | 0.836859 | 0.078475 | 0 | 0 | 0 | 0 | 0.07561 | 0.052962 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.385965 | 0 | 0.385965 | 0.035088 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d7daaecb19b4998d2bde384488cd78ba3cb04306 | 4,267 | py | Python | touchpaper/instance.py | BigglesZX/touchpaper | ebcdf4997e28563dc10474742c8cb127c738970c | [
"WTFPL"
] | null | null | null | touchpaper/instance.py | BigglesZX/touchpaper | ebcdf4997e28563dc10474742c8cb127c738970c | [
"WTFPL"
] | null | null | null | touchpaper/instance.py | BigglesZX/touchpaper | ebcdf4997e28563dc10474742c8cb127c738970c | [
"WTFPL"
] | 1 | 2018-03-05T00:43:27.000Z | 2018-03-05T00:43:27.000Z | import boto.ec2
from colorama import Fore
from time import sleep
from .config import get_config
config = get_config()
class Instance:
region = None
availability_zone = None
ami = None
instance_type = None
atp = False
storage_name = None
storage_size = 0
keypair = None
security_... | 36.784483 | 127 | 0.565268 | 503 | 4,267 | 4.644135 | 0.262425 | 0.03339 | 0.025685 | 0.014555 | 0.078767 | 0.059932 | 0.059932 | 0.059932 | 0 | 0 | 0 | 0.009578 | 0.339348 | 4,267 | 115 | 128 | 37.104348 | 0.819085 | 0 | 0 | 0.13253 | 0 | 0 | 0.114512 | 0.006013 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.048193 | null | null | 0.204819 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7db60b36d6ee3f6df40fc8efaa2f4fab2c91a12 | 476 | py | Python | justchat/chat/urls.py | manulangat1/justchat | b4c9058c66ecd666574fa77e829c766070b5e05b | [
"RSA-MD"
] | null | null | null | justchat/chat/urls.py | manulangat1/justchat | b4c9058c66ecd666574fa77e829c766070b5e05b | [
"RSA-MD"
] | null | null | null | justchat/chat/urls.py | manulangat1/justchat | b4c9058c66ecd666574fa77e829c766070b5e05b | [
"RSA-MD"
] | null | null | null | from django.urls import path
from knox import views as knox_views
from . import views
from .api import RegisterAPI,UserAPI,LoginAPI
urlpatterns = [
path('', views.index, name='index'),
path('<str:room_name>/', views.room, name='room'),
path('login/',LoginAPI.as_view(),name='login'),
path('logout/',kno... | 36.615385 | 66 | 0.689076 | 65 | 476 | 4.938462 | 0.353846 | 0.074766 | 0.124611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119748 | 476 | 13 | 67 | 36.615385 | 0.76611 | 0 | 0 | 0 | 0 | 0 | 0.157233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d7dbc9314c83f12b7d71c1dca0d5e1e846ab6a01 | 827 | py | Python | falmer/auth/admin.py | sussexstudent/services-api | ae735bd9d6177002c3d986e5c19a78102233308f | [
"MIT"
] | 2 | 2017-04-27T19:35:59.000Z | 2017-06-13T16:19:33.000Z | falmer/auth/admin.py | sussexstudent/falmer | ae735bd9d6177002c3d986e5c19a78102233308f | [
"MIT"
] | 975 | 2017-04-13T11:31:07.000Z | 2022-02-10T07:46:18.000Z | falmer/auth/admin.py | sussexstudent/services-api | ae735bd9d6177002c3d986e5c19a78102233308f | [
"MIT"
] | 3 | 2018-05-09T06:42:25.000Z | 2020-12-10T18:29:30.000Z | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
# @register(models.FalmerUser)
# class FalmerUserModelAdmin(admin.ModelAdmin):
# list_display = ('name_or_email', 'identifier', 'authority')
# list_filter = ('authority', )
# search_fields = ('name', 'identifier')
from falmer.... | 33.08 | 119 | 0.629988 | 77 | 827 | 6.61039 | 0.493506 | 0.111984 | 0.066798 | 0.066798 | 0.1611 | 0.1611 | 0.1611 | 0 | 0 | 0 | 0 | 0 | 0.20919 | 827 | 24 | 120 | 34.458333 | 0.778287 | 0.259976 | 0 | 0 | 0 | 0 | 0.267327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d7dc6a209a1355527d0cc31d152b6dec2b178525 | 551 | py | Python | setup.py | kshitij10496/goodquotes | dd4fb9b22425565226dc1cc57c17d39532796291 | [
"MIT"
] | 6 | 2017-05-07T13:06:59.000Z | 2017-08-17T17:10:11.000Z | setup.py | kshitij10496/goodquotes | dd4fb9b22425565226dc1cc57c17d39532796291 | [
"MIT"
] | 1 | 2017-12-12T07:04:03.000Z | 2017-12-12T16:27:23.000Z | setup.py | kshitij10496/goodquotes | dd4fb9b22425565226dc1cc57c17d39532796291 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name = 'GoodQuotes',
author = 'kshitij10496',
author_email = 'KshitijSaraogi@gmail.com',
url = 'https://github.com/kshitij10496/goodquotes',
version = '1.0.1',
download_url = 'https://github.com/kshitij10496/goodquotes/archive/v1.0.1.tar.gz'... | 22.04 | 86 | 0.595281 | 55 | 551 | 5.836364 | 0.636364 | 0.074766 | 0.087227 | 0.105919 | 0.242991 | 0.242991 | 0 | 0 | 0 | 0 | 0 | 0.054187 | 0.263158 | 551 | 24 | 87 | 22.958333 | 0.736453 | 0 | 0 | 0 | 0 | 0.05 | 0.397459 | 0.043557 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7e9c3f30291354f6b20504ade43e31b9aba56f1 | 5,551 | py | Python | foo.py | okadath/sawfish | fe45a3aa127049a14eca8a418896c077e88a61d9 | [
"Apache-2.0"
] | null | null | null | foo.py | okadath/sawfish | fe45a3aa127049a14eca8a418896c077e88a61d9 | [
"Apache-2.0"
] | null | null | null | foo.py | okadath/sawfish | fe45a3aa127049a14eca8a418896c077e88a61d9 | [
"Apache-2.0"
] | null | null | null | DJOSER!!!!!
default=
null blank unique
max_length=149
ForeignKey
ManyToManyField
OneToOneField
models.CharField(max_length=149)
models.TextField(blank=True, null=True)
models.ForeignKey(User, on_delete=models.CASCADE, null=True)
models.FileField(upload_to='pictures/', blank=True, null=True)
models.ForeignKey(Lan... | 28.177665 | 110 | 0.739146 | 679 | 5,551 | 5.948454 | 0.335788 | 0.034662 | 0.046299 | 0.020797 | 0.134439 | 0.078485 | 0.049765 | 0.023273 | 0.023273 | 0 | 0 | 0.002258 | 0.12232 | 5,551 | 197 | 111 | 28.177665 | 0.826765 | 0.253108 | 0 | 0.080808 | 0 | 0 | 0.07662 | 0.024928 | 0 | 0 | 0 | 0.005076 | 0 | 0 | null | null | 0.020202 | 0.272727 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7ef89380278ef633b17390448c9fa85e18a1712 | 1,762 | py | Python | grouper/perf_profile.py | bonniech3n/merou | 47d9de906686fd5b930a49299d3ffbcc0673ae8a | [
"Apache-2.0"
] | null | null | null | grouper/perf_profile.py | bonniech3n/merou | 47d9de906686fd5b930a49299d3ffbcc0673ae8a | [
"Apache-2.0"
] | null | null | null | grouper/perf_profile.py | bonniech3n/merou | 47d9de906686fd5b930a49299d3ffbcc0673ae8a | [
"Apache-2.0"
] | null | null | null | from datetime import datetime, timedelta
from plop.collector import FlamegraphFormatter, PlopFormatter
from pyflamegraph import generate
from grouper.models.perf_profile import PerfProfile
ONE_WEEK = timedelta(days=7)
class InvalidUUID(Exception):
pass
def prune_old_traces(session, delta=ONE_WEEK):
"""D... | 27.107692 | 85 | 0.72361 | 217 | 1,762 | 5.732719 | 0.400922 | 0.050643 | 0.051447 | 0.041801 | 0.102894 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001411 | 0.1958 | 1,762 | 64 | 86 | 27.53125 | 0.8765 | 0.290579 | 0 | 0.074074 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0.037037 | 0.148148 | 0 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7f188f5bf206de05db8c6cdcf66ffdc99639107 | 565 | py | Python | src/Pybind11Wraps/FieldList/FieldListBase.py | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/Pybind11Wraps/Field/FieldListBase.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/Pybind11Wraps/Field/FieldListBase.py | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | from PYB11Generator import *
#-------------------------------------------------------------------------------
# FieldBase
#-------------------------------------------------------------------------------
@PYB11template("Dimension")
@PYB11module("SpheralField")
class FieldListBase:
"Base class for FieldLists -- not ... | 35.3125 | 87 | 0.486726 | 47 | 565 | 5.851064 | 0.702128 | 0.058182 | 0.08 | 0.123636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014315 | 0.134513 | 565 | 15 | 88 | 37.666667 | 0.548057 | 0.741593 | 0 | 0 | 0 | 0 | 0.40796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7fbb1a86d4b9e033cc8783e0b40bb0fb0f89382 | 2,660 | py | Python | geoauthority/__init__.py | reed-sandberg/geocoder | 2d300ce5172a5d53e065240251a26e6e69ab58f2 | [
"Apache-2.0"
] | null | null | null | geoauthority/__init__.py | reed-sandberg/geocoder | 2d300ce5172a5d53e065240251a26e6e69ab58f2 | [
"Apache-2.0"
] | null | null | null | geoauthority/__init__.py | reed-sandberg/geocoder | 2d300ce5172a5d53e065240251a26e6e69ab58f2 | [
"Apache-2.0"
] | null | null | null | """An authoritive source for location data."""
from abc import ABC, abstractmethod
import logging
import requests
# Set client API connection and read timeout params in seconds.
REQUESTS_TIMEOUT = 6
class GeoAuthority(ABC):
"""Abstract class of an authoritative source for location data."""
def __init__(se... | 34.102564 | 117 | 0.663158 | 306 | 2,660 | 5.630719 | 0.398693 | 0.049333 | 0.022635 | 0.024376 | 0.100987 | 0.063842 | 0.063842 | 0 | 0 | 0 | 0 | 0.003553 | 0.259399 | 2,660 | 77 | 118 | 34.545455 | 0.871066 | 0.296617 | 0 | 0.26087 | 0 | 0 | 0.106943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0.108696 | 0.065217 | 0 | 0.326087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d7fcea89b4465fd96046eddda0f663850ba91bad | 843 | py | Python | linora/feature_column/boundary/_boundary.py | Hourout/linora | 4269516c9227a18bd1a65e1c6a59e73c74e874d0 | [
"Apache-2.0"
] | 10 | 2018-11-22T03:30:39.000Z | 2020-08-20T04:39:35.000Z | linora/feature_column/boundary/_boundary.py | Hourout/linora | 4269516c9227a18bd1a65e1c6a59e73c74e874d0 | [
"Apache-2.0"
] | null | null | null | linora/feature_column/boundary/_boundary.py | Hourout/linora | 4269516c9227a18bd1a65e1c6a59e73c74e874d0 | [
"Apache-2.0"
] | 3 | 2019-04-09T12:17:34.000Z | 2020-08-20T04:33:31.000Z | __all__ = ['uniform', 'quantile']
def uniform(feature, bins):
"""Equal width bin, take a uniform distribution for the sample value range.
Args:
feature: pd.Series, model feature values.
bins: int, split bins of feature.
Returns:
the list of split threshold of feature.
"""
... | 30.107143 | 79 | 0.622776 | 117 | 843 | 4.444444 | 0.350427 | 0.069231 | 0.061538 | 0.057692 | 0.619231 | 0.515385 | 0.515385 | 0.419231 | 0.419231 | 0.419231 | 0 | 0 | 0.255042 | 843 | 27 | 80 | 31.222222 | 0.828025 | 0.508897 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7fd140bbc856edc11442ddda3dc63d2d8d30a1c | 908 | py | Python | google/975_odd_even_jump.py | Xiaoyu-Xing/algorithms | 93936aeeef64487285db360b5884e844e0662b8e | [
"MIT"
] | null | null | null | google/975_odd_even_jump.py | Xiaoyu-Xing/algorithms | 93936aeeef64487285db360b5884e844e0662b8e | [
"MIT"
] | null | null | null | google/975_odd_even_jump.py | Xiaoyu-Xing/algorithms | 93936aeeef64487285db360b5884e844e0662b8e | [
"MIT"
] | null | null | null | import bisect
def jump(A):
length = len(A)
A_sort = [(number, i) for i, number in enumerate(A)].sort()
odd = [0] * length
even = [0] * length
odd[-1] = even[-1] = 1
for i in range(length - 2, -1, -1):
to_end = A[i + 1:]
right = bisect.bisect(to_end.sort(), A[i])
if righ... | 27.515152 | 70 | 0.47467 | 143 | 908 | 2.909091 | 0.230769 | 0.108173 | 0.086538 | 0.079327 | 0.401442 | 0.401442 | 0.401442 | 0.264423 | 0.134615 | 0.134615 | 0 | 0.041739 | 0.36674 | 908 | 32 | 71 | 28.375 | 0.681739 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7fd644afce8264ae9f0a431f5e9c95e47a32070 | 1,667 | py | Python | additional_urwid_widgets/widgets/selectable_row.py | divyarajsinh6100/additional_urwid_widgets | a283175ba7782f715032854d7b6c7b1a4999ab70 | [
"MIT"
] | 22 | 2018-11-19T14:35:19.000Z | 2021-05-19T07:23:50.000Z | additional_urwid_widgets/widgets/selectable_row.py | divyarajsinh6100/additional_urwid_widgets | a283175ba7782f715032854d7b6c7b1a4999ab70 | [
"MIT"
] | 2 | 2021-01-28T07:48:50.000Z | 2021-01-28T13:23:39.000Z | additional_urwid_widgets/widgets/selectable_row.py | divyarajsinh6100/additional_urwid_widgets | a283175ba7782f715032854d7b6c7b1a4999ab70 | [
"MIT"
] | 5 | 2019-03-18T07:51:14.000Z | 2021-10-01T18:41:55.000Z | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
import urwid
class SelectableRow(urwid.WidgetWrap):
"""Wraps 'urwid.Columns' to make it selectable.
This class has been slightly modified, but essentially corresponds to this class posted on stackoverflow.com:
https://stackoverflow.com/questions/52106244/h... | 34.729167 | 140 | 0.595681 | 196 | 1,667 | 4.897959 | 0.545918 | 0.0625 | 0.0375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016281 | 0.29994 | 1,667 | 47 | 141 | 35.468085 | 0.806341 | 0.34913 | 0 | 0 | 0 | 0 | 0.024413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.045455 | 0.090909 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7fefee0d63b04472336fe579d77455c8ce6e174 | 1,154 | py | Python | popbl_servicesapp/flask_app/order/application/authenticator.py | xetxezarreta/master-popbl1 | 253880b9ba358f63f666893cdbbffe7391fcd096 | [
"MIT"
] | null | null | null | popbl_servicesapp/flask_app/order/application/authenticator.py | xetxezarreta/master-popbl1 | 253880b9ba358f63f666893cdbbffe7391fcd096 | [
"MIT"
] | 1 | 2021-06-02T00:57:11.000Z | 2021-06-02T00:57:11.000Z | popbl_servicesapp/flask_app/order/application/authenticator.py | xetxezarreta/master-popbl1 | 253880b9ba358f63f666893cdbbffe7391fcd096 | [
"MIT"
] | null | null | null | from .api_client import ApiClient
import jwt, json
class Authenticator:
__instance = None
public_key = None
def __new__(cls):
if Authenticator.__instance is None:
Authenticator.__instance = object.__new__(cls)
return Authenticator.__instance
def __init__(self):
... | 28.85 | 79 | 0.615251 | 117 | 1,154 | 5.786325 | 0.42735 | 0.155096 | 0.06647 | 0.109306 | 0.138848 | 0.138848 | 0 | 0 | 0 | 0 | 0 | 0.003783 | 0.312825 | 1,154 | 40 | 80 | 28.85 | 0.849937 | 0.02773 | 0 | 0.16129 | 0 | 0 | 0.06512 | 0.037467 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.064516 | 0 | 0.516129 | 0.096774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cc0203c5c87b62ba4dd94d245ee311ceda8d00ca | 4,678 | py | Python | c_nutra/apps/surveys/forms.py | usbdevlab/C-Nutra | d20addafd343595a599231acb82a4af2fdb43c7f | [
"MIT"
] | null | null | null | c_nutra/apps/surveys/forms.py | usbdevlab/C-Nutra | d20addafd343595a599231acb82a4af2fdb43c7f | [
"MIT"
] | null | null | null | c_nutra/apps/surveys/forms.py | usbdevlab/C-Nutra | d20addafd343595a599231acb82a4af2fdb43c7f | [
"MIT"
] | null | null | null | from django import forms
from django.forms import models
from apps.surveys.models import Question, Category, Survey, Response, AnswerText, AnswerRadio, AnswerSelect, AnswerInteger, AnswerSelectMultiple
from django.utils.safestring import mark_safe
import uuid
# blatantly stolen from
# http://stackoverflow.com/questio... | 39.310924 | 144 | 0.697093 | 649 | 4,678 | 4.912173 | 0.263482 | 0.042346 | 0.043915 | 0.052698 | 0.3601 | 0.328105 | 0.281368 | 0.23808 | 0.212986 | 0.129235 | 0 | 0.002613 | 0.181915 | 4,678 | 118 | 145 | 39.644068 | 0.830415 | 0.193459 | 0 | 0.26506 | 0 | 0 | 0.089891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.060241 | null | null | 0.048193 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc089976eafa60ce4cad4c92be786089316104e2 | 317 | py | Python | virtual/lib/python3.6/site-packages/url_or_relative_url_field/validators.py | sharonmaswai/awards | 9556d6c559fdd12a860b6e3509b2482b260a63c0 | [
"Unlicense"
] | 6 | 2018-03-14T16:01:56.000Z | 2021-12-05T06:11:07.000Z | virtual/lib/python3.6/site-packages/url_or_relative_url_field/validators.py | sharonmaswai/awards | 9556d6c559fdd12a860b6e3509b2482b260a63c0 | [
"Unlicense"
] | 7 | 2020-02-12T03:20:53.000Z | 2022-03-12T00:06:11.000Z | virtual/lib/python3.6/site-packages/url_or_relative_url_field/validators.py | sharonmaswai/awards | 9556d6c559fdd12a860b6e3509b2482b260a63c0 | [
"Unlicense"
] | 4 | 2018-03-23T12:08:40.000Z | 2021-12-13T00:58:08.000Z | from django.core import validators
def url_or_relative_url_validator(value):
if value.startswith('/'):
# We transform a relative url into a fictitious absolute url
# so we could use built-in url validator.
value = 'http://example.com' + value
return validators.URLValidator()(value)
| 31.7 | 68 | 0.697161 | 42 | 317 | 5.166667 | 0.690476 | 0.101382 | 0.156682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214511 | 317 | 9 | 69 | 35.222222 | 0.871486 | 0.309148 | 0 | 0 | 0 | 0 | 0.087963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc091ea71e8dbe8bf78c3f1c4d52c50b81010069 | 918 | py | Python | modules/test/test_normalization.py | shapelets/shapelets-compute | 1dffe62d4eab9b1115b95bda5aaa7a3392024d72 | [
"MIT",
"BSD-3-Clause"
] | 14 | 2021-05-28T09:43:28.000Z | 2022-03-31T01:44:55.000Z | modules/test/test_normalization.py | shapelets/shapelets-compute | 1dffe62d4eab9b1115b95bda5aaa7a3392024d72 | [
"MIT",
"BSD-3-Clause"
] | 14 | 2021-05-31T11:48:12.000Z | 2022-03-06T20:30:34.000Z | modules/test/test_normalization.py | shapelets/shapelets-compute | 1dffe62d4eab9b1115b95bda5aaa7a3392024d72 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2021 Grumpy Cat Software S.L.
#
# This Source Code is licensed under the MIT 2.0 license.
# the terms can be found in LICENSE.md at the root of
# this project, or at http://mozilla.org/MPL/2.0/.
import shapelets.compute as sc
def test_norm_z():
data = sc.array([0, 1, 2, 3, 4, 5, 6, 7], (4, 2), d... | 31.655172 | 94 | 0.662309 | 141 | 918 | 4.269504 | 0.496454 | 0.106312 | 0.036545 | 0.039867 | 0.315615 | 0.212625 | 0.212625 | 0.212625 | 0 | 0 | 0 | 0.245946 | 0.1939 | 918 | 28 | 95 | 32.785714 | 0.567568 | 0.218954 | 0 | 0.117647 | 0 | 0 | 0.019691 | 0 | 0 | 0 | 0 | 0 | 0.294118 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc0df6900946bc1dbf2afb8858e92176389232f2 | 413 | py | Python | src/handler.py | CloudySnake/pytest-mocking-issue | aad54fdd01a5fca7bb80733614960106ac1bcdbb | [
"MIT"
] | null | null | null | src/handler.py | CloudySnake/pytest-mocking-issue | aad54fdd01a5fca7bb80733614960106ac1bcdbb | [
"MIT"
] | null | null | null | src/handler.py | CloudySnake/pytest-mocking-issue | aad54fdd01a5fca7bb80733614960106ac1bcdbb | [
"MIT"
] | null | null | null | from src.connection import MyConnection
"""
This connection is being instantiated outside of the handler so that it persists for
the life of the Lambda instance not per invocation
"""
connection = MyConnection()
client = connection.conn_client()
def handler(input):
write_client(client, input)
def write_client(... | 19.666667 | 84 | 0.74092 | 54 | 413 | 5.462963 | 0.62963 | 0.033898 | 0.115254 | 0.149153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16707 | 413 | 20 | 85 | 20.65 | 0.857558 | 0 | 0 | 0 | 0 | 0 | 0.062963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc164d74801b5e11c30553d95912a073846286c0 | 373 | py | Python | contracts/migrations/0002_auto_20200622_1748.py | Zayanto/Protocol-CRM | c81489d69de581d8216e20f7dd80089116f85c7b | [
"MIT"
] | null | null | null | contracts/migrations/0002_auto_20200622_1748.py | Zayanto/Protocol-CRM | c81489d69de581d8216e20f7dd80089116f85c7b | [
"MIT"
] | null | null | null | contracts/migrations/0002_auto_20200622_1748.py | Zayanto/Protocol-CRM | c81489d69de581d8216e20f7dd80089116f85c7b | [
"MIT"
] | null | null | null | # Generated by Django 3.0.1 on 2020-06-22 17:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tenants', '0004_tenant_rent_tenant'),
('contracts', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='Property... | 19.631579 | 47 | 0.592493 | 39 | 373 | 5.512821 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086466 | 0.286863 | 373 | 18 | 48 | 20.722222 | 0.721805 | 0.120643 | 0 | 0 | 1 | 0 | 0.205521 | 0.070552 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc1a8c3b95ddc4b141bf13936f05d33fd4bf4e3d | 640 | py | Python | dryxPython/git/tests/test_update_request_watcher.py | thespacedoctor/dryxPython | 8f34f997192eebef9403bd40e4b7c1b1d216f53c | [
"BSD-3-Clause"
] | 2 | 2015-08-01T16:00:44.000Z | 2017-02-24T21:06:50.000Z | dryxPython/git/tests/test_update_request_watcher.py | thespacedoctor/dryxPython | 8f34f997192eebef9403bd40e4b7c1b1d216f53c | [
"BSD-3-Clause"
] | null | null | null | dryxPython/git/tests/test_update_request_watcher.py | thespacedoctor/dryxPython | 8f34f997192eebef9403bd40e4b7c1b1d216f53c | [
"BSD-3-Clause"
] | null | null | null | import os
import nose
import shutil
from .. import update_request_watcher
from fundamentals import utKit
# SETUP AND TEARDOWN FIXTURE FUNCTIONS FOR THE ENTIRE MODULE
moduleDirectory = os.path.dirname(__file__)
utKit = utKit(moduleDirectory)
log, dbConn, pathToInputDir, pathToOutputDir = utKit.setupModule()
utKit.tearD... | 27.826087 | 66 | 0.767188 | 81 | 640 | 5.876543 | 0.666667 | 0.069328 | 0.084034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00363 | 0.139063 | 640 | 22 | 67 | 29.090909 | 0.860254 | 0.225 | 0 | 0 | 0 | 0 | 0.071138 | 0.042683 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cc1a8d078354ce51e00787c5985550bec04ed832 | 975 | py | Python | base/test/test_base_image.py | sfat/common-docker | 1993e036c814f21c7c2acf629b897ca8ae9c0df5 | [
"Apache-2.0"
] | 30 | 2018-01-26T07:51:58.000Z | 2022-02-25T19:19:36.000Z | base/test/test_base_image.py | OpenShift-Z/common-docker | ab8edbdc0517b0b6c7f55556a235c6aec545d75b | [
"Apache-2.0"
] | 65 | 2017-12-20T18:36:25.000Z | 2022-03-25T00:11:08.000Z | base/test/test_base_image.py | OpenShift-Z/common-docker | ab8edbdc0517b0b6c7f55556a235c6aec545d75b | [
"Apache-2.0"
] | 63 | 2017-10-09T22:32:15.000Z | 2022-03-23T00:34:52.000Z | import os
import unittest
import confluent.docker_utils as utils
class BaseImageTest(unittest.TestCase):
def setUp(self):
self.image = "{0}confluentinc/cp-base-new:{1}".format(os.environ["DOCKER_REGISTRY"], os.environ["DOCKER_TAG"])
def test_image_build(self):
self.assertTrue(utils.image_ex... | 34.821429 | 123 | 0.707692 | 141 | 975 | 4.659574 | 0.347518 | 0.082192 | 0.085236 | 0.070015 | 0.395738 | 0.395738 | 0.3379 | 0.3379 | 0.3379 | 0.3379 | 0 | 0.002424 | 0.153846 | 975 | 27 | 124 | 36.111111 | 0.793939 | 0 | 0 | 0 | 0 | 0 | 0.226667 | 0.031795 | 0 | 0 | 0 | 0 | 0.277778 | 1 | 0.222222 | false | 0 | 0.166667 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc208b1f7b79bf31da874d5aa5d09767b57c44a4 | 2,800 | py | Python | sdk/pyseele/workflow.py | rinkako/SeeleFlow | 4b8858f367ef02a568c03c8114e1c1b221208feb | [
"MIT"
] | 3 | 2019-12-20T13:32:34.000Z | 2021-04-27T06:02:28.000Z | sdk/pyseele/workflow.py | rinkako/SeeleFlow | 4b8858f367ef02a568c03c8114e1c1b221208feb | [
"MIT"
] | null | null | null | sdk/pyseele/workflow.py | rinkako/SeeleFlow | 4b8858f367ef02a568c03c8114e1c1b221208feb | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
"""
Project Seele
@author : Rinka
@date : 2019/12/16
"""
from enum import Enum
class WorkitemStateType(Enum):
"""
Enum:Workitem resourcing status.
"""
"""
A workitem is created, never apply any resourcing service.
"""
Created = 0
"""
A workitem is cance... | 23.728814 | 175 | 0.639643 | 371 | 2,800 | 4.827493 | 0.336927 | 0.067002 | 0.108878 | 0.159129 | 0.323283 | 0.296482 | 0.227806 | 0.121161 | 0.053601 | 0.053601 | 0 | 0.014577 | 0.265 | 2,800 | 117 | 176 | 23.931624 | 0.855685 | 0.0925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cc27d4f528a1a2ef17981212e1a03cd28e2ebefa | 5,346 | py | Python | py-emde-wind-direction.py | possnfiffer/py-emde | 68d033514a804e4667fb6efc7a67236d4c7eb8bd | [
"BSD-2-Clause"
] | null | null | null | py-emde-wind-direction.py | possnfiffer/py-emde | 68d033514a804e4667fb6efc7a67236d4c7eb8bd | [
"BSD-2-Clause"
] | 2 | 2017-07-19T15:01:06.000Z | 2017-07-24T20:21:21.000Z | py-emde-wind-direction.py | possnfiffer/py-emde | 68d033514a804e4667fb6efc7a67236d4c7eb8bd | [
"BSD-2-Clause"
] | null | null | null | ndata = []
with open('data/winddir_20160202.dat') as f:
for line in f:
ndata.append(line.split(" "))
flist = []
for l in ndata:
if l[4].endswith('00') or l[4].endswith('15') or l[4].endswith('30') or l[4].endswith('45'):
if float(l[-1].strip()) == 0 or float(l[-1].strip()) == 360:
f... | 68.538462 | 205 | 0.382342 | 772 | 5,346 | 2.621762 | 0.143782 | 0.110672 | 0.118577 | 0.094862 | 0.716403 | 0.659091 | 0.383399 | 0.383399 | 0.383399 | 0.383399 | 0 | 0.092951 | 0.275533 | 5,346 | 77 | 206 | 69.428571 | 0.429641 | 0.044332 | 0 | 0 | 0 | 0 | 0.180515 | 0.014928 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018868 | 0 | 0.018868 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc319c25b8dd061ade186ffcb0de0e592bb4bd43 | 1,040 | py | Python | setup.py | tachang/django_friendlyurls | 201f7d7e435921645525a10e2280219ee1433b2b | [
"BSD-3-Clause"
] | 1 | 2017-06-08T22:18:37.000Z | 2017-06-08T22:18:37.000Z | setup.py | tachang/django_friendlyurls | 201f7d7e435921645525a10e2280219ee1433b2b | [
"BSD-3-Clause"
] | null | null | null | setup.py | tachang/django_friendlyurls | 201f7d7e435921645525a10e2280219ee1433b2b | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='django_friendlyurls',
version='0.1.1',
description='Use friendly urls with Django.',
author=... | 26 | 57 | 0.608654 | 103 | 1,040 | 6.048544 | 0.718447 | 0.044944 | 0.064205 | 0.080257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006402 | 0.249038 | 1,040 | 39 | 58 | 26.666667 | 0.791293 | 0.040385 | 0 | 0.166667 | 0 | 0 | 0.422691 | 0.045181 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc3327e2567ee5d64c5a736baded685f4a7db38e | 1,893 | py | Python | me2ushop/migrations/0143_auto_20211005_1011.py | Dogechi/Me2U | 0852600983dc1058ee347f4065ee801e16c1249e | [
"MIT"
] | null | null | null | me2ushop/migrations/0143_auto_20211005_1011.py | Dogechi/Me2U | 0852600983dc1058ee347f4065ee801e16c1249e | [
"MIT"
] | 9 | 2020-06-06T01:16:25.000Z | 2021-06-04T23:20:37.000Z | me2ushop/migrations/0143_auto_20211005_1011.py | Me2U-Afrika/Me2U | aee054afedff1e6c87f87494eaddf044e217aa95 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2021-10-05 08:11
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('me2ushop', '0142_auto_20210922_1018'),
]
operations = [
migrations.AddField(
model_name='productva... | 42.066667 | 274 | 0.649234 | 212 | 1,893 | 5.693396 | 0.433962 | 0.044739 | 0.129246 | 0.14913 | 0.616404 | 0.588235 | 0.235294 | 0.235294 | 0.235294 | 0.150787 | 0 | 0.029557 | 0.24934 | 1,893 | 44 | 275 | 43.022727 | 0.819845 | 0.023772 | 0 | 0.473684 | 1 | 0.026316 | 0.293608 | 0.012459 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.131579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0bc4561045c09a5066a0269e5fa7be7a57521882 | 718 | py | Python | Week2/2_scrapy_crawler/books/books/spiders/book_spider.py | Bora2k3/Writing_a_Web_Crawler_Using_Python | ff2ca1e3ee0ca83566ca243e60994a1ac45436eb | [
"MIT"
] | null | null | null | Week2/2_scrapy_crawler/books/books/spiders/book_spider.py | Bora2k3/Writing_a_Web_Crawler_Using_Python | ff2ca1e3ee0ca83566ca243e60994a1ac45436eb | [
"MIT"
] | null | null | null | Week2/2_scrapy_crawler/books/books/spiders/book_spider.py | Bora2k3/Writing_a_Web_Crawler_Using_Python | ff2ca1e3ee0ca83566ca243e60994a1ac45436eb | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# scrapy crawl books -o result.json -t json
from w3lib.url import url_query_cleaner
from scrapy.spiders import CrawlSpider, Rule
from scrapy.linkextractors import LinkExtractor
def process_links(links):
for link in links:
link.url = url_query_cleaner(link.url)
yield link
class... | 25.642857 | 48 | 0.644847 | 85 | 718 | 5.317647 | 0.552941 | 0.079646 | 0.066372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003731 | 0.253482 | 718 | 27 | 49 | 26.592593 | 0.839552 | 0.082173 | 0 | 0 | 0 | 0 | 0.09589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0.052632 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0bc9f172dba9fc4132f4614d896b44eefd7068d8 | 6,454 | py | Python | travel_backpack/__init__.py | vMarcelino/travel-backpack | 5011db2d93b5b55e0d3367249169b77eb8528670 | [
"Apache-2.0"
] | null | null | null | travel_backpack/__init__.py | vMarcelino/travel-backpack | 5011db2d93b5b55e0d3367249169b77eb8528670 | [
"Apache-2.0"
] | null | null | null | travel_backpack/__init__.py | vMarcelino/travel-backpack | 5011db2d93b5b55e0d3367249169b77eb8528670 | [
"Apache-2.0"
] | null | null | null | """travel-backpack - Some very useful functions and classes to use in day-to-day"""
__version__ = '3.4.1'
__author__ = 'Victor Marcelino <victor.fmarcelino@gmail.com>'
__all__ = []
from functools import wraps
import inspect
from typing import Sequence
class Singleton(type):
_instances = {}
def __call__(cls... | 25.11284 | 112 | 0.597304 | 840 | 6,454 | 4.428571 | 0.32619 | 0.034409 | 0.009677 | 0.01129 | 0.030645 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034579 | 0.278587 | 6,454 | 256 | 113 | 25.210938 | 0.76439 | 0.048652 | 0 | 0.153846 | 0 | 0 | 0.119114 | 0.008532 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104396 | false | 0 | 0.076923 | 0.010989 | 0.565934 | 0.049451 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0bcc145e5e26d3c645f7ba6916257602c6c768ba | 3,142 | py | Python | cloudant_load_data.py | takara9/cloudant_loader | e4079e5ef8a29a8c86e0a1b92d7df1787c8bb090 | [
"MIT"
] | null | null | null | cloudant_load_data.py | takara9/cloudant_loader | e4079e5ef8a29a8c86e0a1b92d7df1787c8bb090 | [
"MIT"
] | 1 | 2021-06-01T21:59:40.000Z | 2021-06-01T21:59:40.000Z | cloudant_load_data.py | takara9/cloudant_loader | e4079e5ef8a29a8c86e0a1b92d7df1787c8bb090 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#
# SJIS,改行コードCRLF のCSVファイルを
# UTF-8 Unix形式改行コード LF に変換して、
# JSON形式で、Cloudantへロードする
#
#
import sys
import json
import codecs
import uuid
import time
from clo... | 22.442857 | 85 | 0.547422 | 374 | 3,142 | 4.438503 | 0.425134 | 0.039759 | 0.024096 | 0.050602 | 0.120482 | 0.026506 | 0 | 0 | 0 | 0 | 0 | 0.024889 | 0.283896 | 3,142 | 139 | 86 | 22.604317 | 0.712889 | 0.177276 | 0 | 0.155556 | 0 | 0 | 0.200235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.033333 | 0.077778 | null | null | 0.088889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0bcc73c9decec60c87adcb22d0e4ce510b9eb387 | 481 | py | Python | Python Programs/multiply-n-with-unit-digit.py | muhammad-masood-ur-rehman/Skillrack | 71a25417c89d0efab40ee6229ccd758b26ae4312 | [
"CC0-1.0"
] | 2 | 2021-06-26T21:50:59.000Z | 2021-09-18T04:55:51.000Z | Python Programs/multiply-n-with-unit-digit.py | muhammad-masood-ur-rehman/Skillrack | 71a25417c89d0efab40ee6229ccd758b26ae4312 | [
"CC0-1.0"
] | null | null | null | Python Programs/multiply-n-with-unit-digit.py | muhammad-masood-ur-rehman/Skillrack | 71a25417c89d0efab40ee6229ccd758b26ae4312 | [
"CC0-1.0"
] | null | null | null | Multiply N with Unit Digit
The program must accept a positive integer N and print the value of N multiplied with it's unit digit.
Boundary Condition(s):
1 <= N <= 9999
Input Format:
The first line contains N.
Output Format:
The first line contains the value of N multiplied with it's unit digit.
Example Input/Output 1:... | 19.24 | 102 | 0.746362 | 92 | 481 | 3.913043 | 0.445652 | 0.1 | 0.055556 | 0.061111 | 0.35 | 0.205556 | 0.205556 | 0.205556 | 0.205556 | 0.205556 | 0 | 0.06801 | 0.174636 | 481 | 24 | 103 | 20.041667 | 0.836272 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0bdc1869b85c5efbea24374c9a012f47b3a88ce8 | 178 | py | Python | spark/p3b.py | ManuelRodriguezRUM/exam1-spring-17-big-data-josegarcia12 | b98a9f39b1c5b2bf01607a4fb5d095933d03afd4 | [
"Apache-2.0"
] | null | null | null | spark/p3b.py | ManuelRodriguezRUM/exam1-spring-17-big-data-josegarcia12 | b98a9f39b1c5b2bf01607a4fb5d095933d03afd4 | [
"Apache-2.0"
] | null | null | null | spark/p3b.py | ManuelRodriguezRUM/exam1-spring-17-big-data-josegarcia12 | b98a9f39b1c5b2bf01607a4fb5d095933d03afd4 | [
"Apache-2.0"
] | null | null | null | #Code here
x = sc.textFile('escuelasPR.csv')
temp = x.map(lambda m: m.split(','))
res = temp.filter(lambda k: k[2]=='Ponce' or k[2]=='Cabo Rojo' or k[2]=='Dorado')
res.collect()
| 29.666667 | 81 | 0.629213 | 33 | 178 | 3.393939 | 0.666667 | 0.053571 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019108 | 0.117978 | 178 | 5 | 82 | 35.6 | 0.694268 | 0.050562 | 0 | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0be0f3897e9d1145e9bac171cc9218a36e52b840 | 1,594 | py | Python | c3-PCA.py | chongguang/scikitLearning | a6c93fc17f801029745a04feb51557abf8484b8e | [
"MIT"
] | null | null | null | c3-PCA.py | chongguang/scikitLearning | a6c93fc17f801029745a04feb51557abf8484b8e | [
"MIT"
] | null | null | null | c3-PCA.py | chongguang/scikitLearning | a6c93fc17f801029745a04feb51557abf8484b8e | [
"MIT"
] | null | null | null | from sklearn.datasets import load_digits
digits = load_digits()
X_digits, y_digits = digits.data, digits.target
print digits.keys()
import matplotlib.pyplot as plt
n_row, n_col = 2,5
def print_digits(images, y, max_n=10):
fig=plt.figure(figsize=(2. * n_col, 2.26 * n_row))
i=0
while i < max_n and i<image... | 30.653846 | 100 | 0.64931 | 255 | 1,594 | 3.878431 | 0.341176 | 0.032356 | 0.020222 | 0.032356 | 0.110212 | 0.091001 | 0.091001 | 0.056623 | 0.056623 | 0.056623 | 0 | 0.023095 | 0.185069 | 1,594 | 52 | 101 | 30.653846 | 0.73826 | 0.056462 | 0 | 0 | 0 | 0 | 0.081279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081081 | null | null | 0.108108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0beaf492bca0739cbe361e2a06967a768f8a5372 | 1,160 | py | Python | guess/migrations/0001_initial.py | kemsakurai/django-guess | 1e329608cba1f2786f4da12f0078206d296c49d4 | [
"MIT"
] | null | null | null | guess/migrations/0001_initial.py | kemsakurai/django-guess | 1e329608cba1f2786f4da12f0078206d296c49d4 | [
"MIT"
] | null | null | null | guess/migrations/0001_initial.py | kemsakurai/django-guess | 1e329608cba1f2786f4da12f0078206d296c49d4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-12-09 05:26
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateM... | 36.25 | 217 | 0.642241 | 123 | 1,160 | 5.878049 | 0.569106 | 0.055325 | 0.11065 | 0.063624 | 0.232365 | 0.102351 | 0.102351 | 0.102351 | 0 | 0 | 0 | 0.042363 | 0.226724 | 1,160 | 31 | 218 | 37.419355 | 0.763657 | 0.058621 | 0 | 0.086957 | 1 | 0 | 0.098255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0bf3f924d45179db04bad5f4e5ddbda99bda6ce5 | 375 | py | Python | tests/v2/test_0758-ak-zip-scallars.py | colesbury/awkward-1.0 | d036ab18eb54de8a2571d9f179d315ac8ee22119 | [
"BSD-3-Clause"
] | null | null | null | tests/v2/test_0758-ak-zip-scallars.py | colesbury/awkward-1.0 | d036ab18eb54de8a2571d9f179d315ac8ee22119 | [
"BSD-3-Clause"
] | null | null | null | tests/v2/test_0758-ak-zip-scallars.py | colesbury/awkward-1.0 | d036ab18eb54de8a2571d9f179d315ac8ee22119 | [
"BSD-3-Clause"
] | null | null | null | # BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
import pytest # noqa: F401
import numpy as np # noqa: F401
import awkward as ak # noqa: F401
to_list = ak._v2.operations.convert.to_list
def test():
assert isinstance(
ak._v2.operations.structure.zip({"x": 1, "y... | 22.058824 | 87 | 0.658667 | 59 | 375 | 4.101695 | 0.661017 | 0.099174 | 0.115702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059603 | 0.194667 | 375 | 16 | 88 | 23.4375 | 0.741722 | 0.314667 | 0 | 0 | 0 | 0 | 0.011905 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0bfe1e62b863f8e6ae3c61b75f229fc18ccccee5 | 1,585 | py | Python | setup.py | hugovk/pescador | 2e1796cdf8b31c45fb00d2c3a41d8551db6857cd | [
"ISC"
] | null | null | null | setup.py | hugovk/pescador | 2e1796cdf8b31c45fb00d2c3a41d8551db6857cd | [
"ISC"
] | null | null | null | setup.py | hugovk/pescador | 2e1796cdf8b31c45fb00d2c3a41d8551db6857cd | [
"ISC"
] | null | null | null | from setuptools import setup, find_packages
import imp
version = imp.load_source('pescador.version', 'pescador/version.py')
setup(
name='pescador',
version=version.version,
description='Multiplex generators for incremental learning',
author='Pescador developers',
author_email='brian.mcfee@nyu.edu... | 33.723404 | 69 | 0.592429 | 172 | 1,585 | 5.406977 | 0.488372 | 0.163441 | 0.215054 | 0.139785 | 0.187097 | 0.187097 | 0 | 0 | 0 | 0 | 0 | 0.036274 | 0.2347 | 1,585 | 46 | 70 | 34.456522 | 0.73042 | 0 | 0 | 0.046512 | 0 | 0.023256 | 0.562776 | 0.01388 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046512 | 0 | 0.046512 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0402eb6b58f9b3ce4dbcb9e55f31da4c5ddc8101 | 499 | py | Python | 08-obj-ref/cheese.py | diegoami/example-code | 932e548cdc52683f6c34f7cd755e8d7a34fa839e | [
"MIT"
] | null | null | null | 08-obj-ref/cheese.py | diegoami/example-code | 932e548cdc52683f6c34f7cd755e8d7a34fa839e | [
"MIT"
] | null | null | null | 08-obj-ref/cheese.py | diegoami/example-code | 932e548cdc52683f6c34f7cd755e8d7a34fa839e | [
"MIT"
] | null | null | null |
# BEGIN CHEESE_CLASS
class Cheese:
def __init__(self, kind):
self.kind = kind
def __repr__(self):
return 'Cheese(%r)' % self.kind
# END CHEESE_CLASS
import weakref
stock = weakref.WeakValueDictionary()
catalog = [Cheese('Red Leicester'), Cheese('Tilsit'),
Cheese('Brie'), Che... | 20.791667 | 53 | 0.667335 | 62 | 499 | 5.209677 | 0.435484 | 0.074303 | 0.148607 | 0.185759 | 0.241486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190381 | 499 | 23 | 54 | 21.695652 | 0.799505 | 0.07014 | 0 | 0.1875 | 0 | 0 | 0.08913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0.0625 | 0.3125 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
04107cbdc8b5705bf9081dbe06d686ccb6876139 | 1,404 | py | Python | UVa Online Judge/v109/10992.py | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | 1 | 2021-12-08T08:58:43.000Z | 2021-12-08T08:58:43.000Z | UVa Online Judge/v109/10992.py | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | null | null | null | UVa Online Judge/v109/10992.py | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | null | null | null | # =============================================================================
# Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/
# FileName: 10992.py
# Description: UVa Online Judge - 10992
# =============================================================================
nt = 0
whil... | 26.490566 | 79 | 0.424501 | 178 | 1,404 | 3.286517 | 0.404494 | 0.061538 | 0.107692 | 0.184615 | 0.403419 | 0.403419 | 0.273504 | 0.102564 | 0 | 0 | 0 | 0.065804 | 0.339744 | 1,404 | 52 | 80 | 27 | 0.565264 | 0.211538 | 0 | 0.261905 | 0 | 0 | 0.269755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.309524 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0413f9c45496c038c3cf4e66282e809503969661 | 926 | py | Python | GPSTracker/main/migrations/0014_auto_20190115_1227.py | borisfoko/IoTLoRaWanFahradSchloss | cf5aa02f8d84218491d81faaf4dc6724a468faff | [
"MIT"
] | null | null | null | GPSTracker/main/migrations/0014_auto_20190115_1227.py | borisfoko/IoTLoRaWanFahradSchloss | cf5aa02f8d84218491d81faaf4dc6724a468faff | [
"MIT"
] | null | null | null | GPSTracker/main/migrations/0014_auto_20190115_1227.py | borisfoko/IoTLoRaWanFahradSchloss | cf5aa02f8d84218491d81faaf4dc6724a468faff | [
"MIT"
] | null | null | null | # Generated by Django 2.1.3 on 2019-01-15 11:27
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('main', '0013_auto_20190115_1225'),
]
operations = [
migrations.AlterField(
mode... | 29.870968 | 111 | 0.610151 | 103 | 926 | 5.407767 | 0.485437 | 0.043088 | 0.13465 | 0.156194 | 0.405745 | 0.405745 | 0.405745 | 0.405745 | 0.405745 | 0.405745 | 0 | 0.101322 | 0.264579 | 926 | 30 | 112 | 30.866667 | 0.716593 | 0.048596 | 0 | 0.416667 | 1 | 0 | 0.091013 | 0.026166 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
041a9424a6bdbefe8d48f52fb22f818b0b939206 | 5,345 | py | Python | python/mxnet/gluon/probability/distributions/utils.py | sandutsar/incubator-mxnet | 3ae7ddfd9c99f40a33c4cb716b3810e5463b810a | [
"Apache-2.0",
"MIT"
] | 1 | 2021-11-09T01:40:17.000Z | 2021-11-09T01:40:17.000Z | python/mxnet/gluon/probability/distributions/utils.py | sandutsar/incubator-mxnet | 3ae7ddfd9c99f40a33c4cb716b3810e5463b810a | [
"Apache-2.0",
"MIT"
] | 4 | 2021-03-30T13:16:50.000Z | 2021-10-04T08:49:33.000Z | python/mxnet/gluon/probability/distributions/utils.py | sandutsar/incubator-mxnet | 3ae7ddfd9c99f40a33c4cb716b3810e5463b810a | [
"Apache-2.0",
"MIT"
] | 1 | 2018-07-19T00:43:30.000Z | 2018-07-19T00:43:30.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 28.736559 | 96 | 0.640412 | 693 | 5,345 | 4.854257 | 0.304473 | 0.011891 | 0.023781 | 0.032699 | 0.288347 | 0.24673 | 0.24673 | 0.219382 | 0.219382 | 0.219382 | 0 | 0.006402 | 0.269411 | 5,345 | 185 | 97 | 28.891892 | 0.855058 | 0.365762 | 0 | 0.316327 | 0 | 0 | 0.113173 | 0.007421 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183673 | false | 0 | 0.061224 | 0 | 0.530612 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
04240c82ad6104c26089e1ef1a17a7718fded9e5 | 2,037 | py | Python | code/poloniex/orderbook_scrape_error.py | nateGeorge/crypto_predict | 5058af6d389cc06d40e21a663eff3901511198c0 | [
"Apache-2.0"
] | null | null | null | code/poloniex/orderbook_scrape_error.py | nateGeorge/crypto_predict | 5058af6d389cc06d40e21a663eff3901511198c0 | [
"Apache-2.0"
] | null | null | null | code/poloniex/orderbook_scrape_error.py | nateGeorge/crypto_predict | 5058af6d389cc06d40e21a663eff3901511198c0 | [
"Apache-2.0"
] | null | null | null | Exception in thread Thread-168:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/poloniex/__init__.py", line 244, in handleReturned
out = _loads(data, parse_float=str)
File "/usr/lib/python3.5/json/__init__.py", line 332, in loads
return cls(**kw).decode(s)
File "/usr/lib/py... | 56.583333 | 127 | 0.756014 | 311 | 2,037 | 4.749196 | 0.356913 | 0.05281 | 0.074475 | 0.050779 | 0.535545 | 0.481381 | 0.466486 | 0.429926 | 0.38524 | 0.337847 | 0 | 0.040044 | 0.117329 | 2,037 | 35 | 128 | 58.2 | 0.781424 | 0 | 0 | 0.0625 | 0 | 0 | 0.374263 | 0.348232 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
04276086a055c85490d7647df01c602afcbd3eca | 515 | py | Python | setup.py | maxhumber/itemvec | 42cd5311b08167707641fbe5eceb40bc9d024a3e | [
"MIT"
] | 2 | 2020-12-26T13:22:59.000Z | 2021-08-17T14:49:06.000Z | setup.py | maxhumber/itemvec | 42cd5311b08167707641fbe5eceb40bc9d024a3e | [
"MIT"
] | null | null | null | setup.py | maxhumber/itemvec | 42cd5311b08167707641fbe5eceb40bc9d024a3e | [
"MIT"
] | null | null | null | from setuptools import setup
with open("README.md", "r", encoding="utf-8") as f:
long_description = f.read()
setup(
name="sku",
version="0.2",
description="scikit-learn Utilities",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/myt... | 25.75 | 51 | 0.666019 | 67 | 515 | 4.985075 | 0.701493 | 0.179641 | 0.113772 | 0.179641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.161165 | 515 | 19 | 52 | 27.105263 | 0.752315 | 0 | 0 | 0 | 0 | 0 | 0.287379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
042c6e447fd70760d5594d59628e61f06b1ac56f | 523 | py | Python | game_engine/ball.py | mnkywlkr/ARPong | 6ac344ac021a19972d9bf2025e313e298d6979b5 | [
"MIT"
] | null | null | null | game_engine/ball.py | mnkywlkr/ARPong | 6ac344ac021a19972d9bf2025e313e298d6979b5 | [
"MIT"
] | null | null | null | game_engine/ball.py | mnkywlkr/ARPong | 6ac344ac021a19972d9bf2025e313e298d6979b5 | [
"MIT"
] | 1 | 2020-02-25T14:17:37.000Z | 2020-02-25T14:17:37.000Z | import cv2
class Ball:
def __init__(self, x, y):
self.x = x
self.y = y
self.v_x = 1
self.v_y = 1
def make_move(self):
self.x += self.v_x
self.y += self.v_y
def draw(self, frame, ratio, x_shift, y_shift):
top_left = (int(self.x * ratio + x_shift), ... | 26.15 | 97 | 0.548757 | 87 | 523 | 3.08046 | 0.275862 | 0.093284 | 0.123134 | 0.104478 | 0.141791 | 0.141791 | 0 | 0 | 0 | 0 | 0 | 0.043836 | 0.302103 | 523 | 19 | 98 | 27.526316 | 0.690411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
042c8d82836ddb21a839f7f2cf82ebcb5699a44e | 2,705 | py | Python | stats/graphs_per_year/histogram_by_approach.py | julio-navarro-lara/biblio | 3a86b9133d6470e89425e7a1fdea72cef0b6528b | [
"Apache-2.0"
] | 1 | 2020-09-23T11:54:16.000Z | 2020-09-23T11:54:16.000Z | stats/graphs_per_year/histogram_by_approach.py | julio-navarro-lara/biblio | 3a86b9133d6470e89425e7a1fdea72cef0b6528b | [
"Apache-2.0"
] | null | null | null | stats/graphs_per_year/histogram_by_approach.py | julio-navarro-lara/biblio | 3a86b9133d6470e89425e7a1fdea72cef0b6528b | [
"Apache-2.0"
] | null | null | null | import peewee as pw
import sys
sys.path.insert(0,'../../')
from models import Biblio
from representation_graphs import *
def extract_number_of_papers_per_approach(approaches, begin_year, end_year):
#It accept an array of duples called "type" with the "key" the type to print and in the value an array of the value... | 40.984848 | 212 | 0.697597 | 366 | 2,705 | 4.915301 | 0.374317 | 0.031128 | 0.033352 | 0.023346 | 0.171206 | 0.138966 | 0.05114 | 0.05114 | 0.05114 | 0.05114 | 0 | 0.011127 | 0.202588 | 2,705 | 65 | 213 | 41.615385 | 0.822902 | 0.216266 | 0 | 0.133333 | 0 | 0 | 0.182119 | 0.093661 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088889 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
042fd302b104784b69dbd1fdc8189e6e567dbea3 | 705 | py | Python | webarm/connectors/models.py | AlexGolovaschenko/WebArm | 1019b73b1ad5560a626261bbce05137c01edcee5 | [
"MIT"
] | null | null | null | webarm/connectors/models.py | AlexGolovaschenko/WebArm | 1019b73b1ad5560a626261bbce05137c01edcee5 | [
"MIT"
] | null | null | null | webarm/connectors/models.py | AlexGolovaschenko/WebArm | 1019b73b1ad5560a626261bbce05137c01edcee5 | [
"MIT"
] | null | null | null | from django.db import models
from . import choices
class Connector(models.Model):
token = models.CharField(max_length=40, unique=True, verbose_name='Токен')
connector_type = models.CharField(max_length=20, verbose_name='Тип подключения', choices=choices.CONNECTORS)
created = models.DateTimeField(auto_now... | 41.470588 | 123 | 0.739007 | 90 | 705 | 5.555556 | 0.522222 | 0.132 | 0.108 | 0.144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.148936 | 705 | 17 | 124 | 41.470588 | 0.823333 | 0 | 0 | 0 | 0 | 0 | 0.114731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0.083333 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
04348d7cd2c2c7f810b155f747cbfc9ab8ae520c | 1,144 | py | Python | tests/test_api.py | jpwhite3/phoney | 685876eb630555a2e415f79c6820294afb7d1e8f | [
"MIT"
] | null | null | null | tests/test_api.py | jpwhite3/phoney | 685876eb630555a2e415f79c6820294afb7d1e8f | [
"MIT"
] | null | null | null | tests/test_api.py | jpwhite3/phoney | 685876eb630555a2e415f79c6820294afb7d1e8f | [
"MIT"
] | null | null | null | import unittest
from fastapi.testclient import TestClient
from phoney.app.main import app
from phoney.app.apis.provider import get_provider_list, get_generator_list, get_provider
client = TestClient(app)
class TestApi(unittest.TestCase):
@classmethod
def setUpClass(cls):
pass
def setUp(self):
... | 31.777778 | 88 | 0.688811 | 132 | 1,144 | 5.742424 | 0.333333 | 0.087071 | 0.059367 | 0.076517 | 0.094987 | 0.094987 | 0 | 0 | 0 | 0 | 0 | 0.006742 | 0.222028 | 1,144 | 35 | 89 | 32.685714 | 0.844944 | 0 | 0 | 0.153846 | 0 | 0 | 0.034965 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.153846 | false | 0.076923 | 0.153846 | 0 | 0.346154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0438b7b80c44fb21a99517fae6f66cba5ab337a8 | 191 | py | Python | src/Full/pc_python/imgtobin.py | ChienKaiMa/HDR-Imaging-with-FPGA | b19df45b1ca67f0ce1e2b4a619be08807800b73c | [
"MIT"
] | 2 | 2021-03-01T13:39:55.000Z | 2021-03-03T13:33:12.000Z | src/Image_test/pc_python/imgtobin.py | ChienKaiMa/HDR-Imaging-with-FPGA | b19df45b1ca67f0ce1e2b4a619be08807800b73c | [
"MIT"
] | null | null | null | src/Image_test/pc_python/imgtobin.py | ChienKaiMa/HDR-Imaging-with-FPGA | b19df45b1ca67f0ce1e2b4a619be08807800b73c | [
"MIT"
] | 1 | 2021-08-10T12:48:23.000Z | 2021-08-10T12:48:23.000Z | #!/usr/bin/env python
fi = open('mountain.bmp', 'rb')
fo = open('mountain.bin', 'wb')
assert fi and fo
image = fi.read()
b = bytearray(image)
fo.write(b)
fi.close()
fo.close()
| 14.692308 | 32 | 0.596859 | 31 | 191 | 3.677419 | 0.612903 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198953 | 191 | 12 | 33 | 15.916667 | 0.745098 | 0.104712 | 0 | 0 | 0 | 0 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
043c6d4a0f389ac8952deed75fa93e5285f55798 | 1,108 | py | Python | datahub/core/validators/__init__.py | uktrade/data-hub-api-actions-test | a72439dfeb34e4179491db42fea290b9c2afadb1 | [
"MIT"
] | null | null | null | datahub/core/validators/__init__.py | uktrade/data-hub-api-actions-test | a72439dfeb34e4179491db42fea290b9c2afadb1 | [
"MIT"
] | 16 | 2020-04-01T15:25:35.000Z | 2020-04-14T14:07:30.000Z | datahub/core/validators/__init__.py | uktrade/data-hub-api-actions-test | a72439dfeb34e4179491db42fea290b9c2afadb1 | [
"MIT"
] | null | null | null | from datahub.core.validators.address import AddressValidator
from datahub.core.validators.not_archived import NotArchivedValidator
from datahub.core.validators.one_way_required import RequiredUnlessAlreadyBlankValidator
from datahub.core.validators.rules_based import (
AbstractRule,
AllIsBlankRule,
AndRule,... | 24.086957 | 88 | 0.728339 | 69 | 1,108 | 11.57971 | 0.492754 | 0.055069 | 0.075094 | 0.125156 | 0.468085 | 0.468085 | 0.468085 | 0.468085 | 0.468085 | 0.468085 | 0 | 0 | 0.186823 | 1,108 | 45 | 89 | 24.622222 | 0.886792 | 0 | 0 | 0 | 0 | 0 | 0.284296 | 0.084838 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
043cc3fcfd96ecde79089d4469ae9f7eeab3a1b8 | 13,311 | py | Python | tests/test_parser.py | syndbg/demonoid-api | 518aa389ac91b5243b92fc19923103f31041a61e | [
"MIT"
] | 3 | 2015-11-17T13:04:25.000Z | 2019-04-14T20:27:32.000Z | tests/test_parser.py | syndbg/demonoid-api | 518aa389ac91b5243b92fc19923103f31041a61e | [
"MIT"
] | null | null | null | tests/test_parser.py | syndbg/demonoid-api | 518aa389ac91b5243b92fc19923103f31041a61e | [
"MIT"
] | null | null | null | from datetime import date, datetime
from sys import version_info
from unittest import TestCase
if version_info >= (3, 3):
from unittest import mock
else:
import mock
from lxml.html import HtmlElement
from requests import Session, HTTPError, Response
from demonoid.constants import Category, Quality, Language... | 48.228261 | 147 | 0.698144 | 1,729 | 13,311 | 5.116252 | 0.126663 | 0.055957 | 0.030748 | 0.026114 | 0.623898 | 0.542618 | 0.513792 | 0.483608 | 0.477843 | 0.470947 | 0 | 0.02274 | 0.177372 | 13,311 | 275 | 148 | 48.403636 | 0.785114 | 0.057246 | 0 | 0.370732 | 0 | 0.034146 | 0.18733 | 0.06247 | 0 | 0 | 0 | 0 | 0.336585 | 1 | 0.156098 | false | 0.058537 | 0.04878 | 0 | 0.214634 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.