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
993ea445eb7f4a47f6f9aa018ee57cbb229cee13
652
py
Python
src/splits_creation.py
ValentinMastro/av1_split_encode
27fcec1cfc92701c3fa37b6d6470f18422f2819c
[ "MIT" ]
null
null
null
src/splits_creation.py
ValentinMastro/av1_split_encode
27fcec1cfc92701c3fa37b6d6470f18422f2819c
[ "MIT" ]
1
2022-01-21T06:35:49.000Z
2022-01-25T12:29:37.000Z
src/splits_creation.py
ValentinMastro/av1_split_encode
27fcec1cfc92701c3fa37b6d6470f18422f2819c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from src.splits import Trim_split, Vapoursynth_split def select_split_class(parameters, index, begin, end): if (parameters.splitting_method == "ffmpeg_trim"): return Trim_split(parameters, index, begin, end) elif (parameters.splitting_method == "Vapoursynth"): return Vapoursynth_split(pa...
31.047619
66
0.765337
84
652
5.761905
0.404762
0.082645
0.165289
0.190083
0.396694
0.396694
0.396694
0.235537
0.235537
0
0
0.005217
0.118098
652
20
67
32.6
0.836522
0.032209
0
0
0
0
0.047619
0
0
0
0
0
0
1
0.142857
false
0.071429
0.071429
0
0.428571
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
1
0
0
0
0
0
2
9940a116a01f4e47312e5f4cf38763ccdc7a21a7
974
py
Python
python/binary_search.py
Hamng/python-sources
0cc5a5d9e576440d95f496edcfd921ae37fcd05a
[ "Unlicense" ]
null
null
null
python/binary_search.py
Hamng/python-sources
0cc5a5d9e576440d95f496edcfd921ae37fcd05a
[ "Unlicense" ]
1
2019-02-23T18:30:51.000Z
2019-02-23T18:30:51.000Z
python/binary_search.py
Hamng/python-sources
0cc5a5d9e576440d95f496edcfd921ae37fcd05a
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Dec 14 13:29:10 2020 @author: Ham """ def locate(ar, target): lft = 0 rgt = len(ar) - 1 while lft <= rgt: mid = (lft + rgt) // 2 if ar[mid] == target: return mid if target < ar[mid]: rgt = mid - 1 ...
26.324324
52
0.491786
139
974
3.446043
0.33813
0.167015
0.244259
0.281837
0
0
0
0
0
0
0
0.086957
0.291581
974
36
53
27.055556
0.607246
0.135524
0
0.086957
0
0
0.20403
0
0
0
0
0
0
1
0.043478
false
0
0
0
0.173913
0.391304
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
99411b0cfc335f939ca03f747656b817d94aefbb
784
py
Python
tests/dispatchers/handlers/test_dispatchers_email.py
bitcaster-io/bitcaster
9f1bad96e00e3bc78a22451731e231d30662b166
[ "BSD-3-Clause" ]
4
2018-03-01T10:22:30.000Z
2020-04-04T16:31:11.000Z
tests/dispatchers/handlers/test_dispatchers_email.py
bitcaster-io/bitcaster
9f1bad96e00e3bc78a22451731e231d30662b166
[ "BSD-3-Clause" ]
60
2018-05-20T04:42:32.000Z
2022-02-10T17:03:37.000Z
tests/dispatchers/handlers/test_dispatchers_email.py
bitcaster-io/bitcaster
9f1bad96e00e3bc78a22451731e231d30662b166
[ "BSD-3-Clause" ]
1
2018-08-04T05:06:45.000Z
2018-08-04T05:06:45.000Z
import os import pytest from bitcaster.dispatchers import Email from bitcaster.utils.tests.dispatcher_testcase import DispatcherBaseTest pytestmark = pytest.mark.django_db @pytest.mark.plugin @pytest.mark.skipif_missing('TEST_EMAIL_USER', 'TEST_EMAIL_PASSWORD', 'TEST_EMAIL_RECIPIENT') class TestDispatcherEmail(Dis...
35.636364
93
0.69898
95
784
5.547368
0.421053
0.1537
0.136622
0.182163
0.239089
0
0
0
0
0
0
0.006126
0.167092
784
21
94
37.333333
0.800919
0
0
0
0
0
0.283163
0
0
0
0
0
0
1
0
false
0.125
0.25
0
0.5
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
1
0
0
0
0
0
2
995612c96395164f8373540180613aa3fca1c524
320
py
Python
override.py
Sp-X/PCAP
f34cf9415262178bd6dfd7941512ff695876d3da
[ "MIT" ]
null
null
null
override.py
Sp-X/PCAP
f34cf9415262178bd6dfd7941512ff695876d3da
[ "MIT" ]
null
null
null
override.py
Sp-X/PCAP
f34cf9415262178bd6dfd7941512ff695876d3da
[ "MIT" ]
null
null
null
class Mouse: def __init__(self, name): self.name = name def __str__(self): return "My name is " + self.name class AncientMouse(Mouse): def __str__(self): return "Meum nomen est " + self.name mus = AncientMouse("Caesar") # Prints "Meum nomen est Caesar" print(mus)
21.333333
63
0.6
41
320
4.414634
0.463415
0.176796
0.110497
0.176796
0
0
0
0
0
0
0
0
0.290625
320
14
64
22.857143
0.792952
0.09375
0
0.2
0
0
0.117647
0
0
0
0
0
0
0
null
null
0
0
null
null
0.1
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
1
0
0
0
0
0
0
0
0
2
995ae27b97de25734e48f7daab78eff604dc8d6f
2,812
py
Python
sandbox/globalsettings/models.py
Bastilla123/shop2
b2a7ded5b39d0228fadfdb1c9e1fbd3ab0e4cfba
[ "BSD-3-Clause" ]
null
null
null
sandbox/globalsettings/models.py
Bastilla123/shop2
b2a7ded5b39d0228fadfdb1c9e1fbd3ab0e4cfba
[ "BSD-3-Clause" ]
12
2021-12-01T11:05:47.000Z
2022-03-01T11:06:09.000Z
sandbox/globalsettings/models.py
Bastilla123/shop2
b2a7ded5b39d0228fadfdb1c9e1fbd3ab0e4cfba
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver from django.contrib.auth.models import User #from photo.models import Photo class Paymentmethod(models.Model): code = models.CharField(max_length=10, null=True, blank=True, default="") method = mode...
53.056604
95
0.73293
356
2,812
5.676966
0.264045
0.095002
0.118753
0.166254
0.453736
0.408214
0.383474
0.344879
0.289461
0.289461
0
0.019063
0.141892
2,812
53
96
53.056604
0.818483
0.044808
0
0
0
0
0.019001
0.019001
0
0
0
0
0
1
0.02439
false
0
0.097561
0
0.829268
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
1
0
0
2
9971f366ce29441f55363040d84d470174381052
108
py
Python
main.py
Colk-tech/discoplug
76ae4a71d78d6709e8e393958f3f444cb501759c
[ "MIT" ]
null
null
null
main.py
Colk-tech/discoplug
76ae4a71d78d6709e8e393958f3f444cb501759c
[ "MIT" ]
1
2022-03-24T08:30:10.000Z
2022-03-24T09:15:11.000Z
main.py
Colk-tech/discoplug
76ae4a71d78d6709e8e393958f3f444cb501759c
[ "MIT" ]
null
null
null
from src.discord.bot import DiscordBOT if __name__ == "__main__": bot = DiscordBOT() bot.launch()
15.428571
38
0.675926
13
108
5
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.203704
108
6
39
18
0.755814
0
0
0
0
0
0.074074
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
99892cea2230bd84c374e64c27308a34778a34c4
1,260
py
Python
fluentogram/src/impl/runner.py
Arustinal/fluentogram
c3d7b307b40d520ef1db5e2a0945f3d7fe269b78
[ "MIT" ]
null
null
null
fluentogram/src/impl/runner.py
Arustinal/fluentogram
c3d7b307b40d520ef1db5e2a0945f3d7fe269b78
[ "MIT" ]
null
null
null
fluentogram/src/impl/runner.py
Arustinal/fluentogram
c3d7b307b40d520ef1db5e2a0945f3d7fe269b78
[ "MIT" ]
null
null
null
# coding=utf-8 """ A translator runner by itself """ from typing import TypeVar, List from fluentogram.src.impl import AttribTracer, FluentTranslator TTranslatorRunner = TypeVar("TTranslatorRunner", bound="TranslatorRunner") class TranslatorRunner(AttribTracer): """This is one-shot per Telegram event translator...
32.307692
108
0.659524
139
1,260
5.791367
0.510791
0.074534
0.074534
0
0
0
0
0
0
0
0
0.003093
0.230159
1,260
38
109
33.157895
0.826804
0.171429
0
0.086957
0
0
0.068226
0.036062
0
0
0
0
0
1
0.217391
false
0
0.086957
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
1
0
0
0
0
1
0
0
2
41dcfb43014cc728eb2e70b8bf45de511d7c1657
2,379
py
Python
tests/formatters/chrome_preferences.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
1,253
2015-01-02T13:58:02.000Z
2022-03-31T08:43:39.000Z
tests/formatters/chrome_preferences.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
3,388
2015-01-02T11:17:58.000Z
2022-03-30T10:21:45.000Z
tests/formatters/chrome_preferences.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
376
2015-01-20T07:04:54.000Z
2022-03-04T23:53:00.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests for the Google Chrome Preferences file event formatter.""" import unittest from plaso.formatters import chrome_preferences from tests.formatters import test_lib class ChromePreferencesPrimaryURLFormatterHelperTest( test_lib.EventFormatterTestCase): """T...
33.507042
79
0.730559
235
2,379
7.131915
0.212766
0.137828
0.107399
0.125298
0.779236
0.747017
0.72673
0.685561
0.685561
0.556683
0
0.000992
0.152165
2,379
70
80
33.985714
0.829945
0.135771
0
0.511111
0
0
0.210449
0
0
0
0
0
0.155556
1
0.044444
false
0
0.066667
0
0.155556
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
41e9d47a070d901a1509bec90ba3b4cd92478800
2,023
py
Python
devo/common/dates/dateoperations.py
felixpelaez/python-sdk
13409db8a436d0a7f833242fd289328353373265
[ "MIT" ]
null
null
null
devo/common/dates/dateoperations.py
felixpelaez/python-sdk
13409db8a436d0a7f833242fd289328353373265
[ "MIT" ]
null
null
null
devo/common/dates/dateoperations.py
felixpelaez/python-sdk
13409db8a436d0a7f833242fd289328353373265
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Utils for date operations.""" from datetime import datetime as dt, timedelta from .dateutils import DateUtils class DateOperations(object): """ This class is a collection of allowed operations on date parsing """ @staticmethod def month(): """ Return mil...
21.98913
76
0.539298
212
2,023
5.099057
0.301887
0.122109
0.083256
0.074006
0.300648
0.224792
0.224792
0.224792
0.174838
0.109158
0
0.083462
0.360356
2,023
91
77
22.230769
0.751932
0.331191
0
0.294118
0
0
0
0
0
0
0
0
0
1
0.294118
false
0
0.058824
0
0.676471
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
510e62cbba52bcc8b070eefec8577dd8334f7a8f
245
py
Python
pylings/ex_for_beginner/reverse_integer.py
magiskboy/pylings
6639107925b3cb8710403c4381027be894a043c2
[ "MIT" ]
null
null
null
pylings/ex_for_beginner/reverse_integer.py
magiskboy/pylings
6639107925b3cb8710403c4381027be894a043c2
[ "MIT" ]
null
null
null
pylings/ex_for_beginner/reverse_integer.py
magiskboy/pylings
6639107925b3cb8710403c4381027be894a043c2
[ "MIT" ]
null
null
null
""" DESCRIPTION: Write a code to extract each digit from an integer, in the reverse order EXAMPLE Input: n = 1234 Output: "4 3 2 1" """ def main(n: int) -> str: ret_val: str = "" # Enter the code below return ret_val
11.136364
72
0.612245
39
245
3.794872
0.846154
0.081081
0
0
0
0
0
0
0
0
0
0.045977
0.289796
245
21
73
11.666667
0.804598
0.657143
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
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
512231868289dfe82b8fbe5a8453ba5fa10be0bc
248
py
Python
baekjoon/rust/effective_hacking_input_gen.py
yskang/AlgorithmPracticeWithPython
f7129bd1924a7961489198f0ee052d2cd1e9cf40
[ "MIT" ]
null
null
null
baekjoon/rust/effective_hacking_input_gen.py
yskang/AlgorithmPracticeWithPython
f7129bd1924a7961489198f0ee052d2cd1e9cf40
[ "MIT" ]
1
2019-11-04T06:44:04.000Z
2019-11-04T06:46:55.000Z
baekjoon/rust/effective_hacking_input_gen.py
yskang/AlgorithmPractice
31b76e38b4c2f1e3e29fb029587662a745437912
[ "MIT" ]
null
null
null
from random import randint n = randint(1, 10) m = randint(1, 10) print(f'{n} {m}') for _ in range(m): while True: a = randint(1, n) b = randint(1, n) if a != b: print(f'{a} {b}') break
16.533333
29
0.447581
38
248
2.894737
0.5
0.290909
0.181818
0
0
0
0
0
0
0
0
0.053333
0.395161
248
15
30
16.533333
0.68
0
0
0
0
0
0.056225
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.181818
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
512f5e2f4a0a78538eba5d3573c70d5097d57776
6,252
py
Python
Cats vs Dogs Classification/cats_vs_dogs.py
DhruvAwasthi/ModelsCollection
80ab3ada2d5cb23cce7a3db23be1ec1dc14d8733
[ "Apache-2.0" ]
2
2020-10-22T16:52:56.000Z
2021-10-03T15:57:14.000Z
Cats vs Dogs Classification/cats_vs_dogs.py
DhruvAwasthi/ModelsCollection
80ab3ada2d5cb23cce7a3db23be1ec1dc14d8733
[ "Apache-2.0" ]
null
null
null
Cats vs Dogs Classification/cats_vs_dogs.py
DhruvAwasthi/ModelsCollection
80ab3ada2d5cb23cce7a3db23be1ec1dc14d8733
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Untitled0.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/13osyIHB9WZp5yZL8td8zLGJ7vGZNqywq """ import os import zipfile import random import tensorflow as tf from tensorflow.keras.optimizers import RMSprop from tensorf...
34.351648
118
0.630678
796
6,252
4.816583
0.272613
0.03469
0.035472
0.053208
0.356286
0.311163
0.226656
0.181012
0.181012
0.140845
0
0.027376
0.193698
6,252
182
119
34.351648
0.733188
0.100448
0
0.234848
1
0.007576
0.179662
0.093049
0
0
0
0
0
0
null
null
0.007576
0.090909
null
null
0.075758
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
1
0
0
0
0
0
0
0
0
2
5137b889372eb98218355aa6e747192f6fb5c0b2
111
py
Python
iotest.py
erichmatt/pyboard
f5cbda2bd5036c643afe60bd72332958c3a4b387
[ "MIT" ]
null
null
null
iotest.py
erichmatt/pyboard
f5cbda2bd5036c643afe60bd72332958c3a4b387
[ "MIT" ]
null
null
null
iotest.py
erichmatt/pyboard
f5cbda2bd5036c643afe60bd72332958c3a4b387
[ "MIT" ]
null
null
null
import time f = open('testlist.csv','w') for x in range(100): f.write(str(time.clock())) f.write("\n")
18.5
30
0.594595
20
111
3.3
0.8
0.181818
0
0
0
0
0
0
0
0
0
0.032609
0.171171
111
5
31
22.2
0.684783
0
0
0
0
0
0.135135
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
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
513e466953e9624c26fa627e365787c9d6c87190
465
py
Python
projects/balancer.py
donuk/pyboard-robotics
c8cb816bc0a3f0bb30977b184cee97e3e85b1c3f
[ "Apache-2.0" ]
null
null
null
projects/balancer.py
donuk/pyboard-robotics
c8cb816bc0a3f0bb30977b184cee97e3e85b1c3f
[ "Apache-2.0" ]
1
2019-12-27T15:49:23.000Z
2019-12-27T15:49:23.000Z
projects/balancer.py
donuk/pyboard-robotics
c8cb816bc0a3f0bb30977b184cee97e3e85b1c3f
[ "Apache-2.0" ]
null
null
null
# main.py -- put your code here! from lib.servo import servo1, stop_servos_before_finishing from lib.accelerometer import accelerometer turn_left = True # This will stop the servos if anything goes wrong with stop_servos_before_finishing(): # Loop forever while True: x = accelerometer.x() ...
24.473684
59
0.608602
57
465
4.842105
0.631579
0.050725
0.115942
0.181159
0
0
0
0
0
0
0
0.018927
0.31828
465
18
60
25.833333
0.851735
0.197849
0
0
0
0
0
0
0
0
0
0.055556
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
1
0
0
0
0
0
0
0
0
0
0
2
513f7a9c349e22fc27386406afdcb4c854e324d9
1,217
py
Python
testing/tests/001-main/003-self/200-json/003-repositories.py
fekblom/critic
a6b60c9053e13d4c878d50531860d7389568626d
[ "Apache-2.0" ]
null
null
null
testing/tests/001-main/003-self/200-json/003-repositories.py
fekblom/critic
a6b60c9053e13d4c878d50531860d7389568626d
[ "Apache-2.0" ]
null
null
null
testing/tests/001-main/003-self/200-json/003-repositories.py
fekblom/critic
a6b60c9053e13d4c878d50531860d7389568626d
[ "Apache-2.0" ]
null
null
null
# @dependency 001-main/002-createrepository.py frontend.json( "repositories", expect={ "repositories": [critic_json] }) frontend.json( "repositories/1", expect=critic_json) frontend.json( "repositories", params={ "name": "critic" }, expect=critic_json) frontend.json( "repositories/47...
29.682927
104
0.614626
116
1,217
6.353448
0.327586
0.113976
0.227951
0.089552
0.654003
0.548168
0.43962
0.317503
0.189959
0.189959
0
0.02897
0.234182
1,217
40
105
30.425
0.761803
0.036154
0
0.65625
0
0
0.412468
0
0
0
0
0
0
1
0
true
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
1
0
0
0
0
0
0
2
515992ed5a7c31c979b341f8c384d04b01621296
129
py
Python
src/beginner/1151.py
henrikhorbovyi/URI
6df34d87bb7bbbf760ab774e01da87ad669acae9
[ "Apache-2.0" ]
1
2018-07-04T01:53:29.000Z
2018-07-04T01:53:29.000Z
src/beginner/1151.py
henrikhorbovyi/URI
6df34d87bb7bbbf760ab774e01da87ad669acae9
[ "Apache-2.0" ]
null
null
null
src/beginner/1151.py
henrikhorbovyi/URI
6df34d87bb7bbbf760ab774e01da87ad669acae9
[ "Apache-2.0" ]
null
null
null
N = int(input()) a,b = 1,1 print(0,end=' ') for i in range(1,N-1): if i != N: print(a,end=' ') a,b = b,a+b print(a,end='\n')
16.125
22
0.496124
32
129
2
0.4375
0.09375
0.28125
0
0
0
0
0
0
0
0
0.048544
0.20155
129
8
23
16.125
0.572816
0
0
0
0
0
0.030769
0
0
0
0
0
0
1
0
false
0
0
0
0
0.375
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
515cd796f7e34f68f9a7c813d0344e52bda689a0
826
py
Python
playground/optimization/ott2butKAMA2-serenity/custom_indicators/ewo.py
ysdede/jesse_strategies
ade9f4ba42cec11207c766d267b9d8feb8bce648
[ "CC0-1.0" ]
38
2021-09-18T15:33:28.000Z
2022-02-21T17:29:08.000Z
fractional/custom_indicators/ewo.py
ysdede/jesse_strategies
ade9f4ba42cec11207c766d267b9d8feb8bce648
[ "CC0-1.0" ]
4
2022-01-02T14:46:12.000Z
2022-02-16T18:39:41.000Z
fractional/custom_indicators/ewo.py
ysdede/jesse_strategies
ade9f4ba42cec11207c766d267b9d8feb8bce648
[ "CC0-1.0" ]
11
2021-10-19T06:21:43.000Z
2022-02-21T17:29:10.000Z
import numpy as np import talib from typing import Union from jesse.helpers import get_candle_source, slice_candles def ewo(candles: np.ndarray, short_period: int = 5, long_period: int = 35, source_type="close", sequential=False) -> \ Union[float, np.ndarray]: """ Elliott Wave Oscillator :param candles: ...
29.5
118
0.697337
111
826
5.054054
0.405405
0.064171
0.053476
0.067736
0
0
0
0
0
0
0
0.01059
0.199758
826
28
119
29.5
0.838124
0.292978
0
0
0
0
0.009174
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
51638f725fbcd2002829a1c5d2ecadbde1f14bc4
588
py
Python
class and objects/abstract calss inherit from another abstract class.py
ZephyrAveryl777/Python-Programs
26de85c31af28382d406d27d54186b966a7b1bfc
[ "MIT" ]
6
2020-08-13T11:49:29.000Z
2021-03-07T05:46:17.000Z
class and objects/abstract calss inherit from another abstract class.py
ZephyrAveryl777/Python-Programs
26de85c31af28382d406d27d54186b966a7b1bfc
[ "MIT" ]
null
null
null
class and objects/abstract calss inherit from another abstract class.py
ZephyrAveryl777/Python-Programs
26de85c31af28382d406d27d54186b966a7b1bfc
[ "MIT" ]
1
2021-04-24T06:12:48.000Z
2021-04-24T06:12:48.000Z
''' A class that is derived from an abstract class cannot be instantiated unless all of its abstract methods are overridden. ''' from abc import ABC,abstractmethod print(__doc__,end="") print('\n'+'-'*25+'Abstract class inherit from another abstract class'+'-'*35) class A(ABC): def __init__(self,username): ...
20.275862
79
0.678571
83
588
4.662651
0.506024
0.100775
0.056848
0
0
0
0
0
0
0
0
0.020964
0.188776
588
29
80
20.275862
0.790356
0.205782
0
0.380952
0
0
0.157407
0
0
0
0
0
0
1
0.238095
false
0.095238
0.047619
0.047619
0.47619
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
516646dce18d825a2d1a4a1379f922eb2f8854f9
369
py
Python
scripts/8-pacotes-modulos-python/ex107/teste.py
dev-alissonalves/python-codes
376a5e52cebcf9e5102f55c6aa44745aaef50add
[ "MIT" ]
1
2021-07-05T10:46:25.000Z
2021-07-05T10:46:25.000Z
scripts/8-pacotes-modulos-python/ex107/teste.py
dev-alissonalves/python-codes
376a5e52cebcf9e5102f55c6aa44745aaef50add
[ "MIT" ]
null
null
null
scripts/8-pacotes-modulos-python/ex107/teste.py
dev-alissonalves/python-codes
376a5e52cebcf9e5102f55c6aa44745aaef50add
[ "MIT" ]
1
2021-07-05T15:41:08.000Z
2021-07-05T15:41:08.000Z
import moeda p = float(input("Informe um valor qualquer: ")) print("\n") print("-=-=-=-=- INÍCIO =-=-=-=") print(f"A metade do valor {p:.2f} é: {moeda.metade(p)}") print(f"O dobro do valor {p:.2f} é: {moeda.dobro(p)}") print(f"Aumentando 10%, temos: {moeda.aumentar(p, 10)}") print(f"Diminuindo 10%, temos: {moeda.dim...
24.6
56
0.588076
57
369
3.807018
0.473684
0.110599
0.073733
0.092166
0.147465
0.147465
0
0
0
0
0
0.030864
0.121951
369
14
57
26.357143
0.638889
0
0
0
0
0
0.695652
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.777778
0
0
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
1
0
2
5a9d312c9847bdaf1084e0b7133c41b344493da3
5,568
py
Python
mvp/djfulcrum/filters/run_filters.py
venicegeo/fulcrum_demo
0f160655ac1eede1c5d537f688b00d7fe1d08fa9
[ "Apache-2.0" ]
null
null
null
mvp/djfulcrum/filters/run_filters.py
venicegeo/fulcrum_demo
0f160655ac1eede1c5d537f688b00d7fe1d08fa9
[ "Apache-2.0" ]
null
null
null
mvp/djfulcrum/filters/run_filters.py
venicegeo/fulcrum_demo
0f160655ac1eede1c5d537f688b00d7fe1d08fa9
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import os from importlib import import_module def filter_features(features, filter_name=None, run_once=False): """ Args: features: A geojson Feature Collection filter_name: The name of a filter to use if None all active filters are used (default:None) ...
46.016529
108
0.541128
576
5,568
5.038194
0.255208
0.049276
0.046864
0.036182
0.287388
0.201585
0.160924
0.044108
0.044108
0.044108
0
0.001174
0.38829
5,568
120
109
46.4
0.850851
0
0
0.270833
0
0
0.129378
0
0
0
0
0
0
0
null
null
0.052083
0.15625
null
null
0.114583
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
5aa4948852536ca4f40cb2992519749d10b4cc3f
18,304
py
Python
src/intensio_obfuscator/core/obfuscation/intensio_delete.py
bbhunter/Intensio-Obfuscator
f66a22b50c19793edac673cfd7dc319405205c39
[ "MIT" ]
553
2019-06-08T17:47:41.000Z
2022-03-29T03:12:11.000Z
src/intensio_obfuscator/core/obfuscation/intensio_delete.py
bbhunter/Intensio-Obfuscator
f66a22b50c19793edac673cfd7dc319405205c39
[ "MIT" ]
69
2019-06-08T13:25:47.000Z
2022-02-15T08:34:07.000Z
src/intensio_obfuscator/core/obfuscation/intensio_delete.py
bbhunter/Intensio-Obfuscator
f66a22b50c19793edac673cfd7dc319405205c39
[ "MIT" ]
130
2019-06-08T18:44:13.000Z
2022-03-27T01:00:52.000Z
# -*- coding: utf-8 -*- # https://github.com/Hnfull/Intensio-Obfuscator #---------------------------------------------------------- [Lib] -----------------------------------------------------------# import re import fileinput import os import sys from progress.bar import Bar try: from intensio_obfuscator.core.u...
48.941176
126
0.394231
1,107
18,304
6.497742
0.151762
0.025302
0.036146
0.033366
0.670513
0.615877
0.582233
0.546365
0.546365
0.477965
0
0.007868
0.527808
18,304
373
127
49.072386
0.824367
0.02901
0
0.775701
0
0
0.03768
0
0
0
0
0
0
1
0.012461
false
0.003115
0.021807
0
0.05919
0.043614
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5ab3d12f2d0c6dadc8b931d7354407aa96d8ba44
793
py
Python
test_pascals_triangle.py
jaebradley/leetcode.py
64634cc7d0e975ddd163f35acb18cc92960b8eb5
[ "MIT" ]
null
null
null
test_pascals_triangle.py
jaebradley/leetcode.py
64634cc7d0e975ddd163f35acb18cc92960b8eb5
[ "MIT" ]
2
2019-11-13T19:55:49.000Z
2019-11-13T19:55:57.000Z
test_pascals_triangle.py
jaebradley/leetcode.py
64634cc7d0e975ddd163f35acb18cc92960b8eb5
[ "MIT" ]
null
null
null
from unittest import TestCase from pascals_triangle import Solution class TestSolution(TestCase): def setUp(self) -> None: self.solution = Solution() def test_generate(self): self.assertListEqual( [[1]], self.solution.generate(1) ) self.assertListEqual...
23.323529
68
0.474149
88
793
4.25
0.25
0.074866
0.05615
0.280749
0.280749
0.221925
0.221925
0.221925
0.15508
0.15508
0
0.07984
0.368222
793
33
69
24.030303
0.666667
0
0
0.192308
1
0
0
0
0
0
0
0
0.192308
1
0.076923
false
0
0.076923
0
0.192308
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
5abe0804e10d04a719d8730679fd30f1b996a4d5
289
py
Python
app/__init__.py
tirgei/stack-overflow-lite-api
34a3ca2a63b2acdfa5bdbeda556417ae7ccc5b28
[ "MIT" ]
1
2018-12-17T08:35:02.000Z
2018-12-17T08:35:02.000Z
app/__init__.py
tirgei/stack-overflow-lite-api
34a3ca2a63b2acdfa5bdbeda556417ae7ccc5b28
[ "MIT" ]
1
2018-12-19T15:44:18.000Z
2018-12-19T15:44:18.000Z
app/__init__.py
tirgei/stack-overflow-lite-api
34a3ca2a63b2acdfa5bdbeda556417ae7ccc5b28
[ "MIT" ]
null
null
null
import os from flask import Flask from instance.config import app_config from app.api.v1.views.user_views import v1 as users_v1 def create_app(config_name): app = Flask(__name__) app.config.from_object(app_config[config_name]) app.register_blueprint(users_v1) return app
24.083333
54
0.782007
47
289
4.510638
0.425532
0.169811
0.122642
0
0
0
0
0
0
0
0
0.01626
0.148789
289
12
55
24.083333
0.845528
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.444444
0
0.666667
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
5abe73158155f231abe8be65125222d9b38f4f5b
72
py
Python
ashd/pipelinev2/global_vals.py
johnnygreco/asas-sn-hd
1baf7ff6c0cb7c65caf7b2e07ed67b13049c92d9
[ "MIT" ]
null
null
null
ashd/pipelinev2/global_vals.py
johnnygreco/asas-sn-hd
1baf7ff6c0cb7c65caf7b2e07ed67b13049c92d9
[ "MIT" ]
null
null
null
ashd/pipelinev2/global_vals.py
johnnygreco/asas-sn-hd
1baf7ff6c0cb7c65caf7b2e07ed67b13049c92d9
[ "MIT" ]
null
null
null
# note that these are default variables MAX_TRIES = 10 MAX_FINDINGS = 3
18
39
0.777778
12
72
4.5
0.916667
0
0
0
0
0
0
0
0
0
0
0.050847
0.180556
72
4
40
18
0.864407
0.513889
0
0
0
0
0
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
5acbcb9e5fd66f410d8f88ab087aa7d19eba06e5
881
py
Python
setup.py
williamfzc/devcube
71bc293161d489ca47a8c3deebfdc52e8933f82f
[ "MIT" ]
4
2020-08-07T07:52:10.000Z
2020-08-07T16:32:03.000Z
setup.py
williamfzc/devcube
71bc293161d489ca47a8c3deebfdc52e8933f82f
[ "MIT" ]
null
null
null
setup.py
williamfzc/devcube
71bc293161d489ca47a8c3deebfdc52e8933f82f
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from devcube import ( __AUTHOR__, __AUTHOR_EMAIL__, __VERSION__, __PROJECT_NAME__, ) with open("requirements.txt", encoding="utf-8") as f: requirements = [ each.strip() for each in f.readlines() if not each.startswith("git+") ] setup( nam...
27.53125
77
0.653802
94
881
5.648936
0.521277
0.178908
0.235405
0.195857
0
0
0
0
0
0
0
0.014535
0.219069
881
31
78
28.419355
0.757267
0
0
0
0
0
0.280363
0
0
0
0
0
0
1
0
false
0
0.068966
0
0.068966
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5ae221e0b2b897840f866c40878a6fd9835def7f
3,150
py
Python
asyncapi_schema_pydantic/v2_3_0/message_bindings.py
albertnadal/asyncapi-schema-pydantic
83966bdc11f2d465a10b52cec5ff79d18fa6f5fe
[ "MIT" ]
null
null
null
asyncapi_schema_pydantic/v2_3_0/message_bindings.py
albertnadal/asyncapi-schema-pydantic
83966bdc11f2d465a10b52cec5ff79d18fa6f5fe
[ "MIT" ]
null
null
null
asyncapi_schema_pydantic/v2_3_0/message_bindings.py
albertnadal/asyncapi-schema-pydantic
83966bdc11f2d465a10b52cec5ff79d18fa6f5fe
[ "MIT" ]
null
null
null
from typing import Optional from pydantic import BaseModel, Extra from .http_bindings import HttpMessageBinding from .web_sockets_bindings import WebSocketsMessageBinding from .kafka_bindings import KafkaMessageBinding from .anypoint_mq_bindings import AnypointMqMessageBinding from .amqp_bindings import AmqpMessageBi...
27.155172
85
0.724127
315
3,150
7.177778
0.228571
0.127377
0.150376
0.233083
0.274215
0.274215
0.070765
0
0
0
0
0.005547
0.19873
3,150
115
86
27.391304
0.890254
0.01873
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.487179
0
0.974359
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
5aefdc6a6208c608443af8d9fd5961f34de89ce8
796
py
Python
dltb/tool/tests/test_detector.py
CogSciUOS/DeepLearningToolbox
bf07578b9486d8c48e25df357bc4b9963b513b46
[ "MIT" ]
2
2019-09-01T01:38:59.000Z
2020-02-13T19:25:51.000Z
dltb/tool/tests/test_detector.py
CogSciUOS/DeepLearningToolbox
bf07578b9486d8c48e25df357bc4b9963b513b46
[ "MIT" ]
null
null
null
dltb/tool/tests/test_detector.py
CogSciUOS/DeepLearningToolbox
bf07578b9486d8c48e25df357bc4b9963b513b46
[ "MIT" ]
null
null
null
from unittest import TestCase from dltb.tool import Tool from dltb.tool.detector import Detections from dltb.base.image import Image class TestDetector(TestCase): def setUp(self): self.detector = Tool['haar'] self.detector.prepare() # self.image = imread('examples/reservoir-dogs.jpg') ...
29.481481
65
0.679648
92
796
5.847826
0.423913
0.104089
0.04461
0.089219
0
0
0
0
0
0
0
0.011111
0.208543
796
26
66
30.615385
0.842857
0.241206
0
0
0
0
0.051839
0.045151
0
0
0
0
0.133333
1
0.2
false
0.066667
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
1
0
0
1
0
0
2
5af814eaaf5e5ef51807162ca3f9fb884b962ee7
813
py
Python
cpp/src/examples/pbe_keyset.py
nawien-sharma/keyczar
c55563bbd70f4b6fefc7444e296aab9894475f9a
[ "Apache-2.0" ]
null
null
null
cpp/src/examples/pbe_keyset.py
nawien-sharma/keyczar
c55563bbd70f4b6fefc7444e296aab9894475f9a
[ "Apache-2.0" ]
null
null
null
cpp/src/examples/pbe_keyset.py
nawien-sharma/keyczar
c55563bbd70f4b6fefc7444e296aab9894475f9a
[ "Apache-2.0" ]
1
2021-04-13T05:05:30.000Z
2021-04-13T05:05:30.000Z
# Encrypts and decrypts a short message from a PBE encrypted JSON key set. # # Example: python pbe_keyset.py ~/my-pbe-json-aes-encrypted password # import os import sys import keyczar def Encrypt(crypted_path, password): if not os.path.exists(crypted_path): return input = 'Secret message' reader...
26.225806
93
0.694957
107
813
5.168224
0.523364
0.059675
0.036166
0
0
0
0
0
0
0
0
0.006154
0.200492
813
30
94
27.1
0.844615
0.170972
0
0
0
0
0.156951
0
0
0
0
0
0.052632
0
null
null
0.157895
0.157895
null
null
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
5afa767a6c14464cc2c5b0783f37229c88180e39
298
py
Python
events/views.py
austinprog/hsvdotbeer
2979a2b0b105b85d0865c6771bfcb7debb98b3e8
[ "Apache-2.0" ]
null
null
null
events/views.py
austinprog/hsvdotbeer
2979a2b0b105b85d0865c6771bfcb7debb98b3e8
[ "Apache-2.0" ]
6
2020-08-03T09:50:01.000Z
2021-06-10T18:17:28.000Z
events/views.py
austinprog/hsvdotbeer
2979a2b0b105b85d0865c6771bfcb7debb98b3e8
[ "Apache-2.0" ]
null
null
null
from rest_framework.viewsets import ModelViewSet from . import models from . import serializers class EventViewSet(ModelViewSet): serializer_class = serializers.EventSerializer queryset = models.Event.objects.select_related('venue').order_by( 'start_time', 'venue__name', )
22.923077
69
0.758389
32
298
6.84375
0.71875
0.091324
0
0
0
0
0
0
0
0
0
0
0.157718
298
12
70
24.833333
0.87251
0
0
0
0
0
0.087248
0
0
0
0
0
0
1
0
false
0
0.375
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
850c52ae07fd7b9cb26557ccb87770e03a7ec740
1,079
py
Python
src/modules/dropout.py
HuicheolMoon/P4_ModelOptimization
63a1615068de16e75514be0af4a317ab44ab9eb3
[ "MIT" ]
null
null
null
src/modules/dropout.py
HuicheolMoon/P4_ModelOptimization
63a1615068de16e75514be0af4a317ab44ab9eb3
[ "MIT" ]
null
null
null
src/modules/dropout.py
HuicheolMoon/P4_ModelOptimization
63a1615068de16e75514be0af4a317ab44ab9eb3
[ "MIT" ]
null
null
null
# Dropout Module import torch from torch import nn as nn from src.modules.base_generator import GeneratorAbstract class Dropout(nn.Module): """Dropout module.""" def __init__(self, prob: int =0.5): """ Args: prob: dropout probability """ super().__init__() ...
23.977778
56
0.567192
120
1,079
4.891667
0.391667
0.06644
0.037479
0
0
0
0
0
0
0
0
0.006667
0.304912
1,079
44
57
24.522727
0.776
0.137164
0
0
0
0
0
0
0
0
0
0
0
1
0.208333
false
0
0.125
0
0.541667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
8511df590273fd306cf7ac94104ea0f8adb88c19
410
py
Python
tutorial/list.py
Dannyps/fpai-datamining
98d18aa697f7a13ba790423eba6e6c6b71a32a56
[ "Unlicense" ]
null
null
null
tutorial/list.py
Dannyps/fpai-datamining
98d18aa697f7a13ba790423eba6e6c6b71a32a56
[ "Unlicense" ]
null
null
null
tutorial/list.py
Dannyps/fpai-datamining
98d18aa697f7a13ba790423eba6e6c6b71a32a56
[ "Unlicense" ]
null
null
null
test = [11.0, "Alice has a cat", 12, 4, "5"] print("len(test) = " + str(len(test))) print("test[1] = " + str(test[1])) print("test[3:6] = " + str(test[3:6])) print("test[1:6:2] = " + str(test[1:6:2])) print("test[:6] = " + str(test[:6])) print("test[-2] = " + str(test[-2])) test.append(121) test2 = test + [1, 2, 3...
19.52381
44
0.531707
74
410
2.945946
0.297297
0.206422
0.091743
0.06422
0
0
0
0
0
0
0
0.113703
0.163415
410
20
45
20.5
0.521866
0
0
0
0
0
0.25122
0
0
0
0
0
0
1
0
false
0
0
0
0
0.615385
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
1
0
2
851427682ec24633568e4a0bcaca14c5a15c7093
7,023
py
Python
tests/test.py
YegorDB/CTHPoker
3e49e85ca00c47589f7ccc8b47d68caa4c1ce649
[ "Apache-2.0" ]
null
null
null
tests/test.py
YegorDB/CTHPoker
3e49e85ca00c47589f7ccc8b47d68caa4c1ce649
[ "Apache-2.0" ]
null
null
null
tests/test.py
YegorDB/CTHPoker
3e49e85ca00c47589f7ccc8b47d68caa4c1ce649
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Yegor Bitensky # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, ...
57.097561
96
0.477431
1,099
7,023
3.044586
0.166515
0.026898
0.032875
0.014345
0.222056
0.127316
0.067543
0.046623
0.046623
0.046623
0
0.314176
0.256728
7,023
122
97
57.565574
0.32682
0.078457
0
0.061224
0
0
0.13744
0
0
0
0
0
0.020408
1
0.040816
false
0
0.020408
0.010204
0.122449
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
851639da53c56a4337a1ff09a45417f2f39ee42c
61
py
Python
cbbuild-manifest/version.py
ceejatec/python-couchbase-commons
ad74fc3de98eeaadf0ea38da86639d07f92b0945
[ "Apache-2.0" ]
null
null
null
cbbuild-manifest/version.py
ceejatec/python-couchbase-commons
ad74fc3de98eeaadf0ea38da86639d07f92b0945
[ "Apache-2.0" ]
null
null
null
cbbuild-manifest/version.py
ceejatec/python-couchbase-commons
ad74fc3de98eeaadf0ea38da86639d07f92b0945
[ "Apache-2.0" ]
1
2020-02-18T08:10:51.000Z
2020-02-18T08:10:51.000Z
# Update this file for version changes __version__ = '0.5.3'
20.333333
38
0.737705
10
61
4.1
0.9
0
0
0
0
0
0
0
0
0
0
0.058824
0.163934
61
2
39
30.5
0.745098
0.590164
0
0
0
0
0.217391
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
851e3aedc187910bb5e2a11f8eaab604baa8b396
634
py
Python
dimensigon/network/auth.py
dimensigon/dimensigon
079d7c91a66e10f13510d89844fbadb27e005b40
[ "Apache-2.0" ]
2
2020-11-20T10:27:14.000Z
2021-02-21T13:57:56.000Z
dimensigon/network/auth.py
dimensigon/dimensigon
079d7c91a66e10f13510d89844fbadb27e005b40
[ "Apache-2.0" ]
null
null
null
dimensigon/network/auth.py
dimensigon/dimensigon
079d7c91a66e10f13510d89844fbadb27e005b40
[ "Apache-2.0" ]
null
null
null
from requests.auth import AuthBase class HTTPBearerAuth(AuthBase): def __init__(self, token): self.token = token def __eq__(self, other): return self.token == getattr(other, 'token', None) def __ne__(self, other): return not self == other def __call__(self, r): if ha...
22.642857
58
0.578864
74
634
4.689189
0.418919
0.103746
0.086455
0.103746
0.138329
0
0
0
0
0
0
0
0.299685
634
27
59
23.481481
0.781532
0
0
0
0
0
0.067823
0
0
0
0
0
0
1
0.3
false
0
0.05
0.2
0.65
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
85246a13fd70ce31f59ef368d91ed8a4a6677db5
236
py
Python
pygame/song with pygame.py
vitorhugo1207/SomethingsInPython
505a7e906cd391a9c6f820900c8ac8b7f456a5dc
[ "MIT" ]
null
null
null
pygame/song with pygame.py
vitorhugo1207/SomethingsInPython
505a7e906cd391a9c6f820900c8ac8b7f456a5dc
[ "MIT" ]
null
null
null
pygame/song with pygame.py
vitorhugo1207/SomethingsInPython
505a7e906cd391a9c6f820900c8ac8b7f456a5dc
[ "MIT" ]
null
null
null
import pygame text = input('Nome da musica: ') pygame.init() pygame.mixer.music.load(text) pygame.mixer.music.play() print('S para parar.') text2 = input('-> ') if text2 == 'S': pygame.mixer.stop() else: pygame.event.wait()
14.75
32
0.652542
34
236
4.529412
0.647059
0.214286
0.207792
0
0
0
0
0
0
0
0
0.01005
0.15678
236
15
33
15.733333
0.763819
0
0
0
0
0
0.139831
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.090909
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
8529f954b36e705a8589749f2d20932ba107fc8d
1,351
py
Python
pfrf_example/pfrf_example/controller/person_controller.py
problemfighter/pfms-example
97e1ea951a3ae34b4df88da791e00857b5c433e9
[ "Apache-2.0" ]
2
2021-07-16T21:34:26.000Z
2021-07-16T21:35:11.000Z
pfrf_example/pfrf_example/controller/person_controller.py
problemfighter/pfms-example
97e1ea951a3ae34b4df88da791e00857b5c433e9
[ "Apache-2.0" ]
null
null
null
pfrf_example/pfrf_example/controller/person_controller.py
problemfighter/pfms-example
97e1ea951a3ae34b4df88da791e00857b5c433e9
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint from pfms.swagger.pfms_swagger_decorator import pfms_create, pfms_details, pfms_pagination_sort_search_list, pfms_restore, pfms_delete from pfrf_example.dto.person_dto import PersonCreateDto, PersonDetailsDto, PersonUpdateDto from pfrf_example.service.person_service import PersonService pe...
30.022222
134
0.783864
170
1,351
5.952941
0.252941
0.102767
0.124506
0.050395
0.227273
0.063241
0
0
0
0
0
0.000808
0.083642
1,351
44
135
30.704545
0.81664
0
0
0
0
0
0.091044
0
0
0
0
0
0
1
0.2
false
0
0.133333
0.2
0.533333
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
1
1
0
0
2
51b0a533b3ef7b0274f3b039ee56940b42536735
506
py
Python
tests/test_oscillator.py
borismarin/org.geppetto.model.apigen
ed099ac64301de11570779e5e294b7a210a0e0b2
[ "MIT" ]
null
null
null
tests/test_oscillator.py
borismarin/org.geppetto.model.apigen
ed099ac64301de11570779e5e294b7a210a0e0b2
[ "MIT" ]
null
null
null
tests/test_oscillator.py
borismarin/org.geppetto.model.apigen
ed099ac64301de11570779e5e294b7a210a0e0b2
[ "MIT" ]
null
null
null
from gpt_oscillator import oscillator_lib as lib def test_dynamic_types(): assert(type(lib.oscillator) is type) osc = lib.oscillator("o_id", "o_name") assert(osc.id == 'o_id') def test_default_ids(): o2 = lib.oscillator() o3 = lib.oscillator() assert(o2.id == 'oscillator_0') assert(o3.id...
24.095238
58
0.681818
69
506
4.811594
0.42029
0.195783
0.13253
0.126506
0
0
0
0
0
0
0
0.014423
0.177866
506
20
59
25.3
0.783654
0.009881
0
0
0
0
0.076152
0
0
0
0
0
0.428571
1
0.214286
false
0
0.071429
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
0
0
0
0
0
0
0
2
51b652b8422d3f9d57c3800b5be4e37b3c91f691
2,992
py
Python
src/web_encoder/exceptions.py
cesarmerjan/web_encoder
7a1bbde6a1c1aceede433e105175f20d17629313
[ "MIT" ]
null
null
null
src/web_encoder/exceptions.py
cesarmerjan/web_encoder
7a1bbde6a1c1aceede433e105175f20d17629313
[ "MIT" ]
null
null
null
src/web_encoder/exceptions.py
cesarmerjan/web_encoder
7a1bbde6a1c1aceede433e105175f20d17629313
[ "MIT" ]
null
null
null
class WebEncoderException(Exception): pass class InvalidEncodingErrors(WebEncoderException): """Exception raised for errors in the input value of encoding_errors attribute of WebEncoder class. Args: message: explanation of the error """ def __init__(self, message=None): self.mess...
29.333333
114
0.688168
354
2,992
5.584746
0.175141
0.133536
0.121396
0.149722
0.726353
0.688417
0.673748
0.62519
0.62519
0.62519
0
0
0.231618
2,992
101
115
29.623762
0.859939
0.365307
0
0.432432
0
0
0.18187
0
0
0
0
0
0
1
0.216216
false
0.027027
0
0
0.459459
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
51be679d682fbf8eb496c5c3820e7d6843d898a5
380
py
Python
apps/reputation/serializers.py
macdaliot/exist
65244f79c602c5a00c3ea6a7eef512ce9c21e60a
[ "MIT" ]
159
2019-03-15T10:46:19.000Z
2022-03-12T09:19:31.000Z
apps/reputation/serializers.py
macdaliot/exist
65244f79c602c5a00c3ea6a7eef512ce9c21e60a
[ "MIT" ]
6
2019-03-16T12:51:24.000Z
2020-07-09T02:25:42.000Z
apps/reputation/serializers.py
macdaliot/exist
65244f79c602c5a00c3ea6a7eef512ce9c21e60a
[ "MIT" ]
36
2019-03-16T10:37:14.000Z
2021-11-14T21:04:18.000Z
from rest_framework import serializers from .models import blacklist class blSerializer(serializers.ModelSerializer): source = serializers.CharField(source='get_source_display') class Meta: model = blacklist fields = ('__all__') class sourceSerializer(serializers.ModelSerializer): class Me...
27.142857
63
0.715789
36
380
7.361111
0.555556
0.196226
0.10566
0.173585
0.218868
0
0
0
0
0
0
0
0.202632
380
13
64
29.230769
0.874587
0
0
0.363636
0
0
0.084211
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.636364
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
1
0
0
2
51bf679a93edad177bbce42cdd412836a80f29c2
2,042
py
Python
run.py
ShawnHXH/GNN-CCA
598d5bb13e445b864e728cc2c9e1af38783a2319
[ "MIT" ]
null
null
null
run.py
ShawnHXH/GNN-CCA
598d5bb13e445b864e728cc2c9e1af38783a2319
[ "MIT" ]
null
null
null
run.py
ShawnHXH/GNN-CCA
598d5bb13e445b864e728cc2c9e1af38783a2319
[ "MIT" ]
null
null
null
import argparse from tools.trainer import Trainer def make_parser(): parser = argparse.ArgumentParser() # training config parser.add_argument("--train", default=False, action="store_true") parser.add_argument("--epochs", type=int, default=100, help="training epochs") parser.add_argument("--batch-...
44.391304
100
0.648384
261
2,042
4.934866
0.356322
0.097826
0.184783
0.071429
0.217391
0.11646
0.068323
0.068323
0
0
0
0.006219
0.212537
2,042
45
101
45.377778
0.794776
0.036729
0
0
0
0
0.328914
0.014788
0
0
0
0
0
1
0.029412
false
0.058824
0.058824
0
0.117647
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
1
0
0
0
0
0
2
51c8ccc28d7cc3aedfe256bc301ddc9a177e5fc2
376
py
Python
src/901_1000/0922_sort-array-by-parity-ii/sort-array-by-parity-ii.py
himichael/LeetCode
d54f48e785af3d47a2a67a95fd3343d2b23f8ae5
[ "Apache-2.0" ]
1
2019-12-18T06:08:47.000Z
2019-12-18T06:08:47.000Z
src/901_1000/0922_sort-array-by-parity-ii/sort-array-by-parity-ii.py
himichael/LeetCode
d54f48e785af3d47a2a67a95fd3343d2b23f8ae5
[ "Apache-2.0" ]
1
2019-05-18T09:35:22.000Z
2019-05-18T09:35:22.000Z
src/901_1000/0922_sort-array-by-parity-ii/sort-array-by-parity-ii.py
himichael/LeetCode
d54f48e785af3d47a2a67a95fd3343d2b23f8ae5
[ "Apache-2.0" ]
null
null
null
class Solution(object): def sortArrayByParityII(self, A): if not A: return [] n = len(A) res = [0] * n i = 0 for x in A: if x%2==0: res[i] = x i += 2 i = 1 for x in A: if x%2==1: ...
22.117647
37
0.316489
50
376
2.4
0.42
0.075
0.1
0.116667
0.3
0.183333
0.183333
0
0
0
0
0.056604
0.577128
376
17
38
22.117647
0.691824
0
0
0.352941
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
51cb3b7c3ae579225f507efca28cc4220ea99cfb
681
py
Python
corshinesubd.py
Corshine-Official/Eztools
9278ef4916172505895071c4fc82ee68f4b92e18
[ "MIT" ]
1
2020-05-02T17:14:46.000Z
2020-05-02T17:14:46.000Z
corshinesubd.py
Corshine-Official/Eztools
9278ef4916172505895071c4fc82ee68f4b92e18
[ "MIT" ]
null
null
null
corshinesubd.py
Corshine-Official/Eztools
9278ef4916172505895071c4fc82ee68f4b92e18
[ "MIT" ]
null
null
null
################################################## ## / ___/ _ \| _ \/ ___|| | | |_ _| \ | | ____|## ##| | | | | | |_) \___ \| |_| || || \| | _| ## ##| |__| |_| | _ < ___) | _ || || |\ | |___ ## ## \____\___/|_| \_\____/|_| |_|___|_| \_|_____|## ################################################## #Usage: pytho...
25.222222
50
0.433186
49
681
4.714286
0.673469
0.064935
0.12987
0
0
0
0
0
0
0
0
0.003788
0.22467
681
26
51
26.192308
0.433712
0.325991
0
0
0
0
0.164223
0
0
0
0
0
0
1
0
false
0.083333
0.166667
0
0.166667
0.083333
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
1
0
0
0
0
0
2
51d84e96d0312983385d2c010401ad3d5ca51c3c
390
py
Python
osmaxx/job_progress/views.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
27
2015-03-30T14:17:26.000Z
2022-02-19T17:30:44.000Z
osmaxx/job_progress/views.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
483
2015-03-09T16:58:03.000Z
2022-03-14T09:29:06.000Z
osmaxx/job_progress/views.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
6
2015-04-07T07:38:30.000Z
2020-04-01T12:45:53.000Z
from django.http import HttpResponse from django.shortcuts import get_object_or_404 from osmaxx.excerptexport.models import Export def tracker(request, export_id): export = get_object_or_404(Export, pk=export_id) export.set_and_handle_new_status(request.GET['status'], incoming_request=request) response ...
27.857143
85
0.787179
53
390
5.528302
0.54717
0.068259
0.075085
0.095563
0
0
0
0
0
0
0
0.026706
0.135897
390
13
86
30
0.84273
0
0
0
0
0
0.015385
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
51e43ed69446545aaa1166e7327dd9ff90d24b54
191
py
Python
okta/models/app/AppUserProfile.py
xmercury-qb/okta-sdk-python
a668a963b13fc61177b36c5438c6ec5fa6f17c4e
[ "ECL-2.0", "Apache-2.0" ]
1
2020-06-19T18:54:00.000Z
2020-06-19T18:54:00.000Z
okta/models/app/AppUserProfile.py
xmercury-qb/okta-sdk-python
a668a963b13fc61177b36c5438c6ec5fa6f17c4e
[ "ECL-2.0", "Apache-2.0" ]
3
2018-10-09T22:14:33.000Z
2018-10-09T23:10:40.000Z
okta/models/app/AppUserProfile.py
xmercury-qb/okta-sdk-python
a668a963b13fc61177b36c5438c6ec5fa6f17c4e
[ "ECL-2.0", "Apache-2.0" ]
2
2018-11-08T19:32:46.000Z
2021-03-30T06:35:48.000Z
class AppUserProfile: types = { 'username': str, 'password': str } def __init__(self): self.username = None # str self.password = None # str
14.692308
35
0.518325
18
191
5.277778
0.555556
0.147368
0
0
0
0
0
0
0
0
0
0
0.376963
191
12
36
15.916667
0.798319
0.036649
0
0
0
0
0.088398
0
0
0
0
0
0
1
0.125
false
0.25
0
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
1
0
0
0
0
0
2
51e6e07b849141bd9def2d517b1954741683241d
122
py
Python
hydra/__init__.py
Hydraverse/hypy
7f276975747ba86296044526acc090e540ee77cc
[ "Apache-2.0" ]
3
2021-11-18T19:04:10.000Z
2022-01-26T04:53:51.000Z
hydra/__init__.py
Hydraverse/hypy
7f276975747ba86296044526acc090e540ee77cc
[ "Apache-2.0" ]
null
null
null
hydra/__init__.py
Hydraverse/hypy
7f276975747ba86296044526acc090e540ee77cc
[ "Apache-2.0" ]
null
null
null
"""Hydra Library Tools & Applications. """ __all__ = ( "app", "hy", "log", "rpc", "test", "util" ) VERSION = "2.6.5"
15.25
45
0.532787
15
122
4.066667
1
0
0
0
0
0
0
0
0
0
0
0.030612
0.196721
122
7
46
17.428571
0.591837
0.286885
0
0
0
0
0.3
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
51ea02eff58b5c67bd9880c1554ad4af45dd3227
569
py
Python
test/SpeedTest.py
prajwal309/TierraCrossSection
4b8896540616ec3f46322ea4c40df9f2b4774a44
[ "MIT" ]
null
null
null
test/SpeedTest.py
prajwal309/TierraCrossSection
4b8896540616ec3f46322ea4c40df9f2b4774a44
[ "MIT" ]
null
null
null
test/SpeedTest.py
prajwal309/TierraCrossSection
4b8896540616ec3f46322ea4c40df9f2b4774a44
[ "MIT" ]
null
null
null
#author:Prajwal Niraula #insitution: MIT import matplotlib.pyplot as plt import time import numpy as np try: from HAPILite import CalcCrossSection except: from ..HAPILite import CalcCrossSection WaveNumber = np.arange(0,10000,0.001) StartTime = time.time() CrossSection = CalcCrossSection("CO2",Temp=1000.0...
21.074074
100
0.745167
79
569
5.35443
0.658228
0.056738
0.085106
0.160757
0
0
0
0
0
0
0
0.038306
0.128295
569
26
101
21.884615
0.814516
0.065026
0
0
0
0
0.133962
0
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
0.0625
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
51f6dd3ff8f3aa50fc8c26af38852974d4425e94
666
py
Python
app/user/schemas.py
joeseggie/resourceidea
aae6120e3ec84f3fc7e1ab1bc833ce37bd06685f
[ "MIT" ]
null
null
null
app/user/schemas.py
joeseggie/resourceidea
aae6120e3ec84f3fc7e1ab1bc833ce37bd06685f
[ "MIT" ]
21
2019-01-26T20:39:34.000Z
2019-06-20T10:09:57.000Z
app/user/schemas.py
joeseggie/resourceidea
aae6120e3ec84f3fc7e1ab1bc833ce37bd06685f
[ "MIT" ]
null
null
null
from marshmallow import fields from marshmallow import Schema from marshmallow.validate import OneOf class UsersListFilterSchema(Schema): sort_key = fields.String( OneOf(choices=['username', 'email', 'phone_number']), missing='username') sort_order = fields.String(missing='asc') class UsersL...
25.615385
61
0.707207
71
666
6.535211
0.338028
0.284483
0.109914
0.112069
0.260776
0.172414
0.172414
0
0
0
0
0
0.181682
666
25
62
26.64
0.851376
0
0
0.315789
0
0
0.054054
0
0
0
0
0
0
1
0
false
0.105263
0.157895
0
0.894737
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
1
0
0
0
0
0
2
51fc23caa27319c9a7c6759a461e51d312c4b89e
3,335
py
Python
testcases/DPO.py
vaibhav92/op-test-framework
792fa18d3f09fd8c28073074815ff96d373ab96d
[ "Apache-2.0" ]
null
null
null
testcases/DPO.py
vaibhav92/op-test-framework
792fa18d3f09fd8c28073074815ff96d373ab96d
[ "Apache-2.0" ]
null
null
null
testcases/DPO.py
vaibhav92/op-test-framework
792fa18d3f09fd8c28073074815ff96d373ab96d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: op-test-framework/testcases/OpTestDPO.py $ # # OpenPOWER Automated Test Project # # Contributors Listed Below - COPYRIGHT 2017 # [+] International Business Machines Corp. # # # Licensed under the Apache License, Vers...
35.860215
76
0.651274
426
3,335
4.957746
0.453052
0.045455
0.073864
0.022727
0.158617
0.143466
0.110322
0.053977
0.053977
0.053977
0
0.00613
0.266267
3,335
92
77
36.25
0.856968
0.335232
0
0.163265
1
0
0.092117
0
0
0
0
0
0.020408
0
null
null
0
0.122449
null
null
0.020408
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
1
0
0
0
0
0
0
0
0
2
a40837dd0431a46c20a1dc405b0aa97db458697f
777
py
Python
nsc.py
Lord-Vlad/numeral-system-converter
38bdf11fc8a0816fc57d5f5e6c893fef5707de2c
[ "MIT" ]
null
null
null
nsc.py
Lord-Vlad/numeral-system-converter
38bdf11fc8a0816fc57d5f5e6c893fef5707de2c
[ "MIT" ]
null
null
null
nsc.py
Lord-Vlad/numeral-system-converter
38bdf11fc8a0816fc57d5f5e6c893fef5707de2c
[ "MIT" ]
null
null
null
# Numeral System Converter """ TODO 1. Convert from any system to decimal """ def binary_to_decimal(bin_string:str) -> int: bin_string = str(bin_string).strip() if not bin_string: raise ValueError("Empty string was passed to the function") is_negative = bin_string[0] == "-" if is_negative: ...
25.9
71
0.674389
115
777
4.295652
0.4
0.163968
0.060729
0.097166
0.161943
0
0
0
0
0
0
0.013333
0.227799
777
30
72
25.9
0.81
0.087516
0
0.1
0
0
0.132479
0
0
0
0
0.033333
0
1
0.15
false
0.2
0
0
0.2
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
1
0
0
0
0
0
2
cfb6d7eb0802680ca32ee8d7f0c2b6622c37bbe6
135
py
Python
python/problem7.py
jreese/euler
0e2a809620cb02367120c0fbfbf9b419edd42c6e
[ "MIT" ]
1
2015-12-19T09:59:39.000Z
2015-12-19T09:59:39.000Z
python/problem7.py
jreese/euler
0e2a809620cb02367120c0fbfbf9b419edd42c6e
[ "MIT" ]
null
null
null
python/problem7.py
jreese/euler
0e2a809620cb02367120c0fbfbf9b419edd42c6e
[ "MIT" ]
null
null
null
from primes import sieve target = 10001 primes = sieve() n = 1 while n <= target: prime = primes.next() n += 1 print prime
10.384615
25
0.622222
20
135
4.2
0.6
0.047619
0
0
0
0
0
0
0
0
0
0.071429
0.274074
135
12
26
11.25
0.785714
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.125
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
1
0
0
0
0
0
0
0
0
2
cfbad6b4d8d4be1f6071c7e4b841238f41f1f4b7
976
py
Python
env/lib/python3.7/site-packages/indicoio/text/organizations.py
Novandev/gn_api
08b071ae3916bb7a183d61843a2cd09e9fe15c7b
[ "MIT" ]
4
2015-08-20T22:42:19.000Z
2016-03-14T01:28:45.000Z
indicoio/text/organizations.py
mikesperry/IndicoIo-python
caa155b8b31b76df3f86f559ce5324f061a03e40
[ "MIT" ]
null
null
null
indicoio/text/organizations.py
mikesperry/IndicoIo-python
caa155b8b31b76df3f86f559ce5324f061a03e40
[ "MIT" ]
null
null
null
from ..utils.api import api_handler from ..utils.decorators import detect_batch_decorator @detect_batch_decorator def organizations(text, cloud=None, batch=None, api_key=None, version=2, **kwargs): """ Given input text, returns references to specific organizations found in the text Example usage: ...
33.655172
96
0.630123
114
976
5.289474
0.570175
0.029851
0.066335
0
0
0
0
0
0
0
0
0.029126
0.26127
976
28
97
34.857143
0.807212
0.514344
0
0
0
0
0.085562
0
0
0
0
0
0
1
0.166667
false
0
0.333333
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
cfbd2f1a8cd10091dcf8bd4bc792ebe73cbb6d06
1,832
py
Python
indico/migrations/versions/20190118_1213_7ec3949a21c7_use_enum_for_resv_occurrence_state.py
salevajo/indico
6f9cbabc20d1641caea907099388ae2b04965cf8
[ "MIT" ]
1
2018-11-12T21:29:26.000Z
2018-11-12T21:29:26.000Z
indico/migrations/versions/20190118_1213_7ec3949a21c7_use_enum_for_resv_occurrence_state.py
salevajo/indico
6f9cbabc20d1641caea907099388ae2b04965cf8
[ "MIT" ]
9
2020-09-08T09:25:57.000Z
2022-01-13T02:59:05.000Z
indico/migrations/versions/20190118_1213_7ec3949a21c7_use_enum_for_resv_occurrence_state.py
salevajo/indico
6f9cbabc20d1641caea907099388ae2b04965cf8
[ "MIT" ]
3
2020-07-20T09:09:44.000Z
2020-10-19T00:29:49.000Z
"""Use enum for resv occurrence state Revision ID: 7ec3949a21c7 Revises: 579a36843848 Create Date: 2019-01-18 12:13:42.042274 """ import sqlalchemy as sa from alembic import op from indico.core.db.sqlalchemy import PyIntEnum from indico.modules.rb.models.reservation_occurrences import ReservationOccurrenceState # ...
35.921569
118
0.709607
203
1,832
6.236453
0.359606
0.208531
0.199052
0.094787
0.545024
0.466825
0.408373
0.338863
0.227488
0.126382
0
0.041777
0.176856
1,832
50
119
36.64
0.797745
0.088974
0
0.257143
0
0
0.43923
0.166667
0
0
0
0
0
1
0.057143
false
0
0.114286
0
0.171429
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
cfc57d3e1135b16bab03c2bf1964e838746c06d7
11,582
py
Python
doubtlab/reason.py
avvorstenbosch/doubtlab
5691ceb29a615c998f23f989ccae9dd37872031a
[ "MIT" ]
null
null
null
doubtlab/reason.py
avvorstenbosch/doubtlab
5691ceb29a615c998f23f989ccae9dd37872031a
[ "MIT" ]
null
null
null
doubtlab/reason.py
avvorstenbosch/doubtlab
5691ceb29a615c998f23f989ccae9dd37872031a
[ "MIT" ]
null
null
null
import numpy as np from cleanlab.pruning import get_noise_indices class ProbaReason: """ Assign doubt based on low proba-confidence values from a scikit-learn model. Arguments: model: scikit-learn classifier max_proba: maximum probability threshold for doubt assignment Usage: ``...
26.87239
95
0.676308
1,409
11,582
5.394606
0.12775
0.016051
0.010262
0.031838
0.646889
0.623602
0.597158
0.592685
0.586896
0.537956
0
0.010524
0.237006
11,582
430
96
26.934884
0.84961
0.554999
0
0.45098
0
0
0.00396
0
0
0
0
0
0
1
0.245098
false
0
0.019608
0.019608
0.509804
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
cfec891329d44a43054514a9a4545d735ea4e91e
2,577
py
Python
api/api/models.py
shmulik323/project-manager-course
ab74c7b474b0bb459b4886e3b9cbb6fc4c37df92
[ "MIT" ]
null
null
null
api/api/models.py
shmulik323/project-manager-course
ab74c7b474b0bb459b4886e3b9cbb6fc4c37df92
[ "MIT" ]
6
2020-03-24T17:00:59.000Z
2021-12-13T19:59:12.000Z
api/api/models.py
shmulik323/project-manager-course
ab74c7b474b0bb459b4886e3b9cbb6fc4c37df92
[ "MIT" ]
1
2019-11-23T16:10:59.000Z
2019-11-23T16:10:59.000Z
from datetime import datetime from flask_sqlalchemy import SQLAlchemy from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash db = SQLAlchemy() class User(db.Model, UserMixin): __tablename__ = 'user' id = db.Column(db.Integer, primary_key=True) name ...
30.678571
173
0.658518
349
2,577
4.696275
0.209169
0.068334
0.085418
0.087858
0.249542
0.179988
0.128127
0.104942
0.104942
0.067114
0
0.011011
0.22468
2,577
83
174
31.048193
0.809309
0
0
0.131148
1
0
0.028716
0
0
0
0
0
0
1
0.131148
false
0.114754
0.065574
0.04918
0.622951
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
cff262684fe94d016ad16523903cb2cd8bae4d2f
1,166
py
Python
src/wai/common/meta/_import_code.py
waikato-datamining/wai-common
bf3d7ae6e01bcb7ffe9f5c2b5d10a05908a68c34
[ "MIT" ]
null
null
null
src/wai/common/meta/_import_code.py
waikato-datamining/wai-common
bf3d7ae6e01bcb7ffe9f5c2b5d10a05908a68c34
[ "MIT" ]
8
2020-07-01T02:11:31.000Z
2020-12-17T01:57:17.000Z
src/wai/common/meta/_import_code.py
waikato-datamining/wai-common
bf3d7ae6e01bcb7ffe9f5c2b5d10a05908a68c34
[ "MIT" ]
null
null
null
from typing import Type, Union def get_import_code(cls: Type, indent: Union[int, str] = "", alias_inner_class: bool = True) -> str: """ Gets the code to use to import a class. :param cls: The class. :param indent: The indentation of the code. :param alias_inner_class:...
36.4375
113
0.64494
161
1,166
4.354037
0.347826
0.109843
0.055635
0.03709
0.077033
0.077033
0.077033
0
0
0
0
0
0.255575
1,166
31
114
37.612903
0.807604
0.38765
0
0
0
0
0.244838
0.035398
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.545455
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
cff5c9bc1794fa2471b86b8045d56eef733f0820
210
py
Python
python_caltrain/__init__.py
wwong/python-caltrain
09a19549b7cecde8558d67a9c07fb622fba0106b
[ "MIT" ]
2
2017-03-01T04:55:16.000Z
2017-05-15T02:07:06.000Z
python_caltrain/__init__.py
wwong/python-caltrain
09a19549b7cecde8558d67a9c07fb622fba0106b
[ "MIT" ]
3
2019-08-20T00:37:41.000Z
2020-02-15T17:36:27.000Z
python_caltrain/__init__.py
wwong/python-caltrain
09a19549b7cecde8558d67a9c07fb622fba0106b
[ "MIT" ]
1
2020-02-14T04:42:14.000Z
2020-02-14T04:42:14.000Z
from .caltrain import ( Caltrain, Train, Trip, TransitType, Station, Stop, Direction, UnknownStationError, UnexpectedGTFSLayoutError, ) from .__version__ import __version__
15
36
0.67619
16
210
8.375
0.75
0
0
0
0
0
0
0
0
0
0
0
0.261905
210
13
37
16.153846
0.864516
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.166667
0
0.166667
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
cff879c3a2664236747d343dcb3c0091efc4d764
5,311
py
Python
tests/unit/pypyr/steps/fileread_test.py
FranklinHarry/pypyr
fcabdbeabc67dc11aca5585bb90c9dfa0088e946
[ "Apache-2.0" ]
1
2021-12-30T20:47:18.000Z
2021-12-30T20:47:18.000Z
tests/unit/pypyr/steps/fileread_test.py
FranklinHarry/pypyr
fcabdbeabc67dc11aca5585bb90c9dfa0088e946
[ "Apache-2.0" ]
null
null
null
tests/unit/pypyr/steps/fileread_test.py
FranklinHarry/pypyr
fcabdbeabc67dc11aca5585bb90c9dfa0088e946
[ "Apache-2.0" ]
null
null
null
"""fileread.py unit tests.""" from unittest.mock import mock_open, patch import pytest from pypyr.context import Context from pypyr.errors import KeyInContextHasNoValueError, KeyNotInContextError import pypyr.steps.fileread as fileread def test_fileread_no_input_raises(): """No input.""" context = Context({...
27.096939
77
0.567501
571
5,311
5.117338
0.134851
0.077002
0.073922
0.08282
0.757016
0.747776
0.723135
0.656057
0.598563
0.583847
0
0.003696
0.286763
5,311
195
78
27.235897
0.767687
0.079081
0
0.689076
0
0
0.207919
0.078566
0
0
0
0
0.134454
1
0.092437
false
0
0.042017
0
0.134454
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
cfff70b07b8f0fa123d4802f2c9c57405025318f
22,378
py
Python
doc/userGuide/tutorial/introductory.py
lbl-srg/MPCPy
3e7bc83b1aa80e16474e77d2574c7bbaba080976
[ "BSD-3-Clause-LBNL" ]
96
2017-03-31T09:59:44.000Z
2022-03-23T18:39:37.000Z
doc/userGuide/tutorial/introductory.py
kuzha/MPCPy
9f78aa68236f87d39a50de54978c5064f9cc13c6
[ "BSD-3-Clause-LBNL" ]
150
2017-03-03T17:28:34.000Z
2021-02-24T20:03:24.000Z
doc/userGuide/tutorial/introductory.py
kuzha/MPCPy
9f78aa68236f87d39a50de54978c5064f9cc13c6
[ "BSD-3-Clause-LBNL" ]
32
2017-04-24T18:22:40.000Z
2022-03-29T17:51:20.000Z
# -*- coding: utf-8 -*- """ This tutorial will introduce the basic concepts and workflow of mpcpy. By the end, we will train a simple model based on emulated data, and use the model to optimize the control signal of the system. All required data files for this tutorial are located in doc/userGuide/tutorial. The mod...
42.302457
166
0.681607
3,341
22,378
4.518707
0.170308
0.033649
0.031397
0.021726
0.246142
0.208916
0.179771
0.166987
0.144532
0.132609
0
0.097305
0.215614
22,378
528
167
42.382576
0.762776
0.987622
0
0
0
0
0.265918
0
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
3207bc4ec7928b3b495d634d04393fd2375b4522
263
py
Python
codigo_das_aulas/aula_05/aula_05_01.py
VeirichR/curso-python-selenium
9b9107a64adb4e6bcf10c76287e0b4cc7d024321
[ "CC0-1.0" ]
234
2020-04-03T02:59:30.000Z
2022-03-27T15:29:21.000Z
codigo_das_aulas/aula_05/aula_05_01.py
VeirichR/curso-python-selenium
9b9107a64adb4e6bcf10c76287e0b4cc7d024321
[ "CC0-1.0" ]
8
2020-04-20T11:20:43.000Z
2021-08-18T16:41:15.000Z
codigo_das_aulas/aula_05/aula_05_01.py
VeirichR/curso-python-selenium
9b9107a64adb4e6bcf10c76287e0b4cc7d024321
[ "CC0-1.0" ]
77
2020-04-03T13:25:19.000Z
2022-02-24T15:31:26.000Z
from selenium.webdriver import Firefox url = 'http://selenium.dunossauro.live/aula_05_a.html' firefox = Firefox() firefox.get(url) div_py = firefox.find_element_by_id('python') div_hk = firefox.find_element_by_id('haskell') print(div_hk.text) firefox.quit()
18.785714
54
0.775665
41
263
4.707317
0.634146
0.145078
0.186529
0.207254
0.227979
0
0
0
0
0
0
0.008368
0.091255
263
13
55
20.230769
0.799163
0
0
0
0
0
0.224335
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.125
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5c5afa19e1cbb672a48b30d9d8326b1c68d38ecc
1,671
py
Python
case_05.py
AlexRogalskiy/Python
78a38746de51688dc118ba921da08b920fe4caf2
[ "MIT" ]
null
null
null
case_05.py
AlexRogalskiy/Python
78a38746de51688dc118ba921da08b920fe4caf2
[ "MIT" ]
null
null
null
case_05.py
AlexRogalskiy/Python
78a38746de51688dc118ba921da08b920fe4caf2
[ "MIT" ]
null
null
null
import pandas as pd print pd.__version__ #Load data #------------------------------------------ df = pd.read_csv("Data.csv") df.to_csv("Data_copy.csv") df = pd.read_excel("Data.xlsx", "Sheet1") df.to_excel("Data_copy.xlsx", sheet_name="Sheet1") #Dataframe preview #------------------------------------------ df.head(5...
22.890411
96
0.476361
186
1,671
4.204301
0.430108
0.053708
0.02046
0.046036
0.207161
0.207161
0.143223
0.143223
0.143223
0.143223
0
0.01369
0.081987
1,671
72
97
23.208333
0.496089
0.381209
0
0
0
0
0.200593
0
0
0
0
0
0
0
null
null
0
0.03125
null
null
0.03125
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
1
0
0
0
0
0
0
0
0
2
5c66ae3f16bc6afe8d89f8f8d12ffe49e7d933ca
1,787
py
Python
mayaside/ChangeRenderSetting.py
Kususumu/pythonServerWorkplace
d76080276b9616bbf5945413bcf4336779546ebc
[ "MIT" ]
null
null
null
mayaside/ChangeRenderSetting.py
Kususumu/pythonServerWorkplace
d76080276b9616bbf5945413bcf4336779546ebc
[ "MIT" ]
null
null
null
mayaside/ChangeRenderSetting.py
Kususumu/pythonServerWorkplace
d76080276b9616bbf5945413bcf4336779546ebc
[ "MIT" ]
null
null
null
#ChangeRenderSetting.py ##This only use in the maya software render , not in arnold #Three main Node of Maya Render: # ->defaultRenderGlobals, defaultRenderQuality and defaultResolution # ->those are separate nodes in maya ''' import maya.cmds as cmds #Function : getRenderGlobals() #Usage : get the Value of Rend...
35.039216
74
0.734751
225
1,787
5.737778
0.324444
0.032533
0.051123
0.024787
0.176607
0.176607
0.139427
0.139427
0.139427
0.139427
0
0.008032
0.163962
1,787
51
75
35.039216
0.856091
0.988248
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
5c729e31ba9386c63c16a49f742b6865ce1e6073
8,745
py
Python
hxlm/ontologia/python/systema.py
EticaAI/HXL-Data-Science-file-formats
c7c5aa56c452ac1613242ee04cc9ae66f38ec24d
[ "Unlicense" ]
3
2021-01-25T20:44:10.000Z
2021-04-19T22:47:05.000Z
hxlm/ontologia/python/systema.py
fititnt/HXL-Data-Science-file-formats
f4fe9866e53280767f9cb4c8c488ef9c8b9d33cd
[ "Unlicense" ]
24
2021-01-26T00:36:39.000Z
2021-11-13T23:59:56.000Z
hxlm/ontologia/python/systema.py
fititnt/HXL-Data-Science-file-formats
f4fe9866e53280767f9cb4c8c488ef9c8b9d33cd
[ "Unlicense" ]
1
2021-09-05T03:43:37.000Z
2021-09-05T03:43:37.000Z
"""hxlm.ontologia.python.systema This module, like hxlm.ontologia.python.commune, contains generic data classes when implementing HXLm in python. But one main difference is that on this module... the initial author have no idea good naming in Latin! But note that most of what is here was created on last 100 years, so ...
28.392857
79
0.629503
1,097
8,745
4.996354
0.354603
0.015326
0.028097
0.034118
0.168217
0.140668
0.083197
0.068601
0.053275
0.039044
0
0.011896
0.240595
8,745
307
80
28.485342
0.813432
0.405031
0
0.038462
0
0
0.135235
0.040385
0
0
0
0.013029
0
1
0.025641
false
0
0.038462
0
0.717949
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
5c7eef17cbb62508fcf15afbb4cca512d6b1522f
789
py
Python
acton_test_app.py
akshaybkiitb/HW_acton_spec
6872683633fc41d44947868d0e8534e5275b10db
[ "BSD-3-Clause" ]
2
2019-12-11T01:22:04.000Z
2022-03-30T13:44:52.000Z
acton_test_app.py
akshaybkiitb/HW_acton_spec
6872683633fc41d44947868d0e8534e5275b10db
[ "BSD-3-Clause" ]
null
null
null
acton_test_app.py
akshaybkiitb/HW_acton_spec
6872683633fc41d44947868d0e8534e5275b10db
[ "BSD-3-Clause" ]
2
2020-05-18T14:10:05.000Z
2020-07-31T11:24:53.000Z
from __future__ import division, print_function from ScopeFoundry import BaseMicroscopeApp #from ScopeFoundry.helper_funcs import sibling_path, load_qt_ui_file import logging logging.basicConfig(level=logging.DEBUG) class SpecTestApp(BaseMicroscopeApp): name = 'spec_test_app' def setup(self): #...
28.178571
72
0.732573
82
789
6.719512
0.54878
0.098004
0.079855
0.105263
0.127042
0
0
0
0
0
0
0
0.201521
789
28
73
28.178571
0.874603
0.372624
0
0
0
0
0.043659
0
0
0
0
0
0
1
0.076923
false
0
0.384615
0
0.615385
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
5c87620e45ca5473590bf908661872d3585bab69
1,017
py
Python
Problems/0005. Longest Palindromic Substring/SolutionPython3.py
SpacelandingCat/leetcode
761093513aed0d4779944ca152180e3356facc2f
[ "MIT" ]
null
null
null
Problems/0005. Longest Palindromic Substring/SolutionPython3.py
SpacelandingCat/leetcode
761093513aed0d4779944ca152180e3356facc2f
[ "MIT" ]
null
null
null
Problems/0005. Longest Palindromic Substring/SolutionPython3.py
SpacelandingCat/leetcode
761093513aed0d4779944ca152180e3356facc2f
[ "MIT" ]
null
null
null
class Solution: def longestPalindrome(self, s: str) -> str: result = '' pal_s = set(s) if len(pal_s) == 1: return s for ind_c in range(len(s)): pal = '' ind_l = ind_c ind_r = ind_c + 1 while ind_l > -1 and ind_r < len(s): ...
31.78125
51
0.360865
131
1,017
2.587786
0.19084
0.117994
0.103245
0.047198
0.60767
0.60767
0.60767
0.60767
0.60767
0.60767
0
0.021368
0.539823
1,017
32
52
31.78125
0.702991
0
0
0.625
0
0
0
0
0
0
0
0
0
1
0.03125
false
0
0
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
1
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
5c8ab1b3eddace8397226479e640c75020c3d5d9
147
py
Python
python/fib.py
Cinia/fibonacci
7ca6dd20e1faced2ce31c8349835dc4f6181a0d2
[ "MIT" ]
null
null
null
python/fib.py
Cinia/fibonacci
7ca6dd20e1faced2ce31c8349835dc4f6181a0d2
[ "MIT" ]
null
null
null
python/fib.py
Cinia/fibonacci
7ca6dd20e1faced2ce31c8349835dc4f6181a0d2
[ "MIT" ]
null
null
null
import sys def fib(i): if i < 2: return 1 return fib(i-1) + fib(i-2) if __name__ == "__main__": print(fib(int(sys.argv[1])))
14.7
32
0.544218
26
147
2.769231
0.538462
0.166667
0
0
0
0
0
0
0
0
0
0.04717
0.278912
147
9
33
16.333333
0.632075
0
0
0
0
0
0.054422
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.571429
0.142857
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
5c90dc090af95d86c043cbd504b3dcbe75aa4737
13,243
py
Python
tests/test_soda.py
Adam-Lechnos/SocrataPython
798e7abe160d3a7c1aa2b6c42708ad0b600b097e
[ "MIT" ]
null
null
null
tests/test_soda.py
Adam-Lechnos/SocrataPython
798e7abe160d3a7c1aa2b6c42708ad0b600b097e
[ "MIT" ]
null
null
null
tests/test_soda.py
Adam-Lechnos/SocrataPython
798e7abe160d3a7c1aa2b6c42708ad0b600b097e
[ "MIT" ]
null
null
null
from sodapy import Socrata from sodapy.constants import DEFAULT_API_PREFIX, OLD_API_PREFIX import requests import requests_mock import os.path import inspect import json PREFIX = "https://" DOMAIN = "fakedomain.com" DATASET_IDENTIFIER = "songs" APPTOKEN = "FakeAppToken" USERNAME = "fakeuser" PASSWORD = "fakepassword...
32.538084
95
0.659896
1,511
13,243
5.577101
0.130377
0.101816
0.083304
0.067877
0.737866
0.70642
0.699775
0.679601
0.643289
0.626557
0
0.011701
0.219135
13,243
406
96
32.618227
0.803211
0.009514
0
0.575758
0
0
0.129072
0.019757
0
0
0
0
0.117845
1
0.063973
false
0.030303
0.037037
0
0.10101
0
0
0
0
null
0
0
0
0
1
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
5c9a4d3b8666bef59e42b987ae0767e462ac1a09
151
py
Python
COJ/1049Sum.py
Loptt/python-programs
798985a540e1b4de0d416867b5a4c6f6d75771a0
[ "MIT" ]
null
null
null
COJ/1049Sum.py
Loptt/python-programs
798985a540e1b4de0d416867b5a4c6f6d75771a0
[ "MIT" ]
null
null
null
COJ/1049Sum.py
Loptt/python-programs
798985a540e1b4de0d416867b5a4c6f6d75771a0
[ "MIT" ]
null
null
null
num = raw_input() num = int(num) suma = 0 if num >= 0: for x in range(0, num + 1): suma += x else: for x in range(num, 2): suma += x print suma
12.583333
28
0.569536
31
151
2.741935
0.483871
0.094118
0.141176
0.258824
0
0
0
0
0
0
0
0.045455
0.271523
151
12
29
12.583333
0.727273
0
0
0.2
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.1
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
1
0
0
0
0
0
0
0
0
2
5c9af6716995ec97062daa8eaf37fe3a39fc3c3f
909
py
Python
portcast/schemas.py
FyonnOh/PortCastAssignment
23cdc1ec22990a919ebd7131c2ddc07038c32d14
[ "MIT" ]
null
null
null
portcast/schemas.py
FyonnOh/PortCastAssignment
23cdc1ec22990a919ebd7131c2ddc07038c32d14
[ "MIT" ]
null
null
null
portcast/schemas.py
FyonnOh/PortCastAssignment
23cdc1ec22990a919ebd7131c2ddc07038c32d14
[ "MIT" ]
1
2022-01-11T07:56:21.000Z
2022-01-11T07:56:21.000Z
from typing import List, Optional from pydantic import BaseModel class TransshipmentBase(BaseModel): is_loaded: bool is_discharged: bool discharge_date: str loaded_date: str discharge_location: str loaded_location: str vessel: str class TransshipmentCreate(TransshipmentBase): pass ...
17.150943
45
0.70187
105
909
5.87619
0.32381
0.045381
0.071313
0.045381
0.510535
0.447326
0.447326
0.447326
0.447326
0.350081
0
0
0.242024
909
52
46
17.480769
0.895501
0
0
0.702703
0
0
0
0
0
0
0
0
0
1
0
false
0.054054
0.054054
0
0.891892
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
5cb6b53628daa912f11e9c3ebd832c8dd8740466
271
py
Python
temas/tema2/codigo/t2e07.correos.py
GabJL/FP2021
9c2c80c3bd0b7e112f66475c48ecdcf20b611338
[ "MIT" ]
1
2021-11-29T12:12:48.000Z
2021-11-29T12:12:48.000Z
temas/tema2/codigo/t2e07.correos.py
GabJL/FP2021
9c2c80c3bd0b7e112f66475c48ecdcf20b611338
[ "MIT" ]
null
null
null
temas/tema2/codigo/t2e07.correos.py
GabJL/FP2021
9c2c80c3bd0b7e112f66475c48ecdcf20b611338
[ "MIT" ]
null
null
null
nombre = input("Nombre: ") apellido = input("Apellido: ") edad_nac = input("Edad de nacimiento: ") correo1 = nombre[0] + "." + apellido + edad_nac[-2:] + "@uma.es" correo2 = nombre[:3] + apellido[:3] + edad_nac[-2:] + "@uma.es" print("Correos:", correo1, "y", correo2)
30.111111
64
0.616236
36
271
4.555556
0.472222
0.128049
0.182927
0.134146
0.158537
0
0
0
0
0
0
0.038961
0.147601
271
8
65
33.875
0.670996
0
0
0
0
0
0.228782
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5cbf10894183be7ac7e35be9617195b1566c8060
734
py
Python
settings/wrappers.py
xupei0610/PFPN
7ad049f84d1cc03200bb6cea383d5c00721f9ac4
[ "MIT" ]
9
2020-12-07T02:32:18.000Z
2022-02-07T02:38:54.000Z
settings/wrappers.py
xupei0610/PFPN
7ad049f84d1cc03200bb6cea383d5c00721f9ac4
[ "MIT" ]
null
null
null
settings/wrappers.py
xupei0610/PFPN
7ad049f84d1cc03200bb6cea383d5c00721f9ac4
[ "MIT" ]
1
2022-01-01T01:45:01.000Z
2022-01-01T01:45:01.000Z
class DiscreteActionWrapper: def __init__(self, env, n): self.env = env self.action_cont = [ # [l + (_+0.5)*(h-l)/n for _ in range(n)] # [l + _*(h-l)/(n+1) for _ in range(n)] [l + _*(h-l)/(n-1) for _ in range(n)] for h, l in zip(self.env.action_space.h...
40.777778
82
0.565395
110
734
3.536364
0.272727
0.179949
0.200514
0.277635
0.424165
0.11054
0.11054
0.11054
0.11054
0.11054
0
0.007533
0.276567
734
17
83
43.176471
0.725047
0.104905
0
0
0
0
0.010703
0
0
0
0
0
0
1
0.2
false
0
0
0.066667
0.4
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7a233abefcdd79a70599ef23710df83a02c92b84
1,408
py
Python
src/addresses/models.py
caesarorz/complete-ecommerce
35493812167c208c166df3048190a9988adf6bb0
[ "MIT" ]
null
null
null
src/addresses/models.py
caesarorz/complete-ecommerce
35493812167c208c166df3048190a9988adf6bb0
[ "MIT" ]
null
null
null
src/addresses/models.py
caesarorz/complete-ecommerce
35493812167c208c166df3048190a9988adf6bb0
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. from billing.models import BillingProfile ADDRESS_TYPES = ( # ('billing', 'Facturacion'), # ('billing','Billing'), ('shipping', 'Envio'), # ('shipping','Shipping'), ) class Address(models.Model): billing_profile ...
39.111111
91
0.584517
141
1,408
5.652482
0.368794
0.131744
0.158093
0.21079
0.279799
0.110414
0.110414
0.110414
0.110414
0
0
0.029683
0.306108
1,408
35
92
40.228571
0.78608
0.153409
0
0
0
0
0.055743
0
0
0
0
0
0
1
0.086957
false
0
0.086957
0.086957
0.608696
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
1
0
0
2
7a2d41f97cfb2016f65180d1790a374db4dad3de
1,286
py
Python
homework/if-elif-else.py
mcorley-gba/IntroCS21-22
a823e17f2cb618be0e67468cb15f48873ae85152
[ "MIT" ]
null
null
null
homework/if-elif-else.py
mcorley-gba/IntroCS21-22
a823e17f2cb618be0e67468cb15f48873ae85152
[ "MIT" ]
null
null
null
homework/if-elif-else.py
mcorley-gba/IntroCS21-22
a823e17f2cb618be0e67468cb15f48873ae85152
[ "MIT" ]
null
null
null
#Write an if-elif-else chain that determines a person's stage of life. #Set a value for the variable age, then: # If the person is less than 2, print a message that the person # is a baby. # # If the person is at least 2 years old, but less than 4, print # a message that the person is a toddler. # # ...
31.365854
71
0.654743
238
1,286
3.533613
0.302521
0.128419
0.156956
0.092747
0.380499
0.26635
0.171225
0.137931
0
0
0
0.028213
0.255832
1,286
41
72
31.365854
0.850575
0.687403
0
0
0
0
0.35809
0
0
0
0
0
0
0
null
null
0
0
null
null
0.466667
0
0
0
null
0
0
0
0
0
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
7a487e2a7618ec44c666e6aeb17a864f5b09aa19
241
py
Python
ABC/abc101-abc150/abc112/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
ABC/abc101-abc150/abc112/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
ABC/abc101-abc150/abc112/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- def main(): n = int(input()) if n == 1: print("Hello World") else: a = int(input()) b = int(input()) print(a + b) if __name__ == '__main__': main()
14.176471
29
0.39834
28
241
3.142857
0.607143
0.272727
0
0
0
0
0
0
0
0
0
0.014184
0.414938
241
16
30
15.0625
0.609929
0.087137
0
0
0
0
0.094059
0
0
0
0
0
0
1
0.1
false
0
0
0
0.1
0.2
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7a48add92c5fa309680f94449d41fc1a514c1384
752
py
Python
project/access/tests/fixtures/grants.py
jssmk/asylum
004b05939784b86ba559968a7cdcedf248edb01f
[ "MIT" ]
1
2017-04-08T21:31:37.000Z
2017-04-08T21:31:37.000Z
project/access/tests/fixtures/grants.py
jssmk/asylum
004b05939784b86ba559968a7cdcedf248edb01f
[ "MIT" ]
9
2016-01-23T22:40:26.000Z
2021-09-13T17:44:11.000Z
project/access/tests/fixtures/grants.py
jssmk/asylum
004b05939784b86ba559968a7cdcedf248edb01f
[ "MIT" ]
1
2017-04-08T22:13:42.000Z
2017-04-08T22:13:42.000Z
# -*- coding: utf-8 -*- import random import factory.django import factory.fuzzy from access.models import AccessType, TokenType from members.models import Member from members.tests.fixtures.memberlikes import MemberFactory from asylum.tests.utils import FuzzyLoremipsum class GrantFactory(factory.django.DjangoModel...
34.181818
181
0.765957
90
752
6.311111
0.577778
0.06338
0.080986
0
0
0
0
0
0
0
0
0.001548
0.140957
752
21
182
35.809524
0.877709
0.206117
0
0
0
0
0.037162
0
0
0
0
0
0
1
0
false
0
0.538462
0
0.846154
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
7a4b25e795260a82a448484fd77fd363f09417a7
8,117
py
Python
app/models.py
gacbas/Zumicrospectro
22f49158df193be0a3314806d1f42662b6a3f029
[ "MIT" ]
null
null
null
app/models.py
gacbas/Zumicrospectro
22f49158df193be0a3314806d1f42662b6a3f029
[ "MIT" ]
null
null
null
app/models.py
gacbas/Zumicrospectro
22f49158df193be0a3314806d1f42662b6a3f029
[ "MIT" ]
null
null
null
from datetime import datetime from hashlib import md5 from time import time from flask import current_app from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash import jwt from app import db, login from app.search import add_to_index, remove_from_index, query_index i...
35.600877
118
0.63521
1,039
8,117
4.795958
0.218479
0.056191
0.066225
0.051375
0.274734
0.168573
0.13827
0.052177
0.038932
0.038932
0
0.00982
0.234693
8,117
228
119
35.600877
0.792337
0
0
0.208333
1
0
0.047425
0
0
0
0
0
0
1
0.114583
false
0.057292
0.052083
0.03125
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
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
7a4fdc53b715ad463c963713fbdd91b3d75425ed
292
py
Python
_pysh/styles.py
etianen/py.sh
8172cc39508bd8ead68af20cdcfe96a6d2583fb5
[ "MIT" ]
3
2018-12-18T23:21:30.000Z
2021-12-24T05:37:18.000Z
_pysh/styles.py
etianen/py.sh
8172cc39508bd8ead68af20cdcfe96a6d2583fb5
[ "MIT" ]
35
2016-03-27T20:42:12.000Z
2017-10-17T10:57:27.000Z
_pysh/styles.py
etianen/py.sh
8172cc39508bd8ead68af20cdcfe96a6d2583fb5
[ "MIT" ]
6
2016-06-07T11:43:02.000Z
2021-12-24T05:37:24.000Z
class StyleMapping: def __init__(self, opts): self._opts = opts def __getitem__(self, key): return getattr(self._opts, "style_{}".format(key), "").encode().decode("unicode_escape") def apply_styles(opts, command): return command.format_map(StyleMapping(opts))
24.333333
96
0.678082
35
292
5.257143
0.571429
0.130435
0
0
0
0
0
0
0
0
0
0
0.178082
292
11
97
26.545455
0.766667
0
0
0
0
0
0.075342
0
0
0
0
0
0
1
0.428571
false
0
0
0.285714
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
7a667e0205507dfaafc0fa2f690894e26f9139e1
1,368
py
Python
libs/sqlobject/tests/test_sqlbuilder_importproxy.py
scambra/HTPC-Manager
1a1440db84ae1b6e7a2610c7f3bd5b6adf0aab1d
[ "MIT" ]
422
2015-01-08T14:08:08.000Z
2022-02-07T11:47:37.000Z
libs/sqlobject/tests/test_sqlbuilder_importproxy.py
scambra/HTPC-Manager
1a1440db84ae1b6e7a2610c7f3bd5b6adf0aab1d
[ "MIT" ]
581
2015-01-01T08:07:16.000Z
2022-02-23T11:44:37.000Z
libs/sqlobject/tests/test_sqlbuilder_importproxy.py
scambra/HTPC-Manager
1a1440db84ae1b6e7a2610c7f3bd5b6adf0aab1d
[ "MIT" ]
162
2015-01-01T00:21:16.000Z
2022-02-23T02:36:04.000Z
from sqlobject import * from sqlobject.tests.dbtest import * from sqlobject.views import * from sqlobject.sqlbuilder import ImportProxy, Alias def testSimple(): nyi = ImportProxy('NotYetImported') x = nyi.q.name class NotYetImported(SQLObject): name = StringCol(dbName='a_name') y = nyi.q.name...
26.307692
80
0.666667
171
1,368
5.192982
0.251462
0.050676
0.045045
0.126126
0.400901
0.273649
0.191441
0.15991
0
0
0
0.010138
0.206871
1,368
51
81
26.823529
0.808295
0
0
0.162162
0
0
0.188596
0.089912
0
0
0
0
0.189189
1
0.108108
false
0
0.567568
0
0.972973
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
7a756102e6c5960c9b3b3d7df97056599e46634f
846
py
Python
nlu/components/classifiers/generic_classifier/generic_classifier.py
milyiyo/nlu
d209ed11c6a84639c268f08435552248391c5573
[ "Apache-2.0" ]
480
2020-08-24T02:36:40.000Z
2022-03-30T08:09:43.000Z
nlu/components/classifiers/generic_classifier/generic_classifier.py
milyiyo/nlu
d209ed11c6a84639c268f08435552248391c5573
[ "Apache-2.0" ]
28
2020-09-26T18:55:43.000Z
2022-03-26T01:05:45.000Z
nlu/components/classifiers/generic_classifier/generic_classifier.py
milyiyo/nlu
d209ed11c6a84639c268f08435552248391c5573
[ "Apache-2.0" ]
76
2020-09-25T22:55:12.000Z
2022-03-17T20:25:52.000Z
from sparknlp_jsl.annotator import GenericClassifierModel, GenericClassifierApproach from sparknlp_jsl.base import * class GenericClassifier: @staticmethod def get_default_model(): return GenericClassifierModel.pretrained() \ .setInputCols("feature_vector") \ .setOutputCol("gene...
33.84
85
0.682033
64
846
8.78125
0.46875
0.080071
0.096085
0.197509
0.373665
0.373665
0.270463
0.270463
0.270463
0
0
0.001534
0.229314
846
24
86
35.25
0.860429
0
0
0.45
0
0
0.128842
0.078014
0
0
0
0
0
1
0.15
false
0
0.1
0.15
0.45
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
1
0
0
0
2
7a849b05642c39d1086f0df1b170473231c30737
98
py
Python
exp/exception_handling_dynamic_creation.py
nicolasessisbreton/fython
988f5a94cee8b16b0000501a22239195c73424a1
[ "Apache-2.0" ]
41
2016-01-21T05:14:45.000Z
2021-11-24T20:37:21.000Z
exp/exception_handling_dynamic_creation.py
nicolasessisbreton/fython
988f5a94cee8b16b0000501a22239195c73424a1
[ "Apache-2.0" ]
5
2016-01-21T05:36:37.000Z
2016-08-22T19:26:51.000Z
exp/exception_handling_dynamic_creation.py
nicolasessisbreton/fython
988f5a94cee8b16b0000501a22239195c73424a1
[ "Apache-2.0" ]
3
2016-01-23T04:03:44.000Z
2016-08-21T15:58:38.000Z
a = type('a_fyerr', (Exception,), {}) try: raise a('aa') except Exception as e: print(type(e))
14
37
0.612245
16
98
3.6875
0.6875
0
0
0
0
0
0
0
0
0
0
0
0.163265
98
7
38
14
0.719512
0
0
0
0
0
0.090909
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
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
7a8ac69d9312c897a80eef7fbe6316c24ba27db8
2,809
py
Python
wsu/tools/simx/simx/python/simx/base/extension.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
1
2020-02-28T20:35:09.000Z
2020-02-28T20:35:09.000Z
wsu/tools/simx/simx/python/simx/base/extension.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
null
null
null
wsu/tools/simx/simx/python/simx/base/extension.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
null
null
null
import re class Extension(object): """ Base class and helper functions for TossimBase extensions. Extensions allow adding extra information and methods to L{TossimBase} and associated L{Node} objects. Some examples are advanced topology configuration (see L{simx.fluid}) and sensor readings (s...
30.532609
70
0.620862
343
2,809
4.962099
0.306122
0.047004
0.021152
0.021152
0.256757
0.207403
0.207403
0.207403
0.207403
0.207403
0
0
0.317195
2,809
91
71
30.868132
0.887383
0.551442
0
0.136364
0
0
0.038002
0
0
0
0
0
0
1
0.272727
false
0.136364
0.045455
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
0
0
0
1
0
1
0
0
0
0
0
2
8f85163033775c570b74b9dc7062353045d4c52d
1,796
py
Python
src/genie/libs/parser/iosxe/tests/ShowIpNhrpNhsDetail/cli/equal/golden_output_expected.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowIpNhrpNhsDetail/cli/equal/golden_output_expected.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowIpNhrpNhsDetail/cli/equal/golden_output_expected.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
expected_output = { "Tunnel0": { "nhs_ip": { "111.0.0.100": { "nhs_state": "E", "nbma_address": "111.1.1.1", "priority": 0, "cluster": 0, "req_sent": 0, "req_failed": 0, "reply_recv": ...
27.630769
55
0.342428
149
1,796
3.879195
0.369128
0.020761
0.034602
0.055363
0.480969
0.425606
0.425606
0.425606
0.389273
0.217993
0
0.150731
0.505011
1,796
64
56
28.0625
0.499438
0
0
0.40625
0
0
0.320156
0.046214
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
1
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
8f8538f9d3c50e10e3bee464d57a3a8811ef1814
151
py
Python
emotion_detection/read_emotions.py
yaiestura/coursera_hse_research
510d2cc4e255346b9fefa0d386b566af1123be81
[ "MIT" ]
null
null
null
emotion_detection/read_emotions.py
yaiestura/coursera_hse_research
510d2cc4e255346b9fefa0d386b566af1123be81
[ "MIT" ]
null
null
null
emotion_detection/read_emotions.py
yaiestura/coursera_hse_research
510d2cc4e255346b9fefa0d386b566af1123be81
[ "MIT" ]
null
null
null
def main(): with open("emotions.txt", "r") as f: count = set(f.readlines()) print(count) print(len(count)) if __name__ == '__main__': main()
15.1
37
0.615894
22
151
3.863636
0.727273
0
0
0
0
0
0
0
0
0
0
0
0.178808
151
9
38
16.777778
0.685484
0
0
0
0
0
0.139073
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.142857
0.285714
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
8fa5dd1f18048a804e383db31d6325e0de639243
287
py
Python
pyexcelerate/__init__.py
AlexHill/PyExcelerate
8944c1c30117d4a7e19d9eb15d05c00929d16989
[ "BSD-2-Clause" ]
null
null
null
pyexcelerate/__init__.py
AlexHill/PyExcelerate
8944c1c30117d4a7e19d9eb15d05c00929d16989
[ "BSD-2-Clause" ]
null
null
null
pyexcelerate/__init__.py
AlexHill/PyExcelerate
8944c1c30117d4a7e19d9eb15d05c00929d16989
[ "BSD-2-Clause" ]
null
null
null
from .Workbook import Workbook from .Style import Style from .Fill import Fill from .Font import Font from .Format import Format from .Alignment import Alignment try: import pkg_resources __version__ = pkg_resources.require('PyExcelerate')[0].version except: __version__ = 'unknown'
22.076923
63
0.797909
38
287
5.763158
0.447368
0.109589
0
0
0
0
0
0
0
0
0
0.004016
0.132404
287
12
64
23.916667
0.875502
0
0
0
0
0
0.066202
0
0
0
0
0
0
1
0
false
0
0.636364
0
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
1
0
1
0
0
2
8fb0cc91f84bbc539459ee97c5ce225a96109b9f
315
py
Python
booth/gprInit.py
Fife/MSU-Robotics-Club
ba74df39020c6310324fa960c651a6f3d647ce1e
[ "MIT" ]
9
2021-11-30T20:05:49.000Z
2022-01-27T00:50:55.000Z
booth/gprInit.py
Fife/MSU-Robotics-Club
ba74df39020c6310324fa960c651a6f3d647ce1e
[ "MIT" ]
1
2022-01-30T00:34:42.000Z
2022-01-30T00:34:42.000Z
booth/gprInit.py
Fife/MSU-Robotics-Club
ba74df39020c6310324fa960c651a6f3d647ce1e
[ "MIT" ]
1
2022-01-27T00:48:48.000Z
2022-01-27T00:48:48.000Z
import getopt, sys from Extractor1 import * #Only argument is the path of the argos experiment file try: experiment_path = sys.argv[1] except IndexError: print("Erorr, Nothing was passed in as an argument.") else: experiment_path = sys.argv[1] root = getRoot(experiment_path) writeInit(root)
17.5
55
0.72381
45
315
5
0.688889
0.186667
0.151111
0.186667
0.195556
0
0
0
0
0
0
0.011858
0.196825
315
17
56
18.529412
0.87747
0.171429
0
0.2
0
0
0.169884
0
0
0
0
0
0
1
0
false
0.1
0.2
0
0.2
0.1
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
1
0
0
0
0
0
2
8fbf5ecc6ed3de785cd388008c750e0d8edb9542
1,777
py
Python
src/NodeGenerators/PeanoHilbertDistributeNodes.py
as1m0n/spheral
4d72822f56aca76d70724c543d389d15ff6ca48e
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
19
2020-10-21T01:49:17.000Z
2022-03-15T12:29:17.000Z
src/NodeGenerators/PeanoHilbertDistributeNodes.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
41
2020-09-28T23:14:27.000Z
2022-03-28T17:01:33.000Z
src/NodeGenerators/PeanoHilbertDistributeNodes.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
5
2020-11-03T16:14:26.000Z
2022-01-03T19:07:24.000Z
import Spheral import distributeNodesGeneric #------------------------------------------------------------------------------- # Domain decompose using PeanoHilbert ordering (1d method). #------------------------------------------------------------------------------- def distributeNodes1d(*listOfNodeTuples): distri...
57.322581
95
0.409679
61
1,777
11.934426
0.42623
0.061813
0.082418
0.131868
0.506868
0
0
0
0
0
0
0.011914
0.291503
1,777
30
96
59.233333
0.566322
0.36466
0
0.176471
0
0
0
0
0
0
0
0
0
1
0.176471
true
0
0.117647
0
0.294118
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
8fc68c6f7d1c08754edd736345f131547afecca5
677
py
Python
dzTraficoBackend/dzTrafico/BusinessEntities/LCRecommendation.py
DZAymen/dz-Trafico
74ff9caf9e3845d8af977c46b04a2d3421a0661b
[ "MIT" ]
null
null
null
dzTraficoBackend/dzTrafico/BusinessEntities/LCRecommendation.py
DZAymen/dz-Trafico
74ff9caf9e3845d8af977c46b04a2d3421a0661b
[ "MIT" ]
null
null
null
dzTraficoBackend/dzTrafico/BusinessEntities/LCRecommendation.py
DZAymen/dz-Trafico
74ff9caf9e3845d8af977c46b04a2d3421a0661b
[ "MIT" ]
null
null
null
class LCRecommendation: TURN_LEFT = -1 TURN_RIGHT = 1 STRAIGHT_AHEAD = 0 CHANGE_TO_EITHER_WAY = 2 change_lane = True change_to_either_way = False recommendation = 0 def __init__(self, lane, recommendation): self.lane = lane self.recommendation = recommendation ...
29.434783
57
0.645495
79
677
5.202532
0.303797
0.218978
0.136253
0.16545
0.291971
0.199513
0.199513
0.199513
0
0
0
0.014553
0.289513
677
23
58
29.434783
0.839917
0
0
0
0
0
0
0
0
0
0
0
0
1
0.052632
false
0
0
0
0.473684
0
0
0
0
null
1
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
2
8fdf0d6e3dcdf33d021bba7c08fb3cbf31721907
302
py
Python
python/CV_ex049.py
FaunoGuazina/X_very_old_algorithm_exercises
c9b9ec78e8b82f2e23ef85ba9a5e7fd6e0deaea6
[ "MIT" ]
null
null
null
python/CV_ex049.py
FaunoGuazina/X_very_old_algorithm_exercises
c9b9ec78e8b82f2e23ef85ba9a5e7fd6e0deaea6
[ "MIT" ]
null
null
null
python/CV_ex049.py
FaunoGuazina/X_very_old_algorithm_exercises
c9b9ec78e8b82f2e23ef85ba9a5e7fd6e0deaea6
[ "MIT" ]
null
null
null
print('=ˆ= ' * 8) print(' TAULA DE MULTIPLICACIÓ') print('=ˆ= ' * 8) num = int(input('introduïu un número per trobar\nla taula de multiplicació: ')) print(' ' * 7, '-' * 13) x = 1 for c in range(1, 11): print(' ' * 7, '{} x {:2} = {:3}'.format(num, x, num*x)) x += 1 print(' ' * 7, '-' * 13)
30.2
79
0.516556
48
302
3.25
0.5625
0.115385
0.089744
0.320513
0
0
0
0
0
0
0
0.06867
0.228477
302
10
80
30.2
0.600858
0
0
0.4
0
0
0.376238
0
0
0
0
0
0
1
0
false
0
0
0
0
0.6
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
1
0
2
8fe31103547372def2141cfd476d4dc83dfc8cfd
129
py
Python
src/keri/vdr/__init__.py
SmithSamuelM/keripy-wot
ec329f4e011026d655bf46d269792ac97f23276d
[ "Apache-2.0" ]
10
2021-06-09T16:15:32.000Z
2022-03-28T22:14:11.000Z
src/keri/vdr/__init__.py
SmithSamuelM/keripy-wot
ec329f4e011026d655bf46d269792ac97f23276d
[ "Apache-2.0" ]
47
2021-06-17T20:00:02.000Z
2022-03-31T20:20:44.000Z
src/keri/vdr/__init__.py
SmithSamuelM/keripy-wot
ec329f4e011026d655bf46d269792ac97f23276d
[ "Apache-2.0" ]
6
2021-06-10T11:24:25.000Z
2022-01-28T08:07:43.000Z
# -*- encoding: utf-8 -*- """ KERI keri.vdr Package """ __all__ = ["issuing", "eventing", "registering", "viring", "verifying"]
16.125
71
0.604651
13
129
5.692308
0.923077
0
0
0
0
0
0
0
0
0
0
0.009009
0.139535
129
7
72
18.428571
0.657658
0.356589
0
0
0
0
0.546667
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
8ff27d008364f8f98d08457e48951f175ea9e3e0
356
py
Python
app/app/tests.py
obetron/recipe-app-api
5dbdeb4eea13ca9388091b7c2fcc3461640a397c
[ "MIT" ]
null
null
null
app/app/tests.py
obetron/recipe-app-api
5dbdeb4eea13ca9388091b7c2fcc3461640a397c
[ "MIT" ]
null
null
null
app/app/tests.py
obetron/recipe-app-api
5dbdeb4eea13ca9388091b7c2fcc3461640a397c
[ "MIT" ]
null
null
null
from django.test import TestCase from app.calc import add, substract class MyTestCase(TestCase): def test_add(self): """Test that two numbers are added together""" self.assertEqual(add(11, 3), 14) def test_substract(self): """Test that values are substracted and returned""" se...
27.384615
59
0.674157
48
356
4.958333
0.604167
0.058824
0.10084
0
0
0
0
0
0
0
0
0.032374
0.219101
356
12
60
29.666667
0.823741
0.241573
0
0
0
0
0
0
0
0
0
0
0.285714
1
0.285714
false
0
0.285714
0
0.714286
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
8ff6fb9297dead34c9e84a21e45d008aa46a7bf0
1,146
py
Python
entangle/http.py
radiantone/entangle
82ee5adaf5a3e40bca5b049e272736d3a8322568
[ "MIT" ]
102
2021-04-02T22:15:24.000Z
2022-02-02T10:13:48.000Z
entangle/http.py
radiantone/entangle
82ee5adaf5a3e40bca5b049e272736d3a8322568
[ "MIT" ]
null
null
null
entangle/http.py
radiantone/entangle
82ee5adaf5a3e40bca5b049e272736d3a8322568
[ "MIT" ]
7
2021-06-01T01:52:57.000Z
2021-07-12T22:58:27.000Z
""" http.py - Module that provides http oriented decorators """ from functools import partial import requests def request(function=None, timeout=None, url=None, method='GET', sleep=None): """ :param function: :param timeout: :param url: :param metho...
22.92
69
0.541012
115
1,146
5.252174
0.382609
0.049669
0.046358
0.066225
0
0
0
0
0
0
0
0
0.378709
1,146
49
70
23.387755
0.848315
0.179756
0
0
0
0
0.006704
0
0
0
0
0
0
1
0.208333
false
0
0.083333
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
1
0
0
0
0
1
0
0
2
891463285334b75309673863ed31806da507dbd1
1,080
py
Python
SimGeneral/DataMixingModule/python/supplementary/ReconstructionLocalCosmics_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
SimGeneral/DataMixingModule/python/supplementary/ReconstructionLocalCosmics_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
SimGeneral/DataMixingModule/python/supplementary/ReconstructionLocalCosmics_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # # tracker # from RecoLocalTracker.Configuration.RecoLocalTracker_Cosmics_cff import * from RecoTracker.Configuration.RecoTrackerP5_cff import * from RecoVertex.BeamSpotProducer.BeamSpot_cff import * from RecoTracker.Configuration.RecoTrackerBHM_cff import * from RecoTracker.D...
30
91
0.858333
100
1,080
9.14
0.45
0.098468
0.085339
0.078775
0.080963
0
0
0
0
0
0
0.001005
0.078704
1,080
35
92
30.857143
0.917588
0.108333
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
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
64df1cf1557766bd4bb7ac11c42f4c8045b38a1c
318
py
Python
roglick/mobs.py
Kromey/roglick
b76202af71df0c30be0bd5f06a3428c990476e0e
[ "MIT" ]
6
2015-05-05T21:28:35.000Z
2019-04-14T13:42:38.000Z
roglick/mobs.py
Kromey/roglick
b76202af71df0c30be0bd5f06a3428c990476e0e
[ "MIT" ]
null
null
null
roglick/mobs.py
Kromey/roglick
b76202af71df0c30be0bd5f06a3428c990476e0e
[ "MIT" ]
null
null
null
from roglick.engine import colors,file_obj class Mob(file_obj.MultiFileObj): def __init__(self): super().__init__('data/mobs/*.json') def _process_item(self, item): item['sprite']['color'] = getattr(colors, item['sprite']['color']) return super()._process_item(item) npcs = Mob()
21.2
74
0.650943
40
318
4.825
0.6
0.072539
0.15544
0
0
0
0
0
0
0
0
0
0.185535
318
14
75
22.714286
0.745174
0
0
0
0
0
0.119874
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
64ea6bc027cd362adcba9bdbbd869cf670b03e8e
779
py
Python
books/repositories/elastic.py
OurBooks-Team-Yuml/Books
58abbbcd761f4ec359c6ab62a36ee77da6348e43
[ "MIT" ]
null
null
null
books/repositories/elastic.py
OurBooks-Team-Yuml/Books
58abbbcd761f4ec359c6ab62a36ee77da6348e43
[ "MIT" ]
45
2019-12-16T11:10:27.000Z
2020-05-18T07:15:15.000Z
books/repositories/elastic.py
OurBooks-Team-Yuml/Books
58abbbcd761f4ec359c6ab62a36ee77da6348e43
[ "MIT" ]
null
null
null
from dataclasses import asdict import os from elasticsearch import Elasticsearch from books.entities import Author, Book from books.use_cases.repositories import BaseElasticRepository class ElasticRepository(BaseElasticRepository): def add_book(self, book: Book) -> None: es = self._get_elastic() ...
32.458333
83
0.709884
102
779
5.235294
0.343137
0.05618
0.061798
0.059925
0.146067
0.146067
0.146067
0.146067
0.146067
0.146067
0
0
0.173299
779
23
84
33.869565
0.829193
0
0
0.125
0
0
0.106547
0
0
0
0
0
0
1
0.1875
false
0
0.3125
0.0625
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
64ecc1a5cceb67533c436f6bebe184eefbb4042f
366
py
Python
adminlte/tests.py
ricardochaves/django-adminlte
7d47948119a04056bec4e7572c69f288ab307894
[ "BSD-3-Clause" ]
1
2017-07-25T01:31:31.000Z
2017-07-25T01:31:31.000Z
adminlte/tests.py
ricardochaves/django-adminlte
7d47948119a04056bec4e7572c69f288ab307894
[ "BSD-3-Clause" ]
null
null
null
adminlte/tests.py
ricardochaves/django-adminlte
7d47948119a04056bec4e7572c69f288ab307894
[ "BSD-3-Clause" ]
5
2017-10-17T06:05:21.000Z
2020-12-10T03:04:28.000Z
from django.test import TestCase from django.forms.boundfield import BoundField from django.forms import Widget from .templatetags.extra_functions import add_class # Create your tests here. class ExtraFunciontionsTests(TestCase): def teste_add_class(self): field = Widget() add_class(field, "te...
21.529412
51
0.737705
44
366
6.022727
0.545455
0.113208
0.113208
0
0
0
0
0
0
0
0
0
0.180328
366
16
52
22.875
0.883333
0.062842
0
0
0
0
0.035191
0
0
0
0
0
0.111111
1
0.111111
false
0
0.444444
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
64f169dde7e95020d7483a3a6cfc83ba0f2c825e
2,306
py
Python
litterbox/fabric/dataset_record.py
rwightman/tensorflow-litterbox
ddeeb3a6c7de64e5391050ffbb5948feca65ad3c
[ "Apache-2.0" ]
49
2016-09-09T15:31:36.000Z
2022-03-09T09:43:52.000Z
litterbox/fabric/dataset_record.py
TangxinKevin/tensorflow-litterbox
ddeeb3a6c7de64e5391050ffbb5948feca65ad3c
[ "Apache-2.0" ]
1
2017-06-09T07:24:16.000Z
2017-06-09T15:28:11.000Z
litterbox/fabric/dataset_record.py
TangxinKevin/tensorflow-litterbox
ddeeb3a6c7de64e5391050ffbb5948feca65ad3c
[ "Apache-2.0" ]
29
2016-09-20T07:29:54.000Z
2021-09-28T08:03:49.000Z
# Copyright (C) 2016 Ross Wightman. 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 # =================================...
32.942857
80
0.671726
320
2,306
4.71875
0.428125
0.059603
0.034437
0.042384
0.274172
0.274172
0.239735
0.239735
0.239735
0.239735
0
0.009033
0.183868
2,306
69
81
33.42029
0.793305
0.605377
0
0
0
0
0.050725
0
0
0
0
0
0
1
0.130435
false
0
0.391304
0
0.695652
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
64f6ae25e737cbba29b652bf6659a581666ab26e
1,574
py
Python
src/azure-cli/azure/cli/command_modules/serviceconnector/__init__.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
3,287
2016-07-26T17:34:33.000Z
2022-03-31T09:52:13.000Z
src/azure-cli/azure/cli/command_modules/serviceconnector/__init__.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
19,206
2016-07-26T07:04:42.000Z
2022-03-31T23:57:09.000Z
src/azure-cli/azure/cli/command_modules/serviceconnector/__init__.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
2,575
2016-07-26T06:44:40.000Z
2022-03-31T22:56:06.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
49.1875
119
0.693139
160
1,574
6.5125
0.39375
0.053743
0.069098
0.105566
0.197697
0.161228
0
0
0
0
0
0
0.135959
1,574
31
120
50.774194
0.766176
0.232529
0
0
0
0
0.043261
0.043261
0
0
0
0
0
1
0.157895
false
0
0.315789
0
0.578947
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
64f8b4b24e32e694e7569255090ea2b01133abbc
2,991
py
Python
gui/interface.py
sgtdarkskull/passwordManager
e0570c4dd185bd66319338f682fc653108693aeb
[ "MIT" ]
null
null
null
gui/interface.py
sgtdarkskull/passwordManager
e0570c4dd185bd66319338f682fc653108693aeb
[ "MIT" ]
null
null
null
gui/interface.py
sgtdarkskull/passwordManager
e0570c4dd185bd66319338f682fc653108693aeb
[ "MIT" ]
null
null
null
# from kivy.app import App # from kivy.core.text import LabelBase # from kivy.uix.gridlayout import GridLayout # from kivy.uix.relativelayout import RelativeLayout # from kivy.uix.screenmanager import Screen, ScreenManager # from kivy.config import Config # from gui.components import * # # LabelBase.register(name='Maco...
21.212766
73
0.624875
337
2,991
5.445104
0.299703
0.044142
0.021798
0.028338
0.256676
0.232698
0.232698
0.171662
0.133515
0.077384
0
0.026372
0.213975
2,991
140
74
21.364286
0.754147
0.905383
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
8f1a04cc211ed87cb6f0af3e14b79fa038ff718d
1,354
py
Python
digitalocean/LoadBalancers.py
SuleAlOthman/digitalocean
005e18ebdc4c4d8175641d60af97640531b190a1
[ "MIT" ]
2
2021-02-12T16:09:06.000Z
2021-11-18T14:12:32.000Z
digitalocean/LoadBalancers.py
sulealothman/digitalocean
005e18ebdc4c4d8175641d60af97640531b190a1
[ "MIT" ]
null
null
null
digitalocean/LoadBalancers.py
sulealothman/digitalocean
005e18ebdc4c4d8175641d60af97640531b190a1
[ "MIT" ]
null
null
null
from .reqmethods import Req, Arrange class LoadBalancers(Req, Arrange): slug = 'load_balancers' def __init__(self, token): self.setToken(token) def getAllLoadBalancers(self): data = self.get(f'{self.slug}') if 'id' in data: return data return self.arrangeData(data) def getLoadBalancerById(self, lbI...
26.038462
66
0.706795
176
1,354
5.386364
0.25
0.075949
0.085443
0.082278
0.508439
0.466245
0.410338
0.303797
0.303797
0.303797
0
0
0.145495
1,354
51
67
26.54902
0.81936
0
0
0.394737
0
0
0.199409
0.096012
0
0
0
0
0
1
0.263158
false
0
0.026316
0
0.631579
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
8f298f88db8450c1767bf13f5feb645e359ce31f
418
py
Python
analyzer/darwin/modules/packages/app.py
phdphuc/mac-a-mal-cuckoo
8bbec99de276e854a6f48bc9ff069b911d111af2
[ "MIT" ]
41
2018-03-23T07:51:17.000Z
2021-04-07T08:26:25.000Z
analyzer/darwin/modules/packages/app.py
phdphuc/mac-a-mal-cuckoo
8bbec99de276e854a6f48bc9ff069b911d111af2
[ "MIT" ]
7
2018-04-09T13:38:11.000Z
2020-10-17T08:04:59.000Z
analyzer/darwin/modules/packages/app.py
phdphuc/mac-a-mal-cuckoo
8bbec99de276e854a6f48bc9ff069b911d111af2
[ "MIT" ]
8
2018-03-22T20:07:33.000Z
2020-07-27T08:49:11.000Z
#!/usr/bin/env python # Copyright (C) 2018 phdphuc # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. from os import system, path from lib.core.packages import Package from plistlib import readPlist class App(Package): """ OS X application anal...
26.125
63
0.708134
62
418
4.774194
0.774194
0
0
0
0
0
0
0
0
0
0
0.011799
0.188995
418
15
64
27.866667
0.861357
0.476077
0
0
0
0
0.086124
0
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
8f32fa49eadc4d964717c5da62ff74fed30dd0ac
519
py
Python
Projects/project07/insert-test.py
tonysulfaro/CSE-331
b4f743b1127ebe531ba8417420d043e9c149135a
[ "MIT" ]
2
2019-02-13T17:49:18.000Z
2020-09-30T04:51:53.000Z
Projects/project07/insert-test.py
tonysulfaro/CSE-331
b4f743b1127ebe531ba8417420d043e9c149135a
[ "MIT" ]
null
null
null
Projects/project07/insert-test.py
tonysulfaro/CSE-331
b4f743b1127ebe531ba8417420d043e9c149135a
[ "MIT" ]
null
null
null
from HashTable import HashTable def assertNode(node, key, value): if key is None: assert node is None else: assert node.key == key and node.value == value ht = HashTable() ht.insert("abc", 1) ht.insert("acb", 2) ht.insert("bac", 3) assertNode(ht.table[0], "bac", 3) assertNode(ht.table[1], ...
18.535714
54
0.643545
83
519
4.024096
0.349398
0.179641
0.254491
0.071856
0.251497
0
0
0
0
0
0
0.040094
0.183044
519
27
55
19.222222
0.747642
0.023121
0
0
0
0
0.047525
0
0
0
0
0
0.555556
1
0.055556
false
0
0.055556
0
0.111111
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
1
0
0
0
0
0
0
0
0
0
2