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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
542a62b48d45febc53b82e238fe6ed286841ea91 | 454 | py | Python | src/pyuwds3/utils/egocentric_spatial_relations.py | LAAS-HRI/uwds3 | 42390f62ed5701a32710341b01faa10efc448078 | [
"MIT"
] | 2 | 2020-08-19T06:15:14.000Z | 2021-05-23T09:55:18.000Z | src/pyuwds3/utils/egocentric_spatial_relations.py | LAAS-HRI/uwds3 | 42390f62ed5701a32710341b01faa10efc448078 | [
"MIT"
] | 5 | 2021-01-06T09:00:35.000Z | 2021-01-20T13:22:19.000Z | src/pyuwds3/utils/egocentric_spatial_relations.py | LAAS-HRI/uwds3 | 42390f62ed5701a32710341b01faa10efc448078 | [
"MIT"
] | 2 | 2020-11-18T17:34:43.000Z | 2021-05-23T16:14:17.000Z |
import math
from scipy.spatial.distance import euclidean
from ..types.bbox import BoundingBox
def is_left_of(bb1, bb2):
_, _, bb1_max, _, _ = bb1
bb2_min, _, _, _, _ = bb2
return bb1_max < bb2_min
def is_right_of(bb1, bb2):
bb1_min, _, _, _, _ = bb1
_, _, bb2_max, _, _ = bb2
return bb1_min ... | 19.73913 | 44 | 0.634361 | 63 | 454 | 3.920635 | 0.349206 | 0.145749 | 0.109312 | 0.089069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071006 | 0.255507 | 454 | 22 | 45 | 20.636364 | 0.659763 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
542b4553e4da40bd25e9c35ead38f8985d1d5c31 | 2,883 | py | Python | machine_replacement_action_probs.py | dsbrown1331/broil | 3c06e15c560db3242c0e331a2b16cc578a843606 | [
"MIT"
] | 1 | 2021-03-29T09:53:53.000Z | 2021-03-29T09:53:53.000Z | machine_replacement_action_probs.py | dsbrown1331/broil | 3c06e15c560db3242c0e331a2b16cc578a843606 | [
"MIT"
] | 1 | 2020-11-22T15:05:48.000Z | 2020-11-25T00:10:17.000Z | machine_replacement_action_probs.py | dsbrown1331/broil | 3c06e15c560db3242c0e331a2b16cc578a843606 | [
"MIT"
] | null | null | null | import bayesian_irl
import mdp_worlds
import utils
import mdp
import numpy as np
import scipy
import random
import generate_efficient_frontier
from machine_replacement import generate_posterior_samples
if __name__=="__main__":
seed = 1234
np.random.seed(seed)
scipy.random.seed(seed)
random.seed(seed)
... | 27.990291 | 131 | 0.687825 | 432 | 2,883 | 4.326389 | 0.331019 | 0.044944 | 0.019262 | 0.024077 | 0.165329 | 0.107009 | 0.037453 | 0.037453 | 0 | 0 | 0 | 0.026782 | 0.197017 | 2,883 | 103 | 132 | 27.990291 | 0.780562 | 0.044745 | 0 | 0.029412 | 1 | 0 | 0.097419 | 0.022901 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.161765 | 0 | 0.161765 | 0.220588 | 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 |
580d445ca9f82fbb66ddc5c165290139ca728a53 | 2,795 | py | Python | meet/migrations/0001_initial.py | bjones-tech/speedy-meety | a7d557788a544b69fd6ad454d921d9cf02cfa636 | [
"MIT"
] | null | null | null | meet/migrations/0001_initial.py | bjones-tech/speedy-meety | a7d557788a544b69fd6ad454d921d9cf02cfa636 | [
"MIT"
] | null | null | null | meet/migrations/0001_initial.py | bjones-tech/speedy-meety | a7d557788a544b69fd6ad454d921d9cf02cfa636 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-03-17 02:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import meet.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
... | 43.671875 | 131 | 0.586047 | 288 | 2,795 | 5.534722 | 0.309028 | 0.040151 | 0.110414 | 0.114178 | 0.461104 | 0.461104 | 0.442284 | 0.442284 | 0.365747 | 0.365747 | 0 | 0.022871 | 0.264759 | 2,795 | 63 | 132 | 44.365079 | 0.752798 | 0.023971 | 0 | 0.381818 | 1 | 0 | 0.112294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.072727 | 0 | 0.145455 | 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 |
5810e3bb40adfc4d345436082de3af836eeff704 | 14,812 | py | Python | utils/github/query.py | malkfilipp/ClickHouse | 79a206b092cd465731020f331bc41f6951dbe751 | [
"Apache-2.0"
] | 1 | 2019-09-16T11:07:32.000Z | 2019-09-16T11:07:32.000Z | utils/github/query.py | malkfilipp/ClickHouse | 79a206b092cd465731020f331bc41f6951dbe751 | [
"Apache-2.0"
] | null | null | null | utils/github/query.py | malkfilipp/ClickHouse | 79a206b092cd465731020f331bc41f6951dbe751 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import requests
class Query:
'''Implements queries to the Github API using GraphQL
'''
def __init__(self, token, max_page_size=100, min_page_size=5):
self._token = token
self._max_page_size = max_page_size
self._min_page_size = min_page_size
self.a... | 41.96034 | 128 | 0.369498 | 975 | 14,812 | 5.424615 | 0.190769 | 0.05294 | 0.049915 | 0.028361 | 0.458877 | 0.425411 | 0.387408 | 0.35035 | 0.297599 | 0.263755 | 0 | 0.004018 | 0.546314 | 14,812 | 352 | 129 | 42.079545 | 0.783036 | 0.068188 | 0 | 0.585965 | 0 | 0.003509 | 0.588123 | 0.030613 | 0 | 0 | 0 | 0.002841 | 0.003509 | 1 | 0.02807 | false | 0 | 0.017544 | 0 | 0.091228 | 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 |
581495ab37cf4df801b88c86040220d6464bbc32 | 4,141 | py | Python | ref_rna.py | entn-at/warp-rna | f6bf19634564068f23f9906373754e04f9b653a3 | [
"MIT"
] | 39 | 2019-08-11T09:06:55.000Z | 2022-03-30T03:24:34.000Z | ref_rna.py | entn-at/warp-rna | f6bf19634564068f23f9906373754e04f9b653a3 | [
"MIT"
] | null | null | null | ref_rna.py | entn-at/warp-rna | f6bf19634564068f23f9906373754e04f9b653a3 | [
"MIT"
] | 6 | 2019-12-11T03:02:48.000Z | 2021-11-29T09:01:51.000Z | """
Python reference implementation of the Recurrent Neural Aligner.
Author: Ivan Sorokin
Based on the papers:
- "Recurrent Neural Aligner: An Encoder-Decoder Neural Network Model for Sequence to Sequence Mapping"
Hasim Sak, et al., 2017
- "Extending Recurrent Neural Aligner for Streaming End-to-End Speech Rec... | 26.544872 | 103 | 0.59744 | 682 | 4,141 | 3.501466 | 0.190616 | 0.103853 | 0.041457 | 0.025126 | 0.389866 | 0.321608 | 0.223618 | 0.173786 | 0.099665 | 0.047739 | 0 | 0.027429 | 0.269259 | 4,141 | 155 | 104 | 26.716129 | 0.761732 | 0.105047 | 0 | 0.197802 | 0 | 0 | 0.033815 | 0 | 0 | 0 | 0 | 0 | 0.021978 | 1 | 0.076923 | false | 0.065934 | 0.010989 | 0 | 0.164835 | 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 |
581774fbaaecfebcc97c105cd9ba5717bc57c3de | 5,396 | py | Python | SONOS/sonos-fadein-alarm.py | tksunw/IoT | 2148c49e9a90822400f195be7b1de3f8e8b8ba2a | [
"MIT"
] | 1 | 2018-01-30T23:30:27.000Z | 2018-01-30T23:30:27.000Z | SONOS/sonos-fadein-alarm.py | tksunw/IoT | 2148c49e9a90822400f195be7b1de3f8e8b8ba2a | [
"MIT"
] | 1 | 2018-02-14T19:58:56.000Z | 2018-02-14T19:58:56.000Z | SONOS/sonos-fadein-alarm.py | tksunw/IoT | 2148c49e9a90822400f195be7b1de3f8e8b8ba2a | [
"MIT"
] | 2 | 2018-02-13T18:52:09.000Z | 2021-09-29T14:27:49.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
sonos-fadein-alarm.py - a gentle alarm using Sonos Favorites.
This module allows a user to choose a SONOS favorite channel to
play for a gentle alarm. Select the maximum desired volume, the
number of minutes over which to ramp volume from 0 to the chosen
maxium, and choose... | 38.542857 | 137 | 0.623981 | 749 | 5,396 | 4.427236 | 0.335113 | 0.0193 | 0.03076 | 0.016285 | 0.084138 | 0.06152 | 0.031966 | 0.031966 | 0.031966 | 0.022316 | 0 | 0.009741 | 0.277057 | 5,396 | 139 | 138 | 38.820144 | 0.840297 | 0.083951 | 0 | 0.064103 | 0 | 0.012821 | 0.263069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064103 | null | null | 0.064103 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5819a9286725e2bb1d31cefd9b8edf4e2e05b208 | 642 | py | Python | simfin/revenue/personal_taxes.py | CREEi-models/simfin | a7c632ac8bc8f795cd46028c1a49e65a1c1b44eb | [
"MIT"
] | 1 | 2021-06-11T15:16:13.000Z | 2021-06-11T15:16:13.000Z | simfin/revenue/personal_taxes.py | CREEi-models/simfin | a7c632ac8bc8f795cd46028c1a49e65a1c1b44eb | [
"MIT"
] | 1 | 2021-06-07T14:39:27.000Z | 2021-06-07T14:39:27.000Z | simfin/revenue/personal_taxes.py | CREEi-models/simfin | a7c632ac8bc8f795cd46028c1a49e65a1c1b44eb | [
"MIT"
] | 1 | 2021-03-17T03:52:21.000Z | 2021-03-17T03:52:21.000Z | from simfin.tools import account
class personal_taxes(account):
'''
Classe permettant d'intégrer l'impôt des particuliers.
'''
def set_align(self,pop,eco):
earnings = pop.multiply(eco['emp']*eco['earn_c']+eco['taxinc'],fill_value=0.0)
value = earnings.multiply(eco['personal_taxes'],fi... | 33.789474 | 95 | 0.65109 | 91 | 642 | 4.483516 | 0.406593 | 0.107843 | 0.098039 | 0.107843 | 0.553922 | 0.553922 | 0.553922 | 0.553922 | 0.553922 | 0.553922 | 0 | 0.015326 | 0.186916 | 642 | 18 | 96 | 35.666667 | 0.766284 | 0.084112 | 0 | 0.333333 | 0 | 0 | 0.101399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
581d47d6e3101d07297475a1a84d27b2898647b8 | 1,002 | py | Python | explain.py | jcsalterego/gh-contest | 033f87c5338e3066ee4c80df2ee8e1ae4d6f1c7b | [
"BSD-3-Clause"
] | 1 | 2015-11-05T02:50:57.000Z | 2015-11-05T02:50:57.000Z | explain.py | jcsalterego/gh-contest | 033f87c5338e3066ee4c80df2ee8e1ae4d6f1c7b | [
"BSD-3-Clause"
] | null | null | null | explain.py | jcsalterego/gh-contest | 033f87c5338e3066ee4c80df2ee8e1ae4d6f1c7b | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from pprint import pprint
from matchmaker.database import *
import sys
def main(argv):
if len(argv) == 1:
return
line = argv[1]
if line[0] in '+-':
line = line[1:]
user, repos = line.split(":")
user = int(user)
repos = [int(r) for r in repos.split(",")]
... | 22.266667 | 58 | 0.505988 | 135 | 1,002 | 3.659259 | 0.355556 | 0.030364 | 0.040486 | 0.072874 | 0.319838 | 0.319838 | 0.319838 | 0.319838 | 0.319838 | 0.319838 | 0 | 0.032934 | 0.333333 | 1,002 | 44 | 59 | 22.772727 | 0.706587 | 0.01996 | 0 | 0.428571 | 0 | 0 | 0.110092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085714 | null | null | 0.314286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
583374a576c3edb6be71e460848c9177cb1eee6a | 18,398 | py | Python | createbag.py | axfelix/moveit | a0d4207fdd90af8f05a5c55b4b247757cd6d7bb2 | [
"Unlicense"
] | null | null | null | createbag.py | axfelix/moveit | a0d4207fdd90af8f05a5c55b4b247757cd6d7bb2 | [
"Unlicense"
] | null | null | null | createbag.py | axfelix/moveit | a0d4207fdd90af8f05a5c55b4b247757cd6d7bb2 | [
"Unlicense"
] | null | null | null | """
GUI tool to create a Bag from a filesystem folder.
"""
import sys
import os
import shutil
import bagit
import platform
import random
import string
import re
from time import strftime
import subprocess
from paramiko import SSHClient
from paramiko import AutoAddPolicy
from paramiko import AuthenticationException
fro... | 35.655039 | 236 | 0.72709 | 2,331 | 18,398 | 5.553411 | 0.198627 | 0.020857 | 0.007725 | 0.011587 | 0.399614 | 0.343762 | 0.297412 | 0.264504 | 0.248899 | 0.227964 | 0 | 0.010456 | 0.157898 | 18,398 | 515 | 237 | 35.724272 | 0.825082 | 0.06979 | 0 | 0.337629 | 0 | 0.025773 | 0.183904 | 0.003863 | 0 | 0 | 0 | 0.001942 | 0 | 1 | 0.07732 | false | 0.06701 | 0.06701 | 0 | 0.203608 | 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 |
5835a4f4779f435b367bd40c05663242713c67ad | 3,038 | py | Python | Morocco model/scripts/cropland_processing.py | KTH-dESA/FAO | 74459217a9e8ad8107b1d3a96fd52eebd93daebd | [
"MIT"
] | 3 | 2020-09-17T11:12:52.000Z | 2021-03-31T09:24:02.000Z | Morocco model/scripts/cropland_processing.py | KTH-dESA/FAO | 74459217a9e8ad8107b1d3a96fd52eebd93daebd | [
"MIT"
] | 101 | 2019-10-02T10:16:28.000Z | 2021-06-05T06:42:55.000Z | Morocco model/scripts/cropland_processing.py | KTH-dESA/FAO | 74459217a9e8ad8107b1d3a96fd52eebd93daebd | [
"MIT"
] | 2 | 2020-02-23T13:28:00.000Z | 2021-03-31T10:02:46.000Z | import sys
sys.path.append("..") #this is to add the avobe folder to the package directory
import geopandas as gpd
import pandas as pd
import numpy as np
import os
from nexustool.gis_tools import download_data, create_time_data, get_area_share, get_zonal_stats
from nexustool.weap_tools import reproject_raster, sample_r... | 40.506667 | 195 | 0.711982 | 438 | 3,038 | 4.773973 | 0.388128 | 0.017217 | 0.023912 | 0.033477 | 0.210904 | 0.158776 | 0.121473 | 0.072214 | 0.072214 | 0.072214 | 0 | 0.024745 | 0.161949 | 3,038 | 75 | 196 | 40.506667 | 0.796544 | 0.150428 | 0 | 0.130435 | 0 | 0.043478 | 0.189864 | 0.032749 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.152174 | 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 |
583a53eef1dad89d42938f5028c87aba4efb30bb | 10,917 | py | Python | pycost/rocch.py | tfawcett/pycost | 69f96866295dba937a23f36c8f24f2f6acdaccbd | [
"BSD-3-Clause"
] | 1 | 2019-10-05T10:37:47.000Z | 2019-10-05T10:37:47.000Z | pycost/rocch.py | tfawcett/pycost | 69f96866295dba937a23f36c8f24f2f6acdaccbd | [
"BSD-3-Clause"
] | null | null | null | pycost/rocch.py | tfawcett/pycost | 69f96866295dba937a23f36c8f24f2f6acdaccbd | [
"BSD-3-Clause"
] | 1 | 2020-06-12T17:13:14.000Z | 2020-06-12T17:13:14.000Z | """
Metrics to calculate and manipulate the ROC Convex Hull on a classification task given scores.
"""
# Author: Tom Fawcett <tom.fawcett@gmail.com>
from collections import namedtuple
from math import sqrt
from typing import List, Dict, Tuple, Union
# DESCRIPTION:
#
# This program computes the convex hull of a set... | 33.798762 | 100 | 0.612989 | 1,567 | 10,917 | 4.198468 | 0.246331 | 0.0076 | 0.011856 | 0.00836 | 0.169631 | 0.121295 | 0.086031 | 0.066879 | 0.066879 | 0.051072 | 0 | 0.01987 | 0.294678 | 10,917 | 322 | 101 | 33.903727 | 0.834545 | 0.511587 | 0 | 0.205607 | 0 | 0 | 0.064729 | 0 | 0 | 0 | 0 | 0.012422 | 0.074766 | 1 | 0.11215 | false | 0 | 0.037383 | 0 | 0.242991 | 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 |
583ba4ab4b346b94532e02cbbc5e159874800f72 | 363 | py | Python | src/sentry/utils/strings.py | rogerhu/sentry | ee2b190e92003abe0f538b2df5b686e425df1200 | [
"BSD-3-Clause"
] | 1 | 2015-12-13T18:27:54.000Z | 2015-12-13T18:27:54.000Z | src/sentry/utils/strings.py | simmetria/sentry | 9731f26adb44847d1c883cca108afc0755cf21cc | [
"BSD-3-Clause"
] | null | null | null | src/sentry/utils/strings.py | simmetria/sentry | 9731f26adb44847d1c883cca108afc0755cf21cc | [
"BSD-3-Clause"
] | null | null | null | def truncatechars(value, arg):
"""
Truncates a string after a certain number of chars.
Argument: Number of chars to truncate after.
"""
try:
length = int(arg)
except ValueError: # Invalid literal for int().
return value # Fail silently.
if len(value) > length:
retu... | 25.928571 | 55 | 0.606061 | 43 | 363 | 5.116279 | 0.651163 | 0.15 | 0.118182 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292011 | 363 | 13 | 56 | 27.923077 | 0.856031 | 0.385675 | 0 | 0.25 | 0 | 0 | 0.014851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.5 | 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 |
5842b3ae714ec5029aefbd5f4f522395e8920892 | 4,652 | py | Python | examples/launch_tor_with_simplehttpd.py | kneufeld/txtorcon | fbe2fc70cae00aa6228a2920ef048b282872dbab | [
"MIT"
] | null | null | null | examples/launch_tor_with_simplehttpd.py | kneufeld/txtorcon | fbe2fc70cae00aa6228a2920ef048b282872dbab | [
"MIT"
] | null | null | null | examples/launch_tor_with_simplehttpd.py | kneufeld/txtorcon | fbe2fc70cae00aa6228a2920ef048b282872dbab | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Create a new tor node and add a simple http server to it, serving a given
directory over http. The server is single-threaded and very limited.
There are two arguments that can be passed via the commandline:
-p\tThe internet-facing port the hidden service should list... | 33.710145 | 96 | 0.635211 | 600 | 4,652 | 4.816667 | 0.386667 | 0.038754 | 0.022145 | 0.014533 | 0.018685 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008639 | 0.278375 | 4,652 | 137 | 97 | 33.956204 | 0.852249 | 0.242691 | 0 | 0.063291 | 0 | 0 | 0.119201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.126582 | null | null | 0.21519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
584381c8993e76aeeaae4fc35eb8cf9d4869915b | 3,417 | py | Python | rever/__init__.py | limecrayon/rever | 0446ad9707fb1e81b3101625959fd16bdaac1853 | [
"MIT"
] | 2 | 2018-02-16T08:31:48.000Z | 2018-11-19T02:31:07.000Z | rever/__init__.py | limecrayon/rever | 0446ad9707fb1e81b3101625959fd16bdaac1853 | [
"MIT"
] | null | null | null | rever/__init__.py | limecrayon/rever | 0446ad9707fb1e81b3101625959fd16bdaac1853 | [
"MIT"
] | null | null | null | import functools
import time
__all__ = ('ReachedMaxRetries', 'rever')
class ReachedMaxRetries(Exception):
def __init__(self, func):
Exception.__init__(self, "Function {} raised exception due to max number of retries performed".format(func))
self.func = func
def rever(**rever_kwargs):
"""
... | 30.238938 | 116 | 0.550776 | 369 | 3,417 | 4.913279 | 0.197832 | 0.260894 | 0.064534 | 0.070601 | 0.449531 | 0.434639 | 0.323773 | 0.323773 | 0.250414 | 0.250414 | 0 | 0.008656 | 0.357624 | 3,417 | 112 | 117 | 30.508929 | 0.817312 | 0.115891 | 0 | 0.239437 | 0 | 0 | 0.105834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056338 | false | 0 | 0.028169 | 0 | 0.197183 | 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 |
5844f2ad1f289327e37c42bac510107e36f8f9d5 | 25,811 | py | Python | gui(12102018).py | hanhydro/T2H | f4922ce721eb450c7d91370f180e6c860e9ec6be | [
"MIT"
] | null | null | null | gui(12102018).py | hanhydro/T2H | f4922ce721eb450c7d91370f180e6c860e9ec6be | [
"MIT"
] | null | null | null | gui(12102018).py | hanhydro/T2H | f4922ce721eb450c7d91370f180e6c860e9ec6be | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'gui.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
import os
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets imp... | 47.975836 | 109 | 0.618728 | 2,893 | 25,811 | 5.46215 | 0.151746 | 0.051639 | 0.066827 | 0.036451 | 0.367295 | 0.251361 | 0.178585 | 0.172447 | 0.172447 | 0.165992 | 0 | 0.038503 | 0.246329 | 25,811 | 537 | 110 | 48.065177 | 0.773814 | 0.022316 | 0 | 0.194131 | 1 | 0 | 0.08243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015801 | false | 0 | 0.031603 | 0 | 0.051919 | 0.004515 | 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 |
5849a619f304aa85187564eba6cb5913a8f7354f | 2,403 | py | Python | tests/unit/backend/corpora/common/entities/datasets/test_revision.py | chanzuckerberg/dcp-prototype | 24d2323ba5ae1482395da35ea11c42708e3a52ce | [
"MIT"
] | 2 | 2020-02-07T18:12:12.000Z | 2020-02-11T14:59:03.000Z | tests/unit/backend/corpora/common/entities/datasets/test_revision.py | HumanCellAtlas/dcp-prototype | 44ca66a266004124f39d7d3e3dd75e9076012ff0 | [
"MIT"
] | 173 | 2020-01-29T17:48:02.000Z | 2020-03-20T02:52:58.000Z | tests/unit/backend/corpora/common/entities/datasets/test_revision.py | HumanCellAtlas/dcp-prototype | 44ca66a266004124f39d7d3e3dd75e9076012ff0 | [
"MIT"
] | 1 | 2020-03-20T17:06:54.000Z | 2020-03-20T17:06:54.000Z | from tests.unit.backend.corpora.common.entities.datasets import TestDataset
class TestDatasetRevision(TestDataset):
def test__create_dataset_revision(self):
dataset = self.generate_dataset_with_s3_resources(self.session, published=True)
rev_dataset = dataset.create_revision("test_collection_id_rev... | 52.23913 | 117 | 0.665418 | 272 | 2,403 | 5.621324 | 0.290441 | 0.052322 | 0.049052 | 0.068018 | 0.137345 | 0.115108 | 0.092871 | 0 | 0 | 0 | 0 | 0.003284 | 0.2397 | 2,403 | 45 | 118 | 53.4 | 0.833607 | 0 | 0 | 0.052632 | 1 | 0 | 0.186017 | 0.011236 | 0 | 0 | 0 | 0 | 0.131579 | 1 | 0.052632 | false | 0 | 0.026316 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
584b5746e6a8959beb85942376ecc9e56d8276af | 707 | py | Python | events/kawacon2016/migrations/0003_auto_20160127_1924.py | jlaunonen/turska | fc6ec4e0ae50a823e931152ce8835098b96f5966 | [
"CC-BY-3.0"
] | null | null | null | events/kawacon2016/migrations/0003_auto_20160127_1924.py | jlaunonen/turska | fc6ec4e0ae50a823e931152ce8835098b96f5966 | [
"CC-BY-3.0"
] | null | null | null | events/kawacon2016/migrations/0003_auto_20160127_1924.py | jlaunonen/turska | fc6ec4e0ae50a823e931152ce8835098b96f5966 | [
"CC-BY-3.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-27 17:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('kawacon2016', '0002_auto_20160127_1922'),
]
operations = [
migrations.AlterF... | 33.666667 | 291 | 0.700141 | 78 | 707 | 6.192308 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083916 | 0.190948 | 707 | 20 | 292 | 35.35 | 0.76049 | 0.094767 | 0 | 0 | 1 | 0.076923 | 0.405024 | 0.036107 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
584c241bf384f1ee86da8eb49a7b42c532f3a92a | 8,007 | py | Python | botasky/utils/MyMAIL.py | 5atouristspot/sql_audit | 54c6d5ac9f8178ab1a17b7ff2d04ff738f14e0b7 | [
"MIT"
] | null | null | null | botasky/utils/MyMAIL.py | 5atouristspot/sql_audit | 54c6d5ac9f8178ab1a17b7ff2d04ff738f14e0b7 | [
"MIT"
] | null | null | null | botasky/utils/MyMAIL.py | 5atouristspot/sql_audit | 54c6d5ac9f8178ab1a17b7ff2d04ff738f14e0b7 | [
"MIT"
] | null | null | null | #! /usr/bin/python2.7
# -*- coding: utf-8 -*-
"""
Created on 2017-4-06
@module: MyMAIL
@used: send mail
"""
import smtplib
import mimetypes
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.mime.image import MIMEImage
from MyLOG import MyLog
from bot... | 36.729358 | 114 | 0.429374 | 711 | 8,007 | 4.682138 | 0.202532 | 0.059477 | 0.032442 | 0.059477 | 0.400421 | 0.381796 | 0.360769 | 0.360769 | 0.360769 | 0.264644 | 0 | 0.0223 | 0.42875 | 8,007 | 217 | 115 | 36.898618 | 0.705509 | 0.010616 | 0 | 0.507576 | 0 | 0 | 0.193184 | 0.01116 | 0.007576 | 0 | 0 | 0 | 0 | 0 | null | null | 0.030303 | 0.060606 | null | null | 0.037879 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58560f5398484c07794db5199083195112cafef3 | 10,955 | py | Python | databricks/koalas/strings.py | mercileesb/koalas | 685176c512f31166f0e472aa0f461d0f1449fb0c | [
"Apache-2.0"
] | 1 | 2021-01-17T18:26:33.000Z | 2021-01-17T18:26:33.000Z | databricks/koalas/strings.py | mercileesb/koalas | 685176c512f31166f0e472aa0f461d0f1449fb0c | [
"Apache-2.0"
] | null | null | null | databricks/koalas/strings.py | mercileesb/koalas | 685176c512f31166f0e472aa0f461d0f1449fb0c | [
"Apache-2.0"
] | null | null | null | #
# Copyright (C) 2019 Databricks, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 31.033994 | 76 | 0.583204 | 1,281 | 10,955 | 4.925839 | 0.157689 | 0.038035 | 0.057052 | 0.072266 | 0.752139 | 0.690016 | 0.68748 | 0.65103 | 0.633756 | 0.602853 | 0 | 0.001091 | 0.330717 | 10,955 | 352 | 77 | 31.122159 | 0.85952 | 0.48188 | 0 | 0.59375 | 0 | 0 | 0.048528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.039063 | 0 | 0.351563 | 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 |
585693264a6958d193fa10022658456c7350638b | 807 | py | Python | python/turbodbc_test/test_cursor_async_io.py | fjetter/turbodbc | b11f0a1bc7d67bc3cbc60f564594f0e735f524f4 | [
"MIT"
] | null | null | null | python/turbodbc_test/test_cursor_async_io.py | fjetter/turbodbc | b11f0a1bc7d67bc3cbc60f564594f0e735f524f4 | [
"MIT"
] | null | null | null | python/turbodbc_test/test_cursor_async_io.py | fjetter/turbodbc | b11f0a1bc7d67bc3cbc60f564594f0e735f524f4 | [
"MIT"
] | null | null | null | import pytest
import six
from turbodbc import connect
from query_fixture import query_fixture
from helpers import for_one_database, open_cursor
@for_one_database
def test_many_batches_with_async_io(dsn, configuration):
with open_cursor(configuration, use_async_io=True) as cursor:
with query_fixture(curs... | 36.681818 | 84 | 0.629492 | 99 | 807 | 4.89899 | 0.444444 | 0.092784 | 0.092784 | 0.094845 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017361 | 0.286245 | 807 | 21 | 85 | 38.428571 | 0.824653 | 0.019827 | 0 | 0 | 0 | 0 | 0.108999 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.333333 | 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 |
58593da1cc559e0383548c77af9516f78e6dbe07 | 8,223 | py | Python | VIP_modules/widgets/ResultCanvas_QTAgg.py | Nikolaj-K/lab-control-GUI | 3c7811de57f110870cf4740743fd84b76d918ad3 | [
"MIT"
] | 17 | 2017-05-24T13:31:31.000Z | 2021-12-04T22:47:33.000Z | VIP_modules/widgets/ResultCanvas_QTAgg.py | Nikolaj-K/lab-control-GUI | 3c7811de57f110870cf4740743fd84b76d918ad3 | [
"MIT"
] | null | null | null | VIP_modules/widgets/ResultCanvas_QTAgg.py | Nikolaj-K/lab-control-GUI | 3c7811de57f110870cf4740743fd84b76d918ad3 | [
"MIT"
] | 6 | 2017-11-21T01:32:33.000Z | 2020-12-15T05:28:17.000Z | import random
import numpy as np
import operator
from scipy import optimize
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg
from matplotlib.figure import Figure as MatplotlibFigure
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm as color_map
from matplotlib.ticker import Lin... | 46.721591 | 147 | 0.531558 | 944 | 8,223 | 4.353814 | 0.223517 | 0.042822 | 0.032117 | 0.023358 | 0.342092 | 0.281995 | 0.26764 | 0.193187 | 0.114842 | 0.096837 | 0 | 0.015876 | 0.333577 | 8,223 | 175 | 148 | 46.988571 | 0.734124 | 0.078074 | 0 | 0.272727 | 0 | 0.008264 | 0.114241 | 0.006687 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008264 | 0.090909 | 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 |
585a68e41b2ee9276af7dd0a8f001bc6f258c0ac | 4,538 | py | Python | data/external/repositories_2to3/42139/KDDCup13Track2-master/cluster_kruskal.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories_2to3/42139/KDDCup13Track2-master/cluster_kruskal.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories_2to3/42139/KDDCup13Track2-master/cluster_kruskal.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z | #!/usr/bin/env python
# Given weighted graph, perform kruskal-based clustering
from common import *
from cluster_common import *
import argparse
import csv
import pickle as pickle
from collections import defaultdict
class unionfind:
mp = {}
blacklisted_edges = set()
# blacklisted_e_nodes = set()
# bla... | 29.855263 | 133 | 0.642794 | 689 | 4,538 | 4.117562 | 0.223512 | 0.022912 | 0.034896 | 0.014804 | 0.24533 | 0.169898 | 0.126895 | 0.126895 | 0.100811 | 0.100811 | 0 | 0.029396 | 0.197885 | 4,538 | 151 | 134 | 30.05298 | 0.75 | 0.062583 | 0 | 0.208333 | 0 | 0 | 0.109158 | 0.025641 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058333 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5861aaa87e16980cf7f95fd4b748950ec3d44176 | 5,055 | py | Python | tests/test_error.py | iotanbo/iotanbo_py_utils | 96a2728e051b5e5ee601459b4c449b5495768ba8 | [
"MIT"
] | null | null | null | tests/test_error.py | iotanbo/iotanbo_py_utils | 96a2728e051b5e5ee601459b4c449b5495768ba8 | [
"MIT"
] | 14 | 2021-06-07T17:36:02.000Z | 2021-06-07T18:02:37.000Z | tests/test_error.py | iotanbo/iotanbo_py_utils | 96a2728e051b5e5ee601459b4c449b5495768ba8 | [
"MIT"
] | null | null | null | """Test `iotanbo_py_utils.error.py`."""
from iotanbo_py_utils.error import Error
from iotanbo_py_utils.error import ErrorKind
def test_error_one_of_arithmetic_errors() -> None:
errs = (
Error(ErrorKind.ArithmeticError),
Error(ErrorKind.FloatingPointError),
Error(ErrorKind.OverflowError),
... | 28.240223 | 76 | 0.669041 | 544 | 5,055 | 6.009191 | 0.174632 | 0.248394 | 0.04405 | 0.041297 | 0.467727 | 0.344142 | 0.259407 | 0.221474 | 0.149893 | 0.149893 | 0 | 0 | 0.231454 | 5,055 | 178 | 77 | 28.398876 | 0.841441 | 0.064886 | 0 | 0.227273 | 0 | 0 | 0.006794 | 0 | 0 | 0 | 0 | 0 | 0.204545 | 1 | 0.075758 | false | 0 | 0.05303 | 0 | 0.136364 | 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 |
5865c20624359a297b3a450c2e37573f88fc2710 | 245 | py | Python | amazon/model/admin.py | Lakshmivijaykrishnan/mini-amazon | 89ce7c5e2af127a2e8e027c87cb245fa82d184d6 | [
"Unlicense"
] | null | null | null | amazon/model/admin.py | Lakshmivijaykrishnan/mini-amazon | 89ce7c5e2af127a2e8e027c87cb245fa82d184d6 | [
"Unlicense"
] | null | null | null | amazon/model/admin.py | Lakshmivijaykrishnan/mini-amazon | 89ce7c5e2af127a2e8e027c87cb245fa82d184d6 | [
"Unlicense"
] | null | null | null | from amazon.model import db
def __search_by_admin_name(username):
query={'username': username}
matching_user = db['users'].find(query)
if matching_user.count() > 0:
return matching_user.next()
else:
return None
| 22.272727 | 43 | 0.669388 | 32 | 245 | 4.875 | 0.71875 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005236 | 0.220408 | 245 | 10 | 44 | 24.5 | 0.811518 | 0 | 0 | 0 | 0 | 0 | 0.053061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.5 | 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 |
586904d063488a1bde40ac6c380144e572f09389 | 789 | py | Python | src/openbiolink/graph_creation/metadata_db_file/edge/dbMetaEdgeSiderInd.py | cthoyt/OpenBioLink | c5f85b99f9104f70493136c343e4554261e990a5 | [
"MIT"
] | null | null | null | src/openbiolink/graph_creation/metadata_db_file/edge/dbMetaEdgeSiderInd.py | cthoyt/OpenBioLink | c5f85b99f9104f70493136c343e4554261e990a5 | [
"MIT"
] | null | null | null | src/openbiolink/graph_creation/metadata_db_file/edge/dbMetaEdgeSiderInd.py | cthoyt/OpenBioLink | c5f85b99f9104f70493136c343e4554261e990a5 | [
"MIT"
] | null | null | null | from openbiolink.graph_creation.metadata_db_file.edge.dbMetadataEdge import DbMetadataEdge
from openbiolink.graph_creation.types.dbType import DbType
class DbMetaEdgeSiderInd(DbMetadataEdge):
NAME = 'Edge - Sider - Indications'
URL = "http://sideeffects.embl.de/media/download/meddra_all_indications.tsv.gz"
... | 43.833333 | 90 | 0.69455 | 84 | 789 | 6.22619 | 0.571429 | 0.051625 | 0.076482 | 0.107075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001577 | 0.196451 | 789 | 18 | 91 | 43.833333 | 0.823344 | 0 | 0 | 0 | 0 | 0 | 0.258228 | 0.026582 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.733333 | 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 |
586d9bd962737e276a73a87798d6fdc63e31cd16 | 503 | py | Python | algos/lcs.py | asaini/algo-py | e9d18ef82d14e6304430bbd8b065430e76aa7eb8 | [
"MIT"
] | 1 | 2015-10-01T21:17:10.000Z | 2015-10-01T21:17:10.000Z | algos/lcs.py | asaini/algo-py | e9d18ef82d14e6304430bbd8b065430e76aa7eb8 | [
"MIT"
] | null | null | null | algos/lcs.py | asaini/algo-py | e9d18ef82d14e6304430bbd8b065430e76aa7eb8 | [
"MIT"
] | null | null | null | def lcs(x, y):
"""
Longest Common Subsequence
"""
n = len(x) + 1
m = len(y) + 1
table = [ [0]*m for i in range(n) ]
for i in range(n):
for j in range(m):
# If either string is empty, then lcs = 0
if i == 0 or j == 0:
table[i][j] = 0
elif x[i - 1] == y[j - 1]:
table[i][j] = 1 + table[i-1]... | 16.225806 | 51 | 0.499006 | 97 | 503 | 2.505155 | 0.350515 | 0.148148 | 0.115226 | 0.090535 | 0.111111 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0.039106 | 0.28827 | 503 | 30 | 52 | 16.766667 | 0.639665 | 0.077535 | 0 | 0 | 0 | 0 | 0.049412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58708500568a55067da2b5aa34b23852b3efa570 | 1,576 | py | Python | hardware/testbenches/common/drivers/state/driver.py | Intuity/nexus | 0d1414fa2ea518dae9f031930c40692ebac5d154 | [
"Apache-2.0"
] | 6 | 2021-06-28T05:52:15.000Z | 2022-03-27T20:45:28.000Z | hardware/testbenches/common/drivers/state/driver.py | Intuity/nexus | 0d1414fa2ea518dae9f031930c40692ebac5d154 | [
"Apache-2.0"
] | null | null | null | hardware/testbenches/common/drivers/state/driver.py | Intuity/nexus | 0d1414fa2ea518dae9f031930c40692ebac5d154 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021, Peter Birch, mailto:peter@lightlogic.co.uk
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 37.52381 | 74 | 0.692259 | 209 | 1,576 | 5.196172 | 0.574163 | 0.055249 | 0.052486 | 0.066298 | 0.046041 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009098 | 0.232868 | 1,576 | 41 | 75 | 38.439024 | 0.889165 | 0.441624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.230769 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
587a892ea698fcb43f251688aa0bd017aec53e6b | 1,621 | py | Python | badboids/test/test_simulation_parameters.py | RiannaK/Coursework2 | 471589593fd09c61fae39cb5975cc88fee36971c | [
"MIT"
] | null | null | null | badboids/test/test_simulation_parameters.py | RiannaK/Coursework2 | 471589593fd09c61fae39cb5975cc88fee36971c | [
"MIT"
] | 2 | 2017-01-02T11:11:31.000Z | 2017-01-02T22:09:15.000Z | badboids/test/test_simulation_parameters.py | RiannaK/Coursework2 | 471589593fd09c61fae39cb5975cc88fee36971c | [
"MIT"
] | null | null | null | from numpy.testing import assert_array_almost_equal as array_assert
from badboids.boids import SimulationParameters
def test_simulation_parameters_init():
"""Tests Simulation Parameters constructor"""
# Arrange
formation_flying_distance = 800
formation_flying_strength = 0.10
alert_distance = 8
... | 33.770833 | 100 | 0.779766 | 196 | 1,621 | 6 | 0.239796 | 0.178571 | 0.136905 | 0.119048 | 0.167517 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02071 | 0.165947 | 1,621 | 47 | 101 | 34.489362 | 0.849112 | 0.07773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.407407 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.148148 | 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 |
587e704ad57d09ab05a6f91557e90faddd8fb439 | 3,247 | py | Python | django_town/oauth2/models.py | uptown/django-town | 4c3b078a8ce5dcc275d65faa4a1cdfb7ebc74a50 | [
"MIT"
] | null | null | null | django_town/oauth2/models.py | uptown/django-town | 4c3b078a8ce5dcc275d65faa4a1cdfb7ebc74a50 | [
"MIT"
] | null | null | null | django_town/oauth2/models.py | uptown/django-town | 4c3b078a8ce5dcc275d65faa4a1cdfb7ebc74a50 | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
from django_town.core.settings import OAUTH2_SETTINGS
try:
if not OAUTH2_SETTINGS.ACCESS_TOKEN_SECRET_KEY:
raise ImportError
except KeyError:
# import traceback
# traceback.print_exc()
raise ImportError
from django.db import models
from django.conf import settings
from ... | 33.132653 | 92 | 0.73206 | 405 | 3,247 | 5.45679 | 0.244444 | 0.069683 | 0.089593 | 0.119457 | 0.511765 | 0.456109 | 0.38371 | 0.288688 | 0.093213 | 0.055204 | 0 | 0.012397 | 0.180166 | 3,247 | 97 | 93 | 33.474227 | 0.817806 | 0.140129 | 0 | 0.169492 | 0 | 0 | 0.038102 | 0.01977 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0 | 0.152542 | 0.084746 | 0.779661 | 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 |
587e7271e86565dcf7c4f99ca8d0228de3d2839e | 265 | py | Python | util_list_files.py | jhu-alistair/image_utilities | 07fcf2fb78b57b3e8ac798daffa9f4d7b05d9063 | [
"Apache-2.0"
] | null | null | null | util_list_files.py | jhu-alistair/image_utilities | 07fcf2fb78b57b3e8ac798daffa9f4d7b05d9063 | [
"Apache-2.0"
] | null | null | null | util_list_files.py | jhu-alistair/image_utilities | 07fcf2fb78b57b3e8ac798daffa9f4d7b05d9063 | [
"Apache-2.0"
] | null | null | null | # List files in a directory. Useful for testing the path
from local_tools import *
from image_renamer import ImageRenamer
if confirm_config('path'):
img_path = get_config('path')
fl = ImageRenamer(img_path)
for ff in fl.image_files():
print(ff)
| 29.444444 | 56 | 0.720755 | 40 | 265 | 4.6 | 0.625 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196226 | 265 | 8 | 57 | 33.125 | 0.86385 | 0.203774 | 0 | 0 | 0 | 0 | 0.038278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5882bcb6d8e741c3012ffb7ce72cd027f9aee6d9 | 727 | py | Python | Scripts/autotest/bug/migrations/0003_auto_20180128_2144.py | ludechu/DJevn | ee97447da3f6f55c92bfa1b6a20436a4f3098150 | [
"bzip2-1.0.6"
] | null | null | null | Scripts/autotest/bug/migrations/0003_auto_20180128_2144.py | ludechu/DJevn | ee97447da3f6f55c92bfa1b6a20436a4f3098150 | [
"bzip2-1.0.6"
] | null | null | null | Scripts/autotest/bug/migrations/0003_auto_20180128_2144.py | ludechu/DJevn | ee97447da3f6f55c92bfa1b6a20436a4f3098150 | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 2.0 on 2018-01-28 21:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bug', '0002_auto_20180110_1107'),
]
operations = [
migrations.AlterField(
model_name='bug',
name='buglevel',
... | 30.291667 | 153 | 0.558459 | 82 | 727 | 4.841463 | 0.573171 | 0.100756 | 0.125945 | 0.146096 | 0.337531 | 0.337531 | 0.156171 | 0 | 0 | 0 | 0 | 0.079482 | 0.255846 | 727 | 23 | 154 | 31.608696 | 0.654344 | 0.059147 | 0 | 0.352941 | 1 | 0 | 0.120235 | 0.033724 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
588fc576880c0f000634f775d5b9b45b44869222 | 7,957 | py | Python | tools/merge_messages.py | cclauss/personfinder | 62417192e79c9711d0c6c7cfc042f6d6b0dc2dc2 | [
"Apache-2.0"
] | 1 | 2021-11-18T20:09:09.000Z | 2021-11-18T20:09:09.000Z | tools/merge_messages.py | ZhengC1/personfinder | 7e40f2783ac89b91efd1d8497f1acc5b006361fa | [
"Apache-2.0"
] | null | null | null | tools/merge_messages.py | ZhengC1/personfinder | 7e40f2783ac89b91efd1d8497f1acc5b006361fa | [
"Apache-2.0"
] | 1 | 2022-01-05T07:06:43.000Z | 2022-01-05T07:06:43.000Z | #!/usr/bin/env python
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 39.004902 | 80 | 0.662184 | 1,104 | 7,957 | 4.669384 | 0.257246 | 0.023278 | 0.012609 | 0.013967 | 0.070611 | 0.050049 | 0.032978 | 0.017847 | 0.017847 | 0.017847 | 0 | 0.003432 | 0.231117 | 7,957 | 203 | 81 | 39.197044 | 0.839163 | 0.118763 | 0 | 0.141509 | 0 | 0 | 0.048071 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0 | null | null | 0 | 0.056604 | null | null | 0.056604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5890360ab5457f3e208d3176b19465a1fa0b29ad | 621 | py | Python | misc/derwin.py | ssebs/nccsv | f5e94dab833a5f0822308299e154f13fd68d88f6 | [
"MIT"
] | null | null | null | misc/derwin.py | ssebs/nccsv | f5e94dab833a5f0822308299e154f13fd68d88f6 | [
"MIT"
] | null | null | null | misc/derwin.py | ssebs/nccsv | f5e94dab833a5f0822308299e154f13fd68d88f6 | [
"MIT"
] | null | null | null | # derwin.py - testing a window within a window
import curses
def main(stdscr):
# Create container window from stdscr
sh, sw = stdscr.getmaxyx()
container_win = curses.newwin(sh-1, sw-1, 1, 1)
# Create inner window from container win
bh, bw = container_win.getmaxyx()
box_win = container_win.de... | 20.7 | 52 | 0.653784 | 94 | 621 | 4.138298 | 0.457447 | 0.215938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020964 | 0.231884 | 621 | 29 | 53 | 21.413793 | 0.794549 | 0.296296 | 0 | 0 | 0 | 0 | 0.039627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.153846 | 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 |
589e413db07bdd7cf6dcd6e3ab66ffc0b716eb5c | 1,001 | py | Python | portrait/webapp/migrations/0001_initial.py | andela-sjames/Portrait | 83074e3d16d8009a71b674b6859f7c276b8d6537 | [
"MIT"
] | null | null | null | portrait/webapp/migrations/0001_initial.py | andela-sjames/Portrait | 83074e3d16d8009a71b674b6859f7c276b8d6537 | [
"MIT"
] | null | null | null | portrait/webapp/migrations/0001_initial.py | andela-sjames/Portrait | 83074e3d16d8009a71b674b6859f7c276b8d6537 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-05-16 23:28
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 34.517241 | 152 | 0.631369 | 107 | 1,001 | 5.775701 | 0.598131 | 0.038835 | 0.045307 | 0.071197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024934 | 0.238761 | 1,001 | 28 | 153 | 35.75 | 0.786089 | 0.044955 | 0 | 0 | 1 | 0 | 0.079665 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
58a3ad8eacd907942afee36829131b2e139101c4 | 894 | py | Python | conu/backend/nspawn/constants.py | lslebodn/conu | dee6fd958471f77d1c0511b031ea136dfaf8a77a | [
"MIT"
] | 95 | 2018-05-19T14:35:08.000Z | 2022-01-08T23:31:40.000Z | conu/backend/nspawn/constants.py | lslebodn/conu | dee6fd958471f77d1c0511b031ea136dfaf8a77a | [
"MIT"
] | 179 | 2017-09-12T11:14:30.000Z | 2018-04-26T05:36:13.000Z | conu/backend/nspawn/constants.py | lslebodn/conu | dee6fd958471f77d1c0511b031ea136dfaf8a77a | [
"MIT"
] | 16 | 2018-05-09T14:15:32.000Z | 2021-08-02T21:11:33.000Z | # -*- coding: utf-8 -*-
#
# Copyright Contributors to the Conu project.
# SPDX-License-Identifier: MIT
#
# TODO: move this line to some generic constants, instead of same in
# docker and nspawn
CONU_ARTIFACT_TAG = 'CONU.'
CONU_IMAGES_STORE = "/opt/conu-nspawn-images/"
CONU_NSPAWN_BASEPACKAGES = [
"dnf",
"ipro... | 22.35 | 68 | 0.587248 | 95 | 894 | 5.347368 | 0.8 | 0.03937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013804 | 0.270694 | 894 | 39 | 69 | 22.923077 | 0.765337 | 0.200224 | 0 | 0.133333 | 0 | 0 | 0.355021 | 0.079208 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0 | false | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
542d0bbb398d02e9717cfe574c3d52048a5a205b | 836 | py | Python | Exercicios Colecoes Python/exercicio 33 - secao 7 - p1.py | cristinamais/exercicios_python | 8a09b0b68ffaa62d13afb952998e890a79667c7e | [
"MIT"
] | null | null | null | Exercicios Colecoes Python/exercicio 33 - secao 7 - p1.py | cristinamais/exercicios_python | 8a09b0b68ffaa62d13afb952998e890a79667c7e | [
"MIT"
] | null | null | null | Exercicios Colecoes Python/exercicio 33 - secao 7 - p1.py | cristinamais/exercicios_python | 8a09b0b68ffaa62d13afb952998e890a79667c7e | [
"MIT"
] | null | null | null | """
33 - Faca um programa que leia um vetor de 15 posicoes e o compacte, ou seja, elimine as posicoes com valor zero.
Para isso, todos os elementos a frente do valor zero, devem ser movidos uma posicao para tras no vetor.
"""
"""
vetor = []
count = 0
for x in range(1, 16):
vetor.append(int(input(f'Digite o {x}/15... | 22 | 113 | 0.626794 | 148 | 836 | 3.540541 | 0.513514 | 0.076336 | 0.062977 | 0.041985 | 0.167939 | 0.167939 | 0.167939 | 0.167939 | 0.167939 | 0.167939 | 0 | 0.069444 | 0.22488 | 836 | 37 | 114 | 22.594595 | 0.739198 | 0.307416 | 0 | 0 | 0 | 0 | 0.082524 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5431f5aaf571f8d48be62c018da65e8a8b984c28 | 5,140 | py | Python | python/venv/lib/python2.7/site-packages/openstack/tests/unit/telemetry/v2/test_sample.py | sjsucohort6/openstack | 8471e6e599c3f52319926a582358358ef84cbadb | [
"MIT"
] | null | null | null | python/venv/lib/python2.7/site-packages/openstack/tests/unit/telemetry/v2/test_sample.py | sjsucohort6/openstack | 8471e6e599c3f52319926a582358358ef84cbadb | [
"MIT"
] | null | null | null | python/venv/lib/python2.7/site-packages/openstack/tests/unit/telemetry/v2/test_sample.py | sjsucohort6/openstack | 8471e6e599c3f52319926a582358358ef84cbadb | [
"MIT"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Li... | 36.978417 | 75 | 0.637743 | 625 | 5,140 | 5.0944 | 0.2304 | 0.169598 | 0.145101 | 0.082915 | 0.479585 | 0.31941 | 0.207601 | 0.135678 | 0.026382 | 0.026382 | 0 | 0.009245 | 0.221401 | 5,140 | 138 | 76 | 37.246377 | 0.786357 | 0.100584 | 0 | 0.070796 | 0 | 0 | 0.146389 | 0 | 0 | 0 | 0 | 0 | 0.451327 | 1 | 0.044248 | false | 0 | 0.026549 | 0 | 0.079646 | 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 |
5432a871244c2f1064853af01dd1344e9304f2e3 | 1,246 | py | Python | arachnado/utils/spiders.py | wigginzz/arachnado | 8de92625262958e886263b4ccb189f4fc62d7400 | [
"MIT"
] | 2 | 2017-12-26T14:50:14.000Z | 2018-06-12T07:04:08.000Z | arachnado/utils/spiders.py | wigginzz/arachnado | 8de92625262958e886263b4ccb189f4fc62d7400 | [
"MIT"
] | null | null | null | arachnado/utils/spiders.py | wigginzz/arachnado | 8de92625262958e886263b4ccb189f4fc62d7400 | [
"MIT"
] | null | null | null | from scrapy.utils.misc import walk_modules
from scrapy.utils.spider import iter_spider_classes
def get_spider_cls(url, spider_packages, default):
"""
Return spider class based on provided url.
:param url: if it looks like `spider://spidername` it tries to load spider
named `spidername`, otherwise... | 35.6 | 78 | 0.690209 | 171 | 1,246 | 4.859649 | 0.356725 | 0.084236 | 0.057762 | 0.048135 | 0.262335 | 0.262335 | 0.262335 | 0.173285 | 0.173285 | 0.173285 | 0 | 0 | 0.239165 | 1,246 | 34 | 79 | 36.647059 | 0.876582 | 0.455859 | 0 | 0 | 0 | 0 | 0.02946 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5433996009680b5160e896f44a3bff1c9d65a2bb | 3,280 | py | Python | deephub/utils/__main__.py | deeplab-ai/deephub | b1d271436fab69cdfad14f19fa2e29c5338f18d6 | [
"Apache-2.0"
] | 8 | 2019-10-17T12:46:13.000Z | 2020-03-12T08:09:40.000Z | deephub/utils/__main__.py | deeplab-ai/deephub | b1d271436fab69cdfad14f19fa2e29c5338f18d6 | [
"Apache-2.0"
] | 12 | 2019-10-22T13:11:56.000Z | 2022-02-10T00:23:30.000Z | deephub/utils/__main__.py | deeplab-ai/deephub | b1d271436fab69cdfad14f19fa2e29c5338f18d6 | [
"Apache-2.0"
] | 1 | 2019-10-17T13:21:27.000Z | 2019-10-17T13:21:27.000Z | import click
import time
from deephub.common.io import resolve_glob_pattern
from deephub.models.feeders.tfrecords.meta import generate_fileinfo, get_fileinfo, TFRecordValidationError, \
TFRecordInfoMissingError
@click.group()
def cli():
"""
General purpose CLI utils.
"""
pass
@cli.command()
@cl... | 33.814433 | 115 | 0.633232 | 396 | 3,280 | 5.176768 | 0.338384 | 0.035122 | 0.034146 | 0.037073 | 0.246829 | 0.231707 | 0.207317 | 0.189268 | 0.189268 | 0.142439 | 0 | 0.001262 | 0.275 | 3,280 | 96 | 116 | 34.166667 | 0.860807 | 0.147256 | 0 | 0.416667 | 1 | 0.016667 | 0.326591 | 0.010298 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.033333 | 0.066667 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
543471083e8ed6e6fd0d08082e7de83061292ab1 | 10,072 | py | Python | utils_mit_im.py | putama/visualcomposition | ada3d8e71b79a5f3e239718f3cdac58eca5e1327 | [
"MIT"
] | null | null | null | utils_mit_im.py | putama/visualcomposition | ada3d8e71b79a5f3e239718f3cdac58eca5e1327 | [
"MIT"
] | null | null | null | utils_mit_im.py | putama/visualcomposition | ada3d8e71b79a5f3e239718f3cdac58eca5e1327 | [
"MIT"
] | null | null | null | import numpy as np
import cPickle
import os
from scipy.io import loadmat
import time
import h5py
import json
import copy
import bz2
def unique_rows(a):
b = np.ascontiguousarray(a).view(np.dtype((np.void, a.dtype.itemsize * a.shape[1])))
_, idx = np.unique(b, return_index=True)
return a[idx], idx;
def setdiff2d(... | 32.807818 | 141 | 0.652502 | 1,528 | 10,072 | 4.130236 | 0.176047 | 0.049437 | 0.046585 | 0.016162 | 0.477737 | 0.389796 | 0.366186 | 0.321344 | 0.271906 | 0.258279 | 0 | 0.013795 | 0.2083 | 10,072 | 307 | 142 | 32.807818 | 0.777652 | 0.057685 | 0 | 0.266949 | 0 | 0 | 0.037407 | 0.002471 | 0 | 0 | 0 | 0 | 0.021186 | 0 | null | null | 0 | 0.038136 | null | null | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
543ac48e108696b4125575c0e8b5fa9098b4ddb3 | 830 | py | Python | votes/migrations/0004_team.py | aiventimptner/horizon | 6e2436bfa81cad55fefd4c0bb67df3c36a9b6deb | [
"MIT"
] | null | null | null | votes/migrations/0004_team.py | aiventimptner/horizon | 6e2436bfa81cad55fefd4c0bb67df3c36a9b6deb | [
"MIT"
] | 1 | 2021-06-10T19:59:07.000Z | 2021-06-10T19:59:07.000Z | votes/migrations/0004_team.py | aiventimptner/horizon | 6e2436bfa81cad55fefd4c0bb67df3c36a9b6deb | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-30 00:27
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('votes', '0003_auto_20201229_1301'),
]
operations... | 31.923077 | 114 | 0.609639 | 87 | 830 | 5.643678 | 0.689655 | 0.040733 | 0.065173 | 0.08554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.262651 | 830 | 25 | 115 | 33.2 | 0.746732 | 0.054217 | 0 | 0 | 1 | 0 | 0.08046 | 0.029374 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 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 |
543cef330851534694d86f1be5bca5d7e8614e34 | 1,210 | py | Python | shrike-examples/contoso/utils/arg_utils.py | lynochka/azure-ml-problem-sets | e7e69de763444c5603e4455e35e69e917081a4cc | [
"MIT"
] | 3 | 2021-07-27T16:28:51.000Z | 2021-11-15T18:29:02.000Z | shrike-examples/contoso/utils/arg_utils.py | lynochka/azure-ml-problem-sets | e7e69de763444c5603e4455e35e69e917081a4cc | [
"MIT"
] | null | null | null | shrike-examples/contoso/utils/arg_utils.py | lynochka/azure-ml-problem-sets | e7e69de763444c5603e4455e35e69e917081a4cc | [
"MIT"
] | 7 | 2021-08-09T15:04:03.000Z | 2022-03-09T05:48:56.000Z | """
Utility functions for argument parsing
"""
import argparse
def str2bool(val):
"""
Resolving boolean arguments if they are not given in the standard format
Arguments:
val (bool or string): boolean argument type
Returns:
bool: the desired value {True, False}
"""
if isinstan... | 25.744681 | 100 | 0.638017 | 150 | 1,210 | 5.113333 | 0.48 | 0.039113 | 0.039113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006674 | 0.257025 | 1,210 | 46 | 101 | 26.304348 | 0.846496 | 0.47438 | 0 | 0 | 0 | 0 | 0.079566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.066667 | 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 |
544c328461515102957fb6ba2f7ecaadd80e93ff | 1,356 | py | Python | A.py | JK-Incorporated/EYN-DOS | 6dc331655b5fd04e6d37651ea79ac4e204bfd52e | [
"BSD-3-Clause"
] | null | null | null | A.py | JK-Incorporated/EYN-DOS | 6dc331655b5fd04e6d37651ea79ac4e204bfd52e | [
"BSD-3-Clause"
] | null | null | null | A.py | JK-Incorporated/EYN-DOS | 6dc331655b5fd04e6d37651ea79ac4e204bfd52e | [
"BSD-3-Clause"
] | null | null | null | import os
from os import listdir
from os.path import isfile, join
dir_path = os.path.dirname(os.path.realpath(__file__))
filesys = [f for f in listdir(dir_path) if isfile(join(dir_path, f))]
def get_dir_size(path=dir_path):
total = 0
with os.scandir(dir_path) as it:
for entry in it:
if en... | 22.229508 | 69 | 0.526549 | 179 | 1,356 | 3.837989 | 0.312849 | 0.139738 | 0.142649 | 0.165939 | 0.235808 | 0.113537 | 0.113537 | 0.113537 | 0.113537 | 0 | 0 | 0.012862 | 0.311947 | 1,356 | 60 | 70 | 22.6 | 0.723473 | 0 | 0 | 0.3125 | 0 | 0 | 0.072271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.0625 | 0 | 0.104167 | 0.3125 | 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 |
544eed2f5a6fd341973e64324b8db14d8a1824d5 | 2,928 | py | Python | httpd/httpd.py | protocollabs/dmprd | c39e75532ae73458b8239b2d21ca69e42b68929f | [
"MIT"
] | 1 | 2018-09-05T08:16:00.000Z | 2018-09-05T08:16:00.000Z | httpd/httpd.py | protocollabs/dmprd | c39e75532ae73458b8239b2d21ca69e42b68929f | [
"MIT"
] | 8 | 2017-01-08T19:11:16.000Z | 2018-09-24T12:20:40.000Z | httpd/httpd.py | protocollabs/dmprd | c39e75532ae73458b8239b2d21ca69e42b68929f | [
"MIT"
] | 2 | 2017-08-23T12:41:02.000Z | 2018-08-17T08:11:35.000Z | import asyncio
import os
try:
from aiohttp import web
except ImportError:
web = None
class Httpd(object):
def __init__(self):
if not web:
print('httpd is specified in conf but aiohttp not available')
return
self.app = web.Application()
self._setup_routes()... | 34.046512 | 100 | 0.565574 | 372 | 2,928 | 4.370968 | 0.395161 | 0.03444 | 0.03444 | 0.04182 | 0.172817 | 0.172817 | 0.149446 | 0.086101 | 0.03936 | 0.03936 | 0 | 0.010209 | 0.264003 | 2,928 | 85 | 101 | 34.447059 | 0.744316 | 0 | 0 | 0.12987 | 0 | 0.077922 | 0.673839 | 0.233607 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038961 | false | 0 | 0.051948 | 0 | 0.12987 | 0.025974 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
545376512fee3de8e6da4487e774ee09c7ad912d | 1,479 | py | Python | cnns/foolbox/foolbox_2_3_0/tests/test_model_zoo.py | anonymous-user-commits/perturb-net | 66fc7c4a1234fa34b92bcc85751f0a6e23d80a23 | [
"MIT"
] | 12 | 2021-07-27T07:18:24.000Z | 2022-03-09T13:52:20.000Z | cnns/foolbox/foolbox_2_3_0/tests/test_model_zoo.py | anonymous-user-commits/perturb-net | 66fc7c4a1234fa34b92bcc85751f0a6e23d80a23 | [
"MIT"
] | 2 | 2021-08-03T09:21:33.000Z | 2021-12-29T14:25:30.000Z | cnns/foolbox/foolbox_2_3_0/tests/test_model_zoo.py | anonymous-user-commits/perturb-net | 66fc7c4a1234fa34b92bcc85751f0a6e23d80a23 | [
"MIT"
] | 3 | 2021-11-18T14:46:40.000Z | 2022-01-03T15:47:23.000Z | from foolbox import zoo
import numpy as np
import foolbox
import sys
import pytest
from foolbox.zoo.model_loader import ModelLoader
from os.path import join, dirname
@pytest.fixture(autouse=True)
def unload_foolbox_model_module():
# reload foolbox_model from scratch for every run
# to ensure atomic tests with... | 27.90566 | 76 | 0.694388 | 204 | 1,479 | 4.882353 | 0.544118 | 0.036145 | 0.042169 | 0.069277 | 0.062249 | 0.062249 | 0.062249 | 0.062249 | 0 | 0 | 0 | 0.023256 | 0.185936 | 1,479 | 52 | 77 | 28.442308 | 0.803987 | 0.275186 | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0.019231 | 0.068966 | 1 | 0.103448 | false | 0 | 0.241379 | 0 | 0.344828 | 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 |
5454b8f602a3ea5235a7102af61b547b5c4c3b31 | 1,128 | py | Python | client/nodes/common/docker_subsriber.py | CanboYe/BusEdge | 2e53e1d1d82559fc3e9f0029b2f0faf4e356b210 | [
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 2 | 2021-08-17T14:14:28.000Z | 2022-02-02T02:09:33.000Z | client/nodes/common/docker_subsriber.py | cmusatyalab/gabriel-BusEdge | 528a6ee337882c6e709375ecd7ec7e201083c825 | [
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | client/nodes/common/docker_subsriber.py | cmusatyalab/gabriel-BusEdge | 528a6ee337882c6e709375ecd7ec7e201083c825 | [
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2021-09-01T16:18:29.000Z | 2021-09-01T16:18:29.000Z | # SPDX-FileCopyrightText: 2021 Carnegie Mellon University
#
# SPDX-License-Identifier: Apache-2.0
import cv2
import numpy as np
import rospy
from gabriel_protocol import gabriel_pb2
from std_msgs.msg import UInt8MultiArray
def run_node(client_filter, source_name):
rospy.init_node(source_name + "_subscriber_node"... | 29.684211 | 72 | 0.720745 | 144 | 1,128 | 5.458333 | 0.555556 | 0.076336 | 0.040712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017917 | 0.208333 | 1,128 | 37 | 73 | 30.486486 | 0.862262 | 0.329787 | 0 | 0 | 0 | 0 | 0.064257 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 1 | 0.086957 | false | 0 | 0.217391 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
545c6c254ab620127f5ce9a6e6a0f63adc08b458 | 1,281 | py | Python | tinylinks/admin.py | lavindiuss/django-shorter | 50bc018e762b396cd9bc71991f6ea1329aaceddd | [
"MIT"
] | null | null | null | tinylinks/admin.py | lavindiuss/django-shorter | 50bc018e762b396cd9bc71991f6ea1329aaceddd | [
"MIT"
] | null | null | null | tinylinks/admin.py | lavindiuss/django-shorter | 50bc018e762b396cd9bc71991f6ea1329aaceddd | [
"MIT"
] | null | null | null | """Admin sites for the ``django-tinylinks`` app."""
from django.contrib import admin
from django.template.defaultfilters import truncatechars
from django.utils.translation import ugettext_lazy as _
from django.template.loader import render_to_string
from tinylinks.forms import TinylinkAdminForm
from tinylinks.models ... | 28.466667 | 76 | 0.699454 | 142 | 1,281 | 6.098592 | 0.5 | 0.046189 | 0.04157 | 0.060046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001903 | 0.179547 | 1,281 | 44 | 77 | 29.113636 | 0.822074 | 0.035129 | 0 | 0 | 0 | 0 | 0.164228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0.035714 | 0.714286 | 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 |
546484ce8b5ed762d88a0033bf3308f52967f631 | 296 | py | Python | active-learning/seq_data.py | ansunsujoe/ml-research | 7ab529a5ec1d420385e64b9eebf87e0847b85afd | [
"MIT"
] | null | null | null | active-learning/seq_data.py | ansunsujoe/ml-research | 7ab529a5ec1d420385e64b9eebf87e0847b85afd | [
"MIT"
] | null | null | null | active-learning/seq_data.py | ansunsujoe/ml-research | 7ab529a5ec1d420385e64b9eebf87e0847b85afd | [
"MIT"
] | null | null | null | import random
from tqdm import tqdm
def random_seq():
return [str(random.randint(1, 9)) for x in range(random.randint(2, 15))]
if __name__ == "__main__":
with open("sequences-1-train.txt", "w") as f:
for i in tqdm(range(5000)):
f.write(",".join(random_seq()) + "\n") | 29.6 | 76 | 0.614865 | 47 | 296 | 3.659574 | 0.702128 | 0.104651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0.206081 | 296 | 10 | 77 | 29.6 | 0.689362 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.070707 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
546beba67c891d71b93c4df6d7f37c550d736d00 | 1,772 | py | Python | observations/r/chest_sizes.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | observations/r/chest_sizes.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | observations/r/chest_sizes.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def chest_sizes(path):
"""Chest measurements of 5738 Scottish Militiamen
... | 29.533333 | 71 | 0.705418 | 243 | 1,772 | 5.012346 | 0.576132 | 0.032841 | 0.039409 | 0.037767 | 0.116585 | 0.08046 | 0.08046 | 0 | 0 | 0 | 0 | 0.017241 | 0.214447 | 1,772 | 59 | 72 | 30.033898 | 0.857759 | 0.520316 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.409091 | 0 | 0.5 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5477f31f091eaba6d081dd15b6e4e452029c17e6 | 4,480 | py | Python | examples/parser_example.py | pibico/beacontools | 513e1c7ff2aaf74b6c7d7b10805c2f6ca4384e3d | [
"MIT"
] | 139 | 2017-06-09T17:15:23.000Z | 2022-03-15T03:02:17.000Z | examples/parser_example.py | pibico/beacontools | 513e1c7ff2aaf74b6c7d7b10805c2f6ca4384e3d | [
"MIT"
] | 71 | 2017-06-20T03:20:56.000Z | 2022-02-13T22:47:53.000Z | examples/parser_example.py | pibico/beacontools | 513e1c7ff2aaf74b6c7d7b10805c2f6ca4384e3d | [
"MIT"
] | 59 | 2017-06-20T03:10:00.000Z | 2022-03-15T23:54:44.000Z | # -*- coding: utf-8 -*-
from beacontools import parse_packet
# Eddystone UID packet
uid_packet = b"\x02\x01\x06\x03\x03\xaa\xfe\x17\x16\xaa\xfe\x00\xe3\x12\x34\x56\x78\x90\x12" \
b"\x34\x67\x89\x01\x00\x00\x00\x00\x00\x01\x00\x00"
uid_frame = parse_packet(uid_packet)
print("Namespace: %s" % uid_frame.nam... | 40 | 94 | 0.690625 | 725 | 4,480 | 4.14069 | 0.231724 | 0.047968 | 0.05996 | 0.063957 | 0.277482 | 0.197868 | 0.159227 | 0.151899 | 0.147901 | 0.138574 | 0 | 0.112078 | 0.127679 | 4,480 | 111 | 95 | 40.36036 | 0.655067 | 0.1 | 0 | 0.101266 | 0 | 0.177215 | 0.427825 | 0.280737 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012658 | 0 | 0.012658 | 0.582278 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
547cd68f734cef8dede708252277b864855b2580 | 2,542 | py | Python | backend/apps/cmdb/migrations/0001_initial.py | renmcc/SA2 | a524124c140ae0b291b10dafc11d38744dd93bd9 | [
"MIT"
] | 4 | 2020-06-25T05:57:39.000Z | 2021-06-26T04:58:16.000Z | backend/apps/cmdb/migrations/0001_initial.py | renmcc/SA2 | a524124c140ae0b291b10dafc11d38744dd93bd9 | [
"MIT"
] | null | null | null | backend/apps/cmdb/migrations/0001_initial.py | renmcc/SA2 | a524124c140ae0b291b10dafc11d38744dd93bd9 | [
"MIT"
] | 1 | 2020-12-10T15:12:11.000Z | 2020-12-10T15:12:11.000Z | # Generated by Django 2.2.12 on 2020-06-15 16:55
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('project', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | 59.116279 | 215 | 0.632179 | 298 | 2,542 | 5.208054 | 0.342282 | 0.12049 | 0.061856 | 0.065722 | 0.233892 | 0.204253 | 0.163015 | 0.163015 | 0.079897 | 0.079897 | 0 | 0.017866 | 0.207317 | 2,542 | 42 | 216 | 60.52381 | 0.752357 | 0.018096 | 0 | 0 | 1 | 0 | 0.14154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085714 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
547ee9e4da4b047390b557dc16580a853bcc3c8e | 281 | py | Python | setup.py | codewars/python-unittest | 5a6cc27a51a9d91ce997c953099515c701b76057 | [
"MIT"
] | 4 | 2020-06-20T12:36:09.000Z | 2021-10-31T22:04:48.000Z | setup.py | codewars/python-unittest | 5a6cc27a51a9d91ce997c953099515c701b76057 | [
"MIT"
] | null | null | null | setup.py | codewars/python-unittest | 5a6cc27a51a9d91ce997c953099515c701b76057 | [
"MIT"
] | 3 | 2020-07-11T13:46:24.000Z | 2022-02-23T20:55:19.000Z | from setuptools import setup
setup(
name="codewars_unittest",
version="0.1.0",
packages=["codewars_unittest"],
license="MIT",
description="unittest runner with Codewars output",
install_requires=[],
url="https://github.com/Codewars/python-unittest",
)
| 23.416667 | 55 | 0.690391 | 32 | 281 | 5.96875 | 0.75 | 0.167539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012766 | 0.163701 | 281 | 11 | 56 | 25.545455 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.430605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
548634bd7f60817d2246c17acdb44bb98affa644 | 1,189 | py | Python | demo/demo/models.py | dracarysX/django-rest-query | 62fe8ee8f72251a1a8982265fff57870f2d43ca9 | [
"MIT"
] | 2 | 2017-06-28T02:51:52.000Z | 2017-06-28T09:28:33.000Z | demo/demo/models.py | dracarysX/django-rest-query | 62fe8ee8f72251a1a8982265fff57870f2d43ca9 | [
"MIT"
] | null | null | null | demo/demo/models.py | dracarysX/django-rest-query | 62fe8ee8f72251a1a8982265fff57870f2d43ca9 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*-coding: utf-8 -*-
__author__ = 'dracarysX'
from django.db import models
class Publisher(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=100)
class Meta:
db_table = 'Publisher'
def __str__(self):
return 'Publisher:... | 22.018519 | 48 | 0.652649 | 145 | 1,189 | 5.131034 | 0.275862 | 0.05914 | 0.069892 | 0.102151 | 0.432796 | 0.432796 | 0.432796 | 0.432796 | 0.432796 | 0.432796 | 0 | 0.011828 | 0.21783 | 1,189 | 53 | 49 | 22.433962 | 0.788172 | 0.035324 | 0 | 0.470588 | 0 | 0 | 0.065502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.029412 | 0.117647 | 0.852941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
548afc21b16ee46ad8044ba3566ba260b8c8d71a | 899 | py | Python | database/chemtrack/contacts.py | mshobair/invitro_cheminformatics | 17201496c73453accd440646a1ee81726119a59c | [
"MIT"
] | null | null | null | database/chemtrack/contacts.py | mshobair/invitro_cheminformatics | 17201496c73453accd440646a1ee81726119a59c | [
"MIT"
] | null | null | null | database/chemtrack/contacts.py | mshobair/invitro_cheminformatics | 17201496c73453accd440646a1ee81726119a59c | [
"MIT"
] | null | null | null | import datetime
from database.database_schemas import Schemas
from sqlalchemy import Column, Integer, String, DateTime
from database.base import Base
class Contacts(Base):
"""Maps to contacts table in chemprop databases."""
__tablename__ = 'contacts'
__table_args__ = {'schema': Schemas.qsar_schema}
... | 31 | 80 | 0.72525 | 108 | 899 | 5.851852 | 0.444444 | 0.189873 | 0.071203 | 0.072785 | 0.174051 | 0.174051 | 0.174051 | 0.174051 | 0.174051 | 0 | 0 | 0.00271 | 0.179088 | 899 | 29 | 81 | 31 | 0.853659 | 0.050056 | 0 | 0 | 0 | 0 | 0.01649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
548ba908b52f98060805c6474bd241356237c223 | 7,487 | py | Python | otter/generate/autograder.py | drjbarker/otter-grader | 9e89e1675b09cf7889995b5f1bc8e1648bf6c309 | [
"BSD-3-Clause"
] | null | null | null | otter/generate/autograder.py | drjbarker/otter-grader | 9e89e1675b09cf7889995b5f1bc8e1648bf6c309 | [
"BSD-3-Clause"
] | null | null | null | otter/generate/autograder.py | drjbarker/otter-grader | 9e89e1675b09cf7889995b5f1bc8e1648bf6c309 | [
"BSD-3-Clause"
] | null | null | null | """
Gradescope autograder configuration generator for Otter Generate
"""
import os
import json
import shutil
# import subprocess
import zipfile
import tempfile
import pathlib
import pkg_resources
import yaml
from glob import glob
from subprocess import PIPE
from jinja2 import Template
from .token import APIClient
fr... | 38.792746 | 110 | 0.631762 | 922 | 7,487 | 4.994577 | 0.238612 | 0.028665 | 0.019544 | 0.013029 | 0.136156 | 0.090988 | 0.052986 | 0.040825 | 0.026927 | 0.026927 | 0 | 0.002376 | 0.269133 | 7,487 | 192 | 111 | 38.994792 | 0.839181 | 0.22479 | 0 | 0.108333 | 1 | 0.008333 | 0.148226 | 0.007552 | 0 | 0 | 0 | 0 | 0.025 | 1 | 0.008333 | false | 0.025 | 0.125 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
548be68a4be4ce8e389208606dd772dad630cd84 | 4,947 | py | Python | kanka-manager/test.py | davidbradlycurtis/kanka-manager | f44f814c6d9433a40cb1edc558baac12f26b31ad | [
"MIT"
] | null | null | null | kanka-manager/test.py | davidbradlycurtis/kanka-manager | f44f814c6d9433a40cb1edc558baac12f26b31ad | [
"MIT"
] | null | null | null | kanka-manager/test.py | davidbradlycurtis/kanka-manager | f44f814c6d9433a40cb1edc558baac12f26b31ad | [
"MIT"
] | null | null | null | import requests
import yaml
import json
import os
import sys
import logging
from kankaclient.client import KankaClient
logging.basicConfig(format='%(asctime)s %(levelname)s: %(message)s')
LOGGER = logging.getLogger('KankaManagement')
class SpaceDumper(yaml.SafeDumper):
# HACK: insert blank lines between top-level... | 46.233645 | 1,002 | 0.686275 | 489 | 4,947 | 6.770961 | 0.372188 | 0.048626 | 0.014497 | 0.011477 | 0.044699 | 0.044699 | 0.019934 | 0.019934 | 0.019934 | 0 | 0 | 0.040623 | 0.168991 | 4,947 | 107 | 1,003 | 46.233645 | 0.764777 | 0.41884 | 0 | 0.173913 | 0 | 0.021739 | 0.443737 | 0.397381 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.043478 | 0.152174 | 0 | 0.304348 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5490a142b6dfe4a57805f7133f0d2ea9a4a1539c | 2,829 | py | Python | neutron_lib/db/sqlalchemytypes.py | rolaya/neutron-lib | 41a2226dfb93a0e6138de260f5126fa7c954178c | [
"Apache-2.0"
] | null | null | null | neutron_lib/db/sqlalchemytypes.py | rolaya/neutron-lib | 41a2226dfb93a0e6138de260f5126fa7c954178c | [
"Apache-2.0"
] | null | null | null | neutron_lib/db/sqlalchemytypes.py | rolaya/neutron-lib | 41a2226dfb93a0e6138de260f5126fa7c954178c | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | 33.678571 | 78 | 0.607282 | 319 | 2,829 | 5.310345 | 0.376176 | 0.042503 | 0.066116 | 0.051948 | 0.488194 | 0.488194 | 0.488194 | 0.467532 | 0.467532 | 0.467532 | 0 | 0.006576 | 0.301166 | 2,829 | 83 | 79 | 34.084337 | 0.850278 | 0.265465 | 0 | 0.536585 | 0 | 0 | 0.129412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0 | 0.073171 | 0.097561 | 0.634146 | 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 |
549626fa07a7cc95e2aa2428a235bbc1adf539d5 | 2,102 | py | Python | solutions/051_n_queens.py | abawchen/leetcode | 41d3b172a7694a46a860fbcb0565a3acccd000f2 | [
"MIT"
] | null | null | null | solutions/051_n_queens.py | abawchen/leetcode | 41d3b172a7694a46a860fbcb0565a3acccd000f2 | [
"MIT"
] | null | null | null | solutions/051_n_queens.py | abawchen/leetcode | 41d3b172a7694a46a860fbcb0565a3acccd000f2 | [
"MIT"
] | null | null | null | class Solution:
# @return a list of lists of string
def solveNQueens(self, n):
board = [[1 for i in xrange(n)] for i in xrange(n)]
rs = range(n)
self.queens = []
self.directions = [[(-i, i), (i, i)] for i in xrange(1, n)]
self.recursive(board, n, 0, rs)
return sel... | 28.794521 | 108 | 0.471456 | 311 | 2,102 | 3.180064 | 0.199357 | 0.17088 | 0.113246 | 0.032356 | 0.084934 | 0.058645 | 0.058645 | 0.058645 | 0.058645 | 0.058645 | 0 | 0.030413 | 0.343007 | 2,102 | 72 | 109 | 29.194444 | 0.685735 | 0.08706 | 0 | 0.078431 | 0 | 0 | 0.010471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.019608 | null | null | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
549905ffeca6d09d599080cd848b9e365ea51dd3 | 763 | py | Python | oriskami/test/resources/test_router_data.py | oriskami/oriskami-python | 2b0d81f713a9149977907183c67eec136d49ee8c | [
"MIT"
] | 4 | 2017-05-28T19:37:31.000Z | 2017-06-13T11:34:26.000Z | oriskami/test/resources/test_router_data.py | ubivar/ubivar-python | 2b0d81f713a9149977907183c67eec136d49ee8c | [
"MIT"
] | null | null | null | oriskami/test/resources/test_router_data.py | ubivar/ubivar-python | 2b0d81f713a9149977907183c67eec136d49ee8c | [
"MIT"
] | null | null | null | import os
import oriskami
import warnings
from oriskami.test.helper import (OriskamiTestCase)
class OriskamiAPIResourcesTests(OriskamiTestCase):
def test_router_data_update(self):
response = oriskami.RouterData.update("0", is_active="true")
self.assertTrue(hasattr(response.data, "__iter__"))
... | 38.15 | 69 | 0.714286 | 89 | 763 | 5.910112 | 0.325843 | 0.136882 | 0.085551 | 0.165399 | 0.520913 | 0.441065 | 0.441065 | 0 | 0 | 0 | 0 | 0.00936 | 0.159895 | 763 | 19 | 70 | 40.157895 | 0.811232 | 0 | 0 | 0.125 | 0 | 0 | 0.058978 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.4375 | 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 |
549fd848dd75d3c337cc6b1655249d58340ef912 | 2,744 | py | Python | plotting/trackTurnOn.py | will-fawcett/trackerSW | fc097b97539d0b40a15e1d6e112f4048cb4122b4 | [
"MIT"
] | null | null | null | plotting/trackTurnOn.py | will-fawcett/trackerSW | fc097b97539d0b40a15e1d6e112f4048cb4122b4 | [
"MIT"
] | null | null | null | plotting/trackTurnOn.py | will-fawcett/trackerSW | fc097b97539d0b40a15e1d6e112f4048cb4122b4 | [
"MIT"
] | null | null | null |
from utils import prepareLegend
from colours import colours
from ROOT import *
gROOT.SetBatch(1)
gStyle.SetPadLeftMargin(0.15) # increase space for left margin
gStyle.SetPadBottomMargin(0.15) # increase space for left margin
gStyle.SetGridStyle(3)
gStyle.SetGridColor(kGray)
gStyle.SetPadTickX(1) # add tics on top ... | 27.717172 | 94 | 0.623178 | 330 | 2,744 | 5.121212 | 0.427273 | 0.021302 | 0.026627 | 0.031953 | 0.04142 | 0.04142 | 0.04142 | 0.04142 | 0 | 0 | 0 | 0.044647 | 0.240889 | 2,744 | 98 | 95 | 28 | 0.766683 | 0.084913 | 0 | 0.031746 | 0 | 0 | 0.116171 | 0.031599 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
54a07034e31ea393994499d210b41085f8ae28cb | 2,362 | py | Python | src/Process/Process.py | mauriciocarvalho01/pln_api | 06743f1ae9e084ad15f1c91b32eb3719344f4a4b | [
"MIT"
] | 1 | 2021-12-14T19:10:44.000Z | 2021-12-14T19:10:44.000Z | src/Process/Process.py | mauriciocarvalho01/pln_api | 06743f1ae9e084ad15f1c91b32eb3719344f4a4b | [
"MIT"
] | null | null | null | src/Process/Process.py | mauriciocarvalho01/pln_api | 06743f1ae9e084ad15f1c91b32eb3719344f4a4b | [
"MIT"
] | null | null | null | import spacy
from nltk.tokenize import word_tokenize
from nltk.tokenize import sent_tokenize
from nltk.corpus import stopwords
from nltk.probability import FreqDist
from string import punctuation
from tqdm import tqdm
from rank_bm25 import BM25Okapi
import time
from collections import defaultdict
from heapq import nlar... | 34.735294 | 148 | 0.600762 | 252 | 2,362 | 5.571429 | 0.392857 | 0.059829 | 0.022792 | 0.031339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006753 | 0.31033 | 2,362 | 67 | 149 | 35.253731 | 0.855126 | 0.133362 | 0 | 0.076923 | 0 | 0 | 0.122299 | 0.010314 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.365385 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
54a4ba9c11d3248dceffbbc60702b2f7f2e73b4a | 3,950 | py | Python | launchpad2github.py | mleinart/launchpad2github | faade979a1f209dc1d25aa82a32f6342dbfe35b3 | [
"MIT"
] | 2 | 2016-10-07T08:55:40.000Z | 2017-08-30T16:43:57.000Z | launchpad2github.py | mleinart/launchpad2github | faade979a1f209dc1d25aa82a32f6342dbfe35b3 | [
"MIT"
] | null | null | null | launchpad2github.py | mleinart/launchpad2github | faade979a1f209dc1d25aa82a32f6342dbfe35b3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
import time
from getpass import getpass
from optparse import OptionParser
from termcolor import colored
from launchpadlib.launchpad import Launchpad
from github3 import login as github_login
from github3 import GitHubError
ACTIVE_STATUSES = [
"New",
"Confirmed",
"Tria... | 27.816901 | 100 | 0.679241 | 534 | 3,950 | 4.844569 | 0.303371 | 0.027058 | 0.027058 | 0.015075 | 0.05489 | 0.017008 | 0 | 0 | 0 | 0 | 0 | 0.00403 | 0.183291 | 3,950 | 141 | 101 | 28.014184 | 0.797892 | 0.027595 | 0 | 0.045455 | 0 | 0 | 0.205422 | 0.006517 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027273 | 0.127273 | null | null | 0.081818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
54a9266c033c65ceff0e6381eb549dcffd4ece05 | 890 | py | Python | firmware/temphumid/timeset.py | schizobovine/unicorder | 3165922c2662b1bd2c5ab1691c89e2af5ee185e7 | [
"CC-BY-4.0"
] | null | null | null | firmware/temphumid/timeset.py | schizobovine/unicorder | 3165922c2662b1bd2c5ab1691c89e2af5ee185e7 | [
"CC-BY-4.0"
] | null | null | null | firmware/temphumid/timeset.py | schizobovine/unicorder | 3165922c2662b1bd2c5ab1691c89e2af5ee185e7 | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python
from datetime import datetime
import serial
import sys
import time
SERIAL_BAUD = 9600
SERIAL_PORT = '/dev/ttyUSB0'
TIME_FORMAT = "T%s"
# Reset device to activate time setting routine
DO_RST = True
# Open serial dong
print 'opening serial port %s...' % SERIAL_PORT
uart = serial.Serial(
port... | 18.93617 | 47 | 0.683146 | 138 | 890 | 4.333333 | 0.492754 | 0.083612 | 0.033445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021038 | 0.198876 | 890 | 46 | 48 | 19.347826 | 0.817672 | 0.178652 | 0 | 0.117647 | 0 | 0 | 0.11157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
54a9d8c8660ee37792168966ac376aefeed7599f | 3,248 | py | Python | V1_backup/macro_ssh.py | YuanYuLin/iopcrestapi_client | 5c1683d1b5b44bd8bb641933d9526cee97075d31 | [
"MIT"
] | null | null | null | V1_backup/macro_ssh.py | YuanYuLin/iopcrestapi_client | 5c1683d1b5b44bd8bb641933d9526cee97075d31 | [
"MIT"
] | null | null | null | V1_backup/macro_ssh.py | YuanYuLin/iopcrestapi_client | 5c1683d1b5b44bd8bb641933d9526cee97075d31 | [
"MIT"
] | null | null | null | #!/usr/bin/python2.7
import sys
import time
import pprint
import libiopc_rest as rst
def gen_ssh_key(hostname, out_format):
payload = '{'
payload += '"ops":"gen_ssh_key"'
payload += '}'
return rst.http_post_ops_by_pyaload(hostname, payload)
def get_status_until_key_generated(hostname, out_format):
... | 29.798165 | 139 | 0.638855 | 417 | 3,248 | 4.688249 | 0.256595 | 0.082864 | 0.121739 | 0.050128 | 0.478772 | 0.42711 | 0.332481 | 0.275703 | 0.231714 | 0.231714 | 0 | 0.020663 | 0.210283 | 3,248 | 108 | 140 | 30.074074 | 0.74152 | 0.047106 | 0 | 0.294118 | 0 | 0 | 0.164725 | 0.07055 | 0 | 0 | 0.002589 | 0 | 0 | 0 | null | null | 0 | 0.047059 | null | null | 0.047059 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
54b9924021536e75d5d98199ebdf2f58b7c84e9c | 15,384 | py | Python | bindings/python/cntk/utils/__init__.py | MSXC/CNTK | d223d48b411bc994acd465ed333c9f6bed64dd7f | [
"RSA-MD"
] | null | null | null | bindings/python/cntk/utils/__init__.py | MSXC/CNTK | d223d48b411bc994acd465ed333c9f6bed64dd7f | [
"RSA-MD"
] | null | null | null | bindings/python/cntk/utils/__init__.py | MSXC/CNTK | d223d48b411bc994acd465ed333c9f6bed64dd7f | [
"RSA-MD"
] | null | null | null | # Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE.md file in the project root
# for full license information.
# ==============================================================================
import sys
import numbers
import collections
import copy
import numpy as np
from nu... | 35.528868 | 189 | 0.651586 | 2,062 | 15,384 | 4.752182 | 0.225509 | 0.009185 | 0.005613 | 0.006123 | 0.179202 | 0.148893 | 0.118992 | 0.113073 | 0.090621 | 0.090621 | 0 | 0.006626 | 0.264236 | 15,384 | 432 | 190 | 35.611111 | 0.858998 | 0.097504 | 0 | 0.152941 | 0 | 0 | 0.050979 | 0 | 0 | 0 | 0 | 0.002315 | 0.005882 | 0 | null | null | 0.011765 | 0.105882 | 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 |
54bc320185cf4b126b5fbdb33a31e831a7364c2c | 1,209 | py | Python | objectModel/Python/tests/cdm/cdm_collection/cdm_collection_helper_functions.py | aaron-emde/CDM | 9472e9c7694821ac4a9bbe608557d2e65aabc73e | [
"CC-BY-4.0",
"MIT"
] | null | null | null | objectModel/Python/tests/cdm/cdm_collection/cdm_collection_helper_functions.py | aaron-emde/CDM | 9472e9c7694821ac4a9bbe608557d2e65aabc73e | [
"CC-BY-4.0",
"MIT"
] | 3 | 2021-05-11T23:57:12.000Z | 2021-08-04T05:03:05.000Z | objectModel/Python/tests/cdm/cdm_collection/cdm_collection_helper_functions.py | aaron-emde/CDM | 9472e9c7694821ac4a9bbe608557d2e65aabc73e | [
"CC-BY-4.0",
"MIT"
] | null | null | null | from cdm.objectmodel import CdmCorpusDefinition, CdmManifestDefinition
from cdm.storage import LocalAdapter
from cdm.enums import CdmObjectType
def generate_manifest(local_root_path: str) -> 'CdmManifestDefinition':
"""
Creates a manifest used for the tests.
"""
cdmCorpus = CdmCorpusDefinition()
... | 35.558824 | 127 | 0.746071 | 138 | 1,209 | 6.347826 | 0.384058 | 0.041096 | 0.02968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157155 | 1,209 | 33 | 128 | 36.636364 | 0.859666 | 0.102564 | 0 | 0 | 1 | 0 | 0.097514 | 0.020076 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
54c1abcc8ecb4f60275606b22bbb22422b5b3be6 | 1,021 | py | Python | dashboard/frontend/callbacks.py | AndreWohnsland/CocktailBerry | 60b2dfc3a4a6f3ef9ab2d946a97d14829e575a9d | [
"MIT"
] | 1 | 2022-03-06T23:50:34.000Z | 2022-03-06T23:50:34.000Z | dashboard/frontend/callbacks.py | AndreWohnsland/CocktailBerry | 60b2dfc3a4a6f3ef9ab2d946a97d14829e575a9d | [
"MIT"
] | 4 | 2022-03-03T11:16:17.000Z | 2022-03-20T15:53:37.000Z | dashboard/frontend/callbacks.py | AndreWohnsland/CocktailBerry | 60b2dfc3a4a6f3ef9ab2d946a97d14829e575a9d | [
"MIT"
] | null | null | null | import dash
from dash.dependencies import Input, Output # type: ignore
import datetime
from treemap import generate_treemap, get_plot_data
from app import app
from store import store
@app.callback(Output('treemap', 'figure'),
Output('timeclock', "children"),
Input('interval-component', '... | 31.90625 | 70 | 0.663075 | 134 | 1,021 | 4.820896 | 0.440299 | 0.032508 | 0.034056 | 0.083591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007481 | 0.214496 | 1,021 | 31 | 71 | 32.935484 | 0.798005 | 0.011753 | 0 | 0 | 1 | 0 | 0.142999 | 0.029791 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.214286 | 0 | 0.321429 | 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 |
54c3ac280575bb0ee6051627754ebf1784317751 | 4,095 | py | Python | tms/useraccount/views.py | csagar131/TicketManagementSystem | d2c6b340dcb1d7607257d88dc5b931a0624a774b | [
"Apache-2.0"
] | null | null | null | tms/useraccount/views.py | csagar131/TicketManagementSystem | d2c6b340dcb1d7607257d88dc5b931a0624a774b | [
"Apache-2.0"
] | 4 | 2021-06-04T23:51:17.000Z | 2022-02-10T10:41:21.000Z | tms/useraccount/views.py | csagar131/TicketManagementSystem | d2c6b340dcb1d7607257d88dc5b931a0624a774b | [
"Apache-2.0"
] | 1 | 2020-06-04T11:44:42.000Z | 2020-06-04T11:44:42.000Z | from django.shortcuts import render
from rest_framework.viewsets import ModelViewSet
from useraccount.serializer import UserSerializer,AgentUserSerializer
from rest_framework.views import APIView
from useraccount.models import User
from django.http.response import JsonResponse
from django.template.loader import render_... | 36.238938 | 114 | 0.60464 | 473 | 4,095 | 5.088795 | 0.323467 | 0.0457 | 0.034898 | 0.010802 | 0.221853 | 0.221853 | 0.192771 | 0.192771 | 0.192771 | 0.192771 | 0 | 0.012076 | 0.25177 | 4,095 | 112 | 115 | 36.5625 | 0.773499 | 0.031013 | 0 | 0.15 | 0 | 0 | 0.077702 | 0.012655 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.175 | 0.1625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
54c4dc3efeaaf5e89758e47b3cc255b10a88682a | 1,160 | py | Python | setup.py | ionata/django-unique-uploadto | da66ed30d6abd86566d9b141e3c48b10340740a2 | [
"BSD-3-Clause"
] | null | null | null | setup.py | ionata/django-unique-uploadto | da66ed30d6abd86566d9b141e3c48b10340740a2 | [
"BSD-3-Clause"
] | 1 | 2017-11-21T22:11:24.000Z | 2017-11-22T00:38:17.000Z | setup.py | ionata/django-unique-uploadto | da66ed30d6abd86566d9b141e3c48b10340740a2 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from __future__ import absolute_import, print_function, unicode_literals
from setuptools import setup, find_packages
from unique_uploadto import __version__
with open('README.rst', 'r') as f:
readme = f.read()
setup(
name='django-unique-uploadto',
version=__version__,
descript... | 27.619048 | 72 | 0.64569 | 125 | 1,160 | 5.8 | 0.6 | 0.157241 | 0.206897 | 0.107586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012209 | 0.223276 | 1,160 | 41 | 73 | 28.292683 | 0.792453 | 0.017241 | 0 | 0.060606 | 0 | 0 | 0.438104 | 0.039508 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.030303 | 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 |
54c84616a029f134346dc45645dd043f6f816a04 | 793 | py | Python | scripts/python/helper/decoration.py | sulthonzh/zaruba | ec9262f43da17d86330da2c593b7da451aabd60f | [
"Apache-2.0"
] | null | null | null | scripts/python/helper/decoration.py | sulthonzh/zaruba | ec9262f43da17d86330da2c593b7da451aabd60f | [
"Apache-2.0"
] | null | null | null | scripts/python/helper/decoration.py | sulthonzh/zaruba | ec9262f43da17d86330da2c593b7da451aabd60f | [
"Apache-2.0"
] | null | null | null | import random
normal="\033[0m"
bold="\033[1m"
faint="\033[2m"
italic="\033[3m"
underline="\033[4m"
blinkSlow="\033[5m"
blinkRapid="\033[6m"
inverse="\033[7m"
conceal="\033[8m"
crossedOut="\033[9m"
black="\033[30m"
red="\033[31m"
green="\033[32m"
yellow="\033[33m"
blue="\033[34m"
magenta="\033[35m"
cyan="\033[36m"
whit... | 20.333333 | 121 | 0.583859 | 130 | 793 | 3.692308 | 0.715385 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196353 | 0.100883 | 793 | 38 | 122 | 20.868421 | 0.447405 | 0 | 0 | 0 | 0 | 0 | 0.315259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.028571 | 0 | 0.085714 | 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 |
49a498a0dfc278640dff975e47a36448f00bf3bc | 2,918 | py | Python | data_structures/tree/avl_tree.py | hongta/practice-python | 52d5278ea5402ea77054bfa5c4bfdbdf81c9c963 | [
"MIT"
] | null | null | null | data_structures/tree/avl_tree.py | hongta/practice-python | 52d5278ea5402ea77054bfa5c4bfdbdf81c9c963 | [
"MIT"
] | null | null | null | data_structures/tree/avl_tree.py | hongta/practice-python | 52d5278ea5402ea77054bfa5c4bfdbdf81c9c963 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from tree_node import AVLTreeNode
from binary_search_tree import BinarySearchTree
class AVLTree(BinarySearchTree):
def __init__(self):
super(AVLTree, self).__init__()
def insert(self, k, payload=None):
# tree is empty construct the tree
if... | 26.770642 | 78 | 0.59013 | 396 | 2,918 | 4.116162 | 0.186869 | 0.063804 | 0.042945 | 0.06135 | 0.252147 | 0.210429 | 0.184663 | 0.14908 | 0.066871 | 0.066871 | 0 | 0.018793 | 0.30706 | 2,918 | 108 | 79 | 27.018519 | 0.787339 | 0.053804 | 0 | 0.166667 | 0 | 0 | 0.002903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025641 | 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 |
49aa6dbb7d625a529dc7cc00fc711016b4a758db | 3,614 | py | Python | scripts/collect.py | oveis/DeepVideoFaceSwap | e507f94d4f5d74c36e41c386c6fb14bb745a4885 | [
"MIT"
] | 5 | 2019-05-17T11:54:04.000Z | 2020-10-06T18:45:17.000Z | scripts/collect.py | oveis/DeepVideoFaceSwap | e507f94d4f5d74c36e41c386c6fb14bb745a4885 | [
"MIT"
] | null | null | null | scripts/collect.py | oveis/DeepVideoFaceSwap | e507f94d4f5d74c36e41c386c6fb14bb745a4885 | [
"MIT"
] | 5 | 2019-06-05T00:20:24.000Z | 2019-09-15T15:40:23.000Z | #!/usr/bin python3
""" The script to collect training data """
import logging
import os
import cv2 as cv
import numpy as np
from google_images_download import google_images_download as gid
from lib.utils import get_folder
from os.path import exists, isfile, join
logger = logging.getLogger(__name__) # pylint: disable... | 36.505051 | 104 | 0.649972 | 467 | 3,614 | 4.72591 | 0.286938 | 0.040779 | 0.027186 | 0.028999 | 0.219755 | 0.164024 | 0.141368 | 0.086996 | 0.04531 | 0.04531 | 0 | 0.00663 | 0.248755 | 3,614 | 99 | 105 | 36.505051 | 0.806262 | 0.123409 | 0 | 0.032258 | 0 | 0 | 0.070181 | 0.033026 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.096774 | false | 0 | 0.112903 | 0 | 0.225806 | 0.016129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
49aaf3536a9b3013f2535a7951571b5299a8099f | 604 | py | Python | heisen/core/__init__.py | HeisenCore/heisen | 0cd4d27822960553a8e83a72c7dfeefa76e65c06 | [
"MIT"
] | 5 | 2016-08-30T07:51:08.000Z | 2021-09-13T11:30:05.000Z | heisen/core/__init__.py | HeisenCore/heisen | 0cd4d27822960553a8e83a72c7dfeefa76e65c06 | [
"MIT"
] | 15 | 2016-09-15T19:21:24.000Z | 2016-10-22T16:22:15.000Z | heisen/core/__init__.py | HeisenCore/heisen | 0cd4d27822960553a8e83a72c7dfeefa76e65c06 | [
"MIT"
] | null | null | null | from heisen.config import settings
from jsonrpclib.request import ConnectionPool
def get_rpc_connection():
if settings.CREDENTIALS:
username, passowrd = settings.CREDENTIALS[0]
else:
username = passowrd = None
servers = {'self': []}
for instance_number in range(settings.INSTANCE_COUNT... | 27.454545 | 80 | 0.692053 | 65 | 604 | 6.261538 | 0.553846 | 0.117936 | 0.078624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002075 | 0.201987 | 604 | 21 | 81 | 28.761905 | 0.842324 | 0 | 0 | 0 | 0 | 0 | 0.056291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.2 | 0.133333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
49ac5028ee971f3e584f2c491889fc4e4b16901b | 3,023 | py | Python | stub/nginx-status-stub.py | geld-tech/nginx-monitor-dashboard | 3fcd3bd184a0348095c4f4ec91a46ab98ee0ca80 | [
"Apache-2.0"
] | 1 | 2018-07-30T14:01:36.000Z | 2018-07-30T14:01:36.000Z | stub/nginx-status-stub.py | geld-tech/nginx-monitor-dashboard | 3fcd3bd184a0348095c4f4ec91a46ab98ee0ca80 | [
"Apache-2.0"
] | null | null | null | stub/nginx-status-stub.py | geld-tech/nginx-monitor-dashboard | 3fcd3bd184a0348095c4f4ec91a46ab98ee0ca80 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
NGINX Status Stub
Returns sample resources usage
"""
import logging
import logging.handlers
import random
from optparse import OptionParser
from flask import Flask
app = Flask(__name__)
app.debug = True
# Initialisation
logging.basicConfig(format='[%(asctime)-15s] [%(threadName)s] %(... | 50.383333 | 1,124 | 0.700629 | 431 | 3,023 | 4.765661 | 0.401392 | 0.073028 | 0.081792 | 0.03408 | 0.161149 | 0.076923 | 0.076923 | 0.040896 | 0.040896 | 0 | 0 | 0.022745 | 0.141912 | 3,023 | 59 | 1,125 | 51.237288 | 0.769083 | 0.032418 | 0 | 0.069767 | 0 | 0.023256 | 0.562436 | 0.304094 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.116279 | 0 | 0.255814 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
49ad0529acc7b30e818083fbddf61cedb7ec9149 | 1,616 | py | Python | test_question4.py | fmakawa/Practice | 7f6eaa1dde4e46088ca5dcee76de1bb56a363238 | [
"MIT"
] | null | null | null | test_question4.py | fmakawa/Practice | 7f6eaa1dde4e46088ca5dcee76de1bb56a363238 | [
"MIT"
] | null | null | null | test_question4.py | fmakawa/Practice | 7f6eaa1dde4e46088ca5dcee76de1bb56a363238 | [
"MIT"
] | null | null | null | """
Question 4
Level 1
Question:
Write a program which accepts a sequence of comma-separated numbers from console and generate a list and a tuple which contains every number.
Suppose the following input is supplied to the program:
34,67,55,33,12,98
Then, the output should be:
['34', '67', '55', '33', '12', '98']
('34'... | 36.727273 | 141 | 0.61448 | 243 | 1,616 | 4.074074 | 0.329218 | 0.056566 | 0.084848 | 0.113131 | 0.368687 | 0.368687 | 0.332323 | 0.332323 | 0.332323 | 0.332323 | 0 | 0.131222 | 0.179455 | 1,616 | 43 | 142 | 37.581395 | 0.615385 | 0.305693 | 0 | 0.15 | 1 | 0.2 | 0.320467 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.15 | false | 0 | 0.15 | 0 | 0.35 | 0.05 | 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 |
49ad2866726183e18afb70540beb33954b2be143 | 543 | py | Python | app/tasks/uwu/uwu.py | tahosa/discord-util-bot | 2f261c5ae06da8a62e72502b53341720437860f5 | [
"MIT"
] | null | null | null | app/tasks/uwu/uwu.py | tahosa/discord-util-bot | 2f261c5ae06da8a62e72502b53341720437860f5 | [
"MIT"
] | null | null | null | app/tasks/uwu/uwu.py | tahosa/discord-util-bot | 2f261c5ae06da8a62e72502b53341720437860f5 | [
"MIT"
] | 1 | 2022-02-09T04:16:54.000Z | 2022-02-09T04:16:54.000Z | import logging
import discord
import discord.ext.commands as commands
_LOG = logging.getLogger('discord-util').getChild("uwu")
class Uwu(commands.Cog):
@commands.Cog.listener()
async def on_message(self, message: discord.Message):
if message.content.lower().startswith('hello bot') or message.content.... | 31.941176 | 110 | 0.685083 | 67 | 543 | 5.507463 | 0.552239 | 0.113821 | 0.154472 | 0.235772 | 0.168022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18232 | 543 | 16 | 111 | 33.9375 | 0.831081 | 0 | 0 | 0 | 0 | 0 | 0.121547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.416667 | 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 |
49ae4cab0439ba556dfe9b168c615e0466cf0551 | 2,195 | py | Python | test.py | mltnhm/sr-turtle | d839eeb50e4ba70cfc2a4070c9f6fda2f0b19ca2 | [
"MIT"
] | 1 | 2020-04-16T18:06:13.000Z | 2020-04-16T18:06:13.000Z | test.py | mltnhm/sr-turtle | d839eeb50e4ba70cfc2a4070c9f6fda2f0b19ca2 | [
"MIT"
] | 3 | 2019-05-11T20:39:31.000Z | 2019-11-13T10:51:59.000Z | test.py | mltnhm/sr-turtle | d839eeb50e4ba70cfc2a4070c9f6fda2f0b19ca2 | [
"MIT"
] | 1 | 2019-11-12T08:02:52.000Z | 2019-11-12T08:02:52.000Z | from __future__ import print_function
import time
from sr.robot import *
SEARCHING = "SEARCHING"
DRIVING = "DRIVING"
R = Robot()
def drive(speed, seconds):
R.motors[0].m0.power = speed
R.motors[0].m1.power = speed
time.sleep(seconds)
R.motors[0].m0.power = 0
R.motors[0].m1.power = 0
def turn(s... | 25.229885 | 75 | 0.491116 | 288 | 2,195 | 3.666667 | 0.333333 | 0.05303 | 0.060606 | 0.056818 | 0.291667 | 0.246212 | 0.246212 | 0.223485 | 0.189394 | 0.189394 | 0 | 0.050074 | 0.381321 | 2,195 | 86 | 76 | 25.523256 | 0.727541 | 0.040091 | 0 | 0.253731 | 0 | 0 | 0.100285 | 0 | 0 | 0 | 0 | 0.011628 | 0 | 1 | 0.044776 | false | 0 | 0.044776 | 0 | 0.104478 | 0.179104 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
49b63c647e63040901947f17755b744a1b67eb27 | 298 | py | Python | 17_Greedy/Step05/gamjapark.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | 17_Greedy/Step05/gamjapark.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | 3 | 2020-11-04T05:38:53.000Z | 2021-03-02T02:15:19.000Z | 17_Greedy/Step05/gamjapark.py | StudyForCoding/BEAKJOON | 84e1c5e463255e919ccf6b6a782978c205420dbf | [
"MIT"
] | null | null | null | import sys
N = int(sys.stdin.readline())
dis = list(map(int, sys.stdin.readline().split()))
coin = list(map(int, sys.stdin.readline().split()))
use_coin = coin[0]
tot = dis[0] * use_coin
for i in range(1, N - 1):
if coin[i] < use_coin:
use_coin = coin[i]
tot += dis[i] * use_coin
print(tot) | 19.866667 | 51 | 0.64094 | 55 | 298 | 3.381818 | 0.381818 | 0.188172 | 0.177419 | 0.306452 | 0.333333 | 0.333333 | 0.333333 | 0 | 0 | 0 | 0 | 0.016 | 0.161074 | 298 | 15 | 52 | 19.866667 | 0.728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 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 |
49bc98db6539f3a16066fd5753ae5ccc2e439eb8 | 1,107 | py | Python | tests/test_dht.py | fakegit/stilio | cf198b8ccadc7dcadc462ce83b801af00ef4e2f2 | [
"Apache-2.0"
] | 71 | 2019-10-09T17:18:12.000Z | 2022-02-26T12:15:53.000Z | tests/test_dht.py | zinsking/stilio | eade3c1993e185bef53fa25b4e12fe8be330251c | [
"Apache-2.0"
] | 3 | 2019-10-16T17:52:48.000Z | 2021-12-01T16:50:18.000Z | tests/test_dht.py | zinsking/stilio | eade3c1993e185bef53fa25b4e12fe8be330251c | [
"Apache-2.0"
] | 11 | 2020-01-21T09:09:14.000Z | 2022-03-27T12:05:36.000Z | from stilio.crawler.dht.node import Node
class TestNode:
def setup_method(self):
self.node = Node.create_random("192.168.1.1", 8000)
def test_create_random(self) -> None:
assert self.node.address == "192.168.1.1"
assert self.node.port == 8000
def test_generate_random_id(self) -> ... | 31.628571 | 60 | 0.581752 | 165 | 1,107 | 3.745455 | 0.2 | 0.15534 | 0.113269 | 0.116505 | 0.438511 | 0.347896 | 0.347896 | 0.309061 | 0.309061 | 0.309061 | 0 | 0.150062 | 0.265583 | 1,107 | 34 | 61 | 32.558824 | 0.610086 | 0 | 0 | 0.148148 | 0 | 0 | 0.099368 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.222222 | false | 0 | 0.037037 | 0 | 0.296296 | 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 |
49bec7c54696e35577e6576d879d884656bd76e8 | 1,937 | py | Python | wordonhd/ApiException.py | Mechazawa/WordOn-HD-Bot | d5a9dedd3d548ad1a9b33f49646e532bf511dd3e | [
"BSD-2-Clause"
] | null | null | null | wordonhd/ApiException.py | Mechazawa/WordOn-HD-Bot | d5a9dedd3d548ad1a9b33f49646e532bf511dd3e | [
"BSD-2-Clause"
] | null | null | null | wordonhd/ApiException.py | Mechazawa/WordOn-HD-Bot | d5a9dedd3d548ad1a9b33f49646e532bf511dd3e | [
"BSD-2-Clause"
] | null | null | null | from enum import Enum
from requests import Response
from urllib.parse import unquote
import json
class ApiErrorCode(Enum):
PHP_INVALID = 0
PHP_MISSING_PARAMS = 1
PHP_AUTH_FAILED = 2
PHP_NAME_INVALID = 4
PHP_USERNAME_INVALID = 5
PHP_USER_ALREADY_EXISTS = 6
PHP_PASSWORD_INVALID = 7
PHP_U... | 28.485294 | 87 | 0.661848 | 265 | 1,937 | 4.449057 | 0.483019 | 0.029686 | 0.020356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056604 | 0.261229 | 1,937 | 68 | 88 | 28.485294 | 0.767296 | 0 | 0 | 0 | 0 | 0 | 0.018576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0.016393 | 0.065574 | 0 | 0.786885 | 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 |
49c27444ea8191b6871d22350e36ce9770315509 | 752 | py | Python | qurry/libraries/standard_library/constructs/gaussian.py | LSaldyt/curry | 9004a396ec2e351aa143a10a53156649a6747343 | [
"MIT"
] | 11 | 2018-07-28T17:08:23.000Z | 2019-02-08T03:04:03.000Z | qurry/libraries/standard_library/constructs/gaussian.py | LSaldyt/Qurry | 9004a396ec2e351aa143a10a53156649a6747343 | [
"MIT"
] | 33 | 2019-07-09T09:46:44.000Z | 2019-09-23T23:44:37.000Z | qurry/libraries/standard_library/constructs/gaussian.py | LSaldyt/Qurry | 9004a396ec2e351aa143a10a53156649a6747343 | [
"MIT"
] | 4 | 2019-05-28T01:27:49.000Z | 2019-12-26T18:01:51.000Z | from math import erf, sqrt
from functools import partial
from ..library.multinomial import multinomial, to_multinomial
def gaussian_cdf(x, mu, sigma):
y = (1.0 + erf((x - mu) / (sigma * sqrt(2.0)))) / 2.0
y = (1.0 + erf((x) / (sqrt(2.0)))) / 2.0
assert y >= 0 and y <= 1.0, 'y is not a valid probability: y... | 34.181818 | 133 | 0.668883 | 117 | 752 | 4.25641 | 0.401709 | 0.070281 | 0.018072 | 0.024096 | 0.060241 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034426 | 0.18883 | 752 | 21 | 134 | 35.809524 | 0.781967 | 0.151596 | 0 | 0 | 0 | 0 | 0.055105 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.25 | false | 0 | 0.25 | 0.083333 | 0.75 | 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 |
49c45451bcf8f4588b0bba3456a64c9403ea4bc6 | 1,071 | py | Python | kickbase_api/models/league_user_stats.py | jhelgert/kickbase-api-python | 6e8b12c69cf36a4ce5c3ac37f9328cde5946a3e2 | [
"MIT"
] | 7 | 2020-08-17T07:20:30.000Z | 2022-02-03T19:21:53.000Z | kickbase_api/models/league_user_stats.py | jhelgert/kickbase-api-python | 6e8b12c69cf36a4ce5c3ac37f9328cde5946a3e2 | [
"MIT"
] | 4 | 2020-11-01T10:39:11.000Z | 2021-07-30T12:20:52.000Z | kickbase_api/models/league_user_stats.py | jhelgert/kickbase-api-python | 6e8b12c69cf36a4ce5c3ac37f9328cde5946a3e2 | [
"MIT"
] | 4 | 2020-11-01T09:12:39.000Z | 2021-08-23T13:25:00.000Z | from datetime import datetime
from kickbase_api.models._transforms import parse_date, parse_key_value_array_to_dict
from kickbase_api.models.base_model import BaseModel
from kickbase_api.models.league_user_season_stats import LeagueUserSeasonStats
class LeagueUserStats(BaseModel):
name: str = None
profile_im... | 32.454545 | 104 | 0.655462 | 126 | 1,071 | 5.206349 | 0.444444 | 0.054878 | 0.068598 | 0.096037 | 0.073171 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248366 | 1,071 | 32 | 105 | 33.46875 | 0.814907 | 0 | 0 | 0 | 0 | 0 | 0.103641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.153846 | 0 | 0.576923 | 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 |
49c93ee339debd703889e1a8187ecdfd356689ca | 1,999 | py | Python | settings.py | ArneBinder/Pytorch-LRP | c17902138f1d560f1f5d38f401ac856e071a5800 | [
"BSD-3-Clause"
] | 117 | 2019-03-19T08:47:03.000Z | 2022-03-31T04:14:51.000Z | settings.py | ArneBinder/Pytorch-LRP | c17902138f1d560f1f5d38f401ac856e071a5800 | [
"BSD-3-Clause"
] | 10 | 2019-09-15T14:59:43.000Z | 2022-03-15T14:18:02.000Z | settings.py | ArneBinder/Pytorch-LRP | c17902138f1d560f1f5d38f401ac856e071a5800 | [
"BSD-3-Clause"
] | 49 | 2019-03-19T08:47:03.000Z | 2021-11-30T01:02:04.000Z | """
Settings for re-running the experiments from the paper "Layer-wise
relevance propagation for explaining deep neural network decisions
in MRI-based Alzheimer’s disease classification".
Please note that you need to download the ADNI data from
http://adni.loni.usc.edu/ and preprocess it using
https://github.com/ANT... | 40.795918 | 81 | 0.758379 | 308 | 1,999 | 4.818182 | 0.474026 | 0.032345 | 0.048518 | 0.022237 | 0.070081 | 0.070081 | 0.070081 | 0.070081 | 0.070081 | 0 | 0 | 0.013366 | 0.176588 | 1,999 | 48 | 82 | 41.645833 | 0.888214 | 0.826913 | 0 | 0 | 0 | 0 | 0.556548 | 0.255952 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
49ca8eabe12b4dbe3823135f9cccd4003e5ec8f9 | 274 | py | Python | compiler_test.py | zpcore/ACOW | 9d9186eb28af3e5e1242621457f36d5a7910366a | [
"MIT"
] | null | null | null | compiler_test.py | zpcore/ACOW | 9d9186eb28af3e5e1242621457f36d5a7910366a | [
"MIT"
] | null | null | null | compiler_test.py | zpcore/ACOW | 9d9186eb28af3e5e1242621457f36d5a7910366a | [
"MIT"
] | null | null | null | '''
# Test the compiler
'''
from ACOW import *
data = '''
a1 U[1,2] !a0&G[1,3]a3
'''
print('MTL Formula:',data)
# Test lex
print('\nLex Test:')
lexer.input(data)
for tok in lexer:
print(tok)
# Test parser
print('\nParser Test:')
result = parser.parse(data)
print(result) | 13.7 | 27 | 0.645985 | 45 | 274 | 3.933333 | 0.644444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030172 | 0.153285 | 274 | 20 | 28 | 13.7 | 0.732759 | 0.149635 | 0 | 0 | 0 | 0 | 0.271111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
49cc558662f5dd7e7fb056fd6f79d57effb78d66 | 315 | py | Python | insta/admin.py | Stephenremmi/insta-clone | 88af361dca160f7840842ebebc306a02f97920ca | [
"MIT"
] | null | null | null | insta/admin.py | Stephenremmi/insta-clone | 88af361dca160f7840842ebebc306a02f97920ca | [
"MIT"
] | 3 | 2021-03-30T13:54:34.000Z | 2021-09-08T02:17:46.000Z | insta/admin.py | Stephenremmi/insta-clone | 88af361dca160f7840842ebebc306a02f97920ca | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Post, Comment, UserProfile
class ProfileAdmin(admin.ModelAdmin):
filter_horizontal =("followers", "following",)
# Register your models here.
admin.site.register(Post)
admin.site.register(Comment)
admin.site.register(UserProfile, admin_class=ProfileAdmin)
| 26.25 | 58 | 0.796825 | 38 | 315 | 6.552632 | 0.526316 | 0.108434 | 0.204819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098413 | 315 | 11 | 59 | 28.636364 | 0.876761 | 0.08254 | 0 | 0 | 0 | 0 | 0.062937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.571429 | 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 |
49cd3c2fd0bbd8a92289c21bd54ca7e440919719 | 25,042 | py | Python | travelling/migrations/0001_initial.py | HerbyDE/jagdreisencheck-webapp | 9af5deda2423b787da88a0c893f3c474d8e4f73f | [
"BSD-3-Clause"
] | null | null | null | travelling/migrations/0001_initial.py | HerbyDE/jagdreisencheck-webapp | 9af5deda2423b787da88a0c893f3c474d8e4f73f | [
"BSD-3-Clause"
] | null | null | null | travelling/migrations/0001_initial.py | HerbyDE/jagdreisencheck-webapp | 9af5deda2423b787da88a0c893f3c474d8e4f73f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-11-27 14:43
from __future__ import unicode_literals
import ckeditor.fields
from django.conf import settings
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
import django_countries.fields
... | 83.473333 | 349 | 0.633376 | 2,760 | 25,042 | 5.585145 | 0.149275 | 0.10133 | 0.068115 | 0.080117 | 0.686474 | 0.651508 | 0.607979 | 0.581447 | 0.556601 | 0.521116 | 0 | 0.01182 | 0.20266 | 25,042 | 299 | 350 | 83.752508 | 0.760204 | 0.002755 | 0 | 0.439863 | 1 | 0 | 0.251382 | 0.023588 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027491 | 0 | 0.041237 | 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 |
49db3a1ecbfa19102c7269a3533f50d40a8b3fab | 4,838 | py | Python | config/access/model_base.py | torrua/loglan_converter | e040825354bd07dda4f44d8dd84c79dc1db405c9 | [
"MIT"
] | null | null | null | config/access/model_base.py | torrua/loglan_converter | e040825354bd07dda4f44d8dd84c79dc1db405c9 | [
"MIT"
] | null | null | null | config/access/model_base.py | torrua/loglan_converter | e040825354bd07dda4f44d8dd84c79dc1db405c9 | [
"MIT"
] | null | null | null | from sqlalchemy import Column, String, Integer, Text, Boolean, DateTime
from config.access import Base
from sqlalchemy.ext.declarative import declared_attr
from datetime import datetime
class BaseFunctions:
"""
Base class for common methods
"""
__tablename__ = None
@declared_attr
def import_... | 28.627219 | 84 | 0.65895 | 557 | 4,838 | 5.527828 | 0.263914 | 0.097109 | 0.045469 | 0.040922 | 0.180903 | 0.112374 | 0.043521 | 0 | 0 | 0 | 0 | 0.016398 | 0.20587 | 4,838 | 168 | 85 | 28.797619 | 0.785008 | 0.029971 | 0 | 0.070707 | 0 | 0.010101 | 0.100557 | 0.020669 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050505 | false | 0.010101 | 0.050505 | 0.030303 | 0.919192 | 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 |
49de3b66d3ba8d7b390aa4f38533368a7826b8e9 | 689 | py | Python | WebEmpresarial/social/models.py | MarcosKlender/Web_Empresarial | 79b481488a74415e88898cff029233f339dc1e97 | [
"BSD-3-Clause"
] | null | null | null | WebEmpresarial/social/models.py | MarcosKlender/Web_Empresarial | 79b481488a74415e88898cff029233f339dc1e97 | [
"BSD-3-Clause"
] | null | null | null | WebEmpresarial/social/models.py | MarcosKlender/Web_Empresarial | 79b481488a74415e88898cff029233f339dc1e97 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
# Create your models here.
class Link(models.Model):
key = models.SlugField(max_length = 100, unique = True, verbose_name = 'Nombre Clave')
name = models.CharField(max_length = 200, verbose_name = 'Red Social')
url = models.URLField(max_length = 200, null = True, blank = True, ... | 40.529412 | 95 | 0.685051 | 88 | 689 | 5.159091 | 0.556818 | 0.169604 | 0.132159 | 0.114537 | 0.096916 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016484 | 0.207547 | 689 | 17 | 96 | 40.529412 | 0.815018 | 0.034833 | 0 | 0 | 0 | 0 | 0.11747 | 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 |
49e46e9b59b725cb283f9125430ec7a34bd75825 | 9,521 | py | Python | 3_0_pgo_icp/solution/pose_graph_optimization/assignment_I_2/pgo_2D.py | karanchawla/ai_for_robotics | 03bb66bae99bac3acd79bc1ec6d3b9c0eeabcdf8 | [
"BSD-3-Clause"
] | 65 | 2017-03-03T07:30:28.000Z | 2021-08-19T01:12:47.000Z | 3_0_pgo_icp/solution/pose_graph_optimization/assignment_I_2/pgo_2D.py | karanchawla/ai_for_robotics | 03bb66bae99bac3acd79bc1ec6d3b9c0eeabcdf8 | [
"BSD-3-Clause"
] | 4 | 2017-03-02T13:51:40.000Z | 2017-11-01T16:49:22.000Z | 3_0_pgo_icp/solution/pose_graph_optimization/assignment_I_2/pgo_2D.py | ethz-asl/ai_for_robotics | 03bb66bae99bac3acd79bc1ec6d3b9c0eeabcdf8 | [
"BSD-3-Clause"
] | 43 | 2017-03-02T11:31:21.000Z | 2020-10-30T07:10:59.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 2 10:00 2017
@author: Timo Hinzmann (hitimo@ethz.ch)
"""
import math
from math import floor, ceil
import numpy as np
import matplotlib.pyplot as plt
from scipy.sparse import linalg as sla
from scipy import array, linalg, dot
from enum import Enum
imp... | 36.619231 | 119 | 0.553513 | 1,445 | 9,521 | 3.459516 | 0.177855 | 0.010802 | 0.005401 | 0.011202 | 0.291058 | 0.174635 | 0.132827 | 0.10242 | 0.10122 | 0.088018 | 0 | 0.033093 | 0.330322 | 9,521 | 259 | 120 | 36.760618 | 0.750941 | 0.278752 | 0 | 0 | 0 | 0 | 0.035007 | 0.00715 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.014815 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
49e8bc016b4a92e63bbff49dadf2d0f5ff48a5c0 | 7,673 | py | Python | mobi_parse_data.py | josting/CS538_Project | b503de4f8e632166f715bb28b621d21770e3142e | [
"MIT"
] | null | null | null | mobi_parse_data.py | josting/CS538_Project | b503de4f8e632166f715bb28b621d21770e3142e | [
"MIT"
] | null | null | null | mobi_parse_data.py | josting/CS538_Project | b503de4f8e632166f715bb28b621d21770e3142e | [
"MIT"
] | null | null | null | import os
import datetime as dt
import random
import networkx
# import matplotlib as mpl
import matplotlib.pyplot as plt
from const import *
activity = {}
with open(os.path.join(DATA_DIR, "mobiclique", "activity.csv")) as activity_fd:
for line in activity_fd.readlines():
line = line.strip()
... | 37.247573 | 121 | 0.59377 | 1,024 | 7,673 | 4.206055 | 0.150391 | 0.082192 | 0.050151 | 0.039006 | 0.59856 | 0.550267 | 0.511725 | 0.474808 | 0.401207 | 0.377989 | 0 | 0.006032 | 0.28698 | 7,673 | 205 | 122 | 37.429268 | 0.78121 | 0.015248 | 0 | 0.446927 | 0 | 0 | 0.032816 | 0.003676 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03352 | null | null | 0.005587 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
49edf4b8c87add119d94e632341ab23299a577d3 | 1,726 | py | Python | boardgames/main/migrations/0001_initial.py | diophung/django-sample | 4916f4aa70506f6f40b736f68a0bbe398ea1ea8e | [
"Apache-2.0"
] | null | null | null | boardgames/main/migrations/0001_initial.py | diophung/django-sample | 4916f4aa70506f6f40b736f68a0bbe398ea1ea8e | [
"Apache-2.0"
] | null | null | null | boardgames/main/migrations/0001_initial.py | diophung/django-sample | 4916f4aa70506f6f40b736f68a0bbe398ea1ea8e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-16 07:49
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | 42.097561 | 162 | 0.636153 | 193 | 1,726 | 5.466321 | 0.398964 | 0.045498 | 0.066351 | 0.104265 | 0.477725 | 0.455924 | 0.400948 | 0.400948 | 0.400948 | 0.350711 | 0 | 0.015094 | 0.232329 | 1,726 | 40 | 163 | 43.15 | 0.781132 | 0.039397 | 0 | 0.3125 | 1 | 0 | 0.087009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
49f45e903b240c04c0489fac65ede708075df463 | 1,458 | py | Python | apps/approval/api/serializers.py | emilps/onlineweb4 | 6f4aca2a4522698366ecdc6ab63c807ce5df2a96 | [
"MIT"
] | null | null | null | apps/approval/api/serializers.py | emilps/onlineweb4 | 6f4aca2a4522698366ecdc6ab63c807ce5df2a96 | [
"MIT"
] | null | null | null | apps/approval/api/serializers.py | emilps/onlineweb4 | 6f4aca2a4522698366ecdc6ab63c807ce5df2a96 | [
"MIT"
] | null | null | null | from django.core.exceptions import ValidationError as DjangoValidationError
from rest_framework import serializers
from apps.approval.models import CommitteeApplication, CommitteePriority
from apps.authentication.serializers import UserSerializer
class CommitteeSerializer(serializers.ModelSerializer):
group_name... | 36.45 | 96 | 0.742798 | 132 | 1,458 | 8.090909 | 0.469697 | 0.033708 | 0.026217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176955 | 1,458 | 39 | 97 | 37.384615 | 0.89 | 0 | 0 | 0.071429 | 0 | 0 | 0.085734 | 0.028807 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0.035714 | 0.535714 | 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 |
49f6f1f5b6e7113a385ba89e9bd8fb4c985968b5 | 421 | py | Python | examples/board_toolkit_simpletest.py | Neradoc/Adafruit_Board_Toolkit | c1602192f015924ce4ffd4e90dcd44769e565780 | [
"MIT",
"BSD-3-Clause",
"MIT-0",
"Unlicense"
] | 10 | 2021-03-16T18:05:53.000Z | 2022-03-20T20:40:38.000Z | examples/board_toolkit_simpletest.py | Neradoc/Adafruit_Board_Toolkit | c1602192f015924ce4ffd4e90dcd44769e565780 | [
"MIT",
"BSD-3-Clause",
"MIT-0",
"Unlicense"
] | 8 | 2021-03-17T18:32:54.000Z | 2021-12-31T19:58:01.000Z | examples/board_toolkit_simpletest.py | Neradoc/Adafruit_Board_Toolkit | c1602192f015924ce4ffd4e90dcd44769e565780 | [
"MIT",
"BSD-3-Clause",
"MIT-0",
"Unlicense"
] | 4 | 2021-04-21T13:48:18.000Z | 2022-03-13T15:07:01.000Z | # SPDX-FileCopyrightText: Copyright (c) 2021 Dan Halbert for Adafruit Industries
#
# SPDX-License-Identifier: Unlicense
import adafruit_board_toolkit.circuitpython_serial
comports = adafruit_board_toolkit.circuitpython_serial.repl_comports()
if not comports:
raise Exception("No CircuitPython boards found")
# Pri... | 32.384615 | 80 | 0.812352 | 55 | 421 | 6.090909 | 0.709091 | 0.077612 | 0.119403 | 0.197015 | 0.232836 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010811 | 0.12114 | 421 | 12 | 81 | 35.083333 | 0.894595 | 0.401425 | 0 | 0 | 0 | 0 | 0.117409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
49f8927dba9de24eccfdfa6bd46fde3e6e325f82 | 221 | py | Python | pipeline.py | sanidhya-singh/dagster-pipelines | 671c4869dca14f96902981e2e8c84df1319ca89e | [
"MIT"
] | null | null | null | pipeline.py | sanidhya-singh/dagster-pipelines | 671c4869dca14f96902981e2e8c84df1319ca89e | [
"MIT"
] | null | null | null | pipeline.py | sanidhya-singh/dagster-pipelines | 671c4869dca14f96902981e2e8c84df1319ca89e | [
"MIT"
] | null | null | null | from dagster import job, op
@op
def get_name():
return "dagster"
@op
def hello(name: str):
print(f"Hello, {name}!")
@job(description="Hello world Dagster pipeline")
def hello_dagster():
hello(get_name()) | 13.8125 | 48 | 0.669683 | 32 | 221 | 4.53125 | 0.5 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180995 | 221 | 16 | 49 | 13.8125 | 0.801105 | 0 | 0 | 0.2 | 0 | 0 | 0.220721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.1 | 0.5 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
49fd04fd3ec6534f06e8ff42c0869a4f70bf3dd5 | 1,484 | py | Python | meiduo_mall/apps/meiduo_admin/views/order.py | zzZaida/meiduo_backend | c4f94ea7f9c47a08d3e37fb0ac2c1ec1dcf2c18b | [
"MIT"
] | null | null | null | meiduo_mall/apps/meiduo_admin/views/order.py | zzZaida/meiduo_backend | c4f94ea7f9c47a08d3e37fb0ac2c1ec1dcf2c18b | [
"MIT"
] | null | null | null | meiduo_mall/apps/meiduo_admin/views/order.py | zzZaida/meiduo_backend | c4f94ea7f9c47a08d3e37fb0ac2c1ec1dcf2c18b | [
"MIT"
] | null | null | null | from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework.viewsets import ModelViewSet
from apps.meiduo_admin.serializers.order import OrderInfoSerializer
from apps.meiduo_admin.utils import PageNum
from apps.orders.models import OrderInfo
class OrderModelViewSet(M... | 26.035088 | 67 | 0.623989 | 168 | 1,484 | 5.392857 | 0.517857 | 0.03532 | 0.075055 | 0.041943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080429 | 0.245957 | 1,484 | 57 | 68 | 26.035088 | 0.729223 | 0.030323 | 0 | 0 | 0 | 0 | 0.041627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.28 | 0.04 | 0.64 | 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 |
49fd9dcc627b703550931ebd10aa32549f023644 | 29,587 | py | Python | QA/pycopia/remote/windows_server.py | kdart/pycopia3 | 8a7c820f096245411eabbb72345e4f30a35988b6 | [
"Apache-2.0"
] | 3 | 2018-11-26T15:00:20.000Z | 2022-01-28T23:17:58.000Z | QA/pycopia/remote/windows_server.py | kdart/pycopia3 | 8a7c820f096245411eabbb72345e4f30a35988b6 | [
"Apache-2.0"
] | null | null | null | QA/pycopia/remote/windows_server.py | kdart/pycopia3 | 8a7c820f096245411eabbb72345e4f30a35988b6 | [
"Apache-2.0"
] | 1 | 2018-11-26T15:00:21.000Z | 2018-11-26T15:00:21.000Z | #!/usr/bin/python3.4
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by app... | 31.475532 | 119 | 0.590935 | 3,610 | 29,587 | 4.76205 | 0.206094 | 0.011169 | 0.019778 | 0.022744 | 0.205747 | 0.151707 | 0.124367 | 0.112617 | 0.090862 | 0.076668 | 0 | 0.014281 | 0.304188 | 29,587 | 939 | 120 | 31.509052 | 0.820761 | 0.085781 | 0 | 0.287591 | 0 | 0 | 0.056853 | 0.001863 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016058 | 0.030657 | 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 |
b701550eed98d3100b7b0a2a4ed10c335a6dc06a | 2,587 | py | Python | src/models/transformer_encoder.py | tsumita/implicit_emotion | dae2d5a8162a2665b8e76812716068650feae710 | [
"MIT"
] | 6 | 2018-09-03T00:55:35.000Z | 2020-01-09T11:53:31.000Z | src/models/transformer_encoder.py | tsumita/implicit_emotion | dae2d5a8162a2665b8e76812716068650feae710 | [
"MIT"
] | null | null | null | src/models/transformer_encoder.py | tsumita/implicit_emotion | dae2d5a8162a2665b8e76812716068650feae710 | [
"MIT"
] | 2 | 2019-06-23T11:32:27.000Z | 2019-07-04T22:15:33.000Z | import copy
import torch.nn as nn
from .transformer import (Encoder,
EncoderLayer,
MultiHeadedAttention,
PositionwiseFeedforward,
PositionalEncoding)
class TransformerEncoder(nn.Module):
"""Transformer Encod... | 32.3375 | 81 | 0.609586 | 282 | 2,587 | 5.397163 | 0.368794 | 0.070959 | 0.052562 | 0.029566 | 0.103811 | 0.068331 | 0.068331 | 0 | 0 | 0 | 0 | 0.011179 | 0.308465 | 2,587 | 79 | 82 | 32.746835 | 0.839575 | 0.305373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101266 | 0 | 1 | 0.057143 | false | 0 | 0.085714 | 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 |
b706818aa45f72b58b9687e3a435833411cd0110 | 5,325 | py | Python | launchMinecraft.py | Timurinyo/tchrHlprStudent | 598f0e1321b11555d327393ab78723e1e286703e | [
"MIT"
] | null | null | null | launchMinecraft.py | Timurinyo/tchrHlprStudent | 598f0e1321b11555d327393ab78723e1e286703e | [
"MIT"
] | null | null | null | launchMinecraft.py | Timurinyo/tchrHlprStudent | 598f0e1321b11555d327393ab78723e1e286703e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#coding:utf-8
__author__ = 'CoderZh and Tymur'
import sys
from time import sleep
# Important for multithreading
sys.coinit_flags = 0 # pythoncom.COINIT_MULTITHREADED
import win32com
import win32com.client
import win32gui
import win32con
import pythoncom
#import keyboard
from p... | 28.475936 | 159 | 0.689202 | 658 | 5,325 | 5.431611 | 0.358663 | 0.030218 | 0.009793 | 0.007834 | 0.12451 | 0.079463 | 0.070509 | 0.051483 | 0.051483 | 0.051483 | 0 | 0.018554 | 0.210516 | 5,325 | 186 | 160 | 28.629032 | 0.831589 | 0.101033 | 0 | 0.244755 | 0 | 0.006993 | 0.204803 | 0.056114 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062937 | false | 0.125874 | 0.083916 | 0 | 0.195804 | 0.104895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b713985ca32368cb00dff148dea34d4486a5b5ad | 1,293 | py | Python | trello/searchs.py | fif911/trello3_little_bit_updated | baf0275c5a89b3bcf9c1544897cbe25fafbc53d0 | [
"BSD-2-Clause"
] | 16 | 2016-01-19T17:02:24.000Z | 2020-02-20T19:23:32.000Z | trello/searchs.py | fif911/trello3_little_bit_updated | baf0275c5a89b3bcf9c1544897cbe25fafbc53d0 | [
"BSD-2-Clause"
] | 3 | 2016-02-10T14:17:58.000Z | 2016-07-26T01:31:54.000Z | trello/searchs.py | fif911/trello3_little_bit_updated | baf0275c5a89b3bcf9c1544897cbe25fafbc53d0 | [
"BSD-2-Clause"
] | 7 | 2016-02-09T23:47:00.000Z | 2021-06-05T17:03:22.000Z | import json
import requests
class Searchs(object):
__module__ = 'trello'
def __init__(self, apikey, token=None):
self._apikey = apikey
self._token = token
def get(self, query, idOrganizations, idBoards=None, idCards=None, modelTypes=None, board_fields=None, boards_limit=None, ca... | 76.058824 | 649 | 0.784996 | 169 | 1,293 | 5.674556 | 0.284024 | 0.052138 | 0.031283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000874 | 0.115236 | 1,293 | 16 | 650 | 80.8125 | 0.837413 | 0 | 0 | 0 | 0 | 0 | 0.025842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b7187d387790af8d5795d75e9899699ce907f9df | 6,366 | py | Python | chrome/test/chromedriver/run_buildbot_steps.py | devasia1000/chromium | 919a8a666862fb866a6bb7aa7f3ae8c0442b4828 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-02-03T05:19:48.000Z | 2021-11-15T15:07:21.000Z | chrome/test/chromedriver/run_buildbot_steps.py | devasia1000/chromium | 919a8a666862fb866a6bb7aa7f3ae8c0442b4828 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/test/chromedriver/run_buildbot_steps.py | devasia1000/chromium | 919a8a666862fb866a6bb7aa7f3ae8c0442b4828 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Runs all the buildbot steps for ChromeDriver except for update/compile."""
import optparse
import os
import platform
import shu... | 29.887324 | 80 | 0.678291 | 826 | 6,366 | 5.041162 | 0.292978 | 0.027378 | 0.038425 | 0.020173 | 0.232949 | 0.169549 | 0.158501 | 0.105668 | 0.069645 | 0.049952 | 0 | 0.00922 | 0.182218 | 6,366 | 212 | 81 | 30.028302 | 0.790626 | 0.048382 | 0 | 0.203593 | 0 | 0 | 0.219749 | 0.029289 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011976 | 0.077844 | null | null | 0.083832 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.