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
9bbc0decb0390376acbaa65e5a7c58faddf9f153
516
py
Python
scaffolder/templates/django/views.py
javidgon/wizard
a75a4c10f84c756c2466c9afaaadf3b2c0cf3a43
[ "MIT" ]
null
null
null
scaffolder/templates/django/views.py
javidgon/wizard
a75a4c10f84c756c2466c9afaaadf3b2c0cf3a43
[ "MIT" ]
null
null
null
scaffolder/templates/django/views.py
javidgon/wizard
a75a4c10f84c756c2466c9afaaadf3b2c0cf3a43
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.views import generic from .models import {% for model in app.models %}{{ model.name }}{% if not loop.last %}, {% endif %}{% endfor %} {% for model in app.models %}class {{ model.name }}IndexView(generic.ListView): model = {{ model.name }} template_name = '...
30.352941
112
0.656977
66
516
5.030303
0.454545
0.189759
0.060241
0.078313
0.361446
0.246988
0.246988
0.246988
0.246988
0
0
0
0.174419
516
16
113
32.25
0.779343
0
0
0.2
0
0
0.141473
0
0
0
0
0
0
0
null
null
0
0.3
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
9bbdac1e6d8dd9f71aa6f189c3f63b6af713637c
343
py
Python
Dataset/Leetcode/test/11/489.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/11/489.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/11/489.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, height: List[int]) -> int: ans, i, j = 0, 0, len(height) - 1 while i < j: val = min(height[i], height[j]) ans = max(val * (j - i), ans) if height[i] == val: i += 1 if height[j] == val: j -=...
26.384615
44
0.390671
46
343
2.913043
0.434783
0.029851
0
0
0
0
0
0
0
0
0
0.027174
0.463557
343
12
45
28.583333
0.701087
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
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
9bc11053555c82b404c0a0cf86d08e3626d9e05f
4,071
py
Python
entity_resolution/EntityClass.py
GeoJamesJones/ArcGIS-Senzing-Prototype
ebe7f1c3f516525f4bfbf5b4f1446e8c6612a67b
[ "MIT" ]
null
null
null
entity_resolution/EntityClass.py
GeoJamesJones/ArcGIS-Senzing-Prototype
ebe7f1c3f516525f4bfbf5b4f1446e8c6612a67b
[ "MIT" ]
null
null
null
entity_resolution/EntityClass.py
GeoJamesJones/ArcGIS-Senzing-Prototype
ebe7f1c3f516525f4bfbf5b4f1446e8c6612a67b
[ "MIT" ]
null
null
null
from __future__ import annotations import json from typing import List, Dict from entity_resolution import EntityResolution class Entity: def __init__(self, entity_fields: List[str], data: List[str], source_fields: List[str], attr_dicts: Li...
36.675676
121
0.561778
439
4,071
4.963554
0.154897
0.212024
0.082607
0.039927
0.305186
0.271684
0.271684
0.155576
0.155576
0.155576
0
0.002261
0.348072
4,071
110
122
37.009091
0.818764
0
0
0.25
0
0
0.039794
0
0
0
0
0
0
1
0.02381
false
0
0.047619
0.011905
0.095238
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
32d7c7852b8b937ddf9034af3749422522ced7eb
2,792
py
Python
tests/utils/test_parser.py
ccechatelier/bcdi
cbe3b7960414b03f8e98336c3fcd7b367de441ca
[ "CECILL-B" ]
18
2020-04-30T08:48:39.000Z
2022-03-30T14:42:01.000Z
tests/utils/test_parser.py
ccechatelier/bcdi
cbe3b7960414b03f8e98336c3fcd7b367de441ca
[ "CECILL-B" ]
78
2019-06-30T03:45:58.000Z
2022-03-23T15:04:44.000Z
tests/utils/test_parser.py
ccechatelier/bcdi
cbe3b7960414b03f8e98336c3fcd7b367de441ca
[ "CECILL-B" ]
16
2019-07-03T17:18:53.000Z
2022-01-12T15:54:56.000Z
# -*- coding: utf-8 -*- # BCDI: tools for pre(post)-processing Bragg coherent X-ray diffraction imaging data # (c) 07/2017-06/2019 : CNRS UMR 7344 IM2NP # (c) 07/2019-05/2021 : DESY PHOTON SCIENCE # authors: # Jerome Carnis, carnis_jerome@yahoo.fr from pathlib import Path import unittest from bcdi.u...
34.469136
87
0.690544
364
2,792
5.043956
0.346154
0.071895
0.089869
0.07244
0.3622
0.238017
0.166667
0.166667
0.111111
0.04902
0
0.02758
0.194842
2,792
80
88
34.9
0.789146
0.180874
0
0.043478
0
0
0.056637
0.013274
0
0
0
0
0.23913
1
0.282609
false
0
0.065217
0
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
32e63e4af47da5e138ff28bb64adb55087df265e
7,113
py
Python
apps/etl/models.py
diudiu/featurefactory
ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e
[ "MIT" ]
null
null
null
apps/etl/models.py
diudiu/featurefactory
ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e
[ "MIT" ]
null
null
null
apps/etl/models.py
diudiu/featurefactory
ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- """ common models """ from django.db import models from apps.common.models import BaseModel from apps.datasource.models import DsInterfaceInfo class FeatureType(models.Model): id = models.AutoField(u'主键', primary_key=True) feature_type_desc = models.CharField(u'特征类型解释', max_length=...
39.082418
111
0.707578
978
7,113
4.91002
0.201431
0.140566
0.149938
0.060183
0.444815
0.40379
0.384423
0.309038
0.263224
0.238859
0
0.021215
0.171658
7,113
181
112
39.298343
0.793788
0.006045
0
0.231343
0
0
0.114168
0.023259
0
0
0
0
0.007463
1
0.022388
false
0
0.022388
0.022388
0.723881
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
32eb29b8500dc60a31bfc242ef317ed9ccbd65b5
1,411
py
Python
configs/common/ARM_A7.py
baz21/g5
e81b0df094c5ff80fbbcc37618e81e206a3c9de9
[ "BSD-3-Clause" ]
null
null
null
configs/common/ARM_A7.py
baz21/g5
e81b0df094c5ff80fbbcc37618e81e206a3c9de9
[ "BSD-3-Clause" ]
null
null
null
configs/common/ARM_A7.py
baz21/g5
e81b0df094c5ff80fbbcc37618e81e206a3c9de9
[ "BSD-3-Clause" ]
null
null
null
from m5.objects import * # https://en.wikipedia.org/wiki/Raspberry_Pi # https://en.wikipedia.org/wiki/ARM_Cortex-A7 # Instruction Cache class ARM_A7_ICache(Cache): tag_latency = 1 data_latency = 1 response_latency = 1 mshrs = 2 tgts_per_mshr = 8 size = '16kB' # OK assoc = 2 is_read_...
20.75
57
0.649894
201
1,411
4.338308
0.383085
0.045872
0.057339
0.055046
0.341743
0.227064
0.227064
0.194954
0.194954
0.130734
0
0.055718
0.274982
1,411
67
58
21.059701
0.796676
0.216159
0
0.361702
0
0
0.024793
0
0
0
0
0
0
1
0
false
0.021277
0.021277
0
0.978723
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
32f8e7bf61b54b514d134bdb102d258bdc2af2ce
669
py
Python
Tiny ImageNet Challenge/train_data.py
Vishal-V/Mastering-TensorFlow-2.x
83e18cf84dc5c391c5f902978ee5a80e1be4a31d
[ "MIT" ]
3
2020-05-15T16:57:39.000Z
2020-09-16T20:53:58.000Z
Tiny ImageNet Challenge/train_data.py
Vishal-V/Mastering-Tensorflow
83e18cf84dc5c391c5f902978ee5a80e1be4a31d
[ "MIT" ]
null
null
null
Tiny ImageNet Challenge/train_data.py
Vishal-V/Mastering-Tensorflow
83e18cf84dc5c391c5f902978ee5a80e1be4a31d
[ "MIT" ]
4
2020-03-30T16:11:41.000Z
2020-09-15T20:28:27.000Z
# Iterate over epochs. for epoch in range(3): print(f'Epoch {epoch+1}') # Iterate over the batches of the dataset. for step, x_batch_train in enumerate(train_data): with tf.GradientTape() as tape: reconstructed = autoencoder(x_batch_train) # Compute reconstruction loss loss = mse_loss(x_b...
35.210526
74
0.707025
88
669
5.227273
0.579545
0.03913
0.071739
0
0
0
0
0
0
0
0
0.01107
0.189836
669
19
75
35.210526
0.837638
0
0
0
0
0
0.120623
0.042802
0
0
0
0
0
0
null
null
0
0
null
null
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
32f92084cffe12b7f31fc3604eb9852e4502b8d7
1,422
py
Python
utils/generate_topics.py
ahoho/scholar
fe1b7ba590563e245e7765d100cfff091ba20c54
[ "Apache-2.0" ]
null
null
null
utils/generate_topics.py
ahoho/scholar
fe1b7ba590563e245e7765d100cfff091ba20c54
[ "Apache-2.0" ]
null
null
null
utils/generate_topics.py
ahoho/scholar
fe1b7ba590563e245e7765d100cfff091ba20c54
[ "Apache-2.0" ]
null
null
null
################################################################ # Generate top-N words for topics, one per line, to stdout ################################################################ import os import sys import argparse import numpy as np import file_handling as fh def get_top_n_topic_words(beta, vocab, n=30): ...
25.392857
70
0.563291
182
1,422
4.203297
0.417582
0.039216
0.023529
0.031373
0.120261
0.070588
0.070588
0.070588
0
0
0
0.004655
0.244726
1,422
55
71
25.854545
0.707635
0.083685
0
0
1
0
0.095197
0
0
0
0
0
0
1
0.054054
false
0
0.135135
0
0.216216
0.027027
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
fd009473c74aa4ae5995e6b6bc84914f1edd33ca
2,215
py
Python
netbox/dcim/migrations/0100_application.py
fireman0865/PingBox
0f00eaf88b88e9441fffd5173a1501e56c13db03
[ "Apache-2.0" ]
1
2021-09-23T00:06:51.000Z
2021-09-23T00:06:51.000Z
netbox/dcim/migrations/0100_application.py
fireman0865/PingBox
0f00eaf88b88e9441fffd5173a1501e56c13db03
[ "Apache-2.0" ]
2
2021-06-08T21:05:10.000Z
2021-09-08T01:46:58.000Z
netbox/dcim/migrations/0100_application.py
fireman0865/PingBox
0f00eaf88b88e9441fffd5173a1501e56c13db03
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.10 on 2020-03-04 09:21 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('virtualization', '0013_deterministic_ordering'), ('dcim', '0099_powerfeed_negative_voltage'), ] operations...
55.375
219
0.628442
229
2,215
5.938865
0.344978
0.072794
0.132353
0.158824
0.431618
0.399265
0.399265
0.269118
0.269118
0.139706
0
0.031377
0.223025
2,215
39
220
56.794872
0.758861
0.020767
0
0
1
0
0.211352
0.060452
0
0
0
0
0
1
0
false
0
0.060606
0
0.151515
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
fd00db8ee275e84aadc9a08c115a590eab1c8a65
1,934
py
Python
pam_notify.py
aNNufriy/pamNotifier
088ec0cb87c026a0fbc8e6275fc891bf653af645
[ "MIT" ]
1
2020-03-21T21:37:57.000Z
2020-03-21T21:37:57.000Z
pam_notify.py
aNNufriy/pamNotifier
088ec0cb87c026a0fbc8e6275fc891bf653af645
[ "MIT" ]
null
null
null
pam_notify.py
aNNufriy/pamNotifier
088ec0cb87c026a0fbc8e6275fc891bf653af645
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import smtplib import time import syslog import telegram import yaml from email.MIMEMultipart import MIMEMultipart from email.MIMEText import MIMEText # Author:: Alexander Schedrov (schedrow@gmail.com) # Copyright:: Copyright (c) 2019 Alexander Schedrov # License:: MIT def ...
33.344828
97
0.635471
247
1,934
4.842105
0.445344
0.045987
0.032609
0.033445
0
0
0
0
0
0
0
0.006012
0.225957
1,934
57
98
33.929825
0.792919
0.068769
0
0.047619
0
0
0.104619
0
0
0
0
0
0
0
null
null
0.02381
0.214286
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
fd077dfb9ba449d6f886f45f49324f828fa9d71b
827
py
Python
src/run_hid_4_network2.py
Naresh1318/Effect_of_injected_noise_in_deep_NN
0d001ea2c4d33011204247cb4c066b0da6632c04
[ "Unlicense" ]
2
2016-09-11T08:47:29.000Z
2016-11-19T10:29:47.000Z
src/run_hid_4_network2.py
Naresh1318/Effect_of_injected_noise_in_deep_NN
0d001ea2c4d33011204247cb4c066b0da6632c04
[ "Unlicense" ]
null
null
null
src/run_hid_4_network2.py
Naresh1318/Effect_of_injected_noise_in_deep_NN
0d001ea2c4d33011204247cb4c066b0da6632c04
[ "Unlicense" ]
null
null
null
import mnist_loader import network2 import numpy as np training_data, validation_data, test_data = mnist_loader.load_data_wrapper() eta = 0.9 m_b_s = 10 epochs = 30 trials = 10 trial_ev = [] for t in xrange(trials): net = network2.Network([784, 50, 50, 50, 50, 10], cost=network2.CrossEntropyCost) net.defaul...
33.08
131
0.732769
128
827
4.507813
0.4375
0.048527
0.041594
0.103986
0.142114
0.142114
0.142114
0
0
0
0
0.046283
0.137848
827
25
132
33.08
0.762973
0
0
0
0
0
0.172705
0
0
0
0
0
0
0
null
null
0
0.15
null
null
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fd08718d6dac06e0024584cff9f9907168ac0518
1,918
py
Python
wsm/backend/asyncwhois/base.py
Rayologist/windows-sshd-manager
4f78a0cdaa12fe3c2a785aca31066c3be886878b
[ "Apache-2.0" ]
9
2022-02-09T09:09:43.000Z
2022-02-09T09:10:06.000Z
wsm/backend/asyncwhois/base.py
Rayologist/windows-sshd-manager
4f78a0cdaa12fe3c2a785aca31066c3be886878b
[ "Apache-2.0" ]
null
null
null
wsm/backend/asyncwhois/base.py
Rayologist/windows-sshd-manager
4f78a0cdaa12fe3c2a785aca31066c3be886878b
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from typing import List, Any from ipaddress import IPv4Address from dataclasses import dataclass, FrozenInstanceError from types import SimpleNamespace from enum import Enum, auto class Kind(Enum): CREATE_WHOIS = auto() GET_WHOIS = auto() GET_WHOIS_BY_IP = auto() GE...
22.302326
77
0.688738
200
1,918
6.34
0.335
0.113565
0.086751
0.066246
0.20347
0.146688
0.146688
0.146688
0
0
0
0.002019
0.225235
1,918
85
78
22.564706
0.851279
0
0
0.393443
0
0
0.019812
0
0
0
0
0
0
1
0.114754
false
0.04918
0.098361
0
0.508197
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fd139df441393f7003990ec4900a0d7e845e7545
3,994
py
Python
MsSampleFmpDevicePkg/Tools/ConvertCerToH.py
kuqin12/mu_plus
f78c66d0508a7b884b3f73d7c86648656bf07fbb
[ "BSD-2-Clause" ]
null
null
null
MsSampleFmpDevicePkg/Tools/ConvertCerToH.py
kuqin12/mu_plus
f78c66d0508a7b884b3f73d7c86648656bf07fbb
[ "BSD-2-Clause" ]
null
null
null
MsSampleFmpDevicePkg/Tools/ConvertCerToH.py
kuqin12/mu_plus
f78c66d0508a7b884b3f73d7c86648656bf07fbb
[ "BSD-2-Clause" ]
null
null
null
## # Copyright (c) 2016, Microsoft Corporation # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions...
33.847458
107
0.73986
550
3,994
5.347273
0.365455
0.091806
0.065284
0.028902
0.307718
0.234274
0.15913
0.15913
0.15913
0.086365
0
0.007032
0.145468
3,994
117
108
34.136752
0.854673
0.409614
0
0.307692
0
0
0.492395
0.196871
0
0
0
0
0
0
null
null
0
0.038462
null
null
0.192308
0
0
0
null
0
0
0
0
0
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
fd16505a157e42c0095152f4d85cf3c6e225daa0
2,899
py
Python
webtraversallibrary/app_info.py
redfungus/webtraversallibrary
d5013edc061deba40e859dcfcda314c7055ce82a
[ "Apache-2.0" ]
null
null
null
webtraversallibrary/app_info.py
redfungus/webtraversallibrary
d5013edc061deba40e859dcfcda314c7055ce82a
[ "Apache-2.0" ]
null
null
null
webtraversallibrary/app_info.py
redfungus/webtraversallibrary
d5013edc061deba40e859dcfcda314c7055ce82a
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
32.573034
111
0.67506
387
2,899
5.01292
0.436693
0.041237
0.021649
0.016495
0.189691
0.189691
0.189691
0.139175
0.069072
0.069072
0
0.003182
0.241118
2,899
88
112
32.943182
0.878636
0.570887
0
0.457143
0
0
0.105353
0
0
0
0
0
0
1
0.057143
false
0.114286
0.057143
0
0.314286
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
fd166522613f70d68340ce87a9e8c0bff5f78c6b
4,863
py
Python
aws_reporting.py
jeberhar/DevOpsLearner
f9dce9cf2dc6e75494c1372a339e9f13e836102d
[ "MIT" ]
null
null
null
aws_reporting.py
jeberhar/DevOpsLearner
f9dce9cf2dc6e75494c1372a339e9f13e836102d
[ "MIT" ]
null
null
null
aws_reporting.py
jeberhar/DevOpsLearner
f9dce9cf2dc6e75494c1372a339e9f13e836102d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import boto import boto.ec2 import sys from boto.ec2.connection import EC2Connection import pprint account_string = "YOUR_ACCOUNT_STRING" #change this for each AWS account class ansi_color: #unused class due to CSV file limitations red = '\033[31m' green = '\033[32m' re...
37.122137
267
0.584002
606
4,863
4.556106
0.272277
0.043463
0.014488
0.017385
0.123144
0.049258
0.030424
0.030424
0.030424
0.030424
0
0.012234
0.294057
4,863
130
268
37.407692
0.792019
0.215299
0
0.103448
0
0.011494
0.182566
0.014254
0
0
0
0
0
0
null
null
0.011494
0.057471
null
null
0.103448
0
0
0
null
0
0
0
0
0
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
fd1683f2abe7dd47f1cee08ed7abab26a488dbc0
1,832
py
Python
code/functions/one_hop_majority_vote.py
YatongChen/decoupled_smoothing_on_graph
b5110db92841c00193577adb0f5d3daa70f46845
[ "MIT" ]
5
2019-02-25T20:05:47.000Z
2021-06-23T21:38:52.000Z
code/functions/one_hop_majority_vote.py
YatongChen/decoupled_smoothing_on_graphs
b5110db92841c00193577adb0f5d3daa70f46845
[ "MIT" ]
null
null
null
code/functions/one_hop_majority_vote.py
YatongChen/decoupled_smoothing_on_graphs
b5110db92841c00193577adb0f5d3daa70f46845
[ "MIT" ]
null
null
null
# one hop helper function def one_hop_majority_vote(G, gender_y_update,train_index, test_index): A = np.array(nx.adjacency_matrix(G).todense()) D = np.diag(np.sum(A, axis=1)) d = np.diag(D) theta = [None]*len(gender_y_update) accuracy_score_benchmark = np.sum(gender_y_update[train_index])/len(train...
50.888889
231
0.69869
274
1,832
4.29927
0.248175
0.091681
0.110357
0.175722
0.421053
0.340407
0.340407
0.312394
0.312394
0.312394
0
0.009849
0.168668
1,832
36
232
50.888889
0.763624
0.026201
0
0
0
0
0.010112
0
0
0
0
0
0
1
0.035714
false
0
0
0
0.035714
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fd16ab23714a63a2de7b1edeefc67fc983b65d54
835
py
Python
SRCTF/SRCTF/django_reuse/reuse/migrations/0002_auto_20160829_1452.py
yinyueacm/work-uga
d8fd104b8c5600e1715491fc5eeffaf5c0b5896c
[ "MIT" ]
1
2019-01-11T03:20:34.000Z
2019-01-11T03:20:34.000Z
SRCTF/SRCTF/django_reuse/reuse/migrations/0002_auto_20160829_1452.py
yinyueacm/yinyue-thesis
d8fd104b8c5600e1715491fc5eeffaf5c0b5896c
[ "MIT" ]
null
null
null
SRCTF/SRCTF/django_reuse/reuse/migrations/0002_auto_20160829_1452.py
yinyueacm/yinyue-thesis
d8fd104b8c5600e1715491fc5eeffaf5c0b5896c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-08-29 14:52 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('reuse', '0001_initial'), ] operations = [ m...
28.793103
118
0.602395
91
835
5.373626
0.67033
0.04908
0.05726
0.08998
0
0
0
0
0
0
0
0.045603
0.264671
835
28
119
29.821429
0.750814
0.08024
0
0.095238
1
0
0.086275
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fd17609bb6160f46ba3a4f3809db927e0e55536c
5,976
py
Python
complexity_science/ca/ca/ca1d.py
KristerJazz/complexity-science
2340b7467d50c45d06fa93db7603f7f2778d3c4c
[ "BSD-3-Clause" ]
null
null
null
complexity_science/ca/ca/ca1d.py
KristerJazz/complexity-science
2340b7467d50c45d06fa93db7603f7f2778d3c4c
[ "BSD-3-Clause" ]
2
2021-03-28T16:23:00.000Z
2021-04-05T08:10:35.000Z
complexity_science/ca/ca/ca1d.py
KristerJazz/complexity-science
2340b7467d50c45d06fa93db7603f7f2778d3c4c
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from .rule_manager import RuleManager class CA1D(): def __init__(self, N): """ Creates an uninitialized 1D cellular automata object with length N ------------- Parameters: N = number of cells n1 : left neigh...
29.15122
138
0.54836
665
5,976
4.809023
0.222556
0.036585
0.0197
0.034397
0.372733
0.341463
0.276423
0.230144
0.199187
0.185428
0
0.009686
0.343541
5,976
204
139
29.294118
0.805506
0.378681
0
0.263889
0
0.013889
0.116793
0
0
0
0
0
0.013889
1
0.236111
false
0.013889
0.041667
0
0.361111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
fd19e6853abb785c9505d8a5f4aaf9326f1ad438
374
py
Python
lstmcpipe/config/__init__.py
cta-observatory/lst-i-rf
7a634e0b3b07dda2b20df47875d97616eab65821
[ "MIT" ]
2
2021-02-01T17:30:46.000Z
2021-02-22T13:59:49.000Z
lstmcpipe/config/__init__.py
cta-observatory/lst-i-rf
7a634e0b3b07dda2b20df47875d97616eab65821
[ "MIT" ]
106
2021-04-16T21:15:20.000Z
2022-03-31T23:02:50.000Z
lstmcpipe/config/__init__.py
cta-observatory/lstmcpipe
7a634e0b3b07dda2b20df47875d97616eab65821
[ "MIT" ]
3
2022-03-02T09:23:09.000Z
2022-03-03T16:00:25.000Z
import os from shutil import which from .pipeline_config import load_config __all__ = ["load_config"] def export_env(outdir="."): if which("conda") is not None: os.system((f"conda env export > {os.path.join(outdir, 'conda_env.yml')}")) elif which("pip") is not None: os.system(f"python -m pip ...
28.769231
87
0.671123
57
374
4.245614
0.526316
0.082645
0.07438
0.090909
0.14876
0.14876
0
0
0
0
0
0
0.173797
374
12
88
31.166667
0.783172
0
0
0
0
0
0.382353
0.112299
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fd1f6bede9086f03b21d05de1c334c5625e057f0
658
py
Python
aeroplast/images.py
kk6/aeroplast
8347bf071f43a560b865a7f37b76fb05f5cea57d
[ "MIT" ]
1
2019-11-12T07:02:20.000Z
2019-11-12T07:02:20.000Z
aeroplast/images.py
kk6/aeroplast
8347bf071f43a560b865a7f37b76fb05f5cea57d
[ "MIT" ]
14
2018-11-13T09:57:09.000Z
2019-04-05T20:02:46.000Z
aeroplast/images.py
kk6/aeroplast
8347bf071f43a560b865a7f37b76fb05f5cea57d
[ "MIT" ]
1
2018-12-20T07:52:59.000Z
2018-12-20T07:52:59.000Z
# -*- coding: utf-8 -*- """ Transparent PNG conversion ~~~~~~~~~~~~~~~~~~~~~~~~~~ """ from PIL import Image def get_new_size(original_size): """ Returns each width and height plus 2px. :param original_size: Original image's size :return: Width / height after calculation :rtype: tuple """ ...
18.8
50
0.617021
84
658
4.761905
0.511905
0.09
0
0
0
0
0
0
0
0
0
0.005952
0.234043
658
34
51
19.352941
0.787698
0.601824
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
fd2a6afac5326ae943f8dfecdd01a780b28ea0e3
5,888
py
Python
scripts/mv_drawables.py
euitam/MoveDrawable
33923276d856de8effff9e958ba7a33767739137
[ "Apache-2.0" ]
null
null
null
scripts/mv_drawables.py
euitam/MoveDrawable
33923276d856de8effff9e958ba7a33767739137
[ "Apache-2.0" ]
null
null
null
scripts/mv_drawables.py
euitam/MoveDrawable
33923276d856de8effff9e958ba7a33767739137
[ "Apache-2.0" ]
null
null
null
import sys, os, errno, shutil, signal, subprocess from glob import glob class bcolors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLINE = '\033[4m' def printTitle(): print bcolors.WARNING print " _ _...
28.038095
160
0.667969
745
5,888
5.091275
0.253691
0.030055
0.035592
0.03691
0.172423
0.172423
0.137358
0.130767
0.089639
0.076457
0
0.01411
0.169497
5,888
209
161
28.172249
0.761554
0.040421
0
0.160494
0
0.030864
0.198829
0.004789
0
0
0
0
0
0
null
null
0
0.012346
null
null
0.209877
0
0
0
null
0
0
0
0
0
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
fd37bfae595f1bdb3cabeb62c9beddb408f90236
315
py
Python
tests/conftest.py
calpt/flask-filealchemy
b3575299f0230d5a64865af8066122c2e0c485ec
[ "MIT" ]
16
2018-10-16T03:32:39.000Z
2020-09-04T02:05:37.000Z
tests/conftest.py
calpt/flask-filealchemy
b3575299f0230d5a64865af8066122c2e0c485ec
[ "MIT" ]
8
2019-02-25T10:59:15.000Z
2019-03-11T08:36:57.000Z
tests/conftest.py
calpt/flask-filealchemy
b3575299f0230d5a64865af8066122c2e0c485ec
[ "MIT" ]
3
2019-11-22T23:46:16.000Z
2020-06-05T19:17:23.000Z
from flask import Flask from flask_sqlalchemy import SQLAlchemy import pytest @pytest.fixture def app(): return Flask(__name__) @pytest.fixture def db(app): app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///:memory:' app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False return SQLAlchemy(app)
18.529412
64
0.742857
39
315
5.769231
0.487179
0.08
0.142222
0
0
0
0
0
0
0
0
0
0.149206
315
16
65
19.6875
0.839552
0
0
0.181818
0
0
0.225397
0.168254
0
0
0
0
0
1
0.181818
false
0
0.272727
0.090909
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fd3cb5b3e208b581d3cf014077d7e88f0727e79e
3,465
py
Python
books/models.py
MattRijk/finance-ebook-site
c564d4bc9578f0a6f47efa53f0c81893fbee08f7
[ "MIT" ]
1
2020-05-16T12:48:02.000Z
2020-05-16T12:48:02.000Z
books/models.py
MattRijk/finance-ebook-site
c564d4bc9578f0a6f47efa53f0c81893fbee08f7
[ "MIT" ]
null
null
null
books/models.py
MattRijk/finance-ebook-site
c564d4bc9578f0a6f47efa53f0c81893fbee08f7
[ "MIT" ]
3
2017-12-06T11:18:10.000Z
2020-05-16T12:49:32.000Z
from django.db import models from django.core.urlresolvers import reverse from django.utils import timezone from django.utils.text import slugify class Author(models.Model): name = models.CharField(max_length=50, unique=False) slug = models.SlugField(max_length=200, blank=True, unique=False) def ...
33
72
0.610967
396
3,465
5.227273
0.20202
0.06087
0.078261
0.104348
0.58599
0.500483
0.435749
0.363285
0.363285
0.363285
0
0.01354
0.275325
3,465
104
73
33.317308
0.810832
0.012987
0
0.466667
0
0
0.036858
0
0
0
0
0
0
1
0.146667
false
0
0.053333
0.08
0.706667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fd3e69529a275a604f79403141c9d3a32f7b625b
341
py
Python
bucketlist_django/bucketlist_django/settings/development.py
andela-tadesanya/django-bucketlist-application
315ceb77e635fe051b5600ada460af938c140af1
[ "MIT" ]
null
null
null
bucketlist_django/bucketlist_django/settings/development.py
andela-tadesanya/django-bucketlist-application
315ceb77e635fe051b5600ada460af938c140af1
[ "MIT" ]
null
null
null
bucketlist_django/bucketlist_django/settings/development.py
andela-tadesanya/django-bucketlist-application
315ceb77e635fe051b5600ada460af938c140af1
[ "MIT" ]
null
null
null
# load defaults and override with devlopment settings from defaults import * DEBUG = True WSGI_APPLICATION = 'bucketlist_django.wsgi.application' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'bucketlist', 'USER': 'bucketlist', 'PASSWORD': ...
21.3125
59
0.653959
32
341
6.875
0.78125
0.136364
0
0
0
0
0
0
0
0
0
0.003774
0.222874
341
15
60
22.733333
0.826415
0.14956
0
0
0
0
0.454861
0.25
0
0
0
0
0
1
0
false
0.090909
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fd4aa50f6950d8285cebb403be0898f64adbb857
2,495
py
Python
gleague/gleague/frontend/seasons.py
Nuqlear/genkstaleague
664ed1d3ebea9c43053546fc2d658083cc16526b
[ "MIT" ]
7
2015-08-18T01:21:48.000Z
2021-04-30T03:10:38.000Z
gleague/gleague/frontend/seasons.py
Nuqlear/genkstaleague
664ed1d3ebea9c43053546fc2d658083cc16526b
[ "MIT" ]
1
2019-04-28T10:02:39.000Z
2019-05-06T08:11:56.000Z
gleague/gleague/frontend/seasons.py
Nuqlear/genkstaleague
664ed1d3ebea9c43053546fc2d658083cc16526b
[ "MIT" ]
3
2015-08-14T09:42:25.000Z
2018-11-08T07:07:58.000Z
from flask import Blueprint from flask import abort from flask import render_template from flask import request from flask import current_app from sqlalchemy import desc from gleague.core import db from gleague.models import Match from gleague.models import Season from gleague.models import SeasonStats from gleague.mo...
34.652778
83
0.710621
336
2,495
5.044643
0.199405
0.226549
0.049558
0.042478
0.362242
0.317994
0.317994
0.299115
0.230089
0.230089
0
0.005263
0.162325
2,495
71
84
35.140845
0.805742
0
0
0.15
0
0
0.110621
0.033267
0
0
0
0
0
1
0.066667
false
0
0.183333
0
0.316667
0.033333
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
fd5213aa3c0233313738c5ac6fd68800d2601767
459
py
Python
asal.py
kedigucuk01/asal-sayi-bulucu
dffc81cec5c4bbd6b4423d8991a5559a79f26f92
[ "MIT" ]
2
2021-06-10T16:27:42.000Z
2021-06-11T10:54:24.000Z
asal.py
kedigucuk01/asal-sayi-bulucu
dffc81cec5c4bbd6b4423d8991a5559a79f26f92
[ "MIT" ]
1
2021-06-15T11:08:58.000Z
2021-08-10T20:23:11.000Z
asal.py
kedigucuk01/asal-sayi-bulucu
dffc81cec5c4bbd6b4423d8991a5559a79f26f92
[ "MIT" ]
null
null
null
while True: try: i = int(input("Sayı giriniz: ")) # 2 except ValueError: print("Hata Kodu: 5786, \nAçıklama: Lütfen bir \"tam sayı\" giriniz.") else: for s in range(2, i, 1): if i%s == 0: print(f"{i} sayısı, asal değildir.") break else: if s == i - 1: print(f"{i} sayısı, as...
20.863636
73
0.542484
71
459
3.507042
0.478873
0.096386
0.11245
0.208835
0.433735
0.433735
0.301205
0
0
0
0
0.033742
0.28976
459
21
74
21.857143
0.730061
0.002179
0
0.352941
0
0
0.4
0
0
0
0
0
0
1
0
false
0
0
0
0
0.294118
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
fd651bee99ddf05837b752023ba0b7975d179d63
660
py
Python
src/featurehub/problems/__init__.py
vishalbelsare/FeatureHub
dca517338b6e1359faa47ba309f05691cb96e8f8
[ "MIT" ]
85
2017-09-11T22:37:34.000Z
2022-02-26T09:07:05.000Z
src/featurehub/problems/__init__.py
HDI-Project/FeatureFactory
dca517338b6e1359faa47ba309f05691cb96e8f8
[ "MIT" ]
5
2018-08-08T15:34:36.000Z
2018-11-15T04:52:10.000Z
src/featurehub/problems/__init__.py
HDI-Project/FeatureFactory
dca517338b6e1359faa47ba309f05691cb96e8f8
[ "MIT" ]
18
2017-11-01T04:14:16.000Z
2021-09-27T00:53:32.000Z
import imp import sys from sqlalchemy.exc import ProgrammingError from featurehub.user.session import Session from featurehub.admin.admin import Commands try: for _problem in Commands().get_problems(): # Create a session for each problem and make it importable _commands = Session(_problem) ...
33
71
0.725758
74
660
6.27027
0.567568
0.084052
0
0
0
0
0
0
0
0
0
0
0.201515
660
19
72
34.736842
0.880455
0.084848
0
0
0
0
0.229236
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b5bab08cb20bbb7d8d1adf2e537dc3cd96869fbf
2,830
py
Python
rcommander/src/rcommander/trigger_tool.py
rummanwaqar/rcommander-core
7106d5868db76c47dea6ad11118a54351a8bd390
[ "BSD-3-Clause" ]
4
2015-04-08T09:57:43.000Z
2021-08-12T01:44:37.000Z
rcommander/src/rcommander/trigger_tool.py
jhu-lcsr-forks/rcommander-core
1a0350e9b93687eff6a4407f72b5250be5f56919
[ "BSD-3-Clause" ]
1
2015-03-12T09:10:27.000Z
2015-03-12T09:10:27.000Z
rcommander/src/rcommander/trigger_tool.py
jhu-lcsr-forks/rcommander-core
1a0350e9b93687eff6a4407f72b5250be5f56919
[ "BSD-3-Clause" ]
3
2015-03-12T10:59:17.000Z
2021-06-21T02:13:57.000Z
import tool_utils as tu import PyQt4.QtGui as qtg import PyQt4.QtCore as qtc from PyQt4.QtGui import * from PyQt4.QtCore import * import smach import rospy from msg import Trigger TRIGGER_TOPIC = 'trigger' class TriggerTool(tu.ToolBase): def __init__(self, rcommander): tu.ToolBase.__init__(self, rcomman...
29.479167
99
0.639929
358
2,830
4.815642
0.310056
0.085267
0.089327
0.064965
0.112529
0.066125
0.041763
0
0
0
0
0.006667
0.257951
2,830
95
100
29.789474
0.814286
0.064664
0
0.060606
0
0
0.049224
0
0
0
0
0
0
0
null
null
0.015152
0.121212
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
b5bbdd0d4bc19356fb3ff4442955d7c4c889b2e9
3,226
py
Python
app/airtable/base_school_db/educators_schools.py
WildflowerSchools/wf-airtable-api
963021e5108462d33efa222fedb00890e1788ad6
[ "MIT" ]
null
null
null
app/airtable/base_school_db/educators_schools.py
WildflowerSchools/wf-airtable-api
963021e5108462d33efa222fedb00890e1788ad6
[ "MIT" ]
null
null
null
app/airtable/base_school_db/educators_schools.py
WildflowerSchools/wf-airtable-api
963021e5108462d33efa222fedb00890e1788ad6
[ "MIT" ]
null
null
null
from datetime import date from typing import Optional, Union from pydantic import BaseModel, Field, validator from . import educators as educators_models from . import schools as schools_models from app.airtable.response import AirtableResponse from app.airtable.validators import get_first_or_default_none class Cr...
32.26
119
0.712027
344
3,226
6.430233
0.22093
0.049729
0.033906
0.045208
0.34132
0.20434
0.115732
0.115732
0.115732
0.115732
0
0
0.207688
3,226
99
120
32.585859
0.865415
0
0
0.25
0
0
0.044017
0
0
0
0
0
0
1
0.073529
false
0
0.132353
0
0.558824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
b5bd68a22d06b0793abe8bb8a40789d31dac7150
3,250
py
Python
cloudshell/cli/session/telnet_session.py
test-gh-org-workflow/probable-garbanzo
c6b8a0dbc573a2a0073b5ab7c8619c4d0baf7088
[ "Apache-2.0" ]
4
2017-01-31T14:05:19.000Z
2019-04-10T16:35:44.000Z
cloudshell/cli/session/telnet_session.py
test-gh-org-workflow/probable-garbanzo
c6b8a0dbc573a2a0073b5ab7c8619c4d0baf7088
[ "Apache-2.0" ]
89
2016-05-25T14:17:38.000Z
2022-03-17T13:09:59.000Z
cloudshell/cli/session/telnet_session.py
test-gh-org-workflow/probable-garbanzo
c6b8a0dbc573a2a0073b5ab7c8619c4d0baf7088
[ "Apache-2.0" ]
6
2016-07-21T12:24:10.000Z
2022-02-21T06:33:18.000Z
import socket import telnetlib from collections import OrderedDict from cloudshell.cli.session.connection_params import ConnectionParams from cloudshell.cli.session.expect_session import ExpectSession from cloudshell.cli.session.session_exceptions import ( SessionException, SessionReadEmptyData, SessionRea...
27.542373
88
0.614462
327
3,250
5.847095
0.324159
0.057531
0.029289
0.037657
0.042887
0.042887
0.042887
0
0
0
0
0.000869
0.291692
3,250
117
89
27.777778
0.829713
0.057231
0
0
0
0
0.031656
0.01033
0
0
0
0
0
1
0.095238
false
0.059524
0.071429
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b5c11f56555074149df0acc7544e0c995e6baf54
3,213
py
Python
gryphon/data_service/auditors/trades_volume_auditor.py
qiquanzhijia/gryphon
7bb2c646e638212bd1352feb1b5d21536a5b918d
[ "Apache-2.0" ]
1,109
2019-06-20T19:23:27.000Z
2022-03-20T14:03:43.000Z
gryphon/data_service/auditors/trades_volume_auditor.py
qiquanzhijia/gryphon
7bb2c646e638212bd1352feb1b5d21536a5b918d
[ "Apache-2.0" ]
63
2019-06-21T05:36:17.000Z
2021-05-26T21:08:15.000Z
gryphon/data_service/auditors/trades_volume_auditor.py
qiquanzhijia/gryphon
7bb2c646e638212bd1352feb1b5d21536a5b918d
[ "Apache-2.0" ]
181
2019-06-20T19:42:05.000Z
2022-03-21T13:05:13.000Z
# -*- coding: utf-8 -*- from datetime import timedelta from delorean import Delorean from sqlalchemy import and_ from twisted.internet import defer from twisted.internet import reactor from twisted.internet.defer import inlineCallbacks from twisted.internet.task import LoopingCall from twisted.python import log from ...
32.13
91
0.591659
342
3,213
5.385965
0.345029
0.052117
0.04126
0.043974
0.086862
0
0
0
0
0
0
0.005102
0.328976
3,213
99
92
32.454545
0.849258
0.011204
0
0.026667
0
0
0.034352
0
0
0
0
0.010101
0
1
0.053333
false
0.013333
0.16
0
0.24
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
b5c6fd5f851fb29a3b78c943cdd438c87f4e64cf
726
py
Python
Patterns_Custom_Row-Column_PYTHON.py
sukantadas194/Patters.Python
14e62b61defca2e1f192f6ac8b1484c0a9745cfb
[ "BSD-2-Clause" ]
null
null
null
Patterns_Custom_Row-Column_PYTHON.py
sukantadas194/Patters.Python
14e62b61defca2e1f192f6ac8b1484c0a9745cfb
[ "BSD-2-Clause" ]
null
null
null
Patterns_Custom_Row-Column_PYTHON.py
sukantadas194/Patters.Python
14e62b61defca2e1f192f6ac8b1484c0a9745cfb
[ "BSD-2-Clause" ]
null
null
null
#Print Custom Row-Column Patterns.. #e.g. '''@ @ @ @ # @ @ @ @ # @ @ @ @''' w = print("What do you want to print?") wa = str(input("Answer : ")) try: m1 = print("How many rows do you want to print?") n1 = int(input("Answer : ")) m2 = print("How many columns do you want to print?...
26.888889
61
0.506887
96
726
3.833333
0.520833
0.040761
0.07337
0.089674
0.130435
0
0
0
0
0
0
0.022495
0.326446
726
27
62
26.888889
0.730061
0.112948
0
0.210526
0
0
0.412724
0
0
0
0
0
0
1
0
false
0
0
0
0
0.578947
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
b5c737a61480861fc56685c1832b7805d5bbd65b
17,116
py
Python
app/cluegame.py
dabreese00/clue-solver
3b99778075882974459e1c75792e7d051b6fe20a
[ "MIT" ]
null
null
null
app/cluegame.py
dabreese00/clue-solver
3b99778075882974459e1c75792e7d051b6fe20a
[ "MIT" ]
null
null
null
app/cluegame.py
dabreese00/clue-solver
3b99778075882974459e1c75792e7d051b6fe20a
[ "MIT" ]
null
null
null
"""cluegame.py -- Classes to track Clue game events and make inferences The board game Clue is also known as Cluedo. This module contains classes that make it possible to record specific knowledge-generating events that a Clue player may observe during the course of a game (such as, for example, that Player A showed ...
37.535088
79
0.62649
2,182
17,116
4.767186
0.179193
0.009133
0.006729
0.010767
0.208133
0.152278
0.090463
0.055086
0.050856
0.042973
0
0.001426
0.303459
17,116
455
80
37.617582
0.871079
0.406579
0
0.094787
0
0
0.059327
0.002249
0
0
0
0
0
1
0.090047
false
0.118483
0.023697
0.004739
0.241706
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
b5cff4fdd46f8909e02bbf2707f338423530762f
691
py
Python
tests/test_metrics.py
tolmanam/python-nomad-alt
f93d3f6553cdb1ee16dadabd385208b5cc550024
[ "MIT" ]
null
null
null
tests/test_metrics.py
tolmanam/python-nomad-alt
f93d3f6553cdb1ee16dadabd385208b5cc550024
[ "MIT" ]
null
null
null
tests/test_metrics.py
tolmanam/python-nomad-alt
f93d3f6553cdb1ee16dadabd385208b5cc550024
[ "MIT" ]
null
null
null
from nomad_alt import Nomad import json import uuid from pprint import pformat import os import pytest import nomad_alt.exceptions import tests.common as common @pytest.fixture def nomad_setup(): n = Nomad(host=common.IP, port=common.NOMAD_PORT, ssl_verify=False, token=common.NOMAD_TOKEN) with open(common.EX...
24.678571
97
0.732272
108
691
4.564815
0.490741
0.05071
0.089249
0
0
0
0
0
0
0
0
0
0.182344
691
27
98
25.592593
0.872566
0
0
0
0
0
0.052098
0
0
0
0
0
0.26087
1
0.086957
false
0
0.347826
0
0.434783
0.043478
0
0
0
null
0
0
0
0
0
0
0
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
b5d20cd2d199da5465fadfa36c7ff94c0bda75f4
711
py
Python
djAidESILV/products/migrations/0002_auto_20200522_1921.py
Kulumbaf/AidESILV
04dad828048edffdd3662b24c415edce22fd3ea3
[ "MIT" ]
null
null
null
djAidESILV/products/migrations/0002_auto_20200522_1921.py
Kulumbaf/AidESILV
04dad828048edffdd3662b24c415edce22fd3ea3
[ "MIT" ]
null
null
null
djAidESILV/products/migrations/0002_auto_20200522_1921.py
Kulumbaf/AidESILV
04dad828048edffdd3662b24c415edce22fd3ea3
[ "MIT" ]
null
null
null
# Generated by Django 2.2.12 on 2020-05-22 19:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0001_initial'), ] operations = [ migrations.AddField( model_name='product', name='baby_product', ...
29.625
186
0.590717
73
711
5.657534
0.69863
0.087167
0.11138
0.130751
0.184019
0.184019
0
0
0
0
0
0.039623
0.254571
711
23
187
30.913043
0.739623
0.064698
0
0.352941
1
0
0.197587
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b5d34bad89b324ae2f55b466eea757d21d9ed3d6
363
py
Python
django_eveonline_connector/migrations/0018_remove_evetoken_primary.py
KryptedGaming/django-eveonline-connector
95fa146f4fcdf6bce84548b5cac1e5bf09cd72a0
[ "MIT" ]
3
2020-03-07T13:58:45.000Z
2021-02-06T20:16:50.000Z
django_eveonline_connector/migrations/0018_remove_evetoken_primary.py
KryptedGaming/django-eveonline-connector
95fa146f4fcdf6bce84548b5cac1e5bf09cd72a0
[ "MIT" ]
66
2019-12-17T20:54:22.000Z
2021-06-10T20:39:04.000Z
django_eveonline_connector/migrations/0018_remove_evetoken_primary.py
KryptedGaming/django-eveonline-connector
95fa146f4fcdf6bce84548b5cac1e5bf09cd72a0
[ "MIT" ]
2
2020-01-17T20:04:52.000Z
2021-07-11T22:11:42.000Z
# Generated by Django 2.2.10 on 2020-02-27 18:21 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('django_eveonline_connector', '0017_primaryevecharacterassociation'), ] operations = [ migrations.RemoveField( model_name='evetoken', ...
20.166667
78
0.630854
35
363
6.428571
0.8
0
0
0
0
0
0
0
0
0
0
0.075188
0.267218
363
17
79
21.352941
0.770677
0.126722
0
0
1
0
0.24127
0.193651
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
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
b5d8aec11bfc5cc12bac4a3e909d08cecced6658
6,260
py
Python
utils/depot.py
Nikronic/Optimized-MDVRP
92587bf4c110c7e6597cc3120dd0556a6e170ce2
[ "MIT" ]
16
2019-09-08T13:04:10.000Z
2022-03-04T06:52:34.000Z
utils/depot.py
zhangruijuan/Optimized-MDVRP
92587bf4c110c7e6597cc3120dd0556a6e170ce2
[ "MIT" ]
6
2019-09-19T20:38:19.000Z
2019-10-14T17:35:54.000Z
utils/depot.py
Nikronic/Optimized-MDVRP
92587bf4c110c7e6597cc3120dd0556a6e170ce2
[ "MIT" ]
4
2021-01-15T11:45:16.000Z
2021-12-18T14:14:54.000Z
import numpy as np from typing import List from copy import deepcopy from utils.customer import Customer class Depot: """ Depot class represents a list of nodes assigned to this depot which we call a route. This class is going to be filled by `Customers` class. """ def __init__(self, id, x, y, c...
35.367232
118
0.585304
751
6,260
4.772304
0.18775
0.089844
0.080357
0.064174
0.255859
0.16769
0.16769
0.138393
0.114397
0.088728
0
0.000459
0.303834
6,260
176
119
35.568182
0.821937
0.353035
0
0.121622
0
0
0.062409
0.026705
0
0
0
0
0
1
0.202703
false
0
0.054054
0
0.445946
0.121622
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b5e3ba2877ce6a63efd56ee6ed3e28f80e3fe47d
1,096
py
Python
fixture/soap.py
DiastroniX/python_training_mantis
86f145285bea716246788d7967e1de7c23661bae
[ "Apache-2.0" ]
null
null
null
fixture/soap.py
DiastroniX/python_training_mantis
86f145285bea716246788d7967e1de7c23661bae
[ "Apache-2.0" ]
null
null
null
fixture/soap.py
DiastroniX/python_training_mantis
86f145285bea716246788d7967e1de7c23661bae
[ "Apache-2.0" ]
null
null
null
from suds.client import Client from suds import WebFault from model.project import Project class SoapHelper: def __init__(self, app): self.app = app def can_login(self, username, password): client = Client("http://localhost/mantisbt-1.2.20/api/soap/mantisconnect.php?wsdl") try: ...
34.25
117
0.588504
123
1,096
5.121951
0.406504
0.044444
0.07619
0.079365
0.203175
0.203175
0.203175
0.203175
0.203175
0.203175
0
0.010638
0.313869
1,096
32
118
34.25
0.827128
0
0
0.307692
0
0.076923
0.145852
0
0
0
0
0
0
1
0.115385
false
0.115385
0.115385
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b5f1bcd8c2a8c9268b813650480c225371c73233
7,401
py
Python
kubevirt/models/v1_generation_status.py
ansijain/client-python
444ab92a68371c1ccd89314753fa7ab5c4ac9bbe
[ "Apache-2.0" ]
21
2018-02-21T23:59:28.000Z
2021-12-08T05:47:37.000Z
kubevirt/models/v1_generation_status.py
ansijain/client-python
444ab92a68371c1ccd89314753fa7ab5c4ac9bbe
[ "Apache-2.0" ]
47
2018-02-01T15:35:01.000Z
2022-02-11T07:45:54.000Z
kubevirt/models/v1_generation_status.py
ansijain/client-python
444ab92a68371c1ccd89314753fa7ab5c4ac9bbe
[ "Apache-2.0" ]
19
2018-04-03T09:20:52.000Z
2021-06-01T06:07:28.000Z
# coding: utf-8 """ KubeVirt API This is KubeVirt API an add-on for Kubernetes. OpenAPI spec version: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class V1Genera...
27.411111
125
0.580327
826
7,401
5.105327
0.16707
0.034148
0.13659
0.024662
0.49751
0.44036
0.380839
0.293337
0.26986
0.26986
0
0.006946
0.338603
7,401
269
126
27.513011
0.854545
0.361573
0
0.073395
1
0
0.098356
0
0
0
0
0
0
1
0.165138
false
0
0.027523
0
0.330275
0.009174
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
b5f7ed8a0664870db210f6051f62a7c08134ae57
9,357
py
Python
tumblrlikes.py
cesarmiquel/Tumblr-Likes
3a96e979dbb420553535dd73320f3e7206bcbbfc
[ "MIT" ]
1
2017-03-09T23:47:19.000Z
2017-03-09T23:47:19.000Z
tumblrlikes.py
cesarmiquel/Tumblr-Likes
3a96e979dbb420553535dd73320f3e7206bcbbfc
[ "MIT" ]
null
null
null
tumblrlikes.py
cesarmiquel/Tumblr-Likes
3a96e979dbb420553535dd73320f3e7206bcbbfc
[ "MIT" ]
null
null
null
import os import urllib import json import pprint from google.appengine.api import users from google.appengine.ext import ndb from google.appengine.api import urlfetch import jinja2 import webapp2 JINJA_ENVIRONMENT = jinja2.Environment( loader = jinja2.FileSystemLoader(os.path.dirname(__file__) + '/templates'),...
36.267442
167
0.578284
1,071
9,357
4.900093
0.157796
0.0625
0.026677
0.029726
0.456555
0.392149
0.313834
0.276105
0.248666
0.240473
0
0.008027
0.294325
9,357
257
168
36.40856
0.786764
0.053222
0
0.247368
0
0.015789
0.114079
0.002377
0
0
0
0
0
0
null
null
0
0.047368
null
null
0.010526
0
0
0
null
0
0
0
0
0
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
bd04f09ba2aeaba23212f09a5a18c36cfe707aa2
1,104
py
Python
solutions/LeetCode/Python3/1049.py
timxor/leetcode-journal
5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a
[ "MIT" ]
854
2018-11-09T08:06:16.000Z
2022-03-31T06:05:53.000Z
solutions/LeetCode/Python3/1049.py
timxor/leetcode-journal
5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a
[ "MIT" ]
29
2019-06-02T05:02:25.000Z
2021-11-15T04:09:37.000Z
solutions/LeetCode/Python3/1049.py
timxor/leetcode-journal
5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a
[ "MIT" ]
347
2018-12-23T01:57:37.000Z
2022-03-12T14:51:21.000Z
__________________________________________________________________________________________________ sample 32 ms submission class Solution: def lastStoneWeightII(self, stones: List[int]) -> int: total = sum(stones) sums = {0} for s in stones: sums |= {s + i for i in sums} ...
39.428571
104
0.673007
124
1,104
3.596774
0.282258
0.044843
0.067265
0.06278
0.5
0.401345
0.401345
0.29148
0.29148
0.29148
0
0.015758
0.252717
1,104
28
105
39.428571
0.524848
0
0
0.37037
0
0
0
0
0
0
0
0
0
0
null
null
0
0
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
bd0a67b7badc84d9a3a79ed71754a0226bee9e55
844
py
Python
moistmaster/analytics/migrations/0001_initial.py
benjohnsonnlp/robosquirt
f96c58421532f9b956cec2277b7978022c7c1d80
[ "BSD-3-Clause" ]
null
null
null
moistmaster/analytics/migrations/0001_initial.py
benjohnsonnlp/robosquirt
f96c58421532f9b956cec2277b7978022c7c1d80
[ "BSD-3-Clause" ]
7
2020-02-12T00:56:32.000Z
2022-02-10T09:57:40.000Z
moistmaster/analytics/migrations/0001_initial.py
benjohnsonnlp/robosquirt
f96c58421532f9b956cec2277b7978022c7c1d80
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.0.6 on 2019-07-10 03:56 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='WateringSession', fields=[ ('identifier', m...
28.133333
99
0.535545
70
844
6.328571
0.714286
0.128668
0.117381
0
0
0
0
0
0
0
0
0.030195
0.332938
844
29
100
29.103448
0.756661
0.053318
0
0
1
0
0.14931
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bd0df2e5d3c7a33e0c8bc13d1922de1d4da4a323
3,706
py
Python
app_startup4/views.py
konjing/django_sme_award
840ed3685299c77be8516acf1e8a0123930dd63d
[ "MIT" ]
null
null
null
app_startup4/views.py
konjing/django_sme_award
840ed3685299c77be8516acf1e8a0123930dd63d
[ "MIT" ]
5
2021-03-19T02:32:48.000Z
2021-06-10T19:01:30.000Z
app_startup4/views.py
konjing/django_sme_award
840ed3685299c77be8516acf1e8a0123930dd63d
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.http import HttpResponse from django.contrib import messages from app_startup4.models import StartupCompetition def registerListView(request): """ จัดการข้อมูลและพิจารณา ผู้สมัครที่ส่งข้อมูลเข้ามา """ queryset = StartupCompetition.objects.filter(s...
40.282609
120
0.674582
574
3,706
4.461672
0.198606
0.035143
0.019524
0.023428
0.792269
0.706365
0.641937
0.641937
0.641937
0.498243
0
0.007311
0.188073
3,706
91
121
40.725275
0.80658
0.213168
0
0.403846
0
0
0.169509
0.090846
0
0
0
0
0
1
0.096154
false
0
0.076923
0
0.346154
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bd12efd43b17ceb7fdeb18d7ab015b7b17528841
4,770
py
Python
core/views.py
edwildson/djangosecommerce
22541d24af52cd6f2d51196116a101583389b945
[ "CC0-1.0" ]
1
2021-11-05T20:35:00.000Z
2021-11-05T20:35:00.000Z
core/views.py
edwildson/djangosecommerce
22541d24af52cd6f2d51196116a101583389b945
[ "CC0-1.0" ]
null
null
null
core/views.py
edwildson/djangosecommerce
22541d24af52cd6f2d51196116a101583389b945
[ "CC0-1.0" ]
null
null
null
# coding=utf-8 import functools import warnings from django.shortcuts import render from .forms import ContactForm from catalog.views import Product from django.views.generic import View, TemplateView, CreateView from django.contrib.auth import get_user_model from django.contrib import messages # Sobrecarga da classe...
32.896552
89
0.637945
503
4,770
5.831014
0.318091
0.047733
0.034777
0.02864
0.054893
0
0
0
0
0
0
0.001739
0.27652
4,770
144
90
33.125
0.84816
0.024528
0
0.077586
0
0
0.144737
0.039042
0
0
0
0
0
1
0.051724
false
0.094828
0.155172
0
0.293103
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
bd14aa72ec4ce2f35a4d3b6757b556fa6efbf5d2
2,636
py
Python
ESMF/src/addon/ESMPy/examples/mesh_locstream_regrid.py
joeylamcy/gchp
0e1676300fc91000ecb43539cabf1f342d718fb3
[ "NCSA", "Apache-2.0", "MIT" ]
1
2018-07-05T16:48:58.000Z
2018-07-05T16:48:58.000Z
ESMF/src/addon/ESMPy/examples/mesh_locstream_regrid.py
joeylamcy/gchp
0e1676300fc91000ecb43539cabf1f342d718fb3
[ "NCSA", "Apache-2.0", "MIT" ]
1
2022-03-04T16:12:02.000Z
2022-03-04T16:12:02.000Z
ESMF/src/addon/ESMPy/examples/mesh_locstream_regrid.py
joeylamcy/gchp
0e1676300fc91000ecb43539cabf1f342d718fb3
[ "NCSA", "Apache-2.0", "MIT" ]
null
null
null
# This example demonstrates how to regrid between a mesh and a locstream. import ESMF import numpy import ESMF.util.helpers as helpers import ESMF.api.constants as constants # This call enables debug logging # ESMF.Manager(debug=True) from ESMF.util.mesh_utilities import mesh_create_5, mesh_create_5_parallel from E...
35.621622
118
0.727238
368
2,636
5.081522
0.345109
0.025668
0.023529
0.02246
0.062032
0.045989
0.045989
0.045989
0.045989
0
0
0.026244
0.161609
2,636
73
119
36.109589
0.81991
0.215857
0
0.088889
0
0
0.076961
0
0
0
0
0.013699
0.022222
1
0
false
0
0.133333
0
0.133333
0.044444
0
0
0
null
0
0
0
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
bd1785dbb7815b9bfadbb18331b534590567b760
2,105
py
Python
Python Tutorial Django/pac/pac/main/views.py
PaulPan00/donkey_wrapper
a03cf0f42f65625fbce792b06c98acd153c5d6c8
[ "MIT" ]
6
2021-03-26T01:42:31.000Z
2021-04-11T16:17:42.000Z
Python Tutorial Django/pac/pac/main/views.py
packetsss/Python
a03cf0f42f65625fbce792b06c98acd153c5d6c8
[ "MIT" ]
null
null
null
Python Tutorial Django/pac/pac/main/views.py
packetsss/Python
a03cf0f42f65625fbce792b06c98acd153c5d6c8
[ "MIT" ]
7
2021-04-06T06:55:22.000Z
2021-05-03T11:26:38.000Z
# Create by Packetsss # Personal use is allowed # Commercial use is prohibited from django.shortcuts import render # Create your views here. from django.http import HttpResponse, HttpResponseRedirect from .models import ToDoList, Item from .forms import Create_list def index(response, id): lst = ToDoList.objects...
30.071429
74
0.56152
251
2,105
4.677291
0.322709
0.061329
0.102215
0.122658
0.148211
0.11414
0.059625
0.059625
0
0
0
0.003411
0.303563
2,105
70
75
30.071429
0.797408
0.195249
0
0.116279
0
0
0.079667
0
0
0
0
0.014286
0
1
0.093023
false
0.023256
0.093023
0.046512
0.325581
0.046512
0
0
0
null
0
0
0
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
bd1c3ef16239b0d584d630e4d1b4df484eba30ba
371
py
Python
wspay/migrations/0004_remove_wspayrequest_transactions.py
pinkdroids/django-wspay
19b52cb19539577c812e512062ffb239f2d89190
[ "MIT" ]
null
null
null
wspay/migrations/0004_remove_wspayrequest_transactions.py
pinkdroids/django-wspay
19b52cb19539577c812e512062ffb239f2d89190
[ "MIT" ]
null
null
null
wspay/migrations/0004_remove_wspayrequest_transactions.py
pinkdroids/django-wspay
19b52cb19539577c812e512062ffb239f2d89190
[ "MIT" ]
null
null
null
# Generated by Django 4.0.1 on 2022-01-20 15:12 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('wspay', '0003_rename_wspaytransaction_transactionhistory_and_more'), ] operations = [ migrations.RemoveField( model_name='wspayrequest',...
20.611111
78
0.638814
37
371
6.243243
0.864865
0
0
0
0
0
0
0
0
0
0
0.069343
0.261456
371
17
79
21.823529
0.773723
0.121294
0
0
1
0
0.262346
0.17284
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
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
bd2df4074244dd69e6875bd543777ca99a678244
2,437
py
Python
seoaudit/config.py
Guber/seoaudit
e38bc453629643f0282cdf9324e4f1db81f57f7f
[ "Apache-2.0" ]
7
2019-12-10T17:05:14.000Z
2020-11-10T10:10:45.000Z
seoaudit/config.py
Guber/seoaudit
e38bc453629643f0282cdf9324e4f1db81f57f7f
[ "Apache-2.0" ]
3
2020-10-23T09:19:19.000Z
2021-12-13T20:28:03.000Z
seoaudit/config.py
Guber/seoaudit
e38bc453629643f0282cdf9324e4f1db81f57f7f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from seoaudit.checks.element import ElementCheck from seoaudit.checks.page import PageCheck from seoaudit.checks.site import SiteCheck page_tests = [(PageCheck.TEXT_TO_CODE_RATIO, {"min_ratio": 0.1}), (PageCheck.DOM_SIZE, {"max_size": 1500}), [PageCheck.ELEMENTS_SIMILA...
50.770833
115
0.588839
267
2,437
5.224719
0.337079
0.103226
0.129032
0.122581
0.568459
0.415054
0.243728
0.193548
0.193548
0.107527
0
0.014
0.179319
2,437
47
116
51.851064
0.6835
0.045137
0
0.119048
0
0
0.444492
0.270224
0
0
0
0.021277
0
1
0
false
0
0.071429
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
bd2e2477ed8bfb390dc1b2799ff2c5a263416a72
3,822
py
Python
utils/certificate/tools.py
sr-gi/paysense
e896191b42c97009d56a23d54518569561064c42
[ "BSD-3-Clause" ]
2
2015-11-30T19:05:19.000Z
2017-02-04T08:31:59.000Z
utils/certificate/tools.py
sr-gi/paysense
e896191b42c97009d56a23d54518569561064c42
[ "BSD-3-Clause" ]
null
null
null
utils/certificate/tools.py
sr-gi/paysense
e896191b42c97009d56a23d54518569561064c42
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) <2015> <Sergi Delgado Segura> # Distributed under the BSD software license, see the accompanying file LICENSE from pyasn1.codec.der import encoder, decoder from pyasn1_modules.rfc2459 import Certificate from Crypto.PublicKey import RSA from M2Crypto import X509 from hashlib import sha256 from os import...
34.745455
176
0.715856
532
3,822
5.048872
0.340226
0.023455
0.015637
0.018615
0.026806
0.026806
0.026806
0
0
0
0
0.018218
0.210099
3,822
109
177
35.06422
0.871481
0.579016
0
0.105263
0
0
0.05212
0
0
0
0
0.018349
0
1
0.105263
false
0
0.184211
0
0.394737
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
bd32c31d868cb38b20ce13d60b0f31a73b04c464
309
py
Python
dad.py
1234borkowskip/WD151280
273d8a5b655e60eed1195125420462e1e11161cf
[ "MIT" ]
null
null
null
dad.py
1234borkowskip/WD151280
273d8a5b655e60eed1195125420462e1e11161cf
[ "MIT" ]
null
null
null
dad.py
1234borkowskip/WD151280
273d8a5b655e60eed1195125420462e1e11161cf
[ "MIT" ]
null
null
null
def cg(n, a1=1, q=2): n = n - 1 while n > 0: a1 = a1 * q n = n - 1 return a1 print("{} wyraz ciagu geometrycznego gdzie a1 = {}, q = {} wynosi {}".format(4, 1, 5, cg(4, 1, 5))) print("{} wyraz ciagu geometrycznego gdzie a1 = {}, q = {} wynosi {}".format(7, 1, 2, cg(7)))
30.9
100
0.482201
51
309
2.921569
0.392157
0.060403
0.040268
0.389262
0.657718
0.657718
0.657718
0.657718
0.657718
0
0
0.099057
0.313916
309
10
101
30.9
0.603774
0
0
0.25
0
0
0.405316
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
0.25
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
bd36b9e0da9470a5e37a78543606857028eee2e2
873
py
Python
basic linear reg.py
recurshawn/Basic-Linear-Regression
e0ee45f58d45911d34a854f015ea196b159a2f8a
[ "MIT" ]
2
2018-08-12T06:09:04.000Z
2019-05-06T07:03:26.000Z
basic linear reg.py
recurshawn/Basic-Linear-Regression
e0ee45f58d45911d34a854f015ea196b159a2f8a
[ "MIT" ]
null
null
null
basic linear reg.py
recurshawn/Basic-Linear-Regression
e0ee45f58d45911d34a854f015ea196b159a2f8a
[ "MIT" ]
2
2018-07-19T14:35:46.000Z
2018-08-12T06:13:43.000Z
""" BASIC LINEAR REGRESSION CODE Consider this my first application of what I understood about ML/DL so far. I wrote this to check my understanding of the basic concepts. It's pretty simple but I needed to get my feet wet with code. Any suggestions for modifications are welcome! """ #x and y data...
28.16129
128
0.634593
173
873
3.196532
0.560694
0.01085
0.016275
0.018083
0.036166
0.036166
0.036166
0.036166
0.036166
0
0
0.089124
0.241695
873
30
129
29.1
0.746224
0.183276
0
0
0
0
0.144357
0
0
0
0
0
0
0
null
null
0
0
null
null
0.230769
0
0
0
null
0
0
0
0
0
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
bd4090b02cae8881961d07fc8983d1d1780b62bf
1,326
py
Python
python/extracting/findPrimer.py
csiu/tokens
8a7f865d921d91aae4019e43677435ad78a8a703
[ "MIT" ]
null
null
null
python/extracting/findPrimer.py
csiu/tokens
8a7f865d921d91aae4019e43677435ad78a8a703
[ "MIT" ]
1
2015-04-20T03:28:48.000Z
2015-04-20T03:40:44.000Z
python/extracting/findPrimer.py
csiu/tokens
8a7f865d921d91aae4019e43677435ad78a8a703
[ "MIT" ]
null
null
null
import re inputfile = '/Users/csiu/project/webCrawler/extractPrimer/test.txt' primerStart = """5'""" primerEnd = """3'""" nucleotides = '[ATGCN]' linePrimerEnding = re.compile(nucleotides + '$') linePrimerStarting = re.compile('^' + nucleotides) with open(inputfile, 'r') as f: for line in f: if primerSt...
30.136364
74
0.534691
121
1,326
5.859504
0.446281
0.050776
0.056417
0.047955
0.211566
0.152327
0.152327
0.152327
0
0
0
0.004819
0.374057
1,326
43
75
30.837209
0.849398
0.087481
0
0.37037
0
0
0.055927
0.04424
0
0
0
0
0
0
null
null
0
0.037037
null
null
0.074074
0
0
0
null
0
0
0
0
0
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
bd41247422955c2bec8c75c3f52048f4b0c6d343
1,213
py
Python
app/core/admin.py
crocodundee/news-board-api-app
380e6e75f9263a068200a723c04568a9f2261ecc
[ "MIT" ]
null
null
null
app/core/admin.py
crocodundee/news-board-api-app
380e6e75f9263a068200a723c04568a9f2261ecc
[ "MIT" ]
null
null
null
app/core/admin.py
crocodundee/news-board-api-app
380e6e75f9263a068200a723c04568a9f2261ecc
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.contrib.auth.models import User from django.utils.translation import gettext as _ from core import models class UserAdmin(BaseUserAdmin): """Admin panel configuration for User model""" list_display ...
28.880952
79
0.659522
136
1,213
5.727941
0.397059
0.051348
0.065469
0.053915
0.136072
0
0
0
0
0
0
0
0.17972
1,213
41
80
29.585366
0.782915
0.079967
0
0
0
0
0.221818
0
0
0
0
0
0
1
0
false
0.038462
0.230769
0
0.576923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bd463c23420373bb21cbb94033d3aa58f68f33b2
1,119
py
Python
lib/retainn/curl.py
cellularmitosis/retainn
9e59024f3b35d4bb0bdf675b9f29369569e2080b
[ "MIT" ]
1
2021-06-05T08:40:44.000Z
2021-06-05T08:40:44.000Z
lib/retainn/curl.py
cellularmitosis/retainn
9e59024f3b35d4bb0bdf675b9f29369569e2080b
[ "MIT" ]
null
null
null
lib/retainn/curl.py
cellularmitosis/retainn
9e59024f3b35d4bb0bdf675b9f29369569e2080b
[ "MIT" ]
1
2021-10-14T12:28:32.000Z
2021-10-14T12:28:32.000Z
"""Retainn web-fetching functions.""" try: # Python 3 from urllib.request import Request, urlopen except ImportError: # Python 2 from urllib2 import Request, urlopen def http_get_deck_and_etag(gist_url): """Download the markdown and etag of a deck URL.""" response = urlopen(gist_url + "/raw")...
28.692308
67
0.680071
149
1,119
4.872483
0.342282
0.077135
0.060606
0.038567
0.132231
0.132231
0.068871
0
0
0
0
0.00344
0.220733
1,119
38
68
29.447368
0.829128
0.178731
0
0
0
0
0.022297
0
0
0
0
0
0
1
0.16
false
0
0.12
0.04
0.52
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bd481775933800ff7697945131e21bcfb7859fdc
670
py
Python
tutorials2/data_loading_tutorial.py
xuanyuyt/pytorch-tutorial
92076ac56d42da98ea61ce06708bb8c537a49af0
[ "MIT" ]
null
null
null
tutorials2/data_loading_tutorial.py
xuanyuyt/pytorch-tutorial
92076ac56d42da98ea61ce06708bb8c537a49af0
[ "MIT" ]
null
null
null
tutorials2/data_loading_tutorial.py
xuanyuyt/pytorch-tutorial
92076ac56d42da98ea61ce06708bb8c537a49af0
[ "MIT" ]
null
null
null
import os import torch import pandas as pd from skimage import io, transform import numpy as np import matplotlib.pyplot as plt from torch.utils.data import Dataset, DataLoader from torchvision import transforms, utils # Ignore waring import warnings warnings.filterwarnings('ignore') plt.ion() landmarks_frame = pd.r...
29.130435
75
0.770149
98
670
5.173469
0.540816
0.08284
0.071006
0.074951
0
0
0
0
0
0
0
0.013289
0.101493
670
23
76
29.130435
0.828904
0.019403
0
0
0
0
0.16311
0.064024
0
0
0
0
0
1
0
false
0
0.473684
0
0.473684
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
1
0
0
0
0
1
bd48e2bd368062575f8e3c68c1ab5aaaace702be
6,020
py
Python
run_validation.py
sr9000/stepik_code_task_baking
60a5197f659db1734132eeb9d82624f1b7aaeb3f
[ "MIT" ]
null
null
null
run_validation.py
sr9000/stepik_code_task_baking
60a5197f659db1734132eeb9d82624f1b7aaeb3f
[ "MIT" ]
null
null
null
run_validation.py
sr9000/stepik_code_task_baking
60a5197f659db1734132eeb9d82624f1b7aaeb3f
[ "MIT" ]
null
null
null
import logging as log import sys from extra.introspection import collect_datasets, collect_wrong_solutions from implementation.checker import output_reader, checker as check from implementation.solver import input_reader, solver as solve, hinter as get_hint from pre_definition.solve_caller import call_with_args from p...
34.797688
120
0.670598
757
6,020
5.136063
0.200793
0.028807
0.05144
0.032407
0.308385
0.252572
0.119599
0.119599
0.119599
0.082819
0
0.003323
0.250166
6,020
172
121
35
0.857997
0.058472
0
0.155738
0
0
0.166726
0
0
0
0
0
0.07377
1
0.065574
false
0.07377
0.057377
0
0.147541
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
bd49b8155e5a08f5ca5bd991e7606c828ebf1c3d
421
py
Python
apps/algorithms/migrations/0003_auto_20190201_0136.py
ScorpioDoctor/StudyAiD1
fd37a400a61dc1ae7a3ef6b1273afc3f0daea3e4
[ "Apache-2.0" ]
null
null
null
apps/algorithms/migrations/0003_auto_20190201_0136.py
ScorpioDoctor/StudyAiD1
fd37a400a61dc1ae7a3ef6b1273afc3f0daea3e4
[ "Apache-2.0" ]
null
null
null
apps/algorithms/migrations/0003_auto_20190201_0136.py
ScorpioDoctor/StudyAiD1
fd37a400a61dc1ae7a3ef6b1273afc3f0daea3e4
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.10 on 2019-02-01 01:36 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('algorithms', '0002_auto_20190201_0013'), ] operations = [ migrations.RemoveField( model_name='algorithmimage', name='algori...
20.047619
50
0.589074
39
421
6.25641
0.769231
0.147541
0
0
0
0
0
0
0
0
0
0.109215
0.304038
421
20
51
21.05
0.723549
0.109264
0
0.142857
1
0
0.187668
0.061662
0
0
0
0
0
1
0
false
0
0.071429
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bd4bc561fda1c42a4d4d120ce2ef72e50322b064
2,670
py
Python
examples/active_replication/flux_egress_operator.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
examples/active_replication/flux_egress_operator.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
examples/active_replication/flux_egress_operator.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
from erdos.data_stream import DataStream from erdos.message import Message from erdos.op import Op from erdos.timestamp import Timestamp from erdos.utils import setup_logging import flux_utils from flux_utils import is_control_stream, is_not_control_stream from flux_buffer import Buffer import threading class FluxEg...
37.083333
75
0.648689
319
2,670
5.103448
0.291536
0.079853
0.055897
0.041769
0.246929
0.169533
0.04914
0.04914
0.04914
0
0
0.001546
0.273034
2,670
72
76
37.083333
0.837197
0.078277
0
0.105263
0
0
0.041141
0
0
0
0
0.013889
0
1
0.087719
false
0.017544
0.157895
0
0.280702
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
bd4f544d8896cf4cc8569ba0288541ed6799028b
6,058
py
Python
gameRL/game_simulators/blackjack.py
dwraft/gameRL
518b2a2d193220f7334584ccde5cf2ab318d718a
[ "MIT" ]
null
null
null
gameRL/game_simulators/blackjack.py
dwraft/gameRL
518b2a2d193220f7334584ccde5cf2ab318d718a
[ "MIT" ]
null
null
null
gameRL/game_simulators/blackjack.py
dwraft/gameRL
518b2a2d193220f7334584ccde5cf2ab318d718a
[ "MIT" ]
null
null
null
""" Modeled largely after https://github.com/openai/gym/blob/master/gym/envs/toy_text/blackjack.py Also, the github version draws with replacement, while I modified to not use replacement Also, reference here for how to play blackjack """ from typing import Dict, List, Tuple import gym import numpy as np from gym imp...
31.884211
88
0.610432
821
6,058
4.325213
0.237515
0.029288
0.028161
0.023655
0.143622
0.123346
0.100817
0.091242
0.05069
0.05069
0
0.01379
0.281776
6,058
189
89
32.05291
0.802344
0.170188
0
0.113821
0
0.00813
0.031911
0
0
0
0
0
0.00813
1
0.211382
false
0
0.04065
0.073171
0.471545
0.00813
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
bd503a6e6bd6d6f165fffc6aa8ef728aa475b171
228
py
Python
dragn/dice/__init__.py
hugovk/dragn
8e6e3146c3a5980a384f4be5dc7019c10ab0bffe
[ "MIT" ]
null
null
null
dragn/dice/__init__.py
hugovk/dragn
8e6e3146c3a5980a384f4be5dc7019c10ab0bffe
[ "MIT" ]
null
null
null
dragn/dice/__init__.py
hugovk/dragn
8e6e3146c3a5980a384f4be5dc7019c10ab0bffe
[ "MIT" ]
null
null
null
from functools import partial from dragn.dice.die_and_roller import roller D4 = partial(roller, 4) D6 = partial(roller, 6) D8 = partial(roller, 8) D10 = partial(roller, 10) D12 = partial(roller, 12) D20 = partial(roller, 20)
19
44
0.732456
36
228
4.583333
0.583333
0.472727
0
0
0
0
0
0
0
0
0
0.093264
0.153509
228
11
45
20.727273
0.761658
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
bd50555970de3cea2bfe20e4fa5b5203c2dc67c1
472
py
Python
setup.py
steinnes/apnscli
3573fb835fe71dcec1c1611eed8c5b73347f0157
[ "MIT" ]
2
2015-08-13T18:29:45.000Z
2021-08-12T03:31:58.000Z
setup.py
steinnes/apnscli
3573fb835fe71dcec1c1611eed8c5b73347f0157
[ "MIT" ]
null
null
null
setup.py
steinnes/apnscli
3573fb835fe71dcec1c1611eed8c5b73347f0157
[ "MIT" ]
null
null
null
from setuptools import setup from pip.req import parse_requirements from pip.download import PipSession setup( name='apnsend', version='0.1', description='apnsend is a tool to test your APNS certificate, key and token.', py_modules=['apnsend'], install_requires=[ str(req.req) for req in par...
26.222222
92
0.680085
58
472
5.431034
0.706897
0.044444
0
0
0
0
0
0
0
0
0
0.005348
0.207627
472
17
93
27.764706
0.836898
0
0
0
0
0
0.330508
0
0
0
0
0
0
1
0
true
0
0.1875
0
0.1875
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
bd5085ad69142965ca0cc325bce4a8b98430c865
7,159
py
Python
down2earth/core/client.py
intenvy/down-to-earth
3d15366a47fe81ee895ba38c7f90a714b18a6c08
[ "MIT" ]
null
null
null
down2earth/core/client.py
intenvy/down-to-earth
3d15366a47fe81ee895ba38c7f90a714b18a6c08
[ "MIT" ]
null
null
null
down2earth/core/client.py
intenvy/down-to-earth
3d15366a47fe81ee895ba38c7f90a714b18a6c08
[ "MIT" ]
null
null
null
import json from abc import ABC, abstractmethod from typing import Optional from aiohttp import ClientResponse as Response from .mechanisms.fetch import IFetchMechanism from .models.request import IRestRequest from ..errors.fetching_errors import FetchMechanismFailed from ..utils.logging_utils import IMonitorLogger, ...
33.297674
107
0.624808
783
7,159
5.490421
0.185185
0.018609
0.024424
0.011863
0.348453
0.237032
0.208653
0.196092
0.163759
0.163759
0
0.002945
0.288448
7,159
214
108
33.453271
0.840989
0
0
0.296875
0
0
0.071742
0.008785
0
0
0
0
0
1
0.140625
false
0.078125
0.140625
0.015625
0.40625
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1fa185f55ac389ddda6ff7507b5d50529d297d77
539
py
Python
index.py
eddowh/flask-react-gae-multiuser-blog
7979567455936d32ba55c6edf0df82c4670754ef
[ "Unlicense" ]
1
2016-10-25T10:12:58.000Z
2016-10-25T10:12:58.000Z
index.py
eddowh/flask-react-gae-multiuser-blog
7979567455936d32ba55c6edf0df82c4670754ef
[ "Unlicense" ]
null
null
null
index.py
eddowh/flask-react-gae-multiuser-blog
7979567455936d32ba55c6edf0df82c4670754ef
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from importlib import import_module import os import sys BASE_PATH = os.path.dirname(os.path.abspath(__file__)) APP_NAME = 'server' SYS_DIRS = [ 'lib', ] # add directories to sys path for dir in SYS_DIRS + [APP_NAME]: sys.path.insert(1, os.path.join(BASE_PATH, dir)) # register flas...
21.56
55
0.742115
80
539
4.7375
0.5625
0.063325
0.05277
0.073879
0.094987
0
0
0
0
0
0
0.004274
0.131725
539
24
56
22.458333
0.805556
0.215213
0
0
0
0
0.064593
0
0
0
0
0
0
1
0
false
0
0.307692
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
1
0
0
0
0
1
1faa1a1b78082931266633b4320d81cdfa0d54a0
1,342
py
Python
python/repeated_substring_pattern.py
shub0/leetcode
8221d10f201d001abcb15b27c9cf4b8cd5060f1f
[ "BSD-3-Clause" ]
null
null
null
python/repeated_substring_pattern.py
shub0/leetcode
8221d10f201d001abcb15b27c9cf4b8cd5060f1f
[ "BSD-3-Clause" ]
null
null
null
python/repeated_substring_pattern.py
shub0/leetcode
8221d10f201d001abcb15b27c9cf4b8cd5060f1f
[ "BSD-3-Clause" ]
null
null
null
''' Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You may assume the given string consists of lowercase English letters only and its length will not exceed 10000. Example 1: Input: "abab" Output: True Explanation: It's the...
26.84
253
0.655738
171
1,342
5.134503
0.502924
0.05467
0.168565
0.052392
0.082005
0.082005
0.082005
0
0
0
0
0.013958
0.252608
1,342
49
254
27.387755
0.861416
0
0
0.090909
0
0
0.030026
0
0
0
0
0
0
0
null
null
0
0.045455
null
null
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1fb09b5991e8d87644d6f495740d136659baa06e
10,805
py
Python
scar_core/scripts/icp.py
yycho0108/SSAM
8b93f84cb162e475231e1de29360e6c6f1632363
[ "MIT" ]
null
null
null
scar_core/scripts/icp.py
yycho0108/SSAM
8b93f84cb162e475231e1de29360e6c6f1632363
[ "MIT" ]
null
null
null
scar_core/scripts/icp.py
yycho0108/SSAM
8b93f84cb162e475231e1de29360e6c6f1632363
[ "MIT" ]
null
null
null
import numpy as np from sklearn.neighbors import NearestNeighbors import cv2 def estimate_normals(p, k=20): neigh = NearestNeighbors(n_neighbors=k) neigh.fit(p) distances, indices = neigh.kneighbors(return_distance=True) dp = (p[indices] - p[:,None]) U, s, V = np.linalg.svd(dp.transpose(0,2,1)) ...
31.686217
117
0.544563
1,511
10,805
3.789543
0.252151
0.013971
0.022354
0.013273
0.188264
0.118757
0.07824
0.040517
0.040517
0.026895
0
0.035585
0.310782
10,805
340
118
31.779412
0.733315
0.374179
0
0.135484
0
0
0.01226
0
0
0
0
0.011765
0.012903
1
0.077419
false
0.025806
0.032258
0
0.16129
0.012903
0
0
0
null
0
0
0
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
1fb53f7f4bb36d6fa18b06b4d87e7b488b8f5de0
1,356
py
Python
src/phpcms/9.6.1/任意文件下载漏洞/download-exp.py
baidu-security/app-env-docker
794f4d23a4ff61e045108977119eb0e529bb0213
[ "Apache-2.0" ]
226
2018-02-17T07:18:12.000Z
2022-03-24T01:04:41.000Z
src/phpcms/9.6.1/任意文件下载漏洞/download-exp.py
baidu-security/app-env-docker
794f4d23a4ff61e045108977119eb0e529bb0213
[ "Apache-2.0" ]
7
2018-07-14T07:59:47.000Z
2021-05-07T06:30:54.000Z
src/phpcms/9.6.1/任意文件下载漏洞/download-exp.py
baidu-security/app-env-docker
794f4d23a4ff61e045108977119eb0e529bb0213
[ "Apache-2.0" ]
51
2018-04-20T15:39:06.000Z
2022-03-24T16:27:41.000Z
# coding: utf-8 ''' name: PHPCMS v9.6.1 任意文件下载 author: Anka9080 description: 过滤函数不严谨导致任意文件下载。 ''' import sys import requests import re def poc(target): print('第一次请求,获取 cookie_siteid ') url = target +'index.php?m=wap&c=index&a=init&siteid=1' s = requests.Session() r = s.get(url) cookie_siteid = r.h...
30.133333
175
0.634956
213
1,356
3.896714
0.42723
0.101205
0.06747
0.081928
0.138554
0.057831
0.057831
0.057831
0
0
0
0.04461
0.20649
1,356
44
176
30.818182
0.726766
0.05236
0
0.090909
0
0.030303
0.346122
0.253545
0
0
0
0
0
0
null
null
0.030303
0.090909
null
null
0.151515
0
0
0
null
0
0
0
0
0
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
1fcb25844610f792402d0768084d92368a8057d1
4,838
py
Python
renderer/settings.py
12564985/DeFMO
8ed9c2963678e2c59c7431ec8786302eea841572
[ "MIT" ]
1
2022-03-14T12:46:38.000Z
2022-03-14T12:46:38.000Z
renderer/settings.py
12564985/DeFMO
8ed9c2963678e2c59c7431ec8786302eea841572
[ "MIT" ]
null
null
null
renderer/settings.py
12564985/DeFMO
8ed9c2963678e2c59c7431ec8786302eea841572
[ "MIT" ]
null
null
null
## TODO: insert your ShapeNetCore.v2, textures, training and testing background paths # NOTE that HDF5 is not generated here, to convert the dataset to HDF5 use dataloaders/conversion.py g_datasets_path = '/mnt/lascar/rozumden/dataset' g_shapenet_path = g_datasets_path + '/ShapeNetv2/ShapeNetCore.v2' g_textures_path ...
35.573529
582
0.668251
609
4,838
5.055829
0.471264
0.016239
0.021111
0.022085
0.122442
0.021436
0.021436
0
0
0
0
0.132155
0.169492
4,838
136
583
35.573529
0.634146
0.190161
0
0
1
0.009901
0.396556
0.059111
0
0
0
0.007353
0
1
0
false
0
0
0
0
0.039604
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
1fd5cfc21f6a649e70a7b0760d51e47fca8f6d12
1,069
py
Python
day/day_05/solution.py
moki/aoc2015
da43fccd20d154840161c022d1f3c0f70035d604
[ "BSD-3-Clause" ]
null
null
null
day/day_05/solution.py
moki/aoc2015
da43fccd20d154840161c022d1f3c0f70035d604
[ "BSD-3-Clause" ]
null
null
null
day/day_05/solution.py
moki/aoc2015
da43fccd20d154840161c022d1f3c0f70035d604
[ "BSD-3-Clause" ]
null
null
null
def count_vowel(line): return len([c for c in line if c in "aeiou"]) def is_vowelly(line): return count_vowel(line) > 2 def is_doublly(line): return len( [line[i] for i in range(len(line) - 1) if line[i] == line[i + 1]]) def is_valid(line): return not sum(c in line for c in ['ab', 'cd', 'p...
21.38
74
0.507951
169
1,069
3.118343
0.224852
0.066414
0.045541
0.062619
0.195446
0.155598
0.072106
0
0
0
0
0.032353
0.363891
1,069
49
75
21.816327
0.742647
0
0
0.0625
0
0
0.015903
0
0
0
0
0
0
1
0.1875
false
0
0
0.15625
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1fdabe81a3501b610902f47c9629b3212106ad89
3,746
py
Python
python/tdk_fetch.py
selcukcihan/namewizard
c2aeb3fd1eb3ce839d0e3a145bdf2a6df354d568
[ "CC0-1.0" ]
null
null
null
python/tdk_fetch.py
selcukcihan/namewizard
c2aeb3fd1eb3ce839d0e3a145bdf2a6df354d568
[ "CC0-1.0" ]
null
null
null
python/tdk_fetch.py
selcukcihan/namewizard
c2aeb3fd1eb3ce839d0e3a145bdf2a6df354d568
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python from BeautifulSoup import BeautifulSoup import json import urllib import urllib2 import re import time import os.path def getgoogleurl(search,siteurl=False): search = search.encode("utf-8") if siteurl==False: return 'http://www.google.com/search?q='+urllib.quote_plus(search) ...
32.293103
136
0.570208
478
3,746
4.410042
0.345188
0.011385
0.014232
0.02277
0.155598
0.121442
0.088235
0
0
0
0
0.02731
0.286439
3,746
115
137
32.573913
0.761317
0.015216
0
0.134021
0
0.010309
0.134527
0.008408
0
0
0
0
0
0
null
null
0
0.072165
null
null
0.113402
0
0
0
null
0
0
0
0
0
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
1fded2389baa0f710851c0214c487f38445e67b1
3,540
py
Python
predict_btc_future.py
benjaminshi02003220/Bitcoin_price_prediction
f4894614bafa0a4295d08d0b8f53d314c4262724
[ "MIT" ]
6
2018-03-11T13:47:22.000Z
2018-07-03T05:03:48.000Z
predict_btc_future.py
benjaminshi02003220/Bitcoin_price_prediction
f4894614bafa0a4295d08d0b8f53d314c4262724
[ "MIT" ]
null
null
null
predict_btc_future.py
benjaminshi02003220/Bitcoin_price_prediction
f4894614bafa0a4295d08d0b8f53d314c4262724
[ "MIT" ]
4
2018-03-27T15:38:40.000Z
2018-07-07T20:04:29.000Z
# -*- coding: utf-8 -*- """ Created on Fri Mar 9 17:06:09 2018 @author: v-beshi """ import pyodbc import pandas as pd def get_agg_data(): con=pyodbc.connect('DRIVER={SQL Server};SERVER=ServerName;DATABASE=DB;UID=ID;PWD=Password') raw_data=pd.read_sql('select * from dbo.BitcoinTradeHistory',con) raw_d...
38.478261
232
0.664124
587
3,540
3.72402
0.153322
0.163312
0.107045
0.115279
0.371455
0.352242
0.290942
0.195334
0.165142
0.07548
0
0.091275
0.158192
3,540
92
233
38.478261
0.642282
0
0
0.253521
0
0
0.205091
0.023141
0
0
0
0
0
0
null
null
0.014085
0.028169
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
1fe4a5c508f25892277d20cf17891a3088bcee69
2,601
py
Python
text_analytic_emotion_load_only.py
agussuarjaya/Text_Analytic_-Emotion-
01cdf6f3661eaad2cb76111ebaee90ec50b592f0
[ "MIT" ]
null
null
null
text_analytic_emotion_load_only.py
agussuarjaya/Text_Analytic_-Emotion-
01cdf6f3661eaad2cb76111ebaee90ec50b592f0
[ "MIT" ]
1
2020-03-28T16:06:04.000Z
2020-03-29T02:03:44.000Z
text_analytic_emotion_load_only.py
agussuarjaya/Text_Analytic_-Emotion-
01cdf6f3661eaad2cb76111ebaee90ec50b592f0
[ "MIT" ]
2
2020-03-28T15:02:48.000Z
2020-03-29T12:27:50.000Z
# -*- coding: utf-8 -*- """Text Analytic (Emotion) - load_only.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1ec4JMQZ5zoj-PB_a0mUkJWRKotgQSd9f """ """ Text Analytic (Emotion) with TensorFlow Copyright 2020 I Made Agus Dwi Suarjaya ...
38.820896
189
0.685506
344
2,601
5.101744
0.642442
0.031339
0.032479
0.046154
0
0
0
0
0
0
0
0.02101
0.139946
2,601
66
190
39.409091
0.763523
0.249519
0
0
1
0.185185
0.504038
0
0
0
0
0
0
1
0
false
0
0.296296
0
0.296296
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1fe7b45de50e9ea21f771782230c1d73959dc62a
215
py
Python
devmine/config/environments/production.py
sniperkit/snk.fork.devmine-core
6ab43abd0c1041831ecb86dcba55ffd9e05ce615
[ "BSD-3-Clause" ]
null
null
null
devmine/config/environments/production.py
sniperkit/snk.fork.devmine-core
6ab43abd0c1041831ecb86dcba55ffd9e05ce615
[ "BSD-3-Clause" ]
null
null
null
devmine/config/environments/production.py
sniperkit/snk.fork.devmine-core
6ab43abd0c1041831ecb86dcba55ffd9e05ce615
[ "BSD-3-Clause" ]
null
null
null
# server backend server = 'cherrypy' # debug error messages debug = False # auto-reload reloader = False # database url db_url = 'sqlite:///devmine/db/devmine.db' # echo database engine messages db_echo = False
14.333333
42
0.730233
29
215
5.344828
0.586207
0.116129
0
0
0
0
0
0
0
0
0
0
0.167442
215
14
43
15.357143
0.865922
0.418605
0
0
0
0
0.327731
0.260504
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
1fe923af70915246d98e2a502a9e9ce347a11d16
1,279
py
Python
gen_screens.py
shurkova/currentVers
25027f3f4faa9033b69041459f0785c1436c3f31
[ "CECILL-B" ]
1
2020-09-09T15:30:38.000Z
2020-09-09T15:30:38.000Z
gen_screens.py
shurkova/currentVers
25027f3f4faa9033b69041459f0785c1436c3f31
[ "CECILL-B" ]
null
null
null
gen_screens.py
shurkova/currentVers
25027f3f4faa9033b69041459f0785c1436c3f31
[ "CECILL-B" ]
11
2020-05-01T09:03:14.000Z
2022-02-09T14:17:41.000Z
# generate 500 screens. import random objs = [] for i in range(500): go_to = random.choice([2,3]) for j in range(go_to): new_obj = {'name': 'non_exist', 'RBs': [], 'set': 'memory', 'analog': i} width = round(random.random()*20) hight = round(random.random()*10) x = round(rando...
51.16
704
0.56294
190
1,279
3.642105
0.326316
0.069364
0.098266
0
0
0
0
0
0
0
0
0.038679
0.171228
1,279
24
705
53.291667
0.614151
0.016419
0
0
1
0
0.255387
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
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
1ff9642e37e0136fb4ef1901be1925b6d57a71f4
2,543
py
Python
app/test/commonJSONStrings.py
rmetcalf9/dockJob
a61acf7ca52e37ff513695a5cc201d346fb4a7fa
[ "MIT" ]
14
2018-03-28T20:37:56.000Z
2020-08-30T13:29:05.000Z
app/test/commonJSONStrings.py
rmetcalf9/dockJob
a61acf7ca52e37ff513695a5cc201d346fb4a7fa
[ "MIT" ]
79
2018-02-07T14:42:00.000Z
2022-02-11T22:30:03.000Z
app/test/commonJSONStrings.py
rmetcalf9/dockJob
a61acf7ca52e37ff513695a5cc201d346fb4a7fa
[ "MIT" ]
6
2018-05-08T21:49:40.000Z
2021-07-30T13:47:37.000Z
data_simpleJobCreateParams = { "name": "TestJob", "repetitionInterval": "HOURLY:03", "command": "ls", "enabled": True } data_simpleManualJobCreateParams = { "name": "TestJob", "repetitionInterval": "", "command": "ls", "enabled": False } data_simpleJobCreateExpRes = { "guid": 'IGNORE', "name": da...
35.319444
152
0.773889
156
2,543
12.49359
0.467949
0.076963
0.029759
0
0
0
0
0
0
0
0
0.004392
0.104601
2,543
71
153
35.816901
0.851559
0.024774
0
0.09375
0
0
0.422968
0.171856
0
0
0
0
0
1
0
false
0
0
0
0
0
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
1ffa89e42119c66f0b38cae0145de37c497cd8de
896
py
Python
06_packet_sniffer/packet_sniffer.py
maks-nurgazy/ethical-hacking
0f9f2b943b5afa9b11251270e4672e0965ec1769
[ "MIT" ]
null
null
null
06_packet_sniffer/packet_sniffer.py
maks-nurgazy/ethical-hacking
0f9f2b943b5afa9b11251270e4672e0965ec1769
[ "MIT" ]
null
null
null
06_packet_sniffer/packet_sniffer.py
maks-nurgazy/ethical-hacking
0f9f2b943b5afa9b11251270e4672e0965ec1769
[ "MIT" ]
null
null
null
import scapy.all as scapy from scapy.layers import http def sniff(interface): scapy.sniff(iface=interface, store=False, prn=process_sniffed_packed) def get_url(packet): return (packet[http.HTTPRequest].Host + packet[http.HTTPRequest].Path).decode("utf-8") def get_login_info(packet): if packet.haslayer...
27.151515
90
0.631696
115
896
4.808696
0.408696
0.081374
0.072333
0.065099
0.072333
0
0
0
0
0
0
0.004367
0.233259
896
32
91
28
0.800582
0
0
0
0
0
0.121652
0
0
0
0
0
0
1
0.181818
false
0.090909
0.090909
0.045455
0.363636
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1ffc42584a05c85ceb4b5e649094a2917f366627
7,947
py
Python
src/triangle.py
songrun/VectorSkinning
a19dff78215b51d824adcd39c7dcdf8dc78ec617
[ "Apache-2.0" ]
18
2015-04-29T20:54:15.000Z
2021-12-13T17:48:05.000Z
src/triangle.py
songrun/VectorSkinning
a19dff78215b51d824adcd39c7dcdf8dc78ec617
[ "Apache-2.0" ]
null
null
null
src/triangle.py
songrun/VectorSkinning
a19dff78215b51d824adcd39c7dcdf8dc78ec617
[ "Apache-2.0" ]
8
2017-04-23T17:52:13.000Z
2022-03-14T11:01:56.000Z
import sys import subprocess import os from numpy import asarray #triangle_path = os.path.join( "C:\\Users\\Mai\\Dropbox\\Research\\Deformation\\src\\py\\triangle", "triangle.exe") triangle_path = os.path.join( os.path.dirname( __file__ ), "triangle", "triangle" ) if not os.path.exists( triangle_path ): raise Imp...
36.287671
215
0.630804
1,093
7,947
4.446478
0.218664
0.039506
0.021399
0.004115
0.35144
0.267901
0.227572
0.168724
0.12716
0.111934
0
0.012422
0.250409
7,947
218
216
36.454128
0.803425
0.283252
0
0.195122
0
0
0.042153
0
0
0
0
0
0.073171
0
null
null
0
0.097561
null
null
0.158537
0
0
0
null
0
0
0
0
0
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
950a7c06be019526c5d13e887a482057df6c98cd
758
py
Python
UVa Online Judge/v128/12808.py
mjenrungrot/algorithm
e0e8174eb133ba20931c2c7f5c67732e4cb2b703
[ "MIT" ]
1
2021-12-08T08:58:43.000Z
2021-12-08T08:58:43.000Z
UVa Online Judge/v128/12808.py
mjenrungrot/algorithm
e0e8174eb133ba20931c2c7f5c67732e4cb2b703
[ "MIT" ]
null
null
null
UVa Online Judge/v128/12808.py
mjenrungrot/algorithm
e0e8174eb133ba20931c2c7f5c67732e4cb2b703
[ "MIT" ]
null
null
null
# ============================================================================= # Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/ # FileName: 12808.py # Description: UVa Online Judge - 12808 # ============================================================================= import math...
27.071429
79
0.387863
94
758
3.042553
0.553191
0.104895
0.083916
0.097902
0.181818
0.181818
0.181818
0.181818
0.181818
0.181818
0
0.094812
0.262533
758
27
80
28.074074
0.416816
0.391821
0
0
0
0
0.046154
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.125
0.1875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
950c169f450a431d53eeadbbe5cd4c9bc80dac22
664
py
Python
code/Attack/ParameterTypes/Types.py
TomasMadeja/ID2T
77f51c074d1ff83c7d648ae62ecaed3e5cfde80c
[ "MIT" ]
33
2018-11-21T12:50:52.000Z
2022-01-12T05:38:12.000Z
code/Attack/ParameterTypes/Types.py
TomasMadeja/ID2T
77f51c074d1ff83c7d648ae62ecaed3e5cfde80c
[ "MIT" ]
108
2018-11-21T12:33:47.000Z
2022-02-09T15:56:59.000Z
code/Attack/ParameterTypes/Types.py
TomasMadeja/ID2T
77f51c074d1ff83c7d648ae62ecaed3e5cfde80c
[ "MIT" ]
20
2018-11-22T13:03:20.000Z
2022-01-12T00:19:28.000Z
import enum class ParameterTypes(enum.Enum): """ Defines types for parameters. These types may be used in the specification of allowed parameters within the individual attack classes. The type is used to verify the validity of the given value. """ TYPE_IP_ADDRESS = 0 TYPE_MAC_ADDRESS = 1 T...
28.869565
111
0.712349
95
664
4.747368
0.694737
0.026608
0
0
0
0
0
0
0
0
0
0.035928
0.245482
664
22
112
30.181818
0.864271
0.384036
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.0625
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
950c84ecd7d7ee95d6bf316b3a497327243be4e4
1,984
py
Python
utils/error_handlrer.py
RobinPaspuel/YtechCode
219a8492aa5be76c445f3d70f8b2ef74e81c188e
[ "MIT" ]
null
null
null
utils/error_handlrer.py
RobinPaspuel/YtechCode
219a8492aa5be76c445f3d70f8b2ef74e81c188e
[ "MIT" ]
null
null
null
utils/error_handlrer.py
RobinPaspuel/YtechCode
219a8492aa5be76c445f3d70f8b2ef74e81c188e
[ "MIT" ]
null
null
null
from utils.error_with_arrows import * ##### ERRORS ######## class Error: def __init__(self, initial_pos, final_pos, error_class, details): self.initial_pos = initial_pos self.final_pos = final_pos self.error_class= error_class self.details= details def error_string(self): ...
40.489796
106
0.655242
246
1,984
4.930894
0.207317
0.148392
0.150041
0.133553
0.49629
0.443528
0.42127
0.368508
0.340478
0.306678
0
0.001279
0.211694
1,984
49
107
40.489796
0.774297
0.003024
0
0.205128
0
0.025641
0.164334
0.025402
0
0
0
0
0
1
0.205128
false
0
0.025641
0
0.435897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
951023fa012fa8c9f93693ace80f46cf9b0de998
10,524
py
Python
regru_cloudapi/__init__.py
plvskiy/regru_cloudapi
e137a391f67b116f51b77b8e33755f8a6c3b170d
[ "MIT" ]
1
2021-03-07T14:25:59.000Z
2021-03-07T14:25:59.000Z
regru_cloudapi/__init__.py
plvskiy/regru_cloudapi
e137a391f67b116f51b77b8e33755f8a6c3b170d
[ "MIT" ]
null
null
null
regru_cloudapi/__init__.py
plvskiy/regru_cloudapi
e137a391f67b116f51b77b8e33755f8a6c3b170d
[ "MIT" ]
null
null
null
import json import requests from regru_cloudapi.utils import Errors class CloudAPI(object): def __init__(self, token=None): self.token = token self.api_url = 'https://api.cloudvps.reg.ru/v1' self.HEADERS = {'Content-Type': 'application/json'} if self.token is not None: ...
33.515924
114
0.601292
1,353
10,524
4.464154
0.086475
0.077483
0.05298
0.056457
0.749669
0.70149
0.653974
0.621358
0.496854
0.470695
0
0.003829
0.280407
10,524
313
115
33.623003
0.793741
0
0
0.463964
0
0
0.13854
0.075352
0
0
0
0
0
1
0.13964
false
0
0.013514
0
0.31982
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
95150abc9ac26ff15d14447cfaa884078a1c20b0
2,215
py
Python
tensorwatch/repeated_timer.py
sytelus/longview
686e43cf187eaf55df18949359fd63d57dc337b2
[ "MIT" ]
3,453
2019-05-22T15:01:23.000Z
2022-03-31T07:50:41.000Z
tensorwatch/repeated_timer.py
wgxcow/tensorwatch
142f83a7cb8c54e47e9bab06cb3a1ef8ae225422
[ "MIT" ]
69
2019-05-22T17:11:20.000Z
2022-03-03T09:32:38.000Z
tensorwatch/repeated_timer.py
wgxcow/tensorwatch
142f83a7cb8c54e47e9bab06cb3a1ef8ae225422
[ "MIT" ]
375
2019-05-22T17:10:33.000Z
2022-03-24T07:43:07.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import threading import time import weakref class RepeatedTimer: class State: Stopped=0 Paused=1 Running=2 def __init__(self, secs, callback, count=None): self.secs = secs self.callback = weakref....
31.197183
99
0.602709
252
2,215
5.111111
0.246032
0.069876
0.153727
0.188665
0.478261
0.322205
0.270186
0.209627
0.074534
0.074534
0
0.002611
0.308352
2,215
71
100
31.197183
0.83812
0.047856
0
0.327273
0
0
0.006176
0
0
0
0
0
0
1
0.127273
false
0
0.054545
0.018182
0.236364
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9515d87797c5883ffb46a5046c9382bbdb71bc8f
1,037
py
Python
pushpy_examples/client/tasks/schedule/c_local_schedule.py
briangu/push-examples
3acf00d9f63523010ee3b70f3117d1be686c3335
[ "MIT" ]
null
null
null
pushpy_examples/client/tasks/schedule/c_local_schedule.py
briangu/push-examples
3acf00d9f63523010ee3b70f3117d1be686c3335
[ "MIT" ]
null
null
null
pushpy_examples/client/tasks/schedule/c_local_schedule.py
briangu/push-examples
3acf00d9f63523010ee3b70f3117d1be686c3335
[ "MIT" ]
null
null
null
import time from pushpy_examples.client.ex_push_manager import ExamplePushManager m = ExamplePushManager() m.connect() class ScheduleTask: def apply(self, control): import schedule import time def job(): print(f"I'm working...{time.time()}") schedule.clear() ...
24.690476
69
0.633558
138
1,037
4.644928
0.449275
0.162246
0.141966
0.196568
0.084243
0.084243
0
0
0
0
0
0.023086
0.206365
1,037
41
70
25.292683
0.755772
0.257473
0
0.181818
0
0
0.128609
0.030184
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.318182
0.045455
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
9516843db83caf5de14579548efc7a35483c1024
3,100
py
Python
app/cache/basic.py
JunyongYao/flask-backend-seed
9d16f56a9f34ebb1ec32eaab800b7ad6b10d0c9d
[ "MIT" ]
9
2017-10-20T09:26:09.000Z
2021-01-28T02:54:43.000Z
app/cache/basic.py
JunyongYao/flask-backend-seed
9d16f56a9f34ebb1ec32eaab800b7ad6b10d0c9d
[ "MIT" ]
2
2018-03-06T06:27:53.000Z
2018-04-19T01:47:38.000Z
app/cache/basic.py
JunyongYao/flask-backend-seed
9d16f56a9f34ebb1ec32eaab800b7ad6b10d0c9d
[ "MIT" ]
2
2019-07-18T22:32:28.000Z
2020-06-15T14:10:29.000Z
# -*- coding: utf-8 -*- import logging import pickle from abc import ABCMeta, abstractmethod from app import redis from app.cache import set_dict_if_key_expire, set_data_if_key_expire, set_redis_dict_with_timeout, \ set_redis_data_with_timeout from task.asyncTask import refresh_cache class CacheABC(object, meta...
32.978723
120
0.684516
410
3,100
4.895122
0.24878
0.03986
0.053812
0.056801
0.398605
0.285002
0.285002
0.285002
0.248132
0.248132
0
0.003793
0.234516
3,100
93
121
33.333333
0.841972
0.120645
0
0.424242
0
0
0.064754
0
0
0
0
0
0
1
0.212121
false
0
0.090909
0.015152
0.393939
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
9520fdc9ead572486f8211683471cb168ee795b7
6,113
py
Python
Spatial_Scripts/2_gtfs_arnold_stops.py
VolpeUSDOT/gtfs-measures
0530d3c7193f10d591edd446d7e4985d03a7c48a
[ "CC0-1.0" ]
3
2019-08-29T13:31:14.000Z
2021-06-18T06:10:06.000Z
Spatial_Scripts/2_gtfs_arnold_stops.py
VolpeUSDOT/gtfs-measures
0530d3c7193f10d591edd446d7e4985d03a7c48a
[ "CC0-1.0" ]
null
null
null
Spatial_Scripts/2_gtfs_arnold_stops.py
VolpeUSDOT/gtfs-measures
0530d3c7193f10d591edd446d7e4985d03a7c48a
[ "CC0-1.0" ]
null
null
null
#------------------------------------------------------------------------------- # Name: GTFS_Arnold_Stops # # Purpose: Associate stops with the route shapes that have already been snapped to ARNOLD # # Author: Alex Oberg and Gary Baker # # Created: 10/17/2016 # # Last updated 6/15/2017 #---------------------------...
33.773481
154
0.648454
809
6,113
4.662546
0.34487
0.040827
0.019088
0.013786
0.092524
0.058325
0.030223
0.030223
0.018028
0.018028
0
0.018091
0.177163
6,113
181
155
33.773481
0.731809
0.312612
0
0.048193
0
0.012048
0.356902
0.077441
0
0
0
0.005525
0
0
null
null
0
0.048193
null
null
0.108434
0
0
0
null
0
0
0
0
0
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
95291ef04782317ff7c65177e450a86cba814b66
1,224
py
Python
examples/top_view.py
ryan-mooore/anvil-parser
f2da8e0b7ca84ace49da8c6784363d914b2ca93d
[ "MIT" ]
70
2019-08-12T18:46:09.000Z
2022-02-22T12:37:29.000Z
examples/top_view.py
ryan-mooore/anvil-parser
f2da8e0b7ca84ace49da8c6784363d914b2ca93d
[ "MIT" ]
24
2020-01-20T04:15:59.000Z
2022-03-13T20:49:55.000Z
examples/top_view.py
ryan-mooore/anvil-parser
f2da8e0b7ca84ace49da8c6784363d914b2ca93d
[ "MIT" ]
33
2019-12-06T19:22:10.000Z
2022-03-28T17:08:56.000Z
""" Generates a image of the top view of a chunk Needs a textures folder with a block folder inside """ import sys if len(sys.argv) == 1: print('You must give a region file') exit() else: region = sys.argv[1] chx = int(sys.argv[2]) chz = int(sys.argv[3]) import os from PIL import Image import _path ...
26.042553
63
0.555556
196
1,224
3.454082
0.362245
0.062038
0.079764
0.070901
0.079764
0.079764
0.079764
0.079764
0.079764
0.079764
0
0.036773
0.311275
1,224
46
64
26.608696
0.766311
0.077614
0
0.205128
1
0
0.076717
0.019625
0
0
0
0
0
1
0
false
0
0.128205
0
0.128205
0.051282
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
952d81863666bd0aa65ead158b3c1300284fe4e6
1,485
py
Python
example/simple_example/example_models.py
kun-fang/avro-data-model
1a657e20e666b534d0196888ae580ad7caddadeb
[ "MIT" ]
9
2019-03-28T16:31:33.000Z
2022-02-18T03:22:50.000Z
example/simple_example/example_models.py
kun-fang/avro-data-model
1a657e20e666b534d0196888ae580ad7caddadeb
[ "MIT" ]
3
2019-06-17T17:09:38.000Z
2021-05-14T03:06:00.000Z
example/simple_example/example_models.py
kun-fang/avro-data-model
1a657e20e666b534d0196888ae580ad7caddadeb
[ "MIT" ]
2
2019-04-11T18:26:52.000Z
2022-02-18T03:22:52.000Z
import datetime import os from avro_models import avro_schema, AvroModelContainer EXAMPLE_NAMES = AvroModelContainer(default_namespace="example.avro") DIRNAME = os.path.dirname(os.path.realpath(__file__)) @avro_schema( EXAMPLE_NAMES, schema_file=os.path.join(DIRNAME, "Date.avsc")) class Date(object): d...
23.203125
71
0.641077
179
1,485
5.100559
0.27933
0.065717
0.0931
0.120482
0.260679
0.260679
0.214677
0.214677
0.214677
0.214677
0
0
0.220875
1,485
63
72
23.571429
0.78911
0
0
0.23913
0
0
0.078114
0
0
0
0
0
0
1
0.130435
false
0.065217
0.065217
0.086957
0.413043
0.021739
0
0
0
null
0
0
0
0
0
0
0
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
20fedbf1080a9f144951aee297b7d6f393e3751d
5,237
py
Python
src/ui/workspace_view.py
weijiang1994/iPost
008e767c23691bd9ba802eab1e405f98094cce4c
[ "MIT" ]
2
2021-10-18T01:24:04.000Z
2021-12-14T01:29:22.000Z
src/ui/workspace_view.py
weijiang1994/iPost
008e767c23691bd9ba802eab1e405f98094cce4c
[ "MIT" ]
null
null
null
src/ui/workspace_view.py
weijiang1994/iPost
008e767c23691bd9ba802eab1e405f98094cce4c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'workspace_view.ui' # # Created by: PyQt5 UI code generator 5.14.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): Form.setObj...
50.355769
114
0.715104
546
5,237
6.725275
0.210623
0.130719
0.075163
0.03268
0.283224
0.193355
0.111656
0.061002
0
0
0
0.019226
0.175673
5,237
103
115
50.84466
0.831364
0.035898
0
0.044444
1
0
0.050972
0.004562
0
0
0
0
0
1
0.022222
false
0
0.011111
0
0.044444
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
1f01e1d172c08c2fafb69829e4c50d4807643989
726
py
Python
1-50/031NextPermutation.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
1-50/031NextPermutation.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
1-50/031NextPermutation.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Editor: Zhao Xinlu School: BUPT Date: 2018-03-24 算法思想:下一个排列 """ class Solution(object): def nextPermutation(self, nums): """ :type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead. """ for idx in range(len(nums)-1, ...
24.2
74
0.508264
98
726
3.683673
0.5
0.135734
0.088643
0.099723
0.191136
0.083102
0
0
0
0
0
0.045455
0.333333
726
30
75
24.2
0.700413
0.028926
0
0.133333
0
0
0.015474
0
0
0
0
0
0
0
null
null
0
0
null
null
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1f18bfa4fe6a76d3156288890c8bbdb080595ab5
12,846
py
Python
example/hit_path.py
dzwiedziu-nkg/credo-classify-framework
45417b505b4f4b20a7248f3487ca57a3fd49ccee
[ "MIT" ]
null
null
null
example/hit_path.py
dzwiedziu-nkg/credo-classify-framework
45417b505b4f4b20a7248f3487ca57a3fd49ccee
[ "MIT" ]
null
null
null
example/hit_path.py
dzwiedziu-nkg/credo-classify-framework
45417b505b4f4b20a7248f3487ca57a3fd49ccee
[ "MIT" ]
3
2020-06-19T15:41:19.000Z
2020-06-29T12:47:05.000Z
import math import sys from scipy.interpolate import interp2d from scipy.ndimage import rotate, center_of_mass from scipy.spatial import distance from skimage.feature import canny from skimage.filters import rank, gaussian from skimage.measure import subdivide_polygon from skimage.morphology import medial_axis, square...
28.738255
175
0.541725
2,081
12,846
3.218645
0.158578
0.112272
0.156315
0.193491
0.323679
0.267095
0.235443
0.217378
0.217378
0.186772
0
0.142182
0.292075
12,846
446
176
28.802691
0.594348
0.07948
0
0.333333
0
0
0.013822
0
0
0
0
0
0
1
0.044643
false
0.005952
0.0625
0.002976
0.151786
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1f201209100b12ce6a3d7fab4f4d25eb9b397c33
258
py
Python
python/Exercises105Bonus.py
TerryRPatterson/Coursework
633d15b9ceb4e5a3cc4c74d0ca44ab91d7faa7c7
[ "Apache-2.0" ]
null
null
null
python/Exercises105Bonus.py
TerryRPatterson/Coursework
633d15b9ceb4e5a3cc4c74d0ca44ab91d7faa7c7
[ "Apache-2.0" ]
null
null
null
python/Exercises105Bonus.py
TerryRPatterson/Coursework
633d15b9ceb4e5a3cc4c74d0ca44ab91d7faa7c7
[ "Apache-2.0" ]
2
2018-02-16T00:44:16.000Z
2018-02-16T18:44:45.000Z
def countDown(start,message): import time if start > 20: raise OverflowError("Countdown can accept numbers bigger that 20.") for i in range(start,0,-1): time.sleep(1) print(i) print(message) countDown(20,"Blastoff!🚀")
25.8
75
0.631783
36
258
4.555556
0.694444
0
0
0
0
0
0
0
0
0
0
0.046392
0.248062
258
9
76
28.666667
0.793814
0
0
0
0
0
0.209302
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.222222
0.222222
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
1f2febb0be1e8f771610a3b24e1a5429336b73dd
508
py
Python
vbench/scripts/vb_run_benchmarks.py
vene/vbench
77989fa0d3c45e63f576968d206021ffee72a24c
[ "MIT" ]
1
2017-08-12T03:11:42.000Z
2017-08-12T03:11:42.000Z
vbench/scripts/vb_run_benchmarks.py
vene/vbench
77989fa0d3c45e63f576968d206021ffee72a24c
[ "MIT" ]
null
null
null
vbench/scripts/vb_run_benchmarks.py
vene/vbench
77989fa0d3c45e63f576968d206021ffee72a24c
[ "MIT" ]
null
null
null
import sys import traceback import cPickle as pickle if len(sys.argv) != 3: print 'Usage: script.py input output' sys.exit() in_path, out_path = sys.argv[1:] benchmarks = pickle.load(open(in_path)) results = {} for bmk in benchmarks: try: res = bmk.run() results[bmk.checksum] = res ex...
22.086957
68
0.647638
70
508
4.628571
0.585714
0.04321
0
0
0
0
0
0
0
0
0
0.005115
0.230315
508
22
69
23.090909
0.823529
0
0
0
0
0
0.110236
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1f2ff6c7d9e8ddf98bfe8be97cd8f3e7685911e4
6,445
py
Python
problems/kitchencombinatorics/data/secret/gendata.py
stoman/CompetitiveProgramming
0000b64369b50e31c6f48939e837bdf6cece8ce4
[ "MIT" ]
2
2020-12-22T13:21:25.000Z
2021-12-12T22:26:26.000Z
problems/kitchencombinatorics/data/secret/gendata.py
stoman/CompetitiveProgramming
0000b64369b50e31c6f48939e837bdf6cece8ce4
[ "MIT" ]
null
null
null
problems/kitchencombinatorics/data/secret/gendata.py
stoman/CompetitiveProgramming
0000b64369b50e31c6f48939e837bdf6cece8ce4
[ "MIT" ]
null
null
null
import sys import random MAX_R = 1000 MAX_D = 25 MAX_K = 20 MAX_C = 2000 MAX_B = 100 case_no = 1 def next_file(suffix=None, desc=None): global case_no basename = '%02d' % case_no if suffix is None else '%02d-%s' % (case_no, suffix) f = open(basename + '.in', 'w') if desc is not None: with ope...
42.401316
213
0.621257
1,176
6,445
3.271259
0.141156
0.041591
0.040031
0.041591
0.563816
0.525604
0.507148
0.484273
0.420328
0.40707
0
0.071652
0.207448
6,445
151
214
42.682119
0.68148
0.065943
0
0.145299
0
0.025641
0.101847
0
0
0
0
0
0
0
null
null
0
0.017094
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
1f41c0a4ab7d43a2dea653442a426c4d1174eff9
1,653
py
Python
tests/test_model.py
camisatx/flasker
affc9fc13742e18434961b8ec15f133cc246dcd5
[ "MIT" ]
3
2020-12-12T01:30:08.000Z
2021-10-13T16:47:56.000Z
tests/test_model.py
camisatx/flasker
affc9fc13742e18434961b8ec15f133cc246dcd5
[ "MIT" ]
null
null
null
tests/test_model.py
camisatx/flasker
affc9fc13742e18434961b8ec15f133cc246dcd5
[ "MIT" ]
1
2020-12-12T01:30:13.000Z
2020-12-12T01:30:13.000Z
import sys import unittest sys.path.append('../') from app import db # NOQA from app.models import User # NOQA from tests.base import BaseTestCase # NOQA class UserModelCase(BaseTestCase): def test_model_password_hashing(self): """Test the password hashing.""" ...
31.788462
75
0.603146
197
1,653
4.949239
0.314721
0.123077
0.069744
0.102564
0.220513
0.092308
0.092308
0.092308
0.092308
0
0
0.022709
0.254083
1,653
51
76
32.411765
0.768045
0.077435
0
0.131579
0
0
0.05894
0
0
0
0
0
0.315789
1
0.052632
false
0.157895
0.131579
0
0.210526
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
1f4a0b28023170a365cdcc71fab67b6fb8261389
2,929
py
Python
admin/sandbox.py
liuhh02/NERDA
7488d0c5adf3eb5296b1b276b412b95131557097
[ "MIT" ]
123
2020-12-19T09:36:28.000Z
2022-03-20T11:01:02.000Z
admin/sandbox.py
liuhh02/NERDA
7488d0c5adf3eb5296b1b276b412b95131557097
[ "MIT" ]
35
2021-02-14T09:46:11.000Z
2022-03-31T09:57:38.000Z
admin/sandbox.py
liuhh02/NERDA
7488d0c5adf3eb5296b1b276b412b95131557097
[ "MIT" ]
30
2021-01-28T11:02:31.000Z
2022-03-06T19:58:27.000Z
from NERDA.models import NERDA from NERDA.datasets import get_conll_data, get_dane_data from transformers import AutoTokenizer trans = 'bert-base-multilingual-uncased' tokenizer = AutoTokenizer.from_pretrained(trans, do_lower_case = True) data = get_dane_data('train') sents = data.get('sentences') out = [] for sent ...
26.627273
79
0.714237
392
2,929
5.168367
0.262755
0.039487
0.05923
0.047384
0.466436
0.401283
0.299605
0.280355
0.280355
0.280355
0
0.028877
0.136907
2,929
109
80
26.87156
0.772547
0.372141
0
0.078431
0
0
0.137244
0.089651
0
0
0
0
0
0
null
null
0
0.137255
null
null
0.019608
0
0
0
null
0
0
0
0
0
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
1f51deb831801cb409889edbf97a6deabae048a4
1,368
py
Python
quantiphyse/packages/core/analysis/__init__.py
physimals/quantiphyse
bd3be0098b9929b1987fe0f23e515fa70674b3d4
[ "Apache-2.0" ]
9
2021-02-01T06:44:31.000Z
2022-01-17T15:46:40.000Z
quantiphyse/packages/core/analysis/__init__.py
ibme-qubic/quantiphyse
34f40424941414ce139c4612a903de3f24883576
[ "Apache-2.0" ]
34
2019-02-04T10:47:02.000Z
2020-08-13T09:36:52.000Z
quantiphyse/packages/core/analysis/__init__.py
ibme-qubic/quantiphyse
34f40424941414ce139c4612a903de3f24883576
[ "Apache-2.0" ]
2
2019-05-25T08:52:05.000Z
2020-06-18T13:59:00.000Z
""" Quantiphyse - Analysis widgets Copyright (c) 2013-2020 University of Oxford 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 a...
47.172414
123
0.811404
147
1,368
7.537415
0.619048
0.054152
0.023466
0.028881
0.166065
0.166065
0
0
0
0
0
0.010008
0.123538
1,368
28
124
48.857143
0.914095
0.439327
0
0
0
0
0.054018
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1f57dbdd7653a2a24621940b5ab48570df0a2af1
4,620
py
Python
pytorch/camera_intrinsics.py
abdur4373/ROS_depth_pred
63ed4d97df8b49a43aad53c4c6bf01441f05153d
[ "MIT" ]
1
2019-06-29T07:48:31.000Z
2019-06-29T07:48:31.000Z
pytorch/camera_intrinsics.py
abdur4373/ROS_depth_pred
63ed4d97df8b49a43aad53c4c6bf01441f05153d
[ "MIT" ]
null
null
null
pytorch/camera_intrinsics.py
abdur4373/ROS_depth_pred
63ed4d97df8b49a43aad53c4c6bf01441f05153d
[ "MIT" ]
null
null
null
import numpy as np from sensor_msgs.msg import CameraInfo, RegionOfInterest from std_msgs.msg import Header class CameraIntrinsics(object): """A set of intrinsic parameters for a camera. This class is used to project and deproject points. """ def __init__(self, frame, fx, fy=None, cx=0.0, cy=0.0, ske...
28.695652
96
0.534632
633
4,620
3.780411
0.156398
0.035938
0.033849
0.033431
0.486001
0.479315
0.476807
0.462599
0.41496
0.348099
0
0.027722
0.351948
4,620
160
97
28.875
0.771543
0.018615
0
0.261364
0
0
0.003148
0
0
0
0
0
0
0
null
null
0
0.034091
null
null
0.011364
0
0
0
null
0
0
0
0
0
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
1f5d11bfac525af7eaa9a4069790c1ad9c1d4423
10,602
py
Python
src/phat/thold.py
rskene/phat
84a946e1e638642f36ce5fd81dc85aa89f7b66f0
[ "MIT" ]
2
2021-07-23T11:34:21.000Z
2022-01-09T17:22:45.000Z
src/phat/thold.py
rjskene/phat
84a946e1e638642f36ce5fd81dc85aa89f7b66f0
[ "MIT" ]
3
2022-01-18T09:27:16.000Z
2022-01-18T09:28:43.000Z
src/phat/thold.py
rskene/phat
84a946e1e638642f36ce5fd81dc85aa89f7b66f0
[ "MIT" ]
null
null
null
from functools import wraps from typing import Iterable import numpy as np import scipy.stats as scist import matplotlib.pyplot as plt from rpy2.robjects.packages import importr from rpy2.robjects.vectors import FloatVector from phat.utils import argsetter base = importr('base') utils = importr('utils') utils.choos...
36.940767
131
0.54518
1,517
10,602
3.705339
0.170073
0.021349
0.014232
0.021349
0.332859
0.293542
0.253869
0.216332
0.216332
0.210105
0
0.030116
0.282777
10,602
286
132
37.06993
0.708837
0.043671
0
0.166667
0
0.004505
0.062685
0
0
0
0
0
0
0
null
null
0
0.04955
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
1f6205c1effd40848344000bccb696a977da03f4
954
py
Python
app/stock/apps.py
shift37/asx_gym
dd3d8dafae4f22ab9c9027bf362013255dbc6c36
[ "RSA-MD" ]
null
null
null
app/stock/apps.py
shift37/asx_gym
dd3d8dafae4f22ab9c9027bf362013255dbc6c36
[ "RSA-MD" ]
3
2020-06-06T08:27:08.000Z
2020-06-13T09:51:26.000Z
app/stock/apps.py
asxgym/asx_gym
8b7745820c0d4cd59281acf7c003ec1f1938005a
[ "RSA-MD" ]
null
null
null
from django.apps import AppConfig import logging logger = logging.getLogger(__name__) class StockConfig(AppConfig): name = 'stock' def ready(self): from background_task.models import Task task_update_daily_stock_price = Task.objects.filter( task_name='stock.tasks.cron_update_dail...
38.16
74
0.72327
127
954
5
0.267717
0.188976
0.151181
0.198425
0.727559
0.393701
0.393701
0.299213
0.173228
0.173228
0
0.005312
0.210692
954
24
75
39.75
0.837981
0
0
0
0
0
0.172956
0.144654
0
0
0
0
0
1
0.052632
false
0
0.263158
0
0.421053
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1f643bc3dbbf8bbb68623cedf5db93412e8053a1
554
py
Python
MkSSensor.py
MakeSenseCorp/mksdk-py
3466124288c3a89effa0e918c2f310e25db17e0e
[ "Apache-2.0" ]
null
null
null
MkSSensor.py
MakeSenseCorp/mksdk-py
3466124288c3a89effa0e918c2f310e25db17e0e
[ "Apache-2.0" ]
7
2018-02-19T12:15:46.000Z
2018-05-04T23:02:12.000Z
MkSSensor.py
MakeSenseCorp/mksdk-py
3466124288c3a89effa0e918c2f310e25db17e0e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python class Sensor: Name = "" ID = 0 UUID = 0 Type = 0 Value = 0 def __init__(self, id, type, local_id): self.ID = local_id self.UUID = id[:-1] + str(local_id) self.Type = type def SetInterval(self, interval): self.UpdateInterval = interval def SetUUID(self, dev...
24.086957
135
0.566787
75
554
4.04
0.32
0.115512
0.145215
0.09901
0
0
0
0
0
0
0
0.014019
0.227437
554
22
136
25.181818
0.693925
0.028881
0
0
0
0
0.097087
0
0
0
0
0
0
1
0.25
false
0
0
0.0625
0.6875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1f6482191a91e02ca740cd105cd4bb4ccfd6872b
1,010
py
Python
tuples.py
ShuhaoZQGG/Python-Very-Beginner-to-Very-Intermediate
cfad98b1c1c175761d3a68861438562f7d410cb0
[ "MIT" ]
null
null
null
tuples.py
ShuhaoZQGG/Python-Very-Beginner-to-Very-Intermediate
cfad98b1c1c175761d3a68861438562f7d410cb0
[ "MIT" ]
null
null
null
tuples.py
ShuhaoZQGG/Python-Very-Beginner-to-Very-Intermediate
cfad98b1c1c175761d3a68861438562f7d410cb0
[ "MIT" ]
null
null
null
mytuple = ("Max", 28, "Boston") print(mytuple) print(type(mytuple)) mytuple2 = ("Max") ## , is needed before the closing paranthese if only one string print(mytuple2) print(type(mytuple2)) mt3 = tuple(["Max", 28, "Boston"]) ## mt indicates mytuple + number print(mt3) print(type(m...
17.413793
104
0.620792
158
1,010
3.968354
0.474684
0.076555
0.052632
0
0
0
0
0
0
0
0
0.05774
0.194059
1,010
58
105
17.413793
0.712531
0.19802
0
0
0
0
0.067584
0
0
0
0
0
0
1
0
false
0
0
0
0
0.585366
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1