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
bcc019e1e7277f852d55bb225dc74bb333185aa3
660
py
Python
tests/test_buffers.py
romanchyla/CSPatterns
d9627297aabce1ab648f4a4cdbe9882527add138
[ "MIT" ]
null
null
null
tests/test_buffers.py
romanchyla/CSPatterns
d9627297aabce1ab648f4a4cdbe9882527add138
[ "MIT" ]
null
null
null
tests/test_buffers.py
romanchyla/CSPatterns
d9627297aabce1ab648f4a4cdbe9882527add138
[ "MIT" ]
null
null
null
from cspatterns.datastructures import buffer def test_circular_buffer(): b = buffer.CircularBuffer(2, ['n']) assert len(b.next) == 2 assert b.n is None b = buffer.CircularBuffer.create(2, attrs=['n', 'fib']) curr = b out = [0, 1, ] curr.prev[-2].n = 0 curr.prev[-2].fib = 1 curr...
25.384615
66
0.551515
109
660
3.321101
0.40367
0.176796
0.124309
0.082873
0.082873
0.082873
0
0
0
0
0
0.089583
0.272727
660
26
66
25.384615
0.664583
0.05303
0
0
0
0
0.008013
0
0
0
0
0
0.166667
1
0.055556
false
0
0.055556
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bcc1d17c27a82c381571bf91c586033e374ec7d9
1,741
py
Python
code_examples/plotting_data/hexbin.py
ezcitron/BasemapTutorial
0db9248b430d39518bdfdb25d713145be4eb966a
[ "CC0-1.0" ]
99
2015-01-14T21:20:48.000Z
2022-01-25T10:38:37.000Z
code_examples/plotting_data/hexbin.py
ezcitron/BasemapTutorial
0db9248b430d39518bdfdb25d713145be4eb966a
[ "CC0-1.0" ]
1
2017-08-31T07:02:20.000Z
2017-08-31T07:02:20.000Z
code_examples/plotting_data/hexbin.py
ezcitron/BasemapTutorial
0db9248b430d39518bdfdb25d713145be4eb966a
[ "CC0-1.0" ]
68
2015-01-14T21:21:01.000Z
2022-01-29T14:53:38.000Z
from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt import matplotlib.colors as colors from numpy import array from numpy import max map = Basemap(llcrnrlon=-0.5,llcrnrlat=39.8,urcrnrlon=4.,urcrnrlat=43., resolution='i', projection='tmerc', lat_0 = 39.5, lon_0 = 1) map.readshapefil...
23.527027
139
0.687536
246
1,741
4.813008
0.353659
0.067568
0.092905
0.11402
0.416385
0.346284
0.346284
0.326014
0.326014
0.326014
0
0.038058
0.124641
1,741
74
140
23.527027
0.738845
0
0
0.195122
0
0
0.175086
0.072331
0
0
0
0
0
1
0
false
0
0.121951
0
0.121951
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
bcc3dcd13da8bfacff9f3f45c797b5dd285e8744
4,031
py
Python
src/extractors/emojiextractor.py
chmduquesne/rofimoji
9abdc0a8db1b166bb30da994c4aadb7baf91df2d
[ "MIT" ]
574
2017-10-29T18:04:31.000Z
2022-03-30T23:34:34.000Z
src/extractors/emojiextractor.py
chmduquesne/rofimoji
9abdc0a8db1b166bb30da994c4aadb7baf91df2d
[ "MIT" ]
104
2017-11-02T08:24:29.000Z
2022-03-29T02:39:58.000Z
src/extractors/emojiextractor.py
chmduquesne/rofimoji
9abdc0a8db1b166bb30da994c4aadb7baf91df2d
[ "MIT" ]
53
2017-11-01T22:38:02.000Z
2022-02-14T09:20:36.000Z
import html from collections import namedtuple from pathlib import Path from typing import List, Dict import requests from bs4 import BeautifulSoup from lxml import etree from lxml.etree import XPath Emoji = namedtuple('Emoji', 'char name') class EmojiExtractor(object): def __init__(self): self.all_emo...
37.324074
159
0.607045
473
4,031
5.071882
0.30444
0.052522
0.018758
0.02501
0.082534
0.030013
0.030013
0
0
0
0
0.008696
0.258249
4,031
107
160
37.672897
0.793311
0.017614
0
0.107143
0
0.047619
0.223711
0.055106
0
0
0
0
0
1
0.119048
false
0
0.095238
0.011905
0.309524
0.059524
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
bcc4fcfb44a442a2523238a8484bf80417464006
5,084
py
Python
tests/integration_tests/security/test_seccomp.py
gregbdunn/firecracker
e7bc0a1f9b70deaa7bfd9eb641e0c7982fe63e68
[ "Apache-2.0" ]
2
2018-12-20T05:40:43.000Z
2018-12-20T05:59:58.000Z
tests/integration_tests/security/test_seccomp.py
gregbdunn/firecracker
e7bc0a1f9b70deaa7bfd9eb641e0c7982fe63e68
[ "Apache-2.0" ]
null
null
null
tests/integration_tests/security/test_seccomp.py
gregbdunn/firecracker
e7bc0a1f9b70deaa7bfd9eb641e0c7982fe63e68
[ "Apache-2.0" ]
1
2018-11-27T08:50:51.000Z
2018-11-27T08:50:51.000Z
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 """Tests that the seccomp filters don't let blacklisted syscalls through.""" import os from subprocess import run import pytest import host_tools.cargo_build as host # pylint:disable=import-error @pyte...
29.387283
79
0.696302
625
5,084
5.3712
0.2
0.041108
0.035746
0.045874
0.65922
0.637176
0.54513
0.473339
0.445934
0.445934
0
0.002795
0.225806
5,084
172
80
29.55814
0.850102
0.285995
0
0.455446
0
0
0.083215
0.042318
0
0
0
0
0.079208
1
0.049505
false
0
0.039604
0
0.089109
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
bcc6795e9da5c859c6308d7dfd37a7f5806dbb41
3,714
py
Python
webapp/gen_graphs.py
bfitzy2142/NET4901-SP
908c13332a5356bd6a59879b8d78af76432b807c
[ "MIT" ]
3
2019-08-04T03:09:02.000Z
2020-06-08T15:48:36.000Z
webapp/gen_graphs.py
bfitzy2142/NET4901-SP
908c13332a5356bd6a59879b8d78af76432b807c
[ "MIT" ]
3
2019-09-06T08:30:21.000Z
2020-06-30T03:24:56.000Z
webapp/gen_graphs.py
bfitzy2142/NET4901-SP-SDLENS
908c13332a5356bd6a59879b8d78af76432b807c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ @author: Sam Cook MySql Parser for graphical presentation """ import mysql.connector import datetime from mysql.connector import Error from datetime import datetime, timedelta import json class sql_graph_info(): def __init__(self, node, interface, time, sql_creds, db): """ ...
34.71028
72
0.53608
430
3,714
4.423256
0.3
0.037855
0.053628
0.063091
0.120925
0.120925
0.014721
0
0
0
0
0.010915
0.358643
3,714
106
73
35.037736
0.787573
0.159666
0
0
0
0
0.117529
0.013022
0
0
0
0
0
1
0.027397
false
0.013699
0.068493
0
0.123288
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
bcca1a19ecd367ba4725d3ef774b347cae61be62
830
py
Python
scqubits/tests/test_fluxqubit.py
dmtvanzanten/scqubits
d4d8a0f71ac91077594a6173348279aa490ed048
[ "BSD-3-Clause" ]
null
null
null
scqubits/tests/test_fluxqubit.py
dmtvanzanten/scqubits
d4d8a0f71ac91077594a6173348279aa490ed048
[ "BSD-3-Clause" ]
null
null
null
scqubits/tests/test_fluxqubit.py
dmtvanzanten/scqubits
d4d8a0f71ac91077594a6173348279aa490ed048
[ "BSD-3-Clause" ]
null
null
null
# test_fluxqubit.py # meant to be run with 'pytest' # # This file is part of scqubits. # # Copyright (c) 2019 and later, Jens Koch and Peter Groszkowski # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. ...
28.62069
76
0.622892
110
830
4.590909
0.663636
0.039604
0
0
0
0
0
0
0
0
0
0.024578
0.215663
830
28
77
29.642857
0.751152
0.360241
0
0
0
0
0.083333
0
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bcca9310b776373045a4dd0e28575a2063a3d591
1,379
py
Python
PhysicsTools/PatAlgos/python/producersLayer1/pfParticleProducer_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
PhysicsTools/PatAlgos/python/producersLayer1/pfParticleProducer_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
PhysicsTools/PatAlgos/python/producersLayer1/pfParticleProducer_cfi.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 patPFParticles = cms.EDProducer("PATPFParticleProducer", # General configurables pfCandidateSource = cms.InputTag("noJet"), # MC matching configurables addGenMatch = cms.bool(False), genParticleMatch = cms.InputTag(""), ## particles source to be used for ...
29.340426
106
0.585207
135
1,379
5.977778
0.555556
0.060719
0.05948
0.064436
0.123916
0.123916
0
0
0
0
0
0
0.315446
1,379
46
107
29.978261
0.854873
0.29079
0
0.333333
0
0
0.027168
0.021944
0
0
0
0
0
1
0
false
0
0.037037
0
0.037037
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
bcccafa97336dc1ded4587f29664425a01e6d815
28,365
py
Python
python/GafferArnold/ArnoldTextureBake.py
medubelko/gaffer
12c5994c21dcfb8b13b5b86efbcecdcb29202b33
[ "BSD-3-Clause" ]
1
2019-12-02T02:31:25.000Z
2019-12-02T02:31:25.000Z
python/GafferArnold/ArnoldTextureBake.py
medubelko/gaffer
12c5994c21dcfb8b13b5b86efbcecdcb29202b33
[ "BSD-3-Clause" ]
null
null
null
python/GafferArnold/ArnoldTextureBake.py
medubelko/gaffer
12c5994c21dcfb8b13b5b86efbcecdcb29202b33
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2018, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistrib...
47.196339
175
0.692649
2,883
28,365
6.627818
0.212973
0.035797
0.013921
0.014287
0.211325
0.157159
0.10001
0.066517
0.05673
0.05673
0
0.003247
0.142323
28,365
600
176
47.275
0.782185
0.136224
0
0.069264
0
0
0.360552
0.056976
0
0
0
0
0
1
0.008658
false
0
0.038961
0
0.056277
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
bccd1fa8fe336f245d1474aeb673c6c021c08a1b
20,598
py
Python
aea/protocols/generator/common.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
aea/protocols/generator/common.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
aea/protocols/generator/common.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2021 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
35.636678
151
0.646373
2,533
20,598
5.006317
0.154757
0.019399
0.030282
0.027206
0.408485
0.332702
0.285388
0.262676
0.216781
0.193045
0
0.003535
0.258326
20,598
577
152
35.69844
0.826537
0.289785
0
0.230321
0
0.011662
0.149911
0.041137
0
0
0
0
0
1
0.061224
false
0
0.052478
0
0.169096
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
bccd22c451ca48a6b2b63fe4d46e6f3d5177271f
12,177
py
Python
tests/unit/python/foglamp/services/core/api/test_backup_restore.py
vaibhav-ScaleDB/FogLAMP
445e7a588f5ec5fcae0360b49fdc4e4de0ea2ec8
[ "Apache-2.0" ]
null
null
null
tests/unit/python/foglamp/services/core/api/test_backup_restore.py
vaibhav-ScaleDB/FogLAMP
445e7a588f5ec5fcae0360b49fdc4e4de0ea2ec8
[ "Apache-2.0" ]
null
null
null
tests/unit/python/foglamp/services/core/api/test_backup_restore.py
vaibhav-ScaleDB/FogLAMP
445e7a588f5ec5fcae0360b49fdc4e4de0ea2ec8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # FOGLAMP_BEGIN # See: http://foglamp.readthedocs.io/ # FOGLAMP_END import os import asyncio import json from unittest.mock import MagicMock, patch from collections import Counter from aiohttp import web import pytest from foglamp.services.core import routes from foglamp.services.core import ...
46.834615
123
0.635214
1,398
12,177
5.334049
0.139485
0.030173
0.046265
0.035403
0.747351
0.686335
0.642484
0.606812
0.525412
0.525412
0
0.021977
0.241439
12,177
259
124
47.015444
0.78532
0.016753
0
0.400922
0
0
0.195283
0.030693
0
0
0
0
0.170507
1
0.018433
false
0
0.064516
0
0.119816
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
bccd4ecf3e75810f078465ed5395ba34d886f56a
3,690
py
Python
pyemits/core/preprocessing/dimensional_reduction.py
thompson0012/PyEmits
9cb6fbf27ca7e8952ed5aca26118055e04492c23
[ "Apache-2.0" ]
6
2021-10-21T14:13:25.000Z
2021-12-26T12:22:51.000Z
pyemits/core/preprocessing/dimensional_reduction.py
thompson0012/PyEmits
9cb6fbf27ca7e8952ed5aca26118055e04492c23
[ "Apache-2.0" ]
null
null
null
pyemits/core/preprocessing/dimensional_reduction.py
thompson0012/PyEmits
9cb6fbf27ca7e8952ed5aca26118055e04492c23
[ "Apache-2.0" ]
null
null
null
""" Why need dimensional reduction The following is the use of dimensionality reduction in the data set: • As data dimensions continue to decrease, the space required for data storage will also decrease. • Low-dimensional data helps reduce calculation/training time. • Some algorithms tend to perform poorly on high-dim...
30.495868
217
0.714363
453
3,690
5.743929
0.403974
0.069946
0.076864
0.066872
0.219831
0.029208
0
0
0
0
0
0.010186
0.228455
3,690
120
218
30.75
0.902002
0.389431
0
0.356164
0
0
0.001337
0
0
0
0
0
0
1
0.178082
false
0
0.164384
0.054795
0.561644
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
bccf9e77bf6eaccd18d5b5a8053e3859146a0272
2,727
py
Python
scrapy/clarinetear/spiders/pagina12.py
ramiror/clarinete
4ebf37cf9f705e04e2aad15015be12c48fe25fd3
[ "BSD-2-Clause" ]
null
null
null
scrapy/clarinetear/spiders/pagina12.py
ramiror/clarinete
4ebf37cf9f705e04e2aad15015be12c48fe25fd3
[ "BSD-2-Clause" ]
null
null
null
scrapy/clarinetear/spiders/pagina12.py
ramiror/clarinete
4ebf37cf9f705e04e2aad15015be12c48fe25fd3
[ "BSD-2-Clause" ]
null
null
null
from datetime import datetime import scrapy import lxml from lxml.html.clean import Cleaner import re SOURCE = 'Página 12' LANGUAGE = 'es' cleaner = Cleaner(allow_tags=['p', 'br', 'b', 'a', 'strong', 'i', 'em']) class Pagina12Spider(scrapy.Spider): name = 'pagina12' allowed_domains = ['www.pagina12.com.ar'] ...
32.855422
104
0.521819
316
2,727
4.443038
0.417722
0.017094
0.029915
0.034188
0.145299
0.082621
0.082621
0.082621
0.082621
0.082621
0
0.021727
0.324899
2,727
82
105
33.256098
0.740902
0
0
0.083333
0
0.013889
0.181885
0.020902
0
0
0
0
0
1
0.041667
false
0
0.069444
0
0.180556
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
bccfcca536c98cf3954ec419341b10079911dafc
6,978
py
Python
svd.py
christyc14/fyp
c63e719e383a84eb49ffa0c8bd901bfd4aef5864
[ "MIT" ]
null
null
null
svd.py
christyc14/fyp
c63e719e383a84eb49ffa0c8bd901bfd4aef5864
[ "MIT" ]
null
null
null
svd.py
christyc14/fyp
c63e719e383a84eb49ffa0c8bd901bfd4aef5864
[ "MIT" ]
null
null
null
from calendar import c from typing import Dict, List, Union from zlib import DEF_BUF_SIZE import json_lines import numpy as np import re from sklearn.preprocessing import MultiLabelBinarizer from sklearn.manifold import TSNE from sklearn.preprocessing import StandardScaler import pandas as pd import json from scipy.spa...
38.131148
111
0.655775
894
6,978
4.894855
0.285235
0.045247
0.029708
0.028793
0.208181
0.208181
0.15585
0.134369
0.134369
0.134369
0
0.011025
0.207079
6,978
182
112
38.340659
0.779866
0.033104
0
0.139241
0
0.006329
0.126391
0.021213
0
0
0
0
0
1
0.018987
false
0
0.094937
0
0.132911
0.094937
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
bccff1b3d6077ecdb8e86f1fedd69c5761247393
22,448
py
Python
esp32/tools/flasher.py
rodgergr/pycom-micropython-sigfox
50a31befc40a39b1e4c3513f20da968792227b0e
[ "MIT" ]
null
null
null
esp32/tools/flasher.py
rodgergr/pycom-micropython-sigfox
50a31befc40a39b1e4c3513f20da968792227b0e
[ "MIT" ]
null
null
null
esp32/tools/flasher.py
rodgergr/pycom-micropython-sigfox
50a31befc40a39b1e4c3513f20da968792227b0e
[ "MIT" ]
1
2019-09-22T01:28:52.000Z
2019-09-22T01:28:52.000Z
#!/usr/bin/env python # # Copyright (c) 2018, Pycom Limited. # # This software is licensed under the GNU GPL version 3 or any # later version, with permitted additional terms. For more information # see the Pycom Licence v1.0 document supplied with this file, or # available at https://www.pycom.io/opensource/licensing ...
42.116323
286
0.513587
2,506
22,448
4.442538
0.135674
0.082997
0.084074
0.039522
0.659481
0.625438
0.589149
0.552052
0.521513
0.51262
0
0.012657
0.30662
22,448
532
287
42.195489
0.702602
0.07239
0
0.608076
0
0.004751
0.252345
0.097041
0
0
0.002357
0
0
1
0.030879
false
0
0.054632
0.002375
0.087886
0.180523
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
bccff8756b8fd9c49c849a5ee7e86c1a5271fe95
2,315
py
Python
hknweb/events/tests/models/utils.py
jyxzhang/hknweb
a01ffd8587859bf63c46213be6a0c8b87164a5c2
[ "MIT" ]
null
null
null
hknweb/events/tests/models/utils.py
jyxzhang/hknweb
a01ffd8587859bf63c46213be6a0c8b87164a5c2
[ "MIT" ]
null
null
null
hknweb/events/tests/models/utils.py
jyxzhang/hknweb
a01ffd8587859bf63c46213be6a0c8b87164a5c2
[ "MIT" ]
null
null
null
import datetime from django.utils import timezone from django.contrib.auth.models import User from hknweb.events.models import Event, EventType, Rsvp class ModelFactory: @staticmethod def create_user(**kwargs): default_kwargs = { "username": "default username", } kwargs =...
28.9375
88
0.581425
234
2,315
5.508547
0.226496
0.069822
0.081458
0.096199
0.280838
0.183863
0.152832
0
0
0
0
0.003149
0.314039
2,315
79
89
29.303797
0.808564
0
0
0.179104
0
0
0.085097
0
0
0
0
0
0
1
0.074627
false
0
0.059701
0
0.223881
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
bcd22bd32e41749d160e83a36693fbb03e02a7c0
2,232
py
Python
algorithms/329. Longest Increasing Path in a Matrix.py
woozway/py3-leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
1
2020-12-02T13:54:30.000Z
2020-12-02T13:54:30.000Z
algorithms/329. Longest Increasing Path in a Matrix.py
woozway/py3-leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
null
null
null
algorithms/329. Longest Increasing Path in a Matrix.py
woozway/py3-leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
null
null
null
""" 1. Clarification 2. Possible solutions - dfs + memoization - Topological sort 3. Coding 4. Tests """ # T=O(m*n), S=O(m*n) from functools import lru_cache class Solution: DIRS = [(-1, 0), (1, 0), (0, -1), (0, 1)] def longestIncreasingPath(self, matrix: List[List[int]]) -> int: if not mat...
30.162162
111
0.471774
283
2,232
3.706714
0.222615
0.114395
0.011439
0.025739
0.5796
0.5796
0.5796
0.5796
0.480458
0.480458
0
0.029696
0.396505
2,232
73
112
30.575342
0.749072
0.064068
0
0.510204
0
0
0
0
0
0
0
0
0
1
0.061224
false
0
0.020408
0
0.265306
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
bcd344e1483580a8d86580469eef57c0ac31bfc7
1,511
py
Python
cocos2d/tools/coding-style/tailing-spaces.py
NIKEA-SOFT/TestGame
04f13e5f1324bca9f1e47f02037ea1eddd3bcc8f
[ "MIT" ]
898
2020-01-09T12:03:08.000Z
2022-03-31T07:59:46.000Z
cocos2d/tools/coding-style/tailing-spaces.py
NIKEA-SOFT/TestGame
04f13e5f1324bca9f1e47f02037ea1eddd3bcc8f
[ "MIT" ]
172
2020-02-21T08:56:42.000Z
2021-05-12T03:18:40.000Z
cocos2d/tools/coding-style/tailing-spaces.py
NIKEA-SOFT/TestGame
04f13e5f1324bca9f1e47f02037ea1eddd3bcc8f
[ "MIT" ]
186
2020-01-13T09:34:30.000Z
2022-03-22T04:48:48.000Z
#!/usr/bin/env python #coding=utf-8 ''' Remove tailing whitespaces and ensures one and only one empty ending line. ''' import os, re def scan(*dirs, **kwargs): files = [] extensions = kwargs['extensions'] if kwargs.has_key('extensions') else None excludes = kwargs['excludes'] if kwargs.has_key('excludes') else...
24.370968
85
0.608868
221
1,511
4.126697
0.40724
0.065789
0.076754
0.092105
0
0
0
0
0
0
0
0.003376
0.215751
1,511
61
86
24.770492
0.766245
0.070814
0
0
0
0
0.107527
0
0
0
0
0
0
1
0.093023
false
0
0.023256
0
0.139535
0.046512
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
bcd3b0b0dedcabbec5fd0840549ab45783c9eb2d
4,096
py
Python
three.py/TestPostprocessing-8Bit.py
Michael-Pascale/three.py
9912f5f850245fb9456a25b6737e12290ae54a2d
[ "MIT" ]
null
null
null
three.py/TestPostprocessing-8Bit.py
Michael-Pascale/three.py
9912f5f850245fb9456a25b6737e12290ae54a2d
[ "MIT" ]
null
null
null
three.py/TestPostprocessing-8Bit.py
Michael-Pascale/three.py
9912f5f850245fb9456a25b6737e12290ae54a2d
[ "MIT" ]
null
null
null
from core import * from cameras import * from geometry import * from material import * from lights import * class TestPostprocessing2(Base): def initialize(self): self.setWindowTitle('Pixellation and Reduced Color Palette') self.setWindowSize(1024,768) self.renderer = Rendere...
32
99
0.577148
430
4,096
5.490698
0.351163
0.012706
0.015248
0.015248
0.109276
0.102499
0.076239
0.04659
0.04659
0.04659
0
0.043325
0.306885
4,096
127
100
32.251969
0.788306
0.062012
0
0.045455
0
0
0.324465
0.016954
0
0
0
0
0
1
0.022727
false
0
0.056818
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
bcd61a8f67cde91f10cbb1a9264485fd9ef2e8b8
3,205
py
Python
myvenv/lib/python3.6/site-packages/nltk/test/unit/test_senna.py
catb0y/twitter_feeling
9092a26f2554bbf6b14b33d797abaffa48cda99c
[ "MIT" ]
69
2020-03-31T06:40:17.000Z
2022-02-25T11:48:18.000Z
myvenv/lib/python3.6/site-packages/nltk/test/unit/test_senna.py
catb0y/twitter_feeling
9092a26f2554bbf6b14b33d797abaffa48cda99c
[ "MIT" ]
11
2019-12-26T17:21:03.000Z
2022-03-21T22:17:07.000Z
myvenv/lib/python3.6/site-packages/nltk/test/unit/test_senna.py
catb0y/twitter_feeling
9092a26f2554bbf6b14b33d797abaffa48cda99c
[ "MIT" ]
28
2020-04-15T15:24:17.000Z
2021-12-26T04:05:02.000Z
# -*- coding: utf-8 -*- """ Unit tests for Senna """ from __future__ import unicode_literals from os import environ, path, sep import logging import unittest from nltk.classify import Senna from nltk.tag import SennaTagger, SennaChunkTagger, SennaNERTagger # Set Senna executable path for tests if it is not specifie...
42.733333
108
0.597504
397
3,205
4.685139
0.287154
0.080645
0.08172
0.040323
0.282796
0.188172
0.188172
0.188172
0.188172
0.121505
0
0.01018
0.20312
3,205
74
109
43.310811
0.718089
0.067083
0
0.153846
0
0
0.219825
0.00708
0
0
0
0
0.115385
1
0.076923
false
0
0.115385
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bcd716fdc72869755eef1e517937f6675edfef9d
8,191
py
Python
eoxserver/services/opensearch/v11/description.py
kalxas/eoxserver
8073447d926f3833923bde7b7061e8a1658dee06
[ "OML" ]
25
2015-08-10T19:34:34.000Z
2021-02-05T08:28:01.000Z
eoxserver/services/opensearch/v11/description.py
kalxas/eoxserver
8073447d926f3833923bde7b7061e8a1658dee06
[ "OML" ]
153
2015-01-20T08:35:49.000Z
2022-03-16T11:00:56.000Z
eoxserver/services/opensearch/v11/description.py
kalxas/eoxserver
8073447d926f3833923bde7b7061e8a1658dee06
[ "OML" ]
10
2015-01-23T15:48:30.000Z
2021-01-21T15:41:18.000Z
#------------------------------------------------------------------------------- # # Project: EOxServer <http://eoxserver.org> # Authors: Fabian Schindler <fabian.schindler@eox.at> # #------------------------------------------------------------------------------- # Copyright (C) 2015 EOX IT Services GmbH # # Permission...
37.746544
81
0.580393
827
8,191
5.654172
0.307134
0.016467
0.011976
0.019889
0.078914
0.037211
0
0
0
0
0
0.006554
0.29215
8,191
216
82
37.921296
0.799931
0.18911
0
0.093168
0
0
0.118031
0.018077
0
0
0
0
0
1
0.031056
false
0
0.074534
0
0.149068
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
bcda0fb17ff31d81f09ba63207547e8568fa2ae6
2,085
py
Python
lab1/text_recognizer/models/mlp.py
Agyey/fsdl-text-recognizer-2021-labs
4bd85042ab9f6decd78849bb655c197cc13ffc11
[ "MIT" ]
null
null
null
lab1/text_recognizer/models/mlp.py
Agyey/fsdl-text-recognizer-2021-labs
4bd85042ab9f6decd78849bb655c197cc13ffc11
[ "MIT" ]
null
null
null
lab1/text_recognizer/models/mlp.py
Agyey/fsdl-text-recognizer-2021-labs
4bd85042ab9f6decd78849bb655c197cc13ffc11
[ "MIT" ]
null
null
null
from typing import Any, Dict import argparse import numpy as np import torch import torch.nn as nn import torch.nn.functional as F FC1_DIM = 1024 FC2_DIM = 128 class MLP(nn.Module): """Simple MLP suitable for recognizing single characters.""" def __init__( self, data_config: Dict[str, Any],...
29.366197
95
0.533813
284
2,085
3.788732
0.285211
0.018587
0.033457
0.033457
0.139405
0.072491
0.072491
0.072491
0.072491
0.072491
0
0.034207
0.341007
2,085
70
96
29.785714
0.748908
0.025899
0
0.135593
0
0
0.02321
0
0
0
0
0
0
1
0.050847
false
0
0.101695
0
0.20339
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
bcda1861cc6349c05142c05367f155b32d44ad1c
979
py
Python
frontend/widgets/button.py
AzoeDesarrollos/PyMavisDatabase
bfcd0557f63a4d8a73f0f8e891c47b47a1de1b45
[ "MIT" ]
null
null
null
frontend/widgets/button.py
AzoeDesarrollos/PyMavisDatabase
bfcd0557f63a4d8a73f0f8e891c47b47a1de1b45
[ "MIT" ]
2
2019-10-05T14:20:11.000Z
2019-10-05T14:22:31.000Z
frontend/widgets/button.py
AzoeDesarrollos/PyMavisDatabase
bfcd0557f63a4d8a73f0f8e891c47b47a1de1b45
[ "MIT" ]
null
null
null
from pygame import Surface, font from .basewidget import BaseWidget from frontend import Renderer, WidgetHandler class Button(BaseWidget): action = None def __init__(self, x, y, texto, action=None): self.f = font.SysFont('Verdana', 16) imagen = self.crear(texto) rect = imagen.get_rect...
27.971429
74
0.592441
133
979
4.263158
0.406015
0.042328
0.045855
0.049383
0
0
0
0
0
0
0
0.058156
0.279877
979
34
75
28.794118
0.746099
0
0
0
0
0
0.00715
0
0
0
0
0
0
1
0.185185
false
0.037037
0.111111
0
0.407407
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bcda32ab85ecef62e60d41fc5f944271b774ca47
709
py
Python
tensorflow_rnn/mnist_lstm.py
naoki009/samples
dac3bbddbd06374c39768cbe17fefd0110fe316f
[ "BSD-2-Clause" ]
null
null
null
tensorflow_rnn/mnist_lstm.py
naoki009/samples
dac3bbddbd06374c39768cbe17fefd0110fe316f
[ "BSD-2-Clause" ]
null
null
null
tensorflow_rnn/mnist_lstm.py
naoki009/samples
dac3bbddbd06374c39768cbe17fefd0110fe316f
[ "BSD-2-Clause" ]
1
2020-08-14T11:44:42.000Z
2020-08-14T11:44:42.000Z
import numpy as np import tensorflow as tf """ Do an MNIST classification line by line by LSTM """ (x_train, y_train), \ (x_test, y_test) = tf.keras.datasets.mnist.load_data() x_train, x_test = x_train/255.0, x_test/255.0 model = tf.keras.Sequential() model.add(tf.keras.layers.LSTM(128, input_shape=(None, 28))) ...
27.269231
67
0.70945
108
709
4.509259
0.481481
0.100616
0.082136
0.123203
0.172485
0
0
0
0
0
0
0.03437
0.138223
709
25
68
28.36
0.762684
0.066291
0
0
0
0
0.029752
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bcdd9f6e351b12352ead172914df612d99371de2
984
py
Python
scrap/CloudCoverUndersampling.py
cseale/kaggle-amazon-rainforests
cf42941bb3c70ba19257764b66fe33550be88e0b
[ "Apache-2.0" ]
null
null
null
scrap/CloudCoverUndersampling.py
cseale/kaggle-amazon-rainforests
cf42941bb3c70ba19257764b66fe33550be88e0b
[ "Apache-2.0" ]
null
null
null
scrap/CloudCoverUndersampling.py
cseale/kaggle-amazon-rainforests
cf42941bb3c70ba19257764b66fe33550be88e0b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # In[1]: import numpy as np import pandas as pd import os from random import shuffle from tqdm import tqdm DATA_DIR = '../input/amazon/' TRAIN_TIF_DIR = DATA_DIR + 'train-tif/' TRAIN_CSV = DATA_DIR + 'train.csv' TEST_TIF_DIR = DATA_DIR + 'test-tif/' IMG_SIZE = 100 LR = 1e-3 MODEL_NAME = 'amazon=-{...
20.93617
83
0.690041
168
984
3.845238
0.434524
0.198142
0.102167
0.123839
0.123839
0.086687
0.086687
0.086687
0
0
0
0.036188
0.15752
984
46
84
21.391304
0.743064
0.087398
0
0
0
0
0.114478
0
0
0
0
0
0
1
0
false
0
0.185185
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
bcde4233b8d9a36e066c7f656e904c7a4e46422b
3,247
py
Python
chintai-scrape/A001_parse_htmls.py
GINK03/itmedia-scraping
5afbe06dd0aa12db1694a2b387aa2eeafb20e981
[ "MIT" ]
16
2018-02-06T14:43:41.000Z
2021-01-23T05:07:33.000Z
chintai-scrape/A001_parse_htmls.py
GINK03/itmedia-scraping
5afbe06dd0aa12db1694a2b387aa2eeafb20e981
[ "MIT" ]
null
null
null
chintai-scrape/A001_parse_htmls.py
GINK03/itmedia-scraping
5afbe06dd0aa12db1694a2b387aa2eeafb20e981
[ "MIT" ]
4
2018-01-16T13:50:43.000Z
2019-12-16T19:45:54.000Z
import glob import bs4 import gzip import pickle import re import os from concurrent.futures import ProcessPoolExecutor as PPE import json from pathlib import Path from hashlib import sha256 import shutil Path('json').mkdir(exist_ok=True) def sanitize(text): text = re.sub(r'(\t|\n|\r)', '', text) text = re.s...
36.077778
158
0.55559
450
3,247
3.917778
0.297778
0.045944
0.054453
0.039705
0.263188
0.142938
0.052184
0
0
0
0
0.008959
0.278103
3,247
89
159
36.483146
0.743174
0.140437
0
0.081081
0
0
0.085252
0.007914
0
0
0
0
0
1
0.040541
false
0
0.162162
0
0.243243
0.040541
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
bcde81a6deec0252f40277dde895c56c9a4836eb
5,047
py
Python
google-datacatalog-apache-atlas-connector/src/google/datacatalog_connectors/apache_atlas/scrape/metadata_scraper.py
ricardolsmendes/datacatalog-connectors-hive
9e71588133c0b0227e789c8d6bb26cfa031d2cfb
[ "Apache-2.0" ]
19
2020-04-27T21:55:47.000Z
2022-03-22T19:45:14.000Z
google-datacatalog-apache-atlas-connector/src/google/datacatalog_connectors/apache_atlas/scrape/metadata_scraper.py
ricardolsmendes/datacatalog-connectors-hive
9e71588133c0b0227e789c8d6bb26cfa031d2cfb
[ "Apache-2.0" ]
12
2020-05-28T14:48:29.000Z
2022-01-15T17:52:09.000Z
google-datacatalog-apache-atlas-connector/src/google/datacatalog_connectors/apache_atlas/scrape/metadata_scraper.py
mesmacosta/datacatalog-connectors-hive
ab7e49fbef8599dd9053c2260b261ce01f510a47
[ "Apache-2.0" ]
15
2020-05-03T17:25:51.000Z
2022-01-11T22:10:35.000Z
#!/usr/bin/python # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
37.385185
79
0.656628
563
5,047
5.520426
0.248668
0.074003
0.040541
0.040541
0.211068
0.070463
0.038932
0.027027
0
0
0
0.002118
0.251437
5,047
134
80
37.664179
0.82054
0.12443
0
0.065217
0
0
0.089257
0.017488
0
0
0
0
0
1
0.086957
false
0
0.021739
0
0.141304
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
bcded4531d60ca947d6fb59affac50e25540dcfc
7,490
py
Python
aviary/roost/data.py
sxie22/aviary
74b87eee86067f69af6e5b86bd12fca2202c4de5
[ "MIT" ]
null
null
null
aviary/roost/data.py
sxie22/aviary
74b87eee86067f69af6e5b86bd12fca2202c4de5
[ "MIT" ]
null
null
null
aviary/roost/data.py
sxie22/aviary
74b87eee86067f69af6e5b86bd12fca2202c4de5
[ "MIT" ]
null
null
null
import functools import json from os.path import abspath, dirname, exists, join from typing import Dict, Sequence import numpy as np import pandas as pd import torch from pymatgen.core import Composition from torch.utils.data import Dataset class CompositionData(Dataset): def __init__( self, df: ...
33.738739
100
0.607076
960
7,490
4.517708
0.214583
0.037353
0.029052
0.029052
0.198063
0.110906
0.076089
0.061794
0.048421
0.031358
0
0.009901
0.298798
7,490
221
101
33.891403
0.81588
0.338451
0
0.017699
0
0
0.090372
0.008096
0
0
0
0
0.044248
1
0.035398
false
0
0.079646
0.00885
0.150442
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
bce1c979a2eb7695c7ea999525e47a17d52983b8
68,069
py
Python
symblic_game/NEW_GAME.py
zishanqin/Symbolic-transfer
b553f188ad3f6c6492fcff556ac6f597e56cf43e
[ "MIT" ]
3
2021-07-28T11:28:25.000Z
2021-07-28T11:56:58.000Z
symblic_game/NEW_GAME.py
zishanqin/Symbolic-transfer
b553f188ad3f6c6492fcff556ac6f597e56cf43e
[ "MIT" ]
null
null
null
symblic_game/NEW_GAME.py
zishanqin/Symbolic-transfer
b553f188ad3f6c6492fcff556ac6f597e56cf43e
[ "MIT" ]
1
2021-07-28T11:40:45.000Z
2021-07-28T11:40:45.000Z
'Author: Aimore Resende Riquetti Dutra' '''email: aimorerrd@hotmail.com''' # -------------------------------------------------------------------------------------------------- # # This code can run 4 different models of Reinforcement Learning: # Q-Learning (QL), DQN, SRL (DSRL), SRL+CS(DSRL_object_near) and some ot...
41.734519
231
0.491707
8,780
68,069
3.59123
0.083599
0.016111
0.016555
0.014589
0.47087
0.411627
0.367194
0.349244
0.32587
0.321049
0
0.033228
0.387651
68,069
1,630
232
41.760123
0.72295
0.177217
0
0.407504
0
0
0.059215
0.004821
0
0
0
0.000614
0
1
0.022688
false
0.002618
0.012216
0
0.045375
0.028796
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
bce25f2b08abacab5318cf6e45474c91216d772e
38,887
py
Python
tensor2tensor/trax/rlax/ppo.py
funtion/tensor2tensor
339295a276c4bfc93894c474979d0620d14b9710
[ "Apache-2.0" ]
1
2020-09-22T02:07:16.000Z
2020-09-22T02:07:16.000Z
tensor2tensor/trax/rlax/ppo.py
joeyism/tensor2tensor
2f0edae221a9ec2a415dbf7fcc3ff25b8777d830
[ "Apache-2.0" ]
null
null
null
tensor2tensor/trax/rlax/ppo.py
joeyism/tensor2tensor
2f0edae221a9ec2a415dbf7fcc3ff25b8777d830
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
35.255666
81
0.649806
5,453
38,887
4.417202
0.122501
0.007639
0.037198
0.023291
0.369037
0.281064
0.213808
0.183875
0.138415
0.113962
0
0.018077
0.254584
38,887
1,102
82
35.287659
0.812882
0.323656
0
0.290221
0
0.006309
0.048533
0.002985
0
0
0
0.004537
0.044164
1
0.039432
false
0
0.0347
0.003155
0.113565
0.004732
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
bce5b76758741bd43e051c43114fa45c1ec64384
9,421
py
Python
models/cal.py
SudoRmFr/The-Nature-Conservancy-Fisheries-Monitoring
059f0063c1493c19b4f45fa27d13adaeb6b2b2d7
[ "MIT" ]
null
null
null
models/cal.py
SudoRmFr/The-Nature-Conservancy-Fisheries-Monitoring
059f0063c1493c19b4f45fa27d13adaeb6b2b2d7
[ "MIT" ]
null
null
null
models/cal.py
SudoRmFr/The-Nature-Conservancy-Fisheries-Monitoring
059f0063c1493c19b4f45fa27d13adaeb6b2b2d7
[ "MIT" ]
null
null
null
""" WS-DAN models Hu et al., "See Better Before Looking Closer: Weakly Supervised Data Augmentation Network for Fine-Grained Visual Classification", arXiv:1901.09891 """ import logging import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import models.resnet as resnet from models.incep...
39.751055
135
0.604713
1,210
9,421
4.493388
0.203306
0.050212
0.022071
0.013794
0.309546
0.244804
0.22494
0.19588
0.181902
0.144749
0
0.018179
0.275979
9,421
236
136
39.919492
0.778918
0.071648
0
0.261628
0
0
0.055842
0
0
0
0
0
0.005814
1
0.052326
false
0
0.052326
0
0.145349
0.017442
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
bce6db15719682d4f24dcfd6984365aab4377658
1,526
py
Python
tests/walls/analytic/plates.py
noabauma/Mirheo
bf7979bfbbf402d33c26ac5dc879f880e78e7017
[ "MIT" ]
null
null
null
tests/walls/analytic/plates.py
noabauma/Mirheo
bf7979bfbbf402d33c26ac5dc879f880e78e7017
[ "MIT" ]
null
null
null
tests/walls/analytic/plates.py
noabauma/Mirheo
bf7979bfbbf402d33c26ac5dc879f880e78e7017
[ "MIT" ]
1
2021-07-14T13:24:05.000Z
2021-07-14T13:24:05.000Z
#!/usr/bin/env python import mirheo as mir dt = 0.001 ranks = (1, 1, 1) domain = (8, 16, 8) force = (1.0, 0, 0) density = 4 u = mir.Mirheo(ranks, domain, dt, debug_level=3, log_filename='log', no_splash=True) pv = mir.ParticleVectors.ParticleVector('pv', mass = 1) ic = mir.InitialConditions.Uniform(number_densit...
27.745455
138
0.692005
248
1,526
4.153226
0.423387
0.01165
0.008738
0.040777
0.009709
0
0
0
0
0
0
0.053707
0.133683
1,526
54
139
28.259259
0.725416
0.130406
0
0
0
0
0.049962
0
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
bceaba57987d2038b2b3f984d0fa700547f6902c
12,224
py
Python
SIO_Code/SIO_coherence.py
mmstoll/Ocean569_Code
228cb719f3e82f187f704f343d3b3590a38236d7
[ "MIT" ]
null
null
null
SIO_Code/SIO_coherence.py
mmstoll/Ocean569_Code
228cb719f3e82f187f704f343d3b3590a38236d7
[ "MIT" ]
null
null
null
SIO_Code/SIO_coherence.py
mmstoll/Ocean569_Code
228cb719f3e82f187f704f343d3b3590a38236d7
[ "MIT" ]
null
null
null
""" Data: Temperature and Salinity time series from SIO Scripps Pier Salinity: measured in PSU at the surface (~0.5m) and at depth (~5m) Temp: measured in degrees C at the surface (~0.5m) and at depth (~5m) - Timestamp included beginning in 1990 """ # imports import sys,os import pandas as pd import numpy as...
47.015385
156
0.724967
2,196
12,224
3.777322
0.161202
0.029898
0.020253
0.025316
0.588427
0.548885
0.512236
0.466426
0.466426
0.438457
0
0.04548
0.120419
12,224
259
157
47.196911
0.726004
0.286486
0
0.263473
0
0
0.209057
0.057679
0
0
0
0
0
1
0.005988
false
0
0.053892
0
0.065868
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
bceb90c866742318115d3897625ab3cd17dad9ae
1,782
py
Python
abfs/group_data_split.py
rcdilorenzo/abfs
a897d00a4589a9412a9b9e737f8db91df008fc26
[ "MIT" ]
7
2019-03-13T17:22:50.000Z
2022-01-09T09:03:16.000Z
abfs/group_data_split.py
rcdilorenzo/abfs
a897d00a4589a9412a9b9e737f8db91df008fc26
[ "MIT" ]
1
2019-08-01T23:42:09.000Z
2019-08-02T16:14:31.000Z
abfs/group_data_split.py
rcdilorenzo/abfs
a897d00a4589a9412a9b9e737f8db91df008fc26
[ "MIT" ]
2
2020-09-12T06:33:16.000Z
2021-01-01T01:05:48.000Z
from collections import namedtuple as Struct from sklearn.model_selection import GroupShuffleSplit, ShuffleSplit DataSplitConfig = Struct('DataSplitConfig', ['validation_size', 'test_size', 'random_seed']) DEFAULT_SPLIT_CONFIG = DataSplitConfig(0.2, 0.2, 1337) class GroupDataSplit(): def __init__(self, df, key, ...
30.724138
92
0.640292
225
1,782
4.777778
0.244444
0.044651
0.055814
0.053023
0.074419
0.074419
0.074419
0.074419
0
0
0
0.007559
0.257576
1,782
57
93
31.263158
0.804989
0.054433
0
0.170732
0
0
0.030048
0
0
0
0
0
0
1
0.195122
false
0
0.04878
0.02439
0.414634
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
bcef12fc47d4a9fcc176c51b16eef241913a4acb
2,989
py
Python
mmcls/models/utils/se_layer.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
1,190
2020-07-10T01:16:01.000Z
2022-03-31T09:48:38.000Z
mmcls/models/utils/se_layer.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
702
2020-07-13T13:31:33.000Z
2022-03-31T06:48:04.000Z
mmcls/models/utils/se_layer.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
502
2020-07-10T02:40:55.000Z
2022-03-31T02:07:09.000Z
# Copyright (c) OpenMMLab. All rights reserved. import mmcv import torch.nn as nn from mmcv.cnn import ConvModule from mmcv.runner import BaseModule from .make_divisible import make_divisible class SELayer(BaseModule): """Squeeze-and-Excitation Module. Args: channels (int): The input (and output) ch...
39.853333
77
0.603546
366
2,989
4.770492
0.306011
0.04811
0.030928
0.027491
0.266896
0.189003
0.158076
0.114548
0.068729
0.068729
0
0.010219
0.312479
2,989
74
78
40.391892
0.839416
0.405487
0
0.170213
0
0
0.058442
0
0
0
0
0
0.06383
1
0.042553
false
0
0.106383
0
0.191489
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
bcef9b7b7442550783a878ff705f2b12e8b4982b
605
py
Python
instagram/admin.py
James19stack/instagram-copy_cat
996a8678cec84a05e97d803356194cd112ee53e6
[ "MIT" ]
null
null
null
instagram/admin.py
James19stack/instagram-copy_cat
996a8678cec84a05e97d803356194cd112ee53e6
[ "MIT" ]
7
2021-04-08T21:26:44.000Z
2022-03-12T00:40:52.000Z
instagram/admin.py
James19stack/instagram-copy_cat
996a8678cec84a05e97d803356194cd112ee53e6
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Images,Comments,Profile # Register your models here. class CommentInline(admin.TabularInline): model=Comments extra=3 class ImageInline(admin.ModelAdmin): fieldsets=[ (None,{'fields':['image']}), (None,{'fields':['image_name']}), ...
24.2
49
0.676033
66
605
6.136364
0.5
0.098765
0.111111
0
0
0
0
0
0
0
0
0.001992
0.170248
605
24
50
25.208333
0.804781
0.042975
0
0
0
0
0.168403
0
0
0
0
0
0
1
0
false
0
0.117647
0
0.470588
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
bcf0d2ce383dabf5df66eb0e8657dcde75189cda
8,894
py
Python
core/recognizer.py
awen1988/yry
b65ccd7062d60f605fc978a87e060d0015cf1d4c
[ "Apache-2.0" ]
129
2017-11-14T07:20:33.000Z
2021-06-18T07:07:18.000Z
core/recognizer.py
awen1988/yry
b65ccd7062d60f605fc978a87e060d0015cf1d4c
[ "Apache-2.0" ]
10
2018-04-18T08:01:09.000Z
2018-08-17T02:57:33.000Z
core/recognizer.py
awen1988/yry
b65ccd7062d60f605fc978a87e060d0015cf1d4c
[ "Apache-2.0" ]
35
2017-11-14T07:17:00.000Z
2021-01-21T08:10:07.000Z
""" recognize face landmark """ import json import os import requests import numpy as np FACE_POINTS = list(range(0, 83)) JAW_POINTS = list(range(0, 19)) LEFT_EYE_POINTS = list(range(19, 29)) LEFT_BROW_POINTS = list(range(29, 37)) MOUTH_POINTS = list(range(37, 55)) NOSE_POINTS = list(range(55, 65)) RIGHT_EYE_POINTS =...
47.308511
103
0.619744
1,233
8,894
4.082725
0.111922
0.065952
0.03973
0.050854
0.523441
0.369289
0.025824
0
0
0
0
0.020574
0.158421
8,894
187
104
47.561497
0.651971
0.002586
0
0.03871
0
0
0.438565
0.271014
0
0
0
0
0
1
0.025806
false
0
0.025806
0
0.083871
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
bcf263d3ef948ac8eb8afa3a601107434d608075
1,646
py
Python
magvar.py
rafidmorshedi/mag-dec-api
5daff929be8cad902f8db331090c0ed77f7bdef9
[ "MIT" ]
null
null
null
magvar.py
rafidmorshedi/mag-dec-api
5daff929be8cad902f8db331090c0ed77f7bdef9
[ "MIT" ]
null
null
null
magvar.py
rafidmorshedi/mag-dec-api
5daff929be8cad902f8db331090c0ed77f7bdef9
[ "MIT" ]
null
null
null
import requests import time from bs4 import BeautifulSoup import re def decdeg2dms(dd): negative = dd < 0 dd = abs(dd) minutes,seconds = divmod(dd*3600,60) degrees,minutes = divmod(minutes,60) if negative: if degrees > 0: degrees = -degrees elif minutes > 0: ...
29.392857
76
0.59113
230
1,646
4.195652
0.495652
0.010363
0
0
0
0
0
0
0
0
0
0.032258
0.265492
1,646
56
77
29.392857
0.765922
0.241191
0
0.057143
0
0
0.10741
0
0
0
0
0
0
1
0.057143
false
0
0.114286
0
0.257143
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
bcf492dcec78d6b358e2430eb0bbca995c069560
5,054
py
Python
Deep-Learning/Crowd-Count/src/data_preprocess.py
sadbb/CVCode
c7c8b527af786d8f113122231e6296987b242b59
[ "Apache-2.0" ]
1
2018-11-18T05:43:05.000Z
2018-11-18T05:43:05.000Z
Deep-Learning/Crowd-Count/src/data_preprocess.py
sadbb/CVCode
c7c8b527af786d8f113122231e6296987b242b59
[ "Apache-2.0" ]
null
null
null
Deep-Learning/Crowd-Count/src/data_preprocess.py
sadbb/CVCode
c7c8b527af786d8f113122231e6296987b242b59
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # ------------------------ # written by Songjian Chen # 2018-10 # ------------------------ import os import skimage.io from skimage.color import rgb2gray import skimage.transform from scipy.io import loadmat import numpy as np import cv2 import math import warnings import random import torch imp...
38.287879
109
0.623467
740
5,054
4.07973
0.201351
0.027824
0.033124
0.006625
0.333885
0.251408
0.20636
0.141438
0.116926
0.10467
0
0.02869
0.234468
5,054
131
110
38.580153
0.751615
0.085675
0
0.166667
0
0
0.115577
0.059309
0
0
0
0
0
1
0.03125
false
0
0.125
0
0.177083
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
bcf6d0a350e5ace0a39c3f35ff8dbbc6f050f1f4
6,407
py
Python
shellmacros/istr.py
duaneellissd/shellmacros
33b5cd1a8794e35a9540f78dca066b8dfc289c97
[ "BSD-2-Clause" ]
null
null
null
shellmacros/istr.py
duaneellissd/shellmacros
33b5cd1a8794e35a9540f78dca066b8dfc289c97
[ "BSD-2-Clause" ]
null
null
null
shellmacros/istr.py
duaneellissd/shellmacros
33b5cd1a8794e35a9540f78dca066b8dfc289c97
[ "BSD-2-Clause" ]
null
null
null
''' Created on Dec 27, 2019 @author: duane ''' DOLLAR = ord('$') LBRACE = ord('{') RBRACE = ord('}') LPAREN = ord('(') RPAREN = ord(')') class IStrFindResult(object): OK = 0 NOTFOUND = 1 SYNTAX = 2 def __init__(self): self.result = IStrFindResult.SYNTAX self.lhs = 0 self.rh...
27.856522
81
0.517715
857
6,407
3.822637
0.271879
0.021978
0.014957
0.014652
0.107143
0.076313
0.076313
0.064713
0.064713
0.03663
0
0.024922
0.348681
6,407
229
82
27.978166
0.760125
0.26674
0
0.132353
0
0
0.059801
0
0
0
0.002879
0
0.044118
1
0.088235
false
0
0
0.022059
0.220588
0.066176
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
bcf76125149120b7d959b455bacb0c98cf4095f0
7,712
py
Python
cli.py
checktheroads/deenis
2581e2fcbb08a9c85590bd54e109f24cc87b664f
[ "WTFPL" ]
4
2019-07-18T18:16:31.000Z
2020-02-28T08:39:58.000Z
cli.py
checktheroads/deenis
2581e2fcbb08a9c85590bd54e109f24cc87b664f
[ "WTFPL" ]
null
null
null
cli.py
checktheroads/deenis
2581e2fcbb08a9c85590bd54e109f24cc87b664f
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 """ CLI for Accessing Deenis """ # Standard Imports import sys from pathlib import Path # Module Imports import click # Path Fixes working_dir = Path(__file__).resolve().parent sys.path.append(str(working_dir)) # Project Imports from deenis import Deenis @click.group( help=( "Deen...
36.72381
86
0.490794
803
7,712
4.585305
0.232877
0.057034
0.028517
0.024715
0.355785
0.297121
0.284628
0.284628
0.224335
0.224335
0
0.014309
0.374741
7,712
209
87
36.899522
0.748445
0.037863
0
0.305389
0
0
0.203714
0
0
0
0
0
0
1
0.017964
false
0.005988
0.023952
0
0.041916
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
bcf7f47be4d0d789e4869009ef9f2f68c5ab3b33
5,383
py
Python
main_cl.py
spiolynn/pybo
186495de315eb8ec47a996de959574f9864da7c4
[ "MIT" ]
null
null
null
main_cl.py
spiolynn/pybo
186495de315eb8ec47a996de959574f9864da7c4
[ "MIT" ]
null
null
null
main_cl.py
spiolynn/pybo
186495de315eb8ec47a996de959574f9864da7c4
[ "MIT" ]
null
null
null
# coding: utf-8 from bigone import BigOneDog from common import gen_logger import logging import time import json def strategy_eth_big_bnc_eth(dog): """ 正向:买BIG/ETH -> 卖BIG/BNC -> 买ETH/BNC 反向:卖ETH/BNC -> 买BIG/BNC -> 卖BIG/ETH :param dog: implemention of BigOneDog :return: 正向收益率,反向收益率 """ ...
35.886667
112
0.546907
774
5,383
3.605943
0.135659
0.068793
0.074167
0.085274
0.714439
0.677893
0.460408
0.335722
0.295593
0.264421
0
0.047108
0.2389
5,383
149
113
36.127517
0.634123
0.211964
0
0.204819
0
0.012048
0.192298
0
0
0
0
0
0
1
0.024096
false
0
0.060241
0
0.120482
0.216867
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
bcf86b7e6462408e17d610983a6cb23985d20fe4
1,191
py
Python
run_experiments.py
gahaalt/cifar-vs-tensorflow2
547d131382438ef76e315dde06a6870737f1fbad
[ "MIT" ]
6
2019-11-15T08:42:29.000Z
2021-03-04T11:58:39.000Z
run_experiments.py
gahaalt/cifar-vs-tensorflow2
547d131382438ef76e315dde06a6870737f1fbad
[ "MIT" ]
null
null
null
run_experiments.py
gahaalt/cifar-vs-tensorflow2
547d131382438ef76e315dde06a6870737f1fbad
[ "MIT" ]
3
2020-11-25T03:44:41.000Z
2021-03-08T04:45:56.000Z
import os import yaml import logging import importlib os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' logging.getLogger('tensorflow').disabled = True from cifar_training_tools import cifar_training, cifar_error_test def print_dict(d, tabs=0): tab = '\t' for key in d: if type(d[key]) == dict: pri...
27.697674
79
0.628044
164
1,191
4.390244
0.371951
0.05
0.038889
0.036111
0.35
0.305556
0.305556
0.305556
0.305556
0.305556
0
0.011482
0.195634
1,191
43
79
27.697674
0.740084
0
0
0.181818
0
0
0.218121
0
0
0
0
0
0
1
0.030303
false
0
0.212121
0
0.242424
0.363636
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
bcf9bd066aefdc4f6abca126693e2677662eb927
1,542
py
Python
histdata/mt5db/script_DownloadAndStoreToMongodb.py
UpSea/midProjects
ed6086e74f68b1b89f725abe0b270e67cf8993a8
[ "MIT" ]
1
2018-07-02T13:54:49.000Z
2018-07-02T13:54:49.000Z
histdata/mt5db/script_DownloadAndStoreToMongodb.py
UpSea/midProjects
ed6086e74f68b1b89f725abe0b270e67cf8993a8
[ "MIT" ]
null
null
null
histdata/mt5db/script_DownloadAndStoreToMongodb.py
UpSea/midProjects
ed6086e74f68b1b89f725abe0b270e67cf8993a8
[ "MIT" ]
3
2016-05-28T15:13:02.000Z
2021-04-10T06:04:25.000Z
# -*- coding: utf-8 -*- import os,sys from PyQt4 import QtGui,QtCore dataRoot = os.path.abspath(os.path.join(os.path.dirname(__file__),os.pardir,os.pardir,'histdata')) sys.path.append(dataRoot) import dataCenter as dataCenter from data.mongodb.DataSourceMongodb import Mongodb import datetime as dt ...
37.609756
133
0.527237
136
1,542
5.882353
0.595588
0.0225
0
0
0
0
0
0
0
0
0
0.023045
0.212062
1,542
41
134
37.609756
0.635391
0.311933
0
0
0
0
0.064176
0
0
0
0
0
0
1
0.08
false
0
0.2
0
0.32
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
bcfa7e8108972dea4c27619df4c1be7b06458b6e
3,813
py
Python
main.py
brunotoshio/castella
ad418bd1beb4953687a4ad7be586b12631c25992
[ "MIT" ]
2
2020-02-18T09:41:43.000Z
2020-02-20T11:03:03.000Z
main.py
brunotoshio/castella
ad418bd1beb4953687a4ad7be586b12631c25992
[ "MIT" ]
null
null
null
main.py
brunotoshio/castella
ad418bd1beb4953687a4ad7be586b12631c25992
[ "MIT" ]
null
null
null
import pymongo import yaml import sched import time import json from castella import TweetCrawler class Castella(object): def __init__(self): # Get connection parameters with open("settings.yml", "r") as stream: try: settings = yaml.safe_load(stream)["settings"] ...
37.019417
150
0.540782
383
3,813
5.206266
0.370757
0.036108
0.044132
0.017051
0.024072
0.024072
0.024072
0
0
0
0
0.006877
0.275374
3,813
103
151
37.019417
0.714803
0.039601
0
0.106667
0
0.013333
0.218998
0.082124
0
0
0
0
0
1
0.093333
false
0
0.08
0.026667
0.213333
0.16
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
bcfabdd28c428dd3bd0fa4eb4f234286130b7db0
1,275
py
Python
ngraph/test/frontend/paddlepaddle/test_models/gen_scripts/generate_slice.py
monroid/openvino
8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6
[ "Apache-2.0" ]
2,406
2020-04-22T15:47:54.000Z
2022-03-31T10:27:37.000Z
ngraph/test/frontend/paddlepaddle/test_models/gen_scripts/generate_slice.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
4,948
2020-04-22T15:12:39.000Z
2022-03-31T18:45:42.000Z
ngraph/test/frontend/paddlepaddle/test_models/gen_scripts/generate_slice.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
991
2020-04-23T18:21:09.000Z
2022-03-31T18:40:57.000Z
# # slice paddle model generator # import numpy as np from save_model import saveModel import paddle as pdpd import sys data_type = 'float32' def slice(name : str, x, axes : list, start : list, end : list): pdpd.enable_static() with pdpd.static.program_guard(pdpd.static.Program(), pdpd.static.Program()): ...
32.692308
116
0.622745
191
1,275
4.036649
0.408377
0.090791
0.066148
0.031128
0.16083
0.098573
0.098573
0.098573
0.098573
0.098573
0
0.036963
0.214902
1,275
39
117
32.692308
0.733267
0.075294
0
0
0
0
0.026383
0
0
0
0
0
0
1
0.08
false
0
0.16
0
0.28
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
bcfca1189da0e63d3e685ea19031e90196e49d8d
719
py
Python
testfixtures/compat.py
cjw296/testfixtures
1bf1e6fe1e111210d6d7fbcd00feb564095ffd02
[ "MIT" ]
null
null
null
testfixtures/compat.py
cjw296/testfixtures
1bf1e6fe1e111210d6d7fbcd00feb564095ffd02
[ "MIT" ]
null
null
null
testfixtures/compat.py
cjw296/testfixtures
1bf1e6fe1e111210d6d7fbcd00feb564095ffd02
[ "MIT" ]
null
null
null
# compatibility module for different python versions import sys if sys.version_info[:2] > (3, 0): PY2 = False PY3 = True Bytes = bytes Unicode = str basestring = str class_type_name = 'class' ClassType = type exception_module = 'builtins' new_class = type self_name = '__self_...
18.435897
52
0.635605
85
719
5.188235
0.494118
0.061224
0.058957
0
0
0
0
0
0
0
0
0.014
0.30459
719
38
53
18.921053
0.868
0.069541
0
0
0
0
0.062969
0
0
0
0
0
0
1
0
false
0
0.185185
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
bcfd55447233f3a98240a98d95e5f9301c8b38ec
3,898
py
Python
old_py2/tests/models_tests/notifications/test_match_score.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
266
2015-01-04T00:10:48.000Z
2022-03-28T18:42:05.000Z
tests/models_tests/notifications/test_match_score.py
gregmarra/the-blue-alliance
5bedaf5c80b4623984760d3da3289640639112f9
[ "MIT" ]
2,673
2015-01-01T20:14:33.000Z
2022-03-31T18:17:16.000Z
tests/models_tests/notifications/test_match_score.py
gregmarra/the-blue-alliance
5bedaf5c80b4623984760d3da3289640639112f9
[ "MIT" ]
230
2015-01-04T00:10:48.000Z
2022-03-26T18:12:04.000Z
import re import unittest2 from google.appengine.ext import ndb from google.appengine.ext import testbed from consts.notification_type import NotificationType from helpers.event.event_test_creator import EventTestCreator from models.team import Team from models.notifications.match_score import MatchScoreNotification...
41.913978
94
0.69882
459
3,898
5.753813
0.211329
0.102234
0.083302
0.070428
0.604317
0.537675
0.522529
0.491859
0.464218
0.464218
0
0.006283
0.183427
3,898
92
95
42.369565
0.823437
0.014366
0
0.388889
0
0.027778
0.09664
0
0
0
0
0
0.333333
1
0.138889
false
0
0.111111
0
0.263889
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
bcfde8681fdc58448a7018049cb36bbab73499b0
21,700
py
Python
Compliant_control/Force Tracking/archive/VIC_Huang1992_(main 09.03).py
martihmy/Compliant_control
485f627fa83d59f414f41bd57c5d37528ef5f1ec
[ "Apache-2.0" ]
null
null
null
Compliant_control/Force Tracking/archive/VIC_Huang1992_(main 09.03).py
martihmy/Compliant_control
485f627fa83d59f414f41bd57c5d37528ef5f1ec
[ "Apache-2.0" ]
null
null
null
Compliant_control/Force Tracking/archive/VIC_Huang1992_(main 09.03).py
martihmy/Compliant_control
485f627fa83d59f414f41bd57c5d37528ef5f1ec
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python import copy from copy import deepcopy import rospy import threading import quaternion import numpy as np from geometry_msgs.msg import Point from visualization_msgs.msg import * from franka_interface import ArmInterface from panda_robot import PandaArm import matplotlib.pyplot as plt from scipy.s...
36.842105
267
0.638157
3,877
21,700
3.367552
0.124581
0.008885
0.028799
0.009191
0.431756
0.369868
0.299556
0.241651
0.184666
0.147672
0
0.056673
0.193364
21,700
588
268
36.904762
0.689214
0.157419
0
0.224852
0
0
0.024836
0
0
0
0
0
0
1
0.088757
false
0
0.035503
0.02071
0.221893
0.011834
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
4c016da0c81742ef879e9615198cd22dc666a5c6
6,998
py
Python
pycmap/common.py
mdashkezari/pycmap
5b526404d005ec220ab0911cd2f3c05263f9eda3
[ "MIT" ]
4
2019-09-23T17:12:42.000Z
2022-02-01T02:38:40.000Z
pycmap/common.py
mdashkezari/pycmap
5b526404d005ec220ab0911cd2f3c05263f9eda3
[ "MIT" ]
2
2019-09-20T12:56:21.000Z
2019-09-24T23:08:26.000Z
pycmap/common.py
mdashkezari/pycmap
5b526404d005ec220ab0911cd2f3c05263f9eda3
[ "MIT" ]
1
2019-12-18T20:47:20.000Z
2019-12-18T20:47:20.000Z
""" Author: Mohammad Dehghani Ashkezari <mdehghan@uw.edu> Date: 2019-06-28 Function: Host a collection of shared multi-purpose helper functions. """ import os import sys from tqdm import tqdm from colorama import Fore, Back, Style, init import numpy as np import pandas as pd import webbrowser import I...
33.32381
131
0.572021
830
6,998
4.718072
0.316867
0.01379
0.01379
0.011236
0.089632
0.066905
0.055669
0.055669
0.024004
0
0
0.011767
0.319949
6,998
209
132
33.483254
0.811095
0.228637
0
0.125984
0
0
0.090981
0.01665
0
0
0
0
0
1
0.165354
false
0.007874
0.07874
0
0.409449
0.023622
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
4c03d0743c0121e9d0de50ceaa47b8661683af6f
2,207
py
Python
tests/test_device.py
michaelwoods/home-assistant-cli
340643af943f36283621f39ac39a690b1fccc045
[ "Apache-2.0" ]
null
null
null
tests/test_device.py
michaelwoods/home-assistant-cli
340643af943f36283621f39ac39a690b1fccc045
[ "Apache-2.0" ]
null
null
null
tests/test_device.py
michaelwoods/home-assistant-cli
340643af943f36283621f39ac39a690b1fccc045
[ "Apache-2.0" ]
null
null
null
"""Testing Device operations.""" import json import unittest.mock as mock from click.testing import CliRunner import homeassistant_cli.cli as cli def test_device_list(default_devices) -> None: """Test Device List.""" with mock.patch( 'homeassistant_cli.remote.get_devices', return_value=default_devic...
29.824324
76
0.557771
223
2,207
5.35426
0.269058
0.080402
0.054439
0.108878
0.572027
0.554439
0.525126
0.460637
0.460637
0.460637
0
0.005416
0.330766
2,207
73
77
30.232877
0.802979
0.039873
0
0.535714
0
0
0.178742
0.084843
0
0
0
0
0.142857
1
0.053571
false
0
0.071429
0
0.125
0.017857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
4c03f5083b7da646254c6bd784cf88ab749969d1
4,350
py
Python
widgets/tree_item.py
tarsa129/j3d-animation-editor
3f0691bd7dcece6e2055a0b5af0510608f28f2ca
[ "MIT" ]
6
2020-08-10T13:09:03.000Z
2021-11-20T02:37:46.000Z
widgets/tree_item.py
tarsa129/j3d-animation-editor
3f0691bd7dcece6e2055a0b5af0510608f28f2ca
[ "MIT" ]
3
2021-02-16T06:20:23.000Z
2022-02-24T21:43:41.000Z
widgets/tree_item.py
tarsa129/j3d-animation-editor
3f0691bd7dcece6e2055a0b5af0510608f28f2ca
[ "MIT" ]
2
2021-02-16T05:02:04.000Z
2021-12-17T16:11:10.000Z
from PyQt5.QtWidgets import QAction, QTreeWidget, QTreeWidgetItem, QFileDialog from PyQt5.QtGui import QIcon from PyQt5.QtCore import Qt import animations.general_animation as j3d from widgets.yaz0 import compress, compress_slow, compress_fast from io import BytesIO class tree_item(QTreeWidgetItem): def __init__(...
37.5
116
0.55931
495
4,350
4.739394
0.248485
0.086957
0.044757
0.031969
0.198636
0.155158
0.131287
0.080136
0.080136
0.080136
0
0.013575
0.33954
4,350
116
117
37.5
0.802993
0.013333
0
0.168421
0
0
0.031694
0
0
0
0
0
0
1
0.084211
false
0
0.063158
0
0.168421
0.021053
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
4c040273405e24f9a3249bb42b05984c6988f41a
3,445
py
Python
Wheels.py
edhosken/WheelsSong
cb988c8510a1095eeec3a2399b0fc0ba24bfa648
[ "MIT" ]
null
null
null
Wheels.py
edhosken/WheelsSong
cb988c8510a1095eeec3a2399b0fc0ba24bfa648
[ "MIT" ]
null
null
null
Wheels.py
edhosken/WheelsSong
cb988c8510a1095eeec3a2399b0fc0ba24bfa648
[ "MIT" ]
null
null
null
#Create the pre-defined song values and empty variables...Correct names not used so each starting letter would be unique numbers = (1 ,2 ,3 ,4 ,5 ,6 ,7 ,8 ,9 ,10 ,11 ,12 ,13 ,14 ,15 ,16 ,17 ,18 ) letters = ['a ','b ','c ','d ','e ','f ','g ','h ','i ','j ','k ','l ','m ','n ','o ','p ','q ','r '] roman = ['I ', 'II ...
37.445652
204
0.54688
515
3,445
3.658252
0.450485
0.016985
0.014331
0.008493
0
0
0
0
0
0
0
0.037481
0.248766
3,445
91
205
37.857143
0.690495
0.150943
0
0
0
0.033333
0.299313
0
0
0
0
0
0
1
0
false
0
0
0
0
0.116667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
4c0417fc2a324560f940489498afd9c4d64ac7c7
15,792
py
Python
tests/test_config.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
tests/test_config.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
tests/test_config.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
# (c) 2012-2014 Continuum Analytics, Inc. / http://continuum.io # All Rights Reserved # # conda is distributed under the terms of the BSD 3-clause license. # Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause. import os from os.path import dirname, join, exists import unittest import pytest import con...
30.31094
111
0.597138
1,821
15,792
5.010434
0.157606
0.085598
0.050964
0.069049
0.629768
0.58516
0.539347
0.500986
0.457475
0.436651
0
0.005498
0.262918
15,792
520
112
30.369231
0.778351
0.097771
0
0.622047
0
0
0.301998
0.02906
0
0
0
0.001923
0.194226
1
0.03937
false
0.044619
0.020997
0.002625
0.068241
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
4c045d0953c279b203d260f5d6f3f9a0b7bdf019
3,579
py
Python
malaya/transformers/babble.py
ahmed3991/malaya
d90be6d5b2a1393a3f8b8b1ffa8ae676cdaa083c
[ "MIT" ]
1
2021-03-19T22:42:34.000Z
2021-03-19T22:42:34.000Z
malaya/transformers/babble.py
ahmed3991/malaya
d90be6d5b2a1393a3f8b8b1ffa8ae676cdaa083c
[ "MIT" ]
null
null
null
malaya/transformers/babble.py
ahmed3991/malaya
d90be6d5b2a1393a3f8b8b1ffa8ae676cdaa083c
[ "MIT" ]
null
null
null
# Bert has a Mouth, and It Must Speak: BERT as a Markov Random Field Language Model, # by Alex Wang, Kyunghyun Cho, NeuralGen 2019 # https://colab.research.google.com/drive/1MxKZGtQ9SSBjTK5ArsZ5LKhkztzg52RV # https://arxiv.org/abs/1902.04094 import tensorflow as tf import tensorflow_probability as tfp import numpy as ...
28.632
84
0.626991
470
3,579
4.570213
0.304255
0.01676
0.026536
0.019553
0.217877
0.192737
0.090317
0.057728
0.057728
0.057728
0
0.016
0.266555
3,579
124
85
28.862903
0.802286
0.065102
0
0.10101
0
0
0.010775
0
0
0
0
0
0
1
0.070707
false
0
0.050505
0.020202
0.191919
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
4c045e92df54148ce6ef4110afe95ac625400e40
652
py
Python
coding patterns/two pointers/sortedarr_square.py
mkoryor/Python
837ec4c03130dc4cb919fb5f1eeb4d31206790e4
[ "Unlicense" ]
null
null
null
coding patterns/two pointers/sortedarr_square.py
mkoryor/Python
837ec4c03130dc4cb919fb5f1eeb4d31206790e4
[ "Unlicense" ]
null
null
null
coding patterns/two pointers/sortedarr_square.py
mkoryor/Python
837ec4c03130dc4cb919fb5f1eeb4d31206790e4
[ "Unlicense" ]
null
null
null
""" [E] Given a sorted array, create a new array containing squares of all the number of the input array in the sorted order. Input: [-2, -1, 0, 2, 3] Output: [0, 1, 4, 4, 9] """ # Time: O(N) Space: O(n) def make_squares(arr): n = len(arr) squares = [0 for x in range(n)] highestSquareIdx = n - 1 left, r...
19.757576
75
0.619632
94
652
4.287234
0.457447
0.009926
0
0
0
0
0
0
0
0
0
0.035124
0.257669
652
32
76
20.375
0.797521
0.300614
0
0
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0
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
4c060ddce60243c22acf2298bfd181a17b757f40
1,917
py
Python
modules/evaluate/evaluate_step.py
Azure/aml-object-classification-pipeline
f94e4327ebfb5534b52c5c70e82832a86c64a2d1
[ "MIT" ]
5
2020-05-20T12:41:31.000Z
2022-03-18T17:35:26.000Z
modules/evaluate/evaluate_step.py
Azure/aml-object-classification-pipeline
f94e4327ebfb5534b52c5c70e82832a86c64a2d1
[ "MIT" ]
null
null
null
modules/evaluate/evaluate_step.py
Azure/aml-object-classification-pipeline
f94e4327ebfb5534b52c5c70e82832a86c64a2d1
[ "MIT" ]
5
2020-06-03T12:19:20.000Z
2021-12-30T02:58:06.000Z
import os from azureml.pipeline.steps import PythonScriptStep from azureml.core.runconfig import RunConfiguration from azureml.core.conda_dependencies import CondaDependencies from azureml.pipeline.core import PipelineData from azureml.pipeline.core import PipelineParameter from azureml.pipeline.steps import EstimatorS...
34.232143
87
0.708399
225
1,917
5.817778
0.355556
0.082506
0.05806
0.036669
0.154316
0.064171
0.064171
0.064171
0
0
0
0.001333
0.217527
1,917
55
88
34.854545
0.871333
0.261346
0
0.055556
0
0
0.079179
0
0
0
0
0
0
1
0.027778
false
0
0.222222
0
0.277778
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
4c0955be4956893e543176a5a678b0a7caa5514d
4,806
py
Python
configs/mobilenet_cfbi.py
yoxu515/CFBI
0bab1e3c9fc3e3ba0629f716d60221e8f8d9d586
[ "BSD-3-Clause" ]
312
2020-03-15T03:51:52.000Z
2022-03-23T07:33:39.000Z
configs/mobilenet_cfbi.py
geekJZY/CFBI
90a0cd6a3e7961f47f266c7620e8dc281dc43ac8
[ "BSD-3-Clause" ]
55
2020-06-27T06:39:27.000Z
2022-03-24T19:02:15.000Z
configs/mobilenet_cfbi.py
geekJZY/CFBI
90a0cd6a3e7961f47f266c7620e8dc281dc43ac8
[ "BSD-3-Clause" ]
41
2020-07-28T00:52:04.000Z
2022-03-25T08:49:47.000Z
import torch import argparse import os import sys import cv2 import time class Configuration(): def __init__(self): self.EXP_NAME = 'mobilenetv2_cfbi' self.DIR_ROOT = './' self.DIR_DATA = os.path.join(self.DIR_ROOT, 'datasets') self.DIR_DAVIS = os.path.join(self.DIR_DATA, 'DAVIS'...
36.687023
123
0.645651
678
4,806
4.247788
0.300885
0.096875
0.034722
0.048611
0.13125
0.104861
0.067014
0.030208
0
0
0
0.036302
0.266334
4,806
130
124
36.969231
0.780488
0.011236
0
0
0
0
0.05813
0.01011
0
0
0
0
0
1
0.017699
false
0
0.053097
0
0.079646
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
4c09c2107e354abe29a0559333bd163e132e44d0
4,551
py
Python
tensorflow/python/util/tf_should_use_test.py
npow/tensorflow
99ae68bba52bb6338af06f37bb104128d7af6fb4
[ "Apache-2.0" ]
null
null
null
tensorflow/python/util/tf_should_use_test.py
npow/tensorflow
99ae68bba52bb6338af06f37bb104128d7af6fb4
[ "Apache-2.0" ]
null
null
null
tensorflow/python/util/tf_should_use_test.py
npow/tensorflow
99ae68bba52bb6338af06f37bb104128d7af6fb4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
33.463235
80
0.702703
612
4,551
5.014706
0.269608
0.046921
0.035842
0.046921
0.478658
0.427175
0.405018
0.38058
0.36103
0.350603
0
0.009851
0.174687
4,551
135
81
33.711111
0.807242
0.202373
0
0.525253
0
0
0.067463
0
0
0
0
0
0.242424
1
0.161616
false
0
0.10101
0.030303
0.30303
0.010101
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
4c0a433f8f2a1c5fe05d98092959a53a97b1beea
8,767
bzl
Python
tools/jdk/local_java_repository.bzl
loongarch64/bazel
44c30aceec076a0c25f506508704df0b9aeb6578
[ "Apache-2.0" ]
16,989
2015-09-01T19:57:15.000Z
2022-03-31T23:54:00.000Z
tools/jdk/local_java_repository.bzl
loongarch64/bazel
44c30aceec076a0c25f506508704df0b9aeb6578
[ "Apache-2.0" ]
12,562
2015-09-01T09:06:01.000Z
2022-03-31T22:26:20.000Z
tools/jdk/local_java_repository.bzl
loongarch64/bazel
44c30aceec076a0c25f506508704df0b9aeb6578
[ "Apache-2.0" ]
3,707
2015-09-02T19:20:01.000Z
2022-03-31T17:06:14.000Z
# Copyright 2020 The Bazel 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 applicable la...
37.626609
130
0.666705
1,061
8,767
5.282752
0.240339
0.035682
0.027119
0.011418
0.255129
0.17413
0.138448
0.106334
0.072792
0.072792
0
0.006083
0.231208
8,767
232
131
37.788793
0.825519
0.285046
0
0.168919
0
0.006757
0.2881
0.096088
0
0
0
0
0
1
0.027027
false
0
0
0
0.060811
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
4c0ab106ed9ecd5a4593bfc5cb160cb433ae9bfc
2,563
py
Python
corehq/apps/fixtures/resources/v0_1.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
corehq/apps/fixtures/resources/v0_1.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/fixtures/resources/v0_1.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
from couchdbkit import ResourceNotFound from tastypie import fields as tp_f from corehq.apps.api.resources import JsonResource from corehq.apps.api.resources.v0_1 import ( CustomResourceMeta, RequirePermissionAuthentication, ) from corehq.apps.api.util import get_object_or_not_exist from corehq.apps.fixtures.mo...
39.430769
79
0.673039
309
2,563
5.359223
0.294498
0.025362
0.057971
0.068841
0.123188
0.036232
0
0
0
0
0
0.001542
0.240734
2,563
64
80
40.046875
0.849435
0.02263
0
0.037037
0
0
0.057131
0.011586
0
0
0
0
0
1
0.055556
false
0
0.12963
0.018519
0.37037
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
4c0c9d4712283b7b6b90ddca4309f49cea6694d9
737
py
Python
fastapi_router_controller/lib/controller_loader.py
KiraPC/fastapi-router-controller
e105701ebce2e03a0e00ac182c10941daf1b7e22
[ "MIT" ]
21
2021-03-30T19:39:46.000Z
2022-03-30T22:27:39.000Z
fastapi_router_controller/lib/controller_loader.py
KiraPC/fastapi-router-controller
e105701ebce2e03a0e00ac182c10941daf1b7e22
[ "MIT" ]
12
2021-03-30T20:52:15.000Z
2022-02-23T09:20:42.000Z
fastapi_router_controller/lib/controller_loader.py
KiraPC/fastapi-router-controller
e105701ebce2e03a0e00ac182c10941daf1b7e22
[ "MIT" ]
6
2021-04-03T19:17:55.000Z
2021-12-20T10:20:57.000Z
import os import importlib class ControllerLoader: """ The ControllerLoader class. """ @staticmethod def load(directory, package): """ It is an utility to load automatically all the python module presents on a given directory """ for module in os.listdir(di...
29.48
79
0.561737
76
737
5.289474
0.526316
0.044776
0.094527
0
0
0
0
0
0
0
0
0.004016
0.324288
737
24
80
30.708333
0.803213
0.160109
0
0
0
0
0.043706
0
0
0
0
0
0
1
0.071429
false
0
0.285714
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c0e902c9bd14492f727e042bd245ed10c04c202
2,739
py
Python
zenslackchat/eventsview.py
uktrade/zenslackchat
8071757e1ea20a433783c6a7c47f25b046692682
[ "MIT" ]
2
2020-12-30T07:46:12.000Z
2022-02-01T16:37:34.000Z
zenslackchat/eventsview.py
uktrade/zenslackchat
8071757e1ea20a433783c6a7c47f25b046692682
[ "MIT" ]
7
2021-04-14T16:17:29.000Z
2022-01-25T11:48:18.000Z
zenslackchat/eventsview.py
uktrade/zenslackchat
8071757e1ea20a433783c6a7c47f25b046692682
[ "MIT" ]
1
2021-06-06T09:46:47.000Z
2021-06-06T09:46:47.000Z
import pprint import logging from django.conf import settings from rest_framework import status from rest_framework.views import APIView from rest_framework.response import Response from zenslackchat.message import handler from zenslackchat.models import SlackApp from zenslackchat.models import ZendeskApp class Eve...
38.041667
79
0.649507
349
2,739
4.982808
0.424069
0.055204
0.029327
0.032202
0.049454
0
0
0
0
0
0
0.004539
0.276013
2,739
71
80
38.577465
0.872416
0.359985
0
0
0
0
0.082938
0.021327
0
0
0
0
0
1
0.027778
false
0
0.25
0
0.388889
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
4c0ea6f1c1da094761872bcebae0cfc6089b3d54
16,882
py
Python
sdv/docker/sdvstate/internal/validator/airship/compute_check.py
opnfv/cirv-sdv
31fb310d3fd1c9c1f12cfe0c654870e24f5efab6
[ "Apache-2.0" ]
2
2021-09-16T06:31:45.000Z
2022-03-09T19:59:55.000Z
sdv/docker/sdvstate/internal/validator/airship/compute_check.py
opnfv/cirv-sdv
31fb310d3fd1c9c1f12cfe0c654870e24f5efab6
[ "Apache-2.0" ]
null
null
null
sdv/docker/sdvstate/internal/validator/airship/compute_check.py
opnfv/cirv-sdv
31fb310d3fd1c9c1f12cfe0c654870e24f5efab6
[ "Apache-2.0" ]
2
2021-05-11T14:41:01.000Z
2021-05-14T05:59:38.000Z
# Copyright 2020 University Of Delhi. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
25.197015
91
0.65093
2,028
16,882
5.116371
0.130178
0.022263
0.029491
0.013878
0.555127
0.499325
0.463184
0.431284
0.4016
0.352062
0
0.005245
0.243395
16,882
669
92
25.234679
0.807093
0.216384
0
0.435484
0
0
0.137253
0.025965
0
0
0
0
0
1
0.109677
false
0.022581
0.022581
0
0.241935
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
4c1112a8d3df95d531441fb2f11172b25c1ca8ae
1,945
py
Python
src/tests/client_side/test_main.py
JulianSobott/OpenDrive
0593c994c3bccccc4351557c42d13f3535b6b6c1
[ "Apache-2.0" ]
1
2021-03-18T16:20:46.000Z
2021-03-18T16:20:46.000Z
src/tests/client_side/test_main.py
JulianSobott/OpenDrive
0593c994c3bccccc4351557c42d13f3535b6b6c1
[ "Apache-2.0" ]
2
2019-06-04T21:50:23.000Z
2019-06-14T13:20:50.000Z
src/tests/client_side/test_main.py
JulianSobott/OpenDrive
0593c994c3bccccc4351557c42d13f3535b6b6c1
[ "Apache-2.0" ]
null
null
null
import os import threading import time import unittest from OpenDrive.client_side import file_changes_json as c_json from OpenDrive.client_side import interface from OpenDrive.client_side import main from OpenDrive.client_side import paths as client_paths from OpenDrive.server_side import paths as server_paths from te...
42.282609
108
0.748586
281
1,945
4.825623
0.341637
0.057522
0.056047
0.067847
0.271386
0.088496
0.044248
0
0
0
0
0.006832
0.172237
1,945
45
109
43.222222
0.835404
0.045758
0
0
0
0
0.046976
0
0
0
0
0
0.052632
1
0.078947
false
0
0.289474
0
0.394737
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
4c1540d22f910c13d547019d54ee005a23d41b8e
559
py
Python
country/management/commands/populate_countries.py
okchaty/django-country
740bc25956dc1b87f44486538a62037e0bd0ac94
[ "MIT" ]
1
2020-04-02T16:50:38.000Z
2020-04-02T16:50:38.000Z
country/management/commands/populate_countries.py
okchaty/django-country
740bc25956dc1b87f44486538a62037e0bd0ac94
[ "MIT" ]
4
2020-03-30T15:39:55.000Z
2020-04-10T15:04:28.000Z
country/management/commands/populate_countries.py
okchaty/django-country
740bc25956dc1b87f44486538a62037e0bd0ac94
[ "MIT" ]
null
null
null
from django.conf import settings from django.core.management import call_command from django.core.management.base import BaseCommand from os import path class Command(BaseCommand): help = "Populates data" def handle(self, *args, **options): fixture_path = path.join(path.dirname( path.dirn...
27.95
56
0.615385
59
559
5.677966
0.559322
0.089552
0.134328
0.143284
0.110448
0
0
0
0
0
0
0.002513
0.288014
559
19
57
29.421053
0.839196
0
0
0.125
0
0
0.067979
0
0
0
0
0
0
1
0.0625
false
0
0.25
0
0.4375
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
4c1606fa8a8ca96d6fb7ac7c7412b894e0bb3a10
417
py
Python
formatter.py
Staist/Python-Text-Formatter
6ae865d45301906eaa133551301dc785602f5b38
[ "MIT" ]
null
null
null
formatter.py
Staist/Python-Text-Formatter
6ae865d45301906eaa133551301dc785602f5b38
[ "MIT" ]
null
null
null
formatter.py
Staist/Python-Text-Formatter
6ae865d45301906eaa133551301dc785602f5b38
[ "MIT" ]
null
null
null
dosyaadi = input("Enter file name: ") dosyaadi = str(dosyaadi + ".txt") with open(dosyaadi, 'r') as file : dosyaicerigi = file.read() silinecek = str(input("Enter the text that you wish to delete: ")) dosyaicerigi = dosyaicerigi.replace(silinecek, '') with open(dosyaadi, 'w') as file: file.write(dosyai...
26.0625
67
0.647482
51
417
5.294118
0.568627
0.074074
0.118519
0
0
0
0
0
0
0
0
0.011869
0.191847
417
15
68
27.8
0.789318
0
0
0.166667
0
0
0.21393
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
4c168858057ebcae4ef4e91a7860a8034fcefa15
6,106
py
Python
covid19/classification/helpers.py
salvacarrion/mltests
e4ac9711c1c80171f302edc88011fbe06e754490
[ "MIT" ]
null
null
null
covid19/classification/helpers.py
salvacarrion/mltests
e4ac9711c1c80171f302edc88011fbe06e754490
[ "MIT" ]
1
2022-01-01T06:09:26.000Z
2022-01-01T06:09:26.000Z
covid19/classification/helpers.py
salvacarrion/mltests
e4ac9711c1c80171f302edc88011fbe06e754490
[ "MIT" ]
null
null
null
import tensorflow as tf @tf.function def BinaryAccuracy_Infiltrates(y_true, y_pred, i=0): return tf.keras.metrics.binary_accuracy(y_true[:, i], y_pred[:, i]) @tf.function def BinaryAccuracy_Pneumonia(y_true, y_pred, i=1): return tf.keras.metrics.binary_accuracy(y_true[:, i], y_pred[:, i]) @tf.function def...
35.5
104
0.664265
748
6,106
5.259358
0.221925
0.040925
0.057956
0.09456
0.396289
0.346467
0.252415
0.217844
0.182766
0.166497
0
0.016698
0.225188
6,106
171
105
35.707602
0.814838
0.092041
0
0.234783
0
0
0.089247
0.011586
0
0
0
0
0
1
0.113043
false
0
0.113043
0.034783
0.313043
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c16d8f05cc4bb4747f1b27b93145e440fc653d6
3,528
py
Python
null/twitter/twmedia-dl.py
mikoim/funstuff
3c391c76784a4bb37983c1a251773bfa61182ce1
[ "MIT" ]
null
null
null
null/twitter/twmedia-dl.py
mikoim/funstuff
3c391c76784a4bb37983c1a251773bfa61182ce1
[ "MIT" ]
null
null
null
null/twitter/twmedia-dl.py
mikoim/funstuff
3c391c76784a4bb37983c1a251773bfa61182ce1
[ "MIT" ]
null
null
null
import re import json import time import sys import httplib2 from twitter import * import magic class TwitterMediaDL: http = httplib2.Http(".cache") baseUrl = "https://twitter.com" consumer_key = "" consumer_secret = "" access_token_key = "" access_token_secret = "" t = Twitter(auth=OAu...
30.947368
133
0.552721
453
3,528
4.125828
0.302428
0.018727
0.032103
0.030498
0.264312
0.23114
0.197967
0.173355
0.173355
0.173355
0
0.012857
0.294501
3,528
113
134
31.221239
0.738047
0
0
0.146341
0
0.02439
0.161281
0.070295
0
0
0
0
0
1
0.073171
false
0
0.085366
0.012195
0.329268
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
4c189de34ca4832b1a00970032415cde76a25896
9,133
py
Python
girder/models/group.py
scottwittenburg/girder
a5062badc97bf2a87a385648f2ff3f9ff1990a75
[ "Apache-2.0" ]
null
null
null
girder/models/group.py
scottwittenburg/girder
a5062badc97bf2a87a385648f2ff3f9ff1990a75
[ "Apache-2.0" ]
null
null
null
girder/models/group.py
scottwittenburg/girder
a5062badc97bf2a87a385648f2ff3f9ff1990a75
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright 2013 Kitware 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 cop...
34.858779
79
0.581518
1,092
9,133
4.84707
0.260989
0.027206
0.017193
0.012847
0.173626
0.108823
0.085018
0.048744
0.048744
0.033251
0
0.003321
0.307566
9,133
261
80
34.992337
0.83365
0.394394
0
0.218487
0
0
0.122746
0
0
0
0
0
0.008403
1
0.084034
false
0
0.02521
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
4c1a065c357d38d64659fb6993766afa52a31235
9,999
py
Python
main.py
acitv/plugin.video.aci
c836096c90affd80949e51cd24517709a63eff52
[ "MIT" ]
null
null
null
main.py
acitv/plugin.video.aci
c836096c90affd80949e51cd24517709a63eff52
[ "MIT" ]
null
null
null
main.py
acitv/plugin.video.aci
c836096c90affd80949e51cd24517709a63eff52
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import urllib import urlparse # import xbmc import xbmcgui import xbmcplugin import aci # Get the plugin url in plugin:// notation. _url = sys.argv[0] # Get the plugin handle as an integer number. _handle = int(sys.argv[1]) # Get an instance of ACI. ATV = aci.ACI() ATV.load_aci()...
38.019011
116
0.633863
1,252
9,999
4.980032
0.241214
0.017963
0.015878
0.015718
0.449078
0.422935
0.411067
0.368565
0.345469
0.345469
0
0.013019
0.270227
9,999
262
117
38.164122
0.841442
0.523352
0
0.206897
0
0.011494
0.138362
0.013167
0
0
0
0
0
1
0.08046
false
0
0.068966
0
0.183908
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c1ab77adfecf5628021417f2b5bb34c29a975d3
17,151
py
Python
coremltools/converters/mil/frontend/tensorflow/converter.py
VadimLevin/coremltools
66c17b0fa040a0d8088d33590ab5c355478a9e5c
[ "BSD-3-Clause" ]
3
2018-10-02T17:23:01.000Z
2020-08-15T04:47:07.000Z
coremltools/converters/mil/frontend/tensorflow/converter.py
holzschu/coremltools
5ece9069a1487d5083f00f56afe07832d88e3dfa
[ "BSD-3-Clause" ]
null
null
null
coremltools/converters/mil/frontend/tensorflow/converter.py
holzschu/coremltools
5ece9069a1487d5083f00f56afe07832d88e3dfa
[ "BSD-3-Clause" ]
1
2021-05-07T15:38:20.000Z
2021-05-07T15:38:20.000Z
# Copyright (c) 2020, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause import logging from coremltools.converters.mil.input_types import ( InputType, TensorType, ...
41.527845
123
0.58329
2,214
17,151
4.368112
0.160795
0.023162
0.028436
0.028953
0.210113
0.142798
0.08479
0.063902
0.057078
0.046117
0
0.005791
0.325404
17,151
412
124
41.628641
0.830078
0.241444
0
0.133333
0
0
0.085858
0.002511
0
0
0
0
0.003922
1
0.066667
false
0.015686
0.058824
0.003922
0.168627
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
4c1d42a55dc8480f71e72b9866ed7b027a303687
34,975
py
Python
moto/dynamodb2/parsing/expressions.py
orenmazor/moto
4778377e8ecaf729d26602a2c5202b72c1438503
[ "Apache-2.0" ]
1
2021-12-12T04:23:06.000Z
2021-12-12T04:23:06.000Z
moto/dynamodb2/parsing/expressions.py
orenmazor/moto
4778377e8ecaf729d26602a2c5202b72c1438503
[ "Apache-2.0" ]
17
2020-08-28T12:53:56.000Z
2020-11-10T01:04:46.000Z
moto/dynamodb2/parsing/expressions.py
orenmazor/moto
4778377e8ecaf729d26602a2c5202b72c1438503
[ "Apache-2.0" ]
1
2021-07-06T22:44:47.000Z
2021-07-06T22:44:47.000Z
import logging from abc import abstractmethod import abc import six from collections import deque from moto.dynamodb2.parsing.ast_nodes import ( UpdateExpression, UpdateExpressionSetClause, UpdateExpressionSetActions, UpdateExpressionSetAction, UpdateExpressionRemoveActions, UpdateExpressionRem...
33.597502
120
0.651237
3,689
34,975
5.924912
0.123069
0.019399
0.026765
0.018301
0.521069
0.464657
0.386146
0.349408
0.314819
0.253237
0
0.002219
0.27857
34,975
1,040
121
33.629808
0.864022
0.264989
0
0.480836
0
0
0.01886
0.00088
0
0
0
0
0.013937
1
0.170732
false
0.001742
0.013937
0.062718
0.38676
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
4c1e3b72b32866f599c7e926ceb63efd29d9c600
5,332
py
Python
dftbplus_step/tk_optimization.py
molssi-seamm/dftbplus_step
e5b9c7462d92c25fc6f27db5e4324b05bb42e224
[ "BSD-3-Clause" ]
1
2022-01-24T05:14:03.000Z
2022-01-24T05:14:03.000Z
dftbplus_step/tk_optimization.py
molssi-seamm/dftbplus_step
e5b9c7462d92c25fc6f27db5e4324b05bb42e224
[ "BSD-3-Clause" ]
10
2020-12-16T21:36:37.000Z
2022-03-17T01:53:54.000Z
dftbplus_step/tk_optimization.py
molssi-seamm/dftbplus_step
e5b9c7462d92c25fc6f27db5e4324b05bb42e224
[ "BSD-3-Clause" ]
1
2022-01-14T15:26:49.000Z
2022-01-14T15:26:49.000Z
# -*- coding: utf-8 -*- """The graphical part of a DFTB+ Optimization node""" import logging import tkinter as tk import tkinter.ttk as ttk import dftbplus_step logger = logging.getLogger(__name__) class TkOptimization(dftbplus_step.TkEnergy): def __init__( self, tk_flowchart=None, nod...
32.120482
100
0.515941
498
5,332
5.427711
0.293173
0.020718
0.029597
0.047355
0.145764
0.145764
0.145764
0.145764
0.135775
0.135775
0
0.01346
0.386909
5,332
165
101
32.315152
0.813399
0.317329
0
0.278846
0
0
0.098837
0
0
0
0
0
0
1
0.048077
false
0
0.038462
0
0.115385
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
4c1fe311f29bf7609a66d633ca361b9c555f8538
3,512
py
Python
skywalking/client/grpc.py
cooolr/skywalking-python
42176ff4b732000f2a75eac1affee2a681379df7
[ "Apache-2.0" ]
null
null
null
skywalking/client/grpc.py
cooolr/skywalking-python
42176ff4b732000f2a75eac1affee2a681379df7
[ "Apache-2.0" ]
null
null
null
skywalking/client/grpc.py
cooolr/skywalking-python
42176ff4b732000f2a75eac1affee2a681379df7
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
39.909091
110
0.768508
379
3,512
6.955145
0.377309
0.063733
0.058422
0.027314
0.23824
0.23824
0.174507
0.149469
0.081184
0.048558
0
0.003759
0.166856
3,512
87
111
40.367816
0.897129
0.214123
0
0.296296
0
0
0.016405
0
0
0
0
0
0
1
0.166667
false
0
0.240741
0
0.481481
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
4c228e2ac32c2ad15f711401f0894056b88a3776
1,388
py
Python
ng/distributions/Distribution.py
forons/noise-generator
033906165adaf6e620c03bf0b91f19b6d9890cf0
[ "MIT" ]
null
null
null
ng/distributions/Distribution.py
forons/noise-generator
033906165adaf6e620c03bf0b91f19b6d9890cf0
[ "MIT" ]
null
null
null
ng/distributions/Distribution.py
forons/noise-generator
033906165adaf6e620c03bf0b91f19b6d9890cf0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import logging from enum import Enum from .NormalDist import NormalDist from .UniformDist import UniformDist class Distribution(Enum): UNIFORM = 0 GAUSSIAN = 1 POISSON = 2 @staticmethod def determine_distribution(distribution, distribution_params): ...
42.060606
92
0.659942
142
1,388
6.34507
0.352113
0.159822
0.160932
0.103219
0.417314
0.321865
0.321865
0.228635
0.228635
0.228635
0
0.010557
0.24928
1,388
32
93
43.375
0.854127
0.03098
0
0.222222
0
0
0.069993
0
0
0
0
0
0
1
0.037037
false
0.037037
0.148148
0
0.407407
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c22a7a412610e81fee1ef9b39c31356e4fa70c7
258
py
Python
test/rename.py
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
3
2018-08-30T09:43:20.000Z
2019-12-03T04:53:43.000Z
test/rename.py
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
null
null
null
test/rename.py
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
null
null
null
import os import sys filename = sys.argv[1] from_id = int(sys.argv[2]) to_id = int(sys.argv[2]) for i in range(from_id, to_id + 1): sys.system("mv {0}.in{1} {0}{1}.in".format(filename, i)) sys.system("mv {0}.out{1} {0}{1}.out".format(filename, i))
23.454545
62
0.624031
53
258
2.962264
0.377358
0.133758
0.101911
0.152866
0.165605
0
0
0
0
0
0
0.054545
0.147287
258
10
63
25.8
0.659091
0
0
0
0
0
0.178295
0
0
0
0
0
0
1
0
false
0
0.25
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
4c23f93517014abc612473feea3755466fd55cec
683
py
Python
dash_docs/chapters/dash_core_components/Textarea/examples/textarea_basic.py
kozo2/dash-docs
5140cfd1fda439233e8b95e2443332a32a2453f5
[ "MIT" ]
1
2021-04-11T03:08:43.000Z
2021-04-11T03:08:43.000Z
dash_docs/chapters/dash_core_components/Textarea/examples/textarea_basic.py
kozo2/dash-docs
5140cfd1fda439233e8b95e2443332a32a2453f5
[ "MIT" ]
null
null
null
dash_docs/chapters/dash_core_components/Textarea/examples/textarea_basic.py
kozo2/dash-docs
5140cfd1fda439233e8b95e2443332a32a2453f5
[ "MIT" ]
null
null
null
import dash from dash.dependencies import Input, Output import dash_html_components as html import dash_core_components as dcc app = dash.Dash(__name__) app.layout = html.Div([ dcc.Textarea( id='textarea-example', value='Textarea content initialized\nwith multiple lines of text', style={'w...
26.269231
76
0.682284
87
683
5.149425
0.574713
0.133929
0.075893
0
0
0
0
0
0
0
0
0.010526
0.165447
683
25
77
27.32
0.775439
0
0
0
0
0
0.308931
0.06735
0
0
0
0
0
1
0.047619
false
0
0.190476
0.047619
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
4c244af15987164d1a6b58af8468dc053923ce6d
470
py
Python
eth/vm/forks/petersburg/blocks.py
ggs134/py-evm
5ad87356181b03c14a2452131f50fe8762127c84
[ "MIT" ]
1,641
2017-11-24T04:24:22.000Z
2022-03-31T14:59:30.000Z
eth/vm/forks/petersburg/blocks.py
ggs134/py-evm
5ad87356181b03c14a2452131f50fe8762127c84
[ "MIT" ]
1,347
2017-11-23T10:37:36.000Z
2022-03-20T16:31:44.000Z
eth/vm/forks/petersburg/blocks.py
ggs134/py-evm
5ad87356181b03c14a2452131f50fe8762127c84
[ "MIT" ]
567
2017-11-22T18:03:27.000Z
2022-03-28T17:49:08.000Z
from rlp.sedes import ( CountableList, ) from eth.rlp.headers import ( BlockHeader, ) from eth.vm.forks.byzantium.blocks import ( ByzantiumBlock, ) from .transactions import ( PetersburgTransaction, ) class PetersburgBlock(ByzantiumBlock): transaction_builder = PetersburgTransaction fields = ...
20.434783
61
0.697872
39
470
8.358974
0.564103
0.042945
0
0
0
0
0
0
0
0
0
0
0.2
470
22
62
21.363636
0.867021
0
0
0
0
0
0.051064
0
0
0
0
0
0
1
0
false
0
0.210526
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c249535bfee369b506769f07912c622ac79fe51
5,107
py
Python
tests/runner.py
crnbaker/MONAI
a4b1144efdc27b197410033ae08bd587c8a1634a
[ "Apache-2.0" ]
1
2020-12-03T21:28:09.000Z
2020-12-03T21:28:09.000Z
tests/runner.py
crnbaker/MONAI
a4b1144efdc27b197410033ae08bd587c8a1634a
[ "Apache-2.0" ]
null
null
null
tests/runner.py
crnbaker/MONAI
a4b1144efdc27b197410033ae08bd587c8a1634a
[ "Apache-2.0" ]
1
2020-06-11T13:03:02.000Z
2020-06-11T13:03:02.000Z
# Copyright 2020 MONAI Consortium # 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, s...
35.22069
118
0.662033
650
5,107
5.118462
0.36
0.031259
0.030658
0.033664
0.116622
0.107003
0.06853
0.055906
0.027653
0
0
0.007513
0.218132
5,107
144
119
35.465278
0.825695
0.196985
0
0.088235
0
0
0.22782
0.012042
0
0
0
0
0.009804
1
0.058824
false
0
0.068627
0
0.166667
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
4c25af4aec5e8d2b72efcbe5e7b1a661e7cc9946
963
py
Python
venv/Lib/site-packages/pandas/core/array_algos/transforms.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/core/array_algos/transforms.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/core/array_algos/transforms.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
""" transforms.py is for shape-preserving functions. """ import numpy as np def shift(values: np.ndarray, periods: int, axis: int, fill_value) -> np.ndarray: new_values = values if periods == 0 or values.size == 0: return new_values.copy() # make sure array sent to np.roll is c_con...
24.692308
82
0.599169
126
963
4.396825
0.396825
0.194946
0.036101
0.046931
0.104693
0.104693
0.104693
0.104693
0
0
0
0.006015
0.30945
963
38
83
25.342105
0.827068
0.124611
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.041667
false
0
0.041667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c26b67f1983ed6d013acb44413f671a2be21260
7,534
py
Python
splunk_sdk/action/v1beta2/gen_action_service_api.py
ianlee4/splunk-cloud-sdk-python
d2870cd1e506d3844869d17becdcdf9d8d60a9a1
[ "ECL-2.0", "Apache-2.0" ]
12
2019-08-01T06:16:17.000Z
2021-04-16T20:00:02.000Z
splunk_sdk/action/v1beta2/gen_action_service_api.py
ianlee4/splunk-cloud-sdk-python
d2870cd1e506d3844869d17becdcdf9d8d60a9a1
[ "ECL-2.0", "Apache-2.0" ]
5
2020-09-27T12:03:24.000Z
2021-08-06T18:01:32.000Z
splunk_sdk/action/v1beta2/gen_action_service_api.py
ianlee4/splunk-cloud-sdk-python
d2870cd1e506d3844869d17becdcdf9d8d60a9a1
[ "ECL-2.0", "Apache-2.0" ]
4
2019-08-20T17:49:27.000Z
2022-03-27T16:39:10.000Z
# coding: utf-8 # Copyright © 2021 Splunk, 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 agre...
37.1133
177
0.668835
930
7,534
5.233333
0.195699
0.081364
0.054654
0.033285
0.671872
0.66242
0.656667
0.629957
0.5451
0.544483
0
0.00885
0.235068
7,534
202
178
37.29703
0.835502
0.218211
0
0.583333
0
0
0.078834
0.063818
0
0
0
0
0
1
0.092593
false
0
0.12037
0
0.305556
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
4c2a0b02facefb7ade979ad8ea41989718dd6e87
13,974
py
Python
frog/views/gallery.py
dreamhaven/Frog
66e50610d5059aa371e0a50b65ceddd4813b2bc1
[ "MIT" ]
3
2021-10-03T23:11:24.000Z
2021-10-04T12:14:56.000Z
frog/views/gallery.py
dreamhaven/Frog
66e50610d5059aa371e0a50b65ceddd4813b2bc1
[ "MIT" ]
7
2019-10-15T20:51:36.000Z
2020-02-27T18:25:26.000Z
frog/views/gallery.py
dreamhaven/Frog
66e50610d5059aa371e0a50b65ceddd4813b2bc1
[ "MIT" ]
1
2020-09-30T11:23:55.000Z
2020-09-30T11:23:55.000Z
################################################################################################## # Copyright (c) 2012 Brett Dixon # # 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 r...
30.312364
98
0.592672
1,640
13,974
4.990244
0.22622
0.02346
0.029326
0.01393
0.21652
0.192326
0.134164
0.084189
0.075391
0.075391
0
0.002138
0.297123
13,974
460
99
30.378261
0.831093
0.203163
0
0.245902
0
0
0.033586
0
0
0
0
0
0
1
0.039344
false
0.003279
0.068852
0
0.170492
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
4c2be9c37717776782c0be6604333fcf9bf8eb67
2,232
py
Python
pirates/speedchat/PSpeedChatQuestMenu.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
3
2021-02-25T06:38:13.000Z
2022-03-22T07:00:15.000Z
pirates/speedchat/PSpeedChatQuestMenu.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
null
null
null
pirates/speedchat/PSpeedChatQuestMenu.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
1
2021-02-25T06:38:17.000Z
2021-02-25T06:38:17.000Z
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.speedchat.PSpeedChatQuestMenu from otp.speedchat.SCMenu import SCMenu from otp.speedchat.SCTerminal import * from otp.speedchat....
39.857143
106
0.670699
242
2,232
6.053719
0.380165
0.037543
0.065529
0.081911
0.081911
0.081911
0
0
0
0
0
0.032806
0.235215
2,232
56
107
39.857143
0.825425
0.09543
0
0.065217
0
0
0.057568
0.057568
0
0
0
0
0
1
0.086957
false
0
0.173913
0
0.369565
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
4c2cd54fa6ab0d6c947d651db03fbbb610a1bf1d
5,309
py
Python
spotifyembed/spotifyembed.py
R3XET/coffee-cogs
e7658213449ec140edaaf322514eaafb575f99bd
[ "MIT" ]
null
null
null
spotifyembed/spotifyembed.py
R3XET/coffee-cogs
e7658213449ec140edaaf322514eaafb575f99bd
[ "MIT" ]
null
null
null
spotifyembed/spotifyembed.py
R3XET/coffee-cogs
e7658213449ec140edaaf322514eaafb575f99bd
[ "MIT" ]
null
null
null
# from redbot.core import Config from redbot.core import Config, commands, checks import asyncio import aiohttp import discord from discord import Webhook, AsyncWebhookAdapter import re class Spotifyembed(commands.Cog): """Automatically send a reply to Spotify links with a link to the embed preview. Convenient for...
41.155039
197
0.595592
567
5,309
5.529101
0.303351
0.022967
0.019139
0.025518
0.440191
0.366507
0.349282
0.33429
0.33429
0.268581
0
0.00896
0.306272
5,309
128
198
41.476563
0.841705
0.098135
0
0.350515
0
0.010309
0.057646
0.022662
0
0
0
0
0
1
0.010309
false
0
0.061856
0
0.185567
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
4c2d9f91e47f374b558a37fc891829c105809bba
4,714
py
Python
rlcard/utils/seeding.py
AdrianP-/rlcard
5b99dc8faa4c97ecac2d1189967b90c45d79624b
[ "MIT" ]
null
null
null
rlcard/utils/seeding.py
AdrianP-/rlcard
5b99dc8faa4c97ecac2d1189967b90c45d79624b
[ "MIT" ]
null
null
null
rlcard/utils/seeding.py
AdrianP-/rlcard
5b99dc8faa4c97ecac2d1189967b90c45d79624b
[ "MIT" ]
null
null
null
#The MIT License # #Copyright (c) 2020 DATA Lab at Texas A&M University #Copyright (c) 2016 OpenAI (https://openai.com) # #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, inclu...
41.350877
461
0.694103
708
4,714
4.559322
0.427966
0.024783
0.018587
0.011772
0.099133
0.072491
0.057001
0.057001
0.057001
0.057001
0
0.01791
0.206406
4,714
113
462
41.716814
0.844961
0.535214
0
0
0
0
0.07882
0
0
0
0
0.00885
0
1
0.12069
false
0
0.068966
0
0.310345
0.017241
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c2f421ab198ddb3faa7c72a6c2f2f1822a0634f
8,573
py
Python
ops/transforms.py
ex4sperans/freesound-classification
71b9920ce0ae376aa7f1a3a2943f0f92f4820813
[ "Apache-2.0" ]
55
2019-06-30T02:36:10.000Z
2021-12-07T07:24:42.000Z
ops/transforms.py
ex4sperans/freesound-classification
71b9920ce0ae376aa7f1a3a2943f0f92f4820813
[ "Apache-2.0" ]
13
2020-01-28T22:48:34.000Z
2022-03-11T23:50:36.000Z
ops/transforms.py
ex4sperans/freesound-classification
71b9920ce0ae376aa7f1a3a2943f0f92f4820813
[ "Apache-2.0" ]
7
2019-07-21T15:54:16.000Z
2020-07-22T13:02:37.000Z
import random import math from functools import partial import json import pysndfx import librosa import numpy as np import torch from ops.audio import ( read_audio, compute_stft, trim_audio, mix_audio_and_labels, shuffle_audio, cutout ) SAMPLE_RATE = 44100 class Augmentation: """A base class for data...
22.679894
84
0.561647
956
8,573
4.779289
0.16841
0.029109
0.03852
0.063033
0.443861
0.370759
0.324141
0.315605
0.26264
0.233749
0
0.010941
0.328356
8,573
378
85
22.679894
0.782563
0.019713
0
0.405405
0
0
0.045384
0
0
0
0
0
0
1
0.144144
false
0.009009
0.040541
0.004505
0.342342
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
4c30506aa8598c0388ff7d67c1b22762e60080e5
2,011
py
Python
figures/pp.py
mathematicalmichael/thesis
2906b10f94960c3e75bdb48e5b8b583f59b9441e
[ "MIT" ]
6
2019-04-24T08:05:49.000Z
2020-12-28T20:34:29.000Z
figures/pp.py
mathematicalmichael/thesis
2906b10f94960c3e75bdb48e5b8b583f59b9441e
[ "MIT" ]
59
2019-12-27T23:15:05.000Z
2021-11-24T17:52:57.000Z
figures/pp.py
mathematicalmichael/thesis
2906b10f94960c3e75bdb48e5b8b583f59b9441e
[ "MIT" ]
null
null
null
#!/usr/env/bin python import os # os.environ['OMP_NUM_THREADS'] = '1' from newpoisson import poisson import numpy as np from fenics import set_log_level, File, RectangleMesh, Point mesh = RectangleMesh(Point(0,0), Point(1,1), 36, 36) # comm = mesh.mpi_comm() set_log_level(40) # ERROR=40 # from mpi4py import MPI # com...
32.967213
111
0.61462
264
2,011
4.560606
0.435606
0.041528
0.056478
0.024917
0.038206
0.038206
0
0
0
0
0
0.019987
0.228742
2,011
60
112
33.516667
0.756286
0.103431
0
0.047619
0
0
0.169085
0.026228
0
0
0
0
0
1
0.02381
false
0
0.142857
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c308137f6fcaffcc096aaa674f08780ed2a8ef7
3,606
py
Python
additions/irreducible_check.py
kluhan/seraphim
412b693effb15f80d348d6d885d7c781774bb8aa
[ "MIT" ]
null
null
null
additions/irreducible_check.py
kluhan/seraphim
412b693effb15f80d348d6d885d7c781774bb8aa
[ "MIT" ]
null
null
null
additions/irreducible_check.py
kluhan/seraphim
412b693effb15f80d348d6d885d7c781774bb8aa
[ "MIT" ]
null
null
null
""" Irreduzibilitätskriterien Implementiert wurden das Eisenstein- und das Perronkriterium Quellen: https://rms.unibuc.ro/bulletin/pdf/53-3/perron.pdf http://math-www.uni-paderborn.de/~chris/Index33/V/par5.pdf Übergeben werden Polynome vom Typ Polynomial, keine direkten Listen von Koeff...
27.112782
121
0.646977
457
3,606
5.041575
0.354486
0.06684
0.029514
0.013889
0.194878
0.106337
0.074219
0.074219
0.074219
0.074219
0
0.02719
0.265668
3,606
132
122
27.318182
0.8429
0.395729
0
0.287671
0
0
0.007667
0
0
0
0
0
0.013699
1
0.082192
false
0
0.041096
0
0.356164
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
4c30bd2dd03a5aeb1d8422cd8b6cb2d539652200
39,763
py
Python
numba/stencils/stencil.py
auderson/numba
3d67c9850ab56457f418cf40af6245fd9c337705
[ "BSD-2-Clause" ]
6,620
2015-01-04T08:51:04.000Z
2022-03-31T12:52:18.000Z
numba/stencils/stencil.py
auderson/numba
3d67c9850ab56457f418cf40af6245fd9c337705
[ "BSD-2-Clause" ]
6,457
2015-01-04T03:18:41.000Z
2022-03-31T17:38:42.000Z
numba/stencils/stencil.py
auderson/numba
3d67c9850ab56457f418cf40af6245fd9c337705
[ "BSD-2-Clause" ]
930
2015-01-25T02:33:03.000Z
2022-03-30T14:10:32.000Z
# # Copyright (c) 2017 Intel Corporation # SPDX-License-Identifier: BSD-2-Clause # import copy import numpy as np from llvmlite import ir as lir from numba.core import types, typing, utils, ir, config, ir_utils, registry from numba.core.typing.templates import (CallableTemplate, signature, ...
47.849579
141
0.554133
4,589
39,763
4.605143
0.128786
0.011593
0.010789
0.009937
0.301472
0.238253
0.210997
0.166138
0.147447
0.118772
0
0.00355
0.369489
39,763
830
142
47.907229
0.839376
0.192968
0
0.254386
0
0
0.075153
0.006234
0
0
0
0
0.003509
1
0.033333
false
0.007018
0.026316
0
0.101754
0.024561
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
4c30fc13cf631ce207921b9c3acc713c3fb36b5f
3,754
py
Python
examples/bicycle/bicycle_dynamics.py
lujieyang/irs_lqr
bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f
[ "MIT" ]
6
2021-11-20T19:05:06.000Z
2022-01-31T00:10:41.000Z
examples/bicycle/bicycle_dynamics.py
lujieyang/irs_lqr
bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f
[ "MIT" ]
10
2021-07-24T19:50:36.000Z
2021-11-20T19:06:40.000Z
examples/bicycle/bicycle_dynamics.py
lujieyang/irs_lqr
bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f
[ "MIT" ]
1
2021-12-15T22:09:31.000Z
2021-12-15T22:09:31.000Z
import numpy as np import pydrake.symbolic as ps import torch import time from irs_lqr.dynamical_system import DynamicalSystem class BicycleDynamics(DynamicalSystem): def __init__(self, h): super().__init__() """ x = [x pos, y pos, heading, speed, steering_angle] u = [acceleration,...
28.225564
91
0.483751
522
3,754
3.371648
0.191571
0.055682
0.056818
0.0375
0.536932
0.514205
0.435795
0.435795
0.383523
0.383523
0
0.011593
0.379595
3,754
132
92
28.439394
0.744096
0.195258
0
0.475
0
0
0.003059
0
0
0
0
0
0
1
0.0875
false
0
0.0625
0
0.2375
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
4c32dcda5e8a9e2b82a81dd52550421a3c5cdcea
13,265
py
Python
samples/COVServer.py
noelli/bacpypes
c2f4d753ed86bc0357823e718e7ff16c05f06850
[ "MIT" ]
null
null
null
samples/COVServer.py
noelli/bacpypes
c2f4d753ed86bc0357823e718e7ff16c05f06850
[ "MIT" ]
null
null
null
samples/COVServer.py
noelli/bacpypes
c2f4d753ed86bc0357823e718e7ff16c05f06850
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ This sample application is a server that supports COV notification services. The console accepts commands that change the properties of an object that triggers the notifications. """ import time from threading import Thread from bacpypes.debugging import bacpypes_debugging, ModuleLogger fro...
30.354691
87
0.618168
1,507
13,265
5.213006
0.147313
0.029404
0.045825
0.057281
0.556263
0.514511
0.490453
0.490453
0.44972
0.39804
0
0.00562
0.289031
13,265
436
88
30.424312
0.827378
0.162307
0
0.46748
0
0
0.096296
0
0
0
0
0
0
1
0.052846
false
0.004065
0.044715
0
0.134146
0.036585
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
4c330026016ced54e01a326234695f3fe1fb584f
5,187
py
Python
fancylit/modeling/yellowbrick_funcs.py
rubyruins/fancylit
56a7cdfe78edd687a3b318bbbfa534203de1ace8
[ "Apache-2.0" ]
null
null
null
fancylit/modeling/yellowbrick_funcs.py
rubyruins/fancylit
56a7cdfe78edd687a3b318bbbfa534203de1ace8
[ "Apache-2.0" ]
null
null
null
fancylit/modeling/yellowbrick_funcs.py
rubyruins/fancylit
56a7cdfe78edd687a3b318bbbfa534203de1ace8
[ "Apache-2.0" ]
null
null
null
import random import numpy as np import pandas as pd import streamlit as st from sklearn.naive_bayes import GaussianNB from sklearn.model_selection import train_test_split from yellowbrick.classifier import classification_report from yellowbrick.target import FeatureCorrelation from yellowbrick.target import ClassBalan...
30.511765
389
0.614035
571
5,187
5.467601
0.302977
0.038437
0.032671
0.026906
0.211403
0.202434
0.202434
0.132607
0.065983
0
0
0.003876
0.303644
5,187
170
390
30.511765
0.860465
0.144207
0
0.222222
0
0.010101
0.200374
0.03133
0
0
0
0.005882
0
1
0.040404
false
0
0.121212
0
0.171717
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
4c33dde47e4450a45e6aa5280d3a4d98189d8d33
14,566
py
Python
info/modules/admin/views.py
moonbria/test1
05893bd91d416ca4093e4619ede427434fa665cc
[ "MIT" ]
null
null
null
info/modules/admin/views.py
moonbria/test1
05893bd91d416ca4093e4619ede427434fa665cc
[ "MIT" ]
null
null
null
info/modules/admin/views.py
moonbria/test1
05893bd91d416ca4093e4619ede427434fa665cc
[ "MIT" ]
null
null
null
from flask import request import random import re from flask import current_app, jsonify from flask import g from flask import make_response from flask import redirect from flask import render_template from flask import request from flask import session from flask import url_for import time from info import constants, ...
28.729783
87
0.604696
1,823
14,566
4.653319
0.143719
0.024755
0.042084
0.04456
0.532712
0.492514
0.420134
0.374396
0.336673
0.321349
0
0.004849
0.277976
14,566
506
88
28.786561
0.80175
0.035631
0
0.463351
0
0
0.089477
0.015104
0
0
0
0
0
1
0.028796
false
0.010471
0.062827
0
0.196335
0.018325
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
4c3438c0b1046ec22f1ab42437a0d08677dfe6f2
2,839
py
Python
src/predict_model.py
Swati17293/outlet-prediction
3c1f41b88d71b5247763bacc9dbc1abf5d0619a2
[ "MIT" ]
1
2020-10-28T00:05:31.000Z
2020-10-28T00:05:31.000Z
src/predict_model.py
Swati17293/outlet-prediction
3c1f41b88d71b5247763bacc9dbc1abf5d0619a2
[ "MIT" ]
null
null
null
src/predict_model.py
Swati17293/outlet-prediction
3c1f41b88d71b5247763bacc9dbc1abf5d0619a2
[ "MIT" ]
1
2021-12-09T14:36:54.000Z
2021-12-09T14:36:54.000Z
#Answer Generation import csv import os import numpy as np from keras.models import * from keras.models import Model from keras.preprocessing import text def load_model(): print('\nLoading model...') # load json and create model json_file = open('models/MODEL.json', 'r') loaded_model_json = json_file...
27.038095
89
0.534343
364
2,839
3.997253
0.321429
0.038488
0.021993
0.030241
0.125773
0.099656
0.047423
0.047423
0.047423
0.047423
0
0.009605
0.339908
2,839
105
90
27.038095
0.766809
0.058471
0
0.093333
0
0
0.105322
0.023238
0
0
0
0
0
1
0.053333
false
0
0.08
0
0.16
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c353955c991e91d2a8ac820fc6be7fa23bb7348
716
py
Python
tools/client.py
Alisa1114/yolov4-pytorch-1
5dd8768f2eef868c9ee4588818350d4e1b50b98f
[ "MIT" ]
null
null
null
tools/client.py
Alisa1114/yolov4-pytorch-1
5dd8768f2eef868c9ee4588818350d4e1b50b98f
[ "MIT" ]
null
null
null
tools/client.py
Alisa1114/yolov4-pytorch-1
5dd8768f2eef868c9ee4588818350d4e1b50b98f
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from socket import * def client(): #實驗室電腦 # serverip='120.126.151.182' # serverport=8887 #在自己電腦測試 serverip='127.0.0.1' serverport=8888 client=socket(AF_INET,SOCK_STREAM) client.connect((serverip,serverport)) address_file = open('tools/address.txt', 'r')...
25.571429
64
0.624302
94
716
4.62766
0.617021
0.022989
0.073563
0
0
0
0
0
0
0
0
0.070588
0.168994
716
28
65
25.571429
0.660504
0.432961
0
0
0
0
0.088832
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.166667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4c35e02888592e1186585689132cd3d10b0f4a6d
13,039
py
Python
dapy/models/kuramoto_sivashinsky.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
11
2020-07-29T07:46:39.000Z
2022-03-17T01:28:07.000Z
dapy/models/kuramoto_sivashinsky.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
1
2020-07-14T11:49:17.000Z
2020-07-29T07:43:22.000Z
dapy/models/kuramoto_sivashinsky.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
10
2020-07-14T11:34:24.000Z
2022-03-07T09:08:12.000Z
"""Non-linear SPDE model on a periodic 1D spatial domain for laminar wave fronts. Based on the Kuramato--Sivashinsky PDE model [1, 2] which exhibits spatio-temporally chaotic dynamics. References: 1. Kuramoto and Tsuzuki. Persistent propagation of concentration waves in dissipative media far from thermal ...
47.072202
88
0.666692
1,616
13,039
5.206064
0.209158
0.029716
0.032806
0.019969
0.616427
0.594556
0.539166
0.530132
0.530132
0.521574
0
0.02024
0.27249
13,039
276
89
47.242754
0.864326
0.515914
0
0.367188
0
0
0.009774
0
0
0
0
0
0.007813
1
0.046875
false
0
0.046875
0.023438
0.148438
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
4c3bcf54b28a72322eb20b3cefe8c6d28943d5e4
1,030
py
Python
demos/restful-users/index.py
karldoenitz/karlooper
2e1df83ed1ec9b343cdd930162a4de7ecd149c04
[ "MIT" ]
161
2016-05-17T12:44:07.000Z
2020-07-30T02:18:34.000Z
demos/restful-users/index.py
karldoenitz/karlooper
2e1df83ed1ec9b343cdd930162a4de7ecd149c04
[ "MIT" ]
6
2016-08-29T01:40:26.000Z
2017-12-29T09:20:41.000Z
demos/restful-users/index.py
karldoenitz/karlooper
2e1df83ed1ec9b343cdd930162a4de7ecd149c04
[ "MIT" ]
16
2016-06-27T02:56:54.000Z
2019-08-08T08:18:48.000Z
# -*-encoding:utf-8-*- import os from karlooper.web.application import Application from karlooper.web.request import Request class UsersHandler(Request): def get(self): return self.render("/user-page.html") class UserInfoHandler(Request): def post(self): print(self.get_http_request_message(...
23.409091
99
0.61165
117
1,030
5.205128
0.57265
0.042693
0.052545
0
0
0
0
0
0
0
0
0.01148
0.238835
1,030
43
100
23.953488
0.765306
0.019417
0
0
0
0
0.138889
0
0
0
0
0
0
1
0.0625
false
0
0.09375
0.03125
0.28125
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
4c3c84ef8550fb8c1fe9332f31bf0fbd72087616
1,206
py
Python
cli/waiter/subcommands/kill.py
geofft/waiter
0e10cd497c2c679ea43231866d9f803c3fed5d77
[ "Apache-2.0" ]
null
null
null
cli/waiter/subcommands/kill.py
geofft/waiter
0e10cd497c2c679ea43231866d9f803c3fed5d77
[ "Apache-2.0" ]
null
null
null
cli/waiter/subcommands/kill.py
geofft/waiter
0e10cd497c2c679ea43231866d9f803c3fed5d77
[ "Apache-2.0" ]
null
null
null
from waiter.action import process_kill_request from waiter.util import guard_no_cluster, check_positive def kill(clusters, args, _, __): """Kills the service(s) using the given token name.""" guard_no_cluster(clusters) token_name_or_service_id = args.get('token-or-service-id') is_service_id = args.get...
46.384615
115
0.694859
172
1,206
4.656977
0.412791
0.11236
0.054931
0.047441
0.191011
0.191011
0
0
0
0
0
0.004024
0.175788
1,206
25
116
48.24
0.801811
0.09204
0
0
0
0
0.23893
0
0
0
0
0
0
1
0.105263
false
0
0.105263
0
0.315789
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
4c3ccdaafeb79fdce0197fde1a5c4f83054573ab
3,338
py
Python
a2t/src/a2t.py
syeda-khurrath/fabric8-analytics-common
421f7e27869c5695ed73b51e6422e097aba00108
[ "Apache-2.0" ]
null
null
null
a2t/src/a2t.py
syeda-khurrath/fabric8-analytics-common
421f7e27869c5695ed73b51e6422e097aba00108
[ "Apache-2.0" ]
4
2019-05-20T08:27:47.000Z
2019-05-20T08:29:57.000Z
a2t/src/a2t.py
codeready-analytics/fabric8-analytics-common
a763c5534d601f2f40a0f02c02914c49ea23669d
[ "Apache-2.0" ]
1
2020-10-05T21:12:44.000Z
2020-10-05T21:12:44.000Z
"""The main module of the Analytics API Load Tests tool. Copyright (c) 2019 Red Hat Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
30.345455
90
0.65698
459
3,338
4.640523
0.381264
0.023005
0.01831
0.026761
0.148357
0.09108
0.035681
0.035681
0.035681
0
0
0.007984
0.249551
3,338
109
91
30.623853
0.842315
0.304374
0
0.21875
0
0
0.143357
0
0
0
0
0
0
1
0.078125
false
0
0.15625
0
0.234375
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
4c3d2c0aac2c057e54b3e25d8827904204518172
3,568
py
Python
riscv_ctg/ctg.py
Giri2801/riscv-ctg
a90e03f0856bbdd106c3f6d51815af94707e711e
[ "BSD-3-Clause" ]
null
null
null
riscv_ctg/ctg.py
Giri2801/riscv-ctg
a90e03f0856bbdd106c3f6d51815af94707e711e
[ "BSD-3-Clause" ]
null
null
null
riscv_ctg/ctg.py
Giri2801/riscv-ctg
a90e03f0856bbdd106c3f6d51815af94707e711e
[ "BSD-3-Clause" ]
null
null
null
# See LICENSE.incore file for details import os,re import multiprocessing as mp import time import shutil from riscv_ctg.log import logger import riscv_ctg.utils as utils import riscv_ctg.constants as const from riscv_isac.cgf_normalize import expand_cgf from riscv_ctg.generator import Generator from math import * fr...
37.166667
114
0.626962
483
3,568
4.428571
0.300207
0.030856
0.01683
0.019635
0.058906
0.038336
0.038336
0.038336
0.038336
0.038336
0
0.00457
0.264013
3,568
95
115
37.557895
0.809977
0.0213
0
0.139535
0
0
0.120734
0
0
0
0
0
0
1
0.023256
false
0
0.127907
0
0.197674
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