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
ef1431dac95c7e69b7262a40569f5236bf33fd8b
4,217
py
Python
code/service/flaskapp/flaskapp.py
Wyss/evolvulator
c026b9e7425cabba8b7a5b49024173c6f9667337
[ "MIT" ]
1
2016-01-05T20:10:10.000Z
2016-01-05T20:10:10.000Z
code/service/flaskapp/flaskapp.py
Wyss/evolvulator
c026b9e7425cabba8b7a5b49024173c6f9667337
[ "MIT" ]
null
null
null
code/service/flaskapp/flaskapp.py
Wyss/evolvulator
c026b9e7425cabba8b7a5b49024173c6f9667337
[ "MIT" ]
null
null
null
""" Copyright (c) 2012 Wyss Institute at Harvard University Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge...
35.436975
109
0.708798
574
4,217
5.090592
0.421603
0.031143
0.0154
0.014374
0.088638
0.072211
0.072211
0.072211
0.072211
0.072211
0
0.008547
0.1954
4,217
119
110
35.436975
0.852638
0.138013
0
0.133333
0
0
0.143615
0.03876
0
0
0
0
0
0
null
null
0
0.116667
null
null
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ef1825ce5af0c1bb4c24887ac8d1e612fd32ac97
5,383
py
Python
ena-dts/framework/rst.py
amzn/amzn-ec2-ena-utilities
99502ff5bb025dc71727d4991ea5e29a4e9388c6
[ "MIT-0" ]
7
2021-04-29T05:23:56.000Z
2022-03-23T02:26:55.000Z
ena-dts/framework/rst.py
amzn/amzn-ec2-ena-utilities
99502ff5bb025dc71727d4991ea5e29a4e9388c6
[ "MIT-0" ]
null
null
null
ena-dts/framework/rst.py
amzn/amzn-ec2-ena-utilities
99502ff5bb025dc71727d4991ea5e29a4e9388c6
[ "MIT-0" ]
4
2021-06-10T19:02:57.000Z
2021-12-06T01:31:06.000Z
# BSD LICENSE # # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copy...
33.228395
75
0.583132
668
5,383
4.646707
0.333832
0.020296
0.006443
0.008054
0.147874
0.105348
0.105348
0.105348
0.105348
0.06701
0
0.006107
0.30039
5,383
161
76
33.434783
0.818109
0.347576
0
0.22973
0
0
0.06638
0.008587
0
0
0
0
0
1
0.121622
false
0
0.054054
0
0.189189
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
ef191d6989e1e630c43331526ecc6be3b87686af
331
py
Python
tests/test_models.py
kajigga/dj-pylti
2388719ee799b3033a9ab7ccf28667e69bcd8cd6
[ "BSD-3-Clause" ]
null
null
null
tests/test_models.py
kajigga/dj-pylti
2388719ee799b3033a9ab7ccf28667e69bcd8cd6
[ "BSD-3-Clause" ]
null
null
null
tests/test_models.py
kajigga/dj-pylti
2388719ee799b3033a9ab7ccf28667e69bcd8cd6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_dj-pylti ------------ Tests for `dj-pylti` models module. """ from django.test import TestCase from dj_pylti import models class TestDj_pylti(TestCase): def setUp(self): pass def test_something(self): pass def tearDown(self): ...
12.730769
35
0.607251
43
331
4.581395
0.604651
0.106599
0.111675
0
0
0
0
0
0
0
0
0.003984
0.241692
331
25
36
13.24
0.780876
0.320242
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.333333
0.222222
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
ef19d273749fc5c7cda4c1d9c7f1b0e4fb378f5e
30,467
py
Python
mutation.py
nklapste/mutation
28eb3eaa3173f0a9cfcd22c2cabe6d0c87f50dfa
[ "MIT" ]
null
null
null
mutation.py
nklapste/mutation
28eb3eaa3173f0a9cfcd22c2cabe6d0c87f50dfa
[ "MIT" ]
null
null
null
mutation.py
nklapste/mutation
28eb3eaa3173f0a9cfcd22c2cabe6d0c87f50dfa
[ "MIT" ]
null
null
null
"""Mutation. Usage: mutation play [--verbose] [--exclude=<globs>] [--only-deadcode-detection] [--include=<globs>] [--sampling=<s>] [--randomly-seed=<n>] [--max-workers=<n>] [<file-or-directory> ...] [-- TEST-COMMAND ...] mutation replay [--verbose] [--max-workers=<n>] mutation list mutation show MUTATION mut...
28.961027
202
0.573046
3,612
30,467
4.764396
0.16113
0.018595
0.01046
0.007438
0.260096
0.224127
0.174908
0.157243
0.148004
0.12569
0
0.009253
0.301178
30,467
1,051
203
28.988582
0.798835
0.079397
0
0.280632
0
0
0.097855
0.004147
0
0
0
0.000951
0.001318
1
0.072464
false
0.011858
0.046113
0.01581
0.201581
0.002635
0
0
0
null
0
0
0
0
0
0
0
0
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
ef1a0f68bf7e4627785fe119d1363f10a767d348
1,058
py
Python
main.py
bijilap/ColorRecognition
a070645e5bda40c0d06d03db468f31c79b63d0bd
[ "Apache-2.0" ]
2
2018-03-29T12:15:04.000Z
2019-01-09T02:09:41.000Z
main.py
bijilap/ColorRecognition
a070645e5bda40c0d06d03db468f31c79b63d0bd
[ "Apache-2.0" ]
null
null
null
main.py
bijilap/ColorRecognition
a070645e5bda40c0d06d03db468f31c79b63d0bd
[ "Apache-2.0" ]
null
null
null
import argparse from ColorDetector import ColorDetector def main(): detector = ColorDetector() parser = argparse.ArgumentParser() # --k : number of clusters, --image: image path, --debug: debug level parser.add_argument("--k", nargs=1, type=int, help='maximum number of colors to be identified. Default:...
30.228571
111
0.660681
152
1,058
4.473684
0.361842
0.052941
0.1
0.057353
0.075
0
0
0
0
0
0
0.015495
0.206994
1,058
34
112
31.117647
0.794994
0.063327
0
0
0
0
0.211325
0
0
0
0
0
0
1
0.041667
false
0
0.083333
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ef1bad6bf6953bfcc6d21e0a6fe6026bfa17d421
286
py
Python
desafio64.py
DantonMatheus/desafios-python
709a3f1774596fc536dd4b882c78a6b951c92a9c
[ "MIT" ]
null
null
null
desafio64.py
DantonMatheus/desafios-python
709a3f1774596fc536dd4b882c78a6b951c92a9c
[ "MIT" ]
null
null
null
desafio64.py
DantonMatheus/desafios-python
709a3f1774596fc536dd4b882c78a6b951c92a9c
[ "MIT" ]
null
null
null
print('===== DESAFIO 64 =====') num = 0 cont = 0 soma = 0 num = int(input('Digite um número [999 para SAIR]: ')) while num != 999: soma += num cont += 1 num = int(input('Digite um número [999 para SAIR]: ')) print(f'Você digitou {cont} números! A soma entre eles é {soma}')
26
65
0.594406
46
286
3.695652
0.543478
0.070588
0.129412
0.2
0.423529
0.423529
0.423529
0.423529
0.423529
0
0
0.067265
0.22028
286
10
66
28.6
0.695067
0
0
0.2
0
0
0.506993
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ef1beeeb227406f72c9053a339254f85199fda6b
2,062
py
Python
app/app.py
tigpt/docker-flask-postgres
ba0b192afe77e6946c8e49574def3533ea0f1181
[ "MIT" ]
null
null
null
app/app.py
tigpt/docker-flask-postgres
ba0b192afe77e6946c8e49574def3533ea0f1181
[ "MIT" ]
null
null
null
app/app.py
tigpt/docker-flask-postgres
ba0b192afe77e6946c8e49574def3533ea0f1181
[ "MIT" ]
null
null
null
from elasticapm.contrib.flask import ElasticAPM import os from flask import Flask, request, render_template from flask_migrate import Migrate from flask_sqlalchemy import SQLAlchemy APP = Flask(__name__) APP.config['ELASTIC_APM'] = { } apm = ElasticAPM(APP) APP.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False APP.co...
25.775
90
0.70805
264
2,062
5.359848
0.306818
0.079152
0.09894
0.070671
0.135689
0.135689
0.090459
0.090459
0.090459
0.090459
0
0.004585
0.153734
2,062
80
91
25.775
0.806304
0.083414
0
0.145455
0
0
0.175252
0.070101
0
0
0
0
0
1
0.127273
false
0.018182
0.109091
0.018182
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
ef1c14040a2c37814d24485011b2191f84d572dc
325
py
Python
pytify/strategy.py
EngineeringIsLife/Pytify
ae9a351144cb8f5556740d33cdf29073ffd2dc1e
[ "MIT" ]
null
null
null
pytify/strategy.py
EngineeringIsLife/Pytify
ae9a351144cb8f5556740d33cdf29073ffd2dc1e
[ "MIT" ]
null
null
null
pytify/strategy.py
EngineeringIsLife/Pytify
ae9a351144cb8f5556740d33cdf29073ffd2dc1e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from sys import platform def get_pytify_class_by_platform(): if 'linux' in platform: from linux import Linux return Linux elif 'darwin' in platform: from darwin import Darwin return Darwin else: raise Exception('%s is not supported.' % platf...
21.666667
58
0.630769
41
325
4.902439
0.609756
0.099502
0.139303
0
0
0
0
0
0
0
0
0.004329
0.289231
325
14
59
23.214286
0.865801
0.064615
0
0
0
0
0.102649
0
0
0
0
0
0
1
0.1
true
0
0.3
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
1
0
0
0
0
0
0
1
ef1e04b7ef6eaf43f6fa7d6f871605144e4d447e
8,836
py
Python
scrapers/meetings/fetch_meetings.py
spudmind/spud
86e44bca4efd3cd6358467e1511048698a45edbc
[ "MIT" ]
2
2015-04-11T12:22:41.000Z
2016-08-18T11:12:06.000Z
scrapers/meetings/fetch_meetings.py
spudmind/spud
86e44bca4efd3cd6358467e1511048698a45edbc
[ "MIT" ]
84
2015-01-22T14:33:49.000Z
2015-04-01T23:15:29.000Z
scrapers/meetings/fetch_meetings.py
spudmind/spud
86e44bca4efd3cd6358467e1511048698a45edbc
[ "MIT" ]
1
2015-04-16T03:10:39.000Z
2015-04-16T03:10:39.000Z
# -*- coding: utf-8 -*- from datetime import datetime import logging import os.path import requests import time import urllib from bs4 import BeautifulSoup from utils import mongo class FetchMeetings: def __init__(self, **kwargs): # fetch the logger self._logger = logging.getLogger("spud") ...
46.26178
175
0.563943
964
8,836
4.973029
0.201245
0.025031
0.031289
0.012516
0.20776
0.175845
0.116187
0.116187
0.109303
0.094285
0
0.003855
0.324808
8,836
190
176
46.505263
0.799698
0.078542
0
0.228758
0
0
0.132619
0.009358
0
0
0
0.005263
0
1
0.052288
false
0
0.052288
0
0.130719
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
ef20178603cd20e2dd144ff595f24f1bbc671045
282
py
Python
django_mediamosa/templatetags/mediamosa_extras.py
UGentPortaal/django-mediamosa
553a725cd02e8dd2489bf25a613c9b98155cf90d
[ "BSD-3-Clause" ]
null
null
null
django_mediamosa/templatetags/mediamosa_extras.py
UGentPortaal/django-mediamosa
553a725cd02e8dd2489bf25a613c9b98155cf90d
[ "BSD-3-Clause" ]
null
null
null
django_mediamosa/templatetags/mediamosa_extras.py
UGentPortaal/django-mediamosa
553a725cd02e8dd2489bf25a613c9b98155cf90d
[ "BSD-3-Clause" ]
null
null
null
from django import template register = template.Library() @register.filter def mimetype(value, mime_type): mediafiles = [] for mediafile in value: if mediafile.metadata.get('mime_type') == mime_type: mediafiles.append(mediafile) return mediafiles
21.692308
60
0.695035
32
282
6.03125
0.65625
0.124352
0.186529
0
0
0
0
0
0
0
0
0
0.212766
282
12
61
23.5
0.869369
0
0
0
0
0
0.031915
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.333333
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ef21cfd36477df2859e374f71d6a0bbf86ff8519
561
py
Python
tests/settings.py
managedbyq/mbq.atomiq
23edd33e8b958cfd9257ea62a107d8bb793ff3b9
[ "Apache-2.0" ]
null
null
null
tests/settings.py
managedbyq/mbq.atomiq
23edd33e8b958cfd9257ea62a107d8bb793ff3b9
[ "Apache-2.0" ]
9
2018-09-17T20:50:43.000Z
2018-12-07T21:19:56.000Z
tests/settings.py
managedbyq/mbq.atomiq
23edd33e8b958cfd9257ea62a107d8bb793ff3b9
[ "Apache-2.0" ]
null
null
null
import os import boto3 import dj_database_url from mbq import env, metrics SECRET_KEY = 'fake-key' DEBUG = True ATOMIQ = { 'env': 'Test', 'service': 'test-service', } database_url = os.environ.get('DATABASE_URL', 'mysql://root:@mysql:3306/atomiqdb') DATABASES = { 'default': dj_database_url.parse(databa...
16.5
82
0.695187
79
561
4.721519
0.544304
0.147453
0.069705
0
0
0
0
0
0
0
0
0.014644
0.14795
561
33
83
17
0.76569
0
0
0
0
0
0.224599
0.058824
0
0
0
0
0
1
0
false
0
0.173913
0
0.173913
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
ef246213ff135ecbc464dc2dd429de5edde34475
720
py
Python
backend/util.py
ahangchen/Rasp-Person-Sensor
77d0e41b1a80cf9012f66c7bd44f062edbc6825d
[ "MIT" ]
2
2018-02-26T10:00:29.000Z
2018-03-16T11:39:34.000Z
backend/util.py
ahangchen/Rasp-Person-Sensor
77d0e41b1a80cf9012f66c7bd44f062edbc6825d
[ "MIT" ]
null
null
null
backend/util.py
ahangchen/Rasp-Person-Sensor
77d0e41b1a80cf9012f66c7bd44f062edbc6825d
[ "MIT" ]
null
null
null
import json import requests def upload_file(upload_url, file_path): files = {'file': open(file_path, 'rb')} response = requests.post(upload_url, files=files) ret = response.content.decode('utf-8') ret_json = json.loads(ret) print ret_json return ret_json['data'] def post_json(post_url, post...
27.692308
83
0.708333
102
720
4.823529
0.303922
0.056911
0.121951
0.146341
0.510163
0.349594
0.349594
0.215447
0.215447
0.215447
0
0.004918
0.152778
720
25
84
28.8
0.801639
0
0
0.117647
0
0
0.119611
0.029207
0
0
0
0
0
0
null
null
0
0.117647
null
null
0.058824
0
0
0
null
0
0
0
0
0
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
ef249d4819e51ded253cba64970d4792e29e13ee
4,761
py
Python
hard-gists/2338529/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/2338529/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/2338529/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
""" Tools for creating a CA cert and signed server certs. Divined from http://svn.osafoundation.org/m2crypto/trunk/tests/test_x509.py The mk_temporary_xxx calls return a NamedTemporaryFile with certs. Usage ; # Create a temporary CA cert and it's private key cacert, cakey = mk_temporary_cacert() # Create a ...
23.924623
87
0.710985
767
4,761
4.232073
0.22425
0.032348
0.013863
0.013863
0.181146
0.158349
0.107209
0.057917
0.057917
0.036969
0
0.029015
0.16026
4,761
198
88
24.045455
0.782891
0.038647
0
0.130841
0
0
0.087673
0
0
0
0
0
0
0
null
null
0
0.028037
null
null
0.028037
0
0
0
null
0
0
0
0
0
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
ef25471191ad1db593810b69150f45edb9dc331e
2,615
py
Python
WickContractions/ops/indexed.py
chrisculver/WickContractions
a36af32bdd049789faf42d24d168c4073fc45ed0
[ "MIT" ]
2
2021-08-03T17:32:09.000Z
2021-08-03T18:28:31.000Z
WickContractions/ops/indexed.py
chrisculver/WickContractions
a36af32bdd049789faf42d24d168c4073fc45ed0
[ "MIT" ]
null
null
null
WickContractions/ops/indexed.py
chrisculver/WickContractions
a36af32bdd049789faf42d24d168c4073fc45ed0
[ "MIT" ]
null
null
null
from collections import deque class IndexedObject: """Container for an object that has indices :param name: Name of the object :param indices: Indices attached to it """ def __init__(self,name,indices): """Constructor """ self.name = name self.indices = indic...
30.406977
111
0.549522
293
2,615
4.726962
0.211604
0.111191
0.06065
0.073646
0.612274
0.52491
0.52491
0.450542
0.450542
0.450542
0
0.002278
0.328489
2,615
86
112
30.406977
0.786446
0.213002
0
0.530612
0
0
0.005658
0
0
0
0
0
0
1
0.183673
false
0
0.020408
0
0.408163
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
ef25c53ea4c0fb58041ed1cd6cded53b4e340d23
10,942
py
Python
v0/aia_eis_v0/ml_sl/rf/dt_main.py
DreamBoatOve/aia_eis
458b4d29846669b10db4da1b3e86c0b394614ceb
[ "MIT" ]
1
2022-03-02T12:57:19.000Z
2022-03-02T12:57:19.000Z
v0/aia_eis_v0/ml_sl/rf/dt_main.py
DreamBoatOve/aia_eis
458b4d29846669b10db4da1b3e86c0b394614ceb
[ "MIT" ]
null
null
null
v0/aia_eis_v0/ml_sl/rf/dt_main.py
DreamBoatOve/aia_eis
458b4d29846669b10db4da1b3e86c0b394614ceb
[ "MIT" ]
null
null
null
import copy from utils.file_utils.dataset_reader_pack.ml_dataset_reader import get_TV_T_dataset, get_T_V_T_dataset from ml_sl.rf.dt_0 import Node, save_node, load_node from ml_sl.ml_data_wrapper import pack_list_2_list, single_point_list_2_list, reform_labeled_dataset_list from ml_sl.ml_data_wrapper import split_label...
46.961373
123
0.732681
1,683
10,942
4.346405
0.088532
0.076282
0.110185
0.14026
0.768694
0.737116
0.669993
0.624607
0.594395
0.566644
0
0.070117
0.154085
10,942
233
124
46.961373
0.720182
0.244928
0
0.639344
0
0.02459
0.06747
0.033527
0
0
0
0
0
1
0.040984
false
0
0.057377
0
0.114754
0.02459
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ef29d7cb4df5849c15653808babb4473a2403757
874
py
Python
python/sagiri-bot/SAGIRIBOT/data_manage/update_data/update_setting.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
python/sagiri-bot/SAGIRIBOT/data_manage/update_data/update_setting.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
python/sagiri-bot/SAGIRIBOT/data_manage/update_data/update_setting.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
from SAGIRIBOT.basics.aio_mysql_excute import execute_sql async def update_setting(group_id, setting_name, new_setting_value) -> None: """ Update setting to database Args: group_id: Group id setting_name: Setting name new_setting_value: New setting value Examples: awa...
31.214286
105
0.662471
117
874
4.65812
0.393162
0.181651
0.137615
0.154128
0.341284
0.245872
0.245872
0.245872
0.245872
0.245872
0
0.014859
0.229977
874
27
106
32.37037
0.794948
0
0
0
0
0
0.21129
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ef2afd3b3d3cc23390816b111f6a8ec32454a594
486
py
Python
setup.py
fmaida/caro-diario
adc5018f2ef716b49db39aa9189ab1e803fcd357
[ "MIT" ]
null
null
null
setup.py
fmaida/caro-diario
adc5018f2ef716b49db39aa9189ab1e803fcd357
[ "MIT" ]
null
null
null
setup.py
fmaida/caro-diario
adc5018f2ef716b49db39aa9189ab1e803fcd357
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name = 'caro-diario', packages = ['caro-diario'], # this must be the same as the name above version = '0.1', description = 'Diario', author = 'Francesco Maida', author_email = 'francesco.maida@gmail.com', url = 'https://github.com/fmaida/caro-diario.git', # use the ...
34.714286
85
0.67284
66
486
4.924242
0.69697
0.092308
0
0
0
0
0
0
0
0
0
0.005013
0.179012
486
13
86
37.384615
0.809524
0.244856
0
0
0
0
0.364641
0.069061
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
ef2c168f7b4d969663dc1ed93f01785a68c36dd1
3,695
py
Python
cVQE/operators/converters/tensoredop_distributor.py
gblazq/cVQE
5a566103c35696ec0cf2b016c38d71de696e0e29
[ "Apache-2.0" ]
1
2021-09-16T12:43:21.000Z
2021-09-16T12:43:21.000Z
cVQE/operators/converters/tensoredop_distributor.py
gblazq/cVQE
5a566103c35696ec0cf2b016c38d71de696e0e29
[ "Apache-2.0" ]
null
null
null
cVQE/operators/converters/tensoredop_distributor.py
gblazq/cVQE
5a566103c35696ec0cf2b016c38d71de696e0e29
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Guillermo Blázquez # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
43.988095
131
0.677402
472
3,695
5.28178
0.302966
0.052948
0.044926
0.040112
0.320096
0.267549
0.209386
0.075411
0.036101
0
0
0.018962
0.243572
3,695
83
132
44.518072
0.872987
0.401894
0
0.064516
0
0
0.088221
0.021053
0
0
0
0.012048
0
1
0.064516
false
0
0.129032
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
1
0
0
0
0
0
0
0
1
0
0
2
ef313c50d5c6317ec48b8b4af0c2b6702fb01991
8,027
py
Python
tests/test_core_deformation.py
matmodlab/matmodlab2
97bb858e2b625cca5f3291db5d50bdbb6352e976
[ "BSD-3-Clause" ]
6
2017-02-14T02:04:56.000Z
2022-02-03T04:53:32.000Z
tests/test_core_deformation.py
tjfulle/matmodlab2
97bb858e2b625cca5f3291db5d50bdbb6352e976
[ "BSD-3-Clause" ]
10
2017-01-21T00:00:06.000Z
2017-01-22T07:39:44.000Z
tests/test_core_deformation.py
tjfulle/matmodlab2
97bb858e2b625cca5f3291db5d50bdbb6352e976
[ "BSD-3-Clause" ]
3
2018-10-20T22:53:59.000Z
2022-01-13T07:17:24.000Z
# -*- coding: utf-8 -*- """ This file contains tests for tensor.py """ import sys import pathlib import pytest import numpy as np from testing_utils import isclose # Ensure that 'matmodlab2' is imported from parent directory. sys.path.insert(0, str(pathlib.Path(__file__).absolute().parent.parent)) import matmodlab2 i...
38.042654
123
0.590133
1,068
8,027
4.354869
0.188202
0.058052
0.047732
0.043002
0.431735
0.414104
0.359063
0.359063
0.332187
0.239303
0
0.364341
0.244674
8,027
210
124
38.22381
0.402771
0.067148
0
0.21519
0
0
0.042794
0
0
0
0
0
0.044304
1
0.037975
false
0.044304
0.044304
0
0.088608
0.044304
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
ef3678c7e21e6c165bc6c6b597bc9cfc9cfa52bc
10,380
py
Python
examples/tutorial/example4.py
sathiscode/trumania
bcf21c4f9e1ff0fe03fd9cbe2dc367f0df033fbc
[ "Apache-2.0" ]
97
2018-01-15T19:29:31.000Z
2022-03-11T00:27:34.000Z
examples/tutorial/example4.py
sathiscode/trumania
bcf21c4f9e1ff0fe03fd9cbe2dc367f0df033fbc
[ "Apache-2.0" ]
10
2018-01-15T22:44:55.000Z
2022-02-18T09:44:10.000Z
examples/tutorial/example4.py
sathiscode/trumania
bcf21c4f9e1ff0fe03fd9cbe2dc367f0df033fbc
[ "Apache-2.0" ]
33
2018-01-15T19:34:23.000Z
2022-03-05T22:39:33.000Z
from trumania.core import circus import trumania.core.population as population import trumania.core.random_generators as gen import trumania.core.operations as ops import trumania.core.story as story import trumania.components.time_patterns.profilers as profilers import trumania.core.util_functions as util_functions im...
34.832215
87
0.657225
1,251
10,380
5.213429
0.27498
0.019319
0.038332
0.042932
0.315547
0.25667
0.228458
0.205765
0.205765
0.205765
0
0.014798
0.257803
10,380
297
88
34.949495
0.831776
0.218593
0
0.245989
0
0
0.117749
0.002851
0
0
0
0
0
1
0.037433
false
0
0.048128
0.005348
0.101604
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
ef377a0c8139bd037fffc10567802d319f904716
1,104
py
Python
Hackerrank/Python/class-1-dealing-with-complex-numbers.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
1
2021-01-10T13:29:21.000Z
2021-01-10T13:29:21.000Z
Hackerrank/Python/class-1-dealing-with-complex-numbers.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
null
null
null
Hackerrank/Python/class-1-dealing-with-complex-numbers.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
null
null
null
import math class Complex(object): def __init__(self, real, imaginary): self.real = real self.imaginary = imaginary def __add__(self, no): return (Complex(self.real + no.real, self.imaginary + no.imaginary)) def __sub__(self, no): return (Complex(self.real ...
33.454545
130
0.588768
154
1,104
4.012987
0.25974
0.10356
0.110032
0.135922
0.300971
0.300971
0.300971
0.286408
0.286408
0.286408
0
0.010727
0.240036
1,104
33
131
33.454545
0.725864
0
0
0
0
0
0.042534
0.033484
0
0
0
0
0
1
0.28
false
0
0.04
0.2
0.6
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
ef3d18dad9fb4f3ea7850ca0af729153b0fd6bb6
1,828
py
Python
hyperparameter_tuner/run_command_generator.py
chutien/zpp-mem
470dec89dda475f7272b876f191cef9f8266a6dc
[ "MIT" ]
1
2019-10-22T11:33:23.000Z
2019-10-22T11:33:23.000Z
hyperparameter_tuner/run_command_generator.py
chutien/zpp-mem
470dec89dda475f7272b876f191cef9f8266a6dc
[ "MIT" ]
null
null
null
hyperparameter_tuner/run_command_generator.py
chutien/zpp-mem
470dec89dda475f7272b876f191cef9f8266a6dc
[ "MIT" ]
null
null
null
from itertools import product from hyperparameter_tuner.single_parameter_generator import single_parameter_generator as sgen class run_command_generator(): def __init__(self, single_parameter_generator_list, command_prefix="python ../experiment.py", output_path="./results"): for gen in s...
46.871795
116
0.650438
213
1,828
5.211268
0.338028
0.09009
0.172973
0.151351
0.189189
0.073874
0.073874
0
0
0
0
0.027523
0.224836
1,828
38
117
48.105263
0.755822
0
0
0
0
0.068966
0.136214
0.036652
0
0
0
0
0.034483
1
0.103448
false
0
0.068966
0.034483
0.241379
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
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
ef3d7706ee027142a3cc848598e7a4e1a2e3f600
1,718
py
Python
utils/storage/redisPSCO/python/storage/storage_object.py
TANGO-Project/compss-tango
d9e007b6fe4f8337d4f267f95f383d8962602ab8
[ "Apache-2.0" ]
3
2018-03-05T14:52:22.000Z
2019-02-08T09:58:24.000Z
utils/storage/redisPSCO/python/storage/storage_object.py
TANGO-Project/compss-tango
d9e007b6fe4f8337d4f267f95f383d8962602ab8
[ "Apache-2.0" ]
null
null
null
utils/storage/redisPSCO/python/storage/storage_object.py
TANGO-Project/compss-tango
d9e007b6fe4f8337d4f267f95f383d8962602ab8
[ "Apache-2.0" ]
null
null
null
# # Copyright 2017 Barcelona Supercomputing Center (www.bsc.es) # # 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...
28.163934
75
0.679278
207
1,718
5.57971
0.531401
0.051948
0.022511
0.027706
0.100433
0
0
0
0
0
0
0.00686
0.236321
1,718
60
76
28.633333
0.873476
0.568102
0
0
0
0
0
0
0
0
0
0
0
1
0.375
false
0
0.125
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ef3ec4855031980afb1650987b97c64ce63c1807
5,476
py
Python
origin_response_test.py
dnsinogeorgos/lambdas
4294089b311585c18e101e776aa2e8ca211413cd
[ "Apache-2.0" ]
null
null
null
origin_response_test.py
dnsinogeorgos/lambdas
4294089b311585c18e101e776aa2e8ca211413cd
[ "Apache-2.0" ]
null
null
null
origin_response_test.py
dnsinogeorgos/lambdas
4294089b311585c18e101e776aa2e8ca211413cd
[ "Apache-2.0" ]
null
null
null
# pylint: disable=C0114 import unittest from origin_response import lambda_handler event = { "Records": [ { "cf": { "config": {"requestId": "thisfakeidisthisfakeidisthisfakeidis"}, "request": {"uri": ""}, "response": {"headers": {}, "status": 0}...
58.255319
974
0.626004
618
5,476
5.511327
0.205502
0.056371
0.052848
0.063418
0.857017
0.857017
0.857017
0.857017
0.857017
0.857017
0
0.025316
0.192111
5,476
93
975
58.88172
0.744575
0.09076
0
0.542857
0
0.028571
0.599343
0.069581
0
0
0
0
0.042857
1
0.042857
false
0
0.028571
0
0.085714
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
ef3f29141380c4970504779ca0adbe37edfcc48e
377
py
Python
lang/Python/abstract-type-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/abstract-type-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/abstract-type-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod class BaseQueue(metaclass=ABCMeta): """Abstract Class """ def __init__(self): self.contents = list() @abstractmethod def Enqueue(self, item): pass @abstractmethod def Dequeue(self): pass def Print_Contents(self): ...
17.136364
39
0.594164
40
377
5.475
0.575
0.109589
0
0
0
0
0
0
0
0
0
0
0.30504
377
21
40
17.952381
0.835878
0.037135
0
0.307692
0
0
0.002841
0
0
0
0
0
0
1
0.307692
false
0.153846
0.076923
0
0.461538
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
ef4114aeaf1e0c3215bf5aee9d278bc0e2171dca
338
py
Python
apps/permissions/router.py
yhkl-dev/JAutoOps
e42342fc6d814813dcac2e0154cd5dfdc1adf4c1
[ "MIT" ]
null
null
null
apps/permissions/router.py
yhkl-dev/JAutoOps
e42342fc6d814813dcac2e0154cd5dfdc1adf4c1
[ "MIT" ]
null
null
null
apps/permissions/router.py
yhkl-dev/JAutoOps
e42342fc6d814813dcac2e0154cd5dfdc1adf4c1
[ "MIT" ]
null
null
null
from rest_framework.routers import DefaultRouter from .views import PermissionsViewset, GroupPermissionsViewset permission_router = DefaultRouter() permission_router.register(r'permissions', PermissionsViewset, basename="permissions") permission_router.register(r'grouppermissions', GroupPermissionsViewset, basename="...
48.285714
101
0.866864
30
338
9.633333
0.533333
0.16609
0.16609
0.17301
0
0
0
0
0
0
0
0
0.056213
338
7
101
48.285714
0.905956
0
0
0
0
0
0.159292
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
ef41254ab69ff27661576195222b554a1c94e4da
6,158
py
Python
src/inscriptis/model/canvas/__init__.py
rlskoeser/inscriptis
e23f79a4ad561f53943c3c6dd70a7d4981b0e0fb
[ "Apache-2.0" ]
90
2016-01-29T15:09:21.000Z
2022-03-08T15:08:57.000Z
src/inscriptis/model/canvas/__init__.py
rlskoeser/inscriptis
e23f79a4ad561f53943c3c6dd70a7d4981b0e0fb
[ "Apache-2.0" ]
27
2016-01-14T10:30:10.000Z
2022-03-24T08:00:31.000Z
src/inscriptis/model/canvas/__init__.py
rlskoeser/inscriptis
e23f79a4ad561f53943c3c6dd70a7d4981b0e0fb
[ "Apache-2.0" ]
20
2016-01-14T12:50:55.000Z
2022-03-04T07:26:30.000Z
#!/usr/bin/env python # encoding: utf-8 """Classes used for rendering (parts) of the canvas. Every parsed :class:`~inscriptis.model.html_element.HtmlElement` writes its textual content to the canvas which is managed by the following three classes: - :class:`Canvas` provides the drawing board on which the HTML page...
38.248447
79
0.636733
758
6,158
5.030343
0.228232
0.084972
0.092316
0.029898
0.278521
0.215578
0.169945
0.150538
0.140047
0.116968
0
0.002253
0.279149
6,158
160
80
38.4875
0.856724
0.37025
0
0.194805
0
0
0.016271
0
0
0
0
0
0
1
0.142857
false
0
0.064935
0
0.298701
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
ef4351fb100c957415ebe720f79b5a02ebc2c300
9,324
py
Python
tests/webtests/test_admin.py
zodman/ZoomFoundry
87a69f519a2ab6b63aeec0a564ce41259e64f88d
[ "MIT" ]
8
2017-04-10T09:53:15.000Z
2020-08-16T09:53:14.000Z
tests/webtests/test_admin.py
zodman/ZoomFoundry
87a69f519a2ab6b63aeec0a564ce41259e64f88d
[ "MIT" ]
49
2017-04-13T22:51:48.000Z
2019-08-15T22:53:25.000Z
tests/webtests/test_admin.py
zodman/ZoomFoundry
87a69f519a2ab6b63aeec0a564ce41259e64f88d
[ "MIT" ]
12
2017-04-11T04:16:47.000Z
2019-08-10T21:41:54.000Z
# -*- coding: utf-8 -*- """ zoom.tests.webdriver_tests.test_admin test admin app functions """ from zoom.testing.webtest import AdminTestCase class SystemTests(AdminTestCase): """MyApp system tests""" def add_user(self, first_name, last_name, email, username): self.get('/admin') s...
30.976744
88
0.569284
1,025
9,324
5.092683
0.102439
0.065709
0.112644
0.113793
0.77682
0.765134
0.730077
0.681418
0.659195
0.591379
0
0.005608
0.273273
9,324
300
89
31.08
0.764758
0.054912
0
0.755869
0
0
0.278094
0.063027
0
0
0
0
0.244131
1
0.061033
false
0
0.004695
0
0.070423
0
0
0
0
null
0
0
0
0
1
1
0
0
0
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
3
ef44efdf1df1a7a380310f517a87f13a57e2f804
1,832
py
Python
server/app.py
Catsvilles/Lofi
f3a783a5ba3e80e6c8f958990f6f09767d25a48e
[ "Apache-2.0" ]
27
2021-07-14T17:12:29.000Z
2022-03-18T16:15:18.000Z
server/app.py
Catsvilles/Lofi
f3a783a5ba3e80e6c8f958990f6f09767d25a48e
[ "Apache-2.0" ]
3
2021-08-29T11:22:04.000Z
2022-02-16T23:20:04.000Z
server/app.py
Catsvilles/Lofi
f3a783a5ba3e80e6c8f958990f6f09767d25a48e
[ "Apache-2.0" ]
4
2021-07-25T09:55:09.000Z
2022-03-25T17:16:18.000Z
import json import torch from flask import Flask, request, jsonify from flask_limiter import Limiter from flask_limiter.util import get_remote_address from model.lofi2lofi_model import Decoder as Lofi2LofiDecoder from model.lyrics2lofi_model import Lyrics2LofiModel from server.lofi2lofi_generate import decode from se...
29.548387
90
0.771288
227
1,832
6.013216
0.321586
0.082051
0.023443
0.026374
0.250549
0.215385
0.175824
0.118681
0.118681
0.118681
0
0.017802
0.110808
1,832
61
91
30.032787
0.820135
0
0
0.166667
0
0
0.158843
0.088428
0
0
0
0
0
1
0.0625
false
0
0.1875
0.020833
0.3125
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ef473c6a7f8ab89bcd75652de804e2198dfb2d97
1,153
py
Python
cw-bitcoin-price.py
buraktokman/Crypto-Exchange-Data-Fetcher
23e6ba542ff7a862af3247db2c04c2c10a5f3edf
[ "MIT" ]
1
2021-08-09T07:22:25.000Z
2021-08-09T07:22:25.000Z
cw-bitcoin-price.py
buraktokman/Crypto-Exchange-Data-Fetcher
23e6ba542ff7a862af3247db2c04c2c10a5f3edf
[ "MIT" ]
null
null
null
cw-bitcoin-price.py
buraktokman/Crypto-Exchange-Data-Fetcher
23e6ba542ff7a862af3247db2c04c2c10a5f3edf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' Cryptowat.ch API https://cryptowat.ch/docs/api https://api.cryptowat.ch/markets/prices ''' import urllib.request, json, datetime, time from urllib.request import urlopen from pathlib import Path csv_file_price = Path(__file__).parents[0] / 'data' / 'cryptowatch-bitcoin-price2.csv' def requ...
26.813953
86
0.633998
150
1,153
4.733333
0.446667
0.061972
0.080282
0.053521
0.090141
0.090141
0
0
0
0
0
0.006593
0.210755
1,153
42
87
27.452381
0.773626
0.180399
0
0.076923
0
0
0.115508
0.032086
0
0
0
0
0
1
0.076923
false
0
0.115385
0
0.230769
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
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
ef477b67fc29e51e58555a187fcad861bf802178
3,516
py
Python
Actor_critic/actor_critic_test.py
aniketSanap/RL-session
68243121277c24509585f51fd01f53fe8d41f119
[ "MIT" ]
null
null
null
Actor_critic/actor_critic_test.py
aniketSanap/RL-session
68243121277c24509585f51fd01f53fe8d41f119
[ "MIT" ]
null
null
null
Actor_critic/actor_critic_test.py
aniketSanap/RL-session
68243121277c24509585f51fd01f53fe8d41f119
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """actor_critic.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/17Gpya9yswf-xonOvKhoHpmQGhCYpq8x4 """ # !pip install box2d-py # !pip install gym[Box_2D] import torch from torch import nn from torch.nn import functional as...
32.859813
103
0.593003
433
3,516
4.635104
0.339492
0.035874
0.045341
0.010463
0.066268
0.049826
0.032885
0
0
0
0
0.021053
0.297497
3,516
107
104
32.859813
0.791498
0.120592
0
0.051282
1
0
0.039623
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.217949
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ef488748bc20e35c68916d75dae55ef743e1069d
6,145
py
Python
python/orz/sta2json.py
ViewFaceCore/OpenRoleZoo
19cef3cdc5238374cedcf7068dc7a6ad8448c21b
[ "BSD-2-Clause" ]
null
null
null
python/orz/sta2json.py
ViewFaceCore/OpenRoleZoo
19cef3cdc5238374cedcf7068dc7a6ad8448c21b
[ "BSD-2-Clause" ]
null
null
null
python/orz/sta2json.py
ViewFaceCore/OpenRoleZoo
19cef3cdc5238374cedcf7068dc7a6ad8448c21b
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # coding: UTF-8 import os import struct from .sta import * import json import copy import base64 from collections import OrderedDict class Stream: def __init__(self, byte): self.byte = byte self.index = 0 def read(self, size=None): data = '' if size is N...
28.449074
73
0.593979
794
6,145
4.492443
0.157431
0.060555
0.024671
0.026913
0.508831
0.367816
0.359406
0.325764
0.325764
0.303897
0
0.014189
0.277461
6,145
215
74
28.581395
0.789189
0.172823
0
0.285714
0
0
0.075556
0
0
0
0
0
0
1
0.090226
false
0
0.052632
0.015038
0.293233
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
ef4888a9795dbbe5df0abc36429c88521fbd3e99
1,494
py
Python
872 Leaf-Similar Trees.py
krishna13052001/LeetCode
cd6ec626bea61f0bd9e8493622074f9e69a7a1c3
[ "MIT" ]
872
2015-06-15T12:02:41.000Z
2022-03-30T08:44:35.000Z
872 Leaf-Similar Trees.py
nadeemshaikh-github/LeetCode
3fb14aeea62a960442e47dfde9f964c7ffce32be
[ "MIT" ]
8
2015-06-21T15:11:59.000Z
2022-02-01T11:22:34.000Z
872 Leaf-Similar Trees.py
nadeemshaikh-github/LeetCode
3fb14aeea62a960442e47dfde9f964c7ffce32be
[ "MIT" ]
328
2015-06-28T03:10:35.000Z
2022-03-29T11:05:28.000Z
#!/usr/bin/python3 """ Consider all the leaves of a binary tree. From left to right order, the values of those leaves form a leaf value sequence. For example, in the given tree above, the leaf value sequence is (6, 7, 4, 9, 8). Two binary trees are considered leaf-similar if their leaf value sequence is the same. R...
25.758621
80
0.566934
213
1,494
3.957746
0.469484
0.032028
0.060498
0.045077
0
0
0
0
0
0
0
0.020877
0.358768
1,494
57
81
26.210526
0.859081
0.419009
0
0
0
0
0
0
0
0
0
0
0
1
0.107143
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ef49bf29b2b0c7109f207a688a3d0065e565a25b
332
py
Python
skp_edu_docker/code/chatbot/common/chat_knowledge_mem_dict.py
TensorMSA/hoyai_docker
12f0041e6306d8a6421585a4b51666bad30be442
[ "MIT" ]
8
2017-06-16T00:19:12.000Z
2020-08-13T03:15:57.000Z
skp_edu_docker/code/chatbot/common/chat_knowledge_mem_dict.py
TensorMSA/tensormsa_docker
12f0041e6306d8a6421585a4b51666bad30be442
[ "MIT" ]
21
2017-06-09T10:15:14.000Z
2018-03-29T07:51:02.000Z
skp_edu_docker/code/chatbot/common/chat_knowledge_mem_dict.py
TensorMSA/hoyai_docker
12f0041e6306d8a6421585a4b51666bad30be442
[ "MIT" ]
4
2017-10-25T09:59:53.000Z
2020-05-07T09:51:11.000Z
class ChatKnowledgeMemDict: """ class for storing dict data on the django memory for speed up dict search action """ # cc_id - entitiy_id -value list ngram = {} ngram_order = {} ngram_conf = {} data = {} data_conf = {} data_order = {} #ordered proper_noun synonym = {} ...
23.714286
53
0.581325
38
332
4.894737
0.684211
0.086022
0
0
0
0
0
0
0
0
0
0
0.313253
332
14
54
23.714286
0.815789
0.400602
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ef4f605e514f18c935ef699c3ca9417a54b457c9
2,465
py
Python
apollo/auth.py
sorinbiriescu/Apollo_backend
b6fb68a26487a138e7efd691e7fdffaa5042a155
[ "Apache-2.0" ]
null
null
null
apollo/auth.py
sorinbiriescu/Apollo_backend
b6fb68a26487a138e7efd691e7fdffaa5042a155
[ "Apache-2.0" ]
null
null
null
apollo/auth.py
sorinbiriescu/Apollo_backend
b6fb68a26487a138e7efd691e7fdffaa5042a155
[ "Apache-2.0" ]
null
null
null
from datetime import datetime, timedelta from typing import Optional from fastapi import Depends, HTTPException, status from fastapi.security import OAuth2PasswordBearer from jose import JWTError, jwt from passlib.context import CryptContext from apollo.crud import query_first_user from apollo.main import si...
30.060976
103
0.710345
291
2,465
5.810997
0.347079
0.035482
0.024837
0.031934
0.073329
0.036665
0.036665
0
0
0
0
0.006701
0.212982
2,465
81
104
30.432099
0.864948
0
0
0.157895
0
0
0.037783
0
0
0
0
0
0
1
0.087719
false
0.157895
0.157895
0.035088
0.403509
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
ef519f677beac77f2c2e144f66d4be64d1cbd341
200
py
Python
main.py
Gabriel-ino/Automated-Sticker-Hero
d76952cc35f051b7d9562912f0a063fed6f75068
[ "MIT" ]
null
null
null
main.py
Gabriel-ino/Automated-Sticker-Hero
d76952cc35f051b7d9562912f0a063fed6f75068
[ "MIT" ]
null
null
null
main.py
Gabriel-ino/Automated-Sticker-Hero
d76952cc35f051b7d9562912f0a063fed6f75068
[ "MIT" ]
null
null
null
from App import App from utils.get_screen_size import get_screen_size if __name__ == "__main__": app = App() h, w, ch = get_screen_size() while True: app.proccessing(h, w, ch)
16.666667
49
0.655
31
200
3.774194
0.516129
0.230769
0.333333
0
0
0
0
0
0
0
0
0
0.245
200
11
50
18.181818
0.774834
0
0
0
0
0
0.040404
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ef51f52103e4f12bc37feb84f6d66527017f0c6d
1,836
py
Python
dgp/core/config_validators.py
dataspot/dgp
553a255a4884b935cf2efecdc761050232f0f066
[ "MIT" ]
1
2019-07-17T11:34:27.000Z
2019-07-17T11:34:27.000Z
dgp/core/config_validators.py
datahq/dgp
f39592ce20ba67b73b08188f14585b6eb3d43f96
[ "MIT" ]
2
2019-04-30T12:32:32.000Z
2019-04-30T12:35:26.000Z
dgp/core/config_validators.py
dataspot/dgp
553a255a4884b935cf2efecdc761050232f0f066
[ "MIT" ]
null
null
null
class BaseValidator(): MISSING = 0 INVALID = 1 def check(self, config): raise NotImplementedError() class Validator(BaseValidator): def __init__(self, *validators): self._validators = validators def check(self, config): errors = [] for validator in self._validat...
27.402985
113
0.606209
189
1,836
5.751323
0.206349
0.096596
0.082797
0.066237
0.517019
0.443422
0.443422
0.443422
0.443422
0.345906
0
0.001531
0.288671
1,836
66
114
27.818182
0.830781
0
0
0.416667
0
0
0.041939
0
0
0
0
0
0
1
0.208333
false
0
0
0.020833
0.541667
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
ef53ba7f982e4f61582b4dfc595af89608ab9da3
3,695
py
Python
third_party/graphy/graphy/common_test.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/graphy/graphy/common_test.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
third_party/graphy/graphy/common_test.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
33.899083
74
0.707984
481
3,695
5.380457
0.322245
0.048686
0.041731
0.053323
0.316461
0.316461
0.204791
0.188949
0.155719
0.078825
0
0.020541
0.169959
3,695
108
75
34.212963
0.82328
0.223545
0
0.144928
0
0
0.039112
0
0
0
0
0.009259
0.347826
1
0.130435
false
0
0.057971
0
0.202899
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
ef53e0e036cb078d36e154064142222b1dfe4d85
608
py
Python
projects/utils_func/fetch_data.py
blitty-codes/ml-proyects
97d41757cfb45209bbbb09e4c3b51e20c4328a30
[ "Apache-2.0" ]
null
null
null
projects/utils_func/fetch_data.py
blitty-codes/ml-proyects
97d41757cfb45209bbbb09e4c3b51e20c4328a30
[ "Apache-2.0" ]
null
null
null
projects/utils_func/fetch_data.py
blitty-codes/ml-proyects
97d41757cfb45209bbbb09e4c3b51e20c4328a30
[ "Apache-2.0" ]
null
null
null
# Download the data you import os import tarfile import requests def fetch_data(dataset_url): file_name = dataset_url.split('/')[-1] dataset_path = os.path.join("datasets", file_name.split('.')[0]) print(dataset_path) print(f"File name: {file_name.split('.')[0]}") os.makedirs(dataset_path, exist_o...
27.636364
68
0.692434
90
608
4.455556
0.4
0.099751
0.049875
0.069825
0
0
0
0
0
0
0
0.005906
0.164474
608
21
69
28.952381
0.783465
0.034539
0
0
0
0
0.100855
0.042735
0
0
0
0
0
1
0.0625
false
0
0.1875
0
0.25
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ef54bb20c88dda93a302698251aa2e77667dc8a2
4,526
py
Python
xpython/builtins.py
pmp-p/x-python
e5bdc15af1bf9cf696b2d9a8e1a02a4863b1fb8a
[ "MIT" ]
null
null
null
xpython/builtins.py
pmp-p/x-python
e5bdc15af1bf9cf696b2d9a8e1a02a4863b1fb8a
[ "MIT" ]
null
null
null
xpython/builtins.py
pmp-p/x-python
e5bdc15af1bf9cf696b2d9a8e1a02a4863b1fb8a
[ "MIT" ]
null
null
null
""" A place to implement built-in functions. We use the bytecode for these when doing cross-version interpreting """ from xpython.pyobj import Function, Cell, make_cell from xdis import codeType2Portable, PYTHON_VERSION, IS_PYPY def func_code(func): if hasattr(func, "func_code"): return func.func_code ...
32.328571
84
0.650685
588
4,526
4.807823
0.363946
0.019809
0.018394
0.012027
0
0
0
0
0
0
0
0.011367
0.261379
4,526
139
85
32.561151
0.834281
0.455148
0
0.047619
0
0
0.092257
0
0
0
0
0
0.015873
1
0.047619
false
0.015873
0.047619
0
0.15873
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
ef58bac3885ae00f40f0903957d207828fe3e0c6
857
py
Python
config/object_detection_retinanet_config.py
kadirtereci/Keras-retinanet-Training-on-custom-datasets-for-Object-Detection--
5baacf4475f3679b96ea2001994a575ec0a72bf0
[ "Apache-2.0" ]
null
null
null
config/object_detection_retinanet_config.py
kadirtereci/Keras-retinanet-Training-on-custom-datasets-for-Object-Detection--
5baacf4475f3679b96ea2001994a575ec0a72bf0
[ "Apache-2.0" ]
null
null
null
config/object_detection_retinanet_config.py
kadirtereci/Keras-retinanet-Training-on-custom-datasets-for-Object-Detection--
5baacf4475f3679b96ea2001994a575ec0a72bf0
[ "Apache-2.0" ]
null
null
null
# import the necessary packages import os # Set the dataset base path here BASE_PATH = "/content/Keras-retinanet-Training-on-custom-datasets-for-Object-Detection--/dataset" # build the path to the annotations and input images ANNOT_PATH = os.path.sep.join([BASE_PATH, 'annotations']) IMAGES_PATH = os.path.sep.join([BA...
35.708333
97
0.757293
142
857
4.450704
0.34507
0.101266
0.085443
0.123418
0.371835
0.344937
0.275316
0
0
0
0
0.005355
0.128355
857
23
98
37.26087
0.840696
0.425904
0
0
0
0.111111
0.287785
0.171843
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
ef593e9168b64350b18b0f9f56ed9f30d578e6cf
4,199
py
Python
CiTOCrawler/OC/script/static_lode.py
patmha/CiTOCrawler
6c5027f42aacc2d250305e5e877bc271470acde5
[ "BSD-3-Clause" ]
null
null
null
CiTOCrawler/OC/script/static_lode.py
patmha/CiTOCrawler
6c5027f42aacc2d250305e5e877bc271470acde5
[ "BSD-3-Clause" ]
null
null
null
CiTOCrawler/OC/script/static_lode.py
patmha/CiTOCrawler
6c5027f42aacc2d250305e5e877bc271470acde5
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2016, Silvio Peroni <essepuntato@gmail.com> # # Permission to use, copy, modify, and/or distribute this software for any purpose # with or without fee is hereby granted, provided that the above copyright notice # and this permission notice appear in all copies. # # THE SOFTWARE I...
49.988095
112
0.635389
558
4,199
4.614695
0.370968
0.024466
0.027961
0.046602
0.037282
0.020194
0.020194
0
0
0
0
0.003502
0.251965
4,199
83
113
50.590361
0.816301
0.219576
0
0
0
0
0.24816
0.02362
0
0
0
0
0
0
null
null
0
0.175439
null
null
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ef59c84efb2830bb4da68800485a32f52a474ab9
14,738
py
Python
src/c4/cmany/cmake.py
biojppm/cmany
b20c24169d60077122ae29a0c09526913340fd5c
[ "MIT" ]
20
2017-05-17T18:43:08.000Z
2021-02-13T16:20:53.000Z
src/c4/cmany/cmake.py
biojppm/cmany
b20c24169d60077122ae29a0c09526913340fd5c
[ "MIT" ]
8
2017-06-04T17:01:06.000Z
2022-03-17T12:43:32.000Z
src/c4/cmany/cmake.py
biojppm/cmany
b20c24169d60077122ae29a0c09526913340fd5c
[ "MIT" ]
1
2017-06-04T13:09:19.000Z
2017-06-04T13:09:19.000Z
import re import os from collections import OrderedDict as odict from .conf import USER_DIR from .util import cacheattr, setcwd, runsyscmd, logdbg from . import util from . import err _cache_entry = r'^(.*?)(:.*?)=(.*)$' def hascache(builddir): c = os.path.join(builddir, 'CMakeCache.txt') if os.path.exists...
36.937343
125
0.519677
1,670
14,738
4.449102
0.181437
0.016151
0.014536
0.012113
0.259219
0.189233
0.134051
0.11467
0.068371
0.037147
0
0.003567
0.296105
14,738
398
126
37.030151
0.712647
0.210544
0
0.212454
0
0
0.113199
0.014161
0
0
0
0.002513
0
1
0.120879
false
0
0.040293
0.029304
0.311355
0.003663
0
0
0
null
0
0
0
0
0
0
0
0
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
ef5a62962aed890737736832f581c39140877b07
2,130
py
Python
Python/Searching/2/quick_select.py
Tikam02/Data_Structure_Algorithms
7c17f744975a72fa42f0f3f892c0b7e041cdef0c
[ "MIT" ]
5
2017-08-03T06:33:49.000Z
2021-08-06T13:20:57.000Z
Python/Searching/2/quick_select.py
Tikam02/Data_Structure_Algorithms
7c17f744975a72fa42f0f3f892c0b7e041cdef0c
[ "MIT" ]
null
null
null
Python/Searching/2/quick_select.py
Tikam02/Data_Structure_Algorithms
7c17f744975a72fa42f0f3f892c0b7e041cdef0c
[ "MIT" ]
6
2017-04-27T13:30:49.000Z
2020-11-01T20:28:55.000Z
#!/usr/bin/env python __author__ = "bt3" import random ''' The simplest way...''' def quickSelect(seq, k): # this part is the same as quick sort len_seq = len(seq) if len_seq < 2: return seq # we could use a random choice here doing #pivot = random.choice(seq) ipivot = len_seq // 2 pivo...
23.932584
78
0.597653
322
2,130
3.906832
0.39441
0.038156
0.022258
0.020668
0.103339
0.103339
0.103339
0.060413
0.060413
0.060413
0
0.035738
0.29061
2,130
89
79
23.932584
0.796823
0.238967
0
0.085106
0
0
0.007373
0
0
0
0
0
0
0
null
null
0
0.042553
null
null
0.06383
0
0
0
null
0
0
0
0
0
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
ef5b7b88dd380eec142de24fd5621ee02381ea01
3,744
py
Python
RGB_extraction_maize_diversity.py
xiangjunli/Maize_Phenotype_Map
15765c1a9a58bdf5cfca5602e09e9cbe74d12b98
[ "BSD-3-Clause" ]
4
2018-02-06T21:15:31.000Z
2018-07-28T14:00:17.000Z
RGB_extraction_maize_diversity.py
xiangjunli/Maize_Phenotype_Map
15765c1a9a58bdf5cfca5602e09e9cbe74d12b98
[ "BSD-3-Clause" ]
null
null
null
RGB_extraction_maize_diversity.py
xiangjunli/Maize_Phenotype_Map
15765c1a9a58bdf5cfca5602e09e9cbe74d12b98
[ "BSD-3-Clause" ]
2
2020-02-07T18:26:09.000Z
2020-10-16T15:52:56.000Z
import numpy as np import cv2 import sys import os #######################RGB Image Data Analysis############################################################ ###Should follow the data structure of image data: Genotype --> Replicates (Plants) --> Different Views --> Image captured by each Day### # mfold defines the fol...
32
174
0.626603
610
3,744
3.82459
0.362295
0.033005
0.007715
0.024432
0.058294
0.032576
0
0
0
0
0
0.04514
0.18937
3,744
116
175
32.275862
0.723558
0.236111
0
0.058824
0
0
0.091534
0.008683
0
0
0
0
0
1
0.019608
false
0
0.039216
0
0.078431
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
ef5c0e5ff1790c1367e3395cb63ad1ddf91375ef
4,620
py
Python
cgtools/skinning.py
tneumann/cgtools
8f77b6a4642fe79ac85b8449ebd3f72ea0e56032
[ "MIT" ]
10
2019-05-02T14:08:32.000Z
2021-03-15T16:07:19.000Z
cgtools/skinning.py
tneumann/cgtools
8f77b6a4642fe79ac85b8449ebd3f72ea0e56032
[ "MIT" ]
null
null
null
cgtools/skinning.py
tneumann/cgtools
8f77b6a4642fe79ac85b8449ebd3f72ea0e56032
[ "MIT" ]
3
2019-05-02T14:08:33.000Z
2021-02-10T03:47:29.000Z
import numpy as np from . import vector as V def rbm_to_dualquat(rbm): import cgkit.cgtypes as cg q0 = cg.quat().fromMat(cg.mat3(rbm[:3,:3].T.tolist())) q0 = q0.normalize() q0 = np.array([q0.w, q0.x, q0.y, q0.z]) t = rbm[:3, 3] q1 = np.array([ -0.5*( t[0]*q0[1] + t[1]*q0[2] + t[2]*...
37.868852
104
0.515368
855
4,620
2.74269
0.181287
0.016205
0.010235
0.008529
0.219616
0.165458
0.165458
0.104904
0.0742
0.0742
0
0.092855
0.282035
4,620
121
105
38.181818
0.614109
0.146537
0
0.020408
0
0.102041
0.345562
0
0
0
0
0.008264
0
1
0.05102
false
0
0.040816
0
0.153061
0.010204
0
0
0
null
0
0
0
0
0
0
0
0
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
ef5cca29cfc460b593d8a2ef7fb0d7625f148237
2,214
py
Python
methods/self_attention.py
uyplayer/machine_learning_notice
9f6c4a9a5e278321611d9be1e8fa46bf9a1bd416
[ "Apache-2.0" ]
1
2019-12-10T12:27:33.000Z
2019-12-10T12:27:33.000Z
methods/self_attention.py
uyplayer/machine_learning_notice
9f6c4a9a5e278321611d9be1e8fa46bf9a1bd416
[ "Apache-2.0" ]
null
null
null
methods/self_attention.py
uyplayer/machine_learning_notice
9f6c4a9a5e278321611d9be1e8fa46bf9a1bd416
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Team : uyplayer team # Author: uyplayer # Date :2019/11/20 下午4:22 # Tool :PyCharm ''' https://blog.csdn.net/c9Yv2cf9I06K2A9E/article/details/79739287 https://msd.misuland.com/pd/13340603045208861 ''' class AttnDecoderRNN(nn.Module): def __init__(self, hidden_size, output_size, dr...
41.773585
88
0.653117
264
2,214
5.314394
0.359848
0.078403
0.099786
0.064148
0.112616
0.038489
0.038489
0
0
0
0
0.051795
0.232611
2,214
53
89
41.773585
0.773985
0.250678
0
0
0
0
0
0
0
0
0
0
0
1
0.103448
false
0
0
0.034483
0.206897
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
ef5e5867ee1d6b8b8d8f0bd5472d8f25ae61b5ab
497
py
Python
Aniyom Ebenezer/phase 1/python 2 basis/Day_21_Challenge_Solution/Question 6 Solution.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Aniyom Ebenezer/phase 1/python 2 basis/Day_21_Challenge_Solution/Question 6 Solution.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Aniyom Ebenezer/phase 1/python 2 basis/Day_21_Challenge_Solution/Question 6 Solution.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
""" Write a Python program that reads a date (from 2016/1/1 to 2016/12/31) and prints the day of the date. Jan. 1, 2016, is Friday. Note that 2016 is a leap year. """ from datetime import date print("Input month and date(separated by a single space): ") m, d = map(int, input().split()) weeks = {1: "Monday", 2: "Tuesda...
33.133333
106
0.668008
86
497
3.860465
0.651163
0.03012
0.054217
0
0
0
0
0
0
0
0
0.084337
0.16499
497
15
107
33.133333
0.715663
0.366197
0
0
0
0
0.386364
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
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
ef5e8dee6b61a5247d6e4659a6ab926d4b74a1e7
347
py
Python
test15.py
cherytony/test1
506ce4cab6f641beff817c81d7a616db29a7131d
[ "Apache-2.0" ]
null
null
null
test15.py
cherytony/test1
506ce4cab6f641beff817c81d7a616db29a7131d
[ "Apache-2.0" ]
null
null
null
test15.py
cherytony/test1
506ce4cab6f641beff817c81d7a616db29a7131d
[ "Apache-2.0" ]
null
null
null
""" 题目描述 给定n个字符串,请对n个字符串按照字典序排列。 输入描述: 输入第一行为一个正整数n(1≤n≤1000),下面n行为n个字符串(字符串长度≤100),字符串中只含有大小写字母。 输出描述: 数据输出n行,输出结果为按照字典序排列的字符串。 示例1 输入 9 cap to cat card two too up boat boot 输出 boat boot cap card cat to too two up """ list = [] n = int(input()) for i in range(0, n): s = input() list.append(s) list.sort() f...
8.069767
58
0.674352
63
347
3.761905
0.650794
0.067511
0.050633
0
0
0
0
0
0
0
0
0.039286
0.193084
347
42
59
8.261905
0.796429
0.605187
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ef5eca1f199c276a6c88e8c9f58fbad72f2074cb
1,340
py
Python
sim/cell.py
raalesir/sim
9bd994b1dedd05ca88ab9f25cbca3bc28cadc04b
[ "MIT" ]
null
null
null
sim/cell.py
raalesir/sim
9bd994b1dedd05ca88ab9f25cbca3bc28cadc04b
[ "MIT" ]
null
null
null
sim/cell.py
raalesir/sim
9bd994b1dedd05ca88ab9f25cbca3bc28cadc04b
[ "MIT" ]
null
null
null
class CubicCell: """ represents confining cell for the polymer """ def __init__(self, a,b,c): """ init the cell :param a: ``OX`` dimension :type a: int :param b: ``OY`` dimension :type b: int :param c: ``OZ`` dimension :type c: int ...
20.30303
129
0.506716
188
1,340
3.462766
0.281915
0.046083
0.013825
0.036866
0.37788
0.353303
0.264209
0.264209
0.172043
0.172043
0
0.004646
0.357463
1,340
65
130
20.615385
0.751452
0.263433
0
0.105263
0
0.105263
0.212687
0
0
0
0
0
0
1
0.315789
false
0
0
0.105263
0.631579
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
ef5fbbee42c9df1a0ff003ab57c38b8bb1ccfe30
2,558
py
Python
0-EXP-TIRA-C10.py
webis-de/Luyckx2008
a7b2711a354a71ba326ddb1e495a8343091e4d8c
[ "Unlicense" ]
null
null
null
0-EXP-TIRA-C10.py
webis-de/Luyckx2008
a7b2711a354a71ba326ddb1e495a8343091e4d8c
[ "Unlicense" ]
null
null
null
0-EXP-TIRA-C10.py
webis-de/Luyckx2008
a7b2711a354a71ba326ddb1e495a8343091e4d8c
[ "Unlicense" ]
null
null
null
import jsonhandler from LuyckxFeatures import * import timblClassification as timbl import os import numpy as np from collections import Counter def parseC10(c10_path): jsonhandler.loadJson(c10_path) jsonhandler.loadTraining() candidates = jsonhandler.candidates unknowns = jsonhandler.unknowns f...
38.179104
86
0.670837
303
2,558
5.613861
0.277228
0.009406
0.005291
0.029982
0.260435
0.189888
0.095238
0.095238
0
0
0
0.014507
0.191556
2,558
66
87
38.757576
0.808027
0.015637
0
0.241379
0
0
0.051731
0
0
0
0
0
0
1
0.017241
false
0
0.103448
0
0.12069
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
ef6043c616af761fa9470ba29ff276fd15c95e0d
3,133
py
Python
bus.py
resc863/Kakao_Chatbot
fe4a038de323ad733cd49e69c7ceb283a36bef0c
[ "MIT" ]
1
2020-08-01T13:42:26.000Z
2020-08-01T13:42:26.000Z
bus.py
resc863/Kakao_Chatbot
fe4a038de323ad733cd49e69c7ceb283a36bef0c
[ "MIT" ]
null
null
null
bus.py
resc863/Kakao_Chatbot
fe4a038de323ad733cd49e69c7ceb283a36bef0c
[ "MIT" ]
1
2021-08-24T14:02:32.000Z
2021-08-24T14:02:32.000Z
from bs4 import BeautifulSoup from multiprocessing import Pool import requests def lineid(lineno): lineurl = "http://61.43.246.153/openapi-data/service/busanBIMS2/busInfo?lineno="+lineno+"&serviceKey=0XeO7nbthbiRoMUkYGGah20%2BfXizwc0A6BfjrkL6qhh2%2Fsl8j9PzfSLGKnqR%2F1v%2F%2B6AunxntpLfoB3Ryd3OInQ%3D%3D" lin...
27.243478
210
0.616981
363
3,133
5.30303
0.30303
0.043636
0.016623
0.022857
0.362597
0.362597
0.362597
0.362597
0.362597
0.20987
0
0.08144
0.255346
3,133
114
211
27.482456
0.743678
0
0
0.166667
0
0.047619
0.301309
0.072774
0
0
0
0
0
1
0.059524
false
0
0.035714
0
0.154762
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
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
ef60ce6fc063e157d7dfaad93f8114a633854b16
4,256
py
Python
model_training.py
PatriceC/MLProjectISDP2020
64e83824690ccde2714d915c70fb00b20aa66a42
[ "MIT" ]
1
2021-01-23T01:04:00.000Z
2021-01-23T01:04:00.000Z
model_training.py
cor3ntino/Time-Series-Prediction-with-Deep-Learning-for-Road-Trafic-Data
e8eefdf2e630a53e09f88550357b67732f2bccd0
[ "MIT" ]
null
null
null
model_training.py
cor3ntino/Time-Series-Prediction-with-Deep-Learning-for-Road-Trafic-Data
e8eefdf2e630a53e09f88550357b67732f2bccd0
[ "MIT" ]
1
2021-01-19T16:57:27.000Z
2021-01-19T16:57:27.000Z
# -*- coding: utf-8 -*- """ Created on Mon Nov 23 13:54:58 2020 @author: Patrice CHANOL & Corentin MORVAN--CHAUMEIL """ import numpy as np import torch import time import visualisation from datetime import datetime def main(model, criterion, optimizer, scheduler, data_train_loader, data_test_loader, num_epochs, inp...
34.322581
140
0.608083
493
4,256
5.06288
0.320487
0.072115
0.019231
0.027644
0.099359
0.030449
0.030449
0
0
0
0
0.012387
0.298167
4,256
123
141
34.601626
0.823234
0.294878
0
0.16
0
0
0.048438
0
0
0
0
0
0
1
0.02
false
0
0.1
0
0.14
0.12
0
0
0
null
0
0
0
0
0
0
0
0
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
ef61b3b08001b19237e5f7463a25cc96b621c9fe
3,679
py
Python
process_data.py
johnnyp2587/fx-drqn
0ea8a4ad673a1883dd4630a69629c75c8f49148c
[ "MIT" ]
1
2021-01-30T11:50:54.000Z
2021-01-30T11:50:54.000Z
process_data.py
johnnyp2587/fx-drqn
0ea8a4ad673a1883dd4630a69629c75c8f49148c
[ "MIT" ]
null
null
null
process_data.py
johnnyp2587/fx-drqn
0ea8a4ad673a1883dd4630a69629c75c8f49148c
[ "MIT" ]
2
2021-01-30T11:50:57.000Z
2021-02-04T15:43:54.000Z
import numpy as np import pandas as pd import datetime def gen_cols(Pad, cur, lag): currency = list(np.sort(Pad['currency pair'].unique())) tmp = Pad[Pad['currency pair'] == cur].sort_values(by=['timestamp']) for i in range(1,lag+1): colname1 = 'bid_lag_' + str(i) colname2 = 'ask_lag_' + st...
37.927835
113
0.580864
559
3,679
3.588551
0.232558
0.071785
0.034895
0.044865
0.228315
0.081755
0.081755
0.065803
0.065803
0.033898
0
0.073726
0.247893
3,679
96
114
38.322917
0.651247
0
0
0.078652
0
0
0.120413
0
0
0
0
0
0
1
0.022472
false
0.011236
0.033708
0
0.067416
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
ef625fbf84f8e46aa31c085f3762960c2186790e
3,863
py
Python
benchmark.py
tgisaturday/minGPT
3ff862f7fac8adbc3dcdf0693d996468fd4c3f7b
[ "MIT" ]
null
null
null
benchmark.py
tgisaturday/minGPT
3ff862f7fac8adbc3dcdf0693d996468fd4c3f7b
[ "MIT" ]
null
null
null
benchmark.py
tgisaturday/minGPT
3ff862f7fac8adbc3dcdf0693d996468fd4c3f7b
[ "MIT" ]
null
null
null
import math import os from argparse import ArgumentParser import numpy as np import torch from pytorch_lightning import Trainer from pytorch_lightning import seed_everything from pytorch_lightning.utilities import rank_zero_info from pytorch_lightning.callbacks import XLAStatsMonitor from torch.utils.data import Datas...
36.443396
119
0.681077
535
3,863
4.700935
0.330841
0.053678
0.047316
0.031809
0.249304
0.17336
0.153479
0.089861
0.089861
0.089861
0
0.012426
0.208387
3,863
105
120
36.790476
0.810007
0.069635
0
0.073171
0
0.02439
0.093341
0
0
0
0
0
0
1
0.073171
false
0
0.158537
0.02439
0.292683
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
ef62a93780f5d22fd2c5c963cb04b78649fda229
2,059
py
Python
weather.py
corgiclub/CorgiBot_telegram
a63d91a74ee497b9a405e93bd3b303367ef95268
[ "MIT" ]
null
null
null
weather.py
corgiclub/CorgiBot_telegram
a63d91a74ee497b9a405e93bd3b303367ef95268
[ "MIT" ]
null
null
null
weather.py
corgiclub/CorgiBot_telegram
a63d91a74ee497b9a405e93bd3b303367ef95268
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -* import requests import json def get_weather(city: str) -> json: req = requests.get("https://free-api.heweather.net/s6/weather?location=" "{}&key=89d6bbc3861844d59a6313c16448d293".format(city)) json_data = json.loads(req.text, encoding="UTF8") return json_data ...
44.76087
112
0.594463
280
2,059
4.175
0.3
0.076989
0.076989
0.015398
0.109495
0.083832
0.083832
0.083832
0.083832
0.083832
0
0.026119
0.219038
2,059
45
113
45.755556
0.695896
0.032054
0
0
0
0.054054
0.270854
0.069347
0
0
0
0
0
1
0.054054
false
0
0.054054
0
0.162162
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ef63d9fcd4c7ced9c5506a721a486919e70bacc7
2,536
py
Python
paz/datasets/ferplus.py
niqbal996/paz
f27205907367415d5b21f90e1a1d1d1ce598e889
[ "MIT" ]
300
2020-10-29T08:02:05.000Z
2022-03-30T21:47:32.000Z
paz/datasets/ferplus.py
albertofernandezvillan/paz
9fbd50b993f37e1e807297a29c6044c09967c9cc
[ "MIT" ]
30
2020-10-29T12:40:32.000Z
2022-03-31T14:06:35.000Z
paz/datasets/ferplus.py
albertofernandezvillan/paz
9fbd50b993f37e1e807297a29c6044c09967c9cc
[ "MIT" ]
62
2020-10-29T12:34:13.000Z
2022-03-29T05:21:45.000Z
import os import numpy as np from .utils import get_class_names from ..abstract import Loader from ..backend.image import resize_image # IMAGES_PATH = '../datasets/fer2013/fer2013.csv' # LABELS_PATH = '../datasets/fer2013/fer2013new.csv' class FERPlus(Loader): """Class for loading FER2013 emotion classification...
39.015385
79
0.613565
318
2,536
4.764151
0.393082
0.052805
0.025743
0.033663
0.063366
0.063366
0
0
0
0
0
0.035827
0.251577
2,536
64
80
39.625
0.762381
0.300079
0
0
0
0
0.06188
0
0
0
0
0
0
1
0.055556
false
0
0.138889
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ef651d134e566a45ca23483fc6b3987d980d24af
863
py
Python
code/array/container-with-most-water.py
windsuzu/leetcode-python
240ca747d58eb78b08dedf4d5a1fdc0fe0b0c6bf
[ "MIT" ]
1
2021-09-29T11:05:07.000Z
2021-09-29T11:05:07.000Z
code/array/container-with-most-water.py
windsuzu/leetcode-python
240ca747d58eb78b08dedf4d5a1fdc0fe0b0c6bf
[ "MIT" ]
null
null
null
code/array/container-with-most-water.py
windsuzu/leetcode-python
240ca747d58eb78b08dedf4d5a1fdc0fe0b0c6bf
[ "MIT" ]
1
2021-09-29T11:06:32.000Z
2021-09-29T11:06:32.000Z
from typing import List class Solution: def maxArea(self, height: List[int]) -> int: # We can create "left" and "right" pointers # the initial width between "l" and "r" is already the maximum l, r = 0, len(height) - 1 width = r - l # We can use greedy metho...
30.821429
74
0.468134
121
863
3.338843
0.46281
0.069307
0.128713
0.138614
0.168317
0.128713
0.128713
0.128713
0
0
0
0.016327
0.432213
863
28
75
30.821429
0.808163
0.391657
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ef68897796bf15cfbe41f5e79ff37ee0aa7a33e6
3,578
py
Python
src/python/DipSimUtilities.py
ndeybach/DipSim
091f147f933b000b6ab829ec7d10eef985c260b2
[ "MIT" ]
null
null
null
src/python/DipSimUtilities.py
ndeybach/DipSim
091f147f933b000b6ab829ec7d10eef985c260b2
[ "MIT" ]
null
null
null
src/python/DipSimUtilities.py
ndeybach/DipSim
091f147f933b000b6ab829ec7d10eef985c260b2
[ "MIT" ]
null
null
null
# This Python file uses the following encoding: utf-8 """ MIT License Copyright (c) 2020 Nils DEYBACH & Léo OUDART Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including ...
35.425743
149
0.734768
486
3,578
5.401235
0.423868
0.033524
0.04419
0.045714
0.064381
0.064381
0.064381
0.037714
0.037714
0.037714
0
0.023194
0.156512
3,578
100
150
35.78
0.846587
0.329793
0
0
0
0
0
0
0
0
0
0
0
1
0.205882
false
0
0.088235
0.058824
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
3226aa7f7ea523e5b462c538450fa0bfe4a22a9b
1,503
py
Python
clusterresults/rundr12xpdf10k.py
rohinkumar/CorrelCalc
d7887448af8d3dc3170c00c0aae6ee2561b8a3d5
[ "MIT" ]
null
null
null
clusterresults/rundr12xpdf10k.py
rohinkumar/CorrelCalc
d7887448af8d3dc3170c00c0aae6ee2561b8a3d5
[ "MIT" ]
null
null
null
clusterresults/rundr12xpdf10k.py
rohinkumar/CorrelCalc
d7887448af8d3dc3170c00c0aae6ee2561b8a3d5
[ "MIT" ]
null
null
null
from correlcalc import * bins = np.arange(0.002,0.062,0.002) #corrdr12flcdmls=tpcf('/usr3/vstr/yrohin/Downloads/galaxy_DR12v5_CMASS_North.fits',bins,randfile='/usr3/vstr/yrohin/randcat_dr12cmn_2x_pdf10k.dat',estimator='ls',cosmology='lcdm',weights='eq') print("--------------------------------------------") corrdr12flcl...
107.357143
204
0.685961
183
1,503
5.437158
0.224044
0.096482
0.168844
0.108543
0.854271
0.854271
0.854271
0.854271
0.854271
0.854271
0
0.056566
0.011976
1,503
13
205
115.615385
0.613468
0.421823
0
0.444444
0
0
0.588439
0.56763
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.444444
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
1
0
9
3227a055c835557ad7f0f841ab6676069d791695
10,965
py
Python
verify/imagenet.py
CAS-LRJ/DeepPAC
75059572c23474d32a762aca5640f4d799fd992a
[ "Apache-2.0" ]
null
null
null
verify/imagenet.py
CAS-LRJ/DeepPAC
75059572c23474d32a762aca5640f4d799fd992a
[ "Apache-2.0" ]
null
null
null
verify/imagenet.py
CAS-LRJ/DeepPAC
75059572c23474d32a762aca5640f4d799fd992a
[ "Apache-2.0" ]
null
null
null
import torch from torchvision import transforms from PIL import Image import numpy as np import math from sklearn.linear_model import LinearRegression from .grid import Grid, grid_split import torch.backends.cudnn as cudnn ''' Global Constants: TASK_NAME: Name of the verification task (deprecate...
43.685259
188
0.639216
1,388
10,965
4.865994
0.201729
0.032573
0.031093
0.039976
0.277169
0.236601
0.183447
0.171898
0.14584
0.139177
0
0.02526
0.263475
10,965
250
189
43.86
0.811045
0.055814
0
0.180851
0
0
0.059803
0.003329
0
0
0
0
0
1
0.015957
false
0
0.042553
0
0.085106
0.101064
0
0
0
null
0
0
0
0
0
0
0
0
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
322854f1b6ad1bef2a63f035b0bf9ea507c22498
5,537
py
Python
src/main.py
ronikleyton/script-backup-switch-huawei
80c990afa3561c350823cb96e25174262d8d4ab1
[ "MIT" ]
null
null
null
src/main.py
ronikleyton/script-backup-switch-huawei
80c990afa3561c350823cb96e25174262d8d4ab1
[ "MIT" ]
null
null
null
src/main.py
ronikleyton/script-backup-switch-huawei
80c990afa3561c350823cb96e25174262d8d4ab1
[ "MIT" ]
null
null
null
from telnetlib import Telnet from exception.exceptions import * from datetime import date import time import os from dotenv import load_dotenv import json load_dotenv() ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) f = open(f'{ROOT_DIR}/equipamentos.json') equipamentos = json.load(f)['equipamentos'] def ma...
35.722581
106
0.641683
677
5,537
5.155096
0.189069
0.19255
0.114613
0.068195
0.534384
0.475358
0.475358
0.462751
0.427794
0.427794
0
0.007696
0.225573
5,537
155
107
35.722581
0.806203
0.01806
0
0.283019
0
0
0.184763
0.009569
0
0
0
0
0
1
0.018868
false
0.09434
0.066038
0
0.09434
0.028302
0
0
0
null
0
0
0
0
0
0
0
0
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
3228d6088055f54b7b82121a3d3e109e936942b3
1,623
py
Python
setup.py
cakebread/musubi
5b5f1bdf65fe07c14ff7bb2252c278f6ca0c903c
[ "BSD-2-Clause" ]
5
2015-05-18T13:18:26.000Z
2020-01-14T08:24:08.000Z
setup.py
cakebread/musubi
5b5f1bdf65fe07c14ff7bb2252c278f6ca0c903c
[ "BSD-2-Clause" ]
null
null
null
setup.py
cakebread/musubi
5b5f1bdf65fe07c14ff7bb2252c278f6ca0c903c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python PROJECT = 'musubi' VERSION = '0.2' import distribute_setup distribute_setup.use_setuptools() from setuptools import setup, find_packages try: long_description = open('README.rst', 'rt').read() except IOError: long_description = 'Uh oh, we may need a new hard drive.' setup( name=PR...
29.509091
73
0.590265
166
1,623
5.662651
0.63253
0.06383
0.079787
0.03617
0.068085
0.068085
0
0
0
0
0
0.005059
0.269254
1,623
54
74
30.055556
0.787521
0.012323
0
0.06383
0
0
0.408864
0
0
0
0
0
0
1
0
false
0
0.042553
0
0.042553
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
3229164df79c432f6f7ad72e86350bc6d3ce6e18
1,048
py
Python
airflow_ml_dags/images/airflow-preprocess/preprocess.py
made-ml-in-prod-2021/holyketzer
f693f2d5fce8cced03873e2b89cbe10617996c64
[ "MIT" ]
null
null
null
airflow_ml_dags/images/airflow-preprocess/preprocess.py
made-ml-in-prod-2021/holyketzer
f693f2d5fce8cced03873e2b89cbe10617996c64
[ "MIT" ]
2
2021-05-21T09:09:23.000Z
2021-06-05T08:13:40.000Z
airflow_ml_dags/images/airflow-preprocess/preprocess.py
made-ml-in-prod-2021/holyketzer
f693f2d5fce8cced03873e2b89cbe10617996c64
[ "MIT" ]
null
null
null
import os import pandas as pd import click from datetime import date @click.command("preprocess") @click.option("--input-dir") @click.option("--output-dir") @click.option("--mode") def preprocess(input_dir: str, output_dir, mode): if mode == "data": data = pd.read_csv(os.path.join(input_dir, "data.csv"))...
29.942857
101
0.621183
140
1,048
4.514286
0.414286
0.050633
0.042722
0.061709
0.098101
0.098101
0.098101
0.098101
0.098101
0
0
0
0.204198
1,048
34
102
30.823529
0.757794
0
0
0
0
0
0.158397
0
0
0
0
0
0
1
0.035714
false
0
0.142857
0
0.178571
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
32298c15e29bc9b924d33fac9a984d4c8170430a
581
py
Python
estrutura_while/barra-de-progresso.py
BEp0/Estudos_de_Python
da32a01d3f4462b3e6b1b6035106895afe9c7627
[ "MIT" ]
1
2021-02-15T19:14:44.000Z
2021-02-15T19:14:44.000Z
estrutura_while/barra-de-progresso.py
BEp0/Estudos_de_Python
da32a01d3f4462b3e6b1b6035106895afe9c7627
[ "MIT" ]
null
null
null
estrutura_while/barra-de-progresso.py
BEp0/Estudos_de_Python
da32a01d3f4462b3e6b1b6035106895afe9c7627
[ "MIT" ]
null
null
null
from time import sleep from sys import stdout def barra(v): v = int(v) print('[ ', end='') for v in range(0, v): print(f'-', end='', flush=True) sleep(0.1) print(' ]', end='\n') def calcularNotas(): soma = 0 v = 0 for i in range(0, 2): nota = float(input(f'\n{i + ...
17.088235
50
0.504303
85
581
3.305882
0.447059
0.042705
0.05694
0
0
0
0
0
0
0
0
0.027295
0.306368
581
33
51
17.606061
0.669975
0
0
0
0
0
0.141136
0
0
0
0
0
0
1
0.12
false
0
0.08
0
0.24
0.24
0
0
0
null
0
0
0
0
0
0
0
0
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
3229bb9f7088946e3efcc3fcbb6cba8d90bd5930
4,329
py
Python
models/show.py
wanderindev/fyyur
acf3a44ce7fae6b24576a320afd447c0595d76e5
[ "MIT" ]
null
null
null
models/show.py
wanderindev/fyyur
acf3a44ce7fae6b24576a320afd447c0595d76e5
[ "MIT" ]
null
null
null
models/show.py
wanderindev/fyyur
acf3a44ce7fae6b24576a320afd447c0595d76e5
[ "MIT" ]
2
2020-07-16T22:02:13.000Z
2020-11-22T21:16:28.000Z
from datetime import datetime from sqlalchemy import or_ from app import db from .mixin import ModelMixin class Show(db.Model, ModelMixin): __tablename__ = "shows" id = db.Column(db.Integer, primary_key=True) start_time = db.Column(db.DateTime, nullable=False) artist_id = db.Column( ...
30.921429
74
0.495033
449
4,329
4.510022
0.13363
0.084444
0.070617
0.062222
0.719012
0.655309
0.655309
0.609877
0.609877
0.609877
0
0
0.396396
4,329
139
75
31.143885
0.774971
0
0
0.460317
0
0
0.097375
0
0
0
0
0
0
1
0.071429
false
0
0.047619
0.015873
0.230159
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
322b0d39d0e86bb9ee65efcc180b2518cde85315
2,141
py
Python
backend/sponsors/migrations/0001_initial.py
marcoacierno/pycon
2b7b47598c4929769cc73e322b3fce2c89151e21
[ "MIT" ]
56
2018-01-20T17:18:40.000Z
2022-03-28T22:42:04.000Z
backend/sponsors/migrations/0001_initial.py
marcoacierno/pycon
2b7b47598c4929769cc73e322b3fce2c89151e21
[ "MIT" ]
2,029
2018-01-20T11:37:24.000Z
2022-03-31T04:10:51.000Z
backend/sponsors/migrations/0001_initial.py
marcoacierno/pycon
2b7b47598c4929769cc73e322b3fce2c89151e21
[ "MIT" ]
17
2018-03-17T09:44:28.000Z
2021-12-27T19:57:35.000Z
# Generated by Django 2.2.4 on 2019-08-30 21:56 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import model_utils.fields class Migration(migrations.Migration): initial = True dependencies = [ ('conferences', '0007_auto_20190811_1953'), ] ...
44.604167
182
0.611397
213
2,141
6
0.375587
0.094679
0.062598
0.051643
0.350548
0.306729
0.306729
0.306729
0.306729
0.223787
0
0.022333
0.247081
2,141
47
183
45.553191
0.770471
0.021018
0
0.35
1
0
0.143744
0.031519
0
0
0
0
0
1
0
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
322bb384475b3968baa795c394e1297ef1e165d8
156
py
Python
__init__.py
sacherjj/python-AlienRFID
aaddd846d46cca533dca43c256890c072e8f5ec5
[ "MIT" ]
1
2021-03-21T13:52:00.000Z
2021-03-21T13:52:00.000Z
__init__.py
sacherjj/python-AlienRFID
aaddd846d46cca533dca43c256890c072e8f5ec5
[ "MIT" ]
null
null
null
__init__.py
sacherjj/python-AlienRFID
aaddd846d46cca533dca43c256890c072e8f5ec5
[ "MIT" ]
2
2015-10-12T10:02:50.000Z
2020-03-09T13:30:12.000Z
from .alien_config import AlienConfig from .alien_connection import AlienConnection from .alien_tag import AlienTag from .alien_tag_list import AlienTagList
39
45
0.878205
21
156
6.285714
0.52381
0.272727
0.181818
0
0
0
0
0
0
0
0
0
0.096154
156
4
46
39
0.93617
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
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
1
0
1
0
1
0
0
7
322bb4e6bc6b91b44404b73d00ac6be4830c39c7
658
py
Python
01_Hello_PGP/solution.py
3-24/id0-rsa.pub
633e974a330d0dc09d37e423168974b7fba69830
[ "MIT" ]
1
2020-03-29T16:10:54.000Z
2020-03-29T16:10:54.000Z
01_Hello_PGP/solution.py
3-24/id0-rsa.pub
633e974a330d0dc09d37e423168974b7fba69830
[ "MIT" ]
null
null
null
01_Hello_PGP/solution.py
3-24/id0-rsa.pub
633e974a330d0dc09d37e423168974b7fba69830
[ "MIT" ]
null
null
null
from subprocess import run, PIPE def check(password,filedata): print("Trying passphrase={:s}".format(password)) cmd = run("gpg --pinentry-mode loopback --passphrase '{:s}' -d {:s}".format(password,filedata), shell=True, stdout=PIPE) if cmd.returncode == 0: output = cmd.stdout.decode('utf-8') ...
24.37037
124
0.575988
81
658
4.679012
0.641975
0.084433
0.079156
0
0
0
0
0
0
0
0
0.004175
0.272036
658
26
125
25.307692
0.787056
0
0
0
0
0
0.193009
0.031915
0
0
0
0
0
1
0.095238
false
0.142857
0.047619
0
0.238095
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
1
0
0
0
0
0
1
322c0212f8148c0b38508aaf2672d99f9c4007b4
8,524
py
Python
src/apodeixi/text_layout/tests_unit/test_column_layout.py
ChateauClaudia-Labs/apodeixi
dd668e210e92cabc2682ad3049781c06e58e3101
[ "MIT" ]
null
null
null
src/apodeixi/text_layout/tests_unit/test_column_layout.py
ChateauClaudia-Labs/apodeixi
dd668e210e92cabc2682ad3049781c06e58e3101
[ "MIT" ]
null
null
null
src/apodeixi/text_layout/tests_unit/test_column_layout.py
ChateauClaudia-Labs/apodeixi
dd668e210e92cabc2682ad3049781c06e58e3101
[ "MIT" ]
null
null
null
import sys as _sys import pandas as _pd from apodeixi.testing_framework.a6i_unit_test import ApodeixiUnitTest from apodeixi.util.formatting_utils import DictionaryFormatter from apodeixi.util.a6i_error import ApodeixiError, FunctionalTrace...
51.660606
141
0.530737
876
8,524
4.88242
0.268265
0.032733
0.015198
0.009119
0.170447
0.119242
0.089783
0.042553
0.026654
0.026654
0
0.014303
0.40122
8,524
165
142
51.660606
0.823668
0.134209
0
0.018018
0
0
0.057569
0.012033
0
0
0
0
0.045045
1
0.054054
false
0
0.054054
0
0.126126
0.009009
0
0
0
null
0
0
0
0
0
0
0
0
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
322c5954da97025867a532a5c2f025836a221df3
944
py
Python
evolute/operators/mate.py
ysglh/evolute
ea868e5d04e6bb59760a9b6dec709303637b9f10
[ "MIT" ]
174
2018-08-15T21:48:30.000Z
2022-03-13T01:34:48.000Z
evolute/operators/mate.py
ysglh/evolute
ea868e5d04e6bb59760a9b6dec709303637b9f10
[ "MIT" ]
null
null
null
evolute/operators/mate.py
ysglh/evolute
ea868e5d04e6bb59760a9b6dec709303637b9f10
[ "MIT" ]
27
2018-05-16T16:25:36.000Z
2021-11-02T20:51:38.000Z
import numpy as np class MateBase: def apply(self, ind1, ind2): pass def __call__(self, ind1, ind2): return self.apply(ind1, ind2) class LambdaMate(MateBase): def __init__(self, function_ref, **kw): self.kwargs = kw self.apply = lambda ind1, ind2: function_ref(ind1, in...
20.977778
80
0.635593
122
944
4.803279
0.336066
0.150171
0.102389
0.109215
0.259386
0.215017
0.122867
0.122867
0
0
0
0.039106
0.241525
944
44
81
21.454545
0.77933
0
0
0.16
0
0
0
0
0
0
0
0
0
1
0.28
false
0.04
0.04
0.16
0.68
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
322da51e0820f1bb72e55d0a9cb187b9bcde3c32
223
py
Python
LandingPage/forms.py
Mihai925/EduCoding-Legacy
7c6de105deb186c3442f8d7f9f1b9f99708f8fb6
[ "MIT" ]
null
null
null
LandingPage/forms.py
Mihai925/EduCoding-Legacy
7c6de105deb186c3442f8d7f9f1b9f99708f8fb6
[ "MIT" ]
null
null
null
LandingPage/forms.py
Mihai925/EduCoding-Legacy
7c6de105deb186c3442f8d7f9f1b9f99708f8fb6
[ "MIT" ]
null
null
null
__author__ = 'varun' from django import forms class ContactUsForm(forms.Form): name = forms.CharField() email = forms.CharField() phone = forms.CharField() message = forms.CharField(widget=forms.Textarea)
22.3
52
0.713004
25
223
6.2
0.64
0.36129
0
0
0
0
0
0
0
0
0
0
0.174888
223
10
52
22.3
0.842391
0
0
0
0
0
0.022321
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.857143
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
322e21d79121fc682dbbeaf19bfb0822ed607a7a
4,236
py
Python
pru/db/geo/geo_admin.py
euctrl-pru/rt-python
da5d0040e250bd159845a0d43bf0b73eab368863
[ "MIT" ]
null
null
null
pru/db/geo/geo_admin.py
euctrl-pru/rt-python
da5d0040e250bd159845a0d43bf0b73eab368863
[ "MIT" ]
null
null
null
pru/db/geo/geo_admin.py
euctrl-pru/rt-python
da5d0040e250bd159845a0d43bf0b73eab368863
[ "MIT" ]
null
null
null
# # Copyright (c) 2018 Via Technology Ltd. All Rights Reserved. # Consult your license regarding permissions and restrictions. # """ Administration operations for the geo db. """ import os import socket import time from pru.db.geo.geo_init import load_airspace, remove_all_sectors, tear_down from pru.db.geo.geo_init i...
31.377778
93
0.674929
619
4,236
4.449111
0.216478
0.043573
0.040668
0.017429
0.603486
0.553377
0.533043
0.502179
0.470588
0.470588
0
0.001892
0.25118
4,236
134
94
31.61194
0.86633
0.308074
0
0.352941
0
0
0.140733
0.007617
0
0
0
0
0
1
0.073529
false
0
0.147059
0
0.323529
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
322f9af92fcd6688ac16683be314d7931fa1f2eb
4,040
py
Python
tests/test_autogeometry.py
fabiommendes/easymunk
420dfc4a006997c47887f6876876249674feb3cd
[ "MIT" ]
1
2021-07-02T11:59:07.000Z
2021-07-02T11:59:07.000Z
tests/test_autogeometry.py
fabiommendes/easymunk
420dfc4a006997c47887f6876876249674feb3cd
[ "MIT" ]
null
null
null
tests/test_autogeometry.py
fabiommendes/easymunk
420dfc4a006997c47887f6876876249674feb3cd
[ "MIT" ]
1
2022-01-14T20:18:35.000Z
2022-01-14T20:18:35.000Z
from typing import List, Tuple import easymunk as a from easymunk import BB, Vec2d class TestAutoGeometry: def test_is_closed(self) -> None: not_closed: List[Tuple[float, float]] = [(0, 0), (1, 1), (0, 1)] closed: List[Tuple[float, float]] = [(0, 0), (1, 1), (0, 1), (0, 0)] assert not a.i...
28.652482
87
0.366832
531
4,040
2.728814
0.150659
0.048309
0.026915
0.078675
0.57902
0.545204
0.536922
0.458937
0.458937
0.458937
0
0.146297
0.455198
4,040
140
88
28.857143
0.51204
0.04604
0
0.630252
0
0
0.025981
0
0
0
0
0.007143
0.058824
1
0.07563
false
0
0.02521
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
32305cc75fdcf32a5f4bd15262b34af9e4f413d5
384
py
Python
api/tests/test_app.py
guyskk/purepage
64e2180b751e787f9fe477f9b212b31c84d34cfb
[ "MIT" ]
13
2016-05-03T07:56:43.000Z
2019-08-03T05:58:58.000Z
api/tests/test_app.py
guyskk/purepage
64e2180b751e787f9fe477f9b212b31c84d34cfb
[ "MIT" ]
null
null
null
api/tests/test_app.py
guyskk/purepage
64e2180b751e787f9fe477f9b212b31c84d34cfb
[ "MIT" ]
3
2016-06-04T12:49:34.000Z
2019-04-24T08:51:34.000Z
def test_client(client): assert client.get("/").status_code == 200 def test_root(root): me = root.user.get_me() assert me["id"] == "root" assert me["role"] == "root" def test_user(user): res = user("guyskk", email="guyskk@purepage.org") me = res.user.get_me() assert me["id"] == "guyskk"...
21.333333
53
0.596354
56
384
3.982143
0.375
0.143498
0.080717
0.134529
0.170404
0.170404
0
0
0
0
0
0.009934
0.213542
384
17
54
22.588235
0.728477
0
0
0
0
0
0.164491
0
0
0
0
0
0.5
1
0.25
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
0
0
0
0
0
0
0
2
32306c14bb390e41af15482d3244081bad57ece0
13,144
py
Python
darshan-util/pydarshan/darshan/backend/cffi_backend.py
gaocegege/darshan
2d54cd8ec96d26db23e9ca421df48d2031a4c55e
[ "mpich2" ]
null
null
null
darshan-util/pydarshan/darshan/backend/cffi_backend.py
gaocegege/darshan
2d54cd8ec96d26db23e9ca421df48d2031a4c55e
[ "mpich2" ]
null
null
null
darshan-util/pydarshan/darshan/backend/cffi_backend.py
gaocegege/darshan
2d54cd8ec96d26db23e9ca421df48d2031a4c55e
[ "mpich2" ]
null
null
null
# -*- coding: utf-8 -*- import cffi import ctypes import numpy as np import pandas as pd from darshan.api_def_c import load_darshan_header from darshan.discover_darshan import find_utils from darshan.discover_darshan import check_version API_def_c = load_darshan_header() ffi = cffi.FFI() ffi.cdef(API_def_c) lib...
24.295749
137
0.614197
1,785
13,144
4.371989
0.146218
0.029216
0.017299
0.040364
0.537032
0.47104
0.445284
0.440928
0.390441
0.380958
0
0.009684
0.253652
13,144
540
138
24.340741
0.785831
0.295268
0
0.337838
0
0
0.142028
0.002437
0
0
0
0.001852
0
1
0.09009
false
0
0.031532
0
0.238739
0.009009
0
0
0
null
0
0
0
0
0
0
0
0
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
32316e929a4d5ae59c28e0cfefeaa04b18e91623
1,017
py
Python
authApp/views/userDetailView.py
juan-skill/django_vue_bank
109f3b84086f4520a5220c311d9d3403a7adc3a2
[ "MIT" ]
null
null
null
authApp/views/userDetailView.py
juan-skill/django_vue_bank
109f3b84086f4520a5220c311d9d3403a7adc3a2
[ "MIT" ]
null
null
null
authApp/views/userDetailView.py
juan-skill/django_vue_bank
109f3b84086f4520a5220c311d9d3403a7adc3a2
[ "MIT" ]
null
null
null
from django.conf import settings from rest_framework import generics, status from rest_framework.response import Response from rest_framework_simplejwt.backends import TokenBackend from rest_framework.permissions import IsAuthenticated from authApp.models.user import User from authApp.serializers.userSerializer import ...
39.115385
80
0.738446
108
1,017
6.824074
0.527778
0.043419
0.092266
0
0
0
0
0
0
0
0
0.004751
0.172075
1,017
25
81
40.68
0.870546
0
0
0
0
0
0.060964
0
0
0
0
0
0
1
0.052632
false
0
0.368421
0
0.736842
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
1
0
0
2
32363a369f2abd8123a3c352cf5267f2cd8f6e3e
882
py
Python
pluggklockan.py
Vforsh03/Pluggklockan
845dbe82476ad3ecd8664b7cd99ce74311b92830
[ "MIT" ]
null
null
null
pluggklockan.py
Vforsh03/Pluggklockan
845dbe82476ad3ecd8664b7cd99ce74311b92830
[ "MIT" ]
null
null
null
pluggklockan.py
Vforsh03/Pluggklockan
845dbe82476ad3ecd8664b7cd99ce74311b92830
[ "MIT" ]
null
null
null
import time def countdown(time_sec, to_do): while time_sec: mins, secs = divmod(time_sec, 60) timeformat = '{:02d}:{:02d}'.format(mins, secs) print(timeformat, end='\r') time.sleep(1) time_sec -= 1 if time_sec == 0: print("Det här har du att göra: ") ...
25.941176
73
0.538549
127
882
3.559055
0.456693
0.079646
0.048673
0.070796
0
0
0
0
0
0
0
0.018644
0.331066
882
33
74
26.727273
0.747458
0
0
0
0
0
0.237927
0
0
0
0
0
0
1
0.076923
false
0
0.038462
0
0.115385
0.192308
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
32364b003eb60db5ffb76e4251c347561207ed8b
1,397
py
Python
gallery/views.py
mkbeh/Site-Nordic-Walking-
ba98f41db09ed448ecc4db175f65ef4fa2d64979
[ "MIT" ]
null
null
null
gallery/views.py
mkbeh/Site-Nordic-Walking-
ba98f41db09ed448ecc4db175f65ef4fa2d64979
[ "MIT" ]
8
2021-04-08T21:57:55.000Z
2022-03-12T00:50:38.000Z
gallery/views.py
mkbeh/Site-Nordic-Walking-
ba98f41db09ed448ecc4db175f65ef4fa2d64979
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.views.decorators.cache import cache_page from .models import PhotoAlbum, VideoAlbum from blog.utils import get_pagination_page def albums_list(request): album_specific_data = {'photo': (PhotoAlbum, 'Фото альбомы'), 'video': (VideoAlbum, 'Видео ал...
32.488372
105
0.689334
182
1,397
5.016484
0.335165
0.078861
0.07448
0.030668
0.243154
0.063527
0
0
0
0
0
0.012324
0.186829
1,397
42
106
33.261905
0.791373
0
0
0.125
0
0
0.1267
0.035791
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3236d1e8e71e93e12b492398d92736947474b9fb
2,134
py
Python
test/test_post.py
enjoy233/zhihu-py3
bcb4aa8325f8b54d3b44bd0bdc959edd9761fcfc
[ "MIT" ]
1,321
2015-02-16T13:19:42.000Z
2022-03-25T15:03:58.000Z
test/test_post.py
fru1tw4ter/zhihu-py3
bcb4aa8325f8b54d3b44bd0bdc959edd9761fcfc
[ "MIT" ]
64
2015-07-03T12:30:08.000Z
2022-03-01T00:55:50.000Z
test/test_post.py
fru1tw4ter/zhihu-py3
bcb4aa8325f8b54d3b44bd0bdc959edd9761fcfc
[ "MIT" ]
551
2015-02-22T11:21:40.000Z
2022-03-25T13:22:13.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from __future__ import print_function, division, unicode_literals import unittest import os import json from zhihu import Post from test_utils import TEST_DATA_PATH class ColumnTest(unittest.TestCase): @classmethod def setUpClass(cls): url = 'http://zhu...
34.419355
77
0.638238
279
2,134
4.637993
0.258065
0.062597
0.117465
0.146059
0.295981
0.170015
0.117465
0.097372
0.097372
0
0
0.01476
0.238051
2,134
61
78
34.983607
0.781058
0.02015
0
0.044444
0
0
0.131163
0.011967
0
0
0
0
0.177778
1
0.177778
false
0
0.133333
0
0.333333
0.022222
0
0
0
null
0
0
0
0
0
0
0
0
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
32370b765a15f6662dcf75810cbf2bc84feab958
69
py
Python
tensorflow_toolkit/lpr/lpr/__init__.py
morkovka1337/openvino_training_extensions
846db45c264d6b061505213f51763520b9432ba9
[ "Apache-2.0" ]
256
2020-09-09T03:27:57.000Z
2022-03-30T10:06:06.000Z
tensorflow_toolkit/lpr/lpr/__init__.py
morkovka1337/openvino_training_extensions
846db45c264d6b061505213f51763520b9432ba9
[ "Apache-2.0" ]
604
2020-09-08T12:29:49.000Z
2022-03-31T21:51:08.000Z
tensorflow_toolkit/lpr/lpr/__init__.py
morkovka1337/openvino_training_extensions
846db45c264d6b061505213f51763520b9432ba9
[ "Apache-2.0" ]
160
2020-09-09T14:06:07.000Z
2022-03-30T14:50:48.000Z
from tfutils.helpers import import_transformer import_transformer()
17.25
46
0.869565
8
69
7.25
0.625
0.586207
0
0
0
0
0
0
0
0
0
0
0.086957
69
3
47
23
0.920635
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
3239f81ec2f0770c90334bbc02e94fc7a5de13e9
354
py
Python
torch_lazy/nn/__init__.py
simaki/torch-lazy
e3ce23b118bdf36a019c029a67bf5ec84f89a4d7
[ "BSD-3-Clause" ]
null
null
null
torch_lazy/nn/__init__.py
simaki/torch-lazy
e3ce23b118bdf36a019c029a67bf5ec84f89a4d7
[ "BSD-3-Clause" ]
18
2021-04-01T08:24:48.000Z
2022-03-28T20:18:28.000Z
torch_lazy/nn/__init__.py
simaki/torch-lazy
e3ce23b118bdf36a019c029a67bf5ec84f89a4d7
[ "BSD-3-Clause" ]
1
2021-07-22T19:29:12.000Z
2021-07-22T19:29:12.000Z
from .modules.linear import LazyBilinear from .modules.mlp import MLP from .modules.mlp import LazyMLP from .modules.normalization import LazyBatchNorm from .modules.normalization import LazyBatchNorm1d from .modules.normalization import LazyBatchNorm2d from .modules.normalization import LazyBatchNorm3d from .modules.n...
39.333333
50
0.864407
40
354
7.65
0.325
0.287582
0.392157
0.490196
0
0
0
0
0
0
0
0.009317
0.090395
354
8
51
44.25
0.940994
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
323a9cf1657540b38e66a69c1561146bd14bceb9
874
py
Python
functest/lmfunctest.py
mitsuba-rei/lightmetrica-v3
db5b7d5a9a245fb7c0d25124433c38d09b62813e
[ "MIT" ]
1
2019-11-20T13:24:58.000Z
2019-11-20T13:24:58.000Z
functest/lmfunctest.py
mitsuba-rei/lightmetrica-v3
db5b7d5a9a245fb7c0d25124433c38d09b62813e
[ "MIT" ]
null
null
null
functest/lmfunctest.py
mitsuba-rei/lightmetrica-v3
db5b7d5a9a245fb7c0d25124433c38d09b62813e
[ "MIT" ]
null
null
null
import sys import json import numpy as np import imageio from argparse import Namespace def loadenv(config_path): """Load configuration file of Lightmetrica environment""" # Open config file with open(config_path) as f: config = json.load(f) # Add root directory and binary directory to sys.pa...
26.484848
87
0.662471
133
874
4.315789
0.443609
0.060976
0.041812
0.041812
0.202091
0.202091
0.125436
0.125436
0.125436
0.125436
0
0.035613
0.196796
874
33
88
26.484848
0.782051
0.180778
0
0
0
0
0.042614
0
0
0
0
0
0
1
0.2
false
0
0.25
0.1
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
323ae527f5aea6328f8ca830f729b3e6114a8c51
503
py
Python
algorithm implement (python)/mergesort.py
yedkk/algorithm-design
433b70e8302ec91b74542e9144dd93fdb5b0f8d3
[ "MIT" ]
2
2021-06-01T02:31:06.000Z
2021-06-01T02:39:45.000Z
algorithm implement (python)/mergesort.py
yedkk/algorithm-design
433b70e8302ec91b74542e9144dd93fdb5b0f8d3
[ "MIT" ]
null
null
null
algorithm implement (python)/mergesort.py
yedkk/algorithm-design
433b70e8302ec91b74542e9144dd93fdb5b0f8d3
[ "MIT" ]
null
null
null
def getArray(): line = input() line = line.strip().split(' ')[1:] s = [] for x in line: s.append(int(x)) return s def merge(s1, s2): n1 = len(s1) n2 = len(s2) p1 = 0 p2 = 0 s = [] while(p1 < n1 or p2 < n2): if(p1 < n1 and (p2 >= n2 or s1[p1] < s2[p2])): s.append(s1[p1]) p1 += 1 else: s.a...
13.236842
48
0.508946
90
503
2.844444
0.377778
0.082031
0.078125
0
0
0
0
0
0
0
0
0.095109
0.26839
503
37
49
13.594595
0.600543
0
0
0.142857
0
0
0.005964
0
0
0
0
0
0
1
0.107143
false
0
0
0
0.178571
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
323b7d2cb5ec3fee745d90ccfecbe50bdd67fcc2
1,276
py
Python
src/CSVtoJSON.py
CloudSevenConsulting/DustyDynamo
335e9a2efc71ccf42cf9dfc7c13fcf62cd5d9453
[ "MIT" ]
null
null
null
src/CSVtoJSON.py
CloudSevenConsulting/DustyDynamo
335e9a2efc71ccf42cf9dfc7c13fcf62cd5d9453
[ "MIT" ]
null
null
null
src/CSVtoJSON.py
CloudSevenConsulting/DustyDynamo
335e9a2efc71ccf42cf9dfc7c13fcf62cd5d9453
[ "MIT" ]
null
null
null
import csv import json from pprint import pprint import os stockData = ['RIO'] for i in range(0,len(stockData)): csvfile = open(stockData[i]+'.csv', 'r') fieldnames = ("NetworkTime","StockID","Open","High", "Low", "Close", "Adj Close", "Volume") reader = csv.DictReader( csvfile, fieldnames) data = o...
29.674419
95
0.462382
133
1,276
4.428571
0.368421
0.054329
0.095076
0.091681
0.091681
0.091681
0
0
0
0
0
0.002323
0.325235
1,276
42
96
30.380952
0.681765
0
0
0
0
0
0.259812
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
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
323d0642bd0b2e71b6ea4028021ab212c0e0889f
700
py
Python
core/api.py
rastos/Mi-Fit-and-Zepp-workout-exporter
e05dd7321b71dff6a4e2f4794d0d66d4eee2cbfa
[ "MIT" ]
13
2021-04-13T14:27:58.000Z
2022-02-09T18:32:37.000Z
core/api.py
rastos/Mi-Fit-and-Zepp-workout-exporter
e05dd7321b71dff6a4e2f4794d0d66d4eee2cbfa
[ "MIT" ]
3
2021-06-03T20:27:34.000Z
2021-06-04T06:24:18.000Z
core/api.py
rastos/Mi-Fit-and-Zepp-workout-exporter
e05dd7321b71dff6a4e2f4794d0d66d4eee2cbfa
[ "MIT" ]
2
2021-06-03T20:29:54.000Z
2021-08-13T22:28:59.000Z
import requests class Api: def __init__(self, token): self.token = token def get_history(self): r = requests.get('https://api-mifit-de2.huami.com/v1/sport/run/history.json', headers={ 'apptoken': self.token }, params={ 'source': 'run.mifit.huami.com', ...
24.137931
95
0.547143
84
700
4.416667
0.380952
0.097035
0.06469
0.091644
0.571429
0.571429
0.38814
0.247978
0.247978
0.247978
0
0.008214
0.304286
700
28
96
25
0.753593
0
0
0.47619
0
0.095238
0.238571
0
0
0
0
0
0
1
0.142857
false
0
0.047619
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
323d1294966a8fc8cdc72a192c1cd2b6b80bbc84
1,431
py
Python
lib/tools/tools_watch_cub.py
galena503/SCR
d5b6581808b4f2fac775e7ff48b3eef548164ca1
[ "MIT" ]
null
null
null
lib/tools/tools_watch_cub.py
galena503/SCR
d5b6581808b4f2fac775e7ff48b3eef548164ca1
[ "MIT" ]
null
null
null
lib/tools/tools_watch_cub.py
galena503/SCR
d5b6581808b4f2fac775e7ff48b3eef548164ca1
[ "MIT" ]
null
null
null
import time,sys,os import subprocess class Tools_watch_sub(): def check_sub_process(self, SCR, SCRfield): subs = SCR['sub_process'] command = SCRfield['command'] cmd_l = ['tasklist','/fo','csv'] pid_set = set('') if command == 'bash': ps_str = subprocess.Popen...
23.459016
81
0.533892
171
1,431
4.327485
0.374269
0.040541
0.060811
0.101351
0.12027
0.081081
0
0
0
0
0
0.006154
0.318658
1,431
61
82
23.459016
0.752821
0.189378
0
0
0
0
0.060923
0
0
0
0
0
0
0
null
null
0
0.0625
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
323de0cd069365ae5cc57c4534ae993e3a17cc39
7,616
py
Python
Server/Python/tests/dbsserver_t/unittests/web_t/DBSMigrateModel_t.py
vkuznet/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
8
2015-08-14T04:01:32.000Z
2021-06-03T00:56:42.000Z
Server/Python/tests/dbsserver_t/unittests/web_t/DBSMigrateModel_t.py
yuyiguo/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
162
2015-01-07T21:34:47.000Z
2021-10-13T09:42:41.000Z
Server/Python/tests/dbsserver_t/unittests/web_t/DBSMigrateModel_t.py
yuyiguo/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
16
2015-01-22T15:27:29.000Z
2021-04-28T09:23:28.000Z
#!/usr/bin/env python """ DBS 3 Migrate REST model unittests The DBS3 Migration Service must be stopped before executing the unittest. In addition, take care that no instance is running on the same DB. Else the single unittests can happen to fail due to race conditions with DBS3 Migration Service. """ from dbsserver_t...
55.591241
125
0.689207
950
7,616
5.211579
0.235789
0.065441
0.048071
0.038174
0.498283
0.45102
0.35003
0.322965
0.280347
0.267219
0
0.013414
0.216912
7,616
136
126
56
0.816734
0.207064
0
0.2
0
0
0.142833
0.029495
0
0
0
0
0.063158
1
0.136842
false
0.010526
0.073684
0
0.242105
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
323e018247ff04ecd6fd2937c2a4145cd45afc55
844
py
Python
setup.py
sgang007/audio_chat_client
e2c1caf6ec1a781be0d22f516e55434099514da1
[ "MIT" ]
null
null
null
setup.py
sgang007/audio_chat_client
e2c1caf6ec1a781be0d22f516e55434099514da1
[ "MIT" ]
null
null
null
setup.py
sgang007/audio_chat_client
e2c1caf6ec1a781be0d22f516e55434099514da1
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages # from distutils.core import setup # import py2exe # import sys import os del os.link # sys.setrecursionlimit(5000) with open('requirements.txt') as f: required = f.read().splitlines() def readme(): with open('README.md') as f: return f.read() setup(name=...
23.444444
58
0.64455
99
844
5.323232
0.686869
0.041746
0
0
0
0
0
0
0
0
0
0.015432
0.232227
844
35
59
24.114286
0.79784
0.100711
0
0
0
0
0.267905
0.071618
0
0
0
0
0
1
0.04
false
0
0.12
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
323e28eb5aa06c996913613c2bfc7c17a0e85d7c
2,334
py
Python
kglib/tests/end_to_end/kgcn/diagnosis_debug.py
graknlabs/research
ae3ee07106739efd10f0627058210038ab5956d3
[ "Apache-2.0" ]
13
2018-09-25T13:29:08.000Z
2018-12-10T11:04:38.000Z
kglib/tests/end_to_end/kgcn/diagnosis_debug.py
graknlabs/research
ae3ee07106739efd10f0627058210038ab5956d3
[ "Apache-2.0" ]
23
2018-09-17T20:31:44.000Z
2018-12-14T11:21:52.000Z
kglib/tests/end_to_end/kgcn/diagnosis_debug.py
graknlabs/research
ae3ee07106739efd10f0627058210038ab5956d3
[ "Apache-2.0" ]
1
2018-09-25T15:56:32.000Z
2018-09-25T15:56:32.000Z
# # Copyright (C) 2021 Vaticle # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Versi...
42.436364
163
0.707798
317
2,334
5.037855
0.492114
0.03757
0.018785
0.020038
0.072636
0.072636
0.036318
0
0
0
0
0.01619
0.206084
2,334
54
164
43.222222
0.845656
0.51928
0
0
0
0
0.041783
0
0
0
0
0
0.2
1
0.1
false
0
0.2
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
324140adbf8ce6a27b7f51c371562021ff506dae
1,668
py
Python
python/math_utils.py
PROrock/codin-game-puzzles
a0444719f9a629fc97b1da6f175ecd462a9ff59b
[ "MIT" ]
1
2021-06-16T02:33:57.000Z
2021-06-16T02:33:57.000Z
python/math_utils.py
PROrock/codin-game-puzzles
a0444719f9a629fc97b1da6f175ecd462a9ff59b
[ "MIT" ]
null
null
null
python/math_utils.py
PROrock/codin-game-puzzles
a0444719f9a629fc97b1da6f175ecd462a9ff59b
[ "MIT" ]
null
null
null
def signum(x): if x > 0: return 1 if x < 0: return -1 return 0 # copy of Python 3.5 implementation - probably not needed def isclose(a, b, rel_tol=1e-09, abs_tol=0.0): return abs(a - b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol) def gcd(a, b): """Greatest common divisor""" return _gcd_in...
32.076923
93
0.607914
253
1,668
3.909091
0.391304
0.016178
0.0273
0.020222
0.068756
0
0
0
0
0
0
0.02209
0.294365
1,668
51
94
32.705882
0.818182
0.343525
0
0.066667
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0.033333
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
32426c09b1bd20f92239fee3f6494dab7ae72789
2,477
py
Python
BASS_2_OM_testOnSyntheticData.py
oliviermirat/BASS
fe595fdc60795b09bb6c264b6da914a6e8e0c415
[ "MIT" ]
1
2020-10-10T11:20:32.000Z
2020-10-10T11:20:32.000Z
BASS_2_OM_testOnSyntheticData.py
oliviermirat/BASS
fe595fdc60795b09bb6c264b6da914a6e8e0c415
[ "MIT" ]
null
null
null
BASS_2_OM_testOnSyntheticData.py
oliviermirat/BASS
fe595fdc60795b09bb6c264b6da914a6e8e0c415
[ "MIT" ]
null
null
null
import sys sys.path.insert(1, './GR_BASS/BASS_only_original/') sys.path.insert(1, './GR_BASS/') import bass as md import numpy as np import sys import bassLibrary as bl # BASS algorithm parameters eps = 0.1 p_d = 0.2 Jthr = 0.15 seed = 0 # Creating synthetic data for process BASS on and to learn the GMM model nbC...
43.45614
355
0.749697
340
2,477
5.329412
0.358824
0.03532
0.006623
0.033113
0.162804
0.162804
0.128587
0.128587
0.115894
0.115894
0
0.044007
0.137667
2,477
56
356
44.232143
0.804307
0.175212
0
0.052632
0
0
0.086486
0.014251
0
0
0
0.017857
0
1
0
false
0
0.131579
0
0.131579
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
3242f191734e1ec3faebeb7b0fb07f008db4254c
108
py
Python
auth/view/resource/create_reset_password_request.py
nicolaszein/auth
90112f1a4d6f368714b19daad7e8a4226594b383
[ "MIT" ]
null
null
null
auth/view/resource/create_reset_password_request.py
nicolaszein/auth
90112f1a4d6f368714b19daad7e8a4226594b383
[ "MIT" ]
null
null
null
auth/view/resource/create_reset_password_request.py
nicolaszein/auth
90112f1a4d6f368714b19daad7e8a4226594b383
[ "MIT" ]
null
null
null
from pydantic import BaseModel, EmailStr class CreateResetPasswordRequest(BaseModel): email: EmailStr
18
44
0.814815
10
108
8.8
0.8
0
0
0
0
0
0
0
0
0
0
0
0.138889
108
5
45
21.6
0.946237
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
5
3247a207cdb1e57a605f9bb8949d6c37632fda73
3,707
py
Python
pymt/grids/map.py
mwtoews/pymt
81a8469b0d0d115d21186ec1d1c9575690d51850
[ "MIT" ]
null
null
null
pymt/grids/map.py
mwtoews/pymt
81a8469b0d0d115d21186ec1d1c9575690d51850
[ "MIT" ]
null
null
null
pymt/grids/map.py
mwtoews/pymt
81a8469b0d0d115d21186ec1d1c9575690d51850
[ "MIT" ]
null
null
null
#! /bin/env python """ Examples ======== **Rectilinear** Create a rectilinear grid that is 2x3:: (0) --- (1) --- (2) | | | | | | | [0] | [1] | | | | | | | (3) --- (4) --- (5) Numbers in parens are node IDs, and numbers in square br...
23.916129
84
0.555705
468
3,707
4.228632
0.252137
0.027287
0.024255
0.018191
0.279434
0.235472
0.195048
0.123295
0.123295
0.100051
0
0.022683
0.310224
3,707
154
85
24.071429
0.751271
0.362018
0
0.218182
0
0
0.035566
0
0
0
0
0
0
1
0.090909
false
0
0.054545
0.036364
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
3247e08ee12a7d9414679491f0b3e5ad060be2e8
27,447
py
Python
jogo.py
AdamastorLinsFrancaNetto/jogo-academic-journey
ad312d255abe23e243ba39732e972cf45f092b08
[ "MIT" ]
null
null
null
jogo.py
AdamastorLinsFrancaNetto/jogo-academic-journey
ad312d255abe23e243ba39732e972cf45f092b08
[ "MIT" ]
null
null
null
jogo.py
AdamastorLinsFrancaNetto/jogo-academic-journey
ad312d255abe23e243ba39732e972cf45f092b08
[ "MIT" ]
null
null
null
import pygame from conteudo import Conteudo, Nave, Tiro import random class Jogo: def __init__(self): self.fundo1 = Conteudo("arquivos/espaco.png", 0, 0) self.fundo2 = Conteudo("arquivos/espaco.png", 0, -960) self.nave = Nave("arquivos/nave1.png",630,750) self.comando = Conteudo("a...
47.651042
134
0.603709
3,302
27,447
4.944579
0.071169
0.045569
0.087217
0.045201
0.624793
0.398359
0.307099
0.168494
0.108716
0.082134
0
0.066041
0.266805
27,447
575
135
47.733913
0.745279
0
0
0.152174
0
0
0.07102
0.024742
0
0
0
0
0
1
0.032609
false
0
0.005435
0
0.039855
0.001812
0
0
0
null
0
0
0
0
0
0
0
0
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
32485d3d2f97d8719c9ad7891c585aced9f9c6ac
1,308
py
Python
xpresso/binders/dependants.py
adriangb/xpresso
43fcc360f7b19c00e0b78480f96390bcb4d28053
[ "MIT" ]
75
2022-01-18T02:17:57.000Z
2022-03-24T02:30:04.000Z
xpresso/binders/dependants.py
adriangb/xpresso
43fcc360f7b19c00e0b78480f96390bcb4d28053
[ "MIT" ]
73
2022-01-18T03:01:27.000Z
2022-03-27T16:41:38.000Z
xpresso/binders/dependants.py
adriangb/xpresso
43fcc360f7b19c00e0b78480f96390bcb4d28053
[ "MIT" ]
3
2022-01-18T22:47:06.000Z
2022-01-25T02:03:53.000Z
import inspect import typing from di.api.dependencies import CacheKey from di.dependant import Dependant, Marker from xpresso._utils.typing import Protocol from xpresso.binders.api import SupportsExtractor, SupportsOpenAPI T = typing.TypeVar("T", covariant=True) class SupportsMarker(Protocol[T]): def register_...
26.693878
70
0.683486
131
1,308
6.625954
0.328244
0.074885
0.065668
0.0553
0.103687
0.103687
0.103687
0
0
0
0
0
0.2263
1,308
48
71
27.25
0.857708
0
0
0.216216
0
0
0.00841
0
0
0
0
0
0
1
0.135135
false
0
0.162162
0.054054
0.432432
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
3248e7edee7a47a71c97765cef8dd8859b78769c
3,698
py
Python
test/test_grid_to_triple.py
NCAR/geocat-f2py
fee07e680f61ca2ebfbb33f1554d9d85271fa32a
[ "Apache-2.0" ]
4
2021-02-20T20:02:11.000Z
2021-11-24T13:35:32.000Z
test/test_grid_to_triple.py
NCAR/geocat-f2py
fee07e680f61ca2ebfbb33f1554d9d85271fa32a
[ "Apache-2.0" ]
27
2020-12-07T17:00:05.000Z
2022-03-24T16:42:17.000Z
test/test_grid_to_triple.py
NCAR/geocat-f2py
fee07e680f61ca2ebfbb33f1554d9d85271fa32a
[ "Apache-2.0" ]
4
2021-01-07T01:50:11.000Z
2021-07-07T13:05:42.000Z
import sys import unittest as ut import numpy as np import xarray as xr # Import from directory structure if coverage test, or from installed # packages otherwise if "--cov" in str(sys.argv): from src.geocat.f2py import grid_to_triple else: from geocat.f2py import grid_to_triple # Size of the grids ny = 2 mx...
32.156522
124
0.635479
558
3,698
3.928315
0.15233
0.065693
0.131387
0.087591
0.742701
0.715785
0.630474
0.604015
0.604015
0.536496
0
0.085022
0.252569
3,698
114
125
32.438596
0.708032
0.054354
0
0.25
0
0
0.004874
0
0
0
0
0
0.131579
1
0.131579
false
0
0.078947
0
0.236842
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3249b98ec0603abf9f97a5033a897bd1e2965b76
440
py
Python
Cisco/Python/Modulo_3/for/exercicio1.py
ThiagoKS-7/Python_Essencials_1_cisco
a417747e873f69bb307c4d36205797b191b5b45a
[ "MIT" ]
null
null
null
Cisco/Python/Modulo_3/for/exercicio1.py
ThiagoKS-7/Python_Essencials_1_cisco
a417747e873f69bb307c4d36205797b191b5b45a
[ "MIT" ]
null
null
null
Cisco/Python/Modulo_3/for/exercicio1.py
ThiagoKS-7/Python_Essencials_1_cisco
a417747e873f69bb307c4d36205797b191b5b45a
[ "MIT" ]
null
null
null
def main(): import time # Write a for loop that counts to five. # Body of the loop - print the loop iteration number and the word "Mississippi". # Body of the loop - use: time.sleep(1) # Write a print function with the final message. for i in range(5): print(f'{i + 1} ...
27.5
89
0.584091
65
440
3.830769
0.630769
0.084337
0.072289
0.104418
0
0
0
0
0
0
0
0.013289
0.315909
440
16
90
27.5
0.813953
0.456818
0
0
0
0
0.236364
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.25
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
324db02ef7101b8e262f2ae0d6adf964eaf48e55
1,252
py
Python
scripts/pegasus/build_test_sample_spm_no_bos.py
liminghao1630/transformers
207594be81b8e5a8589c8b11c3b236924555d806
[ "Apache-2.0" ]
50,404
2019-09-26T09:55:55.000Z
2022-03-31T23:07:49.000Z
scripts/pegasus/build_test_sample_spm_no_bos.py
liminghao1630/transformers
207594be81b8e5a8589c8b11c3b236924555d806
[ "Apache-2.0" ]
13,179
2019-09-26T10:10:57.000Z
2022-03-31T23:17:08.000Z
scripts/pegasus/build_test_sample_spm_no_bos.py
liminghao1630/transformers
207594be81b8e5a8589c8b11c3b236924555d806
[ "Apache-2.0" ]
13,337
2019-09-26T10:49:38.000Z
2022-03-31T23:06:17.000Z
#!/usr/bin/env python # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
36.823529
148
0.761182
197
1,252
4.756345
0.593909
0.064034
0.060832
0.070438
0.057631
0
0
0
0
0
0
0.022493
0.147764
1,252
33
149
37.939394
0.85567
0.813099
0
0
0
0.5
0.548077
0.192308
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
1
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
3252c61f7a71dbc22f9e4a1f7ba0cf98c90f9ea0
8,931
py
Python
pytorch-transformers-extensions/examples/run_inference.py
deepchatterjeevns/nlp_projects
8ea4a846138da0bcee2970907ea3340b1cdc74cb
[ "MIT" ]
21
2019-07-25T08:39:56.000Z
2020-12-14T09:59:06.000Z
pytorch-transformers-extensions/examples/run_inference.py
deepchatterjeevns/nlp_projects
8ea4a846138da0bcee2970907ea3340b1cdc74cb
[ "MIT" ]
1
2019-08-05T03:23:54.000Z
2019-08-05T03:24:39.000Z
pytorch-transformers-extensions/examples/run_inference.py
deepchatterjeevns/nlp_projects
8ea4a846138da0bcee2970907ea3340b1cdc74cb
[ "MIT" ]
15
2019-07-31T13:37:14.000Z
2021-09-28T19:01:27.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
46.759162
163
0.665659
1,150
8,931
4.97913
0.28087
0.022005
0.032658
0.013098
0.166958
0.131855
0.108977
0.053091
0.036326
0.036326
0
0.006226
0.226738
8,931
190
164
47.005263
0.822908
0.128765
0
0.015625
0
0
0.155604
0
0.023438
0
0
0
0
1
0.023438
false
0
0.09375
0
0.125
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
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