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
8418475e8b117a7899349c6df5fd5aeff3d447b2
996
py
Python
4 - observer pattern/api/event_system.py
lucascionis/betterpython
ab8db8c016ff0bccc443443740a26bccb70402f3
[ "MIT" ]
null
null
null
4 - observer pattern/api/event_system.py
lucascionis/betterpython
ab8db8c016ff0bccc443443740a26bccb70402f3
[ "MIT" ]
null
null
null
4 - observer pattern/api/event_system.py
lucascionis/betterpython
ab8db8c016ff0bccc443443740a26bccb70402f3
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod '''Comments In the original solution only functions were used to implement the event system (observer pattern). In this implementation I wanted to write classes (to be as nearest as possible to the pattern (?)). It is surely better to use python first-citizen functions to create t...
25.538462
68
0.696787
125
996
5.504
0.528
0.109012
0.087209
0.087209
0
0
0
0
0
0
0
0
0.228916
996
38
69
26.210526
0.895833
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0.0625
0.0625
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
842b2f72a08093681d688bb2f92eb0afb6f06354
742
py
Python
quartic_sdk/core/entities/site.py
divyquartic/QuarticSDK
e3ce6387ed5f27845e0909878c831ae39badd8eb
[ "MIT" ]
1
2021-03-26T12:39:44.000Z
2021-03-26T12:39:44.000Z
quartic_sdk/core/entities/site.py
divyquartic/QuarticSDK
e3ce6387ed5f27845e0909878c831ae39badd8eb
[ "MIT" ]
95
2021-02-18T03:15:38.000Z
2022-03-25T05:39:12.000Z
quartic_sdk/core/entities/site.py
divyquartic/QuarticSDK
e3ce6387ed5f27845e0909878c831ae39badd8eb
[ "MIT" ]
1
2021-09-03T12:46:18.000Z
2021-09-03T12:46:18.000Z
""" The given file contains the class to refer to the Site entity """ from quartic_sdk.core.entities.base import Base import quartic_sdk.utilities.constants as Constants class Site(Base): """ The given class refers to the site entity which is created based upon the site response returned by the API ""...
23.935484
91
0.630728
94
742
4.882979
0.478723
0.061002
0.039216
0.065359
0.165577
0.165577
0
0
0
0
0
0
0.291105
742
30
92
24.733333
0.872624
0.38814
0
0.222222
0
0
0.106145
0.069832
0
0
0
0
0
1
0.333333
false
0
0.222222
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
842c3f72d982dddd1077d864f70783e67cb8182b
525
py
Python
newapp/migrations/0003_auto_20190524_1511.py
HCDigitalScholarship/liason_lair
6035d100e3ea1216af2907a4cccd319a1cc4f8d8
[ "MIT" ]
null
null
null
newapp/migrations/0003_auto_20190524_1511.py
HCDigitalScholarship/liason_lair
6035d100e3ea1216af2907a4cccd319a1cc4f8d8
[ "MIT" ]
null
null
null
newapp/migrations/0003_auto_20190524_1511.py
HCDigitalScholarship/liason_lair
6035d100e3ea1216af2907a4cccd319a1cc4f8d8
[ "MIT" ]
1
2019-08-03T01:30:30.000Z
2019-08-03T01:30:30.000Z
# Generated by Django 2.0.5 on 2019-05-24 15:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('newapp', '0002_auto_20190524_1507'), ] operations = [ migrations.AlterField( model_name='course', name='additional_i...
21.875
47
0.565714
51
525
5.686275
0.705882
0.137931
0.172414
0.2
0.268966
0.268966
0
0
0
0
0
0.086835
0.32
525
23
48
22.826087
0.72549
0.085714
0
0.470588
1
0
0.138075
0.048117
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
843bb9c05ba6309f2f5fa04bc4ff12d51bd9395e
430
py
Python
pages/homepage.py
eugenexxx/laptop_docker
362ea238296e64fdd5c49ac55185d65b05e718cc
[ "Apache-2.0" ]
null
null
null
pages/homepage.py
eugenexxx/laptop_docker
362ea238296e64fdd5c49ac55185d65b05e718cc
[ "Apache-2.0" ]
null
null
null
pages/homepage.py
eugenexxx/laptop_docker
362ea238296e64fdd5c49ac55185d65b05e718cc
[ "Apache-2.0" ]
null
null
null
from webium import BasePage, Finds, Find from selenium.webdriver.common.by import By class Homepage(BasePage): catalog_header = Find(by=By.CLASS_NAME, value="Header__BlockCatalogLink") computers_label = Find(by=By.CSS_SELECTOR, value="a[href='/kompyutery/']") laptops_accessories_label = Find(by=By.XPATH, ...
43
99
0.746512
59
430
5.271186
0.559322
0.07717
0.102894
0.125402
0
0
0
0
0
0
0
0
0.111628
430
9
100
47.777778
0.814136
0
0
0
0
0
0.218605
0.162791
0
0
0
0
0
1
0
false
0
0.285714
0
1
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
1
0
0
2
843ca99856298b4d971576c36ef2ff0db2f48136
1,386
py
Python
pdata_app/migrations/0035_auto_20180221_1515.py
jonseddon/primavera-dmt
1239044e37f070b925a3d06db68351f285df780c
[ "BSD-3-Clause" ]
null
null
null
pdata_app/migrations/0035_auto_20180221_1515.py
jonseddon/primavera-dmt
1239044e37f070b925a3d06db68351f285df780c
[ "BSD-3-Clause" ]
49
2018-11-14T17:00:03.000Z
2021-12-20T11:04:22.000Z
pdata_app/migrations/0035_auto_20180221_1515.py
jonseddon/primavera-dmt
1239044e37f070b925a3d06db68351f285df780c
[ "BSD-3-Clause" ]
2
2018-07-04T10:58:43.000Z
2018-09-29T14:55:08.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-02-21 15:15 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pdata_app', '0034_auto_20180221_1158'), ] operations = [ migrations.AddField(...
33.804878
101
0.622655
144
1,386
5.791667
0.402778
0.107914
0.13789
0.161871
0.64988
0.601918
0.601918
0.278177
0.136691
0.136691
0
0.037182
0.262626
1,386
40
102
34.65
0.778865
0.047619
0
0.454545
1
0
0.191344
0.017464
0
0
0
0
0
1
0
false
0
0.060606
0
0.151515
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8463c9fd49aa8b29fdde20c5d6a8fdfd2fb75f46
300
py
Python
src/gencoef/test.py
bwasti/sleef
4d260ae7f5d0e76a3c5424149deb838373e1894b
[ "BSL-1.0" ]
null
null
null
src/gencoef/test.py
bwasti/sleef
4d260ae7f5d0e76a3c5424149deb838373e1894b
[ "BSL-1.0" ]
null
null
null
src/gencoef/test.py
bwasti/sleef
4d260ae7f5d0e76a3c5424149deb838373e1894b
[ "BSL-1.0" ]
null
null
null
import numpy as np import math p = np.poly1d([ +0.1429511242e-53, +0.1561712123e-44, -0.2259472298e-35, -0.2669710222e-26, +0.9784247973e-18, +0.1655572013e-8, +0.3991098106e+0, ]) def sigmoid(x): return 1 / (1 + math.exp(-x)) for i in range(1000): k = float(i) / 100 print(sigmoid(k), p(k))
15.789474
31
0.656667
53
300
3.716981
0.679245
0
0
0
0
0
0
0
0
0
0
0.386719
0.146667
300
18
32
16.666667
0.382813
0
0
0
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0.125
0.0625
0.25
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ffbfef0bf96a36ae6a5da2b1bf0bdc5756f1e309
3,931
py
Python
poc.py
evinr/basis-scraper
cb20574aadc469c6d1527ddb5a3cc69df531cbfd
[ "MIT" ]
null
null
null
poc.py
evinr/basis-scraper
cb20574aadc469c6d1527ddb5a3cc69df531cbfd
[ "MIT" ]
null
null
null
poc.py
evinr/basis-scraper
cb20574aadc469c6d1527ddb5a3cc69df531cbfd
[ "MIT" ]
null
null
null
import serial def setup(): ser = serial.Serial('/dev/ttyUSB0', timeout=2) ser.setRTS(True) ser.setRTS(False) if ser.isOpen(): ser.close() ser.open() ser.isOpen() print "USB connection established" def read(): rawString = ser.readline() print rawString return (str(rawString)) def write(string...
27.110345
135
0.675401
852
3,931
3.116197
0.266432
0.090395
0.049718
0.051224
0.363842
0.319397
0.283616
0.222976
0.222976
0.162712
0
0.285616
0.260748
3,931
145
136
27.110345
0.628011
0.511066
0
0.041667
0
0.020833
0.503504
0
0
0
0
0.006897
0
0
null
null
0
0.020833
null
null
0.145833
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
ffcbaba69ba29dbe70293f1d332c038a6aaf91b9
1,373
py
Python
datastore/__init__.py
Swixx/py-datastore
dfa1f9dcc3cc3beac3c3e79d085cb6e89da97a1c
[ "MIT" ]
6
2019-08-04T04:11:36.000Z
2020-02-20T17:10:26.000Z
datastore/__init__.py
Swixx/py-datastore
dfa1f9dcc3cc3beac3c3e79d085cb6e89da97a1c
[ "MIT" ]
23
2019-09-17T11:35:06.000Z
2020-04-07T16:18:15.000Z
datastore/__init__.py
Swixx/py-datastore
dfa1f9dcc3cc3beac3c3e79d085cb6e89da97a1c
[ "MIT" ]
6
2019-08-04T02:02:25.000Z
2020-03-01T15:43:41.000Z
""" Datastore is a generic layer of abstraction for data store and database access. It is a **simple** API with the aim to enable application development in a datastore-agnostic way, allowing datastores to be swapped seamlessly without changing application code. Thus, one can leverage different datastores with differen...
29.212766
79
0.79024
167
1,373
6.401198
0.491018
0.067353
0.02058
0.026193
0.08232
0
0
0
0
0
0
0.002513
0.130371
1,373
46
80
29.847826
0.892797
0.380189
0
0
0
0
0.252101
0.031212
0
0
0
0
0
1
0
false
0
0.521739
0
0.521739
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
ffd4de322115b22ae4e36e0be2d07a40743376b4
1,340
py
Python
users/models.py
connorgannaway/dockmate
040d44cac896aabc1488f3ed9d59b417e20719d8
[ "MIT" ]
null
null
null
users/models.py
connorgannaway/dockmate
040d44cac896aabc1488f3ed9d59b417e20719d8
[ "MIT" ]
null
null
null
users/models.py
connorgannaway/dockmate
040d44cac896aabc1488f3ed9d59b417e20719d8
[ "MIT" ]
null
null
null
from os import name from django.db import models from django.contrib.auth.models import User from PIL import Image #Model classes are tables objects in a database. #each variable is a column and its datatype. #__str__ method defines the name of a object (row) in a database table #profile model is meant to be used as ...
37.222222
92
0.709701
199
1,340
4.688442
0.517588
0.021436
0.02358
0.051447
0.042872
0
0
0
0
0
0
0.015755
0.194776
1,340
35
93
38.285714
0.848934
0.302985
0
0.133333
0
0
0.079699
0.033083
0
0
0
0
0
1
0.133333
false
0
0.266667
0.133333
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
1
1
0
0
2
081c3a4e5b548789411fc11be988031444e552dd
233
py
Python
dialogue/tensorflow/task/common/common.py
ishine/nlp-dialogue
d47c1438cb5c45c2c2aebfb82fea92bef4c3d65c
[ "Apache-2.0" ]
478
2020-10-28T01:30:30.000Z
2022-03-30T06:34:07.000Z
paper-code/tensorflow_src/models/task/common/common.py
HengYongChao/nlp-paper
fcf985e3c9bfd6944d07c4c36afbaee3384d040d
[ "Apache-2.0" ]
1
2021-08-29T11:55:09.000Z
2021-11-04T09:25:19.000Z
paper-code/tensorflow_src/models/task/common/common.py
HengYongChao/nlp-paper
fcf985e3c9bfd6944d07c4c36afbaee3384d040d
[ "Apache-2.0" ]
89
2021-01-05T06:11:55.000Z
2022-03-24T12:51:57.000Z
from optparse import OptionParser class CmdParser(OptionParser): def error(self, msg): print('Error!提示信息如下:') self.print_help() self.exit(0) def exit(self, status=0, msg=None): exit(status)
19.416667
39
0.622318
29
233
4.965517
0.586207
0
0
0
0
0
0
0
0
0
0
0.011561
0.257511
233
11
40
21.181818
0.820809
0
0
0
0
0
0.055794
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.5
0.25
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
1
0
0
0
0
0
0
0
2
f248957a375715c7681a4295ca66a47a10ee7ea3
6,891
py
Python
tempest/tests/common/test_service_clients.py
xavpaice/tempest
958bd694df27511e0346d799876fe49331b8145c
[ "Apache-2.0" ]
null
null
null
tempest/tests/common/test_service_clients.py
xavpaice/tempest
958bd694df27511e0346d799876fe49331b8145c
[ "Apache-2.0" ]
null
null
null
tempest/tests/common/test_service_clients.py
xavpaice/tempest
958bd694df27511e0346d799876fe49331b8145c
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 NEC Corporation. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
47.524138
79
0.753882
837
6,891
5.951016
0.236559
0.092752
0.156394
0.200763
0.419795
0.399518
0.343706
0.238105
0.098374
0
0
0.014477
0.188071
6,891
144
80
47.854167
0.875782
0.087505
0
0
0
0
0.026937
0.013389
0
0
0.001594
0
0.008
1
0.008
false
0
0.36
0
0.376
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
1
0
0
0
0
2
f26261a417ed0c023adbf8199f1af50c5d35454f
351
py
Python
source/exceptions.py
corradiniste/Paneka-discord-bot
43672b2720c88635266e0962f446bd36bd7ced7d
[ "MIT" ]
12
2020-08-03T05:47:20.000Z
2021-10-06T06:20:19.000Z
source/exceptions.py
Shivanirudh/Paneka-discord-bot
0ec257e92e40baf23233711c9cf9889e8c56ab53
[ "MIT" ]
5
2020-10-03T08:27:35.000Z
2021-06-02T04:45:57.000Z
source/exceptions.py
Shivanirudh/Paneka-discord-bot
0ec257e92e40baf23233711c9cf9889e8c56ab53
[ "MIT" ]
6
2020-08-06T10:41:49.000Z
2022-02-14T17:26:07.000Z
class InvalidLimitException(Exception): """ Invalid number of matches requested """ pass class InvalidLeagueCodeException(Exception): """ The League code requested is either invalid or not supported """ pass class InvalidTeamCodeException(Exception): """ The Team Code requested...
17.55
64
0.672365
33
351
7.151515
0.606061
0.076271
0.127119
0
0
0
0
0
0
0
0
0
0.250712
351
19
65
18.473684
0.897338
0.373219
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
2
f263d10e4b0315d66a52d4a47d9ce8cba72ce9a2
336
py
Python
Task1F.py
momopmoXZ/1a-flood-coding
13d2f6387e136f046b07a045eadfe654e9c2c27f
[ "MIT" ]
null
null
null
Task1F.py
momopmoXZ/1a-flood-coding
13d2f6387e136f046b07a045eadfe654e9c2c27f
[ "MIT" ]
null
null
null
Task1F.py
momopmoXZ/1a-flood-coding
13d2f6387e136f046b07a045eadfe654e9c2c27f
[ "MIT" ]
1
2022-02-07T17:04:41.000Z
2022-02-07T17:04:41.000Z
from floodsystem.stationdata import build_station_list from floodsystem.station import inconsistent_typical_range_stations stations = build_station_list() incon_station=inconsistent_typical_range_stations(stations) incon_names=[] for station in incon_station: incon_names.append(station.name) incon_names.sort() prin...
33.6
67
0.863095
44
336
6.227273
0.431818
0.145985
0.116788
0.233577
0.291971
0
0
0
0
0
0
0
0.074405
336
9
68
37.333333
0.881029
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.111111
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f2661fcc769c20d3c2e052ada4cb40f950039d1a
675
py
Python
tallerestructurasselectivas/14.py
juandab07/Algoritmos-y-programacion
f3c10f5c4620b15432ecfe2b9f5831437a49ace9
[ "MIT" ]
null
null
null
tallerestructurasselectivas/14.py
juandab07/Algoritmos-y-programacion
f3c10f5c4620b15432ecfe2b9f5831437a49ace9
[ "MIT" ]
null
null
null
tallerestructurasselectivas/14.py
juandab07/Algoritmos-y-programacion
f3c10f5c4620b15432ecfe2b9f5831437a49ace9
[ "MIT" ]
null
null
null
print('ingrese el monto a pagar en aseo urbano') aseo=float(input()) print('ingrese el valor de lectura del mes anterior') ant=float(input()) print('ingrese el valor de lectura del mes actual') act=float(input()) cons=act-ant if 0<cons<=100: pago=cons*4600 print('debera pagar $',pago,'en luz electrica y',aseo,'...
35.526316
75
0.694815
114
675
4.114035
0.324561
0.063966
0.127932
0.170576
0.635394
0.635394
0.635394
0.635394
0.635394
0.635394
0
0.06993
0.152593
675
19
76
35.526316
0.75
0
0
0.210526
0
0
0.457101
0
0
0
0
0
0
1
0
false
0
0
0
0
0.368421
0
0
0
null
0
0
1
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
2
f26a8afeac7319e72d66512791f4976ac936a01f
1,275
py
Python
examples/1-marshmallow/server/resources/user/schema.py
FlyingBird95/openapi_generator
df4649b9723eb89fa370b02220356b7596794069
[ "MIT" ]
3
2022-01-10T12:43:36.000Z
2022-01-13T18:08:15.000Z
examples/1-marshmallow/server/resources/user/schema.py
FlyingBird95/openapi_generator
df4649b9723eb89fa370b02220356b7596794069
[ "MIT" ]
6
2022-02-06T19:00:05.000Z
2022-03-22T14:22:21.000Z
examples/1-marshmallow/server/resources/user/schema.py
FlyingBird95/openapi-builder
df4649b9723eb89fa370b02220356b7596794069
[ "MIT" ]
2
2021-12-17T17:26:06.000Z
2021-12-17T17:39:00.000Z
from marshmallow import Schema, fields class RegisterUser(Schema): """Deserialize register user schema.""" email = fields.Email(required=True) """Email.""" first_name = fields.String(required=True) """First name.""" last_name = fields.String(required=True) """Last name.""" password...
19.615385
71
0.620392
137
1,275
5.708029
0.364964
0.138107
0.122762
0.122762
0.360614
0.223785
0.094629
0
0
0
0
0
0.212549
1,275
64
72
19.921875
0.778884
0.134902
0
0
0
0
0.006889
0
0
0
0
0
0
1
0.045455
false
0.090909
0.045455
0.045455
0.954545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
f27a87d9305d94ef4ecc93fe8c501738b9c6465e
582
py
Python
recipes/Python/474122_neat/recipe-474122.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/474122_neat/recipe-474122.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/474122_neat/recipe-474122.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
# nice and clean closure notation def get_counter_neat(): def f(): f.x += 1 return f.x f.x = 0 return f # traditional, not_so_neat closure notation def get_counter_traditional(): x = [0] def f(): x[0] += 1 return x[0] return f #### EXAMPLE ######################...
20.068966
72
0.487973
83
582
3.192771
0.301205
0.211321
0.135849
0.158491
0.211321
0
0
0
0
0
0
0.030588
0.269759
582
28
73
20.785714
0.592941
0.213058
0
0.52381
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.333333
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
f2903e37d62a64c2678663ac58e60ba0efca0df6
206
py
Python
setup.py
hemanths933/Segmentation_Unet
701585b31df7e4159e2fdbe56aaca99d9a4a8ea9
[ "MIT" ]
null
null
null
setup.py
hemanths933/Segmentation_Unet
701585b31df7e4159e2fdbe56aaca99d9a4a8ea9
[ "MIT" ]
null
null
null
setup.py
hemanths933/Segmentation_Unet
701585b31df7e4159e2fdbe56aaca99d9a4a8ea9
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='Unet', version='', packages=['models'], url='', license='', author='hemanth sharma', author_email='', description='' )
15.846154
29
0.538835
18
206
6.111111
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.291262
206
12
30
17.166667
0.753425
0
0
0
0
0
0.123711
0
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
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
1
0
0
0
0
0
0
2
f29ee11e7e85111e249a8c2b4d2fb8ce2bd1370b
1,230
py
Python
mopidy_monobox/__init__.py
oxullo/mopidy-monobox
3cf9077e49afb0f0171f990cc4205cc348dcda1d
[ "Apache-2.0" ]
null
null
null
mopidy_monobox/__init__.py
oxullo/mopidy-monobox
3cf9077e49afb0f0171f990cc4205cc348dcda1d
[ "Apache-2.0" ]
null
null
null
mopidy_monobox/__init__.py
oxullo/mopidy-monobox
3cf9077e49afb0f0171f990cc4205cc348dcda1d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import logging import os # TODO: Remove entirely if you don't register GStreamer elements below import pygst pygst.require('0.10') import gst import gobject from mopidy import config, ext __version__ = '0.1.0' # TODO: If you ne...
26.170213
77
0.688618
155
1,230
5.232258
0.56129
0.01233
0.036991
0
0
0
0
0
0
0
0
0.007114
0.2
1,230
46
78
26.73913
0.817073
0.152033
0
0
0
0
0.108758
0
0
0
0
0.021739
0
1
0.103448
false
0
0.275862
0
0.586207
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
f2a16388d4271df1ce952f8cf5640d703d0a37c8
66
py
Python
nyoka/PMML44/doc/source/scripts/metadata.py
maxibor/nyoka
19f480eee608035aa5fba368c96d4143bc2f5710
[ "Apache-2.0" ]
71
2020-08-24T07:59:56.000Z
2022-03-21T08:36:35.000Z
nyoka/PMML44/doc/source/scripts/metadata.py
maxibor/nyoka
19f480eee608035aa5fba368c96d4143bc2f5710
[ "Apache-2.0" ]
16
2020-09-02T10:27:36.000Z
2022-03-31T05:37:12.000Z
nyoka/PMML44/doc/source/scripts/metadata.py
nimeshgit/nyoka
43bf049825922213eeb3e6a8f39864f9b75d01d5
[ "Apache-2.0" ]
16
2020-09-17T15:01:33.000Z
2022-03-28T03:13:25.000Z
__version__ = '3.1.0rc1' __license__ = "Apache Software License"
16.5
39
0.742424
8
66
5.125
0.875
0
0
0
0
0
0
0
0
0
0
0.070175
0.136364
66
3
40
22
0.649123
0
0
0
0
0
0.476923
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f2ac969d340070fc7df625b368680b8b1a6e1f30
323
py
Python
src/ralph/assets/filters.py
DoNnMyTh/ralph
97b91639fa68965ad3fd9d0d2652a6545a2a5b72
[ "Apache-2.0" ]
1,668
2015-01-01T12:51:20.000Z
2022-03-29T09:05:35.000Z
src/ralph/assets/filters.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
2,314
2015-01-02T13:26:26.000Z
2022-03-29T04:06:03.000Z
src/ralph/assets/filters.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
534
2015-01-05T12:40:28.000Z
2022-03-29T21:10:12.000Z
from ralph.admin.filters import DateListFilter class BuyoutDateFilter(DateListFilter): def queryset(self, request, queryset): queryset = super().queryset(request, queryset) if queryset is not None: queryset = queryset.filter(model__category__show_buyout_date=True) return querys...
32.3
78
0.724458
35
323
6.514286
0.714286
0.131579
0
0
0
0
0
0
0
0
0
0
0.204334
323
9
79
35.888889
0.88716
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.571429
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
1
0
0
2
f2b2b39cb97742f076427952e2dfe5b302a0b56b
1,548
py
Python
webapp/vaga_remanescente/views.py
prefeiturasp/SME-VagasNaCreche-API
20ae8862375124c7459fe6ff2d2d33ed34d136fb
[ "0BSD" ]
null
null
null
webapp/vaga_remanescente/views.py
prefeiturasp/SME-VagasNaCreche-API
20ae8862375124c7459fe6ff2d2d33ed34d136fb
[ "0BSD" ]
9
2020-06-06T00:20:46.000Z
2022-02-10T10:57:35.000Z
webapp/vaga_remanescente/views.py
prefeiturasp/SME-VagasNaCreche-API
20ae8862375124c7459fe6ff2d2d33ed34d136fb
[ "0BSD" ]
1
2020-09-17T14:46:24.000Z
2020-09-17T14:46:24.000Z
import pickle import zlib from django.core.cache import cache from fila_da_creche.queries.dt_atualizacao import get_dt_atualizacao from rest_framework.response import Response from rest_framework.views import APIView from vaga_remanescente.queries.distrito import get_distritos from vaga_remanescente.queries.dr...
36
89
0.672481
185
1,548
5.405405
0.356757
0.045
0.08
0.108
0.048
0
0
0
0
0
0
0.008489
0.239018
1,548
42
90
36.857143
0.840407
0.014212
0
0
0
0
0.0722
0
0
0
0
0
0
1
0.0625
false
0
0.3125
0
0.5625
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
f2b9b881e8f73f67cedd4bd5a979546da0d9dcab
988
py
Python
textembedding/__init__.py
Hanscal/textembedding
0076a7a67e1c0e0b3ebc4bbbfa9dcdcfbf16c4c7
[ "MIT" ]
1
2021-05-26T09:42:37.000Z
2021-05-26T09:42:37.000Z
textembedding/__init__.py
Hanscal/textembedding
0076a7a67e1c0e0b3ebc4bbbfa9dcdcfbf16c4c7
[ "MIT" ]
null
null
null
textembedding/__init__.py
Hanscal/textembedding
0076a7a67e1c0e0b3ebc4bbbfa9dcdcfbf16c4c7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @Time : 2021/2/26 12:07 下午 @Author : hcai @Email : hua.cai@unidt.com """ import textembedding.get_embedding import textembedding.load_model name = "textbedding" # 加载wv model def load_word2vect(filepath): model = textembedding.load_model.load_word2vect(fil...
29.058824
122
0.765182
139
988
5.158273
0.460432
0.089261
0.13947
0.117155
0.387727
0.301255
0.223152
0.125523
0
0
0
0.01837
0.118421
988
34
123
29.058824
0.804822
0.15081
0
0
0
0
0.03023
0
0
0
0
0
0
1
0.266667
false
0
0.133333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
f2c28b1aa80b1c46d32c2a27e47aa2e4dc3f68c8
612
py
Python
ipfinder.py
robertas64/realGrowIp
bc1f1f4cf30eaa4091a6f81907a39eb8d3b66990
[ "MIT" ]
1
2022-03-09T23:21:18.000Z
2022-03-09T23:21:18.000Z
ipfinder.py
njartemis/realGrowIp
bc1f1f4cf30eaa4091a6f81907a39eb8d3b66990
[ "MIT" ]
null
null
null
ipfinder.py
njartemis/realGrowIp
bc1f1f4cf30eaa4091a6f81907a39eb8d3b66990
[ "MIT" ]
1
2021-04-16T16:11:24.000Z
2021-04-16T16:11:24.000Z
# ___ ___ ___ _ _ # |_ _| _ \___| __(_)_ _ __| |___ _ _ # | || _/___| _|| | ' \/ _` / -_) '_| # |___|_| |_| |_|_||_\__,_\___|_| # Made by Robertas64 #Importing the module import os from time import * banner = """ ___ ___ ___ _ _ |_ _| _ \___| __(_)_ _ __| |_...
22.666667
40
0.47549
34
612
5.5
0.852941
0
0
0
0
0
0
0
0
0
0
0.01269
0.356209
612
27
41
22.666667
0.461929
0.315359
0
0
0
0.071429
0.792683
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.071429
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4b4b052054557003ef2b409b1b9f8cb5ed96012e
48,837
py
Python
tests/schematics_proto3_tests_pb2.py
mlga/schematics-proto3
588fe5bc212e203688166638a1c52dfeda931403
[ "MIT" ]
null
null
null
tests/schematics_proto3_tests_pb2.py
mlga/schematics-proto3
588fe5bc212e203688166638a1c52dfeda931403
[ "MIT" ]
11
2020-04-09T13:33:54.000Z
2020-08-19T17:38:26.000Z
tests/schematics_proto3_tests_pb2.py
mlga/schematics-proto3
588fe5bc212e203688166638a1c52dfeda931403
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tests/schematics_proto3_tests.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descri...
33.750518
3,198
0.757377
5,740
48,837
6.097735
0.053484
0.035428
0.091197
0.052113
0.743779
0.698237
0.63541
0.61144
0.59904
0.588669
0
0.038589
0.118107
48,837
1,446
3,199
33.773859
0.774083
0.053853
0
0.654615
1
0.000769
0.19507
0.15606
0
0
0
0
0
1
0
false
0
0.006154
0
0.006154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4b5cbe04dec6e7c55b09522e71410c55307b8fa0
302
py
Python
shop/views/shop_views.py
cuescience/cuescience-shop
bf5ea159f9277d1d6ab7acfcad3f2517723a225c
[ "MIT" ]
null
null
null
shop/views/shop_views.py
cuescience/cuescience-shop
bf5ea159f9277d1d6ab7acfcad3f2517723a225c
[ "MIT" ]
null
null
null
shop/views/shop_views.py
cuescience/cuescience-shop
bf5ea159f9277d1d6ab7acfcad3f2517723a225c
[ "MIT" ]
null
null
null
from shop.models import Product from django.shortcuts import render_to_response from django.template import RequestContext def index_view(request): products = Product.objects.all() return render_to_response("cuescience_shop/index.html", RequestContext(request, {"products": products}))
20.133333
108
0.788079
37
302
6.27027
0.594595
0.086207
0.137931
0
0
0
0
0
0
0
0
0
0.125828
302
14
109
21.571429
0.878788
0
0
0
0
0
0.114865
0.087838
0
0
0
0
0
1
0.166667
false
0
0.5
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
4b5d16684195ca44a761cc1ab6755c005952e4d5
163
py
Python
qrogue/test/statevector_tests.py
7Magic7Mike7/Qrogue
70bd5671a77981c1d4b633246321ba44f13c21ff
[ "MIT" ]
4
2021-12-14T19:13:43.000Z
2022-02-16T13:25:38.000Z
qrogue/test/statevector_tests.py
7Magic7Mike7/Qrogue
70bd5671a77981c1d4b633246321ba44f13c21ff
[ "MIT" ]
null
null
null
qrogue/test/statevector_tests.py
7Magic7Mike7/Qrogue
70bd5671a77981c1d4b633246321ba44f13c21ff
[ "MIT" ]
1
2022-01-04T18:35:51.000Z
2022-01-04T18:35:51.000Z
import numpy as np from qrogue.game.logic.actors import StateVector stv = StateVector([1 / np.sqrt(2), 0 + 0j, 0 + 0j, 1 / np.sqrt(2)]) #stv.extend(1) print(stv)
23.285714
67
0.680982
30
163
3.7
0.6
0.054054
0.126126
0.144144
0
0
0
0
0
0
0
0.065217
0.153374
163
7
68
23.285714
0.73913
0.079755
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
4b70e648e25de3717c9f7effa2fbe1723459da27
344
py
Python
tests/system/examples/dask/assets/dask_function.py
Hedingber/mlrun
e2269718fcc7caa7e1aa379ac28495830b45f9da
[ "Apache-2.0" ]
1
2021-02-17T08:12:33.000Z
2021-02-17T08:12:33.000Z
tests/system/examples/dask/assets/dask_function.py
Hedingber/mlrun
e2269718fcc7caa7e1aa379ac28495830b45f9da
[ "Apache-2.0" ]
1
2020-12-31T14:36:29.000Z
2020-12-31T14:36:29.000Z
tests/system/examples/dask/assets/dask_function.py
Hedingber/mlrun
e2269718fcc7caa7e1aa379ac28495830b45f9da
[ "Apache-2.0" ]
1
2021-08-30T21:43:38.000Z
2021-08-30T21:43:38.000Z
# function that will be distributed def inc(x): return x + 2 # wrapper function, uses the dask client object def main(context, x=1, y=2): context.logger.info(f"params: x={x},y={y}") print(f"params: x={x},y={y}") x = context.dask_client.submit(inc, x) print(x) print(x.result()) context.log_...
24.571429
47
0.627907
59
344
3.627119
0.474576
0.037383
0.074766
0.084112
0.102804
0.102804
0
0
0
0
0
0.010791
0.19186
344
13
48
26.461538
0.758993
0.229651
0
0
0
0
0.148855
0
0
0
0
0
0
1
0.222222
false
0
0
0.111111
0.333333
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
4b73785d9dd8a4aaaf6a1aac49dbeb16165c0050
1,423
py
Python
demo/demo/urls.py
AlanCoding/Example-Django-App
1cca52b720d1b117ccce780618d9af94f584ac2c
[ "MIT" ]
null
null
null
demo/demo/urls.py
AlanCoding/Example-Django-App
1cca52b720d1b117ccce780618d9af94f584ac2c
[ "MIT" ]
null
null
null
demo/demo/urls.py
AlanCoding/Example-Django-App
1cca52b720d1b117ccce780618d9af94f584ac2c
[ "MIT" ]
null
null
null
"""demo URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based...
33.093023
79
0.702741
209
1,423
4.703349
0.339713
0.036623
0.076297
0.024415
0.188199
0.188199
0.145473
0.076297
0
0
0
0.007621
0.170063
1,423
42
80
33.880952
0.824725
0.106817
0
0
0
0
0.110048
0.038278
0
0
0
0
0
0
null
null
0
0.388889
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
1
0
0
0
0
2
4b786431aa3dbf51672c3a6c4d1ccbdb01c1f809
7,865
py
Python
todo/views.py
Azarn/mytodo
599b5017b9a952100f05a6180dba5bca0823ad70
[ "Apache-2.0" ]
null
null
null
todo/views.py
Azarn/mytodo
599b5017b9a952100f05a6180dba5bca0823ad70
[ "Apache-2.0" ]
null
null
null
todo/views.py
Azarn/mytodo
599b5017b9a952100f05a6180dba5bca0823ad70
[ "Apache-2.0" ]
null
null
null
import logging from rest_framework import mixins, generics, permissions, exceptions from django.conf import settings from django.utils import timezone from .serializers import CategorySerializer, TagSerializer, TodoSerializer from .models import Category, Tag, Todo logger = logging.getLogger(__name__) class MyGen...
34.047619
105
0.628608
861
7,865
5.624855
0.186992
0.072682
0.101796
0.069378
0.615321
0.581251
0.535825
0.481313
0.459013
0.415032
0
0.000874
0.272346
7,865
230
106
34.195652
0.845361
0.070947
0
0.561728
0
0
0.027986
0
0
0
0
0.026087
0
1
0.179012
false
0
0.037037
0.123457
0.487654
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
1
0
0
0
2
4b7b56b22f9f50b0ab5dcb31b7bb4cdc39078ed0
2,014
py
Python
2_writeups/4_other/pdf/pipeline.py
araujorayza/robot_hacking_manual
d11feecc8931b1449b0ab30a51a55f71f51dd965
[ "Apache-2.0" ]
141
2021-11-14T15:27:04.000Z
2022-03-30T00:44:48.000Z
2_writeups/4_other/pdf/pipeline.py
araujorayza/robot_hacking_manual
d11feecc8931b1449b0ab30a51a55f71f51dd965
[ "Apache-2.0" ]
1
2021-11-17T06:38:44.000Z
2021-11-17T06:38:45.000Z
2_writeups/4_other/pdf/pipeline.py
araujorayza/robot_hacking_manual
d11feecc8931b1449b0ab30a51a55f71f51dd965
[ "Apache-2.0" ]
18
2021-11-15T09:55:48.000Z
2022-03-08T10:25:58.000Z
""" Script to generate a security pipeline for PDF files. It does the following: - Adds specified meta-data - Encrypts file Run: python3 pipeline.py """ from PyPDF2 import PdfFileWriter, PdfFileReader from PyPDF2.generic import NameObject, createStringObject def encrypt(input_pdf, output_pdf, password): pdf...
28.366197
77
0.682224
240
2,014
5.520833
0.3625
0.061132
0.090566
0.02566
0.443774
0.393962
0.327547
0.327547
0.327547
0.327547
0
0.010599
0.203575
2,014
70
78
28.771429
0.815461
0.215988
0
0.363636
1
0
0.104792
0.052396
0
0
0
0
0
1
0.060606
false
0.090909
0.060606
0
0.121212
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
1
0
0
0
0
0
2
4b81b5fe4aceb22e7a99ad217502d745e5a0019f
1,069
py
Python
spotty/commands/abstract_command.py
Inculus/spotty
56863012668a6c13ad13c2a04f900047e229fbe6
[ "MIT" ]
246
2018-09-03T09:09:48.000Z
2020-07-18T21:07:15.000Z
spotty/commands/abstract_command.py
Inculus/spotty
56863012668a6c13ad13c2a04f900047e229fbe6
[ "MIT" ]
42
2018-10-09T19:41:56.000Z
2020-06-15T22:55:58.000Z
spotty/commands/abstract_command.py
Inculus/spotty
56863012668a6c13ad13c2a04f900047e229fbe6
[ "MIT" ]
27
2018-10-09T22:16:40.000Z
2020-06-08T22:26:00.000Z
from abc import ABC, abstractmethod from argparse import Namespace, ArgumentParser from spotty.commands.writers.abstract_output_writrer import AbstractOutputWriter class AbstractCommand(ABC): """Abstract class for a Spotty sub-command.""" @property @abstractmethod def name(self) -> str: """Th...
30.542857
93
0.654818
115
1,069
6.052174
0.547826
0.071839
0.074713
0.037356
0.057471
0
0
0
0
0
0
0
0.246024
1,069
34
94
31.441176
0.863524
0.309635
0
0.375
0
0
0.057315
0
0
0
0
0
0
1
0.25
false
0
0.1875
0
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
4b92d579f1edf869213b966f3c57e11cb659219d
1,048
py
Python
Day18/main.py
MHKomeili/100DaysofCode
a5799011a43f777ddc5ac9e649aa27291313b62b
[ "MIT" ]
null
null
null
Day18/main.py
MHKomeili/100DaysofCode
a5799011a43f777ddc5ac9e649aa27291313b62b
[ "MIT" ]
null
null
null
Day18/main.py
MHKomeili/100DaysofCode
a5799011a43f777ddc5ac9e649aa27291313b62b
[ "MIT" ]
null
null
null
# import colorgram # # colors = colorgram.extract('image.jpg', 30) # rgb_colors = [] # for color in colors: # rgb_colors.append((color.rgb.r, color.rgb.g, color.rgb.b)) # # print(rgb_colors) from turtle import Turtle, Screen import random color_list = [(238, 251, 245), (250, 228, 15), (213, 12, 8), (199, 11, 36),...
31.757576
119
0.540076
167
1,048
3.359281
0.622754
0.048128
0.060606
0.042781
0
0
0
0
0
0
0
0.279449
0.23855
1,048
33
120
31.757576
0.423559
0.169847
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4ba3e0dab8146008256a0da74d6aec2d33aa11e9
127
py
Python
appending_to_files.py
jaiminjerry/Python
eb7013c7560b09d37849d653516257d939e143aa
[ "bzip2-1.0.6" ]
null
null
null
appending_to_files.py
jaiminjerry/Python
eb7013c7560b09d37849d653516257d939e143aa
[ "bzip2-1.0.6" ]
null
null
null
appending_to_files.py
jaiminjerry/Python
eb7013c7560b09d37849d653516257d939e143aa
[ "bzip2-1.0.6" ]
1
2021-08-17T03:46:56.000Z
2021-08-17T03:46:56.000Z
appendMe = '\nNew bit of information' appendFile = open('example.txt','a') appendFile.write(appendMe) appendFile.close()
21.166667
38
0.716535
15
127
6.066667
0.8
0
0
0
0
0
0
0
0
0
0
0
0.133858
127
5
39
25.4
0.827273
0
0
0
0
0
0.295082
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4ba51c782d7e269031d5abf6080e2a03357844fd
849
py
Python
mcir/t1_hist.py
omritomer/mcir
1554d352172464c6314339195d6ea9a5e00824af
[ "MIT" ]
null
null
null
mcir/t1_hist.py
omritomer/mcir
1554d352172464c6314339195d6ea9a5e00824af
[ "MIT" ]
null
null
null
mcir/t1_hist.py
omritomer/mcir
1554d352172464c6314339195d6ea9a5e00824af
[ "MIT" ]
null
null
null
import numpy as np class T1Hist: def __init__( self, max_t1: float = 3000, min_t1: float = 200 ): self.max_t1 = max_t1 self.min_t1 = min_t1 def get_t1_histogram(self, t1_matrix: np.ndarray, norm_m0_matrix: np.ndarray): t1_histogram = t1_matrix.astype(float).ravel() ...
30.321429
82
0.61013
110
849
4.327273
0.245455
0.277311
0.189076
0.12605
0.22479
0.168067
0.168067
0.168067
0.168067
0.168067
0
0.06822
0.292108
849
27
83
31.444444
0.723794
0
0
0.173913
0
0
0
0
0
0
0
0
0
1
0.130435
false
0
0.043478
0
0.26087
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4ba5d882b2fc5de31e1705b7b18a845f264237e7
209
py
Python
main.py
Javert899/pm4py-tool-plugin-skeleton
cfc4aefd02499b323ae60e33f059a6b90e48a95f
[ "MIT" ]
null
null
null
main.py
Javert899/pm4py-tool-plugin-skeleton
cfc4aefd02499b323ae60e33f059a6b90e48a95f
[ "MIT" ]
null
null
null
main.py
Javert899/pm4py-tool-plugin-skeleton
cfc4aefd02499b323ae60e33f059a6b90e48a95f
[ "MIT" ]
null
null
null
import pluginpackageRENAME import preload import os if __name__ == "__main__": preload.preload() app = pluginpackageRENAME.app app.static_folder = os.path.join(os.getcwd(), "html") app.run()
19
57
0.703349
25
209
5.52
0.6
0
0
0
0
0
0
0
0
0
0
0
0.177033
209
10
58
20.9
0.802326
0
0
0
0
0
0.057416
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
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
1
0
0
0
0
2
4bbef0cf8a34a2518357110d8f321604ae40180d
337
py
Python
51_60/day-60/forms/main.py
srakhe/100-days-py
4d99ab35eb1376d2f8722c42e0bf98acc18fba20
[ "MIT" ]
null
null
null
51_60/day-60/forms/main.py
srakhe/100-days-py
4d99ab35eb1376d2f8722c42e0bf98acc18fba20
[ "MIT" ]
null
null
null
51_60/day-60/forms/main.py
srakhe/100-days-py
4d99ab35eb1376d2f8722c42e0bf98acc18fba20
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request app = Flask(__name__) @app.route('/') def home(): return render_template('index.html') @app.route('/login', methods=['POST']) def login(): return f'<h2>Name: {request.form["name"]}</h2><br><h2>Password: {request.form["password"]}' if __name__ == '__main__...
18.722222
95
0.652819
45
337
4.577778
0.555556
0.135922
0
0
0
0
0
0
0
0
0
0.010309
0.136499
337
17
96
19.823529
0.697595
0
0
0
0
0.1
0.32641
0.207715
0
0
0
0
0
1
0.2
false
0.1
0.1
0.2
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
1
0
0
0
2
29955858830022ac8b0ab1ecf8622aef64dde5f8
395
py
Python
yao_framework/__init__.py
QuantumBFS/yao-python
c877b3c4f920e76858021b6af8728f839d88fc1d
[ "Apache-2.0" ]
3
2019-12-04T16:40:55.000Z
2021-12-16T04:28:59.000Z
yao_framework/__init__.py
QuantumBFS/yao-python
c877b3c4f920e76858021b6af8728f839d88fc1d
[ "Apache-2.0" ]
null
null
null
yao_framework/__init__.py
QuantumBFS/yao-python
c877b3c4f920e76858021b6af8728f839d88fc1d
[ "Apache-2.0" ]
2
2021-05-07T01:17:50.000Z
2021-12-16T04:32:31.000Z
# workaround static linked python from julia.api import Julia __julia__ = Julia(compiled_modules=False) import os import sys import subprocess from .wrappers import apply script_dir = os.path.dirname(os.path.realpath(__file__)) def install(): """ Install Julia packages required for yao-framework. """ ...
21.944444
76
0.744304
53
395
5.320755
0.622642
0.06383
0
0
0
0
0
0
0
0
0
0
0.146835
395
17
77
23.235294
0.836795
0.210127
0
0
0
0
0.050676
0
0
0
0
0
0
1
0.111111
false
0
0.555556
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
29cdd1a0441cda0528b31705900a6564e1af5682
179
py
Python
app/blog/urls.py
AjayHao/AtThirty
96b2ce00be8f3ed07ee5e6e2b1ca13ab25e9521d
[ "MIT" ]
null
null
null
app/blog/urls.py
AjayHao/AtThirty
96b2ce00be8f3ed07ee5e6e2b1ca13ab25e9521d
[ "MIT" ]
null
null
null
app/blog/urls.py
AjayHao/AtThirty
96b2ce00be8f3ed07ee5e6e2b1ca13ab25e9521d
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url from app.blog import views as blog_views urlpatterns = [ #django url url(r'^$', blog_views.index, name='blog_index'), ]
16.272727
52
0.681564
26
179
4.576923
0.576923
0.151261
0
0
0
0
0
0
0
0
0
0
0.201117
179
10
53
17.9
0.832168
0.055866
0
0
0
0
0.071429
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
1
0
0
0
0
2
29e53d00d3dfdf9edbf744f3dfa7a95332d492b5
170
py
Python
books/init_api.py
nabekabebe/BookFInder
aaa7eb3028cb2ef5552f865107ddb13a5dc3fde7
[ "MIT" ]
null
null
null
books/init_api.py
nabekabebe/BookFInder
aaa7eb3028cb2ef5552f865107ddb13a5dc3fde7
[ "MIT" ]
null
null
null
books/init_api.py
nabekabebe/BookFInder
aaa7eb3028cb2ef5552f865107ddb13a5dc3fde7
[ "MIT" ]
null
null
null
from flask_restplus import Api API = Api( title="Book API", version='1.0', description="This Api provides endpoint for accessing books and their reviews." )
21.25
83
0.705882
24
170
4.958333
0.833333
0.10084
0
0
0
0
0
0
0
0
0
0.014706
0.2
170
7
84
24.285714
0.860294
0
0
0
0
0
0.447059
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
29f700b90ab2377c8ba15763c3022ce5834a7f4f
4,445
py
Python
python/fe3lmaker/s3-driver.py
flarebyte/wonderful-bazar
810514cd7d73505b11d738f8b84d91842d18d074
[ "MIT" ]
null
null
null
python/fe3lmaker/s3-driver.py
flarebyte/wonderful-bazar
810514cd7d73505b11d738f8b84d91842d18d074
[ "MIT" ]
null
null
null
python/fe3lmaker/s3-driver.py
flarebyte/wonderful-bazar
810514cd7d73505b11d738f8b84d91842d18d074
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This software code is made available "AS IS" without warranties of any # kind. You may copy, display, modify and redistribute the software # code either by itself or as incorporated into your code; provided that # you do not remove any proprietary notices. Your use of this software # cod...
37.352941
142
0.730259
673
4,445
4.710253
0.322437
0.063091
0.036909
0.048265
0.399054
0.376341
0.344164
0.215457
0.195268
0.195268
0
0.007922
0.148032
4,445
118
143
37.669492
0.829152
0.277165
0
0.30137
0
0.013699
0.396427
0.007521
0
0
0
0
0
0
null
null
0
0.041096
null
null
0.589041
0
0
0
null
0
0
0
0
0
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
1
0
2
29f8e7164c007819cd3fd8ace5f9b2b1776fa29b
19,622
py
Python
client/buck_project_builder/tests/builder_test.py
aspin/pyre-check
fe78b41789ba3ef091b0b021d9a1c6267905a7f8
[ "MIT" ]
null
null
null
client/buck_project_builder/tests/builder_test.py
aspin/pyre-check
fe78b41789ba3ef091b0b021d9a1c6267905a7f8
[ "MIT" ]
null
null
null
client/buck_project_builder/tests/builder_test.py
aspin/pyre-check
fe78b41789ba3ef091b0b021d9a1c6267905a7f8
[ "MIT" ]
null
null
null
# Copyright (c) 2019-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import glob import unittest from typing import List, Optional from unittest.mock import MagicMock, patch from .. import BuilderException, FastBuckB...
37.590038
88
0.505045
1,770
19,622
5.358192
0.075706
0.050295
0.048714
0.066428
0.767609
0.737453
0.702657
0.6686
0.620413
0.569907
0
0.014753
0.350576
19,622
521
89
37.662188
0.729499
0.030017
0
0.509479
0
0
0.183618
0.052064
0
0
0
0
0.116114
1
0.030806
false
0
0.018957
0
0.052133
0
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
29fdda258cbe5d54b3217108b57775e883bf274f
549
py
Python
fishpass/migrations/0004_auto_20180925_1825.py
Ecotrust/FishPass
a69a4f9de46f28653ae92ef33c1e5cf7036cfb37
[ "MIT" ]
3
2019-03-01T04:00:21.000Z
2022-02-10T22:17:20.000Z
fishpass/migrations/0004_auto_20180925_1825.py
Ecotrust/FishPass
a69a4f9de46f28653ae92ef33c1e5cf7036cfb37
[ "MIT" ]
165
2018-04-13T18:24:39.000Z
2022-03-02T03:27:33.000Z
fishpass/migrations/0004_auto_20180925_1825.py
Ecotrust/FishPass
a69a4f9de46f28653ae92ef33c1e5cf7036cfb37
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2018-09-26 01:25 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('fishpass', '0003_auto_20180925_1825'), ] operatio...
24.954545
106
0.657559
63
549
5.555556
0.714286
0.068571
0.08
0.125714
0
0
0
0
0
0
0
0.079812
0.224044
549
21
107
26.142857
0.741784
0.125683
0
0
1
0
0.142558
0.048218
0
0
0
0
0
1
0
false
0.142857
0.214286
0
0.428571
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
1
0
0
0
0
0
2
4b1d49f6efb27ace41851af3af43454783b205c7
399
py
Python
solutions/level0_tasks.py
sksuzuki/How-to-Learn-to-Code
347943dbd2a3d176f3459c2e9f18cba1bdf78597
[ "MIT" ]
null
null
null
solutions/level0_tasks.py
sksuzuki/How-to-Learn-to-Code
347943dbd2a3d176f3459c2e9f18cba1bdf78597
[ "MIT" ]
3
2019-06-06T21:11:41.000Z
2019-06-06T21:12:37.000Z
solutions/level0_tasks.py
sksuzuki/How-to-Learn-to-Code
347943dbd2a3d176f3459c2e9f18cba1bdf78597
[ "MIT" ]
null
null
null
import numpy as np def square(x): """Square a number""" return x ** 2 def volume_converter(volume, unit): """Convert certain SI volumes to mLs""" conversions = {'mL': 1E-3, 'uL': 1E-6, 'nL': 1E-9, 'kL': 1E3} return round(volume * conversions[unit], 10) def squared_sum(in_list): """Finds the s...
26.6
65
0.629073
65
399
3.8
0.646154
0.048583
0
0
0
0
0
0
0
0
0
0.037855
0.205514
399
14
66
28.5
0.741325
0.240602
0
0
0
0
0.027875
0
0
0
0
0
0
1
0.375
false
0
0.125
0
0.875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2