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
83f68d37160408c53d642878608195421084467e
9,670
py
Python
frappe/website/page_renderers/template_page.py
sersaber/frappe
e0c25d2b2c19fe79f7c7848e7307d90a5f27c68a
[ "MIT" ]
null
null
null
frappe/website/page_renderers/template_page.py
sersaber/frappe
e0c25d2b2c19fe79f7c7848e7307d90a5f27c68a
[ "MIT" ]
null
null
null
frappe/website/page_renderers/template_page.py
sersaber/frappe
e0c25d2b2c19fe79f7c7848e7307d90a5f27c68a
[ "MIT" ]
null
null
null
import io import os import click import frappe from frappe.website.page_renderers.base_template_page import BaseTemplatePage from frappe.website.router import get_base_template, get_page_info from frappe.website.utils import ( cache_html, extract_comment_tag, extract_title, get_frontmatter, get_next_link, get_s...
31.193548
99
0.729369
1,413
9,670
4.762916
0.174805
0.060475
0.026152
0.011144
0.123626
0.057058
0.035513
0.009807
0
0
0
0.002916
0.148811
9,670
309
100
31.294498
0.814482
0.08697
0
0.038627
0
0
0.094512
0.002505
0
0
0
0.003236
0
1
0.120172
false
0.004292
0.038627
0.021459
0.227468
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83f948132b34592da621aabbd2b53119e725f6d1
17,013
py
Python
mistral/db/v2/sqlalchemy/models.py
mail2nsrajesh/mistral
b19d87141563e00f18cd74c685392d0b9b70e351
[ "Apache-2.0" ]
null
null
null
mistral/db/v2/sqlalchemy/models.py
mail2nsrajesh/mistral
b19d87141563e00f18cd74c685392d0b9b70e351
[ "Apache-2.0" ]
null
null
null
mistral/db/v2/sqlalchemy/models.py
mail2nsrajesh/mistral
b19d87141563e00f18cd74c685392d0b9b70e351
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 - Mirantis, Inc. # Copyright 2015 - StackStorm, 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 # # Unl...
31.622677
79
0.673779
2,096
17,013
5.217557
0.218511
0.05267
0.043892
0.048281
0.418892
0.337235
0.296452
0.244605
0.217721
0.209949
0
0.01133
0.216658
17,013
537
80
31.681564
0.809259
0.243755
0
0.35514
0
0
0.122026
0.010827
0
0
0
0.001862
0
1
0.018692
false
0
0.043614
0.003115
0.439252
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83fa3e28d2e07cc9a136e3744d2ab599a591cc63
2,220
py
Python
tests/test_models/test_state.py
adrian-blip/AirBnB_clone_v2
c27a9d923631c78ec437e4608b5c98f3f9fd1cad
[ "MIT" ]
null
null
null
tests/test_models/test_state.py
adrian-blip/AirBnB_clone_v2
c27a9d923631c78ec437e4608b5c98f3f9fd1cad
[ "MIT" ]
null
null
null
tests/test_models/test_state.py
adrian-blip/AirBnB_clone_v2
c27a9d923631c78ec437e4608b5c98f3f9fd1cad
[ "MIT" ]
1
2021-07-07T21:37:54.000Z
2021-07-07T21:37:54.000Z
#!/usr/bin/python3 """ =============================================================================== ████████╗███████╗███████╗████████╗ ██████╗ █████╗ ███████╗███████╗███████╗ ╚══██╔══╝██╔════╝██╔════╝╚══██╔══╝ ██╔════╝██╔══██╗██╔════╝██╔════╝██╔════╝ ██║ █████╗ ███████╗ ██║ ██║ ██████...
38.275862
80
0.440991
206
2,220
6.38835
0.417476
0.026596
0.015198
0.034954
0.242401
0.242401
0.208207
0.208207
0.156535
0.156535
0
0.009518
0.242793
2,220
57
81
38.947368
0.553242
0.401351
0
0.214286
0
0
0.119637
0.025578
0
0
0
0
0.214286
1
0.178571
false
0
0.214286
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
83fa4a8d78bac76a3513caf7e33e512c2461662e
39,191
py
Python
src/generatorse/EESG_1.7.x.py
WISDEM/GeneratorSE
ee85646bb82f9d120a3efd39a5530e674062da08
[ "Apache-2.0" ]
null
null
null
src/generatorse/EESG_1.7.x.py
WISDEM/GeneratorSE
ee85646bb82f9d120a3efd39a5530e674062da08
[ "Apache-2.0" ]
2
2017-04-19T20:55:22.000Z
2019-05-06T10:48:39.000Z
src/generatorse/EESG_1.7.x.py
WISDEM/GeneratorSE
ee85646bb82f9d120a3efd39a5530e674062da08
[ "Apache-2.0" ]
3
2018-10-10T00:07:35.000Z
2021-04-19T18:41:05.000Z
"""EESG.py Created by Latha Sethuraman, Katherine Dykes. Copyright (c) NREL. All rights reserved. Electromagnetic design based on conventional magnetic circuit laws Structural design based on McDonald's thesis """ from openmdao.api import Group, Problem, Component,ExecComp,IndepVarComp,ScipyOptimizer,pyOptSparse...
48.264778
282
0.660177
7,285
39,191
3.312423
0.084969
0.012847
0.018234
0.023124
0.349592
0.249969
0.146989
0.110563
0.086776
0.066968
0
0.045784
0.152331
39,191
811
283
48.324291
0.680594
0.158991
0
0.028463
0
0
0.136416
0
0
0
0
0
0
1
0.018975
false
0.003795
0.013283
0
0.045541
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83fc1d70cbfd496107dfaac0a519dc08e54e550f
2,879
py
Python
haiku/_src/integration/numpy_inputs_test.py
timwillhack/dm-haikuBah2
b76a3db3a39b82c8a1ae5a81a8a0173c23c252e5
[ "Apache-2.0" ]
1,647
2020-02-21T14:24:31.000Z
2022-03-31T04:31:34.000Z
haiku/_src/integration/numpy_inputs_test.py
timwillhack/dm-haikuBah2
b76a3db3a39b82c8a1ae5a81a8a0173c23c252e5
[ "Apache-2.0" ]
169
2020-02-21T14:07:25.000Z
2022-03-31T13:08:28.000Z
haiku/_src/integration/numpy_inputs_test.py
timwillhack/dm-haikuBah2
b76a3db3a39b82c8a1ae5a81a8a0173c23c252e5
[ "Apache-2.0" ]
159
2020-02-21T19:31:02.000Z
2022-03-29T12:41:35.000Z
# Copyright 2020 DeepMind Technologies Limited. 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 ...
31.637363
95
0.685655
401
2,879
4.74813
0.394015
0.016807
0.047269
0.035714
0.178571
0.110294
0.110294
0.088235
0.059874
0.059874
0
0.00945
0.191386
2,879
90
96
31.988889
0.808419
0.268496
0
0.103448
0
0
0.041227
0
0
0
0
0
0.103448
1
0.034483
false
0
0.172414
0
0.224138
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83fc4f9ad87af1b6d3bc93e82f86f3dfb8315e07
519
py
Python
OldStreamingExperiments/NeighbourReducerCounter.py
AldurD392/SubgraphExplorer
d7c5de234a9ae1a83a017e77074fde5fd1d430b9
[ "MIT" ]
null
null
null
OldStreamingExperiments/NeighbourReducerCounter.py
AldurD392/SubgraphExplorer
d7c5de234a9ae1a83a017e77074fde5fd1d430b9
[ "MIT" ]
null
null
null
OldStreamingExperiments/NeighbourReducerCounter.py
AldurD392/SubgraphExplorer
d7c5de234a9ae1a83a017e77074fde5fd1d430b9
[ "MIT" ]
null
null
null
#!/usr/bin/env python """A more advanced Reducer, using Python iterators and generators.""" from itertools import groupby from operator import itemgetter import sys def read_mapper_output(file, separator='\t'): for line in file: yield line.rstrip().split(separator, 1) def main(separator='\t'): data...
24.714286
69
0.689788
71
519
4.873239
0.633803
0.057803
0.092486
0
0
0
0
0
0
0
0
0.00464
0.169557
519
20
70
25.95
0.798144
0.16185
0
0
0
0
0.041958
0
0
0
0
0
0
1
0.166667
false
0
0.25
0
0.416667
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
83ff49e0443c8a936583d9a35d43b023aa52642a
6,663
py
Python
fastface/dataset/base.py
mdornseif/fastface
72772db1fae4af17e829cd5479c4848fe5eb8948
[ "MIT" ]
72
2021-01-03T05:43:56.000Z
2021-09-17T06:09:35.000Z
fastface/dataset/base.py
mdornseif/fastface
72772db1fae4af17e829cd5479c4848fe5eb8948
[ "MIT" ]
3
2021-09-23T22:26:57.000Z
2021-10-31T10:11:48.000Z
fastface/dataset/base.py
mdornseif/fastface
72772db1fae4af17e829cd5479c4848fe5eb8948
[ "MIT" ]
6
2021-02-15T19:58:57.000Z
2021-08-19T12:46:41.000Z
import copy import logging import os from typing import Dict, List, Tuple import checksumdir import imageio import numpy as np import torch from torch.utils.data import DataLoader, Dataset from tqdm import tqdm from ..adapter import download_object logger = logging.getLogger("fastface.dataset") class _IdentitiyTra...
31.880383
88
0.559508
825
6,663
4.366061
0.232727
0.027485
0.039978
0.025541
0.104664
0.064964
0.044975
0.037757
0
0
0
0.016193
0.314123
6,663
208
89
32.033654
0.771991
0.061984
0
0.111111
0
0
0.061267
0
0
0
0
0.009615
0.020833
1
0.090278
false
0
0.076389
0.020833
0.256944
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83fff1491dc4525ae4d3d5754c54e0efcce41659
989
py
Python
sources/car.py
amaurylrd/banlieu_drift
bd9e435bf5ce25e782a59de33472beb932cac9ad
[ "Apache-2.0" ]
1
2021-11-26T16:57:54.000Z
2021-11-26T16:57:54.000Z
sources/car.py
amaurylrd/banlieu_drift
bd9e435bf5ce25e782a59de33472beb932cac9ad
[ "Apache-2.0" ]
null
null
null
sources/car.py
amaurylrd/banlieu_drift
bd9e435bf5ce25e782a59de33472beb932cac9ad
[ "Apache-2.0" ]
null
null
null
import pygame import math coef_turn = 0.3 coef_drift = 0.07 # adhérence au sol coef_vel = 10 class Car: def __init__(self): self.dir_target = -1 self.dir = -1 self.posx = 0 self.velx = -1 self.w = 50 self.h = 100 def update(self, dt): self.dir += dt * ...
29.088235
96
0.50455
150
989
3.246667
0.346667
0.129363
0.067762
0.092402
0.110883
0.065708
0
0
0
0
0
0.061033
0.353893
989
34
97
29.088235
0.701095
0.016178
0
0
0
0
0
0
0
0
0
0
0
1
0.107143
false
0
0.071429
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8601805a4413deebe6198ae3e881b519806f6bcf
6,014
py
Python
test/test_static.py
fjarri/grunnur
5eea8ec408e431f43a59780cdf8be2f441a9ebb5
[ "MIT" ]
1
2020-12-04T12:19:18.000Z
2020-12-04T12:19:18.000Z
test/test_static.py
fjarri/grunnur
5eea8ec408e431f43a59780cdf8be2f441a9ebb5
[ "MIT" ]
11
2021-03-11T00:20:23.000Z
2021-03-11T01:05:54.000Z
test/test_static.py
fjarri/grunnur
5eea8ec408e431f43a59780cdf8be2f441a9ebb5
[ "MIT" ]
null
null
null
import pytest import numpy from grunnur import ( cuda_api_id, opencl_api_id, StaticKernel, VirtualSizeError, API, Context, Queue, MultiQueue, Array, MultiArray ) from grunnur.template import DefTemplate from .mock_base import MockKernel, MockDefTemplate, MockDefTemplate from .mock_pycuda import PyCUDADevi...
34.365714
105
0.689225
831
6,014
4.756919
0.209386
0.022262
0.036175
0.025803
0.498609
0.361751
0.293954
0.270175
0.242348
0.149001
0
0.033902
0.190722
6,014
174
106
34.563218
0.778303
0.062355
0
0.241379
0
0
0.109068
0.013292
0
0
0
0
0.051724
1
0.068966
false
0
0.068966
0
0.137931
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86028d3af8b32e8fcc5b56f0951579ff48885aaa
8,212
py
Python
platform/winrt/detect.py
bdero/godot
e7572c690a3a6792e5aa183e16d902bff77398bc
[ "CC-BY-3.0", "MIT" ]
24
2016-10-14T16:54:01.000Z
2022-01-15T06:39:17.000Z
platform/winrt/detect.py
bdero/godot
e7572c690a3a6792e5aa183e16d902bff77398bc
[ "CC-BY-3.0", "MIT" ]
2
2021-08-17T02:04:05.000Z
2021-09-18T13:55:13.000Z
platform/winrt/detect.py
bdero/godot
e7572c690a3a6792e5aa183e16d902bff77398bc
[ "CC-BY-3.0", "MIT" ]
9
2017-08-04T12:00:16.000Z
2021-12-10T06:48:28.000Z
import os import sys import string def is_active(): return True def get_name(): return "WinRT" def can_build(): if (os.name=="nt"): #building natively on windows! if (os.getenv("VSINSTALLDIR")): return True return False def get_opts(): return [] def get_flags(): return [] def configure(env): ...
52.305732
846
0.693132
1,094
8,212
5.130713
0.202011
0.073757
0.059861
0.042758
0.649029
0.59184
0.574559
0.551577
0.537324
0.537324
0
0.032101
0.097175
8,212
156
847
52.641026
0.72498
0.4217
0
0.395349
0
0.023256
0.426184
0.095178
0
0
0.003384
0
0
1
0.069767
false
0
0.046512
0.046512
0.186047
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8602e07af8df333a6a9bc854df324adb49b003af
6,934
py
Python
monasca-log-api-2.9.0/monasca_log_api/tests/test_role_middleware.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
monasca-log-api-2.9.0/monasca_log_api/tests/test_role_middleware.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
monasca-log-api-2.9.0/monasca_log_api/tests/test_role_middleware.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2015-2017 FUJITSU LIMITED # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
30.546256
77
0.657629
835
6,934
5.172455
0.203593
0.031489
0.042139
0.06483
0.66057
0.623524
0.599213
0.594814
0.536467
0.502431
0
0.01295
0.242717
6,934
226
78
30.681416
0.80956
0.082492
0
0.547945
0
0
0.041916
0
0
0
0
0
0.164384
1
0.109589
false
0
0.027397
0
0.164384
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86040bdb269e301a7c36430ecb672c9bac61af90
1,626
py
Python
paradrop/daemon/paradrop/core/config/wifi.py
VegetableChook/Paradrop
a38e1773877d5b136c3b626edd8c033a12b43e56
[ "Apache-2.0" ]
1
2018-03-22T13:04:19.000Z
2018-03-22T13:04:19.000Z
paradrop/daemon/paradrop/core/config/wifi.py
VegetableChook/Paradrop
a38e1773877d5b136c3b626edd8c033a12b43e56
[ "Apache-2.0" ]
null
null
null
paradrop/daemon/paradrop/core/config/wifi.py
VegetableChook/Paradrop
a38e1773877d5b136c3b626edd8c033a12b43e56
[ "Apache-2.0" ]
null
null
null
from paradrop.base.output import out from paradrop.lib.utils import uci from . import configservice, uciutils def getOSWirelessConfig(update): """ Read settings from networkInterfaces for wireless interfaces. Store wireless configuration settings in osWirelessConfig. """ # old code under lib.inter...
29.563636
72
0.602706
161
1,626
6.086957
0.496894
0.061224
0.042857
0
0
0
0
0
0
0
0
0
0.290283
1,626
54
73
30.111111
0.84922
0.226322
0
0
0
0
0.148482
0
0
0
0
0
0
1
0.066667
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86040d6a3dcd14bd0d738d5bbdbdef5ec27bd32e
44,518
py
Python
xixi.py
niushuqing123/final-project
237745dd27a29c9a4b0574003c37fe4c875fde91
[ "MIT" ]
9
2022-03-10T06:53:38.000Z
2022-03-19T08:54:51.000Z
xixi.py
niushuqing123/final-project
237745dd27a29c9a4b0574003c37fe4c875fde91
[ "MIT" ]
null
null
null
xixi.py
niushuqing123/final-project
237745dd27a29c9a4b0574003c37fe4c875fde91
[ "MIT" ]
null
null
null
import taichi as ti import numpy as np from functools import reduce # from sph_base import SPHBase # ti.init(arch=ti.cpu) # Use GPU for higher peformance if available ti.init(arch=ti.gpu, device_memory_GB=4, packed=True) # 因为邻居搜索的网格不会做,所以尺寸数据只好也沿用助教的写法 # res = (720,720) res = (512,512) dim = 2 assert...
32.471189
207
0.536682
6,505
44,518
3.459185
0.109147
0.027064
0.044663
0.049596
0.546129
0.499689
0.455204
0.415608
0.3745
0.332904
0
0.058368
0.318433
44,518
1,370
208
32.494891
0.683244
0.150928
0
0.357488
0
0
0.008858
0
0
0
0.001369
0
0.001208
1
0.042271
false
0.004831
0.003623
0
0.050725
0.050725
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86048fe3a3ee21e21bf198adc5adb3af9aad7917
1,129
py
Python
pexen/factory/module.py
comps/pexen
3da6b110cf063646e5d2ae671f4408a14662fcca
[ "MIT" ]
1
2019-09-06T10:41:30.000Z
2019-09-06T10:41:30.000Z
pexen/factory/module.py
comps/pexen
3da6b110cf063646e5d2ae671f4408a14662fcca
[ "MIT" ]
null
null
null
pexen/factory/module.py
comps/pexen
3da6b110cf063646e5d2ae671f4408a14662fcca
[ "MIT" ]
1
2020-06-24T00:31:13.000Z
2020-06-24T00:31:13.000Z
import inspect from fnmatch import fnmatchcase from ..sched import meta from .base import BaseFactory class ModuleFactory(BaseFactory): """ Takes an imported module object and extracts callable objects from it. A valid callable is any object that can be called and has pexen.sched metadata. Argum...
28.225
77
0.639504
142
1,129
4.929577
0.443662
0.051429
0.045714
0
0
0
0
0
0
0
0
0
0.289637
1,129
39
78
28.948718
0.872818
0.248007
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.541667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86073f9a281f5bb9b144352abdd430f4d907d4bc
3,337
py
Python
saharaclient/api/job_binaries.py
openstack/python-saharaclient
2f01b878a9e07bc712fae9c6c2c5f823bd986dd6
[ "Apache-2.0" ]
34
2015-01-26T21:39:46.000Z
2021-01-16T17:30:25.000Z
saharaclient/api/job_binaries.py
openstack/python-saharaclient
2f01b878a9e07bc712fae9c6c2c5f823bd986dd6
[ "Apache-2.0" ]
null
null
null
saharaclient/api/job_binaries.py
openstack/python-saharaclient
2f01b878a9e07bc712fae9c6c2c5f823bd986dd6
[ "Apache-2.0" ]
15
2015-03-13T23:24:59.000Z
2017-06-22T12:15:46.000Z
# Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
32.086538
78
0.631106
423
3,337
4.853428
0.359338
0.09206
0.042864
0.027277
0.126157
0.126157
0.092547
0.092547
0.092547
0.092547
0
0.008681
0.275097
3,337
103
79
32.398058
0.840017
0.396764
0
0
0
0
0.083106
0.011482
0
0
0
0
0
1
0.15
false
0
0.025
0
0.475
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
86081d580f0b29a7dc03878e4040b5668fd409d4
894
py
Python
tools/mo/openvino/tools/mo/front/onnx/mean_variance_normalization_ext.py
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
1
2021-10-21T03:04:16.000Z
2021-10-21T03:04:16.000Z
tools/mo/openvino/tools/mo/front/onnx/mean_variance_normalization_ext.py
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
58
2020-11-06T12:13:45.000Z
2022-03-28T13:20:11.000Z
tools/mo/openvino/tools/mo/front/onnx/mean_variance_normalization_ext.py
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
2
2019-09-20T01:33:37.000Z
2019-09-20T08:42:11.000Z
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from openvino.tools.mo.ops.mvn import MVNOnnx from openvino.tools.mo.front.common.partial_infer.utils import int64_array from openvino.tools.mo.front.extractor import FrontExtractorOp from openvino.tools.mo.front.onnx.extractors.utils im...
30.827586
74
0.647651
104
894
5.451923
0.615385
0.084656
0.119929
0.134039
0.126984
0
0
0
0
0
0
0.032836
0.250559
894
28
75
31.928571
0.813433
0.08613
0
0
0
0
0.095823
0.030713
0
0
0
0
0
1
0.05
false
0
0.2
0
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7a5670ed8d1bfbab967804b7afd49109f337bfe
11,661
py
Python
enemy.py
KasiaWo/Rabbit_Bobble
89afbaa4f8b46e20ad33e9c410f50c85ddae747b
[ "MIT" ]
null
null
null
enemy.py
KasiaWo/Rabbit_Bobble
89afbaa4f8b46e20ad33e9c410f50c85ddae747b
[ "MIT" ]
null
null
null
enemy.py
KasiaWo/Rabbit_Bobble
89afbaa4f8b46e20ad33e9c410f50c85ddae747b
[ "MIT" ]
null
null
null
""" Module for managing enemies. """ import random import constants as const import pygame import random import platforms from spritesheet_functions import SpriteSheet class Enemy(pygame.sprite.Sprite): # -- Methods def __init__(self, x_cord, y_cord,level, x_speed=2, char_type=0): """ Constructor ...
35.769939
116
0.54738
1,487
11,661
4.146604
0.139879
0.076549
0.048492
0.021408
0.615472
0.554006
0.507622
0.457995
0.414856
0.361985
0
0.022321
0.362233
11,661
326
117
35.769939
0.806777
0.17417
0
0.398876
0
0
0.005546
0.002407
0
0
0
0
0
1
0.039326
false
0
0.033708
0
0.08427
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7a6e933e409ba532f518e3e1b2e619a58f1715d
10,715
py
Python
schicluster/_hicluster_internal.py
zhoujt1994/scHiCluster
1f7e0cc5a56a357659a6b10b34053e6addbf30a5
[ "MIT" ]
27
2019-07-10T23:17:33.000Z
2022-01-14T07:34:42.000Z
schicluster/_hicluster_internal.py
zhoujt1994/scHiCluster
1f7e0cc5a56a357659a6b10b34053e6addbf30a5
[ "MIT" ]
4
2019-11-01T01:12:09.000Z
2022-03-29T11:24:35.000Z
schicluster/_hicluster_internal.py
zhoujt1994/scHiCluster
1f7e0cc5a56a357659a6b10b34053e6addbf30a5
[ "MIT" ]
8
2019-12-24T13:54:11.000Z
2022-01-26T17:21:55.000Z
import argparse import inspect import logging import sys from .__main__ import setup_logging log = logging.getLogger() DESCRIPTION = """ hic-internal is used for automation, not intend to be used by end user. Use hicluster instead. """ EPILOG = '' def impute_chromosome_internal_subparser(subparser): parser =...
23.653422
105
0.583481
1,137
10,715
5.255057
0.169745
0.112301
0.07431
0.123849
0.615565
0.58728
0.531548
0.453556
0.385105
0.370711
0
0.009213
0.321325
10,715
452
106
23.705752
0.812431
0.012506
0
0.535714
0
0
0.155978
0.012486
0
0
0
0
0
1
0.024725
false
0
0.035714
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7af32c0de7c050bf221c8fa53e7b8146120211e
11,892
py
Python
custom_components/discord_game/sensor.py
Myztillx/discord_game
d2413a41ca3918bf2836b3b577fccca86b85ff05
[ "MIT" ]
null
null
null
custom_components/discord_game/sensor.py
Myztillx/discord_game
d2413a41ca3918bf2836b3b577fccca86b85ff05
[ "MIT" ]
null
null
null
custom_components/discord_game/sensor.py
Myztillx/discord_game
d2413a41ca3918bf2836b3b577fccca86b85ff05
[ "MIT" ]
null
null
null
import asyncio import json import logging import re import homeassistant.helpers.config_validation as cv import voluptuous as vol from discord import ActivityType, Spotify, Game, Streaming, CustomActivity, Activity, Member, User from homeassistant.components.notify import PLATFORM_SCHEMA from homeassistant.const impor...
38.862745
147
0.632862
1,298
11,892
5.451464
0.143297
0.035613
0.027699
0.017807
0.203081
0.099774
0.063313
0.050028
0.016676
0.016676
0
0.003895
0.287504
11,892
305
148
38.990164
0.831229
0.02447
0
0.125926
0
0
0.04729
0.007939
0
0
0
0
0
1
0.033333
false
0
0.040741
0.014815
0.107407
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7afb1df4dc8682c54d3708fff34533b6c3286db
2,933
py
Python
fumblr/services/imgur.py
jonoco/fumblr
cfbbea365299b9edba05c04de77cb003d03b6186
[ "MIT" ]
2
2017-04-13T02:58:24.000Z
2021-05-04T00:36:57.000Z
fumblr/services/imgur.py
jonoco/fumblr
cfbbea365299b9edba05c04de77cb003d03b6186
[ "MIT" ]
2
2020-09-09T22:10:40.000Z
2021-02-08T20:22:28.000Z
fumblr/services/imgur.py
jonoco/fumblr
cfbbea365299b9edba05c04de77cb003d03b6186
[ "MIT" ]
4
2019-07-30T12:17:55.000Z
2020-08-28T14:51:22.000Z
from fumblr.keys import IMGUR_SECRET, IMGUR_ID from imgurpython import ImgurClient, helpers import os import base64 API_URL = 'https://api.imgur.com/3/' def get_client(): """ Get an API client for Imgur Returns: Imgur client if it is available """ try: return ImgurClient(IMGUR_ID...
20.51049
83
0.57177
332
2,933
4.951807
0.289157
0.038321
0.04562
0.051703
0.259732
0.171533
0.141119
0.141119
0.141119
0.141119
0
0.021331
0.328674
2,933
142
84
20.65493
0.813611
0.423116
0
0.369565
0
0
0.098233
0
0
0
0
0
0
1
0.130435
false
0
0.086957
0
0.391304
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
f7b31ccb2c831e63f0930af029ae9e690135237c
3,584
py
Python
source/src/molecular-unfolding/lambda/AthenaTableLambda/app.py
awslabs/quantum-ready-solution-for-drug-discovery
a015589995dc17a56bcd0da9332f63d966d08ace
[ "Apache-2.0" ]
10
2022-01-26T01:08:50.000Z
2022-03-31T03:03:44.000Z
source/src/molecular-unfolding/lambda/AthenaTableLambda/app.py
awslabs/quantum-ready-solution-for-drug-discovery
a015589995dc17a56bcd0da9332f63d966d08ace
[ "Apache-2.0" ]
47
2022-01-26T01:27:35.000Z
2022-03-29T04:34:51.000Z
source/src/molecular-unfolding/lambda/AthenaTableLambda/app.py
awslabs/quantum-ready-solution-for-drug-discovery
a015589995dc17a56bcd0da9332f63d966d08ace
[ "Apache-2.0" ]
5
2022-02-08T02:30:11.000Z
2022-03-25T01:59:15.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import boto3 import botocore import os import logging import time import json import datetime log = logging.getLogger() log.setLevel('INFO') bucket = os.environ['BUCKET'] region = os.environ['AWS_REGION'] solu...
34.461538
265
0.677176
432
3,584
5.381944
0.361111
0.052043
0.015484
0.022366
0.202151
0.139355
0.117849
0.089462
0.055054
0
0
0.010365
0.219308
3,584
103
266
34.796117
0.820586
0.03404
0
0.045455
0
0.011364
0.446341
0.063928
0
0
0
0
0
1
0.022727
false
0
0.079545
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
f7b33150fa99668b4eb5ad17455848d84b07ab75
14,664
py
Python
osf/management/commands/populate_custom_taxonomies.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
628
2015-01-15T04:33:22.000Z
2022-03-30T06:40:10.000Z
osf/management/commands/populate_custom_taxonomies.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
4,712
2015-01-02T01:41:53.000Z
2022-03-30T14:18:40.000Z
osf/management/commands/populate_custom_taxonomies.py
Johnetordoff/osf.io
de10bf249c46cede04c78f7e6f7e352c69e6e6b5
[ "Apache-2.0" ]
371
2015-01-12T16:14:08.000Z
2022-03-31T18:58:29.000Z
import json import logging from django.core.management.base import BaseCommand from django.db import transaction from osf.models import AbstractProvider, PreprintProvider, Preprint, Subject from osf.models.provider import rules_to_subjects from scripts import utils as script_utils from osf.models.validators import va...
52.185053
228
0.694558
1,866
14,664
5.254555
0.149518
0.05283
0.017134
0.017134
0.344008
0.268638
0.209179
0.119735
0.089954
0.078123
0
0.001281
0.201582
14,664
280
229
52.371429
0.83618
0.045076
0
0.188341
0
0.017937
0.201129
0.014009
0
0
0
0.003571
0.058296
1
0.044843
false
0
0.040359
0
0.103139
0.107623
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7b36ab04da3147e45f62315611a09ce95152628
2,999
py
Python
examples/animated_rsh.py
sophiaas/e3nn
92351b9225df7aeaf70fdc124c7b0e566d4c0eda
[ "MIT" ]
1
2021-01-11T18:34:39.000Z
2021-01-11T18:34:39.000Z
examples/animated_rsh.py
sophiaas/e3nn
92351b9225df7aeaf70fdc124c7b0e566d4c0eda
[ "MIT" ]
null
null
null
examples/animated_rsh.py
sophiaas/e3nn
92351b9225df7aeaf70fdc124c7b0e566d4c0eda
[ "MIT" ]
null
null
null
# pylint: disable=not-callable, no-member, invalid-name, missing-docstring, line-too-long import math import os import subprocess import argparse import shutil import tqdm import plotly.graph_objs as go import torch from e3nn import o3, rsh def rsh_surface(l, m, scale, tr, rot): n = 50 a = torch.linspace(0,...
26.776786
118
0.518506
449
2,999
3.400891
0.347439
0.009168
0.007859
0.013752
0.068107
0.045842
0.014407
0
0
0
0
0.051527
0.3011
2,999
111
119
27.018018
0.677004
0.02901
0
0.022989
0
0
0.067698
0
0
0
0
0
0
1
0.022989
false
0
0.103448
0
0.137931
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7b491ed05c90e96397d418234149764a3bc7143
8,449
py
Python
dataset.py
gzaraunitn/TA3N
d83ae5d9c8f4452ff69dd9002bb4016a695a4be8
[ "MIT" ]
null
null
null
dataset.py
gzaraunitn/TA3N
d83ae5d9c8f4452ff69dd9002bb4016a695a4be8
[ "MIT" ]
null
null
null
dataset.py
gzaraunitn/TA3N
d83ae5d9c8f4452ff69dd9002bb4016a695a4be8
[ "MIT" ]
null
null
null
import torch.utils.data as data import os import os.path import numpy as np from numpy.random import randint import torch from colorama import init from colorama import Fore, Back, Style import random from os import listdir from os.path import join, splitext import numpy as np import torch import torch.nn.functiona...
34.345528
142
0.610486
1,099
8,449
4.474977
0.179254
0.03843
0.07015
0.019927
0.403823
0.354006
0.335706
0.299919
0.292192
0.292192
0
0.01038
0.293052
8,449
246
143
34.345528
0.812992
0.067464
0
0.195652
0
0
0.011101
0
0
0
0
0
0
1
0.092391
false
0
0.097826
0.027174
0.282609
0.005435
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7b6cec7ff18c898066933b6660bdaa93907b21d
7,368
py
Python
dragonfly/opt/unittest_cp_random_multiobjective_optimiser.py
anonymous-submission000/mobo
090f774d742c7155c5e5ba01c10e7db7b93b6a0a
[ "MIT" ]
1
2022-02-17T08:50:47.000Z
2022-02-17T08:50:47.000Z
dragonfly/opt/unittest_cp_random_multiobjective_optimiser.py
anonymous-submission000/mobo
090f774d742c7155c5e5ba01c10e7db7b93b6a0a
[ "MIT" ]
null
null
null
dragonfly/opt/unittest_cp_random_multiobjective_optimiser.py
anonymous-submission000/mobo
090f774d742c7155c5e5ba01c10e7db7b93b6a0a
[ "MIT" ]
null
null
null
""" Unit tests for Random CP optimiser on Cartesian product domains. -- kandasamy@cs.cmu.edu """ # pylint: disable=invalid-name # pylint: disable=abstract-class-little-used import os from . import random_multiobjective_optimiser from ..exd.cp_domain_utils import get_raw_point_from_processed_point, \ load_co...
48.794702
120
0.621607
799
7,368
5.423029
0.20776
0.036926
0.033233
0.025387
0.419802
0.399492
0.336026
0.266328
0.266328
0.256174
0
0.003595
0.282709
7,368
150
121
49.12
0.816272
0.084826
0
0.256881
0
0
0.100661
0.013221
0
0
0
0
0.027523
1
0.091743
false
0.009174
0.082569
0
0.211009
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7b7563d85b1f23ad406817127e2c0f401a6930a
2,817
py
Python
corehq/apps/app_manager/app_schemas/casedb_schema.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
1
2020-07-14T13:00:23.000Z
2020-07-14T13:00:23.000Z
corehq/apps/app_manager/app_schemas/casedb_schema.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
94
2020-12-11T06:57:31.000Z
2022-03-15T10:24:06.000Z
corehq/apps/app_manager/app_schemas/casedb_schema.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
null
null
null
from corehq import toggles from corehq.apps.app_manager.app_schemas.case_properties import ( ParentCasePropertyBuilder, get_usercase_properties, ) from corehq.apps.app_manager.const import USERCASE_TYPE from corehq.apps.app_manager.util import is_usercase_in_use from corehq.apps.data_dictionary.util import get_...
39.125
104
0.635428
341
2,817
5.029326
0.331378
0.037318
0.034985
0.029738
0.076968
0
0
0
0
0
0
0.004704
0.245296
2,817
71
105
39.676056
0.801976
0.15016
0
0
0
0
0.092172
0
0
0
0
0
0
1
0.037037
false
0
0.092593
0
0.148148
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7b8c19ee74b54f26fc920af5e0e656df23e85a5
3,597
py
Python
bookshelf/bookshelf/model_aerospike.py
fakeskimo/as2bt
0872192e703a2992dea7bee2bf2544727d6094ee
[ "Apache-2.0" ]
null
null
null
bookshelf/bookshelf/model_aerospike.py
fakeskimo/as2bt
0872192e703a2992dea7bee2bf2544727d6094ee
[ "Apache-2.0" ]
null
null
null
bookshelf/bookshelf/model_aerospike.py
fakeskimo/as2bt
0872192e703a2992dea7bee2bf2544727d6094ee
[ "Apache-2.0" ]
null
null
null
import math import aerospike from aerospike import predicates as p from aerospike import exception as ex from flask import current_app aerospike_host = current_app.config['AEROSPIKE_HOST'] aerospike_port = current_app.config['AEROSPIKE_PORT'] namespace = current_app.config['AEROSPIKE_NAMESPACE'] set_name = current_...
22.341615
96
0.626633
485
3,597
4.517526
0.268041
0.028754
0.058421
0.045641
0.358284
0.358284
0.330899
0.282976
0.282976
0.282976
0
0.02161
0.253823
3,597
160
97
22.48125
0.794709
0.211843
0
0.27451
0
0
0.049273
0
0
0
0
0
0
1
0.078431
false
0.009804
0.04902
0
0.215686
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7b8e6d755230cb8c58e980bba16ad5edecee7d7
1,437
py
Python
examples/EC2.py
nimRobotics/fnirslib
0273c0da5f4a41d7cf4dac0fc9686c38f2c7b0cd
[ "MIT" ]
null
null
null
examples/EC2.py
nimRobotics/fnirslib
0273c0da5f4a41d7cf4dac0fc9686c38f2c7b0cd
[ "MIT" ]
null
null
null
examples/EC2.py
nimRobotics/fnirslib
0273c0da5f4a41d7cf4dac0fc9686c38f2c7b0cd
[ "MIT" ]
null
null
null
""" author: @nimrobotics description: calculates the effective connectivity between regions and plots them """ import numpy as np import scipy.io import glob import sys sys.path.append('../utils') from plots import plotData dir = "./process3/" #directory of the data outdir = 'process3/' #directory to save the plots r...
31.933333
133
0.659708
206
1,437
4.553398
0.402913
0.059701
0.031983
0.036247
0
0
0
0
0
0
0
0.010265
0.1865
1,437
44
134
32.659091
0.79213
0.308977
0
0
0
0
0.170103
0
0
0
0
0
0
1
0
false
0
0.16129
0
0.16129
0.290323
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7bb92af288264a3c094d6c7636074324c8ab56d
12,847
py
Python
gcp/docker/infrastructure/rapids_lib.py
ethem-kinginthenorth/cloud-ml-examples
e434d2bdbf2adf058dc436f992a56585537dc8ab
[ "Apache-2.0" ]
1
2022-03-23T05:10:45.000Z
2022-03-23T05:10:45.000Z
gcp/docker/infrastructure/rapids_lib.py
ethem-kinginthenorth/cloud-ml-examples
e434d2bdbf2adf058dc436f992a56585537dc8ab
[ "Apache-2.0" ]
null
null
null
gcp/docker/infrastructure/rapids_lib.py
ethem-kinginthenorth/cloud-ml-examples
e434d2bdbf2adf058dc436f992a56585537dc8ab
[ "Apache-2.0" ]
null
null
null
# os import sys, os, time, logging # CPU DS stack import pandas as pd import numpy as np import sklearn # GPU DS stack [ rapids ] import gcsfs # scaling library import dask # data ingestion [ CPU ] from pyarrow import orc as pyarrow_orc # ML models from sklearn import ensemble import xgboost # data set splits fro...
38.57958
138
0.599829
1,558
12,847
4.681001
0.202182
0.016454
0.029617
0.040998
0.317291
0.264637
0.18223
0.116002
0.102564
0.091869
0
0.004406
0.293298
12,847
332
139
38.695783
0.798877
0.070444
0
0.220183
0
0.009174
0.134243
0.018486
0
0
0
0.003012
0.004587
1
0.100917
false
0.013761
0.077982
0
0.238532
0.050459
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7bc4cc67a214b3d1cc41c823e3eb37e1f5d2531
5,011
py
Python
docs/making_widgets_from_scratch/line_clock.py
Rahuum/glooey
932edca1c8fdd710f1941038e47ac8d25a31a1a8
[ "MIT" ]
86
2016-11-28T12:34:28.000Z
2022-03-17T13:49:49.000Z
docs/making_widgets_from_scratch/line_clock.py
Rahuum/glooey
932edca1c8fdd710f1941038e47ac8d25a31a1a8
[ "MIT" ]
57
2017-03-07T10:11:52.000Z
2022-01-16T19:35:33.000Z
docs/making_widgets_from_scratch/line_clock.py
Rahuum/glooey
932edca1c8fdd710f1941038e47ac8d25a31a1a8
[ "MIT" ]
9
2017-03-15T18:55:50.000Z
2022-02-17T14:52:49.000Z
#!/usr/bin/env python3 import pyglet import glooey import autoprop import datetime from pyglet.gl import * from vecrec import Vector, Rect @autoprop class LineClock(glooey.Widget): custom_radius = 50 custom_color = 'green' custom_hour_hand_width = 3 custom_minute_hand_width = 2 custom_second_hand_...
28.151685
79
0.580124
638
5,011
4.382445
0.315047
0.035408
0.025036
0.012876
0.083333
0.037196
0.037196
0.037196
0
0
0
0.019747
0.32289
5,011
177
80
28.310734
0.803419
0.162842
0
0.07563
0
0
0.009816
0
0
0
0
0
0
1
0.142857
false
0
0.05042
0.016807
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
f7bd2e55648aaa2a1a246e97711c0fc010416b3b
5,711
py
Python
scripts/sighan/generate.py
piglaker/SpecialEdition
172688ef111e1b5c62bdb1ba0a523a2654201b90
[ "Apache-2.0" ]
2
2022-01-06T07:41:50.000Z
2022-01-22T14:18:51.000Z
scripts/sighan/generate.py
piglaker/SpecialEdition
172688ef111e1b5c62bdb1ba0a523a2654201b90
[ "Apache-2.0" ]
null
null
null
scripts/sighan/generate.py
piglaker/SpecialEdition
172688ef111e1b5c62bdb1ba0a523a2654201b90
[ "Apache-2.0" ]
null
null
null
import os import re import sys import json #upper import sys.path.append("../../") from utils import levenshtein from utils.io import load_json, write_to def strQ2B(ustring): """全角转半角""" rstring = "" for uchar in ustring: inside_code=ord(uchar) if inside_code == 12288: ...
33.994048
179
0.629487
728
5,711
4.700549
0.188187
0.048217
0.06955
0.063121
0.346873
0.279369
0.207189
0.179719
0.078317
0.078317
0
0.025128
0.212572
5,711
167
180
34.197605
0.735824
0.150937
0
0.07619
0
0
0.128301
0.049491
0
0
0
0
0.009524
1
0.047619
false
0
0.057143
0
0.142857
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7c03e8c3283127463ae5c11c8faf6e12bf38615
1,951
py
Python
meta_middleware/meta_middleware/middleware.py
kevin-wyx/ProxyFS
76d9478c9e87c18950f2e4659b397a397fb1ac69
[ "Apache-2.0" ]
null
null
null
meta_middleware/meta_middleware/middleware.py
kevin-wyx/ProxyFS
76d9478c9e87c18950f2e4659b397a397fb1ac69
[ "Apache-2.0" ]
null
null
null
meta_middleware/meta_middleware/middleware.py
kevin-wyx/ProxyFS
76d9478c9e87c18950f2e4659b397a397fb1ac69
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 SwiftStack, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
34.22807
112
0.633521
256
1,951
4.695313
0.453125
0.049917
0.021631
0.026622
0.138103
0.0599
0
0
0
0
0
0.005682
0.278319
1,951
56
113
34.839286
0.848011
0.333675
0
0.121212
0
0
0.085737
0.072486
0
0
0
0
0
1
0.151515
false
0
0
0.030303
0.30303
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7c417316d84349935d37272663f36b5a52c49ff
1,165
py
Python
drogher/package/fedex.py
thisisnotmyuserid/drogher
f8ea5e34dad6a2e9f22608b4ae4a6f7032133e45
[ "BSD-3-Clause" ]
13
2017-04-24T07:49:30.000Z
2020-09-22T13:13:13.000Z
drogher/package/fedex.py
thisisnotmyuserid/drogher
f8ea5e34dad6a2e9f22608b4ae4a6f7032133e45
[ "BSD-3-Clause" ]
null
null
null
drogher/package/fedex.py
thisisnotmyuserid/drogher
f8ea5e34dad6a2e9f22608b4ae4a6f7032133e45
[ "BSD-3-Clause" ]
4
2018-09-08T05:31:57.000Z
2022-02-10T17:42:31.000Z
import itertools from .base import Package class FedEx(Package): shipper = 'FedEx' class FedExExpress(FedEx): barcode_pattern = r'^\d{34}$' @property def tracking_number(self): return self.barcode[20:22].lstrip('0') + self.barcode[22:] @property def valid_checksum(self): c...
25.326087
80
0.574249
145
1,165
4.517241
0.351724
0.128244
0.109924
0.116031
0.387786
0.387786
0.387786
0.387786
0.247328
0.247328
0
0.045232
0.297854
1,165
45
81
25.888889
0.755501
0
0
0.294118
0
0
0.020601
0
0
0
0.002575
0
0
1
0.117647
false
0
0.058824
0.058824
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
f7c5189c4c9985714dd619cfadbc0baf92efab39
5,099
py
Python
MFSDA/MFSDA_run.py
bpaniagua/MFSDA_Python
d7e439fe670d5e2731c9ec722919a74f67b01e30
[ "Apache-2.0" ]
3
2020-08-10T08:57:36.000Z
2021-04-04T01:12:50.000Z
MFSDA/MFSDA_run.py
bpaniagua/MFSDA_Python
d7e439fe670d5e2731c9ec722919a74f67b01e30
[ "Apache-2.0" ]
17
2018-08-03T14:25:52.000Z
2022-02-06T18:19:39.000Z
MFSDA/MFSDA_run.py
bpaniagua/MFSDA_Python
d7e439fe670d5e2731c9ec722919a74f67b01e30
[ "Apache-2.0" ]
13
2017-11-14T17:22:32.000Z
2020-12-10T16:55:58.000Z
#!/usr/bin/env python-real # -*- coding: utf-8 -*- """ Run script: multivariate functional shape data analysis (MFSDA). Author: Chao Huang (chaohuang.stat@gmail.com) Last update: 2017-08-14 """ import sys,os sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)),os.path.join('Resources','Libraries')...
29.818713
130
0.642871
631
5,099
5.049128
0.33439
0.024168
0.012555
0.010358
0.220967
0.175769
0.134338
0.097928
0.074702
0.074702
0
0.00646
0.21063
5,099
170
131
29.994118
0.785093
0.061188
0
0.130841
0
0
0.136885
0
0
0
0
0
0
1
0.028037
false
0
0.140187
0
0.17757
0.084112
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7c72117e015e7f0761f5162d10f3d3cf0ddb74f
1,671
py
Python
modules/mongodb_atlas/mongodb_atlas.py
riddopic/opta
25fa6435fdc7e2ea9c7963ed74100fffb0743063
[ "Apache-2.0" ]
595
2021-05-21T22:30:48.000Z
2022-03-31T15:40:25.000Z
modules/mongodb_atlas/mongodb_atlas.py
riddopic/opta
25fa6435fdc7e2ea9c7963ed74100fffb0743063
[ "Apache-2.0" ]
463
2021-05-24T21:32:59.000Z
2022-03-31T17:12:33.000Z
modules/mongodb_atlas/mongodb_atlas.py
riddopic/opta
25fa6435fdc7e2ea9c7963ed74100fffb0743063
[ "Apache-2.0" ]
29
2021-05-21T22:27:52.000Z
2022-03-28T16:43:45.000Z
import os from typing import TYPE_CHECKING from modules.base import ModuleProcessor from opta.core.terraform import get_terraform_outputs from opta.exceptions import UserErrors if TYPE_CHECKING: from opta.layer import Layer from opta.module import Module class MongodbAtlasProcessor(ModuleProcessor): def...
37.133333
98
0.663076
206
1,671
5.160194
0.393204
0.075259
0.065851
0.053622
0.113829
0
0
0
0
0
0
0.000779
0.232196
1,671
44
99
37.977273
0.827747
0.01915
0
0
0
0
0.187538
0.029933
0
0
0
0
0
1
0.090909
false
0
0.212121
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7c994df8beeb9e54af1a6918047db78eb8494b2
1,389
py
Python
lambdas/budget-handler/lambda_handler.py
weAllWeGot/personal_financial_engine
37c89e49aa68d6db48c10d6663135f4992a72171
[ "Apache-2.0" ]
2
2018-08-18T16:41:43.000Z
2020-12-20T21:29:49.000Z
lambdas/budget-handler/lambda_handler.py
weallwegot/personal_financial_engine
37c89e49aa68d6db48c10d6663135f4992a72171
[ "Apache-2.0" ]
12
2018-07-25T16:56:48.000Z
2019-10-22T01:16:23.000Z
lambdas/budget-handler/lambda_handler.py
weAllWeGot/personal_financial_engine
37c89e49aa68d6db48c10d6663135f4992a72171
[ "Apache-2.0" ]
4
2018-12-07T23:50:12.000Z
2021-04-16T20:49:08.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import boto3 import csv import json import logging from budget_retrieval import get_budget from budget_placement import place_budget def respond(err, res=None): return { 'statusCode': '400' if err else '200', 'body': err.message if err else json.dumps...
28.346939
84
0.645068
174
1,389
5.086207
0.534483
0.023729
0.020339
0
0
0
0
0
0
0
0
0.008264
0.215983
1,389
48
85
28.9375
0.804408
0.214543
0
0
0
0
0.219512
0.055347
0
0
0
0
0
1
0.071429
false
0
0.214286
0.035714
0.357143
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7ca0211e8a92052407acbaa028f0ad46e74b5f9
1,451
py
Python
src/documenteer/stackdocs/doxygentag.py
lsst-sqre/sphinxkit
a9475d0722b0f6f89fd1c4c54eafad0564667b0b
[ "MIT" ]
3
2019-04-18T02:47:06.000Z
2021-11-09T03:49:12.000Z
src/documenteer/stackdocs/doxygentag.py
lsst-sqre/sphinxkit
a9475d0722b0f6f89fd1c4c54eafad0564667b0b
[ "MIT" ]
29
2016-12-15T01:02:05.000Z
2022-03-07T12:06:40.000Z
src/documenteer/stackdocs/doxygentag.py
lsst-sqre/sphinxkit
a9475d0722b0f6f89fd1c4c54eafad0564667b0b
[ "MIT" ]
2
2016-09-12T17:44:06.000Z
2016-12-15T00:37:05.000Z
"""Utilities for working with Doxygen tag files. """ __all__ = ["get_tag_entity_names"] import xml.etree.ElementTree as ET from pathlib import Path from typing import List, Optional, Sequence, Union try: from sphinxcontrib.doxylink import doxylink except ImportError: print( "sphinxcontrib.doxylink is...
24.183333
74
0.598208
176
1,451
4.835227
0.465909
0.035253
0.028202
0.039953
0
0
0
0
0
0
0
0
0.305307
1,451
59
75
24.59322
0.844246
0.360441
0
0.076923
0
0
0.169287
0.053204
0
0
0
0
0
1
0.038462
false
0
0.192308
0
0.269231
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7cadf89eeb52e1e8b7bf3ad6d819d4964e7f62f
1,263
py
Python
src/gamesbyexample/shellgame.py
skinzor/PythonStdioGames
75f27af19d7f1d555b0fd85fbcf215f07660b93f
[ "MIT" ]
1
2019-11-30T17:04:09.000Z
2019-11-30T17:04:09.000Z
src/gamesbyexample/shellgame.py
skinzor/PythonStdioGames
75f27af19d7f1d555b0fd85fbcf215f07660b93f
[ "MIT" ]
null
null
null
src/gamesbyexample/shellgame.py
skinzor/PythonStdioGames
75f27af19d7f1d555b0fd85fbcf215f07660b93f
[ "MIT" ]
null
null
null
# Shell Game, by Al Sweigart al@inventwithpython.com # A random gambling game. import random, time, sys print('''SHELL GAME By Al Sweigart al@inventwithpython.com Try to find the diamond! Press Enter to continue...''') input() CUPS = ['diamond', 'pocket lint', 'nothing'] while True: print() print('Shufflin...
26.3125
93
0.599367
174
1,263
4.350575
0.488506
0.047556
0.05284
0.058124
0.207398
0.207398
0.207398
0.207398
0.096433
0.096433
0
0.013598
0.243072
1,263
47
94
26.87234
0.778243
0.119557
0
0.342857
0
0
0.30533
0.020777
0
0
0
0
0
1
0
false
0
0.028571
0
0.028571
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7cbba72cbee5b92ee9bed0dc914113ae1d6f2e4
1,242
py
Python
main.py
mathew4STAR/GPT-3_based_AI
7c5ffcd26ebbd64ee1f6fa02ec4a8529c795b809
[ "MIT" ]
null
null
null
main.py
mathew4STAR/GPT-3_based_AI
7c5ffcd26ebbd64ee1f6fa02ec4a8529c795b809
[ "MIT" ]
null
null
null
main.py
mathew4STAR/GPT-3_based_AI
7c5ffcd26ebbd64ee1f6fa02ec4a8529c795b809
[ "MIT" ]
null
null
null
import pyttsx3 import speech_recognition as sr import openai as op import os op.api_key = os.getenv("OPENAI_API_KEY") engine = pyttsx3.init() engine.setProperty('rate', 150) engine.setProperty('volume', 1.0) voices = engine.getProperty('voices') engine.setProperty('voice', voices[1].id) def tell(text): engine.s...
24.84
154
0.638486
155
1,242
5.051613
0.6
0.065134
0
0
0
0
0
0
0
0
0
0.023134
0.2343
1,242
50
155
24.84
0.80021
0
0
0
0
0.02439
0.193081
0
0
0
0
0
0
1
0.04878
false
0
0.097561
0
0.195122
0.121951
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7cdc28f8dbf0a5fa40122f9a836204bf7e9435a
500
py
Python
bgp_adjacencies/BGP_check_job.py
KamyarZiabari/solutions_examples
3dfa80d276ab13d1e489142a3fcbe2bd8ab0eba2
[ "Apache-2.0" ]
59
2019-03-08T15:08:14.000Z
2021-12-23T15:59:03.000Z
bgp_adjacencies/BGP_check_job.py
CiscoTestAutomation/genie_solutions
69c96f57dce466bcd767bd1ea6326aaf6a63fbcf
[ "Apache-2.0" ]
8
2019-04-05T04:29:17.000Z
2021-04-12T15:37:51.000Z
bgp_adjacencies/BGP_check_job.py
CiscoTestAutomation/genie_solutions
69c96f57dce466bcd767bd1ea6326aaf6a63fbcf
[ "Apache-2.0" ]
37
2019-03-15T21:35:38.000Z
2022-03-22T01:49:59.000Z
# To run the job: # pyats run job BGP_check_job.py --testbed-file <testbed_file.yaml> # Description: This job file checks that all BGP neighbors are in Established state import os # All run() must be inside a main function def main(runtime): # Find the location of the script in relation to the job file bgp_tes...
38.461538
83
0.708
76
500
4.513158
0.565789
0.034985
0
0
0
0
0
0
0
0
0
0
0.216
500
12
84
41.666667
0.875
0.574
0
0
0
0
0.135922
0.135922
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7cddf9b0d9e1e72530d863ce9c077212cea7e97
858
py
Python
tvae/utils/logging.py
ReallyAnonNeurips2021/TopographicVAE
97ba47c039f7eab05ce9e17c3faea0a6ec86f1eb
[ "MIT" ]
57
2021-09-02T13:20:43.000Z
2022-03-17T18:35:55.000Z
tvae/utils/logging.py
ReallyAnonNeurips2021/TopographicVAE
97ba47c039f7eab05ce9e17c3faea0a6ec86f1eb
[ "MIT" ]
2
2021-09-07T13:06:40.000Z
2022-03-04T11:54:22.000Z
tvae/utils/logging.py
ReallyAnonNeurips2021/TopographicVAE
97ba47c039f7eab05ce9e17c3faea0a6ec86f1eb
[ "MIT" ]
8
2021-09-07T14:48:25.000Z
2022-03-12T05:44:32.000Z
import os def get_dirs(): cwd = os.path.dirname(os.path.realpath(__file__)) local_savedir = cwd local_datadir = cwd local_wandbdir = cwd return local_savedir, local_datadir, local_wandbdir def configure_logging(config, name, model): if config['wandb_on']: import wandb wandb...
24.514286
71
0.56993
101
858
4.633663
0.386139
0.064103
0.057692
0.051282
0.102564
0.102564
0.102564
0.102564
0
0
0
0
0.312354
858
34
72
25.235294
0.79322
0
0
0.16
0
0
0.121212
0
0
0
0
0
0
1
0.16
false
0
0.08
0
0.32
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7ce40df7d33d5f39e5868a59d46a085bed7cd64
3,408
py
Python
src/models/modules/visual_bert_classifier.py
inzva/emotion-recognition-drawings
56435f42d76c10c10fa58149ccbcc8d05efccdc0
[ "MIT" ]
10
2021-11-20T19:01:08.000Z
2022-01-16T09:06:12.000Z
src/models/modules/visual_bert_classifier.py
inzva/emotion-recognition-drawings
56435f42d76c10c10fa58149ccbcc8d05efccdc0
[ "MIT" ]
2
2021-12-11T12:28:03.000Z
2021-12-13T21:09:53.000Z
src/models/modules/visual_bert_classifier.py
inzva/emotion-recognition-drawings
56435f42d76c10c10fa58149ccbcc8d05efccdc0
[ "MIT" ]
null
null
null
import torch from torch import nn from transformers import BertTokenizer, VisualBertModel, VisualBertConfig import numpy as np class VisualBertClassifier(nn.Module): def __init__(self, visual_bert_model, num_classes: int = 8, initial_visual_embedding_dim: int = 9...
46.054054
169
0.667254
403
3,408
5.275434
0.342432
0.073377
0.062088
0.042333
0.208373
0.174036
0.160395
0.146284
0.088429
0.088429
0
0.00872
0.259683
3,408
73
170
46.684932
0.833532
0.15757
0
0.148148
0
0.018519
0.087487
0.046253
0
0
0
0
0
1
0.037037
false
0
0.074074
0
0.148148
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7d0423ade6b86198698a9b5f2ef5a03964e0231
288
py
Python
kobra/settings/development.py
karservice/kobra
2019fd3be499c06d2527e80576fd6ff03d8fe151
[ "MIT" ]
4
2016-08-28T16:00:20.000Z
2018-01-31T18:22:43.000Z
kobra/settings/development.py
karservice/kobra
2019fd3be499c06d2527e80576fd6ff03d8fe151
[ "MIT" ]
25
2016-08-15T20:57:59.000Z
2022-02-10T18:14:48.000Z
kobra/settings/development.py
karservice/kobra
2019fd3be499c06d2527e80576fd6ff03d8fe151
[ "MIT" ]
1
2017-02-06T17:13:16.000Z
2017-02-06T17:13:16.000Z
# -*- coding: utf-8 -*- from . import * SECRET_KEY = env.str('KOBRA_SECRET_KEY', 'Unsafe_development_key._Never_use_in_production.') DEBUG = env.bool('KOBRA_DEBUG_MODE', True) DATABASES = { 'default': env.db_url('KOBRA_DATABASE_URL', 'sqlite:///db.sqlite3') }
24
72
0.652778
37
288
4.702703
0.72973
0.103448
0
0
0
0
0
0
0
0
0
0.008475
0.180556
288
11
73
26.181818
0.728814
0.072917
0
0
0
0
0.471698
0.181132
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7d06f7dd5791848e16c5019b980180600add19a
4,153
py
Python
foobot_grapher.py
jpwright/foobot-slack
ffc1cf8490d08433d76bb62cbf7440c765089784
[ "MIT" ]
1
2018-02-17T14:29:41.000Z
2018-02-17T14:29:41.000Z
foobot_grapher.py
jpwright/foobot-slack
ffc1cf8490d08433d76bb62cbf7440c765089784
[ "MIT" ]
null
null
null
foobot_grapher.py
jpwright/foobot-slack
ffc1cf8490d08433d76bb62cbf7440c765089784
[ "MIT" ]
null
null
null
#!/usr/bin/env python from pyfoobot import Foobot import requests import matplotlib matplotlib.use('Agg') import matplotlib.dates import matplotlib.pyplot import datetime from imgurpython import ImgurClient import ConfigParser def getSensorReadings(notify): config = ConfigParser.ConfigParser() config.read("config....
27.503311
179
0.675415
545
4,153
4.983486
0.317431
0.005891
0.006627
0.005891
0.233432
0.183358
0.173785
0.153166
0.153166
0.153166
0
0.020339
0.147604
4,153
150
180
27.686667
0.746893
0.004816
0
0.163793
0
0
0.207648
0.010165
0.008621
0
0
0
0
1
0.008621
false
0.025862
0.068966
0
0.086207
0.008621
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7d511ad2e6640e470287dff8220becb4fa1880a
1,871
py
Python
src/quality_control/bin/createSpotDetectionQCHTML.py
WoutDavid/ST-nextflow-pipeline
8de3da218ec4f10f183e1163fe782c19fd8dd841
[ "MIT" ]
null
null
null
src/quality_control/bin/createSpotDetectionQCHTML.py
WoutDavid/ST-nextflow-pipeline
8de3da218ec4f10f183e1163fe782c19fd8dd841
[ "MIT" ]
null
null
null
src/quality_control/bin/createSpotDetectionQCHTML.py
WoutDavid/ST-nextflow-pipeline
8de3da218ec4f10f183e1163fe782c19fd8dd841
[ "MIT" ]
null
null
null
import json from bs4 import BeautifulSoup import pandas as pd import sys # Argparsing argument_index = 1 template = sys.argv[argument_index] argument_index +=1 recall_json = sys.argv[argument_index] argument_index +=1 recall_plot = sys.argv[argument_index] argument_index +=1 precision_jsons_list = [sys.argv[i] for ...
27.115942
82
0.772314
294
1,871
4.605442
0.268707
0.076809
0.041359
0.044313
0.298375
0.271787
0.255539
0.17873
0.119645
0.073855
0
0.009058
0.114912
1,871
68
83
27.514706
0.808575
0.060396
0
0.212766
0
0
0.070205
0.02911
0
0
0
0
0
1
0
false
0
0.085106
0
0.085106
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7d8d7b6d6bbc7f8a6c1802ec8a9bedc82cb072a
5,799
py
Python
compyle/tests/test_ext_module.py
manish364824/compyle
cc97dd0a0e7b12f904b3f1c0f20aa06a41779c61
[ "BSD-3-Clause" ]
1
2020-11-23T12:13:04.000Z
2020-11-23T12:13:04.000Z
compyle/tests/test_ext_module.py
manish364824/compyle
cc97dd0a0e7b12f904b3f1c0f20aa06a41779c61
[ "BSD-3-Clause" ]
null
null
null
compyle/tests/test_ext_module.py
manish364824/compyle
cc97dd0a0e7b12f904b3f1c0f20aa06a41779c61
[ "BSD-3-Clause" ]
null
null
null
from contextlib import contextmanager from distutils.sysconfig import get_config_var from io import open as io_open import os from os.path import join, exists import shutil import sys import tempfile from textwrap import dedent from multiprocessing import Pool from unittest import TestCase, main try: from unittest...
29.436548
76
0.607174
761
5,799
4.442838
0.261498
0.035492
0.033126
0.011535
0.346051
0.303461
0.247856
0.228335
0.192842
0.192842
0
0.004622
0.291085
5,799
196
77
29.586735
0.817806
0.135886
0
0.343511
0
0
0.060113
0.009449
0
0
0
0
0.167939
1
0.10687
false
0.007634
0.122137
0
0.282443
0.015267
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7db3778ef11768f9b2aff72c3bc714173c0ef05
5,286
py
Python
tma/collector/xhn.py
hebpmo/TMA
b07747d3112e822ff92dd2ba4589d2288adab154
[ "MIT" ]
2
2020-02-15T18:31:39.000Z
2020-03-18T13:30:58.000Z
tma/collector/xhn.py
hebpmo/TMA
b07747d3112e822ff92dd2ba4589d2288adab154
[ "MIT" ]
null
null
null
tma/collector/xhn.py
hebpmo/TMA
b07747d3112e822ff92dd2ba4589d2288adab154
[ "MIT" ]
1
2021-02-13T19:14:39.000Z
2021-02-13T19:14:39.000Z
# -*- coding: UTF-8 -*- """ collector.xhn - 新华网数据采集 官网:http://www.xinhuanet.com/ 接口分析: 1. 获取文章列表 http://qc.wa.news.cn/nodeart/list?nid=115093&pgnum=1&cnt=10000 新华全媒体头条 http://www.xinhuanet.com/politics/qmtt/index.htm ==================================================================== """ import requests import re...
28.26738
81
0.531782
651
5,286
4.199693
0.293395
0.048281
0.058522
0.069495
0.259327
0.190198
0.171178
0.147037
0.147037
0.147037
0
0.023294
0.301551
5,286
186
82
28.419355
0.717226
0.139236
0
0.127119
0
0
0.143598
0.011046
0
0
0
0
0.008475
1
0.067797
false
0
0.076271
0
0.211864
0.016949
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7dbb6eabf0492827bece2fbca9d7d345965609a
995
py
Python
tests/test_onetv.py
unlocKing/plugins
e5cee730c22a049cfd0e3873389c82e8ab5f7c41
[ "BSD-2-Clause" ]
2
2021-09-02T21:29:48.000Z
2021-09-20T07:05:08.000Z
tests/test_onetv.py
unlocKing/plugins
e5cee730c22a049cfd0e3873389c82e8ab5f7c41
[ "BSD-2-Clause" ]
null
null
null
tests/test_onetv.py
unlocKing/plugins
e5cee730c22a049cfd0e3873389c82e8ab5f7c41
[ "BSD-2-Clause" ]
null
null
null
import unittest from plugins.onetv import OneTV class TestPluginPerviyKanal(unittest.TestCase): def test_can_handle_url(self): regex_test_list = [ "https://media.1tv.ru/embed/ctcmedia/ctc-che.html?start=auto", "https://media.1tv.ru/embed/ctcmedia/ctc-dom.html?start=auto", ...
36.851852
75
0.577889
130
995
4.353846
0.346154
0.070671
0.114841
0.132509
0.376325
0.316254
0.316254
0.261484
0.155477
0.155477
0
0.013333
0.246231
995
26
76
38.269231
0.741333
0
0
0
0
0.136364
0.509548
0
0
0
0
0
0.045455
1
0.045455
false
0
0.090909
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7de06300594a810a1f4175db45d6b833ced1a94
7,940
py
Python
src/compas/geometry/pointclouds/pointcloud.py
Sam-Bouten/compas
011c7779ded9b69bb602568b470bb0443e336f62
[ "MIT" ]
null
null
null
src/compas/geometry/pointclouds/pointcloud.py
Sam-Bouten/compas
011c7779ded9b69bb602568b470bb0443e336f62
[ "MIT" ]
null
null
null
src/compas/geometry/pointclouds/pointcloud.py
Sam-Bouten/compas
011c7779ded9b69bb602568b470bb0443e336f62
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division from random import uniform from compas.geometry import transform_points from compas.geometry import centroid_points from compas.geometry import bounding_box from compas.geometry import Primitive from compas.geo...
27.957746
114
0.500756
893
7,940
4.370661
0.194849
0.048681
0.043812
0.036895
0.3505
0.310018
0.310018
0.26185
0.243403
0.20164
0
0.007931
0.317128
7,940
283
115
28.056537
0.711914
0.422544
0
0.295652
0
0
0.015931
0
0
0
0
0
0
1
0.182609
false
0.017391
0.095652
0.078261
0.417391
0.008696
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7de36b7d46515af7a1b6676baaac3b4ccaf3705
4,366
py
Python
oa/regex.py
Worteks/OrangeAssassin
21baf0b84fbedd887f6d88e13c624f14fb0b5e06
[ "Apache-2.0" ]
null
null
null
oa/regex.py
Worteks/OrangeAssassin
21baf0b84fbedd887f6d88e13c624f14fb0b5e06
[ "Apache-2.0" ]
null
null
null
oa/regex.py
Worteks/OrangeAssassin
21baf0b84fbedd887f6d88e13c624f14fb0b5e06
[ "Apache-2.0" ]
null
null
null
"""Handle regex conversions.""" from builtins import object import re import operator from functools import reduce import oa.errors # Map of perl flags and the corresponding re ones. FLAGS = { "i": re.IGNORECASE, "s": re.DOTALL, "m": re.MULTILINE, "x": re.VERBOSE, } DELIMS = { "/": "/", "{"...
28.535948
81
0.574668
518
4,366
4.795367
0.310811
0.036232
0.05475
0.040258
0.285024
0.230676
0.170692
0.140097
0.140097
0.111111
0
0.005773
0.285845
4,366
152
82
28.723684
0.790892
0.097572
0
0.122642
0
0
0.242385
0.00947
0
0
0
0
0
1
0.141509
false
0
0.056604
0.09434
0.367925
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7dec0cd3c585519d06741f3516a5564ea368e83
1,749
py
Python
test_data/barometer_kalman.py
theo-brown/ahrs
cd9c9e0bbf9db7fd67a297e1aafa8518bf17050d
[ "MIT" ]
1
2022-01-19T14:20:05.000Z
2022-01-19T14:20:05.000Z
test_data/barometer_kalman.py
theo-brown/ahrs
cd9c9e0bbf9db7fd67a297e1aafa8518bf17050d
[ "MIT" ]
null
null
null
test_data/barometer_kalman.py
theo-brown/ahrs
cd9c9e0bbf9db7fd67a297e1aafa8518bf17050d
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from matplotlib.widgets import Slider from kalman_filter import KalmanFilter raw_data = np.loadtxt("barometer_data.txt") # Truncate raw data (it's super long) raw_data = raw_data[:raw_data.size//4] raw_data_step = np.loadtxt("barometer_data_step.txt") t1 = np.arange(0...
31.232143
95
0.704974
340
1,749
3.358824
0.244118
0.110333
0.057793
0.059545
0.371278
0.218914
0.108581
0.108581
0
0
0
0.066845
0.144654
1,749
55
96
31.8
0.696524
0.020011
0
0
0
0
0.027453
0.013435
0
0
0
0
0
1
0.05
false
0
0.1
0
0.175
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7df479cf0eb03f9edb6d36fe5773b716ab0594f
1,694
py
Python
number-of-orders-in-the-backlog/number_of_orders_in_the_backlog.py
joaojunior/hackerrank
a5ee0449e791535930b8659dfb7dddcf9e1237de
[ "MIT" ]
null
null
null
number-of-orders-in-the-backlog/number_of_orders_in_the_backlog.py
joaojunior/hackerrank
a5ee0449e791535930b8659dfb7dddcf9e1237de
[ "MIT" ]
null
null
null
number-of-orders-in-the-backlog/number_of_orders_in_the_backlog.py
joaojunior/hackerrank
a5ee0449e791535930b8659dfb7dddcf9e1237de
[ "MIT" ]
1
2019-06-19T00:51:02.000Z
2019-06-19T00:51:02.000Z
import heapq from typing import List class Solution: def get_number_of_backlog_orders(self, orders: List[List[int]]) -> int: sell_backlog = [] buy_backlog = [] for price, amount, order_type in orders: if order_type == 0: while amount > 0: if ...
40.333333
78
0.432113
153
1,694
4.562092
0.228758
0.137536
0.074499
0.073066
0.154728
0.083095
0
0
0
0
0
0.018868
0.49941
1,694
41
79
41.317073
0.804245
0
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.025641
false
0
0.051282
0
0.128205
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7df8183ed1dfeac2b83cb6b6b173f961a29bd8f
2,585
py
Python
scripts/plotresults.py
rafzi/DeepThings
d12e8e8ad9f9ebaa3b0d55f547c0b3c7f1baf636
[ "MIT" ]
1
2020-02-28T10:07:47.000Z
2020-02-28T10:07:47.000Z
scripts/plotresults.py
rafzi/DeepThings
d12e8e8ad9f9ebaa3b0d55f547c0b3c7f1baf636
[ "MIT" ]
null
null
null
scripts/plotresults.py
rafzi/DeepThings
d12e8e8ad9f9ebaa3b0d55f547c0b3c7f1baf636
[ "MIT" ]
2
2020-03-10T15:17:55.000Z
2020-03-17T15:37:37.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt # 1: YOLOv2, 2: AlexNet, 3: VGG-16, 4: GoogLeNet model = 4 LINEPLOT = True dfs = pd.read_excel("t.xlsx", sheet_name=None, header=None) if model == 1: ms = "YOLOv2" elif model == 2: ms = "AlexNet" elif model == 3: ms = "VGG-16" elif model == ...
26.927083
82
0.573308
417
2,585
3.527578
0.405276
0.028552
0.03739
0.024473
0
0
0
0
0
0
0
0.056107
0.22089
2,585
95
83
27.210526
0.67428
0.147002
0
0
0
0
0.099042
0
0
0
0
0
0
1
0.04
false
0
0.04
0
0.093333
0.013333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7e2347893dbbd12b3c90e6ec6f949cb83aa2a4f
1,110
py
Python
val_resnet.py
AlexKhakhlyuk/fixedconv
bf3848c3fd60af2e617f2118064ee6f551b45d95
[ "Apache-1.1" ]
1
2020-05-05T07:20:25.000Z
2020-05-05T07:20:25.000Z
val_resnet.py
khakhlyuk/fixedconv
bf3848c3fd60af2e617f2118064ee6f551b45d95
[ "Apache-1.1" ]
null
null
null
val_resnet.py
khakhlyuk/fixedconv
bf3848c3fd60af2e617f2118064ee6f551b45d95
[ "Apache-1.1" ]
null
null
null
from subprocess import run # python -u val_resnet.py cuda = 0 # which gpu to use dataset = 'cifar10' logs_path = 'logs_resnet' + '_' + dataset manualSeed = 99 workers = 0 for model in ['resnet20', 'preact_resnet20']: commands = [ 'python', '-u', 'validate_resnet.py', '--dataset=' + dataset, ...
27.75
53
0.473874
113
1,110
4.548673
0.353982
0.077821
0.070039
0.070039
0.587549
0.587549
0.463035
0.463035
0.463035
0.463035
0
0.022315
0.354054
1,110
39
54
28.461538
0.694561
0.036036
0
0.588235
0
0
0.223055
0
0.029412
0
0
0
0
1
0
false
0
0.029412
0
0.029412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7e673c1a03cc4b207464e8a0e2d7bce749cb8ba
7,401
py
Python
stanCode_projects/my_drawing/my_drawing.py
kenhuang1204/stanCode_projects
f697a34a1c54a864c1140cb0f2f76e2d70b45698
[ "MIT" ]
null
null
null
stanCode_projects/my_drawing/my_drawing.py
kenhuang1204/stanCode_projects
f697a34a1c54a864c1140cb0f2f76e2d70b45698
[ "MIT" ]
null
null
null
stanCode_projects/my_drawing/my_drawing.py
kenhuang1204/stanCode_projects
f697a34a1c54a864c1140cb0f2f76e2d70b45698
[ "MIT" ]
null
null
null
""" File: my_drawing.py Name: 黃科諺 ---------------------- TODO: """ from campy.graphics.gobjects import GOval, GRect, GLine, GLabel, GPolygon, GArc from campy.graphics.gwindow import GWindow def main(): """ Meet Snorlax (卡比獸) of stanCode! He dreams of Python when he sleeps. Be like Snorlax. """ window...
28.910156
88
0.638427
1,167
7,401
3.799486
0.159383
0.127876
0.040595
0.077131
0.36581
0.206585
0.154263
0.154263
0.12359
0.12359
0
0.114994
0.215106
7,401
255
89
29.023529
0.648304
0.019322
0
0.137339
0
0
0.054596
0
0
0
0
0.003922
0
1
0.004292
false
0
0.008584
0
0.012876
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7e7736eb2b76396a07e8f09a10926efaa231ede
748
py
Python
kivy/core/clipboard/clipboard_xsel.py
CharaD7/kivy
85065fe6633f5ac831c193dc84e3f636b789cc3a
[ "MIT" ]
2
2021-05-16T09:46:14.000Z
2021-11-17T11:23:15.000Z
kivy/core/clipboard/clipboard_xsel.py
CharaD7/kivy
85065fe6633f5ac831c193dc84e3f636b789cc3a
[ "MIT" ]
1
2016-11-11T13:45:42.000Z
2016-11-11T13:45:42.000Z
kivy/core/clipboard/clipboard_xsel.py
CharaD7/kivy
85065fe6633f5ac831c193dc84e3f636b789cc3a
[ "MIT" ]
2
2017-03-09T14:27:03.000Z
2019-05-03T08:36:02.000Z
''' Clipboard xsel: an implementation of the Clipboard using xsel command line tool. ''' __all__ = ('ClipboardXsel', ) from kivy.utils import platform from kivy.core.clipboard._clipboard_ext import ClipboardExternalBase if platform != 'linux': raise SystemError('unsupported platform for xsel clipboard') try: ...
24.933333
80
0.67246
82
748
6.04878
0.573171
0.032258
0.076613
0
0
0
0
0
0
0
0
0.00339
0.21123
748
29
81
25.793103
0.837288
0.106952
0
0
0
0
0.119879
0
0
0
0
0
0
1
0.052632
false
0
0.157895
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
f7ea6e1ab40e2fa5eea55fc79f11b658b6c35f7e
44,837
py
Python
forager_server/forager_server_api/views.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
1
2020-12-01T23:25:58.000Z
2020-12-01T23:25:58.000Z
forager_server/forager_server_api/views.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
2
2020-10-07T01:03:06.000Z
2020-10-12T19:08:55.000Z
forager_server/forager_server_api/views.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
null
null
null
from collections import defaultdict, namedtuple from dataclasses import dataclass import distutils.util import functools import itertools import json import math import operator import os import random import uuid import shutil import logging import time from typing import List, Dict, NamedTuple, Optional from django...
31.072072
89
0.657872
5,737
44,837
4.819941
0.078787
0.031029
0.024302
0.015984
0.587082
0.544554
0.504991
0.453313
0.394149
0.341277
0
0.007689
0.234249
44,837
1,442
90
31.09362
0.797693
0.058144
0
0.364421
0
0.000864
0.088224
0.005409
0
0
0
0.001387
0.001727
1
0.041451
false
0
0.021589
0.001727
0.113126
0.001727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7eab2118d85cfe10c666d128c82a3c415e87f34
2,632
py
Python
ccmlib/cluster_factory.py
justinchuch/ccm
808b6ca13526785b0fddfe1ead2383c060c4b8b6
[ "Apache-2.0" ]
626
2015-01-01T18:11:03.000Z
2017-12-19T00:06:49.000Z
ccmlib/cluster_factory.py
justinchuch/ccm
808b6ca13526785b0fddfe1ead2383c060c4b8b6
[ "Apache-2.0" ]
358
2015-01-21T17:06:45.000Z
2017-12-20T16:03:01.000Z
ccmlib/cluster_factory.py
justinchuch/ccm
808b6ca13526785b0fddfe1ead2383c060c4b8b6
[ "Apache-2.0" ]
172
2015-01-02T21:40:45.000Z
2017-12-19T20:17:49.000Z
from __future__ import absolute_import import os import yaml from ccmlib import common, extension, repository from ccmlib.cluster import Cluster from ccmlib.dse_cluster import DseCluster from ccmlib.node import Node from distutils.version import LooseVersion #pylint: disable=import-error, no-name-in-module class...
39.878788
150
0.628799
304
2,632
5.197368
0.266447
0.082278
0.057595
0.036076
0.232911
0.144304
0.11519
0.11519
0.11519
0.11519
0
0
0.286854
2,632
65
151
40.492308
0.841769
0.017857
0
0.037037
0
0
0.125436
0
0
0
0
0
0
1
0.018519
false
0
0.148148
0
0.203704
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7eb16ad3bcd19920bd13a45530065dd321f93c0
9,872
py
Python
causalnex/structure/pytorch/dist_type/_base.py
Rishab26/causalnex
127d9324a3d68c1795299c7522f22cdea880f344
[ "Apache-2.0" ]
1,523
2020-01-28T12:37:48.000Z
2022-03-31T09:27:58.000Z
causalnex/structure/pytorch/dist_type/_base.py
Rishab26/causalnex
127d9324a3d68c1795299c7522f22cdea880f344
[ "Apache-2.0" ]
124
2020-01-28T15:12:07.000Z
2022-03-31T18:59:16.000Z
causalnex/structure/pytorch/dist_type/_base.py
Rishab26/causalnex
127d9324a3d68c1795299c7522f22cdea880f344
[ "Apache-2.0" ]
169
2020-01-28T15:13:53.000Z
2022-03-30T21:04:02.000Z
# Copyright 2019-2020 QuantumBlack Visual Analytics Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # THE SOFTWARE IS PROVIDED "AS IS"...
31.742765
105
0.630976
1,249
9,872
4.890312
0.26261
0.03831
0.014735
0.018664
0.221676
0.155697
0.100196
0.082842
0.070072
0.070072
0
0.003919
0.302168
9,872
310
106
31.845161
0.882712
0.574453
0
0.202703
0
0
0.028418
0.007262
0
0
0
0
0
1
0.189189
false
0
0.094595
0
0.472973
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7ecb294c442659591e90f954f3dc3437349ef17
4,992
py
Python
tensorflow/python/tpu/tpu_outside_compilation_test.py
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
78
2020-08-04T12:36:25.000Z
2022-03-25T04:23:40.000Z
tensorflow/python/tpu/tpu_outside_compilation_test.py
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
2
2021-11-10T20:08:14.000Z
2022-02-10T02:44:26.000Z
tensorflow/python/tpu/tpu_outside_compilation_test.py
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
25
2020-08-31T12:21:19.000Z
2022-03-20T05:16:32.000Z
# Copyright 2020 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...
29.192982
80
0.698317
659
4,992
5.07739
0.241275
0.046025
0.06575
0.026898
0.48685
0.426479
0.388822
0.367603
0.296175
0.296175
0
0.021314
0.191707
4,992
170
81
29.364706
0.807931
0.139423
0
0.421053
0
0
0.039046
0
0
0
0
0
0.052632
1
0.192982
false
0
0.122807
0
0.45614
0.04386
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7eccedc6580e295788f95c53fa5d25556b9e059
1,338
py
Python
Source/Oyooni/Text Recognition/server.py
Oyooni5245/Oyooni
a00b845ac97eaee74d40cab563b9532fdeca97c8
[ "MIT" ]
null
null
null
Source/Oyooni/Text Recognition/server.py
Oyooni5245/Oyooni
a00b845ac97eaee74d40cab563b9532fdeca97c8
[ "MIT" ]
null
null
null
Source/Oyooni/Text Recognition/server.py
Oyooni5245/Oyooni
a00b845ac97eaee74d40cab563b9532fdeca97c8
[ "MIT" ]
null
null
null
from flask import Flask, request from flask_restful import Resource, Api from test import get_models, getTextFromImage from testDocument import getText from time import time app = Flask(__name__) api = Api(app) net, refine_net = get_models() class TextRecognizerService(Resource): def post(self): try: ...
26.76
73
0.523916
125
1,338
5.4
0.456
0.04
0.035556
0
0
0
0
0
0
0
0
0.015892
0.38864
1,338
49
74
27.306122
0.809291
0
0
0.128205
0
0
0.085949
0
0
0
0
0
0
1
0.025641
false
0
0.128205
0
0.25641
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7ee1b4e15755381cc1c76d8d915f30011f727a3
17,132
py
Python
varats/varats/plots/blame_interaction_graph_plots.py
Kaufi-Jonas/VaRA-Tool-Suite
31563896ad7dd1c1a147202b0c5c9fffe772b803
[ "BSD-2-Clause" ]
null
null
null
varats/varats/plots/blame_interaction_graph_plots.py
Kaufi-Jonas/VaRA-Tool-Suite
31563896ad7dd1c1a147202b0c5c9fffe772b803
[ "BSD-2-Clause" ]
null
null
null
varats/varats/plots/blame_interaction_graph_plots.py
Kaufi-Jonas/VaRA-Tool-Suite
31563896ad7dd1c1a147202b0c5c9fffe772b803
[ "BSD-2-Clause" ]
null
null
null
"""Module for BlameInteractionGraph plots.""" import typing as tp from datetime import datetime from pathlib import Path import click import matplotlib.pyplot as plt import networkx as nx import pandas as pd import plotly.offline as offply from matplotlib import style from varats.data.reports.blame_interaction_graph...
33.330739
80
0.627714
1,890
17,132
5.445503
0.125397
0.046638
0.021764
0.017489
0.613389
0.583269
0.529732
0.473572
0.449281
0.44588
0
0.001679
0.269788
17,132
513
81
33.395712
0.821023
0.049323
0
0.473552
0
0
0.090241
0.009135
0
0
0
0
0
1
0.06801
false
0.002519
0.047859
0.025189
0.188917
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7ef21c429f9bf83356bf40d0aaa0462acb403b0
2,632
py
Python
Day 7/Day 7.py
Dullstar/Advent-Of-Code-2020
7d3a64906ced2ac98bcfe67a9f3294c8756dc493
[ "MIT" ]
null
null
null
Day 7/Day 7.py
Dullstar/Advent-Of-Code-2020
7d3a64906ced2ac98bcfe67a9f3294c8756dc493
[ "MIT" ]
null
null
null
Day 7/Day 7.py
Dullstar/Advent-Of-Code-2020
7d3a64906ced2ac98bcfe67a9f3294c8756dc493
[ "MIT" ]
null
null
null
import re class Rule: def __init__(self, line): line = line.strip().split(" contain ") line[1] = line[1].strip(".").split(", ") self.contents = {} for item in line[1]: # Grab that number out in front regex = re.compile(r"[0-9]+") # If we didn't f...
33.74359
106
0.56383
348
2,632
4.100575
0.295977
0.06377
0.033637
0.042046
0.067274
0.039243
0
0
0
0
0
0.009654
0.330927
2,632
77
107
34.181818
0.800681
0.120441
0
0.109091
0
0
0.138829
0.016052
0
0
0
0
0
1
0.109091
false
0
0.018182
0.018182
0.254545
0.109091
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7f1da41a1909260bbd83fee7efec53538a5f960
775
py
Python
var/spack/repos/builtin/packages/memaxes/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/memaxes/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/memaxes/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Memaxes(Package): """MemAxes is a visualizer for sampled memory trace data.""" homepa...
31
93
0.672258
97
775
5.319588
0.773196
0.042636
0.054264
0.069767
0.096899
0
0
0
0
0
0
0.108626
0.192258
775
24
94
32.291667
0.715655
0.314839
0
0
0
0
0.3659
0.122605
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7f6435a685ce7599500c328cd1e055481aa5830
5,353
py
Python
ddpm_proteins/utils.py
lucidrains/ddpm-proteins
88bfacbd3cbdc4e38585fab420106f56e890c5f7
[ "MIT" ]
61
2021-06-14T16:41:54.000Z
2022-03-23T14:09:46.000Z
ddpm_proteins/utils.py
lucidrains/ddpm-proteins
88bfacbd3cbdc4e38585fab420106f56e890c5f7
[ "MIT" ]
null
null
null
ddpm_proteins/utils.py
lucidrains/ddpm-proteins
88bfacbd3cbdc4e38585fab420106f56e890c5f7
[ "MIT" ]
5
2021-06-15T11:51:47.000Z
2022-03-18T08:01:48.000Z
import os from PIL import Image import seaborn as sn import matplotlib.pyplot as plt import torch import torch.nn.functional as F from sidechainnet.utils.sequence import ProteinVocabulary from einops import rearrange # general functions def exists(val): return val is not None def default(val, d): return va...
29.092391
134
0.655707
778
5,353
4.341902
0.268638
0.01865
0.020722
0.016578
0.157194
0.12907
0.124334
0.096507
0.069864
0.069864
0
0.013018
0.225107
5,353
183
135
29.251366
0.80135
0.027088
0
0.15942
0
0
0.07401
0.008651
0
0
0
0
0.028986
1
0.094203
false
0
0.057971
0.021739
0.26087
0.007246
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7f93aac7b9d793ef23c38a97b1f3ca8216eaa8d
24,348
py
Python
samples/python/efficientdet/create_onnx.py
L-Net-1992/TensorRT
34b664d404001bd724cb56b52a6e0e05e1fd97f2
[ "Apache-2.0" ]
null
null
null
samples/python/efficientdet/create_onnx.py
L-Net-1992/TensorRT
34b664d404001bd724cb56b52a6e0e05e1fd97f2
[ "Apache-2.0" ]
null
null
null
samples/python/efficientdet/create_onnx.py
L-Net-1992/TensorRT
34b664d404001bd724cb56b52a6e0e05e1fd97f2
[ "Apache-2.0" ]
null
null
null
# # SPDX-FileCopyrightText: Copyright (c) 1993-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # # 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...
53.986696
122
0.619065
3,265
24,348
4.499847
0.169372
0.024503
0.015042
0.008848
0.187313
0.148788
0.111966
0.094473
0.090934
0.079363
0
0.01846
0.283596
24,348
450
123
54.106667
0.823826
0.290989
0
0.131944
0
0
0.138373
0.011979
0
0
0
0
0.038194
1
0.038194
false
0
0.048611
0
0.100694
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7f9d815fd74248ee87d991bd107aab15b47f8cc
618
py
Python
easy/867-transpose-matrix.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
2
2021-03-14T11:38:26.000Z
2021-03-14T11:38:30.000Z
easy/867-transpose-matrix.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
null
null
null
easy/867-transpose-matrix.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
1
2022-01-17T19:33:23.000Z
2022-01-17T19:33:23.000Z
''' 转置矩阵 给你一个二维整数数组 matrix, 返回 matrix 的 转置矩阵 。 矩阵的 转置 是指将矩阵的主对角线翻转,交换矩阵的行索引与列索引。 ''' from typing import List ''' 思路:简单问题,原矩阵大小为m*n,创建一个n*m大小的新矩阵,按照行列转化的方式将旧矩阵数据复制过去 ''' class Solution: def transpose(self, matrix: List[List[int]]) -> List[List[int]]: m = len(matrix) n = len(matrix[0]) ne...
20.6
68
0.548544
88
618
3.852273
0.534091
0.047198
0.064897
0.094395
0.123894
0.123894
0.123894
0.123894
0.123894
0
0
0.037611
0.268608
618
29
69
21.310345
0.712389
0.126214
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.285714
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7fa229686aa6986aa8b8f8a1dc2ccded74af095
5,940
py
Python
adam_visual_perception/head_gaze_estimator.py
isi-vista/adam-visual-perception
8ad6ed883b184b5407a1bf793617b226c78b3a13
[ "MIT" ]
1
2020-07-21T10:52:26.000Z
2020-07-21T10:52:26.000Z
adam_visual_perception/head_gaze_estimator.py
isi-vista/adam-visual-perception
8ad6ed883b184b5407a1bf793617b226c78b3a13
[ "MIT" ]
null
null
null
adam_visual_perception/head_gaze_estimator.py
isi-vista/adam-visual-perception
8ad6ed883b184b5407a1bf793617b226c78b3a13
[ "MIT" ]
2
2020-07-21T15:30:42.000Z
2021-01-20T21:54:09.000Z
from adam_visual_perception import LandmarkDetector from adam_visual_perception.utility import * import numpy as np import math import cv2 import os import sys class HeadGazeEstimator: """ A class for estimating gaze ray from facial landmarks """ def __init__(self, write_video=False): # 3D model poin...
35.783133
87
0.458754
673
5,940
3.912333
0.282318
0.013673
0.007976
0.047854
0.126092
0.071401
0.01899
0.01899
0.01899
0.01899
0
0.060724
0.437205
5,940
165
88
36
0.726892
0.109596
0
0.113043
0
0
0.008824
0
0
0
0.000784
0
0
1
0.017391
false
0
0.06087
0
0.095652
0.008696
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7fa5e91400000b4953ab8022408df2a80e3be82
3,388
py
Python
pypoca/cogs/general.py
leandcesar/PyPoca
416f690faad0b511ca9d04b012af35256ee95089
[ "MIT" ]
1
2021-11-22T04:22:08.000Z
2021-11-22T04:22:08.000Z
pypoca/cogs/general.py
leandcesar/PyPoca
416f690faad0b511ca9d04b012af35256ee95089
[ "MIT" ]
null
null
null
pypoca/cogs/general.py
leandcesar/PyPoca
416f690faad0b511ca9d04b012af35256ee95089
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import disnake from disnake.ext import commands from pypoca.config import COLOR, URLS from pypoca.database import Server from pypoca.ext import ALL, DEFAULT, Choice, Option class General(commands.Cog): def __init__(self, bot: commands.Bot): self.bot = bot @commands.slash_comm...
47.055556
113
0.626328
377
3,388
5.395225
0.236074
0.153392
0.061947
0.033432
0.476401
0.409538
0.25762
0.142576
0.142576
0.142576
0
0.010189
0.217828
3,388
71
114
47.71831
0.757358
0.006198
0
0.101695
0
0
0.506092
0.242793
0
0
0
0
0
1
0.033898
false
0
0.084746
0
0.135593
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7fab2882ba44013b1ca7273273e6b041c1e46c3
1,301
py
Python
costor_server/storage/api/views/authcheck.py
rphi/costor
081de65778d404cf7a22c5524bf89a146fa8326b
[ "CNRI-Python" ]
2
2019-12-31T16:49:36.000Z
2021-02-17T09:47:41.000Z
costor_server/storage/api/views/authcheck.py
rphi/costor
081de65778d404cf7a22c5524bf89a146fa8326b
[ "CNRI-Python" ]
null
null
null
costor_server/storage/api/views/authcheck.py
rphi/costor
081de65778d404cf7a22c5524bf89a146fa8326b
[ "CNRI-Python" ]
null
null
null
from rest_framework.decorators import api_view, permission_classes from rest_framework.parsers import MultiPartParser from rest_framework.response import Response from rest_framework import permissions from rest_framework.exceptions import APIException from rest_framework.decorators import parser_classes from django.sh...
30.97619
117
0.704074
164
1,301
5.487805
0.390244
0.053333
0.113333
0.076667
0.221111
0.147778
0.108889
0.108889
0
0
0
0.011673
0.209839
1,301
41
118
31.731707
0.863813
0.013836
0
0.16129
0
0
0.178627
0.053822
0
0
0
0
0
1
0.032258
false
0
0.258065
0
0.354839
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7facb852a3db388a7c69659114114ea83276164
12,295
py
Python
tensorflow_probability/python/experimental/mcmc/sample_fold.py
rupei/probability
4aa1ee652853a19c4e80d39216c3fa535ed3e589
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/experimental/mcmc/sample_fold.py
rupei/probability
4aa1ee652853a19c4e80d39216c3fa535ed3e589
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/experimental/mcmc/sample_fold.py
rupei/probability
4aa1ee652853a19c4e80d39216c3fa535ed3e589
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The TensorFlow Probability 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 law o...
43.140351
85
0.727938
1,678
12,295
5.162098
0.234803
0.051027
0.031171
0.025398
0.349688
0.32048
0.309166
0.272454
0.236435
0.214846
0
0.003779
0.203579
12,295
284
86
43.292254
0.880821
0.617405
0
0.282258
0
0
0.086536
0.006743
0
0
0
0
0
1
0.032258
false
0
0.08871
0.008065
0.169355
0.008065
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7facc8714f2358ff5e4f5bf725d3516243bec69
10,025
py
Python
algos/custom_ppo2.py
Ottawa-Autonomous-Vehicle-Group/learning-to-drive-in-5-minutes
fb82bc77593605711289e03f95dcfb6d3ea9e6c3
[ "MIT" ]
1
2020-08-02T20:47:44.000Z
2020-08-02T20:47:44.000Z
algos/custom_ppo2.py
vijpandaturtle/learning-to-drive-in-5-minutes
fb82bc77593605711289e03f95dcfb6d3ea9e6c3
[ "MIT" ]
null
null
null
algos/custom_ppo2.py
vijpandaturtle/learning-to-drive-in-5-minutes
fb82bc77593605711289e03f95dcfb6d3ea9e6c3
[ "MIT" ]
null
null
null
import time from collections import deque import gym import numpy as np from stable_baselines import logger, PPO2 from stable_baselines.a2c.utils import total_episode_reward_logger from stable_baselines.common import explained_variance, TensorboardWriter from stable_baselines.common.runners import AbstractEnvRunner fr...
52.213542
121
0.572569
1,195
10,025
4.57908
0.207531
0.025585
0.018275
0.011879
0.175256
0.149123
0.110015
0.09576
0.09576
0.08443
0
0.006072
0.342843
10,025
191
122
52.486911
0.824529
0.160599
0
0.052632
0
0
0.014722
0
0
0
0
0
0.015038
1
0.022556
false
0
0.067669
0
0.120301
0.007519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7fafc3eca2a0d5f684ce78dbf8d565f8e0da8a0
787
py
Python
craw/modules/trail/trails/feeds/urlvir.py
xuluhang/DomainBlockList
e9e69138ffdba6a73741fe204306f1f0b66eff19
[ "MIT" ]
19
2019-11-25T09:02:15.000Z
2021-07-24T12:05:28.000Z
craw/modules/trail/trails/feeds/urlvir.py
xuluhang/DomainBlockList
e9e69138ffdba6a73741fe204306f1f0b66eff19
[ "MIT" ]
1
2019-11-25T09:06:08.000Z
2019-11-25T09:06:08.000Z
craw/modules/trail/trails/feeds/urlvir.py
xuluhang/DomainBlockList
e9e69138ffdba6a73741fe204306f1f0b66eff19
[ "MIT" ]
10
2019-11-26T02:42:02.000Z
2021-08-28T07:16:08.000Z
#!/usr/bin/env python2 """ Copyright (c) 2014-2019 Maltrail developers (https://github.com/stamparm/maltrail/) See the file 'LICENSE' for copying permission """ from craw.modules.trail.plugins.util import wget_content __url__ = "http://www.urlvir.com/export-hosts/" __check__ = "Updated on" __info__ = "malware" __ref...
23.848485
83
0.66709
95
787
5.010526
0.631579
0.046218
0.058824
0
0
0
0
0
0
0
0
0.014493
0.210928
787
32
84
24.59375
0.752013
0.191868
0
0
0
0
0.11465
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7fbd980831ccec066261d37e528035e5f2d7c7a
12,278
py
Python
open-hackathon-client/src/client/config_sample.py
overbest/open-hackathon
62e085fbe603bcb00ca56d2b96cfc43bf44c710b
[ "MIT" ]
null
null
null
open-hackathon-client/src/client/config_sample.py
overbest/open-hackathon
62e085fbe603bcb00ca56d2b96cfc43bf44c710b
[ "MIT" ]
null
null
null
open-hackathon-client/src/client/config_sample.py
overbest/open-hackathon
62e085fbe603bcb00ca56d2b96cfc43bf44c710b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # ----------------------------------------------------------------------------------- # Copyright (c) Microsoft Open Technologies (Shanghai) Co. Ltd. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this softw...
42.93007
174
0.476136
1,080
12,278
5.225926
0.246296
0.046775
0.023388
0.019844
0.232814
0.142275
0.086995
0.019844
0.012048
0
0
0.037056
0.369197
12,278
285
175
43.080702
0.691672
0.175354
0
0.300847
0
0.050847
0.36993
0.040067
0
0
0
0.003509
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7fbf451f7ab0b316753c8ad61a542b73cbff82d
14,904
py
Python
processing_provider/Rast_fillRasterwithPatches.py
geodourados/lftools
4b9d703513bd3d49ac7952014575bf95492a2d90
[ "MIT" ]
1
2022-03-28T22:18:09.000Z
2022-03-28T22:18:09.000Z
processing_provider/Rast_fillRasterwithPatches.py
geodourados/lftools
4b9d703513bd3d49ac7952014575bf95492a2d90
[ "MIT" ]
null
null
null
processing_provider/Rast_fillRasterwithPatches.py
geodourados/lftools
4b9d703513bd3d49ac7952014575bf95492a2d90
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ fillRasterwithPatches.py *************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Gene...
41.51532
135
0.541063
1,443
14,904
5.479556
0.265419
0.021247
0.035412
0.038953
0.311243
0.29164
0.236626
0.225496
0.205514
0.192108
0
0.013003
0.349839
14,904
358
136
41.631285
0.802993
0.085011
0
0.27551
0
0
0.121774
0.00728
0
0
0
0
0
1
0.044218
false
0
0.030612
0.027211
0.163265
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7fdd8880ea99f126ba61a61e3b34ab49ba52b93
1,549
py
Python
runtests.py
ombu/django-sortedm2m
2691cf00174577bc667d5d8c1d42071604ee2095
[ "BSD-3-Clause" ]
null
null
null
runtests.py
ombu/django-sortedm2m
2691cf00174577bc667d5d8c1d42071604ee2095
[ "BSD-3-Clause" ]
null
null
null
runtests.py
ombu/django-sortedm2m
2691cf00174577bc667d5d8c1d42071604ee2095
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import os, sys, warnings parent = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, parent) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project.settings") import django from django.core.management import exe...
28.163636
88
0.654616
184
1,549
5.233696
0.494565
0.049844
0.062305
0.049844
0.060228
0
0
0
0
0
0
0.017573
0.228535
1,549
54
89
28.685185
0.788285
0.118141
0
0.166667
0
0
0.162381
0.031594
0
0
0
0
0
1
0.027778
false
0.027778
0.111111
0
0.138889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7fe2e12189f5c7bd5c301d8cd6a29b000ff6951
4,352
py
Python
origin_check.py
mikispag/OriginCheck
b3bda26c382cdbfd78bddc11d99d6e8723255599
[ "MIT" ]
1
2020-08-19T06:53:24.000Z
2020-08-19T06:53:24.000Z
origin_check.py
mikispag/OriginCheck
b3bda26c382cdbfd78bddc11d99d6e8723255599
[ "MIT" ]
null
null
null
origin_check.py
mikispag/OriginCheck
b3bda26c382cdbfd78bddc11d99d6e8723255599
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import concurrent.futures import logging import requests from sys import argv, exit from urllib.parse import urlparse logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) HEADERS = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537....
39.563636
143
0.584789
526
4,352
4.686312
0.260456
0.044625
0.040162
0.024341
0.348884
0.31359
0.281542
0.252333
0.227992
0.227992
0
0.017411
0.300551
4,352
109
144
39.926606
0.792378
0.053998
0
0.191011
0
0.011236
0.253161
0.077821
0
0
0
0
0
1
0.011236
false
0
0.05618
0
0.146067
0.022472
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f7ff07662b3e96ced8491b8279428f96107213e1
743
py
Python
orange3/Orange/preprocess/setup.py
rgschmitz1/BioDepot-workflow-builder
f74d904eeaf91ec52ec9b703d9fb38e9064e5a66
[ "MIT" ]
54
2017-01-08T17:21:49.000Z
2021-11-02T08:46:07.000Z
orange3/Orange/preprocess/setup.py
Synthia-3/BioDepot-workflow-builder
4ee93abe2d79465755e82a145af3b6a6e1e79fd4
[ "MIT" ]
22
2017-03-28T06:03:14.000Z
2021-07-28T05:43:55.000Z
orange3/Orange/preprocess/setup.py
Synthia-3/BioDepot-workflow-builder
4ee93abe2d79465755e82a145af3b6a6e1e79fd4
[ "MIT" ]
21
2017-01-26T21:12:09.000Z
2022-01-31T21:34:59.000Z
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # License: BSD Style. import os import numpy def configuration(parent_package="", top_path=None): from numpy.distutils.misc_util import Configuration libraries = [] if os.name == "posix": libraries.append("m") config = Configuration...
24.766667
66
0.644684
82
743
5.609756
0.621951
0.045652
0.069565
0.086957
0
0
0
0
0
0
0
0.003478
0.22611
743
29
67
25.62069
0.796522
0.102288
0
0
0
0
0.075301
0
0
0
0
0
0
1
0.052632
false
0
0.210526
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
7900515320c3b3319c03f61841dc3f24a082e7f3
12,476
py
Python
src/lpb.py
RobbinBouwmeester/LIT
0516a69fbf1b8e9976524e0c243f82de041df544
[ "Apache-2.0" ]
null
null
null
src/lpb.py
RobbinBouwmeester/LIT
0516a69fbf1b8e9976524e0c243f82de041df544
[ "Apache-2.0" ]
null
null
null
src/lpb.py
RobbinBouwmeester/LIT
0516a69fbf1b8e9976524e0c243f82de041df544
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2017 Robbin Bouwmeester Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
36.162319
303
0.655579
1,895
12,476
4.059631
0.175726
0.049916
0.044326
0.017678
0.351878
0.309762
0.272715
0.260237
0.235409
0.212271
0
0.01351
0.187159
12,476
344
304
36.267442
0.745094
0.127926
0
0.223443
0
0.007326
0.14208
0.007007
0
0
0
0.002907
0
1
0.03663
false
0
0.010989
0
0.058608
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7902cca06e3a841cee96255c053ca834cc5022f5
7,223
py
Python
src/pte/filetools/filefinder_abc.py
richardkoehler/pynm-decode
3120a410d79d3fce45d0f59025d68ba2d5e80d9e
[ "MIT" ]
1
2022-01-08T09:33:09.000Z
2022-01-08T09:33:09.000Z
src/pte/filetools/filefinder_abc.py
richardkoehler/pynm-decode
3120a410d79d3fce45d0f59025d68ba2d5e80d9e
[ "MIT" ]
null
null
null
src/pte/filetools/filefinder_abc.py
richardkoehler/pynm-decode
3120a410d79d3fce45d0f59025d68ba2d5e80d9e
[ "MIT" ]
null
null
null
"""Define abstract base classes to construct FileFinder classes.""" import os import shutil from abc import ABC, abstractmethod from dataclasses import dataclass, field from pathlib import Path from typing import Optional, Sequence, Union import mne_bids @dataclass class FileFinder(ABC): """Basic representation...
33.439815
79
0.56417
731
7,223
5.459644
0.220246
0.024555
0.033826
0.030068
0.36006
0.270358
0.229266
0.204711
0.204711
0.12904
0
0.001882
0.33781
7,223
215
80
33.595349
0.832532
0.121279
0
0.321429
0
0
0.086887
0.003862
0
0
0
0
0
1
0.065476
false
0
0.041667
0.011905
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
790323f724e852cdcf7d4d9d3e4d89703473f768
3,725
py
Python
panel/routes/server.py
emilio2hd/pz-panel
6b53f465b2c041e963e2b75e48b1612549ad6fea
[ "MIT" ]
null
null
null
panel/routes/server.py
emilio2hd/pz-panel
6b53f465b2c041e963e2b75e48b1612549ad6fea
[ "MIT" ]
null
null
null
panel/routes/server.py
emilio2hd/pz-panel
6b53f465b2c041e963e2b75e48b1612549ad6fea
[ "MIT" ]
null
null
null
import glob import time from os import path from flask import Blueprint, jsonify, current_app, request, Response, json from flask_login import login_required from .. import pz_server_state from ..services.power_actions_service import is_valid_power_action, execute_action from ..services.server_options_service import ...
29.8
119
0.68698
434
3,725
5.578341
0.271889
0.037175
0.046262
0.041305
0.247831
0.162743
0.118959
0.047088
0.047088
0.047088
0
0.003386
0.207248
3,725
124
120
30.040323
0.816458
0
0
0.152174
0
0
0.12349
0.01557
0
0
0
0
0
1
0.086957
false
0.032609
0.108696
0
0.304348
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7903777a50ff41a94bed60837d113e3a3fca6cc0
23,095
py
Python
sub_models.py
tmartin2/EnsembleSplice-Inactive
a161ff007b47ceadd3a21376f2eac2971bb81d90
[ "MIT" ]
null
null
null
sub_models.py
tmartin2/EnsembleSplice-Inactive
a161ff007b47ceadd3a21376f2eac2971bb81d90
[ "MIT" ]
null
null
null
sub_models.py
tmartin2/EnsembleSplice-Inactive
a161ff007b47ceadd3a21376f2eac2971bb81d90
[ "MIT" ]
null
null
null
# ----------------------------------------------------------------------------- # Copyright (c) 2021 Trevor P. Martin. All rights reserved. # Distributed under the MIT License. # ----------------------------------------------------------------------------- from Data import encode_data # from utils import cross_validati...
34.781627
126
0.525352
2,671
23,095
4.321977
0.12018
0.05518
0.057173
0.085759
0.626559
0.597193
0.544872
0.495842
0.474359
0.474272
0
0.022615
0.349037
23,095
663
127
34.834087
0.745244
0.466551
0
0.631757
0
0
0.02738
0
0
0
0
0
0
1
0.033784
false
0.003378
0.043919
0
0.141892
0.003378
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7903ec9c043049b9e677a2917e22d25071fe1f34
3,227
py
Python
tracportalopt/project/notification.py
isabella232/TracPortalPlugin
985581b16aad360cfc78d6b901c93fb922f7bc30
[ "MIT" ]
2
2015-01-19T05:53:30.000Z
2016-01-08T10:30:02.000Z
tracportalopt/project/notification.py
iij/TracPortalPlugin
985581b16aad360cfc78d6b901c93fb922f7bc30
[ "MIT" ]
1
2022-01-20T12:47:18.000Z
2022-01-20T12:47:18.000Z
tracportalopt/project/notification.py
isabella232/TracPortalPlugin
985581b16aad360cfc78d6b901c93fb922f7bc30
[ "MIT" ]
3
2016-12-08T02:25:36.000Z
2022-01-20T12:10:58.000Z
#! -*- coding: utf-8 -*- # # (C) 2013 Internet Initiative Japan Inc. # All rights reserved. # # Created on 2013/05/15 # @author: yosinobu@iij.ad.jp """Notify project owner with email when the project created successfully.""" from pkg_resources import resource_filename from trac.config import Option, ListOption from tra...
37.523256
115
0.654478
359
3,227
5.688022
0.317549
0.039667
0.031832
0.039177
0.118511
0.063663
0
0
0
0
0
0.006148
0.24388
3,227
85
116
37.964706
0.830738
0.096374
0
0
0
0
0.164019
0.018992
0
0
0
0
0
1
0.12069
false
0.017241
0.12069
0.051724
0.413793
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
790488091f13f4b2ff427e7b9bda7aa18b0d732c
1,391
py
Python
misc/style/check-include-guard-convention.py
nitinkaveriappa/downward
5c9a1b5111d667bb96f94da61ca2a45b1b70bb83
[ "MIT" ]
4
2019-04-23T10:41:35.000Z
2019-10-27T05:14:42.000Z
misc/style/check-include-guard-convention.py
nitinkaveriappa/downward
5c9a1b5111d667bb96f94da61ca2a45b1b70bb83
[ "MIT" ]
null
null
null
misc/style/check-include-guard-convention.py
nitinkaveriappa/downward
5c9a1b5111d667bb96f94da61ca2a45b1b70bb83
[ "MIT" ]
4
2018-01-16T00:00:22.000Z
2019-11-01T23:35:01.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import glob import os.path import sys DIR = os.path.dirname(os.path.abspath(__file__)) REPO = os.path.dirname(os.path.dirname(DIR)) SRC_DIR = os.path.join(REPO, "src") def check_header_files(component): component_dir = os.path...
28.979167
90
0.591661
168
1,391
4.678571
0.386905
0.076336
0.050891
0.038168
0.198473
0.07888
0.07888
0.07888
0
0
0
0.001942
0.259526
1,391
47
91
29.595745
0.761165
0.030913
0
0.055556
0
0
0.072065
0
0
0
0
0
0.055556
1
0.055556
false
0
0.111111
0
0.194444
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
7905a7207409a36e542edd41a689eb3240d45b7e
432
py
Python
kyu_7/fun_with_lists_length/length.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
1
2022-02-12T05:56:04.000Z
2022-02-12T05:56:04.000Z
kyu_7/fun_with_lists_length/length.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
182
2020-04-30T00:51:36.000Z
2021-09-07T04:15:05.000Z
kyu_7/fun_with_lists_length/length.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
4
2020-04-29T22:04:20.000Z
2021-07-13T20:04:14.000Z
# Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/ def length(head) -> int: """ The method length, which accepts a linked list (head), and returns the length of the list. :param head: :return: """ i = 0 if head is Non...
18.782609
53
0.581019
62
432
4.048387
0.580645
0.079681
0
0
0
0
0
0
0
0
0
0.013333
0.305556
432
22
54
19.636364
0.823333
0.523148
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7907243674e9e866161964f1907b28118b6c5588
7,238
py
Python
test/functional/test_f_xcompat.py
farleyb-amazon/aws-encryption-sdk-python
7950abd73ee333407d2dadd02ef2d57c3df464cf
[ "Apache-2.0" ]
95
2018-08-20T23:10:00.000Z
2022-02-17T02:54:32.000Z
test/functional/test_f_xcompat.py
farleyb-amazon/aws-encryption-sdk-python
7950abd73ee333407d2dadd02ef2d57c3df464cf
[ "Apache-2.0" ]
220
2018-08-01T20:56:29.000Z
2022-03-28T18:12:35.000Z
test/functional/test_f_xcompat.py
farleyb-amazon/aws-encryption-sdk-python
7950abd73ee333407d2dadd02ef2d57c3df464cf
[ "Apache-2.0" ]
63
2018-08-01T19:37:33.000Z
2022-03-20T17:14:15.000Z
# Copyright 2017 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
39.336957
116
0.678088
890
7,238
5.260674
0.282022
0.019436
0.030756
0.028407
0.163819
0.11085
0.11085
0.065143
0.065143
0.065143
0
0.014316
0.218292
7,238
183
117
39.551913
0.813185
0.151147
0
0.068702
0
0
0.065671
0.004597
0
0
0
0
0.007634
1
0.038168
false
0
0.129771
0.007634
0.290076
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79085a6c06f94f9781c1a341cbcc3d429b30a260
17,381
py
Python
docs/examples/Moving_Platform_Simulation.py
Red-Portal/Stone-Soup-1
267621c86161a839da9b144c2745d28d9166d903
[ "MIT" ]
157
2019-04-14T20:43:11.000Z
2022-03-30T08:30:33.000Z
docs/examples/Moving_Platform_Simulation.py
Red-Portal/Stone-Soup-1
267621c86161a839da9b144c2745d28d9166d903
[ "MIT" ]
364
2019-04-18T15:54:49.000Z
2022-03-31T09:50:02.000Z
docs/examples/Moving_Platform_Simulation.py
Red-Portal/Stone-Soup-1
267621c86161a839da9b144c2745d28d9166d903
[ "MIT" ]
86
2019-04-20T02:01:18.000Z
2022-03-28T01:03:11.000Z
#!/usr/bin/env python # coding: utf-8 """ Multi-Sensor Moving Platform Simulation Example =============================================== This example looks at how multiple sensors can be mounted on a single moving platform and exploiting a defined moving platform as a sensor target. """ # %% # Building a Simulated M...
44.452685
120
0.693976
2,267
17,381
5.254521
0.240847
0.005541
0.005289
0.00403
0.119627
0.095366
0.080423
0.046676
0.023002
0.014943
0
0.01837
0.210747
17,381
390
121
44.566667
0.849978
0.556757
0
0.055944
0
0
0.005059
0
0
0
0
0
0
1
0
false
0.013986
0.195804
0
0.195804
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7909cb31dce0f5d0d244a16c56e9e7a864d3c124
2,372
py
Python
src/gui/SubVision.py
bochkovoi/AHP
b51dc598f8f7a65a2ade039d887dccfa6d070f1e
[ "MIT" ]
null
null
null
src/gui/SubVision.py
bochkovoi/AHP
b51dc598f8f7a65a2ade039d887dccfa6d070f1e
[ "MIT" ]
null
null
null
src/gui/SubVision.py
bochkovoi/AHP
b51dc598f8f7a65a2ade039d887dccfa6d070f1e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from PyQt5 import QtWidgets, QtGui, QtCore import sys, os.path as op path1 = op.join( op.abspath(op.dirname(__file__)), '..', 'Structure') path2 = op.join( op.abspath(op.dirname(__file__)), '..') sys.path.append(path1) sys.path.append(path2) from Structure import * from V...
38.885246
85
0.643339
271
2,372
5.483395
0.479705
0.023553
0.02961
0.020188
0.063257
0.037685
0.037685
0
0
0
0
0.00403
0.267707
2,372
60
86
39.533333
0.851468
0.290472
0
0.054054
0
0
0.02233
0
0
0
0
0
0
1
0.081081
false
0
0.108108
0
0.216216
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
790a863e1b7c7976c78fdf15265431950cd90024
5,163
py
Python
espnet2/gan_tts/espnet_model.py
actboy/espnet
c0ca15e9da6e89ff6df5fe70ed08654deeca2ac0
[ "Apache-2.0" ]
null
null
null
espnet2/gan_tts/espnet_model.py
actboy/espnet
c0ca15e9da6e89ff6df5fe70ed08654deeca2ac0
[ "Apache-2.0" ]
1
2021-08-11T08:35:36.000Z
2021-08-13T07:12:47.000Z
espnet2/gan_tts/espnet_model.py
shirayu/espnet
66f0f8382b0e1195bed7c280c29711f8436b3db4
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Tomoki Hayashi # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """GAN-based TTS ESPnet model.""" from contextlib import contextmanager from distutils.version import LooseVersion from typing import Any from typing import Dict from typing import Optional import torch from typeguard import...
35.363014
81
0.627929
599
5,163
5.293823
0.233723
0.052034
0.022706
0.043519
0.422895
0.37843
0.3614
0.326711
0.326711
0.326711
0
0.007019
0.282588
5,163
145
82
35.606897
0.849082
0.308735
0
0.321429
0
0
0.041918
0
0
0
0
0
0.035714
1
0.047619
false
0
0.154762
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
790b72b5977bc41bc1fa4f394888d33023e6e512
1,309
py
Python
array/bot/others/P_ex07.py
timkphd/examples
04c162ec890a1c9ba83498b275fbdc81a4704062
[ "Unlicense" ]
5
2020-11-01T00:29:22.000Z
2022-01-24T19:09:47.000Z
array/bot/others/P_ex07.py
timkphd/examples
04c162ec890a1c9ba83498b275fbdc81a4704062
[ "Unlicense" ]
1
2022-02-09T01:59:47.000Z
2022-02-09T01:59:47.000Z
array/bot/others/P_ex07.py
timkphd/examples
04c162ec890a1c9ba83498b275fbdc81a4704062
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # # This program shows how to use MPI_Alltoall. Each processor # send/rec a different random number to/from other processors. # # numpy is required import numpy from numpy import * # mpi4py module from mpi4py import MPI import sys def myquit(mes): MPI.Finalize() print(mes) ...
20.453125
63
0.675325
249
1,309
3.449799
0.37751
0.052387
0.039581
0.041909
0.046566
0.046566
0.046566
0
0
0
0
0.049383
0.195569
1,309
63
64
20.777778
0.766382
0.559969
0
0.095238
0
0
0.07441
0
0
0
0
0
0
1
0.047619
false
0
0.190476
0
0.238095
0.190476
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
790c207725e1c54d9a32196cd02ceb7f9a4e7af7
18,376
py
Python
renderer/render_fmo.py
12564985/DeFMO
8ed9c2963678e2c59c7431ec8786302eea841572
[ "MIT" ]
1
2022-03-14T12:46:38.000Z
2022-03-14T12:46:38.000Z
renderer/render_fmo.py
12564985/DeFMO
8ed9c2963678e2c59c7431ec8786302eea841572
[ "MIT" ]
null
null
null
renderer/render_fmo.py
12564985/DeFMO
8ed9c2963678e2c59c7431ec8786302eea841572
[ "MIT" ]
null
null
null
""" render_fmo.py renders obj file to rgb image with fmo model Aviable function: - clear_mash: delete all the mesh in the secene - scene_setting_init: set scene configurations - node_setting_init: set node configurations - render: render rgb image for one obj file and one viewpoint - render_obj: wrapper function for r...
39.181237
200
0.619286
2,654
18,376
4.129616
0.162773
0.034489
0.02938
0.020438
0.349818
0.296989
0.244526
0.209945
0.174544
0.164325
0
0.023096
0.238953
18,376
469
201
39.181237
0.760601
0.151883
0
0.165698
0
0
0.043901
0.002914
0
0
0
0
0
1
0.02907
false
0.002907
0.05814
0
0.125
0.031977
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
790ca91d1e267c27a75b0c472c8aadefd871871f
11,385
py
Python
main.py
VV123/NLIDB_gradient
f42a6f383d2d4ac41c354cf55df2a21507577b02
[ "MIT" ]
null
null
null
main.py
VV123/NLIDB_gradient
f42a6f383d2d4ac41c354cf55df2a21507577b02
[ "MIT" ]
1
2021-01-11T03:42:43.000Z
2021-02-19T17:06:59.000Z
main.py
VV123/NLIDB_gradient
f42a6f383d2d4ac41c354cf55df2a21507577b02
[ "MIT" ]
null
null
null
# coding=utf-8 import sys import argparse import os from tensorflow.python.platform import gfile import numpy as np import tensorflow as tf from tensorflow.python.layers.core import Dense from utils.data_manager import load_data, load_data_one from collections import defaultdict from argparse import ArgumentParser fro...
33.683432
133
0.623188
1,483
11,385
4.538098
0.167229
0.038039
0.049926
0.08321
0.447845
0.356612
0.315305
0.305349
0.285587
0.269837
0
0.010128
0.236803
11,385
337
134
33.783383
0.764415
0.046904
0
0.356364
0
0
0.165511
0.009154
0
0
0
0
0
1
0.021818
false
0.014545
0.050909
0
0.109091
0.061818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
790e708e4fd42df30662fd05e0fd27cb6d2b56ae
1,525
py
Python
gdsfactory/components/cdsem_straight.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
42
2020-05-25T09:33:45.000Z
2022-03-29T03:41:19.000Z
gdsfactory/components/cdsem_straight.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
133
2020-05-28T18:29:04.000Z
2022-03-31T22:21:42.000Z
gdsfactory/components/cdsem_straight.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
17
2020-06-30T07:07:50.000Z
2022-03-17T15:45:27.000Z
"""CD SEM structures.""" from functools import partial from typing import Optional, Tuple from gdsfactory.cell import cell from gdsfactory.component import Component from gdsfactory.components.straight import straight as straight_function from gdsfactory.components.text_rectangular import text_rectangular from gdsfact...
28.773585
76
0.685902
193
1,525
5.274611
0.367876
0.096267
0.047151
0
0
0
0
0
0
0
0
0.020287
0.224262
1,525
52
77
29.326923
0.840237
0.146885
0
0
0
0
0.006344
0
0
0
0
0
0
1
0.030303
false
0
0.272727
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79107ce8bb54a81242a6381a90d895c5d61ecf37
10,057
py
Python
Examples/Tests/particle_fields_diags/analysis_particle_diags_impl.py
hklion/WarpX
3c2d0ee2815ab1df21b9f78d899fe7b1a9651758
[ "BSD-3-Clause-LBNL" ]
null
null
null
Examples/Tests/particle_fields_diags/analysis_particle_diags_impl.py
hklion/WarpX
3c2d0ee2815ab1df21b9f78d899fe7b1a9651758
[ "BSD-3-Clause-LBNL" ]
null
null
null
Examples/Tests/particle_fields_diags/analysis_particle_diags_impl.py
hklion/WarpX
3c2d0ee2815ab1df21b9f78d899fe7b1a9651758
[ "BSD-3-Clause-LBNL" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2019-2022 Luca Fedeli, Yinjian Zhao, Hannah Klion # # This file is part of WarpX. # # License: BSD-3-Clause-LBNL # This script tests the reduced particle diagnostics. # The setup is a uniform plasma with electrons, protons and photons. # Various particle and field quantities are wri...
46.995327
126
0.645521
1,615
10,057
3.731269
0.121362
0.031862
0.044806
0.023896
0.674743
0.620644
0.559243
0.476933
0.441255
0.441255
0
0.010289
0.159193
10,057
213
127
47.215962
0.702342
0.127672
0
0.385135
0
0
0.164019
0.007429
0
0
0
0
0.027027
1
0.006757
false
0
0.067568
0
0.074324
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
7910b1ce3b116e87579add349dab0e8dadaa95e7
1,420
py
Python
predict.py
stonebegin/Promise12-3DUNet
d48d95ae7f2da98d068f84391dc547abd968981d
[ "MIT" ]
2
2020-12-20T12:35:24.000Z
2021-01-04T03:21:37.000Z
predict.py
stonebegin/Promise12-3DUNet
d48d95ae7f2da98d068f84391dc547abd968981d
[ "MIT" ]
1
2020-12-27T05:08:02.000Z
2020-12-27T08:08:50.000Z
predict.py
stonebegin/Promise12-3DUNet
d48d95ae7f2da98d068f84391dc547abd968981d
[ "MIT" ]
null
null
null
import importlib import os from datasets.hdf5 import get_test_loaders from unet3d import utils from unet3d.config import load_config from unet3d.model import get_model logger = utils.get_logger('UNet3DPredictor') def _get_predictor(model, loader, output_file, config): predictor_config = config.get('pr...
30.869565
84
0.687324
177
1,420
5.259887
0.293785
0.053706
0.068743
0.080559
0.090226
0.090226
0.090226
0
0
0
0
0.008811
0.200704
1,420
45
85
31.555556
0.811454
0.091549
0
0
0
0
0.160484
0
0
0
0
0
0
1
0.068966
false
0
0.241379
0
0.344828
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7910bb4a1911643dedff502020dff254dc351cc8
9,248
py
Python
gitScrabber/scrabTasks/file/languageDetector.py
Eyenseo/gitScrabber
e3f5ce1a7b034fa3e40a54577268228a3be2b141
[ "MIT" ]
null
null
null
gitScrabber/scrabTasks/file/languageDetector.py
Eyenseo/gitScrabber
e3f5ce1a7b034fa3e40a54577268228a3be2b141
[ "MIT" ]
null
null
null
gitScrabber/scrabTasks/file/languageDetector.py
Eyenseo/gitScrabber
e3f5ce1a7b034fa3e40a54577268228a3be2b141
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2017 Andreas Poppele Copyright (c) 2017 Roland Jaeger Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the...
35.706564
79
0.561635
1,020
9,248
4.935294
0.266667
0.016687
0.038737
0.052443
0.164084
0.112833
0.056416
0.034168
0.015892
0
0
0.006357
0.35359
9,248
258
80
35.844961
0.835731
0.305255
0
0.232558
0
0
0.060916
0
0
0
0
0
0
1
0.062016
false
0
0.015504
0
0.224806
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7911642cb8be401271e397388edbb0e1b9d4ae27
4,667
py
Python
VAE/full_model/model_training.py
youngmg1995/NES-Music-Maker
aeda10a541cfd439cfa46c45e63411e0d98e41c1
[ "MIT" ]
3
2020-06-26T22:02:35.000Z
2021-11-20T19:24:33.000Z
VAE/full_model/model_training.py
youngmg1995/NES-Music-Maker
aeda10a541cfd439cfa46c45e63411e0d98e41c1
[ "MIT" ]
null
null
null
VAE/full_model/model_training.py
youngmg1995/NES-Music-Maker
aeda10a541cfd439cfa46c45e63411e0d98e41c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Apr 1 17:14:19 2020 @author: Mitchell model_training.py ~~~~~~~~~~~~~~~~~ This file serves as a script for building and training our VAE model. To do so we used the VAE and DataSequence classes defined in the file `VAE.py`, as well as helper functions from the file `dataset...
31.748299
79
0.611099
546
4,667
5.058608
0.377289
0.025344
0.026068
0.020275
0.072411
0.034757
0.034757
0.034757
0
0
0
0.014478
0.156417
4,667
147
80
31.748299
0.687071
0.391044
0
0.057143
0
0
0.12621
0.063464
0
0
0
0
0
1
0
false
0
0.085714
0
0.085714
0.042857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
79135bcae4aa65725d47cfe68fe799e301d340b1
7,172
py
Python
backend/kale/tests/assets/kfp_dsl/simple_data_passing.py
brness/kale
d90310dbebc765c68915df0cf832a7a5d1ec1551
[ "Apache-2.0" ]
502
2019-07-18T16:19:16.000Z
2022-03-30T19:45:31.000Z
backend/kale/tests/assets/kfp_dsl/simple_data_passing.py
brness/kale
d90310dbebc765c68915df0cf832a7a5d1ec1551
[ "Apache-2.0" ]
189
2019-09-22T10:54:02.000Z
2022-03-28T13:46:31.000Z
backend/kale/tests/assets/kfp_dsl/simple_data_passing.py
brness/kale
d90310dbebc765c68915df0cf832a7a5d1ec1551
[ "Apache-2.0" ]
111
2019-09-25T20:28:47.000Z
2022-03-24T01:31:46.000Z
import json import kfp.dsl as _kfp_dsl import kfp.components as _kfp_components from collections import OrderedDict from kubernetes import client as k8s_client def step1(): from kale.common import mlmdutils as _kale_mlmdutils _kale_mlmdutils.init_metadata() from kale.marshal.decorator import marshal as...
34.480769
88
0.725739
927
7,172
5.033441
0.148867
0.05015
0.027861
0.021432
0.688813
0.658165
0.618303
0.579297
0.522075
0.460994
0
0.012151
0.185304
7,172
207
89
34.647343
0.786411
0.010457
0
0.401235
0
0
0.093741
0.058782
0
0
0
0
0
1
0.04321
false
0
0.111111
0
0.166667
0.012346
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
791572847749537988baaf3cd53a31420b81f7a2
3,158
py
Python
roombapy/discovery.py
Erelen-Laiquendi/roombapy
104908ec040ebb72e16d3763741565eacc585801
[ "MIT" ]
17
2018-01-27T19:53:06.000Z
2022-03-16T07:29:13.000Z
roombapy/discovery.py
Erelen-Laiquendi/roombapy
104908ec040ebb72e16d3763741565eacc585801
[ "MIT" ]
78
2017-09-03T17:37:03.000Z
2022-03-30T10:41:55.000Z
roombapy/discovery.py
bdraco/Roomba980-Python
d25583a7b8cd6e65148caeebc6849e73dff645da
[ "MIT" ]
25
2017-09-03T13:43:21.000Z
2022-03-19T23:41:51.000Z
import json import logging import socket from roombapy.roomba_info import RoombaInfo class RoombaDiscovery: udp_bind_address = "" udp_address = "<broadcast>" udp_port = 5678 roomba_message = "irobotmcs" amount_of_broadcasted_messages = 5 server_socket = None log = None def __init__(s...
28.972477
79
0.594997
365
3,158
4.882192
0.265753
0.074074
0.044893
0.030303
0.147026
0.104377
0.104377
0.087542
0
0
0
0.005489
0.30779
3,158
108
80
29.240741
0.809698
0.00475
0
0.11236
0
0
0.061205
0
0
0
0
0
0
1
0.123596
false
0
0.044944
0
0.382022
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
791688dbd138ffb5132f957ed4ac7f6e3567bcff
30,666
py
Python
pmaf/biome/essentials/_taxonomy.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-07-02T06:24:17.000Z
2021-07-02T06:24:17.000Z
pmaf/biome/essentials/_taxonomy.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-06-28T12:02:46.000Z
2021-06-28T12:02:46.000Z
pmaf/biome/essentials/_taxonomy.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
null
null
null
import warnings warnings.simplefilter("ignore", category=FutureWarning) from pmaf.biome.essentials._metakit import EssentialFeatureMetabase from pmaf.biome.essentials._base import EssentialBackboneBase from pmaf.internal._constants import ( AVAIL_TAXONOMY_NOTATIONS, jRegexGG, jRegexQIIME, BIOM_TAXONOMY...
37.081016
133
0.559903
3,168
30,666
5.163194
0.10827
0.03228
0.035459
0.019686
0.468118
0.41982
0.337348
0.30464
0.273767
0.256587
0
0.002607
0.349442
30,666
826
134
37.125908
0.817293
0.177493
0
0.384762
0
0
0.039819
0.001878
0
0
0
0
0
1
0.055238
false
0
0.022857
0
0.139048
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0