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
d77e347cb442e8efb95eaf2fab8e6c4e60bdc119
1,060
py
Python
Semester 7/Computational Finance (MA 473)/Term Paper - Python/compositeBoole.py
Imperial-lord/IITG
df4233905d2954511d5b16666f0d44cc38b9df90
[ "MIT" ]
4
2021-03-02T03:58:55.000Z
2022-03-28T13:38:05.000Z
Semester 7/Computational Finance (MA 473)/Term Paper - Python/compositeBoole.py
Imperial-lord/IITG
df4233905d2954511d5b16666f0d44cc38b9df90
[ "MIT" ]
null
null
null
Semester 7/Computational Finance (MA 473)/Term Paper - Python/compositeBoole.py
Imperial-lord/IITG
df4233905d2954511d5b16666f0d44cc38b9df90
[ "MIT" ]
4
2021-02-04T17:44:23.000Z
2022-03-28T13:38:09.000Z
import numpy as np from g import g from findUInitial import findUInitial def compositeBool(u, M, b, r, lambda_val, sigma, nu, eta, j): h = 2*b/M x = np.arange(-b, b+h, h) gamma = 7 * u[0]*g(-b-x[j], r, lambda_val, sigma, nu, eta) for i in range(0, int(M/4)-1): gamma += 32*u[4*i+1] * g(x[4*i+...
36.551724
78
0.537736
241
1,060
2.323651
0.195021
0.125
0.178571
0.267857
0.523214
0.501786
0.466071
0.466071
0.426786
0.378571
0
0.107488
0.218868
1,060
28
79
37.857143
0.568841
0.130189
0
0
0
0
0
0
0
0
0
0
0
1
0.055556
false
0
0.166667
0
0.277778
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d781617fdc720cf0873b88ba79ae23212367f52c
5,176
py
Python
tests/unit/dataactvalidator/test_c23_award_financial_3.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
1
2018-10-29T12:54:44.000Z
2018-10-29T12:54:44.000Z
tests/unit/dataactvalidator/test_c23_award_financial_3.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
null
null
null
tests/unit/dataactvalidator/test_c23_award_financial_3.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
null
null
null
from random import choice from string import ascii_uppercase, ascii_lowercase, digits from tests.unit.dataactcore.factories.staging import AwardFinancialFactory, AwardFinancialAssistanceFactory from tests.unit.dataactvalidator.utils import number_of_errors, query_columns _FILE = 'c23_award_financial_3' def test_col...
67.220779
117
0.66364
563
5,176
5.690941
0.195382
0.047441
0.078964
0.071785
0.718477
0.700687
0.676342
0.638889
0.638889
0.574282
0
0.022673
0.275696
5,176
76
118
68.105263
0.831955
0.062983
0
0.482759
0
0
0.026109
0.022793
0
0
0
0
0.051724
1
0.051724
false
0
0.068966
0
0.12069
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d787138c5ae04708435c69029f99b368a1c0d083
2,083
py
Python
models/encypt_decrypt.py
nguyenductamlhp/crypto-hcmus
37f1abc6d6db5a224f2035de225aaa570db530f7
[ "MIT" ]
null
null
null
models/encypt_decrypt.py
nguyenductamlhp/crypto-hcmus
37f1abc6d6db5a224f2035de225aaa570db530f7
[ "MIT" ]
null
null
null
models/encypt_decrypt.py
nguyenductamlhp/crypto-hcmus
37f1abc6d6db5a224f2035de225aaa570db530f7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from odoo import api, fields, models from odoo.addons.website.models.website import slug import string from datetime import datetime import sys, getopt, os, struct from Crypto.Cipher import AES from Crypto.Hash import MD5, SHA256 from Crypto import Random import Crypto.Util.Counter import bas...
26.705128
98
0.587134
265
2,083
4.532075
0.301887
0.037469
0.043297
0.029975
0.223147
0.223147
0.196503
0.09159
0.09159
0.09159
0
0.016351
0.265963
2,083
77
99
27.051948
0.76913
0.010082
0
0.125
0
0
0.063592
0
0
0
0
0
0
0
null
null
0
0.171875
null
null
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d78761587882f07c951ddcdc760a0def33a0a3c1
384
py
Python
booking/urls.py
camrail/django-booking
49cb2bf1c9ed4087fa58db9319fa56b67bfce177
[ "MIT" ]
null
null
null
booking/urls.py
camrail/django-booking
49cb2bf1c9ed4087fa58db9319fa56b67bfce177
[ "MIT" ]
null
null
null
booking/urls.py
camrail/django-booking
49cb2bf1c9ed4087fa58db9319fa56b67bfce177
[ "MIT" ]
null
null
null
"""URLs for the booking app.""" from django.urls import path from . import views app_name = 'booking' urlpatterns = [ path('(<pk>\d+)/', views.BookingDetailView.as_view(), name='booking_detail'), path('create/', views.BookingCreateView.as_view(), name='booking_create'), pat...
24
68
0.635417
45
384
5.266667
0.511111
0.185654
0.126582
0.21519
0
0
0
0
0
0
0
0
0.195313
384
15
69
25.6
0.76699
0.065104
0
0
0
0
0.181303
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d78a15848c4df8d50080e2732d7b47f1b2239222
550
py
Python
analytics/forms.py
felipecerinzasick/blog
fbe2b3d7ecc2937a31a925d50f7112a299b9da3e
[ "MIT" ]
null
null
null
analytics/forms.py
felipecerinzasick/blog
fbe2b3d7ecc2937a31a925d50f7112a299b9da3e
[ "MIT" ]
null
null
null
analytics/forms.py
felipecerinzasick/blog
fbe2b3d7ecc2937a31a925d50f7112a299b9da3e
[ "MIT" ]
null
null
null
import secrets from django import forms from .models import Client, Page class ClientForm(forms.ModelForm): track_id = forms.CharField(required=False) class Meta: model = Client exclude = ('is_verified', ) def clean_track_id(self): return secrets.token_urlsafe(25) class PageF...
19.642857
55
0.647273
64
550
5.296875
0.5625
0.082596
0.082596
0
0
0
0
0
0
0
0
0.004819
0.245455
550
27
56
20.37037
0.812048
0
0
0.117647
0
0
0.040073
0
0
0
0
0
0
1
0.117647
false
0
0.176471
0.058824
0.647059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d78b1ac82936f985a19401e3e4a7baba83b11f5e
4,050
py
Python
test/core/tconx_helper.py
adidas/m3d-api
755d676452e4b10075fa65f9acfdbf30a6ee828e
[ "Apache-2.0" ]
24
2019-09-26T13:15:14.000Z
2021-11-10T11:10:04.000Z
test/core/tconx_helper.py
adidas/m3d-api
755d676452e4b10075fa65f9acfdbf30a6ee828e
[ "Apache-2.0" ]
null
null
null
test/core/tconx_helper.py
adidas/m3d-api
755d676452e4b10075fa65f9acfdbf30a6ee828e
[ "Apache-2.0" ]
11
2019-09-26T13:27:10.000Z
2020-11-04T03:13:20.000Z
import os import py import json class TconxHelper(object): class Tags(object): CONFIG = "config" TABLE = "table" PUSHDOWN = "pushdown" default_tconx_emr_bi_test101 = \ "test/resources/s3_table_test_base/tconx-bdp-emr_test-dev-bi_test101.json" @staticmethod def setup_...
28.521127
82
0.597284
386
4,050
5.867876
0.160622
0.083444
0.074614
0.174834
0.722296
0.673731
0.592494
0.592494
0.559823
0.528477
0
0.00372
0.336296
4,050
141
83
28.723404
0.838914
0
0
0.603306
0
0
0.03358
0.02321
0
0
0
0
0
1
0.049587
false
0
0.024793
0
0.14876
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d796e86f25170c137e4b97c61e56f814ec771912
1,255
py
Python
venv/lib/python3.9/site-packages/tests/test_service_registry_integration.py
neophyte88/sistine3
e685d751a7f1c836d5603211d7cf267420fc8fa2
[ "MIT" ]
1
2022-03-09T08:16:09.000Z
2022-03-09T08:16:09.000Z
venv/lib/python3.9/site-packages/tests/test_service_registry_integration.py
neophyte88/sistine3
e685d751a7f1c836d5603211d7cf267420fc8fa2
[ "MIT" ]
null
null
null
venv/lib/python3.9/site-packages/tests/test_service_registry_integration.py
neophyte88/sistine3
e685d751a7f1c836d5603211d7cf267420fc8fa2
[ "MIT" ]
null
null
null
from unittest import TestCase, skipIf from unittest.mock import patch from io import BytesIO import sys from tests.services.service_service_registry_integration import TestServiceNoServiceRegistries, \ TestServiceOneServiceRegistry IS_WINDOWS = sys.platform.startswith("win32") class ServiceRegistryIn...
35.857143
98
0.69243
121
1,255
7.008264
0.586777
0.053066
0.037736
0.04717
0.101415
0.101415
0.101415
0
0
0
0
0.005035
0.208765
1,255
34
99
36.911765
0.848943
0.027092
0
0.153846
0
0
0.156118
0.079325
0
0
0
0
0.153846
1
0.115385
false
0.076923
0.192308
0
0.346154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ad02a55fe160781feb990f868f7d285190b4d9ad
2,208
py
Python
semester_enrollment/views.py
Cent-Luc/University_Portal
82bf40a1c0d98111ffe8a184d16b543a3feec072
[ "MIT" ]
null
null
null
semester_enrollment/views.py
Cent-Luc/University_Portal
82bf40a1c0d98111ffe8a184d16b543a3feec072
[ "MIT" ]
1
2020-02-11T22:01:10.000Z
2020-02-11T22:01:10.000Z
semester_enrollment/views.py
c3n7/university-portal
82bf40a1c0d98111ffe8a184d16b543a3feec072
[ "MIT" ]
3
2019-11-14T08:50:15.000Z
2019-11-15T15:36:45.000Z
from django.contrib.auth.mixins import ( LoginRequiredMixin, UserPassesTestMixin, ) from django.shortcuts import get_object_or_404 from django.views.generic import DetailView, ListView from django.views.generic.edit import UpdateView, CreateView from django.urls import reverse_lazy from django.contrib import me...
37.423729
96
0.74683
230
2,208
7.030435
0.343478
0.037106
0.049474
0.074212
0.185529
0.185529
0.087199
0.06308
0.06308
0
0
0.003224
0.157156
2,208
58
97
38.068966
0.865664
0.081069
0
0.195122
0
0
0.090909
0.058442
0
0
0
0
0
1
0.097561
false
0.04878
0.219512
0
0.804878
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ad0ea11354df88241367a32692a14192dfe2d074
1,744
py
Python
iago-bot/user.py
angelavuong/iago
3a4bd71ce122c95f691ba05b88ab79e467879232
[ "Apache-2.0" ]
null
null
null
iago-bot/user.py
angelavuong/iago
3a4bd71ce122c95f691ba05b88ab79e467879232
[ "Apache-2.0" ]
4
2021-03-04T21:32:08.000Z
2021-03-23T14:54:28.000Z
iago-bot/user.py
angelavuong/iago
3a4bd71ce122c95f691ba05b88ab79e467879232
[ "Apache-2.0" ]
1
2021-03-04T20:16:57.000Z
2021-03-04T20:16:57.000Z
from datetime import datetime from google.oauth2.credentials import Credentials class User: """ Each user who added iago will be represented by an immutable object of user, this object is used to link user to tasks and for reporting purpose. No selections or sensitive data of the user is collected in the user ...
24.914286
153
0.618693
228
1,744
4.570175
0.359649
0.053743
0.067179
0.040307
0.046065
0
0
0
0
0
0
0.001642
0.301606
1,744
69
154
25.275362
0.853859
0.202982
0
0.254902
0
0
0.011679
0
0
0
0
0
0
1
0.235294
false
0
0.039216
0.098039
0.431373
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ad10b4e4a8b2ae26b0e43171b1c0d9eb2bf13a69
5,155
py
Python
tests/ut/python/fallback/python_builtin/test_graph_fallback_python_builtin_bool_int_float.py
zhz44/mindspore
6044d34074c8505dd4b02c0a05419cbc32a43f86
[ "Apache-2.0" ]
1
2022-02-23T09:13:43.000Z
2022-02-23T09:13:43.000Z
tests/ut/python/fallback/python_builtin/test_graph_fallback_python_builtin_bool_int_float.py
zhz44/mindspore
6044d34074c8505dd4b02c0a05419cbc32a43f86
[ "Apache-2.0" ]
null
null
null
tests/ut/python/fallback/python_builtin/test_graph_fallback_python_builtin_bool_int_float.py
zhz44/mindspore
6044d34074c8505dd4b02c0a05419cbc32a43f86
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
21.751055
78
0.579437
700
5,155
4.174286
0.175714
0.047912
0.066735
0.129021
0.650924
0.596509
0.462355
0.428131
0.428131
0.389802
0
0.038787
0.289816
5,155
236
79
21.84322
0.759355
0.367992
0
0.411215
0
0
0.014631
0
0
0
0
0
0.121495
1
0.242991
false
0
0.028037
0
0.392523
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ad1419910a1eeb6bc98d0973cb740028cdbbcb6f
2,579
py
Python
integergen.py
mokira3d48/datgentor
19479800e68bbe2995b6640ada77efeb6989777c
[ "MIT" ]
null
null
null
integergen.py
mokira3d48/datgentor
19479800e68bbe2995b6640ada77efeb6989777c
[ "MIT" ]
null
null
null
integergen.py
mokira3d48/datgentor
19479800e68bbe2995b6640ada77efeb6989777c
[ "MIT" ]
null
null
null
import random import datagen class IntegerGenerator(datagen.DataGenerator): """ Generateur de nombre entier """ def __init__(self, alphabet=None, dataset=None, intervalle=None): """ Constructeur d'un generateur de nombre entier """ super().__init__(alphabet=alphabet, dataset=data...
26.316327
82
0.578907
290
2,579
5
0.358621
0.067586
0.028966
0.033103
0.06069
0.04
0
0
0
0
0
0.006865
0.322218
2,579
97
83
26.587629
0.822654
0.410237
0
0.060606
1
0
0.005435
0
0
0
0
0
0
1
0.121212
false
0
0.060606
0
0.30303
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ad155503d5b317d4a4a8d1c7f49bdeeff43376ea
14,571
py
Python
genswindump.py
liulei/VOLKS
eb459cef8f10a8f27a37eb633c5d070fa39f5279
[ "Apache-2.0" ]
null
null
null
genswindump.py
liulei/VOLKS
eb459cef8f10a8f27a37eb633c5d070fa39f5279
[ "Apache-2.0" ]
null
null
null
genswindump.py
liulei/VOLKS
eb459cef8f10a8f27a37eb633c5d070fa39f5279
[ "Apache-2.0" ]
2
2018-12-13T21:30:39.000Z
2019-07-06T03:06:51.000Z
#!/usr/bin/env python import sys import numpy as np from mpl_toolkits.mplot3d import Axes3D import matplotlib import matplotlib.pyplot as plt import difxfile #import cvnply scan_no = -1 ph0_dict = {1: 0, 69: 0.581375, 71: 0.414097, 73: 0.246818} def calc_psr_phase(t): c1 = -6.89262836039208383e-03...
30.23029
150
0.505319
2,209
14,571
3.230421
0.162064
0.023543
0.012612
0.009809
0.278307
0.20838
0.184557
0.148823
0.122337
0.090527
0
0.12709
0.33903
14,571
481
151
30.293139
0.613851
0.190721
0
0.220779
0
0.003247
0.037907
0.011611
0
0
0
0
0.00974
0
null
null
0
0.019481
null
null
0.016234
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ad18d9fb1e6374442bc92a583712730fae4e60ed
450
py
Python
04. Data Analysis/review_analysis/0-simple-app.py
lior-abadi/python-training
9f844e6d45b27c4dceaff44be3ec975eef1966fc
[ "MIT" ]
null
null
null
04. Data Analysis/review_analysis/0-simple-app.py
lior-abadi/python-training
9f844e6d45b27c4dceaff44be3ec975eef1966fc
[ "MIT" ]
null
null
null
04. Data Analysis/review_analysis/0-simple-app.py
lior-abadi/python-training
9f844e6d45b27c4dceaff44be3ec975eef1966fc
[ "MIT" ]
null
null
null
import justpy as jp def app() : wp = jp.QuasarPage() divider = jp.QDiv(a = wp, classes = "q-pa-sm") h1 = jp.QDiv(a = wp, text = "Analysis of Course Reviews", classes = "text-h3 text-center") divider = jp.QDiv(a = wp, classes = "q-pa-sm") p1 = jp.QDiv(a = wp, text = "These graphs represent course r...
32.142857
113
0.615556
73
450
3.794521
0.424658
0.108303
0.126354
0.162455
0.462094
0.368231
0.368231
0.368231
0.368231
0.259928
0
0.011429
0.222222
450
14
114
32.142857
0.78
0
0
0.2
0
0
0.286031
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.3
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ad215460f1ab811bd8632b458869ea99823cc395
405
py
Python
tradukoj/migrations/0013_auto_20190122_1653.py
jsancho-gpl/django-tradukoj
bf8c563436411035f00d99a822be8259a9783692
[ "BSD-3-Clause" ]
7
2019-06-05T11:05:05.000Z
2022-02-23T20:35:28.000Z
tradukoj/migrations/0013_auto_20190122_1653.py
jsancho-gpl/django-tradukoj
bf8c563436411035f00d99a822be8259a9783692
[ "BSD-3-Clause" ]
null
null
null
tradukoj/migrations/0013_auto_20190122_1653.py
jsancho-gpl/django-tradukoj
bf8c563436411035f00d99a822be8259a9783692
[ "BSD-3-Clause" ]
2
2020-03-04T11:40:56.000Z
2020-04-17T18:23:06.000Z
# Generated by Django 2.0.4 on 2019-01-22 16:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tradukoj', '0012_auto_20181219_1842'), ] operations = [ migrations.AlterField( model_name='gettextfile', name='file'...
21.315789
65
0.609877
43
405
5.627907
0.837209
0
0
0
0
0
0
0
0
0
0
0.105442
0.274074
405
18
66
22.5
0.717687
0.111111
0
0
1
0
0.173184
0.064246
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ad252fd887ad958a5a25b0b63d3e5f8e6b04a294
3,323
py
Python
utils/shared/keyvalues3.py
kristiker/source1import
c0f22434c37f32acd598d5a5115dfbc2103d8277
[ "MIT" ]
9
2021-08-29T19:24:55.000Z
2022-02-11T18:25:57.000Z
utils/shared/keyvalues3.py
kristiker/source1import
c0f22434c37f32acd598d5a5115dfbc2103d8277
[ "MIT" ]
4
2022-02-04T00:31:13.000Z
2022-03-18T16:15:58.000Z
utils/shared/keyvalues3.py
kristiker/source1import
c0f22434c37f32acd598d5a5115dfbc2103d8277
[ "MIT" ]
1
2021-11-22T16:46:59.000Z
2021-11-22T16:46:59.000Z
from pathlib import Path from dataclasses import dataclass @dataclass(frozen=True) class KV3Header: encoding: str = 'text' encoding_ver: str = 'e21c7f3c-8a33-41c5-9977-a76d3a32aa0d' format: str = 'generic' format_ver: str = '7412167c-06e9-4698-aff2-e63eb59037e7' _common = '<!-- kv3 encoding:%s:...
36.516484
160
0.519109
379
3,323
4.422164
0.290237
0.0358
0.040573
0.02148
0.110979
0.045346
0
0
0
0
0
0.065277
0.336142
3,323
90
161
36.922222
0.69447
0.03882
0
0.051948
0
0.038961
0.232361
0.126685
0
0
0
0.011111
0.038961
1
0.090909
false
0
0.038961
0.025974
0.38961
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
ad2a0d04cf366384203d414495a1009130d46aa9
1,793
py
Python
tests/xml_editors/TestWalkEditor.py
rdok/cyberpunk2077-r6-config-editor
d4149e91bbeeb641c7e8f85be468085b251c6ae7
[ "MIT" ]
1
2021-01-03T21:15:14.000Z
2021-01-03T21:15:14.000Z
tests/xml_editors/TestWalkEditor.py
rdok/cyberpunk2077-r6-config-editor
d4149e91bbeeb641c7e8f85be468085b251c6ae7
[ "MIT" ]
8
2020-12-25T18:32:12.000Z
2021-11-05T20:48:14.000Z
tests/xml_editors/TestWalkEditor.py
rdok/cyberpunk2077-r6-config-editor
d4149e91bbeeb641c7e8f85be468085b251c6ae7
[ "MIT" ]
null
null
null
import unittest from unittest.mock import MagicMock, patch from src.Config import Config from src.xml_editors.CustomTreeBuilder import CustomTreeBuilder from src.xml_editors.walk_key_editor import WalkEditor, XAxis, YAxis from src.xml_editors.walk_key_editor.walk_key import WalkKey class TestWalkEditor(unittest.Test...
35.86
79
0.730619
243
1,793
5.012346
0.246914
0.108374
0.144499
0.180624
0.389984
0.344007
0.299672
0.175698
0
0
0
0
0.195204
1,793
49
80
36.591837
0.844075
0
0
0
0
0
0.046849
0.046849
0
0
0
0
0.289474
1
0.026316
false
0
0.157895
0
0.210526
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ad2b1281b719a1b107816497d65d740b296fbba9
2,789
py
Python
rowan/random/__init__.py
glotzerlab/rowan
c17147859432d3dc2b023e086632afa8f447f190
[ "BSD-3-Clause" ]
11
2019-02-09T14:49:56.000Z
2020-11-29T04:57:57.000Z
rowan/random/__init__.py
glotzerlab/rowan
c17147859432d3dc2b023e086632afa8f447f190
[ "BSD-3-Clause" ]
11
2019-03-05T15:39:36.000Z
2020-06-25T11:32:56.000Z
rowan/random/__init__.py
glotzerlab/rowan
c17147859432d3dc2b023e086632afa8f447f190
[ "BSD-3-Clause" ]
6
2019-02-12T21:35:06.000Z
2021-11-10T15:51:33.000Z
# Copyright (c) 2019 The Regents of the University of Michigan # All rights reserved. # This software is licensed under the BSD 3-Clause License. """Various functions for generating random sets of rotation quaternions. Random quaternions in general can be generated by simply randomly sampling 4-vectors, and they can b...
30.648352
88
0.655432
400
2,789
4.54
0.4825
0.046256
0.011013
0.026432
0.205947
0.169604
0.151982
0.151982
0.151982
0.151982
0
0.035815
0.239154
2,789
90
89
30.988889
0.819981
0.713159
0
0.08
0
0
0.025564
0
0
0
0
0.011111
0
1
0.08
false
0
0.04
0
0.24
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
ad332e8ae36db94468991b6a987da776443f9142
533
py
Python
setup.py
NewKnowledge/gecko
0d48807608a680a8debe92a7c784444a8d350494
[ "MIT" ]
1
2019-04-04T08:33:57.000Z
2019-04-04T08:33:57.000Z
setup.py
NewKnowledge/gecko
0d48807608a680a8debe92a7c784444a8d350494
[ "MIT" ]
1
2018-12-17T19:45:59.000Z
2018-12-17T19:45:59.000Z
setup.py
NewKnowledge/gecko
0d48807608a680a8debe92a7c784444a8d350494
[ "MIT" ]
null
null
null
from distutils.core import setup setup(name='Gecko', version='1.0.0', description='Gecko - Graph Embeddings for Classification and Knowledge Observation', packages=['Gecko'], install_requires=['scikit-learn >= 0.18.1', # 'gem>=1.0.0', 'scipy >= 0.19.0', 'numpy>=1.14.2', ...
31.352941
88
0.589118
72
533
4.305556
0.680556
0.019355
0.019355
0
0
0
0
0
0
0
0
0.090692
0.213884
533
17
89
31.352941
0.649165
0.136961
0
0
0
0
0.454148
0
0
0
0
0
0
1
0
true
0
0.071429
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
ad3ee29fab2f38f42809fd167e14362f842ee953
3,000
py
Python
engine/model/assimp_loader.py
alexcher-im/sgemu
e85c6834b1057a27ba5c41c357c0de2336a12e2e
[ "Zlib" ]
5
2020-10-24T12:39:52.000Z
2021-04-04T22:47:44.000Z
engine/model/assimp_loader.py
alexcher-im/sgemu
e85c6834b1057a27ba5c41c357c0de2336a12e2e
[ "Zlib" ]
null
null
null
engine/model/assimp_loader.py
alexcher-im/sgemu
e85c6834b1057a27ba5c41c357c0de2336a12e2e
[ "Zlib" ]
null
null
null
from os.path import split, join from pyassimp.material import aiTextureType_DIFFUSE, aiTextureType_SPECULAR, aiTextureType_NORMALS, aiTextureType_HEIGHT from .model import Node, RenderCompound, Material, UnfinishedModel from ..gl.mesh import VAOMesh from ..gl.texture import Texture2D from ..lib.assimp import load_sce...
46.153846
120
0.692333
384
3,000
5.127604
0.302083
0.028441
0.018283
0.026409
0.015236
0
0
0
0
0
0
0.004255
0.216667
3,000
64
121
46.875
0.833617
0.055333
0
0.058824
0
0
0.044876
0
0
0
0
0.015625
0
1
0.078431
false
0
0.117647
0
0.27451
0.078431
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
ad4623321ddad3de723be7d6ec1a046b30870228
3,263
py
Python
app/urls.py
beedev24/notes
33a91866081909a6832cb93727287db0559dddf9
[ "MIT" ]
null
null
null
app/urls.py
beedev24/notes
33a91866081909a6832cb93727287db0559dddf9
[ "MIT" ]
null
null
null
app/urls.py
beedev24/notes
33a91866081909a6832cb93727287db0559dddf9
[ "MIT" ]
null
null
null
from django.urls import path from . import views from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('', views.index), path('logReg/', views.logReg), path('register/', views.register), path('login/', views.login), path('logout/', views.logout), path(...
59.327273
104
0.723874
406
3,263
5.731527
0.194581
0.154706
0.072196
0.084229
0.445208
0.418135
0.275032
0.14783
0
0
0
0
0.094392
3,263
55
105
59.327273
0.787479
0.009194
0
0
0
0
0.475542
0.452012
0
0
0
0
0
1
0
false
0
0.078431
0
0.078431
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ad46be40f9b3f8f6313f211be9a9c7a5190e393a
1,079
py
Python
contxt/services/contxt_deployments.py
ndustrialio/contxt-sdk-python-control
e87930eb65853a314eb118ea5cbc0386d2188db2
[ "0BSD" ]
null
null
null
contxt/services/contxt_deployments.py
ndustrialio/contxt-sdk-python-control
e87930eb65853a314eb118ea5cbc0386d2188db2
[ "0BSD" ]
null
null
null
contxt/services/contxt_deployments.py
ndustrialio/contxt-sdk-python-control
e87930eb65853a314eb118ea5cbc0386d2188db2
[ "0BSD" ]
null
null
null
from typing import List from requests.exceptions import HTTPError from ..auth import Auth from ..models.contxt import Cluster from ..utils.config import ContxtEnvironmentConfig from .api import ConfiguredLegacyApi class ContxtDeploymentService(ConfiguredLegacyApi): """Contxt API client""" def __init__(self...
33.71875
89
0.694161
128
1,079
5.65625
0.351563
0.116022
0.074586
0.087017
0.245856
0.179558
0
0
0
0
0
0
0.201112
1,079
31
90
34.806452
0.839907
0.015755
0
0.090909
0
0
0.088068
0.088068
0
0
0
0
0
1
0.181818
false
0.045455
0.272727
0.045455
0.681818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ad49d6a46270ed8830e974c5f0be05bc5b442ab0
223
py
Python
katas/kyu_7/bouncy_numbers.py
the-zebulan/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
40
2016-03-09T12:26:20.000Z
2022-03-23T08:44:51.000Z
katas/kyu_7/bouncy_numbers.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
null
null
null
katas/kyu_7/bouncy_numbers.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
36
2016-11-07T19:59:58.000Z
2022-03-31T11:18:27.000Z
def is_bouncy(n): s = str(n) decrease = increase = False for a, b in zip(s, s[1:]): if a < b: increase = True elif a > b: decrease = True return decrease and increase
22.3
32
0.497758
32
223
3.4375
0.625
0.054545
0
0
0
0
0
0
0
0
0
0.007519
0.403587
223
9
33
24.777778
0.819549
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ad4ccd1e363e4ead9e897e400c48e7dd89cb0aee
1,271
py
Python
backend/src/models/models/time_series.py
tmdt-buw/gideon-ts
b839672fcc19f13562f6da23e6407fff0b18d3ec
[ "MIT" ]
null
null
null
backend/src/models/models/time_series.py
tmdt-buw/gideon-ts
b839672fcc19f13562f6da23e6407fff0b18d3ec
[ "MIT" ]
null
null
null
backend/src/models/models/time_series.py
tmdt-buw/gideon-ts
b839672fcc19f13562f6da23e6407fff0b18d3ec
[ "MIT" ]
null
null
null
from typing import List, Optional from pydantic import BaseModel class TimeSeries(BaseModel): """ TimeSeries - a model defined in OpenAPI id: The id of this TimeSeries [Optional]. data: The data of this TimeSeries [Optional]. timestamps: The timestamps of this TimeSeries [Optional]. ...
28.886364
82
0.675846
146
1,271
5.842466
0.287671
0.049238
0.079719
0.098476
0.368113
0.103165
0.072685
0
0
0
0
0
0.238395
1,271
43
83
29.55814
0.881198
0.423289
0
0.421053
0
0
0
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.842105
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ad4d77ca749db621dfa6a8c0882f79824c4802c6
5,563
py
Python
hard-gists/7ccd43b1f2f79f1bb23c70920f75cec4/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/7ccd43b1f2f79f1bb23c70920f75cec4/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/7ccd43b1f2f79f1bb23c70920f75cec4/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
import uuid import random from afase.models.meta import Base from sqlalchemy import ( Column, Text, Date, ForeignKey, String, ) from sqlalchemy.types import ( TypeDecorator, CHAR, ) from sqlalchemy.dialects.postgresql import UUID from sqlalchemy.orm import ( relationship, v...
31.078212
107
0.612799
689
5,563
4.880987
0.342525
0.023788
0.037467
0.041035
0.159382
0.130241
0.074338
0.074338
0.074338
0.05055
0
0.011625
0.273234
5,563
178
108
31.252809
0.820183
0.193061
0
0.128
0
0
0.09589
0.006962
0
0
0
0.005618
0
1
0.088
false
0
0.056
0.008
0.528
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ad5b4cf70be32429ae2e7bd1a9665dd670018d3b
1,675
py
Python
ooobuild/lo/text/text_content_anchor_type.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/text/text_content_anchor_type.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/text/text_content_anchor_type.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
27.916667
154
0.696119
233
1,675
4.841202
0.506438
0.053191
0.048759
0.067376
0.124113
0.072695
0
0
0
0
0
0.025
0.21194
1,675
59
155
28.389831
0.829545
0.518806
0
0
0
0
0.295964
0.134529
0
0
0
0
0
1
0
false
0
0.090909
0
0.909091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ad5dd51fc7ed9905b46da578dce076efe35092ef
5,679
py
Python
gooddata-sdk/gooddata_sdk/catalog/data_source/declarative_model/data_source.py
gooddata/gooddata-python-sdk
df4d4a4d730ab376960ae2ed01e7d86498e85c6a
[ "MIT" ]
7
2022-01-24T16:27:06.000Z
2022-02-25T10:18:49.000Z
gooddata-sdk/gooddata_sdk/catalog/data_source/declarative_model/data_source.py
gooddata/gooddata-python-sdk
df4d4a4d730ab376960ae2ed01e7d86498e85c6a
[ "MIT" ]
29
2022-01-20T15:45:38.000Z
2022-03-31T09:39:25.000Z
gooddata-sdk/gooddata_sdk/catalog/data_source/declarative_model/data_source.py
gooddata/gooddata-python-sdk
df4d4a4d730ab376960ae2ed01e7d86498e85c6a
[ "MIT" ]
7
2022-01-20T07:11:15.000Z
2022-03-09T14:50:17.000Z
# (C) 2022 GoodData Corporation from __future__ import annotations from pathlib import Path from typing import Any, List, Optional, Type import attr from gooddata_metadata_client.model.declarative_data_source import DeclarativeDataSource from gooddata_metadata_client.model.declarative_data_sources import Declarative...
42.699248
113
0.728649
681
5,679
5.74743
0.164464
0.104752
0.065151
0.025549
0.296627
0.262391
0.188554
0.107307
0.070516
0.023505
0
0.000879
0.198274
5,679
132
114
43.022727
0.858774
0.005107
0
0.181818
0
0
0.017351
0.003718
0
0
0
0
0
1
0.1
false
0.063636
0.109091
0.027273
0.409091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ad6122d717ce645ae00e8cca4c5ffe2b21e00e08
1,874
py
Python
main.py
olaoluthomas/ltv_btyd_demo
cb24a245f11a1086d7c2d4974fc4c11fa6835bfe
[ "Apache-2.0" ]
1
2021-06-27T20:02:43.000Z
2021-06-27T20:02:43.000Z
main.py
olaoluthomas/ltv_btyd_demo
cb24a245f11a1086d7c2d4974fc4c11fa6835bfe
[ "Apache-2.0" ]
1
2021-07-20T01:32:02.000Z
2021-07-20T01:32:02.000Z
main.py
olaoluthomas/ltv_btyd_demo
cb24a245f11a1086d7c2d4974fc4c11fa6835bfe
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from flask import Flask, request, render_template import pandas as pd import os from src.scorer import load_params, ltv_predict, run_model app = Flask(__name__) @app.route("/") def home(): return render_template('home.html') @app.route("/user_input") def user_input(): return render...
33.464286
91
0.582711
257
1,874
4.066148
0.40856
0.061244
0.076555
0.022967
0.103349
0.103349
0.053589
0
0
0
0
0.014848
0.281217
1,874
56
92
33.464286
0.760208
0.085379
0
0
0
0
0.139752
0
0
0
0
0
0
0
null
null
0
0.1
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ad672842c21fd8ea39e315b9d62851c8e87e3526
3,235
py
Python
evaluation/pull_all_images.py
seveirbian/gear-old
8d3529a9bf42e652a9d7475c9d14e9a6afc69a76
[ "Apache-2.0" ]
null
null
null
evaluation/pull_all_images.py
seveirbian/gear-old
8d3529a9bf42e652a9d7475c9d14e9a6afc69a76
[ "Apache-2.0" ]
null
null
null
evaluation/pull_all_images.py
seveirbian/gear-old
8d3529a9bf42e652a9d7475c9d14e9a6afc69a76
[ "Apache-2.0" ]
null
null
null
import sys # package need to be installed, pip install docker import docker import time import yaml import os import random import subprocess import signal import shutil import urllib2 test_pull = False pwd = os.getcwd() client = docker.from_env() def empty_cache(): # docker system prune -a p = subprocess....
29.144144
104
0.643895
430
3,235
4.648837
0.302326
0.072036
0.042021
0.054027
0.427214
0.388194
0.388194
0.388194
0.278139
0.278139
0
0.020222
0.220402
3,235
110
105
29.409091
0.772403
0.025657
0
0.289157
0
0
0.154066
0.049873
0
0
0
0
0
0
null
null
0
0.120482
null
null
0.072289
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ad67345e306fc594a9dd05153dee228beeac7699
432
py
Python
market/locale/templatetags/cz.py
katomaso/django-market
84c4fa10aefbd792a956cef3d727623ca78cb5fd
[ "MIT" ]
null
null
null
market/locale/templatetags/cz.py
katomaso/django-market
84c4fa10aefbd792a956cef3d727623ca78cb5fd
[ "MIT" ]
null
null
null
market/locale/templatetags/cz.py
katomaso/django-market
84c4fa10aefbd792a956cef3d727623ca78cb5fd
[ "MIT" ]
null
null
null
# coding: utf-8 import logging from django.template import Library from django.template.defaultfilters import mark_safe register = Library() logger = logging.getLogger(__name__) @register.simple_tag(takes_context=False) def if_female(name, suffix): """Print out `siffix` if `name` is female in czech language."""...
25.411765
67
0.733796
59
432
5.20339
0.627119
0.078176
0.117264
0
0
0
0
0
0
0
0
0.002725
0.150463
432
16
68
27
0.833787
0.166667
0
0
0
0
0.016949
0
0
0
0
0
0
1
0.1
false
0
0.3
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ad6cfd3b1cbb80bd45034b3815dae7f52d39ed75
762
py
Python
QCodes/mergSort.py
Rakeshgsekhar/DataStructure
8c7eb4ec02cdba7975b834180c0c66269595bd13
[ "MIT" ]
null
null
null
QCodes/mergSort.py
Rakeshgsekhar/DataStructure
8c7eb4ec02cdba7975b834180c0c66269595bd13
[ "MIT" ]
null
null
null
QCodes/mergSort.py
Rakeshgsekhar/DataStructure
8c7eb4ec02cdba7975b834180c0c66269595bd13
[ "MIT" ]
null
null
null
def mergeSort(arr): if len(arr) > 1: mid = len(arr)//2 leftSub = arr[:mid] rightSub = arr[mid:] mergeSort(leftSub) mergeSort(rightSub) i=j=k =0 while i <len(leftSub) and j < len(rightSub): if leftSub[i]<rightSub[j]: arr...
23.8125
52
0.366142
89
762
3.134831
0.258427
0.057348
0.032258
0.114695
0.222222
0.222222
0.121864
0.121864
0
0
0
0.045333
0.507874
762
32
53
23.8125
0.698667
0
0
0.407407
0
0
0
0
0
0
0
0
0
1
0.037037
false
0
0
0
0.037037
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ad6d140a7301e456f3b24cbd83a460e2d6ab0db3
717
py
Python
services/amundsen/amundsencommon/tests/unit/log/test_http_header_caller_retrieval.py
irvcaza/datalake4os
bfe9152e9527ecc3a4928e0d93df1118152025e2
[ "Apache-2.0" ]
3
2021-02-09T13:52:03.000Z
2022-02-26T02:36:02.000Z
tests/unit/log/test_http_header_caller_retrieval.py
sreev/amundsencommon
14d02a9e73991b6260efc89c2a6fe4e1d6b71a64
[ "Apache-2.0" ]
1
2021-02-08T23:21:04.000Z
2021-02-08T23:21:04.000Z
tests/unit/log/test_http_header_caller_retrieval.py
sreev/amundsencommon
14d02a9e73991b6260efc89c2a6fe4e1d6b71a64
[ "Apache-2.0" ]
2
2021-02-23T18:23:35.000Z
2022-03-18T15:12:25.000Z
# Copyright Contributors to the Amundsen project. # SPDX-License-Identifier: Apache-2.0 import unittest import flask from mock import patch from amundsen_common.log import http_header_caller_retrieval from amundsen_common.log.http_header_caller_retrieval import HttpHeaderCallerRetrieval app = flask.Flask(__name__) ...
26.555556
111
0.753138
86
717
5.94186
0.55814
0.058708
0.093933
0.146771
0
0
0
0
0
0
0
0.003328
0.161785
717
26
112
27.576923
0.846922
0.11576
0
0
0
0
0.033281
0
0
0
0
0
0.071429
1
0.071429
false
0
0.357143
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ad705e25cd66dfbb47ce2516844894b7b73db134
3,763
py
Python
src/contractor/consulclient.py
polyswarm/contractor
2a8dc256c5437d3556bdf6f7407f4e638c504245
[ "MIT" ]
null
null
null
src/contractor/consulclient.py
polyswarm/contractor
2a8dc256c5437d3556bdf6f7407f4e638c504245
[ "MIT" ]
27
2018-12-04T22:41:07.000Z
2019-12-04T03:30:45.000Z
src/contractor/consulclient.py
polyswarm/contractor
2a8dc256c5437d3556bdf6f7407f4e638c504245
[ "MIT" ]
1
2021-04-26T10:58:23.000Z
2021-04-26T10:58:23.000Z
import json import logging import os from consul import Consul from consul.base import Timeout from urllib.parse import urlparse logger = logging.getLogger(__name__) INITIAL_WAIT = '5s' LONG_WAIT = '2m' class ConsulClient(object): """Client for interacting with Consul. """ def __init__(self, uri, toke...
36.533981
99
0.59527
477
3,763
4.618449
0.33543
0.027236
0.016341
0.015434
0.161598
0.124376
0.043577
0.043577
0.043577
0.043577
0
0.00269
0.30853
3,763
102
100
36.892157
0.843966
0.276907
0
0.072727
0
0
0.104232
0
0
0
0
0.019608
0
1
0.072727
false
0
0.109091
0
0.236364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
ad709a8c94695e76075db1ea16e0109d017a24ec
922
py
Python
swd/main/schema/mutations.py
mehulmpt/swd_django
7770dc31f75b0a0b1ad123faaad92c2a2ca222af
[ "MIT" ]
null
null
null
swd/main/schema/mutations.py
mehulmpt/swd_django
7770dc31f75b0a0b1ad123faaad92c2a2ca222af
[ "MIT" ]
1
2018-04-25T00:10:51.000Z
2018-04-25T00:10:51.000Z
swd/main/schema/mutations.py
mehulmpt/swd_django
7770dc31f75b0a0b1ad123faaad92c2a2ca222af
[ "MIT" ]
null
null
null
import graphene from graphene_django.types import DjangoObjectType from django.contrib.auth.models import User from datetime import date, datetime from main.models import * from .types import * class UpdateMessOption(graphene.Mutation): class Arguments: mess = graphene.String(required=True) month =...
32.928571
80
0.709328
99
922
6.565657
0.454545
0.033846
0
0
0
0
0
0
0
0
0
0
0.210412
922
28
81
32.928571
0.892857
0
0
0
0
0
0
0
0
0
0
0
0
1
0.043478
false
0
0.26087
0
0.608696
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ad70b5931dced00293d02ec565eaea69e732863e
180
py
Python
examples/green_rectangle.py
designer-edu/designer
9c5d004e934300a30fb6d3148f4db313b69057df
[ "MIT" ]
3
2022-01-21T00:08:02.000Z
2022-03-09T19:00:26.000Z
examples/green_rectangle.py
krishols/designer
8f80b3309802d16d8577280274e0c9fa02db306b
[ "MIT" ]
24
2021-08-13T17:09:15.000Z
2022-01-05T16:12:09.000Z
examples/green_rectangle.py
designer-edu/designer
9c5d004e934300a30fb6d3148f4db313b69057df
[ "MIT" ]
null
null
null
from designer import * green_rect = rectangle('green', 50, 50) blue_rect = rectangle('blue', 100, 100) # Because we don't pass in blue_rect, it won't be visible! draw(green_rect)
25.714286
58
0.727778
31
180
4.096774
0.645161
0.141732
0
0
0
0
0
0
0
0
0
0.065359
0.15
180
6
59
30
0.764706
0.311111
0
0
0
0
0.07377
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ad71f29e64a499d577e6bf07674084c160e1f696
3,307
py
Python
auviewer/modules/featurization/abunch.py
autonlab/auviewer
448157693e600209c805d09b1f99cdca583749e9
[ "MIT" ]
11
2020-10-25T00:10:15.000Z
2022-02-21T18:56:06.000Z
auviewer/modules/featurization/abunch.py
autonlab/auviewer
448157693e600209c805d09b1f99cdca583749e9
[ "MIT" ]
20
2021-01-21T19:32:35.000Z
2021-12-10T20:38:48.000Z
auviewer/modules/featurization/abunch.py
autonlab/auviewer
448157693e600209c805d09b1f99cdca583749e9
[ "MIT" ]
4
2021-04-13T13:51:07.000Z
2022-03-28T21:25:25.000Z
from .model import SimpleFeaturizer, FeaturizerParameter class CoeffOfVariationFeaturizer(SimpleFeaturizer): id = 'cv' name = 'Coefficient of Variation' description = 'Coefficient of variation is the mean over the standard deviation.' parameters = [ FeaturizerParameter(id='skipna', name="Skip ...
30.62037
110
0.643786
366
3,307
5.800546
0.221311
0.039567
0.067829
0.084786
0.546397
0.511069
0.511069
0.511069
0.494112
0.494112
0
0.001561
0.22528
3,307
108
111
30.62037
0.827088
0.044754
0
0.350649
0
0
0.197464
0
0
0
0
0.009259
0
1
0.116883
false
0
0.012987
0.025974
0.74026
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ad76bcab6e118bbb9b8d2fc47009e3ef3eedbaed
3,402
py
Python
djaesy/security/models.py
gustavo80br/django-djaesy
bc1617b845d374968741fe0ed11a79668b380fa2
[ "MIT" ]
1
2021-08-28T00:48:11.000Z
2021-08-28T00:48:11.000Z
djaesy/security/models.py
gustavo80br/django-djaesy
bc1617b845d374968741fe0ed11a79668b380fa2
[ "MIT" ]
1
2020-10-30T21:10:01.000Z
2020-10-30T21:10:01.000Z
djaesy/security/models.py
gustavo80br/django-djaesy
bc1617b845d374968741fe0ed11a79668b380fa2
[ "MIT" ]
1
2020-10-30T20:46:19.000Z
2020-10-30T20:46:19.000Z
from django.conf import settings from django.contrib.auth.models import BaseUserManager, AbstractUser, Group, Permission from django.db import models from django.utils.translation import ugettext_lazy as _ UserRoleClass = getattr(settings, 'DJAESY_USER_ROLE_CLASS', 'djaesy.Role') class PermissionManager(models.Manag...
32.4
98
0.673721
415
3,402
5.33494
0.301205
0.059621
0.051491
0.04336
0.341463
0.292683
0.242096
0.225836
0.186089
0.091238
0
0.001878
0.217225
3,402
104
99
32.711538
0.829516
0.072898
0
0.171429
0
0
0.121609
0.007022
0
0
0
0
0
1
0.1
false
0.1
0.057143
0.014286
0.485714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ad793b16a8572fc5bdd6f98a893f3a6dbe3c0a90
1,034
py
Python
api_client/python/timesketch_api_client/definitions.py
wajihyassine/timesketch
b099d1afb33d0b9f906a0ad407979c8f22a54476
[ "Apache-2.0" ]
1,810
2015-01-03T22:34:45.000Z
2022-03-30T10:23:18.000Z
api_client/python/timesketch_api_client/definitions.py
wajihyassine/timesketch
b099d1afb33d0b9f906a0ad407979c8f22a54476
[ "Apache-2.0" ]
1,291
2015-01-08T00:00:12.000Z
2022-03-29T03:26:58.000Z
api_client/python/timesketch_api_client/definitions.py
wajihyassine/timesketch
b099d1afb33d0b9f906a0ad407979c8f22a54476
[ "Apache-2.0" ]
519
2015-01-20T09:26:06.000Z
2022-03-29T11:02:10.000Z
# Copyright 2017 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
35.655172
74
0.798839
160
1,034
4.94375
0.59375
0.151707
0.19469
0.040455
0
0
0
0
0
0
0
0.038375
0.143133
1,034
28
75
36.928571
0.854402
0.644101
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ad7afdafbac1f04c4988fe1bccbc87fab0ab193a
2,045
py
Python
src/order/models.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
src/order/models.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
src/order/models.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
from decimal import Decimal from django.db import models from django.core.validators import MinValueValidator, MaxValueValidator from django.utils.translation import gettext_lazy as _ from course.models import Course from coupons.models import Coupon from xarala.utils import generate_key class Order(models.Model): ...
36.517857
87
0.717848
256
2,045
5.515625
0.386719
0.055241
0.053824
0.021246
0.07932
0
0
0
0
0
0
0.011884
0.177017
2,045
55
88
37.181818
0.827094
0
0
0.088889
0
0
0.044499
0
0
0
0
0
0
1
0.111111
false
0
0.155556
0.066667
0.755556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ad81b682341811b7e3f4685a3df8d3778e683d83
3,715
py
Python
ucsmsdk/mometa/mo/MoVnicKv.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/mo/MoVnicKv.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/mo/MoVnicKv.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for MoVnicKv ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class MoVnicKvConsts: OWNER_INVENTORY = "inventory" OWNER_MGMT = "mgmt" TYPE_IPV4_ADDR = "ipv4-addr" T...
53.071429
248
0.627187
407
3,715
5.584767
0.260442
0.125825
0.147822
0.221733
0.294325
0.267928
0.133744
0.133744
0.08535
0.058073
0
0.034949
0.18358
3,715
69
249
53.84058
0.714474
0.025841
0
0
0
0.071429
0.254157
0.089523
0
0
0.008038
0
0
1
0.017857
false
0
0.053571
0
0.321429
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ad84df02aaa350518a5b0bf1b84d50b3f112b756
2,997
py
Python
pyrolite_meltsutil/web.py
morganjwilliams/pyrolite-meltsutil
dee212ab2a613c0c53cf70e03bed451167c22eb9
[ "MIT" ]
5
2019-11-05T16:36:11.000Z
2021-11-30T02:07:45.000Z
pyrolite_meltsutil/web.py
morganjwilliams/pyrolite-meltsutil
dee212ab2a613c0c53cf70e03bed451167c22eb9
[ "MIT" ]
8
2019-12-09T05:50:30.000Z
2021-05-05T08:18:39.000Z
pyrolite_meltsutil/web.py
morganjwilliams/pyrolite-meltsutil
dee212ab2a613c0c53cf70e03bed451167c22eb9
[ "MIT" ]
1
2020-01-30T04:35:52.000Z
2020-01-30T04:35:52.000Z
""" Minimal REST interfaces to the MELTS web services. Todo ------ * Function to generate a valid parameter dictionary to pass to the service. """ import logging import requests import dicttoxml, xmljson from xml.etree import ElementTree as ET from pyrolite.util.web import internet_connection logging.getLogger(_...
27.245455
83
0.648982
356
2,997
5.320225
0.294944
0.067582
0.080253
0.122492
0.473073
0.473073
0.437698
0.437698
0.410771
0.391763
0
0.003465
0.229563
2,997
109
84
27.495413
0.816804
0.399399
0
0.236842
1
0
0.184837
0
0
0
0
0.009174
0.105263
1
0.105263
false
0
0.131579
0
0.342105
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ad8922f85dbeb5adf792c9a384db7757615beb5a
4,915
py
Python
fsl/data/melodicimage.py
physimals/fslpy
10dd3f996c79d402c65cf0af724b8b00082d5176
[ "Apache-2.0" ]
6
2018-04-18T03:42:50.000Z
2021-11-20T18:46:37.000Z
fsl/data/melodicimage.py
physimals/fslpy
10dd3f996c79d402c65cf0af724b8b00082d5176
[ "Apache-2.0" ]
13
2018-10-01T11:45:05.000Z
2022-03-16T12:28:36.000Z
fsl/data/melodicimage.py
physimals/fslpy
10dd3f996c79d402c65cf0af724b8b00082d5176
[ "Apache-2.0" ]
5
2017-12-09T09:02:17.000Z
2021-11-15T16:55:30.000Z
#!/usr/bin/env python # # melodicimage.py - An Image subclass which has some MELODIC-specific # functionality. # # Author: Paul McCarthy <pauldmccarthy@gmail.com> # """This module provides the :class:`MelodicImage` class, an :class:`.Image` sub-class which encapsulates data from a MELODIC analysis. """ import os.path...
30.91195
79
0.622787
533
4,915
5.660413
0.337711
0.026516
0.027842
0.024859
0.08419
0.069606
0.069606
0
0
0
0
0.001986
0.282808
4,915
158
80
31.107595
0.853901
0.498067
0
0
0
0
0.024263
0
0
0
0
0
0
1
0.229167
false
0
0.0625
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ad8d5844dbe80bc7ab4a77488e9787b7edef0138
614
py
Python
setup.py
MaxPoint/buildmatrix
1678bd37c856ec2003920390e1ee7897b23ff07a
[ "BSD-3-Clause" ]
null
null
null
setup.py
MaxPoint/buildmatrix
1678bd37c856ec2003920390e1ee7897b23ff07a
[ "BSD-3-Clause" ]
null
null
null
setup.py
MaxPoint/buildmatrix
1678bd37c856ec2003920390e1ee7897b23ff07a
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages import versioneer setup( name='buildmatrix', version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), author='Eric Dill', author_email='thedizzle@gmail.com', packages=find_packages(exclude="test"), description='Build a matrix of cond...
32.315789
74
0.669381
68
614
5.941176
0.705882
0.059406
0.084158
0
0
0
0
0
0
0
0
0.002033
0.198697
614
18
75
34.111111
0.819106
0
0
0
0
0
0.385993
0
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
ad992c80f639c49f1b5840c1f2fac54d9b3f3233
3,117
py
Python
tests/bugs/core_0899_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/core_0899_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/core_0899_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.core_0899 # title: Problems with explicit cursors in unwanted states # decription: # tracker_id: CORE-899 # min_versions: [] # versions: 2.5.0 # qmid: bugs.core_899-250 import pytest from firebird.qa import db_factory, isql_act, Action # version: 2.5.0 # re...
21.797203
79
0.620148
468
3,117
3.991453
0.245727
0.03212
0.03212
0.050857
0.481799
0.435225
0.435225
0.435225
0.405246
0.405246
0
0.041147
0.228104
3,117
142
80
21.950704
0.735245
0.07796
0
0.685185
0
0
0.779175
0.041929
0
0
0
0
0.018519
1
0.009259
false
0
0.018519
0
0.027778
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ad9b4c454fed4e49a310129420cc386006a35bea
2,003
py
Python
test/wsgi/test_partial_content_handler.py
keotl/jivago
892dfb0cae773e36245083c3e56f0f8523145523
[ "MIT" ]
12
2018-03-19T20:57:44.000Z
2020-01-27T14:11:24.000Z
test/wsgi/test_partial_content_handler.py
keotl/jivago
892dfb0cae773e36245083c3e56f0f8523145523
[ "MIT" ]
73
2018-04-20T22:26:00.000Z
2021-12-01T14:17:37.000Z
test/wsgi/test_partial_content_handler.py
keotl/jivago
892dfb0cae773e36245083c3e56f0f8523145523
[ "MIT" ]
1
2019-02-28T13:33:45.000Z
2019-02-28T13:33:45.000Z
import os import unittest import test_data from jivago.wsgi.request.partial_content_handler import PartialContentHandler from test_utils.request_builder import RequestBuilder TEST_FILE = os.path.join(os.path.dirname(test_data.__file__), "binary_file") TEST_FILE_TOTAL_SIZE = os.path.getsize(TEST_FILE) class PartialC...
39.27451
131
0.76685
212
2,003
6.957547
0.325472
0.054237
0.046102
0.103051
0.40678
0.332203
0.288814
0.260339
0.260339
0.260339
0
0.014637
0.147279
2,003
50
132
40.06
0.848946
0.01997
0
0.258065
0
0
0.030087
0.013259
0
0
0
0.02
0.16129
1
0.16129
false
0
0.16129
0
0.354839
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
ad9d9f4d1fa63ec9308a85b8350cb0709ca9e7d8
3,543
py
Python
events/tests/test_permissions.py
hamk-uas/TavastiaEventsOld
b808a1418ee89ba1e774c814364e5b55ea4f9a2c
[ "MIT" ]
null
null
null
events/tests/test_permissions.py
hamk-uas/TavastiaEventsOld
b808a1418ee89ba1e774c814364e5b55ea4f9a2c
[ "MIT" ]
null
null
null
events/tests/test_permissions.py
hamk-uas/TavastiaEventsOld
b808a1418ee89ba1e774c814364e5b55ea4f9a2c
[ "MIT" ]
null
null
null
from unittest.mock import MagicMock from django.test import TestCase from django_orghierarchy.models import Organization from ..models import DataSource, Event, PublicationStatus from ..permissions import UserModelPermissionMixin class TestUserModelPermissionMixin(TestCase): def setUp(self): self.insta...
35.079208
83
0.658199
410
3,543
5.463415
0.160976
0.117857
0.075
0.059375
0.711161
0.673214
0.673214
0.625893
0.625893
0.625893
0
0.003394
0.251482
3,543
100
84
35.43
0.841252
0.035281
0
0.473684
0
0
0.017297
0
0
0
0
0
0.144737
1
0.065789
false
0
0.065789
0
0.144737
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ada0fa494242758d8942f3fda9b24eab57dd25ce
1,763
py
Python
assignments/assignment1/metrics.py
gnom2134/dlcourse_ai
e8830484dd3d03978df8b80ed1caa5577056e456
[ "MIT" ]
null
null
null
assignments/assignment1/metrics.py
gnom2134/dlcourse_ai
e8830484dd3d03978df8b80ed1caa5577056e456
[ "MIT" ]
null
null
null
assignments/assignment1/metrics.py
gnom2134/dlcourse_ai
e8830484dd3d03978df8b80ed1caa5577056e456
[ "MIT" ]
null
null
null
def binary_classification_metrics(prediction, ground_truth): ''' Computes metrics for binary classification Arguments: prediction, np array of bool (num_samples) - model predictions ground_truth, np array of bool (num_samples) - true labels Returns: precision, recall, f1, accuracy - classi...
26.712121
66
0.571185
228
1,763
4.245614
0.258772
0.102273
0.03719
0.059917
0.516529
0.402893
0.200413
0.200413
0.200413
0.105372
0
0.024493
0.328417
1,763
65
67
27.123077
0.793074
0.374929
0
0.382353
0
0
0
0
0
0
0
0.030769
0
1
0.058824
false
0
0
0
0.147059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
a8dc44fba1f8c945ad5680baec5f0d18d1ab3917
3,364
py
Python
datacube_ows/cube_pool.py
FlexiGroBots-H2020/datacube-ows
8e3e1343582c00ae46b498247ac98d8e98bd000f
[ "Apache-2.0" ]
4
2017-11-02T04:22:30.000Z
2018-05-01T14:16:23.000Z
datacube_ows/cube_pool.py
FlexiGroBots-H2020/datacube-ows
8e3e1343582c00ae46b498247ac98d8e98bd000f
[ "Apache-2.0" ]
33
2018-05-23T01:32:06.000Z
2018-11-05T01:07:09.000Z
datacube_ows/cube_pool.py
FlexiGroBots-H2020/datacube-ows
8e3e1343582c00ae46b498247ac98d8e98bd000f
[ "Apache-2.0" ]
7
2017-10-09T00:09:44.000Z
2018-07-27T00:41:19.000Z
# This file is part of datacube-ows, part of the Open Data Cube project. # See https://opendatacube.org for more information. # # Copyright (c) 2017-2021 OWS Contributors # SPDX-License-Identifier: Apache-2.0 import logging from contextlib import contextmanager from threading import Lock from typing import Generator, M...
30.862385
120
0.650713
434
3,364
4.900922
0.354839
0.029619
0.042313
0.029619
0.044664
0.044664
0
0
0
0
0
0.004
0.256837
3,364
108
121
31.148148
0.8468
0.430143
0
0
0
0
0.059572
0.015038
0
0
0
0
0
1
0.186047
false
0
0.116279
0.046512
0.534884
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a8e36a47da61cc478ac81b686349614cf2583379
3,064
py
Python
symphony/cli/pyinventory/graphql/add_service_mutation.py
MeganWheeler1997/magma
b0303e0f5b35ca608f3b70a74b0047f1dae60d56
[ "BSD-3-Clause" ]
null
null
null
symphony/cli/pyinventory/graphql/add_service_mutation.py
MeganWheeler1997/magma
b0303e0f5b35ca608f3b70a74b0047f1dae60d56
[ "BSD-3-Clause" ]
null
null
null
symphony/cli/pyinventory/graphql/add_service_mutation.py
MeganWheeler1997/magma
b0303e0f5b35ca608f3b70a74b0047f1dae60d56
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # @generated AUTOGENERATED file. Do not Change! from dataclasses import dataclass, field from datetime import datetime from enum import Enum from functools import partial from typing import Any, Callable, List, Mapping, Optional from dataclasses_json import dataclass_json from marshmallow impor...
24.31746
71
0.612598
280
3,064
6.607143
0.328571
0.063243
0.095135
0.116757
0.061622
0
0
0
0
0
0
0.000474
0.311358
3,064
125
72
24.512
0.876303
0.027742
0
0.349515
1
0
0.104874
0.008403
0
0
0
0
0
1
0.009709
false
0
0.07767
0
0.271845
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a8e79991ee06e60e3a7ee7a0b46747b6ad7263e5
943
py
Python
slothql/utils/tests/case.py
IndioInc/slothql
64a574013e249968746044555bd8779ac353b13f
[ "MIT" ]
2
2018-02-09T19:12:00.000Z
2018-04-13T01:50:15.000Z
slothql/utils/tests/case.py
IndioInc/slothql
64a574013e249968746044555bd8779ac353b13f
[ "MIT" ]
29
2018-02-02T01:07:07.000Z
2018-05-28T23:04:28.000Z
slothql/utils/tests/case.py
IndioInc/slothql
64a574013e249968746044555bd8779ac353b13f
[ "MIT" ]
null
null
null
import pytest from ..case import snake_to_camelcase, camelcase_to_snake @pytest.mark.parametrize('value, expected', ( ('', ''), ('_', '_'), ('__', '__'), ('fooBar', 'fooBar'), ('FooBar', 'FooBar'), ('foo_bar_baz', 'fooBarBaz'), ('foo__bar__baz', 'foo_Bar_Baz'),...
29.46875
57
0.606575
93
943
5.44086
0.236559
0.106719
0.160079
0.249012
0.418972
0.284585
0.266798
0.213439
0.213439
0.213439
0
0
0.21421
943
31
58
30.419355
0.682861
0
0
0.153846
0
0
0.339343
0
0
0
0
0
0.076923
1
0.076923
false
0
0.076923
0
0.153846
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a8e979c4248c102b205233eab16a87ac22675af0
5,752
py
Python
biblio/submitdiff.py
lokal-profil/isfdb_site
0ce20d6347849926d4eda961ea9249c31519eea5
[ "BSD-3-Clause" ]
null
null
null
biblio/submitdiff.py
lokal-profil/isfdb_site
0ce20d6347849926d4eda961ea9249c31519eea5
[ "BSD-3-Clause" ]
null
null
null
biblio/submitdiff.py
lokal-profil/isfdb_site
0ce20d6347849926d4eda961ea9249c31519eea5
[ "BSD-3-Clause" ]
null
null
null
#!_PYTHONLOC # # (C) COPYRIGHT 2005-2021 Al von Ruff, Bill Longley and Ahasuerus # ALL RIGHTS RESERVED # # The copyright notice above does not evidence any actual or # intended publication of such source code. # # Version: $Revision$ # Date: $Date$ import cgi import sys from login impor...
33.637427
109
0.482789
638
5,752
4.173981
0.249216
0.039429
0.040556
0.03605
0.237702
0.121292
0.075854
0.075854
0.075854
0.075854
0
0.01008
0.413595
5,752
170
110
33.835294
0.779425
0.09927
0
0.369231
0
0
0.123813
0.014338
0
0
0
0
0
0
null
null
0
0.038462
null
null
0.353846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a8f0d5b6f78c65589f98f64fc8f463fc640b0916
1,480
py
Python
const.py
w2h/compare
313f4653c99641f3e42647794e8465c773768250
[ "Apache-2.0" ]
1
2020-09-10T14:07:29.000Z
2020-09-10T14:07:29.000Z
const.py
w2h/compare
313f4653c99641f3e42647794e8465c773768250
[ "Apache-2.0" ]
null
null
null
const.py
w2h/compare
313f4653c99641f3e42647794e8465c773768250
[ "Apache-2.0" ]
1
2019-11-22T09:20:17.000Z
2019-11-22T09:20:17.000Z
#coding=utf-8 import re class ScanState: COMMENT_STATE = 1 #注释阅读状态 STRING_STATE = 2 #字符串阅读状态 CODE_STATE = 3 #代码批量阅读状态,寻找声明行 class AsKeyWord: MUTI_COMMENT_FLAG_START = "/*" MUTI_COMMENT_FLAG_OVER = "*/" SINGLE_COMMENT_FLAG = "//" STRING_FLAG1 = "'" STRING_FLAG2 = '"' C...
26.909091
106
0.629054
173
1,480
5.017341
0.398844
0.038018
0.034562
0.032258
0.034562
0
0
0
0
0
0
0.009786
0.240541
1,480
54
107
27.407407
0.762456
0.026351
0
0
0
0
0.15329
0.019523
0
0
0
0
0
0
null
null
0
0.066667
null
null
0.022222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a8fa13a81c43499917f3d584c6863e490c93708e
260
py
Python
qstode/cli/wsgi.py
piger/qstode
f22ec113bfaa29bbf2ed9548cd4de63b18de5de3
[ "BSD-3-Clause" ]
7
2017-05-11T09:11:44.000Z
2021-08-23T22:29:58.000Z
qstode/cli/wsgi.py
piger/qstode
f22ec113bfaa29bbf2ed9548cd4de63b18de5de3
[ "BSD-3-Clause" ]
1
2016-02-08T12:10:07.000Z
2016-02-08T22:33:54.000Z
qstode/cli/wsgi.py
piger/qstode
f22ec113bfaa29bbf2ed9548cd4de63b18de5de3
[ "BSD-3-Clause" ]
null
null
null
try: import bjoern has_bjoern = True except ImportError: has_bjoern = False from ..app import app if has_bjoern: @app.cli.command() def wsgi(): from ..main import create_app bjoern.run(create_app(), "127.0.0.1", 5000)
14.444444
51
0.623077
37
260
4.243243
0.594595
0.171975
0
0
0
0
0
0
0
0
0
0.052356
0.265385
260
17
52
15.294118
0.769634
0
0
0
0
0
0.034615
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a8fd566bc721abe51886a026500019694f8dedd6
670
py
Python
Lab02/search/server/repository.py
sauloaalmeida/SistDistr
90d8eee1abf0bad10f26a6b0c906e4d43d340f43
[ "Apache-2.0" ]
null
null
null
Lab02/search/server/repository.py
sauloaalmeida/SistDistr
90d8eee1abf0bad10f26a6b0c906e4d43d340f43
[ "Apache-2.0" ]
null
null
null
Lab02/search/server/repository.py
sauloaalmeida/SistDistr
90d8eee1abf0bad10f26a6b0c906e4d43d340f43
[ "Apache-2.0" ]
null
null
null
from os.path import exists #Constantes usadas no projeto FILE_PATH="/home/saulo/SistDistr/Lab02/search/server/files/" ERROR_MSG="Arquivo '{arquivo}' solicitado nao foi encontrado" #metodo que retorna o conteudo do arquivo (caso exista) #ou uma mensagem de erro (caso nao exista def getContent(arq): ...
25.769231
61
0.659701
93
670
4.709677
0.634409
0.054795
0.063927
0
0
0
0
0
0
0
0
0.004024
0.258209
670
25
62
26.8
0.877264
0.364179
0
0
0
0
0.233333
0.114286
0
0
0
0.04
0
1
0.083333
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
d10332e319fdb5454404f11163c438c1e6d86a19
825
py
Python
bdn/certificate/migrations/0004_auto_20180824_1442.py
OpenSourceUniversity/bdn
8e8d5b4d63ff4cb9bdf7c5f23d07aa3ad3dd0121
[ "MIT" ]
1
2019-01-18T19:57:25.000Z
2019-01-18T19:57:25.000Z
bdn/certificate/migrations/0004_auto_20180824_1442.py
OpenSourceUniversity/bdn
8e8d5b4d63ff4cb9bdf7c5f23d07aa3ad3dd0121
[ "MIT" ]
3
2019-06-23T17:26:24.000Z
2022-02-11T03:40:54.000Z
bdn/certificate/migrations/0004_auto_20180824_1442.py
OpenSourceUniversity/bdn
8e8d5b4d63ff4cb9bdf7c5f23d07aa3ad3dd0121
[ "MIT" ]
null
null
null
# Generated by Django 2.0.2 on 2018-08-24 14:42 from django.db import migrations def match_user_eth_address_to_holder(apps, schema_editor): Certificate = apps.get_model('certificate', 'Certificate') User = apps.get_model('bdn_auth', 'User') for certificate in Certificate.objects.all(): if not cer...
27.5
63
0.659394
94
825
5.531915
0.521277
0.115385
0.107692
0.073077
0.103846
0.103846
0
0
0
0
0
0.030449
0.243636
825
29
64
28.448276
0.802885
0.054545
0
0
1
0
0.087404
0.029563
0
0
0
0
0
1
0.047619
false
0
0.047619
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d105d0cc20fa9dccb7c6bb6138e1f58c17288041
2,273
py
Python
dabapush/Writer/Writer.py
Leibniz-HBI/dabapush
cf369917ccc73e175744df6df865c09fe8ff01f9
[ "MIT" ]
null
null
null
dabapush/Writer/Writer.py
Leibniz-HBI/dabapush
cf369917ccc73e175744df6df865c09fe8ff01f9
[ "MIT" ]
null
null
null
dabapush/Writer/Writer.py
Leibniz-HBI/dabapush
cf369917ccc73e175744df6df865c09fe8ff01f9
[ "MIT" ]
null
null
null
from datetime import datetime from typing import Dict import pandas as pd import abc import threading from loguru import logger as log from pathlib import Path class Writer(object): # TODO: get chunksize from config def __init__(self): self.schema = [ 'source', 'created_at', ...
33.426471
92
0.572371
259
2,273
4.899614
0.432432
0.094563
0.07171
0.042553
0.337273
0.318361
0.318361
0.318361
0.318361
0.318361
0
0.001911
0.309283
2,273
67
93
33.925373
0.806369
0.206775
0
0.041667
0
0.020833
0.258804
0.11962
0
0
0
0.014925
0
1
0.083333
false
0
0.145833
0.020833
0.270833
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
d10a191609f1c875acabc839c6d42c0d98e4ba72
1,777
py
Python
DockerFeed/Tools/VerificationTools.py
DIPSAS/DockerFeed
64ad9e491112b70c2a50ad8c62cc3865d4908d2e
[ "MIT" ]
3
2019-11-18T14:23:42.000Z
2020-04-29T08:24:25.000Z
DockerFeed/Tools/VerificationTools.py
DIPSAS/DockerFeed
64ad9e491112b70c2a50ad8c62cc3865d4908d2e
[ "MIT" ]
null
null
null
DockerFeed/Tools/VerificationTools.py
DIPSAS/DockerFeed
64ad9e491112b70c2a50ad8c62cc3865d4908d2e
[ "MIT" ]
null
null
null
from DockerBuildSystem import DockerImageTools import warnings def VerifyImageDigest(stackFile: str, service: str, imageName: str): if not('@sha256:' in imageName): warnings.warn('Missing image digest on service {0} in stack file {1}'.format(service, stackFile)) return False return True def ...
33.528302
105
0.709623
202
1,777
6.242574
0.257426
0.055512
0.080888
0.099921
0.425853
0.311657
0.311657
0.172086
0.172086
0.172086
0
0.007655
0.191334
1,777
52
106
34.173077
0.869868
0
0
0.315789
0
0
0.18233
0
0
0
0
0
0
1
0.184211
false
0
0.052632
0
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d1113791309bb5b298cfd9ef7b606648eca040ed
4,745
py
Python
data/wof_snapshot.py
rinnyB/vector-datasource
024909ed8245a4ad4a25c908413ba3602de6c335
[ "MIT" ]
null
null
null
data/wof_snapshot.py
rinnyB/vector-datasource
024909ed8245a4ad4a25c908413ba3602de6c335
[ "MIT" ]
2
2021-03-31T20:22:37.000Z
2021-12-13T20:50:11.000Z
data/wof_snapshot.py
rinnyB/vector-datasource
024909ed8245a4ad4a25c908413ba3602de6c335
[ "MIT" ]
null
null
null
from os.path import basename from os.path import splitext from os.path import join as path_join from tilequeue.wof import Neighbourhood from tilequeue.wof import NeighbourhoodFailure from tilequeue.wof import NeighbourhoodMeta from tilequeue.wof import create_neighbourhood_from_json from tilequeue.wof import write_neig...
34.635036
79
0.627187
583
4,745
4.883362
0.337907
0.010537
0.024587
0.038637
0.073762
0.033017
0.033017
0.033017
0
0
0
0.008185
0.279031
4,745
136
80
34.889706
0.824028
0.012013
0
0.021505
0
0
0.139436
0.013754
0
0
0
0
0.021505
0
null
null
0.010753
0.150538
null
null
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d11de7560d182dff13513e43525df14576c1a40d
9,691
py
Python
tools/grit/grit/gather/policy_json.py
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
tools/grit/grit/gather/policy_json.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
tools/grit/grit/gather/policy_json.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. '''Support for "policy_templates.json" format used by the policy template generator as a source for generating ADM,ADMX,etc files.'...
38.153543
80
0.644103
1,183
9,691
5.177515
0.234996
0.082286
0.024816
0.019592
0.231347
0.198041
0.161633
0.132245
0.114612
0.114612
0
0.004897
0.241358
9,691
253
81
38.304348
0.82821
0.043339
0
0.222222
0
0
0.106592
0.003273
0
0
0
0
0.006536
0
null
null
0
0.045752
null
null
0.006536
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d1202bad40d4baee10b1b9c466f6ea71048a1828
2,149
py
Python
fev.py
krishnasagar14/CBVR
8b71f3cd6f671b931734d87b92cf6eb8f6e70449
[ "MIT" ]
3
2015-12-06T06:14:23.000Z
2019-11-23T12:38:03.000Z
fev.py
krishnasagar14/CBVR
8b71f3cd6f671b931734d87b92cf6eb8f6e70449
[ "MIT" ]
null
null
null
fev.py
krishnasagar14/CBVR
8b71f3cd6f671b931734d87b92cf6eb8f6e70449
[ "MIT" ]
1
2020-11-29T17:36:04.000Z
2020-11-29T17:36:04.000Z
################################################################################################# ### Program: Frame Extraction from a Input video. ### ### Author: Krishnasagar Subhedarpage (pagesagar@gmail.com) ### ### Date: 13/11/2014 ### ###############################################################################...
46.717391
126
0.445789
222
2,149
4.198198
0.454955
0.032189
0.036481
0.025751
0.027897
0
0
0
0
0
0
0.011834
0.292229
2,149
45
127
47.755556
0.60092
0.281526
0
0.206897
0
0
0.13165
0.018936
0
0
0
0
0
0
null
null
0
0.068966
null
null
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d12081d3d3fad535e4a206c92cea5ba79384d77c
52,842
py
Python
scripts/nanoporeLib.py
ArtRand/cPecan-signal
cef5400c6f092db284318dfab41d829e15b8a49b
[ "MIT" ]
null
null
null
scripts/nanoporeLib.py
ArtRand/cPecan-signal
cef5400c6f092db284318dfab41d829e15b8a49b
[ "MIT" ]
null
null
null
scripts/nanoporeLib.py
ArtRand/cPecan-signal
cef5400c6f092db284318dfab41d829e15b8a49b
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Small library for working with MinION data """ from __future__ import print_function, division import os import h5py import sys import subprocess import re import numpy as np from itertools import islice, izip from serviceCourse.sequenceTools import reverse_complement from serviceCourse.parsers...
43.030945
120
0.618921
6,671
52,842
4.673662
0.096088
0.018763
0.010937
0.014818
0.515812
0.456957
0.397877
0.346302
0.316826
0.281641
0
0.024322
0.283392
52,842
1,227
121
43.066015
0.799033
0.120321
0
0.319095
0
0.003769
0.082805
0.038627
0
0
0
0.004075
0.018844
0
null
null
0.001256
0.013819
null
null
0.072864
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d1237d55f16d82af63bf473cba712cd92209d248
8,625
py
Python
python/test/monitor/monitor/res/Strings.py
qrsforever/workspace
53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f
[ "MIT" ]
2
2017-06-07T03:20:42.000Z
2020-01-07T09:14:26.000Z
python/test/monitor/monitor/res/Strings.py
qrsforever/workspace
53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f
[ "MIT" ]
null
null
null
python/test/monitor/monitor/res/Strings.py
qrsforever/workspace
53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- strings = { 'quit' : { 'en' : 'Quit', 'cn' : '退出' }, 'back' : { 'en' : 'Back', 'cn' : '返回' }, 'title' : { 'en' : 'MonitorTool', 'cn' : '规则引擎监控工具' ...
23.310811
40
0.238261
502
8,625
4.093626
0.456175
0.014599
0.009732
0.008759
0
0
0
0
0
0
0
0.000823
0.577507
8,625
369
41
23.373984
0.563117
0.004522
0
0.021858
0
0
0.244059
0
0
0
0
0
0.005464
1
0
false
0
0
0
0
0.002732
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d137f54e17366d54810f35219ebb191c6dd3b997
671
py
Python
tests/test_profile_page.py
total-impact/impactstory-tester
7a1ba294aca1ccb97d03ad5abb48505790926d27
[ "MIT" ]
1
2015-02-19T15:17:56.000Z
2015-02-19T15:17:56.000Z
tests/test_profile_page.py
ourresearch/impactstory-tester
7a1ba294aca1ccb97d03ad5abb48505790926d27
[ "MIT" ]
null
null
null
tests/test_profile_page.py
ourresearch/impactstory-tester
7a1ba294aca1ccb97d03ad5abb48505790926d27
[ "MIT" ]
1
2015-01-10T13:50:12.000Z
2015-01-10T13:50:12.000Z
import os, requests from selenium_test_case import SeleniumTestCase, slow, online, wd, host import tests from tests.pages import profile_page from nose.tools import assert_equals, raises class TestProfile(SeleniumTestCase): def setUp(self): self.page = profile_page.ProfilePage(self.wd, self.host) ...
23.137931
71
0.679583
89
671
5.011236
0.483146
0.125561
0.080717
0.067265
0
0
0
0
0
0
0
0.001919
0.223547
671
28
72
23.964286
0.854127
0
0
0.117647
0
0
0.071535
0
0
0
0
0
0.176471
0
null
null
0
0.294118
null
null
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d1386685e072c1c92a51f719aa4ce07c5106b155
4,863
py
Python
app/utils/bleu.py
hailiang-wang/aclweb-I17-1074
93066d11e959afbd6800a72a0c02c8f700444de3
[ "Apache-2.0" ]
361
2017-06-01T09:52:57.000Z
2022-03-18T14:32:07.000Z
app/utils/bleu.py
hailiang-wang/aclweb-I17-1074
93066d11e959afbd6800a72a0c02c8f700444de3
[ "Apache-2.0" ]
11
2017-07-13T07:56:30.000Z
2019-04-16T19:02:43.000Z
app/utils/bleu.py
hailiang-wang/aclweb-I17-1074
93066d11e959afbd6800a72a0c02c8f700444de3
[ "Apache-2.0" ]
126
2017-06-16T15:22:39.000Z
2021-09-07T08:15:27.000Z
###################################################################### ###################################################################### # Copyright Tsung-Hsien Wen, Cambridge Dialogue Systems Group, 2017 # ###################################################################### ####################################...
33.537931
176
0.493728
695
4,863
3.378417
0.189928
0.017888
0.020443
0.030664
0.470187
0.429727
0.387138
0.387138
0.363288
0.300681
0
0.051211
0.329426
4,863
144
177
33.770833
0.668813
0.057578
0
0.474747
0
0.010101
0.087232
0
0
0
0
0
0
0
null
null
0
0.030303
null
null
0.020202
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d13ac9a62deaa8bccd4ae4c803299f91eeb72c9a
2,149
py
Python
src/robot/utils/unic.py
anilameec/robotframework
8cd1680f9497c6991d6bcc7d057ab400f7151b9b
[ "ECL-2.0", "Apache-2.0" ]
1
2020-02-14T12:19:18.000Z
2020-02-14T12:19:18.000Z
src/robot/utils/unic.py
imust6226/robotframework
08c56fef2ebc64d682c7f99acd77c480d8d0e028
[ "ECL-2.0", "Apache-2.0" ]
127
2021-01-04T16:59:43.000Z
2022-03-24T01:38:49.000Z
src/robot/utils/unic.py
3mdeb/robotframework
6006ce0b3d5fc6b45c5eb040dc859acd64bfa846
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
31.602941
80
0.660772
267
2,149
5.205993
0.483146
0.043165
0.023741
0.023022
0.092086
0.053237
0
0
0
0
0
0.017857
0.2443
2,149
67
81
32.074627
0.838054
0.315961
0
0.205128
0
0
0.0351
0
0
0
0
0
0
1
0.153846
false
0
0.102564
0.051282
0.538462
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d14052f1ff076e0d4d21138bfcea947d5220bcb4
341
py
Python
app/urls.py
larose/django-hackathon-starter
1b7bfbb49a0d0767a4c1552e07430e4bdfc255d8
[ "MIT" ]
null
null
null
app/urls.py
larose/django-hackathon-starter
1b7bfbb49a0d0767a4c1552e07430e4bdfc255d8
[ "MIT" ]
null
null
null
app/urls.py
larose/django-hackathon-starter
1b7bfbb49a0d0767a4c1552e07430e4bdfc255d8
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views from lazysignup.decorators import allow_lazy_user from lazysignup.views import convert urlpatterns = [ url(r'^$', allow_lazy_user(views.HomeView.as_view()), name='home'), url(r'^convert$', convert, {'template_name': 'convert.html'}, name='laz...
28.416667
71
0.706745
44
341
5.318182
0.5
0.119658
0.111111
0
0
0
0
0
0
0
0
0
0.155425
341
11
72
31
0.8125
0
0
0
0
0
0.170088
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d142a1c6a20c420f4723e166a51d0beab3f5decf
40,278
py
Python
dataset_handler/transfer_task_split.py
e96031413/DRAGON
c86e421294780024a191357ca09723f5fe244ff2
[ "MIT" ]
29
2020-04-12T14:11:21.000Z
2022-03-26T03:43:57.000Z
dataset_handler/transfer_task_split.py
e96031413/DRAGON
c86e421294780024a191357ca09723f5fe244ff2
[ "MIT" ]
3
2021-03-27T04:47:02.000Z
2022-01-03T09:22:31.000Z
dataset_handler/transfer_task_split.py
e96031413/DRAGON
c86e421294780024a191357ca09723f5fe244ff2
[ "MIT" ]
2
2020-11-30T08:56:58.000Z
2021-03-26T01:09:12.000Z
import abc import os import numpy as np import pandas as pd from collections import Counter import math from utils import ml_utils """ Implementation of different distribution (zero shot to long-tail). Some of the code provided by Yuval Aztmon: https://github.com/yuvalatzmon/COSMO """ class TaskSplit(object): "...
50.856061
117
0.64889
5,236
40,278
4.641711
0.068564
0.032587
0.011768
0.020737
0.753539
0.701613
0.656435
0.608748
0.590932
0.585541
0
0.001924
0.277472
40,278
791
118
50.920354
0.833207
0.247232
0
0.595745
0
0
0.036429
0
0
0
0
0
0
1
0.074468
false
0.006383
0.014894
0.006383
0.161702
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d1431d0ca9d82ba1b19260179857e7845b5dd490
1,933
py
Python
utils/evaluate.py
rulixiang/ToCo
9319e8c792bff5ac596e43d362d6a4a3c6200cf7
[ "MIT" ]
null
null
null
utils/evaluate.py
rulixiang/ToCo
9319e8c792bff5ac596e43d362d6a4a3c6200cf7
[ "MIT" ]
null
null
null
utils/evaluate.py
rulixiang/ToCo
9319e8c792bff5ac596e43d362d6a4a3c6200cf7
[ "MIT" ]
null
null
null
import numpy as np import sklearn.metrics as metrics def multilabel_score(y_true, y_pred): return metrics.f1_score(y_true, y_pred) def _fast_hist(label_true, label_pred, num_classes): mask = (label_true >= 0) & (label_true < num_classes) hist = np.bincount( num_classes * label_true[mask].astype(...
32.762712
78
0.612002
300
1,933
3.74
0.193333
0.142603
0.098039
0.085562
0.680927
0.654189
0.654189
0.654189
0.654189
0.654189
0
0.019542
0.232281
1,933
59
79
32.762712
0.736523
0.005691
0
0.509804
0
0
0.015625
0
0
0
0
0
0
1
0.078431
false
0
0.039216
0.019608
0.196078
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d14aab52bad382a60b97d9356dd69f9870a705c9
1,406
py
Python
generate_build_information.py
Vincent-Stragier/deltamed_coherence_openutils
fc4fb075e8ace9684d18fb57634455ca1a278677
[ "CC0-1.0" ]
null
null
null
generate_build_information.py
Vincent-Stragier/deltamed_coherence_openutils
fc4fb075e8ace9684d18fb57634455ca1a278677
[ "CC0-1.0" ]
1
2021-03-12T12:58:27.000Z
2021-03-12T13:01:45.000Z
generate_build_information.py
Vincent-Stragier/deltamed_coherence_openutils
fc4fb075e8ace9684d18fb57634455ca1a278677
[ "CC0-1.0" ]
2
2021-04-14T18:59:02.000Z
2021-06-24T11:29:15.000Z
import os import re import time import git # Autogenerated filename GUI_GENERIC_CODE = os.path.join( os.path.dirname(__file__), 'gui_anonymiser_main.py', ) def generate_version_information(): """ Generate the version token and the date taken for this repository. """ # Get repo information try: ...
26.037037
78
0.600996
170
1,406
4.705882
0.517647
0.05
0.07
0.035
0
0
0
0
0
0
0
0.004951
0.28165
1,406
53
79
26.528302
0.787129
0.135846
0
0.055556
1
0
0.130399
0.018272
0
0
0
0
0
1
0.027778
false
0
0.111111
0
0.166667
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d14dd2fe4a963527142d9b6352a259a7b1b1134c
2,172
py
Python
PythonServer/api.py
alvinwong7/portfolio-manager
2b8c4c9e46d677bb4e2d567779fb4b9e97966abf
[ "MIT" ]
null
null
null
PythonServer/api.py
alvinwong7/portfolio-manager
2b8c4c9e46d677bb4e2d567779fb4b9e97966abf
[ "MIT" ]
null
null
null
PythonServer/api.py
alvinwong7/portfolio-manager
2b8c4c9e46d677bb4e2d567779fb4b9e97966abf
[ "MIT" ]
null
null
null
from flask import Flask from flask_restful import Resource, Api from flask_cors import CORS import os.path import json app = Flask(__name__) CORS(app) api = Api(app) #Used for login validation and retrieving data class Login(Resource): def get(self, username, password): #Find file with name = Username ...
26.814815
73
0.594843
256
2,172
4.980469
0.292969
0.035294
0.032941
0.042353
0.282353
0.282353
0.202353
0.202353
0.202353
0.202353
0
0.001247
0.26151
2,172
80
74
27.15
0.793641
0.14733
0
0.136364
0
0
0.172376
0.071778
0
0
0
0
0
1
0.068182
false
0.159091
0.113636
0
0.409091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d14f88c8585dedfbae88d89dc5eb2d85499220ef
186
py
Python
1.py
seyfullah/spacy-course-study
853a007754836cbe688d02d52f0863a9d6c8e56e
[ "Apache-2.0" ]
null
null
null
1.py
seyfullah/spacy-course-study
853a007754836cbe688d02d52f0863a9d6c8e56e
[ "Apache-2.0" ]
null
null
null
1.py
seyfullah/spacy-course-study
853a007754836cbe688d02d52f0863a9d6c8e56e
[ "Apache-2.0" ]
null
null
null
from spacy.lang.en import English nlp = English() doc = nlp("Hello World!") for token in doc: print(token.text) token = doc[1] print(token.text) span = doc[1:3] print(span.text)
13.285714
33
0.677419
32
186
3.9375
0.5625
0.15873
0.222222
0
0
0
0
0
0
0
0
0.019481
0.172043
186
13
34
14.307692
0.798701
0
0
0.222222
0
0
0.064516
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.333333
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d151e4e281c0e36acefe71f5f36c98cc5d9d71c4
442
py
Python
coviz/types.py
NazarioJL/coviz
3b3fbe2834943d559e5b00e60c68e6b905a54596
[ "MIT" ]
null
null
null
coviz/types.py
NazarioJL/coviz
3b3fbe2834943d559e5b00e60c68e6b905a54596
[ "MIT" ]
null
null
null
coviz/types.py
NazarioJL/coviz
3b3fbe2834943d559e5b00e60c68e6b905a54596
[ "MIT" ]
null
null
null
from datetime import datetime from enum import Enum from typing import NamedTuple class DataMeasurementType(Enum): confirmed = "confirmed" deaths = "deaths" class CovidDataPoint(NamedTuple): """ Represents an entry for a measurement. """ value: int timestamp: datetime iso_3: str ...
17.68
42
0.690045
48
442
6.3125
0.625
0
0
0
0
0
0
0
0
0
0
0.003003
0.246606
442
24
43
18.416667
0.906907
0.085973
0
0
0
0
0.03866
0
0
0
0
0
0
1
0
false
0
0.1875
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d153f45210322858f58d52d6ded02c7299bf0b2c
5,126
py
Python
compare.py
aaronmefford/CompareUrls
681b30b4501cdae0db3b7bf17653e0d005f59edb
[ "MIT" ]
null
null
null
compare.py
aaronmefford/CompareUrls
681b30b4501cdae0db3b7bf17653e0d005f59edb
[ "MIT" ]
null
null
null
compare.py
aaronmefford/CompareUrls
681b30b4501cdae0db3b7bf17653e0d005f59edb
[ "MIT" ]
null
null
null
#!/bin/env python from simhash import fingerprint, hamming_distance from httplib import HTTPConnection, HTTPSConnection from urlparse import urlparse from argparse import ArgumentParser from collections import deque import zlib, re, sys def options(): options = ArgumentParser() options.add_argument('url1', ac...
32.858974
168
0.650995
665
5,126
4.944361
0.309774
0.034063
0.036192
0.02129
0.135645
0.079075
0.053528
0.029805
0.015207
0.015207
0
0.020931
0.207764
5,126
155
169
33.070968
0.788722
0.066524
0
0.101695
0
0.008475
0.105803
0.014456
0
0
0
0
0
0
null
null
0.016949
0.059322
null
null
0.09322
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d169ef49961684af783c952e34c8d28ba8949481
3,030
py
Python
training/Trainer.py
qsb300/PhysNetTF2
ab32ecb6669477faeaf70133b40d24f0dd252313
[ "MIT" ]
null
null
null
training/Trainer.py
qsb300/PhysNetTF2
ab32ecb6669477faeaf70133b40d24f0dd252313
[ "MIT" ]
1
2021-06-02T15:29:57.000Z
2021-06-02T16:20:26.000Z
training/Trainer.py
qsb300/PhysNetTF2
ab32ecb6669477faeaf70133b40d24f0dd252313
[ "MIT" ]
null
null
null
import tensorflow.compat.v1 as tf import numpy as np from .AMSGrad import AMSGrad class Trainer: def __init__(self, learning_rate=1e-3, decay_steps=100000, decay_rate=0.96, scope=None): self._scope = scope with tf.compat.v1.variable_scope(self.scope): self._global_step = tf.Variable(0...
39.868421
129
0.655776
388
3,030
4.858247
0.247423
0.055172
0.06366
0.02069
0.24191
0.225464
0.196817
0.169231
0.169231
0.103979
0
0.014023
0.246865
3,030
75
130
40.4
0.812007
0.050165
0
0.134615
0
0
0.0181
0
0
0
0
0
0
1
0.192308
false
0
0.057692
0.153846
0.442308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
d16d97d057bf77b1a7456dc8e6c68a254b606cbd
755
py
Python
popupcad/manufacturing/bufferop3.py
popupcad/popupcad
d3da448260cd5cb9e05417b0a723d7f73ae4e06e
[ "MIT" ]
19
2015-08-01T22:13:39.000Z
2020-03-07T03:55:46.000Z
popupcad/manufacturing/bufferop3.py
CadQuery/popupcad
b0c7b406d4b288c7cb375340323bba0252aedbfb
[ "MIT" ]
106
2015-07-23T19:58:01.000Z
2019-05-14T03:46:08.000Z
popupcad/manufacturing/bufferop3.py
CadQuery/popupcad
b0c7b406d4b288c7cb375340323bba0252aedbfb
[ "MIT" ]
9
2015-10-04T23:38:41.000Z
2020-07-16T03:50:34.000Z
# -*- coding: utf-8 -*- """ Written by Daniel M. Aukes and CONTRIBUTORS Email: danaukes<at>asu.edu. Please see LICENSE for full license. """ import popupcad from popupcad.manufacturing.multivalueoperation3 import MultiValueOperation3 class BufferOperation3(MultiValueOperation3): name = 'Dilate-Erode' show = ...
27.962963
76
0.660927
82
755
6
0.695122
0.065041
0
0
0
0
0
0
0
0
0
0.018739
0.222517
755
26
77
29.038462
0.819421
0.203974
0
0
0
0
0.057432
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
66fd1e94067ed17087f07f2ba2d89885255749c2
4,046
py
Python
diffusion_1D.py
MarineLasbleis/Diffusion_1D
e998a9e5136064adb4b11b4ba6ca5436092a378f
[ "Apache-2.0" ]
null
null
null
diffusion_1D.py
MarineLasbleis/Diffusion_1D
e998a9e5136064adb4b11b4ba6ca5436092a378f
[ "Apache-2.0" ]
null
null
null
diffusion_1D.py
MarineLasbleis/Diffusion_1D
e998a9e5136064adb4b11b4ba6ca5436092a378f
[ "Apache-2.0" ]
null
null
null
### Diffusion_1D # Time-stamp: <2015-07-21 09:33:37 marine> import numpy as np import scipy as sp import matplotlib.pyplot as plt ## Tri Diagonal Matrix Algorithm(a.k.a Thomas algorithm) solver def TDMAsolver(a, b, c, d): ''' Solve the equation ax_{i-1}+bx_{i}+cx_{i+1}=d_{i} for x TDMA solver, a b c d ca...
28.695035
132
0.508651
703
4,046
2.906117
0.224751
0.011747
0.014684
0.019579
0.352423
0.333333
0.316202
0.270191
0.270191
0.221733
0
0.05849
0.302768
4,046
140
133
28.9
0.665721
0.21824
0
0.181818
0
0
0.067258
0
0
0
0
0
0
0
null
null
0
0.054545
null
null
0.036364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
66ff4aeacb4eb8a9b7b2b09553f49f31b97e09d5
1,329
py
Python
backend/shared/shared/models/abstract_models.py
jannetasa/yjdh
5d86a56c722dfbcee03110f66c7e7ddbea966db9
[ "MIT" ]
2
2021-05-10T09:28:35.000Z
2021-05-17T12:15:34.000Z
backend/shared/shared/models/abstract_models.py
jannetasa/yjdh
5d86a56c722dfbcee03110f66c7e7ddbea966db9
[ "MIT" ]
931
2021-05-21T15:24:35.000Z
2022-03-31T20:07:40.000Z
backend/shared/shared/models/abstract_models.py
jannetasa/yjdh
5d86a56c722dfbcee03110f66c7e7ddbea966db9
[ "MIT" ]
6
2021-07-06T11:07:02.000Z
2022-02-07T12:42:21.000Z
import uuid from django.db import models from django.utils.translation import gettext_lazy as _ from simple_history.models import HistoricalRecords class TimeStampedModel(models.Model): created_at = models.DateTimeField(auto_now_add=True, verbose_name=_("time created")) modified_at = models.DateTimeField(aut...
28.276596
88
0.722348
162
1,329
5.716049
0.376543
0.095032
0.116631
0.155508
0.388769
0.24406
0.24406
0
0
0
0
0.015483
0.173815
1,329
46
89
28.891304
0.827869
0.039127
0
0.285714
0
0
0.061856
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.785714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0f01302a84f500c75c0610cb2e5bdad8f769d5bc
33,474
py
Python
NukeSurvivalToolkit/nuke-vector-matrix/matrix_utils.py
pejaycee/NukeSurvivalToolkit_publicRelease
bdce6d7e6e6638d96115a2e8ae3f4fbb17e91eb8
[ "MIT" ]
1
2021-01-09T09:22:55.000Z
2021-01-09T09:22:55.000Z
NukeSurvivalToolkit/nuke-vector-matrix/matrix_utils.py
pejaycee/NukeSurvivalToolkit_publicRelease
bdce6d7e6e6638d96115a2e8ae3f4fbb17e91eb8
[ "MIT" ]
null
null
null
NukeSurvivalToolkit/nuke-vector-matrix/matrix_utils.py
pejaycee/NukeSurvivalToolkit_publicRelease
bdce6d7e6e6638d96115a2e8ae3f4fbb17e91eb8
[ "MIT" ]
1
2021-02-03T15:39:07.000Z
2021-02-03T15:39:07.000Z
""" Set of utility functions to perform matrix operations in Nuke Author: Erwan Leroy """ import threading import math import nuke import nukescripts class NodeMatrixWrapper(object): """ Wrap nuke Node to unify the method used to set matrices on these nodes. Supported node classes: Transform (limited), C...
40.233173
120
0.642678
4,258
33,474
4.90465
0.128934
0.025139
0.014365
0.017094
0.288403
0.221844
0.174679
0.135127
0.110228
0.091745
0
0.017138
0.253928
33,474
831
121
40.281588
0.819092
0.084095
0
0.217235
0
0
0.086296
0.001325
0.001795
0
0
0.001203
0
0
null
null
0.001795
0.007181
null
null
0.010772
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0f02cabf6f9c0a7435c2eb2e9a70b7ec66f6cdbc
175
py
Python
photon/settings/production.py
CristhGunners/Photon
a0422e549ff8846dfba3c05e1ce7ca2e3ca4c790
[ "MIT" ]
2
2015-03-22T01:16:51.000Z
2015-09-09T17:29:04.000Z
photon/settings/production.py
CristhGunners/Photon
a0422e549ff8846dfba3c05e1ce7ca2e3ca4c790
[ "MIT" ]
null
null
null
photon/settings/production.py
CristhGunners/Photon
a0422e549ff8846dfba3c05e1ce7ca2e3ca4c790
[ "MIT" ]
null
null
null
from .base import * REGISTRATION_OPEN = False # SECURITY WARNING: don't run with debug turned on in production! DEBUG = False TEMPLATE_DEBUG = False ALLOWED_HOSTS = ['*']
15.909091
65
0.737143
24
175
5.25
0.833333
0.15873
0
0
0
0
0
0
0
0
0
0
0.177143
175
10
66
17.5
0.875
0.36
0
0
0
0
0.009091
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0f0627f1194d7747fc8530b954db15a8361a0c72
503
py
Python
src/update_q.py
bestvibes/multi-agent-cooperation
d1233865123fde388ba84a917221265c1cfea550
[ "MIT" ]
3
2019-11-02T05:14:49.000Z
2019-11-12T12:48:53.000Z
src/update_q.py
bestvibes/multi-agent-cooperation
d1233865123fde388ba84a917221265c1cfea550
[ "MIT" ]
null
null
null
src/update_q.py
bestvibes/multi-agent-cooperation
d1233865123fde388ba84a917221265c1cfea550
[ "MIT" ]
1
2019-10-02T17:22:39.000Z
2019-10-02T17:22:39.000Z
import numpy as np import random import unittest class UpdateQ: def __init__(self, alpha, gamma): self.alpha = alpha self.gamma = gamma def __call__(self, Q_table: dict, state: tuple, action: int, next_state: tuple, reward:int) -> dict: max_value = np.amax(list(Q_table[next_state].valu...
27.944444
105
0.662028
71
503
4.408451
0.422535
0.095847
0.070288
0.108626
0
0
0
0
0
0
0
0
0.228628
503
17
106
29.588235
0.806701
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.25
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0f0dd794d4bd326d69934ee23b4653b1ece256b4
484
py
Python
setup.py
krisfris/pybullet
67f57777eaf4b084a80b7cce9794594464b0b204
[ "Zlib" ]
null
null
null
setup.py
krisfris/pybullet
67f57777eaf4b084a80b7cce9794594464b0b204
[ "Zlib" ]
null
null
null
setup.py
krisfris/pybullet
67f57777eaf4b084a80b7cce9794594464b0b204
[ "Zlib" ]
null
null
null
from distutils.core import Extension, setup from Cython.Distutils import build_ext setup( name="bullet", version='0.1.0', packages=["bullet"], ext_modules=[Extension( "bullet.bullet", ["bullet/bullet.pyx"], libraries=[ "BulletSoftBody", "BulletDy...
23.047619
43
0.524793
41
484
6.097561
0.609756
0.096
0.144
0
0
0
0
0
0
0
0
0.009375
0.338843
484
20
44
24.2
0.771875
0
0
0
0
0
0.231884
0
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0f24f3e2cc8faa48abc91fbd754f015ec1c0d7d2
817
py
Python
python/excel-spreadsheet.py
KoderDojo/firecodeio
6623ef75a0d781dae8e20e368a03d0087d9ebe31
[ "MIT" ]
null
null
null
python/excel-spreadsheet.py
KoderDojo/firecodeio
6623ef75a0d781dae8e20e368a03d0087d9ebe31
[ "MIT" ]
null
null
null
python/excel-spreadsheet.py
KoderDojo/firecodeio
6623ef75a0d781dae8e20e368a03d0087d9ebe31
[ "MIT" ]
null
null
null
""" We're sure you've used Microsoft Excel or Google Sheets at some point. Given a column name of the spreadsheet, return the corresponding column number. Note: Column name "A" corresponds to column number 1. """ def excel_column_name_to_number(column_title): if column_title is None or len(column_title) == 0: ...
28.172414
87
0.656059
131
817
3.916031
0.412214
0.17154
0.064327
0.070175
0.101365
0.101365
0
0
0
0
0
0.031746
0.228886
817
28
88
29.178571
0.78254
0.249694
0
0
0
0
0.001653
0
0
0
0
0
0
1
0.2
false
0
0
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0f2939ca29ca5a7fd6cbc90044ea8aa4ed46b88c
7,944
py
Python
pysnmp-with-texts/OG-PATTERN-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/OG-PATTERN-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/OG-PATTERN-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module OG-PATTERN-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/OG-PATTERN-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:32:24 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2...
115.130435
862
0.776309
908
7,944
6.789648
0.258811
0.046715
0.081752
0.012328
0.335929
0.227251
0.200973
0.200973
0.200973
0.19854
0
0.072616
0.091641
7,944
68
863
116.823529
0.781735
0.040534
0
0.067797
0
0.016949
0.277814
0.020229
0
0
0
0
0
1
0
false
0
0.118644
0
0.118644
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0f294ab514cea56be0b48f5dacb8205ff425cd38
3,058
py
Python
src/huntsman/pocs/filterwheel/pyro.py
wtgee/huntsman-pocs
c47976b1e52c5676a8237f6ee889555ede26d0e0
[ "MIT" ]
null
null
null
src/huntsman/pocs/filterwheel/pyro.py
wtgee/huntsman-pocs
c47976b1e52c5676a8237f6ee889555ede26d0e0
[ "MIT" ]
null
null
null
src/huntsman/pocs/filterwheel/pyro.py
wtgee/huntsman-pocs
c47976b1e52c5676a8237f6ee889555ede26d0e0
[ "MIT" ]
null
null
null
from threading import Event from pocs.filterwheel import AbstractFilterWheel from huntsman.pocs.utils.pyro.event import RemoteEvent class FilterWheel(AbstractFilterWheel): """ Class representing the client side interface to the Filterwheel of a distributed camera. """ def __init__(self, nam...
39.205128
100
0.535644
283
3,058
5.611307
0.30742
0.06801
0.06801
0.06801
0.06927
0.044081
0.044081
0
0
0
0
0.000403
0.188685
3,058
77
101
39.714286
0.639661
0.20569
0
0.1
0
0
0.145394
0
0
0
0
0
0
1
0.225
false
0
0.075
0.05
0.475
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0f2a42283ec3780ca3000931cce8e3e6f46322e6
11,800
py
Python
newsic/youtube.py
newsic/newsic
6e77463a0f3588eba2c7da4a38032f4d89f07c8e
[ "MIT" ]
3
2016-04-04T08:00:33.000Z
2016-10-06T14:44:13.000Z
newsic/youtube.py
newsic/newsic
6e77463a0f3588eba2c7da4a38032f4d89f07c8e
[ "MIT" ]
14
2016-04-18T19:59:43.000Z
2021-06-02T03:08:16.000Z
newsic/youtube.py
newsic/newsic
6e77463a0f3588eba2c7da4a38032f4d89f07c8e
[ "MIT" ]
2
2016-10-05T06:18:46.000Z
2016-10-06T14:36:22.000Z
""" YouTube functions (playlist, mix) """ from flask import ( Blueprint, g, redirect, render_template, request, url_for ) from newsic.functions import ( cache, get_locale, gettext, snippet_start_at, debug, read_config ) import re from urllib import request as urllib_request from urllib.parse import quote fr...
36.085627
155
0.577966
1,293
11,800
5.07734
0.20263
0.029246
0.025895
0.030465
0.214775
0.166946
0.138766
0.120792
0.092917
0.092917
0
0.00562
0.306356
11,800
326
156
36.196319
0.796457
0.133644
0
0.161137
0
0.009479
0.190401
0.066007
0
0
0
0.01227
0
1
0.028436
false
0
0.037915
0
0.132701
0.009479
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0f34a464207b4fe18ebe39ae5a2a2ed43517a6af
5,123
py
Python
GeneticLines.py
yrakcaz/genetics
022716262348581f01bf2e637166607f8a213e46
[ "MIT" ]
null
null
null
GeneticLines.py
yrakcaz/genetics
022716262348581f01bf2e637166607f8a213e46
[ "MIT" ]
null
null
null
GeneticLines.py
yrakcaz/genetics
022716262348581f01bf2e637166607f8a213e46
[ "MIT" ]
null
null
null
#!env python import math, random, sys from PIL import Image, ImageDraw # TODO : Split file and clean later on # Constants : FIXME check if these should really be constants BLACK = (0, 0, 0) WHITE = (255, 255, 255) MAXSIZE = 50 POPSIZE = 30 #FIXME DNASIZE = 400 #FIXME MUTRATE = 1000 class Gene: def __init__(self...
31.237805
100
0.5366
651
5,123
4.179724
0.225806
0.059537
0.072032
0.035281
0.188901
0.077178
0.063212
0.021316
0
0
0
0.023187
0.343354
5,123
163
101
31.429448
0.785672
0.066367
0
0.151515
0
0
0.021375
0
0
0
0
0.006135
0.007576
0
null
null
0
0.015152
null
null
0.007576
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0f3a9bec1e68ab3ca6181c395f59342660856540
509
py
Python
aula016 - TUPLAS/ex074.py
miradouro/CursoEmVideo-Python
cc7b05a9a4aad8e6ef3b29453d83370094d75e41
[ "MIT" ]
null
null
null
aula016 - TUPLAS/ex074.py
miradouro/CursoEmVideo-Python
cc7b05a9a4aad8e6ef3b29453d83370094d75e41
[ "MIT" ]
null
null
null
aula016 - TUPLAS/ex074.py
miradouro/CursoEmVideo-Python
cc7b05a9a4aad8e6ef3b29453d83370094d75e41
[ "MIT" ]
null
null
null
from random import randint maior = 0 menor = 0 tupla = (randint(0, 10), randint(0, 10), randint(0, 10), randint(0, 10), randint(0, 10)) qtd = len(tupla) print('Os valores sorteados foram:', end=' ') for c in range(0, 5): print(tupla[c], end=' ') if c == 0: maior = tupla[c] menor = tupla[c] i...
28.277778
88
0.589391
82
509
3.658537
0.353659
0.14
0.166667
0.226667
0.28
0.166667
0.166667
0.166667
0.166667
0.166667
0
0.051813
0.24165
509
17
89
29.941176
0.725389
0
0
0.235294
0
0
0.198428
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
0.235294
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0f4016d4dc7e58e4cc836fdea940b628f974a9b7
853
py
Python
stests/generators/wg_101/p1s1_do_transfers.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
4
2020-03-10T15:28:17.000Z
2021-10-02T11:41:17.000Z
stests/generators/wg_101/p1s1_do_transfers.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
1
2020-03-25T11:31:44.000Z
2020-03-25T11:31:44.000Z
stests/generators/wg_101/p1s1_do_transfers.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
9
2020-02-25T18:43:42.000Z
2021-08-10T17:08:42.000Z
import typing from stests.core import factory from stests.core.types.chain import DeployType from stests.core.types.orchestration import ExecutionContext from stests.generators.utils import accounts # Step label. LABEL = "do-transfers" def execute(ctx: ExecutionContext): """Step entry point. :param c...
28.433333
88
0.702227
107
853
5.448598
0.46729
0.060034
0.072041
0.06518
0
0
0
0
0
0
0
0.005952
0.212192
853
29
89
29.413793
0.861607
0.169988
0
0
0
0
0.017544
0
0
0
0
0
0
1
0.0625
false
0
0.3125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0f41508d85dbd7d8b63e676d9227e3f7b1153347
5,703
py
Python
_GTW/_RST/Auth_Mixin.py
Tapyr/tapyr
4235fba6dce169fe747cce4d17d88dcf4a3f9f1d
[ "BSD-3-Clause" ]
6
2016-12-10T17:51:10.000Z
2021-10-11T07:51:48.000Z
_GTW/_RST/Auth_Mixin.py
Tapyr/tapyr
4235fba6dce169fe747cce4d17d88dcf4a3f9f1d
[ "BSD-3-Clause" ]
null
null
null
_GTW/_RST/Auth_Mixin.py
Tapyr/tapyr
4235fba6dce169fe747cce4d17d88dcf4a3f9f1d
[ "BSD-3-Clause" ]
3
2020-03-29T07:37:03.000Z
2021-01-21T16:08:40.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2013-2015 Mag. Christian Tanzer All rights reserved # Glasauergasse 32, A--1130 Wien, Austria. tanzer@swing.co.at # #*** <License> ************************************************************# # This module is part of the package GTW.RST. # # This module is licensed under the ter...
35.42236
79
0.503595
561
5,703
4.910873
0.283422
0.029038
0.029038
0.021779
0.149546
0.110345
0.093648
0.070417
0.037024
0
0
0.011816
0.391548
5,703
160
80
35.64375
0.780115
0.196213
0
0.125
0
0
0.084398
0
0
0
0
0
0
1
0.067308
false
0.230769
0.057692
0.009615
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0f47d18ac41443db31ef13ad049a5aa112db8298
782
py
Python
config/db.py
sd2001/Frappe-LMS
f0ee6c05222afe88e12d278eb74e9385e55598d7
[ "MIT" ]
1
2021-06-13T07:36:53.000Z
2021-06-13T07:36:53.000Z
config/db.py
sd2001/Frappe-LMS
f0ee6c05222afe88e12d278eb74e9385e55598d7
[ "MIT" ]
null
null
null
config/db.py
sd2001/Frappe-LMS
f0ee6c05222afe88e12d278eb74e9385e55598d7
[ "MIT" ]
1
2021-09-10T12:32:52.000Z
2021-09-10T12:32:52.000Z
from sqlalchemy import create_engine, MetaData import sqlalchemy.ext.declarative as declarative import sqlalchemy.orm as orm from dotenv import load_dotenv import os import psycopg2 load_dotenv() DATABASE_URL = os.environ.get('DATABASE_URL') ''' Sqlalchemy doesn't recognise postgresql as 'postgres', hence this modifi...
27.928571
98
0.712276
88
782
6.204545
0.488636
0.141026
0
0
0
0
0
0
0
0
0
0.002853
0.103581
782
28
99
27.928571
0.776034
0.113811
0
0
0
0
0.086556
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0f4f0e7b2eaf826ad4a03edcdb6ce3f30cb0cc2b
522
py
Python
tests/test_base_testclass.py
mfocko/requre
14b63ea4390abadcaa193aa63b037bd08d1ea480
[ "MIT" ]
null
null
null
tests/test_base_testclass.py
mfocko/requre
14b63ea4390abadcaa193aa63b037bd08d1ea480
[ "MIT" ]
null
null
null
tests/test_base_testclass.py
mfocko/requre
14b63ea4390abadcaa193aa63b037bd08d1ea480
[ "MIT" ]
null
null
null
import os import shutil from requre import RequreTestCase from requre.utils import get_datafile_filename class CheckBaseTestClass(RequreTestCase): def tearDown(self): super().tearDown() data_file_path = get_datafile_filename(self) self.assertTrue(os.path.exists(data_file_path)) se...
27.473684
67
0.718391
67
522
5.373134
0.432836
0.088889
0.133333
0.127778
0
0
0
0
0
0
0
0
0.185824
522
18
68
29
0.847059
0
0
0
0
0
0.017241
0
0
0
0
0
0.214286
1
0.142857
false
0.071429
0.285714
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0f50fd3769d25bbb20ef7822c6c613d4fb5969bb
2,740
py
Python
src/uff/position.py
waltsims/uff.py
a672319b5cfbe3a676837e47c5958a3fdea12fa7
[ "MIT" ]
7
2021-11-16T17:27:54.000Z
2021-12-25T18:09:35.000Z
src/uff/position.py
waltsims/uff.py
a672319b5cfbe3a676837e47c5958a3fdea12fa7
[ "MIT" ]
6
2021-11-16T17:27:33.000Z
2022-02-04T08:51:06.000Z
src/uff/position.py
waltsims/uff.py
a672319b5cfbe3a676837e47c5958a3fdea12fa7
[ "MIT" ]
1
2021-11-16T19:26:36.000Z
2021-11-16T19:26:36.000Z
from dataclasses import dataclass, field from uff.uff_io import Serializable @dataclass class Position(Serializable): """Contains a location in space in Cartesian coordinates and SI units.""" x: float = 0.0 y: float = 0.0 z: float = 0.0 _index: int = field(repr=False, init=False, default=0) ...
28.842105
81
0.539416
399
2,740
3.528822
0.170426
0.046165
0.117188
0.034091
0.419034
0.384943
0.384943
0.384943
0.384943
0.384943
0
0.032751
0.331387
2,740
94
82
29.148936
0.735808
0.024453
0
0.216216
0
0
0.020247
0
0
0
0
0
0
1
0.189189
false
0
0.027027
0.067568
0.567568
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0f518d5a6a84918866f6fd12ab8f79d15151fdc0
2,222
py
Python
tests/base.py
Stanley-Okwii/send-it-api
c86654e828e64b5f39db4ed5fad1e8889c14c6a2
[ "Apache-2.0" ]
null
null
null
tests/base.py
Stanley-Okwii/send-it-api
c86654e828e64b5f39db4ed5fad1e8889c14c6a2
[ "Apache-2.0" ]
1
2018-11-11T11:35:43.000Z
2018-11-11T11:35:43.000Z
tests/base.py
Stanley-Okwii/send-it-api
c86654e828e64b5f39db4ed5fad1e8889c14c6a2
[ "Apache-2.0" ]
1
2018-11-11T11:32:06.000Z
2018-11-11T11:32:06.000Z
from app import api from app.models import DataModel from flask_testing import TestCase import json db = DataModel() class BaseTestCase(TestCase): def create_app(self): """ Create an instance of the app :return: """ return api def setUp(self): db.create_user_t...
27.432099
79
0.507651
213
2,222
5.187793
0.323944
0.058824
0.050679
0.061538
0.384615
0.278733
0.278733
0.245249
0.206335
0.206335
0
0.00299
0.39784
2,222
80
80
27.775
0.82287
0.075158
0
0.375
0
0
0.069948
0
0
0
0
0
0
1
0.107143
false
0.089286
0.071429
0
0.267857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0f523ad1e82f3236479fe2ef05b748815bcd63a0
1,112
py
Python
eval/src/main/scripts/TAC-KBP/log2systemOutput.py
david-oggier/dbpedia-spotlight
681f63d93ef2daa07cff04051131a45ce3517976
[ "Apache-2.0" ]
2
2015-02-01T18:49:02.000Z
2017-01-30T00:41:56.000Z
eval/src/main/scripts/TAC-KBP/log2systemOutput.py
david-oggier/dbpedia-spotlight
681f63d93ef2daa07cff04051131a45ce3517976
[ "Apache-2.0" ]
6
2020-11-16T20:30:43.000Z
2022-02-01T00:57:40.000Z
eval/src/main/scripts/TAC-KBP/log2systemOutput.py
david-oggier/dbpedia-spotlight
681f63d93ef2daa07cff04051131a45ce3517976
[ "Apache-2.0" ]
1
2015-01-18T13:20:08.000Z
2015-01-18T13:20:08.000Z
import pickle import sys m = pickle.load(open("/home/jodaiber/Desktop/entities.resolvedRedirects.pickle")) d = dict([(v,k) for k,v in m.iteritems()]) nilDict = {} nilCounter = 0 first = True out = {} for line in open(sys.argv[1]): if first: first=False continue lineS = line.strip().split...
24.173913
92
0.638489
154
1,112
4.61039
0.512987
0.047887
0
0
0
0
0
0
0
0
0
0.012673
0.219424
1,112
45
93
24.711111
0.8053
0.073741
0
0
0
0
0.065494
0.054741
0
0
0
0
0
0
null
null
0
0.088235
null
null
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0f603f7fc0772fded7bf08145c25d6f25c36d1b9
286
py
Python
2 - python intermediario/54 - Tuplas/54 - Tuplas em Python.py
AdrianaViabL/Curso-Python-udemy
a4f230354985d0f6026a1e7b4913a8f64e205654
[ "Apache-2.0" ]
null
null
null
2 - python intermediario/54 - Tuplas/54 - Tuplas em Python.py
AdrianaViabL/Curso-Python-udemy
a4f230354985d0f6026a1e7b4913a8f64e205654
[ "Apache-2.0" ]
null
null
null
2 - python intermediario/54 - Tuplas/54 - Tuplas em Python.py
AdrianaViabL/Curso-Python-udemy
a4f230354985d0f6026a1e7b4913a8f64e205654
[ "Apache-2.0" ]
null
null
null
""" Diferença basica: Lista pode ter seu valor alterado, já a tupla nao pode ter seu valor alterado """ t1 = (1, 2, 3, 'a', 'Adriana') print(t1[:2]) t2 = 1, 2, 3, 'adriana', 'valor qualquer' #Não e necessario o uso de parentese para declarar uma tupla n1, n1, n3, *_ = t2 print(_)
20.428571
103
0.653846
49
286
3.77551
0.653061
0.075676
0.108108
0.162162
0.248649
0
0
0
0
0
0
0.061404
0.202797
286
13
104
22
0.75
0.541958
0
0
0
0
0.235772
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0f61ad68b2be6ac1a45571633cc7c9e48c53df06
242
py
Python
day3-1.py
teahunk1/galaxy
9fd8d195c74be3436cb7ccd63f633397576e3a48
[ "MIT" ]
null
null
null
day3-1.py
teahunk1/galaxy
9fd8d195c74be3436cb7ccd63f633397576e3a48
[ "MIT" ]
null
null
null
day3-1.py
teahunk1/galaxy
9fd8d195c74be3436cb7ccd63f633397576e3a48
[ "MIT" ]
null
null
null
#a=int(input()) #b=1 #print("입력한 수는 "+str(a)) #while b<10: # print(str(a)+"x"+str(b)+"="+str(a*b)) # b=b+1 a=1 b=1 while b<5: a=1 while a<5: if a>2: break print(a,b) a+=1 b+=1
11
41
0.392562
48
242
1.979167
0.333333
0.084211
0.063158
0.084211
0
0
0
0
0
0
0
0.078947
0.371901
242
21
42
11.52381
0.546053
0.413223
0
0.2
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1
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
0
0
0
0
0
0
0
1
0f64c6a0fdabbafd890ad1af41f2e70ba669858b
1,285
py
Python
1 Shell Bind TCP/gen_bind_tcp.py
kecebon9/slae32
1f459a2f73b99f0e93fedccbaccc89f622dcd846
[ "Apache-2.0" ]
null
null
null
1 Shell Bind TCP/gen_bind_tcp.py
kecebon9/slae32
1f459a2f73b99f0e93fedccbaccc89f622dcd846
[ "Apache-2.0" ]
null
null
null
1 Shell Bind TCP/gen_bind_tcp.py
kecebon9/slae32
1f459a2f73b99f0e93fedccbaccc89f622dcd846
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # SLAE Exam Assignment #1: Shell bind TCP shellcode generator # Author: Rikih Gunawan import sys SHELLCODE=("\"\\x31\\xc9\\xf7\\xe1\\x99\\x6a\\x66\\x58\\x6a\\x01\\x5b\\x51" "\\x6a\\x01\\x6a\\x02\\x89\\xe1\\xcd\\x80\\x97\\x6a\\x66\\x58\\x6a\\x02\\x5b" "\\x52\\x66\\x68%s\\x66\\x53\\x89\\xe1\\x6a...
32.125
77
0.601556
221
1,285
3.497738
0.429864
0.046572
0.046572
0.062096
0.097025
0.097025
0.069858
0.069858
0.069858
0
0
0.164348
0.105058
1,285
39
78
32.948718
0.507826
0.079377
0
0.074074
0
0
0.54877
0.379135
0
0
0
0
0
0
null
null
0
0.037037
null
null
0.296296
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0f6bfbae6062d2bb62c6f8c20fa414cfcc3dddc5
1,488
py
Python
mlbriefcase/azure/subscription.py
Bhaskers-Blu-Org2/Briefcase
f551079b05d3f8494cdff6a0b393969def5a2443
[ "MIT" ]
2
2020-05-04T12:59:05.000Z
2020-05-05T09:31:43.000Z
mlbriefcase/azure/subscription.py
Bhaskers-Blu-Org2/Briefcase
f551079b05d3f8494cdff6a0b393969def5a2443
[ "MIT" ]
4
2020-02-05T11:34:51.000Z
2020-02-05T11:35:12.000Z
mlbriefcase/azure/subscription.py
microsoft/Briefcase
f551079b05d3f8494cdff6a0b393969def5a2443
[ "MIT" ]
5
2020-06-30T16:02:57.000Z
2021-09-15T06:39:08.000Z
from ..base import Resource from .azure_resource import AzureResource from .auth import managed_service_identity from typing import List class subscription(AzureResource): pip_package = 'azure-mgmt-subscription' def get_resource_group(self): return getattr(self, 'resourcegroup', None) def get_id...
36.292683
134
0.596774
164
1,488
5.256098
0.402439
0.032483
0.045244
0.062645
0.171694
0.171694
0.171694
0.171694
0.171694
0.171694
0
0.000983
0.316532
1,488
40
135
37.2
0.846608
0.043683
0
0
0
0
0.165493
0.016197
0
0
0
0.025
0
1
0.068966
false
0.034483
0.172414
0.034483
0.37931
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0f6dda600843362284d3dc97fe3e0ca8ed0b744a
3,686
py
Python
sdk/python/pulumi_proxmox/system/get_hosts.py
meyskens/pulumi-proxmox
bf48570690350be68fa554e1cec376212eb449ab
[ "ECL-2.0", "Apache-2.0" ]
16
2021-01-11T11:26:19.000Z
2022-01-23T02:32:34.000Z
sdk/python/pulumi_proxmox/system/get_hosts.py
meyskens/pulumi-proxmox
bf48570690350be68fa554e1cec376212eb449ab
[ "ECL-2.0", "Apache-2.0" ]
2
2021-01-29T08:15:46.000Z
2021-10-17T16:33:19.000Z
sdk/python/pulumi_proxmox/system/get_hosts.py
meyskens/pulumi-proxmox
bf48570690350be68fa554e1cec376212eb449ab
[ "ECL-2.0", "Apache-2.0" ]
4
2021-04-06T00:36:05.000Z
2021-12-16T14:25:07.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
33.207207
118
0.650027
427
3,686
5.374707
0.271663
0.048802
0.04183
0.078431
0.192593
0.105011
0.056209
0
0
0
0
0.000359
0.244981
3,686
110
119
33.509091
0.82429
0.105534
0
0.13253
1
0
0.13642
0.025309
0
0
0
0
0
1
0.108434
false
0
0.072289
0.060241
0.301205
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0f7f97de20c0b758dd2779fab0ce9ec5d8d73b7a
513
py
Python
day04/solution.py
Mark-Simulacrum/advent-of-code-2015
8b842eba07a68fd4c2baad60f4ea204429d62f35
[ "MIT" ]
1
2015-12-20T23:59:34.000Z
2015-12-20T23:59:34.000Z
day04/solution.py
Mark-Simulacrum/advent-of-code-2015
8b842eba07a68fd4c2baad60f4ea204429d62f35
[ "MIT" ]
null
null
null
day04/solution.py
Mark-Simulacrum/advent-of-code-2015
8b842eba07a68fd4c2baad60f4ea204429d62f35
[ "MIT" ]
null
null
null
import hashlib def getMD5(str): return hashlib.md5(str).hexdigest() secretKey = "iwrupvqb" fiveZeros = '0' * 5 sixZeros = '0' * 6 i = 0 currentHash = "" while not currentHash.startswith(fiveZeros): i += 1 currentHash = getMD5(secretKey + str(i)) print "Minimum value of n to start with 5 zeros: " + str(i) + " " ...
19.730769
79
0.680312
73
513
4.780822
0.410959
0.045845
0.074499
0.103152
0.601719
0.601719
0.601719
0.361032
0.361032
0.361032
0
0.033573
0.187135
513
25
80
20.52
0.803357
0
0
0.444444
0
0
0.185185
0
0
0
0
0
0
0
null
null
0
0.055556
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0f819b269ea72cf57c010b0903d25943fadb2744
387
py
Python
apps/product/migrations/0007_product_quantity.py
TheRK420/ecommerce
fe95ffb3215db965ede91dabbe6f167ebac8abaa
[ "MIT" ]
null
null
null
apps/product/migrations/0007_product_quantity.py
TheRK420/ecommerce
fe95ffb3215db965ede91dabbe6f167ebac8abaa
[ "MIT" ]
null
null
null
apps/product/migrations/0007_product_quantity.py
TheRK420/ecommerce
fe95ffb3215db965ede91dabbe6f167ebac8abaa
[ "MIT" ]
null
null
null
# Generated by Django 3.0.14 on 2021-07-16 07:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('product', '0006_auto_20210709_1845'), ] operations = [ migrations.AddField( model_name='product', name='quantity', ...
20.368421
49
0.599483
41
387
5.560976
0.804878
0
0
0
0
0
0
0
0
0
0
0.119565
0.286822
387
18
50
21.5
0.706522
0.118863
0
0
1
0
0.132743
0.067847
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1