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
af7466ced8260b8a7a7a5bfcfd2516ca758082f5
4,918
bzl
Python
databazel.bzl
danielhfrank/databazel
52ba5d3aca4eea1cf8326c37dfe12b454ce0ee2c
[ "MIT" ]
22
2019-06-25T07:00:29.000Z
2022-02-01T03:13:08.000Z
databazel.bzl
danielhfrank/databazel
52ba5d3aca4eea1cf8326c37dfe12b454ce0ee2c
[ "MIT" ]
7
2019-06-26T08:20:46.000Z
2022-02-10T00:24:41.000Z
databazel.bzl
danielhfrank/databazel
52ba5d3aca4eea1cf8326c37dfe12b454ce0ee2c
[ "MIT" ]
2
2019-06-03T23:14:15.000Z
2019-06-26T08:19:56.000Z
# Utility functions def mk_param_summary(hyperparams): return '__'.join([hpname + '_' + val for hpname, val in hyperparams.items()]) def insert_param_summary(filename, param_summary): basename, extn = filename.rsplit('.', 1) return basename + '__' + param_summary + '.' + extn def combinations(ll): ...
29.987805
89
0.611427
562
4,918
5.103203
0.252669
0.046025
0.020921
0.026499
0.238494
0.205021
0.119944
0.119944
0
0
0
0.000286
0.288329
4,918
163
90
30.171779
0.819143
0.111021
0
0.294574
0
0
0.079624
0
0
0
0
0.006135
0
1
0.062016
false
0.054264
0
0.007752
0.093023
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
af7a0870b303972540b6f8525f90c04e975045b3
1,933
py
Python
ecomm/migrations/0001_initial.py
areebbeigh/greenspace-demo
0754f3b50e845bd5e50239361239f9b0b8aba42b
[ "Apache-2.0" ]
1
2020-07-06T05:53:12.000Z
2020-07-06T05:53:12.000Z
ecomm/migrations/0001_initial.py
areebbeigh/greenspace-demo
0754f3b50e845bd5e50239361239f9b0b8aba42b
[ "Apache-2.0" ]
1
2020-06-11T15:51:49.000Z
2020-06-11T16:10:31.000Z
ecomm/migrations/0001_initial.py
areebbeigh/greenspace-demo
0754f3b50e845bd5e50239361239f9b0b8aba42b
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2 on 2020-06-11 11:03 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] opera...
47.146341
168
0.629074
209
1,933
5.660287
0.368421
0.040575
0.059172
0.092984
0.523246
0.432798
0.432798
0.432798
0.432798
0.432798
0
0.015395
0.227108
1,933
40
169
48.325
0.776439
0.022245
0
0.363636
1
0
0.102754
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.212121
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
af7b4a51041750d4c309b1b45dbfc0242a812390
3,590
py
Python
motmot/utils/utils.py
motmot/utils
f2a9fd5aa2443e53c01b6d4ceb8dda09e1e2c2ae
[ "BSD-3-Clause" ]
2
2016-05-09T15:51:32.000Z
2016-07-19T11:29:33.000Z
motmot/utils/utils.py
motmot/utils
f2a9fd5aa2443e53c01b6d4ceb8dda09e1e2c2ae
[ "BSD-3-Clause" ]
null
null
null
motmot/utils/utils.py
motmot/utils
f2a9fd5aa2443e53c01b6d4ceb8dda09e1e2c2ae
[ "BSD-3-Clause" ]
null
null
null
import os, sys, datetime, traceback import subprocess # subprocess module included with python2.4, but should also be in current directory import unittest def under_svn_control(path): version = get_svnversion(path) if version == 'exported': return False return True def get_svnversion_persistent(st...
33.240741
119
0.598607
437
3,590
4.75286
0.382151
0.031295
0.017333
0.017333
0.057776
0.03274
0.03274
0.03274
0
0
0
0.005412
0.279387
3,590
107
120
33.551402
0.797449
0.081894
0
0.065934
0
0
0.184611
0.050791
0
0
0
0
0
0
null
null
0
0.087912
null
null
0.032967
0
0
0
null
0
0
0
0
0
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
af7c854655125060fbf72a37c565150cac6c997f
170
py
Python
sm16.py
Preeti-Barua/Python
76d168617f2a92fa41d6af4ddf62450b6272ff84
[ "bzip2-1.0.6" ]
null
null
null
sm16.py
Preeti-Barua/Python
76d168617f2a92fa41d6af4ddf62450b6272ff84
[ "bzip2-1.0.6" ]
null
null
null
sm16.py
Preeti-Barua/Python
76d168617f2a92fa41d6af4ddf62450b6272ff84
[ "bzip2-1.0.6" ]
null
null
null
a=int(input("enter a number"")) sum=0 temp=a while(a>0): r=a%10 sum=sum*10+r a=a//10 a=temp if(a==sum): print("its palindrome") else: print("no")
12.142857
31
0.552941
34
170
2.764706
0.5
0.042553
0
0
0
0
0
0
0
0
0
0.061069
0.229412
170
13
32
13.076923
0.656489
0
0
0
0
0
0.176471
0
0
0
0
0
0
0
null
null
0
0
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
af8673fd2f3f980c9766d0d85eeaac3a5193b93d
874
py
Python
pros/grpc-py/src/CameraAIClinent.py
LightSun/study-grpc
900cfb4154654e75100f295b762f4cf48100b564
[ "Apache-2.0" ]
null
null
null
pros/grpc-py/src/CameraAIClinent.py
LightSun/study-grpc
900cfb4154654e75100f295b762f4cf48100b564
[ "Apache-2.0" ]
null
null
null
pros/grpc-py/src/CameraAIClinent.py
LightSun/study-grpc
900cfb4154654e75100f295b762f4cf48100b564
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import logging import grpc import CameraAI_pb2 import CameraAI_pb2_grpc def run(): # NOTE(gRPC Python Team): .close() is possible on a channel and should be # used in circumstances in which the with statement does not fit the needs # of the code. with grpc.insec...
34.96
138
0.742563
114
874
5.482456
0.649123
0.1056
0.0544
0.0832
0
0
0
0
0
0
0
0.027248
0.160183
874
24
139
36.416667
0.824251
0.179634
0
0
0
0
0.147472
0
0
0
0
0
0
1
0.066667
false
0
0.333333
0
0.4
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
af89bc48c4fea06c35f8ad93e7b05cd06f829436
525
py
Python
python/setup.py
kriskall/Zeeguu-Exercises
87241b43c94fa8bcf75dd41498f173f37339ec3d
[ "MIT" ]
1
2021-05-02T07:32:57.000Z
2021-05-02T07:32:57.000Z
python/setup.py
kriskall/Zeeguu-Exercises
87241b43c94fa8bcf75dd41498f173f37339ec3d
[ "MIT" ]
89
2017-02-13T09:30:25.000Z
2017-08-23T12:25:48.000Z
python/setup.py
kriskall/Zeeguu-Exercises
87241b43c94fa8bcf75dd41498f173f37339ec3d
[ "MIT" ]
2
2017-12-04T18:10:11.000Z
2018-11-22T17:48:37.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- import os import setuptools setuptools.setup( name="zeeguu_exercises", version="0.1", packages=setuptools.find_packages(), include_package_data=True, zip_safe=False, author="Martin Avagyan", author_email="zeeguu_team@zeeguu.com", description...
25
54
0.638095
61
525
5.344262
0.754098
0.092025
0
0
0
0
0
0
0
0
0
0.017284
0.228571
525
20
55
26.25
0.787654
0.078095
0
0
0
0
0.327801
0.045643
0
0
0
0
0
1
0
true
0
0.125
0
0.125
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
af91089c95e4ed7d63c9f6848966cba3c13704d1
1,259
py
Python
tests/task/test_can_task.py
jha929/pyMODI
6175e6579b7fab4d26a8add852bbc8357eb8bf30
[ "MIT" ]
2
2020-11-25T03:20:12.000Z
2020-11-25T03:20:14.000Z
tests/task/test_can_task.py
jha929/pyMODI
6175e6579b7fab4d26a8add852bbc8357eb8bf30
[ "MIT" ]
null
null
null
tests/task/test_can_task.py
jha929/pyMODI
6175e6579b7fab4d26a8add852bbc8357eb8bf30
[ "MIT" ]
null
null
null
import json import unittest from queue import Queue from modi.task.can_task import CanTask from modi.util.msgutil import parse_message class MockCan: def __init__(self): self.recv_buffer = Queue() def recv(self, timeout): json_pkt = parse_message(0x03, 0, 1) return CanTask.compose_ca...
25.693878
75
0.625894
166
1,259
4.487952
0.337349
0.065772
0.088591
0.068456
0.257718
0.163758
0.163758
0.096644
0
0
0
0.016026
0.256553
1,259
48
76
26.229167
0.779915
0.106434
0
0.066667
0
0
0.007279
0
0
0
0.010919
0
0.066667
1
0.233333
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
af92aea286d2904c7eed09915f510854a72ead55
345
py
Python
ACM-Solution/fibonaccitool.py
wasi0013/Python-CodeBase
4a7a36395162f68f84ded9085fa34cc7c9b19233
[ "MIT" ]
2
2016-04-26T15:40:40.000Z
2018-07-18T10:16:42.000Z
ACM-Solution/fibonaccitool.py
wasi0013/Python-CodeBase
4a7a36395162f68f84ded9085fa34cc7c9b19233
[ "MIT" ]
1
2016-04-26T15:44:15.000Z
2016-04-29T14:44:40.000Z
ACM-Solution/fibonaccitool.py
wasi0013/Python-CodeBase
4a7a36395162f68f84ded9085fa34cc7c9b19233
[ "MIT" ]
1
2018-10-02T16:12:19.000Z
2018-10-02T16:12:19.000Z
import sys def fib(n): i=h=1 k=j=0 while n>0: if n%2==1: t=j*h j=i*h+j*k+t i=i*k+t t=h*h h=2*k*h+t k=k*k+t n=n//2 return j def main(): i=0 while i<50: print(fib(i)) i+=1 if __na...
13.8
31
0.344928
64
345
1.734375
0.3125
0.054054
0
0
0
0
0
0
0
0
0
0.063584
0.498551
345
24
32
14.375
0.578035
0
0
0
0
0
0.024922
0
0
0
0
0
0
1
0.1
false
0
0.05
0
0.2
0.05
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
af95232e337f1b996c3e35f30d084dbc57fc4521
21,904
py
Python
Lib/pkgutil.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
1
2018-06-21T18:21:24.000Z
2018-06-21T18:21:24.000Z
Lib/pkgutil.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
Lib/pkgutil.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
"""Utilities to support packages.""" z functools zaimportuj singledispatch jako simplegeneric zaimportuj importlib zaimportuj importlib.util zaimportuj importlib.machinery zaimportuj os zaimportuj os.path zaimportuj sys z types zaimportuj ModuleType zaimportuj warnings __all__ = [ 'get_importer', 'iter_importers'...
34.768254
82
0.620709
2,683
21,904
4.93552
0.177413
0.007703
0.008156
0.008156
0.257665
0.224437
0.212657
0.184187
0.168404
0.157
0
0.004009
0.305287
21,904
629
83
34.823529
0.866202
0.073822
0
0.395833
0
0
0.040327
0
0
0
0
0
0
0
null
null
0
0.179688
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
af9802bfb415c4598595c612f388f673886cfca2
3,737
py
Python
essence.py
aggixx/poe_filter_unique_generator
1359daf862115a664f66797854ab0cefbb59384e
[ "Unlicense" ]
null
null
null
essence.py
aggixx/poe_filter_unique_generator
1359daf862115a664f66797854ab0cefbb59384e
[ "Unlicense" ]
null
null
null
essence.py
aggixx/poe_filter_unique_generator
1359daf862115a664f66797854ab0cefbb59384e
[ "Unlicense" ]
null
null
null
import util class EssenceGenerator: tiers = [ { "minValue": 12, "soundId": 5, "volume": 170, "iconShape": "Circle", "iconColor": "Red", "iconSize": 0, "flareColor": "Red", "borderColor": [255, 0, 255], }, { "minValue": 5, "soundId": 8, "volume": 150, "iconShape": "Circle", ...
21.477011
115
0.614397
468
3,737
4.891026
0.299145
0.023591
0.010485
0.017038
0.023591
0
0
0
0
0
0
0.023553
0.20471
3,737
174
116
21.477011
0.746635
0.047364
0
0.10084
0
0
0.299528
0.009729
0
0
0
0
0
0
null
null
0
0.008403
null
null
0.016807
0
0
0
null
0
0
0
0
0
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
af9846524a9e6c18615a0558cd330d32b5cd51d2
2,649
py
Python
app/core/tests/test_models.py
therealak12/recipe-app-api
1c0b2bf537e485871b7f9d3dccb57a145f7d3b06
[ "Unlicense" ]
null
null
null
app/core/tests/test_models.py
therealak12/recipe-app-api
1c0b2bf537e485871b7f9d3dccb57a145f7d3b06
[ "Unlicense" ]
null
null
null
app/core/tests/test_models.py
therealak12/recipe-app-api
1c0b2bf537e485871b7f9d3dccb57a145f7d3b06
[ "Unlicense" ]
null
null
null
from unittest.mock import patch from django.test import TestCase from django.contrib.auth import get_user_model from core import models def sample_user(email='testemail@example.com', password='testpass'): """Create and return a sample user""" return get_user_model().objects.create_user(email, password) cl...
30.802326
71
0.643639
318
2,649
5.132075
0.283019
0.063725
0.072917
0.058211
0.234681
0.202819
0.099265
0.046569
0
0
0
0.00252
0.251038
2,649
85
72
31.164706
0.82006
0.098528
0
0.087719
0
0
0.094813
0.019558
0
0
0
0
0.175439
1
0.157895
false
0.140351
0.070175
0
0.263158
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
af9dc5332b2bd51c46e4d524c10c9d03f6428190
3,286
py
Python
testing/cubep3m/CubeP3MData.py
egpbos/egp
5e82c2de9e6884795b4ee89f2b15ed5dde70388f
[ "Apache-2.0" ]
null
null
null
testing/cubep3m/CubeP3MData.py
egpbos/egp
5e82c2de9e6884795b4ee89f2b15ed5dde70388f
[ "Apache-2.0" ]
null
null
null
testing/cubep3m/CubeP3MData.py
egpbos/egp
5e82c2de9e6884795b4ee89f2b15ed5dde70388f
[ "Apache-2.0" ]
null
null
null
import os class CubeP3MData(object): """ Load a CubeP3M checkpoint file and gather related meta-data from the parameter files present in the run directory. The run directory is assumed to be one directory up from the checkpoint's location. If not, you need to specify the run_path in the initializat...
40.073171
150
0.59434
427
3,286
4.510539
0.36534
0.068536
0.028557
0.02648
0.173416
0.089304
0.030114
0.030114
0
0
0
0.010794
0.295192
3,286
81
151
40.567901
0.820812
0.102861
0
0.2
0
0.016667
0.077714
0
0
0
0
0
0
0
null
null
0
0.016667
null
null
0.016667
0
0
0
null
0
0
0
0
0
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
af9debd6496c8589a6778ffa0055dad9596e27e4
1,142
py
Python
accounts/views.py
zx273983653/vulscan
787397e267c4e6469522ee0abe55b3e98f968d4a
[ "MIT" ]
582
2019-02-23T09:23:33.000Z
2022-03-31T04:42:08.000Z
accounts/views.py
git-wsf/vulscan
112f8d6104daecfaaad579f73029a26d56aaa9b3
[ "MIT" ]
6
2019-03-20T10:37:48.000Z
2020-03-10T06:20:07.000Z
accounts/views.py
git-wsf/vulscan
112f8d6104daecfaaad579f73029a26d56aaa9b3
[ "MIT" ]
183
2019-02-23T06:00:18.000Z
2022-03-20T02:17:57.000Z
#coding=utf-8 from django.shortcuts import render # Create your views here. from django.contrib import auth #authenticate,login,logout #from django.contrib.auth import authenticate from django.contrib.auth.decorators import login_required from django.http import HttpResponseRedirect #@login_required # 验证单一一个模块是否登录用...
29.282051
73
0.663748
121
1,142
6.231405
0.404959
0.066313
0.067639
0.055703
0.074271
0
0
0
0
0
0
0.001143
0.2338
1,142
38
74
30.052632
0.860571
0.169877
0
0.272727
0
0
0.060963
0
0
0
0
0
0
1
0.090909
false
0.090909
0.181818
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
1
0
0
0
0
0
1
afa603c2f9aa231723614d8ee697ef58dac42984
3,417
py
Python
Daftcode Python Level UP 2018 solutions/solutions.py
0xd2e/python_playground
0146511a12dffb2e9c48e2b75d1b2b94d18ab867
[ "MIT" ]
null
null
null
Daftcode Python Level UP 2018 solutions/solutions.py
0xd2e/python_playground
0146511a12dffb2e9c48e2b75d1b2b94d18ab867
[ "MIT" ]
null
null
null
Daftcode Python Level UP 2018 solutions/solutions.py
0xd2e/python_playground
0146511a12dffb2e9c48e2b75d1b2b94d18ab867
[ "MIT" ]
null
null
null
import numpy as np from utils import download_file from zadanie1.task1 import count_characters from zadanie2.task2 import primesfrom2to, approximate_prime from zadanie34.task34_prep import process_text, load_data from zadanie34.task34_utils import show_short_info from zadanie34.task34 import simple_bottom_up ...
29.205128
142
0.687152
466
3,417
4.809013
0.276824
0.03436
0.053101
0.074967
0.650602
0.618474
0.618474
0.601071
0.601071
0.601071
0
0.037242
0.206321
3,417
116
143
29.456897
0.789086
0.249049
0
0.291667
0
0.0625
0.227601
0
0
0
0
0
0
1
0.083333
false
0
0.145833
0
0.229167
0.125
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
afa96133f1af83ad37e6485cd1aff1382f679ced
2,343
py
Python
lab2.py/lab2.py
Danib0y97/Comp2_listas
4fc34420be81e4f3a325340c3b4853ac455a7b13
[ "MIT" ]
null
null
null
lab2.py/lab2.py
Danib0y97/Comp2_listas
4fc34420be81e4f3a325340c3b4853ac455a7b13
[ "MIT" ]
null
null
null
lab2.py/lab2.py
Danib0y97/Comp2_listas
4fc34420be81e4f3a325340c3b4853ac455a7b13
[ "MIT" ]
null
null
null
from datetime import date class Disciplina: """Classe representa o conceito de uma disciplina na UFRJ""" def __init__(self, nome, vagas = 0): """Cria um objeto da classe com atributos nome, vagas, alunos""" self.nome = nome self.vagas = vagas self.alunos = [] # self.alunos é um ...
41.839286
153
0.630815
296
2,343
4.925676
0.347973
0.061728
0.034294
0.05487
0.183813
0.1262
0.082305
0.082305
0.082305
0.082305
0
0.002279
0.25096
2,343
55
154
42.6
0.82849
0.297909
0
0.181818
0
0
0.143939
0
0
0
0
0
0
1
0.242424
false
0
0.030303
0
0.454545
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
afab37b055edefbdea83feb29950ac61790a03f0
739
py
Python
__init__.py
MongoWobbler/anim_picker
7a4239cf998ec2a4ee7da401186a81764476b076
[ "MIT" ]
null
null
null
__init__.py
MongoWobbler/anim_picker
7a4239cf998ec2a4ee7da401186a81764476b076
[ "MIT" ]
null
null
null
__init__.py
MongoWobbler/anim_picker
7a4239cf998ec2a4ee7da401186a81764476b076
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import anim_picker.core.gui as anim_picker_gui __version__ = "1.3.1" # ============================================================================= # Load user inte...
26.392857
79
0.575101
76
739
5.210526
0.539474
0.10101
0.161616
0
0
0
0
0
0
0
0
0.004815
0.156969
739
27
80
27.37037
0.630819
0.483085
0
0
0
0
0.014368
0
0
0
0
0
0
1
0.125
false
0
0.625
0
0.875
0.125
0
0
0
null
0
0
0
0
0
0
0
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
afad2e5c9229f78a9d0a210c6f443ce52cf4cc64
892
py
Python
ExampleLCMLightField.py
nicrip/LightField
eb491096f1d2a42e626c457f202877a592496c28
[ "MIT" ]
4
2017-03-24T15:39:41.000Z
2019-05-31T09:28:10.000Z
ExampleLCMLightField.py
nicrip/LightField
eb491096f1d2a42e626c457f202877a592496c28
[ "MIT" ]
null
null
null
ExampleLCMLightField.py
nicrip/LightField
eb491096f1d2a42e626c457f202877a592496c28
[ "MIT" ]
7
2017-05-13T17:18:34.000Z
2022-03-20T04:21:39.000Z
import lcm from exlcm import example_t from LightFieldAPI import LightFieldAPI LightFieldAPI = LightFieldAPI() def my_handler(channel, data): msg = example_t.decode(data) print("Received message on channel \"%s\"" % channel) print(" timestamp = %s" % str(msg.timestamp)) print(" position = %s...
27.030303
57
0.647982
109
892
5.220183
0.385321
0.063269
0.061511
0
0
0
0
0
0
0
0
0.008463
0.205157
892
33
58
27.030303
0.794076
0
0
0
0
0
0.164614
0
0
0
0
0
0
0
null
null
0
0.153846
null
null
0.346154
0
0
0
null
0
0
0
0
0
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
afb7098757e49801d980c66e71ec2a66189e3688
641
py
Python
progress_bar/urls.py
Alt90/Student_progress_bar
c2f4f059a8487a58c7c321ed5005b336888fe4eb
[ "MIT" ]
null
null
null
progress_bar/urls.py
Alt90/Student_progress_bar
c2f4f059a8487a58c7c321ed5005b336888fe4eb
[ "MIT" ]
6
2017-03-15T17:28:26.000Z
2017-11-14T21:11:19.000Z
progress_bar/urls.py
Alt90/Student_progress_bar
c2f4f059a8487a58c7c321ed5005b336888fe4eb
[ "MIT" ]
1
2017-11-14T18:58:14.000Z
2017-11-14T18:58:14.000Z
from django.conf.urls import url from django.contrib import admin from django.conf.urls.static import static from achievement import views from progress_bar import settings urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^$', views.StudentsListView.as_view(), name='students_list'), url(r'^raiting_...
42.733333
94
0.731669
92
641
4.923913
0.391304
0.04415
0.06181
0.07947
0.101545
0.101545
0
0
0
0
0
0
0.098284
641
14
95
45.785714
0.783737
0
0
0
0
0
0.223089
0.109204
0
0
0
0
0
1
0
false
0
0.416667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
afbc6379a7a4ac5ea53d908c1feaa1ead3af7298
8,849
py
Python
propertyestimator/backends/backends.py
MSchauperl/propertyestimator
9a67cb61498024c511f9bbe55536ac8e1a3c93be
[ "MIT" ]
null
null
null
propertyestimator/backends/backends.py
MSchauperl/propertyestimator
9a67cb61498024c511f9bbe55536ac8e1a3c93be
[ "MIT" ]
null
null
null
propertyestimator/backends/backends.py
MSchauperl/propertyestimator
9a67cb61498024c511f9bbe55536ac8e1a3c93be
[ "MIT" ]
null
null
null
""" Defines the base API for the property estimator task calculation backend. """ import re from enum import Enum from propertyestimator import unit class ComputeResources: """An object which stores how many of each type of computational resource (threads or gpu's) is available to a calculation worker. ...
35.825911
115
0.672731
1,130
8,849
4.963717
0.197345
0.081298
0.066857
0.053485
0.393831
0.292209
0.232127
0.175432
0.160456
0.139419
0
0.002891
0.257317
8,849
246
116
35.971545
0.850578
0.395299
0
0.212121
0
0
0.059404
0.018472
0
0
0
0.004065
0.10101
1
0.212121
false
0.030303
0.030303
0.050505
0.414141
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
afc6715f5e62f1f642e7d5a825bfae0dc1d6404b
2,510
py
Python
server/ServiceProvider/migrations/0001_initial.py
raminawahda7/servize
9941401c72a949c8c2ad83012ab5cc4276355b6c
[ "MIT" ]
null
null
null
server/ServiceProvider/migrations/0001_initial.py
raminawahda7/servize
9941401c72a949c8c2ad83012ab5cc4276355b6c
[ "MIT" ]
null
null
null
server/ServiceProvider/migrations/0001_initial.py
raminawahda7/servize
9941401c72a949c8c2ad83012ab5cc4276355b6c
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2020-12-12 20:53 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('SubCategory', '0001_initial'), ('Category', '0001_initial'), ...
49.215686
169
0.634661
252
2,510
6.198413
0.309524
0.046095
0.071703
0.112676
0.435339
0.435339
0.435339
0.435339
0.410371
0.410371
0
0.020566
0.2251
2,510
50
170
50.2
0.782519
0.017928
0
0.348837
1
0
0.1689
0.043849
0
0
0
0
0
1
0
false
0
0.069767
0
0.162791
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
bb5e1e2fe4d08dec31b91ce40c1688791069f466
1,386
py
Python
aphelper/enums.py
jfcarter2358/aphelper
8e1d0e1bff457257b50ad7e9762a6d674d7ce26d
[ "MIT" ]
null
null
null
aphelper/enums.py
jfcarter2358/aphelper
8e1d0e1bff457257b50ad7e9762a6d674d7ce26d
[ "MIT" ]
null
null
null
aphelper/enums.py
jfcarter2358/aphelper
8e1d0e1bff457257b50ad7e9762a6d674d7ce26d
[ "MIT" ]
null
null
null
from enum import Enum, unique class BaseEnum(Enum): @classmethod def values(cls) -> list: """Returns a list of raw values for the class""" values = [member.value for role, member in cls.__members__.items()] return values @unique class Keys(BaseEnum): """Represents categories of ob...
26.653846
89
0.662338
146
1,386
6.150685
0.472603
0.061247
0.053452
0.062361
0.095768
0.095768
0.095768
0.095768
0
0
0
0
0.24531
1,386
52
90
26.653846
0.858509
0.217893
0
0.114286
0
0
0.152975
0.01983
0
0
0
0
0
1
0.028571
false
0
0.028571
0
0.828571
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
bb65b510c3ac5d80388930fdf89814f94178e648
1,263
py
Python
netmiko/centec/centec_os.py
11Domino/netmiko
c8e664e9c6e1ba770d93919fec6fbecaa448d40b
[ "MIT" ]
null
null
null
netmiko/centec/centec_os.py
11Domino/netmiko
c8e664e9c6e1ba770d93919fec6fbecaa448d40b
[ "MIT" ]
null
null
null
netmiko/centec/centec_os.py
11Domino/netmiko
c8e664e9c6e1ba770d93919fec6fbecaa448d40b
[ "MIT" ]
null
null
null
"""Centec OS Support""" from netmiko.cisco_base_connection import CiscoBaseConnection import time import re class CentecOSBase(CiscoBaseConnection): def session_preparation(self): """Prepare the session after the connection has been established.""" self._test_channel_read(pattern=r"[>#]") ...
28.704545
82
0.676168
147
1,263
5.639456
0.517007
0.036188
0
0
0
0
0
0
0
0
0
0.007165
0.226445
1,263
43
83
29.372093
0.841351
0.189232
0
0.086957
0
0
0.045036
0
0
0
0
0
0
1
0.130435
false
0.086957
0.130435
0
0.478261
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
bb6680d1449dafffb355567d9075e7cb7f1e010d
1,322
py
Python
kkbox_developer_sdk/search_fetcher.py
garyckhsu/django-REST
94cc2c1009f6eb1124136a92bb92e93d490f2271
[ "Apache-2.0" ]
71
2017-10-28T03:51:29.000Z
2021-08-03T14:44:31.000Z
kkbox_developer_sdk/search_fetcher.py
garyckhsu/django-REST
94cc2c1009f6eb1124136a92bb92e93d490f2271
[ "Apache-2.0" ]
2
2017-11-27T10:09:08.000Z
2018-01-31T10:12:16.000Z
kkbox_developer_sdk/search_fetcher.py
garyckhsu/django-REST
94cc2c1009f6eb1124136a92bb92e93d490f2271
[ "Apache-2.0" ]
15
2017-11-07T08:49:54.000Z
2022-02-04T04:39:53.000Z
#!/usr/bin/env python # encoding: utf-8 from .fetcher import * from .territory import * class KKBOXSearchTypes: ''' The Search types of the search API. ''' ARTIST = 'artist' ALBUM = 'album' TRACK = 'track' PLAYLIST = 'playlist' class KKBOXSearchFetcher(Fetcher): ''' Search API, the...
30.744186
87
0.614977
166
1,322
4.837349
0.53012
0.033624
0.034869
0.034869
0.104608
0.104608
0.104608
0.104608
0.104608
0.104608
0
0.009146
0.255673
1,322
42
88
31.47619
0.806911
0.448563
0
0
0
0
0.125418
0
0.066667
0
0
0
0.066667
1
0.066667
false
0
0.133333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bb67d47e255f6f67a51457c41b2d6633214d974d
32,026
py
Python
test/unit/tools/test_cc.py
Acidburn0zzz/bfg9000
5f9ed9940b87f23abe55cde745c46e7e2bc6eaee
[ "BSD-3-Clause" ]
1
2020-05-15T07:24:43.000Z
2020-05-15T07:24:43.000Z
test/unit/tools/test_cc.py
Acidburn0zzz/bfg9000
5f9ed9940b87f23abe55cde745c46e7e2bc6eaee
[ "BSD-3-Clause" ]
null
null
null
test/unit/tools/test_cc.py
Acidburn0zzz/bfg9000
5f9ed9940b87f23abe55cde745c46e7e2bc6eaee
[ "BSD-3-Clause" ]
null
null
null
import os from unittest import mock from .. import * from bfg9000 import options as opts, platforms from bfg9000.exceptions import PackageResolutionError from bfg9000.file_types import * from bfg9000.languages import Languages from bfg9000.packages import Framework from bfg9000.path import InstallRoot, Path, Root fro...
39.489519
79
0.573784
3,625
32,026
4.935724
0.088
0.121563
0.089202
0.079645
0.787782
0.738822
0.671417
0.632294
0.577577
0.503689
0
0.019166
0.263598
32,026
810
80
39.538272
0.739484
0.010242
0
0.451314
0
0.007728
0.130053
0.022202
0
0
0
0
0.247295
1
0.106646
false
0
0.023184
0.001546
0.160742
0.003091
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bb6a9995387bef030b2e3598531a9cdd9437232d
242
py
Python
study/python/1_first_class.py
cheenwe/blog
a866b3ab98aa58e3ed4a7624fbb72c8fd8dee790
[ "MIT" ]
10
2016-09-28T03:22:41.000Z
2020-06-16T08:42:25.000Z
study/python/1_first_class.py
cheenwe/blog
a866b3ab98aa58e3ed4a7624fbb72c8fd8dee790
[ "MIT" ]
12
2017-04-18T08:41:04.000Z
2020-06-10T02:54:58.000Z
study/python/1_first_class.py
cheenwe/blog
a866b3ab98aa58e3ed4a7624fbb72c8fd8dee790
[ "MIT" ]
8
2016-09-28T03:03:32.000Z
2019-09-16T04:22:01.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # database.py _metaclass_ = type class User: def setName(self, name): self.name = name def hi(self): print "hello ,I'm %s. " % self.name user = User() user.setName("Chenwei") user.hi()
15.125
39
0.61157
36
242
4.055556
0.638889
0.164384
0
0
0
0
0
0
0
0
0
0.005155
0.198347
242
15
40
16.133333
0.747423
0.206612
0
0
0
0
0.116402
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
1
bb6e47bcb029580ce5bd8d394ef62d77c0922f28
759
py
Python
dist_ml/util.py
StargazerZhu/ray_dist_ml
a576810922a9de763af4df62f93e2f74272f628a
[ "Apache-2.0" ]
1
2019-07-03T08:12:45.000Z
2019-07-03T08:12:45.000Z
dist_ml/util.py
rzhu3/ray_dist_ml
a576810922a9de763af4df62f93e2f74272f628a
[ "Apache-2.0" ]
null
null
null
dist_ml/util.py
rzhu3/ray_dist_ml
a576810922a9de763af4df62f93e2f74272f628a
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np def proxgrad_l1l2(var, grad, lr, l1, l2): # Try to perform proximal gradient step: # x_{t+1} = prox_{lr * h}(var - lr * grad) # where h(x) = l1 * ||x||_1 + 0.5 * l2 * ||x||_F^2....
26.172414
80
0.615283
128
759
3.429688
0.34375
0.095672
0.109339
0
0
0
0
0
0
0
0
0.05477
0.254282
759
29
81
26.172414
0.720848
0.16996
0
0
0
0
0
0
0
0
0
0
0
1
0.157895
false
0
0.210526
0.052632
0.578947
0.052632
0
0
0
null
0
0
0
0
0
0
0
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
bb6f9161ceb8c685b678047dd4f9a1f0771b8443
2,986
py
Python
Python3/105.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
854
2018-11-09T08:06:16.000Z
2022-03-31T06:05:53.000Z
Python3/105.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
29
2019-06-02T05:02:25.000Z
2021-11-15T04:09:37.000Z
Python3/105.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
347
2018-12-23T01:57:37.000Z
2022-03-12T14:51:21.000Z
__________________________________________________________________________________________________ sample 48 ms submission # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None import collections class Solution...
30.783505
98
0.554923
303
2,986
4.409241
0.270627
0.022455
0.04491
0.051647
0.447605
0.38024
0.38024
0.287425
0.242515
0.242515
0
0.01065
0.371065
2,986
96
99
31.104167
0.700745
0.189886
0
0.438596
0
0
0
0
0
0
0
0
0
0
null
null
0
0.017544
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
bb7d67707c193c92d7bbdc30b4fdc19cf540a01a
2,373
py
Python
marathoner/contest/base.py
Mimino666/tc-marathoner
ab388f8706d671f6bdd8667c9e863c37a2cb21ae
[ "MIT" ]
14
2015-04-21T14:04:37.000Z
2021-12-23T01:40:02.000Z
marathoner/contest/base.py
Mimino666/tc-marathoner
ab388f8706d671f6bdd8667c9e863c37a2cb21ae
[ "MIT" ]
3
2015-04-23T13:33:28.000Z
2015-09-17T14:54:53.000Z
marathoner/contest/base.py
Mimino666/tc-marathoner
ab388f8706d671f6bdd8667c9e863c37a2cb21ae
[ "MIT" ]
1
2021-12-23T01:40:09.000Z
2021-12-23T01:40:09.000Z
class BaseContest(object): '''BaseContest is an abstract class for contest-specific modifications to Marathoner. ''' def __init__(self, project): self.project = project self.maximize = project.maximize def extract_score(self, visualizer_stdout, solution_stderr): '''Extract r...
36.507692
83
0.633797
263
2,373
5.551331
0.30038
0.115068
0.073973
0.061644
0.330137
0.236986
0.236986
0.236986
0.179452
0.179452
0
0
0.295828
2,373
64
84
37.078125
0.873728
0.505268
0
0.45
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0
0
0.45
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
bb7f2920a44e4fe94e09ea61254b123e39008f7e
220
py
Python
series/series.py
gpsg/Python_with_Exercism
febd7c26788c5b7e35096ef7914cce8298141293
[ "MIT" ]
null
null
null
series/series.py
gpsg/Python_with_Exercism
febd7c26788c5b7e35096ef7914cce8298141293
[ "MIT" ]
null
null
null
series/series.py
gpsg/Python_with_Exercism
febd7c26788c5b7e35096ef7914cce8298141293
[ "MIT" ]
null
null
null
def slices(series: str, length: int) -> list[str]: size = len(series) if length > size or length < 1: raise ValueError("Invalid Input") return [series[i:i + length] for i in range(size - length + 1)]
36.666667
67
0.622727
33
220
4.151515
0.636364
0.10219
0
0
0
0
0
0
0
0
0
0.011976
0.240909
220
5
68
44
0.808383
0
0
0
0
0
0.059091
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bb80640dcc36f2c5c2b8e055619465df6da0ff41
2,425
py
Python
tests/settings.py
nnsnodnb/django-ios-pushnotifications
ae24c3e68b0716d4e2f50f6d0d5867fa6d922fb2
[ "MIT" ]
3
2017-09-19T08:22:01.000Z
2019-03-21T06:49:47.000Z
tests/settings.py
nnsnodnb/django-ios-pushnotifications
ae24c3e68b0716d4e2f50f6d0d5867fa6d922fb2
[ "MIT" ]
26
2017-05-15T10:29:34.000Z
2021-03-31T11:17:21.000Z
tests/settings.py
nnsnodnb/django-ios-pushnotifications
ae24c3e68b0716d4e2f50f6d0d5867fa6d922fb2
[ "MIT" ]
null
null
null
import os import sys import django BASE_DIR = os.path.dirname(os.path.dirname(__file__)) sys.path.insert(0, os.path.join(BASE_DIR, 'src')) DEBUG = True ADMINS = ( ('admin', 'admin@location'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 't...
24.25
70
0.663505
236
2,425
6.682203
0.432203
0.131896
0.0539
0.017755
0.304375
0.244769
0.244769
0.173748
0.173748
0.173748
0
0.010277
0.197526
2,425
99
71
24.494949
0.800103
0
0
0.131579
0
0.013158
0.54433
0.438351
0
0
0
0
0
1
0
false
0
0.039474
0
0.039474
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bb81356c54bcd5fe6a1085e0c438b8b6cc72aebf
521
py
Python
test.py
YuaCC/galaxyFly
6be31d6f6b5422ab5c1f679e5fe2b1d6bb08b9ec
[ "BSD-2-Clause" ]
null
null
null
test.py
YuaCC/galaxyFly
6be31d6f6b5422ab5c1f679e5fe2b1d6bb08b9ec
[ "BSD-2-Clause" ]
null
null
null
test.py
YuaCC/galaxyFly
6be31d6f6b5422ab5c1f679e5fe2b1d6bb08b9ec
[ "BSD-2-Clause" ]
null
null
null
import numpy as np from finitefield import GF q=1024 field= GF(q) elts_map = {} for (i, v) in enumerate(field): elts_map[i] =v print(elts_map) rev_elts_map = {v:k for k,v in elts_map.items()} print(rev_elts_map) add_table = np.zeros((q,q)) for i in range(q): for j in range(q): add_table[i][j] = rev_elt...
22.652174
63
0.667946
108
521
3.018519
0.25
0.257669
0.122699
0.079755
0.435583
0.435583
0.435583
0.435583
0.435583
0.435583
0
0.009302
0.174664
521
22
64
23.681818
0.748837
0
0
0.2
0
0
0
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.2
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
bb8d1351041017b1890f80a84c0ff64481d4f202
411
py
Python
meshtastic/tests/test_ble_interface.py
prampec/Meshtastic-python
33ff4e36de578b12a889f9fcc42a1b1017262323
[ "Apache-2.0" ]
1
2022-02-20T09:16:25.000Z
2022-02-20T09:16:25.000Z
meshtastic/tests/test_ble_interface.py
willy5123456/Meshtastic-python
bf879934e61b2d73e052ef34edba18933db62469
[ "Apache-2.0" ]
null
null
null
meshtastic/tests/test_ble_interface.py
willy5123456/Meshtastic-python
bf879934e61b2d73e052ef34edba18933db62469
[ "Apache-2.0" ]
1
2022-01-24T17:07:30.000Z
2022-01-24T17:07:30.000Z
"""Meshtastic unit tests for ble_interface.py""" from unittest.mock import patch import pytest from ..ble_interface import BLEInterface @pytest.mark.unit @patch('platform.system', return_value='Linux') def test_BLEInterface(mock_platform): """Test that we can instantiate a BLEInterface""" iface = BLEInterfa...
25.6875
60
0.754258
53
411
5.716981
0.660377
0.079208
0
0
0
0
0
0
0
0
0
0
0.131387
411
15
61
27.4
0.84874
0.209246
0
0
0
0
0.073248
0
0
0
0
0
0.111111
1
0.111111
false
0
0.333333
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
bb8ebe051faf99a2b8296c1310a5aa76433776cb
613
py
Python
Python/150.EvaluateReversePolishNotation.py
shreyventure/LeetCode-Solutions
74423d65702b78974e390f17c9d6365d17e6eed5
[ "MIT" ]
388
2020-06-29T08:41:27.000Z
2022-03-31T22:55:05.000Z
Python/150.EvaluateReversePolishNotation.py
shreyventure/LeetCode-Solutions
74423d65702b78974e390f17c9d6365d17e6eed5
[ "MIT" ]
178
2020-07-16T17:15:28.000Z
2022-03-09T21:01:50.000Z
Python/150.EvaluateReversePolishNotation.py
shreyventure/LeetCode-Solutions
74423d65702b78974e390f17c9d6365d17e6eed5
[ "MIT" ]
263
2020-07-13T18:33:20.000Z
2022-03-28T13:54:10.000Z
#Time Complexity: O(n) #Space Complexity: O(1) #Speed: 84.65% #Memory: 84.34% class Solution: def evalRPN(self, tokens: List[str]) -> int: stack = [] for token in tokens: if token.isdigit() or token[1:].isdigit(): stack.append(int(token)) else: ...
32.263158
57
0.458401
74
613
3.797297
0.459459
0.124555
0.170819
0.256228
0.27758
0.27758
0.27758
0.27758
0.27758
0.27758
0
0.029024
0.381729
613
19
58
32.263158
0.712401
0.119086
0
0
0
0
0.007449
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.214286
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
bb8f65f46d4f793f8362b9d7a1309d0779c481f2
4,463
py
Python
src/models/segmentation.py
MohammedAljahdali/shrinkbench
f08a0e27d7e1118a46605e5ec9026ecaa931365e
[ "MIT" ]
null
null
null
src/models/segmentation.py
MohammedAljahdali/shrinkbench
f08a0e27d7e1118a46605e5ec9026ecaa931365e
[ "MIT" ]
null
null
null
src/models/segmentation.py
MohammedAljahdali/shrinkbench
f08a0e27d7e1118a46605e5ec9026ecaa931365e
[ "MIT" ]
null
null
null
import pytorch_lightning as pl from detectron2.modeling import build_model from detectron2.solver import WarmupMultiStepLR from detectron2.evaluation import COCOEvaluator from detectron2.utils.events import EventStorage from detectron2.solver import build_lr_scheduler, build_optimizer import detectron2 import torch ...
39.848214
153
0.647322
549
4,463
5.063752
0.309654
0.039568
0.036691
0.021583
0.329856
0.259353
0.23777
0.172662
0.172662
0.160432
0
0.003589
0.250728
4,463
112
154
39.848214
0.827452
0.210397
0
0.112676
0
0
0.064286
0.035429
0
0
0
0
0
0
null
null
0
0.140845
null
null
0.014085
0
0
0
null
0
0
0
0
0
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
bb913c581f274fb7019277ee62376be71c81d099
2,125
py
Python
GoProTimelapse.py
robdobsn/GoProTimelapse
87522bc8d6f01dbd0a65e2747498f8da2c65060d
[ "MIT" ]
6
2017-04-06T05:28:49.000Z
2021-03-03T04:09:52.000Z
GoProTimelapse.py
robdobsn/GoProTimelapse
87522bc8d6f01dbd0a65e2747498f8da2c65060d
[ "MIT" ]
null
null
null
GoProTimelapse.py
robdobsn/GoProTimelapse
87522bc8d6f01dbd0a65e2747498f8da2c65060d
[ "MIT" ]
1
2017-11-03T15:22:51.000Z
2017-11-03T15:22:51.000Z
from GoProCamera import GoProCamera import time, datetime import configparser import logging from subprocess import call # Logging #logging.basicConfig(filename="GoProTimelapse.log", level=logging.DEBUG, format='%(asctime)s %(message)s') logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(message)s') # Get...
33.730159
127
0.709647
263
2,125
5.730038
0.429658
0.043796
0.075647
0.041805
0.209025
0.165229
0.165229
0.146649
0.072993
0.072993
0
0.017175
0.150588
2,125
62
128
34.274194
0.817729
0.231529
0
0.054054
0
0
0.153086
0.018519
0
0
0
0
0
1
0
false
0.054054
0.135135
0
0.135135
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
bb9bf4ee4ba6040863a2761ee269b7b031256bc5
6,835
py
Python
app/utils.py
SanchithHegde/decrypto-api
a68b6a5285fba4eb556f375e18e87505677fa6dd
[ "MIT" ]
null
null
null
app/utils.py
SanchithHegde/decrypto-api
a68b6a5285fba4eb556f375e18e87505677fa6dd
[ "MIT" ]
2
2021-08-17T17:07:52.000Z
2021-11-28T19:02:50.000Z
app/utils.py
SanchithHegde/decrypto-api
a68b6a5285fba4eb556f375e18e87505677fa6dd
[ "MIT" ]
null
null
null
""" Utility functions to send emails and handle password reset. """ from datetime import datetime, timedelta from pathlib import Path from typing import Any, Dict, Optional import emails # type: ignore from emails.backend.smtp.exceptions import SMTPConnectNetworkError # type: ignore from emails.template import Jinj...
31.210046
87
0.673153
842
6,835
5.30285
0.206651
0.045465
0.048376
0.034938
0.325196
0.287346
0.258007
0.225756
0.182531
0.149608
0
0.000573
0.233943
6,835
218
88
31.353211
0.852177
0.051792
0
0.267717
0
0
0.132162
0.008385
0
0
0
0
0.007874
1
0.007874
false
0.110236
0.07874
0
0.11811
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
bbaade02c518fec6e803cb754d35b9cae9a5df9d
2,730
py
Python
leetcode/design/seat-reservation-manager.py
ramanaditya/data-structure-and-algorithms
8dcfeb011e76b2b38b54842e8ccc7a59728141f8
[ "MIT" ]
81
2020-05-22T14:22:04.000Z
2021-12-18T10:11:23.000Z
leetcode/design/seat-reservation-manager.py
techhub-community/data-structure-and-algorithms
8dcfeb011e76b2b38b54842e8ccc7a59728141f8
[ "MIT" ]
4
2020-08-06T21:08:00.000Z
2021-03-31T16:07:50.000Z
leetcode/design/seat-reservation-manager.py
techhub-community/data-structure-and-algorithms
8dcfeb011e76b2b38b54842e8ccc7a59728141f8
[ "MIT" ]
37
2020-05-22T14:25:21.000Z
2021-12-30T03:13:13.000Z
""" ## Questions: MEDIUM ### 1845. [Seat Reservation Manager](https://leetcode.com/problems/seat-reservation-manager/) Design a system that manages the reservation state of n seats that are numbered from 1 to n. Implement the SeatManager class: SeatManager(int n) Initializes a SeatManager object that will manage n s...
39
112
0.695971
402
2,730
4.701493
0.310945
0.033862
0.053968
0.063492
0.203175
0.186243
0.135979
0.135979
0.12328
0.12328
0
0.034106
0.194505
2,730
69
113
39.565217
0.825375
0.810256
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bbabc7bd9a0a238efc6bc9796fa83f5c5c1274ae
1,196
py
Python
apps/blog/templatetags/template_library.py
gurnitha/2022-django-blog-magazine-cbv
b617a47c43ceb1b836a3af287e5c695bd062c258
[ "Unlicense" ]
null
null
null
apps/blog/templatetags/template_library.py
gurnitha/2022-django-blog-magazine-cbv
b617a47c43ceb1b836a3af287e5c695bd062c258
[ "Unlicense" ]
null
null
null
apps/blog/templatetags/template_library.py
gurnitha/2022-django-blog-magazine-cbv
b617a47c43ceb1b836a3af287e5c695bd062c258
[ "Unlicense" ]
null
null
null
# apps/blog/templatetags/menu_tags.py # Django modules from django import template # Locals from apps.blog.models import Category # Template library register = template.Library() # Register your template here @register.inclusion_tag('shared/tpl/menu_tpl.html') def show_menu(): # categories = Category.objects.all(...
27.813953
78
0.776756
165
1,196
5.230303
0.266667
0.115875
0.146002
0.186559
0.549247
0.440324
0.356895
0.356895
0.205098
0.096176
0
0.009302
0.101171
1,196
43
79
27.813953
0.793488
0.265886
0
0.190476
0
0
0.200464
0.146002
0
0
0
0
0
1
0.095238
false
0
0.095238
0
0.285714
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
bbafacb366324fc664842ea49c7abb7d23acc13f
662
py
Python
config.py
wilianselzlein/DataSUS
bc46e548f0dabf975f412171f840a8bc6a3f9f88
[ "MIT", "PostgreSQL", "Unlicense" ]
1
2021-06-22T14:03:25.000Z
2021-06-22T14:03:25.000Z
config.py
wilianselzlein/DataSUS
bc46e548f0dabf975f412171f840a8bc6a3f9f88
[ "MIT", "PostgreSQL", "Unlicense" ]
4
2021-06-18T16:13:42.000Z
2021-06-18T16:16:13.000Z
config.py
wilianselzlein/DataSUS
bc46e548f0dabf975f412171f840a8bc6a3f9f88
[ "MIT", "PostgreSQL", "Unlicense" ]
null
null
null
import os import logging logger_name = "main" ftp_datasus = "ftp.datasus.gov.br" cwd_ftp = "dissemin/publicos/{}SUS/200801_/Dados/" postgres_driver = "postgresql" postgres_drive_full = "org.postgresql.Driver" postgres_user = "postgres" postgres_pass = "postgres" postgres_host = os.environ.get("POSTGRES_URI", "localho...
28.782609
139
0.752266
96
662
4.947917
0.572917
0.042105
0.075789
0.109474
0
0
0
0
0
0
0
0.061564
0.092145
662
22
140
30.090909
0.728785
0.013595
0
0
0
0
0.343558
0.226994
0
0
0
0
0
1
0
false
0.117647
0.117647
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
bbb3203cb3b1098c5dbf7b2d53c9b311b78167cf
232
py
Python
LISTS2/NUMBER2.py
MakarFadeev/PythonTasks
2ae18c3c6a50808f985966d3304a6af6824ce686
[ "Apache-2.0" ]
2
2020-11-13T05:59:45.000Z
2020-11-29T09:26:20.000Z
LISTS2/NUMBER2.py
MakarFadeev/PythonTasks
2ae18c3c6a50808f985966d3304a6af6824ce686
[ "Apache-2.0" ]
1
2020-10-29T18:14:10.000Z
2020-10-29T18:14:10.000Z
LISTS2/NUMBER2.py
MakarFadeev/PythonTasks
2ae18c3c6a50808f985966d3304a6af6824ce686
[ "Apache-2.0" ]
null
null
null
n = int(input('сколько чисел вы хотите ввести? ')) array = [] printArray = [] for i in range(0, n): array.append(int(input('Введите число: '))) if (array[i] % 2 != 0): printArray.append(array[i]) print(* printArray)
25.777778
50
0.607759
33
232
4.272727
0.636364
0.113475
0
0
0
0
0
0
0
0
0
0.016216
0.202586
232
8
51
29
0.745946
0
0
0
0
0
0.202586
0
0
0
0
0
0
1
0
false
0
0
0
0
0.375
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
bbbbbfe8f60a4101d40d573ed2a0248c7f8b7db5
1,257
py
Python
api/models/gcd/brandgroup.py
LuchaComics/comicscantina-django
78e630000fb1e1f6299f80655c8f57a496236ab1
[ "BSD-2-Clause" ]
null
null
null
api/models/gcd/brandgroup.py
LuchaComics/comicscantina-django
78e630000fb1e1f6299f80655c8f57a496236ab1
[ "BSD-2-Clause" ]
5
2021-03-19T02:58:32.000Z
2022-03-11T23:57:30.000Z
api/models/gcd/brandgroup.py
lendierickx/comics-django
3f5c6e85c89ff157dbf67179ea3b9007d7de446c
[ "BSD-2-Clause" ]
null
null
null
from django.db import models from api.models.gcd.image import GCDImage from api.models.gcd.publisher import GCDPublisher class GCDBrandGroup(models.Model): class Meta: app_label = 'api' ordering = ('name',) db_table = 'gcd_brand_groups' brand_group_id = models.AutoField(primary_ke...
36.970588
73
0.726333
160
1,257
5.525
0.45
0.047511
0.074661
0.036199
0.199095
0.199095
0.199095
0.106335
0
0
0
0.006744
0.174224
1,257
34
74
36.970588
0.844894
0.046937
0
0
0
0
0.019231
0
0
0
0
0
0
1
0.04
false
0
0.12
0.04
0.88
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
bbbd7799cc4e8f8aa61bd57475e5167eecbb475d
710
py
Python
2019/python/03/test_case02_03.py
orhtej2/adventofcode
d273d28e394f58face0ae9873bfe43a667e427c4
[ "Unlicense" ]
null
null
null
2019/python/03/test_case02_03.py
orhtej2/adventofcode
d273d28e394f58face0ae9873bfe43a667e427c4
[ "Unlicense" ]
null
null
null
2019/python/03/test_case02_03.py
orhtej2/adventofcode
d273d28e394f58face0ae9873bfe43a667e427c4
[ "Unlicense" ]
null
null
null
import unittest from aoc2019_03 import case02 class Case01(unittest.TestCase): def test_example(self): result = case02.main( "R8,U5,L5,D3", "U7,R6,D4,L4" ) self.assertEqual(30, result) def test_sample01(self): result = case02.main( "R75,D30,...
23.666667
58
0.564789
95
710
4.094737
0.673684
0.053985
0.123393
0.154242
0
0
0
0
0
0
0
0.215569
0.294366
710
30
59
23.666667
0.560878
0
0
0.130435
0
0.043478
0.244726
0.202532
0
0
0
0
0.130435
1
0.130435
false
0
0.086957
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bbbda5509209cff911df646093ce8a1412afb0ca
633
py
Python
Flask basics and templates/templates.py
akkinasrikar/Flask
4ffe40fba579a4aef6e2f27439691fc7df51bfd5
[ "MIT" ]
1
2020-09-08T03:22:20.000Z
2020-09-08T03:22:20.000Z
Flask basics and templates/templates.py
akkinasrikar/Flask
4ffe40fba579a4aef6e2f27439691fc7df51bfd5
[ "MIT" ]
null
null
null
Flask basics and templates/templates.py
akkinasrikar/Flask
4ffe40fba579a4aef6e2f27439691fc7df51bfd5
[ "MIT" ]
null
null
null
from flask import Flask,render_template app=Flask(__name__) @app.route('/') def home(): return render_template('templateinherictence(home).html') @app.route('/puppy/<name>') def puppy(name): return render_template('puppy.html',name=name) @app.route('/flow') def controloverflow(): mylist=[1,2,3,...
21.827586
67
0.690363
82
633
5.109756
0.463415
0.167064
0.190931
0
0
0
0
0
0
0
0
0.009141
0.135861
633
29
68
21.827586
0.756856
0
0
0
0
0
0.247525
0.090759
0
0
0
0
0
1
0.2
false
0
0.05
0.1
0.45
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bbbdf8f8716916f3f30c5ef42a5ffc49144f9de6
229
py
Python
examples/caveat_font.py
naveen521kk/manim-fonts
27eaabb6bff67f1574c94f12e66f685881e28f8b
[ "BSD-3-Clause" ]
6
2021-03-19T13:41:55.000Z
2022-01-01T11:13:28.000Z
examples/caveat_font.py
naveen521kk/manim-fonts
27eaabb6bff67f1574c94f12e66f685881e28f8b
[ "BSD-3-Clause" ]
5
2021-05-27T16:35:36.000Z
2022-01-13T06:19:41.000Z
examples/caveat_font.py
naveen521kk/manim-fonts
27eaabb6bff67f1574c94f12e66f685881e28f8b
[ "BSD-3-Clause" ]
1
2021-05-05T07:31:30.000Z
2021-05-05T07:31:30.000Z
from manim import * from manim_fonts import * class TestFonts(Scene): def construct(self): with RegisterFont("Caveat") as things: a = Text("Hello World", font=things[0]) self.play(Write(a))
20.818182
51
0.615721
29
229
4.827586
0.793103
0.128571
0
0
0
0
0
0
0
0
0
0.005952
0.266376
229
10
52
22.9
0.827381
0
0
0
0
0
0.074236
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
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
bbbf90290dcec919c35e4373b123fd85c59d8961
491
py
Python
Lab 1/main.py
tochanenko/MetaProgramming
d37f21432483e39e135fd0dc4f8767836eea1609
[ "MIT" ]
null
null
null
Lab 1/main.py
tochanenko/MetaProgramming
d37f21432483e39e135fd0dc4f8767836eea1609
[ "MIT" ]
null
null
null
Lab 1/main.py
tochanenko/MetaProgramming
d37f21432483e39e135fd0dc4f8767836eea1609
[ "MIT" ]
null
null
null
from file_finder import find_kt_files from settings import load_settings from new_lexer import Lexer if __name__ == '__main__': # directory = input("Enter project directory: ") # kt_files = find_kt_files(directory) # print(kt_files) # print("Settings:") # settings = load_settings("config/config.j...
24.55
60
0.668024
58
491
5.310345
0.465517
0.090909
0.071429
0
0
0
0
0
0
0
0
0
0.199593
491
20
61
24.55
0.783715
0.478615
0
0
0
0
0.089431
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
bbc972bcc7e488c570adb65a125f13ffc041d7e1
2,315
py
Python
release/src-rt-6.x.4708/router/samba3/source4/scripting/python/samba/netcmd/user.py
zaion520/ATtomato
4d48bb79f8d147f89a568cf18da9e0edc41f93fb
[ "FSFAP" ]
2
2019-01-13T09:19:10.000Z
2019-02-15T01:21:02.000Z
release/src-rt-6.x.4708/router/samba3/source4/scripting/python/samba/netcmd/user.py
zaion520/ATtomato
4d48bb79f8d147f89a568cf18da9e0edc41f93fb
[ "FSFAP" ]
null
null
null
release/src-rt-6.x.4708/router/samba3/source4/scripting/python/samba/netcmd/user.py
zaion520/ATtomato
4d48bb79f8d147f89a568cf18da9e0edc41f93fb
[ "FSFAP" ]
2
2020-03-08T01:58:25.000Z
2020-12-20T10:34:54.000Z
#!/usr/bin/env python # # user management # # Copyright Jelmer Vernooij 2010 <jelmer@samba.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your o...
30.064935
88
0.684233
289
2,315
5.404844
0.422145
0.022407
0.024968
0.036492
0.37644
0.359795
0.323944
0.323944
0.274008
0.274008
0
0.00274
0.211663
2,315
76
89
30.460526
0.853151
0.333909
0
0.315789
0
0
0.0929
0
0
0
0
0
0
1
0.052632
false
0.131579
0.078947
0
0.394737
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
bbdbff837b0704e584fc05bb6ca72114817057e0
3,320
py
Python
src/prisData.py
wahur666/CFT-model-extractor
9d59f0865595bca3ee7b7637b7dc87373a2772fa
[ "Apache-2.0" ]
null
null
null
src/prisData.py
wahur666/CFT-model-extractor
9d59f0865595bca3ee7b7637b7dc87373a2772fa
[ "Apache-2.0" ]
null
null
null
src/prisData.py
wahur666/CFT-model-extractor
9d59f0865595bca3ee7b7637b7dc87373a2772fa
[ "Apache-2.0" ]
null
null
null
from typing import List import numpy as np from filereader3db import get_string, get_as_float_list, get_float class Part: def __init__(self): self.parent_name: str = '' self.child_name: str = '' self.origin_x: float = 0 self.origin_y: float = 0 self.origin_z: float = 0 ...
31.923077
66
0.565361
503
3,320
3.455268
0.141153
0.093211
0.126582
0.172612
0.555811
0.407365
0.394707
0.296318
0.064442
0.064442
0
0.033169
0.328012
3,320
103
67
32.23301
0.745854
0
0
0.098765
0
0
0.001506
0
0
0
0.010847
0
0
1
0.037037
false
0
0.037037
0
0.111111
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
bbe1bcb8f168a704d75fbc5305a27f1820ad93a9
2,819
py
Python
client/client.py
mystor/Elephant-Jaguar
07166332be87edbc37c5d7480cb6769f337f48f9
[ "Apache-2.0" ]
null
null
null
client/client.py
mystor/Elephant-Jaguar
07166332be87edbc37c5d7480cb6769f337f48f9
[ "Apache-2.0" ]
null
null
null
client/client.py
mystor/Elephant-Jaguar
07166332be87edbc37c5d7480cb6769f337f48f9
[ "Apache-2.0" ]
null
null
null
"""-ELEPHANTS == JAGUARS-""" import hashlib import time import requests import os import json import base64 import re SERVER = "http://localhost:8000" CACHE = {} IGNORE_RE = re.compile(r"^\.|~$|^\#"); ACCEPT_RE = re.compile(r"\.go$"); def pulse(path): """ Perform a single pulse, synchronising data between t...
25.396396
75
0.511174
344
2,819
4.139535
0.357558
0.02809
0.033708
0.049157
0.204354
0.143258
0.078652
0.046348
0.046348
0.046348
0
0.008625
0.341965
2,819
110
76
25.627273
0.75903
0.070947
0
0.146667
0
0
0.094282
0
0
0
0
0.009091
0
0
null
null
0
0.093333
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
bbe255893b5ec9734b26f0908c88d7b854d2313d
7,611
py
Python
graphql_compiler/tests/schema_transformation_tests/input_schema_strings.py
manesioz/graphql-compiler
b23be9c4a8e26f8c82e741625e04f7c9ac2e623b
[ "Apache-2.0" ]
null
null
null
graphql_compiler/tests/schema_transformation_tests/input_schema_strings.py
manesioz/graphql-compiler
b23be9c4a8e26f8c82e741625e04f7c9ac2e623b
[ "Apache-2.0" ]
null
null
null
graphql_compiler/tests/schema_transformation_tests/input_schema_strings.py
manesioz/graphql-compiler
b23be9c4a8e26f8c82e741625e04f7c9ac2e623b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-present Kensho Technologies, LLC. from textwrap import dedent class InputSchemaStrings(object): basic_schema = dedent( """\ schema { query: SchemaQuery } directive @stitch(source_field: String!, sink_field: String!) on FIELD_DEFINITION type Huma...
16.474026
89
0.43516
556
7,611
5.856115
0.143885
0.056511
0.105037
0.134214
0.605958
0.577396
0.562654
0.511364
0.504607
0.424447
0
0.001038
0.493628
7,611
461
90
16.509761
0.843799
0.006307
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.025
0
0.525
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
bbe25cf6c00a6c1f3bd5b84102576eee4cc0f8c6
7,795
py
Python
ismore/invasive/analysis/decoder_predictions.py
srsummerson/bmi_python
7eca891f078ce15b2b9cf85f1309346d6fb9fccb
[ "Apache-2.0" ]
null
null
null
ismore/invasive/analysis/decoder_predictions.py
srsummerson/bmi_python
7eca891f078ce15b2b9cf85f1309346d6fb9fccb
[ "Apache-2.0" ]
12
2020-07-31T18:58:31.000Z
2022-02-10T14:36:00.000Z
ismore/invasive/analysis/decoder_predictions.py
srsummerson/bmi_python
7eca891f078ce15b2b9cf85f1309346d6fb9fccb
[ "Apache-2.0" ]
4
2020-03-06T15:39:00.000Z
2021-05-26T17:03:21.000Z
from riglib.bmi import train, extractor from db import dbfunctions as dbfn from ismore import ismore_bmi_lib from ismore import plants from ismore.ismore_tests import test_train_decoder import tables import numpy as np import time import matplotlib.pyplot as plt import scipy.stats from ismore import common_state_lists...
35.921659
188
0.562925
1,031
7,795
4.049467
0.251212
0.028503
0.018443
0.013413
0.152335
0.125269
0.11497
0.067066
0.067066
0.052695
0
0.013701
0.316485
7,795
217
189
35.921659
0.769895
0.050032
0
0.171975
0
0
0.048662
0
0
0
0
0
0
0
null
null
0.006369
0.082803
null
null
0.006369
0
0
0
null
0
0
0
0
0
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
bbf04d18ba20940d35b0feb9679f52259e1b787f
3,044
py
Python
src/rotest/management/models/ut_models.py
gregoil/rotest
c443bc1b99e02f047adfcab9943966f0023f652c
[ "MIT" ]
26
2017-06-11T18:21:17.000Z
2021-02-21T20:36:30.000Z
src/rotest/management/models/ut_models.py
gregoil/rotest
c443bc1b99e02f047adfcab9943966f0023f652c
[ "MIT" ]
143
2017-06-29T11:18:35.000Z
2021-06-10T17:23:46.000Z
src/rotest/management/models/ut_models.py
gregoil/rotest
c443bc1b99e02f047adfcab9943966f0023f652c
[ "MIT" ]
11
2017-06-12T09:16:14.000Z
2021-07-11T23:20:59.000Z
"""Define Rotest UT model classes.""" # pylint: disable=no-self-use,no-init,no-member,too-few-public-methods # pylint: disable=attribute-defined-outside-init,too-many-public-methods from __future__ import absolute_import from django.db import models from future.builtins import range, object from rotest.management.mod...
40.586667
79
0.718134
345
3,044
6.197101
0.301449
0.05145
0.105239
0.126286
0.596819
0.561272
0.515435
0.515435
0.469598
0.469598
0
0.002863
0.196781
3,044
74
80
41.135135
0.871575
0.434954
0
0.322581
0
0
0.03839
0
0
0
0
0
0
1
0
false
0
0.129032
0
0.806452
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
bbf2e700e7f4879321f8b7493b646ad954c37321
13,734
py
Python
main.py
youssefHosni/resting-state-fMRI-calssification
98ad4a8a0d4daa308992fe05de23f68f669e230a
[ "MIT" ]
null
null
null
main.py
youssefHosni/resting-state-fMRI-calssification
98ad4a8a0d4daa308992fe05de23f68f669e230a
[ "MIT" ]
null
null
null
main.py
youssefHosni/resting-state-fMRI-calssification
98ad4a8a0d4daa308992fe05de23f68f669e230a
[ "MIT" ]
1
2021-08-31T07:48:37.000Z
2021-08-31T07:48:37.000Z
import numpy as np from hyper_opt import create_mask,model_1D,model_reduced,model_1D_calibrate import load_data import data_preprocessing import generate_result from sklearn.model_selection import train_test_split def main(): # define input file names, directories, and parmaeters train_Con_file_name = 'CV_con....
80.315789
208
0.654143
1,553
13,734
5.286542
0.110109
0.087698
0.065773
0.031181
0.614495
0.514373
0.409257
0.352984
0.241413
0.192692
0
0.015746
0.278652
13,734
170
209
80.788235
0.812961
0.185088
0
0.081967
1
0.016393
0.041779
0.004752
0
0
0
0
0
1
0.008197
false
0
0.04918
0
0.057377
0.008197
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
bbf552b6c0a85cc3d95c645c9e527466b5c50588
2,149
py
Python
scripts/demo/template-projects/converter.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
25
2018-04-13T12:44:12.000Z
2022-03-12T15:01:17.000Z
scripts/demo/template-projects/converter.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
2,553
2018-01-18T17:11:55.000Z
2022-03-31T16:26:40.000Z
scripts/demo/template-projects/converter.py
mrnicegyu11/osparc-simcore
b6fa6c245dbfbc18cc74a387111a52de9b05d1f4
[ "MIT" ]
20
2018-01-18T19:45:33.000Z
2022-03-29T07:08:47.000Z
import csv import json import sys from pathlib import Path from typing import Dict, List from simcore_service_webserver.projects.projects_db import _convert_to_schema_names SEPARATOR = "," current_file = Path(sys.argv[0] if __name__ == "__main__" else __file__).resolve() current_dir = current_file.parent def load_...
27.909091
83
0.581201
255
2,149
4.643137
0.431373
0.016892
0.027872
0.033784
0
0
0
0
0
0
0
0.004032
0.307585
2,149
76
84
28.276316
0.791667
0.092136
0
0.04
0
0
0.069719
0
0
0
0
0.013158
0
1
0.06
false
0
0.12
0
0.22
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
bbf821179247d443b1b12c05adf620e2e53da58a
2,435
py
Python
src/ember/tileset.py
flother/ember
4f013359126890d0f93f80bee3d2c896b295fd94
[ "MIT" ]
null
null
null
src/ember/tileset.py
flother/ember
4f013359126890d0f93f80bee3d2c896b295fd94
[ "MIT" ]
1
2021-12-06T07:09:54.000Z
2021-12-06T07:09:54.000Z
src/ember/tileset.py
flother/ember
4f013359126890d0f93f80bee3d2c896b295fd94
[ "MIT" ]
null
null
null
from dataclasses import dataclass import json import mimetypes import sqlite3 class TileNotFound(ValueError): pass class Metadata: """ Key/value store for settings for a tileset's settings. <https://github.com/mapbox/mbtiles-spec/blob/master/1.3/spec.md#metadata> """ def __init__(self, ite...
25.631579
77
0.534292
266
2,435
4.793233
0.413534
0.042353
0.070588
0.051765
0.210196
0.210196
0.210196
0.161569
0.161569
0.161569
0
0.005057
0.350308
2,435
94
78
25.904255
0.800885
0.065298
0
0.206349
0
0
0.121817
0.055916
0
0
0
0.010638
0
1
0.126984
false
0.015873
0.063492
0.063492
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
1
0
0
0
0
0
0
0
0
0
0
1
bbfb2e0167ddbc74c24e6e04c7257489dd582378
1,630
py
Python
project0/shopSmart.py
DonDzundza/Berkeley-AI-Course-Projects
3712d96655292e62e4d0ad25792ae19c48618b2b
[ "MIT" ]
null
null
null
project0/shopSmart.py
DonDzundza/Berkeley-AI-Course-Projects
3712d96655292e62e4d0ad25792ae19c48618b2b
[ "MIT" ]
null
null
null
project0/shopSmart.py
DonDzundza/Berkeley-AI-Course-Projects
3712d96655292e62e4d0ad25792ae19c48618b2b
[ "MIT" ]
null
null
null
# shopSmart.py # ------------ # Licensing Information: Please do not distribute or publish solutions to this # project. You are free to use and extend these projects for educational # purposes. The Pacman AI projects were developed at UC Berkeley, primarily by # John DeNero (denero@cs.berkeley.edu) and Dan Klein (klein...
33.958333
88
0.665031
226
1,630
4.761062
0.477876
0.033457
0.037175
0.041822
0.092937
0.031599
0
0
0
0
0
0.047945
0.193865
1,630
47
89
34.680851
0.770928
0.244785
0
0
0
0
0.237113
0
0
0
0
0
0
0
null
null
0
0.047619
null
null
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
1
0
0
0
0
0
0
0
0
1
bbfd95576503ebfcd8572ff260fc19f4b73999d6
6,119
py
Python
profilerTools/opts.py
mssm-labmmol/profiler
6c4a508cd656a8cdf05ab3db19680e6239296a88
[ "MIT" ]
3
2021-06-21T13:06:09.000Z
2022-02-10T13:40:46.000Z
profilerTools/opts.py
mssm-labmmol/profiler
6c4a508cd656a8cdf05ab3db19680e6239296a88
[ "MIT" ]
null
null
null
profilerTools/opts.py
mssm-labmmol/profiler
6c4a508cd656a8cdf05ab3db19680e6239296a88
[ "MIT" ]
null
null
null
# # This file is part of the profilerTools suite (see # https://github.com/mssm-labmmol/profiler). # # Copyright (c) 2020 mssm-labmmol # # 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 withou...
37.771605
103
0.659421
782
6,119
5.150895
0.432225
0.019861
0.023833
0.009682
0.166087
0.10427
0.077458
0.034757
0.034757
0.034757
0
0.033815
0.265403
6,119
161
104
38.006211
0.862291
0.623631
0
0.065934
0
0
0.006862
0
0
0
0
0
0
1
0
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a521276249d8a11e1eb53ac588b72657ca99221c
8,424
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLES1/VERSION/GLES1_1_0.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLES1/VERSION/GLES1_1_0.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GLES1/VERSION/GLES1_1_0.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''OpenGL extension VERSION.GLES1_1_0 This module customises the behaviour of the OpenGL.raw.GLES1.VERSION.GLES1_1_0 to provide a more Python-friendly API The official definition of this extension is available here: http://www.opengl.org/registry/specs/VERSION/GLES1_1_0.txt ''' from OpenGL import platform,...
38.642202
88
0.780983
870
8,424
7.497701
0.167816
0.115898
0.070826
0.106239
0.29143
0.280392
0.163422
0.159129
0.129695
0.103327
0
0.006333
0.119065
8,424
218
89
38.642202
0.872659
0.297958
0
0.274854
0
0
0.062478
0
0
0
0
0
0
1
0.005848
false
0.076023
0.040936
0
0.052632
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
a52d7ca0f136b61da6a4b660f848b8d2b4e8a6c4
2,781
py
Python
server/manage.py
androiddrew/runcible
a896d5e9ecdb055d4c24006d8c2156685cc3183d
[ "MIT" ]
null
null
null
server/manage.py
androiddrew/runcible
a896d5e9ecdb055d4c24006d8c2156685cc3183d
[ "MIT" ]
6
2021-06-28T20:34:34.000Z
2022-02-27T11:03:16.000Z
server/manage.py
androiddrew/runcible
a896d5e9ecdb055d4c24006d8c2156685cc3183d
[ "MIT" ]
null
null
null
import click from molten.contrib.sqlalchemy import EngineData, Session from runcible.api.user.model import UserModel from runcible.index import create_app # Management script cannot use wrapped WSGI callable for direct app.injector access. app = create_app() @click.group() def cli(): pass @cli.command() @click...
25.054054
87
0.674937
352
2,781
5.213068
0.392045
0.053951
0.030518
0.047956
0.155313
0.073025
0.073025
0
0
0
0
0.003583
0.197051
2,781
110
88
25.281818
0.818182
0.105717
0
0.102941
0
0
0.165906
0
0
0
0
0
0
1
0.132353
false
0.073529
0.147059
0
0.279412
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
a534e530e45e4232a6e09a074c9886c927e0d60d
5,466
py
Python
mysite/psa/tests/forms.py
cjlee112/socraticqs2
2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820
[ "Apache-2.0" ]
8
2015-06-02T15:34:44.000Z
2019-03-21T12:27:30.000Z
mysite/psa/tests/forms.py
cjlee112/socraticqs2
2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820
[ "Apache-2.0" ]
761
2015-01-07T05:13:08.000Z
2022-02-10T10:23:37.000Z
mysite/psa/tests/forms.py
cjlee112/socraticqs2
2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820
[ "Apache-2.0" ]
12
2015-01-28T20:09:36.000Z
2018-03-20T13:32:11.000Z
import uuid from unittest import TestCase import pytest from django.contrib.auth.models import User from social_django.models import UserSocialAuth from accounts.models import Instructor from psa.forms import SignUpForm, CompleteEmailForm, EmailLoginForm, UsernameLoginForm from psa.models import SecondaryEmail @pyt...
28.920635
102
0.542627
568
5,466
5.054577
0.202465
0.050157
0.072449
0.043887
0.498433
0.374086
0.30303
0.25775
0.25775
0.222222
0
0.050861
0.330955
5,466
188
103
29.074468
0.734208
0.090926
0
0.429487
0
0
0.170406
0
0
0
0
0
0.057692
1
0.025641
false
0.102564
0.051282
0
0.205128
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
a53530e28baed30817ce50ca6651a244994492c0
361
py
Python
src/650A.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
2
2016-08-19T09:47:03.000Z
2016-10-01T10:15:03.000Z
src/651C.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
null
null
null
src/651C.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
1
2015-07-01T23:57:32.000Z
2015-07-01T23:57:32.000Z
from collections import Counter n = int(input()) points = Counter([tuple(map(int, input().split(' '))) for i in range(n)]) x, y = Counter([k for k, v in points.elements()]), Counter([v for k, v in points.elements()]) ans = sum([v*(v-1)//2 for k, v in x.items()])+sum([v*(v-1)//2 for k, v in y.items()])-sum([v*(v-1)//2...
40.111111
130
0.606648
73
361
3
0.356164
0.091324
0.114155
0.159817
0.456621
0.429224
0.237443
0.237443
0.237443
0.173516
0
0.019417
0.144044
361
8
131
45.125
0.68932
0
0
0
0
0
0.00277
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
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
a53569fe142fff49ec6003877f27003e577d359d
4,490
py
Python
nr/datastructures/_ordereddict.py
alex-700/nr-deprecated
f9f8b89ea1b084841a8ab65784eaf68852686b2a
[ "MIT" ]
29
2017-03-10T18:00:11.000Z
2021-02-22T22:56:36.000Z
nr/datastructures/_ordereddict.py
alex-700/nr-deprecated
f9f8b89ea1b084841a8ab65784eaf68852686b2a
[ "MIT" ]
51
2018-02-15T21:02:58.000Z
2021-07-07T15:59:46.000Z
nr/datastructures/_ordereddict.py
alex-700/nr-deprecated
f9f8b89ea1b084841a8ab65784eaf68852686b2a
[ "MIT" ]
5
2017-07-21T22:24:15.000Z
2020-08-17T05:51:19.000Z
# The MIT License (MIT) # # Copyright (c) 2018 Niklas Rosenstein # # 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 # to use, copy,...
25.804598
80
0.649443
626
4,490
4.474441
0.314696
0.073902
0.039272
0.041771
0.175652
0.125669
0.125669
0.125669
0.101392
0.069975
0
0.007042
0.24098
4,490
173
81
25.953757
0.814847
0.310468
0
0.342593
0
0
0.005249
0
0
0
0
0
0
1
0.231481
false
0
0
0.055556
0.462963
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
a538855d6f3a7368f7eda92079d4e6797d88742c
4,036
py
Python
python/sike_bench_update.py
ttorri16/vOW4SIKE
3fa9ac4fb9be2b00d699268512536981fda3c7a9
[ "MIT" ]
9
2020-06-04T19:18:23.000Z
2022-02-23T10:54:17.000Z
python/sike_bench_update.py
ttorri16/vOW4SIKE
3fa9ac4fb9be2b00d699268512536981fda3c7a9
[ "MIT" ]
1
2020-06-02T14:57:52.000Z
2020-06-02T14:57:52.000Z
python/sike_bench_update.py
ttorri16/vOW4SIKE
3fa9ac4fb9be2b00d699268512536981fda3c7a9
[ "MIT" ]
7
2020-06-02T14:31:18.000Z
2021-11-10T08:25:28.000Z
#!/usr/bin/env python2 import vow_sike.sike_vow as vow from sike_vow_instances import load_instance, insts_stats import pickle import psutil import json import time import random from math import sqrt, ceil from extract_stats import extract_stats GLOBALS = { "ALPHA": 2.25, "BETA": 10.0, "GAMMA": 20.0, ...
30.345865
127
0.576809
483
4,036
4.612836
0.291925
0.032316
0.061041
0.022442
0.133752
0.052962
0.033214
0
0
0
0
0.017806
0.304262
4,036
132
128
30.575758
0.775641
0.025768
0
0
0
0
0.15508
0.005602
0
0
0.010186
0
0
0
null
null
0
0.105769
null
null
0.057692
0
0
0
null
0
0
0
0
0
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
a53a27d3ff5e0b2f5012e45972f294fdb7621687
1,913
py
Python
Linked_List/Flattening_a_Linked_List/solution.py
abhaydhiman/Pyalgo
69efdd937041548234bf67a2bd0b962b6e60a556
[ "MIT" ]
1
2021-01-05T14:09:47.000Z
2021-01-05T14:09:47.000Z
Linked_List/Flattening_a_Linked_List/solution.py
abhaydhiman/Pyalgo
69efdd937041548234bf67a2bd0b962b6e60a556
[ "MIT" ]
null
null
null
Linked_List/Flattening_a_Linked_List/solution.py
abhaydhiman/Pyalgo
69efdd937041548234bf67a2bd0b962b6e60a556
[ "MIT" ]
null
null
null
class Node: def __init__(self, data) -> None: self.data = data self.right = self.down = None class LinkedList: def __init__(self) -> None: self.head = self.rear = None def insert(self, item, location): temp = Node(item) if self.rear == None: ...
21.021978
49
0.571877
245
1,913
4.342857
0.187755
0.159774
0.195489
0.150376
0.110902
0.043233
0
0
0
0
0
0.01728
0.304234
1,913
91
50
21.021978
0.782119
0
0
0.106061
0
0
0.039707
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.242424
0.060606
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a53b491c922d7b7d269a3fb21a98ae02e8af8426
502
py
Python
setup.py
adobe/havoc
cb2c9d4cc264872cc7ea3de3c98994c324506367
[ "Apache-2.0" ]
3
2019-02-06T21:28:35.000Z
2020-08-29T14:42:16.000Z
setup.py
adobe/havoc
cb2c9d4cc264872cc7ea3de3c98994c324506367
[ "Apache-2.0" ]
2
2018-06-15T22:41:12.000Z
2019-08-14T13:24:32.000Z
setup.py
adobe/havoc
cb2c9d4cc264872cc7ea3de3c98994c324506367
[ "Apache-2.0" ]
4
2018-06-15T22:17:15.000Z
2020-09-29T10:04:37.000Z
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='havoc', version='0.1.0', description='HAvOC (HAproxy clOud Configuration)', author='TubeMogul Inc.', install_requires=[ 'python-daemon', 'jinja2', 'click', 'boto...
25.1
58
0.513944
45
502
5.644444
0.733333
0.094488
0
0
0
0
0
0
0
0
0
0.012158
0.344622
502
19
59
26.421053
0.759878
0.039841
0
0
0
0
0.268191
0
0
0
0
0
0
1
0
true
0
0.058824
0
0.058824
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
a53ce8b2bbae10767039dcdabcecbba9ccf93e8f
1,487
py
Python
tests/test_event_compare.py
BlackLight/Hermes
7abc1371bcd1680d315b2c56891cb9af1fe7079d
[ "Apache-2.0" ]
null
null
null
tests/test_event_compare.py
BlackLight/Hermes
7abc1371bcd1680d315b2c56891cb9af1fe7079d
[ "Apache-2.0" ]
8
2015-11-24T21:58:00.000Z
2016-05-28T09:00:54.000Z
tests/test_event_compare.py
BlackLight/Hermes
7abc1371bcd1680d315b2c56891cb9af1fe7079d
[ "Apache-2.0" ]
null
null
null
import unittest from evesp.event import Event, AttributeValueAny from evesp.event.mock_event import MockEvent class MyEvent(Event): def __init__(self, id, name): super().__init__(id=id, name=name) class TestEventCompare(unittest.TestCase): def setUp(self): self.evt = MockEvent(id=1, name='f...
29.74
80
0.675857
198
1,487
4.79798
0.20202
0.161053
0.109474
0.134737
0.685263
0.596842
0.596842
0.547368
0.491579
0.425263
0
0.007563
0.199731
1,487
49
81
30.346939
0.790756
0.011432
0
0.242424
0
0
0.019755
0
0
0
0
0
0.242424
1
0.242424
false
0
0.090909
0
0.393939
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
a5454a9a5034fdd2e119d94f783f9354040c9179
1,844
py
Python
piestats/update/retention.py
jrgp/soldat-pystats
5104a108e14f5870bd01522270f358fac9f44c36
[ "MIT" ]
8
2017-01-18T22:17:42.000Z
2021-02-09T20:47:22.000Z
piestats/update/retention.py
jrgp/soldat-pystats
5104a108e14f5870bd01522270f358fac9f44c36
[ "MIT" ]
3
2015-12-05T09:05:19.000Z
2020-05-25T05:46:23.000Z
piestats/update/retention.py
jrgp/soldat-pystats
5104a108e14f5870bd01522270f358fac9f44c36
[ "MIT" ]
3
2015-12-05T08:00:44.000Z
2020-05-24T20:52:14.000Z
import click from time import time from datetime import datetime, timedelta from piestats.update.applyevents import ApplyEvents from piestats.update.parseevents import ParseEvents from piestats.models.kill import Kill from piestats.update.hwid import Hwid class Retention: def __init__(self, r, keys, config, server)...
34.792453
116
0.694143
252
1,844
4.876984
0.345238
0.056957
0.096827
0.085435
0.060212
0.060212
0.060212
0
0
0
0
0.004167
0.219089
1,844
52
117
35.461538
0.849306
0
0
0.051282
0
0
0.043404
0
0
0
0
0
0
0
null
null
0
0.179487
null
null
0.025641
0
0
0
null
0
0
0
0
0
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
a5480f16d19e110c03241254d4fbef19c6838db9
3,316
py
Python
ipb_homework_checker/tests/test_tools.py
PRBonn/ipb_homework_checker
750a42d19a6fb6f8d18785bd8bc1d7aea9caba50
[ "Apache-2.0" ]
11
2018-12-18T16:21:58.000Z
2021-07-11T06:31:24.000Z
ipb_homework_checker/tests/test_tools.py
PRBonn/ipb_homework_checker
750a42d19a6fb6f8d18785bd8bc1d7aea9caba50
[ "Apache-2.0" ]
1
2018-12-18T00:43:23.000Z
2018-12-18T00:43:23.000Z
ipb_homework_checker/tests/test_tools.py
PRBonn/ipb_homework_checker
750a42d19a6fb6f8d18785bd8bc1d7aea9caba50
[ "Apache-2.0" ]
3
2020-08-15T16:07:17.000Z
2020-11-15T20:23:00.000Z
#!/usr/bin/python3 """Test the tools.""" import unittest from os import path from ipb_homework_checker import tools from ipb_homework_checker.schema_tags import OutputTags class TestTools(unittest.TestCase): """Test the checker.""" def test_pkg_name(self): """Pkg name test.""" self.assertEq...
39.47619
77
0.642943
420
3,316
4.909524
0.278571
0.14549
0.034918
0.034918
0.545587
0.533948
0.483996
0.395247
0.395247
0.378274
0
0.014996
0.235826
3,316
83
78
39.951807
0.798737
0.0769
0
0.370968
0
0
0.174172
0.044371
0
0
0
0
0.403226
1
0.096774
false
0
0.096774
0
0.209677
0.016129
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
a55bcbaff02371c3ee32b772616d403515275021
1,081
py
Python
test/test_02.py
syegulalp/akitest
7ce65842f6c9bca5e8b3c0100aba1740a7218eac
[ "MIT" ]
2
2021-08-07T05:24:35.000Z
2021-08-24T19:25:41.000Z
test/test_02.py
syegulalp/akitest
7ce65842f6c9bca5e8b3c0100aba1740a7218eac
[ "MIT" ]
null
null
null
test/test_02.py
syegulalp/akitest
7ce65842f6c9bca5e8b3c0100aba1740a7218eac
[ "MIT" ]
null
null
null
from utils import BaseTest from errors import AkiTypeError class TestExpressions(BaseTest): def test_int_if(self): self.eq("if 2==2 1 else 0", 1) self.eq("if 2!=2 1 else 0", 0) def test_bool_if(self): self.eq("if True 1 else 0", 1) self.eq("if False 1 else 0", 0) def test...
30.027778
56
0.590194
198
1,081
3.126263
0.156566
0.129241
0.116317
0.067851
0.599354
0.486268
0.31664
0.184168
0.132472
0.077544
0
0.091954
0.275671
1,081
35
57
30.885714
0.698595
0
0
0
0
0
0.278446
0
0
0
0
0
0
1
0.259259
false
0
0.074074
0
0.37037
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
a55e0aee78466764b7830bb203c8fbd0f3d21e6b
1,627
py
Python
code/stereo/manage_data.py
amcmahon01/SolarForecasting
4781f10772178eac0cc7c456c3fa03f68bfb9167
[ "MIT" ]
2
2020-02-04T22:30:00.000Z
2020-07-26T13:07:55.000Z
code/stereo/manage_data.py
amcmahon01/SolarForecasting
4781f10772178eac0cc7c456c3fa03f68bfb9167
[ "MIT" ]
8
2020-03-12T15:55:23.000Z
2021-02-12T23:41:11.000Z
code/stereo/manage_data.py
amcmahon01/SolarForecasting
4781f10772178eac0cc7c456c3fa03f68bfb9167
[ "MIT" ]
1
2021-01-25T15:30:11.000Z
2021-01-25T15:30:11.000Z
import glob import os import datetime as dt #####windows version #inpath='E:/data/HDSI2/'; #outpath=inpath; #start_day='20150922'; end_day='20150925'; #cday=dt.datetime.strptime(start_day,"%Y%m%d"); #eday=dt.datetime.strptime(end_day,"%Y%m%d"); #while cday<=eday: # doy=cday.strftime('%Y%m%d'); # # print(doy...
31.288462
108
0.583282
243
1,627
3.864198
0.263374
0.106496
0.025559
0.025559
0.679446
0.679446
0.679446
0.679446
0.617678
0.617678
0
0.041635
0.188076
1,627
51
109
31.901961
0.66919
0.505839
0
0
0
0
0.115285
0.031088
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a56059ee490ede0868e1b04afb3ad42afe33ad9f
1,651
py
Python
DATA/workflow/ATG_Reg/databases/HumanAutophagyDB/script.py
korcsmarosgroup/ARN2DataBase
8931cec0387e5c8b599df40d652ac5fdb5c49a8f
[ "MIT" ]
null
null
null
DATA/workflow/ATG_Reg/databases/HumanAutophagyDB/script.py
korcsmarosgroup/ARN2DataBase
8931cec0387e5c8b599df40d652ac5fdb5c49a8f
[ "MIT" ]
null
null
null
DATA/workflow/ATG_Reg/databases/HumanAutophagyDB/script.py
korcsmarosgroup/ARN2DataBase
8931cec0387e5c8b599df40d652ac5fdb5c49a8f
[ "MIT" ]
null
null
null
""" Parses the mapped Human autophagy database list and finds any edges from third party databases if they contain the listed genes :param merger = merger database file THIS USES UNIPROT IDS """ import sqlite3 HA_DATA_FILE = 'HAdb_mapped.txt' ATG_DATA_FILE = 'atg_mapped.txt' mergerdb = '../../merger.db' # Sett...
28.465517
96
0.514234
198
1,651
4.126263
0.439394
0.051408
0.080783
0.047736
0.247246
0.210526
0.210526
0.210526
0.210526
0.210526
0
0.00823
0.411266
1,651
57
97
28.964912
0.832305
0.073289
0
0.277778
0
0
0.05
0
0
0
0
0
0
0
null
null
0
0.027778
null
null
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a560a53a2878cb1e67c6d0e90ea13ff3e3cbda39
2,479
py
Python
Old/Introduction.py
exchris/Pythonlearn
174f38a86cf1c85d6fc099005aab3568e7549cd0
[ "MIT" ]
null
null
null
Old/Introduction.py
exchris/Pythonlearn
174f38a86cf1c85d6fc099005aab3568e7549cd0
[ "MIT" ]
1
2018-11-27T09:58:54.000Z
2018-11-27T09:58:54.000Z
Old/Introduction.py
exchris/pythonlearn
174f38a86cf1c85d6fc099005aab3568e7549cd0
[ "MIT" ]
null
null
null
""" Created on 八月 03 2017 @author: dev.erxuan@gmail.com @description: requests introduction """ # -*- coding: utf-8 -*- import requests """ 获取Github的公共时间线 r = requests.get('https://github.com/timeline.json') <Response [410]> """ """ payload = {'key1':'value1','key2':'value2'} r = requests.get("http://httpbin.org/get"...
29.86747
400
0.671238
362
2,479
4.585635
0.414365
0.043373
0.043373
0.072289
0.606024
0.589759
0.553614
0.468675
0.422892
0.422892
0
0.032528
0.131908
2,479
83
401
29.86747
0.738848
0.044373
0
0
0
0
0.247191
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
0
0
0
0
1
0
0
0
0
1
a562d1d32cea341ddb0d946ee943b1e1ec34b7e2
522
py
Python
scripts/binary_data.py
PnS2019/pnslib
d1249bec0d35839fe0e5fa74efd1c2b73cecb552
[ "MIT" ]
null
null
null
scripts/binary_data.py
PnS2019/pnslib
d1249bec0d35839fe0e5fa74efd1c2b73cecb552
[ "MIT" ]
null
null
null
scripts/binary_data.py
PnS2019/pnslib
d1249bec0d35839fe0e5fa74efd1c2b73cecb552
[ "MIT" ]
null
null
null
"""Generate data for Binary Classification. Author: Yuhuang Hu Email : yuhuang.hu@ini.uzh.ch """ from __future__ import print_function import matplotlib.pyplot as plt import pnslib.utils as utils train_x, train_y, test_x, test_y = utils.generate_binary_data() # class_1 train_x_c1 = train_x[train_y[:, 0] == 0] trai...
21.75
63
0.672414
92
522
3.48913
0.413043
0.168224
0.102804
0.11215
0.080997
0
0
0
0
0
0
0.038462
0.153257
522
23
64
22.695652
0.687783
0.189655
0
0
1
0
0.014423
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a57742b2c011feefa87a8420e68bcd768764f291
1,379
py
Python
base/schema.py
freewarelovers/CommunityLovers
e4679f88192c656a532078e4e983055c9ccf4824
[ "MIT" ]
3
2020-07-25T10:26:05.000Z
2020-09-24T09:52:35.000Z
base/schema.py
freewarelovers/BetterMeet
e4679f88192c656a532078e4e983055c9ccf4824
[ "MIT" ]
4
2020-07-31T06:54:01.000Z
2020-10-06T12:34:10.000Z
base/schema.py
freewarelovers/BetterMeet
e4679f88192c656a532078e4e983055c9ccf4824
[ "MIT" ]
1
2020-09-11T17:17:26.000Z
2020-09-11T17:17:26.000Z
from graphene_django import DjangoObjectType from graphene_django.forms.mutation import DjangoModelFormMutation from graphene_django import DjangoListField from graphql_jwt.decorators import login_required from .models import * from .forms import MemberCreationForm import graphene ############################...
30.644444
67
0.620015
123
1,379
6.756098
0.406504
0.043321
0.064982
0.057762
0
0
0
0
0
0
0
0.000891
0.186367
1,379
45
68
30.644444
0.73975
0.039159
0
0.166667
0
0
0.012879
0
0
0
0
0
0
1
0.066667
false
0
0.233333
0.033333
0.766667
0.033333
0
0
0
null
0
0
0
0
0
0
0
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
a57c5078d48034d3c9557c7ccce733f441d0beb1
5,363
py
Python
msl/equipment/resources/picotech/picoscope/ps4000a.py
MSLNZ/msl-equipment
ce87e1e5ad302729dcbdab6cdecb346845066577
[ "MIT" ]
9
2019-07-26T05:07:58.000Z
2022-03-09T08:45:23.000Z
msl/equipment/resources/picotech/picoscope/ps4000a.py
MSLNZ/msl-equipment
ce87e1e5ad302729dcbdab6cdecb346845066577
[ "MIT" ]
7
2018-06-24T09:14:51.000Z
2022-01-16T20:16:33.000Z
msl/equipment/resources/picotech/picoscope/ps4000a.py
MSLNZ/msl-equipment
ce87e1e5ad302729dcbdab6cdecb346845066577
[ "MIT" ]
7
2019-02-07T22:08:37.000Z
2022-03-09T08:54:04.000Z
""" A wrapper around the PicoScope ps4000a SDK. """ from ctypes import c_int8, c_int16, c_uint16, c_int32, byref from msl.equipment.resources import register from .picoscope_api import PicoScopeApi from .functions import ps4000aApi_funcptrs @register(manufacturer=r'Pico\s*Tech', model=r'4(44|82)4') class PicoScope40...
40.323308
119
0.676301
668
5,363
5.188623
0.318862
0.017311
0.038373
0.027698
0.227351
0.163878
0.11483
0.094057
0.094057
0.094057
0
0.061943
0.247436
5,363
132
120
40.628788
0.796829
0.280254
0
0
0
0
0.005671
0
0
0
0
0
0
1
0.147059
false
0
0.058824
0
0.75
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
a57d7dab18bdfa799114ea56df3d758834aa2120
407
py
Python
setup.py
raicheff/flask-spf
abfeb35bde6235be80aacdfdcfce71f40421ed91
[ "MIT" ]
null
null
null
setup.py
raicheff/flask-spf
abfeb35bde6235be80aacdfdcfce71f40421ed91
[ "MIT" ]
null
null
null
setup.py
raicheff/flask-spf
abfeb35bde6235be80aacdfdcfce71f40421ed91
[ "MIT" ]
null
null
null
# # Flask-SPF # # Copyright (C) 2017 Boris Raicheff # All rights reserved # from setuptools import find_packages, setup setup( name='Flask-SPF', version='0.1.0', description='Flask-SPF', author='Boris Raicheff', author_email='b@raicheff.com', url='https://github.com/raicheff/flask-spf', ...
16.28
49
0.660934
51
407
5.176471
0.666667
0.151515
0
0
0
0
0
0
0
0
0
0.023881
0.176904
407
24
50
16.958333
0.764179
0.164619
0
0
0
0
0.349398
0
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
a589d1f892a8f1beb881f4b0d146378e8b1cf925
1,200
py
Python
section4/lambda-intro.py
jasontclark/hc180-udemy-python-next-level
3da7adee1a37b636cc579eb9e33cd63224f2c4b2
[ "Apache-2.0" ]
null
null
null
section4/lambda-intro.py
jasontclark/hc180-udemy-python-next-level
3da7adee1a37b636cc579eb9e33cd63224f2c4b2
[ "Apache-2.0" ]
null
null
null
section4/lambda-intro.py
jasontclark/hc180-udemy-python-next-level
3da7adee1a37b636cc579eb9e33cd63224f2c4b2
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Jason T Clark # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
34.285714
75
0.71
208
1,200
4.091346
0.528846
0.070505
0.030552
0.037603
0.124559
0.124559
0.124559
0.124559
0.105758
0.105758
0
0.072072
0.1675
1,200
34
76
35.294118
0.77978
0.749167
0
0.4
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0.2
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
a58c57e8fc1b846b9da4f448e265535d37ed959c
1,599
py
Python
fscognitive/commons/utilities.py
anhhoangiot/people_recognition_pi
92ceaebdef775a42023760360689d473662cb361
[ "MIT" ]
null
null
null
fscognitive/commons/utilities.py
anhhoangiot/people_recognition_pi
92ceaebdef775a42023760360689d473662cb361
[ "MIT" ]
null
null
null
fscognitive/commons/utilities.py
anhhoangiot/people_recognition_pi
92ceaebdef775a42023760360689d473662cb361
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2016-10-08 # @Author : Anh Hoang (anhhoang.work.mail@gmail.com) # @Project : FSCognitive # @Version : 1.0 import os class Utilities: @staticmethod def file_exists(filePath): dir = os.path.dirname(__file__) absolutePath = os.path.join...
28.553571
63
0.621013
184
1,599
5.266304
0.358696
0.099071
0.099071
0.082559
0.496388
0.418989
0.418989
0.418989
0.418989
0.307534
0
0.009338
0.26329
1,599
55
64
29.072727
0.813243
0.09631
0
0.425
0
0
0.071577
0.032662
0
0
0
0
0
0
null
null
0
0.025
null
null
0.05
0
0
0
null
0
0
0
0
0
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
a58d07b20533cc478fcc957903102b04e93e655f
719
py
Python
custom_user_app/views.py
amandalynnes/django-custom-users
a4cb33a4e4e14ef8187cf261af990332a348bca2
[ "MIT" ]
null
null
null
custom_user_app/views.py
amandalynnes/django-custom-users
a4cb33a4e4e14ef8187cf261af990332a348bca2
[ "MIT" ]
null
null
null
custom_user_app/views.py
amandalynnes/django-custom-users
a4cb33a4e4e14ef8187cf261af990332a348bca2
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.contrib.auth import login, authenticate, logout from django.contrib.auth.decorators import login_required from custom_user_app.models import MyCustomUser from django.contrib.auth import settings # from custom_user_app.forms import AddCustomUser # Create your views here....
29.958333
59
0.751043
91
719
5.725275
0.450549
0.076775
0.099808
0.120921
0.103647
0
0
0
0
0
0
0
0.159944
719
23
60
31.26087
0.862583
0.098748
0
0
0
0
0.102484
0
0
0
0
0
0
1
0.0625
false
0
0.3125
0
0.4375
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
a597b1f2510a89fd00b0a3e221a3ad8ac369ccc3
554
py
Python
src/videos/migrations/0003_auto_20210420_1640.py
imsubhamsingh/vibeon
5ea67bb8dae0a0c28d36f81374eb4f046d842cf5
[ "Apache-2.0" ]
null
null
null
src/videos/migrations/0003_auto_20210420_1640.py
imsubhamsingh/vibeon
5ea67bb8dae0a0c28d36f81374eb4f046d842cf5
[ "Apache-2.0" ]
2
2021-07-19T18:41:46.000Z
2022-02-10T11:43:07.000Z
src/videos/migrations/0003_auto_20210420_1640.py
imsubhamsingh/vibeon
5ea67bb8dae0a0c28d36f81374eb4f046d842cf5
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2 on 2021-04-20 16:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('videos', '0002_videoproxy'), ] operations = [ migrations.AlterModelOptions( name='videoproxy', options={'verbose_name'...
24.086957
99
0.592058
52
554
6.211538
0.711538
0.068111
0
0
0
0
0
0
0
0
0
0.045685
0.288809
554
22
100
25.181818
0.774112
0.077617
0
0.125
1
0
0.204322
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.25
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
a5a0ee002c0214119c8a1ec3d009813ad22fd7e5
3,719
py
Python
ddht/tools/w3_alexandria.py
gsalgado/ddht
341e84e9163338556cd48dd2fcfda9eedec3eb45
[ "MIT" ]
1
2021-04-05T00:30:39.000Z
2021-04-05T00:30:39.000Z
ddht/tools/w3_alexandria.py
gsalgado/ddht
341e84e9163338556cd48dd2fcfda9eedec3eb45
[ "MIT" ]
null
null
null
ddht/tools/w3_alexandria.py
gsalgado/ddht
341e84e9163338556cd48dd2fcfda9eedec3eb45
[ "MIT" ]
null
null
null
from typing import Any, Callable, Tuple from eth_typing import Hash32 from eth_utils import decode_hex, encode_hex import rlp try: import web3 # noqa: F401 except ImportError: raise ImportError("The web3.py library is required") from eth_typing import HexStr from web3.method import Method from web3.module ...
30.235772
121
0.712288
408
3,719
6.291667
0.254902
0.050643
0.057265
0.084534
0.431632
0.393845
0.366576
0.322166
0.201792
0.171406
0
0.019218
0.188492
3,719
122
122
30.483607
0.831345
0.150309
0
0.117647
0
0
0.074014
0.062602
0
0
0
0
0
1
0.058824
false
0
0.191176
0.014706
0.558824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a5a4e12bbd87530105c59ef82653dce59469863b
414
py
Python
HackerRank/Python/list-comprehensions.py
object-oriented-human/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
2
2021-07-27T10:46:47.000Z
2021-07-27T10:47:57.000Z
HackerRank/Python/list-comprehensions.py
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
HackerRank/Python/list-comprehensions.py
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
if __name__ == '__main__': x = int(input()) y = int(input()) z = int(input()) n = int(input()) l = [] for i in range(x+1): for j in range(y+1): for k in range(z+1): elem = [] elem.append(i) elem.append(j) elem....
20.7
34
0.381643
53
414
2.830189
0.396226
0.213333
0
0
0
0
0
0
0
0
0
0.013636
0.468599
414
19
35
21.789474
0.668182
0
0
0
0
0
0.019324
0
0
0
0
0
0
1
0
false
0
0
0
0
0.0625
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
a5a65b6834427836f6ef9b4466f88c56c2ca0e42
1,736
py
Python
code/TableExtractor.py
Jong-hun-Park/MutationalSignature
63825c35e746447348c069d80540be7b879ecc1d
[ "MIT" ]
null
null
null
code/TableExtractor.py
Jong-hun-Park/MutationalSignature
63825c35e746447348c069d80540be7b879ecc1d
[ "MIT" ]
null
null
null
code/TableExtractor.py
Jong-hun-Park/MutationalSignature
63825c35e746447348c069d80540be7b879ecc1d
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd def extract_table(input_file, cancer_type): Cancer_type = cancer_type data = pd.read_csv(input_file) columns = data.columns selected_col = ['Mutation type', 'Trinucleotide'] for c in columns: if Cancer_type in c: selected_col.append(c) ...
36.93617
91
0.657834
268
1,736
3.958955
0.197761
0.257304
0.06032
0.062205
0.673893
0.649387
0.621112
0.621112
0.566447
0.524034
0
0.015681
0.19182
1,736
46
92
37.73913
0.740556
0.025922
0
0.512821
0
0
0.127811
0.013609
0
0
0
0
0
1
0.025641
false
0
0.051282
0
0.076923
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
a5ad45cf995c79a7512ded9d32e252a280766c0d
542
py
Python
src/bugle/bugle_site/urls.py
maxwu/bugle
081c94f19c6d999a2d6e14d996ba974773a3c443
[ "MIT" ]
null
null
null
src/bugle/bugle_site/urls.py
maxwu/bugle
081c94f19c6d999a2d6e14d996ba974773a3c443
[ "MIT" ]
null
null
null
src/bugle/bugle_site/urls.py
maxwu/bugle
081c94f19c6d999a2d6e14d996ba974773a3c443
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin from bugle.bugle_site import views admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', 'bugle_app.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^admin/', include(admi...
28.526316
76
0.684502
75
542
4.813333
0.346667
0.066482
0.108033
0.072022
0
0
0
0
0
0
0
0
0.132841
542
19
77
28.526316
0.768085
0.285978
0
0
0
0
0.156658
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a5b8904b822651d2ba80625c1716d6293a373550
1,131
py
Python
orchestrator/services/translations.py
Georgi2704/orchestrator-core
bf072caf6b83ac8401426879df41e967f33f9f85
[ "Apache-2.0" ]
15
2021-02-18T15:30:25.000Z
2022-02-19T18:57:51.000Z
orchestrator/services/translations.py
Georgi2704/orchestrator-core
bf072caf6b83ac8401426879df41e967f33f9f85
[ "Apache-2.0" ]
70
2021-02-24T17:59:23.000Z
2022-03-31T08:24:56.000Z
orchestrator/services/translations.py
Georgi2704/orchestrator-core
bf072caf6b83ac8401426879df41e967f33f9f85
[ "Apache-2.0" ]
6
2021-02-23T18:10:15.000Z
2022-02-15T16:07:38.000Z
# Copyright 2019-2020 SURF. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
35.34375
115
0.73298
157
1,131
5.203822
0.573248
0.073439
0.031824
0.039168
0
0
0
0
0
0
0
0.0131
0.190097
1,131
31
116
36.483871
0.878821
0.482759
0
0.142857
0
0
0.062937
0
0
0
0
0
0
1
0.071429
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a5b9705d59971c03ba70357e995b6f594cd06b7a
1,081
py
Python
canny/line_detect.py
zjdznl/turtlebot_follow_line
5c9dd22c79e3425415ce9576ceb9b223813035ba
[ "Apache-2.0" ]
null
null
null
canny/line_detect.py
zjdznl/turtlebot_follow_line
5c9dd22c79e3425415ce9576ceb9b223813035ba
[ "Apache-2.0" ]
null
null
null
canny/line_detect.py
zjdznl/turtlebot_follow_line
5c9dd22c79e3425415ce9576ceb9b223813035ba
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np from util import * def show_lines(img=r'C:\Users\zjdzn\PycharmProjects\ros\canny\cut\origin27.jpg'): img = cv2.imread(img) img = cv2.bitwise_not(img) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) edges = gray # edges = cv2.GaussianBlur(gray, (25, 25), 0) # edges =...
26.365854
81
0.585569
163
1,081
3.803681
0.417178
0.048387
0.03871
0.051613
0.203226
0.203226
0.203226
0.203226
0.203226
0.203226
0
0.086741
0.253469
1,081
40
82
27.025
0.681537
0.238668
0
0
0
0
0.111794
0.070025
0
0
0
0
0
0
null
null
0
0.130435
null
null
0.086957
0
0
0
null
0
0
0
0
0
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
a5ba7e37d8a34deecaf13dfbc41ca256eed571fe
565
py
Python
auth/libraries/pip-auth/authlib/test/test_hashing.py
FinnStutzenstein/openslides-auth-service
edfb247a2398ae69dd5c0ff44e7cdf692b7c1b80
[ "MIT" ]
2
2020-02-29T17:45:50.000Z
2021-03-12T14:20:47.000Z
auth/libraries/pip-auth/authlib/test/test_hashing.py
FinnStutzenstein/openslides-auth-service
edfb247a2398ae69dd5c0ff44e7cdf692b7c1b80
[ "MIT" ]
71
2020-04-08T11:08:10.000Z
2022-01-31T12:48:46.000Z
auth/libraries/pip-auth/authlib/test/test_hashing.py
FinnStutzenstein/openslides-auth-service
edfb247a2398ae69dd5c0ff44e7cdf692b7c1b80
[ "MIT" ]
5
2020-02-04T10:30:03.000Z
2021-07-29T05:46:10.000Z
from ..hashing_handler import HASH_WITH_SALT_LENGTH from .base import BaseTestEnvironment class TestHashing(BaseTestEnvironment): def test_random_salt(self): to_hash = "Some password to hash" self.assertNotEqual( self.auth_handler.hash(to_hash), self.auth_handler.hash(to_hash) ...
31.388889
76
0.709735
76
565
4.960526
0.368421
0.111406
0.159151
0.151194
0.220159
0.220159
0.220159
0
0
0
0
0
0.20354
565
17
77
33.235294
0.837778
0
0
0
0
0
0.049645
0
0
0
0
0
0.230769
1
0.153846
false
0.076923
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
3c02490e4f70604bf02a3f1e525a33989857305c
727
py
Python
poracle/interface.py
ppmx/poracle
0fa0ed6d4f3ac22cc93eb95374cca89701b735d1
[ "MIT" ]
null
null
null
poracle/interface.py
ppmx/poracle
0fa0ed6d4f3ac22cc93eb95374cca89701b735d1
[ "MIT" ]
2
2020-04-22T18:17:31.000Z
2020-11-15T07:43:07.000Z
poracle/interface.py
ppmx/poracle
0fa0ed6d4f3ac22cc93eb95374cca89701b735d1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 class Interface: """ Defines the interface of the padding oracle. """ def oracle(self, ciphertext): """ This function expects a ciphertext and returns true if there is no padding error and false otherwise. Args: ciphertext (bytes): the ciphertext tha...
30.291667
77
0.654746
90
727
5.288889
0.655556
0.021008
0
0
0
0
0
0
0
0
0
0.001931
0.287483
727
23
78
31.608696
0.916988
0.645117
0
0.4
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
3c05e7fcdf1288b155aa346d344532c5d399e263
2,660
py
Python
src/category_theory/operations.py
finsberg/category-theory-python
caba4c719cb994385b8b347aa496ff60b7d81928
[ "MIT" ]
1
2022-03-03T02:47:58.000Z
2022-03-03T02:47:58.000Z
src/category_theory/operations.py
finsberg/category-theory-python
caba4c719cb994385b8b347aa496ff60b7d81928
[ "MIT" ]
2
2021-10-09T19:35:04.000Z
2022-02-21T20:14:25.000Z
src/category_theory/operations.py
finsberg/category-theory-python
caba4c719cb994385b8b347aa496ff60b7d81928
[ "MIT" ]
null
null
null
import functools import math import typing from .core import Monoid a = typing.TypeVar("a") b = typing.TypeVar("b") c = typing.TypeVar("c") def identity(x: a) -> a: r"""Identity function .. math:: f : a \mapsto a \\ f(x) = x Parameters ---------- x : a Input variable ...
21.111111
78
0.575564
360
2,660
4.25
0.286111
0.054902
0.039216
0.060131
0.329412
0.284967
0.284967
0.284967
0.284967
0.226144
0
0
0.292481
2,660
125
79
21.28
0.812965
0.57782
0
0
0
0
0.003606
0
0
0
0
0
0
1
0.192308
false
0
0.153846
0
0.615385
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
3c0da5dd5fbeb760aab179b71ee3904f0a0807f6
876
py
Python
Singleton.py
AutogenSh/design_patterns
ca8a89507c8eab29f40e50c63f7de77008d9948d
[ "MIT" ]
null
null
null
Singleton.py
AutogenSh/design_patterns
ca8a89507c8eab29f40e50c63f7de77008d9948d
[ "MIT" ]
null
null
null
Singleton.py
AutogenSh/design_patterns
ca8a89507c8eab29f40e50c63f7de77008d9948d
[ "MIT" ]
null
null
null
''' 单例模式 保证一个类仅有一个实例,并提供一个访问它的全局访问点。 主要解决:一个全局使用的类频繁地创建与销毁。 何时使用:当您想控制实例数目,节省系统资源的时候。 ''' class Singleton(type): _instances = {} def __call__(cls, *args, **kwargs): if cls not in cls._instances: cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs) return cls._i...
17.877551
81
0.630137
96
876
5.541667
0.364583
0.078947
0.06015
0.191729
0.533835
0.533835
0.426692
0.270677
0.270677
0.270677
0
0.013062
0.21347
876
48
82
18.25
0.759071
0.094749
0
0.692308
0
0
0.038265
0
0
0
0
0
0
1
0.192308
false
0
0
0
0.384615
0.076923
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
3c0e7ad124ce4207597ce71fa742ecfa512ae853
1,529
py
Python
projects/serializers.py
kilinger/marathon-rocketchat-hubot
682454b90265eb2c66ea222cf0c970370816a9e1
[ "BSD-3-Clause" ]
1
2018-07-10T07:03:12.000Z
2018-07-10T07:03:12.000Z
projects/serializers.py
kilinger/marathon-rocketchat-hubot
682454b90265eb2c66ea222cf0c970370816a9e1
[ "BSD-3-Clause" ]
null
null
null
projects/serializers.py
kilinger/marathon-rocketchat-hubot
682454b90265eb2c66ea222cf0c970370816a9e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.shortcuts import get_object_or_404 from rest_framework import serializers from projects.models import Project, ProjectBuild, ProjectConfig, ProjectRelease class ProjectSerializer(serializers.ModelSerializer): class Meta: model = Project def to_representation(self,...
29.403846
80
0.682799
154
1,529
6.675325
0.37013
0.093385
0.054475
0.10214
0.289883
0.173152
0.173152
0
0
0
0
0.005932
0.228254
1,529
51
81
29.980392
0.865254
0.013734
0
0.257143
0
0
0.021248
0
0
0
0
0
0
1
0.085714
false
0
0.085714
0
0.514286
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
3c16df9a133ef76519d0ede2c704ec5083843bef
590
py
Python
server/trip_diary/urls.py
jphacks/C_2117
5b1e68e0f300916a50989343da3d50c29fcc8fae
[ "MIT" ]
null
null
null
server/trip_diary/urls.py
jphacks/C_2117
5b1e68e0f300916a50989343da3d50c29fcc8fae
[ "MIT" ]
null
null
null
server/trip_diary/urls.py
jphacks/C_2117
5b1e68e0f300916a50989343da3d50c29fcc8fae
[ "MIT" ]
1
2021-10-24T02:12:06.000Z
2021-10-24T02:12:06.000Z
from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.urls import path from django.conf.urls.static import static from django.conf import settings from . import views from rest_framework import routers router = routers.DefaultRouter() router.register(r'images', views.ImageViewSet) router.reg...
34.705882
77
0.80678
73
590
6.438356
0.424658
0.085106
0.095745
0
0
0
0
0
0
0
0
0
0.088136
590
17
78
34.705882
0.873606
0.19661
0
0
0
0
0.054968
0
0
0
0
0
0
1
0
false
0
0.461538
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
3c1833efd811e041e86ffdaa13c56549e6e6735d
5,119
py
Python
uberNow/apps/apicalls/uber_api.py
anirbanroydas/uberNow
562a15b9dd82aa32c92992e33d295f1eef67516b
[ "MIT" ]
3
2018-03-12T07:53:52.000Z
2021-07-26T11:32:25.000Z
uberNow/apps/apicalls/uber_api.py
anirbanroydas/uberNow
562a15b9dd82aa32c92992e33d295f1eef67516b
[ "MIT" ]
null
null
null
uberNow/apps/apicalls/uber_api.py
anirbanroydas/uberNow
562a15b9dd82aa32c92992e33d295f1eef67516b
[ "MIT" ]
1
2017-10-27T17:53:28.000Z
2017-10-27T17:53:28.000Z
from tornado.httpclient import AsyncHTTPClient, HTTPError # from tornado.ioloop import IOLoop from tornado import gen import json import msgpack import uberNow.utils LOGGER = uberNow.utils.LOGGER # Uber API endpoint PRODUCT_URL = 'https://api.uber.com/v1/products?' ETA_URL = "https://api.uber.com/v1/estimates/time...
27.972678
107
0.552452
588
5,119
4.602041
0.25
0.04139
0.051737
0.033259
0.633777
0.558758
0.504065
0.491131
0.478936
0.44272
0
0.024808
0.314905
5,119
182
108
28.126374
0.746792
0.067201
0
0.575221
0
0
0.179471
0.043031
0
0
0
0
0
0
null
null
0
0.044248
null
null
0.035398
0
0
0
null
0
0
0
0
0
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
3c228096e7724d28314156e6ebdac7d56f14a285
1,614
py
Python
resources/test-template.py
xyshal/django-site-template
2b9af032b19dd85acbe65dbbba90a43402cf4d88
[ "MIT" ]
null
null
null
resources/test-template.py
xyshal/django-site-template
2b9af032b19dd85acbe65dbbba90a43402cf4d88
[ "MIT" ]
null
null
null
resources/test-template.py
xyshal/django-site-template
2b9af032b19dd85acbe65dbbba90a43402cf4d88
[ "MIT" ]
null
null
null
import os import shutil import subprocess import time onGithubActionMachine = os.path.exists(os.path.join("/", "home", "runner")) # ------------------------------ print("Updating environment...") # ------------------------------ user = subprocess.check_output(["id","-un"]).rstrip().decode("UTF-8") uid = subprocess.ch...
33.625
80
0.616481
205
1,614
4.814634
0.497561
0.106383
0.077001
0.069909
0.097264
0
0
0
0
0
0
0.005579
0.111524
1,614
47
81
34.340426
0.682706
0.337051
0
0
0
0
0.245498
0
0
0
0
0.021277
0
1
0
false
0
0.16
0
0.16
0.16
0
0
0
null
0
0
0
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
3c237682f0f7fd07e1f1188b2351a7bea455fd3c
3,024
py
Python
blockchain/blockchain.py
codeguy13/blockchain-forum
95405d02a3290b5afeb31c1c8d3c8beb1c88cd25
[ "MIT" ]
null
null
null
blockchain/blockchain.py
codeguy13/blockchain-forum
95405d02a3290b5afeb31c1c8d3c8beb1c88cd25
[ "MIT" ]
null
null
null
blockchain/blockchain.py
codeguy13/blockchain-forum
95405d02a3290b5afeb31c1c8d3c8beb1c88cd25
[ "MIT" ]
null
null
null
from Crypto.Hash import SHA256 import time class Block: """! Blocks are where 'transactions' are stored. 'Transactions' can be anything at the moment Block data will be hashed and fed into next block """ # TODO: Add max block size # TODO: Add block headers for indexing and proof of work ...
29.940594
90
0.628638
359
3,024
5.111421
0.275766
0.053951
0.038147
0.029428
0.115531
0.086104
0.050136
0
0
0
0
0.009704
0.284392
3,024
100
91
30.24
0.838262
0.184193
0
0.15
0
0
0.010504
0
0
0
0
0.03
0
1
0.15
false
0
0.033333
0.033333
0.383333
0.016667
0
0
0
null
0
0
0
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
3c26ba64e6b33c22629b0a942a6d4e8cb0338b82
7,379
py
Python
PPDP/models.py
qiyuangong/ppdpes
d79e995340227d90dbbc225dbacfda41b4522884
[ "MIT" ]
null
null
null
PPDP/models.py
qiyuangong/ppdpes
d79e995340227d90dbbc225dbacfda41b4522884
[ "MIT" ]
null
null
null
PPDP/models.py
qiyuangong/ppdpes
d79e995340227d90dbbc225dbacfda41b4522884
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.utils import timezone from datetime import datetime from jsonfield import JSONField from django.db.models.signals import post_save from django.dispatch import receiver from tasks import eval, anon from django.db import transaction from dja...
40.103261
115
0.661201
914
7,379
5.107221
0.133479
0.044987
0.050129
0.066838
0.637532
0.507712
0.420523
0.378535
0.360968
0.360968
0
0.022306
0.240548
7,379
183
116
40.322404
0.810671
0.039301
0
0.369128
0
0
0.010171
0
0
0
0
0
0
1
0.073826
false
0
0.067114
0.04698
0.550336
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
3c27570a8e4e88a22ece26ae3c9f381f2b0e1254
228
py
Python
ezdict/ezdict/utils/string.py
xSHAD0Wx/ezdict
1667148d05c370067f376737fff5f6bb53ff7ec0
[ "Apache-2.0" ]
null
null
null
ezdict/ezdict/utils/string.py
xSHAD0Wx/ezdict
1667148d05c370067f376737fff5f6bb53ff7ec0
[ "Apache-2.0" ]
null
null
null
ezdict/ezdict/utils/string.py
xSHAD0Wx/ezdict
1667148d05c370067f376737fff5f6bb53ff7ec0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 def reverse_str(name: str) -> str: """ Reverses a string """ name_lst = list(name) name_lst.reverse() ret = '' for i in range(len(name_lst)): ret += name_lst[i] return ret
20.727273
34
0.578947
34
228
3.735294
0.588235
0.220472
0
0
0
0
0
0
0
0
0
0.005988
0.267544
228
10
35
22.8
0.754491
0.175439
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
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
3c37ef768897ef8822c48a1870fb42265a38c466
1,540
py
Python
refresh.py
moh-nur/hydrawise_controller_refreshweather
a5cfb9a24b72fec6f4627579ea075fd147c5a702
[ "Apache-2.0" ]
null
null
null
refresh.py
moh-nur/hydrawise_controller_refreshweather
a5cfb9a24b72fec6f4627579ea075fd147c5a702
[ "Apache-2.0" ]
null
null
null
refresh.py
moh-nur/hydrawise_controller_refreshweather
a5cfb9a24b72fec6f4627579ea075fd147c5a702
[ "Apache-2.0" ]
null
null
null
import requests import time import os payload = {'grant_type': 'password', 'client_id': 'hydrawise_app', 'client_secret': os.environ['HYDRAWISE_CLIENT_SECRET'], 'username': os.environ['HYDRAWISE_USERNAME'], 'password': os.environ['HYDRAWISE_PASSWORD'], 'scope': 'all'} url = 'https://app.hydrawise.com/api/v2...
59.230769
326
0.693506
165
1,540
6.393939
0.321212
0.059716
0.119431
0.079621
0.562085
0.477725
0.477725
0.326066
0.326066
0.326066
0
0.00292
0.11039
1,540
25
327
61.6
0.767153
0
0
0.380952
0
0
0.257143
0.077273
0
0
0
0
0
1
0
false
0.095238
0.142857
0
0.142857
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
3c3fedb4664ba309cf45985d8ec1b756aef23c13
2,261
py
Python
opta/core/cloud2.py
bigbitbus/opta
29f27f4862f09c776e9525796edce8e481ac1a1a
[ "Apache-2.0" ]
null
null
null
opta/core/cloud2.py
bigbitbus/opta
29f27f4862f09c776e9525796edce8e481ac1a1a
[ "Apache-2.0" ]
null
null
null
opta/core/cloud2.py
bigbitbus/opta
29f27f4862f09c776e9525796edce8e481ac1a1a
[ "Apache-2.0" ]
null
null
null
# new-module-api from typing import Any, Dict import boto3 from botocore.config import Config from botocore.exceptions import ClientError from opta.core.terraform2 import TerraformFile from opta.layer2 import Layer from opta.stubs import AWSProvider class Cloud: def state_storage(self, layer: Layer) -> str: ...
31.84507
99
0.650155
276
2,261
5.195652
0.376812
0.117155
0.039052
0.043933
0.165969
0.125523
0.125523
0.078103
0.078103
0
0
0.014134
0.249005
2,261
70
100
32.3
0.830389
0.123397
0
0.142857
0
0
0.112208
0.022338
0
0
0
0.014286
0
1
0.142857
false
0
0.166667
0
0.452381
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
3c439cd19f80eb4a413d75dfe66eb272e9c035d1
671
py
Python
bzflag/utilities/json_encoder.py
allejo/bzflag-networking.py
4c5219bcf743d9b56cebc6d0bdf5847321313b07
[ "MIT" ]
null
null
null
bzflag/utilities/json_encoder.py
allejo/bzflag-networking.py
4c5219bcf743d9b56cebc6d0bdf5847321313b07
[ "MIT" ]
null
null
null
bzflag/utilities/json_encoder.py
allejo/bzflag-networking.py
4c5219bcf743d9b56cebc6d0bdf5847321313b07
[ "MIT" ]
null
null
null
import json from typing import List from bzflag.networking.game_packet import GamePacket from bzflag.utilities.json_serializable import JsonSerializable class RRLogEncoder(json.JSONEncoder): black_list: List[str] = [] white_list: List[str] = [] def default(self, obj): if not isinstance(obj, Jso...
26.84
94
0.678092
81
671
5.493827
0.419753
0.060674
0.049438
0.11236
0.18427
0.18427
0.18427
0.18427
0
0
0
0.001965
0.241431
671
24
95
27.958333
0.872299
0
0
0.125
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0.25
0
0.75
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
3c4bc45afd2398fba5eaea3896e9089c6f4ddd16
390
py
Python
src/fix_code_3.py
Athenian-Computer-Science/strings1-practice-template
80f4a90e0e7f633579bce86cf42d018a95c8e31f
[ "Apache-2.0" ]
null
null
null
src/fix_code_3.py
Athenian-Computer-Science/strings1-practice-template
80f4a90e0e7f633579bce86cf42d018a95c8e31f
[ "Apache-2.0" ]
null
null
null
src/fix_code_3.py
Athenian-Computer-Science/strings1-practice-template
80f4a90e0e7f633579bce86cf42d018a95c8e31f
[ "Apache-2.0" ]
null
null
null
############################# # Collaborators: (enter people or resources who/that helped you) # If none, write none # # ############################# # Convert the pseudocode into python: junior year = Athenian Wilderness Experience fragment = slice(junior year) length = length(slice) print(Length: length of slice) ...
27.857143
100
0.641026
47
390
5.319149
0.765957
0.08
0
0
0
0
0
0
0
0
0
0
0.151282
390
13
101
30
0.755287
0.469231
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1