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
20c83995292e682498e01d8809458f2de8d3b1a0
1,875
py
Python
faculty/clients/auth.py
jkeelan/faculty
3cf50f243fba1bfe7a346de88654d3616ac35b15
[ "Apache-2.0" ]
null
null
null
faculty/clients/auth.py
jkeelan/faculty
3cf50f243fba1bfe7a346de88654d3616ac35b15
[ "Apache-2.0" ]
null
null
null
faculty/clients/auth.py
jkeelan/faculty
3cf50f243fba1bfe7a346de88654d3616ac35b15
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2019 Faculty Science Limited # # 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...
30.241935
74
0.691733
235
1,875
5.459574
0.514894
0.046765
0.020265
0.024942
0
0
0
0
0
0
0
0.008191
0.218667
1,875
61
75
30.737705
0.867577
0.736533
0
0
0
0
0.057441
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
20c8dc629ba478e2775bf9fa36b8d56bb2d26c1d
2,612
py
Python
ward_mapping/migrations/0001_initial.py
Suraj1127/ward-mapping-application
53fa39bab875ca47fdab814fd28ea0b7d2086c15
[ "MIT" ]
1
2019-05-16T04:08:40.000Z
2019-05-16T04:08:40.000Z
ward_mapping/migrations/0001_initial.py
Suraj1127/ward-mapping-application
53fa39bab875ca47fdab814fd28ea0b7d2086c15
[ "MIT" ]
null
null
null
ward_mapping/migrations/0001_initial.py
Suraj1127/ward-mapping-application
53fa39bab875ca47fdab814fd28ea0b7d2086c15
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-05-15 16:43 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Map2011', fields=[ ('id', models.AutoField(au...
46.642857
114
0.584227
248
2,612
5.870968
0.254032
0.175137
0.210165
0.28022
0.70467
0.610577
0.475275
0.475275
0.475275
0.373626
0
0.034006
0.279479
2,612
55
115
47.490909
0.739639
0.016462
0
0.541667
1
0
0.143358
0
0
0
0
0
0
1
0
false
0
0.020833
0
0.104167
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
20ca4306616ba4229666606128bb772fe88420f6
2,704
py
Python
hangingart/space.py
IanRichardDavies/HangingArt
94f6321c6e3bd6c73d479a33b6b18d3bfbaf371a
[ "MIT" ]
null
null
null
hangingart/space.py
IanRichardDavies/HangingArt
94f6321c6e3bd6c73d479a33b6b18d3bfbaf371a
[ "MIT" ]
null
null
null
hangingart/space.py
IanRichardDavies/HangingArt
94f6321c6e3bd6c73d479a33b6b18d3bfbaf371a
[ "MIT" ]
null
null
null
""" Module concerning Space objects """ # Python Libraries # First Party Imports class Space: """ Class holding logic for each individual surface upon which art can be hung. #TODO: more documentation """ def __init__( self, max_hor_dim: float = 0.0, min_hor_dim: float...
29.714286
67
0.566938
311
2,704
4.717042
0.266881
0.088616
0.081118
0.027267
0.070893
0
0
0
0
0
0
0.00961
0.345784
2,704
91
68
29.714286
0.819672
0.116864
0
0.088235
0
0
0.056473
0
0
0
0
0.021978
0
1
0.044118
false
0
0
0
0.058824
0.014706
0
0
0
null
0
0
0
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
20cc5934d839eb06728df2e30f577167bc2cdc91
5,443
py
Python
main.py
yycho0108/2048_tf
b29a8a20d051a464814957e153ea7c099576bc0a
[ "MIT" ]
1
2017-09-07T22:47:52.000Z
2017-09-07T22:47:52.000Z
main.py
yycho0108/2048_tf
b29a8a20d051a464814957e153ea7c099576bc0a
[ "MIT" ]
null
null
null
main.py
yycho0108/2048_tf
b29a8a20d051a464814957e153ea7c099576bc0a
[ "MIT" ]
1
2020-04-12T16:12:20.000Z
2020-04-12T16:12:20.000Z
#!/usr/bin/python import sys import numpy as np import tensorflow as tf from memory import Memory, MultiMemory from qnet import * from layers import * from game import Game ## Load Parameters gamma = .99 #Discount factor. num_episodes = 10000 #Total number of episodes to train network for. test_episodes = 200 #Total...
31.645349
112
0.570825
731
5,443
4.084815
0.243502
0.042197
0.048225
0.056263
0.320831
0.262559
0.262559
0.246149
0.184193
0.13061
0
0.035189
0.300386
5,443
171
113
31.830409
0.74895
0.106008
0
0.267717
0
0
0.054523
0
0
0
0
0
0
0
null
null
0
0.055118
null
null
0.031496
0
0
0
null
0
0
0
0
0
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
20cca36f0660a5cec8d40a240e5c97178d31a054
5,511
py
Python
predict.py
ciampluca/counting_perineuronal_nets
29463a4810b74943ee5234673e9e0816716b7fee
[ "Apache-2.0" ]
6
2021-12-16T13:47:56.000Z
2022-02-05T09:49:37.000Z
predict.py
ciampluca/counting_perineuronal_nets
29463a4810b74943ee5234673e9e0816716b7fee
[ "Apache-2.0" ]
1
2021-06-28T17:09:48.000Z
2021-06-28T18:58:04.000Z
predict.py
ciampluca/counting_perineuronal_nets
29463a4810b74943ee5234673e9e0816716b7fee
[ "Apache-2.0" ]
null
null
null
import argparse from pathlib import Path import hydra from omegaconf import OmegaConf import torch from torch.utils.data import DataLoader from tqdm import tqdm from datasets.patched_datasets import PatchedMultiImageDataset, RandomAccessMultiImageDataset @torch.no_grad() def score_patches(loader, model, device, cfg)...
43.054688
141
0.678098
717
5,511
5.033473
0.276151
0.0266
0.021336
0.020781
0.446107
0.420615
0.387919
0.387919
0.387919
0.387919
0
0.00243
0.178552
5,511
127
142
43.393701
0.794787
0.00254
0
0.397959
0
0
0.205641
0.044586
0
0
0
0.007874
0
1
0.020408
false
0
0.081633
0
0.112245
0.112245
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20cda404e20b8445bfe6243758a4bf304606f130
375
py
Python
test/test.py
innovate-invent/configutator
372b45c44a10171b8518e61f2a7974969304c33a
[ "MIT" ]
null
null
null
test/test.py
innovate-invent/configutator
372b45c44a10171b8518e61f2a7974969304c33a
[ "MIT" ]
1
2017-09-22T05:52:54.000Z
2017-09-22T05:52:54.000Z
test/test.py
innovate-invent/configutator
372b45c44a10171b8518e61f2a7974969304c33a
[ "MIT" ]
null
null
null
from configutator import ConfigMap, ArgMap, EnvMap, loadConfig import sys def test(param1: int, param2: str): """ This is a test :param param1: An integer :param param2: A string :return: Print the params """ print(param1, param2) if __name__ == '__main__': for argMap in loadConfig(sys...
22.058824
62
0.642667
48
375
4.854167
0.645833
0.06867
0
0
0
0
0
0
0
0
0
0.020906
0.234667
375
16
63
23.4375
0.790941
0.24
0
0
0
0
0.046875
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.428571
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20cdadc43f7f0fbddcc40c1c7b51c46475d844b7
2,384
py
Python
app/ecommerce/admin.py
nguyenanhtuan21/ecommerce-django
df29b31073b8e24ae9fbb294ca0c3ba8c81c09ae
[ "MIT" ]
1
2019-12-16T16:45:11.000Z
2019-12-16T16:45:11.000Z
app/ecommerce/admin.py
nguyenanhtuan21/ecommerce-django
df29b31073b8e24ae9fbb294ca0c3ba8c81c09ae
[ "MIT" ]
3
2021-06-04T22:05:06.000Z
2021-09-22T18:05:05.000Z
app/ecommerce/admin.py
nguyenanhtuan21/ecommerce-django
df29b31073b8e24ae9fbb294ca0c3ba8c81c09ae
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Brand, Product, Profile, Instagram, OrderItem,Order from django.utils.html import format_html # Register your models here. def make_published(modeladmin, request, queryset): queryset.update(name='Váy') make_published.short_description = "Mark selected stories as...
40.40678
149
0.707215
291
2,384
5.580756
0.261168
0.060961
0.108374
0.121921
0.549877
0.512931
0.456281
0.394704
0.366379
0.366379
0
0.005761
0.126258
2,384
58
150
41.103448
0.773884
0.010906
0
0.458333
0
0
0.250955
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0.041667
0.791667
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
20cdcbc31867bb9709b928a4acae70fbdca1641b
3,211
py
Python
util/dates.py
cumanachao/utopia-crm
6d648971c427ca9f380b15ed0ceaf5767b88e8b9
[ "BSD-3-Clause" ]
13
2020-12-14T19:56:04.000Z
2021-11-06T13:24:48.000Z
util/dates.py
cumanachao/utopia-crm
6d648971c427ca9f380b15ed0ceaf5767b88e8b9
[ "BSD-3-Clause" ]
5
2020-12-14T19:56:30.000Z
2021-09-22T22:09:39.000Z
util/dates.py
cumanachao/utopia-crm
6d648971c427ca9f380b15ed0ceaf5767b88e8b9
[ "BSD-3-Clause" ]
3
2021-03-24T03:55:08.000Z
2022-01-13T15:22:34.000Z
import calendar from datetime import date, datetime, timedelta from time import localtime from django.utils.translation import ugettext_lazy as _ def add_business_days(from_date, add_days): """ This is just used to add business days to a function. Should be moved to util. """ business_days_to_add = ad...
30.875
116
0.638742
476
3,211
4.168067
0.27521
0.054435
0.035282
0.025706
0.059476
0.059476
0.032258
0
0
0
0
0.017999
0.255995
3,211
103
117
31.174757
0.812474
0.236064
0
0.080645
0
0
0.011003
0
0
0
0
0
0
1
0.16129
false
0
0.064516
0.064516
0.467742
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20cfca94bf1866157bf1f47a272c02db1e2ee2a1
1,211
py
Python
leetcode/9isPalindrome.py
wanglingyun/interview-questions
41aad1146c1cf8cfff741a0127ce973733fdcac6
[ "Apache-2.0" ]
null
null
null
leetcode/9isPalindrome.py
wanglingyun/interview-questions
41aad1146c1cf8cfff741a0127ce973733fdcac6
[ "Apache-2.0" ]
null
null
null
leetcode/9isPalindrome.py
wanglingyun/interview-questions
41aad1146c1cf8cfff741a0127ce973733fdcac6
[ "Apache-2.0" ]
null
null
null
# Definition for singly-linked list. import unittest import math class TestClass(unittest.TestCase): def isPalindrome(self, x: int) -> bool: if(x<0): return False rx = self.reverseNum(x) return rx == x def reverseNum(self,x: int): rx = 0 while x>=1: ...
22.425926
44
0.523534
152
1,211
4.085526
0.309211
0.067633
0.088567
0.096618
0.433172
0.433172
0.433172
0.433172
0.320451
0.233494
0
0.043984
0.361685
1,211
54
45
22.425926
0.759379
0.028076
0
0.325581
0
0
0.006803
0
0
0
0
0
0.116279
1
0.209302
false
0
0.046512
0
0.395349
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
20d0880440126c65c69df8c4573d843710e04d7e
433
py
Python
polyglot/utils.py
riccardoFasan/deeply
b025d2b85282d6934edc8c2f824ca9ad68a8ba08
[ "MIT" ]
2
2022-03-14T17:47:20.000Z
2022-03-20T09:51:27.000Z
polyglot/utils.py
riccardoFasan/deepl-translator-script
b025d2b85282d6934edc8c2f824ca9ad68a8ba08
[ "MIT" ]
1
2022-03-31T07:00:28.000Z
2022-03-31T07:01:05.000Z
polyglot/utils.py
riccardoFasan/deepl-translator-script
b025d2b85282d6934edc8c2f824ca9ad68a8ba08
[ "MIT" ]
1
2021-12-28T09:21:31.000Z
2021-12-28T09:21:31.000Z
from typing import Any, Iterator, Optional import colorama DownloadedDocumentStream = Optional[Iterator[Any]] def get_truncated_text(text: str, limit: int) -> str: return text[:limit] + "..." if len(text) > limit else text def get_color_by_percentage(percentage: int) -> str: if percentage > 90: retu...
25.470588
62
0.706697
56
433
5.375
0.5
0.139535
0.179402
0
0
0
0
0
0
0
0
0.011461
0.193995
433
16
63
27.0625
0.851003
0
0
0
0
0
0.006944
0
0
0
0
0
0
1
0.181818
false
0
0.181818
0.090909
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
20d29550aa2f57d0c74fa67f5970acb95e350f79
2,771
py
Python
LocadoraDeFilmes/funcoes_dos_filmes.py
JoaoVitorBernardino/Sistema-de-locadora-de-filmes
cf0cd0d8c9ad49fe48ab14626f241c4e0bb39846
[ "MIT" ]
null
null
null
LocadoraDeFilmes/funcoes_dos_filmes.py
JoaoVitorBernardino/Sistema-de-locadora-de-filmes
cf0cd0d8c9ad49fe48ab14626f241c4e0bb39846
[ "MIT" ]
null
null
null
LocadoraDeFilmes/funcoes_dos_filmes.py
JoaoVitorBernardino/Sistema-de-locadora-de-filmes
cf0cd0d8c9ad49fe48ab14626f241c4e0bb39846
[ "MIT" ]
null
null
null
import os from DataBase.dados_filmes import * from DataBase.dados_aluguel import * def cadastrar_filme(): os.system('cls' if os.name == 'nt' else 'clear') nome = input('Digite o nome do filme: ') ano = input('Digite o ano de lançamento do filme: ') codigo = input('Digite o código do filme: ') filme...
32.6
103
0.582461
342
2,771
4.619883
0.266082
0.11519
0.027848
0.032911
0.489873
0.468354
0.418987
0.418987
0.418987
0.311392
0
0.0148
0.268495
2,771
85
104
32.6
0.764677
0
0
0.342857
0
0.028571
0.27886
0.007576
0
0
0
0
0
1
0.1
false
0
0.042857
0
0.142857
0.157143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20d2eced67b2dc37a106dd6188cfaac2ce3f1efd
599
py
Python
find-optional-modules/delete-pyc.py
berkut-174/salt-windows-msi
3a0b9c891db95dfcfc5daa518305e1a5cc20d1b0
[ "Apache-2.0" ]
null
null
null
find-optional-modules/delete-pyc.py
berkut-174/salt-windows-msi
3a0b9c891db95dfcfc5daa518305e1a5cc20d1b0
[ "Apache-2.0" ]
null
null
null
find-optional-modules/delete-pyc.py
berkut-174/salt-windows-msi
3a0b9c891db95dfcfc5daa518305e1a5cc20d1b0
[ "Apache-2.0" ]
null
null
null
''' delete pyc except salt-minion.pyc ''' from __future__ import print_function import os SRCDIR = r'c:\salt' def action(start_path): skipped = 0 deleted = 0 for dirpath, dirnames, filenames in os.walk(start_path): for f in filenames: fp = os.path.join(dirpath, f) if fp.en...
23.038462
60
0.534224
71
599
4.408451
0.507042
0.063898
0.083067
0
0
0
0
0
0
0
0
0.010178
0.343907
599
25
61
23.96
0.78626
0.055092
0
0
0
0
0.082585
0
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.166667
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
0
0
0
0
1
0
20d36a5f003e151ad485d22dfd0ea098ae87f73e
387
py
Python
DeepLearningAI/notification.py
philson-philip/harp
8e38573cad1c3e16c062044a8f011658293d1531
[ "MIT" ]
1
2019-02-08T20:14:14.000Z
2019-02-08T20:14:14.000Z
DeepLearningAI/notification.py
philson-philip/harp
8e38573cad1c3e16c062044a8f011658293d1531
[ "MIT" ]
6
2021-03-18T22:10:34.000Z
2022-03-11T23:40:16.000Z
DeepLearningAI/notification.py
philson-philip/harp
8e38573cad1c3e16c062044a8f011658293d1531
[ "MIT" ]
3
2019-02-08T20:14:23.000Z
2019-03-10T06:10:07.000Z
from win10toast import ToastNotifier import time def Notify(MessageTitle,MessageBody): toaster = ToastNotifier() toaster.show_toast(MessageTitle, MessageBody, icon_path="logo.ico", duration=3,threaded=True) from playsound import playsound playsound('Notifi...
35.181818
53
0.689922
40
387
6.6
0.725
0.174242
0
0
0
0
0
0
0
0
0
0.023333
0.224806
387
11
53
35.181818
0.856667
0
0
0
0
0
0.064433
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20d57f78d8a0255a09b457d1362b139f81bf6db0
2,883
py
Python
datasets/cifar10.py
killianlevacher/defenseInvGAN-src
8fa398536773c5bc00c906562d2d9359572b8157
[ "MIT" ]
14
2019-12-12T11:28:18.000Z
2022-03-09T11:56:04.000Z
datasets/cifar10.py
killianlevacher/defenseInvGAN-src
8fa398536773c5bc00c906562d2d9359572b8157
[ "MIT" ]
7
2019-12-16T22:20:01.000Z
2022-02-10T00:45:21.000Z
datasets/cifar10.py
killianlevacher/defenseInvGAN-src
8fa398536773c5bc00c906562d2d9359572b8157
[ "MIT" ]
2
2020-04-01T09:02:00.000Z
2021-08-01T14:27:11.000Z
import os import numpy as np import cPickle as pickle from datasets.dataset import Dataset class Cifar10(Dataset): """Implements the Dataset class to handle CIFAR-10. Attributes: y_dim: The dimension of label vectors (number of classes). split_data: A dictionary of { ...
30.347368
101
0.534513
355
2,883
4.24507
0.287324
0.042468
0.053086
0.045123
0.285335
0.236231
0.216324
0.180491
0.180491
0.180491
0
0.036559
0.354839
2,883
94
102
30.670213
0.773656
0.248699
0
0.074074
0
0
0.055149
0
0
0
0
0
0
1
0.037037
false
0
0.074074
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20d64baaf85f6901221960787dd47f6f3ae74d9b
759
py
Python
tests/test_collide.py
csayres/kaiju
0b4ca4fab5322351b97b8316b2d755d91bc05c16
[ "BSD-3-Clause" ]
null
null
null
tests/test_collide.py
csayres/kaiju
0b4ca4fab5322351b97b8316b2d755d91bc05c16
[ "BSD-3-Clause" ]
null
null
null
tests/test_collide.py
csayres/kaiju
0b4ca4fab5322351b97b8316b2d755d91bc05c16
[ "BSD-3-Clause" ]
null
null
null
import pytest import kaiju from kaiju.robotGrid import RobotGridNominal from kaiju import utils def test_collide(plot=False): # should make a grid rg = RobotGridNominal() collidedRobotIDs = [] for rid, r in rg.robotDict.items(): if r.holeID == "R-13C1": r.setAlphaBeta(90,0) coll...
24.483871
104
0.648221
97
759
4.958763
0.515464
0.068607
0.033264
0
0
0
0
0
0
0
0
0.048027
0.231884
759
31
105
24.483871
0.777015
0.023715
0
0.086957
0
0
0.048649
0
0
0
0
0
0.086957
1
0.043478
false
0
0.173913
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20d675e25832cd9793c5f67b4cb83f944dbf455c
2,839
py
Python
Lib/site-packages/psycopg/__init__.py
RosaSineSpinis/twitter_bitcon_tag_analyser
3311022b6fd629ce85f0c4fa0516e310bed05d74
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/psycopg/__init__.py
RosaSineSpinis/twitter_bitcon_tag_analyser
3311022b6fd629ce85f0c4fa0516e310bed05d74
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/psycopg/__init__.py
RosaSineSpinis/twitter_bitcon_tag_analyser
3311022b6fd629ce85f0c4fa0516e310bed05d74
[ "bzip2-1.0.6" ]
null
null
null
""" psycopg -- PostgreSQL database adapter for Python """ # Copyright (C) 2020-2021 The Psycopg Team import logging from . import pq # noqa: F401 import early to stabilize side effects from . import types from . import postgres from .copy import Copy, AsyncCopy from ._enums import IsolationLevel from .cursor import...
27.563107
76
0.738288
304
2,839
6.819079
0.480263
0.019296
0.023155
0.037627
0.0685
0
0
0
0
0
0
0.012409
0.176823
2,839
102
77
27.833333
0.874626
0.241634
0
0
0
0
0.211069
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20d72cb6f933da26640aaaa4fbce23b2cbb317bd
434
py
Python
Datasets/Terrain/us_ned_topo_diversity.py
liuxb555/earthengine-py-examples
cff5d154b15a17d6a241e3c003b7fc9a2c5903f3
[ "MIT" ]
75
2020-06-09T14:40:11.000Z
2022-03-07T08:38:10.000Z
Datasets/Terrain/us_ned_topo_diversity.py
gentaprekazi/earthengine-py-examples
76ae8e071a71b343f5e464077afa5b0ed2f9314c
[ "MIT" ]
1
2022-03-15T02:23:45.000Z
2022-03-15T02:23:45.000Z
Datasets/Terrain/us_ned_topo_diversity.py
gentaprekazi/earthengine-py-examples
76ae8e071a71b343f5e464077afa5b0ed2f9314c
[ "MIT" ]
35
2020-06-12T23:23:48.000Z
2021-11-15T17:34:50.000Z
import ee import geemap # Create a map centered at (lat, lon). Map = geemap.Map(center=[40, -100], zoom=4) dataset = ee.Image('CSP/ERGo/1_0/US/topoDiversity') usTopographicDiversity = dataset.select('constant') usTopographicDiversityVis = { 'min': 0.0, 'max': 1.0, } Map.setCenter(-111.313, 39.724, 6) Map.addLaye...
21.7
54
0.71659
57
434
5.438596
0.701754
0.012903
0
0
0
0
0
0
0
0
0
0.064343
0.140553
434
19
55
22.842105
0.766756
0.12212
0
0
0
0
0.177249
0.07672
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20d89580fd6577e22f09078f9105ed4eb217404f
6,139
py
Python
cnn_to_mlp.py
minimario/CNN-Cert
0dd60a8e8277cfecef3ab4d1ed055e62f92fd71c
[ "Apache-2.0" ]
54
2020-09-09T12:43:43.000Z
2022-03-17T17:31:19.000Z
cnn_to_mlp.py
jinzh154/CNN-Cert
0dd60a8e8277cfecef3ab4d1ed055e62f92fd71c
[ "Apache-2.0" ]
9
2019-04-26T15:33:21.000Z
2022-02-17T13:20:47.000Z
cnn_to_mlp.py
jinzh154/CNN-Cert
0dd60a8e8277cfecef3ab4d1ed055e62f92fd71c
[ "Apache-2.0" ]
16
2019-02-17T03:02:36.000Z
2021-05-17T13:59:07.000Z
""" cnn_to_mlp.py Converts CNNs to MLP networks Copyright (C) 2018, Akhilan Boopathy <akhilan@mit.edu> Lily Weng <twweng@mit.edu> Pin-Yu Chen <Pin-Yu.Chen@ibm.com> Sijia Liu <Sijia.Liu@ibm.com> Luca Daniel <dluca@mit.edu> """ from tenso...
42.93007
127
0.620948
904
6,139
3.90708
0.211283
0.068516
0.087203
0.065402
0.384768
0.353907
0.209513
0.047565
0
0
0
0.042891
0.251833
6,139
142
128
43.232394
0.726105
0.069555
0
0.036036
0
0.009009
0.249298
0.218574
0
0
0
0
0
1
0.036036
false
0.009009
0.108108
0.009009
0.171171
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20da2372e14378343601425914ba9a4d487c8b91
5,328
py
Python
libsymple.py
aoeftiger/PySymple
00b887a59a107426d940aeb1e42a30a521b5729d
[ "MIT" ]
1
2019-12-18T15:30:19.000Z
2019-12-18T15:30:19.000Z
libsymple.py
aoeftiger/PySymple
00b887a59a107426d940aeb1e42a30a521b5729d
[ "MIT" ]
null
null
null
libsymple.py
aoeftiger/PySymple
00b887a59a107426d940aeb1e42a30a521b5729d
[ "MIT" ]
null
null
null
''' Copyright 2014 by Adrian Oeftiger, oeftiger@cern.ch This module provides various numerical integration methods for Hamiltonian vector fields on (currently two-dimensional) phase space. The integrators are separated according to symplecticity. The method is_symple() is provided to check for symplecticity of a given...
45.152542
77
0.647147
835
5,328
3.906587
0.214371
0.077253
0.055181
0.062538
0.502452
0.434703
0.409258
0.366953
0.326487
0.326487
0
0.021701
0.256194
5,328
117
78
45.538462
0.801413
0.389077
0
0.328358
0
0
0
0
0
0
0
0
0
1
0.104478
false
0
0.044776
0
0.283582
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20dc7c2e8b065dfa920a34dee44b90c37f1c51a5
256
py
Python
Rasp_Pi_2018/should_i_water/water_plants_task.py
BitKnitting/should_I_water
8d849671892b7bbc9e947e0ba041c4c3527b6bbd
[ "MIT" ]
2
2018-05-20T00:26:31.000Z
2018-06-13T16:22:48.000Z
Rasp_Pi_2018/should_i_water/water_plants_task.py
BitKnitting/should_I_water
8d849671892b7bbc9e947e0ba041c4c3527b6bbd
[ "MIT" ]
null
null
null
Rasp_Pi_2018/should_i_water/water_plants_task.py
BitKnitting/should_I_water
8d849671892b7bbc9e947e0ba041c4c3527b6bbd
[ "MIT" ]
null
null
null
import os import sys LIB_PATH = os.environ['LADYBUG_LIB_PATH'] sys.path.append(LIB_PATH) from water_plants_lib import WaterPlants ############### if __name__ == "__main__": water_plants = WaterPlants() water_plants.send_start_watering_packets()
19.692308
46
0.734375
34
256
4.970588
0.558824
0.12426
0
0
0
0
0
0
0
0
0
0
0.125
256
12
47
21.333333
0.754464
0
0
0
0
0
0.099585
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
20de1adfff69feef6f33b16295086d0f5529ee20
2,055
py
Python
undp-transparency-portal-be/undp_admin/api_views.py
undp/transparencyportal
244fbb82c05d119f0acbe7f5efbb44572d9150a0
[ "CC-BY-3.0" ]
5
2019-09-10T15:05:18.000Z
2022-02-02T02:53:32.000Z
undp-transparency-portal-be/undp_admin/api_views.py
undp/transparencyportal
244fbb82c05d119f0acbe7f5efbb44572d9150a0
[ "CC-BY-3.0" ]
4
2019-04-02T15:02:20.000Z
2021-11-09T10:55:32.000Z
undp-transparency-portal-be/undp_admin/api_views.py
undp/transparencyportal
244fbb82c05d119f0acbe7f5efbb44572d9150a0
[ "CC-BY-3.0" ]
2
2021-09-01T14:30:29.000Z
2021-09-01T14:32:57.000Z
from django.shortcuts import render # Create your views here. from rest_framework.views import APIView from rest_framework.viewsets import GenericViewSet from undp_admin.models import AboutUs, AdminLog, JOBS, LOG_STATUSES from undp_admin.serializers import AboutUsSerializer from utilities.mixins import ResponseViewMi...
39.519231
96
0.697324
239
2,055
5.778243
0.372385
0.025344
0.034757
0.045619
0.259957
0.197683
0.197683
0.197683
0.197683
0.197683
0
0.007348
0.205353
2,055
51
97
40.294118
0.838334
0.047689
0
0.142857
0
0
0.060494
0
0
0
0
0
0
1
0.085714
false
0
0.228571
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
20df1df6d17c6f6ed2e728f416d617232f800db9
2,681
py
Python
COVIDSafepassage/passsystem/admin.py
VICS-CORE/safepassage_server
58bc04dbfa55430c0218567211e5259de77518ae
[ "MIT" ]
null
null
null
COVIDSafepassage/passsystem/admin.py
VICS-CORE/safepassage_server
58bc04dbfa55430c0218567211e5259de77518ae
[ "MIT" ]
8
2020-04-25T09:42:25.000Z
2022-03-12T00:23:32.000Z
COVIDSafepassage/passsystem/admin.py
VICS-CORE/safepassage_server
58bc04dbfa55430c0218567211e5259de77518ae
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Pass, User, Organisation, Roles, Vehicle, Identity, Team from treebeard.admin import TreeAdmin from treebeard.forms import movenodeform_factory class AdminUserView(admin.ModelAdmin): model = User readonly_fields = ('user_id',) list_display = ...
37.760563
121
0.70981
276
2,681
6.615942
0.322464
0.03943
0.06517
0.021906
0
0
0
0
0
0
0
0
0.174935
2,681
70
122
38.3
0.825497
0.096233
0
0
0
0
0.323103
0.057971
0
0
0
0
0
1
0
false
0.190476
0.095238
0
0.738095
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
1
0
0
2
20df31b6f10759e65d52beef5fda7d1f46c80d54
1,592
py
Python
python/climate_ae/data_generator/utils.py
kueddelmaier/latent-linear-adjustment-autoencoders
f180732695a6c2abd8a9ad9d8cfeed2f82f047bb
[ "MIT" ]
3
2020-10-29T19:08:27.000Z
2021-08-14T09:19:48.000Z
python/climate_ae/data_generator/utils.py
kueddelmaier/latent-linear-adjustment-autoencoders
f180732695a6c2abd8a9ad9d8cfeed2f82f047bb
[ "MIT" ]
6
2020-11-13T19:01:07.000Z
2022-01-04T09:34:05.000Z
python/climate_ae/data_generator/utils.py
kueddelmaier/latent-linear-adjustment-autoencoders
f180732695a6c2abd8a9ad9d8cfeed2f82f047bb
[ "MIT" ]
1
2021-03-01T15:28:56.000Z
2021-03-01T15:28:56.000Z
import numpy as np import tensorflow as tf def parse_dataset(example_proto, img_size_h, img_size_w, img_size_d, dim_anno1, dim_anno2, dim_anno3, dtype_img=tf.float64): features = { 'inputs': tf.io.FixedLenFeature(shape=[], dtype=tf.string), 'annotations': tf.io.FixedLenFeature(shape=[dim_anno...
41.894737
84
0.704774
217
1,592
4.935484
0.258065
0.033613
0.124183
0.156863
0.385621
0.360411
0.331466
0.161531
0.128852
0.084034
0
0.021005
0.162688
1,592
38
85
41.894737
0.782446
0
0
0
0
0
0.067797
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20df33ace10cb4d9d76d4f800c169534a71238a5
78
py
Python
uci_janggi/__init__.py
sprinter89/uci_janggi
1acdf8db9a186eb44be6c462329c9965f5952f7e
[ "MIT" ]
null
null
null
uci_janggi/__init__.py
sprinter89/uci_janggi
1acdf8db9a186eb44be6c462329c9965f5952f7e
[ "MIT" ]
null
null
null
uci_janggi/__init__.py
sprinter89/uci_janggi
1acdf8db9a186eb44be6c462329c9965f5952f7e
[ "MIT" ]
null
null
null
#this file does nothing except informing pypi that uci_janggi.py is a package
39
77
0.820513
14
78
4.5
1
0
0
0
0
0
0
0
0
0
0
0
0.153846
78
1
78
78
0.954545
0.974359
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
20e0cbef167c1c068cc1264bcbdca5e71f4391df
8,251
py
Python
app/app/api/views.py
dtcooper/crazyarms
71ea0e58958233daaceb8750043f74ef1a141079
[ "MIT" ]
15
2021-01-18T17:16:51.000Z
2022-03-28T22:16:19.000Z
app/app/api/views.py
dtcooper/carb
71ea0e58958233daaceb8750043f74ef1a141079
[ "MIT" ]
4
2021-03-14T16:28:40.000Z
2021-03-31T16:48:49.000Z
app/app/api/views.py
dtcooper/carb
71ea0e58958233daaceb8750043f74ef1a141079
[ "MIT" ]
3
2021-07-15T02:24:19.000Z
2022-03-18T11:50:05.000Z
import json import logging from django.conf import settings from django.contrib.auth import authenticate from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden, JsonResponse from django.utils.decorators import method_decorator from django.views import View from django.views.decorators.csrf...
37
120
0.5769
863
8,251
5.308227
0.252607
0.043222
0.036018
0.036018
0.291421
0.233573
0.217856
0.182275
0.089937
0.089937
0
0.003093
0.333778
8,251
222
121
37.166667
0.830271
0.044358
0
0.256983
0
0
0.130093
0.01523
0
0
0
0
0
1
0.03352
false
0.083799
0.067039
0
0.223464
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
20e14f7ef604899504925d65072a7843fff0a6db
40,435
py
Python
notebooks/Users/kasri@berkeley.edu/final_project_team25_centrality.py
superli3/ucb-w261-sp2021-team25
102e9859e878a54f84554e66425097217a0485e7
[ "Apache-2.0" ]
null
null
null
notebooks/Users/kasri@berkeley.edu/final_project_team25_centrality.py
superli3/ucb-w261-sp2021-team25
102e9859e878a54f84554e66425097217a0485e7
[ "Apache-2.0" ]
null
null
null
notebooks/Users/kasri@berkeley.edu/final_project_team25_centrality.py
superli3/ucb-w261-sp2021-team25
102e9859e878a54f84554e66425097217a0485e7
[ "Apache-2.0" ]
1
2021-04-19T20:41:48.000Z
2021-04-19T20:41:48.000Z
// Databricks notebook source // MAGIC %md // MAGIC // MAGIC W261 Final Project // MAGIC ------------------ // MAGIC ## Graph Centrality for Airline Delay Prediction // MAGIC // MAGIC #### Justin Trobec, Jeff Li, Sonya Chen, Karthik Srinivasan // MAGIC #### Spring 2021, Section 5 // MAGIC #### Group 25 // COMMAN...
35.130321
656
0.679609
5,631
40,435
4.7393
0.12076
0.037097
0.019897
0.026717
0.632068
0.58965
0.558736
0.520778
0.479335
0.446697
0
0.023127
0.171263
40,435
1,151
657
35.130321
0.773262
0.06482
0
0.588375
0
0.061684
0.286927
0.060398
0
0
0
0.001738
0
0
null
null
0
0.027284
null
null
0.015421
0
0
0
null
0
0
0
0
0
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
20e282771bc57317c73491a2286791812cf8bb2b
2,715
py
Python
microsim/column_names.py
dabreegster/RAMP-UA
04b7473aed441080ee10b6f68eb8b9135dac6879
[ "MIT" ]
10
2020-07-01T15:04:28.000Z
2021-11-01T17:04:27.000Z
microsim/column_names.py
dabreegster/RAMP-UA
04b7473aed441080ee10b6f68eb8b9135dac6879
[ "MIT" ]
229
2020-05-12T12:21:57.000Z
2022-03-22T09:40:12.000Z
microsim/column_names.py
dabreegster/RAMP-UA
04b7473aed441080ee10b6f68eb8b9135dac6879
[ "MIT" ]
10
2020-04-29T16:17:28.000Z
2021-12-23T13:11:30.000Z
class ColumnNames: """Used to record standard dataframe column names used throughout""" LOCATION_DANGER = "Danger" # Danger associated with a location LOCATION_NAME = "Location_Name" # Name of a location LOCATION_ID = "ID" # Unique ID for each location # Define the different types of activities...
46.810345
115
0.704236
353
2,715
5.260623
0.419263
0.035003
0.012924
0.025848
0.112547
0.08993
0.074313
0
0
0
0
0.010552
0.232044
2,715
58
116
46.810345
0.880096
0.492449
0
0
0
0
0.179392
0
0
0
0
0
0.025641
1
0
false
0
0
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
0
0
1
0
20e4504512f6f3017cd6e385cfabae07f81ee87a
382
py
Python
datasets/script/ds_cut_last.py
PoCInnovation/SmartShark
2cf5eb32306fb5bd88972f44331322ae58d4bb2c
[ "MIT" ]
26
2020-11-26T13:05:31.000Z
2022-03-22T11:04:41.000Z
datasets/script/ds_cut_last.py
PoCFrance/SmartShark
2cf5eb32306fb5bd88972f44331322ae58d4bb2c
[ "MIT" ]
4
2020-09-26T16:30:47.000Z
2022-03-06T18:02:52.000Z
datasets/script/ds_cut_last.py
PoCFrance/SmartShark
2cf5eb32306fb5bd88972f44331322ae58d4bb2c
[ "MIT" ]
9
2021-01-19T16:44:23.000Z
2022-02-15T21:06:29.000Z
fichier = open("/run/media/Thytu/TOSHIBA EXT/PoC/Smartshark/DS/ds_benign_cleaned_div_3.csv", "r") pos = 12 #pos to flatten def flat_line(line, target): index = 0 pos = 0 for l in line: pos += 1 if (l == ','): index += 1 if index == target: break; print(l...
21.222222
97
0.552356
57
382
3.596491
0.578947
0.102439
0.117073
0
0
0
0
0
0
0
0
0.030418
0.311518
382
17
98
22.470588
0.749049
0.036649
0
0
0
0
0.207084
0.19891
0
0
0
0
0
1
0.071429
false
0
0
0
0.071429
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20e53640a34afd90bd7994b855aba3b499daef58
835
py
Python
Scripts/python/setup_k8s_thirdparty.py
SnowPhoenix0105/ToolSite
c5084010665434711867b1b5cd4915fe79ab2c7b
[ "MIT" ]
null
null
null
Scripts/python/setup_k8s_thirdparty.py
SnowPhoenix0105/ToolSite
c5084010665434711867b1b5cd4915fe79ab2c7b
[ "MIT" ]
7
2021-08-28T09:27:39.000Z
2021-09-26T15:35:13.000Z
Scripts/python/setup_k8s_thirdparty.py
SnowPhoenix0105/ToolSite
c5084010665434711867b1b5cd4915fe79ab2c7b
[ "MIT" ]
null
null
null
from python.utils.cmd_exec import cmd_exec import json import logging from python.utils.path import Path, pcat from logging import DEBUG from python.utils.log import config_logging _logger = logging.getLogger(__name__) def setup_k8s_thirdparty(): list_path = Path.SCRIPTS_CONFIG_K8S_THIRD_PARTY_LIST _logger....
29.821429
65
0.728144
119
835
4.697479
0.394958
0.125224
0.121646
0
0
0
0
0
0
0
0
0.005814
0.176048
835
27
66
30.925926
0.806686
0
0
0
0
0
0.109244
0
0
0
0
0
0
1
0.047619
false
0
0.285714
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
0
0
0
0
1
0
20e5596dc72fd005174ca47cd9087713926d0058
1,506
py
Python
utils/callbacks.py
YossiAsher/utils
c389d061378fca0b5495691c999f93adfa882faf
[ "MIT" ]
null
null
null
utils/callbacks.py
YossiAsher/utils
c389d061378fca0b5495691c999f93adfa882faf
[ "MIT" ]
null
null
null
utils/callbacks.py
YossiAsher/utils
c389d061378fca0b5495691c999f93adfa882faf
[ "MIT" ]
null
null
null
import os.path import glob import wandb import numpy as np from tensorflow.keras.callbacks import Callback class ValLog(Callback): def __init__(self, dataset=None, table="predictions", project="svg-attention6", run=""): super().__init__() self.dataset = dataset self.table_name = table ...
40.702703
97
0.616866
191
1,506
4.691099
0.371728
0.098214
0.043527
0.071429
0
0
0
0
0
0
0
0.002639
0.24502
1,506
36
98
41.833333
0.7854
0
0
0
0
0
0.075697
0.022576
0
0
0
0
0
1
0.066667
false
0
0.166667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20e603c9bd357a4fc46fca97e132ad4376a93633
12,680
py
Python
cirrocumulus/anndata_util.py
PfizerRD/cirrocumulus
c7ce0c8c3c246282046e6d373d60442af55d3f09
[ "BSD-3-Clause" ]
null
null
null
cirrocumulus/anndata_util.py
PfizerRD/cirrocumulus
c7ce0c8c3c246282046e6d373d60442af55d3f09
[ "BSD-3-Clause" ]
null
null
null
cirrocumulus/anndata_util.py
PfizerRD/cirrocumulus
c7ce0c8c3c246282046e6d373d60442af55d3f09
[ "BSD-3-Clause" ]
1
2022-02-06T23:08:26.000Z
2022-02-06T23:08:26.000Z
import anndata import numpy as np import pandas as pd DATA_TYPE_MODULE = 'module' DATA_TYPE_UNS_KEY = 'data_type' ADATA_MODULE_UNS_KEY = 'anndata_module' def get_base(adata): base = None if 'log1p' in adata.uns and adata.uns['log1p']['base'] is not None: base = adata.uns['log1p'][base] return bas...
41.168831
135
0.596688
1,621
12,680
4.400987
0.143122
0.038127
0.054668
0.021447
0.286655
0.207597
0.162321
0.121391
0.101205
0.088029
0
0.00833
0.289905
12,680
307
136
41.302932
0.783985
0.105205
0
0.174797
0
0
0.05272
0
0
0
0
0
0
1
0.028455
false
0.012195
0.028455
0
0.093496
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20e63d705639da49401b6833ac2f7010dc3cf8e6
23,612
py
Python
apps/cumulative_gdd.py
ua-snap/usda-dash
caeab072728a5c78b63b1547985f3e6476b348fa
[ "MIT" ]
null
null
null
apps/cumulative_gdd.py
ua-snap/usda-dash
caeab072728a5c78b63b1547985f3e6476b348fa
[ "MIT" ]
17
2020-01-22T00:15:52.000Z
2021-11-04T21:35:37.000Z
apps/cumulative_gdd.py
ua-snap/usda-dash
caeab072728a5c78b63b1547985f3e6476b348fa
[ "MIT" ]
1
2022-03-31T04:39:34.000Z
2022-03-31T04:39:34.000Z
#!/usr/bin/env python3 """ Template for SNAP Dash apps. """ import os import json import plotly.graph_objs as go import xarray as xr import dash import dash_core_components as dcc import dash_html_components as html import dash_dangerously_set_inner_html as ddsih import dash_table import pandas as pd import geopandas ...
34.825959
3,692
0.380103
2,677
23,612
3.316773
0.167352
0.003829
0.016218
0.009911
0.108909
0.072418
0.052146
0.027706
0.009686
0.009686
0
0.182796
0.448585
23,612
677
3,693
34.8774
0.497389
0.164366
0
0.098847
0
0.001647
0.196025
0.004092
0
0
0
0
0
1
0.003295
false
0
0.028007
0
0.032949
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
20e69aa1204b71354dd606f9dd415d38b56a677a
15,298
py
Python
tests/integration/test_occ.py
aavcc/taiga-openshift
7c33284573ceed38f755b8159ad83f3f68d2f7cb
[ "MIT" ]
null
null
null
tests/integration/test_occ.py
aavcc/taiga-openshift
7c33284573ceed38f755b8159ad83f3f68d2f7cb
[ "MIT" ]
12
2019-11-25T14:08:32.000Z
2021-06-24T10:35:51.000Z
tests/integration/test_occ.py
threefoldtech/Threefold-Circles
cbc433796b25cf7af9a295af65d665a4a279e2d6
[ "Apache-2.0" ]
1
2018-06-07T10:58:15.000Z
2018-06-07T10:58:15.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2014-2017 Andrey Antukh <niwi@niwi.nz> # Copyright (C) 2014-2017 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014-2017 David Barragán <bameda@dbarragan.com> # Copyright (C) 2014-2017 Alejandro Alonso <alejandro.alonso@kaleidos.net> # This program is free software: you can r...
42.376731
88
0.664727
1,873
15,298
5.302723
0.097704
0.064841
0.043496
0.057994
0.914217
0.903141
0.896798
0.889952
0.887737
0.887737
0
0.015511
0.203491
15,298
360
89
42.494444
0.79959
0.0587
0
0.897436
0
0
0.15881
0.051801
0
0
0
0
0.131868
1
0.047619
false
0
0.018315
0
0.065934
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
20e7676617875b614527d964e3fa868094f4c605
4,450
py
Python
python-code/dlib-learning/face_reco_from_camera.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
13
2018-09-07T02:29:07.000Z
2021-06-18T08:40:09.000Z
python-code/dlib-learning/face_reco_from_camera.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
null
null
null
python-code/dlib-learning/face_reco_from_camera.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
4
2019-06-20T00:09:39.000Z
2021-07-15T10:14:36.000Z
# created at 2018-05-11 # updated at 2018-08-23 # support multi-faces now # By coneypo # Blog: http://www.cnblogs.com/AdaminXie # GitHub: https://github.com/coneypo/Dlib_face_recognition_from_camera import dlib # 人脸识别的库dlib import numpy as np # 数据处理的库numpy import cv2 # 图像处理的库OpenCv import pandas as p...
28.164557
120
0.634382
611
4,450
4.418985
0.368249
0.013333
0.02963
0.02037
0.123704
0.05037
0.043704
0.023704
0
0
0
0.038746
0.240225
4,450
158
121
28.164557
0.759834
0.26382
0
0.130435
0
0
0.076016
0.048402
0
0
0
0
0
1
0.028986
false
0
0.057971
0
0.130435
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20e848a5145974495ecc337b35a8d2b22c5a5616
340
py
Python
tpow/examples/check_read_rom.py
sken10/tpow
6accbfe133a41959c2d35d5c8401e622d4f9efc2
[ "MIT" ]
1
2020-10-31T05:37:41.000Z
2020-10-31T05:37:41.000Z
tpow/examples/check_read_rom.py
sken10/tpow
6accbfe133a41959c2d35d5c8401e622d4f9efc2
[ "MIT" ]
null
null
null
tpow/examples/check_read_rom.py
sken10/tpow
6accbfe133a41959c2d35d5c8401e622d4f9efc2
[ "MIT" ]
null
null
null
"""check_read_rom.py get ROMID of 1-wire device. assume only one 1-wire device on the bus. """ import tpow.usb9097 import tpow.device import cfg bus = tpow.usb9097.USB9097(cfg.com_port) # USB9097('COM3') id_little = tpow.device.read_rom(bus) id_big = [a for a in reversed(id_little)] print(" ".join(['%02X' % ord(a) ...
21.25
59
0.711765
62
340
3.774194
0.548387
0.059829
0.094017
0.059829
0
0
0
0
0
0
0
0.072165
0.144118
340
15
60
22.666667
0.731959
0.308824
0
0
0
0
0.022124
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
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
20e8ac2901c046279a37346f2a01171b0a59374c
1,522
py
Python
common/xrd-ui-tests-python/tests/xroad_trust_view_details_cs_ca/XroadTrustViewDetailsCsCa.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
3
2018-03-15T14:22:50.000Z
2021-11-08T10:30:35.000Z
common/xrd-ui-tests-python/tests/xroad_trust_view_details_cs_ca/XroadTrustViewDetailsCsCa.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
11
2017-04-06T09:25:41.000Z
2018-06-04T09:08:48.000Z
common/xrd-ui-tests-python/tests/xroad_trust_view_details_cs_ca/XroadTrustViewDetailsCsCa.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
20
2017-03-14T07:21:58.000Z
2019-05-21T09:26:30.000Z
# coding=utf-8 import unittest from main.maincontroller import MainController import view_management """ UC TRUST_02: View the Details of a Certification Service CA RIA URL: https://jira.ria.ee/browse/XTKB-185 Depends on finishing other test(s): Requires helper scenarios: X-Road version: 6.16.0 """ class Xroad...
31.708333
131
0.657687
196
1,522
4.862245
0.423469
0.057712
0.054565
0.050367
0.189927
0.150052
0.150052
0.150052
0.150052
0.100735
0
0.012174
0.244415
1,522
47
132
32.382979
0.816522
0.007884
0
0
0
0
0.17395
0.043697
0
0
0
0
0.041667
1
0.041667
false
0.083333
0.125
0
0.208333
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
20eb0a186ef36f16b32ac0c98a703bfa733a0d35
8,002
py
Python
test/test_jarsigner_sign_command.py
fullstaq-labs/venafi-codesigning-gitlab
0799ce7e6b74c8d1836a01b509dc5f50541356b3
[ "Apache-2.0" ]
null
null
null
test/test_jarsigner_sign_command.py
fullstaq-labs/venafi-codesigning-gitlab
0799ce7e6b74c8d1836a01b509dc5f50541356b3
[ "Apache-2.0" ]
1
2021-07-12T09:06:53.000Z
2021-07-12T09:06:53.000Z
test/test_jarsigner_sign_command.py
fullstaq-labs/venafi-codesigning-gitlab
0799ce7e6b74c8d1836a01b509dc5f50541356b3
[ "Apache-2.0" ]
null
null
null
from venafi_codesigning_gitlab_integration.jarsigner_sign_command import JarsignerSignConfig from venafi_codesigning_gitlab_integration.jarsigner_sign_command import JarsignerSignCommand from venafi_codesigning_gitlab_integration import utils import pytest import logging import subprocess import os import re fake_tpp_...
33.481172
97
0.676456
905
8,002
5.816575
0.146961
0.059271
0.051672
0.075228
0.826558
0.809081
0.782865
0.763108
0.763108
0.738792
0
0.010483
0.201325
8,002
238
98
33.621849
0.813175
0
0
0.639344
0
0.005464
0.209823
0.03924
0
0
0
0
0.092896
1
0.087432
false
0.038251
0.043716
0.027322
0.191257
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
20eb50420f20c4e8a8059ec57505d6d0d5ad5fae
1,602
py
Python
GreyNsights/utils.py
kamathhrishi/GreyNSights
9a79b8ed04ccb4a9dd538c425ed6da00ebd1b00f
[ "MIT" ]
19
2021-02-24T12:28:04.000Z
2021-10-06T11:55:46.000Z
GreyNsights/utils.py
kamathhrishi/GreyNSights
9a79b8ed04ccb4a9dd538c425ed6da00ebd1b00f
[ "MIT" ]
2
2021-08-11T01:25:14.000Z
2021-08-11T01:26:32.000Z
GreyNsights/utils.py
kamathhrishi/GreyNSights
9a79b8ed04ccb4a9dd538c425ed6da00ebd1b00f
[ "MIT" ]
null
null
null
# python dependencies import codecs import pickle import struct def pickle_string_to_obj(obj): return pickle.loads(codecs.decode(obj, "base64")) def get_encoded_obj(obj): return codecs.encode(pickle.dumps(obj), "base64").decode() def log_message(msg_type: str, message: str): """The default style of lo...
22.56338
72
0.637328
230
1,602
4.347826
0.391304
0.035
0.024
0
0
0
0
0
0
0
0
0.010682
0.240325
1,602
70
73
22.885714
0.811011
0.244694
0
0.054054
0
0
0.046414
0
0
0
0
0
0
1
0.189189
false
0
0.081081
0.054054
0.459459
0.135135
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20eced0df909101c4f435345f41c4866a1674f9a
138
py
Python
test/resources/inspectors/python/case27_using_requests.py
nihalshetty-boop/hyperstyle
9a6d53cd1ca220d97d296c0087056b5885b26281
[ "Apache-2.0" ]
18
2020-10-05T16:48:11.000Z
2022-03-22T04:15:38.000Z
test/resources/inspectors/python/case27_using_requests.py
nihalshetty-boop/hyperstyle
9a6d53cd1ca220d97d296c0087056b5885b26281
[ "Apache-2.0" ]
60
2020-10-05T17:01:05.000Z
2022-01-27T12:46:14.000Z
test/resources/inspectors/python/case27_using_requests.py
nihalshetty-boop/hyperstyle
9a6d53cd1ca220d97d296c0087056b5885b26281
[ "Apache-2.0" ]
6
2021-02-09T09:31:19.000Z
2021-08-13T07:45:51.000Z
import requests def do_search(bookstore_url, params): return requests.get(url=bookstore_url, params=params)
19.714286
42
0.652174
16
138
5.4375
0.625
0.275862
0.413793
0
0
0
0
0
0
0
0
0
0.275362
138
6
43
23
0.87
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
0.75
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
7
20ed1b39d69f2ba4a229353cc72ed388d06f0047
4,568
py
Python
scripts/location_map_report.py
xperylabhub/iLEAPP
fd1b301bf2094387f51ccdbd10ed233ce9abd687
[ "MIT" ]
null
null
null
scripts/location_map_report.py
xperylabhub/iLEAPP
fd1b301bf2094387f51ccdbd10ed233ce9abd687
[ "MIT" ]
null
null
null
scripts/location_map_report.py
xperylabhub/iLEAPP
fd1b301bf2094387f51ccdbd10ed233ce9abd687
[ "MIT" ]
null
null
null
# coding: utf-8 #Import the necessary Python modules import pandas as pd import folium from folium.plugins import TimestampedGeoJson from shapely.geometry import Point import os from datetime import datetime from branca.element import Template, MacroElement import html from scripts.location_map_constants import iLEAPP_...
35.968504
170
0.613835
526
4,568
5.205323
0.385932
0.028123
0.032871
0.039445
0.14317
0.100804
0.089116
0.027757
0
0
0
0.011601
0.245184
4,568
126
171
36.253968
0.782483
0.029335
0
0
0
0
0.133725
0
0
0
0
0
0
1
0.029703
false
0
0.108911
0.009901
0.168317
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20eec783eef37492901442687717aaffec487075
48
py
Python
onebarangay_psql/statistics/__init__.py
PrynsTag/oneBarangay-PostgreSQL
11d7b97b57603f4c88948905560a22a5314409ce
[ "Apache-2.0" ]
null
null
null
onebarangay_psql/statistics/__init__.py
PrynsTag/oneBarangay-PostgreSQL
11d7b97b57603f4c88948905560a22a5314409ce
[ "Apache-2.0" ]
43
2022-02-07T00:18:35.000Z
2022-03-21T04:42:48.000Z
onebarangay_psql/statistics/__init__.py
PrynsTag/oneBarangay-PostgreSQL
11d7b97b57603f4c88948905560a22a5314409ce
[ "Apache-2.0" ]
null
null
null
"""Default init file for statistics package."""
24
47
0.729167
6
48
5.833333
1
0
0
0
0
0
0
0
0
0
0
0
0.125
48
1
48
48
0.833333
0.854167
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
20eeefc46871bc4a82ccda95a4d09005d4444a71
1,096
py
Python
src/BL/test/test_RandomNumber.py
yukiYamada/ThaGame
4f206303d60b5760452a7eab8700626657f3e39e
[ "MIT" ]
null
null
null
src/BL/test/test_RandomNumber.py
yukiYamada/ThaGame
4f206303d60b5760452a7eab8700626657f3e39e
[ "MIT" ]
null
null
null
src/BL/test/test_RandomNumber.py
yukiYamada/ThaGame
4f206303d60b5760452a7eab8700626657f3e39e
[ "MIT" ]
null
null
null
# third party modules import pytest # user modules from BL_main.RandomNumber import Number, Numbers, InvalidArgumentExceptionOfNumber def test_NumberClass_InvalidException_underNumber(): ''' Test argument. under number. ''' with pytest.raises(InvalidArgumentExceptionOfNumber): Number.create(1) ...
24.355556
82
0.667883
110
1,096
6.563636
0.445455
0.116343
0.074792
0.094183
0.252078
0.182825
0.182825
0
0
0
0
0.02515
0.238139
1,096
45
83
24.355556
0.839521
0.156022
0
0.08
0
0
0
0
0
0
0
0
0.16
1
0.16
false
0
0.08
0
0.24
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20efb6e68d19a66f29b03a03d92401ec1cbcda69
6,185
py
Python
evaluate_ranking.py
aydindemircioglu/radFS
b50b2a78f7c7975751b699b6b74a2761f7fa3501
[ "MIT", "Unlicense" ]
1
2022-02-24T02:16:55.000Z
2022-02-24T02:16:55.000Z
evaluate_ranking.py
aydindemircioglu/radFS
b50b2a78f7c7975751b699b6b74a2761f7fa3501
[ "MIT", "Unlicense" ]
null
null
null
evaluate_ranking.py
aydindemircioglu/radFS
b50b2a78f7c7975751b699b6b74a2761f7fa3501
[ "MIT", "Unlicense" ]
null
null
null
#!/usr/bin/python3 import json import seaborn as sns from matplotlib import cm from matplotlib.colors import ListedColormap, LinearSegmentedColormap import matplotlib.colors as colors from scipy.stats import spearmanr import pylab import scipy.cluster.hierarchy as sch from scipy.stats import pearsonr, friedmanchisqu...
30.46798
114
0.620049
762
6,185
4.950131
0.374016
0.026246
0.021209
0.019088
0.093319
0.059385
0.052492
0.052492
0.027572
0.027572
0
0.024194
0.258205
6,185
202
115
30.618812
0.797951
0.058205
0
0.120805
0
0
0.094197
0.014293
0
0
0
0
0
1
0.020134
false
0.013423
0.33557
0
0.362416
0.020134
0
0
0
null
0
0
0
0
0
0
0
0
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
20f09232bbd39f5341bb954d6c3dd267beb0e85a
10,058
py
Python
venv/lib/python3.6/site-packages/ansible/module_utils/facts/hardware/aix.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/ansible/module_utils/facts/hardware/aix.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
ansible/ansible/module_utils/facts/hardware/aix.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
# This file is part of Ansible # # Ansible 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 option) any later version. # # Ansible is distributed in the hope that ...
39.754941
137
0.509644
1,175
10,058
4.189787
0.236596
0.036563
0.031688
0.039001
0.235222
0.179159
0.114564
0.111721
0.085111
0.05586
0
0.031325
0.377908
10,058
252
138
39.912698
0.755474
0.185922
0
0.067073
0
0.006098
0.097004
0.012984
0
0
0
0
0
1
0.042683
false
0
0.02439
0
0.140244
0.006098
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20f0b9c08e120b15c6e37ccd433da0ddfa26dd09
1,148
py
Python
servicedirectory/src/sd-api/classes/urls.py
ealogar/servicedirectory
fb4f4bfa8b499b93c03af589ef2f34c08a830b17
[ "Apache-2.0" ]
null
null
null
servicedirectory/src/sd-api/classes/urls.py
ealogar/servicedirectory
fb4f4bfa8b499b93c03af589ef2f34c08a830b17
[ "Apache-2.0" ]
null
null
null
servicedirectory/src/sd-api/classes/urls.py
ealogar/servicedirectory
fb4f4bfa8b499b93c03af589ef2f34c08a830b17
[ "Apache-2.0" ]
null
null
null
''' (c) Copyright 2013 Telefonica, I+D. Printed in Spain (Europe). All Rights Reserved. The copyright to the software program(s) is property of Telefonica I+D. The program(s) may be used and or copied only with the express written consent of Telefonica I+D or in accordance with the terms and conditions stipulated in t...
42.518519
106
0.743031
150
1,148
5.546667
0.48
0.064904
0.043269
0.036058
0.223558
0.223558
0.104567
0.060096
0
0
0
0.00398
0.124564
1,148
26
107
44.153846
0.823881
0.334495
0
0
0
0
0.201058
0.160053
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20f40bb6774c781a86ff7385108395d2e004318d
9,669
py
Python
lib/kb_RDP_Classifier/kb_RDP_ClassifierImpl.py
kbaseapps/kb_RDP_Classifier
7ac139db66b0291c847084e0633cb311befd05e1
[ "MIT" ]
null
null
null
lib/kb_RDP_Classifier/kb_RDP_ClassifierImpl.py
kbaseapps/kb_RDP_Classifier
7ac139db66b0291c847084e0633cb311befd05e1
[ "MIT" ]
null
null
null
lib/kb_RDP_Classifier/kb_RDP_ClassifierImpl.py
kbaseapps/kb_RDP_Classifier
7ac139db66b0291c847084e0633cb311befd05e1
[ "MIT" ]
1
2021-09-24T18:18:40.000Z
2021-09-24T18:18:40.000Z
# -*- coding: utf-8 -*- #BEGIN_HEADER import logging import os import uuid import shutil from installed_clients.WorkspaceClient import Workspace from installed_clients.DataFileUtilClient import DataFileUtil from installed_clients.KBaseReportClient import KBaseReport from installed_clients.GenericsAPIClient import Gene...
28.862687
121
0.562416
1,078
9,669
4.820037
0.295918
0.025597
0.032717
0.017513
0.081601
0.068514
0.029253
0.010393
0
0
0
0.006351
0.332299
9,669
334
122
28.949102
0.793371
0.170338
0
0.090909
0
0
0.144652
0.02597
0
0
0
0
0.006494
1
0.019481
false
0.006494
0.103896
0
0.162338
0.006494
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20f473683e772c87b537f146508f569bdfe393ff
4,189
py
Python
image2text.py
minhpvwh/pytesseract-vie
4159941a0f538845c535d090907cf230946cb4fe
[ "Leptonica", "BSD-2-Clause" ]
null
null
null
image2text.py
minhpvwh/pytesseract-vie
4159941a0f538845c535d090907cf230946cb4fe
[ "Leptonica", "BSD-2-Clause" ]
null
null
null
image2text.py
minhpvwh/pytesseract-vie
4159941a0f538845c535d090907cf230946cb4fe
[ "Leptonica", "BSD-2-Clause" ]
null
null
null
import os import cv2 import glob import tqdm import argparse from skimage.filters import threshold_local import pytesseract import numpy as np import random def check_exist(path): try: if not os.path.exists(path): os.mkdir(path) except Exception: raise ("please check your folder again") pass def median_fil...
32.726563
108
0.610169
564
4,189
4.35461
0.297872
0.029316
0.027687
0.020765
0.168567
0.133958
0.087541
0.087541
0.061075
0.061075
0
0.028986
0.209358
4,189
127
109
32.984252
0.71256
0.170446
0
0.116279
0
0
0.081007
0.01426
0
0
0
0
0
1
0.034884
false
0.011628
0.104651
0
0.162791
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20f4974dbfb9b7e44a6eecfec1209588daffaa28
762
py
Python
__main__.py
JeffreyTsang/Brickbreaker
37f0d143e9f937027fc281aef1511d0e9c804b8b
[ "MIT" ]
null
null
null
__main__.py
JeffreyTsang/Brickbreaker
37f0d143e9f937027fc281aef1511d0e9c804b8b
[ "MIT" ]
null
null
null
__main__.py
JeffreyTsang/Brickbreaker
37f0d143e9f937027fc281aef1511d0e9c804b8b
[ "MIT" ]
null
null
null
# __main__.py # Walker M. White (wmw2) # November 12, 2012 """__main__ module for Breakout This is the module with the application code. Make sure that this module is in a folder with the following files: breakout.py (the primary controller class) model.py (the model classes) game2d.py (the view ...
29.307692
83
0.711286
111
762
4.720721
0.594595
0.028626
0
0
0
0
0
0
0
0
0
0.013559
0.225722
762
25
84
30.48
0.874576
0.809711
0
0
0
0
0.058824
0
0
0
0
0
0
1
0
true
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
20f4bb00c3e32da2d3d3c84f05ad3e299944fc74
394
py
Python
tests/__init__.py
syamasakigoodrx/astronomer
0f1ca98bc04c46abe750bd9668aa75330601d300
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
syamasakigoodrx/astronomer
0f1ca98bc04c46abe750bd9668aa75330601d300
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
syamasakigoodrx/astronomer
0f1ca98bc04c46abe750bd9668aa75330601d300
[ "Apache-2.0" ]
null
null
null
from pathlib import Path import git # The top-level path of this repository git_repo = git.Repo(__file__, search_parent_directories=True) git_root_dir = Path(git_repo.git.rev_parse("--show-toplevel")) # This should match the major.minor version list in .circleci/generate_circleci_config.py # Patch version should alwa...
35.818182
89
0.763959
68
394
4.205882
0.676471
0.073427
0.06993
0
0
0
0
0
0
0
0
0.051576
0.114213
394
10
90
39.4
0.767908
0.401015
0
0
0
0
0.168103
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4545c91d0cdf7bdd633b1682893229895b5c4a88
2,808
py
Python
mrkt/framework/platform/AWS.py
Tefx/Meerkat
ad9d4d3973a990406b976998dce9727b40139650
[ "MIT" ]
null
null
null
mrkt/framework/platform/AWS.py
Tefx/Meerkat
ad9d4d3973a990406b976998dce9727b40139650
[ "MIT" ]
null
null
null
mrkt/framework/platform/AWS.py
Tefx/Meerkat
ad9d4d3973a990406b976998dce9727b40139650
[ "MIT" ]
null
null
null
from ...common.utils import patch; patch() import boto3 import urllib.request from .PaaS import PaaS from ..service import docker from ...common.consts import * COREOS_AMI_URL = "https://stable.release.core-os.net/amd64-usr/current/coreos_production_ami_hvm_{region}.txt" COREOS_USERNAME = "core" VM_TAG = [{"Resource...
37.44
110
0.535613
290
2,808
4.951724
0.351724
0.02507
0.027159
0.022284
0
0
0
0
0
0
0
0.007151
0.352564
2,808
74
111
37.945946
0.782728
0
0
0
0
0.016129
0.09188
0
0
0
0
0
0
1
0.112903
false
0
0.096774
0.032258
0.306452
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
45485b7021d68a5f5cea1ac732317f7615814dbe
3,099
py
Python
csrweb/api/resources.py
edbeard/csrweb
aecf8b6199aa6ce04a89c549ea2b970369f750e1
[ "MIT" ]
null
null
null
csrweb/api/resources.py
edbeard/csrweb
aecf8b6199aa6ce04a89c549ea2b970369f750e1
[ "MIT" ]
null
null
null
csrweb/api/resources.py
edbeard/csrweb
aecf8b6199aa6ce04a89c549ea2b970369f750e1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ csrweb.api.resources ~~~~~~~~~~~~~~~~~~~~ API resources. :copyright: Copyright 2019 by Ed Beard. :license: MIT, see LICENSE file for more details. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode...
32.621053
133
0.700871
413
3,099
5.089588
0.363196
0.03568
0.030447
0.022835
0.151284
0.085633
0.055186
0.055186
0.055186
0.055186
0
0.011137
0.159729
3,099
94
134
32.968085
0.796083
0.137786
0
0
0
0
0.163134
0.015897
0
0
0
0
0
1
0.033333
false
0
0.25
0
0.35
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
0
0
0
0
0
0
0
0
1
0
454b01b109820104ab60f6103cb4df1d537ab584
1,084
py
Python
tests/test_signer.py
led8rgb/wmsigner
fdf888220e97b260639ebc4c5c86ae144939305f
[ "MIT" ]
5
2017-05-28T03:13:17.000Z
2019-12-17T11:34:16.000Z
tests/test_signer.py
led8rgb/wmsigner
fdf888220e97b260639ebc4c5c86ae144939305f
[ "MIT" ]
2
2016-01-03T03:22:27.000Z
2018-11-29T19:55:49.000Z
tests/test_signer.py
led8rgb/wmsigner
fdf888220e97b260639ebc4c5c86ae144939305f
[ "MIT" ]
3
2016-08-28T11:39:32.000Z
2019-09-17T10:47:17.000Z
import unittest from wmsigner import Signer # Для запуска тестов эти данные должны быть заполнены signer = Signer(wmid='000000000000', keys='/home/egor/000000000000.kwm', password='**********') class TestWMSigner(unittest.TestCase): def test_equal(self): """ Получ...
26.439024
78
0.606089
102
1,084
6.333333
0.705882
0.032508
0.065015
0
0
0
0
0
0
0
0
0.159898
0.273063
1,084
40
79
27.1
0.659898
0.139299
0
0
0
0.052632
0.288528
0.244496
0
0
0
0
0.157895
1
0.157895
false
0.052632
0.105263
0
0.315789
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
454b47b3f84be1c2c230d352ee328c9b29ca854a
676
py
Python
test/test.py
jinjunnn/cloud1
629016594b61cd7404da45f7c54e1d9c1bc3b69d
[ "MIT" ]
null
null
null
test/test.py
jinjunnn/cloud1
629016594b61cd7404da45f7c54e1d9c1bc3b69d
[ "MIT" ]
null
null
null
test/test.py
jinjunnn/cloud1
629016594b61cd7404da45f7c54e1d9c1bc3b69d
[ "MIT" ]
null
null
null
import os, sys import csv import leancloud from leancloud import cloud import requests import re leancloud.init("ELXEVn8IoKWzNVU52gmYKnn6-gzGzoHsz", master_key="kYWSFq2AwQyBhujn5oIBo64n") data_info = {'id': 2017718538, 'user_name': 'js999986', 'first_name': '一手引流工作室', 'last_name': None, 'userName': None, 'url': None,...
35.578947
200
0.720414
103
676
4.572816
0.582524
0.084926
0
0
0
0
0
0
0
0
0
0.043333
0.112426
676
18
201
37.555556
0.74
0.236686
0
0
0
0.083333
0.341131
0.165692
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
454c3029fdf43b8fecffd75acd0e4868c4a676d6
273
py
Python
src/submarine/submarine.py
mokshasoul/aoc-2021-python
6e6f24659c45f32eab5302075c3c2c0a0a876a60
[ "MIT" ]
null
null
null
src/submarine/submarine.py
mokshasoul/aoc-2021-python
6e6f24659c45f32eab5302075c3c2c0a0a876a60
[ "MIT" ]
null
null
null
src/submarine/submarine.py
mokshasoul/aoc-2021-python
6e6f24659c45f32eab5302075c3c2c0a0a876a60
[ "MIT" ]
null
null
null
import re import numpy as np class Submarine: def __init__(self) -> None: self.depth = 0 self.aim_depth = 0 self.gamma_rate = 0 self.epsilon_rate = 0 self.oxygen_generator_rate = 0 self.carbon_dioxide_scrubber = 0
21
40
0.608059
37
273
4.189189
0.594595
0.16129
0.174194
0
0
0
0
0
0
0
0
0.032609
0.326007
273
13
41
21
0.809783
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
454ca970a91a509b88675311e18e5508a0f457e1
1,729
py
Python
python/spark/ctr_logistic.py
zzhou9/google-searchAds
6fed04a624cc637f472f866e91e465ebe11102d3
[ "Apache-2.0" ]
null
null
null
python/spark/ctr_logistic.py
zzhou9/google-searchAds
6fed04a624cc637f472f866e91e465ebe11102d3
[ "Apache-2.0" ]
null
null
null
python/spark/ctr_logistic.py
zzhou9/google-searchAds
6fed04a624cc637f472f866e91e465ebe11102d3
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from pyspark import SparkContext from pyspark.mllib.classification import LogisticRegressionWithLBFGS, LogisticRegressionModel from pyspark.mllib.regression import LabeledPoint from pyspark.mllib.util import MLUtils #(' 101356, 101356, 32714, 32714, 5963, 10594, 21240, 34825, 5963...
36.787234
99
0.685367
198
1,729
5.888889
0.494949
0.037736
0.041166
0.042882
0.049743
0
0
0
0
0
0
0.049251
0.189705
1,729
46
100
37.586957
0.783012
0.1417
0
0
0
0
0.125424
0.096949
0
0
0
0
0
0
null
null
0
0.172414
null
null
0.137931
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
45502c36194120822d47a489bb35792d7a4b090d
754
py
Python
matplotlib/axessetting.py
mk43/python-practice-project
4260456c1006c1f3e2a6f00bcb2639d6e8a71e5e
[ "Apache-2.0" ]
7
2018-05-29T07:14:22.000Z
2020-03-05T06:45:04.000Z
matplotlib/axessetting.py
mk43/python-practice-project
4260456c1006c1f3e2a6f00bcb2639d6e8a71e5e
[ "Apache-2.0" ]
null
null
null
matplotlib/axessetting.py
mk43/python-practice-project
4260456c1006c1f3e2a6f00bcb2639d6e8a71e5e
[ "Apache-2.0" ]
5
2018-11-08T04:03:48.000Z
2020-03-05T06:45:06.000Z
import matplotlib.pyplot as plt import numpy as np x = np.linspace(-10, 10, 40) y1 = 10 * x + 50 y2 = x**2 plt.figure() plt.plot(x, y1, 'b-') plt.plot(x, y2, 'b--') plt.xlim((-20, 20)) plt.ylim((-60, 160)) plt.xlabel('I am x') plt.ylabel('I am y') plt.xticks(np.linspace(-20, 20, 5)) plt.yticks([0, 50, 100], [r'$bad$...
24.322581
60
0.690981
119
754
4.294118
0.436975
0.156556
0.031311
0.101761
0.227006
0
0
0
0
0
0
0.053857
0.088859
754
31
61
24.322581
0.689956
0
0
0
0
0
0.104636
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4552844d1989cd409ab97253e0c1d21d415c08b6
1,943
py
Python
Xgam/__init__.py
aurelio-amerio/Xgam
fb65ed009bb35984eadd0c576aa385ca3702c8ce
[ "MIT" ]
1
2021-06-14T20:27:30.000Z
2021-06-14T20:27:30.000Z
Xgam/__init__.py
aurelio-amerio/Xgam
fb65ed009bb35984eadd0c576aa385ca3702c8ce
[ "MIT" ]
null
null
null
Xgam/__init__.py
aurelio-amerio/Xgam
fb65ed009bb35984eadd0c576aa385ca3702c8ce
[ "MIT" ]
1
2021-06-14T20:27:55.000Z
2021-06-14T20:27:55.000Z
#!/usr/bin/env python # # # # Autor: Michela Negro, GSFC/CRESST/UMBC . # # On behalf of the Fermi-LAT Collaboration. ...
36.660377
80
0.507463
230
1,943
4.086957
0.452174
0.042553
0.053191
0.058511
0.188298
0.044681
0
0
0
0
0
0.004747
0.34946
1,943
52
81
37.365385
0.738924
0.468863
0
0.083333
0
0
0.224299
0.03271
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4554d96aff6eab12cf01ea18c66f303bf1e65edd
3,008
py
Python
tests/test_clouds.py
cc-daveloper/mist.io_mist.api
d3f9b8d478f23bf811c0bc6d3078e512aa975f86
[ "Apache-2.0" ]
1
2019-04-10T11:37:25.000Z
2019-04-10T11:37:25.000Z
tests/test_clouds.py
d-mo/mist.api
d3f9b8d478f23bf811c0bc6d3078e512aa975f86
[ "Apache-2.0" ]
3
2021-04-07T23:15:17.000Z
2021-09-23T23:21:45.000Z
tests/test_clouds.py
cc-daveloper/mist.io_mist.api
d3f9b8d478f23bf811c0bc6d3078e512aa975f86
[ "Apache-2.0" ]
null
null
null
"""Tests Cloud models and Controllers""" import os import uuid import json from deepdiff import DeepDiff from pprint import pprint def unicode_to_str(data): if isinstance(data, dict): return {unicode_to_str(key): unicode_to_str(value) for key, value in data.iteritems()} elif isinstanc...
29.782178
78
0.628657
391
3,008
4.654731
0.248082
0.048352
0.052747
0.037363
0.28022
0.206593
0.191758
0.191758
0.191758
0.124176
0
0.001354
0.263298
3,008
100
79
30.08
0.819946
0.019947
0
0.217391
0
0
0.062387
0
0
0
0
0
0.028986
0
null
null
0
0.072464
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
4555138ee889d6a8eb7274ba38acfdb8b6a01114
36,944
py
Python
adapt/jedparse/jedParser.py
aeschylus/Adapt
3a769e621c7cdb9ca201bb1a75484fdeb84105ea
[ "MIT" ]
null
null
null
adapt/jedparse/jedParser.py
aeschylus/Adapt
3a769e621c7cdb9ca201bb1a75484fdeb84105ea
[ "MIT" ]
null
null
null
adapt/jedparse/jedParser.py
aeschylus/Adapt
3a769e621c7cdb9ca201bb1a75484fdeb84105ea
[ "MIT" ]
1
2021-01-20T21:26:10.000Z
2021-01-20T21:26:10.000Z
# $ANTLR 3.1 jed.g 2014-02-17 18:49:15 import sys from antlr3 import * from antlr3.compat import set, frozenset import os import sys from bitarray import bitarray # for convenience in actions HIDDEN = BaseRecognizer.HIDDEN # token types F=9 STAR=19 OTHER=5 C=18 L=11 N=12 J=10 V=15 ONE=7 Q=14 P=13 EOF=-1 ...
27.570149
151
0.481242
4,144
36,944
4.105454
0.087838
0.05343
0.055017
0.041263
0.626932
0.519368
0.445365
0.391054
0.342444
0.305355
0
0.074956
0.418958
36,944
1,339
152
27.590739
0.7176
0.138561
0
0.451524
0
0.004155
0.014954
0.006228
0
0
0
0
0
0
null
null
0.083102
0.009695
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
1
0
0
0
0
0
2
4555aaa5efb8e9633d6c3233732fefd9345316e0
41
py
Python
Python/Tests/TestData/FormattingTests/linereduction.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
null
null
null
Python/Tests/TestData/FormattingTests/linereduction.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
null
null
null
Python/Tests/TestData/FormattingTests/linereduction.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
null
null
null
(a + b + c + d+ e+ f )
4.555556
8
0.146341
6
41
1
1
0
0
0
0
0
0
0
0
0
0
0
0.682927
41
8
9
5.125
0.461538
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
7
4555f8bdea823e3c6bf72f128d96fb3a61fb035f
6,542
py
Python
day_10.py
JeffHanna/Advent_of_Code_2018
a47f7c5dc1ef28df41a26a21fc16626cb2a9c922
[ "MIT" ]
null
null
null
day_10.py
JeffHanna/Advent_of_Code_2018
a47f7c5dc1ef28df41a26a21fc16626cb2a9c922
[ "MIT" ]
null
null
null
day_10.py
JeffHanna/Advent_of_Code_2018
a47f7c5dc1ef28df41a26a21fc16626cb2a9c922
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ --- Day 10: The Stars Align --- It's no use; your navigation system simply isn't capable of providing walking directions in the arctic circle, and certainly not in 1018. The Elves suggest an alternative. In times like these, North Pole rescue operations will arrange points of light in the s...
32.068627
419
0.486854
790
6,542
3.943038
0.298734
0.046228
0.019262
0.034671
0.097271
0
0
0
0
0
0
0.030822
0.151941
6,542
203
420
32.226601
0.530642
0.752369
0
0
0
0
0.081316
0
0
0
0
0
0
1
0.045455
false
0
0.090909
0
0.181818
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4556270ed64165ee50af5ad0e7a8aeb1bf232a5f
302
py
Python
torrents/urls.py
kevincornish/Genesis
6bc424fe97be954776dec2bdc4c7d214992cc3e2
[ "MIT" ]
null
null
null
torrents/urls.py
kevincornish/Genesis
6bc424fe97be954776dec2bdc4c7d214992cc3e2
[ "MIT" ]
null
null
null
torrents/urls.py
kevincornish/Genesis
6bc424fe97be954776dec2bdc4c7d214992cc3e2
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from django.contrib import admin from torrents import views from django.conf import settings from django.conf.urls.static import static urlpatterns = [ url(r'^upload/$', views.upload, name='upload'), url(r'^browse/$', views.browse, name='browse'), ]
25.166667
51
0.735099
43
302
5.162791
0.418605
0.18018
0.189189
0.162162
0
0
0
0
0
0
0
0
0.135762
302
12
52
25.166667
0.850575
0
0
0
0
0
0.09901
0
0
0
0
0
0
1
0
false
0
0.555556
0
0.555556
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
45563edf7177293ae810f1142fc2457d7d0c9f98
170,658
py
Python
TACT.py
CFARS/TACT
1b2bbf1f9d0a45cff232ec447286419faac66b58
[ "BSD-3-Clause" ]
1
2022-03-23T11:50:53.000Z
2022-03-23T11:50:53.000Z
TACT.py
CFARS/TACT
1b2bbf1f9d0a45cff232ec447286419faac66b58
[ "BSD-3-Clause" ]
4
2021-12-18T04:01:41.000Z
2022-03-10T16:13:18.000Z
TACT.py
CFARS/TACT
1b2bbf1f9d0a45cff232ec447286419faac66b58
[ "BSD-3-Clause" ]
null
null
null
""" This is the main script to analyze projects without an NDA in place. Authors: Nikhil Kondabala, Alexandra Arntsen, Andrew Black, Barrett Goudeau, Nigel Swytink-Binnema, Nicolas Jolin Updated: 7/01/2021 Example command line execution: python TACT.py -in /Users/aearntsen/cfarsMASTER/CFARSPhase3/test/518Tower...
55.211258
372
0.607127
20,203
170,658
4.846854
0.054447
0.015523
0.033701
0.020711
0.733673
0.688953
0.636186
0.602935
0.569541
0.546042
0
0.015021
0.282993
170,658
3,090
373
55.229126
0.785205
0.12818
0
0.488698
0
0.000904
0.135432
0.010268
0
0
0
0
0
1
0.015823
false
0.027577
0.026221
0.000452
0.057414
0.055154
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4557176f3d49e4358253305342218dd4750b9adc
1,343
py
Python
FileStorage/language/LanguagePack.py
Thiefxt/FileStorage
db2882b2ea861f4412cb453edef6439501b13705
[ "MIT" ]
1
2020-07-15T10:02:40.000Z
2020-07-15T10:02:40.000Z
FileStorage/language/LanguagePack.py
Thiefxt/FileStorage
db2882b2ea861f4412cb453edef6439501b13705
[ "MIT" ]
null
null
null
FileStorage/language/LanguagePack.py
Thiefxt/FileStorage
db2882b2ea861f4412cb453edef6439501b13705
[ "MIT" ]
null
null
null
""" @Author : xiaotao @Email : 18773993654@163.com @Lost modifid : 2020/4/24 10:18 @Filename : LanguagePack.py @Description : @Software : PyCharm """ class RET: """ 语言类包 """ OK = "200" DBERR = "501" NODATA = "462" DATAEXIST = "433" DATAERR = "499" REQERR = "521" ...
19.463768
52
0.531646
155
1,343
4.522581
0.567742
0.049929
0.042796
0
0
0
0
0
0
0
0
0.071277
0.300074
1,343
68
53
19.75
0.674468
0.204021
0
0.046512
0
0
0.11943
0
0
0
0
0
0
1
0.046512
false
0
0
0
0.488372
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
45582f74d0d0ee28b2acea145b7197bbf28904ac
1,414
py
Python
app/core/tests/test_model.py
rahulsudhakar10/receipe-api-project
29f205607905bbee347ea9ca505751f4d4cd508a
[ "MIT" ]
null
null
null
app/core/tests/test_model.py
rahulsudhakar10/receipe-api-project
29f205607905bbee347ea9ca505751f4d4cd508a
[ "MIT" ]
null
null
null
app/core/tests/test_model.py
rahulsudhakar10/receipe-api-project
29f205607905bbee347ea9ca505751f4d4cd508a
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from core import models def sample_user(email='test@londonappdev.com', password='testpass'): """Create a sample user""" return get_user_model().objects.create_user(email, password) class ModelTest(TestCase): def test_user_wi...
28.28
68
0.642857
171
1,414
5.093567
0.274854
0.04822
0.082664
0.10907
0.355913
0.243398
0.210103
0.171068
0.117107
0.117107
0
0.018815
0.248232
1,414
49
69
28.857143
0.800564
0.014144
0
0.166667
0
0
0.071326
0.01513
0
0
0
0
0.194444
1
0.166667
false
0.138889
0.083333
0
0.305556
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
4558b0a8efff5ece908e59c6b9303248612636c0
2,427
py
Python
validate_binary_tree/solution_2.py
nunezpaul/practice_problems
22449c014046b702a4284bb66548f3a70c265622
[ "MIT" ]
null
null
null
validate_binary_tree/solution_2.py
nunezpaul/practice_problems
22449c014046b702a4284bb66548f3a70c265622
[ "MIT" ]
null
null
null
validate_binary_tree/solution_2.py
nunezpaul/practice_problems
22449c014046b702a4284bb66548f3a70c265622
[ "MIT" ]
null
null
null
class TreeNode(object): def __str__(self): left = self.left.val if self.left else 'N' right = self.right.val if self.right else 'N' return "{left} {val} {right}".format(val=self.val, left=left, right=right) def __init__(self, val): self.val = val self.right = None ...
22.682243
82
0.651834
337
2,427
4.468843
0.160237
0.113546
0.060425
0.045153
0.555113
0.439575
0.409031
0.363878
0.363878
0.363878
0
0.025405
0.237742
2,427
107
83
22.682243
0.788649
0.011949
0
0.369863
0
0
0.012516
0
0
0
0
0
0.054795
1
0.123288
false
0
0
0
0.246575
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
455a1e9bca84b3eaa5bb4b8f7d096c8385e30f66
307
py
Python
Chapter 11/B05385_11_xx_runping.py
jef-n/Mastering-QGIS-Second-Edition
96ae03293dd8d54c9ef916962580b69758cf8287
[ "MIT" ]
18
2016-11-10T06:18:45.000Z
2022-02-27T14:49:00.000Z
Chapter 11/B05385_11_xx_runping.py
jef-n/Mastering-QGIS-Second-Edition
96ae03293dd8d54c9ef916962580b69758cf8287
[ "MIT" ]
null
null
null
Chapter 11/B05385_11_xx_runping.py
jef-n/Mastering-QGIS-Second-Edition
96ae03293dd8d54c9ef916962580b69758cf8287
[ "MIT" ]
13
2017-10-24T21:21:51.000Z
2020-06-27T15:41:54.000Z
import subprocess import time proc = subprocess.Popen( ["ping", "-c", "10", "localhost"], stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE) counter = 0 for line in iter(proc.stdout.readline, ''): print line progress.setPercentage( counter ) counter +=10
18.058824
43
0.667752
36
307
5.694444
0.638889
0.204878
0
0
0
0
0
0
0
0
0
0.020325
0.198697
307
16
44
19.1875
0.813008
0
0
0
0
0
0.055738
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.083333
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
1
0
0
0
0
0
0
0
0
2
455a97ef8134576551c4ea049b3b9d369f2092fc
630
py
Python
for_short.py
deepakxyz/get-earth
eb4e594d499452b711966a819237e4d6160d2a17
[ "MIT" ]
2
2021-05-21T07:03:14.000Z
2021-08-05T14:35:37.000Z
for_short.py
deepakxyz/get-earth
eb4e594d499452b711966a819237e4d6160d2a17
[ "MIT" ]
null
null
null
for_short.py
deepakxyz/get-earth
eb4e594d499452b711966a819237e4d6160d2a17
[ "MIT" ]
null
null
null
from get_earth import GetEarth # 835 , 1416 # p11 = (835, 1416) # p12 = (885,1516) # p1 = (886,1416) # p2 = (935,1516) # p1 = (885, 1415) # p2 = (890, 1420) # p1 = (890,1415) # p2 = (895,1420) # p1 = (835, 1416) # p2 = (885,1516) # start where you end it # p1 = (885, 1416) # p2 = (935,1516) # p1 = (835,1516) # ...
14.318182
43
0.555556
105
630
3.304762
0.390476
0.069164
0.051873
0.074928
0.086455
0
0
0
0
0
0
0.402439
0.219048
630
44
44
14.318182
0.302846
0.636508
0
0
0
0
0.171569
0.171569
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
455c1d1f7a5c452b8ffe6f08ac4dbcdcc3e74500
562
py
Python
algo/lc.118.py
cdluminate/MyNotes
cf28f2a3fa72723153147e21fed5e7b598baf44f
[ "CC0-1.0" ]
null
null
null
algo/lc.118.py
cdluminate/MyNotes
cf28f2a3fa72723153147e21fed5e7b598baf44f
[ "CC0-1.0" ]
null
null
null
algo/lc.118.py
cdluminate/MyNotes
cf28f2a3fa72723153147e21fed5e7b598baf44f
[ "CC0-1.0" ]
null
null
null
class Solution(object): def generate(self, numRows): """ :type numRows: int :rtype: List[List[int]] """ # first pass: empty triangle tria = [ [0 for j in range(i+1)] for i in range(numRows) ] print(tria) # second pass: fill in value...
28.1
60
0.451957
74
562
3.432432
0.432432
0.031496
0.047244
0.086614
0
0
0
0
0
0
0
0.03681
0.419929
562
19
61
29.578947
0.742331
0.174377
0
0
1
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.230769
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
455cfcd1a4533c63cce20863058bc3230fd98394
2,076
py
Python
aoc_cqkh42/year_2020/day_12.py
cqkh42/advent-of-code
bcf31cf8973a5b6d67492c412dce10df742e04d1
[ "MIT" ]
null
null
null
aoc_cqkh42/year_2020/day_12.py
cqkh42/advent-of-code
bcf31cf8973a5b6d67492c412dce10df742e04d1
[ "MIT" ]
null
null
null
aoc_cqkh42/year_2020/day_12.py
cqkh42/advent-of-code
bcf31cf8973a5b6d67492c412dce10df742e04d1
[ "MIT" ]
null
null
null
""" Solutions for day 12 of 2020's Advent of Code """ from typing import Tuple def _rotate_right(n, e) -> Tuple[int, int]: return -e, n def _rotate_left(n, e) -> Tuple[int, int]: return e, -n def part_a(data) -> int: """ Solution for part a Parameters ---------- data: str Return...
21.625
65
0.461464
255
2,076
3.627451
0.207843
0.108108
0.138378
0.073514
0.765405
0.568649
0.456216
0.456216
0.456216
0.404324
0
0.021395
0.3921
2,076
95
66
21.852632
0.711569
0.100674
0
0.551724
0
0
0.012936
0
0
0
0
0
0
1
0.068966
false
0
0.017241
0.034483
0.155172
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
455d6ce36a65cf0610f2586646f75e04d7e70b2f
138
py
Python
test.py
loremcookie/_logging_module
c24f962ad321b8b2d7ac362e65dbd6d259686ebc
[ "MIT" ]
null
null
null
test.py
loremcookie/_logging_module
c24f962ad321b8b2d7ac362e65dbd6d259686ebc
[ "MIT" ]
null
null
null
test.py
loremcookie/_logging_module
c24f962ad321b8b2d7ac362e65dbd6d259686ebc
[ "MIT" ]
null
null
null
import _logging as logging logger = logging.logging() logger.DEBUG('TEST') logger.ERROR('TEST') logger.INFO('TEST') logger.WARNING('TEST')
23
26
0.753623
19
138
5.421053
0.473684
0.291262
0
0
0
0
0
0
0
0
0
0
0.072464
138
6
27
23
0.804688
0
0
0
0
0
0.115108
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
455db22f99db07331fddab80325507e7476dc805
3,786
py
Python
src/main/resources/python/stack.py
VAlgoLang/ManimDSLCompiler
87020d135fa7360aaeccf7e2b9a453f6ffb0fb33
[ "BSD-3-Clause" ]
19
2020-11-05T13:55:45.000Z
2021-01-08T13:19:40.000Z
src/main/resources/python/stack.py
VAlgoLang/ManimDSLCompiler
87020d135fa7360aaeccf7e2b9a453f6ffb0fb33
[ "BSD-3-Clause" ]
29
2020-10-13T10:29:21.000Z
2021-01-10T18:34:06.000Z
src/main/resources/python/stack.py
VAlgoLang/ManimDSLCompiler
87020d135fa7360aaeccf7e2b9a453f6ffb0fb33
[ "BSD-3-Clause" ]
6
2021-03-20T07:04:11.000Z
2022-03-22T02:39:03.000Z
class Stack(DataStructure, ABC): def __init__(self, ul, ur, ll, lr, aligned_edge, color=WHITE, text_color=WHITE, text_weight=NORMAL, font="Times New Roman"): super().__init__(ul, ur, ll, lr, aligned_edge, color, text_color, text_weight, font) self.empty = None def create_init(s...
46.740741
120
0.626519
513
3,786
4.423002
0.192982
0.040106
0.033936
0.019392
0.379022
0.304099
0.304099
0.285148
0.285148
0.227413
0
0.014376
0.246698
3,786
80
121
47.325
0.781206
0.011094
0
0.169014
0
0
0.016301
0
0
0
0
0
0
1
0.112676
false
0
0
0.014085
0.239437
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
455ecf77b284ae23c05aaa297b5a0ed55da0477f
1,519
py
Python
notebooks_for_development/phase_fold_bh_peg.py
mwanakijiji/rrlfe2
0637b348b8d3e54ff34c56caa8b4c6fdac1c699e
[ "MIT" ]
null
null
null
notebooks_for_development/phase_fold_bh_peg.py
mwanakijiji/rrlfe2
0637b348b8d3e54ff34c56caa8b4c6fdac1c699e
[ "MIT" ]
null
null
null
notebooks_for_development/phase_fold_bh_peg.py
mwanakijiji/rrlfe2
0637b348b8d3e54ff34c56caa8b4c6fdac1c699e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # Reads in photometry from different sources, normalizes them, and puts them # onto a BJD time scale # Created 2021 Dec. 28 by E.S. import numpy as np import pandas as pd from astropy.time import Time import matplotlib.pyplot as plt from sklearn.preprocessing import MinMaxScaler...
33.021739
120
0.75181
251
1,519
4.290837
0.474104
0.132776
0.120706
0.059424
0.181987
0.057567
0.057567
0
0
0
0
0.021545
0.113891
1,519
45
121
33.755556
0.778603
0.20079
0
0
0
0
0.217789
0.088944
0
0
0
0
0
1
0
false
0
0.217391
0
0.217391
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
455edc273b8a123c3adfc56630705426d3b15ce0
356
py
Python
djelectionguard/migrations/0010_auto_20210308_0939.py
Joneswn/Baloti
c499666dd9e2553fac88130dea2b6e9df8278234
[ "MIT" ]
1
2022-02-24T17:30:53.000Z
2022-02-24T17:30:53.000Z
djelectionguard/migrations/0010_auto_20210308_0939.py
Joneswn/Baloti
c499666dd9e2553fac88130dea2b6e9df8278234
[ "MIT" ]
null
null
null
djelectionguard/migrations/0010_auto_20210308_0939.py
Joneswn/Baloti
c499666dd9e2553fac88130dea2b6e9df8278234
[ "MIT" ]
2
2021-10-06T11:52:41.000Z
2022-01-20T11:07:27.000Z
# Generated by Django 3.1.7 on 2021-03-08 09:39 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('djelectionguard', '0009_decentralized_default_false'), ] operations = [ migrations.RemoveField( model_name='contest', name='...
19.777778
64
0.623596
36
356
6.027778
0.861111
0
0
0
0
0
0
0
0
0
0
0.073359
0.272472
356
17
65
20.941176
0.764479
0.126404
0
0
1
0
0.226537
0.10356
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
456020c6f80bf546826faf9d3db7db5ef4399eed
4,012
py
Python
history/predict.py
Snipa22/pytrader
5a730435332a159e68ba13ec01b4b7bfa380ec82
[ "MIT" ]
3
2016-04-11T13:51:07.000Z
2022-03-10T15:42:24.000Z
history/predict.py
Snipa22/pytrader
5a730435332a159e68ba13ec01b4b7bfa380ec82
[ "MIT" ]
null
null
null
history/predict.py
Snipa22/pytrader
5a730435332a159e68ba13ec01b4b7bfa380ec82
[ "MIT" ]
null
null
null
from history.tools import normalization, filter_by_mins, create_sample_row from history.models import Price, PredictionTest import time from history.tools import print_and_log def predict_v2(ticker,hidden_layers=15,NUM_MINUTES_BACK=1000,NUM_EPOCHS=1000,granularity_minutes=15,datasetinputs=5,learningrate=0.005,bias=F...
48.337349
380
0.692423
532
4,012
4.943609
0.255639
0.03346
0.034221
0.04943
0.242586
0.201521
0.093536
0.093536
0.093536
0.093536
0
0.016886
0.202891
4,012
82
381
48.926829
0.805503
0.021934
0
0.029851
0
0.029851
0.096988
0.010975
0
0
0
0
0
1
0.014925
false
0.014925
0.059701
0
0.089552
0.059701
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
45604bd1b05655ed30e4f3d8cdc52c6f47f66f14
16,129
py
Python
master_cGAN_mnist_useLabel.py
tanlinc/opticalFlowGAN
f568e531265029f2f25f223ee92e1f53c0bb52f6
[ "MIT" ]
1
2018-07-24T05:40:44.000Z
2018-07-24T05:40:44.000Z
master_cGAN_mnist_useLabel.py
tanlinc/opticalFlowGAN
f568e531265029f2f25f223ee92e1f53c0bb52f6
[ "MIT" ]
null
null
null
master_cGAN_mnist_useLabel.py
tanlinc/opticalFlowGAN
f568e531265029f2f25f223ee92e1f53c0bb52f6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Nov 18 12:06:09 2018 @author: linkermann Wasserstein GAN simplified """ import os, sys sys.path.append(os.getcwd()) import tflib.save_images as imsaver import tflib.plot as plotter #import tflib.mnist as mnistloader import time import numpy as np impor...
49.627692
150
0.684915
2,375
16,129
4.424421
0.178947
0.024838
0.015226
0.024362
0.320708
0.269699
0.232109
0.207651
0.164636
0.141035
0
0.027589
0.177506
16,129
324
151
49.780864
0.764511
0.311675
0
0.096618
0
0
0.080703
0.019509
0
0
0
0.003086
0
0
null
null
0
0.038647
null
null
0.057971
0
0
0
null
0
0
0
0
0
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
456368c28972d08c5777b27f3941bd69bf9f4b4c
2,786
py
Python
rl_teacher/selector.py
oguzserbetci/rl-teacher-atari
fd6c399921d347333d7c5b4b12c63f1a955cea5c
[ "MIT" ]
null
null
null
rl_teacher/selector.py
oguzserbetci/rl-teacher-atari
fd6c399921d347333d7c5b4b12c63f1a955cea5c
[ "MIT" ]
5
2018-10-15T11:52:05.000Z
2018-10-30T12:58:53.000Z
rl_teacher/selector.py
oguzserbetci/rl-teacher-atari
fd6c399921d347333d7c5b4b12c63f1a955cea5c
[ "MIT" ]
null
null
null
from rl_teacher.segment_sampling import segments_from_rand_rollout, sample_segment_from_path, basic_segment_from_null_action import numpy as np class Selector(object): def __init__(self): print("Selector initialized") def select(self, segments): print("Selector.select()") return segmen...
37.648649
169
0.66224
348
2,786
5.014368
0.321839
0.036676
0.058453
0.048138
0.209169
0.187393
0.187393
0.187393
0.139255
0.139255
0
0.008057
0.242642
2,786
73
170
38.164384
0.818957
0.072146
0
0.259259
0
0
0.060924
0
0
0
0
0
0
1
0.166667
false
0
0.037037
0.018519
0.351852
0.12963
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
45636a74d98ccc7ab3ff22be9c83602f958559c0
9,474
py
Python
pynet/models/vae/vunet.py
CorentinAmbroise/pynet
c353e5f80e75f785a460422ab7b39fa8f776991a
[ "CECILL-B" ]
null
null
null
pynet/models/vae/vunet.py
CorentinAmbroise/pynet
c353e5f80e75f785a460422ab7b39fa8f776991a
[ "CECILL-B" ]
null
null
null
pynet/models/vae/vunet.py
CorentinAmbroise/pynet
c353e5f80e75f785a460422ab7b39fa8f776991a
[ "CECILL-B" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################## # NSAp - Copyright (C) CEA, 2020 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html #...
34.830882
79
0.576947
1,212
9,474
4.378713
0.237624
0.025061
0.007537
0.01319
0.140946
0.10929
0.100622
0.084794
0.084794
0.07085
0
0.010666
0.307262
9,474
271
80
34.95941
0.797958
0.329533
0
0.081481
0
0
0.088324
0
0
0
0
0
0
1
0.051852
false
0
0.074074
0
0.185185
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
456499cb6f4f56978c9d9e33ec8c47f7702e105f
1,161
py
Python
api/subparts/alpha/alpha.py
schana/swagger-based-api
964cd549e73a81a0a72037cb8f75271708d061db
[ "Apache-2.0" ]
null
null
null
api/subparts/alpha/alpha.py
schana/swagger-based-api
964cd549e73a81a0a72037cb8f75271708d061db
[ "Apache-2.0" ]
null
null
null
api/subparts/alpha/alpha.py
schana/swagger-based-api
964cd549e73a81a0a72037cb8f75271708d061db
[ "Apache-2.0" ]
null
null
null
import collections import flask_restplus from flask_restplus import fields from flask_restplus import reqparse from api import util api = util.build_api('alpha', __name__, url_prefix='/subparts/alpha') v1 = util.build_namespace(api, 'v1', description='Version 1') AlphaSpec = collections.namedtuple('Alpha', ['x_and_...
32.25
77
0.707149
166
1,161
4.728916
0.439759
0.084076
0.019108
0.084076
0
0
0
0
0
0
0
0.009109
0.149009
1,161
35
78
33.171429
0.785425
0
0
0
0
0
0.12317
0
0
0
0
0
0
1
0.038462
false
0
0.192308
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4566cf4e6c09c759fddb48cfdd14738b0604abb8
4,612
py
Python
fast_automl/baseline.py
dsbowen/fast-automl
0799849859eec015eaa0a9e78936724b8ae300e9
[ "MIT" ]
null
null
null
fast_automl/baseline.py
dsbowen/fast-automl
0799849859eec015eaa0a9e78936724b8ae300e9
[ "MIT" ]
null
null
null
fast_automl/baseline.py
dsbowen/fast-automl
0799849859eec015eaa0a9e78936724b8ae300e9
[ "MIT" ]
null
null
null
"""# Baseline classifier and regressor""" import numpy as np import pandas as pd from sklearn.base import BaseEstimator, ClassifierMixin, RegressorMixin from sklearn.utils.multiclass import check_classification_targets from sklearn.utils.validation import _check_sample_weight class BaselineClassifier(ClassifierMixin...
28.645963
96
0.597572
543
4,612
4.86372
0.21547
0.090875
0.03635
0.066641
0.471412
0.419538
0.382431
0.34078
0.308974
0.290799
0
0.000924
0.29575
4,612
161
97
28.645963
0.812192
0.518864
0
0.258065
0
0
0.009536
0
0
0
0
0
0
1
0.16129
false
0
0.16129
0
0.548387
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
456a57330f91e998b987f4f3389f029412491435
268
py
Python
code/client/05_year/client.py
honzajavorek/co-je-api
f24538d2c1f6a3fe7a3fcf33575d3b241e4ff62f
[ "MIT" ]
11
2018-07-13T14:40:56.000Z
2021-07-09T07:27:37.000Z
code/client/05_year/client.py
honzajavorek/co-je-api
f24538d2c1f6a3fe7a3fcf33575d3b241e4ff62f
[ "MIT" ]
167
2018-06-30T13:40:18.000Z
2021-07-27T06:27:54.000Z
code/client/05_year/client.py
honzajavorek/co-je-api
f24538d2c1f6a3fe7a3fcf33575d3b241e4ff62f
[ "MIT" ]
2
2018-11-07T12:19:39.000Z
2018-11-10T10:03:21.000Z
import requests response = requests.get("https://cojeapi.honzajavorek.now.sh/movies") movies = response.json() for movie in movies: response = requests.get(movie['url']) movie_details = response.json() print(movie_details['name'], movie_details['year'])
26.8
69
0.720149
34
268
5.588235
0.558824
0.189474
0.2
0
0
0
0
0
0
0
0
0
0.126866
268
9
70
29.777778
0.811966
0
0
0
0
0
0.197761
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
456b9d36efdf097837bfdedc583dac092dcbd61c
4,927
py
Python
EDGAR/Generic_Parser.py
laurakchen/Intended-Use-Of_Proceeds
4d958fbeddb3eb20b6a3ab1166ad918673408ddc
[ "Apache-2.0" ]
null
null
null
EDGAR/Generic_Parser.py
laurakchen/Intended-Use-Of_Proceeds
4d958fbeddb3eb20b6a3ab1166ad918673408ddc
[ "Apache-2.0" ]
null
null
null
EDGAR/Generic_Parser.py
laurakchen/Intended-Use-Of_Proceeds
4d958fbeddb3eb20b6a3ab1166ad918673408ddc
[ "Apache-2.0" ]
4
2021-01-10T02:22:24.000Z
2021-01-29T07:01:16.000Z
""" Program to provide generic parsing for all files in user-specified directory. The program assumes the input files have been scrubbed, i.e., HTML, ASCII-encoded binary, and any other embedded document structures that are not intended to be analyzed have been deleted from the file. Dependencies: Pytho...
38.795276
104
0.629592
645
4,927
4.683721
0.336434
0.047666
0.050645
0.039722
0.102615
0.03906
0
0
0
0
0
0.030213
0.247615
4,927
126
105
39.103175
0.784192
0.331642
0
0
0
0
0.191929
0.090562
0
0
0
0
0
1
0.028986
false
0
0.101449
0
0.144928
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
456ce9a81e255b4fb4013dc47630ffa6a975e439
1,542
py
Python
sound.py
TWoolhouse/Libraries
26079ed387cb800cb97f20980720ae094008c7bf
[ "MIT" ]
1
2020-10-11T15:34:56.000Z
2020-10-11T15:34:56.000Z
sound.py
TWoolhouse/Libraries
26079ed387cb800cb97f20980720ae094008c7bf
[ "MIT" ]
null
null
null
sound.py
TWoolhouse/Libraries
26079ed387cb800cb97f20980720ae094008c7bf
[ "MIT" ]
null
null
null
import sinput import keys class Volume: __volume = None def __init__(self, sync: int=0): if sync != False or self.__volume is None: self.sync(sync) def __constrain(self, val: int, min: int=0, max: int=100): return (min if val < min else (max if val > max else val)) def _...
24.09375
66
0.559663
210
1,542
3.861905
0.233333
0.147965
0.080148
0.054254
0.202219
0.083847
0.083847
0.083847
0.083847
0.083847
0
0.019231
0.325551
1,542
63
67
24.47619
0.760577
0
0
0.183673
0
0
0
0
0
0
0
0
0
1
0.244898
false
0
0.040816
0.061224
0.44898
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
456d5f84b2506b512723f3a37ab5b953c8eded00
4,882
py
Python
Code/techne_library_code.py
uk-gov-mirror/nationalarchives.TechneTraining
aabb15f2bfe6bbbcc824dbdaa7f8c59632fea21a
[ "MIT" ]
null
null
null
Code/techne_library_code.py
uk-gov-mirror/nationalarchives.TechneTraining
aabb15f2bfe6bbbcc824dbdaa7f8c59632fea21a
[ "MIT" ]
null
null
null
Code/techne_library_code.py
uk-gov-mirror/nationalarchives.TechneTraining
aabb15f2bfe6bbbcc824dbdaa7f8c59632fea21a
[ "MIT" ]
null
null
null
import os from sklearn.model_selection import train_test_split import numpy as np from operator import itemgetter from math import log import random from gensim.summarization.summarizer import summarize from sklearn.naive_bayes import BernoulliNB from sklearn.metrics import accuracy_score from sklearn.metrics import co...
33.902778
140
0.670012
704
4,882
4.396307
0.255682
0.028433
0.012924
0.024233
0.107593
0.087884
0.03231
0.01874
0
0
0
0.010694
0.214666
4,882
143
141
34.13986
0.796557
0.031135
0
0.071429
0
0
0.011844
0.004865
0
0
0
0
0
1
0.103175
false
0
0.134921
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
0
0
0
0
1
0
456d637d0c21bbaf1dc386e6ddbca0f048272275
785
py
Python
Max/Max_0295_20200201.py
Morek999/OMSCS_Taiwan_Leetcode
8ec18e08e9313bc3326846ca6ef6e569380a133f
[ "MIT" ]
1
2020-01-08T14:10:24.000Z
2020-01-08T14:10:24.000Z
Max/Max_0295_20200201.py
Morek999/OMSCS_Taiwan_Leetcode
8ec18e08e9313bc3326846ca6ef6e569380a133f
[ "MIT" ]
null
null
null
Max/Max_0295_20200201.py
Morek999/OMSCS_Taiwan_Leetcode
8ec18e08e9313bc3326846ca6ef6e569380a133f
[ "MIT" ]
null
null
null
""" 295. Find Median from Data Stream https://leetcode.com/problems/find-median-from-data-stream/ Time complexity: O() Space complexity: O() Solution: """ from typing import List class MedianFinder: def __init__(self): """ initialize your data structure here. """ se...
23.787879
68
0.559236
99
785
4.383838
0.545455
0.112903
0.0553
0.062212
0.179724
0
0
0
0
0
0
0.020221
0.307006
785
32
69
24.53125
0.777574
0.403822
0
0
0
0
0
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
456e07cc6bba172145470a41d9133e6c7f291230
2,701
py
Python
sensor/src/upload_metrics.py
tubone24/raspi_plant_checker
e80ccd61c50cbba883f4af8fafafc0404bdf8978
[ "MIT" ]
null
null
null
sensor/src/upload_metrics.py
tubone24/raspi_plant_checker
e80ccd61c50cbba883f4af8fafafc0404bdf8978
[ "MIT" ]
null
null
null
sensor/src/upload_metrics.py
tubone24/raspi_plant_checker
e80ccd61c50cbba883f4af8fafafc0404bdf8978
[ "MIT" ]
1
2021-12-03T05:28:20.000Z
2021-12-03T05:28:20.000Z
from gql import gql, Client from gql.transport.requests import RequestsHTTPTransport import requests from datetime import datetime, timedelta, timezone import os from os.path import join, dirname from dotenv import load_dotenv dotenv_path = join(dirname(__file__), "../../", '.env') load_dotenv(dotenv_path) RASPI_URL ...
28.135417
90
0.583858
277
2,701
5.451264
0.306859
0.023841
0.023841
0.02649
0.460927
0.328477
0.328477
0.328477
0.328477
0.328477
0
0.00159
0.30137
2,701
95
91
28.431579
0.798622
0
0
0.42623
0
0
0.112595
0.020038
0
0
0
0
0
1
0.065574
false
0
0.114754
0
0.196721
0.032787
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
456e575a68c8ec3a64ef628b7c4703459442d23a
199
py
Python
python-fundamental/unit03/01.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
9
2020-10-25T15:13:32.000Z
2022-03-26T11:27:21.000Z
python-fundamental/unit03/01.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
null
null
null
python-fundamental/unit03/01.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
7
2021-03-01T11:06:45.000Z
2022-03-14T07:06:04.000Z
import requests import pandas as pd url = "http://comp.fnguide.com/SVO2/common/lookup_data.asp?mkt_gb=1&comp_gb=1" resp = requests.get(url) data = resp.json() df = pd.DataFrame(data=data) df.head()
22.111111
78
0.738693
36
199
4
0.666667
0.041667
0
0
0
0
0
0
0
0
0
0.01676
0.100503
199
9
79
22.111111
0.78771
0
0
0
0
0.142857
0.35
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4570e2df961c67f0b695d56e2b1d04a5a28131d6
7,316
py
Python
tank-wars/game/instruction_view.py
isabelaranguren/cse210-project
62c7812e7c592030cdfd4b08a91eea225c2820f6
[ "MIT" ]
1
2021-04-23T21:04:57.000Z
2021-04-23T21:04:57.000Z
tank-wars/game/instruction_view.py
isabelaranguren/cse210-project
62c7812e7c592030cdfd4b08a91eea225c2820f6
[ "MIT" ]
2
2021-03-04T19:48:38.000Z
2021-03-07T06:39:55.000Z
tank-wars/game/instruction_view.py
isabelaranguren/cse210-project
62c7812e7c592030cdfd4b08a91eea225c2820f6
[ "MIT" ]
2
2021-03-27T17:28:07.000Z
2021-04-23T21:05:05.000Z
import arcade from arcade.gui import UIImageButton, UIManager, UIToggle import game.constants as constants from game.gameview import GameView class MainView(arcade.View): """ View to show start screen. The responsibility of this class is to offer the user to either play or view the instructions Stereotype:...
33.254545
122
0.613313
809
7,316
5.380717
0.170581
0.05881
0.088215
0.068918
0.64737
0.542614
0.508615
0.452791
0.398346
0.398346
0
0.003183
0.312876
7,316
219
123
33.406393
0.862741
0.45749
0
0.444444
0
0
0
0
0
0
0
0
0
1
0.206349
false
0
0.063492
0
0.31746
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
4571550f6f8b64310d107516d99e19dee198a41b
2,711
py
Python
src/api/datamanage/lite/dmonitor/filters.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
84
2021-06-30T06:20:23.000Z
2022-03-22T03:05:49.000Z
src/api/datamanage/lite/dmonitor/filters.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
7
2021-06-30T06:21:16.000Z
2022-03-29T07:36:13.000Z
src/api/datamanage/lite/dmonitor/filters.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
40
2021-06-30T06:21:26.000Z
2022-03-29T12:42:26.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ---------------------------------------------...
41.707692
111
0.727407
365
2,711
5.323288
0.490411
0.045291
0.018528
0.029851
0.049408
0.049408
0.049408
0.049408
0
0
0
0.003138
0.177056
2,711
64
112
42.359375
0.867772
0.501291
0
0.133333
0
0
0.084821
0
0
0
0
0
0
1
0.033333
false
0
0.233333
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4571c0f5a311380362a2ed94f464b2d2bf10f14f
1,162
py
Python
project/concept_recog.py
hskang9/HelloWorld
50b09f710176f082c5dac955bc7ea3578a42bd40
[ "MIT" ]
null
null
null
project/concept_recog.py
hskang9/HelloWorld
50b09f710176f082c5dac955bc7ea3578a42bd40
[ "MIT" ]
null
null
null
project/concept_recog.py
hskang9/HelloWorld
50b09f710176f082c5dac955bc7ea3578a42bd40
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json from watson_developer_cloud import NaturalLanguageUnderstandingV1 as nlu import watson_developer_cloud.natural_language_understanding.features.v1 \ as Features def concept_recog(path='./test.txt'): #with open(path, 'rt', encoding='utf-8') as f: # inputs = f.read() ...
28.341463
74
0.605852
128
1,162
5.3125
0.539063
0.088235
0.164706
0.029412
0.041176
0
0
0
0
0
0
0.043581
0.269363
1,162
40
75
29.05
0.757362
0.113597
0
0
0
0
0.15918
0.068359
0
0
0
0
0
1
0.033333
false
0.033333
0.1
0
0.166667
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
0
0
1
0
45723f2ab738ef71e49f0975850a3b605e12c203
2,120
py
Python
tests/test_utils_math.py
kevinddchen/Cirq-PrimeFactorization
9104a60b983b345595c8016205dd0dd616483eaa
[ "MIT" ]
null
null
null
tests/test_utils_math.py
kevinddchen/Cirq-PrimeFactorization
9104a60b983b345595c8016205dd0dd616483eaa
[ "MIT" ]
null
null
null
tests/test_utils_math.py
kevinddchen/Cirq-PrimeFactorization
9104a60b983b345595c8016205dd0dd616483eaa
[ "MIT" ]
null
null
null
import pytest from factor import modular_inverse, continued_fraction, approximate_fraction, is_prime def test_modular_inverse(): assert modular_inverse(a=1, N=2) == 1 assert modular_inverse(a=1, N=5) == 1 assert modular_inverse(a=2, N=5) == 3 assert modular_inverse(a=3, N=5) == 2 assert modular_i...
34.193548
86
0.64717
335
2,120
3.925373
0.125373
0.260076
0.304183
0.158175
0.320913
0.265399
0.187833
0.065399
0.065399
0
0
0.109982
0.210849
2,120
61
87
34.754098
0.676031
0
0
0.057692
0
0
0
0
0
0
0
0
0.769231
1
0.076923
true
0
0.038462
0
0.115385
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
1
0
0
0
0
0
0
4
4573153b3fe512c2a5e16ccae54eb2974cf42494
6,242
py
Python
i7app/__main__.py
eblade/images7
7fa7c961e046a178243c866fd1f3b82f7e58c73d
[ "BSD-3-Clause", "MIT" ]
null
null
null
i7app/__main__.py
eblade/images7
7fa7c961e046a178243c866fd1f3b82f7e58c73d
[ "BSD-3-Clause", "MIT" ]
null
null
null
i7app/__main__.py
eblade/images7
7fa7c961e046a178243c866fd1f3b82f7e58c73d
[ "BSD-3-Clause", "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import os import zmq import time import logging from PyQt5 import QtWidgets as W, QtCore as C, QtGui as G from qtzevents.bus import Pub, Push from qtzevents.background import Background from images7.config import Config from images7.system import System from .grid import ThumbView ...
27.257642
103
0.630567
723
6,242
5.278008
0.272476
0.014413
0.023847
0.023061
0.138889
0.037212
0.037212
0.018868
0.018868
0
0
0.006892
0.256168
6,242
228
104
27.377193
0.81499
0.009773
0
0.132948
0
0
0.061347
0
0
0
0
0
0
1
0.121387
false
0
0.17341
0
0.346821
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
45754cc8939f2ca8f5551df60c1a102df61680b5
2,049
py
Python
week01/day01/shopping.py
GsQxZz/fullstack
9010c0c69aec901fd0e0b4434445e822f682c367
[ "Apache-2.0" ]
null
null
null
week01/day01/shopping.py
GsQxZz/fullstack
9010c0c69aec901fd0e0b4434445e822f682c367
[ "Apache-2.0" ]
null
null
null
week01/day01/shopping.py
GsQxZz/fullstack
9010c0c69aec901fd0e0b4434445e822f682c367
[ "Apache-2.0" ]
null
null
null
iphone_price = 5800 mac_price = 9000 coffee_price = 32 python_price = 80 bicyle_price = 1500 list = [] salary = int(input("Please input your salary:")) print("**********欢迎来到购物车系统**********") while True: print("1. iPhone 11 ————%d元" % iphone_price) print("2. Mac book ————%d" % mac_price) print("3. cof...
28.859155
60
0.537823
244
2,049
4.495902
0.241803
0.070191
0.068368
0.077484
0.315406
0.273473
0.273473
0.273473
0.273473
0.273473
0
0.024045
0.309907
2,049
71
61
28.859155
0.737624
0
0
0.209677
0
0
0.219619
0.070278
0
0
0
0
0
1
0
false
0
0
0
0
0.354839
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
45756f7f3335ea9abab94df669ff19ff707b1db9
1,079
py
Python
test/test_edit_contact.py
Zaichkov/python_training
be8aff0b38c5a93c5574762ce5c8c27e6fe11b5a
[ "Apache-2.0" ]
null
null
null
test/test_edit_contact.py
Zaichkov/python_training
be8aff0b38c5a93c5574762ce5c8c27e6fe11b5a
[ "Apache-2.0" ]
null
null
null
test/test_edit_contact.py
Zaichkov/python_training
be8aff0b38c5a93c5574762ce5c8c27e6fe11b5a
[ "Apache-2.0" ]
null
null
null
from model.contact import Contact import random def test_edit_some_contact(app, orm, check_ui): if len(orm.get_contact_list()) == 0: app.contact.create(Contact(firstname="St_Claus")) old_contacts = orm.get_contact_list() contact_for_edit = random.choice(old_contacts) contact = Contact(firstnam...
46.913043
107
0.720111
154
1,079
4.701299
0.331169
0.075967
0.077348
0.077348
0.212707
0.143646
0
0
0
0
0
0.007778
0.165894
1,079
22
108
49.045455
0.796667
0
0
0
0
0
0.091752
0
0
0
0
0
0.105263
1
0.052632
false
0
0.105263
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4576b3475ac0244bd672a11541f51bd060fa0ab8
1,555
py
Python
dowsing/maturin.py
thatch/dowsing
ee81fb26ea4ac67bb951652706107d7f40a546bd
[ "MIT" ]
1
2022-03-21T22:41:58.000Z
2022-03-21T22:41:58.000Z
dowsing/maturin.py
thatch/dowsing
ee81fb26ea4ac67bb951652706107d7f40a546bd
[ "MIT" ]
47
2020-10-02T20:33:58.000Z
2022-03-31T19:10:18.000Z
dowsing/maturin.py
thatch/dowsing
ee81fb26ea4ac67bb951652706107d7f40a546bd
[ "MIT" ]
4
2020-05-25T04:50:51.000Z
2022-02-04T15:20:28.000Z
from pathlib import Path from typing import Sequence import tomlkit from .types import BaseReader, Distribution class MaturinReader(BaseReader): def __init__(self, path: Path): self.path = path def get_requires_for_build_sdist(self) -> Sequence[str]: return [] # TODO def get_requires_...
29.339623
91
0.534405
178
1,555
4.567416
0.449438
0.03075
0.0369
0.04182
0.164822
0.118081
0.076261
0
0
0
0
0.006938
0.351125
1,555
52
92
29.903846
0.798811
0.126688
0
0.057143
0
0
0.091179
0
0
0
0
0.019231
0
1
0.114286
false
0
0.114286
0.057143
0.342857
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
457919564bdf80b71f716bf686e0ed54de0bb593
9,424
py
Python
pytype/overlays/typed_dict.py
hboshnak/pytype
b6b6448dc562a7200326c92e75efeed203984e16
[ "Apache-2.0" ]
null
null
null
pytype/overlays/typed_dict.py
hboshnak/pytype
b6b6448dc562a7200326c92e75efeed203984e16
[ "Apache-2.0" ]
null
null
null
pytype/overlays/typed_dict.py
hboshnak/pytype
b6b6448dc562a7200326c92e75efeed203984e16
[ "Apache-2.0" ]
null
null
null
"""Implementation of TypedDict.""" import dataclasses from typing import Any, Dict, Set from pytype.abstract import abstract from pytype.abstract import abstract_utils from pytype.abstract import function from pytype.overlays import classgen from pytype.pytd import pytd @dataclasses.dataclass class TypedDictProper...
34.520147
80
0.694822
1,344
9,424
4.65253
0.194196
0.031345
0.02047
0.028146
0.303534
0.225972
0.184391
0.168079
0.168079
0.149048
0
0.0004
0.205008
9,424
272
81
34.647059
0.834223
0.170204
0
0.221053
0
0
0.049864
0.006201
0
0
0
0
0.005263
1
0.152632
false
0
0.042105
0.036842
0.373684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4579450f7ab9dcd55c2527f2db1b882e121fbb78
4,962
py
Python
esmvaltool/cmorizers/obs/cmorize_obs_aphro_ma.py
cffbots/ESMValTool
a9b6592a02f2085634a214ff5f36a736fa18ff47
[ "Apache-2.0" ]
148
2017-02-07T13:16:03.000Z
2022-03-26T02:21:56.000Z
esmvaltool/cmorizers/obs/cmorize_obs_aphro_ma.py
cffbots/ESMValTool
a9b6592a02f2085634a214ff5f36a736fa18ff47
[ "Apache-2.0" ]
2,026
2017-02-03T12:57:13.000Z
2022-03-31T15:11:51.000Z
esmvaltool/cmorizers/obs/cmorize_obs_aphro_ma.py
cffbots/ESMValTool
a9b6592a02f2085634a214ff5f36a736fa18ff47
[ "Apache-2.0" ]
113
2017-01-27T13:10:19.000Z
2022-02-03T13:42:11.000Z
"""ESMValTool CMORizer for APHRODITE Monsoon Asia (APHRO-MA) data. Tier Tier 3: restricted dataset. Source http://aphrodite.st.hirosaki-u.ac.jp/download/ Last access 20200306 Download and processing instructions Register at http://aphrodite.st.hirosaki-u.ac.jp/download/create/ Download the ...
33.08
77
0.620919
598
4,962
4.964883
0.386288
0.025935
0.018188
0.02324
0.274166
0.228697
0.185248
0.175817
0.129336
0.129336
0
0.046963
0.283353
4,962
149
78
33.302013
0.787683
0.403265
0
0.235294
0
0
0.11376
0
0
0
0
0
0
1
0.029412
false
0
0.088235
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
0
0
0
0
0
1
0
457e24632a032a8570bd0202286ce93c186089e2
1,285
py
Python
tests/test_init.py
Oprax/backup-utils
8de928d5257c9a67c65ca906e49596abe1e3b1ba
[ "MIT" ]
null
null
null
tests/test_init.py
Oprax/backup-utils
8de928d5257c9a67c65ca906e49596abe1e3b1ba
[ "MIT" ]
null
null
null
tests/test_init.py
Oprax/backup-utils
8de928d5257c9a67c65ca906e49596abe1e3b1ba
[ "MIT" ]
null
null
null
import sys import json from pathlib import Path from unittest.mock import patch import pytest from conftest import FakeFile, config @patch.object(sys, "argv", ["backup_utils", "-v"]) def test_version(capsys): from backup_utils import main, __version__ with pytest.raises(SystemExit): main() cap...
25.7
68
0.650584
166
1,285
4.873494
0.36747
0.122373
0.051916
0.066749
0.321384
0.290482
0.182942
0.093943
0.093943
0
0
0.000964
0.192996
1,285
49
69
26.22449
0.779171
0.355642
0
0.08
0
0
0.112883
0.038037
0
0
0
0
0.16
1
0.08
false
0
0.32
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
457e2b38d8a451c8e775c1c394ef7b2670d5e8bd
5,074
py
Python
tests/walkers/enum_values_test.py
yyang08/swagger-spec-compatibility
e7a6ba6fc53c6a8a92ba26016219a595a8cecbbe
[ "Apache-2.0" ]
18
2019-04-30T21:07:30.000Z
2021-12-16T17:56:08.000Z
tests/walkers/enum_values_test.py
yyang08/swagger-spec-compatibility
e7a6ba6fc53c6a8a92ba26016219a595a8cecbbe
[ "Apache-2.0" ]
30
2019-02-26T11:25:44.000Z
2021-04-16T00:12:11.000Z
tests/walkers/enum_values_test.py
yyang08/swagger-spec-compatibility
e7a6ba6fc53c6a8a92ba26016219a595a8cecbbe
[ "Apache-2.0" ]
6
2019-02-25T22:12:29.000Z
2020-12-23T00:24:48.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from copy import deepcopy import mock import pytest from swagger_spec_compatibility.spec_utils import load_spec_from_spec_dict from swagger_spec_compatibility.util import Entit...
38.732824
136
0.522862
467
5,074
5.379015
0.188437
0.038217
0.055732
0.055732
0.52707
0.407245
0.364252
0.343551
0.282643
0.282643
0
0.013383
0.307844
5,074
130
137
39.030769
0.701879
0.004139
0
0.252101
0
0
0.192635
0
0
0
0
0
0.02521
1
0.02521
false
0
0.092437
0
0.117647
0.008403
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
457e798e0ae1080ec8d8cbb20b32459584d047c1
4,997
py
Python
src/logisimpy/multiplexer.py
Kingorgg/logisimpy
de8764c931b42c04a2f6341a1d3811226b90c425
[ "MIT" ]
null
null
null
src/logisimpy/multiplexer.py
Kingorgg/logisimpy
de8764c931b42c04a2f6341a1d3811226b90c425
[ "MIT" ]
null
null
null
src/logisimpy/multiplexer.py
Kingorgg/logisimpy
de8764c931b42c04a2f6341a1d3811226b90c425
[ "MIT" ]
null
null
null
from logisimpy.circuit import Circuit, Wire from logisimpy.logic import AND, AND3, NOT, OR class MUX2x1(Circuit): """ 2x1 Multiplexer logic. The MUX element has two data inputs, one select input and one data output. If the select input is 0, the data from the first input is transfered to the outp...
26.721925
86
0.336202
692
4,997
2.404624
0.099711
0.127404
0.122596
0.115385
0.370192
0.370192
0.305288
0.304087
0.268029
0.26262
0
0.177754
0.44947
4,997
186
87
26.865591
0.427117
0.529318
0
0.163934
0
0
0
0
0
0
0
0
0
1
0.032787
false
0
0.032787
0
0.098361
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1