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
4aa25a50f1578922cb1aeae04da9c26dcb289cd0
622
py
Python
meiduo_mall/meiduo_mall/utils/views.py
hhyluor/Code_Repository-
0b692bcd5b00312b5c9fd19d55b50c495d27de2b
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/utils/views.py
hhyluor/Code_Repository-
0b692bcd5b00312b5c9fd19d55b50c495d27de2b
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/utils/views.py
hhyluor/Code_Repository-
0b692bcd5b00312b5c9fd19d55b50c495d27de2b
[ "MIT" ]
1
2021-12-29T05:43:28.000Z
2021-12-29T05:43:28.000Z
from django.http import JsonResponse # 定义一个过滤的闭包: def my_decorator(func): def wrapper(request, *args, **kwargs): # 过滤是否登录: if request.user.is_authenticated: # 登录: return func(request, *args, **kwargs) else: # 没有登录: return JsonResponse({'code'...
23.923077
56
0.564309
61
622
5.672131
0.606557
0.115607
0.098266
0
0
0
0
0
0
0
0
0.007092
0.319936
622
25
57
24.88
0.810875
0.081994
0
0
0
0
0.035461
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
4aa51fa47268e7de9959f0a25e46e02d7d1dccff
1,618
py
Python
fastai/tabular/data.py
antorsae/fastai
9eeab551a68041b4c7064704160a636ca70c0d40
[ "Apache-2.0" ]
1
2020-09-02T18:03:37.000Z
2020-09-02T18:03:37.000Z
fastai/tabular/data.py
antorsae/fastai
9eeab551a68041b4c7064704160a636ca70c0d40
[ "Apache-2.0" ]
22
2021-01-07T23:35:00.000Z
2022-03-20T00:16:40.000Z
fastai/tabular/data.py
antorsae/fastai
9eeab551a68041b4c7064704160a636ca70c0d40
[ "Apache-2.0" ]
1
2020-09-02T09:23:13.000Z
2020-09-02T09:23:13.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/41_tabular.data.ipynb (unless otherwise specified). __all__ = ['TabularDataLoaders'] # Cell from ..torch_basics import * from ..data.all import * from .core import * # Cell class TabularDataLoaders(DataLoaders): "Basic wrapper around several `DataLoader`s with fact...
44.944444
107
0.706428
219
1,618
5.013699
0.378995
0.03643
0.021858
0.029144
0
0
0
0
0
0
0
0.001497
0.174289
1,618
36
108
44.944444
0.820359
0.171199
0
0.074074
1
0
0.133289
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.37037
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
4aa71a8c71fea9b2120ac366f3add16934d14dd2
805
py
Python
crwy/changetmpl.py
wuyue92tree/crwy
da19e3a7615990612e41d0d871345075150b88f6
[ "MIT" ]
15
2017-04-04T07:47:48.000Z
2021-08-29T12:08:48.000Z
crwy/changetmpl.py
wuyue92tree/crwy
da19e3a7615990612e41d0d871345075150b88f6
[ "MIT" ]
1
2016-08-24T09:17:30.000Z
2016-08-24T09:17:30.000Z
crwy/changetmpl.py
wuyue92tree/crwy
da19e3a7615990612e41d0d871345075150b88f6
[ "MIT" ]
1
2021-08-29T12:08:56.000Z
2021-08-29T12:08:56.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # author: wuyue92tree@163.com from string import Template try: import ConfigParser except ImportError: from configparser import ConfigParser def get_project_name(): conf = ConfigParser() conf.read('crwy.cfg', encoding='utf-8') project_name = conf.get...
24.393939
112
0.698137
111
805
4.873874
0.36036
0.203327
0.083179
0.048059
0.170055
0.081331
0.081331
0
0
0
0
0.012012
0.172671
805
32
113
25.15625
0.8003
0.086957
0
0.190476
0
0
0.053279
0
0
0
0
0
0
1
0.142857
false
0
0.190476
0
0.47619
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
4aaaa3815dde356f3c90f0e3dec86d532057e86d
1,528
py
Python
propeller/__init__.py
ColeFang/MOCO_ERNIE
e5acf52872b74d2f25bcef73f44122a6c594f524
[ "Apache-2.0" ]
3,712
2019-07-19T08:40:57.000Z
2022-03-31T08:52:43.000Z
competition/ogbg_molhiv/propeller/__init__.py
chupvl/PaddleHelix
6e082f89b8090c3c360593d40a08bffc884165dd
[ "Apache-2.0" ]
541
2019-07-21T08:57:11.000Z
2022-03-22T12:13:28.000Z
competition/ogbg_molhiv/propeller/__init__.py
chupvl/PaddleHelix
6e082f89b8090c3c360593d40a08bffc884165dd
[ "Apache-2.0" ]
857
2019-07-19T08:40:52.000Z
2022-03-30T03:23:27.000Z
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
31.833333
97
0.764398
211
1,528
5.379147
0.554502
0.052863
0.042291
0.028194
0.081057
0.081057
0.081057
0.081057
0.081057
0.081057
0
0.012195
0.141361
1,528
47
98
32.510638
0.852896
0.390052
0
0
0
0.074074
0.170678
0.122538
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4ab81d85657f08e77f6cb9c6825acdf50b8ee9fa
7,975
py
Python
ota/iris/iris.py
estherlin/Ocular-Torsion-Quantification
2e948b5ca97094b60d98e7bf3c07bb32fb4cbd09
[ "MIT" ]
null
null
null
ota/iris/iris.py
estherlin/Ocular-Torsion-Quantification
2e948b5ca97094b60d98e7bf3c07bb32fb4cbd09
[ "MIT" ]
null
null
null
ota/iris/iris.py
estherlin/Ocular-Torsion-Quantification
2e948b5ca97094b60d98e7bf3c07bb32fb4cbd09
[ "MIT" ]
null
null
null
import numpy as np import scipy as sp from scipy import ndimage import matplotlib.pyplot as plt from math import * from cv2 import remap # TODO instead of ret_cartesian use mode='polar' or cartesian # https://github.com/scipy/scipy/blob/v0.19.1/scipy/signal/signaltools.py#L111-L269 # https://github.com/uber/pyro/blob...
45.3125
182
0.64953
1,106
7,975
4.502712
0.208861
0.046386
0.025301
0.024096
0.288755
0.215462
0.163052
0.143775
0.109237
0.075502
0
0.013381
0.269091
7,975
175
183
45.571429
0.840968
0.371034
0
0.032609
0
0
0.009786
0
0
0
0
0.017143
0
1
0.043478
false
0
0.065217
0
0.184783
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
4ab96e9e2e9fcefc696d4263b09ce5da29afbc89
306
py
Python
tests/test_terminal.py
intellishore/dbt-erdiagram-generator
a8150cb192042ccf8c8c3fd2c60cefc71884e95d
[ "MIT" ]
18
2021-12-20T17:14:51.000Z
2022-01-25T13:27:21.000Z
tests/test_terminal.py
intellishore/dbt-erdiagram-generator
a8150cb192042ccf8c8c3fd2c60cefc71884e95d
[ "MIT" ]
null
null
null
tests/test_terminal.py
intellishore/dbt-erdiagram-generator
a8150cb192042ccf8c8c3fd2c60cefc71884e95d
[ "MIT" ]
null
null
null
from dbterd import cli from click.testing import CliRunner import filecmp def test_cli(): runner = CliRunner() result = runner.invoke(cli, ["schema.yml", "catalog.json", "test.dbml", "testproject", "False"]) assert result.exit_code == 0 assert filecmp.cmp('example.dbml', 'test.dbml')
30.6
100
0.689542
40
306
5.225
0.65
0.076555
0
0
0
0
0
0
0
0
0
0.003922
0.166667
306
10
101
30.6
0.815686
0
0
0
0
0
0.221498
0
0
0
0
0
0.25
1
0.125
false
0
0.375
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4abf7db0f3deea4f2fd2df0d6e1c366746d72602
10,214
py
Python
sdk/python/pulumi_aws/glue/partition.py
Otanikotani/pulumi-aws
00e2b352da42c5b1b0ec7b4760eec5ad2b23ff21
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/glue/partition.py
Otanikotani/pulumi-aws
00e2b352da42c5b1b0ec7b4760eec5ad2b23ff21
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/glue/partition.py
Otanikotani/pulumi-aws
00e2b352da42c5b1b0ec7b4760eec5ad2b23ff21
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
51.847716
398
0.677012
1,233
10,214
5.388483
0.152474
0.062914
0.054786
0.03522
0.642234
0.584889
0.551776
0.535671
0.500452
0.490819
0
0.000127
0.230272
10,214
196
399
52.112245
0.84495
0.362444
0
0.188525
1
0
0.163239
0.019915
0
0
0
0
0
1
0.106557
false
0.008197
0.057377
0.02459
0.270492
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
4ac6815020703b7104156db262c7b68a3831a09b
15,540
py
Python
varats/varats/data/reports/commit_report.py
ajrox090/VaRA-Tool-Suite
1550d36a4049e0615afb0bacfb96b1d506a29c98
[ "BSD-2-Clause" ]
null
null
null
varats/varats/data/reports/commit_report.py
ajrox090/VaRA-Tool-Suite
1550d36a4049e0615afb0bacfb96b1d506a29c98
[ "BSD-2-Clause" ]
null
null
null
varats/varats/data/reports/commit_report.py
ajrox090/VaRA-Tool-Suite
1550d36a4049e0615afb0bacfb96b1d506a29c98
[ "BSD-2-Clause" ]
null
null
null
"""Data wrappers for commit reports generated by VaRA.""" import logging import typing as tp from pathlib import Path import pandas as pd import yaml from varats.base.version_header import VersionHeader from varats.mapping.commit_map import CommitMap from varats.report.report import BaseReport, FileStatusExtension, R...
32.240664
80
0.606757
2,002
15,540
4.46953
0.129371
0.030845
0.017099
0.014752
0.496759
0.45038
0.436969
0.381426
0.3365
0.325101
0
0.005932
0.27323
15,540
481
81
32.307692
0.786347
0.190347
0
0.389655
1
0
0.036513
0.006197
0
0
0
0
0
1
0.137931
false
0
0.031034
0.048276
0.310345
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
434aa1dae700c0a6f8e9029a618a97a26e86d7fe
1,593
py
Python
Common/Commons.py
quanyang/Taint-em-All
2ee5d26fec2cd11c10e8a3826a6e2bc94ec57c14
[ "Apache-2.0" ]
7
2019-06-11T10:40:09.000Z
2022-02-18T09:23:03.000Z
Common/Commons.py
quanyang/Taint-em-All
2ee5d26fec2cd11c10e8a3826a6e2bc94ec57c14
[ "Apache-2.0" ]
1
2020-03-10T02:56:41.000Z
2021-10-01T20:45:56.000Z
Common/Commons.py
quanyang/Taint-em-All
2ee5d26fec2cd11c10e8a3826a6e2bc94ec57c14
[ "Apache-2.0" ]
4
2019-06-03T16:50:49.000Z
2020-07-24T11:37:06.000Z
import os, re,string,binascii import importlib from ast import ClassDef, parse, ImportFrom import inspect def getAnalyzerClassName(module): # Get the module p = parse(inspect.getsource(module)) className = "" for node in p.body: if isinstance(node, ClassDef): className = node.name ...
29.5
175
0.627746
182
1,593
5.494505
0.423077
0.048
0.039
0.024
0.052
0.052
0.052
0.052
0
0
0
0.004967
0.241682
1,593
54
175
29.5
0.822848
0.027621
0
0.139535
0
0
0.033635
0
0
0
0
0
0
0
null
null
0
0.093023
null
null
0.023256
0
0
0
null
0
0
0
0
0
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
434d1083c23e4564a1aa8d1a4324ecf4ba6852a3
1,067
py
Python
apps/amcm/migrations/0010_recibo.py
agsneutron/asociacion_mexicana_cuarto_milla
4657e1f494eb572e9b40b2804e012cdfd6193c51
[ "MIT" ]
null
null
null
apps/amcm/migrations/0010_recibo.py
agsneutron/asociacion_mexicana_cuarto_milla
4657e1f494eb572e9b40b2804e012cdfd6193c51
[ "MIT" ]
null
null
null
apps/amcm/migrations/0010_recibo.py
agsneutron/asociacion_mexicana_cuarto_milla
4657e1f494eb572e9b40b2804e012cdfd6193c51
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-10-27 21:57 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('amcm', '0009_auto_20211027_1558'), ] operations = [ migrations.CreateModel( name='Recibo', ...
36.793103
126
0.603561
113
1,067
5.539823
0.566372
0.123003
0.071885
0.070288
0
0
0
0
0
0
0
0.043147
0.261481
1,067
28
127
38.107143
0.751269
0.042174
0
0
1
0
0.180392
0.022549
0
0
0
0
0
1
0
false
0
0.090909
0
0.227273
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
434deba8dd4c12be45e2f28b668b1332a7b4bbc0
2,881
py
Python
practico_04/ejercicio_02.py
pablobots/frro-python-2021-00
1a3d6d80462e212aa724e6581baa68411b5d2240
[ "MIT" ]
null
null
null
practico_04/ejercicio_02.py
pablobots/frro-python-2021-00
1a3d6d80462e212aa724e6581baa68411b5d2240
[ "MIT" ]
14
2021-02-18T00:17:02.000Z
2021-03-22T12:53:01.000Z
practico_04/ejercicio_02.py
pablobots/frro-python-2021-00
1a3d6d80462e212aa724e6581baa68411b5d2240
[ "MIT" ]
1
2021-02-16T16:23:20.000Z
2021-02-16T16:23:20.000Z
# Implementar los metodos de la capa de datos de socios. from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from practico_05.ejercicio_01 import Base, Socio class DatosSocio(object): def __init__(self): engine = create_engine('sqlite:///socios.db') Base.metadata.bind =...
25.27193
82
0.608122
354
2,881
4.813559
0.271186
0.042254
0.046948
0.039906
0.367371
0.339202
0.339202
0.303991
0.214789
0.214789
0
0.035802
0.29226
2,881
113
83
25.495575
0.799902
0.259979
0
0.166667
0
0
0.049163
0
0
0
0
0.035398
0.208333
1
0.1875
false
0
0.0625
0
0.416667
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
434f384a5b4e55cdf105a067a9910d4010724ac1
1,233
py
Python
market/market/apps/core/migrations/0001_initial.py
BreLightYear/Hookah
fc485a1f8e06705e515c6ce4deb904616624f98b
[ "MIT" ]
null
null
null
market/market/apps/core/migrations/0001_initial.py
BreLightYear/Hookah
fc485a1f8e06705e515c6ce4deb904616624f98b
[ "MIT" ]
null
null
null
market/market/apps/core/migrations/0001_initial.py
BreLightYear/Hookah
fc485a1f8e06705e515c6ce4deb904616624f98b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2019-08-07 23:49 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_extensions.db.fields class Migration(migrations.Migration): initial = True ...
36.264706
145
0.630981
146
1,233
5.191781
0.541096
0.031662
0.036939
0.058047
0
0
0
0
0
0
0
0.026455
0.233577
1,233
33
146
37.363636
0.775661
0.05515
0
0
1
0
0.065404
0
0
0
0
0
0
1
0
false
0
0.2
0
0.36
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
435050184d561c8303166dbd910decee44f1d4c8
997
py
Python
apps/authentication/urls.py
arghyam/PDA-WEB
df6194e7ab02ad858b33c939855866157818a8f6
[ "MIT" ]
null
null
null
apps/authentication/urls.py
arghyam/PDA-WEB
df6194e7ab02ad858b33c939855866157818a8f6
[ "MIT" ]
8
2020-06-06T01:56:10.000Z
2022-01-13T02:45:09.000Z
apps/authentication/urls.py
arghyam/PDA-WEB
df6194e7ab02ad858b33c939855866157818a8f6
[ "MIT" ]
5
2020-06-10T04:52:19.000Z
2022-02-02T04:57:23.000Z
from django.urls import path from django.views.generic import RedirectView from . import views urlpatterns = [ path('login/', views.login, name='login'), path('signup-request-otp/', views.signup_request_otp, name='signup-request-otp'), path('signup-create-password/', views.signup_create_password, name='si...
49.85
97
0.719157
128
997
5.484375
0.273438
0.055556
0.068376
0
0
0
0
0
0
0
0
0
0.102307
997
19
98
52.473684
0.784358
0
0
0
0
0
0.318957
0.045135
0
0
0
0
0
1
0
false
0.176471
0.176471
0
0.176471
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
43557c7a799dac9198a2eb63ef4aed0bbde67b9d
6,037
py
Python
source/tests/py_tests/order_independent_name_resolving_test.py
Panzerschrek/U-00DC-Sprache
eb677a66d178985433a62eb6b8a50ce2cdb14b1a
[ "BSD-3-Clause" ]
45
2016-06-21T22:28:43.000Z
2022-03-26T12:21:46.000Z
source/tests/py_tests/order_independent_name_resolving_test.py
Panzerschrek/U-00DC-Sprache
eb677a66d178985433a62eb6b8a50ce2cdb14b1a
[ "BSD-3-Clause" ]
6
2020-07-12T18:00:10.000Z
2021-11-30T11:20:14.000Z
source/tests/py_tests/order_independent_name_resolving_test.py
Panzerschrek/U-00DC-Sprache
eb677a66d178985433a62eb6b8a50ce2cdb14b1a
[ "BSD-3-Clause" ]
5
2019-09-03T17:20:34.000Z
2022-01-30T15:10:21.000Z
from py_tests_common import * def OrderIndependentFunctions_Test0(): c_program_text= """ fn Baz() : i32 { return 81; } fn Foo() : i32 { return Baz() * Bar(); // Functions "Bar" and "Baz" visible here and can be called. } fn Bar() : i32 { return 52414; } """ tests_lib.build_program( c_program_text ) ...
25.472574
110
0.68925
838
6,037
4.658711
0.139618
0.077869
0.116803
0.097336
0.70543
0.678791
0.650615
0.621414
0.608607
0.608607
0
0.043531
0.174259
6,037
236
111
25.580508
0.739619
0
0
0.530612
0
0.010204
0.324665
0
0
0
0
0
0.168367
1
0.096939
false
0
0.005102
0
0.127551
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
43572422014b7bd416741bec4aea8d5f3bc76ffd
970
py
Python
setup.py
antsfamily/improc
ceab171b0e61187fa2ced7c58540d5ffde79ebac
[ "MIT" ]
2
2019-09-29T08:43:31.000Z
2022-01-12T09:46:18.000Z
setup.py
antsfamily/improc
ceab171b0e61187fa2ced7c58540d5ffde79ebac
[ "MIT" ]
null
null
null
setup.py
antsfamily/improc
ceab171b0e61187fa2ced7c58540d5ffde79ebac
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2015-2017, Zhi Liu. All rights reserved. from setuptools import setup from setuptools import find_packages setup(name='improc', version='1.0.0', description="A simple image process tool, \ especially for block or patch operation", author='Z...
25.526316
61
0.508247
95
970
5.126316
0.778947
0.024641
0.082136
0
0
0
0
0
0
0
0
0.026941
0.349485
970
37
62
26.216216
0.744849
0.078351
0
0
0
0
0.248879
0.023543
0
0
0
0
0
1
0
true
0
0.0625
0
0.0625
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
435da69827e4489c574e838f8ac40ebdddeb9363
1,867
py
Python
Codes/3d_profiles.py
bikram-sahu/Photometry-Toolkit
3b240ff73736f8bf1400a47af19ecc5e2ca671ae
[ "MIT" ]
null
null
null
Codes/3d_profiles.py
bikram-sahu/Photometry-Toolkit
3b240ff73736f8bf1400a47af19ecc5e2ca671ae
[ "MIT" ]
null
null
null
Codes/3d_profiles.py
bikram-sahu/Photometry-Toolkit
3b240ff73736f8bf1400a47af19ecc5e2ca671ae
[ "MIT" ]
null
null
null
#Author(s): Bikram Keshari Sahu (15051) and Parth Nayak (15118) #Code under the project of the course PHY312 Numerical Methods and Programming import numpy as np from math import * import matplotlib.pylab as plt import pyfits as pf from mpl_toolkits import mplot3d from gaussfit import * from Analysis import * def pl...
31.644068
86
0.557043
298
1,867
3.332215
0.419463
0.012085
0.022155
0.024169
0.030211
0.030211
0
0
0
0
0
0.036952
0.304231
1,867
58
87
32.189655
0.727483
0.099089
0
0
0
0
0.087552
0.020846
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.081633
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
435e3a2c9ed85b08395120599229f4ae92a2f591
1,072
py
Python
Attendance/serializers.py
MadhuraShanbhag/DRF-Attendance-Web
1a92e7060e0dff5650e14d404c7235e8a3724ce6
[ "MIT" ]
null
null
null
Attendance/serializers.py
MadhuraShanbhag/DRF-Attendance-Web
1a92e7060e0dff5650e14d404c7235e8a3724ce6
[ "MIT" ]
null
null
null
Attendance/serializers.py
MadhuraShanbhag/DRF-Attendance-Web
1a92e7060e0dff5650e14d404c7235e8a3724ce6
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Teacher, Student, Lecture, Div, Subject class TeacherSerializer(serializers.ModelSerializer): name = serializers.CharField(source='getfullname') class Meta: model = Teacher fields = ('name', 'specialization', 'teacherID', 'su...
27.487179
72
0.653918
91
1,072
7.648352
0.395604
0.186782
0.100575
0.117816
0.347701
0.232759
0.232759
0.232759
0.232759
0.232759
0
0
0.23041
1,072
38
73
28.210526
0.843636
0
0
0.28
0
0
0.154739
0
0
0
0
0
0
1
0
false
0
0.08
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
435ebb17a946f6fcb055b1bdbcf18467fe461b1a
213
py
Python
cap9/ex3/index1.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
cap9/ex3/index1.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
cap9/ex3/index1.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
with open('multiplos4.txt', 'w') as multiplos: pares = open('pares.txt') for l in pares.readlines(): num = l.replace('\n', '') if int(num) % 4 == 0: multiplos.write(f'{num}\n')
30.428571
46
0.521127
30
213
3.7
0.7
0
0
0
0
0
0
0
0
0
0
0.019481
0.276995
213
6
47
35.5
0.701299
0
0
0
0
0
0.15493
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4360b6ede21b0caac4f54d975ca23c81350f5cb9
3,649
py
Python
callbacks/TensorBoard.py
VictorAtPL/Pascal-VOC12_Class-segmentation_Tensorflow-2.0.0
ec79e4347874550601f5c9f75b42f099d10b5a95
[ "MIT" ]
1
2020-11-07T07:12:15.000Z
2020-11-07T07:12:15.000Z
callbacks/TensorBoard.py
VictorAtPL/Pascal-VOC12_Class-segmentation_Tensorflow-2.0.0
ec79e4347874550601f5c9f75b42f099d10b5a95
[ "MIT" ]
1
2020-09-25T19:51:13.000Z
2020-09-25T19:51:13.000Z
callbacks/TensorBoard.py
VictorAtPL/Pascal-VOC12_Class-segmentation_Tensorflow-2.0.0
ec79e4347874550601f5c9f75b42f099d10b5a95
[ "MIT" ]
1
2020-11-07T08:57:46.000Z
2020-11-07T08:57:46.000Z
import sys import tensorflow as tf from tensorflow.python.ops import summary_ops_v2 from tensorflow.python.eager import context import numpy as np from VOClabelcolormap import color_map from common import blend_from_3d_one_hots class MyTensorBoardCallback(tf.keras.callbacks.TensorBoard): def __init__(self, args...
38.410526
136
0.635791
453
3,649
4.779249
0.322296
0.040647
0.036952
0.048499
0.241109
0.192148
0.124711
0.124711
0.124711
0.124711
0
0.006313
0.26199
3,649
94
137
38.819149
0.797623
0.010962
0
0.119403
0
0
0.072914
0.032991
0
0
0
0.010638
0
1
0.074627
false
0
0.104478
0
0.223881
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
4361fd16965d8893ee66232087a57ecd62897358
758
py
Python
examples/celestrak_source.py
samtx/pass-predictor
6577f75cd7d64bd3c12a9512880d4b29c2682b4c
[ "MIT" ]
null
null
null
examples/celestrak_source.py
samtx/pass-predictor
6577f75cd7d64bd3c12a9512880d4b29c2682b4c
[ "MIT" ]
null
null
null
examples/celestrak_source.py
samtx/pass-predictor
6577f75cd7d64bd3c12a9512880d4b29c2682b4c
[ "MIT" ]
null
null
null
import datetime from passpredict import CelestrakTLESource, Location, SGP4Propagator, Observer try: from zoneinfo import ZoneInfo except ImportError: from backports.zoneinfo import ZoneInfo def celestrak_source(): location = Location('Austin, TX', 30.2711, -97.7437, 0) date_start = datetime.datetime...
31.583333
78
0.748021
89
758
6.157303
0.561798
0.04927
0.080292
0
0
0
0
0
0
0
0
0.042386
0.159631
758
24
79
31.583333
0.817896
0.056728
0
0
0
0
0.046218
0
0
0
0
0
0
1
0.055556
false
0.166667
0.277778
0
0.333333
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
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
436350439dd912e3e7cc1b19f5ed2486d58c6e74
538
py
Python
part2/code/word_count/reducer.py
siddheswarc/EDA-using-MapReduce
2eab2576fa86851516adbaf0ce6cc9dd22d11278
[ "MIT" ]
1
2021-03-11T22:53:13.000Z
2021-03-11T22:53:13.000Z
part3/Twitter/Code/word_count/reducer.py
siddheswarc/EDA-using-MapReduce
2eab2576fa86851516adbaf0ce6cc9dd22d11278
[ "MIT" ]
null
null
null
part3/Twitter/Code/word_count/reducer.py
siddheswarc/EDA-using-MapReduce
2eab2576fa86851516adbaf0ce6cc9dd22d11278
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys # maps words to their counts word2count = {} # input comes from STDIN for line in sys.stdin: line = line.strip() word, count = line.split('\t', 1) # convert count (currently a string) to int try: count = int(count) except ValueError: ...
22.416667
50
0.594796
69
538
4.637681
0.57971
0.175
0.1125
0
0
0
0
0
0
0
0
0.01847
0.295539
538
23
51
23.391304
0.825858
0.208178
0
0.133333
0
0
0.02005
0
0
0
0
0
0
0
null
null
0
0.066667
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
4364d43e5dfd0c77b2a421304db08d877d8fe10f
2,304
py
Python
rats/luxnet.py
Rafiot/viper-modules
812642effecf8ae64bce76fa0f72116e0c2c81cd
[ "BSD-3-Clause" ]
5
2019-12-20T09:42:41.000Z
2021-04-30T07:05:00.000Z
rats/luxnet.py
SubSpaceManeuvers/viper-modules
c8f19c6d4e0e976e2ad8730e0862c2250e3acdd5
[ "BSD-3-Clause" ]
7
2019-11-25T13:13:15.000Z
2020-09-09T09:04:46.000Z
rats/luxnet.py
SubSpaceManeuvers/viper-modules
c8f19c6d4e0e976e2ad8730e0862c2250e3acdd5
[ "BSD-3-Clause" ]
10
2019-11-20T04:57:51.000Z
2021-01-21T18:51:47.000Z
# -*- coding: utf-8 -*- # Originally written by Kevin Breen (@KevTheHermit): # https://github.com/kevthehermit/RATDecoders/blob/master/Albertino.py import string from struct import unpack def calc_length(byte_str): return unpack(">H", byte_str)[0] def string_print(line): return [x for x in line if x in str...
41.142857
884
0.674479
409
2,304
3.709046
0.278729
0.031641
0.047462
0.023731
0.132498
0.055372
0.055372
0
0
0
0
0.212526
0.154514
2,304
55
885
41.890909
0.566222
0.063368
0
0
0
0.051282
0.404552
0.393869
0
0
0
0
0
1
0.153846
false
0
0.051282
0.051282
0.358974
0.051282
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4364e27f6f470fd3c1a070bd96901f58e8ea890f
482
py
Python
tests/test_same_results.py
euhoro/tagadoo
aa8def99118b1b75e3bd4f169e49ca46a188348e
[ "MIT" ]
null
null
null
tests/test_same_results.py
euhoro/tagadoo
aa8def99118b1b75e3bd4f169e49ca46a188348e
[ "MIT" ]
null
null
null
tests/test_same_results.py
euhoro/tagadoo
aa8def99118b1b75e3bd4f169e49ca46a188348e
[ "MIT" ]
null
null
null
import json from starlette.testclient import TestClient from main import app def test_results_are_the_same(): client = TestClient(app) result_mongo = json.loads(client.get("/records/1").content.decode('utf-8')) result_python = json.loads(client.get("/records_py/1").content.decode('utf-8')) shared_i...
32.133333
123
0.736515
75
482
4.533333
0.466667
0.161765
0.088235
0.105882
0.252941
0
0
0
0
0
0
0.009615
0.136929
482
14
124
34.428571
0.807692
0
0
0
0
0
0.068465
0
0
0
0
0
0.111111
1
0.111111
false
0
0.333333
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
43679816b6526fb750bb9a9a15b3ee46aef25f5a
873
py
Python
project/migrations/0029_auto_20180619_1942.py
mmesiti/cogs3
c48cd48629570f418b93aec73de49bc2fb59edc2
[ "MIT" ]
1
2020-03-28T23:55:02.000Z
2020-03-28T23:55:02.000Z
project/migrations/0029_auto_20180619_1942.py
mmesiti/cogs3
c48cd48629570f418b93aec73de49bc2fb59edc2
[ "MIT" ]
60
2018-04-16T13:40:23.000Z
2020-06-05T18:02:01.000Z
project/migrations/0029_auto_20180619_1942.py
mmesiti/cogs3
c48cd48629570f418b93aec73de49bc2fb59edc2
[ "MIT" ]
10
2018-03-14T22:25:50.000Z
2020-01-09T21:32:22.000Z
# Generated by Django 2.0.2 on 2018-06-19 19:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('project', '0028_project_gid_number'), ] operations = [ migrations.AddField( model_name='project', name='previous_sta...
36.375
213
0.603666
90
873
5.766667
0.522222
0.034682
0.061657
0.077071
0.493256
0.493256
0.493256
0.493256
0.493256
0.493256
0
0.048889
0.226804
873
23
214
37.956522
0.72
0.051546
0
0.235294
1
0
0.246973
0.027845
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
436c2536dd0d5adcad87e6d5cd28b13376c5ec86
240
py
Python
03 - Interactive applications, buttons and input fields/events.py
PableraShow/python-exercises
e1648fd42f3009ec6fb1e2096852b6d399e91d5b
[ "MIT" ]
8
2018-10-01T17:35:57.000Z
2022-02-01T08:12:12.000Z
03 - Interactive applications, buttons and input fields/events.py
PableraShow/python-exercises
e1648fd42f3009ec6fb1e2096852b6d399e91d5b
[ "MIT" ]
null
null
null
03 - Interactive applications, buttons and input fields/events.py
PableraShow/python-exercises
e1648fd42f3009ec6fb1e2096852b6d399e91d5b
[ "MIT" ]
6
2018-07-22T19:15:21.000Z
2022-02-05T07:54:58.000Z
# Example of a simple event-driven program # CodeSkulptor GUI module import simplegui # Event handler def tick(): print "tick!" # Register handler timer = simplegui.create_timer(1000, tick) # Start timer timer.start()
16
43
0.695833
30
240
5.533333
0.7
0
0
0
0
0
0
0
0
0
0
0.02139
0.220833
240
14
44
17.142857
0.86631
0.445833
0
0
0
0
0.044248
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
436d0cc232fa58ef1e992f596bd7d8f1932083a7
1,349
py
Python
src/env/cell.py
stdevAntiD2ta/Kindergarden
095922439e0f524bda7a2dfcc4b0f412283c9117
[ "MIT" ]
null
null
null
src/env/cell.py
stdevAntiD2ta/Kindergarden
095922439e0f524bda7a2dfcc4b0f412283c9117
[ "MIT" ]
null
null
null
src/env/cell.py
stdevAntiD2ta/Kindergarden
095922439e0f524bda7a2dfcc4b0f412283c9117
[ "MIT" ]
null
null
null
from ..shared import BABY, DIRT, EMPTY, CORRAL, ROBOT class Cell: def __init__(self, value=EMPTY): self.value = value self.dirty = False self.isFixed = False def update(self, value, check=[], old=None): for v in check: if v in self.value: ret...
29.977778
78
0.48851
157
1,349
4.11465
0.242038
0.208978
0.06192
0.055728
0
0
0
0
0
0
0
0.001238
0.401038
1,349
45
78
29.977778
0.798267
0
0
0.153846
0
0
0.05037
0
0
0
0
0
0
1
0.102564
false
0
0.025641
0.025641
0.25641
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
436e8ac45155522f43b0131cdd06271b0b2112b7
7,495
py
Python
gnocchi/incoming/__init__.py
lamby/gnocchi
87928a7c92d46b31bf0e8333064a4d0b83e6131b
[ "Apache-2.0" ]
null
null
null
gnocchi/incoming/__init__.py
lamby/gnocchi
87928a7c92d46b31bf0e8333064a4d0b83e6131b
[ "Apache-2.0" ]
null
null
null
gnocchi/incoming/__init__.py
lamby/gnocchi
87928a7c92d46b31bf0e8333064a4d0b83e6131b
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Copyright © 2017-2018 Red Hat, Inc. # Copyright © 2014-2015 eNovance # # 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/LICE...
29.98
78
0.654036
891
7,495
5.280584
0.274972
0.022104
0.072264
0.068438
0.134113
0.074389
0.059936
0
0
0
0
0.003974
0.261374
7,495
249
79
30.100402
0.845556
0.244296
0
0.191781
0
0
0.05753
0.004397
0
0
0
0
0
1
0.232877
false
0.020548
0.061644
0.082192
0.486301
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
4371bcec94c1a8a15ee1e233f58cadc11523a620
558
py
Python
jira_config/show.py
gcarrarom/fancy-jira
c8e9d4dea328ffe86da6de54f67da0e2bde996f5
[ "MIT" ]
3
2021-03-31T21:20:49.000Z
2021-11-13T11:14:38.000Z
jira_config/show.py
gcarrarom/fancy-jira
c8e9d4dea328ffe86da6de54f67da0e2bde996f5
[ "MIT" ]
null
null
null
jira_config/show.py
gcarrarom/fancy-jira
c8e9d4dea328ffe86da6de54f67da0e2bde996f5
[ "MIT" ]
null
null
null
import click import rich from jiractl_shared_functions import get_config @click.command(name="show") @click.argument('key', required=False) @click.pass_context def show_config(ctx, key): ''' Shows the current configuration file for JIRA communication and default values Args: key (str): the key to ...
26.571429
82
0.681004
67
558
5.58209
0.61194
0.048128
0
0
0
0
0
0
0
0
0
0
0.198925
558
21
83
26.571429
0.836689
0.207885
0
0
0
0
0.071599
0
0
0
0
0
0
1
0.071429
false
0.071429
0.214286
0
0.285714
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4375086fcffb61591bbb8b361204a0e6c5b02972
1,558
py
Python
scripts/fru_gen.py
ivyyliu/phosphor-host-ipmid
e1160cb2fafd46b6fb955fc432d1cf5e941b3e2d
[ "Apache-2.0" ]
26
2017-04-04T03:49:16.000Z
2022-02-25T07:51:19.000Z
scripts/fru_gen.py
ivyyliu/phosphor-host-ipmid
e1160cb2fafd46b6fb955fc432d1cf5e941b3e2d
[ "Apache-2.0" ]
116
2015-10-01T09:21:24.000Z
2021-12-27T03:05:29.000Z
scripts/fru_gen.py
ivyyliu/phosphor-host-ipmid
e1160cb2fafd46b6fb955fc432d1cf5e941b3e2d
[ "Apache-2.0" ]
70
2015-09-30T11:08:54.000Z
2022-03-24T21:38:51.000Z
#!/usr/bin/env python3 import os import sys import yaml import argparse from mako.template import Template def generate_cpp(inventory_yaml, output_dir): with open(inventory_yaml, 'r') as f: ifile = yaml.safe_load(f) if not isinstance(ifile, dict): ifile = {} # Render the mako...
25.966667
74
0.621309
192
1,558
4.859375
0.447917
0.111468
0.054662
0
0
0
0
0
0
0
0
0.000858
0.251605
1,558
59
75
26.40678
0.799314
0.029525
0
0.073171
1
0
0.170199
0
0
0
0
0
0
1
0.04878
false
0
0.121951
0
0.170732
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
437896987bb0666e94fd99b7368f5016b85a47d2
1,132
py
Python
setup.py
rnowling/aranyani
28980fef23dd21aa1d52ddb1b822c831608b2892
[ "Apache-2.0" ]
null
null
null
setup.py
rnowling/aranyani
28980fef23dd21aa1d52ddb1b822c831608b2892
[ "Apache-2.0" ]
null
null
null
setup.py
rnowling/aranyani
28980fef23dd21aa1d52ddb1b822c831608b2892
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 Ronald J. Nowling 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, softw...
36.516129
124
0.70318
161
1,132
4.881988
0.652174
0.076336
0.034351
0.053435
0.05598
0
0
0
0
0
0
0.024758
0.179329
1,132
30
125
37.733333
0.821313
0.492049
0
0
0
0
0.426808
0.040564
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
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
437de44cd97f506bae70bd09eece8dded948486b
5,734
py
Python
JavaScripts/Arrays/SpectralUnmixing.py
mllzl/earthengine-py-notebooks
cade6a81dd4dbbfb1b9b37aaf6955de42226cfc5
[ "MIT" ]
1
2020-03-26T04:21:15.000Z
2020-03-26T04:21:15.000Z
JavaScripts/Arrays/SpectralUnmixing.py
mllzl/earthengine-py-notebooks
cade6a81dd4dbbfb1b9b37aaf6955de42226cfc5
[ "MIT" ]
null
null
null
JavaScripts/Arrays/SpectralUnmixing.py
mllzl/earthengine-py-notebooks
cade6a81dd4dbbfb1b9b37aaf6955de42226cfc5
[ "MIT" ]
null
null
null
# %% """ <table class="ee-notebook-buttons" align="left"> <td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/JavaScripts/Arrays/SpectralUnmixing.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td> <td><a ...
50.298246
1,021
0.744681
823
5,734
5.171324
0.417983
0.023261
0.029605
0.028195
0.172697
0.155075
0.105028
0.091635
0.06344
0.06344
0
0.028968
0.121032
5,734
114
1,022
50.298246
0.815476
0.393268
0
0.175
0
0
0.152643
0
0
0
0
0
0
1
0
false
0
0.175
0
0.175
0.025
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
43877784829d07ef1ff44fc90cd15975e1521391
207
py
Python
arc101_a.py
hythof/atc
12cb94ebe693e1f469ce0d982bc2924b586552cd
[ "CC0-1.0" ]
null
null
null
arc101_a.py
hythof/atc
12cb94ebe693e1f469ce0d982bc2924b586552cd
[ "CC0-1.0" ]
null
null
null
arc101_a.py
hythof/atc
12cb94ebe693e1f469ce0d982bc2924b586552cd
[ "CC0-1.0" ]
null
null
null
n,k,*x=map(int,open(0).read().split()) def distance(l,r): return min( abs(l)+abs(r-l), abs(r)+abs(r-l)) a=[] for i in range(n-k+1): a.append(distance(x[i],x[i+k-1])) print(min(a))
15.923077
38
0.521739
45
207
2.4
0.533333
0.111111
0.092593
0
0
0
0
0
0
0
0
0.018072
0.198068
207
12
39
17.25
0.63253
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0.111111
0.222222
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
438a13ed997ca37f1d400fc8bc36335476eaa515
2,540
py
Python
neutron_lbaas/opts.py
kayrus/neutron-lbaas
d582fc52c725584e83b01e33f617f11d49a165a8
[ "Apache-2.0" ]
1
2017-11-13T13:24:12.000Z
2017-11-13T13:24:12.000Z
neutron_lbaas/opts.py
kayrus/neutron-lbaas
d582fc52c725584e83b01e33f617f11d49a165a8
[ "Apache-2.0" ]
2
2018-10-30T11:37:42.000Z
2020-09-01T12:08:36.000Z
neutron_lbaas/opts.py
kayrus/neutron-lbaas
d582fc52c725584e83b01e33f617f11d49a165a8
[ "Apache-2.0" ]
5
2018-09-21T07:56:14.000Z
2020-10-13T09:52:15.000Z
# 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 u...
33.866667
78
0.709843
303
2,540
5.726073
0.333333
0.138329
0.093372
0.05072
0.468588
0.325072
0.217867
0.102594
0
0
0
0.005958
0.207087
2,540
74
79
34.324324
0.855511
0.208661
0
0.222222
0
0
0.05308
0
0
0
0
0
0
1
0.055556
true
0
0.222222
0.055556
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
438c3573142b0c3705981c82abfe781f8c586b72
13,763
py
Python
W3A1/public_tests.py
fabiogaiera/neural-networks-deep-learning
56177cda91c5d11ea18847f441b69e1634ddc381
[ "MIT" ]
null
null
null
W3A1/public_tests.py
fabiogaiera/neural-networks-deep-learning
56177cda91c5d11ea18847f441b69e1634ddc381
[ "MIT" ]
null
null
null
W3A1/public_tests.py
fabiogaiera/neural-networks-deep-learning
56177cda91c5d11ea18847f441b69e1634ddc381
[ "MIT" ]
null
null
null
import numpy as np import copy from test_utils import single_test, multiple_test def layer_sizes_test(target): np.random.seed(1) X = np.random.randn(5, 3) Y = np.random.randn(2, 3) expected_output = (5, 4, 2) output = target(X, Y) assert type(output) == tuple, "Output must b...
44.977124
114
0.5671
1,815
13,763
4.242975
0.146556
0.089079
0.025971
0.038956
0.573042
0.516297
0.457733
0.43397
0.420465
0.420465
0
0.216321
0.250309
13,763
305
115
45.12459
0.530045
0
0
0.278008
0
0
0.178449
0
0
0
0
0
0.278008
1
0.033195
false
0.033195
0.012448
0
0.045643
0.037344
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
438fb40c80550ba9d5be286eac8370b1b3b8f492
1,054
py
Python
program/views/employee.py
quangndd/ems
b7bfe64f0fbc1a584017234971de7278dab1a755
[ "MIT" ]
null
null
null
program/views/employee.py
quangndd/ems
b7bfe64f0fbc1a584017234971de7278dab1a755
[ "MIT" ]
null
null
null
program/views/employee.py
quangndd/ems
b7bfe64f0fbc1a584017234971de7278dab1a755
[ "MIT" ]
null
null
null
from flask import url_for, render_template, session, request, redirect from functools import wraps from .. import app from .. import db account_type = { "ma" : "manager", "em" : "employee", "hr" : "hr"} def require_access(access_level): def decorator(func): @wraps(func) def decorated_func(*args...
25.095238
71
0.666034
137
1,054
5
0.416058
0.064234
0.081752
0.070073
0.113869
0.113869
0.113869
0.113869
0
0
0
0
0.188805
1,054
42
72
25.095238
0.80117
0.011385
0
0.285714
0
0
0.192
0.046
0
0
0
0
0
1
0.171429
false
0.028571
0.114286
0.028571
0.542857
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
4392c5cdf0eb68787cbabf0774e6a1f989c3c2d1
2,691
py
Python
kyra/core.py
barnumbirr/kyra
db56404928484eb3c45d5099b04f3a63f37e9cd9
[ "Apache-2.0" ]
2
2015-03-02T10:42:22.000Z
2015-04-07T15:20:39.000Z
kyra/core.py
barnumbirr/kyra
db56404928484eb3c45d5099b04f3a63f37e9cd9
[ "Apache-2.0" ]
null
null
null
kyra/core.py
barnumbirr/kyra
db56404928484eb3c45d5099b04f3a63f37e9cd9
[ "Apache-2.0" ]
1
2015-10-20T08:56:24.000Z
2015-10-20T08:56:24.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from datetime import datetime class Logger(object): def __init__(self, filename = None): self.__filename = filename self.__ERROR = '{0}'.format('\033[91m[ERROR]\033[0m :: ') self.__WARNING = '{0}'.format('\033[93m[WARNING]\033[0m :: ...
37.375
154
0.584913
333
2,691
4.333333
0.228228
0.12474
0.11781
0.09702
0.480942
0.434511
0.334026
0.334026
0.306999
0.306999
0
0.039196
0.241546
2,691
71
155
37.901408
0.66781
0.015608
0
0.214286
0
0
0.106158
0.051001
0
0
0
0
0
1
0.214286
false
0
0.035714
0.017857
0.303571
0.107143
0
0
0
null
0
0
0
0
0
0
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
43932f48bf35659401d1c562d2b2710fe3eb2493
1,516
py
Python
saleor/product/migrations/0093_auto_20190521_0124.py
elwoodxblues/saleor
5e4e4a4259a011d24b04ebd24c77c689de843fa1
[ "CC-BY-4.0" ]
15,337
2015-01-12T02:11:52.000Z
2021-10-05T19:19:29.000Z
saleor/product/migrations/0093_auto_20190521_0124.py
elwoodxblues/saleor
5e4e4a4259a011d24b04ebd24c77c689de843fa1
[ "CC-BY-4.0" ]
7,486
2015-02-11T10:52:13.000Z
2021-10-06T09:37:15.000Z
saleor/product/migrations/0093_auto_20190521_0124.py
aminziadna/saleor
2e78fb5bcf8b83a6278af02551a104cfa555a1fb
[ "CC-BY-4.0" ]
5,864
2015-01-16T14:52:54.000Z
2021-10-05T23:01:15.000Z
# Generated by Django 2.2.1 on 2019-05-21 06:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("product", "0092_auto_20190507_0309")] operations = [ migrations.AddField( model_name="collectionproduct", name="sort_order", ...
32.956522
88
0.585092
131
1,516
6.633588
0.389313
0.144994
0.115075
0.133487
0.611047
0.611047
0.529344
0.529344
0.529344
0.529344
0
0.029608
0.309367
1,516
45
89
33.688889
0.800382
0.029683
0
0.666667
1
0
0.162015
0.015657
0
0
0
0
0
1
0
false
0
0.025641
0
0.102564
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
4399cf9c5ca4364b0e02a3eba662f41e4362a7f4
223
py
Python
BOJ/12000~12999/12788.py
shinkeonkim/today-ps
f3e5e38c5215f19579bb0422f303a9c18c626afa
[ "Apache-2.0" ]
2
2020-01-29T06:54:41.000Z
2021-11-07T13:23:27.000Z
BOJ/12000~12999/12788.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
BOJ/12000~12999/12788.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
N=int(input()) M,K=list(map(int,input().split())) L = list(map(int,input().split())) L.sort(reverse = True) S = M*K for i,j in enumerate(L): S -= j if S<=0: print(i+1) break else: print("STRESS")
18.583333
34
0.542601
41
223
2.95122
0.609756
0.198347
0.165289
0.247934
0.347107
0.347107
0
0
0
0
0
0.011628
0.2287
223
12
35
18.583333
0.69186
0
0
0
0
0
0.026786
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
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
439c15a6afc06f06f1c44d9cb6517f9fdb700536
233
py
Python
core/node.py
timo-cmd2/Haiku
ec1d16ab90b5274974a319108e18c44fa9178df0
[ "CC0-1.0" ]
3
2021-01-11T14:37:46.000Z
2021-05-10T08:43:28.000Z
core/node.py
timo-cmd2/HyperKube
ec1d16ab90b5274974a319108e18c44fa9178df0
[ "CC0-1.0" ]
2
2021-07-18T14:25:44.000Z
2021-07-20T15:38:03.000Z
core/node.py
timo-cmd2/HyperKube
ec1d16ab90b5274974a319108e18c44fa9178df0
[ "CC0-1.0" ]
null
null
null
# the core node entrypoint for HyperKube import os import sqlite3 from sys import version_info def version_info(sys): version_minor = 0 version_major = 0 version_patch = 1 version_string = "0.0.1" version_status = "alpha"
19.416667
40
0.751073
36
233
4.666667
0.611111
0.130952
0
0
0
0
0
0
0
0
0
0.036842
0.184549
233
11
41
21.181818
0.847368
0.16309
0
0
0
0
0.051813
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
439d0a6d843c427a1bec9b75efc2098c5b4dab5a
311
py
Python
examples/ping/cn_ping_test.py
qarawlus/Containernet-GraphML
f27220825e60a7f9921ec60f69adc74079bb6e15
[ "MIT" ]
null
null
null
examples/ping/cn_ping_test.py
qarawlus/Containernet-GraphML
f27220825e60a7f9921ec60f69adc74079bb6e15
[ "MIT" ]
null
null
null
examples/ping/cn_ping_test.py
qarawlus/Containernet-GraphML
f27220825e60a7f9921ec60f69adc74079bb6e15
[ "MIT" ]
null
null
null
from mn_gml import MnGML from mininet.net import CLI import os mn_gml = MnGML(os.path.join(os.getcwd(), "examples/ping/Abilene.graphml"), image_name="qarawlus/ping") net = mn_gml.net topology = mn_gml.topology # net, topology = mn_cls(controller=Controller) net.start() # CLI(net) net.stop() print("Done")
18.294118
102
0.73955
50
311
4.48
0.52
0.089286
0.116071
0
0
0
0
0
0
0
0
0
0.115756
311
16
103
19.4375
0.814545
0.173633
0
0
0
0
0.181102
0.114173
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
43a0d820161120b6983742d6fb1abae1715eecd7
3,468
py
Python
chainerui/models/result.py
disktnk/chainerui
9c71c3e07dcc6960519001212583fe37fce660f4
[ "MIT" ]
1
2018-12-25T16:04:20.000Z
2018-12-25T16:04:20.000Z
chainerui/models/result.py
yutiansut/chainerui
058f00ec2b9a8a6ccd4f2b2f2bfc80869b771ea1
[ "MIT" ]
null
null
null
chainerui/models/result.py
yutiansut/chainerui
058f00ec2b9a8a6ccd4f2b2f2bfc80869b771ea1
[ "MIT" ]
null
null
null
import datetime from sqlalchemy import Boolean from sqlalchemy import Column from sqlalchemy import DateTime from sqlalchemy import ForeignKey from sqlalchemy import Integer from sqlalchemy.orm import relationship from sqlalchemy import String from chainerui import database from chainerui import db from chainerui.tas...
33.346154
78
0.634948
434
3,468
4.896313
0.25576
0.055059
0.042824
0.041412
0.214588
0.182588
0.136471
0.096941
0.096941
0.096941
0
0.006635
0.261246
3,468
103
79
33.669903
0.822795
0.106401
0
0.027397
0
0
0.070129
0
0
0
0
0
0
1
0.09589
false
0
0.150685
0.027397
0.561644
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
43a56cd667e67c5b55cc907c9583040de8d16e0c
1,251
py
Python
test/word2vec/word2vec_train.py
wull566/tensorflow_demo
c2c45050867cb056b8193eb53466d26b80b0ec13
[ "MIT" ]
2
2019-03-24T12:58:17.000Z
2021-05-18T06:21:21.000Z
test/word2vec/word2vec_train.py
wull566/tensorflow_demo
c2c45050867cb056b8193eb53466d26b80b0ec13
[ "MIT" ]
null
null
null
test/word2vec/word2vec_train.py
wull566/tensorflow_demo
c2c45050867cb056b8193eb53466d26b80b0ec13
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import logging import os import sys import multiprocessing from gensim.models import Word2Vec from gensim.models.word2vec import LineSentence if __name__ == '__main__': program = os.path.basename(sys.argv[0]) logger = logging.getLogger(program) logging.basic...
34.75
85
0.681855
159
1,251
5.257862
0.628931
0.033493
0.038278
0
0
0
0
0
0
0
0
0.035957
0.177458
1,251
36
86
34.75
0.776482
0.36211
0
0
0
0
0.128499
0
0
0
0
0
0
1
0
false
0
0.352941
0
0.352941
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
43a57b5454618621a046b316fd95077ebcf54d8d
969
py
Python
test_module1.py
weiwei-liu/data533_lab4_huazi_weiwei
1def5a88fc395cd90d28164f5ea89cd609be74c9
[ "MIT" ]
null
null
null
test_module1.py
weiwei-liu/data533_lab4_huazi_weiwei
1def5a88fc395cd90d28164f5ea89cd609be74c9
[ "MIT" ]
null
null
null
test_module1.py
weiwei-liu/data533_lab4_huazi_weiwei
1def5a88fc395cd90d28164f5ea89cd609be74c9
[ "MIT" ]
null
null
null
import unittest from sub_package2.plotStock import PlotStock class Test1(unittest.TestCase): def setUp(self): # init a instance of class PlotStock self.pls = PlotStock('BABA.csv') # read data form stock file self.data = self.pls.readData() self.stockInfo = ['Open', 'High', ...
28.5
64
0.639835
117
969
5.273504
0.478632
0.105348
0.082658
0.121556
0.106969
0.106969
0.106969
0
0
0
0
0.005502
0.249742
969
33
65
29.363636
0.843191
0.101135
0
0.086957
0
0
0.16263
0
0
0
0
0
0.26087
1
0.26087
false
0.043478
0.086957
0
0.391304
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
43a5ec1035a7bd51f3d1d1034da7e9b174e308b4
245
py
Python
setup.py
Bessy-Mukaria/Pharmaceutical-sales-predictions
d67242db07f54cab37015732a03856c096074c53
[ "MIT" ]
null
null
null
setup.py
Bessy-Mukaria/Pharmaceutical-sales-predictions
d67242db07f54cab37015732a03856c096074c53
[ "MIT" ]
null
null
null
setup.py
Bessy-Mukaria/Pharmaceutical-sales-predictions
d67242db07f54cab37015732a03856c096074c53
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='You work at Rossmann Pharmaceuticals as a data scientist.', author='Bessy Mukaria', license='MIT', )
22.272727
76
0.685714
31
245
5.354839
0.83871
0.144578
0
0
0
0
0
0
0
0
0
0.015152
0.191837
245
10
77
24.5
0.823232
0
0
0
0
0
0.330612
0
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
43a8496378e4f4f409318f42829dc57d009bf4e9
1,950
py
Python
CPXC_loss/auc.py
Alvence/CPXC
5fedb702647b830f852f140dd3a7ac1226709652
[ "MIT" ]
null
null
null
CPXC_loss/auc.py
Alvence/CPXC
5fedb702647b830f852f140dd3a7ac1226709652
[ "MIT" ]
null
null
null
CPXC_loss/auc.py
Alvence/CPXC
5fedb702647b830f852f140dd3a7ac1226709652
[ "MIT" ]
null
null
null
from numpy import loadtxt import numpy as np import matplotlib.pyplot as plt from sklearn import svm, datasets from sklearn import metrics from sklearn.metrics import roc_curve, auc from sklearn.cross_validation import train_test_split from sklearn.preprocessing import label_binarize from sklearn.multiclass import OneV...
33.62069
90
0.67641
301
1,950
4.239203
0.305648
0.050157
0.018809
0.025862
0.132445
0.083856
0
0
0
0
0
0.004408
0.185641
1,950
57
91
34.210526
0.799118
0.130769
0
0.047619
0
0
0.059242
0
0
0
0
0
0
0
null
null
0
0.238095
null
null
0.047619
0
0
0
null
0
0
0
0
0
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
43ae7a3cd1b319df2b3f59c93434d929562c0dd9
233
py
Python
tests/__init__.py
PontusPersson/iotedgehubdev
52291bda1452e5e0708577ee163b0593b2949017
[ "MIT" ]
80
2018-09-11T07:28:42.000Z
2022-03-01T06:51:42.000Z
tests/__init__.py
PontusPersson/iotedgehubdev
52291bda1452e5e0708577ee163b0593b2949017
[ "MIT" ]
176
2018-09-11T07:11:22.000Z
2022-03-28T17:12:16.000Z
tests/__init__.py
PontusPersson/iotedgehubdev
52291bda1452e5e0708577ee163b0593b2949017
[ "MIT" ]
35
2018-11-05T02:53:06.000Z
2022-03-18T16:53:27.000Z
import os from dotenv import load_dotenv workingdirectory = os.getcwd() filename = os.path.join(workingdirectory, '.env') if os.path.exists(filename): load_dotenv(filename) print('env file loaded from {0}'.format(filename))
25.888889
54
0.746781
32
233
5.375
0.5625
0.116279
0
0
0
0
0
0
0
0
0
0.004926
0.128755
233
8
55
29.125
0.842365
0
0
0
0
0
0.120172
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
43aeaa8b588ae7a8229bd1a1ed3e7d027d03eefa
2,865
py
Python
src/descript/ion.py
histrio/python-descript-ion
88548cee4a39245f7edc77346cafeb796be309ac
[ "Apache-2.0" ]
2
2019-10-23T08:15:41.000Z
2020-05-01T11:49:33.000Z
src/descript/ion.py
histrio/python-descript-ion
88548cee4a39245f7edc77346cafeb796be309ac
[ "Apache-2.0" ]
12
2019-10-02T16:28:44.000Z
2020-10-11T18:26:56.000Z
src/descript/ion.py
histrio/python-descript-ion
88548cee4a39245f7edc77346cafeb796be309ac
[ "Apache-2.0" ]
5
2019-10-02T17:17:32.000Z
2019-10-08T18:55:34.000Z
""" File: ion.py Author: Rinat F Sabitov Email: rinat.sabitov@gmail.com Description: simple library that provides access to DESCRIPT.ION files """ import os import tempfile from shutil import copyfile DESCRIPTION_FILE = 'descript.ion' native_open = open def open(*args, **kwargs): result = native_open(*args, **...
23.677686
92
0.606283
359
2,865
4.623955
0.289694
0.048193
0.038554
0.027108
0.062651
0.062651
0.036145
0.036145
0
0
0
0.001422
0.263874
2,865
120
93
23.875
0.78568
0.048168
0
0.063291
0
0
0.013976
0
0
0
0
0
0
1
0.240506
false
0
0.037975
0.063291
0.481013
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
43b3ea9780fe37c934e83ec59efe413b0de14193
2,367
py
Python
tests/sentry/api/endpoints/test_project_keys.py
learninto/sentry
4f9f564841498b3af49c1677d6b61f3e47b01923
[ "BSD-3-Clause" ]
1
2019-10-17T17:46:16.000Z
2019-10-17T17:46:16.000Z
tests/sentry/api/endpoints/test_project_keys.py
learninto/sentry
4f9f564841498b3af49c1677d6b61f3e47b01923
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/endpoints/test_project_keys.py
learninto/sentry
4f9f564841498b3af49c1677d6b61f3e47b01923
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from django.core.urlresolvers import reverse from sentry.models import ProjectKey from sentry.testutils import APITestCase class ListProjectKeysTest(APITestCase): def test_simple(self): project = self.create_project() key = ProjectKey.objects.get_or_create(...
38.803279
98
0.635403
284
2,367
5.161972
0.211268
0.090041
0.125512
0.057299
0.69236
0.676671
0.676671
0.676671
0.676671
0.624829
0
0.014917
0.235319
2,367
60
99
39.45
0.795028
0
0
0.538462
0
0
0.124208
0.042248
0
0
0
0
0.192308
1
0.076923
false
0
0.076923
0
0.192308
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
43b4a0d6a4611eb582a2d26a229afd17996a9bcf
9,916
py
Python
ckan_cloud_operator/providers/db/manager.py
mickeyrouash/ckan-cloud-operator
10e38f13964af30fe57b07e8d8a3b7521ed69cc2
[ "MIT" ]
null
null
null
ckan_cloud_operator/providers/db/manager.py
mickeyrouash/ckan-cloud-operator
10e38f13964af30fe57b07e8d8a3b7521ed69cc2
[ "MIT" ]
null
null
null
ckan_cloud_operator/providers/db/manager.py
mickeyrouash/ckan-cloud-operator
10e38f13964af30fe57b07e8d8a3b7521ed69cc2
[ "MIT" ]
null
null
null
from ckan_cloud_operator import kubectl from ckan_cloud_operator import logs from ckan_cloud_operator.drivers.postgres import driver as postgres_driver from ckan_cloud_operator.providers import manager as providers_manager from ckan_cloud_operator.providers.db.proxy import manager as db_proxy_manager from ckan_cloud_...
44.071111
155
0.724385
1,380
9,916
4.813768
0.099275
0.071052
0.027096
0.040945
0.586934
0.542074
0.43098
0.394551
0.348036
0.316724
0
0.0005
0.193526
9,916
224
156
44.267857
0.830186
0.034691
0
0.213873
0
0
0.074586
0.032789
0
0
0
0
0.023121
1
0.127168
false
0.115607
0.057803
0.017341
0.317919
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
43b62c66e2e6169888476fad64f8985ba0e4e2a2
3,941
py
Python
django/djangoCeleryRabbitMQRedisApp/djangoCeleryRabbitMQRedis/djangoCeleryRabbitMQRedis/settings.py
mir-dhaka/coding_playground
f20138e404c27e008b2902d4be2e9f9d4c25b11f
[ "Apache-2.0" ]
2
2019-05-23T06:05:20.000Z
2019-11-17T01:35:45.000Z
django/djangoCeleryRabbitMQRedisApp/djangoCeleryRabbitMQRedis/djangoCeleryRabbitMQRedis/settings.py
mir-dhaka/coding_playground
f20138e404c27e008b2902d4be2e9f9d4c25b11f
[ "Apache-2.0" ]
2
2020-08-29T12:29:11.000Z
2020-08-29T12:30:14.000Z
django/djangoCeleryRabbitMQRedisApp/djangoCeleryRabbitMQRedis/djangoCeleryRabbitMQRedis/settings.py
mir-dhaka/coding_playground
f20138e404c27e008b2902d4be2e9f9d4c25b11f
[ "Apache-2.0" ]
2
2020-07-18T17:07:36.000Z
2021-12-06T02:21:15.000Z
""" Django settings for djangoCeleryRabbitMQRedis project. Generated by 'django-admin startproject' using Django 1.10.4. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settin...
27.753521
101
0.725704
524
3,941
5.221374
0.442748
0.036184
0.048246
0.025585
0.100146
0.070906
0.042398
0.024123
0
0
0
0.020556
0.160619
3,941
141
102
27.950355
0.80653
0.278609
0
0
1
0
0.285309
0.163591
0
0
0
0
0
1
0
false
0.038462
0.025641
0
0.025641
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
43b7c36f396fb8dc3e9d24d53420ccbc014a7bdb
2,167
py
Python
botwinick_utils/util.py
dbotwinick/botwinick_utils
50bf626c2a965c3a97231f3977c20d7098268b8a
[ "BSD-3-Clause" ]
null
null
null
botwinick_utils/util.py
dbotwinick/botwinick_utils
50bf626c2a965c3a97231f3977c20d7098268b8a
[ "BSD-3-Clause" ]
null
null
null
botwinick_utils/util.py
dbotwinick/botwinick_utils
50bf626c2a965c3a97231f3977c20d7098268b8a
[ "BSD-3-Clause" ]
null
null
null
# author: Drew Botwinick, Botwinick Innovations # license: 3-clause BSD import logging from logging.handlers import TimedRotatingFileHandler def safe_float(string): """ Utility function to convert python objects to floating point values without throwing an exception """ try: return float(string) ...
38.017544
138
0.700046
277
2,167
5.32491
0.418773
0.028475
0.047458
0.059661
0.286102
0.230508
0.11661
0.061017
0
0
0
0.003511
0.211352
2,167
56
139
38.696429
0.859567
0.264882
0
0.25
0
0.027778
0.067516
0
0
0
0
0.017857
0
1
0.111111
false
0
0.055556
0
0.361111
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
43bd95c1a15dd34366c683c092c6daa31f0f95c5
1,070
py
Python
libcst/_nodes/tests/test_else.py
bgw/LibCST
05c8070dfb29f9aff00c8007e5e0013d14990c5b
[ "MIT" ]
null
null
null
libcst/_nodes/tests/test_else.py
bgw/LibCST
05c8070dfb29f9aff00c8007e5e0013d14990c5b
[ "MIT" ]
1
2019-08-21T18:58:13.000Z
2019-08-21T18:58:13.000Z
libcst/_nodes/tests/test_else.py
bgw/LibCST
05c8070dfb29f9aff00c8007e5e0013d14990c5b
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # pyre-strict from typing import Any import libcst as cst from libcst import CodeRange from libcst._nodes.tests.base import CSTNodeTest from ...
30.571429
74
0.562617
116
1,070
5.112069
0.568966
0.05059
0.037099
0.047218
0.296796
0.296796
0.296796
0.158516
0.158516
0.158516
0
0.01368
0.316822
1,070
34
75
31.470588
0.797538
0.168224
0
0.08
0
0
0.088235
0
0
0
0
0
0
1
0.04
false
0.16
0.2
0
0.28
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
43c1285a2658a9a7ff02705c12d62e31c4ff1312
1,802
py
Python
tests/test_myst_role/test_role.py
iooxa/markdown-it-py
21837dfa0ce9be249de372bb10733a534f8e0a50
[ "MIT" ]
null
null
null
tests/test_myst_role/test_role.py
iooxa/markdown-it-py
21837dfa0ce9be249de372bb10733a534f8e0a50
[ "MIT" ]
null
null
null
tests/test_myst_role/test_role.py
iooxa/markdown-it-py
21837dfa0ce9be249de372bb10733a534f8e0a50
[ "MIT" ]
null
null
null
from markdown_it import MarkdownIt from markdown_it.token import Token from markdown_it.extensions.myst_role import myst_role_plugin def test_basic(): md = MarkdownIt().use(myst_role_plugin) src = "{abc}``` a ```" tokens = md.parse(src) print(tokens) assert tokens == [ Token( t...
24.351351
61
0.354606
140
1,802
4.478571
0.328571
0.051037
0.076555
0.086124
0.488038
0.488038
0.419458
0.362041
0.362041
0.188198
0
0.014002
0.524417
1,802
73
62
24.684932
0.71762
0
0
0.661972
0
0
0.046615
0
0
0
0
0
0.014085
1
0.014085
false
0
0.042254
0
0.056338
0.014085
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
43c176a76d693c645629fc57b0764fa2689ce69b
1,452
py
Python
service_catalog/views/operation_list_view.py
LaudateCorpus1/squest
98304f20c1d966fb3678d348ffd7c5be438bb6be
[ "Apache-2.0" ]
112
2021-04-21T08:52:55.000Z
2022-03-01T15:09:19.000Z
service_catalog/views/operation_list_view.py
LaudateCorpus1/squest
98304f20c1d966fb3678d348ffd7c5be438bb6be
[ "Apache-2.0" ]
216
2021-04-21T09:06:47.000Z
2022-03-30T14:21:28.000Z
service_catalog/views/operation_list_view.py
LaudateCorpus1/squest
98304f20c1d966fb3678d348ffd7c5be438bb6be
[ "Apache-2.0" ]
21
2021-04-20T13:53:54.000Z
2022-03-30T21:43:04.000Z
from django.urls import reverse from django_filters.views import FilterView from django_tables2.views import SingleTableMixin from guardian.mixins import LoginRequiredMixin from service_catalog.filters.operation_filter import OperationFilter from service_catalog.models import Operation, Service from service_catalog.ta...
42.705882
104
0.711433
160
1,452
6.2375
0.35625
0.063126
0.054108
0.038076
0.062124
0.062124
0.062124
0
0
0
0
0.002498
0.172865
1,452
33
105
44
0.828476
0
0
0
0
0
0.168733
0.064738
0
0
0
0
0
1
0.071429
false
0
0.25
0
0.607143
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
43cbbea631b95cd75fe6bf9d7952f0f7bfd98e11
2,448
py
Python
vispy/testing/__init__.py
hmaarrfk/vispy
7f3f6f60c8462bb8a3a8fa03344a2e6990b86eb2
[ "BSD-3-Clause" ]
null
null
null
vispy/testing/__init__.py
hmaarrfk/vispy
7f3f6f60c8462bb8a3a8fa03344a2e6990b86eb2
[ "BSD-3-Clause" ]
null
null
null
vispy/testing/__init__.py
hmaarrfk/vispy
7f3f6f60c8462bb8a3a8fa03344a2e6990b86eb2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) Vispy Development Team. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. """ Testing ======= This module provides functions useful for running tests in vispy. Tests can be run in a few ways: * From Python, you can import ``vispy...
46.188679
80
0.681781
346
2,448
4.725434
0.511561
0.00367
0.022018
0.017125
0.030581
0.030581
0
0
0
0
0
0.003739
0.235294
2,448
52
81
47.076923
0.869658
0.761029
0
0
0
0
0
0
0
0
0
0
0.2
1
0
true
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
43d0ea6ad403e1f612dce0fefc47f443f07edcbb
3,098
py
Python
imusensor/MPU9250/config.py
ahtakoru/imusensor
7c1b1db9ab716e44716b1a0a3cb6dfa8de3007cc
[ "MIT" ]
null
null
null
imusensor/MPU9250/config.py
ahtakoru/imusensor
7c1b1db9ab716e44716b1a0a3cb6dfa8de3007cc
[ "MIT" ]
null
null
null
imusensor/MPU9250/config.py
ahtakoru/imusensor
7c1b1db9ab716e44716b1a0a3cb6dfa8de3007cc
[ "MIT" ]
null
null
null
from easydict import EasyDict as edict import numpy as np def getConfigVals(): cfg = edict() # declaring register values. Don't change them as long as you are damn sure. cfg.Address = 0x68 cfg.Channel = 0 cfg.AccelOut = 0x3B # getting the accelerometer data. cfg.ExtSensData00 = 0x49 cfg.AccelConfig = 0x1C...
24.784
106
0.747256
465
3,098
4.862366
0.419355
0.038921
0.042459
0.042459
0.090226
0.07165
0.07165
0.07165
0.07165
0.07165
0
0.177001
0.141059
3,098
124
107
24.983871
0.672679
0.064558
0
0
0
0
0
0
0
0
0.094183
0
0
1
0.010526
false
0.136842
0.021053
0
0.042105
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
43d10b62b4d5329608049d35606db2048e3f3763
624
py
Python
setup.py
grunichev/cbr
aefbe4e7f50d9f21c00953e3eba011a149d13863
[ "MIT" ]
null
null
null
setup.py
grunichev/cbr
aefbe4e7f50d9f21c00953e3eba011a149d13863
[ "MIT" ]
null
null
null
setup.py
grunichev/cbr
aefbe4e7f50d9f21c00953e3eba011a149d13863
[ "MIT" ]
1
2020-12-03T12:26:19.000Z
2020-12-03T12:26:19.000Z
import pathlib from setuptools import setup setup( name="python-cbr", version="0.2.0", description="Read the official exchange rates data from cbr.ru", long_description=open('README.txt').read(), long_description_content_type="text/markdown", url="https://github.com/grunichev/cbr", author="...
28.363636
68
0.653846
73
624
5.493151
0.671233
0.074813
0.124688
0.129676
0
0
0
0
0
0
0
0.012024
0.200321
624
21
69
29.714286
0.791583
0
0
0
0
0
0.432692
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
43dd6e26fbc0280a428304918cd75f8dd982775d
731
py
Python
bsdataprep.py
gauraviitg/BMTT-PETS-2017-surveillance-challenge
3b2c442b2edd43fbcaefe800901977aaadfbbaa3
[ "MIT" ]
5
2018-05-27T15:57:54.000Z
2020-02-03T14:05:57.000Z
bsdataprep.py
gauraviitg/BMTT-PETS-2017-surveillance-challenge
3b2c442b2edd43fbcaefe800901977aaadfbbaa3
[ "MIT" ]
null
null
null
bsdataprep.py
gauraviitg/BMTT-PETS-2017-surveillance-challenge
3b2c442b2edd43fbcaefe800901977aaadfbbaa3
[ "MIT" ]
7
2018-11-15T02:33:02.000Z
2020-10-13T14:04:14.000Z
import numpy as np # import cv2 import sys import os import pickle import shutil import gc def data_prep(): root = "/home/amit/Desktop/vignesh/backsub" path = os.path.join(root, "") dic = {} frameno = 0 for path, subdirs, files in os.walk(root): for filename in files: frame_...
19.756757
70
0.555404
95
731
4.115789
0.505263
0.11509
0.076726
0.112532
0.148338
0
0
0
0
0
0
0.024145
0.320109
731
36
71
20.305556
0.762575
0.01368
0
0
0
0
0.119611
0.104312
0
0
0
0
0
0
null
null
0
0.24
null
null
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
43e240916b23cc12aa0096d56af36528370f70be
515
py
Python
ons_utils/__init__.py
ONSdigital/ons_utils
5ff0952c174984deb601af8ad4c21f26c7b24623
[ "MIT" ]
null
null
null
ons_utils/__init__.py
ONSdigital/ons_utils
5ff0952c174984deb601af8ad4c21f26c7b24623
[ "MIT" ]
null
null
null
ons_utils/__init__.py
ONSdigital/ons_utils
5ff0952c174984deb601af8ad4c21f26c7b24623
[ "MIT" ]
1
2022-03-17T08:03:17.000Z
2022-03-17T08:03:17.000Z
"""Init the package by importing the functions. To import functions from pandas or testing modules, import directly: >>> from ons_utils.pandas import shifted_within_year_apply >>> from ons_utils.testing import to_date """ from .decorators import ( to_list, to_spark_col, ) from .factories import args_kwargs_tr...
23.409091
68
0.763107
71
515
5.183099
0.647887
0.038043
0.065217
0
0
0
0
0
0
0
0
0
0.172816
515
21
69
24.52381
0.86385
0.419417
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.214286
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
78d74df5f87941a3a5a5d7e346edac951534302a
8,652
py
Python
nodes/ami-nem-poly-v2-original.py
bpaauwe/udi-poly-ami-nem-python-master
d564750d8a7b26412fa1448f43a7b875161ee818
[ "MIT" ]
null
null
null
nodes/ami-nem-poly-v2-original.py
bpaauwe/udi-poly-ami-nem-python-master
d564750d8a7b26412fa1448f43a7b875161ee818
[ "MIT" ]
null
null
null
nodes/ami-nem-poly-v2-original.py
bpaauwe/udi-poly-ami-nem-python-master
d564750d8a7b26412fa1448f43a7b875161ee818
[ "MIT" ]
null
null
null
try: import polyinterface except ImportError: import pgc_interface as polyinterface import sys import time import requests from requests.auth import HTTPBasicAuth import xml.etree.ElementTree as ET import re LOGGER = polyinterface.LOGGER class Controller(polyinterface.Controller): def __init__(self, polygl...
36.817021
147
0.5816
999
8,652
4.87988
0.213213
0.029538
0.029538
0.034462
0.238154
0.191795
0.160205
0.127179
0.127179
0.127179
0
0.011657
0.305941
8,652
235
148
36.817021
0.800167
0.053167
0
0.144385
0
0
0.15698
0.003181
0
0
0
0
0
1
0.074866
false
0.058824
0.048128
0
0.171123
0.005348
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
78ddf864971b4fd5aace8a1b9d3a037286b2bff7
3,312
py
Python
python/utility.py
dzhiblavi/tgnews
4172c60093d5b40b77f8776825fe06954cdf36c3
[ "MIT" ]
1
2020-05-28T19:27:18.000Z
2020-05-28T19:27:18.000Z
python/utility.py
dzhiblavi/tgnews
4172c60093d5b40b77f8776825fe06954cdf36c3
[ "MIT" ]
null
null
null
python/utility.py
dzhiblavi/tgnews
4172c60093d5b40b77f8776825fe06954cdf36c3
[ "MIT" ]
1
2020-05-26T14:36:57.000Z
2020-05-26T14:36:57.000Z
from abc import ABC import nltk import queue import threading import pickle import warnings import json from html.parser import HTMLParser import os warnings.filterwarnings("ignore", category=DeprecationWarning) warnings.filterwarnings("ignore", category=UserWarning) langs = ['ru', 'en'] categories = ["entertainment"...
24
96
0.605978
446
3,312
4.38565
0.325112
0.02863
0.02454
0.03681
0.139059
0.082822
0.042945
0.042945
0.042945
0.042945
0
0.002826
0.252114
3,312
137
97
24.175182
0.786839
0.024155
0
0.0625
0
0
0.064436
0
0
0
0
0
0
1
0.208333
false
0.010417
0.09375
0.072917
0.458333
0.020833
0
0
0
null
0
0
0
0
0
0
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
78efec14dd4607bf10cb6d589308831dcf4e09cb
2,728
py
Python
linkedSPLs/LinkedSPLs-update/mappings/ChEBI-DrugBank-bio2rdf-mapping/scripts/backups/parseDBIdAndUNIIsByInChikey.py
kqingcan/bio2rdf-scripts
52c9e70112fa7bbc0624df6c780b9cbc0a2b67dc
[ "MIT" ]
76
2015-01-11T18:04:21.000Z
2022-01-14T17:32:44.000Z
linkedSPLs/LinkedSPLs-update/mappings/ChEBI-DrugBank-bio2rdf-mapping/scripts/backups/parseDBIdAndUNIIsByInChikey.py
kqingcan/bio2rdf-scripts
52c9e70112fa7bbc0624df6c780b9cbc0a2b67dc
[ "MIT" ]
48
2015-03-01T15:37:54.000Z
2021-04-06T17:48:44.000Z
linkedSPLs/LinkedSPLs-update/mappings/ChEBI-DrugBank-bio2rdf-mapping/scripts/backups/parseDBIdAndUNIIsByInChikey.py
kqingcan/bio2rdf-scripts
52c9e70112fa7bbc0624df6c780b9cbc0a2b67dc
[ "MIT" ]
34
2015-05-31T23:31:19.000Z
2021-12-14T02:12:08.000Z
''' Created 03/20/2014 @authors: Yifan Ning @summary: parse inchikey and drugbank_id from drugbank.xml then parse inchikey, FDA Preferred Term and UNII from UNIIs records match the results from drugbank and results of parse UNIIs records output terms: FDA Preferred Term, UNII, Drugbank U...
29.978022
127
0.617302
328
2,728
5.064024
0.420732
0.032511
0.04696
0.025286
0
0
0
0
0
0
0
0.038328
0.263563
2,728
90
128
30.311111
0.788452
0.068915
0
0.142857
0
0
0.102681
0
0
0
0
0
0
0
null
null
0
0.071429
null
null
0.02381
0
0
0
null
0
0
0
0
0
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
78f7da31ded80818d13267342c73f6f7039b6837
40,660
py
Python
frappe-bench/env/lib/python2.7/site-packages/faker/providers/address/nl_NL/__init__.py
ibrahmm22/library-management
b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506
[ "MIT" ]
412
2020-04-16T08:11:58.000Z
2022-02-02T19:49:53.000Z
frappe-bench/env/lib/python2.7/site-packages/faker/providers/address/nl_NL/__init__.py
ibrahmm22/library-management
b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506
[ "MIT" ]
1
2020-04-16T14:03:46.000Z
2020-04-17T03:41:18.000Z
frappe-bench/env/lib/python2.7/site-packages/faker/providers/address/nl_NL/__init__.py
ibrahmm22/library-management
b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506
[ "MIT" ]
33
2020-04-16T08:48:53.000Z
2021-10-20T04:39:29.000Z
# coding=utf-8 from __future__ import unicode_literals from .. import Provider as AddressProvider class Provider(AddressProvider): building_number_formats = ('#', '##', '###', '#', '##', '###') street_suffixes = ( 'baan', 'boulevard', 'dreef', 'hof', 'laan', 'pad', 'ring', 'singel', 'steeg'...
68.682432
79
0.604181
3,308
40,660
7.418682
0.849456
0.001956
0.001956
0.001467
0.004319
0.002526
0
0
0
0
0
0.000697
0.188367
40,660
591
80
68.798646
0.742947
0.008018
0
0
0
0
0.608853
0.005803
0
0
0
0
0
1
0.003515
false
0
0.003515
0.003515
0.029877
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
78f8e76d4b4bbfbae041d0933653d2518f59aa8f
2,732
py
Python
Paths/Grid Switcher.py
juandelperal/Glyphs-Scripts
1f3cb71683ec044dff67a46cd895773e8271effa
[ "Apache-2.0" ]
null
null
null
Paths/Grid Switcher.py
juandelperal/Glyphs-Scripts
1f3cb71683ec044dff67a46cd895773e8271effa
[ "Apache-2.0" ]
null
null
null
Paths/Grid Switcher.py
juandelperal/Glyphs-Scripts
1f3cb71683ec044dff67a46cd895773e8271effa
[ "Apache-2.0" ]
null
null
null
#MenuTitle: Grid Switcher # -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals from builtins import str __doc__=""" Toggles grid between two gridstep values. """ import vanilla class GridOnOff( object ): def __init__( self ): self.gridStep1default = 1 self.gridStep2default = ...
31.045455
128
0.698023
327
2,732
5.785933
0.324159
0.044926
0.116279
0.109937
0.301269
0.227273
0.150106
0.10148
0
0
0
0.036548
0.168741
2,732
87
129
31.402299
0.796565
0.022328
0
0.223881
0
0
0.222264
0.125187
0
0
0
0
0
0
null
null
0.014925
0.044776
null
null
0.044776
0
0
0
null
0
0
0
0
0
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
78fb939bf147301d1a466e6ca4eb2871753dc5a0
1,942
py
Python
utilities/set_sensitivity.py
QCaudron/SmallPopTSIR
51524ebf99076ebcb325d0f34d3891f7a9f90523
[ "MIT" ]
2
2016-04-05T10:32:52.000Z
2020-11-13T06:26:26.000Z
utilities/set_sensitivity.py
QCaudron/SmallPopTSIR
51524ebf99076ebcb325d0f34d3891f7a9f90523
[ "MIT" ]
null
null
null
utilities/set_sensitivity.py
QCaudron/SmallPopTSIR
51524ebf99076ebcb325d0f34d3891f7a9f90523
[ "MIT" ]
3
2015-10-18T23:59:41.000Z
2018-07-08T04:49:31.000Z
import os import pandas as pd import numpy as np import seaborn c = seaborn.color_palette("deep", 8) sumR = [] for i in range(1, 22) : os.system("python batch.py iceland 500 %d" % i) os.system("python batch.py faroe 500 %d" % i) os.system("python batch.py bornholm 500 %d" % i) r = [] for file in os.listdir("...
23.119048
132
0.669928
318
1,942
4.084906
0.371069
0.012317
0.055427
0.067744
0.531948
0.491917
0.461894
0.461894
0.288684
0.288684
0
0.098131
0.118435
1,942
84
133
23.119048
0.660631
0.027291
0
0
0
0
0.288499
0
0
0
0
0
0
0
null
null
0
0.235294
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
78fc8f87e80cc80ca941ef8b8144f50ed1b8795a
2,488
py
Python
rosbackup/main.py
mharjac/rosbackup
315eba413e73ec5c3a43f994df9bf861470d448c
[ "MIT" ]
null
null
null
rosbackup/main.py
mharjac/rosbackup
315eba413e73ec5c3a43f994df9bf861470d448c
[ "MIT" ]
null
null
null
rosbackup/main.py
mharjac/rosbackup
315eba413e73ec5c3a43f994df9bf861470d448c
[ "MIT" ]
1
2019-10-28T10:36:31.000Z
2019-10-28T10:36:31.000Z
"""Tool for creating RouterOS configuration backup It can be used as an interactive tool from CLI or for unattended backups in containers, in which case, it is using following environment variables: ROS_HOST: for storing Ip address or hostname (e.g., 192.168.1.1) ROS_USER: username for making backups ROS_PASS: passw...
36.588235
140
0.667605
333
2,488
4.891892
0.42042
0.033149
0.062615
0.033149
0.036832
0.036832
0
0
0
0
0
0.007165
0.21463
2,488
68
141
36.588235
0.82651
0.237942
0
0.045455
0
0
0.248809
0.012176
0
0
0
0
0
1
0.022727
false
0.159091
0.136364
0
0.159091
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
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
60019027e0d06b789e7b6b993f68d2d2f90b0fae
532
py
Python
fload_freedb/stream/freedbfilter.py
kevenli/fload-freedb
60dd2b1f1f90dd10999dbda8da004ef48879929e
[ "Apache-2.0" ]
null
null
null
fload_freedb/stream/freedbfilter.py
kevenli/fload-freedb
60dd2b1f1f90dd10999dbda8da004ef48879929e
[ "Apache-2.0" ]
null
null
null
fload_freedb/stream/freedbfilter.py
kevenli/fload-freedb
60dd2b1f1f90dd10999dbda8da004ef48879929e
[ "Apache-2.0" ]
null
null
null
from fload_freedb.stream.base import FreedbDocOperatePipeline import os from fload import Pipeline from fload_freedb.freedb import FreedbClient, FreedbCollection, DocumentDotExist class FreedbDocNotExistFilter(FreedbDocOperatePipeline): def process(self, item): id = item.get('id') if id is None: ...
24.181818
80
0.650376
55
532
6.236364
0.581818
0.078717
0.087464
0
0
0
0
0
0
0
0
0
0.296992
532
21
81
25.333333
0.917112
0
0
0.125
0
0
0.003759
0
0
0
0
0
0
1
0.0625
false
0.0625
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
6002e2c10943f589b98660d879155141f4e11076
24,926
py
Python
lndgrpc/compiled/signer_pb2_grpc.py
kornpow/lnd-grpc-client
37e2603a538b3322cb56ffb9610e2a7ea4def612
[ "MIT" ]
19
2022-01-03T02:06:24.000Z
2022-02-23T09:59:16.000Z
lndgrpc/compiled/signer_pb2_grpc.py
kornpow/lnd-grpc-client
37e2603a538b3322cb56ffb9610e2a7ea4def612
[ "MIT" ]
7
2021-12-20T21:01:57.000Z
2022-03-28T10:49:27.000Z
lndgrpc/compiled/signer_pb2_grpc.py
kornpow/lnd-grpc-client
37e2603a538b3322cb56ffb9610e2a7ea4def612
[ "MIT" ]
2
2022-01-26T15:37:03.000Z
2022-02-10T06:12:43.000Z
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from lndgrpc.compiled import signer_pb2 as lndgrpc_dot_compiled_dot_signer__pb2 class SignerStub(object): """Signer is a service that gives access to the s...
49.554672
124
0.686793
2,537
24,926
6.492708
0.134411
0.037154
0.073215
0.085418
0.693723
0.667011
0.663004
0.614194
0.466124
0.397827
0
0.009232
0.25688
24,926
502
125
49.653386
0.880041
0.225668
0
0.532164
1
0
0.074193
0.037015
0
0
0
0
0
1
0.070175
false
0
0.005848
0.032164
0.116959
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
6003a455f3d4dd5c5e8ce7143c178207335846b9
3,993
py
Python
timmextension/models/xcit_dino.py
okotaku/timmextension
0fde1e848ddfbb632fbebefd98fdb3171cb0733b
[ "Apache-2.0" ]
null
null
null
timmextension/models/xcit_dino.py
okotaku/timmextension
0fde1e848ddfbb632fbebefd98fdb3171cb0733b
[ "Apache-2.0" ]
null
null
null
timmextension/models/xcit_dino.py
okotaku/timmextension
0fde1e848ddfbb632fbebefd98fdb3171cb0733b
[ "Apache-2.0" ]
null
null
null
# -------------------------------------------------------- # Model from official source: https://github.com/facebookresearch/dino # -------------------------------------------------------- # Todo: weight for timm update from timm.models.helpers import build_model_with_cfg from timm.models.registry import register_model...
35.336283
123
0.538442
425
3,993
4.647059
0.171765
0.060759
0.055696
0.035443
0.757468
0.742785
0.64962
0.64962
0.582785
0.556962
0
0.043648
0.357375
3,993
112
124
35.651786
0.726033
0.057851
0
0.652632
0
0
0.162004
0.046896
0
0
0
0.008929
0
1
0.063158
false
0
0.031579
0
0.157895
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
600be5ac3131bd55e9638eab39479a869055280e
466
py
Python
src/templates/django/boilerplate/urls.py
GBrachetta/frames
d0f4151307d7922b8ff9fe19ed7b85b00a41e435
[ "MIT" ]
null
null
null
src/templates/django/boilerplate/urls.py
GBrachetta/frames
d0f4151307d7922b8ff9fe19ed7b85b00a41e435
[ "MIT" ]
4
2021-05-23T19:45:36.000Z
2021-06-19T09:07:16.000Z
src/templates/django/boilerplate/urls.py
GBrachetta/frames
d0f4151307d7922b8ff9fe19ed7b85b00a41e435
[ "MIT" ]
2
2021-05-23T18:29:39.000Z
2021-05-24T10:52:07.000Z
from django.conf import settings from django.contrib import admin from django.urls import include, path from django.conf.urls.static import static urlpatterns = [ path("admin/", admin.site.urls), path("", include("core.urls")), ] if settings.DEBUG: import debug_toolbar urlpatterns += [ path(...
21.181818
61
0.690987
56
466
5.589286
0.375
0.127796
0.089457
0
0
0
0
0
0
0
0
0
0.193133
466
21
62
22.190476
0.832447
0
0
0
0
0
0.053648
0
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6011619df35724009f9d9e9ca663f406e007601f
504
py
Python
tests.py
HeyIamJames/CarCompare
b40f6af772205df595f0ef416fa967227a52b336
[ "MIT" ]
null
null
null
tests.py
HeyIamJames/CarCompare
b40f6af772205df595f0ef416fa967227a52b336
[ "MIT" ]
null
null
null
tests.py
HeyIamJames/CarCompare
b40f6af772205df595f0ef416fa967227a52b336
[ "MIT" ]
null
null
null
import unittest from selenium import webdriver from selenium.webdriver.common.keys import Keys class PythonOrgSearch(unittest.TestCase): def setUp(self): self.driver = webdriver.Chrome() def test_search_in_python_org(self): driver = self.driver("/chromedriver.exe" self.assertIn("none"...
22.909091
48
0.68254
61
504
5.409836
0.557377
0.121212
0.084848
0
0
0
0
0
0
0
0
0
0.206349
504
21
49
24
0.825
0
0
0
0
0
0.063492
0
0
0
0
0
0.066667
0
null
null
0
0.2
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
601924e78da92a6f54e9f3c440981f1b5230a39e
1,796
py
Python
tests/shared/unit/util/test_key_transforms.py
jsangmeister/openslides-datastore-service
7170f008ccac0b31c37ffeee083b972bc314660d
[ "MIT" ]
2
2020-01-20T13:56:28.000Z
2020-02-17T10:56:26.000Z
tests/shared/unit/util/test_key_transforms.py
jsangmeister/openslides-datastore-service
7170f008ccac0b31c37ffeee083b972bc314660d
[ "MIT" ]
122
2020-01-16T15:13:37.000Z
2022-03-17T10:32:47.000Z
tests/shared/unit/util/test_key_transforms.py
jsangmeister/openslides-datastore-service
7170f008ccac0b31c37ffeee083b972bc314660d
[ "MIT" ]
7
2020-02-20T12:04:17.000Z
2021-11-23T17:54:33.000Z
from datastore.shared.util import ( collection_and_id_from_fqid, collection_from_collectionfield, collection_from_fqid, collectionfield_and_fqid_from_fqfield, collectionfield_from_fqid_and_field, field_from_collectionfield, fqfield_from_fqid_and_field, fqid_from_collection_and_id, id...
21.902439
86
0.728285
249
1,796
4.819277
0.080321
0.1
0.075
0.08
0.655833
0.4875
0.32
0.156667
0.056667
0.056667
0
0.010702
0.167595
1,796
81
87
22.17284
0.791973
0
0
0.208333
0
0
0.046214
0
0
0
0
0
0.229167
1
0.229167
false
0
0.041667
0
0.270833
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
60192d228495af3bd28104561f9439323e4faac8
1,010
py
Python
LineMe/utils.py
HevLfreis/LineMe
11456ca14d1ae61af65372df6b0cb5e1a1c03748
[ "PostgreSQL", "MIT" ]
6
2016-05-16T07:59:31.000Z
2018-08-19T17:51:18.000Z
LineMe/utils.py
HevLfreis/LineMe
11456ca14d1ae61af65372df6b0cb5e1a1c03748
[ "PostgreSQL", "MIT" ]
null
null
null
LineMe/utils.py
HevLfreis/LineMe
11456ca14d1ae61af65372df6b0cb5e1a1c03748
[ "PostgreSQL", "MIT" ]
5
2016-05-16T08:00:20.000Z
2021-08-13T01:41:18.000Z
#!/usr/bin/env python # coding: utf-8 # created by hevlhayt@foxmail.com # Date: 2016/10/26 # Time: 19:09 import hashlib import re from LineMe.settings import DEPLOYED_LANGUAGE def get_template_dir(appname): lang = DEPLOYED_LANGUAGE if lang == 'zh-cn': return appname + '/zh_cn/' else: re...
21.489362
113
0.556436
145
1,010
3.8
0.524138
0.072595
0.036298
0.050817
0
0
0
0
0
0
0
0.031161
0.30099
1,010
46
114
21.956522
0.749292
0.09505
0
0.225806
0
0
0.055006
0.027503
0
0
0
0
0
0
null
null
0
0.096774
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
60265c8b145fdf37ace8ddeade3e11860d5fa992
3,134
py
Python
tests/ui/pages/desktop/search.py
ruchikabgosain/addons-server
96d6626881df90b6d14902d7f0d480382a90ea16
[ "BSD-3-Clause" ]
2
2019-08-18T13:00:40.000Z
2019-11-17T02:18:04.000Z
tests/ui/pages/desktop/search.py
ruchikabgosain/addons-server
96d6626881df90b6d14902d7f0d480382a90ea16
[ "BSD-3-Clause" ]
6
2020-09-28T03:15:57.000Z
2021-09-28T23:33:19.000Z
tests/ui/pages/desktop/search.py
ruchikabgosain/addons-server
96d6626881df90b6d14902d7f0d480382a90ea16
[ "BSD-3-Clause" ]
null
null
null
from pypom import Page, Region from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as expected class Search(Page): _search_box_locator = (By.CLASS_NAME, 'AutoSearchInput-query') _submit_button_locator = (By.CLASS_NAME, 'AutoSearchInput-submit-button') _s...
38.219512
78
0.641991
355
3,134
5.332394
0.247887
0.050713
0.079239
0.10037
0.428949
0.344427
0.276809
0.251453
0.052826
0.052826
0
0.001286
0.255903
3,134
81
79
38.691358
0.810463
0.005743
0
0.131148
0
0
0.081672
0.047267
0
0
0
0
0
1
0.180328
false
0
0.065574
0.032787
0.508197
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
60274e3226e0a83060e5497d7b403d094d9da155
1,068
py
Python
course_catalog/migrations/0064_add_indexes.py
mitodl/open-discussions
ab6e9fac70b8a1222a84e78ba778a7a065c20541
[ "BSD-3-Clause" ]
12
2017-09-27T21:23:27.000Z
2020-12-25T04:31:30.000Z
course_catalog/migrations/0064_add_indexes.py
mitodl/open-discussions
ab6e9fac70b8a1222a84e78ba778a7a065c20541
[ "BSD-3-Clause" ]
3,293
2017-06-30T18:16:01.000Z
2022-03-31T18:01:34.000Z
course_catalog/migrations/0064_add_indexes.py
mitodl/open-discussions
ab6e9fac70b8a1222a84e78ba778a7a065c20541
[ "BSD-3-Clause" ]
1
2020-04-13T12:19:57.000Z
2020-04-13T12:19:57.000Z
# Generated by Django 2.2.10 on 2020-03-31 16:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("contenttypes", "0002_remove_content_type_name"), ("course_catalog", "0063_intructor_ordering"), ] operations = [ migrations.AlterFi...
29.666667
80
0.581461
88
1,068
6.840909
0.590909
0.054817
0.109635
0
0
0
0
0
0
0
0
0.035762
0.293071
1,068
35
81
30.514286
0.761589
0.043071
0
0.310345
1
0
0.237255
0.05098
0
0
0
0
0
1
0
false
0
0.034483
0
0.137931
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6028435eeaa0ec83c9e3e654d39cc09e258c12f1
385
py
Python
RRMaps/test_timer.py
ferdn4ndo/rrmaps
54e96144b9a3956d4570bd8c2414634bf673d472
[ "MIT" ]
null
null
null
RRMaps/test_timer.py
ferdn4ndo/rrmaps
54e96144b9a3956d4570bd8c2414634bf673d472
[ "MIT" ]
null
null
null
RRMaps/test_timer.py
ferdn4ndo/rrmaps
54e96144b9a3956d4570bd8c2414634bf673d472
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from time import sleep from random import random from threading import Timer def timeout(): print "Alarm!" t = Timer(10.0, timeout) t.start() # After 10 seconds, "Alarm!" will be printed sleep(5.0) if random() < 0.5: # But half of the time t.cancel...
22.647059
67
0.623377
58
385
4.137931
0.637931
0
0
0
0
0
0
0
0
0
0
0.034722
0.251948
385
17
68
22.647059
0.798611
0.345455
0
0
0
0
0.060484
0
0
0
0
0
0
0
null
null
0
0.272727
null
null
0.181818
0
0
0
null
0
0
0
0
0
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
60286e38082adcab70cf62568969e49871c9443e
2,190
py
Python
PS03/first50.py
explorerwjy/jw_anly502
ea3312b6bd909b010906158436fb1bd4d431e6f8
[ "CC0-1.0" ]
2
2016-04-07T17:59:09.000Z
2016-04-08T05:22:15.000Z
PS03/first50.py
explorerwjy/jw_anly502
ea3312b6bd909b010906158436fb1bd4d431e6f8
[ "CC0-1.0" ]
null
null
null
PS03/first50.py
explorerwjy/jw_anly502
ea3312b6bd909b010906158436fb1bd4d431e6f8
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python2 # # # Small program to display the first 50 lines of a web log (chronically) # Creates a single mapper that maps every line to the same key, with the values # being the datetime and the original weblog line. # The reducer counts 50 # The one problem with this approach is that all of the keys ne...
32.205882
97
0.641096
321
2,190
4.320872
0.404984
0.072098
0.036049
0.03677
0.136265
0.122567
0.085076
0.085076
0.085076
0.085076
0
0.025316
0.278539
2,190
67
98
32.686567
0.852532
0.477169
0
0.137931
0
0
0.050893
0
0
0
0
0
0
1
0.206897
false
0
0.103448
0
0.37931
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
602a7318df547dc0e7cd1ed5d355839e61a1f965
2,054
py
Python
projDir/system/scripts/test.py
NCAR/lrose-projects-front
333a1607550fe94ea9cf5689160187baa82fc6cf
[ "BSD-2-Clause" ]
1
2018-12-03T19:51:14.000Z
2018-12-03T19:51:14.000Z
projDir/system/scripts/test.py
NCAR/lrose-projects-front
333a1607550fe94ea9cf5689160187baa82fc6cf
[ "BSD-2-Clause" ]
null
null
null
projDir/system/scripts/test.py
NCAR/lrose-projects-front
333a1607550fe94ea9cf5689160187baa82fc6cf
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # utility to check that h2odial transferred data from datetime import datetime, timedelta import os,os.path import smtplib import sys import time global receivers #receivers = [ "spuler@ucar.edu", "7207712435@txt.att.net", #"bruce@ucar.edu", "3038340147@vtext.com", #"mhayman@ucar.edu","7203001...
26.333333
70
0.666504
282
2,054
4.77305
0.432624
0.026003
0.020059
0.057949
0.15899
0.135215
0.060921
0.060921
0
0
0
0.042388
0.184518
2,054
77
71
26.675325
0.761194
0.203019
0
0.170213
0
0
0.254615
0.068746
0
0
0
0
0
0
null
null
0
0.106383
null
null
0.106383
0
0
0
null
0
0
0
0
0
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
602e5ee2412367acdbfe294f74bd7b33f20c4b91
2,657
py
Python
scikit-learn-weighted_kde/sklearn/preprocessing/_function_transformer.py
RTHMaK/git-squash-master
76c4c8437dd18114968e69a698f4581927fcdabf
[ "BSD-2-Clause" ]
null
null
null
scikit-learn-weighted_kde/sklearn/preprocessing/_function_transformer.py
RTHMaK/git-squash-master
76c4c8437dd18114968e69a698f4581927fcdabf
[ "BSD-2-Clause" ]
null
null
null
scikit-learn-weighted_kde/sklearn/preprocessing/_function_transformer.py
RTHMaK/git-squash-master
76c4c8437dd18114968e69a698f4581927fcdabf
[ "BSD-2-Clause" ]
null
null
null
from ..base import BaseEstimator, TransformerMixin from ..utils import check_array def _identity(X): """The identity function. """ return X class FunctionTransformer(BaseEstimator, TransformerMixin): """Constructs a transformer from an arbitrary callable. A FunctionTransformer forwards its X (a...
35.426667
77
0.674068
367
2,657
4.80654
0.362398
0.047619
0.027211
0.019274
0.057823
0.057823
0.027211
0
0
0
0
0.002051
0.26609
2,657
74
78
35.905405
0.902564
0.607828
0
0.086957
0
0
0
0
0
0
0
0
0
1
0.173913
false
0.130435
0.086957
0
0.434783
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
60312905ba02eedb97dc78701ca3db1d0f5dd1a6
3,028
py
Python
KamiRunner.py
DanielTakeshi/AI_Final_Project_GO
35a4eb81d0a50c07edf212298f38470a28928ece
[ "FTL" ]
1
2021-03-29T01:51:54.000Z
2021-03-29T01:51:54.000Z
KamiRunner.py
DanielTakeshi/AI_Final_Project_GO
35a4eb81d0a50c07edf212298f38470a28928ece
[ "FTL" ]
null
null
null
KamiRunner.py
DanielTakeshi/AI_Final_Project_GO
35a4eb81d0a50c07edf212298f38470a28928ece
[ "FTL" ]
null
null
null
#! /usr/bin/env python import os.path,subprocess, sys from subprocess import STDOUT,PIPE,Popen from threading import Thread from Queue import Queue, Empty def enqueue_output(outpipe, queue, directionstring): # for every line coming in from the standard out, we put it in the input queue # outpipe.readline bloc...
36.926829
123
0.687913
373
3,028
5.560322
0.372654
0.02893
0.027483
0.036162
0.156702
0.067502
0.037608
0.037608
0
0
0
0.002115
0.219287
3,028
81
124
37.382716
0.875212
0.259247
0
0.083333
0
0
0.085843
0
0
0
0
0
0
0
null
null
0.020833
0.083333
null
null
0.0625
0
0
0
null
0
0
0
0
0
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
6034578fa3626807d6f687a7cf3ba37588f9389f
1,186
py
Python
src/bidding-server/app/config.py
raywu60kg/mini-demand-side-platform
a9613c4cf955d72174d8c5d8638ddcd0365bfb68
[ "MIT" ]
null
null
null
src/bidding-server/app/config.py
raywu60kg/mini-demand-side-platform
a9613c4cf955d72174d8c5d8638ddcd0365bfb68
[ "MIT" ]
null
null
null
src/bidding-server/app/config.py
raywu60kg/mini-demand-side-platform
a9613c4cf955d72174d8c5d8638ddcd0365bfb68
[ "MIT" ]
null
null
null
from pydantic import BaseModel import os feature_mapping = { 0: {"layout_style": "AB"}, 1: {"layout_style": "RU"}, 2: {"layout_style": "GY"}, 3: {"layout_style": "MR"}, 4: {"layout_style": "BK"}, 5: {"layout_style": "BX"}, 6: {"layout_style": "RZ"}, 7: {"layout_style": "TY"}, 8: {"c...
24.708333
73
0.640809
149
1,186
4.892617
0.496644
0.135802
0.131687
0.05487
0.090535
0.090535
0
0
0
0
0
0.02238
0.171164
1,186
48
74
24.708333
0.719227
0
0
0.054054
0
0
0.314238
0
0
0
0
0
0
0
null
null
0.027027
0.054054
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
603540c61a96b27c1885c6b93fc61c5b3d333e20
24,349
py
Python
google/cloud/bigquery/reservation_v1/types/reservation.py
shollyman/python-bigquery-reservation
f65f8c2d3f1e7a259f2a474e7b6895a27a25c22a
[ "Apache-2.0" ]
null
null
null
google/cloud/bigquery/reservation_v1/types/reservation.py
shollyman/python-bigquery-reservation
f65f8c2d3f1e7a259f2a474e7b6895a27a25c22a
[ "Apache-2.0" ]
null
null
null
google/cloud/bigquery/reservation_v1/types/reservation.py
shollyman/python-bigquery-reservation
f65f8c2d3f1e7a259f2a474e7b6895a27a25c22a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
35.545985
132
0.678714
2,641
24,349
6.199167
0.141613
0.037259
0.055888
0.041046
0.597606
0.564073
0.485219
0.391278
0.34956
0.316882
0
0.009461
0.235985
24,349
684
133
35.597953
0.870612
0.615672
0
0.300493
0
0
0.091294
0.084626
0
0
0
0
0
1
0.019704
false
0
0.019704
0.019704
0.541872
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
6038aaba814ddd6c158876c7cf218885496d359d
839
py
Python
test/python/test_push.py
yiranwang52/makisu
6dfcad3b2c521f4f60c00c3847c737579cd63a65
[ "Apache-2.0" ]
2,355
2018-11-16T18:43:22.000Z
2021-05-04T04:07:07.000Z
test/python/test_push.py
yiranwang52/makisu
6dfcad3b2c521f4f60c00c3847c737579cd63a65
[ "Apache-2.0" ]
187
2018-11-16T18:55:26.000Z
2021-04-27T11:23:23.000Z
test/python/test_push.py
yiranwang52/makisu
6dfcad3b2c521f4f60c00c3847c737579cd63a65
[ "Apache-2.0" ]
155
2018-11-18T13:36:12.000Z
2021-05-04T01:18:36.000Z
import os import subprocess import tempfile from .utils import new_image_name, docker_save_image, makisu_push_image, docker_run_image def test_push_simple(registry1, registry2, storage_dir, tmpdir): new_image = new_image_name() replica_image = new_image_name() _, image_tar_path = tempfile.mkstemp(dir='/...
33.56
93
0.702026
110
839
5.018182
0.427273
0.086957
0.065217
0.061594
0.144928
0
0
0
0
0
0
0.011577
0.1764
839
24
94
34.958333
0.787265
0.0441
0
0.111111
0
0
0.057572
0
0
0
0
0.041667
0.111111
1
0.055556
false
0
0.222222
0
0.277778
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
60405a61cda7ea907527c5f17fd776b85de00c9f
3,393
py
Python
python2nix/pip_deps.py
proger/python2nix
79550f3f6fc0625996c7836f9f1cf9ea347716a4
[ "ISC" ]
8
2017-05-02T17:08:19.000Z
2021-09-19T15:32:30.000Z
python2nix/pip_deps.py
proger/python2nix
79550f3f6fc0625996c7836f9f1cf9ea347716a4
[ "ISC" ]
3
2015-01-21T10:07:47.000Z
2018-11-24T17:54:49.000Z
python2nix/pip_deps.py
proger/python2nix
79550f3f6fc0625996c7836f9f1cf9ea347716a4
[ "ISC" ]
4
2017-05-02T17:08:21.000Z
2020-02-11T05:07:35.000Z
#!/usr/bin/env python2.7 """ """ import sys import pip import tempfile import shutil # this stuff is a hack that is based on pip 1.5.4 source code (that has poor documentation) from pip.req import InstallRequirement, RequirementSet, parse_requirements from pip.download import PipSession from pip.commands import inst...
32.941748
123
0.672561
427
3,393
5.11007
0.407494
0.035747
0.011916
0.021082
0.04033
0.04033
0
0
0
0
0
0.003505
0.243148
3,393
102
124
33.264706
0.846184
0.058061
0
0.057971
0
0
0.025312
0
0
0
0
0
0
0
null
null
0.014493
0.130435
null
null
0.028986
0
0
0
null
0
0
0
0
0
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
60464303324663088880b8f5b6b3181cea954c6e
1,107
py
Python
examples/mountain.py
wptmdoorn/methcomp
6d024d873dc816a8835b21ec0375e0554dc86194
[ "MIT" ]
3
2020-09-26T23:45:43.000Z
2021-04-29T09:20:31.000Z
examples/mountain.py
wptmdoorn/methcomp
6d024d873dc816a8835b21ec0375e0554dc86194
[ "MIT" ]
23
2020-10-19T11:08:21.000Z
2021-06-29T19:21:02.000Z
examples/mountain.py
wptmdoorn/methcomp
6d024d873dc816a8835b21ec0375e0554dc86194
[ "MIT" ]
6
2019-12-10T09:01:27.000Z
2021-05-05T11:30:09.000Z
# -*- coding: utf-8 -*- import matplotlib.pyplot as plt from methcomp import mountain # Synthetic data for 3 methods method1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] method2 = [ 1.03, 2.05, 2.79, 3.67, 5.00, 5.82, 7.16, 7.69, 8.53, 10.38, 11...
17.030769
81
0.545619
195
1,107
3.066667
0.487179
0.013378
0.063545
0.083612
0.177258
0.09699
0
0
0
0
0
0.249682
0.290876
1,107
64
82
17.296875
0.512102
0.225836
0
0
0
0
0.052941
0
0
0
0
0
0
1
0
false
0
0.037037
0
0.037037
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6047b0aa2bf8c13276daa10c78f435a13290d759
8,396
py
Python
sp2d/views/admin/m_group_route.py
aagusti/sp2d
51122cdbb9f85bee91d08c3dd29fb1f7d1ae3d90
[ "MIT" ]
null
null
null
sp2d/views/admin/m_group_route.py
aagusti/sp2d
51122cdbb9f85bee91d08c3dd29fb1f7d1ae3d90
[ "MIT" ]
null
null
null
sp2d/views/admin/m_group_route.py
aagusti/sp2d
51122cdbb9f85bee91d08c3dd29fb1f7d1ae3d90
[ "MIT" ]
null
null
null
import os import uuid from ...tools import row2dict, xls_reader from datetime import datetime from sqlalchemy import not_, func from pyramid.view import ( view_config, ) from pyramid.httpexceptions import ( HTTPFound, ) import colander from deform import ( Form, widget, ValidationFailure, ...
34.269388
121
0.539781
864
8,396
5.121528
0.221065
0.044746
0.027119
0.021469
0.164972
0.113446
0.061469
0.052429
0.028023
0
0
0.0029
0.342901
8,396
244
122
34.409836
0.799166
0.015364
0
0.151832
0
0
0.0929
0.013781
0
0
0
0
0
0
null
null
0
0.068063
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
60481f727c616c716ec72ad1b1bf1c091e69a40c
3,892
py
Python
apps/xgds_subsea_app/scripts/concatAndSegmentVideo.py
xgds/xgds_subsea
43b6d97330afacae60989d9bf767fef1d5f3fd5e
[ "Apache-2.0" ]
2
2019-01-08T04:37:10.000Z
2019-06-17T19:34:34.000Z
apps/xgds_subsea_app/scripts/concatAndSegmentVideo.py
xgds/xgds_subsea
43b6d97330afacae60989d9bf767fef1d5f3fd5e
[ "Apache-2.0" ]
null
null
null
apps/xgds_subsea_app/scripts/concatAndSegmentVideo.py
xgds/xgds_subsea
43b6d97330afacae60989d9bf767fef1d5f3fd5e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import stat import datetime import json import subprocess from uuid import uuid4 from tzlocal import get_localzone from glob import glob from os.path import basename, splitext from validateCinedekVideo import checkVideoIntegrity from validateCinedekVideo import VideoSegmentJsonEncoder ...
46.333333
118
0.608684
421
3,892
5.527316
0.361045
0.009454
0.010314
0.013752
0.14783
0.054147
0.051569
0.051569
0.013752
0.013752
0
0.01166
0.250771
3,892
83
119
46.891566
0.786351
0.005139
0
0.055556
0
0.013889
0.264014
0.0496
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
604a60cb9260f1a53351ddb41a2b85395a0bb171
3,478
py
Python
tests/test_settings.py
fsbraun/djangocms-bootstrap5
368f736fa1ce264086493153a256eb90dd8c4df0
[ "BSD-3-Clause" ]
7
2022-01-28T14:21:14.000Z
2022-03-29T20:07:11.000Z
tests/test_settings.py
marksweb/djangocms-frontend
c74130cbd15cfacb588933bb4adaf1a7d780daaf
[ "BSD-3-Clause" ]
13
2022-02-23T21:10:07.000Z
2022-03-30T08:33:20.000Z
tests/test_settings.py
marksweb/djangocms-frontend
c74130cbd15cfacb588933bb4adaf1a7d780daaf
[ "BSD-3-Clause" ]
2
2022-02-07T14:48:11.000Z
2022-02-23T23:55:18.000Z
import os from cms.utils.compat import DJANGO_3_1 INSTALLED_APPS = [ "django.contrib.contenttypes", "django.contrib.auth", "django.contrib.sites", "django.contrib.sessions", "django.contrib.admin", "django.contrib.messages", "easy_thumbnails", "filer", "mptt", "cms", "menus...
28.276423
79
0.676826
343
3,478
6.635569
0.489796
0.134446
0.179262
0.014938
0.023726
0.023726
0
0
0
0
0
0.006133
0.20299
3,478
122
80
28.508197
0.814935
0.065842
0
0.019231
0
0
0.567417
0.4693
0
0
0
0
0
1
0
false
0.009615
0.038462
0
0.038462
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
604c1a2470d4f38cff708ce39936429b999df335
2,843
py
Python
src/ratekeeper_client.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
4
2021-10-17T11:17:59.000Z
2022-02-28T16:58:40.000Z
src/ratekeeper_client.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
17
2021-10-05T21:44:06.000Z
2022-03-31T16:58:40.000Z
src/ratekeeper_client.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
8
2021-09-02T18:55:49.000Z
2022-03-09T21:05:28.000Z
#!/usr/bin/env python ############################################################################### # # $Id$ # ############################################################################### #system imports import sys #enstore imports import Trace import generic_client import configuration_client #import udp_clien...
33.845238
79
0.589518
304
2,843
5.236842
0.365132
0.04397
0.024497
0.022613
0
0
0
0
0
0
0
0.003922
0.282448
2,843
83
80
34.253012
0.776471
0.185016
0
0
0
0
0.019635
0
0
0
0
0
0
0
null
null
0
0.133333
null
null
0.022222
0
0
0
null
0
0
0
0
0
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
604f4fb0a3297af340664aedbffee5ebf5e5245e
2,786
py
Python
localflavor/au/forms.py
Malomalsky/django-localflavor
663f9aa360d8ebe347f08a2d4bc1838a731c18fe
[ "BSD-3-Clause" ]
619
2015-01-08T15:49:06.000Z
2022-03-29T15:06:43.000Z
localflavor/au/forms.py
KonstantinKlepikov/django-localflavor
87133f6cea1799e0b5e073dbc727dc88746f8fa8
[ "BSD-3-Clause" ]
263
2015-01-03T14:08:52.000Z
2022-03-05T15:03:45.000Z
localflavor/au/forms.py
KonstantinKlepikov/django-localflavor
87133f6cea1799e0b5e073dbc727dc88746f8fa8
[ "BSD-3-Clause" ]
262
2015-01-05T12:55:07.000Z
2022-03-22T19:15:23.000Z
"""Australian-specific Form helpers.""" from django.forms.fields import CharField, RegexField, Select from django.utils.translation import gettext_lazy as _ from .au_states import STATE_CHOICES from .validators import AUBusinessNumberFieldValidator, AUCompanyNumberFieldValidator, AUTaxFileNumberFieldValidator class...
28.428571
116
0.647164
312
2,786
5.647436
0.349359
0.025539
0.023837
0.03235
0.434166
0.434166
0.434166
0.434166
0.434166
0.434166
0
0.01257
0.229002
2,786
97
117
28.721649
0.807728
0.227925
0
0.545455
0
0
0.033317
0
0
0
0
0
0
1
0.159091
false
0
0.090909
0
0.681818
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
6053473fc4c529b47fe10ff76a128ba657c3dbc8
591
py
Python
hgapp/games/migrations/0030_auto_20210517_2303.py
shadytradesman/The-Contract-Website
d8b353064f91c53ebab951dec784a0a36caba260
[ "Apache-2.0" ]
6
2020-10-03T12:15:05.000Z
2021-10-15T04:43:36.000Z
hgapp/games/migrations/0030_auto_20210517_2303.py
shadytradesman/The-Contract-Website
d8b353064f91c53ebab951dec784a0a36caba260
[ "Apache-2.0" ]
99
2020-06-04T17:43:56.000Z
2022-03-12T01:07:20.000Z
hgapp/games/migrations/0030_auto_20210517_2303.py
shadytradesman/The-Contract-Website
d8b353064f91c53ebab951dec784a0a36caba260
[ "Apache-2.0" ]
9
2020-06-06T16:39:09.000Z
2020-10-02T16:24:17.000Z
# Generated by Django 2.2.13 on 2021-05-17 23:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('games', '0029_auto_20210517_0421'), ] operations = [ migrations.AlterField( model_name='game', name='invitation_mod...
31.105263
249
0.631134
67
591
5.432836
0.746269
0.054945
0.093407
0.131868
0.153846
0
0
0
0
0
0
0.073753
0.219966
591
18
250
32.833333
0.715835
0.077834
0
0
1
0
0.327808
0.042357
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6053ca2ebc820197a0cd2354a51f9857c3e04c6d
13,089
py
Python
typednodes.py
milesrout/beatle
d18d9f33ad438d5cb5da3f7460bff7aba29038e2
[ "Artistic-2.0" ]
3
2017-10-27T01:22:15.000Z
2022-02-18T01:54:09.000Z
typednodes.py
milesrout/beatle
d18d9f33ad438d5cb5da3f7460bff7aba29038e2
[ "Artistic-2.0" ]
1
2018-08-29T14:13:09.000Z
2018-08-29T14:13:09.000Z
typednodes.py
milesrout/beatle
d18d9f33ad438d5cb5da3f7460bff7aba29038e2
[ "Artistic-2.0" ]
1
2021-05-07T19:14:00.000Z
2021-05-07T19:14:00.000Z
from collections import namedtuple class EmptyList: def __str__(self): return '[]' def __repr__(self): return 'EmptyList()' class EmptySet: def __str__(self): return '{}' def __repr__(self): return 'EmptySet()' class EmptyDict: def __str__(self): return '...
26.021869
85
0.627703
1,462
13,089
5.387141
0.172367
0.107288
0.090782
0.167979
0.308532
0.201879
0.168233
0.14322
0.092814
0.060056
0
0.002087
0.231263
13,089
502
86
26.073705
0.78066
0.706242
0
0.097561
0
0
0.256718
0
0
0
0
0
0
1
0.134146
false
0.02439
0.012195
0.097561
0.353659
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
6055d4dda7b0d6cfcaa29f2a64736907547ad6c0
1,552
py
Python
tests/unit_tests/test_run.py
MauriceKarrenbrock/PythonAuxiliaryFunctions
c843456fbeb5bce22f32436534c05c928e42c831
[ "BSD-3-Clause" ]
null
null
null
tests/unit_tests/test_run.py
MauriceKarrenbrock/PythonAuxiliaryFunctions
c843456fbeb5bce22f32436534c05c928e42c831
[ "BSD-3-Clause" ]
null
null
null
tests/unit_tests/test_run.py
MauriceKarrenbrock/PythonAuxiliaryFunctions
c843456fbeb5bce22f32436534c05c928e42c831
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable=missing-docstring # pylint: disable=redefined-outer-name # pylint: disable=no-self-use ############################################################# # Copyright (c) 2020-2020 Maurice Karrenbrock # # # # Thi...
28.218182
73
0.581186
150
1,552
5.84
0.44
0.082192
0.159817
0.173516
0.593607
0.593607
0.593607
0.593607
0.593607
0.46347
0
0.010318
0.250644
1,552
54
74
28.740741
0.742906
0.217139
0
0.64
0
0
0.148916
0.145146
0
0
0
0
0.16
1
0.08
false
0
0.12
0
0.24
0.16
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
60563dbb313e313c066f4e9dc87df9e8ea99d7fb
4,676
py
Python
merci/metrics.py
isabella232/merci-py
515e8b2ec0545642cd902d60146f42965b24b772
[ "Apache-2.0" ]
1
2019-04-02T23:54:20.000Z
2019-04-02T23:54:20.000Z
merci/metrics.py
medallia/merci-py
515e8b2ec0545642cd902d60146f42965b24b772
[ "Apache-2.0" ]
1
2022-02-19T12:30:52.000Z
2022-02-19T12:30:52.000Z
merci/metrics.py
isabella232/merci-py
515e8b2ec0545642cd902d60146f42965b24b772
[ "Apache-2.0" ]
2
2019-04-04T04:01:42.000Z
2022-02-19T10:30:08.000Z
# # Copyright 2019 Medallia, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
38.966667
127
0.696963
541
4,676
5.89464
0.221811
0.06397
0.06397
0.069301
0.53371
0.524929
0.524929
0.514895
0.514895
0.514895
0
0.009871
0.22006
4,676
119
128
39.294118
0.864546
0.434346
0
0.381818
0
0
0
0
0
0
0
0
0
1
0.363636
false
0
0.018182
0
0.472727
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
60692165150a3e79f658ca958ef9cced7989c512
970
py
Python
seqgen.py
jzfarmer/learning_python
279fc19d4405625b49f853575252bf1dee3cbb99
[ "MIT" ]
null
null
null
seqgen.py
jzfarmer/learning_python
279fc19d4405625b49f853575252bf1dee3cbb99
[ "MIT" ]
null
null
null
seqgen.py
jzfarmer/learning_python
279fc19d4405625b49f853575252bf1dee3cbb99
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import random import biotools as bt # setup parser = argparse.ArgumentParser( description='Generates random FASTA files.') # required arguments parser.add_argument('--count', required=True, type=int, metavar='<int>', help='number of sequences') parser.add_argument('--min', r...
30.3125
72
0.72268
135
970
5.133333
0.474074
0.077922
0.147186
0.082251
0.336219
0.246753
0.246753
0
0
0
0
0.001143
0.097938
970
32
73
30.3125
0.790857
0.060825
0
0
1
0
0.263216
0
0
0
0
0
0
1
0
false
0
0.136364
0
0.136364
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
606d49f62a01a8b5a0c14275b59170c6309d75bf
666
py
Python
wldata_backup/migrations/0001_initial.py
jakariapervez/cmis6
de279e5c586a77745ddd3d471599784606d50d15
[ "MIT" ]
null
null
null
wldata_backup/migrations/0001_initial.py
jakariapervez/cmis6
de279e5c586a77745ddd3d471599784606d50d15
[ "MIT" ]
7
2021-06-04T23:45:15.000Z
2022-03-12T00:44:14.000Z
wldata_backup/migrations/0001_initial.py
jakariapervez/cmis6
de279e5c586a77745ddd3d471599784606d50d15
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2021-02-10 12:03 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='SMS_info', fields=[ ('id', models.AutoField(a...
27.75
114
0.588589
72
666
5.333333
0.680556
0.078125
0.104167
0.125
0.171875
0.171875
0
0
0
0
0
0.039749
0.282282
666
23
115
28.956522
0.763598
0.064565
0
0
1
0
0.057971
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
606df653bf71cd58b32d0e087f539de8b7897349
2,094
py
Python
larcv/app/arxiv/arxiv/dbscan/test_dbscan.py
mmajewsk/larcv2
9ee74e42b293d547d3a8510fa2139b2d4ccf6b89
[ "MIT" ]
14
2017-10-19T15:08:29.000Z
2021-03-31T21:21:07.000Z
larcv/app/arxiv/arxiv/dbscan/test_dbscan.py
mmajewsk/larcv2
9ee74e42b293d547d3a8510fa2139b2d4ccf6b89
[ "MIT" ]
32
2017-10-25T22:54:06.000Z
2019-10-01T13:57:15.000Z
larcv/app/arxiv/arxiv/dbscan/test_dbscan.py
mmajewsk/larcv2
9ee74e42b293d547d3a8510fa2139b2d4ccf6b89
[ "MIT" ]
16
2017-12-07T12:04:40.000Z
2021-11-15T00:53:31.000Z
import os,time,sys import ROOT as rt from larcv import larcv from ROOT import dbscan,std import numpy as np colors = [ rt.kRed, rt.kBlue, rt.kMagenta, rt.kGreen, rt.kCyan ] npoints = 1000 ndims = 2 gauscenters = [(10,10),(2,2)] gauscovs = [ [[1,0],[0,1]], [[1,0.7],[0.7,1]] ] # gen pts and put them into ...
22.276596
65
0.641834
330
2,094
4.063636
0.393939
0.008949
0.011931
0.035794
0
0
0
0
0
0
0
0.046848
0.174308
2,094
93
66
22.516129
0.728745
0.064947
0
0.030303
0
0
0.048255
0
0
0
0
0
0
0
null
null
0
0.075758
null
null
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
607348178dee62195554843cc6e58111020c8137
8,659
bzl
Python
tools/databinding/databinding.bzl
pswaminathan/grab-bazel-common
5f441bccbeca5d3e8530647035e5db2b1708897c
[ "Apache-2.0" ]
null
null
null
tools/databinding/databinding.bzl
pswaminathan/grab-bazel-common
5f441bccbeca5d3e8530647035e5db2b1708897c
[ "Apache-2.0" ]
null
null
null
tools/databinding/databinding.bzl
pswaminathan/grab-bazel-common
5f441bccbeca5d3e8530647035e5db2b1708897c
[ "Apache-2.0" ]
null
null
null
load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kt_android_library") load(":databinding_aar.bzl", "databinding_aar") load(":databinding_classinfo.bzl", "direct_class_infos") load("@io_bazel_rules_kotlin//kotlin:jvm.bzl", "kt_jvm_library") load(":databinding_r_deps.bzl", "extract_r_txt_deps") load(":databinding_stubs...
44.865285
116
0.658737
1,052
8,659
5.264259
0.287072
0.048032
0.010834
0.01896
0.03467
0.010112
0
0
0
0
0
0.002355
0.264465
8,659
192
117
45.098958
0.867169
0.537129
0
0.075269
0
0
0.28564
0.138658
0
0
0
0.010417
0
1
0.021505
false
0
0
0
0.032258
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
607b704011dc6cb985e41c0803f91438bd718841
94,755
py
Python
test/py/ganeti.locking_unittest.py
apyrgio/snf-ganeti
c59bb92f5bf4a98d90b4f10fb509a5a2f11c65b7
[ "BSD-2-Clause" ]
null
null
null
test/py/ganeti.locking_unittest.py
apyrgio/snf-ganeti
c59bb92f5bf4a98d90b4f10fb509a5a2f11c65b7
[ "BSD-2-Clause" ]
null
null
null
test/py/ganeti.locking_unittest.py
apyrgio/snf-ganeti
c59bb92f5bf4a98d90b4f10fb509a5a2f11c65b7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # # Copyright (C) 2006, 2007, 2010 Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # 1. Redistributions of source code must retain the above copyright notice, # ...
35.107447
80
0.644483
11,658
94,755
5.122577
0.073512
0.030342
0.023025
0.032737
0.643999
0.598151
0.53318
0.476599
0.425208
0.377183
0
0.009406
0.216865
94,755
2,698
81
35.12046
0.795367
0.107498
0
0.526044
0
0
0.035429
0.001291
0
0
0
0
0.284167
0
null
null
0.000516
0.008252
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
607cb933936eafe9ebc8b7c36b680f19161d2567
58,850
py
Python
Scripts/WhatsGNU_main.py
ArwaAbbas/MakeGNU
fb4bfef914c40d953c09a059384d449b0dc62758
[ "MIT" ]
null
null
null
Scripts/WhatsGNU_main.py
ArwaAbbas/MakeGNU
fb4bfef914c40d953c09a059384d449b0dc62758
[ "MIT" ]
5
2020-03-25T13:08:45.000Z
2020-03-27T17:26:44.000Z
Scripts/WhatsGNU_main.py
ArwaAbbas/MakeGNU
fb4bfef914c40d953c09a059384d449b0dc62758
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # PROGRAM: WhatsGNU is a Python3 program that ranks protein sequences in a genome # faa file generated from annotation programs based on the number of observed # exact protein matches in a public or private database. # Copyright (C) 2019 Ahmed M. Moustafa #######################################...
45.269231
244
0.547018
6,692
58,850
4.591004
0.08682
0.017186
0.008333
0.012499
0.612766
0.573902
0.521954
0.501709
0.470462
0.441396
0
0.012717
0.335888
58,850
1,299
245
45.30408
0.77338
0.064996
0
0.509002
1
0.013912
0.177446
0.009894
0
0
0
0
0
1
0
false
0.000818
0.00982
0
0.00982
0.002455
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