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
dba3bf31e30dbc6e19d1f005b15ec72aaafc1178
4,175
py
Python
modules/aws_service.py
Darkcybe/attack_range
b135251cc40e527e78e6e826759e421fb3834577
[ "Apache-2.0" ]
1
2020-08-26T18:14:17.000Z
2020-08-26T18:14:17.000Z
modules/aws_service.py
Darkcybe/attack_range
b135251cc40e527e78e6e826759e421fb3834577
[ "Apache-2.0" ]
null
null
null
modules/aws_service.py
Darkcybe/attack_range
b135251cc40e527e78e6e826759e421fb3834577
[ "Apache-2.0" ]
null
null
null
import sys import re import boto3 from botocore.exceptions import ClientError import uuid import time import yaml import os def get_instance_by_name(ec2_name, config): instances = get_all_instances(config) for instance in instances: str = instance['Tags'][0]['Value'] if str == ec2_name: ...
36.946903
159
0.640958
498
4,175
5.144578
0.208835
0.021858
0.025371
0.035129
0.546058
0.460968
0.459407
0.382904
0.282982
0.248634
0
0.015858
0.229701
4,175
112
160
37.276786
0.780784
0.177725
0
0.265823
0
0
0.162281
0.007895
0
0
0
0
0
1
0.101266
false
0
0.101266
0
0.265823
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dba4148e040528b537c6483d7f1281dc550a6268
5,685
py
Python
pystacknet/metrics.py
KevinMichaelSchindler/pystacknet
bb723511787be6a0828d2ec5ef141fa76b80ef84
[ "MIT" ]
null
null
null
pystacknet/metrics.py
KevinMichaelSchindler/pystacknet
bb723511787be6a0828d2ec5ef141fa76b80ef84
[ "MIT" ]
null
null
null
pystacknet/metrics.py
KevinMichaelSchindler/pystacknet
bb723511787be6a0828d2ec5ef141fa76b80ef84
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Aug 31 18:33:58 2018 @author: Marios Michailidis metrics and method to check metrics used within StackNet """ from sklearn.metrics import mean_squared_error, mean_absolute_error, r2_score , mean_squared_log_error #regression metrics from sklearn.metrics import roc_auc_sco...
36.210191
140
0.628672
786
5,685
4.301527
0.150127
0.166815
0.049689
0.0769
0.664596
0.65454
0.638864
0.631174
0.554274
0.529429
0
0.016529
0.255057
5,685
157
141
36.210191
0.781818
0.045207
0
0.407767
0
0
0.092986
0
0
0
0
0
0
1
0.126214
false
0
0.029126
0.087379
0.398058
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dba7508f72db5159de10c2533d780968df627768
5,629
py
Python
check_logstash_pipeline.py
stdevel/nagios-plugins
5ea0e186fa6fdd0e70681c7fed02c6d46d50bbb5
[ "IBM-pibs", "Apache-1.1" ]
null
null
null
check_logstash_pipeline.py
stdevel/nagios-plugins
5ea0e186fa6fdd0e70681c7fed02c6d46d50bbb5
[ "IBM-pibs", "Apache-1.1" ]
null
null
null
check_logstash_pipeline.py
stdevel/nagios-plugins
5ea0e186fa6fdd0e70681c7fed02c6d46d50bbb5
[ "IBM-pibs", "Apache-1.1" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 # vim:ts=4:sts=4:sw=4:et # # Author: Hari Sekhon # Date: 2017-11-24 21:10:35 +0100 (Fri, 24 Nov 2017) # # https://github.com/harisekhon/nagios-plugins # # License: see accompanying Hari Sekhon LICENSE file # # If you're using my code you're welcome to connect with me on Linke...
39.921986
119
0.637413
728
5,629
4.767857
0.325549
0.02881
0.043215
0.057044
0.086142
0.031691
0.019591
0.019591
0
0
0
0.019034
0.253331
5,629
140
120
40.207143
0.806805
0.239119
0
0.068966
0
0
0.240819
0.030367
0
0
0
0
0
1
0.045977
false
0
0.126437
0
0.183908
0.045977
0
0
0
null
0
0
0
0
0
0
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
1
0
dba89946ffbf4b4e0ca04987e645e105d52edb8a
2,412
py
Python
dags/mailsdag.py
rvacaru/airflow-training-skeleton
45fc6a8938d055b98c62c85b7c8085cb7d6f23ba
[ "Apache-2.0" ]
null
null
null
dags/mailsdag.py
rvacaru/airflow-training-skeleton
45fc6a8938d055b98c62c85b7c8085cb7d6f23ba
[ "Apache-2.0" ]
null
null
null
dags/mailsdag.py
rvacaru/airflow-training-skeleton
45fc6a8938d055b98c62c85b7c8085cb7d6f23ba
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
25.125
66
0.717247
319
2,412
5.291536
0.45768
0.035545
0.047393
0.018957
0.075829
0.047393
0
0
0
0
0
0.005612
0.187396
2,412
95
67
25.389474
0.855612
0.354892
0
0.1
0
0
0.091384
0
0
0
0
0
0
1
0.033333
false
0
0.133333
0
0.216667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dba99e90b4b43e354898ce74c9ce989b11885ee9
1,359
py
Python
appengine-compat/exported_appengine_sdk/google/storage/speckle/proto/jdbc_type.py
speedplane/python-compat-runtime
743ade7e1350c790c4aaa48dd2c0893d06d80cee
[ "Apache-2.0" ]
26
2015-01-20T08:02:38.000Z
2020-06-10T04:57:41.000Z
appengine-compat/exported_appengine_sdk/google/storage/speckle/proto/jdbc_type.py
speedplane/python-compat-runtime
743ade7e1350c790c4aaa48dd2c0893d06d80cee
[ "Apache-2.0" ]
53
2016-04-06T21:10:43.000Z
2018-03-19T23:14:33.000Z
appengine-compat/exported_appengine_sdk/google/storage/speckle/proto/jdbc_type.py
speedplane/python-compat-runtime
743ade7e1350c790c4aaa48dd2c0893d06d80cee
[ "Apache-2.0" ]
23
2016-04-19T05:45:26.000Z
2021-12-31T23:22:36.000Z
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
20.283582
74
0.725533
217
1,359
4.529954
0.723502
0.061038
0.02645
0.032553
0
0
0
0
0
0
0
0.074886
0.19426
1,359
66
75
20.590909
0.822831
0.626932
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbaa5fe4d5410450515867da0876df0842647fcf
2,406
py
Python
GestiRED/views.py
osabogal10/GestiREDBackend
99aa3b01bd67910cc0f96751c88d0f4e83763392
[ "MIT" ]
null
null
null
GestiRED/views.py
osabogal10/GestiREDBackend
99aa3b01bd67910cc0f96751c88d0f4e83763392
[ "MIT" ]
null
null
null
GestiRED/views.py
osabogal10/GestiREDBackend
99aa3b01bd67910cc0f96751c88d0f4e83763392
[ "MIT" ]
1
2018-11-19T00:08:05.000Z
2018-11-19T00:08:05.000Z
from django.http import HttpResponse from django.core.mail import send_mail import json from django.shortcuts import render from django.views.decorators.csrf import csrf_exempt from GestiRED.models import User from GestiRED.models import QualityControl, Phase, Resource, ResourceType,PhaseType from django.core import se...
36.454545
130
0.656692
269
2,406
5.732342
0.386617
0.038911
0.033722
0.031128
0
0
0
0
0
0
0
0.000542
0.232751
2,406
65
131
37.015385
0.834778
0.018703
0
0.039216
0
0
0.150191
0.009758
0
0
0
0
0
1
0.058824
false
0
0.176471
0.019608
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbaa65a763de8c1cfbc863205e539ed71151b214
2,181
py
Python
ext_modules/_maix_nn/example/yolo2_camera.py
sipeed/python3-maix
9ced31b8f1c1e4ef93b6a57bbfced27ae9e3361e
[ "MIT" ]
93
2021-01-12T01:56:06.000Z
2022-03-30T12:52:01.000Z
ext_modules/_maix_nn/example/yolo2_camera.py
JasperG1998/MaixPy3
b36800b8d6aebf55018894c215c23a73d2fe406d
[ "MIT" ]
29
2021-02-04T10:37:26.000Z
2022-03-20T15:10:55.000Z
ext_modules/_maix_nn/example/yolo2_camera.py
JasperG1998/MaixPy3
b36800b8d6aebf55018894c215c23a73d2fe406d
[ "MIT" ]
25
2021-01-25T18:10:09.000Z
2022-03-31T13:55:36.000Z
from maix import nn from PIL import Image, ImageDraw, ImageFont from maix import display, camera import time from maix.nn import decoder def draw_rectangle_with_title(draw, box, disp_str, bg_color=(255, 0, 0, 255), font_color=(255, 255, 255, 255)): # draw = ImageDraw.Draw(img) font = ImageFont.load_defaul...
27.2625
111
0.596057
342
2,181
3.690058
0.345029
0.050713
0.022187
0.019017
0.126783
0.090333
0
0
0
0
0
0.087982
0.202659
2,181
79
112
27.607595
0.637723
0.017423
0
0.068966
0
0
0.121425
0.030942
0
0
0
0
0
1
0.017241
false
0
0.086207
0
0.103448
0.137931
0
0
0
null
0
0
0
0
0
0
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
1
0
dbaa6f31a1ce95280bfdff82b4090e6bc54d2002
10,143
py
Python
tests/test_metadata_options.py
Fatal1ty/mashumaro
f32acf98f7cc7cdf638b921fe3fde96bef4fbefb
[ "Apache-2.0" ]
394
2018-11-09T11:55:11.000Z
2022-03-27T07:39:48.000Z
tests/test_metadata_options.py
Fatal1ty/mashumaro
f32acf98f7cc7cdf638b921fe3fde96bef4fbefb
[ "Apache-2.0" ]
70
2018-12-10T19:43:01.000Z
2022-03-17T07:37:45.000Z
tests/test_metadata_options.py
Fatal1ty/mashumaro
f32acf98f7cc7cdf638b921fe3fde96bef4fbefb
[ "Apache-2.0" ]
29
2018-12-10T19:44:19.000Z
2022-03-11T00:12:26.000Z
from dataclasses import dataclass, field from datetime import date, datetime, time, timezone from pathlib import Path from typing import Any, Dict, Optional, Union import ciso8601 import pytest from mashumaro import DataClassDictMixin from mashumaro.exceptions import UnserializableField from mashumaro.types import Se...
30.1875
79
0.648822
1,165
10,143
5.498712
0.108155
0.044958
0.082579
0.147206
0.688885
0.615673
0.561973
0.514518
0.455354
0.433812
0
0.053177
0.219462
10,143
335
80
30.277612
0.755968
0
0
0.414343
0
0
0.077098
0.007098
0
0
0
0
0.123506
1
0.12749
false
0
0.039841
0.031873
0.414343
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbaa809e32092c26124943dd02d9f08d50cbc16b
3,152
py
Python
Intent model/Intent_model.py
yashrajt/college_FAQ-chatbot
b3a2a1b4958068b652d019c13f31f6329b093c0a
[ "MIT" ]
4
2020-10-02T20:27:03.000Z
2021-09-28T16:11:04.000Z
Intent model/Intent_model.py
yashrajt/college_FAQ-chatbot
b3a2a1b4958068b652d019c13f31f6329b093c0a
[ "MIT" ]
1
2020-11-25T10:23:14.000Z
2020-11-25T10:23:14.000Z
Intent model/Intent_model.py
yashrajt/college_FAQ-chatbot
b3a2a1b4958068b652d019c13f31f6329b093c0a
[ "MIT" ]
2
2020-10-12T18:16:16.000Z
2021-09-28T16:11:15.000Z
import pandas as pd from sklearn.model_selection import train_test_split from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer from sklearn.metrics import accuracy_score, confusion_matrix from sklearn.feature_extraction.text import TfidfTransformer from sklearn.pipeline import Pipeline from skle...
41.473684
1,001
0.599302
412
3,152
4.463592
0.592233
0.041871
0.015226
0.030451
0.060903
0.060903
0
0
0
0
0
0.008337
0.200825
3,152
75
1,002
42.026667
0.721715
0.535533
0
0
0
0
0.078078
0.037538
0
0
0
0
0
1
0.064516
false
0
0.387097
0
0.483871
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
dbaae886d43e46ac193d1e7f28a6367192d2a640
7,552
py
Python
vendor/github.com/tensorflow/tensorflow/tensorflow/python/ops/list_ops.py
owennewo/kfserving
89f73c87525b8e06ea799f69f2979c4ad272fcb3
[ "Apache-2.0" ]
2
2018-12-12T23:33:05.000Z
2019-02-26T07:20:22.000Z
vendor/github.com/tensorflow/tensorflow/tensorflow/python/ops/list_ops.py
owennewo/kfserving
89f73c87525b8e06ea799f69f2979c4ad272fcb3
[ "Apache-2.0" ]
13
2020-11-13T18:53:29.000Z
2022-03-12T00:33:00.000Z
vendor/github.com/tensorflow/tensorflow/tensorflow/python/ops/list_ops.py
owennewo/kfserving
89f73c87525b8e06ea799f69f2979c4ad272fcb3
[ "Apache-2.0" ]
2
2020-10-06T09:24:31.000Z
2020-12-20T15:10:56.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.801843
80
0.742585
1,047
7,552
5.115568
0.217765
0.071695
0.037341
0.050784
0.316468
0.218447
0.165982
0.130134
0.094473
0.046303
0
0.007289
0.164327
7,552
216
81
34.962963
0.841388
0.263639
0
0.209302
0
0
0.04794
0.012031
0
0
0
0.00463
0
1
0.124031
false
0
0.069767
0.054264
0.341085
0.007752
0
0
0
null
0
0
0
0
0
0
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
1
0
dbad2da50018b20b9e8cf4be1668cfeef2d4c6cb
729
py
Python
tests/test_dump.py
flaeppe/astunparse
754ec7d113fa273625ccc7b6c5d65aa7700ab8a9
[ "PSF-2.0" ]
189
2016-03-15T06:48:48.000Z
2022-03-12T09:34:10.000Z
tests/test_dump.py
flaeppe/astunparse
754ec7d113fa273625ccc7b6c5d65aa7700ab8a9
[ "PSF-2.0" ]
50
2015-09-14T16:22:00.000Z
2022-02-24T05:36:57.000Z
tests/test_dump.py
flaeppe/astunparse
754ec7d113fa273625ccc7b6c5d65aa7700ab8a9
[ "PSF-2.0" ]
52
2015-04-29T10:52:33.000Z
2022-03-03T19:59:54.000Z
import ast import re import sys if sys.version_info < (2, 7): import unittest2 as unittest else: import unittest import astunparse from tests.common import AstunparseCommonTestCase class DumpTestCase(AstunparseCommonTestCase, unittest.TestCase): def assertASTEqual(self, dump1, dump2): # undo the ...
29.16
71
0.663923
89
729
5.359551
0.52809
0.062893
0.041929
0.046122
0.075472
0.075472
0.075472
0
0
0
0
0.029412
0.207133
729
24
72
30.375
0.795848
0.032922
0
0
0
0
0.048364
0
0
0
0
0
0.157895
1
0.105263
false
0
0.368421
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
0
0
0
1
0
0
0
0
1
dbad96b0fa05c373ff9f7995b182a8597ec11299
1,387
py
Python
src/django/giraffe/blat/management/commands/reset_app.py
addgene/giraffe
c7d3b1f000ceea83e6c98cce06cd2a0f9e4f4c2c
[ "MIT" ]
4
2016-10-13T15:46:06.000Z
2018-08-22T21:43:28.000Z
src/django/giraffe/blat/management/commands/reset_app.py
addgene/giraffe
c7d3b1f000ceea83e6c98cce06cd2a0f9e4f4c2c
[ "MIT" ]
null
null
null
src/django/giraffe/blat/management/commands/reset_app.py
addgene/giraffe
c7d3b1f000ceea83e6c98cce06cd2a0f9e4f4c2c
[ "MIT" ]
1
2015-07-26T21:42:31.000Z
2015-07-26T21:42:31.000Z
from django.core.management.base import AppCommand, CommandError from django.core.management.sql import sql_reset from django.core.management.color import no_style from django.db import connections class Command(AppCommand): help = "**********\nThis command resets data for any django app, the difference with the b...
47.827586
370
0.626532
165
1,387
5.157576
0.466667
0.047004
0.049354
0.084606
0.054054
0.054054
0
0
0
0
0
0.005035
0.284066
1,387
28
371
49.535714
0.851964
0
0
0
0
0.038462
0.290555
0.031723
0
0
0
0
0
0
null
null
0
0.153846
null
null
0.115385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
dbad9f49539fab32473ae89e8b92b989783f9cfd
89
py
Python
webBlog/apps.py
JordanBRoberts/python-theBand
1e475a45a42b210c722ab43c0b966d7b58d97a9d
[ "MIT" ]
null
null
null
webBlog/apps.py
JordanBRoberts/python-theBand
1e475a45a42b210c722ab43c0b966d7b58d97a9d
[ "MIT" ]
null
null
null
webBlog/apps.py
JordanBRoberts/python-theBand
1e475a45a42b210c722ab43c0b966d7b58d97a9d
[ "MIT" ]
null
null
null
from django.apps import AppConfig class WebblogConfig(AppConfig): name = 'webBlog'
14.833333
33
0.752809
10
89
6.7
0.9
0
0
0
0
0
0
0
0
0
0
0
0.168539
89
5
34
17.8
0.905405
0
0
0
0
0
0.078652
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
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
1
0
0
0
0
3
dbaf82c57c0e8e70a6ba6faeba1bc88a6aa96173
996
py
Python
requires.py
lydaaa/fzutils
5f775d046876e3ce35d0b1174b5a3db96e9d627e
[ "MIT" ]
1
2018-08-04T13:55:03.000Z
2018-08-04T13:55:03.000Z
requires.py
lydaaa/fzutils
5f775d046876e3ce35d0b1174b5a3db96e9d627e
[ "MIT" ]
null
null
null
requires.py
lydaaa/fzutils
5f775d046876e3ce35d0b1174b5a3db96e9d627e
[ "MIT" ]
null
null
null
# coding:utf-8 ''' @author = super_fazai @File : requires.py @Time : 2016/8/3 12:59 @connect : superonesfazai@gmail.com ''' install_requires = [ 'ipython', 'wheel', 'utils', 'db', 'greenlet==0.4.13', 'web.py==0.40.dev1', 'pytz', 'requests', 'selenium==3.8.0', # 3.8.1及其以上版...
16.6
53
0.491968
93
996
5.236559
0.860215
0.008214
0
0
0
0
0
0
0
0
0
0.044993
0.308233
996
60
54
16.6
0.661829
0.179719
0
0
0
0
0.447891
0
0
0
0
0
0
1
0
false
0
0
0
0
0.02
0
0
0
null
0
0
0
0
0
0
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
1
0
dbafb8e5a5c72fd3abd02eb1cca23ac263bc48ce
2,433
py
Python
m15_dos/dos.py
venkatarjun/Python3
606adf8588a74a53d592e62e07e81a5a1530b993
[ "MIT" ]
80
2020-11-14T19:19:27.000Z
2022-03-10T17:43:17.000Z
m15_dos/dos.py
nerbertb/python-52-weeks
55add5d75d1aabed4c59d445e1d1b773ede047b0
[ "MIT" ]
10
2020-11-24T06:19:45.000Z
2022-02-27T23:53:28.000Z
m15_dos/dos.py
nerbertb/python-52-weeks
55add5d75d1aabed4c59d445e1d1b773ede047b0
[ "MIT" ]
58
2020-11-13T18:35:22.000Z
2022-03-28T06:40:08.000Z
import subprocess import requests import argparse from concurrent.futures import ThreadPoolExecutor from time import sleep from datetime import datetime ICMP_ATTACK = "ICMP" HTTP_ATTACK = "HTTP" valid_attacks = {HTTP_ATTACK, ICMP_ATTACK} parser = argparse.ArgumentParser(description="DoS HTTP") parser.add_argument('-P...
27.337079
102
0.630908
300
2,433
4.996667
0.386667
0.044029
0.045364
0.045364
0.168112
0.168112
0.168112
0.082722
0.040027
0.040027
0
0.009651
0.233457
2,433
88
103
27.647727
0.794102
0.011097
0
0.213115
0
0.016393
0.238769
0.052413
0
0
0
0
0
1
0.04918
false
0
0.098361
0
0.163934
0.131148
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbb02044e102ff75841402e288f20f24bd0e7921
3,444
py
Python
maestro/backends/django/contrib/signals.py
estudio89/maestro-python
331079cb3f0c10de2e19210cbade793544510f33
[ "BSD-3-Clause" ]
null
null
null
maestro/backends/django/contrib/signals.py
estudio89/maestro-python
331079cb3f0c10de2e19210cbade793544510f33
[ "BSD-3-Clause" ]
null
null
null
maestro/backends/django/contrib/signals.py
estudio89/maestro-python
331079cb3f0c10de2e19210cbade793544510f33
[ "BSD-3-Clause" ]
null
null
null
from django.apps import apps from django.db import models from django.db.models.signals import post_save, pre_delete from typing import Type, Optional, List, cast, TYPE_CHECKING from maestro.backends.django.settings import maestro_settings from maestro.backends.django.contrib.factory import create_django_data_store fro...
30.210526
86
0.702962
418
3,444
5.45933
0.210526
0.039439
0.033304
0.043821
0.539001
0.489045
0.456617
0.456617
0.416301
0.416301
0
0
0.196574
3,444
113
87
30.477876
0.82472
0
0
0.344086
0
0
0.074042
0
0
0
0
0
0
1
0.096774
false
0
0.11828
0.010753
0.236559
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbb47fb9bbbb993b07541531acf7c95109ac62eb
142
py
Python
top/urls.py
pbexe/nextbike-top
eca086406cf6b96d6e086dd0fa9ecae5b6364f4d
[ "MIT" ]
null
null
null
top/urls.py
pbexe/nextbike-top
eca086406cf6b96d6e086dd0fa9ecae5b6364f4d
[ "MIT" ]
null
null
null
top/urls.py
pbexe/nextbike-top
eca086406cf6b96d6e086dd0fa9ecae5b6364f4d
[ "MIT" ]
null
null
null
from django.urls import include, path from .views import home, bike urlpatterns = [ path("", home), path("bike/<int:number>", bike) ]
20.285714
37
0.661972
19
142
4.947368
0.631579
0
0
0
0
0
0
0
0
0
0
0
0.183099
142
7
38
20.285714
0.810345
0
0
0
0
0
0.118881
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
3
dbb4a7b40915f984e1d6c4fb86487617ba753bc3
2,421
py
Python
Scripts/ReduceFragments.py
mike72353/FragFeatureNet
ef61ae52e3d6dcc6d2d56df2a6bd5fe1a298c930
[ "BSD-3-Clause" ]
1
2021-10-13T11:49:37.000Z
2021-10-13T11:49:37.000Z
Scripts/ReduceFragments.py
mike72353/FragFeatureNet
ef61ae52e3d6dcc6d2d56df2a6bd5fe1a298c930
[ "BSD-3-Clause" ]
null
null
null
Scripts/ReduceFragments.py
mike72353/FragFeatureNet
ef61ae52e3d6dcc6d2d56df2a6bd5fe1a298c930
[ "BSD-3-Clause" ]
1
2021-09-09T04:42:20.000Z
2021-09-09T04:42:20.000Z
""" Remove Fragments not in Knowledgebase """ __author__ = "Michael Suarez" __email__ = "masv@connect.ust.hk" __copyright__ = "Copyright 2019, Hong Kong University of Science and Technology" __license__ = "3-clause BSD" from argparse import ArgumentParser import numpy as np import pickle parser = ArgumentParser(desc...
38.428571
142
0.687732
340
2,421
4.808824
0.388235
0.012232
0.009174
0.085627
0.268502
0.225688
0.225688
0.166972
0.091743
0.091743
0
0.014983
0.145394
2,421
62
143
39.048387
0.775254
0.12185
0
0
0
0
0.186377
0.084674
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbb4ba3a72efae417ef662fbf9ea83724f57fdc1
11,352
py
Python
client/core/tests/billing_tests.py
vbohinc/CommunityCellularManager
ab330fcb1bc70ee3a8e9bcdac2846ab6c327f87c
[ "BSD-3-Clause" ]
null
null
null
client/core/tests/billing_tests.py
vbohinc/CommunityCellularManager
ab330fcb1bc70ee3a8e9bcdac2846ab6c327f87c
[ "BSD-3-Clause" ]
3
2021-03-20T00:02:37.000Z
2022-02-11T03:46:59.000Z
client/core/tests/billing_tests.py
vbohinc/CommunityCellularManager
ab330fcb1bc70ee3a8e9bcdac2846ab6c327f87c
[ "BSD-3-Clause" ]
null
null
null
"""Tests for core.billing. Run this test from the project root $ nosetests core.tests.billing_tests Copyright (c) 2016-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of ...
38.481356
79
0.587738
1,338
11,352
4.703288
0.189088
0.06102
0.05085
0.060385
0.574289
0.457969
0.388527
0.332751
0.290958
0.267917
0
0.047747
0.313689
11,352
294
80
38.612245
0.759979
0.177149
0
0.271429
0
0
0.179624
0.05654
0
0
0
0
0.090476
1
0.1
false
0
0.066667
0
0.185714
0.019048
0
0
0
null
0
0
0
0
0
0
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
1
0
dbb81ecf1571a74c986e0ef5e76802273692f79e
1,106
py
Python
data_interrogator/admin/views.py
s-i-l-k-e/django-data-interrogator
0284168b81aaa31a8df84f3ea52166eded8a4362
[ "MIT" ]
null
null
null
data_interrogator/admin/views.py
s-i-l-k-e/django-data-interrogator
0284168b81aaa31a8df84f3ea52166eded8a4362
[ "MIT" ]
null
null
null
data_interrogator/admin/views.py
s-i-l-k-e/django-data-interrogator
0284168b81aaa31a8df84f3ea52166eded8a4362
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import user_passes_test from django.utils.decorators import method_decorator from data_interrogator.admin.forms import AdminInvestigationForm, AdminPivotTableForm from data_interrogator.interrogators import Allowable from data_interrogator.views import InterrogationView, Interrogati...
35.677419
103
0.824593
104
1,106
8.567308
0.509615
0.026936
0.06734
0.058361
0
0
0
0
0
0
0
0
0.118445
1,106
30
104
36.866667
0.913846
0
0
0
0
0
0.050633
0.050633
0
0
0
0
0
1
0.047619
false
0.095238
0.238095
0.047619
0.904762
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
dbb832b244c092d5e626be322221a0dd99c61a02
327
py
Python
configs/pspnet/pspnet_r18-d8_512x512_80k_loveda.py
heytanay/mmsegmentation
7ddd2fe2ecff9c95999bd00ec05cc37eafb558f8
[ "Apache-2.0" ]
11
2022-02-04T01:09:45.000Z
2022-03-08T05:49:16.000Z
configs/pspnet/pspnet_r18-d8_512x512_80k_loveda.py
heytanay/mmsegmentation
7ddd2fe2ecff9c95999bd00ec05cc37eafb558f8
[ "Apache-2.0" ]
2
2022-02-25T03:07:23.000Z
2022-03-08T12:54:05.000Z
configs/pspnet/pspnet_r18-d8_512x512_80k_loveda.py
heytanay/mmsegmentation
7ddd2fe2ecff9c95999bd00ec05cc37eafb558f8
[ "Apache-2.0" ]
2
2021-04-23T05:32:00.000Z
2021-11-11T02:45:08.000Z
_base_ = './pspnet_r50-d8_512x512_80k_loveda.py' model = dict( backbone=dict( depth=18, init_cfg=dict( type='Pretrained', checkpoint='open-mmlab://resnet18_v1c')), decode_head=dict( in_channels=512, channels=128, ), auxiliary_head=dict(in_channels=256, channel...
27.25
72
0.629969
40
327
4.85
0.775
0.082474
0.103093
0.185567
0
0
0
0
0
0
0
0.108
0.235474
327
11
73
29.727273
0.668
0
0
0
0
0
0.220183
0.189602
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dbb9c02aefc14ce19f8f0ea13f80afd504f6a7db
191
py
Python
bba/objects.py
TheGenocides/BBA
1617756ed9224027d7225ea68364f6568c56ed23
[ "MIT" ]
3
2021-11-07T16:44:13.000Z
2021-12-13T13:48:07.000Z
bba/objects.py
TheGenocides/BBA
1617756ed9224027d7225ea68364f6568c56ed23
[ "MIT" ]
null
null
null
bba/objects.py
TheGenocides/BBA
1617756ed9224027d7225ea68364f6568c56ed23
[ "MIT" ]
null
null
null
from typing import Dict, Any class ResponseObject: def __init__(self, data: Dict[str, Any]): self.payload = data for k, v in data.items(): setattr(self, k, v)
27.285714
45
0.602094
27
191
4.111111
0.703704
0.036036
0
0
0
0
0
0
0
0
0
0
0.287958
191
7
46
27.285714
0.816176
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
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
dbba66cc16504421bbf294d9cd7ab892cc735e8e
4,880
py
Python
apps/greencheck/forms.py
BR0kEN-/admin-portal
0c38dc0d790031f45bf07660bce690e972fe2858
[ "Apache-2.0" ]
null
null
null
apps/greencheck/forms.py
BR0kEN-/admin-portal
0c38dc0d790031f45bf07660bce690e972fe2858
[ "Apache-2.0" ]
null
null
null
apps/greencheck/forms.py
BR0kEN-/admin-portal
0c38dc0d790031f45bf07660bce690e972fe2858
[ "Apache-2.0" ]
null
null
null
from django import forms from django.forms import ModelForm from django.contrib.auth import get_user_model from django.core.exceptions import ValidationError from .choices import ActionChoice from .choices import StatusApproval from .models import GreencheckIp from .models import GreencheckIpApprove from .models impor...
30.886076
85
0.608811
509
4,880
5.711198
0.269155
0.078431
0.028896
0.023392
0.280358
0.21431
0.184727
0.094255
0.094255
0.094255
0
0
0.317623
4,880
157
86
31.082803
0.872973
0.127049
0
0.317757
0
0
0.050181
0
0
0
0
0
0
1
0.056075
false
0
0.084112
0
0.327103
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbbba499caecc6c455f90595eccf7b64b710a2e3
263
py
Python
apps/utils/format/url_format.py
think-wang/osroom
67bb5bbd7a63fbaeb0d919738859444b54500152
[ "BSD-2-Clause" ]
1
2020-04-03T08:01:07.000Z
2020-04-03T08:01:07.000Z
apps/utils/format/url_format.py
dhgdhg/osroom
4d693eaab96503cadd391bf924bffedcd931a07c
[ "BSD-2-Clause" ]
null
null
null
apps/utils/format/url_format.py
dhgdhg/osroom
4d693eaab96503cadd391bf924bffedcd931a07c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*-coding:utf-8-*- from tld import get_tld __author__ = "Allen Woo" def get_domain(url): ''' 获取url中的全域名 :param url: :return: ''' res = get_tld(url, as_object=True) return "{}.{}".format(res.subdomain, res.tld)
18.785714
49
0.604563
36
263
4.194444
0.722222
0.07947
0
0
0
0
0
0
0
0
0
0.004831
0.212928
263
14
49
18.785714
0.724638
0.269962
0
0
0
0
0.083333
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
dbbc25c0d987a2badd4b10e9df8a681d25f102e8
23,904
py
Python
ipamanager/entities.py
Tjev/freeipa-manager
0d40e64d81a86d4312b4e22cd57dcaecf25d0801
[ "BSD-3-Clause" ]
null
null
null
ipamanager/entities.py
Tjev/freeipa-manager
0d40e64d81a86d4312b4e22cd57dcaecf25d0801
[ "BSD-3-Clause" ]
null
null
null
ipamanager/entities.py
Tjev/freeipa-manager
0d40e64d81a86d4312b4e22cd57dcaecf25d0801
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # SPDX-License-Identifier: BSD-3-Clause # Copyright © 2017-2019, GoodData Corporation. All rights reserved. """ FreeIPA Manager - entity module Object representations of the entities configured in FreeIPA. """ import os import re import voluptuous import yaml from abc imp...
39.058824
79
0.616508
2,657
23,904
5.392548
0.164471
0.027638
0.023451
0.024567
0.382119
0.329146
0.25998
0.226549
0.196678
0.181044
0
0.001006
0.293047
23,904
611
80
39.12275
0.846796
0.255982
0
0.246032
0
0
0.104401
0.009874
0
0
0
0
0
1
0.100529
false
0
0.02381
0.021164
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbbca7079e41d333542d3d27bb46afa6aecbe834
1,580
py
Python
test/test_catalog_manager.py
weknowtraining/athena-glue-service-logs
b7cf77408486f2bfa941b8609617ed47aa3e2d02
[ "Apache-2.0" ]
133
2018-09-17T12:43:14.000Z
2022-03-15T20:03:12.000Z
test/test_catalog_manager.py
weknowtraining/athena-glue-service-logs
b7cf77408486f2bfa941b8609617ed47aa3e2d02
[ "Apache-2.0" ]
22
2018-11-19T21:51:04.000Z
2022-03-08T12:13:19.000Z
test/test_catalog_manager.py
weknowtraining/athena-glue-service-logs
b7cf77408486f2bfa941b8609617ed47aa3e2d02
[ "Apache-2.0" ]
46
2018-10-04T04:27:26.000Z
2022-03-01T03:28:38.000Z
# pylint: skip-file from athena_glue_service_logs.catalog_manager import BaseCatalogManager def test_class_init(mocker): mocker.patch.multiple(BaseCatalogManager, __abstractmethods__=set()) base_catalog = BaseCatalogManager('us-west-2', 'dbname', 'tablename', 's3://somewhere') assert base_catalog.databas...
50.967742
119
0.79557
185
1,580
6.405405
0.297297
0.064979
0.086076
0.106329
0.751055
0.71308
0.683544
0.580591
0.580591
0.580591
0
0.005571
0.091139
1,580
30
120
52.666667
0.819638
0.010759
0
0.285714
0
0
0.317745
0.244715
0
0
0
0
0.333333
1
0.095238
false
0
0.047619
0
0.142857
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dbbd1a19c06924421a7c2e88261ac232f18c11f4
83
py
Python
unsorted/pythonsnippets_0013.py
fiddlerwoaroof/sandbox
652acaf710a8b60f005769bde317e7bbf548cc2b
[ "BSD-3-Clause" ]
null
null
null
unsorted/pythonsnippets_0013.py
fiddlerwoaroof/sandbox
652acaf710a8b60f005769bde317e7bbf548cc2b
[ "BSD-3-Clause" ]
null
null
null
unsorted/pythonsnippets_0013.py
fiddlerwoaroof/sandbox
652acaf710a8b60f005769bde317e7bbf548cc2b
[ "BSD-3-Clause" ]
null
null
null
from twisted.internet import reactor reactor.listenTCP(8789, factory) reactor.run()
27.666667
36
0.831325
11
83
6.272727
0.818182
0
0
0
0
0
0
0
0
0
0
0.051948
0.072289
83
3
37
27.666667
0.844156
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
1
0
1
0
0
0
0
4
dbbe56b29123b2a0ee8c4986b892e3949b69a274
2,362
py
Python
__main__.py
SHUcream00/MLBPitchVisual
a3092cef7cbd4e73f8d0010dd62811df6cc36cac
[ "MIT" ]
null
null
null
__main__.py
SHUcream00/MLBPitchVisual
a3092cef7cbd4e73f8d0010dd62811df6cc36cac
[ "MIT" ]
null
null
null
__main__.py
SHUcream00/MLBPitchVisual
a3092cef7cbd4e73f8d0010dd62811df6cc36cac
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt def visualize(dataframe, balltype): df = dataframe #Filter by balltype res = df[df["pitch_type"] == balltype] #Group by results groups = res.groupby("description") for name, group in groups: if name ==...
37.492063
192
0.615157
336
2,362
4.142857
0.443452
0.030172
0.028736
0.028017
0.188218
0.188218
0.177443
0.12069
0.086207
0.086207
0
0.017507
0.201948
2,362
62
193
38.096774
0.720955
0.07155
0
0
0
0
0.286387
0.024023
0
0
0
0
0
1
0.025
false
0
0.075
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbbee95cb22f9ddebb8ee025c418f2636a32f8bb
790
py
Python
shape_similarity.py
Toonwire/infancy_eye_tracking
7b96a9d832f60f83fd5098ada2117ab1d0f56fed
[ "MIT" ]
null
null
null
shape_similarity.py
Toonwire/infancy_eye_tracking
7b96a9d832f60f83fd5098ada2117ab1d0f56fed
[ "MIT" ]
null
null
null
shape_similarity.py
Toonwire/infancy_eye_tracking
7b96a9d832f60f83fd5098ada2117ab1d0f56fed
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat May 25 13:17:49 2019 @author: Toonw """ import numpy as np def vlen(a): return (a[0]**2 + a[1]**2)**0.5 def add(v1,v2): return (v1[0]+v2[0], v1[1]+v2[1]) def sub(v1,v2): return (v1[0]-v2[0], v1[1]-v2[1]) def unit_vector(v): vu = v / np.linalg.norm(v) ...
23.939394
130
0.613924
144
790
3.326389
0.4375
0.033403
0.041754
0.050104
0.104384
0.104384
0.104384
0.104384
0.104384
0.104384
0
0.115207
0.175949
790
33
130
23.939394
0.620584
0.310127
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0.066667
0.266667
0.866667
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
1
0
0
3
dbc01ab01c84c8a6897199dca9635aa645e6cdeb
262
py
Python
apps/chats/apps.py
aldwyn/effigia
eb456656949bf68934530bbec9c15ebc6d0236b8
[ "MIT" ]
1
2018-11-15T05:17:30.000Z
2018-11-15T05:17:30.000Z
apps/chats/apps.py
aldwyn/effigia
eb456656949bf68934530bbec9c15ebc6d0236b8
[ "MIT" ]
5
2021-06-09T17:20:01.000Z
2022-03-11T23:18:06.000Z
apps/chats/apps.py
aldwyn/effigia
eb456656949bf68934530bbec9c15ebc6d0236b8
[ "MIT" ]
1
2018-10-05T19:03:27.000Z
2018-10-05T19:03:27.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class ChatsConfig(AppConfig): name = 'apps.chats' def ready(self): from actstream import registry registry.register(*self.get_models())
20.153846
45
0.694656
31
262
5.677419
0.741935
0
0
0
0
0
0
0
0
0
0
0.004785
0.20229
262
12
46
21.833333
0.837321
0.080153
0
0
0
0
0.041841
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.857143
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
dbc0541470856937f6eef50be9d0887839277ab1
3,472
py
Python
utils/ghost.py
JayJJChen/LoveXueXiQiangGuo
648a38cd73d1eb7ed7267721f1a23c90afb0daee
[ "MIT" ]
3
2019-04-16T07:52:20.000Z
2021-08-16T03:07:14.000Z
utils/ghost.py
JayJJChen/LoveXueXiQiangGuo
648a38cd73d1eb7ed7267721f1a23c90afb0daee
[ "MIT" ]
1
2019-04-17T02:23:32.000Z
2020-12-24T11:04:52.000Z
utils/ghost.py
JayJJChen/LoveXueXiQiangGuo
648a38cd73d1eb7ed7267721f1a23c90afb0daee
[ "MIT" ]
2
2019-04-17T04:00:55.000Z
2019-09-18T00:57:35.000Z
import os import time from utils.eye import Eye from utils.finger import Finger class Ghost: """class to navigate the app, with Eye and Finger""" def __init__(self, adb_path, temp_path, sleep_sec=2): self.eye = Eye(adb_path, temp_path) self.finger = Finger(adb_path, sleep_sec=sleep_sec) ...
30.191304
97
0.563652
484
3,472
3.855372
0.254132
0.037513
0.041265
0.036442
0.383708
0.326902
0.259378
0.229368
0.192926
0.192926
0
0.028657
0.326613
3,472
114
98
30.45614
0.769461
0.128168
0
0.337662
0
0
0.058276
0
0
0
0
0
0
1
0.168831
false
0
0.051948
0
0.298701
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbc13915cb653c37c09279f81347a4bfea838dd2
3,686
py
Python
src_taxonomy/bubble_tree_map.py
sanja7s/SR_Twitter
2eb499c9aa25ba6e9860cd77eac6832890d2c126
[ "MIT" ]
null
null
null
src_taxonomy/bubble_tree_map.py
sanja7s/SR_Twitter
2eb499c9aa25ba6e9860cd77eac6832890d2c126
[ "MIT" ]
null
null
null
src_taxonomy/bubble_tree_map.py
sanja7s/SR_Twitter
2eb499c9aa25ba6e9860cd77eac6832890d2c126
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- import random from ete2 import Tree, TreeStyle, NodeStyle, faces, AttrFace, CircleFace, TextFace def layout(node): if not node.is_root(): # Add node name to laef nodes #N = AttrFace("name", fsize=14, fgcolor="black") #faces.add_face_to_node(N, node, 0) #pass fa...
24.091503
98
0.655724
588
3,686
3.986395
0.292517
0.023891
0.011945
0.017918
0.200085
0.138652
0.104949
0.104949
0.104949
0.074232
0
0.023435
0.189636
3,686
153
99
24.091503
0.761299
0.223549
0
0.088889
0
0
0.109463
0
0
0
0
0
0
0
null
null
0
0.022222
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
0
0
0
0
0
0
1
dbc290ad28df369cc2a5189c66e670824982c619
28,719
py
Python
compass/core/_scrapers/member.py
MrNoScript/compass-interface-core
8c945ef36f7bee396bd5a744404eaa88d280a845
[ "MIT" ]
null
null
null
compass/core/_scrapers/member.py
MrNoScript/compass-interface-core
8c945ef36f7bee396bd5a744404eaa88d280a845
[ "MIT" ]
null
null
null
compass/core/_scrapers/member.py
MrNoScript/compass-interface-core
8c945ef36f7bee396bd5a744404eaa88d280a845
[ "MIT" ]
null
null
null
from __future__ import annotations import re import time from typing import get_args, Literal, TYPE_CHECKING, Union from lxml import html from compass.core.interface_base import InterfaceBase from compass.core.logger import logger from compass.core.schemas import member as schema from compass.core.settings import Se...
41.262931
132
0.568126
3,153
28,719
4.994925
0.174437
0.020255
0.008254
0.011429
0.260461
0.189409
0.160455
0.123436
0.099879
0.090037
0
0.011589
0.305965
28,719
695
133
41.322302
0.778547
0.281765
0
0.10061
0
0.006098
0.213864
0.081701
0
0
0
0.01295
0.003049
1
0.021341
false
0.02439
0.039634
0
0.097561
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
dbc489c4f1e6739cd6d3b2e54cc4268da59045a7
336
py
Python
quran_text/urls.py
Quran-Tafseer/tafseer_api
49eede15a6e50812a4bab1e0e1e38069fcb0da4d
[ "MIT" ]
16
2019-03-02T13:08:59.000Z
2022-02-26T17:26:09.000Z
quran_text/urls.py
EmadMokhtar/tafseer_api
abb2d53eb917f58db1e09f7d92180b0eb8001a40
[ "MIT" ]
45
2017-10-25T06:17:50.000Z
2018-12-08T17:01:41.000Z
quran_text/urls.py
Quran-Tafseer/tafseer_api
49eede15a6e50812a4bab1e0e1e38069fcb0da4d
[ "MIT" ]
6
2019-02-09T03:57:09.000Z
2021-12-29T02:54:29.000Z
from django.urls import path from . import views urlpatterns = [ path('', view=views.SuraListView.as_view(), name='sura-list'), path('<int:sura_num>/<int:number>/', view=views.AyahTextView.as_view(), name='ayah-detail'), path('<int:sura_num>/<int:number>', view=views.AyahTextVie...
25.846154
64
0.630952
43
336
4.813953
0.44186
0.130435
0.096618
0.135266
0.483092
0.483092
0.483092
0.483092
0.483092
0.483092
0
0
0.181548
336
12
65
28
0.752727
0
0
0
0
0
0.223214
0.16369
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbc52992fc79a5adada939783cc09ffe329b0264
1,623
py
Python
konnection/settings/local.py
IanSeng/CMPUT404_PROJECT
80acd2c57de4b091e0e66ad9f5f2df17801bf09e
[ "W3C-20150513" ]
null
null
null
konnection/settings/local.py
IanSeng/CMPUT404_PROJECT
80acd2c57de4b091e0e66ad9f5f2df17801bf09e
[ "W3C-20150513" ]
null
null
null
konnection/settings/local.py
IanSeng/CMPUT404_PROJECT
80acd2c57de4b091e0e66ad9f5f2df17801bf09e
[ "W3C-20150513" ]
null
null
null
from konnection.settings.base import * from pathlib import Path import os import dotenv # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent.parent # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True SECRET_KEY = 'temporaryKey'...
31.211538
122
0.653112
191
1,623
5.450262
0.554974
0.020173
0.060519
0.042267
0.153698
0.092219
0.092219
0
0
0
0
0.027216
0.20764
1,623
52
123
31.211538
0.782271
0.360444
0
0.176471
0
0
0.296982
0.095424
0
0
0
0
0
1
0
false
0.058824
0.117647
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
dbc6237f7856e6445933721e9b53e17ec980bef0
8,205
py
Python
main.py
PotentialParadox/PyReparm
70062e351eebacb9c6cb3dc0262e97256c52be3d
[ "Apache-2.0" ]
null
null
null
main.py
PotentialParadox/PyReparm
70062e351eebacb9c6cb3dc0262e97256c52be3d
[ "Apache-2.0" ]
null
null
null
main.py
PotentialParadox/PyReparm
70062e351eebacb9c6cb3dc0262e97256c52be3d
[ "Apache-2.0" ]
null
null
null
import random from evaluation import Evaluator from generator import generator from mutate import mutateset from deap import base from deap import creator from deap import tools from parameter_group import ParameterGroup import gaussian_output from analysis import Analysis from gaussian_input import GaussianInput from ...
36.145374
92
0.584156
905
8,205
5.140331
0.259669
0.081685
0.045142
0.045142
0.11221
0.061049
0.061049
0.037403
0.022356
0.022356
0
0.006928
0.155637
8,205
226
93
36.30531
0.66455
0.271176
0
0.110092
0
0
0.065442
0
0
0
0
0
0
1
0
false
0
0.211009
0
0.211009
0.055046
0
0
0
null
0
0
0
0
0
0
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
1
0
dbc6414ac2f786d426d11b5f7b21e310e975369d
23,614
py
Python
pyx12/test/test_x12context.py
arenius/pyx12
537493deaa0b8e18a3fa72eb1b3eeae9ef043b11
[ "BSD-3-Clause" ]
1
2019-11-06T21:22:28.000Z
2019-11-06T21:22:28.000Z
pyx12/test/test_x12context.py
arenius/pyx12
537493deaa0b8e18a3fa72eb1b3eeae9ef043b11
[ "BSD-3-Clause" ]
null
null
null
pyx12/test/test_x12context.py
arenius/pyx12
537493deaa0b8e18a3fa72eb1b3eeae9ef043b11
[ "BSD-3-Clause" ]
1
2021-04-12T14:32:41.000Z
2021-04-12T14:32:41.000Z
import unittest #import tempfile try: from StringIO import StringIO except: from io import StringIO import pyx12.error_handler from pyx12.errors import EngineError # , X12PathError import pyx12.x12context import pyx12.params from pyx12.test.x12testdata import datafiles class X12fileTestCase(unittest.TestCas...
38.210356
125
0.598247
2,840
23,614
4.833451
0.091549
0.062942
0.030961
0.036716
0.776717
0.700517
0.641801
0.609383
0.562468
0.517739
0
0.122283
0.269289
23,614
617
126
38.272285
0.673254
0.021343
0
0.582178
0
0.005941
0.109331
0.01719
0
0
0.001039
0
0.20396
1
0.126733
false
0.007921
0.015842
0
0.182178
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dbc6b99c48a68e88a0554cb932a77dac52c1e5c0
1,460
py
Python
repo/script.module.liveresolver/lib/liveresolver/resolvers/finecast.py
Hades01/Addons
710da97ac850197498a3cd64be1811c593610add
[ "Apache-2.0" ]
3
2020-03-03T13:21:44.000Z
2021-07-21T09:53:31.000Z
repo/script.module.liveresolver/lib/liveresolver/resolvers/finecast.py
Hades01/Addons
710da97ac850197498a3cd64be1811c593610add
[ "Apache-2.0" ]
null
null
null
repo/script.module.liveresolver/lib/liveresolver/resolvers/finecast.py
Hades01/Addons
710da97ac850197498a3cd64be1811c593610add
[ "Apache-2.0" ]
2
2020-04-01T22:11:12.000Z
2020-05-07T23:54:52.000Z
# -*- coding: utf-8 -*- import re,urlparse,cookielib,os,urllib from liveresolver.modules import client,recaptcha_v2,control,constants, decryptionUtils from liveresolver.modules.log_utils import log cookieFile = os.path.join(control.dataPath, 'finecastcookie.lwp') def resolve(url): #try: try: ...
30.416667
87
0.619178
171
1,460
5.239766
0.502924
0.030134
0.051339
0.051339
0.087054
0.087054
0.087054
0
0
0
0
0.021016
0.217808
1,460
48
88
30.416667
0.763573
0.031507
0
0.258065
0
0.032258
0.139815
0.031228
0
0
0
0
0
1
0.064516
false
0
0.096774
0
0.225806
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbc72ca28fa155b841727c07f4d5032dac9e8938
5,161
py
Python
src/robotide/publish/__init__.py
crylearner/RIDE3X
767f45b0c908f18ecc7473208def8dc7489f43b0
[ "ECL-2.0", "Apache-2.0" ]
1
2017-08-20T14:46:02.000Z
2017-08-20T14:46:02.000Z
src/robotide/publish/__init__.py
crylearner/RIDE3X
767f45b0c908f18ecc7473208def8dc7489f43b0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robotide/publish/__init__.py
crylearner/RIDE3X
767f45b0c908f18ecc7473208def8dc7489f43b0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Solutions and Networks # # 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 appl...
38.514925
83
0.742298
703
5,161
5.435277
0.386913
0.010468
0.018843
0.015703
0.044491
0.01989
0
0
0
0
0
0.004538
0.188723
5,161
133
84
38.804511
0.908049
0.895757
0
0
0
0
0.044041
0
0
0
0
0
0
1
0.090909
false
0
0.545455
0.090909
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
dbc7c8fe7bece88307002636b27bacde286985d2
3,520
py
Python
app.py
pizzapanther/google-actions-python-example
40d13fc1821e1e11f15cc7413571cb5bd6327024
[ "MIT" ]
9
2017-11-17T07:09:08.000Z
2020-07-03T13:32:16.000Z
app.py
pizzapanther/google-actions-python-example
40d13fc1821e1e11f15cc7413571cb5bd6327024
[ "MIT" ]
2
2019-08-10T05:49:47.000Z
2021-04-30T20:51:40.000Z
app.py
pizzapanther/google-actions-python-example
40d13fc1821e1e11f15cc7413571cb5bd6327024
[ "MIT" ]
5
2018-05-04T08:05:55.000Z
2021-08-25T05:49:18.000Z
#!/usr/bin/env python import os import json import tornado.ioloop import tornado.log import tornado.web from google.oauth2 import id_token from google.auth.transport import requests as google_requests import jwt import requests API_KEY = os.environ.get('OPEN_WEATHER_MAP_KEY', None) PROJECT_ID = os.environ.get('PRO...
25.693431
98
0.563352
368
3,520
5.263587
0.391304
0.021683
0.026846
0.043366
0.247806
0.247806
0.247806
0.247806
0.20857
0.121838
0
0.011722
0.297159
3,520
136
99
25.882353
0.771221
0.023864
0
0.294643
0
0
0.224585
0.016312
0
0
0
0
0
1
0.044643
false
0
0.080357
0.008929
0.142857
0.017857
0
0
0
null
0
0
0
0
0
0
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
1
0
dbc804db6b0f3dbd711ac33b62c655260b3871e9
352
py
Python
ProsperFlask/{{cookiecutter.project_name}}/tests/conftest.py
EVEprosper/ProsperCookiecutters
569ca0c311a5ead2b49f0cdde4cb2ad14dcd3a2c
[ "MIT" ]
null
null
null
ProsperFlask/{{cookiecutter.project_name}}/tests/conftest.py
EVEprosper/ProsperCookiecutters
569ca0c311a5ead2b49f0cdde4cb2ad14dcd3a2c
[ "MIT" ]
null
null
null
ProsperFlask/{{cookiecutter.project_name}}/tests/conftest.py
EVEprosper/ProsperCookiecutters
569ca0c311a5ead2b49f0cdde4cb2ad14dcd3a2c
[ "MIT" ]
null
null
null
# AUTOGENERATED BY: ProsperCookiecutters/ProsperFlask # TEMPLATE VERSION: {{cookiecutter.template_version}} # AUTHOR: {{cookiecutter.author_name}} """PyTest fixtures and modifiers""" import pytest from {{cookiecutter.library_name}}.endpoints import APP @pytest.fixture def app(): """flask test hook for dry-runni...
23.466667
55
0.755682
40
352
6.575
0.7
0.114068
0
0
0
0
0
0
0
0
0
0
0.127841
352
14
56
25.142857
0.856678
0.397727
0
0
1
0
0
0
0
0
0
0
0
0
null
null
0
0.4
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
1
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
3
dbc8735d5b72a93d69f4f92640c632b9a9b76112
3,341
py
Python
zoloto/coords.py
RealOrangeOne/yuri
6ed55bdf97c6add22cd6c71c39ca30e2229337cb
[ "BSD-3-Clause" ]
7
2019-08-09T10:05:14.000Z
2021-11-14T17:37:50.000Z
zoloto/coords.py
RealOrangeOne/yuri
6ed55bdf97c6add22cd6c71c39ca30e2229337cb
[ "BSD-3-Clause" ]
226
2019-06-20T09:48:23.000Z
2022-02-20T00:43:52.000Z
zoloto/coords.py
RealOrangeOne/yuri
6ed55bdf97c6add22cd6c71c39ca30e2229337cb
[ "BSD-3-Clause" ]
9
2019-07-19T10:55:47.000Z
2020-07-23T19:16:47.000Z
from typing import Iterator, NamedTuple, Tuple from cached_property import cached_property from cv2 import Rodrigues from pyquaternion import Quaternion class Coordinates(NamedTuple): """ :param float x: X coordinate :param float y: Y coordinate """ x: float y: float class ThreeDCoordinate...
25.7
83
0.609398
442
3,341
4.454751
0.205882
0.010157
0.052819
0.060945
0.307263
0.266633
0.266633
0.266633
0.249873
0.225495
0
0.010412
0.281353
3,341
129
84
25.899225
0.809663
0.33044
0
0.220339
0
0
0.019588
0.019588
0
0
0
0
0
1
0.20339
false
0
0.067797
0.016949
0.661017
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
dbc99a75d68d09d60f840eae7b285af4fedbeeae
2,988
py
Python
azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_container_query_object.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-07-23T08:59:24.000Z
2018-07-23T08:59:24.000Z
azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_container_query_object.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-11-29T14:46:42.000Z
2018-11-29T14:46:42.000Z
azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/bms_container_query_object.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
44.597015
81
0.662316
309
2,988
6.249191
0.433657
0.029001
0.072501
0.029001
0.047644
0.047644
0.047644
0
0
0
0
0.000405
0.174364
2,988
66
82
45.272727
0.782327
0.593039
0
0
0
0
0.305657
0.060219
0
0
0
0
0
1
0.047619
false
0
0.047619
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbca2b427044c8866cf81d44e473638aa489abca
274
py
Python
ia870/iagradm.py
rdenadai/ia870p3
c4823efc4b8e5f187a64f8a4e9962e328bf86967
[ "BSD-2-Clause" ]
5
2018-10-15T12:02:03.000Z
2022-02-11T12:47:12.000Z
ia870/iagradm.py
rdenadai/ia870p3
c4823efc4b8e5f187a64f8a4e9962e328bf86967
[ "BSD-2-Clause" ]
1
2018-10-15T12:04:36.000Z
2019-01-25T12:04:35.000Z
ia870/iagradm.py
rdenadai/ia870p3
c4823efc4b8e5f187a64f8a4e9962e328bf86967
[ "BSD-2-Clause" ]
4
2019-01-25T11:13:48.000Z
2020-12-20T01:42:33.000Z
# -*- encoding: utf-8 -*- # Module iagradm def iagradm(f, Bdil=None, Bero=None): from ia870 import iasubm,iadil,iaero,iasecross if Bdil is None: Bdil = iasecross() if Bero is None: Bero = iasecross() y = iasubm( iadil(f,Bdil),iaero(f,Bero)) return y
21.076923
50
0.642336
41
274
4.292683
0.512195
0.056818
0
0
0
0
0
0
0
0
0
0.018692
0.218978
274
12
51
22.833333
0.803738
0.138686
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbca8d6120f0830afa062de217262e49809ebe82
388
py
Python
backend/api/tests/test_models/test_utils/test_ranking_suffixes.py
ChristchurchCityWeightlifting/lifter-api
a82b79c75106e7f4f8ea4b4e3e12d727213445e3
[ "MIT" ]
null
null
null
backend/api/tests/test_models/test_utils/test_ranking_suffixes.py
ChristchurchCityWeightlifting/lifter-api
a82b79c75106e7f4f8ea4b4e3e12d727213445e3
[ "MIT" ]
5
2022-03-07T08:30:47.000Z
2022-03-22T09:15:52.000Z
backend/api/tests/test_models/test_utils/test_ranking_suffixes.py
ChristchurchCityWeightlifting/lifter-api
a82b79c75106e7f4f8ea4b4e3e12d727213445e3
[ "MIT" ]
null
null
null
import pytest from api.models.utils import rankings @pytest.fixture def test_data(): return [1, 11, 101] def test_rankings(test_data): """Tests if ranking works e.g. 1 returns 1st 11 returns 11th 101 return 101st """ assert rankings(test_data[0]) == "1st" assert rankings(t...
19.4
44
0.641753
55
388
4.418182
0.509091
0.164609
0.263374
0.271605
0
0
0
0
0
0
0
0.091525
0.239691
388
19
45
20.421053
0.732203
0.216495
0
0
0
0
0.042705
0
0
0
0
0
0.333333
1
0.222222
false
0
0.222222
0.111111
0.555556
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
1
0
0
0
1
1
0
0
5
dbcc6f4ccb0dabce5252e1dd4108228b2c863f99
721
py
Python
web/web-lemonthinker/src/app/app.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
2
2021-08-09T17:08:12.000Z
2021-08-09T17:08:17.000Z
web/web-lemonthinker/src/app/app.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
web/web-lemonthinker/src/app/app.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
1
2021-10-09T16:51:56.000Z
2021-10-09T16:51:56.000Z
from flask import Flask, request, redirect, url_for import os import random import string import time # lemonthink clean = time.time() app = Flask(__name__) chars = list(string.ascii_letters + string.digits) @app.route('/') def main(): return open("index.html").read() @app.route('/generate', methods=['POST']) de...
28.84
79
0.653259
96
721
4.833333
0.572917
0.051724
0.060345
0
0
0
0
0
0
0
0
0.013267
0.163662
721
25
79
28.84
0.756219
0.01387
0
0.090909
0
0
0.138028
0
0
0
0
0
0
1
0.090909
false
0
0.227273
0.045455
0.409091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbccbf08a5c6a38fe09196877c8bb3f8a56251c4
816
py
Python
aprendizado/codewars/descending_order.py
renatodev95/Python
2adee4a01de41f8bbb68fce563100c135a5ab549
[ "MIT" ]
null
null
null
aprendizado/codewars/descending_order.py
renatodev95/Python
2adee4a01de41f8bbb68fce563100c135a5ab549
[ "MIT" ]
null
null
null
aprendizado/codewars/descending_order.py
renatodev95/Python
2adee4a01de41f8bbb68fce563100c135a5ab549
[ "MIT" ]
null
null
null
# Your task is to make a function that can take any non-negative integer as an argument and return it with its digits in descending order. Essentially, rearrange the digits to create the highest possible number. # Função que recebe um número inteiro (não negativo) como argumento e o retorna com os dígitos em ordem des...
38.857143
211
0.734069
127
816
4.645669
0.622047
0.047458
0.030508
0.023729
0
0
0
0
0
0
0
0.006061
0.191176
816
20
212
40.8
0.887879
0.582108
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0.1
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbce1d6ebf5fac46543c3b47688a5f1e1c7cc668
8,981
py
Python
dmarc_storage.py
Schramp/dmarc-monitoring
619a162f71a788e81d92ca281ec0bdcf13c2e8e8
[ "MIT" ]
1
2020-05-25T05:09:18.000Z
2020-05-25T05:09:18.000Z
dmarc_storage.py
Schramp/dmarc-monitoring
619a162f71a788e81d92ca281ec0bdcf13c2e8e8
[ "MIT" ]
30
2019-08-12T05:10:50.000Z
2021-07-21T04:25:02.000Z
dmarc_storage.py
Schramp/dmarc-monitoring
619a162f71a788e81d92ca281ec0bdcf13c2e8e8
[ "MIT" ]
1
2022-03-12T19:24:24.000Z
2022-03-12T19:24:24.000Z
import sqlite3 import os import datetime __all__ = ['DMARCStorage', 'totimestamp'] def totimestamp(datetime_object): if datetime_object.utcoffset() is not None: utc_naive = datetime_object.replace(tzinfo=None) - datetime_object.utcoffset() else: utc_naive = datetime_object return (utc_nai...
49.894444
118
0.565639
1,012
8,981
4.75
0.156126
0.059705
0.078635
0.044934
0.462867
0.370917
0.302476
0.270647
0.255669
0.23861
0
0.004403
0.342501
8,981
179
119
50.173184
0.809653
0.04465
0
0.227586
0
0
0.471
0.044929
0
0
0
0
0
1
0.137931
false
0.055172
0.02069
0
0.262069
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
dbd0c614614154cd50e0792871e7aa778a2a1459
557
py
Python
setup.py
mcdruid/sumologic-python-sdk
cb1d649d0166976fb104866e9174a41bd558b817
[ "Apache-2.0" ]
4
2019-05-09T01:31:15.000Z
2019-12-08T03:35:32.000Z
setup.py
blaise-sumo/sumologic-python-sdk
97c38fc2d493b94741fd17711923ec7e39264610
[ "Apache-2.0" ]
null
null
null
setup.py
blaise-sumo/sumologic-python-sdk
97c38fc2d493b94741fd17711923ec7e39264610
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages setup( name="sumologic-sdk", version="0.1.9", packages=find_packages(), install_requires=['requests>=2.2.1'], # PyPI metadata author="Yoway Buorn, Melchi Salins", author_email="it@sumologic.com, melchisalins@icloud.com", description="Sumo Logi...
32.764706
121
0.716338
71
557
5.549296
0.746479
0.068528
0.091371
0
0
0
0
0
0
0
0
0.012848
0.16158
557
16
122
34.8125
0.830835
0.023339
0
0
0
0
0.512915
0.042435
0
0
0
0
0
1
0
true
0
0.071429
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
dbd1044b9a9e2ac21f72f6855560f0e23688f3f9
8,025
py
Python
docs/conf.py
urm8/django-translations
e8f66710af9433044937b75c061e1988add398a5
[ "BSD-3-Clause" ]
100
2018-11-20T19:30:49.000Z
2022-03-10T07:46:27.000Z
docs/conf.py
urm8/django-translations
e8f66710af9433044937b75c061e1988add398a5
[ "BSD-3-Clause" ]
30
2018-11-27T19:53:53.000Z
2022-02-04T14:56:52.000Z
docs/conf.py
urm8/django-translations
e8f66710af9433044937b75c061e1988add398a5
[ "BSD-3-Clause" ]
25
2019-05-30T13:41:47.000Z
2022-03-25T04:28:17.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
27.389078
79
0.642492
947
8,025
5.372756
0.370644
0.015723
0.005503
0.005896
0.186124
0.129127
0.112421
0.112421
0.096698
0.082547
0
0.002711
0.172586
8,025
292
80
27.482877
0.763554
0.530841
0
0.152542
0
0
0.536845
0.148199
0
0
0
0.003425
0
1
0
false
0
0.110169
0
0.110169
0.033898
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbd150b0b609e70f340c545eccce6da7fadb2eeb
86
py
Python
skorecard/metrics/__init__.py
orchardbirds/skorecard-1
0f5375a6c159bb35f4b62c5be75a742bf50885e2
[ "MIT" ]
null
null
null
skorecard/metrics/__init__.py
orchardbirds/skorecard-1
0f5375a6c159bb35f4b62c5be75a742bf50885e2
[ "MIT" ]
null
null
null
skorecard/metrics/__init__.py
orchardbirds/skorecard-1
0f5375a6c159bb35f4b62c5be75a742bf50885e2
[ "MIT" ]
null
null
null
"""Import required Metric.""" from .metrics import IV_scorer __all__ = ["IV_scorer"]
17.2
30
0.72093
11
86
5.090909
0.727273
0.285714
0
0
0
0
0
0
0
0
0
0
0.127907
86
4
31
21.5
0.746667
0.267442
0
0
0
0
0.157895
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
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
1
0
0
0
0
4
dbd2339bf7055960ea772c1eecf31ab430a3ae71
5,297
py
Python
src/waldur_core/core/tests/helpers.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
26
2017-10-18T13:49:58.000Z
2021-09-19T04:44:09.000Z
src/waldur_core/core/tests/helpers.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
14
2018-12-10T14:14:51.000Z
2021-06-07T10:33:39.000Z
src/waldur_core/core/tests/helpers.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
32
2017-09-24T03:10:45.000Z
2021-10-16T16:41:09.000Z
import copy from django.conf import settings from django.test.utils import override_settings from rest_framework import status, test class PermissionsTest(test.APITransactionTestCase): """ Abstract class for permissions tests. Methods `get_urls_configs`, `get_users_with_permission`, `get_users_witho...
37.302817
106
0.605815
596
5,297
5.20302
0.233221
0.028378
0.034827
0.028378
0.403096
0.320542
0.268301
0.242825
0.20058
0.112222
0
0.004093
0.308099
5,297
141
107
37.567376
0.842019
0.343968
0
0.163934
0
0.032787
0.085113
0
0
0
0
0
0.065574
1
0.131148
false
0.016393
0.065574
0.016393
0.262295
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbd3d31bd1a8e525699ace640bf7abf893c326e1
1,121
py
Python
data/benchmark.py
Gummary/denet
00d814d75eea54d5b259fce128ae7b625a900140
[ "MIT" ]
343
2020-04-02T06:22:18.000Z
2022-03-25T12:51:55.000Z
data/benchmark.py
sanglee325/cutblur
1589718b27973bec41289bbd5ad5a71ebe2e9925
[ "MIT" ]
26
2020-04-30T03:23:15.000Z
2022-02-20T07:31:42.000Z
data/benchmark.py
sanglee325/cutblur
1589718b27973bec41289bbd5ad5a71ebe2e9925
[ "MIT" ]
66
2020-04-02T06:55:37.000Z
2022-03-10T15:44:19.000Z
""" CutBlur Copyright 2020-present NAVER corp. MIT license """ import os import glob import data class BenchmarkSR(data.BaseDataset): def __init__(self, phase, opt): root = opt.dataset_root self.scale = opt.scale dir_HQ, dir_LQ = self.get_subdir() self.HQ_paths = sorted(glob.glob(o...
22.877551
78
0.611954
152
1,121
4.203947
0.276316
0.062598
0.065728
0.062598
0.571205
0.516432
0.450704
0.344288
0.344288
0.231612
0
0.00479
0.255129
1,121
48
79
23.354167
0.760479
0.048171
0
0.451613
0
0
0.021719
0
0
0
0
0
0
1
0.193548
false
0
0.096774
0
0.483871
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbd4271941c1c0d5952f6d9d574008a25b255d3d
917
py
Python
pytglib/api/types/update_chat_is_pinned.py
iTeam-co/pytglib
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
6
2019-10-30T08:57:27.000Z
2021-02-08T14:17:43.000Z
pytglib/api/types/update_chat_is_pinned.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
1
2021-08-19T05:44:10.000Z
2021-08-19T07:14:56.000Z
pytglib/api/types/update_chat_is_pinned.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
5
2019-12-04T05:30:39.000Z
2021-05-21T18:23:32.000Z
from ..utils import Object class UpdateChatIsPinned(Object): """ A chat was pinned or unpinned Attributes: ID (:obj:`str`): ``UpdateChatIsPinned`` Args: chat_id (:obj:`int`): Chat identifier is_pinned (:obj:`bool`): New value of is_pinned ...
22.365854
60
0.563795
106
917
4.698113
0.386792
0.128514
0.104418
0.084337
0.076305
0
0
0
0
0
0
0
0.320611
917
40
61
22.925
0.799358
0.368593
0
0
0
0
0.112426
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbd4c90cb945544747b8308cf5ade961b6ff86c8
30,162
py
Python
tests/test_api.py
jairhenrique/todoist-python
755b9bd8a4fdf4e96b2381613ac0c4bed99731e5
[ "MIT" ]
null
null
null
tests/test_api.py
jairhenrique/todoist-python
755b9bd8a4fdf4e96b2381613ac0c4bed99731e5
[ "MIT" ]
null
null
null
tests/test_api.py
jairhenrique/todoist-python
755b9bd8a4fdf4e96b2381613ac0c4bed99731e5
[ "MIT" ]
null
null
null
import io import time import todoist def test_stats_get(api_endpoint, api_token): api = todoist.api.TodoistAPI(api_token, api_endpoint) response = api.completed.get_stats() assert 'days_items' in response assert 'week_items' in response assert 'karma_trend' in response assert 'karma_last_upda...
29.1139
82
0.636264
3,974
30,162
4.694011
0.045546
0.085397
0.05661
0.062882
0.850166
0.814195
0.794521
0.762517
0.723652
0.694757
0
0.026388
0.198395
30,162
1,035
83
29.142029
0.74514
0
0
0.682278
0
0
0.123898
0.005172
0
0
0
0
0.187342
1
0.060759
false
0
0.005063
0
0.065823
0
0
0
0
null
0
0
0
1
1
1
1
1
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
6
dbd513568e3fe748df68592f5efb0230845ec0a5
990
py
Python
setup.py
dylancrockett/iot.io
472767186a5500e05b02d821f32e1208f3652418
[ "MIT" ]
null
null
null
setup.py
dylancrockett/iot.io
472767186a5500e05b02d821f32e1208f3652418
[ "MIT" ]
null
null
null
setup.py
dylancrockett/iot.io
472767186a5500e05b02d821f32e1208f3652418
[ "MIT" ]
null
null
null
from setuptools import setup import iotio with open("README.md", "r") as fh: long_description = fh.read() setup( name="iot.io", version=iotio.__version__, packages=["iotio"], author="Dylan Crockett", author_email="dylanrcrockett@gmail.com", license="MIT", description="A management API ...
28.285714
98
0.639394
106
990
5.839623
0.669811
0.096931
0.061389
0.096931
0.103393
0.103393
0
0
0
0
0
0.003881
0.219192
990
34
99
29.117647
0.796895
0
0
0.0625
0
0
0.441414
0.024242
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbd57373c1091216c9a267bad2a40451008902b2
1,820
py
Python
trellominer/api/trello.py
xnoder/trellominer
629d8f916486aa94a5bfa3a9497c36316c2864ed
[ "MIT" ]
null
null
null
trellominer/api/trello.py
xnoder/trellominer
629d8f916486aa94a5bfa3a9497c36316c2864ed
[ "MIT" ]
null
null
null
trellominer/api/trello.py
xnoder/trellominer
629d8f916486aa94a5bfa3a9497c36316c2864ed
[ "MIT" ]
null
null
null
import os import requests from trellominer.config import yaml class HTTP(object): def __init__(self): self.config = yaml.read(os.getenv("TRELLO_CONFIG", default=os.path.join(os.path.expanduser('~'), ".trellominer.yaml"))) self.api_url = os.getenv("TRELLO_URL", default=self.config['api']['url'])...
40.444444
165
0.644505
255
1,820
4.419608
0.239216
0.093168
0.074534
0.088731
0.341615
0.325643
0.325643
0.325643
0.233363
0.233363
0
0.010804
0.186264
1,820
44
166
41.363636
0.750169
0
0
0.30303
0
0.030303
0.231868
0.142857
0
0
0
0
0
1
0.181818
false
0
0.090909
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbd5cd5e6175ef560ba478a76fe061ded7bfc8d7
2,337
py
Python
alexnet_guided_bp_vanilla.py
wezteoh/face_perception_thru_backprop
449f78ce330876ff25fbcdf892023fd2ba86005c
[ "MIT" ]
null
null
null
alexnet_guided_bp_vanilla.py
wezteoh/face_perception_thru_backprop
449f78ce330876ff25fbcdf892023fd2ba86005c
[ "MIT" ]
null
null
null
alexnet_guided_bp_vanilla.py
wezteoh/face_perception_thru_backprop
449f78ce330876ff25fbcdf892023fd2ba86005c
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import os from scipy.io import savemat from scipy.io import loadmat from scipy.misc import imread from scipy.misc import imsave from alexnet_face_classifier import * import matplotlib.pyplot as plt plt.switch_backend('agg') class backprop_graph: def __init__(self, num_...
37.095238
110
0.693624
360
2,337
4.330556
0.255556
0.085311
0.041052
0.051315
0.20077
0.20077
0.116742
0
0
0
0
0.031672
0.175867
2,337
62
111
37.693548
0.777778
0
0
0
0
0
0.003432
0
0
0
0
0
0
1
0.102564
false
0
0.230769
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbd6ae222f06041fd60daf0b6a6b62ee66225c4f
18,729
py
Python
tests/test_sqlalchemy_registry.py
AferriDaniel/coaster
3ffbc9d33c981284593445299aaee0c3cc0cdb0b
[ "BSD-2-Clause" ]
48
2015-01-15T08:57:24.000Z
2022-01-26T04:04:34.000Z
tests/test_sqlalchemy_registry.py
AferriDaniel/coaster
3ffbc9d33c981284593445299aaee0c3cc0cdb0b
[ "BSD-2-Clause" ]
169
2015-01-16T13:17:38.000Z
2021-05-31T13:23:23.000Z
tests/test_sqlalchemy_registry.py
AferriDaniel/coaster
3ffbc9d33c981284593445299aaee0c3cc0cdb0b
[ "BSD-2-Clause" ]
17
2015-02-15T07:39:04.000Z
2021-10-05T11:20:22.000Z
"""Registry and RegistryMixin tests.""" from types import SimpleNamespace import pytest from coaster.db import db from coaster.sqlalchemy import BaseMixin from coaster.sqlalchemy.registry import Registry # --- Fixtures ------------------------------------------------------------------------- @pytest.fixture() def...
33.148673
88
0.724171
2,008
18,729
6.539343
0.10757
0.070368
0.063057
0.038535
0.646028
0.587389
0.518849
0.467977
0.409717
0.374914
0
0.010394
0.183245
18,729
564
89
33.207447
0.848009
0.17545
0
0.543478
0
0
0.009265
0
0
0
0
0.001773
0.225543
1
0.105978
false
0.002717
0.013587
0.021739
0.244565
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbd6cc6412096e169b145a7b948ae52708971c75
1,311
py
Python
home/migrations/0010_auto_20180206_1625.py
RomanMahar/personalsite
ad0c7880e0ccfe81ea53b8bad8e0d4fcf0c5830b
[ "MIT" ]
null
null
null
home/migrations/0010_auto_20180206_1625.py
RomanMahar/personalsite
ad0c7880e0ccfe81ea53b8bad8e0d4fcf0c5830b
[ "MIT" ]
10
2020-06-05T17:26:09.000Z
2022-01-13T00:39:44.000Z
home/migrations/0010_auto_20180206_1625.py
RomanMahar/personalsite
ad0c7880e0ccfe81ea53b8bad8e0d4fcf0c5830b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.13 on 2018-02-06 16:25 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('wagtailcore', '0028_merge'), ('home', '0009_remove_...
36.416667
158
0.62624
137
1,311
5.832117
0.576642
0.04005
0.052566
0.082603
0.157697
0.157697
0.157697
0.157697
0.157697
0.157697
0
0.031093
0.239512
1,311
35
159
37.457143
0.770311
0.051869
0
0.178571
1
0
0.166129
0.032258
0
0
0
0
0
1
0
false
0
0.107143
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dbd8f78b064be6d992dd13fbfa97e40d68c26218
900
py
Python
nesta/packages/misc_utils/tests/test_guess_sql_type.py
anniyanvr/nesta
4b3ae79922cebde0ad33e08ac4c40b9a10e8e7c3
[ "MIT" ]
13
2019-06-18T16:53:53.000Z
2021-03-04T10:58:52.000Z
nesta/packages/misc_utils/tests/test_guess_sql_type.py
nestauk/old_nesta_daps
4b3ae79922cebde0ad33e08ac4c40b9a10e8e7c3
[ "MIT" ]
208
2018-08-10T13:15:40.000Z
2021-07-21T10:16:07.000Z
nesta/packages/misc_utils/tests/test_guess_sql_type.py
nestauk/old_nesta_daps
4b3ae79922cebde0ad33e08ac4c40b9a10e8e7c3
[ "MIT" ]
8
2018-09-20T15:19:23.000Z
2020-12-15T17:41:34.000Z
import pytest from nesta.packages.misc_utils.guess_sql_type import guess_sql_type @pytest.fixture def int_data(): return [1,2,4,False] @pytest.fixture def text_data(): return ['a', True, 2, ('A very long sentence A very long sentence A ' 'very long sentence A very long sentence'), 'd...
25.714286
73
0.725556
144
900
4.215278
0.277778
0.144975
0.217463
0.14827
0.461285
0.220758
0.220758
0.220758
0.112026
0.112026
0
0.015894
0.161111
900
34
74
26.470588
0.788079
0
0
0.16
0
0
0.128889
0
0
0
0
0
0.2
1
0.32
false
0
0.08
0.16
0.56
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
1
0
0
0
1
1
0
0
4
dbd936c5bdf9f66abffeaa3d4ec25c893af108da
4,239
py
Python
api/controller/activity.py
DXCChina/pms
c779a69f25fb08101593c6ff0451debc0abce6e4
[ "MIT" ]
27
2017-11-06T06:58:30.000Z
2021-04-23T02:47:23.000Z
api/controller/activity.py
DXCChina/pms
c779a69f25fb08101593c6ff0451debc0abce6e4
[ "MIT" ]
3
2017-12-08T02:55:42.000Z
2019-06-04T15:23:03.000Z
api/controller/activity.py
DXCChina/pms
c779a69f25fb08101593c6ff0451debc0abce6e4
[ "MIT" ]
16
2017-10-12T03:06:39.000Z
2020-12-24T09:00:49.000Z
# -*- coding: utf-8 -*- '''活动管理接口''' from flask import request from model.db import database, Activity, ActivityMember, Demand, ActivityBase, ProjectMember, User from model.role import identity from flask_jwt_extended import (fresh_jwt_required) def demand_activity_add(activity_id, data): '''添加活动需求''' for d...
35.033058
98
0.599198
459
4,239
5.352941
0.169935
0.10582
0.08954
0.039072
0.524217
0.460317
0.319088
0.293854
0.258038
0.258038
0
0.000655
0.279547
4,239
120
99
35.325
0.803864
0.082095
0
0.3
0
0
0.071466
0
0
0
0
0
0
1
0.077778
false
0
0.044444
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbd96b797fa91e96b8a7f838f8fb68571c587fa0
326
py
Python
math/9. Palindrome number.py
Rage-ops/Leetcode-Solutions
48d4ecbb92a0bb7a7bb74a1445b593a67357ac02
[ "MIT" ]
1
2020-11-23T13:52:11.000Z
2020-11-23T13:52:11.000Z
math/9. Palindrome number.py
harsha-sam/Leetcode-Solutions
48d4ecbb92a0bb7a7bb74a1445b593a67357ac02
[ "MIT" ]
null
null
null
math/9. Palindrome number.py
harsha-sam/Leetcode-Solutions
48d4ecbb92a0bb7a7bb74a1445b593a67357ac02
[ "MIT" ]
null
null
null
# Easy # https://leetcode.com/problems/palindrome-number/ # Time Complexity: O(log(x) to base 10) # Space Complexity: O(1) class Solution: def isPalindrome(self, x: int) -> bool: temp = x rev = 0 while temp > 0: rev = rev * 10 + temp % 10 temp //= 10 return re...
27.166667
50
0.542945
44
326
4.022727
0.659091
0.124294
0.090395
0
0
0
0
0
0
0
0
0.050459
0.331288
326
12
51
27.166667
0.761468
0.349693
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbdc207882fb6307d686a3c2b77b753e65cc1495
114
py
Python
panoramisk/__init__.py
Eyepea/panoramisk
c10725e358f5b802faa9df1d22de6710927735a0
[ "MIT" ]
null
null
null
panoramisk/__init__.py
Eyepea/panoramisk
c10725e358f5b802faa9df1d22de6710927735a0
[ "MIT" ]
null
null
null
panoramisk/__init__.py
Eyepea/panoramisk
c10725e358f5b802faa9df1d22de6710927735a0
[ "MIT" ]
null
null
null
from .manager import Manager # NOQA from .call_manager import CallManager # NOQA from . import fast_agi # NOQA
28.5
45
0.763158
16
114
5.3125
0.5
0.305882
0
0
0
0
0
0
0
0
0
0
0.184211
114
3
46
38
0.913978
0.122807
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
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
1
0
1
0
1
0
0
6
dbdc8acd947df0cf5d903b9fd18f947cd84ecb24
4,762
py
Python
prtg/client.py
kevinschoon/prtg-py
714e0750606e55b2cd4c7dff8770d94057fa932b
[ "MIT" ]
null
null
null
prtg/client.py
kevinschoon/prtg-py
714e0750606e55b2cd4c7dff8770d94057fa932b
[ "MIT" ]
null
null
null
prtg/client.py
kevinschoon/prtg-py
714e0750606e55b2cd4c7dff8770d94057fa932b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Python library for Paessler's PRTG (http://www.paessler.com/) """ import logging import xml.etree.ElementTree as Et from urllib import request from prtg.cache import Cache from prtg.models import Sensor, Device, Status, PrtgObject from prtg.exceptions import BadTarget, UnknownResponse cl...
32.616438
145
0.558169
518
4,762
5.063707
0.295367
0.020587
0.010294
0.019443
0.035837
0.035837
0.035837
0.035837
0.035837
0.035837
0
0.00094
0.330113
4,762
145
146
32.841379
0.821317
0.059219
0
0.166667
0
0
0.040552
0
0
0
0
0
0
1
0.106061
false
0.030303
0.090909
0
0.287879
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbdce6502afcfa5e2708f1c6de7ac5e46b73c5d7
3,303
py
Python
template/misc.py
da-h/tf-boilerplate
ab8409c935d3fcbed07bbefd1cb0049d45283222
[ "MIT" ]
null
null
null
template/misc.py
da-h/tf-boilerplate
ab8409c935d3fcbed07bbefd1cb0049d45283222
[ "MIT" ]
null
null
null
template/misc.py
da-h/tf-boilerplate
ab8409c935d3fcbed07bbefd1cb0049d45283222
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.python.training.session_run_hook import SessionRunArgs # Define data loaders ##################################### # See https://gist.github.com/peterroelants/9956ec93a07ca4e9ba5bc415b014bcca class IteratorInitializerHook(tf.train.SessionRunHook): """Hook to initialise data...
32.70297
126
0.666969
386
3,303
5.430052
0.34715
0.030057
0.031011
0.032443
0.337786
0.313931
0.289122
0.289122
0.289122
0.289122
0
0.008089
0.214048
3,303
100
127
33.03
0.799307
0.17802
0
0.338983
0
0.016949
0.134909
0
0
0
0
0
0
1
0.20339
false
0.016949
0.033898
0
0.355932
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
dbdd97337631bf234182cdf6ceb595a8b38fcc53
359
py
Python
pyunitwizard/_private_tools/parsers.py
uibcdf/pyunitwizard
54cdce7369e1f2a3771a1f05a4a6ba1d7610a5e7
[ "MIT" ]
null
null
null
pyunitwizard/_private_tools/parsers.py
uibcdf/pyunitwizard
54cdce7369e1f2a3771a1f05a4a6ba1d7610a5e7
[ "MIT" ]
null
null
null
pyunitwizard/_private_tools/parsers.py
uibcdf/pyunitwizard
54cdce7369e1f2a3771a1f05a4a6ba1d7610a5e7
[ "MIT" ]
null
null
null
parsers = ['openmm.unit', 'pint', 'unyt'] def digest_parser(parser: str) -> str: """ Check if parser is correct.""" if parser is not None: if parser.lower() in parsers: return parser.lower() else: raise ValueError else: from pyunitwizard.kernel import default...
25.642857
54
0.601671
42
359
5.071429
0.619048
0.112676
0.093897
0
0
0
0
0
0
0
0
0
0.29805
359
13
55
27.615385
0.845238
0.075209
0
0.2
0
0
0.058642
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbddb2e414eaaea37bf5ee700d9d3c21f697c101
6,606
py
Python
metric_wsd/utils/data_utils.py
bartonlin/MWSD
70ad446ee7f00a11988acb290270e32d8e6af925
[ "MIT" ]
4
2021-04-27T16:28:51.000Z
2021-08-30T11:10:28.000Z
metric_wsd/utils/data_utils.py
bartonlin/MWSD
70ad446ee7f00a11988acb290270e32d8e6af925
[ "MIT" ]
null
null
null
metric_wsd/utils/data_utils.py
bartonlin/MWSD
70ad446ee7f00a11988acb290270e32d8e6af925
[ "MIT" ]
2
2021-08-25T14:29:45.000Z
2022-02-12T02:09:45.000Z
''' Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. This source code is licensed under the license found in the LICENSE file in the root directory of this source tree. Code taken from: https://github.com/facebookresearch/wsd-biencoders/blob/master/wsd_models/util.py ''' import os import re impo...
29.891403
98
0.673479
990
6,606
4.369697
0.261616
0.020342
0.011558
0.014794
0.251271
0.111188
0.092233
0.092233
0.085761
0.085761
0
0.011389
0.189222
6,606
220
99
30.027273
0.796303
0.189979
0
0.2375
0
0
0.079526
0
0
0
0
0
0.025
1
0.0625
false
0
0.0375
0
0.1625
0.00625
0
0
0
null
0
0
0
0
0
0
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
1
0
dbddc1c2c35c862c97e10c987a1255308c864f59
2,825
py
Python
examples/dehydrogenation/3-property-mappings/mappings_from_ontology/run_w_onto.py
TorgeirUstad/dlite
1d7b4ccec0e76799a25992534cd295a80d83878a
[ "MIT" ]
null
null
null
examples/dehydrogenation/3-property-mappings/mappings_from_ontology/run_w_onto.py
TorgeirUstad/dlite
1d7b4ccec0e76799a25992534cd295a80d83878a
[ "MIT" ]
null
null
null
examples/dehydrogenation/3-property-mappings/mappings_from_ontology/run_w_onto.py
TorgeirUstad/dlite
1d7b4ccec0e76799a25992534cd295a80d83878a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from typing import Dict, AnyStr from pathlib import Path from ontopy import get_ontology import dlite from dlite.mappings import make_instance # Setup dlite paths thisdir = Path(__file__).parent.absolute() rootdir = thisdir.parent.parent workflow1dir = rootdir / '1-simple-workflow' entitiesdir...
31.388889
75
0.735929
377
2,825
5.427056
0.413793
0.034213
0.01955
0.024438
0.150538
0.094819
0.065494
0.034213
0.034213
0.034213
0
0.016617
0.169204
2,825
89
76
31.741573
0.855134
0.463009
0
0
0
0
0.193103
0.062759
0
0
0
0.011236
0
1
0.03125
false
0
0.15625
0
0.21875
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
91551c7d6fac7874ebf8acc4dfa5dfb4b2e853a5
6,479
py
Python
forms.py
lendoo73/my_idea_boxes
c0d0e7bbd0b64ae35146f3792cd477d1ec8461b5
[ "MIT" ]
null
null
null
forms.py
lendoo73/my_idea_boxes
c0d0e7bbd0b64ae35146f3792cd477d1ec8461b5
[ "MIT" ]
null
null
null
forms.py
lendoo73/my_idea_boxes
c0d0e7bbd0b64ae35146f3792cd477d1ec8461b5
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from flask_wtf.file import FileField, FileAllowed, FileRequired from wtforms import StringField, PasswordField, BooleanField, TextAreaField, SubmitField, RadioField, HiddenField from wtforms.fields.html5 import DateField, IntegerField from wtforms.validators import ValidationError, DataR...
40.49375
113
0.679426
567
6,479
7.680776
0.215168
0.197015
0.10333
0.062687
0.479679
0.46062
0.378875
0.347646
0.223192
0.223192
0
0.002705
0.201111
6,479
160
114
40.49375
0.838679
0
0
0.314286
0
0
0.183025
0
0
0
0
0
0
1
0
false
0.214286
0.042857
0
0.635714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9155a081d524a7aa2a093b5db6afb167995bd2d7
3,381
py
Python
5.analysis/scikit-multilearn-master/skmultilearn/adapt/brknn.py
fullmooncj/textmining_edu
b1402fd96fbde945f48c52d71ba4dfe51fd96602
[ "Apache-2.0" ]
null
null
null
5.analysis/scikit-multilearn-master/skmultilearn/adapt/brknn.py
fullmooncj/textmining_edu
b1402fd96fbde945f48c52d71ba4dfe51fd96602
[ "Apache-2.0" ]
null
null
null
5.analysis/scikit-multilearn-master/skmultilearn/adapt/brknn.py
fullmooncj/textmining_edu
b1402fd96fbde945f48c52d71ba4dfe51fd96602
[ "Apache-2.0" ]
null
null
null
from builtins import range from ..base import MLClassifierBase from ..utils import get_matrix_in_format from sklearn.neighbors import NearestNeighbors import scipy.sparse as sparse import numpy as np class BinaryRelevanceKNN(MLClassifierBase): """Binary Relevance adapted kNN Multi-Label Classifier.""" def __i...
37.566667
135
0.675244
452
3,381
4.949115
0.323009
0.020116
0.042468
0.025481
0.282521
0.248547
0.211891
0.211891
0.211891
0.211891
0
0.005794
0.23425
3,381
90
136
37.566667
0.858246
0.397811
0
0.055556
0
0
0.004313
0
0
0
0
0.011111
0
1
0.166667
false
0
0.166667
0.027778
0.555556
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
9155e8339948407989efd32f44f9c2682f1c678e
931
py
Python
groclient/constants.py
eric-gro/api-client
0ca73422c25b5065907d068a44b72bdc43fea79f
[ "MIT" ]
18
2019-01-10T21:06:17.000Z
2022-03-15T06:22:18.000Z
groclient/constants.py
eric-gro/api-client
0ca73422c25b5065907d068a44b72bdc43fea79f
[ "MIT" ]
138
2019-01-16T15:35:35.000Z
2022-03-23T13:05:03.000Z
groclient/constants.py
eric-gro/api-client
0ca73422c25b5065907d068a44b72bdc43fea79f
[ "MIT" ]
24
2019-02-22T19:24:54.000Z
2022-03-15T10:17:37.000Z
"""Constants about the Gro ontology that can be imported and re-used anywhere.""" REGION_LEVELS = { 'world': 1, 'continent': 2, 'country': 3, 'province': 4, # Equivalent to state in the United States 'district': 5, # Equivalent to county in the United States 'city': 6, 'market': 7, 'o...
22.707317
88
0.628357
115
931
4.782609
0.582609
0.058182
0.04
0.061818
0.083636
0
0
0
0
0
0
0.012346
0.216971
931
40
89
23.275
0.742112
0.170784
0
0
0
0
0.415686
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9156c4aa90ea0469b8acd15340e3ebcae1eab123
1,535
py
Python
asv_bench/benchmarks/tslibs/period.py
CitizenB/pandas
ee1efb6d923a2c3e5a912efe20a336179614993d
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
6
2020-09-10T15:03:25.000Z
2021-04-01T22:48:33.000Z
asv_bench/benchmarks/tslibs/period.py
ivan-vasilev/pandas
4071dde86e33434e1bee8304fa62074949f813cc
[ "BSD-3-Clause" ]
7
2015-08-30T23:51:00.000Z
2018-12-29T19:52:35.000Z
asv_bench/benchmarks/tslibs/period.py
ivan-vasilev/pandas
4071dde86e33434e1bee8304fa62074949f813cc
[ "BSD-3-Clause" ]
5
2017-10-04T22:24:49.000Z
2021-08-06T13:50:13.000Z
""" Period benchmarks that rely only on tslibs. See benchmarks.period for Period benchmarks that rely on other parts fo pandas. """ from pandas import Period from pandas.tseries.frequencies import to_offset class PeriodProperties: params = ( ["M", "min"], [ "year", "mont...
21.619718
70
0.536808
173
1,535
4.641619
0.381503
0.099626
0.054795
0.07472
0.117061
0.117061
0.089664
0.089664
0.089664
0.089664
0
0.023369
0.330945
1,535
70
71
21.928571
0.75852
0.080782
0
0.040816
0
0
0.119743
0
0
0
0
0
0
1
0.163265
false
0
0.040816
0
0.387755
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91575f345c10efb311ca9de7963da8d6ac0667fd
1,894
py
Python
Bugscan_exploits-master/exp_list/exp-1788.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
11
2020-05-30T13:53:49.000Z
2021-03-17T03:20:59.000Z
Bugscan_exploits-master/exp_list/exp-1788.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-13T03:25:18.000Z
2020-07-21T06:24:16.000Z
Bugscan_exploits-master/exp_list/exp-1788.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-30T13:53:51.000Z
2020-12-01T21:44:26.000Z
#/usr/bin/python #-*- coding: utf-8 -*- #Refer http://www.wooyun.org/bugs/wooyun-2015-0137140 #__Author__ = 上善若水 #_PlugName_ = whezeip Plugin #_FileName_ = whezeip.py def assign(service, arg): if service == "whezeip": return True, arg def audit(arg): raw = ''' POST /defaultroot/custom...
37.137255
97
0.659451
246
1,894
4.98374
0.573171
0.008157
0.085644
0.092985
0.166395
0.166395
0.094617
0.094617
0
0
0
0.106173
0.144667
1,894
51
98
37.137255
0.647531
0.129356
0
0.058824
0
0.117647
0.711055
0.412688
0.029412
0
0
0
0
1
0.058824
false
0
0.029412
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9158ba2878b65e7507783af35fb834ff85d1e33a
535
py
Python
3-working-with-lists/zip_tuples.py
thecodingsim/learn-python
bf8e98f40e73ebf7dcf5641312c2c0296d886952
[ "MIT" ]
null
null
null
3-working-with-lists/zip_tuples.py
thecodingsim/learn-python
bf8e98f40e73ebf7dcf5641312c2c0296d886952
[ "MIT" ]
null
null
null
3-working-with-lists/zip_tuples.py
thecodingsim/learn-python
bf8e98f40e73ebf7dcf5641312c2c0296d886952
[ "MIT" ]
null
null
null
# Use zip() to create a new variable called names_and_dogs_names that combines owners and dogs_names lists into a zip object. # Then, create a new variable named list_of_names_and_dogs_names by calling the list() function on names_and_dogs_names. # Print list_of_names_and_dogs_names. owners = ["Jenny", "Alexus", "Sa...
48.636364
125
0.792523
91
535
4.274725
0.406593
0.254499
0.277635
0.349614
0.349614
0.349614
0.231362
0.231362
0.231362
0.231362
0
0
0.115888
535
11
126
48.636364
0.82241
0.519626
0
0
0
0
0.200787
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
0
0
0
null
1
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
3
915a53aa4a7088b23b53c3227ab2635547e8ba50
1,593
py
Python
setup.py
abhiomkar/couchdbkit
035062b504b57c1cc6e576be47fb05423fb1ddb3
[ "MIT" ]
1
2021-06-03T21:34:38.000Z
2021-06-03T21:34:38.000Z
setup.py
abhiomkar/couchdbkit
035062b504b57c1cc6e576be47fb05423fb1ddb3
[ "MIT" ]
null
null
null
setup.py
abhiomkar/couchdbkit
035062b504b57c1cc6e576be47fb05423fb1ddb3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 - # # This file is part of couchdbkit released under the MIT license. # See the NOTICE for more information. import os import sys if not hasattr(sys, 'version_info') or sys.version_info < (2, 5, 0, 'final'): raise SystemExit("couchdbkit requires Python 2.5 or later.") from setuptools import ...
27
77
0.626491
165
1,593
5.915152
0.672727
0.055328
0.028689
0
0
0
0
0
0
0
0
0.008403
0.252982
1,593
58
78
27.465517
0.811765
0.075957
0
0.045455
0
0
0.466258
0.114519
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
915bb507e25fc7cb08c5d136b971e88a2d706d9b
1,934
py
Python
tests/integration/test_infrastructure_persistence.py
othercodes/sample-todo-list-hexagonal-achitecture
a958c6906d8e777e837c8348c754b637b89a7031
[ "Apache-2.0" ]
null
null
null
tests/integration/test_infrastructure_persistence.py
othercodes/sample-todo-list-hexagonal-achitecture
a958c6906d8e777e837c8348c754b637b89a7031
[ "Apache-2.0" ]
null
null
null
tests/integration/test_infrastructure_persistence.py
othercodes/sample-todo-list-hexagonal-achitecture
a958c6906d8e777e837c8348c754b637b89a7031
[ "Apache-2.0" ]
null
null
null
from typing import Optional from complexheart.domain.criteria import Criteria from sqlalchemy import create_engine from sqlalchemy.engine import Engine from sqlalchemy.orm import sessionmaker from to_do_list.tasks.domain.models import Task from to_do_list.tasks.infrastructure.persistence.relational import RelationalT...
27.628571
104
0.73061
231
1,934
5.909091
0.281385
0.046886
0.049817
0.067399
0.591941
0.567033
0.524542
0.524542
0.524542
0.524542
0
0.00496
0.165977
1,934
69
105
28.028986
0.84129
0
0
0.363636
0
0
0.044984
0
0
0
0
0
0.136364
1
0.113636
false
0
0.159091
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
915c531ce1a9edc3c8480b0c6bf84bed9c0ec81f
2,934
py
Python
wagtail_jinja2/extensions.py
minervaproject/wagtail-jinja2-extensions
708f2f873273312ead80d67c3eff0555f152d072
[ "MIT" ]
6
2015-09-25T15:33:17.000Z
2021-11-17T23:25:52.000Z
wagtail_jinja2/extensions.py
minervaproject/wagtail-jinja2-extensions
708f2f873273312ead80d67c3eff0555f152d072
[ "MIT" ]
1
2015-09-29T15:53:40.000Z
2015-09-29T15:53:40.000Z
wagtail_jinja2/extensions.py
minervaproject/wagtail-jinja2-extensions
708f2f873273312ead80d67c3eff0555f152d072
[ "MIT" ]
null
null
null
from jinja2.ext import Extension from jinja2 import nodes from jinja2 import Markup from wagtail.wagtailadmin.templatetags.wagtailuserbar import wagtailuserbar as original_wagtailuserbar from wagtail.wagtailimages.models import Filter, SourceImageIOError class WagtailUserBarExtension(Extension): tags = set(['wag...
40.75
113
0.65576
354
2,934
5.279661
0.378531
0.048154
0.069556
0.032103
0.122525
0.055645
0.055645
0.055645
0.055645
0.055645
0
0.002313
0.263122
2,934
71
114
41.323944
0.862165
0.224608
0
0.108696
0
0
0.026979
0
0
0
0
0
0
1
0.108696
false
0
0.108696
0.021739
0.478261
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
915d6d3e43279c39fd9d72fc48c527f4f811ec46
180
py
Python
rta/provision/__init__.py
XiaoguTech/rta-sandbox
2783a3ba8920bf64273761ce7392e51c9c8fb1f7
[ "MIT" ]
null
null
null
rta/provision/__init__.py
XiaoguTech/rta-sandbox
2783a3ba8920bf64273761ce7392e51c9c8fb1f7
[ "MIT" ]
null
null
null
rta/provision/__init__.py
XiaoguTech/rta-sandbox
2783a3ba8920bf64273761ce7392e51c9c8fb1f7
[ "MIT" ]
null
null
null
from rta.provision.utils import * from rta.provision.passwd import * from rta.provision.influxdb import * from rta.provision.grafana import * from rta.provision.kapacitor import *
30
37
0.805556
25
180
5.8
0.36
0.241379
0.551724
0.606897
0
0
0
0
0
0
0
0
0.111111
180
5
38
36
0.90625
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.2
1
0
1
0
1
0
0
null
1
1
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
1
1
1
0
1
0
0
9
915d76b7f2fcca50d25cf033042e2f1d7c43e461
14,694
py
Python
nn_dataflow/tests/unit_test/test_network.py
Pingziwalk/nn_dataflow
5ae8eeba4e243df6e9a69127073513a852a62d17
[ "BSD-3-Clause" ]
170
2017-02-28T01:33:11.000Z
2022-03-12T09:56:47.000Z
nn_dataflow/tests/unit_test/test_network.py
Pingziwalk/nn_dataflow
5ae8eeba4e243df6e9a69127073513a852a62d17
[ "BSD-3-Clause" ]
24
2017-09-18T20:14:51.000Z
2022-01-23T06:43:28.000Z
nn_dataflow/tests/unit_test/test_network.py
Pingziwalk/nn_dataflow
5ae8eeba4e243df6e9a69127073513a852a62d17
[ "BSD-3-Clause" ]
71
2017-02-07T17:36:17.000Z
2022-03-26T00:45:00.000Z
""" $lic$ Copyright (C) 2016-2020 by Tsinghua University and The Board of Trustees of Stanford University This program is free software: you can redistribute it and/or modify it under the terms of the Modified BSD-3 License as published by the Open Source Initiative. This program is distributed in the hope that it wi...
38.365535
79
0.598884
1,793
14,694
4.815393
0.104852
0.143966
0.063238
0.031619
0.690294
0.555594
0.485986
0.452861
0.35754
0.329743
0
0.054428
0.242276
14,694
382
80
38.465969
0.721035
0.101538
0
0.42126
0
0
0.062774
0
0
0
0
0
0.366142
1
0.133858
false
0
0.011811
0
0.149606
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
915df7659ad33f08dc46ec91edcb67d2d6a2b9af
365
py
Python
apps/division/urls.py
Jingil-Integrated-Management/JIM_backend
f0e7860d57eddaee034531a52ab91d6715d12c18
[ "Apache-2.0" ]
null
null
null
apps/division/urls.py
Jingil-Integrated-Management/JIM_backend
f0e7860d57eddaee034531a52ab91d6715d12c18
[ "Apache-2.0" ]
null
null
null
apps/division/urls.py
Jingil-Integrated-Management/JIM_backend
f0e7860d57eddaee034531a52ab91d6715d12c18
[ "Apache-2.0" ]
null
null
null
from django.urls import path from .views import DivisionListCreateAPIView, DivisionRetrieveUpdateDestroyAPIView, MainDivisionListAPIView urlpatterns = [ path('division/', DivisionListCreateAPIView.as_view()), path('division/<division_pk>', DivisionRetrieveUpdateDestroyAPIView.as_view()), path('division/m...
33.181818
107
0.794521
30
365
9.533333
0.5
0.125874
0.06993
0.125874
0
0
0
0
0
0
0
0
0.09589
365
10
108
36.5
0.866667
0
0
0
0
0
0.123288
0.060274
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
915ff60df252f62c3f259d30deba52d17fbf124c
9,077
py
Python
sympy/solvers/tests/test_pde.py
nashalex/sympy
aec3e6512be46f0558f5dbcf2b4d723496c91649
[ "BSD-3-Clause" ]
8,323
2015-01-02T15:51:43.000Z
2022-03-31T13:13:19.000Z
sympy/solvers/tests/test_pde.py
nashalex/sympy
aec3e6512be46f0558f5dbcf2b4d723496c91649
[ "BSD-3-Clause" ]
15,102
2015-01-01T01:33:17.000Z
2022-03-31T22:53:13.000Z
sympy/solvers/tests/test_pde.py
nashalex/sympy
aec3e6512be46f0558f5dbcf2b4d723496c91649
[ "BSD-3-Clause" ]
4,490
2015-01-01T17:48:07.000Z
2022-03-31T17:24:05.000Z
from sympy import (Derivative as D, Eq, exp, sin, Function, Symbol, symbols, cos, log) from sympy.core import S from sympy.solvers.pde import (pde_separate, pde_separate_add, pde_separate_mul, pdsolve, classify_pde, checkpdesol) from sympy.testing.pytest import raises a, b, c, x, y = symbols('a b c x y') def...
38.299578
84
0.537512
1,794
9,077
2.634894
0.074136
0.041464
0.041252
0.038502
0.660038
0.614132
0.545166
0.471123
0.453353
0.416966
0
0.030389
0.220557
9,077
236
85
38.461864
0.637739
0.036245
0
0.391304
0
0
0.093407
0.080357
0
0
0
0
0.282609
1
0.059783
false
0
0.021739
0
0.081522
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91613dad90fa3ec0c081f265b28f59e30cdfc17e
6,376
py
Python
GCN/GCN.py
EasternJournalist/learn-deep-learning
cc424713ffc57b8a796ebd81354a1b887f9c5092
[ "MIT" ]
6
2021-08-18T03:29:12.000Z
2022-03-22T13:15:35.000Z
GCN/GCN.py
EasternJournalist/learn-deep-learning
cc424713ffc57b8a796ebd81354a1b887f9c5092
[ "MIT" ]
null
null
null
GCN/GCN.py
EasternJournalist/learn-deep-learning
cc424713ffc57b8a796ebd81354a1b887f9c5092
[ "MIT" ]
2
2022-01-06T12:25:02.000Z
2022-03-22T13:15:36.000Z
import torch import torch.nn.functional as F import pandas as pd import numpy as np from torch_geometric.data import Data from torch_geometric.nn import GCNConv, PairNorm from torch_geometric.utils.undirected import to_undirected import random import matplotlib.pyplot as plt data_name = 'citeseer' # 'cora' or 'ci...
44.587413
134
0.674875
932
6,376
4.345494
0.187768
0.041481
0.062222
0.051358
0.377531
0.354815
0.318272
0.276543
0.276543
0.274074
0
0.01186
0.166876
6,376
143
135
44.587413
0.750565
0.015213
0
0.035714
0
0
0.201914
0.024402
0
0
0
0
0
1
0.044643
false
0
0.080357
0.008929
0.169643
0.026786
0
0
0
null
0
0
0
0
0
0
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
1
0
9163007875867d67440a283e2e9737b0b98baef2
3,724
py
Python
esg_leipzig_homepage_2015/views.py
ESG-Leipzig/Homepage-2015
6b77451881031dcb640d2e61ce862617d634f9ac
[ "MIT" ]
null
null
null
esg_leipzig_homepage_2015/views.py
ESG-Leipzig/Homepage-2015
6b77451881031dcb640d2e61ce862617d634f9ac
[ "MIT" ]
4
2015-03-31T22:37:09.000Z
2015-10-22T21:37:17.000Z
esg_leipzig_homepage_2015/views.py
ESG-Leipzig/Homepage-2015
6b77451881031dcb640d2e61ce862617d634f9ac
[ "MIT" ]
3
2015-02-03T10:23:24.000Z
2018-04-11T12:29:23.000Z
import datetime import json from django.conf import settings from django.http import Http404 from django.utils import timezone from django.views import generic from .models import Event, FlatPage, News class HomeView(generic.ListView): """ View for the first page called 'Home'. """ context_object_na...
31.559322
78
0.603652
419
3,724
5.186158
0.295943
0.02485
0.038656
0.02347
0.178555
0.133456
0.090198
0.052462
0.052462
0.052462
0
0.004231
0.301826
3,724
117
79
31.82906
0.831538
0.153867
0
0.150685
0
0
0.049949
0.007136
0
0
0
0
0
1
0.082192
false
0
0.09589
0
0.383562
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91632bfaf2e874f47f67ae904c5dae1d1c06cb7a
3,509
py
Python
train.py
ronniechong/tensorflow-trainer
79e58d224ce1e5ae687abee2bfd81deb49bd41dd
[ "MIT" ]
null
null
null
train.py
ronniechong/tensorflow-trainer
79e58d224ce1e5ae687abee2bfd81deb49bd41dd
[ "MIT" ]
6
2021-06-08T21:56:34.000Z
2022-03-12T00:39:34.000Z
train.py
ronniechong/tensorflow-trainer
79e58d224ce1e5ae687abee2bfd81deb49bd41dd
[ "MIT" ]
null
null
null
from dotenv import load_dotenv load_dotenv() from flask import Flask, flash, request, redirect, url_for from flask_ngrok import run_with_ngrok from flask_cors import CORS from werkzeug.utils import secure_filename import tensorflow as tf from tensorflow import keras from tensorflow.keras.applications import vgg16 fro...
29
121
0.654032
478
3,509
4.638075
0.32636
0.035183
0.024808
0.03834
0.331078
0.308525
0.308525
0.291385
0.291385
0.291385
0
0.022159
0.202622
3,509
121
122
29
0.770193
0.065261
0
0.319588
0
0
0.112741
0.013138
0
0
0
0
0
1
0.041237
false
0
0.134021
0.020619
0.268041
0.010309
0
0
0
null
0
0
0
0
0
0
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
1
0
91633c0b686a90b166f71428baf166c3cd9fcb51
4,555
py
Python
src/models/train_model.py
sandorfoldi/chess_positions_recognition
b051f5ba066876d54c435d96cf7e339dfc369b3b
[ "FTL" ]
null
null
null
src/models/train_model.py
sandorfoldi/chess_positions_recognition
b051f5ba066876d54c435d96cf7e339dfc369b3b
[ "FTL" ]
null
null
null
src/models/train_model.py
sandorfoldi/chess_positions_recognition
b051f5ba066876d54c435d96cf7e339dfc369b3b
[ "FTL" ]
1
2022-01-08T20:26:08.000Z
2022-01-08T20:26:08.000Z
import random import matplotlib.pyplot as plt import wandb import hydra import torch import torch.utils.data as data_utils from model import ChessPiecePredictor from torch import nn, optim from google.cloud import storage from torch.utils.data import DataLoader from torchvision import transforms from torchvision.datas...
29.967105
100
0.636004
542
4,555
5.130996
0.273063
0.019417
0.01726
0.012226
0.187702
0.152463
0.118662
0.089896
0.035239
0.035239
0
0.011498
0.255324
4,555
151
101
30.165563
0.808373
0.013611
0
0.091743
0
0
0.108289
0.004679
0
0
0
0
0
1
0.009174
false
0
0.110092
0
0.119266
0.06422
0
0
0
null
0
0
0
0
0
0
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
1
0
9163be87e7924e53bd340c783bc5110d591ba91f
1,386
py
Python
fairseq/scoring/__init__.py
fairseq-FT/fairseq
18725499144c1bba7c151b796ba774e59d36eaa9
[ "MIT" ]
33
2021-01-06T18:03:55.000Z
2022-03-28T12:07:44.000Z
fairseq/scoring/__init__.py
fairseq-FT/fairseq
18725499144c1bba7c151b796ba774e59d36eaa9
[ "MIT" ]
8
2021-06-11T03:11:37.000Z
2022-03-08T19:15:42.000Z
fairseq/scoring/__init__.py
fairseq-FT/fairseq
18725499144c1bba7c151b796ba774e59d36eaa9
[ "MIT" ]
14
2021-05-17T06:55:01.000Z
2022-03-28T12:07:42.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import importlib import os from abc import ABC, abstractmethod from fairseq import registry from omegaconf import DictConfig class BaseSco...
24.315789
87
0.665945
178
1,386
5.039326
0.460674
0.031215
0.024526
0
0
0
0
0
0
0
0
0
0.229437
1,386
56
88
24.75
0.839888
0.166667
0
0.114286
0
0
0.034813
0
0
0
0
0
0
1
0.142857
false
0.057143
0.2
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9164b76283b749a665c678ccd635362448fe685d
10,817
py
Python
dfn/tests/test_FractureNetworkThermal.py
richardhaslam/discrete-fracture-network
2a235fdd3aedfb80dbd9f441d07c5713a6d6c74f
[ "MIT" ]
1
2021-06-01T17:38:15.000Z
2021-06-01T17:38:15.000Z
dfn/tests/test_FractureNetworkThermal.py
richardhaslam/discrete-fracture-network
2a235fdd3aedfb80dbd9f441d07c5713a6d6c74f
[ "MIT" ]
null
null
null
dfn/tests/test_FractureNetworkThermal.py
richardhaslam/discrete-fracture-network
2a235fdd3aedfb80dbd9f441d07c5713a6d6c74f
[ "MIT" ]
null
null
null
import copy import unittest import networkx as nx import numpy as np from scipy.special import erf from dfn import Fluid, FractureNetworkThermal class TestFractureNetworkThermal(unittest.TestCase): def __init__(self, *args, **kwargs): super(TestFractureNetworkThermal, self).__init__(*args, **kwargs) ...
38.222615
79
0.547194
1,627
10,817
3.38783
0.119238
0.056604
0.016328
0.026125
0.49746
0.421081
0.393324
0.328374
0.312591
0.297714
0
0.101461
0.303874
10,817
282
80
38.358156
0.630544
0.102894
0
0.209945
0
0
0.013083
0
0
0
0
0
0.099448
1
0.066298
false
0
0.033149
0
0.121547
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91674cee92c414668d806e044c2d5ffc326ce9fc
10,775
py
Python
dataapi/AWS/getawsdata.py
gusamarante/Quantequim
3968d9965e8e2c3b5850f1852b56c485859a9c89
[ "MIT" ]
296
2018-10-19T21:00:53.000Z
2022-03-29T21:50:55.000Z
dataapi/AWS/getawsdata.py
gusamarante/Quantequim
3968d9965e8e2c3b5850f1852b56c485859a9c89
[ "MIT" ]
11
2019-06-18T11:43:35.000Z
2021-11-14T21:39:20.000Z
dataapi/AWS/getawsdata.py
gusamarante/FinanceLab
3968d9965e8e2c3b5850f1852b56c485859a9c89
[ "MIT" ]
102
2018-10-18T14:14:34.000Z
2022-03-06T00:34:53.000Z
""" Author: Gustavo Amarante """ import numpy as np import pandas as pd from datetime import datetime class TrackerFeeder(object): """ Feeder for the trackers of the FinanceHub database. """ def __init__(self, db_connect): """ Feeder construction :param db_connect: sql connec...
35.212418
117
0.604826
1,408
10,775
4.464489
0.169744
0.044543
0.020999
0.030544
0.43923
0.36987
0.328349
0.276487
0.240057
0.189628
0
0.005101
0.290487
10,775
305
118
35.327869
0.817135
0.227749
0
0.344595
0
0
0.132171
0.011372
0
0
0
0
0.081081
1
0.094595
false
0
0.02027
0
0.202703
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9167fe0a7f3eeef9305940bbccf9dcc614aaf736
569
py
Python
assets/utils/config.py
mklew/quickstart-data-lake-qubole
bb9b4a559815fc293b0fa06aa7e536fe14ced6dd
[ "Apache-2.0" ]
null
null
null
assets/utils/config.py
mklew/quickstart-data-lake-qubole
bb9b4a559815fc293b0fa06aa7e536fe14ced6dd
[ "Apache-2.0" ]
null
null
null
assets/utils/config.py
mklew/quickstart-data-lake-qubole
bb9b4a559815fc293b0fa06aa7e536fe14ced6dd
[ "Apache-2.0" ]
null
null
null
from configparser import ConfigParser CONFIG_INT_KEYS = { 'hadoop_max_nodes_count', 'hadoop_ebs_volumes_count', 'hadoop_ebs_volume_size', 'spark_max_nodes_count', 'spark_ebs_volumes_count', 'spark_ebs_volume_size' } def read_config(config_path): parser = ConfigParser() parser.read(con...
27.095238
101
0.72232
75
569
5.066667
0.386667
0.071053
0.068421
0
0
0
0
0
0
0
0
0
0.193322
569
20
102
28.45
0.827887
0
0
0
0
0
0.233743
0.233743
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
91685cf5f5c65ae2f279254e25c1a73ac7408132
609
py
Python
app/blueprints/admin_api/__init__.py
lvyaoo/api-demo
f45c05c154385510572b5200b74dcbbfdb7e234c
[ "MIT" ]
null
null
null
app/blueprints/admin_api/__init__.py
lvyaoo/api-demo
f45c05c154385510572b5200b74dcbbfdb7e234c
[ "MIT" ]
null
null
null
app/blueprints/admin_api/__init__.py
lvyaoo/api-demo
f45c05c154385510572b5200b74dcbbfdb7e234c
[ "MIT" ]
null
null
null
from flask import Blueprint from .hooks import admin_auth from ...api_utils import * bp_admin_api = Blueprint('bp_admin_api', __name__) bp_admin_api.register_error_handler(APIError, handle_api_error) bp_admin_api.register_error_handler(500, handle_500_error) bp_admin_api.register_error_handler(400, handle_400_error)...
33.833333
63
0.868637
100
609
4.73
0.24
0.147992
0.211416
0.22833
0.530655
0.433404
0.369979
0
0
0
0
0.052539
0.062397
609
17
64
35.823529
0.775832
0
0
0
0
0
0.019704
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0.153846
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
1
0
0
0
0
3
916aaa2f9132fad05b66933ca386d50c7aed073b
6,083
py
Python
project/starter_code/student_utils.py
nihaagarwalla/nd320-c1-emr-data-starter
6ce6bb65e89b38f1c2119a739b892ad2504adf7d
[ "MIT" ]
null
null
null
project/starter_code/student_utils.py
nihaagarwalla/nd320-c1-emr-data-starter
6ce6bb65e89b38f1c2119a739b892ad2504adf7d
[ "MIT" ]
null
null
null
project/starter_code/student_utils.py
nihaagarwalla/nd320-c1-emr-data-starter
6ce6bb65e89b38f1c2119a739b892ad2504adf7d
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import os import tensorflow as tf import functools ####### STUDENTS FILL THIS OUT ###### #Question 3 def reduce_dimension_ndc(df, ndc_df): ''' df: pandas dataframe, input dataset ndc_df: pandas dataframe, drug code dataset used for mapping in generic names return:...
40.553333
158
0.706395
848
6,083
4.840802
0.245283
0.035323
0.040195
0.054811
0.325213
0.27162
0.231181
0.197077
0.181486
0.173447
0
0.005239
0.18412
6,083
149
159
40.825503
0.821882
0.444518
0
0
0
0
0.115149
0
0
0
0
0
0
1
0.153846
false
0
0.096154
0
0.403846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
916ad498f5f7937a47cd76bb93a7df7cec38d72f
5,354
py
Python
core_tools/utility/plotting/plot_1D.py
peendebak/core_tools
2e43edf0bbc1d7ceb7042559db499535e8f6a076
[ "BSD-2-Clause" ]
null
null
null
core_tools/utility/plotting/plot_1D.py
peendebak/core_tools
2e43edf0bbc1d7ceb7042559db499535e8f6a076
[ "BSD-2-Clause" ]
null
null
null
core_tools/utility/plotting/plot_1D.py
peendebak/core_tools
2e43edf0bbc1d7ceb7042559db499535e8f6a076
[ "BSD-2-Clause" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib as mpl import numpy as np import copy from core_tools.utility.plotting.plot_settings import plot_layout, graph_settings_1D, _1D_raw_plot_data from core_tools.utility.plotting.plot_general import _data_plotter class plotter_1D(_data_plotter): def __init__(self, plt_la...
31.309942
111
0.686216
972
5,354
3.587449
0.156379
0.068827
0.055062
0.064239
0.440206
0.429596
0.368225
0.320333
0.229137
0.215945
0
0.054048
0.139522
5,354
171
112
31.309942
0.702844
0.030071
0
0.107438
0
0
0.070754
0
0
0
0
0.005848
0
1
0.049587
false
0.008264
0.057851
0
0.123967
0.008264
0
0
0
null
0
0
0
0
0
0
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
1
0
916bb212bcbe679ba4c75cb54521ee006fb78140
5,110
py
Python
v0.3/achat.py
Forec/lan-ichat
f2ae85ef6a8f2b30126be787e52785971c926d8c
[ "0BSD" ]
63
2016-10-25T06:05:29.000Z
2021-06-11T01:13:30.000Z
v0.3/achat.py
yyfhust/lan-ichat
f2ae85ef6a8f2b30126be787e52785971c926d8c
[ "0BSD" ]
1
2018-10-16T10:06:19.000Z
2018-10-16T10:06:19.000Z
v0.3/achat.py
yyfhust/lan-ichat
f2ae85ef6a8f2b30126be787e52785971c926d8c
[ "0BSD" ]
55
2016-10-25T06:05:33.000Z
2021-12-10T04:58:57.000Z
# last edit date: 2016/11/2 # author: Forec # LICENSE # Copyright (c) 2015-2017, Forec <forec@bupt.edu.cn> # Permission to use, copy, modify, and/or distribute this code for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. ...
34.066667
77
0.541292
574
5,110
4.722997
0.329268
0.044264
0.019919
0.023608
0.451494
0.432313
0.392475
0.392475
0.392475
0.357064
0
0.016184
0.371233
5,110
150
78
34.066667
0.827575
0.154599
0
0.6
0
0
0.046447
0
0
0
0
0
0
1
0.046154
false
0.030769
0.076923
0
0.153846
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
916c668852524852bcc137172db7eabf2b12d323
25
py
Python
gdb/util.py
dennereed/paleocore
d6da6c39cde96050ee4b9e7213ec1200530cbeee
[ "MIT" ]
1
2021-02-05T19:50:13.000Z
2021-02-05T19:50:13.000Z
gdb/util.py
dennereed/paleocore
d6da6c39cde96050ee4b9e7213ec1200530cbeee
[ "MIT" ]
59
2020-06-17T22:21:51.000Z
2022-02-10T05:00:01.000Z
gdb/util.py
dennereed/paleocore
d6da6c39cde96050ee4b9e7213ec1200530cbeee
[ "MIT" ]
2
2020-07-01T14:11:09.000Z
2020-08-10T17:27:26.000Z
from gdb.models import *
12.5
24
0.76
4
25
4.75
1
0
0
0
0
0
0
0
0
0
0
0
0.16
25
1
25
25
0.904762
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
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
1
0
1
0
1
0
0
6
916cb78c9e97224f18aea1ae145aa0983c3481c1
274
py
Python
iwg_blog/blog/views/__init__.py
razortheory/who-iwg-webapp
e2318d286cd9ab87d4d8103bc7b3072cfb99bf76
[ "MIT" ]
null
null
null
iwg_blog/blog/views/__init__.py
razortheory/who-iwg-webapp
e2318d286cd9ab87d4d8103bc7b3072cfb99bf76
[ "MIT" ]
null
null
null
iwg_blog/blog/views/__init__.py
razortheory/who-iwg-webapp
e2318d286cd9ab87d4d8103bc7b3072cfb99bf76
[ "MIT" ]
null
null
null
from .base import ArticleView, ArticlePreviewView, ArticleListView, SearchView, LandingView, \ CategoryView, TagView, SubscribeForUpdates, UnsubscribeFromUpdates from .ajax import GetArticleSlugAjax, TagsAutocompleteAjax from .errors import page_not_found, server_error
54.8
94
0.850365
25
274
9.2
0.84
0
0
0
0
0
0
0
0
0
0
0
0.09854
274
4
95
68.5
0.931174
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
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
1
0
1
0
0
0
0
4
916d6d6dc88be47cd9a443a50f8be165dfb36ec7
3,167
py
Python
io_import_rbsp/rbsp/rpak_materials.py
snake-biscuits/io_import_rbsp
0de47dc70c373cc0417cc222d5d83e6dde72068b
[ "MIT" ]
7
2021-09-30T11:13:00.000Z
2022-03-25T16:19:19.000Z
io_import_rbsp/rbsp/rpak_materials.py
snake-biscuits/io_import_rbsp
0de47dc70c373cc0417cc222d5d83e6dde72068b
[ "MIT" ]
1
2021-11-15T18:36:51.000Z
2021-11-15T18:36:51.000Z
io_import_rbsp/rbsp/rpak_materials.py
snake-biscuits/io_import_rbsp
0de47dc70c373cc0417cc222d5d83e6dde72068b
[ "MIT" ]
null
null
null
# by MrSteyk & Dogecore # TODO: extraction instructions & testing import json import os.path from typing import List import bpy loaded_materials = {} MATERIAL_LOAD_PATH = "" # put your path here # normal has special logic MATERIAL_INPUT_LINKING = { "color": "Base Color", "rough": "Roughness", "spec": ...
38.156627
115
0.649826
382
3,167
5.151832
0.23822
0.073171
0.065041
0.042683
0.398882
0.362297
0.344512
0.300813
0.202236
0.202236
0
0
0.250079
3,167
82
116
38.621951
0.828632
0.07515
0
0.328125
0
0
0.14863
0
0
0
0
0.012195
0
1
0.046875
false
0
0.0625
0
0.1875
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
916e1ddff0241cef174fcd4e5ccac0206688c76b
636
py
Python
initcmds/models.py
alldevic/mtauksync
1a5d325ca8a7878aba5b292d7835546b24bb554c
[ "MIT" ]
null
null
null
initcmds/models.py
alldevic/mtauksync
1a5d325ca8a7878aba5b292d7835546b24bb554c
[ "MIT" ]
null
null
null
initcmds/models.py
alldevic/mtauksync
1a5d325ca8a7878aba5b292d7835546b24bb554c
[ "MIT" ]
null
null
null
from django.db import models TASK_STATUS = ( ("c", "created"), ("p", "progress"), ("s", "success"), ("f", "failed") ) class TaskModel(models.Model): lastrunned = models.DateTimeField( "lastrunned", auto_now=False, auto_now_add=False) taskname = models.CharField("taskname", max_lengt...
27.652174
77
0.636792
75
636
5.213333
0.626667
0.051151
0
0
0
0
0
0
0
0
0
0.005952
0.207547
636
22
78
28.909091
0.769841
0
0
0
0
0
0.16195
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0.055556
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
916f9138f4bbb1766481eef3ea77cac318445838
3,291
py
Python
aardvark/conf/reaper_conf.py
ttsiouts/aardvark
cbf29f332df86814dd581152faf863c0d29ae41c
[ "Apache-2.0" ]
null
null
null
aardvark/conf/reaper_conf.py
ttsiouts/aardvark
cbf29f332df86814dd581152faf863c0d29ae41c
[ "Apache-2.0" ]
null
null
null
aardvark/conf/reaper_conf.py
ttsiouts/aardvark
cbf29f332df86814dd581152faf863c0d29ae41c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 European Organization for Nuclear Research. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LIC...
32.91
79
0.671832
439
3,291
4.98861
0.448747
0.027397
0.023744
0.021918
0.085845
0.077626
0.077626
0.077626
0.077626
0.077626
0
0.005337
0.259799
3,291
99
80
33.242424
0.893678
0.192343
0
0.314286
0
0
0.711691
0.031404
0
0
0
0
0
1
0.014286
false
0
0.014286
0
0.028571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
916fbb01e62cdbb436021c5d032e0ff8b5532255
3,171
py
Python
src/Data.py
jhlee93/WNet-cGAN-Keras
89666be91083735c3259e04907bbfbe1c89fc8f8
[ "MIT" ]
7
2019-07-09T15:16:52.000Z
2021-05-13T14:14:48.000Z
src/Data.py
jhlee93/WNet-cGAN-Keras
89666be91083735c3259e04907bbfbe1c89fc8f8
[ "MIT" ]
4
2019-07-24T13:35:11.000Z
2021-04-20T07:59:49.000Z
src/Data.py
jhlee93/WNet-cGAN-Keras
89666be91083735c3259e04907bbfbe1c89fc8f8
[ "MIT" ]
1
2021-12-16T13:19:13.000Z
2021-12-16T13:19:13.000Z
import glob import numpy as np class Data: def __init__(self, path, random=False): """ input: path: path to the folder with subfolders: DSM, PAN, LABEL max_num: int, num of samples random: bool, to load samples randomly or from 0 to num_max ...
44.661972
198
0.571429
495
3,171
3.50303
0.191919
0.051903
0.025952
0.036332
0.339677
0.306805
0.214533
0.153979
0.153979
0.130911
0
0.010662
0.290129
3,171
70
199
45.3
0.759662
0.082308
0
0.085106
0
0
0.067367
0
0
0
0
0
0
1
0.06383
false
0
0.042553
0
0.191489
0.06383
0
0
0
null
0
0
0
0
0
0
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
1
0