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
361079ab0e000e43dbc7e82747bd580d362541b3
26,485
py
Python
advent-1a.py
wiof/adventofcode2020
76fdb04ec6608965e603b26f90ca1b1e76dd0031
[ "Apache-2.0" ]
null
null
null
advent-1a.py
wiof/adventofcode2020
76fdb04ec6608965e603b26f90ca1b1e76dd0031
[ "Apache-2.0" ]
null
null
null
advent-1a.py
wiof/adventofcode2020
76fdb04ec6608965e603b26f90ca1b1e76dd0031
[ "Apache-2.0" ]
null
null
null
[2,8,"t","pncmjxlvckfbtrjh"], [8,9,"l","lzllllldsl"], [3,11,"c","ccchcccccclxnkcmc"], [3,10,"h","xcvxkdqshh"], [4,5,"s","gssss"], [7,14,"m","mmcmqmmxmmmnmmrmcxc"], [3,12,"n","grnxnbsmzttnzbnnn"], [5,9,"j","ddqwznjhjcjn"], [8,9,"d","fddddddmd"], [6,8,"t","qtlwttsqg"], [7,15,"m","lxzxrdbmmtvwhgm"], [6,10,"h","hhnhhhhxhkh...
26.458541
35
0.584671
4,000
26,485
3.87125
0.26
0.006587
0.000969
0
0
0
0
0
0
0
0
0.104022
0.037757
26,485
1,000
36
26.485
0.50359
0
0
0
0
0
0.484576
0
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
3614211ace6397b819a23ffcf05de09b41a653a6
976
py
Python
buddy/sample_keys.py
hellojerry/buddy
b9299ef407dc8903271c32f0475bd0a0cc705c12
[ "MIT" ]
null
null
null
buddy/sample_keys.py
hellojerry/buddy
b9299ef407dc8903271c32f0475bd0a0cc705c12
[ "MIT" ]
null
null
null
buddy/sample_keys.py
hellojerry/buddy
b9299ef407dc8903271c32f0475bd0a0cc705c12
[ "MIT" ]
null
null
null
# Rename this to keys.py if running locally, # and replace the API keys with your own information. # This project uses an EC2 instance with # Elasticache providing the redis broker and an # RDS instance of postgresql. EMAIL_HOST_USER = 'YOUR_EMAIL_ADDRESS@gmail.com' EMAIL_HOST_PASSWORD = 'YOUR_EMAIL_PASSWORD' SETTING...
37.538462
69
0.827869
146
976
5.068493
0.424658
0.074324
0.037838
0
0
0
0
0
0
0
0
0.001135
0.097336
976
26
70
37.538462
0.83882
0.21209
0
0
0
0
0.51178
0.244764
0
0
0
0
0
1
0
false
0.111111
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
361445931f7e80fcb62029e26a5ad6f144321479
180
py
Python
shortest_code_finding_primes.py
Aminuxer/Math-scripts
b526c284e102e0788ccbfb16dcc0b7343bb5e8ad
[ "CC0-1.0" ]
1
2021-09-25T20:55:59.000Z
2021-09-25T20:55:59.000Z
shortest_code_finding_primes.py
Aminuxer/Math-scripts
b526c284e102e0788ccbfb16dcc0b7343bb5e8ad
[ "CC0-1.0" ]
null
null
null
shortest_code_finding_primes.py
Aminuxer/Math-scripts
b526c284e102e0788ccbfb16dcc0b7343bb5e8ad
[ "CC0-1.0" ]
1
2021-09-27T12:13:35.000Z
2021-09-27T12:13:35.000Z
a = [2, 3] for n in range(5, 10 ** 7, 2): i = 1 while a[i] <= n ** .5: if n % a[i] == 0: break i = i + 1 else: a.append(n) print(a)
16.363636
30
0.344444
33
180
1.878788
0.575758
0.064516
0
0
0
0
0
0
0
0
0
0.114583
0.466667
180
10
31
18
0.53125
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1
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
36168dc77324a1b89d2623bb0de82eae00b80e40
11,126
py
Python
Device/Deploy/Admin/Region.py
nandor1992/FogOfThings
c412c26bfbd31162683e57b3dc2b5a0a5f21d9b0
[ "Apache-2.0" ]
1
2020-06-23T10:41:33.000Z
2020-06-23T10:41:33.000Z
Device/Deploy/Admin/Region.py
nandor1992/FogOfThings
c412c26bfbd31162683e57b3dc2b5a0a5f21d9b0
[ "Apache-2.0" ]
null
null
null
Device/Deploy/Admin/Region.py
nandor1992/FogOfThings
c412c26bfbd31162683e57b3dc2b5a0a5f21d9b0
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # vim: set fenc=utf8 ts=4 sw=4 et : # # Layer 2 network neighbourhood discovery tool # written by Benedikt Waldvogel (mail at bwaldvogel.de) from __future__ import absolute_import, division, print_function import logging import scapy.config import scapy.layers.l2 import scapy.route import socket...
34.76875
142
0.55977
1,400
11,126
4.369286
0.226429
0.045774
0.045774
0.017983
0.409514
0.393657
0.370607
0.365702
0.338401
0.338401
0
0.021753
0.289322
11,126
319
143
34.877743
0.751865
0.090239
0
0.494424
0
0
0.126907
0.005845
0
0
0.002972
0
0
1
0.074349
false
0.063197
0.055762
0
0.226766
0.037175
0
0
0
null
0
0
0
0
0
0
0
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
361c30c069a3e0d4fcf081510ab4e2b512ad4fad
4,583
py
Python
cache.py
austinbyers/GlobusFS
e26ae145dc5351d019496647802824a49fc54f75
[ "MIT" ]
null
null
null
cache.py
austinbyers/GlobusFS
e26ae145dc5351d019496647802824a49fc54f75
[ "MIT" ]
null
null
null
cache.py
austinbyers/GlobusFS
e26ae145dc5351d019496647802824a49fc54f75
[ "MIT" ]
1
2019-08-21T00:06:20.000Z
2019-08-21T00:06:20.000Z
"""Handles metadata cache (memory) and file cache (local endpoint).""" import os import shutil import stat import time class MetaData(object): """Keep filesystem metadata in memory.""" def __init__(self, api): self.api = api # Map file path to stat() file info dicts. self.files = {} ...
33.948148
94
0.580624
586
4,583
4.435154
0.249147
0.051943
0.041554
0.026933
0.166987
0.110042
0.078492
0.056175
0.037707
0.037707
0
0.00486
0.281693
4,583
135
95
33.948148
0.784629
0.099062
0
0.125
0
0
0.050832
0
0
0
0
0.007407
0
0
null
null
0
0.05
null
null
0.0125
0
0
0
null
0
0
0
0
0
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
3622b434c482f1758fcb7733fc8d85cfeb390f10
7,516
py
Python
pypy/rpython/tool/test/test_rffi_platform.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
pypy/rpython/tool/test/test_rffi_platform.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
null
null
null
pypy/rpython/tool/test/test_rffi_platform.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
2
2016-07-29T07:09:50.000Z
2016-10-16T08:50:26.000Z
import py, sys, struct from pypy.rpython.tool import rffi_platform from pypy.rpython.lltypesystem import lltype from pypy.rpython.lltypesystem import rffi from pypy.tool.udir import udir from pypy.translator.tool.cbuild import ExternalCompilationInfo def import_ctypes(): try: import ctypes except Impor...
35.620853
89
0.500665
775
7,516
4.694194
0.224516
0.095657
0.024189
0.026388
0.283672
0.183892
0.149808
0.109401
0.073117
0.073117
0
0.013576
0.392363
7,516
210
90
35.790476
0.783009
0.023018
0
0.105263
0
0
0.142142
0.028961
0
0
0
0
0.25
0
null
null
0
0.065789
null
null
0.006579
0
0
0
null
0
0
0
0
0
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
362880c7a180ce2a43b71cfc2e4b4fc0c4aa3429
5,000
py
Python
password/tests.py
pyprism/Hiren-Pass
04f5f2b3b0e4b4caab43953acfd9021d51108388
[ "MIT" ]
1
2017-07-01T05:30:30.000Z
2017-07-01T05:30:30.000Z
password/tests.py
pyprism/Hiren-Pass
04f5f2b3b0e4b4caab43953acfd9021d51108388
[ "MIT" ]
141
2017-03-08T10:43:15.000Z
2021-02-04T08:31:08.000Z
password/tests.py
pyprism/Hiren-Pass
04f5f2b3b0e4b4caab43953acfd9021d51108388
[ "MIT" ]
null
null
null
from django.test import TestCase, TransactionTestCase from .models import Recent, Vault from django.utils import timezone from rest_framework.test import APIRequestFactory, APIClient from django.contrib.auth.models import User from contextlib import contextmanager import datetime from django.utils import timezone cla...
40.650407
118
0.6166
594
5,000
5.063973
0.20202
0.099734
0.071809
0.077128
0.644282
0.564827
0.525931
0.511636
0.483378
0.439162
0
0.01777
0.2234
5,000
122
119
40.983607
0.756889
0.7022
0
0.074074
0
0
0.059328
0
0
0
0
0.008197
0.296296
1
0.111111
false
0.074074
0.296296
0
0.481481
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
362ea2fade6bb4ee71951c83c637a02be1bca3c1
3,716
py
Python
PP4E/Examples/PP4E/Internet/Web/PyErrata/browse.py
BeacherHou/Python-_Markdown-
015d79a02d32f49395b80ca10919b3a09b72c4df
[ "MIT" ]
null
null
null
PP4E/Examples/PP4E/Internet/Web/PyErrata/browse.py
BeacherHou/Python-_Markdown-
015d79a02d32f49395b80ca10919b3a09b72c4df
[ "MIT" ]
null
null
null
PP4E/Examples/PP4E/Internet/Web/PyErrata/browse.py
BeacherHou/Python-_Markdown-
015d79a02d32f49395b80ca10919b3a09b72c4df
[ "MIT" ]
null
null
null
########################################################### # on browse requests: fetch and display data in new page; # report data is stored in dictionaries on the database; # caveat: the '#Si' section links generated for top of page # indexes work on a recent Internet Explorer, but have been # seen to fail on a...
41.752809
80
0.562164
453
3,716
4.602649
0.392936
0.040288
0.023022
0.017266
0.111271
0.052758
0.052758
0.023022
0.023022
0
0
0.005605
0.279871
3,716
88
81
42.227273
0.773543
0.236006
0
0.278689
0
0.032787
0.172229
0.038358
0
0
0
0
0
0
null
null
0
0.016393
null
null
0.229508
0
0
0
null
0
0
0
0
0
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
36367189c3ee574db9037717593e6629b1d70362
6,759
py
Python
tugboat/data_extractor/base.py
att-comdev/tugboat
edc59574535632ac59081707399179cf76af2c37
[ "Apache-2.0" ]
null
null
null
tugboat/data_extractor/base.py
att-comdev/tugboat
edc59574535632ac59081707399179cf76af2c37
[ "Apache-2.0" ]
5
2018-09-19T13:41:50.000Z
2018-11-19T10:32:30.000Z
tugboat/data_extractor/base.py
att-comdev/tugboat
edc59574535632ac59081707399179cf76af2c37
[ "Apache-2.0" ]
9
2018-07-27T07:24:09.000Z
2018-11-09T12:56:24.000Z
# Copyright 2018 AT&T Intellectual Property. All other rights reserved. # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
27.364372
78
0.487498
706
6,759
4.611898
0.325779
0.025799
0.067568
0.079853
0.337838
0.168305
0.150184
0.090295
0.080467
0.027641
0
0.046617
0.409676
6,759
246
79
27.47561
0.769424
0.665779
0
0.512195
0
0
0
0
0
0
0
0.004065
0
1
0.292683
false
0
0.04878
0
0.634146
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
3637d904beb37c7cc76813fa3702aebcd0938410
3,592
py
Python
road-sign-classification/train.py
Namrata96/Lunch-time-Machine-Learning-Projects
917e9169de9fff10fe616cfab87b3a8b91a3b093
[ "MIT" ]
3
2017-10-15T14:31:52.000Z
2019-01-23T05:00:53.000Z
road-sign-classification/train.py
Namrata96/Lunch-time-Machine-Learning-Projects
917e9169de9fff10fe616cfab87b3a8b91a3b093
[ "MIT" ]
null
null
null
road-sign-classification/train.py
Namrata96/Lunch-time-Machine-Learning-Projects
917e9169de9fff10fe616cfab87b3a8b91a3b093
[ "MIT" ]
null
null
null
import keras import numpy as np from skimage import color, exposure, transform NUM_CLASSES = 43 IMG_SIZE = 48 def preprocess_img(img): # Histogram normalization in v channel hsv = color.rgb2hsv(img) hsv[:, :, 2] = exposure.equalize_hist(hsv[:, :, 2]) img = color.hsv2rgb(hsv) # central square crop...
27.007519
70
0.657294
515
3,592
4.466019
0.341748
0.055652
0.057826
0.066957
0.216957
0.21087
0.182174
0.15
0.133478
0.097826
0
0.036052
0.204621
3,592
132
71
27.212121
0.768988
0.084911
0
0.120879
0
0
0.062595
0.015878
0
0
0
0
0
0
null
null
0
0.175824
null
null
0.021978
0
0
0
null
0
0
0
0
0
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
363e06f511c30ca827bdc7a3f633b646a3e84053
443
py
Python
backend/follyengine/settings/dev.py
proman21/FollyEngine
e268902292d0cd1a5bdce0418dbf79e76617c513
[ "MIT" ]
null
null
null
backend/follyengine/settings/dev.py
proman21/FollyEngine
e268902292d0cd1a5bdce0418dbf79e76617c513
[ "MIT" ]
null
null
null
backend/follyengine/settings/dev.py
proman21/FollyEngine
e268902292d0cd1a5bdce0418dbf79e76617c513
[ "MIT" ]
null
null
null
from follyengine.settings.common import * DEBUG = True SECRET_KEY = 'tk9e-!51ob+(t$4euygn9)dd@mo$-at#$3=jpmxv-1ee1_a3)h' # Database # https://docs.djangoproject.com/en/2.1/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'follyengine', ...
23.315789
65
0.600451
52
443
5.076923
0.903846
0
0
0
0
0
0
0
0
0
0
0.031339
0.207675
443
18
66
24.611111
0.720798
0.155756
0
0
0
0.076923
0.451351
0.286486
0
0
0
0
0
1
0
false
0.076923
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
36438b8c5904b0d58cb574379f99535664d84c04
667
py
Python
my_classifier.py
mvitor/TicketActivityClassifier
a6b107f835dbf1b16039368507ec89c54806d88e
[ "Apache-2.0" ]
1
2021-12-01T20:09:24.000Z
2021-12-01T20:09:24.000Z
my_classifier.py
mvitor/TicketActivityClassifier
a6b107f835dbf1b16039368507ec89c54806d88e
[ "Apache-2.0" ]
null
null
null
my_classifier.py
mvitor/TicketActivityClassifier
a6b107f835dbf1b16039368507ec89c54806d88e
[ "Apache-2.0" ]
null
null
null
from TicketActivityClassify import TicketActivityPredict classifier = TicketActivityPredict() # Return top 5 prediction scores prediction = classifier.predict_text(ShortDescription='Unlock of an Active Directory Admin or Server Account account or account', Category='Account Update Account Admin...
95.285714
317
0.742129
78
667
6.294872
0.615385
0.01833
0.040733
0.065173
0.419552
0.419552
0.419552
0.419552
0.419552
0.419552
0
0.032986
0.136432
667
7
317
95.285714
0.819444
0.52024
0
0
0
0
0.342767
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
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
364461ce3a6261f135a17529186f0b9edea901c7
386
py
Python
helpers.py
allaccountstaken/robo_advisors
c6f07578f4d51c40a1a155fc91a63611674823cf
[ "MIT" ]
1
2020-07-17T17:21:40.000Z
2020-07-17T17:21:40.000Z
helpers.py
allaccountstaken/robo_advisors
c6f07578f4d51c40a1a155fc91a63611674823cf
[ "MIT" ]
null
null
null
helpers.py
allaccountstaken/robo_advisors
c6f07578f4d51c40a1a155fc91a63611674823cf
[ "MIT" ]
null
null
null
def extract_coupon(description): coupon = '' for s in range(len(description)): if description[s].isnumeric() or description[s] == '.': coupon = coupon + description[s] #print(c) if description[s] == '%': break try: float(coupon) except: ...
21.444444
63
0.520725
39
386
5.128205
0.512821
0.24
0.14
0
0
0
0
0
0
0
0
0.004
0.352332
386
18
64
21.444444
0.796
0.020725
0
0.153846
0
0
0.005348
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.153846
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
3645bc76b2d385f2e307217fb815c3606fd7fc0b
394
py
Python
CircuitPython_Heart_Sculpture/code.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
665
2017-09-27T21:20:14.000Z
2022-03-31T09:09:25.000Z
CircuitPython_Heart_Sculpture/code.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
641
2017-10-03T19:46:37.000Z
2022-03-30T18:28:46.000Z
CircuitPython_Heart_Sculpture/code.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
734
2017-10-02T22:47:38.000Z
2022-03-30T14:03:51.000Z
import time import adafruit_dotstar from rainbowio import colorwheel import board import touchio pixel = adafruit_dotstar.DotStar(board.APA102_SCK, board.APA102_MOSI, 1, brightness=.1) touch = touchio.TouchIn(board.D1) hue = 0 while True: hue = hue + touch.value * 3 if hue > 255: # Wrap back around to red ...
21.888889
87
0.705584
58
394
4.724138
0.568966
0.109489
0
0
0
0
0
0
0
0
0
0.063694
0.203046
394
17
88
23.176471
0.808917
0.058376
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.357143
0
0.357143
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
3647074085e53c6eefb33e0a766053df943ad8c0
272
py
Python
src/Chapter 7/Exercise_1.py
group14BSE1/BSE-2021
72e15ce3ef90eb80f70df12904fba787d8b695af
[ "MIT" ]
null
null
null
src/Chapter 7/Exercise_1.py
group14BSE1/BSE-2021
72e15ce3ef90eb80f70df12904fba787d8b695af
[ "MIT" ]
null
null
null
src/Chapter 7/Exercise_1.py
group14BSE1/BSE-2021
72e15ce3ef90eb80f70df12904fba787d8b695af
[ "MIT" ]
null
null
null
# use the with key word to open file ass mb_object with open("mbox-short.txt", "r") as mb_object: # Iterate over each line and remove leading spaces; # print contents after converting them to uppercase for line in mb_object: line = line.strip() print(line.upper())
34
52
0.735294
46
272
4.282609
0.73913
0.121827
0
0
0
0
0
0
0
0
0
0
0.176471
272
8
53
34
0.879464
0.544118
0
0
0
0
0.123967
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
364dca4394c7d10a8385a2a2156044b9216b752d
732
py
Python
main.py
TrackerSB/reinforcement-learning
83f89e59b95a007332bdf733f77715843f9159d9
[ "MIT" ]
null
null
null
main.py
TrackerSB/reinforcement-learning
83f89e59b95a007332bdf733f77715843f9159d9
[ "MIT" ]
null
null
null
main.py
TrackerSB/reinforcement-learning
83f89e59b95a007332bdf733f77715843f9159d9
[ "MIT" ]
null
null
null
import os from ai import DDPGAI from client.AIExchangeService import get_service from client.aiExchangeMessages_pb2 import SimStateResponse, Control, SimulationID, VehicleID, DataRequest service = get_service() try: username = os.environ['DRIVEBUILD_USER'] password = os.environ['DRIVEBUILD_PASSWORD'] except...
19.783784
113
0.734973
98
732
5.428571
0.561224
0.037594
0.071429
0
0
0
0
0
0
0
0
0.011236
0.148907
732
36
114
20.333333
0.842697
0.083333
0
0.090909
0
0
0.188906
0.091454
0
0
0
0
0
1
0
false
0.090909
0.181818
0
0.181818
0.136364
0
0
0
null
0
0
0
0
0
0
0
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
3655453ec3cba9a7add271df247684f5162ac346
1,918
py
Python
xinmei/tools/tensorflow_scripts/isolator.py
lh-ycx/tensorflow
fbb024db725f462de6a991541fed568ad4f75eb5
[ "Apache-2.0" ]
null
null
null
xinmei/tools/tensorflow_scripts/isolator.py
lh-ycx/tensorflow
fbb024db725f462de6a991541fed568ad4f75eb5
[ "Apache-2.0" ]
null
null
null
xinmei/tools/tensorflow_scripts/isolator.py
lh-ycx/tensorflow
fbb024db725f462de6a991541fed568ad4f75eb5
[ "Apache-2.0" ]
null
null
null
from functools import wraps __author__ = 'afpro' __email__ = 'admin@afpro.net' __all__ = [ 'isolator', ] class _Isolator: def __init__(self, fget): assert fget is not None self._fget = fget self._fset = None self._fdel = None def __get__(self, instance, owner): r...
23.108434
66
0.559437
220
1,918
4.577273
0.281818
0.031778
0.021847
0.059583
0.107249
0.065541
0.065541
0.065541
0.065541
0
0
0.012688
0.342544
1,918
82
67
23.390244
0.785884
0.361314
0
0.054054
0
0
0.046553
0
0
0
0
0
0.027027
1
0.243243
false
0
0.027027
0.027027
0.459459
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
365990dfded2764806071faee8f92e26be1b5256
11,529
py
Python
flask_restx_patched/parameters.py
WildMeOrg/wildbook-ia
a18d57611e5936bea02a964716466e062415aa1a
[ "Apache-2.0" ]
20
2021-01-19T23:17:21.000Z
2022-03-21T10:25:56.000Z
flask_restx_patched/parameters.py
solomonkimunyu/wildbook-ia
ac433d4f2a47b1d905c421a36c497f787003afc3
[ "Apache-2.0" ]
16
2021-01-28T23:05:29.000Z
2022-03-31T20:39:36.000Z
flask_restx_patched/parameters.py
solomonkimunyu/wildbook-ia
ac433d4f2a47b1d905c421a36c497f787003afc3
[ "Apache-2.0" ]
9
2021-02-13T20:19:46.000Z
2022-03-29T10:47:11.000Z
# -*- coding: utf-8 -*- # pylint: disable=missing-docstring import logging from six import itervalues from flask_login import current_user from flask_restx._http import HTTPStatus from flask_marshmallow import Schema, base_fields from marshmallow import validate, validates_schema, ValidationError import sqlalchemy as...
34.830816
111
0.609246
1,309
11,529
5.24217
0.23071
0.027689
0.024628
0.028855
0.367094
0.330662
0.330662
0.324104
0.308073
0.275138
0
0.003633
0.307659
11,529
330
112
34.936364
0.856051
0.268887
0
0.291209
0
0.005495
0.113241
0
0
0
0
0
0.005495
1
0.104396
false
0.065934
0.06044
0.010989
0.346154
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
365c783ef4289dbec9726c3801c39748f24d054f
4,087
py
Python
boggle/add2.py
WenJuiHuang/MyEricProject
e69c791c4a6b4df0013bcb7b7f400f4fba9e3711
[ "MIT" ]
null
null
null
boggle/add2.py
WenJuiHuang/MyEricProject
e69c791c4a6b4df0013bcb7b7f400f4fba9e3711
[ "MIT" ]
null
null
null
boggle/add2.py
WenJuiHuang/MyEricProject
e69c791c4a6b4df0013bcb7b7f400f4fba9e3711
[ "MIT" ]
null
null
null
""" File: add2.py Name: Eric ------------------------ TODO: The program will sum two linked lists and output one new linked list. The linked lists are stored in reverse order. EX: l1: 2->4->3 (342) l2: 5->6->4(465) output: 7->0->8(807) """ import sys class ListNode: def __init__(self, data=0, pointer=Non...
29.832117
106
0.477123
495
4,087
3.868687
0.226263
0.083551
0.074674
0.079896
0.526371
0.467363
0.45953
0.336815
0.190078
0.178068
0
0.056443
0.341081
4,087
136
107
30.051471
0.65466
0.159286
0
0.382979
0
0
0.085132
0.041367
0
0
0
0.014706
0
1
0.042553
false
0
0.010638
0
0.074468
0.202128
0
0
0
null
0
0
0
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
3665763d8b6fbd6869769e738d0eb88e9f5e367b
903
py
Python
first_class_functions.py
flashtechlearning/PythonCodes
31e9f90a51b52021447b75c55dfebb4784b303f0
[ "Apache-2.0" ]
null
null
null
first_class_functions.py
flashtechlearning/PythonCodes
31e9f90a51b52021447b75c55dfebb4784b303f0
[ "Apache-2.0" ]
1
2021-05-04T14:03:19.000Z
2021-05-04T14:03:19.000Z
first_class_functions.py
flashtechlearning/PythonCodes
31e9f90a51b52021447b75c55dfebb4784b303f0
[ "Apache-2.0" ]
null
null
null
################ # First class functions allow us to treat functions as any other variables or objects # Closures are functions that are local inner functions within outer functions that remember the arguments passed to the outer functions ################# def square(x): return x*x def my_map_function(func , arg_l...
17.705882
136
0.632337
128
903
4.3125
0.460938
0.036232
0.070652
0.068841
0.097826
0.097826
0
0
0
0
0
0.008671
0.233666
903
50
137
18.06
0.789017
0.3134
0
0
0
0
0.091222
0
0
0
0
0
0
1
0.285714
false
0
0
0.047619
0.47619
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
366a40310f999867063fc2fd1978154825cf3b4a
802
py
Python
pundun/constants.py
JohanVikman/pundunpy
d840199afef747da832efaa40ab58c3de9a820fe
[ "Apache-2.0" ]
null
null
null
pundun/constants.py
JohanVikman/pundunpy
d840199afef747da832efaa40ab58c3de9a820fe
[ "Apache-2.0" ]
null
null
null
pundun/constants.py
JohanVikman/pundunpy
d840199afef747da832efaa40ab58c3de9a820fe
[ "Apache-2.0" ]
null
null
null
from enum import Enum class CharFilter(Enum): nfc = 0 nfd = 1 nfkc = 2 nfkd = 2 class Comparator(Enum): descending = 0 ascending = 1 class DataModel(Enum): kv = 0 array = 1 map = 2 class HashingMethod(Enum): virtualnodes = 0 consistent = 1 uniform = 2 rendezvous =...
14.851852
29
0.614713
99
802
4.959596
0.535354
0.03666
0
0
0
0
0
0
0
0
0
0.053957
0.306733
802
53
30
15.132075
0.829137
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.02381
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
367092dc928b7ec6f5552d55529347e1bc2c5349
1,131
py
Python
jmetal/util/constraint_handling.py
badchild0912/jMetalPy
46ec02d143e1db97d97cc6b5826136558cb382c1
[ "MIT" ]
null
null
null
jmetal/util/constraint_handling.py
badchild0912/jMetalPy
46ec02d143e1db97d97cc6b5826136558cb382c1
[ "MIT" ]
null
null
null
jmetal/util/constraint_handling.py
badchild0912/jMetalPy
46ec02d143e1db97d97cc6b5826136558cb382c1
[ "MIT" ]
null
null
null
from jmetal.core.solution import Solution def is_feasible(solution): """ Returns a boolean value concerning the feasibility of a solution :param solution: :return: true if the solution is feasible; false otherwise """ return number_of_violated_constraints(solution) == 0 def number_of_violate...
28.275
118
0.702034
146
1,131
5.342466
0.328767
0.046154
0.042308
0.103846
0.214103
0.076923
0
0
0
0
0
0.006803
0.220159
1,131
39
119
29
0.877551
0.402299
0
0
0
0
0.044597
0
0
0
0
0
0
1
0.363636
false
0
0.090909
0
0.818182
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
36761a5811c95f31c83f92022111938b9943bd5e
4,582
py
Python
tests/bleTestsScripts/startTests_integration.py
mahavirj/amazon-freertos
729413cbe852ecc73e7ec38a4a32d3f65c8b0843
[ "MIT" ]
1
2019-08-24T16:48:13.000Z
2019-08-24T16:48:13.000Z
tests/bleTestsScripts/startTests_integration.py
mahavirj/amazon-freertos
729413cbe852ecc73e7ec38a4a32d3f65c8b0843
[ "MIT" ]
null
null
null
tests/bleTestsScripts/startTests_integration.py
mahavirj/amazon-freertos
729413cbe852ecc73e7ec38a4a32d3f65c8b0843
[ "MIT" ]
null
null
null
import Queue import sys import os import threading import securityAgent import testutils import time from testClass import runTest from bleAdapter import bleAdapter import dbus.mainloop.glib try: from gi.repository import GObject except ImportError: import gobject as GObject mainloop = GObject.MainLoop() notificat...
32.267606
156
0.751855
426
4,582
8.039906
0.392019
0.063066
0.070073
0.082336
0.098102
0.064234
0.064234
0.064234
0
0
0
0.002894
0.17045
4,582
141
157
32.496454
0.898185
0.138804
0
0.181818
0
0
0.016035
0
0
0
0
0.007092
0
0
null
null
0
0.131313
null
null
0.040404
0
0
0
null
0
0
0
0
0
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
3677e0978e5a3e8b888169091124448a2db88439
210
py
Python
lista4/Q2.py
AlexandrePeBrito/Python
79a09b1fb8e705dc7b6859d977c8916a2d0dd4d0
[ "MIT" ]
null
null
null
lista4/Q2.py
AlexandrePeBrito/Python
79a09b1fb8e705dc7b6859d977c8916a2d0dd4d0
[ "MIT" ]
null
null
null
lista4/Q2.py
AlexandrePeBrito/Python
79a09b1fb8e705dc7b6859d977c8916a2d0dd4d0
[ "MIT" ]
null
null
null
#Faça um Programa que leia um vetor de 10 números reais #e mostre-os na ordem inversa. vetor=[] for c in range(0,5): vetor.append(int(input("Informe um numero: "))) print(vetor) vetor.reverse() print(vetor)
26.25
55
0.719048
37
210
4.081081
0.783784
0.13245
0
0
0
0
0
0
0
0
0
0.022346
0.147619
210
8
56
26.25
0.821229
0.395238
0
0.333333
0
0
0.150794
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
367a89f9050d4b03ddce75cd4bec6b2f35c591ed
78,926
py
Python
data/game.py
kennethsinder/exit-dash-hyperion
d44ea77ef5e8a6ce9490e3f802636da5b44e6e74
[ "MIT" ]
2
2018-01-29T14:34:51.000Z
2020-10-20T23:30:26.000Z
data/game.py
kennethsinder/exit-dash-hyperion
d44ea77ef5e8a6ce9490e3f802636da5b44e6e74
[ "MIT" ]
null
null
null
data/game.py
kennethsinder/exit-dash-hyperion
d44ea77ef5e8a6ce9490e3f802636da5b44e6e74
[ "MIT" ]
null
null
null
# coding=utf-8 import sys, math, pygame, os.path, keymap as k, random as r from pygame.locals import * from data.aicharacter import AICharacter from data.background import Background from data.backgroundfoliage import BackgroundFoliage from data.block import Block from data.checkpoint import Checkpoint from dat...
49.764187
122
0.526506
7,379
78,926
5.614446
0.124543
0.025417
0.011948
0.009172
0.375679
0.291752
0.235994
0.182988
0.146878
0.120833
0
0.020775
0.30597
78,926
1,585
123
49.795584
0.735546
0.122545
0
0.251497
0
0
0.031817
0.001066
0
0
0
0
0
0
null
null
0
0.011976
null
null
0.044482
0
0
0
null
0
0
0
0
0
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
36851b1a86bc93dfce82327003faf8df2077ce68
1,204
py
Python
epitran/test/test_farsi.py
dwijap/epitran
dab70c269710e73c1c7bf69c2de5d69b57a1d237
[ "MIT" ]
422
2016-05-19T09:07:38.000Z
2022-03-31T15:06:36.000Z
epitran/test/test_farsi.py
dwijap/epitran
dab70c269710e73c1c7bf69c2de5d69b57a1d237
[ "MIT" ]
80
2017-05-22T14:58:19.000Z
2022-03-28T19:23:31.000Z
epitran/test/test_farsi.py
dwijap/epitran
dab70c269710e73c1c7bf69c2de5d69b57a1d237
[ "MIT" ]
95
2017-05-06T04:19:53.000Z
2022-03-21T10:41:42.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import unittest import epitran class TestSorani(unittest.TestCase): def setUp(self): self.epi = epitran.Epitran(u'fas-Arab') def test_faarsi(self): tr = self.epi.transliterate('فارسی') self.assertEqual(tr, 'fɒrsj') ...
24.571429
47
0.61794
148
1,204
4.952703
0.371622
0.095498
0.122783
0.159618
0.319236
0
0
0
0
0
0
0.001093
0.240033
1,204
48
48
25.083333
0.796721
0.017442
0
0
0
0
0.076207
0
0
0
0
0
0.272727
1
0.30303
false
0
0.090909
0
0.424242
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
3685d19351bab658dbf5228d6f4900b87a034ac8
4,936
py
Python
qplan/promsdb.py
monodera/qplan
95a4633e5a5f861e9ecda9df7424fc18413d2d49
[ "BSD-3-Clause" ]
null
null
null
qplan/promsdb.py
monodera/qplan
95a4633e5a5f861e9ecda9df7424fc18413d2d49
[ "BSD-3-Clause" ]
null
null
null
qplan/promsdb.py
monodera/qplan
95a4633e5a5f861e9ecda9df7424fc18413d2d49
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function #!/usr/bin/env python # Connect to the ProMS MySQL user database. Includes queries for ProMS # ID and ProMS ID/password. import os, sys import MySQLdb import sqlalchemy import logging from sqlsoup import SQLSoup as SqlSoup from ginga.misc import log class ProMSdbError(Exception...
33.127517
100
0.598055
598
4,936
4.827759
0.26087
0.031174
0.054035
0.066505
0.170419
0.142709
0.062348
0.0478
0.0478
0.031174
0
0.001138
0.288088
4,936
148
101
33.351351
0.820433
0.069895
0
0.186916
0
0
0.179913
0
0
0
0
0
0
1
0.046729
false
0.084112
0.093458
0
0.186916
0.018692
0
0
0
null
0
0
0
0
0
0
0
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
3693424a7ade19f856040f092a3dfbb6b664cf05
1,819
py
Python
envname/lib/python3.6/site-packages/bidict/_dup.py
shadrul/tailf
7d07ee1be9a6a101351de286e5dd0d018a3b4a82
[ "MIT" ]
1
2022-03-15T08:34:41.000Z
2022-03-15T08:34:41.000Z
envname/lib/python3.6/site-packages/bidict/_dup.py
shadrul/tailf
7d07ee1be9a6a101351de286e5dd0d018a3b4a82
[ "MIT" ]
null
null
null
envname/lib/python3.6/site-packages/bidict/_dup.py
shadrul/tailf
7d07ee1be9a6a101351de286e5dd0d018a3b4a82
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2009-2021 Joshua Bronson. All Rights Reserved. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. """Provide :class:`OnDup` and rela...
30.830508
112
0.685542
268
1,819
4.485075
0.451493
0.058236
0.039933
0.028286
0.054908
0.054908
0.054908
0.054908
0
0
0
0.010054
0.179769
1,819
58
113
31.362069
0.795576
0.560198
0
0
0
0
0.073138
0
0
0
0
0
0
1
0.105263
false
0
0.105263
0.052632
0.631579
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
3693c34d0b426b90cc229bec9c588655705c3253
2,991
py
Python
api/account/views.py
kartikeyahl/cartoonize
ada87c59f363197c93bdb1cc37b3c8b422de120b
[ "Apache-2.0" ]
null
null
null
api/account/views.py
kartikeyahl/cartoonize
ada87c59f363197c93bdb1cc37b3c8b422de120b
[ "Apache-2.0" ]
null
null
null
api/account/views.py
kartikeyahl/cartoonize
ada87c59f363197c93bdb1cc37b3c8b422de120b
[ "Apache-2.0" ]
null
null
null
from django.views.decorators.csrf import csrf_exempt from django.contrib.auth import authenticate, login from django.core.serializers import serialize from django.contrib.auth.models import User from django.contrib.auth import logout from django.http import JsonResponse from django.shortcuts import render from .models ...
39.88
141
0.688399
364
2,991
5.57967
0.258242
0.097489
0.038405
0.039389
0.279665
0.177253
0.133924
0.095519
0
0
0
0.000422
0.208292
2,991
75
142
39.88
0.857264
0.037111
0
0.308824
0
0
0.109451
0
0
0
0
0
0
1
0.088235
false
0.073529
0.191176
0
0.441176
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
3695841916d5f4389c57d410203a16fc97a808fa
7,793
py
Python
mysos/executor/mysql_task_control.py
programwithebay/ApacheMysos
f4f7e459a51e957eeeef989b3ecdaac29393fa45
[ "Apache-2.0" ]
null
null
null
mysos/executor/mysql_task_control.py
programwithebay/ApacheMysos
f4f7e459a51e957eeeef989b3ecdaac29393fa45
[ "Apache-2.0" ]
null
null
null
mysos/executor/mysql_task_control.py
programwithebay/ApacheMysos
f4f7e459a51e957eeeef989b3ecdaac29393fa45
[ "Apache-2.0" ]
null
null
null
import json import os import subprocess import threading from mysos.common.decorators import synchronized from .sandbox import Sandbox from .task_control import TaskControl, TaskControlProvider from twitter.common import log from twitter.common.quantity import Amount, Data import yaml MEM_FRACTION_FOR_BUFFER_POOL ...
36.586854
99
0.672142
1,049
7,793
4.760725
0.20877
0.032038
0.036444
0.02523
0.310773
0.245895
0.19143
0.157389
0.157389
0.157389
0
0.001643
0.219043
7,793
212
100
36.759434
0.818929
0.13602
0
0.20625
0
0.0125
0.197893
0.016855
0
0
0
0.009434
0.00625
1
0.04375
false
0.0625
0.0625
0
0.15
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
36a33c6c1343c8796b5f62a75fe4bb8c28f7a2c9
419
py
Python
Back/Apps/migrations/0005_alter_diaries_publish_time.py
Tisfy/Calendar
ef6062845a80552cfe1f5632999a4321728030ab
[ "Apache-2.0" ]
4
2022-01-31T14:17:32.000Z
2022-03-09T09:49:19.000Z
Back/Apps/migrations/0005_alter_diaries_publish_time.py
Tisfy/Calendar
ef6062845a80552cfe1f5632999a4321728030ab
[ "Apache-2.0" ]
null
null
null
Back/Apps/migrations/0005_alter_diaries_publish_time.py
Tisfy/Calendar
ef6062845a80552cfe1f5632999a4321728030ab
[ "Apache-2.0" ]
1
2022-03-09T09:49:23.000Z
2022-03-09T09:49:23.000Z
# Generated by Django 3.2 on 2022-02-15 07:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Apps', '0004_diaries_publish_time'), ] operations = [ migrations.AlterField( model_name='diaries', name='publish_time'...
22.052632
79
0.620525
46
419
5.478261
0.782609
0.087302
0
0
0
0
0
0
0
0
0
0.058632
0.267303
419
18
80
23.277778
0.762215
0.102625
0
0
1
0
0.139037
0.066845
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
36a7bd7e1478ee9cca3c03303665aefc104152d7
1,581
py
Python
Insert @start tag.py
duncanmacintyre/editorialprojects
8431abd77bebd7de422dd383edbd0132fee0119f
[ "MIT" ]
null
null
null
Insert @start tag.py
duncanmacintyre/editorialprojects
8431abd77bebd7de422dd383edbd0132fee0119f
[ "MIT" ]
null
null
null
Insert @start tag.py
duncanmacintyre/editorialprojects
8431abd77bebd7de422dd383edbd0132fee0119f
[ "MIT" ]
null
null
null
# Insert @start tag # A workflow for the iOS text editor Editorial # Copyright (c) 2017 Duncan MacIntyre # Licensed under the MIT License, see LICENSE.txt # This workflow, when run, prompts the user to select a date. @start(YYYY-MM-DD) is then inserted # at the cursor, where YYYY-MM-DD is the selected date. import da...
41.605263
99
0.733713
257
1,581
4.474708
0.392996
0.090435
0.027826
0.026087
0.116522
0.050435
0.050435
0.050435
0.050435
0
0
0.004615
0.177736
1,581
37
100
42.72973
0.88
0.641366
0
0
0
0
0.102004
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
36a9830f5417cfd6617e6501daf1dfe462757352
7,746
py
Python
dcoding_1d/views.py
zsazn/dcoding
8c2d1b95d2adc7a2f076b1a831173c81eccdb259
[ "MIT" ]
null
null
null
dcoding_1d/views.py
zsazn/dcoding
8c2d1b95d2adc7a2f076b1a831173c81eccdb259
[ "MIT" ]
null
null
null
dcoding_1d/views.py
zsazn/dcoding
8c2d1b95d2adc7a2f076b1a831173c81eccdb259
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Author: Zheng Zhou # Date: 8/8/2018 from __future__ import unicode_literals from django.core.exceptions import ObjectDoesNotExist from django.http import JsonResponse, Http404 from django.shortcuts import render, HttpResponse, get_object_or_404, from django.shortcuts import HttpResponseRedire...
42.56044
80
0.501549
778
7,746
4.713368
0.205656
0.032724
0.030543
0.02318
0.381783
0.335151
0.31279
0.281156
0.281156
0.26534
0
0.014624
0.417377
7,746
181
81
42.79558
0.797917
0.034728
0
0.390728
0
0
0.074203
0.007902
0
0
0
0
0
0
null
null
0
0.086093
null
null
0.006623
0
0
0
null
0
0
0
0
0
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
36ac3080eb7eec23b2c9d6d4e529576af8801649
4,221
py
Python
Funcoes/func_plot.py
Matheuslanna/Projeto_Final_Bootcamp_Alura
e7b4d752889b7454935d4c22dbab68c71cabd8d3
[ "MIT" ]
null
null
null
Funcoes/func_plot.py
Matheuslanna/Projeto_Final_Bootcamp_Alura
e7b4d752889b7454935d4c22dbab68c71cabd8d3
[ "MIT" ]
null
null
null
Funcoes/func_plot.py
Matheuslanna/Projeto_Final_Bootcamp_Alura
e7b4d752889b7454935d4c22dbab68c71cabd8d3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """func_plot.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1XgKjBadc3CguueQZ0AOPpgaD8RKfrPJF """ import pandas as pd import numpy as np import matplotlib.pyplot as plt import matplotlib.transforms as transforms import se...
42.636364
179
0.650083
571
4,221
4.770578
0.34676
0.036711
0.023862
0.023495
0.273862
0.215859
0.215859
0.215859
0.215859
0.187959
0
0.026316
0.207771
4,221
99
180
42.636364
0.788278
0.402037
0
0.044444
1
0
0.065962
0
0
0
0
0
0
1
0.066667
false
0
0.111111
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
36b35cc6712c154dc1a75b8c9b2d8b6590c46f54
1,792
py
Python
python/lsst/eo_utils/fe55/file_utils.py
lsst-camera-dh/EO-utilities
28418284fdaf2b2fb0afbeccd4324f7ad3e676c8
[ "BSD-3-Clause-LBNL" ]
1
2019-05-21T22:40:20.000Z
2019-05-21T22:40:20.000Z
python/lsst/eo_utils/fe55/file_utils.py
lsst-camera-dh/EO-utilities
28418284fdaf2b2fb0afbeccd4324f7ad3e676c8
[ "BSD-3-Clause-LBNL" ]
2
2018-01-26T18:59:05.000Z
2020-12-03T17:50:46.000Z
python/lsst/eo_utils/fe55/file_utils.py
lsst-camera-dh/EO-utilities
28418284fdaf2b2fb0afbeccd4324f7ad3e676c8
[ "BSD-3-Clause-LBNL" ]
1
2018-01-11T22:50:35.000Z
2018-01-11T22:50:35.000Z
#!/usr/bin/env python # -*- python -*- """This module contains functions to find files of a particular type in the SLAC directory tree""" from lsst.eo_utils.base.file_utils import FILENAME_FORMATS,\ SLOT_FORMAT_STRING, RAFT_FORMAT_STRING, SUMMARY_FORMAT_STRING FE55_DEFAULT_FIELDS = dict(testType='fe55') RAFT_...
57.806452
98
0.522879
160
1,792
5.375
0.29375
0.125581
0.138372
0.188372
0.655814
0.639535
0.639535
0
0
0
0
0.038023
0.412946
1,792
30
99
59.733333
0.779468
0.071429
0
0.571429
0
0
0.073627
0
0
0
0
0
0
1
0
false
0
0.047619
0
0.047619
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
36b421f9f90a03b16e028b5b8854035bb98fb8a0
476
py
Python
Poligonos.py
MoisesRiv/curriculumvitale
0d0b9434cb5ab33a7c606fb8a86441b92ebab543
[ "MIT" ]
null
null
null
Poligonos.py
MoisesRiv/curriculumvitale
0d0b9434cb5ab33a7c606fb8a86441b92ebab543
[ "MIT" ]
null
null
null
Poligonos.py
MoisesRiv/curriculumvitale
0d0b9434cb5ab33a7c606fb8a86441b92ebab543
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -+- import turtle def main(): window = turtle.Screen() moy = turtle.Turtle() makeSquare(moy) turtle.mainloop() def makeSquare(moy): length = int(input('Tamaño de polígono: ')) part = int(input('Cantidad de lados: ')) for i in range(part): makeLineAndTurn(moy, le...
21.636364
47
0.621849
59
476
4.881356
0.525424
0.09375
0.166667
0.194444
0
0
0
0
0
0
0
0.010899
0.228992
476
22
48
21.636364
0.773842
0.044118
0
0
0
0
0.103524
0
0
0
0
0
0
1
0.176471
false
0
0.058824
0
0.235294
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
36b87c6b0d8aa15f0b0f356ea7b0a85f14eeb22c
18,506
py
Python
ifermi/slice.py
whzhangg/IFermi
511c69acd1e5ac849f073d435210a25a603d5bcb
[ "MIT" ]
32
2021-03-02T14:51:46.000Z
2022-03-18T18:56:48.000Z
ifermi/slice.py
skphy/IFermi
41a7a942e30723dcbe0e7eb2d51cc9ff5921d3ee
[ "MIT" ]
24
2021-03-04T00:09:06.000Z
2022-03-29T09:59:38.000Z
ifermi/slice.py
skphy/IFermi
41a7a942e30723dcbe0e7eb2d51cc9ff5921d3ee
[ "MIT" ]
17
2021-03-06T08:55:59.000Z
2022-02-03T15:15:58.000Z
"""Tools to generate Isolines and Fermi slices.""" import warnings from dataclasses import dataclass from typing import Collection, Dict, List, Optional, Tuple, Union import numpy as np from monty.json import MSONable from pymatgen.core.structure import Structure from pymatgen.electronic_structure.core import Spin fr...
35.725869
88
0.621204
2,344
18,506
4.797355
0.163823
0.027212
0.006225
0.011561
0.318097
0.269809
0.265718
0.265718
0.24064
0.233704
0
0.006683
0.296552
18,506
517
89
35.794971
0.857121
0.362315
0
0.287938
1
0
0.037186
0
0
0
0
0
0
1
0.077821
false
0
0.062257
0
0.249027
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
36bda297b7d9e26a24fec60b38e5e822bca56f15
2,129
py
Python
shotmanager/sim/StressPerformance.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
68
2019-09-23T03:27:05.000Z
2022-03-12T03:00:41.000Z
shotmanager/sim/StressPerformance.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
22
2019-10-26T20:15:56.000Z
2022-02-12T05:41:56.000Z
shotmanager/sim/StressPerformance.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
33
2019-09-29T19:52:19.000Z
2022-03-12T03:00:43.000Z
# # This is the entry point for MavProxy running DroneAPI on the vehicle # Usage: # * mavproxy.py # * module load api # * api start TestPerformance.py # import time from pymavlink import mavutil UPDATE_RATE = 50.0 class ShotManager(): def __init__(self): # First get an instance of the API endpoint ...
43.44898
133
0.371066
176
2,129
4.346591
0.505682
0.026144
0.031373
0.031373
0.27451
0.253595
0.253595
0.243137
0.243137
0.243137
0
0.049614
0.573978
2,129
49
134
43.44898
0.793826
0.204791
0
0.142857
0
0
0
0
0
0
0
0
0
1
0.035714
false
0
0.071429
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
36c3e33164dfe6ce5609d5720688fed8896540b9
677
py
Python
src/uploads/migrations/0005_auto_20200411_2349.py
snhasan/zia-academy
8f650d6d225e399b981b148c615a6a9aa558e5d6
[ "bzip2-1.0.6" ]
null
null
null
src/uploads/migrations/0005_auto_20200411_2349.py
snhasan/zia-academy
8f650d6d225e399b981b148c615a6a9aa558e5d6
[ "bzip2-1.0.6" ]
null
null
null
src/uploads/migrations/0005_auto_20200411_2349.py
snhasan/zia-academy
8f650d6d225e399b981b148c615a6a9aa558e5d6
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 2.0.7 on 2020-04-11 17:49 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('uploads', '0004_auto_20200411_2319'), ] operations = [ migrations.AddField( model_name='upload', nam...
27.08
140
0.581979
71
677
5.450704
0.704225
0.046512
0.077519
0.098191
0
0
0
0
0
0
0
0.066398
0.265879
677
24
141
28.208333
0.712274
0.06647
0
0.222222
1
0
0.152381
0.036508
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
36c41599aee6de065548da2143cd412d4ad36eae
3,809
py
Python
imago/imago.py
jdfrid/imago-forensics
a73f078cf2254b12e0ca86049d58ced50de4bcd4
[ "MIT" ]
208
2018-08-05T20:03:26.000Z
2022-02-18T00:27:59.000Z
imago/imago.py
HD0T/imago-forensics
2cfe7419f6dba00cc0dc86e4cab17d88d29c9260
[ "MIT" ]
4
2018-11-21T12:22:33.000Z
2020-10-17T14:04:54.000Z
imago/imago.py
HD0T/imago-forensics
2cfe7419f6dba00cc0dc86e4cab17d88d29c9260
[ "MIT" ]
56
2018-08-23T15:44:06.000Z
2022-01-21T10:14:41.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os,sys import argparse import extractor import helper from os import walk def main(args=None): print """\ ################################################## # imago.py # # Digital evidences from images! # # Mad...
37.712871
220
0.659491
494
3,809
5
0.303644
0.024292
0.068826
0.051012
0.091093
0.083401
0.044534
0.044534
0.044534
0.044534
0
0.009801
0.169598
3,809
100
221
38.09
0.771103
0.028091
0
0.215909
0
0.022727
0.33126
0.027042
0
0
0
0
0
0
null
null
0
0.056818
null
null
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
36c6c814bc448dcf3dfb6d789f11d081f37c5836
1,318
py
Python
FFdoc.github.io/Gitffweb/Store/models.py
pection-zz/Allproject
25dd122cb4b30a360894aba0be4b4a62f465b68e
[ "MIT" ]
2
2020-09-19T04:22:52.000Z
2020-09-23T14:04:17.000Z
FFdoc.github.io/Gitffweb/Store/models.py
pection/Allproject
25dd122cb4b30a360894aba0be4b4a62f465b68e
[ "MIT" ]
null
null
null
FFdoc.github.io/Gitffweb/Store/models.py
pection/Allproject
25dd122cb4b30a360894aba0be4b4a62f465b68e
[ "MIT" ]
2
2020-09-13T03:47:22.000Z
2020-09-23T14:04:19.000Z
from django.db.models.signals import post_save from django.conf import settings from django.db import models from django.db.models import Sum from django.shortcuts import reverse from django_countries.fields import CountryField CATEGORY_CHOICES = ( ('S', 'Shirt'), ('SW', 'Sport wear'), ('OW', 'Outwear') ) ...
25.346154
71
0.641882
159
1,318
5.163522
0.446541
0.073082
0.043849
0.073082
0.187576
0.126675
0
0
0
0
0
0.004864
0.22003
1,318
51
72
25.843137
0.793774
0
0
0.139535
0
0
0.098709
0.015945
0
0
0
0
0
1
0.093023
false
0
0.139535
0.093023
0.534884
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
36c93d20d57a585f7d6f72b6c6a67cb7ea4dad42
12,931
py
Python
test/py/ganeti.utils.algo_unittest.py
apyrgio/snf-ganeti
c59bb92f5bf4a98d90b4f10fb509a5a2f11c65b7
[ "BSD-2-Clause" ]
2
2018-09-26T10:09:23.000Z
2018-09-27T07:27:06.000Z
test/py/ganeti.utils.algo_unittest.py
apyrgio/snf-ganeti
c59bb92f5bf4a98d90b4f10fb509a5a2f11c65b7
[ "BSD-2-Clause" ]
null
null
null
test/py/ganeti.utils.algo_unittest.py
apyrgio/snf-ganeti
c59bb92f5bf4a98d90b4f10fb509a5a2f11c65b7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # # Copyright (C) 2011, 2012 Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # 1. Redistributions of source code must retain the above copyright notice, # this l...
33.850785
79
0.602351
1,737
12,931
4.424295
0.208981
0.012752
0.011321
0.009889
0.377879
0.260898
0.224203
0.19961
0.138712
0.121926
0
0.072329
0.220555
12,931
381
80
33.939633
0.690148
0.119326
0
0.128205
0
0
0.159135
0.027931
0
0
0
0
0.208791
0
null
null
0
0.025641
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
36cc377a708c371b6912a8a7063a4373baef37e0
2,495
py
Python
generate_tags_fashion_iq.py
huynhtruc0309/VAL
adaf51ee8b6544a889c1ae2e592b555b311290cb
[ "Apache-2.0" ]
48
2020-07-08T09:15:03.000Z
2022-02-02T15:10:00.000Z
generate_tags_fashion_iq.py
huynhtruc0309/VAL
adaf51ee8b6544a889c1ae2e592b555b311290cb
[ "Apache-2.0" ]
12
2020-07-27T13:33:08.000Z
2021-12-14T13:38:07.000Z
generate_tags_fashion_iq.py
huynhtruc0309/VAL
adaf51ee8b6544a889c1ae2e592b555b311290cb
[ "Apache-2.0" ]
11
2020-08-14T03:03:37.000Z
2021-09-18T11:01:02.000Z
import json import os #### generate text descriptions based on the attribute tags of each asin readpaths = [ ['datasets/fashion_iq/image_tag_dataset/tags/asin2attr.dress.train.json', \ 'datasets/fashion_iq/image_tag_dataset/tags/asin2attr.shirt.train.json', \ 'datasets/fashion_iq/image_tag_dataset/tags/asin2attr...
36.15942
86
0.677355
337
2,495
4.875371
0.302671
0.071211
0.124163
0.120511
0.408399
0.354839
0.314668
0.314668
0.314668
0.284236
0
0.01079
0.182766
2,495
68
87
36.691176
0.794998
0.078958
0
0
1
0
0.352477
0.326173
0
0
0
0
0
1
0.034483
false
0
0.034483
0
0.103448
0.017241
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
36ccc43fac4999ca2dc7dff46e8f03c1993a545e
542
py
Python
selfbotUtils/__init__.py
adam757521/selfbotUtils
28f69cd0cd5dec2292c34bfff1ee3a5919595a29
[ "MIT" ]
4
2021-10-15T23:27:03.000Z
2022-02-28T03:04:55.000Z
selfbotUtils/__init__.py
adam757521/selfbotUtils
28f69cd0cd5dec2292c34bfff1ee3a5919595a29
[ "MIT" ]
null
null
null
selfbotUtils/__init__.py
adam757521/selfbotUtils
28f69cd0cd5dec2292c34bfff1ee3a5919595a29
[ "MIT" ]
null
null
null
""" selfbotUtils ~~~~~~~~~~~~ A python module that makes selfbot creation extremely easy, without risking your account being phonebanned! :copyright: (c) 2021-present adam7100 :license: MIT, see LICENSE for more details. """ from .http import HTTPClient from .client import Client from .enums import NitroServerRespons...
25.809524
107
0.771218
64
542
6.21875
0.6875
0.055276
0.095477
0
0
0
0
0
0
0
0
0.048832
0.130996
542
20
108
27.1
0.796178
0.400369
0
0
0
0
0.18612
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
36ccd8e25cf62d402f818733c4d2d278c212012b
806
py
Python
mayan/apps/file_caching/tests/test_models.py
sophiawa/Mayan-EDMS
42f20576d0c690b645a60bf53c5169cda4264231
[ "Apache-2.0" ]
null
null
null
mayan/apps/file_caching/tests/test_models.py
sophiawa/Mayan-EDMS
42f20576d0c690b645a60bf53c5169cda4264231
[ "Apache-2.0" ]
10
2021-03-20T00:01:17.000Z
2022-03-12T00:48:43.000Z
mayan/apps/file_caching/tests/test_models.py
sophiawa/Mayan-EDMS
42f20576d0c690b645a60bf53c5169cda4264231
[ "Apache-2.0" ]
1
2020-12-17T02:35:09.000Z
2020-12-17T02:35:09.000Z
import mock from mayan.apps.common.tests.base import BaseTestCase from .mixins import CacheTestMixin class CacheModelTestCase(CacheTestMixin, BaseTestCase): def test_cache_purge(self): self._create_test_cache() self._create_test_cache_partition() self._create_test_cache_partition_file() ...
29.851852
79
0.754342
103
806
5.436893
0.330097
0.160714
0.15
0.203571
0.5375
0.421429
0.421429
0.421429
0.421429
0.282143
0
0
0.165012
806
26
80
31
0.832095
0
0
0.352941
0
0
0.034739
0.034739
0
0
0
0
0.117647
1
0.117647
false
0
0.176471
0
0.352941
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
36d919408941ef9660c56f4bf8f29d6d3c8e9e69
2,011
py
Python
python/sampledrv.py
grodansparadis/vscpl3drv-template
fdff5a0b2472200f95b187882646bcd3bf4752d0
[ "MIT" ]
1
2022-01-24T20:20:59.000Z
2022-01-24T20:20:59.000Z
python/sampledrv.py
grodansparadis/vscpl3drv-template
fdff5a0b2472200f95b187882646bcd3bf4752d0
[ "MIT" ]
null
null
null
python/sampledrv.py
grodansparadis/vscpl3drv-template
fdff5a0b2472200f95b187882646bcd3bf4752d0
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import socket import threading import time exitFlag = 0 # https://www.tutorialspoint.com/python/python_multithreading.htm class myThread (threading.Thread): def __init__(self, threadID, name, counter): threading.Thread.__init__(self) self.threadID = threadID ...
23.658824
65
0.608652
258
2,011
4.670543
0.426357
0.026556
0.028216
0
0
0
0
0
0
0
0
0.023098
0.268026
2,011
84
66
23.940476
0.795516
0.163103
0
0
0
0
0.082085
0
0
0
0
0
0
0
null
null
0
0.081967
null
null
0.196721
0
0
0
null
0
0
0
0
0
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
36d946afda294b83c2e2822904a7a41e5e7dd127
12,594
py
Python
tests/functionaltests.py
dongniu/cadnano2
6805fe2af856c59b06373c0ee0142ad6bc286262
[ "Unlicense" ]
17
2015-02-07T03:46:49.000Z
2021-09-25T09:23:41.000Z
tests/functionaltests.py
scholer/cadnano2
0b8bba1ab3277ac9859ef78615890d351561784c
[ "Unlicense" ]
2
2017-08-22T03:17:16.000Z
2021-07-03T14:42:41.000Z
tests/functionaltests.py
scholer/cadnano2
0b8bba1ab3277ac9859ef78615890d351561784c
[ "Unlicense" ]
9
2015-09-06T22:41:38.000Z
2022-03-27T13:57:37.000Z
# The MIT License # # Copyright (c) 2011 Wyss Institute at Harvard University # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # ...
49.778656
379
0.615134
1,160
12,594
6.332759
0.30431
0.026545
0.033079
0.045331
0.401443
0.391097
0.376668
0.339641
0.336101
0.336101
0
0.024911
0.244561
12,594
252
380
49.97619
0.747215
0.460775
0
0.281553
0
0
0.097035
0.048903
0
0
0
0
0.087379
0
null
null
0.009709
0.087379
null
null
0.009709
0
0
0
null
0
0
0
0
0
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
36db313882dd298f10446e813263dcb96974b64f
3,570
py
Python
HelperScripts/generatePulseFiles.py
rmukh/DW-POSSUM
f7b897b8ef9009b33573dfffb1c43af8e4cc95fb
[ "MIT" ]
10
2017-08-03T16:02:30.000Z
2021-12-02T13:19:14.000Z
HelperScripts/generatePulseFiles.py
rmukh/DW-POSSUM
f7b897b8ef9009b33573dfffb1c43af8e4cc95fb
[ "MIT" ]
9
2017-07-17T14:07:28.000Z
2021-12-09T09:43:27.000Z
HelperScripts/generatePulseFiles.py
rmukh/DW-POSSUM
f7b897b8ef9009b33573dfffb1c43af8e4cc95fb
[ "MIT" ]
6
2018-10-03T03:41:33.000Z
2020-12-20T12:24:37.000Z
#!/usr/bin/env python #Code to generate distorted pulse files only a full shell of diffusion-weighted, eddy distorted images using FSL's possum. from __future__ import absolute_import from __future__ import division from __future__ import print_function # Handle arguments (before slow imports so --help can be fast) im...
31.59292
152
0.756022
527
3,570
5.018975
0.398482
0.020416
0.038563
0.00983
0.014367
0
0
0
0
0
0
0.015235
0.135854
3,570
112
153
31.875
0.842139
0.205322
0
0.082192
1
0.013699
0.188766
0
0
0
0
0
0
1
0.013699
false
0.013699
0.191781
0
0.232877
0.041096
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
36e28405c2714ea846ad616699b4b81bff82c154
19,381
py
Python
Validation/RecoMuon/python/associators_cff.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
Validation/RecoMuon/python/associators_cff.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
Validation/RecoMuon/python/associators_cff.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms #Track selector from Validation.RecoMuon.selectors_cff import * #TrackAssociation from SimTracker.TrackAssociatorProducers.trackAssociatorByChi2_cfi import * import SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi import SimTracker.TrackAssociatorProducers.tr...
46.25537
167
0.851246
1,436
19,381
11.408078
0.159471
0.030888
0.058113
0.06324
0.350385
0.327616
0.183067
0.145831
0.145831
0.145831
0
0.00971
0.070069
19,381
418
168
46.366029
0.89924
0.039626
0
0.116352
0
0
0.130966
0.053699
0
0
0
0
0
1
0
false
0
0.034591
0
0.034591
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
36ece4a62747da38d2e90338b94bddcb1407fc0e
10,611
py
Python
examples/minitwit/fabfile.py
txdywy/flask
5cf167b448267aedec8f5b2e30ad4ee0ad9b3f55
[ "BSD-3-Clause" ]
2
2015-08-07T18:01:01.000Z
2015-08-14T03:29:10.000Z
examples/minitwit/fabfile.py
txdywy/flask
5cf167b448267aedec8f5b2e30ad4ee0ad9b3f55
[ "BSD-3-Clause" ]
2
2015-03-30T05:28:35.000Z
2015-06-28T01:08:50.000Z
examples/minitwit/fabfile.py
txdywy/flask
5cf167b448267aedec8f5b2e30ad4ee0ad9b3f55
[ "BSD-3-Clause" ]
2
2015-03-04T05:06:55.000Z
2015-03-29T22:46:19.000Z
from fabric.api import * import datetime env.use_ssh_config = True #env.hosts = ['sushi', 'polo', 'noodle'] def localhost(): #env.use_ssh_config = False global run run = local def send(file): put(file, '~/') def recv(file): get(file, './') def wget(url): with cd('/tmp'): run('wget ...
33.367925
156
0.477523
1,304
10,611
3.828221
0.260736
0.134615
0.076122
0.041466
0.152444
0.075921
0.069912
0.056691
0.034455
0.034455
0
0.096311
0.297427
10,611
317
157
33.473186
0.573307
0.443691
0
0.096774
0
0.012903
0.230581
0.045661
0
0
0
0
0
0
null
null
0
0.032258
null
null
0.083871
0
0
0
null
0
0
0
0
0
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
36ee6da45043fa698c59b2ec8180e11147866bec
1,578
py
Python
factories/user_education_factory.py
Maxcutex/pm_api
de1e1a07feecd1be7bb86a87b4ffed012a05aec0
[ "MIT" ]
null
null
null
factories/user_education_factory.py
Maxcutex/pm_api
de1e1a07feecd1be7bb86a87b4ffed012a05aec0
[ "MIT" ]
null
null
null
factories/user_education_factory.py
Maxcutex/pm_api
de1e1a07feecd1be7bb86a87b4ffed012a05aec0
[ "MIT" ]
null
null
null
import factory from faker import Faker from faker.providers import internet, company, job, date_time, lorem, address from app.models import UserEducation from app.utils import db from factories.user_factory import UserFactory fake = Faker() fake.add_provider(internet) fake.add_provider(company) fake.add_provider(job)...
30.346154
88
0.738276
187
1,578
6.058824
0.331551
0.03707
0.079435
0.067079
0.492498
0.492498
0.492498
0.492498
0.492498
0.492498
0
0
0.163498
1,578
51
89
30.941176
0.858333
0
0
0.604651
0
0
0.110266
0
0
0
0
0
0
1
0
false
0
0.139535
0
0.744186
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
36f2b6f704f9204a9b20d474bb304fed9018077a
628
py
Python
PlatformIO/Simple/build.py
DecoChrom/Arduino
a8bf6d19864cff1d2acd45d631ece2c79f581bf7
[ "MIT" ]
null
null
null
PlatformIO/Simple/build.py
DecoChrom/Arduino
a8bf6d19864cff1d2acd45d631ece2c79f581bf7
[ "MIT" ]
null
null
null
PlatformIO/Simple/build.py
DecoChrom/Arduino
a8bf6d19864cff1d2acd45d631ece2c79f581bf7
[ "MIT" ]
null
null
null
Import("env", "projenv") import string, os, shutil PROJECT_DIR = projenv['PROJECT_DIR'] PROJECT_NAME = projenv['PROJECT_DIR'].rsplit('\\', 1)[1] SOURCE_FILE = os.path.join(projenv['PROJECTSRC_DIR'], "main.cpp") ARDUINO_DIR = os.path.join(PROJECT_DIR, "..\..", PROJECT_NAME) INO_FILE = PROJECT_NAME + ".ino" ARDUINO_INO ...
33.052632
65
0.716561
93
628
4.623656
0.354839
0.069767
0.069767
0.097674
0.125581
0
0
0
0
0
0
0.00365
0.127389
628
19
66
33.052632
0.781022
0
0
0
0
0
0.189189
0
0
0
0
0
0
0
null
null
0
0.133333
null
null
0.133333
0
0
0
null
0
0
0
0
0
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
36f36b8b6c3da9e7769a3b201bb4acf70212c34d
1,291
py
Python
tests/test_basic_encryption.py
noahbroyles/Robocrypt
bbd7fa9e754ad84993c457f6ca36ca31029b803f
[ "MIT" ]
5
2020-05-22T21:15:09.000Z
2022-01-07T15:10:17.000Z
tests/test_basic_encryption.py
noahbroyles/Robocrypt
bbd7fa9e754ad84993c457f6ca36ca31029b803f
[ "MIT" ]
1
2020-05-23T00:39:20.000Z
2020-05-24T22:09:52.000Z
tests/test_basic_encryption.py
noahbroyles/Robocrypt
bbd7fa9e754ad84993c457f6ca36ca31029b803f
[ "MIT" ]
4
2020-05-23T12:07:04.000Z
2022-02-06T16:20:17.000Z
import robocrypt def test_decryption_is_inverse_encryption(): original = b"""Youngblood thinks there's always tomorrow I miss your touch on nights when I'm hollow I know you crossed a bridge that I can't follow Since the love that you left is all that I get I want you to know that if I can't be close to you I'll...
26.346939
60
0.749032
271
1,291
3.553506
0.302583
0.091381
0.137072
0.11215
0.654206
0.654206
0.579439
0.579439
0.579439
0.579439
0
0
0.213788
1,291
48
61
26.895833
0.948768
0
0
0.513514
0
0
0.841208
0
0
0
0
0
0.027027
1
0.027027
false
0
0.027027
0
0.054054
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
36f3c5b49aa3f704980ae1e0d38a8b724506c6d6
3,957
py
Python
front_radar/fc_net.py
ZhiangChen/bendix_dnn
789f8a24d206b9f2e912c170a437abcebe8fe6f1
[ "MIT" ]
null
null
null
front_radar/fc_net.py
ZhiangChen/bendix_dnn
789f8a24d206b9f2e912c170a437abcebe8fe6f1
[ "MIT" ]
2
2017-03-13T15:24:03.000Z
2017-03-13T15:47:10.000Z
front_radar/fc_net.py
ZhiangChen/bendix_dnn
789f8a24d206b9f2e912c170a437abcebe8fe6f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python from six.moves import cPickle as pickle import matplotlib.pyplot as plt import os import tensorflow as tf import numpy as np wd = os.getcwd() file_name = wd+'/front_dist_data' with open(file_name, 'rb') as f: save = pickle.load(f) pos_data = save['pos_data'] neg_data = save['neg_data...
36.638889
97
0.690675
591
3,957
4.42132
0.241963
0.020666
0.027555
0.032147
0.123995
0.10333
0.099502
0.071948
0.061998
0.02832
0
0.027319
0.158201
3,957
108
98
36.638889
0.75713
0.011878
0
0
0
0
0.051402
0
0
0
0
0
0.011765
0
null
null
0
0.058824
null
null
0.141176
0
0
0
null
0
0
0
0
0
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
36f49bbdfcc40a4dd45cfeffe92d158983c276ef
1,256
py
Python
discopy/__init__.py
NunoEdgarGFlowHub/discopy
a21b492cf6c2490c836ac69d4b75584364c5fc99
[ "BSD-3-Clause" ]
null
null
null
discopy/__init__.py
NunoEdgarGFlowHub/discopy
a21b492cf6c2490c836ac69d4b75584364c5fc99
[ "BSD-3-Clause" ]
null
null
null
discopy/__init__.py
NunoEdgarGFlowHub/discopy
a21b492cf6c2490c836ac69d4b75584364c5fc99
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ discopy computes natural language meaning in pictures. >>> x = Ty('x') >>> left_snake = Id(x) @ Cap(x.r, x) >> Cup(x, x.r) @ Id(x) >>> right_snake = Cap(x, x.l) @ Id(x) >> Id(x) @ Cup(x.l, x) >>> assert left_snake.normal_form() == Id(x) == right_snake.normal_form() >>> s, n = Ty('s'), Ty...
36.941176
77
0.600318
215
1,256
3.432558
0.27907
0.089431
0.01355
0.03523
0
0
0
0
0
0
0
0.013487
0.173567
1,256
33
78
38.060606
0.697495
0.70621
0
0
0
0
0.01385
0
0
0
0
0
0
1
0
false
0
0.857143
0
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7fc7bfd459ea6c5427e5592ee6ad149fe90bbb8c
12,327
py
Python
examples/dvtxfile.py
knaggsy2000/ddv
ac885877e7db1a2f185f8902532aae68378c1da6
[ "BSD-3-Clause" ]
null
null
null
examples/dvtxfile.py
knaggsy2000/ddv
ac885877e7db1a2f185f8902532aae68378c1da6
[ "BSD-3-Clause" ]
null
null
null
examples/dvtxfile.py
knaggsy2000/ddv
ac885877e7db1a2f185f8902532aae68378c1da6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ######################################################################### # Copyright/License Notice (BSD License) # ######################################################################### ###################################################...
33.226415
511
0.591953
1,343
12,327
5.337305
0.274013
0.014648
0.025112
0.048549
0.491071
0.474609
0.468471
0.460379
0.450893
0.368025
0
0.005619
0.263649
12,327
370
512
33.316216
0.78407
0.219762
0
0.255924
0
0.004739
0.391276
0.034219
0
0
0
0
0
0
null
null
0.004739
0.028436
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
7fca6ff086bfe4a646a69a2e67cdd0a7289fb4c2
109
py
Python
tapis_cli/settings/taccapis/v3.py
bpachev/tapis-cli
c3128fb5b63ef74e06b737bbd95ef28fb24f0d32
[ "BSD-3-Clause" ]
8
2020-10-18T22:48:23.000Z
2022-01-10T09:16:14.000Z
tapis_cli/settings/taccapis/v3.py
bpachev/tapis-cli
c3128fb5b63ef74e06b737bbd95ef28fb24f0d32
[ "BSD-3-Clause" ]
238
2019-09-04T14:37:54.000Z
2020-04-15T16:24:24.000Z
tapis_cli/settings/taccapis/v3.py
bpachev/tapis-cli
c3128fb5b63ef74e06b737bbd95ef28fb24f0d32
[ "BSD-3-Clause" ]
5
2019-09-20T04:23:49.000Z
2020-01-16T17:45:14.000Z
"""APIv3-specific CLI settings """ __all__ = [] # Abaco settings # Aloe settings # Keys settings
9.909091
30
0.623853
11
109
5.818182
0.727273
0
0
0
0
0
0
0
0
0
0
0.012346
0.256881
109
10
31
10.9
0.777778
0.651376
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7fd464509e9a87d373bb15503a004c7c9890a3f0
687
py
Python
project/1-process_data/CSVtolabel.py
ScottAI/2016CCF_BDCI_Sougou
8675f46c60f8c2dadc0e7552c7323fb8547fa323
[ "MIT" ]
214
2016-12-28T02:47:10.000Z
2022-03-09T00:45:46.000Z
代码及说明/1-process_data/CSVtolabel.py
yuanjungod/2016CCF-sougou
611b2273a1424ddd62dcc68b204081cf032aaf42
[ "Apache-2.0" ]
4
2017-05-21T12:28:06.000Z
2018-11-27T02:58:16.000Z
代码及说明/1-process_data/CSVtolabel.py
yuanjungod/2016CCF-sougou
611b2273a1424ddd62dcc68b204081cf032aaf42
[ "Apache-2.0" ]
122
2016-12-28T01:01:14.000Z
2021-07-30T09:11:12.000Z
# coding=utf-8 """ 根据上一步骤得到的CSV文件,将搜索文本以及三个属性剥离,保存为相应的文件 注意路径 """ import pandas as pd #path of the train and test files trainname = 'user_tag_query.10W.TRAIN.csv' testname = 'user_tag_query.10W.TEST.csv' data = pd.read_csv(trainname) print data.info() #generate three labels for age/gender/education data.age.to_csv("...
24.535714
57
0.778748
110
687
4.718182
0.409091
0.04817
0.125241
0.098266
0.104046
0.104046
0.104046
0
0
0
0
0.008
0.090247
687
27
58
25.444444
0.8224
0.216885
0
0.166667
0
0
0.291667
0.114583
0
0
0
0
0
0
null
null
0
0.083333
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
7fd7d5ec619f3bed251f3546d67c02480282369c
2,418
py
Python
deeposlandia/metrics.py
shadofren/deeposlandia
3dcb511482aff9c62bffd383e92055920c7a7e85
[ "MIT" ]
null
null
null
deeposlandia/metrics.py
shadofren/deeposlandia
3dcb511482aff9c62bffd383e92055920c7a7e85
[ "MIT" ]
null
null
null
deeposlandia/metrics.py
shadofren/deeposlandia
3dcb511482aff9c62bffd383e92055920c7a7e85
[ "MIT" ]
null
null
null
"""Metrics for measuring machine learning algorithm performances """ from keras import backend def iou(actual, predicted): """Compute Intersection over Union statistic (i.e. Jaccard Index) See https://en.wikipedia.org/wiki/Jaccard_index Parameters ---------- actual : list Ground-truth la...
24.673469
96
0.641439
290
2,418
5.258621
0.358621
0.078689
0.055082
0.068197
0.359344
0.344918
0.221639
0.221639
0.221639
0.221639
0
0.014803
0.245658
2,418
97
97
24.927835
0.821272
0.556245
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.055556
0
0.5
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7fd98dd10f545920b46178e3969071655d898ef8
813
py
Python
django_dvbboxes/urls.py
drowolath/django-dvbboxes
75ddb85696d4710b512edf10b386838237a948aa
[ "Apache-2.0" ]
1
2018-12-05T00:32:12.000Z
2018-12-05T00:32:12.000Z
django_dvbboxes/urls.py
drowolath/django-dvbboxes
75ddb85696d4710b512edf10b386838237a948aa
[ "Apache-2.0" ]
null
null
null
django_dvbboxes/urls.py
drowolath/django-dvbboxes
75ddb85696d4710b512edf10b386838237a948aa
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from . import views app_name = 'django_dvbboxes' urlpatterns = [ # views.media urls url(r'media/check/$', views.media, name='media_check'), url(r'media/search/$', views.media, name='media_search'), url(r'media/delete/(?P<filename>\w+)/$', views.media, n...
29.035714
61
0.594096
104
813
4.576923
0.25
0.07563
0.094538
0.19958
0.182773
0.182773
0.182773
0
0
0
0
0
0.207872
813
27
62
30.111111
0.73913
0.066421
0
0.136364
0
0
0.337748
0.117881
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
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
7fddd5a0f747edd9380a6ccfce01ed3974d6a4bc
2,210
py
Python
networking_odl/hacking/checks.py
starlingx-staging/stx-networking-odl
ea8f4536aa28adbb762913b5353f7de5e6c31ce3
[ "Apache-2.0" ]
null
null
null
networking_odl/hacking/checks.py
starlingx-staging/stx-networking-odl
ea8f4536aa28adbb762913b5353f7de5e6c31ce3
[ "Apache-2.0" ]
null
null
null
networking_odl/hacking/checks.py
starlingx-staging/stx-networking-odl
ea8f4536aa28adbb762913b5353f7de5e6c31ce3
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Intel Corporation. # Copyright 2017 Isaku Yamahata <isaku.yamahata at intel com> # <isaku.yamahata at gmail com> # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. Yo...
36.229508
75
0.733937
276
2,210
5.684783
0.405797
0.038241
0.099426
0.055449
0.147865
0.12492
0.080306
0.080306
0.080306
0.080306
0
0.022995
0.193213
2,210
60
76
36.833333
0.856983
0.408145
0
0.148148
0
0
0.073725
0
0
0
0
0.016667
0
1
0.148148
false
0
0.111111
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7fddd7392a61b70095808fc8b726501a7f9a22b8
5,642
py
Python
scripts/widgets_tree.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
scripts/widgets_tree.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
scripts/widgets_tree.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
1
2021-12-25T08:40:30.000Z
2021-12-25T08:40:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ *************************************************************************** widgets_tree.py --------------------- Date : May 2011 Copyright : (C) 2011 by Martin Dobias Email : wonder dot sk at gmail dot com...
40.884058
335
0.612903
586
5,642
5.813993
0.43686
0.014089
0.017611
0.011741
0.163193
0.163193
0.148518
0.148518
0.148518
0.148518
0
0.012267
0.248671
5,642
137
336
41.182482
0.79146
0.163063
0
0
0
0
0.135892
0.055198
0
0
0
0
0
0
null
null
0
0.126761
null
null
0.056338
0
0
0
null
0
0
0
0
0
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
7fe726ae68ee0f41914df0e799f1ea6c0deeeb77
1,971
py
Python
tdo/todolist/persistence.py
Feliix42/tdo
30f71e9041bdaa05eef53bedba0153e4fcc8acfa
[ "MIT" ]
2
2015-11-06T13:13:21.000Z
2015-11-06T13:58:27.000Z
tdo/todolist/persistence.py
tdolist/tdo-py
30f71e9041bdaa05eef53bedba0153e4fcc8acfa
[ "MIT" ]
9
2015-11-06T11:47:34.000Z
2015-11-08T15:44:04.000Z
tdo/todolist/persistence.py
Feliix42/tdo
30f71e9041bdaa05eef53bedba0153e4fcc8acfa
[ "MIT" ]
null
null
null
import json import os # file paths for the settings and the todolist file home = os.environ['HOME'] jsonfile = '{home}/.tdo/list.json'.format(home=home) settingsfile = '{home}/.tdo/settings.json'.format(home=home) def save(todolist): ''' Dumps the todo lists to the default JSON file, nicely indented and ...
27
76
0.620497
243
1,971
5.024691
0.329218
0.039312
0.045864
0.058968
0.378378
0.276822
0.276822
0.150696
0.150696
0.150696
0
0.002815
0.279046
1,971
72
77
27.375
0.856439
0.339929
0
0.129032
0
0
0.068729
0.039519
0
0
0
0.097222
0
1
0.129032
false
0
0.064516
0
0.322581
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
7fea455c69cc37b7c64b9cd2d1fe422409bba529
11,650
py
Python
dataAnalyzer.py
renhaocui/adPlatform
dbabc5c8f461afac9227cc9ee378fad89b5698ea
[ "MIT" ]
1
2020-11-24T17:40:42.000Z
2020-11-24T17:40:42.000Z
dataAnalyzer.py
renhaocui/tweetInfluencer
dbabc5c8f461afac9227cc9ee378fad89b5698ea
[ "MIT" ]
null
null
null
dataAnalyzer.py
renhaocui/tweetInfluencer
dbabc5c8f461afac9227cc9ee378fad89b5698ea
[ "MIT" ]
null
null
null
import re import numpy import utilities __author__ = 'renhao.cui' import json from tokenizer import simpleTokenize import statistics as stat from textstat.textstat import textstat def shrinkPuncuation(input): input = re.sub('\.+', '.', input) input = re.sub(',+', ',', input) input = re.sub(' +', ' ', inpu...
32.541899
107
0.603519
1,295
11,650
5.406178
0.140541
0.009142
0.020568
0.025711
0.539494
0.512927
0.462648
0.462648
0.462648
0.40937
0
0.020104
0.24
11,650
357
108
32.633053
0.770612
0.177854
0
0.327273
0
0
0.09508
0.031983
0
0
0
0
0
0
null
null
0
0.031818
null
null
0.059091
0
0
0
null
0
0
0
0
0
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
7fee97dee0aadf8c21293054b93afdb079fc63d3
727
py
Python
augur/src/virus_align.py
neherlab/treetool
e4db62e930b0c24923c6b9f90278ed9e81d1ee1b
[ "MIT" ]
3
2016-09-13T15:03:15.000Z
2020-03-25T06:59:44.000Z
augur/src/virus_align.py
neherlab/treetool
e4db62e930b0c24923c6b9f90278ed9e81d1ee1b
[ "MIT" ]
null
null
null
augur/src/virus_align.py
neherlab/treetool
e4db62e930b0c24923c6b9f90278ed9e81d1ee1b
[ "MIT" ]
2
2016-09-30T18:12:00.000Z
2020-03-25T06:59:45.000Z
# take filtered sequences and align using muscle import os, time from io_util import * def update_viruses(alignment, viruses): strain_to_sequence_map = {x['strain'].lower(): x['seq'] for x in alignment} for v in viruses: v['seq'] = strain_to_sequence_map[v['strain'].lower()] def cleanup(): for tmp_file in ['tem...
25.068966
76
0.698762
109
727
4.412844
0.486239
0.037422
0.068607
0.106029
0.095634
0.095634
0
0
0
0
0
0
0.144429
727
29
77
25.068966
0.773312
0.063274
0
0
0
0
0.219118
0
0
0
0
0
0
0
null
null
0.045455
0.090909
null
null
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7ff6ac3b8f7ca41748cff58be8321a00a6eabd98
870
py
Python
Python/django_viewsets_studies/App/Article/serializers.py
wendrewdevelop/Estudos
f75d62574a0455ff35b97d404329e43f12f419fb
[ "MIT" ]
null
null
null
Python/django_viewsets_studies/App/Article/serializers.py
wendrewdevelop/Estudos
f75d62574a0455ff35b97d404329e43f12f419fb
[ "MIT" ]
null
null
null
Python/django_viewsets_studies/App/Article/serializers.py
wendrewdevelop/Estudos
f75d62574a0455ff35b97d404329e43f12f419fb
[ "MIT" ]
null
null
null
# django rest framework imports from rest_framework import serializers # app imports from .models import Article class ArticleSerializer(serializers.Serializer): """ docstring """ title = serializers.CharField(max_length=120) description = serializers.CharField() body = serializers.C...
30
86
0.710345
92
870
6.576087
0.380435
0.150413
0.105785
0
0
0
0
0
0
0
0
0.004274
0.193103
870
29
87
30
0.85755
0.05977
0
0
0
0
0.036341
0
0
0
0
0
0
1
0.125
false
0
0.125
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
0
0
0
0
0
1
0
0
1
7ff96ee99df9b8392bb5597ebee01292a7d6b7e1
5,677
py
Python
pyOlog/OlogDataTypes.py
css-iter/pyOlog
87843fd8a8fb478d1eaeeb66af3abb75b73cb58e
[ "MIT" ]
null
null
null
pyOlog/OlogDataTypes.py
css-iter/pyOlog
87843fd8a8fb478d1eaeeb66af3abb75b73cb58e
[ "MIT" ]
null
null
null
pyOlog/OlogDataTypes.py
css-iter/pyOlog
87843fd8a8fb478d1eaeeb66af3abb75b73cb58e
[ "MIT" ]
null
null
null
''' Copyright (c) 2010 Brookhaven National Laboratory All rights reserved. Use is subject to license terms and conditions. Created on Jan 10, 2013 @author: shroffk ''' import os import mimetypes class LogEntry(object): ''' A LogEntry consists of some Text description, an owner and an associated logbook ...
28.964286
135
0.575832
636
5,677
4.976415
0.264151
0.056872
0.075197
0.01643
0.258452
0.237599
0.202212
0.17346
0.150711
0.150711
0
0.014348
0.312489
5,677
195
136
29.112821
0.796567
0
0
0.265306
0
0
0.018071
0.006672
0
0
0
0.005128
0
0
null
null
0
0.020408
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
7ffbc99edfe9d8366396d41b936c45b38d04b86e
16,290
py
Python
src/yhy523u.py
mdeverdelhan/YHY523U-driver
1b75d5860e9e835fbe88ce2259f684a80e0daa37
[ "MIT" ]
11
2015-02-24T13:17:04.000Z
2020-09-16T09:57:19.000Z
src/yhy523u.py
mdeverdelhan/YHY523U-driver
1b75d5860e9e835fbe88ce2259f684a80e0daa37
[ "MIT" ]
null
null
null
src/yhy523u.py
mdeverdelhan/YHY523U-driver
1b75d5860e9e835fbe88ce2259f684a80e0daa37
[ "MIT" ]
7
2015-02-18T17:11:27.000Z
2021-07-31T08:34:08.000Z
#!/usr/bin/python import datetime import os, sys, struct, serial # Command header HEADER = '\xAA\xBB' # \x00\x00 according to API reference but only works with YHY632 # \xFF\xFF works for both. RESERVED = '\xFF\xFF' # Serial commands CMD_SET_BAUDRATE = 0x0101 CMD_SET_NODE_NUMBER = 0x0102 CMD_READ_NODE_NUMBER = 0x010...
31.878669
116
0.583732
2,172
16,290
4.247238
0.160221
0.030244
0.039458
0.04878
0.469377
0.408997
0.382114
0.359783
0.338753
0.308076
0
0.052251
0.295089
16,290
510
117
31.941176
0.75111
0.167219
0
0.252066
0
0
0.068377
0.016968
0
0
0.015756
0
0
0
null
null
0.004132
0.008264
null
null
0.033058
0
0
0
null
0
0
0
0
0
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
7ffdb5df09703ceefb9d0e0efcb7a16b519ec8d5
632
py
Python
fedlab_benchmarks/datasets/cifar10/cifar10_partition.py
KarhouTam/FedLab-benchmarks
6de0ca56f645794ca7eae0f19c6b0117165d3404
[ "Apache-2.0" ]
null
null
null
fedlab_benchmarks/datasets/cifar10/cifar10_partition.py
KarhouTam/FedLab-benchmarks
6de0ca56f645794ca7eae0f19c6b0117165d3404
[ "Apache-2.0" ]
null
null
null
fedlab_benchmarks/datasets/cifar10/cifar10_partition.py
KarhouTam/FedLab-benchmarks
6de0ca56f645794ca7eae0f19c6b0117165d3404
[ "Apache-2.0" ]
null
null
null
import sys from fedlab.utils.functional import save_dict from fedlab.utils.dataset.slicing import noniid_slicing, random_slicing import torchvision trainset = torchvision.datasets.CIFAR10(root="./", train=True, download=False) data_indices = noniid_slicing(trainset, num_clients=10, num_shards=1000) save_dict(data_...
28.727273
92
0.802215
86
632
5.674419
0.55814
0.090164
0.061475
0.102459
0.217213
0
0
0
0
0
0
0.031469
0.094937
632
21
93
30.095238
0.821678
0
0
0
0
0
0.077263
0
0
0
0
0
0
1
0
false
0
0.444444
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
7ffe38266c3c6ef7ebdbf35723f2c8858004ed99
671
py
Python
sample/liyu/DeepNLP/sentiment_analysis/c3_sigmoid.py
flaght/deeplearning
fa2731ad28b448951b16f77afc3b76436491c9bc
[ "MIT" ]
4
2017-03-02T07:54:40.000Z
2018-04-02T05:57:52.000Z
sample/liyu/DeepNLP/sentiment_analysis/c3_sigmoid.py
flaght/deeplearning
fa2731ad28b448951b16f77afc3b76436491c9bc
[ "MIT" ]
1
2017-03-02T07:54:36.000Z
2017-03-02T07:54:36.000Z
sample/liyu/DeepNLP/sentiment_analysis/c3_sigmoid.py
flaght/deeplearning
fa2731ad28b448951b16f77afc3b76436491c9bc
[ "MIT" ]
null
null
null
#!/usr/bin/env python import numpy as np def sigmoid(x): x = 1. / (1 + np.exp(-x)) return x # input f is the sigmoid function value of your original input x def sigmoid_grad(f): f *= 1 - f return f def sigmoid_basic(): print "Running basic tests..." x = np.array([[1, 2], [-1, -2]]) ...
19.171429
94
0.597615
109
671
3.568807
0.46789
0.077121
0.061697
0.092545
0
0
0
0
0
0
0
0.162109
0.23696
671
34
95
19.735294
0.597656
0.123696
0
0
0
0
0.109215
0
0
0
0
0
0.105263
0
null
null
0
0.052632
null
null
0.210526
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3d0080a7c3d049058fedfcc43f4c331f36a495e9
447
py
Python
setup.py
nicholascar/AusPIX_DGGS
989cc47ff1c3811c3cba9f356c829e5d937d73ea
[ "Apache-2.0" ]
7
2019-07-19T23:06:39.000Z
2021-12-31T07:27:25.000Z
setup.py
nicholascar/AusPIX_DGGS
989cc47ff1c3811c3cba9f356c829e5d937d73ea
[ "Apache-2.0" ]
10
2019-04-11T04:16:05.000Z
2020-06-26T08:27:34.000Z
setup.py
nicholascar/AusPIX_DGGS
989cc47ff1c3811c3cba9f356c829e5d937d73ea
[ "Apache-2.0" ]
10
2019-06-29T15:08:34.000Z
2021-12-08T03:22:48.000Z
from setuptools import setup, find_packages setup( name='auspixdggs', version='1.0.0', url='https://github.com/GeoscienceAustralia/AusPIX_DGGS', author='Joseph Bell', author_email='Joseph.Bell@ga.gov.au', description='This is the base python DGGS engine for the AusPIX developmental DGGS by Geos...
34.384615
113
0.702461
56
447
5.517857
0.785714
0.07767
0
0
0
0
0
0
0
0
0
0.007979
0.158837
447
12
114
37.25
0.81383
0
0
0
0
0
0.489933
0.04698
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
3d02f141e89ce00854423472f7c96106d3f8bbbe
253
py
Python
Demo/demo_app/urls.py
borislavstoychev/Demo
4f4ad12cafc3fab02dc470a187b1f4106fa721fc
[ "MIT" ]
null
null
null
Demo/demo_app/urls.py
borislavstoychev/Demo
4f4ad12cafc3fab02dc470a187b1f4106fa721fc
[ "MIT" ]
null
null
null
Demo/demo_app/urls.py
borislavstoychev/Demo
4f4ad12cafc3fab02dc470a187b1f4106fa721fc
[ "MIT" ]
null
null
null
from django.urls import path, include from Demo.demo_app import views from rest_framework.routers import DefaultRouter router = DefaultRouter() router.register('', views.DemoView, basename='demo') urlpatterns = [ path("", include(router.urls)), ]
23
52
0.758893
31
253
6.129032
0.580645
0.115789
0
0
0
0
0
0
0
0
0
0
0.12253
253
11
53
23
0.855856
0
0
0
0
0
0.015748
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
3d031c6a92c95195b9a24c766f42a986d1c7874a
2,652
py
Python
Anemone/views/configuration.py
Winnak/Anemone
1ae72bf2500c262e3cdd57f697a5c8bc38e851e3
[ "MIT" ]
5
2016-04-24T21:10:28.000Z
2021-09-29T20:26:14.000Z
Anemone/views/configuration.py
Winnak/Anemone
1ae72bf2500c262e3cdd57f697a5c8bc38e851e3
[ "MIT" ]
null
null
null
Anemone/views/configuration.py
Winnak/Anemone
1ae72bf2500c262e3cdd57f697a5c8bc38e851e3
[ "MIT" ]
null
null
null
""" View for configuration. """ from os.path import join as path from flask import render_template, g, redirect, session, flash, url_for, request from Anemone import app, schedule from Anemone.models import Project import Anemone.abcfile @app.route("/<project>/configuration", methods=["GET", "POST"]) def configuratio...
36.328767
99
0.653092
336
2,652
5.092262
0.339286
0.057276
0.03156
0.042081
0.104617
0.038574
0
0
0
0
0
0.004314
0.213424
2,652
72
100
36.833333
0.815916
0.092006
0
0.075472
0
0
0.216681
0.010059
0
0
0
0.013889
0
1
0.037736
false
0
0.09434
0
0.169811
0.018868
0
0
0
null
0
0
0
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
3d061e54d4fe8bdef17caeab534d0a4f86a2691e
285
py
Python
examples/vk_search_users.py
azavodov/social-apis
8858d0acd5ee2821109101d01fc970c385bc0472
[ "MIT" ]
null
null
null
examples/vk_search_users.py
azavodov/social-apis
8858d0acd5ee2821109101d01fc970c385bc0472
[ "MIT" ]
null
null
null
examples/vk_search_users.py
azavodov/social-apis
8858d0acd5ee2821109101d01fc970c385bc0472
[ "MIT" ]
null
null
null
from social_apis.exceptions.social_api_error import SocialAPIError from social_apis.networks.vkontakte import Vkontakte try: vk_api = Vkontakte(access_token="<<vk_access_token>>") users = vk_api.users_search(q="Иван Иванов", count=7) except SocialAPIError as e: print(e)
28.5
66
0.778947
41
285
5.170732
0.609756
0.09434
0.132075
0
0
0
0
0
0
0
0
0.004016
0.126316
285
9
67
31.666667
0.84739
0
0
0
0
0
0.105634
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3d086c5e947af83e45b0c5b4cbf9de193358226e
4,919
py
Python
pymanopt/manifolds/hyperbolic.py
lrozo/pymanopt
cbc2bc691fdcb2b2e59ef721404ed7c25c651a29
[ "BSD-3-Clause" ]
null
null
null
pymanopt/manifolds/hyperbolic.py
lrozo/pymanopt
cbc2bc691fdcb2b2e59ef721404ed7c25c651a29
[ "BSD-3-Clause" ]
null
null
null
pymanopt/manifolds/hyperbolic.py
lrozo/pymanopt
cbc2bc691fdcb2b2e59ef721404ed7c25c651a29
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from pymanopt.manifolds.manifold import Manifold class PoincareBall(Manifold): """ Factory class for the Poincare ball model of hyperbolic geometry. An instance represents the Cartesian product of n (defaults to 1) Poincare balls of dimension k. Elements are represented as matr...
33.462585
77
0.572881
756
4,919
3.664021
0.268519
0.027076
0.015162
0.012635
0.113718
0.098556
0.037184
0.023105
0
0
0
0.020963
0.311445
4,919
147
78
33.462585
0.79687
0.316731
0
0
0
0
0.04071
0
0
0
0
0
0
1
0.209302
false
0
0.023256
0.093023
0.430233
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
3d10107780350b25a75c5762824aa1d92ed2ca08
416
py
Python
asteroids_comets_meteors/migrations/0002_auto_20200728_1609.py
DanielPDWalker/Astrophoto
9a7ee59deb291617baa3ab8724b8ce5970e6ea9f
[ "MIT" ]
null
null
null
asteroids_comets_meteors/migrations/0002_auto_20200728_1609.py
DanielPDWalker/Astrophoto
9a7ee59deb291617baa3ab8724b8ce5970e6ea9f
[ "MIT" ]
12
2020-07-26T06:20:22.000Z
2022-03-12T00:43:09.000Z
asteroids_comets_meteors/migrations/0002_auto_20200728_1609.py
DanielPDWalker/Astrophoto-API
9a7ee59deb291617baa3ab8724b8ce5970e6ea9f
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-28 15:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('asteroids_comets_meteors', '0001_initial'), ] operations = [ migrations.AlterField( model_name='asteroidcometmeteorobject', ...
21.894737
53
0.627404
42
416
6.095238
0.857143
0
0
0
0
0
0
0
0
0
0
0.062295
0.266827
416
18
54
23.111111
0.777049
0.108173
0
0
1
0
0.203252
0.132791
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3d14120a7b918a0e609962979386554d289632be
3,128
py
Python
deckparser/decomp2dicts.py
venidera/deckparser
88e9e141cb7ef2cdea2994f7664157d9eae6ec4f
[ "Apache-2.0" ]
13
2018-07-26T20:18:30.000Z
2022-03-18T07:18:34.000Z
deckparser/decomp2dicts.py
venidera/deckparser
88e9e141cb7ef2cdea2994f7664157d9eae6ec4f
[ "Apache-2.0" ]
null
null
null
deckparser/decomp2dicts.py
venidera/deckparser
88e9e141cb7ef2cdea2994f7664157d9eae6ec4f
[ "Apache-2.0" ]
3
2021-04-23T21:46:59.000Z
2021-08-30T11:24:07.000Z
from logging import info,debug from deckparser.decompzipped import DecompZipped #from deckparser.decompdicted import DecompDicted from deckparser.importers.newave.importHIDR import importHIDR from deckparser.importers.decomp.importDADGER import importDADGER from deckparser.importers.decomp.importDADGNL import importD...
40.102564
94
0.517903
292
3,128
5.510274
0.253425
0.116221
0.087011
0.072094
0.471722
0.339963
0.254817
0.254817
0.069608
0.069608
0
0.003077
0.376598
3,128
77
95
40.623377
0.822051
0.039003
0
0.333333
0
0
0.061204
0
0
0
0
0
0
1
0.015873
false
0
0.349206
0
0.47619
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
3d1a525988f6845f22babb58fdc4403037c2fb5c
402
py
Python
Listeners/__init__.py
gadru/home-media-control-center
8366faf66135043891c145b47dbd87bc012f344b
[ "MIT" ]
null
null
null
Listeners/__init__.py
gadru/home-media-control-center
8366faf66135043891c145b47dbd87bc012f344b
[ "MIT" ]
null
null
null
Listeners/__init__.py
gadru/home-media-control-center
8366faf66135043891c145b47dbd87bc012f344b
[ "MIT" ]
null
null
null
import pkgutil import sys import inspect __path__ = pkgutil.extend_path(__path__, __name__) classes = dict() for importer, modname, ispkg in pkgutil.walk_packages(path=__path__, prefix=__name__+'.'): __import__(modname) for name, obj in inspect.getmembers(sys.modules[modname]): if inspect.isclass(obj...
30.923077
90
0.691542
47
402
5.361702
0.489362
0.063492
0
0
0
0
0
0
0
0
0
0
0.201493
402
13
91
30.923077
0.785047
0
0
0
0
0
0.044665
0
0
0
0
0
0
1
0
false
0
0.454545
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
3d21497aba129640a87dd309b201c21b5962597b
3,421
py
Python
hayaku_get_merged_dict.py
hayaku/hayaku
f9b176e231c9a8af6c70ffd1b0ee268df0a0ed4a
[ "MIT" ]
369
2015-01-03T01:15:32.000Z
2022-01-08T21:55:37.000Z
hayaku_get_merged_dict.py
hayaku/hayaku
f9b176e231c9a8af6c70ffd1b0ee268df0a0ed4a
[ "MIT" ]
21
2015-01-16T15:35:32.000Z
2019-06-24T11:49:25.000Z
hayaku_get_merged_dict.py
hayaku/hayaku
f9b176e231c9a8af6c70ffd1b0ee268df0a0ed4a
[ "MIT" ]
40
2015-01-04T15:32:45.000Z
2022-03-23T03:05:24.000Z
# -*- coding: utf-8 -*- import os def import_dir(name, fromlist=()): PACKAGE_EXT = '.sublime-package' dirname = os.path.basename(os.path.dirname(os.path.realpath(__file__))) if dirname.endswith(PACKAGE_EXT): dirname = dirname[:-len(PACKAGE_EXT)] return __import__('{0}.{1}'.format(dirname, name)...
41.216867
131
0.706226
462
3,421
4.818182
0.142857
0.057502
0.054358
0.074124
0.453279
0.342318
0.272237
0.222821
0.137466
0.086253
0
0.001087
0.193511
3,421
82
132
41.719512
0.805727
0.021046
0
0.03125
0
0
0.049014
0
0
0
0
0.012195
0
1
0.03125
false
0
0.09375
0
0.15625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
3d28906e5fe9314c0d9cea7e0078bc2f2512da73
1,390
py
Python
tests/unit/test_similarity.py
DakaraProject/dakara-feeder
0e4c158dcdb0c1d72cd7340e4566ca409ca3e98d
[ "MIT" ]
null
null
null
tests/unit/test_similarity.py
DakaraProject/dakara-feeder
0e4c158dcdb0c1d72cd7340e4566ca409ca3e98d
[ "MIT" ]
17
2019-09-30T15:15:43.000Z
2022-03-31T01:41:00.000Z
tests/unit/test_similarity.py
DakaraProject/dakara-feeder
0e4c158dcdb0c1d72cd7340e4566ca409ca3e98d
[ "MIT" ]
null
null
null
from unittest import TestCase from path import Path from dakara_feeder.similarity import calculate_file_path_similarity class CalculateFilePathSimilarityTestCase(TestCase): """Test calculate_file_path_similarity method.""" def test_renamed(self): """Test to detect a file renamed in the same directo...
31.590909
78
0.615108
146
1,390
5.678082
0.321918
0.109771
0.143546
0.227986
0.457177
0.382388
0.283474
0.283474
0.283474
0.283474
0
0.01506
0.283453
1,390
43
79
32.325581
0.817269
0.18705
0
0.266667
0
0
0.137681
0.078804
0
0
0
0
0.133333
1
0.133333
false
0
0.1
0
0.266667
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
3d3035e9af8e8f83c069e0aae04ba8c7a46c73ea
1,588
py
Python
BioSTEAM 2.x.x/biorefineries/wwt/__init__.py
yoelcortes/Bioindustrial-Complex
d39edfec88e443ef7a62218ca0215e3b105f4b96
[ "MIT" ]
2
2020-01-03T21:04:41.000Z
2020-01-09T01:15:48.000Z
BioSTEAM 2.x.x/biorefineries/wwt/__init__.py
yoelcortes/Bioindustrial-Complex
d39edfec88e443ef7a62218ca0215e3b105f4b96
[ "MIT" ]
6
2020-01-03T21:31:27.000Z
2020-02-28T13:53:56.000Z
BioSTEAM 2.x.x/biorefineries/wwt/__init__.py
yoelcortes/Bioindustrial-Complex
d39edfec88e443ef7a62218ca0215e3b105f4b96
[ "MIT" ]
2
2020-01-07T14:04:06.000Z
2020-01-08T23:05:25.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Bioindustrial-Park: BioSTEAM's Premier Biorefinery Models and Results # Copyright (C) 2021-, Yalin Li <mailto.yalin.li@gmail.com> # # This module is under the UIUC open-source license. See # github.com/BioSTEAMDevelopmentGroup/biosteam/blob/master/LICENSE.txt # for licen...
26.032787
71
0.741184
204
1,588
5.220588
0.401961
0.093897
0.028169
0.026291
0.069484
0.039437
0
0
0
0
0
0.004491
0.15869
1,588
61
72
26.032787
0.792665
0.243703
0
0
0
0
0.031906
0
0
0
0
0
0
1
0
false
0
0.302326
0
0.302326
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
3d341312920a2812f95a5db3ac58cb2d03bbd3c2
220
py
Python
sonnenblume/test/view.py
Sylver11/sonnenblume
a214bc68e110eb04d2505807e8d468b0d747d534
[ "MIT" ]
null
null
null
sonnenblume/test/view.py
Sylver11/sonnenblume
a214bc68e110eb04d2505807e8d468b0d747d534
[ "MIT" ]
null
null
null
sonnenblume/test/view.py
Sylver11/sonnenblume
a214bc68e110eb04d2505807e8d468b0d747d534
[ "MIT" ]
null
null
null
from fastapi import APIRouter router = APIRouter( prefix="/test", tags=["test"], responses={404: {"description": "Not found"}}, ) @router.get("") async def check_health(): return {"health_check": "ok"}
18.333333
50
0.631818
25
220
5.48
0.8
0
0
0
0
0
0
0
0
0
0
0.016575
0.177273
220
11
51
20
0.740331
0
0
0
0
0
0.195455
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.222222
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
3d35e8bf58134385bfdd9dc0fbb04483ac9cc3a8
1,996
py
Python
python/get_tweet_cosine_sim.py
kennyjoseph/icwsm_lizardo
6d1580eeeeb7830c85812c8c097a0857fdcb2994
[ "MIT" ]
1
2015-03-24T18:23:26.000Z
2015-03-24T18:23:26.000Z
python/get_tweet_cosine_sim.py
kennyjoseph/icwsm_lizardo
6d1580eeeeb7830c85812c8c097a0857fdcb2994
[ "MIT" ]
null
null
null
python/get_tweet_cosine_sim.py
kennyjoseph/icwsm_lizardo
6d1580eeeeb7830c85812c8c097a0857fdcb2994
[ "MIT" ]
null
null
null
__author__ = 'kjoseph' import cPickle as pickle from datetime import datetime from multiprocessing import Pool import os, sys, itertools from gensim import corpora, matutils from scipy.spatial.distance import pdist from casostwitter import general_utils def get_tweet_cosine_sim(args): user_id, directory= args ...
34.413793
126
0.68487
276
1,996
4.728261
0.402174
0.048276
0.032184
0.03908
0
0
0
0
0
0
0
0.017755
0.20992
1,996
58
127
34.413793
0.809765
0.008016
0
0
0
0
0.060637
0.026276
0
0
0
0
0
0
null
null
0
0.155556
null
null
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
0
0
1
0
0
0
0
0
0
0
0
1
3d379ab9722aa956f800912a0aa1d047a2576451
285
py
Python
RecoLocalCalo/HcalRecProducers/python/hfQIE10Reco_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoLocalCalo/HcalRecProducers/python/hfQIE10Reco_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoLocalCalo/HcalRecProducers/python/hfQIE10Reco_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms import RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi as _mod hfQIE10Reco = _mod.hfsimplereco.clone( digiLabel = "simHcalUnsuppressedDigis:HFQIE10DigiCollection", Subdetector = 'HFQIE10', firstSample = 2, samplesToAdd = 1 )
23.75
65
0.775439
26
285
8.384615
0.846154
0
0
0
0
0
0
0
0
0
0
0.033058
0.150877
285
11
66
25.909091
0.867769
0
0
0
0
0
0.187279
0.162544
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
3d3a89c051b01b82377c7a34504e1dd8ce7f52de
804
py
Python
15.py
elp2/advent_of_code_2017
2721e8789b671fc1430e5c87f74b28f200a93c8d
[ "Apache-2.0" ]
1
2021-12-02T15:19:36.000Z
2021-12-02T15:19:36.000Z
15.py
elp2/advent_of_code_2017
2721e8789b671fc1430e5c87f74b28f200a93c8d
[ "Apache-2.0" ]
null
null
null
15.py
elp2/advent_of_code_2017
2721e8789b671fc1430e5c87f74b28f200a93c8d
[ "Apache-2.0" ]
null
null
null
# Generator A starts with 783 # Generator B starts with 325 REAL_START=[783, 325] SAMPLE_START=[65, 8921] FACTORS=[16807, 48271] DIVISOR=2147483647 # 0b1111111111111111111111111111111 2^31 def next_a_value(val, factor): while True: val = (val * factor) % DIVISOR if val & 3 == 0: return ...
22.971429
60
0.621891
113
804
4.256637
0.415929
0.074844
0.04158
0.079002
0.195426
0.195426
0.195426
0.195426
0.195426
0.195426
0
0.222414
0.278607
804
34
61
23.647059
0.606897
0.121891
0
0.25
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3d41958bd27912d0999ec54cbdfef07d0e7e984e
1,209
py
Python
examples/hello_world/python/wsgi_server.py
limscoder/amfast
e77162615090b6a1ad03565afcc4bec4b46f6a11
[ "MIT" ]
4
2015-12-12T04:34:34.000Z
2021-07-30T22:11:26.000Z
examples/hello_world/python/wsgi_server.py
limscoder/amfast
e77162615090b6a1ad03565afcc4bec4b46f6a11
[ "MIT" ]
3
2015-03-23T23:45:30.000Z
2016-08-17T01:32:51.000Z
examples/hello_world/python/wsgi_server.py
limscoder/amfast
e77162615090b6a1ad03565afcc4bec4b46f6a11
[ "MIT" ]
8
2015-03-23T23:45:34.000Z
2018-01-25T16:16:43.000Z
"""An example server using the CherryPy web framework.""" import os import optparse from wsgiref import simple_server import amfast from amfast.remoting.wsgi_channel import WsgiChannelSet, WsgiChannel import utils if __name__ == '__main__': usage = """usage: %s [options]""" % __file__ parser = optparse.Option...
31
74
0.693135
149
1,209
5.395973
0.503356
0.062189
0.05597
0.039801
0.054726
0
0
0
0
0
0
0.004073
0.187758
1,209
38
75
31.815789
0.814664
0
0
0
0
0
0.144097
0
0
0
0
0
0
0
null
null
0.033333
0.2
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
3d4d4f18209db24881bd5734fa266b5a7d1925a1
1,117
py
Python
sensors/postgres_sensors.py
airflow-plugins/pandora-plugin
8129ec54aa9d642aa5429c54c55cb7c5624a655f
[ "Apache-2.0" ]
22
2018-04-10T16:04:00.000Z
2021-07-22T02:39:22.000Z
sensors/postgres_sensors.py
syvineckruyk/pandora-plugin
8129ec54aa9d642aa5429c54c55cb7c5624a655f
[ "Apache-2.0" ]
1
2018-08-10T15:50:05.000Z
2018-08-10T15:50:05.000Z
sensors/postgres_sensors.py
syvineckruyk/pandora-plugin
8129ec54aa9d642aa5429c54c55cb7c5624a655f
[ "Apache-2.0" ]
7
2018-04-20T15:46:49.000Z
2021-03-24T11:22:58.000Z
import logging from airflow.operators.sensors import BaseSensorOperator from airflow.utils.decorators import apply_defaults from airflow.hooks.postgres_hook import PostgresHook class PostgresTableSensor(BaseSensorOperator): """ Checks if the postgres table exists. :param table: The table to check it's ex...
36.032258
120
0.706356
142
1,117
5.34507
0.478873
0.063241
0.028986
0
0
0
0
0
0
0
0
0.005531
0.190689
1,117
30
121
37.233333
0.834071
0.165622
0
0
0
0
0.165556
0.027778
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3d57c40fb30cf963fcc0833054c08805633ea8c3
627
py
Python
drivers/phantomjs.py
RajatNair/the-endorser
d3fd2334674fa70e1492eccc68a5e3719daff119
[ "MIT" ]
309
2017-04-18T05:30:49.000Z
2022-03-03T09:27:54.000Z
drivers/phantomjs.py
RajatNair/the-endorser
d3fd2334674fa70e1492eccc68a5e3719daff119
[ "MIT" ]
14
2017-06-09T14:37:46.000Z
2021-11-15T07:30:09.000Z
drivers/phantomjs.py
davenicoll/the-endorser
c2425a9d07322fdac204847da744ede2eb68d746
[ "MIT" ]
55
2017-06-28T17:32:58.000Z
2022-01-18T15:49:13.000Z
import os from drivers import IPHONE_UA from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities def get(driver_path): if not os.path.exists(driver_path): raise FileNotFoundError("Could not find phantomjs executable at %s. Download it for your platform ...
34.833333
158
0.787879
81
627
5.962963
0.567901
0.082816
0
0
0
0
0
0
0
0
0
0.014787
0.137161
627
17
159
36.882353
0.878004
0
0
0
0
0.083333
0.22807
0.052632
0
0
0
0
0
1
0.083333
false
0
0.333333
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
3d5c6247c06d6a3428da599a3b3a597153c2fb36
1,419
py
Python
multacdkrecipies/common/resources_constructs/bucket.py
u93/multa-cdkrecipies
f9ea04f2c85aa8848d21a3c93f40eaa68c3065a1
[ "MIT" ]
2
2020-08-02T05:44:32.000Z
2020-10-02T01:38:18.000Z
multacdkrecipies/common/resources_constructs/bucket.py
u93/multa-cdkrecipies
f9ea04f2c85aa8848d21a3c93f40eaa68c3065a1
[ "MIT" ]
6
2021-02-06T21:05:35.000Z
2021-04-25T18:45:48.000Z
multacdkrecipies/common/resources_constructs/bucket.py
u93/multa-cdkrecipies
f9ea04f2c85aa8848d21a3c93f40eaa68c3065a1
[ "MIT" ]
1
2020-10-01T00:42:09.000Z
2020-10-01T00:42:09.000Z
from aws_cdk import aws_s3 as s3 def base_bucket(construct, **kwargs): """ Function that generates an S3 Bucket. :param construct: Custom construct that will use this function. From the external construct is usually 'self'. :param kwargs: :return: S3 Bucket Construct. """ bucket_name = con...
37.342105
118
0.702607
172
1,419
5.511628
0.331395
0.101266
0.050633
0.046414
0.111814
0
0
0
0
0
0
0.006135
0.195913
1,419
37
119
38.351351
0.824715
0.136011
0
0
1
0
0.089316
0
0
0
0
0
0
1
0.04
false
0
0.04
0
0.12
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
3d5e8b98304e5bb39227bb593fe058420a3ca4cd
4,175
py
Python
monte_carlo_tree_search/tree_visualizer/tree_visualizer.py
TomaszOdrzygozdz/gym-splendor
aeb00605e105628188143a4bbd6280e9eb41c4f9
[ "MIT" ]
1
2020-03-09T18:56:01.000Z
2020-03-09T18:56:01.000Z
monte_carlo_tree_search/tree_visualizer/tree_visualizer.py
TomaszOdrzygozdz/gym-splendor
aeb00605e105628188143a4bbd6280e9eb41c4f9
[ "MIT" ]
null
null
null
monte_carlo_tree_search/tree_visualizer/tree_visualizer.py
TomaszOdrzygozdz/gym-splendor
aeb00605e105628188143a4bbd6280e9eb41c4f9
[ "MIT" ]
1
2019-10-25T13:09:40.000Z
2019-10-25T13:09:40.000Z
"""This code generates interactive HTML file with MCTS Tree Visualized""" import os from monte_carlo_tree_search.trees.abstract_tree import TreeNode DATA_DIR = os.path.dirname(os.path.abspath(__file__)) PREAMBLE_FILE = os.path.join(DATA_DIR, 'preamble') POSTAMBLE_FILE = os.path.join(DATA_DIR, 'postamble') class Tree...
48.546512
302
0.588503
534
4,175
4.249064
0.254682
0.034376
0.043632
0.051565
0.293962
0.223887
0.160423
0.136624
0.103129
0
0
0.004678
0.283114
4,175
85
303
49.117647
0.753425
0.022515
0
0
1
0.015873
0.07071
0
0.015873
0
0
0
0
1
0.126984
false
0
0.031746
0.015873
0.222222
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
3d5f2a254c95f972c9f48fafeca564c3e374a518
934
py
Python
testcase/t1.py
Max-astro/cyclomatic_complexity_calculator
f68cbe0a853f371f5384b717e198931bbfc2a060
[ "MIT" ]
null
null
null
testcase/t1.py
Max-astro/cyclomatic_complexity_calculator
f68cbe0a853f371f5384b717e198931bbfc2a060
[ "MIT" ]
null
null
null
testcase/t1.py
Max-astro/cyclomatic_complexity_calculator
f68cbe0a853f371f5384b717e198931bbfc2a060
[ "MIT" ]
null
null
null
def abc(a,b,c): for i in a: b(a) if c(): if b(a) > 100: b(a) elif 100 > 0: b(a) else: b(a) else: b(100) return 100 def ex(): try: fh = open("testfile", "w") fh.write("a") except IOError: print("b...
16.385965
36
0.37152
125
934
2.776
0.32
0.034582
0.034582
0.040346
0.37464
0.305476
0.305476
0.305476
0.305476
0.305476
0
0.077263
0.514989
934
56
37
16.678571
0.688742
0
0
0.490196
0
0
0.012848
0
0
0
0
0
0
1
0.156863
false
0
0
0.058824
0.372549
0.078431
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3d626e8aa0d290d05d44a060a9c6e5070ba36080
1,749
py
Python
px_expander.py
DPBayes/DP-cross-silo-federated-learning
6707db703de5fae48c06116ae8ceee0685c9615d
[ "Apache-2.0" ]
8
2020-11-30T15:09:00.000Z
2021-12-31T02:04:24.000Z
px_expander.py
DPBayes/DP-cross-silo-federated-learning
6707db703de5fae48c06116ae8ceee0685c9615d
[ "Apache-2.0" ]
null
null
null
px_expander.py
DPBayes/DP-cross-silo-federated-learning
6707db703de5fae48c06116ae8ceee0685c9615d
[ "Apache-2.0" ]
1
2021-10-05T01:57:08.000Z
2021-10-05T01:57:08.000Z
''' Script originally for doing dp grads using parameter expansions ''' import numpy as np import torch from torch.autograd import Variable import sys from utils import generate_proj_matrix_piece # clip and accumulate clipped gradients def acc_scaled_grads(model, C, cum_grads, use_cuda=False): batch_size = model...
30.684211
113
0.663236
272
1,749
4.073529
0.3125
0.036101
0.070397
0.037906
0.287906
0.248195
0.203069
0.159747
0.122744
0.122744
0
0.012445
0.218982
1,749
56
114
31.232143
0.798682
0.105775
0
0.206897
1
0
0
0
0
0
0
0
0
1
0.068966
false
0
0.172414
0
0.241379
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e9e2e66ebcad67f76e1e4c87f867c4e70a9190cd
1,582
py
Python
datacode/sem/model.py
nickderobertis/data-code
b4649a1702ccd6b68995e58cc53d74544ff34294
[ "MIT" ]
null
null
null
datacode/sem/model.py
nickderobertis/data-code
b4649a1702ccd6b68995e58cc53d74544ff34294
[ "MIT" ]
44
2020-02-01T03:28:59.000Z
2022-03-12T00:35:17.000Z
datacode/sem/model.py
nickderobertis/data-code
b4649a1702ccd6b68995e58cc53d74544ff34294
[ "MIT" ]
1
2021-08-09T11:10:57.000Z
2021-08-09T11:10:57.000Z
from typing import Sequence, Dict from datacode.logger import logger from datacode.models.variables.variable import Variable def model_str(structural_dict: Dict[Variable, Sequence[Variable]], measurement_dict: Dict[Variable, Sequence[Variable]], var_corr_groups: Sequence[Sequence[Variable...
31.64
84
0.676359
240
1,582
4.058333
0.208333
0.073922
0.083162
0.087269
0.504107
0.406571
0.395277
0.291581
0.291581
0.250513
0
0.002364
0.197851
1,582
49
85
32.285714
0.765169
0
0
0.147059
0
0
0.085389
0.014548
0
0
0
0
0
1
0.176471
false
0
0.088235
0.117647
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
e9e2f5a9731f35b2d91d25efdb30ecc14aa55d46
1,114
py
Python
bus.py
guillaumevincent/rangevoting
a8a1d5c7aabf2ea30fd89453e7bdec53d981ca36
[ "MIT" ]
4
2015-03-23T09:48:32.000Z
2020-08-25T13:19:08.000Z
bus.py
guillaumevincent/rangevoting
a8a1d5c7aabf2ea30fd89453e7bdec53d981ca36
[ "MIT" ]
4
2015-04-27T23:50:28.000Z
2015-09-23T07:05:25.000Z
bus.py
guillaumevincent/rangevoting
a8a1d5c7aabf2ea30fd89453e7bdec53d981ca36
[ "MIT" ]
2
2015-09-21T08:58:25.000Z
2020-08-25T13:19:14.000Z
import logging logger = logging.getLogger(__name__) class Result: def __init__(self): self.ok = True def ok(self): return self.ok class BadResult(Result): def __init__(self): super().__init__() self.ok = False class Bus: def __init__(self): self.handlers =...
22.28
83
0.599641
128
1,114
5
0.3125
0.09375
0.051563
0.053125
0.125
0.125
0.125
0.125
0
0
0
0
0.305206
1,114
49
84
22.734694
0.826873
0
0
0.257143
0
0
0.025135
0
0
0
0
0
0
1
0.228571
false
0
0.028571
0.028571
0.542857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e9e4a76f8c25656dbd454519e55abd8d09c08788
1,599
py
Python
fitness/models.py
lorderonnie/I-Fit
09f6296213a69d13551d497ea3d7591cf1725148
[ "MIT" ]
null
null
null
fitness/models.py
lorderonnie/I-Fit
09f6296213a69d13551d497ea3d7591cf1725148
[ "MIT" ]
3
2020-06-06T01:17:32.000Z
2021-09-08T01:36:00.000Z
fitness/models.py
lorderonnie/I-Fit
09f6296213a69d13551d497ea3d7591cf1725148
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User import datetime # Create your models here. class Profile(models.Model): user = models.OneToOneField(User, on_delete = models.CASCADE, default='') profile_pic = models.ImageField(upload_to = 'media/', default='default.jpg',blank=True) ...
27.568966
91
0.666041
194
1,599
5.304124
0.360825
0.116618
0.139942
0.186589
0.289602
0.06414
0
0
0
0
0
0.018033
0.237023
1,599
58
92
27.568966
0.82541
0.015009
0
0.184211
0
0
0.010801
0
0
0
0
0
0
1
0.157895
false
0
0.078947
0
0.763158
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
e9eae363e1a5c28ce5ce493c70fced38a646fe34
702
py
Python
jp.atcoder/abc141/abc141_d/8513162.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc141/abc141_d/8513162.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc141/abc141_d/8513162.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
# 2019-11-18 17:34:23(JST) import sys # import collections # import math # from string import ascii_lowercase, ascii_uppercase, digits from bisect import bisect_left as bi_l from bisect import bisect_right as bi_r from bisect import insort_left as in_l # import itertools # from functools import reduce # i...
21.272727
62
0.650997
108
702
4.064815
0.574074
0.068337
0.109339
0.100228
0
0
0
0
0
0
0
0.028463
0.249288
702
32
63
21.9375
0.804554
0.413105
0
0
0
0
0.021858
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.384615
0.076923
0
0
0
null
0
0
0
0
0
0
0
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
e9ed385a695ac3dc18170079c594643c3faaeb6b
276
py
Python
Algorithms/0009_Palindrome_Number.py
drjordy66/LeetCode
ba0c04ee5ddc8c9177dd2995be95dd6d0640bc38
[ "MIT" ]
null
null
null
Algorithms/0009_Palindrome_Number.py
drjordy66/LeetCode
ba0c04ee5ddc8c9177dd2995be95dd6d0640bc38
[ "MIT" ]
null
null
null
Algorithms/0009_Palindrome_Number.py
drjordy66/LeetCode
ba0c04ee5ddc8c9177dd2995be95dd6d0640bc38
[ "MIT" ]
null
null
null
class Solution: def isPalindrome(self, x): """ :type x: int :rtype: bool """ y = [i for i in str(x)] y.reverse() try: y = int(''.join(y)) except ValueError: pass return x == y
19.714286
31
0.398551
31
276
3.548387
0.709677
0.036364
0
0
0
0
0
0
0
0
0
0
0.474638
276
13
32
21.230769
0.758621
0.09058
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0.111111
0
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e9f15d4ff9411cf6167fab945ac479ee97dd68bf
244
py
Python
ch03_05.py
sitdh/59.com-prog
24f536a72b0467ff3ee1615f515ecff9fbf36bb3
[ "MIT" ]
1
2021-04-25T14:46:12.000Z
2021-04-25T14:46:12.000Z
ch03_05.py
sitdh/com-prog
24f536a72b0467ff3ee1615f515ecff9fbf36bb3
[ "MIT" ]
null
null
null
ch03_05.py
sitdh/com-prog
24f536a72b0467ff3ee1615f515ecff9fbf36bb3
[ "MIT" ]
null
null
null
number = int(input()) divider = number // 2 numbers = '' while divider != 1: if 0 == number % divider: numbers += " " + str(divider) divider -= 1 if 0 == len(numbers): print('Prime Number') else: print(numbers[1:])
14.352941
37
0.553279
30
244
4.5
0.5
0.118519
0.148148
0.162963
0
0
0
0
0
0
0
0.033898
0.27459
244
16
38
15.25
0.728814
0
0
0
0
0
0.053279
0
0
0
0
0
0
1
0
false
0
0
0
0
0.181818
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
e9f55b7ab1f3c01e6e72f118ec5d6bcc3dd1ea60
2,476
py
Python
bro.py
akx/bro-py
41c995b0a2854cbae44b79bc94b667b92a04b15d
[ "MIT" ]
1
2019-07-11T06:04:32.000Z
2019-07-11T06:04:32.000Z
bro.py
akx/bro-py
41c995b0a2854cbae44b79bc94b667b92a04b15d
[ "MIT" ]
null
null
null
bro.py
akx/bro-py
41c995b0a2854cbae44b79bc94b667b92a04b15d
[ "MIT" ]
null
null
null
# -- encoding: UTF-8 -- """Bropages. See http://bropages.org Usage: bro (t|up|thanks) <name> bro (n|down|no|...no) <name> bro (l|lookup) <name> bro (add) <name> [-m message] bro <name> bro (-h | --help) bro --version Options: -h --help Show this screen. """ import os import requests import sys ...
25.010101
106
0.568659
313
2,476
4.434505
0.361022
0.086455
0.050432
0.030259
0.185879
0.148415
0.148415
0.074928
0.074928
0.074928
0
0.004464
0.276252
2,476
98
107
25.265306
0.770089
0.008481
0
0.222222
0
0
0.117379
0
0
0
0
0
0
0
null
null
0.015873
0.126984
null
null
0.079365
0
0
0
null
0
0
0
0
0
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
e9fbfa3e1d8452694e3f252a08356676f296e208
5,856
py
Python
code/circuit-establishment/server.py
kaiyazeera/slr
d4bc3b6387ca8e297e0d31f0764105991d3a3b98
[ "CC-BY-4.0" ]
null
null
null
code/circuit-establishment/server.py
kaiyazeera/slr
d4bc3b6387ca8e297e0d31f0764105991d3a3b98
[ "CC-BY-4.0" ]
null
null
null
code/circuit-establishment/server.py
kaiyazeera/slr
d4bc3b6387ca8e297e0d31f0764105991d3a3b98
[ "CC-BY-4.0" ]
null
null
null
from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.asymmetric.x25519 import X25519PrivateKey, X25519PublicKey from cryptography.hazmat.primitives.ciphers.aead import AESGCM from cryptography.hazmat.primitives.kdf.hkdf import HKD...
33.272727
1,708
0.748463
688
5,856
6.212209
0.389535
0.016846
0.01825
0.016378
0.101778
0.063875
0.050538
0.037436
0.029715
0.018718
0
0.084323
0.151469
5,856
175
1,709
33.462857
0.77581
0.041496
0
0.127273
0
0.009091
0.312511
0.303052
0
0
0
0
0
1
0.072727
false
0
0.127273
0
0.290909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1