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
826f63c5c39c287a99f63c5f1236dbd56acc410a
20,198
py
Python
capirca/lib/gcp_hf.py
PhillSimonds/capirca
26c5f4f7d3bfc29841f5e6d3cdf07be9923c2c70
[ "Apache-2.0" ]
null
null
null
capirca/lib/gcp_hf.py
PhillSimonds/capirca
26c5f4f7d3bfc29841f5e6d3cdf07be9923c2c70
[ "Apache-2.0" ]
null
null
null
capirca/lib/gcp_hf.py
PhillSimonds/capirca
26c5f4f7d3bfc29841f5e6d3cdf07be9923c2c70
[ "Apache-2.0" ]
1
2022-02-14T03:22:18.000Z
2022-02-14T03:22:18.000Z
"""Google Cloud Hierarchical Firewall Generator. Hierarchical Firewalls (HF) are represented in a SecurityPolicy GCP resouce. """ import copy import re from typing import Dict, Any from absl import logging from capirca.lib import gcp from capirca.lib import nacaddr class ExceededCostError(gcp.Error): """Raised ...
36.392793
105
0.645608
2,543
20,198
4.954778
0.183641
0.027302
0.009524
0.010952
0.304841
0.245079
0.221746
0.198095
0.166746
0.154286
0
0.00715
0.265967
20,198
554
106
36.458484
0.842709
0.23438
0
0.244565
0
0
0.185334
0.005055
0
0
0
0
0
1
0.019022
false
0
0.016304
0.002717
0.105978
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
827202efc4734328b2680b6cfa71b26432695ccb
559
py
Python
hackerrank/algorithms/time_conversion.py
ontana/mystudy
8158550da3cdbaaa81660be73f2dfad869aae466
[ "MIT" ]
null
null
null
hackerrank/algorithms/time_conversion.py
ontana/mystudy
8158550da3cdbaaa81660be73f2dfad869aae466
[ "MIT" ]
null
null
null
hackerrank/algorithms/time_conversion.py
ontana/mystudy
8158550da3cdbaaa81660be73f2dfad869aae466
[ "MIT" ]
null
null
null
#!/bin/python3 # https://www.hackerrank.com/challenges/time-conversion import sys def timeConversion(s): # Complete this function ar = s.split(':') tail = ar[-1][-2:].lower() addition_hours = 0 if (tail == 'pm' and ar[0] != '12') or (tail == 'am' and ar[0] == '12'): addition_hours ...
26.619048
77
0.563506
78
559
3.935897
0.551282
0.114007
0.039088
0.052117
0
0
0
0
0
0
0
0.045131
0.246869
559
21
78
26.619048
0.684086
0.161002
0
0
0
0
0.033557
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.2
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8272095e27dabd69813e44dde70f50afb8a04d0c
5,296
py
Python
supplychainpy/demand/economic_order_quantity.py
supplybi/supplychainpy
821ea21adb684abba7f9a7b26eaf218f44b45ced
[ "BSD-3-Clause" ]
5
2018-09-07T09:00:31.000Z
2022-01-02T05:20:46.000Z
supplychainpy/demand/economic_order_quantity.py
supplybi/supplychainpy
821ea21adb684abba7f9a7b26eaf218f44b45ced
[ "BSD-3-Clause" ]
null
null
null
supplychainpy/demand/economic_order_quantity.py
supplybi/supplychainpy
821ea21adb684abba7f9a7b26eaf218f44b45ced
[ "BSD-3-Clause" ]
3
2018-02-14T14:04:45.000Z
2021-04-15T04:31:42.000Z
from decimal import Decimal, getcontext, ROUND_HALF_UP from supplychainpy.demand import analyse_uncertain_demand from supplychainpy.demand.eoq import minimum_variable_cost, economic_order_quantity class EconomicOrderQuantity(analyse_uncertain_demand.UncertainDemand): __economic_order_quantity = Decimal(0) ana...
42.368
138
0.624434
619
5,296
4.96769
0.113086
0.067317
0.061789
0.067317
0.64
0.585041
0.572358
0.533659
0.492683
0.446504
0
0.015306
0.296828
5,296
124
139
42.709677
0.810419
0.038331
0
0.520833
0
0
0
0
0
0
0
0
0
1
0.072917
false
0
0.03125
0.020833
0.229167
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
8273cb7b96dbba2d80d2ff7f28ed04bc72f420f5
2,182
py
Python
tests/test_arraymisc.py
XinYangDong/mmcv-0.2.10
527388ea7c5daf7149a88b3dc833373d5a5fb850
[ "Apache-2.0" ]
1
2019-04-04T07:07:55.000Z
2019-04-04T07:07:55.000Z
tests/test_arraymisc.py
XinYangDong/mmcv-0.2.10
527388ea7c5daf7149a88b3dc833373d5a5fb850
[ "Apache-2.0" ]
null
null
null
tests/test_arraymisc.py
XinYangDong/mmcv-0.2.10
527388ea7c5daf7149a88b3dc833373d5a5fb850
[ "Apache-2.0" ]
null
null
null
from __future__ import division import mmcv import numpy as np import pytest def test_quantize(): arr = np.random.randn(10, 10) levels = 20 qarr = mmcv.quantize(arr, -1, 1, levels) assert qarr.shape == arr.shape assert qarr.dtype == np.dtype('int64') for i in range(arr.shape[0]): for...
31.171429
75
0.593951
332
2,182
3.88253
0.177711
0.020171
0.06827
0.059736
0.661753
0.661753
0.595811
0.529868
0.511249
0.511249
0
0.07186
0.241063
2,182
69
76
31.623188
0.706522
0
0
0.309091
0
0
0.010999
0
0
0
0
0
0.254545
1
0.054545
false
0
0.072727
0
0.127273
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
82740abbd8d90d8a1d79663896c17644f40508b8
2,373
py
Python
train.py
jmribeiro/NumPyNeuralNetworkFromScratch
19c4360ef4eec91cd17142ced9fde35773d795b5
[ "Apache-2.0" ]
1
2020-07-06T18:15:34.000Z
2020-07-06T18:15:34.000Z
train.py
jmribeiro/NumPyNeuralNetworkFromScratch
19c4360ef4eec91cd17142ced9fde35773d795b5
[ "Apache-2.0" ]
null
null
null
train.py
jmribeiro/NumPyNeuralNetworkFromScratch
19c4360ef4eec91cd17142ced9fde35773d795b5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Author: João Ribeiro """ import argparse import numpy as np from model import FeedForwardNetwork from utils import load_ocr_dataset, plot if __name__ == '__main__': parser = argparse.ArgumentParser() # Hyperparams parser.add_argument('-epochs', default=20, type=int, help="N...
31.64
120
0.645175
308
2,373
4.782468
0.344156
0.05499
0.10387
0.046164
0.181942
0.043449
0
0
0
0
0
0.007732
0.182469
2,373
74
121
32.067568
0.751546
0.051833
0
0.055556
0
0
0.254349
0.010813
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.194444
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8274f0f41fe5e911ea0767aa342d89364c6cbf67
3,935
py
Python
varify/samples/views.py
chop-dbhi/varify
5dc721e49ed9bd3582f4b117785fdd1a8b6ba777
[ "BSD-2-Clause" ]
6
2015-01-16T14:35:29.000Z
2017-06-18T05:56:15.000Z
varify/samples/views.py
solvebio/varify
5dc721e49ed9bd3582f4b117785fdd1a8b6ba777
[ "BSD-2-Clause" ]
null
null
null
varify/samples/views.py
solvebio/varify
5dc721e49ed9bd3582f4b117785fdd1a8b6ba777
[ "BSD-2-Clause" ]
3
2015-05-27T15:03:17.000Z
2020-03-11T08:42:46.000Z
from guardian.shortcuts import get_objects_for_user from django.http import Http404, HttpResponseRedirect from django.db.models import Count from django.core.urlresolvers import reverse from django.shortcuts import render, get_object_or_404 from vdw.samples.models import Sample, Project, Batch, Cohort from .forms impor...
31.48
79
0.665565
458
3,935
5.561135
0.176856
0.043188
0.047114
0.033373
0.428347
0.403612
0.37338
0.3404
0.286219
0.286219
0
0.008832
0.223126
3,935
124
80
31.733871
0.824338
0.040407
0
0.3
0
0
0.108431
0.023065
0
0
0
0
0
1
0.066667
false
0
0.077778
0
0.222222
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
82758db2cce35fc271964b68ef46df023933f752
6,079
py
Python
napari_plugin_test/widgets/warp_image_volume.py
krentzd/napari-test
97673f9408eab7d2cc01f4562a3deeeee7fd8bcb
[ "MIT" ]
null
null
null
napari_plugin_test/widgets/warp_image_volume.py
krentzd/napari-test
97673f9408eab7d2cc01f4562a3deeeee7fd8bcb
[ "MIT" ]
null
null
null
napari_plugin_test/widgets/warp_image_volume.py
krentzd/napari-test
97673f9408eab7d2cc01f4562a3deeeee7fd8bcb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 # Adapted from: https://github.com/zpincus/celltool/blob/master/celltool/numerics/image_warp.py from scipy import ndimage import numpy as np from probreg import bcpd import tifffile import matplotlib.pyplot as plt import napari from magicgui import magic_factory, widgets from nap...
40.798658
147
0.659154
979
6,079
3.848825
0.215526
0.031847
0.022293
0.023885
0.145701
0.125531
0.125531
0.111465
0.091561
0.091561
0
0.045613
0.199375
6,079
148
148
41.074324
0.72858
0.04935
0
0
0
0
0.029458
0
0
0
0
0
0.008403
1
0.084034
false
0
0.084034
0
0.235294
0.033613
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8275c53b65c622b02c7389ff31c415c23a469b50
6,235
py
Python
main/tests/test_celery.py
OpenHumans/oh-23andme-source
2580b0177b9caad079826305c7455ea7fb116a76
[ "MIT" ]
null
null
null
main/tests/test_celery.py
OpenHumans/oh-23andme-source
2580b0177b9caad079826305c7455ea7fb116a76
[ "MIT" ]
7
2018-03-26T02:09:43.000Z
2021-06-10T17:42:26.000Z
main/tests/test_celery.py
OpenHumans/oh-23andme-source
2580b0177b9caad079826305c7455ea7fb116a76
[ "MIT" ]
2
2018-03-29T12:51:28.000Z
2018-12-27T18:44:35.000Z
from django.test import TestCase, RequestFactory import vcr from django.conf import settings from django.core.management import call_command from open_humans.models import OpenHumansMember from main.celery import read_reference, clean_raw_23andme from main.celery_helper import vcf_header import os import tempfile impor...
40.225806
171
0.563432
656
6,235
5.169207
0.286585
0.055146
0.035388
0.021233
0.515482
0.515482
0.515482
0.515482
0.460631
0.437629
0
0.063815
0.306335
6,235
154
172
40.487013
0.720231
0.049078
0
0.259259
0
0.037037
0.311922
0.07942
0
0
0
0
0.046296
1
0.074074
false
0.009259
0.111111
0
0.194444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8276d754ae9e540d8e94f8e6e543d48ce3a9e8c7
2,060
py
Python
nn_model/embedding_layer.py
onlyrico/mling_sdgms
ef6015d1a815a317f16fa1e42cbb048e4fe443f7
[ "MIT" ]
4
2021-06-01T02:06:57.000Z
2022-02-23T02:14:07.000Z
nn_model/embedding_layer.py
onlyrico/mling_sdgms
ef6015d1a815a317f16fa1e42cbb048e4fe443f7
[ "MIT" ]
null
null
null
nn_model/embedding_layer.py
onlyrico/mling_sdgms
ef6015d1a815a317f16fa1e42cbb048e4fe443f7
[ "MIT" ]
2
2021-01-28T05:48:20.000Z
2022-01-24T11:59:13.000Z
# -*- coding: UTF-8 -*- #!/usr/bin/python3 """ Embedding Layer """ #************************************************************ # Imported Libraries #************************************************************ import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from gensim.models i...
30.294118
94
0.662136
270
2,060
4.825926
0.351852
0.089793
0.117421
0.052955
0.224098
0.174981
0.133538
0.133538
0
0
0
0.009473
0.180097
2,060
67
95
30.746269
0.761989
0.120874
0
0.102564
0
0
0.037485
0
0
0
0
0
0
1
0.102564
false
0
0.153846
0
0.333333
0.051282
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
827728c1d9e6e7856cb8f43e7465659d4d505df0
17,810
py
Python
grpclib/server.py
panaetov/grpclib
3c7d6ec3479cde417e748bc9b0cf0e9188d0f42a
[ "BSD-3-Clause" ]
null
null
null
grpclib/server.py
panaetov/grpclib
3c7d6ec3479cde417e748bc9b0cf0e9188d0f42a
[ "BSD-3-Clause" ]
null
null
null
grpclib/server.py
panaetov/grpclib
3c7d6ec3479cde417e748bc9b0cf0e9188d0f42a
[ "BSD-3-Clause" ]
null
null
null
import abc import socket import logging import asyncio import warnings import h2.config import h2.exceptions from .utils import DeadlineWrapper from .const import Status from .stream import send_message, recv_message from .stream import StreamIterator from .metadata import Metadata, Deadline from .protocol import H2P...
34.921569
80
0.600842
2,010
17,810
5.119901
0.199005
0.012438
0.017491
0.015645
0.222719
0.145467
0.102711
0.093966
0.087649
0.087649
0
0.004792
0.320382
17,810
509
81
34.990177
0.84534
0.074172
0
0.301325
0
0
0.069882
0.002513
0
0
0
0.001965
0.003311
1
0.046358
false
0.009934
0.05298
0
0.182119
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
8278ddae26be1d01817d1cce51811bee77e0e097
5,903
py
Python
ramcache.py
Lopez6969/chromium-dashboard
b35fb5372f33bfe1992c0ffaf1e723afbb3d9af2
[ "Apache-2.0" ]
null
null
null
ramcache.py
Lopez6969/chromium-dashboard
b35fb5372f33bfe1992c0ffaf1e723afbb3d9af2
[ "Apache-2.0" ]
null
null
null
ramcache.py
Lopez6969/chromium-dashboard
b35fb5372f33bfe1992c0ffaf1e723afbb3d9af2
[ "Apache-2.0" ]
null
null
null
from __future__ import division from __future__ import print_function # -*- coding: utf-8 -*- # Copyright 2020 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.a...
34.723529
79
0.750127
872
5,903
4.969037
0.333716
0.027694
0.02631
0.042926
0.171013
0.085391
0.064159
0.040619
0.040619
0
0
0.004743
0.178553
5,903
169
80
34.928994
0.888843
0.306454
0
0.135135
0
0
0.033689
0.018077
0
0
0
0
0
1
0.135135
false
0.013514
0.067568
0
0.351351
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
0
0
0
0
0
0
0
0
1
0
827beb02ef352cf0444f8df3acec604c0da03a1c
1,731
py
Python
intrepyd/tests/test_openplc.py
bobosoft/intrepyd
13f0912b31f86f9bcc50f52ef4ad870e33f0cf65
[ "BSD-3-Clause" ]
2
2021-04-25T17:38:03.000Z
2022-03-20T20:48:50.000Z
intrepyd/tests/test_openplc.py
bobosoft/intrepyd
13f0912b31f86f9bcc50f52ef4ad870e33f0cf65
[ "BSD-3-Clause" ]
1
2016-11-30T22:25:00.000Z
2017-01-16T22:43:39.000Z
intrepyd/tests/test_openplc.py
bobosoft/intrepyd
13f0912b31f86f9bcc50f52ef4ad870e33f0cf65
[ "BSD-3-Clause" ]
null
null
null
import intrepyd from intrepyd.iec611312py.plcopen import parse_plc_open_file from intrepyd.iec611312py.stmtprinter import StmtPrinter import unittest from . import from_fixture_path class TestOpenPLC(unittest.TestCase): def test_simple_1(self): pous = parse_plc_open_file(from_fixture_path('openplc/simple1....
37.630435
139
0.688619
226
1,731
4.977876
0.323009
0.12
0.074667
0.099556
0.587556
0.569778
0.546667
0.546667
0.546667
0.422222
0
0.031587
0.195263
1,731
45
140
38.466667
0.776023
0.093588
0
0.30303
0
0.030303
0.158568
0.037724
0
0
0
0
0.242424
1
0.181818
false
0
0.151515
0
0.363636
0.212121
0
0
0
null
0
0
0
0
0
0
0
0
0
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
827d64df2b74d446113ab304669eb3fd477b0e80
3,506
py
Python
reveal_graph_embedding/datautil/asu_datautil/asu_read_data.py
MKLab-ITI/reveal-graph-embedding
72d4af794536f97b8ede06c0f27f261ea85d8c4b
[ "Apache-2.0" ]
31
2015-07-14T16:21:25.000Z
2021-06-30T14:10:44.000Z
reveal_graph_embedding/datautil/asu_datautil/asu_read_data.py
MKLab-ITI/reveal-graph-embedding
72d4af794536f97b8ede06c0f27f261ea85d8c4b
[ "Apache-2.0" ]
null
null
null
reveal_graph_embedding/datautil/asu_datautil/asu_read_data.py
MKLab-ITI/reveal-graph-embedding
72d4af794536f97b8ede06c0f27f261ea85d8c4b
[ "Apache-2.0" ]
11
2016-08-21T03:07:20.000Z
2020-03-07T03:17:05.000Z
__author__ = 'Georgios Rizos (georgerizos@iti.gr)' import numpy as np import scipy.sparse as sparse from reveal_graph_embedding.common import get_file_row_generator def read_adjacency_matrix(file_path, separator): """ Reads an edge list in csv format and returns the adjacency matrix in SciPy Sparse COOrdina...
33.711538
118
0.688534
508
3,506
4.55315
0.240157
0.039343
0.051881
0.024211
0.518374
0.476438
0.444444
0.370947
0.330307
0.330307
0
0.011481
0.229892
3,506
103
119
34.038835
0.845185
0.418711
0
0.468085
0
0
0.017803
0
0
0
0
0
0
1
0.042553
false
0
0.06383
0
0.148936
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
8281bdb342d8804d5733ed2d9e90e2c325ef1463
4,013
py
Python
run.py
evilspyboy/twitch-relay-monitor
45c9c2f02b67f73b5baea53813d8818d673d93ba
[ "MIT" ]
1
2021-03-19T15:02:38.000Z
2021-03-19T15:02:38.000Z
run.py
evilspyboy/twitch-relay-monitor
45c9c2f02b67f73b5baea53813d8818d673d93ba
[ "MIT" ]
null
null
null
run.py
evilspyboy/twitch-relay-monitor
45c9c2f02b67f73b5baea53813d8818d673d93ba
[ "MIT" ]
1
2021-03-19T15:02:38.000Z
2021-03-19T15:02:38.000Z
import datetime from datetime import timedelta import pprint from config import * from helper import * import time import logging from logging.handlers import RotatingFileHandler logger = logging.getLogger('Twitch Relay Monitor') logger.setLevel(logging.DEBUG) handler = RotatingFileHandler('/home/pi/twitch_relay_monit...
31.351563
107
0.76601
620
4,013
4.717742
0.259677
0.049231
0.036923
0.038974
0.333333
0.311795
0.273504
0.273504
0.26359
0.180171
0
0.010315
0.130326
4,013
128
108
31.351563
0.827794
0.160728
0
0.389474
0
0
0.170194
0.012519
0
0
0
0
0
1
0.010526
false
0
0.084211
0
0.094737
0.084211
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8283520b4c3b447717f6ff9b6cc63100ada20554
793
py
Python
aiassistants/assistants/ptype/src/Config.py
wrattler/wrattler
25d2a178e5efc289b40fa3725b23334636bd349d
[ "MIT" ]
56
2018-03-21T07:04:44.000Z
2021-12-26T15:01:42.000Z
aiassistants/assistants/ptype/src/Config.py
wrattler/wrattler
25d2a178e5efc289b40fa3725b23334636bd349d
[ "MIT" ]
181
2018-06-07T10:35:23.000Z
2022-02-26T10:22:54.000Z
aiassistants/assistants/ptype/src/Config.py
wrattler/wrattler
25d2a178e5efc289b40fa3725b23334636bd349d
[ "MIT" ]
9
2018-05-04T10:04:49.000Z
2019-10-07T15:53:50.000Z
class Config: # helps to store settings for an experiment. def __init__(self, _experiments_folder_path='experiments', _dataset_name='dataset', _column_names='unknown', _types={1:'integer', 2:'string', 3:'float', 4:'boolean', 5:'gender', 6:'unknown', 7:'date-iso-8601', 8:'date-eu', 9:'date-non-s...
49.5625
175
0.630517
99
793
4.757576
0.575758
0.10828
0.089172
0
0
0
0
0
0
0
0
0.031148
0.230769
793
16
176
49.5625
0.740984
0.052963
0
0
0
0
0.214667
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.153846
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
828565457c47cac1020f3188fe499892855af43c
12,928
py
Python
rbc/tests/test_omnisci_array.py
guilhermeleobas/rbc
4b568b91c6ce3ef7727fee001169302c3803c4fd
[ "BSD-3-Clause" ]
null
null
null
rbc/tests/test_omnisci_array.py
guilhermeleobas/rbc
4b568b91c6ce3ef7727fee001169302c3803c4fd
[ "BSD-3-Clause" ]
null
null
null
rbc/tests/test_omnisci_array.py
guilhermeleobas/rbc
4b568b91c6ce3ef7727fee001169302c3803c4fd
[ "BSD-3-Clause" ]
null
null
null
import os from collections import defaultdict from rbc.omnisci_backend import Array from rbc.errors import OmnisciServerError from numba import types as nb_types import pytest rbc_omnisci = pytest.importorskip('rbc.omniscidb') available_version, reason = rbc_omnisci.is_available() pytestmark = pytest.mark.skipif(not a...
27.274262
98
0.586556
1,827
12,928
4.007663
0.136289
0.035509
0.050259
0.072248
0.487299
0.422835
0.37681
0.358099
0.318492
0.278203
0
0.036389
0.266631
12,928
473
99
27.331924
0.735893
0.021117
0
0.39548
0
0.002825
0.200822
0.019608
0
0
0
0.002114
0.076271
1
0.121469
false
0
0.059322
0.028249
0.248588
0.011299
0
0
0
null
0
0
0
0
0
0
0
0
0
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
82858d5820f148f4cd403dae133ec9b5dc1ebb08
1,785
py
Python
src/core/default/commands/bucket/utils.py
cdev-framework/cdev-sdk
06cd7b40936ab063d1d8fd1a7d9f6882750e8a96
[ "BSD-3-Clause-Clear" ]
2
2022-02-28T02:51:59.000Z
2022-03-24T15:23:18.000Z
src/core/default/commands/bucket/utils.py
cdev-framework/cdev-sdk
06cd7b40936ab063d1d8fd1a7d9f6882750e8a96
[ "BSD-3-Clause-Clear" ]
null
null
null
src/core/default/commands/bucket/utils.py
cdev-framework/cdev-sdk
06cd7b40936ab063d1d8fd1a7d9f6882750e8a96
[ "BSD-3-Clause-Clear" ]
null
null
null
from dataclasses import dataclass import re from tokenize import group from core.constructs.resource import ResourceModel from core.constructs.workspace import Workspace RUUID = "cdev::simple::bucket" def get_cloud_output_from_cdev_name(component_name: str, cdev_name: str) -> str: try: ws = Workspace.in...
25.869565
86
0.678431
235
1,785
4.897872
0.289362
0.055604
0.062554
0.076455
0.32146
0.32146
0.32146
0.32146
0.32146
0.253692
0
0.002168
0.22465
1,785
68
87
26.25
0.82948
0
0
0.291667
0
0
0.137815
0.061625
0
0
0
0
0
1
0.083333
false
0
0.104167
0.020833
0.395833
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
82866aa0a6c01bbd11d8219aa01d2f4e9089b2ed
3,750
py
Python
EXAMPLE/test_backtest/MACD_JCSC.py
evsteel/QUANTAXIS
50e0116b2b52e6bbac6819d5f039608bf4a17367
[ "MIT" ]
2
2018-10-29T12:01:55.000Z
2021-03-05T10:28:59.000Z
EXAMPLE/test_backtest/MACD_JCSC.py
evsteel/QUANTAXIS
50e0116b2b52e6bbac6819d5f039608bf4a17367
[ "MIT" ]
1
2019-01-23T04:46:52.000Z
2019-01-23T04:46:52.000Z
EXAMPLE/test_backtest/MACD_JCSC.py
evsteel/QUANTAXIS
50e0116b2b52e6bbac6819d5f039608bf4a17367
[ "MIT" ]
2
2018-11-30T07:52:14.000Z
2021-05-28T23:00:20.000Z
# -*- coding: utf-8 -*- # Demo: MACD strategy # src: ./test_backtest/MACD_JCSC.py # jupyter: ./test_backtest/QUANTAXIS回测分析全过程讲解.ipynb # paper: ./test_backtest/QUANTAXIS回测分析全过程讲解.md import QUANTAXIS as QA import numpy as np import pandas as pd import datetime st1=datetime.datetime.now() # define the MACD strategy def M...
32.051282
123
0.6464
512
3,750
4.537109
0.304688
0.017219
0.043048
0.015497
0.311235
0.311235
0.311235
0.287129
0.227292
0.227292
0
0.03753
0.2184
3,750
116
124
32.327586
0.755032
0.223467
0
0.28125
0
0
0.050646
0
0
0
0
0
0
1
0.015625
false
0
0.0625
0
0.09375
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8286a3142dc78c8279d55cc22186d074f451c53d
6,247
py
Python
tests/zquantum/qaoa/ansatzes/farhi_ansatz_test.py
zapatacomputing/z-quantum-qaoa
a13a99939ee41c760fdfb302e5f4944e087a09a7
[ "Apache-2.0" ]
3
2020-10-06T13:54:40.000Z
2021-07-04T21:02:14.000Z
tests/zquantum/qaoa/ansatzes/farhi_ansatz_test.py
zapatacomputing/z-quantum-qaoa
a13a99939ee41c760fdfb302e5f4944e087a09a7
[ "Apache-2.0" ]
34
2020-04-30T02:52:31.000Z
2022-03-30T19:19:14.000Z
tests/zquantum/qaoa/ansatzes/farhi_ansatz_test.py
zapatacomputing/z-quantum-qaoa
a13a99939ee41c760fdfb302e5f4944e087a09a7
[ "Apache-2.0" ]
5
2020-06-24T10:57:01.000Z
2021-07-09T01:14:16.000Z
from zquantum.core.interfaces.ansatz_test import AnsatzTests from zquantum.core.circuits import Circuit, H, RX, RZ from zquantum.core.utils import compare_unitary from zquantum.core.openfermion import change_operator_type from zquantum.qaoa.ansatzes.farhi_ansatz import ( QAOAFarhiAnsatz, create_farhi_qaoa_circu...
29.328638
88
0.664959
697
6,247
5.626973
0.147776
0.087965
0.050484
0.04105
0.668536
0.586181
0.553544
0.519888
0.49592
0.49592
0
0.013556
0.244277
6,247
212
89
29.466981
0.8172
0.028654
0
0.381679
0
0
0.01094
0
0
0
0
0
0.10687
1
0.137405
false
0
0.068702
0.022901
0.251908
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
8287b90a2bda6ffe57a0b5c598cfc436f9b7c2a3
3,297
py
Python
utils/parser.py
scalar42/scholar-alerts-assistant
5b674f3784d09ced8a6c17a653d9bdfa08947125
[ "MIT" ]
null
null
null
utils/parser.py
scalar42/scholar-alerts-assistant
5b674f3784d09ced8a6c17a653d9bdfa08947125
[ "MIT" ]
null
null
null
utils/parser.py
scalar42/scholar-alerts-assistant
5b674f3784d09ced8a6c17a653d9bdfa08947125
[ "MIT" ]
null
null
null
from html.parser import HTMLParser class Paper(): def __init__(self): self.title = "" self.source_link = "" self.authr_and_pub = "" # self.publication = "" self.abstract = "" self.star_link = "" def add_title(self, title): self.title = title retu...
30.813084
129
0.578101
413
3,297
4.307506
0.142857
0.077572
0.086565
0.077572
0.456998
0.370995
0.215852
0.175942
0.175942
0.137156
0
0.002689
0.323324
3,297
106
130
31.103774
0.794711
0.039126
0
0.369048
0
0
0.007904
0
0
0
0
0
0
1
0.190476
false
0
0.011905
0.047619
0.357143
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
8288f27e4f9f25b68044be3e4af91d23dfa24bd3
1,923
py
Python
model.py
luqifeng/CVND---Image-Captioning-Project
6564b72222d962f8e1acdcdcf3d8ac5874ad9ab8
[ "MIT" ]
null
null
null
model.py
luqifeng/CVND---Image-Captioning-Project
6564b72222d962f8e1acdcdcf3d8ac5874ad9ab8
[ "MIT" ]
null
null
null
model.py
luqifeng/CVND---Image-Captioning-Project
6564b72222d962f8e1acdcdcf3d8ac5874ad9ab8
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torchvision.models as models import numpy as np class EncoderCNN(nn.Module): def __init__(self, embed_size): super(EncoderCNN, self).__init__() resnet = models.resnet50(pretrained=True) for param in resnet.parameters(): param.requires_gr...
36.980769
126
0.631825
238
1,923
4.945378
0.357143
0.038233
0.018692
0.025489
0.047579
0.047579
0.047579
0
0
0
0
0.01257
0.25533
1,923
52
127
36.980769
0.809358
0.084763
0
0.05
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.1
0
0.35
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
828b34c1c1112e8cd47750832efbc80f1a49fc80
2,241
py
Python
run_all.py
yuriisthebest/Advent-of-Code
1a4b3d6e57b0751dec097ccfc83472c458605e37
[ "MIT" ]
null
null
null
run_all.py
yuriisthebest/Advent-of-Code
1a4b3d6e57b0751dec097ccfc83472c458605e37
[ "MIT" ]
null
null
null
run_all.py
yuriisthebest/Advent-of-Code
1a4b3d6e57b0751dec097ccfc83472c458605e37
[ "MIT" ]
null
null
null
import json import time from multiprocessing import Process from utils.paths import PATHS from years.AoC2021.tasks import TASKS2021 # Constants PARALLEL_COMPUTATION = True TASKS = { 2021: TASKS2021 } def asses_task(task: type, answers: dict, year: int) -> None: """ Run a task 4 times (part 1 test, part 1...
37.983051
111
0.617135
338
2,241
3.943787
0.310651
0.030008
0.018005
0.030008
0.202551
0.202551
0.15904
0.15904
0.099025
0.099025
0
0.036396
0.25212
2,241
58
112
38.637931
0.75895
0.194556
0
0
0
0.128205
0.30113
0.017514
0
0
0
0
0.102564
1
0.025641
false
0
0.128205
0
0.153846
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
828cb262d3250d0e1b3f07edb7bc92fd873589c5
1,467
py
Python
python/edl/tests/unittests/master_client_test.py
WEARE0/edl
f065ec02bb27a67c80466103e298bd6f37494048
[ "Apache-2.0" ]
90
2020-04-21T01:46:10.000Z
2022-02-10T09:09:34.000Z
python/edl/tests/unittests/master_client_test.py
WEARE0/edl
f065ec02bb27a67c80466103e298bd6f37494048
[ "Apache-2.0" ]
37
2018-03-02T22:41:15.000Z
2020-04-22T16:48:36.000Z
python/edl/tests/unittests/master_client_test.py
WEARE0/edl
f065ec02bb27a67c80466103e298bd6f37494048
[ "Apache-2.0" ]
34
2018-03-02T23:28:25.000Z
2020-03-25T08:50:29.000Z
# Copyright (c) 2020 PaddlePaddle 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/LICENSE-2.0 # # Unless required by appli...
32.6
74
0.712338
213
1,467
4.760563
0.516432
0.059172
0.025641
0.031558
0.076923
0.076923
0.076923
0.076923
0
0
0
0.020202
0.190184
1,467
44
75
33.340909
0.833333
0.39741
0
0.090909
0
0
0.133333
0
0
0
0
0
0.090909
1
0.090909
false
0
0.227273
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
828db07d0c0f0f1db466402e002749cf071a28f8
3,454
py
Python
augraphy/augmentations/noisetexturize.py
RyonSayer/augraphy
be1e8dcf0f129ac3fc30ba1cad0d8de02443f67f
[ "MIT" ]
36
2021-06-25T02:17:57.000Z
2022-03-29T02:36:09.000Z
augraphy/augmentations/noisetexturize.py
shaheryar1/augraphy
5dd52fdd3b497312606c6d3afa4003f94a8cbcc4
[ "MIT" ]
136
2021-06-25T07:39:46.000Z
2022-03-31T13:00:30.000Z
augraphy/augmentations/noisetexturize.py
shaheryar1/augraphy
5dd52fdd3b497312606c6d3afa4003f94a8cbcc4
[ "MIT" ]
24
2021-06-27T21:15:11.000Z
2022-03-08T03:28:17.000Z
import random import cv2 import numpy as np from augraphy.base.augmentation import Augmentation class NoiseTexturize(Augmentation): """Creates a random noise based texture pattern to emulate paper textures. Consequently applies noise patterns to the original image from big to small. :param sigma_range:...
33.533981
118
0.606543
423
3,454
4.867612
0.378251
0.043711
0.033997
0.019427
0.073822
0.042739
0.042739
0.042739
0.042739
0.042739
0
0.013361
0.306601
3,454
102
119
33.862745
0.846347
0.387087
0
0
0
0
0.05005
0.043544
0
0
0
0
0
1
0.072727
false
0
0.072727
0.018182
0.218182
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
828dc1f2bed1b15e7518a1fcf0598cc4397058a0
50,333
py
Python
plugins/modules/bigip_sslo_config_ssl.py
kevingstewart/f5_sslo_ansible
13001a8eab514b5f1ea374abdfc7dd2383655a86
[ "Apache-2.0" ]
7
2021-06-25T15:39:49.000Z
2022-02-28T10:58:53.000Z
plugins/modules/bigip_sslo_config_ssl.py
kevingstewart/f5_sslo_ansible
13001a8eab514b5f1ea374abdfc7dd2383655a86
[ "Apache-2.0" ]
6
2021-06-29T18:18:45.000Z
2021-09-17T12:04:24.000Z
plugins/modules/bigip_sslo_config_ssl.py
kevingstewart/f5_sslo_ansible
13001a8eab514b5f1ea374abdfc7dd2383655a86
[ "Apache-2.0" ]
3
2021-06-28T23:25:38.000Z
2022-02-28T10:57:32.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: (c) 2021, kevin-dot-g-dot-stewart-at-gmail-dot-com # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Version: 1.0.1 #### Updates: #### 1.0.1 - added 9.0 support # - changed max version # - added clie...
36.955213
492
0.580573
5,248
50,333
5.480183
0.105755
0.015855
0.036509
0.034353
0.636857
0.581885
0.527677
0.461127
0.411335
0.380702
0
0.013071
0.317505
50,333
1,362
493
36.955213
0.824144
0.064729
0
0.572944
0
0.028294
0.449475
0.044038
0
0
0
0
0
1
0.030062
false
0.030062
0.007073
0
0.115827
0.011494
0
0
0
null
0
0
0
0
0
0
0
0
0
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
828ee62b4ffbbb1d5dea12315eaccdf681093a66
52,854
py
Python
nemo/pipelines.py
simonsobs/nemo
ab72fa1c5ea878fcb63eaf31642b3d7bdd6ac636
[ "BSD-3-Clause" ]
2
2021-01-11T13:10:27.000Z
2022-03-09T16:31:48.000Z
nemo/pipelines.py
simonsobs/nemo
ab72fa1c5ea878fcb63eaf31642b3d7bdd6ac636
[ "BSD-3-Clause" ]
3
2020-11-11T10:44:47.000Z
2022-01-05T07:28:58.000Z
nemo/pipelines.py
simonsobs/nemo
ab72fa1c5ea878fcb63eaf31642b3d7bdd6ac636
[ "BSD-3-Clause" ]
1
2021-03-05T18:31:00.000Z
2021-03-05T18:31:00.000Z
""" This module defines pipelines - sets of tasks in nemo that we sometimes want to do on different inputs (e.g., real data or simulated data). """ import os import sys import glob import shutil import time import astropy.io.fits as pyfits import astropy.table as atpy from astLib import astWCS import numpy as np fro...
54.941788
220
0.592235
5,238
52,854
5.959527
0.193013
0.027486
0.006631
0.004869
0.303402
0.255478
0.231804
0.213608
0.203742
0.18734
0
0.011294
0.298104
52,854
961
221
54.998959
0.830153
0.295493
0
0.23181
0
0.003384
0.099842
0.011579
0
0
0
0
0.006768
1
0.011844
false
0.020305
0.037225
0
0.060914
0.040609
0
0
0
null
0
0
0
0
0
0
0
0
0
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
828f0e49b2ff5b08550d07840cd6144c5f6a6f99
5,026
py
Python
pypkg-gen.py
GameMaker2k/Neo-Hockey-Test
5737bfedf0d83f69964e85ac1dbf7e6a93c13f44
[ "BSD-3-Clause" ]
1
2020-04-04T10:25:42.000Z
2020-04-04T10:25:42.000Z
pypkg-gen.py
GameMaker2k/Neo-Hockey-Test
5737bfedf0d83f69964e85ac1dbf7e6a93c13f44
[ "BSD-3-Clause" ]
null
null
null
pypkg-gen.py
GameMaker2k/Neo-Hockey-Test
5737bfedf0d83f69964e85ac1dbf7e6a93c13f44
[ "BSD-3-Clause" ]
3
2021-09-07T08:44:33.000Z
2021-12-07T23:49:39.000Z
#!/usr/bin/env python ''' This program is free software; you can redistribute it and/or modify it under the terms of the Revised BSD License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FO...
45.279279
149
0.729208
675
5,026
5.259259
0.305185
0.037183
0.027887
0.01831
0.345915
0.287042
0.268732
0.268732
0.268732
0.256338
0
0.016412
0.102865
5,026
110
150
45.690909
0.770903
0.119379
0
0.26506
0
0
0.097216
0
0
0
0
0
0
1
0.012048
false
0
0.024096
0
0.048193
0.048193
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8292fb356f36b5d5f890f807991392f40a46cdec
514
py
Python
2020/02/Teil 2 - V01.py
HeWeMel/adventofcode
90acb10f03f21ef388673bbcf132d04972175970
[ "MIT" ]
1
2020-12-12T19:34:59.000Z
2020-12-12T19:34:59.000Z
2020/02/Teil 2 - V01.py
HeWeMel/adventofcode
90acb10f03f21ef388673bbcf132d04972175970
[ "MIT" ]
null
null
null
2020/02/Teil 2 - V01.py
HeWeMel/adventofcode
90acb10f03f21ef388673bbcf132d04972175970
[ "MIT" ]
null
null
null
import re with open('input.txt', 'r') as f: pw_ok=0 for line in f: (rule,s,space_and_pw) = line.partition(':') (lowhigh,s,c) = rule.partition(' ') (low,s,high) = lowhigh.partition('-') pw=space_and_pw[1:-1] c1=pw[int(low)-1] c2=pw[int(high)-1] if (c1==c ...
27.052632
53
0.486381
85
514
2.858824
0.4
0.049383
0.082305
0.065844
0.230453
0.156379
0.156379
0
0
0
0
0.054441
0.321012
514
19
54
27.052632
0.641834
0.005837
0
0
0
0
0.041096
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0.1875
0
0
0
null
0
0
0
0
0
0
0
0
0
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
82959d9cf1c7742a4ce7e67d8116a609f7ef7317
8,399
py
Python
slides_manager/openslide_engine.py
crs4/ome_seadragon
e2a7a2178c4abdff1b0a98bc194c672b2476e9a2
[ "MIT" ]
31
2016-02-16T15:11:25.000Z
2021-06-21T15:58:58.000Z
slides_manager/openslide_engine.py
crs4/ome_seadragon
e2a7a2178c4abdff1b0a98bc194c672b2476e9a2
[ "MIT" ]
11
2017-06-23T17:23:47.000Z
2022-03-31T14:19:27.000Z
slides_manager/openslide_engine.py
crs4/ome_seadragon
e2a7a2178c4abdff1b0a98bc194c672b2476e9a2
[ "MIT" ]
4
2016-12-15T22:08:04.000Z
2019-10-24T23:12:53.000Z
# Copyright (c) 2019, CRS4 # # 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, including without limitation the rights to # use, copy, modify, merge, publish, distribu...
46.921788
120
0.654245
1,014
8,399
5.141026
0.195266
0.033762
0.065605
0.046422
0.439478
0.401304
0.340879
0.262805
0.237483
0.227892
0
0.002934
0.269556
8,399
178
121
47.185393
0.846781
0.148589
0
0.23913
0
0
0.054175
0.006316
0
0
0
0
0
1
0.086957
false
0
0.057971
0.007246
0.297101
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
8296d1c9102045de4d1df9fbc075b8f844636279
4,772
py
Python
pyppy/config.py
maehster/pyppy
10aadd7ace210cb32c51cdd64060a3337d89324b
[ "MIT" ]
5
2021-01-25T09:52:09.000Z
2022-01-29T14:35:41.000Z
pyppy/config.py
maehster/pyppy
10aadd7ace210cb32c51cdd64060a3337d89324b
[ "MIT" ]
7
2021-01-23T10:49:01.000Z
2021-01-30T08:17:38.000Z
pyppy/config.py
maehster/pyppy
10aadd7ace210cb32c51cdd64060a3337d89324b
[ "MIT" ]
1
2021-05-25T05:42:10.000Z
2021-05-25T05:42:10.000Z
"""Global config management This module provides functions for initializing, accessing and destroying a global config object. You can initialize a global config from any object. However, in the context of pyppy, only the instance attributes of the object are used and work with the decorators ``fill_args`` and ``condit...
28.404762
79
0.676027
608
4,772
5.231908
0.297697
0.056586
0.028293
0.028922
0.215341
0.152782
0.133291
0.133291
0.133291
0.097454
0
0.000271
0.226949
4,772
167
80
28.57485
0.862022
0.76865
0
0.090909
0
0
0.176334
0.032483
0
0
0
0
0
1
0.136364
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
82974de24f0cc3cfa731bcef6d90cc11159650a2
878
py
Python
LeetCode/3_sum.py
milkrong/Basic-Python-DS-Algs
e3accd22d8cf25546f33883aac634a9bfe108b34
[ "MIT" ]
null
null
null
LeetCode/3_sum.py
milkrong/Basic-Python-DS-Algs
e3accd22d8cf25546f33883aac634a9bfe108b34
[ "MIT" ]
null
null
null
LeetCode/3_sum.py
milkrong/Basic-Python-DS-Algs
e3accd22d8cf25546f33883aac634a9bfe108b34
[ "MIT" ]
null
null
null
def three_sum(nums): """ Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. :param nums: list[int] :return: list[list[int]] """ if len(nums) < 3: return [] nums.sort() ...
30.275862
98
0.425968
135
878
2.762963
0.377778
0.053619
0.0563
0.064343
0.160858
0.160858
0
0
0
0
0
0.034274
0.43508
878
29
99
30.275862
0.717742
0.238041
0
0.095238
0
0
0
0
0
0
0
0
0
1
0.047619
false
0
0
0
0.142857
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
8299d63942c82469cfa51d90a39b4e86d506709d
4,599
py
Python
RecoBTag/PerformanceDB/python/measure/Pool_mistag110118.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoBTag/PerformanceDB/python/measure/Pool_mistag110118.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoBTag/PerformanceDB/python/measure/Pool_mistag110118.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from CondCore.DBCommon.CondDBCommon_cfi import * PoolDBESSourceMistag110118 = cms.ESSource("PoolDBESSource", CondDBCommon, toGet = cms.VPSet( # # working points # cms.PSet( record = cms.string('Per...
37.390244
88
0.704718
448
4,599
7.029018
0.125
0.125754
0.090822
0.111782
0.671324
0.671324
0.447761
0.447761
0.447761
0.429343
0
0.015187
0.169602
4,599
122
89
37.696721
0.809374
0.003044
0
0.564103
0
0
0.394237
0.345558
0
0
0
0
0
1
0
false
0
0.017094
0
0.017094
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
829b4d9d2ba83ae6309dbbbee76b950d8044a7f9
7,423
py
Python
src/ScheduleEvaluation.py
franTarkenton/replication_health_check
61d9197c6e007650437789ef7780da422af6b7fe
[ "Apache-2.0" ]
null
null
null
src/ScheduleEvaluation.py
franTarkenton/replication_health_check
61d9197c6e007650437789ef7780da422af6b7fe
[ "Apache-2.0" ]
3
2020-04-17T21:52:43.000Z
2022-03-01T21:47:25.000Z
src/ScheduleEvaluation.py
franTarkenton/replication_health_check
61d9197c6e007650437789ef7780da422af6b7fe
[ "Apache-2.0" ]
3
2018-11-26T17:44:09.000Z
2021-04-14T22:10:38.000Z
''' Created on Nov 22, 2018 @author: kjnether methods that evaluate the given schedule ''' import logging import FMEUtil.FMEServerApiData import re class EvaluateSchedule(object): def __init__(self, schedulesData): self.logger = logging.getLogger(__name__) if not isinstance(sc...
43.409357
78
0.555166
648
7,423
6.311728
0.344136
0.017115
0.011002
0.011736
0.144988
0.138875
0.125183
0.096333
0.075795
0.075795
0
0.003653
0.37303
7,423
170
79
43.664706
0.875161
0.198572
0
0.211009
0
0
0.091688
0
0
0
0
0
0
1
0.06422
false
0
0.027523
0
0.155963
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
829c52d86cde3835b9fe8363fe095b5e95155b81
3,319
py
Python
podcastista/ListenNowTab.py
andrsd/podcastista
c05a1de09d2820899aebe592d3d4b01d64d1e5fe
[ "MIT" ]
null
null
null
podcastista/ListenNowTab.py
andrsd/podcastista
c05a1de09d2820899aebe592d3d4b01d64d1e5fe
[ "MIT" ]
17
2021-09-22T12:21:46.000Z
2022-02-26T12:26:40.000Z
podcastista/ListenNowTab.py
andrsd/podcastista
c05a1de09d2820899aebe592d3d4b01d64d1e5fe
[ "MIT" ]
null
null
null
from PyQt5 import QtWidgets, QtCore from podcastista.ShowEpisodeWidget import ShowEpisodeWidget from podcastista.FlowLayout import FlowLayout class FillThread(QtCore.QThread): """ Worker thread for loading up episodes """ def __init__(self, spotify, shows): super().__init__() self._spotify = ...
31.913462
77
0.617957
340
3,319
5.802941
0.323529
0.036493
0.035479
0.031931
0.107451
0
0
0
0
0
0
0.007563
0.282917
3,319
103
78
32.223301
0.821429
0.033745
0
0.053333
0
0
0.0424
0
0
0
0
0
0
1
0.093333
false
0
0.04
0.013333
0.186667
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
829d0c9553bb774075d15e5e3d5751bc89e20c32
866
py
Python
ggpy/cruft/prolog_pyparser.py
hobson/ggpy
4e6e6e876c3a4294cd711647051da2d9c1836b60
[ "MIT" ]
1
2015-01-26T19:07:45.000Z
2015-01-26T19:07:45.000Z
ggpy/cruft/prolog_pyparser.py
hobson/ggpy
4e6e6e876c3a4294cd711647051da2d9c1836b60
[ "MIT" ]
null
null
null
ggpy/cruft/prolog_pyparser.py
hobson/ggpy
4e6e6e876c3a4294cd711647051da2d9c1836b60
[ "MIT" ]
null
null
null
import pyparsing as pp #relationship will refer to 'track' in all of your examples relationship = pp.Word(pp.alphas).setResultsName('relationship') number = pp.Word(pp.nums + '.') variable = pp.Word(pp.alphas) # an argument to a relationship can be either a number or a variable argument = number | variable # argument...
37.652174
78
0.743649
120
866
5.358333
0.533333
0.027994
0.037325
0.043546
0
0
0
0
0
0
0
0
0.150115
866
23
79
37.652174
0.873641
0.453811
0
0
0
0
0.064378
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
829d9d6e41067c52d752f4bdf77ffcbc9b8f2f17
4,496
py
Python
Imaging/Core/Testing/Python/ReslicePermutations.py
inviCRO/VTK
a2dc2e79d4ecb8f6da900535b32e1a2a702c7f48
[ "BSD-3-Clause" ]
null
null
null
Imaging/Core/Testing/Python/ReslicePermutations.py
inviCRO/VTK
a2dc2e79d4ecb8f6da900535b32e1a2a702c7f48
[ "BSD-3-Clause" ]
null
null
null
Imaging/Core/Testing/Python/ReslicePermutations.py
inviCRO/VTK
a2dc2e79d4ecb8f6da900535b32e1a2a702c7f48
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import vtk from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # this script tests vtkImageReslice with various axes permutations, # in order to cover a nasty set of "if" statements that check # the intersections of the raster lines with the input bounding box. # Image pipel...
35.125
70
0.803158
596
4,496
6.052013
0.206376
0.019961
0.010812
0.014416
0.157194
0.155808
0.155808
0.080954
0.064874
0.064874
0
0.104719
0.052714
4,496
127
71
35.401575
0.742193
0.063612
0
0
0
0
0.004759
0
0
0
0.001428
0
0
1
0
false
0
0.016807
0
0.016807
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
829dd3506bffa917743930aa6c0983eab6866732
2,916
py
Python
neuronlp2/nn/utils.py
ntunlp/ptrnet-depparser
61cb113327ede02996b16ea4b9e19311062603c3
[ "MIT" ]
9
2019-09-03T11:03:45.000Z
2021-09-19T05:38:25.000Z
neuronlp2/nn/utils.py
danifg/BottomUp-Hierarchical-PtrNet
2b6ebdb63825eafd63d86700bbbc278cabfafeb2
[ "MIT" ]
null
null
null
neuronlp2/nn/utils.py
danifg/BottomUp-Hierarchical-PtrNet
2b6ebdb63825eafd63d86700bbbc278cabfafeb2
[ "MIT" ]
1
2019-09-24T06:19:25.000Z
2019-09-24T06:19:25.000Z
import collections from itertools import repeat import torch import torch.nn as nn import torch.nn.utils.rnn as rnn_utils def _ntuple(n): def parse(x): if isinstance(x, collections.Iterable): return x return tuple(repeat(x, n)) return parse _single = _ntuple(1) _pair = _ntuple(2) ...
32.043956
136
0.614883
397
2,916
4.329975
0.259446
0.051193
0.041885
0.034904
0.262362
0.23502
0.153578
0.14427
0.11402
0.11402
0
0.008798
0.298354
2,916
90
137
32.4
0.831378
0.182785
0
0.296875
0
0
0.015385
0
0
0
0
0
0.015625
1
0.09375
false
0
0.078125
0
0.28125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
829fa892ed939a93b224c00b60d5719ddb4dc7e0
2,176
py
Python
examples/fire.py
pombreda/py-lepton
586358747efe867208edafca112a3edbb24ff8f9
[ "MIT" ]
7
2018-02-20T02:56:03.000Z
2020-01-23T05:35:55.000Z
examples/fire.py
caseman/py-lepton
586358747efe867208edafca112a3edbb24ff8f9
[ "MIT" ]
1
2017-11-12T10:14:13.000Z
2017-11-12T10:14:44.000Z
examples/fire.py
caseman/py-lepton
586358747efe867208edafca112a3edbb24ff8f9
[ "MIT" ]
1
2019-01-05T00:38:50.000Z
2019-01-05T00:38:50.000Z
############################################################################# # # Copyright (c) 2008 by Casey Duncan and contributors # All Rights Reserved. # # This software is subject to the provisions of the MIT License # A copy of the license should accompany this distribution. # THE SOFTWARE IS PROVIDED "AS IS", W...
27.544304
78
0.665901
326
2,176
4.334356
0.466258
0.019816
0.012739
0.011323
0.039632
0.031139
0.011323
0.011323
0
0
0
0.067885
0.119945
2,176
78
79
27.897436
0.669974
0.19807
0
0.074074
0
0
0.007614
0
0
0
0
0
0
1
0.018519
false
0
0.166667
0
0.185185
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
829fbfa6185a88b37d0e4fc7be2c4271027f431b
3,810
py
Python
landspout/cli.py
gmr/landspout
1df922aa96c42dbfaa28681e748fbd97dfaf9836
[ "BSD-3-Clause" ]
null
null
null
landspout/cli.py
gmr/landspout
1df922aa96c42dbfaa28681e748fbd97dfaf9836
[ "BSD-3-Clause" ]
null
null
null
landspout/cli.py
gmr/landspout
1df922aa96c42dbfaa28681e748fbd97dfaf9836
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 """ Command Line Interface ====================== """ import argparse import logging import os from os import path import sys from landspout import core, __version__ LOGGER = logging.getLogger('landspout') LOGGING_FORMAT = '[%(asctime)-15s] %(levelname)-8s %(name)-15s: %(message)s' def exit_applicat...
36.990291
78
0.599475
415
3,810
5.39759
0.378313
0.044196
0.083482
0.021429
0
0
0
0
0
0
0
0.005018
0.267717
3,810
102
79
37.352941
0.797849
0.105249
0
0
0
0
0.24284
0
0
0
0
0
0
1
0.057971
false
0
0.086957
0
0.15942
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
82a1dcab7cd90d7023343f02b2320478208cc588
26,434
py
Python
phone2board.py
brandjamie/phone2board
b27b6d8dfa944f03688df802a360f247f648b2f6
[ "MIT" ]
null
null
null
phone2board.py
brandjamie/phone2board
b27b6d8dfa944f03688df802a360f247f648b2f6
[ "MIT" ]
null
null
null
phone2board.py
brandjamie/phone2board
b27b6d8dfa944f03688df802a360f247f648b2f6
[ "MIT" ]
null
null
null
import tornado.httpserver import tornado.ioloop import tornado.options import tornado.web import tornado.auth import tornado.escape import os.path import logging import sys import urllib import json from uuid import uuid4 from tornado.options import define, options define("port", default=8000, help="run on the given...
36.970629
209
0.591208
2,393
26,434
6.473882
0.15211
0.086496
0.050155
0.026336
0.404919
0.343597
0.303834
0.291247
0.242512
0.224438
0
0.004129
0.267042
26,434
714
210
37.022409
0.795458
0.06223
0
0.414545
0
0.001818
0.138875
0.028478
0
0
0
0
0
1
0.118182
false
0
0.023636
0.014545
0.209091
0.107273
0
0
0
null
0
0
0
0
0
0
0
0
0
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
82a4b552433b963daf6809d4d3f789619df85472
432
py
Python
discord bot.py
salihdursun1/dc-bot
f5223f83134d6f8938d6bcf572613e80eb4ef33c
[ "Unlicense" ]
null
null
null
discord bot.py
salihdursun1/dc-bot
f5223f83134d6f8938d6bcf572613e80eb4ef33c
[ "Unlicense" ]
null
null
null
discord bot.py
salihdursun1/dc-bot
f5223f83134d6f8938d6bcf572613e80eb4ef33c
[ "Unlicense" ]
null
null
null
import discord from discord.ext.commands import Bot TOKEN = "<discordtoken>" client = discord.Client() bot = Bot(command_prefix="!") @bot.event async def on_ready(): print("Bot Hazır " + str(bot.user)) @bot.event async def on_message(message): if message.author == client.user: ret...
18
50
0.638889
55
432
4.963636
0.563636
0.058608
0.095238
0.117216
0.131868
0
0
0
0
0
0
0
0.231481
432
24
51
18
0.822289
0
0
0.133333
0
0
0.1
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.2
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
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
82a57dff7d64fdf50fbba80937d52605a8fc479c
7,357
py
Python
example_problems/tutorial/euler_dir/services/is_eulerian_server.py
romeorizzi/TALight
2b694cb487f41dd0d36d7aa39f5c9c5a21bfc18e
[ "MIT" ]
4
2021-06-27T13:27:24.000Z
2022-03-24T10:46:28.000Z
example_problems/tutorial/euler_dir/services/is_eulerian_server.py
romeorizzi/TALight
2b694cb487f41dd0d36d7aa39f5c9c5a21bfc18e
[ "MIT" ]
1
2021-01-23T06:50:31.000Z
2021-03-17T15:35:18.000Z
example_problems/tutorial/euler_dir/services/is_eulerian_server.py
romeorizzi/TALight
2b694cb487f41dd0d36d7aa39f5c9c5a21bfc18e
[ "MIT" ]
5
2021-04-01T15:21:57.000Z
2022-01-29T15:07:38.000Z
#!/usr/bin/env python3 # "This service will check your statement that a directed graph you provide us admits an eulerian walk (of the specified type)"" from os import EX_TEMPFAIL from sys import stderr, exit import collections from multilanguage import Env, Lang, TALcolors from TALinputs import TALinput from euler...
43.532544
722
0.578904
983
7,357
4.274669
0.207528
0.045693
0.068539
0.102808
0.665397
0.651357
0.586863
0.586863
0.57306
0.552594
0
0.011857
0.289248
7,357
168
723
43.791667
0.791738
0.027865
0
0.669014
0
0.042254
0.365837
0.028679
0
0
0
0
0
1
0
false
0
0.042254
0
0.042254
0.232394
0
0
0
null
0
0
0
0
0
0
0
0
0
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
82a59289b498d6c0a5800f00f50c27c1b22e3ddd
1,047
py
Python
get_vocab.py
Amir-Mehrpanah/hgraph2graph
6d37153afe09f7684381ce56e8366675e22833e9
[ "MIT" ]
182
2019-11-15T15:59:31.000Z
2022-03-31T09:17:40.000Z
get_vocab.py
Amir-Mehrpanah/hgraph2graph
6d37153afe09f7684381ce56e8366675e22833e9
[ "MIT" ]
30
2020-03-03T16:35:52.000Z
2021-12-16T04:06:57.000Z
get_vocab.py
Amir-Mehrpanah/hgraph2graph
6d37153afe09f7684381ce56e8366675e22833e9
[ "MIT" ]
60
2019-11-15T05:06:11.000Z
2022-03-31T16:43:12.000Z
import sys import argparse from hgraph import * from rdkit import Chem from multiprocessing import Pool def process(data): vocab = set() for line in data: s = line.strip("\r\n ") hmol = MolGraph(s) for node,attr in hmol.mol_tree.nodes(data=True): smiles = attr['smiles'] ...
27.552632
81
0.603629
155
1,047
3.967742
0.406452
0.013008
0.029268
0.022764
0
0
0
0
0
0
0
0.005202
0.265521
1,047
37
82
28.297297
0.794538
0
0
0
0
0
0.03916
0
0
0
0
0
0
1
0.033333
false
0
0.166667
0
0.233333
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
82a930b9747975fe0452c3e4307e6fa5f2321ccf
1,825
py
Python
Day_3/task2.py
DjaffDjaff/AdventOfCode
cf4f60dc71e349a44f4b5d07dbf4aa8555a4a37a
[ "MIT" ]
2
2021-12-03T23:14:28.000Z
2021-12-03T23:16:54.000Z
Day_3/task2.py
DjaffDjaff/AdventOfCode
cf4f60dc71e349a44f4b5d07dbf4aa8555a4a37a
[ "MIT" ]
null
null
null
Day_3/task2.py
DjaffDjaff/AdventOfCode
cf4f60dc71e349a44f4b5d07dbf4aa8555a4a37a
[ "MIT" ]
null
null
null
import math oxygen_rating = 0 co2_rating = 0 length = 0 n_bits = 12 common = [0] * n_bits anti = [0] * n_bits numbers = [] def new_bitmap(old_list): new_list = [0] * n_bits for num in old_list: for j, bit in enumerate(num): new_list[j] += bit return new_list wit...
23.701299
83
0.566575
270
1,825
3.688889
0.237037
0.088353
0.024096
0.033133
0.519076
0.458835
0.458835
0.343373
0.343373
0.2751
0
0.02381
0.309589
1,825
77
84
23.701299
0.766667
0.136986
0
0.212766
0
0
0.01745
0
0
0
0
0
0
1
0.021277
false
0
0.021277
0
0.06383
0.06383
0
0
0
null
0
0
0
0
0
0
0
0
0
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
82a9ed6ace49d5ef752eef71a6cddc94ed97513e
7,838
py
Python
polyjuice/filters_and_selectors/perplex_filter.py
shwang/polyjuice
5f9a3a23d95e4a3877cc048cbcef01f071dc6353
[ "BSD-3-Clause" ]
38
2021-05-25T02:18:40.000Z
2022-03-25T12:09:58.000Z
polyjuice/filters_and_selectors/perplex_filter.py
shwang/polyjuice
5f9a3a23d95e4a3877cc048cbcef01f071dc6353
[ "BSD-3-Clause" ]
7
2021-06-03T04:08:55.000Z
2021-12-06T06:53:05.000Z
polyjuice/filters_and_selectors/perplex_filter.py
shwang/polyjuice
5f9a3a23d95e4a3877cc048cbcef01f071dc6353
[ "BSD-3-Clause" ]
5
2021-11-12T21:43:59.000Z
2022-03-22T21:51:08.000Z
import math import numpy as np from munch import Munch from transformers import GPT2LMHeadModel, GPT2TokenizerFast import torch from copy import deepcopy ######################################################################### ### compute perplexity ###################################################################...
43.787709
122
0.666114
1,038
7,838
4.78131
0.195568
0.02297
0.032239
0.012089
0.288938
0.234334
0.174491
0.140238
0.126939
0.105984
0
0.008778
0.200561
7,838
178
123
44.033708
0.783275
0.161776
0
0.137097
0
0
0.029705
0.00395
0
0
0
0
0
1
0.080645
false
0
0.048387
0.016129
0.209677
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
82ab0f9e283b82fa75f97cebd66085d095f1ab43
2,030
py
Python
Python/example_controllers/visual_perception/flow.py
ricklentz/tdw
da40eec151acae20b28d6486defb4358d96adb0e
[ "BSD-2-Clause" ]
null
null
null
Python/example_controllers/visual_perception/flow.py
ricklentz/tdw
da40eec151acae20b28d6486defb4358d96adb0e
[ "BSD-2-Clause" ]
null
null
null
Python/example_controllers/visual_perception/flow.py
ricklentz/tdw
da40eec151acae20b28d6486defb4358d96adb0e
[ "BSD-2-Clause" ]
null
null
null
from tdw.controller import Controller from tdw.tdw_utils import TDWUtils from tdw.add_ons.image_capture import ImageCapture from tdw.backend.paths import EXAMPLE_CONTROLLER_OUTPUT_PATH """ Get the _flow pass. """ c = Controller() object_id_0 = c.get_unique_id() object_id_1 = c.get_unique_id() object_id_2 = c.get_uniq...
39.803922
85
0.565025
281
2,030
3.765125
0.298932
0.166352
0.075614
0.089792
0.305293
0.226843
0.153119
0.153119
0.062382
0.062382
0
0.048679
0.291626
2,030
50
86
40.6
0.687065
0.019704
0
0
0
0
0.081591
0.022947
0
0
0
0
0
1
0
false
0.025
0.1
0
0.1
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
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
82ac7d1720a0d22103d819e764e895c0a4bca209
2,844
py
Python
main.py
pepetox/gae-angular-materialize
c6aee16dcc2eba75a254d783661e3115e492faa8
[ "MIT" ]
1
2015-10-18T13:48:23.000Z
2015-10-18T13:48:23.000Z
main.py
pepetox/gae-angular-materialize
c6aee16dcc2eba75a254d783661e3115e492faa8
[ "MIT" ]
null
null
null
main.py
pepetox/gae-angular-materialize
c6aee16dcc2eba75a254d783661e3115e492faa8
[ "MIT" ]
null
null
null
# Copyright 2013 Google, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
26.830189
128
0.619902
347
2,844
5.040346
0.420749
0.034305
0.029731
0.03259
0.173242
0.145798
0.113779
0.113779
0.080618
0.080618
0
0.007006
0.247187
2,844
105
129
27.085714
0.809902
0.200422
0
0.222222
0
0
0.100487
0
0
0
0
0
0
1
0.126984
false
0
0.063492
0.015873
0.301587
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
82b3f2c4319142d22b0411ed2f4d9af5e7d4070c
1,955
py
Python
config.py
dhkim2810/MaskedDatasetCondensation
f52144e9cd68e46b4ebdbcaf96829edb732b79ae
[ "Apache-2.0" ]
null
null
null
config.py
dhkim2810/MaskedDatasetCondensation
f52144e9cd68e46b4ebdbcaf96829edb732b79ae
[ "Apache-2.0" ]
null
null
null
config.py
dhkim2810/MaskedDatasetCondensation
f52144e9cd68e46b4ebdbcaf96829edb732b79ae
[ "Apache-2.0" ]
null
null
null
def get_default_convnet_setting(): net_width, net_depth, net_act, net_norm, net_pooling = 128, 3, 'relu', 'instancenorm', 'avgpooling' return net_width, net_depth, net_act, net_norm, net_pooling def get_loops(ipc): # Get the two hyper-parameters of outer-loop and inner-loop. # The following values are ...
45.465116
103
0.653708
263
1,955
4.631179
0.372624
0.081281
0.096059
0.118227
0.064039
0.064039
0.064039
0.064039
0.064039
0.064039
0
0.037723
0.22711
1,955
43
104
45.465116
0.768365
0.167263
0
0.052632
0
0
0.183447
0
0
0
0
0
0
1
0.078947
false
0
0
0
0.157895
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
82b41b0e9cd71d4a56a4ea2a15f286f90fd054f6
4,324
py
Python
jgem/dataset/__init__.py
kensugino/JUGEMu
3ebf19c96e41f1c90d63d772fd4c9c5cc3d6886f
[ "MIT" ]
null
null
null
jgem/dataset/__init__.py
kensugino/JUGEMu
3ebf19c96e41f1c90d63d772fd4c9c5cc3d6886f
[ "MIT" ]
null
null
null
jgem/dataset/__init__.py
kensugino/JUGEMu
3ebf19c96e41f1c90d63d772fd4c9c5cc3d6886f
[ "MIT" ]
null
null
null
""" Expression Dataset for analysis of matrix (RNASeq/microarray) data with annotations """ import pandas as PD import numpy as N from matplotlib import pylab as P from collections import OrderedDict from ast import literal_eval # from ..plot.matrix import matshow_clustered class ExpressionSet(object): def...
35.442623
124
0.612165
618
4,324
4.168285
0.260518
0.023292
0.027174
0.027174
0.337733
0.266693
0.195652
0.159938
0.132764
0.048137
0
0.013608
0.235199
4,324
121
125
35.735537
0.765346
0.177382
0
0.120482
0
0
0.035869
0
0
0
0
0
0
1
0.108434
false
0.024096
0.060241
0
0.253012
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
82b57b3ca054137769bfb034aa43dd12bdcde046
9,653
py
Python
cenv_script/cenv_script.py
technic/cenv_script
6c3a9047faec4723f61ad5795f0d8019c0de03ec
[ "MIT" ]
null
null
null
cenv_script/cenv_script.py
technic/cenv_script
6c3a9047faec4723f61ad5795f0d8019c0de03ec
[ "MIT" ]
null
null
null
cenv_script/cenv_script.py
technic/cenv_script
6c3a9047faec4723f61ad5795f0d8019c0de03ec
[ "MIT" ]
null
null
null
"""Main module.""" import json import os import re import shutil import subprocess import sys from pathlib import Path from typing import List, Optional import yaml ENV_FILE = "environment.yml" class CondaEnvException(Exception): pass def find_environment_file(): p = Path(os.getcwd()).resolve() while...
33.171821
115
0.574536
1,193
9,653
4.464376
0.181894
0.030041
0.022531
0.021404
0.44893
0.385843
0.362749
0.325573
0.299662
0.273939
0
0.003328
0.315135
9,653
290
116
33.286207
0.802299
0.080804
0
0.292035
0
0.004425
0.159275
0.005815
0
0
0
0
0
1
0.10177
false
0.004425
0.039823
0.00885
0.256637
0.075221
0
0
0
null
0
0
0
0
0
0
0
0
0
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
82b9e4c2e702d4c81505c6425db3c75c45108c10
2,191
py
Python
clearml/backend_interface/setupuploadmixin.py
arielleoren/clearml
01f0be9895272c483129bab784a43cbd002022a7
[ "Apache-2.0" ]
2,097
2019-06-11T14:36:25.000Z
2020-12-21T03:52:59.000Z
clearml/backend_interface/setupuploadmixin.py
arielleoren/clearml
01f0be9895272c483129bab784a43cbd002022a7
[ "Apache-2.0" ]
347
2020-12-23T22:38:48.000Z
2022-03-31T20:01:06.000Z
clearml/backend_interface/setupuploadmixin.py
arielleoren/clearml
01f0be9895272c483129bab784a43cbd002022a7
[ "Apache-2.0" ]
256
2019-06-11T14:36:28.000Z
2020-12-18T08:32:47.000Z
from abc import abstractproperty from ..backend_config.bucket_config import S3BucketConfig from ..storage.helper import StorageHelper class SetupUploadMixin(object): log = abstractproperty() storage_uri = abstractproperty() def setup_upload( self, bucket_name, host=None, access_key=None, sec...
45.645833
167
0.665906
285
2,191
5.035088
0.326316
0.04878
0.019512
0.025087
0.24878
0.236934
0.236934
0.236934
0.236934
0.16446
0
0.006177
0.261068
2,191
47
168
46.617021
0.880173
0.525787
0
0
0
0
0.056779
0.033604
0
0
0
0
0
1
0.05
false
0
0.15
0
0.35
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
82ba0e0fc40394fedf62fac1ec2c951372c86121
2,872
py
Python
tests/test_parser.py
szymon6927/parcels-parser
c2cee7a75edfbb0abba0fc4ea99c7a84e24e3749
[ "MIT" ]
null
null
null
tests/test_parser.py
szymon6927/parcels-parser
c2cee7a75edfbb0abba0fc4ea99c7a84e24e3749
[ "MIT" ]
null
null
null
tests/test_parser.py
szymon6927/parcels-parser
c2cee7a75edfbb0abba0fc4ea99c7a84e24e3749
[ "MIT" ]
null
null
null
import os import unittest import pandas as pd from application.ParcelsParser import ParcelsParser class TestPracelsParser(unittest.TestCase): def setUp(self): self.parser = ParcelsParser("./test_cadastral_parcels.tsv", "cadastral_parcel_identifier") def test_if_file_exist(self): file_path = ...
37.789474
99
0.683496
371
2,872
4.978437
0.202156
0.086627
0.077423
0.046021
0.413102
0.35896
0.343801
0.305901
0.305901
0.305901
0
0.005166
0.191156
2,872
75
100
38.293333
0.789927
0
0
0.254545
0
0
0.091922
0.030989
0
0
0
0
0.236364
1
0.127273
false
0
0.072727
0
0.218182
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
82bbb29af0b1433647177912df15449203606a08
3,322
py
Python
sd_maskrcnn/sd_maskrcnn/gop/src/eval_bnd.py
marctuscher/cv_pipeline
b641423e72ea292139a5e35a411e30c1e21c7070
[ "MIT" ]
1
2021-03-28T17:46:45.000Z
2021-03-28T17:46:45.000Z
sd-maskrcnn/sd_maskrcnn/gop/src/eval_bnd.py
jayef0/cv_pipeline
dc3b79062174f583a3a90ac8deea918c498c0dd5
[ "MIT" ]
null
null
null
sd-maskrcnn/sd_maskrcnn/gop/src/eval_bnd.py
jayef0/cv_pipeline
dc3b79062174f583a3a90ac8deea918c498c0dd5
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 """ Copyright (c) 2014, Philipp Krähenbühl All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright ...
53.580645
219
0.654425
551
3,322
3.891107
0.375681
0.05597
0.035914
0.041978
0.190299
0.143657
0.081157
0.081157
0.081157
0.081157
0
0.046863
0.184226
3,322
61
220
54.459016
0.74428
0.491872
0
0
0
0.035714
0.113594
0
0
0
0
0
0
1
0
false
0
0.107143
0
0.107143
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
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
82bc8b7d1c31f1a7b50154e6eb1646fd9530ca29
1,473
py
Python
ctr_prediction/datasets/Amazon/AmazonElectronics_x1/convert_amazonelectronics_x1.py
jimzhu/OpenCTR-benchmarks
e8e723cd7a0ef5ddd40e735b85ce7669955a3a99
[ "Apache-2.0" ]
59
2021-10-31T13:59:37.000Z
2022-03-31T12:05:55.000Z
ctr_prediction/datasets/Amazon/AmazonElectronics_x1/convert_amazonelectronics_x1.py
jimzhu/OpenCTR-benchmarks
e8e723cd7a0ef5ddd40e735b85ce7669955a3a99
[ "Apache-2.0" ]
5
2021-12-06T12:11:21.000Z
2022-03-18T06:21:13.000Z
ctr_prediction/datasets/Amazon/AmazonElectronics_x1/convert_amazonelectronics_x1.py
jimzhu/OpenCTR-benchmarks
e8e723cd7a0ef5ddd40e735b85ce7669955a3a99
[ "Apache-2.0" ]
17
2021-10-21T10:44:09.000Z
2022-03-24T11:35:09.000Z
import pickle import pandas as pd # cat aa ab ac > dataset.pkl from https://github.com/zhougr1993/DeepInterestNetwork with open('dataset.pkl', 'rb') as f: train_set = pickle.load(f, encoding='bytes') test_set = pickle.load(f, encoding='bytes') cate_list = pickle.load(f, encoding='bytes') user_count, i...
42.085714
119
0.692464
242
1,473
3.96281
0.227273
0.050052
0.052138
0.114703
0.553702
0.476538
0.343066
0.343066
0.343066
0.343066
0
0.015055
0.143245
1,473
34
120
43.323529
0.744849
0.05499
0
0.214286
0
0
0.110871
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
82c010e02b691e4b2aad5f24f459cf89f58d643c
6,265
py
Python
Tableau-Supported/Python/insert_data_with_expressions.py
TableauKyle/hyper-api-samples
37c21c988122c6dbfb662d9ec72d90c4cd30e4cc
[ "MIT" ]
73
2020-04-29T15:41:55.000Z
2022-03-12T04:55:24.000Z
Tableau-Supported/Python/insert_data_with_expressions.py
TableauKyle/hyper-api-samples
37c21c988122c6dbfb662d9ec72d90c4cd30e4cc
[ "MIT" ]
32
2020-06-10T00:47:20.000Z
2022-03-28T11:19:00.000Z
Tableau-Supported/Python/insert_data_with_expressions.py
TableauKyle/hyper-api-samples
37c21c988122c6dbfb662d9ec72d90c4cd30e4cc
[ "MIT" ]
54
2020-05-01T20:01:51.000Z
2022-03-28T11:11:00.000Z
# ----------------------------------------------------------------------------- # # This file is the copyrighted property of Tableau Software and is protected # by registered patents and other applicable U.S. and international laws and # regulations. # # You may adapt this file and modify it to fit into your context an...
53.547009
160
0.653312
735
6,265
5.45034
0.297959
0.024963
0.049925
0.055417
0.277084
0.190714
0.181727
0.170494
0.170494
0.121068
0
0.009255
0.241181
6,265
116
161
54.008621
0.833403
0.420112
0
0.067797
0
0.016949
0.20162
0.04496
0
0
0
0
0
1
0.016949
false
0
0.050847
0
0.067797
0.084746
0
0
0
null
0
0
0
0
0
0
0
0
0
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
82c029ca3481da78e9c1db45150fc5d81b30aeac
2,234
py
Python
dumplogs/bin.py
xinhuagu/dumplogs
5580ff5fe4b054ab9a007e1a023b01fa71917f80
[ "BSD-3-Clause" ]
1
2021-05-02T11:51:45.000Z
2021-05-02T11:51:45.000Z
dumplogs/bin.py
xinhuagu/dumplogs
5580ff5fe4b054ab9a007e1a023b01fa71917f80
[ "BSD-3-Clause" ]
null
null
null
dumplogs/bin.py
xinhuagu/dumplogs
5580ff5fe4b054ab9a007e1a023b01fa71917f80
[ "BSD-3-Clause" ]
null
null
null
import boto3 import argparse import os,sys def main(argv=None): argv = (argv or sys.argv)[1:] parser = argparse.ArgumentParser(description='dump all aws log streams into files') parser.add_argument("--profile", dest="aws_profile", type=str, ...
29.394737
87
0.581021
237
2,234
5.240506
0.375527
0.057971
0.041063
0.045089
0.127214
0.127214
0.127214
0.127214
0.127214
0.127214
0
0.004534
0.308863
2,234
75
88
29.786667
0.79987
0
0
0.189655
0
0
0.120018
0
0
0
0
0
0
1
0.017241
false
0
0.051724
0
0.068966
0.051724
0
0
0
null
0
0
0
0
0
0
0
0
0
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
82c2685c2ffd7e5c7861dd6a5e7721b4f4a54e32
5,239
py
Python
ch5/gaussian_mixture.py
susantamoh84/HandsOn-Unsupervised-Learning-with-Python
056953d0462923a674faf0a23b27239bc9f69975
[ "MIT" ]
25
2018-09-03T11:12:49.000Z
2022-03-13T01:42:57.000Z
Chapter05/gaussian_mixture.py
AIRob/HandsOn-Unsupervised-Learning-with-Python
1dbe9b3fdf5255f610e0c9c52a82935baa6a4a3e
[ "MIT" ]
null
null
null
Chapter05/gaussian_mixture.py
AIRob/HandsOn-Unsupervised-Learning-with-Python
1dbe9b3fdf5255f610e0c9c52a82935baa6a4a3e
[ "MIT" ]
35
2018-09-15T11:06:12.000Z
2021-12-08T04:28:55.000Z
import numpy as np import matplotlib.pyplot as plt import seaborn as sns from sklearn.datasets import make_blobs from sklearn.mixture import GaussianMixture from sklearn.cluster import KMeans from matplotlib.patches import Ellipse # For reproducibility np.random.seed(1000) nb_samples = 300 nb_centers = 2 if __na...
32.339506
119
0.604314
873
5,239
3.502864
0.190149
0.015697
0.019621
0.022891
0.452583
0.391105
0.303139
0.215173
0.149117
0
0
0.079684
0.202329
5,239
161
120
32.540373
0.65207
0.050773
0
0.107843
0
0.029412
0.103407
0
0
0
0
0
0
1
0
false
0
0.068627
0
0.068627
0.098039
0
0
0
null
0
0
0
0
0
0
0
0
0
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
82c29ca8b328d9cb75ca5d391549720bbf654d8a
5,771
py
Python
shipyard2/shipyard2/rules/images/merge_image.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
3
2016-01-04T06:28:52.000Z
2020-09-20T13:18:40.000Z
shipyard2/shipyard2/rules/images/merge_image.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
shipyard2/shipyard2/rules/images/merge_image.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
__all__ = [ 'DEFAULT_FILTERS', 'DEFAULT_XAR_FILTERS', 'merge_image', ] import contextlib import logging import tempfile from pathlib import Path from g1 import scripts from g1.containers import models from g1.containers import scripts as ctr_scripts from . import utils LOG = logging.getLogger(__name__) ...
34.35119
78
0.612199
715
5,771
4.841958
0.325874
0.066436
0.036395
0.012709
0.181398
0.105142
0.064125
0.036973
0.017909
0
0
0.002641
0.212615
5,771
167
79
34.556886
0.759243
0.283313
0
0.016393
0
0
0.361951
0.066829
0
0
0
0
0
1
0.016393
false
0.016393
0.065574
0.008197
0.090164
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
82c30affdd6735cd19f09c9fa98712ebb317fd91
289
py
Python
python3/best_time_stock1.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
1
2020-10-08T09:17:40.000Z
2020-10-08T09:17:40.000Z
python3/best_time_stock1.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
null
null
null
python3/best_time_stock1.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
null
null
null
""" Space : O(1) Time : O(n) """ class Solution: def maxProfit(self, prices: List[int]) -> int: start, dp = 10**10, 0 for i in prices: print(start) start = min(start, i) dp = max(dp, i-start) return dp
19.266667
50
0.439446
37
289
3.432432
0.648649
0
0
0
0
0
0
0
0
0
0
0.036145
0.425606
289
15
51
19.266667
0.728916
0.100346
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
82c36eb8e029351535cbcf82344721060c30bebf
3,534
py
Python
foreverbull/foreverbull.py
quantfamily/foreverbull-python
4f8144b6d964e9c0d1209f0421dc960b82a15400
[ "Apache-2.0" ]
null
null
null
foreverbull/foreverbull.py
quantfamily/foreverbull-python
4f8144b6d964e9c0d1209f0421dc960b82a15400
[ "Apache-2.0" ]
9
2021-11-24T10:45:27.000Z
2022-02-26T19:12:47.000Z
foreverbull/foreverbull.py
quantfamily/foreverbull-python
4f8144b6d964e9c0d1209f0421dc960b82a15400
[ "Apache-2.0" ]
null
null
null
import logging import threading from concurrent.futures import ThreadPoolExecutor from multiprocessing import Queue from foreverbull.worker.worker import WorkerHandler from foreverbull_core.models.finance import EndOfDay from foreverbull_core.models.socket import Request from foreverbull_core.models.worker import Inst...
36.061224
91
0.649689
375
3,534
5.944
0.314667
0.053836
0.051144
0.033647
0.080754
0.031404
0.031404
0
0
0
0
0.00077
0.265139
3,534
97
92
36.43299
0.857528
0
0
0.154762
0
0
0.087436
0
0
0
0
0
0
1
0.095238
false
0.011905
0.130952
0
0.297619
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
82c418de34320061d50470074e4e4e6e0fe9752b
704
py
Python
scopus/tests/test_AffiliationSearch.py
crew102/scopus
d8791c162cef4c2f830d983b435333d9d8eaf472
[ "MIT" ]
null
null
null
scopus/tests/test_AffiliationSearch.py
crew102/scopus
d8791c162cef4c2f830d983b435333d9d8eaf472
[ "MIT" ]
null
null
null
scopus/tests/test_AffiliationSearch.py
crew102/scopus
d8791c162cef4c2f830d983b435333d9d8eaf472
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `AffiliationSearch` module.""" from collections import namedtuple from nose.tools import assert_equal, assert_true import scopus s = scopus.AffiliationSearch('af-id(60021784)', refresh=True) def test_affiliations(): received = s.affiliations asser...
29.333333
79
0.691761
82
704
5.878049
0.621951
0.045643
0
0
0
0
0
0
0
0
0
0.048276
0.176136
704
23
80
30.608696
0.782759
0.113636
0
0
0
0
0.218801
0
0
0
0
0
0.230769
1
0.076923
false
0
0.230769
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
82c61ef5a2ffb92917f588c48559df6bc3be2564
10,832
py
Python
libs3/maxwellccs.py
tmpbci/LJ
4c40e2ddf862f94dcfeb3cc48c41aad44a3a8d34
[ "CNRI-Python" ]
7
2019-03-20T00:09:14.000Z
2022-03-06T23:18:20.000Z
libs3/maxwellccs.py
tmpbci/LJ
4c40e2ddf862f94dcfeb3cc48c41aad44a3a8d34
[ "CNRI-Python" ]
null
null
null
libs3/maxwellccs.py
tmpbci/LJ
4c40e2ddf862f94dcfeb3cc48c41aad44a3a8d34
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Maxwell Macros v0.7.0 by Sam Neurohack from /team/laser Launchpad set a "current path" """ from OSC3 import OSCServer, OSCClient, OSCMessage import time import numpy as np import rtmidi from rtmidi.midiutil import open_midiinput from threading import Thread from r...
26.745679
110
0.625185
1,304
10,832
5.185583
0.203988
0.026619
0.035492
0.056196
0.588583
0.530612
0.497338
0.458592
0.379178
0.359065
0
0.042326
0.212611
10,832
404
111
26.811881
0.750498
0.114753
0
0.394309
0
0
0.171904
0.0066
0
0
0
0
0
1
0.150407
false
0.004065
0.036585
0
0.211382
0.097561
0
0
0
null
0
0
0
0
0
0
0
0
0
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
82c74e30b862d202367459727b08bf47fdb074f4
1,762
py
Python
osbuild/dist.py
dnarvaez/osbuild
08031487481ba23597f19cb3e106628e5c9d440d
[ "Apache-2.0" ]
null
null
null
osbuild/dist.py
dnarvaez/osbuild
08031487481ba23597f19cb3e106628e5c9d440d
[ "Apache-2.0" ]
1
2016-11-13T01:04:18.000Z
2016-11-13T01:04:18.000Z
osbuild/dist.py
dnarvaez/osbuild
08031487481ba23597f19cb3e106628e5c9d440d
[ "Apache-2.0" ]
2
2015-01-06T20:57:55.000Z
2015-11-15T20:14:09.000Z
# Copyright 2013 Daniel Narvaez # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
25.536232
74
0.715096
244
1,762
5.012295
0.45082
0.04906
0.039248
0.026165
0.075225
0
0
0
0
0
0
0.00563
0.19353
1,762
68
75
25.911765
0.855032
0.312145
0
0.151515
0
0
0.062657
0
0
0
0
0
0
1
0.121212
false
0
0.151515
0
0.484848
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
82c7e82524f111efe667928715ea87dcc4155b43
1,194
py
Python
neural_net/game_status.py
Ipgnosis/tic_tac_toe
e1519b702531965cc647ff37c1c46d72f4b3b24e
[ "BSD-3-Clause" ]
null
null
null
neural_net/game_status.py
Ipgnosis/tic_tac_toe
e1519b702531965cc647ff37c1c46d72f4b3b24e
[ "BSD-3-Clause" ]
4
2021-03-25T19:52:40.000Z
2021-12-12T17:57:11.000Z
neural_net/game_status.py
Ipgnosis/tic_tac_toe
e1519b702531965cc647ff37c1c46d72f4b3b24e
[ "BSD-3-Clause" ]
null
null
null
# node to capture and communicate game status # written by Russell on 5/18 class Game_state(): node_weight = 1 # node_bias = 1 # not going to use this for now, but may need it later list_of_moves = [] def __init__(self, node_list): self.node_list = node_list def num_moves(self): ...
24.367347
101
0.569514
173
1,194
3.699422
0.358382
0.1125
0.15
0.117188
0.253125
0.128125
0.128125
0.128125
0.128125
0.128125
0
0.014907
0.325796
1,194
48
102
24.875
0.780124
0.201005
0
0.08
0
0
0.002112
0
0
0
0
0
0
1
0.2
false
0
0
0
0.52
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
82c885deedbc0d14255bfcc8dfea36b0a64e58d5
13,340
py
Python
alphatrading/system/db_methods/method_sqlite3.py
LoannData/Q26_AlphaTrading
b8e6983e59f942352150f76541d880143cca4478
[ "MIT" ]
null
null
null
alphatrading/system/db_methods/method_sqlite3.py
LoannData/Q26_AlphaTrading
b8e6983e59f942352150f76541d880143cca4478
[ "MIT" ]
null
null
null
alphatrading/system/db_methods/method_sqlite3.py
LoannData/Q26_AlphaTrading
b8e6983e59f942352150f76541d880143cca4478
[ "MIT" ]
null
null
null
""" """ import sqlite3 import numpy as np import math class SQL: def __init__(self): self.path = None self.connexion = None self.cursor = None self.verbose = False def to_SQL_type(self, type_, mode = "format"): """ Function allowing to...
32.378641
139
0.422414
1,164
13,340
4.752577
0.178694
0.015184
0.013015
0.029103
0.358098
0.338756
0.290672
0.279826
0.255242
0.232466
0
0.005025
0.448051
13,340
411
140
32.457421
0.746299
0.2994
0
0.378378
0
0
0.047092
0
0.045045
0
0
0
0
1
0.054054
false
0
0.013514
0
0.193694
0.004505
0
0
0
null
0
0
0
0
0
0
0
0
0
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
82ca9321fb77ad0b8c97cc3c98eb832716ddecc4
4,832
py
Python
var/spack/repos/builtin/packages/autoconf/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/autoconf/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/autoconf/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import re class Autoconf(AutotoolsPackage, GNUMirrorPackage): """Autoconf -- system configuration part of autotools"...
45.158879
112
0.657078
544
4,832
5.792279
0.4375
0.007617
0.013964
0.010156
0.124722
0.124722
0.124722
0.124722
0.068232
0.068232
0
0.135193
0.228477
4,832
106
113
45.584906
0.710032
0.280422
0
0.03125
0
0.0625
0.418092
0.175413
0
0
0
0
0
1
0.09375
false
0.015625
0.015625
0.015625
0.234375
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
82cb4d12dfd598eacff3048f5dbbafb527f62c06
11,563
py
Python
seg/segmentor/tools/module_runner.py
Frank-Abagnal/HRFormer
d7d362770de8648f8e0a379a71cee25f42954503
[ "MIT" ]
254
2021-08-13T10:05:22.000Z
2022-03-25T09:21:45.000Z
seg/segmentor/tools/module_runner.py
Sense-X/HRFormer
1245b88b5824fbd8cdb358b5ee909a4e537a2ef5
[ "MIT" ]
17
2021-09-08T01:40:49.000Z
2022-03-23T10:53:47.000Z
seg/segmentor/tools/module_runner.py
Sense-X/HRFormer
1245b88b5824fbd8cdb358b5ee909a4e537a2ef5
[ "MIT" ]
48
2021-08-13T14:06:58.000Z
2022-03-30T02:41:26.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: Donny You(youansheng@gmail.com) # Some methods used by main methods. from __future__ import absolute_import from __future__ import division from __future__ import print_function import math import os from collections import OrderedDict import torch import torch...
41.894928
115
0.585488
1,357
11,563
4.813559
0.198968
0.121249
0.105634
0.028628
0.330986
0.254593
0.183711
0.164115
0.137477
0.126454
0
0.0055
0.292398
11,563
275
116
42.047273
0.792838
0.103433
0
0.14359
0
0
0.130916
0.002156
0
0
0
0
0
1
0.061538
false
0
0.066667
0.005128
0.184615
0.005128
0
0
0
null
0
0
0
0
0
0
0
0
0
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
82cc626afaea4df2938aee10cb59917cc59cdc28
1,861
py
Python
scripts/si_figs.py
gbirzu/density-dependent_dispersal_growth
edd1207f57b63e2827af385d4e868306ff308746
[ "MIT" ]
null
null
null
scripts/si_figs.py
gbirzu/density-dependent_dispersal_growth
edd1207f57b63e2827af385d4e868306ff308746
[ "MIT" ]
null
null
null
scripts/si_figs.py
gbirzu/density-dependent_dispersal_growth
edd1207f57b63e2827af385d4e868306ff308746
[ "MIT" ]
null
null
null
import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import pickle import scipy.stats as stats data_path = '../data/het_average.dat' output_dir = '../figures/' # Configure matplotlib environment helvetica_scale_factor = 0.92 # rescale Helvetica to other fonts of same size mpl.rcParams['font.siz...
33.836364
119
0.703923
269
1,861
4.63197
0.446097
0.097111
0.064205
0.043339
0.15008
0.049759
0
0
0
0
0
0.0178
0.154756
1,861
54
120
34.462963
0.774317
0.052123
0
0.04878
0
0
0.156339
0.013076
0
0
0
0
0
1
0.04878
false
0
0.121951
0
0.195122
0.073171
0
0
0
null
0
0
0
0
0
0
0
0
0
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
82cd32f83dde9f87b3ac04ec47ec6fefab6101d7
7,532
py
Python
language.py
sanine-a/dream-atlas
cd44c43ec6cf5e7a95ae231ba7174a6891d93474
[ "MIT" ]
null
null
null
language.py
sanine-a/dream-atlas
cd44c43ec6cf5e7a95ae231ba7174a6891d93474
[ "MIT" ]
null
null
null
language.py
sanine-a/dream-atlas
cd44c43ec6cf5e7a95ae231ba7174a6891d93474
[ "MIT" ]
null
null
null
from random import random, choice, seed, shuffle, randint from math import ceil import copy target = [ 2, 2, 3, 1, 4, 5 ] consonants_base = [ 'p', 't', 'k', 'm', 'n' ] vowels = [ [ 'a', 'i', 'u' ], [ 'a', 'i', 'u', 'e', 'o' ], [ 'a', 'A', 'i', 'I', 'u', 'U', 'e', 'E', 'o', 'O' ] ] consonants_ex...
34.392694
175
0.454461
886
7,532
3.831828
0.21219
0.026804
0.021208
0.038881
0.157879
0.086009
0.058321
0.038881
0.017673
0.017673
0
0.01332
0.352098
7,532
218
176
34.550459
0.682377
0.016994
0
0.158192
0
0
0.064678
0
0
0
0
0
0
1
0.079096
false
0
0.016949
0.016949
0.20904
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
82d391d63340bb25ffc76c9865651669de389703
8,452
py
Python
fbm-scraper.py
cbdelavenne/fb-messenger-media-scraper
ff4ed228f3520f208e048e34ae24d7576b0089bc
[ "MIT" ]
8
2019-11-23T17:45:11.000Z
2021-05-27T10:41:47.000Z
fbm-scraper.py
cbdelavenne/fb-messenger-media-scraper
ff4ed228f3520f208e048e34ae24d7576b0089bc
[ "MIT" ]
10
2019-11-23T17:41:22.000Z
2022-01-03T11:10:50.000Z
fbm-scraper.py
cbdelavenne/fb-messenger-media-scraper
ff4ed228f3520f208e048e34ae24d7576b0089bc
[ "MIT" ]
4
2020-03-21T23:24:40.000Z
2022-02-20T10:40:38.000Z
import os import requests import time import uuid import configparser import datetime import fbchat import re from fbchat import Client, ImageAttachment from fbchat import FBchatException from pathlib import Path politeness_index = 0.5 # ;) epoch = datetime.datetime(1970, 1, 1) # Hack to get the login to work, see:...
41.229268
139
0.614411
1,019
8,452
4.882237
0.242395
0.030955
0.032563
0.018492
0.14995
0.100905
0.048643
0.048643
0.027739
0.027739
0
0.010537
0.292593
8,452
204
140
41.431373
0.821542
0.131921
0
0.053435
0
0.015267
0.186237
0.008169
0
0
0
0
0
1
0.022901
false
0.015267
0.083969
0
0.129771
0.10687
0
0
0
null
0
0
0
0
0
0
0
0
0
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
82d3afd1c39a5492eb62a1c160ebc7e3bbf21e20
1,565
py
Python
guru/users/models.py
Jeromeschmidt/Guru
3128a539e55b46afceb33b59c0bafaec7e9f630a
[ "MIT" ]
null
null
null
guru/users/models.py
Jeromeschmidt/Guru
3128a539e55b46afceb33b59c0bafaec7e9f630a
[ "MIT" ]
1
2021-02-26T02:49:34.000Z
2021-02-26T02:49:34.000Z
guru/users/models.py
Jeromeschmidt/Guru
3128a539e55b46afceb33b59c0bafaec7e9f630a
[ "MIT" ]
1
2020-02-24T18:09:00.000Z
2020-02-24T18:09:00.000Z
from django.contrib.auth.models import AbstractUser from django.db.models import (BooleanField, CASCADE, CharField, FloatField, IntegerField, ManyToManyField, Model, OneToOneField, PositiveSmallIntegerField) from django.contrib.postgres.fields import ArrayFiel...
44.714286
75
0.676677
181
1,565
5.734807
0.491713
0.057803
0.049133
0.049133
0.192678
0.136802
0.073218
0.073218
0
0
0
0.014155
0.232588
1,565
34
76
46.029412
0.850125
0.192971
0
0
0
0
0.025498
0
0
0
0
0
0
1
0.041667
false
0
0.25
0.041667
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
82d45629fe3b78bf615a134ee2b08fe22d31ec28
4,544
py
Python
gaetk2/tools/auth0tools.py
mdornseif/appengine-toolkit2
47ee6bf99b8e461ee64eae75bf24fb462d99b0ab
[ "MIT" ]
1
2018-08-16T16:15:30.000Z
2018-08-16T16:15:30.000Z
gaetk2/tools/auth0tools.py
mdornseif/appengine-toolkit2
47ee6bf99b8e461ee64eae75bf24fb462d99b0ab
[ "MIT" ]
3
2018-08-14T09:52:11.000Z
2021-12-13T19:54:07.000Z
gaetk2/tools/auth0tools.py
mdornseif/appengine-toolkit2
47ee6bf99b8e461ee64eae75bf24fb462d99b0ab
[ "MIT" ]
1
2018-09-28T05:55:27.000Z
2018-09-28T05:55:27.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """gaetk2.tools.auth0.py Tools for working with auth0 Created by Maximillian Dornseif on 2017-12-05. Copyright 2017 HUDROA. MIT Licensed. """ from __future__ import unicode_literals import logging from google.appengine.api import memcache from auth0.v3.authentication ...
39.172414
107
0.590889
493
4,544
5.300203
0.31643
0.042863
0.021431
0.029085
0.041332
0.041332
0.041332
0.041332
0.041332
0
0
0.01962
0.293354
4,544
115
108
39.513043
0.794145
0.09265
0
0.131868
0
0
0.163335
0.011702
0
0
0
0
0.021978
1
0.021978
false
0.010989
0.076923
0
0.153846
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
82d6583dc3d6537a4f4d2769235a1441edc42642
705
py
Python
Q56MergeIntervals.py
ChenliangLi205/LeetCode
6c547c338eb05042cb68f57f737dce483964e2fd
[ "MIT" ]
null
null
null
Q56MergeIntervals.py
ChenliangLi205/LeetCode
6c547c338eb05042cb68f57f737dce483964e2fd
[ "MIT" ]
null
null
null
Q56MergeIntervals.py
ChenliangLi205/LeetCode
6c547c338eb05042cb68f57f737dce483964e2fd
[ "MIT" ]
null
null
null
# Definition for an interval. # class Interval: # def __init__(self, s=0, e=0): # self.start = s # self.end = e class Solution: def merge(self, intervals): """ :type intervals: List[Interval] :rtype: List[Interval] """ if len(intervals) <= 1: ...
28.2
49
0.520567
79
705
4.594937
0.455696
0.057851
0
0
0
0
0
0
0
0
0
0.013393
0.364539
705
24
50
29.375
0.796875
0.251064
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0
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
82d79ad0214596b7ecad4fe78d6e48cdeddf92f7
843
py
Python
.github/scripts/check-status.py
antmicro/f4pga-arch-defs
dac6ffd8890227ea541ee892549e41c68588ad99
[ "ISC" ]
null
null
null
.github/scripts/check-status.py
antmicro/f4pga-arch-defs
dac6ffd8890227ea541ee892549e41c68588ad99
[ "ISC" ]
78
2022-03-01T19:40:20.000Z
2022-03-31T19:56:24.000Z
.github/scripts/check-status.py
antmicro/f4pga-arch-defs
dac6ffd8890227ea541ee892549e41c68588ad99
[ "ISC" ]
null
null
null
#!/usr/bin/env python3 from sys import argv from pathlib import Path from re import compile as re_compile PACKAGE_RE = re_compile("symbiflow-arch-defs-([a-zA-Z0-9_-]+)-([a-z0-9])") with (Path(__file__).parent.parent.parent / 'packages.list').open('r') as rptr: for artifact in rptr.read().splitlines(): m ...
35.125
94
0.622776
111
843
4.612613
0.540541
0.107422
0.099609
0
0
0
0
0
0
0
0
0.01072
0.225386
843
23
95
36.652174
0.773354
0.024911
0
0
0
0.058824
0.360536
0.186358
0
0
0
0
0.058824
1
0
false
0
0.176471
0
0.176471
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
82d83bbbc397d5fb8c89450eac58244503912c31
500
py
Python
DocOCR/urls.py
trangnm58/DocOCR
7ec6087323cf2d06906878c55be236fb1950ce57
[ "Apache-2.0" ]
null
null
null
DocOCR/urls.py
trangnm58/DocOCR
7ec6087323cf2d06906878c55be236fb1950ce57
[ "Apache-2.0" ]
null
null
null
DocOCR/urls.py
trangnm58/DocOCR
7ec6087323cf2d06906878c55be236fb1950ce57
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url, include urlpatterns = [ url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')), url(r'^api/viet_ocr/', include('viet_ocr.api.urls', namespace="viet_ocr-api")), url(r'^api/post_process/', include('post_process.api.urls', namespace="post_process-api"...
45.454545
95
0.7
75
500
4.48
0.266667
0.059524
0.104167
0.089286
0.10119
0
0
0
0
0
0
0
0.092
500
10
96
50
0.740088
0
0
0
0
0
0.466
0.042
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
82d9c382128c028bc583ab744d986723b6f36dd9
839
py
Python
utils/neuron/models/metrics/multi_task_metrics.py
tsingqguo/ABA
c32edbbe5705b0332a08951b5ee436b5f58c2e70
[ "MIT" ]
12
2021-07-27T07:18:24.000Z
2022-03-09T13:52:20.000Z
utils/neuron/models/metrics/multi_task_metrics.py
tsingqguo/ABA
c32edbbe5705b0332a08951b5ee436b5f58c2e70
[ "MIT" ]
2
2021-08-03T09:21:33.000Z
2021-12-29T14:25:30.000Z
utils/neuron/models/metrics/multi_task_metrics.py
tsingqguo/ABA
c32edbbe5705b0332a08951b5ee436b5f58c2e70
[ "MIT" ]
3
2021-11-18T14:46:40.000Z
2022-01-03T15:47:23.000Z
import torch import torch.nn as nn import neuron.ops as ops from neuron.config import registry @registry.register_module class ReID_Metric(nn.Module): def __init__(self, metric_cls, metric_rank): super(ReID_Metric, self).__init__() self.metric_cls = metric_cls self.metric_rank = metr...
27.064516
62
0.582837
103
839
4.563107
0.456311
0.106383
0.082979
0.07234
0.097872
0
0
0
0
0
0
0.007117
0.330155
839
30
63
27.966667
0.829181
0
0
0
0
0
0.048868
0
0
0
0
0
0
1
0.086957
false
0
0.173913
0
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
82da9d5e6799fe68c63757266b57886cf2eb5dae
3,198
py
Python
incremental-update.py
tarasowski/apache-spark
e42d6abe5fa08ff1e231d16169efaed0e01fc4a9
[ "MIT" ]
1
2019-08-13T09:17:19.000Z
2019-08-13T09:17:19.000Z
incremental-update.py
tarasowski/apache-spark
e42d6abe5fa08ff1e231d16169efaed0e01fc4a9
[ "MIT" ]
null
null
null
incremental-update.py
tarasowski/apache-spark
e42d6abe5fa08ff1e231d16169efaed0e01fc4a9
[ "MIT" ]
null
null
null
from pyspark.sql import SparkSession from pyspark.sql.types import DateType from pyspark.sql.functions import col from pyspark.sql import types as t import sys from pyspark.sql.window import Window from pyspark.sql.functions import spark_partition_id from pyspark.sql import Row def show_partition_id(df): return d...
35.932584
139
0.596936
395
3,198
4.749367
0.417722
0.033582
0.052239
0.031983
0.183369
0.085288
0.085288
0.085288
0.085288
0.085288
0
0.058698
0.270169
3,198
88
140
36.340909
0.745073
0.20075
0
0.2
0
0
0.479167
0.042453
0
0
0
0
0
1
0.016667
false
0
0.133333
0.016667
0.166667
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
82df65585957bc89145bf1319aef1409ff095c3a
3,281
py
Python
src/pywbemReq/tupletree.py
sinbawang/smisarray
698448c7661af1d1a4491e5aeb58825899aff710
[ "MIT" ]
2
2019-03-13T14:02:45.000Z
2020-02-21T02:20:47.000Z
src/pywbemReq/tupletree.py
Foglight/foglight-smis-storage-array-community-cartridge
64c070e6c62c5c8c2052af2b402103f78d72a330
[ "MIT" ]
1
2017-08-10T13:55:17.000Z
2017-09-28T19:56:15.000Z
src/pywbemReq/tupletree.py
Foglight/foglight-smis-storage-array-community-cartridge
64c070e6c62c5c8c2052af2b402103f78d72a330
[ "MIT" ]
null
null
null
# # (C) Copyright 2003,2004 Hewlett-Packard Development Company, L.P. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ...
32.81
73
0.719902
492
3,281
4.723577
0.436992
0.042599
0.036145
0.024527
0.043029
0.043029
0.02926
0
0
0
0
0.007692
0.207559
3,281
99
74
33.141414
0.886154
0.610485
0
0.071429
0
0
0.061224
0
0
0
0
0
0.071429
1
0.071429
false
0
0.071429
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
82e04d672370030e6dd5e6577a1aa78e567b3a27
1,723
py
Python
src/Word.py
AlexandreLadriere/ColorfulWords
48219337946639306a6854ec3b5d8814ce86d609
[ "MIT" ]
null
null
null
src/Word.py
AlexandreLadriere/ColorfulWords
48219337946639306a6854ec3b5d8814ce86d609
[ "MIT" ]
null
null
null
src/Word.py
AlexandreLadriere/ColorfulWords
48219337946639306a6854ec3b5d8814ce86d609
[ "MIT" ]
null
null
null
#!/usr/bin/env python3* import unicodedata class Word: """ Object representation for a word Parameters ---------- text : str word text formatedText : str word text without accent, punctuation, etc (UTF-8) color : List of integers pixel color values in rgb for th...
31.907407
108
0.546721
190
1,723
4.915789
0.447368
0.022484
0.035332
0.044968
0.053533
0
0
0
0
0
0
0.021853
0.336042
1,723
54
109
31.907407
0.79458
0.329658
0
0
0
0
0.036327
0.026236
0
0
0
0
0
1
0.130435
false
0
0.043478
0
0.304348
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
82e0a5642e6f736fc7177658b00015f1cb62d455
2,605
py
Python
LeetCode/Python3/DynamicProgramming/123. Best Time to Buy and Sell Stock III.py
WatsonWangZh/CodingPractice
dc057dd6ea2fc2034e14fd73e07e73e6364be2ae
[ "MIT" ]
11
2019-09-01T22:36:00.000Z
2021-11-08T08:57:20.000Z
LeetCode/Python3/DynamicProgramming/123. Best Time to Buy and Sell Stock III.py
WatsonWangZh/LeetCodePractice
dc057dd6ea2fc2034e14fd73e07e73e6364be2ae
[ "MIT" ]
null
null
null
LeetCode/Python3/DynamicProgramming/123. Best Time to Buy and Sell Stock III.py
WatsonWangZh/LeetCodePractice
dc057dd6ea2fc2034e14fd73e07e73e6364be2ae
[ "MIT" ]
2
2020-05-27T14:58:52.000Z
2020-05-27T15:04:17.000Z
# Say you have an array for which the ith element is the price of a given stock on day i. # Design an algorithm to find the maximum profit. You may complete at most two transactions. # Note: You may not engage in multiple transactions at the same time # (i.e., you must sell the stock before you buy again). # Example ...
36.180556
98
0.558925
378
2,605
3.857143
0.333333
0.030864
0.027435
0.024691
0.116598
0.093278
0
0
0
0
0
0.057175
0.315163
2,605
71
99
36.690141
0.758969
0.721305
0
0
0
0
0.006192
0
0
0
0
0
0
1
0.1
false
0
0
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
82e393c148ab09bc52468154e5d5428989e2e585
5,232
py
Python
pw_build/py/pw_build/copy_from_cipd.py
Tiggerlaboratoriet/pigweed
7d7e7ad6223433f45af680f43ab4d75e23ad3257
[ "Apache-2.0" ]
1
2022-01-13T10:01:05.000Z
2022-01-13T10:01:05.000Z
pw_build/py/pw_build/copy_from_cipd.py
Tiggerlaboratoriet/pigweed
7d7e7ad6223433f45af680f43ab4d75e23ad3257
[ "Apache-2.0" ]
null
null
null
pw_build/py/pw_build/copy_from_cipd.py
Tiggerlaboratoriet/pigweed
7d7e7ad6223433f45af680f43ab4d75e23ad3257
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Pigweed 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 law or agreed to in ...
36.082759
80
0.634939
672
5,232
4.78869
0.31994
0.034183
0.031697
0.023617
0.070851
0.03294
0
0
0
0
0
0.004214
0.274274
5,232
144
81
36.333333
0.843297
0.318043
0
0.083333
0
0
0.208192
0.021469
0
0
0
0.006944
0
1
0.035714
false
0
0.107143
0
0.154762
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
82e3d3ee1d9875b1bc637e5da752761092db4c4c
1,248
py
Python
globomap_api/api/v2/parsers/queries.py
pedrokiefer/globomap-api
68e1e3a623cdb4df78327226eb5c665841d4823f
[ "Apache-2.0" ]
15
2017-08-04T17:09:52.000Z
2021-03-05T18:11:51.000Z
globomap_api/api/v2/parsers/queries.py
pedrokiefer/globomap-api
68e1e3a623cdb4df78327226eb5c665841d4823f
[ "Apache-2.0" ]
2
2017-09-03T23:39:35.000Z
2019-10-07T17:18:35.000Z
globomap_api/api/v2/parsers/queries.py
pedrokiefer/globomap-api
68e1e3a623cdb4df78327226eb5c665841d4823f
[ "Apache-2.0" ]
6
2017-08-09T13:32:38.000Z
2020-01-31T23:28:36.000Z
""" Copyright 2018 Globo.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writ...
26
75
0.710737
168
1,248
5.172619
0.553571
0.069045
0.078251
0.101266
0.168009
0.071346
0
0
0
0
0
0.010902
0.191506
1,248
47
76
26.553191
0.850347
0.439904
0
0.366667
0
0
0.18003
0.07413
0
0
0
0
0
1
0
false
0
0.033333
0
0.033333
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
82e465ccd93333f53c7be0010a34ffe382b2a569
5,354
py
Python
auto_pull_request/parser.py
Ruth-Seven/Auto-git-request
bd058707c174138efed0ffd7109cf70b25796e64
[ "Apache-2.0" ]
2
2021-10-05T11:12:46.000Z
2021-10-05T11:12:56.000Z
auto_pull_request/parser.py
Ruth-Seven/Auto-git-request
bd058707c174138efed0ffd7109cf70b25796e64
[ "Apache-2.0" ]
null
null
null
auto_pull_request/parser.py
Ruth-Seven/Auto-git-request
bd058707c174138efed0ffd7109cf70b25796e64
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # 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, sof...
49.119266
293
0.710497
797
5,354
4.712673
0.283563
0.061502
0.028754
0.025559
0.329073
0.274494
0.213791
0.187167
0.187167
0.187167
0
0.001131
0.174075
5,354
109
294
49.119266
0.847806
0.107396
0
0.079545
0
0.147727
0.583036
0.032962
0
0
0
0
0
1
0.034091
false
0
0.068182
0
0.102273
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
82e67a1fd499cdf5d94a3a3ff757c622620968ef
2,669
py
Python
src/users.py
dtekcth/tvmannen
47d9441ee4000dc3600ae1a28580ba95a5b46a2a
[ "MIT" ]
null
null
null
src/users.py
dtekcth/tvmannen
47d9441ee4000dc3600ae1a28580ba95a5b46a2a
[ "MIT" ]
null
null
null
src/users.py
dtekcth/tvmannen
47d9441ee4000dc3600ae1a28580ba95a5b46a2a
[ "MIT" ]
1
2019-12-25T21:49:16.000Z
2019-12-25T21:49:16.000Z
# Blueprint for user management in /admin/users and /admin/users/delete from tv import login_manager, db from flask_login import LoginManager, current_user, login_user, logout_user, login_required from flask import Blueprint, flash, redirect, render_template, request from data import User from forms import Registratio...
32.156627
91
0.683402
363
2,669
4.92562
0.250689
0.067114
0.085011
0.080537
0.426734
0.378076
0.247204
0.247204
0.247204
0.247204
0
0
0.18846
2,669
82
92
32.54878
0.825485
0.100787
0
0.571429
0
0
0.197742
0
0
0
0
0
0
1
0.047619
false
0.031746
0.079365
0
0.285714
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
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
7d54215d7a89cdc6dee240942d655951555aa1e4
628
py
Python
gubbins/tests/utils_tests.py
doismellburning/django-gubbins
d94e91082adfe2ae7462209a5793b479429d40d9
[ "BSD-2-Clause" ]
null
null
null
gubbins/tests/utils_tests.py
doismellburning/django-gubbins
d94e91082adfe2ae7462209a5793b479429d40d9
[ "BSD-2-Clause" ]
4
2018-12-20T13:02:40.000Z
2018-12-21T16:09:20.000Z
gubbins/tests/utils_tests.py
doismellburning/django-gubbins
d94e91082adfe2ae7462209a5793b479429d40d9
[ "BSD-2-Clause" ]
2
2015-01-05T10:13:42.000Z
2020-05-29T08:17:58.000Z
import unittest from gubbins.utils import append_params class UtilsTest(unittest.TestCase): def test_append_params(self): url = 'http://www.fish.com/dir/page.html' url = append_params(url, {'a': 1, 'b': 'a i'}) expected = 'http://www.fish.com/dir/page.html?a=1&b=a+i' self.asse...
31.4
65
0.603503
90
628
4.111111
0.344444
0.162162
0.118919
0.151351
0.389189
0.364865
0.364865
0.364865
0.364865
0
0
0.020964
0.240446
628
20
66
31.4
0.754717
0
0
0.153846
0
0.153846
0.259141
0
0
0
0
0
0.153846
1
0.153846
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d565d78426b6ee97241efc8582c656e0fcdebc5
4,118
py
Python
custom_components/waste_collection_schedule/waste_collection_schedule/wizard/stadtreinigung_hamburg.py
UBS-P/hacs_waste_collection_schedule
9ce0fd55010bbab3948f1ee0aa5edb4b65b7d866
[ "MIT" ]
142
2020-04-13T18:56:12.000Z
2022-03-30T19:44:08.000Z
custom_components/waste_collection_schedule/waste_collection_schedule/wizard/stadtreinigung_hamburg.py
UBS-P/hacs_waste_collection_schedule
9ce0fd55010bbab3948f1ee0aa5edb4b65b7d866
[ "MIT" ]
138
2020-04-30T18:11:30.000Z
2022-03-30T20:56:33.000Z
custom_components/waste_collection_schedule/waste_collection_schedule/wizard/stadtreinigung_hamburg.py
UBS-P/hacs_waste_collection_schedule
9ce0fd55010bbab3948f1ee0aa5edb4b65b7d866
[ "MIT" ]
89
2020-06-16T05:13:08.000Z
2022-03-28T09:28:25.000Z
#!/usr/bin/env python3 from html.parser import HTMLParser import inquirer import requests # Parser for HTML input class InputParser(HTMLParser): def __init__(self, input_name): super().__init__() self._input_name = input_name self._value = None @property def value(self): ...
29.205674
93
0.573579
444
4,118
5.099099
0.234234
0.04417
0.035336
0.018551
0.330389
0.207597
0.194788
0.185512
0.155477
0.155477
0
0.005682
0.316173
4,118
140
94
29.414286
0.798295
0.06678
0
0.349057
0
0
0.153886
0.024517
0
0
0
0
0
1
0.084906
false
0
0.028302
0.018868
0.150943
0.075472
0
0
0
null
0
0
0
0
0
0
0
0
0
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
7d56702dbd9fe5b8f3529654e0855fa2b7b8f074
1,480
py
Python
pythonstudy/convert.py
flyonskycn/pythonstudy
c2eabe40ed369046c80ba9882b2212feb34cdad6
[ "Apache-2.0" ]
null
null
null
pythonstudy/convert.py
flyonskycn/pythonstudy
c2eabe40ed369046c80ba9882b2212feb34cdad6
[ "Apache-2.0" ]
null
null
null
pythonstudy/convert.py
flyonskycn/pythonstudy
c2eabe40ed369046c80ba9882b2212feb34cdad6
[ "Apache-2.0" ]
null
null
null
import chardet import sys import codecs import os def findEncoding(s): file = open(s, mode='rb') buf = file.read() result = chardet.detect(buf) file.close() return result['encoding'] def convertEncoding(s): if os.access(s,os.W_OK): encoding = findEncoding(s) ...
23.492063
84
0.531081
179
1,480
4.340782
0.424581
0.019305
0.036036
0.03861
0
0
0
0
0
0
0
0.006135
0.339189
1,480
63
85
23.492063
0.788344
0.012838
0
0.06383
0
0
0.114165
0
0
0
0
0
0
1
0.085106
false
0
0.085106
0
0.212766
0.085106
0
0
0
null
0
0
0
0
0
0
0
0
0
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
7d58040a8760df0e7d462d968892a9628d5e39f3
8,960
py
Python
corrector_module/opmon_corrector/corrector_worker.py
nordic-institute/X-Road-Metrics
249d859466bf6065257cf8b3c27d0e9db4ab2378
[ "MIT" ]
2
2021-06-30T11:12:31.000Z
2021-09-24T08:50:03.000Z
corrector_module/opmon_corrector/corrector_worker.py
nordic-institute/X-Road-Metrics
249d859466bf6065257cf8b3c27d0e9db4ab2378
[ "MIT" ]
null
null
null
corrector_module/opmon_corrector/corrector_worker.py
nordic-institute/X-Road-Metrics
249d859466bf6065257cf8b3c27d0e9db4ab2378
[ "MIT" ]
2
2021-07-02T12:31:37.000Z
2021-11-09T08:44:09.000Z
# The MIT License # Copyright (c) 2021- Nordic Institute for Interoperability Solutions (NIIS) # Copyright (c) 2017-2020 Estonian Information System Authority (RIA) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software...
48.172043
136
0.60904
962
8,960
5.440748
0.256757
0.114635
0.014712
0.026748
0.367023
0.345243
0.282384
0.257547
0.250478
0.250478
0
0.005683
0.312612
8,960
185
137
48.432432
0.844131
0.244196
0
0.313131
0
0
0.118772
0.004026
0
0
0
0
0
1
0.030303
false
0.010101
0.020202
0
0.070707
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
7d589dd1f59c435f5b8daa7514686b5a0b85423d
4,451
py
Python
battlecode-manager/player_plain.py
gruzzlymug/ddg-2018
76f598f7548ad51b126ec9efb7da0fd0d4a306c2
[ "MIT" ]
1
2018-02-11T03:32:22.000Z
2018-02-11T03:32:22.000Z
battlecode-manager/player_plain.py
gruzzlymug/ddg-2018
76f598f7548ad51b126ec9efb7da0fd0d4a306c2
[ "MIT" ]
null
null
null
battlecode-manager/player_plain.py
gruzzlymug/ddg-2018
76f598f7548ad51b126ec9efb7da0fd0d4a306c2
[ "MIT" ]
null
null
null
import os import psutil import subprocess import threading import sys from threading import Timer import select from player_abstract import AbstractPlayer class PlainPlayer(AbstractPlayer): def __init__(self, socket_file, working_dir, local_dir=None, player_key="", player_mem_limit=256, player_c...
32.253623
119
0.599191
548
4,451
4.768248
0.354015
0.046307
0.011481
0.020666
0.27057
0.182166
0.15155
0.075775
0.075775
0.037505
0
0.004861
0.306673
4,451
137
120
32.489051
0.841866
0.17951
0
0.366337
0
0
0.06839
0
0
0
0
0
0.009901
1
0.108911
false
0.049505
0.079208
0
0.207921
0.029703
0
0
0
null
0
0
0
0
0
0
0
0
0
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
7d5919e7ea877027b781af2973db1c3cf8b3e549
4,726
py
Python
jassen/django/project/blog/views.py
cabilangan112/intern-drf-blog
b2d6c7a4af1316b2c7ce38547bd9df99b4f3e8b9
[ "MIT" ]
null
null
null
jassen/django/project/blog/views.py
cabilangan112/intern-drf-blog
b2d6c7a4af1316b2c7ce38547bd9df99b4f3e8b9
[ "MIT" ]
null
null
null
jassen/django/project/blog/views.py
cabilangan112/intern-drf-blog
b2d6c7a4af1316b2c7ce38547bd9df99b4f3e8b9
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.contrib.auth.models import User, Group from rest_framework import viewsets from django.shortcuts import get_object_or_404 from rest_framework.response import Response from rest_framework import viewsets, status from .models import Post,Comment,Category,Tag from .serialize...
34.75
90
0.658697
506
4,726
6.059289
0.16996
0.082192
0.125245
0.109589
0.686236
0.652968
0.621657
0.456295
0.399217
0.399217
0
0.007559
0.244181
4,726
135
91
35.007407
0.850784
0
0
0.509434
0
0
0.0163
0
0
0
0
0
0
1
0.141509
false
0
0.075472
0
0.45283
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
7d5a512e475a15e2cba00eeed5fa7df50d174682
15,479
py
Python
loopchain/rest_server/rest_server_rs.py
ahastudio/loopchain
88b76956c069fedc1a0a2d239f47c3866493ad0f
[ "Apache-2.0" ]
null
null
null
loopchain/rest_server/rest_server_rs.py
ahastudio/loopchain
88b76956c069fedc1a0a2d239f47c3866493ad0f
[ "Apache-2.0" ]
null
null
null
loopchain/rest_server/rest_server_rs.py
ahastudio/loopchain
88b76956c069fedc1a0a2d239f47c3866493ad0f
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 ICON 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 or agreed to in writi...
38.600998
122
0.640481
1,833
15,479
5.034915
0.156574
0.023404
0.022754
0.027414
0.455954
0.421281
0.343374
0.280745
0.254632
0.203814
0
0.003537
0.269333
15,479
400
123
38.6975
0.812467
0.054202
0
0.294314
0
0.003344
0.090853
0.015256
0
0
0
0
0
1
0.06689
false
0.003344
0.063545
0.033445
0.264214
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
7d5ba93142fb8ff5765303ca6b3001d2cd9dccdf
10,178
py
Python
ceilometer/tests/storage/test_impl_sqlalchemy.py
aristanetworks/ceilometer
8776b137f82f71eef1241bcb1600de10c1f77394
[ "Apache-2.0" ]
null
null
null
ceilometer/tests/storage/test_impl_sqlalchemy.py
aristanetworks/ceilometer
8776b137f82f71eef1241bcb1600de10c1f77394
[ "Apache-2.0" ]
null
null
null
ceilometer/tests/storage/test_impl_sqlalchemy.py
aristanetworks/ceilometer
8776b137f82f71eef1241bcb1600de10c1f77394
[ "Apache-2.0" ]
null
null
null
# # Author: John Tran <jhtran@att.com> # Julien Danjou <julien@danjou.info> # # 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 # # Unl...
40.070866
78
0.610434
1,173
10,178
5.092924
0.219096
0.052728
0.042183
0.044192
0.459659
0.43388
0.406428
0.366923
0.290593
0.267158
0
0.013247
0.287974
10,178
253
79
40.229249
0.811094
0.127726
0
0.335165
0
0
0.054607
0
0
0
0
0
0.296703
1
0.093407
false
0.005495
0.06044
0
0.192308
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
7d5e7f22dbe1241e9828565a5008c4bed0402c69
17,906
py
Python
ProjectManager.py
kojingharang/ManagerKit
6efb9b2290b62e0bd3fe88eb3dc814d066f72f02
[ "MIT" ]
null
null
null
ProjectManager.py
kojingharang/ManagerKit
6efb9b2290b62e0bd3fe88eb3dc814d066f72f02
[ "MIT" ]
null
null
null
ProjectManager.py
kojingharang/ManagerKit
6efb9b2290b62e0bd3fe88eb3dc814d066f72f02
[ "MIT" ]
null
null
null
from collections import namedtuple import datetime import pprint import sys import copy import json def expandStatusValue(v): """ v : string | (string, datetime.date | None) が string だった場合 (string, None) に展開する. """ if isinstance(v, str): v = (v, None) return v def formatDate(d): if not d: return "????-??-?...
24.629986
135
0.627667
2,515
17,906
4.452485
0.171769
0.018753
0.005358
0.009645
0.203965
0.145472
0.110288
0.095106
0.069566
0.05501
0
0.018888
0.175081
17,906
726
136
24.663912
0.739151
0.070814
0
0.19774
0
0.016949
0.321281
0.085457
0
0
0
0.001377
0
1
0.047081
false
0
0.011299
0.011299
0.112994
0.028249
0
0
0
null
0
0
0
0
0
0
0
0
0
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
7d60c0b18a3d86b57134273bbd22d9fd56431efb
18,643
py
Python
asteroids/whatsobservable.py
mcnowinski/various-and-sundry
ec0038d52f43435a45bf4fd1975315ad08fce560
[ "MIT" ]
2
2016-09-29T09:24:22.000Z
2021-01-15T06:11:04.000Z
asteroids/whatsobservable.py
mcnowinski/various-and-sundry
ec0038d52f43435a45bf4fd1975315ad08fce560
[ "MIT" ]
null
null
null
asteroids/whatsobservable.py
mcnowinski/various-and-sundry
ec0038d52f43435a45bf4fd1975315ad08fce560
[ "MIT" ]
null
null
null
import datetime import ephem import os.path import os import numpy as np import pdb from pandas import DataFrame __version__ = '0.1.2' class Error(Exception): pass def _convert_datetime_to_pyephem_date_string(in_datetime): return in_datetime.strftime('%Y/%m/%d %H:%M:%S') def _find_cached_file(filename):...
53.418338
250
0.565145
2,462
18,643
4.196994
0.224208
0.01742
0.027872
0.02613
0.467628
0.409078
0.358076
0.344914
0.302719
0.280074
0
0.077702
0.34281
18,643
348
251
53.571839
0.765671
0.540149
0
0.112426
0
0
0.096575
0
0
0
0
0.008621
0
1
0.04142
false
0.005917
0.04142
0.005917
0.147929
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
7d6278af283b8d74f950804bc1e7d3a988413e1b
7,573
py
Python
pcdet/models/backbones_3d/vfe/pillar_vfe.py
KPeng9510/OpenPCDet
4bebf2f45a3193afb1ffe4f7ee1913afc0632e62
[ "Apache-2.0" ]
1
2021-02-18T19:46:44.000Z
2021-02-18T19:46:44.000Z
pcdet/models/backbones_3d/vfe/pillar_vfe.py
KPeng9510/OpenPCDet
4bebf2f45a3193afb1ffe4f7ee1913afc0632e62
[ "Apache-2.0" ]
null
null
null
pcdet/models/backbones_3d/vfe/pillar_vfe.py
KPeng9510/OpenPCDet
4bebf2f45a3193afb1ffe4f7ee1913afc0632e62
[ "Apache-2.0" ]
1
2022-01-23T13:37:49.000Z
2022-01-23T13:37:49.000Z
import torch from torch_geometric.nn import FeaStConv from knn_cuda import KNN from torch_cluster import fps #from ....ops.roiaware_pool3d import roiaware_pool3d_utils import torch.nn as nn import torch.nn.functional as F from .vfe_template import VFETemplate import sys from lppproj import LocalityPreservingProjectio...
44.810651
193
0.629737
1,051
7,573
4.261656
0.153187
0.072561
0.03215
0.026792
0.212547
0.18397
0.139317
0.139317
0.139317
0.102702
0
0.021135
0.244025
7,573
168
194
45.077381
0.761223
0.076984
0
0.046154
0
0
0.013054
0
0
0
0
0
0.007692
1
0.046154
false
0
0.069231
0.007692
0.169231
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
7d69ee0ea7680377c19eec8ca94d5abf487ee54e
1,227
py
Python
python/example.py
msmerlak/aa
09ffdf7df582be9c83c7c9bfd873c55fddb65109
[ "MIT" ]
null
null
null
python/example.py
msmerlak/aa
09ffdf7df582be9c83c7c9bfd873c55fddb65109
[ "MIT" ]
null
null
null
python/example.py
msmerlak/aa
09ffdf7df582be9c83c7c9bfd873c55fddb65109
[ "MIT" ]
null
null
null
# min (1/2) x'Q'x - q'x from __future__ import print_function import numpy as np import aa dim = 1000 mems = [5, 10, 20, 50, 100] N = int(1e4) np.random.seed(1234) Q = np.random.randn(dim,dim) Q = Q.T.dot(Q) q = np.random.randn(dim) x_0 = np.random.randn(dim) x_star = np.linalg.solve(Q, q) step = 0.0005 def f(x):...
22.309091
61
0.544417
238
1,227
2.701681
0.252101
0.024883
0.037325
0.07465
0.583204
0.502333
0.502333
0.502333
0.502333
0.502333
0
0.058114
0.256724
1,227
54
62
22.722222
0.64693
0.017115
0
0.465116
0
0
0.092193
0
0
0
0
0
0
1
0.023256
false
0
0.069767
0.023256
0.116279
0.186047
0
0
0
null
0
0
0
0
0
0
0
0
0
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
7d6a2293f4de2609456441f4d1fef57b68982b63
2,193
py
Python
MuonAnalysis/MuonAssociators/test/L1MuonMatcher/test.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
MuonAnalysis/MuonAssociators/test/L1MuonMatcher/test.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
MuonAnalysis/MuonAssociators/test/L1MuonMatcher/test.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("PAT") # initialize MessageLogger and output report process.load("FWCore.MessageLogger.MessageLogger_cfi") process.MessageLogger.cerr.threshold = 'INFO' process.MessageLogger.cerr.INFO = cms.untracked.PSet( default = cms.untracked.PSet( limit...
37.810345
125
0.75285
266
2,193
6.105263
0.43609
0.073892
0.049261
0.036946
0.192118
0.150246
0.150246
0.103448
0.103448
0.103448
0
0.060807
0.107615
2,193
57
126
38.473684
0.769034
0.186047
0
0
0
0.085714
0.391058
0.340125
0
0
0
0
0
1
0
false
0
0.028571
0
0.028571
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
7d6ad190979d6481b1c2985d3daa77d4ce6fbfd1
5,689
py
Python
src/paper_1/curriculum/main.py
ludwigflo/paper1
13202febdb01a76bbf115435ce9676f6b82e1393
[ "MIT" ]
null
null
null
src/paper_1/curriculum/main.py
ludwigflo/paper1
13202febdb01a76bbf115435ce9676f6b82e1393
[ "MIT" ]
null
null
null
src/paper_1/curriculum/main.py
ludwigflo/paper1
13202febdb01a76bbf115435ce9676f6b82e1393
[ "MIT" ]
null
null
null
from paper_1.data.data_loader import load_val_data, load_train_data, sequential_data_loader, random_data_loader from paper_1.utils import read_parameter_file, create_experiment_directory from paper_1.evaluation.eval_utils import init_metrics_object from paper_1.baseline.main import train as baseline_train from paper_1....
40.347518
123
0.731763
791
5,689
4.922882
0.204804
0.032357
0.01284
0.024653
0.129687
0.049307
0.03698
0.022599
0.022599
0.022599
0
0.003465
0.188434
5,689
140
124
40.635714
0.839939
0.135173
0
0.045455
0
0
0.088199
0.02205
0
0
0
0
0
1
0.011364
false
0
0.159091
0
0.170455
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
7d6b4c15322d55cd0ce898e730c14103fb38d94b
6,793
py
Python
sfc/tests/functest/sfc_symmetric_chain.py
pkaralis/sfc
b2572f3e4e96ef82fbfd5b6233933f1eac5cb166
[ "Apache-2.0" ]
null
null
null
sfc/tests/functest/sfc_symmetric_chain.py
pkaralis/sfc
b2572f3e4e96ef82fbfd5b6233933f1eac5cb166
[ "Apache-2.0" ]
null
null
null
sfc/tests/functest/sfc_symmetric_chain.py
pkaralis/sfc
b2572f3e4e96ef82fbfd5b6233933f1eac5cb166
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2017 Ericsson AB and others. All rights reserved # # This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # # http://www.apache.org/licenses/LICENSE-2.0 # imp...
35.196891
79
0.6227
810
6,793
4.911111
0.269136
0.024887
0.030417
0.033183
0.309703
0.284062
0.264455
0.247863
0.236048
0.236048
0
0.010703
0.298543
6,793
192
80
35.380208
0.824134
0.1425
0
0.28125
0
0
0.079496
0.006654
0
0
0
0
0
1
0.023438
false
0.007813
0.070313
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7d6ecad90431713565bfe9a36d5edf9284440624
1,827
py
Python
site-packages/offshoot/main.py
nanpuhaha/SerpentAI
6af1105fc0a970227a0d7c11e6a0da1bd0bacec6
[ "MIT" ]
42
2017-01-23T22:36:03.000Z
2021-11-14T21:22:17.000Z
site-packages/offshoot/main.py
nanpuhaha/SerpentAI
6af1105fc0a970227a0d7c11e6a0da1bd0bacec6
[ "MIT" ]
6
2021-09-26T21:18:30.000Z
2022-02-01T01:26:18.000Z
site-packages/offshoot/main.py
nanpuhaha/SerpentAI
6af1105fc0a970227a0d7c11e6a0da1bd0bacec6
[ "MIT" ]
6
2017-04-14T13:07:27.000Z
2020-06-17T06:24:18.000Z
#!/usr/bin/env python import sys import os import subprocess import offshoot valid_commands = ["init", "install", "uninstall"] def execute(): if len(sys.argv) == 2: command = sys.argv[1] if command not in valid_commands: raise Exception("'%s' is not a valid Offshoot command." % com...
27.681818
103
0.636015
223
1,827
5.071749
0.278027
0.037135
0.04244
0.019452
0.62069
0.534041
0.534041
0.534041
0.534041
0.534041
0
0.006169
0.201423
1,827
65
104
28.107692
0.76902
0.010947
0
0.25
0
0
0.209856
0
0
0
0
0
0
1
0.1
false
0
0.125
0
0.225
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
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