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
dbfbafe90d8d62c542ce03ef8a862cdef8687b06
5,288
py
Python
radssh/hostkey.py
Eli-Tarrago/radssh
ebf3c8f17c3768268dcd483e899a590698de4452
[ "BSD-3-Clause" ]
39
2015-05-11T15:06:58.000Z
2021-12-29T07:24:23.000Z
radssh/hostkey.py
Eli-Tarrago/radssh
ebf3c8f17c3768268dcd483e899a590698de4452
[ "BSD-3-Clause" ]
45
2015-01-05T22:11:18.000Z
2021-06-02T03:57:49.000Z
radssh/hostkey.py
eorochena/radssh
b1d1ee5822036445f26a34147452df5c3142caee
[ "BSD-3-Clause" ]
13
2015-05-05T12:42:09.000Z
2022-03-03T18:09:49.000Z
# # Copyright (c) 2014, 2016, 2018, 2020 LexisNexis Risk Data Management Inc. # # This file is part of the RadSSH software package. # # RadSSH is free software, released under the Revised BSD License. # You are permitted to use, modify, and redsitribute this software # according to the Revised BSD License, a copy of wh...
39.462687
167
0.625946
672
5,288
4.793155
0.334821
0.037256
0.039118
0.039118
0.189072
0.092518
0.092518
0.073269
0.073269
0.073269
0
0.010493
0.279123
5,288
133
168
39.759399
0.83447
0.250946
0
0.222222
0
0.011111
0.098974
0
0
0
0
0
0
1
0.066667
false
0
0.044444
0
0.244444
0.155556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbfc3c9f59db54005f9a1ad67dd376c6806f7fa6
14,153
py
Python
nuke/pymmh3.py
jfpanisset/Cryptomatte
d7c71cff17a4e8895eb17520115aa45ff66b8540
[ "BSD-3-Clause" ]
543
2016-07-07T15:31:01.000Z
2022-03-31T10:58:32.000Z
nuke/pymmh3.py
jfpanisset/Cryptomatte
d7c71cff17a4e8895eb17520115aa45ff66b8540
[ "BSD-3-Clause" ]
143
2016-07-07T16:56:38.000Z
2022-02-23T23:16:52.000Z
nuke/pymmh3.py
jfpanisset/Cryptomatte
d7c71cff17a4e8895eb17520115aa45ff66b8540
[ "BSD-3-Clause" ]
158
2016-07-07T16:41:49.000Z
2022-03-21T17:57:28.000Z
''' pymmh3 was written by Fredrik Kihlander and enhanced by Swapnil Gusani, and is placed in the public domain. The authors hereby disclaim copyright to this source code. pure python implementation of the murmur3 hash algorithm https://code.google.com/p/smhasher/wiki/MurmurHash3 This was written for the times when y...
31.311947
104
0.464283
1,633
14,153
3.920392
0.142682
0.053733
0.06248
0.034989
0.473133
0.406748
0.385036
0.365979
0.328491
0.27054
0
0.146457
0.419628
14,153
451
105
31.381375
0.632944
0.096093
0
0.518182
0
0
0.006369
0
0
0
0.111496
0
0
1
0.036364
false
0
0.006061
0.006061
0.087879
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbfc56fb832ee5fc9af604dacd2a35c059519b31
950
py
Python
bindings/python/tests/test_factory.py
pscff/dlite
4365d828dcaa1736cc78ff6ed9a65592f198ba25
[ "MIT" ]
10
2020-04-08T06:25:27.000Z
2022-03-15T06:54:53.000Z
bindings/python/tests/test_factory.py
pscff/dlite
4365d828dcaa1736cc78ff6ed9a65592f198ba25
[ "MIT" ]
117
2019-12-16T14:43:41.000Z
2022-03-21T19:46:58.000Z
bindings/python/tests/test_factory.py
pscff/dlite
4365d828dcaa1736cc78ff6ed9a65592f198ba25
[ "MIT" ]
5
2020-04-15T16:23:29.000Z
2021-12-07T08:40:54.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import dlite thisdir = os.path.abspath(os.path.dirname(__file__)) class Person: def __init__(self, name, age, skills): self.name = name self.age = age self.skills = skills def __repr__(self): return 'Person(%r, %r, %r)'...
25
78
0.671579
123
950
5.065041
0.455285
0.038523
0.035313
0.070626
0.093098
0
0
0
0
0
0
0.021144
0.153684
950
37
79
25.675676
0.753731
0.095789
0
0
0
0
0.220794
0
0
0
0
0
0
1
0.095238
false
0
0.095238
0.047619
0.285714
0.190476
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbfcfb1df1954ace1963bc30983b96adb222d711
807
py
Python
week_11_DS_N_Algorithm/03_Thr_Lecture/실습6_연속 부분 최대합.py
bky373/elice-racer-1st
ddea8079a1083796ed4f59c38650ff8f4333e6ef
[ "FSFAP" ]
1
2021-11-03T18:27:37.000Z
2021-11-03T18:27:37.000Z
week_11_DS_N_Algorithm/03_Thr_Lecture/실습6_연속 부분 최대합.py
bky373/elice-racer-1st
ddea8079a1083796ed4f59c38650ff8f4333e6ef
[ "FSFAP" ]
null
null
null
week_11_DS_N_Algorithm/03_Thr_Lecture/실습6_연속 부분 최대합.py
bky373/elice-racer-1st
ddea8079a1083796ed4f59c38650ff8f4333e6ef
[ "FSFAP" ]
1
2021-02-10T15:21:53.000Z
2021-02-10T15:21:53.000Z
''' 연속 부분 최대합 nn개의 숫자가 주어질 때, 연속 부분을 선택하여 그 합을 최대화 하는 프로그램을 작성하시오. 예를 들어, 다음과 같이 8개의 숫자가 있다고 하자. 1 2 -4 5 3 -2 9 -10 이 때, 연속 부분이란 연속하여 숫자를 선택하는 것을 말한다. 가능한 연속 부분으로써 [1, 2, -4], [5, 3, -2, 9], [9, -10] 등이 있을 수 있다. 이 연속 부분들 중에서 가장 합이 큰 연속 부분은 [5, 3, -2, 9] 이며, 이보다 더 합을 크게 할 수는 없다. 따라서 연속 부분 최대합은 5+3+(-2)+9 = 15 이다...
17.170213
61
0.537794
174
807
2.448276
0.568966
0.023474
0.035211
0.046948
0.058685
0.058685
0.058685
0.042254
0
0
0
0.087189
0.303594
807
46
62
17.543478
0.670819
0.556382
0
0
0
0
0.025
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.333333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbfd1a602dd992f412e1700c617d5bbf9b239826
505
py
Python
tests/test_dns.py
jensstein/mockdock
4eec294f33d929d361973c1708d2aa856a9900a0
[ "MIT" ]
null
null
null
tests/test_dns.py
jensstein/mockdock
4eec294f33d929d361973c1708d2aa856a9900a0
[ "MIT" ]
6
2020-03-24T16:45:10.000Z
2021-02-13T10:03:53.000Z
tests/test_dns.py
jensstein/mockdock
4eec294f33d929d361973c1708d2aa856a9900a0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import unittest from mockdock import dns class DNSTest(unittest.TestCase): def test_build_packet(self): data = b"^4\x01\x00\x00\x01\x00\x00\x00\x00\x00\x00\x06google\x03com\x00\x00\x01\x00\x01" packet = dns.build_packet(data, "192.168.0.1") expeced_result = b"^4\x81...
38.846154
168
0.708911
89
505
3.966292
0.41573
0.23796
0.203966
0.169972
0.373938
0.373938
0.339943
0.339943
0.23796
0.23796
0
0.237557
0.124752
505
12
169
42.083333
0.561086
0.041584
0
0
0
0.25
0.47619
0.453416
0
0
0
0
0.125
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
dbfd45a1262d4d81ad4ca682e226d591f37c7fd4
1,490
py
Python
tests/conftest.py
zhongnansu/es-cli
e0656c21392e52a8b9cfafa69acfa0c13b743a9c
[ "Apache-2.0" ]
6
2019-08-23T18:06:41.000Z
2020-05-06T18:26:53.000Z
tests/conftest.py
zhongnansu/es-cli
e0656c21392e52a8b9cfafa69acfa0c13b743a9c
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
zhongnansu/es-cli
e0656c21392e52a8b9cfafa69acfa0c13b743a9c
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019, Amazon Web Services 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 writing,...
29.8
73
0.769799
219
1,490
5.114155
0.561644
0.053571
0.048214
0.028571
0.069643
0.069643
0
0
0
0
0
0.006364
0.156376
1,490
49
74
30.408163
0.884646
0.454362
0
0.111111
0
0
0.070605
0
0
0
0
0
0
1
0.166667
false
0
0.222222
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbfd8140aa71c6ce6288cd86d96c8cf8754cf91f
26,845
py
Python
Cogs/ServerStats.py
Damiian1/techwizardshardware
97ceafc15036be4136e860076d73d74f1887f041
[ "MIT" ]
null
null
null
Cogs/ServerStats.py
Damiian1/techwizardshardware
97ceafc15036be4136e860076d73d74f1887f041
[ "MIT" ]
null
null
null
Cogs/ServerStats.py
Damiian1/techwizardshardware
97ceafc15036be4136e860076d73d74f1887f041
[ "MIT" ]
null
null
null
import asyncio import discord from datetime import datetime from operator import itemgetter from discord.ext import commands from Cogs import Nullify from Cogs import DisplayName from Cogs import UserTime from Cogs import Message def setup(bot): # Add the bot...
42.076803
254
0.537568
2,975
26,845
4.783529
0.099496
0.01574
0.020027
0.025367
0.684211
0.63699
0.614012
0.537489
0.530181
0.518727
0
0.010217
0.33645
26,845
637
255
42.142857
0.788245
0.062209
0
0.593291
0
0.012579
0.117514
0
0
0
0
0
0
1
0.004193
false
0.027254
0.018868
0
0.050314
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbfdaede95b2536399d16c62c421baf5bd420ceb
6,688
py
Python
chess_commentary_model/transformers_model/dataset_preprocessing.py
Rseiji/TCC-2020
da68a49da38adf1bcf590b3028894d7834a28157
[ "MIT" ]
null
null
null
chess_commentary_model/transformers_model/dataset_preprocessing.py
Rseiji/TCC-2020
da68a49da38adf1bcf590b3028894d7834a28157
[ "MIT" ]
2
2020-08-30T22:47:54.000Z
2021-03-31T19:58:11.000Z
chess_commentary_model/transformers_model/dataset_preprocessing.py
Rseiji/TCC-2020
da68a49da38adf1bcf590b3028894d7834a28157
[ "MIT" ]
null
null
null
"""Métodos de preprocessamento de testes individuais """ import pandas as pd import numpy as np import math def test_1(df, seed=0): """training: balanced; test: balanced training: 80k (40k 0, 40k 1) test: 20k (10k 0, 10k 1) """ df_ones = df[df['label'] == 1] df_zeros = df[df['label'] ...
36.546448
80
0.689145
1,027
6,688
4.189873
0.077897
0.075296
0.061353
0.100395
0.918894
0.918894
0.888682
0.864513
0.7934
0.7934
0
0.061784
0.165072
6,688
182
81
36.747253
0.708811
0.095395
0
0.774775
0
0
0.035052
0
0
0
0
0.005495
0
1
0.054054
false
0
0.027027
0
0.135135
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
dbfdb987e6de76d1f36bf0f8ce7f9d972b1cbaed
7,103
py
Python
venv/Lib/site-packages/CoolProp/constants.py
kubakoziczak/gasSteamPowerPlant
e6c036cc66ee2ff0b3f2fc923d0991bf57295d61
[ "MIT" ]
null
null
null
venv/Lib/site-packages/CoolProp/constants.py
kubakoziczak/gasSteamPowerPlant
e6c036cc66ee2ff0b3f2fc923d0991bf57295d61
[ "MIT" ]
null
null
null
venv/Lib/site-packages/CoolProp/constants.py
kubakoziczak/gasSteamPowerPlant
e6c036cc66ee2ff0b3f2fc923d0991bf57295d61
[ "MIT" ]
null
null
null
# This file is automatically generated by the generate_constants_module.py script in wrappers/Python. # DO NOT MODIFY THE CONTENTS OF THIS FILE! from __future__ import absolute_import from . import _constants INVALID_PARAMETER = _constants.INVALID_PARAMETER igas_constant = _constants.igas_constant imolar_mass = _cons...
44.672956
120
0.887653
841
7,103
6.88585
0.261593
0.090658
0.01865
0.016059
0.082887
0.036609
0
0
0
0
0
0.004232
0.068563
7,103
158
121
44.955696
0.87107
0.01971
0
0
1
0
0
0
0
0
0
0
0
1
0
false
0
0.012987
0
0.012987
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dbfe9381e4f6dcc57fd5c5d02265d7f565b40315
2,857
py
Python
torch_datasets/samplers/balanced_batch_sampler.py
mingruimingrui/torch-datasets
2640b8c4fa82156e68e617fc545a546b4e08dc4e
[ "MIT" ]
null
null
null
torch_datasets/samplers/balanced_batch_sampler.py
mingruimingrui/torch-datasets
2640b8c4fa82156e68e617fc545a546b4e08dc4e
[ "MIT" ]
null
null
null
torch_datasets/samplers/balanced_batch_sampler.py
mingruimingrui/torch-datasets
2640b8c4fa82156e68e617fc545a546b4e08dc4e
[ "MIT" ]
null
null
null
import random import torch.utils.data.sampler class BalancedBatchSampler(torch.utils.data.sampler.BatchSampler): def __init__( self, dataset_labels, batch_size=1, steps=None, n_classes=0, n_samples=2 ): """ Create a balanced batch sampler for label based...
38.608108
147
0.637382
381
2,857
4.493438
0.246719
0.070093
0.056075
0.070093
0.216122
0.129089
0.051402
0.051402
0.051402
0.051402
0
0.002475
0.292965
2,857
73
148
39.136986
0.84505
0.243962
0
0
0
0
0.035526
0
0
0
0
0
0.022222
1
0.088889
false
0
0.044444
0.022222
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
0
0
0
0
0
0
0
0
0
0
1
0
dbfe9b7374d292dd3a07ffc92b4ebb9e7af2ac5d
1,416
py
Python
ambari-common/src/main/python/resource_management/libraries/functions/get_bare_principal.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
1,664
2015-01-03T09:35:21.000Z
2022-03-31T04:55:24.000Z
ambari-common/src/main/python/resource_management/libraries/functions/get_bare_principal.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
3,018
2015-02-19T20:16:10.000Z
2021-11-13T20:47:48.000Z
ambari-common/src/main/python/resource_management/libraries/functions/get_bare_principal.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
1,673
2015-01-06T14:14:42.000Z
2022-03-31T07:22:30.000Z
#!/usr/bin/env python """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License");...
33.714286
97
0.764831
206
1,416
5.165049
0.529126
0.056391
0.108083
0.030075
0
0
0
0
0
0
0
0.007563
0.159605
1,416
42
98
33.714286
0.886555
0.759181
0
0
0
0
0.139241
0.082278
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dbff3b375851c03b4ae31fb20b30423a4b9c6ad5
1,162
py
Python
04/cross_validation.01.py
study-machine-learning/dongheon.shin
6103ef9c73b162603bc39a27e4ecca0f1ac35e57
[ "MIT" ]
2
2017-09-24T02:29:48.000Z
2017-10-05T11:15:22.000Z
04/cross_validation.01.py
study-machine-learning/dongheon.shin
6103ef9c73b162603bc39a27e4ecca0f1ac35e57
[ "MIT" ]
null
null
null
04/cross_validation.01.py
study-machine-learning/dongheon.shin
6103ef9c73b162603bc39a27e4ecca0f1ac35e57
[ "MIT" ]
null
null
null
from sklearn import svm, metrics import random import re def split(rows): data = [] labels = [] for row in rows: data.append(row[0:4]) labels.append(row[4]) return (data, labels) def calculate_score(train, test): train_data, train_label = split(train) test_data, test_la...
16.84058
66
0.620482
175
1,162
4.011429
0.354286
0.02849
0.054131
0.065527
0
0
0
0
0
0
0
0.008869
0.223752
1,162
68
67
17.088235
0.769401
0
0
0
0
0
0.035284
0
0
0
0
0
0
1
0.102564
false
0
0.076923
0.051282
0.282051
0.051282
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e002150863388c3c73e7c985abca9ac6c4427a70
2,587
bzl
Python
third_party/org_specs2.bzl
wix/wix-oss-infra
b57ac2f0f66487cfdd08293a8fa389efe3d42c43
[ "MIT" ]
3
2020-01-14T12:57:31.000Z
2021-06-06T20:47:57.000Z
third_party/org_specs2.bzl
wix/wix-oss-infra
b57ac2f0f66487cfdd08293a8fa389efe3d42c43
[ "MIT" ]
20
2020-04-02T13:08:43.000Z
2020-11-05T11:27:40.000Z
third_party/org_specs2.bzl
wix/wix-oss-infra
b57ac2f0f66487cfdd08293a8fa389efe3d42c43
[ "MIT" ]
1
2021-04-02T09:32:35.000Z
2021-04-02T09:32:35.000Z
load("@wix_oss_infra//:import_external.bzl", import_external = "safe_wix_scala_maven_import_external") def dependencies(): import_external( name = "org_specs2_specs2_fp_2_12", artifact = "org.specs2:specs2-fp_2.12:4.8.3", artifact_sha256 = "777962ca58054a9ea86e294e025453ecf394c60084c28bd61...
37.492754
102
0.68535
236
2,587
6.974576
0.207627
0.030984
0.136695
0.061968
0.486027
0.45322
0.243621
0.142163
0.076549
0.076549
0
0.267436
0.22961
2,587
68
103
38.044118
0.558455
0
0
0.362069
0
0
0.579822
0.575184
0
0
0
0
0
1
0.017241
true
0
0.103448
0
0.12069
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
e0023b6272774adf06f1384bdb4cb510043c4a82
224
py
Python
task/w2/trenirovka/12-rivnist 2.py
beregok/pythontask
50394ff2b52ab4f3273ec9ddc4b504d1f7b3159e
[ "MIT" ]
1
2019-09-29T14:19:54.000Z
2019-09-29T14:19:54.000Z
task/w2/trenirovka/12-rivnist 2.py
beregok/pythontask
50394ff2b52ab4f3273ec9ddc4b504d1f7b3159e
[ "MIT" ]
null
null
null
task/w2/trenirovka/12-rivnist 2.py
beregok/pythontask
50394ff2b52ab4f3273ec9ddc4b504d1f7b3159e
[ "MIT" ]
null
null
null
a = int(input()) b = int(input()) c = int(input()) d = int(input()) if a == 0 and b == 0: print("INF") else: if (d - b * c / a) != 0 and (- b / a) == (- b // a): print(- b // a) else: print("NO")
18.666667
56
0.397321
38
224
2.342105
0.342105
0.359551
0.11236
0.134831
0
0
0
0
0
0
0
0.02027
0.339286
224
11
57
20.363636
0.581081
0
0
0.181818
0
0
0.022321
0
0
0
0
0
0
1
0
false
0
0
0
0
0.272727
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e004ab57c3294086a91490c226d7c40f3986ad7f
4,265
py
Python
src/reg_resampler.py
atif-hassan/Regression_ReSampling
194b2ae8efea7598a6690792d40e42aba74c111b
[ "BSD-3-Clause" ]
15
2020-06-09T20:08:04.000Z
2021-11-21T15:58:09.000Z
src/reg_resampler.py
atif-hassan/Regression_ReSampling
194b2ae8efea7598a6690792d40e42aba74c111b
[ "BSD-3-Clause" ]
null
null
null
src/reg_resampler.py
atif-hassan/Regression_ReSampling
194b2ae8efea7598a6690792d40e42aba74c111b
[ "BSD-3-Clause" ]
5
2020-06-13T22:07:51.000Z
2021-05-21T03:26:45.000Z
class resampler: def __init__(self): import pandas as pd from sklearn.preprocessing import LabelEncoder from collections import Counter import numpy as np self.bins = 3 self.pd = pd self.LabelEncoder = LabelEncoder self.Counter = Counter ...
41.813725
169
0.562251
537
4,265
4.351955
0.277467
0.082157
0.071887
0.023962
0.206247
0.154044
0.154044
0.154044
0.154044
0.154044
0
0.010604
0.336694
4,265
101
170
42.227723
0.815483
0.171864
0
0.25
0
0
0.053603
0.009959
0
0
0
0
0
1
0.041667
false
0
0.055556
0
0.166667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e0063a8b35dfc827fe158a159fe5d8b8ab703065
4,920
py
Python
get_data/speech_commands.py
patrick-kidger/generalised_shapelets
04930c89dc4673e2af402895fe67655f8375a808
[ "MIT" ]
32
2020-05-31T17:41:58.000Z
2022-03-28T18:38:11.000Z
get_data/speech_commands.py
patrick-kidger/generalised_shapelets
04930c89dc4673e2af402895fe67655f8375a808
[ "MIT" ]
1
2022-02-09T22:13:03.000Z
2022-02-09T23:55:28.000Z
get_data/speech_commands.py
patrick-kidger/generalised_shapelets
04930c89dc4673e2af402895fe67655f8375a808
[ "MIT" ]
9
2020-07-17T16:50:24.000Z
2021-12-13T11:29:12.000Z
import os import pathlib import sklearn.model_selection import tarfile import torch import torchaudio import urllib.request here = pathlib.Path(__file__).resolve().parent def _split_data(tensor, stratify): # 0.7/0.15/0.15 train/val/test split (train_tensor, testval_tensor, train_stratify, testval_strati...
42.051282
120
0.566057
637
4,920
4.125589
0.301413
0.038813
0.020928
0.026636
0.186073
0.158295
0.089422
0.069635
0.060122
0.048706
0
0.02373
0.331911
4,920
116
121
42.413793
0.775783
0.078049
0
0.022472
0
0.011236
0.125414
0.005078
0
0
0
0
0.011236
1
0.05618
false
0
0.078652
0
0.168539
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e008ab01b4020e37d916e20d303c66a51a23123e
5,652
py
Python
app/endpoints/products.py
duch94/spark_crud_test
94a514797700c2e929792f0424fb0e9e911489b7
[ "BSD-2-Clause" ]
null
null
null
app/endpoints/products.py
duch94/spark_crud_test
94a514797700c2e929792f0424fb0e9e911489b7
[ "BSD-2-Clause" ]
null
null
null
app/endpoints/products.py
duch94/spark_crud_test
94a514797700c2e929792f0424fb0e9e911489b7
[ "BSD-2-Clause" ]
null
null
null
from datetime import datetime from typing import List from flask import Blueprint, jsonify, request, json from app.models.products import Product, Category, products_categories from app import db products_blueprint = Blueprint('products', __name__) def create_or_get_categories(p: dict) -> List[Category]...
45.580645
120
0.608457
648
5,652
5.169753
0.205247
0.029552
0.042687
0.041791
0.498806
0.408358
0.304179
0.304179
0.241791
0.152836
0
0.005947
0.256193
5,652
123
121
45.95122
0.790913
0.021231
0
0.171717
0
0.010101
0.178087
0
0
0
0
0
0
1
0.050505
false
0
0.050505
0.010101
0.20202
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e008c8c892e467ea561589969c08eaa2c9b808db
1,701
py
Python
util/config/validators/test/test_validate_bitbucket_trigger.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
2,027
2019-11-12T18:05:48.000Z
2022-03-31T22:25:04.000Z
util/config/validators/test/test_validate_bitbucket_trigger.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
496
2019-11-12T18:13:37.000Z
2022-03-31T10:43:45.000Z
util/config/validators/test/test_validate_bitbucket_trigger.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
249
2019-11-12T18:02:27.000Z
2022-03-22T12:19:19.000Z
import pytest from httmock import urlmatch, HTTMock from util.config import URLSchemeAndHostname from util.config.validator import ValidatorContext from util.config.validators import ConfigValidationException from util.config.validators.validate_bitbucket_trigger import BitbucketTriggerValidator from test.fixtures i...
29.842105
87
0.671958
156
1,701
7.051282
0.352564
0.101818
0.1
0.138182
0.147273
0.105455
0.105455
0.105455
0
0
0
0.006855
0.228101
1,701
56
88
30.375
0.830922
0
0
0.093023
0
0
0.156966
0.078777
0
0
0
0
0.023256
1
0.069767
false
0
0.162791
0
0.255814
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e008cc40a9e990beff8a7a594350250e113f3691
2,414
py
Python
Refraction.py
silkoch42/Geometric-Optics-from-QM
baf41b54c37835b527d5b98cb480d68bc2ff68c3
[ "MIT" ]
null
null
null
Refraction.py
silkoch42/Geometric-Optics-from-QM
baf41b54c37835b527d5b98cb480d68bc2ff68c3
[ "MIT" ]
null
null
null
Refraction.py
silkoch42/Geometric-Optics-from-QM
baf41b54c37835b527d5b98cb480d68bc2ff68c3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Mar 15 16:51:16 2019 @author: Silvan """ import numpy as np import scipy import matplotlib.pyplot as plt k=1000 n1=2.0 n2=1.0 alpha=np.pi/6.0 beta=np.arcsin(n2/n1*np.sin(alpha)) ya=1.0 xa=-ya*np.tan(alpha) yb=-1.0 xb=-yb*np.tan(beta) def s(x): ...
24.383838
95
0.583264
510
2,414
2.75098
0.239216
0.015681
0.017106
0.102637
0.307912
0.280827
0.275125
0.273699
0.273699
0.273699
0
0.076923
0.154515
2,414
99
96
24.383838
0.610485
0.314002
0
0
0
0
0.06539
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0.047619
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e0097d9cfd4f53f9d94ad08b373e659436909217
444
py
Python
readthedocs/docsitalia/management/commands/clear_elasticsearch.py
italia/readthedocs.org
440d3885380d20ec24081f76e26d20701749e179
[ "MIT" ]
19
2018-03-28T12:28:35.000Z
2022-02-14T20:09:42.000Z
readthedocs/docsitalia/management/commands/clear_elasticsearch.py
berez23/docs.italia.it
440d3885380d20ec24081f76e26d20701749e179
[ "MIT" ]
274
2017-10-10T07:59:04.000Z
2022-03-12T00:56:03.000Z
readthedocs/docsitalia/management/commands/clear_elasticsearch.py
italia/readthedocs.org
440d3885380d20ec24081f76e26d20701749e179
[ "MIT" ]
13
2018-04-03T09:49:50.000Z
2021-04-18T22:04:15.000Z
"""Remove the readthedocs elasticsearch index.""" from __future__ import absolute_import from django.conf import settings from django.core.management.base import BaseCommand from elasticsearch import Elasticsearch class Command(BaseCommand): """Clear elasticsearch index.""" def handle(self, *args, **opti...
23.368421
51
0.725225
51
444
6.137255
0.607843
0.115016
0
0
0
0
0
0
0
0
0
0
0.168919
444
18
52
24.666667
0.848238
0.193694
0
0
0
0
0.011696
0
0
0
0
0
0
1
0.125
false
0
0.5
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
e00b9ee8e43ae71af00a3fe383bedc3df745f04d
7,574
py
Python
train.py
vnbot2/BigGAN-PyTorch
1725269d52e05fbd4d06dac64aa4906a8ae7a760
[ "MIT" ]
null
null
null
train.py
vnbot2/BigGAN-PyTorch
1725269d52e05fbd4d06dac64aa4906a8ae7a760
[ "MIT" ]
null
null
null
train.py
vnbot2/BigGAN-PyTorch
1725269d52e05fbd4d06dac64aa4906a8ae7a760
[ "MIT" ]
null
null
null
""" BigGAN: The Authorized Unofficial PyTorch release Code by A. Brock and A. Andonian This code is an unofficial reimplementation of "Large-Scale GAN Training for High Fidelity Natural Image Synthesis," by A. Brock, J. Donahue, and K. Simonyan (arXiv 1809.11096). Let's go. """ import datetime impor...
40.287234
103
0.597571
992
7,574
4.382056
0.288306
0.037267
0.027605
0.010352
0.139176
0.112031
0.096158
0.096158
0.096158
0.096158
0
0.005733
0.28611
7,574
187
104
40.502674
0.798225
0.252046
0
0.112903
0
0
0.142092
0.003749
0
0
0
0
0
1
0.016129
false
0
0.064516
0
0.080645
0.072581
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e00c71d6078595059b1d0af82650622e80499174
1,693
py
Python
geocamUtil/tempfiles.py
geocam/geocamUtilWeb
b64fc063c64b4b0baa140db4c126f2ff980756ab
[ "NASA-1.3" ]
4
2017-03-03T16:24:24.000Z
2018-06-24T05:50:40.000Z
geocamUtil/tempfiles.py
geocam/geocamUtilWeb
b64fc063c64b4b0baa140db4c126f2ff980756ab
[ "NASA-1.3" ]
1
2021-09-29T17:17:30.000Z
2021-09-29T17:17:30.000Z
geocamUtil/tempfiles.py
geocam/geocamUtilWeb
b64fc063c64b4b0baa140db4c126f2ff980756ab
[ "NASA-1.3" ]
1
2017-12-19T20:45:53.000Z
2017-12-19T20:45:53.000Z
# __BEGIN_LICENSE__ #Copyright (c) 2015, United States Government, as represented by the #Administrator of the National Aeronautics and Space Administration. #All rights reserved. # __END_LICENSE__ import os import time import random import shutil from glob import glob import traceback import sys from geocamUtil im...
27.306452
93
0.617247
208
1,693
4.908654
0.490385
0.064643
0.082272
0.044074
0.043095
0
0
0
0
0
0
0.006478
0.270526
1,693
61
94
27.754098
0.820243
0.111636
0
0
0
0
0.084112
0.018692
0
0
0
0
0
1
0.113636
false
0
0.204545
0.045455
0.409091
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e00d7dd12724a0363ee40d8c349e7cccfb71d6f4
5,752
py
Python
Ex1:Tests/ex2.py
Lludion/Exercises-SE
4d5b2b4f2989a3e2c7891ba2b766394dbfb43973
[ "MIT" ]
null
null
null
Ex1:Tests/ex2.py
Lludion/Exercises-SE
4d5b2b4f2989a3e2c7891ba2b766394dbfb43973
[ "MIT" ]
null
null
null
Ex1:Tests/ex2.py
Lludion/Exercises-SE
4d5b2b4f2989a3e2c7891ba2b766394dbfb43973
[ "MIT" ]
null
null
null
# Ce fichier contient (au moins) cinq erreurs. # Instructions: # - tester jusqu'à atteindre 100% de couverture; # - corriger les bugs;" # - envoyer le diff ou le dépôt git par email.""" import hypothesis from hypothesis import given, settings from hypothesis.strategies import integers, lists class BinHeap: #st...
31.26087
112
0.604312
839
5,752
4.108462
0.210965
0.073107
0.041485
0.05483
0.342617
0.254424
0.217581
0.16188
0.099507
0.089063
0
0.042623
0.25765
5,752
184
113
31.26087
0.764637
0.160466
0
0.296552
0
0
0.015823
0
0
0
0
0
0.172414
1
0.117241
false
0
0.02069
0
0.186207
0.02069
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e00dbb3c20046835e182d01718caf34d09944176
22,455
py
Python
python/snewpy/snowglobes.py
svalder/snewpy
5723189ae3dce3506f2fab056bbef24c9ab1a31f
[ "BSD-3-Clause" ]
null
null
null
python/snewpy/snowglobes.py
svalder/snewpy
5723189ae3dce3506f2fab056bbef24c9ab1a31f
[ "BSD-3-Clause" ]
null
null
null
python/snewpy/snowglobes.py
svalder/snewpy
5723189ae3dce3506f2fab056bbef24c9ab1a31f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """The ``snewpy.snowglobes`` module contains functions for interacting with SNOwGLoBES. `SNOwGLoBES <https://github.com/SNOwGLoBES/snowglobes>`_ can estimate detected event rates from a given input supernova neutrino flux. It supports many different neutrino detectors, detector materials and in...
46.298969
553
0.631485
2,934
22,455
4.724608
0.178937
0.024527
0.016159
0.01111
0.524816
0.513851
0.479873
0.467104
0.452821
0.447482
0
0.013161
0.258962
22,455
484
554
46.394628
0.819892
0.311378
0
0.347826
0
0.01087
0.113608
0.023398
0.003623
0
0
0
0
1
0.028986
false
0
0.057971
0
0.115942
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e00e074bf789711cc01d53bcaa030d52c4e69f5b
4,621
py
Python
rlcycle/dqn_base/loss.py
cyoon1729/Rlcycle
5c65b9dd61a6fd5d6dfe92f0b3e04bf309828569
[ "MIT" ]
128
2020-06-29T01:40:36.000Z
2022-03-29T15:37:39.000Z
rlcycle/dqn_base/loss.py
cyoon1729/Rlcycle
5c65b9dd61a6fd5d6dfe92f0b3e04bf309828569
[ "MIT" ]
8
2020-06-29T03:51:50.000Z
2020-07-22T23:55:47.000Z
rlcycle/dqn_base/loss.py
cyoon1729/Rlcycle
5c65b9dd61a6fd5d6dfe92f0b3e04bf309828569
[ "MIT" ]
24
2020-07-02T06:03:03.000Z
2022-03-22T11:59:53.000Z
from typing import List, Tuple from omegaconf import DictConfig import torch import torch.nn as nn import torch.nn.functional as F from rlcycle.common.abstract.loss import Loss class DQNLoss(Loss): """Compute double DQN loss""" def __init__(self, hyper_params: DictConfig, use_cuda: bool): Loss.__in...
34.485075
86
0.61069
614
4,621
4.315961
0.187296
0.026415
0.067925
0.043019
0.527547
0.496981
0.496981
0.468679
0.468679
0.468679
0
0.012854
0.259251
4,621
133
87
34.744361
0.76132
0.015797
0
0.438776
0
0
0.000883
0
0
0
0
0
0
1
0.081633
false
0
0.061224
0.010204
0.22449
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e00f4579dad4a0f1f3310721291b602f532b6bf5
12,518
py
Python
scripts/gap_filling_viewer.py
raphischer/probgf
01bd2be85aa98afd79fc05c1eb3e260b2bcd2ebd
[ "MIT" ]
3
2020-11-19T10:28:57.000Z
2021-04-15T17:16:24.000Z
scripts/gap_filling_viewer.py
raphischer/probgf
01bd2be85aa98afd79fc05c1eb3e260b2bcd2ebd
[ "MIT" ]
null
null
null
scripts/gap_filling_viewer.py
raphischer/probgf
01bd2be85aa98afd79fc05c1eb3e260b2bcd2ebd
[ "MIT" ]
null
null
null
"""viewer application which allows to interactively view spatio-temporal gap filling results""" import os import argparse from datetime import datetime, timedelta from tkinter import Canvas, Tk, Button, RAISED, DISABLED, SUNKEN, NORMAL import numpy as np from PIL import Image, ImageTk import probgf.media as media cla...
51.941909
158
0.616552
1,872
12,518
3.969017
0.149038
0.035532
0.035532
0.01817
0.493809
0.406864
0.340242
0.273082
0.237012
0.182638
0
0.027346
0.228791
12,518
240
159
52.158333
0.742283
0.023406
0
0.105528
0
0
0.079115
0.005897
0
0
0
0
0
1
0.065327
false
0
0.035176
0
0.105528
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e00f57f732929e05a58cd0ef2eae47d08e8561a9
4,946
py
Python
paypal/pro/tests.py
pdfcrowd/django-paypal
0ea56dc6c799204f0f8719481f94d0c79de6eff5
[ "Unlicense", "MIT" ]
1
2019-06-13T15:59:48.000Z
2019-06-13T15:59:48.000Z
pro/tests.py
sirmmo/django-paypal
0c8aeec1c319a08ce1bfdf828534d01b69b8fa27
[ "MIT", "Unlicense" ]
null
null
null
pro/tests.py
sirmmo/django-paypal
0c8aeec1c319a08ce1bfdf828534d01b69b8fa27
[ "MIT", "Unlicense" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from django.conf import settings from django.core.handlers.wsgi import WSGIRequest from django.forms import ValidationError from django.http import QueryDict from django.test import TestCase from django.test.client import Client from paypal.pro.fields import CreditCardField fr...
32.973333
234
0.593207
507
4,946
5.731755
0.467456
0.018582
0.018582
0.01755
0.129387
0.129387
0.118032
0.084997
0.084997
0.084997
0
0.073118
0.247877
4,946
150
235
32.973333
0.708065
0.324909
0
0.116279
0
0
0.196841
0
0
0
0
0
0.069767
1
0.093023
false
0.011628
0.093023
0
0.244186
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e00f75413d6a65ba71109974edd248bc1533ce8f
1,010
py
Python
Hackerrank_Bot_Saves_Princess.py
madhurgupta96/Algorithmic-Journey
75868af1050c99fc25e295812ba1a47468c6737f
[ "Apache-2.0" ]
null
null
null
Hackerrank_Bot_Saves_Princess.py
madhurgupta96/Algorithmic-Journey
75868af1050c99fc25e295812ba1a47468c6737f
[ "Apache-2.0" ]
null
null
null
Hackerrank_Bot_Saves_Princess.py
madhurgupta96/Algorithmic-Journey
75868af1050c99fc25e295812ba1a47468c6737f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Dec 7 19:46:40 2020 @author: Intel """ def displayPathtoPrincess(n,grid): me_i=n//2 me_j=n//2 for i in range(n): if 'p' in grid[i]: pe_i=i for j in range(n): if 'p'==grid[i][j]: pe...
22.954545
40
0.372277
135
1,010
2.607407
0.325926
0.068182
0.045455
0.051136
0.278409
0.136364
0
0
0
0
0
0.045276
0.49703
1,010
44
41
22.954545
0.647638
0.073267
0
0.15625
0
0
0.019187
0
0
0
0
0
0
1
0.03125
false
0
0
0
0.03125
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e01063b5b93496a8c88b374770c28bc942feb23d
65,397
py
Python
gelviz/basic.py
HiDiHlabs/gelviz
515f0462738b44609679c2a26c7d8ac3ed3b4b2b
[ "BSD-3-Clause" ]
null
null
null
gelviz/basic.py
HiDiHlabs/gelviz
515f0462738b44609679c2a26c7d8ac3ed3b4b2b
[ "BSD-3-Clause" ]
null
null
null
gelviz/basic.py
HiDiHlabs/gelviz
515f0462738b44609679c2a26c7d8ac3ed3b4b2b
[ "BSD-3-Clause" ]
null
null
null
import matplotlib.pyplot as plt import pybedtools import pandas as pnd import numpy as np import tabix import matplotlib.ticker as ticker from matplotlib.patches import Rectangle from matplotlib.patches import Arrow from matplotlib.path import Path from matplotlib.patches import PathPatch import matplotlib.cm as cm imp...
35.254447
80
0.545101
7,733
65,397
4.448856
0.075779
0.017731
0.01247
0.015318
0.540273
0.476179
0.436415
0.396274
0.367875
0.341395
0
0.018234
0.360154
65,397
1,854
81
35.273463
0.803938
0.323241
0
0.470534
0
0
0.015456
0
0
0
0
0
0
1
0.017495
false
0
0.012891
0
0.037753
0.001842
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e010b163b6fbc347a75063de7760418370bb37d6
31,171
py
Python
toc/fsa/fsa.py
djrochford/toc
934d19b4acda55a6d4610c8a91b1a6005ff7b683
[ "MIT" ]
null
null
null
toc/fsa/fsa.py
djrochford/toc
934d19b4acda55a6d4610c8a91b1a6005ff7b683
[ "MIT" ]
null
null
null
toc/fsa/fsa.py
djrochford/toc
934d19b4acda55a6d4610c8a91b1a6005ff7b683
[ "MIT" ]
null
null
null
""" File containing DFA and NFA public classes """ import collections.abc from itertools import product, chain, combinations from string import printable from typing import ( AbstractSet, Container, FrozenSet, Iterable, List, Mapping, MutableMapping, Optional, Set, Tuple, Uni...
39.506971
91
0.595939
3,719
31,171
4.838666
0.1331
0.07302
0.030342
0.017894
0.341039
0.273743
0.215615
0.188775
0.161378
0.148486
0
0.00746
0.320554
31,171
788
92
39.557107
0.841258
0.279715
0
0.16888
0
0
0.054557
0
0
0
0
0
0
1
0.083491
false
0
0.009488
0.009488
0.184061
0.003795
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e0112c386596780c5a86b0d6086dc2f7b6c2be8a
429
py
Python
Numbers/Roman Number Generator/tests.py
fossabot/IdeaBag2-Solutions
73b554d9796510fc86e5fc55016732aa866266c6
[ "MIT" ]
10
2018-07-06T22:05:45.000Z
2021-05-22T11:29:04.000Z
Numbers/Roman Number Generator/tests.py
jarik-marwede/IdeaBag2-Projects
c5fe9524ef03a6ebc098ab8aaee7448f5b877828
[ "MIT" ]
22
2018-07-13T17:16:43.000Z
2022-01-11T11:16:08.000Z
Numbers/Roman Number Generator/tests.py
jarik-marwede/IdeaBag2-Projects
c5fe9524ef03a6ebc098ab8aaee7448f5b877828
[ "MIT" ]
1
2020-06-13T18:53:51.000Z
2020-06-13T18:53:51.000Z
#!/usr/bin/env python3 import unittest from roman_number_generator import arabic_to_roman class Test(unittest.TestCase): def _start_arabic_to_roman(self): self.assertRaises(ValueError, arabic_to_roman, 4000) self.assertEqual(arabic_to_roman(4), "IV") self.assertEqual(arabic_to_roman(12),...
23.833333
60
0.717949
57
429
4.982456
0.54386
0.169014
0.274648
0.242958
0.295775
0
0
0
0
0
0
0.028011
0.167832
429
17
61
25.235294
0.767507
0.048951
0
0
0
0
0.036855
0
0
0
0
0
0.4
1
0.1
false
0
0.2
0
0.4
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e012a92e1f872614d01a6331fee5e35c430a31f7
261
py
Python
modules/moduleBase.py
saintaardvark/glouton-satnogs-data-downloader
dc8671340f558b1a21b41b9b04bab05fc15c7809
[ "MIT" ]
null
null
null
modules/moduleBase.py
saintaardvark/glouton-satnogs-data-downloader
dc8671340f558b1a21b41b9b04bab05fc15c7809
[ "MIT" ]
null
null
null
modules/moduleBase.py
saintaardvark/glouton-satnogs-data-downloader
dc8671340f558b1a21b41b9b04bab05fc15c7809
[ "MIT" ]
null
null
null
from infrastructure.satnogClient import SatnogClient import os class ModuleBase: def __init__(self, working_dir): self.working_dir = working_dir def runAfterDownload(self, file_name, full_path, observation): raise NotImplementedError()
29
66
0.762452
29
261
6.551724
0.689655
0.157895
0.147368
0
0
0
0
0
0
0
0
0
0.176245
261
9
67
29
0.883721
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.285714
0
0.714286
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
e013ea72c2e27425fa2415a60a17282e347acbb7
45,537
py
Python
oregano_plugins/fusion/server.py
MrNaif2018/Oregano
cc08f813f9cbdb80d1ac607892f8439ec064ee04
[ "MIT" ]
null
null
null
oregano_plugins/fusion/server.py
MrNaif2018/Oregano
cc08f813f9cbdb80d1ac607892f8439ec064ee04
[ "MIT" ]
null
null
null
oregano_plugins/fusion/server.py
MrNaif2018/Oregano
cc08f813f9cbdb80d1ac607892f8439ec064ee04
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Oregano - a lightweight Ergon client # CashFusion - an advanced coin anonymizer # # Copyright (C) 2020 Mark B. Lundeberg # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the So...
45.310448
174
0.599798
5,520
45,537
4.811594
0.175725
0.011182
0.012651
0.007907
0.182417
0.135354
0.111822
0.083057
0.059676
0.033095
0
0.008967
0.324044
45,537
1,004
175
45.355578
0.853871
0.224038
0
0.254335
0
0.00289
0.074332
0.00648
0
0
0.000343
0.001992
0.011561
1
0.066474
false
0.00289
0.021676
0.00289
0.15896
0.037572
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e014451ff2d26b3e408bb00a4f1a954adc75daa5
2,229
py
Python
Excercici4Package/ex4.py
jtorrenth/CienciaDades
81f005ed1ddcc218dcde8c5e2f1a297444389a82
[ "MIT" ]
null
null
null
Excercici4Package/ex4.py
jtorrenth/CienciaDades
81f005ed1ddcc218dcde8c5e2f1a297444389a82
[ "MIT" ]
null
null
null
Excercici4Package/ex4.py
jtorrenth/CienciaDades
81f005ed1ddcc218dcde8c5e2f1a297444389a82
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt def countvalues(dataframe, subject): # Filtrem i tractem el dataset economydf = filtrar(dataframe, "economy") # el printem printar(economydf, subject) # Filtrem ara per subject infected i ho desem en un altre df infectedf = filtrar(dataframe, "infected") #...
31.842857
154
0.674742
303
2,229
4.858086
0.382838
0.027174
0.043478
0.022418
0.175272
0.116848
0.04212
0
0
0
0
0.02051
0.190668
2,229
69
155
32.304348
0.795455
0.214895
0
0
0
0
0.262428
0
0
0
0
0
0
1
0.151515
false
0
0.030303
0
0.212121
0.242424
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e0161b99cffb06588c8cd2a39e9f07abf59540ea
18,987
bzl
Python
build/rules.bzl
filmil/bazel-ebook
433f1e157c6c1b7867abf72bc0e882c07477d60d
[ "Apache-2.0" ]
9
2020-05-31T10:24:57.000Z
2021-12-21T10:07:51.000Z
build/rules.bzl
filmil/bazel-ebook
433f1e157c6c1b7867abf72bc0e882c07477d60d
[ "Apache-2.0" ]
2
2021-11-09T23:25:01.000Z
2021-11-10T08:42:22.000Z
build/rules.bzl
filmil/bazel-ebook
433f1e157c6c1b7867abf72bc0e882c07477d60d
[ "Apache-2.0" ]
2
2020-06-03T13:21:33.000Z
2021-12-01T20:17:46.000Z
# Copyright (C) 2020 Google Inc. # # This file has been licensed under Apache 2.0 license. Please see the LICENSE # file at the root of the repository. # Build rules for building ebooks. # This is the container CONTAINER = "filipfilmar/ebook-buildenv:1.1" # Use this for quick local runs. #CONTAINER = "ebook-builden...
32.126904
103
0.599357
2,213
18,987
4.921826
0.105739
0.030848
0.012394
0.023136
0.685549
0.636339
0.567297
0.534613
0.518638
0.48733
0
0.002063
0.285195
18,987
590
104
32.181356
0.800472
0.0622
0
0.611691
0
0
0.172181
0.012942
0
0
0
0
0
1
0.029228
false
0
0
0.010438
0.058455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e0164a1f4fee849a8bca46fb970244ecbfd603fe
715
py
Python
1094 EXPERIENCIAS.py
castrolimoeiro/Uri-exercise
7a9227c55a79f14fe8bde4aa0ebb4c268bbda4bb
[ "MIT" ]
null
null
null
1094 EXPERIENCIAS.py
castrolimoeiro/Uri-exercise
7a9227c55a79f14fe8bde4aa0ebb4c268bbda4bb
[ "MIT" ]
null
null
null
1094 EXPERIENCIAS.py
castrolimoeiro/Uri-exercise
7a9227c55a79f14fe8bde4aa0ebb4c268bbda4bb
[ "MIT" ]
null
null
null
n = int(input()) coelho = rato = sapo = contador = 0 for i in range(0, n): q, t = input().split(' ') t = t.upper() q = int(q) if 1 <= q <= 15: contador += q if t == 'C': coelho += q elif t == 'R': rato += q elif t == 'S': sapo += q po...
25.535714
51
0.544056
101
715
3.851485
0.366337
0.107969
0.113111
0.100257
0.102828
0
0
0
0
0
0
0.032755
0.274126
715
27
52
26.481481
0.716763
0
0
0
0
0
0.299301
0
0
0
0
0
0
1
0
false
0
0
0
0
0.291667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e016b94fa3454d62f7b448ca14631899dd78dc4c
299
py
Python
gravur/common/amountinput.py
F483/gravur
575c268d9ac28aa0ba00f1e5109bd74c3b7b69a5
[ "MIT" ]
3
2015-07-20T17:56:21.000Z
2017-10-22T05:52:13.000Z
gravur/common/amountinput.py
F483/gravur
575c268d9ac28aa0ba00f1e5109bd74c3b7b69a5
[ "MIT" ]
null
null
null
gravur/common/amountinput.py
F483/gravur
575c268d9ac28aa0ba00f1e5109bd74c3b7b69a5
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright (c) 2015 Fabian Barkhau <fabian.barkhau@gmail.com> # License: MIT (see LICENSE file) from kivy.uix.boxlayout import BoxLayout from gravur.common.labelbox import LabelBox # NOQA from gravur.utils import load_widget @load_widget class AmountInput(BoxLayout): pass
21.357143
62
0.772575
42
299
5.452381
0.690476
0.113537
0
0
0
0
0
0
0
0
0
0.019531
0.143813
299
13
63
23
0.875
0.371237
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.166667
0.5
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
1
1
1
0
1
0
0
4
e018a8edf8d16988caad3f9660a381b73b1f97c4
17,156
py
Python
tibanna/top.py
4dn-dcic/tibanna
bb84597c425a481a230be30cb0ed9b99c774e53d
[ "MIT" ]
62
2017-02-16T02:16:22.000Z
2022-02-07T08:26:12.000Z
tibanna/top.py
4dn-dcic/tibanna
bb84597c425a481a230be30cb0ed9b99c774e53d
[ "MIT" ]
77
2017-10-26T20:17:35.000Z
2022-03-25T22:56:32.000Z
tibanna/top.py
4dn-dcic/tibanna
bb84597c425a481a230be30cb0ed9b99c774e53d
[ "MIT" ]
19
2017-01-27T16:37:37.000Z
2021-12-12T13:52:01.000Z
import datetime class Top(object): """class TopSeries stores the information of a series of top commands :: echo -n 'Timestamp: '; date +%F-%H:%M:%S top -b -n1 [-i] [-c] over short intervals to monitor the same set of processes over time. An example input content looks like below, ...
47.392265
148
0.6199
2,308
17,156
4.480069
0.206672
0.016538
0.013927
0.011605
0.233559
0.193907
0.155803
0.129594
0.122631
0.111219
0
0.023622
0.296747
17,156
361
149
47.523546
0.833402
0.418046
0
0.269841
0
0
0.054473
0.014426
0
0
0
0
0
1
0.100529
false
0
0.005291
0.026455
0.243386
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e01a18c1d0d2ecbc1fcb6159c9f9c87becb0c6cc
1,458
py
Python
venv/Lib/site-packages/zmq/tests/test_draft.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
603
2020-12-23T13:49:32.000Z
2022-03-31T23:38:03.000Z
venv/Lib/site-packages/zmq/tests/test_draft.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
387
2020-12-15T14:54:04.000Z
2022-03-31T07:00:21.000Z
venv/Lib/site-packages/zmq/tests/test_draft.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
35
2021-03-26T03:12:04.000Z
2022-03-23T10:15:10.000Z
# -*- coding: utf8 -*- # Copyright (C) PyZMQ Developers # Distributed under the terms of the Modified BSD License. import os import platform import time import pytest import zmq from zmq.tests import BaseZMQTestCase, skip_pypy class TestDraftSockets(BaseZMQTestCase): def setUp(self): if not zmq.DRAFT_AP...
29.16
71
0.593964
179
1,458
4.75419
0.50838
0.031727
0.037603
0.044653
0.051704
0
0
0
0
0
0
0.01088
0.306584
1,458
49
72
29.755102
0.830861
0.095336
0
0
0
0
0.038052
0
0
0
0
0
0.076923
1
0.076923
false
0
0.153846
0
0.25641
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e01a5f16e11613ae6cff496ae606faff7b1d0e27
460
py
Python
home/push/mipush/APIError.py
he0119/smart-home
bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683
[ "MIT" ]
null
null
null
home/push/mipush/APIError.py
he0119/smart-home
bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683
[ "MIT" ]
223
2020-02-21T06:16:56.000Z
2022-03-01T22:24:19.000Z
home/push/mipush/APIError.py
he0119/smart-home
bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683
[ "MIT" ]
null
null
null
class APIError(Exception): """ raise APIError if receiving json message indicating failure. """ def __init__(self, error_code, error, request): self.error_code = error_code self.error = error self.request = request Exception.__init__(self, error) def __str__(self): ...
25.555556
64
0.576087
49
460
5.081633
0.387755
0.216867
0.156627
0.144578
0
0
0
0
0
0
0
0
0.321739
460
17
65
27.058824
0.798077
0.130435
0
0
0
0
0.075521
0
0
0
0
0
0
1
0.166667
false
0
0
0.083333
0.333333
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e01cbf8a1a1ab981a1d993596c3a332451dcd74d
367
py
Python
pythonlibs/mantis/templates/webapp/src/webapp/base.py
adoggie/Tibet.6
3c53060edafd80b9c4dafa10699a68d86a410c66
[ "MIT" ]
22
2019-10-28T07:28:12.000Z
2022-03-19T15:36:41.000Z
AliceBackend/src/AliceBackend/base.py
adoggie/Tibet.6
3c53060edafd80b9c4dafa10699a68d86a410c66
[ "MIT" ]
1
2019-11-07T04:54:14.000Z
2019-11-07T07:12:48.000Z
AliceBackend/src/AliceBackend/base.py
adoggie/Tibet.6
3c53060edafd80b9c4dafa10699a68d86a410c66
[ "MIT" ]
13
2019-10-28T07:29:07.000Z
2021-11-03T06:53:12.000Z
#coding:utf-8 class SystemDeviceType(object): InnerBox = 1 # 主屏分离的室内主机 InnerScreen = 2 # 主屏分离的室内屏 OuterBox = 3 # 室外机 PropCallApp = 4 # 物业值守 PropSentryApp = 5 # 物业岗亭机 Others = 10 ValidatedList = (1,2,3,4,5) class Constants(object): SUPER_ACCESS_TOKEN = 'YTU3NzV...
24.466667
80
0.643052
36
367
6.5
0.805556
0
0
0
0
0
0
0
0
0
0
0.067164
0.269755
367
15
80
24.466667
0.80597
0.125341
0
0
0
0
0.167722
0.158228
0
0
0
0
0
1
0
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e01cd6185b052b2c9153c8eec135e9e3a2cf7572
667
py
Python
base/site-packages/django_qbe/urls.py
edisonlz/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
285
2019-12-23T09:50:21.000Z
2021-12-08T09:08:49.000Z
base/site-packages/django_qbe/urls.py
jeckun/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
null
null
null
base/site-packages/django_qbe/urls.py
jeckun/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
9
2019-12-23T12:59:25.000Z
2022-03-15T05:12:11.000Z
# -*- coding: utf-8 -*- from django.conf.urls.defaults import patterns, url from django_qbe.exports import formats urlpatterns = patterns('django_qbe.views', url(r'^$', 'qbe_form', name="qbe_form"), url(r'^js/$', 'qbe_js', name="qbe_js"), url(r'^results/bookmark/$', 'qbe_bookmark', name="qbe_bookma...
37.055556
73
0.611694
89
667
4.393258
0.370787
0.071611
0.112532
0
0
0
0
0
0
0
0
0.00177
0.152924
667
17
74
39.235294
0.690265
0.031484
0
0
0
0
0.427019
0.100932
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e01d041f8b5c1564d154529462e58e50b56f4910
5,264
py
Python
augment.py
docongminh/Text-Image-Augmentation-python
da27e8346ce2339f801335923faf7b14e026fd90
[ "Apache-2.0" ]
217
2020-02-09T07:44:18.000Z
2022-03-24T03:52:51.000Z
ocraug/augment.py
lzmisscc/Text-Image-Augmentation-python
12f104452e939444eb0fd4ac96143b78d091845b
[ "Apache-2.0" ]
5
2020-03-23T02:24:33.000Z
2022-03-13T07:02:04.000Z
ocraug/augment.py
lzmisscc/Text-Image-Augmentation-python
12f104452e939444eb0fd4ac96143b78d091845b
[ "Apache-2.0" ]
42
2020-02-10T06:42:31.000Z
2022-03-13T11:54:18.000Z
# -*- coding:utf-8 -*- # Author: RubanSeven # import cv2 import numpy as np # from transform import get_perspective_transform, warp_perspective from warp_mls import WarpMLS def distort(src, segment): img_h, img_w = src.shape[:2] cut = img_w // segment thresh = cut // 3 # thresh = img_h...
33.74359
107
0.586816
783
5,264
3.711367
0.077905
0.130076
0.14969
0.209566
0.88128
0.852719
0.835857
0.812113
0.790089
0.76084
0
0.021147
0.254369
5,264
155
108
33.96129
0.719236
0.43959
0
0.626866
0
0
0
0
0
0
0
0
0
1
0.044776
false
0
0.029851
0
0.119403
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
e01de102906f7a6f8c39855d08b6adaa53f5663c
1,347
py
Python
Graph/print all paths from two vertices in a directed graph.py
ikaushikpal/DS-450-python
9466f77fb9db9e6a5bb3f20aa89ba6332f49e848
[ "MIT" ]
3
2021-06-28T12:04:19.000Z
2021-09-07T07:23:41.000Z
Graph/print all paths from two vertices in a directed graph.py
SupriyoDam/DS-450-python
5dc21ce61b3279e9bd9d6ef3ad236667227ca283
[ "MIT" ]
null
null
null
Graph/print all paths from two vertices in a directed graph.py
SupriyoDam/DS-450-python
5dc21ce61b3279e9bd9d6ef3ad236667227ca283
[ "MIT" ]
1
2021-06-28T15:42:55.000Z
2021-06-28T15:42:55.000Z
from collections import defaultdict class Graph: def __init__(self): self.graph = defaultdict(list) def addEdge(self, starting_vertex, end_vertex): self.graph[starting_vertex].append(end_vertex) def printAllPaths(self, starting_vertex, target_vertex): visitedVertices = defaultdic...
28.659574
85
0.628062
146
1,347
5.547945
0.273973
0.103704
0.1
0.122222
0.239506
0.239506
0.148148
0
0
0
0
0
0.256125
1,347
46
86
29.282609
0.808383
0
0
0
0
0
0.017817
0
0
0
0
0
0
1
0.117647
false
0
0.029412
0
0.235294
0.088235
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e01e00717692398432049be3d51d551f012c222e
1,958
py
Python
tests/pipegeojson_test/test_pipegeojson.py
kamyarrasta/berrl
1cf2ba8194498ec8f80d2908399ad00f1e963d83
[ "Apache-2.0" ]
1
2016-03-04T18:30:48.000Z
2016-03-04T18:30:48.000Z
tests/pipegeojson_test/test_pipegeojson.py
kamyarrasta/berrl
1cf2ba8194498ec8f80d2908399ad00f1e963d83
[ "Apache-2.0" ]
null
null
null
tests/pipegeojson_test/test_pipegeojson.py
kamyarrasta/berrl
1cf2ba8194498ec8f80d2908399ad00f1e963d83
[ "Apache-2.0" ]
null
null
null
# testing the output of pipegeojson against different input types import berrl as bl import itertools # making line with csv file location line1=bl.make_line('csvs/line_example.csv') # making line with list testlist=bl.read('csvs/line_example.csv') line2=bl.make_line(testlist,list=True) # testing each line geojson ...
22.25
65
0.759959
339
1,958
4.342183
0.19764
0.032609
0.054348
0.05163
0.640625
0.640625
0.605299
0.587636
0.537364
0.537364
0
0.023866
0.144025
1,958
87
66
22.505747
0.854415
0.389173
0
0.56
0
0
0.195745
0.154894
0
0
0
0
0
0
null
null
0.26
0.04
null
null
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
e01f044aab30cbd5165bae297a319d57b579704e
912
py
Python
tierpsy/debugging/catch_infinite_loop.py
mgh17/tierpsy-tracker
a18c06aa80a5fb22fd51563d82c639b520742777
[ "MIT" ]
9
2021-01-11T10:49:21.000Z
2022-02-28T15:48:00.000Z
tierpsy/debugging/catch_infinite_loop.py
mgh17/tierpsy-tracker
a18c06aa80a5fb22fd51563d82c639b520742777
[ "MIT" ]
18
2020-05-08T15:43:08.000Z
2022-03-23T10:19:24.000Z
tierpsy/debugging/catch_infinite_loop.py
mgh17/tierpsy-tracker
a18c06aa80a5fb22fd51563d82c639b520742777
[ "MIT" ]
10
2019-12-18T12:10:12.000Z
2022-01-05T09:12:47.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon May 8 16:19:07 2017 @author: ajaver """ import os import cv2 import sys import glob import threading from functools import partial main_dir = '/Volumes/behavgenom_archive$/Celine/raw/' fnames = glob.glob(os.path.join(main_dir, '**', '*.avi')) fnames =...
21.714286
71
0.663377
132
912
4.454545
0.537879
0.107143
0.061224
0.061224
0.20068
0.12585
0.12585
0
0
0
0
0.021948
0.200658
912
42
72
21.714286
0.784636
0.105263
0
0.148148
0
0
0.074257
0.049505
0
0
0
0
0
1
0.037037
false
0
0.222222
0
0.296296
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e0201884251a727105b3a8b3946ca3bc3aefd73d
480
py
Python
devito/passes/iet/languages/C.py
guaacoelho/devito
7e0b873114675752c4a49ed9076ee5d52997833c
[ "MIT" ]
199
2016-08-18T23:33:05.000Z
2019-12-24T07:08:48.000Z
devito/passes/iet/languages/C.py
guaacoelho/devito
7e0b873114675752c4a49ed9076ee5d52997833c
[ "MIT" ]
949
2016-04-25T11:41:34.000Z
2019-12-27T10:43:40.000Z
devito/passes/iet/languages/C.py
guaacoelho/devito
7e0b873114675752c4a49ed9076ee5d52997833c
[ "MIT" ]
78
2016-08-30T07:42:34.000Z
2019-12-13T20:34:45.000Z
from devito.ir import Call from devito.passes.iet.definitions import DataManager from devito.passes.iet.langbase import LangBB __all__ = ['CBB', 'CDataManager'] class CBB(LangBB): mapper = { 'aligned': lambda i: '__attribute__((aligned(%d)))' % i, 'host-alloc': lambda i, j, k: ...
21.818182
53
0.591667
57
480
4.824561
0.508772
0.109091
0.116364
0.138182
0
0
0
0
0
0
0
0
0.260417
480
21
54
22.857143
0.774648
0
0
0
0
0
0.18125
0.058333
0
0
0
0
0
1
0
false
0.133333
0.2
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e0215d4c222f248ad7105000615a748c88340354
2,026
py
Python
tests/_test_image.py
Freakwill/ell
8aa510cefb5d63db35071820208971013fac154c
[ "MIT" ]
null
null
null
tests/_test_image.py
Freakwill/ell
8aa510cefb5d63db35071820208971013fac154c
[ "MIT" ]
null
null
null
tests/_test_image.py
Freakwill/ell
8aa510cefb5d63db35071820208971013fac154c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Test methods about image process Make sure the existance of the images """ from ell import * import numpy as np _filter = Filter.from_name('db4') def test_resize(): chennal=0 c = ImageRGB.open('src/lenna.jpg') d=c.resize(minInd=(-100,-100), maxInd=(100,100)) d.to_image() ...
28.535211
109
0.605133
338
2,026
3.428994
0.204142
0.102675
0.085418
0.120794
0.713546
0.669543
0.627265
0.584124
0.535807
0.535807
0
0.051169
0.218657
2,026
70
110
28.942857
0.680985
0.082922
0
0.5
0
0
0.052489
0
0
0
0
0
0.145833
1
0.208333
false
0
0.041667
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e02439282d17416800f4bfd8e050f404bc4d7706
5,991
py
Python
donkeycar/parts/pytorch/torch_data.py
adricl/donkeycar
8eb2705ed4161c0d6a9cfd9c7b0a1c0ca5abaeef
[ "MIT" ]
1,100
2017-01-18T16:08:33.000Z
2018-11-04T00:42:54.000Z
donkeycar/parts/pytorch/torch_data.py
adricl/donkeycar
8eb2705ed4161c0d6a9cfd9c7b0a1c0ca5abaeef
[ "MIT" ]
199
2016-12-20T07:45:16.000Z
2018-11-01T02:30:12.000Z
donkeycar/parts/pytorch/torch_data.py
adricl/donkeycar
8eb2705ed4161c0d6a9cfd9c7b0a1c0ca5abaeef
[ "MIT" ]
521
2017-01-10T21:53:24.000Z
2018-11-01T18:17:52.000Z
# PyTorch import torch from torch.utils.data import IterableDataset, DataLoader from donkeycar.utils import train_test_split from donkeycar.parts.tub_v2 import Tub from torchvision import transforms from typing import List, Any from donkeycar.pipeline.types import TubRecord, TubDataset from donkeycar.pipeline.sequence ...
37.21118
95
0.633951
748
5,991
4.962567
0.299465
0.02694
0.015086
0.005927
0.25
0.235453
0.212284
0.188039
0.188039
0.188039
0
0.037366
0.285261
5,991
160
96
37.44375
0.829519
0.336171
0
0.125
0
0
0.017108
0
0
0
0
0
0.0125
1
0.1375
false
0
0.1125
0.05
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e0251d7f1fc5a3340792a778c923482bb49bcf13
316
py
Python
lite/__init__.py
CleverInsight/sparx-lite
1b729e8d11292e9737d57e092ee8916999ab1338
[ "MIT" ]
null
null
null
lite/__init__.py
CleverInsight/sparx-lite
1b729e8d11292e9737d57e092ee8916999ab1338
[ "MIT" ]
null
null
null
lite/__init__.py
CleverInsight/sparx-lite
1b729e8d11292e9737d57e092ee8916999ab1338
[ "MIT" ]
null
null
null
import os from tornado.template import Template __SNIPPET__ = os.path.join(os.path.dirname(os.path.abspath(__file__)), '_snippet') def T(name, **kw): t = Template(open(os.path.join(__SNIPPET__, name + '.html'), 'rb').read()) return t.generate(**dict([('template_file', name)] + globals().items() + kw.items()))
31.6
86
0.686709
45
316
4.511111
0.533333
0.118227
0.098522
0
0
0
0
0
0
0
0
0
0.101266
316
9
87
35.111111
0.714789
0
0
0
0
0
0.088608
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
e025cd2fbcd0226b08e7474394109f24f199f13c
3,857
py
Python
homeassistant/components/sensor/hddtemp.py
mdonoughe/home-assistant
d9805160bc787146bff0c434fdcab995716f0f8c
[ "Apache-2.0" ]
2
2020-02-20T18:47:55.000Z
2021-11-09T11:33:28.000Z
homeassistant/components/sensor/hddtemp.py
mdonoughe/home-assistant
d9805160bc787146bff0c434fdcab995716f0f8c
[ "Apache-2.0" ]
1
2021-02-08T20:56:06.000Z
2021-02-08T20:56:06.000Z
homeassistant/components/sensor/hddtemp.py
diophung/home-assistant
a5aa1118937702ca8bec050614ee52dc14f8466b
[ "Apache-2.0" ]
1
2020-11-21T09:37:47.000Z
2020-11-21T09:37:47.000Z
""" Support for getting the disk temperature of a host. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.hddtemp/ """ import logging from datetime import timedelta from telnetlib import Telnet import voluptuous as vol import homeassistant.helpers....
29.219697
79
0.637283
481
3,857
4.966736
0.288981
0.027627
0.025115
0.020092
0.064044
0.044789
0.033487
0.033487
0.033487
0
0
0.004836
0.249417
3,857
131
80
29.442748
0.82038
0.160747
0
0.114943
0
0
0.02678
0
0
0
0
0
0
1
0.103448
false
0
0.091954
0
0.287356
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e026ba13c5f7c12090e3dee6c5f9a4f65eca3bb7
1,402
py
Python
boomer.py
JohnnySn0w/BabbleBot
03a383b063e4f28049f27f8ec669f22767ed8a87
[ "MIT" ]
1
2019-07-07T01:46:55.000Z
2019-07-07T01:46:55.000Z
boomer.py
JohnnySn0w/BabbleBot
03a383b063e4f28049f27f8ec669f22767ed8a87
[ "MIT" ]
1
2019-07-26T18:34:02.000Z
2019-07-26T18:34:02.000Z
boomer.py
JohnnySn0w/BabbleBot
03a383b063e4f28049f27f8ec669f22767ed8a87
[ "MIT" ]
1
2020-05-10T01:27:48.000Z
2020-05-10T01:27:48.000Z
import random prefix = [ 'Look at you! ', 'Bless ', 'Bless! ', 'I heard about that! ', 'Amen!', 'You and the kids doing alright?', 'Miss ya\'ll!' ] suffix = [ '. Amen!', '. God bless america', '. God bless!', ' haha', '. love ya!', '. love ya\'ll!', ] def add_pre_suf(sentence): if random.randint(1,10) <= 6: ...
23.366667
76
0.53067
189
1,402
3.867725
0.343915
0.106703
0.076607
0.087551
0.314637
0.240766
0.240766
0.240766
0.240766
0.240766
0
0.038382
0.312411
1,402
59
77
23.762712
0.719917
0
0
0.222222
0
0
0.113409
0
0
0
0
0
0
1
0.055556
false
0
0.018519
0
0.203704
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e026dd61a71f4c0236cf71cd04ff440228426371
1,303
py
Python
bot/views.py
eyobofficial/COVID-19-Mutual-Aid
42d30ce95b0e9c717c5eda3ecaafea2812ec34f7
[ "MIT" ]
null
null
null
bot/views.py
eyobofficial/COVID-19-Mutual-Aid
42d30ce95b0e9c717c5eda3ecaafea2812ec34f7
[ "MIT" ]
5
2020-03-19T17:49:50.000Z
2021-06-10T20:06:14.000Z
bot/views.py
eyobofficial/COVID-19-Mutual-Aid
42d30ce95b0e9c717c5eda3ecaafea2812ec34f7
[ "MIT" ]
null
null
null
import telegram from django.conf import settings from django.shortcuts import redirect from django.utils.decorators import method_decorator from django.views.generic import View from django.views.decorators.csrf import csrf_exempt from braces.views import CsrfExemptMixin from rest_framework.authentication import Bas...
29.613636
61
0.692249
154
1,303
5.714286
0.454545
0.056818
0.096591
0
0
0
0
0
0
0
0
0.003922
0.217191
1,303
43
62
30.302326
0.858824
0
0
0
0
0
0.058462
0
0
0
0
0
0
1
0.030303
false
0
0.424242
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e026df5666a9c260f8a2d313e1edc3eee3cad4f7
9,053
py
Python
code/counterfactual_generative_networks-main/imagenet/train_cgn.py
dummyxyz1/re_counterfactual_generative
4dda8e17a1123a564d60be82c17e9589155fb2e2
[ "MIT" ]
null
null
null
code/counterfactual_generative_networks-main/imagenet/train_cgn.py
dummyxyz1/re_counterfactual_generative
4dda8e17a1123a564d60be82c17e9589155fb2e2
[ "MIT" ]
null
null
null
code/counterfactual_generative_networks-main/imagenet/train_cgn.py
dummyxyz1/re_counterfactual_generative
4dda8e17a1123a564d60be82c17e9589155fb2e2
[ "MIT" ]
null
null
null
import os from datetime import datetime from os.path import join import pathlib from tqdm import tqdm import argparse import torch from torch import nn, optim from torch.autograd import Variable import torchvision from torchvision.transforms import Pad from torchvision.utils import make_grid import repackage repackage...
37.720833
98
0.629515
1,262
9,053
4.290808
0.209984
0.016621
0.031394
0.019945
0.294552
0.24229
0.195568
0.117452
0.117452
0.075716
0
0.016157
0.247984
9,053
239
99
37.878661
0.77923
0.036121
0
0.132597
0
0
0.10672
0.008501
0
0
0
0
0
1
0.027624
false
0
0.099448
0
0.132597
0.016575
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e0274bb01109146cf480d663260e32b7e8a8cc2d
580
py
Python
portfolio/urls.py
ramza007/Ramza.io
2172d9ac13e87becbc8644ad5755070f48fab8da
[ "Apache-2.0" ]
3
2019-12-16T16:47:16.000Z
2020-07-28T19:47:34.000Z
portfolio/urls.py
ramza007/Ramza.io
2172d9ac13e87becbc8644ad5755070f48fab8da
[ "Apache-2.0" ]
15
2019-12-05T03:38:19.000Z
2022-03-13T02:35:30.000Z
portfolio/urls.py
ramza007/Ramza.io
2172d9ac13e87becbc8644ad5755070f48fab8da
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from django.urls import path, include,re_path from . import views from rest_framework.authtoken.views import obtain_auth_token urlpatterns = [ path('', views.index, name='index'), path('about', views.about, name='about'), path('projects', views.projects, name='projects'),...
34.117647
92
0.7
83
580
4.759036
0.409639
0.060759
0.053165
0.075949
0
0
0
0
0
0
0
0.003922
0.12069
580
16
93
36.25
0.770588
0
0
0
0
0
0.194828
0.067241
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e027abc215159b586950e87882ad8ad4be055155
407
py
Python
tests/resources/mlflow-test-plugin/mlflow_test_plugin/file_store.py
iPieter/kiwi
76b66872fce68873809a0dea112e2ed552ae5b63
[ "Apache-2.0" ]
null
null
null
tests/resources/mlflow-test-plugin/mlflow_test_plugin/file_store.py
iPieter/kiwi
76b66872fce68873809a0dea112e2ed552ae5b63
[ "Apache-2.0" ]
1
2021-01-24T13:34:51.000Z
2021-01-24T13:34:51.000Z
tests/resources/mlflow-test-plugin/mlflow_test_plugin/file_store.py
iPieter/kiwi
76b66872fce68873809a0dea112e2ed552ae5b63
[ "Apache-2.0" ]
null
null
null
from six.moves import urllib from kiwi.store.tracking.file_store import FileStore class PluginFileStore(FileStore): """FileStore provided through entrypoints system""" def __init__(self, store_uri=None, artifact_uri=None): path = urllib.parse.urlparse(store_uri).path if store_uri else None s...
31.307692
75
0.746929
53
407
5.45283
0.584906
0.083045
0
0
0
0
0
0
0
0
0
0
0.167076
407
12
76
33.916667
0.852507
0.110565
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e02820e74734d672d90f15bf093da7319a0c92ba
12,815
py
Python
tests/server/test_flask_api.py
YuhangCh/terracotta
867ba5f7425fa88881f4c161d81cc7311f4f9c4e
[ "MIT" ]
null
null
null
tests/server/test_flask_api.py
YuhangCh/terracotta
867ba5f7425fa88881f4c161d81cc7311f4f9c4e
[ "MIT" ]
null
null
null
tests/server/test_flask_api.py
YuhangCh/terracotta
867ba5f7425fa88881f4c161d81cc7311f4f9c4e
[ "MIT" ]
null
null
null
from io import BytesIO import json import urllib.parse from collections import OrderedDict from PIL import Image import numpy as np import pytest @pytest.fixture(scope='module') def flask_app(): from terracotta.server import create_app return create_app() @pytest.fixture(scope='module') def client(flask_a...
30.731415
99
0.65595
1,862
12,815
4.338883
0.086466
0.04456
0.06127
0.10026
0.839708
0.805793
0.762099
0.730288
0.709494
0.646615
0
0.049904
0.188451
12,815
416
100
30.805288
0.726923
0.019664
0
0.552448
0
0.020979
0.233822
0.193497
0
0
0
0
0.27972
1
0.104895
false
0
0.076923
0
0.188811
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
e02908fac191deeaa9eb04515ee51d7d466320c5
1,695
py
Python
url.py
matthieucan/shorturl
a7f7fab61e8b23b352590797ca4959ed166c865e
[ "WTFPL" ]
1
2018-10-19T01:57:29.000Z
2018-10-19T01:57:29.000Z
url.py
matthieucan/shorturl
a7f7fab61e8b23b352590797ca4959ed166c865e
[ "WTFPL" ]
null
null
null
url.py
matthieucan/shorturl
a7f7fab61e8b23b352590797ca4959ed166c865e
[ "WTFPL" ]
null
null
null
def base_conv(n, input_base=10, output_base=10): """ Converts a number n from base input_base to base output_base. The following symbols are used to represent numbers: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ n can be an int if input_base <= 10, and a string otherwise. ...
36.06383
78
0.640708
224
1,695
4.638393
0.321429
0.084697
0.134745
0.049086
0.097209
0
0
0
0
0
0
0.119507
0.234808
1,695
46
79
36.847826
0.681573
0.215339
0
0
0
0
0.125581
0.048062
0
0
0
0
0.344828
1
0.034483
false
0
0
0
0.068966
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e02960393a5a94bda69769c1a73c609b148e700d
13,612
py
Python
src/qtt/qiskit/passes.py
codecrap/qtt
39a8bf21f7bcab94940a66f4d553a14bf34f82b0
[ "MIT" ]
null
null
null
src/qtt/qiskit/passes.py
codecrap/qtt
39a8bf21f7bcab94940a66f4d553a14bf34f82b0
[ "MIT" ]
null
null
null
src/qtt/qiskit/passes.py
codecrap/qtt
39a8bf21f7bcab94940a66f4d553a14bf34f82b0
[ "MIT" ]
null
null
null
import logging from typing import Dict, List, Optional import numpy as np import qiskit from qiskit.circuit import Barrier, Delay, Reset from qiskit.circuit.library import (CRXGate, CRYGate, CRZGate, CZGate, PhaseGate, RXGate, RYGate, RZGate, U1Gate, ...
36.591398
115
0.563914
1,622
13,612
4.580148
0.176326
0.028268
0.033921
0.036748
0.399515
0.351595
0.312559
0.28833
0.265042
0.249832
0
0.011152
0.341243
13,612
371
116
36.690027
0.81733
0.149868
0
0.4125
0
0.004167
0.035193
0.001881
0
0
0
0
0
1
0.066667
false
0.05
0.045833
0
0.195833
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e029ad3e92c68df36a0c0c69723e696b156c5364
5,616
py
Python
IAFNNESTA.py
JonathanAlis/IAFNNESTA
6845bed7e41a162a60e65d709f37cf975c8c8a4e
[ "MIT" ]
3
2021-05-13T05:51:42.000Z
2022-02-06T13:36:52.000Z
IAFNNESTA.py
JonathanAlis/IAFNNESTA
6845bed7e41a162a60e65d709f37cf975c8c8a4e
[ "MIT" ]
null
null
null
IAFNNESTA.py
JonathanAlis/IAFNNESTA
6845bed7e41a162a60e65d709f37cf975c8c8a4e
[ "MIT" ]
1
2022-02-06T13:36:39.000Z
2022-02-06T13:36:39.000Z
def help(): return ''' Isotropic-Anisotropic Filtering Norm Nesterov Algorithm Solves the filtering norm minimization + quadratic term problem Nesterov algorithm, with continuation: argmin_x || iaFN(x) ||_1/2 subjected to ||b - Ax||_2^2 < delta If no filter is provided, solves the L1. Continuation is perf...
35.770701
215
0.51834
710
5,616
4.060563
0.322535
0.016996
0.009365
0.015609
0.04093
0.027749
0.015956
0.015956
0.015956
0
0
0.03298
0.379095
5,616
156
216
36
0.793806
0.016026
0
0.10084
0
0.033613
0.518029
0.01214
0
0
0
0
0
1
0.02521
false
0
0.033613
0.016807
0.092437
0.033613
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e029f3704209eae0d9983e10eec83eadf0c6a288
6,952
py
Python
hypatia/util/__init__.py
pfw/hypatia
407cd62e4817c85188aa6abdf204c5aaff5ab570
[ "ZPL-2.1" ]
null
null
null
hypatia/util/__init__.py
pfw/hypatia
407cd62e4817c85188aa6abdf204c5aaff5ab570
[ "ZPL-2.1" ]
null
null
null
hypatia/util/__init__.py
pfw/hypatia
407cd62e4817c85188aa6abdf204c5aaff5ab570
[ "ZPL-2.1" ]
null
null
null
import itertools import BTrees from persistent import Persistent from ZODB.broken import Broken from zope.interface import implementer _marker = object() from .. import exc from ..interfaces import ( IResultSet, STABLE, ) @implementer(IResultSet) class ResultSet(object): """Implements :class:`hypatia.i...
31.174888
85
0.60889
829
6,952
4.926417
0.254524
0.032566
0.014691
0.01763
0.199804
0.158668
0.158668
0.148384
0.108717
0.108717
0
0.002061
0.302215
6,952
222
86
31.315315
0.839827
0.205121
0
0.131944
0
0
0.028666
0
0
0
0
0
0
1
0.180556
false
0.006944
0.048611
0.048611
0.451389
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e02a89e62a53d61fc9086acef78dc03df26f1de7
2,140
py
Python
backend/listings/migrations/0001_initial.py
relaxxpls/Music-Control
76f5d10904f820607b3eb756850d5c5d7d89d875
[ "MIT" ]
null
null
null
backend/listings/migrations/0001_initial.py
relaxxpls/Music-Control
76f5d10904f820607b3eb756850d5c5d7d89d875
[ "MIT" ]
null
null
null
backend/listings/migrations/0001_initial.py
relaxxpls/Music-Control
76f5d10904f820607b3eb756850d5c5d7d89d875
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-05-30 04:28 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('realtors', '0001_initial'), ] operations = [ migrations.Cr...
48.636364
158
0.583645
225
2,140
5.431111
0.444444
0.0982
0.07365
0.0982
0.135025
0.090835
0.090835
0.06874
0.06874
0.06874
0
0.027295
0.246729
2,140
43
159
49.767442
0.730769
0.021028
0
0
1
0
0.154802
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.194444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e02ae313e5c6ccbda99f1c423609cc20c6a48485
483
py
Python
examples/example_without_CommandSet/my_listeners.py
LeConstellationniste/DiscordFramework
24d4b9b7cb0a21d3cec9d5362ab0828c5e15a3af
[ "CC0-1.0" ]
1
2021-01-27T14:55:03.000Z
2021-01-27T14:55:03.000Z
examples/example_without_CommandSet/my_listeners.py
LeConstellationniste/DiscordFramework
24d4b9b7cb0a21d3cec9d5362ab0828c5e15a3af
[ "CC0-1.0" ]
null
null
null
examples/example_without_CommandSet/my_listeners.py
LeConstellationniste/DiscordFramework
24d4b9b7cb0a21d3cec9d5362ab0828c5e15a3af
[ "CC0-1.0" ]
null
null
null
import asyncio import discord # Just with a function to add to the bot. async def on_message(message): if not message.author.bot: await message.channel.send(f"{message.author.mention} a envoyé un message!") # A Listener already created with the function from discordEasy.objects import Listener async def on_messa...
28.411765
78
0.784679
75
483
4.986667
0.413333
0.096257
0.053476
0.090909
0.561497
0.561497
0.561497
0.561497
0.561497
0.561497
0
0
0.130435
483
17
79
28.411765
0.890476
0.173913
0
0.6
0
0
0.2267
0.120907
0
0
0
0
0
1
0
false
0
0.3
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e02beca3eabc9ebe9a2e1d16196b54fbf1a8bc1b
4,024
py
Python
pianonet/serving/app.py
robgon-art/pianonet
8d8a827bc8d310b8ce3f66259bbdf72648e9ca32
[ "MIT" ]
14
2020-09-01T11:16:28.000Z
2021-05-02T18:04:21.000Z
pianonet/serving/app.py
robgon-art/pianonet
8d8a827bc8d310b8ce3f66259bbdf72648e9ca32
[ "MIT" ]
5
2020-11-13T18:46:05.000Z
2022-02-10T01:16:13.000Z
pianonet/serving/app.py
robgon-art/pianonet
8d8a827bc8d310b8ce3f66259bbdf72648e9ca32
[ "MIT" ]
3
2020-09-02T15:05:00.000Z
2021-05-02T18:04:24.000Z
import os import random from flask import Flask, request, send_from_directory from werkzeug.utils import secure_filename from pianonet.core.pianoroll import Pianoroll from pianonet.model_inspection.performance_from_pianoroll import get_performance_from_pianoroll app = Flask(__name__) base_path = "/app/" # base_pat...
31.685039
115
0.706511
551
4,024
4.794918
0.266788
0.13626
0.095382
0.069644
0.273656
0.133989
0.067373
0.047691
0
0
0
0.018037
0.187127
4,024
126
116
31.936508
0.789667
0.146123
0
0.043478
0
0
0.155403
0.011313
0
0
0
0
0
1
0.072464
false
0
0.086957
0.014493
0.289855
0.014493
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e02cef0666c1161f8f7f1e91555b80b350dae71e
4,965
py
Python
app.py
rafalbigaj/epidemic-model-visualization
35829180b5a53697b336e8615d854a21b3395f59
[ "Apache-2.0" ]
null
null
null
app.py
rafalbigaj/epidemic-model-visualization
35829180b5a53697b336e8615d854a21b3395f59
[ "Apache-2.0" ]
null
null
null
app.py
rafalbigaj/epidemic-model-visualization
35829180b5a53697b336e8615d854a21b3395f59
[ "Apache-2.0" ]
null
null
null
import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html import plotly.graph_objects as go from plotly.subplots import make_subplots import logging import json import os import pandas as pd from datetime import datetime from datetime import timedelta fro...
34.006849
132
0.67291
663
4,965
4.828054
0.321267
0.06373
0.011246
0.016245
0.207748
0.130272
0.099344
0.099344
0.099344
0.099344
0
0.02381
0.179456
4,965
145
133
34.241379
0.761905
0.110574
0
0.080808
0
0
0.186364
0.021364
0
0
0
0
0
1
0.030303
false
0
0.141414
0
0.20202
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e02d1d4df9c56883a92d8546af5497c549276afd
1,106
py
Python
src/sweetrpg_library_api/application/blueprints/systems/manager.py
paulyhedral/sweetrpg-library-api
0105e963ef4321398aa66d7cb3aa9c2df1c4f375
[ "MIT" ]
null
null
null
src/sweetrpg_library_api/application/blueprints/systems/manager.py
paulyhedral/sweetrpg-library-api
0105e963ef4321398aa66d7cb3aa9c2df1c4f375
[ "MIT" ]
33
2021-09-18T23:52:05.000Z
2022-03-30T12:25:49.000Z
src/sweetrpg_library_api/application/blueprints/systems/manager.py
sweetrpg/library-api
0105e963ef4321398aa66d7cb3aa9c2df1c4f375
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = "Paul Schifferer <dm@sweetrpg.com>" """ """ from flask_rest_jsonapi import ResourceList, ResourceDetail, ResourceRelationship from sweetrpg_library_objects.api.system.schema import SystemAPISchema from sweetrpg_api_core.data import APIData from sweetrpg_library_objects.model.syste...
28.358974
106
0.683544
116
1,106
6.293103
0.327586
0.086301
0.10411
0.123288
0.453425
0.363014
0.363014
0.363014
0.363014
0.363014
0
0.001131
0.200723
1,106
38
107
29.105263
0.824661
0.232369
0
0.105263
0
0
0.116727
0
0
0
0
0
0
1
0
false
0
0.315789
0
0.631579
0.052632
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
e02e416aacee98cfdb91a5328f2267836f5a1229
6,862
py
Python
tests/test_ordering.py
deepio-oc/pabot
ebf1894c6d35b2ddd5c4bca01bceb25189358106
[ "Apache-2.0" ]
379
2015-02-02T17:47:45.000Z
2022-03-20T16:51:05.000Z
tests/test_ordering.py
deepio-oc/pabot
ebf1894c6d35b2ddd5c4bca01bceb25189358106
[ "Apache-2.0" ]
406
2015-02-12T07:41:53.000Z
2022-03-28T23:35:32.000Z
tests/test_ordering.py
deepio-oc/pabot
ebf1894c6d35b2ddd5c4bca01bceb25189358106
[ "Apache-2.0" ]
159
2015-01-16T13:42:20.000Z
2022-03-30T19:48:15.000Z
from robot import __version__ as ROBOT_VERSION import sys import tempfile import textwrap import unittest import shutil import subprocess class PabotOrderingGroupTest(unittest.TestCase): def setUp(self): self.tmpdir = tempfile.mkdtemp() def tearDown(self): shutil.rmtree(self.tmpdir) def ...
35.189744
273
0.557418
812
6,862
4.656404
0.192118
0.055012
0.095213
0.120603
0.747157
0.721238
0.705898
0.687384
0.685533
0.562021
0
0.026738
0.345963
6,862
194
274
35.371134
0.815731
0
0
0.404255
0
0
0.108551
0
0
0
0
0
0.276596
1
0.074468
false
0.212766
0.074468
0
0.170213
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
1
0
0
0
0
0
3
e02e814aa08f31a0fd4f302fa151aca0b7af7756
984
py
Python
setup.py
Commonists/pageview-api
39e8b3c3c82f64a500e3dd4f306451c81c7e31b7
[ "MIT" ]
21
2015-12-02T12:06:38.000Z
2022-02-11T16:16:06.000Z
setup.py
Commonists/pageview-api
39e8b3c3c82f64a500e3dd4f306451c81c7e31b7
[ "MIT" ]
3
2016-04-19T19:56:25.000Z
2020-08-27T09:52:42.000Z
setup.py
Commonists/pageview-api
39e8b3c3c82f64a500e3dd4f306451c81c7e31b7
[ "MIT" ]
6
2017-10-27T15:39:51.000Z
2020-12-17T02:11:52.000Z
#!/usr/bin/python # -*- coding: latin-1 -*- """Setup script.""" try: from setuptools import setup except ImportError: from distutils.core import setup try: import pageviewapi version = pageviewapi.__version__ except ImportError: version = 'Undefined' classifiers = [ 'Development Status :: 4...
22.883721
52
0.670732
99
984
6.59596
0.676768
0.082695
0
0
0
0
0
0
0
0
0
0.002509
0.190041
984
42
53
23.428571
0.816813
0.054878
0
0.121212
0
0
0.390033
0
0
0
0
0
0
1
0
false
0
0.151515
0
0.151515
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e030b341c624d43cef697abc742e82664391c682
416
py
Python
task1b.py
juby-gif/assignment1
3d39478fdc371e80a546caac545561145afbb080
[ "BSD-3-Clause" ]
null
null
null
task1b.py
juby-gif/assignment1
3d39478fdc371e80a546caac545561145afbb080
[ "BSD-3-Clause" ]
null
null
null
task1b.py
juby-gif/assignment1
3d39478fdc371e80a546caac545561145afbb080
[ "BSD-3-Clause" ]
null
null
null
#a2_t1b.py #This program is to convert Celsius to Kelvin def c_to_k(c): k = c + 273.15 #Formula to convert Celsius to Kelvin return k def f_to_c(f): fa = (f-32) * 5/9 #Formula to convert Fareheit to Celsius return fa c = 25.0 f = 100.0 k = c_to_k(c) fa = f_to_c(f) print("Celsius of " + str(c) + " is...
24.470588
67
0.605769
82
416
2.963415
0.378049
0.032922
0.131687
0.148148
0.197531
0
0
0
0
0
0
0.057325
0.245192
416
16
68
26
0.716561
0.305288
0
0
0
0
0.192982
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e0315471bd1a35e31c6a9cdd93a2a2a27365d479
2,702
py
Python
TWLight/emails/views.py
jajodiaraghav/TWLight
22359ab0b95ee3653e8ffa0eb698acd7bb8ebf70
[ "MIT" ]
1
2019-10-24T04:49:52.000Z
2019-10-24T04:49:52.000Z
TWLight/emails/views.py
jajodiaraghav/TWLight
22359ab0b95ee3653e8ffa0eb698acd7bb8ebf70
[ "MIT" ]
1
2019-03-29T15:29:45.000Z
2019-03-29T15:57:20.000Z
TWLight/emails/views.py
jajodiaraghav/TWLight
22359ab0b95ee3653e8ffa0eb698acd7bb8ebf70
[ "MIT" ]
1
2019-09-26T14:40:27.000Z
2019-09-26T14:40:27.000Z
from django.contrib import messages from django.contrib.auth.decorators import login_required from django.core.exceptions import PermissionDenied from django.core.urlresolvers import reverse, reverse_lazy from django.core.mail import BadHeaderError, send_mail from django.http import HttpResponse, HttpResponseRedirect f...
43.580645
126
0.657661
315
2,702
5.530159
0.422222
0.063146
0.051665
0.036165
0.04248
0.04248
0
0
0
0
0
0
0.263879
2,702
62
127
43.580645
0.875817
0.143597
0
0.115385
0
0
0.069727
0
0
0
0
0.016129
0.038462
1
0.038462
false
0
0.211538
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e0322ebc94878f3dc7b69955feb764a97d3db29b
1,997
py
Python
frontend/config.py
lcbm/cs-data-ingestion
314525285bfefe726d86c232937b05d273e44e7f
[ "0BSD" ]
null
null
null
frontend/config.py
lcbm/cs-data-ingestion
314525285bfefe726d86c232937b05d273e44e7f
[ "0BSD" ]
null
null
null
frontend/config.py
lcbm/cs-data-ingestion
314525285bfefe726d86c232937b05d273e44e7f
[ "0BSD" ]
null
null
null
"""Flask App configuration file.""" import logging import os import dotenv import frontend.constants as constants dotenv.load_dotenv(os.path.join(constants.BASEDIR, "frontend.env")) class Base: """Configuration class used as base for all environments.""" DEBUG = False TESTING = False LOGGING_FO...
21.473118
67
0.667001
216
1,997
6.097222
0.324074
0.090357
0.066819
0.056948
0.220957
0.138952
0.138952
0.098709
0.098709
0
0
0
0.207311
1,997
92
68
21.706522
0.831965
0.322484
0
0.162162
0
0
0.233683
0.082998
0
0
0
0
0
1
0.027027
false
0
0.108108
0
0.621622
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e032bc66a6f5b0a211c59ba883502067921d3427
2,961
py
Python
tests/test_dsl.py
goodreferences/ElasticQuery
579e387c5a7c1cbbeab999050c0d2faa80ded821
[ "MIT" ]
null
null
null
tests/test_dsl.py
goodreferences/ElasticQuery
579e387c5a7c1cbbeab999050c0d2faa80ded821
[ "MIT" ]
null
null
null
tests/test_dsl.py
goodreferences/ElasticQuery
579e387c5a7c1cbbeab999050c0d2faa80ded821
[ "MIT" ]
null
null
null
# ElasticQuery # File: tests/test_dsl.py # Desc: tests for ElasticQuery DSL objects (Filter, Query, Aggregate) from os import path from unittest import TestCase from jsontest import JsonTest from elasticquery import Query, Aggregate, Suggester from elasticquery.exceptions import ( NoQueryError, NoAggregateError,...
26.675676
72
0.646066
339
2,961
5.448378
0.277286
0.043313
0.086627
0.060639
0.371955
0.323768
0.323768
0.323768
0.185707
0.185707
0
0
0.251266
2,961
110
73
26.918182
0.833108
0.078352
0
0.136986
0
0
0.030515
0
0
0
0
0
0.136986
1
0.09589
false
0
0.082192
0
0.383562
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e033806ab7ea22ebae1fd718d44b4fe732b6c01d
360
py
Python
models/SelectionGAN/person_transfer/tool/rm_insnorm_running_vars.py
xianjian-xie/pose-generation
ad0495e80c6fe1e7690fa8691f1eb11b4e9bca32
[ "MIT" ]
445
2019-04-14T17:48:11.000Z
2022-03-20T11:53:30.000Z
models/SelectionGAN/person_transfer/tool/rm_insnorm_running_vars.py
xianjian-xie/pose-generation
ad0495e80c6fe1e7690fa8691f1eb11b4e9bca32
[ "MIT" ]
17
2019-06-03T11:34:22.000Z
2022-02-28T01:26:13.000Z
models/SelectionGAN/person_transfer/tool/rm_insnorm_running_vars.py
xianjian-xie/pose-generation
ad0495e80c6fe1e7690fa8691f1eb11b4e9bca32
[ "MIT" ]
71
2019-04-16T01:55:39.000Z
2022-03-22T05:09:59.000Z
import torch ckp_path = './checkpoints/fashion_PATN/latest_net_netG.pth' save_path = './checkpoints/fashion_PATN_v1.0/latest_net_netG.pth' states_dict = torch.load(ckp_path) states_dict_new = states_dict.copy() for key in states_dict.keys(): if "running_var" in key or "running_mean" in key: del states_dict_new[key]...
32.727273
65
0.794444
62
360
4.258065
0.467742
0.227273
0.147727
0.19697
0
0
0
0
0
0
0
0.006135
0.094444
360
11
66
32.727273
0.803681
0
0
0
0
0
0.33241
0.268698
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
e03555c89ef682c9881524e84b3f99fb40c60411
3,916
py
Python
script/dummy/arm_control.py
amazon-picking-challenge/team_pfn
2f76524b067d816d8407f6c4fae4e6d33939c024
[ "Apache-2.0" ]
7
2016-09-04T02:07:04.000Z
2017-05-25T02:31:07.000Z
script/dummy/arm_control.py
amazon-picking-challenge/team_pfn
2f76524b067d816d8407f6c4fae4e6d33939c024
[ "Apache-2.0" ]
null
null
null
script/dummy/arm_control.py
amazon-picking-challenge/team_pfn
2f76524b067d816d8407f6c4fae4e6d33939c024
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2016 Preferred Networks, 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 applicab...
39.959184
78
0.589122
457
3,916
4.842451
0.306346
0.037958
0.02892
0.059648
0.620877
0.539087
0.477632
0.442386
0.359693
0.306371
0
0.023159
0.327375
3,916
97
79
40.371134
0.817008
0.1476
0
0.422535
0
0
0.097774
0
0
0
0
0
0
0
null
null
0
0.070423
null
null
0.112676
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e035deed8737a8c4ccc24d990b915152d4728210
3,115
py
Python
cogs/events.py
rompdodger/RompDodger
9c8b481d9f69e05c15f01271f6c18e09ab2723e6
[ "MIT" ]
null
null
null
cogs/events.py
rompdodger/RompDodger
9c8b481d9f69e05c15f01271f6c18e09ab2723e6
[ "MIT" ]
null
null
null
cogs/events.py
rompdodger/RompDodger
9c8b481d9f69e05c15f01271f6c18e09ab2723e6
[ "MIT" ]
null
null
null
import json import discord from utils.time import format_time from utils import utilities from discord.ext import commands from discord import Embed class Events(commands.Cog): """Event Handler for RompDodger""" def __init__(self, bot): self.bot = bot @commands.Cog.listener() async def on_command_error(self,...
39.43038
163
0.733547
452
3,115
4.964602
0.285398
0.040553
0.042335
0.053476
0.552139
0.497772
0.443405
0.382799
0.354724
0.280749
0
0.004104
0.139647
3,115
79
164
39.43038
0.833209
0.019262
0
0.432836
0
0.029851
0.258033
0.051475
0
0
0
0.012658
0
1
0.029851
false
0
0.089552
0
0.19403
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e036c8bce2480207e7560bdb8a009054bcbca43d
1,333
py
Python
Task/Parallel-calculations/Python/parallel-calculations-2.py
LaudateCorpus1/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
1
2018-11-09T22:08:38.000Z
2018-11-09T22:08:38.000Z
Task/Parallel-calculations/Python/parallel-calculations-2.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
null
null
null
Task/Parallel-calculations/Python/parallel-calculations-2.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
import multiprocessing # ========== #Python3 - concurrent from math import floor, sqrt numbers = [ 112272537195293, 112582718962171, 112272537095293, 115280098190773, 115797840077099, 1099726829285419] # numbers = [33, 44, 55, 275] def lowest_factor(n, _start=3): if n % 2 == 0: re...
28.361702
84
0.650413
177
1,333
4.689266
0.39548
0.072289
0.031325
0.048193
0.115663
0.115663
0.115663
0.115663
0.115663
0
0
0.108738
0.227307
1,333
46
85
28.978261
0.697087
0.068267
0
0
0
0
0.105178
0
0
0
0
0
0
1
0.083333
false
0
0.055556
0
0.277778
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e036f44b7fa0f2862267ed2ae2bb354dffc8bc0b
260
py
Python
setup.py
clin366/airpollutionnowcast
f9152583eebc4ad747c8d0510460334a5fb23ff9
[ "MIT" ]
null
null
null
setup.py
clin366/airpollutionnowcast
f9152583eebc4ad747c8d0510460334a5fb23ff9
[ "MIT" ]
9
2020-03-24T18:12:45.000Z
2022-02-10T00:36:57.000Z
setup.py
clin366/airpollutionnowcast
f9152583eebc4ad747c8d0510460334a5fb23ff9
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Project: Nowcasting the air pollution using online search log', author='Emory University(IR Lab)', license='MIT', )
23.636364
80
0.692308
33
260
5.393939
0.848485
0.134831
0
0
0
0
0
0
0
0
0
0.014151
0.184615
260
10
81
26
0.825472
0
0
0
0
0
0.369231
0
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
e037cc498ab758b47d57f427145d459d775fb063
339
py
Python
problems/p0048/s48.py
ahrarmonsur/euler
4174790637806521a4ea2973abeb76c96c64a782
[ "MIT" ]
1
2017-12-19T21:18:48.000Z
2017-12-19T21:18:48.000Z
problems/p0048/s48.py
ahrarmonsur/euler
4174790637806521a4ea2973abeb76c96c64a782
[ "MIT" ]
null
null
null
problems/p0048/s48.py
ahrarmonsur/euler
4174790637806521a4ea2973abeb76c96c64a782
[ "MIT" ]
null
null
null
""" Project Euler Problem 48 Self powers Solved by Ahrar Monsur The series, 1^1 + 2^2 + 3^3 + ... + 10^10 = 10405071317. Find the last ten digits of the series, 1^1 + 2^2 + 3^3 + ... + 1000^1000. """ def main(): max_digits = 1000 sum = 0 for i in range(1, max_digits+1): sum += i**i print str(...
17.842105
74
0.575221
60
339
3.216667
0.566667
0.093264
0.103627
0.11399
0.15544
0.15544
0.15544
0.15544
0
0
0
0.184
0.262537
339
19
75
17.842105
0.588
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e037f80102198e6c3f910c89e80dfa13f614bfb4
1,109
py
Python
BigData/sparkTask/test.py
Rainstyd/rainsty
9a0d5f46c20faf909c4194f315fb9960652cffc6
[ "Apache-2.0" ]
1
2020-03-25T01:13:35.000Z
2020-03-25T01:13:35.000Z
BigData/sparkTask/test.py
Rainstyed/rainsty
f74e0ccaf16d1871c9d1870bd8a7c8a63243fcf5
[ "Apache-2.0" ]
1
2022-01-06T23:49:21.000Z
2022-01-06T23:49:21.000Z
BigData/sparkTask/test.py
rainstyd/rainsty
9a0d5f46c20faf909c4194f315fb9960652cffc6
[ "Apache-2.0" ]
1
2020-03-20T08:48:36.000Z
2020-03-20T08:48:36.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """ @author: rainsty @file: test.py @time: 2020-01-04 18:36:57 @description: """ import os from pyspark.sql import SparkSession os.environ['JAVA_HOME'] = '/root/jdk' os.environ['SPARK_HOME'] = '/root/spark' os.environ['PYTHON_HOME'] = "/root/python" os.environ['PYSPARK_P...
24.108696
60
0.640216
142
1,109
4.929577
0.507042
0.064286
0.081429
0.071429
0.094286
0
0
0
0
0
0
0.030011
0.158702
1,109
45
61
24.644444
0.720257
0.103697
0
0
0
0
0.314721
0.04264
0
0
0
0
0
1
0.04
false
0
0.08
0
0.16
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e03860989956f152e97aacd3a94938522a675b8e
1,042
py
Python
esercizi/areaSottesaCompareNumPy.py
gdv/python-alfabetizzazione
d87561222de8a230db11d8529c49cf1702aec326
[ "MIT" ]
null
null
null
esercizi/areaSottesaCompareNumPy.py
gdv/python-alfabetizzazione
d87561222de8a230db11d8529c49cf1702aec326
[ "MIT" ]
null
null
null
esercizi/areaSottesaCompareNumPy.py
gdv/python-alfabetizzazione
d87561222de8a230db11d8529c49cf1702aec326
[ "MIT" ]
1
2019-03-26T11:14:33.000Z
2019-03-26T11:14:33.000Z
import numpy as np import timeit def effe(x): y = -x * (x - 1.0) return y numIntervalli = input('inserire il numero di intervalli in [0.0, 1.0] ') deltaIntervallo = 1.0 / float(numIntervalli) print "larghezza intervallo", deltaIntervallo start = timeit.default_timer() xIntervalli = [] yIntervalli = [] i =...
24.809524
72
0.726488
127
1,042
5.937008
0.425197
0.013263
0.071618
0.01061
0
0
0
0
0
0
0
0.020713
0.166027
1,042
41
73
25.414634
0.846951
0.071977
0
0
0
0
0.14553
0
0
0
0
0
0
0
null
null
0
0.071429
null
null
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e039092d052960d2f6c3a01770cd6d300e7b630a
8,810
py
Python
json_codegen/generators/python3_marshmallow/object_generator.py
expobrain/json-schema-codegen
e22b386333c6230e5d6f5984fd947fdd7b947e82
[ "MIT" ]
21
2018-06-15T16:08:57.000Z
2022-02-11T16:16:11.000Z
json_codegen/generators/python3_marshmallow/object_generator.py
expobrain/json-schema-codegen
e22b386333c6230e5d6f5984fd947fdd7b947e82
[ "MIT" ]
14
2018-08-09T18:02:19.000Z
2022-01-24T18:04:17.000Z
json_codegen/generators/python3_marshmallow/object_generator.py
expobrain/json-schema-codegen
e22b386333c6230e5d6f5984fd947fdd7b947e82
[ "MIT" ]
4
2018-11-30T18:19:10.000Z
2021-11-18T04:04:36.000Z
import ast from json_codegen.generators.python3_marshmallow.utils import Annotations, class_name class ObjectGenerator(object): @staticmethod def _get_property_name(node_assign): name = node_assign.targets[0] return name.id @staticmethod def _nesting_class(node_assign): for n...
34.414063
108
0.484222
827
8,810
4.975816
0.169287
0.055893
0.032807
0.023815
0.409964
0.37497
0.323451
0.293074
0.263183
0.196598
0
0.001743
0.413848
8,810
255
109
34.54902
0.79512
0.075596
0
0.402913
0
0
0.029182
0
0
0
0
0
0
1
0.058252
false
0.004854
0.009709
0.004854
0.145631
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e039c81acd8d1fcb88f92f04b6556a716666da98
12,736
py
Python
testing/regrid/testEsmfGridToMeshRegridCsrv.py
xylar/cdat
8a5080cb18febfde365efc96147e25f51494a2bf
[ "BSD-3-Clause" ]
62
2018-03-30T15:46:56.000Z
2021-12-08T23:30:24.000Z
testing/regrid/testEsmfGridToMeshRegridCsrv.py
xylar/cdat
8a5080cb18febfde365efc96147e25f51494a2bf
[ "BSD-3-Clause" ]
114
2018-03-21T01:12:43.000Z
2021-07-05T12:29:54.000Z
testing/regrid/testEsmfGridToMeshRegridCsrv.py
CDAT/uvcdat
5133560c0c049b5c93ee321ba0af494253b44f91
[ "BSD-3-Clause" ]
14
2018-06-06T02:42:47.000Z
2021-11-26T03:27:00.000Z
#!/usr/bin/env python # # $Id: ESMP_GridToMeshRegridCsrv.py,v 1.5 2012/04/23 23:00:14 rokuingh Exp $ #=============================================================================== # ESMP/examples/ESMP_GridToMeshRegrid.py #=============================================================================== """...
33.515789
86
0.613693
1,760
12,736
4.323864
0.163068
0.049409
0.026018
0.022076
0.377924
0.332983
0.299869
0.275033
0.236137
0.189093
0
0.051196
0.254633
12,736
379
87
33.604222
0.750448
0.160019
0
0.157895
0
0
0.024728
0
0
0
0
0
0.005848
0
null
null
0.011696
0.023392
null
null
0.02924
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e03a335c46211edd43cb24ddb42d950cbfd7fa71
1,184
py
Python
test/mock_module.py
ariffyasri/lale
326012c3c3dd884fae0093fe0c45596e4f9c0d72
[ "Apache-2.0" ]
1
2020-04-28T11:27:48.000Z
2020-04-28T11:27:48.000Z
test/mock_module.py
ariffyasri/lale
326012c3c3dd884fae0093fe0c45596e4f9c0d72
[ "Apache-2.0" ]
null
null
null
test/mock_module.py
ariffyasri/lale
326012c3c3dd884fae0093fe0c45596e4f9c0d72
[ "Apache-2.0" ]
1
2020-07-30T10:06:23.000Z
2020-07-30T10:06:23.000Z
# Copyright 2019 IBM Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.823529
74
0.72973
165
1,184
5.145455
0.618182
0.070671
0.030624
0.037691
0
0
0
0
0
0
0
0.009414
0.192568
1,184
33
75
35.878788
0.878661
0.572635
0
0
0
0
0.04898
0
0
0
0
0
0
1
0.333333
false
0
0.083333
0.166667
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
e03bee15bfc41f500be41ba4168c4029ea4dba20
3,770
py
Python
scripts/beautify.py
lukaschoebel/POTUSgen
7b88ba63f0ddab199937df909c5af3271a833cf3
[ "MIT" ]
null
null
null
scripts/beautify.py
lukaschoebel/POTUSgen
7b88ba63f0ddab199937df909c5af3271a833cf3
[ "MIT" ]
5
2020-03-25T08:02:45.000Z
2020-04-08T20:07:42.000Z
scripts/beautify.py
lukaschoebel/POTUSgen
7b88ba63f0ddab199937df909c5af3271a833cf3
[ "MIT" ]
null
null
null
import json import re import sys def beautify(name): ''' Loading, filtering and saving the JSON tweet file to a newly generated .txt file :type: name: String :rtype: output: .txt ''' filename = name + '.json' output_name = name + "_filtered.txt" with open(filename, "r", encoding="utf-8")...
33.963964
129
0.571088
512
3,770
4.158203
0.404297
0.022546
0.045092
0.042743
0.130108
0.107562
0.103335
0.086426
0.065759
0.065759
0
0.072727
0.270557
3,770
111
130
33.963964
0.700364
0.396286
0
0.070175
1
0
0.211026
0.105739
0
0
0
0
0
1
0.035088
false
0
0.052632
0
0.140351
0.017544
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e03c2a58883f30a7a78a6973c7fd5ce571d96bba
1,746
py
Python
result2gaofentype/pkl2txt_ggm.py
G-Naughty/Fine-grained-OBB-Detection
8c82c4c178f0b6bba077ff9d906a81bf8e04789c
[ "Apache-2.0" ]
2
2022-02-06T07:45:03.000Z
2022-03-11T14:18:32.000Z
result2gaofentype/pkl2txt_ggm.py
G-Naughty/Fine-grained-OBB-Detection
8c82c4c178f0b6bba077ff9d906a81bf8e04789c
[ "Apache-2.0" ]
null
null
null
result2gaofentype/pkl2txt_ggm.py
G-Naughty/Fine-grained-OBB-Detection
8c82c4c178f0b6bba077ff9d906a81bf8e04789c
[ "Apache-2.0" ]
null
null
null
import BboxToolkit as bt import pickle import copy import numpy as np path1="/home/hnu1/GGM/OBBDetection/work_dir/oriented_obb_contrast_catbalance/dets.pkl" path2="/home/hnu1/GGM/OBBDetection/data/FaIR1M/test/annfiles/ori_annfile.pkl"# with open(path2,'rb') as f: #/home/disk/FAIR1M_1000_split/val/annfiles/ori_...
40.604651
95
0.512027
248
1,746
3.552419
0.298387
0.029512
0.044268
0.14983
0.38252
0.287174
0.133939
0.133939
0.133939
0.133939
0
0.037873
0.289233
1,746
43
96
40.604651
0.672039
0.032646
0
0.04878
0
0
0.148697
0.135071
0
0
0
0
0
1
0
false
0
0.097561
0
0.097561
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e03e3fafddd8bfe7f29e435a8b1b27b522698dbd
938
py
Python
initializer_3d.py
HarperCallahan/taichi_ferrofluid
6113f6c7d9d9d612b6dadc500cf91b576c2d05ea
[ "MIT" ]
null
null
null
initializer_3d.py
HarperCallahan/taichi_ferrofluid
6113f6c7d9d9d612b6dadc500cf91b576c2d05ea
[ "MIT" ]
null
null
null
initializer_3d.py
HarperCallahan/taichi_ferrofluid
6113f6c7d9d9d612b6dadc500cf91b576c2d05ea
[ "MIT" ]
null
null
null
import taichi as ti import utils from apic_extension import * @ti.data_oriented class Initializer3D: # tmp initializer def __init__(self, res, x0, y0, z0, x1, y1, z1): self.res = res self.x0 = int(res * x0) self.y0 = int(res * y0) self.z0 = int(res * z0) self.x1 = int(res * ...
31.266667
136
0.557569
146
938
3.472603
0.308219
0.071006
0.011834
0
0
0
0
0
0
0
0
0.048062
0.312367
938
29
137
32.344828
0.737985
0.015991
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.291667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e03ebf0129e76590fab9b3f72a3301cc3f5c22ca
1,265
py
Python
copy_block_example.py
MilesCranmer/bifrost_paper
654408cd7e34e7845cee58100fe459e1422e4859
[ "MIT" ]
null
null
null
copy_block_example.py
MilesCranmer/bifrost_paper
654408cd7e34e7845cee58100fe459e1422e4859
[ "MIT" ]
null
null
null
copy_block_example.py
MilesCranmer/bifrost_paper
654408cd7e34e7845cee58100fe459e1422e4859
[ "MIT" ]
null
null
null
from copy import deepcopy import bifrost as bf from bifrost.pipeline import TransformBlock from bifrost.ndarray import copy_array class CopyBlock(TransformBlock):# $\tikzmark{block-start}$ """Copy the input ring to output ring""" def __init__(self, iring, space): ...
30.853659
98
0.674308
166
1,265
4.975904
0.463855
0.067797
0
0
0
0
0
0
0
0
0
0.007678
0.176285
1,265
40
99
31.625
0.785029
0.196838
0
0
0
0
0.066667
0
0
0
0
0
0
1
0.148148
false
0
0.148148
0.074074
0.407407
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e0404632a7378b088279de3e94aac11c26a9e183
1,540
py
Python
monasca_persister/conf/influxdb.py
zhangjianweibj/monasca-persister
0c5d8a7c5553001f2d38227347f482201f92c8e1
[ "Apache-2.0" ]
null
null
null
monasca_persister/conf/influxdb.py
zhangjianweibj/monasca-persister
0c5d8a7c5553001f2d38227347f482201f92c8e1
[ "Apache-2.0" ]
1
2020-03-13T12:30:29.000Z
2020-03-13T12:38:16.000Z
monasca_persister/conf/influxdb.py
zhangjianweibj/monasca-persister
0c5d8a7c5553001f2d38227347f482201f92c8e1
[ "Apache-2.0" ]
null
null
null
# (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP # Copyright 2017 FUJITSU LIMITED # # 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...
32.765957
69
0.653896
190
1,540
5.221053
0.573684
0.060484
0.02621
0.032258
0
0
0
0
0
0
0
0.017544
0.25974
1,540
46
70
33.478261
0.852632
0.398701
0
0
0
0
0.225275
0
0
0
0
0
0
1
0.083333
false
0.083333
0.041667
0.041667
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e040676396d83dae688cf225c1f4290cf1100f35
192
py
Python
test_print_json.py
huangsen365/boto3-docker
42d46ce4433dd037006d6b8d01db3fe444b9d8dd
[ "Apache-2.0" ]
null
null
null
test_print_json.py
huangsen365/boto3-docker
42d46ce4433dd037006d6b8d01db3fe444b9d8dd
[ "Apache-2.0" ]
null
null
null
test_print_json.py
huangsen365/boto3-docker
42d46ce4433dd037006d6b8d01db3fe444b9d8dd
[ "Apache-2.0" ]
null
null
null
import json your_json = '["foo", {"bar":["baz", null, 1.0, 2]}]' parsed = json.loads(your_json) print(type(your_json)) print(type(parsed)) #print(json.dumps(parsed, indent=4, sort_keys=True))
27.428571
52
0.6875
32
192
4
0.625
0.1875
0.203125
0.265625
0
0
0
0
0
0
0
0.022857
0.088542
192
7
53
27.428571
0.708571
0.265625
0
0
0
0
0.269504
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.4
0
0
0
null
0
1
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
3
e041875337916a4d8560bbab0e0b68edca74373b
13,929
py
Python
src/solutions/common/integrations/cirklo/api.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/solutions/common/integrations/cirklo/api.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/solutions/common/integrations/cirklo/api.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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 appl...
42.858462
120
0.710604
1,715
13,929
5.510204
0.172012
0.031429
0.022011
0.010053
0.367725
0.314921
0.280529
0.248571
0.225291
0.188677
0
0.0037
0.204537
13,929
324
121
42.990741
0.849188
0.051619
0
0.301115
0
0
0.047395
0.016531
0
0
0
0
0
1
0.026022
false
0
0.115242
0.003717
0.174721
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e042a55525baf01a1dd738c8dd3863fa44f09d50
1,624
py
Python
aplpy/tests/test_grid.py
nbrunett/aplpy
f5d128faf3568adea753d52c11ba43014d25d90a
[ "MIT" ]
null
null
null
aplpy/tests/test_grid.py
nbrunett/aplpy
f5d128faf3568adea753d52c11ba43014d25d90a
[ "MIT" ]
null
null
null
aplpy/tests/test_grid.py
nbrunett/aplpy
f5d128faf3568adea753d52c11ba43014d25d90a
[ "MIT" ]
1
2018-02-26T03:04:19.000Z
2018-02-26T03:04:19.000Z
import matplotlib matplotlib.use('Agg') import numpy as np from astropy.tests.helper import pytest from .. import FITSFigure def test_grid_addremove(): data = np.zeros((16, 16)) f = FITSFigure(data) f.add_grid() f.remove_grid() f.add_grid() f.close() def test_grid_showhide(): data = np...
20.049383
39
0.618842
255
1,624
3.780392
0.2
0.103734
0.149378
0.074689
0.529046
0.40249
0.40249
0.40249
0.323651
0.323651
0
0.040094
0.216749
1,624
80
40
20.3
0.717767
0
0
0.484375
0
0
0.029557
0
0
0
0
0
0
1
0.109375
false
0
0.0625
0
0.171875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e0435a8bdb5ad3ee4a83d670d6af34fbe9094657
12,910
py
Python
vz.py
ponyatov/vz
f808dd0dca9b6aa7a3e492d2ee0797ab96cd23a1
[ "MIT" ]
null
null
null
vz.py
ponyatov/vz
f808dd0dca9b6aa7a3e492d2ee0797ab96cd23a1
[ "MIT" ]
null
null
null
vz.py
ponyatov/vz
f808dd0dca9b6aa7a3e492d2ee0797ab96cd23a1
[ "MIT" ]
null
null
null
import os, sys class Object: ## @name constructor def __init__(self, V): self.value = V self.nest = [] def box(self, that): if isinstance(that, Object): return that if isinstance(that, str): return S(that) raise TypeError(['box', type(that), that]) ## @name d...
32.849873
96
0.449109
1,494
12,910
3.792503
0.182731
0.059301
0.022944
0.025415
0.174373
0.106601
0.090364
0.077833
0.077833
0.072361
0
0.012408
0.35701
12,910
392
97
32.933673
0.67016
0.005035
0
0.178462
0
0.006154
0.226868
0.0401
0
0
0.000312
0
0.009231
1
0.126154
false
0.012308
0.012308
0.024615
0.209231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e044775152d95d5fb032af9b89fee05b4ac263fe
2,630
py
Python
src/server.py
FlakM/fastai_text_serving
8262c2c1192c5e11df2e06b494ab9cf88c1dcd2a
[ "Apache-2.0" ]
null
null
null
src/server.py
FlakM/fastai_text_serving
8262c2c1192c5e11df2e06b494ab9cf88c1dcd2a
[ "Apache-2.0" ]
null
null
null
src/server.py
FlakM/fastai_text_serving
8262c2c1192c5e11df2e06b494ab9cf88c1dcd2a
[ "Apache-2.0" ]
null
null
null
import asyncio import logging import aiohttp import uvicorn from fastai.vision import * from starlette.applications import Starlette from starlette.middleware.cors import CORSMiddleware from starlette.responses import JSONResponse # put your url here here model_file_url = 'https://www.dropbox.com/s/...?raw=1' model_f...
30.941176
107
0.692776
359
2,630
4.927577
0.417827
0.071227
0.02035
0.015828
0.01922
0
0
0
0
0
0
0.009259
0.178707
2,630
84
108
31.309524
0.809722
0.030798
0
0
0
0
0.117439
0.016496
0
0
0
0
0
0
null
null
0
0.133333
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e0448da70febec0759bc638d5a460760c3964480
402
py
Python
tcpserver.py
justforbalance/CSnet
c1e049f63d245c5d464a2d6e9aa7d3daf15bf2b6
[ "MIT" ]
null
null
null
tcpserver.py
justforbalance/CSnet
c1e049f63d245c5d464a2d6e9aa7d3daf15bf2b6
[ "MIT" ]
null
null
null
tcpserver.py
justforbalance/CSnet
c1e049f63d245c5d464a2d6e9aa7d3daf15bf2b6
[ "MIT" ]
null
null
null
from socket import * serverPort = 12001 serverSocket = socket(AF_INET, SOCK_STREAM) serverSocket.bind(('', serverPort)) serverSocket.listen(1) print("the server is ready to receive") while True: connectionSocket,addr = serverSocket.accept() sentence = connectionSocket.recv(1024).decode() sentence = sentence...
33.5
51
0.753731
44
402
6.840909
0.75
0
0
0
0
0
0
0
0
0
0
0.028571
0.129353
402
12
52
33.5
0.831429
0
0
0
0
0
0.074442
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e044ab975c816db8531273f338dcef5b52d8c7ce
1,061
py
Python
src/geneflow/extend/local_workflow.py
jhphan/geneflow2
a39ab97e6425ee45584cfc15b5740e94a5bf7512
[ "Apache-2.0" ]
7
2019-04-11T03:50:51.000Z
2020-03-27T15:59:04.000Z
src/geneflow/extend/local_workflow.py
jhphan/geneflow2
a39ab97e6425ee45584cfc15b5740e94a5bf7512
[ "Apache-2.0" ]
1
2019-05-06T14:18:42.000Z
2019-05-08T22:06:12.000Z
src/geneflow/extend/local_workflow.py
jhphan/geneflow2
a39ab97e6425ee45584cfc15b5740e94a5bf7512
[ "Apache-2.0" ]
6
2019-04-10T20:25:27.000Z
2021-12-16T15:59:59.000Z
"""This module contains the GeneFlow LocalWorkflow class.""" class LocalWorkflow: """ A class that represents the Local Workflow objects. """ def __init__( self, job, config, parsed_job_work_uri ): """ Instantiate LocalWorkflow class....
18.293103
60
0.524034
100
1,061
5.37
0.42
0.100559
0.072626
0.089385
0.108007
0
0
0
0
0
0
0
0.402451
1,061
57
61
18.614035
0.847003
0.410933
0
0.125
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e0453a8ff093c7c5f6bb2239656a47c98c50cec7
2,849
py
Python
S12/tensornet/engine/ops/lr_scheduler.py
abishek-raju/EVA4B2
189f4062c85d91f43c1381087a9c89ff794e5428
[ "Apache-2.0" ]
4
2020-06-18T13:07:19.000Z
2022-01-07T10:51:10.000Z
S12/tensornet/engine/ops/lr_scheduler.py
abishek-raju/EVA4B2
189f4062c85d91f43c1381087a9c89ff794e5428
[ "Apache-2.0" ]
1
2021-07-31T04:34:46.000Z
2021-08-11T05:55:57.000Z
S12/tensornet/engine/ops/lr_scheduler.py
abishek-raju/EVA4B2
189f4062c85d91f43c1381087a9c89ff794e5428
[ "Apache-2.0" ]
4
2020-08-09T07:10:46.000Z
2021-01-16T14:57:23.000Z
from torch.optim.lr_scheduler import StepLR, ReduceLROnPlateau, OneCycleLR def step_lr(optimizer, step_size, gamma=0.1, last_epoch=-1): """Create LR step scheduler. Args: optimizer (torch.optim): Model optimizer. step_size (int): Frequency for changing learning rate. gamma (float): Fa...
40.7
102
0.679537
394
2,849
4.774112
0.27665
0.070175
0.041467
0.036683
0.239766
0.184476
0.127592
0.078682
0.047847
0.047847
0
0.01532
0.243945
2,849
69
103
41.289855
0.857939
0.667954
0
0
0
0
0
0
0
0
0
0
0
1
0.214286
false
0
0.071429
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e045d172e3aa9769db37dd0c8977af6b2b83dca1
10,889
py
Python
armi/reactor/tests/test_zones.py
youngmit/armi
67688e4e67d2a217dfc7b1ccfa64028c20b57a5b
[ "Apache-2.0" ]
null
null
null
armi/reactor/tests/test_zones.py
youngmit/armi
67688e4e67d2a217dfc7b1ccfa64028c20b57a5b
[ "Apache-2.0" ]
null
null
null
armi/reactor/tests/test_zones.py
youngmit/armi
67688e4e67d2a217dfc7b1ccfa64028c20b57a5b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 TerraPower, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
39.740876
113
0.629718
1,332
10,889
5.119369
0.246246
0.016131
0.026397
0.018478
0.237865
0.189471
0.162047
0.162047
0.104414
0.087696
0
0.017314
0.27863
10,889
273
114
39.886447
0.850796
0.24162
0
0.239796
0
0
0.04813
0.008529
0
0
0
0
0.153061
1
0.05102
false
0
0.071429
0
0.137755
0.010204
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e04601e1749bc51e7e5f74ca383f947dc25e7da9
562
py
Python
islam_fitz/survey/migrations/0005_auto_20210712_2132.py
OmarEhab177/Islam_fitz
6ad0eb21549895a6fe537e8413022b82bc530c57
[ "MIT" ]
null
null
null
islam_fitz/survey/migrations/0005_auto_20210712_2132.py
OmarEhab177/Islam_fitz
6ad0eb21549895a6fe537e8413022b82bc530c57
[ "MIT" ]
2
2022-03-01T12:17:05.000Z
2022-03-30T12:19:55.000Z
islam_fitz/survey/migrations/0005_auto_20210712_2132.py
OmarEhab177/Islam_fitz
6ad0eb21549895a6fe537e8413022b82bc530c57
[ "MIT" ]
null
null
null
# Generated by Django 3.1.12 on 2021-07-12 19:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('survey', '0004_lastpage_whatsapp_button'), ] operations = [ migrations.RemoveField( model_name='lastpage', name='wh...
23.416667
61
0.592527
56
562
5.785714
0.678571
0.08642
0.104938
0.12963
0.179012
0
0
0
0
0
0
0.058524
0.300712
562
23
62
24.434783
0.765903
0.081851
0
0.235294
1
0
0.157588
0.05642
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e046ccaf1594be44b4bc74501cfe08b79d45a1d7
490
py
Python
Examples/WorkingWithOutlookMSGs/CreateAndSaveOutlookNote.py
Muzammil-khan/Aspose.Email-Python-Dotnet
04ca3a6f440339f3ddf316218f92d15d66f24e7e
[ "MIT" ]
5
2019-01-28T05:17:12.000Z
2020-04-14T14:31:34.000Z
Examples/WorkingWithOutlookMSGs/CreateAndSaveOutlookNote.py
Muzammil-khan/Aspose.Email-Python-Dotnet
04ca3a6f440339f3ddf316218f92d15d66f24e7e
[ "MIT" ]
1
2019-01-28T16:07:26.000Z
2021-11-25T10:59:52.000Z
Examples/WorkingWithOutlookMSGs/CreateAndSaveOutlookNote.py
Muzammil-khan/Aspose.Email-Python-Dotnet
04ca3a6f440339f3ddf316218f92d15d66f24e7e
[ "MIT" ]
6
2018-07-16T14:57:34.000Z
2020-08-30T05:59:52.000Z
import aspose.email.mapi.msg as msg from aspose.email.mapi import MapiNote, NoteSaveFormat, NoteColor def run(): dataDir = "Data/" #ExStart: CreateAndSaveOutlookNote note3 = MapiNote() note3.subject = "Blue color note" note3.body = "This is a blue color note"; note3.color = NoteColor.YELLOW note3.height = 500 ...
25.789474
77
0.746939
60
490
5.95
0.583333
0.061625
0.084034
0.10084
0
0
0
0
0
0
0
0.031026
0.144898
490
18
78
27.222222
0.821002
0.130612
0
0
0
0
0.200472
0.075472
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e04830a8bb6dffa22a3b7aa461ea3221561a26cd
6,114
py
Python
nonebot/internal/adapter/template.py
mobyw/nonebot2
36663f1a8a51bd89f4a60110047e73719adcc73d
[ "MIT" ]
null
null
null
nonebot/internal/adapter/template.py
mobyw/nonebot2
36663f1a8a51bd89f4a60110047e73719adcc73d
[ "MIT" ]
null
null
null
nonebot/internal/adapter/template.py
mobyw/nonebot2
36663f1a8a51bd89f4a60110047e73719adcc73d
[ "MIT" ]
null
null
null
import functools from string import Formatter from typing import ( TYPE_CHECKING, Any, Set, Dict, List, Type, Tuple, Union, Generic, Mapping, TypeVar, Callable, Optional, Sequence, cast, overload, ) if TYPE_CHECKING: from .message import Message, Mess...
33.048649
85
0.56248
666
6,114
4.995496
0.244745
0.033063
0.032462
0.013526
0.151488
0.113616
0.097385
0.097385
0.085963
0.085963
0
0.001257
0.349199
6,114
184
86
33.228261
0.834883
0.095846
0
0.102941
0
0
0.067664
0.004195
0
0
0
0
0.007353
1
0.080882
false
0
0.029412
0
0.183824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0