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
95d4bf219897990197feea13feb7cf1258d214c8
6,298
py
Python
yadlt/core/layers.py
Perfect-SoftwareEngineer/Deep-Learning-Tensorflow
b191cd2c8ff9d8cb6e2c6dedcac4483fa7548366
[ "MIT" ]
null
null
null
yadlt/core/layers.py
Perfect-SoftwareEngineer/Deep-Learning-Tensorflow
b191cd2c8ff9d8cb6e2c6dedcac4483fa7548366
[ "MIT" ]
null
null
null
yadlt/core/layers.py
Perfect-SoftwareEngineer/Deep-Learning-Tensorflow
b191cd2c8ff9d8cb6e2c6dedcac4483fa7548366
[ "MIT" ]
null
null
null
"""Layer classes.""" from __future__ import absolute_import import abc import six import tensorflow as tf @six.add_metaclass(abc.ABCMeta) class BaseLayer(object): """Base layer interface.""" @abc.abstractmethod def forward(self): """Layer forward propagation.""" pass @abc.abstractm...
28.497738
77
0.563671
805
6,298
4.281988
0.154037
0.020888
0.023209
0.033072
0.531187
0.442994
0.400638
0.333623
0.333623
0.333623
0
0.007996
0.305017
6,298
220
78
28.627273
0.779529
0.18101
0
0.440299
0
0
0.033353
0.008439
0
0
0
0
0.014925
1
0.216418
false
0.119403
0.029851
0
0.350746
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
1
0
0
0
0
0
2
95dba8c035cf85f4ef8f4bc3e7a7c14c268076f1
1,797
py
Python
engine/src/valet/engine/search/filters/cpu_filter.py
onap/optf-fgps
1494071d0329698297c5d78ee0799dbff0b57e43
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
engine/src/valet/engine/search/filters/cpu_filter.py
onap/optf-fgps
1494071d0329698297c5d78ee0799dbff0b57e43
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
engine/src/valet/engine/search/filters/cpu_filter.py
onap/optf-fgps
1494071d0329698297c5d78ee0799dbff0b57e43
[ "Apache-2.0", "CC-BY-4.0" ]
1
2021-10-15T18:54:03.000Z
2021-10-15T18:54:03.000Z
# # ------------------------------------------------------------------------- # Copyright (c) 2019 AT&T Intellectual Property # # 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 # # ...
30.982759
76
0.606566
214
1,797
4.901869
0.518692
0.057197
0.028599
0.030505
0
0
0
0
0
0
0
0.0059
0.245409
1,797
57
77
31.526316
0.767699
0.530885
0
0.2
0
0
0.003681
0
0
0
0
0.017544
0
1
0.25
false
0
0
0.05
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
1
0
0
1
0
0
0
0
0
0
0
2
95eaee2ff327784e0d2a6285027d63a294194fa5
283
py
Python
Programming_Maester/Phoneketmon.py
Mayner0220/Programmers
42e4783a526506fb7d8208841a76201909ed5c5c
[ "Apache-2.0" ]
1
2021-04-01T06:19:02.000Z
2021-04-01T06:19:02.000Z
Programming_Maester/Phoneketmon.py
Mayner0220/Programmers
42e4783a526506fb7d8208841a76201909ed5c5c
[ "Apache-2.0" ]
null
null
null
Programming_Maester/Phoneketmon.py
Mayner0220/Programmers
42e4783a526506fb7d8208841a76201909ed5c5c
[ "Apache-2.0" ]
null
null
null
# https://programmers.co.kr/learn/courses/30/lessons/1845 def solution(nums): if len(set(nums)) <= len(nums)/2: return int(len(set(nums))) else: return int(len(nums)/2) print(solution([3,1,2,3])) print(solution([3,3,3,2,2,4])) print(solution([3,3,3,2,2,2]))
25.727273
57
0.618375
52
283
3.365385
0.442308
0.045714
0.24
0.171429
0.205714
0.205714
0.205714
0
0
0
0
0.099174
0.144876
283
11
58
25.727273
0.623967
0.194346
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0.375
0
0
0
null
0
1
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
2
95ec274e03ce16625cb08ace26548a81e6d7c252
3,903
py
Python
ooobuild/lo/xml/crypto/sax/xsax_event_keeper.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/xml/crypto/sax/xsax_event_keeper.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/xml/crypto/sax/xsax_event_keeper.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
37.171429
206
0.688189
486
3,903
5.417695
0.427984
0.064565
0.031903
0.032283
0.1485
0.095329
0.067983
0.067983
0.026586
0
0
0.024799
0.23546
3,903
104
207
37.528846
0.857574
0.517038
0
0.3125
0
0
0.173743
0.158067
0
0
0
0
0
1
0.3125
false
0
0.15625
0
0.625
0.03125
0
0
0
null
0
0
0
0
0
0
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
1
0
0
2
95f0995fad2f82fbbbdccca26aa5605a1c0767e1
84
py
Python
libcity/model/traffic_od_prediction/__init__.py
LibCity/Bigscity-LibCity-Docs-zh_CN
2be639c3fe7d75727ade18f473d6f625900f73f2
[ "Apache-2.0" ]
5
2021-09-28T12:32:50.000Z
2022-02-03T09:04:35.000Z
libcity/model/traffic_od_prediction/__init__.py
aptx1231/Bigscity-TrafficDL-Docs-zh_CN
2be639c3fe7d75727ade18f473d6f625900f73f2
[ "Apache-2.0" ]
null
null
null
libcity/model/traffic_od_prediction/__init__.py
aptx1231/Bigscity-TrafficDL-Docs-zh_CN
2be639c3fe7d75727ade18f473d6f625900f73f2
[ "Apache-2.0" ]
1
2021-12-16T05:10:35.000Z
2021-12-16T05:10:35.000Z
from libcity.model.traffic_od_prediction.GEML import GEML __all__ = [ "GEML" ]
14
57
0.738095
11
84
5.090909
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.166667
84
5
58
16.8
0.8
0
0
0
0
0
0.047619
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
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
2
2510cbb743f1f29e0bb13e1ae7ff3435645c3b4d
184
py
Python
libs/db_check.py
redpeacock78/bach_bot
086efe4d6eef05fbdff6af34534e54e43fd9af88
[ "MIT" ]
null
null
null
libs/db_check.py
redpeacock78/bach_bot
086efe4d6eef05fbdff6af34534e54e43fd9af88
[ "MIT" ]
null
null
null
libs/db_check.py
redpeacock78/bach_bot
086efe4d6eef05fbdff6af34534e54e43fd9af88
[ "MIT" ]
null
null
null
import mysql.connector as mydb conn = mydb.connect( host='mysql_container', port='3306', user='docker', password='docker', database='my_db' ) conn.is_connected()
15.333333
30
0.657609
23
184
5.130435
0.826087
0
0
0
0
0
0
0
0
0
0
0.027027
0.195652
184
11
31
16.727273
0.77027
0
0
0
0
0
0.195652
0
0
0
0
0
0
1
0
false
0.111111
0.111111
0
0.111111
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
252143e0b4bc8782465cc8f472bab67d3793cee0
1,129
py
Python
python/test_2020_04_2.py
wensby/advent-of-code
50cd7fa2d35674d868a79ac8c75be24a43267e2b
[ "MIT" ]
null
null
null
python/test_2020_04_2.py
wensby/advent-of-code
50cd7fa2d35674d868a79ac8c75be24a43267e2b
[ "MIT" ]
null
null
null
python/test_2020_04_2.py
wensby/advent-of-code
50cd7fa2d35674d868a79ac8c75be24a43267e2b
[ "MIT" ]
null
null
null
import importlib import unittest solution = importlib.import_module('2020_04_2') class Test2020Day4Part1(unittest.TestCase): def test_example1(self): input = ( 'eyr:1972 cid:100\n' 'hcl:#18171d ecl:amb hgt:170 pid:186cm iyr:2018 byr:1926\n' '\n' 'iyr:2019\n' 'hcl:#602927...
29.710526
82
0.578388
172
1,129
3.773256
0.488372
0.021572
0.015408
0
0
0
0
0
0
0
0
0.303659
0.273694
1,129
37
83
30.513514
0.487805
0
0
0.205882
0
0.029412
0.559787
0
0
0
0
0
0.029412
1
0.029412
false
0
0.088235
0
0.147059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
252c453ec6e9dc3416a26d47c38bcfb973477454
74
py
Python
python/sequences.py
saedyousef/Python-scratch
ba4bf88d1ad86beddc8c7c5e2f43c4e837e2861e
[ "MIT" ]
5
2020-07-20T17:47:08.000Z
2021-08-17T18:26:25.000Z
python/sequences.py
saedyousef/CS-50
ba4bf88d1ad86beddc8c7c5e2f43c4e837e2861e
[ "MIT" ]
null
null
null
python/sequences.py
saedyousef/CS-50
ba4bf88d1ad86beddc8c7c5e2f43c4e837e2861e
[ "MIT" ]
1
2021-06-29T19:49:46.000Z
2021-06-29T19:49:46.000Z
name = "Saeed" cordinates = (10.0, 20.0) names = ["Saeed", "Bob", "Mousa"]
24.666667
33
0.581081
11
74
3.909091
0.818182
0
0
0
0
0
0
0
0
0
0
0.095238
0.148649
74
3
33
24.666667
0.587302
0
0
0
0
0
0.24
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
2
255d6b11cbe644a12928787786f04d1940067a84
303
py
Python
setup.py
StrykerKKD/dropbox-backup
8ee692ef1de5be1e3257a627dc268b331694b2b8
[ "MIT" ]
null
null
null
setup.py
StrykerKKD/dropbox-backup
8ee692ef1de5be1e3257a627dc268b331694b2b8
[ "MIT" ]
null
null
null
setup.py
StrykerKKD/dropbox-backup
8ee692ef1de5be1e3257a627dc268b331694b2b8
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='dropboxbackup', version='0.1', py_modules=['dropboxbackup'], install_requires=[ 'click', 'dropbox', 'simple-crypt' ], entry_points=''' [console_scripts] dropboxbackup=dropboxbackup:cli ''', )
17.823529
39
0.574257
26
303
6.538462
0.846154
0
0
0
0
0
0
0
0
0
0
0.009259
0.287129
303
16
40
18.9375
0.777778
0
0
0
0
0
0.409241
0.10231
0
0
0
0
0
1
0
true
0
0.066667
0
0.066667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
255eb03b3149f28db58ee09e23382f4784f486dd
362
py
Python
leadmanager/leads/views.py
mydjangoandreactprojects/lead-manager
844c655dcd1010fb0b1cd889ddc94872aa4f15a0
[ "MIT" ]
1
2020-03-26T06:25:47.000Z
2020-03-26T06:25:47.000Z
leadmanager/leads/views.py
mydjangoandreactprojects/lead-manager
844c655dcd1010fb0b1cd889ddc94872aa4f15a0
[ "MIT" ]
null
null
null
leadmanager/leads/views.py
mydjangoandreactprojects/lead-manager
844c655dcd1010fb0b1cd889ddc94872aa4f15a0
[ "MIT" ]
null
null
null
from rest_framework import viewsets, permissions from leads.serializers import LeadSerializer from leads.models import Lead class LeadViewSet(viewsets.ModelViewSet): """Manage CRUD operations for Leads in the database""" queryset = Lead.objects.all() permission_classes = [ permissions.AllowAny ...
25.857143
58
0.756906
39
362
6.948718
0.717949
0.066421
0
0
0
0
0
0
0
0
0
0
0.179558
362
13
59
27.846154
0.912458
0.132597
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.777778
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
1
0
0
2
255edfec817ac332c0a59a30e33ffe4ca99dbfbc
207
py
Python
app/main/errors.py
BABAYAGI/newsapi
6127d51e702983f2928849bef08c5920f7d06a96
[ "MIT" ]
1
2019-10-15T08:16:17.000Z
2019-10-15T08:16:17.000Z
app/main/errors.py
BABAYAGI/newsapi
6127d51e702983f2928849bef08c5920f7d06a96
[ "MIT" ]
null
null
null
app/main/errors.py
BABAYAGI/newsapi
6127d51e702983f2928849bef08c5920f7d06a96
[ "MIT" ]
null
null
null
from flask import render_template from . import main @main.app_errorhandler(404) def fo_O_fo(error): """ Function to render the 404 error page """ return render_template('fo_O_fo.html'), 404
23
47
0.714976
32
207
4.40625
0.59375
0.198582
0.070922
0
0
0
0
0
0
0
0
0.053571
0.188406
207
9
47
23
0.785714
0.178744
0
0
0
0
0.077419
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
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
1
0
0
0
0
2
255f1d23b8f394dc79d9946c976e6a08c2991d2e
18,476
py
Python
Collage_generator/_insertion.py
alexliyihao/AAPI_code
81c6cc40a9efb4d4fedf6678c27aac83f5057a70
[ "MIT" ]
2
2020-11-29T17:00:52.000Z
2022-01-06T19:24:23.000Z
Collage_generator/_insertion.py
alexliyihao/AAPI_code
81c6cc40a9efb4d4fedf6678c27aac83f5057a70
[ "MIT" ]
null
null
null
Collage_generator/_insertion.py
alexliyihao/AAPI_code
81c6cc40a9efb4d4fedf6678c27aac83f5057a70
[ "MIT" ]
null
null
null
import PIL.Image as Img import numpy as np from tqdm.notebook import tqdm from PIL import ImageFilter import tables import time import gc """ all the insert/append function for collage generator _canvas_append takes the inserting operation, the rest are finding add_point logic """ class _insertion(): def _canvas_a...
54.662722
120
0.500758
2,231
18,476
3.983864
0.098162
0.118812
0.05063
0.033753
0.726035
0.697795
0.670905
0.661566
0.658078
0.658078
0
0.02108
0.414592
18,476
337
121
54.824926
0.800666
0.29974
0
0.791045
0
0
0.011417
0
0
0
0
0
0.004975
1
0.019901
false
0
0.034826
0
0.094527
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
256c5471eacba768e9791f30d6ef0762118cc682
181
py
Python
codility/1_3.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
3
2019-03-09T05:19:23.000Z
2019-04-06T09:26:36.000Z
codility/1_3.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2020-02-23T10:38:04.000Z
2020-02-23T10:38:04.000Z
codility/1_3.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2019-05-22T13:47:53.000Z
2019-05-22T13:47:53.000Z
def solution(S): rs = "" for i in S: if i != " ": rs += i else: rs += "%20" return rs S = "Mr John Smith" print(solution(S))
12.066667
23
0.381215
24
181
2.875
0.625
0.26087
0
0
0
0
0
0
0
0
0
0.020833
0.469613
181
14
24
12.928571
0.697917
0
0
0
0
0
0.093923
0
0
0
0
0
0
1
0.1
false
0
0
0
0.2
0.1
1
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
2
c24fdcfaa37586667c8318eb6776d1204e6b7822
6,043
py
Python
vendor/packages/nose/functional_tests/test_importer.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
2
2019-08-19T17:08:47.000Z
2019-10-05T11:37:02.000Z
vendor/packages/nose/functional_tests/test_importer.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
vendor/packages/nose/functional_tests/test_importer.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
1
2019-11-02T23:29:13.000Z
2019-11-02T23:29:13.000Z
import os import sys import unittest from nose.importer import Importer class TestImporter(unittest.TestCase): def setUp(self): self.dir = os.path.normpath(os.path.join(os.path.dirname(__file__), 'support')) self.imp = Importer() self._mods...
35.757396
78
0.580837
784
6,043
4.228316
0.133929
0.040121
0.080241
0.038009
0.561689
0.509502
0.478733
0.461237
0.415988
0.355354
0
0.029903
0.286116
6,043
168
79
35.970238
0.738526
0.027635
0
0.416667
0
0
0.117286
0.008183
0
0
0
0
0.272727
0
null
null
0
0.363636
null
null
0.007576
0
0
0
null
0
0
0
0
0
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
1
0
0
0
0
2
c2531eebc4b5c56768575d213a86688eb0c965b8
161
py
Python
rhg_compute_tools/__init__.py
dpa9694/rhg_compute_tools
f111c380e3672983fa62795346be631e62c12611
[ "MIT" ]
null
null
null
rhg_compute_tools/__init__.py
dpa9694/rhg_compute_tools
f111c380e3672983fa62795346be631e62c12611
[ "MIT" ]
2
2020-05-31T20:40:25.000Z
2020-07-15T16:51:55.000Z
rhg_compute_tools/__init__.py
dpa9694/rhg_compute_tools
f111c380e3672983fa62795346be631e62c12611
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Top-level package for RHG Compute Tools.""" __author__ = """Michael Delgado""" __email__ = 'mdelgado@rhg.com' __version__ = '0.2.1'
20.125
46
0.645963
21
161
4.380952
0.952381
0
0
0
0
0
0
0
0
0
0
0.028986
0.142857
161
7
47
23
0.637681
0.391304
0
0
0
0
0.391304
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
2
c2544d4b8163352d260ea54398086333ae611bb9
271
py
Python
apps/core/models/colabore.py
bispojr/observatorio-ufj-covid19
8667fae1367b95a7dfa8558fbac3b1b0b708af8d
[ "MIT" ]
3
2020-04-02T21:59:19.000Z
2020-12-03T12:37:26.000Z
apps/core/models/colabore.py
bispojr/observatorio-ufj-covid19
8667fae1367b95a7dfa8558fbac3b1b0b708af8d
[ "MIT" ]
68
2020-03-28T22:40:08.000Z
2020-07-08T18:04:07.000Z
apps/core/models/colabore.py
bispojr/observatorio-ufj-covid19
8667fae1367b95a7dfa8558fbac3b1b0b708af8d
[ "MIT" ]
5
2020-03-28T21:35:30.000Z
2020-06-10T01:28:14.000Z
class Colabore(): def getContext(self): return self.__contextColabore(self) def __contextColabore(self): context = { "grupo": "geral", "grupo_link": "saiba_mais", "titulo": "Observatório UFJ Covid-19 - Colabore" } return context
20.846154
50
0.630996
27
271
6.111111
0.666667
0.230303
0
0
0
0
0
0
0
0
0
0.009756
0.243542
271
13
51
20.846154
0.795122
0
0
0
0
0
0.265683
0
0
0
0
0
0
1
0.2
false
0
0
0.1
0.5
0
1
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
2
c25f9adb65d5dc5bc38b8b33443e4276d20956b1
685
py
Python
ATM/atm_function.py
nouranHnouh/FormusWorkshop-
7f69b9d2226209adcc6ecb208ac426eec7e86d2b
[ "MIT" ]
null
null
null
ATM/atm_function.py
nouranHnouh/FormusWorkshop-
7f69b9d2226209adcc6ecb208ac426eec7e86d2b
[ "MIT" ]
null
null
null
ATM/atm_function.py
nouranHnouh/FormusWorkshop-
7f69b9d2226209adcc6ecb208ac426eec7e86d2b
[ "MIT" ]
null
null
null
#this program is atm that withdraw any money amount #allowed papers: 100,50,10,5, and the rest of requests def withdraw(balance,request): if request>balance: print "can`t give you all this money" while request>0: if request>=100: request-=100 print "give 100" elif request>=50: request-=50 print "g...
13.7
55
0.659854
99
685
4.565657
0.393939
0.165929
0.19469
0.084071
0
0
0
0
0
0
0
0.091954
0.237956
685
49
56
13.979592
0.773946
0.151825
0
0
0
0
0.109375
0
0
0
0
0
0
0
null
null
0
0
null
null
0.24
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
c264fe174bb79ece1406b41e4cb858d0735178ff
1,140
py
Python
plugins/cuckoo/komand_cuckoo/actions/vpn_status/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/cuckoo/komand_cuckoo/actions/vpn_status/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/cuckoo/komand_cuckoo/actions/vpn_status/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Component: DESCRIPTION = "Returns VPN status" class Input: pass class Output: VPNS = "vpns" class VpnStatusInput(komand.Input): schema = json.loads(""" {} """) def __init__(self): super(self.__class__,...
16.764706
57
0.490351
102
1,140
5.245098
0.421569
0.059813
0.056075
0.059813
0.160748
0.160748
0.160748
0.160748
0.160748
0.160748
0
0.003953
0.334211
1,140
67
58
17.014925
0.700922
0.032456
0
0.290909
1
0
0.607629
0
0
0
0
0
0
1
0.036364
false
0.018182
0.036364
0
0.236364
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c268a7da87d9bb0526fdc4df929e276c63494567
8,095
py
Python
HW_new_contact.py
AnastasiiaSarkisova/Home-Work-1
9021e9323a08f9dd96323b763aa0b0e689df24f8
[ "Apache-2.0" ]
null
null
null
HW_new_contact.py
AnastasiiaSarkisova/Home-Work-1
9021e9323a08f9dd96323b763aa0b0e689df24f8
[ "Apache-2.0" ]
null
null
null
HW_new_contact.py
AnastasiiaSarkisova/Home-Work-1
9021e9323a08f9dd96323b763aa0b0e689df24f8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from selenium.webdriver.firefox.webdriver import WebDriver import unittest from group import Group from contact import Contact def is_alert_present(wd): try: wd.switch_to_alert().text return True except: return False class HW_new_contact(unittest.TestCase): ...
51.891026
112
0.652625
1,104
8,095
4.444746
0.128623
0.117383
0.254331
0.293458
0.648258
0.639495
0.314449
0.225189
0.205828
0.167108
0
0.017813
0.195553
8,095
155
113
52.225806
0.735719
0.002594
0
0.042553
0
0
0.182607
0.065783
0
0
0
0
0
1
0.085106
false
0.035461
0.028369
0
0.134752
0
0
0
0
null
0
1
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
2
c276131b5adb85398eba0cb67c7e33579e3497af
2,376
py
Python
src/models/SLEuth_model.py
NCBI-Codeathons/SLEuth
c74c05bbc07ce4c813ee46ab66cfb6487fdc6966
[ "MIT" ]
2
2019-11-07T22:24:49.000Z
2019-11-09T02:42:59.000Z
src/models/SLEuth_model.py
NCBI-Codeathons/STRATIFICATION-OF-SLE-PATIENT-COHORT-FOR-PRECISION-MEDICINE
c74c05bbc07ce4c813ee46ab66cfb6487fdc6966
[ "MIT" ]
null
null
null
src/models/SLEuth_model.py
NCBI-Codeathons/STRATIFICATION-OF-SLE-PATIENT-COHORT-FOR-PRECISION-MEDICINE
c74c05bbc07ce4c813ee46ab66cfb6487fdc6966
[ "MIT" ]
1
2020-06-06T18:47:21.000Z
2020-06-06T18:47:21.000Z
import sklearn from sklearn.cluster import KMeans from src.features.feature_selection import PCA_Variants2Gene_FeatureSelection class SLEuth(sklearn.base.TransformerMixin, sklearn.base.ClusterMixin): def __init__(self, cluster_num, variants_genes_path="../../data/interim/variants_top56_genes.csv", ...
44.830189
147
0.676347
332
2,376
4.674699
0.388554
0.006443
0.032861
0.032861
0.103093
0.048969
0.048969
0.048969
0
0
0
0.010585
0.244529
2,376
53
148
44.830189
0.854039
0.431397
0
0.090909
0
0
0.041631
0.036534
0
0
0
0
0
1
0.227273
false
0
0.136364
0.045455
0.590909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
c28e4edca7ae401126ff0a6fbb8cb56b375f7be5
195
py
Python
Regular Expression/Introduction/Matching Whitespace % Non-whitespace Characters/matching_whitespace_and_non-whitespace_characters.py
brianchiang-tw/HackerRank
02a30a0033b881206fa15b8d6b4ef99b2dc420c8
[ "MIT" ]
2
2020-05-28T07:15:00.000Z
2020-07-21T08:34:06.000Z
Regular Expression/Introduction/Matching Whitespace % Non-whitespace Characters/matching_whitespace_and_non-whitespace_characters.py
brianchiang-tw/HackerRank
02a30a0033b881206fa15b8d6b4ef99b2dc420c8
[ "MIT" ]
null
null
null
Regular Expression/Introduction/Matching Whitespace % Non-whitespace Characters/matching_whitespace_and_non-whitespace_characters.py
brianchiang-tw/HackerRank
02a30a0033b881206fa15b8d6b4ef99b2dc420c8
[ "MIT" ]
null
null
null
# Method_#1 #Regex_Pattern = r"\S\S\s\S\S\s\S\S" # Do not delete 'r'. # Method_#2 Regex_Pattern = r"(\S\S\s){2}(\S\S){1}" import re print(str(bool(re.search(Regex_Pattern, input()))).lower())
19.5
59
0.625641
40
195
2.925
0.45
0.17094
0.179487
0.17094
0.316239
0.316239
0.068376
0
0
0
0
0.023121
0.112821
195
10
59
19.5
0.653179
0.369231
0
0
0
0
0.172414
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
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
1
0
0
0
0
2
c28fad06e8a818ac6ddee1694bd9cf847cd0da24
205
py
Python
Semester 5 (PIP)/assignment1/prog4.py
MartyMiniac/ITER-Assignment
a7b355f40cc52a337ad90bb8328e54c4a9534530
[ "MIT" ]
14
2020-11-11T08:48:58.000Z
2022-02-26T03:59:05.000Z
Semester 5 (PIP)/assignment1/prog4.py
SKSTCODE42/ITER-Assignment
a7b355f40cc52a337ad90bb8328e54c4a9534530
[ "MIT" ]
4
2020-11-12T13:31:14.000Z
2021-06-21T05:41:34.000Z
Semester 5 (PIP)/assignment1/prog4.py
SKSTCODE42/ITER-Assignment
a7b355f40cc52a337ad90bb8328e54c4a9534530
[ "MIT" ]
10
2020-11-07T15:09:20.000Z
2022-02-26T03:56:50.000Z
regno='1941012661' year=2019 # print('My Regd. No is %s and I have taken admission in B. Tech. In %d.' %(regno, year)) print('My Regd. No is', regno,'and I have taken admission in B. Tech. In', year,'.' )
41
89
0.658537
38
205
3.552632
0.5
0.103704
0.162963
0.192593
0.681481
0.459259
0.459259
0.459259
0.459259
0
0
0.082353
0.170732
205
5
90
41
0.711765
0.42439
0
0
0
0
0.564103
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
1
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
2
c29405121608c5b0e9800d088104121ec6141017
7,242
py
Python
src/python/weblyzard_api/client/jesaja_ng.py
PhilippKuntschik/weblyzard_api
415df7d2c3e625e96636ad0ab91f3ba669db64ea
[ "Apache-2.0" ]
null
null
null
src/python/weblyzard_api/client/jesaja_ng.py
PhilippKuntschik/weblyzard_api
415df7d2c3e625e96636ad0ab91f3ba669db64ea
[ "Apache-2.0" ]
null
null
null
src/python/weblyzard_api/client/jesaja_ng.py
PhilippKuntschik/weblyzard_api
415df7d2c3e625e96636ad0ab91f3ba669db64ea
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ''' .. codeauthor: Albert Weichselbraun <albert.weichselbraun@htwchur.ch> .. codeauthor:: Heinz-Peter Lang <lang@weblyzard.com> ''' from __future__ import print_function from __future__ import unicode_literals from eWRT.ws.rest import MultiRESTClient from weblyzard_api.client ...
38.727273
140
0.609362
788
7,242
5.352792
0.244924
0.089616
0.060455
0.029872
0.44808
0.336652
0.319583
0.261735
0.261735
0.261735
0
0.003358
0.300884
7,242
186
141
38.935484
0.829745
0.375449
0
0.208333
0
0
0.139529
0.034439
0
0
0
0
0
1
0.25
false
0.041667
0.055556
0.069444
0.583333
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
c29433ef9d2c9ff9b5cb2a9ea24e62b20f20373a
395
py
Python
app/config/__init__.py
mstroud/pykj
2931892b19a697b20c9522dd017e135a1ad396b8
[ "MIT" ]
null
null
null
app/config/__init__.py
mstroud/pykj
2931892b19a697b20c9522dd017e135a1ad396b8
[ "MIT" ]
null
null
null
app/config/__init__.py
mstroud/pykj
2931892b19a697b20c9522dd017e135a1ad396b8
[ "MIT" ]
null
null
null
class Config(object): DEBUG = True DEVELOPMENT = True SECRET_KEY = 'do-i-really-need-this' SQLALCHEMY_DATABASE_URI = 'sqlite:///testing.db' SQLALCHEMY_TRACK_MODIFICATIONS = False KARAOKE_MEDIA_ROOT = "/path/to/app/static/media" class ProductionConfig(Config): DEVELOPMENT = False ...
30.384615
56
0.691139
45
395
5.866667
0.688889
0.136364
0.159091
0.204545
0
0
0
0
0
0
0
0
0.202532
395
12
57
32.916667
0.838095
0
0
0
0
0
0.232376
0.180157
0
0
0
0
0
1
0
false
0
0
0
1
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
1
0
0
2
c298ed848bd524b876312d8bab6fc24cd9b74131
28,847
py
Python
python-obj-system.py
AlexPl292/python-obj-system
7d0e743e4785989f54094ea0bac05e3681c308c2
[ "MIT" ]
54
2021-12-06T10:44:17.000Z
2022-02-16T23:35:16.000Z
python-obj-system.py
AlexPl292/python-obj-system
7d0e743e4785989f54094ea0bac05e3681c308c2
[ "MIT" ]
1
2022-01-22T07:09:16.000Z
2022-01-22T07:09:16.000Z
python-obj-system.py
AlexPl292/python-obj-system
7d0e743e4785989f54094ea0bac05e3681c308c2
[ "MIT" ]
4
2021-12-22T08:07:56.000Z
2022-03-10T01:51:40.000Z
#!/usr/bin/env python3 from mdpyformat import * import pprintex header_md("""Python object primer for Python3 / meta classes""" ) header_md("""Introduction""", nesting = 2) print_md(""" Python is good at creating the illusion of being a simple programming language. Sometimes this illusion fails, like when you have...
43.707576
720
0.733456
4,388
28,847
4.488605
0.121696
0.029854
0.026807
0.016399
0.462074
0.409271
0.385561
0.35134
0.309454
0.270309
0
0.00563
0.162582
28,847
659
721
43.7739
0.809703
0.010122
0
0.398169
0
0.176201
0.930223
0.157734
0
0
0
0
0.038902
1
0
true
0.02746
0.01373
0
0.032037
0.244851
0
0
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
1
0
0
0
0
0
0
2
c2a329ec349312cdbee649e9a5eb68a195101366
2,374
py
Python
libs/units/tests/test_string_reps.py
mscansian/drpexe-uploader
de17baf9085155a046b8e5f68b0b3191a2ce1847
[ "MIT" ]
null
null
null
libs/units/tests/test_string_reps.py
mscansian/drpexe-uploader
de17baf9085155a046b8e5f68b0b3191a2ce1847
[ "MIT" ]
null
null
null
libs/units/tests/test_string_reps.py
mscansian/drpexe-uploader
de17baf9085155a046b8e5f68b0b3191a2ce1847
[ "MIT" ]
null
null
null
"""Tests for string representations of Quantities and Units, i.e. __repr__ and __str__""" from units import unit from units.predefined import define_units from units.quantity import Quantity from units.registry import REGISTRY def test_quantity_repr(): """Developer-friendly string representation of quantities."""...
36.523077
77
0.607835
283
2,374
4.957597
0.233216
0.039914
0.159658
0.171062
0.550249
0.478974
0.377762
0.246614
0.098361
0.098361
0
0.011074
0.239259
2,374
64
78
37.09375
0.765781
0.329402
0
0
0
0
0.217505
0.067929
0
0
0
0
0.242424
1
0.30303
false
0
0.121212
0
0.424242
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
1
0
0
0
0
0
0
0
2
c2a90d53c2c37e84ce26a4aecf160f999dff6816
969
py
Python
fishpi/vehicle/test_quick.py
FishPi/FishPi-POCV---Command---Control
6df8e9db29c1b4769ddedb3a89a21fadae260709
[ "BSD-2-Clause" ]
18
2015-01-17T17:03:07.000Z
2020-10-17T06:38:26.000Z
fishpi/vehicle/test_quick.py
FishPi/FishPi-POCV---Command---Control
6df8e9db29c1b4769ddedb3a89a21fadae260709
[ "BSD-2-Clause" ]
null
null
null
fishpi/vehicle/test_quick.py
FishPi/FishPi-POCV---Command---Control
6df8e9db29c1b4769ddedb3a89a21fadae260709
[ "BSD-2-Clause" ]
9
2015-02-14T01:42:46.000Z
2019-08-26T20:24:36.000Z
#!/usr/bin/python # # FishPi - An autonomous drop in the ocean # # Simple test of PWM motor and servo drive # import logging import raspberrypi from time import sleep from drive_controller import AdafruitDriveController if __name__ == "__main__": logger = logging.getLogger() logger.setLevel(logging.DEBUG) ...
20.617021
78
0.668731
136
969
4.625
0.404412
0.101749
0.203498
0.135135
0.305246
0.305246
0.192369
0.152623
0.152623
0.152623
0
0.040523
0.210526
969
46
79
21.065217
0.781699
0.101135
0
0.419355
0
0
0.114583
0
0
0
0
0
0
0
null
null
0
0.129032
null
null
0.16129
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
c2bf82786883e88ae221354f9ad562aa51a42fc8
23,127
py
Python
my_version/craw_page_parse_2.py
xuerenlv/PaperWork
f096b57a80e8d771f080a02b925a22edbbee722a
[ "Apache-2.0" ]
1
2015-10-15T12:26:07.000Z
2015-10-15T12:26:07.000Z
my_version/craw_page_parse_2.py
xuerenlv/PaperWork
f096b57a80e8d771f080a02b925a22edbbee722a
[ "Apache-2.0" ]
null
null
null
my_version/craw_page_parse_2.py
xuerenlv/PaperWork
f096b57a80e8d771f080a02b925a22edbbee722a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on 2015-08-21 @author: xhj ''' import requests import StringIO import gzip import threading from loginer import Loginer import time from my_log import WeiboSearchLog import os import traceback from bs4 import BeautifulSoup import re from Queue import Queue import datetime from st...
37.727569
293
0.589657
2,921
23,127
4.305033
0.092776
0.031014
0.034195
0.028628
0.676024
0.598807
0.537336
0.483181
0.445089
0.425686
0
0.007777
0.293899
23,127
612
294
37.789216
0.762278
0.099667
0
0.505855
0
0
0.06028
0.007426
0
0
0
0
0
0
null
null
0.051522
0.04918
null
null
0.014052
0
0
0
null
0
0
0
0
0
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
1
0
0
0
0
0
2
c2c2bc98c89407c449beca19dbbedcbb96369738
246
py
Python
sureflap/resources/request_models.py
fabieu/sureflap-api
711bb32a7add64367fa3e15b25d52468f8aa7904
[ "Apache-2.0" ]
1
2020-12-03T16:43:55.000Z
2020-12-03T16:43:55.000Z
sureflap/resources/request_models.py
fabieu/sureflap-api
711bb32a7add64367fa3e15b25d52468f8aa7904
[ "Apache-2.0" ]
3
2021-07-14T21:41:53.000Z
2022-01-29T16:56:21.000Z
sureflap/resources/request_models.py
fabieu/sureflap-api
711bb32a7add64367fa3e15b25d52468f8aa7904
[ "Apache-2.0" ]
2
2021-02-13T12:11:22.000Z
2021-02-14T09:58:40.000Z
from datetime import datetime, time from enum import Enum from typing import Optional, Sequence, Union from pydantic import BaseModel class Direction(Enum): enum_1 = 1 enum_2 = 2 class PetLocationSet(BaseModel): where: Direction
16.4
44
0.756098
33
246
5.575758
0.515152
0
0
0
0
0
0
0
0
0
0
0.020202
0.195122
246
14
45
17.571429
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.444444
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
c2d85ba1664d0e7d0a642dbaf8af0b812fb9a534
320
py
Python
forums/__init__.py
sharebears/pulsar-forums
6c1152a181c30bb82c49556fd072f47c2eeaf1cb
[ "MIT" ]
null
null
null
forums/__init__.py
sharebears/pulsar-forums
6c1152a181c30bb82c49556fd072f47c2eeaf1cb
[ "MIT" ]
null
null
null
forums/__init__.py
sharebears/pulsar-forums
6c1152a181c30bb82c49556fd072f47c2eeaf1cb
[ "MIT" ]
null
null
null
from werkzeug import find_modules, import_string from forums import routes from forums.modifications import modify_core def init_app(app): with app.app_context(): for name in find_modules('forums', recursive=True): import_string(name) app.register_blueprint(routes.bp) modify_core()
21.333333
59
0.73125
43
320
5.232558
0.55814
0.097778
0
0
0
0
0
0
0
0
0
0
0.19375
320
14
60
22.857143
0.872093
0
0
0
0
0
0.01875
0
0
0
0
0
0
1
0.111111
false
0
0.444444
0
0.555556
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
1
0
0
2
c2e0b6b1770d351e8357e3bd5c3075735bda47ee
695
py
Python
django_monitor/price_monitor/spider/enterprise/enterprise/items.py
jasonljc/enterprise-price-monitor
616396243e909d3584f4cfcc53d4e156510da4bb
[ "MIT" ]
null
null
null
django_monitor/price_monitor/spider/enterprise/enterprise/items.py
jasonljc/enterprise-price-monitor
616396243e909d3584f4cfcc53d4e156510da4bb
[ "MIT" ]
null
null
null
django_monitor/price_monitor/spider/enterprise/enterprise/items.py
jasonljc/enterprise-price-monitor
616396243e909d3584f4cfcc53d4e156510da4bb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class EnterpriseItem(scrapy.Item): # define the fields for your item here like: searchTime = scrapy.Field() searchCriteria = scrapy.Field() ...
26.730769
51
0.684892
80
695
5.9
0.525
0.302966
0.088983
0
0
0
0
0
0
0
0
0.001792
0.197122
695
26
52
26.730769
0.844086
0.261871
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.066667
0
1
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
1
0
0
2
6c0dd11197119baf2f7c1d5775874b54734c6eff
554
py
Python
assets/tuned/daemon/tuned/profiles/functions/function_regex_search_ternary.py
sjug/cluster-node-tuning-operator
8654d1c9558d0d5ef03d14373c877ebc737f9736
[ "Apache-2.0" ]
53
2018-11-13T07:02:03.000Z
2022-03-25T00:00:04.000Z
assets/tuned/daemon/tuned/profiles/functions/function_regex_search_ternary.py
sjug/cluster-node-tuning-operator
8654d1c9558d0d5ef03d14373c877ebc737f9736
[ "Apache-2.0" ]
324
2018-10-02T14:18:54.000Z
2022-03-31T23:47:33.000Z
assets/tuned/daemon/tuned/profiles/functions/function_regex_search_ternary.py
sjug/cluster-node-tuning-operator
8654d1c9558d0d5ef03d14373c877ebc737f9736
[ "Apache-2.0" ]
54
2018-10-01T16:55:09.000Z
2022-03-28T13:56:53.000Z
import re from . import base class regex_search_ternary(base.Function): """ Ternary regex operator, it takes arguments in the following form STR1, REGEX, STR2, STR3 If REGEX matches STR1 (re.search is used), STR2 is returned, otherwise STR3 is returned """ def __init__(self): # 4 arguments super(regex_searc...
25.181818
74
0.725632
85
554
4.541176
0.482353
0.11399
0.186529
0.119171
0.139896
0
0
0
0
0
0
0.0282
0.16787
554
21
75
26.380952
0.809111
0.341155
0
0
0
0
0.056818
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.666667
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
6c0f4bbb43f54fa43e4df577a49de96ebd810921
969
py
Python
bitshares/aio/block.py
silverchen0402/python-bitshares
aafbcf5cd09e7bca99dd156fd60b9df8ba508630
[ "MIT" ]
102
2018-04-08T23:05:00.000Z
2022-03-31T10:10:03.000Z
bitshares/aio/block.py
silverchen0402/python-bitshares
aafbcf5cd09e7bca99dd156fd60b9df8ba508630
[ "MIT" ]
246
2018-04-03T12:35:49.000Z
2022-02-28T10:44:28.000Z
bitshares/aio/block.py
silverchen0402/python-bitshares
aafbcf5cd09e7bca99dd156fd60b9df8ba508630
[ "MIT" ]
128
2018-04-14T01:39:12.000Z
2022-03-25T08:56:51.000Z
# -*- coding: utf-8 -*- from .instance import BlockchainInstance from ..block import Block as SyncBlock, BlockHeader as SyncBlockHeader from graphenecommon.aio.block import ( Block as GrapheneBlock, BlockHeader as GrapheneBlockHeader, ) @BlockchainInstance.inject class Block(GrapheneBlock, SyncBlock): """...
25.5
75
0.721362
112
969
6.232143
0.535714
0.047278
0.068768
0.051576
0
0
0
0
0
0
0
0.002618
0.211558
969
37
76
26.189189
0.910995
0.521156
0
0.333333
0
0
0
0
0
0
0
0
0
1
0
true
0.166667
0.25
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
0
0
0
0
1
1
0
0
0
0
0
2
6c2a16cd533af1320b7486ce971ab489987fbb0b
806
py
Python
CelestialMechanics/mu.py
Camiloasc1/AstronomyUNAL
0d533c1737e5328605c70f614024e1759e8d0962
[ "MIT" ]
null
null
null
CelestialMechanics/mu.py
Camiloasc1/AstronomyUNAL
0d533c1737e5328605c70f614024e1759e8d0962
[ "MIT" ]
null
null
null
CelestialMechanics/mu.py
Camiloasc1/AstronomyUNAL
0d533c1737e5328605c70f614024e1759e8d0962
[ "MIT" ]
null
null
null
import numpy as np from CelestialMechanics.kepler.constants import K def mu_sun(m2_over_m1: float) -> float: """ mu = k * sqrt(1 + m2/m1) :param m2_over_m1: :type m2_over_m1: :return: mu :rtype: float """ mu = K * np.sqrt(1. + m2_over_m1) return mu * mu def mu_na(n: float, a: ...
16.791667
49
0.545906
126
806
3.404762
0.301587
0.055944
0.074592
0.125874
0.181818
0
0
0
0
0
0
0.051282
0.322581
806
47
50
17.148936
0.734432
0.41067
0
0
0
0
0
0
0
0
0
0
0
1
0.3
false
0
0.3
0
0.9
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
1
0
0
2
6c36540f75ff0aa4e3d1fa481631b799e5a9132c
1,041
py
Python
portfolio_pj/portfolio_app/views.py
duynb92/portfolio_site
f6898e8d1c3a67aa8dc6eafc7e4804e81dc46063
[ "MIT" ]
null
null
null
portfolio_pj/portfolio_app/views.py
duynb92/portfolio_site
f6898e8d1c3a67aa8dc6eafc7e4804e81dc46063
[ "MIT" ]
null
null
null
portfolio_pj/portfolio_app/views.py
duynb92/portfolio_site
f6898e8d1c3a67aa8dc6eafc7e4804e81dc46063
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render from models import * # Create your views here. def index(req): context = HomeContext("Home", Facade.getSkills(), Facade.getHobbies()) return render(req, 'index.html', context=vars(context)) def profile(req): ...
33.580645
80
0.727185
125
1,041
5.952
0.352
0.096774
0.120968
0.05914
0.067204
0
0
0
0
0
0
0.003319
0.131604
1,041
31
81
33.580645
0.81969
0.043228
0
0
0
0
0.118712
0.021127
0
0
0
0
0
1
0.285714
false
0
0.142857
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
6c3eef3ce318f9f2ea78b8b3df0a26bfa302ee81
106
py
Python
src/pythonFEA/defaults.py
honzatomek/pythonFEA
c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7
[ "MIT" ]
null
null
null
src/pythonFEA/defaults.py
honzatomek/pythonFEA
c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7
[ "MIT" ]
null
null
null
src/pythonFEA/defaults.py
honzatomek/pythonFEA
c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7
[ "MIT" ]
null
null
null
# DEFUALT SETUP FOR NUMBERS DEFAULT_FLOAT = float # DEFAULT SETUP FOR STRINGS DEFAULT_LABEL_LENGTH = 120
17.666667
27
0.801887
15
106
5.466667
0.666667
0.195122
0
0
0
0
0
0
0
0
0
0.033708
0.160377
106
5
28
21.2
0.88764
0.481132
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
2
6c5b5d2beb7892b3713dc1291924921532e74885
1,795
py
Python
encommon/tests/test_times.py
enasisnetwork/encommon-py
c2bb1412171c84fe2917a23b535a6db1b5f523c1
[ "MIT" ]
null
null
null
encommon/tests/test_times.py
enasisnetwork/encommon-py
c2bb1412171c84fe2917a23b535a6db1b5f523c1
[ "MIT" ]
null
null
null
encommon/tests/test_times.py
enasisnetwork/encommon-py
c2bb1412171c84fe2917a23b535a6db1b5f523c1
[ "MIT" ]
null
null
null
#==============================================================================# # Enasis Network Common Libraries # # Python Functions Time Processing # #============================================================================...
54.393939
80
0.325905
105
1,795
5.561905
0.609524
0.071918
0.065068
0.078767
0.212329
0.212329
0.188356
0.188356
0
0
0
0.018786
0.228969
1,795
32
81
56.09375
0.403179
0.815042
0
0
0
0
0.179054
0
0
0
0
0
0.333333
1
0.166667
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
6c6a82e95bf8ebf0eb518403b616adac59f096b0
505
py
Python
autograd/tests/test_z_playground.py
pmaederyork/Dragrongrad
32794d561f8d0273592ed55d315013eab2c24b8b
[ "MIT" ]
3
2018-12-17T16:24:11.000Z
2020-06-03T22:40:50.000Z
autograd/tests/test_z_playground.py
cs207-project-group4/project-repo
d5ee88d2a7d16477d816d830ba90d241a05e3b48
[ "MIT" ]
2
2018-10-18T17:59:26.000Z
2018-12-08T16:06:34.000Z
autograd/tests/test_z_playground.py
cs207-project-group4/project-repo
d5ee88d2a7d16477d816d830ba90d241a05e3b48
[ "MIT" ]
1
2019-08-19T06:06:13.000Z
2019-08-19T06:06:13.000Z
# -*- coding: utf-8 -*- from autograd.blocks.trigo import sin, cos from autograd.variable import Variable import numpy as np import autograd as ad from autograd import config class test(): def __init__(self, x): self.x=x def parent(self): print('parent') class...
15.78125
42
0.552475
63
505
4.238095
0.460317
0.134831
0.082397
0.11236
0.262172
0
0
0
0
0
0
0.005917
0.330693
505
31
43
16.290323
0.784024
0.041584
0
0.222222
0
0
0.022822
0
0
0
0
0
0
1
0.222222
false
0
0.277778
0
0.611111
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
1
0
0
0
0
1
0
0
2
6c6ff29fbade9a404f47dd54164a91e8e0704f4b
664
py
Python
opfu/stock.py
XavierDingRotman/OptionsFutures
bab0de0d66efe39f05e9ddf59460ec76547d9ada
[ "Apache-2.0" ]
1
2020-07-05T20:54:15.000Z
2020-07-05T20:54:15.000Z
opfu/stock.py
XavierDingRotman/OptionsFutures
bab0de0d66efe39f05e9ddf59460ec76547d9ada
[ "Apache-2.0" ]
null
null
null
opfu/stock.py
XavierDingRotman/OptionsFutures
bab0de0d66efe39f05e9ddf59460ec76547d9ada
[ "Apache-2.0" ]
null
null
null
from opfu.security import Security class Stock(Security): def __init__(self, S, T, is_short=False): self.S = S self.K = self.S self.T = T Security.__init__(self, is_short, price=0) def payoff_long(self, P): return P - self.S def graph_payoff(self, start=0, end=Non...
23.714286
55
0.554217
95
664
3.705263
0.4
0.085227
0.045455
0.113636
0
0
0
0
0
0
0
0.022573
0.332831
664
27
56
24.592593
0.772009
0
0
0.095238
0
0
0.019578
0
0
0
0
0
0
1
0.238095
false
0
0.047619
0.095238
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
6c74c309dcd00dafc4c1aae00a0c378fd733102d
1,105
py
Python
src/user/models.py
fga-gpp-mds/2017.2-Grupo12
a90f94d0d497f625ab82ef44a907561f3bfa835f
[ "MIT" ]
6
2017-10-02T12:07:40.000Z
2017-12-14T11:40:07.000Z
src/user/models.py
fga-gpp-mds/2017.2-Grupo12
a90f94d0d497f625ab82ef44a907561f3bfa835f
[ "MIT" ]
92
2017-09-30T19:14:21.000Z
2017-12-14T04:41:16.000Z
src/user/models.py
fga-gpp-mds/2017.2-Grupo12
a90f94d0d497f625ab82ef44a907561f3bfa835f
[ "MIT" ]
3
2017-09-06T00:49:38.000Z
2018-07-13T00:32:37.000Z
from django.db import models from django.contrib.auth.models import User class Person(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) name = models.CharField(max_length=64, null=False) email = models.EmailField(max_length=100, null=False) class Advisor(Person): cpf = model...
29.078947
78
0.673303
129
1,105
5.674419
0.356589
0.110656
0.147541
0.196721
0.095628
0.095628
0.095628
0
0
0
0
0.019429
0.208145
1,105
37
79
29.864865
0.817143
0
0
0.214286
0
0
0.095928
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.678571
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
1
0
0
2
6c86a24e42a439643a1c92f29bdfc4a1de454d48
964
py
Python
tests/conftest.py
jwizzle/nerdchess
045726326abc3ff94af30bda0c66beff1ca52978
[ "WTFPL" ]
null
null
null
tests/conftest.py
jwizzle/nerdchess
045726326abc3ff94af30bda0c66beff1ca52978
[ "WTFPL" ]
null
null
null
tests/conftest.py
jwizzle/nerdchess
045726326abc3ff94af30bda0c66beff1ca52978
[ "WTFPL" ]
null
null
null
"""Fixtures for pytest.""" import pytest from nerdchess.board import Board from nerdchess import pieces @pytest.fixture def board_fixt(): """Wrap the boardfixt class as a pytest fixture.""" return BoardFixt(Board()) class BoardFixt(): """Helper functions to manipulate a board passed as fixture.""" ...
25.368421
67
0.631743
115
964
5.208696
0.434783
0.075125
0.043406
0
0
0
0
0
0
0
0
0.002809
0.261411
964
37
68
26.054054
0.838483
0.263485
0
0
0
0
0
0
0
0
0
0
0
1
0.210526
false
0
0.157895
0
0.526316
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
1
0
0
2
6c87ac082f2ea2bf7c87cad18eaf0cdd7451709c
869
py
Python
opennem/api/schema.py
paulculmsee/opennem
9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1
[ "MIT" ]
22
2020-06-30T05:27:21.000Z
2022-02-21T12:13:51.000Z
opennem/api/schema.py
paulculmsee/opennem
9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1
[ "MIT" ]
71
2020-08-07T13:06:30.000Z
2022-03-15T06:44:49.000Z
opennem/api/schema.py
paulculmsee/opennem
9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1
[ "MIT" ]
13
2020-06-30T03:28:32.000Z
2021-12-30T08:17:16.000Z
from typing import List, Optional from pydantic import BaseModel, Field class ApiBase(BaseModel): class Config: orm_mode = True anystr_strip_whitespace = True use_enum_values = True arbitrary_types_allowed = True validate_assignment = True class UpdateResponse(BaseModel)...
21.725
86
0.696203
94
869
6.340426
0.553191
0.036913
0.050336
0
0
0
0
0
0
0
0
0
0.223245
869
39
87
22.282051
0.882963
0.067894
0
0.166667
0
0
0.063197
0
0
0
0
0.025641
0
1
0
false
0
0.083333
0
0.791667
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
1
0
0
2
6c88a8da20ae18c022b5a983db40aed8a4ffb346
304
py
Python
test-examples/issue_678_reproduce.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
test-examples/issue_678_reproduce.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
test-examples/issue_678_reproduce.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
""" Test adding 4D followed by 5D image layers to the viewer Intially only 2 sliders should be present, then a third slider should be created. """ import numpy as np from skimage import data import napari with napari.gui_qt(): viewer = napari.view_image(np.random.random((2, 10, 50, 100, 100)))
19
72
0.733553
51
304
4.333333
0.764706
0.072398
0
0
0
0
0
0
0
0
0
0.056225
0.180921
304
15
73
20.266667
0.831325
0.457237
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.6
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
1
0
1
0
0
2
6664d9c361d76731e630fab7db18a3314ba27f7a
699
py
Python
ex022.py
nascimentobrenda24/PythonExercises
2055f42a0454ae25cba6a6457c85822eaad2df01
[ "MIT" ]
1
2021-11-23T21:41:25.000Z
2021-11-23T21:41:25.000Z
ex022.py
nascimentobrenda24/PythonExercises
2055f42a0454ae25cba6a6457c85822eaad2df01
[ "MIT" ]
null
null
null
ex022.py
nascimentobrenda24/PythonExercises
2055f42a0454ae25cba6a6457c85822eaad2df01
[ "MIT" ]
null
null
null
# Analisador de textos # Crie um programa que leia o nome completo de uma pessoa e mostre: # - O nome com todas as letras maiúsculas e minúsculas. # - Quantas letras ao todo (sem considerar espaços). print('=*'*20, 'CADASTRO', '=*'*20) nome = str(input('Nome Completo:')).strip()#Para ler com letras maiúsculas print(...
34.95
102
0.703863
105
699
4.666667
0.542857
0.057143
0.073469
0.057143
0
0
0
0
0
0
0
0.008361
0.144492
699
19
103
36.789474
0.811037
0.391989
0
0
0
0
0.40241
0
0
0
0
0.052632
0
1
0
false
0
0
0
0
0.75
0
0
0
null
0
0
0
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
1
0
2
66698e346f68c9e447122b0d937db33190f58a61
4,443
py
Python
tests/test_metrohash.py
thihara/pyfasthash
20a53f9bb7bf15f98e3e549f523b49e1e0f62e15
[ "Apache-2.0" ]
234
2015-02-05T13:41:58.000Z
2022-03-30T08:55:23.000Z
tests/test_metrohash.py
thihara/pyfasthash
20a53f9bb7bf15f98e3e549f523b49e1e0f62e15
[ "Apache-2.0" ]
50
2015-03-19T05:53:34.000Z
2022-03-30T16:20:17.000Z
tests/test_metrohash.py
thihara/pyfasthash
20a53f9bb7bf15f98e3e549f523b49e1e0f62e15
[ "Apache-2.0" ]
44
2015-04-23T18:51:43.000Z
2022-03-30T21:07:57.000Z
import pytest import pyhash def test_metro_64_1(hash_tester): hash_tester(hasher_type=pyhash.metro_64_1, bytes_hash=7555593383206836236, seed_hash=9613011798576657330, unicode_hash=5634638029758084150) @pytest.mark.skipif(not pyhash.build_with_int128, reason="req...
39.669643
83
0.765699
504
4,443
6.376984
0.136905
0.034848
0.059739
0.049782
0.630367
0.627878
0.627878
0.627878
0.627878
0.572495
0
0.29695
0.158677
4,443
111
84
40.027027
0.562868
0
0
0.230769
0
0
0.053117
0
0
0
0
0
0
1
0.205128
false
0
0.025641
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
666a08a2699afb54d288c230c2b9f22bf4716df5
1,375
py
Python
scaner/controllers/communities.py
dearbornlavern/scaner
401de0ec7caef5c5a23aedec106db136bd4e4658
[ "Apache-2.0" ]
12
2016-09-30T12:43:44.000Z
2022-02-17T17:17:02.000Z
scaner/controllers/communities.py
dearbornlavern/scaner
401de0ec7caef5c5a23aedec106db136bd4e4658
[ "Apache-2.0" ]
null
null
null
scaner/controllers/communities.py
dearbornlavern/scaner
401de0ec7caef5c5a23aedec106db136bd4e4658
[ "Apache-2.0" ]
7
2016-09-28T09:48:48.000Z
2020-05-15T04:56:11.000Z
from flask import current_app from scaner.utils import add_metadata import json # PRUEBA EXTRACION USUARIOS # @add_metadata() # def get(userId, fields=None, *args, **kwargs): # #get_task = current_app.tasks.get_users_from_twitter.delay() # get_task = current_app.tasks.execute_metrics.delay() # return {'res...
39.285714
87
0.749818
178
1,375
5.539326
0.235955
0.081136
0.099391
0.134888
0.419878
0.312373
0.208925
0.146045
0.075051
0
0
0.027228
0.118545
1,375
35
88
39.285714
0.786304
0.182545
0
0.173913
0
0
0.06362
0
0
0
0
0
0
1
0.217391
false
0
0.130435
0
0.565217
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
1
0
0
2
666ce6df66f28481199af4b25376a59418b9191f
395
py
Python
cct/cases/create_snapshot.py
LmangoLemon/mind
1b269acca41f840c5c71cb6c92ec92ecfb977ad4
[ "Apache-2.0" ]
null
null
null
cct/cases/create_snapshot.py
LmangoLemon/mind
1b269acca41f840c5c71cb6c92ec92ecfb977ad4
[ "Apache-2.0" ]
null
null
null
cct/cases/create_snapshot.py
LmangoLemon/mind
1b269acca41f840c5c71cb6c92ec92ecfb977ad4
[ "Apache-2.0" ]
null
null
null
import logging from time import sleep from cct.case import Case logger = logging.getLogger(__file__) class create_snapshot(Case): def pre_test(self): logger.info ('doing something before create snapshot') sleep(3) def process(self): logger.info('create snapshot') sleep(5)...
17.173913
62
0.668354
50
395
5.14
0.52
0.217899
0.163424
0.140078
0.217899
0
0
0
0
0
0
0.006667
0.240506
395
22
63
17.954545
0.85
0
0
0
0
0
0.194937
0
0
0
0
0
0
1
0.230769
false
0
0.230769
0
0.538462
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
1
0
0
0
0
0
0
0
2
66b70f0759d9cb9c2433981c7b3e962dee37c367
4,032
py
Python
basic/19-brownie/brownie_test/tests/exchange/test_eth_to_token.py
xiangzhengfeng/Dapp-Learning
813fe6e52898206046842d10ecf9eb68b7f336a1
[ "MIT" ]
987
2021-12-19T09:57:18.000Z
2022-03-31T15:39:45.000Z
basic/19-brownie/brownie_test/tests/exchange/test_eth_to_token.py
xiangzhengfeng/Dapp-Learning
813fe6e52898206046842d10ecf9eb68b7f336a1
[ "MIT" ]
30
2021-12-20T03:13:29.000Z
2022-03-31T15:00:23.000Z
basic/19-brownie/brownie_test/tests/exchange/test_eth_to_token.py
xiangzhengfeng/Dapp-Learning
813fe6e52898206046842d10ecf9eb68b7f336a1
[ "MIT" ]
207
2021-12-19T08:40:38.000Z
2022-03-31T13:10:02.000Z
from brownie import (accounts, web3) def test_eth_to_token_swap(HAY_token, hay_token_exchange): HAY_token.approve(hay_token_exchange, 10 * 10**18, {"from": accounts[0]}) # step 1: initialize exchange hay_token_exchange.initializeExchange(10 * 10**18, {"from": accounts[0], "amount": 5 * 10**18}) # th...
51.692308
117
0.705109
489
4,032
5.642127
0.198364
0.127582
0.156578
0.0917
0.677782
0.652048
0.640087
0.576296
0.576296
0.529902
0
0.190764
0.178323
4,032
77
118
52.363636
0.642016
0.282738
0
0.769231
0
0
0.02161
0
0
0
0
0
0.589744
1
0.076923
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
1
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
2
66b88bc537b297b0b6ea48d2a39575fd0626f252
232
py
Python
setup.py
h-rub/manzip
875e4ed75e08bd06b0d50698ecf1744ab3723e4c
[ "MIT" ]
null
null
null
setup.py
h-rub/manzip
875e4ed75e08bd06b0d50698ecf1744ab3723e4c
[ "MIT" ]
null
null
null
setup.py
h-rub/manzip
875e4ed75e08bd06b0d50698ecf1744ab3723e4c
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="manzip", version='1.0.0', py_modules=['manzip'], install_requires=[ 'Click', ], entry_points=''' [console_scripts] manzip=app:main ''', )
16.571429
28
0.547414
24
232
5.125
0.833333
0
0
0
0
0
0
0
0
0
0
0.018293
0.293103
232
14
29
16.571429
0.731707
0
0
0
0
0
0.330472
0
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
66bccd1b00412b945cbbdb0f6a0be3ab3a3ef37f
158
py
Python
tests/cli.py
joesitton/Ciphey
862555f13e3915428a2f4ada5538fdf0be77ffcd
[ "MIT" ]
9,908
2020-06-06T01:06:50.000Z
2022-03-31T21:22:57.000Z
tests/cli.py
joesitton/Ciphey
862555f13e3915428a2f4ada5538fdf0be77ffcd
[ "MIT" ]
423
2020-05-30T11:44:37.000Z
2022-03-18T03:15:30.000Z
tests/cli.py
joesitton/Ciphey
862555f13e3915428a2f4ada5538fdf0be77ffcd
[ "MIT" ]
714
2020-06-09T20:24:41.000Z
2022-03-29T15:28:53.000Z
import subprocess from sys import exit result = subprocess.check_output(["ciphey", "-q", "-t 'hello'"]) if "hello" in result: exit(0) else: exit(1)
15.8
64
0.651899
23
158
4.434783
0.73913
0
0
0
0
0
0
0
0
0
0
0.015504
0.183544
158
9
65
17.555556
0.775194
0
0
0
0
0
0.14557
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
1
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
2
66cc342e6fa18c2dd06d530c8ed54f8e34f04274
1,853
py
Python
scripts/bulkLoadUrls.py
conveyal/gtfs-data-manager
e7269fc1660f1816da269b1c116b43bdf758900b
[ "MIT" ]
25
2015-02-11T19:20:07.000Z
2021-03-10T07:53:29.000Z
scripts/bulkLoadUrls.py
conveyal/gtfs-data-manager
e7269fc1660f1816da269b1c116b43bdf758900b
[ "MIT" ]
53
2015-01-07T20:30:56.000Z
2016-10-10T12:47:22.000Z
scripts/bulkLoadUrls.py
conveyal/gtfs-data-manager
e7269fc1660f1816da269b1c116b43bdf758900b
[ "MIT" ]
3
2015-01-03T10:17:34.000Z
2015-11-10T10:44:27.000Z
#!/usr/bin/python # load many feeds to the GTFS data manager, from a csv with fields name and url # usage: bulkLoadFeeds.py file.csv http://server.example.com/ import csv from getpass import getpass from sys import argv import json from cookielib import CookieJar import urllib2 from urllib import urlencode if len(arg...
25.736111
115
0.611981
228
1,853
4.960526
0.495614
0.026525
0.026525
0
0
0
0
0
0
0
0
0.014012
0.268214
1,853
71
116
26.098592
0.820059
0.207232
0
0
0
0
0.149623
0
0
0
0
0
0
0
null
null
0.075
0.175
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
66d0333de9cb88854cae7ea5468d3e9e83ace47c
953
py
Python
quokka/ext/weasyprint.py
yencchen/quokka_epus
d64aeb9c5ca59ee4bdcd84381f9bb0504680f5f5
[ "MIT" ]
1
2020-10-31T03:57:07.000Z
2020-10-31T03:57:07.000Z
quokka/ext/weasyprint.py
yencchen/quokka_epus
d64aeb9c5ca59ee4bdcd84381f9bb0504680f5f5
[ "MIT" ]
null
null
null
quokka/ext/weasyprint.py
yencchen/quokka_epus
d64aeb9c5ca59ee4bdcd84381f9bb0504680f5f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import logging from flask import url_for logger = logging.getLogger() try: from flask_weasyprint import render_pdf import_error = False except (ImportError, OSError) as e: # print(""" # Error importing flask-weasyprint! # PDF support...
25.756757
74
0.684155
128
953
4.875
0.625
0.051282
0.035256
0
0
0
0
0
0
0
0
0.003968
0.206716
953
36
75
26.472222
0.821429
0.383001
0
0
0
0
0.069565
0.036522
0
0
0
0
0
1
0.142857
false
0
0.571429
0.071429
0.785714
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
0
1
0
1
0
0
2
66d0fa4f73c90e59d6dc87d8a6c39b035c3b58f1
392
py
Python
jupyter_server_terminals/__init__.py
blink1073/jupyter_server_terminals
cc0363421ab50fded26c8519ea4694bf1a391fce
[ "BSD-3-Clause-Clear" ]
3
2021-12-30T23:55:47.000Z
2022-02-18T01:14:54.000Z
jupyter_server_terminals/__init__.py
blink1073/jupyter_server_terminals
cc0363421ab50fded26c8519ea4694bf1a391fce
[ "BSD-3-Clause-Clear" ]
5
2021-12-26T21:27:11.000Z
2022-03-03T11:37:04.000Z
jupyter_server_terminals/__init__.py
blink1073/jupyter_server_terminals
cc0363421ab50fded26c8519ea4694bf1a391fce
[ "BSD-3-Clause-Clear" ]
4
2021-12-26T21:25:45.000Z
2022-01-27T02:47:10.000Z
from ._version import __version__ # noqa:F401 try: from .app import TerminalsExtensionApp except ModuleNotFoundError: import warnings warnings.warn("Could not import submodules") def _jupyter_server_extension_points(): # pragma: no cover return [ { "module": "jupyter_server_ter...
21.777778
59
0.663265
37
392
6.72973
0.702703
0.104418
0
0
0
0
0
0
0
0
0
0.010274
0.255102
392
17
60
23.058824
0.842466
0.066327
0
0
0
0
0.176309
0.077135
0
0
0
0
0
1
0.076923
true
0
0.307692
0.076923
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
dd083d9565ab68711f5686f12e467a2276370bf5
188
py
Python
python_module/numpy_module/numpy_test.py
panc-test/python-study
fb172ed4a4f7fb521de9a005cd55115ad63a5b6d
[ "MIT" ]
1
2021-09-17T09:32:56.000Z
2021-09-17T09:32:56.000Z
python_module/numpy_module/numpy_test.py
panc-test/python-study
fb172ed4a4f7fb521de9a005cd55115ad63a5b6d
[ "MIT" ]
2
2021-05-11T05:47:13.000Z
2021-05-11T05:48:10.000Z
python_module/numpy_module/numpy_test.py
panc-test/python-study
fb172ed4a4f7fb521de9a005cd55115ad63a5b6d
[ "MIT" ]
null
null
null
""" numpy模块 —— 数据分析 """ import numpy #创建矩阵 array = numpy.array([[1,2,3],[4,5,6]]) print(array,'\n',type(array)) #矩阵维度 print(array.ndim) #行数和列数 print(array.shape) #元素个数 print(array.size)
11.75
38
0.654255
32
188
3.90625
0.6875
0.32
0
0
0
0
0
0
0
0
0
0.035714
0.106383
188
16
39
11.75
0.696429
0.175532
0
0
0
0
0.013889
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.666667
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
1
0
2
dd093842c9dc2bff582de0e411627f80f0d5bed5
305
py
Python
flask_config.py
khanshifaul/Flask_Template_Skeleton
951ccb9fc73ff5a2d501f2bc6a742553b8177fc5
[ "Apache-2.0" ]
null
null
null
flask_config.py
khanshifaul/Flask_Template_Skeleton
951ccb9fc73ff5a2d501f2bc6a742553b8177fc5
[ "Apache-2.0" ]
null
null
null
flask_config.py
khanshifaul/Flask_Template_Skeleton
951ccb9fc73ff5a2d501f2bc6a742553b8177fc5
[ "Apache-2.0" ]
null
null
null
class Base(object): DEBUG = False TESTING = False class Production(Base): DEBUG = False TESTING = False class Staging(Base): DEBUG = True TESTING = False class Development(Base): DEBUG = True TESTING = True class Testing(Base): DEBUG = False TESTING = True
12.708333
24
0.629508
35
305
5.485714
0.285714
0.1875
0.265625
0.229167
0.28125
0
0
0
0
0
0
0
0.288525
305
23
25
13.26087
0.884793
0
0
0.666667
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
1
0
0
0
0
null
0
1
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
2
dd0c981b401b14bcc898b39cf9bb3a7382b0f82e
1,299
py
Python
bcs-ui/backend/helm/authtoken/views.py
kayinli/bk-bcs
93a0856175f7b066ef835921572c1cac590dbd8e
[ "Apache-2.0" ]
1
2021-11-16T08:15:13.000Z
2021-11-16T08:15:13.000Z
bcs-ui/backend/helm/authtoken/views.py
kayinli/bk-bcs
93a0856175f7b066ef835921572c1cac590dbd8e
[ "Apache-2.0" ]
null
null
null
bcs-ui/backend/helm/authtoken/views.py
kayinli/bk-bcs
93a0856175f7b066ef835921572c1cac590dbd8e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
34.184211
115
0.779831
175
1,299
5.702857
0.697143
0.06012
0.026052
0.032064
0
0
0
0
0
0
0
0.010055
0.157814
1,299
37
116
35.108108
0.902194
0.560431
0
0
0
0
0.024867
0
0
0
0
0
0
1
0.066667
false
0
0.333333
0.066667
0.733333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
dd13e1b360546b453646ec337688f0743f83b569
3,374
py
Python
pyrentals/test_pyrentals.py
asm128/pyrentals
862a0f78d93b18499555dd3c8c1effb7cae9f99b
[ "MIT" ]
null
null
null
pyrentals/test_pyrentals.py
asm128/pyrentals
862a0f78d93b18499555dd3c8c1effb7cae9f99b
[ "MIT" ]
null
null
null
pyrentals/test_pyrentals.py
asm128/pyrentals
862a0f78d93b18499555dd3c8c1effb7cae9f99b
[ "MIT" ]
null
null
null
from pyrentals import Cart import unittest class Test_test_pyrentals(unittest.TestCase): def test_method_empty(self): test_cart_instance = Cart() test_cart_instance.Rentals = {} return self.assertTrue(test_cart_instance.empty(), "Cart should be empty when it's just created.") def test_...
43.25641
116
0.648488
439
3,374
4.651481
0.145786
0.101861
0.203722
0.101371
0.721841
0.682664
0.654261
0.621939
0.60333
0.60333
0
0.017733
0.23118
3,374
77
117
43.818182
0.769468
0
0
0.602941
0
0
0.078245
0
0
0
0
0
0.161765
1
0.117647
false
0
0.029412
0
0.279412
0
0
0
0
null
0
1
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
2
dd1a3f013274c36a04a9e56b4c6a20cb322ded06
287
py
Python
python-safety/predict.py
alexeyinkin/geonames-to-json
6055d4f3484f859a784aa8b9bfd96682a74fcd1b
[ "MIT" ]
null
null
null
python-safety/predict.py
alexeyinkin/geonames-to-json
6055d4f3484f859a784aa8b9bfd96682a74fcd1b
[ "MIT" ]
null
null
null
python-safety/predict.py
alexeyinkin/geonames-to-json
6055d4f3484f859a784aa8b9bfd96682a74fcd1b
[ "MIT" ]
null
null
null
import numpy as np from model import get_model def get_trained_model(): model = get_model() model.load_weights('weights.ckpt') return model #model = get_fit_model('random.tsv') #inputs_raw = [[0,0,0,0,0]] #inputs_np = np.array(inputs_raw) #print(model.predict(inputs_np))
20.5
38
0.71777
47
287
4.148936
0.468085
0.041026
0.046154
0.041026
0
0
0
0
0
0
0
0.020325
0.142857
287
13
39
22.076923
0.772358
0.432056
0
0
0
0
0.075472
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
dd1d14cad8d7b51f2d3997d8681795f2ed9d4e1a
2,863
py
Python
server/blog/models.py
rafay826/django-react
60bd7dcea8bb5c921f80d064e4d16fa34381ae09
[ "MIT" ]
null
null
null
server/blog/models.py
rafay826/django-react
60bd7dcea8bb5c921f80d064e4d16fa34381ae09
[ "MIT" ]
12
2020-06-05T21:17:35.000Z
2022-03-11T23:49:11.000Z
server/blog/models.py
midasdev711/djudo
5717ad63b0ef5dddddfd1d3839fa5231ac21972f
[ "MIT" ]
null
null
null
from django.db import models from django.db.models import permalink from django.core.urlresolvers import reverse from comments.models import Comment # Create your models here. class PostManager(models.Manager): def active(self, *args, **kwargs): return super(PostManager, self) def upload_location(instanc...
35.7875
103
0.691233
373
2,863
5.155496
0.369973
0.028081
0.037442
0.049922
0.298492
0.25793
0.24857
0.212168
0.184087
0.135205
0
0.00962
0.201188
2,863
80
104
35.7875
0.83122
0.042263
0
0.178571
0
0
0.059351
0.009394
0
0
0
0
0
1
0.178571
false
0
0.071429
0.142857
0.821429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
dd3452c9bed80f5adb210957aa5ef5db051c0f6c
301
py
Python
ml_progress/percent_metric.py
gregrolwes/ml_progress
e352f73847e163993ff9e642973512f070555805
[ "MIT" ]
null
null
null
ml_progress/percent_metric.py
gregrolwes/ml_progress
e352f73847e163993ff9e642973512f070555805
[ "MIT" ]
null
null
null
ml_progress/percent_metric.py
gregrolwes/ml_progress
e352f73847e163993ff9e642973512f070555805
[ "MIT" ]
null
null
null
import sys from .display import Display class PercentMetric(Display): def __init__(self, metric: str): super().__init__() self.metric = metric def update(self, metrics: dict, width=25, height=1): sys.stdout.write("%s: %3d%% \n" % (self.metric, metrics[self.metric]))
27.363636
78
0.644518
39
301
4.769231
0.615385
0.215054
0.150538
0
0
0
0
0
0
0
0
0.016736
0.20598
301
11
78
27.363636
0.761506
0
0
0
0
0
0.039735
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.625
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
1
0
0
0
0
0
0
0
2
dd4db1c506d212f1e3f132f918bc8f782cebb18b
673
py
Python
SourceCode/Bayes/bayeslearn.py
xuanyuansen/PyMachineLearning
c5b88c4d9aa2f5d59160d0824f7cee8377e7e16e
[ "Apache-2.0" ]
1
2017-01-17T06:19:33.000Z
2017-01-17T06:19:33.000Z
SourceCode/Bayes/bayeslearn.py
xuanyuansen/PyMachineLearning
c5b88c4d9aa2f5d59160d0824f7cee8377e7e16e
[ "Apache-2.0" ]
null
null
null
SourceCode/Bayes/bayeslearn.py
xuanyuansen/PyMachineLearning
c5b88c4d9aa2f5d59160d0824f7cee8377e7e16e
[ "Apache-2.0" ]
null
null
null
#coding=utf-8 ''' Created on 2013年9月20日 @author: Wangliaofan ''' import bayes import feedparser from time import * if __name__== '__main__': listOPosts,listClasses = bayes.loadDataSet() print listOPosts,listClasses myVocabList = bayes.createVocabList(listOPosts) print myVocabList trainMat=[] f...
24.035714
71
0.708767
75
673
6.253333
0.613333
0.089552
0
0
0
0
0
0
0
0
0
0.027372
0.185736
673
28
72
24.035714
0.828467
0.156018
0
0
0
0
0.015564
0
0
0
0
0
0
0
null
null
0.055556
0.166667
null
null
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
dd5e767c2f0f3137c08350fa015010541f736e41
290
py
Python
migrations/824-auto-exclude-regions.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
migrations/824-auto-exclude-regions.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
migrations/824-auto-exclude-regions.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
from mkt.constants import regions from mkt.developers.cron import exclude_new_region def run(): exclude_new_region([ regions.CR, regions.EC, regions.FR, regions.GT, regions.IT, regions.NI, regions.PA, regions.SV, ])
18.125
50
0.586207
34
290
4.882353
0.588235
0.084337
0.192771
0
0
0
0
0
0
0
0
0
0.324138
290
15
51
19.333333
0.846939
0
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
true
0
0.153846
0
0.230769
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
dd63b219f3cb356db869fd14f9d34da5dd98361a
463
py
Python
Constants.py
HKN-UCSD/HIIT
63f726398ca63c92e82a8052a05608a8537e6e87
[ "MIT" ]
null
null
null
Constants.py
HKN-UCSD/HIIT
63f726398ca63c92e82a8052a05608a8537e6e87
[ "MIT" ]
null
null
null
Constants.py
HKN-UCSD/HIIT
63f726398ca63c92e82a8052a05608a8537e6e87
[ "MIT" ]
1
2019-08-18T19:23:44.000Z
2019-08-18T19:23:44.000Z
COLUMNS = ['First Name', 'Last Name', 'Class Standing', 'Cum GPA', 'Major Code', 'Dept', 'Email'] DEPTS = ['CSE', 'ECE', 'MATH', 'BENG'] CLASS_STANDINGS = ['SO', 'JR', 'SR'] DEPTS_MAJORS = dict() # bit of a faux-pas... DEPTS_MAJORS['CSE'] = ['CS25', 'CS26', 'CS27', 'CS28'] DEPTS_MAJORS['ECE'] = ['EC26', 'EC27', 'EC28'...
51.444444
97
0.580994
66
463
3.969697
0.681818
0.209924
0
0
0
0
0
0
0
0
0
0.08209
0.131749
463
9
98
51.444444
0.569652
0.043197
0
0
0
0
0.332579
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
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
2
dd6453c36feaa6225a2781434ed2cbc21f1477e2
258
py
Python
app/admin.py
Syilun/aiot-django-dashboard-postgresql
3aa607bd623006a4c99a97da304985eb908741c8
[ "MIT" ]
null
null
null
app/admin.py
Syilun/aiot-django-dashboard-postgresql
3aa607bd623006a4c99a97da304985eb908741c8
[ "MIT" ]
null
null
null
app/admin.py
Syilun/aiot-django-dashboard-postgresql
3aa607bd623006a4c99a97da304985eb908741c8
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ License: MIT Copyright (c) 2019 - present AppSeed.us """ from django.contrib import admin from .models import PERSON from .models import FACE # Register your models here. admin.site.register(PERSON) admin.site.register(FACE)
17.2
39
0.728682
36
258
5.222222
0.638889
0.106383
0.170213
0
0
0
0
0
0
0
0
0.022624
0.143411
258
14
40
18.428571
0.828054
0.403101
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.6
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
1
0
1
0
0
0
0
2
dd7ea8658ced22af8cde597e98ea9827577d3995
343
py
Python
strings.py
aemreb/telegram_paybot
f973ddd9029f2844901508fa983aa37b6ca93089
[ "MIT" ]
2
2021-09-17T10:55:14.000Z
2021-09-17T10:55:38.000Z
strings.py
aemreb/telegram_paybot
f973ddd9029f2844901508fa983aa37b6ca93089
[ "MIT" ]
null
null
null
strings.py
aemreb/telegram_paybot
f973ddd9029f2844901508fa983aa37b6ca93089
[ "MIT" ]
1
2021-05-31T18:23:02.000Z
2021-05-31T18:23:02.000Z
help = '''Hey 👋 \n\n /signup nick: enter your nick and sign up \n\n /atm: see your balance \n\n /send nick amount: send this nick that amount of buxx 💰 \n ''' signup = '''Hi! Type /signup to sign up.''' user_created = '''Created user. Welcome to Paybot 🤑''' user_exists = '''User already exists ☹️''' not_enough_buxx ...
57.166667
158
0.655977
61
343
3.721311
0.57377
0.026432
0.114537
0
0
0
0
0
0
0
0
0
0.174927
343
5
159
68.6
0.780919
0
0
0
0
0.2
0.714286
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
dd83de2fe7b5a8905e65a790566a924385cc7b19
297
py
Python
dados/outside/6-JEL_code.py
correia-marcos/Innovation-on-brazilian-economic-research
98bc677618ec2dff062db42cda7279a5e7065a32
[ "MIT" ]
null
null
null
dados/outside/6-JEL_code.py
correia-marcos/Innovation-on-brazilian-economic-research
98bc677618ec2dff062db42cda7279a5e7065a32
[ "MIT" ]
null
null
null
dados/outside/6-JEL_code.py
correia-marcos/Innovation-on-brazilian-economic-research
98bc677618ec2dff062db42cda7279a5e7065a32
[ "MIT" ]
null
null
null
""" This script was made to anaylse the relation between JEL and areas in ANPEC. The idea is that checking the JEL code of each paper, it can be vizualized whether some papers were published in area (from ANPEC meeting) not expected by their JEL code. """ import os import pandas as pd import
22.846154
76
0.767677
52
297
4.384615
0.826923
0.061404
0
0
0
0
0
0
0
0
0
0
0.195286
297
12
77
24.75
0.953975
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
1
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
1
0
0
0
0
2
dd90daf3764122311fdf88342d48e04ecb1b9e7d
3,946
py
Python
editquality/feature_lists/wikitext.py
paulkernfeld/editquality
029f21278d89d6e50b0eac7b39d8355f8e4686f4
[ "MIT" ]
18
2015-09-13T10:47:31.000Z
2018-08-20T15:00:35.000Z
editquality/feature_lists/wikitext.py
paulkernfeld/editquality
029f21278d89d6e50b0eac7b39d8355f8e4686f4
[ "MIT" ]
98
2015-12-13T12:18:24.000Z
2018-08-07T21:10:46.000Z
editquality/feature_lists/wikitext.py
paulkernfeld/editquality
029f21278d89d6e50b0eac7b39d8355f8e4686f4
[ "MIT" ]
17
2015-09-29T20:52:12.000Z
2018-08-20T11:33:30.000Z
from revscoring.features import Feature, wikitext from revscoring.features.modifiers import div, log, max, sub def _process_new_longest(p_longest, r_longest): if r_longest > p_longest: return r_longest else: return 1 parent = [ log(wikitext.revision.parent.chars + 1), log(wikitext.re...
41.978723
71
0.727826
469
3,946
5.895522
0.115139
0.34141
0.230741
0.081374
0.560579
0.418445
0.220976
0.118626
0.118626
0.047016
0
0.004253
0.165737
3,946
93
72
42.430108
0.835662
0
0
0.068182
0
0
0.123923
0.123923
0
0
0
0
0
1
0.011364
false
0
0.022727
0
0.056818
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
06b3cc12c35c6a81cb3cf69f89310f5caed75723
141
py
Python
config_default.py
wecassidy/pishow
310f935688e0b3ceeb8fe11bd0fda902c041dd45
[ "MIT" ]
null
null
null
config_default.py
wecassidy/pishow
310f935688e0b3ceeb8fe11bd0fda902c041dd45
[ "MIT" ]
null
null
null
config_default.py
wecassidy/pishow
310f935688e0b3ceeb8fe11bd0fda902c041dd45
[ "MIT" ]
null
null
null
IMG_DIR = "/path/to/pictures" IMG_POLL_RATE = 1 # minute DWELL_TIME = 5 # seconds FADE_TIME = 1 # seconds REFRESH_RATE = 10 # milliseconds
17.625
32
0.723404
22
141
4.363636
0.772727
0
0
0
0
0
0
0
0
0
0
0.043103
0.177305
141
7
33
20.142857
0.784483
0.248227
0
0
0
0
0.168317
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
2
06be9a64516dc7d92276fa93579a7f01f96fc979
360
py
Python
QASMToQuEST/errors.py
oerc0122/QASMParser
701b6f25f498ea67670f2d85ae0f2e6920aea267
[ "MIT" ]
5
2019-05-10T08:17:57.000Z
2021-12-19T05:06:18.000Z
QASMToQuEST/errors.py
oerc0122/QASMParser
701b6f25f498ea67670f2d85ae0f2e6920aea267
[ "MIT" ]
14
2019-04-11T11:28:08.000Z
2020-02-13T15:18:56.000Z
QASMToQuEST/errors.py
oerc0122/QASMParser
701b6f25f498ea67670f2d85ae0f2e6920aea267
[ "MIT" ]
2
2019-05-10T08:17:23.000Z
2021-12-18T16:37:02.000Z
""" Define the errors which may occur """ langMismatchWarning = "Classical language {} does not match output language {}" langNotDefWarning = "Language {0} translation not found, check QASMToQuEST/langs/{0}.py exists" noLangSpecWarning = "No language specified for screen print" noSpecWarning = "Neither language nor out...
45
95
0.786111
42
360
6.738095
0.785714
0.120141
0
0
0
0
0
0
0
0
0
0.00639
0.130556
360
7
96
51.428571
0.897764
0.091667
0
0
0
0
0.714734
0.075235
0
0
0
0
0
1
0
false
0
0
0
0
0.25
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
06cdfe64d4ce6044067a25d0bf7f0ef2fa35cf39
240
py
Python
Home_Work_2_B_Naychuk_Anastasiya/Task2.py
NaychukAnastasiya/goiteens-python3-naychuk
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
[ "MIT" ]
null
null
null
Home_Work_2_B_Naychuk_Anastasiya/Task2.py
NaychukAnastasiya/goiteens-python3-naychuk
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
[ "MIT" ]
null
null
null
Home_Work_2_B_Naychuk_Anastasiya/Task2.py
NaychukAnastasiya/goiteens-python3-naychuk
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
[ "MIT" ]
null
null
null
# y = f(X) # y = 2*x -10 # x>0 # y = 0# x=0 # y = 2 * abs(x) -1 # x<0 print("Введіть число") x = float(input()) y = 0 if x > 0: y = 2*x -10 elif x == 0: y = 0 else: #x<0 y = 2 * abs(x) -1 print ("y: ",y)
13.333333
26
0.375
51
240
1.764706
0.313725
0.133333
0.166667
0.133333
0.2
0.2
0.2
0
0
0
0
0.131034
0.395833
240
17
27
14.117647
0.489655
0.254167
0
0.2
0
0
0.105263
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
06d6a4324acde5c358d0bd6522e052a2ede943db
423
py
Python
cookbook/c05/p03_print_sepend.py
itpubs/python3-cookbook
140f5e4cc0416b9674edca7f4c901b1f58fc1415
[ "Apache-2.0" ]
3
2018-09-19T06:44:13.000Z
2019-03-24T10:07:07.000Z
cookbook/c05/p03_print_sepend.py
itpubs/python3-cookbook
140f5e4cc0416b9674edca7f4c901b1f58fc1415
[ "Apache-2.0" ]
2
2020-09-19T17:10:23.000Z
2020-10-17T16:43:52.000Z
cookbook/c05/p03_print_sepend.py
itpubs/python3-cookbook
140f5e4cc0416b9674edca7f4c901b1f58fc1415
[ "Apache-2.0" ]
1
2020-12-22T06:33:18.000Z
2020-12-22T06:33:18.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Topic: print分隔符和结尾符 Desc : """ def print_sepend(): print('ACME', 50, 91.5) print('ACME', 50, 91.5, sep=',') print('ACME', 50, 91.5, sep=',', end='!!\n') for i in range(5): print(i) for i in range(5): print(i, end=' ') print() ...
17.625
48
0.501182
61
423
3.311475
0.459016
0.118812
0.158416
0.178218
0.485149
0.346535
0.178218
0
0
0
0
0.073248
0.257683
423
23
49
18.391304
0.570064
0.170213
0
0.153846
0
0
0.093842
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.076923
0.692308
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
1
0
2
06db5fed30a40e13ffe36a7460de36bf7c61b325
655
py
Python
monthlysal.py
aja512/Python-Lab
8f9c57d6d7f835e31a595223cdddf9c52ebe1cc9
[ "Apache-2.0" ]
null
null
null
monthlysal.py
aja512/Python-Lab
8f9c57d6d7f835e31a595223cdddf9c52ebe1cc9
[ "Apache-2.0" ]
null
null
null
monthlysal.py
aja512/Python-Lab
8f9c57d6d7f835e31a595223cdddf9c52ebe1cc9
[ "Apache-2.0" ]
null
null
null
bs=input("Enter basic salary:") days=input("Enter no. of working days:") ovrti=input("Enter no. of overtime working hrs:") deduct=0 if days<6: deduct=3500 salary=calci(bs,days,ovrti,deduct) elif days>=6 and days<=12: deduct=1000 salary= calci(bs,days,ovrti,deduct) elif days>=13 and days<=18: deduct=800 ...
22.586207
49
0.690076
109
655
4.146789
0.348624
0.119469
0.121681
0.176991
0.473451
0.424779
0.300885
0.300885
0
0
0
0.067151
0.158779
655
28
50
23.392857
0.753176
0
0
0.444444
0
0
0.169466
0
0
0
0
0
0
0
null
null
0
0
null
null
0.074074
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
1
0
0
0
0
0
0
0
0
2
06e980c4f9e4c64a9ff9ed3aae6e787174a3969c
193
py
Python
College grade 2/Python 3/Lab_2/Ansel/exercise 1.py
SimonH19009/Lzu_Data-science
bd35c5e156b0db21c3585c11dce15fba0b7003e2
[ "MIT" ]
1
2022-03-06T05:30:44.000Z
2022-03-06T05:30:44.000Z
College grade 2/Python 3/Lab_2/Ansel/exercise 1.py
SimonH19009/Lzu_Data-science
bd35c5e156b0db21c3585c11dce15fba0b7003e2
[ "MIT" ]
null
null
null
College grade 2/Python 3/Lab_2/Ansel/exercise 1.py
SimonH19009/Lzu_Data-science
bd35c5e156b0db21c3585c11dce15fba0b7003e2
[ "MIT" ]
1
2022-03-06T06:07:40.000Z
2022-03-06T06:07:40.000Z
try: a=int(input("Please enter a number:")) if 9<a<100: a = str(a) print(a[0]) print(a[1]) else: print("no correct") except: print("no correct")
17.545455
42
0.487047
29
193
3.241379
0.62069
0.12766
0.297872
0
0
0
0
0
0
0
0
0.047244
0.341969
193
10
43
19.3
0.692913
0
0
0.2
0
0
0.217617
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
06f25df0cac2fd1a3b4a6fa7c42cbde635e84014
1,131
py
Python
hypothesis/nn/neuromodulation/base.py
boyali/hypothesis-sre
f44d25eb281d49663d49d134ee73ad542849714b
[ "BSD-3-Clause" ]
45
2019-02-13T14:16:35.000Z
2022-02-23T21:30:02.000Z
hypothesis/nn/neuromodulation/base.py
boyali/hypothesis-sre
f44d25eb281d49663d49d134ee73ad542849714b
[ "BSD-3-Clause" ]
1
2020-01-13T08:29:50.000Z
2020-01-22T10:28:02.000Z
hypothesis/nn/neuromodulation/base.py
boyali/hypothesis-sre
f44d25eb281d49663d49d134ee73ad542849714b
[ "BSD-3-Clause" ]
8
2019-04-23T14:25:08.000Z
2021-07-28T15:05:31.000Z
import hypothesis import torch from hypothesis.nn.util import list_modules_with_type def allocate_neuromodulated_activation(activation, allocator): class LambdaNeuromodulatedActivation(BaseNeuromodulatedModule): def __init__(self): super(LambdaNeuromodulatedActivation, self).__init__( ...
26.928571
87
0.715296
111
1,131
7.036036
0.342342
0.076825
0.038412
0.048656
0
0
0
0
0
0
0
0.002225
0.205128
1,131
41
88
27.585366
0.866518
0
0
0
0
0
0
0
0
0
0
0
0
1
0.24
false
0
0.12
0
0.56
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
1
0
0
2
06fe538ead84c59a5f996694a885042a2b6cbe93
822
py
Python
rocketchat_API/APISections/subscriptions.py
dudanogueira/rocketchat_API
190952f07ce04a356c79ad29e9d1e01dea620ba6
[ "MIT" ]
210
2017-03-20T13:36:24.000Z
2022-03-30T17:37:02.000Z
rocketchat_API/APISections/subscriptions.py
dudanogueira/rocketchat_API
190952f07ce04a356c79ad29e9d1e01dea620ba6
[ "MIT" ]
144
2017-03-21T13:50:22.000Z
2022-03-28T09:43:26.000Z
rocketchat_API/APISections/subscriptions.py
dudanogueira/rocketchat_API
190952f07ce04a356c79ad29e9d1e01dea620ba6
[ "MIT" ]
103
2017-03-20T13:54:54.000Z
2022-03-22T05:00:18.000Z
from rocketchat_API.APISections.base import RocketChatBase class RocketChatSubscriptions(RocketChatBase): def subscriptions_get(self, **kwargs): """Get all subscriptions.""" return self.call_api_get("subscriptions.get", kwargs=kwargs) def subscriptions_get_one(self, room_id, **kwargs): ...
41.1
88
0.708029
103
822
5.475728
0.339806
0.053191
0.099291
0.120567
0.379433
0.379433
0.141844
0
0
0
0
0
0.175182
822
19
89
43.263158
0.831858
0.152068
0
0
0
0
0.110947
0
0
0
0
0
0
1
0.4
false
0
0.1
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
1
0
0
0
0
1
0
0
2
06fefeedf2e0b5eb6fdb9935285ddf733447d30c
1,081
py
Python
accounts/models.py
Phist0ne/webvirtcloud
d94ca38e5c8b5bb1323d33067ee6b991775cc390
[ "Apache-2.0" ]
2
2018-03-14T09:46:49.000Z
2019-05-14T11:45:14.000Z
accounts/models.py
JamesLinus/webvirtcloud
d94ca38e5c8b5bb1323d33067ee6b991775cc390
[ "Apache-2.0" ]
1
2018-03-01T04:05:25.000Z
2018-10-01T08:30:00.000Z
accounts/models.py
caicloud/webvirtcloud
d94ca38e5c8b5bb1323d33067ee6b991775cc390
[ "Apache-2.0" ]
1
2019-06-11T19:54:08.000Z
2019-06-11T19:54:08.000Z
from django.db import models from django.contrib.auth.models import User from instances.models import Instance class UserInstance(models.Model): user = models.ForeignKey(User) instance = models.ForeignKey(Instance) is_change = models.BooleanField(default=False) is_delete = models.BooleanField(default=...
30.885714
63
0.747456
131
1,081
5.977099
0.374046
0.091954
0.127714
0.153257
0.337165
0.0894
0
0
0
0
0
0.014317
0.160037
1,081
34
64
31.794118
0.848018
0
0
0.192308
0
0
0
0
0
0
0
0
0
1
0.115385
false
0
0.115385
0.115385
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
6603d02ce7ae8ff687520b5fd3b5f402880ef876
1,616
py
Python
tginviter/storage/base_storage.py
cuamckuu/tg-inviter
80b8d4664d1e2628b46ac1a6d58f8495c408d4b4
[ "MIT" ]
20
2020-08-24T19:11:38.000Z
2022-03-17T19:24:50.000Z
tginviter/storage/base_storage.py
bequirky12/tg-inviter
5cad1bc1afce101be03a2cee805931e77b7f6842
[ "MIT" ]
null
null
null
tginviter/storage/base_storage.py
bequirky12/tg-inviter
5cad1bc1afce101be03a2cee805931e77b7f6842
[ "MIT" ]
8
2021-02-05T11:51:21.000Z
2022-03-22T08:48:44.000Z
import abc from typing import AbstractSet class BaseStorage(abc.ABC): """Abstract base class for storing invite link tokens""" def insert(self, token: str, *, payload: dict, max_uses=1): """Insert token to storage. Shoud call super().insert(...)""" if type(payload) != dict: raise...
31.076923
76
0.631188
204
1,616
4.892157
0.401961
0.054108
0.12024
0.12024
0.138277
0.0501
0.0501
0
0
0
0
0.000832
0.256188
1,616
51
77
31.686275
0.829451
0.21349
0
0.4
0
0
0.152846
0
0
0
0
0
0
1
0.233333
false
0.2
0.066667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
6604fb1cbe01eb3c82eaa8f6e34b1bd3c2c37677
359
py
Python
app/api/v1/__init__.py
Ethan-Ceng/Flask-CMS
2fe2664e9ae60affe277e9c3b50c18a2e32e422b
[ "MIT" ]
null
null
null
app/api/v1/__init__.py
Ethan-Ceng/Flask-CMS
2fe2664e9ae60affe277e9c3b50c18a2e32e422b
[ "MIT" ]
null
null
null
app/api/v1/__init__.py
Ethan-Ceng/Flask-CMS
2fe2664e9ae60affe277e9c3b50c18a2e32e422b
[ "MIT" ]
null
null
null
from flask import Blueprint from app.api.v1 import user, book, client, token def create_blueprint(): bp_v1 = Blueprint('v1', __name__) user.api.register(bp_v1, url_prefix='/client') user.api.register(bp_v1, url_prefix='/user') book.api.register(bp_v1, url_prefix='/book') book.api.register(bp_v1, ...
25.642857
50
0.707521
56
359
4.267857
0.339286
0.100418
0.217573
0.251046
0.468619
0.468619
0.468619
0
0
0
0
0.026316
0.153203
359
13
51
27.615385
0.759868
0
0
0
0
0
0.069638
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0.333333
0
0
0
null
0
1
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
2
660ac2d8937432f3e9a4b2a9a74404def921da17
132
py
Python
lab2_typyOperacje/2.15.py
Damian9449/Python
dc9091e15356733821bbb6a768b7d5e428640340
[ "MIT" ]
1
2017-11-15T13:03:40.000Z
2017-11-15T13:03:40.000Z
lab2_typyOperacje/2.15.py
Damian9449/Python
dc9091e15356733821bbb6a768b7d5e428640340
[ "MIT" ]
null
null
null
lab2_typyOperacje/2.15.py
Damian9449/Python
dc9091e15356733821bbb6a768b7d5e428640340
[ "MIT" ]
null
null
null
#!/usr/bin/python L = [1, 3, 6, 77, 34, 45, 26, 81] result = "" for number in L: result = result + str(number) print(result)
13.2
33
0.575758
23
132
3.304348
0.782609
0
0
0
0
0
0
0
0
0
0
0.128713
0.234848
132
9
34
14.666667
0.623762
0.121212
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
1
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
2
66160d3954e8f1108b126460356e2b0740e00e9e
2,055
py
Python
create_db.py
vladstorm98/TaskBoard
ebe4244cc5cbdfda2fdaac84c0158692f440517c
[ "MIT" ]
null
null
null
create_db.py
vladstorm98/TaskBoard
ebe4244cc5cbdfda2fdaac84c0158692f440517c
[ "MIT" ]
null
null
null
create_db.py
vladstorm98/TaskBoard
ebe4244cc5cbdfda2fdaac84c0158692f440517c
[ "MIT" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy from config import Config app = Flask(__name__) app.config.from_object(Config) db = SQLAlchemy(app) class User(db.Model): __tablename__ = 'user' id = db.Column(db.Integer, primary_key=True) email = db.Column(db.String(128), ind...
29.357143
83
0.654988
288
2,055
4.517361
0.291667
0.135281
0.169101
0.172175
0.399693
0.325903
0.21445
0.123751
0
0
0
0.027744
0.193187
2,055
69
84
29.782609
0.756936
0.182968
0
0.128205
0
0
0.055311
0
0
0
0
0
0
1
0
false
0.025641
0.076923
0
0.871795
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
1
0
0
2
661950464dde57e4e6f43aa2be8e46d0304ef9f0
797
py
Python
vid 18 dream logo.py
agneay/turtle-projects
88f7de0c8eb1bb0f37255746c3d11b9c272d1c10
[ "MIT" ]
null
null
null
vid 18 dream logo.py
agneay/turtle-projects
88f7de0c8eb1bb0f37255746c3d11b9c272d1c10
[ "MIT" ]
null
null
null
vid 18 dream logo.py
agneay/turtle-projects
88f7de0c8eb1bb0f37255746c3d11b9c272d1c10
[ "MIT" ]
null
null
null
from turtle import * def l(y,x): lt(y) fd(x) def r(y,x): rt(y) fd(x) def gt(x,y): pu() goto(x,y) pd() bgcolor("lime") color("black","white") shape("circle") ht() speed(1) width(15) gt(-365,-380) begin_fill() seth(90) fd(20) r(5,20) r(4,60) r(5,100) r(5,120) l(85,50) r(10,25) r(15,10) r(15,40) r(15,50) r(1...
9.16092
53
0.567127
203
797
2.206897
0.344828
0.066964
0.017857
0.03125
0
0
0
0
0
0
0
0.286131
0.140527
797
87
54
9.16092
0.367883
0
0
0.191781
0
0
0.056391
0
0
0
0
0
0
1
0.041096
false
0
0.013699
0
0.054795
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
662106942718d48504f32ad0e27db934931029d3
19,428
py
Python
tests/adapters/test_s3_adapter.py
MonolithAILtd/monolith-filemanager
2369e244e4d8a48890f55d00419a83001a5c6c40
[ "Apache-2.0" ]
3
2021-06-02T09:45:00.000Z
2022-02-01T14:30:01.000Z
tests/adapters/test_s3_adapter.py
MonolithAILtd/monolith-filemanager
2369e244e4d8a48890f55d00419a83001a5c6c40
[ "Apache-2.0" ]
3
2021-05-26T11:46:28.000Z
2021-11-04T10:14:42.000Z
tests/adapters/test_s3_adapter.py
MonolithAILtd/monolith-filemanager
2369e244e4d8a48890f55d00419a83001a5c6c40
[ "Apache-2.0" ]
2
2021-06-04T15:02:14.000Z
2021-09-03T09:26:45.000Z
from unittest import TestCase, main from unittest.mock import patch, MagicMock, call from monolith_filemanager.adapters.s3_processes import S3ProcessesAdapter, S3ProcessesAdapterError class TestS3ProcessesAdapter(TestCase): @patch("monolith_filemanager.adapters.s3_processes.S3ProcessesAdapter.__init__") def ...
51.261214
175
0.726992
2,389
19,428
5.484303
0.05023
0.062967
0.10922
0.11731
0.805221
0.731644
0.656312
0.57808
0.543123
0.496336
0
0.00962
0.176035
19,428
378
176
51.396825
0.808846
0.003603
0
0.446875
0
0
0.233595
0.208122
0
0
0
0
0.178125
1
0.075
false
0
0.009375
0
0.0875
0
0
0
0
null
0
0
0
1
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
2
6621f5308d9319ae5e2c09eb61c97a4f6a12ea20
459
py
Python
maleorfemale.py
harshals13/Jigglypuffpuff
469ea64c71a123cafadc4ae40a1da5171182647b
[ "MIT" ]
null
null
null
maleorfemale.py
harshals13/Jigglypuffpuff
469ea64c71a123cafadc4ae40a1da5171182647b
[ "MIT" ]
null
null
null
maleorfemale.py
harshals13/Jigglypuffpuff
469ea64c71a123cafadc4ae40a1da5171182647b
[ "MIT" ]
null
null
null
from sklearn import tree #[height, weight, shoe size] X = [[181,80,44], [177,70, 43],[160, 60,38],[154, 54, 37], [166,65,40], [190, 90, 47], [175, 64, 39], [177, 70, 40],[159, 55, 45],[171, 75, 42], [181, 85, 43] ] Y = ['male', 'female', 'female', 'female', 'male','male', 'male', 'female', 'male', 'female', 'male'] ...
27
160
0.586057
73
459
3.684932
0.69863
0.111524
0.104089
0
0
0
0
0
0
0
0
0.216495
0.154684
459
17
161
27
0.476804
0.091503
0
0
0
0
0.129808
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
66240c3ee8769bc3f49297e677406217e8beaf2e
1,505
py
Python
TSTP_20210522_CH4_Functions.py
adjectiveJ/tstp_challenges
e0fcc174594387e0c6142980bf2706d7f5cbc5bd
[ "CC0-1.0" ]
null
null
null
TSTP_20210522_CH4_Functions.py
adjectiveJ/tstp_challenges
e0fcc174594387e0c6142980bf2706d7f5cbc5bd
[ "CC0-1.0" ]
null
null
null
TSTP_20210522_CH4_Functions.py
adjectiveJ/tstp_challenges
e0fcc174594387e0c6142980bf2706d7f5cbc5bd
[ "CC0-1.0" ]
null
null
null
""" The Self-Taught Programmer - Chapter 4 Challenges Author: Dante Valentine Date: 22 May, 2021 """ """ CHALLENGE 1 """ to_square = 12 def square_func(x): # Returns the square of x. return x*x resp = square_func(to_square) #print("The square of", to_square, "is", str(resp) + ".") """ CHAL...
21.5
87
0.621927
221
1,505
4.104072
0.39819
0.039691
0.042999
0.00882
0.063947
0
0
0
0
0
0
0.037555
0.239203
1,505
69
88
21.811594
0.754585
0.44186
0
0
0
0
0.079389
0
0
0
0
0
0
1
0.222222
false
0
0
0.111111
0.37037
0.259259
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
2
662cd92db90d9d0b17d2a45ad47818909732dc56
1,253
py
Python
src/algorithms/utils.py
MSwenne/QSB-Suite
7860e4634bdce10fa79d7f850b6bc2099357d7b0
[ "MIT" ]
null
null
null
src/algorithms/utils.py
MSwenne/QSB-Suite
7860e4634bdce10fa79d7f850b6bc2099357d7b0
[ "MIT" ]
null
null
null
src/algorithms/utils.py
MSwenne/QSB-Suite
7860e4634bdce10fa79d7f850b6bc2099357d7b0
[ "MIT" ]
null
null
null
import random def QFT(first: int, last: int) -> str: res = "// Begin QFT\n" for a in range(first, last+1): res += f"h q[{a}];\n" for b in range(a+1,last+1): res += f"crz({1/(2**(b-a+1))}) q[{a}], q[{b}];\n" return res def QFT_inv(first: int, last: int) -> str: res = "// Beg...
27.23913
63
0.51237
214
1,253
2.96729
0.257009
0.037795
0.094488
0.132283
0.464567
0.359055
0.264567
0.226772
0.056693
0.056693
0
0.024313
0.245012
1,253
45
64
27.844444
0.646934
0.014366
0
0.2
0
0.057143
0.197891
0.034874
0
0
0
0
0
1
0.228571
false
0
0.028571
0.114286
0.485714
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
1
0
0
0
2
b077615a398497bbf160df8bf076bda9f756c99d
337
py
Python
vendor/views/sign_in_views.py
hossainchisty/Multi-Vendor-eCommerce
42c5f62b8b098255cc9ea57858d3cc7de94bd76a
[ "MIT" ]
16
2021-09-22T19:08:28.000Z
2022-03-18T18:57:02.000Z
vendor/views/sign_in_views.py
hossainchisty/Multi-Vendor-eCommerce
42c5f62b8b098255cc9ea57858d3cc7de94bd76a
[ "MIT" ]
6
2021-09-30T12:36:02.000Z
2022-03-18T22:18:00.000Z
vendor/views/sign_in_views.py
hossainchisty/Multi-Vendor-eCommerce
42c5f62b8b098255cc9ea57858d3cc7de94bd76a
[ "MIT" ]
6
2021-12-06T02:04:51.000Z
2022-03-13T14:38:14.000Z
from django.contrib.auth.views import LoginView from django.contrib.auth.forms import AuthenticationForm class SignInView(LoginView): ''' Sign in for vendor ''' form_class = AuthenticationForm template_name = 'vendor/sign_in.html' redirect_field_name = 'vendor:root_path' success_url = 've...
30.636364
57
0.735905
41
337
5.853659
0.609756
0.083333
0.141667
0.175
0
0
0
0
0
0
0
0
0.178042
337
10
58
33.7
0.866426
0.053412
0
0
0
0
0.169435
0
0
0
0
0
0
1
0
false
0
0.285714
0
1
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
1
0
0
2
b078190b27e28c76e2f6312fda29c3c87dbe3e12
692
py
Python
django_excel_to_model/tests/test_openpyxl.py
weijia/django-excel-to-model
2bab354835e31133f1344bee2cb12cb3627eef3d
[ "BSD-3-Clause" ]
2
2021-03-14T14:29:19.000Z
2021-05-02T10:36:47.000Z
django_excel_to_model/tests/test_openpyxl.py
weijia/django-excel-to-model
2bab354835e31133f1344bee2cb12cb3627eef3d
[ "BSD-3-Clause" ]
1
2020-03-11T06:20:59.000Z
2020-04-22T02:17:35.000Z
django_excel_to_model/tests/test_openpyxl.py
weijia/django-excel-to-model
2bab354835e31133f1344bee2cb12cb3627eef3d
[ "BSD-3-Clause" ]
4
2018-04-28T02:39:05.000Z
2021-07-27T02:04:27.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_django-excel-to-model ------------ Tests for `django-excel-to-model` models module. """ from django.test import TestCase # from unittest import TestCase from django_excel_to_model.openpyxl_reader import OpenpyxlExcelFile from sap_asset_master_data20191224.model...
21.625
93
0.679191
93
692
4.913978
0.645161
0.07221
0.085339
0.118162
0
0
0
0
0
0
0
0.052252
0.197977
692
31
94
22.322581
0.771171
0.234104
0
0.142857
0
0
0.113462
0.113462
0
0
0
0
0
1
0.214286
false
0.142857
0.214286
0
0.5
0.071429
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
0
0
2
b08769fd169d1bb3f57d9800c62bb6c63602cc3c
3,685
py
Python
kappmax_prediction_scripts/media.py
coltonlloyd/keff_mapping
eea8450561232d32c049455948d88917bf56ddd8
[ "MIT" ]
null
null
null
kappmax_prediction_scripts/media.py
coltonlloyd/keff_mapping
eea8450561232d32c049455948d88917bf56ddd8
[ "MIT" ]
null
null
null
kappmax_prediction_scripts/media.py
coltonlloyd/keff_mapping
eea8450561232d32c049455948d88917bf56ddd8
[ "MIT" ]
2
2019-02-05T15:24:29.000Z
2020-04-16T11:06:06.000Z
LB_media = { "EX_ni2_e": -1000, "EX_dcyt_e": -1000, "EX_hg2_e": -1000, "EX_ins_e": -1000, "EX_cd2_e": -1000, "EX_so4_e": -1000, "EX_uri_e": -1000, "EX_tungs_e": -1000, "EX_glu__L_e": -1000, "EX_slnt_e": -1000, "EX_trp__L_e": -1000, "EX_dad__2_e": -1000, "EX_mobd_e": -...
29.246032
76
0.566079
575
3,685
3.090435
0.231304
0.216657
0.295442
0.157569
0.481148
0.457513
0.457513
0.411367
0.254924
0.254924
0
0.1256
0.2654
3,685
125
77
29.48
0.530846
0.016011
0
0.376068
0
0
0.304084
0
0
0
0
0
0
1
0.008547
false
0
0
0
0.017094
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
b08a24bef63250d06b5557da066625b5924bd251
178
py
Python
17. Chapter_/xmlrpc_client.py
Mikma03/Python_Bill_Lubanovic_BookCodes
8b5b228bb500a08af645a1db6f7c5f33ef5f0512
[ "MIT" ]
null
null
null
17. Chapter_/xmlrpc_client.py
Mikma03/Python_Bill_Lubanovic_BookCodes
8b5b228bb500a08af645a1db6f7c5f33ef5f0512
[ "MIT" ]
null
null
null
17. Chapter_/xmlrpc_client.py
Mikma03/Python_Bill_Lubanovic_BookCodes
8b5b228bb500a08af645a1db6f7c5f33ef5f0512
[ "MIT" ]
null
null
null
import xmlrpc.client proxy = xmlrpc.client.ServerProxy("http://localhost:6789/") num = 7 result = proxy.double(num) print("Dwukrotność liczby %s jest równa %s" % (num, result))
25.428571
60
0.724719
25
178
5.16
0.72
0.186047
0
0
0
0
0
0
0
0
0
0.031847
0.117978
178
6
61
29.666667
0.789809
0
0
0
0
0
0.320225
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
1
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
2
b08bef0d9eac560231bad41dab1d173a448b34ce
843
py
Python
Chapter03/function_enforcement.py
PacktPublishing/Secret-Recipes-of-the-Python-Ninja
805d00c7a54927ba94c9077e9a580508ee3c5e56
[ "MIT" ]
13
2018-06-21T01:44:49.000Z
2021-12-01T10:49:53.000Z
Chapter03/function_enforcement.py
PacktPublishing/Secret-Recipes-of-the-Python-Ninja
805d00c7a54927ba94c9077e9a580508ee3c5e56
[ "MIT" ]
null
null
null
Chapter03/function_enforcement.py
PacktPublishing/Secret-Recipes-of-the-Python-Ninja
805d00c7a54927ba94c9077e9a580508ee3c5e56
[ "MIT" ]
6
2018-10-05T08:29:24.000Z
2022-01-11T14:49:50.000Z
def accepts(*types): def check_accepts(f): assert len(types) == f.func_code.co_argcount def new_f(*args, **kwds): for (a, t) in zip(args, types): assert isinstance(a, t), \ "arg %r does not match %s" % (a,t) return f(*args, **kwds) ...
30.107143
71
0.548043
114
843
3.912281
0.315789
0.053812
0.080717
0.049327
0.318386
0.188341
0.188341
0.188341
0.188341
0.188341
0
0.00708
0.329775
843
27
72
31.222222
0.782301
0
0
0.24
0
0
0.067616
0
0
0
0
0
0.12
1
0.28
false
0
0
0.04
0.56
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
1
0
0
2
b091329df5d41c9910c06cb7d5946e735531a835
345
py
Python
python/1920.py
zheedong/BaekJoon
7f9e00085276a337d18ee3bb90c98126f7af4d3a
[ "MIT" ]
null
null
null
python/1920.py
zheedong/BaekJoon
7f9e00085276a337d18ee3bb90c98126f7af4d3a
[ "MIT" ]
null
null
null
python/1920.py
zheedong/BaekJoon
7f9e00085276a337d18ee3bb90c98126f7af4d3a
[ "MIT" ]
null
null
null
test_case_1 = """ 5 # N 4 1 5 2 3 5 # M 1 3 7 9 5 """ ''' result 1 1 0 0 1 ''' N = int(input()) A = list(map(int, input().split())) A_set = set(A) # Set in으로 문제 한 번에 해결... M = int(input()) B = list(map(int, input().split())) for i in range(0, M): if B[i] in A_set: print(1) ...
12.321429
46
0.46087
68
345
2.279412
0.485294
0.206452
0.129032
0.193548
0.258065
0
0
0
0
0
0
0.093333
0.347826
345
28
47
12.321429
0.595556
0.063768
0
0
0
0
0.184564
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
0
null
1
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
2
b09631a3441037754162b7e57cc1cff16fb106f6
1,452
py
Python
src/api/access_module.py
GuilhermeVieira/mac0350-database
1b3b344cda09187cc5f7186d86bea385f77509dc
[ "MIT" ]
null
null
null
src/api/access_module.py
GuilhermeVieira/mac0350-database
1b3b344cda09187cc5f7186d86bea385f77509dc
[ "MIT" ]
1
2019-06-02T22:40:24.000Z
2019-06-02T22:40:24.000Z
src/api/access_module.py
GuilhermeVieira/mac0350-database
1b3b344cda09187cc5f7186d86bea385f77509dc
[ "MIT" ]
null
null
null
import databases from database_handler import load_session, func from flask_login import LoginManager, UserMixin class AccessModule: session, Base = load_session(databases.urls['DATABASE_ACCESS_URL']) def __init__(self): ''' for item in self.session.query(User.us_id): print(item.fi...
29.632653
88
0.623967
183
1,452
4.721311
0.360656
0.08912
0.078704
0.069444
0.251157
0.138889
0.06713
0
0
0
0
0.001885
0.269284
1,452
48
89
30.25
0.812441
0.046143
0
0.171429
0
0
0.033259
0
0
0
0
0
0
1
0.2
false
0.114286
0.085714
0.085714
0.685714
0.057143
0
0
0
null
0
0
0
0
0
0
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
1
0
0
2
b09a66e328205a7eed665f95fa47dd121d3d6481
844
py
Python
test/test_contact.py
hawkins/Shawk
c5be1165d8f6c0471544d06f7da07156df1dcc10
[ "MIT" ]
13
2016-05-05T11:16:31.000Z
2021-02-25T11:23:14.000Z
test/test_contact.py
hawkins/Shawk
c5be1165d8f6c0471544d06f7da07156df1dcc10
[ "MIT" ]
18
2016-05-05T20:23:51.000Z
2020-12-25T16:34:05.000Z
test/test_contact.py
hawkins/Shawk
c5be1165d8f6c0471544d06f7da07156df1dcc10
[ "MIT" ]
5
2017-07-25T23:50:43.000Z
2021-12-04T11:05:13.000Z
# Import shawk from shawk import Contact # Prepare contacts used throughout tests mini_contact = Contact(12345678, 'Verizon') name_contact = Contact(12345678, 'Verizon', 'Somebody') def test_repr_minimal(): assert(repr(mini_contact) == "<shawk.Contact('12345678', 'Verizon', '<No name>')>") def test_repr_with_na...
29.103448
87
0.716825
107
844
5.383178
0.261682
0.085069
0.152778
0.104167
0.208333
0.128472
0
0
0
0
0
0.086486
0.123223
844
28
88
30.142857
0.691892
0.060427
0
0
0
0
0.271229
0.065906
0
0
0
0
0.411765
1
0.411765
false
0
0.058824
0
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
0
0
0
0
0
0
0
2
b0c2a699dca314b9665d88e6e73956104ae6f215
2,852
py
Python
st_library/utils/databases/postgres.py
shortesttrack/dataprovider-py
3ecbcb5e09da09614a708e4ef990acdd3443c6ed
[ "Apache-2.0" ]
null
null
null
st_library/utils/databases/postgres.py
shortesttrack/dataprovider-py
3ecbcb5e09da09614a708e4ef990acdd3443c6ed
[ "Apache-2.0" ]
2
2018-03-27T11:06:46.000Z
2020-10-27T20:48:51.000Z
st_library/utils/databases/postgres.py
shortesttrack/dataprovider-py
3ecbcb5e09da09614a708e4ef990acdd3443c6ed
[ "Apache-2.0" ]
4
2018-02-26T08:12:39.000Z
2018-05-18T06:01:01.000Z
import backoff import psycopg2 from psycopg2.extras import DictCursor, NamedTupleCursor from st_library.utils.generics.connectors import ConnectorContainer _disconnect_errors = (psycopg2.InterfaceError, psycopg2.OperationalError,) _backoff = backoff.on_exception(backoff.expo, _disconnect_errors, max_time=30, max_tri...
29.102041
92
0.630435
314
2,852
5.39172
0.27707
0.07088
0.050207
0.049616
0.022445
0
0
0
0
0
0
0.004321
0.269635
2,852
97
93
29.402062
0.808449
0
0
0.109589
0
0
0.043478
0
0
0
0
0
0.013699
1
0.205479
false
0.068493
0.054795
0.082192
0.438356
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
1
0
0
0
0
0
2
b0cef7efc960a0a20a9e808c895f9ff5b72321b6
1,903
py
Python
src/zojax/portlet/browser/portlets.py
Zojax/zojax.portlet
f442ae53c400cd39e0c593138b83eeea0d13787e
[ "ZPL-2.1" ]
null
null
null
src/zojax/portlet/browser/portlets.py
Zojax/zojax.portlet
f442ae53c400cd39e0c593138b83eeea0d13787e
[ "ZPL-2.1" ]
null
null
null
src/zojax/portlet/browser/portlets.py
Zojax/zojax.portlet
f442ae53c400cd39e0c593138b83eeea0d13787e
[ "ZPL-2.1" ]
null
null
null
############################################################################## # # Copyright (c) 2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
33.982143
78
0.683132
196
1,903
6.489796
0.479592
0.037736
0.022013
0.042453
0.113208
0.061321
0.061321
0
0
0
0
0.003807
0.171834
1,903
55
79
34.6
0.803299
0.239096
0
0.074074
0
0
0.006314
0
0
0
0
0
0
0
null
null
0
0.333333
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
1
0
0
0
0
2
b0daa63a5af9ec548e408e77f43dd85ab4843906
462
py
Python
__findModuleLocations.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
__findModuleLocations.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
__findModuleLocations.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
''' Python program to find the location of Python modulesources ''' #Location of Python module sources: import imp print("Location of Python os module sources:") print(imp.find_module('os')) print("\nLocation of Python sys module sources:") print(imp.find_module('datetime')) #List of directories of specific module: i...
24.315789
59
0.75974
70
462
4.985714
0.328571
0.091691
0.137536
0.120344
0.320917
0.17765
0
0
0
0
0
0
0.125541
462
18
60
25.666667
0.863861
0.287879
0
0
0
0
0.49375
0
0
0
0
0
0
1
0
true
0
0.272727
0
0.272727
0.727273
0
0
0
null
0
0
0
0
0
0
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
1
0
2
b0df7d5ad0499addaf0ae1570bc27728fffba61b
778
py
Python
configs/_base_/det_datasets/pool_icdar2013_icdar2015.py
andrgje/mmocr
26963dcf56b6cc842d097617a9dc1688b01fcaed
[ "Apache-2.0" ]
null
null
null
configs/_base_/det_datasets/pool_icdar2013_icdar2015.py
andrgje/mmocr
26963dcf56b6cc842d097617a9dc1688b01fcaed
[ "Apache-2.0" ]
null
null
null
configs/_base_/det_datasets/pool_icdar2013_icdar2015.py
andrgje/mmocr
26963dcf56b6cc842d097617a9dc1688b01fcaed
[ "Apache-2.0" ]
null
null
null
dataset_type1 = 'IcdarDataset' data_root1 = 'data/icdar15' train1 = dict( type=dataset_type1, ann_file=f'{data_root1}/instances_training.json', img_prefix=f'{data_root1}/imgs', pipeline=None) test1 = dict( type=dataset_type1, ann_file=f'{data_root1}/instances_validation.json', img_prefix=f...
22.882353
55
0.713368
106
778
4.95283
0.283019
0.07619
0.114286
0.091429
0.71619
0.71619
0.71619
0.647619
0.647619
0.350476
0
0.04236
0.150386
778
33
56
23.575758
0.751891
0
0
0.461538
0
0
0.339332
0.190231
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
1
1
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
2
b0fda5ff40de8e081dd602a278f08974ff524613
11,355
py
Python
adventures/bucketlist/tests/test_api.py
lakivisi-zz/adventures
f094ac3fa1d5c85d65650c9cdc2ff2f60f9189a5
[ "MIT" ]
null
null
null
adventures/bucketlist/tests/test_api.py
lakivisi-zz/adventures
f094ac3fa1d5c85d65650c9cdc2ff2f60f9189a5
[ "MIT" ]
null
null
null
adventures/bucketlist/tests/test_api.py
lakivisi-zz/adventures
f094ac3fa1d5c85d65650c9cdc2ff2f60f9189a5
[ "MIT" ]
1
2021-01-14T21:27:32.000Z
2021-01-14T21:27:32.000Z
from django.urls import reverse from rest_framework import status from rest_framework.test import APITestCase from bucketlist.models import Bucketlist, Item from bucketlist.tests.factories import (BucketlistFactory, UserFactory, ItemFactor...
41.593407
88
0.574813
1,155
11,355
5.536797
0.101299
0.048475
0.067553
0.077091
0.753401
0.722283
0.697263
0.676153
0.587021
0.516654
0
0.010865
0.30295
11,355
272
89
41.746324
0.797094
0.01277
0
0.541126
0
0
0.112847
0.0025
0
0
0
0
0.168831
1
0.095238
false
0.051948
0.021645
0
0.134199
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
1
0
0
0
0
0
2
b0fdbad819a58bb24f68fffc89eae7b13da8ac0a
514
py
Python
src/model/match.py
HarborYuan/Student-Information-Management-System
7226bdea9a422cc88876ba58f1e36e4f7087342d
[ "Apache-2.0" ]
null
null
null
src/model/match.py
HarborYuan/Student-Information-Management-System
7226bdea9a422cc88876ba58f1e36e4f7087342d
[ "Apache-2.0" ]
null
null
null
src/model/match.py
HarborYuan/Student-Information-Management-System
7226bdea9a422cc88876ba58f1e36e4f7087342d
[ "Apache-2.0" ]
1
2018-12-03T11:43:37.000Z
2018-12-03T11:43:37.000Z
import re class IsCellphone(): def __init__(self): self.p = re.compile(r'[1][^1269]\d{9}') def iscellphone(self, number): res = self.p.match(number) if res: return True else: return False class IsMail(): def __init__(self): self.p = re.com...
19.769231
77
0.486381
66
514
3.636364
0.439394
0.083333
0.091667
0.125
0.466667
0.466667
0.466667
0.216667
0
0
0
0.023669
0.342412
514
25
78
20.56
0.686391
0
0
0.526316
0
0.052632
0.116732
0.087549
0
0
0
0
0
1
0.210526
false
0
0.052632
0
0.578947
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
1
0
0
2
7c007a5d23b8a2015cedebc0918ddd73086265d1
398
py
Python
secrets_example.py
fuzzysearch404/SpotifyPlaylistScripts
17915742ca666edd8376f04d0e2687b207c32471
[ "MIT" ]
null
null
null
secrets_example.py
fuzzysearch404/SpotifyPlaylistScripts
17915742ca666edd8376f04d0e2687b207c32471
[ "MIT" ]
1
2021-11-03T13:40:55.000Z
2021-11-03T13:40:55.000Z
secrets_example.py
fuzzysearch404/SpotifyPlaylistScripts
17915742ca666edd8376f04d0e2687b207c32471
[ "MIT" ]
null
null
null
# Spotify web application client ID CLIENT_ID = 'your_client_id' # Spotify web application client secret CLIENT_SECRET = 'your_client_secret' # Redirect URI. This can be any uri. # Howerver, you MUST add this uri to your Spotify web app's settings. # Application settings -> Edit Settings -> Redirect URIs. # Add...
44.222222
70
0.753769
59
398
4.966102
0.542373
0.102389
0.143345
0.1843
0
0
0
0
0
0
0
0.012085
0.168342
398
9
71
44.222222
0.873112
0.670854
0
0
0
0
0.504274
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
1
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
2