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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9ec1dfaa812a8033960bf817e972366970aac6be | 2,102 | py | Python | script/restful.py | yc19890920/DBlog | c0128ab8c767ff84b7858322b76440d6359a8373 | [
"MIT"
] | 2 | 2018-01-23T14:12:04.000Z | 2019-09-24T13:00:31.000Z | script/restful.py | yc19890920/DBlog | c0128ab8c767ff84b7858322b76440d6359a8373 | [
"MIT"
] | 23 | 2020-02-12T02:35:49.000Z | 2022-02-11T03:45:40.000Z | script/restful.py | yc19890920/dblog | c0128ab8c767ff84b7858322b76440d6359a8373 | [
"MIT"
] | 2 | 2020-04-08T15:39:46.000Z | 2020-10-10T10:13:09.000Z | # -*- coding: utf-8 -*-
#
import requests
import json
import requests
from urlparse import urljoin
BASE_URL = 'http://192.168.1.24:8080'
AUTH = ('admin', '1qaz@WSX')
def get_tag_list():
url = urljoin(BASE_URL, '/rest/tag/')
url = "http://192.168.1.24:8080/rest/tag/?limit=10&offset=10"
... | 23.617978 | 66 | 0.543768 | 250 | 2,102 | 4.416 | 0.224 | 0.13587 | 0.082428 | 0.081522 | 0.699275 | 0.609601 | 0.53442 | 0.498188 | 0.498188 | 0.498188 | 0 | 0.026585 | 0.302093 | 2,102 | 89 | 67 | 23.617978 | 0.725971 | 0.079448 | 0 | 0.508197 | 0 | 0.016393 | 0.227669 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065574 | null | null | 0.131148 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7b36e65ed3530b99bcc3bbcb50f2ba91880134da | 918 | py | Python | src/test/factor.py | energietransitie/twomes-backoffice-api | e3d9da135394724dea341fd343079c599d5c1fb2 | [
"Apache-2.0"
] | null | null | null | src/test/factor.py | energietransitie/twomes-backoffice-api | e3d9da135394724dea341fd343079c599d5c1fb2 | [
"Apache-2.0"
] | null | null | null | src/test/factor.py | energietransitie/twomes-backoffice-api | e3d9da135394724dea341fd343079c599d5c1fb2 | [
"Apache-2.0"
] | null | null | null | from factory import post_generation, Sequence
from factory.alchemy import SQLAlchemyModelFactory
from test.common import session
import model
class DeviceTypeFactory(SQLAlchemyModelFactory):
class Meta:
model = model.DeviceType
sqlalchemy_session = session
name = Sequence(lambda n: f'device... | 26.228571 | 75 | 0.672113 | 101 | 918 | 6.049505 | 0.524752 | 0.06874 | 0.07365 | 0.07856 | 0.278232 | 0.144026 | 0.144026 | 0.144026 | 0 | 0 | 0 | 0 | 0.255991 | 918 | 34 | 76 | 27 | 0.894583 | 0.076253 | 0 | 0.181818 | 0 | 0 | 0.057988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.181818 | 0 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7b3894551e94dec8d83365903e86a1a10369e162 | 624 | py | Python | base/models.py | SmartIoT-eu/OpenCV | 126b271ea1d3960c3a9a206f41cc7e21c0d7e5ff | [
"MIT"
] | null | null | null | base/models.py | SmartIoT-eu/OpenCV | 126b271ea1d3960c3a9a206f41cc7e21c0d7e5ff | [
"MIT"
] | 10 | 2020-07-21T12:53:04.000Z | 2022-02-10T08:46:58.000Z | base/models.py | SmartIoT-eu/OpenCV | 126b271ea1d3960c3a9a206f41cc7e21c0d7e5ff | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Profile(models.Model):
name = models.CharField(max_length=200, verbose_name="Nombre")
info = models.TextField(verbose_name="Información")
image = models.ImageField(verbose_name="Image",upload_to="base")
created = models.DateTimeField(auto_no... | 36.705882 | 87 | 0.713141 | 77 | 624 | 5.558442 | 0.597403 | 0.179907 | 0.107477 | 0.121495 | 0.102804 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005837 | 0.176282 | 624 | 16 | 88 | 39 | 0.826848 | 0.038462 | 0 | 0 | 0 | 0 | 0.144054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0.076923 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7b41f99d6b859229332813113f8b3e7430b3705e | 1,171 | py | Python | shanghai/apis.py | nukes327/shanghai | e43a3210b8ca86dc438f11a9ef4a13d67a65756c | [
"MIT"
] | null | null | null | shanghai/apis.py | nukes327/shanghai | e43a3210b8ca86dc438f11a9ef4a13d67a65756c | [
"MIT"
] | null | null | null | shanghai/apis.py | nukes327/shanghai | e43a3210b8ca86dc438f11a9ef4a13d67a65756c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Contains methods that reference APIs used by bot."""
import configparser
from functools import lru_cache
import logging
import pixivpy3 # type: ignore
from .exceptions import APIError
@lru_cache(maxsize=32)
def pixiv_tags(illust_id: int, conf: configparser.Sectio... | 30.025641 | 85 | 0.689155 | 154 | 1,171 | 5.142857 | 0.564935 | 0.040404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007431 | 0.195559 | 1,171 | 38 | 86 | 30.815789 | 0.833333 | 0.289496 | 0 | 0 | 0 | 0 | 0.172762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.105263 | 0.263158 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7b45de522406b28bfadee9ccf68214135023fba3 | 3,601 | py | Python | ops-challenge/ops-challenge13.py | jinwoov/OPS301 | 11e9afe7bb49e1de548e95a11d836dd87ba98a28 | [
"MIT"
] | null | null | null | ops-challenge/ops-challenge13.py | jinwoov/OPS301 | 11e9afe7bb49e1de548e95a11d836dd87ba98a28 | [
"MIT"
] | null | null | null | ops-challenge/ops-challenge13.py | jinwoov/OPS301 | 11e9afe7bb49e1de548e95a11d836dd87ba98a28 | [
"MIT"
] | 1 | 2020-09-03T17:12:14.000Z | 2020-09-03T17:12:14.000Z | #!/usr/bin/python
from requests import get, post, put, delete, head, patch, options, auth
## library utilized to get current user's username
import getpass
import os
import time
# Script Name: Ops Challenge: Class 13
# Author: Jin Kim
# Date of last revision: 09/16/2020
# Description of purpose: To perform HTTP proto... | 31.043103 | 129 | 0.646765 | 473 | 3,601 | 4.911205 | 0.414376 | 0.033147 | 0.033577 | 0.018941 | 0.138614 | 0.116229 | 0.116229 | 0.061989 | 0.030133 | 0 | 0 | 0.022326 | 0.228825 | 3,601 | 116 | 130 | 31.043103 | 0.814188 | 0.199111 | 0 | 0.181818 | 0 | 0.012987 | 0.273142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103896 | false | 0.116883 | 0.051948 | 0 | 0.25974 | 0.155844 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7b569d4c034cd182063626cad68da6fd40ec6f1d | 1,548 | py | Python | hale_hub/models.py | tantinlala/hale-hub | da2e6d24e3869ee533d2e272ce87b9e7eede9a79 | [
"MIT"
] | null | null | null | hale_hub/models.py | tantinlala/hale-hub | da2e6d24e3869ee533d2e272ce87b9e7eede9a79 | [
"MIT"
] | null | null | null | hale_hub/models.py | tantinlala/hale-hub | da2e6d24e3869ee533d2e272ce87b9e7eede9a79 | [
"MIT"
] | null | null | null | from hale_hub.extensions import db
from hale_hub.constants import MAX_STRING_LENGTH
class RoomStatModel(db.Model):
"""Table containing statistics on rooms around house. Different variables should be grouped together around
the same lock-stepped time frame"""
id = db.Column(db.Integer, primary_key=True)
... | 45.529412 | 132 | 0.685401 | 209 | 1,548 | 4.91866 | 0.282297 | 0.101167 | 0.126459 | 0.108949 | 0.611868 | 0.56323 | 0.530156 | 0.465953 | 0.363813 | 0.321012 | 0 | 0 | 0.197028 | 1,548 | 33 | 133 | 46.909091 | 0.827031 | 0.109173 | 0 | 0.454545 | 0 | 0.045455 | 0.071848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0.090909 | 0.954545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7b614a22708a645ef69d75b5afc0d8e16aaaa654 | 25,055 | py | Python | chess.py | asomfai/pgn_compress | 34d89805759196492d10d6521f35e2ab69b6dd99 | [
"MIT"
] | null | null | null | chess.py | asomfai/pgn_compress | 34d89805759196492d10d6521f35e2ab69b6dd99 | [
"MIT"
] | null | null | null | chess.py | asomfai/pgn_compress | 34d89805759196492d10d6521f35e2ab69b6dd99 | [
"MIT"
] | null | null | null | from decimal import *
import math
import string
import colorama
import sys
import copy
colorama.init()
# rows and columns are indexed by numbers [0:7]
#DONE: fill default board
#DONE: read a play from a file
#DONE: castling
#DONE: fix castling
#DONE: play back and check every steps validity
#DONE: generate numeric c... | 28.088565 | 157 | 0.676911 | 4,042 | 25,055 | 4.064077 | 0.091786 | 0.006696 | 0.007792 | 0.006209 | 0.322822 | 0.258294 | 0.223534 | 0.176904 | 0.143909 | 0.112802 | 0 | 0.013401 | 0.160128 | 25,055 | 891 | 158 | 28.12009 | 0.767239 | 0.125763 | 0 | 0.267188 | 0 | 0 | 0.045378 | 0 | 0 | 0 | 0 | 0.001122 | 0.010938 | 0 | null | null | 0.01875 | 0.009375 | null | null | 0.046875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7b628f4162eed10aa1760079702295808c578095 | 240 | py | Python | pytransmit/__init__.py | ajknzhol/PyTransmit | 74f6cee561e648fd3cb398289213fe072e948493 | [
"BSD-3-Clause"
] | 1 | 2019-04-20T02:24:01.000Z | 2019-04-20T02:24:01.000Z | pytransmit/__init__.py | ajkumar25/PyTransmit | 74f6cee561e648fd3cb398289213fe072e948493 | [
"BSD-3-Clause"
] | null | null | null | pytransmit/__init__.py | ajkumar25/PyTransmit | 74f6cee561e648fd3cb398289213fe072e948493 | [
"BSD-3-Clause"
] | 1 | 2019-04-03T10:33:30.000Z | 2019-04-03T10:33:30.000Z | """
PyTransmit
=======
PyTransmit is a flexible FTPClient library for python web development.
:copyright: Copyright (c) 2014 by Ajay Kumar N.
:license: BSD, see LICENSE.txt for details.
"""
from ftp import FTPClient
__version__ = '0.1'
| 17.142857 | 70 | 0.720833 | 33 | 240 | 5.121212 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.1625 | 240 | 13 | 71 | 18.461538 | 0.810945 | 0.7625 | 0 | 0 | 0 | 0 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
7b6d2731fb369f0187490b10c102dbf82d51be0f | 663 | py | Python | HMC5883L_constants.py | chisl/HMC5883L-py2 | f0ef9a3a9787ac5b613b0150f62fce15d3ba81bb | [
"MIT"
] | null | null | null | HMC5883L_constants.py | chisl/HMC5883L-py2 | f0ef9a3a9787ac5b613b0150f62fce15d3ba81bb | [
"MIT"
] | null | null | null | HMC5883L_constants.py | chisl/HMC5883L-py2 | f0ef9a3a9787ac5b613b0150f62fce15d3ba81bb | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""HMC5883L: Surface-mount, multi-chip module designed for low-field magnetic sensing with a digital interface for applications such as lowcost compassing and magnetometry"""
__author__ = "ChISL"
__copyright__ = "TBD"
__credits__ = ["Honeywell"]
__license__ = "... | 23.678571 | 174 | 0.668175 | 87 | 663 | 4.724138 | 0.862069 | 0.034063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03301 | 0.223228 | 663 | 27 | 175 | 24.555556 | 0.765049 | 0.429864 | 0 | 0 | 0 | 0 | 0.174387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7b73bfbddcf5e5aa3c716e11daf827f3f7b28ca6 | 500 | py | Python | jsb/plugs/core/welcome.py | NURDspace/jsonbot | 400dce602700a93db80e10707c3785a0fbdfaaeb | [
"MIT"
] | 1 | 2019-04-12T12:20:12.000Z | 2019-04-12T12:20:12.000Z | jsb/plugs/core/welcome.py | Petraea/jsonbot | 04a3a0c586a8a1a3b0e5316d10cda16df9be415b | [
"MIT"
] | null | null | null | jsb/plugs/core/welcome.py | Petraea/jsonbot | 04a3a0c586a8a1a3b0e5316d10cda16df9be415b | [
"MIT"
] | 1 | 2020-05-06T18:46:53.000Z | 2020-05-06T18:46:53.000Z | # jsb/plugs/core/welcome.py
#
#
""" send welcome message. """
## jsb imports
from jsb.lib.commands import cmnds
from jsb.lib.examples import examples
## welcome command
def handle_welcome(bot, event):
""" no arguments - display welcome message. """
event.reply("Welcome to JSONBOT - you can give this bot co... | 25 | 121 | 0.684 | 68 | 500 | 5 | 0.588235 | 0.064706 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158 | 500 | 19 | 122 | 26.315789 | 0.807601 | 0.236 | 0 | 0 | 0 | 0.166667 | 0.418733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7b7dc055b79c3210bc75d8c10280817055243e30 | 542 | py | Python | config.py | epfl-dlab/GenIE | 62ae6af936c9375c36d3d5ad60401bf579875bd9 | [
"MIT"
] | 8 | 2022-02-08T11:12:37.000Z | 2022-03-16T08:27:50.000Z | config.py | epfl-dlab/GenIE | 62ae6af936c9375c36d3d5ad60401bf579875bd9 | [
"MIT"
] | 1 | 2022-03-07T07:36:24.000Z | 2022-03-07T20:58:12.000Z | config.py | epfl-dlab/GenIE | 62ae6af936c9375c36d3d5ad60401bf579875bd9 | [
"MIT"
] | 7 | 2022-02-22T22:48:35.000Z | 2022-03-18T05:18:30.000Z | # TODO: remove all references to this file and replace with hydra params
import os
# os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
# os.environ["CUDA_VISIBLE_DEVICES"] = "2"
# os.environ["HYDRA_FULL_ERROR"] = "1"
# directories
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
DATA_DIR = os.path.join(BASE_DIR, "d... | 38.714286 | 88 | 0.773063 | 89 | 542 | 4.370787 | 0.483146 | 0.107969 | 0.077121 | 0.071979 | 0.169666 | 0.169666 | 0.169666 | 0.169666 | 0 | 0 | 0 | 0.004073 | 0.094096 | 542 | 13 | 89 | 41.692308 | 0.788187 | 0.490775 | 0 | 0 | 0 | 0 | 0.200743 | 0.118959 | 0 | 0 | 0 | 0.076923 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7b7f7d2e1f1b05f01909f84eca92f9fe59c9349c | 1,182 | py | Python | test_unique_binary_search_trees.py | brigitteunger/katas | 3f9af88fe5d98753360457084741f573c863dc25 | [
"MIT"
] | null | null | null | test_unique_binary_search_trees.py | brigitteunger/katas | 3f9af88fe5d98753360457084741f573c863dc25 | [
"MIT"
] | null | null | null | test_unique_binary_search_trees.py | brigitteunger/katas | 3f9af88fe5d98753360457084741f573c863dc25 | [
"MIT"
] | null | null | null | import unittest
import math
class Solution:
def numTrees(self, n: int) -> int:
if n < 1:
return 0
total_num = (math.factorial(2*n) /
(math.factorial(n+1)*math.factorial(n)))
return int(total_num)
class TestNumTrees(unittest.TestCase):
def setUp(self):... | 18.761905 | 61 | 0.58291 | 163 | 1,182 | 3.981595 | 0.208589 | 0.172573 | 0.09245 | 0.138675 | 0.434515 | 0.434515 | 0.434515 | 0.434515 | 0.434515 | 0.434515 | 0 | 0.036765 | 0.309645 | 1,182 | 62 | 62 | 19.064516 | 0.758578 | 0 | 0 | 0.157895 | 0 | 0 | 0.006768 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.210526 | false | 0 | 0.052632 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7b825666758cfd96abecc73082ca87934214bacd | 1,774 | py | Python | blox_old/persistence/persisters/port.py | vladstreltsin/blox | 2822b84220e512c8012b1b4ec51d6e534bd4d652 | [
"MIT"
] | null | null | null | blox_old/persistence/persisters/port.py | vladstreltsin/blox | 2822b84220e512c8012b1b4ec51d6e534bd4d652 | [
"MIT"
] | null | null | null | blox_old/persistence/persisters/port.py | vladstreltsin/blox | 2822b84220e512c8012b1b4ec51d6e534bd4d652 | [
"MIT"
] | null | null | null | from blox_old.core.persistence.base import Persister, PersisterError
from blox_old.utils import join_not_none
from blox_old.core.block.base import Port
from blox_old.core.engine import Session, DefaultDevice
class PortPersister(Persister):
def can_save(self, obj, *args, **kwargs):
return super(PortPersis... | 39.422222 | 98 | 0.671364 | 242 | 1,774 | 4.809917 | 0.243802 | 0.051546 | 0.037801 | 0.03866 | 0.463918 | 0.431271 | 0.369416 | 0.369416 | 0.30756 | 0.225086 | 0 | 0 | 0.215896 | 1,774 | 44 | 99 | 40.318182 | 0.836808 | 0.02593 | 0 | 0.2 | 0 | 0 | 0.1292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.066667 | 0.133333 | 0.066667 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7b865bc5d4b445244ba591d8c7828f2e7a8fefe9 | 338 | py | Python | deep_types/face_swap.py | Guuzzeji/opencv-py-meme-face | 8654e64f2183e115e690b788a72e4f88bbe49b8e | [
"MIT"
] | null | null | null | deep_types/face_swap.py | Guuzzeji/opencv-py-meme-face | 8654e64f2183e115e690b788a72e4f88bbe49b8e | [
"MIT"
] | null | null | null | deep_types/face_swap.py | Guuzzeji/opencv-py-meme-face | 8654e64f2183e115e690b788a72e4f88bbe49b8e | [
"MIT"
] | null | null | null | def change(img2_head_mask, img2, cv2, convexhull2, result):
(x, y, w, h) = cv2.boundingRect(convexhull2)
center_face2 = (int((x + x + w) / 2), int((y + y + h) / 2))
#can change it to Mix_clone
seamlessclone = cv2.seamlessClone(result, img2, img2_head_mask, center_face2, cv2.NORMAL_CLONE)
re... | 42.25 | 100 | 0.662722 | 49 | 338 | 4.408163 | 0.510204 | 0.074074 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052239 | 0.207101 | 338 | 8 | 101 | 42.25 | 0.753731 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7b88de13ff32039be3a5fe332372aca4aeb45906 | 572 | py | Python | openbook_posts/migrations/0003_postreaction_emoji.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 164 | 2019-07-29T17:59:06.000Z | 2022-03-19T21:36:01.000Z | openbook_posts/migrations/0003_postreaction_emoji.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 188 | 2019-03-16T09:53:25.000Z | 2019-07-25T14:57:24.000Z | openbook_posts/migrations/0003_postreaction_emoji.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 80 | 2019-08-03T17:49:08.000Z | 2022-02-28T16:56:33.000Z | # Generated by Django 2.1.2 on 2018-10-22 12:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('openbook_posts', '0002_auto_20181022_1406'),
]
operations = [
migrations.AddField(
model_name='... | 27.238095 | 157 | 0.662587 | 64 | 572 | 5.78125 | 0.671875 | 0.064865 | 0.075676 | 0.118919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072235 | 0.225524 | 572 | 20 | 158 | 28.6 | 0.76298 | 0.078671 | 0 | 0 | 1 | 0 | 0.180952 | 0.104762 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7b8a6308c597d25c75283e6aa1a41bdd6d6136e4 | 7,842 | py | Python | raster_array_funcs.py | uva-hydroinformatics/wetland_identification | 21b797eec1f4babe5c4fb53441bc256385dc2094 | [
"MIT"
] | 2 | 2020-12-23T17:56:48.000Z | 2021-02-01T20:16:05.000Z | raster_array_funcs.py | uva-hydroinformatics/wetland_identification | 21b797eec1f4babe5c4fb53441bc256385dc2094 | [
"MIT"
] | null | null | null | raster_array_funcs.py | uva-hydroinformatics/wetland_identification | 21b797eec1f4babe5c4fb53441bc256385dc2094 | [
"MIT"
] | 1 | 2020-04-28T21:48:40.000Z | 2020-04-28T21:48:40.000Z | from osgeo import gdal, gdal_array, ogr
import numpy as np
import pandas as pd
import subprocess
import sys
import wetland_id_defaults as default
import scipy
from scipy import stats
import os
import time
def geotif_to_array(path_to_file):
if path_to_file[-3:] != "tif":
print "Wetland ID tool ... | 37.884058 | 140 | 0.615532 | 1,153 | 7,842 | 3.947095 | 0.224631 | 0.027686 | 0.03296 | 0.026368 | 0.357064 | 0.32806 | 0.293782 | 0.282795 | 0.26236 | 0.26236 | 0 | 0.016618 | 0.263326 | 7,842 | 206 | 141 | 38.067961 | 0.771162 | 0.216654 | 0 | 0.280992 | 0 | 0.016529 | 0.113582 | 0 | 0 | 0 | 0 | 0.004854 | 0 | 0 | null | null | 0 | 0.082645 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7b8b8185919e62ae903f718ddd9baeaf700835ff | 1,092 | py | Python | multipass/test___init__.py | c-goes/python-multipass | 06ddf9fc37da5eeaefd6dc4859fa5a37e5c97c54 | [
"MIT"
] | null | null | null | multipass/test___init__.py | c-goes/python-multipass | 06ddf9fc37da5eeaefd6dc4859fa5a37e5c97c54 | [
"MIT"
] | null | null | null | multipass/test___init__.py | c-goes/python-multipass | 06ddf9fc37da5eeaefd6dc4859fa5a37e5c97c54 | [
"MIT"
] | null | null | null | import subprocess
from unittest import TestCase
import multipass
class Test(TestCase):
def test_launch(self):
try:
delete = multipass.delete('pymultipassunittest')
except subprocess.CalledProcessError:
pass
launch: bytes = multipass.launch("pymultipassunittest")
... | 42 | 105 | 0.667582 | 104 | 1,092 | 6.971154 | 0.365385 | 0.082759 | 0.115862 | 0.06069 | 0.333793 | 0.256552 | 0.256552 | 0.176552 | 0 | 0 | 0 | 0.026838 | 0.215201 | 1,092 | 26 | 106 | 42 | 0.819137 | 0 | 0 | 0.416667 | 0 | 0 | 0.256176 | 0.096066 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.083333 | false | 0.541667 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7b92df5303295a0f240370a6aeada402216f0df3 | 248 | py | Python | ABC/abc001-abc050/abc034/a.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 2 | 2020-06-12T09:54:23.000Z | 2021-05-04T01:34:07.000Z | ABC/abc001-abc050/abc034/a.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 961 | 2020-06-23T07:26:22.000Z | 2022-03-31T21:34:52.000Z | ABC/abc001-abc050/abc034/a.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | null | null | null | '''input
98 56
Worse
12 34
Better
'''
# -*- coding: utf-8 -*-
# AtCoder Beginner Contest
# Problem A
if __name__ == '__main__':
x, y = list(map(int, input().split()))
if x < y:
print('Better')
else:
print('Worse')
| 11.272727 | 42 | 0.53629 | 33 | 248 | 3.787879 | 0.787879 | 0.032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050562 | 0.282258 | 248 | 21 | 43 | 11.809524 | 0.651685 | 0.358871 | 0 | 0 | 0 | 0 | 0.127517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7b9edbdf341469dac9bb47b805fc548151323661 | 517 | py | Python | tests/benchmarks/test_bench_oscillators.py | luciotorre/synthingie | 77872b6c63d26002fcb705b48bedc6bcd1c3828e | [
"BSD-3-Clause"
] | 6 | 2020-05-23T18:40:35.000Z | 2021-02-16T21:01:08.000Z | tests/benchmarks/test_bench_oscillators.py | luciotorre/synthingie | 77872b6c63d26002fcb705b48bedc6bcd1c3828e | [
"BSD-3-Clause"
] | null | null | null | tests/benchmarks/test_bench_oscillators.py | luciotorre/synthingie | 77872b6c63d26002fcb705b48bedc6bcd1c3828e | [
"BSD-3-Clause"
] | 2 | 2020-05-11T13:41:33.000Z | 2020-06-27T16:35:47.000Z | import synthingie.oscillators as osc
def test_sin(benchmark):
sin = osc.Sin(440)
sin.configure()
benchmark(sin)
def test_saw(benchmark):
saw = osc.Saw(440)
saw.configure()
benchmark(saw)
def test_square(benchmark):
sq = osc.Square(440)
sq.configure()
benchmark(sq)
def test_na... | 16.15625 | 36 | 0.67118 | 66 | 517 | 5.151515 | 0.287879 | 0.102941 | 0.1 | 0.117647 | 0.188235 | 0.188235 | 0.188235 | 0 | 0 | 0 | 0 | 0.029412 | 0.210832 | 517 | 31 | 37 | 16.677419 | 0.803922 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.047619 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ba1e9bcef767435fd6712b5d7dbb7493d7275b2 | 5,272 | py | Python | pypy/translator/oosupport/test_template/builtin.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 12 | 2016-01-06T07:10:28.000Z | 2021-05-13T23:02:02.000Z | pypy/translator/oosupport/test_template/builtin.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | null | null | null | pypy/translator/oosupport/test_template/builtin.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 2 | 2016-07-29T07:09:50.000Z | 2016-10-16T08:50:26.000Z | import os, math
import errno
import stat
from py.builtin import sorted
from pypy.tool import udir
from pypy.rpython.test.test_rbuiltin import BaseTestRbuiltin
from pypy.rpython.module.test.test_ll_time import BaseTestTime as llBaseTestTime
class BaseTestBuiltin(BaseTestRbuiltin):
def test_os_flags(self):
... | 32.95 | 86 | 0.544954 | 715 | 5,272 | 3.87972 | 0.243357 | 0.042898 | 0.042177 | 0.019827 | 0.316871 | 0.234679 | 0.14708 | 0.116438 | 0.062004 | 0.062004 | 0 | 0.021451 | 0.327959 | 5,272 | 159 | 87 | 33.157233 | 0.761502 | 0.06563 | 0 | 0.244444 | 0 | 0 | 0.044133 | 0.005898 | 0 | 0 | 0.003254 | 0 | 0.111111 | 0 | null | null | 0.02963 | 0.066667 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ba6ddc59af7d53a8f3eaee0b39faba368ec8bf6 | 810 | py | Python | scripts/crb/single-particle-vs-radius.py | Jdudre/peri | 98fc046e3e0d50017eb6b242b3b84b3e0fbaa00e | [
"MIT"
] | 9 | 2017-12-02T08:20:50.000Z | 2020-08-07T07:03:04.000Z | scripts/crb/single-particle-vs-radius.py | Jdudre/peri | 98fc046e3e0d50017eb6b242b3b84b3e0fbaa00e | [
"MIT"
] | 10 | 2017-02-28T18:55:39.000Z | 2019-08-08T16:09:22.000Z | scripts/crb/single-particle-vs-radius.py | Jdudre/peri | 98fc046e3e0d50017eb6b242b3b84b3e0fbaa00e | [
"MIT"
] | 7 | 2017-10-30T14:50:38.000Z | 2019-04-14T00:28:17.000Z | import numpy as np
import pylab as pl
from peri.test import init
crbs = []
rads = np.arange(1, 10, 1./5)
rads = np.linspace(1, 10, 39)
rads = np.logspace(0, 1, 50)
s = init.create_single_particle_state(imsize=64, radius=1, sigma=0.05)
blocks = s.blocks_particle(0)
for rad in rads:
print "Radius", rad
s.upda... | 23.823529 | 70 | 0.62716 | 147 | 810 | 3.421769 | 0.421769 | 0.063618 | 0.095427 | 0.127237 | 0.071571 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049563 | 0.153086 | 810 | 33 | 71 | 24.545455 | 0.683673 | 0 | 0 | 0 | 0 | 0 | 0.064198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115385 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7ba95b741b30935a4684601b3f7ee5e2ce144837 | 735 | py | Python | expenseApp/migrations/0002_auto_20181020_1538.py | cs-fullstack-fall-2018/project3-django-jpark1914 | 53bca13243d7e50263ec25b2fb8a299a8bbada1c | [
"Apache-2.0"
] | null | null | null | expenseApp/migrations/0002_auto_20181020_1538.py | cs-fullstack-fall-2018/project3-django-jpark1914 | 53bca13243d7e50263ec25b2fb8a299a8bbada1c | [
"Apache-2.0"
] | null | null | null | expenseApp/migrations/0002_auto_20181020_1538.py | cs-fullstack-fall-2018/project3-django-jpark1914 | 53bca13243d7e50263ec25b2fb8a299a8bbada1c | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.6 on 2018-10-20 15:38
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('expenseApp', '0001_initial'),
]
operations = [
migrations.AlterField(
mode... | 28.269231 | 108 | 0.627211 | 83 | 735 | 5.46988 | 0.518072 | 0.039648 | 0.052863 | 0.066079 | 0.506608 | 0.480176 | 0.480176 | 0.480176 | 0.251101 | 0.251101 | 0 | 0.107861 | 0.255782 | 735 | 25 | 109 | 29.4 | 0.722121 | 0.061224 | 0 | 0.315789 | 1 | 0 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ba9927e30aa0252fbd617e591bef23efa1b4e48 | 434 | py | Python | api/migrations/versions/9630ab6b0437_alter_rejection_reason.py | cclauss/Baobab | e7aad3a63237be5f16e6441b89b3cc708ec19acd | [
"Apache-2.0"
] | 52 | 2019-01-10T16:04:26.000Z | 2022-02-10T00:55:59.000Z | api/migrations/versions/9630ab6b0437_alter_rejection_reason.py | cclauss/Baobab | e7aad3a63237be5f16e6441b89b3cc708ec19acd | [
"Apache-2.0"
] | 535 | 2019-01-08T21:24:01.000Z | 2022-02-27T15:24:06.000Z | api/migrations/versions/9630ab6b0437_alter_rejection_reason.py | cclauss/Baobab | e7aad3a63237be5f16e6441b89b3cc708ec19acd | [
"Apache-2.0"
] | 36 | 2019-01-10T16:09:15.000Z | 2021-06-28T21:02:47.000Z | """empty message
Revision ID: 9630ab6b0437
Revises: 57e55dc645c1
Create Date: 2019-06-27 06:39:06.588602
"""
# revision identifiers, used by Alembic.
revision = '9630ab6b0437'
down_revision = '57e55dc645c1'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.alter_column('offer', 'rejected_reason... | 18.869565 | 70 | 0.739631 | 58 | 434 | 5.413793 | 0.637931 | 0.044586 | 0.082803 | 0.11465 | 0.280255 | 0.280255 | 0.280255 | 0.280255 | 0.280255 | 0 | 0 | 0.159574 | 0.133641 | 434 | 22 | 71 | 19.727273 | 0.675532 | 0.327189 | 0 | 0 | 0 | 0 | 0.225352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ba9ec49f2b6f28cd88d5d521df1193d0558a5fb | 11,183 | py | Python | test/vanilla/version-tolerant/AcceptanceTests/test_array.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | 35 | 2018-04-03T12:15:53.000Z | 2022-03-11T14:03:34.000Z | test/vanilla/version-tolerant/AcceptanceTests/test_array.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | 652 | 2017-08-28T22:44:41.000Z | 2022-03-31T21:20:31.000Z | test/vanilla/version-tolerant/AcceptanceTests/test_array.py | cfculhane/autorest.python | 8cbca95faee88d933a58bbbd17b76834faa8d387 | [
"MIT"
] | 29 | 2017-08-28T20:57:01.000Z | 2022-03-11T14:03:38.000Z | # --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the ""Software""),... | 40.813869 | 115 | 0.720737 | 1,567 | 11,183 | 4.895341 | 0.185067 | 0.103246 | 0.094903 | 0.054752 | 0.464998 | 0.403598 | 0.307522 | 0.216399 | 0.201538 | 0.174162 | 0 | 0.054847 | 0.144058 | 11,183 | 273 | 116 | 40.96337 | 0.746448 | 0.160333 | 0 | 0.033708 | 0 | 0 | 0.072688 | 0.026937 | 0 | 0 | 0.008231 | 0 | 0.275281 | 0 | null | null | 0 | 0.044944 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7baf68dc76fcd7fdcd6933ead7b17f080bb21a85 | 719 | py | Python | oppo/config.py | ShareLovePeople/godot-oppo | 188c9fd39558df2c5f571adaa6861fd231c8fd22 | [
"MIT"
] | null | null | null | oppo/config.py | ShareLovePeople/godot-oppo | 188c9fd39558df2c5f571adaa6861fd231c8fd22 | [
"MIT"
] | null | null | null | oppo/config.py | ShareLovePeople/godot-oppo | 188c9fd39558df2c5f571adaa6861fd231c8fd22 | [
"MIT"
] | null | null | null | def can_build(env, platform):
return platform=="android"
def configure(env):
if (env['platform'] == 'android'):
env.android_add_java_dir("android")
env.android_add_res_dir("res")
env.android_add_asset_dir("assets")
env.android_add_dependency("implementation files('../../../modules/oppo/android/libs/... | 34.238095 | 133 | 0.76217 | 93 | 719 | 5.55914 | 0.483871 | 0.154739 | 0.201161 | 0.077369 | 0.247582 | 0.247582 | 0.247582 | 0.247582 | 0.247582 | 0.247582 | 0 | 0.028875 | 0.08484 | 719 | 21 | 134 | 34.238095 | 0.756839 | 0 | 0 | 0 | 0 | 0 | 0.443056 | 0.301389 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0.076923 | 0.230769 | 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 |
7bb406a885a2fb05a2ed92820785f7137b53c607 | 719 | py | Python | 04-python-collections.py | reysmerwvr/python-playgrounds | 1e039639d96044986ba5cc894a210180cc2b08e0 | [
"MIT"
] | null | null | null | 04-python-collections.py | reysmerwvr/python-playgrounds | 1e039639d96044986ba5cc894a210180cc2b08e0 | [
"MIT"
] | null | null | null | 04-python-collections.py | reysmerwvr/python-playgrounds | 1e039639d96044986ba5cc894a210180cc2b08e0 | [
"MIT"
] | null | null | null | # Tuples
tuple1 = (100, "Hello", [1, 2, 3], -50)
print(tuple1[0])
print(tuple1[-1])
print(tuple1[2:])
print(tuple1[2][-1])
print(len(tuple1))
print(len(tuple1[2]))
print(tuple1.index('Hello'))
print(tuple1.count(100))
# Sets
set1 = set()
set2 = {"1", "2", "3"}
set1 = {1, 2, 3}
set1.add(0)
set1.add("H")
# Dictionaries... | 17.975 | 43 | 0.624478 | 114 | 719 | 3.938596 | 0.394737 | 0.146993 | 0.020045 | 0.080178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069355 | 0.137691 | 719 | 39 | 44 | 18.435897 | 0.654839 | 0.043115 | 0 | 0.096774 | 0 | 0 | 0.101025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.032258 | 0.419355 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7bb7171f72e3feddedb98810e522474146600bdc | 876 | py | Python | core/tests/test_image.py | PiotrGrzybowski/pokedex | 9ea1a25200411b1bb505afdf625484d016a2e61c | [
"MIT"
] | null | null | null | core/tests/test_image.py | PiotrGrzybowski/pokedex | 9ea1a25200411b1bb505afdf625484d016a2e61c | [
"MIT"
] | null | null | null | core/tests/test_image.py | PiotrGrzybowski/pokedex | 9ea1a25200411b1bb505afdf625484d016a2e61c | [
"MIT"
] | null | null | null | import unittest
from core.image import load_data, extract_extension, extract_label, extract_labels
class TestImage(unittest.TestCase):
def test_extract_extension(self):
self.assertEqual(extract_extension("/v.ar/fi.le.jpg"), ".jpg")
self.assertEqual(extract_extension("/var/file.png"), ".png")
... | 31.285714 | 82 | 0.690639 | 111 | 876 | 5.144144 | 0.369369 | 0.157618 | 0.154116 | 0.162872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026462 | 0.180365 | 876 | 27 | 83 | 32.444444 | 0.768802 | 0 | 0 | 0 | 0 | 0 | 0.100457 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7bb7ddff2e0f9f16f3aa330c8ac1d4dcfef6a104 | 433 | py | Python | ARC/arc001-arc050/arc023/b.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 2 | 2020-06-12T09:54:23.000Z | 2021-05-04T01:34:07.000Z | AtCoder_Virtual_Contest/prd_xxx_2019_079/arc023/b.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 961 | 2020-06-23T07:26:22.000Z | 2022-03-31T21:34:52.000Z | AtCoder_Virtual_Contest/prd_xxx_2019_079/arc023/b.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
def main():
r, c, d = map(int, input().split())
a = [list(map(int, input().split())) for _ in range(r)]
ans = 0
# See:
# https://www.slideshare.net/chokudai/arc023
for y in range(r):
for x in range(c):
if (x + y <= d) and ((x + y) % 2 ==... | 20.619048 | 60 | 0.438799 | 63 | 433 | 2.873016 | 0.539683 | 0.116022 | 0.121547 | 0.176796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025271 | 0.360277 | 433 | 20 | 61 | 21.65 | 0.628159 | 0.159353 | 0 | 0 | 0 | 0 | 0.023529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.090909 | 0.090909 | 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 |
7bb9b2c806b9b2dcee74673ae75125ed8d1fd4fc | 2,632 | py | Python | backend/apis/users/views/users.py | sango09/senasoft | d7e5b0fae620764b3af73955f7771dcee5746dfc | [
"MIT"
] | 1 | 2020-10-17T03:39:56.000Z | 2020-10-17T03:39:56.000Z | backend/apis/users/views/users.py | sango09/senasoft | d7e5b0fae620764b3af73955f7771dcee5746dfc | [
"MIT"
] | null | null | null | backend/apis/users/views/users.py | sango09/senasoft | d7e5b0fae620764b3af73955f7771dcee5746dfc | [
"MIT"
] | null | null | null | """Vista de usuarios"""
# Django REST Framework
from rest_framework import mixins, status
from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework.viewsets import GenericViewSet
# Serializers
from apis.users.serializers import (
UserModelSerializer,
UserSin... | 33.316456 | 79 | 0.680091 | 281 | 2,632 | 6.266904 | 0.359431 | 0.036911 | 0.038614 | 0.021579 | 0.156161 | 0.156161 | 0.130608 | 0.130608 | 0.130608 | 0.130608 | 0 | 0.002963 | 0.230623 | 2,632 | 78 | 80 | 33.74359 | 0.866667 | 0.110562 | 0 | 0.145455 | 0 | 0 | 0.02087 | 0 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.072727 | false | 0 | 0.145455 | 0 | 0.381818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
7bbcb3a4882c20ed72a6f40a30e8e62df7af33a3 | 577 | py | Python | setup.py | petrichor-ai/gg-group-manager | 21fdc50b33a1c56dad44b4537d3a8b0aa2db4b60 | [
"MIT"
] | null | null | null | setup.py | petrichor-ai/gg-group-manager | 21fdc50b33a1c56dad44b4537d3a8b0aa2db4b60 | [
"MIT"
] | null | null | null | setup.py | petrichor-ai/gg-group-manager | 21fdc50b33a1c56dad44b4537d3a8b0aa2db4b60 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name='gg_group_manager',
version='1.0.0',
description='AWS Greengrass Group Manager',
packages=[
'gg_manager',
'gg_manager.definitions',
'gg_manager.playbooks',
'gg_manager.utilities'
],
install_requires=[
'fire==0.... | 21.37037 | 47 | 0.545927 | 66 | 577 | 4.590909 | 0.636364 | 0.178218 | 0.072607 | 0.118812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056931 | 0.299827 | 577 | 26 | 48 | 22.192308 | 0.693069 | 0 | 0 | 0.12 | 0 | 0 | 0.400347 | 0.083189 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.04 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7bc27e0dd9967ba1b3850e94a270ab7b3df98126 | 1,019 | py | Python | StimControl/LightStim/demo/param_maping.py | chrox/RealTimeElectrophy | e1a331b23d0a034894a0185324de235091e54bf0 | [
"BSD-2-Clause"
] | 4 | 2016-07-16T01:22:32.000Z | 2019-01-07T16:23:54.000Z | StimControl/LightStim/demo/param_maping.py | chrox/RealTimeElectrophy | e1a331b23d0a034894a0185324de235091e54bf0 | [
"BSD-2-Clause"
] | null | null | null | StimControl/LightStim/demo/param_maping.py | chrox/RealTimeElectrophy | e1a331b23d0a034894a0185324de235091e54bf0 | [
"BSD-2-Clause"
] | null | null | null | # Generate random orientation and spatial frequency gratings.
#
# Copyright (C) 2010-2011 Huang Xin
#
# See LICENSE.TXT that came with this file.
from __future__ import division
from StimControl.LightStim.SweepSeque import ParamSeque
from StimControl.LightStim.FrameControl import FrameSweep
from StimControl.LightStim.... | 31.84375 | 154 | 0.809617 | 136 | 1,019 | 5.904412 | 0.514706 | 0.0934 | 0.14944 | 0.044832 | 0.049813 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030435 | 0.097154 | 1,019 | 32 | 155 | 31.84375 | 0.842391 | 0.132483 | 0 | 0 | 1 | 0 | 0.045506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7bc93f9d21d17fb42b02ae4c86c261bfd7531e49 | 7,501 | py | Python | layouts/second_tab.py | Zhiji022/Kelowna_cultural_plan_survey_analysis | 71de28c0ad8c69183a8eaf8039273dd92d5a73ce | [
"MIT"
] | null | null | null | layouts/second_tab.py | Zhiji022/Kelowna_cultural_plan_survey_analysis | 71de28c0ad8c69183a8eaf8039273dd92d5a73ce | [
"MIT"
] | null | null | null | layouts/second_tab.py | Zhiji022/Kelowna_cultural_plan_survey_analysis | 71de28c0ad8c69183a8eaf8039273dd92d5a73ce | [
"MIT"
] | null | null | null | # layout for the second tab of the dashboard
# built-in modules
import dash_table
import dash_core_components as dcc
import dash_html_components as html
# configs
from configs.DashConfigs import graph_config_style, selected_tab_style
# dataloaders
from dataloaders.CultureCentreDistances import culture_centre_distanc... | 65.226087 | 170 | 0.339555 | 482 | 7,501 | 5.153527 | 0.3361 | 0.030998 | 0.057971 | 0.046296 | 0.263285 | 0.171498 | 0.145733 | 0.108696 | 0.047504 | 0.047504 | 0 | 0.016897 | 0.526596 | 7,501 | 114 | 171 | 65.798246 | 0.682625 | 0.015065 | 0 | 0.146341 | 0 | 0 | 0.142817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012195 | false | 0 | 0.121951 | 0.012195 | 0.146341 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7bccd9cc90c0ca0fc3390e3199ec3e3325a01819 | 1,353 | py | Python | back/src/features/tokenizer_emotion_classif.py | mathieu-sibue/preparing-interviews-with-nlp-audio | aac0115d8fd476f7c0a7d9ca500706e839f6382c | [
"MIT"
] | null | null | null | back/src/features/tokenizer_emotion_classif.py | mathieu-sibue/preparing-interviews-with-nlp-audio | aac0115d8fd476f7c0a7d9ca500706e839f6382c | [
"MIT"
] | null | null | null | back/src/features/tokenizer_emotion_classif.py | mathieu-sibue/preparing-interviews-with-nlp-audio | aac0115d8fd476f7c0a7d9ca500706e839f6382c | [
"MIT"
] | null | null | null | from transformers import CamembertTokenizer
import os
tokenizer_dirname = os.path.dirname(__file__)
tokenizer_path = os.path.join(tokenizer_dirname, '../../res/models/emotion_classif/camembert_base/camembert-base-tokenizer')
class EmotionClassifTokenizer(object):
"""
Class used to tokenize french sentences ... | 38.657143 | 132 | 0.720621 | 156 | 1,353 | 6.025641 | 0.455128 | 0.095745 | 0.02766 | 0.042553 | 0.331915 | 0.331915 | 0.217021 | 0.217021 | 0.1 | 0.1 | 0 | 0.001833 | 0.193644 | 1,353 | 34 | 133 | 39.794118 | 0.859762 | 0.287509 | 0 | 0 | 0 | 0 | 0.142373 | 0.122034 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0.2 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c86dccde1d3a55770afab5f2f917b32648dcb363 | 448 | py | Python | logistic_regression/logistic_predic.py | opplieam/Udemy-Lazy | 89e757152a87603d630593e13b0db4d5422222fc | [
"Apache-2.0"
] | null | null | null | logistic_regression/logistic_predic.py | opplieam/Udemy-Lazy | 89e757152a87603d630593e13b0db4d5422222fc | [
"Apache-2.0"
] | null | null | null | logistic_regression/logistic_predic.py | opplieam/Udemy-Lazy | 89e757152a87603d630593e13b0db4d5422222fc | [
"Apache-2.0"
] | null | null | null | import numpy as np
from logistic_regression.process_ecomerce import get_binary_data
X, Y = get_binary_data()
D = X.shape[1]
W = np.random.randn(D)
b = 0
def sigmoid(z):
return 1 / (1 + np.exp(-z))
def forward(X, W, b):
return sigmoid(X.dot(W) + b)
P_Y_given_X = forward(X, W, b)
predictions = np.round(P... | 14.933333 | 64 | 0.676339 | 80 | 448 | 3.6125 | 0.475 | 0.020761 | 0.089965 | 0.069204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010899 | 0.180804 | 448 | 29 | 65 | 15.448276 | 0.776567 | 0 | 0 | 0 | 0 | 0 | 0.013423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 0.2 | 0.533333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
c86ff36c8d0f7fc0b3f5ffee034b8c19d10d9341 | 646 | py | Python | examples/neural_network_vgg7/import_vgg7.py | dSandley20/KomputeParticles | 099073c6db4b5345e80eaaebe97d97e0f8256849 | [
"Apache-2.0"
] | 445 | 2020-09-13T14:21:48.000Z | 2021-07-18T13:50:37.000Z | examples/neural_network_vgg7/import_vgg7.py | dSandley20/KomputeParticles | 099073c6db4b5345e80eaaebe97d97e0f8256849 | [
"Apache-2.0"
] | 148 | 2020-09-20T09:06:49.000Z | 2021-06-28T11:44:27.000Z | examples/neural_network_vgg7/import_vgg7.py | dSandley20/KomputeParticles | 099073c6db4b5345e80eaaebe97d97e0f8256849 | [
"Apache-2.0"
] | 42 | 2020-09-27T15:43:59.000Z | 2021-07-05T11:53:06.000Z | import numpy
import json
import os
import sys
import time
import sh_common
if len(sys.argv) != 2:
print("import_vgg7.py JSONPATH")
print(" i.e. import_vgg7.py /home/you/Documents/External/waifu2x/models/vgg_7/art/scale2.0x_model.json")
sys.exit(1)
try:
os.mkdir("model-kipper")
except:
pass
data_l... | 20.83871 | 108 | 0.645511 | 109 | 646 | 3.724771 | 0.53211 | 0.059113 | 0.059113 | 0.083744 | 0.128079 | 0.128079 | 0 | 0 | 0 | 0 | 0 | 0.03619 | 0.187307 | 646 | 30 | 109 | 21.533333 | 0.737143 | 0 | 0 | 0.08 | 0 | 0.04 | 0.23876 | 0.114729 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.04 | 0.32 | 0 | 0.32 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c870b1a78562e27a461e01e732b5b79c7c6c1479 | 1,781 | py | Python | samples/sample_music.py | owenhong0331/Cuser | 46eff1349aaa535fc05d514fc6ea66df7d1db98d | [
"MIT"
] | 1 | 2019-09-06T00:34:51.000Z | 2019-09-06T00:34:51.000Z | samples/sample_music.py | owenhong0331/Cuser | 46eff1349aaa535fc05d514fc6ea66df7d1db98d | [
"MIT"
] | null | null | null | samples/sample_music.py | owenhong0331/Cuser | 46eff1349aaa535fc05d514fc6ea66df7d1db98d | [
"MIT"
] | null | null | null | from cuser import SerAction
import time
def GetPosition(tem):
ucBase = int(tem / 16)
ucOffset = tem % 16
if ucBase == 1:
ucBase = 0
elif ucBase == 2:
ucBase = 14
elif ucBase == 3:
ucBase = 28
ucPosition = ucBase + (ucOffset - 1) * 2
return ucPosition
def play_mu... | 21.457831 | 44 | 0.540707 | 227 | 1,781 | 4.202643 | 0.255507 | 0.056604 | 0.044025 | 0.041929 | 0.142558 | 0.100629 | 0.0587 | 0 | 0 | 0 | 0 | 0.307823 | 0.339697 | 1,781 | 82 | 45 | 21.719512 | 0.503401 | 0 | 0 | 0.15942 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251544 | 0 | 0 | 1 | 0.028986 | false | 0 | 0.028986 | 0 | 0.072464 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c8790e15303865c0b0baf5fa082a0c96c3fc3aa4 | 222 | py | Python | project_9.py | cornelia247/cil-internship-cohort-01 | b8184337056d378eab16d26b40b26ed58cd177bb | [
"MIT"
] | null | null | null | project_9.py | cornelia247/cil-internship-cohort-01 | b8184337056d378eab16d26b40b26ed58cd177bb | [
"MIT"
] | null | null | null | project_9.py | cornelia247/cil-internship-cohort-01 | b8184337056d378eab16d26b40b26ed58cd177bb | [
"MIT"
] | null | null | null | from PIL import Image
def main():
filename ='py.png';
image = Image.open(filename);
image = image.copy()
size = width, height = image.size;
image.resize((400,100))
if (__name__ == '_main_'):
main() | 22.2 | 38 | 0.608108 | 29 | 222 | 4.448276 | 0.655172 | 0.155039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034884 | 0.225225 | 222 | 10 | 39 | 22.2 | 0.715116 | 0 | 0 | 0 | 0 | 0 | 0.053812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 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 |
c879345e1b2b4f897db4c739e5d269411e78e619 | 1,428 | py | Python | solidity/python/FormulaNativePython/__init__.py | nondejus/contracts | 79c61a20908aab485d34dfa3add9c6953fb7098e | [
"Apache-2.0"
] | 1 | 2021-10-16T13:32:19.000Z | 2021-10-16T13:32:19.000Z | solidity/python/FormulaNativePython/__init__.py | nondejus/contracts | 79c61a20908aab485d34dfa3add9c6953fb7098e | [
"Apache-2.0"
] | null | null | null | solidity/python/FormulaNativePython/__init__.py | nondejus/contracts | 79c61a20908aab485d34dfa3add9c6953fb7098e | [
"Apache-2.0"
] | 1 | 2021-02-21T09:17:05.000Z | 2021-02-21T09:17:05.000Z | from decimal import Decimal
from decimal import getcontext
getcontext().prec = 80 # 78 digits for a maximum of 2^256-1, and 2 more digits for after the decimal point
def calculatePurchaseReturn(supply, balance, ratio, amount):
supply, balance, ratio, amount = [Decimal(value) for value in vars().values()]
re... | 39.666667 | 106 | 0.717087 | 182 | 1,428 | 5.626374 | 0.258242 | 0.101563 | 0.087891 | 0.117188 | 0.616211 | 0.442383 | 0.442383 | 0.442383 | 0.405273 | 0.362305 | 0 | 0.04789 | 0.137255 | 1,428 | 35 | 107 | 40.8 | 0.783279 | 0.056723 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.095238 | 0 | 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 |
c87d4a743b59206c7ca1ff31587cd44548f4a358 | 1,907 | py | Python | okta/models/app/AppSettings.py | xmercury-qb/okta-sdk-python | a668a963b13fc61177b36c5438c6ec5fa6f17c4e | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-09-09T12:59:19.000Z | 2020-09-09T12:59:19.000Z | okta/models/app/AppSettings.py | xmercury-qb/okta-sdk-python | a668a963b13fc61177b36c5438c6ec5fa6f17c4e | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2018-10-09T22:14:33.000Z | 2018-10-09T23:10:40.000Z | okta/models/app/AppSettings.py | xmercury-qb/okta-sdk-python | a668a963b13fc61177b36c5438c6ec5fa6f17c4e | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-11-02T22:12:57.000Z | 2019-09-16T08:02:23.000Z | class AppSettings:
types = {
'url': str,
'requestIntegration': bool,
'authURL': str,
'usernameField': str,
'passwordField': str,
'buttonField': str,
'extraFieldSelector': str,
'extraFieldValue': str,
'optionalField1': str,
'optionalFie... | 30.269841 | 65 | 0.609334 | 218 | 1,907 | 5.311927 | 0.243119 | 0.078584 | 0.07772 | 0.108808 | 0.392055 | 0.376511 | 0.253886 | 0.253886 | 0.253886 | 0.253886 | 0 | 0.009368 | 0.328264 | 1,907 | 62 | 66 | 30.758065 | 0.894614 | 0.377032 | 0 | 0 | 0 | 0 | 0.169974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.0625 | 0 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c886b21ffc4e72c41739225c50679ba1152f30bd | 1,728 | py | Python | CS241 w10/prove10.py | carloswm85/2020-cs241 | 5cbc7912f47c79ae4c11d9326d38daeb6d0e0f70 | [
"Unlicense"
] | null | null | null | CS241 w10/prove10.py | carloswm85/2020-cs241 | 5cbc7912f47c79ae4c11d9326d38daeb6d0e0f70 | [
"Unlicense"
] | null | null | null | CS241 w10/prove10.py | carloswm85/2020-cs241 | 5cbc7912f47c79ae4c11d9326d38daeb6d0e0f70 | [
"Unlicense"
] | null | null | null | numbers = [12, 18, 128, 48, 2348, 21, 18, 3, 2, 42, 96, 11, 42, 12, 18]
print(numbers)
# Insert the number 5 to the beginning of the list.
numbers.insert(0, 5)
print(numbers)
# Remove the number 2348 based on its value (as opposed to a hard-coded index of 4) from the list.
numbers.remove(2348)
print(numbers)
# Creat... | 32 | 117 | 0.730903 | 313 | 1,728 | 3.996805 | 0.329073 | 0.055955 | 0.035971 | 0.009592 | 0.194245 | 0.1247 | 0.091127 | 0.091127 | 0 | 0 | 0 | 0.052888 | 0.168403 | 1,728 | 53 | 118 | 32.603774 | 0.817676 | 0.582755 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
c88d314923e4d5da11e08e08c076ffb3f42871e7 | 2,711 | py | Python | examples/5- creating a new fixed supply token/main.py | 0xOmarA/RadixLib | 85d75a47d4c4df4c1a319b74857ae2c513933623 | [
"MIT"
] | 32 | 2022-01-12T16:52:28.000Z | 2022-03-24T18:05:47.000Z | examples/5- creating a new fixed supply token/main.py | 0xOmarA/RadixLib | 85d75a47d4c4df4c1a319b74857ae2c513933623 | [
"MIT"
] | 3 | 2022-01-12T17:01:55.000Z | 2022-02-12T15:14:16.000Z | examples/5- creating a new fixed supply token/main.py | 0xOmarA/RadixLib | 85d75a47d4c4df4c1a319b74857ae2c513933623 | [
"MIT"
] | 1 | 2022-01-21T04:28:07.000Z | 2022-01-21T04:28:07.000Z | """
This example is very similar to the first second example where we created a mutable supply token.
The only difference between creating a fixed supply and mutable supply token is the parameters that
we need to provide and the name of the function to call on the action builder.
"""
import radixlib as radix
import o... | 43.725806 | 108 | 0.673183 | 358 | 2,711 | 4.952514 | 0.363128 | 0.06317 | 0.025381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019057 | 0.264478 | 2,711 | 62 | 109 | 43.725806 | 0.87011 | 0.379934 | 0 | 0 | 0 | 0 | 0.159351 | 0.039086 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | true | 0 | 0.051282 | 0 | 0.076923 | 0.102564 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c88e1ff06d6f1d70362e734b9b4904f4924f75d3 | 492 | py | Python | azuremite/model.py | alberto-morales/mite-AzureML | b08a2ae00a59205be4435a5e743b678c8ddf686b | [
"Unlicense"
] | 1 | 2020-02-03T16:24:44.000Z | 2020-02-03T16:24:44.000Z | azuremite/model.py | alberto-morales/mite-AzureML | b08a2ae00a59205be4435a5e743b678c8ddf686b | [
"Unlicense"
] | null | null | null | azuremite/model.py | alberto-morales/mite-AzureML | b08a2ae00a59205be4435a5e743b678c8ddf686b | [
"Unlicense"
] | null | null | null | from azureml.core.model import Model
from azuremite.workspace import get_workspace
def model_register():
ws = get_workspace()
model = Model.register(workspace=ws, model_path="../artifacts/worst.pickle", model_name="worst-model")
return model
def get_model_path():
ws = get_workspace()
model_path = ... | 28.941176 | 106 | 0.72561 | 67 | 492 | 4.955224 | 0.313433 | 0.216867 | 0.108434 | 0.114458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158537 | 492 | 17 | 107 | 28.941176 | 0.801932 | 0 | 0 | 0.142857 | 0 | 0 | 0.115619 | 0.05071 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0.142857 | 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 |
c88e6b7fcb00179a934385bd13047a391e59af62 | 32,055 | py | Python | _package/xms/stamper/stamping/stamper_io.py | rohankumardubey/xmsstamper | 00abfec145f9dab1867006ccdffe6e9e1a0e4caf | [
"BSD-2-Clause"
] | null | null | null | _package/xms/stamper/stamping/stamper_io.py | rohankumardubey/xmsstamper | 00abfec145f9dab1867006ccdffe6e9e1a0e4caf | [
"BSD-2-Clause"
] | 8 | 2018-10-11T19:45:36.000Z | 2020-10-13T22:19:47.000Z | _package/xms/stamper/stamping/stamper_io.py | Aquaveo/xmsstamper | 00abfec145f9dab1867006ccdffe6e9e1a0e4caf | [
"BSD-2-Clause"
] | null | null | null | """Classes for reading and writing raster files."""
from xms.grid.triangulate.tin import Tin
from .._xmsstamper.stamper import XmGuidebank
from .._xmsstamper.stamper import XmSlopedAbutment
from .._xmsstamper.stamper import XmStampCrossSection
from .._xmsstamper.stamper import XmStamperEndCap
from .._xmsstamper.stampe... | 32.57622 | 111 | 0.611231 | 3,826 | 32,055 | 4.934396 | 0.07057 | 0.067376 | 0.042905 | 0.012713 | 0.5959 | 0.53774 | 0.483765 | 0.437311 | 0.416865 | 0.388527 | 0 | 0.003182 | 0.294088 | 32,055 | 983 | 112 | 32.609359 | 0.831138 | 0.314148 | 0 | 0.304979 | 0 | 0 | 0.078678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.226141 | false | 0 | 0.016598 | 0 | 0.43361 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c893fed473f59fcb4c98396cc5c124c4e6679e47 | 2,096 | py | Python | meta-iotqa/lib/oeqa/runtime/conformance/recovery/reboot.py | kraj/intel-iot-refkit | 04cd5afec0c41deeb5e1a48b43a0a31e708295c1 | [
"MIT"
] | 36 | 2017-02-20T04:04:28.000Z | 2022-02-17T05:36:33.000Z | meta-iotqa/lib/oeqa/runtime/conformance/recovery/reboot.py | kraj/intel-iot-refkit | 04cd5afec0c41deeb5e1a48b43a0a31e708295c1 | [
"MIT"
] | 284 | 2017-02-06T08:51:52.000Z | 2021-11-03T16:52:16.000Z | meta-iotqa/lib/oeqa/runtime/conformance/recovery/reboot.py | kraj/intel-iot-refkit | 04cd5afec0c41deeb5e1a48b43a0a31e708295c1 | [
"MIT"
] | 65 | 2017-02-03T12:36:16.000Z | 2021-02-18T11:00:46.000Z | import time
from oeqa.oetest import oeRuntimeTest
from oeqa.utils.helper import shell_cmd_timeout
class RebootTest(oeRuntimeTest):
'''Reboot target device
@class RebootTest
'''
def setUp(self):
'''pre condition check
@fn setUp
@param self
@return
'''
self... | 28.324324 | 107 | 0.519561 | 232 | 2,096 | 4.577586 | 0.349138 | 0.042373 | 0.070621 | 0.050847 | 0.254237 | 0.254237 | 0.20904 | 0.20904 | 0.080979 | 0.080979 | 0 | 0.014582 | 0.37834 | 2,096 | 73 | 108 | 28.712329 | 0.80046 | 0.145992 | 0 | 0.322581 | 0 | 0 | 0.0872 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | null | null | 0 | 0.096774 | null | null | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c89cc85f458a6799d723f46e02ee80497c0a8131 | 1,425 | py | Python | alembic/versions/f93f0f1b666b_create_live_network_relations_table.py | bodastage/bts-database | 96df7915621dd46daf55016eedf5cfc84dd0e3a2 | [
"Apache-2.0"
] | 1 | 2019-08-30T01:20:14.000Z | 2019-08-30T01:20:14.000Z | alembic/versions/f93f0f1b666b_create_live_network_relations_table.py | bodastage/bts-database | 96df7915621dd46daf55016eedf5cfc84dd0e3a2 | [
"Apache-2.0"
] | 1 | 2018-05-30T09:29:24.000Z | 2018-05-30T10:04:37.000Z | alembic/versions/f93f0f1b666b_create_live_network_relations_table.py | bodastage/bts-database | 96df7915621dd46daf55016eedf5cfc84dd0e3a2 | [
"Apache-2.0"
] | 3 | 2018-03-10T23:29:30.000Z | 2019-02-19T22:11:09.000Z | """create live network relations table
Revision ID: f93f0f1b666b
Revises: aa8945d542cf
Create Date: 2018-02-05 13:26:04.816000
"""
from alembic import op
import sqlalchemy as sa
import datetime
# revision identifiers, used by Alembic.
revision = 'f93f0f1b666b'
down_revision = 'aa8945d542cf'
branch_labels = None
depe... | 32.386364 | 115 | 0.685614 | 187 | 1,425 | 5.080214 | 0.379679 | 0.126316 | 0.127368 | 0.178947 | 0.351579 | 0.151579 | 0.067368 | 0 | 0 | 0 | 0 | 0.041026 | 0.178947 | 1,425 | 43 | 116 | 33.139535 | 0.77094 | 0.115088 | 0 | 0 | 0 | 0 | 0.228252 | 0.023144 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.1 | 0 | 0.166667 | 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 |
c89f4b78fd6d5c0fd56afbb02f7f4dcf4abe7596 | 1,866 | py | Python | pyscisci/metrics/hindex.py | kishorevasan/pyscisci | f067fa2c9feba457042aa86546270d81a4844e7e | [
"MIT"
] | 22 | 2020-05-31T20:10:22.000Z | 2021-10-11T19:53:29.000Z | pyscisci/metrics/hindex.py | kishorevasan/pyscisci | f067fa2c9feba457042aa86546270d81a4844e7e | [
"MIT"
] | 7 | 2020-06-02T22:50:43.000Z | 2021-07-28T14:39:55.000Z | pyscisci/metrics/hindex.py | kishorevasan/pyscisci | f067fa2c9feba457042aa86546270d81a4844e7e | [
"MIT"
] | 8 | 2020-06-05T02:20:49.000Z | 2021-07-17T19:33:20.000Z | # -*- coding: utf-8 -*-
"""
.. module:: hindex
:synopsis: Calculate the hindex.
.. moduleauthor:: Alex Gates <ajgates42@gmail.com>
"""
import sys
import pandas as pd
import numpy as np
# determine if we are loading from a jupyter notebook (to make pretty progress bars)
if 'ipykernel' in sys.modules:
from t... | 26.28169 | 134 | 0.670954 | 242 | 1,866 | 5.136364 | 0.450413 | 0.028158 | 0.020917 | 0.028962 | 0.186645 | 0.061142 | 0 | 0 | 0 | 0 | 0 | 0.013049 | 0.219721 | 1,866 | 70 | 135 | 26.657143 | 0.840659 | 0.587353 | 0 | 0 | 0 | 0 | 0.034161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.4 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c89fa6f0309fd2457c176a19cf2abbb68b70dd7f | 500 | py | Python | scripts/youtube.py | OkanoShogo0903/CommandControl | 883394c84c5df868985792215438b1b9546004b6 | [
"MIT"
] | null | null | null | scripts/youtube.py | OkanoShogo0903/CommandControl | 883394c84c5df868985792215438b1b9546004b6 | [
"MIT"
] | null | null | null | scripts/youtube.py | OkanoShogo0903/CommandControl | 883394c84c5df868985792215438b1b9546004b6 | [
"MIT"
] | null | null | null | def playback(url):
from selenium import webdriver
#from selenium.webdriver.chrome.options import Options
#options = Options()
driver = webdriver.Firefox()
driver.set_window_size(width=150,height=400)
driver.get(url)
# For time out.
driver.implicitly_wait(10) # seconds
return True
d... | 23.809524 | 58 | 0.686 | 64 | 500 | 5.3125 | 0.59375 | 0.097059 | 0.064706 | 0.105882 | 0.158824 | 0.158824 | 0.158824 | 0 | 0 | 0 | 0 | 0.034568 | 0.19 | 500 | 20 | 59 | 25 | 0.804938 | 0.188 | 0 | 0.153846 | 0 | 0 | 0.21393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c89fc1727753f944c5647fdbd2cf97a6ff77fa49 | 904 | py | Python | src/astrotk/twobody/_dev.py | ggarrett13/astrodynamics-toolkit | 93008b5a4f8f4eacca0fc501fdf24eb8cdcb31c8 | [
"MIT"
] | 3 | 2018-12-09T18:33:03.000Z | 2020-08-10T15:29:54.000Z | src/astrotk/twobody/_dev.py | ggarrett13/astrodynamics-toolkit | 93008b5a4f8f4eacca0fc501fdf24eb8cdcb31c8 | [
"MIT"
] | null | null | null | src/astrotk/twobody/_dev.py | ggarrett13/astrodynamics-toolkit | 93008b5a4f8f4eacca0fc501fdf24eb8cdcb31c8 | [
"MIT"
] | null | null | null | if __name__ == "__main__":
# Imports ---------------------------------------------------------------------------------------------------------#
from astrotk.bodies.bodies import Earth
from astrotk.twobody.state import vector
from astrotk.tests.test_state_values import *
# Test 1 -------------------... | 39.304348 | 120 | 0.45354 | 82 | 904 | 4.768293 | 0.402439 | 0.112532 | 0.081841 | 0.102302 | 0.189258 | 0.189258 | 0.189258 | 0 | 0 | 0 | 0 | 0.012658 | 0.213496 | 904 | 22 | 121 | 41.090909 | 0.537271 | 0.514381 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c8a2a579208d4e7f1b65134111521de9b49cbf76 | 6,984 | py | Python | spotinst_troposphere/aws_elastigroup_usage.py | spotinst/spotinst-troposphere | c6cb3826d2dd2d6bec87e9808420cdf49a2f3b8f | [
"MIT"
] | 1 | 2018-02-12T14:57:20.000Z | 2018-02-12T14:57:20.000Z | spotinst_troposphere/aws_elastigroup_usage.py | spotinst/spotinst-troposphere | c6cb3826d2dd2d6bec87e9808420cdf49a2f3b8f | [
"MIT"
] | null | null | null | spotinst_troposphere/aws_elastigroup_usage.py | spotinst/spotinst-troposphere | c6cb3826d2dd2d6bec87e9808420cdf49a2f3b8f | [
"MIT"
] | null | null | null | from troposphere import Template
import spotinst_troposphere
from spotinst_troposphere.aws_elastigroup import Elastigroup, ElastigroupConfig, ElastigroupCapacity, ElastigroupStrategy;
from spotinst_troposphere.aws_elastigroup import ElastigroupCompute, ElastigroupComputeInstanceTypes
from spotinst_troposphere.aws_elas... | 45.350649 | 141 | 0.442583 | 309 | 6,984 | 9.94822 | 0.540453 | 0.043266 | 0.044893 | 0.050748 | 0.188029 | 0.188029 | 0.104099 | 0.104099 | 0.104099 | 0.104099 | 0 | 0.027221 | 0.500286 | 6,984 | 153 | 142 | 45.647059 | 0.853582 | 0.002577 | 0 | 0.25 | 0 | 0 | 0.089316 | 0.023406 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.057143 | 0.007143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c8a7681d16bbbb9c4ef187360a0b8bdd846373ad | 6,691 | py | Python | tcpserver/datamodel.py | Ganben/iot-bi | f85c2402a4222ee37c6eb24632f7979b00f0ac24 | [
"Apache-2.0"
] | null | null | null | tcpserver/datamodel.py | Ganben/iot-bi | f85c2402a4222ee37c6eb24632f7979b00f0ac24 | [
"Apache-2.0"
] | 9 | 2020-09-05T04:55:53.000Z | 2022-03-02T02:50:02.000Z | tcpserver/datamodel.py | Ganben/iot-bi | f85c2402a4222ee37c6eb24632f7979b00f0ac24 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# best for i/o sql interface for history stats
#TODO:
#sql for pin_id_4_goods
#shop for pin_ids
#chart_generator
#statistical view
import logging
import datetime
import threading
import time
import mysql.connector
from mysql.connector import errorcode
import redis
# method example code
# sql... | 27.64876 | 98 | 0.549843 | 765 | 6,691 | 4.709804 | 0.281046 | 0.046628 | 0.033306 | 0.041632 | 0.197891 | 0.169858 | 0.134055 | 0.117957 | 0.117957 | 0.117957 | 0 | 0.010552 | 0.33433 | 6,691 | 241 | 99 | 27.763485 | 0.798383 | 0.088477 | 0 | 0.3 | 0 | 0 | 0.132979 | 0 | 0 | 0 | 0 | 0.008299 | 0 | 0 | null | null | 0.0125 | 0.04375 | null | null | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c8a825bbcf8dc4b5b68b1a365e7172483f511a64 | 361 | py | Python | LeetCode/2019-02-02-258-Add-Digits.py | HeRuivio/-Algorithm | 1fbe6256630758fda3af68f469471ee246730afc | [
"MIT"
] | 5 | 2018-10-30T05:07:32.000Z | 2019-06-18T08:11:38.000Z | LeetCode/2019-02-02-258-Add-Digits.py | HeRuivio/-Algorithm | 1fbe6256630758fda3af68f469471ee246730afc | [
"MIT"
] | 1 | 2020-05-09T09:05:16.000Z | 2020-05-09T09:05:16.000Z | LeetCode/2019-02-02-258-Add-Digits.py | HeRuivio/-Algorithm | 1fbe6256630758fda3af68f469471ee246730afc | [
"MIT"
] | 2 | 2020-05-09T09:02:22.000Z | 2020-12-09T13:23:00.000Z | # -*- coding: utf-8 -*-
# @Author: 何睿
# @Create Date: 2019-02-02 23:27:58
# @Last Modified by: 何睿
# @Last Modified time: 2019-02-02 23:29:33
class Solution:
def addDigits(self, num):
"""
:type num: int
:rtype: int
"""
if num == 0: return 0
b = n... | 21.235294 | 42 | 0.476454 | 52 | 361 | 3.307692 | 0.634615 | 0.069767 | 0.093023 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152466 | 0.382271 | 361 | 16 | 43 | 22.5625 | 0.618834 | 0.495845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c8aa121b29623c2ba902c71f014cc111a9c837d0 | 987 | py | Python | parkkihubi_hel/tests/test_importing_management_commands.py | klemmari1/parkkihubi | 93218c6046c0910e8a4c723dc7128c6eec085b8c | [
"MIT"
] | 12 | 2016-11-29T15:13:10.000Z | 2021-06-12T06:45:38.000Z | parkkihubi_hel/tests/test_importing_management_commands.py | niuzhipeng123/parkkihubi | 93218c6046c0910e8a4c723dc7128c6eec085b8c | [
"MIT"
] | 154 | 2016-11-30T09:07:58.000Z | 2022-02-12T08:29:36.000Z | parkkihubi_hel/tests/test_importing_management_commands.py | niuzhipeng123/parkkihubi | 93218c6046c0910e8a4c723dc7128c6eec085b8c | [
"MIT"
] | 15 | 2016-11-29T19:32:48.000Z | 2022-01-05T11:31:39.000Z | import pytest
from django.contrib.auth import get_user_model
from django.core.management import call_command
from parkings.models import ParkingArea, PaymentZone, PermitArea
from ..management.commands import (
import_parking_areas, import_payment_zones, import_permit_areas)
from .request_mocking import mocked_req... | 26.675676 | 88 | 0.77305 | 128 | 987 | 5.640625 | 0.34375 | 0.060942 | 0.074792 | 0.074792 | 0.253463 | 0.253463 | 0.15651 | 0.105263 | 0.105263 | 0 | 0 | 0.003521 | 0.136778 | 987 | 36 | 89 | 27.416667 | 0.843897 | 0 | 0 | 0.26087 | 0 | 0 | 0.009119 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 1 | 0.130435 | false | 0 | 0.565217 | 0 | 0.695652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c8aa40eeb8af2d9e5446370bc2f0b22a790d402a | 250 | py | Python | fairepart/backends/__init__.py | thoas/django-fairepart | 222c6c3d2125c33fc8f10a1f2c8a3a5ed273e8f4 | [
"MIT"
] | 2 | 2016-04-09T19:09:30.000Z | 2017-12-12T23:57:13.000Z | fairepart/backends/__init__.py | thoas/django-fairepart | 222c6c3d2125c33fc8f10a1f2c8a3a5ed273e8f4 | [
"MIT"
] | null | null | null | fairepart/backends/__init__.py | thoas/django-fairepart | 222c6c3d2125c33fc8f10a1f2c8a3a5ed273e8f4 | [
"MIT"
] | null | null | null | def get_backends():
from ..settings import BACKENDS
from ..utils import load_class
backends = {}
for backend_path in BACKENDS:
backend = load_class(backend_path)
backends[backend.name] = backend
return backends
| 20.833333 | 42 | 0.672 | 29 | 250 | 5.62069 | 0.517241 | 0.147239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256 | 250 | 11 | 43 | 22.727273 | 0.876344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 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 |
c8aa81d78a168e855f65be5c3e0c66b1c20d971e | 4,062 | py | Python | fastrl/qlearning/dqn_noisy.py | tyoc213-contrib/fast-reinforcement-learning-2 | 66b27fcd7f65122ca9cda46bcd1cb35f2749337e | [
"Apache-2.0"
] | null | null | null | fastrl/qlearning/dqn_noisy.py | tyoc213-contrib/fast-reinforcement-learning-2 | 66b27fcd7f65122ca9cda46bcd1cb35f2749337e | [
"Apache-2.0"
] | null | null | null | fastrl/qlearning/dqn_noisy.py | tyoc213-contrib/fast-reinforcement-learning-2 | 66b27fcd7f65122ca9cda46bcd1cb35f2749337e | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/20e_qlearning.dqn_noisy.ipynb (unless otherwise specified).
__all__ = ['NoisyLinear', 'NoisyFactorizedLinear', 'NoisyDQN', 'TargetDQNLearner']
# Cell
import torch.nn.utils as nn_utils
from fastai.torch_basics import *
from fastai.data.all import *
from fastai.basics imp... | 34.134454 | 107 | 0.662728 | 539 | 4,062 | 4.74397 | 0.265306 | 0.043019 | 0.033242 | 0.032851 | 0.265546 | 0.211576 | 0.211576 | 0.201799 | 0.15174 | 0.15174 | 0 | 0.011062 | 0.221073 | 4,062 | 119 | 108 | 34.134454 | 0.797092 | 0.055391 | 0 | 0.133333 | 1 | 0 | 0.02846 | 0.005483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.222222 | 0.011111 | 0.411111 | 0 | 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 |
c8b3334b1e7e6b80cb0601dfad2d1f41d6b1af7f | 3,190 | py | Python | dear_petition/petition/etl/load.py | codefordurham/dear-petition | f3b4316a98079c5cd794a5d6d4ad20bd4e4ffa5c | [
"MIT"
] | 1 | 2019-04-30T23:19:18.000Z | 2019-04-30T23:19:18.000Z | dear_petition/petition/etl/load.py | codefordurham/dear-petition | f3b4316a98079c5cd794a5d6d4ad20bd4e4ffa5c | [
"MIT"
] | null | null | null | dear_petition/petition/etl/load.py | codefordurham/dear-petition | f3b4316a98079c5cd794a5d6d4ad20bd4e4ffa5c | [
"MIT"
] | null | null | null | import logging
from django.conf import settings
from dear_petition.petition.constants import (
ATTACHMENT,
DISMISSED,
NOT_GUILTY,
UNDERAGED_CONVICTIONS,
)
from dear_petition.petition import models as pm
from dear_petition.petition.etl.extract import parse_ciprs_document
from dear_petition.petition.typ... | 33.229167 | 84 | 0.717241 | 365 | 3,190 | 5.961644 | 0.279452 | 0.08364 | 0.050551 | 0.044118 | 0.100184 | 0.043199 | 0 | 0 | 0 | 0 | 0 | 0.000395 | 0.206897 | 3,190 | 95 | 85 | 33.578947 | 0.859684 | 0.084326 | 0 | 0 | 0 | 0 | 0.036846 | 0 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.075758 | false | 0 | 0.151515 | 0 | 0.242424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c8b6c2f2048706e08f619d29dfe165964915fef3 | 350 | py | Python | src/901_1000/0917_reverse-only-letters/reverse-only-letters.py | himichael/LeetCode | d54f48e785af3d47a2a67a95fd3343d2b23f8ae5 | [
"Apache-2.0"
] | 1 | 2019-12-18T06:08:47.000Z | 2019-12-18T06:08:47.000Z | src/901_1000/0917_reverse-only-letters/reverse-only-letters.py | himichael/LeetCode | d54f48e785af3d47a2a67a95fd3343d2b23f8ae5 | [
"Apache-2.0"
] | 1 | 2019-05-18T09:35:22.000Z | 2019-05-18T09:35:22.000Z | src/901_1000/0917_reverse-only-letters/reverse-only-letters.py | himichael/LeetCode | d54f48e785af3d47a2a67a95fd3343d2b23f8ae5 | [
"Apache-2.0"
] | null | null | null | class Solution(object):
def reverseOnlyLetters(self, S):
"""
:type S: str
:rtype: str
"""
if not S:
return S
n = len(S)
i = 0
j = n-1
arr = list(S)
while i<j:
if not arr[i].isalpha():
i += 1
elif not arr[j].isalpha():
j -= 1
else:
arr[i],arr[j] = arr[j],arr[i]
i += 1
... | 15.909091 | 33 | 0.497143 | 62 | 350 | 2.822581 | 0.435484 | 0.068571 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024896 | 0.311429 | 350 | 22 | 34 | 15.909091 | 0.697095 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c8ba331641ca1520eee9ad216a37cc4b7ef795bf | 284 | py | Python | unittest/unittest_equality.py | dineshkumar2509/learning-python | e8af11ff0b396da4c3f2cfe21d14131bae4b2adb | [
"MIT"
] | 86 | 2015-06-13T16:53:55.000Z | 2022-03-24T20:56:42.000Z | unittest/unittest_equality.py | pei-zheng-yi/learning-python | 55e350dfe44cf04f7d4408e76e72d2f467bd42ce | [
"MIT"
] | 9 | 2015-05-27T07:52:44.000Z | 2022-03-29T21:52:40.000Z | unittest/unittest_equality.py | pei-zheng-yi/learning-python | 55e350dfe44cf04f7d4408e76e72d2f467bd42ce | [
"MIT"
] | 124 | 2015-12-10T01:17:18.000Z | 2021-11-08T04:03:38.000Z | #!/usr/bin/env python
"""Test for equality
"""
import unittest
class EqualityTest(unittest.TestCase):
def testEqual(self):
self.failUnlessEqual(1, 3 - 2)
def testNotEqual(self):
self.failIfEqual(2, 3 - 2)
if __name__ == '__main__':
unittest.main()
| 14.2 | 38 | 0.640845 | 34 | 284 | 5.117647 | 0.705882 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027149 | 0.221831 | 284 | 19 | 39 | 14.947368 | 0.760181 | 0.133803 | 0 | 0 | 0 | 0 | 0.033613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c8bd493913a6327d662f9373c3dc09163aa64712 | 7,549 | py | Python | mmtfPyspark/interactions/ExcludedLigandSets.py | sbliven/mmtf-pyspark | 3d444178bdc0d5128aafdb1326fec12b5d7634b5 | [
"Apache-2.0"
] | 59 | 2018-01-28T06:50:56.000Z | 2022-02-10T06:07:12.000Z | mmtfPyspark/interactions/ExcludedLigandSets.py | sbliven/mmtf-pyspark | 3d444178bdc0d5128aafdb1326fec12b5d7634b5 | [
"Apache-2.0"
] | 101 | 2018-02-01T20:51:10.000Z | 2022-01-24T00:50:29.000Z | mmtfPyspark/interactions/ExcludedLigandSets.py | sbliven/mmtf-pyspark | 3d444178bdc0d5128aafdb1326fec12b5d7634b5 | [
"Apache-2.0"
] | 29 | 2018-01-29T10:09:51.000Z | 2022-01-23T18:53:28.000Z | '''Returns unmodifiable sets of "uninteresting" (e.g., not drug like) ligands.
References
----------
- `D3R Project <https://github.com/drugdata/D3R/blob/master/d3r/filter/filtering_sets.py`_
'''
METAL_CONTAINING = set(['CP', 'NFU', 'NFR', 'NFE', 'NFV', 'FSO', 'WCC', 'TCN', 'FS2',
'PDV', 'CPT... | 63.974576 | 90 | 0.356206 | 852 | 7,549 | 3.140845 | 0.619718 | 0.006726 | 0.01009 | 0.013453 | 0.336697 | 0.30867 | 0.295217 | 0.279522 | 0.243647 | 0.203288 | 0 | 0.058524 | 0.323222 | 7,549 | 117 | 91 | 64.521368 | 0.465257 | 0.025036 | 0 | 0.02 | 0 | 0 | 0.31148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c8bea34945082e61285d7133236ad92cb1d5c74e | 1,941 | py | Python | test/minicluster_testbase.py | cglewis/snakebite | 98bb423d5fed9803e94782e93a3a7b8ca8d46fc8 | [
"Apache-2.0"
] | 1 | 2020-09-06T09:30:01.000Z | 2020-09-06T09:30:01.000Z | test/minicluster_testbase.py | cglewis/snakebite | 98bb423d5fed9803e94782e93a3a7b8ca8d46fc8 | [
"Apache-2.0"
] | null | null | null | test/minicluster_testbase.py | cglewis/snakebite | 98bb423d5fed9803e94782e93a3a7b8ca8d46fc8 | [
"Apache-2.0"
] | null | null | null | import unittest2
import os
import time
from snakebite.minicluster import MiniCluster
from snakebite.client import Client
class MiniClusterTestBase(unittest2.TestCase):
cluster = None
@classmethod
def setupClass(cls):
if not cls.cluster:
testfiles_path = os.path.join(os.path.dirname(o... | 32.898305 | 98 | 0.579083 | 218 | 1,941 | 5.06422 | 0.307339 | 0.217391 | 0.15308 | 0.095109 | 0.201087 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0.019377 | 0.255538 | 1,941 | 58 | 99 | 33.465517 | 0.744637 | 0.005152 | 0 | 0.042553 | 0 | 0 | 0.167876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.106383 | 0 | 0.212766 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c8cb4837c5851662846c6fdcd86d0931cccdf2b8 | 3,515 | py | Python | test/test_construction.py | cbaretzky/BuiidingEnergySimulation | 3a1d2ff30dc47ffd1e5c110d9fb8872682ba4f81 | [
"MIT"
] | 3 | 2019-09-19T14:05:43.000Z | 2020-09-25T06:56:31.000Z | test/test_construction.py | cbaretzky/BuiidingEnergySimulation | 3a1d2ff30dc47ffd1e5c110d9fb8872682ba4f81 | [
"MIT"
] | 4 | 2019-09-26T03:56:17.000Z | 2019-09-26T04:00:30.000Z | test/test_construction.py | cbaretzky/BuiidingEnergySimulation | 3a1d2ff30dc47ffd1e5c110d9fb8872682ba4f81 | [
"MIT"
] | null | null | null | """Main package test"""
import unittest
import BuildingEnergySimulation as bes
class Test_main(unittest.TestCase):
def setUp(self):
pass
def test_small(self):
building = bes.Building(loc="Markt, 52062 Aachen")
bes.Wall.reg(building, area=400,
layers=bes.DEFAULT_L... | 42.865854 | 76 | 0.623613 | 472 | 3,515 | 4.423729 | 0.17161 | 0.094828 | 0.071839 | 0.094828 | 0.768199 | 0.719828 | 0.60728 | 0.498563 | 0.421456 | 0.421456 | 0 | 0.05287 | 0.246657 | 3,515 | 81 | 77 | 43.395062 | 0.73565 | 0.004836 | 0 | 0.416667 | 0 | 0 | 0.059851 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.041667 | false | 0.013889 | 0.027778 | 0 | 0.083333 | 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 |
c8e1170263b28c0a20bea3b8b4b3f4a8523803da | 455 | py | Python | setup.py | miki97/TFG-OutlierDetection | e7f29043bcbbc213d5388a44b5b660672bf2ff20 | [
"CECILL-B"
] | null | null | null | setup.py | miki97/TFG-OutlierDetection | e7f29043bcbbc213d5388a44b5b660672bf2ff20 | [
"CECILL-B"
] | null | null | null | setup.py | miki97/TFG-OutlierDetection | e7f29043bcbbc213d5388a44b5b660672bf2ff20 | [
"CECILL-B"
] | null | null | null | from distutils.core import setup
import setuptools
setup(
name='PyDBOD',
version='1.1',
author="Miguel Ángel López Robles",
description="A Distances Based Outlier Detector package",
packages=setuptools.find_packages(),
url="https://github.com/miki97/TFG-OutlierDetection",
license='Licencia ... | 30.333333 | 61 | 0.72967 | 56 | 455 | 5.839286 | 0.857143 | 0.091743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01292 | 0.149451 | 455 | 14 | 62 | 32.5 | 0.832041 | 0 | 0 | 0 | 0 | 0 | 0.406593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c8ecf3d74d2103aa10262ad4bdb7858b42513669 | 2,647 | py | Python | examples/docker/ior/bench.py | cea-hpc/pdwfs | dfaf77d69144860764a9a2b803b7b1f2e41da4d7 | [
"Apache-2.0"
] | 13 | 2019-03-12T15:39:03.000Z | 2022-03-16T03:01:46.000Z | examples/docker/ior/bench.py | cea-hpc/pdwfs | dfaf77d69144860764a9a2b803b7b1f2e41da4d7 | [
"Apache-2.0"
] | 6 | 2019-08-26T09:08:47.000Z | 2020-02-21T16:50:23.000Z | examples/docker/ior/bench.py | cea-hpc/pdwfs | dfaf77d69144860764a9a2b803b7b1f2e41da4d7 | [
"Apache-2.0"
] | 1 | 2022-01-16T07:09:25.000Z | 2022-01-16T07:09:25.000Z | #!/usr/bin/env python
import os
import sys
import glob
import subprocess
from datetime import datetime
# override the matplotlib import in utils.py
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot
# load local utils.py module
import utils
bench_script = """
#!/bin/bash
cd run
echo " Executing t... | 32.679012 | 154 | 0.642614 | 349 | 2,647 | 4.74212 | 0.421203 | 0.043505 | 0.023565 | 0.029003 | 0.093051 | 0.068882 | 0.033837 | 0 | 0 | 0 | 0 | 0.027169 | 0.207405 | 2,647 | 80 | 155 | 33.0875 | 0.761678 | 0.095958 | 0 | 0.035088 | 0 | 0 | 0.374843 | 0.026415 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.140351 | null | null | 0.035088 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c8f24eadfb059f8c65dd6cbafd2f2eaab2b9d784 | 3,657 | py | Python | Text Categorisation/SupervisedLearning.py | Bennygmate/Machine-Learning | 0dc29d0b28a7e69aebb9a7b6627ab8955b4f82da | [
"MIT"
] | null | null | null | Text Categorisation/SupervisedLearning.py | Bennygmate/Machine-Learning | 0dc29d0b28a7e69aebb9a7b6627ab8955b4f82da | [
"MIT"
] | null | null | null | Text Categorisation/SupervisedLearning.py | Bennygmate/Machine-Learning | 0dc29d0b28a7e69aebb9a7b6627ab8955b4f82da | [
"MIT"
] | null | null | null | # Benjamin Cheung
import sys
import sklearn.datasets
import sklearn.metrics
import numpy as np
import os
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.pipeline import Pipeline
from sklearn import metrics
from sklearn.naive_bayes imp... | 44.060241 | 110 | 0.699207 | 422 | 3,657 | 5.900474 | 0.345972 | 0.035341 | 0.030522 | 0.038554 | 0.306426 | 0.306426 | 0.275904 | 0.275904 | 0.275904 | 0.218876 | 0 | 0.009563 | 0.199344 | 3,657 | 82 | 111 | 44.597561 | 0.840847 | 0.281652 | 0 | 0.12963 | 0 | 0 | 0.107102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.240741 | null | null | 0.148148 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c8f5b2c25fe2d83f2a8deeaf1544f10dcb0bf00a | 468 | py | Python | Functions.py | jafar95/PythonBasics | 5fca16163bf62477a287061e42d1d48abed48fc3 | [
"MIT"
] | null | null | null | Functions.py | jafar95/PythonBasics | 5fca16163bf62477a287061e42d1d48abed48fc3 | [
"MIT"
] | null | null | null | Functions.py | jafar95/PythonBasics | 5fca16163bf62477a287061e42d1d48abed48fc3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 30 00:36:25 2018
@author: Ja4rsPC
"""
x = int(input('Please input integer 1:' ))
y = int(input('Please input integer 2: '))
def maxVAlue(m,n):
if m>n or m==n:
return m
else:
return n
print(maxVAlue(x,y), ' Is greatest')
#Scoping
def f(x):
... | 12 | 42 | 0.489316 | 79 | 468 | 2.898734 | 0.468354 | 0.034935 | 0.122271 | 0.165939 | 0.227074 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059937 | 0.32265 | 468 | 39 | 43 | 12 | 0.662461 | 0.17735 | 0 | 0.105263 | 0 | 0 | 0.190981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0 | 0 | 0.263158 | 0.263158 | 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 |
c8f67d553b852572b1e1ee3c7baf0a454c4aa0ee | 592 | py | Python | Dobro da area do quadrado.py | marcelocmedeiros/EstruturaSequencial | 52948b594d4057037fef32db115c95612b1dcd7b | [
"MIT"
] | null | null | null | Dobro da area do quadrado.py | marcelocmedeiros/EstruturaSequencial | 52948b594d4057037fef32db115c95612b1dcd7b | [
"MIT"
] | null | null | null | Dobro da area do quadrado.py | marcelocmedeiros/EstruturaSequencial | 52948b594d4057037fef32db115c95612b1dcd7b | [
"MIT"
] | null | null | null | # Marcelo Campos de Medeiros
# ADS UNIFIP 2020.1
# Patos-PB 17/03/2020
'''
Faça um Programa que calcule a área de um quadrado,
em seguida mostre o dobro desta área para o usuário.
'''
print('='*43)
print('PROGRAMA DA ÁREA DO QUADRADO E SEU DOBRO')
print('='*43,'\n')
# variável valor do lado do quadrado
print('='*43)... | 24.666667 | 63 | 0.682432 | 106 | 592 | 3.811321 | 0.45283 | 0.123762 | 0.138614 | 0.118812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051125 | 0.173986 | 592 | 23 | 64 | 25.73913 | 0.775051 | 0.435811 | 0 | 0.4 | 0 | 0 | 0.507788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.7 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c8f97e2fff6ad9f33aaeed9e87cf9d427a4c49ca | 4,742 | py | Python | dtw_diag.py | kibol/data-analytics | 89228849e9897c753dfd95507a9148422735f4fb | [
"BSD-2-Clause"
] | null | null | null | dtw_diag.py | kibol/data-analytics | 89228849e9897c753dfd95507a9148422735f4fb | [
"BSD-2-Clause"
] | null | null | null | dtw_diag.py | kibol/data-analytics | 89228849e9897c753dfd95507a9148422735f4fb | [
"BSD-2-Clause"
] | null | null | null | #References
#https://stackoverflow.com/
#questions/47330812/find-the-longest-diagonal-of-an-element-in-a-matrix-python
#https://codereview.stackexchange.com/questions/146935/find-diagonal-positions-for-bishop-movement
import numpy as np
import pandas as pd
from itertools import chain
import matplotlib.pyplot as plt
# ... | 41.596491 | 115 | 0.668283 | 681 | 4,742 | 4.563877 | 0.302496 | 0.02574 | 0.014479 | 0.010618 | 0.137066 | 0.07529 | 0.03668 | 0.016088 | 0.016088 | 0.016088 | 0 | 0.044304 | 0.167018 | 4,742 | 114 | 116 | 41.596491 | 0.742532 | 0.391396 | 0 | 0.055556 | 0 | 0 | 0.113294 | 0.044897 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c8fbb7640313f5658eeb1d657f53ab4b53fa0ec0 | 4,691 | py | Python | config.py | ZhiChen902/SC2-PCR | e1994d8e87d51412f1cf7c88f4e4511a4a31597a | [
"MIT"
] | null | null | null | config.py | ZhiChen902/SC2-PCR | e1994d8e87d51412f1cf7c88f4e4511a4a31597a | [
"MIT"
] | null | null | null | config.py | ZhiChen902/SC2-PCR | e1994d8e87d51412f1cf7c88f4e4511a4a31597a | [
"MIT"
] | null | null | null | import argparse
import time
import os
arg_lists = []
parser = argparse.ArgumentParser()
def add_argument_group(name):
arg = parser.add_argument_group(name)
arg_lists.append(arg)
return arg
def str2bool(v):
return v.lower() in ('true', '1')
dataset = '3DMatch'
experiment_id = f"PointDSC_{dataset}_... | 48.360825 | 111 | 0.75016 | 696 | 4,691 | 4.806034 | 0.224138 | 0.194021 | 0.238565 | 0.107623 | 0.458296 | 0.269656 | 0.249327 | 0.249327 | 0.224813 | 0.097459 | 0 | 0.020631 | 0.080367 | 4,691 | 96 | 112 | 48.864583 | 0.754752 | 0.031976 | 0 | 0 | 0 | 0 | 0.258271 | 0.054257 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0.013333 | 0.12 | 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 |
c8fcee237fd21c0a2460dc15a038dcdece466792 | 2,128 | py | Python | scripts/pgen.py | i386x/doit | 61892904940b7ecf29af8ea815b731e242a945f7 | [
"MIT"
] | null | null | null | scripts/pgen.py | i386x/doit | 61892904940b7ecf29af8ea815b731e242a945f7 | [
"MIT"
] | null | null | null | scripts/pgen.py | i386x/doit | 61892904940b7ecf29af8ea815b731e242a945f7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#! \file ./pgen.py
#! \author Jiří Kučera, <sanczes@gmail.com>
#! \stamp 2016-09-06 13:49:00 (UTC+01:00, DST+01:00)
#! \project DoIt!: Tools and Libraries for Building DSLs
#! \license MIT
#! \version 0.0.0
#! \fdesc @pyfile.docstr
... | 32.738462 | 79 | 0.706297 | 313 | 2,128 | 4.680511 | 0.536741 | 0.060068 | 0.017747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021065 | 0.196899 | 2,128 | 64 | 80 | 33.25 | 0.836162 | 0.157425 | 0 | 0 | 0 | 0 | 0.606659 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.105263 | 0 | 0.184211 | 0 | 0 | 0 | 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 |
7400fa4d7a328f6d9c379a3d86cd15b98fe6d561 | 4,408 | py | Python | common.py | dahakawang/svn-helper | fef06ddff2b05885c6c39c410b55f9177874515c | [
"MIT"
] | 1 | 2019-02-27T20:47:59.000Z | 2019-02-27T20:47:59.000Z | common.py | dahakawang/svn-helper | fef06ddff2b05885c6c39c410b55f9177874515c | [
"MIT"
] | null | null | null | common.py | dahakawang/svn-helper | fef06ddff2b05885c6c39c410b55f9177874515c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import types
import sys
from subprocess import call
from tempfile import NamedTemporaryFile
from abc import ABCMeta, abstractmethod
class STYLE:
NORMAL = "NORMAL"
BOLD = "BOLD"
UNDERLINE = "UNDERLINE"
class ANSICOLOR:
BLACK = "BLACK"
RED = "RED"
G... | 26.715152 | 70 | 0.517922 | 482 | 4,408 | 4.661826 | 0.261411 | 0.090788 | 0.056075 | 0.058745 | 0.244771 | 0.227859 | 0.172675 | 0.152203 | 0.11304 | 0.082777 | 0 | 0.018636 | 0.354809 | 4,408 | 164 | 71 | 26.878049 | 0.769691 | 0.009528 | 0 | 0.208633 | 0 | 0 | 0.044684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007194 | 0.035971 | null | null | 0.007194 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cda4ba7ccc0ac2bce6168c706f1c016a1bfd5ba8 | 12,831 | py | Python | apis/views.py | LawAlias/gisflask | 4fb2ae3bb4b7717b86a6fa816db2fc338ebd574e | [
"Apache-2.0"
] | 17 | 2019-03-22T01:01:10.000Z | 2022-03-03T09:56:51.000Z | apis/views.py | LawAlias/gisflask | 4fb2ae3bb4b7717b86a6fa816db2fc338ebd574e | [
"Apache-2.0"
] | null | null | null | apis/views.py | LawAlias/gisflask | 4fb2ae3bb4b7717b86a6fa816db2fc338ebd574e | [
"Apache-2.0"
] | 12 | 2019-03-22T13:30:23.000Z | 2020-05-15T05:36:17.000Z | #coding:utf-8
import urllib,urllib2
from flask import flash,render_template,request,redirect,url_for
from flask.views import MethodView
from apis import app
from flask_login import login_required, current_user
from geomodule.utils import shp2geo_nowriter,geofunc,shp2wkt,geojson2wkt
from main.utils import getUid,getCurr... | 37.299419 | 201 | 0.574858 | 1,458 | 12,831 | 4.98834 | 0.177641 | 0.042073 | 0.030799 | 0.026124 | 0.417572 | 0.389385 | 0.364086 | 0.333562 | 0.323663 | 0.284889 | 0 | 0.008671 | 0.28096 | 12,831 | 343 | 202 | 37.408163 | 0.779644 | 0.032577 | 0 | 0.43949 | 0 | 0 | 0.112537 | 0.021313 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05414 | null | null | 0.015924 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cda5b4d2e7101b2c511cb4dc4d42df76dc2b9ec6 | 511 | py | Python | Flask_03/02_Blueprint_api.py | libin-c/Flask | 522c28f42fe24e3d3ecf99e1c74d1ab035725103 | [
"MIT"
] | null | null | null | Flask_03/02_Blueprint_api.py | libin-c/Flask | 522c28f42fe24e3d3ecf99e1c74d1ab035725103 | [
"MIT"
] | null | null | null | Flask_03/02_Blueprint_api.py | libin-c/Flask | 522c28f42fe24e3d3ecf99e1c74d1ab035725103 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_restful import Resource, Api
from news import article_bp
from users import user_bp
app = Flask(__name__)
api = Api(app)
class HelloWordResource(Resource):
"""
helloword 的类视图
"""
def get(self):
return 'Hello Word'
def post(self):
return {'msg'... | 17.62069 | 63 | 0.696673 | 65 | 511 | 5.169231 | 0.523077 | 0.053571 | 0.053571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193738 | 511 | 28 | 64 | 18.25 | 0.815534 | 0.027397 | 0 | 0 | 0 | 0 | 0.089583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 0.5625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
cda8ae49e4ed6f3e86ccde798ae8a29f0a413c72 | 330 | py | Python | hrsalespipes/salespipes/migrations/0002_remove_pipeline_job_candidate.py | hanztura/hrsalespipes | 77accf3132726ced05d84fa2a41891b841f310b8 | [
"Apache-2.0"
] | 3 | 2020-03-26T12:43:43.000Z | 2021-05-10T14:35:51.000Z | hrsalespipes/salespipes/migrations/0002_remove_pipeline_job_candidate.py | hanztura/hrsalespipes | 77accf3132726ced05d84fa2a41891b841f310b8 | [
"Apache-2.0"
] | 5 | 2021-04-08T21:15:15.000Z | 2022-02-10T11:03:12.000Z | hrsalespipes/salespipes/migrations/0002_remove_pipeline_job_candidate.py | hanztura/hrsalespipes | 77accf3132726ced05d84fa2a41891b841f310b8 | [
"Apache-2.0"
] | 1 | 2022-01-30T19:24:48.000Z | 2022-01-30T19:24:48.000Z | # Generated by Django 2.2.10 on 2020-03-06 15:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('salespipes', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='pipeline',
name='job_candidate',
... | 18.333333 | 48 | 0.593939 | 34 | 330 | 5.676471 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085837 | 0.293939 | 330 | 17 | 49 | 19.411765 | 0.742489 | 0.139394 | 0 | 0 | 1 | 0 | 0.152482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cdaec025ecd424abc61a6b481850ad4498338b8f | 8,546 | py | Python | maps/tests/flatskymap_operators.py | tskisner/spt3g_software | bf4ba191506842477490c6d2300caeafee5fe93d | [
"BSD-2-Clause"
] | 6 | 2017-05-03T15:37:55.000Z | 2019-05-29T17:14:48.000Z | maps/tests/flatskymap_operators.py | tskisner/spt3g_software | bf4ba191506842477490c6d2300caeafee5fe93d | [
"BSD-2-Clause"
] | 36 | 2017-09-25T20:05:41.000Z | 2022-03-25T18:57:57.000Z | maps/tests/flatskymap_operators.py | tskisner/spt3g_software | bf4ba191506842477490c6d2300caeafee5fe93d | [
"BSD-2-Clause"
] | 10 | 2017-09-25T18:54:11.000Z | 2020-05-17T19:55:57.000Z | #!/usr/bin/env python
import numpy as np
from spt3g import core
from spt3g.maps import FlatSkyMap, MapProjection, get_ra_dec_map, get_map_stats, get_map_median
from scipy.stats import skew, kurtosis
# Sparse extension operators
m = FlatSkyMap(500, 20, core.G3Units.arcmin)
m[7345] = 4
m[7345-500] = 4 # Backward
m[7345... | 30.521429 | 107 | 0.61444 | 1,371 | 8,546 | 3.740336 | 0.16849 | 0.116615 | 0.062403 | 0.017551 | 0.448713 | 0.37851 | 0.331708 | 0.303822 | 0.264041 | 0.227574 | 0 | 0.075063 | 0.21121 | 8,546 | 279 | 108 | 30.630824 | 0.685655 | 0.076527 | 0 | 0.24537 | 0 | 0 | 0.003685 | 0 | 0 | 0 | 0 | 0 | 0.49537 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.027778 | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cdaf26f2c74efe59feee2d6ee8d25e9ec951ef8d | 2,955 | py | Python | gooch_maf_tools/commands/analysis/split_maf_with_counts.py | kotoroshinoto/TCGA_MAF_Analysis | 48e9293015d47ee0f97ea9707896798b84f14feb | [
"Unlicense"
] | null | null | null | gooch_maf_tools/commands/analysis/split_maf_with_counts.py | kotoroshinoto/TCGA_MAF_Analysis | 48e9293015d47ee0f97ea9707896798b84f14feb | [
"Unlicense"
] | 2 | 2017-03-15T17:55:43.000Z | 2017-03-15T17:57:50.000Z | gooch_maf_tools/commands/analysis/split_maf_with_counts.py | kotoroshinoto/TCGA_MAF_Analysis | 48e9293015d47ee0f97ea9707896798b84f14feb | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
import click
import os
import sys
from gooch_maf_tools.formats import MAF
from gooch_maf_tools.util.MAFSampleCountsList import MAFSampleCountsList
__author__ = 'mgooch'
def generate_file_handles(maf, bounds, prefix=None):
handles = list()
for i in range(len(bounds)):
bounds[i] = int(bounds... | 35.60241 | 103 | 0.691709 | 469 | 2,955 | 4.234542 | 0.292111 | 0.006042 | 0.012085 | 0.022155 | 0.215005 | 0.205438 | 0.178751 | 0.08711 | 0.066969 | 0.042296 | 0 | 0.008786 | 0.152623 | 2,955 | 83 | 104 | 35.60241 | 0.784345 | 0.125212 | 0 | 0.064516 | 0 | 0 | 0.163347 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.032258 | false | 0 | 0.080645 | 0 | 0.129032 | 0.096774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cdaf819afed9a664c6e630135f41a5aba314e1e2 | 2,334 | py | Python | neovim/script_host.py | justinmk/python-client | e24b35772496cef55c7e78586b13cb91558e9641 | [
"Apache-2.0"
] | null | null | null | neovim/script_host.py | justinmk/python-client | e24b35772496cef55c7e78586b13cb91558e9641 | [
"Apache-2.0"
] | null | null | null | neovim/script_host.py | justinmk/python-client | e24b35772496cef55c7e78586b13cb91558e9641 | [
"Apache-2.0"
] | null | null | null | from imp import new_module, find_module, load_module
import sys, logging, os.path
from traceback import format_exc
logger = logging.getLogger(__name__)
debug, warn = (logger.debug, logger.warn,)
class ScriptHost(object):
"""
Plugin that provides the 'python' feature, emulating an environment for
python co... | 36.46875 | 79 | 0.61054 | 293 | 2,334 | 4.638225 | 0.447099 | 0.066225 | 0.072112 | 0.03532 | 0.099338 | 0.047093 | 0.047093 | 0 | 0 | 0 | 0 | 0.011132 | 0.307198 | 2,334 | 63 | 80 | 37.047619 | 0.829314 | 0.17395 | 0 | 0 | 0 | 0 | 0.063564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.093023 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cdb7977aa2eecf63010feb82bd050c847c6fd365 | 498 | py | Python | src/modes/uniform.py | sr-lab/pyrrho | 8e05101d6bea97872bf8386ff1aa4a86e259ffd1 | [
"MIT"
] | null | null | null | src/modes/uniform.py | sr-lab/pyrrho | 8e05101d6bea97872bf8386ff1aa4a86e259ffd1 | [
"MIT"
] | null | null | null | src/modes/uniform.py | sr-lab/pyrrho | 8e05101d6bea97872bf8386ff1aa4a86e259ffd1 | [
"MIT"
] | null | null | null | import pandas as pd
def reselect (total, surplus, df):
""" Models uniform reselection on a password probability distribution.
Args:
total (float): The total probability (should be approximately equal to 1).
surplus (float): The surplus probability (should be less than or equal to `total`).
... | 31.125 | 91 | 0.668675 | 63 | 498 | 5.285714 | 0.619048 | 0.108108 | 0.114114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002653 | 0.242972 | 498 | 15 | 92 | 33.2 | 0.880637 | 0.654618 | 0 | 0 | 0 | 0 | 0.076389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cdbfe399c5e0b13fecf5e7b220f64beb263e9636 | 304 | py | Python | src/main.py | IIC2173-2018-2-G1/sample-python-service | 5dd06326b0a4b2056770a789f9d10ce6f8df5b0f | [
"MIT"
] | null | null | null | src/main.py | IIC2173-2018-2-G1/sample-python-service | 5dd06326b0a4b2056770a789f9d10ce6f8df5b0f | [
"MIT"
] | null | null | null | src/main.py | IIC2173-2018-2-G1/sample-python-service | 5dd06326b0a4b2056770a789f9d10ce6f8df5b0f | [
"MIT"
] | null | null | null | from flask import Flask
from flask_restful import Api
from .resources import Todo, TodoList
# initialize api
app = Flask(__name__)
api = Api(app)
# add api resources
api.add_resource(TodoList, "/todos")
api.add_resource(Todo, "/todos/<int:todo_id>")
if __name__ == "__main__":
app.run(debug=True)
| 20.266667 | 46 | 0.740132 | 45 | 304 | 4.644444 | 0.466667 | 0.086124 | 0.133971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138158 | 304 | 14 | 47 | 21.714286 | 0.79771 | 0.105263 | 0 | 0 | 0 | 0 | 0.126394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cdc1822336aeef72f2e1484cb9adeaaf5bf1c4e8 | 2,370 | py | Python | oo/carro.py | juliocesar06/pythonbirds | c79402eae914c478174cb645967ef831dacbf320 | [
"MIT"
] | null | null | null | oo/carro.py | juliocesar06/pythonbirds | c79402eae914c478174cb645967ef831dacbf320 | [
"MIT"
] | null | null | null | oo/carro.py | juliocesar06/pythonbirds | c79402eae914c478174cb645967ef831dacbf320 | [
"MIT"
] | null | null | null | """
#teste
>>> motor = Motor()
>>> motor.velocidade
0
>>> motor.acelerar()
>>> motor.velocidade
1
>>> motor.acelerar()
>>> motor.velocidade
2
>>> motor.acelerar()
>>> motor.velocidade
3
>>> motor.frear()
>>> motor.velocidade
1
>>> motor.frear()
>>> motor.velocidade
0
>>> direcao = Direcao()
>>> direcao.valor
'Norte'
>>... | 19.268293 | 99 | 0.651055 | 299 | 2,370 | 5.036789 | 0.207358 | 0.102258 | 0.091633 | 0.058433 | 0.377158 | 0.053121 | 0.053121 | 0 | 0 | 0 | 0 | 0.014085 | 0.191139 | 2,370 | 122 | 100 | 19.42623 | 0.771518 | 0.560759 | 0 | 0.393939 | 0 | 0 | 0.017595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.30303 | false | 0 | 0 | 0.030303 | 0.484848 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cdc4434f36dc84e6ce4bd8ed3af61d24d18a6b70 | 345 | py | Python | apps/favor/forms.py | AniPython/ani | 2536ac9ddae2b8396b634f982fb1083339b4a389 | [
"MIT"
] | null | null | null | apps/favor/forms.py | AniPython/ani | 2536ac9ddae2b8396b634f982fb1083339b4a389 | [
"MIT"
] | null | null | null | apps/favor/forms.py | AniPython/ani | 2536ac9ddae2b8396b634f982fb1083339b4a389 | [
"MIT"
] | null | null | null | from django import forms
from .models import Favor
class FavorForm(forms.ModelForm):
class Meta:
model = Favor
fields = ['author', 'object_id', 'content_type']
widgets = {
'author': forms.HiddenInput,
'object_id': forms.HiddenInput,
'content_type': form... | 23 | 56 | 0.591304 | 34 | 345 | 5.882353 | 0.558824 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 345 | 14 | 57 | 24.642857 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.156522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cdd2fc9a7764524629112fb4f655b26e855456cf | 971 | py | Python | size_comparison.py | Di-Ca-N/python_builtin_collections | b972c91c3222f3f53571b49faa742351b0c74609 | [
"MIT"
] | null | null | null | size_comparison.py | Di-Ca-N/python_builtin_collections | b972c91c3222f3f53571b49faa742351b0c74609 | [
"MIT"
] | null | null | null | size_comparison.py | Di-Ca-N/python_builtin_collections | b972c91c3222f3f53571b49faa742351b0c74609 | [
"MIT"
] | null | null | null | import sys
from collections import deque
NUM_ELEMS = 1000000
BASE_RANGE = range(NUM_ELEMS)
t = tuple(BASE_RANGE)
l = list(BASE_RANGE)
d = dict(enumerate(BASE_RANGE))
s = set(BASE_RANGE)
dq = deque(BASE_RANGE)
tuple_size = sys.getsizeof(t)
list_size = sys.getsizeof(l)
dict_size = sys.getsizeof(d)
set_size = sys.getsi... | 31.322581 | 63 | 0.750772 | 167 | 971 | 4.179641 | 0.197605 | 0.077364 | 0.114613 | 0.08596 | 0.267908 | 0.141834 | 0.141834 | 0.141834 | 0 | 0 | 0 | 0.008235 | 0.124614 | 971 | 30 | 64 | 32.366667 | 0.812941 | 0 | 0 | 0 | 0 | 0 | 0.507724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 0.44 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cdda8c54053e4d3ac9e2154aad25fa00d7796f25 | 415 | py | Python | resources/decor.py | RoranBlackfire/python-screenrecorder | 1821e44aaa49ad68e59ea9d3393ea3d3e7ba6258 | [
"BSD-3-Clause"
] | null | null | null | resources/decor.py | RoranBlackfire/python-screenrecorder | 1821e44aaa49ad68e59ea9d3393ea3d3e7ba6258 | [
"BSD-3-Clause"
] | null | null | null | resources/decor.py | RoranBlackfire/python-screenrecorder | 1821e44aaa49ad68e59ea9d3393ea3d3e7ba6258 | [
"BSD-3-Clause"
] | null | null | null | #decorators for functions
def audio_record_thread(func):
def inner(s):
print("AudioCapture: Started Recording Audio")
func(s)
print("AudioCapture: Stopped Recording Audio")
return
return inner
def file_saving(func, filename):
def wrap(s, filename):
print("Saving... | 24.411765 | 54 | 0.614458 | 47 | 415 | 5.361702 | 0.446809 | 0.047619 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.286747 | 415 | 17 | 55 | 24.411765 | 0.851351 | 0.057831 | 0 | 0.142857 | 0 | 0 | 0.250639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.428571 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cddb27d17a147100b14c7b3cdf8d6d5771602d06 | 1,097 | py | Python | oscar/apps/analytics/migrations/0001_initial.py | nosrevi/django-oscar | 180571fecec6fbe4654fbcd3e3017d8580814450 | [
"BSD-3-Clause"
] | 2 | 2015-12-11T00:19:15.000Z | 2021-11-14T19:44:42.000Z | oscar/apps/analytics/migrations/0001_initial.py | nosrevi/django-oscar | 180571fecec6fbe4654fbcd3e3017d8580814450 | [
"BSD-3-Clause"
] | null | null | null | oscar/apps/analytics/migrations/0001_initial.py | nosrevi/django-oscar | 180571fecec6fbe4654fbcd3e3017d8580814450 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='ProductRecord',
fields=[
('id', models.AutoFiel... | 35.387097 | 115 | 0.581586 | 98 | 1,097 | 6.295918 | 0.510204 | 0.124797 | 0.160454 | 0.179903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007663 | 0.286235 | 1,097 | 30 | 116 | 36.566667 | 0.780332 | 0.019143 | 0 | 0 | 0 | 0 | 0.175978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.208333 | 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 |
cde711009094fa7c0be2520f572e14959c98dc5e | 1,685 | py | Python | test/guitests/test_filesysitemdata.py | JukeboxPipeline/jukebox-core | bac2280ca49940355270e4b69400ce9976ab2e6f | [
"BSD-3-Clause"
] | 2 | 2015-01-22T17:39:10.000Z | 2015-03-31T09:03:24.000Z | test/guitests/test_filesysitemdata.py | JukeboxPipeline/jukebox-core | bac2280ca49940355270e4b69400ce9976ab2e6f | [
"BSD-3-Clause"
] | 3 | 2016-10-28T16:11:14.000Z | 2020-06-05T17:46:08.000Z | test/guitests/test_filesysitemdata.py | JukeboxPipeline/jukebox-core | bac2280ca49940355270e4b69400ce9976ab2e6f | [
"BSD-3-Clause"
] | null | null | null | import pytest
from PySide import QtCore
from jukeboxcore.gui import filesysitemdata as fsitd
from jukeboxcore.filesys import JB_File
dr = QtCore.Qt.DisplayRole
def test_tfi_element_data(taskfileinfo):
assert fsitd.taskfileinfo_element_data(taskfileinfo, dr) == "Shot01"
def test_tfi_task_data(taskfileinfo):
... | 28.559322 | 97 | 0.692582 | 191 | 1,685 | 5.858639 | 0.293194 | 0.171582 | 0.053619 | 0.144772 | 0.264522 | 0.055407 | 0 | 0 | 0 | 0 | 0 | 0.014243 | 0.208309 | 1,685 | 58 | 98 | 29.051724 | 0.824588 | 0 | 0 | 0 | 0 | 0 | 0.043917 | 0 | 0 | 0 | 0 | 0 | 0.30303 | 1 | 0.333333 | false | 0 | 0.121212 | 0.030303 | 0.484848 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cdeba16bd766637762f67abd445ee864b9a19b3a | 24,084 | py | Python | renishawWiRE/wdfReader.py | lovaulonze/py-wdf-reader | f9632eaf35fe51634bdce71dc0a6937e1454707f | [
"MIT"
] | 3 | 2018-08-24T04:47:35.000Z | 2019-10-08T10:47:32.000Z | renishawWiRE/wdfReader.py | lovaulonze/py-wdf-reader | f9632eaf35fe51634bdce71dc0a6937e1454707f | [
"MIT"
] | 2 | 2018-10-02T08:17:23.000Z | 2018-11-06T15:32:30.000Z | renishawWiRE/wdfReader.py | lovaulonze/py-wdf-reader | f9632eaf35fe51634bdce71dc0a6937e1454707f | [
"MIT"
] | 3 | 2018-10-09T11:51:04.000Z | 2019-12-11T09:23:44.000Z | # Renishaw wdf Raman spectroscopy file reader
# Code inspired by Henderson, Alex DOI:10.5281/zenodo.495477
from __future__ import print_function
import struct
import numpy
import io
from .types import LenType, DataType, MeasurementType
from .types import ScanType, UnitType, DataType
from .types import Offsets, ExifTags... | 41.310463 | 112 | 0.552857 | 2,854 | 24,084 | 4.459005 | 0.176945 | 0.022002 | 0.03206 | 0.021374 | 0.199356 | 0.141836 | 0.089109 | 0.064592 | 0.048012 | 0.034811 | 0 | 0.015777 | 0.349942 | 24,084 | 582 | 113 | 41.381443 | 0.797075 | 0.224174 | 0 | 0.160714 | 0 | 0 | 0.087644 | 0.001369 | 0 | 0 | 0.000383 | 0.013746 | 0 | 1 | 0.045918 | false | 0.002551 | 0.033163 | 0 | 0.130102 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cdedd3806e0287e5717421f41cdfd5d791e00b98 | 643 | py | Python | 11/test_advent11.py | markusstraub/advent_of_code_2021 | ef6b47fa22ec7f015eeb4ae8e22890bfa118bc32 | [
"Unlicense"
] | null | null | null | 11/test_advent11.py | markusstraub/advent_of_code_2021 | ef6b47fa22ec7f015eeb4ae8e22890bfa118bc32 | [
"Unlicense"
] | null | null | null | 11/test_advent11.py | markusstraub/advent_of_code_2021 | ef6b47fa22ec7f015eeb4ae8e22890bfa118bc32 | [
"Unlicense"
] | null | null | null | from advent11 import Point, EnergyMap
def test_read():
energy_map = EnergyMap()
assert energy_map.height == 10
assert energy_map.width == 10
assert energy_map.get(Point(0, 0)) == 5
assert energy_map.get(Point(2, 6)) == 7
def test_neighobrs():
energy_map = EnergyMap()
assert len(energy_ma... | 27.956522 | 59 | 0.676516 | 94 | 643 | 4.468085 | 0.351064 | 0.192857 | 0.142857 | 0.128571 | 0.371429 | 0.261905 | 0.261905 | 0.17619 | 0 | 0 | 0 | 0.058824 | 0.180404 | 643 | 22 | 60 | 29.227273 | 0.73814 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.625 | 1 | 0.1875 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cdf06364917379c9d12717e7a2ac34e7f5537d1b | 208 | py | Python | web scraping/tools/ascii_saver.py | jsheng0901/NLP-Stock-Predict | 1756aabe0545aebcc56e78570504d16cbd3003c5 | [
"MIT"
] | null | null | null | web scraping/tools/ascii_saver.py | jsheng0901/NLP-Stock-Predict | 1756aabe0545aebcc56e78570504d16cbd3003c5 | [
"MIT"
] | null | null | null | web scraping/tools/ascii_saver.py | jsheng0901/NLP-Stock-Predict | 1756aabe0545aebcc56e78570504d16cbd3003c5 | [
"MIT"
] | null | null | null | # In case of ASCII horror,
# need to get rid of this in the future.
def ascii_saver(s):
try:
s = s.encode('ascii', errors='ignore')
except:
print('ascii cannot save', s)
return s
| 20.8 | 46 | 0.600962 | 33 | 208 | 3.757576 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.283654 | 208 | 9 | 47 | 23.111111 | 0.832215 | 0.302885 | 0 | 0 | 0 | 0 | 0.197183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 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 |
cdf3c4302bda00cf1fc765bd02416be1fbc13fd4 | 20,455 | py | Python | ismore/ismore_tests/eeg_decoding.py | DerekYJC/bmi_python | 7b9cf3f294a33688db24b0863c1035e9cc6999ea | [
"Apache-2.0"
] | null | null | null | ismore/ismore_tests/eeg_decoding.py | DerekYJC/bmi_python | 7b9cf3f294a33688db24b0863c1035e9cc6999ea | [
"Apache-2.0"
] | 12 | 2020-07-31T18:58:31.000Z | 2022-02-10T14:36:00.000Z | ismore/ismore_tests/eeg_decoding.py | DerekYJC/bmi_python | 7b9cf3f294a33688db24b0863c1035e9cc6999ea | [
"Apache-2.0"
] | 4 | 2020-03-06T15:39:00.000Z | 2021-05-26T17:03:21.000Z | import tables
import os
import numpy as np
import pandas as pd
import math
import pdb # pdb.set_trace() Kind of the same thing as keyboard function in matlab
import sklearn
import copy
import matplotlib.pyplot as plt
from scipy.interpolate import interp1d
from scipy.stats import pearsonr
from scipy.signal import butter... | 54.113757 | 321 | 0.601858 | 2,744 | 20,455 | 4.212099 | 0.144679 | 0.021197 | 0.033224 | 0.013843 | 0.490742 | 0.397647 | 0.329296 | 0.29711 | 0.260772 | 0.255061 | 0 | 0.018092 | 0.297433 | 20,455 | 378 | 322 | 54.113757 | 0.786167 | 0.320606 | 0 | 0.166667 | 0 | 0 | 0.020492 | 0 | 0 | 0 | 0 | 0.002646 | 0 | 0 | null | null | 0.004762 | 0.085714 | null | null | 0.009524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cdf40c8f5bf1bc6607f0184339cfb93d249fa73b | 4,342 | py | Python | src/tests/models/models_base.py | chrislybaer/huggingmolecules | 210239ac46b467e900a47e8f4520054636744ca6 | [
"Apache-2.0"
] | 60 | 2021-05-07T16:07:26.000Z | 2022-03-26T19:23:54.000Z | src/tests/models/models_base.py | gabegomes/huggingmolecules | adc581c97fbc21d9967dd9334afa94b22fb77651 | [
"Apache-2.0"
] | 11 | 2021-05-07T16:01:35.000Z | 2022-03-09T13:06:05.000Z | src/tests/models/models_base.py | gabegomes/huggingmolecules | adc581c97fbc21d9967dd9334afa94b22fb77651 | [
"Apache-2.0"
] | 12 | 2021-05-20T08:02:25.000Z | 2022-03-10T14:11:36.000Z | import os
import random
import tempfile
from typing import Type, List
from huggingmolecules.configuration.configuration_api import PretrainedConfigMixin
from huggingmolecules.featurization.featurization_api import PretrainedFeaturizerMixin
from huggingmolecules.models.models_api import PretrainedModelBase
from tests.c... | 45.229167 | 109 | 0.700368 | 529 | 4,342 | 5.453686 | 0.1569 | 0.07487 | 0.077643 | 0.07175 | 0.652686 | 0.650607 | 0.650607 | 0.630503 | 0.622877 | 0.622877 | 0 | 0.001743 | 0.207047 | 4,342 | 95 | 110 | 45.705263 | 0.836189 | 0 | 0 | 0.545455 | 0 | 0 | 0.015891 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.103896 | false | 0.012987 | 0.116883 | 0 | 0.337662 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cdf6d9d397692695462583c3792682e2f8953bee | 2,638 | py | Python | utils.py | AMontgomerie/jigsaw-toxic-severity-competition | 60867447224308722c4cae0ddf0b2cf0b957f66c | [
"MIT"
] | 4 | 2022-02-08T04:20:27.000Z | 2022-02-12T05:57:41.000Z | utils.py | Hsu3hpa/jigsaw-toxic-severity-competition | 1a0f145755025f3c09d904979ce8bc7f9fa4debd | [
"MIT"
] | null | null | null | utils.py | Hsu3hpa/jigsaw-toxic-severity-competition | 1a0f145755025f3c09d904979ce8bc7f9fa4debd | [
"MIT"
] | 1 | 2022-02-08T04:59:28.000Z | 2022-02-08T04:59:28.000Z | import argparse
import numpy as np
import torch
import os
class AverageMeter(object):
def __init__(self) -> None:
self.reset()
def reset(self) -> None:
self.val = 0
self.avg = 0
self.sum = 0
self.count = 0
def update(self, val: float, n: int = 1) -> None:
... | 41.21875 | 87 | 0.686884 | 360 | 2,638 | 4.838889 | 0.288889 | 0.139495 | 0.26349 | 0.045924 | 0.275545 | 0.215844 | 0.179104 | 0.044776 | 0 | 0 | 0 | 0.01392 | 0.1558 | 2,638 | 64 | 88 | 41.21875 | 0.768298 | 0 | 0 | 0 | 0 | 0 | 0.176203 | 0.018568 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089286 | false | 0 | 0.071429 | 0 | 0.196429 | 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 |
a804bedae501ec18d33d6a520f15c2d4e5a87f53 | 497 | py | Python | geektrust.py | PawanRamaMali/Family_Tree-Meet_The_Family | 21b1f3a93720d5c312a41e6983e428b73c97f71a | [
"MIT"
] | null | null | null | geektrust.py | PawanRamaMali/Family_Tree-Meet_The_Family | 21b1f3a93720d5c312a41e6983e428b73c97f71a | [
"MIT"
] | null | null | null | geektrust.py | PawanRamaMali/Family_Tree-Meet_The_Family | 21b1f3a93720d5c312a41e6983e428b73c97f71a | [
"MIT"
] | null | null | null | from src.family.processFileHandler import ProcessFileHandler
from src.family.clan import Clan
import pathlib
import os
import sys
def main():
clan = Clan()
file_name = 'input/initInput.txt'
dir = pathlib.Path().absolute()
fileProcessor = ProcessFileHandler()
fullPath = os.path.join(dir, file_name)
fil... | 22.590909 | 60 | 0.740443 | 62 | 497 | 5.774194 | 0.451613 | 0.039106 | 0.072626 | 0.100559 | 0.117318 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002353 | 0.144869 | 497 | 22 | 61 | 22.590909 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0.054217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 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 |
a80e5286806a33b381ceb56f9b7874e93fef9882 | 1,288 | py | Python | motorapp.py | JayeshRajam/Tuya-motorapp | 3476ba644c9dc8cb08235754544f0e7179464366 | [
"MIT"
] | null | null | null | motorapp.py | JayeshRajam/Tuya-motorapp | 3476ba644c9dc8cb08235754544f0e7179464366 | [
"MIT"
] | null | null | null | motorapp.py | JayeshRajam/Tuya-motorapp | 3476ba644c9dc8cb08235754544f0e7179464366 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import time
import coloredlogs
from tuyalinksdk.client import TuyaClient
from tuyalinksdk.console_qrcode import qrcode_generate
coloredlogs.install(level='DEBUG')
import serial
# Define the serial port and baud rate.
ser = serial.Serial('COM11', 115200)
flag = None
stat ='0'
client = TuyaClient(p... | 23.418182 | 63 | 0.64441 | 168 | 1,288 | 4.839286 | 0.434524 | 0.0246 | 0.01968 | 0.02706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041625 | 0.216615 | 1,288 | 55 | 64 | 23.418182 | 0.764123 | 0.045031 | 0 | 0.043478 | 1 | 0 | 0.121237 | 0.026037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.108696 | 0 | 0.195652 | 0.130435 | 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 |
a8151e2b6629087ebe608be321e7bf2573265144 | 1,460 | py | Python | torch_glow/tests/nodes/size_test.py | aksingh-fb/glow | c50603a1885c9bffd935fbd1c7c10766b062cef9 | [
"Apache-2.0"
] | 1 | 2021-04-10T09:05:08.000Z | 2021-04-10T09:05:08.000Z | torch_glow/tests/nodes/size_test.py | aksingh-fb/glow | c50603a1885c9bffd935fbd1c7c10766b062cef9 | [
"Apache-2.0"
] | null | null | null | torch_glow/tests/nodes/size_test.py | aksingh-fb/glow | c50603a1885c9bffd935fbd1c7c10766b062cef9 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
import torch
from parameterized import parameterized
from tests import utils
class SimpleSizeModel(torch.nn.Module):
def __init__(self, dimension):
super(SimpleSizeModel, self).__init__()
self.dime... | 31.73913 | 85 | 0.669178 | 183 | 1,460 | 5.15847 | 0.453552 | 0.029661 | 0.034958 | 0.082627 | 0.264831 | 0.264831 | 0.205508 | 0.205508 | 0.205508 | 0.205508 | 0 | 0.013877 | 0.210274 | 1,460 | 45 | 86 | 32.444444 | 0.804857 | 0.276712 | 0 | 0.173913 | 0 | 0 | 0.026794 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.173913 | false | 0 | 0.217391 | 0.043478 | 0.521739 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
a81602e0da993b7062bcb2ee206ad331a3e13f24 | 558 | py | Python | sarpy/io/general/nitf_elements/tres/unclass/PIAPEA.py | spacefan/sarpy | 2791af86b568c8a8560275aee426a4718d5a4606 | [
"MIT"
] | 119 | 2018-07-12T22:08:17.000Z | 2022-03-24T12:11:39.000Z | sarpy/io/general/nitf_elements/tres/unclass/PIAPEA.py | spacefan/sarpy | 2791af86b568c8a8560275aee426a4718d5a4606 | [
"MIT"
] | 72 | 2018-03-29T15:57:37.000Z | 2022-03-10T01:46:21.000Z | sarpy/io/general/nitf_elements/tres/unclass/PIAPEA.py | spacefan/sarpy | 2791af86b568c8a8560275aee426a4718d5a4606 | [
"MIT"
] | 54 | 2018-03-27T19:57:20.000Z | 2022-03-09T20:53:11.000Z |
from ..tre_elements import TREExtension, TREElement
__classification__ = "UNCLASSIFIED"
__author__ = "Thomas McCullough"
class PIAPEAType(TREElement):
def __init__(self, value):
super(PIAPEAType, self).__init__()
self.add_field('LASTNME', 's', 28, value)
self.add_field('FIRSTNME', 's', 2... | 26.571429 | 51 | 0.655914 | 66 | 558 | 5.151515 | 0.5 | 0.102941 | 0.176471 | 0.2 | 0.176471 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0.017978 | 0.202509 | 558 | 20 | 52 | 27.9 | 0.746067 | 0 | 0 | 0 | 0 | 0 | 0.129264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 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 |
a8177235e6218917a2adb1960202079bbd287086 | 3,933 | py | Python | numerai/classes/round.py | gansanay/numerai | b96fda1fdf40c63a857f4de91c776b9564ea6308 | [
"MIT"
] | 19 | 2017-03-11T13:32:13.000Z | 2021-03-04T06:00:10.000Z | numerai/classes/round.py | gansanay/numerai | b96fda1fdf40c63a857f4de91c776b9564ea6308 | [
"MIT"
] | null | null | null | numerai/classes/round.py | gansanay/numerai | b96fda1fdf40c63a857f4de91c776b9564ea6308 | [
"MIT"
] | 4 | 2017-03-11T21:24:19.000Z | 2018-05-09T07:57:15.000Z | # -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
import os
from sklearn import cross_validation as CV
from sklearn.linear_model import LogisticRegression as LR
from sklearn.ensemble import RandomForestClassifier as RF
from sklearn.metrics import roc_auc_score as AUC
from pkg_resources import resource_fil... | 33.05042 | 112 | 0.626748 | 522 | 3,933 | 4.450192 | 0.283525 | 0.04477 | 0.079208 | 0.092983 | 0.311666 | 0.303917 | 0.303917 | 0.239346 | 0.235471 | 0.172622 | 0 | 0.011652 | 0.258073 | 3,933 | 119 | 113 | 33.05042 | 0.784441 | 0.018815 | 0 | 0 | 0 | 0 | 0.100596 | 0.031112 | 0 | 0 | 0 | 0 | 0.024096 | 0 | null | null | 0 | 0.120482 | null | null | 0.060241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a817c7d5811bba595b7c0fa1bd7ed9baeb7f15ea | 372 | py | Python | amicable numbers.py | mcvenkat/Python-Programs | 2ff66bbd5b07c8e093b11360e1dcac06740a5024 | [
"CC0-1.0",
"MIT"
] | null | null | null | amicable numbers.py | mcvenkat/Python-Programs | 2ff66bbd5b07c8e093b11360e1dcac06740a5024 | [
"CC0-1.0",
"MIT"
] | 5 | 2020-05-22T14:10:02.000Z | 2022-03-25T19:13:05.000Z | amicable numbers.py | mcvenkat/Python-Programs | 2ff66bbd5b07c8e093b11360e1dcac06740a5024 | [
"CC0-1.0",
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 16 11:07:19 2020
@author: 766810
"""
x=int(input('Enter number 1: '))
y=int(input('Enter number 2: '))
sum1=0
sum2=0
for i in range(1,x):
if x%i==0:
sum1+=i
for j in range(1,y):
if y%j==0:
sum2+=j
if(sum1==y and sum2==x):
pri... | 16.909091 | 36 | 0.524194 | 66 | 372 | 2.954545 | 0.545455 | 0.082051 | 0.133333 | 0.194872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122222 | 0.274194 | 372 | 21 | 37 | 17.714286 | 0.6 | 0.201613 | 0 | 0 | 0 | 0 | 0.201493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 |
a81bb3dbb353c16b27c9820c282da46e688ae007 | 1,731 | py | Python | scripts/kernel_time.py | reveriel/cuda_scheduling_examiner_mirror | 16d2404c0dc8d72f7a13e4a167d3db4c86128a26 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | scripts/kernel_time.py | reveriel/cuda_scheduling_examiner_mirror | 16d2404c0dc8d72f7a13e4a167d3db4c86128a26 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | scripts/kernel_time.py | reveriel/cuda_scheduling_examiner_mirror | 16d2404c0dc8d72f7a13e4a167d3db4c86128a26 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # print kernel time for each launched kernel
import json
import glob
import json
import numpy
import sys
def benchmark_sort_key(benchmark):
"""Returns the key that may be used to sort benchmarks by label."""
if not "label" in benchmark:
return ""
return benchmark["label"]
def print_scenario(b... | 28.85 | 81 | 0.641826 | 220 | 1,731 | 4.922727 | 0.368182 | 0.025854 | 0.020314 | 0.046168 | 0.024007 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005422 | 0.254188 | 1,731 | 59 | 82 | 29.338983 | 0.833462 | 0.086655 | 0 | 0.05 | 0 | 0 | 0.097509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a81f60cf475da2172fcc739aab3130e7d2077e6a | 2,237 | py | Python | compsocsite/polls/migrations/0005_auto_20160502_0301.py | ReedyChen/opra | 86ce88c7219d92e321cd9aa3d0bc2bf631e4b90f | [
"MIT"
] | 8 | 2017-03-07T19:46:51.000Z | 2021-06-01T01:41:37.000Z | compsocsite/polls/migrations/0005_auto_20160502_0301.py | ReedyChen/opra | 86ce88c7219d92e321cd9aa3d0bc2bf631e4b90f | [
"MIT"
] | null | null | null | compsocsite/polls/migrations/0005_auto_20160502_0301.py | ReedyChen/opra | 86ce88c7219d92e321cd9aa3d0bc2bf631e4b90f | [
"MIT"
] | 9 | 2016-06-09T03:36:20.000Z | 2019-09-11T20:56:23.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-05-02 08:01
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('polls', '0004_auto_20160501_1622'),
]
operations = ... | 32.42029 | 116 | 0.573089 | 210 | 2,237 | 5.97619 | 0.347619 | 0.064542 | 0.066932 | 0.105179 | 0.447809 | 0.447809 | 0.298805 | 0.298805 | 0.298805 | 0.298805 | 0 | 0.021113 | 0.301296 | 2,237 | 68 | 117 | 32.897059 | 0.78183 | 0.029951 | 0 | 0.409836 | 1 | 0 | 0.125981 | 0.010614 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04918 | 0 | 0.098361 | 0 | 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 |
a821f102410ff9a17c75399578b2c562f8be4337 | 562 | py | Python | app/models/cli.py | AchrafAsh/fast-torch-lambda | 7696413ed3aca93fa26091bcb612a4819f0d3fa7 | [
"MIT"
] | null | null | null | app/models/cli.py | AchrafAsh/fast-torch-lambda | 7696413ed3aca93fa26091bcb612a4819f0d3fa7 | [
"MIT"
] | null | null | null | app/models/cli.py | AchrafAsh/fast-torch-lambda | 7696413ed3aca93fa26091bcb612a4819f0d3fa7 | [
"MIT"
] | null | null | null | import argparse
import tqdm
import time
from models.train import run
parser = argparse.ArgumentParser(prog="Trainer", allow_abbrev=False)
# parser.add_argument("--train", action='store_true')
parser.add_argument("--epochs", type=int, help="Number of epochs to train", required=False, default=2)
parser.add_argument("... | 33.058824 | 102 | 0.758007 | 84 | 562 | 4.964286 | 0.511905 | 0.086331 | 0.16307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0.092527 | 562 | 17 | 103 | 33.058824 | 0.811765 | 0.090747 | 0 | 0 | 0 | 0 | 0.209804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a822d73f42a4f575f73e91a7fbd3c0eeaae44cc5 | 6,186 | py | Python | spark_auto_mapper_fhir/backbone_elements/specimen_collection.py | imranq2/SparkAutoMapper.FHIR | dd23b218fb0097d1edc2f3e688e8d6d4d7278bd2 | [
"Apache-2.0"
] | 1 | 2020-10-31T23:25:07.000Z | 2020-10-31T23:25:07.000Z | spark_auto_mapper_fhir/backbone_elements/specimen_collection.py | icanbwell/SparkAutoMapper.FHIR | 98f368e781b46523142c7cb513c670d659a93c9b | [
"Apache-2.0"
] | null | null | null | spark_auto_mapper_fhir/backbone_elements/specimen_collection.py | icanbwell/SparkAutoMapper.FHIR | 98f368e781b46523142c7cb513c670d659a93c9b | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
from typing import Optional, TYPE_CHECKING, Union
from spark_auto_mapper_fhir.fhir_types.date_time import FhirDateTime
from spark_auto_mapper_fhir.fhir_types.list import FhirList
from spark_auto_mapper_fhir.fhir_types.string import FhirString
from spark_auto_mapper_fhir.extensions.ex... | 45.485294 | 115 | 0.730844 | 683 | 6,186 | 6.484627 | 0.265007 | 0.030481 | 0.044028 | 0.064349 | 0.349515 | 0.281553 | 0.254459 | 0.139986 | 0.139986 | 0.139986 | 0 | 0.003545 | 0.224863 | 6,186 | 135 | 116 | 45.822222 | 0.920125 | 0.488361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0.017857 | 0.303571 | 0 | 0.339286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a82ff3edace50ee6c96108afbdab521508aad5fb | 2,264 | py | Python | orderbook/test.py | jdelrue/digital_me | e5c92c405c0cea419ce18d25863f35d1bfe5a428 | [
"Apache-2.0"
] | null | null | null | orderbook/test.py | jdelrue/digital_me | e5c92c405c0cea419ce18d25863f35d1bfe5a428 | [
"Apache-2.0"
] | 72 | 2018-08-01T06:13:46.000Z | 2019-02-01T15:50:20.000Z | orderbook/test.py | jdelrue/digital_me | e5c92c405c0cea419ce18d25863f35d1bfe5a428 | [
"Apache-2.0"
] | 2 | 2018-08-05T08:09:13.000Z | 2018-11-21T13:11:28.000Z | from jumpscale import j
print("[-] starting server")
#TODO, can we autoconfigure client & server, is all for test anyhow
server = j.servers.gedis.configure(host = "localhost", port = "8000", websockets_port = "8001", ssl = False, secret = "", app_dir = "", instance='orderbook')
server.start()
print("[-] server starte... | 51.454545 | 166 | 0.730124 | 329 | 2,264 | 4.841945 | 0.270517 | 0.035154 | 0.055242 | 0.052731 | 0.682988 | 0.630257 | 0.586315 | 0.586315 | 0.486503 | 0.486503 | 0 | 0.043694 | 0.110424 | 2,264 | 43 | 167 | 52.651163 | 0.747269 | 0.029152 | 0 | 0.088235 | 0 | 0 | 0.152095 | 0 | 0 | 0 | 0 | 0.023256 | 0.176471 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.029412 | 0.294118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.