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
75db48e8bf0032562cf28b95d141eb54b24bc8a4
739
py
Python
db_handler.py
saumya-singh/MusicArtists
4935f62a87dd8b36aec13f50739a106918fbcb22
[ "MIT" ]
null
null
null
db_handler.py
saumya-singh/MusicArtists
4935f62a87dd8b36aec13f50739a106918fbcb22
[ "MIT" ]
null
null
null
db_handler.py
saumya-singh/MusicArtists
4935f62a87dd8b36aec13f50739a106918fbcb22
[ "MIT" ]
null
null
null
import psycopg2 def get_artist_details(artist_name): print("entered") conn = psycopg2.connect(database="songspedia", user="saumya", password="password@123", host="127.0.0.1") cur = conn.cursor() query = '''WITH ARTISTID AS (SELECT ID FROM ARTISTS WHERE NAME='Mikey Dread')...
30.791667
238
0.625169
97
739
4.71134
0.536082
0.035011
0.052516
0.087527
0
0
0
0
0
0
0
0.023256
0.243572
739
23
239
32.130435
0.794275
0.024357
0
0
0
0.0625
0.4242
0
0
0
0
0
0
1
0.0625
false
0.0625
0.0625
0
0.1875
0.375
0
0
0
null
0
0
0
0
0
0
0
0
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
75e0a532ee0182fc605cb7f58d83b016df95f034
614
py
Python
app/__init__.py
dcranston/simplestocks
d81f8c5a2052052d6051a0fc0eb5ac879ead3813
[ "MIT" ]
null
null
null
app/__init__.py
dcranston/simplestocks
d81f8c5a2052052d6051a0fc0eb5ac879ead3813
[ "MIT" ]
1
2021-01-26T12:49:08.000Z
2021-01-26T12:49:08.000Z
app/__init__.py
dcranston/simplestocks
d81f8c5a2052052d6051a0fc0eb5ac879ead3813
[ "MIT" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy import configparser config = configparser.ConfigParser() config_file = config.read("config.ini")[0] app = Flask(__name__) app.secret_key = "bn94127hf921hf9312h932qe9ufhqe90fh028r18923" db_string = "mysql+pymysql://{}:{}@{}/{}".format( config["mysql"]...
26.695652
62
0.73127
71
614
6.126761
0.464789
0.101149
0.087356
0
0
0
0
0
0
0
0
0.049451
0.110749
614
22
63
27.909091
0.747253
0
0
0
0
0
0.285481
0.200653
0
0
0
0
0
1
0
false
0.055556
0.222222
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
75e158bf52cbb1b33f7da03e4ce8ca10f2d1717c
618
py
Python
url_parser.py
asabot/slack_bot
8f2d3e66569fd9bb416baff6fec6c3a288d3114f
[ "MIT" ]
3
2016-09-14T19:04:18.000Z
2020-06-03T01:09:59.000Z
url_parser.py
asabot/slack_bot
8f2d3e66569fd9bb416baff6fec6c3a288d3114f
[ "MIT" ]
null
null
null
url_parser.py
asabot/slack_bot
8f2d3e66569fd9bb416baff6fec6c3a288d3114f
[ "MIT" ]
null
null
null
import re def is_url(possible_url): regex = re.compile(r'[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)') if re.search(regex, possible_url): return True else: return False def message_to_upper(message): words = message.split() rage_message = '' for ...
20.6
99
0.571197
83
618
3.963855
0.481928
0.200608
0.030395
0.036474
0.158055
0
0
0
0
0
0
0.021834
0.2589
618
29
100
21.310345
0.696507
0
0
0.105263
0
0.052632
0.165049
0.116505
0
0
0
0
0
1
0.105263
false
0
0.052632
0
0.315789
0.052632
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
75e30c18e8bb8e00e8a2b6e91ba7a287d287fc54
603
py
Python
models.py
luizbag/pyref
5fe3d7e5a6c22baad9801d4fa03a0901f1692298
[ "MIT" ]
null
null
null
models.py
luizbag/pyref
5fe3d7e5a6c22baad9801d4fa03a0901f1692298
[ "MIT" ]
null
null
null
models.py
luizbag/pyref
5fe3d7e5a6c22baad9801d4fa03a0901f1692298
[ "MIT" ]
null
null
null
#-*- coding: utf-8-unix; -*- from peewee import * db = SqliteDatabase(None) def init(path): db.init(path) def open(): db.connect() def create_tables(): db.create_tables([TipoEntrada, Entrada]) def close(): db.close() class BaseModel(Model): id = PrimaryKeyField() class Meta: databa...
18.272727
47
0.651741
67
603
5.820896
0.61194
0.041026
0
0
0
0
0
0
0
0
0
0.002119
0.217247
603
32
48
18.84375
0.824153
0.044776
0
0
0
0
0
0
0
0
0
0
0
1
0.173913
false
0
0.043478
0
0.73913
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
75e45f386a38a5237d3ffcdbe3fe0089d999790d
429
py
Python
payment/migrations/0006_subscription_customer_id.py
botent/django-stripe-paypal
3a768a6c45913513197f4f6b7044223ae96db716
[ "MIT" ]
3
2021-07-29T16:27:49.000Z
2021-11-12T15:39:42.000Z
payment/migrations/0006_subscription_customer_id.py
botent/django-stripe-paypal
3a768a6c45913513197f4f6b7044223ae96db716
[ "MIT" ]
null
null
null
payment/migrations/0006_subscription_customer_id.py
botent/django-stripe-paypal
3a768a6c45913513197f4f6b7044223ae96db716
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-09-20 13:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('payment', '0005_subscription'), ] operations = [ migrations.AddField( model_name='subscription', name='customer_id',...
22.578947
90
0.617716
47
429
5.531915
0.787234
0.092308
0.107692
0
0
0
0
0
0
0
0
0.069841
0.265734
429
18
91
23.833333
0.755556
0.104895
0
0
1
0
0.151832
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
75ece20bae7504865ead3abc4058124db083b392
3,639
py
Python
wave_detection/graphoelement.py
frankgh/deep-visualization-toolbox
c9bb26eacae0b4d1a25d3844538c2830026add76
[ "MIT" ]
null
null
null
wave_detection/graphoelement.py
frankgh/deep-visualization-toolbox
c9bb26eacae0b4d1a25d3844538c2830026add76
[ "MIT" ]
null
null
null
wave_detection/graphoelement.py
frankgh/deep-visualization-toolbox
c9bb26eacae0b4d1a25d3844538c2830026add76
[ "MIT" ]
null
null
null
"""This module contains classes of graphoelements. These graphoelements can be generated by the package "detect". """ from copy import deepcopy class Graphoelement: """Class containing all the events of one type in one dataset. Attributes ---------- chan_name : ndarray (dtype='U') list of c...
27.778626
74
0.512229
388
3,639
4.621134
0.257732
0.025098
0.040156
0.033463
0.366983
0.2599
0.23536
0.140547
0.062465
0.062465
0
0
0.410278
3,639
131
75
27.778626
0.835508
0.511404
0
0.276596
1
0
0.084967
0
0
0
0
0
0
1
0.106383
false
0
0.021277
0
0.212766
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
75f757fe3623423d7f6d4309ac433e319f81bce3
915
py
Python
HitchHikerDemo/shipments/migrations/0002_auto_20190924_1644.py
SohilaBogdadyNagdy/HitchHikerDemo
d0f0e1607d87d8eefc32688adf680ee0c45a8b42
[ "BSD-3-Clause" ]
null
null
null
HitchHikerDemo/shipments/migrations/0002_auto_20190924_1644.py
SohilaBogdadyNagdy/HitchHikerDemo
d0f0e1607d87d8eefc32688adf680ee0c45a8b42
[ "BSD-3-Clause" ]
null
null
null
HitchHikerDemo/shipments/migrations/0002_auto_20190924_1644.py
SohilaBogdadyNagdy/HitchHikerDemo
d0f0e1607d87d8eefc32688adf680ee0c45a8b42
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.0.8 on 2019-09-24 16:44 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shipments', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='shipment...
30.5
211
0.628415
94
915
5.989362
0.542553
0.069272
0.111901
0.143872
0.172291
0.172291
0.172291
0.172291
0
0
0
0.035139
0.253552
915
29
212
31.551724
0.789165
0.04918
0
0.26087
1
0
0.112903
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
75fa26cbec5c4b06fd5d54cd3fb56edb076ab796
17,223
py
Python
ptf-tests/tests/spgwu.py
robertmacdavid/up4-abstract
b1d184ef5528b7a96da9c26c3d22ff2616d41fa3
[ "Apache-2.0" ]
3
2021-11-18T00:00:13.000Z
2021-11-18T02:09:19.000Z
ptf-tests/tests/spgwu.py
robertmacdavid/up4-abstract
b1d184ef5528b7a96da9c26c3d22ff2616d41fa3
[ "Apache-2.0" ]
null
null
null
ptf-tests/tests/spgwu.py
robertmacdavid/up4-abstract
b1d184ef5528b7a96da9c26c3d22ff2616d41fa3
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-2021 Open Networking Foundation # Copyright 2021-present Princeton University # # 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...
37.03871
100
0.633339
2,343
17,223
4.440461
0.14426
0.030565
0.017301
0.019992
0.700788
0.684064
0.674837
0.668012
0.658785
0.650327
0
0.01749
0.276317
17,223
464
101
37.118534
0.817234
0.291471
0
0.663866
0
0
0.042218
0
0
0
0.000999
0
0.012605
1
0.071429
false
0
0.046218
0
0.155462
0.037815
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
2f00c89624368cb5124180bc056c4f69a3f3307f
598
py
Python
{{cookiecutter.project_slug}}/hooks/pre_gen_project.py
dokempf/meta-cookiecutter
7a3e948cd3138a0a00f8b2f19f6aa936ebdd5836
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/hooks/pre_gen_project.py
dokempf/meta-cookiecutter
7a3e948cd3138a0a00f8b2f19f6aa936ebdd5836
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/hooks/pre_gen_project.py
dokempf/meta-cookiecutter
7a3e948cd3138a0a00f8b2f19f6aa936ebdd5836
[ "MIT" ]
null
null
null
# This script executes before the project is generated from your cookiecutter. # Details about hooks can be found in the cookiecutter documentation: # https://cookiecutter.readthedocs.io/en/latest/advanced/hooks.html # # An example of a pre-hook would be to validate the provided input for a # user configuration value a...
37.375
78
0.76087
90
598
5.033333
0.722222
0.066225
0.048565
0
0
0
0
0
0
0
0
0.00202
0.172241
598
15
79
39.866667
0.913131
0.762542
0
0
1
0
0.015038
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f93649e05a6918a5f010137c2f32b03bdfcdac0e
290
py
Python
fileCount.py
ulzii-coder/CIS205
284f7917982082197b332d01d99ef0dc7f7061fb
[ "Unlicense" ]
null
null
null
fileCount.py
ulzii-coder/CIS205
284f7917982082197b332d01d99ef0dc7f7061fb
[ "Unlicense" ]
null
null
null
fileCount.py
ulzii-coder/CIS205
284f7917982082197b332d01d99ef0dc7f7061fb
[ "Unlicense" ]
null
null
null
from sys import argv def countNum(filename): file = open(filename) count = 0 for line in file: for char in line: if char in "8": count +=1 print count if len(argv) < 2: print "Please include a file name" exit() countNum(argv[1])
12.083333
36
0.562069
42
290
3.880952
0.619048
0.07362
0
0
0
0
0
0
0
0
0
0.026455
0.348276
290
23
37
12.608696
0.835979
0
0
0
0
0
0.101504
0
0
0
0
0
0
0
null
null
0
0.076923
null
null
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
1
0
0
0
0
0
0
0
0
1
f93a174983eb2235824143e75e42f32112bac600
1,586
py
Python
scripts/transform_binding_files_to_fasta.py
raharjaliu/BIFers
89818eff81ee6b889c27269d27103716d05fea10
[ "MIT" ]
1
2016-12-08T14:39:45.000Z
2016-12-08T14:39:45.000Z
scripts/transform_binding_files_to_fasta.py
raharjaliu/BIFers
89818eff81ee6b889c27269d27103716d05fea10
[ "MIT" ]
null
null
null
scripts/transform_binding_files_to_fasta.py
raharjaliu/BIFers
89818eff81ee6b889c27269d27103716d05fea10
[ "MIT" ]
null
null
null
import sys import math from os.path import isfile def cut_string(stringin, size): out = [] in_length = len(stringin) fsize = float(size) for i in range(int(math.ceil(in_length/fsize))): start = i * size end = min(in_length, (i + 1) * size) out += [stringin[start:end]] return out def to_fasta(filepath...
24.78125
97
0.685372
272
1,586
3.742647
0.268382
0.079568
0.053045
0.041257
0.168959
0.094303
0.047151
0
0
0
0
0.015873
0.165826
1,586
63
98
25.174603
0.75359
0.122951
0
0
0
0.027778
0.081884
0.025362
0
0
0
0
0
0
null
null
0
0.083333
null
null
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f94a0e68f46438111be625458bbb12320b9ef708
925
py
Python
src/Python/701-800/703.KthLargest.py
Peefy/PeefyLeetCode
92156e4b48ba19e3f02e4286b9f733e9769a1dee
[ "Apache-2.0" ]
2
2018-05-03T07:50:03.000Z
2018-06-17T04:32:13.000Z
src/Python/701-800/703.KthLargest.py
Peefy/PeefyLeetCode
92156e4b48ba19e3f02e4286b9f733e9769a1dee
[ "Apache-2.0" ]
null
null
null
src/Python/701-800/703.KthLargest.py
Peefy/PeefyLeetCode
92156e4b48ba19e3f02e4286b9f733e9769a1dee
[ "Apache-2.0" ]
3
2018-11-09T14:18:11.000Z
2021-11-17T15:23:52.000Z
import heapq class KthLargest(object): def __init__(self, k, nums): """ :type k: int :type nums: List[int] """ self.pool = nums self.size = len(self.pool) self.k = k #heapq.heapify()将列表原地转换为堆并排序 heapq.heapify(self.pool) while self.siz...
23.125
45
0.522162
114
925
4.131579
0.368421
0.135881
0.191083
0
0
0
0
0
0
0
0
0.024631
0.341622
925
39
46
23.717949
0.748768
0.096216
0
0
0
0
0.010363
0
0
0
0
0
0
1
0.076923
false
0.038462
0.038462
0
0.192308
0.192308
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
f94d100771040b40bbd0de658ac6091faa6c01a8
3,309
py
Python
sparse_auto_encode.py
vaxin/captcha
638e87a0fd427a7bc92475b6b25285f6afbea703
[ "MIT" ]
1
2017-04-03T04:15:52.000Z
2017-04-03T04:15:52.000Z
sparse_auto_encode.py
vaxin/captcha
638e87a0fd427a7bc92475b6b25285f6afbea703
[ "MIT" ]
null
null
null
sparse_auto_encode.py
vaxin/captcha
638e87a0fd427a7bc92475b6b25285f6afbea703
[ "MIT" ]
null
null
null
# - coding: utf-8 - import tensorflow as tf import numpy as np import util import img as img_util def getCost(X, encoder_W, encoder_b, decoder_W, decoder_b): mid = tf.matmul(X, encoder_W) if encoder_b is not None: mid = mid + encoder_b mid = tf.nn.sigmoid(mid) output = tf.matmul(mid, decoder_W) if d...
31.514286
190
0.66032
497
3,309
4.193159
0.331992
0.026871
0.021113
0.018714
0.12476
0.081574
0.06334
0.038388
0.038388
0.038388
0
0.020353
0.213055
3,309
104
191
31.817308
0.779954
0.052886
0
0
0
0
0.045069
0
0
0
0
0
0
0
null
null
0
0.056338
null
null
0.042254
0
0
0
null
0
0
0
0
0
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
f9512b3b257e52b27075afa45cae2e38e2f04f4c
529
py
Python
KongFuPanda/test/Test.py
luoaijun/MachineLearning
810cfd40c0c78ca7c6aa7b851f75e4a1f9dfdb73
[ "MIT" ]
null
null
null
KongFuPanda/test/Test.py
luoaijun/MachineLearning
810cfd40c0c78ca7c6aa7b851f75e4a1f9dfdb73
[ "MIT" ]
null
null
null
KongFuPanda/test/Test.py
luoaijun/MachineLearning
810cfd40c0c78ca7c6aa7b851f75e4a1f9dfdb73
[ "MIT" ]
null
null
null
def seg(s): s2 = s[0] for e in s[1:]: if e == s2[-1]: s2 += e else: s2 += '/' s2 += e print(s) print(s2) def seg2(): s2 = [] s = ['a', 'a', 'b', 'b', 'v', 'v', 'c', 'c', 'a', 's'] for e in enumerate(s): s2.append(e) s3 = s2[0...
16.030303
58
0.328922
75
529
2.213333
0.306667
0.054217
0.072289
0.144578
0
0
0
0
0
0
0
0.083916
0.459357
529
32
59
16.53125
0.496504
0.017013
0
0.32
0
0
0.03668
0
0
0
0
0
0
1
0.08
false
0
0
0
0.08
0.16
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f9548c73c8cb2b9de075e9cc77d46df4b33c25c1
2,574
py
Python
src/app/deep-read/apis/mcq_generator_api.py
NAshwinKumar/deep-read
ee13bb0651e9b682c411db073fb52f3136d44ea1
[ "MIT" ]
6
2020-09-26T08:34:19.000Z
2021-11-26T12:59:50.000Z
src/app/deep-read/apis/mcq_generator_api.py
NAshwinKumar/deep-read
ee13bb0651e9b682c411db073fb52f3136d44ea1
[ "MIT" ]
26
2020-09-26T08:46:40.000Z
2022-02-10T03:18:55.000Z
src/app/deep-read/apis/mcq_generator_api.py
Acquil/deep-read
aae93c62a0c85ce31eb0e2d759d4d95d7d076c5d
[ "MIT" ]
10
2020-10-08T09:23:41.000Z
2020-12-03T14:59:09.000Z
from flask_restx import Resource, Namespace # https://flask-restx.readthedocs.io/en/latest/quickstart.html from core.mcq_generator import McqGenerator import os import copy from db import DRVideoNotFound from db.factory import create_repository from settings import REPOSITORY_NAME, REPOSITORY_SETTINGS # DB repository...
31.390244
110
0.631313
302
2,574
5.231788
0.344371
0.026582
0.034177
0.040506
0.099367
0.099367
0.073418
0.073418
0.027848
0
0
0.006234
0.252137
2,574
81
111
31.777778
0.814545
0.074592
0
0.105263
0
0
0.120492
0
0
0
0
0.012346
0
1
0.070175
false
0
0.122807
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
f95a87d27d4668fc3510b43c631102cf5524bdf1
800
py
Python
examples/.send_sms_flash_ex.py
bahiamartins/infobip-api-python-client
88f044901af5690d01fcb7bce90d0ed2ab1ba4d1
[ "Apache-2.0" ]
null
null
null
examples/.send_sms_flash_ex.py
bahiamartins/infobip-api-python-client
88f044901af5690d01fcb7bce90d0ed2ab1ba4d1
[ "Apache-2.0" ]
null
null
null
examples/.send_sms_flash_ex.py
bahiamartins/infobip-api-python-client
88f044901af5690d01fcb7bce90d0ed2ab1ba4d1
[ "Apache-2.0" ]
1
2020-04-08T19:03:26.000Z
2020-04-08T19:03:26.000Z
from infobip.clients import send_multiple_textual_sms_advanced from infobip.api.model.sms.mt.send.textual.SMSAdvancedTextualRequest import SMSAdvancedTextualRequest from infobip.api.model.sms.mt.send.SMSData import SMSData from infobip.api.model.sms.mt.send.IsFlash import IsFlash from infobip.api.model.sms.Destinat...
32
102
0.80125
100
800
6.23
0.38
0.088283
0.089888
0.12199
0.266453
0.134831
0.134831
0
0
0
0
0.00565
0.115
800
24
103
33.333333
0.874294
0
0
0
0
0
0.061856
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f9615fca4a8a704e67bf607e8f4ca6f8b60b21d4
2,781
py
Python
botnet.py
arashdeveloper1380/BotNet-With-Python
97f78d44701f7eccb754ddcac44f4bd2ae071b21
[ "Apache-2.0" ]
null
null
null
botnet.py
arashdeveloper1380/BotNet-With-Python
97f78d44701f7eccb754ddcac44f4bd2ae071b21
[ "Apache-2.0" ]
null
null
null
botnet.py
arashdeveloper1380/BotNet-With-Python
97f78d44701f7eccb754ddcac44f4bd2ae071b21
[ "Apache-2.0" ]
null
null
null
# start from requests import post from bs4 import BeautifulSoup import json import time from platform import node from socket import * from os import system user = node() user_1 = user.replace("-PC","") cmd = 'copy botnet.exe "C:\Users\{}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\zeroday.exe"'.fo...
19.17931
150
0.578928
322
2,781
4.928571
0.413043
0.022054
0.015123
0.035917
0.374291
0.374291
0.374291
0.333333
0.333333
0.26213
0
0.053128
0.2758
2,781
144
151
19.3125
0.734856
0
0
0.202703
0
0.040541
0.351221
0.031828
0.013514
0
0
0
0
0
null
null
0
0.094595
null
null
0.054054
0
0
0
null
0
0
0
0
0
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
f96fd7c2b28b4711fa71e3b4830a50bf626ed3ed
1,097
py
Python
video_server/views/auth.py
jgeneaguilar/video_server
da16bc287a5c32638195e1efe4626ecf4d324d88
[ "MIT" ]
null
null
null
video_server/views/auth.py
jgeneaguilar/video_server
da16bc287a5c32638195e1efe4626ecf4d324d88
[ "MIT" ]
null
null
null
video_server/views/auth.py
jgeneaguilar/video_server
da16bc287a5c32638195e1efe4626ecf4d324d88
[ "MIT" ]
null
null
null
from pyramid.view import view_config from pyramid.httpexceptions import HTTPBadRequest, HTTPNotFound from ..models import User from ..services import encoding def _authenticate_user(request): username = request.json_body.get("username") password = request.json_body.get("password") user = request.dbsessio...
28.128205
79
0.671832
127
1,097
5.692913
0.448819
0.060858
0.063624
0.049793
0.041494
0
0
0
0
0
0
0
0.235187
1,097
38
80
28.868421
0.86174
0.161349
0
0.208333
0
0
0.087457
0
0
0
0
0
0
1
0.083333
false
0.125
0.166667
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f9708c0b2609ad3df394721fff16fd775a0cd324
13,308
py
Python
apps/site/api/tests/field_tests.py
LocalGround/localground
aa5a956afe7a84a7763a3b23d62a9fd925831cd7
[ "Apache-2.0" ]
9
2015-05-29T22:22:20.000Z
2022-02-01T20:39:00.000Z
apps/site/api/tests/field_tests.py
LocalGround/localground
aa5a956afe7a84a7763a3b23d62a9fd925831cd7
[ "Apache-2.0" ]
143
2015-01-22T15:03:40.000Z
2020-06-27T01:55:29.000Z
apps/site/api/tests/field_tests.py
LocalGround/localground
aa5a956afe7a84a7763a3b23d62a9fd925831cd7
[ "Apache-2.0" ]
5
2015-03-16T20:51:49.000Z
2017-02-07T20:48:49.000Z
from django import test from localground.apps.site.api import views from localground.apps.site import models from localground.apps.site.api.tests.base_tests import ViewMixinAPI import urllib from rest_framework import status class FieldTestMixin(ViewMixinAPI): pass def get_base_metadata(): return { ...
39.844311
85
0.593553
1,545
13,308
4.908738
0.139159
0.075158
0.040348
0.049314
0.72442
0.685654
0.633439
0.546414
0.517009
0.469541
0
0.013318
0.289074
13,308
333
86
39.963964
0.788289
0.039149
0
0.45993
0
0
0.143181
0.035541
0
0
0
0
0.132404
0
null
null
0.003484
0.020906
null
null
0.003484
0
0
0
null
0
0
0
0
0
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
f977c290a16f2f847ce976476799e984df68be8a
399
py
Python
RPS.py
Marques004/Rock-Paper-Scissors
f3e39afcd16cdcefeaba6be990ab07746ed4d224
[ "MIT" ]
null
null
null
RPS.py
Marques004/Rock-Paper-Scissors
f3e39afcd16cdcefeaba6be990ab07746ed4d224
[ "MIT" ]
null
null
null
RPS.py
Marques004/Rock-Paper-Scissors
f3e39afcd16cdcefeaba6be990ab07746ed4d224
[ "MIT" ]
null
null
null
# The example function below keeps track of the opponent's history and plays whatever the opponent played two plays ago. It is not a very good player so you will need to change the code to pass the challenge. def player(prev_play, opponent_history=[]): opponent_history.append(prev_play) guess = "R" if len...
36.272727
208
0.73183
63
399
4.539683
0.666667
0.20979
0.111888
0
0
0
0
0
0
0
0
0.006309
0.205514
399
10
209
39.9
0.895899
0.516291
0
0
0
0
0.005236
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f98101c4a11be843e8d1448fcc67c9f45561f2ab
12,775
py
Python
shaders/generate_autogenerated_mcubes.py
nvpro-samples/vk_timeline_semaphore
b730aed30a1f9c48563e20915e7dfac5607de057
[ "Apache-2.0" ]
3
2021-11-29T02:41:17.000Z
2022-03-24T18:38:46.000Z
shaders/generate_autogenerated_mcubes.py
nvpro-samples/vk_timeline_semaphore
b730aed30a1f9c48563e20915e7dfac5607de057
[ "Apache-2.0" ]
null
null
null
shaders/generate_autogenerated_mcubes.py
nvpro-samples/vk_timeline_semaphore
b730aed30a1f9c48563e20915e7dfac5607de057
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 NVIDIA CORPORATION # SPDX-License-Identifier: Apache-2.0 # # Script to generate the GLSL compute functions # # uint autogeneratedGetCaseNumber(float sample000, float sample001, float sample010, float sample011, # float sample100, float sample101, float sample110, float s...
45.141343
118
0.705988
1,683
12,775
5.087344
0.16221
0.044149
0.024527
0.037608
0.393366
0.341626
0.269096
0.244335
0.202873
0.171572
0
0.055202
0.200235
12,775
282
119
45.301418
0.782813
0.187632
0
0.167442
1
0
0.340665
0.127798
0
0
0
0
0.018605
1
0.023256
false
0.009302
0
0
0.037209
0.069767
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
f99267d70e165fd72e5f918565243ecbd3a7a7f3
6,202
py
Python
src/api/datalab/exceptions.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
84
2021-06-30T06:20:23.000Z
2022-03-22T03:05:49.000Z
src/api/datalab/exceptions.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
7
2021-06-30T06:21:16.000Z
2022-03-29T07:36:13.000Z
src/api/datalab/exceptions.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
40
2021-06-30T06:21:26.000Z
2022-03-29T12:42:26.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ------------------------------------------...
37.587879
111
0.74734
718
6,202
6.196379
0.369081
0.075523
0.127444
0.054394
0.165206
0.062261
0.03866
0.03866
0.03866
0.03866
0
0.023104
0.134634
6,202
164
112
37.817073
0.805851
0.231538
0
0.044444
0
0
0.127445
0.018297
0
0
0
0
0
1
0
false
0
0.033333
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
f993570c55e7b10b75689f46ef24971cb759412a
2,760
py
Python
genshin/models/genshin/chronicle/characters.py
thesadru/genshin.py
806b8d0dd059a06605e66dead917fdf550a552bc
[ "MIT" ]
63
2021-10-04T19:53:54.000Z
2022-03-30T07:21:03.000Z
genshin/models/genshin/chronicle/characters.py
thesadru/genshin.py
806b8d0dd059a06605e66dead917fdf550a552bc
[ "MIT" ]
17
2021-11-16T20:42:52.000Z
2022-03-31T10:11:52.000Z
genshin/models/genshin/chronicle/characters.py
thesadru/genshin.py
806b8d0dd059a06605e66dead917fdf550a552bc
[ "MIT" ]
10
2021-10-16T22:41:41.000Z
2022-02-19T17:55:23.000Z
"""Genshin chronicle character.""" import typing import pydantic from genshin.models.genshin import character from genshin.models.model import Aliased, APIModel, Unique __all__ = [ "Artifact", "ArtifactSet", "ArtifactSetEffect", "Character", "CharacterWeapon", "Constellation", "Outfit", ...
22.809917
110
0.653261
295
2,760
6.050847
0.342373
0.047059
0.020168
0.026891
0.067787
0.031933
0
0
0
0
0
0
0.232971
2,760
120
111
23
0.843174
0.128261
0
0.302632
0
0
0.095966
0.010616
0
0
0
0
0
1
0.026316
false
0
0.052632
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
0
0
1
0
0
1
f9955e04f807b0e2b2862e8da76265b084950135
422
py
Python
store/migrations/0002_alter_product_avg_rate.py
rafaellima47/django-ecommerce
2226bed457ba804ca1a55fb24b94a2b6048f54e7
[ "MIT" ]
null
null
null
store/migrations/0002_alter_product_avg_rate.py
rafaellima47/django-ecommerce
2226bed457ba804ca1a55fb24b94a2b6048f54e7
[ "MIT" ]
null
null
null
store/migrations/0002_alter_product_avg_rate.py
rafaellima47/django-ecommerce
2226bed457ba804ca1a55fb24b94a2b6048f54e7
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-10-28 19:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('store', '0001_initial'), ] operations = [ migrations.AlterField( model_name='product', name='avg_rate', ...
22.210526
96
0.611374
48
422
5.270833
0.854167
0
0
0
0
0
0
0
0
0
0
0.068182
0.270142
422
18
97
23.444444
0.753247
0.106635
0
0
1
0
0.085333
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f999e35df644469d08455f65af9616eb665f9599
627
py
Python
Text/Lesson2/examqn_mich.py
michelleshelly/programming-together
d87a02537278476fa74d16570e3ee1b0ce07c0a1
[ "MIT" ]
null
null
null
Text/Lesson2/examqn_mich.py
michelleshelly/programming-together
d87a02537278476fa74d16570e3ee1b0ce07c0a1
[ "MIT" ]
null
null
null
Text/Lesson2/examqn_mich.py
michelleshelly/programming-together
d87a02537278476fa74d16570e3ee1b0ce07c0a1
[ "MIT" ]
null
null
null
ingredient1 = "chicken" ingredient2 = "rice" Michsays = input ("What is inside this hawker chicken rice?") if (Michsays == ingredient1 or Michsays == ingredient2): print("correct!") else: print("look again!") # == takes precedence over or Michasks = input("How much is the hawker chicken rice?") floatConvert...
25.08
61
0.703349
81
627
5.444444
0.604938
0.018141
0.170068
0.176871
0.210884
0
0
0
0
0
0
0.023392
0.181818
627
24
62
26.125
0.836257
0.135566
0
0
0
0
0.327747
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
f9a76e6117c5b248ca49a29e597260a2ee791a80
2,172
py
Python
pythonProject1/venv/Lib/site-packages/jsonfig/contents.py
mjtomlinson/CNE330_Python_1_Final_Project
05020806860937ef37b9a0ad2e27de4897a606de
[ "CC0-1.0" ]
null
null
null
pythonProject1/venv/Lib/site-packages/jsonfig/contents.py
mjtomlinson/CNE330_Python_1_Final_Project
05020806860937ef37b9a0ad2e27de4897a606de
[ "CC0-1.0" ]
null
null
null
pythonProject1/venv/Lib/site-packages/jsonfig/contents.py
mjtomlinson/CNE330_Python_1_Final_Project
05020806860937ef37b9a0ad2e27de4897a606de
[ "CC0-1.0" ]
null
null
null
import time import os import hashlib class FileContents(object): """Loads the contents of a file and holds it in memory. :param path: Path to the file to load """ def __init__(self, path): self._path = path self._contents = None self._hash = None self.load() ...
28.578947
83
0.62523
267
2,172
4.88015
0.273408
0.037606
0.029931
0.052955
0.465081
0.399079
0.399079
0.399079
0.296239
0.204144
0
0.002581
0.286372
2,172
75
84
28.96
0.838065
0.274401
0
0.27907
0
0
0.000668
0
0
0
0
0
0
1
0.209302
false
0
0.069767
0.023256
0.44186
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
f9ce4fd63fb96f23967cbaae557a4c2d7ec54b79
1,399
py
Python
tests/test_auth_service.py
OpenDroneMap/python-WebODM
e370cf31c37cd06764e4a0f69d3ce87ef55c9d56
[ "MIT" ]
20
2017-08-23T21:48:40.000Z
2022-03-25T05:06:32.000Z
tests/test_auth_service.py
Pandinosaurus/python-WebODM
e370cf31c37cd06764e4a0f69d3ce87ef55c9d56
[ "MIT" ]
139
2017-08-29T14:03:51.000Z
2019-05-20T17:47:26.000Z
tests/test_auth_service.py
Pandinosaurus/python-WebODM
e370cf31c37cd06764e4a0f69d3ce87ef55c9d56
[ "MIT" ]
9
2017-08-23T21:51:15.000Z
2019-09-03T13:22:28.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for AuthService.""" import pytest from webodm import NonFieldErrors, LOCAL_HOST from webodm.services import AuthService @pytest.fixture def authservice(): return AuthService(LOCAL_HOST) class MockResponse: def __init__(self, json_data, status_code): ...
25.907407
76
0.670479
168
1,399
5.410714
0.470238
0.035204
0.039604
0.037404
0.211221
0.211221
0.132013
0.132013
0.132013
0.132013
0
0.029623
0.203717
1,399
53
77
26.396226
0.786355
0.046462
0
0.058824
0
0
0.195931
0
0
0
0
0
0.058824
1
0.176471
false
0.058824
0.088235
0.058824
0.441176
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f9cf1f965c95d62eb4a00ba336fb03e5dce84980
3,285
py
Python
server (social media)/user.py
codingiamnot/social-media
fa19d8a993dd895d99276f0bf05967aee91f137f
[ "MIT" ]
null
null
null
server (social media)/user.py
codingiamnot/social-media
fa19d8a993dd895d99276f0bf05967aee91f137f
[ "MIT" ]
null
null
null
server (social media)/user.py
codingiamnot/social-media
fa19d8a993dd895d99276f0bf05967aee91f137f
[ "MIT" ]
null
null
null
from FriendRequest import FriendRequest from Post import Post from constant import large_prime_number as lpn import exception import os import hashlib from Sender import Sender class User: def __init__(self, username, password, id_param, server): self.username = username self.friends =...
31.586538
82
0.624658
386
3,285
5.106218
0.233161
0.056824
0.045662
0.060883
0.191273
0.152207
0.152207
0.111618
0.111618
0.111618
0
0.002163
0.296195
3,285
103
83
31.893204
0.850346
0
0
0.174419
0
0
0.003457
0
0
0
0
0
0
1
0.151163
false
0.069767
0.081395
0.046512
0.337209
0.011628
0
0
0
null
0
0
0
0
0
0
0
0
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
f9cf222b2c672bd90fe2f6c306f8e9e5dd316ad7
2,980
py
Python
tools/validators/ontology_validator/yamlformat/tests/base_lib_test.py
cstirdivant/digitalbuildings
40a7c8d75b809ae14f6008265b0a160e0dee9926
[ "Apache-2.0" ]
2
2021-07-29T16:41:18.000Z
2021-11-19T22:41:45.000Z
tools/validators/ontology_validator/yamlformat/tests/base_lib_test.py
cstirdivant/digitalbuildings
40a7c8d75b809ae14f6008265b0a160e0dee9926
[ "Apache-2.0" ]
1
2021-09-20T17:31:07.000Z
2021-09-20T17:35:36.000Z
tools/validators/ontology_validator/yamlformat/tests/base_lib_test.py
cstirdivant/digitalbuildings
40a7c8d75b809ae14f6008265b0a160e0dee9926
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
33.111111
78
0.742617
341
2,980
6.357771
0.390029
0.048432
0.047048
0.069188
0.391144
0.345941
0.345941
0.252768
0.252768
0.165129
0
0.005889
0.145302
2,980
89
79
33.483146
0.845308
0.207047
0
0.218182
0
0
0.105757
0.011514
0
0
0
0
0.418182
1
0.163636
false
0
0.090909
0
0.272727
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
f9cf83dbc1544849a72e2777c25209a26403e558
553
py
Python
examples_allennlp/utils/retrieval/retrievers/retriever.py
techthiyanes/luke
aa234d934527eda96a9a4c3bd9c7999c05c3fd58
[ "Apache-2.0" ]
467
2020-10-02T16:13:59.000Z
2022-03-31T03:15:32.000Z
examples_allennlp/utils/retrieval/retrievers/retriever.py
techthiyanes/luke
aa234d934527eda96a9a4c3bd9c7999c05c3fd58
[ "Apache-2.0" ]
99
2020-10-17T11:30:07.000Z
2022-03-31T10:10:39.000Z
examples_allennlp/utils/retrieval/retrievers/retriever.py
techthiyanes/luke
aa234d934527eda96a9a4c3bd9c7999c05c3fd58
[ "Apache-2.0" ]
73
2020-10-06T11:29:08.000Z
2022-03-09T17:11:06.000Z
from typing import Tuple import torch from allennlp.common import Registrable class Retriever(Registrable): def _post_process_scores(self, scores: torch.Tensor): raise NotImplementedError def __call__(self, scores: torch.Tensor) -> Tuple[torch.LongTensor, torch.LongTensor]: """ Parame...
29.105263
90
0.669078
61
553
5.836066
0.47541
0.092697
0.143258
0.117978
0
0
0
0
0
0
0
0.002347
0.229656
553
18
91
30.722222
0.833333
0.124774
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.3
0
0.7
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
f9e16e330bad197b9e1e428b9e20ea7eaf9f395f
1,144
py
Python
setup.py
konstantint/ipyslack
ccfc2b26a025c6d82b390954b31d62481980dc3d
[ "MIT" ]
5
2017-06-04T14:51:10.000Z
2020-04-04T03:51:42.000Z
setup.py
konstantint/ipyslack
ccfc2b26a025c6d82b390954b31d62481980dc3d
[ "MIT" ]
null
null
null
setup.py
konstantint/ipyslack
ccfc2b26a025c6d82b390954b31d62481980dc3d
[ "MIT" ]
null
null
null
""" IPython magic for sending slack notifications. Copyright 2017, Konstantin Tretyakov Based on: https://github.com/kalaidin/ipytelegram/blob/master/ipytelegram.py License: MIT """ from setuptools import setup setup(name='ipyslack', version='1.2.1', description="IPython magic for sending slack notificat...
33.647059
94
0.646853
119
1,144
6.176471
0.722689
0.032653
0.040816
0.059864
0.108844
0.108844
0
0
0
0
0
0.012346
0.221154
1,144
33
95
34.666667
0.81257
0.215909
0
0
0
0
0.497188
0
0
0
0
0
0
1
0
true
0
0.041667
0
0.041667
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
f9e586def21988eb853087c3a7ca45fbd8e9087e
202
py
Python
Ticket Python/order.py
janzyxcode/LazyTicket
a8a3b9451a662bebab0e0a44dff5d02e44b73f97
[ "MIT" ]
null
null
null
Ticket Python/order.py
janzyxcode/LazyTicket
a8a3b9451a662bebab0e0a44dff5d02e44b73f97
[ "MIT" ]
null
null
null
Ticket Python/order.py
janzyxcode/LazyTicket
a8a3b9451a662bebab0e0a44dff5d02e44b73f97
[ "MIT" ]
null
null
null
# _*_ coding: utf-8 _*_ import ngRequest def checkUser(): data = { "_json_att": "" } url = 'https://kyfw.12306.cn/otn/login/checkUser' return ngRequest.postRequest(url, data)
16.833333
53
0.608911
23
202
5.086957
0.826087
0
0
0
0
0
0
0
0
0
0
0.038961
0.237624
202
12
54
16.833333
0.720779
0.10396
0
0
0
0
0.277778
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f9e91a1e8be66d8d1a45f8ac3bd9db12d5326078
214
py
Python
pymysqlreplication/constants/UNSIGNED.py
hurbcom/python-mysql-replication
7e97754b9e77dc7a75c0af05444c2f40dd2f6018
[ "Apache-2.0" ]
null
null
null
pymysqlreplication/constants/UNSIGNED.py
hurbcom/python-mysql-replication
7e97754b9e77dc7a75c0af05444c2f40dd2f6018
[ "Apache-2.0" ]
null
null
null
pymysqlreplication/constants/UNSIGNED.py
hurbcom/python-mysql-replication
7e97754b9e77dc7a75c0af05444c2f40dd2f6018
[ "Apache-2.0" ]
null
null
null
UNSIGNED_CHAR_COLUMN = 251 UNSIGNED_CHAR_LENGTH = 1 UNSIGNED_INT24_COLUMN = 253 UNSIGNED_INT24_LENGTH = 3 UNSIGNED_INT64_COLUMN = 254 UNSIGNED_INT64_LENGTH = 8 UNSIGNED_SHORT_COLUMN = 252 UNSIGNED_SHORT_LENGTH = 2
23.777778
27
0.850467
32
214
5.1875
0.46875
0.144578
0
0
0
0
0
0
0
0
0
0.126316
0.11215
214
8
28
26.75
0.747368
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dda95f5469af00eaaa2312a86a849a97c4dfc505
1,264
py
Python
src/game.py
brayvasq/senku
712b4aea8db69173a4bb91f29554e747ba019237
[ "MIT" ]
null
null
null
src/game.py
brayvasq/senku
712b4aea8db69173a4bb91f29554e747ba019237
[ "MIT" ]
null
null
null
src/game.py
brayvasq/senku
712b4aea8db69173a4bb91f29554e747ba019237
[ "MIT" ]
1
2018-04-27T14:42:56.000Z
2018-04-27T14:42:56.000Z
from src.models.node import Node from src.models.generator import Generator from src.utils.bfs import BFS from src.utils.dfs import DFS from src.utils.greedy import Greedy from src.utils.a_star import AStar class Game: def __init__(self): self.root = self.__base_node() def process(self, option = "bfs"...
29.395349
56
0.497627
140
1,264
4.185714
0.292857
0.040956
0.051195
0.054608
0.124573
0.017065
0.017065
0.017065
0.017065
0
0
0.016835
0.295095
1,264
42
57
30.095238
0.640853
0.021361
0
0
0
0
0.149919
0
0
0
0
0.02381
0
1
0.114286
false
0
0.171429
0
0.342857
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
1
0
0
0
0
0
0
0
0
0
0
1
ddb30257336c5eba2f151eb1c4c3dc11e432d5cf
1,448
py
Python
odooku/helpers/debug.py
davejrv/import
0dbca8f432d1a051a2bdb30c952cc26f1ffd74ae
[ "Apache-2.0" ]
55
2017-09-11T06:48:39.000Z
2022-03-31T18:14:46.000Z
odooku/helpers/debug.py
davejrv/import
0dbca8f432d1a051a2bdb30c952cc26f1ffd74ae
[ "Apache-2.0" ]
4
2018-01-13T09:13:48.000Z
2019-09-28T10:24:43.000Z
odooku/helpers/debug.py
davejrv/import
0dbca8f432d1a051a2bdb30c952cc26f1ffd74ae
[ "Apache-2.0" ]
46
2017-12-30T22:31:45.000Z
2022-02-17T05:35:55.000Z
import time import logging import greenlet import gevent import contextlib _logger = logging.getLogger(__name__) class BlockDebugger(object): def __init__(self, timeout=1000): self.timeout = timeout self._active_greenlet = None self._greenlet_switch_counter = 0 self._greenlet_la...
35.317073
81
0.675414
185
1,448
4.978378
0.383784
0.104235
0.086862
0.119435
0.210641
0.084691
0.084691
0.084691
0
0
0
0.009337
0.260359
1,448
40
82
36.2
0.850607
0.127762
0
0
0
0
0.042891
0
0
0
0
0
0
0
null
null
0
0.166667
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
ddb75705f5e9ae991aa28f36050f7eac821a2312
801
py
Python
auctions/migrations/0007_auto_20201204_1353.py
juannajul/CS50Ecommerce
d3e8b07b4f3266f99075d408c42019426d6b7f07
[ "MIT" ]
null
null
null
auctions/migrations/0007_auto_20201204_1353.py
juannajul/CS50Ecommerce
d3e8b07b4f3266f99075d408c42019426d6b7f07
[ "MIT" ]
null
null
null
auctions/migrations/0007_auto_20201204_1353.py
juannajul/CS50Ecommerce
d3e8b07b4f3266f99075d408c42019426d6b7f07
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-12-04 17:53 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('auctions', '0006_auto_20201203_1859'), ] operations = [ migrations.AlterFi...
30.807692
140
0.661673
91
801
5.681319
0.505495
0.061896
0.081238
0.12766
0.348162
0.348162
0.185687
0.185687
0.185687
0
0
0.049839
0.223471
801
25
141
32.04
0.78135
0.05618
0
0.315789
1
0
0.140584
0.030504
0
0
0
0
0
1
0
false
0
0.157895
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ddbae29081ae4a77132a6dffe56eb4f614a926ee
2,592
py
Python
c2p/c2p_1x1_4bpl_blitter.py
losso3000/demoscene
f1dc78bcfcc43bdfbd85c90366fdeb948e0ab365
[ "Artistic-2.0" ]
80
2015-02-10T19:33:04.000Z
2022-02-12T10:29:43.000Z
c2p/c2p_1x1_4bpl_blitter.py
losso3000/demoscene
f1dc78bcfcc43bdfbd85c90366fdeb948e0ab365
[ "Artistic-2.0" ]
30
2015-12-19T23:08:22.000Z
2022-02-25T15:50:47.000Z
c2p/c2p_1x1_4bpl_blitter.py
losso3000/demoscene
f1dc78bcfcc43bdfbd85c90366fdeb948e0ab365
[ "Artistic-2.0" ]
17
2015-02-10T19:33:31.000Z
2022-02-24T07:10:57.000Z
#!/usr/bin/env python -B from common import Bit, Word, Channel, Blit, Array def c2p(bitplane_output=True): m0 = Word.Mask('00ff') m1 = Word.Mask('0f0f') m2 = Word.Mask('3333') m3 = Word.Mask('5555') print "=[ c2p 1x1 4bpl (blitter) ]=".center(48, '-') def MakeWord(chars, color): bit...
36.507042
79
0.446373
446
2,592
2.589686
0.152466
0.110823
0.114286
0.124675
0.638961
0.49697
0.365368
0.358442
0.358442
0.316883
0
0.10612
0.312886
2,592
70
80
37.028571
0.542392
0.008873
0
0.105263
0
0
0.043614
0
0
0
0
0
0
0
null
null
0
0.017544
null
null
0.035088
0
0
0
null
0
0
0
0
0
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
ddc054ac6d3f74f86c7739e2ebbcb19c05ef6329
474
py
Python
tests/test_combobox.py
Yardanico/pylibui-cffi
10d90f08b6b1e43bf567ffcd22dbe976cb10e80e
[ "MIT" ]
6
2017-10-16T03:23:05.000Z
2020-11-10T06:24:04.000Z
tests/test_combobox.py
TiberiumN/pylibui-cffi
10d90f08b6b1e43bf567ffcd22dbe976cb10e80e
[ "MIT" ]
null
null
null
tests/test_combobox.py
TiberiumN/pylibui-cffi
10d90f08b6b1e43bf567ffcd22dbe976cb10e80e
[ "MIT" ]
1
2018-09-07T06:14:27.000Z
2018-09-07T06:14:27.000Z
""" Pylibui test suite. """ from pylibui.controls import Combobox from tests.utils import WindowTestCase class ComboboxTest(WindowTestCase): def setUp(self): super().setUp() self.combobox = Combobox() def test_set_selected(self): """Tests the set_selected method of the combobox."""...
22.571429
60
0.664557
53
474
5.886792
0.490566
0.153846
0.128205
0.160256
0
0
0
0
0
0
0
0.005479
0.229958
474
20
61
23.7
0.849315
0.139241
0
0
0
0
0.017812
0
0
0
0
0
0.090909
1
0.181818
false
0
0.181818
0
0.454545
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ddcd762b1e335309a9fd8b723c56ccdc1beecc70
1,289
py
Python
rsadecrypt.py
Sanardi/bored
2816395b99c05871f01fbbd55a833dcd13801014
[ "MIT" ]
null
null
null
rsadecrypt.py
Sanardi/bored
2816395b99c05871f01fbbd55a833dcd13801014
[ "MIT" ]
null
null
null
rsadecrypt.py
Sanardi/bored
2816395b99c05871f01fbbd55a833dcd13801014
[ "MIT" ]
null
null
null
import Crypto from Crypto.PublicKey import RSA from Crypto import Random import ast random_generator = Random.new().read key = RSA.generate(1024, random_generator) #generate pub and priv key publickey = key.publickey() # pub key export for exchange filehandle = "values.txt" filelist = [] with open(filehandle) as...
20.460317
69
0.707525
182
1,289
4.983516
0.351648
0.066152
0.049614
0.059537
0.339581
0.339581
0.339581
0.339581
0.277839
0.277839
0
0.013761
0.154383
1,289
62
70
20.790323
0.818349
0.172227
0
0.305556
1
0
0.098206
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.138889
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
ddd4a9683b8444c24e2ff555d054e5b37c63fb87
1,890
py
Python
src/NetworkManager.py
ChristianGreiner/messagebox-hardware
b1710c3ee7e737bb4d6bb8b5bf19f99e98b85b7f
[ "MIT" ]
null
null
null
src/NetworkManager.py
ChristianGreiner/messagebox-hardware
b1710c3ee7e737bb4d6bb8b5bf19f99e98b85b7f
[ "MIT" ]
null
null
null
src/NetworkManager.py
ChristianGreiner/messagebox-hardware
b1710c3ee7e737bb4d6bb8b5bf19f99e98b85b7f
[ "MIT" ]
null
null
null
import requests class UnauthenticatedError(Exception): pass class InvalidTokenError(Exception): pass class InvalidResponseError(Exception): pass class NetworkManager: def __init__(self, endpoint): self.endpoint = endpoint self.token = "" def register_device(self, hardware_id...
26.25
84
0.566667
175
1,890
6
0.325714
0.051429
0.051429
0.049524
0.152381
0.152381
0.089524
0
0
0
0
0.007109
0.330159
1,890
71
85
26.619718
0.822275
0
0
0.14
0
0
0.119048
0.024868
0
0
0
0
0
1
0.1
false
0.06
0.02
0.02
0.3
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
ddd8785f418e1f594d07fc1f981ad0ebc9fc56c5
7,562
py
Python
misc/create_simple_shapes_dataset.py
yishayahu/superquadric_parsing
abdfc0e4f4c6c8a04fd85ce0f4279ac6d807aacd
[ "MIT" ]
null
null
null
misc/create_simple_shapes_dataset.py
yishayahu/superquadric_parsing
abdfc0e4f4c6c8a04fd85ce0f4279ac6d807aacd
[ "MIT" ]
null
null
null
misc/create_simple_shapes_dataset.py
yishayahu/superquadric_parsing
abdfc0e4f4c6c8a04fd85ce0f4279ac6d807aacd
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Script used to generate a cuboid dataset with cubes and rectangles under various shapes, rotations, translations following the general format of ShapeNet. """ import argparse import random import os from string import ascii_letters, digits import sys import numpy as np from progress.bar import...
32.316239
78
0.578286
1,026
7,562
4.11306
0.183236
0.024645
0.036493
0.037915
0.393365
0.336493
0.291943
0.217299
0.208294
0.199289
0
0.03764
0.293838
7,562
233
79
32.454936
0.752622
0.128537
0
0.227273
1
0
0.11267
0.02973
0
0
0
0
0.022727
1
0.028409
false
0
0.056818
0
0.107955
0.017045
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
dddf4a216ba33e566f944f78f855854350a582dd
4,888
py
Python
class and objects/Acess private members in Child Class.py
ZephyrAveryl777/Python-Programs
26de85c31af28382d406d27d54186b966a7b1bfc
[ "MIT" ]
6
2020-08-13T11:49:29.000Z
2021-03-07T05:46:17.000Z
class and objects/Acess private members in Child Class.py
ZephyrAveryl777/Python-Programs
26de85c31af28382d406d27d54186b966a7b1bfc
[ "MIT" ]
null
null
null
class and objects/Acess private members in Child Class.py
ZephyrAveryl777/Python-Programs
26de85c31af28382d406d27d54186b966a7b1bfc
[ "MIT" ]
1
2021-04-24T06:12:48.000Z
2021-04-24T06:12:48.000Z
print('Accessing private members in Class:') print('-'*35) class Human(): # Private var __privateVar = "this is __private variable" # Constructor method def __init__(self): self.className = "Human class constructor" self.__privateVar = "this is redefined __private variable"...
42.877193
176
0.705606
626
4,888
5.375399
0.196486
0.033878
0.044577
0.053492
0.433581
0.309955
0.218425
0.17266
0.10847
0.07578
0
0.016562
0.184738
4,888
113
177
43.256637
0.827854
0.248568
0
0.277778
0
0
0.458305
0.055817
0
0
0
0
0
1
0.194444
false
0
0
0.125
0.430556
0.319444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
ddef87052e86b45ba6e6754a502a2685818d652f
3,858
py
Python
test_service.py
GovWizely/lambda-canada-trade-leads
2aea470c2ab7189b471d4ea3b230b3ed878ad398
[ "MIT" ]
null
null
null
test_service.py
GovWizely/lambda-canada-trade-leads
2aea470c2ab7189b471d4ea3b230b3ed878ad398
[ "MIT" ]
101
2020-04-07T20:52:48.000Z
2022-03-28T18:07:22.000Z
test_service.py
GovWizely/lambda-canada-trade-leads
2aea470c2ab7189b471d4ea3b230b3ed878ad398
[ "MIT" ]
1
2020-06-27T02:27:14.000Z
2020-06-27T02:27:14.000Z
import vcr from botocore.exceptions import ClientError from service import get_entries, handler @vcr.use_cassette() def test_get_entries(): """Reads from the `test_get_entries` cassette and processes the entries. """ entries = get_entries() assert len(entries) == 633 print(entries[0]) expecte...
52.849315
96
0.681441
455
3,858
5.663736
0.503297
0.012418
0.038029
0.044237
0.354288
0.354288
0.303066
0.268917
0.221187
0.187815
0
0.110427
0.199585
3,858
72
97
53.583333
0.724093
0.029808
0
0.0625
0
0.015625
0.700161
0.155145
0
0
0
0
0.046875
1
0.03125
false
0
0.046875
0
0.078125
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ddf8c48c15207ff467b40b60458e4691598b6595
420
py
Python
.frameworks/skdiscovery/Table/Analyses/Variant_DBScan.py
MITeaps/codesnippets
7621ec4d4c667e95a66c355563e467e50f0fadf6
[ "MIT" ]
null
null
null
.frameworks/skdiscovery/Table/Analyses/Variant_DBScan.py
MITeaps/codesnippets
7621ec4d4c667e95a66c355563e467e50f0fadf6
[ "MIT" ]
null
null
null
.frameworks/skdiscovery/Table/Analyses/Variant_DBScan.py
MITeaps/codesnippets
7621ec4d4c667e95a66c355563e467e50f0fadf6
[ "MIT" ]
null
null
null
# Variant DBScan analysis item # Set variants vdbscan_variants = pd.DataFrame({'eps': [2,2,3,3], 'mp' : [4,4,5,5]}) # Set column names vdbscan_column_names = ('ra', 'dec') # Create Variant DBScan analysis item ana_vdbscan = skdiscovery.data_structure.table.analysis.VDBScan('VDBScan',vdbscan_variants, vdbscan_column_na...
35
113
0.771429
59
420
5.322034
0.508475
0.124204
0.200637
0.159236
0
0
0
0
0
0
0
0.02139
0.109524
420
11
114
38.181818
0.818182
0.345238
0
0
0
0
0.063197
0
0
0
0
0
0
1
0
false
0
0
0
0
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
ddf93692632f320e6e02be2288b10ebe34c2c592
665
py
Python
server/api/src/control/headers.py
mminamina/311-data
9a3e4dc6e14c7500fc3f75f583c7fc4b01108b29
[ "MIT" ]
null
null
null
server/api/src/control/headers.py
mminamina/311-data
9a3e4dc6e14c7500fc3f75f583c7fc4b01108b29
[ "MIT" ]
null
null
null
server/api/src/control/headers.py
mminamina/311-data
9a3e4dc6e14c7500fc3f75f583c7fc4b01108b29
[ "MIT" ]
null
null
null
import time import json def add_performance_header(sanic_app): """ Add a header to sanic responses that contains the number of seconds it took to execute the request. """ async def request(req): req.ctx.start = time.perf_counter() async def response(req, res): try: ...
27.708333
65
0.633083
80
665
5.125
0.55
0.058537
0.053659
0.126829
0
0
0
0
0
0
0
0.002062
0.270677
665
23
66
28.913043
0.843299
0.148872
0
0
0
0
0.075092
0
0
0
0
0
0
1
0.066667
false
0.066667
0.133333
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
1
0
0
0
0
0
1
ddfdaa757858f77ac177977d6680c1959a7b4fb5
1,067
py
Python
apiary/hives/migrations/0030_auto_20170502_2204.py
SamStudio8/django-apiary
91427312e84afda834c0bcb5a277eb99c444618e
[ "MIT" ]
1
2017-04-22T11:49:04.000Z
2017-04-22T11:49:04.000Z
apiary/hives/migrations/0030_auto_20170502_2204.py
SamStudio8/django-apiary
91427312e84afda834c0bcb5a277eb99c444618e
[ "MIT" ]
null
null
null
apiary/hives/migrations/0030_auto_20170502_2204.py
SamStudio8/django-apiary
91427312e84afda834c0bcb5a277eb99c444618e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2017-05-02 22:04 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('hives', '0029_remove_inspectionbox_timestamp'), ] o...
31.382353
126
0.593252
114
1,067
5.403509
0.596491
0.038961
0.045455
0.071429
0
0
0
0
0
0
0
0.028097
0.266167
1,067
33
127
32.333333
0.758621
0.062793
0
0.192308
1
0
0.109328
0.035105
0
0
0
0
0
1
0
false
0
0.115385
0
0.230769
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
fb04d4afad703aee8bbe6061a14b04530fffd817
2,477
py
Python
python3/koans/about_dictionaries.py
billysm64/python_koans
2f3e46ceab17b867b340c584844c6f3ba00f02c6
[ "MIT" ]
null
null
null
python3/koans/about_dictionaries.py
billysm64/python_koans
2f3e46ceab17b867b340c584844c6f3ba00f02c6
[ "MIT" ]
null
null
null
python3/koans/about_dictionaries.py
billysm64/python_koans
2f3e46ceab17b867b340c584844c6f3ba00f02c6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Based on AboutHashes in the Ruby Koans # from runner.koan import * class AboutDictionaries(Koan): def test_creating_dictionaries(self): empty_dict = dict() #dict() returns an empty dictionary self.assertEqual(dict, type(empty_dict)) self.a...
43.45614
289
0.647558
341
2,477
4.57478
0.331378
0.153846
0.046154
0.038462
0.222436
0.219872
0.122436
0.122436
0.091026
0.062821
0
0.011868
0.217602
2,477
56
290
44.232143
0.793086
0.233347
0
0.157895
0
0
0.108165
0
0
0
0
0
0.473684
1
0.184211
false
0
0.026316
0
0.236842
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
0
0
0
0
0
0
0
0
1
fb0777864fe2cc009256498da5cad6cfa7a3620e
580
py
Python
setup.py
adriangb/EasyAnimation
93fc1b097583dad4fd2277eb40feaf9dde28c611
[ "MIT" ]
1
2019-06-02T08:27:09.000Z
2019-06-02T08:27:09.000Z
setup.py
adriangb/easyanimation
93fc1b097583dad4fd2277eb40feaf9dde28c611
[ "MIT" ]
null
null
null
setup.py
adriangb/easyanimation
93fc1b097583dad4fd2277eb40feaf9dde28c611
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='easyanimation', version='0.1', description='Wrapper for live plotting in matplotlib and Qt', author='Adrian Garcia Badaracco', author_email='adrian@adriangb.com', url='https://github.com/adriangb/easyanimation', package_dir={'easyanimation': ...
38.666667
104
0.646552
66
580
5.621212
0.712121
0.048518
0
0
0
0
0
0
0
0
0
0.027837
0.194828
580
14
105
41.428571
0.766595
0
0
0
0
0.076923
0.505172
0.131034
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
fb1580ba555bdb56bde37eaa9ef095e43e22fb79
23,828
py
Python
tests/tests.py
denshelemekh/alien-invasion
afc7bc97340c83e4e84d47d97fa2f9f71d96bf26
[ "MIT" ]
2
2020-05-13T18:37:22.000Z
2020-05-15T11:54:24.000Z
tests/tests.py
denshelemekh/alien-invasion
afc7bc97340c83e4e84d47d97fa2f9f71d96bf26
[ "MIT" ]
1
2020-07-12T19:53:33.000Z
2020-07-13T10:08:42.000Z
tests/tests.py
denshelemekh/alien-invasion
afc7bc97340c83e4e84d47d97fa2f9f71d96bf26
[ "MIT" ]
null
null
null
""" Tests for Alien Invasion game """ import unittest from pygame.sprite import Group # Import _AIGameSingleton for testing # Since setUp function is called for every test method, we are creating all required objects only once. from .ai_game_singleton import ai_sng from ship import Ship class TestAlienClass(unitt...
34.04
110
0.678068
3,120
23,828
4.921474
0.060256
0.060176
0.089873
0.050798
0.663562
0.559297
0.453924
0.383654
0.332791
0.227157
0
0.003601
0.207445
23,828
699
111
34.088698
0.809478
0.183733
0
0.157754
0
0
0.000855
0
0
0
0
0
0.395722
1
0.385027
false
0
0.010695
0
0.427807
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
fb18ad4ae6343a0f29729cacc25443ad6fcd60aa
252
py
Python
reviews/urls.py
yun-mh/uniwalk
f5307f6970b24736d13b56b4792c580398c35b3a
[ "Apache-2.0" ]
null
null
null
reviews/urls.py
yun-mh/uniwalk
f5307f6970b24736d13b56b4792c580398c35b3a
[ "Apache-2.0" ]
9
2020-01-10T14:10:02.000Z
2022-03-12T00:08:19.000Z
reviews/urls.py
yun-mh/uniwalk
f5307f6970b24736d13b56b4792c580398c35b3a
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views app_name = "reviews" urlpatterns = [ path("list/product-<int:pk>/", views.ReviewListView.as_view(), name="list"), path("product-<int:pk>/post/", views.ReviewPostView.as_view(), name="post"), ]
25.2
80
0.686508
34
252
5
0.558824
0.117647
0.141176
0
0
0
0
0
0
0
0
0
0.123016
252
9
81
28
0.769231
0
0
0
0
0
0.234127
0.174603
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fb1b4986e175139f8f6250c483f216338f7df73e
1,691
py
Python
scripts/f319.py
Eve-ning/aleph0
0a893f81328420ba4661cb920d3f9c39b3506d96
[ "MIT" ]
null
null
null
scripts/f319.py
Eve-ning/aleph0
0a893f81328420ba4661cb920d3f9c39b3506d96
[ "MIT" ]
null
null
null
scripts/f319.py
Eve-ning/aleph0
0a893f81328420ba4661cb920d3f9c39b3506d96
[ "MIT" ]
null
null
null
import numpy as np from aleph.consts import * from reamber.algorithms.generate.sv.generators.svOsuMeasureLineMD import svOsuMeasureLineMD, SvOsuMeasureLineEvent from reamber.osu.OsuMap import OsuMap LINES = 20 amps, curves = np.random.rand(LINES), np.random.rand(LINES) + 3 def f319(m: OsuMap): events = [*[SvOs...
35.978723
114
0.456535
184
1,691
4.195652
0.336957
0.015544
0.041451
0.046632
0.319948
0.297927
0.297927
0.297927
0.297927
0.163212
0
0.094359
0.423418
1,691
46
115
36.76087
0.697436
0
0
0.179487
1
0
0
0
0
0
0
0
0
1
0.025641
false
0
0.102564
0
0.128205
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
fb226dea53aac8bb95db3e806af8d871b2b6b083
2,429
py
Python
qf_lib/backtesting/events/time_event/single_time_event/schedule_order_execution_event.py
webclinic017/qf-lib
96463876719bba8a76c8269cef76addf3a2d836d
[ "Apache-2.0" ]
198
2019-08-16T15:09:23.000Z
2022-03-30T12:44:00.000Z
qf_lib/backtesting/events/time_event/single_time_event/schedule_order_execution_event.py
webclinic017/qf-lib
96463876719bba8a76c8269cef76addf3a2d836d
[ "Apache-2.0" ]
13
2021-01-07T10:15:19.000Z
2022-03-29T13:01:47.000Z
qf_lib/backtesting/events/time_event/single_time_event/schedule_order_execution_event.py
webclinic017/qf-lib
96463876719bba8a76c8269cef76addf3a2d836d
[ "Apache-2.0" ]
29
2019-08-16T15:21:28.000Z
2022-02-23T09:53:49.000Z
# Copyright 2016-present CERN – European Organization for Nuclear Research # # 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...
43.375
125
0.73487
323
2,429
5.390093
0.442724
0.034463
0.034463
0.034463
0.066054
0
0
0
0
0
0
0.004126
0.201729
2,429
55
126
44.163636
0.893244
0.518732
0
0.117647
0
0
0
0
0
0
0
0
0
1
0.176471
false
0
0.352941
0
0.705882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fb259f47775a5fa1e331459491aa454502e64d46
2,560
py
Python
rha/core/admin.py
klebercode/rhape
60893575b855b349c1f52e8c1ea07a58a80b615e
[ "MIT" ]
null
null
null
rha/core/admin.py
klebercode/rhape
60893575b855b349c1f52e8c1ea07a58a80b615e
[ "MIT" ]
null
null
null
rha/core/admin.py
klebercode/rhape
60893575b855b349c1f52e8c1ea07a58a80b615e
[ "MIT" ]
null
null
null
# coding: utf-8 from django.contrib import admin from models import (Enterprise, Contact, Partner, Step, Gallery, Course, Objective, Public, Team, Cost, Graduation, Institute, Subscribe) from forms import (CourseModelForm, ObjectiveModelForm, PublicModelForm,...
32.405063
72
0.649219
240
2,560
6.804167
0.304167
0.071647
0.135334
0.09553
0.154317
0.117575
0.117575
0.117575
0.117575
0
0
0.004471
0.213672
2,560
78
73
32.820513
0.806756
0.005078
0
0.103448
0
0
0.184676
0
0
0
0
0
0
1
0
false
0
0.051724
0
0.551724
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
fb2b21c5634b6f945caa6cfc06c5a540257c4c7f
1,111
py
Python
setup.py
django-oscar/django-oscar-mws
4ea012943d61b1c38c14c392230be92e48525f59
[ "BSD-3-Clause" ]
12
2015-03-16T03:45:59.000Z
2021-03-30T10:58:46.000Z
setup.py
Niansheng/django-oscar-mws
4ea012943d61b1c38c14c392230be92e48525f59
[ "BSD-3-Clause" ]
3
2016-01-05T17:45:13.000Z
2019-04-27T12:01:53.000Z
setup.py
Niansheng/django-oscar-mws
4ea012943d61b1c38c14c392230be92e48525f59
[ "BSD-3-Clause" ]
20
2015-04-10T19:17:08.000Z
2021-07-27T03:53:13.000Z
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='django-oscar-mws', version="0.1.0", url='https://github.com/tangentlabs/django-oscar-mws', author="Sebastian Vetter", author_email="sebastian.vetter@tangentsnowball.com.au", description="Integrating Oscar with Amazon...
30.861111
68
0.619262
121
1,111
5.619835
0.669421
0.080882
0.041176
0
0
0
0
0
0
0
0
0.012615
0.215122
1,111
35
69
31.742857
0.767202
0.071107
0
0
0
0
0.466019
0.037864
0
0
0
0
0
1
0
true
0
0.03125
0
0.03125
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
fb317f52fa0584ab631e944885c9d5d133687828
668
py
Python
augment.py
MohamedHeshamMustafa/Brain-Tumor-Automatic-Detection-and-Segmentation-
2b3eb4ea175973d329d570eb23a67d37ebe71124
[ "BSD-3-Clause" ]
null
null
null
augment.py
MohamedHeshamMustafa/Brain-Tumor-Automatic-Detection-and-Segmentation-
2b3eb4ea175973d329d570eb23a67d37ebe71124
[ "BSD-3-Clause" ]
null
null
null
augment.py
MohamedHeshamMustafa/Brain-Tumor-Automatic-Detection-and-Segmentation-
2b3eb4ea175973d329d570eb23a67d37ebe71124
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, print_function import numpy as np import sys import tensorflow as tf from util.data_loader import * from util.data_aug import * from util.parse_config import parse_config def test(config_file): # 1, load configure file config = parse_config(config_file) config_data = config['...
26.72
60
0.738024
102
668
4.54902
0.5
0.107759
0.051724
0
0
0
0
0
0
0
0
0.012433
0.157186
668
25
61
26.72
0.811723
0.056886
0
0
0
0
0.151515
0.043062
0
0
0
0
0.05
1
0.05
false
0
0.35
0
0.4
0.15
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fb33937f4bb21e4fa08dd8eb50167bc20cde8822
1,337
py
Python
how-to-use-azureml/work-with-data/datasets/train-dataset/train.py
hning86/MachineLearningNotebooks
35afd43193a8987a09784b28188fe287304edac6
[ "MIT" ]
1
2019-05-27T06:37:36.000Z
2019-05-27T06:37:36.000Z
how-to-use-azureml/work-with-data/datasets/train-dataset/train.py
heldyyusliar/MachineLearningNotebooks
70fdab0a2864e5535f0c540f515829c07d9b9948
[ "MIT" ]
null
null
null
how-to-use-azureml/work-with-data/datasets/train-dataset/train.py
heldyyusliar/MachineLearningNotebooks
70fdab0a2864e5535f0c540f515829c07d9b9948
[ "MIT" ]
null
null
null
import azureml.dataprep as dprep import azureml.core import pandas as pd import logging import os import datetime import shutil from azureml.core import Workspace, Datastore, Dataset, Experiment, Run from sklearn.model_selection import train_test_split from azureml.core.compute import ComputeTarget, AmlCompute from az...
36.135135
103
0.777861
188
1,337
5.319149
0.345745
0.044
0.088
0.112
0.284
0.284
0.162
0
0
0
0
0.003309
0.095737
1,337
36
104
37.138889
0.823821
0
0
0
0
0
0.163052
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fb37d7e4bf1a82f673845a99da43603c57da97a0
2,295
py
Python
scripts/py_scripts/prevalence_merger.py
Elenadisa/PhenCo
f320fc286b90ec566afb5edfe3d6d1e3dcc28497
[ "MIT" ]
3
2020-12-12T03:17:13.000Z
2021-02-21T01:43:29.000Z
scripts/py_scripts/prevalence_merger.py
Elenadisa/PhenCo
f320fc286b90ec566afb5edfe3d6d1e3dcc28497
[ "MIT" ]
5
2021-02-03T04:15:03.000Z
2021-03-17T07:29:14.000Z
scripts/py_scripts/prevalence_merger.py
Elenadisa/PhenCo
f320fc286b90ec566afb5edfe3d6d1e3dcc28497
[ "MIT" ]
null
null
null
#! /usr/bin/env python ############################################################################################################################################## # METHODS ##################################################################################################################################...
40.982143
143
0.376906
189
2,295
4.449735
0.349206
0.064209
0.107015
0.071344
0.159334
0.066587
0
0
0
0
0
0.009123
0.140305
2,295
55
144
41.727273
0.417131
0.045752
0
0.0625
0
0
0.179564
0
0
0
0
0
0
1
0
false
0
0.09375
0
0.09375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fb38a846edcece335b83161073a73f7829aac484
300
py
Python
scripts/190430_APL_1.py
153957/time-lapse-assemble
afd4b7f706c86a0b9301c2e7171ba8aaa07a11d3
[ "MIT" ]
5
2020-08-26T00:44:46.000Z
2022-02-02T07:33:14.000Z
scripts/190430_APL_1.py
153957/time-lapse
2afb82116a750be054512dbd04662da9dc897a1e
[ "MIT" ]
null
null
null
scripts/190430_APL_1.py
153957/time-lapse
2afb82116a750be054512dbd04662da9dc897a1e
[ "MIT" ]
null
null
null
import os from time_lapse import make_movie NAME = os.path.basename(__file__).replace('.py', '') PATTERN = '/Volumes/Falcon/tl_temp/190430_1_Waterfall/*.tiff', # APL_050876 - APL_051061 if __name__ == '__main__': make_movie(NAME, PATTERN, 24, 2, watermark=True, verbose=False, dryrun=False)
27.272727
89
0.733333
43
300
4.651163
0.790698
0.09
0.13
0
0
0
0
0
0
0
0
0.08365
0.123333
300
10
90
30
0.676806
0.076667
0
0
0
0
0.218182
0.178182
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fb3d1b0dbf41e5fd6094f37d78af1e56eee204f3
354
py
Python
build/lib/PersianG2p/hparams.py
PasaOpasen/Persian_G2P
3fcb5fdfa4330090742c3e324c9bf3cfa1bb571d
[ "MIT" ]
7
2020-08-03T20:58:43.000Z
2021-04-24T12:11:29.000Z
build/lib/PersianG2p/hparams.py
PasaOpasen/PersianG2P
3fcb5fdfa4330090742c3e324c9bf3cfa1bb571d
[ "MIT" ]
null
null
null
build/lib/PersianG2p/hparams.py
PasaOpasen/PersianG2P
3fcb5fdfa4330090742c3e324c9bf3cfa1bb571d
[ "MIT" ]
null
null
null
class Hparams: batch_size = 128 enc_maxlen = 20 dec_maxlen = 20 num_epochs = 20 hidden_units = 128 emb_units = 64 graphemes = ["<pad>", "<unk>", "</s>"] + list(" ًٌٍَُِآئابتثجحخدذرزسشصضطظعغفقلمنهوپچژکگی") phonemes = ["<pad>", "<unk>", "<s>", "</s>"] + list("?ACSZ^_abdefghijklmnopqrstuvxy...
29.5
94
0.579096
40
354
5.1
0.725
0.078431
0.068627
0
0
0
0
0
0
0
0
0.065217
0.220339
354
12
95
29.5
0.652174
0
0
0
0
0
0.290141
0.2
0
0
0
0
0
1
0
false
0
0
0
0.909091
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
34862f14ed0fb5ded12cbd29474714efed3cf91e
1,279
py
Python
app/core/tests/test_models.py
08bce014/my-receipe-app-api
aeae31877d7d2c6f91d45b14ec899329dcab06d1
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
08bce014/my-receipe-app-api
aeae31877d7d2c6f91d45b14ec899329dcab06d1
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
08bce014/my-receipe-app-api
aeae31877d7d2c6f91d45b14ec899329dcab06d1
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model class ModelTests(TestCase): def test_create_user_model(self): """Test for creating user model""" email = "abc@xyz.com" password = "abc" user = get_user_model().objects.create_user( email=em...
31.195122
62
0.639562
152
1,279
5.177632
0.269737
0.101652
0.076239
0.096569
0.337992
0.210928
0.174079
0.129606
0.129606
0.129606
0
0.003151
0.255668
1,279
40
63
31.975
0.823529
0.114152
0
0.071429
0
0
0.046763
0
0
0
0
0
0.214286
1
0.142857
false
0.178571
0.071429
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
1
0
0
0
0
0
1
3489fec7bc03e9cdaeaf7a1f7bf1c4ad7291ab63
3,714
py
Python
lib/faa_stats.py
JulienLeonard/socialstats
944e3e4ceba2d977537934299e0c91abd5375d53
[ "MIT" ]
null
null
null
lib/faa_stats.py
JulienLeonard/socialstats
944e3e4ceba2d977537934299e0c91abd5375d53
[ "MIT" ]
null
null
null
lib/faa_stats.py
JulienLeonard/socialstats
944e3e4ceba2d977537934299e0c91abd5375d53
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.action_chains import ActionChains impor...
31.474576
162
0.663166
447
3,714
5.387025
0.288591
0.045681
0.039867
0.036545
0.365033
0.25706
0.205565
0.075581
0.056478
0.056478
0
0.001724
0.219171
3,714
117
163
31.74359
0.828621
0.122779
0
0.2
0
0
0.174011
0.017691
0
0
0
0
0
1
0.1
false
0.071429
0.142857
0.014286
0.328571
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
348c563c851a381777532c81c0884b8f56e2a858
68,810
py
Python
amlearn/featurize/short_range_order.py
Qi-max/amlearn
88189519bc1079ab5085d5871169c223e0d03057
[ "BSD-3-Clause-LBNL" ]
12
2019-02-07T16:45:29.000Z
2021-03-15T12:44:07.000Z
amlearn/featurize/short_range_order.py
Qi-max/amlearn
88189519bc1079ab5085d5871169c223e0d03057
[ "BSD-3-Clause-LBNL" ]
2
2018-11-22T04:59:10.000Z
2019-12-05T14:22:29.000Z
amlearn/featurize/short_range_order.py
Qi-max/amlearn
88189519bc1079ab5085d5871169c223e0d03057
[ "BSD-3-Clause-LBNL" ]
5
2020-12-03T07:18:50.000Z
2022-01-20T09:17:47.000Z
import os import six import numpy as np import pandas as pd from math import pi from copy import copy from abc import ABCMeta from functools import lru_cache from collections import defaultdict from scipy.spatial.qhull import ConvexHull from amlearn.featurize.base import BaseFeaturize from amlearn.featurize.nearest_nei...
47.784722
107
0.591251
8,090
68,810
4.686032
0.056366
0.031918
0.03503
0.01952
0.749433
0.706199
0.671485
0.642337
0.613769
0.568795
0
0.009952
0.325331
68,810
1,439
108
47.817929
0.806652
0.094027
0
0.53853
0
0
0.044768
0.016279
0
0
0
0
0.010753
1
0.060036
false
0
0.015233
0.005376
0.133513
0.001792
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
349a0c8865f35531a8aac44296d6a4b4dfd387d8
1,799
py
Python
gym_modular/rewards/part/future_part_marker_reward.py
TimSchneider42/mbpo
736ba90bbdaddb2a40a6233bc0b78da72235100a
[ "MIT" ]
null
null
null
gym_modular/rewards/part/future_part_marker_reward.py
TimSchneider42/mbpo
736ba90bbdaddb2a40a6233bc0b78da72235100a
[ "MIT" ]
null
null
null
gym_modular/rewards/part/future_part_marker_reward.py
TimSchneider42/mbpo
736ba90bbdaddb2a40a6233bc0b78da72235100a
[ "MIT" ]
null
null
null
from typing import Sequence, Optional from .part_marker_reward import PartMarkerReward from scene.part import Part class FuturePartMarkerReward(PartMarkerReward): """ A concrete implementation of PartMarkerReward that takes all future parts (parts that are not yet in the scene) into account. """ ...
56.21875
120
0.620901
195
1,799
5.476923
0.410256
0.078652
0.106742
0.087079
0.21161
0.21161
0.097378
0.097378
0.097378
0.097378
0
0.009121
0.329628
1,799
31
121
58.032258
0.876451
0.539188
0
0
0
0
0.00831
0
0
0
0
0
0
1
0.181818
false
0
0.272727
0.090909
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
34a12de9e7975bb28996970552eb6f297d71feb2
2,090
py
Python
day3_part1.py
alu-/advent-of-code-2019
117fc49cb6e89e6302cfbd64b1c3d58f21b47378
[ "MIT" ]
null
null
null
day3_part1.py
alu-/advent-of-code-2019
117fc49cb6e89e6302cfbd64b1c3d58f21b47378
[ "MIT" ]
null
null
null
day3_part1.py
alu-/advent-of-code-2019
117fc49cb6e89e6302cfbd64b1c3d58f21b47378
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from functools import reduce def main(): with open("./inputs/day3.txt") as file: lines = parse_input(file.read()) coordinates = [] for line in lines: coordinates.append(plot(line)) intersections = calculate_intersections(coordinates) print(get_shortest_dista...
27.5
72
0.600957
251
2,090
4.904382
0.322709
0.02437
0.029245
0.045491
0.275386
0.264825
0.264825
0.264825
0.264825
0.264825
0
0.018792
0.287081
2,090
75
73
27.866667
0.807383
0.061722
0
0.259259
0
0
0.015369
0
0
0
0
0.013333
0
1
0.111111
false
0
0.018519
0.037037
0.222222
0.018519
0
0
0
null
0
0
0
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
34a1cfb0f9e813ec2ee4304e52ddad5b820d5f58
1,017
py
Python
game_db/users/models.py
ErnestC30/DjangoReact_GameDB
a40ef74c7afb0d1823e9393df02fe41b4769831c
[ "Unlicense" ]
null
null
null
game_db/users/models.py
ErnestC30/DjangoReact_GameDB
a40ef74c7afb0d1823e9393df02fe41b4769831c
[ "Unlicense" ]
null
null
null
game_db/users/models.py
ErnestC30/DjangoReact_GameDB
a40ef74c7afb0d1823e9393df02fe41b4769831c
[ "Unlicense" ]
null
null
null
from django.db import models from django.db.models.fields.related import OneToOneField from django.contrib.auth.models import User from PIL import Image DEFAULT_PROFILE_IMAGE = "default_profile_pic.jpg" MAX_HEIGHT = 300 MAX_WIDTH = 300 class Profile(models.Model): """Extension of default User model. Adds ...
31.78125
67
0.690265
134
1,017
5.08209
0.447761
0.044053
0.035242
0
0
0
0
0
0
0
0
0.007426
0.205506
1,017
31
68
32.806452
0.835396
0.108161
0
0
0
0
0.094488
0.025872
0
0
0
0
0
1
0.095238
false
0
0.190476
0.047619
0.52381
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
34ae23f31a883c27753685fa9453eadb727431ee
562
py
Python
apps/recipes/management/commands/import_ingredients_csv.py
AleksandrTka4uk/foodgram-project
b3f1762d1ba686d42bc7a2d6c2e4b31150fd55ea
[ "MIT" ]
null
null
null
apps/recipes/management/commands/import_ingredients_csv.py
AleksandrTka4uk/foodgram-project
b3f1762d1ba686d42bc7a2d6c2e4b31150fd55ea
[ "MIT" ]
null
null
null
apps/recipes/management/commands/import_ingredients_csv.py
AleksandrTka4uk/foodgram-project
b3f1762d1ba686d42bc7a2d6c2e4b31150fd55ea
[ "MIT" ]
null
null
null
import csv from django.core.management.base import BaseCommand from apps.recipes.models import Ingredient class Command(BaseCommand): help = 'Import data from ingredients.csv' def handle(self, *args, **options): with open('ingredients.csv', newline='', encoding='utf-8') as csvfile: read...
31.222222
78
0.604982
60
562
5.633333
0.683333
0.08284
0
0
0
0
0
0
0
0
0
0.002538
0.298932
562
17
79
33.058824
0.85533
0
0
0
0
0
0.094306
0
0
0
0
0
0
1
0.083333
false
0
0.333333
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
34af4a4b2b9102bf599974116107c9707f28cef3
7,170
py
Python
xen/xen-4.2.2/tools/python/xen/xend/XendProtocol.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2018-02-02T00:15:26.000Z
2018-02-02T00:15:26.000Z
xen/xen-4.2.2/tools/python/xen/xend/XendProtocol.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
null
null
null
xen/xen-4.2.2/tools/python/xen/xend/XendProtocol.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2019-05-27T09:47:18.000Z
2019-05-27T09:47:18.000Z
#============================================================================ # This library is free software; you can redistribute it and/or # modify it under the terms of version 2.1 of the GNU Lesser General Public # License as published by the Free Software Foundation. # # This library is distributed in the hope th...
31.725664
80
0.568201
810
7,170
4.982716
0.3
0.013875
0.019326
0.016848
0.1556
0.154609
0.120912
0.08226
0.066402
0.066402
0
0.00982
0.318271
7,170
225
81
31.866667
0.815876
0.133054
0
0.150442
0
0
0.025904
0
0
0
0
0
0
0
null
null
0.00885
0.061947
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
34afbf048051740645ce131d9fed84822bea322d
2,267
py
Python
config.py
ClokMuch/M0_Playlist_Mgr
86adf544871797a5fc653ec71da69ac58d51a7bf
[ "Apache-2.0" ]
1
2021-05-08T03:41:03.000Z
2021-05-08T03:41:03.000Z
config.py
ClokMuch/M0_Playlist_Mgr
86adf544871797a5fc653ec71da69ac58d51a7bf
[ "Apache-2.0" ]
null
null
null
config.py
ClokMuch/M0_Playlist_Mgr
86adf544871797a5fc653ec71da69ac58d51a7bf
[ "Apache-2.0" ]
null
null
null
# 山灵M0播放器播放列表管理工具配置 # ver.11 # By Clok Much class Default: m0_prefix = "A:\\" # M0播放列表的驱动器映射 m0_folder = "_explaylist_data\\" # M0播放列表所在的文件夹,以 \\ 结尾 m0_playlist_type = ".m3u" # M0播放列表文件格式 m0_disabled_playlist = ".m0disabled" # M0禁用的播放列表格式 playlist_default_name = "Default" # 默认播放列表名称 su...
30.635135
101
0.574327
226
2,267
5.495575
0.539823
0.019324
0.024155
0.033816
0.144122
0.080515
0.046699
0
0
0
0
0.022741
0.282311
2,267
73
102
31.054795
0.740627
0.182179
0
0.173077
0
0
0.260726
0.025303
0
0
0
0
0
1
0
false
0
0
0
0.653846
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
34b714a4e418d5a9c2e694454e9fa20b107b5e49
954
py
Python
hierarchical_clustering/relaxed/models/embeddings.py
pchlenski/NeuroSEED
6318431dcce22df70948251b103374f4a6e96fff
[ "MIT" ]
39
2021-07-07T08:09:15.000Z
2022-03-13T19:48:48.000Z
hierarchical_clustering/relaxed/models/embeddings.py
pchlenski/NeuroSEED
6318431dcce22df70948251b103374f4a6e96fff
[ "MIT" ]
1
2022-03-11T01:33:43.000Z
2022-03-11T01:33:43.000Z
hierarchical_clustering/relaxed/models/embeddings.py
pchlenski/NeuroSEED
6318431dcce22df70948251b103374f4a6e96fff
[ "MIT" ]
6
2021-11-01T06:05:00.000Z
2022-03-15T13:06:10.000Z
""" Part of this code was adapted from Hyperbolic Hierarchical Clustering (HypHC) by Chami et al. for more details visit https://github.com/HazyResearch/HypHC """ import torch import torch.nn as nn from hierarchical_clustering.relaxed.models.model import HypHCModel from util.ml_and_math.poincare import projec...
35.333333
112
0.708595
131
954
4.977099
0.519084
0.046012
0.030675
0
0
0
0
0
0
0
0
0.016818
0.189727
954
26
113
36.692308
0.826649
0.221174
0
0
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.266667
0
0.533333
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
34b8c603e6cce0e3e608dfa9704ea37aa2f53931
20,131
py
Python
RASLseqTools/RASLseqAnalysis_STAR.py
gladstone-institutes/RASLseqTools
ebba22d829e677ea755bf93adedc2cd733dc0b2e
[ "MIT" ]
6
2015-05-04T14:54:28.000Z
2021-05-13T04:11:16.000Z
RASLseqTools/RASLseqAnalysis_STAR.py
gladstone-institutes/RASLseqTools
ebba22d829e677ea755bf93adedc2cd733dc0b2e
[ "MIT" ]
1
2017-08-16T04:26:17.000Z
2017-08-18T16:56:18.000Z
RASLseqTools/RASLseqAnalysis_STAR.py
gladstone-institutes/RASLseqTools
ebba22d829e677ea755bf93adedc2cd733dc0b2e
[ "MIT" ]
2
2017-08-12T06:53:02.000Z
2021-05-13T04:11:21.000Z
import pandas as pd import os,sys import numpy as np import argparse import subprocess import multiprocessing as mp import sys,os import time import inspect source_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) source_dir = '/'.join(source_dir.split('/')[:-1]) sys.path.append(source...
37.628037
499
0.615965
2,360
20,131
5.022034
0.151695
0.016706
0.025312
0.012994
0.328046
0.261559
0.186129
0.149933
0.119389
0.097283
0
0.011439
0.292137
20,131
535
500
37.628037
0.820281
0.075406
0
0.106145
0
0.027933
0.155001
0.013302
0
0
0
0
0
0
null
null
0
0.055866
null
null
0.128492
0
0
0
null
0
0
0
0
0
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
34b9d3a534da35ff14f049c399cd1e9dc9441838
3,587
py
Python
studytime/users/models.py
FARBEX97/StudyTime
a608d4efecd86bad1b3bbfa74189ae23bc9179be
[ "MIT" ]
null
null
null
studytime/users/models.py
FARBEX97/StudyTime
a608d4efecd86bad1b3bbfa74189ae23bc9179be
[ "MIT" ]
null
null
null
studytime/users/models.py
FARBEX97/StudyTime
a608d4efecd86bad1b3bbfa74189ae23bc9179be
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User # User model modified # https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html#onetoone class Project(models.Model): user = models.ForeignKey(User, verbose_name="User", on_delete=models.CASCADE) ...
31.464912
125
0.688598
403
3,587
5.903226
0.186104
0.060109
0.052963
0.079445
0.682219
0.624212
0.583018
0.493905
0.469105
0.425389
0
0.008144
0.212713
3,587
113
126
31.743363
0.834278
0.034012
0
0.447368
0
0
0.067052
0
0
0
0
0
0
1
0.131579
false
0
0.026316
0.052632
0.657895
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
34ccf70b3ef22fb9bd7c7e7de01edc78dfa7dde6
691
py
Python
entropy/plot_entropy.py
allisontam/graph_coattention
5edc98615d5526269452b519bb13512ec5e952da
[ "MIT" ]
null
null
null
entropy/plot_entropy.py
allisontam/graph_coattention
5edc98615d5526269452b519bb13512ec5e952da
[ "MIT" ]
null
null
null
entropy/plot_entropy.py
allisontam/graph_coattention
5edc98615d5526269452b519bb13512ec5e952da
[ "MIT" ]
null
null
null
# Can do stuff (e.g. plot histograms) of all_ents import matplotlib.pyplot as plt import seaborn as sns import pickle sns.set() entropy = {} with open("selfrandompair-hid50-readout200-repetitions3-patience8-batch255-mpnn-cv_1_10.pickle", "rb") as f: entropy = pickle.load(f) for i in entropy: if i == 0: fig = plt...
30.043478
108
0.722142
114
691
4.324561
0.570175
0.077079
0.117647
0.166329
0.401623
0.401623
0.401623
0.401623
0.401623
0.401623
0
0.070261
0.114327
691
22
109
31.409091
0.735294
0.068017
0
0
0
0
0.320872
0.253894
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
34ce83ca00acc1fa67fd53f039d0b200c65f6696
1,353
py
Python
code/data-gathering/tools/scrapy-meta.py
stain/ro-index-paper
5f4b5aab2a9e0fa53eb3d49d62a52d47025a967d
[ "Apache-2.0", "CC-BY-4.0" ]
3
2019-08-07T17:51:30.000Z
2021-03-04T20:44:07.000Z
code/data-gathering/tools/scrapy-meta.py
stain/ro-index-paper
5f4b5aab2a9e0fa53eb3d49d62a52d47025a967d
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
code/data-gathering/tools/scrapy-meta.py
stain/ro-index-paper
5f4b5aab2a9e0fa53eb3d49d62a52d47025a967d
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# -*- coding: utf-8 -*- ## Not a standalone Python script, run as ## scrapy runspider -a url=https://zenodo.org/record/1215611 scrapy-meta.py # Copyright 2019 The University of Manchester # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the L...
34.692308
87
0.692535
181
1,353
5.099448
0.607735
0.054171
0.028169
0.03467
0
0
0
0
0
0
0
0.014612
0.190687
1,353
38
88
35.605263
0.828311
0.50037
0
0
0
0
0.12766
0.045593
0
0
0
0
0
1
0.2
false
0
0.066667
0
0.6
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
34ced4693f187f9dc7ae2f436a465cc4c6830cc8
36,442
py
Python
smbcrawler.py
ClockworkNet/gsa-admin-toolkit
0e3cf0b2f0a95f76aaa41e7d2acf675435b67440
[ "Apache-2.0" ]
34
2015-01-16T08:12:06.000Z
2020-08-27T03:51:47.000Z
smbcrawler.py
IevgenPr/gsa-admin-toolkit
d7ac8f09133b904c5603c2bbf46f33b9883c3ad7
[ "Apache-2.0" ]
12
2015-01-28T18:11:26.000Z
2017-06-15T21:24:22.000Z
smbcrawler.py
IevgenPr/gsa-admin-toolkit
d7ac8f09133b904c5603c2bbf46f33b9883c3ad7
[ "Apache-2.0" ]
40
2015-01-08T19:37:09.000Z
2020-04-19T12:29:32.000Z
#!/usr/bin/python2.4 # coding: utf-8 # # Copyright 2008 Google Inc. 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 # ...
33.994403
116
0.610587
4,732
36,442
4.590237
0.156171
0.02836
0.008379
0.007827
0.344689
0.277335
0.242024
0.222504
0.195847
0.175452
0
0.012937
0.257587
36,442
1,071
117
34.026144
0.789799
0.058284
0
0.293333
0
0.008
0.241544
0.075164
0
0
0
0
0
0
null
null
0.021333
0.013333
null
null
0.049333
0
0
0
null
0
0
0
0
0
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
34d54627a5ff0718e3ed52f7b007a889dc52a8ad
287
py
Python
3_Retazce/3.44_SpajRetaz.py
ViktoriaGallikova/basic-python
71152f9a1de0e863428e1dd4f4784c129543d015
[ "MIT" ]
null
null
null
3_Retazce/3.44_SpajRetaz.py
ViktoriaGallikova/basic-python
71152f9a1de0e863428e1dd4f4784c129543d015
[ "MIT" ]
null
null
null
3_Retazce/3.44_SpajRetaz.py
ViktoriaGallikova/basic-python
71152f9a1de0e863428e1dd4f4784c129543d015
[ "MIT" ]
null
null
null
# Spajanie reťazcov # Na vstupe získate dve frázy. Na výstup vypíšte výhovorku vygenerovanú z týchto fráz. str1 = input() # umyť riad str2 = input() # musím chytať Pokémony print(f'Bohužiaľ nemôžem {str1}, pretože {str2}.') # Bohužiaľ nemôžem umyť riad, pretože musím chytať Pokémony.
31.888889
86
0.752613
39
287
5.538462
0.692308
0.074074
0.175926
0
0
0
0
0
0
0
0
0.016598
0.160279
287
9
87
31.888889
0.879668
0.672474
0
0
0
0
0.449438
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
34d74316102f8d25f38219d6061bac1445c39c12
1,330
py
Python
lightoy/effects/wavy.py
dancukiewicz/lightoy
f7dd8b5abdc8b9ce0d264927f82b8c16c09443c9
[ "MIT" ]
null
null
null
lightoy/effects/wavy.py
dancukiewicz/lightoy
f7dd8b5abdc8b9ce0d264927f82b8c16c09443c9
[ "MIT" ]
null
null
null
lightoy/effects/wavy.py
dancukiewicz/lightoy
f7dd8b5abdc8b9ce0d264927f82b8c16c09443c9
[ "MIT" ]
null
null
null
import numpy import lightoy.color from lightoy.effects import Effect import lightoy.params class Wavy(Effect): def init_params(self): return {'periods': lightoy.params.RandomArray(self.n_leds)} @classmethod def render(cls, x, t, t_diff, inputs, param, state): # TODO: break out more thing...
39.117647
76
0.602256
199
1,330
3.954774
0.502513
0.035578
0.02033
0.030496
0
0
0
0
0
0
0
0.040289
0.27218
1,330
33
77
40.30303
0.772727
0.253383
0
0
0
0
0.014199
0
0
0
0
0.030303
0
1
0.090909
false
0
0.181818
0.045455
0.409091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
34e49a1f76030c95d53e50f406064a26e36f7d24
2,835
py
Python
apps/rss/migrations/0001_initial.py
vanyakosmos/memes-reposter
7bcd1117a81777f0662bcca38690de0c0404dbfa
[ "MIT" ]
26
2019-01-19T21:07:57.000Z
2022-03-07T16:07:52.000Z
apps/rss/migrations/0001_initial.py
vaniakosmos/telemgur
7bcd1117a81777f0662bcca38690de0c0404dbfa
[ "MIT" ]
7
2020-02-11T22:59:44.000Z
2021-06-21T07:44:56.000Z
apps/rss/migrations/0001_initial.py
vaniakosmos/telemgur
7bcd1117a81777f0662bcca38690de0c0404dbfa
[ "MIT" ]
9
2018-09-21T06:38:08.000Z
2022-01-26T11:57:28.000Z
# Generated by Django 2.0.3 on 2018-07-11 19:41 import apps.core.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Channel', ...
42.954545
192
0.570723
281
2,835
5.654804
0.313167
0.045312
0.035242
0.060415
0.390183
0.37382
0.353052
0.353052
0.353052
0.14915
0
0.014641
0.277249
2,835
65
193
43.615385
0.760859
0.015873
0
0.344828
1
0
0.11406
0
0
0
0
0
0
1
0
false
0
0.051724
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
34e7110126428297bf3992c3d56cc11cf5a818d8
1,462
py
Python
src/app/user/service.py
jamshidyerzakov/fastapi-blog
26828556482b1b5824781b321558776b5cd882ea
[ "MIT" ]
null
null
null
src/app/user/service.py
jamshidyerzakov/fastapi-blog
26828556482b1b5824781b321558776b5cd882ea
[ "MIT" ]
null
null
null
src/app/user/service.py
jamshidyerzakov/fastapi-blog
26828556482b1b5824781b321558776b5cd882ea
[ "MIT" ]
null
null
null
from typing import Optional from src.app.auth.security import verify_password, get_password_hash from . import schemas, models from ..base.base_service import BaseService class UserService(BaseService): model = models.User create_schema = schemas.UserCreateInRegistration get_schema = schemas.User_G_Pyda...
37.487179
88
0.705882
170
1,462
5.9
0.3
0.154536
0.05683
0.068794
0.161515
0.071785
0.071785
0.071785
0
0
0
0
0.208618
1,462
39
89
37.487179
0.866897
0
0
0.066667
0
0
0.010936
0
0
0
0
0
0
1
0.033333
false
0.266667
0.133333
0.033333
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
34f649ed806bfada41887097b5b4b35f4a42d272
4,434
py
Python
rest_framework/mixins.py
anders-hoovy/django-rest-framework
f4096d71c591815ef88b1c574a7f35ef06c22a0e
[ "BSD-3-Clause" ]
null
null
null
rest_framework/mixins.py
anders-hoovy/django-rest-framework
f4096d71c591815ef88b1c574a7f35ef06c22a0e
[ "BSD-3-Clause" ]
null
null
null
rest_framework/mixins.py
anders-hoovy/django-rest-framework
f4096d71c591815ef88b1c574a7f35ef06c22a0e
[ "BSD-3-Clause" ]
null
null
null
""" Basic building blocks for generic class based views. We don't bind behaviour to http method handlers yet, which allows mixin classes to be composed in interesting ways. """ import logging from rest_framework import status from rest_framework.response import Response from rest_framework.settings import api_settings...
27.7125
89
0.64276
506
4,434
5.478261
0.284585
0.030303
0.055195
0.05303
0.238817
0.165224
0.145022
0.12518
0.069264
0
0
0.003023
0.253947
4,434
159
90
27.886792
0.834946
0.092693
0
0.208333
0
0.010417
0.035796
0.015232
0
0
0
0
0
1
0.166667
false
0
0.0625
0.010417
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
0
0
0
0
0
1
0
0
1
34f70f29832f11520ca0c8fe6b26f42542f69e20
149
py
Python
put.py
hasanzain/trashmeter
9912648f5444cba5b736725f2afbc5e510a5929d
[ "MIT" ]
null
null
null
put.py
hasanzain/trashmeter
9912648f5444cba5b736725f2afbc5e510a5929d
[ "MIT" ]
null
null
null
put.py
hasanzain/trashmeter
9912648f5444cba5b736725f2afbc5e510a5929d
[ "MIT" ]
null
null
null
import requests isine = {'id' : 1, 'relay_1' : 1} r = requests.put("http://localhost/smarttrash/relay", data = isine) print(r) print(r.content)
13.545455
67
0.657718
22
149
4.409091
0.636364
0.123711
0
0
0
0
0
0
0
0
0
0.02381
0.154362
149
10
68
14.9
0.746032
0
0
0
0
0
0.283784
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.4
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
34f7ae86579734dfc3b7e3b7789853ef20040e62
414
py
Python
user/migrations/0003_auto_20200921_1220.py
gourab-sinha/Portfolio_v2
efcaad32d9eda51e05566b17be1dc82b1e87de98
[ "MIT" ]
null
null
null
user/migrations/0003_auto_20200921_1220.py
gourab-sinha/Portfolio_v2
efcaad32d9eda51e05566b17be1dc82b1e87de98
[ "MIT" ]
null
null
null
user/migrations/0003_auto_20200921_1220.py
gourab-sinha/Portfolio_v2
efcaad32d9eda51e05566b17be1dc82b1e87de98
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-09-21 12:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0002_auto_20200921_1025'), ] operations = [ migrations.AlterField( model_name='user', name='image', ...
21.789474
86
0.608696
45
414
5.466667
0.8
0.073171
0
0
0
0
0
0
0
0
0
0.099338
0.270531
414
18
87
23
0.715232
0.103865
0
0
1
0
0.149051
0.062331
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5507e3e1911e234d8f1da7d21b3e5c6927a26f82
968
py
Python
med/models.py
BekusovMikhail/medical-app
7c5c6cc4d42e676c4de557f1eeda5e73c8b8c767
[ "MIT" ]
null
null
null
med/models.py
BekusovMikhail/medical-app
7c5c6cc4d42e676c4de557f1eeda5e73c8b8c767
[ "MIT" ]
null
null
null
med/models.py
BekusovMikhail/medical-app
7c5c6cc4d42e676c4de557f1eeda5e73c8b8c767
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User class Patient(models.Model): phone = models.CharField(max_length=20) user = models.OneToOneField( User, on_delete=models.CASCADE, primary_key = True) class Clinic(models.Model): phone = models.CharField(max_...
25.473684
62
0.694215
115
968
5.721739
0.33913
0.083587
0.085106
0.12766
0.633739
0.633739
0.633739
0.49696
0.49696
0.49696
0
0.007823
0.207645
968
38
63
25.473684
0.850065
0
0
0.607143
0
0
0
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.678571
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
5508025178c0e9196bbd4da92a3de6b6bf18e4fd
2,744
py
Python
rest-api.py
jeantardelli/data-engineering-with-python
d547a20ff1464c945fd6c0b6a1a805fd0b4b227a
[ "MIT" ]
6
2020-12-01T20:30:25.000Z
2022-02-02T17:28:49.000Z
rest-api.py
jeantardelli/data-engineering-with-python
d547a20ff1464c945fd6c0b6a1a805fd0b4b227a
[ "MIT" ]
null
null
null
rest-api.py
jeantardelli/data-engineering-with-python
d547a20ff1464c945fd6c0b6a1a805fd0b4b227a
[ "MIT" ]
2
2021-06-10T15:16:42.000Z
2022-03-22T20:36:09.000Z
""" This module uses Python to query different endpoints using the NiFi REST API. """ import requests import pprint # System Diagnostics r = requests.get('http://localhost:9300/nifi-api/system-diagnostics') data = r.json() print('Aggregte Snapshot:\n' '==================') print('Max Heap: {0}'.format( dat...
28
111
0.65379
321
2,744
5.588785
0.323988
0.065217
0.085284
0.105351
0.480491
0.358417
0.289298
0.19175
0.19175
0.19175
0
0.067213
0.110787
2,744
97
112
28.28866
0.668033
0.074344
0
0.214286
0
0.042857
0.533254
0.059778
0
0
0
0
0
1
0
false
0
0.028571
0
0.028571
0.457143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
550e8bbba82dcd370875ba4492df4bcba03560c2
2,090
py
Python
WebArticleParserCLI.py
vasily-khodyrev/python_mini_readability
74c9aa95a04ee8136432aa2c60016dee928f9c30
[ "Apache-2.0" ]
null
null
null
WebArticleParserCLI.py
vasily-khodyrev/python_mini_readability
74c9aa95a04ee8136432aa2c60016dee928f9c30
[ "Apache-2.0" ]
null
null
null
WebArticleParserCLI.py
vasily-khodyrev/python_mini_readability
74c9aa95a04ee8136432aa2c60016dee928f9c30
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sys, FilePathGenerator, TextFromHtmlExtractor from urlparse import urlparse from TextPrettyWriter import TextPrettyWriter from Configurator import Configurator from optparse import OptionParser def main(argv): parser = OptionParser() parser.add_option("-a", "--article", dest="url", ...
32.65625
127
0.648804
237
2,090
5.64557
0.421941
0.026906
0.044843
0.026906
0
0
0
0
0
0
0
0.001879
0.235885
2,090
63
128
33.174603
0.835942
0.007656
0
0.042553
0
0
0.190545
0
0
0
0
0
0
0
null
null
0
0.106383
null
null
0.12766
0
0
0
null
0
0
0
0
0
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
5510ccb559c48c1cf8326814c0b990cad6dd3677
2,683
py
Python
python/test_gps_trajectory.py
brade31919/UpDrive_tools
58ea7cc306f721d3d3e89d87d24268e326a1c309
[ "Apache-2.0" ]
1
2019-03-20T20:28:08.000Z
2019-03-20T20:28:08.000Z
python/test_gps_trajectory.py
brade31919/updrive_tools
58ea7cc306f721d3d3e89d87d24268e326a1c309
[ "Apache-2.0" ]
null
null
null
python/test_gps_trajectory.py
brade31919/updrive_tools
58ea7cc306f721d3d3e89d87d24268e326a1c309
[ "Apache-2.0" ]
null
null
null
import sys sys.path.append("../") from utils.preprocessing import read_filenames import pandas import pickle import matplotlib.pyplot as plt import matplotlib as mpl from mpl_toolkits.mplot3d import Axes3D import numpy as np # Read in gps file and parse it to numpy array def parse_gpsfile(file_path): """ :par...
29.163043
120
0.62691
377
2,683
4.265252
0.400531
0.050373
0.018657
0.024876
0.06592
0.033582
0
0
0
0
0
0.029193
0.246739
2,683
92
121
29.163043
0.766452
0.268356
0
0.038462
0
0
0.057008
0
0
0
0
0.01087
0.019231
1
0.038462
false
0
0.153846
0
0.211538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
5517b212300828949aa0eca9cb6bce87cbf068d8
1,667
py
Python
sql_gen/docugen/prompt.py
vecin2/em_automation
b65bc498cc7c366d06425e51aaf04b970d581050
[ "MIT" ]
null
null
null
sql_gen/docugen/prompt.py
vecin2/em_automation
b65bc498cc7c366d06425e51aaf04b970d581050
[ "MIT" ]
84
2018-09-15T21:36:23.000Z
2021-12-13T19:49:57.000Z
sql_gen/docugen/prompt.py
vecin2/em_automation
b65bc498cc7c366d06425e51aaf04b970d581050
[ "MIT" ]
null
null
null
import sys from prompt_toolkit.completion import Completer, Completion from sql_gen import logger from sql_gen.ui import prompt from sql_gen.docugen.completer import SuggestionCompleter class Prompt: def __init__(self, variable_name, filter_list): self.variable_name = variable_name self.filter_l...
30.309091
78
0.661668
212
1,667
4.929245
0.306604
0.0689
0.061244
0.043062
0.045933
0
0
0
0
0
0
0.000803
0.253149
1,667
54
79
30.87037
0.838554
0.054589
0
0
0
0
0.02225
0
0
0
0
0
0
1
0.225
false
0
0.125
0.05
0.5
0.075
0
0
0
null
0
0
0
0
0
0
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
551fc475d361daa4784809840d0836af6898a770
331
py
Python
dateflix_api/views/group.py
pythrick/dateflix-api
7051cd67ac5a8cf88b85254f27966b0e78fff8fc
[ "MIT" ]
8
2020-07-01T12:13:51.000Z
2020-08-24T12:46:46.000Z
dateflix_api/views/group.py
pythrick/dateflix-api
7051cd67ac5a8cf88b85254f27966b0e78fff8fc
[ "MIT" ]
null
null
null
dateflix_api/views/group.py
pythrick/dateflix-api
7051cd67ac5a8cf88b85254f27966b0e78fff8fc
[ "MIT" ]
2
2020-11-21T04:34:27.000Z
2020-11-21T04:57:20.000Z
from django.contrib.auth.models import Group from rest_framework import viewsets from dateflix_api.serializers import GroupSerializer class GroupViewSet(viewsets.ModelViewSet): """ API endpoint that allows groups to be viewed or edited. """ queryset = Group.objects.all() serializer_class = Group...
23.642857
59
0.767372
39
331
6.435897
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.169184
331
13
60
25.461538
0.912727
0.166163
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
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
1
0
0
0
0
1
551fce4beb61083d143f8cbdf173e5fcd244ff1e
718
py
Python
zyglot.py
bjerrep/zyglot
563b65c0222ab3a445eeeb9f4e09287178608b2d
[ "Unlicense" ]
null
null
null
zyglot.py
bjerrep/zyglot
563b65c0222ab3a445eeeb9f4e09287178608b2d
[ "Unlicense" ]
null
null
null
zyglot.py
bjerrep/zyglot
563b65c0222ab3a445eeeb9f4e09287178608b2d
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import argparse import traceback from log import logger as log from log import inf, cri from errorcodes import ErrorCode import logging import app parser = argparse.ArgumentParser('zyglot, a simple python cli template (with colored logging)') parser.add_argument('--verbose', action='store_true',...
24.758621
95
0.714485
95
718
5.347368
0.589474
0.027559
0.051181
0
0
0
0
0
0
0
0
0.001704
0.182451
718
28
96
25.642857
0.863714
0.029248
0
0.090909
0
0
0.204023
0
0
0
0
0
0
1
0
false
0
0.318182
0
0.318182
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9b3023f83040b4b01efb7b03469e69e11aeaeb77
5,343
py
Python
Vestigo/scan.py
druidpld/bletrack
52ba271c570a94355d2d18da9fa69c27da769fe3
[ "MIT" ]
44
2015-03-26T05:42:31.000Z
2021-11-08T11:21:11.000Z
Vestigo/scan.py
teeso/Vestigo
250167c7a53879a577b08067f18d2d82f9c261a4
[ "MIT" ]
1
2017-06-11T18:47:36.000Z
2018-07-04T08:30:11.000Z
Vestigo/scan.py
teeso/Vestigo
250167c7a53879a577b08067f18d2d82f9c261a4
[ "MIT" ]
15
2016-03-15T00:42:11.000Z
2020-10-06T03:00:51.000Z
#!/usr/bin/env python import pexpect import subprocess import thread from multiprocessing.pool import ThreadPool import time from settings import Settings import requests import json from logger import Logger class Scanner(): def __init__(self,settings,logger): self._logger=logger self._bleScanProc = None self...
35.151316
177
0.724687
674
5,343
5.608309
0.235905
0.069841
0.046561
0.015873
0.281481
0.229101
0.171958
0.077778
0.077778
0.050794
0
0.003238
0.133071
5,343
152
178
35.151316
0.812824
0.003743
0
0.246269
0
0
0.142777
0.006575
0
0
0
0
0
0
null
null
0.014925
0.067164
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
9b30e53c184654ffde6d739d1c22b9f7083db2e0
2,028
py
Python
dataduct/pipeline/redshift_database.py
recurly/dataduct
29aec3526e170e5ad3b59a135780e72b69209f0b
[ "Apache-2.0" ]
null
null
null
dataduct/pipeline/redshift_database.py
recurly/dataduct
29aec3526e170e5ad3b59a135780e72b69209f0b
[ "Apache-2.0" ]
2
2017-03-09T21:13:49.000Z
2018-08-29T23:08:18.000Z
dataduct/pipeline/redshift_database.py
recurly/dataduct
29aec3526e170e5ad3b59a135780e72b69209f0b
[ "Apache-2.0" ]
null
null
null
""" Pipeline object class for redshift database """ from ..config import Config from .pipeline_object import PipelineObject from ..utils.exceptions import ETLConfigError config = Config() if not hasattr(config, 'redshift'): raise ETLConfigError('Redshift credentials missing from config') CLUSTER_ID = None CONNE...
31.6875
111
0.656312
210
2,028
6.166667
0.266667
0.076448
0.049421
0.050965
0.157529
0.080309
0
0
0
0
0
0
0.259369
2,028
63
112
32.190476
0.862184
0.211538
0
0
0
0
0.209103
0
0
0
0
0
0
1
0.027027
false
0.081081
0.081081
0
0.135135
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9b37d60d89b9c19cacbfd862567ca5bc1efa6cbc
427
py
Python
openslides/motions/urls.py
rolandgeider/OpenSlides
331141c17cb23da26e377d4285efdb4a50753a59
[ "MIT" ]
null
null
null
openslides/motions/urls.py
rolandgeider/OpenSlides
331141c17cb23da26e377d4285efdb4a50753a59
[ "MIT" ]
null
null
null
openslides/motions/urls.py
rolandgeider/OpenSlides
331141c17cb23da26e377d4285efdb4a50753a59
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^pdf/$', views.MotionPDFView.as_view(print_all_motions=True), name='motions_pdf'), url(r'^(?P<pk>\d+)/pdf/$', views.MotionPDFView.as_view(print_all_motions=False), name='motions_single_pdf'), url(r...
23.722222
61
0.622951
57
427
4.45614
0.45614
0.047244
0.165354
0.181102
0.330709
0.330709
0.330709
0.330709
0
0
0
0
0.199063
427
17
62
25.117647
0.74269
0
0
0
0
0
0.227166
0.070258
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0.230769
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
9b3acc84b8e859a3e5c7487d181d255b5357d053
395
py
Python
basic/06_dic/exercise.py
soraoo/python_study
5b906682fb78afeacad5ba32c598ea978e2011e3
[ "MIT" ]
null
null
null
basic/06_dic/exercise.py
soraoo/python_study
5b906682fb78afeacad5ba32c598ea978e2011e3
[ "MIT" ]
null
null
null
basic/06_dic/exercise.py
soraoo/python_study
5b906682fb78afeacad5ba32c598ea978e2011e3
[ "MIT" ]
null
null
null
# 字典 alien = {'color': 'green', 'point': 5} print(alien['color']) print(alien['point']) alien['x_position'] = 0 alien['y_position'] = 25 print(alien) for k, v in alien.items(): print(k) print(v) for key in alien.keys(): print(key) for key in alien: print(key) for value in alien.values(): print(...
13.166667
38
0.594937
65
395
3.584615
0.446154
0.120172
0.06867
0.111588
0
0
0
0
0
0
0
0.025478
0.205063
395
29
39
13.62069
0.716561
0.017722
0
0.105263
0
0
0.127604
0
0
0
0
0
0
1
0
false
0
0
0
0
0.473684
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
9b41106a79303c6ca624c1da268c90e272a438b8
1,785
py
Python
py/cbson/test_cbson_bad_data.py
acidburn0zzz/vitess
c9c1875924303c53e76a3f9bfc125831d5784402
[ "BSD-3-Clause" ]
1
2015-09-16T04:46:41.000Z
2015-09-16T04:46:41.000Z
py/cbson/test_cbson_bad_data.py
acidburn0zzz/vitess
c9c1875924303c53e76a3f9bfc125831d5784402
[ "BSD-3-Clause" ]
null
null
null
py/cbson/test_cbson_bad_data.py
acidburn0zzz/vitess
c9c1875924303c53e76a3f9bfc125831d5784402
[ "BSD-3-Clause" ]
1
2021-03-24T12:37:12.000Z
2021-03-24T12:37:12.000Z
#!/usr/bin/python2.4 import base64 import binascii import random import sys import unittest import cbson # These values were generated by test_random_segfaults and used to # crash the decoder, before we fixed the issues. # Only base64 encoded so they aren't a million characters long and/or full # of escape sequences...
30.775862
78
0.633613
213
1,785
5.220657
0.474178
0.040468
0.03777
0.034173
0.066547
0.066547
0.066547
0.066547
0.066547
0.066547
0
0.038123
0.235854
1,785
57
79
31.315789
0.777126
0.12605
0
0.204545
1
0
0.248391
0.216216
0
0
0
0
0
1
0.068182
false
0.045455
0.136364
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9b41413d93eb5b0250b92db42932e5db2b860e44
531
py
Python
src/data/172.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/172.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/172.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
from collections import deque n, z = map(int, input().split()) p, e, q = [[] for _ in range(n)], [0] * n, deque([0]) e[0] = 1 for i in range(n - 1): a, b = map(int, input().split()) p[a - 1].append(b - 1) p[b - 1].append(a - 1) while len(q): m = q.popleft() for i in p[m]: ...
24.136364
65
0.429379
95
531
2.389474
0.357895
0.079295
0.145374
0.211454
0.14978
0
0
0
0
0
0
0.040936
0.355932
531
21
66
25.285714
0.622807
0
0
0.15
0
0
0.015066
0
0
0
0
0
0
1
0
false
0
0.05
0
0.05
0.05
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
9b425b239f1a9d27b707706e2fc76ae8c155d86a
4,335
py
Python
c04/sala/geolocator_ip.py
arqdesw-curso/Patrones-De-Arquitectura-De-Software
9cd9dc1371b1cb926e50dc0d57730786d5d3822b
[ "BSD-2-Clause" ]
1
2020-02-17T23:27:05.000Z
2020-02-17T23:27:05.000Z
c04/sala/geolocator_ip.py
arqdesw-curso/patrones-arquitectura-software
9cd9dc1371b1cb926e50dc0d57730786d5d3822b
[ "BSD-2-Clause" ]
null
null
null
c04/sala/geolocator_ip.py
arqdesw-curso/patrones-arquitectura-software
9cd9dc1371b1cb926e50dc0d57730786d5d3822b
[ "BSD-2-Clause" ]
1
2018-01-13T16:37:31.000Z
2018-01-13T16:37:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- #------------------------------------------------------------------------- # Archivo: geolocator_ip.py # Capitulo: 4 Patron Pipes and Filters # Autor(es): Perla Velasco & Yonathan Mtz. # Version: 2.0 Febrero 2018 # Descripción: # # Ésta clase define el rol de un Procesado...
47.637363
92
0.329412
284
4,335
4.943662
0.514085
0.005698
0.019943
0.031339
0.07265
0.07265
0.07265
0.07265
0.07265
0
0
0.003516
0.409458
4,335
90
93
48.166667
0.544922
0.569319
0
0.142857
0
0
0.128219
0.013699
0
0
0
0.011111
0
1
0.071429
false
0
0.166667
0.047619
0.309524
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
9b439016a9377b7682dd76658f92eddd8d618767
845
py
Python
graphics.py
YousraMashkoor/ZOMBIES-VS-NINJA
6d97b5777e9ffd51e86aef4e804e496be92c245c
[ "MIT" ]
2
2020-02-14T14:16:53.000Z
2020-02-14T23:14:11.000Z
graphics.py
YousraMashkoor/ZOMBIES-VS-NINJA
6d97b5777e9ffd51e86aef4e804e496be92c245c
[ "MIT" ]
null
null
null
graphics.py
YousraMashkoor/ZOMBIES-VS-NINJA
6d97b5777e9ffd51e86aef4e804e496be92c245c
[ "MIT" ]
null
null
null
#loading all of the images import os import pygame game_folder=os.path.dirname(__file__) #background image bgimage_folder=os.path.join(game_folder,"img") bg=pygame.image.load(os.path.join(bgimage_folder,"BG.png")) bgl=pygame.image.load(os.path.join(bgimage_folder,"BG.png")) #ninjas ninja_imag...
21.666667
88
0.72426
135
845
4.362963
0.288889
0.101868
0.152801
0.2309
0.636672
0.636672
0.597623
0.597623
0.597623
0.597623
0
0.01715
0.102959
845
38
89
22.236842
0.759894
0.076923
0
0
0
0
0.175583
0.038409
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9b45e66cbdb1bcf57fe90cea2c33ba5c755e0d16
239
py
Python
common/enc_util.py
LianGee/akalid
bb2246f423ea28f37e834081b58495b30ae33f1c
[ "MIT" ]
null
null
null
common/enc_util.py
LianGee/akalid
bb2246f423ea28f37e834081b58495b30ae33f1c
[ "MIT" ]
null
null
null
common/enc_util.py
LianGee/akalid
bb2246f423ea28f37e834081b58495b30ae33f1c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @File : enc_util.py # @Author: zaoshu # @Date : 2020-02-10 # @Desc : import hashlib def md5(s: str) -> str: m = hashlib.md5() m.update(s.encode('utf8')) return m.hexdigest()
17.071429
30
0.577406
36
239
3.805556
0.833333
0
0
0
0
0
0
0
0
0
0
0.06383
0.213389
239
13
31
18.384615
0.664894
0.451883
0
0
0
0
0.032
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9b4a6e9b2870db80b13773703a669b3c1a6cb5b1
400
py
Python
Exercicios/ex031.py
vincytarsis/Python
f98005917486bc191c85c971ec8e2c71fb9dd4c7
[ "MIT" ]
null
null
null
Exercicios/ex031.py
vincytarsis/Python
f98005917486bc191c85c971ec8e2c71fb9dd4c7
[ "MIT" ]
null
null
null
Exercicios/ex031.py
vincytarsis/Python
f98005917486bc191c85c971ec8e2c71fb9dd4c7
[ "MIT" ]
null
null
null
"""Desenvolva um programa que pergunte a distância de uma viagem em Km. Calcule o preço passagem, cobrando R$0,50 por Km para viagens de até 200Km e R$0,45 para viagens mais longas.""" km = float(input('Quantos Km: ')) if km <= 200: print('Preço a pagar:R${}{:.2f}{}'.format('\033[4;32m',km * 0.50,'\033[m')) else:...
44.444444
96
0.6375
74
400
3.445946
0.594595
0.015686
0.086275
0.12549
0.227451
0.227451
0.227451
0.227451
0.227451
0
0
0.111765
0.15
400
9
97
44.444444
0.638235
0.445
0
0
0
0
0.442396
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9b6342b92a342e9f93576d8e23f84f72240dafc4
1,573
py
Python
setup.py
zeta1999/tweedledum
f070bf582347668f96943a459e51e1a39572b7f4
[ "MIT" ]
1
2022-03-04T21:44:26.000Z
2022-03-04T21:44:26.000Z
setup.py
CQCL/tweedledum
f070bf582347668f96943a459e51e1a39572b7f4
[ "MIT" ]
null
null
null
setup.py
CQCL/tweedledum
f070bf582347668f96943a459e51e1a39572b7f4
[ "MIT" ]
1
2021-04-12T06:17:06.000Z
2021-04-12T06:17:06.000Z
#------------------------------------------------------------------------------- # Part of Tweedledum Project. This file is distributed under the MIT License. # See accompanying file /LICENSE for details. #------------------------------------------------------------------------------- import sys try: from skbuild...
36.581395
80
0.570884
159
1,573
5.610063
0.597484
0.127803
0.140135
0.14574
0
0
0
0
0
0
0
0.01199
0.204704
1,573
43
81
36.581395
0.701039
0.177368
0
0
0
0
0.53292
0.016266
0
0
0
0
0
1
0
true
0
0.081081
0
0.081081
0.108108
0
0
0
null
0
0
0
0
0
0
0
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
9b63678faebd5d4d249a3e26c62e90ad07d48625
543
py
Python
sampledb/models/objects.py
nilsholle/sampledb
90d7487a3990995ca2ec5dfd8b59d4739d6a9a87
[ "MIT" ]
5
2020-02-13T15:25:37.000Z
2021-05-06T21:05:14.000Z
sampledb/models/objects.py
nilsholle/sampledb
90d7487a3990995ca2ec5dfd8b59d4739d6a9a87
[ "MIT" ]
28
2019-11-12T14:14:08.000Z
2022-03-11T16:29:27.000Z
sampledb/models/objects.py
nilsholle/sampledb
90d7487a3990995ca2ec5dfd8b59d4739d6a9a87
[ "MIT" ]
8
2019-12-10T15:46:02.000Z
2021-11-02T12:24:52.000Z
# coding: utf-8 """ """ from .. import db from .users import User from .actions import Action from .versioned_json_object_tables import VersionedJSONSerializableObjectTables __author__ = 'Florian Rhiem <f.rhiem@fz-juelich.de>' class Object(VersionedJSONSerializableObjectTables.VersionedJSONSerializableObject): ...
20.884615
84
0.779006
58
543
7.051724
0.534483
0.02934
0
0
0
0
0
0
0
0
0
0.002132
0.13628
543
25
85
21.72
0.869936
0.023941
0
0
0
0
0.084615
0.044231
0
0
0
0
0
1
0
false
0.066667
0.266667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1