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
862dc531f725b524bb6846cb090205fc7468f382
1,166
py
Python
src/backup/template/PositionalArgumentTemplate.py
ytyaru0/Python.TemplateFileMaker.20180314204216
4849f982acea5d86b711c5dec4cc046016ab1031
[ "CC0-1.0" ]
null
null
null
src/backup/template/PositionalArgumentTemplate.py
ytyaru0/Python.TemplateFileMaker.20180314204216
4849f982acea5d86b711c5dec4cc046016ab1031
[ "CC0-1.0" ]
null
null
null
src/backup/template/PositionalArgumentTemplate.py
ytyaru0/Python.TemplateFileMaker.20180314204216
4849f982acea5d86b711c5dec4cc046016ab1031
[ "CC0-1.0" ]
null
null
null
from string import Template import re class PositionalArgumentTemplate(Template): # (?i): 大文字小文字を区別しないモードを開始する # (?-i): 大文字小文字を区別しないモードを無効にする idpattern_default = Template.idpattern # (?-i:[_a-zA-Z][_a-zA-Z0-9]*) idpattern = '([0-9]+)' def find_place_holders(self, template:str): #for m in re...
31.513514
73
0.587479
145
1,166
4.593103
0.344828
0.072072
0.066066
0.024024
0.075075
0.075075
0
0
0
0
0
0.007946
0.244425
1,166
36
74
32.388889
0.748014
0.316467
0
0
0
0
0.038314
0
0
0
0
0
0
1
0.047619
false
0
0.095238
0
0.285714
0.47619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
862e0a0793ac26ff1693be29a952ce4f785121be
1,020
py
Python
cla-backend/cla/tests/unit/test_company.py
kdhaigud/easycla
f913f8dbf658acf4711b601f9312ca5663a4efe8
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
cla-backend/cla/tests/unit/test_company.py
kdhaigud/easycla
f913f8dbf658acf4711b601f9312ca5663a4efe8
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
cla-backend/cla/tests/unit/test_company.py
kdhaigud/easycla
f913f8dbf658acf4711b601f9312ca5663a4efe8
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
# Copyright The Linux Foundation and each contributor to CommunityBridge. # SPDX-License-Identifier: MIT import json import os import requests import uuid import hug import pytest from falcon import HTTP_200, HTTP_409 import cla from cla import routes ID_TOKEN = os.environ.get('ID_TOKEN') API_URL = os.environ.get('...
23.72093
73
0.673529
133
1,020
4.992481
0.428571
0.099398
0.036145
0.051205
0.225904
0.225904
0.13253
0.13253
0.13253
0
0
0.018916
0.222549
1,020
42
74
24.285714
0.818411
0.157843
0
0.133333
0
0
0.15
0
0
0
0
0
0.066667
1
0.033333
false
0
0.333333
0
0.366667
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
862fb7f41889fb9ebdc1d283480d889b7dbfd294
3,144
py
Python
py/WatchDialog.py
mathematicalmichael/SpringNodes
3ff4034b6e57ee6efa55c963e1819f3d30a2c4ab
[ "MIT" ]
51
2015-09-25T09:30:57.000Z
2022-01-19T14:16:44.000Z
py/WatchDialog.py
sabeelcoder/SpringNodes
e21a24965474d54369e74d23c06f8c42a7b926b5
[ "MIT" ]
66
2015-09-30T02:43:32.000Z
2022-03-31T02:26:52.000Z
py/WatchDialog.py
sabeelcoder/SpringNodes
e21a24965474d54369e74d23c06f8c42a7b926b5
[ "MIT" ]
48
2015-11-19T01:34:47.000Z
2022-02-25T17:26:48.000Z
# Copyright(c) 2017, Dimitar Venkov # @5devene, dimitar.ven@gmail.com # www.badmonkeys.net import clr clr.AddReference('System.Windows.Forms') clr.AddReference('System.Drawing') from System.Drawing import Point, Color, Font from System.Windows.Forms import * from cStringIO import StringIO str_file = StringIO() size1...
27.578947
79
0.688613
469
3,144
4.558635
0.326226
0.056127
0.019645
0.023386
0.128157
0.128157
0.128157
0.095416
0.095416
0.095416
0
0.070417
0.168893
3,144
114
80
27.578947
0.747799
0.047074
0
0.084211
0
0
0.048829
0
0
0
0
0
0
1
0.073684
false
0
0.042105
0
0.126316
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
8630212a84fb76678a871b47fba5eab501615806
1,658
py
Python
292-nim-game.py
mvj3/leetcode
3111199beeaefbb3a74173e783ed21c9e53ab203
[ "MIT" ]
null
null
null
292-nim-game.py
mvj3/leetcode
3111199beeaefbb3a74173e783ed21c9e53ab203
[ "MIT" ]
null
null
null
292-nim-game.py
mvj3/leetcode
3111199beeaefbb3a74173e783ed21c9e53ab203
[ "MIT" ]
null
null
null
""" Question: Nim Game My Submissions Question You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the last stone will be the winner. You will take the first turn to remove the stones. Bot...
36.043478
263
0.700844
269
1,658
4.319703
0.449814
0.108434
0.178141
0.185886
0.174699
0
0
0
0
0
0
0.027559
0.234017
1,658
45
264
36.844444
0.887402
0.645356
0
0.117647
0
0
0
0
0
0
0
0
0.529412
1
0.058824
false
0
0
0
0.294118
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
2
863032b8210dd9655600e6a9f42f0fb08b0f6d53
370
py
Python
script_tests/maf_extract_ranges_indexed_tests.py
lldelisle/bx-python
19ab41e0905221e3fcaaed4b74faf2d7cda0d15a
[ "MIT" ]
122
2015-07-01T12:00:22.000Z
2022-03-02T09:27:35.000Z
script_tests/maf_extract_ranges_indexed_tests.py
lldelisle/bx-python
19ab41e0905221e3fcaaed4b74faf2d7cda0d15a
[ "MIT" ]
64
2015-11-06T21:03:18.000Z
2022-03-24T00:55:27.000Z
script_tests/maf_extract_ranges_indexed_tests.py
lldelisle/bx-python
19ab41e0905221e3fcaaed4b74faf2d7cda0d15a
[ "MIT" ]
60
2015-10-05T19:19:36.000Z
2021-11-19T20:53:54.000Z
import unittest import base class Test(base.BaseScriptTest, unittest.TestCase): command_line = "./scripts/maf_extract_ranges_indexed.py ./test_data/maf_tests/mm8_chr7_tiny.maf -c -m 5 -p mm8." input_stdin = base.TestFile(filename="./test_data/maf_tests/dcking_ghp074.bed") output_stdout = base.TestFile(fi...
37
116
0.775676
55
370
4.927273
0.6
0.088561
0.121771
0.177122
0.354244
0.354244
0.354244
0.354244
0.354244
0
0
0.03003
0.1
370
9
117
41.111111
0.783784
0
0
0
0
0.166667
0.467568
0.421622
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
8630b3c80464d13f544a914873b82ed141f94bf1
9,098
py
Python
qstklearn/1knn.py
elxavicio/QSTK
4981506c37227a72404229d5e1e0887f797a5d57
[ "BSD-3-Clause" ]
339
2015-01-01T10:06:49.000Z
2022-03-23T23:32:24.000Z
QSTK/qstklearn/1knn.py
jenniyanjie/QuantSoftwareToolkit
0eb2c7a776c259a087fdcac1d3ff883eb0b5516c
[ "BSD-3-Clause" ]
19
2015-01-04T13:12:33.000Z
2021-07-19T11:13:47.000Z
QSTK/qstklearn/1knn.py
jenniyanjie/QuantSoftwareToolkit
0eb2c7a776c259a087fdcac1d3ff883eb0b5516c
[ "BSD-3-Clause" ]
154
2015-01-30T09:41:15.000Z
2022-03-19T02:27:59.000Z
''' (c) 2011, 2012 Georgia Tech Research Corporation This source code is released under the New BSD license. Please see http://wiki.quantsoftware.org/index.php?title=QSTK_License for license details. Created on Feb 20, 2011 @author: John Cornwell @organization: Georgia Institute of Technology @contact: JohnW...
31.811189
112
0.523522
1,069
9,098
4.434051
0.282507
0.008017
0.022785
0.021519
0.277004
0.228481
0.203587
0.197468
0.197468
0.165823
0
0.056915
0.339525
9,098
285
113
31.922807
0.731902
0.029677
0
0.189189
0
0
0.041518
0
0
0
0
0
0
0
null
null
0
0.054054
null
null
0.013514
0
0
0
null
0
0
0
0
0
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
86311bc6fef14e7f3a84f443854c9a8a4139ce52
2,508
py
Python
pyscf/nao/m_comp_coulomb_pack.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
2
2019-05-28T05:25:56.000Z
2019-11-09T02:16:43.000Z
pyscf/nao/m_comp_coulomb_pack.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
2
2019-09-16T17:58:31.000Z
2019-09-22T17:26:01.000Z
pyscf/nao/m_comp_coulomb_pack.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
1
2019-11-09T02:13:16.000Z
2019-11-09T02:13:16.000Z
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
38
92
0.702153
407
2,508
4.223587
0.454545
0.020361
0.027923
0.03025
0.075625
0.075625
0.055846
0.055846
0.055846
0.055846
0
0.042969
0.183413
2,508
65
93
38.584615
0.796387
0.443381
0
0
0
0
0
0
0
0
0
0
0
1
0.034483
false
0
0.241379
0
0.310345
0.034483
0
0
0
null
0
0
0
0
0
0
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
863143ad0e8c0560ad9359d49f02a31a8146a084
2,338
py
Python
nova/tests/unit/test_service_auth.py
panguan737/nova
0d177185a439baa228b42c948cab4e934d6ac7b8
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/test_service_auth.py
panguan737/nova
0d177185a439baa228b42c948cab4e934d6ac7b8
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/test_service_auth.py
panguan737/nova
0d177185a439baa228b42c948cab4e934d6ac7b8
[ "Apache-2.0" ]
1
2020-11-02T10:17:13.000Z
2020-11-02T10:17:13.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
37.709677
79
0.732678
317
2,338
5.182965
0.394322
0.029823
0.055386
0.031041
0.256239
0.256239
0.21972
0.21972
0.21972
0.21972
0
0.003706
0.192044
2,338
61
80
38.327869
0.866067
0.309666
0
0.1875
0
0
0.076923
0.051494
0
0
0
0
0.15625
1
0.125
false
0
0.21875
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86319d7588f06ccfd5e5e22eadc702136a0fe831
552
py
Python
classification/model/build_gen.py
LittleWat/MCD_DA
37cb1bc38c203702e22c7c0c37e284d0294714fb
[ "MIT" ]
464
2018-04-04T22:38:44.000Z
2022-03-12T15:46:49.000Z
classification/model/build_gen.py
seqam-lab/MCD_DA
af10217c5c5451dcd8bc3e975a7d067c285cc029
[ "MIT" ]
28
2018-05-05T20:01:31.000Z
2022-01-16T05:07:56.000Z
classification/model/build_gen.py
seqam-lab/MCD_DA
af10217c5c5451dcd8bc3e975a7d067c285cc029
[ "MIT" ]
147
2018-04-10T08:44:10.000Z
2021-12-28T02:14:38.000Z
import svhn2mnist import usps import syn2gtrsb import syndig2svhn def Generator(source, target, pixelda=False): if source == 'usps' or target == 'usps': return usps.Feature() elif source == 'svhn': return svhn2mnist.Feature() elif source == 'synth': return syn2gtrsb.Feature() def ...
24
45
0.63587
60
552
5.85
0.333333
0.091168
0.068376
0.079772
0.193732
0.193732
0.193732
0.193732
0
0
0
0.016787
0.244565
552
22
46
25.090909
0.82494
0
0
0.111111
0
0
0.061706
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86329776e65dca78e6c2604731e8b04b13e73992
1,318
py
Python
deep_table/nn/models/loss/info_nce_loss.py
pfnet-research/deep-table
a19c0c3048484017d5f24806604c3b3470bcf550
[ "MIT" ]
48
2021-09-30T08:14:26.000Z
2022-03-02T12:20:08.000Z
deep_table/nn/models/loss/info_nce_loss.py
pfnet-research/deep-table
a19c0c3048484017d5f24806604c3b3470bcf550
[ "MIT" ]
1
2021-11-08T11:41:49.000Z
2021-11-08T11:41:49.000Z
deep_table/nn/models/loss/info_nce_loss.py
pfnet-research/deep-table
a19c0c3048484017d5f24806604c3b3470bcf550
[ "MIT" ]
2
2021-12-31T03:43:48.000Z
2022-03-11T09:04:21.000Z
import torch from torch import Tensor from torch.nn.modules.loss import _Loss class InfoNCELoss(_Loss): """Info NCE Loss. A type of contrastive loss function used for self-supervised learning. References: A. Oord, Y. Li, and O. Vinyals, "Representation Learning with Contrastive Predictive Cod...
32.95
92
0.615326
189
1,318
4.126984
0.428571
0.066667
0.030769
0.035897
0.04359
0
0
0
0
0
0
0.034518
0.252656
1,318
39
93
33.794872
0.75736
0.226859
0
0
0
0
0.010406
0
0
0
0
0
0
1
0.136364
false
0
0.136364
0
0.409091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8633d44756a388da352b3bc3dd3c8cfc0eeaabfe
19,830
py
Python
patroni/config.py
korkin25/patroni
333d41d9f039b5a799940c8a6fbc75dcbe0e9a31
[ "MIT" ]
null
null
null
patroni/config.py
korkin25/patroni
333d41d9f039b5a799940c8a6fbc75dcbe0e9a31
[ "MIT" ]
null
null
null
patroni/config.py
korkin25/patroni
333d41d9f039b5a799940c8a6fbc75dcbe0e9a31
[ "MIT" ]
null
null
null
import json import logging import os import shutil import tempfile import yaml from collections import defaultdict from copy import deepcopy from patroni import PATRONI_ENV_PREFIX from patroni.exceptions import ConfigParseError from patroni.dcs import ClusterConfig from patroni.postgresql.config import CaseInsensitive...
43.486842
120
0.580736
2,083
19,830
5.294287
0.18723
0.036271
0.019587
0.008886
0.222434
0.175553
0.106456
0.08161
0.06819
0.065288
0
0.002871
0.315028
19,830
455
121
43.582418
0.809026
0.098084
0
0.206704
0
0
0.154664
0.020536
0
0
0
0
0
1
0.069832
false
0.039106
0.036313
0.02514
0.181564
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
863423445c595d9f921067c5163063a99cb0a68c
12,040
py
Python
src/Products/CMFCore/tests/test_DirectoryView.py
fdiary/Products.CMFCore
361a30e0c72a15a21f88433b8d5fc49331f36728
[ "ZPL-2.1" ]
3
2015-11-24T16:26:02.000Z
2019-04-09T07:37:12.000Z
src/Products/CMFCore/tests/test_DirectoryView.py
fdiary/Products.CMFCore
361a30e0c72a15a21f88433b8d5fc49331f36728
[ "ZPL-2.1" ]
86
2015-09-10T16:25:08.000Z
2022-03-17T07:16:30.000Z
src/Products/CMFCore/tests/test_DirectoryView.py
fdiary/Products.CMFCore
361a30e0c72a15a21f88433b8d5fc49331f36728
[ "ZPL-2.1" ]
16
2015-08-21T21:35:35.000Z
2021-08-04T18:20:55.000Z
############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
38.222222
79
0.66603
1,385
12,040
5.662816
0.256318
0.035701
0.035701
0.048196
0.359301
0.294148
0.231417
0.168303
0.145353
0.133112
0
0.00566
0.23696
12,040
314
80
38.343949
0.848046
0.233555
0
0.19774
0
0
0.087325
0.016708
0
0
0
0
0.19209
1
0.175141
false
0.011299
0.129944
0.00565
0.355932
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
8634627ed49b276d745b67db33bc1b7a02ae6c52
4,247
py
Python
pycycle/elements/flight_conditions.py
eshendricks/pyCycle
2b7f9c2a60c6d93d5e561c71b27e75566b3baef0
[ "Apache-2.0" ]
null
null
null
pycycle/elements/flight_conditions.py
eshendricks/pyCycle
2b7f9c2a60c6d93d5e561c71b27e75566b3baef0
[ "Apache-2.0" ]
null
null
null
pycycle/elements/flight_conditions.py
eshendricks/pyCycle
2b7f9c2a60c6d93d5e561c71b27e75566b3baef0
[ "Apache-2.0" ]
null
null
null
import openmdao.api as om from pycycle.thermo.cea import species_data from pycycle.constants import AIR_ELEMENTS from pycycle.elements.ambient import Ambient from pycycle.elements.flow_start import FlowStart class FlightConditions(om.Group): """Determines total and static flow properties given an altitude and Ma...
38.261261
120
0.600895
548
4,247
4.50365
0.286496
0.039708
0.017018
0.014182
0.079011
0.017018
0
0
0
0
0
0.029039
0.237815
4,247
110
121
38.609091
0.733395
0.063574
0
0
0
0
0.215024
0.006806
0
0
0
0
0
1
0.025641
false
0
0.064103
0
0.102564
0.128205
0
0
0
null
0
0
0
0
0
0
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
86346fa63b7971b7ad956846f8bc8dcc94175283
2,679
py
Python
server/cauth/views.py
mashaka/TravelHelper
8a216dd13c253e138f241187dee46e6e53281a7b
[ "MIT" ]
null
null
null
server/cauth/views.py
mashaka/TravelHelper
8a216dd13c253e138f241187dee46e6e53281a7b
[ "MIT" ]
3
2020-02-11T23:38:20.000Z
2021-06-10T19:10:53.000Z
server/cauth/views.py
mashaka/TravelHelper
8a216dd13c253e138f241187dee46e6e53281a7b
[ "MIT" ]
1
2018-09-19T11:19:48.000Z
2018-09-19T11:19:48.000Z
from django.shortcuts import render from django.contrib.auth.decorators import login_required from django.contrib.auth.forms import AdminPasswordChangeForm, PasswordChangeForm, UserCreationForm from django.contrib.auth import update_session_auth_hash, login, authenticate from django.contrib import messages from django...
31.892857
99
0.709966
312
2,679
5.942308
0.294872
0.04315
0.036677
0.040453
0.081985
0.048544
0
0
0
0
0
0.00464
0.195595
2,679
83
100
32.277108
0.855684
0
0
0.231884
0
0
0.086226
0
0
0
0
0
0
1
0.086957
false
0.15942
0.15942
0.028986
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8634b2f385acdad2561bde76c51b0f6fb67361d8
2,806
py
Python
samples/modules/tensorflow/magic_wand/train/data_split_person.py
lviala-zaack/zephyr
bf3c6e7ba415dd85f1b68eb69ea2779b234c686f
[ "Apache-2.0" ]
6,224
2016-06-24T20:04:19.000Z
2022-03-31T20:33:45.000Z
samples/modules/tensorflow/magic_wand/train/data_split_person.py
Conexiotechnologies/zephyr
fde24ac1f25d09eb9722ce4edc6e2d3f844b5bce
[ "Apache-2.0" ]
32,027
2017-03-24T00:02:32.000Z
2022-03-31T23:45:53.000Z
samples/modules/tensorflow/magic_wand/train/data_split_person.py
Conexiotechnologies/zephyr
fde24ac1f25d09eb9722ce4edc6e2d3f844b5bce
[ "Apache-2.0" ]
4,374
2016-08-11T07:28:47.000Z
2022-03-31T14:44:59.000Z
# Lint as: python3 # coding=utf-8 # Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICE...
36.921053
125
0.653956
371
2,806
4.781671
0.423181
0.055806
0.029312
0.03044
0.131905
0.11274
0.068771
0
0
0
0
0.009066
0.213828
2,806
75
126
37.413333
0.788305
0.395937
0
0
0
0
0.175165
0
0
0
0
0
0
1
0.025641
false
0
0.179487
0
0.230769
0.102564
0
0
0
null
0
0
0
0
0
0
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
86350332b9c46bb259c547e1b3c963ac7c8f647c
10,632
py
Python
tests/k8s_handler.py
josebalius/go-spacemesh
7ad61dcbe30f361b348e93c97eb3871ab79f1848
[ "MIT" ]
586
2017-12-27T10:29:30.000Z
2022-03-21T00:25:54.000Z
tests/k8s_handler.py
josebalius/go-spacemesh
7ad61dcbe30f361b348e93c97eb3871ab79f1848
[ "MIT" ]
2,542
2017-12-27T11:23:12.000Z
2022-03-31T18:40:52.000Z
tests/k8s_handler.py
josebalius/go-spacemesh
7ad61dcbe30f361b348e93c97eb3871ab79f1848
[ "MIT" ]
162
2017-12-27T13:37:12.000Z
2022-03-25T09:15:13.000Z
from datetime import datetime from kubernetes import client from kubernetes.client.rest import ApiException import os import time import yaml from tests import config as conf import tests.utils as ut def remove_clusterrole_binding(shipper_name, crb_name): # remove clusterrolebind k8s_client = client.RbacAuth...
44.3
133
0.630267
1,207
10,632
5.299917
0.158244
0.066125
0.051587
0.054713
0.586525
0.499297
0.42473
0.35501
0.31718
0.279037
0
0.012487
0.2769
10,632
239
134
44.485356
0.819589
0.033766
0
0.443299
0
0
0.127266
0.015104
0
0
0
0.004184
0
1
0.072165
false
0.010309
0.041237
0
0.123711
0.103093
0
0
0
null
0
0
0
0
0
0
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
863721243454a95cc68c80d7a3e2d4352bbe5a24
2,718
py
Python
natlas-agent/config.py
m4rcu5/natlas
d1057c5349a5443cecffb3db9a6428f7271b07ad
[ "Apache-2.0" ]
null
null
null
natlas-agent/config.py
m4rcu5/natlas
d1057c5349a5443cecffb3db9a6428f7271b07ad
[ "Apache-2.0" ]
null
null
null
natlas-agent/config.py
m4rcu5/natlas
d1057c5349a5443cecffb3db9a6428f7271b07ad
[ "Apache-2.0" ]
null
null
null
import os from dotenv import load_dotenv class Config: # Current Version NATLAS_VERSION = "0.6.10" BASEDIR = os.path.abspath(os.path.dirname(__file__)) load_dotenv(os.path.join(BASEDIR, '.env')) def get_int(self, varname): tmp = os.environ.get(varname) if tmp: return int(tmp) return None def get_bo...
36.24
118
0.756439
430
2,718
4.630233
0.395349
0.028127
0.04219
0.040181
0.117027
0.038172
0.038172
0.038172
0.038172
0
0
0.010601
0.167035
2,718
74
119
36.72973
0.868816
0.437822
0
0.117647
0
0
0.18484
0.058511
0
0
0
0
0
1
0.088235
false
0
0.058824
0
0.382353
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
86375b708be1e1e74cc333322674e530709cceeb
4,663
py
Python
rdr2019/mcmc_lc_jla_fit.py
rubind/host_unity
a1908d80a8b6354e4516cccbf2b1a214cbc7daa9
[ "MIT" ]
null
null
null
rdr2019/mcmc_lc_jla_fit.py
rubind/host_unity
a1908d80a8b6354e4516cccbf2b1a214cbc7daa9
[ "MIT" ]
3
2021-03-16T17:19:23.000Z
2021-03-24T17:05:05.000Z
rdr2019/mcmc_lc_jla_fit.py
rubind/host_unity
a1908d80a8b6354e4516cccbf2b1a214cbc7daa9
[ "MIT" ]
null
null
null
import os import sys import click import pickle import sncosmo import numpy as np from astropy.table import Table DATA_PATH = '/home/samdixon/jla_light_curves/' def modify_error(lc, error_floor=0.): """Add an error floor of `error_floor` times the maximum flux of the band to each observation """ ...
39.516949
133
0.51855
575
4,663
3.998261
0.276522
0.035233
0.018269
0.024793
0.251849
0.162679
0.162679
0.162679
0.138321
0.107873
0
0.023739
0.34956
4,663
117
134
39.854701
0.734257
0.019301
0
0.174757
0
0
0.078763
0.037955
0
0
0
0
0
1
0.029126
false
0
0.067961
0
0.106796
0.029126
0
0
0
null
0
0
0
0
0
0
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
863791c55712e28d3fe1488aacf0c833eaf8ff5c
11,011
py
Python
openmdao/core/tests/test_system.py
toddrme2178/OpenMDAO
379cc6216d13d380e11cb3a46f03960981de4660
[ "Apache-2.0" ]
null
null
null
openmdao/core/tests/test_system.py
toddrme2178/OpenMDAO
379cc6216d13d380e11cb3a46f03960981de4660
[ "Apache-2.0" ]
null
null
null
openmdao/core/tests/test_system.py
toddrme2178/OpenMDAO
379cc6216d13d380e11cb3a46f03960981de4660
[ "Apache-2.0" ]
1
2018-07-27T06:39:15.000Z
2018-07-27T06:39:15.000Z
""" Unit tests for the system interface.""" import unittest from six import assertRaisesRegex from six.moves import cStringIO import numpy as np from openmdao.api import Problem, Group, IndepVarComp, ExecComp from openmdao.test_suite.components.options_feature_vector import VectorDoublingComp from openmdao.utils.ass...
35.066879
95
0.596767
1,344
11,011
4.747024
0.144345
0.049373
0.041379
0.028213
0.715047
0.659561
0.59373
0.51442
0.420219
0.296708
0
0.024589
0.276088
11,011
313
96
35.178914
0.775812
0.104259
0
0.351648
0
0
0.107736
0
0
0
0
0
0.285714
1
0.027473
false
0.005495
0.043956
0
0.082418
0.010989
0
0
0
null
0
0
0
0
0
0
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
8638749e9332abd43829f80692ff4532468c5620
1,244
py
Python
code/src/db/create_db.py
fabiangunzinger/sample_project
a5c87d0c3ff2f6ed39f3e3a18557c0ab439f6b42
[ "MIT" ]
null
null
null
code/src/db/create_db.py
fabiangunzinger/sample_project
a5c87d0c3ff2f6ed39f3e3a18557c0ab439f6b42
[ "MIT" ]
null
null
null
code/src/db/create_db.py
fabiangunzinger/sample_project
a5c87d0c3ff2f6ed39f3e3a18557c0ab439f6b42
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import os import sqlite3 import sys import pandas as pd from src import config def parse_args(argv): parser = argparse.ArgumentParser() parser.add_argument('sample') parser.add_argument('replace') return parser.parse_args() def db_table...
25.387755
77
0.673633
180
1,244
4.455556
0.422222
0.033666
0.032419
0.034913
0.067332
0.067332
0
0
0
0
0
0.005025
0.200161
1,244
48
78
25.916667
0.801005
0.109325
0
0
0
0
0.142336
0
0
0
0
0
0
1
0.121212
false
0
0.181818
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
863b23444fda9cb581afbddd6338c59075cfc887
1,793
py
Python
tests/test_responder.py
craigderington/responder-persons-api
d2270d2f761c5dd3dbe253113d410f3e37d4d217
[ "Apache-2.0" ]
null
null
null
tests/test_responder.py
craigderington/responder-persons-api
d2270d2f761c5dd3dbe253113d410f3e37d4d217
[ "Apache-2.0" ]
null
null
null
tests/test_responder.py
craigderington/responder-persons-api
d2270d2f761c5dd3dbe253113d410f3e37d4d217
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pytest import app as service import yaml import responder from starlette.responses import PlainTextResponse @pytest.fixture def api(): return service.api def test_hello_world(api): r = api.requests.get("/api/v1.0/index") assert r.text == "Hello, World!" def test_basic_route(api...
19.703297
65
0.621305
253
1,793
4.316206
0.284585
0.051282
0.065934
0.082418
0.349817
0.311355
0.261905
0.177656
0.1337
0.1337
0
0.018813
0.229225
1,793
90
66
19.922222
0.771346
0.00725
0
0.189655
0
0
0.106299
0
0
0
0
0
0.189655
1
0.275862
false
0
0.103448
0.034483
0.413793
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
863b8cb7916efe3b96226a5e47386ab45aa3a5f0
9,162
py
Python
examples/solar/p25_nonsparse_cmmgp.py
axdahl/SC-MMGP
c6cd9d9de66bb7074925a4b6485f10a74bdd9f68
[ "Apache-2.0" ]
null
null
null
examples/solar/p25_nonsparse_cmmgp.py
axdahl/SC-MMGP
c6cd9d9de66bb7074925a4b6485f10a74bdd9f68
[ "Apache-2.0" ]
null
null
null
examples/solar/p25_nonsparse_cmmgp.py
axdahl/SC-MMGP
c6cd9d9de66bb7074925a4b6485f10a74bdd9f68
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Script to execute example covarying MMGP regression forecasting model with full Krhh. Inputs: Data training and test sets (dictionary pickle) Data for example: - normalised solar data for 25 sites for 15 minute forecast - N_train = 4200, N_test = 2276, P = 25, D = 51 - Xtr[:, :5...
39.662338
135
0.685986
1,363
9,162
4.434336
0.264857
0.028293
0.02548
0.026473
0.196889
0.157512
0.118134
0.118134
0.104897
0.096294
0
0.015385
0.198319
9,162
230
136
39.834783
0.807488
0.258677
0
0.07971
0
0
0.117774
0.020141
0
0
0
0
0
1
0.014493
false
0.007246
0.115942
0
0.144928
0.144928
0
0
0
null
0
0
0
0
0
0
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
863bc130193c72b67b65cca8c77628d45f1d2148
11,072
py
Python
cruiser-lib/test/positioning/test_position_hl_commander.py
cfreebuf/kubeedge-examples
9b2ab402c33546215a0a9e02e92f5b0aa88bcff9
[ "Apache-2.0" ]
null
null
null
cruiser-lib/test/positioning/test_position_hl_commander.py
cfreebuf/kubeedge-examples
9b2ab402c33546215a0a9e02e92f5b0aa88bcff9
[ "Apache-2.0" ]
null
null
null
cruiser-lib/test/positioning/test_position_hl_commander.py
cfreebuf/kubeedge-examples
9b2ab402c33546215a0a9e02e92f5b0aa88bcff9
[ "Apache-2.0" ]
1
2019-12-02T01:00:18.000Z
2019-12-02T01:00:18.000Z
# -*- coding: utf-8 -*- # # || ____ _ __ # +------+ / __ )(_) /_______________ _____ ___ # | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \ # +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/ # || || /_____/_/\__/\___/_/ \__,_/ /___/\___/ # # Copyright (C) 2018 Bitcraze AB # # Th...
29.525333
74
0.587157
1,470
11,072
4.105442
0.137415
0.053355
0.079536
0.015907
0.693621
0.654515
0.641425
0.61541
0.602983
0.570174
0
0.041184
0.29823
11,072
374
75
29.604278
0.735521
0.125181
0
0.563063
0
0
0.01794
0.009022
0
0
0
0
0.162162
1
0.099099
false
0.004505
0.040541
0
0.148649
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
863c0ed7e6b8dca169d56f2c58a602b033d4bb29
6,232
py
Python
onmt/keyphrase/pke/unsupervised/graph_based/expandrank.py
NaomiatLibrary/OpenNMT-kpg-release
1da3468d7dad22529a77f3526abf9b373bd3dc4c
[ "MIT" ]
152
2019-10-07T03:15:53.000Z
2022-03-24T16:26:26.000Z
onmt/keyphrase/pke/unsupervised/graph_based/expandrank.py
NaomiatLibrary/OpenNMT-kpg-release
1da3468d7dad22529a77f3526abf9b373bd3dc4c
[ "MIT" ]
46
2019-11-04T09:51:51.000Z
2022-03-06T18:40:13.000Z
onmt/keyphrase/pke/unsupervised/graph_based/expandrank.py
NaomiatLibrary/OpenNMT-kpg-release
1da3468d7dad22529a77f3526abf9b373bd3dc4c
[ "MIT" ]
28
2019-11-04T02:02:23.000Z
2021-12-29T06:10:04.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Florian Boudin # Date: 10-02-2018 """ExpandRank keyphrase extraction model. Graph-based ranking approach to keyphrase extraction described in: * Xiaojun Wan and Jianguo Xiao. Single Document Keyphrase Extraction Using Neighborhood Knowledge. *In proceedings...
37.542169
80
0.574294
723
6,232
4.850622
0.316736
0.018249
0.017109
0.02053
0.145423
0.13915
0.135729
0.11976
0.11976
0.11976
0
0.017313
0.341945
6,232
165
81
37.769697
0.837844
0.503209
0
0.103448
0
0
0.029475
0
0
0
0
0
0
1
0.051724
false
0
0.137931
0
0.206897
0.017241
0
0
0
null
0
0
0
0
0
0
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
863da6290f58b36a91968cc8314fc22813d11b6c
210
py
Python
5-serverless-xray-stack/app.py
mmeidlinger/cdk-microservices-labs
a646c05d4bb0950f9915f9b15f810e82ba8d4e9a
[ "MIT-0" ]
14
2020-03-26T18:35:50.000Z
2022-03-20T14:49:54.000Z
5-serverless-xray-stack/app.py
mmeidlinger/cdk-microservices-labs
a646c05d4bb0950f9915f9b15f810e82ba8d4e9a
[ "MIT-0" ]
1
2021-11-23T01:20:13.000Z
2021-11-23T01:20:13.000Z
5-serverless-xray-stack/app.py
mmeidlinger/cdk-microservices-labs
a646c05d4bb0950f9915f9b15f810e82ba8d4e9a
[ "MIT-0" ]
14
2020-04-15T12:30:14.000Z
2022-03-26T20:47:35.000Z
#!/usr/bin/env python3 from aws_cdk import core from fagate_serverless.fagate_serverless_stack import FagateServerlessStack app = core.App() FagateServerlessStack(app, "serverless-xray-stack") app.synth()
17.5
75
0.804762
27
210
6.111111
0.592593
0.193939
0
0
0
0
0
0
0
0
0
0.005291
0.1
210
11
76
19.090909
0.867725
0.1
0
0
0
0
0.111702
0.111702
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
863daa6816d11bde4f87896d1cc47d06ece1f0db
5,066
py
Python
dash/long_callback/managers/celery_manager.py
nickmelnikov82/dash
e774908da770bee83f3213e0307c27ed8a40500e
[ "MIT" ]
17,143
2015-07-14T17:19:05.000Z
2022-03-31T10:03:39.000Z
dash/long_callback/managers/celery_manager.py
nickmelnikov82/dash
e774908da770bee83f3213e0307c27ed8a40500e
[ "MIT" ]
1,630
2015-11-17T22:15:41.000Z
2022-03-31T09:15:07.000Z
dash/long_callback/managers/celery_manager.py
nickmelnikov82/dash
e774908da770bee83f3213e0307c27ed8a40500e
[ "MIT" ]
1,970
2015-07-12T07:05:14.000Z
2022-03-30T19:58:09.000Z
import json import inspect import hashlib from _plotly_utils.utils import PlotlyJSONEncoder from dash.long_callback.managers import BaseLongCallbackManager class CeleryLongCallbackManager(BaseLongCallbackManager): def __init__(self, celery_app, cache_by=None, expire=None): """ Long callback manag...
34.937931
102
0.651402
632
5,066
5.039557
0.287975
0.028257
0.026688
0.017896
0.148509
0.11146
0.095761
0.046154
0.046154
0
0
0.000543
0.273194
5,066
144
103
35.180556
0.864476
0.206277
0
0.055556
0
0
0.047315
0.006114
0
0
0
0
0
1
0.155556
false
0
0.111111
0.022222
0.433333
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
863dcb2e53c2cd1e93015fc8efa9a5e953801c7f
2,027
py
Python
libraries/botframework-connector/botframework/connector/token_api/_token_api_client.py
victor-kironde/botbuilder-python
e893d9b036d7cf33cf9c9afd1405450c354cdbcd
[ "MIT" ]
10
2019-05-11T18:07:14.000Z
2021-08-20T03:02:47.000Z
libraries/botframework-connector/botframework/connector/token_api/_token_api_client.py
Fortune-Adekogbe/botbuilder-python
4e48c874c32a2a7fe7f27a7a1f825e2aa39466c4
[ "MIT" ]
13
2020-09-05T11:06:05.000Z
2020-10-29T05:01:19.000Z
botframework_connector-4.11.0/botframework/connector/token_api/_token_api_client.py
opsdroid/wheels-for-teams-connector
c283bb5ab95a4c3d4023767d53d2686aa531f372
[ "Apache-2.0" ]
18
2019-08-19T12:11:00.000Z
2021-10-12T09:36:27.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
36.196429
82
0.683769
205
2,027
6.57561
0.443902
0.037092
0.02003
0.029674
0.071217
0.071217
0.071217
0.071217
0
0
0
0.000601
0.178589
2,027
55
83
36.854545
0.809009
0.459793
0
0.090909
0
0
0.004831
0
0
0
0
0
0
1
0.045455
false
0
0.272727
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
863df256ad1c4ecc4568ea47ce82f56d31bf2e46
69
py
Python
soppi/sample.py
shikshan/soppi
007f654b0e9fe4bf7fc09e967615cb205a67dbaa
[ "MIT" ]
null
null
null
soppi/sample.py
shikshan/soppi
007f654b0e9fe4bf7fc09e967615cb205a67dbaa
[ "MIT" ]
null
null
null
soppi/sample.py
shikshan/soppi
007f654b0e9fe4bf7fc09e967615cb205a67dbaa
[ "MIT" ]
null
null
null
# content of test_sample.py def inc(x: int) -> int: return x + 1
17.25
27
0.623188
13
69
3.230769
0.846154
0
0
0
0
0
0
0
0
0
0
0.019231
0.246377
69
3
28
23
0.788462
0.362319
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
863e8a2ed0006f7150de09f27d406b39ae986ad3
827
py
Python
saleor/order/migrations/0081_auto_20200406_0456.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
15,337
2015-01-12T02:11:52.000Z
2021-10-05T19:19:29.000Z
saleor/order/migrations/0081_auto_20200406_0456.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
7,486
2015-02-11T10:52:13.000Z
2021-10-06T09:37:15.000Z
saleor/order/migrations/0081_auto_20200406_0456.py
aminziadna/saleor
2e78fb5bcf8b83a6278af02551a104cfa555a1fb
[ "CC-BY-4.0" ]
5,864
2015-01-16T14:52:54.000Z
2021-10-05T23:01:15.000Z
# Generated by Django 3.0.4 on 2020-04-06 09:56 from django.db import migrations from saleor.order import OrderStatus def match_orders_with_users(apps, *_args, **_kwargs): Order = apps.get_model("order", "Order") User = apps.get_model("account", "User") orders_without_user = Order.objects.filter( ...
25.060606
63
0.665054
102
827
5.176471
0.568627
0.051136
0.056818
0.075758
0
0
0
0
0
0
0
0.029688
0.226119
827
32
64
25.84375
0.795313
0.054414
0
0
1
0
0.053846
0
0
0
0
0
0
1
0.045455
false
0
0.090909
0
0.272727
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
863f656903c4148e82b3b4fd5343ee724e111ab6
3,469
py
Python
function/python/brightics/function/textanalytics/regex.py
jhpark428/studio
539457b3026dda827c1b17b4cb851946e34e3b85
[ "Apache-2.0" ]
202
2018-10-23T04:37:35.000Z
2022-01-27T05:51:10.000Z
function/python/brightics/function/textanalytics/regex.py
sagarmk/studio
3bc547fdf85ae6be80c1b40916f9f5d31d2b3f75
[ "MIT" ]
444
2018-11-07T08:41:14.000Z
2022-03-16T06:48:57.000Z
function/python/brightics/function/textanalytics/regex.py
sagarmk/studio
3bc547fdf85ae6be80c1b40916f9f5d31d2b3f75
[ "MIT" ]
99
2018-11-08T04:12:13.000Z
2022-03-30T05:36:27.000Z
""" Copyright 2019 Samsung SDS 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 ...
40.811765
120
0.643701
418
3,469
5.114833
0.311005
0.07203
0.058934
0.028064
0.260992
0.138447
0.138447
0.089804
0.056127
0.038354
0
0.008242
0.265494
3,469
84
121
41.297619
0.830848
0.189968
0
0.183333
0
0
0.064093
0
0
0
0
0
0
1
0.05
false
0
0.066667
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
863fffaabccfedecd9149dc35acae6b9542aa04c
8,500
py
Python
bin/temperature_functions.py
travc/outbreak-reporter
0f03ca66993827ae1866d09e3cf5d9f6d4acb633
[ "MIT" ]
null
null
null
bin/temperature_functions.py
travc/outbreak-reporter
0f03ca66993827ae1866d09e3cf5d9f6d4acb633
[ "MIT" ]
2
2019-12-15T19:58:26.000Z
2019-12-17T05:33:32.000Z
bin/temperature_functions.py
travc/outbreak-reporter
0f03ca66993827ae1866d09e3cf5d9f6d4acb633
[ "MIT" ]
1
2022-03-04T01:36:38.000Z
2022-03-04T01:36:38.000Z
#!/usr/bin/env python3 import sys import os import logging import numpy as np import pandas as pd import dateutil def tempF2C(x): return (x-32.0)*5.0/9.0 def tempC2F(x): return (x*9.0/5.0)+32.0 def load_temperature_hdf5(temps_fn, local_time_offset, basedir=None, start_year=None, truncate_to_full_day=False): ## ...
41.062802
132
0.598
1,259
8,500
3.926926
0.250993
0.01699
0.021238
0.009709
0.234426
0.188107
0.158981
0.149272
0.149272
0.137136
0
0.025862
0.263059
8,500
206
133
41.262136
0.76341
0.294118
0
0.149254
0
0
0.081514
0
0
0
0
0
0.022388
1
0.052239
false
0.007463
0.044776
0.014925
0.134328
0.029851
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
864003328f8b49eae739c102dea7da6313ecab13
2,584
py
Python
applications/CSharpWrapperApplication/tests/test_CSharpWrapperApplication.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
778
2017-01-27T16:29:17.000Z
2022-03-30T03:01:51.000Z
applications/CSharpWrapperApplication/tests/test_CSharpWrapperApplication.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
6,634
2017-01-15T22:56:13.000Z
2022-03-31T15:03:36.000Z
applications/CSharpWrapperApplication/tests/test_CSharpWrapperApplication.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
224
2017-02-07T14:12:49.000Z
2022-03-06T23:09:34.000Z
# import Kratos import KratosMultiphysics import KratosMultiphysics.StructuralMechanicsApplication as StructuralMechanicsApplication import KratosMultiphysics.CSharpWrapperApplication as CSharpWrapperApplication import run_cpp_unit_tests # Import Kratos "wrapper" for unittests import KratosMultiphysics.KratosUnittest ...
29.363636
90
0.71904
267
2,584
6.861423
0.370787
0.065502
0.026201
0.091703
0.176856
0.067686
0.03821
0.03821
0
0
0
0
0.195046
2,584
87
91
29.701149
0.880769
0.379257
0
0
0
0
0.135786
0.017391
0
0
0
0
0
1
0.035714
false
0
0.25
0
0.321429
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
8640b1d90a7dd7eb0d598131b239f974e433d2eb
1,121
py
Python
backend/api/models.py
mezidia/mezidia-airlines-backend
bc0b27b785f45ac83552f7fbb879cd977171c2fc
[ "MIT" ]
null
null
null
backend/api/models.py
mezidia/mezidia-airlines-backend
bc0b27b785f45ac83552f7fbb879cd977171c2fc
[ "MIT" ]
null
null
null
backend/api/models.py
mezidia/mezidia-airlines-backend
bc0b27b785f45ac83552f7fbb879cd977171c2fc
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, String, ForeignKey, Float from sqlalchemy.orm import relationship from .database import Base class Post(Base): __tablename__ = "posts" id = Column(Integer, primary_key=True, nullable=False, index=True) full_name = Column(String, nullable=False) last_place = Co...
29.5
70
0.716325
135
1,121
5.792593
0.333333
0.182864
0.179028
0.223785
0.269821
0.195652
0.195652
0.195652
0.195652
0.195652
0
0.002146
0.168599
1,121
37
71
30.297297
0.83691
0
0
0.12
0
0
0.038359
0
0
0
0
0
0
1
0
false
0.04
0.12
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
86421594cd7a65136f722a4e9889059ae90e1d77
2,145
py
Python
run.py
Ganeshrockz/Flask-Python-Dev
522b280484e8f4cf3877b378a1334c501ffbc41e
[ "Apache-2.0" ]
null
null
null
run.py
Ganeshrockz/Flask-Python-Dev
522b280484e8f4cf3877b378a1334c501ffbc41e
[ "Apache-2.0" ]
null
null
null
run.py
Ganeshrockz/Flask-Python-Dev
522b280484e8f4cf3877b378a1334c501ffbc41e
[ "Apache-2.0" ]
null
null
null
from flask import Flask, flash, render_template, redirect, url_for from flask.ext.pymongo import PyMongo from flask import request app=Flask(__name__) app.config['MONGO_DBNAME']='stud' app.config['MONGO_URI']='mongodb://localhost:27017/stud' mongo=PyMongo(app) """ @app.route('/add') def add(): user=mongo.db.users ...
35.75
213
0.620513
253
2,145
5.166008
0.316206
0.075746
0.061209
0.039021
0.056618
0.056618
0
0
0
0
0
0.008711
0.197203
2,145
59
214
36.355932
0.75029
0
0
0.159091
0
0
0.224921
0.015839
0
0
0
0
0
1
0.068182
false
0.045455
0.068182
0
0.272727
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
86448f12322f6a8ff13f239dbc2163cdebce1c56
12,198
py
Python
resources/tests/conftest.py
jussiarpalahti/respa
c308bcb96e56d9401e22df94d3073e248618e243
[ "MIT" ]
null
null
null
resources/tests/conftest.py
jussiarpalahti/respa
c308bcb96e56d9401e22df94d3073e248618e243
[ "MIT" ]
null
null
null
resources/tests/conftest.py
jussiarpalahti/respa
c308bcb96e56d9401e22df94d3073e248618e243
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest import datetime from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from rest_framework.test import APIClient, APIRequestFactory from resources.enums import UnitAuthorizationLevel from resources.models import Resource, ResourceType, Unit, Pu...
29.606796
119
0.702492
1,374
12,198
5.983988
0.140466
0.069569
0.070056
0.041596
0.596935
0.550596
0.498662
0.456702
0.403308
0.334469
0
0.010521
0.205198
12,198
411
120
29.678832
0.837545
0.019101
0
0.478788
0
0
0.075429
0.004353
0
0
0
0
0
1
0.112121
false
0
0.030303
0.060606
0.254545
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
86468125b6e8c3a2e71c1dfdfd2e29f1c5b2af19
586
py
Python
qcmetadataprinter/struct.py
x2dev/device_leeco_x2
9bf4549b5f64390ca4da291745b2a66a8e3f006e
[ "FTL" ]
null
null
null
qcmetadataprinter/struct.py
x2dev/device_leeco_x2
9bf4549b5f64390ca4da291745b2a66a8e3f006e
[ "FTL" ]
null
null
null
qcmetadataprinter/struct.py
x2dev/device_leeco_x2
9bf4549b5f64390ca4da291745b2a66a8e3f006e
[ "FTL" ]
null
null
null
#!/bin/python3 with open('../camera/QCamera2/stack/common/cam_intf.h', 'r') as f: data = f.read() f.closed start = data.find(' INCLUDE(CAM_INTF_META_HISTOGRAM') end = data.find('} metadata_data_t;') data = data[start:end] metadata = data.split("\n") metalist = list() for line in metadata: if (line.starts...
23.44
66
0.593857
84
586
4.071429
0.535714
0.035088
0
0
0
0
0
0
0
0
0
0.010846
0.213311
586
24
67
24.416667
0.73102
0.022184
0
0.117647
0
0
0.263986
0.127622
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
8647521d4f7b0429f689d687206113be1ffbd603
317
py
Python
abc/abc121/abc121d-2.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
abc/abc121/abc121d-2.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
abc/abc121/abc121d-2.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
def g(A, n): if A == -1: return 0 return A // (2 * n) * n + max(A % (2 * n) - (n - 1), 0) def f(A, B): result = 0 for i in range(48): t = 1 << i if (g(B, t) - g(A - 1, t)) % 2 == 1: result += t return result A, B = map(int, input().split()) print(f(A, B))
16.684211
59
0.381703
59
317
2.050847
0.40678
0.049587
0.049587
0.066116
0
0
0
0
0
0
0
0.068783
0.403785
317
18
60
17.611111
0.571429
0
0
0
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0
0
0.384615
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86479efec94998d8ac597979216e69bc35252174
807
py
Python
log_mysql.py
kizunai/Weather-Scrapy
d2104d28dc303f6710b043f9821dcb84c665665d
[ "Apache-2.0" ]
null
null
null
log_mysql.py
kizunai/Weather-Scrapy
d2104d28dc303f6710b043f9821dcb84c665665d
[ "Apache-2.0" ]
null
null
null
log_mysql.py
kizunai/Weather-Scrapy
d2104d28dc303f6710b043f9821dcb84c665665d
[ "Apache-2.0" ]
null
null
null
import logging from logging.handlers import TimedRotatingFileHandler class MyLog(): def __init__(self, name, filename): self.logger = logging.getLogger(name) if not self.logger.handlers: self.logger.setLevel(logging.INFO) ch = TimedRotatingFileHandler(filename=filename, when...
31.038462
97
0.675341
91
807
5.945055
0.43956
0.110906
0.140481
0
0
0
0
0
0
0
0
0.001517
0.183395
807
25
98
32.28
0.819423
0
0
0
0
0
0.114236
0
0
0
0
0
0
1
0.083333
false
0
0.166667
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
8647faa20530aa0d730c1a40c079c5454d72f20d
1,252
py
Python
src/fiesta/urls.py
lerooze/django-fiesta
d521f50bcdd3d40e91f0474ec2fa7e256758e0a5
[ "BSD-3-Clause" ]
null
null
null
src/fiesta/urls.py
lerooze/django-fiesta
d521f50bcdd3d40e91f0474ec2fa7e256758e0a5
[ "BSD-3-Clause" ]
3
2019-10-29T23:31:01.000Z
2020-03-31T03:08:28.000Z
src/fiesta/urls.py
lerooze/django-fiesta
d521f50bcdd3d40e91f0474ec2fa7e256758e0a5
[ "BSD-3-Clause" ]
null
null
null
# urls.py from django.urls import path, register_converter from fiesta import converters from fiesta.views import views from rest_framework.urlpatterns import format_suffix_patterns # "http://django-sdmx.org/wsrest/" # "http://django-sdmx.org/ws/" register_converter(converters.ResourceConverter, 'res') register_con...
40.387097
125
0.742812
136
1,252
6.720588
0.308824
0.045952
0.065646
0.105033
0.484683
0.484683
0.40372
0.370897
0.370897
0.370897
0
0
0.099042
1,252
30
126
41.733333
0.810284
0.055112
0
0.142857
0
0
0.29202
0.272496
0
0
0
0
0
1
0
false
0
0.190476
0
0.190476
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
8648090bbe37bd69072d860284239d2be5f5a913
469
py
Python
code-wars/010.moving-zeros-to-the-end.py
code-knayam/DataStructureAlgorithms
8425911633d4d343c58798a123175289ed0df1fe
[ "MIT" ]
null
null
null
code-wars/010.moving-zeros-to-the-end.py
code-knayam/DataStructureAlgorithms
8425911633d4d343c58798a123175289ed0df1fe
[ "MIT" ]
null
null
null
code-wars/010.moving-zeros-to-the-end.py
code-knayam/DataStructureAlgorithms
8425911633d4d343c58798a123175289ed0df1fe
[ "MIT" ]
null
null
null
# Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements. def move_zeros(array): #your code here new_array = [] new_index = 0 while len(array) > 0: item = array.pop(0) if item == 0 and not type(item) == bool : ...
31.266667
123
0.603412
70
469
3.914286
0.557143
0.116788
0
0
0
0
0
0
0
0
0
0.015674
0.319829
469
15
124
31.266667
0.84326
0.287846
0
0
0
0
0
0
0
0
0
0.066667
0
1
0.090909
false
0
0
0
0.181818
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
864838cbb6dc59b795206fdcacaeae0f4be0ca16
9,159
py
Python
sepa_generator/definitions.py
jason-gm/python_sepa
542c48326c07ab68d341a07d5ee12502f7248690
[ "MIT" ]
null
null
null
sepa_generator/definitions.py
jason-gm/python_sepa
542c48326c07ab68d341a07d5ee12502f7248690
[ "MIT" ]
null
null
null
sepa_generator/definitions.py
jason-gm/python_sepa
542c48326c07ab68d341a07d5ee12502f7248690
[ "MIT" ]
null
null
null
def construct_tag_data(tag_name, attrs=None, value=None, sorting=None): data = { '_name': tag_name, '_attrs': attrs or [], '_value': value, } if sorting: data['_sorting'] = sorting return data def add_simple_child(data, child_friendly_name, child_tag_name, child_attr...
48.460317
116
0.601048
902
9,159
5.720621
0.174058
0.102326
0.136434
0.046512
0.242636
0.202907
0.175581
0.117054
0.086047
0.086047
0
0.002314
0.292172
9,159
188
117
48.718085
0.793614
0
0
0.088889
0
0.007407
0.148395
0.012776
0
0
0
0
0
1
0.066667
false
0
0
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
864a44b2fa4b1d6dbb15ace15ef151c81922788f
928
py
Python
__main__.py
miezebieze/scott-launcher
a03597d0883af075128d1ea4ea53e7b5132807b1
[ "MIT" ]
1
2020-06-12T20:49:47.000Z
2020-06-12T20:49:47.000Z
__main__.py
miezebieze/scott-launcher
a03597d0883af075128d1ea4ea53e7b5132807b1
[ "MIT" ]
null
null
null
__main__.py
miezebieze/scott-launcher
a03597d0883af075128d1ea4ea53e7b5132807b1
[ "MIT" ]
null
null
null
from enum import Enum from window import Window D = Enum ('Directions','N NE E SE S SW W NW') selector_map = { D.NW: [0.5,0.5], D.N: [1.5,0], D.NE: [2.5,0.5], D.W: [0,1.5], D.E: [3,1.5], D.SW: [0.5,2.5], D.S: [1.5,3], D.SE: [2.5,2.5], } selector_size = 100 window_si...
29
82
0.626078
158
928
3.620253
0.28481
0.181818
0.195804
0.013986
0
0
0
0
0
0
0
0.041721
0.173491
928
31
83
29.935484
0.704042
0.017241
0
0
0
0
0.098901
0
0
0
0
0
0
1
0.043478
false
0
0.130435
0
0.173913
0.043478
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
864a6447cb894e438d5dd8c26760c86abeb04746
760
py
Python
cride/circles/serializers.py
monteals/C-Ride
6e9368011f49ff619d1edaeaf1e8232685cc2095
[ "MIT" ]
null
null
null
cride/circles/serializers.py
monteals/C-Ride
6e9368011f49ff619d1edaeaf1e8232685cc2095
[ "MIT" ]
9
2020-04-24T01:29:38.000Z
2022-03-12T00:25:50.000Z
cride/circles/serializers.py
monteals/C-Ride
6e9368011f49ff619d1edaeaf1e8232685cc2095
[ "MIT" ]
null
null
null
from rest_framework import serializers from rest_framework.validators import UniqueValidator from cride.circles.models import Circle class CircleSerializer(serializers.Serializer): name = serializers.CharField() slug_name = serializers.SlugField() rides_taken = serializers.IntegerField() rides_offered ...
36.190476
113
0.777632
80
760
7.2625
0.5125
0.10327
0.123924
0.149742
0.227194
0
0
0
0
0
0
0.012121
0.131579
760
20
114
38
0.868182
0
0
0
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0.2
0.066667
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
864a8f3a33d90a7cbe60473e931b29c2b862bbbb
13,719
py
Python
contact/views.py
Dimstella/blockchain-contact-tracing-app-hospitals
e0b2bf2b3b8c06e58032faed99900d1c7b7d300d
[ "MIT" ]
null
null
null
contact/views.py
Dimstella/blockchain-contact-tracing-app-hospitals
e0b2bf2b3b8c06e58032faed99900d1c7b7d300d
[ "MIT" ]
null
null
null
contact/views.py
Dimstella/blockchain-contact-tracing-app-hospitals
e0b2bf2b3b8c06e58032faed99900d1c7b7d300d
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.template import loader from django.http import HttpResponse from django.shortcuts import render, redirect from .models import Patient from django.contrib import messages import pandas as pd from django.contrib.auth.decorators import login_required from web3 import...
56.45679
1,732
0.648954
1,427
13,719
6.179397
0.111423
0.061238
0.119755
0.114312
0.779088
0.742005
0.715468
0.715468
0.709004
0.709004
0
0.033514
0.127852
13,719
242
1,733
56.690083
0.703468
0
0
0.453947
0
0.026316
0.575096
0.529757
0
0
0.021817
0
0
1
0.065789
false
0
0.078947
0
0.223684
0.026316
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
864be7bfbe0cf81e1b82f46620ffbb10dcc091db
108
py
Python
figures/collide1a.py
brandon-rhodes/pycon2010-mighty-dictionary
1f75fdd42cd243c9f86a87f7b48f6b3498d032e8
[ "MIT" ]
22
2015-05-10T10:32:47.000Z
2021-08-21T17:29:09.000Z
figures/collide1a.py
brandon-rhodes/pycon2010-mighty-dictionary
1f75fdd42cd243c9f86a87f7b48f6b3498d032e8
[ "MIT" ]
2
2016-05-06T20:09:17.000Z
2020-01-23T02:29:18.000Z
figures/collide1a.py
brandon-rhodes/pycon2010-mighty-dictionary
1f75fdd42cd243c9f86a87f7b48f6b3498d032e8
[ "MIT" ]
4
2016-04-17T23:38:11.000Z
2019-03-06T02:28:48.000Z
import _dictdraw, sys d = {} surface = _dictdraw.draw_dictionary(d, [4]) surface.write_to_png(sys.argv[1])
18
43
0.731481
17
108
4.352941
0.764706
0
0
0
0
0
0
0
0
0
0
0.020833
0.111111
108
5
44
21.6
0.75
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
864bf69490c6ee45920463f0c6f8b0b6dbff18dc
4,624
py
Python
ReportBot.py
SeveNNoff/InstagramReportBot
0a613b5f2733d988a952d64d8141cb7390527b9e
[ "Apache-2.0" ]
1
2020-10-13T16:04:08.000Z
2020-10-13T16:04:08.000Z
ReportBot.py
SeveNNoff/InstagramReportBot
0a613b5f2733d988a952d64d8141cb7390527b9e
[ "Apache-2.0" ]
null
null
null
ReportBot.py
SeveNNoff/InstagramReportBot
0a613b5f2733d988a952d64d8141cb7390527b9e
[ "Apache-2.0" ]
1
2021-04-17T04:42:29.000Z
2021-04-17T04:42:29.000Z
# coding=utf-8 #!/usr/bin/env python3 from libs.check_modules import check_modules from sys import exit from os import _exit check_modules() from os import path from libs.logo import print_logo from libs.utils import print_success from libs.utils import print_error from libs.utils import ask_question ...
30.421053
96
0.599048
611
4,624
4.360065
0.211129
0.04542
0.024399
0.035661
0.479354
0.418544
0.395646
0.374625
0.324324
0.201201
0
0.01125
0.288711
4,624
152
97
30.421053
0.798723
0.016436
0
0.466102
0
0
0.175131
0
0
0
0
0
0
1
0.050847
false
0.008475
0.127119
0
0.211864
0.279661
0
0
0
null
0
0
0
0
0
0
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
864c964912d3ec24af5b6c8c081c0833e7bd9b90
9,845
py
Python
openfermioncirq/variational/ansatzes/default_initial_params_test.py
viathor/OpenFermion-Cirq
b4b7f8d82c40f0a6282873b5d2867e9d8778cea6
[ "Apache-2.0" ]
null
null
null
openfermioncirq/variational/ansatzes/default_initial_params_test.py
viathor/OpenFermion-Cirq
b4b7f8d82c40f0a6282873b5d2867e9d8778cea6
[ "Apache-2.0" ]
null
null
null
openfermioncirq/variational/ansatzes/default_initial_params_test.py
viathor/OpenFermion-Cirq
b4b7f8d82c40f0a6282873b5d2867e9d8778cea6
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distribu...
40.514403
80
0.685729
1,040
9,845
6.247115
0.1875
0.023703
0.027705
0.022626
0.829614
0.813298
0.812683
0.812683
0.770817
0.754502
0
0.020698
0.234434
9,845
242
81
40.681818
0.841316
0.116912
0
0.679144
0
0
0.014903
0
0
0
0
0
0.02139
1
0.010695
false
0
0.032086
0
0.042781
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
864d054eec7d0aab41c1311c42de1bf952355469
33,765
py
Python
spyder/plugins/variableexplorer/widgets/arrayeditor.py
seryj/spyder
acea4f501c1a04d57b02e5e817708a69b503f430
[ "MIT" ]
null
null
null
spyder/plugins/variableexplorer/widgets/arrayeditor.py
seryj/spyder
acea4f501c1a04d57b02e5e817708a69b503f430
[ "MIT" ]
null
null
null
spyder/plugins/variableexplorer/widgets/arrayeditor.py
seryj/spyder
acea4f501c1a04d57b02e5e817708a69b503f430
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ NumPy Array Editor Dialog based on Qt """ # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 # Stand...
39.817217
84
0.53206
3,540
33,765
4.926836
0.180226
0.017889
0.013417
0.007224
0.207672
0.160197
0.102632
0.080901
0.043575
0.038186
0
0.008448
0.361943
33,765
847
85
39.864227
0.801058
0.107449
0
0.187017
0
0
0.043203
0
0
0
0
0.001181
0
1
0.068006
false
0.006182
0.018547
0
0.16847
0.003091
0
0
0
null
0
0
0
0
0
0
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
864d134a9c98ae3913986fb31b160d825e4250a2
4,638
py
Python
libbeat/tests/system/idxmgmt.py
dddpaul/beats
0d4a830fea46210ee264c52a977834d39493c750
[ "ECL-2.0", "Apache-2.0" ]
4
2020-11-17T06:29:30.000Z
2021-08-08T11:56:01.000Z
libbeat/tests/system/idxmgmt.py
dddpaul/beats
0d4a830fea46210ee264c52a977834d39493c750
[ "ECL-2.0", "Apache-2.0" ]
6
2020-06-23T16:28:27.000Z
2020-10-05T17:52:01.000Z
libbeat/tests/system/idxmgmt.py
dddpaul/beats
0d4a830fea46210ee264c52a977834d39493c750
[ "ECL-2.0", "Apache-2.0" ]
2
2020-10-26T15:34:06.000Z
2021-12-10T08:51:58.000Z
import datetime import unittest import pytest from elasticsearch import NotFoundError class IdxMgmt(unittest.TestCase): def __init__(self, client, index): self._client = client self._index = index if index != '' and index != '*' else 'mockbeat' def needs_init(self, s): return s == ''...
39.305085
99
0.618586
525
4,638
5.262857
0.2
0.057908
0.096272
0.131741
0.446978
0.411871
0.372059
0.355411
0.294607
0.198335
0
0.003158
0.24903
4,638
117
100
39.641026
0.790123
0.02997
0
0.282609
0
0
0.101224
0
0
0
0
0
0.23913
1
0.184783
false
0.032609
0.043478
0.01087
0.271739
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
864d2029d6faf1f316dacf9ce08c2da5fefb2cbf
9,735
py
Python
scripts/policy/sdn_single_vm_multiple_policy_topology.py
atsgen/tf-test
2748fcd81491450c75dadc71849d2a1c11061029
[ "Apache-2.0" ]
5
2020-09-29T00:36:57.000Z
2022-02-16T06:51:32.000Z
scripts/policy/sdn_single_vm_multiple_policy_topology.py
atsgen/tf-test
2748fcd81491450c75dadc71849d2a1c11061029
[ "Apache-2.0" ]
27
2019-11-02T02:18:34.000Z
2022-02-24T18:49:08.000Z
scripts/policy/sdn_single_vm_multiple_policy_topology.py
atsgen/tf-test
2748fcd81491450c75dadc71849d2a1c11061029
[ "Apache-2.0" ]
20
2019-11-28T16:02:25.000Z
2022-01-06T05:56:58.000Z
'''*******AUTO-GENERATED TOPOLOGY*********''' from __future__ import print_function from builtins import range from builtins import object from tcutils.util import get_random_name,get_random_cidr class sdn_single_vm_multiple_policy_config(object): def __init__(self, domain='default-domain', project='admin', user...
120.185185
754
0.638007
1,357
9,735
4.308032
0.101695
0.116319
0.174478
0.186794
0.81235
0.79781
0.787205
0.779336
0.768731
0.768731
0
0.022816
0.131073
9,735
80
755
121.6875
0.668282
0.060709
0
0
1
0
0.397477
0
0
0
0
0
0
1
0.02439
false
0.04878
0.121951
0
0.170732
0.097561
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
864d964c990a587e44dea52d446ea4e2f4b1a45e
6,340
py
Python
chaco/polygon_plot.py
burnpanck/chaco
6457cdd28625991ba69fbbee105051cab237aa51
[ "BSD-3-Clause" ]
3
2017-09-17T17:32:06.000Z
2022-03-15T13:04:43.000Z
chaco/polygon_plot.py
burnpanck/chaco
6457cdd28625991ba69fbbee105051cab237aa51
[ "BSD-3-Clause" ]
null
null
null
chaco/polygon_plot.py
burnpanck/chaco
6457cdd28625991ba69fbbee105051cab237aa51
[ "BSD-3-Clause" ]
5
2015-05-17T16:08:11.000Z
2021-02-23T09:23:42.000Z
""" Defines the PolygonPlot class. """ from __future__ import with_statement # Major library imports import numpy as np # Enthought library imports. from enable.api import LineStyle, black_color_trait, \ transparent_color_trait from kiva.agg import points_in_polygon from traits.api ...
36.647399
82
0.603312
828
6,340
4.43599
0.266908
0.031854
0.016335
0.013068
0.288048
0.166077
0.128233
0.128233
0.109992
0.109992
0
0.004871
0.255205
6,340
172
83
36.860465
0.772978
0.424606
0
0.3125
0
0
0.033682
0
0
0
0
0
0
1
0.0875
false
0
0.075
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86502380f0447c4c5893fb4c09f732239b1cc11f
552
py
Python
webapp/template_config.py
evgenyss/investing
b72da8587a4783bfdd389f1781dcd108d1a5e53f
[ "MIT" ]
null
null
null
webapp/template_config.py
evgenyss/investing
b72da8587a4783bfdd389f1781dcd108d1a5e53f
[ "MIT" ]
null
null
null
webapp/template_config.py
evgenyss/investing
b72da8587a4783bfdd389f1781dcd108d1a5e53f
[ "MIT" ]
null
null
null
import os from datetime import timedelta basedir = os.path.abspath(os.path.dirname(__file__)) API_DATA_URL = "https://invest-public-api.tinkoff.ru/rest/tinkoff.public.invest.api.contract.v1.InstrumentsService/" API_LASTPRICES_URL = "https://invest-public-api.tinkoff.ru/rest/\ tinkoff.public.invest.api.contract.v1.Mar...
29.052632
116
0.778986
73
552
5.671233
0.589041
0.043478
0.067633
0.096618
0.328502
0.328502
0.328502
0.328502
0.328502
0.328502
0
0.005882
0.076087
552
18
117
30.666667
0.805882
0
0
0
0
0.090909
0.217391
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
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
8650d9e6c008eb69e8a60ee61bf0c6b0618f2c83
3,842
py
Python
humann2/quantify/families.py
dytk2134/humann2
9b8f212bdd910ee7187f06f1550f0c86bce0473b
[ "MIT" ]
null
null
null
humann2/quantify/families.py
dytk2134/humann2
9b8f212bdd910ee7187f06f1550f0c86bce0473b
[ "MIT" ]
null
null
null
humann2/quantify/families.py
dytk2134/humann2
9b8f212bdd910ee7187f06f1550f0c86bce0473b
[ "MIT" ]
null
null
null
""" HUMAnN2: quantify_families module Compute alignments by gene family Copyright (c) 2014 Harvard School of Public Health Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, inc...
40.442105
116
0.728267
534
3,842
5.050562
0.346442
0.032629
0.016314
0.032258
0.132369
0.08046
0.066741
0.066741
0.03337
0.03337
0
0.002313
0.212389
3,842
94
117
40.87234
0.888962
0.442998
0
0.1
0
0
0.032764
0
0
0
0
0
0
1
0.025
false
0
0.15
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
865144cd196eb39a73555fc643c117d083a615cc
744
py
Python
Buta Nicolae/threads.py
RazvanBalau/parallel-2020
bd9c0dea6cc70e167320f64632d7a235522dfdb3
[ "MIT" ]
null
null
null
Buta Nicolae/threads.py
RazvanBalau/parallel-2020
bd9c0dea6cc70e167320f64632d7a235522dfdb3
[ "MIT" ]
null
null
null
Buta Nicolae/threads.py
RazvanBalau/parallel-2020
bd9c0dea6cc70e167320f64632d7a235522dfdb3
[ "MIT" ]
23
2020-01-15T15:02:39.000Z
2020-01-15T17:23:03.000Z
import threading from multiprocessing import Queue results = [] results2 = [] def take_numbers(q): print('Enter the numbers:') for i in range(0,3): num1 = int(input('Enter first number: ')) num2 = int(input('Enter second number: ')) q.put(num1) q.put(num2) def add_num(q): ...
20.666667
54
0.606183
106
744
4.216981
0.40566
0.049217
0.026846
0.049217
0.076063
0.076063
0.076063
0
0
0
0
0.040636
0.239247
744
36
55
20.666667
0.749117
0
0
0.068966
0
0
0.103356
0
0
0
0
0
0
1
0.068966
false
0
0.068966
0
0.137931
0.103448
0
0
0
null
0
0
0
0
0
0
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
86517e62e82db5794921e6da0e41993351344585
576
py
Python
code_week11_76_712/unique_paths.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
code_week11_76_712/unique_paths.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
code_week11_76_712/unique_paths.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
''' 一个机器人位于一个 m x n 网格的左上角 (起始点在下图中标记为“Start” )。 机器人每次只能向下或者向右移动一步。机器人试图达到网格的右下角(在下图中标记为“Finish”)。 问总共有多少条不同的路径? 例如,上图是一个7 x 3 的网格。有多少可能的路径?   示例 1: 输入: m = 3, n = 2 输出: 3 解释: 从左上角开始,总共有 3 条路径可以到达右下角。 1. 向右 -> 向右 -> 向下 2. 向右 -> 向下 -> 向右 3. 向下 -> 向右 -> 向右 示例 2: 输入: m = 7, n = 3 输出: 28 来源:力扣(LeetCode) 链接:https:...
15.567568
49
0.552083
98
576
3.244898
0.55102
0.028302
0.031447
0.037736
0
0
0
0
0
0
0
0.045673
0.277778
576
37
50
15.567568
0.71875
0.616319
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86524c143ea8ba1817f21135f1c0c27360fa74e8
3,361
py
Python
spektral/datasets/qm9.py
JonaBecher/spektral
ff59e16d959e0ec698428997363be20462625699
[ "MIT" ]
2,145
2019-01-21T20:49:44.000Z
2022-03-28T20:27:27.000Z
spektral/datasets/qm9.py
jasper-park/spektral
ad2d96549c00f68ce992a7d29e2c3fd025fb529b
[ "MIT" ]
259
2019-01-22T05:18:19.000Z
2022-03-25T10:46:10.000Z
spektral/datasets/qm9.py
jasper-park/spektral
ad2d96549c00f68ce992a7d29e2c3fd025fb529b
[ "MIT" ]
322
2019-02-11T16:18:27.000Z
2022-03-24T16:26:59.000Z
import os import os.path as osp import numpy as np from joblib import Parallel, delayed from tensorflow.keras.utils import get_file from tqdm import tqdm from spektral.data import Dataset, Graph from spektral.utils import label_to_one_hot, sparse from spektral.utils.io import load_csv, load_sdf ATOM_TYPES = [1, 6, 7...
29.482456
80
0.621839
497
3,361
4.060362
0.352113
0.014866
0.014866
0.019326
0.040634
0.040634
0.025768
0
0
0
0
0.011722
0.26391
3,361
113
81
29.743363
0.803961
0.249331
0
0
0
0.015152
0.078215
0
0
0
0
0
0
1
0.090909
false
0
0.136364
0
0.318182
0.015152
0
0
0
null
0
0
0
0
0
0
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
865416b109055549efa6918ca6073abc6d07a490
602
py
Python
code/Level 1 - Intro to CPX/5-acceleration/main.py
tscofield/cpx-training
682a2cef6bb164bc7c374744de94c21581258392
[ "MIT" ]
null
null
null
code/Level 1 - Intro to CPX/5-acceleration/main.py
tscofield/cpx-training
682a2cef6bb164bc7c374744de94c21581258392
[ "MIT" ]
null
null
null
code/Level 1 - Intro to CPX/5-acceleration/main.py
tscofield/cpx-training
682a2cef6bb164bc7c374744de94c21581258392
[ "MIT" ]
1
2019-02-07T04:04:05.000Z
2019-02-07T04:04:05.000Z
from adafruit_circuitplayground.express import cpx # Main loop gets x, y and z axis acceleration, prints the values, and turns on # red, green and blue, at levels related to the x, y and z values. while True: if cpx.switch: print("Slide switch off!") cpx.pixels.fill((0, 0, 0)) continue ...
25.083333
78
0.503322
94
602
3.212766
0.468085
0.02649
0.033113
0.039735
0
0
0
0
0
0
0
0.016129
0.38206
602
23
79
26.173913
0.795699
0.234219
0
0
0
0
0.037199
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0.105263
0
0
0
null
0
0
0
0
0
0
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
86543345af40c82152fa05b0f713964bb091299c
7,692
py
Python
src/data_preprocess.py
QinganZhao/ML-based-driving-motion-prediction
5a7772cf199d30e4e33bbe943775c2e19aac5d5b
[ "MIT" ]
18
2019-01-08T02:53:56.000Z
2022-03-03T11:34:20.000Z
src/data_preprocess.py
QinganZhao/ML-based-driving-motion-prediction
5a7772cf199d30e4e33bbe943775c2e19aac5d5b
[ "MIT" ]
null
null
null
src/data_preprocess.py
QinganZhao/ML-based-driving-motion-prediction
5a7772cf199d30e4e33bbe943775c2e19aac5d5b
[ "MIT" ]
7
2018-06-13T20:12:25.000Z
2022-02-20T08:39:07.000Z
import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl import matplotlib.patches as patches def load_data(file_name, car_flag): if car_flag == 1: data = np.loadtxt('./car1/'+str(file_name)) elif car_flag == 2: data = np.loadtxt('./car2/'+str(file_name)) return data def get...
29.136364
89
0.623375
1,246
7,692
3.614767
0.162921
0.130995
0.101909
0.091918
0.442496
0.318162
0.238455
0.181172
0.140764
0.099911
0
0.065277
0.189418
7,692
263
90
29.247148
0.657097
0.25637
0
0.121212
0
0
0.064361
0.017291
0
0
0
0
0
1
0.045455
false
0
0.030303
0
0.090909
0.037879
0
0
0
null
0
0
0
0
0
0
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
86545fd84ae7762d72208edf0f23289ff9f754a1
4,660
py
Python
balancesheet/equityManager.py
tylertjburns/ledgerkeeper
cd69e9f48f35a973d08e450dfffdfea46bdc3802
[ "MIT" ]
null
null
null
balancesheet/equityManager.py
tylertjburns/ledgerkeeper
cd69e9f48f35a973d08e450dfffdfea46bdc3802
[ "MIT" ]
null
null
null
balancesheet/equityManager.py
tylertjburns/ledgerkeeper
cd69e9f48f35a973d08e450dfffdfea46bdc3802
[ "MIT" ]
null
null
null
import balancesheet.mongoData.equities_data_service as dsvce from userInteraction.financeCliInteraction import FinanceCliInteraction import ledgerkeeper.mongoData.account_data_service as dsvca from balancesheet.enums import EquityClass, AssetType, LiabiltyType, EquityTimeHorizon, EquityStatus, EquityContingency import ...
43.551402
119
0.65279
507
4,660
5.763314
0.224852
0.074264
0.105407
0.049281
0.350445
0.288159
0.219713
0.201917
0.201917
0.201917
0
0.000288
0.254721
4,660
106
120
43.962264
0.84106
0
0
0.181818
0
0
0.079931
0
0
0
0
0
0
1
0.103896
false
0
0.064935
0
0.194805
0.077922
0
0
0
null
0
0
0
0
0
0
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
8654bfcdcac1a02c8bb6c10945f68a8c090f869f
27,781
py
Python
pysnmp-with-texts/CISCO-DOT11-QOS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCO-DOT11-QOS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCO-DOT11-QOS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-DOT11-QOS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-DOT11-QOS-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:55:50 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
156.073034
2,406
0.791908
3,456
27,781
6.365162
0.152778
0.049095
0.085917
0.00891
0.375807
0.273161
0.253296
0.222611
0.173516
0.163197
0
0.080347
0.103092
27,781
177
2,407
156.954802
0.802504
0.011951
0
0.035928
0
0.161677
0.433054
0.025911
0
0
0
0
0
1
0
false
0
0.053892
0
0.08982
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
865535238f10c51c669114bcf29b3699dd34b1e8
559
py
Python
examples/django/hello_world/wsgi.py
liuyu81/SnapSearch-Client-Python
41857806c2b26f0537de2dcc23a145107a4ecd04
[ "MIT" ]
null
null
null
examples/django/hello_world/wsgi.py
liuyu81/SnapSearch-Client-Python
41857806c2b26f0537de2dcc23a145107a4ecd04
[ "MIT" ]
null
null
null
examples/django/hello_world/wsgi.py
liuyu81/SnapSearch-Client-Python
41857806c2b26f0537de2dcc23a145107a4ecd04
[ "MIT" ]
1
2018-03-04T20:24:14.000Z
2018-03-04T20:24:14.000Z
import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hello_world.settings") # django WSGI application from django.core.wsgi import get_wsgi_application application = get_wsgi_application() # load SnapSearch API credentials api_email = "<email>" api_key = "<key>" # initialize the interceptor from SnapSearch im...
27.95
71
0.815742
65
559
6.846154
0.415385
0.101124
0.080899
0.125843
0
0
0
0
0
0
0
0
0.103757
559
19
72
29.421053
0.888224
0.187835
0
0
0
0
0.120267
0.048998
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8655870bbe029c575ef810e01964410eb82d6a13
10,603
py
Python
confluent_server/confluent/syncfiles.py
xcat2/confluent
47a83f4628df48638c2aebbfbcddc1531aac20d0
[ "Apache-2.0" ]
27
2015-02-11T13:56:46.000Z
2021-12-28T14:17:20.000Z
confluent_server/confluent/syncfiles.py
jjohnson42/confluent
47a83f4628df48638c2aebbfbcddc1531aac20d0
[ "Apache-2.0" ]
32
2015-09-23T13:19:04.000Z
2022-03-15T13:50:45.000Z
confluent_server/confluent/syncfiles.py
xcat2/confluent
47a83f4628df48638c2aebbfbcddc1531aac20d0
[ "Apache-2.0" ]
24
2015-07-14T20:41:55.000Z
2021-07-15T04:18:51.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2021 Lenovo # # 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 ...
37.334507
106
0.529661
1,097
10,603
5.094804
0.273473
0.017177
0.016103
0.007157
0.072106
0.042226
0.027196
0.017892
0.017892
0
0
0.010135
0.357918
10,603
283
107
37.466431
0.810811
0.084127
0
0.18254
0
0
0.086912
0.012283
0
0
0
0
0
1
0.031746
false
0.007937
0.039683
0
0.103175
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
86559f8329a6ab4177af7e36ab701bd44241c349
1,804
py
Python
fym/models/missile.py
JungYT/fym
d519c50086e3c7793b960e0326c92ed407836790
[ "MIT" ]
14
2019-08-23T10:02:39.000Z
2021-12-24T13:04:43.000Z
fym/models/missile.py
JungYT/fym
d519c50086e3c7793b960e0326c92ed407836790
[ "MIT" ]
110
2019-08-23T08:09:32.000Z
2021-06-29T06:54:48.000Z
fym/models/missile.py
JungYT/fym
d519c50086e3c7793b960e0326c92ed407836790
[ "MIT" ]
10
2019-09-02T03:49:06.000Z
2021-05-10T04:35:40.000Z
import numpy as np from fym.core import BaseSystem class MissilePlanar(BaseSystem): R = 288 g = 9.80665 S = 1 t1 = 1.5 t2 = 8.5 name = 'missile' def __init__(self, initial_state): super().__init__(initial_state) def external(self, states, controls): return 0 ...
25.408451
68
0.444568
279
1,804
2.83871
0.422939
0.015152
0.007576
0
0
0
0
0
0
0
0
0.167608
0.411308
1,804
70
69
25.771429
0.578154
0.121951
0
0.075472
0
0
0.004447
0
0
0
0
0
0
1
0.056604
false
0
0.037736
0.018868
0.264151
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
8655ba3bbd3cf852e91a43d33c2f2f32d558bc09
2,175
py
Python
egg/zoo/addition/data.py
chengemily/EGG
40e84228e9d6e9ae785c0e4a846bb7e12e2b9291
[ "MIT" ]
1
2022-03-01T18:57:48.000Z
2022-03-01T18:57:48.000Z
egg/zoo/addition/data.py
chengemily/EGG
40e84228e9d6e9ae785c0e4a846bb7e12e2b9291
[ "MIT" ]
null
null
null
egg/zoo/addition/data.py
chengemily/EGG
40e84228e9d6e9ae785c0e4a846bb7e12e2b9291
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Iterable, Optional, Tuple import torch from torch.utils.data import DataLoader class ScaledDataset: def __init__(self,...
32.462687
120
0.624368
269
2,175
4.821561
0.319703
0.048574
0.027756
0.038551
0.214341
0.1835
0.083269
0.083269
0.083269
0
0
0.006423
0.284138
2,175
66
121
32.954545
0.82659
0.110345
0
0.046512
0
0
0.035
0
0
0
0
0
0
1
0.116279
false
0
0.069767
0.023256
0.302326
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
8657657d7e720812db7b2b5c2b5e580159afbea0
564
py
Python
mathfun/lexographic.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
mathfun/lexographic.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
mathfun/lexographic.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
""" Next lexicographical permutation algorithm https://www.nayuki.io/page/next-lexicographical-permutation-algorithm """ def next_lexo(S): b = S[-1] for i, a in enumerate(reversed(S[:-1]), 2): if a < b: # we have the pivot a for j, b in enumerate(reversed(S), 1): ...
25.636364
69
0.439716
76
564
3.25
0.460526
0.032389
0.242915
0.315789
0.17004
0
0
0
0
0
0
0.01791
0.406028
564
21
70
26.857143
0.719403
0.237589
0
0
0
0
0.021327
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.230769
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
8657acef2a48725b54eda761add6bd9a28ac1231
3,379
py
Python
simulation-web3py/utility.py
miker83z/cloud-chain
0f5c43159544da547173ee0425e78bede261513b
[ "MIT" ]
null
null
null
simulation-web3py/utility.py
miker83z/cloud-chain
0f5c43159544da547173ee0425e78bede261513b
[ "MIT" ]
null
null
null
simulation-web3py/utility.py
miker83z/cloud-chain
0f5c43159544da547173ee0425e78bede261513b
[ "MIT" ]
1
2022-01-27T14:18:24.000Z
2022-01-27T14:18:24.000Z
import json import os from argparse import ArgumentTypeError from eth_typing import Address from web3.contract import Contract from settings import MIN_VAL, MAX_VAL, DEPLOYED_CONTRACTS, CONFIG_DIR async def init_simulation(contracts: [], factor: float, fn: str, status_init: bool) -> bool: statuses = [True] ...
32.805825
106
0.612607
415
3,379
4.795181
0.303614
0.01809
0.047739
0.050251
0.131156
0.128141
0.128141
0.128141
0.128141
0.055276
0
0.002929
0.29269
3,379
102
107
33.127451
0.829707
0.035809
0
0.189873
0
0
0.091302
0.023134
0
0
0
0
0
1
0.088608
false
0
0.101266
0
0.303797
0.037975
0
0
0
null
0
0
0
0
0
0
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
8657d90fe7092bbdb91cfe26101bae5ad4366000
808
py
Python
migrations/versions/816ea3631582_add_topics.py
OpenASL/HowSignBot
bd9c5bc0edfd6fb50bdce7c7c1d84462e1e704c2
[ "MIT" ]
9
2021-01-12T07:28:30.000Z
2021-12-30T09:27:04.000Z
migrations/versions/816ea3631582_add_topics.py
OpenASL/HowSignBot
bd9c5bc0edfd6fb50bdce7c7c1d84462e1e704c2
[ "MIT" ]
16
2021-03-28T16:31:42.000Z
2022-03-21T00:18:30.000Z
migrations/versions/816ea3631582_add_topics.py
OpenASL/HowSignBot
bd9c5bc0edfd6fb50bdce7c7c1d84462e1e704c2
[ "MIT" ]
1
2021-07-18T20:49:19.000Z
2021-07-18T20:49:19.000Z
"""add topics Revision ID: 816ea3631582 Revises: 37a124b0099b Create Date: 2021-03-13 14:20:10.044131 """ from alembic import op import sqlalchemy as sa import bot # revision identifiers, used by Alembic. revision = "816ea3631582" down_revision = "37a124b0099b" branch_labels = None depends_on = None def upgrade()...
23.085714
90
0.674505
96
808
5.604167
0.59375
0.050186
0.078067
0.085502
0.163569
0.163569
0.163569
0.163569
0
0
0
0.089094
0.194307
808
34
91
23.764706
0.737327
0.361386
0
0
0
0
0.133612
0
0
0
0
0
0
1
0.125
false
0
0.1875
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
0
0
0
0
0
0
0
1
0
86582bc3a8c357318983a8612ae2ca233e2c4562
3,137
py
Python
src/Lib/importlib/__init__.py
NUS-ALSET/ace-react-redux-brython
d009490263c5716a145d9691cd59bfcd5aff837a
[ "MIT" ]
1
2021-08-05T12:45:39.000Z
2021-08-05T12:45:39.000Z
src/Lib/importlib/__init__.py
NUS-ALSET/ace-react-redux-brython
d009490263c5716a145d9691cd59bfcd5aff837a
[ "MIT" ]
null
null
null
src/Lib/importlib/__init__.py
NUS-ALSET/ace-react-redux-brython
d009490263c5716a145d9691cd59bfcd5aff837a
[ "MIT" ]
1
2019-09-05T08:20:07.000Z
2019-09-05T08:20:07.000Z
"""A pure Python implementation of import.""" __all__ = ['__import__', 'import_module', 'invalidate_caches'] # Bootstrap help ##################################################### # Until bootstrapping is complete, DO NOT import any modules that attempt # to import importlib._bootstrap (directly or indirectly)....
36.057471
81
0.668792
409
3,137
4.98533
0.425428
0.039235
0.021579
0.012751
0
0
0
0
0
0
0
0.000832
0.233663
3,137
86
82
36.476744
0.847338
0.532037
0
0
0
0
0.108085
0
0
0
0
0
0
1
0.085714
false
0.028571
0.285714
0
0.457143
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
86589b5f56644ed9997dc3b47f7f98c31f2ddd04
8,848
py
Python
lib/arlunio/arlunio/image.py
swyddfa/stylo
4d6b348ce5812dc5c2554bfd21a1550375aa05e1
[ "MIT" ]
null
null
null
lib/arlunio/arlunio/image.py
swyddfa/stylo
4d6b348ce5812dc5c2554bfd21a1550375aa05e1
[ "MIT" ]
13
2019-06-02T21:26:52.000Z
2019-08-04T15:54:41.000Z
lib/arlunio/arlunio/image.py
swyddfa/stylo
4d6b348ce5812dc5c2554bfd21a1550375aa05e1
[ "MIT" ]
1
2019-07-08T17:00:56.000Z
2019-07-08T17:00:56.000Z
from __future__ import annotations import base64 import io import logging import pathlib from typing import Optional # TODO: Remove these, as they should be contained in the numpy backend. import numpy as np import PIL.Image as PImage import arlunio.ast as ast import arlunio.color as color import arlunio.mask as mas...
26.570571
148
0.617315
1,154
8,848
4.690641
0.235702
0.02882
0.018105
0.014779
0.18474
0.155921
0.146314
0.133937
0.099575
0.063551
0
0.018996
0.268196
8,848
332
149
26.650602
0.816988
0.520231
0
0.020202
0
0
0.022859
0
0
0
0
0.003012
0
1
0.191919
false
0
0.121212
0.030303
0.464646
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
865a20fd18fa17925d3611f9138e1d796448c4ce
9,001
py
Python
yamlable/tests/test_yamlable.py
smarie/python-yamlable
c726f5c56eea037968560ce83f9753bde1514991
[ "BSD-3-Clause" ]
27
2018-07-12T17:09:41.000Z
2022-02-07T18:56:26.000Z
yamlable/tests/test_yamlable.py
smarie/python-yamlable
c726f5c56eea037968560ce83f9753bde1514991
[ "BSD-3-Clause" ]
14
2018-07-10T08:09:21.000Z
2022-03-02T15:29:56.000Z
yamlable/tests/test_yamlable.py
smarie/python-yamlable
c726f5c56eea037968560ce83f9753bde1514991
[ "BSD-3-Clause" ]
1
2020-09-22T16:13:51.000Z
2020-09-22T16:13:51.000Z
from copy import copy try: # Python 2 only: from StringIO import StringIO # create a variant that can serve as a context manager class StringIO(StringIO): def __enter__(self): return self def __exit__(self, exception_type, exception_value, traceback): self.close(...
26.551622
115
0.56627
1,112
9,001
4.364209
0.146583
0.030291
0.036266
0.047599
0.653822
0.641665
0.641665
0.614259
0.588296
0.567278
0
0.002646
0.328297
9,001
338
116
26.630178
0.800033
0.232196
0
0.639175
0
0
0.072947
0.027909
0
0
0
0.002959
0.139175
1
0.170103
false
0.025773
0.051546
0.06701
0.376289
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
865a984bc7cd45c042cff94434fa063630359314
29,537
py
Python
src/twisted/web/server.py
vmario/twisted
34f3d8f8c6f51772eaed92a89257ea011e9a818d
[ "Unlicense", "MIT" ]
null
null
null
src/twisted/web/server.py
vmario/twisted
34f3d8f8c6f51772eaed92a89257ea011e9a818d
[ "Unlicense", "MIT" ]
null
null
null
src/twisted/web/server.py
vmario/twisted
34f3d8f8c6f51772eaed92a89257ea011e9a818d
[ "Unlicense", "MIT" ]
null
null
null
# -*- test-case-name: twisted.web.test.test_web -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ This is a web server which integrates with the twisted.internet infrastructure. @var NOT_DONE_YET: A token value which L{twisted.web.resource.IResource.render} implementations can return...
32.601545
88
0.593561
3,276
29,537
5.295788
0.213065
0.008877
0.00807
0.007263
0.090783
0.055969
0.040636
0.03372
0.029454
0.02565
0
0.004778
0.312693
29,537
905
89
32.637569
0.84981
0.317026
0
0.161572
0
0
0.081838
0.013387
0
0
0
0
0
1
0.10917
false
0.002183
0.052402
0.004367
0.303493
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
865ad1612ffd549ba548de0cbe66876028b4a804
321
py
Python
pycoin/symbols/doge.py
jaschadub/pycoin
1e8d0d9fe20ce0347b97847bb529cd1bd84c7442
[ "MIT" ]
1
2018-01-17T05:08:32.000Z
2018-01-17T05:08:32.000Z
pycoin/symbols/doge.py
impactog/pycoin
3db6f82afa3054d8d07caca4909e1aed3de2fceb
[ "MIT" ]
null
null
null
pycoin/symbols/doge.py
impactog/pycoin
3db6f82afa3054d8d07caca4909e1aed3de2fceb
[ "MIT" ]
1
2020-03-10T12:21:51.000Z
2020-03-10T12:21:51.000Z
from pycoin.networks.bitcoinish import create_bitcoinish_network network = create_bitcoinish_network( symbol="DOGE", network_name="Dogecoin", subnet_name="mainnet", wif_prefix_hex="9e", address_prefix_hex="1e", pay_to_script_prefix_hex="16", bip32_prv_prefix_hex="02fd3955", bip32_pub_prefix_hex="02fd3929")...
45.857143
80
0.800623
44
321
5.386364
0.636364
0.189873
0.194093
0
0
0
0
0
0
0
0
0.068259
0.087227
321
6
81
53.5
0.740614
0
0
0
0
0
0.127726
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
865af347d7d59f9bd67eb9dbfa07a221fbd308e5
554
py
Python
Pset/hamming_numbers.py
MarkHershey/python-learning
8d6c87941af6db5878b59483526ed402f4b319b3
[ "MIT" ]
9
2020-06-05T17:01:23.000Z
2022-03-16T19:55:50.000Z
Pset/hamming_numbers.py
MarkHershey/python-learning
8d6c87941af6db5878b59483526ed402f4b319b3
[ "MIT" ]
null
null
null
Pset/hamming_numbers.py
MarkHershey/python-learning
8d6c87941af6db5878b59483526ed402f4b319b3
[ "MIT" ]
null
null
null
def hamming(n): """Returns the nth hamming number""" hamming = {1} x = 1 while len(hamming) <= n * 3.5: new_hamming = {1} for i in hamming: new_hamming.add(i * 2) new_hamming.add(i * 3) new_hamming.add(i * 5) # merge new number into hamming set...
24.086957
44
0.592058
77
554
4.194805
0.454545
0.154799
0.120743
0.130031
0
0
0
0
0
0
0
0.115385
0.296029
554
22
45
25.181818
0.712821
0.290614
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.153846
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
865b44ebd78e20ddd28ec532ea20204eaa6a07dc
848
py
Python
examples/run_merger.py
needlehaystack/needlestack
e00529a2a7c2d85059936a85f54dfb55e515b6ef
[ "Apache-2.0" ]
3
2019-10-03T22:15:21.000Z
2022-02-08T09:05:41.000Z
examples/run_merger.py
cungtv/needlestack
e00529a2a7c2d85059936a85f54dfb55e515b6ef
[ "Apache-2.0" ]
1
2021-04-30T21:08:47.000Z
2021-04-30T21:08:47.000Z
examples/run_merger.py
cungtv/needlestack
e00529a2a7c2d85059936a85f54dfb55e515b6ef
[ "Apache-2.0" ]
2
2019-08-02T19:13:09.000Z
2019-10-25T01:47:17.000Z
import logging from grpc_health.v1 import health_pb2, health_pb2_grpc from grpc_health.v1.health import HealthServicer from needlestack.apis import servicers_pb2_grpc from needlestack.servicers import factory from needlestack.servicers.merger import MergerServicer from examples import configs logging.getLogger("kaz...
25.69697
92
0.792453
101
848
6.356436
0.376238
0.056075
0.043614
0.049844
0
0
0
0
0
0
0
0.010811
0.127358
848
32
93
26.5
0.856757
0
0
0
0
0
0.027123
0
0
0
0
0
0
1
0.05
false
0
0.35
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
865b48e5b6d60c2c5b81fb4b0a827e80f5502ece
4,482
py
Python
engine_wrapper.py
lidevelopers/Lishogi-Bot-1
5e669870930fe497e323324f36ccdbf5b04d26d3
[ "MIT" ]
null
null
null
engine_wrapper.py
lidevelopers/Lishogi-Bot-1
5e669870930fe497e323324f36ccdbf5b04d26d3
[ "MIT" ]
2
2021-06-28T11:09:19.000Z
2021-06-30T16:59:13.000Z
engine_wrapper.py
lidevelopers/Lishogi-Bot-1
5e669870930fe497e323324f36ccdbf5b04d26d3
[ "MIT" ]
9
2021-06-28T08:06:08.000Z
2021-10-06T05:01:57.000Z
import os import shogi import backoff import subprocess from util import * import logging logger = logging.getLogger(__name__) import engine_ctrl @backoff.on_exception(backoff.expo, BaseException, max_time=120) def create_engine(config, board): cfg = config["engine"] engine_path = os.path.realpath(os.path.j...
29.486842
109
0.566934
528
4,482
4.660985
0.206439
0.056887
0.026412
0.026006
0.422999
0.369768
0.323446
0.222267
0.201138
0.168631
0
0.00197
0.320616
4,482
151
110
29.682119
0.80624
0
0
0.471074
0
0
0.041499
0
0
0
0
0
0
1
0.173554
false
0.07438
0.057851
0.008264
0.297521
0.024793
0
0
0
null
0
0
0
0
0
0
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
865bbf72a785e72699020e27186c8a54194bf255
1,615
py
Python
examples/python/test_as2.py
sloriot/cgal-swig-bindings
c9c5afdf64fa0c52f9c3785173159167ab2b3163
[ "BSL-1.0" ]
null
null
null
examples/python/test_as2.py
sloriot/cgal-swig-bindings
c9c5afdf64fa0c52f9c3785173159167ab2b3163
[ "BSL-1.0" ]
null
null
null
examples/python/test_as2.py
sloriot/cgal-swig-bindings
c9c5afdf64fa0c52f9c3785173159167ab2b3163
[ "BSL-1.0" ]
null
null
null
from CGAL.CGAL_Kernel import Point_2 from CGAL.CGAL_Kernel import Weighted_point_2 from CGAL.CGAL_Alpha_shape_2 import Alpha_shape_2 from CGAL.CGAL_Alpha_shape_2 import Weighted_alpha_shape_2 from CGAL.CGAL_Alpha_shape_2 import Weighted_alpha_shape_2_Face_handle from CGAL.CGAL_Alpha_shape_2 import GENERAL, EXTERIOR, SI...
26.47541
82
0.740557
293
1,615
3.764505
0.187713
0.108794
0.149592
0.107888
0.595648
0.453309
0.453309
0.453309
0.446963
0.359021
0
0.059626
0.138081
1,615
60
83
26.916667
0.732759
0
0
0
0
0
0.019195
0
0
0
0
0
0
1
0
false
0
0.191489
0
0.191489
0.191489
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
865c3c1cc62a44e9c288bd3980673e8cb1a26d5e
93
py
Python
connections/mode.py
pavithra-mahamani/TAF
ff854adcc6ca3e50d9dc64e7756ca690251128d3
[ "Apache-2.0" ]
null
null
null
connections/mode.py
pavithra-mahamani/TAF
ff854adcc6ca3e50d9dc64e7756ca690251128d3
[ "Apache-2.0" ]
null
null
null
connections/mode.py
pavithra-mahamani/TAF
ff854adcc6ca3e50d9dc64e7756ca690251128d3
[ "Apache-2.0" ]
null
null
null
''' Created on Jan 18, 2018 @author: riteshagarwal ''' java = False rest = False cli = False
11.625
23
0.677419
13
93
4.846154
0.846154
0
0
0
0
0
0
0
0
0
0
0.08
0.193548
93
8
24
11.625
0.76
0.505376
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
865e9017c35669feb5f2b679820ab813bc9d8b73
533
py
Python
scene_action2.py
encela95dus/ios_pythonista_examples
e136cdcb05126f0f9b9f6fb6365870876b419619
[ "MIT" ]
36
2019-01-12T04:17:49.000Z
2022-03-31T05:33:29.000Z
scene_action2.py
Backup-eric645/ios_pythonista_examples
e136cdcb05126f0f9b9f6fb6365870876b419619
[ "MIT" ]
null
null
null
scene_action2.py
Backup-eric645/ios_pythonista_examples
e136cdcb05126f0f9b9f6fb6365870876b419619
[ "MIT" ]
15
2018-12-30T21:18:05.000Z
2022-01-30T13:17:07.000Z
import scene class MyScene(scene.Scene): def setup(self): self.label_node = scene.LabelNode('A', position=(100,400), parent=self) self.start_flag = False def update(self): if self.start_flag: x,y = self.label_node.position if x < 34...
25.380952
52
0.525328
64
533
4.25
0.453125
0.132353
0.191176
0.132353
0.154412
0
0
0
0
0
0
0.029851
0.371482
533
20
53
26.65
0.78209
0
0
0.125
0
0
0.001876
0
0
0
0
0
0
1
0.1875
false
0
0.0625
0
0.3125
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
865e9adf437f79d36a8db146c26aeeb0ca4e34fa
672
py
Python
bot/commands/disconnect.py
aq1/vkPostman
db6b8d387d484ff53d12dcaf77ba3dcaa6da3822
[ "MIT" ]
1
2020-09-14T04:47:31.000Z
2020-09-14T04:47:31.000Z
bot/commands/disconnect.py
aq1/vkPostman
db6b8d387d484ff53d12dcaf77ba3dcaa6da3822
[ "MIT" ]
null
null
null
bot/commands/disconnect.py
aq1/vkPostman
db6b8d387d484ff53d12dcaf77ba3dcaa6da3822
[ "MIT" ]
null
null
null
from bot.commands import BaseCommand import mongo class DisconnectCommand(BaseCommand): _COMMAND = 'disconnect' _DESCRIPTION = 'Close currently active chat.' _SUCCESS_MESSAGE = 'Disconnected from chat' def _callback(self, user, _bot, update, **kwargs): return self._call(user, _bot, update, ...
25.846154
66
0.633929
79
672
5.151899
0.544304
0.051597
0.095823
0.140049
0.113022
0
0
0
0
0
0
0
0.272321
672
25
67
26.88
0.832311
0
0
0
0
0
0.147321
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0.055556
0.611111
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
865f59e775e337c6b42c37791b8b1b83a1c4fa34
2,522
py
Python
pysh/bash_vm/shell_command.py
JordanKoeller/Pysch
6775db00e6d551328ce49a50a5987223a9e9a9c3
[ "MIT" ]
null
null
null
pysh/bash_vm/shell_command.py
JordanKoeller/Pysch
6775db00e6d551328ce49a50a5987223a9e9a9c3
[ "MIT" ]
null
null
null
pysh/bash_vm/shell_command.py
JordanKoeller/Pysch
6775db00e6d551328ce49a50a5987223a9e9a9c3
[ "MIT" ]
null
null
null
from __future__ import annotations import subprocess import os from typing import List, Dict, Iterator, Optional, Tuple class ShellCommand: def __init__(self, cmd: str): self.run_args = [ "bash", "-c", f'{cmd}' ] # self.run_args: List[str] = [executable, *args] def exe...
28.022222
81
0.527756
257
2,522
4.984436
0.307393
0.049961
0.025761
0.037471
0.090554
0.090554
0.090554
0.090554
0.090554
0
0
0.001261
0.371134
2,522
89
82
28.337079
0.806431
0.018239
0
0.134328
0
0
0.056589
0
0
0
0
0
0
1
0.179104
false
0
0.059701
0.119403
0.41791
0.014925
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
865fa048751d6ad0bc743581cad5200b3338324d
2,192
py
Python
indico/web/forms/fields/protection.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
1
2018-11-12T21:29:26.000Z
2018-11-12T21:29:26.000Z
indico/web/forms/fields/protection.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
9
2020-09-08T09:25:57.000Z
2022-01-13T02:59:05.000Z
indico/web/forms/fields/protection.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
3
2020-07-20T09:09:44.000Z
2020-10-19T00:29:49.000Z
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import absolute_import, unicode_literals from flask import render_template from markupsaf...
45.666667
111
0.734945
268
2,192
5.701493
0.373134
0.107984
0.078534
0.031414
0.175393
0.146597
0.057592
0
0
0
0
0.005571
0.181113
2,192
47
112
46.638298
0.845682
0.091241
0
0.058824
0
0
0.091184
0.053401
0
0
0
0
0
1
0.058824
false
0
0.235294
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
865fae0cf0882393868b033ff9b36122ab7504f2
76,601
py
Python
src/saml2/saml.py
masterapps-au/pysaml2
97ad6c066c93cb31a3c3b9d504877c02e93ca9a9
[ "Apache-2.0" ]
null
null
null
src/saml2/saml.py
masterapps-au/pysaml2
97ad6c066c93cb31a3c3b9d504877c02e93ca9a9
[ "Apache-2.0" ]
null
null
null
src/saml2/saml.py
masterapps-au/pysaml2
97ad6c066c93cb31a3c3b9d504877c02e93ca9a9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Generated Mon May 2 14:23:33 2011 by parse_xsd.py version 0.4. # # A summary of available specifications can be found at: # https://wiki.oasis-open.org/security/FrontPage # # saml core specifications to be found at: # if any question arise please query the following pdf. # http://docs.oasis-...
38.185942
98
0.6752
8,490
76,601
5.754888
0.061602
0.029841
0.029043
0.038683
0.584478
0.513764
0.485479
0.472994
0.458196
0.411449
0
0.008473
0.223483
76,601
2,005
99
38.204988
0.812935
0.104711
0
0.402315
1
0.000681
0.141912
0.066663
0
0
0
0
0.078965
1
0.060585
false
0.005446
0.008169
0.03744
0.394826
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
866017a177effed366d9a7810ad090cd23a963da
1,163
py
Python
ROS_packages/custom_ROS_envs/turtlebot2_maze_env/src/turtlebot2_maze_random.py
PierreExeter/custom_gym_envs
2b6a1c16a4198c8d9fa64f10fe09a041826ac81a
[ "MIT" ]
1
2020-09-25T01:51:58.000Z
2020-09-25T01:51:58.000Z
ROS_packages/custom_ROS_envs/turtlebot2_maze_env/src/turtlebot2_maze_random.py
PierreExeter/custom_gym_envs
2b6a1c16a4198c8d9fa64f10fe09a041826ac81a
[ "MIT" ]
null
null
null
ROS_packages/custom_ROS_envs/turtlebot2_maze_env/src/turtlebot2_maze_random.py
PierreExeter/custom_gym_envs
2b6a1c16a4198c8d9fa64f10fe09a041826ac81a
[ "MIT" ]
1
2021-07-16T02:55:59.000Z
2021-07-16T02:55:59.000Z
#!/usr/bin/env python import gym import rospy from openai_ros.openai_ros_common import StartOpenAI_ROS_Environment # initialise environment rospy.init_node('turtlebot2_maze_random', anonymous=True, log_level=rospy.WARN) task_and_robot_environment_name = rospy.get_param('/turtlebot2/task_and_robot_environment_name') e...
27.690476
96
0.687016
149
1,163
5.154362
0.395973
0.071615
0.072917
0.089844
0.105469
0
0
0
0
0
0
0.008466
0.187446
1,163
42
97
27.690476
0.804233
0.085985
0
0
0
0
0.188679
0.061321
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.481481
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
866094a72b6fdcd5bf322c232acd28e290c2c5aa
3,096
py
Python
solver.py
jacobchh/Sudoku-Solver
946a954e8eda234760872c55fcd2354dc0a8a4f9
[ "Apache-2.0" ]
1
2020-08-04T05:11:05.000Z
2020-08-04T05:11:05.000Z
solver.py
jacobchh/Sudoku-Solver
946a954e8eda234760872c55fcd2354dc0a8a4f9
[ "Apache-2.0" ]
null
null
null
solver.py
jacobchh/Sudoku-Solver
946a954e8eda234760872c55fcd2354dc0a8a4f9
[ "Apache-2.0" ]
null
null
null
import numpy as np board = np.zeros(shape=(9, 9)) count = 0 def solve(): global count count += 1 if count % 1000 == 0: print('\rCurrent number of computations made:', count, end='') freePos = find() if freePos is None: return True i = freePos[0] j = freePos[1] for w in...
23.633588
105
0.440891
406
3,096
3.342365
0.238916
0.022108
0.056743
0.029477
0.344878
0.32056
0.32056
0.32056
0.296242
0.296242
0
0.029963
0.396318
3,096
130
106
23.815385
0.696094
0.046835
0
0.514851
0
0
0.12466
0.013247
0
0
0
0
0
1
0.069307
false
0
0.009901
0
0.178218
0.19802
0
0
0
null
0
0
0
0
0
0
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
86609708c6740fc5dcff69f746034012abb3d227
1,112
py
Python
01_basics/01_building_expressions/02_vector_mat_soln.py
johny-c/theano_exercises
7fd43315bf7c475a6f218091316c0bd34e0688c4
[ "BSD-3-Clause" ]
711
2015-01-10T05:39:21.000Z
2022-03-15T23:45:45.000Z
01_basics/01_building_expressions/02_vector_mat_soln.py
rsingh2083/theano_exercises
7fd43315bf7c475a6f218091316c0bd34e0688c4
[ "BSD-3-Clause" ]
2
2016-06-13T06:46:58.000Z
2017-04-14T08:21:20.000Z
01_basics/01_building_expressions/02_vector_mat_soln.py
rsingh2083/theano_exercises
7fd43315bf7c475a6f218091316c0bd34e0688c4
[ "BSD-3-Clause" ]
371
2015-01-16T01:31:41.000Z
2022-03-15T11:37:30.000Z
import numpy as np from theano import function import theano.tensor as T def make_vector(): """ Returns a new Theano vector. """ return T.vector() def make_matrix(): """ Returns a new Theano matrix. """ return T.matrix() def elemwise_mul(a, b): """ a: A theano matrix b: ...
19.508772
48
0.607014
176
1,112
3.664773
0.289773
0.018605
0.023256
0.052713
0.20155
0.20155
0.083721
0.083721
0.083721
0.083721
0
0.008589
0.267086
1,112
56
49
19.857143
0.782822
0
0
0
0
0
0.019656
0
0
0
0
0
0.037037
0
null
null
0
0.111111
null
null
0.037037
0
0
0
null
0
0
0
0
0
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
8660a9342ead6210c470087662e4e506c3d6349b
2,863
py
Python
nova/api/openstack/compute/used_limits.py
bopopescu/nova-8
768d7cc0a632e1a880f00c5840c1ec8051e161be
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/used_limits.py
bopopescu/nova-8
768d7cc0a632e1a880f00c5840c1ec8051e161be
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/used_limits.py
bopopescu/nova-8
768d7cc0a632e1a880f00c5840c1ec8051e161be
[ "Apache-2.0" ]
1
2020-07-22T21:09:15.000Z
2020-07-22T21:09:15.000Z
# Copyright 2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
35.7875
78
0.625218
321
2,863
5.395639
0.423676
0.034642
0.025404
0.046189
0.161663
0.116628
0.079677
0.079677
0
0
0
0.00441
0.287111
2,863
79
79
36.240506
0.844194
0.204331
0
0.181818
0
0
0.151502
0.02871
0
0
0
0
0
1
0.054545
false
0
0.109091
0
0.254545
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
86612e58c1d3c9004b21a40197263a8e6dc182a5
7,362
py
Python
tf_agents/bandits/agents/examples/v2/trainer.py
howards11/agents
8d5627d9b9c3680468a63564c25a4d82fa1befb0
[ "Apache-2.0" ]
3,175
2017-09-08T18:28:32.000Z
2022-03-31T01:32:22.000Z
tf_agents/bandits/agents/examples/v2/trainer.py
MFosset/agents
756f7bdf493986c25eb585438134f1dbb8045b1b
[ "Apache-2.0" ]
703
2017-09-18T05:51:57.000Z
2022-03-31T17:37:50.000Z
tf_agents/bandits/agents/examples/v2/trainer.py
MFosset/agents
756f7bdf493986c25eb585438134f1dbb8045b1b
[ "Apache-2.0" ]
844
2017-09-08T23:28:57.000Z
2022-03-30T09:29:32.000Z
# coding=utf-8 # Copyright 2020 The TF-Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
37.948454
89
0.740424
966
7,362
5.380952
0.291925
0.027703
0.01616
0.034629
0.175644
0.103117
0.103117
0.078107
0.078107
0.060793
0
0.004341
0.186362
7,362
193
90
38.145078
0.863439
0.338631
0
0.035088
0
0
0.030659
0
0
0
0
0.005181
0
1
0.061404
false
0.008772
0.096491
0
0.192982
0.008772
0
0
0
null
0
0
0
0
0
0
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
86614dcad65e20388a5967a40083bdb556db6db0
2,469
py
Python
rally_openstack/cfg/manila.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
null
null
null
rally_openstack/cfg/manila.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
null
null
null
rally_openstack/cfg/manila.py
RSE-Cambridge/rally-openstack
32bbc091bbce1db625a2fc22da28b32718befa13
[ "Apache-2.0" ]
1
2018-12-10T12:31:27.000Z
2018-12-10T12:31:27.000Z
# Copyright 2013: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
35.271429
78
0.651681
288
2,469
5.444444
0.354167
0.070153
0.097577
0.143495
0.638393
0.579719
0.579719
0.524235
0.446429
0.432398
0
0.018569
0.258404
2,469
69
79
35.782609
0.837794
0.243013
0
0.660377
0
0
0.443366
0.149407
0
0
0
0
0
1
0
false
0
0.018868
0
0.018868
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
86624e00bb7b419aff83121a582546742f805433
571
py
Python
app/backend/app/crud/crud_register_invoice.py
matayoos/invoice-scrapper
d36c944c10714e61d304693d0fce28769d2a746a
[ "MIT" ]
null
null
null
app/backend/app/crud/crud_register_invoice.py
matayoos/invoice-scrapper
d36c944c10714e61d304693d0fce28769d2a746a
[ "MIT" ]
null
null
null
app/backend/app/crud/crud_register_invoice.py
matayoos/invoice-scrapper
d36c944c10714e61d304693d0fce28769d2a746a
[ "MIT" ]
null
null
null
from sqlalchemy.orm.session import Session from app import crud from .utils import insert, get_content def register_invoice(db: Session, url: str): content = get_content.get_invoice_info(url) grocery_store_id = insert.insert_grocery_store_info( db, obj_in=content["grocery_store"] ) invoice_...
27.190476
83
0.749562
83
571
4.807229
0.313253
0.180451
0.140351
0.100251
0.220551
0
0
0
0
0
0
0
0.161121
571
20
84
28.55
0.832985
0
0
0
0
0
0.043783
0
0
0
0
0
0
1
0.076923
false
0
0.230769
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
0
0
0
0
0
0
0
0
0
0
1
0
866300a7100ec622abdb52b3c5fac82349d29555
60
py
Python
examples/web/handlers.py
nicoddemus/aioworkers
4ab85064844dc28141833d1348989d8c891f3d7d
[ "Apache-2.0" ]
45
2017-04-26T23:50:30.000Z
2021-12-29T03:21:06.000Z
examples/web/handlers.py
nicoddemus/aioworkers
4ab85064844dc28141833d1348989d8c891f3d7d
[ "Apache-2.0" ]
63
2017-08-01T10:35:45.000Z
2022-03-01T18:07:49.000Z
examples/web/handlers.py
nicoddemus/aioworkers
4ab85064844dc28141833d1348989d8c891f3d7d
[ "Apache-2.0" ]
6
2017-10-19T08:21:23.000Z
2021-12-29T03:25:32.000Z
async def handler(context): return await context.data
12
29
0.733333
8
60
5.5
0.875
0
0
0
0
0
0
0
0
0
0
0
0.2
60
4
30
15
0.916667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
8666c057450744d94668536ee8580d907346f31a
28,602
py
Python
tools/genapixml.py
garronej/linphone
f61a337f5363b991d6e866a6aa7d303658c04073
[ "BSD-2-Clause" ]
null
null
null
tools/genapixml.py
garronej/linphone
f61a337f5363b991d6e866a6aa7d303658c04073
[ "BSD-2-Clause" ]
null
null
null
tools/genapixml.py
garronej/linphone
f61a337f5363b991d6e866a6aa7d303658c04073
[ "BSD-2-Clause" ]
1
2021-03-17T10:04:06.000Z
2021-03-17T10:04:06.000Z
#!/usr/bin/python # Copyright (C) 2014 Belledonne Communications SARL # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version....
35.977358
149
0.706559
3,369
28,602
5.897596
0.133868
0.017313
0.014042
0.008153
0.373144
0.321204
0.278424
0.232926
0.213196
0.208868
0
0.003129
0.161912
28,602
794
150
36.02267
0.825748
0.035767
0
0.267806
0
0.004274
0.120401
0.045214
0
0
0
0
0
1
0.071225
false
0.001425
0.011396
0.005698
0.135328
0.029915
0
0
0
null
0
0
0
0
0
0
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
866731500bf9de7d963d33a61b133cfd0fb18eda
1,727
py
Python
examples/src/python/join_streamlet_topology.py
aaronstjohn/incubator-heron
bdc35f8d23296472983956a477ea38da54d16b2b
[ "Apache-2.0" ]
2
2016-07-04T07:10:31.000Z
2018-03-28T16:59:02.000Z
examples/src/python/join_streamlet_topology.py
aaronstjohn/incubator-heron
bdc35f8d23296472983956a477ea38da54d16b2b
[ "Apache-2.0" ]
1
2019-05-08T22:30:16.000Z
2019-05-08T22:30:16.000Z
examples/src/python/join_streamlet_topology.py
aaronstjohn/incubator-heron
bdc35f8d23296472983956a477ea38da54d16b2b
[ "Apache-2.0" ]
1
2017-06-05T17:55:45.000Z
2017-06-05T17:55:45.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- # 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...
35.979167
93
0.735379
251
1,727
4.988048
0.505976
0.047923
0.063898
0.025559
0.049521
0
0
0
0
0
0
0.013774
0.159236
1,727
47
94
36.744681
0.848485
0.536769
0
0
0
0
0.07732
0
0
0
0
0
0
1
0
false
0
0.352941
0
0.352941
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
86686cf65534bfae5dd8d13670449f7c68cf0bb3
2,226
py
Python
yolk/test/utils.py
yolkdata/yolk-python
978d98cbe637c1309a1be766a40bb874e996c61d
[ "MIT", "Unlicense" ]
null
null
null
yolk/test/utils.py
yolkdata/yolk-python
978d98cbe637c1309a1be766a40bb874e996c61d
[ "MIT", "Unlicense" ]
null
null
null
yolk/test/utils.py
yolkdata/yolk-python
978d98cbe637c1309a1be766a40bb874e996c61d
[ "MIT", "Unlicense" ]
null
null
null
from datetime import date, datetime, timedelta from decimal import Decimal import unittest from dateutil.tz import tzutc import six from yolk import utils class TestUtils(unittest.TestCase): def test_timezone_utils(self): now = datetime.now() utcnow = datetime.now(tz=tzutc()) self.asser...
28.177215
75
0.574573
245
2,226
5.081633
0.37551
0.084337
0.041767
0.036948
0.15261
0.15261
0.104418
0.104418
0.104418
0.104418
0
0.023718
0.299191
2,226
78
76
28.538462
0.774359
0
0
0.032787
0
0
0.093441
0
0
0
0
0
0.163934
1
0.098361
false
0
0.098361
0
0.213115
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
866878f76f3d3d6bb3a8d89014200d8e8b85019b
2,797
py
Python
09Scan/matrix.py
kw1122/MKS66
25986e79077692afbc085920af1fef276c22d967
[ "MIT" ]
null
null
null
09Scan/matrix.py
kw1122/MKS66
25986e79077692afbc085920af1fef276c22d967
[ "MIT" ]
null
null
null
09Scan/matrix.py
kw1122/MKS66
25986e79077692afbc085920af1fef276c22d967
[ "MIT" ]
null
null
null
""" A matrix will be an N sized list of 4 element lists. Each individual list will represent an [x, y, z, 1] point. For multiplication purposes, consider the lists like so: x0 x1 xn y0 y1 yn z0 z1 ... zn 1 1 1 """ import math def make_bezier(): return [ [-1, 3, -3, 1], ...
22.739837
59
0.464784
442
2,797
2.895928
0.244344
0.05625
0.05625
0.060938
0.355469
0.317969
0.235938
0.21875
0.217188
0.185938
0
0.06843
0.378262
2,797
122
60
22.92623
0.667625
0.167322
0
0.315217
0
0
0.00456
0
0
0
0
0
0
1
0.130435
false
0
0.01087
0.021739
0.23913
0.021739
0
0
0
null
0
0
0
0
0
0
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
86695a9d77f6427fc910ad0a37e4e6d95359ee20
1,918
py
Python
tests/test.py
Nekmo/spice
717a2cc24ad969e1caec2aabeffc30a796c6ec91
[ "MIT" ]
null
null
null
tests/test.py
Nekmo/spice
717a2cc24ad969e1caec2aabeffc30a796c6ec91
[ "MIT" ]
null
null
null
tests/test.py
Nekmo/spice
717a2cc24ad969e1caec2aabeffc30a796c6ec91
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import requests import sys, os from time import sleep sys.path.insert(0, '/home/may/Dropbox/Programming/spice/') import spice_api as spice def main(): creds = spice.load_auth_from_file('auth') print(creds) results = spice.search('Re:Zero Kara Hajimeru Isekai Seikatsu', spic...
34.25
101
0.717414
279
1,918
4.65233
0.333333
0.124807
0.151002
0.065485
0.200308
0.132512
0.095532
0
0
0
0
0.020258
0.150678
1,918
55
102
34.872727
0.77655
0
0
0
0
0
0.114181
0.01877
0
0
0
0
0
1
0.020833
false
0
0.104167
0
0.125
0.479167
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
866961c7ba40ad3796162e785a123e4decd9a074
6,648
py
Python
backend/project/settings.py
prog-serhii/MyMoney_v2
8d2aa3ec0497c7afd1a25bb9266bfc405e9c9397
[ "MIT" ]
1
2020-11-09T10:32:05.000Z
2020-11-09T10:32:05.000Z
backend/project/settings.py
prog-serhii/MyMoney_v2
8d2aa3ec0497c7afd1a25bb9266bfc405e9c9397
[ "MIT" ]
null
null
null
backend/project/settings.py
prog-serhii/MyMoney_v2
8d2aa3ec0497c7afd1a25bb9266bfc405e9c9397
[ "MIT" ]
null
null
null
import os from pathlib import Path from datetime import timedelta from celery.schedules import crontab from django.utils.translation import gettext_lazy as _ # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = os.environ.get( 'SECRET_...
29.546667
91
0.626203
677
6,648
5.958641
0.401773
0.048339
0.032722
0.02231
0.104115
0.095687
0.057015
0.042638
0.042638
0.022806
0
0.01362
0.182762
6,648
224
92
29.678571
0.728879
0.246089
0
0.013889
0
0
0.519572
0.402341
0
0
0
0
0
1
0
false
0.0625
0.034722
0
0.034722
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
866977a21872a2e8438dbbd5f5b289547da5a50c
641
py
Python
app/flaskApp/config.py
jeanmarc2019/PTHacks2019-Planning
bc0c71588187fde8498494b3e74728c09de56f18
[ "MIT" ]
null
null
null
app/flaskApp/config.py
jeanmarc2019/PTHacks2019-Planning
bc0c71588187fde8498494b3e74728c09de56f18
[ "MIT" ]
null
null
null
app/flaskApp/config.py
jeanmarc2019/PTHacks2019-Planning
bc0c71588187fde8498494b3e74728c09de56f18
[ "MIT" ]
null
null
null
import configparser import os dir_path = os.path.dirname(os.path.realpath(__file__)) dir_path += '/cfg.ini' class Configuration(object): def __init__(self,debug=False): section = "Flask-debug" if debug else "Flask" cfg = configparser.ConfigParser() cfg.read(dir_path if debug e...
29.136364
73
0.669267
84
641
4.904762
0.440476
0.050971
0.053398
0
0
0
0
0
0
0
0
0
0.199688
641
21
74
30.52381
0.803119
0
0
0
0
0
0.148206
0.046802
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.285714
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
866b10a749a0729a15fdb56c60d4ea92a50f3344
3,270
py
Python
neutron/db/models/l3ha.py
cleo4zheng/neutron
6d65318308edfd984bdd0ff1ac7fef9486a040f7
[ "Apache-2.0" ]
4
2018-08-05T00:43:03.000Z
2021-10-13T00:45:45.000Z
neutron/db/models/l3ha.py
cleo4zheng/neutron
6d65318308edfd984bdd0ff1ac7fef9486a040f7
[ "Apache-2.0" ]
8
2018-06-14T14:50:16.000Z
2018-11-13T16:30:42.000Z
neutron/db/models/l3ha.py
cleo4zheng/neutron
6d65318308edfd984bdd0ff1ac7fef9486a040f7
[ "Apache-2.0" ]
7
2018-06-12T18:57:04.000Z
2019-05-09T15:42:30.000Z
# Copyright (C) 2014 eNovance SAS <licensing@enovance.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
37.159091
76
0.644954
413
3,270
4.900726
0.360775
0.047431
0.034585
0.035573
0.242095
0.204545
0.1917
0.159091
0.089921
0.089921
0
0.014737
0.2737
3,270
87
77
37.586207
0.837474
0.296942
0
0.214286
0
0
0.10892
0.048857
0
0
0
0
0
1
0
false
0
0.142857
0
0.547619
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
866b4e64606eb0b8b047d742a5c885f477addc0c
1,551
py
Python
authentication/migrate.py
anae09/electionWebService
756968e5cd6db1422ae5fe8445a9e92a25953073
[ "MIT" ]
null
null
null
authentication/migrate.py
anae09/electionWebService
756968e5cd6db1422ae5fe8445a9e92a25953073
[ "MIT" ]
null
null
null
authentication/migrate.py
anae09/electionWebService
756968e5cd6db1422ae5fe8445a9e92a25953073
[ "MIT" ]
null
null
null
from flask import Flask; from configuration import Configuration; from flask_migrate import Migrate, init, migrate, upgrade; from models import database, Role, UserRole, User; from sqlalchemy_utils import database_exists, create_database; application = Flask(__name__); application.config.from_object(Configuration); m...
28.2
78
0.595745
144
1,551
6.298611
0.395833
0.115766
0.079383
0.077178
0.187431
0.103638
0.103638
0
0
0
0
0.012975
0.30432
1,551
54
79
28.722222
0.827618
0
0
0.170732
0
0
0.078659
0.029658
0
0
0
0
0
1
0
false
0.02439
0.121951
0
0.121951
0.02439
0
0
0
null
0
0
0
0
0
0
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
866b8b6db3282415cf332ea707795a1897c51203
4,066
py
Python
output/ensemble_analysis.py
gitter-lab/pria-ams-enamine
b37bc7edf3c21af6653267ecd4bb9fd232eeb575
[ "MIT" ]
1
2021-09-28T23:10:05.000Z
2021-09-28T23:10:05.000Z
output/ensemble_analysis.py
gitter-lab/pria-ams-enamine
b37bc7edf3c21af6653267ecd4bb9fd232eeb575
[ "MIT" ]
null
null
null
output/ensemble_analysis.py
gitter-lab/pria-ams-enamine
b37bc7edf3c21af6653267ecd4bb9fd232eeb575
[ "MIT" ]
null
null
null
from __future__ import print_function import os import json import numpy as np def extract(file_path): if not os.path.isfile(file_path): return -1, -1, -1 with open(file_path, 'r') as f: lines = f.readlines() test_roc, test_precision, test_NEF = -1, -1, -1 for line ...
42.354167
171
0.58485
518
4,066
4.303089
0.34556
0.037685
0.080754
0.051144
0.445491
0.403769
0.349933
0.324809
0.324809
0.248542
0
0.107475
0.286031
4,066
96
172
42.354167
0.660351
0
0
0.25641
0
0
0.135448
0.074018
0
0
0
0
0
1
0.012821
false
0
0.051282
0
0.089744
0.115385
0
0
0
null
0
0
0
0
0
0
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