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
cd8a35bcbfb312cda1686fb97584510659ede9ae
669
py
Python
Basic Data Structures/array/ListSlicing.py
rush2catch/algorithms-leetcode
38a5e6aa33d48fa14fe09c50c28a2eaabd736e55
[ "MIT" ]
null
null
null
Basic Data Structures/array/ListSlicing.py
rush2catch/algorithms-leetcode
38a5e6aa33d48fa14fe09c50c28a2eaabd736e55
[ "MIT" ]
null
null
null
Basic Data Structures/array/ListSlicing.py
rush2catch/algorithms-leetcode
38a5e6aa33d48fa14fe09c50c28a2eaabd736e55
[ "MIT" ]
null
null
null
def list_slicing(nums, row, col): new_matrix = [] minimal = row * col if nums is []: return None elif (len(nums) % minimal is 0) and (len(nums) >= minimal): for r in range(row): new_matrix.append(nums[r * col : (r + 1) * col]) return new_matrix else: retur...
27.875
63
0.605381
122
669
3.139344
0.262295
0.258486
0.334204
0.417755
0.467363
0.295039
0.120104
0
0
0
0
0.08577
0.233184
669
23
64
29.086957
0.660819
0
0
0
0
0
0
0
0
0
0
0
0
1
0.047619
false
0
0
0
0.190476
0.380952
0
0
0
null
1
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
3
269e4231c77fb4d48c447cd279a2ecdca59c4ba8
702
py
Python
kqueen_ui/utils/wrappers.py
Richard-Barrett/kqueen-ui
f6b41edddd5130e5cd79773640942e9a824bbae1
[ "MIT" ]
null
null
null
kqueen_ui/utils/wrappers.py
Richard-Barrett/kqueen-ui
f6b41edddd5130e5cd79773640942e9a824bbae1
[ "MIT" ]
null
null
null
kqueen_ui/utils/wrappers.py
Richard-Barrett/kqueen-ui
f6b41edddd5130e5cd79773640942e9a824bbae1
[ "MIT" ]
null
null
null
from flask import request from flask import redirect from flask import session from flask import url_for from functools import wraps def login_required(f): @wraps(f) def decorated_function(*args, **kwargs): if not session.get('user', {}).get('id', None): return redirect(url_for('ui.login',...
29.25
77
0.660969
92
702
4.945652
0.326087
0.079121
0.131868
0.065934
0.650549
0.650549
0.650549
0.650549
0.650549
0.650549
0
0
0.205128
702
23
78
30.521739
0.815412
0
0
0.526316
0
0
0.065527
0
0
0
0
0
0
1
0.210526
false
0
0.263158
0
0.789474
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
1
0
0
3
26a919609f85889cbb4dc125397fcb5ff64f815f
220
py
Python
blank/build.py
davidbelliott/whitgl
bfa1a33b0059b722a773e513653ff802c8dc7d6f
[ "MIT" ]
26
2016-01-09T16:46:53.000Z
2021-05-17T02:41:13.000Z
blank/build.py
davidbelliott/whitgl
bfa1a33b0059b722a773e513653ff802c8dc7d6f
[ "MIT" ]
null
null
null
blank/build.py
davidbelliott/whitgl
bfa1a33b0059b722a773e513653ff802c8dc7d6f
[ "MIT" ]
3
2016-02-19T06:05:19.000Z
2021-03-10T02:19:35.000Z
import os import sys joinp = os.path.join sys.path.insert(0, 'whitgl') sys.path.insert(0, joinp('whitgl', 'input')) import build sys.path.insert(0, 'input') import ninja_syntax build.do_game('Game', '', ['png','ogg'])
18.333333
44
0.690909
36
220
4.166667
0.472222
0.14
0.26
0.28
0
0
0
0
0
0
0
0.015228
0.104545
220
11
45
20
0.746193
0
0
0
0
0
0.145455
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
26b107fd23e87c597f676bc069f5e3b5b448d1e3
593
py
Python
suricata-4.1.4/python/suricata/ctl/test_filestore.py
runtest007/dpdk_surcata_4.1.1
5abf91f483b418b5d9c2dd410b5c850d6ed95c5f
[ "MIT" ]
77
2019-06-17T07:05:07.000Z
2022-03-07T03:26:27.000Z
suricata-4.1.4/python/suricata/ctl/test_filestore.py
clockdad/DPDK_SURICATA-4_1_1
974cc9eb54b0b1ab90eff12a95617e3e293b77d3
[ "MIT" ]
22
2019-07-18T02:32:10.000Z
2022-03-24T03:39:11.000Z
suricata-4.1.4/python/suricata/ctl/test_filestore.py
clockdad/DPDK_SURICATA-4_1_1
974cc9eb54b0b1ab90eff12a95617e3e293b77d3
[ "MIT" ]
49
2019-06-18T03:31:56.000Z
2022-03-13T05:23:10.000Z
from __future__ import print_function import unittest import filestore class PruneTestCase(unittest.TestCase): def test_parse_age(self): self.assertEqual(filestore.parse_age("1s"), 1) self.assertEqual(filestore.parse_age("1m"), 60) self.assertEqual(filestore.parse_age("1h"), 3600) ...
31.210526
71
0.706577
68
593
5.970588
0.441176
0.137931
0.251232
0.285714
0.669951
0.35468
0.35468
0.35468
0.35468
0.35468
0
0.037344
0.187184
593
18
72
32.944444
0.804979
0
0
0.153846
0
0
0.01855
0
0
0
0
0
0.461538
1
0.076923
false
0
0.230769
0
0.384615
0.076923
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
1
0
0
0
0
0
0
0
0
0
3
26d58240f4233e1d13f48a78a83f734ca262cc13
147
py
Python
Qcover/simulator/__init__.py
BAQIS-Quantum/Qcover
ca3776ed73fefa0cfef08042143a8cf842f8dad5
[ "Apache-2.0" ]
38
2021-12-22T03:12:01.000Z
2022-03-17T06:57:10.000Z
Qcover/simulator/__init__.py
BAQIS-Quantum/Qcover
ca3776ed73fefa0cfef08042143a8cf842f8dad5
[ "Apache-2.0" ]
null
null
null
Qcover/simulator/__init__.py
BAQIS-Quantum/Qcover
ca3776ed73fefa0cfef08042143a8cf842f8dad5
[ "Apache-2.0" ]
13
2021-12-22T07:32:44.000Z
2022-02-28T06:47:41.000Z
from .qton import Qcircuit, Qcodes import warnings warnings.filterwarnings("ignore") __all__ = [ # 'Simulator', 'Qcircuit', 'Qcodes' ]
16.333333
34
0.680272
14
147
6.857143
0.714286
0.291667
0
0
0
0
0
0
0
0
0
0
0.190476
147
9
35
16.333333
0.806723
0.081633
0
0
0
0
0.149254
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
26e97e5ea8220154eb41374939938275b9e537b0
741
py
Python
AppPython/app/core/src/forms.py
denalme/AplicacionPython
eb99af3c21f003135192ad040a0a04a40b63ea70
[ "MIT" ]
null
null
null
AppPython/app/core/src/forms.py
denalme/AplicacionPython
eb99af3c21f003135192ad040a0a04a40b63ea70
[ "MIT" ]
null
null
null
AppPython/app/core/src/forms.py
denalme/AplicacionPython
eb99af3c21f003135192ad040a0a04a40b63ea70
[ "MIT" ]
null
null
null
from django import forms from .pqrsf import pqrsf class ContactForm(forms.Form): #Atributos del formulario de contacto usuario = forms.CharField(label="Nombre", required=True, widget=forms.TextInput(attrs={'class':'formulario input', 'placeholder':'Nombre'})) correo = forms.EmailField(label="Correo Electr...
74.1
167
0.747638
87
741
6.367816
0.448276
0.086643
0.144404
0.180505
0.129964
0
0
0
0
0
0
0.001484
0.090418
741
9
168
82.333333
0.820475
0.048583
0
0
0
0
0.285918
0
0
0
0
0
0
1
0
false
0
0.285714
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
26f6c233aae91fb0635319c24ac7a5452088a65f
520
py
Python
gdc_readgroups/exceptions.py
NCI-GDC/gdc-readgroups
874387bb3473b0a0680551339e50b072cc058eb6
[ "Apache-2.0" ]
null
null
null
gdc_readgroups/exceptions.py
NCI-GDC/gdc-readgroups
874387bb3473b0a0680551339e50b072cc058eb6
[ "Apache-2.0" ]
null
null
null
gdc_readgroups/exceptions.py
NCI-GDC/gdc-readgroups
874387bb3473b0a0680551339e50b072cc058eb6
[ "Apache-2.0" ]
1
2020-01-23T22:07:10.000Z
2020-01-23T22:07:10.000Z
""" Exceptions for Read Group headers """ class NoReadGroupError(Exception): """NoReadGroupError""" class SamtoolsViewError(Exception): """SamtoolsViewError""" class InvalidPlatformError(Exception): """InvalidPlatformError""" class InvalidPlatformModelError(Exception): """InvalidPlatformError""" cl...
20.8
43
0.746154
33
520
11.757576
0.424242
0.149485
0.175258
0
0
0
0
0
0
0
0
0
0.121154
520
24
44
21.666667
0.849015
0.323077
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
1
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
1
0
0
3
f8053be6ee69e87199ea558062ed1fe681dca092
361
py
Python
busshaming/models/agency.py
katharosada/busshaming
c8d7cd4baf9ff049cda49c92da4d5ca10f68e6a9
[ "MIT" ]
42
2018-01-20T01:12:25.000Z
2022-02-02T01:40:17.000Z
busshaming/models/agency.py
katharosada/busshaming
c8d7cd4baf9ff049cda49c92da4d5ca10f68e6a9
[ "MIT" ]
2
2018-01-24T03:58:17.000Z
2018-06-10T01:05:57.000Z
busshaming/models/agency.py
katharosada/busshaming
c8d7cd4baf9ff049cda49c92da4d5ca10f68e6a9
[ "MIT" ]
7
2018-01-24T05:49:13.000Z
2018-12-03T08:47:43.000Z
from django.db import models class Agency(models.Model): gtfs_agency_id = models.CharField(max_length=200) feed = models.ForeignKey('Feed') name = models.CharField(max_length=200) class Meta: unique_together = ('gtfs_agency_id', 'feed') def __str__(self): return f'{self.feed.slug...
25.785714
72
0.67867
49
361
4.734694
0.530612
0.12931
0.155172
0.206897
0.232759
0
0
0
0
0
0
0.020478
0.188366
361
13
73
27.769231
0.771331
0
0
0
0
0
0.210526
0.058172
0
0
0
0
0
1
0.111111
false
0
0.111111
0.111111
0.888889
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
1
0
0
3
f81030a9747b6fbce3be0c3890586bc3da2d99c2
27,895
py
Python
nova/network/ldapdns.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/network/ldapdns.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/network/ldapdns.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
2
2017-07-20T17:31:34.000Z
2020-07-24T02:42:19.000Z
begin_unit comment|'# Copyright 2012 Andrew Bogott for the Wikimedia Foundation' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n' comment|'# a copy ...
12.044473
174
0.578276
4,103
27,895
3.863758
0.067024
0.169936
0.110389
0.081246
0.793099
0.737337
0.676276
0.613196
0.55018
0.466978
0
0.001835
0.120846
27,895
2,315
175
12.049676
0.644593
0
0
0.942981
0
0.000864
0.338484
0.00803
0
0
0
0
0.000432
0
null
null
0.001296
0.005184
null
null
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
f81ca2ce592e84428e81a66ce38e515a6ee5edcf
42
py
Python
firecloud/__about__.py
jnktsj/fiss
2cfce1f6dc0c43f62c51e8a9296946b9990a76fa
[ "BSD-3-Clause" ]
20
2017-08-05T08:44:51.000Z
2022-03-24T15:33:48.000Z
firecloud/__about__.py
jnktsj/fiss
2cfce1f6dc0c43f62c51e8a9296946b9990a76fa
[ "BSD-3-Clause" ]
117
2016-10-26T15:31:48.000Z
2022-02-16T23:06:33.000Z
firecloud/__about__.py
jnktsj/fiss
2cfce1f6dc0c43f62c51e8a9296946b9990a76fa
[ "BSD-3-Clause" ]
21
2017-03-13T15:16:03.000Z
2022-02-25T19:14:36.000Z
# Package version __version__ = "0.16.31"
14
23
0.714286
6
42
4.333333
0.833333
0
0
0
0
0
0
0
0
0
0
0.138889
0.142857
42
2
24
21
0.583333
0.357143
0
0
0
0
0.28
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
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
3
f83bc822a6f47feb415380dd8f541756419c1e6c
265
py
Python
tests/conftest.py
sparkythehuman/sms-service--send-message
8f095ba181f1d42df3968fe34d5e20f30851e021
[ "MIT" ]
null
null
null
tests/conftest.py
sparkythehuman/sms-service--send-message
8f095ba181f1d42df3968fe34d5e20f30851e021
[ "MIT" ]
null
null
null
tests/conftest.py
sparkythehuman/sms-service--send-message
8f095ba181f1d42df3968fe34d5e20f30851e021
[ "MIT" ]
null
null
null
import pytest @pytest.fixture(autouse=True) def set_up(monkeypatch): monkeypatch.setenv('TABLE_NAME', 'test-table') monkeypatch.setenv('TWILIO_ACCOUNT_SID', 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') monkeypatch.setenv('TWILIO_AUTH_TOKEN', 'my_auth_token')
33.125
82
0.784906
30
265
6.666667
0.666667
0.255
0.23
0
0
0
0
0
0
0
0
0
0.090566
265
8
83
33.125
0.829876
0
0
0
0
0
0.383459
0.12782
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
f873639a13e98ee3a4151d1be3542d91c969ac64
530
py
Python
djangobmf/contrib/team/views.py
dmatthes/django-bmf
3a97167de7841b13f1ddd23b33ae65e98dc49dfd
[ "BSD-3-Clause" ]
1
2020-05-11T08:00:49.000Z
2020-05-11T08:00:49.000Z
djangobmf/contrib/team/views.py
dmatthes/django-bmf
3a97167de7841b13f1ddd23b33ae65e98dc49dfd
[ "BSD-3-Clause" ]
null
null
null
djangobmf/contrib/team/views.py
dmatthes/django-bmf
3a97167de7841b13f1ddd23b33ae65e98dc49dfd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # ex:set fileencoding=utf-8: from __future__ import unicode_literals from djangobmf.views import ModuleCreateView from djangobmf.views import ModuleUpdateView from djangobmf.views import ModuleDetailView from .forms import BMFTeamUpdateForm from .forms import BMFTeamCreateForm class TeamCreateVie...
22.083333
44
0.828302
54
530
7.981481
0.481481
0.090487
0.12529
0.167053
0
0
0
0
0
0
0
0.002146
0.120755
530
23
45
23.043478
0.922747
0.081132
0
0.166667
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
1
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
1
0
0
3
f88f6e13c4185abcf8cceff79dbfda6d0f9a19ba
486
py
Python
wsgi/settings.py
zhemao/speakeasy
793bcca6d30fe31b1579bb8464f1eafacd6eb593
[ "BSD-2-Clause" ]
1
2022-02-02T10:40:59.000Z
2022-02-02T10:40:59.000Z
wsgi/settings.py
zhemao/speakeasy
793bcca6d30fe31b1579bb8464f1eafacd6eb593
[ "BSD-2-Clause" ]
null
null
null
wsgi/settings.py
zhemao/speakeasy
793bcca6d30fe31b1579bb8464f1eafacd6eb593
[ "BSD-2-Clause" ]
null
null
null
import os MONGO_HOST = os.getenv('OPENSHIFT_NOSQL_DB_HOST') MONGO_PORT = os.getenv('OPENSHIFT_NOSQL_DB_PORT') MONGO_USERNAME = os.getenv('OPENSHIFT_NOSQL_DB_USERNAME') MONGO_PASSWORD = os.getenv('OPENSHIFT_NOSQL_DB_PASSWORD') MONGO_DBNAME = 'speakeasy' PRIV_KEY_FILE = os.getenv('OPENSHIFT_DATA_DIR') + '/server_privat...
30.375
71
0.790123
75
486
4.68
0.36
0.136752
0.290598
0.250712
0.48433
0.210826
0.210826
0.210826
0
0
0
0
0.082305
486
15
72
32.4
0.786996
0
0
0
0
0
0.374486
0.205761
0
0
0
0
0
1
0
false
0.090909
0.090909
0
0.090909
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
1
0
0
0
0
0
3
f8afd1b0a1d62c5e20c07db83d59c2c494f17348
13,343
py
Python
source/rttov_test/profile-datasets-py/div83/077.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
source/rttov_test/profile-datasets-py/div83/077.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
1
2022-03-12T12:19:59.000Z
2022-03-12T12:19:59.000Z
source/rttov_test/profile-datasets-py/div83/077.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
""" Profile ../profile-datasets-py/div83/077.py file automaticaly created by prof_gen.py script """ self["ID"] = "../profile-datasets-py/div83/077.py" self["Q"] = numpy.array([ 3.01408100e+00, 3.40341800e+00, 3.94918400e+00, 4.08209300e+00, 4.65722800e+00, 5.59385900e+00, 5.9688...
57.512931
92
0.566739
2,008
13,343
3.764442
0.462151
0.014684
0.008731
0.0127
0.014288
0.014288
0.007144
0.007144
0.007144
0.007144
0
0.700165
0.271378
13,343
231
93
57.761905
0.07735
0.00712
0
0
0
0
0.018818
0.002645
0
0
0
0
0
1
0
true
0
0
0
0
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
1
0
0
0
0
0
0
3
f8b309e5e28868df32235aef95ba627c1ca50e48
1,888
py
Python
tests/examples/c_decisions/tests_decisions.py
MSGP117/acc-cosc-1336-spring-2022-MSGP117
46fdfa5da8f8eb887d2c79fe205b8a0064d6903d
[ "MIT" ]
null
null
null
tests/examples/c_decisions/tests_decisions.py
MSGP117/acc-cosc-1336-spring-2022-MSGP117
46fdfa5da8f8eb887d2c79fe205b8a0064d6903d
[ "MIT" ]
null
null
null
tests/examples/c_decisions/tests_decisions.py
MSGP117/acc-cosc-1336-spring-2022-MSGP117
46fdfa5da8f8eb887d2c79fe205b8a0064d6903d
[ "MIT" ]
1
2022-02-12T03:50:32.000Z
2022-02-12T03:50:32.000Z
import unittest from src.examples.c_decisions.decisions import is_letter_consonant, logical_op_precedence, num_is_not_in_range_or, number_is_in_range_and, test_config from src.examples.c_decisions.decisions import get_letter_grade from src.examples.c_decisions.decisions import logical_op_precedence from src.examples.c...
46.04878
150
0.743114
281
1,888
4.6121
0.174377
0.219907
0.04321
0.074074
0.462963
0.396605
0.37037
0.246914
0.195988
0.195988
0
0.044514
0.155191
1,888
41
151
46.04878
0.768025
0
0
0
0
0
0.011117
0
0
0
0
0
0.59375
1
0.21875
false
0
0.15625
0
0.40625
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
1
0
1
0
0
0
0
0
0
0
3
f8bf2336876845664f66233eebc0fc4562e2c6e0
296
py
Python
stock.py
lokesh-lraj/30-Day-LeetCoding-Challenge-april_2020
270e99be4a178587b2fc89113cdf3a931210e84f
[ "MIT" ]
3
2020-04-18T09:03:21.000Z
2020-04-18T09:03:25.000Z
stock.py
lokesh-lraj/30-Day-LeetCoding-Challenge-april_2020
270e99be4a178587b2fc89113cdf3a931210e84f
[ "MIT" ]
null
null
null
stock.py
lokesh-lraj/30-Day-LeetCoding-Challenge-april_2020
270e99be4a178587b2fc89113cdf3a931210e84f
[ "MIT" ]
null
null
null
def maxProfit(self, prices: List[int]) -> int: with_stock = -2147483647 without_stock = 0 for stock in prices : with_stock = max(with_stock, without_stock - stock) without_stock = max(without_stock, with_stock + stock) return without_stock
37
66
0.628378
36
296
4.916667
0.416667
0.338983
0.19209
0
0
0
0
0
0
0
0
0.052632
0.293919
296
7
67
42.285714
0.794258
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
3e11bd4f5fe50f533d78b84480d62520eb696807
151
py
Python
NhMedicalSite/panel/urls.py
Dogruyer/ecommerce
aa505b401e42882a96e6ef6375bd1a1ed95c5b85
[ "Apache-2.0" ]
null
null
null
NhMedicalSite/panel/urls.py
Dogruyer/ecommerce
aa505b401e42882a96e6ef6375bd1a1ed95c5b85
[ "Apache-2.0" ]
null
null
null
NhMedicalSite/panel/urls.py
Dogruyer/ecommerce
aa505b401e42882a96e6ef6375bd1a1ed95c5b85
[ "Apache-2.0" ]
1
2018-11-01T11:10:58.000Z
2018-11-01T11:10:58.000Z
from django.conf.urls import url from django.conf import settings from panel.views import * urlpatterns = [ url(r'^$', index, name='index'), ]
13.727273
36
0.688742
21
151
4.952381
0.619048
0.192308
0.269231
0
0
0
0
0
0
0
0
0
0.178808
151
10
37
15.1
0.83871
0
0
0
0
0
0.046358
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
3e13f1a614fdcd99556bcda63d31e15a470031fa
998
py
Python
entity/address_entity.py
rpinaa/python-flask-microservice
3e479bd1653f8e846ae0b84ffb4f20481dfc7c5d
[ "MIT" ]
1
2019-09-23T20:00:52.000Z
2019-09-23T20:00:52.000Z
entity/address_entity.py
rpinaa/python-flask-microservice
3e479bd1653f8e846ae0b84ffb4f20481dfc7c5d
[ "MIT" ]
null
null
null
entity/address_entity.py
rpinaa/python-flask-microservice
3e479bd1653f8e846ae0b84ffb4f20481dfc7c5d
[ "MIT" ]
null
null
null
from db import db class AddressEntity(db.Model): __tablename__ = "address" id = db.Column(db.Integer, primary_key=True) int_number = db.Column(db.String(15), nullable=False) ext_number = db.Column(db.String(15), nullable=False) block = db.Column(db.String(15), nullable=False) number = db.Colu...
39.92
99
0.700401
141
998
4.865248
0.340426
0.151604
0.189504
0.209913
0.581633
0.543732
0.543732
0.272595
0
0
0
0.021352
0.155311
998
24
100
41.583333
0.792408
0
0
0
0
0
0.007014
0
0
0
0
0
0
1
0.05
false
0
0.05
0
0.85
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
1
0
0
3
3e46f25a0298cc777cd9c283c93eaadaceb537e7
324
py
Python
tests/test_client.py
yakhinvadim/enterprise-search-python
a2010e8773a6250cb81ea48f760088bb23466bb1
[ "Apache-2.0" ]
null
null
null
tests/test_client.py
yakhinvadim/enterprise-search-python
a2010e8773a6250cb81ea48f760088bb23466bb1
[ "Apache-2.0" ]
null
null
null
tests/test_client.py
yakhinvadim/enterprise-search-python
a2010e8773a6250cb81ea48f760088bb23466bb1
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from elastic_workplace_search.client import Client class TestClient(TestCase): dummy_authorization_token = 'authorization_token' def setUp(self): self.client = Client('authorization_token') def test_constructor(self): self.assertIsInstance(self.client, Clie...
23.142857
53
0.756173
36
324
6.611111
0.527778
0.226891
0.176471
0
0
0
0
0
0
0
0
0
0.169753
324
13
54
24.923077
0.884758
0
0
0
0
0
0.117284
0
0
0
0
0
0.125
1
0.25
false
0
0.25
0
0.75
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
1
0
0
0
0
1
0
0
3
3e5961792d37ca4a7091e59c1c74180b0cb0ef47
337,498
py
Python
fitparse/profile.py
vlcvboyer/python-fitparse
bef76231a1c8dddfafc23070b43684e7d0c6e916
[ "MIT" ]
null
null
null
fitparse/profile.py
vlcvboyer/python-fitparse
bef76231a1c8dddfafc23070b43684e7d0c6e916
[ "MIT" ]
1
2019-01-03T08:56:11.000Z
2019-06-05T09:24:13.000Z
fitparse/profile.py
vlcvboyer/python-fitparse
bef76231a1c8dddfafc23070b43684e7d0c6e916
[ "MIT" ]
1
2018-08-30T15:06:12.000Z
2018-08-30T15:06:12.000Z
################# BEGIN AUTOMATICALLY GENERATED FIT PROFILE ################## ########################### DO NOT EDIT THIS FILE ############################ ####### EXPORTED PROFILE FROM SDK VERSION 20.33 AT 2017-05-17 22:36:12 ####### ########## PARSED 118 TYPES (1699 VALUES), 76 MESSAGES (950 FIELDS) ########## fro...
33.844565
336
0.397916
28,750
337,498
4.448835
0.079096
0.053571
0.085783
0.034026
0.625672
0.592093
0.567996
0.543275
0.497076
0.441214
0
0.080312
0.503787
337,498
9,971
337
33.847959
0.683426
0.099103
0
0.716376
1
0
0.147265
0.028552
0
0
0.015385
0
0
1
0
false
0.000303
0.000101
0
0.000101
0.000101
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
3e7fe9149a1b5f7c3cd431d38f69f6e9b05ff08e
108
py
Python
loops_part2/sequence_2k+1.py
MaggieIllustrations/softuni-github-programming
f5695cb14602f3d2974359f6d8734332acc650d3
[ "MIT" ]
null
null
null
loops_part2/sequence_2k+1.py
MaggieIllustrations/softuni-github-programming
f5695cb14602f3d2974359f6d8734332acc650d3
[ "MIT" ]
null
null
null
loops_part2/sequence_2k+1.py
MaggieIllustrations/softuni-github-programming
f5695cb14602f3d2974359f6d8734332acc650d3
[ "MIT" ]
1
2022-01-14T17:12:44.000Z
2022-01-14T17:12:44.000Z
number = int(input()) counter = 1 while counter <= number: print(counter) counter = 2 * counter + 1
18
29
0.62963
14
108
4.857143
0.571429
0.235294
0
0
0
0
0
0
0
0
0
0.036585
0.240741
108
6
29
18
0.792683
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
3e8fb96193b2244d64a924fa63c9c59dfafd9741
557
py
Python
Software_University/fundamentals/functions/lecture/orders.py
Ivanazzz/SoftUni-W3resource-Python
892321a290e22a91ff2ac2fef5316179a93f2f17
[ "MIT" ]
1
2022-01-26T07:38:11.000Z
2022-01-26T07:38:11.000Z
Software_University/fundamentals/functions/lecture/orders.py
Ivanazzz/SoftUni-W3resource-Python
892321a290e22a91ff2ac2fef5316179a93f2f17
[ "MIT" ]
null
null
null
Software_University/fundamentals/functions/lecture/orders.py
Ivanazzz/SoftUni-W3resource-Python
892321a290e22a91ff2ac2fef5316179a93f2f17
[ "MIT" ]
null
null
null
product_type = input("Enter the product type(coffee, water, coke, snacks): ") quantity = int(input("Enter the quantity: ")) def price(): if product_type == "coffee": total_price = quantity * 1.50 return total_price elif product_type == "water": total_price = quantity * 1.00 retu...
30.944444
77
0.626571
71
557
4.732394
0.352113
0.238095
0.214286
0.169643
0.276786
0.276786
0
0
0
0
0
0.031477
0.258528
557
18
78
30.944444
0.782082
0
0
0.25
0
0
0.191756
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.3125
0.0625
0
0
0
null
1
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
3
e436ff03150d44e0196337e442c791322d057adb
95
py
Python
python/p287ex5.py
ThePeeps191/dmoj-solutions
7137e945f3f595c481ad4d29e1dc3a77d8b26e55
[ "MIT" ]
1
2022-01-23T16:02:14.000Z
2022-01-23T16:02:14.000Z
python/p287ex5.py
ThePeeps191/dmoj-solutions
7137e945f3f595c481ad4d29e1dc3a77d8b26e55
[ "MIT" ]
5
2022-01-23T00:16:49.000Z
2022-01-30T04:37:45.000Z
python/p287ex5.py
ThePeeps191/dmoj-solutions
7137e945f3f595c481ad4d29e1dc3a77d8b26e55
[ "MIT" ]
1
2022-01-23T00:03:47.000Z
2022-01-23T00:03:47.000Z
# not yet finished for _ in range(int(input())):print(len(list(set(input().replace("-", "")))))
47.5
76
0.631579
14
95
4.214286
0.928571
0
0
0
0
0
0
0
0
0
0
0
0.084211
95
2
76
47.5
0.678161
0.168421
0
0
0
0
0.012821
0
0
0
0
0
0
1
0
false
0
0
0
0
1
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
1
0
3
e43f5553851f44ad5911378e9d31bfdce168b90d
1,207
py
Python
rfid/eggplant/pigeon/migrations/0003_auto_20160328_0809.py
psiyan/rfid
401a093958ffafdcd10259cc9e19b7bd9f0c0e8c
[ "Apache-2.0" ]
null
null
null
rfid/eggplant/pigeon/migrations/0003_auto_20160328_0809.py
psiyan/rfid
401a093958ffafdcd10259cc9e19b7bd9f0c0e8c
[ "Apache-2.0" ]
null
null
null
rfid/eggplant/pigeon/migrations/0003_auto_20160328_0809.py
psiyan/rfid
401a093958ffafdcd10259cc9e19b7bd9f0c0e8c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-03-28 08:09 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pigeon', '0002_auto_20160327_0723'), ] operations = [ migrations.AlterField(...
29.439024
93
0.584093
119
1,207
5.739496
0.487395
0.146413
0.183016
0.212299
0.493411
0.408492
0.122987
0.122987
0
0
0
0.049296
0.294118
1,207
40
94
30.175
0.752347
0.05551
0
0.454545
1
0
0.119613
0.020229
0
0
0
0
0
1
0
false
0
0.060606
0
0.151515
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e44176bdde09e0e534875279d12d7f2e7e878bfb
40,102
py
Python
pyboto3/workdocs.py
thecraftman/pyboto3
653a0db2b00b06708334431da8f169d1f7c7734f
[ "MIT" ]
null
null
null
pyboto3/workdocs.py
thecraftman/pyboto3
653a0db2b00b06708334431da8f169d1f7c7734f
[ "MIT" ]
null
null
null
pyboto3/workdocs.py
thecraftman/pyboto3
653a0db2b00b06708334431da8f169d1f7c7734f
[ "MIT" ]
null
null
null
''' The MIT License (MIT) Copyright (c) 2016 WavyCloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
29.143895
310
0.573039
3,993
40,102
5.72026
0.109692
0.040935
0.023904
0.025743
0.664069
0.617924
0.587978
0.574843
0.550983
0.50834
0
0.012775
0.328512
40,102
1,375
311
29.165091
0.83545
0.808588
0
0.5
0
0
0
0
0
0
0
0
0
1
0.5
false
0.515152
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
e4423151d9e155eac596c2c27348cae0215b843a
983
py
Python
binding/python/ddls/feeder/feeder.py
huzelin/ddls
3333a669c59ce2e525945f814a54784dafc6191b
[ "MIT" ]
3
2019-01-03T07:34:01.000Z
2020-02-13T19:53:35.000Z
binding/python/ddls/feeder/feeder.py
huzelin/ddls
3333a669c59ce2e525945f814a54784dafc6191b
[ "MIT" ]
null
null
null
binding/python/ddls/feeder/feeder.py
huzelin/ddls
3333a669c59ce2e525945f814a54784dafc6191b
[ "MIT" ]
1
2020-05-06T11:08:07.000Z
2020-05-06T11:08:07.000Z
""" Feeder for batch production""" from __future__ import absolute_import import ctypes from ddls.base import check_call, LIB, c_str, c_array from ddls.feeder.batch_iterator import BatchIterator class Feeder(object): """ The feeder """ def __init__(self): """ create a new Tensor instance "...
27.305556
84
0.580875
111
983
4.900901
0.54955
0.066176
0.088235
0.088235
0
0
0
0
0
0
0
0.001508
0.325534
983
35
85
28.085714
0.819005
0.223805
0
0
0
0
0
0
0
0
0
0
0
1
0.235294
false
0.058824
0.235294
0
0.588235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
e4751dd89498b1da7109ee5f07994f5fbd04447a
95
py
Python
vulture/whitelists/logging_whitelist.py
kianmeng/vulture
b8cbc44dac89b2a96f6da7033424f52525d6f574
[ "MIT" ]
2,081
2017-03-06T14:45:21.000Z
2022-03-31T13:29:34.000Z
vulture/whitelists/logging_whitelist.py
kianmeng/vulture
b8cbc44dac89b2a96f6da7033424f52525d6f574
[ "MIT" ]
248
2017-03-06T12:13:37.000Z
2022-03-15T11:21:27.000Z
vulture/whitelists/logging_whitelist.py
kianmeng/vulture
b8cbc44dac89b2a96f6da7033424f52525d6f574
[ "MIT" ]
111
2017-03-06T20:48:04.000Z
2022-03-17T09:49:32.000Z
import logging logging.Filter.filter logging.getLogger().propagate logging.StreamHandler.emit
15.833333
29
0.852632
11
95
7.363636
0.636364
0
0
0
0
0
0
0
0
0
0
0
0.063158
95
5
30
19
0.910112
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
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
1
0
0
0
0
0
0
3
e48fad25c05c483e3b144a00ff76a128d96f4a18
89
py
Python
colossalai/utils/commons/__init__.py
mrriteshranjan/ColossalAI
0d057a1bae67b915a385be7edab7da83413cb645
[ "Apache-2.0" ]
null
null
null
colossalai/utils/commons/__init__.py
mrriteshranjan/ColossalAI
0d057a1bae67b915a385be7edab7da83413cb645
[ "Apache-2.0" ]
null
null
null
colossalai/utils/commons/__init__.py
mrriteshranjan/ColossalAI
0d057a1bae67b915a385be7edab7da83413cb645
[ "Apache-2.0" ]
null
null
null
from .bucket_tensor_copy import BucketizedTensorCopy __all__ = ['BucketizedTensorCopy']
22.25
52
0.842697
8
89
8.625
0.875
0
0
0
0
0
0
0
0
0
0
0
0.089888
89
3
53
29.666667
0.851852
0
0
0
0
0
0.224719
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
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
1
0
0
0
0
3
e494dbf6ede35cd65a3c40c381a319f33cf3e78d
2,563
py
Python
app/models.py
MilanMathew/machine_test_focaloid
fa179e655c531825167e97aed4e2d6affea9c736
[ "MIT" ]
null
null
null
app/models.py
MilanMathew/machine_test_focaloid
fa179e655c531825167e97aed4e2d6affea9c736
[ "MIT" ]
null
null
null
app/models.py
MilanMathew/machine_test_focaloid
fa179e655c531825167e97aed4e2d6affea9c736
[ "MIT" ]
null
null
null
from datetime import datetime from app import db class City(db.Model): __tablename__ = 'Cities' __table_args__ = {'sqlite_autoincrement': True} id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(50), index=True) class Venue(db.Model): __tablename__ = 'Venues' __table_arg...
37.144928
71
0.684354
356
2,563
4.685393
0.182584
0.143885
0.179856
0.214029
0.70024
0.70024
0.63789
0.585132
0.38729
0.26259
0
0.011601
0.159188
2,563
69
72
37.144928
0.762413
0.049161
0
0.320755
0
0
0.111294
0
0
0
0
0
0
1
0.037736
false
0
0.037736
0.037736
1
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
e4ad4d1b1a19faa8dce0b003b788008a58802470
10,457
py
Python
HW10/b06502027_hw10.py
Pyrojewel-zard/ML
d8a11d893eed3e889b9af0d6aeb3ab08cd60d997
[ "MIT" ]
5
2021-11-26T10:05:03.000Z
2022-03-17T11:45:46.000Z
HW10/b06502027_hw10.py
Pyrojewel-zard/ML
d8a11d893eed3e889b9af0d6aeb3ab08cd60d997
[ "MIT" ]
null
null
null
HW10/b06502027_hw10.py
Pyrojewel-zard/ML
d8a11d893eed3e889b9af0d6aeb3ab08cd60d997
[ "MIT" ]
1
2022-01-09T02:17:19.000Z
2022-01-09T02:17:19.000Z
# -*- coding: utf-8 -*- """「hw10_adversarial_attack.ipynb」的副本 Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1yPa2ushzqw8FNobfonL79PHzudn0vjrN # **Homework 10 - Adversarial Attack** Slides: https://reurl.cc/v5kXkk Videos: TA: ntu-ml-2021spring-ta@g...
38.025455
286
0.67505
1,611
10,457
4.271881
0.247672
0.012787
0.007847
0.00959
0.221302
0.19907
0.194711
0.171607
0.161726
0.137169
0
0.024723
0.187721
10,457
275
287
38.025455
0.78373
0.155494
0
0.223881
1
0
0.08896
0.017367
0
0
0
0.010909
0
0
null
null
0
0.08209
null
null
0.029851
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
1
0
1
0
0
0
0
0
0
0
0
3
e4be20e88f19e786bc1af90364e0539952a470e3
88
py
Python
django_mix_admin/__init__.py
longminxiang/django_mix_admin
375cca608b3128c7f96045628bb863e9b49a8b15
[ "MIT" ]
null
null
null
django_mix_admin/__init__.py
longminxiang/django_mix_admin
375cca608b3128c7f96045628bb863e9b49a8b15
[ "MIT" ]
null
null
null
django_mix_admin/__init__.py
longminxiang/django_mix_admin
375cca608b3128c7f96045628bb863e9b49a8b15
[ "MIT" ]
null
null
null
__version_info__ = (0, 1, 5) __version__ = '.'.join([str(v) for v in __version_info__])
29.333333
58
0.681818
14
88
3.285714
0.714286
0.478261
0
0
0
0
0
0
0
0
0
0.039474
0.136364
88
2
59
44
0.565789
0
0
0
0
0
0.011364
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e4e19e9928517728d0a9a1ccaaa4cb714b4df75b
197
py
Python
Python/count-negative-numbers-in-a-sorted-matrix.py
kuanhungchen/leetcode-practice
b75e773ada60b685da1576ae5f2234b70bc27842
[ "CNRI-Python" ]
1
2020-04-29T06:19:44.000Z
2020-04-29T06:19:44.000Z
Python/count-negative-numbers-in-a-sorted-matrix.py
kuanhungchen/leetcode-practice
b75e773ada60b685da1576ae5f2234b70bc27842
[ "CNRI-Python" ]
null
null
null
Python/count-negative-numbers-in-a-sorted-matrix.py
kuanhungchen/leetcode-practice
b75e773ada60b685da1576ae5f2234b70bc27842
[ "CNRI-Python" ]
null
null
null
class Solution: def countNegatives(self, grid): ans = 0 for row in grid: for ele in row: if ele < 0: ans += 1 return ans
21.888889
35
0.426396
23
197
3.652174
0.652174
0
0
0
0
0
0
0
0
0
0
0.03125
0.51269
197
8
36
24.625
0.84375
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e4e8ee9a0f629d72298e4d9e7b1a98a2e8e24f7f
368
py
Python
server/apps/gallery/models.py
arthamtrust/backend
d1981766297b1cf2888b37af927f69fde750a23e
[ "MIT" ]
null
null
null
server/apps/gallery/models.py
arthamtrust/backend
d1981766297b1cf2888b37af927f69fde750a23e
[ "MIT" ]
null
null
null
server/apps/gallery/models.py
arthamtrust/backend
d1981766297b1cf2888b37af927f69fde750a23e
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Gallery(models.Model): """ Model for gallery. Cards with title and thumbnail along with a link to google album """ title = models.CharField(max_length=200) thumbnail = models.CharField(max_length=100) url = models.URLField() ...
21.647059
53
0.682065
49
368
5
0.693878
0.122449
0.146939
0.195918
0
0
0
0
0
0
0
0.021201
0.230978
368
16
54
23
0.844523
0.296196
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
1
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
1
0
0
3
e4eb75089052398010f0fca752c0fa03e64af7f4
206
py
Python
trade_system/users/admin.py
Artsiom-Shlapakou/trade-system
41c7bd6779b159d1c867968f5230d4ccbc37995a
[ "MIT" ]
null
null
null
trade_system/users/admin.py
Artsiom-Shlapakou/trade-system
41c7bd6779b159d1c867968f5230d4ccbc37995a
[ "MIT" ]
null
null
null
trade_system/users/admin.py
Artsiom-Shlapakou/trade-system
41c7bd6779b159d1c867968f5230d4ccbc37995a
[ "MIT" ]
null
null
null
from django.contrib import admin from trade_system.users.models import Wallet from django.contrib.auth import get_user_model User = get_user_model() admin.site.register(User) admin.site.register(Wallet)
20.6
46
0.825243
32
206
5.15625
0.5
0.121212
0.206061
0
0
0
0
0
0
0
0
0
0.097087
206
9
47
22.888889
0.887097
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
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
1
0
0
0
0
3
900c0665baf28282fa05f41faa6b983f942bdbf2
343
py
Python
crossasr/estimator.py
mhilmiasyrofi/CrossASRv2
202b9a7caadf5f8d6f115f776526960af35a73a3
[ "MIT" ]
3
2021-05-12T02:48:06.000Z
2021-12-21T14:45:56.000Z
crossasr/estimator.py
mhilmiasyrofi/CrossASRv2
202b9a7caadf5f8d6f115f776526960af35a73a3
[ "MIT" ]
null
null
null
crossasr/estimator.py
mhilmiasyrofi/CrossASRv2
202b9a7caadf5f8d6f115f776526960af35a73a3
[ "MIT" ]
1
2021-06-14T11:15:35.000Z
2021-06-14T11:15:35.000Z
class Estimator: def __init__(self, name:str): self.name = name def getName(self) -> str : return self.name def setName(self, name:str): self.name = name def fit(self, X:[str], y:[int]): raise NotImplementedError() def predict(self, X:[str]): raise...
21.4375
36
0.571429
41
343
4.682927
0.414634
0.208333
0.114583
0.15625
0.270833
0.270833
0.270833
0
0
0
0
0
0.303207
343
15
37
22.866667
0.803347
0
0
0.363636
0
0
0
0
0
0
0
0
0
1
0.454545
false
0
0
0.090909
0.636364
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
1
0
0
0
0
1
0
0
3
9015d694e84b3f0cc392aae6d053e1e708a338df
627
py
Python
verifai/samplers/__init__.py
jst-qaml/VerifAI
d91bc1289d720c055a36fa0e1ad9f68b986ca1a4
[ "BSD-3-Clause" ]
1
2020-07-27T13:32:01.000Z
2020-07-27T13:32:01.000Z
verifai/samplers/__init__.py
shromonag/VerifAI
ace214d1c3282ed5ea63ee3f52457e35f54ebb62
[ "BSD-3-Clause" ]
null
null
null
verifai/samplers/__init__.py
shromonag/VerifAI
ace214d1c3282ed5ea63ee3f52457e35f54ebb62
[ "BSD-3-Clause" ]
null
null
null
from .domain_sampler import SamplingError, SplitSampler from .feature_sampler import FeatureSampler, LateFeatureSampler from .halton import HaltonSampler from .cross_entropy import (CrossEntropySampler, ContinuousCrossEntropySampler, DiscreteCrossEntropySampler) from .random_sampler import RandomSampler from .bayes...
36.882353
79
0.845295
63
627
8.301587
0.619048
0.099426
0
0
0
0
0
0
0
0
0
0
0.124402
627
16
80
39.1875
0.952641
0.138756
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.071429
0.642857
0
0.642857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
3
90171f9ff5db50b3b195ffb3fb8c3f04d8941fed
159
py
Python
sb3_training/gym-iotmarket/setup.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
sb3_training/gym-iotmarket/setup.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
sb3_training/gym-iotmarket/setup.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='gym_iotmarket', version='0.0.1', install_requires=['gym','scipy','numpy'] # And any other dependencies )
26.5
76
0.685535
21
159
5.095238
0.857143
0
0
0
0
0
0
0
0
0
0
0.022556
0.163522
159
6
77
26.5
0.781955
0.163522
0
0
0
0
0.234848
0
0
0
0
0
0
1
0
true
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
1
0
0
0
0
0
0
3
903c8cc3beaefd54c725e04177cee3cf91f69504
348
py
Python
myproject/myapp/admin.py
wasit7/cs459_2018
78243bbc939fcc2ed7528df8c14ad75e4b78d9a2
[ "BSD-2-Clause" ]
null
null
null
myproject/myapp/admin.py
wasit7/cs459_2018
78243bbc939fcc2ed7528df8c14ad75e4b78d9a2
[ "BSD-2-Clause" ]
null
null
null
myproject/myapp/admin.py
wasit7/cs459_2018
78243bbc939fcc2ed7528df8c14ad75e4b78d9a2
[ "BSD-2-Clause" ]
null
null
null
from django.contrib import admin from .models import Product class ProductAdmin(admin.ModelAdmin): fields = ('name', 'price', 'category', 'image') list_display = ('name', 'price', 'category', 'image') list_filter = ('category', 'price', ) list_editable = ('price', 'category', 'image', ) admin.site.reg...
34.8
57
0.678161
38
348
6.131579
0.552632
0.167382
0.23176
0.188841
0.223176
0
0
0
0
0
0
0
0.149425
348
10
58
34.8
0.787162
0
0
0
0
0
0.2149
0
0
0
0
0
0
1
0
false
0
0.25
0
0.875
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
1
0
0
3
5f468ef647d08df9b7e435bbbbaaf01ef4277cf4
148
py
Python
src/cortexpy/test/constants.py
karljohanw/cortexpy
70dcce771136f98edb5250ad8abd2a46bda7f0a6
[ "Apache-2.0" ]
2
2020-04-08T15:31:12.000Z
2020-07-01T11:04:47.000Z
src/cortexpy/test/constants.py
karljohanw/cortexpy
70dcce771136f98edb5250ad8abd2a46bda7f0a6
[ "Apache-2.0" ]
9
2018-09-12T09:29:43.000Z
2020-03-15T09:11:25.000Z
src/cortexpy/test/constants.py
karljohanw/cortexpy
70dcce771136f98edb5250ad8abd2a46bda7f0a6
[ "Apache-2.0" ]
1
2019-03-29T10:59:13.000Z
2019-03-29T10:59:13.000Z
import struct MAX_UINT = 2 ** (struct.calcsize('I') * 8) - 1 MAX_ULONG = 2 ** (struct.calcsize('L') * 8) - 1 UINT8_T = 1 UINT32_T = 4 UINT64_T = 8
18.5
47
0.614865
27
148
3.185185
0.592593
0.162791
0.348837
0
0
0
0
0
0
0
0
0.118644
0.202703
148
7
48
21.142857
0.610169
0
0
0
0
0
0.013514
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
1
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
3
5f4ba7ea00a9b4ae2bec68e16163449e185187d1
2,612
py
Python
simulation/battery/base_battery.py
BillMakwae/Simulation
8d0ec274643f23bc0e78c96e50508b60791c11d2
[ "MIT" ]
8
2020-03-29T01:44:16.000Z
2022-03-26T23:15:34.000Z
simulation/battery/base_battery.py
BillMakwae/Simulation
8d0ec274643f23bc0e78c96e50508b60791c11d2
[ "MIT" ]
60
2020-02-08T22:07:16.000Z
2022-03-26T23:51:55.000Z
simulation/battery/base_battery.py
BillMakwae/Simulation
8d0ec274643f23bc0e78c96e50508b60791c11d2
[ "MIT" ]
1
2021-10-20T20:07:06.000Z
2021-10-20T20:07:06.000Z
from simulation.common import Storage from simulation.common import BatteryEmptyError class BaseBattery(Storage): def __init__(self, initial_energy, max_current_capacity, max_energy_capacity, max_voltage, min_voltage, voltage, state_of_charge): super().__init__() # Constants ...
39.575758
116
0.61562
312
2,612
4.945513
0.272436
0.085548
0.075826
0.04407
0.201555
0
0
0
0
0
0
0.006201
0.320827
2,612
65
117
40.184615
0.863585
0.220138
0
0.113636
0
0
0.086548
0.034619
0
0
0
0.015385
0
1
0.204545
false
0
0.045455
0.113636
0.409091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
1
0
0
0
3
5f63c4934790515bb6fc74d4d7ecc9a70d977a36
646
py
Python
tests/test_get_image.py
kortizceballos/codeastro-group6
9f0ceb8a0fca3e619dbabe97105a3f283e59fa04
[ "BSD-3-Clause" ]
1
2021-06-25T21:20:42.000Z
2021-06-25T21:20:42.000Z
tests/test_get_image.py
kortizceballos/codeastro-group6
9f0ceb8a0fca3e619dbabe97105a3f283e59fa04
[ "BSD-3-Clause" ]
null
null
null
tests/test_get_image.py
kortizceballos/codeastro-group6
9f0ceb8a0fca3e619dbabe97105a3f283e59fa04
[ "BSD-3-Clause" ]
null
null
null
from matplotlib.pyplot import get import pyhips from pyhips import get_image def test_get_image(): """ Tests the get_image() function to make sure no errors are thrown. """ assert get_image("Vega", frame="ICRS", survey="DSS", cmap="plasma") == 0 assert get_image("notanid", frame="ICRS", survey="D...
35.888889
83
0.662539
89
646
4.595506
0.404494
0.176039
0.171149
0.176039
0.493888
0.493888
0.457213
0.457213
0.457213
0.342298
0
0.009294
0.167183
646
18
84
35.888889
0.750929
0.100619
0
0
0
0
0.201413
0
0
0
0
0
0.454545
1
0.090909
true
0
0.272727
0
0.363636
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
1
0
0
1
0
0
0
0
0
0
3
5f979d09341797e001c31791e45f05729f30d0c6
933
py
Python
symopt/objective.py
spcornelius/symopt
6f276ca07cc266af1cd58758a0cf413ab85f2591
[ "MIT" ]
null
null
null
symopt/objective.py
spcornelius/symopt
6f276ca07cc266af1cd58758a0cf413ab85f2591
[ "MIT" ]
null
null
null
symopt/objective.py
spcornelius/symopt
6f276ca07cc266af1cd58758a0cf413ab85f2591
[ "MIT" ]
null
null
null
from symopt.base import SymOptExpr import sympy as sym class ObjectiveFunction(SymOptExpr): """ Symbolic (non)linear optimization objective function. """ def __init__(self, obj, prob, **kwargs): """ Symbolic (non)linear optimization objective function. Parameters ---------- o...
27.441176
72
0.608789
98
933
5.673469
0.520408
0.06295
0.061151
0.104317
0.165468
0.165468
0
0
0
0
0
0
0.276527
933
33
73
28.272727
0.823704
0.439443
0
0.285714
0
0
0.072261
0.072261
0
0
0
0
0
1
0.285714
false
0
0.142857
0.214286
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
1
1
0
0
3
5f9b8fe1beadc23d6a4c015ccb7948ee8af7a618
322
py
Python
test/test_coverage.py
atupilojon/-resources--pytest
eae62b54828bb82dc534b37d9b46b83cb6d31c03
[ "MIT" ]
null
null
null
test/test_coverage.py
atupilojon/-resources--pytest
eae62b54828bb82dc534b37d9b46b83cb6d31c03
[ "MIT" ]
null
null
null
test/test_coverage.py
atupilojon/-resources--pytest
eae62b54828bb82dc534b37d9b46b83cb6d31c03
[ "MIT" ]
null
null
null
from pytest import mark # if setup.py present, code could be installed as library # so that there's no need include path # pip install -e . from pytest_resources import do_lower_case # from src.for_testing import do_lower_case @mark.coverage def check_lower_case(): assert do_lower_case('SomeThing') == 'something...
24.769231
57
0.773292
52
322
4.596154
0.711538
0.150628
0.138075
0.142259
0
0
0
0
0
0
0
0
0.15528
322
12
58
26.833333
0.878676
0.468944
0
0
0
0
0.108434
0
0
0
0
0
0.2
1
0.2
true
0
0.4
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
5f9c87648a4e17596d684c15485c9c92d81abb57
304
py
Python
pyexlatex/models/format/hline.py
whoopnip/py-ex-latex
66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6
[ "MIT" ]
4
2020-06-08T07:17:12.000Z
2021-11-04T21:39:52.000Z
pyexlatex/models/format/hline.py
nickderobertis/py-ex-latex
66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6
[ "MIT" ]
24
2020-02-17T17:20:44.000Z
2021-12-20T00:10:19.000Z
pyexlatex/models/format/hline.py
nickderobertis/py-ex-latex
66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6
[ "MIT" ]
null
null
null
from pyexlatex.models.sizes.textwidth import TextWidth from pyexlatex.models.format.rule import Rule class HLine(Rule): """ Draws a horizontal line across the text width. """ def __init__(self, thickness: float = 0.4): super().__init__(length=TextWidth(), thickness=thickness)
25.333333
65
0.710526
38
304
5.473684
0.710526
0.125
0.182692
0
0
0
0
0
0
0
0
0.008032
0.180921
304
11
66
27.636364
0.827309
0.151316
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
5f9ec6c74b57542c9787a229e40967ba3e06098c
56
py
Python
NumpyUtility/__init__.py
PaulKGrimes/NumpyUtility
35607725d07952deca10d7342043db7e77756278
[ "MIT" ]
null
null
null
NumpyUtility/__init__.py
PaulKGrimes/NumpyUtility
35607725d07952deca10d7342043db7e77756278
[ "MIT" ]
null
null
null
NumpyUtility/__init__.py
PaulKGrimes/NumpyUtility
35607725d07952deca10d7342043db7e77756278
[ "MIT" ]
null
null
null
__all__ = ["NumpyUtility"] from .NumpyUtility import *
14
27
0.732143
5
56
7.4
0.8
0
0
0
0
0
0
0
0
0
0
0
0.142857
56
3
28
18.666667
0.770833
0
0
0
0
0
0.214286
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
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
1
0
0
0
0
3
5f9f9ecefb3439db4ca570e4a61b0846cf1331d6
188
py
Python
09-Data-Analysis/Sweetviz/ReprotViz.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
1
2021-01-10T12:06:26.000Z
2021-01-10T12:06:26.000Z
09-Data-Analysis/Sweetviz/ReprotViz.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
null
null
null
09-Data-Analysis/Sweetviz/ReprotViz.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
null
null
null
import sweetviz import pandas as pd if __name__ == '__main__': df = pd.read_csv("BankChurners_clean.csv") report = sweetviz.analyze(df, "Attrition_Flag") report.show_html()
20.888889
51
0.707447
25
188
4.84
0.76
0
0
0
0
0
0
0
0
0
0
0
0.175532
188
8
52
23.5
0.780645
0
0
0
0
0
0.234043
0.117021
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
3
5fa29ec1b9e32e73683aab09293ca2018836774b
397
py
Python
firldBuzzUserEntryApp/login/loginForm.py
sir-rasel/backend-api-integration
41e3d44caa6ec10382efbb482cb9d0f77bd4a5fb
[ "MIT" ]
2
2020-12-11T12:45:34.000Z
2021-11-09T11:25:23.000Z
firldBuzzUserEntryApp/login/loginForm.py
sir-rasel/backend-api-integration
41e3d44caa6ec10382efbb482cb9d0f77bd4a5fb
[ "MIT" ]
null
null
null
firldBuzzUserEntryApp/login/loginForm.py
sir-rasel/backend-api-integration
41e3d44caa6ec10382efbb482cb9d0f77bd4a5fb
[ "MIT" ]
null
null
null
from django import forms class LoginForm(forms.Form): userName = forms.EmailField(label='User Name', max_length=55, required=True, \ widget=forms.EmailInput(attrs={'placeholder': 'Username that sends via mail'})) password = forms.CharField(label='Password', max_length=55, required=True, \ widge...
49.625
89
0.722922
49
397
5.816327
0.591837
0.063158
0.077193
0.133333
0.238596
0.238596
0.238596
0
0
0
0
0.01173
0.141058
397
7
90
56.714286
0.824047
0
0
0
0
0
0.236776
0
0
0
0
0
0
1
0
false
0.333333
0.166667
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
3
5fafc8dcb4215c91fc9ae3f825e9c6da430bff4a
326
py
Python
software/glasgow/applet/video/__init__.py
electroniceel/Glasgow
f6d8fda1d5baec006a6c43fa3d2547a33bdee666
[ "Apache-2.0", "0BSD" ]
1,014
2019-10-05T16:21:43.000Z
2022-03-31T09:26:43.000Z
software/glasgow/applet/video/__init__.py
attie/glasgow
eca2cb278478d9cb9a102e6e99dfc5bd2d77a549
[ "Apache-2.0", "0BSD" ]
113
2019-10-06T07:49:37.000Z
2022-03-24T04:33:08.000Z
software/glasgow/applet/video/__init__.py
attie/glasgow
eca2cb278478d9cb9a102e6e99dfc5bd2d77a549
[ "Apache-2.0", "0BSD" ]
79
2019-10-08T07:36:03.000Z
2022-03-21T07:00:27.000Z
""" The ``video`` taxon groups applets implementing video interfaces, that is, interfaces for periodic transfers of 2d arrays of samples of electromagnetic wave properties. Examples: VGA output, TFT LCD capture, TFT LCD output. Counterexamples: SCSI scanner (use taxon ``photo``), SPI LCD output (use taxon ``display``)...
40.75
98
0.757669
44
326
5.613636
0.727273
0.048583
0
0
0
0
0
0
0
0
0
0.003584
0.144172
326
7
99
46.571429
0.88172
0.972393
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
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
397163cbc30071660c1df03a91c22f9cdffa46d3
496
py
Python
helpdesk/simple/views.py
fratoj/helpdesk
302c41491f26432bd65e468f015cdb123a47bcad
[ "MIT" ]
null
null
null
helpdesk/simple/views.py
fratoj/helpdesk
302c41491f26432bd65e468f015cdb123a47bcad
[ "MIT" ]
4
2021-04-08T21:51:21.000Z
2021-06-10T20:21:24.000Z
helpdesk/simple/views.py
fratoj/helpdesk
302c41491f26432bd65e468f015cdb123a47bcad
[ "MIT" ]
null
null
null
from django.shortcuts import render import numpy as np def index(request): return render(request, 'simple/index.html') def room(request, room_name): safe = np.random.normal(size=20, loc=0, scale=1) return render(request, 'simple/room.html', { 'room_name': room_name, 'some_thing': { ...
21.565217
52
0.59879
63
496
4.650794
0.555556
0.122867
0.194539
0.255973
0.21843
0
0
0
0
0
0
0.018817
0.25
496
22
53
22.545455
0.768817
0
0
0
0
0
0.177419
0
0
0
0
0
0
1
0.1875
false
0
0.125
0.125
0.5
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
1
0
0
0
3
39846d963efc3c25f62f763940ae6d00481112ea
237
py
Python
coffeebar/admin.py
viktor-yakubiv/django-coffee
0a7d62a53db6af48fdc852fbb4dae43a0fc2b2ef
[ "MIT" ]
null
null
null
coffeebar/admin.py
viktor-yakubiv/django-coffee
0a7d62a53db6af48fdc852fbb4dae43a0fc2b2ef
[ "MIT" ]
null
null
null
coffeebar/admin.py
viktor-yakubiv/django-coffee
0a7d62a53db6af48fdc852fbb4dae43a0fc2b2ef
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Account, Product, Drink, Topping, Order admin.site.register(Account) admin.site.register(Product) admin.site.register(Drink) admin.site.register(Topping) admin.site.register(Order)
21.545455
59
0.805907
33
237
5.787879
0.393939
0.235602
0.445026
0
0
0
0
0
0
0
0
0
0.084388
237
10
60
23.7
0.880184
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.285714
0
0.285714
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
39972511fba92d415fe55b1c71b33e08a7f6d99e
6,079
py
Python
pythorn/data_structures/queue.py
Gourav-KP/pythorn
f7130721c02292af0e23bd8bcf31d41990c0d48b
[ "MIT" ]
5
2020-11-23T14:10:28.000Z
2021-05-07T16:25:38.000Z
pythorn/data_structures/queue.py
Gourav-KP/pythorn
f7130721c02292af0e23bd8bcf31d41990c0d48b
[ "MIT" ]
null
null
null
pythorn/data_structures/queue.py
Gourav-KP/pythorn
f7130721c02292af0e23bd8bcf31d41990c0d48b
[ "MIT" ]
3
2020-11-25T11:00:14.000Z
2021-10-01T12:16:30.000Z
""" Author : Robin Singh Programs List: 1.Queue 2.Circular Queue 3.Double Ended Queue """ import inspect class Queue(object): def __init__(self, length=5): """ :param length: pass queue length while making object otherwise default value will be 5 """ self.items = [] self....
22.853383
204
0.497779
655
6,079
4.58626
0.167939
0.068908
0.04028
0.037284
0.763648
0.703395
0.686085
0.66245
0.66245
0.66245
0
0.01019
0.402698
6,079
265
205
22.939623
0.81713
0.196907
0
0.727941
0
0.007353
0.10493
0
0
0
0
0
0
1
0.191176
false
0
0.007353
0
0.455882
0.058824
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
39a05a3ae20bd7b9b573cc3402d91e45b4b3aa9a
594
py
Python
samples/module_snapcheck.py
luislezcair/jsnapy
86381aa389cf19394a6165fe34bcfd95ee8a7f67
[ "Apache-2.0", "BSD-3-Clause" ]
101
2016-07-04T13:18:48.000Z
2022-02-11T19:18:15.000Z
samples/module_snapcheck.py
luislezcair/jsnapy
86381aa389cf19394a6165fe34bcfd95ee8a7f67
[ "Apache-2.0", "BSD-3-Clause" ]
187
2016-07-06T14:58:03.000Z
2022-03-15T09:19:11.000Z
samples/module_snapcheck.py
luislezcair/jsnapy
86381aa389cf19394a6165fe34bcfd95ee8a7f67
[ "Apache-2.0", "BSD-3-Clause" ]
70
2016-07-12T15:20:58.000Z
2022-03-25T05:14:40.000Z
### performing function similar to --snapcheck option in command line ###### from jnpr.jsnapy import SnapAdmin from pprint import pprint from jnpr.junos import Device js = SnapAdmin() config_file = "/etc/jsnapy/testfiles/config_single_snapcheck.yml" snapvalue = js.snapcheck(config_file, "snap") for snapcheck in snap...
33
76
0.720539
74
594
5.689189
0.540541
0.038005
0
0
0
0
0
0
0
0
0
0
0.144781
594
17
77
34.941176
0.82874
0.109428
0
0
0
0
0.262548
0.15251
0
0
0
0
0
0
null
null
0.076923
0.230769
null
null
0.538462
0
0
0
null
0
0
0
0
0
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
1
0
3
39cd092c9896194e7d5884416a86b0b247f8dee4
486
py
Python
markflow/detectors/__init__.py
jmholla/markflow
1accc4a23f9c06d9ab77d6c180c586da3d9ec69b
[ "Apache-2.0" ]
14
2020-08-14T03:09:53.000Z
2022-03-22T22:46:50.000Z
markflow/detectors/__init__.py
jmholla/markflow
1accc4a23f9c06d9ab77d6c180c586da3d9ec69b
[ "Apache-2.0" ]
6
2020-08-19T18:13:24.000Z
2021-02-11T03:56:34.000Z
markflow/detectors/__init__.py
jmholla/markflow
1accc4a23f9c06d9ab77d6c180c586da3d9ec69b
[ "Apache-2.0" ]
3
2020-08-13T16:40:13.000Z
2022-01-18T12:31:37.000Z
# flake8: noqa """ MarkFlow MarkDown Section Detection Library This library provide this functions MarkFlow uses to split a document into it's individual text types. """ from .atx_heading import * from .blank_line import * from .block_quote import * from .fenced_code_block import * from .indented_code_block import * f...
25.578947
79
0.788066
68
486
5.470588
0.602941
0.268817
0.091398
0.102151
0
0
0
0
0
0
0
0.00241
0.146091
486
18
80
27
0.893976
0.331276
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
3
f2d4d9817772d3d480a3be486cdd4fa4ac3b04f2
672
py
Python
src/OTLMOW/OTLModel/Classes/Infiltratievoorziening.py
davidvlaminck/OTLClassPython
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
2
2022-02-01T08:58:11.000Z
2022-02-08T13:35:17.000Z
src/OTLMOW/OTLModel/Classes/Infiltratievoorziening.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
src/OTLMOW/OTLModel/Classes/Infiltratievoorziening.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
# coding=utf-8 from OTLMOW.OTLModel.Classes.Put import Put from OTLMOW.OTLModel.Classes.PutRelatie import PutRelatie from OTLMOW.GeometrieArtefact.VlakGeometrie import VlakGeometrie # Generated with OTLClassCreator. To modify: extend, do not edit class Infiltratievoorziening(Put, PutRelatie, VlakGeometrie): """Vo...
37.333333
93
0.763393
77
672
6.454545
0.662338
0.064386
0.072435
0.100604
0
0
0
0
0
0
0
0.010363
0.138393
672
17
94
39.529412
0.848014
0.188988
0
0
1
0
0.167028
0
0
0
0
0
0
1
0.111111
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
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
f2da20f8cd9ede45ff2e1e9791b316945d38036c
418
py
Python
openwater/utils/decorator.py
jeradM/openwater
740b7e76622a1ee909b970d9e5c612a840466cec
[ "MIT" ]
null
null
null
openwater/utils/decorator.py
jeradM/openwater
740b7e76622a1ee909b970d9e5c612a840466cec
[ "MIT" ]
null
null
null
openwater/utils/decorator.py
jeradM/openwater
740b7e76622a1ee909b970d9e5c612a840466cec
[ "MIT" ]
null
null
null
from typing import Callable def blocking(func: Callable): setattr(func, "_ow_blocking", True) return func def is_blocking(func: Callable): return getattr(func, "_ow_blocking", False) is True def nonblocking(func: Callable) -> Callable: setattr(func, "_ow_nonblocking", True) return func def i...
20.9
58
0.717703
54
418
5.37037
0.296296
0.165517
0.137931
0.144828
0.131034
0
0
0
0
0
0
0
0.177033
418
19
59
22
0.843023
0
0
0.181818
0
0
0.129187
0
0
0
0
0
0
1
0.363636
false
0
0.090909
0.181818
0.818182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
f2e1fc7cc5cf4031b844d0facd03421c1cb64cd2
15,633
py
Python
ProyectoFinal.py
T0N1R/Recommendation-System-python-neo4J
09dd1bbefa7e436a1aeedf9ccc9160719ec3a353
[ "MIT" ]
null
null
null
ProyectoFinal.py
T0N1R/Recommendation-System-python-neo4J
09dd1bbefa7e436a1aeedf9ccc9160719ec3a353
[ "MIT" ]
null
null
null
ProyectoFinal.py
T0N1R/Recommendation-System-python-neo4J
09dd1bbefa7e436a1aeedf9ccc9160719ec3a353
[ "MIT" ]
null
null
null
# -*- coding: cp1252 -*- # -*- coding: utf-8 -*- """ Algoritmos y Estructuras de Datos Proyecto Final Antonio Reyes #17273 Esteban Cabrera #17781 Miguel #17102 """ import random import xlrd file_location = "C:/Users/Antonio/Desktop/Recommendation-System-python-neo4J-master/Database.xlsx" workbook = xlrd.ope...
30.414397
147
0.515832
1,935
15,633
4.119897
0.11938
0.021576
0.010161
0.052434
0.704215
0.688409
0.676744
0.676744
0.666458
0.666458
0
0.038235
0.293993
15,633
513
148
30.473684
0.6837
0.142135
0
0.719298
0
0.005848
0.190644
0.068676
0
0
0
0.001949
0
0
null
null
0.038012
0.008772
null
null
0.190058
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
f2f174769c76e5752b21c530463b089bffb53275
1,076
py
Python
mkmk/extend.py
tundra/mkmk
4ca7a3e337dcc3345fb01ea205ae05c397f396b0
[ "Apache-2.0" ]
null
null
null
mkmk/extend.py
tundra/mkmk
4ca7a3e337dcc3345fb01ea205ae05c397f396b0
[ "Apache-2.0" ]
null
null
null
mkmk/extend.py
tundra/mkmk
4ca7a3e337dcc3345fb01ea205ae05c397f396b0
[ "Apache-2.0" ]
null
null
null
#- Copyright 2014 GOTO 10. #- Licensed under the Apache License, Version 2.0 (see LICENSE). ## Utilities used for creating build extensions. from abc import ABCMeta, abstractmethod # Abstract superclass of the tool sets loaded implicitly into each context. # There can be many of these, one for each context. class To...
25.619048
76
0.737918
150
1,076
5.153333
0.54
0.056921
0.056921
0.064683
0.085382
0.085382
0
0
0
0
0
0.009249
0.196097
1,076
41
77
26.243902
0.884393
0.536245
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.111111
0.055556
0.111111
0.722222
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
1
0
0
0
3
8439225f8d80c110768afbd91dc3a48cb1f55f67
1,914
py
Python
users/migrations/0004_auto_20201228_1613.py
hhdMrLion/django-crm
9f6f021e0cddc323c88280b733144366a0cb9fa6
[ "Apache-2.0" ]
1
2021-06-18T03:03:43.000Z
2021-06-18T03:03:43.000Z
users/migrations/0004_auto_20201228_1613.py
hhdMrLion/django-crm
9f6f021e0cddc323c88280b733144366a0cb9fa6
[ "Apache-2.0" ]
null
null
null
users/migrations/0004_auto_20201228_1613.py
hhdMrLion/django-crm
9f6f021e0cddc323c88280b733144366a0cb9fa6
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.17 on 2020-12-28 08:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0003_auto_20201228_1605'), ] operations = [ migrations.CreateModel( name='Count', fields=[ ...
46.682927
106
0.581505
182
1,914
5.917582
0.401099
0.163417
0.278552
0.289694
0.493036
0.493036
0.493036
0
0
0
0
0.033261
0.277429
1,914
40
107
47.85
0.745481
0.024033
0
0.058824
1
0
0.194414
0.012596
0
0
0
0
0
1
0
false
0
0.029412
0
0.117647
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
84425e6e37d98a459d555c6b47a64806ebbb0769
246
py
Python
app/newsletter/views.py
valeriansaliou/waaave-web
8a0cde773563865a905af38f5a0b723a43b17341
[ "RSA-MD" ]
1
2020-04-06T10:04:43.000Z
2020-04-06T10:04:43.000Z
app/newsletter/views.py
valeriansaliou/waaave-web
8a0cde773563865a905af38f5a0b723a43b17341
[ "RSA-MD" ]
null
null
null
app/newsletter/views.py
valeriansaliou/waaave-web
8a0cde773563865a905af38f5a0b723a43b17341
[ "RSA-MD" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse def root(request): """ Newsletter > Root """ return render(request, 'newsletter/newsletter_root.jade')
24.6
61
0.756098
28
246
6.607143
0.571429
0.162162
0
0
0
0
0
0
0
0
0
0
0.158537
246
10
61
24.6
0.89372
0.069106
0
0
0
0
0.14486
0.14486
0
0
0
0
0
1
0.2
false
0
0.6
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
8446c1c3c431374432b1f4f4b191c7dc6650169d
1,580
py
Python
src/cltk/phonology/gmh/phonology.py
yelircaasi/cltk
1583aa24682543a1f33434a21918f039ca27d60c
[ "MIT" ]
757
2015-11-20T00:58:52.000Z
2022-03-31T06:34:24.000Z
src/cltk/phonology/gmh/phonology.py
yelircaasi/cltk
1583aa24682543a1f33434a21918f039ca27d60c
[ "MIT" ]
950
2015-11-17T05:38:29.000Z
2022-03-14T16:09:34.000Z
src/cltk/phonology/gmh/phonology.py
yelircaasi/cltk
1583aa24682543a1f33434a21918f039ca27d60c
[ "MIT" ]
482
2015-11-22T18:13:02.000Z
2022-03-20T21:22:02.000Z
"""Middle High German phonology tools """ from typing import List from cltk.phonology.gmh.transcription import Transcriber from cltk.phonology.syllabify import Syllabifier __author__ = ["Clément Besnier <clem@clementbesnier.fr>"] class MiddleHighGermanTranscription: """ Middle High German Transcriber ""...
26.333333
103
0.666456
156
1,580
6.564103
0.435897
0.039063
0.0625
0.029297
0.083984
0.048828
0
0
0
0
0
0.003295
0.231646
1,580
59
104
26.779661
0.839374
0.316456
0
0.272727
0
0
0.112169
0.088889
0
0
0
0
0
1
0.363636
false
0
0.136364
0.181818
0.863636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
8459ea4275ad26f2fdfb1430948999a41ff39caf
408
py
Python
dailypy/__init__.py
HuangJiaLian/dailypy
b838a4f6743fca8ccc5c4fa73142d0f7095dbbc3
[ "CC0-1.0" ]
null
null
null
dailypy/__init__.py
HuangJiaLian/dailypy
b838a4f6743fca8ccc5c4fa73142d0f7095dbbc3
[ "CC0-1.0" ]
1
2020-08-19T13:42:52.000Z
2020-08-19T14:32:31.000Z
dailypy/__init__.py
HuangJiaLian/dailypy
b838a4f6743fca8ccc5c4fa73142d0f7095dbbc3
[ "CC0-1.0" ]
null
null
null
import numpy as np import os # Data manipulate class dm: def __init__(self): pass def saveNp(self, a, name, path='.'): np.save(os.path.join(path,name), a) def saveTxt(self, a, name, path='.'): np.savetxt(os.path.join(path,name)+'.txt', a) def saveArrows(self, a1, a2, n...
20.4
53
0.568627
61
408
3.737705
0.47541
0.04386
0.078947
0.114035
0.289474
0
0
0
0
0
0
0.0299
0.262255
408
19
54
21.473684
0.727575
0.036765
0
0
0
0
0.025641
0
0
0
0
0
0
1
0.333333
false
0.083333
0.166667
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
1
0
0
1
0
0
3
845d03992ff2924ffdc957b51de3c6b486a7c0ea
880
py
Python
src/las_util/serializers.py
dcslagel/las-util-django
cea8437813969b3b22182de6b9553b9e6694c548
[ "BSD-3-Clause" ]
3
2020-05-15T05:40:43.000Z
2021-11-09T06:19:41.000Z
src/las_util/serializers.py
dcslagel/las-util-django
cea8437813969b3b22182de6b9553b9e6694c548
[ "BSD-3-Clause" ]
26
2020-05-20T13:03:02.000Z
2021-09-23T19:36:39.000Z
src/las_util/serializers.py
dcslagel/las-util-django
cea8437813969b3b22182de6b9553b9e6694c548
[ "BSD-3-Clause" ]
1
2021-11-09T01:40:05.000Z
2021-11-09T01:40:05.000Z
""" File-Name: [app]/serializers.py File-Desc: Rest API serializers for las_util App-Name: las_util Project-Name: Las-Util-Django Copyright: Copyright (c) 2019, DC Slagel License-Identifier: BSD-3-Clause """ from rest_framework import serializers from las_util.models import SectionInfo class DocSerializer(serializers....
29.333333
55
0.7125
101
880
6.118812
0.485149
0.045307
0.165049
0.174757
0.377023
0.313916
0.313916
0.313916
0.313916
0.313916
0
0.007003
0.188636
880
29
56
30.344828
0.858543
0.581818
0
0.4
0
0
0.043478
0
0
0
0
0.034483
0
1
0
false
0
0.2
0
0.6
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
1
0
0
3
ffce3c914809fe508a87b5cc18e2cdab125e42d4
402
py
Python
public_goods_str_nonoise/tests.py
bocchan/costly
ba52f82e36e28012a63a78805963bdf384679955
[ "BSD-3-Clause" ]
null
null
null
public_goods_str_nonoise/tests.py
bocchan/costly
ba52f82e36e28012a63a78805963bdf384679955
[ "BSD-3-Clause" ]
null
null
null
public_goods_str_nonoise/tests.py
bocchan/costly
ba52f82e36e28012a63a78805963bdf384679955
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division import random from otree.common import Currency as c, currency_range from . import views from ._builtin import Bot from .models import Constants class PlayerBot(Bot): """Bot that plays one round""" def play_round(self): self.submit(views.MyPa...
18.272727
54
0.691542
54
402
5
0.611111
0.074074
0.111111
0
0
0
0
0
0
0
0
0.003175
0.216418
402
21
55
19.142857
0.853968
0.116915
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0.083333
0.5
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
1
1
0
1
0
0
3
ffde4731dad77ca75123679807fabb3875a76017
176
py
Python
src/registration/urls.py
jtrussell/swindle
914f9ddc7b155cf895fc233b9f3f0c1804bf23e3
[ "MIT" ]
1
2021-04-07T20:14:43.000Z
2021-04-07T20:14:43.000Z
src/registration/urls.py
jtrussell/swindle
914f9ddc7b155cf895fc233b9f3f0c1804bf23e3
[ "MIT" ]
null
null
null
src/registration/urls.py
jtrussell/swindle
914f9ddc7b155cf895fc233b9f3f0c1804bf23e3
[ "MIT" ]
null
null
null
from . import views from django.urls import path urlpatterns = [ path('', views.profile, name='profile'), path('sign-up', views.sign_up, name='show_sign_up_form') ]
17.6
60
0.681818
25
176
4.64
0.52
0.155172
0
0
0
0
0
0
0
0
0
0
0.164773
176
9
61
19.555556
0.789116
0
0
0
0
0
0.177143
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
3
ffe68f15e3bf96bdad0cec4870fd34ce0d8fbf6c
223
py
Python
src/methods/Addition.py
svanschooten/Flow
c7c158f986f7b108a255cbaa67ec7fff3518b637
[ "MIT" ]
null
null
null
src/methods/Addition.py
svanschooten/Flow
c7c158f986f7b108a255cbaa67ec7fff3518b637
[ "MIT" ]
null
null
null
src/methods/Addition.py
svanschooten/Flow
c7c158f986f7b108a255cbaa67ec7fff3518b637
[ "MIT" ]
null
null
null
from methods.AbstactMethod import AbstractMethod class Addition(AbstractMethod): name = 'Addition' def apply(self, args: dict) -> dict: return { 'res': args.get('x') + args.get('y') }
20.272727
48
0.591928
24
223
5.5
0.75
0.106061
0
0
0
0
0
0
0
0
0
0
0.273543
223
10
49
22.3
0.814815
0
0
0
0
0
0.058296
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
0.714286
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
3
ffeabfb85c362b4fd5f28c9b1e056f66d191fed5
100
py
Python
9.py
sarika228/React-Projects
24c342f71f839c257150f4b5e096c127b51d525c
[ "MIT" ]
null
null
null
9.py
sarika228/React-Projects
24c342f71f839c257150f4b5e096c127b51d525c
[ "MIT" ]
null
null
null
9.py
sarika228/React-Projects
24c342f71f839c257150f4b5e096c127b51d525c
[ "MIT" ]
null
null
null
i=1 while i<=4: j=16 while j>=i: print(i,end="") j=j-1 print() i=i+1
12.5
23
0.39
20
100
1.95
0.4
0.102564
0
0
0
0
0
0
0
0
0
0.101695
0.41
100
8
24
12.5
0.559322
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
1
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
3
08092e15e7923e75bbc9274300846c3ee3fbd2d9
158
py
Python
tests/utils/TestTransaction.py
Shaid3r/reservations
43e17ae88eed74593879f9f8c5a9bed7252888f7
[ "MIT" ]
null
null
null
tests/utils/TestTransaction.py
Shaid3r/reservations
43e17ae88eed74593879f9f8c5a9bed7252888f7
[ "MIT" ]
null
null
null
tests/utils/TestTransaction.py
Shaid3r/reservations
43e17ae88eed74593879f9f8c5a9bed7252888f7
[ "MIT" ]
null
null
null
import storage import pytest class TestTransaction: @pytest.fixture(autouse=True) def transact(self): yield storage.conn.rollback()
15.8
33
0.683544
17
158
6.352941
0.823529
0
0
0
0
0
0
0
0
0
0
0
0.234177
158
9
34
17.555556
0.892562
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
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
1
0
0
3
083ac0bbfaedec44e83a000de5fcb0cfa49ed48e
310
py
Python
tests/symmetry/test_point_group.py
kijanac/Materia
b49af518c8eff7d3a8c6caff39783e3daf80a7a0
[ "MIT" ]
null
null
null
tests/symmetry/test_point_group.py
kijanac/Materia
b49af518c8eff7d3a8c6caff39783e3daf80a7a0
[ "MIT" ]
null
null
null
tests/symmetry/test_point_group.py
kijanac/Materia
b49af518c8eff7d3a8c6caff39783e3daf80a7a0
[ "MIT" ]
null
null
null
# import materia as mtr # import numpy as np # def test_point_group_C1(): # ctable = mtr.symmetry.C1().cayley_table() # assert (ctable == np.array([[0]])).all() # def test_point_group_Ci(): # ctable = mtr.symmetry.Ci().cayley_table() # assert (ctable == np.array([[0, 1], [1, 0]])).all()
20.666667
57
0.606452
45
310
4
0.466667
0.077778
0.133333
0.188889
0.344444
0.344444
0.344444
0
0
0
0
0.027888
0.190323
310
14
58
22.142857
0.689243
0.925806
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
1
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
3
f242795159bdd7a9675c51d4615c5d8382e738be
2,419
py
Python
coinut.py
DanHenry4/AutoCoinut
f7c79f19a9193bc7c1193712088ca836b030f523
[ "MIT" ]
4
2016-05-08T02:15:50.000Z
2020-07-01T08:16:45.000Z
coinut.py
DanHenry4/AutoCoinut
f7c79f19a9193bc7c1193712088ca836b030f523
[ "MIT" ]
null
null
null
coinut.py
DanHenry4/AutoCoinut
f7c79f19a9193bc7c1193712088ca836b030f523
[ "MIT" ]
null
null
null
import hmac import hashlib import json import uuid import httplib2 COINUT_URL = 'https://coinut.com/api/' class Coinut(): def __init__(self, user = None, api_key = None): self.user = user self.api_key = api_key self.http = httplib2.Http() def request(self, api, content = {}): ...
27.488636
76
0.574618
276
2,419
4.847826
0.242754
0.080717
0.139761
0.053812
0.136024
0.136024
0.073244
0.073244
0.073244
0.073244
0
0.003584
0.307979
2,419
87
77
27.804598
0.795699
0
0
0.098361
0
0
0.119471
0
0
0
0
0
0
1
0.213115
false
0
0.081967
0.131148
0.508197
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
f26337b1b3af5eb32cdd87718a2212d8a63d5996
6,187
py
Python
nz_snow_tools/eval/brewster_calibration_TF.py
jonoconway/nz_snow_tools
7002fb401fb48225260fada6fd5b5b7ca5ad1184
[ "MIT" ]
3
2020-09-01T07:53:05.000Z
2021-02-02T20:28:37.000Z
nz_snow_tools/eval/brewster_calibration_TF.py
jonoconway/nz_snow_tools
7002fb401fb48225260fada6fd5b5b7ca5ad1184
[ "MIT" ]
null
null
null
nz_snow_tools/eval/brewster_calibration_TF.py
jonoconway/nz_snow_tools
7002fb401fb48225260fada6fd5b5b7ca5ad1184
[ "MIT" ]
null
null
null
""" code to call the snow model for a simple test case using brewster glacier data """ from __future__ import division import numpy as np import matplotlib.pylab as plt import datetime as dt from nz_snow_tools.util.utils import resample_to_fsca, nash_sut, mean_bias, rmsd, mean_absolute_error, coef_determ seb_dat = np...
38.66875
216
0.725715
1,369
6,187
2.996348
0.148283
0.073135
0.109703
0.164554
0.732569
0.713554
0.686738
0.66236
0.614334
0.608971
0
0.055776
0.104574
6,187
160
217
38.66875
0.684657
0.157265
0
0.292683
0
0
0.148698
0.028158
0
0
0
0
0
1
0.00813
false
0
0.04878
0.00813
0.065041
0.089431
0
0
0
null
0
0
1
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
3
f2689ab69abc970864477a6211da1d0af11f1927
168
py
Python
main.py
dansoliveira/pasc-compiler
642f2745395dcc5b4ebbdd1fa83169362f863e61
[ "MIT" ]
null
null
null
main.py
dansoliveira/pasc-compiler
642f2745395dcc5b4ebbdd1fa83169362f863e61
[ "MIT" ]
1
2018-05-10T13:03:04.000Z
2018-05-10T13:03:04.000Z
main.py
dansoliveira/pasc-compiler
642f2745395dcc5b4ebbdd1fa83169362f863e61
[ "MIT" ]
null
null
null
from lexer import Lexer from parser import Parser if __name__ == "__main__": lexer = Lexer("exemplos/teste2.pasc") parser = Parser(lexer) parser.executa()
21
41
0.702381
21
168
5.238095
0.52381
0
0
0
0
0
0
0
0
0
0
0.007353
0.190476
168
8
42
21
0.801471
0
0
0
0
0
0.16568
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
3
f27ae5b52fc981bd0a9765592021614aae946fe5
130
py
Python
day00/ex05/kata02.py
bcarlier75/python_bootcamp_42ai
916c258596f90a222f20329894048addb6f64dd9
[ "MIT" ]
1
2020-04-17T18:47:46.000Z
2020-04-17T18:47:46.000Z
day00/ex05/kata02.py
bcarlier75/python_bootcamp_42ai
916c258596f90a222f20329894048addb6f64dd9
[ "MIT" ]
null
null
null
day00/ex05/kata02.py
bcarlier75/python_bootcamp_42ai
916c258596f90a222f20329894048addb6f64dd9
[ "MIT" ]
null
null
null
import datetime t = (3, 30, 2019, 9, 25) x = datetime.datetime(t[2], t[3], t[4], t[0], t[1]) print(x.strftime("%m/%d/%Y %H:%M"))
21.666667
51
0.546154
29
130
2.448276
0.655172
0.253521
0
0
0
0
0
0
0
0
0
0.135135
0.146154
130
5
52
26
0.504505
0
0
0
0
0
0.107692
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
f292addc6e3042f36d3fbfdde0bec8e8159cc0d4
193
py
Python
Desafio049.py
tmoura1981/Python_Exercicios
c873e2758dfd9058d2c2d83b5b38b522c6264029
[ "MIT" ]
1
2021-11-25T11:19:59.000Z
2021-11-25T11:19:59.000Z
Desafio049.py
tmoura1981/Python_Exercicios
c873e2758dfd9058d2c2d83b5b38b522c6264029
[ "MIT" ]
null
null
null
Desafio049.py
tmoura1981/Python_Exercicios
c873e2758dfd9058d2c2d83b5b38b522c6264029
[ "MIT" ]
null
null
null
# Informe um nº e mostre sua tabuada print('-' * 36) n = int(input('Digite um nº e veja sua tabuada: ')) print('=' * 36) for i in range(1, 11): print(n, 'x', i, '=', n * i) print('=' * 36)
24.125
51
0.554404
35
193
3.057143
0.6
0.196262
0.093458
0.317757
0
0
0
0
0
0
0
0.06
0.222798
193
7
52
27.571429
0.653333
0.176166
0
0.333333
0
0
0.242038
0
0
0
0
0
0
1
0
false
0
0
0
0
0.666667
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
f29df525d2aaa21035a1c17e65dbb2cbbc6a88ba
1,326
py
Python
levis/encoding.py
rawg/levis
33cd6c915f51134f79f3586dc0e4a6072247b568
[ "MIT" ]
42
2016-06-29T21:13:02.000Z
2022-01-23T03:23:59.000Z
levis/encoding.py
rawg/levis
33cd6c915f51134f79f3586dc0e4a6072247b568
[ "MIT" ]
null
null
null
levis/encoding.py
rawg/levis
33cd6c915f51134f79f3586dc0e4a6072247b568
[ "MIT" ]
12
2016-07-18T20:46:55.000Z
2021-06-13T16:08:37.000Z
# coding=utf-8 """ """ from . import mutation from . import crossover from . import base class BinaryGA(base.GeneticAlgorithm): """A binary encoded genetic algorithm.""" def num_bits(self): """Return the number of bits used by the encoding scheme. Returns: int: The number of bi...
26.52
79
0.662142
149
1,326
5.825503
0.375839
0.064516
0.105991
0.119816
0.490783
0.490783
0.324885
0.324885
0.225806
0
0
0.000991
0.239065
1,326
49
80
27.061224
0.859267
0.282051
0
0.3
0
0
0
0
0
0
0
0
0
1
0.3
false
0
0.15
0.15
0.85
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
f2a1b14f9c19a43e8614ebf25a3e38b7faa2cee4
126
py
Python
2375.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
1
2022-01-14T08:45:32.000Z
2022-01-14T08:45:32.000Z
2375.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
null
null
null
2375.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
null
null
null
n = int(input()) a, l, p = map(int, input().split()) if a >= n and l >= n and p >= n: print("S") else: print("N")
21
36
0.460317
24
126
2.416667
0.541667
0.275862
0
0
0
0
0
0
0
0
0
0
0.285714
126
6
37
21
0.644444
0
0
0
0
0
0.016393
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
4b3d1227daae503aacdc59d3f5aff14a4ad6eda7
112
py
Python
week3DataStructuren/Dictionaries/dictionary.py
hanbioinformatica/owe2a
f572866ef3bc75689d2d571cb393c6d60480655b
[ "Apache-2.0" ]
null
null
null
week3DataStructuren/Dictionaries/dictionary.py
hanbioinformatica/owe2a
f572866ef3bc75689d2d571cb393c6d60480655b
[ "Apache-2.0" ]
null
null
null
week3DataStructuren/Dictionaries/dictionary.py
hanbioinformatica/owe2a
f572866ef3bc75689d2d571cb393c6d60480655b
[ "Apache-2.0" ]
1
2018-12-04T15:23:47.000Z
2018-12-04T15:23:47.000Z
d1 = {"koe":4,"slang":0,"konijn":4,"zebra":4} d1["koe"] d2 = {"vis":0,"beer":4,"kip":2} d1.update(d2) print (d1)
22.4
45
0.553571
23
112
2.695652
0.608696
0.16129
0
0
0
0
0
0
0
0
0
0.126214
0.080357
112
5
46
22.4
0.475728
0
0
0
0
0
0.283186
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
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
4b442e7411a54e834374d8e754640fa1c026849b
791
py
Python
src/linuxforhealth/x12/v5010/x12_834_005010X220A1/transaction_set.py
joewright/x12
3734589b5ffa554388174234aa7dc37c2543f46a
[ "Apache-2.0" ]
4
2021-12-11T15:38:03.000Z
2021-12-22T13:18:31.000Z
src/linuxforhealth/x12/v5010/x12_834_005010X220A1/transaction_set.py
joewright/x12
3734589b5ffa554388174234aa7dc37c2543f46a
[ "Apache-2.0" ]
55
2021-06-12T01:11:15.000Z
2022-02-03T19:28:32.000Z
src/linuxforhealth/x12/v5010/x12_834_005010X220A1/transaction_set.py
joewright/x12
3734589b5ffa554388174234aa7dc37c2543f46a
[ "Apache-2.0" ]
3
2021-06-11T19:33:19.000Z
2021-11-19T23:33:58.000Z
""" transaction_set.py Defines the Enrollment 834 005010X220A1 transaction set model. """ from typing import List, Optional from linuxforhealth.x12.models import X12SegmentGroup from .loops import Footer, Header, Loop1000A, Loop1000B, Loop1000C, Loop2000 from pydantic import root_validator, Field from linuxforhealt...
27.275862
88
0.78129
92
791
6.543478
0.543478
0.074751
0.099668
0
0
0
0
0
0
0
0
0.111441
0.149178
791
28
89
28.25
0.783061
0.300885
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.416667
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
299875f6900cd7a8b095fbe70057acd505857f31
4,796
py
Python
finetune/target_models/multifield.py
IndicoDataSolutions/finetune-transformer-lm
3534658e5de281e5634c8481b0fb37635b0cb3af
[ "MIT" ]
null
null
null
finetune/target_models/multifield.py
IndicoDataSolutions/finetune-transformer-lm
3534658e5de281e5634c8481b0fb37635b0cb3af
[ "MIT" ]
null
null
null
finetune/target_models/multifield.py
IndicoDataSolutions/finetune-transformer-lm
3534658e5de281e5634c8481b0fb37635b0cb3af
[ "MIT" ]
null
null
null
import copy from finetune.errors import FinetuneError from finetune.target_models.classifier import Classifier, ClassificationPipeline from finetune.target_models.regressor import Regressor, RegressionPipeline from finetune.base import BaseModel class MultiFieldClassificationPipeline(ClassificationPipeline): def...
38.677419
116
0.66347
595
4,796
5.267227
0.24874
0.030632
0.030632
0.035737
0.721761
0.705169
0.651564
0.651564
0.632419
0.608807
0
0.001382
0.245413
4,796
123
117
38.99187
0.864603
0.483111
0
0.238095
0
0
0.045671
0
0
0
0
0
0
1
0.309524
false
0
0.119048
0.095238
0.833333
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
1
0
0
0
0
0
0
0
3
2998b411809973174ac82478a06ef6fa40c371df
157
py
Python
db_s3_backup/db_interface/dump_protocol.py
saurabhariyan/db-s3-backup
5b67737f43814f0841d47033c92825206a24e1a1
[ "MIT" ]
9
2015-08-04T00:54:46.000Z
2021-08-29T04:21:13.000Z
db_s3_backup/db_interface/dump_protocol.py
saurabhariyan/db-s3-backup
5b67737f43814f0841d47033c92825206a24e1a1
[ "MIT" ]
7
2015-05-28T15:57:15.000Z
2017-01-25T11:29:28.000Z
db_s3_backup/db_interface/dump_protocol.py
saurabhariyan/db-s3-backup
5b67737f43814f0841d47033c92825206a24e1a1
[ "MIT" ]
9
2015-05-28T13:09:25.000Z
2021-02-12T04:57:04.000Z
from exceptions import ValueError class DumpProtocol: def dump(self, config=None, verbose=False): raise ValueError('DumpProtocol not followed')
26.166667
53
0.751592
18
157
6.555556
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.171975
157
5
54
31.4
0.907692
0
0
0
0
0
0.159236
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
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
1
0
0
0
0
0
0
0
3
299c9b32319909c8f36fc5af498db57a782db34f
437
py
Python
integration_tests/test_12_dmaap.py
krasm/python-onapsdk
87cd3017fc542a8afd3be51fbd89934ed87ed3a7
[ "Apache-2.0" ]
4
2020-06-13T04:51:27.000Z
2021-01-06T15:00:51.000Z
integration_tests/test_12_dmaap.py
krasm/python-onapsdk
87cd3017fc542a8afd3be51fbd89934ed87ed3a7
[ "Apache-2.0" ]
10
2021-09-20T15:42:47.000Z
2021-09-23T12:49:51.000Z
integration_tests/test_12_dmaap.py
krasm/python-onapsdk
87cd3017fc542a8afd3be51fbd89934ed87ed3a7
[ "Apache-2.0" ]
8
2020-08-28T10:56:02.000Z
2022-02-11T17:06:03.000Z
# SPDX-License-Identifier: Apache-2.0 # Copyright 2020 Nokia import pytest import logging import os from onapsdk.dmaap.dmaap import Dmaap logging.basicConfig(level=os.environ.get("LOGLEVEL", "DEBUG")) @pytest.mark.integration def test_should_get_all_topics_from_dmaap(): # given # when response = Dmaap....
20.809524
95
0.729977
58
437
5.344828
0.724138
0.03871
0.077419
0
0
0
0
0
0
0
0
0.034853
0.146453
437
20
96
21.85
0.796247
0.16476
0
0
0
0
0.122563
0
0
0
0
0
0.111111
1
0.111111
false
0.111111
0.444444
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
1
1
0
1
0
0
3
29a1b5f087c1d14e9f6ed91d094e1aa061d5a041
2,798
py
Python
phonotactics/onsets/onsets.py
shlomo-Kallner/coventreiya
aa0773693220025f8d2c23644a2c5d9d884773e9
[ "Apache-2.0" ]
null
null
null
phonotactics/onsets/onsets.py
shlomo-Kallner/coventreiya
aa0773693220025f8d2c23644a2c5d9d884773e9
[ "Apache-2.0" ]
null
null
null
phonotactics/onsets/onsets.py
shlomo-Kallner/coventreiya
aa0773693220025f8d2c23644a2c5d9d884773e9
[ "Apache-2.0" ]
null
null
null
__name__ = 'onsets' __version__ = '1.5.1' __package__ = 'phonotactics' # imports #some import machinery checking and manipulations... #import sys #import os #from os import path #if '__file__' in dir(): # __mod_path = path.dirname(__file__) # if __mod_path not in sys.path: # sys.path.app...
30.086022
84
0.592566
322
2,798
4.841615
0.326087
0.053881
0.007697
0.030789
0.234766
0.184092
0.14304
0.14304
0.087235
0.064144
0
0.012664
0.209793
2,798
92
85
30.413043
0.692447
0.372051
0
0
0
0
0.017358
0
0
0
0
0
0
1
0.25
false
0.03125
0.125
0.15625
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
1
1
0
0
3
29a40a64c821d23b2e28418293629df23986810c
6,343
bzl
Python
tools/bzl/deps.bzl
xshaun/compiler-programl
f90bcd84700d0f245c80440a3d5fd29370d2f973
[ "Apache-2.0" ]
null
null
null
tools/bzl/deps.bzl
xshaun/compiler-programl
f90bcd84700d0f245c80440a3d5fd29370d2f973
[ "Apache-2.0" ]
null
null
null
tools/bzl/deps.bzl
xshaun/compiler-programl
f90bcd84700d0f245c80440a3d5fd29370d2f973
[ "Apache-2.0" ]
null
null
null
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def programl_deps(): http_archive( name="labm8", sha256="e4bc669322533e7615f689e5e8a810446d0c803be2e3b21e99a4e0135709755e", strip_prefix="labm8-b98301dec615465a6567bed4ec4131753d1f8b32", urls=[ "https://github.com/ChrisCummin...
35.836158
153
0.760366
590
6,343
7.972881
0.20678
0.049107
0.063776
0.065051
0.281888
0.176446
0.10034
0.07568
0.07568
0.040391
0
0.271413
0.116506
6,343
176
154
36.039773
0.567987
0.001577
0
0.296774
0
0.064516
0.677776
0.365977
0
0
0
0
0
1
0.006452
true
0
0
0
0.006452
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
29a916eb7d2d8321665bd4ae8b4fed316f3bc30f
217
py
Python
sklearn-nlp/utils/data_utils.py
fmailhot/sklearn-nlp
3de76cb71fc85bc1231bdfa9cd78b5f98a0f14f7
[ "BSD-3-Clause" ]
null
null
null
sklearn-nlp/utils/data_utils.py
fmailhot/sklearn-nlp
3de76cb71fc85bc1231bdfa9cd78b5f98a0f14f7
[ "BSD-3-Clause" ]
null
null
null
sklearn-nlp/utils/data_utils.py
fmailhot/sklearn-nlp
3de76cb71fc85bc1231bdfa9cd78b5f98a0f14f7
[ "BSD-3-Clause" ]
null
null
null
"""Data loading/munging utilities. This will need to leverage a lot of existing stuff (e.g. numpy.genfromtxt)... """ import logging class DataLoader(object): def __init__(self, data_files=None): pass
15.5
50
0.700461
30
217
4.9
0.966667
0
0
0
0
0
0
0
0
0
0
0
0.18894
217
13
51
16.692308
0.835227
0.506912
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0.25
0.25
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
1
0
1
0
0
1
0
0
3
29aa6576959454006572496dfd5c5ae886a2c7c2
78
py
Python
Configuration/Eras/python/Modifier_run3_nanoAOD_devel_cff.py
malbouis/cmssw
16173a30d3f0c9ecc5419c474bb4d272c58b65c8
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Configuration/Eras/python/Modifier_run3_nanoAOD_devel_cff.py
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Configuration/Eras/python/Modifier_run3_nanoAOD_devel_cff.py
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms run3_nanoAOD_devel = cms.Modifier()
19.5
40
0.820513
11
78
5.636364
0.909091
0
0
0
0
0
0
0
0
0
0
0.014286
0.102564
78
3
41
26
0.871429
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
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
1
0
0
0
0
3
29b245fab6ed28cf6c359207c9c4af61c43d22d1
102
py
Python
ch7/exercises/parrot.py
hewittaj/python_crash_course
52a3341eec79c2eb6c7f9f1cb7f0806c3b2d61aa
[ "MIT" ]
null
null
null
ch7/exercises/parrot.py
hewittaj/python_crash_course
52a3341eec79c2eb6c7f9f1cb7f0806c3b2d61aa
[ "MIT" ]
null
null
null
ch7/exercises/parrot.py
hewittaj/python_crash_course
52a3341eec79c2eb6c7f9f1cb7f0806c3b2d61aa
[ "MIT" ]
null
null
null
# using the input() function message = input("Tell me something, and I'll repeat it!") print(message)
25.5
57
0.72549
16
102
4.625
0.875
0
0
0
0
0
0
0
0
0
0
0
0.147059
102
4
58
25.5
0.850575
0.254902
0
0
0
0
0.506667
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
1
0
3
29d39c3e482269db7c4ce7b3f24a9b213141989d
141
py
Python
api/server/utils/logger.py
ktolstikhin/vision-service
b87f10f5ec3d22b76c06a0e6c0105fd823e60c39
[ "MIT" ]
null
null
null
api/server/utils/logger.py
ktolstikhin/vision-service
b87f10f5ec3d22b76c06a0e6c0105fd823e60c39
[ "MIT" ]
null
null
null
api/server/utils/logger.py
ktolstikhin/vision-service
b87f10f5ec3d22b76c06a0e6c0105fd823e60c39
[ "MIT" ]
null
null
null
import logging def initialize(app): level = logging.DEBUG if app.config.get('DEBUG') else logging.INFO app.logger.setLevel(level)
17.625
70
0.723404
20
141
5.1
0.7
0
0
0
0
0
0
0
0
0
0
0
0.163121
141
7
71
20.142857
0.864407
0
0
0
0
0
0.035714
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
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
1
0
0
0
0
0
0
0
3
29ecd75f594b19acd9901238ad242a2ae33df3f6
112
py
Python
layers/modules/__init__.py
Eralaf/ssd.pytorch
acad53fd801f32120ecb3ff57950556e35db3d1c
[ "MIT" ]
null
null
null
layers/modules/__init__.py
Eralaf/ssd.pytorch
acad53fd801f32120ecb3ff57950556e35db3d1c
[ "MIT" ]
null
null
null
layers/modules/__init__.py
Eralaf/ssd.pytorch
acad53fd801f32120ecb3ff57950556e35db3d1c
[ "MIT" ]
null
null
null
from .l2norm import L2Norm from .multibox_loss import MultiBoxLoss __all__ = ['L2Norm', 'MultiBoxLoss']
22.4
39
0.732143
12
112
6.416667
0.583333
0
0
0
0
0
0
0
0
0
0
0.032609
0.178571
112
4
40
28
0.804348
0
0
0
0
0
0.160714
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
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
1
0
0
0
0
3
29f40d1447bb8284816ad9a4024cc926058b38fe
29,679
py
Python
serialized_data_converter.py
facelessuser/SerializedDataConverter
6cd0d59ae6cda98208e60e9c729d0eb047fe93db
[ "MIT" ]
19
2015-02-13T08:16:32.000Z
2021-07-31T02:55:39.000Z
serialized_data_converter.py
facelessuser/SerializedDataConverter
6cd0d59ae6cda98208e60e9c729d0eb047fe93db
[ "MIT" ]
9
2015-03-10T15:34:08.000Z
2019-11-18T01:57:20.000Z
serialized_data_converter.py
facelessuser/SerializedDataConverter
6cd0d59ae6cda98208e60e9c729d0eb047fe93db
[ "MIT" ]
4
2015-10-01T16:04:52.000Z
2019-10-27T00:53:36.000Z
""" Serialized Data Converter. Licensed under MIT Copyright (c) 2012 - 2015 Isaac Muse <isaacmuse@gmail.com> """ import sublime import sublime_plugin import codecs import re import traceback import os from SerializedDataConverter.lib.log import error_msg from SerializedDataConverter.lib import plist_includes as plist ...
36.371324
117
0.553253
3,364
29,679
4.749405
0.0761
0.023409
0.030982
0.019153
0.750955
0.722852
0.675033
0.642987
0.62615
0.601364
0
0.004264
0.344183
29,679
815
118
36.415951
0.816584
0.125375
0
0.724258
0
0
0.152553
0.035821
0
0
0
0
0
1
0.064572
false
0
0.017452
0
0.17452
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
4b1ec72cd59cc0bdeabf8053a9474d679e3c099c
963
py
Python
src/main/tools/dbpy/FotechUtils/dbUtils.py
inqwell/inq
31ce4cd6b9b123b1ec4462905ccbcf7c00d6efc3
[ "BSD-3-Clause" ]
1
2016-09-25T16:41:57.000Z
2016-09-25T16:41:57.000Z
src/main/tools/dbpy/FotechUtils/dbUtils.py
inqwell/inq
31ce4cd6b9b123b1ec4462905ccbcf7c00d6efc3
[ "BSD-3-Clause" ]
null
null
null
src/main/tools/dbpy/FotechUtils/dbUtils.py
inqwell/inq
31ce4cd6b9b123b1ec4462905ccbcf7c00d6efc3
[ "BSD-3-Clause" ]
2
2016-09-25T16:48:49.000Z
2020-05-26T20:00:33.000Z
# # $Header: /home/inqwell/cvsroot/dev/scripts/python/FotechUtils/dbUtils.py,v 1.1 2009/05/22 22:16:32 sanderst Exp $ # import KBC.fotech from Util import db from dbConfig import configurationProvider def getConnection( confile, system, level, access = "read", site = None, user = None, pwdfile = None ): """ ...
45.857143
129
0.726895
133
963
5.255639
0.646617
0.04721
0.048641
0
0
0
0
0
0
0
0
0.022901
0.183801
963
20
130
48.15
0.866412
0.480789
0
0
0
0
0.008658
0
0
0
0
0
0
1
0.142857
false
0.285714
0.428571
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
0
0
1
1
0
1
0
0
3
4b27ad25bbde1311e3d80132c3a579efdb94319b
431
py
Python
HowloserUare/api/serializers.py
HowloserUare/HowloserUare-api
c5f8a111f1c4bacba8d0932d8da7ad72dd3ce5c0
[ "MIT" ]
null
null
null
HowloserUare/api/serializers.py
HowloserUare/HowloserUare-api
c5f8a111f1c4bacba8d0932d8da7ad72dd3ce5c0
[ "MIT" ]
null
null
null
HowloserUare/api/serializers.py
HowloserUare/HowloserUare-api
c5f8a111f1c4bacba8d0932d8da7ad72dd3ce5c0
[ "MIT" ]
null
null
null
from rest_framework import serializers from rest_framework.validators import UniqueValidator from core.models import User class UserSerializer(serializers.Serializer): username = serializers.CharField( max_length=16, min_length=5, validators=[UniqueValidator(User.objects.all()), ]) pas...
26.9375
59
0.712297
47
431
6.404255
0.595745
0.053156
0.112957
0.192691
0
0
0
0
0
0
0
0.017391
0.199536
431
15
60
28.733333
0.855072
0
0
0
0
0
0.00464
0
0
0
0
0
0
1
0
false
0.083333
0.25
0
0.583333
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
1
0
0
3