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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
34112f7e5a76fd33cbdcf22035bfb5c1cf32fbaa | 1,246 | py | Python | versatum/project/migrations/0001_initial.py | Versatum/website | 3aff09bc344f48ef983530cd374b6b0c8af0b86c | [
"MIT"
] | null | null | null | versatum/project/migrations/0001_initial.py | Versatum/website | 3aff09bc344f48ef983530cd374b6b0c8af0b86c | [
"MIT"
] | 1 | 2018-01-05T19:51:41.000Z | 2018-01-05T19:51:41.000Z | versatum/project/migrations/0001_initial.py | Versatum/website | 3aff09bc344f48ef983530cd374b6b0c8af0b86c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2017-09-16 14:09
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import utils
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependen... | 37.757576 | 114 | 0.636437 | 135 | 1,246 | 5.696296 | 0.548148 | 0.085826 | 0.078023 | 0.074122 | 0.111834 | 0.111834 | 0.111834 | 0.111834 | 0 | 0 | 0 | 0.022989 | 0.231942 | 1,246 | 32 | 115 | 38.9375 | 0.780564 | 0.053772 | 0 | 0 | 1 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3414a3f805ad1e7434416eb67004059efe78c21c | 3,429 | py | Python | tests/inference/pmx_zero_test.py | south-coast-science/scs_dev | b746adda020498b911cb92f28d4f07b14df996a2 | [
"MIT"
] | 2 | 2017-04-24T14:58:28.000Z | 2020-05-27T08:53:46.000Z | tests/inference/pmx_zero_test.py | south-coast-science/scs_dev | b746adda020498b911cb92f28d4f07b14df996a2 | [
"MIT"
] | 1 | 2020-07-13T14:33:59.000Z | 2021-03-27T08:52:04.000Z | tests/inference/pmx_zero_test.py | south-coast-science/scs_dev | b746adda020498b911cb92f28d4f07b14df996a2 | [
"MIT"
] | 1 | 2018-08-24T09:55:01.000Z | 2018-08-24T09:55:01.000Z | #!/usr/bin/env python3
"""
Created on 13 Sep 2020
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
example CSV:
label,
praxis.meteo.val.hmd, praxis.meteo.val.tmp, praxis.pmx.val.per, praxis.pmx.val.bin:0, praxis.pmx.val.bin:1,
praxis.pmx.val.bin:2, praxis.pmx.val.bin:3, praxis.pmx.val.bin:4, praxis.pmx.val... | 30.345133 | 119 | 0.611257 | 487 | 3,429 | 4.207392 | 0.293635 | 0.034163 | 0.048316 | 0.060517 | 0.018058 | 0.018058 | 0.015129 | 0.015129 | 0.015129 | 0.015129 | 0 | 0.037 | 0.125109 | 3,429 | 112 | 120 | 30.616071 | 0.646 | 0.421989 | 0 | 0.040816 | 0 | 0 | 0.051478 | 0.014781 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.306122 | 0 | 0.306122 | 0.081633 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
342164c7776017ffdf8145886ee1eaef96d69c58 | 1,324 | py | Python | tests/examples/config_examples.py | rapid7/leexportpy | 441db1710399d6f8dc41aaf1b474b5f8ca9d7018 | [
"MIT"
] | 2 | 2016-07-05T09:18:20.000Z | 2016-07-12T19:48:37.000Z | tests/examples/config_examples.py | logentries/leexportpy | 441db1710399d6f8dc41aaf1b474b5f8ca9d7018 | [
"MIT"
] | 7 | 2016-06-28T13:47:57.000Z | 2016-07-22T11:13:16.000Z | tests/examples/config_examples.py | rapid7/leexportpy | 441db1710399d6f8dc41aaf1b474b5f8ca9d7018 | [
"MIT"
] | 6 | 2016-09-08T15:06:18.000Z | 2021-01-26T10:12:32.000Z | from tests.examples import request_examples
GECKO_NUMBER_STAT_CONFIG = {"text": "number_stat_text",
"widget_type": "number_stat",
"push_url": request_examples.DEST_URL}
GECKO_LINE_CHART_CONFIG = {"name": "line_chart_test",
"widget_type"... | 52.96 | 89 | 0.553625 | 138 | 1,324 | 4.833333 | 0.376812 | 0.134933 | 0.104948 | 0.164918 | 0.262369 | 0.262369 | 0.218891 | 0.116942 | 0 | 0 | 0 | 0.013274 | 0.317221 | 1,324 | 24 | 90 | 55.166667 | 0.724558 | 0 | 0 | 0.217391 | 0 | 0 | 0.30136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 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 |
34219d6298d9b0aa485f9ce624b49efbf03804ed | 12,638 | py | Python | markdown_generator/pubsFromBib.py | mczielinski/mczielinski.github.io | e8638cb543ca8a926fb7411467c70811ecbec630 | [
"MIT"
] | null | null | null | markdown_generator/pubsFromBib.py | mczielinski/mczielinski.github.io | e8638cb543ca8a926fb7411467c70811ecbec630 | [
"MIT"
] | null | null | null | markdown_generator/pubsFromBib.py | mczielinski/mczielinski.github.io | e8638cb543ca8a926fb7411467c70811ecbec630 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# # Publications markdown generator for academicpages
#
# Takes a set of bibtex of publications and converts them for use with [academicpages.github.io](academicpages.github.io). This is an interactive Jupyter notebook ([see more info here](http://jupyter-notebook-beginner-guide.... | 40.248408 | 273 | 0.649312 | 1,616 | 12,638 | 5.040842 | 0.377475 | 0.020624 | 0.02357 | 0.025043 | 0.233243 | 0.164498 | 0.134054 | 0.104591 | 0.064081 | 0.053523 | 0 | 0.033097 | 0.218231 | 12,638 | 313 | 274 | 40.376997 | 0.791397 | 0 | 0 | 0.193133 | 0 | 0.008584 | 0.064441 | 0.002047 | 0.004292 | 0 | 0 | 0.003195 | 0 | 0 | null | null | 0 | 0.030043 | null | null | 0.008584 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3422558500cfdaeb2550247549233d47384f19c3 | 976 | py | Python | socket_http_test.py | tor4z/python_test | 6b18110b4e82ad00a065b03d0ee8f7f331b2f874 | [
"Unlicense"
] | null | null | null | socket_http_test.py | tor4z/python_test | 6b18110b4e82ad00a065b03d0ee8f7f331b2f874 | [
"Unlicense"
] | null | null | null | socket_http_test.py | tor4z/python_test | 6b18110b4e82ad00a065b03d0ee8f7f331b2f874 | [
"Unlicense"
] | null | null | null | import socket
import datetime
import gzip
import io
HOST = 'www.163.com' # The remote host
PORT = 80 # The same port as used by the server
data = f"""
GET / HTTP/1.1\r\n\
Date: {datetime.datetime.utcnow().strftime("%a, %d %b %Y %H:%M:%S GMT")}\r\n\
Accept: text/html,application/xhtml+xml,application/xm... | 29.575758 | 95 | 0.643443 | 191 | 976 | 3.277487 | 0.539267 | 0.041534 | 0.014377 | 0.041534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064713 | 0.160861 | 976 | 32 | 96 | 30.5 | 0.699634 | 0.052254 | 0 | 0 | 0 | 0.129032 | 0.60846 | 0.238612 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.129032 | 0 | 0.129032 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3423927af81080f80f8342db608784e0834d6920 | 1,451 | py | Python | handlers/commands/registrasi.py | hexatester/ut-telegram-bot | 20f6f063726913cb6d21e42538103e3498b929a7 | [
"MIT"
] | 3 | 2020-09-15T23:10:32.000Z | 2021-01-23T18:17:34.000Z | handlers/commands/registrasi.py | hexatester/ut-telegram-bot | 20f6f063726913cb6d21e42538103e3498b929a7 | [
"MIT"
] | null | null | null | handlers/commands/registrasi.py | hexatester/ut-telegram-bot | 20f6f063726913cb6d21e42538103e3498b929a7 | [
"MIT"
] | 1 | 2020-08-26T16:02:03.000Z | 2020-08-26T16:02:03.000Z | from telegram import Update
from telegram.ext import CallbackContext
MESSAGE = """
Langkah langkah Registrasi Online Calon Mahasiswa UT
Form yang memiliki tanda * berwarna merah di kanan namanya wajib diisi!
A. Registrasi Akun Sia
1. Buka https://sia.ut.ac.id/register
2. Masukan Nama (Name), Alamat email (E-Mail Add... | 38.184211 | 165 | 0.7898 | 218 | 1,451 | 5.247706 | 0.591743 | 0.01049 | 0.015734 | 0.022727 | 0.090909 | 0.033217 | 0.033217 | 0 | 0 | 0 | 0 | 0.013788 | 0.150241 | 1,451 | 37 | 166 | 39.216216 | 0.914031 | 0 | 0 | 0 | 0 | 0.115385 | 0.864921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.038462 | 0.076923 | 0 | 0.115385 | 0 | 0 | 0 | 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 |
3425ad343a0ae9902a327c93b9a0082004c16cbc | 12,575 | py | Python | textgen/gpt2/generate.py | nedap/mdpi2021-textgen | dada2b111daaf83d028edfa35aeb0ec343c27a77 | [
"MIT"
] | null | null | null | textgen/gpt2/generate.py | nedap/mdpi2021-textgen | dada2b111daaf83d028edfa35aeb0ec343c27a77 | [
"MIT"
] | null | null | null | textgen/gpt2/generate.py | nedap/mdpi2021-textgen | dada2b111daaf83d028edfa35aeb0ec343c27a77 | [
"MIT"
] | null | null | null | # GENERATOR
# https://huggingface.co/blog/how-to-generate
# https://huggingface.co/transformers/main_classes/model.html?highlight=generate
import argparse
import re
import sys
from pathlib import Path
from tqdm import tqdm
from random import randrange
import torch
from fastai.text.all import CrossEntropyL... | 41.229508 | 115 | 0.595626 | 1,586 | 12,575 | 4.498739 | 0.186003 | 0.029012 | 0.022425 | 0.016819 | 0.525999 | 0.500771 | 0.464891 | 0.443308 | 0.416398 | 0.379397 | 0 | 0.00769 | 0.276103 | 12,575 | 304 | 116 | 41.365132 | 0.776118 | 0.134235 | 0 | 0.375587 | 1 | 0.004695 | 0.164401 | 0.010269 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037559 | false | 0 | 0.061033 | 0 | 0.122066 | 0.13615 | 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 |
3425c1e916e59b5211aa16a578fca6012ae312a0 | 832 | py | Python | theroot/__init__.py | Deviad/Adhesive | a7eb5140c4e5de783aca24ea935b3bf00a44f3e1 | [
"MIT"
] | null | null | null | theroot/__init__.py | Deviad/Adhesive | a7eb5140c4e5de783aca24ea935b3bf00a44f3e1 | [
"MIT"
] | null | null | null | theroot/__init__.py | Deviad/Adhesive | a7eb5140c4e5de783aca24ea935b3bf00a44f3e1 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_bcrypt import Bcrypt
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import create_engine
from sqlalchemy_utils import database_exists, create_database
from theroot.users_bundle.controllers import users_bundle
from flask_jwt_extended import JWTManager, jwt_required, create_acc... | 33.28 | 94 | 0.810096 | 118 | 832 | 5.457627 | 0.347458 | 0.055901 | 0.037267 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106971 | 832 | 24 | 95 | 34.666667 | 0.866756 | 0 | 0 | 0 | 0 | 0 | 0.149218 | 0.056558 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
342a08065f2fee6663c5c22d82b40873c17dda5c | 3,303 | py | Python | on-box-Python/config-diff-spark-tropo.py | maccioni/ios-xe-python | 6553a19eb1acca5bbde14a6e7cbe0af398339198 | [
"Apache-2.0"
] | 3 | 2018-02-15T01:16:55.000Z | 2020-03-07T11:54:45.000Z | on-box-Python/config-diff-spark-tropo.py | maccioni/ios-xe-python | 6553a19eb1acca5bbde14a6e7cbe0af398339198 | [
"Apache-2.0"
] | null | null | null | on-box-Python/config-diff-spark-tropo.py | maccioni/ios-xe-python | 6553a19eb1acca5bbde14a6e7cbe0af398339198 | [
"Apache-2.0"
] | null | null | null | import os
import sys
from cli import cli
import time
import difflib
import requests,json,time,datetime
#
# Info to be provided: Tropo Toke, Spark room ID and Spark Token
#
# Add Tropo Token
tropoapi='https://api.tropo.com/1.0/sessions?action=create&token=<tropo-token>'
# Add Spark Room ID
roomId=''
# Add Spark Token
a... | 31.160377 | 315 | 0.61762 | 452 | 3,303 | 4.471239 | 0.365044 | 0.027709 | 0.044532 | 0.021771 | 0.261752 | 0.191489 | 0.191489 | 0.125186 | 0.101435 | 0.101435 | 0 | 0.010231 | 0.201029 | 3,303 | 105 | 316 | 31.457143 | 0.755589 | 0.095065 | 0 | 0.128571 | 0 | 0.042857 | 0.322787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085714 | null | null | 0.042857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
34380226c4dc407d25f9e980f70f980979fc4748 | 1,958 | py | Python | hc/front/tests/test_my_failed_checks.py | andela/hc-millennium-falcon | c5f698977539341447e975372aa8650cf8db6b5a | [
"BSD-3-Clause"
] | 2 | 2018-07-21T10:09:09.000Z | 2018-12-11T08:18:03.000Z | hc/front/tests/test_my_failed_checks.py | andela/hc-millennium-falcon | c5f698977539341447e975372aa8650cf8db6b5a | [
"BSD-3-Clause"
] | 27 | 2018-04-21T08:44:38.000Z | 2021-09-07T23:53:05.000Z | hc/front/tests/test_my_failed_checks.py | andela/hc-millennium-falcon | c5f698977539341447e975372aa8650cf8db6b5a | [
"BSD-3-Clause"
] | 3 | 2018-09-03T11:39:17.000Z | 2020-03-03T06:09:40.000Z | from hc.api.models import Check
from hc.test import BaseTestCase
from datetime import timedelta as td
from django.utils import timezone
from hc.front.views import my_failed_checks
class MyFailedChecksTestCase(BaseTestCase):
def setUp(self):
super(MyFailedChecksTestCase, self).setUp()
self.check =... | 34.350877 | 76 | 0.672625 | 247 | 1,958 | 5.218623 | 0.271255 | 0.076804 | 0.037238 | 0.071373 | 0.59969 | 0.565555 | 0.565555 | 0.565555 | 0.565555 | 0.387122 | 0 | 0.004513 | 0.207865 | 1,958 | 56 | 77 | 34.964286 | 0.826564 | 0.105209 | 0 | 0.457143 | 0 | 0 | 0.129555 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 1 | 0.142857 | false | 0.114286 | 0.142857 | 0 | 0.314286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
343bd6b4a2b2bdc0c28f3c51a82ac673ca75926b | 2,308 | py | Python | baseLogger/ConsoleLogger.py | jonreding2010/PythonLogging | c931bf84d0f71bc7917ff57009c7139886acf77f | [
"MIT"
] | null | null | null | baseLogger/ConsoleLogger.py | jonreding2010/PythonLogging | c931bf84d0f71bc7917ff57009c7139886acf77f | [
"MIT"
] | null | null | null | baseLogger/ConsoleLogger.py | jonreding2010/PythonLogging | c931bf84d0f71bc7917ff57009c7139886acf77f | [
"MIT"
] | null | null | null | from baseLogger.Logger import Logger
from baseLogger.constants.MessageType import MessageType
from utilities.StringProcessor import StringProcessor
# Helper class for logging to the console.
class ConsoleLogger(Logger):
# Initializes a new instance of the ConsoleLogger class.
# @param level The logging level.... | 41.963636 | 100 | 0.695841 | 301 | 2,308 | 5.23588 | 0.249169 | 0.069797 | 0.045685 | 0.083756 | 0.487944 | 0.431472 | 0.385787 | 0.366751 | 0.279822 | 0.279822 | 0 | 0 | 0.239601 | 2,308 | 54 | 101 | 42.740741 | 0.898006 | 0.421577 | 0 | 0.083333 | 0 | 0 | 0.032037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.125 | 0 | 0.416667 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
343cdf22ae2aa610ab0bf9d4c44ed141990065e9 | 7,824 | py | Python | f2s/fsclient.py | Mirantis/f2s | 837e13f4efef4d367f1fe0650211d418b2820359 | [
"Apache-2.0"
] | 1 | 2016-03-01T20:04:15.000Z | 2016-03-01T20:04:15.000Z | f2s/fsclient.py | Mirantis/f2s | 837e13f4efef4d367f1fe0650211d418b2820359 | [
"Apache-2.0"
] | 6 | 2016-02-26T17:31:37.000Z | 2016-03-03T17:08:40.000Z | f2s/fsclient.py | Mirantis/f2s | 837e13f4efef4d367f1fe0650211d418b2820359 | [
"Apache-2.0"
] | 3 | 2016-02-26T11:08:18.000Z | 2016-03-01T13:26:07.000Z | #!/usr/bin/env python
# Copyright 2016 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | 30.208494 | 79 | 0.603911 | 1,034 | 7,824 | 4.461315 | 0.222437 | 0.016258 | 0.016909 | 0.017342 | 0.262953 | 0.195751 | 0.076089 | 0.056796 | 0.042489 | 0.022545 | 0 | 0.0053 | 0.252428 | 7,824 | 258 | 80 | 30.325581 | 0.783382 | 0.084995 | 0 | 0.216216 | 0 | 0 | 0.117997 | 0.004161 | 0 | 0 | 0 | 0.003876 | 0 | 0 | null | null | 0.005405 | 0.07027 | null | null | 0.005405 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
34406a9adf517e622c51ef8560bc92d757e2b318 | 305 | py | Python | vbb/careers/serializers.py | VillageBookBuilders/vbb-portal-packend | 9563b492aa93f12fdfed41a905ff185182e97dd8 | [
"MIT"
] | 1 | 2022-03-30T18:12:49.000Z | 2022-03-30T18:12:49.000Z | vbb/careers/serializers.py | VillageBookBuilders/vbb-portal-backend | decdec392f7bd585b73e5554b20c17baea5d133d | [
"MIT"
] | 22 | 2022-02-28T02:37:03.000Z | 2022-03-28T02:32:35.000Z | vbb/careers/serializers.py | VillageBookBuilders/vbb-portal-packend | 9563b492aa93f12fdfed41a905ff185182e97dd8 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from vbb.careers.models import Career
class CareerSerializer(serializers.ModelSerializer):
"""
Career Serializer
"""
class Meta:
model = Career
fields = [
"id",
"name",
"description",
]
| 16.944444 | 52 | 0.567213 | 25 | 305 | 6.88 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.347541 | 305 | 17 | 53 | 17.941176 | 0.864322 | 0.055738 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
344e4d93e4875520a884609a39bcb4bcedc9e197 | 1,183 | py | Python | main.py | kaiwork/fastevent | 7543adecaa872de845929c3010b6fe1ccdf4c4e4 | [
"MIT"
] | null | null | null | main.py | kaiwork/fastevent | 7543adecaa872de845929c3010b6fe1ccdf4c4e4 | [
"MIT"
] | 1 | 2021-08-07T12:11:43.000Z | 2021-08-07T12:11:43.000Z | main.py | kaiwork/fastevent | 7543adecaa872de845929c3010b6fe1ccdf4c4e4 | [
"MIT"
] | null | null | null | from fastapi import FastAPI, Depends
from fastapi_cloudauth.firebase import FirebaseCurrentUser, FirebaseClaims
from fastapi.middleware.cors import CORSMiddleware
import os
import pyAesCrypt
# get credential file
cwd = os.getcwd()
password = os.environ['fast_api_password']
encrypted_file_path = "{}/credentials/credent... | 25.170213 | 74 | 0.732883 | 146 | 1,183 | 5.753425 | 0.431507 | 0.078571 | 0.060714 | 0.071429 | 0.080952 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002037 | 0.169907 | 1,183 | 46 | 75 | 25.717391 | 0.85336 | 0.174134 | 0 | 0 | 0 | 0 | 0.177028 | 0.101159 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.074074 | 0.185185 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3455383c4666cd0da34da81a5f7a6b2e329b59d0 | 343 | py | Python | generator/generators/ping.py | ionut-arm/parsec-mock | 9bf0f4b24e046865d30513490ec20c4e94ef0a7f | [
"Apache-2.0"
] | 3 | 2021-03-19T17:25:00.000Z | 2021-03-24T23:38:28.000Z | generator/generators/ping.py | ionut-arm/parsec-mock | 9bf0f4b24e046865d30513490ec20c4e94ef0a7f | [
"Apache-2.0"
] | 4 | 2021-04-21T16:23:04.000Z | 2021-12-08T15:24:02.000Z | generator/generators/ping.py | ionut-arm/parsec-mock | 9bf0f4b24e046865d30513490ec20c4e94ef0a7f | [
"Apache-2.0"
] | 3 | 2021-03-23T20:41:48.000Z | 2022-03-25T10:19:37.000Z | # Copyright 2021 Contributors to the Parsec project.
# SPDX-License-Identifier: Apache-2.0
from .protobuf import ping_pb2
def gen():
op = ping_pb2.Operation()
result = ping_pb2.Result()
result.wire_protocol_version_maj = 1
result.wire_protocol_version_min = 0
return (op.SerializeToString(), resul... | 26.384615 | 63 | 0.74344 | 45 | 343 | 5.466667 | 0.688889 | 0.085366 | 0.146341 | 0.203252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038194 | 0.16035 | 343 | 12 | 64 | 28.583333 | 0.815972 | 0.250729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3460555fa0c6fb2fb8085d8f4d63bbf3e69b1dde | 1,176 | py | Python | ebay/tests.py | Ebay-droid/Django1 | 80f00a99a1b38852f3e968d02fcc765f452dada3 | [
"MIT"
] | null | null | null | ebay/tests.py | Ebay-droid/Django1 | 80f00a99a1b38852f3e968d02fcc765f452dada3 | [
"MIT"
] | null | null | null | ebay/tests.py | Ebay-droid/Django1 | 80f00a99a1b38852f3e968d02fcc765f452dada3 | [
"MIT"
] | null | null | null | from django.test import TestCase
from .models import Image,Category,Location
# Create your tests here.
class LocationTestClass(TestCase):
def setUp(self):
self.mara = Location(name = 'Maasai mara')
def test_instance(self):
self.assertTrue(isinstance(self.mara,Location))
def test_save_meth... | 28 | 134 | 0.682823 | 144 | 1,176 | 5.493056 | 0.298611 | 0.070796 | 0.060683 | 0.075853 | 0.409608 | 0.245259 | 0.245259 | 0.245259 | 0.126422 | 0.126422 | 0 | 0.002123 | 0.19898 | 1,176 | 42 | 135 | 28 | 0.83758 | 0.019558 | 0 | 0.464286 | 0 | 0 | 0.06684 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.25 | false | 0 | 0.071429 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
346cda8426694a8401ebef2cd8d7f5056e4708d3 | 459 | py | Python | automation/migrations/0024_auto_20190118_1553.py | jferron/extinfra_automation | 8fce20ec253949ff81704a7e57cd3c5d226b5d47 | [
"MIT"
] | null | null | null | automation/migrations/0024_auto_20190118_1553.py | jferron/extinfra_automation | 8fce20ec253949ff81704a7e57cd3c5d226b5d47 | [
"MIT"
] | null | null | null | automation/migrations/0024_auto_20190118_1553.py | jferron/extinfra_automation | 8fce20ec253949ff81704a7e57cd3c5d226b5d47 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.4 on 2019-01-18 15:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('automation', '0023_vulnerability_vulnerability_fb_name'),
]
operations = [
migrations.AlterField(
model_name='vulnerability',
... | 24.157895 | 79 | 0.64488 | 48 | 459 | 6.020833 | 0.791667 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063584 | 0.246187 | 459 | 18 | 80 | 25.5 | 0.771676 | 0.098039 | 0 | 0 | 1 | 0 | 0.220874 | 0.152913 | 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 |
346d7bff11ff573d35b9d963dccfcf3d81bac19c | 1,666 | py | Python | tests/test_losses.py | bendavidsteel/neuroptica | 542b6aef63ab05f369dac129d1d45578cd5a03b3 | [
"MIT"
] | 161 | 2019-03-14T17:51:05.000Z | 2022-03-20T02:37:18.000Z | tests/test_losses.py | Xoreus/neuroptica | 2ab6771ea3cfe94a62701078a83712d2a33409e3 | [
"MIT"
] | 2 | 2020-02-25T23:10:12.000Z | 2021-11-02T18:40:28.000Z | tests/test_losses.py | Xoreus/neuroptica | 2ab6771ea3cfe94a62701078a83712d2a33409e3 | [
"MIT"
] | 37 | 2019-03-15T02:12:06.000Z | 2022-02-16T22:55:00.000Z | import unittest
from neuroptica.layers import Activation, ClementsLayer
from neuroptica.losses import CategoricalCrossEntropy, MeanSquaredError
from neuroptica.models import Sequential
from neuroptica.nonlinearities import *
from neuroptica.optimizers import Optimizer
from tests.base import NeuropticaTest
from tests.t... | 32.038462 | 104 | 0.630252 | 203 | 1,666 | 4.995074 | 0.448276 | 0.069034 | 0.026627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008418 | 0.286915 | 1,666 | 51 | 105 | 32.666667 | 0.845118 | 0.135054 | 0 | 0 | 0 | 0 | 0.016073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0.064516 | 0.258065 | 0 | 0.322581 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
347339cad84c466e8148ca7e912dde38b66519be | 1,208 | py | Python | server/routes/api/browser.py | tjann/website | 0a4d41f157632324437305ba66b4f0ee8e54df00 | [
"Apache-2.0"
] | null | null | null | server/routes/api/browser.py | tjann/website | 0a4d41f157632324437305ba66b4f0ee8e54df00 | [
"Apache-2.0"
] | null | null | null | server/routes/api/browser.py | tjann/website | 0a4d41f157632324437305ba66b4f0ee8e54df00 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 33.555556 | 74 | 0.73096 | 186 | 1,208 | 4.693548 | 0.553763 | 0.068729 | 0.029782 | 0.036655 | 0.245132 | 0.245132 | 0.245132 | 0.245132 | 0.245132 | 0.245132 | 0 | 0.019608 | 0.155629 | 1,208 | 36 | 75 | 33.555556 | 0.836275 | 0.583609 | 0 | 0.153846 | 0 | 0 | 0.130802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.615385 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
34822aac4645af1f3f750648a1e10808f1257cc6 | 567 | py | Python | backend/app/models/note.py | wedwardbeck/lrnfast | fdb5d04a4141e696dd9d6b9fa3f55341644c3778 | [
"MIT"
] | 12 | 2020-05-13T05:48:41.000Z | 2021-04-28T06:29:58.000Z | backend/app/models/note.py | wedwardbeck/lrnfast | fdb5d04a4141e696dd9d6b9fa3f55341644c3778 | [
"MIT"
] | 17 | 2020-05-11T23:46:56.000Z | 2021-12-31T19:20:31.000Z | backend/app/models/note.py | wedwardbeck/lrnfast | fdb5d04a4141e696dd9d6b9fa3f55341644c3778 | [
"MIT"
] | 3 | 2020-05-19T08:26:18.000Z | 2020-09-04T07:39:13.000Z | import datetime
from sqlalchemy import Column, ForeignKey, Integer, String, DateTime, func
from app.db.base_class import Base
class Note(Base):
id = Column(Integer, primary_key=True, index=True)
title = Column(String(50), index=True)
description = Column(String(50), index=True)
created_da... | 35.4375 | 79 | 0.717813 | 73 | 567 | 5.479452 | 0.465753 | 0.0975 | 0.075 | 0.095 | 0.26 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008457 | 0.165785 | 567 | 15 | 80 | 37.8 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0.025362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 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 |
caa9a82b511710bf3401ce2c243787000d2f545c | 1,081 | py | Python | WaveletDenoising.py | amjadnzr/EDSR-PyTorch | ae654afb5d0fe1cf1c2ab8bb98d70bcec1fdcb73 | [
"MIT"
] | null | null | null | WaveletDenoising.py | amjadnzr/EDSR-PyTorch | ae654afb5d0fe1cf1c2ab8bb98d70bcec1fdcb73 | [
"MIT"
] | null | null | null | WaveletDenoising.py | amjadnzr/EDSR-PyTorch | ae654afb5d0fe1cf1c2ab8bb98d70bcec1fdcb73 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Nov 6 09:09:48 2018
@author: aamir
"""
import matplotlib.pyplot as plt
from skimage.restoration import (denoise_wavelet, estimate_sigma)
from skimage import data, img_as_float
from skimage.util import random_noise
from skimage.measure import compare_p... | 28.447368 | 88 | 0.715079 | 166 | 1,081 | 4.53012 | 0.590361 | 0.058511 | 0.053191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044297 | 0.164662 | 1,081 | 37 | 89 | 29.216216 | 0.788483 | 0.20259 | 0 | 0 | 0 | 0 | 0.060427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cac0308acc55ae5cde180b98fa281bbdb01cc57c | 17,494 | py | Python | reptile/PaC/JD/JD Exercise.py | mythkiven/python | f9284b6dc9ca8c0b90fc8ff838327bafe6410257 | [
"MIT"
] | 10 | 2018-02-26T07:39:46.000Z | 2021-03-14T11:49:26.000Z | reptile/PaC/JD/JD Exercise.py | mythkiven/python | f9284b6dc9ca8c0b90fc8ff838327bafe6410257 | [
"MIT"
] | null | null | null | reptile/PaC/JD/JD Exercise.py | mythkiven/python | f9284b6dc9ca8c0b90fc8ff838327bafe6410257 | [
"MIT"
] | 2 | 2019-05-31T01:28:00.000Z | 2019-05-31T01:43:04.000Z | # encoding:utf-8
# 导入模块:
import sys
import requests #网络模块
import os #系统模块
import time # 日期模块
import json # json 解析
import random #随机数模块
import bs4 # 解析网页
import pickle
import scrapy
# 注意,cookielib 归入http.cookiejar中
# try:
# from http.cookiejar import MozillaCookieJar
# except ImportError:
# from cookieli... | 32.516729 | 144 | 0.495484 | 1,972 | 17,494 | 4.324037 | 0.271805 | 0.022165 | 0.015246 | 0.018295 | 0.416794 | 0.36015 | 0.332004 | 0.28357 | 0.257769 | 0.228568 | 0 | 0.021191 | 0.358008 | 17,494 | 537 | 145 | 32.577281 | 0.738046 | 0.107751 | 0 | 0.421212 | 0 | 0.015152 | 0.177083 | 0.024123 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015152 | 0.027273 | null | null | 0.109091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cac1dd570ad777e317ba1fb765a552461029b7b5 | 760 | py | Python | submissions/abc064/c.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | 1 | 2021-05-10T01:16:28.000Z | 2021-05-10T01:16:28.000Z | submissions/abc064/c.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | 3 | 2021-05-11T06:14:15.000Z | 2021-06-19T08:18:36.000Z | submissions/abc064/c.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | null | null | null | import sys
input = sys.stdin.readline
n = int(input())
a = list(map(int, input().split()))
cnt = 0
rate_cnt = [0]*8
for i in range(n):
if a[i] >= 3200:
cnt += 1
elif a[i] >= 2800:
rate_cnt[7] += 1
elif a[i] >= 2400:
rate_cnt[6] += 1
elif a[i] >= 2000:
rate_cnt[5] += 1
... | 20 | 35 | 0.503947 | 134 | 760 | 2.716418 | 0.335821 | 0.269231 | 0.115385 | 0.134615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107843 | 0.328947 | 760 | 37 | 36 | 20.540541 | 0.605882 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.027778 | 0.027778 | 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 |
cac2104c0969c042633f27cf385e2460113b1929 | 2,973 | py | Python | incantation/Component/Badges.py | thautwarm/Incantation | c26796fcd99642f1340c2350ac13da9ca5d3433f | [
"MIT"
] | 13 | 2017-09-24T16:33:30.000Z | 2020-04-11T12:54:59.000Z | incantation/Component/Badges.py | thautwarm/Incantation | c26796fcd99642f1340c2350ac13da9ca5d3433f | [
"MIT"
] | null | null | null | incantation/Component/Badges.py | thautwarm/Incantation | c26796fcd99642f1340c2350ac13da9ca5d3433f | [
"MIT"
] | 7 | 2017-10-30T05:05:19.000Z | 2020-09-22T02:03:13.000Z | from ..abst import Tag, Attribute, ITraitsAttribute, ITraitsTag, traits_class
from ..utils import default_initializer, doc_printer, ArgumentError
import linq
class Badge(Tag):
@default_initializer
def __init__(self, *components, new=False):
if new:
Tag.__init__(self, 'span', Attribute('cla... | 28.586538 | 111 | 0.60444 | 298 | 2,973 | 5.788591 | 0.275168 | 0.06029 | 0.073043 | 0.086957 | 0.329855 | 0.295072 | 0.272464 | 0.184348 | 0.122899 | 0.122899 | 0 | 0.002264 | 0.257316 | 2,973 | 103 | 112 | 28.864078 | 0.778986 | 0.156408 | 0 | 0.258621 | 0 | 0 | 0.122638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155172 | false | 0.051724 | 0.051724 | 0 | 0.396552 | 0.051724 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cac37d691071b972f0824203a94de97974fce276 | 602 | py | Python | tests/test_coin.py | Radamoviches/bitcart-sdk | 13884d6407dee32b51c434a8854dad086a67c656 | [
"MIT"
] | null | null | null | tests/test_coin.py | Radamoviches/bitcart-sdk | 13884d6407dee32b51c434a8854dad086a67c656 | [
"MIT"
] | null | null | null | tests/test_coin.py | Radamoviches/bitcart-sdk | 13884d6407dee32b51c434a8854dad086a67c656 | [
"MIT"
] | null | null | null | """Test that Coin class methods are abstract, and test module loading
coin fixture is the abstract coin class tested
"""
import pytest
pytestmark = pytest.mark.asyncio
async def test_help(coin):
with pytest.raises(NotImplementedError):
await coin.help()
async def test_get_tx(coin):
with pytest.raise... | 25.083333 | 69 | 0.719269 | 77 | 602 | 5.519481 | 0.38961 | 0.075294 | 0.112941 | 0.188235 | 0.465882 | 0.465882 | 0.465882 | 0.24 | 0 | 0 | 0 | 0 | 0.19103 | 602 | 24 | 70 | 25.083333 | 0.87269 | 0.187708 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 |
cac40c4e36a9a03e434e4bf4108bee3e1bac6d1c | 1,188 | py | Python | AutoBiller/__main__.py | JYudelson1/AutoBiller | bc1333a7a031d1f4e182edd25e52e1e4642f98aa | [
"MIT"
] | 1 | 2021-01-31T22:49:00.000Z | 2021-01-31T22:49:00.000Z | AutoBiller/__main__.py | JYudelson1/AutoBiller | bc1333a7a031d1f4e182edd25e52e1e4642f98aa | [
"MIT"
] | null | null | null | AutoBiller/__main__.py | JYudelson1/AutoBiller | bc1333a7a031d1f4e182edd25e52e1e4642f98aa | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from uiComponents import *
from clientLogic import *
from calendarLogic import *
from utils import *
# TODO: change to AutoBiller.* for distribution
def main():
autobiller = QApplication([])
# Give the app a color palette
palette = QPalette()
palette.setColor(QPalette.Window,... | 29.7 | 98 | 0.689394 | 142 | 1,188 | 5.549296 | 0.521127 | 0.102792 | 0.058376 | 0.063452 | 0.086294 | 0.086294 | 0.086294 | 0.086294 | 0.086294 | 0 | 0 | 0.029683 | 0.177609 | 1,188 | 39 | 99 | 30.461538 | 0.776868 | 0.37037 | 0 | 0 | 0 | 0 | 0.029851 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.05 | false | 0 | 0.2 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cac4cd867eab791167c464acc30fff8b5f9408c2 | 3,432 | py | Python | loops.py | rdsummersSr1/python3 | 64b4d31a329562cdd275e5bc94c2bf96d0ac0c55 | [
"MIT"
] | null | null | null | loops.py | rdsummersSr1/python3 | 64b4d31a329562cdd275e5bc94c2bf96d0ac0c55 | [
"MIT"
] | null | null | null | loops.py | rdsummersSr1/python3 | 64b4d31a329562cdd275e5bc94c2bf96d0ac0c55 | [
"MIT"
] | null | null | null | def round_scores(student_scores):
"""
:param student_scores: list of student exam scores as float or int.
:return: list of student scores *rounded* to nearest integer value.
"""
u_student_scores = []
for score in student_scores:
u_student_scores.append(round(score))
return u... | 28.840336 | 88 | 0.566434 | 444 | 3,432 | 4.277027 | 0.272523 | 0.136914 | 0.037915 | 0.04634 | 0.137441 | 0.090574 | 0.070563 | 0 | 0 | 0 | 0 | 0.080569 | 0.323718 | 3,432 | 119 | 89 | 28.840336 | 0.737182 | 0.047786 | 0 | 0.053571 | 0 | 0 | 0.019954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cace61c59b514381f2f5a3b21cbe12ed271f82f7 | 3,021 | py | Python | src/sentinel/azext_sentinel/vendored_sdks/security_insights/models/entity_query_py3.py | hpsan/azure-cli-extensions | be1589bb6dd23837796e088d28e65e873050171e | [
"MIT"
] | null | null | null | src/sentinel/azext_sentinel/vendored_sdks/security_insights/models/entity_query_py3.py | hpsan/azure-cli-extensions | be1589bb6dd23837796e088d28e65e873050171e | [
"MIT"
] | null | null | null | src/sentinel/azext_sentinel/vendored_sdks/security_insights/models/entity_query_py3.py | hpsan/azure-cli-extensions | be1589bb6dd23837796e088d28e65e873050171e | [
"MIT"
] | 1 | 2020-07-16T23:49:49.000Z | 2020-07-16T23:49:49.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | 41.958333 | 182 | 0.629924 | 349 | 3,021 | 5.280802 | 0.329513 | 0.04178 | 0.048833 | 0.018448 | 0.080304 | 0.080304 | 0.034726 | 0.034726 | 0 | 0 | 0 | 0.000827 | 0.199272 | 3,021 | 71 | 183 | 42.549296 | 0.761058 | 0.503807 | 0 | 0 | 1 | 0 | 0.277981 | 0.10534 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.038462 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cad65a035fe452be26f06a86e507eadf92ce4464 | 186 | py | Python | src/test/restart_finish.py | yuyichao/rr | 18f2ae57eee76e50c216066ad9163a90d0dfddb5 | [
"BSD-1-Clause"
] | 2 | 2020-10-29T02:10:54.000Z | 2021-06-20T00:00:26.000Z | src/test/restart_finish.py | yuyichao/rr | 18f2ae57eee76e50c216066ad9163a90d0dfddb5 | [
"BSD-1-Clause"
] | 4 | 2018-07-14T23:44:05.000Z | 2018-11-28T00:04:30.000Z | src/test/restart_finish.py | yuyichao/rr | 18f2ae57eee76e50c216066ad9163a90d0dfddb5 | [
"BSD-1-Clause"
] | 6 | 2018-06-07T02:28:36.000Z | 2019-09-02T07:36:30.000Z | from rrutil import *
import re
restart_replay()
send_gdb('c')
# A stop fires when we hit an exec
expect_rr([ re.compile(r'exited normally'),
re.compile(r'stopped') ])
ok()
| 16.909091 | 43 | 0.666667 | 30 | 186 | 4.033333 | 0.833333 | 0.14876 | 0.165289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198925 | 186 | 10 | 44 | 18.6 | 0.812081 | 0.172043 | 0 | 0 | 0 | 0 | 0.151316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cae4410ad20b2a1fba6d1115982066ea36357384 | 4,835 | py | Python | pysnmp/ELTEX-ULD-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/ELTEX-ULD-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/ELTEX-ULD-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module ELTEX-ULD-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ELTEX-ULD-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:48:10 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | 120.875 | 511 | 0.768149 | 525 | 4,835 | 7.070476 | 0.266667 | 0.008621 | 0.009698 | 0.012931 | 0.391972 | 0.271282 | 0.271282 | 0.253502 | 0.25 | 0.231681 | 0 | 0.068919 | 0.075698 | 4,835 | 39 | 512 | 123.974359 | 0.761692 | 0.066184 | 0 | 0 | 0 | 0 | 0.181092 | 0.009765 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cae6f2a2501d395fa4bf226208d08e783b230af9 | 4,371 | py | Python | multiaug/augmenters/image3d/rotate.py | Devin-Taylor/MultiAug | eca83192a54ffe3362bf90c4181bac1a68481ee5 | [
"MIT"
] | 17 | 2019-05-08T14:52:32.000Z | 2022-03-30T01:36:26.000Z | multiaug/augmenters/image3d/rotate.py | Devin-Taylor/MultiAug | eca83192a54ffe3362bf90c4181bac1a68481ee5 | [
"MIT"
] | null | null | null | multiaug/augmenters/image3d/rotate.py | Devin-Taylor/MultiAug | eca83192a54ffe3362bf90c4181bac1a68481ee5 | [
"MIT"
] | null | null | null | from typing import Union, Tuple
import multiaug
import numpy as np
import scipy.ndimage
from multiaug.augmenters import meta
def _generate_bool_sequence(num: int, random_state: int) -> list:
return [random_state.choice([True, False], 1)[0] for _ in range(num)]
def _merge_bool_sequences(proposed: list, mask: lis... | 35.827869 | 139 | 0.623656 | 582 | 4,371 | 4.539519 | 0.266323 | 0.037472 | 0.01514 | 0.013626 | 0.223694 | 0.209311 | 0.174111 | 0.174111 | 0.174111 | 0.174111 | 0 | 0.008844 | 0.275681 | 4,371 | 121 | 140 | 36.123967 | 0.825648 | 0.258065 | 0 | 0.08 | 1 | 0 | 0.100202 | 0 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.12 | false | 0 | 0.1 | 0.04 | 0.32 | 0 | 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 |
caea78f8c5efc92eb072e2f87ac8ae6c0ef139cb | 1,298 | py | Python | guild/remote_run_support.py | wheatdog/guildai | 817cf179d0b6910d3d4fca522045a8139aef6c9e | [
"Apache-2.0"
] | null | null | null | guild/remote_run_support.py | wheatdog/guildai | 817cf179d0b6910d3d4fca522045a8139aef6c9e | [
"Apache-2.0"
] | null | null | null | guild/remote_run_support.py | wheatdog/guildai | 817cf179d0b6910d3d4fca522045a8139aef6c9e | [
"Apache-2.0"
] | null | null | null | # Copyright 2017-2020 TensorHub, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 27.041667 | 74 | 0.694145 | 189 | 1,298 | 4.592593 | 0.529101 | 0.069124 | 0.0553 | 0.044931 | 0.036866 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016699 | 0.215716 | 1,298 | 47 | 75 | 27.617021 | 0.835953 | 0.42604 | 0 | 0.16 | 0 | 0 | 0.017784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.08 | 0 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
caed6ae1f7c40f6889b6aaf15fe38deb3a298ffb | 1,567 | py | Python | envs/reward_normalization_wrapper.py | wulfebw/neurips2020-procgen | e131684cfa15188473873144933fc73bd54a2e60 | [
"Apache-2.0"
] | null | null | null | envs/reward_normalization_wrapper.py | wulfebw/neurips2020-procgen | e131684cfa15188473873144933fc73bd54a2e60 | [
"Apache-2.0"
] | null | null | null | envs/reward_normalization_wrapper.py | wulfebw/neurips2020-procgen | e131684cfa15188473873144933fc73bd54a2e60 | [
"Apache-2.0"
] | null | null | null | """Took all this from https://github.com/MadryLab/implementation-matters"""
import gym
import numpy as np
class RunningStat:
def __init__(self):
self.n = 0
self.m = 0
self.s = 0
def add(self, v):
self.n += 1
if self.n == 1:
self.m = v
else:
... | 23.742424 | 100 | 0.568602 | 211 | 1,567 | 4.090047 | 0.308057 | 0.052144 | 0.02781 | 0.01854 | 0.050985 | 0.032445 | 0.032445 | 0 | 0 | 0 | 0 | 0.010082 | 0.303765 | 1,567 | 65 | 101 | 24.107692 | 0.780935 | 0.044033 | 0 | 0.104167 | 0 | 0.020833 | 0.061662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.041667 | 0.083333 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
caf4b8b82de5dd61cb2b4c91d39500530dd03c4e | 626 | py | Python | CodeWars/ones_and _zeros.py | lgolinski/ctf_codewars_etc | c1229102968e0fa132075d0bc7fc74c4e91477f7 | [
"MIT"
] | null | null | null | CodeWars/ones_and _zeros.py | lgolinski/ctf_codewars_etc | c1229102968e0fa132075d0bc7fc74c4e91477f7 | [
"MIT"
] | null | null | null | CodeWars/ones_and _zeros.py | lgolinski/ctf_codewars_etc | c1229102968e0fa132075d0bc7fc74c4e91477f7 | [
"MIT"
] | null | null | null | # https://www.codewars.com/kata/578553c3a1b8d5c40300037c/python
# Given an array of ones and zeroes, convert the equivalent binary value to an integer.
# Eg: [0, 0, 0, 1] is treated as 0001 which is the binary representation of 1.
# Examples:
# Testing: [0, 0, 0, 1] ==> 1
# Testing: [0, 0, 1, 0] ==> 2
# Testing: [0, ... | 29.809524 | 87 | 0.602236 | 112 | 626 | 3.3125 | 0.419643 | 0.053908 | 0.048518 | 0.032345 | 0.113208 | 0.113208 | 0.113208 | 0.113208 | 0.113208 | 0 | 0 | 0.14881 | 0.194888 | 626 | 21 | 88 | 29.809524 | 0.587302 | 0.734824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
caf9592dea2ee8d5cef04a6f7af9fec689318fa7 | 7,846 | py | Python | baidu_nba.py | xingangzhang/PythonTest | 998befde88aeb59d36ee6e9cbd2d1f6b1eda5252 | [
"Apache-2.0"
] | null | null | null | baidu_nba.py | xingangzhang/PythonTest | 998befde88aeb59d36ee6e9cbd2d1f6b1eda5252 | [
"Apache-2.0"
] | null | null | null | baidu_nba.py | xingangzhang/PythonTest | 998befde88aeb59d36ee6e9cbd2d1f6b1eda5252 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*-coding:utf-8-*-
"""
@author: smartgang
@contact: zhangxingang92@qq.com
@file: baidu_nba.py
@time: 2017/12/1 18:18
"""
# !/usr/bin/python
# -*-coding:utf-8-*-
"""
@author: smartgang
@contact: zhangxingang92@qq.com
@file: qs_crawl.py
@time: 2017/11/30 17:29
"""
import urllib
import urllib2
import... | 33.387234 | 154 | 0.552893 | 951 | 7,846 | 4.519453 | 0.267087 | 0.023034 | 0.006515 | 0.011401 | 0.337134 | 0.268962 | 0.237785 | 0.224756 | 0.218241 | 0.218241 | 0 | 0.025195 | 0.281672 | 7,846 | 234 | 155 | 33.529915 | 0.737402 | 0.186847 | 0 | 0.22449 | 0 | 0.006803 | 0.141202 | 0.059096 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.07483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cafc6d7a7724087e103052961850d7d1176f1bd5 | 1,290 | py | Python | UCourse/programs/migrations/0015_studentprogram.py | Natsu1270/UCourse | e8c814d91e54f5f51e4a0fa2df177ebb59544dc2 | [
"MIT"
] | 1 | 2020-08-31T22:40:27.000Z | 2020-08-31T22:40:27.000Z | UCourse/programs/migrations/0015_studentprogram.py | Natsu1270/UCourse | e8c814d91e54f5f51e4a0fa2df177ebb59544dc2 | [
"MIT"
] | 13 | 2020-08-05T16:17:09.000Z | 2022-03-12T00:18:42.000Z | UCourse/programs/migrations/0015_studentprogram.py | Natsu1270/UCourse | e8c814d91e54f5f51e4a0fa2df177ebb59544dc2 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-08-30 11:37
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | 43 | 121 | 0.66124 | 146 | 1,290 | 5.719178 | 0.493151 | 0.038323 | 0.076647 | 0.079042 | 0.287425 | 0.287425 | 0.287425 | 0.287425 | 0.287425 | 0.287425 | 0 | 0.03229 | 0.207752 | 1,290 | 29 | 122 | 44.482759 | 0.784736 | 0.034884 | 0 | 0 | 1 | 0 | 0.111826 | 0.018504 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.173913 | 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 |
cafc9e1fcc9e5cd6637f6ac59516049c09512824 | 1,569 | py | Python | src/setup.py | jkpubsrc/python-module-jk-invoke | afb6076203ec1de9ecd3fe7aeee0bd32686abb68 | [
"Apache-1.1"
] | null | null | null | src/setup.py | jkpubsrc/python-module-jk-invoke | afb6076203ec1de9ecd3fe7aeee0bd32686abb68 | [
"Apache-1.1"
] | null | null | null | src/setup.py | jkpubsrc/python-module-jk-invoke | afb6076203ec1de9ecd3fe7aeee0bd32686abb68 | [
"Apache-1.1"
] | null | null | null | ################################################################################
################################################################################
###
### This file is automatically generated. Do not change this file! Changes
### will get overwritten! Change the source file for "setup.py" instead.
### ... | 34.866667 | 254 | 0.561504 | 175 | 1,569 | 4.96 | 0.702857 | 0.036866 | 0.032258 | 0.039171 | 0.103687 | 0.103687 | 0.103687 | 0.103687 | 0.103687 | 0 | 0 | 0.013158 | 0.128107 | 1,569 | 44 | 255 | 35.659091 | 0.621345 | 0.126195 | 0 | 0.129032 | 0 | 0.064516 | 0.540619 | 0.024178 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | true | 0 | 0.032258 | 0 | 0.096774 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1b091a761a88711865a2f779786a409acb0535fb | 2,498 | py | Python | config.py | ishine/ML-CTL | e6342ed0b054552c483c132b8832789f78860100 | [
"Apache-2.0"
] | null | null | null | config.py | ishine/ML-CTL | e6342ed0b054552c483c132b8832789f78860100 | [
"Apache-2.0"
] | null | null | null | config.py | ishine/ML-CTL | e6342ed0b054552c483c132b8832789f78860100 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: bdchen
"""
import argparse
argparser = argparse.ArgumentParser(description=("Run bert for single sentence."))
argparser.add_argument("--total_train_examples", type=int, default=1000000,
help="Number of total trainset.")
argparser.add_argument("--warmup_pr... | 48.038462 | 153 | 0.642514 | 313 | 2,498 | 4.974441 | 0.392971 | 0.131021 | 0.218369 | 0.054592 | 0.089274 | 0.028259 | 0 | 0 | 0 | 0 | 0 | 0.020072 | 0.222178 | 2,498 | 51 | 154 | 48.980392 | 0.781266 | 0.018014 | 0 | 0.055556 | 0 | 0.027778 | 0.385182 | 0.028653 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.027778 | 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 |
1b0f90e09f7828fcdf71df4bc2d819aefcd25e39 | 1,688 | py | Python | HillshadeComparison.py | simon-m-mudd/LSDMappingTools | d9137710ea18e54f3dc5b6782c5696cafdd2999f | [
"MIT"
] | 34 | 2017-01-31T17:03:26.000Z | 2021-09-15T17:23:21.000Z | HillshadeComparison.py | simon-m-mudd/LSDMappingTools | d9137710ea18e54f3dc5b6782c5696cafdd2999f | [
"MIT"
] | 14 | 2017-01-11T19:45:08.000Z | 2020-11-03T16:36:38.000Z | HillshadeComparison.py | LSDtopotools/LSDMappingTools | d9137710ea18e54f3dc5b6782c5696cafdd2999f | [
"MIT"
] | 21 | 2015-11-26T10:24:19.000Z | 2021-09-15T17:23:22.000Z | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 31 11:47:22 2017
An example of using the cython version of the hillshade
algorithm from LSDTopoTools/LSDRaster, compared to the pure python
module in LSDMappingTools.
(This test version dos on-the-fly-compilation to C and then a C-lib
but you could bundle a compiled c-ob... | 33.098039 | 83 | 0.768365 | 235 | 1,688 | 5.459574 | 0.595745 | 0.024942 | 0.012471 | 0.029618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013605 | 0.129147 | 1,688 | 50 | 84 | 33.76 | 0.859184 | 0.530806 | 0 | 0 | 0 | 0 | 0.072503 | 0.050616 | 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 |
1b1070c1f67abf2b60432d2053a925b0c92a312f | 2,357 | py | Python | model-optimizer/mo/front/common/partial_infer/space_to_batch.py | mypopydev/dldt | 8cd639116b261adbbc8db860c09807c3be2cc2ca | [
"Apache-2.0"
] | 3 | 2019-07-08T09:03:03.000Z | 2020-09-09T10:34:17.000Z | model-optimizer/mo/front/common/partial_infer/space_to_batch.py | openvino-pushbot/dldt | e607ee70212797cf9ca51dac5b7ac79f66a1c73f | [
"Apache-2.0"
] | 3 | 2020-11-13T18:59:18.000Z | 2022-02-10T02:14:53.000Z | model-optimizer/mo/front/common/partial_infer/space_to_batch.py | openvino-pushbot/dldt | e607ee70212797cf9ca51dac5b7ac79f66a1c73f | [
"Apache-2.0"
] | 1 | 2018-12-14T07:56:02.000Z | 2018-12-14T07:56:02.000Z | """
Copyright (c) 2018 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | 30.61039 | 103 | 0.657616 | 386 | 2,357 | 3.875648 | 0.266839 | 0.080214 | 0.066845 | 0.029412 | 0.526738 | 0.475936 | 0.475936 | 0.475936 | 0.475936 | 0.434492 | 0 | 0.030091 | 0.210437 | 2,357 | 76 | 104 | 31.013158 | 0.773778 | 0.31608 | 0 | 0.540541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.054054 | false | 0 | 0.027027 | 0 | 0.297297 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1b10b71264e4544c6b458e7f0330dd1e438720ed | 1,146 | py | Python | webapp/news/migrations/0007_auto_20211117_2357.py | usegalaxy-au/galaxy-media-site | 3ec13e0f42591d2543768f252be037784933e271 | [
"MIT"
] | null | null | null | webapp/news/migrations/0007_auto_20211117_2357.py | usegalaxy-au/galaxy-media-site | 3ec13e0f42591d2543768f252be037784933e271 | [
"MIT"
] | 36 | 2021-11-14T21:34:22.000Z | 2022-03-24T22:46:42.000Z | webapp/news/migrations/0007_auto_20211117_2357.py | neoformit/galaxy-content-site | a6eeaf1893c12dd4d7d714fb823f43509a0a3893 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-11-17 23:57
from django.db import migrations, models
import django.db.models.deletion
import news.models
class Migration(migrations.Migration):
dependencies = [
('events', '0011_auto_20211117_2214'),
('news', '0006_auto_20211117_2219'),
]
operations = [... | 32.742857 | 128 | 0.602967 | 121 | 1,146 | 5.570248 | 0.553719 | 0.035608 | 0.041543 | 0.065282 | 0.21365 | 0.109792 | 0 | 0 | 0 | 0 | 0 | 0.054502 | 0.263525 | 1,146 | 34 | 129 | 33.705882 | 0.744076 | 0.037522 | 0 | 0.25 | 1 | 0 | 0.142598 | 0.04178 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.214286 | 0 | 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 |
1b2705bd6e49e0eaa701e8c4d922aa6dc630fcd4 | 61,611 | py | Python | neural_network_lyapunov/continuous_time_lyapunov.py | StanfordASL/neural-network-lyapunov | 9e5db1c7f91b42df729026c9aa8575bc126f66b6 | [
"MIT"
] | 58 | 2021-06-21T08:59:52.000Z | 2022-03-31T14:35:23.000Z | neural_network_lyapunov/continuous_time_lyapunov.py | StanfordASL/neural-network-lyapunov | 9e5db1c7f91b42df729026c9aa8575bc126f66b6 | [
"MIT"
] | 8 | 2021-08-22T05:31:23.000Z | 2022-03-29T03:47:07.000Z | neural_network_lyapunov/continuous_time_lyapunov.py | StanfordASL/neural-network-lyapunov | 9e5db1c7f91b42df729026c9aa8575bc126f66b6 | [
"MIT"
] | 11 | 2021-06-21T04:29:59.000Z | 2022-03-30T05:54:43.000Z | # -*- coding: utf-8 -*-
import gurobipy
import torch
import numpy as np
import queue
import collections
import neural_network_lyapunov.relu_to_optimization as relu_to_optimization
import neural_network_lyapunov.gurobi_torch_mip as gurobi_torch_mip
import neural_network_lyapunov.utils as utils
import neural_network_ly... | 48.74288 | 79 | 0.551622 | 7,838 | 61,611 | 4.152462 | 0.061495 | 0.040249 | 0.018589 | 0.023658 | 0.743386 | 0.704397 | 0.658371 | 0.624727 | 0.605217 | 0.581651 | 0 | 0.006672 | 0.355342 | 61,611 | 1,263 | 80 | 48.781473 | 0.8085 | 0.262713 | 0 | 0.580606 | 0 | 0 | 0.015717 | 0.003426 | 0 | 0 | 0 | 0.002375 | 0.115152 | 1 | 0.02303 | false | 0 | 0.012121 | 0 | 0.061818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1b286a9edbce326c6cf76a33fda504705239a80e | 2,431 | py | Python | OSINT-Reconnaissance/operative-framework/core/modules/linkedin_search.py | FOGSEC/TID3xploits | b57d8bae454081a3883a5684679e2a329e72d6e5 | [
"MIT"
] | 5 | 2018-01-15T13:58:40.000Z | 2022-02-17T02:38:58.000Z | OSINT-Reconnaissance/operative-framework/core/modules/linkedin_search.py | bhattsameer/TID3xploits | b57d8bae454081a3883a5684679e2a329e72d6e5 | [
"MIT"
] | null | null | null | OSINT-Reconnaissance/operative-framework/core/modules/linkedin_search.py | bhattsameer/TID3xploits | b57d8bae454081a3883a5684679e2a329e72d6e5 | [
"MIT"
] | 4 | 2019-06-21T07:51:11.000Z | 2020-11-04T05:20:09.000Z | #!/usr/bin/env python
#description:Linkedin employee search module#
from colorama import Fore,Back,Style
from bs4 import BeautifulSoup
from core import load
import os,sys
import requests
class module_element(object):
def __init__(self):
self.title = "Linkedin gathering : \n"
self.require = {"enterprise":[{"val... | 32.851351 | 110 | 0.685315 | 329 | 2,431 | 4.957447 | 0.346505 | 0.042918 | 0.047823 | 0.024525 | 0.101165 | 0.101165 | 0.101165 | 0.04905 | 0 | 0 | 0 | 0.004407 | 0.160016 | 2,431 | 73 | 111 | 33.30137 | 0.794319 | 0.025915 | 0 | 0.050847 | 0 | 0 | 0.167019 | 0.016068 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084746 | null | null | 0.084746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1b293f9eaa088cf3bfd7dd113106f65aa1825f48 | 949 | py | Python | pathology/migrations/0009_auto_20211130_1642.py | yangshuxuan/liver_puncture_backend | 8ba54ef89adee74646127e2c35c1931a763c1be6 | [
"MIT"
] | null | null | null | pathology/migrations/0009_auto_20211130_1642.py | yangshuxuan/liver_puncture_backend | 8ba54ef89adee74646127e2c35c1931a763c1be6 | [
"MIT"
] | null | null | null | pathology/migrations/0009_auto_20211130_1642.py | yangshuxuan/liver_puncture_backend | 8ba54ef89adee74646127e2c35c1931a763c1be6 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-11-30 08:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pathology', '0008_auto_20211130_1616'),
]
operations = [
migrations.AlterField(
model_name='pathologypictureitem',
n... | 32.724138 | 137 | 0.621707 | 97 | 949 | 5.938144 | 0.57732 | 0.104167 | 0.130208 | 0.151042 | 0.371528 | 0.298611 | 0.114583 | 0 | 0 | 0 | 0 | 0.050776 | 0.252898 | 949 | 28 | 138 | 33.892857 | 0.761636 | 0.047418 | 0 | 0.363636 | 1 | 0 | 0.194013 | 0.025499 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 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 |
1b2b2ffe265a26962a4eed4f07acd6bc1d04f884 | 1,015 | py | Python | dizoo/gfootball/model/conv1d/conv1d_default_config.py | LuciusMos/DI-engine | b040b1c36afce038effec9eb483f625131573824 | [
"Apache-2.0"
] | 464 | 2021-07-08T07:26:33.000Z | 2022-03-31T12:35:16.000Z | dizoo/gfootball/model/conv1d/conv1d_default_config.py | LuciusMos/DI-engine | b040b1c36afce038effec9eb483f625131573824 | [
"Apache-2.0"
] | 177 | 2021-07-09T08:22:55.000Z | 2022-03-31T07:35:22.000Z | dizoo/gfootball/model/conv1d/conv1d_default_config.py | LuciusMos/DI-engine | b040b1c36afce038effec9eb483f625131573824 | [
"Apache-2.0"
] | 92 | 2021-07-08T12:16:37.000Z | 2022-03-31T09:24:41.000Z | from easydict import EasyDict
conv1d_config = dict(
feature_embedding=dict(
player=dict(
input_dim=36,
output_dim=64,
),
ball=dict(
input_dim=18,
output_dim=64,
),
left_team=dict(
input_dim=7,
output_dim... | 22.555556 | 65 | 0.521182 | 117 | 1,015 | 4.179487 | 0.34188 | 0.165644 | 0.220859 | 0.106339 | 0.507157 | 0.507157 | 0.507157 | 0.507157 | 0.253579 | 0.253579 | 0 | 0.086957 | 0.388177 | 1,015 | 44 | 66 | 23.068182 | 0.700483 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.02381 | 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 |
1b3606eb30e2e47c5691d4d2885413a7f8e39861 | 798 | py | Python | dynamo_query/dictclasses/decorators.py | howbazaar/dynamoquery | d666565af8cf4253c7601afe90866628b4394991 | [
"MIT"
] | 14 | 2020-09-30T19:14:31.000Z | 2021-08-08T18:34:19.000Z | dynamo_query/dictclasses/decorators.py | howbazaar/dynamoquery | d666565af8cf4253c7601afe90866628b4394991 | [
"MIT"
] | 12 | 2020-10-27T02:12:57.000Z | 2022-03-23T10:57:52.000Z | dynamo_query/dictclasses/decorators.py | howbazaar/dynamoquery | d666565af8cf4253c7601afe90866628b4394991 | [
"MIT"
] | 3 | 2020-09-29T19:25:19.000Z | 2022-02-22T22:58:29.000Z | from functools import wraps
from typing import Any, Callable, TypeVar
_R = TypeVar("_R")
class KeySanitizer:
def __init__(self, key: str) -> None:
self.key = key
def __call__(self, method: Callable[..., _R]) -> Callable[..., _R]:
@wraps(method)
def wrapper(instance: Any, value: Any, ... | 24.181818 | 71 | 0.595238 | 89 | 798 | 5.067416 | 0.292135 | 0.062084 | 0.04878 | 0.062084 | 0.534368 | 0.43459 | 0.43459 | 0.43459 | 0.43459 | 0.43459 | 0 | 0 | 0.26817 | 798 | 32 | 72 | 24.9375 | 0.77226 | 0 | 0 | 0.47619 | 0 | 0 | 0.031328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.095238 | 0.095238 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b36e7b7beb9eb1dfeaeda698cf07d1df690af62 | 214 | py | Python | examples/arkane/species/CH2CHOOH/input.py | tza0035/RMG-Py | 38c49f7107d1b19e4a534408a1040ddd313b8596 | [
"MIT"
] | 250 | 2015-06-06T23:32:00.000Z | 2022-03-22T16:45:16.000Z | examples/arkane/species/CH2CHOOH/input.py | tza0035/RMG-Py | 38c49f7107d1b19e4a534408a1040ddd313b8596 | [
"MIT"
] | 1,781 | 2015-05-26T23:52:00.000Z | 2022-03-31T19:07:54.000Z | examples/arkane/species/CH2CHOOH/input.py | tza0035/RMG-Py | 38c49f7107d1b19e4a534408a1040ddd313b8596 | [
"MIT"
] | 161 | 2015-06-02T14:28:59.000Z | 2022-03-02T19:37:14.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
modelChemistry = "CBS-QB3"
useHinderedRotors = True
useBondCorrections = False
species('CH2CHOOH', 'CH2CHOOH.py')
statmech('CH2CHOOH')
thermo('CH2CHOOH', 'Wilhoit')
| 17.833333 | 34 | 0.705607 | 23 | 214 | 6.565217 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031579 | 0.11215 | 214 | 11 | 35 | 19.454545 | 0.763158 | 0.196262 | 0 | 0 | 0 | 0 | 0.288235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b3d65687b695ca98f5c9682c8295231d8a0e655 | 1,735 | py | Python | benchmark/unit_test.py | adobe-research/beacon-aug | 9b891e99edd74a0ee88809e0b16a157e5fa90cf0 | [
"MIT"
] | 11 | 2021-09-22T20:08:59.000Z | 2022-02-16T22:34:09.000Z | benchmark/unit_test.py | adobe-research/beacon-aug | 9b891e99edd74a0ee88809e0b16a157e5fa90cf0 | [
"MIT"
] | null | null | null | benchmark/unit_test.py | adobe-research/beacon-aug | 9b891e99edd74a0ee88809e0b16a157e5fa90cf0 | [
"MIT"
] | null | null | null | # Copyright 2021 Adobe
# All Rights Reserved.
# NOTICE: Adobe permits you to use, modify, and distribute this file in
# accordance with the terms of the Adobe license agreement accompanying
# it.
'''
>> python -m unittest unit_test.TestSingle_operator
'''
from skimage import io
import time
import beacon_aug as BA
# ... | 34.7 | 118 | 0.688184 | 219 | 1,735 | 5.315068 | 0.479452 | 0.064433 | 0.028351 | 0.030928 | 0.113402 | 0.051546 | 0 | 0 | 0 | 0 | 0 | 0.029667 | 0.203458 | 1,735 | 49 | 119 | 35.408163 | 0.81259 | 0.334294 | 0 | 0.086957 | 0 | 0 | 0.175022 | 0 | 0.043478 | 0 | 0 | 0 | 0.086957 | 1 | 0.043478 | false | 0 | 0.347826 | 0 | 0.434783 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1b411b90b64db1abd4ab715b7729aca162ae768f | 1,235 | py | Python | deeppavlov/models/preprocessors/mask.py | khakhulin/DeepPavlov | 5f631cc887aa935f2e67b7c65a19c7e777cf7db7 | [
"Apache-2.0"
] | 1 | 2018-07-18T11:50:45.000Z | 2018-07-18T11:50:45.000Z | deeppavlov/models/preprocessors/mask.py | khakhulin/DeepPavlov | 5f631cc887aa935f2e67b7c65a19c7e777cf7db7 | [
"Apache-2.0"
] | null | null | null | deeppavlov/models/preprocessors/mask.py | khakhulin/DeepPavlov | 5f631cc887aa935f2e67b7c65a19c7e777cf7db7 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2017 Neural Networks and Deep Learning lab, MIPT
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 33.378378 | 81 | 0.727126 | 180 | 1,235 | 4.9 | 0.594444 | 0.068027 | 0.029478 | 0.036281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011078 | 0.195951 | 1,235 | 36 | 82 | 34.305556 | 0.87714 | 0.527126 | 0 | 0 | 0 | 0 | 0.007005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.066667 | 0.2 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1b4a1031a711bbf2040c7e8dd99a9defa3fe11b7 | 3,960 | py | Python | athena_glue_service_logs/lambda_edge.py | srrajeev-aws/athena-glue-service-logs | c490fafb1aa69cf29e9b9f792730aafd32fe203b | [
"Apache-2.0"
] | null | null | null | athena_glue_service_logs/lambda_edge.py | srrajeev-aws/athena-glue-service-logs | c490fafb1aa69cf29e9b9f792730aafd32fe203b | [
"Apache-2.0"
] | null | null | null | athena_glue_service_logs/lambda_edge.py | srrajeev-aws/athena-glue-service-logs | c490fafb1aa69cf29e9b9f792730aafd32fe203b | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
# http://www.apache.org/licenses/LICENSE-2.0
# or in the "license" file ... | 46.588235 | 102 | 0.635101 | 385 | 3,960 | 6.41039 | 0.381818 | 0.048622 | 0.062399 | 0.030794 | 0.629254 | 0.592383 | 0.562399 | 0.545381 | 0.545381 | 0.545381 | 0 | 0.004024 | 0.24697 | 3,960 | 84 | 103 | 47.142857 | 0.823608 | 0.240657 | 0 | 0.711864 | 0 | 0 | 0.298087 | 0.104062 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101695 | false | 0 | 0.050847 | 0.067797 | 0.288136 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b4a5d463447ecdbb85a7e409fa229d6366524c3 | 648 | py | Python | byhand/__init__.py | Svtter/byhand | b73682e2765dad3e7ee9b47cd6e25e7794e453f5 | [
"BSD-3-Clause"
] | null | null | null | byhand/__init__.py | Svtter/byhand | b73682e2765dad3e7ee9b47cd6e25e7794e453f5 | [
"BSD-3-Clause"
] | null | null | null | byhand/__init__.py | Svtter/byhand | b73682e2765dad3e7ee9b47cd6e25e7794e453f5 | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
"""
随手库,把平时常用的一些函数直接塞到这个包里面。
"""
from . import img
from . import sta
__all__ = [
'img',
'sta',
'run',
'second',
]
def run():
"""
测试 docstring.
"""
pass
def second(a):
"""
第二个函数,来个参数
"""
pass
def generate_md():
from glob... | 13.5 | 40 | 0.445988 | 69 | 648 | 3.985507 | 0.623188 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004938 | 0.375 | 648 | 47 | 41 | 13.787234 | 0.674074 | 0.098765 | 0 | 0.08 | 0 | 0 | 0.126374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0.08 | 0.12 | 0 | 0.28 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1b5c77b2b6c62fb57d655e7fe41128733bd21e2b | 1,759 | py | Python | grpc_ros_client/test/.test_grpc_client_launch.py | ipa-rar/gRPC-ros2-bridge | e03a4949ad2707ef8e260ed6bcf62a61888a7ac6 | [
"BSD-2-Clause"
] | 4 | 2021-12-22T01:19:34.000Z | 2022-03-11T09:33:05.000Z | grpc_ros_client/test/.test_grpc_client_launch.py | ipa-rar/gRPC-ros2-bridge | e03a4949ad2707ef8e260ed6bcf62a61888a7ac6 | [
"BSD-2-Clause"
] | null | null | null | grpc_ros_client/test/.test_grpc_client_launch.py | ipa-rar/gRPC-ros2-bridge | e03a4949ad2707ef8e260ed6bcf62a61888a7ac6 | [
"BSD-2-Clause"
] | 1 | 2022-03-08T00:22:39.000Z | 2022-03-08T00:22:39.000Z | import launch
import launch_ros
import launch_ros.actions
import launch_testing.actions
from launch import LaunchDescription
from launch.actions import IncludeLaunchDescription
from launch.actions import LogInfo
from launch.launch_description_sources import PythonLaunchDescriptionSource
from launch.substitutions impor... | 28.836066 | 119 | 0.712905 | 189 | 1,759 | 6.428571 | 0.428571 | 0.049383 | 0.041975 | 0.05679 | 0.314403 | 0.314403 | 0.192593 | 0.192593 | 0.192593 | 0.192593 | 0 | 0.004261 | 0.199545 | 1,759 | 60 | 120 | 29.316667 | 0.858665 | 0.063673 | 0 | 0.173913 | 0 | 0 | 0.10122 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.108696 | false | 0 | 0.326087 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1b61ba895b6b879ba559afb4c50d01a5839c8b67 | 3,574 | py | Python | qgitc/ui_aboutdialog.py | timxx/gitc | 96b00be7892587ed18dd526e4e85eff9cac19099 | [
"Apache-2.0"
] | 1 | 2020-03-21T00:20:28.000Z | 2020-03-21T00:20:28.000Z | qgitc/ui_aboutdialog.py | timxx/gitc | 96b00be7892587ed18dd526e4e85eff9cac19099 | [
"Apache-2.0"
] | null | null | null | qgitc/ui_aboutdialog.py | timxx/gitc | 96b00be7892587ed18dd526e4e85eff9cac19099 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'aboutdialog.ui'
##
## Created by: Qt User Interface Compiler version 6.2.3
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
#######... | 41.55814 | 137 | 0.671237 | 329 | 3,574 | 7.261398 | 0.370821 | 0.064462 | 0.031812 | 0.046463 | 0.101298 | 0.039347 | 0.039347 | 0 | 0 | 0 | 0 | 0.007928 | 0.188304 | 3,574 | 85 | 138 | 42.047059 | 0.815581 | 0.063514 | 0 | 0 | 1 | 0 | 0.056365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.053571 | 0 | 0.107143 | 0 | 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 |
1b6204d72475a68f241f1435ea3651187b5536dc | 371 | py | Python | desicos/abaqus/gui/prototypeApp.py | saullocastro/desicos | 922db8ac4fb0fb4d09df18ce2a14011f207f6fa8 | [
"BSD-3-Clause"
] | 1 | 2020-10-22T22:15:24.000Z | 2020-10-22T22:15:24.000Z | desicos/abaqus/gui/prototypeApp.py | saullocastro/desicos | 922db8ac4fb0fb4d09df18ce2a14011f207f6fa8 | [
"BSD-3-Clause"
] | 1 | 2020-10-09T12:42:02.000Z | 2020-10-09T12:42:02.000Z | desicos/abaqus/gui/prototypeApp.py | saullocastro/desicos | 922db8ac4fb0fb4d09df18ce2a14011f207f6fa8 | [
"BSD-3-Clause"
] | 2 | 2020-07-14T07:45:31.000Z | 2020-12-29T00:22:41.000Z | """
This script will create the prototype application.
"""
from abaqusGui import *
import sys
from prototypeMainWindow import PrototypeMainWindow
# Initialize the application object.
#
app = AFXApp('ABAQUS/CAE', 'ABAQUS, Inc.')
app.init(sys.argv)
# Construct the main window.
#
PrototypeMainWindow(app)
# Create the ... | 15.458333 | 51 | 0.746631 | 46 | 371 | 6.021739 | 0.586957 | 0.064982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145553 | 371 | 23 | 52 | 16.130435 | 0.873817 | 0.398922 | 0 | 0 | 0 | 0 | 0.104762 | 0 | 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 |
1b6301660e8f68e6d1fe7dc8b95bd53c19d2e936 | 51,463 | py | Python | census_extractomatic/user_geo.py | censusreporter/census-api | cb82c312edda586a75c41bb1bc623be55fd39da7 | [
"MIT"
] | 135 | 2015-02-07T23:07:27.000Z | 2022-03-08T16:48:28.000Z | census_extractomatic/user_geo.py | censusreporter/census-api | cb82c312edda586a75c41bb1bc623be55fd39da7 | [
"MIT"
] | 53 | 2015-03-04T17:43:08.000Z | 2020-11-09T20:00:16.000Z | census_extractomatic/user_geo.py | censusreporter/census-api | cb82c312edda586a75c41bb1bc623be55fd39da7 | [
"MIT"
] | 44 | 2015-03-29T10:17:06.000Z | 2022-02-07T20:36:58.000Z | """Centralize non-Flask code for 2020 User Geography data aggregation here.
This file serves both as a library for the Flask app as well as
a bootstrap for Celery tasks, which could be run with something like
celery -A census_extractomatic.user_geo:celery_app worker
"""
from datetime import timedelta
from s... | 60.120327 | 173 | 0.655889 | 6,577 | 51,463 | 5.025087 | 0.140185 | 0.02711 | 0.054221 | 0.085204 | 0.643661 | 0.595008 | 0.56475 | 0.53177 | 0.487231 | 0.454009 | 0 | 0.084113 | 0.233721 | 51,463 | 855 | 174 | 60.190643 | 0.753975 | 0.051416 | 0 | 0.154667 | 0 | 0.088 | 0.620435 | 0.047636 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024 | false | 0 | 0.022667 | 0.002667 | 0.073333 | 0 | 0 | 0 | 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 |
1b630f2b110b0c3476a25a0c81b4dc04b58fa1a9 | 763 | py | Python | tests/api/test_attachments.py | mmirate/Groupy | ffd8cac57586fa1c218e3b4bfaa531142c3be766 | [
"Apache-2.0"
] | 65 | 2015-07-27T20:54:07.000Z | 2022-02-09T01:20:09.000Z | tests/api/test_attachments.py | mmirate/Groupy | ffd8cac57586fa1c218e3b4bfaa531142c3be766 | [
"Apache-2.0"
] | 51 | 2015-04-20T00:22:09.000Z | 2021-09-18T20:31:53.000Z | tests/api/test_attachments.py | mmirate/Groupy | ffd8cac57586fa1c218e3b4bfaa531142c3be766 | [
"Apache-2.0"
] | 29 | 2015-05-30T18:02:38.000Z | 2020-02-20T22:33:17.000Z | import unittest
from groupy.api import attachments
class TestAttachmentsFromData(unittest.TestCase):
def test_known_attachment_type(self):
data = {'type': 'split', 'token': 'foo'}
attachment = attachments.Attachment.from_data(**data)
self.assertIsInstance(attachment, attachments.Split)
... | 36.333333 | 68 | 0.690695 | 80 | 763 | 6.4 | 0.3375 | 0.164063 | 0.070313 | 0.169922 | 0.642578 | 0.425781 | 0.328125 | 0.328125 | 0.328125 | 0.328125 | 0 | 0 | 0.183486 | 763 | 20 | 69 | 38.15 | 0.82183 | 0 | 0 | 0.133333 | 0 | 0 | 0.077326 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.4 | 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 |
1b6398a070d5bc58c8c83ab62797405471c6e487 | 1,768 | py | Python | sandbox/lib/jumpscale/Jumpscale/servers/corex/CorexServer.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | null | null | null | sandbox/lib/jumpscale/Jumpscale/servers/corex/CorexServer.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | null | null | null | sandbox/lib/jumpscale/Jumpscale/servers/corex/CorexServer.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | null | null | null | import os
from Jumpscale import j
JSConfigClient = j.baseclasses.object_config
class CorexServer(JSConfigClient):
_SCHEMATEXT = """
@url = jumpscale.servers.corex.1
name** = "default" (S)
port = 1500 (I)
user = "" (S)
password = "" (S)
chroot = f... | 30.482759 | 113 | 0.553733 | 196 | 1,768 | 4.892857 | 0.367347 | 0.10219 | 0.022941 | 0.020855 | 0.108446 | 0.108446 | 0.108446 | 0.108446 | 0.108446 | 0.108446 | 0 | 0.004188 | 0.324661 | 1,768 | 57 | 114 | 31.017544 | 0.798995 | 0.015271 | 0 | 0.088889 | 0 | 0 | 0.262667 | 0.030285 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.066667 | 0.044444 | 0 | 0.244444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1b63f849198870aeaa70df302cc9e1f5091c59e8 | 422 | py | Python | RoomsOnRent/user_auth/migrations/0004_city_city_code.py | DX9807/RoomsOnRent.com | 4147efdce8e13930672c3c7cb12a1f25a70708ed | [
"MIT"
] | null | null | null | RoomsOnRent/user_auth/migrations/0004_city_city_code.py | DX9807/RoomsOnRent.com | 4147efdce8e13930672c3c7cb12a1f25a70708ed | [
"MIT"
] | null | null | null | RoomsOnRent/user_auth/migrations/0004_city_city_code.py | DX9807/RoomsOnRent.com | 4147efdce8e13930672c3c7cb12a1f25a70708ed | [
"MIT"
] | null | null | null | # Generated by Django 2.2.4 on 2019-08-28 16:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_auth', '0003_auto_20190828_1330'),
]
operations = [
migrations.AddField(
model_name='city',
name='city_code',
... | 21.1 | 49 | 0.597156 | 46 | 422 | 5.326087 | 0.804348 | 0.065306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107383 | 0.293839 | 422 | 19 | 50 | 22.210526 | 0.714765 | 0.106635 | 0 | 0 | 1 | 0 | 0.12 | 0.061333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b6b164ad82f04862a7c342beef31aa966671e47 | 215 | py | Python | grok/Python/pyTorch/verify.py | grscheller/scheller-shell-utilities | 58abc978f4a2840dace4e83a87d264485b6a55bc | [
"BSD-3-Clause"
] | 4 | 2017-04-16T19:54:09.000Z | 2020-05-21T22:51:04.000Z | grok/Python/pyTorch/verify.py | grscheller/scheller-shell-utilities | 58abc978f4a2840dace4e83a87d264485b6a55bc | [
"BSD-3-Clause"
] | 1 | 2017-03-07T19:25:01.000Z | 2020-06-06T05:08:45.000Z | grok/Python/pyTorch/verify.py | grscheller/scheller-shell-utilities | 58abc978f4a2840dace4e83a87d264485b6a55bc | [
"BSD-3-Clause"
] | 1 | 2020-11-25T03:05:55.000Z | 2020-11-25T03:05:55.000Z | #!/usr/bin/env python
import torch
x = torch.rand(5,3)
print("Randon 5 by 3 \"tensor\":")
print(x)
if torch.cuda.is_available():
print("\nCUDA is available.\n")
else:
print("\nCUDA is not available.\n")
| 15.357143 | 39 | 0.646512 | 36 | 215 | 3.833333 | 0.611111 | 0.15942 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.162791 | 215 | 13 | 40 | 16.538462 | 0.744444 | 0.093023 | 0 | 0 | 0 | 0 | 0.331606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
1b71cce768169cf81d4200f75b401d7c6c7d6c59 | 1,148 | py | Python | mayan/apps/events/migrations/0005_auto_20170731_0452.py | YingWang-Clare/mayan-edms-with-elasticsearch | e38b54f0f66ac5ac364ae45526085c821a6bebb4 | [
"Apache-2.0"
] | 2 | 2020-08-31T01:10:58.000Z | 2022-03-06T07:16:46.000Z | mayan/apps/events/migrations/0005_auto_20170731_0452.py | sneha-rk/drawings-version-control | 4e5a2bf0fd8b8026f1d3d56917b5be4b5c7be497 | [
"Apache-2.0"
] | 15 | 2020-06-06T00:00:48.000Z | 2022-03-12T00:03:54.000Z | mayan/apps/events/migrations/0005_auto_20170731_0452.py | YingWang-Clare/mayan-edms-with-elasticsearch | e38b54f0f66ac5ac364ae45526085c821a6bebb4 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-07-31 04:52
from __future__ import unicode_literals
import re
from django.db import migrations
def update_event_types_names(apps, schema_editor):
Action = apps.get_model('actstream', 'Action')
StoredEventType = apps.get_model('events', 'StoredEven... | 25.511111 | 66 | 0.641986 | 128 | 1,148 | 5.515625 | 0.554688 | 0.084986 | 0.045326 | 0.05949 | 0.107649 | 0.107649 | 0.107649 | 0.107649 | 0 | 0 | 0 | 0.041855 | 0.229965 | 1,148 | 44 | 67 | 26.090909 | 0.756787 | 0.059233 | 0 | 0 | 1 | 0 | 0.150418 | 0.021356 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.1 | 0 | 0.233333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b78d72d4116a8642ffb4268576c269e21a8b63b | 758 | py | Python | opencart/database.py | smirnoffs/karsender | 9bd0ae96b4931e88cd2fc3a6ab9bac0303235bd2 | [
"Apache-2.0"
] | null | null | null | opencart/database.py | smirnoffs/karsender | 9bd0ae96b4931e88cd2fc3a6ab9bac0303235bd2 | [
"Apache-2.0"
] | null | null | null | opencart/database.py | smirnoffs/karsender | 9bd0ae96b4931e88cd2fc3a6ab9bac0303235bd2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = 'Sergey Smirnov <smirnoffs@gmail.com>'
from sqlalchemy import create_engine
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from flask.ext.sqlalchemy import SQLAlchemy
from karsender import Config
db = SQLAlchemy()
engine = create_engine('mysql... | 26.137931 | 93 | 0.770449 | 104 | 758 | 5.442308 | 0.557692 | 0.09894 | 0.113074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009036 | 0.124011 | 758 | 28 | 94 | 27.071429 | 0.843373 | 0.141161 | 0 | 0 | 0 | 0 | 0.148377 | 0.125193 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.117647 | 0.294118 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1b8ddab3659a86ffc6befe6fb9ad41690a64f34a | 271 | py | Python | 01 Factoring a number .py | yoursamlan/FunWithNumbers | 15e139a7c7d56f0553ef63446ab08f68c8262631 | [
"MIT"
] | null | null | null | 01 Factoring a number .py | yoursamlan/FunWithNumbers | 15e139a7c7d56f0553ef63446ab08f68c8262631 | [
"MIT"
] | null | null | null | 01 Factoring a number .py | yoursamlan/FunWithNumbers | 15e139a7c7d56f0553ef63446ab08f68c8262631 | [
"MIT"
] | null | null | null | #In this program we will enter a number and get its factors as the output in a list format.
num = int(input("Enter number: "))
def factors(n):
flist = []
for i in range(1,n+1):
if n%i == 0:
flist.append(i)
return flist
print(factors(num))
| 27.1 | 91 | 0.612546 | 47 | 271 | 3.531915 | 0.680851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.269373 | 271 | 9 | 92 | 30.111111 | 0.823232 | 0.332103 | 0 | 0 | 0 | 0 | 0.077778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b90f85c74614a8d2b54e826ea7d0b597992b8f0 | 1,035 | py | Python | app/views.py | Kwentar/Bread | 6bead64a9ff9917dcd66f3dccad961c1f87486f3 | [
"BSD-3-Clause"
] | null | null | null | app/views.py | Kwentar/Bread | 6bead64a9ff9917dcd66f3dccad961c1f87486f3 | [
"BSD-3-Clause"
] | null | null | null | app/views.py | Kwentar/Bread | 6bead64a9ff9917dcd66f3dccad961c1f87486f3 | [
"BSD-3-Clause"
] | null | null | null | from flask import render_template
from app import app
@app.route('/')
@app.route('/index')
def index():
user = {'nickname': 'Хлебушек'}
posts = [
{
'author': {'nickname': 'karim-abdul'},
'body': '''илья старается скорее\n
уравновесить зло добром\n
... | 32.34375 | 78 | 0.487923 | 110 | 1,035 | 4.572727 | 0.672727 | 0.083499 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.396135 | 1,035 | 31 | 79 | 33.387097 | 0.8048 | 0 | 0 | 0 | 0 | 0 | 0.607729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.137931 | 0 | 0 | 0 | 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 |
1b932d8b1fdd423f59b8d81384afb7416fe94e5e | 417 | py | Python | backend/src/resources/dashboard.py | codeglitchz/attendance-system | c82a8d75375069b15e0b827608209bfacb67cde7 | [
"MIT"
] | 37 | 2019-12-15T17:39:38.000Z | 2022-03-13T08:16:09.000Z | backend/src/resources/dashboard.py | codeglitchz/attendance-system | c82a8d75375069b15e0b827608209bfacb67cde7 | [
"MIT"
] | 16 | 2020-05-05T14:17:26.000Z | 2022-03-02T09:09:38.000Z | backend/src/resources/dashboard.py | codeglitchz/attendance-system | c82a8d75375069b15e0b827608209bfacb67cde7 | [
"MIT"
] | 18 | 2019-12-15T17:39:43.000Z | 2022-01-22T10:42:41.000Z | from flask_restful import Resource
from flask_jwt_extended import jwt_required, get_jwt_identity
from src.libs.strings import gettext
class Dashboard(Resource):
@classmethod
@jwt_required(optional=True)
def get(cls):
user_id = get_jwt_identity()
if user_id:
return {'message': ... | 27.8 | 65 | 0.709832 | 55 | 417 | 5.090909 | 0.636364 | 0.064286 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017964 | 0.199041 | 417 | 14 | 66 | 29.785714 | 0.820359 | 0 | 0 | 0 | 0 | 0 | 0.115108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1b95e1e7809c042ffdd6e2e0670553ec67b11df4 | 2,849 | py | Python | ss2/acl.py | agenosov/simpleswitch2 | b69edf4362f00eb2a43338540cbc6833c04fda83 | [
"MIT"
] | 10 | 2016-08-05T17:28:01.000Z | 2021-11-16T11:37:20.000Z | ss2/acl.py | agenosov/simpleswitch2 | b69edf4362f00eb2a43338540cbc6833c04fda83 | [
"MIT"
] | 2 | 2018-09-12T09:31:19.000Z | 2019-10-30T14:23:11.000Z | ss2/acl.py | agenosov/simpleswitch2 | b69edf4362f00eb2a43338540cbc6833c04fda83 | [
"MIT"
] | 6 | 2017-09-22T15:31:40.000Z | 2020-04-28T04:59:59.000Z | # Copyright (c) 2016 Noviflow
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use, copy,
# modify, merge, publish, distribu... | 33.916667 | 71 | 0.723061 | 412 | 2,849 | 4.876214 | 0.441748 | 0.043803 | 0.025386 | 0.023892 | 0.029866 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007067 | 0.205335 | 2,849 | 83 | 72 | 34.325301 | 0.8803 | 0.504739 | 0 | 0.051282 | 0 | 0 | 0.154223 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.179487 | false | 0 | 0.205128 | 0 | 0.512821 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1b9ba9d22ebd402d9e6f409eab2e5feac222e848 | 2,626 | py | Python | Bioinformatics IV/Week II/NeighborJoining.py | egeulgen/Bioinformatics_Specialization | 38581b471a54c41d780d9eeb26a7033eb57f3a01 | [
"MIT"
] | 3 | 2021-04-03T23:46:42.000Z | 2021-08-08T01:19:32.000Z | Bioinformatics IV/Week II/NeighborJoining.py | egeulgen/Bioinformatics_Specialization | 38581b471a54c41d780d9eeb26a7033eb57f3a01 | [
"MIT"
] | null | null | null | Bioinformatics IV/Week II/NeighborJoining.py | egeulgen/Bioinformatics_Specialization | 38581b471a54c41d780d9eeb26a7033eb57f3a01 | [
"MIT"
] | null | null | null | import sys
def TotalDistance(dist_dict, i):
return sum(dist_dict[i].values())
def ConstructNJMatrix(dist_dict):
D_NJ = {}
for key1, val1 in dist_dict.items():
for key2, val in dist_dict[key1].items():
if not key1 in D_NJ:
D_NJ[key1] = {}
if key1 == key2:
... | 28.857143 | 127 | 0.567403 | 384 | 2,626 | 3.690104 | 0.179688 | 0.231475 | 0.084686 | 0.067749 | 0.320395 | 0.153846 | 0.110092 | 0.110092 | 0.073395 | 0.073395 | 0 | 0.044902 | 0.279132 | 2,626 | 91 | 128 | 28.857143 | 0.703645 | 0.005712 | 0 | 0.074627 | 0 | 0 | 0.00613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044776 | false | 0 | 0.014925 | 0.014925 | 0.119403 | 0.014925 | 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 |
1b9cbc2fa95ebe46955be8014152f9a1c93df5ec | 553 | py | Python | ros-workspace/src/dr_phil_hardware/src/dr_phil_hardware/test/test_utils/test_utils.py | hwixley/SDP-DrPhil | 2b5469aab6b25a4a938f111daf5a24b3a331fca5 | [
"Apache-2.0"
] | 1 | 2021-11-26T20:31:13.000Z | 2021-11-26T20:31:13.000Z | ros-workspace/src/dr_phil_hardware/src/dr_phil_hardware/test/test_utils/test_utils.py | hwixley/SDP-DrPhil | 2b5469aab6b25a4a938f111daf5a24b3a331fca5 | [
"Apache-2.0"
] | null | null | null | ros-workspace/src/dr_phil_hardware/src/dr_phil_hardware/test/test_utils/test_utils.py | hwixley/SDP-DrPhil | 2b5469aab6b25a4a938f111daf5a24b3a331fca5 | [
"Apache-2.0"
] | 2 | 2021-11-18T00:09:58.000Z | 2021-12-23T16:12:28.000Z |
import unittest
import math
import numpy as np
def assertRayEquals(test,r_correct,r_true,rel_tol=0,abs_tol=1e-8,msg=""):
""" asserts that the two rays are approximately the same based on their distance as points"""
test.assertTrue(math.isclose(np.linalg.norm(r_true.get_vec()-r_correct.get_vec()),0,abs_tol=... | 36.866667 | 120 | 0.687161 | 96 | 553 | 3.770833 | 0.479167 | 0.088398 | 0.049724 | 0.071823 | 0.20442 | 0.20442 | 0.20442 | 0.20442 | 0.20442 | 0.20442 | 0 | 0.008734 | 0.17179 | 553 | 14 | 121 | 39.5 | 0.781659 | 0.155515 | 0 | 0 | 0 | 0.125 | 0.189956 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1b9f2f7c76f45c34d42fcb867f60270346b78d90 | 180 | py | Python | exercicios/Lista1/Q33.py | AlexandrePeBrito/CursoUdemyPython | 3de58cb30c9f333b32078309847179ff3f9d7e22 | [
"MIT"
] | null | null | null | exercicios/Lista1/Q33.py | AlexandrePeBrito/CursoUdemyPython | 3de58cb30c9f333b32078309847179ff3f9d7e22 | [
"MIT"
] | null | null | null | exercicios/Lista1/Q33.py | AlexandrePeBrito/CursoUdemyPython | 3de58cb30c9f333b32078309847179ff3f9d7e22 | [
"MIT"
] | null | null | null | #leia o tamanho do lado de um quadrado e
#imprima como resultado a area.
lado=float(input("Informe o lado do quadrado: "))
area=lado*lado
print(f"A area do quadrado eh {area}") | 22.5 | 49 | 0.727778 | 33 | 180 | 3.969697 | 0.606061 | 0.076336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 180 | 8 | 50 | 22.5 | 0.873333 | 0.388889 | 0 | 0 | 0 | 0 | 0.513761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
1ba4cc80ed2f3ddc7f73404d27e9a8959dba8536 | 1,058 | py | Python | pipeline2.0/lib/python/CornellWebservice.py | federatedcloud/transients_pipeline2 | 5a919e3141c4721454584159b5d74bd17c07e377 | [
"BSD-3-Clause"
] | null | null | null | pipeline2.0/lib/python/CornellWebservice.py | federatedcloud/transients_pipeline2 | 5a919e3141c4721454584159b5d74bd17c07e377 | [
"BSD-3-Clause"
] | null | null | null | pipeline2.0/lib/python/CornellWebservice.py | federatedcloud/transients_pipeline2 | 5a919e3141c4721454584159b5d74bd17c07e377 | [
"BSD-3-Clause"
] | null | null | null | import urllib
import xml.dom.minidom
import config.download
class Client():
def __getattr__(self, key):
return lambda **kwargs: self.use_service(key, **kwargs)
def use_service(self, name, **kwargs):
"""Use the client's web service 'name' with the given keyword arguments.
I... | 35.266667 | 82 | 0.600189 | 121 | 1,058 | 5.14876 | 0.454545 | 0.048154 | 0.041734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001366 | 0.308129 | 1,058 | 29 | 83 | 36.482759 | 0.849727 | 0.274102 | 0 | 0 | 0 | 0 | 0.020438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0.0625 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1ba90c155a9ee18f4b843916def7e4dcfbe14d05 | 2,244 | py | Python | sdk/python/pulumi_aws/secretsmanager/get_secret_version.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/secretsmanager/get_secret_version.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/secretsmanager/get_secret_version.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import pulumi
import pulumi.runtime
class GetSecretVersionResult(object):
"""
A collection of values returned by getSecretVers... | 44 | 222 | 0.697415 | 272 | 2,244 | 5.400735 | 0.378676 | 0.05514 | 0.043567 | 0.081688 | 0.188564 | 0.085773 | 0 | 0 | 0 | 0 | 0 | 0.000569 | 0.216132 | 2,244 | 50 | 223 | 44.88 | 0.834565 | 0.200535 | 0 | 0 | 1 | 0 | 0.20176 | 0.035207 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ba9630d0cb8512de239a6608795b6076aea5d60 | 713 | py | Python | OrganicFarmApi/ProductApp/serializers.py | ravikantverma167/organic-farm-api | b173424f85bd1d336a0b3b73c1d3bea370ea1322 | [
"MIT"
] | null | null | null | OrganicFarmApi/ProductApp/serializers.py | ravikantverma167/organic-farm-api | b173424f85bd1d336a0b3b73c1d3bea370ea1322 | [
"MIT"
] | null | null | null | OrganicFarmApi/ProductApp/serializers.py | ravikantverma167/organic-farm-api | b173424f85bd1d336a0b3b73c1d3bea370ea1322 | [
"MIT"
] | null | null | null |
from rest_framework import serializers
from ProductApp.models import Categories, Products
class CategorySerializer(serializers.ModelSerializer):
class Meta:
model = Categories
fields = ('id',
'name',
'description',
'pic_url')
class ProductSeri... | 28.52 | 54 | 0.496494 | 50 | 713 | 6.92 | 0.58 | 0.150289 | 0.179191 | 0.202312 | 0.231214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.419355 | 713 | 25 | 55 | 28.52 | 0.835749 | 0 | 0 | 0.272727 | 0 | 0 | 0.168303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.272727 | 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 |
1baa9769a079aa470be25eb4a403813d89c58ff7 | 2,436 | py | Python | domain/imageprocessing/strategies/MssqlConnectionStrategy.py | ahmetcagriakca/ImageProcessingApi | b19d28719aecfdf3a26b4d48eac54f65beb25488 | [
"MIT"
] | null | null | null | domain/imageprocessing/strategies/MssqlConnectionStrategy.py | ahmetcagriakca/ImageProcessingApi | b19d28719aecfdf3a26b4d48eac54f65beb25488 | [
"MIT"
] | null | null | null | domain/imageprocessing/strategies/MssqlConnectionStrategy.py | ahmetcagriakca/ImageProcessingApi | b19d28719aecfdf3a26b4d48eac54f65beb25488 | [
"MIT"
] | null | null | null | import pyodbc
from infrastructor.Cryptography.CryptoService import CryptoService
from infrastructor.data.ConnectionStrategy import ConnectionStrategy
from infrastructor.data.DatabaseManager import DatabaseManager
from infrastructor.data.MssqlConnector import MssqlDbConnector
from infrastructor.logging.ConsoleLogger im... | 49.714286 | 116 | 0.716338 | 279 | 2,436 | 6.035842 | 0.286738 | 0.062352 | 0.06057 | 0.057007 | 0.347981 | 0.256532 | 0.256532 | 0.256532 | 0.212589 | 0.212589 | 0 | 0.02195 | 0.195813 | 2,436 | 48 | 117 | 50.75 | 0.837672 | 0.075944 | 0 | 0.153846 | 0 | 0 | 0.048301 | 0.025492 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.153846 | 0.179487 | 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 |
1bb2e336e6b4b7e61d2060b07a8a480c9989590e | 205 | py | Python | tests/test_cmdline.py | oux/google-repo | 10d9569981c38550564ee71771cf2df5f32daeb8 | [
"Apache-2.0"
] | 2 | 2021-08-20T03:05:20.000Z | 2021-11-12T21:35:59.000Z | tests/test_cmdline.py | oux/google-repo | 10d9569981c38550564ee71771cf2df5f32daeb8 | [
"Apache-2.0"
] | 1 | 2021-06-23T18:20:38.000Z | 2021-06-23T19:03:24.000Z | tests/test_cmdline.py | oux/google-repo | 10d9569981c38550564ee71771cf2df5f32daeb8 | [
"Apache-2.0"
] | 4 | 2020-07-30T16:46:42.000Z | 2021-06-02T07:12:31.000Z | import pytest
import repo.main
def test_help_cmd(capfd):
with pytest.raises(SystemExit):
repo.main._Main(["--help"])
out, err = capfd.readouterr()
assert "Usage: repo" in out
assert err == "" | 20.5 | 33 | 0.682927 | 29 | 205 | 4.724138 | 0.62069 | 0.116788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 205 | 10 | 34 | 20.5 | 0.805882 | 0 | 0 | 0 | 0 | 0 | 0.082524 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bb34f3e9e2972095d85097066d056a2b438691a | 5,847 | py | Python | src/oci/key_management/models/vault_usage.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 249 | 2017-09-11T22:06:05.000Z | 2022-03-04T17:09:29.000Z | src/oci/key_management/models/vault_usage.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 228 | 2017-09-11T23:07:26.000Z | 2022-03-23T10:58:50.000Z | src/oci/key_management/models/vault_usage.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 224 | 2017-09-27T07:32:43.000Z | 2022-03-25T16:55:42.000Z | # coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 35.652439 | 245 | 0.675389 | 767 | 5,847 | 4.887875 | 0.166884 | 0.07682 | 0.144038 | 0.110429 | 0.728994 | 0.636703 | 0.582822 | 0.53721 | 0.472126 | 0.371032 | 0 | 0.004159 | 0.259791 | 5,847 | 163 | 246 | 35.871166 | 0.862061 | 0.549855 | 0 | 0.075472 | 0 | 0 | 0.10147 | 0.035562 | 0 | 0 | 0 | 0 | 0 | 1 | 0.226415 | false | 0 | 0.037736 | 0.037736 | 0.433962 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1bb38ab5aa5d257f2734bbb2cc16ee7599690f3d | 315 | py | Python | cursoEmVideo/Python/Mundo 2/Exercicios/Ex048.py | VictorDG00/Cursos | b1411f3179ef17f128c883b0f5a56c2478de45e8 | [
"MIT"
] | 2 | 2021-02-08T13:34:15.000Z | 2021-02-08T19:43:42.000Z | cursoEmVideo/Python/Mundo 2/Exercicios/Ex048.py | VictorDG00/Cursos | b1411f3179ef17f128c883b0f5a56c2478de45e8 | [
"MIT"
] | null | null | null | cursoEmVideo/Python/Mundo 2/Exercicios/Ex048.py | VictorDG00/Cursos | b1411f3179ef17f128c883b0f5a56c2478de45e8 | [
"MIT"
] | null | null | null | # faça um programa que calcule a soma entre todos os numeros impares que são
# multiplos de 3
# que se encontram no intervalo de 1 até 500
soma = 0
conta = 0
for mult in range(1, 501, 2):
if mult % 3 == 0:
conta = conta + 1
soma = mult + soma
else:
continue
print(soma)
print(conta)
| 22.5 | 76 | 0.631746 | 53 | 315 | 3.754717 | 0.660377 | 0.060302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067568 | 0.295238 | 315 | 13 | 77 | 24.230769 | 0.828829 | 0.419048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bb563ab82a47651f6ed342db5c62f342c6957d9 | 602 | py | Python | hackerearth/Algorithms/A chessboard/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerearth/Algorithms/A chessboard/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerearth/Algorithms/A chessboard/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | """
# Sample code to perform I/O:
name = input() # Reading input from STDIN
print('Hi, %s.' % name) # Writing output to STDOUT
# Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
"""
# Write your code here
t = int(input())
for _ in range(t):
x1,... | 28.666667 | 94 | 0.561462 | 94 | 602 | 3.585106 | 0.595745 | 0.071217 | 0.065282 | 0.094955 | 0.124629 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045767 | 0.274086 | 602 | 20 | 95 | 30.1 | 0.7254 | 0.44186 | 0 | 0 | 0 | 0 | 0.045732 | 0 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1bbe4944ae7d34b442c70d1131dff2bccb2622f5 | 2,851 | py | Python | dashlib/dash_hashs.py | Ecrypty/florijncoinmnb | ad51ddcf19fde140a19dddd2691b2c5e248a4197 | [
"MIT"
] | null | null | null | dashlib/dash_hashs.py | Ecrypty/florijncoinmnb | ad51ddcf19fde140a19dddd2691b2c5e248a4197 | [
"MIT"
] | null | null | null | dashlib/dash_hashs.py | Ecrypty/florijncoinmnb | ad51ddcf19fde140a19dddd2691b2c5e248a4197 | [
"MIT"
] | null | null | null | import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), '.'))
import hashlib
import binascii
from florijncoin_utils import *
def double_sha256(data):
return hashlib.sha256(hashlib.sha256(data).digest()).digest()
def Hash160(msg):
return hashlib.new('ripemd160', hashlib.sha256(msg).dig... | 23.368852 | 74 | 0.636268 | 407 | 2,851 | 4.312039 | 0.238329 | 0.045584 | 0.02963 | 0.02906 | 0.109402 | 0.05698 | 0.037607 | 0 | 0 | 0 | 0 | 0.033625 | 0.238513 | 2,851 | 121 | 75 | 23.561983 | 0.774758 | 0.034374 | 0 | 0.098765 | 0 | 0 | 0.012368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.197531 | false | 0 | 0.061728 | 0.111111 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1bbfd1c15bbb362995b3cade5758a40131012429 | 313 | py | Python | common/request_clients_end.py | eduongAZ/tomcat-baseline-tasks | a913962d1bb19531e734bfe780b2a8b400224741 | [
"MIT"
] | 1 | 2022-01-23T19:29:57.000Z | 2022-01-23T19:29:57.000Z | common/request_clients_end.py | eduongAZ/tomcat-baseline-tasks | a913962d1bb19531e734bfe780b2a8b400224741 | [
"MIT"
] | 34 | 2022-01-18T18:26:15.000Z | 2022-03-31T19:21:28.000Z | common/request_clients_end.py | eduongAZ/tomcat-baseline-tasks | a913962d1bb19531e734bfe780b2a8b400224741 | [
"MIT"
] | 2 | 2022-01-27T05:31:33.000Z | 2022-03-29T20:57:23.000Z | from typing import Optional
from network import send
def request_clients_end(to_client_connections, extra_data: Optional[dict] = None):
data = {}
data["type"] = "request"
data["request"] = "end"
if extra_data is not None:
data.update(extra_data)
send(to_client_connections, data)
| 20.866667 | 82 | 0.693291 | 42 | 313 | 4.952381 | 0.52381 | 0.129808 | 0.182692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204473 | 313 | 14 | 83 | 22.357143 | 0.835341 | 0 | 0 | 0 | 0 | 0 | 0.067093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 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 |
1bc27ba38991ea0bf82b5944e83dd8784e824b5a | 16,006 | py | Python | oscar/lib/python2.7/site-packages/whoosh/lang/stopwords.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/whoosh/lang/stopwords.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/whoosh/lang/stopwords.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | # coding=utf-8
from __future__ import unicode_literals
# Stopwords Corpus
#
# This module contains lists of stop words for several languages. These
# are high-frequency grammatical words which are usually ignored in text
# retrieval applications.
#
# They were obtained from:
# anoncvs.postgresql.org/cvswe... | 55.965035 | 79 | 0.739223 | 2,574 | 16,006 | 4.594794 | 0.839549 | 0.00279 | 0.002029 | 0.002537 | 0.007272 | 0.007272 | 0.007272 | 0.003551 | 0 | 0 | 0 | 0.000247 | 0.241472 | 16,006 | 285 | 80 | 56.161404 | 0.97389 | 0.041297 | 0 | 0.057851 | 0 | 0.012397 | 0.960827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004132 | 0 | 0.004132 | 0 | 0 | 0 | 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 |
1bc2f8439115b71a40ca7eefcc16f636d5d7b38b | 44,372 | py | Python | livegame/livegame.py | elocemearg/atropine | 894010bcc89d4e6962cf3fc15ef526068c38898d | [
"CC-BY-4.0"
] | null | null | null | livegame/livegame.py | elocemearg/atropine | 894010bcc89d4e6962cf3fc15ef526068c38898d | [
"CC-BY-4.0"
] | null | null | null | livegame/livegame.py | elocemearg/atropine | 894010bcc89d4e6962cf3fc15ef526068c38898d | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python
import time;
import curses;
import sys;
import argparse;
import pickle;
import socket;
import threading;
import re;
import string;
import pygame;
import errno;
import os;
# For the server, the list of client sockets connected to us
connected_sockets = [];
connected_sockets_lock = threading.Lock(... | 31.876437 | 174 | 0.67768 | 6,286 | 44,372 | 4.540407 | 0.08161 | 0.025542 | 0.032795 | 0.013875 | 0.432571 | 0.320381 | 0.259697 | 0.21166 | 0.179216 | 0.157878 | 0 | 0.022139 | 0.179505 | 44,372 | 1,391 | 175 | 31.899353 | 0.761804 | 0.029208 | 0 | 0.322385 | 0 | 0 | 0.041904 | 0.000491 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.001729 | 0.010372 | null | null | 0.001729 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1bc73f467c2b2af1c2e8890e1982f7eeb7eb72db | 3,680 | py | Python | pyrene/util.py | krisztianfekete/pyrene | ad9f2fb979f06930399c9c8214c3fe3c2d6efa06 | [
"MIT"
] | null | null | null | pyrene/util.py | krisztianfekete/pyrene | ad9f2fb979f06930399c9c8214c3fe3c2d6efa06 | [
"MIT"
] | 2 | 2015-01-06T09:29:29.000Z | 2015-01-06T09:50:15.000Z | pyrene/util.py | krisztianfekete/pyrene | ad9f2fb979f06930399c9c8214c3fe3c2d6efa06 | [
"MIT"
] | null | null | null | # Py3 compatibility
from __future__ import print_function
from __future__ import unicode_literals
import hashlib
import shutil
import os
import sys
import subprocess
import signal
import contextlib
from tempfile import NamedTemporaryFile
from passlib.apache import HtpasswdFile
import termcolor
import pipes
def red(t... | 23.741935 | 79 | 0.607065 | 438 | 3,680 | 5 | 0.335616 | 0.021918 | 0.034703 | 0.047489 | 0.087671 | 0.032877 | 0.032877 | 0.032877 | 0 | 0 | 0 | 0.005984 | 0.27337 | 3,680 | 154 | 80 | 23.896104 | 0.813014 | 0.019837 | 0 | 0.081081 | 0 | 0 | 0.038472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171171 | false | 0.108108 | 0.126126 | 0.036036 | 0.387387 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1bc8cb107bc84854dfbae5dd3a82d1f88545d9a1 | 718 | py | Python | web/migrations/0014_auto_20200501_1031.py | Hack4Vilnius/getpet-web | b757a6101e70845fddeea88a385acc367a5a58a0 | [
"Apache-2.0"
] | null | null | null | web/migrations/0014_auto_20200501_1031.py | Hack4Vilnius/getpet-web | b757a6101e70845fddeea88a385acc367a5a58a0 | [
"Apache-2.0"
] | 8 | 2019-10-13T01:40:25.000Z | 2022-03-07T20:31:00.000Z | web/migrations/0014_auto_20200501_1031.py | Hack4Vilnius/getpet-web | b757a6101e70845fddeea88a385acc367a5a58a0 | [
"Apache-2.0"
] | 1 | 2022-02-21T07:08:08.000Z | 2022-02-21T07:08:08.000Z | # Generated by Django 3.0.4 on 2020-05-01 10:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('web', '0013_auto_20200501_0956'),
]
operations = [
migrations.AlterField(
model_name='pet',
name='gender',
... | 29.916667 | 154 | 0.579387 | 75 | 718 | 5.453333 | 0.653333 | 0.0978 | 0.122249 | 0.141809 | 0.410758 | 0.410758 | 0.234719 | 0 | 0 | 0 | 0 | 0.067416 | 0.256267 | 718 | 23 | 155 | 31.217391 | 0.698502 | 0.062674 | 0 | 0.352941 | 1 | 0 | 0.166915 | 0.034277 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 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 |
1bc9d4471af7c11c271899d5889582c0c46933c0 | 308 | py | Python | setup.py | Reddan/riprint | da5a012656c295c71ca674a271a7ae72250f93c1 | [
"MIT"
] | 1 | 2020-04-17T09:13:03.000Z | 2020-04-17T09:13:03.000Z | setup.py | Reddan/riprint | da5a012656c295c71ca674a271a7ae72250f93c1 | [
"MIT"
] | null | null | null | setup.py | Reddan/riprint | da5a012656c295c71ca674a271a7ae72250f93c1 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='riprint',
packages=['riprint'],
version='1.0.4',
author='Hampus Hallman',
author_email='me@hampushallman.com',
url='https://github.com/Reddan/riprint',
license='MIT',
install_requires=[
'numpy',
'termcolor'
],
python_requires='~=3.5',
)
| 18.117647 | 42 | 0.655844 | 37 | 308 | 5.378378 | 0.837838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.155844 | 308 | 16 | 43 | 19.25 | 0.746154 | 0 | 0 | 0 | 0 | 0 | 0.350649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bcb09fa8e55868ccf781fc8df90fc2a197697e4 | 563 | py | Python | seglearn/tests/test_util.py | InferiorBrain/seglearn | ca36792cffe6fdaf89e44e6be192704bc79f7f33 | [
"BSD-3-Clause"
] | null | null | null | seglearn/tests/test_util.py | InferiorBrain/seglearn | ca36792cffe6fdaf89e44e6be192704bc79f7f33 | [
"BSD-3-Clause"
] | null | null | null | seglearn/tests/test_util.py | InferiorBrain/seglearn | ca36792cffe6fdaf89e44e6be192704bc79f7f33 | [
"BSD-3-Clause"
] | null | null | null | # Author: David Burns
# License: BSD
import numpy as np
from seglearn.datasets import load_watch
from seglearn.base import TS_Data
from seglearn import util
def test_util():
df = load_watch()
data = TS_Data(df['X'], df['side'])
Xt, Xc = util.get_ts_data_parts(data)
assert np.array_equal(Xc, df['si... | 23.458333 | 83 | 0.650089 | 100 | 563 | 3.49 | 0.43 | 0.08596 | 0.04298 | 0.051576 | 0.063037 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002132 | 0.166963 | 563 | 23 | 84 | 24.478261 | 0.742004 | 0.056838 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1bcc4e944fb599d9b5f7432a2daef4ee43c9abb1 | 8,865 | py | Python | vendor/github.com/containers-ai/api/alameda_api/v1alpha1/datahub/resources/metadata_pb2.py | YungTsun/alameda | 518925fa6455ad2db812d6be08ed94741452c45c | [
"Apache-2.0"
] | null | null | null | vendor/github.com/containers-ai/api/alameda_api/v1alpha1/datahub/resources/metadata_pb2.py | YungTsun/alameda | 518925fa6455ad2db812d6be08ed94741452c45c | [
"Apache-2.0"
] | null | null | null | vendor/github.com/containers-ai/api/alameda_api/v1alpha1/datahub/resources/metadata_pb2.py | YungTsun/alameda | 518925fa6455ad2db812d6be08ed94741452c45c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: alameda_api/v1alpha1/datahub/resources/metadata.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import des... | 39.225664 | 979 | 0.756007 | 1,095 | 8,865 | 5.883105 | 0.174429 | 0.042223 | 0.085688 | 0.089724 | 0.642192 | 0.598261 | 0.572183 | 0.549674 | 0.448463 | 0.391959 | 0 | 0.043294 | 0.119346 | 8,865 | 225 | 980 | 39.4 | 0.781862 | 0.046362 | 0 | 0.547739 | 1 | 0.005025 | 0.270661 | 0.230523 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030151 | 0 | 0.030151 | 0 | 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 |
1bccc4e7740131ddefec4f708ebd075ea44c110b | 4,863 | py | Python | pvder/properties.py | tdcosim/SolarPV-DER-simulation-utility | 03fb1cfd4d255117faced84cf61cd5b7ae59f69f | [
"BSD-3-Clause"
] | 16 | 2019-04-09T19:37:38.000Z | 2020-10-31T04:17:37.000Z | pvder/properties.py | sibyjackgrove/SolarPV-DER-simulation-utility | 03fb1cfd4d255117faced84cf61cd5b7ae59f69f | [
"BSD-3-Clause"
] | 10 | 2019-07-24T16:40:33.000Z | 2021-02-04T20:31:53.000Z | pvder/properties.py | tdcosim/SolarPV-DER-simulation-utility | 03fb1cfd4d255117faced84cf61cd5b7ae59f69f | [
"BSD-3-Clause"
] | 4 | 2019-09-10T20:14:42.000Z | 2020-07-25T23:50:09.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 11 12:43:26 2020
@author: splathottam
"""
import six
if six.PY3:
string_type = (str)
elif six.PY2:
string_type = (str,unicode)
parameter_properties = {"Rf":{'base':'impendance','type':(int,float)},
"Lf":{'base':'inductance','type':(int,float)},
"C":{'base... | 34.735714 | 116 | 0.52519 | 548 | 4,863 | 4.514599 | 0.218978 | 0.175424 | 0.291027 | 0.067906 | 0.20574 | 0.172191 | 0.037187 | 0 | 0 | 0 | 0 | 0.006061 | 0.185688 | 4,863 | 140 | 117 | 34.735714 | 0.618687 | 0.016451 | 0 | 0 | 0 | 0 | 0.379816 | 0.030151 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009091 | 0 | 0.009091 | 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 |
1bd678c370d3a69d2eae62f833f0713979456273 | 5,322 | py | Python | gui/duration_support.py | dungvtdev/upsbayescpm | f6ee877c689046d3c57a2ac06742cfe4a0b6550e | [
"MIT"
] | null | null | null | gui/duration_support.py | dungvtdev/upsbayescpm | f6ee877c689046d3c57a2ac06742cfe4a0b6550e | [
"MIT"
] | null | null | null | gui/duration_support.py | dungvtdev/upsbayescpm | f6ee877c689046d3c57a2ac06742cfe4a0b6550e | [
"MIT"
] | null | null | null | #! /usr/bin/env python
#
# Support module generated by PAGE version 4.8.6
# In conjunction with Tcl version 8.6
# Nov 26, 2016 06:15:06 PM
import sys
from copy import deepcopy
from .utils.table_input import TableInput
from .model import NodeCpdModel, NodeContinuousInterval
try:
from Tkinter import *
except Im... | 25.710145 | 108 | 0.672867 | 774 | 5,322 | 4.339793 | 0.226098 | 0.035725 | 0.026794 | 0.04287 | 0.323608 | 0.228342 | 0.184281 | 0.125037 | 0.106579 | 0.082167 | 0 | 0.009704 | 0.225479 | 5,322 | 206 | 109 | 25.834951 | 0.805192 | 0.068207 | 0 | 0.243243 | 1 | 0 | 0.057634 | 0.035389 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0.013514 | 0.074324 | 0 | 0.202703 | 0.067568 | 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 |
1bd87fc55743fd091c588005cd59bb6360c6acdd | 1,224 | py | Python | test.py | sam-sepi/Lite | e0fbab294501d1a2832a4ebf07665271e7e328bc | [
"MIT"
] | 1 | 2020-02-08T15:28:31.000Z | 2020-02-08T15:28:31.000Z | test.py | sam-sepi/Lite | e0fbab294501d1a2832a4ebf07665271e7e328bc | [
"MIT"
] | null | null | null | test.py | sam-sepi/Lite | e0fbab294501d1a2832a4ebf07665271e7e328bc | [
"MIT"
] | null | null | null | from text_processing import Lite
meta = Lite('metamorphosis.txt')
print(meta.get_tokens()[:10]) # ['one', 'morning', 'when', 'gregor', 'samsa', 'woke', 'from', 'troubled', 'dreams', 'he']
print(meta.get_sentences()[:10])
#['one morning, when gregor samsa woke from troubled dreams, he found himself transformed in his b... | 58.285714 | 158 | 0.703431 | 174 | 1,224 | 4.850575 | 0.45977 | 0.053318 | 0.07109 | 0.07109 | 0.297393 | 0.297393 | 0.297393 | 0.297393 | 0.297393 | 0.297393 | 0 | 0.027855 | 0.120098 | 1,224 | 20 | 159 | 61.2 | 0.755803 | 0.610294 | 0 | 0 | 0 | 0 | 0.149573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
59f710eeac35439d1e93c7c87dbff16b2b4bc590 | 3,462 | py | Python | myRun.py | CollabAttempt/ForkCNN | 1a577c4446b59f29cb4dc9d94410d7c1367c12c8 | [
"MIT"
] | null | null | null | myRun.py | CollabAttempt/ForkCNN | 1a577c4446b59f29cb4dc9d94410d7c1367c12c8 | [
"MIT"
] | 1 | 2020-04-13T05:35:13.000Z | 2020-04-13T05:35:13.000Z | myRun.py | CollabAttempt/ForkCNN | 1a577c4446b59f29cb4dc9d94410d7c1367c12c8 | [
"MIT"
] | 1 | 2020-04-07T08:52:04.000Z | 2020-04-07T08:52:04.000Z | import Data_loader.my_Get_DB as getDb
import Data_loader.my_Generator as myGen
import Models.Test_Model as test_Model
import Models.get_model as get_model
import myUtils.my_Model_Utils as utils
import tensorflow as tf
import os
########### DATA LOADING PARAMETERS ###########
# Data
# [Database: IRIS, I2BVSD, V... | 35.326531 | 151 | 0.645003 | 415 | 3,462 | 5.146988 | 0.373494 | 0.019663 | 0.02809 | 0.02809 | 0.04588 | 0.04588 | 0.04588 | 0.04588 | 0 | 0 | 0 | 0.011036 | 0.188619 | 3,462 | 98 | 152 | 35.326531 | 0.749377 | 0.37175 | 0 | 0 | 0 | 0 | 0.025161 | 0.012848 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.037037 | false | 0 | 0.259259 | 0 | 0.296296 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
59f734b3effdbd2330cbc1e912bb891bb82651bd | 1,048 | py | Python | letsmeet/events/migrations/0011_auto_20170628_2027.py | letsmeet-click/letsmeet.click | e9332fd37b0f9c289453828dcecb12b4203dc439 | [
"MIT"
] | 15 | 2015-12-20T20:29:29.000Z | 2020-01-21T11:49:14.000Z | letsmeet/events/migrations/0011_auto_20170628_2027.py | letsmeet-click/letsmeet.click | e9332fd37b0f9c289453828dcecb12b4203dc439 | [
"MIT"
] | 61 | 2015-12-29T10:23:56.000Z | 2018-06-03T19:58:30.000Z | letsmeet/events/migrations/0011_auto_20170628_2027.py | letsmeet-click/letsmeet.click | e9332fd37b0f9c289453828dcecb12b4203dc439 | [
"MIT"
] | 9 | 2015-12-27T14:48:19.000Z | 2017-10-07T13:40:20.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2017-06-28 18:27
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('locations', '0003_location_homepage'),
('events', '... | 32.75 | 161 | 0.634542 | 112 | 1,048 | 5.776786 | 0.616071 | 0.037094 | 0.043277 | 0.068006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031447 | 0.241412 | 1,048 | 31 | 162 | 33.806452 | 0.78239 | 0.064886 | 0 | 0.208333 | 1 | 0 | 0.237462 | 0.047083 | 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 |
59fd709ad7edd109e2ce8a7d16c8e5c7cc17e1a3 | 263 | py | Python | account/urls.py | Q-R-Code/Atelier_de_soi | 02e0b581368538aa892d850a2f4ef048d0e04c0e | [
"MIT"
] | null | null | null | account/urls.py | Q-R-Code/Atelier_de_soi | 02e0b581368538aa892d850a2f4ef048d0e04c0e | [
"MIT"
] | null | null | null | account/urls.py | Q-R-Code/Atelier_de_soi | 02e0b581368538aa892d850a2f4ef048d0e04c0e | [
"MIT"
] | null | null | null | from django.conf.urls import url
from django.urls import include
from . import views
app_name = 'account'
urlpatterns = [
url(r'^inscription/', views.register, name='register'),
url(r'^connection/', include("django.contrib.auth.urls"), name='login')
]
| 21.916667 | 75 | 0.707224 | 35 | 263 | 5.285714 | 0.542857 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136882 | 263 | 11 | 76 | 23.909091 | 0.814978 | 0 | 0 | 0 | 0 | 0 | 0.262357 | 0.091255 | 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 |
59fe77df1dc41dd32eb3fec63edc56383bdfd103 | 6,329 | py | Python | fakeofx.py | arda2525/fixofx | 1792d94697af682ca1d4a75cfefe98465d95a288 | [
"Apache-2.0"
] | 50 | 2015-01-01T00:14:04.000Z | 2020-11-26T04:44:30.000Z | fakeofx.py | arda2525/fixofx | 1792d94697af682ca1d4a75cfefe98465d95a288 | [
"Apache-2.0"
] | 3 | 2016-01-31T17:14:41.000Z | 2017-03-01T13:36:17.000Z | fakeofx.py | arda2525/fixofx | 1792d94697af682ca1d4a75cfefe98465d95a288 | [
"Apache-2.0"
] | 15 | 2015-10-29T09:04:21.000Z | 2022-01-19T17:33:25.000Z | #!/usr/bin/env python
# Copyright 2005-2010 Wesabe, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 33.136126 | 119 | 0.636119 | 837 | 6,329 | 4.709677 | 0.431302 | 0.02486 | 0.007103 | 0.016235 | 0.050736 | 0.03653 | 0.03653 | 0.03653 | 0.020294 | 0.020294 | 0 | 0.045127 | 0.233212 | 6,329 | 190 | 120 | 33.310526 | 0.767154 | 0.24838 | 0 | 0.037736 | 0 | 0 | 0.195804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075472 | null | null | 0.009434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9405afa66401bad15b4a7575a65768d1c44a64b8 | 357 | py | Python | tests/homework/test_homework9.py | acc-cosc-1336/cosc-1336-spring-2018-zachdiamond000 | 1bcb2b6f75d9b8dd38a77f075f82f541e774411c | [
"MIT"
] | null | null | null | tests/homework/test_homework9.py | acc-cosc-1336/cosc-1336-spring-2018-zachdiamond000 | 1bcb2b6f75d9b8dd38a77f075f82f541e774411c | [
"MIT"
] | null | null | null | tests/homework/test_homework9.py | acc-cosc-1336/cosc-1336-spring-2018-zachdiamond000 | 1bcb2b6f75d9b8dd38a77f075f82f541e774411c | [
"MIT"
] | null | null | null | import unittest
from src.homework.homework9.die import Die
class TestHomework9(unittest.TestCase):
def test_rolls_values_1_to_6(self):
'''
Write a test case to ensure that the Die class only rolls values from 1 to 6
'''
die = Die()
sides = 6
self.assertTru... | 21 | 84 | 0.59944 | 49 | 357 | 4.244898 | 0.591837 | 0.076923 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036885 | 0.316527 | 357 | 16 | 85 | 22.3125 | 0.815574 | 0.212885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9406375424df8da8d6520ca061893ff950b1acfe | 7,154 | py | Python | src/fparser/one/tests/test_do_block_r814.py | sturmianseq/fparser | bf3cba3f31a72671d4d4a93b6ef4f9832006219f | [
"BSD-3-Clause"
] | 33 | 2017-08-18T16:31:27.000Z | 2022-03-28T09:43:50.000Z | src/fparser/one/tests/test_do_block_r814.py | sturmianseq/fparser | bf3cba3f31a72671d4d4a93b6ef4f9832006219f | [
"BSD-3-Clause"
] | 319 | 2017-01-12T14:22:07.000Z | 2022-03-23T20:53:25.000Z | src/fparser/one/tests/test_do_block_r814.py | sturmianseq/fparser | bf3cba3f31a72671d4d4a93b6ef4f9832006219f | [
"BSD-3-Clause"
] | 17 | 2017-10-13T07:12:28.000Z | 2022-02-11T14:42:18.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2019 Science and Technology Facilities Council.
#
# All rights reserved.
#
# Modifications made as part of the fparser project are distributed
# under the following license:
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provi... | 41.836257 | 79 | 0.686888 | 969 | 7,154 | 4.977296 | 0.28999 | 0.013477 | 0.05225 | 0.01327 | 0.491395 | 0.473149 | 0.453867 | 0.453867 | 0.420278 | 0.409496 | 0 | 0.013207 | 0.206178 | 7,154 | 170 | 80 | 42.082353 | 0.836063 | 0.426475 | 0 | 0.637363 | 0 | 0 | 0.165785 | 0.005543 | 0 | 0 | 0 | 0.011765 | 0.021978 | 1 | 0.032967 | false | 0 | 0.065934 | 0 | 0.120879 | 0.021978 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9407f006f11dd294d8856b024a37b6f697422c28 | 1,767 | py | Python | PublishSoe.py | agrc/UDSH-SurveySync | fe7aeeb3ae2dea72d484aef1c2425407dde0e3bd | [
"MIT"
] | 2 | 2016-07-07T15:15:26.000Z | 2020-04-12T14:45:45.000Z | PublishSoe.py | agrc/UDSH-SurveySync | fe7aeeb3ae2dea72d484aef1c2425407dde0e3bd | [
"MIT"
] | 2 | 2015-02-06T20:42:10.000Z | 2015-09-23T23:05:55.000Z | PublishSoe.py | agrc/UDSH-SurveySync | fe7aeeb3ae2dea72d484aef1c2425407dde0e3bd | [
"MIT"
] | null | null | null | import ConfigParser
import requests
from os.path import join
host = 'localhost'
service_name = 'UDSH/SurveySync'
configuration = 'Debug'
configuration = 'Stage'
# configuration = 'Release'
credentials = 'ArcGIS Admin Credentials'
destination = 'Destination'
config = ConfigParser.RawConfigParser()
file = join('./', ... | 25.608696 | 101 | 0.685908 | 222 | 1,767 | 5.373874 | 0.333333 | 0.046102 | 0.036882 | 0.056999 | 0.155071 | 0.118189 | 0.067896 | 0 | 0 | 0 | 0 | 0.010336 | 0.123939 | 1,767 | 68 | 102 | 25.985294 | 0.760336 | 0.014148 | 0 | 0.108696 | 0 | 0.021739 | 0.331609 | 0.045402 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.043478 | 0.065217 | null | null | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9414d966aa61a300ae644b58c00d7db4676c1d6b | 365 | py | Python | keys/bluesky_setup.py | tacaswell/melbourne2018workshop | f1ff2c5589df0ae92a633b2a710597a7f20b1217 | [
"BSD-3-Clause"
] | null | null | null | keys/bluesky_setup.py | tacaswell/melbourne2018workshop | f1ff2c5589df0ae92a633b2a710597a7f20b1217 | [
"BSD-3-Clause"
] | null | null | null | keys/bluesky_setup.py | tacaswell/melbourne2018workshop | f1ff2c5589df0ae92a633b2a710597a7f20b1217 | [
"BSD-3-Clause"
] | 1 | 2018-11-18T21:45:37.000Z | 2018-11-18T21:45:37.000Z | from bluesky import RunEngine
import bluesky.plans as bp
from bluesky.callbacks.best_effort import BestEffortCallback
from bluesky.utils import install_kicker
import matplotlib
from databroker import Broker
matplotlib.use('qt5agg')
install_kicker()
bec = BestEffortCallback()
db = Broker.named('temp')
RE = RunEngine(... | 20.277778 | 60 | 0.810959 | 48 | 365 | 6.104167 | 0.541667 | 0.112628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003067 | 0.106849 | 365 | 17 | 61 | 21.470588 | 0.895706 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9415481ea157d84ccba4d43e58b2a38c6d3f309d | 785 | py | Python | Menu/migrations/0002_auto_20210916_0113.py | PopaGabriel/Food-Ecommerce-Site | 7f7cde94939f02f13df5afa865cddc72981481e2 | [
"MIT"
] | 1 | 2021-08-12T08:46:56.000Z | 2021-08-12T08:46:56.000Z | Menu/migrations/0002_auto_20210916_0113.py | PopaGabriel/Food-Ecommerce-Site | 7f7cde94939f02f13df5afa865cddc72981481e2 | [
"MIT"
] | null | null | null | Menu/migrations/0002_auto_20210916_0113.py | PopaGabriel/Food-Ecommerce-Site | 7f7cde94939f02f13df5afa865cddc72981481e2 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-09-15 22:13
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Restaurants', '0001_initial'),
('Menu', '0001_initial'),
]
operations = [
migrations.RemoveField(
... | 26.166667 | 135 | 0.587261 | 78 | 785 | 5.807692 | 0.564103 | 0.05298 | 0.06181 | 0.09713 | 0.163355 | 0.163355 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0.287898 | 785 | 29 | 136 | 27.068966 | 0.763864 | 0.057325 | 0 | 0.304348 | 1 | 0 | 0.138211 | 0.02981 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
941c74874b0286a1d4c0c6b13ce6632e0165f40a | 479 | py | Python | pygeofilter/parsers/fes/parser.py | rsmith013/pygeofilter | cf3ac068d37a0895a3f88e2aa3a7d375911acc0b | [
"MIT"
] | null | null | null | pygeofilter/parsers/fes/parser.py | rsmith013/pygeofilter | cf3ac068d37a0895a3f88e2aa3a7d375911acc0b | [
"MIT"
] | null | null | null | pygeofilter/parsers/fes/parser.py | rsmith013/pygeofilter | cf3ac068d37a0895a3f88e2aa3a7d375911acc0b | [
"MIT"
] | null | null | null | from typing import Union
from lxml import etree
from .v11 import FES11Parser
from .v20 import FES20Parser
def parse(xml: Union[str, etree._Element]):
if isinstance(xml, str):
xml = etree.fromstring(xml)
# decide upon namespace which parser to use
namespace = etree.QName(xml).namespace
if na... | 25.210526 | 47 | 0.707724 | 59 | 479 | 5.728814 | 0.474576 | 0.071006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041995 | 0.204593 | 479 | 18 | 48 | 26.611111 | 0.845144 | 0.085595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | 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 |
942535fbe894d98a188d324d0a3f0fd8f0e92b33 | 2,747 | py | Python | pylgmath/se3/transformation_with_covariance.py | utiasASRL/pylgmath | b392f9960c2b12758bd05a639966f161240282cb | [
"BSD-3-Clause"
] | 3 | 2021-11-11T17:54:35.000Z | 2021-12-09T01:44:16.000Z | pylgmath/se3/transformation_with_covariance.py | utiasASRL/pylgmath | b392f9960c2b12758bd05a639966f161240282cb | [
"BSD-3-Clause"
] | null | null | null | pylgmath/se3/transformation_with_covariance.py | utiasASRL/pylgmath | b392f9960c2b12758bd05a639966f161240282cb | [
"BSD-3-Clause"
] | null | null | null | from __future__ import annotations
from typing import Optional
import numpy as np
from .transformation import Transformation
class TransformationWithCovariance(Transformation):
"""Light weight transformation class with added covariance propagation."""
def __init__(self,
*,
tran_w_... | 36.626667 | 114 | 0.701493 | 336 | 2,747 | 5.502976 | 0.267857 | 0.113575 | 0.073553 | 0.021092 | 0.163332 | 0.023797 | 0 | 0 | 0 | 0 | 0 | 0.007343 | 0.206771 | 2,747 | 74 | 115 | 37.121622 | 0.841212 | 0.311613 | 0 | 0.119048 | 0 | 0 | 0.020363 | 0 | 0 | 0 | 0 | 0.013514 | 0.02381 | 1 | 0.142857 | false | 0 | 0.095238 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
942fe8fc54e239bb8abeda8d0114d0ba9824046e | 2,447 | py | Python | ande/say/__init__.py | askender/anwen.in | b5233f243b6fb16f99b2008f58a03d0dc5024a9b | [
"MIT"
] | 2 | 2015-02-06T02:45:18.000Z | 2016-03-17T10:20:10.000Z | ande/say/__init__.py | askender/anwen.in | b5233f243b6fb16f99b2008f58a03d0dc5024a9b | [
"MIT"
] | null | null | null | ande/say/__init__.py | askender/anwen.in | b5233f243b6fb16f99b2008f58a03d0dc5024a9b | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
import random
import json
import urllib
def firstmeet():
firsthello_list = ['Hello', 'Hi']
firsthello = random.choice(firsthello_list)
return firsthello
def expression():
normal = ['~', '~~~']
normal = random.choice(normal)
return normal
def hello... | 29.130952 | 122 | 0.548427 | 313 | 2,447 | 4.178914 | 0.316294 | 0.069572 | 0.06422 | 0.067278 | 0.103976 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02593 | 0.275031 | 2,447 | 83 | 123 | 29.481928 | 0.711387 | 0.008173 | 0 | 0 | 0 | 0.015385 | 0.215201 | 0.017506 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046154 | null | null | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.