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
e46ff369ae2e7014b44dfca5e2a5522c64caf079
372
py
Python
forty/controllers/__init__.py
vikian050194/forty
7ef68fb06bb22a3008351c5a651eaa46b635d433
[ "MIT" ]
null
null
null
forty/controllers/__init__.py
vikian050194/forty
7ef68fb06bb22a3008351c5a651eaa46b635d433
[ "MIT" ]
7
2021-03-15T17:18:36.000Z
2021-04-26T09:40:53.000Z
forty/controllers/__init__.py
vikian050194/forty
7ef68fb06bb22a3008351c5a651eaa46b635d433
[ "MIT" ]
null
null
null
from typing import List from .base import * from .help import * from .status import * from .project import * from .work import * from .history import * from .log import * controllers: List[AbstractController] = [ HelpController, StatusController, ProjectController, WorkController, HistoryControll...
16.173913
41
0.717742
36
372
7.305556
0.555556
0.228137
0
0
0
0
0
0
0
0
0
0
0.201613
372
22
42
16.909091
0.885522
0
0
0
0
0
0.02957
0
0
0
0
0
0
1
0
false
0
0.470588
0
0.470588
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
1
0
0
0
0
2
e4710565cc61cd4521972bc59bd03ae4062eb21c
7,550
py
Python
corepy/arch/ptx/isa/ptx_fields.py
matthiaskramm/corepy
b2aad4e86adca10420e825fb65dcbd031cf44bb1
[ "BSD-3-Clause" ]
8
2016-02-20T03:52:58.000Z
2022-01-24T15:04:14.000Z
corepy/arch/ptx/isa/ptx_fields.py
matthiaskramm/corepy
b2aad4e86adca10420e825fb65dcbd031cf44bb1
[ "BSD-3-Clause" ]
null
null
null
corepy/arch/ptx/isa/ptx_fields.py
matthiaskramm/corepy
b2aad4e86adca10420e825fb65dcbd031cf44bb1
[ "BSD-3-Clause" ]
6
2015-12-11T05:21:15.000Z
2020-12-11T10:59:15.000Z
# Copyright (c) 2006-2009 The Trustees of Indiana University. # All rights reserved. # # Redistribution and use in source and binary forms, with or without ...
41.712707
169
0.609536
868
7,550
5.251152
0.285714
0.082273
0.032909
0.033567
0.419263
0.379552
0.35498
0.329531
0.329531
0.299473
0
0.003167
0.247152
7,550
180
170
41.944444
0.798733
0.306755
0
0.453782
0
0
0.088983
0
0
0
0
0.005556
0
1
0.201681
false
0
0.02521
0.12605
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
1
0
0
0
1
0
0
0
2
e472956bbca861c1f1048517b222bc5651333c10
956
py
Python
sdk/python/pulumi_google_native/pubsublite/v1/_enums.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/pubsublite/v1/_enums.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/pubsublite/v1/_enums.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from enum import Enum __all__ = [ 'DeliveryConfigDeliveryRequirement', ] class DeliveryConfigDeliveryRequirement(str, Enum): """ The Del...
34.142857
198
0.725941
116
956
5.862069
0.62069
0.055882
0.088235
0.055882
0
0
0
0
0
0
0
0.001304
0.197699
956
27
199
35.407407
0.885267
0.218619
0
0
1
0
0.317073
0.198171
0
0
0
0
0
1
0
false
0
0.125
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
e4825d0e50af18f329c24dbfb597d965b7b1192f
831
py
Python
Desafios/Ex-037.py
LuckyCards/Curso-Python3
b39c7b2645220c71c35012f16c102428053fee25
[ "MIT" ]
1
2021-04-06T16:14:43.000Z
2021-04-06T16:14:43.000Z
Desafios/Ex-037.py
LuckyCards/Curso-Python3
b39c7b2645220c71c35012f16c102428053fee25
[ "MIT" ]
null
null
null
Desafios/Ex-037.py
LuckyCards/Curso-Python3
b39c7b2645220c71c35012f16c102428053fee25
[ "MIT" ]
null
null
null
print(f'\033[33m{"—"*30:^30}\033[m') print(f'\033[36m{"EXERCÍCIO Nº 37":^30}\033[m') print(f'\033[33m{"—"*30:^30}\033[m') print('CONVERSÕES LEGAIS') num = int(input('Digite um número: ')) print(f'\nVocê digitou o número {num}') print('Escolha a base de conversão:\n') choice = int(input('\033[32m1 para Binário\n\033[33m...
43.736842
103
0.66787
142
831
3.922535
0.373239
0.075404
0.096948
0.089767
0.289048
0.289048
0.271095
0.271095
0.093357
0.093357
0
0.129655
0.127557
831
19
104
43.736842
0.635862
0
0
0.105263
0
0.052632
0.677885
0.117788
0
0
0
0
0
1
0
false
0
0
0
0
0.684211
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
e488602c15b9c90a010c1612f00fed30201bcae6
1,793
py
Python
SerialDevice/connect_object.py
cassie01/PumpLibrary
c2a4884a36f4c6c6552fa942143ae5d21c120b41
[ "Apache-2.0" ]
null
null
null
SerialDevice/connect_object.py
cassie01/PumpLibrary
c2a4884a36f4c6c6552fa942143ae5d21c120b41
[ "Apache-2.0" ]
null
null
null
SerialDevice/connect_object.py
cassie01/PumpLibrary
c2a4884a36f4c6c6552fa942143ae5d21c120b41
[ "Apache-2.0" ]
null
null
null
# -*-coding:utf-8 -*- from SerialDevice import * from enum import Enum, unique # 重定义C9的通讯 class C9(COMBase): def __init__(self, connect_way): self.connect_way = connect_way COMBase.__init__( self, b"\x0B\x1C\x01\x00\xFF\xAC\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x...
27.166667
114
0.603458
231
1,793
4.454545
0.251082
0.198251
0.271137
0.326531
0.300292
0.300292
0.284742
0.284742
0.284742
0.284742
0
0.092145
0.261573
1,793
65
115
27.584615
0.685045
0.079755
0
0.217391
0
0.043478
0.159976
0.107056
0
0
0
0
0
1
0.065217
false
0
0.043478
0
0.282609
0.021739
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e4973c09c0a46ef3edf93a3f50abddd288211c3b
1,400
py
Python
test_all_strong.py
MartianQXD/QBisim
322419e3aa24c7c09cd9341cbf2ac237279a59c8
[ "Apache-2.0" ]
1
2021-07-21T07:23:51.000Z
2021-07-21T07:23:51.000Z
test_all_strong.py
MartianQXD/QBisim
322419e3aa24c7c09cd9341cbf2ac237279a59c8
[ "Apache-2.0" ]
null
null
null
test_all_strong.py
MartianQXD/QBisim
322419e3aa24c7c09cd9341cbf2ac237279a59c8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import sys sys.path.append("lib") print(sys.version) print(sys.path) import bisim_concrete as bisim import time print("Strong Bisimulation Test") print("===================\nTeleportation") qlts_timer = time.time() bisim.init_qLTS("examples/concrete-tele.txt", "parse_output/concrete-tele.gv", ...
40
84
0.684286
200
1,400
4.685
0.21
0.076841
0.11953
0.187834
0.765208
0.569904
0.483458
0.483458
0.483458
0.385272
0
0.008682
0.095
1,400
34
85
41.176471
0.73086
0.015
0
0.387097
0
0
0.51053
0.422658
0
0
0
0
0
1
0
false
0
0.096774
0
0.096774
0.354839
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e49c08ea1c9ac9a80de67537562019bd24cf13a4
2,547
py
Python
src/sst/tests/test_sst_run.py
DramaFever/sst
63d41a102c9d3bdb54019f28a93cff0314a0214f
[ "Apache-2.0" ]
4
2015-01-21T22:20:50.000Z
2017-12-18T11:38:16.000Z
src/sst/tests/test_sst_run.py
DramaFever/sst
63d41a102c9d3bdb54019f28a93cff0314a0214f
[ "Apache-2.0" ]
63
2015-01-13T19:32:06.000Z
2020-04-22T17:01:03.000Z
src/sst/tests/test_sst_run.py
wbdl/sst
7a2805391fdd390ecb0f488f8377f58381358c89
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2013 Canonical Ltd. # # This file is part of: SST (selenium-simple-test) # https://launchpad.net/selenium-simple-test # # 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 Licens...
33.513158
76
0.67766
323
2,547
5.294118
0.482972
0.105263
0.049123
0.018713
0.039766
0.039766
0
0
0
0
0
0.014021
0.21594
2,547
75
77
33.96
0.842263
0.360817
0
0.05
0
0
0.040574
0.022472
0
0
0
0.013333
0.425
1
0.15
false
0
0.05
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
1
0
0
0
0
0
0
0
0
0
2
e4a8313e5032aa96fd3d769b42e71c9e66971350
1,926
py
Python
hs_formation/middleware/logger.py
hiredscorelabs/hs-formation
fb84d856b1289b98ed287123281ddc14b7f1e700
[ "MIT" ]
1
2021-07-12T08:48:10.000Z
2021-07-12T08:48:10.000Z
hs_formation/middleware/logger.py
hiredscorelabs/hs-formation
fb84d856b1289b98ed287123281ddc14b7f1e700
[ "MIT" ]
null
null
null
hs_formation/middleware/logger.py
hiredscorelabs/hs-formation
fb84d856b1289b98ed287123281ddc14b7f1e700
[ "MIT" ]
2
2020-07-16T14:23:35.000Z
2020-09-14T11:49:56.000Z
from ..formation import ( _REQ_HTTP, _RES_HTTP, _CONTEXT, _REQ_DURATION, ) from toolz.curried import valfilter def request_logger(logger): no_nones = valfilter(lambda x: x) def request_logger_middleware(ctx, next): req = ctx[_REQ_HTTP] context = ctx.get(_CONTEXT, {}) m...
26.75
92
0.598131
238
1,926
4.663866
0.205882
0.07027
0.082883
0.046847
0.777477
0.759459
0.759459
0.662162
0.662162
0.513514
0
0
0.294393
1,926
71
93
27.126761
0.816777
0
0
0.436364
0
0
0.039979
0
0
0
0
0
0
1
0.054545
false
0
0.036364
0
0.163636
0
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e4b233da694ed06213976a63834211a2dbec0e7a
4,995
py
Python
gent/math/sampling.py
flywinged/TGL
a567ae717e7f9390eb9a5ce3383e5b796389af05
[ "MIT" ]
1
2020-06-19T18:59:02.000Z
2020-06-19T18:59:02.000Z
gent/math/sampling.py
flywinged/TGL
a567ae717e7f9390eb9a5ce3383e5b796389af05
[ "MIT" ]
16
2020-06-17T22:26:18.000Z
2020-07-28T21:39:10.000Z
gent/math/sampling.py
flywinged/TGL
a567ae717e7f9390eb9a5ce3383e5b796389af05
[ "MIT" ]
null
null
null
# # Copyright Clayton Brown 2019. See LICENSE file. # import numpy # from types import FunctionType # from csaps import UnivariateCubicSmoothingSpline # class ProbabilityDistribution: # ''' # Function to handle probability distributions. # Parameters # ---------- # distributionFun...
42.692308
142
0.635035
586
4,995
5.385666
0.360068
0.004436
0.013942
0.015209
0.033587
0.02218
0.02218
0
0
0
0
0.0242
0.28028
4,995
116
143
43.060345
0.853686
0.92953
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
e4bf2305da9c05895da103ac58ffdf7bc52fa7dc
364
py
Python
t.py
kuenishi/dicorn
93264bbcf77898b3057e881efe3f3a459f287912
[ "Apache-2.0" ]
1
2016-01-24T11:36:23.000Z
2016-01-24T11:36:23.000Z
t.py
kuenishi/dicorn
93264bbcf77898b3057e881efe3f3a459f287912
[ "Apache-2.0" ]
null
null
null
t.py
kuenishi/dicorn
93264bbcf77898b3057e881efe3f3a459f287912
[ "Apache-2.0" ]
null
null
null
import memcache c = memcache.Client(['localhost:9979']) for i in xrange(0,10): print("set>", c.set('key', 'value')) print("get>", c.get('key')) print("del>", c.delete('key')) print("get>", c.get('key')) print("set>", c.set('i', 0)) # print("inc>", c.incr('i', 2)) # print("inc>", c.decr('i',...
22.75
40
0.521978
58
364
3.275862
0.431034
0.126316
0.142105
0.189474
0.210526
0.210526
0
0
0
0
0
0.033113
0.17033
364
15
41
24.266667
0.596026
0.17033
0
0.222222
0
0
0.219595
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.666667
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
e4cd9d53abb3da36fc440923ca17c51637e9ad5f
169
py
Python
CA/SumInLoop.py
JLJTECH/TutorialTesting
f2dbbd49a86b3b086d0fc156ac3369fb74727f86
[ "MIT" ]
null
null
null
CA/SumInLoop.py
JLJTECH/TutorialTesting
f2dbbd49a86b3b086d0fc156ac3369fb74727f86
[ "MIT" ]
null
null
null
CA/SumInLoop.py
JLJTECH/TutorialTesting
f2dbbd49a86b3b086d0fc156ac3369fb74727f86
[ "MIT" ]
null
null
null
#Sum in Loop - Problem #2 #Wasted Var that isnt used oneVar = input() #Sum items for all items in provided input data split print(sum(int(x) for x in input().split()))
24.142857
53
0.710059
31
169
3.870968
0.677419
0
0
0
0
0
0
0
0
0
0
0.007194
0.177515
169
6
54
28.166667
0.856115
0.591716
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
1
0
2
e4ed68fbe2994835b78203932671dcf162573ff1
1,172
py
Python
app/handlers/callback/recipe_button.py
Katel212/MyPersonalKitchenBot
03de0beeaf2665e8b3ddd1709da3d4edcd422b80
[ "MIT" ]
null
null
null
app/handlers/callback/recipe_button.py
Katel212/MyPersonalKitchenBot
03de0beeaf2665e8b3ddd1709da3d4edcd422b80
[ "MIT" ]
5
2020-12-22T17:53:05.000Z
2021-04-07T20:00:47.000Z
app/handlers/callback/recipe_button.py
Katel212/MyPersonalKitchenBot
03de0beeaf2665e8b3ddd1709da3d4edcd422b80
[ "MIT" ]
null
null
null
import re from aiogram import types from aiogram.dispatcher import filters, FSMContext from app.keyboards.inline.select_recipe import SelectRecipe from app.misc import dp, bot from app.recipe_parser.recipe_models import Recipe from app.states.state_ingredients import IngredientsForRecipe def recipe_helper(recipe: R...
46.88
127
0.758532
171
1,172
5.064327
0.426901
0.032333
0.04157
0.039261
0.210162
0.210162
0.210162
0.210162
0.168591
0.168591
0
0.008746
0.122014
1,172
25
128
46.88
0.832847
0
0
0
0
0.105263
0.215686
0.141517
0
0
0
0
0
1
0.052632
false
0
0.368421
0
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
e4f7823e6763ea2d57f9f54672f42846c1259583
289
py
Python
gamefixes/65930.py
manueliglesiasgarcia/protonfixes
d676b6bf39f6e4268b4791d3d71c6d74e2127121
[ "BSD-2-Clause" ]
null
null
null
gamefixes/65930.py
manueliglesiasgarcia/protonfixes
d676b6bf39f6e4268b4791d3d71c6d74e2127121
[ "BSD-2-Clause" ]
null
null
null
gamefixes/65930.py
manueliglesiasgarcia/protonfixes
d676b6bf39f6e4268b4791d3d71c6d74e2127121
[ "BSD-2-Clause" ]
null
null
null
""" Game fix for The Bureau: XCOM Declassified """ #pylint: disable=C0103 from protonfixes import util def main(): """ Disables esync and fsync """ # https://github.com/ValveSoftware/Proton/issues/797#issuecomment-955180056 util.disable_esync() util.disable_fsync()
20.642857
79
0.702422
35
289
5.742857
0.828571
0.109453
0
0
0
0
0
0
0
0
0
0.066946
0.17301
289
13
80
22.230769
0.774059
0.577855
0
0
0
0
0
0
0
0
0
0
0
1
0.25
true
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
0
0
2
e4f8acd70f9710f8333981524639d9478600c652
229
py
Python
tests/conll/test_entity_vocabulary.py
lanSeFangZhou/tokenizer_tools
edd931ae86a6e381b57e50f8b59ae19d3151d26b
[ "MIT" ]
null
null
null
tests/conll/test_entity_vocabulary.py
lanSeFangZhou/tokenizer_tools
edd931ae86a6e381b57e50f8b59ae19d3151d26b
[ "MIT" ]
null
null
null
tests/conll/test_entity_vocabulary.py
lanSeFangZhou/tokenizer_tools
edd931ae86a6e381b57e50f8b59ae19d3151d26b
[ "MIT" ]
null
null
null
from tokenizer_tools.conll.entity_vocabulary import entity_vocabulary def test_entity_vocabulary(): f = entity_vocabulary(['1.txt']) expect = {'a': ['1'], 'b': ['2'], 'a1': ['11'], 'b1': ['21']} assert f == expect
25.444444
69
0.620087
30
229
4.533333
0.7
0.470588
0
0
0
0
0
0
0
0
0
0.04712
0.165939
229
8
70
28.625
0.664921
0
0
0
0
0
0.07489
0
0
0
0
0
0.2
1
0.2
false
0
0.2
0
0.4
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9006af4ce5f863a5b37beb161ff5ad56c21750d5
4,437
py
Python
nnrl/nn/model/stochastic/ensemble.py
0xangelo/nnrl
559d36b6d17425d9d657c1dffbcf070955f73afb
[ "MIT" ]
null
null
null
nnrl/nn/model/stochastic/ensemble.py
0xangelo/nnrl
559d36b6d17425d9d657c1dffbcf070955f73afb
[ "MIT" ]
7
2021-11-01T12:03:41.000Z
2022-01-08T14:55:49.000Z
nnrl/nn/model/stochastic/ensemble.py
angelolovatto/nnrl
c925af1c6ecc6e2e999b782935f7e2c7dee1ba81
[ "MIT" ]
null
null
null
"""Network and configurations for modules with stochastic model ensembles.""" from typing import List import torch from torch import Tensor, nn from torch.jit import fork, wait from nnrl.nn.distributions.types import SampleLogp from nnrl.types import TensorDict from .single import StochasticModel class SME(nn.Modu...
37.285714
88
0.643227
603
4,437
4.691542
0.200663
0.011665
0.017674
0.021209
0.622481
0.575468
0.550725
0.543302
0.543302
0.518911
0
0
0.241154
4,437
118
89
37.601695
0.840214
0.376606
0
0.479167
0
0
0.02497
0
0
0
0
0
0.020833
1
0.229167
false
0
0.145833
0.020833
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
90161c6a4f700a22c8e2eba9344d01a7518b9909
405
py
Python
nitorch/cli/viewer/main.py
balbasty/nitorch
d30c3125a8a66ea1434f2b39ed03338afd9724b4
[ "MIT" ]
46
2020-07-31T10:14:05.000Z
2022-03-24T12:51:46.000Z
nitorch/cli/viewer/main.py
balbasty/nitorch
d30c3125a8a66ea1434f2b39ed03338afd9724b4
[ "MIT" ]
36
2020-10-06T19:01:38.000Z
2022-02-03T18:07:35.000Z
nitorch/cli/viewer/main.py
balbasty/nitorch
d30c3125a8a66ea1434f2b39ed03338afd9724b4
[ "MIT" ]
6
2021-01-05T14:59:05.000Z
2021-11-18T18:26:45.000Z
from nitorch.plot import ImageViewer from nitorch.core.optionals import try_import plt = try_import('matplotlib.pyplot', _as=True) def view(files): """Interactive viewer for volumetric images. Parameters ---------- files : list[str] Inputs images. """ if plt is None: raise Imp...
22.5
53
0.669136
48
405
5.583333
0.708333
0.08209
0
0
0
0
0
0
0
0
0
0
0.217284
405
18
54
22.5
0.845426
0.249383
0
0
0
0
0.148014
0
0
0
0
0
0
1
0.125
false
0
0.5
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
9018190a8a03bf6c86336d5c03e6d03e886a1c67
338
py
Python
sfn-project/scripts/main_psql.py
rennesfreitassouza/refactored-octo-happiness
b5aa98919da8437cc976f0fad9556f0dbf9bd8d1
[ "Unlicense" ]
1
2022-03-17T20:43:41.000Z
2022-03-17T20:43:41.000Z
sfn-project/scripts/main_psql.py
rennesfreitassouza/django_space_flight_news
b5aa98919da8437cc976f0fad9556f0dbf9bd8d1
[ "Unlicense" ]
null
null
null
sfn-project/scripts/main_psql.py
rennesfreitassouza/django_space_flight_news
b5aa98919da8437cc976f0fad9556f0dbf9bd8d1
[ "Unlicense" ]
null
null
null
from request_api_data import main from coodesh_app.management.commands import load_api_data from coodesh_app.management.commands import delete_all_models_data def run(): main() delete_all_api_data = delete_all_models_data.Command() delete_all_api_data.handle() load_data = load_api_data.Command() l...
28.166667
66
0.798817
51
338
4.862745
0.352941
0.141129
0.112903
0.193548
0.306452
0.306452
0
0
0
0
0
0
0.133136
338
11
67
30.727273
0.846416
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.444444
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
9042e4416608ce88ba52fff62a7df883b16df76a
716
py
Python
ChemmineR/cron.py
TylerBackman/chemminetools
1896c2dd7362f44193528aef028390543a125921
[ "BSD-4-Clause-UC" ]
16
2015-03-24T18:34:18.000Z
2018-04-11T06:02:52.000Z
ChemmineR/cron.py
zagrosman/chemminetools
1896c2dd7362f44193528aef028390543a125921
[ "BSD-4-Clause-UC" ]
60
2019-01-03T18:15:55.000Z
2022-03-12T00:14:59.000Z
ChemmineR/cron.py
zagrosman/chemminetools
1896c2dd7362f44193528aef028390543a125921
[ "BSD-4-Clause-UC" ]
13
2018-04-25T18:25:09.000Z
2022-02-14T08:15:03.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from django_cron import CronJobBase, Schedule from datetime import datetime, timedelta from django.contrib.auth.models import User from tools.runapp import deleteJob from tools.models import Job as toolJob class deleteOldChemmineR(CronJobBase): RUN_EVERY_MINS = 4000 ...
28.64
112
0.72905
93
716
5.462366
0.55914
0.047244
0.070866
0
0
0
0
0
0
0
0
0.011885
0.177374
716
24
113
29.833333
0.850594
0.053073
0
0
0
0
0.062222
0.048889
0
0
0
0
0
1
0.066667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
5f41b8baeed0f0535176296f46b1e1fc1c3afeed
396
py
Python
tests/test_credentials.py
daniyal7915/spatial-survey-bot
740f4cda26be6882a3d36e62fec66c1b49f2a360
[ "MIT" ]
null
null
null
tests/test_credentials.py
daniyal7915/spatial-survey-bot
740f4cda26be6882a3d36e62fec66c1b49f2a360
[ "MIT" ]
null
null
null
tests/test_credentials.py
daniyal7915/spatial-survey-bot
740f4cda26be6882a3d36e62fec66c1b49f2a360
[ "MIT" ]
null
null
null
from unittest import TestCase, main from engine.utils.utils import credentials from tests.utils.data import Data, Result class CredentialsTest(TestCase, Data, Result): """Test credentials function in engine utils utils.py""" def test_credentials(self): self.assertEqual(credentials(self.data_cre...
26.4
85
0.744949
48
396
5.916667
0.458333
0.158451
0.112676
0
0
0
0
0
0
0
0
0
0.164141
396
14
86
28.285714
0.858006
0.126263
0
0
0
0
0.024024
0
0
0
0
0
0.125
1
0.125
false
0
0.375
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
5f4c901044a0f1d4d9dcc2a7d1421f5e4636883c
1,952
py
Python
tools/RNN/rnn_quantizer/tensorflow/tf_nndct/utils/tensor_utils.py
bluetiger9/Vitis-AI
a7728733bbcfc292ff3afa46b9c8b03e94b740b3
[ "Apache-2.0" ]
1
2021-04-01T06:38:48.000Z
2021-04-01T06:38:48.000Z
tools/RNN/rnn_quantizer/tensorflow/tf_nndct/utils/tensor_utils.py
bluetiger9/Vitis-AI
a7728733bbcfc292ff3afa46b9c8b03e94b740b3
[ "Apache-2.0" ]
null
null
null
tools/RNN/rnn_quantizer/tensorflow/tf_nndct/utils/tensor_utils.py
bluetiger9/Vitis-AI
a7728733bbcfc292ff3afa46b9c8b03e94b740b3
[ "Apache-2.0" ]
null
null
null
# # Copyright 2019 Xilinx Inc. # # 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 writi...
27.885714
74
0.751537
299
1,952
4.655518
0.374582
0.043103
0.060345
0.05819
0.099138
0.099138
0.051724
0
0
0
0
0.0085
0.15625
1,952
69
75
28.289855
0.836673
0.299693
0
0
0
0
0.042285
0
0
0
0
0.014493
0
1
0.194444
false
0
0.138889
0.083333
0.583333
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
5f4cc010aaa92424c0d3bc64bb7710b4b6f19c52
1,122
py
Python
src/python/WMCore/WMBS/MySQL/Monitoring/ListRunningJobs.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
src/python/WMCore/WMBS/MySQL/Monitoring/ListRunningJobs.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
src/python/WMCore/WMBS/MySQL/Monitoring/ListRunningJobs.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
#!/usr/bin/env python """ _ListRunningJobs_ Retrieve the name, time of last state change, couch record and current state for all jobs that are in the following states: none new created submitted executing """ from WMCore.Database.DBFormatter import DBFormatter class ListRunningJobs(DBFormatter): sql...
31.166667
80
0.610517
135
1,122
4.874074
0.437037
0.138298
0.182371
0.145897
0.109422
0
0
0
0
0
0
0
0.321747
1,122
35
81
32.057143
0.864652
0.187166
0
0
0
0
0.629425
0.02323
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.294118
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5f4e769842ee236698ee7198212b672339e176b3
554
py
Python
RAWPhoto/Code/CompileSettings/libraw.py
tclarke/coan
3f3b179a98afaf5b0f16fea452dbe43fe18ab0ad
[ "MIT" ]
1
2016-05-08T08:14:24.000Z
2016-05-08T08:14:24.000Z
RAWPhoto/Code/CompileSettings/libraw.py
tclarke/coan
3f3b179a98afaf5b0f16fea452dbe43fe18ab0ad
[ "MIT" ]
null
null
null
RAWPhoto/Code/CompileSettings/libraw.py
tclarke/coan
3f3b179a98afaf5b0f16fea452dbe43fe18ab0ad
[ "MIT" ]
2
2015-12-03T07:01:44.000Z
2021-04-21T07:35:38.000Z
import os import os.path import SCons.Warnings class LibRawNotFound(SCons.Warnings.Warning): pass SCons.Warnings.enableWarningClass(LibRawNotFound) def generate(env): path = env['OPTICKSDEPENDENCIESINCLUDE'] if not path: SCons.Warnings.warn(PythonFound,"Could not detect LibRaw") else: if...
24.086957
65
0.620939
62
554
5.548387
0.532258
0.151163
0
0
0
0
0
0
0
0
0
0
0.241877
554
22
66
25.181818
0.819048
0
0
0.105263
1
0
0.15343
0.046931
0
0
0
0
0
1
0.105263
false
0.052632
0.157895
0.052632
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
5f564af50aea80830fcfec61def9054bcd80629b
430
py
Python
locking/tests/models.py
liberation/django-locking
8326b4230075f6b0b1d49ef3c1b5edfd95c22101
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
locking/tests/models.py
liberation/django-locking
8326b4230075f6b0b1d49ef3c1b5edfd95c22101
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
locking/tests/models.py
liberation/django-locking
8326b4230075f6b0b1d49ef3c1b5edfd95c22101
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models from locking import models as locking_models class Story(locking_models.LockableModel): content = models.TextField(blank=True) class Meta: verbose_name_plural = 'stories' class Unlockable(models.Model): # this model serves to test that util...
22.631579
65
0.730233
57
430
5.403509
0.666667
0.077922
0.142857
0.175325
0.201299
0
0
0
0
0
0
0.002857
0.186047
430
18
66
23.888889
0.877143
0.272093
0
0.25
0
0
0.022654
0
0
0
0
0
0
1
0
false
0
0.25
0
0.875
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
5f596159b08d34aab74bef1b740da79e9b17718f
337
py
Python
test.py
SauravLChaudhari/OptiX-Master-PhoeniX-
6dffcc854db59ad5e138719c98aa560aaf4edfcb
[ "MIT" ]
10
2016-02-24T05:05:58.000Z
2020-08-28T14:15:24.000Z
test.py
SauravLChaudhari/OptiX-Master-PhoeniX-
6dffcc854db59ad5e138719c98aa560aaf4edfcb
[ "MIT" ]
null
null
null
test.py
SauravLChaudhari/OptiX-Master-PhoeniX-
6dffcc854db59ad5e138719c98aa560aaf4edfcb
[ "MIT" ]
3
2016-07-24T11:09:28.000Z
2019-04-03T18:06:11.000Z
import optix as opt from random import random import sys import numpy as np import os import subprocess subprocess.call("rm ./test/*.txt",shell=True) test_files = [f for f in os.listdir('./test/') if os.path.isfile(os.path.join('./test/',f))] for test_file in test_files: print(test_file) exec(open("./test/"+te...
25.923077
92
0.712166
58
337
4.051724
0.534483
0.102128
0
0
0
0
0
0
0
0
0
0
0.130564
337
12
93
28.083333
0.802048
0
0
0
0
0
0.106825
0
0
0
0
0
0
1
0
false
0
0.545455
0
0.545455
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
1
0
0
2
5f6b58e27cda39a358d919dccedb30449455a678
378
py
Python
setup.py
brennerm/emissions-api
577fa209ffd27476ff1ad0904ecc081564cf8f53
[ "MIT" ]
null
null
null
setup.py
brennerm/emissions-api
577fa209ffd27476ff1ad0904ecc081564cf8f53
[ "MIT" ]
null
null
null
setup.py
brennerm/emissions-api
577fa209ffd27476ff1ad0904ecc081564cf8f53
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='emissions-api', packages=find_packages(), entry_points={ 'console_scripts': [ 'emissionsapi-download=emissionsapi.download:download', 'emissionsapi-preprocess=emissionsapi.preprocess:entrypoint', 'emissions...
27
73
0.65873
32
378
7.65625
0.5625
0.097959
0
0
0
0
0
0
0
0
0
0
0.227513
378
13
74
29.076923
0.839041
0
0
0
0
0
0.481481
0.407407
0
0
0
0
0
1
0
true
0
0.083333
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
0
0
0
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
5f7bf6259f384a463433f947c2d04915e761becc
140
py
Python
pygvisuals/__init__.py
Impelon/PyGVisuals
7bff6199391ba35ad7f7afb1adc2601f57215856
[ "BSD-2-Clause" ]
11
2018-02-25T20:32:13.000Z
2022-03-29T16:43:05.000Z
pygvisuals/__init__.py
Impelon/PyGVisuals
7bff6199391ba35ad7f7afb1adc2601f57215856
[ "BSD-2-Clause" ]
13
2017-09-11T16:21:54.000Z
2020-05-06T09:57:17.000Z
pygvisuals/__init__.py
Impelon/PyGVisuals
7bff6199391ba35ad7f7afb1adc2601f57215856
[ "BSD-2-Clause" ]
7
2018-05-17T10:33:31.000Z
2020-04-16T23:35:36.000Z
""" Basepackage for PyGVisuals. """ # Module Version Number, see `PEP 396 <https://www.python.org/dev/peps/pep-0396/>` __version__ = "0.7"
20
82
0.685714
20
140
4.6
0.9
0
0
0
0
0
0
0
0
0
0
0.073171
0.121429
140
6
83
23.333333
0.674797
0.778571
0
0
0
0
0.130435
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5f88a09703b62d3f5d3ec64b00808cac3448e0fd
774
py
Python
systemrl/policies/skeleton.py
aarsheem/safe-rl
781cec96551d0cbeb049de7f9c09f069baeb66d6
[ "MIT" ]
3
2019-09-11T01:35:31.000Z
2019-09-20T00:23:35.000Z
systemrl/policies/skeleton.py
aarsheem/safe-rl
781cec96551d0cbeb049de7f9c09f069baeb66d6
[ "MIT" ]
null
null
null
systemrl/policies/skeleton.py
aarsheem/safe-rl
781cec96551d0cbeb049de7f9c09f069baeb66d6
[ "MIT" ]
17
2019-09-12T02:16:40.000Z
2019-10-06T18:32:48.000Z
from abc import ABC, abstractmethod class Policy(ABC): """ A reinforcement learning policy. A Policy is a decision-making rule in reinforcement learning. An Agent can use a Policy to select actions to take in an environment. """ @abstractmethod def __call__(self, state, action=Non...
29.769231
77
0.607235
89
774
5.235955
0.516854
0.120172
0.06867
0.094421
0.296137
0.137339
0.137339
0
0
0
0
0
0.350129
774
25
78
30.96
0.926441
0.669251
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0.2
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
1
0
0
1
0
0
2
5f8b5da924860c13b6d805654a67fcb0c02efca0
140
py
Python
describe/data.py
xxxspy/describe
3ca9bba1b2dcafe26f509130428db1e6c0b20107
[ "MIT" ]
null
null
null
describe/data.py
xxxspy/describe
3ca9bba1b2dcafe26f509130428db1e6c0b20107
[ "MIT" ]
null
null
null
describe/data.py
xxxspy/describe
3ca9bba1b2dcafe26f509130428db1e6c0b20107
[ "MIT" ]
null
null
null
def des_dict(data: dict): parts = [] for k,v in data.items(): parts.append('{}={}'.format(k, v)) return '&'.join(parts)
23.333333
42
0.528571
20
140
3.65
0.7
0.054795
0
0
0
0
0
0
0
0
0
0
0.242857
140
6
43
23.333333
0.688679
0
0
0
0
0
0.042857
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5f8d388000e1c609f24c688c3766efd9143e7e5b
689
py
Python
python_telegram_bot_django_persistence/admin.py
GamePad64/python-telegram-bot-django-persistence
2e3df01f7f03c12680bfad9a991c3c69f8646fb1
[ "MIT" ]
5
2021-07-27T10:38:43.000Z
2022-03-18T00:46:41.000Z
python_telegram_bot_django_persistence/admin.py
GamePad64/python-telegram-bot-django-persistence
2e3df01f7f03c12680bfad9a991c3c69f8646fb1
[ "MIT" ]
8
2021-09-02T02:16:55.000Z
2021-12-14T17:59:50.000Z
python_telegram_bot_django_persistence/admin.py
GamePad64/python-telegram-bot-django-persistence
2e3df01f7f03c12680bfad9a991c3c69f8646fb1
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import BotData, CallbackData, ChatData, ConversationData, UserData @admin.register(BotData) class BotDataAdmin(admin.ModelAdmin): list_display = ("namespace", "data") @admin.register(ChatData) class ChatDataAdmin(admin.ModelAdmin): list_display = ("namespace", ...
23.758621
79
0.756168
71
689
7.239437
0.394366
0.126459
0.184825
0.252918
0.406615
0.202335
0.202335
0.202335
0
0
0
0
0.114659
689
28
80
24.607143
0.842623
0
0
0.117647
0
0
0.107402
0
0
0
0
0
0
1
0
false
0
0.117647
0
0.705882
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5fb8dbb92b3dd6395c97cd3a84feef6101e1ce4a
131,152
py
Python
test_files/TestTemplateBots.py
salesforce/Converse
cd79eee1485824c2924ca47f95afebc7e816928a
[ "BSD-3-Clause" ]
15
2022-03-24T02:25:29.000Z
2022-03-30T06:55:06.000Z
test_files/TestTemplateBots.py
salesforce/Converse
cd79eee1485824c2924ca47f95afebc7e816928a
[ "BSD-3-Clause" ]
null
null
null
test_files/TestTemplateBots.py
salesforce/Converse
cd79eee1485824c2924ca47f95afebc7e816928a
[ "BSD-3-Clause" ]
1
2022-03-24T08:34:21.000Z
2022-03-24T08:34:21.000Z
# Copyright (c) 2020, salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root # or https://opensource.org/licenses/BSD-3-Clause import unittest from unittest.mock import patch import uuid from Converse.dialog_context.dialog_con...
36.209829
273
0.260202
7,643
131,152
4.386759
0.092503
0.021624
0.039042
0.023264
0.790056
0.746391
0.694703
0.644775
0.602541
0.575161
0
0.097897
0.612831
131,152
3,621
274
36.219829
0.562389
0.006489
0
0.688432
0
0.001126
0.209465
0.019539
0
0
0
0
0.003659
1
0.001689
false
0.000281
0.001407
0
0.003377
0.001126
0
0
0
null
0
0
0
0
1
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
2
396cb9da343e622dae53577b39bdf87746e67ae9
594
py
Python
Arrays And Lists/Pair Sum.py
SaiPrasanth212/Coding-ninjas-Introduction-To-Python
f6aabc3b7b0f2ae82e2870c8f2bd1f37e3fe3005
[ "MIT" ]
2
2021-12-13T19:28:40.000Z
2022-03-07T16:36:29.000Z
Arrays And Lists/Pair Sum.py
SaiPrasanth212/Coding-ninjas-Introduction-To-Python
f6aabc3b7b0f2ae82e2870c8f2bd1f37e3fe3005
[ "MIT" ]
null
null
null
Arrays And Lists/Pair Sum.py
SaiPrasanth212/Coding-ninjas-Introduction-To-Python
f6aabc3b7b0f2ae82e2870c8f2bd1f37e3fe3005
[ "MIT" ]
null
null
null
from sys import stdin def pairSum(arr, n, x): numPairs = 0 for i in range(n): for j in range((i+1), n) : if arr[i] + arr[j] == x : numPairs += 1 return numPairs #Taking Input Using Fast I/O def takeInput() : n = int(stdin.readline().strip()) if n == 0 :...
18
61
0.515152
87
594
3.517241
0.402299
0.052288
0.20915
0.27451
0
0
0
0
0
0
0
0.01737
0.321549
594
32
62
18.5625
0.741935
0.052189
0
0
0
0
0.001786
0
0
0
0
0
0
1
0.1
false
0
0.05
0
0.3
0.05
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
396f90fd6e9243ac81afbb9fd5dcf5df5edf2c88
679
py
Python
mics/__init__.py
ericazhou7/uSurvey
1236f33355662957e7e1e769dde1811b910673a5
[ "BSD-3-Clause" ]
5
2016-08-25T12:48:54.000Z
2018-08-16T22:49:43.000Z
mics/__init__.py
ericazhou7/uSurvey
1236f33355662957e7e1e769dde1811b910673a5
[ "BSD-3-Clause" ]
2
2016-08-11T06:43:56.000Z
2016-12-08T09:11:36.000Z
mics/__init__.py
ericazhou7/uSurvey
1236f33355662957e7e1e769dde1811b910673a5
[ "BSD-3-Clause" ]
7
2016-09-16T11:03:44.000Z
2020-10-28T22:01:20.000Z
# # register a signal do update permissions every migration. # # This is based on app django_extensions update_permissions command # from south.signals import post_migrate # # def update_permissions_after_migration(app,**kwargs): # """ # Update app permission just after every migration. # This is based on a...
39.941176
83
0.762887
88
679
5.681818
0.465909
0.17
0.072
0.08
0.252
0.252
0.252
0.252
0.252
0.252
0
0.003509
0.16053
679
16
84
42.4375
0.873684
0.946981
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
397b72899f265820f7e550f627fab141d751ded4
98
py
Python
path_find.py
igorjakus/path-finder
6910112806279607f030fd34eef0a3a9777102bf
[ "MIT" ]
null
null
null
path_find.py
igorjakus/path-finder
6910112806279607f030fd34eef0a3a9777102bf
[ "MIT" ]
null
null
null
path_find.py
igorjakus/path-finder
6910112806279607f030fd34eef0a3a9777102bf
[ "MIT" ]
null
null
null
from algorithm import A_Star if __name__ == '__main__': algo = A_Star() algo.find_path()
16.333333
28
0.673469
14
98
3.928571
0.785714
0.181818
0
0
0
0
0
0
0
0
0
0
0.214286
98
5
29
19.6
0.714286
0
0
0
0
0
0.081633
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
397f99e67d0c485df0d816cfb93c51e3838d439b
3,348
py
Python
tools/format/formatters/base/file_formatter.py
ChrisCummins/format
d42b4dafcd7c4b187311473f1b446e0ca1988b12
[ "Apache-2.0" ]
null
null
null
tools/format/formatters/base/file_formatter.py
ChrisCummins/format
d42b4dafcd7c4b187311473f1b446e0ca1988b12
[ "Apache-2.0" ]
12
2020-01-12T11:55:03.000Z
2020-01-17T01:00:23.000Z
tools/format/formatters/base/file_formatter.py
ChrisCummins/format
d42b4dafcd7c4b187311473f1b446e0ca1988b12
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Chris Cummins <chrisc.101@gmail.com>. # # 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 ...
33.48
80
0.715352
456
3,348
5.190789
0.423246
0.025349
0.019011
0.024081
0
0
0
0
0
0
0
0.005224
0.199522
3,348
99
81
33.818182
0.877985
0.612306
0
0
0
0
0.020193
0
0
0
0
0
0
1
0.214286
false
0.035714
0.178571
0
0.607143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
39a32a8809cca77194e91f9936eb56cad98664cb
568
py
Python
zero/process/mutate.py
arXiv/arxiv-zero
c06f209c92f61e6a1b0d88f0d6d4ad0f89bf6e16
[ "MIT" ]
4
2019-05-26T22:57:40.000Z
2021-11-05T12:33:16.000Z
zero/process/mutate.py
arXiv/arxiv-zero
c06f209c92f61e6a1b0d88f0d6d4ad0f89bf6e16
[ "MIT" ]
19
2017-11-30T20:20:49.000Z
2018-08-24T17:27:09.000Z
zero/process/mutate.py
cul-it/arxiv-zero
c06f209c92f61e6a1b0d88f0d6d4ad0f89bf6e16
[ "MIT" ]
5
2019-01-10T22:02:11.000Z
2021-11-05T12:33:05.000Z
"""Provides functions that mutate domain objects.""" import random from zero.domain import Thing, Baz def add_some_one_to_the_thing(the_thing: Thing) -> None: """ Add some ones to the name of a :class:`.Thing`. Parameters ---------- the_thing : :class:`.Thing` """ the_thing.name += "1" ...
19.586207
57
0.596831
77
568
4.207792
0.415584
0.098765
0.080247
0
0
0
0
0
0
0
0
0.011416
0.228873
568
29
58
19.586207
0.728311
0.403169
0
0
0
0
0.007299
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
0
0
0
2
39aa3c64952f3eda08578db97f551440647c7982
1,703
py
Python
base/profiler.py
aqover/ipfix-receiver
4d489ffe381191d0c769ad74d0e43461d13ecd89
[ "BSD-2-Clause" ]
6
2015-11-17T11:49:03.000Z
2021-02-20T03:10:20.000Z
base/profiler.py
aqover/ipfix-receiver
4d489ffe381191d0c769ad74d0e43461d13ecd89
[ "BSD-2-Clause" ]
2
2017-07-19T12:18:58.000Z
2017-07-19T12:19:42.000Z
base/profiler.py
aqover/ipfix-receiver
4d489ffe381191d0c769ad74d0e43461d13ecd89
[ "BSD-2-Clause" ]
2
2018-05-18T12:31:31.000Z
2018-10-09T07:29:05.000Z
# Copyright (c) 2014 Alexander Bredo # All rights reserved. # # Redistribution and use in source and binary forms, with or # without modification, are permitted provided that the # following conditions are met: # # 1. Redistributions of source code must retain the above # copyright notice, this list of conditions ...
34.755102
98
0.728714
240
1,703
5.133333
0.5625
0.029221
0.027597
0.037338
0.149351
0.11039
0.11039
0.11039
0.11039
0.11039
0
0.012472
0.199648
1,703
49
99
34.755102
0.891416
0.770405
0
0
0
0
0.097973
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.555556
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
39ab270d5cfbbe21429e4e40c3c15d6f138d71fb
1,169
py
Python
Python3Lab/zarathustra/MyModule.py
Yurisegye/HelloPython3
8ccd2a823798a9f49f29a3ec888a47272a136b91
[ "Apache-2.0" ]
null
null
null
Python3Lab/zarathustra/MyModule.py
Yurisegye/HelloPython3
8ccd2a823798a9f49f29a3ec888a47272a136b91
[ "Apache-2.0" ]
null
null
null
Python3Lab/zarathustra/MyModule.py
Yurisegye/HelloPython3
8ccd2a823798a9f49f29a3ec888a47272a136b91
[ "Apache-2.0" ]
null
null
null
# 모듈 사용하기 # 프로그램을 구성하는 독립 단위(함수/클래스)를 # 각각 정의하고 관리하는 방법 # 자주 사용하는 기본 기능은 모듈로 한번 말들어 두면 # 필요할 때마다 도입하여 활용할 수 있다. # 모듈: 관련 있는 데이터들, 함수, 클래스 # 모듈을 사용하려면 import 명령으로 # 인터프리터(통역사)에게 사용여부를 알려야 한다. # import Lab03 # 자신이 작성한 함수가 담긴 파일 # import random as r # 별칭으로 줄여 쓰기 from random import randint # 모듈명을 아예 줄이기 # from ...
22.056604
42
0.689478
223
1,169
3.596413
0.659193
0.029925
0.052369
0.05611
0
0
0
0
0
0
0
0.013274
0.226689
1,169
53
43
22.056604
0.873894
0.727117
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
39ae5651bd3c2b7194692eaa38c9850a994b752a
4,447
py
Python
notifications/migrations/0014_auto_20200917_1300.py
pnuz3n/respa
0f48eb9bec18013b27970b44b8648f03eee8dcf4
[ "MIT" ]
1
2019-12-17T10:02:17.000Z
2019-12-17T10:02:17.000Z
notifications/migrations/0014_auto_20200917_1300.py
pnuz3n/respa
0f48eb9bec18013b27970b44b8648f03eee8dcf4
[ "MIT" ]
38
2020-01-24T11:30:53.000Z
2022-01-28T12:42:47.000Z
notifications/migrations/0014_auto_20200917_1300.py
digipointtku/respa
a529e0df4d3f072df7801adb5bf97a5f4abd1243
[ "MIT" ]
14
2020-02-26T08:17:34.000Z
2021-09-14T07:57:21.000Z
# Generated by Django 2.2.11 on 2020-09-17 10:00 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
87.196078
1,704
0.722959
475
4,447
6.536842
0.256842
0.122383
0.067633
0.054106
0.476006
0.378744
0.229308
0.204187
0.204187
0.183897
0
0.011762
0.158759
4,447
50
1,705
88.94
0.81823
0.010344
0
0.204545
1
0.022727
0.485565
0.185269
0
0
0
0
0
1
0
false
0
0.090909
0
0.159091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
39b1da2bf90eb878573446584380138e4252073b
1,153
py
Python
apps/api/models.py
bmanzella/zhuartcc.org
4c8104894dd6a9124a6181ac357a53ec5d0b1a28
[ "MIT" ]
null
null
null
apps/api/models.py
bmanzella/zhuartcc.org
4c8104894dd6a9124a6181ac357a53ec5d0b1a28
[ "MIT" ]
7
2020-11-26T05:02:12.000Z
2020-12-07T19:49:44.000Z
apps/api/models.py
bmanzella/pacificcontrol.net
4c8104894dd6a9124a6181ac357a53ec5d0b1a28
[ "MIT" ]
null
null
null
from django.db import models from ..user.models import User class Controller(models.Model): user = models.ForeignKey(User, models.CASCADE, related_name='controller_online') callsign = models.CharField(max_length=16) online_since = models.DateTimeField() last_update = models.DateTimeField() def c...
28.121951
86
0.676496
133
1,153
5.691729
0.323308
0.06605
0.05284
0.063408
0.372523
0.372523
0.232497
0.153236
0.153236
0
0
0.004425
0.215958
1,153
40
87
28.825
0.832965
0
0
0.2
0
0
0.113617
0.036427
0
0
0
0
0
1
0.166667
false
0
0.066667
0.133333
0.733333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
39c4aca5018b966a5f405e9643c91e51b35aae83
241
py
Python
config.py
alphalzZ/AnomalDetector
d4f4b543b18d6323d5e885414aa4bdc6e64943f3
[ "Apache-2.0" ]
null
null
null
config.py
alphalzZ/AnomalDetector
d4f4b543b18d6323d5e885414aa4bdc6e64943f3
[ "Apache-2.0" ]
null
null
null
config.py
alphalzZ/AnomalDetector
d4f4b543b18d6323d5e885414aa4bdc6e64943f3
[ "Apache-2.0" ]
null
null
null
import argparse def get_args(): parse = argparse.ArgumentParser() parse.add_argument('--infile', type=str, default=u"", help='Data path.') parse.add_argument('--Single', type=bool, default=True, help='Single/Multi load.')
34.428571
87
0.676349
31
241
5.16129
0.709677
0.1
0.2
0
0
0
0
0
0
0
0
0
0.149378
241
6
88
40.166667
0.780488
0
0
0
0
0
0.187234
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
39cb958a386ccdc61c057dfbede7f60f3a581551
1,399
py
Python
examples/poll_device_health.py
hashtagcyber/pyexclient
6921fc3f294daa0704e7035ba7b324cfea79d934
[ "BSD-2-Clause" ]
5
2020-10-27T13:32:14.000Z
2022-02-08T23:30:11.000Z
examples/poll_device_health.py
hashtagcyber/pyexclient
6921fc3f294daa0704e7035ba7b324cfea79d934
[ "BSD-2-Clause" ]
7
2021-01-15T16:30:58.000Z
2022-01-24T20:35:31.000Z
examples/poll_device_health.py
hashtagcyber/pyexclient
6921fc3f294daa0704e7035ba7b324cfea79d934
[ "BSD-2-Clause" ]
7
2020-10-27T13:23:27.000Z
2021-06-10T14:56:04.000Z
''' Script: Poll Unhealthy Devices Version: 1.0 Usage: python poll_device_health.py ''' import time import argparse import sys import getpass from datetime import datetime from datetime import timedelta from pyexclient import WorkbenchClient from pyexclient.workbench import neq from pyexclient.workbench impo...
25.907407
150
0.665475
170
1,399
5.370588
0.494118
0.061336
0.075575
0.09529
0
0
0
0
0
0
0
0.005566
0.22945
1,399
53
151
26.396226
0.841373
0.08649
0
0
0
0
0.193136
0.021548
0
0
0
0
0
1
0.0625
false
0.09375
0.3125
0
0.40625
0.09375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
2
39cc1c5d9ada9f39fe74b14467d454431a53d73f
1,991
py
Python
bioimageit_gui/experiment/_states.py
bioimageit/bioimageit_gui
3073cd33f0a3160b4aab8e3634b8e999bbe0f6bf
[ "BSD-4-Clause" ]
null
null
null
bioimageit_gui/experiment/_states.py
bioimageit/bioimageit_gui
3073cd33f0a3160b4aab8e3634b8e999bbe0f6bf
[ "BSD-4-Clause" ]
1
2021-10-30T14:38:14.000Z
2021-10-30T14:38:14.000Z
bioimageit_gui/experiment/_states.py
bioimageit/bioimageit_gui
3073cd33f0a3160b4aab8e3634b8e999bbe0f6bf
[ "BSD-4-Clause" ]
null
null
null
from bioimageit_gui.core.framework import BiStates class BiExperimentStates(BiStates): ImportClicked = "BiExperimentStates.ImportClicked" TagClicked = "BiExperimentStates.TagClicked" ProcessClicked = "BiExperimentStates.ProcessClicked" Load = "BiExperimentStates.Load" Loaded = "BiExperimentSta...
51.051282
84
0.810146
110
1,991
14.654545
0.381818
0
0
0
0
0
0
0
0
0
0
0
0.121045
1,991
39
85
51.051282
0.921143
0
0
0
0
0
0.548193
0.548193
0
0
0
0
0
1
0
false
0
0.2
0
1.171429
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
39d3bcc1cffccda1e8608cd127897847334c3360
2,708
py
Python
django_town/social/apis/page.py
uptown/django-town
4c3b078a8ce5dcc275d65faa4a1cdfb7ebc74a50
[ "MIT" ]
null
null
null
django_town/social/apis/page.py
uptown/django-town
4c3b078a8ce5dcc275d65faa4a1cdfb7ebc74a50
[ "MIT" ]
null
null
null
django_town/social/apis/page.py
uptown/django-town
4c3b078a8ce5dcc275d65faa4a1cdfb7ebc74a50
[ "MIT" ]
null
null
null
from django_town.rest import RestDocumentApiView, RestQuerySetCollectionApiView from django_town.social.resources.page import PageResource, PageLikeResource, PageFeedResource, page_feeds_cache from django_town.social.resources.post import PostResource from django_town.social.oauth2.permissions import OAuth2Authenticate...
34.278481
112
0.679838
278
2,708
6.446043
0.251799
0.035714
0.041853
0.053013
0.618304
0.569754
0.551897
0.551897
0.510045
0.510045
0
0.00366
0.192762
2,708
78
113
34.717949
0.816102
0
0
0.571429
0
0
0.073513
0
0
0
0
0
0
1
0.178571
false
0
0.071429
0.125
0.767857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
39e41739e73f6cd9dea9cbee11133a40fb1c9d61
454
py
Python
nicefacelib/src/utils/GLUtils.py
eugenexlin/nice-face
c10bac3420414715aee9ed6f6b496e78bcb81f76
[ "MIT" ]
null
null
null
nicefacelib/src/utils/GLUtils.py
eugenexlin/nice-face
c10bac3420414715aee9ed6f6b496e78bcb81f76
[ "MIT" ]
null
null
null
nicefacelib/src/utils/GLUtils.py
eugenexlin/nice-face
c10bac3420414715aee9ed6f6b496e78bcb81f76
[ "MIT" ]
null
null
null
def getIndicesForSquareMeshDegenerateTriangles(countX, countY): indices = [] for y in range(countY - 1): currentRowIndex = y*countX nextRowIndex = currentRowIndex + countX for x in range(countX): indices.append(currentRowIndex + x) indices.append(nextRowIndex + x) # if it is not the last row, add in de...
28.375
63
0.731278
55
454
6.036364
0.454545
0.156627
0.225904
0.156627
0
0
0
0
0
0
0
0.008086
0.182819
454
15
64
30.266667
0.886792
0.118943
0
0
1
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.166667
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f2e2a1c7d34c84848e2274fdafefb998b60ff728
1,346
py
Python
tests/313.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
tests/313.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
tests/313.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
solution = __import__('solutions.313_super_ugly_number', fromlist='*') from math import pow def test_solution(): s = solution.Solution() primes = [2, 3, 5] assert s.nthSuperUglyNumber(1, primes) == 1 assert s.nthSuperUglyNumber(2, primes) == 2 assert s.nthSuperUglyNumber(3, primes) == 3 assert...
44.866667
163
0.687964
191
1,346
4.806283
0.397906
0.160131
0.571895
0.084967
0.058824
0
0
0
0
0
0
0.173759
0.161961
1,346
29
164
46.413793
0.640071
0
0
0
0
0
0.023774
0.023031
0
0
0
0
0.807692
1
0.038462
false
0
0.076923
0
0.115385
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
2
f2e539f147958b3861bf963b9eb0e4984623bd74
14,216
py
Python
smacha/test/smacha_generated_py/smacha_test_examples/callbacks_shorthand_generate_output.py
ReconCell/smacha
253215a35d2d091bf50c28c1ba876209b82d2400
[ "BSD-3-Clause" ]
16
2019-04-16T07:44:30.000Z
2022-03-10T08:04:45.000Z
smacha/test/smacha_generated_py/smacha_test_examples/callbacks_shorthand_generate_output.py
ReconCell/smacha
253215a35d2d091bf50c28c1ba876209b82d2400
[ "BSD-3-Clause" ]
2
2019-07-18T09:11:00.000Z
2019-09-26T10:21:26.000Z
smacha_ros/test/smacha_generated_py/smacha_test_examples/callbacks_shorthand_generate_output.py
ReconCell/smacha
253215a35d2d091bf50c28c1ba876209b82d2400
[ "BSD-3-Clause" ]
2
2019-08-21T20:14:54.000Z
2019-09-19T13:26:34.000Z
#!/usr/bin/env python import roslib import rospy import smach import smach_ros import random # Define normal callback for 'animals' output key @smach.cb_interface(input_keys=['animals'], output_keys=['animals'], outcomes=['succeeded']) def foo_animals_cb(userdata): use...
38.630435
523
0.666854
1,609
14,216
5.481666
0.066501
0.065306
0.04127
0.07619
0.870181
0.83356
0.693197
0.623016
0.584354
0.555442
0
0.103354
0.226154
14,216
368
524
38.630435
0.698391
0.015335
0
0.570136
0
0
0.153874
0.050815
0
0
0
0
0
1
0.085973
false
0
0.022624
0
0.190045
0
0
0
0
null
0
0
0
1
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
2
840a020f43013cf2db3a4056102b4a003e7e1581
137
py
Python
Days/Day 1 - Chronal Calibration/Part 1.py
jamesjiang52/Advent-of-Code-2018
d2331a8133866335721af1379a62c3880114d07d
[ "MIT" ]
null
null
null
Days/Day 1 - Chronal Calibration/Part 1.py
jamesjiang52/Advent-of-Code-2018
d2331a8133866335721af1379a62c3880114d07d
[ "MIT" ]
null
null
null
Days/Day 1 - Chronal Calibration/Part 1.py
jamesjiang52/Advent-of-Code-2018
d2331a8133866335721af1379a62c3880114d07d
[ "MIT" ]
null
null
null
def main(): f = [line.rstrip("\n") for line in open("Data.txt")] print(sum(map(int, f))) if __name__ == "__main__": main()
17.125
56
0.554745
21
137
3.238095
0.809524
0
0
0
0
0
0
0
0
0
0
0
0.218978
137
7
57
19.571429
0.635514
0
0
0
0
0
0.131387
0
0
0
0
0
0
1
0.2
false
0
0
0
0.2
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
840ccedcd6500515d75886b401e8ed0dfd77c6e1
287
py
Python
admin_panel/users_app/api_views.py
id2k1149/survey_maker
9a367466f695b56f26814d06fe903577ff8f2c8f
[ "MIT" ]
null
null
null
admin_panel/users_app/api_views.py
id2k1149/survey_maker
9a367466f695b56f26814d06fe903577ff8f2c8f
[ "MIT" ]
6
2021-06-08T21:48:05.000Z
2022-03-12T00:34:55.000Z
admin_panel/users_app/api_views.py
id2k1149/survey_maker
9a367466f695b56f26814d06fe903577ff8f2c8f
[ "MIT" ]
null
null
null
from .models import User from .serializer import UserSerializer from rest_framework import viewsets # ViewSets define the view behavior. class UserViewSet(viewsets.ModelViewSet): queryset = User.objects.prefetch_related('companies', 'groups') serializer_class = UserSerializer
28.7
67
0.804878
32
287
7.125
0.6875
0
0
0
0
0
0
0
0
0
0
0
0.12892
287
9
68
31.888889
0.912
0.118467
0
0
0
0
0.059761
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
84125e5d172ba03e972aca738783a37a2f4297d3
294
py
Python
Exercicios/ex050.py
luisgnc/Python-Exercises
94979abb3ca1515145bde54ecd2f784e5d903219
[ "MIT" ]
null
null
null
Exercicios/ex050.py
luisgnc/Python-Exercises
94979abb3ca1515145bde54ecd2f784e5d903219
[ "MIT" ]
null
null
null
Exercicios/ex050.py
luisgnc/Python-Exercises
94979abb3ca1515145bde54ecd2f784e5d903219
[ "MIT" ]
null
null
null
soma_valores = 0 contagem_valores = 1 for valores in range(1, 7): valores = int(input(f'Digite o {contagem_valores}º valor: ')) if valores % 2 == 0: soma_valores += valores contagem_valores += 1 print(f'Você informou {contagem_valores} números e a soma foi {soma_valores}')
32.666667
78
0.690476
45
294
4.355556
0.533333
0.306122
0.163265
0
0
0
0
0
0
0
0
0.029787
0.20068
294
8
79
36.75
0.804255
0
0
0
0
0
0.353742
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
841879f8b418f3c56dd4ae49c4a7490dd8458448
454
py
Python
fastapi_module/enhanced_cbd.py
lqmanh/fastapi-alt-controller
b7370850f9f95e5fdebaf9c211f5dee1dc729a96
[ "MIT" ]
1
2021-06-10T08:32:32.000Z
2021-06-10T08:32:32.000Z
fastapi_module/enhanced_cbd.py
lqmanh/fastapi-alt-controller
b7370850f9f95e5fdebaf9c211f5dee1dc729a96
[ "MIT" ]
13
2021-08-28T08:02:52.000Z
2022-03-01T01:07:13.000Z
fastapi_module/enhanced_cbd.py
lqmanh/fastapi-module
b7370850f9f95e5fdebaf9c211f5dee1dc729a96
[ "MIT" ]
null
null
null
from typing import TypeVar from .types import InitializedError from .utils import make_cls_accept_cls_annotated_deps T = TypeVar("T") def enhanced_cbd(cls: type[T]) -> type[T]: """ Decorator that enhances class-based dependencies. """ if getattr(cls, "__fastapi_enhanced_cbd__", False): raise...
25.222222
58
0.740088
59
454
5.237288
0.525424
0.106796
0.084142
0.10356
0.187702
0.187702
0
0
0
0
0
0
0.165198
454
17
59
26.705882
0.815303
0.10793
0
0
0
0
0.125964
0.123393
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
843b2ee110666db2c472d6b705bc0a94ad660e49
4,502
py
Python
torchpcp/modules/KPConv.py
Obarads/torch_point_cloud
86e19cc5c1196f22f609f2d98504b913272cbba8
[ "MIT" ]
1
2021-04-28T13:01:30.000Z
2021-04-28T13:01:30.000Z
torchpcp/modules/KPConv.py
Obarads/torchpcp
86e19cc5c1196f22f609f2d98504b913272cbba8
[ "MIT" ]
null
null
null
torchpcp/modules/KPConv.py
Obarads/torchpcp
86e19cc5c1196f22f609f2d98504b913272cbba8
[ "MIT" ]
null
null
null
# import math # import torch # from torch import nn # # https://github.com/HuguesTHOMAS/KPConv-PyTorch/blob/master/models/blocks.py # class KPConv(nn.Module): # def __init__(self, in_channel, out_channel, kernel_size): # super().__init__() # self.weights = nn.Parameter( # torch.zeros(...
38.810345
116
0.605064
547
4,502
4.760512
0.301645
0.042243
0.018433
0.026114
0.097542
0.075269
0.056068
0.056068
0.042243
0.042243
0
0.011275
0.29076
4,502
115
117
39.147826
0.804259
0.950244
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
843da9ff23a30050a3fc9750a3ad3f974deca223
455
py
Python
resdk/data_upload/_register.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
resdk/data_upload/_register.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
resdk/data_upload/_register.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
"""Patch ReSDK Resolwe objects with import methods.""" from resdk.data_upload.annotate_samples import annotate_samples, export_annotation from resdk.data_upload.multiplexed import upload_demulti from resdk.data_upload.reads import upload_reads from resdk.resources import Collection Collection.annotate = annotate_samp...
37.916667
82
0.865934
58
455
6.534483
0.327586
0.094987
0.102902
0.150396
0
0
0
0
0
0
0
0
0.083516
455
11
83
41.363636
0.908873
0.105495
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
844771cc6ff13f5333667e01914296e2cf80e760
966
py
Python
test/test_data_loader.py
wh1210/robot-data-visualizer
ebb59687233a8d09c8ed327c66ed1d69c4623136
[ "MIT" ]
null
null
null
test/test_data_loader.py
wh1210/robot-data-visualizer
ebb59687233a8d09c8ed327c66ed1d69c4623136
[ "MIT" ]
13
2018-11-20T22:55:39.000Z
2022-03-11T23:36:18.000Z
test/test_data_loader.py
wh1210/robot-data-visualizer
ebb59687233a8d09c8ed327c66ed1d69c4623136
[ "MIT" ]
2
2018-11-09T01:48:07.000Z
2018-12-29T23:10:53.000Z
import unittest import numpy as np import sys sys.path.append('.') sys.path.append('..') import tools.data_manager as DM class BasicTest(unittest.TestCase): def setUp(self): self.Datamanager = DM.DataManager('2013-01-10') self.Datamanager.setup_data_files('sensor_data') self.Datamanager.loa...
35.777778
105
0.682195
128
966
4.976563
0.382813
0.211931
0.178964
0.216641
0.463108
0.463108
0.434851
0.370487
0.301413
0.150706
0
0.087698
0.150104
966
26
106
37.153846
0.688185
0
0
0
0
0
0.070466
0
0
0
0
0
0.285714
1
0.142857
false
0
0.190476
0
0.380952
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
84544e2f7ae89a87019a9464be6c870e49ecd883
75
py
Python
custom_components/solarmanager/const.py
SimonLovskog/SolarManager-HA
7de6658051ef45b5e1518cb17bf9a43ad7a252a5
[ "MIT" ]
null
null
null
custom_components/solarmanager/const.py
SimonLovskog/SolarManager-HA
7de6658051ef45b5e1518cb17bf9a43ad7a252a5
[ "MIT" ]
null
null
null
custom_components/solarmanager/const.py
SimonLovskog/SolarManager-HA
7de6658051ef45b5e1518cb17bf9a43ad7a252a5
[ "MIT" ]
null
null
null
"""Constants for the SolarManager integration.""" DOMAIN = "solarmanager"
18.75
49
0.746667
7
75
8
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.12
75
3
50
25
0.848485
0.573333
0
0
0
0
0.461538
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
84546a4a823c80745fce02cdbae3601e9c1ee3ea
51,437
py
Python
pysnmp/BAS-OSPF-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/BAS-OSPF-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/BAS-OSPF-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module BAS-OSPF-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BAS-OSPF-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:17:47 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019,...
119.343387
8,170
0.753407
5,914
51,437
6.552418
0.065945
0.011148
0.015638
0.019509
0.401925
0.360429
0.289851
0.277773
0.20962
0.191814
0
0.082007
0.089663
51,437
430
8,171
119.62093
0.745563
0.006182
0
0.026699
0
0
0.116005
0.011915
0
0
0
0
0
1
0
false
0
0.024272
0
0.099515
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
845abdbb035ee29eb9c264c236a671e1ba9b597c
760
py
Python
chart_data_extractor/scraper_service.py
PruthviKumarBK/chart_data_extractor
e3ba654da75214651efc40055988a94e96d58b35
[ "MIT" ]
5
2018-06-29T14:02:16.000Z
2021-05-26T09:55:30.000Z
chart_data_extractor/scraper_service.py
PruthviKumarBK/chart_data_extractor
e3ba654da75214651efc40055988a94e96d58b35
[ "MIT" ]
1
2022-02-07T23:18:23.000Z
2022-02-07T23:18:23.000Z
chart_data_extractor/scraper_service.py
1x-eng/chart_data_extractor
5e96759964e2612e220824c5c651c24c6fe3937f
[ "MIT" ]
8
2018-08-21T10:20:18.000Z
2021-06-27T07:05:39.000Z
""" Author: Pruthvi Kumar BK Email: pruthvikumar.123@gmail.com Date: June 18, 2018 This is the main file for Gunicorn. This file contains all the routes to respective scraper methods. PS: chart_data_extractor must be marked as source directory for imports to be functional. """ import falcon from falcon_cors import C...
34.545455
100
0.810526
99
760
6.131313
0.626263
0.029654
0.056013
0
0
0
0
0
0
0
0
0.020649
0.107895
760
21
101
36.190476
0.874631
0.397368
0
0
0
0
0.093333
0.048889
0
0
0
0
0
1
0
false
0
0.555556
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
845b45ccbd61354df8a40613f0f21bbdd738086a
680
py
Python
tests/test.py
myleshk/heat_index_calculator
f973b0b906485787d1e3432d6a5b024712a5c3bb
[ "MIT" ]
2
2020-06-30T05:22:37.000Z
2020-09-09T04:38:24.000Z
tests/test.py
myleshk/heat_index_calculator
f973b0b906485787d1e3432d6a5b024712a5c3bb
[ "MIT" ]
null
null
null
tests/test.py
myleshk/heat_index_calculator
f973b0b906485787d1e3432d6a5b024712a5c3bb
[ "MIT" ]
1
2021-12-03T13:42:20.000Z
2021-12-03T13:42:20.000Z
import unittest from heat_index import calculate class TestCalculateMethods(unittest.TestCase): def test_celsius(self): self.assertEqual( round(calculate.from_celsius( 28, 60 ), 2), 30.01) self.assertEqual( round(calculate.from_celsius( ...
22.666667
46
0.527941
68
680
5.058824
0.455882
0.174419
0.232558
0.337209
0.52907
0.52907
0.505814
0
0
0
0
0.08
0.375
680
29
47
23.448276
0.729412
0
0
0.347826
0
0
0.011765
0
0
0
0
0
0.173913
1
0.086957
false
0
0.086957
0
0.217391
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ffbebc8992a2f8e3dba51a1943c8de245d0a318b
101
py
Python
Interest.py
Comp-Sci-Principles-2018-19/chapter-2-exercises-justishawkins
3b83a8250abf086da2e1c1270d2bdd53d2fee5cf
[ "MIT" ]
null
null
null
Interest.py
Comp-Sci-Principles-2018-19/chapter-2-exercises-justishawkins
3b83a8250abf086da2e1c1270d2bdd53d2fee5cf
[ "MIT" ]
1
2018-11-07T16:55:35.000Z
2018-11-07T16:55:35.000Z
Interest.py
Comp-Sci-Principles-2018-19/chapter-2-exercises-justishawkins
3b83a8250abf086da2e1c1270d2bdd53d2fee5cf
[ "MIT" ]
null
null
null
# A=P(1+r/n)nt P=10000 n=12 r=0.08 t=input("how many years") t=int(t) A=P*(1+r/n)**(n*t) print(A)
12.625
25
0.554455
30
101
1.866667
0.566667
0.071429
0.107143
0.142857
0.178571
0
0
0
0
0
0
0.137931
0.138614
101
8
26
12.625
0.505747
0.118812
0
0
0
0
0.159091
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ffc956a2c1fb2c8454d6b1241a3b609b400c83b9
1,542
py
Python
main/admin.py
Arts-Technology-Lab/exp_taste
291d26894c534a82379252d1af1b9b0b321fc71b
[ "MIT" ]
null
null
null
main/admin.py
Arts-Technology-Lab/exp_taste
291d26894c534a82379252d1af1b9b0b321fc71b
[ "MIT" ]
null
null
null
main/admin.py
Arts-Technology-Lab/exp_taste
291d26894c534a82379252d1af1b9b0b321fc71b
[ "MIT" ]
1
2021-09-01T03:16:10.000Z
2021-09-01T03:16:10.000Z
from django.contrib import admin from main.models import (Auction, AuctionLot, Artwork, ArtImage, Artist, LotImage, Category, AboutPage) @admin.register(Auction) class AuctionAdmin(admin.ModelAdmin): list_display = ("title", "end_date", "category") list_filter=("end_date", "collected"...
29.653846
73
0.710765
169
1,542
6.284024
0.343195
0.085687
0.056497
0.073446
0.152542
0.062147
0.062147
0
0
0
0
0.001542
0.158885
1,542
52
74
29.653846
0.817271
0
0
0.071429
0
0
0.121192
0
0
0
0
0
0
1
0.047619
false
0.071429
0.047619
0.047619
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
ffcdd7e543e375f8c404a0262d697f26242c8aef
110
py
Python
demo/hi.py
Telemaco019/nuvolaris-cli
06f4b0499071b553b465e2302aae618758716a2d
[ "Apache-2.0" ]
null
null
null
demo/hi.py
Telemaco019/nuvolaris-cli
06f4b0499071b553b465e2302aae618758716a2d
[ "Apache-2.0" ]
null
null
null
demo/hi.py
Telemaco019/nuvolaris-cli
06f4b0499071b553b465e2302aae618758716a2d
[ "Apache-2.0" ]
null
null
null
def main(args): name = args.get("name", "stranger") return { "body": f"hello {name}!\n" }
18.333333
39
0.5
14
110
3.928571
0.785714
0
0
0
0
0
0
0
0
0
0
0
0.290909
110
5
40
22
0.705128
0
0
0
0
0
0.281818
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ffd299e14ca52fcea9512552b237251ed0969d86
1,522
py
Python
app/modules/email.py
SpiritFreeDev/GetOut
137e69cfe73edaa3a59399113fe4d9b5c2b920ec
[ "MIT" ]
null
null
null
app/modules/email.py
SpiritFreeDev/GetOut
137e69cfe73edaa3a59399113fe4d9b5c2b920ec
[ "MIT" ]
4
2020-03-24T15:44:22.000Z
2021-02-02T21:45:21.000Z
app/modules/email.py
SpiritFreeDev/GetOut
137e69cfe73edaa3a59399113fe4d9b5c2b920ec
[ "MIT" ]
null
null
null
from flask_mail import Message from flask import render_template # import app def send_email(subject, sender, recipients, text_body, html_body): msg = Message(subject, sender=sender, recipients=recipients) msg.body = text_body msg.html = html_body mail.send(msg) def send_password_reset_email(user, tim...
42.277778
80
0.620237
182
1,522
4.983516
0.263736
0.077178
0.083793
0.092613
0.568908
0.568908
0.520397
0.45204
0.45204
0.45204
0
0.009141
0.281209
1,522
35
81
43.485714
0.819927
0.050591
0
0.466667
0
0
0.136616
0.084605
0
0
0
0.028571
0
1
0.1
false
0.133333
0.066667
0
0.2
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
1
0
0
0
0
0
2
ffde9faf8c62464f9612aafd020900d6575c752f
6,168
py
Python
ambuild2/frontend/v2_0/cpp/compilers.py
Accelerator74/ambuild
b322668b7ee4063d2443623bc2b777cfad1695c1
[ "BSD-3-Clause" ]
34
2015-02-11T19:43:01.000Z
2022-01-24T10:18:54.000Z
ambuild2/frontend/v2_0/cpp/compilers.py
Accelerator74/ambuild
b322668b7ee4063d2443623bc2b777cfad1695c1
[ "BSD-3-Clause" ]
64
2015-02-06T19:54:22.000Z
2021-11-07T11:42:47.000Z
ambuild2/frontend/v2_0/cpp/compilers.py
Accelerator74/ambuild
b322668b7ee4063d2443623bc2b777cfad1695c1
[ "BSD-3-Clause" ]
32
2015-02-06T19:36:51.000Z
2021-12-01T22:05:28.000Z
# vim: set ts=8 sts=2 sw=2 tw=99 et: # # This file is part of AMBuild. # # AMBuild is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # ...
32.983957
91
0.635863
771
6,168
5.035019
0.326848
0.028851
0.036064
0.036064
0.264812
0.19423
0.108964
0.03864
0
0
0
0.002845
0.259079
6,168
186
92
33.16129
0.846608
0.30869
0
0.281818
0
0
0.096583
0
0
0
0
0
0
1
0.254545
false
0
0.027273
0.136364
0.472727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
fffbccfd0d05dfead2c8b8cd0ec933496423de73
97
py
Python
data camp/dictror.py
hamzashabbir11/dataStructures
1918b4e7636aad3a40db9c1e7acea6a829f82671
[ "MIT" ]
null
null
null
data camp/dictror.py
hamzashabbir11/dataStructures
1918b4e7636aad3a40db9c1e7acea6a829f82671
[ "MIT" ]
null
null
null
data camp/dictror.py
hamzashabbir11/dataStructures
1918b4e7636aad3a40db9c1e7acea6a829f82671
[ "MIT" ]
null
null
null
dict={ 'Honda' : 'Civic', 'Mercedes': 'S600', 'BMW': 'X5' } print(dict.get('Civic'))
13.857143
24
0.494845
11
97
4.363636
0.818182
0
0
0
0
0
0
0
0
0
0
0.053333
0.226804
97
6
25
16.166667
0.586667
0
0
0
0
0
0.329897
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
08008f8e143f2671d7dc7b30de5fcd8a11e102ec
787
py
Python
hw/andrei_bondar/test_bondar5hw.py
alexander-sidorov/qap-05
6db7c0a1eeadd15f7d3f826e7f0ac4be3949ec8c
[ "MIT" ]
9
2021-12-10T21:30:07.000Z
2022-02-25T21:32:34.000Z
hw/andrei_bondar/test_bondar5hw.py
alexander-sidorov/qap-05
6db7c0a1eeadd15f7d3f826e7f0ac4be3949ec8c
[ "MIT" ]
22
2021-12-11T08:46:58.000Z
2022-02-02T15:56:37.000Z
hw/andrei_bondar/test_bondar5hw.py
alexander-sidorov/qap-05
6db7c0a1eeadd15f7d3f826e7f0ac4be3949ec8c
[ "MIT" ]
8
2021-12-11T09:15:45.000Z
2022-02-02T08:09:09.000Z
from hw.andrei_bondar.bondar5hw import fun1 from hw.andrei_bondar.bondar5hw import fun2 from hw.andrei_bondar.bondar5hw import fun3 from hw.andrei_bondar.bondar5hw import fun4 from hw.andrei_bondar.bondar5hw import fun5 def test_fun1() -> None: collection = [1, 2, 3, 4, 5, 10] assert fun1(collection) == (1, 1...
23.848485
53
0.670902
113
787
4.548673
0.309735
0.058366
0.116732
0.175097
0.348249
0.348249
0
0
0
0
0
0.085987
0.202033
787
32
54
24.59375
0.732484
0
0
0
0
0
0.091487
0
0
0
0
0
0.227273
1
0.227273
false
0
0.227273
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
1
0
0
0
0
0
0
0
2
0802acaf8aa66c21faa381d599a6bf729183846a
244
py
Python
bidfx/pricing/_pixie/message/pixie_message_type.py
bidfx/bidfx-api-py
6b5e2c5efaa547b2d97a5556ef8d21d1de807f68
[ "Apache-2.0" ]
3
2020-04-29T09:19:56.000Z
2021-03-08T11:12:05.000Z
bidfx/pricing/_pixie/message/pixie_message_type.py
bidfx/bidfx-api-py
6b5e2c5efaa547b2d97a5556ef8d21d1de807f68
[ "Apache-2.0" ]
3
2020-03-08T21:54:02.000Z
2021-02-02T22:33:51.000Z
bidfx/pricing/_pixie/message/pixie_message_type.py
bidfx/bidfx-api-py
6b5e2c5efaa547b2d97a5556ef8d21d1de807f68
[ "Apache-2.0" ]
2
2020-06-13T10:52:18.000Z
2022-03-02T17:29:45.000Z
class PixieMessageType: AckMessage = b"A" DataDictionaryMessage = b"D" GrantMessage = b"G" HeartbeatMessage = b"H" LoginMessage = b"L" PriceSyncMessage = b"P" SubscriptionSyncMessage = b"S" WelcomeMessage = b"W"
24.4
34
0.659836
26
244
6.192308
0.730769
0
0
0
0
0
0
0
0
0
0
0
0.237705
244
9
35
27.111111
0.865591
0
0
0
0
0
0.032787
0
0
0
0
0
0
1
0
false
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0804804c8953c46e42ffe868b8f0544ab12d85b6
876
py
Python
computers_will_never.py
alanalynch/computers-will-never
7014b97d513f7717d8a803f08de8eb7f5dde7a56
[ "MIT" ]
null
null
null
computers_will_never.py
alanalynch/computers-will-never
7014b97d513f7717d8a803f08de8eb7f5dde7a56
[ "MIT" ]
null
null
null
computers_will_never.py
alanalynch/computers-will-never
7014b97d513f7717d8a803f08de8eb7f5dde7a56
[ "MIT" ]
null
null
null
#!/usr/bin/python from random import random, seed from nltk.tokenize import word_tokenize from nltk.tag import pos_tag def random_line(file): seed() selected = next(file) for n, line in enumerate(file, start=1): if random() * n < 1: selected = line return se...
24.333333
63
0.578767
110
876
4.436364
0.527273
0.061475
0.110656
0.090164
0
0
0
0
0
0
0
0.006329
0.278539
876
35
64
25.028571
0.765823
0.101598
0
0
0
0
0.084184
0
0
0
0
0.028571
0
0
null
null
0
0.130435
null
null
0.043478
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
1
0
0
0
0
0
0
0
0
2
080a4bd130e8f0afa9822b31ea9e6b4a6f029e6b
1,415
py
Python
zinnia_ckeditor/admin.py
pancodia/zinnia-wysiwyg-ckeditor
79143b9bdfaee44760c1367392869eacb32b7ee2
[ "BSD-3-Clause" ]
null
null
null
zinnia_ckeditor/admin.py
pancodia/zinnia-wysiwyg-ckeditor
79143b9bdfaee44760c1367392869eacb32b7ee2
[ "BSD-3-Clause" ]
null
null
null
zinnia_ckeditor/admin.py
pancodia/zinnia-wysiwyg-ckeditor
79143b9bdfaee44760c1367392869eacb32b7ee2
[ "BSD-3-Clause" ]
null
null
null
"""EntryAdmin for zinnia-ckeditor""" from django import forms from django.contrib import admin from django.conf import settings from django.utils.translation import ugettext_lazy as _ from zinnia.models import Entry from zinnia.admin.entry import EntryAdmin from zinnia.admin.forms import EntryAdminForm from zinnia.set...
27.745098
77
0.753357
159
1,415
6.584906
0.396226
0.047755
0.028653
0
0
0
0
0
0
0
0
0
0.171025
1,415
50
78
28.3
0.892583
0.127208
0
0
0
0
0.084459
0.032939
0
0
0
0
0
1
0
false
0.035714
0.357143
0
0.535714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
080c3d5b532139e0be7c84bae950b06207b4e978
1,980
py
Python
1-Introduction_jupyter.py
Daz-Riza-Seriog/Using_Python_Statistics_nooby
4b2b92b419ff7586c81200693965416a51e850d7
[ "MIT" ]
1
2021-03-19T00:15:29.000Z
2021-03-19T00:15:29.000Z
1-Introduction_jupyter.py
Daz-Riza-Seriog/Using_Python_Statistics_nooby
4b2b92b419ff7586c81200693965416a51e850d7
[ "MIT" ]
null
null
null
1-Introduction_jupyter.py
Daz-Riza-Seriog/Using_Python_Statistics_nooby
4b2b92b419ff7586c81200693965416a51e850d7
[ "MIT" ]
null
null
null
### What is Jupyter Notebooks? # Jupyter is a web-based interactive development environment that supports multiple programming languages, however most commonly used with the Python programming language. # The interactive environment that Jupyter provides enables students, scientists, and researchers to create reproduci...
36
187
0.776263
309
1,980
4.97411
0.556634
0.011711
0.016916
0
0
0
0
0
0
0
0
0.002433
0.169697
1,980
54
188
36.666667
0.932482
0.834848
0
0
0
0
0.520833
0
0
0
0
0
0
1
0
false
0
0
0
0
0.714286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
080e87d3870372abb277e5d6267e1682fde024ba
80
py
Python
python/testData/intentions/PyStringConcatenationToFormatIntentionTest/augmentAssignment.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/intentions/PyStringConcatenationToFormatIntentionTest/augmentAssignment.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/intentions/PyStringConcatenationToFormatIntentionTest/augmentAssignment.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
header = "header" value = "value" result += header<caret> + " : " + value + "\n"
26.666667
46
0.5625
9
80
5
0.555556
0
0
0
0
0
0
0
0
0
0
0
0.2
80
3
46
26.666667
0.703125
0
0
0
0
0
0.197531
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
082d56074e5ccbf8cee9f08c73173c2be8868405
2,233
py
Python
tabular-playground-series-feb-2021/src/dispatcher.py
kupparsudhir/kaggle
29966f1277067022e00c568e7576a3b94f295383
[ "MIT" ]
4
2018-10-10T00:32:57.000Z
2020-11-08T04:55:07.000Z
tabular-playground-series-feb-2021/src/dispatcher.py
sudhirln92/Kaggle_competitions
29966f1277067022e00c568e7576a3b94f295383
[ "MIT" ]
null
null
null
tabular-playground-series-feb-2021/src/dispatcher.py
sudhirln92/Kaggle_competitions
29966f1277067022e00c568e7576a3b94f295383
[ "MIT" ]
null
null
null
from sklearn import ensemble from sklearn import neighbors from sklearn import linear_model import lightgbm as lgb import xgboost as xgb seed = 42 # ============================================================================= # MODELS # ============================================================================= MO...
28.265823
79
0.568742
212
2,233
5.754717
0.415094
0.016393
0.019672
0.071311
0.292623
0.292623
0.292623
0.292623
0.17377
0.145902
0
0.253383
0.271832
2,233
78
80
28.628205
0.496925
0.072548
0
0.309859
0
0
0.083212
0
0
0
0
0
0
1
0
false
0
0.070423
0
0.070423
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
082d585539c3037f21fdd0b5fde325073a45d670
168
py
Python
Functions/funct2.py
poojavaibhavsahu/Pooja_Python
58122bfa8586883145042b11fe1cc013c803ab4f
[ "bzip2-1.0.6" ]
null
null
null
Functions/funct2.py
poojavaibhavsahu/Pooja_Python
58122bfa8586883145042b11fe1cc013c803ab4f
[ "bzip2-1.0.6" ]
null
null
null
Functions/funct2.py
poojavaibhavsahu/Pooja_Python
58122bfa8586883145042b11fe1cc013c803ab4f
[ "bzip2-1.0.6" ]
null
null
null
def msg(): print("Hello Krish") return def add(a,b): return a+b msg() sum=add(2,3) print("Sum of two numbers:",sum) print("Add two numbers:",add(4,4))
11.2
34
0.595238
31
168
3.225806
0.516129
0.04
0
0
0
0
0
0
0
0
0
0.030075
0.208333
168
15
34
11.2
0.721805
0
0
0
0
0
0.272189
0
0
0
0
0
0
1
0.222222
false
0
0
0.111111
0.444444
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
083712fa685efaa7c46c219f3464e57acece52d8
831
py
Python
9608/41/init.py
angellaa/cie-computer-science
bcae2884fabce40a24918bd96fff7e43e4c5b67b
[ "MIT" ]
null
null
null
9608/41/init.py
angellaa/cie-computer-science
bcae2884fabce40a24918bd96fff7e43e4c5b67b
[ "MIT" ]
null
null
null
9608/41/init.py
angellaa/cie-computer-science
bcae2884fabce40a24918bd96fff7e43e4c5b67b
[ "MIT" ]
null
null
null
board = [['B' for i in range(8)] for i in range(2)] + \ [['E' for i in range(8)] for i in range(4)] + \ [['W' for i in range(8)] for i in range(2)] # board = [['b' for i in range(8)] for i in range(2)] # for i in range(4): # board.append(['e' for i in range(8)]) # for i in range(2): # board.app...
24.441176
59
0.513839
136
831
3.139706
0.235294
0.12178
0.18267
0.334895
0.386417
0.355972
0.323185
0.323185
0.323185
0.323185
0
0.036728
0.279182
831
34
60
24.441176
0.676127
0.205776
0
0
0
0
0.087023
0
0
0
0
0
0
1
0.05
false
0
0
0
0.05
0.2
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f23d4a08837233d3e3a1b9b82a2db608f05375b7
3,886
py
Python
tests/dev/test_util.py
annsilje/midgard
ffa81f6704f36dd86aea745fb24b7f7da4233828
[ "MIT" ]
14
2018-05-04T11:34:26.000Z
2021-11-16T20:52:00.000Z
tests/dev/test_util.py
annsilje/midgard
ffa81f6704f36dd86aea745fb24b7f7da4233828
[ "MIT" ]
2
2022-02-28T10:02:18.000Z
2022-03-04T14:47:59.000Z
tests/dev/test_util.py
annsilje/midgard
ffa81f6704f36dd86aea745fb24b7f7da4233828
[ "MIT" ]
9
2018-04-27T14:30:59.000Z
2021-08-25T08:17:00.000Z
"""Tests for the dev.util-module """ # Standard library imports import re # Third party imports import pytest # Midgard imports from midgard.dev import log from midgard.dev import util # # Tests # # TODO: def test_check_help_and_version() # TODO: def test_check_options() # TODO: def test_get_program_info() # TODO:...
25.070968
110
0.714102
563
3,886
4.717584
0.225577
0.089608
0.05384
0.097892
0.425075
0.389307
0.374247
0.325301
0.325301
0.325301
0
0.007315
0.155687
3,886
154
111
25.233766
0.802194
0.292331
0
0.405797
0
0
0.232263
0.035474
0
0
0
0.006494
0.115942
1
0.318841
false
0.188406
0.057971
0
0.376812
0.028986
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
f23d606b42916c62e03d870775db9295aa1eee15
1,365
py
Python
placeram/util.py
ahmednofal/DFFRAM
7d7ebc28befe12ec3f232c0d2f5b8ea786227d45
[ "Apache-2.0" ]
20
2020-11-09T14:45:40.000Z
2021-11-08T09:13:45.000Z
placeram/util.py
ahmednofal/DFFRAM
7d7ebc28befe12ec3f232c0d2f5b8ea786227d45
[ "Apache-2.0" ]
5
2020-11-16T11:59:14.000Z
2021-04-11T08:44:48.000Z
placeram/util.py
ahmednofal/DFFRAM
7d7ebc28befe12ec3f232c0d2f5b8ea786227d45
[ "Apache-2.0" ]
6
2020-11-17T11:39:01.000Z
2021-04-04T15:18:45.000Z
# Copyright ©2020-2021 The American University in Cairo and the Cloud V Project. # # This file is part of the DFFRAM Memory Compiler. # See https://github.com/Cloud-V/DFFRAM for further info. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Li...
31.744186
80
0.684982
205
1,365
4.512195
0.585366
0.064865
0.028108
0.034595
0
0
0
0
0
0
0
0.018165
0.193407
1,365
42
81
32.5
0.821072
0.669597
0
0
0
0
0.020356
0
0
0
0
0
0
1
0.272727
false
0
0.181818
0
0.636364
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
f250df663b59129d4893d191ada288326f5e9234
762
py
Python
pd_tran/preprocessing/converter.py
alwaysprep/pandas-transformers
fabd390eda3e8164c294cc69f7087095241d7b6b
[ "MIT" ]
null
null
null
pd_tran/preprocessing/converter.py
alwaysprep/pandas-transformers
fabd390eda3e8164c294cc69f7087095241d7b6b
[ "MIT" ]
null
null
null
pd_tran/preprocessing/converter.py
alwaysprep/pandas-transformers
fabd390eda3e8164c294cc69f7087095241d7b6b
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.base import TransformerMixin class Converter(TransformerMixin): def __init__(self, _type): self._type = _type def fit(self, X, y=None): # stateless transformer return self def transform(self, X): # assumes X is a DataFrame Xcols ...
23.090909
89
0.645669
96
762
4.916667
0.375
0.095339
0.110169
0.114407
0.305085
0.305085
0
0
0
0
0
0
0.26378
762
32
90
23.8125
0.841355
0.060367
0
0.1
0
0
0
0
0
0
0
0
0
1
0.3
false
0
0.1
0.1
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
1
0
0
0
0
1
0
0
2
f251d093d076381691fec2a551143c50fd623082
9,513
py
Python
venv/lib/python3.8/site-packages/openapi_client/models/first_last_name_diasporaed_out.py
akshitgoyal/csc398nlp
6adf80cb7fa3737f88faf73a6e818da495b95ab4
[ "MIT" ]
1
2020-09-28T10:09:25.000Z
2020-09-28T10:09:25.000Z
venv/lib/python3.8/site-packages/openapi_client/models/first_last_name_diasporaed_out.py
akshitgoyal/NLP-Research-Project
6adf80cb7fa3737f88faf73a6e818da495b95ab4
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/openapi_client/models/first_last_name_diasporaed_out.py
akshitgoyal/NLP-Research-Project
6adf80cb7fa3737f88faf73a6e818da495b95ab4
[ "MIT" ]
1
2020-07-01T18:46:20.000Z
2020-07-01T18:46:20.000Z
# coding: utf-8 """ NamSor API v2 NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't fi...
29.180982
385
0.609482
1,066
9,513
5.285178
0.161351
0.038339
0.204473
0.172524
0.494498
0.389599
0.334221
0.265353
0.13738
0.059283
0
0.021752
0.30411
9,513
325
386
29.270769
0.829305
0.409335
0
0.079137
0
0
0.062726
0
0
0
0
0
0
1
0.172662
false
0
0.021583
0
0.323741
0.014388
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f25ca259a3660bf2000f721ea85bf07267c9a7fa
228
py
Python
src/Utils/Logger.py
LinkIsACake/PTUT-CoffreFortElectronique
7c1fb0fb408f641a6d3ae77d50c8d3088dd21964
[ "MIT" ]
null
null
null
src/Utils/Logger.py
LinkIsACake/PTUT-CoffreFortElectronique
7c1fb0fb408f641a6d3ae77d50c8d3088dd21964
[ "MIT" ]
null
null
null
src/Utils/Logger.py
LinkIsACake/PTUT-CoffreFortElectronique
7c1fb0fb408f641a6d3ae77d50c8d3088dd21964
[ "MIT" ]
null
null
null
import logging logging.basicConfig(format='%(levelname)s:%(name)s:%(message)s', level=logging.DEBUG) class Logger: logger: logging def __init__(self): self.logger = logging.getLogger(self.__class__.__name__)
20.727273
85
0.714912
28
228
5.392857
0.571429
0.172185
0
0
0
0
0
0
0
0
0
0
0.144737
228
10
86
22.8
0.774359
0
0
0
0
0
0.149123
0.149123
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.666667
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
1
0
0
2
f25f90a2fe99d816b92aa67672f8767a6be2b8c4
4,510
py
Python
set-bulk-accounts.py
axigen/automation-tools
d21ce299f8b3a6234a65872ee29573c30a6b8f70
[ "MIT" ]
1
2021-03-02T12:33:59.000Z
2021-03-02T12:33:59.000Z
set-bulk-accounts.py
axigen/automation-tools
d21ce299f8b3a6234a65872ee29573c30a6b8f70
[ "MIT" ]
null
null
null
set-bulk-accounts.py
axigen/automation-tools
d21ce299f8b3a6234a65872ee29573c30a6b8f70
[ "MIT" ]
null
null
null
#! /usr/bin/env python """ Script that uses the CLI module to set a number of attributes for a bulk account list. """ """ Copyright (c) since 2007, GECAD Technologies. All rights reserved. For feedback and/or bugs in this script, please send an e-mail to: "AXIGEN Team" <team@axigen.com> """ _CVSID='$Id: set-bulk-acco...
30.472973
91
0.650111
650
4,510
4.472308
0.338462
0.02752
0.04816
0.022016
0.092879
0.081871
0.039216
0.039216
0.039216
0.028208
0
0.030337
0.21796
4,510
147
92
30.680272
0.793876
0.016851
0
0.181102
0
0.023622
0.398847
0.03532
0
0
0
0
0
0
null
null
0.110236
0.03937
null
null
0.07874
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
f26565802d39f3dc3b7ebc8621fd3e952c132723
1,876
py
Python
cloudmesh/management/cm_account.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
cloudmesh/management/cm_account.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
cloudmesh/management/cm_account.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python """ :: Usage: ... Options: Arguments: Description cm-account user list --format table lists the accounts in the given format. The format can be a table, json cm-account user clear deletes all accounts cm-account user ad...
28.424242
88
0.634861
241
1,876
4.941909
0.278008
0.105793
0.076406
0.053736
0.56759
0.413098
0.413098
0.231738
0.231738
0.231738
0
0
0.325693
1,876
65
89
28.861538
0.941502
0.994136
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
f2661359d21c03df5ef14d882707a94816c8c107
1,159
py
Python
hpecp/config.py
pramaku/hpecp-python-library
55550a1e27259a3132ea0608e66719e9732fb081
[ "Apache-2.0" ]
null
null
null
hpecp/config.py
pramaku/hpecp-python-library
55550a1e27259a3132ea0608e66719e9732fb081
[ "Apache-2.0" ]
null
null
null
hpecp/config.py
pramaku/hpecp-python-library
55550a1e27259a3132ea0608e66719e9732fb081
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from .logger import Logger from datetime import datetime, timedelta import time import requests import json try: from urllib import quote # Python 2.X except ImportError: from urllib.parse import quote # Python 3+ class ConfigController: def __init__(self, clien...
28.975
113
0.535807
119
1,159
5.042017
0.605042
0.05
0.056667
0.05
0.096667
0.096667
0.096667
0.096667
0
0
0
0.017241
0.349439
1,159
39
114
29.717949
0.778515
0.460742
0
0
0
0
0.070833
0
0
0
0
0
0
1
0.133333
false
0
0.6
0
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
1
0
1
0
0
2
f271a45cd295c78a3a7576a9e5926ca477b47c31
238
py
Python
CodeWars/7 Kyu/Find an employees role in the company.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
CodeWars/7 Kyu/Find an employees role in the company.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
CodeWars/7 Kyu/Find an employees role in the company.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
def find_employees_role(name): try: (first, last) = name.split(' ') except: return 'Does not work here!' for e in employees: if e['first_name'] == first and e['last_name'] == last: return e['role'] return 'Does not work here!'
39.666667
76
0.655462
38
238
4
0.526316
0.105263
0.171053
0.223684
0.276316
0
0
0
0
0
0
0
0.184874
238
6
77
39.666667
0.783505
0
0
0
0
0
0.259414
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f27713ff47b06d323b9adfb4d96dfc5fed27b7ae
1,175
py
Python
configs/_base_/schedules/pwcnet_plus_750k_schedule.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
481
2021-11-16T07:04:23.000Z
2022-03-31T22:21:21.000Z
configs/_base_/schedules/pwcnet_plus_750k_schedule.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
72
2021-11-16T12:25:55.000Z
2022-03-28T13:10:45.000Z
configs/_base_/schedules/pwcnet_plus_750k_schedule.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
48
2021-11-16T06:48:46.000Z
2022-03-30T12:46:40.000Z
# optimizer optimizer = dict(type='Adam', lr=5e-5, weight_decay=0.0004, betas=(0.9, 0.999)) optimizer_config = dict(grad_clip=None) # learning policy lr_config = dict( policy='MultiStage', by_epoch=False, gammas=[0.5, 0.5, 0.5, 0.5, 0.5], milestone_lrs=[5e-5, 3e-5, 2e-5, 1e-5, 5e-6], milestone_iters...
33.571429
79
0.564255
135
1,175
4.837037
0.718519
0.015314
0.018377
0.024502
0.015314
0.015314
0.015314
0.015314
0
0
0
0.452761
0.306383
1,175
34
80
34.558824
0.348466
0.021277
0
0.129032
0
0
0.027899
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f291d1bc94e631d40a9eecb2a49f7e87a48456fc
130
py
Python
src/model/types.py
TTIP-UNQ-Team6/gastapp_back
0613aba610f765b55cb3bb10fec4d0d5f3685f88
[ "MIT" ]
null
null
null
src/model/types.py
TTIP-UNQ-Team6/gastapp_back
0613aba610f765b55cb3bb10fec4d0d5f3685f88
[ "MIT" ]
null
null
null
src/model/types.py
TTIP-UNQ-Team6/gastapp_back
0613aba610f765b55cb3bb10fec4d0d5f3685f88
[ "MIT" ]
null
null
null
from enum import Enum class Type(Enum): unico = "unico" mensual = "mensual" def get_type(t): return Type[t].value
11.818182
24
0.638462
19
130
4.315789
0.631579
0.121951
0
0
0
0
0
0
0
0
0
0
0.246154
130
10
25
13
0.836735
0
0
0
0
0
0.092308
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0.166667
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
2
f2a7bb424ee6f0394247c1e1ec2380660bcc8fee
223
py
Python
web_scripts/kerbparse.py
celskeggs/hwops
55b847a19ec0d2afa75c613de2ffd6deef5c227f
[ "MIT" ]
1
2021-10-12T04:03:56.000Z
2021-10-12T04:03:56.000Z
web_scripts/kerbparse.py
celskeggs/hwops
55b847a19ec0d2afa75c613de2ffd6deef5c227f
[ "MIT" ]
13
2020-03-28T17:55:25.000Z
2020-03-29T18:43:50.000Z
web_scripts/kerbparse.py
celskeggs/qazoo-qm
a60bb4c61c78364fb770f6d321bbb55d82e4ea2a
[ "MIT" ]
null
null
null
import os def get_kerberos(): email = os.getenv("SSL_CLIENT_S_DN_Email") if email is None or not email.lower().endswith("@mit.edu") or email.count("@") != 1: return None return email[:email.index("@")]
27.875
88
0.641256
34
223
4.058824
0.705882
0
0
0
0
0
0
0
0
0
0
0.005556
0.192825
223
7
89
31.857143
0.761111
0
0
0
0
0
0.139013
0.09417
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
f2a92eb30a6df79bcd0beefbc6a1f25484221498
578
py
Python
rljax/network/__init__.py
kew96/rljax
f80998b7698e87ee9f81b159ba33d619e4cf77c1
[ "MIT" ]
56
2020-10-01T02:55:47.000Z
2022-03-07T08:00:25.000Z
rljax/network/__init__.py
kew96/rljax
f80998b7698e87ee9f81b159ba33d619e4cf77c1
[ "MIT" ]
4
2020-10-02T03:52:29.000Z
2021-10-02T03:59:00.000Z
rljax/network/__init__.py
kew96/rljax
f80998b7698e87ee9f81b159ba33d619e4cf77c1
[ "MIT" ]
10
2020-12-21T08:21:02.000Z
2022-01-11T03:36:20.000Z
from .actor import CategoricalPolicy, DeterministicPolicy, StateDependentGaussianPolicy, StateIndependentGaussianPolicy from .base import MLP from .conv import DQNBody, SACDecoder, SACEncoder, SLACDecoder, SLACEncoder from .critic import ( ContinuousQFunction, ContinuousQuantileFunction, ContinuousVFunction...
28.9
119
0.797578
43
578
10.581395
0.790698
0
0
0
0
0
0
0
0
0
0
0
0.153979
578
19
120
30.421053
0.93047
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.263158
0
0.263158
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
f2aca19ecb84aabee37dd237c44cb4e9eabdccd5
1,869
py
Python
NYC.py
SadManFahIm/HackerRank-Preparation-Kit
7eeddccfcecad0f9319d1735e492a16ce409f9dc
[ "MIT" ]
null
null
null
NYC.py
SadManFahIm/HackerRank-Preparation-Kit
7eeddccfcecad0f9319d1735e492a16ce409f9dc
[ "MIT" ]
null
null
null
NYC.py
SadManFahIm/HackerRank-Preparation-Kit
7eeddccfcecad0f9319d1735e492a16ce409f9dc
[ "MIT" ]
null
null
null
t = int(raw_input()) for _ in range(t): n = int(raw_input()) arr = map(int, raw_input().split()) org = range(n+1) pos = range(n+1) cnt = [0]*(n + 1) ans = 0 invalid = 0 for i in xrange(n - 1, -1, -1): if invalid: break ...
31.677966
93
0.398074
211
1,869
3.507109
0.369668
0.094595
0.075676
0.045946
0.031081
0
0
0
0
0
0
0.027273
0.52916
1,869
59
94
31.677966
0.813636
0.302301
0
0.148148
0
0
0.0089
0
0
0
0
0
0
0
null
null
0
0
null
null
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
f2afb1cb9ea8632bda77709d917b4fac693df17c
526
py
Python
class8/ex2.py
jrogers512/pynet
8af9f3910a9b1dec640eb66c2f5f12b6fcd70837
[ "Apache-2.0" ]
null
null
null
class8/ex2.py
jrogers512/pynet
8af9f3910a9b1dec640eb66c2f5f12b6fcd70837
[ "Apache-2.0" ]
null
null
null
class8/ex2.py
jrogers512/pynet
8af9f3910a9b1dec640eb66c2f5f12b6fcd70837
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from net_system.models import NetworkDevice, Credentials import django def main(): django.setup() for device in NetworkDevice.objects.all(): if 'cisco' in device.device_type: device.vendor = 'Cisco' elif 'juniper' in device.device_type: device.vend...
26.3
56
0.634981
62
526
5.177419
0.483871
0.149533
0.130841
0.168224
0.280374
0.280374
0
0
0
0
0
0
0.260456
526
19
57
27.684211
0.825193
0.038023
0
0
0
0
0.087129
0
0
0
0
0
0
0
null
null
0
0.133333
null
null
0.066667
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
f2b7a3123cfeb5cf859f532290b83eddbaa4706e
1,866
py
Python
tests/chem/magpie_python/vassal/util/test_VectorCombinationComputer.py
crazysal/chemml
300ed183c623fc8762ed2343e48c9e2ac5102c0f
[ "BSD-3-Clause" ]
108
2018-03-23T20:06:03.000Z
2022-01-06T19:32:46.000Z
tests/chem/magpie_python/vassal/util/test_VectorCombinationComputer.py
crazysal/chemml
300ed183c623fc8762ed2343e48c9e2ac5102c0f
[ "BSD-3-Clause" ]
18
2019-08-09T21:16:14.000Z
2022-02-14T21:52:06.000Z
tests/chem/magpie_python/vassal/util/test_VectorCombinationComputer.py
crazysal/chemml
300ed183c623fc8762ed2343e48c9e2ac5102c0f
[ "BSD-3-Clause" ]
28
2018-04-28T17:07:33.000Z
2022-02-28T07:22:56.000Z
import unittest import numpy as np import numpy.testing as np_tst from chemml.chem.magpie_python.vassal.util.VectorCombinationComputer import VectorCombinationComputer import math class testVectorCombinationComputer(unittest.TestCase): def setUp(self): self.input = list(np.identity(3)) def tearDown(se...
38.875
101
0.661308
229
1,866
5.240175
0.248908
0.075
0.215833
0.245
0.625
0.625
0.5825
0.5825
0.5825
0.5825
0
0.033081
0.222401
1,866
48
102
38.875
0.793935
0
0
0.351351
0
0
0
0
0
0
0
0
0.27027
1
0.135135
false
0
0.135135
0
0.297297
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f2bfbcd18f850112d4cef09f74d4ba17445be528
193
py
Python
modules/qplan/util.py
fifoforlifo/pyqplan
5d4522285a1c78cecf35d92405232c3395072f4f
[ "Apache-2.0" ]
null
null
null
modules/qplan/util.py
fifoforlifo/pyqplan
5d4522285a1c78cecf35d92405232c3395072f4f
[ "Apache-2.0" ]
null
null
null
modules/qplan/util.py
fifoforlifo/pyqplan
5d4522285a1c78cecf35d92405232c3395072f4f
[ "Apache-2.0" ]
null
null
null
import os def ensure_dir_for_path(filepath): dirname = os.path.dirname(filepath) if not dirname: return if os.path.exists(dirname): return os.makedirs(dirname)
19.3
39
0.663212
26
193
4.807692
0.538462
0.096
0
0
0
0
0
0
0
0
0
0
0.248705
193
9
40
21.444444
0.862069
0
0
0.25
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4b41404f1a21f08c6ad99ee67bf4d87681fd9158
1,919
py
Python
pyspider/core/model/http_simple.py
kingking888/crawler-pyspider
29ba13905c73081097df9ef646a5c8194eb024be
[ "Apache-2.0" ]
1
2021-12-07T15:48:51.000Z
2021-12-07T15:48:51.000Z
pyspider/core/model/http_simple.py
GongSong/crawler-pyspider
b6dcec4afa4e1cd393f94627290a21ed95238676
[ "Apache-2.0" ]
null
null
null
pyspider/core/model/http_simple.py
GongSong/crawler-pyspider
b6dcec4afa4e1cd393f94627290a21ed95238676
[ "Apache-2.0" ]
1
2021-11-10T07:12:02.000Z
2021-11-10T07:12:02.000Z
from .http_base import * class HttpSimple(HttpBase): def __init__(self): super(HttpSimple, self).__init__() self.__headers = {} self.__url = '' self.__params = {} self.__method = HttpMethod.GET self.__is_request_json = False def set_method(self, method): ...
28.220588
111
0.625326
237
1,919
4.64557
0.189873
0.108992
0.106267
0.072661
0.326067
0.097184
0.042688
0
0
0
0
0
0.276707
1,919
67
112
28.641791
0.793228
0
0
0.173077
0
0
0.043773
0
0
0
0
0
0
1
0.269231
false
0
0.019231
0.057692
0.596154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
4b5440cb322446b46db853174aea7dd67ab7ebe0
731
py
Python
blog/repository/user.py
Royalmayur/fastapi
71d2609db99245c7cd6c139487dbdb7a2ed08509
[ "Apache-2.0" ]
null
null
null
blog/repository/user.py
Royalmayur/fastapi
71d2609db99245c7cd6c139487dbdb7a2ed08509
[ "Apache-2.0" ]
null
null
null
blog/repository/user.py
Royalmayur/fastapi
71d2609db99245c7cd6c139487dbdb7a2ed08509
[ "Apache-2.0" ]
null
null
null
from fastapi import HTTPException, status from sqlalchemy.orm.session import Session from blog import schemas,models from blog.hashing import Hash # Here We defined all function which is used in User routes def create(request:schemas.User, db:Session): newUser = models.User(user_name = request.user_name, user_ema...
36.55
141
0.742818
110
731
4.845455
0.5
0.056285
0
0
0
0
0
0
0
0
0
0.004894
0.161423
731
20
142
36.55
0.8646
0.077975
0
0
0
0
0.052006
0
0
0
0
0
0
1
0.133333
false
0.066667
0.266667
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
4b5509410b8965a5cafbcdb8fea07599823811a4
965
py
Python
project/authors/views.py
fael07/Blog-Django-with-CBV
269747b2e663a34b99acae6368db49c6ad37c2b8
[ "MIT" ]
null
null
null
project/authors/views.py
fael07/Blog-Django-with-CBV
269747b2e663a34b99acae6368db49c6ad37c2b8
[ "MIT" ]
null
null
null
project/authors/views.py
fael07/Blog-Django-with-CBV
269747b2e663a34b99acae6368db49c6ad37c2b8
[ "MIT" ]
null
null
null
from django.http import Http404 from django.shortcuts import render from Support.Code.Fast.StaticPages.SPGT import GroupSpa, GroupChildrenSpa from django.views.decorators.cache import cache_page from django.utils.decorators import method_decorator from django.views.generic import View from django.core.cache import cach...
33.275862
73
0.758549
130
965
5.492308
0.4
0.098039
0.042017
0.033613
0.053221
0
0
0
0
0
0
0.00738
0.157513
965
28
74
34.464286
0.870849
0
0
0
0
0
0.101554
0.051813
0
0
0
0
0
1
0.095238
false
0
0.428571
0.047619
0.809524
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
4b747673449104217554b1efa472ab6f3837622b
2,639
py
Python
railroad/railroad/urls.py
marineam/nagcat
445d0efe1fb2ec93c31d1f9d8fa0c0563189ffaf
[ "Apache-2.0" ]
null
null
null
railroad/railroad/urls.py
marineam/nagcat
445d0efe1fb2ec93c31d1f9d8fa0c0563189ffaf
[ "Apache-2.0" ]
null
null
null
railroad/railroad/urls.py
marineam/nagcat
445d0efe1fb2ec93c31d1f9d8fa0c0563189ffaf
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 ITA Software, Inc. # # 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 wr...
39.984848
74
0.67033
324
2,639
5.410494
0.432099
0.106674
0.138049
0.018254
0.03765
0.03765
0.03765
0.03765
0.03765
0
0
0.006714
0.153467
2,639
65
75
40.6
0.777977
0.271694
0
0
0
0
0.650184
0.557075
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4b7cd5620458eee345c3ecd2bf4d72f64ef26048
175
py
Python
pytest_shell/__init__.py
djstrong/pytest-shell
4dfce8901ec820dc3e33a558d47f2bdc4cb6cc6e
[ "MIT" ]
1
2020-07-20T16:57:44.000Z
2020-07-20T16:57:44.000Z
pytest_shell/__init__.py
djstrong/pytest-shell
4dfce8901ec820dc3e33a558d47f2bdc4cb6cc6e
[ "MIT" ]
null
null
null
pytest_shell/__init__.py
djstrong/pytest-shell
4dfce8901ec820dc3e33a558d47f2bdc4cb6cc6e
[ "MIT" ]
1
2020-11-13T15:49:43.000Z
2020-11-13T15:49:43.000Z
# -*- coding: utf-8 -*- import pytest @pytest.fixture(name='bash') def bash_fixture(request): from pytest_shell.shell import bash with bash() as b: yield b
15.909091
39
0.645714
25
175
4.44
0.64
0
0
0
0
0
0
0
0
0
0
0.007353
0.222857
175
10
40
17.5
0.808824
0.12
0
0
0
0
0.026316
0
0
0
0
0
0
1
0.166667
false
0
0.333333
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
1
0
0
0
0
2
4b8986ad9d1d1005f676504401db85b7ce8bf227
5,312
py
Python
spongeauth/accounts/letter_avatar.py
felixoi/SpongeAuth
d44ee52d0b35b2e1909c7bf6bad29aa7b4835b26
[ "MIT" ]
10
2016-11-18T12:37:24.000Z
2022-03-04T09:25:25.000Z
spongeauth/accounts/letter_avatar.py
felixoi/SpongeAuth
d44ee52d0b35b2e1909c7bf6bad29aa7b4835b26
[ "MIT" ]
794
2016-11-19T18:34:37.000Z
2022-03-31T16:49:11.000Z
spongeauth/accounts/letter_avatar.py
PowerNukkit/OreAuth
96a2926c9601fce6fac471bdb997077f07e8bf9a
[ "MIT" ]
11
2016-11-26T22:30:17.000Z
2022-03-16T17:20:14.000Z
import hashlib from django.conf import settings class LetterAvatar(object): def __init__(self, username): self.username = username.lower() @property def source(self): return "LETTER" @property def colour(self): username_md5 = hashlib.md5(self.username.encode("utf8")).hexd...
21.248
88
0.454443
771
5,312
3.114137
0.370947
0.02499
0.007497
0
0
0
0
0
0
0
0
0.509939
0.318148
5,312
249
89
21.333333
0.152954
0.046122
0
0.008547
0
0
0.002175
0
0
0
0
0
0
1
0.017094
false
0
0.008547
0.008547
0.042735
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4b93cee041b6fef7f14230aed0405843082e98a5
1,437
py
Python
assets/rigidbody2d/shell_scripts/static_particle_test.py
Lyestria/scisim
e2c2abc8d38ea9b07717841782c5c723fce37ce5
[ "Apache-2.0" ]
null
null
null
assets/rigidbody2d/shell_scripts/static_particle_test.py
Lyestria/scisim
e2c2abc8d38ea9b07717841782c5c723fce37ce5
[ "Apache-2.0" ]
null
null
null
assets/rigidbody2d/shell_scripts/static_particle_test.py
Lyestria/scisim
e2c2abc8d38ea9b07717841782c5c723fce37ce5
[ "Apache-2.0" ]
null
null
null
''' Checks whether a simulation that should be static is static. ''' import os import sys import argparse import h5py parser = argparse.ArgumentParser( description='Checks whether a simulation that should be static is static.' ) parser.add_argument( '-i', metavar='input_hdf5_file', type=str, nargs=1, help='input HDF5...
33.418605
117
0.703549
238
1,437
4.159664
0.390756
0.070707
0.065657
0.048485
0.262626
0.151515
0.10101
0.10101
0.10101
0.10101
0
0.031483
0.160056
1,437
42
118
34.214286
0.788732
0.164231
0
0
0
0
0.295213
0
0
0
0
0.02381
0
0
null
null
0
0.133333
null
null
0.033333
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
1
0
0
0
0
0
0
0
0
2
4b9a54b87db99874feaa8a5505bd2306db6bfb4e
179
py
Python
app/dummyapp/test.py
quaat/anothertest
eda04bae7a6e8fd8610e19fe6e5c308bbea603f2
[ "MIT" ]
5
2021-06-30T09:27:40.000Z
2022-03-16T15:31:22.000Z
app/dummyapp/test.py
quaat/anothertest
eda04bae7a6e8fd8610e19fe6e5c308bbea603f2
[ "MIT" ]
null
null
null
app/dummyapp/test.py
quaat/anothertest
eda04bae7a6e8fd8610e19fe6e5c308bbea603f2
[ "MIT" ]
null
null
null
""" test apirouter """ from fastapi import APIRouter router = APIRouter() @router.get("/") async def home(): """ Home endpoint """ return {"msg": "Hello World"}
12.785714
33
0.592179
19
179
5.578947
0.789474
0.283019
0
0
0
0
0
0
0
0
0
0
0.22905
179
13
34
13.769231
0.768116
0.078212
0
0
0
0
0.117188
0
0
0
0
0
0
1
0
false
0
0.2
0
0.4
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4bb3b0a9b86792716e799c07e8b21b2c8af8318f
6,548
py
Python
actorcritic/nn.py
jrobine/actor-critic
2f72d296c0b550982b0400b6afb7a7a0dfe3f144
[ "MIT" ]
10
2018-07-31T21:04:02.000Z
2022-02-03T18:58:45.000Z
actorcritic/nn.py
jrobine/actor-critic
2f72d296c0b550982b0400b6afb7a7a0dfe3f144
[ "MIT" ]
null
null
null
actorcritic/nn.py
jrobine/actor-critic
2f72d296c0b550982b0400b6afb7a7a0dfe3f144
[ "MIT" ]
1
2018-08-01T18:09:35.000Z
2018-08-01T18:09:35.000Z
"""Contains utilities that concern TensorFlow and neural networks.""" import numpy as np import tensorflow as tf def fully_connected_params(input_size, output_size, dtype, weights_initializer, bias_initializer): """Creates weights and bias variables for a fully connected layer. These can be used in :meth:`fully...
34.463158
117
0.634392
822
6,548
4.905109
0.221411
0.034722
0.032738
0.024306
0.458829
0.426835
0.397321
0.340774
0.28125
0.246032
0
0.008288
0.244502
6,548
189
118
34.645503
0.806752
0.616524
0
0.114286
0
0
0.023763
0.011154
0
0
0
0
0
1
0.228571
false
0
0.057143
0
0.514286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
4bb980141850387f5c8864fcdf8640a636ec14ff
196
py
Python
finddata.py
ironfrank/juzimi
633d3a632133bf61f1e8cecb00b8a7d003a6a2f6
[ "Unlicense" ]
null
null
null
finddata.py
ironfrank/juzimi
633d3a632133bf61f1e8cecb00b8a7d003a6a2f6
[ "Unlicense" ]
null
null
null
finddata.py
ironfrank/juzimi
633d3a632133bf61f1e8cecb00b8a7d003a6a2f6
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- import sys#, os import time for i in range(10): time.sleep(.5) sys.stdout.write("""\033[1;32;40ma :[%3d], b:[%3d], c:[%3d]\r""" % (i, i, i)) sys.stdout.flush()
24.5
81
0.530612
35
196
2.971429
0.714286
0.173077
0
0
0
0
0
0
0
0
0
0.09375
0.183673
196
8
82
24.5
0.55625
0.127551
0
0
0
0
0.242604
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
298a983fc8dc7ead6a8cd3bdb1b67210e350ed06
4,612
py
Python
clases/clases.py
MiGueAJM9724/Python
436975a3ccef5a922afa7e3f14747322f2979e06
[ "Apache-2.0" ]
null
null
null
clases/clases.py
MiGueAJM9724/Python
436975a3ccef5a922afa7e3f14747322f2979e06
[ "Apache-2.0" ]
null
null
null
clases/clases.py
MiGueAJM9724/Python
436975a3ccef5a922afa7e3f14747322f2979e06
[ "Apache-2.0" ]
null
null
null
""" """ class Usuario:#Primera letra en mayuscula e identar def __init__(self, username='', email='', nombre=''): self.username = username self.email = email self.nombre = nombre def saluda(self) return "hola, soy un usuario" + self.nombre def mostrar_username(self): ...
21.253456
96
0.691457
623
4,612
5.036918
0.295345
0.047801
0.017208
0.025494
0.14914
0.128107
0.103569
0.082537
0.082537
0.050988
0
0.008433
0.202949
4,612
216
97
21.351852
0.845212
0
0
0.228261
0
0
0.070931
0
0
0
0
0.032407
0
0
null
null
0
0
null
null
0.217391
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
1
0
0
0
0
0
0
0
0
2