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
de4f23bfb5a827684724b1fa6940e53745dbb142
1,166
py
Python
krpc_client.py
janismac/ksp_rtls_launch_to_rendezvous
195ebfb5aacf1a857aaaf0a69bf071d93d887efd
[ "Apache-2.0" ]
1
2020-11-07T15:53:19.000Z
2020-11-07T15:53:19.000Z
krpc_client.py
janismac/ksp_rtls_launch_to_rendezvous
195ebfb5aacf1a857aaaf0a69bf071d93d887efd
[ "Apache-2.0" ]
null
null
null
krpc_client.py
janismac/ksp_rtls_launch_to_rendezvous
195ebfb5aacf1a857aaaf0a69bf071d93d887efd
[ "Apache-2.0" ]
1
2020-11-07T15:56:06.000Z
2020-11-07T15:56:06.000Z
import sys import subprocess import time import json import krpc import math import scipy.integrate import numpy as np from PrePlanningChecklist import PrePlanningChecklist from PlannerUiPanel import PlannerUiPanel from MainUiPanel import MainUiPanel from ConfigUiPanel import ConfigUiPanel from AutopilotUiPanel import ...
25.911111
76
0.736707
142
1,166
5.84507
0.373239
0.038554
0.038554
0.050602
0
0
0
0
0
0
0
0.008584
0.200686
1,166
44
77
26.5
0.881974
0.044597
0
0.058824
0
0
0
0
0
0
0
0
0
1
0.029412
false
0
0.411765
0
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
de4fbddd1a8e5c3c47f15c39acb99e707f22e65b
617
py
Python
src/alerter.py
Jawgo/DiscordBot
43dccce80aa8d8bd51b44c0de732fd70d9194672
[ "MIT" ]
null
null
null
src/alerter.py
Jawgo/DiscordBot
43dccce80aa8d8bd51b44c0de732fd70d9194672
[ "MIT" ]
null
null
null
src/alerter.py
Jawgo/DiscordBot
43dccce80aa8d8bd51b44c0de732fd70d9194672
[ "MIT" ]
null
null
null
import os from discord import Webhook, RequestsWebhookAdapter, Colour, Embed def send_alert(item): hook = os.environ.get("WEB_HOOK") webhook = Webhook.from_url(hook, adapter=RequestsWebhookAdapter()) embedVar = Embed(title="Stock Hunter") if item.in_stock: embedVar.description = "{} **IN STOC...
36.294118
110
0.666126
75
617
5.4
0.453333
0.034568
0.064198
0.083951
0.306173
0.306173
0.306173
0.306173
0.306173
0.306173
0
0
0.178282
617
16
111
38.5625
0.798817
0
0
0
0
0
0.126418
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.230769
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
de50a4c4fb04e2350cc10caa2aea9a7a75fcac8c
4,593
py
Python
dataset_preproc/preproc_video/face_extract.py
RicardoP0/multimodal-matchmap
aa44c574a57073833004172734394882889d8d3b
[ "MIT" ]
null
null
null
dataset_preproc/preproc_video/face_extract.py
RicardoP0/multimodal-matchmap
aa44c574a57073833004172734394882889d8d3b
[ "MIT" ]
null
null
null
dataset_preproc/preproc_video/face_extract.py
RicardoP0/multimodal-matchmap
aa44c574a57073833004172734394882889d8d3b
[ "MIT" ]
null
null
null
#%% #https://github.com/timesler/facenet-pytorch from facenet_pytorch import MTCNN, extract_face import torch import numpy as np import mmcv, cv2 import os import matplotlib.pyplot as plt from PIL import Image # %% #%% device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu') print('Running on...
29.254777
95
0.642717
708
4,593
4.002825
0.214689
0.04693
0.021171
0.022583
0.584333
0.521877
0.466126
0.363797
0.344037
0.286168
0
0.045939
0.203788
4,593
156
96
29.442308
0.729013
0.152188
0
0.438776
0
0
0.114078
0.075966
0.020408
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0.081633
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de51709d96e27d7e3576d5ee6ad6f2ebabdc7ebc
1,441
py
Python
launch/gazebo.launch.py
fly4future/fog_gazebo_resources
1af1aa2d3a5e7c67bf39605655ca96a154daa4b3
[ "BSD-3-Clause" ]
null
null
null
launch/gazebo.launch.py
fly4future/fog_gazebo_resources
1af1aa2d3a5e7c67bf39605655ca96a154daa4b3
[ "BSD-3-Clause" ]
null
null
null
launch/gazebo.launch.py
fly4future/fog_gazebo_resources
1af1aa2d3a5e7c67bf39605655ca96a154daa4b3
[ "BSD-3-Clause" ]
null
null
null
"""Launch Gazebo server and client with command line arguments.""" from launch import LaunchDescription from launch.substitutions import LaunchConfiguration from launch.actions import DeclareLaunchArgument from launch.actions import IncludeLaunchDescription from launch.actions import ExecuteProcess from launch.conditi...
38.945946
117
0.696738
126
1,441
7.793651
0.444444
0.071283
0.051935
0.070265
0.187373
0.187373
0.187373
0.187373
0.187373
0
0
0
0.218598
1,441
36
118
40.027778
0.872114
0.041638
0
0.148148
0
0
0.155636
0.037818
0
0
0
0
0
1
0.037037
true
0
0.296296
0.037037
0.37037
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
de5241403b212e20d0b5a9c1eb86d5461e49bad7
957
py
Python
hlrl/torch/utils/contexts/training.py
Chainso/HLRL
584f4ed2fa4d8b311a21dbd862ec9434833dd7cd
[ "MIT" ]
null
null
null
hlrl/torch/utils/contexts/training.py
Chainso/HLRL
584f4ed2fa4d8b311a21dbd862ec9434833dd7cd
[ "MIT" ]
null
null
null
hlrl/torch/utils/contexts/training.py
Chainso/HLRL
584f4ed2fa4d8b311a21dbd862ec9434833dd7cd
[ "MIT" ]
null
null
null
from contextlib import contextmanager import torch.nn as nn @contextmanager def evaluate(module: nn.Module): """ A context manager for evaluating the module. Args: module: The module to switch to evaluating in the context. Returns: A generator for the context of the module. """ ...
20.804348
66
0.6186
114
957
5.192982
0.289474
0.091216
0.047297
0.050676
0.685811
0.685811
0.685811
0.577703
0.577703
0.449324
0
0
0.317659
957
45
67
21.266667
0.906585
0.428422
0
0.7
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.1
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
de53cfe343832488633720622d964252c48b5617
3,180
py
Python
test/test_postfix.py
JoseTomasTocino/toptal-calculator
baeb69fdeca81699d655e1f2f11f03f2a3972ab7
[ "Unlicense" ]
null
null
null
test/test_postfix.py
JoseTomasTocino/toptal-calculator
baeb69fdeca81699d655e1f2f11f03f2a3972ab7
[ "Unlicense" ]
null
null
null
test/test_postfix.py
JoseTomasTocino/toptal-calculator
baeb69fdeca81699d655e1f2f11f03f2a3972ab7
[ "Unlicense" ]
null
null
null
import unittest from calculator import tokens, evaluator from calculator.parser import tokenize, infix_to_postfix class MyTestPostfixCase(unittest.TestCase): def test_simple_operator(self): expression = "2 + 1" computed_token_list = tokenize(expression) postfix_token_list = infix_to_postf...
31.485149
70
0.646226
321
3,180
6.093458
0.155763
0.165644
0.121677
0.092025
0.808793
0.783231
0.75818
0.75818
0.702965
0.650818
0
0.015073
0.269811
3,180
100
71
31.8
0.827304
0
0
0.618421
0
0
0.025157
0
0
0
0
0
0.131579
1
0.105263
false
0
0.039474
0
0.157895
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
de55352cff35ae8596924966eb4c23a46054b461
1,124
py
Python
Weather API/app.py
TanushreeShaw/Weather
0bebe029536f579bbd9d28c07d3e33f3438a1a56
[ "MIT" ]
null
null
null
Weather API/app.py
TanushreeShaw/Weather
0bebe029536f579bbd9d28c07d3e33f3438a1a56
[ "MIT" ]
null
null
null
Weather API/app.py
TanushreeShaw/Weather
0bebe029536f579bbd9d28c07d3e33f3438a1a56
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request import requests import json import os app = Flask(__name__) picfolder = os.path.join('static','pics') app.config['UPLOAD_FOLDER'] = picfolder @app.route('/temperature', methods=['POST']) def temperature(): pic1 = os.path.join(app.config['UPLO...
33.058824
152
0.670819
140
1,124
5.192857
0.492857
0.082531
0.061898
0.078404
0
0
0
0
0
0
0
0.034079
0.164591
1,124
33
153
34.060606
0.740149
0
0
0
0
0
0.222731
0.038497
0
0
0
0
0
0
null
null
0
0.153846
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
de559c2b5884fa9c7d514b793b602e0875f672ea
561
py
Python
core/urls.py
cybernetisk/internsystem
b81faa0deef08153032e56d5740173e5a6cf3ad9
[ "MIT" ]
null
null
null
core/urls.py
cybernetisk/internsystem
b81faa0deef08153032e56d5740173e5a6cf3ad9
[ "MIT" ]
38
2017-12-21T10:10:54.000Z
2022-03-07T20:54:37.000Z
core/urls.py
cybernetisk/internsystem
b81faa0deef08153032e56d5740173e5a6cf3ad9
[ "MIT" ]
6
2018-06-01T21:04:34.000Z
2020-01-14T15:26:26.000Z
from django.conf.urls import url from core.views import me from core.rest import CardViewSet, UserViewSet, NfcCardViewSet, GroupViewSet from core.utils import SharedAPIRootRouter # SharedAPIRootRouter is automatically imported in global urls config router = SharedAPIRootRouter() router.register(r"core/users", UserVie...
33
76
0.787879
71
561
6.211268
0.478873
0.126984
0.136054
0.172336
0
0
0
0
0
0
0
0
0.098039
561
16
77
35.0625
0.871542
0.11943
0
0
0
0
0.136179
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
de5df9efa200676cbee6ac7078451697101f76eb
2,931
py
Python
flora_tools/experiments/measure_time_irq_process.py
Atokulus/flora-tools
6f878a4495e4dcb6b9bc19a75aaac37b9dfb16b0
[ "MIT" ]
1
2020-11-20T16:36:17.000Z
2020-11-20T16:36:17.000Z
flora_tools/experiments/measure_time_irq_process.py
Atokulus/flora-tools
6f878a4495e4dcb6b9bc19a75aaac37b9dfb16b0
[ "MIT" ]
null
null
null
flora_tools/experiments/measure_time_irq_process.py
Atokulus/flora-tools
6f878a4495e4dcb6b9bc19a75aaac37b9dfb16b0
[ "MIT" ]
null
null
null
from flora_tools.experiment import * class MeasureTimeIRQProcess(Experiment): def __init__(self): description = "Measures the time needed for an IRQ to be processed." Experiment.__init__(self, description) def run(self, bench, iterations=10000): self.iterations = iterations ...
37.576923
111
0.588536
336
2,931
4.928571
0.324405
0.065217
0.067633
0.048309
0.205314
0.148551
0.148551
0.107488
0.107488
0.107488
0
0.020649
0.306039
2,931
77
112
38.064935
0.79351
0
0
0.090909
0
0
0.060048
0
0
0
0
0
0
1
0.054545
false
0
0.018182
0
0.109091
0.018182
0
0
0
null
0
0
0
0
0
0
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
de5e91c132fdc9f05dd13b11b8708a82b0c0f470
213
py
Python
6P/REDES/restAPI/main/serializers.py
rwnicholas/fluffy-potato
52ccd25cf77f8cebce1420e7fe9028a277811986
[ "MIT" ]
null
null
null
6P/REDES/restAPI/main/serializers.py
rwnicholas/fluffy-potato
52ccd25cf77f8cebce1420e7fe9028a277811986
[ "MIT" ]
null
null
null
6P/REDES/restAPI/main/serializers.py
rwnicholas/fluffy-potato
52ccd25cf77f8cebce1420e7fe9028a277811986
[ "MIT" ]
null
null
null
from rest_framework import serializers from main.models import Suco class SucoSerializer(serializers.ModelSerializer): class Meta: model = Suco fields = ('nome', 'litros', 'link', 'qtd_disp')
26.625
55
0.704225
24
213
6.166667
0.791667
0
0
0
0
0
0
0
0
0
0
0
0.197183
213
7
56
30.428571
0.865497
0
0
0
0
0
0.103286
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
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
1
0
0
4
de5f40f2fa117e9d234c38567381795609e6e892
183
py
Python
gpytorch/kernels/keops/__init__.py
wjmaddox/gpytorch
679f437fa71f8e15d98b3d256924ecf4b52c0448
[ "MIT" ]
1
2019-09-16T16:58:54.000Z
2019-09-16T16:58:54.000Z
gpytorch/kernels/keops/__init__.py
wjmaddox/gpytorch
679f437fa71f8e15d98b3d256924ecf4b52c0448
[ "MIT" ]
null
null
null
gpytorch/kernels/keops/__init__.py
wjmaddox/gpytorch
679f437fa71f8e15d98b3d256924ecf4b52c0448
[ "MIT" ]
null
null
null
from .matern_kernel import MaternKernel from .rbf_kernel import RBFKernel from .spectralgp_kernel import SpectralGPKernel __all__ = ["MaternKernel", "RBFKernel", "SpectralGPKernel"]
30.5
59
0.825137
19
183
7.578947
0.526316
0.25
0
0
0
0
0
0
0
0
0
0
0.098361
183
5
60
36.6
0.872727
0
0
0
0
0
0.202186
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
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
de61a2c63bd8bf8c89dfa8db3b212f5ada8c9268
271
py
Python
bc/recruitment/migrations/0018_merge_20200324_1630.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
1
2021-02-27T07:27:17.000Z
2021-02-27T07:27:17.000Z
bc/recruitment/migrations/0018_merge_20200324_1630.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
null
null
null
bc/recruitment/migrations/0018_merge_20200324_1630.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
1
2021-06-09T15:56:54.000Z
2021-06-09T15:56:54.000Z
# Generated by Django 2.2.10 on 2020-03-24 16:30 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("recruitment", "0017_merge_20200318_1104"), ("recruitment", "0013_image_block"), ] operations = []
19.357143
52
0.664207
32
271
5.46875
0.84375
0
0
0
0
0
0
0
0
0
0
0.169014
0.214022
271
13
53
20.846154
0.652582
0.169742
0
0
1
0
0.278027
0.107623
0
0
0
0
0
1
0
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
de61aeb69172f0bbf84a85482ba65c30efe863a2
1,901
py
Python
main.py
SHGoldfarb/fantastic-barnacle
64650155ef8172530a6f88be6e7361bfc7e6bfa2
[ "MIT" ]
null
null
null
main.py
SHGoldfarb/fantastic-barnacle
64650155ef8172530a6f88be6e7361bfc7e6bfa2
[ "MIT" ]
null
null
null
main.py
SHGoldfarb/fantastic-barnacle
64650155ef8172530a6f88be6e7361bfc7e6bfa2
[ "MIT" ]
null
null
null
import requests import os from datetime import datetime import pandas as pd def ensure_folder_exists(foldername): try: # Create tmp folder os.mkdir(foldername) print("Directory created: " + foldername) except FileExistsError: pass def download_and_save(url, filename): pri...
23.7625
78
0.711731
251
1,901
5.047809
0.330677
0.078137
0.071034
0.059984
0.295975
0.151539
0.151539
0.151539
0.102605
0.102605
0
0.007134
0.188848
1,901
79
79
24.063291
0.814527
0.031562
0
0.043478
0
0
0.041439
0
0
0
0
0
0
1
0.130435
false
0.043478
0.086957
0.021739
0.26087
0.065217
0
0
0
null
0
0
0
0
0
0
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
de6435cdbc67360ee94636dc50bd704495e2b720
382
py
Python
dump/yoloCarAccident/generate.py
lovishchopra/ITRI-Car-Accident
96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d
[ "MIT" ]
null
null
null
dump/yoloCarAccident/generate.py
lovishchopra/ITRI-Car-Accident
96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d
[ "MIT" ]
null
null
null
dump/yoloCarAccident/generate.py
lovishchopra/ITRI-Car-Accident
96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d
[ "MIT" ]
null
null
null
import os import yoloCarAccident as yc # yc.find('test.txt') f1 = open('result2.txt','r') i = 0 s = "" for lines in f1: if(i<80000): s += lines i+=1 else: f2 = open('test.txt','w') f2.write(s) f2.close() try: yc.find('test.txt') except ValueError: pass s = "" i = 0 # break # f2 = open('t...
13.172414
28
0.557592
66
382
3.227273
0.469697
0.164319
0.140845
0.183099
0.2723
0.2723
0.2723
0.2723
0.2723
0.2723
0
0.057432
0.225131
382
29
29
13.172414
0.662162
0.246073
0
0.210526
0
0
0.102837
0
0
0
0
0
0
1
0
false
0.052632
0.105263
0
0.105263
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
1
0
0
0
0
0
2
de65eb26862ea6588043a83de4e49020ae4daf2c
1,853
py
Python
socketserver_extra.py
sim642/pyqwebirc
cd0cc120eacd3eea60b827ff7b2b157ab4a5dd1e
[ "MIT" ]
null
null
null
socketserver_extra.py
sim642/pyqwebirc
cd0cc120eacd3eea60b827ff7b2b157ab4a5dd1e
[ "MIT" ]
2
2017-01-04T18:24:00.000Z
2017-01-04T18:50:32.000Z
socketserver_extra.py
sim642/pyqwebirc
cd0cc120eacd3eea60b827ff7b2b157ab4a5dd1e
[ "MIT" ]
null
null
null
import socketserver import socket class TextStreamRequestHandler(socketserver.BaseRequestHandler): """Define textual self.rfile and self.wfile for stream sockets.""" # Default buffer sizes for rfile, wfile. # We default rfile to buffered because otherwise it could be # really slow for large data (a g...
33.089286
88
0.652455
227
1,853
5.290749
0.524229
0.037469
0.052456
0
0
0
0
0
0
0
0
0.00223
0.27415
1,853
55
89
33.690909
0.890706
0.354021
0
0.066667
0
0
0.001695
0
0
0
0
0
0
1
0.066667
false
0.066667
0.066667
0
0.466667
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
de681128c0eb4ded13f92d6720603223e15efc17
4,560
py
Python
train_n_test/train_decoder.py
kamieen03/style-transfer-net
c9f56aa579553be8c72f37ce975ba88dbd775605
[ "BSD-2-Clause" ]
2
2019-12-14T14:59:22.000Z
2020-01-30T16:17:28.000Z
train_n_test/train_decoder.py
kamieen03/style-transfer-net
c9f56aa579553be8c72f37ce975ba88dbd775605
[ "BSD-2-Clause" ]
null
null
null
train_n_test/train_decoder.py
kamieen03/style-transfer-net
c9f56aa579553be8c72f37ce975ba88dbd775605
[ "BSD-2-Clause" ]
1
2020-01-16T20:03:35.000Z
2020-01-16T20:03:35.000Z
#!/usr/bin/env python3 import os, sys sys.path.append(os.path.abspath(__file__ + "/../../")) # just so we can use 'libs' import torch.utils.data import torch.optim as optim from torch import nn import numpy as np import torch from libs.Loader import Dataset from libs.shufflenetv2 import ShuffleNetV2AutoEncoder BA...
35.905512
84
0.53114
534
4,560
4.378277
0.273408
0.050043
0.027374
0.029085
0.38195
0.328058
0.300684
0.212575
0.212575
0.145851
0
0.014845
0.35
4,560
126
85
36.190476
0.773954
0.124342
0
0.162791
0
0
0.146495
0.053707
0
0
0
0
0
1
0.069767
false
0
0.093023
0
0.197674
0.034884
0
0
0
null
0
0
0
0
0
0
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
de69814605b1835959a1ffdafc1b9774d60d18ad
75
py
Python
utils/__init__.py
bitst0rm-st3/AutomaticPackageReloader
b48699420ccadb3c1a8796a1a7275f70089f0934
[ "MIT" ]
null
null
null
utils/__init__.py
bitst0rm-st3/AutomaticPackageReloader
b48699420ccadb3c1a8796a1a7275f70089f0934
[ "MIT" ]
null
null
null
utils/__init__.py
bitst0rm-st3/AutomaticPackageReloader
b48699420ccadb3c1a8796a1a7275f70089f0934
[ "MIT" ]
null
null
null
from .progress_bar import ProgressBar from .read_config import read_config
25
37
0.866667
11
75
5.636364
0.636364
0.322581
0
0
0
0
0
0
0
0
0
0
0.106667
75
2
38
37.5
0.925373
0
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
de6c1a64c58a8aca902a8fc78dd2204b84031a65
2,871
py
Python
src/main/create/c_chains_user_json.py
WikiCommunityHealth/wikimedia-revert
b584044d8b6a61a79d98656db356bf1f74d23ee0
[ "MIT" ]
null
null
null
src/main/create/c_chains_user_json.py
WikiCommunityHealth/wikimedia-revert
b584044d8b6a61a79d98656db356bf1f74d23ee0
[ "MIT" ]
null
null
null
src/main/create/c_chains_user_json.py
WikiCommunityHealth/wikimedia-revert
b584044d8b6a61a79d98656db356bf1f74d23ee0
[ "MIT" ]
null
null
null
#%% # PAGE EXAMPLE # {'title': 'Zuppa_di_pesce_(film)', # 'chains': [{'revisions': ['95861493', '95861612', '95973728'], # 'users': {'93.44.99.33': '', 'Kirk39': '63558', 'AttoBot': '482488'}, # 'len': 3, # 'start': '2018-04-01 04:54:40.0', # 'end': '2018-04-05 07:36:26.0'}], # 'n_chains': 1, # 'n_rever...
26.1
183
0.563915
377
2,871
4.201592
0.360743
0.045455
0.034091
0.020202
0.102273
0.102273
0.102273
0.059343
0.059343
0
0
0.049856
0.273424
2,871
109
184
26.33945
0.709492
0.198537
0
0.030769
0
0
0.105748
0.053971
0
0
0
0
0
1
0.061538
false
0
0.123077
0
0.2
0.015385
0
0
0
null
0
0
0
0
0
0
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
de6c4ab063a946c3b3fd6bbb89fa20997b2be723
5,105
py
Python
src/carts/views.py
dhaval6552/ecommerce-2
ab80fbbf15c0fbd37db94cfd7aa9a3ac0b46c737
[ "MIT" ]
null
null
null
src/carts/views.py
dhaval6552/ecommerce-2
ab80fbbf15c0fbd37db94cfd7aa9a3ac0b46c737
[ "MIT" ]
null
null
null
src/carts/views.py
dhaval6552/ecommerce-2
ab80fbbf15c0fbd37db94cfd7aa9a3ac0b46c737
[ "MIT" ]
null
null
null
from django.contrib.auth.forms import AuthenticationForm from django.core.urlresolvers import reverse from django.views.generic.base import View from django.views.generic.detail import SingleObjectMixin,DetailView from django.shortcuts import render,get_object_or_404,redirect from django.http import HttpResponseRedirec...
33.807947
92
0.582174
571
5,105
5.015762
0.210158
0.03352
0.031425
0.023743
0.17074
0.133729
0.074372
0.047137
0.047137
0.047137
0
0.006967
0.325171
5,105
151
93
33.807947
0.824383
0.004505
0
0.288889
0
0
0.064357
0.004723
0
0
0
0
0
0
null
null
0
0.074074
null
null
0.007407
0
0
0
null
0
0
0
0
0
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
de71e1c800cd0628725b2dd49b907881044e1b6d
721
py
Python
Python/PythonCgiMock03/src/maincgi/test/TestCgiMainXml.py
tduoth/JsObjects
eb3e2a8b1f47d0da53c8b1a85a7949269711932f
[ "MIT" ]
22
2015-02-26T09:07:18.000Z
2020-05-10T16:22:05.000Z
Python/PythonCgiMock03/src/maincgi/test/TestCgiMainXml.py
tduoth/JsObjects
eb3e2a8b1f47d0da53c8b1a85a7949269711932f
[ "MIT" ]
123
2016-04-05T18:32:41.000Z
2022-03-13T21:09:21.000Z
Python/PythonCgiMock03/src/maincgi/test/TestCgiMainXml.py
tduoth/JsObjects
eb3e2a8b1f47d0da53c8b1a85a7949269711932f
[ "MIT" ]
56
2015-03-19T22:26:37.000Z
2021-12-06T02:52:02.000Z
#!/usr/bin/python ''' Created on May 23, 2012 @author: Charlie ''' import unittest from mock import patch import xml.etree.ElementTree as ET from TestCgiMainBase import TestCgiMainBase @patch('cgi.FieldStorage') class TestCgiMainXml(TestCgiMainBase): def tearDown(self): pass def testName(self, MockC...
24.862069
71
0.647712
82
721
5.585366
0.670732
0.065502
0
0
0
0
0
0
0
0
0
0.014572
0.238558
721
29
72
24.862069
0.819672
0.166436
0
0
0
0
0.070826
0
0
0
0
0
0.111111
1
0.111111
false
0.055556
0.222222
0
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
1
0
0
0
0
0
1
de725902f24523dc4f0cb06e33505cadc76a710c
38,783
py
Python
pysim/epcstd.py
larioandr/thesis-rfidsim
6a5b3ef02964ff2d49bf5dae55af270801af28a5
[ "MIT" ]
null
null
null
pysim/epcstd.py
larioandr/thesis-rfidsim
6a5b3ef02964ff2d49bf5dae55af270801af28a5
[ "MIT" ]
null
null
null
pysim/epcstd.py
larioandr/thesis-rfidsim
6a5b3ef02964ff2d49bf5dae55af270801af28a5
[ "MIT" ]
null
null
null
from enum import Enum import random import collections import numpy as np # ####################################################################### # Data Types ####################################################################### # class DivideRatio(Enum): DR_8 = ('0', 8.0, '8') DR_643 = ('1', 64.0/3, '64/...
30.610103
79
0.592682
5,045
38,783
4.338949
0.072745
0.031978
0.026313
0.03682
0.561032
0.47428
0.413294
0.377889
0.326039
0.288899
0
0.027396
0.254596
38,783
1,266
80
30.634281
0.729807
0.021762
0
0.293651
0
0.004535
0.046056
0.017389
0
0
0.002377
0.00079
0.003401
1
0.205215
false
0.005669
0.004535
0.11678
0.480726
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
de72e8f348089a00d8a491df1f651cf4a945ca9c
1,500
py
Python
Heap/378-Kth_Smalles_Element_in_a_Sorted_Matrix.py
dingwenzheng730/Leet
c08bd48e8dcc6bca41134d218d39f66bfc112eaf
[ "MIT" ]
1
2021-06-15T21:01:53.000Z
2021-06-15T21:01:53.000Z
Heap/378-Kth_Smalles_Element_in_a_Sorted_Matrix.py
dingwenzheng730/Leet
c08bd48e8dcc6bca41134d218d39f66bfc112eaf
[ "MIT" ]
null
null
null
Heap/378-Kth_Smalles_Element_in_a_Sorted_Matrix.py
dingwenzheng730/Leet
c08bd48e8dcc6bca41134d218d39f66bfc112eaf
[ "MIT" ]
null
null
null
''' Given an n x n matrix where each of the rows and columns are sorted in ascending order, return the kth smallest element in the matrix. Note that it is the kth smallest element in the sorted order, not the kth distinct element. Input: matrix = [[1,5,9],[10,11,13],[12,13,15]], k = 8 Output: 13 Explanation: The elem...
24.193548
134
0.611333
281
1,500
3.24911
0.377224
0.010953
0.013143
0.021906
0.200438
0.192771
0.07667
0.07667
0.07667
0.07667
0
0.079821
0.256667
1,500
61
135
24.590164
0.739013
0.694667
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.230769
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
de73b0477272b09621a0a7e87406fe9c6c2a1f06
5,088
py
Python
baseStation/test/vision/service/test_visionService.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
baseStation/test/vision/service/test_visionService.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
baseStation/test/vision/service/test_visionService.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
from unittest import TestCase from unittest.mock import Mock import numpy as np from pathfinding.domain.angle import Angle from pathfinding.domain.coord import Coord from vision.domain.image import Image from vision.domain.rectangle import Rectangle from vision.infrastructure.cvVisionException import CameraDoesNotExi...
45.428571
117
0.725825
631
5,088
5.459588
0.179081
0.069666
0.073149
0.027576
0.501306
0.406676
0.34717
0.327431
0.297823
0.297823
0
0.009035
0.195165
5,088
111
118
45.837838
0.832234
0
0
0.235294
0
0
0.001376
0
0
0
0
0
0.176471
1
0.105882
false
0
0.105882
0
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
de758aaeb7ae98b14c58fbe707173fad48237087
8,753
py
Python
bmdal/layer_features.py
dholzmueller/bmdal_reg
1a9e9c19fbd350ec32a2bd7b505e7015df7dc9bf
[ "Apache-2.0" ]
3
2022-03-19T21:30:10.000Z
2022-03-30T08:20:48.000Z
bmdal/layer_features.py
dholzmueller/bmdal_reg
1a9e9c19fbd350ec32a2bd7b505e7015df7dc9bf
[ "Apache-2.0" ]
null
null
null
bmdal/layer_features.py
dholzmueller/bmdal_reg
1a9e9c19fbd350ec32a2bd7b505e7015df7dc9bf
[ "Apache-2.0" ]
null
null
null
from .feature_maps import * import torch.nn as nn class LayerGradientComputation: """ Abstract base class that can be used as a second base class for layers that support the computation of gradient features """ def __init__(self): super().__init__() # in case this is used with multiple i...
44.207071
118
0.682052
1,148
8,753
5.026132
0.203833
0.02669
0.016984
0.014558
0.278336
0.238821
0.217331
0.188215
0.188215
0.174697
0
0.003487
0.24643
8,753
197
119
44.431472
0.871286
0.434251
0
0.202381
0
0
0
0
0
0
0
0
0
1
0.190476
false
0
0.02381
0.02381
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de759ba42ef02e88463fee41b02959bd0f0ddd2c
35,389
py
Python
pinsey/gui/MainWindow.py
RailKill/Pinsey
72a283e6c5683b27918b511d80e45c3af4e67539
[ "MIT" ]
3
2021-02-01T06:47:06.000Z
2022-01-09T05:54:35.000Z
pinsey/gui/MainWindow.py
RailKill/Pinsey
72a283e6c5683b27918b511d80e45c3af4e67539
[ "MIT" ]
4
2019-10-23T09:52:36.000Z
2022-03-11T23:17:23.000Z
pinsey/gui/MainWindow.py
RailKill/Pinsey
72a283e6c5683b27918b511d80e45c3af4e67539
[ "MIT" ]
null
null
null
from configparser import ConfigParser from configparser import DuplicateSectionError from PyQt5 import QtCore, QtGui, QtWidgets from pinsey import Constants from pinsey.Utils import clickable, center, picture_grid, horizontal_line, resolve_message_sender, name_set, windows from pinsey.gui.MessageWindow import MessageW...
50.700573
121
0.628755
3,818
35,389
5.602672
0.130959
0.019962
0.018653
0.008882
0.316395
0.192558
0.117433
0.102286
0.086532
0.063718
0
0.009658
0.271469
35,389
697
122
50.773314
0.820029
0.062562
0
0.120879
0
0
0.068093
0.006405
0
0
0
0.001435
0
1
0.047619
false
0.009158
0.027473
0
0.084249
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
de7659b57f254205c0bc591d8af1e1375127f4d8
336
py
Python
Chat app/Check IP.py
ArturWagnerBusiness/Projects-2018-2020
37a217dc325f3ba42d8a7a1a743e5b6f8fab5df4
[ "MIT" ]
null
null
null
Chat app/Check IP.py
ArturWagnerBusiness/Projects-2018-2020
37a217dc325f3ba42d8a7a1a743e5b6f8fab5df4
[ "MIT" ]
null
null
null
Chat app/Check IP.py
ArturWagnerBusiness/Projects-2018-2020
37a217dc325f3ba42d8a7a1a743e5b6f8fab5df4
[ "MIT" ]
null
null
null
from os import system as c i = "ipconfig" input(c(i)) # import win32clipboard # from time import sleep as wait # set clipboard data # while True: # win32clipboard.OpenClipboard() # win32clipboard.EmptyClipboard() # win32clipboard.SetClipboardText('Clipboard Blocked!') # win32clipboard.CloseClipboard() ...
24
59
0.720238
37
336
6.540541
0.675676
0.016529
0
0
0
0
0
0
0
0
0
0.043321
0.175595
336
13
60
25.846154
0.830325
0.779762
0
0
0
0
0.125
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
de766a3b6f5c4477c098e9f336005c2394afbbc1
1,506
py
Python
app/api/api_v1/tasks/emails.py
cdlaimin/fastapi
4acf1a1da4a1eedd81a3bdf6256661c2464928b9
[ "BSD-3-Clause" ]
null
null
null
app/api/api_v1/tasks/emails.py
cdlaimin/fastapi
4acf1a1da4a1eedd81a3bdf6256661c2464928b9
[ "BSD-3-Clause" ]
null
null
null
app/api/api_v1/tasks/emails.py
cdlaimin/fastapi
4acf1a1da4a1eedd81a3bdf6256661c2464928b9
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- """ @File : emails.py @Contact : 1053522308@qq.com @License : (C)Copyright 2017-2018, Liugroup-NLPR-CASIA @Modify Time @Author @Version @Desciption ------------ ------- -------- ----------- 2020/9/27 10:22 下午 wuxiaoqiang 1.0 None """ import as...
34.227273
108
0.625498
202
1,506
4.569307
0.589109
0.070423
0.023835
0
0
0
0
0
0
0
0
0.045075
0.204515
1,506
43
109
35.023256
0.725376
0.199867
0
0
0
0.08
0.22807
0.080201
0
0
0
0
0
1
0.04
false
0.04
0.2
0
0.24
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de76f5e1a1407299a65c28e63772cca898458059
13,487
py
Python
lightwood/encoders/text/distilbert.py
ritwik12/lightwood
7975688355fba8b0f8349dd55a1b6cb625c3efd0
[ "MIT" ]
null
null
null
lightwood/encoders/text/distilbert.py
ritwik12/lightwood
7975688355fba8b0f8349dd55a1b6cb625c3efd0
[ "MIT" ]
null
null
null
lightwood/encoders/text/distilbert.py
ritwik12/lightwood
7975688355fba8b0f8349dd55a1b6cb625c3efd0
[ "MIT" ]
null
null
null
import time import copy import random import logging from functools import partial import numpy as np import torch from torch.utils.data import DataLoader from transformers import DistilBertModel, DistilBertForSequenceClassification, DistilBertTokenizer, AlbertModel, AlbertForSequenceClassification, DistilBertTokenize...
46.993031
456
0.671091
1,740
13,487
4.932759
0.183333
0.026215
0.009088
0.018758
0.499243
0.464406
0.40487
0.372364
0.366888
0.366888
0
0.013556
0.228813
13,487
286
457
47.157343
0.811653
0.061837
0
0.308824
0
0
0.056413
0.007437
0
0
0
0.003497
0
1
0.034314
false
0.004902
0.098039
0
0.151961
0.009804
0
0
0
null
0
0
0
0
0
0
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
de775456d4d41592b9970922b77c527e29122163
4,542
py
Python
scripts/scopdominfo.py
stivalaa/cuda_satabsearch
b947fb711f8b138e5a50c81e7331727c372eb87d
[ "MIT" ]
null
null
null
scripts/scopdominfo.py
stivalaa/cuda_satabsearch
b947fb711f8b138e5a50c81e7331727c372eb87d
[ "MIT" ]
null
null
null
scripts/scopdominfo.py
stivalaa/cuda_satabsearch
b947fb711f8b138e5a50c81e7331727c372eb87d
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################### # # scomdominfo.py - Report information folds and classes of a list of SCOP sids # # File: scomdominfo.py # Author: Alex Stivala # Created: November 2008 # # $Id: scopdominfo.py 3009 2009-12-08 03:01:48Z alexs $ # ...
30.689189
148
0.610524
592
4,542
4.548986
0.3125
0.008912
0.018567
0.015596
0.157817
0.103231
0.017081
0
0
0
0
0.017721
0.192426
4,542
147
149
30.897959
0.716467
0.483487
0
0.06383
0
0.021277
0.080637
0
0
0
0
0
0
1
0.06383
false
0
0.06383
0
0.12766
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
de79c16d6df471bd5320f3fc4154354634f400a7
1,334
py
Python
serverless/pytorch/foolwood/siammask/nuclio/model_handler.py
arthurtibame/cvat
0062ecdec34a9ffcad33e1664a7cac663bec4ecf
[ "MIT" ]
null
null
null
serverless/pytorch/foolwood/siammask/nuclio/model_handler.py
arthurtibame/cvat
0062ecdec34a9ffcad33e1664a7cac663bec4ecf
[ "MIT" ]
null
null
null
serverless/pytorch/foolwood/siammask/nuclio/model_handler.py
arthurtibame/cvat
0062ecdec34a9ffcad33e1664a7cac663bec4ecf
[ "MIT" ]
1
2021-09-17T10:19:30.000Z
2021-09-17T10:19:30.000Z
# Copyright (C) 2020 Intel Corporation # # SPDX-License-Identifier: MIT from tools.test import * import os class ModelHandler: def __init__(self): # Setup device self.device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') torch.backends.cudnn.benchmark = True base_d...
34.205128
93
0.614693
166
1,334
4.813253
0.463855
0.050063
0.060075
0.035044
0.042553
0
0
0
0
0
0
0.006122
0.265367
1,334
38
94
35.105263
0.809184
0.073463
0
0
0
0
0.093648
0.038274
0
0
0
0
0
1
0.076923
false
0
0.115385
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de79c50bcf2db093ce388c48ecf4f5cdef4ddb45
10,842
py
Python
pynmt/__init__.py
obrmmk/demo
b5deb85b2b2bf118b850f93c255ee88d055156a8
[ "MIT" ]
null
null
null
pynmt/__init__.py
obrmmk/demo
b5deb85b2b2bf118b850f93c255ee88d055156a8
[ "MIT" ]
null
null
null
pynmt/__init__.py
obrmmk/demo
b5deb85b2b2bf118b850f93c255ee88d055156a8
[ "MIT" ]
1
2021-11-23T14:04:36.000Z
2021-11-23T14:04:36.000Z
import torch import torch.nn as nn from torch.nn import (TransformerEncoder, TransformerDecoder, TransformerEncoderLayer, TransformerDecoderLayer) from torch import Tensor from typing import Iterable, List import math import os import numpy as np try: from janome.tokenizer import Tokenizer ex...
36.14
168
0.620365
1,348
10,842
4.735905
0.207715
0.019737
0.012061
0.016291
0.181391
0.124843
0.110902
0.099937
0.053258
0.039474
0
0.011876
0.269969
10,842
299
169
36.26087
0.794694
0.078676
0
0.068966
0
0
0.020833
0.006643
0
0
0
0
0
1
0.098522
false
0
0.059113
0.029557
0.256158
0.004926
0
0
0
null
0
0
0
0
0
0
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
de7a78e426a815b7bd976727be3160a469af797a
9,185
py
Python
probedb/certs/builddb.py
dingdang2012/tlsprober
927f6177939470235bf336bca27096369932fc66
[ "Apache-2.0" ]
1
2019-01-30T13:18:02.000Z
2019-01-30T13:18:02.000Z
probedb/certs/builddb.py
dingdang2012/tlsprober
927f6177939470235bf336bca27096369932fc66
[ "Apache-2.0" ]
null
null
null
probedb/certs/builddb.py
dingdang2012/tlsprober
927f6177939470235bf336bca27096369932fc66
[ "Apache-2.0" ]
null
null
null
# Copyright 2010-2012 Opera Software ASA # # 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 ...
27.665663
163
0.706369
1,256
9,185
4.978503
0.184713
0.10331
0.080921
0.006397
0.477051
0.41676
0.379978
0.324004
0.304014
0.304014
0
0.016592
0.192923
9,185
332
164
27.665663
0.826926
0.114535
0
0.457143
0
0
0.029326
0
0
0
0
0
0.004082
0
null
null
0.008163
0.032653
null
null
0.077551
0
0
0
null
0
0
0
0
0
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
de7b6b105a985b6f30d92b604636b34c85675300
498
py
Python
Alp/cap_alp/E.py
Ashokkommi0001/patterns
daa1a1d8f3bc6e021e02a0e34458e2c178fc71d2
[ "MIT" ]
2
2021-03-17T12:08:22.000Z
2021-03-17T12:11:10.000Z
Alp/cap_alp/E.py
Ashokkommi0001/patterns
daa1a1d8f3bc6e021e02a0e34458e2c178fc71d2
[ "MIT" ]
null
null
null
Alp/cap_alp/E.py
Ashokkommi0001/patterns
daa1a1d8f3bc6e021e02a0e34458e2c178fc71d2
[ "MIT" ]
1
2021-03-17T11:49:39.000Z
2021-03-17T11:49:39.000Z
def for_E(): for row in range(7): for col in range(5): if (col==0 ) or (row==0 or row==3 or row==6): print("*",end=" ") else: print(end=" ") print() def while_E(): i=0 while i<7: j=0 while j<5: ...
22.636364
58
0.317269
66
498
2.363636
0.318182
0.076923
0.076923
0.166667
0.269231
0.269231
0
0
0
0
0
0.066667
0.518072
498
21
59
23.714286
0.583333
0
0
0.4
0
0
0.016771
0
0
0
0
0
0
1
0.1
false
0
0
0
0.1
0.3
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
de7c4534ed26f1d3158aaf6b53415fa79e0c249d
574
py
Python
patron/__init__.py
rafaelaraujobsb/patron
b2d23d4149a5f48156a4a2b0638daac33a66cc6a
[ "MIT" ]
null
null
null
patron/__init__.py
rafaelaraujobsb/patron
b2d23d4149a5f48156a4a2b0638daac33a66cc6a
[ "MIT" ]
null
null
null
patron/__init__.py
rafaelaraujobsb/patron
b2d23d4149a5f48156a4a2b0638daac33a66cc6a
[ "MIT" ]
null
null
null
from flask import Flask from loguru import logger from flasgger import Swagger from patron.api import api_bp logger.add("api.log", format="{time:YYYY-MM-DD at HH:mm:ss} | {level} | {message}", rotation="500 MB") template = { "swagger": "2.0", "info": { "title": "PATRON", "description": "", ...
19.793103
102
0.602787
70
574
4.828571
0.614286
0.029586
0
0
0
0
0
0
0
0
0
0.0181
0.229965
574
28
103
20.5
0.746606
0
0
0.090909
0
0.045455
0.285714
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de7dc549a1952d8dda02b33f493f1bb859b37917
735
py
Python
src/perceptron.py
tomoki/deep-learning-from-scratch
0b6144806b6b79462d6d65616a64b1774f876973
[ "MIT" ]
1
2018-08-31T09:39:11.000Z
2018-08-31T09:39:11.000Z
src/perceptron.py
tomoki/deep-learning-from-scratch
0b6144806b6b79462d6d65616a64b1774f876973
[ "MIT" ]
null
null
null
src/perceptron.py
tomoki/deep-learning-from-scratch
0b6144806b6b79462d6d65616a64b1774f876973
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pylab as plt def step_function(x): y = x > 0 return y.astype(np.int) def sigmoid(x): return 1 / (1 + np.exp(-x)) def relu(x): return np.maximum(0, x) def AND(x1, x2): x = np.array([x1, x2]) w = np.array([0.5, 0.5]) b = -0.7 tmp = np.sum(w * x) + b...
17.093023
31
0.469388
137
735
2.510949
0.262774
0.069767
0.043605
0.061047
0.590116
0.590116
0.590116
0.590116
0.590116
0.590116
0
0.090909
0.356463
735
42
32
17.5
0.636364
0
0
0.555556
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.055556
0.055556
0.472222
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
de8007cfcf1b7fa53b4609e54f0ca14a7d5ba1bb
210
py
Python
notebooks/_solutions/case4_air_quality_analysis18.py
jorisvandenbossche/2018-Bordeaux-pandas-course
3f6b9fe6f02c2ab484c3f9744d7d39b926438dd6
[ "BSD-3-Clause" ]
3
2019-07-23T15:14:03.000Z
2020-11-10T06:12:18.000Z
notebooks/_solutions/case4_air_quality_analysis18.py
jorisvandenbossche/2018-Bordeaux-pandas-course
3f6b9fe6f02c2ab484c3f9744d7d39b926438dd6
[ "BSD-3-Clause" ]
null
null
null
notebooks/_solutions/case4_air_quality_analysis18.py
jorisvandenbossche/2018-Bordeaux-pandas-course
3f6b9fe6f02c2ab484c3f9744d7d39b926438dd6
[ "BSD-3-Clause" ]
3
2020-03-04T23:40:20.000Z
2021-11-04T16:41:10.000Z
# with tidy long table fig, ax = plt.subplots() sns.violinplot(x='station', y='no2', data=data_tidy[data_tidy['datetime'].dt.year == 2011], palette="GnBu_d", ax=ax) ax.set_ylabel("NO$_2$ concentration (µg/m³)")
52.5
116
0.704762
36
210
3.972222
0.805556
0.111888
0
0
0
0
0
0
0
0
0
0.036458
0.085714
210
4
117
52.5
0.708333
0.095238
0
0
0
0
0.275132
0
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
de82bbe06365e1885857bfec2f5eb9144e01b08c
1,729
py
Python
dncnn/dncnn.py
kTonpa/DnCNN
aca7e07ccbe6b75bee7d4763958dade4a8eee609
[ "MIT" ]
null
null
null
dncnn/dncnn.py
kTonpa/DnCNN
aca7e07ccbe6b75bee7d4763958dade4a8eee609
[ "MIT" ]
null
null
null
dncnn/dncnn.py
kTonpa/DnCNN
aca7e07ccbe6b75bee7d4763958dade4a8eee609
[ "MIT" ]
null
null
null
""" Project: dncnn Author: khalil MEFTAH Date: 2021-11-26 DnCNN: Deep Neural Convolutional Network for Image Denoising model implementation """ import torch from torch import nn import torch.nn.functional as F # helper functions def eval_decorator(fn): def inner(model, *args, **kwargs): was_training = m...
25.80597
142
0.638519
224
1,729
4.741071
0.375
0.065913
0.079096
0.056497
0.343691
0.343691
0.274011
0.274011
0.234463
0.234463
0
0.017955
0.259109
1,729
66
143
26.19697
0.811085
0.108155
0
0.05
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.075
0.025
0.35
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
de848d1a58c8622dd6042ce58386b34d78eaa285
41,886
py
Python
scripts/fabfile/tasks.py
Alchem-Lab/deneva
5201ef12fd8235fea7833709b8bffe45f53877eb
[ "Apache-2.0" ]
88
2017-01-19T03:15:24.000Z
2022-03-30T16:22:19.000Z
scripts/fabfile/tasks.py
Alchem-Lab/deneva
5201ef12fd8235fea7833709b8bffe45f53877eb
[ "Apache-2.0" ]
null
null
null
scripts/fabfile/tasks.py
Alchem-Lab/deneva
5201ef12fd8235fea7833709b8bffe45f53877eb
[ "Apache-2.0" ]
22
2017-01-20T10:22:31.000Z
2022-02-10T18:55:36.000Z
#!/usr/bin/python from __future__ import print_function import logging from fabric.api import task,run,local,put,get,execute,settings from fabric.decorators import * from fabric.context_managers import shell_env,quiet from fabric.exceptions import * from fabric.utils import puts,fastprint from time import sleep from c...
36.549738
172
0.542138
4,981
41,886
4.415378
0.1052
0.012959
0.021643
0.020052
0.613286
0.53758
0.492384
0.465648
0.439276
0.413995
0
0.007384
0.327508
41,886
1,145
173
36.581659
0.773395
0.182615
0
0.581342
0
0.004551
0.133883
0.022201
0
0
0
0
0.002275
1
0.044369
false
0.002275
0.020478
0
0.080774
0.029579
0
0
0
null
0
0
0
0
0
0
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
de852461942a9c2a911b8c95e145d87c827bf61c
651
py
Python
mezzanine_recipes/forms.py
tjetzinger/mezzanine-recipes
f00be89ae5b93fdb2cf2771270efb4ecfa30e313
[ "MIT" ]
6
2015-02-01T18:08:41.000Z
2021-06-20T16:24:11.000Z
mezzanine_recipes/forms.py
tjetzinger/mezzanine-recipes
f00be89ae5b93fdb2cf2771270efb4ecfa30e313
[ "MIT" ]
2
2020-02-11T21:19:13.000Z
2020-06-05T16:38:44.000Z
mezzanine_recipes/forms.py
tjetzinger/mezzanine-recipes
f00be89ae5b93fdb2cf2771270efb4ecfa30e313
[ "MIT" ]
1
2016-05-17T20:16:25.000Z
2016-05-17T20:16:25.000Z
from django import forms from mezzanine.blog.forms import BlogPostForm from .models import BlogPost # These fields need to be in the form, hidden, with default values, # since it posts to the blog post admin, which includes these fields # and will use empty values instead of the model defaults, without # these spe...
26.04
73
0.723502
86
651
5.406977
0.627907
0.047312
0.08172
0
0
0
0
0
0
0
0
0
0.201229
651
24
74
27.125
0.894231
0.463902
0
0
0
0
0.144615
0
0
0
0
0
0
1
0
false
0
0.375
0
0.625
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
de86c719ac9ffce9e1f273be9d0dc93bbd224576
14,533
py
Python
reviews/migrations/0022_auto_20190302_1556.py
UrbanBogger/horrorexplosion
3698e00a6899a5e8b224cd3d1259c3deb3a2ca80
[ "MIT" ]
null
null
null
reviews/migrations/0022_auto_20190302_1556.py
UrbanBogger/horrorexplosion
3698e00a6899a5e8b224cd3d1259c3deb3a2ca80
[ "MIT" ]
4
2020-06-05T18:21:18.000Z
2021-06-10T20:17:31.000Z
reviews/migrations/0022_auto_20190302_1556.py
UrbanBogger/horrorexplosion
3698e00a6899a5e8b224cd3d1259c3deb3a2ca80
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2019-03-02 15:56 from __future__ import unicode_literals import ckeditor.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('reviews', '0021_auto_20190302_1514')...
113.539063
1,908
0.637515
1,869
14,533
4.853398
0.178705
0.042333
0.047294
0.058207
0.798809
0.781942
0.770808
0.760997
0.732995
0.688237
0
0.175241
0.193491
14,533
127
1,909
114.433071
0.598669
0.004679
0
0.416667
1
0.191667
0.281081
0.022542
0
0
0
0
0
1
0
false
0
0.033333
0
0.058333
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
1
1
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
de876b3ed14bbdc7196b4d80c31ffed86152546c
1,414
py
Python
setup.py
imdaveho/intermezzo
3fe4824a747face996e301ca5190caec0cb0a6fd
[ "MIT" ]
8
2018-02-26T16:24:07.000Z
2021-06-30T07:40:52.000Z
setup.py
imdaveho/intermezzo
3fe4824a747face996e301ca5190caec0cb0a6fd
[ "MIT" ]
null
null
null
setup.py
imdaveho/intermezzo
3fe4824a747face996e301ca5190caec0cb0a6fd
[ "MIT" ]
null
null
null
import platform from setuptools import setup if platform.system() == "Windows": setup( name="intermezzo", version="0.1.0", description="A library for creating cross-platform text-based interfaces using termbox-go.", long_description="", url="https://github.com/imdaveho/inter...
35.35
100
0.601839
157
1,414
5.318471
0.382166
0.071856
0.062275
0.071856
0.907784
0.907784
0.907784
0.907784
0.845509
0.845509
0
0.020408
0.237624
1,414
39
101
36.25641
0.754174
0
0
0.736842
0
0
0.407355
0.052334
0
0
0
0
0
1
0
true
0
0.052632
0
0.052632
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
8
de87df11dbf3b3a221e585a21372627cd71cbf40
173
py
Python
aula3/ola/urls.py
Danilo-Xaxa/django_cs50w
5ae2e076f35a8c32a4e445f8cfd1c66500fbc496
[ "MIT" ]
null
null
null
aula3/ola/urls.py
Danilo-Xaxa/django_cs50w
5ae2e076f35a8c32a4e445f8cfd1c66500fbc496
[ "MIT" ]
null
null
null
aula3/ola/urls.py
Danilo-Xaxa/django_cs50w
5ae2e076f35a8c32a4e445f8cfd1c66500fbc496
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('<str:nome>', views.cumprimentar, name='cumprimentar'), ]
24.714286
64
0.676301
21
173
5.571429
0.571429
0
0
0
0
0
0
0
0
0
0
0
0.150289
173
7
65
24.714286
0.795918
0
0
0
0
0
0.155172
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
de88715741307a44df748cb0254417ebbcf130e6
70,016
py
Python
MOTION.py
catubc/MOTION
528ce8a860e4f1f1075b85d3bcb162fb78bdad81
[ "MIT" ]
null
null
null
MOTION.py
catubc/MOTION
528ce8a860e4f1f1075b85d3bcb162fb78bdad81
[ "MIT" ]
null
null
null
MOTION.py
catubc/MOTION
528ce8a860e4f1f1075b85d3bcb162fb78bdad81
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import cv2, os, sys, glob import scipy import sklearn import imageio import matplotlib.cm as cm import matplotlib import time from sklearn import decomposition, metrics, manifold, svm from tsne import bh_sne from matplotlib.path ...
39.049637
257
0.638211
9,472
70,016
4.574008
0.105997
0.021881
0.018904
0.015695
0.501489
0.452002
0.412072
0.383728
0.342435
0.325609
0
0.01988
0.210452
70,016
1,792
258
39.071429
0.763843
0.219393
0
0.350097
0
0.001934
0.088489
0.002879
0
0
0
0.001674
0
0
null
null
0.004836
0.021277
null
null
0.110251
0
0
0
null
0
0
0
0
0
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
de88b285c3b2ad75dee639aa1cc273972692cd58
619
py
Python
MinersArchers/game/game_data/cells/Cell_pygame.py
ea-evdokimov/MinersArchers
2e2830d3723b66cbd0e8829092124e30f8b4c854
[ "MIT" ]
null
null
null
MinersArchers/game/game_data/cells/Cell_pygame.py
ea-evdokimov/MinersArchers
2e2830d3723b66cbd0e8829092124e30f8b4c854
[ "MIT" ]
null
null
null
MinersArchers/game/game_data/cells/Cell_pygame.py
ea-evdokimov/MinersArchers
2e2830d3723b66cbd0e8829092124e30f8b4c854
[ "MIT" ]
null
null
null
import pygame from game.game_data.cells.Cell import Cell from game.pygame_ import PICS_pygame, CELL_SIZE from game.pygame_.Object import Object class PyGCell(Object, Cell): # TODO не передавать лишнее def __init__(self, id__, cell: Cell, x_: int, y_: int): Object.__init__(self, id__, *self.create_coo...
30.95
91
0.691438
93
619
4.215054
0.322581
0.102041
0.071429
0.040816
0
0
0
0
0
0
0
0.002004
0.193861
619
19
92
32.578947
0.783567
0.040388
0
0
0
0
0.008446
0
0
0
0
0.052632
0
1
0.166667
false
0
0.333333
0.083333
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
1
0
0
3
de8b266bc66642e780d1f515de7639ab0386bd85
2,690
py
Python
scheduler.py
shuaiqi361/a-PyTorch-Tutorial-to-Object-Detection
5706b82ff67911864967aa72adf7e4a994c7ec89
[ "MIT" ]
null
null
null
scheduler.py
shuaiqi361/a-PyTorch-Tutorial-to-Object-Detection
5706b82ff67911864967aa72adf7e4a994c7ec89
[ "MIT" ]
null
null
null
scheduler.py
shuaiqi361/a-PyTorch-Tutorial-to-Object-Detection
5706b82ff67911864967aa72adf7e4a994c7ec89
[ "MIT" ]
null
null
null
import json import os import torch import math def adjust_learning_rate(optimizer, scale): """ Scale learning rate by a specified factor. :param optimizer: optimizer whose learning rate must be shrunk. :param scale: factor to multiply learning rate with. """ for param_group in optimizer.param...
36.351351
106
0.600743
361
2,690
4.293629
0.168975
0.109677
0.085161
0.058065
0.706452
0.693548
0.666452
0.666452
0.605161
0.530323
0
0.007748
0.280297
2,690
73
107
36.849315
0.792872
0.142007
0
0.340426
0
0
0.091715
0
0
0
0
0
0
1
0.106383
false
0
0.085106
0
0.255319
0.12766
0
0
0
null
0
0
0
0
0
0
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
de8c74beee9cae08acd3e8037eb35833307f76e4
93
py
Python
app/routing/feeds/feed_type.py
wolfhardfehre/guide-io
cf076bad0634bcaf4ad0be4822539b7c8d254e76
[ "MIT" ]
null
null
null
app/routing/feeds/feed_type.py
wolfhardfehre/guide-io
cf076bad0634bcaf4ad0be4822539b7c8d254e76
[ "MIT" ]
null
null
null
app/routing/feeds/feed_type.py
wolfhardfehre/guide-io
cf076bad0634bcaf4ad0be4822539b7c8d254e76
[ "MIT" ]
null
null
null
from enum import Enum class FeedType(str, Enum): OSM = 'osm' OVERPASS = 'overpass'
13.285714
26
0.645161
12
93
5
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.247312
93
6
27
15.5
0.857143
0
0
0
0
0
0.11828
0
0
0
0
0
0
1
0
false
0.25
0.25
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
1
0
0
1
0
0
4
de8c915237260239c036a5cbacb8018944e669da
8,774
py
Python
lego_sorter.py
bmleedy/lego_sorter
0164bc0042127f255590d1883b5edadfba781537
[ "BSD-2-Clause" ]
null
null
null
lego_sorter.py
bmleedy/lego_sorter
0164bc0042127f255590d1883b5edadfba781537
[ "BSD-2-Clause" ]
null
null
null
lego_sorter.py
bmleedy/lego_sorter
0164bc0042127f255590d1883b5edadfba781537
[ "BSD-2-Clause" ]
null
null
null
#!/bin/python3 """This is the top-level program to operate the Raspberry Pi based lego sorter.""" # Things I can set myself: AWB, Brightness, crop, exposure_mode, # exposure_speed,iso (sensitivity), overlays, preview_alpha, # preview_window, saturation, shutter_speed, # Thought for future enhancement: at start...
35.379032
94
0.624915
1,176
8,774
4.528061
0.326531
0.005258
0.016526
0.02554
0.112113
0.099531
0.084883
0.084883
0.057653
0.015399
0
0.026191
0.277638
8,774
247
95
35.522267
0.813979
0.314908
0
0.117647
0
0
0.121951
0.017276
0
0
0
0.008097
0
1
0.019608
false
0
0.058824
0
0.143791
0.084967
0
0
0
null
0
0
0
0
0
0
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
de8d539f5152c1d0482b8d70ccc7c573352b8f81
6,061
py
Python
tableloader/tableFunctions/types.py
warlof/yamlloader
ff1c1e62ec40787dd77115f6deded8a93e77ebf6
[ "MIT" ]
26
2015-07-08T12:55:30.000Z
2022-01-21T11:44:35.000Z
tableloader/tableFunctions/types.py
warlof/yamlloader
ff1c1e62ec40787dd77115f6deded8a93e77ebf6
[ "MIT" ]
16
2016-05-01T17:42:44.000Z
2021-06-02T04:33:53.000Z
tableloader/tableFunctions/types.py
warlof/yamlloader
ff1c1e62ec40787dd77115f6deded8a93e77ebf6
[ "MIT" ]
17
2016-05-01T11:15:00.000Z
2021-12-02T03:25:04.000Z
# -*- coding: utf-8 -*- from yaml import load, dump try: from yaml import CSafeLoader as SafeLoader print "Using CSafeLoader" except ImportError: from yaml import SafeLoader print "Using Python SafeLoader" import os import sys reload(sys) sys.setdefaultencoding("utf-8") from sqlalchemy import Table def importyaml...
63.135417
193
0.530606
542
6,061
5.905904
0.202952
0.142143
0.079975
0.035614
0.491097
0.415183
0.379569
0.379569
0.324274
0.302406
0
0.00996
0.337403
6,061
95
194
63.8
0.787102
0.003465
0
0.282609
0
0
0.115932
0.006956
0
0
0
0
0
0
null
null
0
0.097826
null
null
0.054348
0
0
0
null
0
0
0
0
0
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
de8e61ed55aedc48bfff03d78334a493e87826b6
242
py
Python
core/views.py
AlikBerry/countdown_timer
457f6d499b1fd702d43c348a012ae78780009e3b
[ "MIT" ]
null
null
null
core/views.py
AlikBerry/countdown_timer
457f6d499b1fd702d43c348a012ae78780009e3b
[ "MIT" ]
null
null
null
core/views.py
AlikBerry/countdown_timer
457f6d499b1fd702d43c348a012ae78780009e3b
[ "MIT" ]
null
null
null
from django.shortcuts import render from core.models import Projects,InfoNotifications,WarningNotifications from django.http import HttpResponse from .tasks import sleepy def index(reuqest): sleepy(10) return HttpResponse('Done!')
22
71
0.801653
29
242
6.689655
0.689655
0.103093
0
0
0
0
0
0
0
0
0
0.009524
0.132231
242
10
72
24.2
0.914286
0
0
0
0
0
0.020661
0
0
0
0
0
0
1
0.142857
false
0
0.571429
0
0.857143
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
de8e8bcbbb73ed82dfadbb561cfbfe8bb447a711
5,017
py
Python
networks/autoencoder/losses.py
annachen/dl_playground
f263dc16b4f0d91f6d33d94e678a9bbe2ace8913
[ "MIT" ]
null
null
null
networks/autoencoder/losses.py
annachen/dl_playground
f263dc16b4f0d91f6d33d94e678a9bbe2ace8913
[ "MIT" ]
null
null
null
networks/autoencoder/losses.py
annachen/dl_playground
f263dc16b4f0d91f6d33d94e678a9bbe2ace8913
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np EPS = 1e-5 def KL_monte_carlo(z, mean, sigma=None, log_sigma=None): """Computes the KL divergence at a point, given by z. Implemented based on https://www.tensorflow.org/tutorials/generative/cvae This is the part "log(p(z)) - log(q(z|x)) where z is sampled from...
24.960199
88
0.590592
705
5,017
4.060993
0.202837
0.064268
0.033531
0.023053
0.502969
0.418093
0.396787
0.348236
0.284666
0.243451
0
0.012305
0.271078
5,017
200
89
25.085
0.770577
0.370142
0
0.243243
0
0
0.007105
0
0
0
0
0
0.013514
1
0.094595
false
0
0.027027
0
0.216216
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
de9037d4a2c6b5fbbf0a5f4e22a9796ae161e5b0
4,288
py
Python
Onderdelen/Hoofdscherm.py
RemcoTaal/IDP
33959e29235448c38b7936f16c7421a24130e745
[ "MIT" ]
null
null
null
Onderdelen/Hoofdscherm.py
RemcoTaal/IDP
33959e29235448c38b7936f16c7421a24130e745
[ "MIT" ]
null
null
null
Onderdelen/Hoofdscherm.py
RemcoTaal/IDP
33959e29235448c38b7936f16c7421a24130e745
[ "MIT" ]
null
null
null
from tkinter import * import os, xmltodict, requests def knop1(): 'Open GUI huidig station' global root root.destroy() os.system('Huidig_Station.py') def knop2(): 'Open GUI ander station' global root root.destroy() os.system('Ander_Station.py') def nl_to_eng(): 'Wanneer er op d...
34.861789
117
0.541045
422
4,288
5.473934
0.341232
0.020779
0.041558
0.05368
0.334199
0.207792
0.179221
0.112554
0.112554
0.112554
0
0.048206
0.356576
4,288
122
118
35.147541
0.789054
0.135728
0
0.34375
0
0
0.215756
0.047268
0
0
0
0
0
1
0.041667
false
0
0.020833
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
de93263b9043812ffa8057bd744f43dfad03bbdf
27
py
Python
py2ifttt/__init__.py
moevis/py2ifttt
99dc2be647c53c9279f2f212528fef7190de7476
[ "MIT" ]
3
2018-05-04T12:50:04.000Z
2020-02-28T03:22:53.000Z
py2ifttt/__init__.py
moevis/py2ifttt
99dc2be647c53c9279f2f212528fef7190de7476
[ "MIT" ]
null
null
null
py2ifttt/__init__.py
moevis/py2ifttt
99dc2be647c53c9279f2f212528fef7190de7476
[ "MIT" ]
null
null
null
from .py2ifttt import IFTTT
27
27
0.851852
4
27
5.75
1
0
0
0
0
0
0
0
0
0
0
0.041667
0.111111
27
1
27
27
0.916667
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
de9373d0df66278e0b02dc262104db37303b9a61
3,806
py
Python
server-program/clientApplication.py
ezequias2d/projeto-so
993f3dd12135946fe5b4351e8488b7aa8a18f37e
[ "MIT" ]
null
null
null
server-program/clientApplication.py
ezequias2d/projeto-so
993f3dd12135946fe5b4351e8488b7aa8a18f37e
[ "MIT" ]
null
null
null
server-program/clientApplication.py
ezequias2d/projeto-so
993f3dd12135946fe5b4351e8488b7aa8a18f37e
[ "MIT" ]
null
null
null
import socket import tokens import connection import io import os from PIL import Image from message.literalMessage import LiteralMessage from baseApplication import BaseApplication class ClientApplication(BaseApplication): def __init__(self, host, port): super().__init__(host, port, token...
34.288288
121
0.547031
423
3,806
4.739953
0.224586
0.04788
0.037406
0.042394
0.223441
0.095761
0
0
0
0
0
0.020639
0.350762
3,806
111
122
34.288288
0.790773
0
0
0.126316
0
0
0.094942
0
0
0
0
0
0
1
0.094737
false
0
0.084211
0
0.189474
0.210526
0
0
0
null
0
0
0
0
0
0
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
de949d00cedaeb2c6790aaae5c34a82b7c16d8c5
230
py
Python
ethernet/recv.py
bobbae/pingcap
c573688b42d35cefdbfa0121580807885aae8869
[ "Unlicense" ]
null
null
null
ethernet/recv.py
bobbae/pingcap
c573688b42d35cefdbfa0121580807885aae8869
[ "Unlicense" ]
1
2019-10-11T16:16:22.000Z
2019-10-11T16:16:22.000Z
ethernet/recv.py
bobbae/pingcap
c573688b42d35cefdbfa0121580807885aae8869
[ "Unlicense" ]
null
null
null
import sys import socket ETH_P_ALL=3 # not defined in socket module, sadly... s=socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(ETH_P_ALL)) s.bind((sys.argv[1], 0)) r=s.recv(2000) sys.stdout.write("<%s>\n"%repr(r))
25.555556
75
0.726087
45
230
3.577778
0.644444
0.049689
0.086957
0
0
0
0
0
0
0
0
0.033333
0.086957
230
8
76
28.75
0.733333
0.165217
0
0
0
0
0.031579
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
de94dc8dcf783cae1964a6addda472d802119e98
1,110
py
Python
legacy/exam.py
wangxinhe2006/xyzzyy
3267614132a3b9e448b6733f13e8019aa79db922
[ "MIT" ]
1
2021-07-16T02:29:35.000Z
2021-07-16T02:29:35.000Z
legacy/exam.py
wangxinhe2006/xyzzyy
3267614132a3b9e448b6733f13e8019aa79db922
[ "MIT" ]
null
null
null
legacy/exam.py
wangxinhe2006/xyzzyy
3267614132a3b9e448b6733f13e8019aa79db922
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from json import loads from urllib.request import urlopen, Request SITE = input('Site: ') COOKIE = 'pj=' + input('pj=') examList = loads(urlopen(Request(f'{SITE}/data/module/homework/all.asp?sAct=GetHomeworkListByStudent&iIsExam=1&iPageCount=' + loads(urlopen(Request(f'{SITE}/data/module/home...
48.26087
312
0.664865
128
1,110
5.765625
0.476563
0.075881
0.077236
0.081301
0.352304
0.273713
0.273713
0.227642
0.227642
0.227642
0
0.003226
0.162162
1,110
22
313
50.454545
0.790323
0.018919
0
0
0
0.058824
0.330882
0.204044
0
0
0
0
0.117647
1
0
false
0.058824
0.117647
0
0.117647
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
de95cb380efb4a5351375e80063db451dd2899b5
3,803
py
Python
TkPy/module.py
tbor8080/pyprog
3642b9af2a92f7369d9b6fa138e47ba22df3271c
[ "MIT" ]
null
null
null
TkPy/module.py
tbor8080/pyprog
3642b9af2a92f7369d9b6fa138e47ba22df3271c
[ "MIT" ]
null
null
null
TkPy/module.py
tbor8080/pyprog
3642b9af2a92f7369d9b6fa138e47ba22df3271c
[ "MIT" ]
null
null
null
import sys import os import tkinter.filedialog as fd from time import sleep import datetime import tkinter import tkinter as tk from tkinter import ttk from tkinter import scrolledtext import threading # New File & Duplicate File Save def saveasFilePath( filetype=[ ("",".txt"), ("CSV",".csv") ] ): return fd.asksa...
34.261261
106
0.616618
464
3,803
4.838362
0.273707
0.09265
0.071269
0.080178
0.385301
0.334967
0.253007
0.181292
0.148775
0.109577
0
0.024466
0.236918
3,803
111
107
34.261261
0.749139
0.104391
0
0.105263
0
0
0.05839
0
0
0
0
0
0
1
0.144737
false
0
0.131579
0.052632
0.355263
0.026316
0
0
0
null
0
0
0
0
0
0
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
de97499bd44b3c33d3853cafca12103889273c3c
6,005
py
Python
core/polyaxon/cli/components/tuner.py
Ohtar10/polyaxon
1e41804e4ae6466b6928d06bc6ee6d2d9c7b8931
[ "Apache-2.0" ]
null
null
null
core/polyaxon/cli/components/tuner.py
Ohtar10/polyaxon
1e41804e4ae6466b6928d06bc6ee6d2d9c7b8931
[ "Apache-2.0" ]
null
null
null
core/polyaxon/cli/components/tuner.py
Ohtar10/polyaxon
1e41804e4ae6466b6928d06bc6ee6d2d9c7b8931
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, 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 ...
28.732057
85
0.657119
648
6,005
6.00463
0.220679
0.040093
0.016962
0.035466
0.72552
0.696479
0.696479
0.662041
0.648162
0.602673
0
0.007374
0.254788
6,005
208
86
28.870192
0.862123
0.116903
0
0.666667
0
0
0.120994
0
0
0
0
0
0
1
0.02381
false
0.005952
0.083333
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
de974a6af213636bff804abc1abfb40a31e4354d
8,810
py
Python
judge/base/__init__.py
fanzeyi/Vulpix
9448e968973073c98231b22663bbebb2a452dcd7
[ "BSD-3-Clause" ]
13
2015-03-08T11:59:28.000Z
2021-07-11T11:58:01.000Z
src/tornado/demos/Vulpix-master/judge/base/__init__.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
src/tornado/demos/Vulpix-master/judge/base/__init__.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
3
2015-05-29T16:14:08.000Z
2016-04-29T07:25:26.000Z
# -*- coding: utf-8 -*- # AUTHOR: Zeray Rice <fanzeyi1994@gmail.com> # FILE: judge/base/__init__.py # CREATED: 01:49:33 08/03/2012 # MODIFIED: 15:42:49 19/04/2012 # DESCRIPTION: Base handler import re import time import urllib import hashlib import httplib import datetime import functools import traceback import simp...
40.787037
147
0.559932
1,035
8,810
4.66087
0.29372
0.016584
0.018657
0.013474
0.16791
0.151119
0.100332
0.100332
0.064677
0.045605
0
0.015778
0.316572
8,810
215
148
40.976744
0.785418
0.062089
0
0.177083
0
0.015625
0.092163
0.029053
0
0
0
0
0
1
0.088542
false
0.026042
0.119792
0.015625
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
de9773cffe9839ef07dd2219fd1b0246be382284
1,839
py
Python
src/blog/migrations/0001_initial.py
triump0870/rohan
3bd56ccdc35cb67823117e78dc02becbfbd0b329
[ "MIT" ]
null
null
null
src/blog/migrations/0001_initial.py
triump0870/rohan
3bd56ccdc35cb67823117e78dc02becbfbd0b329
[ "MIT" ]
null
null
null
src/blog/migrations/0001_initial.py
triump0870/rohan
3bd56ccdc35cb67823117e78dc02becbfbd0b329
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import markdownx.models import myblog.filename from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
39.12766
152
0.582926
187
1,839
5.572193
0.465241
0.034549
0.03071
0.040307
0.278311
0.224568
0.224568
0.151631
0.151631
0.151631
0
0.008191
0.269712
1,839
46
153
39.978261
0.767684
0.011419
0
0.275
0
0
0.088656
0
0
0
0
0
0
1
0
false
0
0.125
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
de9904583298a90d85047bd7e803be42fe6b0d62
1,545
py
Python
exams/61a-su20-practice-mt/q6/tests/q6.py
jjllzhang/CS61A
57b68c7c06999210d96499f6d84e4ec99085d396
[ "MIT" ]
1
2022-01-22T11:45:01.000Z
2022-01-22T11:45:01.000Z
exams/61a-su20-practice-mt/q6/tests/q6.py
jjllzhang/CS61A
57b68c7c06999210d96499f6d84e4ec99085d396
[ "MIT" ]
null
null
null
exams/61a-su20-practice-mt/q6/tests/q6.py
jjllzhang/CS61A
57b68c7c06999210d96499f6d84e4ec99085d396
[ "MIT" ]
null
null
null
test = {'name': 'q6', 'points': 10, 'suites': [{'cases': [{'code': '>>> increment = lambda x: x + 1\n' '\n' '>>> square = lambda x: x * x\n' '\n' '>>> do_nothing = make_zipper(increment, ' ...
49.83871
80
0.253722
105
1,545
3.685714
0.47619
0.036176
0.147287
0.193798
0
0
0
0
0
0
0
0.062185
0.614887
1,545
31
81
49.83871
0.588235
0
0
0.225806
0
0
0.359638
0.089263
0
0
0
0
0
1
0
false
0
0.032258
0
0.032258
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
de9bc65cbfa30de1a8294fb16fd3712d1ce427db
3,566
py
Python
#17.py
Domino2357/daily-coding-problem
95ddef9db53c8b895f2c085ba6399a3144a4f8e6
[ "MIT" ]
null
null
null
#17.py
Domino2357/daily-coding-problem
95ddef9db53c8b895f2c085ba6399a3144a4f8e6
[ "MIT" ]
null
null
null
#17.py
Domino2357/daily-coding-problem
95ddef9db53c8b895f2c085ba6399a3144a4f8e6
[ "MIT" ]
null
null
null
""" This problem was asked by Google. Suppose we represent our file system by a string in the following manner: The string "dir\n\tsubdir1\n\tsubdir2\n\t\tfile.ext" represents: dir subdir1 subdir2 file.ext The directory dir contains an empty sub-directory subdir1 and a sub-directory subdir2 containin...
31.280702
124
0.666854
538
3,566
4.29368
0.299257
0.072727
0.109091
0.036797
0.183117
0.080519
0.022511
0
0
0
0
0.017372
0.257431
3,566
113
125
31.557522
0.854985
0.551598
0
0.288462
0
0
0.027628
0
0
0
0
0
0
1
0.096154
false
0
0
0.019231
0.192308
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
de9bd50729808fda9f77f7ae5831c5d7b432a027
1,315
py
Python
turbot/db.py
emre/turbot
7bc49a8b79bce7f2490036d9255e5b3df8fff4b1
[ "MIT" ]
3
2017-10-17T22:02:06.000Z
2018-05-07T10:29:31.000Z
turbot/db.py
emre/turbot
7bc49a8b79bce7f2490036d9255e5b3df8fff4b1
[ "MIT" ]
null
null
null
turbot/db.py
emre/turbot
7bc49a8b79bce7f2490036d9255e5b3df8fff4b1
[ "MIT" ]
3
2018-10-16T13:28:57.000Z
2021-02-24T13:23:29.000Z
from os.path import expanduser, exists from os import makedirs TURBOT_PATH = expanduser('~/.turbot') UPVOTE_LOGS = expanduser("%s/upvote_logs" % TURBOT_PATH) CHECKPOINT = expanduser("%s/checkpoint" % TURBOT_PATH) REFUND_LOG = expanduser("%s/refunds" % TURBOT_PATH) def load_checkpoint(fallback_block_num=None): tr...
24.351852
56
0.650951
173
1,315
4.768786
0.300578
0.09697
0.087273
0.054545
0.233939
0.157576
0.157576
0.157576
0.157576
0.157576
0
0
0.222814
1,315
53
57
24.811321
0.807241
0
0
0.289474
0
0
0.047148
0
0
0
0
0
0
1
0.157895
false
0
0.052632
0.026316
0.342105
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
de9c334f30690be489dc54509a0861d269ca08ea
111
py
Python
output/models/ms_data/additional/member_type021_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/additional/member_type021_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/additional/member_type021_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.additional.member_type021_xsd.member_type021 import Root __all__ = [ "Root", ]
18.5
83
0.774775
15
111
5.2
0.8
0.333333
0
0
0
0
0
0
0
0
0
0.061856
0.126126
111
5
84
22.2
0.742268
0
0
0
0
0
0.036036
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
0
0
0
0
0
3
de9ca51de5e3ba22b379f50a5e136405d59c8422
4,361
py
Python
estimator.py
2besweet/Covid-19-project
8cfa76662ed0b84999134a9faacbf390e8de31f3
[ "MIT" ]
1
2021-01-31T19:04:11.000Z
2021-01-31T19:04:11.000Z
estimator.py
2besweet/Covid-19-project
8cfa76662ed0b84999134a9faacbf390e8de31f3
[ "MIT" ]
1
2021-05-11T10:34:00.000Z
2021-05-11T10:34:00.000Z
estimator.py
2besweet/Covid-19-project
8cfa76662ed0b84999134a9faacbf390e8de31f3
[ "MIT" ]
null
null
null
def estimator(data): return data def __init__(self,reportedCases,name,days,totalHospitalbeds,avgDailyIncomeInUsd,avgDailyIncomePopulation): self.reportedCases=reportedCases self.name=name self.days=days self.totalHospitalbeds=totalHospitalbeds self.avgDailyIncomeInUsd=avg...
40.757009
127
0.698234
265
4,361
11.475472
0.309434
0.01973
0.025649
0.027951
0.137455
0.016442
0
0
0
0
0
0.03246
0.229993
4,361
106
128
41.141509
0.873139
0
0
0.051282
0
0
0.185441
0.087077
0
0
0
0
0
1
0.038462
false
0
0
0
0.051282
0.012821
0
0
1
null
0
0
0
0
0
0
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
dea196647fceafaeec0ee9058ac3907d2c76082c
3,752
py
Python
pys3crypto.py
elitest/pys3crypto
9dfef5935ff1c663b8641eaa052e778cdf34a565
[ "MIT" ]
null
null
null
pys3crypto.py
elitest/pys3crypto
9dfef5935ff1c663b8641eaa052e778cdf34a565
[ "MIT" ]
null
null
null
pys3crypto.py
elitest/pys3crypto
9dfef5935ff1c663b8641eaa052e778cdf34a565
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Original Author @elitest # This script uses boto3 to perform client side decryption # of data encryption keys and associated files # and encryption in ways compatible with the AWS SDKs # This support is not available in boto3 at this time # Wishlist: # Currently only tested with KMS managed s...
36.427184
125
0.709488
499
3,752
5.296593
0.386774
0.020431
0.027242
0.030269
0.121831
0.090049
0.062807
0.062807
0
0
0
0.010475
0.185768
3,752
102
126
36.784314
0.854664
0.29371
0
0.169492
0
0
0.193659
0.012223
0
0
0
0
0
1
0.033898
false
0
0.067797
0
0.152542
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
dea3d4b6a9500edd440cd83df9ceb44f4b4e36eb
1,777
py
Python
openTEL_11_19/presentation_figures/tm112_utils.py
psychemedia/presentations
a4d7058b1f716c59a89d0bcd1390ead75d769d43
[ "Apache-2.0" ]
null
null
null
openTEL_11_19/presentation_figures/tm112_utils.py
psychemedia/presentations
a4d7058b1f716c59a89d0bcd1390ead75d769d43
[ "Apache-2.0" ]
null
null
null
openTEL_11_19/presentation_figures/tm112_utils.py
psychemedia/presentations
a4d7058b1f716c59a89d0bcd1390ead75d769d43
[ "Apache-2.0" ]
1
2019-11-05T10:35:40.000Z
2019-11-05T10:35:40.000Z
from IPython.display import HTML #TO DO - the nested table does not display? #Also, the nested execution seems to take a long time to run? #Profile it to see where I'm going wrong! def obj_display(v, nest=False, style=True): def nested(v): if nest: return obj_display(v, style=False) re...
38.630435
133
0.563309
269
1,777
3.598513
0.30855
0.018595
0.022727
0.051653
0.46281
0.46281
0.46281
0.46281
0.363636
0.363636
0
0.00297
0.241981
1,777
45
134
39.488889
0.715664
0.07991
0
0.363636
0
0
0.444799
0.207403
0
0
0
0
0
1
0.060606
false
0
0.151515
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
dea4ec2e4ccc51ad602efcb7e648252790b6ff2d
984
py
Python
src/pages/artists_main.py
haoweini/spotify_stream
83fd13d4da9fb54a595611d4c0cd594eb5b8a9fd
[ "MIT" ]
null
null
null
src/pages/artists_main.py
haoweini/spotify_stream
83fd13d4da9fb54a595611d4c0cd594eb5b8a9fd
[ "MIT" ]
null
null
null
src/pages/artists_main.py
haoweini/spotify_stream
83fd13d4da9fb54a595611d4c0cd594eb5b8a9fd
[ "MIT" ]
null
null
null
from turtle import width import streamlit as st import numpy as np import pandas as pd from dis import dis import streamlit as st from data.get_saved_library import get_saved_library, display_user_name, display_user_pic from data.get_recently_played import get_recently_played from data.get_top_artists import get_top_ar...
31.741935
136
0.816057
158
984
4.797468
0.417722
0.065963
0.043536
0.050132
0
0
0
0
0
0
0
0.001171
0.132114
984
31
137
31.741935
0.886417
0.049797
0
0.086957
0
0
0.034298
0
0
0
0
0
0
1
0.043478
false
0
0.782609
0
0.826087
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
dea61adbc856f28630be94c795fc850aa45a1770
595
py
Python
Leetcode/res/Longest Common Prefix/2.py
AllanNozomu/CompetitiveProgramming
ac560ab5784d2e2861016434a97e6dcc44e26dc8
[ "MIT" ]
1
2022-03-04T16:06:41.000Z
2022-03-04T16:06:41.000Z
Leetcode/res/Longest Common Prefix/2.py
AllanNozomu/CompetitiveProgramming
ac560ab5784d2e2861016434a97e6dcc44e26dc8
[ "MIT" ]
null
null
null
Leetcode/res/Longest Common Prefix/2.py
AllanNozomu/CompetitiveProgramming
ac560ab5784d2e2861016434a97e6dcc44e26dc8
[ "MIT" ]
null
null
null
# Author: allannozomu # Runtime: 56 ms # Memory: 13 MB class Solution: def longestCommonPrefix(self, strs: List[str]) -> str: res = "" max_length = -1 for s in strs: if max_length < 0: max_length = len(s) else: max_length = min(len(s),...
24.791667
58
0.403361
67
595
3.492537
0.492537
0.230769
0.051282
0.08547
0.102564
0
0
0
0
0
0
0.02027
0.502521
595
24
59
24.791667
0.77027
0.080672
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.222222
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
dea6d3637da9acba0c0473fcafaedf9d82d434e7
884
py
Python
tests/factory_fixtures/contact_number.py
donovan-PNW/dwellinglybackend
448df61f6ea81f00dde7dab751f8b2106f0eb7b1
[ "MIT" ]
null
null
null
tests/factory_fixtures/contact_number.py
donovan-PNW/dwellinglybackend
448df61f6ea81f00dde7dab751f8b2106f0eb7b1
[ "MIT" ]
56
2021-08-05T02:49:38.000Z
2022-03-31T19:35:13.000Z
tests/factory_fixtures/contact_number.py
donovan-PNW/dwellinglybackend
448df61f6ea81f00dde7dab751f8b2106f0eb7b1
[ "MIT" ]
null
null
null
import pytest from models.contact_number import ContactNumberModel @pytest.fixture def contact_number_attributes(faker): def _contact_number_attributes(): return { "number": faker.phone_number(), "numtype": faker.random_element(("home", "work", "mobile")), "extension": ...
29.466667
82
0.70362
91
884
6.417582
0.351648
0.267123
0.196918
0.089041
0
0
0
0
0
0
0
0
0.210407
884
29
83
30.482759
0.836676
0
0
0.090909
0
0
0.045249
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0.045455
0.363636
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
dea6d4847a9416f809c2342943ab00ca26b745bd
835
py
Python
tests/test_seq_comparision.py
krzjoa/sciquence
6a5f758c757200fffeb0fdc9206462f1f89e2444
[ "MIT" ]
8
2017-10-23T17:59:35.000Z
2021-05-10T03:01:30.000Z
tests/test_seq_comparision.py
krzjoa/sciquence
6a5f758c757200fffeb0fdc9206462f1f89e2444
[ "MIT" ]
2
2019-08-25T19:24:12.000Z
2019-09-05T12:16:10.000Z
tests/test_seq_comparision.py
krzjoa/sciquence
6a5f758c757200fffeb0fdc9206462f1f89e2444
[ "MIT" ]
2
2018-02-28T09:47:53.000Z
2019-08-25T19:24:16.000Z
import unittest import numpy as np from sciquence.sequences import * class TestSequences(unittest.TestCase): def test_seq_equals(self): x = [np.array([1, 2, 3]), np.array([4, 5, 6])] y = [np.array([1, 2, 7]), np.array([4, 5, 9])] assert lseq_equal(x, x) assert not lseq_equal(x, y)...
30.925926
91
0.475449
155
835
2.470968
0.232258
0.177546
0.219321
0.229765
0.362924
0.279373
0.279373
0.263708
0.24282
0.13577
0
0.146597
0.313772
835
26
92
32.115385
0.521815
0
0
0
0
0
0.009592
0
0
0
0
0
0.166667
1
0.111111
false
0
0.166667
0
0.333333
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
dea6f4a43ec33dab31441d90f5221fa29eeb9456
8,191
py
Python
analysis_guis/code_test.py
Sepidak/spikeGUI
25ae60160308c0a34e7180f3e39a1c4dc6aad708
[ "MIT" ]
null
null
null
analysis_guis/code_test.py
Sepidak/spikeGUI
25ae60160308c0a34e7180f3e39a1c4dc6aad708
[ "MIT" ]
3
2021-08-09T21:51:41.000Z
2021-08-09T21:51:45.000Z
analysis_guis/code_test.py
Sepidak/spikeGUI
25ae60160308c0a34e7180f3e39a1c4dc6aad708
[ "MIT" ]
3
2021-10-16T14:07:59.000Z
2021-10-16T17:09:03.000Z
# -*- coding: utf-8 -*- """ Simple example using BarGraphItem """ # import initExample ## Add path to library (just for examples; you do not need this) import numpy as np import pickle as p import pandas as pd from analysis_guis.dialogs.rotation_filter import RotationFilter from analysis_guis.dialogs impor...
37.401826
129
0.605421
1,301
8,191
3.586472
0.256726
0.015002
0.015431
0.010716
0.087655
0.04715
0.036434
0.015002
0.015002
0
0
0.021917
0.270297
8,191
218
130
37.573395
0.758742
0.43792
0
0.025316
0
0
0.02526
0.008735
0
0
0
0
0
1
0.012658
false
0
0.227848
0
0.253165
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
dea94f5c042a5187e7e181584aadcbc88251aee3
2,852
py
Python
att/gm.py
thexdesk/foiamail
d135bbb5f52d5a31ca8ce3450bd0035f94a182f5
[ "MIT" ]
null
null
null
att/gm.py
thexdesk/foiamail
d135bbb5f52d5a31ca8ce3450bd0035f94a182f5
[ "MIT" ]
null
null
null
att/gm.py
thexdesk/foiamail
d135bbb5f52d5a31ca8ce3450bd0035f94a182f5
[ "MIT" ]
null
null
null
""" downloads gmail atts """ import base64, os from auth.auth import get_service from msg.label import agencies, get_atts from report.response import get_threads, get_status from att.drive import get_or_create_atts_folder,\ check_if_drive, make_drive_folder, upload_to_drive ### START CONFIG ### buffer_path = ...
32.781609
119
0.630785
361
2,852
4.783934
0.33518
0.063694
0.020845
0.017371
0.052113
0
0
0
0
0
0
0.003341
0.265428
2,852
86
120
33.162791
0.821002
0.048387
0
0
0
0
0.060306
0
0
0
0
0.011628
0
0
null
null
0
0.111111
null
null
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
2
dea9df41450058a28e28c535ce8960f8b770dc38
1,147
py
Python
pex/pip/download_observer.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
pex/pip/download_observer.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
pex/pip/download_observer.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import from pex.pip.log_analyzer import LogAnalyzer from pex.typing import TYPE_CHECKING, Generic if TYPE_CHECKING: from typing import Iterable, Mappi...
23.408163
66
0.646905
141
1,147
5.099291
0.446809
0.029207
0.038943
0.05007
0.083449
0.083449
0
0
0
0
0
0.006928
0.244987
1,147
48
67
23.895833
0.823326
0.2415
0
0.133333
0
0
0.004662
0
0
0
0
0
0
1
0.1
false
0
0.233333
0.066667
0.566667
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
deaa58029f2b553b02dbaa81816ff5ce9e456f8a
3,424
py
Python
dispatchlib/types.py
ryxcommar/dispatchlib
bf3b6e5617af41579b240a7733cd9cc86a8a38ed
[ "MIT" ]
null
null
null
dispatchlib/types.py
ryxcommar/dispatchlib
bf3b6e5617af41579b240a7733cd9cc86a8a38ed
[ "MIT" ]
null
null
null
dispatchlib/types.py
ryxcommar/dispatchlib
bf3b6e5617af41579b240a7733cd9cc86a8a38ed
[ "MIT" ]
null
null
null
from typing import Any from typing import Callable from typing import Iterable def _create_getter_and_setter(name: str): def getter(self): return getattr(self.func, name) getter.__name__ = name prop = property(getter) def setter(self, value): setattr(self.func, name, value) setter...
26.96063
79
0.651285
365
3,424
5.69589
0.317808
0.03848
0.036075
0.045695
0.370851
0.295334
0.25493
0.23569
0.104858
0.104858
0
0.002349
0.254089
3,424
126
80
27.174603
0.811668
0.077687
0
0.144444
0
0
0.057416
0.018182
0
0
0
0
0
1
0.233333
false
0.011111
0.055556
0.111111
0.544444
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
deabe0363fc1143c6a3fe5cc62b534d0a3e480ca
2,096
py
Python
pbpstats/data_loader/nba_possession_loader.py
pauldevos/pbpstats
71c0b5e2bd45d0ca031646c70cd1c1f30c6a7152
[ "MIT" ]
null
null
null
pbpstats/data_loader/nba_possession_loader.py
pauldevos/pbpstats
71c0b5e2bd45d0ca031646c70cd1c1f30c6a7152
[ "MIT" ]
null
null
null
pbpstats/data_loader/nba_possession_loader.py
pauldevos/pbpstats
71c0b5e2bd45d0ca031646c70cd1c1f30c6a7152
[ "MIT" ]
null
null
null
from pbpstats.resources.enhanced_pbp import StartOfPeriod class NbaPossessionLoader(object): """ Class for shared methods between :obj:`~pbpstats.data_loader.data_nba.possessions_loader.DataNbaPossessionLoader` and :obj:`~pbpstats.data_loader.stats_nba.possessions_loader.StatsNbaPossessionLoader` Bot...
39.54717
121
0.624046
220
2,096
5.772727
0.327273
0.056693
0.03937
0.043307
0.456693
0.434646
0.426772
0.32126
0.32126
0.32126
0
0.008826
0.297233
2,096
52
122
40.307692
0.85336
0.28292
0
0.375
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0.03125
0
0.15625
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
dead01ec590550c2d98b328ed72222f137d3778b
7,033
py
Python
vmware_nsx_tempest/tests/nsxv/api/base_provider.py
gravity-tak/vmware-nsx-tempest
3a1007d401c471d989345bb5a3f9769f84bd4ac6
[ "Apache-2.0" ]
null
null
null
vmware_nsx_tempest/tests/nsxv/api/base_provider.py
gravity-tak/vmware-nsx-tempest
3a1007d401c471d989345bb5a3f9769f84bd4ac6
[ "Apache-2.0" ]
null
null
null
vmware_nsx_tempest/tests/nsxv/api/base_provider.py
gravity-tak/vmware-nsx-tempest
3a1007d401c471d989345bb5a3f9769f84bd4ac6
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 OpenStack Foundation # 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 requ...
39.072222
78
0.65278
879
7,033
4.994312
0.216155
0.047153
0.034169
0.038724
0.351708
0.328474
0.26492
0.248519
0.230296
0.207517
0
0.005272
0.271861
7,033
179
79
39.290503
0.851982
0.177023
0
0.259843
0
0
0.028233
0
0
0
0
0
0
1
0.110236
false
0.007874
0.047244
0
0.275591
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
deadc8ea87d0e57d203447ee89704b440dd4a622
3,650
py
Python
read_csv.py
BigTony666/football-manager
12a4c3dc2bb60f9634b419b7c230d6f78df8d650
[ "MIT" ]
11
2019-04-23T23:15:43.000Z
2021-07-13T06:37:25.000Z
read_csv.py
BigTony666/football-manager
12a4c3dc2bb60f9634b419b7c230d6f78df8d650
[ "MIT" ]
null
null
null
read_csv.py
BigTony666/football-manager
12a4c3dc2bb60f9634b419b7c230d6f78df8d650
[ "MIT" ]
2
2019-03-07T21:07:34.000Z
2020-04-19T15:28:31.000Z
#!/usr/bin/env python # coding: utf-8 # In[2]: from collections import defaultdict import csv import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt # ## read data to numpy(not in use) # In[385]: # def readCsvToNumpy(file_name, feat_num): # util_mat = [] # with open...
27.037037
117
0.596164
460
3,650
4.53913
0.376087
0.056992
0.022989
0.015805
0.123563
0.029693
0.029693
0.029693
0
0
0
0.013578
0.253425
3,650
134
118
27.238806
0.752661
0.603288
0
0
0
0
0.235552
0
0
0
0
0
0
1
0
false
0.08
0.24
0
0.24
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
deaf2eb47ddc3dd822c0c77690801b5b8b2a48b0
1,492
py
Python
layers/ternary_ops.py
victorjoos/QuantizedNeuralNetworks-Keras-Tensorflow
4080ddff9c9e9a6fd5c1dd90997c63968195bb7e
[ "BSD-3-Clause" ]
1
2018-08-22T12:13:25.000Z
2018-08-22T12:13:25.000Z
layers/ternary_ops.py
victorjoos/QuantizedNeuralNetworks-Keras-Tensorflow
4080ddff9c9e9a6fd5c1dd90997c63968195bb7e
[ "BSD-3-Clause" ]
null
null
null
layers/ternary_ops.py
victorjoos/QuantizedNeuralNetworks-Keras-Tensorflow
4080ddff9c9e9a6fd5c1dd90997c63968195bb7e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import keras.backend as K from time import sleep def switch(condition, t, e): if K.backend() == 'tensorflow': import tensorflow as tf return tf.where(condition, t, e) elif K.backend() == 'theano': import theano.tensor as tt ...
27.127273
99
0.632038
218
1,492
4.261468
0.376147
0.043057
0.051668
0.064586
0.437029
0.437029
0.437029
0.381055
0.381055
0.381055
0
0.038927
0.225201
1,492
54
100
27.62963
0.764706
0.386729
0
0
0
0
0.018779
0
0
0
0
0.018519
0
1
0.185185
false
0
0.185185
0
0.592593
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
deafcfc518bad5ab9572431f7de653f846580238
1,050
py
Python
python/5.concurrent/ZCoroutine/z_new_ipc/8.condition.py
lotapp/BaseCode
0255f498e1fe67ed2b3f66c84c96e44ef1f7d320
[ "Apache-2.0" ]
25
2018-06-13T08:13:44.000Z
2020-11-19T14:02:11.000Z
python/5.concurrent/ZCoroutine/z_new_ipc/8.condition.py
lotapp/BaseCode
0255f498e1fe67ed2b3f66c84c96e44ef1f7d320
[ "Apache-2.0" ]
null
null
null
python/5.concurrent/ZCoroutine/z_new_ipc/8.condition.py
lotapp/BaseCode
0255f498e1fe67ed2b3f66c84c96e44ef1f7d320
[ "Apache-2.0" ]
13
2018-06-13T08:13:38.000Z
2022-01-06T06:45:07.000Z
import asyncio cond = None p_list = [] # 生产者 async def producer(n): for i in range(5): async with cond: p_list.append(f"{n}-{i}") print(f"[生产者{n}]生产商品{n}-{i}") # 通知任意一个消费者 cond.notify() # 通知全部消费者:cond.notify_all() # 摸拟一个耗时操作 await asyncio.s...
23.333333
75
0.526667
137
1,050
3.883212
0.40146
0.056391
0.033835
0.06203
0.174812
0.105263
0
0
0
0
0
0.012987
0.34
1,050
44
76
23.863636
0.75469
0.086667
0
0.137931
0
0
0.082278
0
0
0
0
0
0
1
0
false
0
0.034483
0
0.034483
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
deb039b791ed71607787c0d4ffc9f5bb4edef521
930
py
Python
Q846_Hand-of-Straights.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
Q846_Hand-of-Straights.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
Q846_Hand-of-Straights.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
from collections import Counter class Solution: def isNStraightHand(self, hand: List[int], W: int) -> bool: n = len(hand) groups = 0 if n == 0 or n % W != 0: return False groups_num = n // W c = Counter(hand) keys = list(c.keys()) keys.sort() ...
31
63
0.410753
109
930
3.440367
0.357798
0.085333
0.090667
0.064
0.085333
0
0
0
0
0
0
0.019231
0.496774
930
30
64
31
0.782051
0
0
0.103448
0
0
0
0
0
0
0
0
0
1
0.034483
false
0
0.034483
0
0.241379
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
deb1c543d933d4026fb5899f87ff8c3384301fea
174
py
Python
hover/utils/misc.py
haochuanwei/hover
53eb38c718e44445b18a97e391b7f90270802b04
[ "MIT" ]
1
2020-12-08T13:04:18.000Z
2020-12-08T13:04:18.000Z
hover/utils/misc.py
MaxCodeXTC/hover
feeb0e0c59295a3c883823ccef918dfe388b603c
[ "MIT" ]
null
null
null
hover/utils/misc.py
MaxCodeXTC/hover
feeb0e0c59295a3c883823ccef918dfe388b603c
[ "MIT" ]
null
null
null
"""Mini-functions that do not belong elsewhere.""" from datetime import datetime def current_time(template="%Y%m%d %H:%M:%S"): return datetime.now().strftime(template)
24.857143
50
0.718391
26
174
4.769231
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.12069
174
6
51
29
0.810458
0.252874
0
0
0
0
0.120968
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
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
1
0
0
1
1
0
0
0
5
deb28e42e8f7639fbbb2df4266120ee03fd2a028
193
py
Python
admin.py
sfchronicle/najee
0c66b05ba10616243d9828465da97dee7bfedc0d
[ "MIT", "Unlicense" ]
null
null
null
admin.py
sfchronicle/najee
0c66b05ba10616243d9828465da97dee7bfedc0d
[ "MIT", "Unlicense" ]
null
null
null
admin.py
sfchronicle/najee
0c66b05ba10616243d9828465da97dee7bfedc0d
[ "MIT", "Unlicense" ]
null
null
null
import flask_admin as admin # from flask_admin.contrib.sqla import ModelView from app import app # from app import db from models import * # Admin admin = admin.Admin(app) # Add Admin Views
16.083333
48
0.766839
31
193
4.709677
0.419355
0.205479
0.178082
0
0
0
0
0
0
0
0
0
0.176166
193
11
49
17.545455
0.918239
0.450777
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
deb449183523148b00bdabf18e21714bbe3551c8
467
py
Python
src/courses/migrations/0006_auto_20200521_2038.py
GiomarOsorio/another-e-learning-platform
5cfc76420eb3466691f5187c915c179afb13199a
[ "MIT" ]
null
null
null
src/courses/migrations/0006_auto_20200521_2038.py
GiomarOsorio/another-e-learning-platform
5cfc76420eb3466691f5187c915c179afb13199a
[ "MIT" ]
8
2020-06-25T22:16:20.000Z
2022-03-12T00:39:27.000Z
src/courses/migrations/0006_auto_20200521_2038.py
GiomarOsorio/another-e-learning-platform
5cfc76420eb3466691f5187c915c179afb13199a
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-05-21 20:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('courses', '0005_auto_20200521_2038'), ] operations = [ migrations.AlterField( model_name='module', name='segments', ...
24.578947
129
0.631692
55
467
5.254545
0.727273
0.055363
0.110727
0.124567
0.17301
0.17301
0
0
0
0
0
0.089855
0.261242
467
18
130
25.944444
0.747826
0.09636
0
0
1
0
0.247619
0.054762
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
deb684b2e0198456aadb77cab383b2b6c0c2748f
776
py
Python
mypi/settings.py
sujaymansingh/mypi
768bdda2ed43faba8a69c7985ee063e1016b9299
[ "BSD-2-Clause-FreeBSD" ]
4
2016-08-22T17:13:43.000Z
2020-10-21T16:50:07.000Z
mypi/settings.py
sujaymansingh/mypi
768bdda2ed43faba8a69c7985ee063e1016b9299
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
mypi/settings.py
sujaymansingh/mypi
768bdda2ed43faba8a69c7985ee063e1016b9299
[ "BSD-2-Clause-FreeBSD" ]
1
2016-08-22T17:13:47.000Z
2016-08-22T17:13:47.000Z
import os def import_module(name): module = __import__(name) components = name.split('.') for components in components[1:]: module = getattr(module, components) return module # We should try to import any custom settings. SETTINGS_MODULE_NAME = os.getenv("MYPI_SETTINGS_MODULE") if SETTINGS_M...
29.846154
72
0.744845
104
776
5.240385
0.384615
0.231193
0.100917
0.091743
0
0
0
0
0
0
0
0.003035
0.150773
776
25
73
31.04
0.823976
0.148196
0
0
0
0
0.12462
0
0
0
0
0
0
1
0.058824
false
0
0.235294
0
0.352941
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
deb7178741e12b76740cccb10cf2e3f8e186116d
1,866
py
Python
alipay/aop/api/domain/KbAdvertPreserveCommissionClause.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/KbAdvertPreserveCommissionClause.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/KbAdvertPreserveCommissionClause.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.constant.ParamConstants import * class KbAdvertPreserveCommissionClause(object): def __init__(self): self._claimer_id_type = None self._claimers = None @property def claimer_id_type(self): ...
29.15625
81
0.587889
218
1,866
4.770642
0.238532
0.129808
0.1875
0.114423
0.269231
0.150962
0.108654
0.069231
0
0
0
0.00157
0.317256
1,866
63
82
29.619048
0.814757
0.022508
0
0.081633
0
0
0.073626
0
0
0
0
0
0
1
0.142857
false
0
0.040816
0.040816
0.306122
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
deba0ac91a90f7d9408ab094dc6d137f7476170c
4,495
py
Python
smart_contract/__init__.py
publicqi/CTFd-Fox
b1d0169db884cdf3cb665faa8987443e7630d108
[ "MIT" ]
1
2021-01-09T15:20:14.000Z
2021-01-09T15:20:14.000Z
smart_contract/__init__.py
publicqi/CTFd-Fox
b1d0169db884cdf3cb665faa8987443e7630d108
[ "MIT" ]
null
null
null
smart_contract/__init__.py
publicqi/CTFd-Fox
b1d0169db884cdf3cb665faa8987443e7630d108
[ "MIT" ]
null
null
null
from __future__ import division # Use floating point for math calculations from flask import Blueprint from CTFd.models import ( ChallengeFiles, Challenges, Fails, Flags, Hints, Solves, Tags, db, ) from CTFd.plugins import register_plugin_assets_directory from CTFd.plugins.challenges...
32.338129
87
0.629588
486
4,495
5.676955
0.218107
0.087713
0.056542
0.079739
0.460674
0.460674
0.333092
0.300471
0.183762
0.137006
0
0
0.261624
4,495
138
88
32.572464
0.831274
0.008899
0
0.262295
0
0
0.120144
0.068269
0
0
0
0
0
1
0.065574
false
0
0.065574
0
0.229508
0.016393
0
0
0
null
0
0
0
0
0
0
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
deba5b19ee11e4b42757cf8302210ae77f1c6474
295
py
Python
01-data_types/d13.py
philiphinton/learn_python
6ddfe3c7818d6c919bfa49bd6302c75ee761b6a4
[ "MIT" ]
null
null
null
01-data_types/d13.py
philiphinton/learn_python
6ddfe3c7818d6c919bfa49bd6302c75ee761b6a4
[ "MIT" ]
3
2022-01-17T22:55:09.000Z
2022-01-26T07:26:13.000Z
01-data_types/d13.py
philiphinton/learn_python
6ddfe3c7818d6c919bfa49bd6302c75ee761b6a4
[ "MIT" ]
1
2021-12-14T01:33:21.000Z
2021-12-14T01:33:21.000Z
shopping_list = { 'Tomatoes': 6, 'Bananas': 5, 'Crackers': 2, 'Sugar': 1, 'Icecream': 1, 'Bread': 3, 'Chocolate': 2 } # Just the keys print(shopping_list.keys()) # Just the values # print(shopping_list.values()) # Both keys and values # print(shopping_list.items())
17.352941
31
0.610169
38
295
4.631579
0.578947
0.272727
0.289773
0.261364
0
0
0
0
0
0
0
0.030435
0.220339
295
16
32
18.4375
0.734783
0.369492
0
0
0
0
0.27933
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1
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
debc22c03ed999e303334d1da3320e421b5bfacc
119
py
Python
applications/jupyter-extension/nteract_on_jupyter/notebooks/utils/cb/python/__init__.py
jjhenkel/nteract
088222484b59af14b1da22de4d0990d8925adf95
[ "BSD-3-Clause" ]
null
null
null
applications/jupyter-extension/nteract_on_jupyter/notebooks/utils/cb/python/__init__.py
jjhenkel/nteract
088222484b59af14b1da22de4d0990d8925adf95
[ "BSD-3-Clause" ]
null
null
null
applications/jupyter-extension/nteract_on_jupyter/notebooks/utils/cb/python/__init__.py
jjhenkel/nteract
088222484b59af14b1da22de4d0990d8925adf95
[ "BSD-3-Clause" ]
null
null
null
from .surface import * from .modifiers import * from .evaluator import Evaluator from .lowlevel import display_results
23.8
37
0.815126
15
119
6.4
0.533333
0.208333
0
0
0
0
0
0
0
0
0
0
0.134454
119
4
38
29.75
0.932039
0
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
debcd3fde3c56a4f5ccca0c23d8a57a7d2afd960
588
py
Python
Numbers/PrimeFac.py
Arjuna197/the100
2963b4fe1b1b8e673a23b2cf97f4bcb263af9781
[ "MIT" ]
1
2022-02-20T18:49:49.000Z
2022-02-20T18:49:49.000Z
Numbers/PrimeFac.py
dan-garvey/the100
2963b4fe1b1b8e673a23b2cf97f4bcb263af9781
[ "MIT" ]
13
2017-12-13T02:31:54.000Z
2017-12-13T02:37:45.000Z
Numbers/PrimeFac.py
dan-garvey/the100
2963b4fe1b1b8e673a23b2cf97f4bcb263af9781
[ "MIT" ]
null
null
null
import math from math import* def isPrime(num): if num%2==0 or num%3==0: return False for n in range(5, int(num**(1/2))): if num%n==0: return False return True print('enter a positive integer') FacMe=int(input()) primefacts=[1] if not isPrime(FacMe): if FacMe...
21.777778
40
0.547619
85
588
3.788235
0.388235
0.198758
0.074534
0
0
0
0
0
0
0
0
0.042821
0.32483
588
26
41
22.615385
0.768262
0
0
0.083333
0
0
0.042705
0
0
0
0
0
0
1
0.041667
false
0
0.083333
0
0.25
0.083333
0
0
0
null
0
0
0
0
0
0
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
debd457fd6d2c1141a031eefaca5f163110cfa64
1,130
py
Python
src/wtfjson/validators/url.py
binary-butterfly/wtfjson
551ad07c895ce3c94ac3015b6b5ecc2102599b56
[ "MIT" ]
null
null
null
src/wtfjson/validators/url.py
binary-butterfly/wtfjson
551ad07c895ce3c94ac3015b6b5ecc2102599b56
[ "MIT" ]
1
2021-10-11T08:55:45.000Z
2021-10-11T08:55:45.000Z
src/wtfjson/validators/url.py
binary-butterfly/wtfjson
551ad07c895ce3c94ac3015b6b5ecc2102599b56
[ "MIT" ]
null
null
null
# encoding: utf-8 """ binary butterfly validator Copyright (c) 2021, binary butterfly GmbH Use of this source code is governed by an MIT-style license that can be found in the LICENSE.txt. """ import re from typing import Any, Optional from ..abstract_input import AbstractInput from ..fields import Field from ..vali...
30.540541
103
0.650442
139
1,130
5.100719
0.604317
0.042313
0.056417
0
0
0
0
0
0
0
0
0.007928
0.218584
1,130
36
104
31.388889
0.795017
0.161947
0
0
0
0.043478
0.101171
0.085197
0
0
0
0
0
1
0.086957
false
0
0.304348
0
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
1
0
0
0
0
1
debe6ce18f853e6b1e54abf97ade00987edf8450
1,270
py
Python
runner/run_descriptions/runs/curious_vs_vanilla.py
alex-petrenko/curious-rl
6cd0eb78ab409c68f8dad1a8542d625f0dd39114
[ "MIT" ]
18
2018-12-29T01:52:25.000Z
2021-11-08T06:48:20.000Z
runner/run_descriptions/runs/curious_vs_vanilla.py
alex-petrenko/curious-rl
6cd0eb78ab409c68f8dad1a8542d625f0dd39114
[ "MIT" ]
2
2019-06-13T12:52:55.000Z
2019-10-30T03:27:11.000Z
runner/run_descriptions/runs/curious_vs_vanilla.py
alex-petrenko/curious-rl
6cd0eb78ab409c68f8dad1a8542d625f0dd39114
[ "MIT" ]
3
2019-05-11T07:50:53.000Z
2021-11-18T08:15:56.000Z
from runner.run_descriptions.run_description import RunDescription, Experiment, ParamGrid _params = ParamGrid([ ('prediction_bonus_coeff', [0.00, 0.05]), ]) _experiments = [ Experiment( 'doom_maze_very_sparse', 'python -m algorithms.curious_a2c.train_curious_a2c --env=doom_maze_very_sparse --g...
40.967742
145
0.711024
156
1,270
5.352564
0.301282
0.095808
0.081437
0.11497
0.653892
0.613174
0.613174
0.555689
0.431138
0.354491
0
0.05482
0.166929
1,270
30
146
42.333333
0.734405
0.499213
0
0
0
0.083333
0.322581
0.301613
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
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
debed6abf0cd6d720ad9aac4713a4ef0c18b842a
383
py
Python
xappt_qt/__init__.py
cmontesano/xappt_qt
74f8c62e0104a67b4b4eb65382df851221bf0bab
[ "MIT" ]
null
null
null
xappt_qt/__init__.py
cmontesano/xappt_qt
74f8c62e0104a67b4b4eb65382df851221bf0bab
[ "MIT" ]
12
2020-10-11T22:42:12.000Z
2021-10-04T19:38:51.000Z
xappt_qt/__init__.py
cmontesano/xappt_qt
74f8c62e0104a67b4b4eb65382df851221bf0bab
[ "MIT" ]
1
2021-09-29T23:53:34.000Z
2021-09-29T23:53:34.000Z
import os from xappt_qt.__version__ import __version__, __build__ from xappt_qt.plugins.interfaces.qt import QtInterface # suppress "qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow)" os.environ['QT_LOGGING_RULES'] = '*.debug=false;qt.qpa.*=false' version = tuple(map(int, __version__.split('.'))) + (__build__, )...
27.357143
65
0.749347
50
383
5.08
0.6
0.070866
0.086614
0
0
0
0
0
0
0
0
0.002915
0.104439
383
13
66
29.461538
0.737609
0.164491
0
0
0
0
0.220126
0.166667
0
0
0
0
0
1
0
false
0
0.428571
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
0
1
0
0
0
0
1
dec0b14005ec6feafc62d8f18253556640fa35db
145,150
py
Python
py/countdowntourney.py
elocemearg/atropine
894010bcc89d4e6962cf3fc15ef526068c38898d
[ "CC-BY-4.0" ]
null
null
null
py/countdowntourney.py
elocemearg/atropine
894010bcc89d4e6962cf3fc15ef526068c38898d
[ "CC-BY-4.0" ]
null
null
null
py/countdowntourney.py
elocemearg/atropine
894010bcc89d4e6962cf3fc15ef526068c38898d
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/python3 import sys import sqlite3; import re; import os; import random import qualification from cttable import CandidateTable, TableVotingGroup, PhantomTableVotingGroup import cttable SW_VERSION_SPLIT = (1, 1, 4) SW_VERSION = ".".join([str(x) for x in SW_VERSION_SPLIT]) EARLIEST_COMPATIBLE_DB_VERSION = (...
39.691004
388
0.586035
19,416
145,150
4.19556
0.052431
0.019506
0.010385
0.017125
0.462724
0.381336
0.305508
0.254527
0.222659
0.197506
0
0.01518
0.316962
145,150
3,656
389
39.70186
0.806471
0.082962
0
0.358162
0
0.015315
0.283277
0.023378
0.000348
0
0.000152
0
0
1
0.091194
false
0.007309
0.002785
0.032718
0.204316
0.005569
0
0
0
null
0
0
0
0
0
0
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
dec0da50ce4a56fc78832aa67c6d71d1a1a1c437
995
py
Python
t/plugin/plugin_020deploy_test.py
jrmsdev/pysadm
0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37
[ "BSD-3-Clause" ]
1
2019-10-15T08:37:56.000Z
2019-10-15T08:37:56.000Z
t/plugin/plugin_020deploy_test.py
jrmsdev/pysadm
0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37
[ "BSD-3-Clause" ]
null
null
null
t/plugin/plugin_020deploy_test.py
jrmsdev/pysadm
0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Jeremías Casteglione <jrmsdev@gmail.com> # See LICENSE file. from glob import glob from os import path, makedirs def test_deploy_testing(testing_plugin): makedirs(path.join('tdata', 'deploy', 'plugin'), exist_ok = True) p = testing_plugin('testing', ns = '_sadmtest', deploy = True) print('-- deploy...
36.851852
80
0.676382
134
995
4.91791
0.425373
0.098634
0.059181
0.075873
0.172989
0.172989
0.172989
0.172989
0.172989
0.172989
0
0.001183
0.150754
995
26
81
38.269231
0.778698
0.072362
0
0.095238
0
0
0.155435
0
0
0
0
0
0
1
0.095238
false
0
0.095238
0
0.190476
0.095238
0
0
0
null
0
0
0
0
0
0
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
dec30d56b6d0887d305f33e490a67d25b3dd39cd
4,189
py
Python
jsonReadWrite.py
nsobczak/ActivityWatchToCSV
cefb67e9f1c834008f2b39c0baf6c7c506327a4d
[ "Apache-2.0" ]
null
null
null
jsonReadWrite.py
nsobczak/ActivityWatchToCSV
cefb67e9f1c834008f2b39c0baf6c7c506327a4d
[ "Apache-2.0" ]
null
null
null
jsonReadWrite.py
nsobczak/ActivityWatchToCSV
cefb67e9f1c834008f2b39c0baf6c7c506327a4d
[ "Apache-2.0" ]
null
null
null
""" ############## # jsonReader # ############## """ # Import import json from platform import system from enum import Enum from datetime import timedelta # %% ____________________________________________________________________________________________________ # ____________________________________________________...
30.136691
121
0.545476
403
4,189
5.168734
0.362283
0.053769
0.015362
0.016323
0.048968
0.035526
0
0
0
0
0
0.045263
0.319647
4,189
138
122
30.355072
0.685614
0.351635
0
0.035088
0
0
0.128381
0
0
0
0
0
0
1
0.035088
false
0
0.070175
0
0.192982
0.157895
0
0
0
null
0
0
0
0
0
0
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
dec3721fd14d0e108bf21ac443dd1b7796946011
286
py
Python
pythons/reTesting.py
whats2000/coding-stuff-I-make-from-learning
d82809ba12f9d74bdb41eca5ba8f12f4cd96929e
[ "MIT" ]
null
null
null
pythons/reTesting.py
whats2000/coding-stuff-I-make-from-learning
d82809ba12f9d74bdb41eca5ba8f12f4cd96929e
[ "MIT" ]
null
null
null
pythons/reTesting.py
whats2000/coding-stuff-I-make-from-learning
d82809ba12f9d74bdb41eca5ba8f12f4cd96929e
[ "MIT" ]
null
null
null
import re test = input("請輸入字串 : ") test.encode('unicode-escape').decode().replace('\\\\', '\\') print("輸入為 : "+test) if re.match(test, "a"): print(test + " Match 1") if re.match(test, "aa"): print(test + " Match 2") if re.match(test, "aaaa"): print(test + " Match 3")
16.823529
60
0.562937
41
286
3.926829
0.487805
0.074534
0.167702
0.242236
0
0
0
0
0
0
0
0.012931
0.188811
286
16
61
17.875
0.681034
0
0
0
0
0
0.227273
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.4
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
dec3efd877d3ce87cbe9fc53530bf43be70d8149
306
py
Python
2021-12-23/1.py
xiaozhiyuqwq/seniorschool
7375038b00a6d2deaec5d70bfac25ddbf4d2558e
[ "Apache-2.0" ]
null
null
null
2021-12-23/1.py
xiaozhiyuqwq/seniorschool
7375038b00a6d2deaec5d70bfac25ddbf4d2558e
[ "Apache-2.0" ]
null
null
null
2021-12-23/1.py
xiaozhiyuqwq/seniorschool
7375038b00a6d2deaec5d70bfac25ddbf4d2558e
[ "Apache-2.0" ]
null
null
null
#初始化 t=0 #运算 for x in range(1,9): for y in range(1,11): for z in range(1,13): if 6*x+5*y+4*z==50: print("计算出x值为 ",x," y值为 ",y," z值为 ",z," 。") t=t+1 print("计算出一共有 {} 个结果。".format(t)) #by xiaozhiyuqwq #https://www.rainyat.work #2021-12-23
21.857143
60
0.46732
54
306
2.648148
0.648148
0.146853
0.167832
0
0
0
0
0
0
0
0
0.112195
0.330065
306
13
61
23.538462
0.585366
0.176471
0
0
0
0
0.141026
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
dec6337c650811d4d0bda0d9fb32eb5e333b7344
15,088
py
Python
Project-2/Ishan Pandey/job_compare.py
Mercury1508/IEEE-LEAD-2.0
91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8
[ "MIT" ]
1
2021-06-03T16:08:33.000Z
2021-06-03T16:08:33.000Z
Project-2/Ishan Pandey/job_compare.py
Mercury1508/IEEE-LEAD-2.0
91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8
[ "MIT" ]
16
2021-04-27T12:58:03.000Z
2021-05-28T14:02:14.000Z
Project-2/Ishan Pandey/job_compare.py
Mercury1508/IEEE-LEAD-2.0
91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8
[ "MIT" ]
70
2021-04-26T13:48:35.000Z
2021-05-28T21:04:34.000Z
# from job_scrapper_gui import naukri_gui from tkinter import * from PIL import ImageTk import PIL.Image import naukri_scrapper import linkedin_scrapper import indeed import simply_hired_scrapper from selenium import webdriver root = Tk() root.title("Compare Jobs") root.geometry("1000x670") root.configure(background=...
57.808429
176
0.696911
2,036
15,088
4.97053
0.073183
0.071146
0.094862
0.054348
0.808498
0.787352
0.762451
0.758103
0.741403
0.724802
0
0.03989
0.136002
15,088
261
177
57.808429
0.736422
0.039767
0
0.486239
0
0
0.176723
0.005598
0
0
0
0
0
1
0.03211
false
0
0.036697
0
0.068807
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
dec771d07fef05c3b6f9bec75d34bca56cffa1b5
3,648
py
Python
data_augmentor/multidimension.py
ZhiangChen/tornado_ML
d8bded61a6a234ca67e31776bc8576c6c18f5621
[ "MIT" ]
2
2018-12-09T20:08:51.000Z
2021-02-01T17:49:14.000Z
data_augmentor/multidimension.py
ZhiangChen/tornado_ML
d8bded61a6a234ca67e31776bc8576c6c18f5621
[ "MIT" ]
1
2019-11-15T06:15:03.000Z
2019-11-15T06:15:03.000Z
multidimension.py
DREAMS-lab/data_augmentor
f204ee3af805b17d9946d3d5c6e7ca62398f09e5
[ "MIT" ]
null
null
null
""" multispectrum Zhiang Chen, Feb, 2020 """ import gdal import cv2 import numpy as np import math import os class MultDim(object): def __init__(self): pass def readTiff(self, tif_file, channel=3): self.ds = gdal.Open(tif_file) B = self.ds.GetRasterBand(1).ReadAsArray() G = se...
35.076923
105
0.569353
508
3,648
4.001969
0.214567
0.106247
0.070831
0.086572
0.185932
0.123955
0.079685
0.079685
0.079685
0.079685
0
0.027819
0.260965
3,648
104
106
35.076923
0.726261
0.072643
0
0.092308
0
0
0.089357
0.070832
0
0
0
0
0
1
0.092308
false
0.015385
0.076923
0.015385
0.215385
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
dec7a039bcd25fbdc90d163100b8870f23f0424a
399
py
Python
tests/serializers/test_template_data_serializers.py
banillie/bcompiler-engine
26b63b6e630e2925175ffff6b48b42d70f7ba544
[ "MIT" ]
2
2019-09-23T08:51:48.000Z
2019-10-14T08:44:28.000Z
tests/serializers/test_template_data_serializers.py
banillie/bcompiler-engine
26b63b6e630e2925175ffff6b48b42d70f7ba544
[ "MIT" ]
27
2019-07-08T11:15:03.000Z
2020-06-22T15:47:25.000Z
tests/serializers/test_template_data_serializers.py
yulqen/bcompiler-engine
40eff19e04eabacac991bb34d31a7e7a7d6b729a
[ "MIT" ]
1
2019-09-07T14:05:16.000Z
2019-09-07T14:05:16.000Z
import json from engine.serializers.template import TemplateCellSerializer def test_template_cell_to_dict(template_cell_obj): assert template_cell_obj.to_dict()["sheet_name"] == "Test Sheet 1" def test_template_cell_serializer(template_cell_obj): json_output = json.dumps(template_cell_obj, cls=TemplateCell...
30.692308
75
0.802005
55
399
5.454545
0.4
0.24
0.2
0.126667
0.126667
0
0
0
0
0
0
0.005618
0.107769
399
12
76
33.25
0.837079
0
0
0
0
0
0.110276
0
0
0
0
0
0.285714
1
0.285714
false
0
0.285714
0
0.571429
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4