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
534a04c3322e1ecaccb87a17247c9e86ecb95e59
2,039
py
Python
sim2net/speed/constant.py
harikuts/dsr_optimization
796e58da578f7841a060233a8981eb69d92b798b
[ "MIT" ]
12
2018-06-17T05:29:35.000Z
2022-03-20T23:55:49.000Z
sim2net/speed/constant.py
harikuts/dsr_optimization
796e58da578f7841a060233a8981eb69d92b798b
[ "MIT" ]
2
2020-05-02T16:36:34.000Z
2021-03-12T17:40:02.000Z
sim2net/speed/constant.py
harikuts/dsr_optimization
796e58da578f7841a060233a8981eb69d92b798b
[ "MIT" ]
6
2015-09-09T00:00:22.000Z
2020-05-29T20:18:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # (c) 2012 Michal Kalewski <mkalewski at cs.put.poznan.pl> # # This file is a part of the Simple Network Simulator (sim2net) project. # USE, MODIFICATION, COPYING AND DISTRIBUTION OF THIS SOFTWARE IS SUBJECT TO # THE TERMS AND CONDITIONS OF THE MIT LICENSE. YOU SHOULD H...
26.828947
79
0.60667
254
2,039
4.73622
0.440945
0.024938
0.029094
0.024938
0.159601
0.124688
0.124688
0.069825
0.069825
0.069825
0
0.015183
0.289358
2,039
75
80
27.186667
0.815045
0.591957
0
0
0
0
0.034483
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
534aebd1f9c4e46d72dc93169bc74d5b8daf04ea
2,088
py
Python
nexula/nexula_utility/utility_extract_func.py
haryoa/nexula
cc3b5a9b8dd8294bdc47150a1971cb49c4dde225
[ "MIT" ]
3
2020-05-06T08:53:22.000Z
2020-09-24T07:45:38.000Z
nexula/nexula_utility/utility_extract_func.py
haryoa/nexula
cc3b5a9b8dd8294bdc47150a1971cb49c4dde225
[ "MIT" ]
null
null
null
nexula/nexula_utility/utility_extract_func.py
haryoa/nexula
cc3b5a9b8dd8294bdc47150a1971cb49c4dde225
[ "MIT" ]
null
null
null
from nexula.nexula_utility.utility_import_var import import_class class NexusFunctionModuleExtractor(): """ Used for constructing pipeline data preporcessing and feature representer """ def __init__(self, module_class_list, args_dict, **kwargs): """ Instantiate class(es) object in pip...
29.408451
77
0.594828
249
2,088
4.654618
0.253012
0.062123
0.093184
0.067299
0.194133
0.181191
0.096635
0.096635
0.053494
0
0
0
0.306034
2,088
70
78
29.828571
0.799862
0.230364
0
0.068966
0
0
0.02289
0
0
0
0
0.014286
0
1
0.137931
false
0
0.103448
0
0.344828
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
5350847a4e985147242bdddaf7eae8ed5d884139
4,101
py
Python
rest_framework_mongoengine/fields.py
Careerleaf/django-rest-framework-mongoengine
fc28dbf7af760528f6f7247e567328df46458799
[ "MIT" ]
null
null
null
rest_framework_mongoengine/fields.py
Careerleaf/django-rest-framework-mongoengine
fc28dbf7af760528f6f7247e567328df46458799
[ "MIT" ]
null
null
null
rest_framework_mongoengine/fields.py
Careerleaf/django-rest-framework-mongoengine
fc28dbf7af760528f6f7247e567328df46458799
[ "MIT" ]
null
null
null
from bson.errors import InvalidId from django.core.exceptions import ValidationError from django.utils.encoding import smart_str from mongoengine import dereference from mongoengine.base.document import BaseDocument from mongoengine.document import Document from rest_framework import serializers from mongoengine.fields...
29.717391
84
0.641795
464
4,101
5.517241
0.256466
0.039063
0.032813
0.03125
0.221484
0.183203
0.145313
0.089844
0.089844
0.089844
0
0.003348
0.271641
4,101
138
85
29.717391
0.853699
0.071934
0
0.258427
0
0
0.056263
0.011147
0
0
0
0
0
1
0.157303
false
0
0.101124
0.089888
0.573034
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
5351dc5962b2184cb179f5f6f4ba10be7538464e
81,840
py
Python
tests/go_cd_configurator_test.py
agsmorodin/gomatic
e6ae871ffc2d027823f6b7a5755e0ac65c724538
[ "MIT" ]
null
null
null
tests/go_cd_configurator_test.py
agsmorodin/gomatic
e6ae871ffc2d027823f6b7a5755e0ac65c724538
[ "MIT" ]
null
null
null
tests/go_cd_configurator_test.py
agsmorodin/gomatic
e6ae871ffc2d027823f6b7a5755e0ac65c724538
[ "MIT" ]
null
null
null
#!/usr/bin/env python import unittest from xml.dom.minidom import parseString import xml.etree.ElementTree as ET from decimal import Decimal from gomatic import GoCdConfigurator, FetchArtifactDir, RakeTask, ExecTask, ScriptExecutorTask, FetchArtifactTask, \ FetchArtifactFile, Tab, GitMaterial, PipelineMaterial,...
49.271523
208
0.697849
9,620
81,840
5.65343
0.055198
0.118854
0.022984
0.02679
0.777553
0.690398
0.594454
0.533648
0.476005
0.424539
0
0.006538
0.17577
81,840
1,660
209
49.301205
0.799718
0.003739
0
0.407054
0
0.008082
0.137514
0.054191
0
0
0
0.000602
0.311536
0
null
null
0.022043
0.007348
null
null
0.004409
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
5355dedf12aa8e15115b8c77564d80f57eb0ec2a
1,577
py
Python
set-env.py
sajaldebnath/vrops-custom-group-creation
e3c821336832445e93706ad29afe216867660123
[ "MIT" ]
1
2017-08-14T07:51:42.000Z
2017-08-14T07:51:42.000Z
set-env.py
sajaldebnath/vrops-custom-group-creation
e3c821336832445e93706ad29afe216867660123
[ "MIT" ]
null
null
null
set-env.py
sajaldebnath/vrops-custom-group-creation
e3c821336832445e93706ad29afe216867660123
[ "MIT" ]
null
null
null
# !/usr/bin python """ # # set-env - a small python program to setup the configuration environment for data-push.py # data-push.py contains the python program to push attribute values to vROps # Author Sajal Debnath <sdebnath@vmware.com> # """ # Importing the required modules import json import base64 i...
28.672727
107
0.689918
202
1,577
5.30198
0.480198
0.037348
0.052288
0.070962
0
0
0
0
0
0
0
0.006385
0.205453
1,577
55
107
28.672727
0.848364
0.304375
0
0
0
0
0.187379
0
0
0
0
0
0
1
0.076923
false
0.115385
0.115385
0.038462
0.269231
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
535b6a1790a4b33142e1922aac85ef30e05ce452
1,487
gyp
Python
binding.gyp
terrorizer1980/fs-admin
e21216161c56def4ca76a3ef4e71844e2ba26074
[ "MIT" ]
25
2017-10-14T22:54:00.000Z
2022-02-28T16:45:44.000Z
binding.gyp
icecream17/fs-admin
e21216161c56def4ca76a3ef4e71844e2ba26074
[ "MIT" ]
46
2019-02-22T15:17:32.000Z
2022-03-15T16:04:38.000Z
binding.gyp
icecream17/fs-admin
e21216161c56def4ca76a3ef4e71844e2ba26074
[ "MIT" ]
19
2018-01-04T00:52:17.000Z
2022-02-05T17:18:17.000Z
{ 'target_defaults': { 'win_delay_load_hook': 'false', 'conditions': [ ['OS=="win"', { 'msvs_disabled_warnings': [ 4530, # C++ exception handler used, but unwind semantics are not enabled 4506, # no definition for inline function ], }], ], }, 'targets'...
24.377049
83
0.438467
120
1,487
5.241667
0.675
0.044515
0.057234
0.081081
0
0
0
0
0
0
0
0.017076
0.369872
1,487
60
84
24.783333
0.654216
0.065905
0
0.416667
0
0
0.445887
0.146465
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
535e920c95d9b042b1a45ee54769faf051d34c56
1,013
py
Python
app/domains/users/views.py
Geo-Gabriel/eccomerce_nestle_mongodb
97bf5dbdc7bee20a9ca2f7cad98afc6e8f11bd3e
[ "MIT" ]
3
2020-06-21T15:51:25.000Z
2021-01-24T21:19:27.000Z
app/domains/users/views.py
Geo-Gabriel/eccomerce_nestle_mongodb
97bf5dbdc7bee20a9ca2f7cad98afc6e8f11bd3e
[ "MIT" ]
null
null
null
app/domains/users/views.py
Geo-Gabriel/eccomerce_nestle_mongodb
97bf5dbdc7bee20a9ca2f7cad98afc6e8f11bd3e
[ "MIT" ]
null
null
null
from flask import Blueprint, request, jsonify from app.domains.users.actions import get_all_users, insert_user, get_user_by_id, update_user, delete_user app_users = Blueprint('app.users', __name__) @app_users.route('/users', methods=['GET']) def get_users(): return jsonify([user.serialize() for user in get_all_...
27.378378
106
0.698914
149
1,013
4.516779
0.241611
0.08321
0.096582
0.13373
0.506686
0.237741
0.197623
0.139673
0.139673
0
0
0.017084
0.133268
1,013
36
107
28.138889
0.749431
0
0
0.166667
0
0
0.090819
0
0
0
0
0
0
1
0.208333
false
0
0.083333
0.041667
0.5
0.083333
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
536501345147bcbb0b1035da0ccdac716533b14a
2,557
py
Python
wired_version/mcs_wired.py
Harri-Renney/Mind_Control_Synth
5a892a81a3f37444ef154f29a62d44fa1476bfbd
[ "MIT" ]
1
2020-12-20T09:53:20.000Z
2020-12-20T09:53:20.000Z
wired_version/mcs_wired.py
Harri-Renney/Mind_Control_Synth
5a892a81a3f37444ef154f29a62d44fa1476bfbd
[ "MIT" ]
null
null
null
wired_version/mcs_wired.py
Harri-Renney/Mind_Control_Synth
5a892a81a3f37444ef154f29a62d44fa1476bfbd
[ "MIT" ]
null
null
null
import time import mido from pinaps.piNapsController import PiNapsController from NeuroParser import NeuroParser """ Equation of motion used to modify virbato. """ def positionStep(pos, vel, acc): return pos + vel * 2 + (1/2) * acc * 4 def velocityStep(vel, acc): return acc * 2 + vel CTRL_LF...
35.027397
134
0.658193
268
2,557
6.186567
0.395522
0.033173
0.014475
0.027744
0.308806
0.268999
0.268999
0.268999
0.209891
0.209891
0
0.020116
0.261244
2,557
73
135
35.027397
0.857597
0.152522
0
0.122449
0
0
0.057115
0
0
0
0
0.013699
0
1
0.081633
false
0
0.081633
0.040816
0.204082
0.061224
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
536a166e562f305f44e421c35ddf14c30aa9d207
2,804
py
Python
util/tools/split_train_val.py
JochenZoellner/tf_neiss-1
c91019e5bce6d3c7512237eec5ea997fd95304ac
[ "Apache-2.0" ]
null
null
null
util/tools/split_train_val.py
JochenZoellner/tf_neiss-1
c91019e5bce6d3c7512237eec5ea997fd95304ac
[ "Apache-2.0" ]
1
2020-08-07T13:04:43.000Z
2020-08-10T12:32:46.000Z
util/tools/split_train_val.py
JochenZoellner/tf_neiss-1
c91019e5bce6d3c7512237eec5ea997fd95304ac
[ "Apache-2.0" ]
1
2019-12-16T15:46:45.000Z
2019-12-16T15:46:45.000Z
import glob import logging import os import shutil import sys """script to divide a folder with generated/training data into a train and val folder - val folder contains 500 Samples if not changed in source code - DOES NOT work if images structured in subfolders, see below - if there is no dir in the given...
40.057143
117
0.579529
382
2,804
4.117801
0.308901
0.071202
0.076287
0.07438
0.260648
0.210426
0.181182
0.181182
0.120153
0.097266
0
0.010505
0.28709
2,804
69
118
40.637681
0.776388
0.07311
0
0.085106
1
0
0.10519
0
0
0
0
0
0
1
0.021277
false
0.021277
0.106383
0
0.12766
0.191489
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
536b943feabc16b11630bbf2f1fc6f9c7d3d5261
557
py
Python
make/platform/registry.py
tompis/casual
d838716c7052a906af8a19e945a496acdc7899a2
[ "MIT" ]
null
null
null
make/platform/registry.py
tompis/casual
d838716c7052a906af8a19e945a496acdc7899a2
[ "MIT" ]
null
null
null
make/platform/registry.py
tompis/casual
d838716c7052a906af8a19e945a496acdc7899a2
[ "MIT" ]
null
null
null
import os registry = {} class RegisterPlatform(object): ''' classdocs ''' def __init__(self, platform): ''' Constructor ''' self.platform = platform def __call__(self, clazz): registry[self.platform] = clazz def platform(): # Decide on whi...
16.878788
57
0.563734
53
557
5.773585
0.622642
0.117647
0
0
0
0
0
0
0
0
0
0.002653
0.32316
557
32
58
17.40625
0.809019
0.061041
0
0
0
0
0.080435
0
0
0
0
0
0
0
null
null
0
0.071429
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
536bfa0db6a83d2b284796ec230b11252da51887
553
py
Python
mailer/admin.py
everyvoter/everyvoter
65d9b8bdf9b5c64057135c279f6e03b6c207e0fa
[ "MIT" ]
5
2019-07-01T17:50:44.000Z
2022-02-20T02:44:42.000Z
mailer/admin.py
everyvoter/everyvoter
65d9b8bdf9b5c64057135c279f6e03b6c207e0fa
[ "MIT" ]
3
2020-06-05T21:44:33.000Z
2021-06-10T21:39:26.000Z
mailer/admin.py
everyvoter/everyvoter
65d9b8bdf9b5c64057135c279f6e03b6c207e0fa
[ "MIT" ]
1
2021-12-09T06:32:40.000Z
2021-12-09T06:32:40.000Z
"""Django Admin Panels for App""" from django.contrib import admin from mailer import models @admin.register(models.SendingAddress) class SendingAddressAdmin(admin.ModelAdmin): """Admin View for SendingAddress""" list_display = ('address', 'organization') list_filter = ('organization__name',) actions ...
29.105263
73
0.672694
66
553
5.545455
0.69697
0.060109
0
0
0
0
0
0
0
0
0
0.002347
0.229656
553
18
74
30.722222
0.856808
0.211573
0
0
0
0
0.088095
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7258cd5e14cfcac3370c20a51efc82ed53ffd2ed
26,052
py
Python
functest/tests/unit/odl/test_odl.py
hashnfv/hashnfv-functest
ff34df7ec7be6cd5fcf0f7557b393bd5d6266047
[ "Apache-2.0" ]
null
null
null
functest/tests/unit/odl/test_odl.py
hashnfv/hashnfv-functest
ff34df7ec7be6cd5fcf0f7557b393bd5d6266047
[ "Apache-2.0" ]
null
null
null
functest/tests/unit/odl/test_odl.py
hashnfv/hashnfv-functest
ff34df7ec7be6cd5fcf0f7557b393bd5d6266047
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2016 Orange and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 """Define t...
40.642746
79
0.609857
2,858
26,052
5.252624
0.108467
0.047429
0.024181
0.027844
0.63769
0.575873
0.543832
0.513056
0.48741
0.451639
0
0.013743
0.276601
26,052
640
80
40.70625
0.782819
0.033395
0
0.411067
0
0
0.139924
0.04302
0
0
0
0
0.088933
1
0.156126
false
0.063241
0.025692
0
0.225296
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
725ce8235488dcfac8f6ef5c1aeb63ee7251e649
571
py
Python
apps/configuration/fields.py
sotkonstantinidis/testcircle
448aa2148fbc2c969e60f0b33ce112d4740a8861
[ "Apache-2.0" ]
3
2019-02-24T14:24:43.000Z
2019-10-24T18:51:32.000Z
apps/configuration/fields.py
sotkonstantinidis/testcircle
448aa2148fbc2c969e60f0b33ce112d4740a8861
[ "Apache-2.0" ]
17
2017-03-14T10:55:56.000Z
2022-03-11T23:20:19.000Z
apps/configuration/fields.py
sotkonstantinidis/testcircle
448aa2148fbc2c969e60f0b33ce112d4740a8861
[ "Apache-2.0" ]
2
2016-02-01T06:32:40.000Z
2019-09-06T04:33:50.000Z
import unicodedata from django.forms import fields class XMLCompatCharField(fields.CharField): """ Strip 'control characters', as XML 1.0 does not allow them and the API may return data in XML. """ def to_python(self, value): value = super().to_python(value=value) return self.rem...
27.190476
79
0.644483
75
571
4.8
0.626667
0.141667
0.127778
0
0
0
0
0
0
0
0
0.007042
0.25394
571
20
80
28.55
0.838028
0.164623
0
0
0
0
0.010941
0
0
0
0
0
0
1
0.181818
false
0
0.181818
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7263c0e12b1f9385bffd20a482055a91cac00beb
996
py
Python
backend/server/server/wsgi.py
Stinger101/my_uno_ml_service
47d19f6e5e19e73c465b7ddca889324c9bd5862f
[ "MIT" ]
null
null
null
backend/server/server/wsgi.py
Stinger101/my_uno_ml_service
47d19f6e5e19e73c465b7ddca889324c9bd5862f
[ "MIT" ]
null
null
null
backend/server/server/wsgi.py
Stinger101/my_uno_ml_service
47d19f6e5e19e73c465b7ddca889324c9bd5862f
[ "MIT" ]
null
null
null
""" WSGI config for server project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTIN...
33.2
315
0.800201
131
996
5.954198
0.618321
0.046154
0.046154
0
0
0
0
0
0
0
0
0.005599
0.103414
996
29
316
34.344828
0.867861
0.212851
0
0
0
0
0.233247
0.028351
0
0
0
0
0
1
0
false
0
0.384615
0
0.384615
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7265b89cf3b023b36a24bc0d387a352f1ee8492b
1,881
py
Python
models/toolscontext/errorhandler.py
vinirossa/password_generator_test
dd2f43540c6f58ff9217320c21b246c0be3fc55f
[ "MIT" ]
2
2021-09-10T00:11:00.000Z
2021-09-10T02:47:54.000Z
models/toolscontext/errorhandler.py
vinirossa/password_generator_test
dd2f43540c6f58ff9217320c21b246c0be3fc55f
[ "MIT" ]
null
null
null
models/toolscontext/errorhandler.py
vinirossa/password_generator_test
dd2f43540c6f58ff9217320c21b246c0be3fc55f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Module Name Description... """ __author__ = "Vinícius Pereira" __copyright__ = "Copyright 2021, Vinícius Pereira" __credits__ = ["Vinícius Pereira","etc."] __date__ = "2021/04/12" __license__ = "GPL" __version__ = "1.0.0" __pythonversion__ = "3.9.1" __maintaine...
24.115385
106
0.640617
214
1,881
5.158879
0.429907
0.057971
0.082428
0.030797
0
0
0
0
0
0
0
0.014765
0.207868
1,881
78
107
24.115385
0.726175
0.037746
0
0.061224
0
0.020408
0.235392
0.011686
0
0
0
0
0
1
0.081633
false
0.061224
0.081633
0
0.204082
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
726a44a6fe535cc4bca286ac9836e2fee0dcea3e
8,580
py
Python
examples/voc2007_extract.py
sis0truk/pretrained-models.pytorch
4aea6d47996279b4b281355ca3d9738d0dff7469
[ "BSD-3-Clause" ]
91
2018-03-21T19:45:00.000Z
2021-12-13T06:08:00.000Z
examples/voc2007_extract.py
wubin1836/pretrained-models.pytorch
cb5127f43c554c0bb52c5ded3c071d9de9a514a4
[ "BSD-3-Clause" ]
6
2019-08-03T08:49:21.000Z
2022-03-11T23:43:56.000Z
examples/voc2007_extract.py
wubin1836/pretrained-models.pytorch
cb5127f43c554c0bb52c5ded3c071d9de9a514a4
[ "BSD-3-Clause" ]
13
2018-03-23T12:31:52.000Z
2020-07-20T13:16:44.000Z
import os import argparse from tqdm import tqdm import torch from torch.autograd import Variable from torch.utils import model_zoo # http://scikit-learn.org from sklearn.metrics import accuracy_score from sklearn.metrics import average_precision_score from sklearn.svm import LinearSVC from sklearn.svm import SVC imp...
46.630435
156
0.675291
1,109
8,580
4.984671
0.190262
0.030753
0.024602
0.022793
0.271708
0.215268
0.103292
0.026049
0.026049
0.026049
0
0.011509
0.16958
8,580
184
157
46.630435
0.764351
0.025058
0
0.013986
0
0
0.11034
0
0
0
0
0
0
0
null
null
0
0.097902
null
null
0.125874
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
726b9a5bd16ce05e24c2ecf163d38e79bdafc8e9
440
py
Python
src/gui/tcltk/tcl/tests/langbench/proc.py
gspu/bitkeeper
994fb651a4045b221e33703fc3d665c3a34784e1
[ "Apache-2.0" ]
342
2016-05-10T14:59:07.000Z
2022-03-09T23:45:43.000Z
src/gui/tcltk/tcl/tests/langbench/proc.py
rvs/bitkeeper
616740d0daad99530951e46ab48e577807cbbaf4
[ "Apache-2.0" ]
4
2016-05-16T20:14:27.000Z
2020-10-04T19:59:25.000Z
src/gui/tcltk/tcl/tests/langbench/proc.py
rvs/bitkeeper
616740d0daad99530951e46ab48e577807cbbaf4
[ "Apache-2.0" ]
78
2016-05-10T15:53:30.000Z
2022-03-09T23:46:06.000Z
#!/usr/bin/python def a(val): return b(val) def b(val): return c(val) def c(val): return d(val) def d(val): return e(val) def e(val): return f(val) def f(val): return g(val, 2) def g(v1, v2): return h(v1, v2, 3) def h(v1, v2, v3): return i(v1, v2, v3, 4) def i(v1, v2, v3, v4): return j(v1, v2, v3, v4, 5) d...
15.172414
30
0.556818
101
440
2.425743
0.316832
0.130612
0.146939
0.130612
0.122449
0
0
0
0
0
0
0.119403
0.238636
440
28
31
15.714286
0.61194
0.036364
0
0
0
0
0.009456
0
0
0
0
0
0
0
null
null
0
0
null
null
0.04
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
726cd8989837300a91d84b0ca0157304eb9a9398
821
py
Python
src/metrics.py
dmitryrubtsov/Recommender-systems
9debd7b1c2d67ebc508263a483c81da57521dea0
[ "MIT" ]
null
null
null
src/metrics.py
dmitryrubtsov/Recommender-systems
9debd7b1c2d67ebc508263a483c81da57521dea0
[ "MIT" ]
null
null
null
src/metrics.py
dmitryrubtsov/Recommender-systems
9debd7b1c2d67ebc508263a483c81da57521dea0
[ "MIT" ]
1
2021-09-11T09:12:34.000Z
2021-09-11T09:12:34.000Z
import pandas as pd import numpy as np import swifter def money_precision_at_k(y_pred: pd.Series, y_true: pd.Series, item_price, k=5): y_pred = y_pred.swifter.progress_bar(False).apply(pd.Series) user_filter = ~(y_true.swifter.progress_bar(False).apply(len) < k) y_pred = y_pred.loc[user_filter] y_tru...
34.208333
111
0.685749
132
821
4.05303
0.325758
0.065421
0.168224
0.214953
0.416822
0.364486
0.246729
0.11215
0
0
0
0.010189
0.163216
821
23
112
35.695652
0.768559
0
0
0
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0.1875
0
0.3125
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
7272878a102453847fd4632382fedab2cb904e9f
518
py
Python
src/utils/pythonSrc/watchFaceParser/models/elements/battery/batteryGaugeElement.py
chm-dev/amazfitGTSwatchfaceBundle
4cb04be5215de16628418e9b38152a35d5372d3e
[ "MIT" ]
49
2019-12-18T11:24:56.000Z
2022-03-28T09:56:27.000Z
src/utils/pythonSrc/watchFaceParser/models/elements/battery/batteryGaugeElement.py
chm-dev/amazfitGTSwatchfaceBundle
4cb04be5215de16628418e9b38152a35d5372d3e
[ "MIT" ]
6
2020-01-08T21:31:15.000Z
2022-03-25T19:13:26.000Z
src/utils/pythonSrc/watchFaceParser/models/elements/battery/batteryGaugeElement.py
chm-dev/amazfitGTSwatchfaceBundle
4cb04be5215de16628418e9b38152a35d5372d3e
[ "MIT" ]
6
2019-12-27T17:30:24.000Z
2021-09-30T08:11:01.000Z
import logging from watchFaceParser.models.elements.common.imageSetElement import ImageSetElement class BatteryGaugeElement(ImageSetElement): def __init__(self, parameter, parent, name = None): super(BatteryGaugeElement, self).__init__(parameter = parameter, parent = parent, name = name) def draw3(s...
43.166667
125
0.745174
53
518
7.150943
0.566038
0.079156
0.147757
0
0
0
0
0
0
0
0
0.011312
0.146718
518
11
126
47.090909
0.843891
0
0
0
0
0
0
0
0
0
0
0
0.125
0
null
null
0
0.25
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
727b538b13be55c65e12b2a82a23b2e3906b8885
474
py
Python
web/migrations/0007_auto_20180824_0925.py
zinaukarenku/zkr-platform
8daf7d1206c482f1f8e0bcd54d4fde783e568774
[ "Apache-2.0" ]
2
2018-11-16T21:45:17.000Z
2019-02-03T19:55:46.000Z
web/migrations/0007_auto_20180824_0925.py
zinaukarenku/zkr-platform
8daf7d1206c482f1f8e0bcd54d4fde783e568774
[ "Apache-2.0" ]
13
2018-08-17T19:12:11.000Z
2022-03-11T23:27:41.000Z
web/migrations/0007_auto_20180824_0925.py
zinaukarenku/zkr-platform
8daf7d1206c482f1f8e0bcd54d4fde783e568774
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1 on 2018-08-24 09:25 from django.db import migrations, models import web.models class Migration(migrations.Migration): dependencies = [ ('web', '0006_organizationmember_user'), ] operations = [ migrations.AlterField( model_name='organizationpartner',...
23.7
110
0.662447
49
474
6.244898
0.734694
0.058824
0
0
0
0
0
0
0
0
0
0.049862
0.238397
474
19
111
24.947368
0.797784
0.090717
0
0
1
0
0.125874
0.065268
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
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
727ca773247407a0b44c8ae5a52c27e130f63397
6,165
py
Python
sqlmat/utils.py
haobtc/sqlmat
c6b6ef966ba01173b6a485afb932ed438c35b211
[ "MIT" ]
null
null
null
sqlmat/utils.py
haobtc/sqlmat
c6b6ef966ba01173b6a485afb932ed438c35b211
[ "MIT" ]
null
null
null
sqlmat/utils.py
haobtc/sqlmat
c6b6ef966ba01173b6a485afb932ed438c35b211
[ "MIT" ]
null
null
null
from typing import Tuple, List, Optional import json import sys import os import shlex import asyncio import argparse import logging import tempfile from urllib.parse import urlparse logger = logging.getLogger(__name__) def find_sqlmat_json() -> Optional[dict]: json_path = os.getenv('SQLMAT_JSON_PATH') if jso...
28.541667
108
0.65515
801
6,165
4.928839
0.319601
0.040527
0.016464
0.017224
0.270517
0.270517
0.270517
0.24772
0.24772
0.24772
0
0.005225
0.223844
6,165
215
109
28.674419
0.819854
0.032928
0
0.254438
0
0
0.372081
0.020326
0
0
0
0
0.005917
1
0.04142
false
0.071006
0.059172
0
0.147929
0.017751
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
72825a6195e36bed57090b1163e99522e513ffd4
2,410
py
Python
eggs/ZConfig-3.0.4-py2.7.egg/ZConfig/tests/test_cookbook.py
salayhin/talkofacta
8b5a14245dd467bb1fda75423074c4840bd69fb7
[ "MIT" ]
null
null
null
eggs/ZConfig-3.0.4-py2.7.egg/ZConfig/tests/test_cookbook.py
salayhin/talkofacta
8b5a14245dd467bb1fda75423074c4840bd69fb7
[ "MIT" ]
null
null
null
eggs/ZConfig-3.0.4-py2.7.egg/ZConfig/tests/test_cookbook.py
salayhin/talkofacta
8b5a14245dd467bb1fda75423074c4840bd69fb7
[ "MIT" ]
null
null
null
############################################################################## # # Copyright (c) 2004 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
33.943662
78
0.612448
265
2,410
5.437736
0.498113
0.038862
0.03331
0.060375
0.047189
0.047189
0.047189
0
0
0
0
0.00592
0.229046
2,410
70
79
34.428571
0.769645
0.30332
0
0
0
0
0.454424
0.083167
0
0
0
0
0.108108
1
0.108108
false
0.216216
0.054054
0.054054
0.27027
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
7282cd43987729ea642d1583bf120e197cdcc79d
420
py
Python
src/bullet_point/migrations/0006_bulletpoint_sift_risk_score.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
18
2021-05-20T13:20:16.000Z
2022-02-11T02:40:18.000Z
src/bullet_point/migrations/0006_bulletpoint_sift_risk_score.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
109
2021-05-21T20:14:23.000Z
2022-03-31T20:56:10.000Z
src/bullet_point/migrations/0006_bulletpoint_sift_risk_score.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
4
2021-05-17T13:47:53.000Z
2022-02-12T10:48:21.000Z
# Generated by Django 2.2 on 2020-11-07 01:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bullet_point', '0005_bulletpoint_created_location'), ] operations = [ migrations.AddField( model_name='bulletpoint', n...
22.105263
62
0.62619
45
420
5.688889
0.8
0
0
0
0
0
0
0
0
0
0
0.058442
0.266667
420
18
63
23.333333
0.772727
0.102381
0
0
1
0
0.189333
0.088
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
72831f9ef5d36065feb1e5d281d84dbd15c6710a
1,840
py
Python
main.py
ezhkovskii/instagrapi-rest
a3570f279ef0973856b92e433b117e0be0d4c713
[ "MIT" ]
null
null
null
main.py
ezhkovskii/instagrapi-rest
a3570f279ef0973856b92e433b117e0be0d4c713
[ "MIT" ]
null
null
null
main.py
ezhkovskii/instagrapi-rest
a3570f279ef0973856b92e433b117e0be0d4c713
[ "MIT" ]
null
null
null
import pkg_resources from fastapi import FastAPI from fastapi.openapi.utils import get_openapi from starlette.responses import RedirectResponse, JSONResponse from routers import auth, media, video, photo, user, igtv, clip, album, story, hashtag, direct app = FastAPI() app.include_router(auth.router) app.include_route...
28.307692
94
0.7
232
1,840
5.37931
0.323276
0.088141
0.141026
0.176282
0.05609
0.05609
0
0
0
0
0
0.004639
0.179891
1,840
64
95
28.75
0.822399
0.075
0
0.043478
0
0
0.088073
0
0
0
0
0
0
1
0.021739
false
0
0.108696
0
0.23913
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
728590b1ad401344329ed841bf7e2c36ccfdfcf3
119,428
py
Python
synbioinformatica.py
nemami/synbioinformatica
9306d7a7edb93aaa8e4de5e041db6633214c07b1
[ "BSD-2-Clause" ]
null
null
null
synbioinformatica.py
nemami/synbioinformatica
9306d7a7edb93aaa8e4de5e041db6633214c07b1
[ "BSD-2-Clause" ]
null
null
null
synbioinformatica.py
nemami/synbioinformatica
9306d7a7edb93aaa8e4de5e041db6633214c07b1
[ "BSD-2-Clause" ]
1
2021-03-01T08:48:35.000Z
2021-03-01T08:48:35.000Z
#!/usr/bin/python -tt import sys, re, math from decimal import * # TODO: work on naming scheme # TODO: add more ORIs # TODO: assemblytree alignment # TODO: Wobble, SOEing # TODO: (digestion, ligation) redundant products # TODO: for PCR and Sequencing, renormalize based on LCS # TODO: tutorials dna_alphabet = {'A':'A...
62.040519
836
0.636509
12,316
119,428
6.15492
0.112049
0.01835
0.019234
0.023508
0.536608
0.501583
0.482178
0.469289
0.452113
0.430558
0
0.013458
0.257134
119,428
1,925
837
62.040519
0.84097
0.161503
0
0.422107
0
0.005171
0.151387
0.037381
0
0
0
0.001039
0
0
null
null
0.014221
0.001293
null
null
0.021332
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
7286c123e2e1e4752621f27aef91caae14dc1664
727
py
Python
ex039.py
vinisantos7/PythonExercicios
bc8f38e03a606d6b0216632a93affeab0792e534
[ "MIT" ]
2
2021-11-04T21:09:11.000Z
2021-11-08T09:42:10.000Z
ex039.py
vinisantos7/PythonExercicios
bc8f38e03a606d6b0216632a93affeab0792e534
[ "MIT" ]
null
null
null
ex039.py
vinisantos7/PythonExercicios
bc8f38e03a606d6b0216632a93affeab0792e534
[ "MIT" ]
null
null
null
print("@"*30) print("Alistamento - Serviço Militar") print("@"*30) from datetime import date ano_nasc = int(input("Digite seu ano de nascimento: ")) ano_atual = date.today().year idade = ano_atual - ano_nasc print(f"Quem nasceu em {ano_nasc} tem {idade} anos em {ano_atual}") if idade == 18: print("É a hora de se...
30.291667
70
0.674003
115
727
4.191304
0.426087
0.082988
0.093361
0.078838
0.170124
0.170124
0.170124
0.170124
0.170124
0.170124
0
0.02418
0.203576
727
24
71
30.291667
0.80829
0
0
0.095238
0
0
0.462912
0
0
0
0
0
0
1
0
false
0.047619
0.047619
0
0.047619
0.428571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
728800a60a85756e4875a7047b803fa961c8c2d3
25,990
py
Python
test/python/spl/tk17/opt/.__splpy/packages/streamsx/topology/tester.py
Jaimie-Jin1/streamsx.topology
6f316ec8e9ed1349c6f061d9bb7d03deb87e3d08
[ "Apache-2.0" ]
31
2015-06-24T06:21:14.000Z
2020-08-28T21:45:50.000Z
test/python/spl/tk17/opt/.__splpy/packages/streamsx/topology/tester.py
Jaimie-Jin1/streamsx.topology
6f316ec8e9ed1349c6f061d9bb7d03deb87e3d08
[ "Apache-2.0" ]
1,203
2015-06-15T02:11:49.000Z
2021-03-22T09:47:54.000Z
test/python/spl/tk17/opt/.__splpy/packages/streamsx/topology/tester.py
Jaimie-Jin1/streamsx.topology
6f316ec8e9ed1349c6f061d9bb7d03deb87e3d08
[ "Apache-2.0" ]
53
2015-05-28T21:14:16.000Z
2021-12-23T12:58:59.000Z
# coding=utf-8 # Licensed Materials - Property of IBM # Copyright IBM Corp. 2017 """Testing support for streaming applications. Allows testing of a streaming application by creation conditions on streams that are expected to become valid during the processing. `Tester` is designed to be used with Python's `unittest` ...
39.740061
133
0.634052
3,201
25,990
5.036239
0.147454
0.016128
0.017059
0.005583
0.283791
0.233608
0.190001
0.168042
0.138205
0.128094
0
0.004119
0.29015
25,990
653
134
39.800919
0.869695
0.460908
0
0.208029
0
0
0.112797
0.008028
0
0
0
0
0.010949
1
0.094891
false
0.065693
0.043796
0
0.237226
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
729a80929d56b3febe54ea0a4bcd62e2fff44b08
6,519
py
Python
Beheer/tests.py
RamonvdW/nhb-apps
5a9f840bfe066cd964174515c06b806a7b170c69
[ "BSD-3-Clause-Clear" ]
1
2021-12-22T13:11:12.000Z
2021-12-22T13:11:12.000Z
Beheer/tests.py
RamonvdW/nhb-apps
5a9f840bfe066cd964174515c06b806a7b170c69
[ "BSD-3-Clause-Clear" ]
9
2020-10-28T07:07:05.000Z
2021-06-28T20:05:37.000Z
Beheer/tests.py
RamonvdW/nhb-apps
5a9f840bfe066cd964174515c06b806a7b170c69
[ "BSD-3-Clause-Clear" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020-2021 Ramon van der Winkel. # All rights reserved. # Licensed under BSD-3-Clause-Clear. See LICENSE file for details. from django.conf import settings from django.test import TestCase from django.urls import reverse from TestHelpers.e2ehelpers import E2EHelpers # updat...
39.509091
185
0.670655
710
6,519
6.038028
0.302817
0.041987
0.035923
0.04362
0.36739
0.365057
0.349195
0.339865
0.3331
0.312573
0
0.017219
0.189293
6,519
164
186
39.75
0.793945
0.140206
0
0.194915
0
0
0.397273
0.337341
0
0
0
0
0.237288
1
0.050847
false
0.059322
0.033898
0
0.09322
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
729bee0345192e65862237553dfdacf7015f8ae1
5,578
py
Python
isi_sdk_8_0/isi_sdk_8_0/models/auth_access_access_item_file.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_0/isi_sdk_8_0/models/auth_access_access_item_file.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_0/isi_sdk_8_0/models/auth_access_access_item_file.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 3 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class AuthAccessAccessItemFile(o...
28.030151
95
0.580495
645
5,578
4.908527
0.189147
0.058118
0.151611
0.128869
0.472521
0.401453
0.394188
0.352179
0.266582
0.18067
0
0.020599
0.329867
5,578
198
96
28.171717
0.826378
0.39602
0
0.071429
1
0
0.041835
0
0
0
0
0
0
1
0.166667
false
0
0.035714
0
0.357143
0.02381
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
729e65cca9b0a6039288577ac59eedc5273e9d20
5,040
py
Python
flow/visualize/plot_custom_callables.py
AHammoudeh/Flow_AH
16c5641be3e9e85511756f75efd002478edaee9b
[ "MIT" ]
null
null
null
flow/visualize/plot_custom_callables.py
AHammoudeh/Flow_AH
16c5641be3e9e85511756f75efd002478edaee9b
[ "MIT" ]
null
null
null
flow/visualize/plot_custom_callables.py
AHammoudeh/Flow_AH
16c5641be3e9e85511756f75efd002478edaee9b
[ "MIT" ]
null
null
null
"""Generate charts from with .npy files containing custom callables through replay.""" import argparse from datetime import datetime import errno import numpy as np import matplotlib.pyplot as plt import os import pytz import sys def make_bar_plot(vals, title): print(len(vals)) fig = plt.figure() plt.hist...
36.788321
107
0.624405
672
5,040
4.477679
0.331845
0.029246
0.021602
0.041542
0.12097
0.087072
0.087072
0.069126
0.046527
0
0
0.013081
0.256746
5,040
136
108
37.058824
0.790176
0.040079
0
0.075472
1
0
0.090304
0
0
0
0
0
0
1
0.028302
false
0
0.075472
0
0.132075
0.037736
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
72a50676744b1429bd199408d3b9fb6111481c1b
322
py
Python
desktop/core/ext-py/PyYAML-3.12/tests/lib3/test_all.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/PyYAML-3.12/tests/lib3/test_all.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/PyYAML-3.12/tests/lib3/test_all.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
import sys, yaml, test_appliance def main(args=None): collections = [] import test_yaml collections.append(test_yaml) if yaml.__with_libyaml__: import test_yaml_ext collections.append(test_yaml_ext) return test_appliance.run(collections, args) if __name__ == '__main__': main()...
20.125
48
0.698758
40
322
5.1
0.45
0.156863
0.137255
0.245098
0
0
0
0
0
0
0
0
0.214286
322
15
49
21.466667
0.806324
0
0
0
0
0
0.025
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.454545
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
72b29fc480b17250901de0de9a0fdd2643e31525
369
py
Python
auth0_client/menu/datafiles/scripts/get_active_user_count.py
rubelw/auth0_client
51e68239babcf7c40e40491d1aaa3f8547a67f63
[ "MIT" ]
2
2020-10-08T21:42:56.000Z
2021-03-21T08:17:52.000Z
auth0_client/menu/datafiles/scripts/get_active_user_count.py
rubelw/auth0_client
51e68239babcf7c40e40491d1aaa3f8547a67f63
[ "MIT" ]
null
null
null
auth0_client/menu/datafiles/scripts/get_active_user_count.py
rubelw/auth0_client
51e68239babcf7c40e40491d1aaa3f8547a67f63
[ "MIT" ]
null
null
null
#!/usr/bin/env python import json from auth0_client.Auth0Client import Auth0Client from auth0_client.menu.menu_helper.common import * from auth0_client.menu.menu_helper.pretty import * try: users = {} client = Auth0Client(auth_config()) results = client.active_users() print(pretty(results)) except...
19.421053
50
0.742547
46
369
5.804348
0.565217
0.101124
0.168539
0.142322
0.217228
0.217228
0
0
0
0
0
0.019231
0.154472
369
18
51
20.5
0.836538
0.054201
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0.090909
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
72b41799b9ea2ac1e3eee3e55900103983d55cfc
852
py
Python
encryptfinance/transactions/admin.py
dark-codr/encryptfinance
573a8179c3a7c4b0f68d71bc9d461246f6fdba29
[ "Apache-2.0" ]
null
null
null
encryptfinance/transactions/admin.py
dark-codr/encryptfinance
573a8179c3a7c4b0f68d71bc9d461246f6fdba29
[ "Apache-2.0" ]
1
2022-03-31T03:16:16.000Z
2022-03-31T03:16:16.000Z
encryptfinance/transactions/admin.py
dark-codr/encryptfinance
573a8179c3a7c4b0f68d71bc9d461246f6fdba29
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from django.contrib import admin from .models import Deposit, Withdrawal, Support from .forms import DepositForm, WithdrawalForm # Register your models here. @admin.register(Deposit) class DepositAdmin(admin.ModelAdmin): # form = DepositForm list_display = ["__str__", "...
28.4
89
0.706573
88
852
6.613636
0.420455
0.075601
0.065292
0.068729
0.178694
0.178694
0.178694
0.178694
0
0
0
0
0.16784
852
29
90
29.37931
0.820874
0.052817
0
0.2
0
0
0.190299
0
0
0
0
0
0
1
0
false
0
0.2
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
72bbe0388e18a5be8321d3239864b86aeb1e09f0
16,783
py
Python
Experiment/ltpFR3_MTurk/ListGen/ltpFR3_listgen.py
jpazdera/PazdKaha22
9b3157cbcc68aafc829dbd38f3271f884caf541d
[ "CC-BY-4.0" ]
null
null
null
Experiment/ltpFR3_MTurk/ListGen/ltpFR3_listgen.py
jpazdera/PazdKaha22
9b3157cbcc68aafc829dbd38f3271f884caf541d
[ "CC-BY-4.0" ]
null
null
null
Experiment/ltpFR3_MTurk/ListGen/ltpFR3_listgen.py
jpazdera/PazdKaha22
9b3157cbcc68aafc829dbd38f3271f884caf541d
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python2 import random import itertools import numpy import sys import json import copy def make_bins_ltpFR3(semArray): """ Creates four equal-width bins of WAS scores, identical to those used in ltpFR2. Then combine the middle two to give three bins: low similarity, medium similarity, and h...
42.923274
121
0.599476
2,248
16,783
4.372331
0.185943
0.008648
0.005494
0.008953
0.243565
0.196358
0.177943
0.177943
0.166141
0.166141
0
0.019654
0.32092
16,783
390
122
43.033333
0.842766
0.268903
0
0.104478
0
0
0.03845
0.01489
0
0
0
0
0
0
null
null
0
0.034826
null
null
0.034826
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
72bd4a8996d5c4753f1f31aee9a880c97885b93a
254
py
Python
examples/single_message.py
Inrixia/pyais
b50fd4d75c687d71b3c70ee939ac9112cfec991e
[ "MIT" ]
51
2019-10-07T11:26:56.000Z
2022-03-16T10:45:15.000Z
examples/single_message.py
KingKongOne/pyais
ddee5cc4eb8f01f494c82f7b14bdd55aa393af47
[ "MIT" ]
57
2019-10-14T07:50:00.000Z
2022-03-28T06:52:27.000Z
examples/single_message.py
KingKongOne/pyais
ddee5cc4eb8f01f494c82f7b14bdd55aa393af47
[ "MIT" ]
31
2019-10-13T17:17:56.000Z
2022-03-26T16:46:54.000Z
from pyais.messages import NMEAMessage message = NMEAMessage(b"!AIVDM,1,1,,B,15M67FC000G?ufbE`FepT@3n00Sa,0*5C") print(message.decode()) # or message = NMEAMessage.from_string("!AIVDM,1,1,,B,15M67FC000G?ufbE`FepT@3n00Sa,0*5C") print(message.decode())
25.4
84
0.755906
39
254
4.897436
0.487179
0.188482
0.073298
0.08377
0.565445
0.565445
0.565445
0.565445
0.565445
0.565445
0
0.118143
0.066929
254
9
85
28.222222
0.687764
0.007874
0
0.4
0
0
0.376
0.376
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
72c0ae451f7caa49a39c48148ab8e7fb5585d0b8
800
py
Python
003_joint_probabilities.py
svetlanama/snowball
a41865a866dae124b4a22134f091a7d09bd0896e
[ "MIT" ]
null
null
null
003_joint_probabilities.py
svetlanama/snowball
a41865a866dae124b4a22134f091a7d09bd0896e
[ "MIT" ]
null
null
null
003_joint_probabilities.py
svetlanama/snowball
a41865a866dae124b4a22134f091a7d09bd0896e
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, '..') import numpy import time import ConfigParser import topicmodel def main(): # read configuration file config = ConfigParser.ConfigParser() config.readfp(open('config.ini')) dataDir = config.get('main', 'dataDir') io = topicmodel.io(dataDir) model ...
22.222222
87
0.665
94
800
5.521277
0.542553
0.05395
0
0
0
0
0
0
0
0
0
0.007788
0.1975
800
35
88
22.857143
0.800623
0.06375
0
0
0
0
0.189262
0.127517
0
0
0
0
0
0
null
null
0
0.217391
null
null
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
72c1a420d34dd573dce6d90546ddf3cb21473656
2,660
py
Python
tests/bugs/core_4318_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/core_4318_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/core_4318_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_4318 # title: Regression: Predicates involving PSQL variables/parameters are not pushed inside the aggregation # decription: # tracker_id: CORE-4318 # min_versions: ['3.0'] # versions: 3.0 # qmid: None import pytest from firebird.qa import db_factory, i...
22.931034
112
0.557895
357
2,660
4.008403
0.37535
0.025157
0.014675
0.018868
0.194969
0.171209
0.089448
0.089448
0.037736
0.037736
0
0.052359
0.346617
2,660
115
113
23.130435
0.771001
0.104887
0
0.25
0
0.011905
0.790629
0
0
0
0
0
0.011905
1
0.011905
false
0
0.02381
0
0.035714
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
72c23dc2d109c0b3025a3d48b3833415e7515ab1
1,686
py
Python
GHOST.py
RadicalAjay/Ghost_data
b151b0b92d27c3b8454e28d4f037eafb587d7b23
[ "MIT" ]
1
2020-06-13T11:29:17.000Z
2020-06-13T11:29:17.000Z
GHOST.py
RadicalAjay/Ghost_data
b151b0b92d27c3b8454e28d4f037eafb587d7b23
[ "MIT" ]
null
null
null
GHOST.py
RadicalAjay/Ghost_data
b151b0b92d27c3b8454e28d4f037eafb587d7b23
[ "MIT" ]
null
null
null
#! /usr/bin/python3 # Description: Data_Ghost, concealing data into spaces and tabs making it imperceptable to human eyes. # Author: Ajay Dyavathi # Github: Radical Ajay class Ghost(): def __init__(self, file_name, output_format='txt'): ''' Converts ascii text to spaces and tabs ''' self.file_name...
33.72
102
0.577699
224
1,686
4.205357
0.352679
0.038217
0.055202
0.031847
0.104034
0.048832
0.048832
0
0
0
0
0.012542
0.290629
1,686
49
103
34.408163
0.775084
0.293594
0
0
0
0
0.019948
0
0
0
0
0
0
1
0.217391
false
0
0
0
0.347826
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
72c45f6e75be10ab1eab557e6f4a81a72ff78154
600
py
Python
heroquest/migrations/0002_auto_20160819_1747.py
DeividVM/heroquest
c693d664717a849de645908ae78d62ec2a5837a5
[ "MIT" ]
null
null
null
heroquest/migrations/0002_auto_20160819_1747.py
DeividVM/heroquest
c693d664717a849de645908ae78d62ec2a5837a5
[ "MIT" ]
null
null
null
heroquest/migrations/0002_auto_20160819_1747.py
DeividVM/heroquest
c693d664717a849de645908ae78d62ec2a5837a5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2016-08-19 17:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('heroquest', '0001_initial'), ] operations = [ migrations.RemoveField( ...
24
108
0.596667
61
600
5.704918
0.721311
0.051724
0.086207
0.109195
0
0
0
0
0
0
0
0.046083
0.276667
600
24
109
25
0.75576
0.111667
0
0.235294
1
0
0.130189
0
0
0
0
0
0
1
0
false
0
0.117647
0
0.294118
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
72c4b917975b4d4f647b8a13d6702b4b9e1e961c
1,727
py
Python
dask/array/utils.py
epervago/dask
958732ce6c51ef6af39db4727d948bfa66a0a8d6
[ "BSD-3-Clause" ]
null
null
null
dask/array/utils.py
epervago/dask
958732ce6c51ef6af39db4727d948bfa66a0a8d6
[ "BSD-3-Clause" ]
null
null
null
dask/array/utils.py
epervago/dask
958732ce6c51ef6af39db4727d948bfa66a0a8d6
[ "BSD-3-Clause" ]
null
null
null
from distutils.version import LooseVersion import difflib import os import numpy as np from .core import Array from ..async import get_sync if LooseVersion(np.__version__) >= '1.10.0': allclose = np.allclose else: def allclose(a, b, **kwargs): if kwargs.pop('equal_nan', False): a_nans = np...
24.671429
74
0.568037
242
1,727
3.921488
0.318182
0.012645
0.03372
0.05058
0.067439
0.067439
0.067439
0
0
0
0
0.004255
0.319629
1,727
69
75
25.028986
0.803404
0.043428
0
0.074074
0
0
0.030321
0
0
0
0
0
0.148148
0
null
null
0.018519
0.111111
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
72c98748f08c6f90f0d9a63c5a27d1f4d96b3af8
1,685
py
Python
tests/_site/myauth/models.py
ahmetdaglarbas/e-commerce
ff190244ccd422b4e08d7672f50709edcbb6ebba
[ "BSD-3-Clause" ]
2
2015-12-11T00:19:15.000Z
2021-11-14T19:44:42.000Z
tests/_site/myauth/models.py
ahmetdaglarbas/e-commerce
ff190244ccd422b4e08d7672f50709edcbb6ebba
[ "BSD-3-Clause" ]
null
null
null
tests/_site/myauth/models.py
ahmetdaglarbas/e-commerce
ff190244ccd422b4e08d7672f50709edcbb6ebba
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Code will only work with Django >= 1.5. See tests/config.py import re from django.utils.translation import ugettext_lazy as _ from django.db import models from django.core import validators from django.contrib.auth.models import BaseUserManager from oscar.apps.customer.abstract_models impor...
29.051724
105
0.636795
196
1,685
5.357143
0.540816
0.038095
0.06
0.047619
0.04
0
0
0
0
0
0
0.00638
0.255786
1,685
57
106
29.561404
0.830941
0.109199
0
0
0
0
0.12115
0
0
0
0
0
0
1
0.055556
false
0.111111
0.166667
0
0.444444
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
72cdbe89dce7053232a88a1aed13e52d7045db37
641
py
Python
company/migrations/0021_auto_20161208_1113.py
uktrade/directory-api
45a9024a7ecc2842895201cbb51420ba9e57a168
[ "MIT" ]
2
2017-06-02T09:09:08.000Z
2021-01-18T10:26:53.000Z
company/migrations/0021_auto_20161208_1113.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
629
2016-10-10T09:35:52.000Z
2022-03-25T15:04:04.000Z
company/migrations/0021_auto_20161208_1113.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
5
2017-06-22T10:02:22.000Z
2022-03-14T17:55:21.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.10 on 2016-12-08 11:13 from __future__ import unicode_literals from django.db import migrations from company import helpers def ensure_verification_code(apps, schema_editor): Company = apps.get_model("company", "Company") for company in Company.objects.filte...
23.740741
72
0.711388
75
641
5.84
0.64
0.182648
0.100457
0
0
0
0
0
0
0
0
0.063098
0.184087
641
26
73
24.653846
0.774379
0.106084
0
0
1
0
0.077193
0.040351
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.466667
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
72cf53ccf7f23461f4563c9f0a973dec0115aebc
2,235
py
Python
libhustpass/login.py
naivekun/libhustpass
d8d487e3af996898e4a7b21b924fbf0fc4fbe419
[ "WTFPL" ]
26
2020-02-18T14:30:30.000Z
2021-11-30T02:50:37.000Z
libhustpass/login.py
ingdex/libhustpass
d8d487e3af996898e4a7b21b924fbf0fc4fbe419
[ "WTFPL" ]
3
2020-05-01T20:26:42.000Z
2020-12-30T07:03:10.000Z
libhustpass/login.py
ingdex/libhustpass
d8d487e3af996898e4a7b21b924fbf0fc4fbe419
[ "WTFPL" ]
6
2020-02-18T14:33:39.000Z
2022-01-28T11:09:25.000Z
import libhustpass.sbDes as sbDes import libhustpass.captcha as captcha import requests import re import random def toWideChar(data): data_bytes = bytes(data, encoding="utf-8") ret = [] for i in data_bytes: ret.extend([0, i]) while len(ret) % 8 != 0: ret.append(0) return ret def En...
28.653846
99
0.561521
295
2,235
4.111864
0.355932
0.037098
0.022259
0.029678
0.117065
0
0
0
0
0
0
0.025933
0.292617
2,235
77
100
29.025974
0.741303
0
0
0.057143
0
0
0.104251
0
0
0
0
0
0
1
0.042857
false
0.1
0.071429
0
0.157143
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
72de8b8aee3f4620163c8f97b222277abcb82e15
1,061
py
Python
projects/detr/scripts/dd.py
zzzzzz0407/detectron2
021fc5b1502bbba54e4714735736898803835ab0
[ "Apache-2.0" ]
1
2020-07-03T07:17:17.000Z
2020-07-03T07:17:17.000Z
projects/detr/scripts/dd.py
zzzzzz0407/detectron2
021fc5b1502bbba54e4714735736898803835ab0
[ "Apache-2.0" ]
null
null
null
projects/detr/scripts/dd.py
zzzzzz0407/detectron2
021fc5b1502bbba54e4714735736898803835ab0
[ "Apache-2.0" ]
null
null
null
import json if __name__ == '__main__': jsonFile = '/data00/home/zhangrufeng1/projects/detectron2/projects/detr/datasets/mot/mot17/annotations/mot17_train_half.json' with open(jsonFile, 'r') as f: infos = json.load(f) count_dict = dict() for info in infos["images"]: if info["file_name"]...
33.15625
130
0.609802
156
1,061
3.923077
0.403846
0.088235
0.065359
0.04902
0.160131
0.160131
0.094771
0.094771
0
0
0
0.046569
0.230914
1,061
31
131
34.225806
0.703431
0
0
0
0
0.041667
0.253534
0.133836
0
0
0
0
0
0
null
null
0
0.041667
null
null
0.125
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
72e1010bc4f2ebd173a6efd489e56ee4ea6793c8
1,228
py
Python
problems/p009.py
davisschenk/project-euler-python
1375412e6c8199ab02250bd67223c758d4df1725
[ "MIT" ]
null
null
null
problems/p009.py
davisschenk/project-euler-python
1375412e6c8199ab02250bd67223c758d4df1725
[ "MIT" ]
null
null
null
problems/p009.py
davisschenk/project-euler-python
1375412e6c8199ab02250bd67223c758d4df1725
[ "MIT" ]
2
2020-10-08T23:35:03.000Z
2020-10-09T00:28:36.000Z
from math import ceil, sqrt from problem import Problem from utils.math import gcd class PythagoreanTriplet(Problem, name="Special Pythagorean triplet", expected=31875000): @Problem.solution() def brute_force(self, ts=1000): for a in range(3, round((ts - 3) / 2)): for b in range(a + 1, ro...
29.238095
89
0.35342
157
1,228
2.757962
0.299363
0.023095
0.083141
0.04157
0.023095
0
0
0
0
0
0
0.075044
0.533388
1,228
41
90
29.95122
0.680628
0
0
0.121212
0
0
0.021987
0
0
0
0
0
0
1
0.060606
false
0
0.090909
0
0.242424
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
72ea2c27713d0d21a3c0d65d78528e65b46ecc6c
61,742
py
Python
baseCli.py
eym55/mango-client-python
2cb1ce77d785343c24ecba913eaa9693c3db1181
[ "MIT" ]
null
null
null
baseCli.py
eym55/mango-client-python
2cb1ce77d785343c24ecba913eaa9693c3db1181
[ "MIT" ]
null
null
null
baseCli.py
eym55/mango-client-python
2cb1ce77d785343c24ecba913eaa9693c3db1181
[ "MIT" ]
null
null
null
import abc import datetime import enum import logging import time import typing import aysncio import Layout as layouts from decimal import Decimal from pyserum.market import Market from pyserum.open_orders_account import OpenOrdersAccount from solana.account import Account from solana.publickey import PublicKey from...
45.498895
1,008
0.678064
7,149
61,742
5.620506
0.068961
0.018666
0.008735
0.009407
0.457878
0.378935
0.318758
0.283418
0.243623
0.223439
0
0.00993
0.223624
61,742
1,357
1,009
45.498895
0.827016
0.020942
0
0.323689
0
0.005425
0.134013
0.033164
0
0
0
0.000737
0.000904
1
0.120253
false
0
0.022604
0.047016
0.299277
0.007233
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
72ea8bc7ed52d0a04a2d089038bfcf2f1a671d9a
373
py
Python
agendamentos/migrations/0011_alter_agendamentosfuncionarios_table.py
afnmachado/univesp_pi_1
e6f2b545faaf53d14d17f751d2fb32e6618885b7
[ "MIT" ]
null
null
null
agendamentos/migrations/0011_alter_agendamentosfuncionarios_table.py
afnmachado/univesp_pi_1
e6f2b545faaf53d14d17f751d2fb32e6618885b7
[ "MIT" ]
null
null
null
agendamentos/migrations/0011_alter_agendamentosfuncionarios_table.py
afnmachado/univesp_pi_1
e6f2b545faaf53d14d17f751d2fb32e6618885b7
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-29 05:47 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('agendamentos', '0010_agendamentosfuncionarios'), ] operations = [ migrations.AlterModelTable( name='agendamentosfuncionarios', ...
20.722222
58
0.640751
33
373
7.181818
0.848485
0
0
0
0
0
0
0
0
0
0
0.068841
0.260054
373
17
59
21.941176
0.789855
0.120643
0
0
1
0
0.269939
0.233129
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
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
72ee1cbe6083bf017bca4e5b6925555840bc1de4
1,288
py
Python
openstack/tests/unit/metric/v1/test_capabilities.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "Apache-2.0" ]
43
2018-12-19T08:39:15.000Z
2021-07-21T02:45:43.000Z
openstack/tests/unit/metric/v1/test_capabilities.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "Apache-2.0" ]
11
2019-03-17T13:28:56.000Z
2020-09-23T23:57:50.000Z
openstack/tests/unit/metric/v1/test_capabilities.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "Apache-2.0" ]
47
2018-12-19T05:14:25.000Z
2022-03-19T15:28:30.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
34.810811
75
0.714286
166
1,288
5.463855
0.572289
0.066152
0.079383
0.101433
0
0
0
0
0
0
0
0.004812
0.193323
1,288
36
76
35.777778
0.868142
0.401398
0
0
0
0
0.088274
0
0
0
0
0
0.421053
1
0.105263
false
0
0.105263
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
72ef3701a3a8ef52c1a792f4ce8c00616bb47526
351
py
Python
scripts/get-table-schemas.py
numankh/GRE-Vocab-Helper
c2858f3200f6d6673b1f316879e5ac482a6b7a83
[ "MIT" ]
null
null
null
scripts/get-table-schemas.py
numankh/GRE-Vocab-Helper
c2858f3200f6d6673b1f316879e5ac482a6b7a83
[ "MIT" ]
null
null
null
scripts/get-table-schemas.py
numankh/GRE-Vocab-Helper
c2858f3200f6d6673b1f316879e5ac482a6b7a83
[ "MIT" ]
null
null
null
import psycopg2 from decouple import config import pandas as pd import dbconnect cursor, connection = dbconnect.connect_to_db() sql = """ SELECT "table_name","column_name", "data_type", "table_schema" FROM INFORMATION_SCHEMA.COLUMNS WHERE "table_schema" = 'public' ORDER BY table_name """ df = pd.read_sql(sql, con=co...
25.071429
62
0.77208
51
351
5.098039
0.647059
0.069231
0
0
0
0
0
0
0
0
0
0.003215
0.11396
351
14
63
25.071429
0.832797
0
0
0
0
0
0.426136
0.150568
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
72ef4fcc94a467e2eb56273b32fbc169f181effc
7,880
py
Python
tests/test_table/test_pivot.py
andriyor/agate
9b12d4bcc75bf3788e0774e23188f4409c3e7519
[ "MIT" ]
663
2016-02-16T13:43:00.000Z
2022-03-13T17:21:19.000Z
tests/test_table/test_pivot.py
andriyor/agate
9b12d4bcc75bf3788e0774e23188f4409c3e7519
[ "MIT" ]
347
2015-08-28T13:46:37.000Z
2016-02-16T01:53:06.000Z
tests/test_table/test_pivot.py
andriyor/agate
9b12d4bcc75bf3788e0774e23188f4409c3e7519
[ "MIT" ]
122
2016-02-23T02:43:24.000Z
2022-03-04T17:21:14.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- import sys try: from cdecimal import Decimal except ImportError: # pragma: no cover from decimal import Decimal from agate import Table from agate.aggregations import Sum from agate.computations import Percent from agate.data_types import Number, Text from agate....
33.248945
110
0.583629
881
7,880
5.034052
0.112372
0.124014
0.047351
0.052762
0.747689
0.695603
0.683878
0.647802
0.636302
0.624803
0
0.017583
0.263832
7,880
236
111
33.389831
0.74694
0.00736
0
0.356322
0
0
0.096048
0
0
0
0
0
0.235632
1
0.08046
false
0
0.051724
0
0.137931
0.017241
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
72f29f7ed6f48568758a4eb5e3565edf5506bbba
1,332
py
Python
test_impartial.py
georg-wolflein/impartial
a53819cefcb74a57e3c1148a6b8fa88aed9264d4
[ "Apache-2.0" ]
null
null
null
test_impartial.py
georg-wolflein/impartial
a53819cefcb74a57e3c1148a6b8fa88aed9264d4
[ "Apache-2.0" ]
null
null
null
test_impartial.py
georg-wolflein/impartial
a53819cefcb74a57e3c1148a6b8fa88aed9264d4
[ "Apache-2.0" ]
null
null
null
from functools import partial from impartial import impartial def f(x: int, y: int, z: int = 0) -> int: return x + 2*y + z def test_simple_call_args(): assert impartial(f, 1)(2) == f(1, 2) def test_simple_call_kwargs(): assert impartial(f, y=2)(x=1) == f(1, 2) def test_simple_call_empty(): asse...
20.492308
65
0.61036
240
1,332
3.2625
0.15
0.03576
0.034483
0.15198
0.490421
0.413793
0.378033
0.237548
0.237548
0.153257
0
0.054966
0.221471
1,332
64
66
20.8125
0.700096
0
0
0.153846
0
0
0
0
0
0
0
0
0.384615
1
0.333333
false
0
0.051282
0.051282
0.435897
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
72f43506a3e179e12b61e504fc43770a91f14bf0
5,076
py
Python
manager.py
smilechaser/screeps-script-caddy
11b6e809675dfd0a5a4ff917a492adc4a5a08bca
[ "MIT" ]
2
2016-02-23T09:50:15.000Z
2016-02-28T22:08:03.000Z
manager.py
smilechaser/screeps-script-caddy
11b6e809675dfd0a5a4ff917a492adc4a5a08bca
[ "MIT" ]
null
null
null
manager.py
smilechaser/screeps-script-caddy
11b6e809675dfd0a5a4ff917a492adc4a5a08bca
[ "MIT" ]
null
null
null
''' Python script for uploading/downloading scripts for use with the game Screeps. http://support.screeps.com/hc/en-us/articles/203022612-Commiting-scripts-using-direct-API-access Usage: # # general help/usage # python3 manager.py --help # # retrieve all scripts from the game and store them...
22.460177
96
0.597715
602
5,076
4.906977
0.299003
0.040623
0.034529
0.028436
0.104942
0.05281
0.033175
0.033175
0.033175
0.033175
0
0.00441
0.285264
5,076
225
97
22.56
0.809813
0.149921
0
0.081818
0
0
0.156243
0
0
0
0
0
0
1
0.072727
false
0.136364
0.054545
0.009091
0.163636
0.072727
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
72f4405126d83aa638993123007b34b00b84222c
289
py
Python
contact.py
Nemfeto/python_training
4d04f07700da4b0d5b50736ba197ad85fd2ee549
[ "Apache-2.0" ]
null
null
null
contact.py
Nemfeto/python_training
4d04f07700da4b0d5b50736ba197ad85fd2ee549
[ "Apache-2.0" ]
null
null
null
contact.py
Nemfeto/python_training
4d04f07700da4b0d5b50736ba197ad85fd2ee549
[ "Apache-2.0" ]
null
null
null
class Contact: def __init__(self, first_name, last_name, nickname, address, mobile, email): self.first_name = first_name self.last_name = last_name self.nickname = nickname self.address = address self.mobile = mobile self.email = email
28.9
80
0.643599
35
289
5.028571
0.342857
0.153409
0.147727
0
0
0
0
0
0
0
0
0
0.280277
289
9
81
32.111111
0.846154
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
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
72f452ac4f4dcb2cc71e6a4cb7d5b81c957513cc
1,158
py
Python
integreat_cms/cms/views/dashboard/admin_dashboard_view.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
21
2018-10-26T20:10:45.000Z
2020-10-22T09:41:46.000Z
integreat_cms/cms/views/dashboard/admin_dashboard_view.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
392
2018-10-25T08:34:07.000Z
2020-11-19T08:20:30.000Z
integreat_cms/cms/views/dashboard/admin_dashboard_view.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
23
2019-03-06T17:11:35.000Z
2020-10-16T04:36:41.000Z
import logging from django.views.generic import TemplateView from ...models import Feedback from ..chat.chat_context_mixin import ChatContextMixin logger = logging.getLogger(__name__) class AdminDashboardView(TemplateView, ChatContextMixin): """ View for the admin dashboard """ #: The template to ...
31.297297
101
0.686528
130
1,158
5.953846
0.5
0.056848
0.093023
0.085271
0.136951
0.077519
0
0
0
0
0
0.001089
0.207254
1,158
36
102
32.166667
0.842048
0.391192
0
0
0
0
0.1216
0.048
0
0
0
0
0
1
0.066667
false
0
0.266667
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
72f81be16085865d9021b61f8214e479cfae5efb
4,719
py
Python
cdp/headless_experimental.py
HyperionGray/python-chrome-devtools-protocol
5463a5f3d20100255c932961b944e4b37dbb7e61
[ "MIT" ]
42
2019-10-07T17:50:00.000Z
2022-03-28T17:56:27.000Z
cdp/headless_experimental.py
HyperionGray/python-chrome-devtools-protocol
5463a5f3d20100255c932961b944e4b37dbb7e61
[ "MIT" ]
23
2019-06-09T19:56:25.000Z
2022-03-02T01:53:13.000Z
cdp/headless_experimental.py
HyperionGray/python-chrome-devtools-protocol
5463a5f3d20100255c932961b944e4b37dbb7e61
[ "MIT" ]
15
2019-11-25T10:20:32.000Z
2022-03-01T21:14:56.000Z
# DO NOT EDIT THIS FILE! # # This file is generated from the CDP specification. If you need to make # changes, edit the generator and regenerate all of the modules. # # CDP domain: HeadlessExperimental (experimental) from __future__ import annotations from cdp.util import event_class, T_JSON_DICT from dataclasses impo...
40.333333
300
0.700148
617
4,719
5.23987
0.333874
0.023198
0.041757
0.024126
0.131457
0.111661
0.111661
0.09867
0.088463
0.042066
0
0.004315
0.21424
4,719
116
301
40.681034
0.867584
0.453062
0
0.184615
1
0
0.119658
0.05291
0
0
0
0
0
1
0.092308
false
0
0.076923
0.030769
0.307692
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
72f84712a4005f1ecc74d20ce01f90b1d0a8a90c
237
py
Python
tests/test_geometry.py
resurtm/wvflib
106f426cc2c63c8d21f3e0ec1b90b06450dfc547
[ "MIT" ]
1
2020-08-14T20:59:54.000Z
2020-08-14T20:59:54.000Z
tests/test_geometry.py
resurtm/wvflib
106f426cc2c63c8d21f3e0ec1b90b06450dfc547
[ "MIT" ]
3
2020-03-31T11:16:01.000Z
2022-03-01T01:40:38.000Z
tests/test_geometry.py
resurtm/wvflib
106f426cc2c63c8d21f3e0ec1b90b06450dfc547
[ "MIT" ]
3
2020-01-24T11:10:46.000Z
2020-03-31T11:24:34.000Z
import unittest from wvflib.geometry import Face class TestGeometry(unittest.TestCase): def test_constructor(self): f = Face() self.assertTrue(len(f.vertices) == 0) if __name__ == '__main__': unittest.main()
16.928571
45
0.675105
28
237
5.392857
0.75
0
0
0
0
0
0
0
0
0
0
0.005348
0.21097
237
13
46
18.230769
0.802139
0
0
0
0
0
0.033755
0
0
0
0
0
0.125
1
0.125
false
0
0.25
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
72fb29b0b3b127d1a4779c19adfdd5ba81413ede
2,057
py
Python
stix2/__init__.py
khdesai/cti-python-stix2
20a9bb316c43b7d9faaab686db8d51e5c89416da
[ "BSD-3-Clause" ]
null
null
null
stix2/__init__.py
khdesai/cti-python-stix2
20a9bb316c43b7d9faaab686db8d51e5c89416da
[ "BSD-3-Clause" ]
null
null
null
stix2/__init__.py
khdesai/cti-python-stix2
20a9bb316c43b7d9faaab686db8d51e5c89416da
[ "BSD-3-Clause" ]
null
null
null
"""Python APIs for STIX 2. .. autosummary:: :toctree: api confidence datastore environment equivalence exceptions markings parsing pattern_visitor patterns properties serialization utils v20 v21 versioning workbench """ # flake8: noqa DEFAULT_VERSION = '2.1' # De...
31.646154
85
0.808459
169
2,057
9.721893
0.615385
0.039562
0.014607
0.018259
0.046257
0.046257
0.046257
0.046257
0.046257
0.046257
0
0.007928
0.141468
2,057
64
86
32.140625
0.922424
0.191055
0
0
0
0
0.001814
0
0
0
0
0
0
1
0
false
0
0.361111
0
0.361111
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
72fd07154cf4859fb20d5f7aa637f41a882f2a27
584
py
Python
UMSLHackRestAPI/api/urls.py
trujivan/climate-impact-changes
609b8197b0ede1c1fdac3aa82b34e73e6f4526e3
[ "MIT" ]
1
2020-03-29T17:52:26.000Z
2020-03-29T17:52:26.000Z
UMSLHackRestAPI/api/urls.py
trujivan/climate-impact-changes
609b8197b0ede1c1fdac3aa82b34e73e6f4526e3
[ "MIT" ]
6
2021-03-19T00:01:21.000Z
2021-09-22T18:37:17.000Z
UMSLHackRestAPI/api/urls.py
trujivan/climate-impact-changes
609b8197b0ede1c1fdac3aa82b34e73e6f4526e3
[ "MIT" ]
null
null
null
from django.urls import path, include from .views import main_view, PredictionView #router = routers.DefaultRouter(trailing_slash=False) #router.register('years', YearView, basename='years') #router.register('predict', PredictionView, basename='predict') urlpatterns = [ #path('api/', get_dummy_data), #path('...
36.5
69
0.714041
73
584
5.561644
0.493151
0.059113
0
0
0
0
0
0
0
0
0
0.001927
0.111301
584
16
70
36.5
0.780347
0.585616
0
0
0
0
0.105932
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f4030f6d52f16b8e41c89e74609c247cf9d493ab
864
py
Python
cattr/__init__.py
bluetech/cattrs
be438d5566bd308b584359a9b0011a7bd0006b06
[ "MIT" ]
1
2021-07-07T12:24:58.000Z
2021-07-07T12:24:58.000Z
cattr/__init__.py
bluetech/cattrs
be438d5566bd308b584359a9b0011a7bd0006b06
[ "MIT" ]
null
null
null
cattr/__init__.py
bluetech/cattrs
be438d5566bd308b584359a9b0011a7bd0006b06
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .converters import Converter, UnstructureStrategy __all__ = ('global_converter', 'unstructure', 'structure', 'structure_attrs_fromtuple', 'structure_attrs_fromdict', 'UnstructureStrategy') __author__ = 'Tin Tvrtković' __email__ = 'tinchester@gmail.com' global_conve...
37.565217
76
0.834491
90
864
7.411111
0.277778
0.224888
0.125937
0.104948
0.38081
0.134933
0
0
0
0
0
0.001282
0.097222
864
22
77
39.272727
0.853846
0.024306
0
0
0
0
0.162901
0.058264
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f404724df75288d1e7ccb8f451caae2678af6f55
534
py
Python
1. Algorithmic Toolbox/week2_algorithmic_warmup/4_lcm.py
vishweshwartyagi/Data-Structures-and-Algorithms-UCSD
de942b3a0eb2bf56f949f47c297fad713aa81489
[ "MIT" ]
null
null
null
1. Algorithmic Toolbox/week2_algorithmic_warmup/4_lcm.py
vishweshwartyagi/Data-Structures-and-Algorithms-UCSD
de942b3a0eb2bf56f949f47c297fad713aa81489
[ "MIT" ]
null
null
null
1. Algorithmic Toolbox/week2_algorithmic_warmup/4_lcm.py
vishweshwartyagi/Data-Structures-and-Algorithms-UCSD
de942b3a0eb2bf56f949f47c297fad713aa81489
[ "MIT" ]
null
null
null
# Uses python3 import sys def lcm_naive(a, b): for l in range(1, a*b + 1): if l % a == 0 and l % b == 0: return l return a*b def gcd(a, b): if a%b == 0: return b elif b%a == 0: return a if a > b: return gcd(a%b, b) else: return gcd(b%...
14.833333
37
0.456929
93
534
2.516129
0.322581
0.111111
0.064103
0.08547
0
0
0
0
0
0
0
0.021148
0.38015
534
35
38
15.257143
0.685801
0.11236
0
0
0
0
0.017058
0
0
0
0
0
0
1
0.15
false
0
0.05
0.05
0.55
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f40992ff6f047f5e4c5a436cd251bdd645155f4b
424
py
Python
sample_project/sample_content/serializers.py
zentrumnawi/solid-backend
0a6ac51608d4c713903856bb9b0cbf0068aa472c
[ "MIT" ]
1
2021-01-24T11:54:01.000Z
2021-01-24T11:54:01.000Z
sample_project/sample_content/serializers.py
zentrumnawi/solid-backend
0a6ac51608d4c713903856bb9b0cbf0068aa472c
[ "MIT" ]
112
2020-04-22T10:07:03.000Z
2022-03-29T15:25:26.000Z
sample_project/sample_content/serializers.py
zentrumnawi/solid-backend
0a6ac51608d4c713903856bb9b0cbf0068aa472c
[ "MIT" ]
null
null
null
from rest_framework import serializers from solid_backend.photograph.serializers import PhotographSerializer from solid_backend.media_object.serializers import MediaObjectSerializer from .models import SampleProfile class SampleProfileSerializer(serializers.ModelSerializer): media_objects = MediaObjectSerializer...
28.266667
72
0.794811
41
424
8
0.634146
0.054878
0.097561
0
0
0
0
0
0
0
0
0.002809
0.160377
424
14
73
30.285714
0.918539
0
0
0
0
0
0.016509
0
0
0
0
0
0
1
0
false
0
0.4
0
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f40b92b97d4fadcb832680913b2744036577bcf3
782
py
Python
tests/reshape_4/generate_pb.py
wchsieh/utensor_cgen
1774f0dfc0eb98b274271e7a67457dc3593b2593
[ "Apache-2.0" ]
null
null
null
tests/reshape_4/generate_pb.py
wchsieh/utensor_cgen
1774f0dfc0eb98b274271e7a67457dc3593b2593
[ "Apache-2.0" ]
null
null
null
tests/reshape_4/generate_pb.py
wchsieh/utensor_cgen
1774f0dfc0eb98b274271e7a67457dc3593b2593
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- import os from utensor_cgen.utils import save_consts, save_graph, save_idx import numpy as np import tensorflow as tf def generate(): test_dir = os.path.dirname(__file__) graph = tf.Graph() with graph.as_default(): x = tf.constant(np.random.randn(10), dtype=tf.floa...
28.962963
64
0.673913
122
782
4.016393
0.47541
0.057143
0.04898
0
0
0
0
0
0
0
0
0.016077
0.204604
782
26
65
30.076923
0.771704
0.159847
0
0
1
0
0.06585
0
0
0
0
0
0
1
0.052632
false
0
0.210526
0
0.263158
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
f40f0e5d0f6c305a62e87232ab24691dc4b36cbe
4,053
py
Python
DEMs/denmark/download_dk_dem.py
PeterFogh/digital_elevation_model_use_cases
0e72cc6238ca5217a73d06dc3e8c3229024112c3
[ "MIT" ]
null
null
null
DEMs/denmark/download_dk_dem.py
PeterFogh/digital_elevation_model_use_cases
0e72cc6238ca5217a73d06dc3e8c3229024112c3
[ "MIT" ]
null
null
null
DEMs/denmark/download_dk_dem.py
PeterFogh/digital_elevation_model_use_cases
0e72cc6238ca5217a73d06dc3e8c3229024112c3
[ "MIT" ]
null
null
null
""" Fetch all files from Kortforsyningen FTP server folder. Copyright (c) 2021 Peter Fogh See also command line alternative in `download_dk_dem.sh` """ from ftplib import FTP, error_perm import os from pathlib import Path import time import operator import functools import shutil # TODO: use logging to std instead of...
32.166667
117
0.66642
540
4,053
4.818519
0.314815
0.036895
0.040354
0.034589
0.355496
0.355496
0.297079
0.283244
0.261722
0.219831
0
0.013162
0.231434
4,053
125
118
32.424
0.822151
0.400691
0
0
0
0
0.215134
0.041355
0
0
0
0.016
0
1
0.052632
false
0.017544
0.140351
0
0.263158
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
f4166388f315b81cfe6df485234fcfe561b8ac22
251
py
Python
src/ychaos/utils/types.py
vanderh0ff/ychaos
5148c889912b744ee73907e4dd30c9ddb851aeb3
[ "Apache-2.0" ]
8
2021-07-21T15:37:48.000Z
2022-03-03T14:43:09.000Z
src/ychaos/utils/types.py
vanderh0ff/ychaos
5148c889912b744ee73907e4dd30c9ddb851aeb3
[ "Apache-2.0" ]
102
2021-07-20T16:08:29.000Z
2022-03-25T07:28:37.000Z
src/ychaos/utils/types.py
vanderh0ff/ychaos
5148c889912b744ee73907e4dd30c9ddb851aeb3
[ "Apache-2.0" ]
8
2021-07-20T13:37:46.000Z
2022-02-18T01:44:52.000Z
from typing import Dict, List, TypeVar, Union JsonTypeVar = TypeVar("JsonTypeVar") JsonPrimitive = Union[str, float, int, bool, None] JsonDict = Dict[str, JsonTypeVar] JsonArray = List[JsonTypeVar] Json = Union[JsonPrimitive, JsonDict, JsonArray]
22.818182
50
0.760956
29
251
6.586207
0.586207
0
0
0
0
0
0
0
0
0
0
0
0.131474
251
10
51
25.1
0.876147
0
0
0
0
0
0.043825
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f41a1ce9bbfb9a3f65c33e9986100ab487ba7015
537
py
Python
app/hint/models.py
vigov5/oshougatsu2015
38cbf325675ee2c08a6965b8689fad8308eb84eb
[ "MIT" ]
null
null
null
app/hint/models.py
vigov5/oshougatsu2015
38cbf325675ee2c08a6965b8689fad8308eb84eb
[ "MIT" ]
null
null
null
app/hint/models.py
vigov5/oshougatsu2015
38cbf325675ee2c08a6965b8689fad8308eb84eb
[ "MIT" ]
null
null
null
import os import datetime from app import app, db class Hint(db.Model): __tablename__ = 'hints' id = db.Column(db.Integer, primary_key=True) description = db.Column(db.Text) is_open = db.Column(db.Boolean) problem_id = db.Column(db.Integer, db.ForeignKey('problems.id')) def __repr__(self): ...
26.85
68
0.666667
72
537
4.722222
0.458333
0.094118
0.117647
0.070588
0.111765
0
0
0
0
0
0
0
0.210428
537
20
69
26.85
0.801887
0
0
0
0
0
0.046468
0
0
0
0
0
0
1
0.133333
false
0
0.2
0.066667
0.8
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
f420912bbaeaef68549b8a153f2087a527d8302c
475
py
Python
example/example/urls.py
pmaccamp/django-tastypie-swagger
d51ef3ea8e33791617edba8ed55a1be1f16e4ccc
[ "Apache-2.0" ]
2
2020-04-13T13:26:42.000Z
2021-10-30T17:56:15.000Z
example/example/urls.py
pmaccamp/django-tastypie-swagger
d51ef3ea8e33791617edba8ed55a1be1f16e4ccc
[ "Apache-2.0" ]
null
null
null
example/example/urls.py
pmaccamp/django-tastypie-swagger
d51ef3ea8e33791617edba8ed55a1be1f16e4ccc
[ "Apache-2.0" ]
5
2020-04-15T07:05:13.000Z
2021-11-01T20:36:10.000Z
from django.conf.urls import include, url from django.contrib import admin from demo.apis import api urlpatterns = [ url(r'^api/', include(api.urls)), url(r'^api/doc/', include(('tastypie_swagger.urls', 'tastypie_swagger'), namespace='demo_api_swagger'), kwargs={ "...
29.6875
76
0.6
58
475
4.775862
0.413793
0.043321
0.050542
0.166065
0
0
0
0
0
0
0
0.00554
0.24
475
15
77
31.666667
0.761773
0
0
0
0
0
0.296842
0.044211
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
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
f4217689eb43722ace5f25924ae5b537893153d9
668
py
Python
2.5.9/test_splash/test_splash/spiders/with_splash.py
feel-easy/myspider
dcc65032015d7dbd8bea78f846fd3cac7638c332
[ "Apache-2.0" ]
1
2019-02-28T10:16:00.000Z
2019-02-28T10:16:00.000Z
2.5.9/test_splash/test_splash/spiders/with_splash.py
wasalen/myspider
dcc65032015d7dbd8bea78f846fd3cac7638c332
[ "Apache-2.0" ]
null
null
null
2.5.9/test_splash/test_splash/spiders/with_splash.py
wasalen/myspider
dcc65032015d7dbd8bea78f846fd3cac7638c332
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy from scrapy_splash import SplashRequest # 使用scrapy_splash包提供的request对象 class WithSplashSpider(scrapy.Spider): name = 'with_splash' allowed_domains = ['baidu.com'] start_urls = ['https://www.baidu.com/s?wd=13161933309'] def start_requests(self): yield Splas...
35.157895
70
0.606287
74
668
5.337838
0.689189
0.050633
0
0
0
0
0
0
0
0
0
0.030738
0.269461
668
18
71
37.111111
0.778689
0.116766
0
0
0
0
0.153846
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f423a60c36497f5bf95253c92fffc3d805f3c461
11,128
py
Python
src/genui/models/models.py
Tontolda/genui
c5b7da7c5a99fc16d34878e2170145ac7c8e31c4
[ "0BSD" ]
15
2021-05-31T13:39:17.000Z
2022-03-30T12:04:14.000Z
src/genui/models/models.py
martin-sicho/genui
ea7f1272030a13e8e253a7a9b6479ac6a78552d3
[ "MIT" ]
3
2021-04-08T22:02:22.000Z
2022-03-16T09:10:20.000Z
src/genui/models/models.py
Tontolda/genui
c5b7da7c5a99fc16d34878e2170145ac7c8e31c4
[ "0BSD" ]
5
2021-03-04T11:00:54.000Z
2021-12-18T22:59:22.000Z
import os from django.db import models import uuid # Create your models here. from djcelery_model.models import TaskMixin from polymorphic.models import PolymorphicModel from genui.utils.models import NON_POLYMORPHIC_CASCADE, OverwriteStorage from genui.utils.extensions.tasks.models import TaskShortcutsMixIn, Polymo...
34.030581
190
0.668494
1,164
11,128
6.241409
0.19244
0.022299
0.021198
0.028906
0.412663
0.386373
0.322092
0.279835
0.245974
0.183758
0
0.005754
0.234723
11,128
327
191
34.030581
0.847346
0.048976
0
0.343612
0
0.017621
0.096679
0.025978
0
0
0
0.003058
0
1
0.092511
false
0.008811
0.052863
0.061674
0.599119
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
f42643ddcdfa49204eb89ec1d689fa4a85b4b22e
38,947
py
Python
rpython/jit/backend/llsupport/test/test_rewrite.py
jptomo/pypy-lang-scheme
55edb2cec69d78f86793282a4566fcbc1ef9fcac
[ "MIT" ]
1
2019-11-25T10:52:01.000Z
2019-11-25T10:52:01.000Z
rpython/jit/backend/llsupport/test/test_rewrite.py
jptomo/pypy-lang-scheme
55edb2cec69d78f86793282a4566fcbc1ef9fcac
[ "MIT" ]
null
null
null
rpython/jit/backend/llsupport/test/test_rewrite.py
jptomo/pypy-lang-scheme
55edb2cec69d78f86793282a4566fcbc1ef9fcac
[ "MIT" ]
null
null
null
from rpython.jit.backend.llsupport.descr import get_size_descr,\ get_field_descr, get_array_descr, ArrayDescr, FieldDescr,\ SizeDescr, get_interiorfield_descr from rpython.jit.backend.llsupport.gc import GcLLDescr_boehm,\ GcLLDescr_framework from rpython.jit.backend.llsupport import jitframe from rpython...
36.811909
90
0.518885
4,203
38,947
4.564835
0.091601
0.053685
0.037527
0.039612
0.687324
0.624257
0.557073
0.483425
0.457208
0.410091
0
0.048662
0.371582
38,947
1,057
91
36.846736
0.73524
0.031248
0
0.636364
0
0
0.658979
0.082488
0
0
0
0
0.001045
1
0.064786
false
0.00209
0.011494
0.003135
0.100313
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
f428973b7e9156b1b01843493a65c906c5b5ba52
996
py
Python
judge/migrations/0024_auto_20200705_0246.py
TheAvidDev/pnoj-site
63299e873b1fb654667545222ce2b3157e78acd9
[ "MIT" ]
2
2020-04-02T19:50:03.000Z
2020-08-06T18:30:25.000Z
judge/migrations/0024_auto_20200705_0246.py
TheAvidDev/pnoj-site
63299e873b1fb654667545222ce2b3157e78acd9
[ "MIT" ]
28
2020-03-19T16:29:58.000Z
2021-09-22T18:47:30.000Z
judge/migrations/0024_auto_20200705_0246.py
TheAvidDev/pnoj-site
63299e873b1fb654667545222ce2b3157e78acd9
[ "MIT" ]
2
2020-08-09T06:23:12.000Z
2020-10-13T00:13:25.000Z
# Generated by Django 3.0.8 on 2020-07-05 02:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('judge', '0023_auto_20200704_2318'), ] operations = [ migrations.AlterField( model_name='submission', name='language'...
41.5
278
0.564257
106
996
5.226415
0.528302
0.072202
0.090253
0.104693
0.501805
0.501805
0.501805
0.501805
0.501805
0.501805
0
0.086735
0.212851
996
23
279
43.304348
0.619898
0.045181
0
0.235294
1
0
0.303477
0.024236
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
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
f429e1e71ee50e3cb36b3bd6d0606c845af7b2a3
3,010
py
Python
saleor/product/migrations/0141_update_descritpion_fields.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
15,337
2015-01-12T02:11:52.000Z
2021-10-05T19:19:29.000Z
saleor/product/migrations/0141_update_descritpion_fields.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
7,486
2015-02-11T10:52:13.000Z
2021-10-06T09:37:15.000Z
saleor/product/migrations/0141_update_descritpion_fields.py
aminziadna/saleor
2e78fb5bcf8b83a6278af02551a104cfa555a1fb
[ "CC-BY-4.0" ]
5,864
2015-01-16T14:52:54.000Z
2021-10-05T23:01:15.000Z
# Generated by Django 3.1.5 on 2021-02-17 11:04 from django.db import migrations import saleor.core.db.fields import saleor.core.utils.editorjs def update_empty_description_field(apps, schema_editor): Category = apps.get_model("product", "Category") CategoryTranslation = apps.get_model("product", "CategoryT...
31.354167
78
0.580066
259
3,010
6.610039
0.239382
0.081776
0.049065
0.073598
0.504089
0.504089
0.504089
0.504089
0.504089
0.504089
0
0.015166
0.32093
3,010
95
79
31.684211
0.822407
0.01495
0
0.583333
1
0
0.102599
0.021937
0
0
0
0
0
1
0.011905
false
0
0.035714
0
0.083333
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
f42c731576acb55056eef2a6a2b894f6ff9cf5c6
656
py
Python
torch/_VF.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
60,067
2017-01-18T17:21:31.000Z
2022-03-31T21:37:45.000Z
torch/_VF.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
66,955
2017-01-18T17:21:38.000Z
2022-03-31T23:56:11.000Z
torch/_VF.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
19,210
2017-01-18T17:45:04.000Z
2022-03-31T23:51:56.000Z
""" This makes the functions in torch._C._VariableFunctions available as torch._VF.<funcname> without mypy being able to find them. A subset of those functions are mapped to ATen functions in torch/jit/_builtins.py See https://github.com/pytorch/pytorch/issues/21478 for the reason for introducing torch._VF """ i...
21.866667
70
0.73628
91
656
5.010989
0.593407
0.048246
0.070175
0
0
0
0
0
0
0
0
0.009225
0.17378
656
29
71
22.62069
0.832103
0.471037
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.272727
0.090909
0.727273
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
f42d1600d0b6bc46f53578838228c289c55fcb61
342
py
Python
src/catalog/migrations/0003_remove_productattributevalue_name.py
earth-emoji/dennea
fbabd7d9ecc95898411aba238bbcca8b5e942c31
[ "BSD-3-Clause" ]
null
null
null
src/catalog/migrations/0003_remove_productattributevalue_name.py
earth-emoji/dennea
fbabd7d9ecc95898411aba238bbcca8b5e942c31
[ "BSD-3-Clause" ]
13
2019-12-09T02:38:36.000Z
2022-03-12T00:33:57.000Z
src/catalog/migrations/0003_remove_productattributevalue_name.py
earth-emoji/dennea
fbabd7d9ecc95898411aba238bbcca8b5e942c31
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.2.12 on 2020-06-10 01:11 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('catalog', '0002_auto_20200610_0019'), ] operations = [ migrations.RemoveField( model_name='productattributevalue', name='na...
19
48
0.608187
35
342
5.828571
0.8
0
0
0
0
0
0
0
0
0
0
0.130612
0.283626
342
17
49
20.117647
0.702041
0.134503
0
0
1
0
0.187075
0.14966
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
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
f436146fcd68e0fffec8d89af9ff63a4a2a79aad
7,980
py
Python
src/models/train_search_multi_deep.py
smadha/MlTrio
a7269fc4c6d77b2f71432ab9d2ab8fe4e28234d5
[ "Apache-2.0" ]
null
null
null
src/models/train_search_multi_deep.py
smadha/MlTrio
a7269fc4c6d77b2f71432ab9d2ab8fe4e28234d5
[ "Apache-2.0" ]
null
null
null
src/models/train_search_multi_deep.py
smadha/MlTrio
a7269fc4c6d77b2f71432ab9d2ab8fe4e28234d5
[ "Apache-2.0" ]
null
null
null
''' Uses flattened features in feature directory and run a SVM on it ''' from keras.layers import Dense from keras.models import Sequential import keras.regularizers as Reg from keras.optimizers import SGD, RMSprop from keras.callbacks import EarlyStopping import cPickle as pickle import numpy as np from sklearn.model...
34.847162
213
0.663033
1,197
7,980
4.183793
0.223058
0.025559
0.014377
0.018171
0.276957
0.259784
0.244609
0.209665
0.209665
0.186502
0
0.032058
0.210401
7,980
228
214
35
0.762736
0.097118
0
0.133333
0
0
0.090192
0.02381
0
0
0
0
0
0
null
null
0
0.081481
null
null
0.118519
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
f4418c7fe5090cc1ad72d42e956421d4fcbc0d8c
5,253
py
Python
transformers/tests/tokenization_xlnet_test.py
deepbluesea/transformers
11a2317986aad6e9a72f542e31344cfb7c94cbab
[ "Apache-2.0" ]
270
2020-04-26T17:54:36.000Z
2022-03-24T20:47:11.000Z
transformers/tests/tokenization_xlnet_test.py
deepbluesea/transformers
11a2317986aad6e9a72f542e31344cfb7c94cbab
[ "Apache-2.0" ]
27
2020-06-03T17:34:41.000Z
2022-03-31T01:17:34.000Z
transformers/tests/tokenization_xlnet_test.py
deepbluesea/transformers
11a2317986aad6e9a72f542e31344cfb7c94cbab
[ "Apache-2.0" ]
61
2020-04-25T21:48:11.000Z
2022-03-23T02:39:10.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # 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 ...
49.093458
128
0.61146
682
5,253
4.543988
0.285924
0.17909
0.185866
0.010326
0.426267
0.412391
0.380768
0.349145
0.349145
0.314295
0
0.027561
0.267847
5,253
106
129
49.556604
0.776911
0.119931
0
0.208955
0
0
0.090297
0.007163
0
0
0
0
0.149254
1
0.104478
false
0
0.074627
0.014925
0.238806
0.014925
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
f4430a5ed7a70794aa650554ee2233f1a76e4ce7
1,362
py
Python
Bot/db_aps.py
FaHoLo/Fish_shop
b08018223705bca169dab9f39ec5a55f62822f0b
[ "MIT" ]
null
null
null
Bot/db_aps.py
FaHoLo/Fish_shop
b08018223705bca169dab9f39ec5a55f62822f0b
[ "MIT" ]
null
null
null
Bot/db_aps.py
FaHoLo/Fish_shop
b08018223705bca169dab9f39ec5a55f62822f0b
[ "MIT" ]
null
null
null
import logging import os import redis import moltin_aps _database = None db_logger = logging.getLogger('db_logger') async def get_database_connection(): global _database if _database is None: database_password = os.getenv('DB_PASSWORD') database_host = os.getenv('DB_HOST') databas...
29.608696
99
0.737885
195
1,362
4.866667
0.230769
0.136986
0.088514
0.056902
0.202318
0.202318
0.202318
0.202318
0.202318
0.202318
0
0.001759
0.165198
1,362
45
100
30.266667
0.827617
0
0
0.09375
0
0
0.146109
0
0
0
0
0
0
1
0.09375
false
0.0625
0.125
0
0.28125
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
f4496e9806f5e5781ad656efc22821170a6cd22c
3,702
py
Python
tests/unit/discovery/test_py_spec.py
xavfernandez/virtualenv
dd37c7d2af8a21026f4d4b7f43142e4e1e0faf86
[ "MIT" ]
1
2020-02-25T15:08:59.000Z
2020-02-25T15:08:59.000Z
tests/unit/discovery/test_py_spec.py
xavfernandez/virtualenv
dd37c7d2af8a21026f4d4b7f43142e4e1e0faf86
[ "MIT" ]
null
null
null
tests/unit/discovery/test_py_spec.py
xavfernandez/virtualenv
dd37c7d2af8a21026f4d4b7f43142e4e1e0faf86
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals import itertools import os import sys from copy import copy import pytest from virtualenv.discovery.py_spec import PythonSpec def test_bad_py_spec(): text = "python2.3.4.5" spec = PythonSpec.from_string_spec(text) assert text in repr(spec) as...
31.913793
117
0.679633
541
3,702
4.399261
0.18854
0.094118
0.134454
0.161345
0.620588
0.506303
0.382773
0.287815
0.272269
0.227731
0
0.016521
0.198811
3,702
115
118
32.191304
0.785907
0.009454
0
0.232558
0
0
0.044748
0
0
0
0
0
0.197674
1
0.139535
false
0
0.081395
0
0.244186
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
f450452cbcef41209866e35540c53f785f67820d
1,183
py
Python
Scripts/simulation/careers/detective/detective_crime_scene.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/careers/detective/detective_crime_scene.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/careers/detective/detective_crime_scene.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\careers\detective\detective_crime_scene.py # Compiled at: 2015-02-08 03:00:54 # Size of source mod 2...
42.25
107
0.72612
168
1,183
4.797619
0.547619
0.074442
0.052109
0.066998
0.054591
0
0
0
0
0
0
0.067677
0.163145
1,183
28
108
42.25
0.746465
0.27388
0
0
0
0
0.078546
0
0
0
0
0
0
1
0.235294
false
0
0.117647
0
0.411765
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
f4564217958b77537d1072c7c3fc29f0c202d7e9
3,509
py
Python
pycspr/types/cl.py
momipsl/pycspr
82c1ca003525a3d205d2aa3b7da5d1ecd275e9b5
[ "Apache-2.0" ]
2
2021-04-14T13:49:20.000Z
2021-07-06T22:07:02.000Z
pycspr/types/cl.py
momipsl/pycspr
82c1ca003525a3d205d2aa3b7da5d1ecd275e9b5
[ "Apache-2.0" ]
null
null
null
pycspr/types/cl.py
momipsl/pycspr
82c1ca003525a3d205d2aa3b7da5d1ecd275e9b5
[ "Apache-2.0" ]
1
2021-04-15T12:52:42.000Z
2021-04-15T12:52:42.000Z
import dataclasses import enum class CLType(enum.Enum): """Enumeration over set of CL types. """ BOOL = 0 I32 = 1 I64 = 2 U8 = 3 U32 = 4 U64 = 5 U128 = 6 U256 = 7 U512 = 8 UNIT = 9 STRING = 10 KEY = 11 UREF = 12 OPTION = 13 LIST = 14 BYTE_A...
21.396341
85
0.667427
432
3,509
5.351852
0.280093
0.044983
0.108131
0.108997
0.528114
0.505623
0.446799
0.423875
0.274221
0.274221
0
0.035728
0.258193
3,509
163
86
21.527607
0.852478
0.436307
0
0.209877
0
0
0
0
0
0
0
0
0
1
0.012346
false
0.012346
0.024691
0
0.654321
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
f456c15808160c57f2b68cffa03b0cdb9fe05135
1,668
py
Python
google/cloud/aiplatform_v1/types/env_var.py
nachocano/python-aiplatform
1c6b998d9145309d79712f494a2b00b50a9a9bf4
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1/types/env_var.py
nachocano/python-aiplatform
1c6b998d9145309d79712f494a2b00b50a9a9bf4
[ "Apache-2.0" ]
1
2021-02-12T23:56:38.000Z
2021-02-12T23:56:38.000Z
google/cloud/aiplatform_v1/types/env_var.py
nachocano/python-aiplatform
1c6b998d9145309d79712f494a2b00b50a9a9bf4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
34.040816
88
0.688249
224
1,668
5.058036
0.575893
0.052957
0.022948
0.028244
0.047661
0
0
0
0
0
0
0.009397
0.234412
1,668
48
89
34.75
0.877839
0.767386
0
0
0
0
0.104575
0.084967
0
0
0
0
0
1
0
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f45776dc27791b0b8c76dabaff8a799c99fa956b
3,119
py
Python
tools/borplay/packlib.py
MrCoolSpan/openbor
846cfeb924906849c8a11e76c442e47286b707ea
[ "BSD-3-Clause" ]
25
2015-03-10T06:14:12.000Z
2021-04-28T03:42:32.000Z
tools/borplay/packlib.py
MrCoolSpan/openbor
846cfeb924906849c8a11e76c442e47286b707ea
[ "BSD-3-Clause" ]
2
2019-09-29T11:35:30.000Z
2021-02-08T11:10:32.000Z
tools/borplay/packlib.py
MrCoolSpan/openbor
846cfeb924906849c8a11e76c442e47286b707ea
[ "BSD-3-Clause" ]
18
2015-03-14T02:43:26.000Z
2020-07-24T02:08:58.000Z
# Copyright (c) 2009 Bryan Cain ("Plombo") # Class and functions to read .PAK files. import struct from cStringIO import StringIO class PackFileReader(object): ''' Represents a BOR packfile. ''' files = dict() # the index holding the location of each file packfile = None # the file object def __in...
29.990385
102
0.655338
466
3,119
4.330472
0.324034
0.024281
0.02775
0.023786
0.16551
0.132805
0.132805
0.132805
0.132805
0.099108
0
0.013895
0.215454
3,119
103
103
30.281553
0.810789
0.191087
0
0.070175
0
0
0.036676
0.015473
0
0
0
0
0
0
null
null
0
0.035088
null
null
0.017544
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
f458c5e01d9e2170ec0f7c2f7180c5b33bb75bc9
16,446
py
Python
spc/backend_utils.py
adamnew123456/spc
8809d1817f66cf8266f145aa0c2474b32dc1087a
[ "MIT" ]
1
2017-10-15T19:55:48.000Z
2017-10-15T19:55:48.000Z
spc/backend_utils.py
adamnew123456/spc
8809d1817f66cf8266f145aa0c2474b32dc1087a
[ "MIT" ]
null
null
null
spc/backend_utils.py
adamnew123456/spc
8809d1817f66cf8266f145aa0c2474b32dc1087a
[ "MIT" ]
null
null
null
""" Utility functions and classes shared by multiple backends """ from collections import namedtuple import logging from . import symbols from . import types LOGGER = logging.getLogger('spc.backend_utils') # NameContexts encapsulate both the function stack (which holds values) and # the symbol table context (which b...
34.2625
93
0.623921
2,060
16,446
4.786893
0.195146
0.018457
0.021904
0.012778
0.366596
0.308488
0.229186
0.151303
0.137511
0.112767
0
0.004124
0.292229
16,446
479
94
34.334029
0.843041
0.310167
0
0.229358
0
0
0.040722
0
0
0
0
0
0
1
0.211009
false
0.004587
0.018349
0
0.40367
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
f45d781494a8e177d3301348e5cd3f98b7503c8a
1,925
py
Python
8/8_9.py
kopsh/python_cookbook
298c092cd20404a0755e2170776c44a04e8648ad
[ "CNRI-Python" ]
null
null
null
8/8_9.py
kopsh/python_cookbook
298c092cd20404a0755e2170776c44a04e8648ad
[ "CNRI-Python" ]
null
null
null
8/8_9.py
kopsh/python_cookbook
298c092cd20404a0755e2170776c44a04e8648ad
[ "CNRI-Python" ]
null
null
null
class CheckType: r""" 8.9 创建新的类或实例属性 使用描述器,实现参数类型检查 >>> @ParamAssert(a=int, b=list) ... class A: ... def __init__(self, a, b): ... self.a = a ... self.b = b >>> a = A(1, []) """ def __init__(self, name, expected_type): self.name = name sel...
25.666667
106
0.535584
229
1,925
4.19214
0.279476
0.083333
0.057292
0.0625
0.361458
0.320833
0.258333
0.189583
0.189583
0.1
0
0.006284
0.338701
1,925
75
107
25.666667
0.74784
0.156364
0
0.27907
0
0
0.05642
0
0
0
0
0
0.023256
1
0.209302
false
0
0.023256
0
0.488372
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
f45ec536c2f2748641c051d8785db2394218cb3f
4,264
py
Python
samples/RiskManagement/Verification/customer-match-denied-parties-list.py
snavinch/cybersource-rest-samples-python
adb7a6b4b55dff6ac833295192d6677b53003c16
[ "MIT" ]
21
2019-01-22T17:48:32.000Z
2022-02-07T17:40:58.000Z
samples/RiskManagement/Verification/customer-match-denied-parties-list.py
broadpay/cybersource-rest-samples-python
f7af6f58c70ea3bf725d34929b40ee4b5fd4d77c
[ "MIT" ]
10
2018-12-03T22:45:17.000Z
2021-04-19T20:40:14.000Z
samples/RiskManagement/Verification/customer-match-denied-parties-list.py
broadpay/cybersource-rest-samples-python
f7af6f58c70ea3bf725d34929b40ee4b5fd4d77c
[ "MIT" ]
29
2018-11-09T11:44:53.000Z
2022-03-18T08:56:46.000Z
from CyberSource import * import os import json from importlib.machinery import SourceFileLoader config_file = os.path.join(os.getcwd(), "data", "Configuration.py") configuration = SourceFileLoader("module.name", config_file).load_module() # To delete None values in Input Request Json body def del_none(d): for ke...
38.414414
97
0.754221
290
4,264
10.793103
0.565517
0.006709
0.012141
0.016613
0.019169
0
0
0
0
0
0
0.013537
0.185741
4,264
110
98
38.763636
0.887961
0.011257
0
0
0
0
0.083294
0.010441
0
0
0
0
0
1
0.022222
false
0
0.044444
0
0.088889
0.033333
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
f45ec6261b1911d698e1ee71b90cc7668913450f
936
py
Python
SimulatePi.py
Lucchese-Anthony/MonteCarloSimulation
45a625b88dab6658b43b472d49d82aaeb1e847bd
[ "CC0-1.0" ]
null
null
null
SimulatePi.py
Lucchese-Anthony/MonteCarloSimulation
45a625b88dab6658b43b472d49d82aaeb1e847bd
[ "CC0-1.0" ]
null
null
null
SimulatePi.py
Lucchese-Anthony/MonteCarloSimulation
45a625b88dab6658b43b472d49d82aaeb1e847bd
[ "CC0-1.0" ]
null
null
null
import numpy as np import random import math import matplotlib.pyplot as plt import matplotlib.animation as animation from matplotlib import style angle = np.linspace( 0 , 2 * np.pi , 150) radius = 1 x = radius * np.cos(angle) y = radius * np.sin(angle) #prints the circle style.use('fivethirtyeight') fig = plt.f...
21.272727
55
0.628205
137
936
4.284672
0.459854
0.017036
0.035775
0.034072
0.078365
0.078365
0
0
0
0
0
0.024828
0.225427
936
43
56
21.767442
0.784828
0.018162
0
0
0
0
0.027233
0
0
0
0
0
0
0
null
null
0
0.176471
null
null
0.058824
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
f45faefa310c1d7891d6abffc0a5f0a804569172
219
py
Python
run.py
aarvanitii/adminWebsite
cf9a07c287571ebbc9954326806b578f6d19a11b
[ "MIT" ]
null
null
null
run.py
aarvanitii/adminWebsite
cf9a07c287571ebbc9954326806b578f6d19a11b
[ "MIT" ]
null
null
null
run.py
aarvanitii/adminWebsite
cf9a07c287571ebbc9954326806b578f6d19a11b
[ "MIT" ]
null
null
null
""" This is where the web application starts running """ from app.index import create_app app = create_app() if __name__ == "__main__": app.secret_key = 'mysecret' app.run(port=8080, host="0.0.0.0", debug=True)
24.333333
50
0.694064
35
219
4.028571
0.742857
0.042553
0.042553
0
0
0
0
0
0
0
0
0.043478
0.159817
219
9
50
24.333333
0.722826
0.219178
0
0
0
0
0.140244
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
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
f465aa8f0880334955fcdd358466dab059344d4b
355
py
Python
generate_joke.py
audreymychan/djsmile
8dc5d6337f1b32db8bf3dfbf13315ec25049ebb5
[ "MIT" ]
5
2019-05-30T20:15:34.000Z
2020-04-16T08:21:16.000Z
generate_joke.py
audreymychan/djsmile
8dc5d6337f1b32db8bf3dfbf13315ec25049ebb5
[ "MIT" ]
5
2021-08-25T14:43:34.000Z
2022-02-10T00:14:09.000Z
generate_joke.py
audreymychan/djsmile
8dc5d6337f1b32db8bf3dfbf13315ec25049ebb5
[ "MIT" ]
null
null
null
# This script contains the get_joke() function to generate a new dad joke import requests def get_joke(): """Return new joke string from icanhazdadjoke.com.""" url = "https://icanhazdadjoke.com/" response = requests.get(url, headers={'Accept': 'application/json'}) raw_joke = response.json() joke ...
27.307692
73
0.687324
47
355
5.106383
0.595745
0.058333
0
0
0
0
0
0
0
0
0
0
0.185915
355
12
74
29.583333
0.83045
0.338028
0
0
1
0
0.231441
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f46ac6dc3031a12623e226f71b58aeded4ff617c
440
py
Python
config/api_urls.py
elcolie/battleship
71b0a963c5b24ae243a193749813fec321d5f4d8
[ "MIT" ]
null
null
null
config/api_urls.py
elcolie/battleship
71b0a963c5b24ae243a193749813fec321d5f4d8
[ "MIT" ]
3
2018-04-22T04:40:25.000Z
2020-06-05T19:10:08.000Z
config/api_urls.py
elcolie/battleship
71b0a963c5b24ae243a193749813fec321d5f4d8
[ "MIT" ]
null
null
null
from rest_framework import routers from boards.api.viewsets import BoardViewSet from fleets.api.viewsets import FleetViewSet from missiles.api.viewsets import MissileViewSet app_name = 'api' router = routers.DefaultRouter() router.register(r'boards', BoardViewSet, base_name='board') router.register(r'fleets', FleetV...
29.333333
65
0.811364
56
440
6.285714
0.446429
0.09375
0.144886
0
0
0
0
0
0
0
0
0
0.086364
440
14
66
31.428571
0.875622
0
0
0
0
0
0.090909
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
f47301fb50cbf2affb241d7c61d027660a0014ae
24,598
py
Python
messenger/client/messenger.py
marik348/python-messenger
6c1916b0df439cd997cb6e9376221fe587c3f1c1
[ "MIT" ]
2
2021-05-24T08:44:51.000Z
2022-03-17T10:41:48.000Z
messenger/client/messenger.py
marik348/python-messenger
6c1916b0df439cd997cb6e9376221fe587c3f1c1
[ "MIT" ]
1
2020-11-28T12:08:25.000Z
2020-11-28T12:08:25.000Z
messenger/client/messenger.py
marik348/python-messegner
6c1916b0df439cd997cb6e9376221fe587c3f1c1
[ "MIT" ]
1
2021-05-24T08:50:42.000Z
2021-05-24T08:50:42.000Z
from requests import get, post, exceptions from datetime import datetime from PyQt5 import QtWidgets, QtCore from PyQt5.QtWidgets import QMessageBox from PyQt5.QtGui import QFont from qtwidgets import PasswordEdit from client_commands import (help_client, online, status, myself, reg, role, ban, unban) from client_con...
38.982567
120
0.622693
2,858
24,598
5.187544
0.138209
0.034804
0.034129
0.041076
0.462701
0.415756
0.361122
0.334345
0.32153
0.271887
0
0.008887
0.277218
24,598
630
121
39.044444
0.825018
0.186275
0
0.429293
0
0
0.112184
0.011809
0
0
0
0
0
1
0.065657
false
0.113636
0.030303
0
0.179293
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
f48259ce6371a22b92ea0a936d7be4886d4013dc
4,030
py
Python
agro_site/orders/migrations/0001_initial.py
LukoninDmitryPy/agro_site-2
eab7694d42104774e5ce6db05a79f11215db6ae3
[ "MIT" ]
null
null
null
agro_site/orders/migrations/0001_initial.py
LukoninDmitryPy/agro_site-2
eab7694d42104774e5ce6db05a79f11215db6ae3
[ "MIT" ]
null
null
null
agro_site/orders/migrations/0001_initial.py
LukoninDmitryPy/agro_site-2
eab7694d42104774e5ce6db05a79f11215db6ae3
[ "MIT" ]
1
2022-03-13T11:32:48.000Z
2022-03-13T11:32:48.000Z
# Generated by Django 2.2.16 on 2022-04-12 13:28 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.db.models.expressions import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('sales...
52.337662
205
0.6134
419
4,030
5.732697
0.307876
0.054954
0.058285
0.073272
0.374271
0.345545
0.345545
0.318068
0.318068
0.318068
0
0.011408
0.23871
4,030
76
206
53.026316
0.771512
0.011414
0
0.333333
1
0
0.133099
0.005274
0
0
0
0
0
1
0
false
0
0.072464
0
0.130435
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
f482d9773506167246440d9307b62395f61caa1a
2,353
py
Python
ais3-pre-exam-2022-writeup/Misc/JeetQode/chall/problems/astmath.py
Jimmy01240397/balsn-2021-writeup
91b71dfbddc1c214552280b12979a82ee1c3cb7e
[ "MIT" ]
null
null
null
ais3-pre-exam-2022-writeup/Misc/JeetQode/chall/problems/astmath.py
Jimmy01240397/balsn-2021-writeup
91b71dfbddc1c214552280b12979a82ee1c3cb7e
[ "MIT" ]
null
null
null
ais3-pre-exam-2022-writeup/Misc/JeetQode/chall/problems/astmath.py
Jimmy01240397/balsn-2021-writeup
91b71dfbddc1c214552280b12979a82ee1c3cb7e
[ "MIT" ]
null
null
null
from problem import Problem from typing import Any, Tuple from random import randint import ast import json def gen_num(): return str(randint(1, 9)) def gen_op(): return "+-*/"[randint(0, 3)] def gen_expr(depth): if randint(0, depth) == 0: l = gen_expr(depth + 1) r = gen_expr(depth + 1...
37.349206
800
0.592435
344
2,353
3.866279
0.258721
0.105263
0.075188
0.120301
0.394737
0.394737
0.322556
0.286466
0.224812
0.224812
0
0.050674
0.211645
2,353
62
801
37.951613
0.666307
0
0
0.104167
0
0.041667
0.557161
0
0
0
0.023799
0
0
1
0.166667
false
0
0.104167
0.125
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
0
1
0
0
0
1
f488b9695ea3d93d4ce613f2ebb45a1be83ca949
1,631
py
Python
python/cac_tripplanner/destinations/migrations/0021_event.py
maurizi/cac-tripplanner
3f4f1f1edc9be9e52c74eb3e124b6697429a79d6
[ "Apache-2.0" ]
null
null
null
python/cac_tripplanner/destinations/migrations/0021_event.py
maurizi/cac-tripplanner
3f4f1f1edc9be9e52c74eb3e124b6697429a79d6
[ "Apache-2.0" ]
null
null
null
python/cac_tripplanner/destinations/migrations/0021_event.py
maurizi/cac-tripplanner
3f4f1f1edc9be9e52c74eb3e124b6697429a79d6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-28 17:32 from __future__ import unicode_literals import ckeditor.fields import destinations.models from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('destinati...
42.921053
171
0.624157
171
1,631
5.807018
0.538012
0.032226
0.028197
0.04431
0.21148
0.16717
0.16717
0.100705
0
0
0
0.041229
0.24157
1,631
37
172
44.081081
0.76152
0.041692
0
0
1
0
0.175641
0.030128
0
0
0
0
0
1
0
false
0
0.166667
0
0.266667
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
be2e7ef040dc5a54cf6259bfaf5348f1c97d85ac
2,061
py
Python
prog_vae/prog_encoder/prog_encoder.py
Hanjun-Dai/sdvae
bd26ea949c496419634fd2cf4802fc8e19a9194c
[ "MIT" ]
70
2018-02-24T07:50:59.000Z
2021-12-27T02:42:37.000Z
prog_vae/prog_encoder/prog_encoder.py
Hanjun-Dai/sdvae
bd26ea949c496419634fd2cf4802fc8e19a9194c
[ "MIT" ]
7
2018-05-31T00:50:19.000Z
2021-09-28T11:58:22.000Z
prog_vae/prog_encoder/prog_encoder.py
Hanjun-Dai/sdvae
bd26ea949c496419634fd2cf4802fc8e19a9194c
[ "MIT" ]
19
2019-01-11T10:56:00.000Z
2022-03-23T23:09:39.000Z
#!/usr/bin/env python from __future__ import print_function import os import sys import csv import numpy as np import math import random from collections import defaultdict import torch from torch.autograd import Variable from torch.nn.parameter import Parameter import torch.nn as nn import torch.nn.functional as F i...
30.308824
91
0.6623
324
2,061
3.935185
0.305556
0.098824
0.028235
0.021961
0.216471
0.152157
0.152157
0.103529
0
0
0
0.027586
0.226104
2,061
67
92
30.761194
0.771787
0.031053
0
0
0
0
0.022055
0
0
0
0
0
0
1
0.038462
false
0.019231
0.346154
0
0.423077
0.019231
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
be357d6f3c1ddf5962bf29bb44f0430102e3f1c8
7,741
py
Python
neutron_lbaas/drivers/driver_mixins.py
containers-kraken/neutron-lbaas
43fbc34cc90512e33202bc4187ccf712dda6a782
[ "Apache-2.0" ]
null
null
null
neutron_lbaas/drivers/driver_mixins.py
containers-kraken/neutron-lbaas
43fbc34cc90512e33202bc4187ccf712dda6a782
[ "Apache-2.0" ]
null
null
null
neutron_lbaas/drivers/driver_mixins.py
containers-kraken/neutron-lbaas
43fbc34cc90512e33202bc4187ccf712dda6a782
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 A10 Networks # # 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 agree...
42.070652
79
0.628472
949
7,741
4.955743
0.239199
0.025516
0.03636
0.026791
0.456304
0.366575
0.277908
0.251967
0.243036
0.243036
0
0.004631
0.302674
7,741
183
80
42.300546
0.866617
0.301511
0
0.361111
0
0
0.099424
0.004031
0
0
0
0
0
1
0.092593
false
0.055556
0.064815
0
0.212963
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
be3e44160e188056687e999ee1b846a80b373896
1,819
py
Python
build/generate_confirmed_cases_by_counties.py
jtagcat/koroonakaart
16a6eb24a19b286589b063742b03a123315feefc
[ "CC0-1.0", "MIT" ]
1
2021-12-20T23:05:58.000Z
2021-12-20T23:05:58.000Z
build/generate_confirmed_cases_by_counties.py
jtagcat/koroonakaart
16a6eb24a19b286589b063742b03a123315feefc
[ "CC0-1.0", "MIT" ]
null
null
null
build/generate_confirmed_cases_by_counties.py
jtagcat/koroonakaart
16a6eb24a19b286589b063742b03a123315feefc
[ "CC0-1.0", "MIT" ]
1
2021-12-20T23:05:47.000Z
2021-12-20T23:05:47.000Z
from build.chart_data_functions import get_confirmed_cases_by_county from build.chart_data_functions import get_county_by_day from build.constants import CONFIRMED_CASES_BY_COUNTIES_PATH from build.constants import COUNTY_MAPPING from build.constants import COUNTY_POPULATION from build.constants import DATE_SETTINGS fr...
30.316667
87
0.774601
248
1,819
5.33871
0.302419
0.095166
0.095166
0.126888
0.239426
0.054381
0.054381
0
0
0
0
0.001318
0.166025
1,819
59
88
30.830508
0.871457
0.077515
0
0
0
0
0.128743
0.016766
0
0
0
0
0
1
0.02439
false
0
0.365854
0
0.390244
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
be4201706e45a3d4dd6cd9622ea3645d54ac325f
440
py
Python
users/models.py
makutas/CocktailWebsite
c5192e5fc2b750a32500f5c3421ed07e89c9c7e1
[ "MIT" ]
null
null
null
users/models.py
makutas/CocktailWebsite
c5192e5fc2b750a32500f5c3421ed07e89c9c7e1
[ "MIT" ]
null
null
null
users/models.py
makutas/CocktailWebsite
c5192e5fc2b750a32500f5c3421ed07e89c9c7e1
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User class UserProfile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) user_description = models.CharField(max_length=200, null=True) user_avatar = models.ImageField(null=True, blank=True) user_uploaded_rec...
31.428571
77
0.747727
59
440
5.40678
0.644068
0.062696
0
0
0
0
0
0
0
0
0
0.010753
0.154545
440
13
78
33.846154
0.846774
0.054545
0
0
0
0
0.048309
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0.111111
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
be466292d2d3ccf1cddc1f8ecf7d02c60e49df95
1,363
py
Python
gen_cnn_dataset.py
NPCai/graphene-py
50163eb65f55c25a3d090bad03e34304b1cb3037
[ "MIT" ]
5
2018-09-10T15:33:51.000Z
2020-07-28T05:46:59.000Z
gen_cnn_dataset.py
NPCai/graphene-py
50163eb65f55c25a3d090bad03e34304b1cb3037
[ "MIT" ]
null
null
null
gen_cnn_dataset.py
NPCai/graphene-py
50163eb65f55c25a3d090bad03e34304b1cb3037
[ "MIT" ]
null
null
null
import wrapper as w from multiprocessing import Process import atexit import time from queue import Queue ''' 8 Processes, 24 threads per process = 192 threads ''' NUM_PROCESSES = 8 workerList = [] # Worker processes class Worker(Process): # Need multiple threads or else it takes forever def __init__(self, queue):...
26.72549
74
0.726339
194
1,363
5.015464
0.541237
0.036999
0.026721
0
0
0
0
0
0
0
0
0.008688
0.155539
1,363
51
75
26.72549
0.836664
0.131328
0
0
0
0
0.096257
0
0
0
0
0
0
0
null
null
0
0.128205
null
null
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
be47030ab919977e3706aa43ef448dd537100bbd
2,702
py
Python
torch/_prims/context.py
EikanWang/pytorch
823ddb6e87e8111c9b5a99523503172e5bf62c49
[ "Intel" ]
null
null
null
torch/_prims/context.py
EikanWang/pytorch
823ddb6e87e8111c9b5a99523503172e5bf62c49
[ "Intel" ]
1
2022-01-10T18:39:28.000Z
2022-01-10T19:15:57.000Z
torch/_prims/context.py
HaoZeke/pytorch
4075972c2675ef34fd85efd60c9bad75ad06d386
[ "Intel" ]
null
null
null
from typing import Callable, Sequence, Any, Dict import functools import torch import torch.overrides from torch._prims.utils import torch_function_passthrough import torch._refs as refs import torch._refs import torch._refs.nn import torch._refs.nn.functional import torch._refs.special import torch._prims # TOD...
28.442105
81
0.650259
370
2,702
4.521622
0.335135
0.069934
0.04483
0.025105
0.057382
0
0
0
0
0
0
0
0.245744
2,702
94
82
28.744681
0.820903
0.281643
0
0.068966
0
0
0.033208
0.02196
0
0
0
0.010638
0
1
0.068966
false
0.034483
0.189655
0
0.362069
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
be53ecbf1f6e947fe3a12409a789c5940cb5ceed
2,516
py
Python
gaussian_blur/gaussian_blur.py
Soft-illusion/ComputerVision
9afaa9eafef8ac47fdb1023c5332cff98626f1bd
[ "MIT" ]
null
null
null
gaussian_blur/gaussian_blur.py
Soft-illusion/ComputerVision
9afaa9eafef8ac47fdb1023c5332cff98626f1bd
[ "MIT" ]
null
null
null
gaussian_blur/gaussian_blur.py
Soft-illusion/ComputerVision
9afaa9eafef8ac47fdb1023c5332cff98626f1bd
[ "MIT" ]
null
null
null
import cv2 as cv import sys import numpy as np import random as r import os from PIL import Image as im def noisy(noise_typ,image): if noise_typ == "gauss": # Generate Gaussian noise gauss = np.random.normal(0,1,image.size) print(gauss) gauss = gauss.reshape(image.shape[0],image.sh...
32.675325
91
0.598967
366
2,516
3.994536
0.270492
0.082079
0.021888
0.06156
0.372093
0.295486
0.254446
0.220246
0.161423
0.161423
0
0.026244
0.273052
2,516
76
92
33.105263
0.7731
0.166534
0
0.218182
1
0
0.050913
0
0
0
0
0
0
1
0.018182
false
0
0.109091
0
0.2
0.054545
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
be5dd7bfd950d236cdb2d9db1cde1c0dbae6c636
5,250
py
Python
tests/functional/controllers/test_group_controller_superuser.py
roscisz/TensorHive
4a680f47a0ee1ce366dc82ad9964e229d9749c4e
[ "Apache-2.0" ]
129
2017-08-25T11:45:15.000Z
2022-03-29T05:11:25.000Z
tests/functional/controllers/test_group_controller_superuser.py
roscisz/TensorHive
4a680f47a0ee1ce366dc82ad9964e229d9749c4e
[ "Apache-2.0" ]
251
2017-07-27T10:05:58.000Z
2022-03-02T12:46:13.000Z
tests/functional/controllers/test_group_controller_superuser.py
roscisz/TensorHive
4a680f47a0ee1ce366dc82ad9964e229d9749c4e
[ "Apache-2.0" ]
20
2017-08-13T13:05:14.000Z
2022-03-19T02:21:37.000Z
from tensorhive.models.Group import Group from fixtures.controllers import API_URI as BASE_URI, HEADERS from http import HTTPStatus from importlib import reload import json import auth_patcher ENDPOINT = BASE_URI + '/groups' def setup_module(_): auth_patches = auth_patcher.get_patches(superuser=True) for au...
32.012195
117
0.717714
756
5,250
4.720899
0.124339
0.085178
0.05828
0.07285
0.774727
0.703839
0.658448
0.593444
0.534604
0.45615
0
0.005849
0.153333
5,250
163
118
32.208589
0.797075
0.086095
0
0.354839
0
0
0.041815
0
0
0
0
0
0.268817
1
0.150538
false
0
0.064516
0
0.215054
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