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
5c165b43b1f198ab8d8542c8ff00784873352544
4,911
py
Python
simulations/exp_schapiro.py
nicktfranklin/EventSegmentation
aa1ab809918ee3a10fa0bd4ae1757b3febc573d1
[ "MIT" ]
14
2019-04-05T14:06:39.000Z
2022-03-26T19:11:42.000Z
simulations/exp_schapiro.py
nicktfranklin/SEM_paper_simulations
aa1ab809918ee3a10fa0bd4ae1757b3febc573d1
[ "MIT" ]
null
null
null
simulations/exp_schapiro.py
nicktfranklin/SEM_paper_simulations
aa1ab809918ee3a10fa0bd4ae1757b3febc573d1
[ "MIT" ]
2
2020-07-07T17:12:09.000Z
2021-01-15T23:30:16.000Z
import numpy as np from models import SEM, clear_sem from sklearn import metrics import pandas as pd from scipy.special import logsumexp def logsumexp_mean(x): return logsumexp(x) - np.log(len(x)) def batch_experiment(sem_kwargs, n_train=1400, n_test=600, progress_bar=True): # define the graph structure for ...
37.48855
119
0.591326
817
4,911
3.388005
0.161567
0.102601
0.131142
0.148844
0.476156
0.375723
0.354046
0.34104
0.27565
0.211344
0
0.088437
0.258603
4,911
130
120
37.776923
0.671793
0.082672
0
0.043011
0
0
0.05809
0
0
0
0
0
0
1
0.043011
false
0
0.053763
0.021505
0.139785
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c17c5b7aabeab82c94531a8db0f717695069f5e
28,818
py
Python
src/mlshell/producers/dataset.py
nizaevka/mlshell
36893067f598f6b071b61604423d0fd15c2a7c62
[ "Apache-2.0" ]
8
2020-10-04T15:33:58.000Z
2020-11-24T15:10:18.000Z
src/mlshell/producers/dataset.py
nizaevka/mlshell
36893067f598f6b071b61604423d0fd15c2a7c62
[ "Apache-2.0" ]
5
2020-03-06T18:13:10.000Z
2022-03-12T00:52:48.000Z
src/mlshell/producers/dataset.py
nizaevka/mlshell
36893067f598f6b071b61604423d0fd15c2a7c62
[ "Apache-2.0" ]
null
null
null
""" The :mod:`mlshell.producers.dataset` contains examples of `Dataset` class for empty data object creation and `DataProducer` class for filling it. :class:`mlshell.Dataset` proposes unified interface to interact with underlying data. Intended to be used in :class:`mlshell.Workflow`. For new data formats no need to e...
36.804598
80
0.561906
3,144
28,818
4.997774
0.151399
0.019474
0.011455
0.008592
0.347419
0.276459
0.222364
0.188634
0.177942
0.173232
0
0.002892
0.328024
28,818
782
81
36.851662
0.808521
0.436949
0
0.118243
0
0
0.102163
0.001928
0
0
0
0
0
1
0.084459
false
0.003378
0.027027
0.003378
0.212838
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
5c1ae1443f7fa73080c8c0a769854cb87fc44def
21,356
py
Python
examples/utils/discrete_space.py
beark007/smarts_ppo
8f6aa33a6fcfb74dc0b8e92951d6b70d6e2874de
[ "MIT" ]
null
null
null
examples/utils/discrete_space.py
beark007/smarts_ppo
8f6aa33a6fcfb74dc0b8e92951d6b70d6e2874de
[ "MIT" ]
null
null
null
examples/utils/discrete_space.py
beark007/smarts_ppo
8f6aa33a6fcfb74dc0b8e92951d6b70d6e2874de
[ "MIT" ]
null
null
null
""" this file contains tuned obs function and reward function fix ttc calculate """ import math import gym import numpy as np from smarts.core.agent import AgentSpec from smarts.core.agent_interface import AgentInterface from smarts.core.agent_interface import OGM, NeighborhoodVehicles from smarts.core.controllers im...
38.135714
106
0.631111
2,933
21,356
4.232526
0.113877
0.029
0.029966
0.020541
0.45497
0.34308
0.265748
0.215483
0.185194
0.15112
0
0.022196
0.274302
21,356
559
107
38.203936
0.77881
0.176484
0
0.193548
0
0
0.019819
0.01054
0
0
0
0
0.002688
1
0.024194
false
0.010753
0.018817
0.005376
0.069892
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c1c78f65b55a91c212dbfb6fa80d719220b3e5d
1,156
py
Python
tests/optimizers/test_constant_optimizer.py
kevinconway/pycc
69ba99d78a859ba61c2ce7ee35766e21c789db21
[ "Apache-2.0" ]
17
2015-04-01T13:51:25.000Z
2021-12-15T21:07:09.000Z
tests/optimizers/test_constant_optimizer.py
kevinconway/pycc
69ba99d78a859ba61c2ce7ee35766e21c789db21
[ "Apache-2.0" ]
3
2018-09-05T04:34:24.000Z
2019-05-27T00:44:33.000Z
tests/optimizers/test_constant_optimizer.py
kevinconway/pycc
69ba99d78a859ba61c2ce7ee35766e21c789db21
[ "Apache-2.0" ]
5
2018-05-19T23:50:44.000Z
2021-08-05T08:39:57.000Z
"""Test suite for optimizers.constant.""" from __future__ import division from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import ast import pytest from pycc.asttools import parse from pycc.optimizers import constant source = """ ONE = 1 TWO = 2 T...
21.018182
59
0.694637
172
1,156
4.534884
0.354651
0.071795
0.089744
0.041026
0.158974
0.097436
0
0
0
0
0
0.018143
0.189446
1,156
54
60
21.407407
0.814301
0.189446
0
0
0
0
0.195865
0
0
0
0
0
0.212121
1
0.060606
false
0
0.242424
0
0.393939
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c1ea40702594b065154a2ff625e0441b3a8faf9
2,079
py
Python
vnc_viewer/engine/service/proxy.py
alsbi/vnc
1dd89ffed17a0f5a47cf08516b5757b4481ae6b4
[ "MIT" ]
null
null
null
vnc_viewer/engine/service/proxy.py
alsbi/vnc
1dd89ffed17a0f5a47cf08516b5757b4481ae6b4
[ "MIT" ]
null
null
null
vnc_viewer/engine/service/proxy.py
alsbi/vnc
1dd89ffed17a0f5a47cf08516b5757b4481ae6b4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'alsbi' from multiprocessing import Process from websockify import WebSocketProxy class Proxy(): port = {} @classmethod def get_port(cls, uuid): if uuid in Proxy.port: return Proxy.port[uuid] port = list(set(range(50000, ...
28.479452
94
0.526215
228
2,079
4.583333
0.254386
0.076555
0.074641
0.051675
0.220096
0.15311
0
0
0
0
0
0.009281
0.378066
2,079
72
95
28.875
0.798917
0.010101
0
0.135593
0
0
0.050097
0.035019
0
0
0
0
0
1
0.118644
false
0
0.033898
0
0.288136
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c1f238b6bcc670b2b5ec473a5f107f816b2ed4c
318
py
Python
massthings/__init__.py
FPVogel/Fixator10-Cogs
002a90e06952b7bf7a0ffdbd93c9d423f238f124
[ "MIT" ]
76
2018-07-21T21:09:00.000Z
2022-03-17T06:56:03.000Z
massthings/__init__.py
FPVogel/Fixator10-Cogs
002a90e06952b7bf7a0ffdbd93c9d423f238f124
[ "MIT" ]
59
2019-01-23T08:13:13.000Z
2022-03-13T16:39:05.000Z
massthings/__init__.py
FPVogel/Fixator10-Cogs
002a90e06952b7bf7a0ffdbd93c9d423f238f124
[ "MIT" ]
63
2019-03-06T01:43:45.000Z
2022-02-14T20:16:19.000Z
from .massthings import MassThings __red_end_user_data_statement__ = ( "This cog does not persistently store data or metadata about users." # "<s>If you are using this cog, user data storage will probably be much less significant thing then API abuse</s>" ) def setup(bot): bot.add_cog(MassThings(bot))
28.909091
119
0.745283
49
318
4.653061
0.77551
0.070175
0
0
0
0
0
0
0
0
0
0
0.179245
318
10
120
31.8
0.873563
0.355346
0
0
0
0
0.325123
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c200dbfad013cbf8dd5260a6b61041a4ae56d9e
1,528
py
Python
observatory/middleware/CssSmasher.py
natestedman/Observatory
6e810b22d844416b2a3057e99ef23baa0d122ab4
[ "0BSD" ]
1
2015-01-16T04:17:54.000Z
2015-01-16T04:17:54.000Z
observatory/middleware/CssSmasher.py
natestedman/Observatory
6e810b22d844416b2a3057e99ef23baa0d122ab4
[ "0BSD" ]
null
null
null
observatory/middleware/CssSmasher.py
natestedman/Observatory
6e810b22d844416b2a3057e99ef23baa0d122ab4
[ "0BSD" ]
null
null
null
# Copyright (c) 2010, individual contributors (see AUTHORS file) # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" ...
44.941176
74
0.725785
231
1,528
4.748918
0.47619
0.041021
0.045579
0.054695
0.122151
0.049225
0.049225
0
0
0
0
0.00319
0.179319
1,528
33
75
46.30303
0.871611
0.496073
0
0
0
0
0.050265
0
0
0
0
0
0
1
0.0625
false
0
0.25
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
5c21f13b79aff05e74d7a6471705742eb1ef0d68
2,101
py
Python
okta/models/access_policy_rule_application_sign_on.py
ander501/okta-sdk-python
0927dc6a2f6d5ebf7cd1ea806d81065094c92471
[ "Apache-2.0" ]
null
null
null
okta/models/access_policy_rule_application_sign_on.py
ander501/okta-sdk-python
0927dc6a2f6d5ebf7cd1ea806d81065094c92471
[ "Apache-2.0" ]
null
null
null
okta/models/access_policy_rule_application_sign_on.py
ander501/okta-sdk-python
0927dc6a2f6d5ebf7cd1ea806d81065094c92471
[ "Apache-2.0" ]
null
null
null
# flake8: noqa """ Copyright 2021 - Present Okta, 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 ...
33.887097
86
0.654926
225
2,101
5.977778
0.457778
0.133829
0.098141
0.057993
0.050558
0.050558
0.050558
0
0
0
0
0.005941
0.278915
2,101
61
87
34.442623
0.881848
0.331747
0
0.176471
0
0
0.091371
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c24da598237de3c027b9acde2ff873da368e571
3,203
py
Python
bot/player_commands/missing.py
XIIIsiren/CommunityAPI
e665638d2800b71b3d32d49c6897901f4c49a9c5
[ "Apache-2.0" ]
null
null
null
bot/player_commands/missing.py
XIIIsiren/CommunityAPI
e665638d2800b71b3d32d49c6897901f4c49a9c5
[ "Apache-2.0" ]
null
null
null
bot/player_commands/missing.py
XIIIsiren/CommunityAPI
e665638d2800b71b3d32d49c6897901f4c49a9c5
[ "Apache-2.0" ]
null
null
null
import discord from discord.ext import commands import json from utils import error, RARITY_DICT from parse_profile import get_profile_data from extract_ids import extract_internal_names # Create the master list! from text_files.accessory_list import talisman_upgrades # Get a list of all accessories ACCESSORIES = []...
42.144737
141
0.658445
427
3,203
4.75644
0.34192
0.023634
0.029542
0.016741
0.023634
0
0
0
0
0
0
0.007727
0.232282
3,203
75
142
42.706667
0.818219
0.046831
0
0
0
0.018519
0.21241
0.05023
0
0
0.002626
0
0
1
0.037037
false
0
0.12963
0
0.240741
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c256fbd08baa69454ac110542d3949899a3e62f
725
py
Python
extract-faces.py
rgooding/face-recogniser
3c14bf2faf3cd815c43a537e8a6d86258e5c52c7
[ "MIT" ]
null
null
null
extract-faces.py
rgooding/face-recogniser
3c14bf2faf3cd815c43a537e8a6d86258e5c52c7
[ "MIT" ]
null
null
null
extract-faces.py
rgooding/face-recogniser
3c14bf2faf3cd815c43a537e8a6d86258e5c52c7
[ "MIT" ]
null
null
null
import os import cv2 from lib import lib images_dir = "images" faces_dir = "images/faces" def main(): files = os.listdir(images_dir) for file_name in files: full_path = images_dir + "/" + file_name if not os.path.isfile(full_path): continue print("Processing " + full_pa...
23.387097
71
0.56
100
725
3.83
0.43
0.083551
0.086162
0.083551
0.088773
0
0
0
0
0
0
0.01
0.310345
725
30
72
24.166667
0.756
0.078621
0
0
0
0
0.064565
0
0
0
0
0
0
1
0.05
false
0
0.15
0
0.2
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c271332264e94d543256ede8fdcc6d30fbdd9a2
5,142
py
Python
models/train_classifier.py
julie-data/disaster-responses-pipeline
3539747e18f98c301ae9f8e2e4661c985e29dfbb
[ "FTL" ]
null
null
null
models/train_classifier.py
julie-data/disaster-responses-pipeline
3539747e18f98c301ae9f8e2e4661c985e29dfbb
[ "FTL" ]
null
null
null
models/train_classifier.py
julie-data/disaster-responses-pipeline
3539747e18f98c301ae9f8e2e4661c985e29dfbb
[ "FTL" ]
null
null
null
import sys import pandas as pd from sqlalchemy import create_engine import re import numpy as np import nltk from nltk.corpus import stopwords from nltk.stem.wordnet import WordNetLemmatizer from nltk.tokenize import word_tokenize from nltk import pos_tag, ne_chunk nltk.download('punkt') nltk.download('stopwords') nl...
27.945652
119
0.669584
656
5,142
5.096037
0.332317
0.029913
0.005384
0.014358
0.094526
0.059827
0.059827
0.059827
0.059827
0.035298
0
0.003855
0.243291
5,142
184
120
27.945652
0.855307
0.259627
0
0
0
0
0.172781
0.031644
0
0
0
0
0
1
0.074074
false
0
0.234568
0
0.345679
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c275f2ec32045f61bf64ac2e62550759a730fd3
976
py
Python
plot_normballs.py
bkoyuncu/notes
0e660f46b7d17fdfddc2cad1bb60dcf847f5d1e4
[ "MIT" ]
191
2016-01-21T19:44:23.000Z
2022-03-25T20:50:50.000Z
plot_normballs.py
onurboyar/notes
2ec14820af044c2cfbc99bc989338346572a5e24
[ "MIT" ]
2
2018-02-18T03:41:04.000Z
2018-11-21T11:08:49.000Z
plot_normballs.py
onurboyar/notes
2ec14820af044c2cfbc99bc989338346572a5e24
[ "MIT" ]
138
2015-10-04T21:57:21.000Z
2021-06-15T19:35:55.000Z
import numpy as np import matplotlib as mpl import matplotlib.pylab as plt def norm_ball(p): step = np.pi/128 THETA = np.arange(0, 2*np.pi+step, step) X = np.mat(np.zeros((2,len(THETA)))) for i, theta in enumerate(THETA): x = (np.cos(theta), np.sin(theta)) a = (1/(np.abs(x[0])**p + np...
22.697674
59
0.57582
176
976
3.136364
0.403409
0.01087
0.032609
0.032609
0
0
0
0
0
0
0
0.043364
0.220287
976
43
60
22.697674
0.681997
0.05123
0
0
0
0
0.010834
0
0
0
0
0
0
1
0.033333
false
0
0.1
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c29a79bfc65dc7f4164e897bed8d0b6f6931bee
6,281
py
Python
reviewboard/manage.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
reviewboard/manage.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
reviewboard/manage.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
def check_dependencies(settings): pyver = sys.version_info[:2] if pyver < PYTHON_2_MIN_VERSION or (3, 0) <= pyver < PYTHON_3_MIN_VERSION: dependency_error("Python %s or %s+ is required." % (PYTHON_2_MIN_VERSION_STR, PYTHON_3_MIN_VERSION_STR)) if not is_exe_in_path("node"): dependency_error("node (from NodeJS) wa...
54.617391
343
0.704824
940
6,281
4.571277
0.285106
0.018152
0.022341
0.035839
0.218059
0.173377
0.134745
0.119386
0.098906
0.098906
0
0.005066
0.151409
6,281
115
344
54.617391
0.801126
0.064003
0
0.180952
0
0
0.485695
0.032894
0
0
0
0
0
1
0.038095
false
0.028571
0.019048
0
0.066667
0.038095
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c2d351ff240445b749489807879c9a82ce4996e
1,528
py
Python
train/train.py
sahandilshan/PruneLM
318c90af6d2f0802ddcef39a0ade62f41926fda0
[ "Apache-2.0" ]
null
null
null
train/train.py
sahandilshan/PruneLM
318c90af6d2f0802ddcef39a0ade62f41926fda0
[ "Apache-2.0" ]
null
null
null
train/train.py
sahandilshan/PruneLM
318c90af6d2f0802ddcef39a0ade62f41926fda0
[ "Apache-2.0" ]
null
null
null
from torch import nn from tqdm import tqdm import math from train.utils import get_batch, repackage_hidden def train(model, criterion, optimizer, num_tokens, train_data, epoch_no, epochs, batch_size=256, sequence_length=6): # Turn on training mode which enables dropout. assert num_tokens is not None...
39.179487
119
0.662304
210
1,528
4.671429
0.504762
0.045872
0.026504
0
0
0
0
0
0
0
0
0.011121
0.234948
1,528
38
120
40.210526
0.828058
0.231675
0
0
0
0
0.023993
0.017995
0
0
0
0
0.037037
1
0.037037
false
0
0.148148
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c2fa77cba3144e55f33531814d2f04bc1677219
4,961
py
Python
day24.py
drewbrew/advent-of-code-2020
543635d0fd71a85c6a957dcff4e878af7415469c
[ "Apache-2.0" ]
null
null
null
day24.py
drewbrew/advent-of-code-2020
543635d0fd71a85c6a957dcff4e878af7415469c
[ "Apache-2.0" ]
null
null
null
day24.py
drewbrew/advent-of-code-2020
543635d0fd71a85c6a957dcff4e878af7415469c
[ "Apache-2.0" ]
null
null
null
"""Day 24: Lobby layout Coordinate system taken from https://www.redblobgames.com/grids/hexagons/#coordinates """ from collections import defaultdict from day23 import REAL_INPUT from typing import Dict, List, Tuple MOVES = { "e": [1, -1, 0], "w": [-1, 1, 0], "se": [0, -1, 1], "sw": [-1, 0, 1], ...
27.258242
86
0.599274
645
4,961
4.497674
0.303876
0.028956
0.026543
0.033781
0.192003
0.165115
0.15443
0.11789
0.104791
0.104791
0
0.047659
0.285225
4,961
181
87
27.40884
0.770446
0.073171
0
0.115646
0
0
0.163902
0.131165
0
0
0
0
0.020408
1
0.047619
false
0.006803
0.020408
0
0.108844
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c3309eff3593cc991ca6b9ae1c54999360fde55
840
py
Python
holmes/migrations/versions/37881a97d680_create_user_table.py
scorphus/holmes-api
6b3c76d4299fecf2d8799d7b5c3c6a6442cacd59
[ "MIT" ]
null
null
null
holmes/migrations/versions/37881a97d680_create_user_table.py
scorphus/holmes-api
6b3c76d4299fecf2d8799d7b5c3c6a6442cacd59
[ "MIT" ]
null
null
null
holmes/migrations/versions/37881a97d680_create_user_table.py
scorphus/holmes-api
6b3c76d4299fecf2d8799d7b5c3c6a6442cacd59
[ "MIT" ]
null
null
null
"""create user table Revision ID: 37881a97d680 Revises: d8f500d9168 Create Date: 2014-02-10 15:52:50.366173 """ # revision identifiers, used by Alembic. revision = '37881a97d680' down_revision = 'd8f500d9168' from alembic import op import sqlalchemy as sa def upgrade(): op.create_table( 'users', ...
22.105263
62
0.625
103
840
4.990291
0.533981
0.077821
0.046693
0.081712
0
0
0
0
0
0
0
0.097978
0.234524
840
37
63
22.702703
0.7014
0.172619
0
0
0
0
0.151383
0
0
0
0
0
0
1
0.090909
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
5c36603505642a938a1b3d00b8392601cbdd9272
2,235
py
Python
src/data/make_dataset.py
AlanGanem/fastai-flow
f5b873fd3bdf917be0bd958b144214d0568df15c
[ "MIT" ]
null
null
null
src/data/make_dataset.py
AlanGanem/fastai-flow
f5b873fd3bdf917be0bd958b144214d0568df15c
[ "MIT" ]
null
null
null
src/data/make_dataset.py
AlanGanem/fastai-flow
f5b873fd3bdf917be0bd958b144214d0568df15c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import click import logging from pathlib import Path #from dotenv import find_dotenv, load_dotenv import pandas as pd import tqdm import numpy as np #@click.command() #@click.argument('input_filepath', type=click.Path(exists=True)) #@click.argument('output_filepath', type=click.Path()) def main...
32.391304
119
0.635347
290
2,235
4.768966
0.496552
0.040492
0.032538
0.030369
0.096891
0.096891
0.096891
0.096891
0.096891
0.096891
0
0.003442
0.220134
2,235
68
120
32.867647
0.790017
0.310962
0
0.045455
0
0.045455
0.284672
0.071666
0
0
0
0
0
1
0.022727
false
0
0.136364
0
0.159091
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c370945df28f172815f20a5fdc6617f23cc8f02
1,989
py
Python
server/core/server.py
Den4200/immortals
2c3e3316f498ade2f301f43748fc95f5fbe9daf2
[ "MIT" ]
null
null
null
server/core/server.py
Den4200/immortals
2c3e3316f498ade2f301f43748fc95f5fbe9daf2
[ "MIT" ]
2
2021-06-08T20:59:31.000Z
2021-09-08T01:49:50.000Z
server/core/server.py
Den4200/immortals
2c3e3316f498ade2f301f43748fc95f5fbe9daf2
[ "MIT" ]
null
null
null
import asyncio import time import zmq import zmq.asyncio from pymunk import Vec2d from zmq import Socket from .constants import SERVER_TICK from .events.events import PlayerEvent from .events.movement import apply_movement from .events.states import GameState, PlayerState async def main(): future = asyncio.Futu...
24.555556
74
0.635998
256
1,989
4.738281
0.3125
0.096455
0.059357
0.059357
0.249794
0.072547
0.072547
0.072547
0.072547
0
0
0.009543
0.262443
1,989
80
75
24.8625
0.817314
0.008547
0
0.163934
0
0
0.024873
0
0
0
0
0
0
1
0.016393
false
0.032787
0.163934
0
0.180328
0.032787
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c37e14295bfcedd72a3433670777db43f247942
1,945
py
Python
cerberus/tests/test_rule_schema.py
pykler/cerberus
8765b317442c002a84e556bd5d9677b868e6deb2
[ "0BSD" ]
2,020
2017-03-08T13:24:00.000Z
2022-03-30T19:46:02.000Z
cerberus/tests/test_rule_schema.py
pykler/cerberus
8765b317442c002a84e556bd5d9677b868e6deb2
[ "0BSD" ]
281
2017-03-08T23:05:10.000Z
2022-03-25T01:37:04.000Z
cerberus/tests/test_rule_schema.py
pykler/cerberus
8765b317442c002a84e556bd5d9677b868e6deb2
[ "0BSD" ]
171
2017-03-10T17:27:41.000Z
2022-03-16T06:43:34.000Z
from cerberus import errors from cerberus.tests import assert_fail, assert_success def test_schema(validator): field = 'a_dict' subschema_field = 'address' assert_success({field: {subschema_field: 'i live here', 'city': 'in my own town'}}) assert_fail( schema={ field: { ...
29.029851
87
0.515681
175
1,945
5.577143
0.28
0.114754
0.08709
0.090164
0.182377
0.135246
0.135246
0.135246
0.135246
0.135246
0
0.004702
0.343959
1,945
66
88
29.469697
0.760188
0
0
0.118644
0
0
0.110026
0
0
0
0
0
0.152542
1
0.033898
false
0.016949
0.033898
0
0.067797
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c3901f50ecda0c64af94d368538bfb5042b9562
4,216
py
Python
facetool/classify.py
hay/facetool
3e296f7b177ebbcceb4b25f12f3327c3f6612f14
[ "MIT" ]
29
2018-12-10T22:40:07.000Z
2022-03-30T02:56:28.000Z
facetool/classify.py
hay/facetool
3e296f7b177ebbcceb4b25f12f3327c3f6612f14
[ "MIT" ]
2
2020-02-21T09:48:37.000Z
2021-03-06T22:33:45.000Z
facetool/classify.py
hay/facetool
3e296f7b177ebbcceb4b25f12f3327c3f6612f14
[ "MIT" ]
7
2019-08-09T09:19:12.000Z
2022-03-30T02:56:27.000Z
import logging logger = logging.getLogger(__name__) from .profiler import Profiler from . import config, resnet profiler = Profiler("classify.py") import os import cv2 import dlib import numpy as np import tensorflow as tf from imutils.face_utils import FaceAligner from imutils.face_utils import rect_to_bb profiler....
35.133333
100
0.58278
500
4,216
4.68
0.328
0.038889
0.016667
0.019231
0.063248
0.041026
0
0
0
0
0
0.014946
0.3176
4,216
120
101
35.133333
0.798401
0.002372
0
0.030612
0
0
0.04446
0
0
0
0
0
0
1
0.061224
false
0
0.112245
0.010204
0.255102
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c3c1abdd5938c1500009922bfaa382eec74fe54
6,318
py
Python
pycalc/data_sr.py
Hirico/supic
3cb5f3edc59d433fd65a2b638f796cad7126431b
[ "MIT" ]
4
2017-07-18T10:24:11.000Z
2018-02-19T12:43:47.000Z
pycalc/data_sr.py
Hirico/supic
3cb5f3edc59d433fd65a2b638f796cad7126431b
[ "MIT" ]
null
null
null
pycalc/data_sr.py
Hirico/supic
3cb5f3edc59d433fd65a2b638f796cad7126431b
[ "MIT" ]
1
2017-07-16T01:40:20.000Z
2017-07-16T01:40:20.000Z
import tensorflow as tf import argument_sr from os.path import join from PIL import Image import os from numpy import array """ fliker image data by pil """ def pil_batch_queue(): lrs ,hr2s , hr4s = argument_sr.options.get_pil_file_list() lrs = array(lrs) hr2s = array(hr2s) hr4s = array(hr4s) ...
33.252632
135
0.662235
897
6,318
4.377926
0.181717
0.042781
0.064935
0.025974
0.654698
0.617774
0.586707
0.566845
0.566845
0.566845
0
0.028062
0.227287
6,318
189
136
33.428571
0.776321
0.034821
0
0.444444
0
0
0.009097
0
0
0
0
0
0
1
0.071429
false
0
0.047619
0
0.166667
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c3f4f20d10436d040d5804e29572c8cb06bf2d7
15,927
py
Python
dipper/sources/BioGrid.py
putmantime/dipper
583d76207877096a84a98a379c904ea9c960c400
[ "BSD-3-Clause" ]
null
null
null
dipper/sources/BioGrid.py
putmantime/dipper
583d76207877096a84a98a379c904ea9c960c400
[ "BSD-3-Clause" ]
null
null
null
dipper/sources/BioGrid.py
putmantime/dipper
583d76207877096a84a98a379c904ea9c960c400
[ "BSD-3-Clause" ]
1
2022-01-04T14:34:33.000Z
2022-01-04T14:34:33.000Z
import os import logging import re from datetime import datetime from stat import ST_CTIME from zipfile import ZipFile from dipper import config from dipper.sources.Source import Source from dipper.models.Model import Model from dipper.models.assoc.InteractionAssoc import InteractionAssoc from dipper.models.Dataset i...
37.475294
108
0.54348
1,697
15,927
4.952269
0.296405
0.00476
0.00595
0.005712
0.155878
0.121966
0.08841
0.080795
0.074607
0.061637
0
0.040186
0.353174
15,927
424
109
37.563679
0.775578
0.204056
0
0.173913
0
0
0.191335
0.037043
0
0
0
0.007075
0
1
0.032609
false
0
0.047101
0
0.123188
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c42f7d286d116445c758adc9f9639297784a6e6
10,084
py
Python
test_mimecat.py
xuzheliang135/mimecat
4502e49e86951b02d61bfa7a52392f2ea74190f5
[ "MIT" ]
null
null
null
test_mimecat.py
xuzheliang135/mimecat
4502e49e86951b02d61bfa7a52392f2ea74190f5
[ "MIT" ]
1
2021-06-25T15:19:49.000Z
2021-06-25T15:19:49.000Z
test_mimecat.py
xuzheliang135/mimecat
4502e49e86951b02d61bfa7a52392f2ea74190f5
[ "MIT" ]
1
2020-02-13T11:43:11.000Z
2020-02-13T11:43:11.000Z
# -*- coding: utf-8 -*- import os import unittest from StringIO import StringIO from mimecat import (Catalogue, _canonicalize_extension, _parse_file, _parse_line) TEST_MIME_TYPES = """ # This file maps Internet media types to unique file extension(s). # Although created for httpd, this file is us...
38.636015
80
0.671559
1,236
10,084
5.250809
0.182848
0.056857
0.113713
0.074422
0.587365
0.530663
0.478274
0.453467
0.417411
0.373035
0
0.008834
0.214201
10,084
260
81
38.784615
0.810197
0.013487
0
0.273171
0
0
0.204847
0.017096
0
0
0
0
0.317073
1
0.141463
false
0
0.019512
0
0.165854
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c45f38fe38fa77cbec0c1601f2b98424a73d9e6
17,404
py
Python
query.py
emmanuelsalawu/tp-db
5f495876cf68bf2f1158e3781c79118072e097be
[ "Apache-2.0" ]
null
null
null
query.py
emmanuelsalawu/tp-db
5f495876cf68bf2f1158e3781c79118072e097be
[ "Apache-2.0" ]
null
null
null
query.py
emmanuelsalawu/tp-db
5f495876cf68bf2f1158e3781c79118072e097be
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function """ Author: Emmanuel Salawu Email: dr.emmanuel.salawu@gmail.com Copyright 2016 Emmanuel Salawu 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 L...
38
458
0.579924
2,099
17,404
4.635541
0.213911
0.024049
0.025899
0.027749
0.20853
0.173279
0.106269
0.090647
0.071737
0.071737
0
0.058569
0.283843
17,404
457
459
38.083151
0.72208
0.114169
0
0.09375
0
0.010417
0.085542
0.016403
0
0
0
0
0
1
0.076389
false
0.003472
0.024306
0.013889
0.173611
0.017361
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c46184c6fec988857f84fb1a16cfb0fcdf021e8
1,745
py
Python
tunepy2/optimizers/optimizer_basic.py
efortner/tunepy
28ab7aa0b851d42cf2a81a5573fb24b261daba89
[ "MIT" ]
null
null
null
tunepy2/optimizers/optimizer_basic.py
efortner/tunepy
28ab7aa0b851d42cf2a81a5573fb24b261daba89
[ "MIT" ]
null
null
null
tunepy2/optimizers/optimizer_basic.py
efortner/tunepy
28ab7aa0b851d42cf2a81a5573fb24b261daba89
[ "MIT" ]
null
null
null
from tunepy2 import Genome from tunepy2.interfaces import AbstractOptimizer, AbstractGenomeFactory, AbstractConvergenceCriterion class BasicOptimizer(AbstractOptimizer): """ A very simple optimizer that builds new Genomes until convergence is satisfied. """ def __init__( self, ...
31.160714
101
0.66533
171
1,745
6.567251
0.380117
0.057881
0.0748
0.046305
0.051647
0
0
0
0
0
0
0.001576
0.272779
1,745
55
102
31.727273
0.883373
0.282521
0
0.08
0
0
0
0
0
0
0
0
0
1
0.16
false
0
0.08
0
0.36
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c499791997ea36839195aeb1485030e5ba2db60
4,759
py
Python
pygrn/grns/gpu.py
nico1as/pyGRN
115d9d42dfbd374fc64393cabefb2a8e245aa6b7
[ "Apache-2.0" ]
7
2018-07-18T16:08:51.000Z
2020-12-09T07:18:35.000Z
pygrn/grns/gpu.py
nico1as/pyGRN
115d9d42dfbd374fc64393cabefb2a8e245aa6b7
[ "Apache-2.0" ]
3
2018-04-13T11:44:59.000Z
2018-04-19T13:58:06.000Z
pygrn/grns/gpu.py
nico1as/pyGRN
115d9d42dfbd374fc64393cabefb2a8e245aa6b7
[ "Apache-2.0" ]
6
2018-07-22T01:54:14.000Z
2021-08-04T16:01:38.000Z
from copy import deepcopy from .classic import ClassicGRN import numpy as np import tensorflow as tf class GPUGRN(ClassicGRN): def __init__(self): pass def reset(self): self.concentration = np.ones( len(self.identifiers)) * (1.0/len(self.identifiers)) self.tf_input_conc =...
41.382609
76
0.59046
597
4,759
4.463987
0.144054
0.091932
0.085553
0.089306
0.531332
0.485178
0.468668
0.449156
0.419512
0.376735
0
0.012162
0.308888
4,759
114
77
41.745614
0.798115
0
0
0.33
0
0
0
0
0
0
0
0
0
1
0.11
false
0.01
0.04
0.01
0.22
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c49b9a646a94f624602a019444beba6bd5601aa
10,892
py
Python
experiments/classification_experiments.py
utkarsh512/Ad-hominem-fallacies
7234173726a359e80492b2919e40ea1a9a0119d1
[ "Apache-2.0" ]
null
null
null
experiments/classification_experiments.py
utkarsh512/Ad-hominem-fallacies
7234173726a359e80492b2919e40ea1a9a0119d1
[ "Apache-2.0" ]
null
null
null
experiments/classification_experiments.py
utkarsh512/Ad-hominem-fallacies
7234173726a359e80492b2919e40ea1a9a0119d1
[ "Apache-2.0" ]
null
null
null
# modified for custom training and testing on GPU by Utkarsh Patel from classifiers import AbstractTokenizedDocumentClassifier from embeddings import WordEmbeddings from nnclassifiers import StackedLSTMTokenizedDocumentClassifier, CNNTokenizedDocumentClassifier from nnclassifiers_experimental import StructuredSelfAtte...
40.340741
182
0.689772
1,249
10,892
5.895116
0.18735
0.009779
0.02173
0.014125
0.63466
0.61809
0.595817
0.570691
0.561456
0.561456
0
0.009006
0.21502
10,892
269
183
40.490706
0.852164
0.099431
0
0.668342
0
0.005025
0.128478
0.04153
0
0
0
0
0.035176
1
0.055276
false
0
0.095477
0
0.160804
0.095477
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3083adebeba13826315956aee8985f1e8da7705d
1,550
py
Python
book_to_wordforms.py
timokoola/suomicollectorscripts
b2e52047fcc14116058e4673052f142a5861e00a
[ "Apache-2.0" ]
null
null
null
book_to_wordforms.py
timokoola/suomicollectorscripts
b2e52047fcc14116058e4673052f142a5861e00a
[ "Apache-2.0" ]
null
null
null
book_to_wordforms.py
timokoola/suomicollectorscripts
b2e52047fcc14116058e4673052f142a5861e00a
[ "Apache-2.0" ]
null
null
null
import requests, libvoikko, json, collections, sys if len(sys.argv) > 1: filename = sys.argv[1] else: print("Need a url that points to a text file") sys.exit(0) r = requests.get(filename) normalized = r.text.split() v = libvoikko.Voikko("fi") word_forms = [ (word, v.analyze(word)) for word in normal...
20.666667
84
0.556129
223
1,550
3.793722
0.336323
0.042553
0.021277
0.047281
0.104019
0.104019
0.104019
0.104019
0.104019
0.104019
0
0.005401
0.283226
1,550
75
85
20.666667
0.756076
0.003226
0
0.072727
0
0
0.110104
0
0
0
0
0
0
1
0.036364
false
0
0.018182
0.036364
0.090909
0.036364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3084f8f882e9fb444232a3f9dc40223a7c80dd37
1,648
py
Python
ellipticcurve/signature.py
zohaibd4l/ecdsa-python
7e4d78a8d1d90bed2ae974f7ba90f98d29f87cac
[ "MIT" ]
76
2018-09-02T17:04:41.000Z
2022-03-23T08:06:57.000Z
ellipticcurve/signature.py
zohaibd4l/ecdsa-python
7e4d78a8d1d90bed2ae974f7ba90f98d29f87cac
[ "MIT" ]
11
2018-12-28T16:30:05.000Z
2022-01-15T23:32:31.000Z
ellipticcurve/signature.py
zohaibd4l/ecdsa-python
7e4d78a8d1d90bed2ae974f7ba90f98d29f87cac
[ "MIT" ]
21
2019-01-15T23:08:35.000Z
2022-01-04T15:41:10.000Z
from .utils.compatibility import * from .utils.der import parse, encodeConstructed, encodePrimitive, DerFieldType from .utils.binary import hexFromByteString, byteStringFromHex, base64FromByteString, byteStringFromBase64 class Signature: def __init__(self, r, s, recoveryId=None): self.r = r self....
33.632653
106
0.677184
159
1,648
6.968553
0.314465
0.025271
0.079422
0.046931
0
0
0
0
0
0
0
0.016667
0.235437
1,648
48
107
34.333333
0.862698
0
0
0.078947
0
0
0
0
0
0
0
0
0
1
0.184211
false
0
0.078947
0.052632
0.473684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3086472fb9e3853923fb7e30229a986a449fd0f4
1,691
py
Python
showroompodcast/showroom_podcast.py
road-master/showroom-podcast
71221b361cabd40e70aa4e8710292b20398e0ab5
[ "MIT" ]
null
null
null
showroompodcast/showroom_podcast.py
road-master/showroom-podcast
71221b361cabd40e70aa4e8710292b20398e0ab5
[ "MIT" ]
1
2021-08-22T07:35:13.000Z
2021-08-22T07:35:13.000Z
showroompodcast/showroom_podcast.py
road-master/showroom-podcast
71221b361cabd40e70aa4e8710292b20398e0ab5
[ "MIT" ]
null
null
null
"""Main module.""" import asyncio import logging from pathlib import Path from asynccpu import ProcessTaskPoolExecutor from showroompodcast import CONFIG from showroompodcast.archiving_task_manager import ArchivingTaskManager from showroompodcast.showroom_archiver import TIME_TO_FORCE_TARMINATION, ShowroomArchiver fr...
40.261905
117
0.746304
190
1,691
6.357895
0.426316
0.078642
0.04553
0.054636
0
0
0
0
0
0
0
0
0.186872
1,691
41
118
41.243902
0.878545
0.01715
0
0
0
0
0
0
0
0
0
0
0
1
0.064516
false
0
0.290323
0
0.387097
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
308a170bee23a8817d6391c877b12dec983c3913
3,239
py
Python
utils/HttpTools.py
atChenAn/SimpleJmeter
34c11c3d325a4633adb6324758abb2023e05fac1
[ "MIT" ]
null
null
null
utils/HttpTools.py
atChenAn/SimpleJmeter
34c11c3d325a4633adb6324758abb2023e05fac1
[ "MIT" ]
null
null
null
utils/HttpTools.py
atChenAn/SimpleJmeter
34c11c3d325a4633adb6324758abb2023e05fac1
[ "MIT" ]
null
null
null
# coding=utf-8 import requests from PyQt5.QtCore import QThread, pyqtSignal from urllib import request, parse from utils import LogTools sysLog = LogTools.SysLogs() class Http: signal = None # 括号里填写信号传递的参数 # init 初始化部分 def __init__(self): self.signal = pyqtSignal(object) # ===============...
25.912
108
0.543069
271
3,239
6.346863
0.398524
0.023256
0.030233
0.036047
0.246512
0.206977
0.206977
0.206977
0.206977
0.206977
0
0.002213
0.302563
3,239
124
109
26.120968
0.759185
0.221673
0
0.303571
0
0
0.054618
0
0
0
0
0
0
1
0.160714
false
0
0.071429
0
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
308b99133cba1b420b98e1026e82294464c485e7
6,293
py
Python
keyboard.py
doitintl/mac-keymappings
e2a78213a9c383e31e9e8f4817f46767f693256a
[ "MIT" ]
null
null
null
keyboard.py
doitintl/mac-keymappings
e2a78213a9c383e31e9e8f4817f46767f693256a
[ "MIT" ]
null
null
null
keyboard.py
doitintl/mac-keymappings
e2a78213a9c383e31e9e8f4817f46767f693256a
[ "MIT" ]
null
null
null
import re import typing import xml.etree.ElementTree as ET from unicodedata import name from typing import * from jinja2 import Template keylayout_file = 'keylayout_file' keylayout_xml = keylayout_file + '.xml' keylayout_html = keylayout_file + '.html' TOFU = '\ufffd' def mapindex_by_modifier(map_to_modifier: Dict[i...
38.607362
152
0.608613
788
6,293
4.640863
0.282995
0.049221
0.073831
0.02461
0.18321
0.1102
0.100082
0.080941
0.080941
0.080941
0
0.008266
0.269506
6,293
162
153
38.845679
0.786382
0.111553
0
0
0
0.017241
0.23545
0.014597
0
0
0
0
0.008621
1
0.103448
false
0.008621
0.051724
0.008621
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30901a41bb25b4bd3ce2983a3e73c05998cafcb0
1,394
py
Python
tests/test_gln.py
jodal/biip
ea56a53a8999f3ded04be881c3348b1b9a373d22
[ "Apache-2.0" ]
17
2020-06-30T08:07:31.000Z
2022-03-26T08:14:24.000Z
tests/test_gln.py
jodal/biip
ea56a53a8999f3ded04be881c3348b1b9a373d22
[ "Apache-2.0" ]
117
2020-08-12T14:32:11.000Z
2022-03-28T04:07:48.000Z
tests/test_gln.py
jodal/biip
ea56a53a8999f3ded04be881c3348b1b9a373d22
[ "Apache-2.0" ]
1
2020-11-23T23:15:58.000Z
2020-11-23T23:15:58.000Z
"""Tests of parsing GLNs.""" import pytest from biip import ParseError from biip.gln import Gln from biip.gs1 import GS1Prefix def test_parse() -> None: gln = Gln.parse("1234567890128") assert gln == Gln( value="1234567890128", prefix=GS1Prefix(value="123", usage="GS1 US"), payload=...
22.852459
80
0.643472
176
1,394
4.9375
0.3125
0.048331
0.069045
0.051784
0.35443
0.330265
0.330265
0.330265
0.252014
0.162255
0
0.149577
0.237446
1,394
60
81
23.233333
0.667921
0.015782
0
0.282051
0
0
0.24451
0
0
0
0
0
0.153846
1
0.153846
false
0
0.102564
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
30909c4ad0b0995022dfe80c45b1417b387a7f7d
3,523
py
Python
web/views.py
Chaixi/My-Django-Demo
43cea290f4a4a1c1a3b981eae3be11cc1188b103
[ "MIT" ]
null
null
null
web/views.py
Chaixi/My-Django-Demo
43cea290f4a4a1c1a3b981eae3be11cc1188b103
[ "MIT" ]
null
null
null
web/views.py
Chaixi/My-Django-Demo
43cea290f4a4a1c1a3b981eae3be11cc1188b103
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator from django.views.decorators.csrf import csrf_exempt import json from django.core import serializers # Create your views here. from django.http import HttpResponse from django.http.response import JsonResponse ...
35.94898
100
0.640931
465
3,523
4.655914
0.189247
0.035566
0.051732
0.064665
0.466975
0.371824
0.356582
0.194919
0.194919
0.177367
0
0.008056
0.224808
3,523
97
101
36.319588
0.784694
0.147885
0
0.171875
0
0
0.079168
0
0
0
0
0
0
1
0.0625
false
0.015625
0.125
0
0.25
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3094ceba4f2b42b31ff34703aec38ad0bb23b36e
658
py
Python
tests/unit/utils/test_beta.py
cwegrzyn/records-mover
e3b71d6c09d99d0bcd6a956b9d09d20f8abe98d2
[ "Apache-2.0" ]
36
2020-03-17T11:56:51.000Z
2022-01-19T16:03:32.000Z
tests/unit/utils/test_beta.py
cwegrzyn/records-mover
e3b71d6c09d99d0bcd6a956b9d09d20f8abe98d2
[ "Apache-2.0" ]
60
2020-03-02T23:13:29.000Z
2021-05-19T15:05:42.000Z
tests/unit/utils/test_beta.py
cwegrzyn/records-mover
e3b71d6c09d99d0bcd6a956b9d09d20f8abe98d2
[ "Apache-2.0" ]
4
2020-08-11T13:17:37.000Z
2021-11-05T21:11:52.000Z
from records_mover.utils import beta, BetaWarning import unittest from unittest.mock import patch @patch('records_mover.utils.warnings') class TestBeta(unittest.TestCase): def test_beta(self, mock_warnings): @beta def my_crazy_function(): return 123 out = my_crazy_function() ...
34.631579
90
0.571429
67
658
5.41791
0.58209
0.057851
0.123967
0
0
0
0
0
0
0
0
0.016706
0.363222
658
18
91
36.555556
0.849642
0
0
0
0
0
0.159574
0.042553
0
0
0
0
0.133333
1
0.133333
false
0
0.2
0.066667
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30959754a6e2c8e563632f08b50d266c0db6795c
4,835
py
Python
msqure.py
Levi-Huynh/JS-INTERVIEW
768e5577fd8f3f26c244154be9d9fd5a348f6171
[ "MIT" ]
null
null
null
msqure.py
Levi-Huynh/JS-INTERVIEW
768e5577fd8f3f26c244154be9d9fd5a348f6171
[ "MIT" ]
null
null
null
msqure.py
Levi-Huynh/JS-INTERVIEW
768e5577fd8f3f26c244154be9d9fd5a348f6171
[ "MIT" ]
null
null
null
""" Mag Square #always do Detective work nm what UNDERSTAND -nxn matrix of distinctive pos INT from 1 to n^2 -Sum of any row, column, or diagonal of length n is always equal to the same number: "Mag" constant -Given: 3x3 matrix s of integers in the inclusive range [1,9] we can convert any digit a to any othe...
24.668367
150
0.535677
976
4,835
2.653689
0.217213
0.075676
0.025483
0.037066
0.351351
0.318147
0.282239
0.282239
0.273745
0.27027
0
0.114207
0.250259
4,835
196
151
24.668367
0.600276
0.705895
0
0
0
0
0.071001
0
0
0
0
0
0
1
0.03125
false
0
0.03125
0
0.0625
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3095b3e9337fe55ac442949b05abdd6196442a62
1,371
py
Python
scripts/common/rename.py
andrewsanchez/GenBankQC-Workflow
8e630ca89c3f1a3cd9d6b2c4987100e3552d831e
[ "MIT" ]
1
2020-03-19T13:00:30.000Z
2020-03-19T13:00:30.000Z
scripts/common/rename.py
andrewsanchez/GenBankQC-Workflow
8e630ca89c3f1a3cd9d6b2c4987100e3552d831e
[ "MIT" ]
null
null
null
scripts/common/rename.py
andrewsanchez/GenBankQC-Workflow
8e630ca89c3f1a3cd9d6b2c4987100e3552d831e
[ "MIT" ]
null
null
null
import re def parse_genome_id(genome): genome_id = re.search("GCA_[0-9]*.[0-9]", genome).group() return genome_id def rm_duplicates(seq): """Remove duplicate strings during renaming """ seen = set() seen_add = seen.add return [x for x in seq if not (x in seen or seen_add(x))] def clean...
30.466667
79
0.648432
184
1,371
4.559783
0.342391
0.095352
0.081049
0.109654
0.183552
0.06913
0
0
0
0
0
0.003656
0.202042
1,371
44
80
31.159091
0.763254
0.070751
0
0.0625
0
0
0.108108
0.035771
0
0
0
0
0
1
0.125
false
0
0.03125
0
0.28125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30963bad8971717768000852380d252200fb7adb
1,598
py
Python
example/fetch.py
bh2smith/duneapi
835d69fc0b62876b1ac313ac5c21faedd80a8350
[ "Apache-2.0" ]
1
2022-03-15T18:58:33.000Z
2022-03-15T18:58:33.000Z
example/fetch.py
bh2smith/duneapi
835d69fc0b62876b1ac313ac5c21faedd80a8350
[ "Apache-2.0" ]
6
2022-03-25T08:18:52.000Z
2022-03-28T13:52:28.000Z
example/fetch.py
bh2smith/duneapi
835d69fc0b62876b1ac313ac5c21faedd80a8350
[ "Apache-2.0" ]
null
null
null
"""Sample Fetch script from DuneAnalytics""" from __future__ import annotations from dataclasses import dataclass from datetime import datetime from src.duneapi.api import DuneAPI from src.duneapi.types import Network, QueryParameter, DuneQuery from src.duneapi.util import open_query @dataclass class Record: ""...
30.730769
85
0.655194
193
1,598
5.274611
0.507772
0.020629
0.041257
0
0
0
0
0
0
0
0
0.016155
0.225282
1,598
51
86
31.333333
0.806139
0.145181
0
0
0
0
0.097398
0.0171
0
0
0
0
0
1
0.055556
false
0
0.166667
0
0.416667
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
309e29bd5c11a93e22fbf0abbb2d7d78bdce1323
1,321
py
Python
constants.py
tabilab-dip/sentiment-embeddings
8859a19d19cb96ee0b0da5053396a1c54bab5da6
[ "MIT" ]
7
2020-11-18T10:02:22.000Z
2022-01-06T03:24:37.000Z
constants.py
tabilab-dip/sentiment-embeddings
8859a19d19cb96ee0b0da5053396a1c54bab5da6
[ "MIT" ]
1
2020-10-26T18:56:23.000Z
2020-10-26T18:56:23.000Z
constants.py
tabilab-dip/sentiment-embeddings
8859a19d19cb96ee0b0da5053396a1c54bab5da6
[ "MIT" ]
1
2020-12-04T13:51:46.000Z
2020-12-04T13:51:46.000Z
#!/usr/bin/py # -*- coding: utf-8 -*- """ @author: Cem Rıfkı Aydın Constant parameters to be leveraged across the program. """ import os COMMAND = "cross_validate" # Dimension size of embeddings EMBEDDING_SIZE = 100 #Language can be either "turkish" or "english" LANG = "turkish" DATASET_PATH = os.path.join("inpu...
26.42
112
0.7676
199
1,321
4.934673
0.567839
0.01833
0.03055
0.04277
0.094705
0.075356
0.075356
0.075356
0
0
0
0.008842
0.14383
1,321
49
113
26.959184
0.859416
0.445117
0
0
0
0
0.312925
0.170068
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30a37bf131fb4b3429d304093f34cb95cda25236
9,285
py
Python
torpido/io.py
AP-Atul/Torpido
a646b4d6de7f2e2c96de4c64ce3113f53e3931c2
[ "Unlicense" ]
21
2020-12-23T07:13:10.000Z
2022-01-12T10:32:22.000Z
torpido/io.py
AP-Atul/Torpido
a646b4d6de7f2e2c96de4c64ce3113f53e3931c2
[ "Unlicense" ]
2
2020-12-30T10:45:42.000Z
2021-09-25T09:52:00.000Z
torpido/io.py
AP-Atul/Torpido
a646b4d6de7f2e2c96de4c64ce3113f53e3931c2
[ "Unlicense" ]
1
2021-02-06T21:39:41.000Z
2021-02-06T21:39:41.000Z
""" This file contains function to separate out video and audio using ffmpeg. It consists of two functions to split and merge video and audio using ffmpeg. """ import os from torpido.config.constants import (CACHE_DIR, CACHE_NAME, IN_AUDIO_FILE, OUT_AUDIO_FILE, ...
39.510638
125
0.627464
1,179
9,285
4.597964
0.164546
0.070836
0.055156
0.059768
0.4418
0.37613
0.353994
0.323372
0.290168
0.290168
0
0
0.287561
9,285
234
126
39.679487
0.819501
0.294561
0
0.339623
0
0
0.053498
0.028642
0
0
0
0
0
1
0.103774
false
0
0.056604
0
0.283019
0.028302
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30a54810ed9eb56db883cc95109f0ab931d09a5e
605
py
Python
COS120/testPlanet.py
thejayhaykid/Python
641c33b94762f0cace203dcf4cc121571625ab02
[ "MIT" ]
null
null
null
COS120/testPlanet.py
thejayhaykid/Python
641c33b94762f0cace203dcf4cc121571625ab02
[ "MIT" ]
null
null
null
COS120/testPlanet.py
thejayhaykid/Python
641c33b94762f0cace203dcf4cc121571625ab02
[ "MIT" ]
null
null
null
import planetClass def createSomePlanets(): aPlanet=planetClass.Planet("Zorks",2000,30000,100000,5) bPlanet=planetClass.Planet("Zapps",1000,20000,200000,17) print(aPlanet.getName() + " has a radius of " + str(aPlanet.getRadius())) planetList=[aPlanet,bPlanet] for planet in planetList: print...
40.333333
91
0.680992
70
605
5.885714
0.485714
0.097087
0.080097
0.101942
0.203884
0.203884
0.203884
0.203884
0
0
0
0.065606
0.168595
605
14
92
43.214286
0.753479
0
0
0.166667
0
0
0.128926
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.166667
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30a7222ecfe5a24f86695b0a4cf26331038a5731
1,410
py
Python
Source/mincost.py
aarsheem/696-ds
2d74b1e3f430e369202982d7ad8c56f362b00f76
[ "MIT" ]
2
2020-02-12T22:56:40.000Z
2020-02-17T16:59:05.000Z
Source/mincost.py
aarsheem/696-ds
2d74b1e3f430e369202982d7ad8c56f362b00f76
[ "MIT" ]
null
null
null
Source/mincost.py
aarsheem/696-ds
2d74b1e3f430e369202982d7ad8c56f362b00f76
[ "MIT" ]
2
2020-02-12T17:25:33.000Z
2021-02-01T20:29:17.000Z
import numpy as np from systemrl.agents.q_learning import QLearning import matplotlib.pyplot as plt from helper import decaying_epsilon, evaluate_interventions from tqdm import tqdm #This is not converging def mincost(env, human_policy, min_performance, agent, num_episodes=1000, max_steps=1000): print("mincost") ...
32.790698
90
0.595745
161
1,410
4.987578
0.42236
0.024907
0.034869
0
0
0
0
0
0
0
0
0.018028
0.331206
1,410
42
91
33.571429
0.83351
0.015603
0
0.055556
0
0
0.005047
0
0
0
0
0
0
1
0.027778
false
0
0.138889
0
0.194444
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30a791a26136890491f10b4931b42e8e670355a5
2,076
py
Python
server/algorithms.py
sebastianfrey/geoio-server
2f127244adda96d54e7a082f8514f9bdc9c8db97
[ "MIT" ]
null
null
null
server/algorithms.py
sebastianfrey/geoio-server
2f127244adda96d54e7a082f8514f9bdc9c8db97
[ "MIT" ]
null
null
null
server/algorithms.py
sebastianfrey/geoio-server
2f127244adda96d54e7a082f8514f9bdc9c8db97
[ "MIT" ]
null
null
null
"""All algorithms used by geoio-server""" import math import functools import geojson def angle(point_1, point_2): """calculates the angle between two points in radians""" return math.atan2(point_2[1] - point_1[1], point_2[0] - point_1[0]) def convex_hull(collection): """Calculates the convex hull of an ...
32.952381
132
0.66474
286
2,076
4.643357
0.283217
0.045181
0.135542
0.018072
0.108434
0.088855
0
0
0
0
0
0.032297
0.209538
2,076
62
133
33.483871
0.776965
0.070809
0
0
0
0
0.081547
0
0
0
0
0
0
1
0.05
false
0
0.075
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
30a8e19c8a3340ed914debb399aef2df50e28dac
2,495
py
Python
First Project/Exercise2/modified_bisection.py
TasosOperatingInBinary/Numerical-Analysis-Projects
61a8014f2b853a646145cea5a4d3655e100be854
[ "MIT" ]
null
null
null
First Project/Exercise2/modified_bisection.py
TasosOperatingInBinary/Numerical-Analysis-Projects
61a8014f2b853a646145cea5a4d3655e100be854
[ "MIT" ]
null
null
null
First Project/Exercise2/modified_bisection.py
TasosOperatingInBinary/Numerical-Analysis-Projects
61a8014f2b853a646145cea5a4d3655e100be854
[ "MIT" ]
null
null
null
import numpy as np def modified_bisection(f, a, b, eps=5e-6): """ Function that finds a root using modified Bisection method for a given function f(x). On each iteration instead of the middle of the interval, a random number is chosen as the next guess for the root. The function fi...
42.288136
119
0.600401
382
2,495
3.89267
0.314136
0.073974
0.028245
0.02152
0.180901
0.153329
0.114324
0.076664
0.076664
0.076664
0
0.009744
0.341884
2,495
58
120
43.017241
0.895859
0.676553
0
0.111111
0
0
0
0
0
0
0
0
0
1
0.055556
false
0
0.055556
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
30a910ea0718b3060e358f1839e61f48a5b25649
8,454
py
Python
dynamic_forms/models.py
juandisay/django-dynamic-forms
761bfea5332fbd4d247a0fa55a19cfc0dd36e3c8
[ "BSD-3-Clause" ]
135
2015-01-16T08:14:23.000Z
2021-12-22T07:21:37.000Z
dynamic_forms/models.py
ayoub-root/django-dynamic-forms
614b9a06f6edfeb3349b7e64cc8820e56535ad59
[ "BSD-3-Clause" ]
33
2015-01-18T13:24:00.000Z
2019-05-03T12:26:17.000Z
dynamic_forms/models.py
ayoub-root/django-dynamic-forms
614b9a06f6edfeb3349b7e64cc8820e56535ad59
[ "BSD-3-Clause" ]
48
2015-01-20T20:04:20.000Z
2022-01-06T10:02:57.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json from collections import OrderedDict from django.core.urlresolvers import reverse from django.db import models from django.db.transaction import atomic from django.template.defaultfilters import slugify from django.utils.crypto import get_rand...
38.427273
88
0.62917
1,028
8,454
4.957198
0.2393
0.03022
0.020016
0.018838
0.167975
0.111068
0.091444
0.074568
0.074568
0.020016
0
0.006209
0.257038
8,454
219
89
38.60274
0.805127
0.075112
0
0.16568
0
0
0.158738
0.013945
0
0
0
0
0
1
0.088757
false
0.005917
0.088757
0.023669
0.402367
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30abf6ce8fba41eb376313eba17a397685a314e9
29,178
py
Python
src/pumpwood_djangoviews/views.py
Murabei-OpenSource-Codes/pumpwood-djangoviews
792fb825a5e924d1b7307c0bc3b40d798b68946d
[ "BSD-3-Clause" ]
null
null
null
src/pumpwood_djangoviews/views.py
Murabei-OpenSource-Codes/pumpwood-djangoviews
792fb825a5e924d1b7307c0bc3b40d798b68946d
[ "BSD-3-Clause" ]
null
null
null
src/pumpwood_djangoviews/views.py
Murabei-OpenSource-Codes/pumpwood-djangoviews
792fb825a5e924d1b7307c0bc3b40d798b68946d
[ "BSD-3-Clause" ]
null
null
null
"""Create views using Pumpwood pattern.""" import os import pandas as pd import simplejson as json from io import BytesIO from django.conf import settings from django.http import HttpResponse from rest_framework.parsers import JSONParser from rest_framework import viewsets, status from rest_framework.response import Re...
38.955941
79
0.579512
3,136
29,178
5.185906
0.122449
0.041936
0.02558
0.015557
0.376437
0.339851
0.317408
0.285126
0.281436
0.250507
0
0.001527
0.326479
29,178
748
80
39.008021
0.826023
0.180753
0
0.314465
0
0
0.097511
0.001956
0
0
0
0
0
1
0.039832
false
0
0.039832
0
0.165618
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30b35825288ae55d3b4e9f3fda30cd87266a239e
4,030
py
Python
test_contest/solutions/ladders.py
tbuzzelli/Veris
b2e9bd5f944a60365de8c18f17e041fa65f9e74a
[ "Apache-2.0" ]
7
2018-09-26T17:17:01.000Z
2020-12-20T17:23:33.000Z
test_contest/solutions/ladders.py
tbuzzelli/Veris
b2e9bd5f944a60365de8c18f17e041fa65f9e74a
[ "Apache-2.0" ]
4
2018-09-26T17:49:24.000Z
2020-12-20T17:15:37.000Z
test_contest/solutions/ladders.py
tbuzzelli/Veris
b2e9bd5f944a60365de8c18f17e041fa65f9e74a
[ "Apache-2.0" ]
1
2021-12-03T17:49:50.000Z
2021-12-03T17:49:50.000Z
# Written by Will Cromar # Python 3.6 from collections import deque # DX/DY array. In order of precedence, we'll move # left, right, up, and down DX = [-1, 1, 0, 0] DY = [0, 0, -1, 1] # Constants for types of spaces EMPTY = '.' LADDER = '#' CHUTE = '*' START = 'S' EXIT = 'E' # Primary business fu...
29.416058
77
0.525806
606
4,030
3.493399
0.320132
0.014171
0.019839
0.009447
0.140293
0.083609
0.083609
0.083609
0.076523
0.076523
0
0.010285
0.372705
4,030
136
78
29.632353
0.827136
0.368983
0
0.115942
0
0
0.008872
0
0
0
0
0
0
1
0.101449
false
0
0.014493
0.028986
0.202899
0.014493
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30b3709aef46a9041782b934920c7987f957d49e
1,789
py
Python
fits2fshr.py
rainwoodman/fsfits
e052c159915e7a67f10972c7851d2924afeaa302
[ "MIT" ]
null
null
null
fits2fshr.py
rainwoodman/fsfits
e052c159915e7a67f10972c7851d2924afeaa302
[ "MIT" ]
null
null
null
fits2fshr.py
rainwoodman/fsfits
e052c159915e7a67f10972c7851d2924afeaa302
[ "MIT" ]
null
null
null
import fitsio import fsfits from argparse import ArgumentParser import json import numpy ap = ArgumentParser() ap.add_argument('--check', action='store_true', default=False, help="Test if output contains identical information to input") ap.add_argument('input') ap.add_argument('output') ns = ap.parse_args(...
28.854839
70
0.455562
184
1,789
4.358696
0.380435
0.018703
0.048628
0.041147
0.137157
0.118454
0.074813
0
0
0
0
0.007007
0.441587
1,789
61
71
29.327869
0.795796
0
0
0.269231
0
0
0.074902
0
0
0
0
0
0.057692
1
0.019231
false
0
0.096154
0
0.115385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30b43d3abb832538af7887238ea688d9f984e472
4,086
py
Python
window_switcher/window.py
include4eto/linux-appfinder
23b00d7e18760409e53aad7deb0544d7a4850bc3
[ "MIT" ]
2
2018-04-24T22:05:08.000Z
2018-04-25T09:50:37.000Z
window_switcher/window.py
include4eto/linux-appfinder
23b00d7e18760409e53aad7deb0544d7a4850bc3
[ "MIT" ]
1
2018-04-25T09:26:59.000Z
2018-04-25T09:36:43.000Z
window_switcher/window.py
include4eto/window-switcher
23b00d7e18760409e53aad7deb0544d7a4850bc3
[ "MIT" ]
2
2019-11-07T03:43:53.000Z
2021-03-25T12:14:01.000Z
from tkinter import Entry, Listbox, StringVar import sys, tkinter, subprocess from window_switcher.aux import get_windows class Window: FONT = ('Monospace', 11) ITEM_HEIGHT = 22 MAX_FOUND = 10 BG_COLOR = '#202b3a' FG_COLOR = '#ced0db' def resize(self, items): if self.resized: ...
27.986301
98
0.564366
496
4,086
4.52621
0.282258
0.068597
0.057906
0.03029
0.170601
0.158575
0.158575
0.158575
0.131849
0.131849
0
0.01958
0.312531
4,086
145
99
28.17931
0.779637
0.065835
0
0.213592
0
0
0.037057
0
0
0
0
0
0
1
0.087379
false
0
0.029126
0
0.223301
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30b4986ed423fc0d856c04b8b25dc611fff18369
3,394
py
Python
imcsdk/mometa/bios/BiosVfSgxLePubKeyHash.py
ecoen66/imcsdk
b10eaa926a5ee57cea7182ae0adc8dd1c818b0ab
[ "Apache-2.0" ]
31
2016-06-14T07:23:59.000Z
2021-09-12T17:17:26.000Z
imcsdk/mometa/bios/BiosVfSgxLePubKeyHash.py
sthagen/imcsdk
1831eaecb5960ca03a8624b1579521749762b932
[ "Apache-2.0" ]
109
2016-05-25T03:56:56.000Z
2021-10-18T02:58:12.000Z
imcsdk/mometa/bios/BiosVfSgxLePubKeyHash.py
sthagen/imcsdk
1831eaecb5960ca03a8624b1579521749762b932
[ "Apache-2.0" ]
67
2016-05-17T05:53:56.000Z
2022-03-24T15:52:53.000Z
"""This module contains the general information for BiosVfSgxLePubKeyHash ManagedObject.""" from ...imcmo import ManagedObject from ...imccoremeta import MoPropertyMeta, MoMeta from ...imcmeta import VersionMeta class BiosVfSgxLePubKeyHashConsts: VP_SGX_LE_PUB_KEY_HASH0_PLATFORM_DEFAULT = "platform-default" ...
50.656716
235
0.675015
385
3,394
5.58961
0.231169
0.048792
0.065056
0.092937
0.493959
0.47723
0.192379
0.153346
0.139405
0.079461
0
0.036878
0.177077
3,394
66
236
51.424242
0.73362
0.035946
0
0.042553
0
0
0.291411
0.103988
0
0
0.008896
0
0
1
0.021277
false
0
0.06383
0
0.319149
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30babde668ddbdfd3b25264b810e1027b167156a
1,791
py
Python
setup.py
naritotakizawa/getsize
25989cdb07e343c6684586768e60363f366f8c71
[ "MIT" ]
1
2017-08-07T18:15:37.000Z
2017-08-07T18:15:37.000Z
setup.py
naritotakizawa/getsize
25989cdb07e343c6684586768e60363f366f8c71
[ "MIT" ]
null
null
null
setup.py
naritotakizawa/getsize
25989cdb07e343c6684586768e60363f366f8c71
[ "MIT" ]
null
null
null
import os import sys from setuptools import find_packages, setup from setuptools.command.test import test as TestCommand class PyTest(TestCommand): user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")] def initialize_options(self): TestCommand.initialize_options(self) ...
32.563636
82
0.624232
199
1,791
5.502513
0.547739
0.086758
0.114155
0.094977
0
0
0
0
0
0
0
0.007407
0.246231
1,791
55
83
32.563636
0.803704
0.027359
0
0
0
0
0.33827
0.014218
0
0
0
0
0
1
0.065217
false
0.021739
0.108696
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30bb85a4d211b4c8e0c05cca0ae92e39839b9906
1,194
py
Python
dockwidgetpluginbase.py
sandroklippel/qgis-dockable-plugin
9410d20646155d1fe90ec44caa7d15a607d1e72d
[ "MIT" ]
null
null
null
dockwidgetpluginbase.py
sandroklippel/qgis-dockable-plugin
9410d20646155d1fe90ec44caa7d15a607d1e72d
[ "MIT" ]
null
null
null
dockwidgetpluginbase.py
sandroklippel/qgis-dockable-plugin
9410d20646155d1fe90ec44caa7d15a607d1e72d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from PyQt5 import QtCore, QtGui, QtWidgets class Ui_DockWidgetPluginBase(object): def setupUi(self, DockWidgetPluginBase): DockWidgetPluginBase.setObjectName("DockWidgetPluginBase") DockWidgetPluginBase.resize(232, 141) self.dockWidgetContents = QtWidgets.QWidget() ...
42.642857
98
0.741206
101
1,194
8.722772
0.465347
0.124858
0.088536
0
0
0
0
0
0
0
0
0.011964
0.159967
1,194
27
99
44.222222
0.866401
0.064489
0
0
0
0
0.145553
0
0
0
0
0
0
1
0.1
false
0
0.05
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
30bc0d5caa2ba95a5a11a4f13508d048a4057cd0
684
py
Python
setup.py
KirstensGitHub/attention-memory-task
c3d4b13e43134d4cc25c277e5f49220ac48ab931
[ "MIT" ]
4
2017-10-30T20:46:25.000Z
2020-10-16T16:28:29.000Z
setup.py
KirstensGitHub/attention-memory-task
c3d4b13e43134d4cc25c277e5f49220ac48ab931
[ "MIT" ]
26
2017-10-30T20:44:07.000Z
2019-10-11T20:07:33.000Z
setup.py
KirstensGitHub/attention-memory-task
c3d4b13e43134d4cc25c277e5f49220ac48ab931
[ "MIT" ]
7
2019-08-21T13:20:41.000Z
2022-03-01T03:25:26.000Z
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.md') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='attention-memory-task', version='0.1.0', description='Attention and Memory Experiment', long_description='This reposi...
29.73913
170
0.72076
85
684
5.752941
0.658824
0.04908
0.07771
0
0
0
0
0
0
0
0
0.006932
0.156433
684
22
171
31.090909
0.840555
0.030702
0
0
0
0
0.504545
0.074242
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30bc925cd0ed0b7b60bfef9a34e4c38e0b3fa974
3,659
py
Python
blue_print/testLogReg.py
yimingq/COMP90051-SML
3e1d93d9b1a8cd23f4c05eeb18d615e87d4d6369
[ "Apache-2.0" ]
1
2020-09-16T04:58:49.000Z
2020-09-16T04:58:49.000Z
blue_print/testLogReg.py
yimingq/COMP90051-SML
3e1d93d9b1a8cd23f4c05eeb18d615e87d4d6369
[ "Apache-2.0" ]
null
null
null
blue_print/testLogReg.py
yimingq/COMP90051-SML
3e1d93d9b1a8cd23f4c05eeb18d615e87d4d6369
[ "Apache-2.0" ]
2
2020-03-31T08:55:45.000Z
2020-09-05T14:02:16.000Z
from numpy import * import matplotlib.pyplot as plt import time from LogReg import trainLogRegres, showLogRegres, predicTestData # from sklearn.datasets import make_circles # from sklearn.model_selection import train_test_split # from sklearn.metrics import accuracy_score import csv def loadTrainData(): train_x =...
28.364341
81
0.608363
471
3,659
4.564756
0.284501
0.027907
0.053488
0.022326
0.21814
0.185581
0.148837
0.148837
0.047442
0.047442
0
0.0251
0.248702
3,659
128
82
28.585938
0.757003
0.558896
0
0
0
0
0.089669
0.036387
0
0
0
0
0
1
0.052632
false
0.026316
0.131579
0
0.236842
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30bf63f85cca01c1bcc1223cd6e0ff4f4c12199f
7,652
py
Python
tests/exporter/test_metadata.py
HumanCellAtlas/ingest-common
6a230f9606f64cd787b67c143854db36e012a2b7
[ "Apache-2.0" ]
null
null
null
tests/exporter/test_metadata.py
HumanCellAtlas/ingest-common
6a230f9606f64cd787b67c143854db36e012a2b7
[ "Apache-2.0" ]
null
null
null
tests/exporter/test_metadata.py
HumanCellAtlas/ingest-common
6a230f9606f64cd787b67c143854db36e012a2b7
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from mock import Mock from ingest.exporter.metadata import MetadataResource, MetadataService, MetadataParseException, MetadataProvenance class MetadataResourceTest(TestCase): def test_provenance_from_dict(self): # given: uuid_value = '3f3212da-d5d0-4e55-b31d-83243f...
42.748603
119
0.604809
733
7,652
6.060027
0.20191
0.057407
0.049527
0.024313
0.507879
0.303692
0.271724
0.188429
0.136875
0.136875
0
0.060018
0.292342
7,652
178
120
42.988764
0.760295
0.033978
0
0.232759
0
0
0.187772
0.082745
0
0
0
0
0.25
1
0.077586
false
0
0.025862
0.008621
0.12931
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30c056f49843fec67503aa5c21f43521e60897d9
5,708
py
Python
src/delivery/delivery.py
ska-telescope/sdp-workflows-procfunc
ef6e7be9584a006e936139ae653902a41af4d906
[ "BSD-3-Clause" ]
null
null
null
src/delivery/delivery.py
ska-telescope/sdp-workflows-procfunc
ef6e7be9584a006e936139ae653902a41af4d906
[ "BSD-3-Clause" ]
null
null
null
src/delivery/delivery.py
ska-telescope/sdp-workflows-procfunc
ef6e7be9584a006e936139ae653902a41af4d906
[ "BSD-3-Clause" ]
null
null
null
""" Prototype Delivery Workflow. """ import os import sys import glob import logging import ska_sdp_config import dask import distributed from google.oauth2 import service_account from google.cloud import storage # Initialise logging logging.basicConfig() LOG = logging.getLogger("delivery") LOG.setLevel(logging.INF...
30.201058
86
0.666608
758
5,708
4.850923
0.220317
0.016318
0.01523
0.026652
0.208866
0.193364
0.132989
0.115583
0.08458
0.065543
0
0.002484
0.224071
5,708
188
87
30.361702
0.827726
0.22267
0
0.130841
0
0
0.125522
0.009977
0
0
0
0
0
1
0.046729
false
0.009346
0.084112
0
0.149533
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30c246c819da13e7b7505537f7f56ed38dc95334
7,516
py
Python
ands/ds/BinaryHeap.py
bssrdf/ands
504d91abfe12d316119424ddcb0ad3df3207ee73
[ "MIT" ]
50
2016-12-14T15:10:39.000Z
2022-03-05T23:32:19.000Z
ands/ds/BinaryHeap.py
bssrdf/ands
504d91abfe12d316119424ddcb0ad3df3207ee73
[ "MIT" ]
58
2016-11-17T23:27:52.000Z
2020-12-30T13:55:46.000Z
ands/ds/BinaryHeap.py
bssrdf/ands
504d91abfe12d316119424ddcb0ad3df3207ee73
[ "MIT" ]
15
2016-12-11T12:43:18.000Z
2020-12-17T12:44:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ # Meta-info Author: Nelson Brochado Created: 01/07/2015 Updated: 06/04/2018 # Description Contains the abstract class BinaryHeap. # References - Slides by prof. A. Carzaniga - Chapter 13 of Introduction to Algorithms (3rd ed.) - http://www.math.clemson.edu/~war...
29.245136
112
0.608302
1,090
7,516
4.100917
0.282569
0.028635
0.043624
0.028635
0.230649
0.184116
0.16264
0.10179
0.10179
0.096197
0
0.018934
0.283262
7,516
256
113
29.359375
0.810841
0.458622
0
0.19
0
0
0.044846
0.006563
0
0
0
0
0.04
1
0.2
false
0.02
0.03
0.02
0.37
0.01
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30c2fc61b7992bd51c445c7ef21cc3452bd93e85
2,190
py
Python
product.py
trytonus/trytond-customs-value
ce2097fefab714131fae77ec1f49322141051110
[ "BSD-3-Clause" ]
null
null
null
product.py
trytonus/trytond-customs-value
ce2097fefab714131fae77ec1f49322141051110
[ "BSD-3-Clause" ]
1
2016-04-12T18:10:19.000Z
2016-04-12T18:10:19.000Z
product.py
fulfilio/trytond-customs-value
ce2097fefab714131fae77ec1f49322141051110
[ "BSD-3-Clause" ]
6
2015-08-24T12:44:43.000Z
2016-04-12T10:04:08.000Z
# -*- coding: utf-8 -*- from trytond.pool import PoolMeta from trytond.model import fields from trytond.pyson import Eval, Bool, Not __all__ = ['Product'] __metaclass__ = PoolMeta class Product: "Product" __name__ = 'product.product' country_of_origin = fields.Many2One( 'country.country', 'Cou...
27.375
77
0.636986
238
2,190
5.478992
0.222689
0.128834
0.064417
0.075153
0.41181
0.268405
0.168712
0.115031
0
0
0
0.001263
0.276712
2,190
79
78
27.721519
0.82197
0.013699
0
0.21875
0
0
0.217351
0.108906
0
0
0
0
0
1
0.0625
false
0
0.046875
0.0625
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30c67023520b45683449e683c5e3f1a8e0df06b5
523
py
Python
samples/indicator/rsi_test.py
gsamarakoon/ParadoxTrading
2c4024e60b14bf630fd141ccd4c77f197b7c901a
[ "MIT" ]
95
2018-01-14T14:35:35.000Z
2021-03-17T02:10:24.000Z
samples/indicator/rsi_test.py
yutiansut/ParadoxTrading
b915d1491663443bedbb048017abeed3f7dcd4e2
[ "MIT" ]
2
2018-01-14T14:35:51.000Z
2018-07-06T02:57:49.000Z
samples/indicator/rsi_test.py
yutiansut/ParadoxTrading
b915d1491663443bedbb048017abeed3f7dcd4e2
[ "MIT" ]
25
2018-01-14T14:38:08.000Z
2020-07-15T16:03:04.000Z
from ParadoxTrading.Chart import Wizard from ParadoxTrading.Fetch.ChineseFutures import FetchDominantIndex from ParadoxTrading.Indicator import RSI fetcher = FetchDominantIndex() market = fetcher.fetchDayData('20100701', '20170101', 'rb') rsi = RSI(14).addMany(market).getAllData() wizard = Wizard() price_view = wiz...
27.526316
66
0.76673
63
523
6.269841
0.460317
0.136709
0.086076
0
0
0
0
0
0
0
0
0.039832
0.087954
523
18
67
29.055556
0.78826
0
0
0
0
0
0.091778
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30c7a9362a7e00f4dea1c4a3028e5f5f01134985
406
py
Python
Multipliers/mult.py
ThoAppelsin/pure-music
ab1a8604cc24b1dbf329a556154d5f0cc7f2236b
[ "MIT" ]
null
null
null
Multipliers/mult.py
ThoAppelsin/pure-music
ab1a8604cc24b1dbf329a556154d5f0cc7f2236b
[ "MIT" ]
null
null
null
Multipliers/mult.py
ThoAppelsin/pure-music
ab1a8604cc24b1dbf329a556154d5f0cc7f2236b
[ "MIT" ]
null
null
null
import fractions from pprint import pprint lcm_limit = 32 octave_limit = 4 candidates = [(x, y) for x in range(1, lcm_limit + 1) for y in range(1, lcm_limit + 1)] candidates = [c for c in candidates if fractions.gcd(c[0], c[1]) == 1 and c[0] * c[1] <= lcm_limit and 1 / octave_limit <= c[0] / c[1] <= octave_limit] ...
25.375
87
0.672414
76
406
3.5
0.342105
0.120301
0.045113
0.06015
0.12782
0.12782
0
0
0
0
0
0.050746
0.174877
406
16
88
25.375
0.743284
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30c828d9ab280febb16bf5ef11feff5b3f99b8e8
573
py
Python
Python3/24.swap-nodes-in-pairs.py
canhetingsky/LeetCode
67f4eaeb5746d361056d08df828c653f89dd9fdd
[ "MIT" ]
1
2019-09-23T13:25:21.000Z
2019-09-23T13:25:21.000Z
Python3/24.swap-nodes-in-pairs.py
canhetingsky/LeetCode
67f4eaeb5746d361056d08df828c653f89dd9fdd
[ "MIT" ]
6
2019-10-25T10:17:50.000Z
2019-11-17T05:07:19.000Z
Python3/24.swap-nodes-in-pairs.py
canhetingsky/LeetCode
67f4eaeb5746d361056d08df828c653f89dd9fdd
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=24 lang=python3 # # [24] Swap Nodes in Pairs # # @lc code=start # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def swapPairs(self, head: ListNode) -> ListNode: curr = dummyHead =...
19.758621
52
0.556719
78
573
4.038462
0.5
0.126984
0.057143
0
0
0
0
0
0
0
0
0.015584
0.328098
573
28
53
20.464286
0.802597
0.369983
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30cc83890770a4003caacdcf071dce2fdf40b1e0
1,102
py
Python
lesson_01/005.py
amindmobile/geekbrains-python-002
4bc2f7af755d00e73ddc48f1138830cb78e87034
[ "MIT" ]
null
null
null
lesson_01/005.py
amindmobile/geekbrains-python-002
4bc2f7af755d00e73ddc48f1138830cb78e87034
[ "MIT" ]
null
null
null
lesson_01/005.py
amindmobile/geekbrains-python-002
4bc2f7af755d00e73ddc48f1138830cb78e87034
[ "MIT" ]
null
null
null
# Запросите у пользователя значения выручки и издержек фирмы. Определите, с каким финансовым результатом работает фирма # (прибыль — выручка больше издержек, или убыток — издержки больше выручки). Выведите соответствующее сообщение. Если # фирма отработала с прибылью, вычислите рентабельность выручки (соотношение прибы...
55.1
119
0.777677
140
1,102
6.114286
0.564286
0.074766
0.03972
0.051402
0
0
0
0
0
0
0
0.003155
0.137024
1,102
19
120
58
0.892744
0.46461
0
0
0
0
0.519793
0.07401
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30d0d4d6a16170d4deabeabcc9a6af64c6ea52e2
5,498
py
Python
src/pumpwood_djangoviews/action.py
Murabei-OpenSource-Codes/pumpwood-djangoviews
792fb825a5e924d1b7307c0bc3b40d798b68946d
[ "BSD-3-Clause" ]
null
null
null
src/pumpwood_djangoviews/action.py
Murabei-OpenSource-Codes/pumpwood-djangoviews
792fb825a5e924d1b7307c0bc3b40d798b68946d
[ "BSD-3-Clause" ]
null
null
null
src/pumpwood_djangoviews/action.py
Murabei-OpenSource-Codes/pumpwood-djangoviews
792fb825a5e924d1b7307c0bc3b40d798b68946d
[ "BSD-3-Clause" ]
null
null
null
"""Define actions decorator.""" import inspect import pandas as pd from typing import cast from datetime import date, datetime from typing import Callable from pumpwood_communication.exceptions import PumpWoodActionArgsException class Action: """Define a Action class to be used in decorator action.""" def _...
35.934641
77
0.591124
595
5,498
5.295798
0.247059
0.031736
0.030467
0.019042
0.160584
0.10092
0.066646
0.066646
0
0
0
0.001342
0.322117
5,498
152
78
36.171053
0.844111
0.166788
0
0.153846
0
0
0.065526
0
0
0
0
0
0
1
0.048077
false
0
0.057692
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30d36f714ffcf578c5b755784494e079e2271651
5,426
py
Python
logistic-regression/mnist_binary_classifier.py
eliben/deep-learning-samples
d5ca86c5db664fabfb302cbbc231c50ec3d6a103
[ "Unlicense" ]
183
2015-12-29T07:21:24.000Z
2022-01-18T01:19:23.000Z
logistic-regression/mnist_binary_classifier.py
eliben/deep-learning-samples
d5ca86c5db664fabfb302cbbc231c50ec3d6a103
[ "Unlicense" ]
null
null
null
logistic-regression/mnist_binary_classifier.py
eliben/deep-learning-samples
d5ca86c5db664fabfb302cbbc231c50ec3d6a103
[ "Unlicense" ]
68
2016-06-02T15:31:51.000Z
2021-09-08T19:58:10.000Z
# A binary linear classifier for MNIST digits. # # Poses a binary classification problem - is this image showing digit D (for # some D, for example "4"); trains a linear classifier to solve the problem. # # Eli Bendersky (http://eli.thegreenplace.net) # This code is in the public domain from __future__ import print_fun...
44.113821
80
0.605418
691
5,426
4.51809
0.250362
0.019218
0.044843
0.046124
0.225176
0.213004
0.155029
0.141576
0.046765
0.032031
0
0.011449
0.291743
5,426
122
81
44.47541
0.800937
0.13509
0
0.097826
0
0
0.159752
0
0
0
0
0
0
1
0
false
0
0.065217
0
0.065217
0.163043
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30d65ba961b4012c418911d00c91a40240451543
5,409
py
Python
IEEE-ASHRAE_kernel/01_data_minify.py
Daniel1586/Initiative_Kaggle
945e0a2ebe94aa7ee3ed59dd0de53d9a1b82aa05
[ "MIT" ]
1
2019-08-12T14:28:22.000Z
2019-08-12T14:28:22.000Z
IEEE-ASHRAE_kernel/01_data_minify.py
Daniel1586/Initiative_Kaggle
945e0a2ebe94aa7ee3ed59dd0de53d9a1b82aa05
[ "MIT" ]
null
null
null
IEEE-ASHRAE_kernel/01_data_minify.py
Daniel1586/Initiative_Kaggle
945e0a2ebe94aa7ee3ed59dd0de53d9a1b82aa05
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ (https://www.kaggle.com/c/ashrae-energy-prediction). Train shape:(590540,394),identity(144233,41)--isFraud 3.5% Test shape:(506691,393),identity(141907,41) ############### TF Version: 1.13.1/Python Version: 3.7 ############### """ import os import math import random impo...
41.290076
95
0.612683
778
5,409
4.062982
0.244216
0.031636
0.034166
0.022145
0.388168
0.319203
0.285353
0.139829
0.139829
0.094274
0
0.035145
0.210945
5,409
130
96
41.607692
0.705483
0.094842
0
0.158416
0
0
0.174314
0.010037
0
0
0
0
0
1
0.019802
false
0
0.069307
0
0.09901
0.19802
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30d759a40bbb943fa4065bfc1dc4dff7a8c4a0fa
8,774
py
Python
src/optim/DeepSAD_trainer.py
wych1005/Deep-SAD-PyTorch
af93186a38ed30985dc155d1b00b90aa181cfe0b
[ "MIT" ]
null
null
null
src/optim/DeepSAD_trainer.py
wych1005/Deep-SAD-PyTorch
af93186a38ed30985dc155d1b00b90aa181cfe0b
[ "MIT" ]
null
null
null
src/optim/DeepSAD_trainer.py
wych1005/Deep-SAD-PyTorch
af93186a38ed30985dc155d1b00b90aa181cfe0b
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from base.base_trainer import BaseTrainer from base.base_dataset import BaseADDataset from base.base_net import BaseNet import seaborn as sns from torch.utils.data.dataloader import DataLoader from sklearn.metrics import roc_auc_score, confusion_matrix, average_precision_score, roc_curve...
39.345291
119
0.574652
1,110
8,774
4.39009
0.214414
0.027909
0.022163
0.01416
0.312333
0.252001
0.208085
0.18387
0.18387
0.146932
0
0.01714
0.301801
8,774
222
120
39.522523
0.778322
0.083884
0
0.275
0
0.00625
0.086738
0.005908
0
0
0
0
0
1
0.025
false
0
0.075
0
0.11875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30de8aa4ae6150e3acdc0398071ec1e1b7a6910b
1,577
py
Python
server.py
rikuru-to865/Voyeur-with-python
104d61e189912134f38463842a0ee0834dd31129
[ "MIT" ]
null
null
null
server.py
rikuru-to865/Voyeur-with-python
104d61e189912134f38463842a0ee0834dd31129
[ "MIT" ]
null
null
null
server.py
rikuru-to865/Voyeur-with-python
104d61e189912134f38463842a0ee0834dd31129
[ "MIT" ]
null
null
null
import socket import numpy import cv2 import threading import os BUFFER_SIZE = 4096*10 currentPort = 50001 buf = b'' class capture(): def __init__(self,port): self.port = port def recive(self): global buf with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as s: while T...
26.728814
67
0.496512
169
1,577
4.568047
0.47929
0.015544
0.015544
0.056995
0.119171
0.098446
0.098446
0.098446
0
0
0
0.039749
0.393786
1,577
59
68
26.728814
0.767782
0
0
0.176471
0
0
0.03929
0
0
0
0.002535
0
0
1
0.058824
false
0
0.098039
0
0.196078
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30e0d9aba329cb35b870099915a7b244906f7302
1,978
py
Python
lcm/lcm/nf/serializers/lccn_filter_data.py
onap/vfc-gvnfm-vnflcm
e3127fee0fdb5bf193fddc74a69312363a6d20eb
[ "Apache-2.0" ]
1
2019-04-02T03:15:20.000Z
2019-04-02T03:15:20.000Z
lcm/lcm/nf/serializers/lccn_filter_data.py
onap/vfc-gvnfm-vnflcm
e3127fee0fdb5bf193fddc74a69312363a6d20eb
[ "Apache-2.0" ]
null
null
null
lcm/lcm/nf/serializers/lccn_filter_data.py
onap/vfc-gvnfm-vnflcm
e3127fee0fdb5bf193fddc74a69312363a6d20eb
[ "Apache-2.0" ]
1
2021-10-15T15:26:47.000Z
2021-10-15T15:26:47.000Z
# Copyright (C) 2018 Verizon. All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
46
91
0.761375
228
1,978
6.5
0.495614
0.040486
0.037787
0.072874
0.319163
0.244265
0.244265
0.244265
0.105263
0.105263
0
0.004905
0.17543
1,978
42
92
47.095238
0.90374
0.289687
0
0.24
0
0
0.237239
0.054637
0
0
0
0
0
1
0
false
0
0.12
0
0.32
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30e38abbdfe5ba2eb3dbe185a3fb1b8a9ce8a9b5
2,213
py
Python
treeNodeTravelThrewTreeNodes.py
GehartM/german-text-watermarking
f9765702225e0cfdce868eec816ed6e6fd4ffc63
[ "MIT" ]
1
2021-04-08T11:23:46.000Z
2021-04-08T11:23:46.000Z
treeNodeTravelThrewTreeNodes.py
GehartM/german-text-watermarking
f9765702225e0cfdce868eec816ed6e6fd4ffc63
[ "MIT" ]
null
null
null
treeNodeTravelThrewTreeNodes.py
GehartM/german-text-watermarking
f9765702225e0cfdce868eec816ed6e6fd4ffc63
[ "MIT" ]
null
null
null
def TravelThrewTreeNodes(currentTreeNode, leftDirections, encodedSign): # Überprüfung, ob die letzte Stelle erreicht wurde. Sollte dies nicht der Fall sein so wird weiter durch den # Baum navigiert if not len(leftDirections) == 1: # Speicherung der nächsten Richtung nextDirection = left...
49.177778
119
0.685043
215
2,213
7.051163
0.404651
0.029024
0.042216
0.063325
0.37467
0.37467
0.37467
0.37467
0.37467
0.37467
0
0.005573
0.270221
2,213
44
120
50.295455
0.933127
0.428378
0
0.090909
0
0
0.00332
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30e55d7e04ab513adf991395e8e91f97eaca5c02
5,633
py
Python
jarvis/resume/skillset.py
Anubhav722/blahblah
160698e06a02e671ac40de3113cd37d642e72e96
[ "MIT" ]
1
2019-01-03T06:10:04.000Z
2019-01-03T06:10:04.000Z
jarvis/resume/skillset.py
Anubhav722/blahblah
160698e06a02e671ac40de3113cd37d642e72e96
[ "MIT" ]
1
2021-03-31T19:11:52.000Z
2021-03-31T19:11:52.000Z
jarvis/resume/skillset.py
Anubhav722/blahblah
160698e06a02e671ac40de3113cd37d642e72e96
[ "MIT" ]
null
null
null
skills_list = [ "actionscript", "ado.net", "ajax", "akka", "algorithm", "amazon-ec2", "amazon-s3", "amazon-web-services", "android", "angular", "angularjs", "ansible", "ant", "apache", "apache-camel", "apache-kafka", "apache-poi", "apache-spark", ...
15.867606
32
0.480916
460
5,633
5.884783
0.817391
0.008866
0.007388
0
0
0
0
0
0
0
0
0.004387
0.312089
5,633
354
33
15.912429
0.694194
0
0
0
0
0
0.494585
0.0316
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30eaa9dd3051eaa994ef4cd89b26f3deca2ee553
6,054
py
Python
startup/users/30-user-chen_xpcs.py
NSLS-II-SMI/profile_collection
c1e2236a7520f605ac85e7591f05682add06357c
[ "BSD-3-Clause" ]
null
null
null
startup/users/30-user-chen_xpcs.py
NSLS-II-SMI/profile_collection
c1e2236a7520f605ac85e7591f05682add06357c
[ "BSD-3-Clause" ]
13
2018-09-25T19:35:08.000Z
2021-01-15T20:42:26.000Z
startup/users/30-user-chen_xpcs.py
NSLS-II-SMI/profile_collection
c1e2236a7520f605ac85e7591f05682add06357c
[ "BSD-3-Clause" ]
3
2019-09-06T01:40:59.000Z
2020-07-01T20:27:39.000Z
def grid_scan_xpcs(): folder = "301000_Chen34" xs = np.linspace(-9350, -9150, 2) ys = np.linspace(1220, 1420, 2) names=['PSBMA5_200um_grid'] energies = [2450, 2472, 2476, 2490] x_off = [0, 60, 0, 60] y_off = [0, 0, 60, 60] xxs, yys = np.meshgrid(xs, ys)...
33.633333
146
0.521143
830
6,054
3.675904
0.249398
0.103245
0.121927
0.105539
0.549
0.490659
0.457883
0.363815
0.319895
0.276303
0
0.136216
0.339115
6,054
180
147
33.633333
0.626343
0
0
0.356522
0
0
0.114121
0.042775
0
0
0
0
0
1
0.043478
false
0
0
0
0.043478
0.034783
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30f29e0855bb09fb75ab5994617d326c1d54e876
9,298
py
Python
hl7tools.py
cdgramos/Sublime-Text-3---HL7-Plug-In
b4b821f272460fa970c019c261ded552c724fee7
[ "MIT" ]
8
2018-03-01T14:38:01.000Z
2020-02-28T22:41:34.000Z
hl7tools.py
cdgramos/Sublime-Text-3---HL7-Plug-In
b4b821f272460fa970c019c261ded552c724fee7
[ "MIT" ]
19
2018-04-13T21:13:08.000Z
2021-09-02T22:48:53.000Z
hl7tools.py
cdgramos/Sublime-Text-3---HL7-Plug-In
b4b821f272460fa970c019c261ded552c724fee7
[ "MIT" ]
1
2020-05-18T21:43:46.000Z
2020-05-18T21:43:46.000Z
import sublime import sublime_plugin import re import webbrowser from .lib.hl7Event import * from .lib.hl7Segment import * from .lib.hl7TextUtils import * hl7EventList = hl7Event("","") hl7EventList = hl7EventList.loadEventList() hl7SegmentList = hl7Segment("","") hl7SegmentList = hl7SegmentList.loadSegmentList() S...
26.490028
120
0.61766
1,036
9,298
5.511583
0.212355
0.021016
0.035727
0.042032
0.355867
0.290893
0.240455
0.209457
0.170228
0.142032
0
0.014436
0.22521
9,298
350
121
26.565714
0.778179
0.11368
0
0.307692
0
0.004808
0.082907
0.008644
0
0
0
0
0
1
0.028846
false
0
0.033654
0
0.086538
0.009615
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30f2e9dc143ed93952cacd555538c812b12a36a2
8,220
py
Python
gen_data/yolo_label.py
KevinLADLee/CARLA_INVS
b23249500ffbafdb312a71d17b0dfef4191672f0
[ "MIT" ]
null
null
null
gen_data/yolo_label.py
KevinLADLee/CARLA_INVS
b23249500ffbafdb312a71d17b0dfef4191672f0
[ "MIT" ]
null
null
null
gen_data/yolo_label.py
KevinLADLee/CARLA_INVS
b23249500ffbafdb312a71d17b0dfef4191672f0
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import argparse import time import cv2 import glob import sys from pathlib import Path import numpy as np import pandas as pd import yaml from multiprocessing.dummy import Pool as ThreadPool sys.path.append(Path(__file__).resolve().parent.parent.as_posix()) # repo path sys.path.append(Path(__file...
40.895522
123
0.550243
1,008
8,220
4.246032
0.301587
0.022897
0.022897
0.029439
0.168925
0.131776
0.107477
0.051402
0.02243
0.02243
0
0.025234
0.310584
8,220
200
124
41.1
0.730016
0.103528
0
0.052632
0
0
0.122054
0.003269
0
0
0
0
0
1
0.039474
false
0
0.072368
0
0.157895
0.039474
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30f35ff68fe1eac3b585ba8e3b6bf7e40042a3c9
3,004
py
Python
tr/acs_config_test.py
DentonGentry/gfiber-catawampus
b01e4444f3c7f12b1af7837203b37060fd443bb7
[ "Apache-2.0" ]
2
2017-10-03T16:06:29.000Z
2020-09-08T13:03:13.000Z
tr/acs_config_test.py
DentonGentry/gfiber-catawampus
b01e4444f3c7f12b1af7837203b37060fd443bb7
[ "Apache-2.0" ]
null
null
null
tr/acs_config_test.py
DentonGentry/gfiber-catawampus
b01e4444f3c7f12b1af7837203b37060fd443bb7
[ "Apache-2.0" ]
1
2017-05-07T17:39:02.000Z
2017-05-07T17:39:02.000Z
#!/usr/bin/python # Copyright 2011 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
31.957447
78
0.734687
387
3,004
5.602067
0.423773
0.062269
0.02214
0.027675
0.255535
0.129151
0.074723
0
0
0
0
0.003559
0.158123
3,004
93
79
32.301075
0.853697
0.296937
0
0.132075
0
0
0.069264
0.012987
0
0
0
0
0.207547
1
0.09434
false
0
0.132075
0
0.245283
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30f3fff33de30496fe028fef08f8b083e40facf8
2,941
py
Python
src/tests/integration/api_test_client.py
doitintl/elastic-event-store
ad00f1fbecf430432c306d5917984d9f9ff522f4
[ "MIT" ]
22
2021-02-02T17:11:55.000Z
2021-12-19T15:00:26.000Z
src/tests/integration/api_test_client.py
vladikk/elastic-event-store
ad00f1fbecf430432c306d5917984d9f9ff522f4
[ "MIT" ]
8
2021-02-04T19:21:25.000Z
2021-02-08T07:48:06.000Z
src/tests/integration/api_test_client.py
vladikk/elastic-event-store
ad00f1fbecf430432c306d5917984d9f9ff522f4
[ "MIT" ]
4
2021-02-02T16:58:26.000Z
2021-07-17T04:17:43.000Z
import boto3 import os import requests class ApiTestClient(): api_endpoint: str some_metadata = { 'timestamp': '123123', 'command_id': '456346234', 'issued_by': 'test@test.com' } some_events = [ { "type": "init", "foo": "bar" }, { "type": "update", "foo": ...
35.865854
148
0.615097
352
2,941
4.872159
0.286932
0.057726
0.069971
0.050729
0.26414
0.16793
0.094461
0.06414
0.044315
0
0
0.009035
0.284937
2,941
82
149
35.865854
0.806467
0
0
0.174603
0
0
0.253569
0.07036
0
0
0
0
0
1
0.079365
false
0
0.047619
0.015873
0.253968
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30f6d4afaaa493162b41239409c7176bc51a45d0
2,785
py
Python
validation/synthetic_promoters.py
umarov90/DeepREFind
c3b24b760f3829ea8ed6ba6ed7db76cf90c45a9e
[ "Apache-2.0" ]
1
2022-03-16T07:39:10.000Z
2022-03-16T07:39:10.000Z
validation/synthetic_promoters.py
umarov90/DeepREFind
c3b24b760f3829ea8ed6ba6ed7db76cf90c45a9e
[ "Apache-2.0" ]
2
2021-11-04T14:58:52.000Z
2022-02-11T04:28:32.000Z
validation/synthetic_promoters.py
umarov90/ReFeaFi
c3b24b760f3829ea8ed6ba6ed7db76cf90c45a9e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"]="0" import common as cm import tensorflow as tf import numpy as np import math from scipy import stats from Bio.Seq import Seq half_size = 500 batch_size = 128 scan_step = 1 seq_len = 1001 out = [] os.chdi...
39.785714
111
0.596409
400
2,785
3.925
0.39
0.04586
0.030573
0.043312
0.2
0.110828
0.110828
0.110828
0.029299
0
0
0.062171
0.249192
2,785
70
112
39.785714
0.688666
0.022621
0
0
0
0
0.109886
0.033811
0
0
0
0
0
1
0
false
0
0.114754
0
0.114754
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30f85e513a4285e63e608e0444128184121a5ac0
865
py
Python
dojos/lendico/sinais.py
ramalho/tdd-com-pytest
edae805ddf2267d8e08eea6ab344242217f52043
[ "BSD-3-Clause" ]
15
2018-05-25T16:17:08.000Z
2020-04-02T21:39:41.000Z
dojos/lendico/sinais.py
ramalho/tdd-com-pytest
edae805ddf2267d8e08eea6ab344242217f52043
[ "BSD-3-Clause" ]
null
null
null
dojos/lendico/sinais.py
ramalho/tdd-com-pytest
edae805ddf2267d8e08eea6ab344242217f52043
[ "BSD-3-Clause" ]
1
2021-04-19T21:27:17.000Z
2021-04-19T21:27:17.000Z
#!/usr/bin/env python3 import sys def search(query, data): query = query.replace('-',' ') words = set(query.upper().split()) for code, char, name in data: name = name.replace('-',' ') if words <= set(name.split()): yield f'{code}\t{char}\t{name}' def reader(): with open('U...
23.378378
65
0.543353
116
865
3.965517
0.474138
0.047826
0.052174
0
0
0
0
0
0
0
0
0.012903
0.283237
865
36
66
24.027778
0.729032
0.024277
0
0
0
0
0.118624
0.026097
0
0
0
0
0
1
0.115385
false
0
0.038462
0
0.192308
0.115385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30f86263cd9609adb5d7644c7670d39fe1c0be15
6,154
py
Python
bms_2/app01/views.py
luyl1017713252/python
3b30cffa85b625e512415fa882b4bc7708a5e0b8
[ "MulanPSL-1.0" ]
null
null
null
bms_2/app01/views.py
luyl1017713252/python
3b30cffa85b625e512415fa882b4bc7708a5e0b8
[ "MulanPSL-1.0" ]
null
null
null
bms_2/app01/views.py
luyl1017713252/python
3b30cffa85b625e512415fa882b4bc7708a5e0b8
[ "MulanPSL-1.0" ]
null
null
null
import json from django.shortcuts import render, redirect, HttpResponse # Create your views here. from django.urls import reverse from app01 import models from app01.models import Book, Publish, Author, AuthorDetail def books(request): book_list = Book.objects.all() publish_list = Publish.objects.all() ...
35.165714
124
0.647221
782
6,154
4.938619
0.098465
0.076903
0.083376
0.034438
0.564215
0.487053
0.399275
0.347488
0.279907
0.245469
0
0.001847
0.207995
6,154
175
125
35.165714
0.790521
0.012837
0
0.415493
0
0
0.11166
0
0
0
0
0
0
1
0.091549
false
0
0.035211
0
0.267606
0.021127
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30fcb43dd0f69d332ab19924f865fff8aca3d2e2
3,642
py
Python
chatbot/scripts/interactive_slack.py
check-spelling/learning
a3b031cf8fe766ad97e023ec1f3177389778853b
[ "Apache-2.0" ]
2
2021-08-24T05:20:48.000Z
2021-09-30T18:03:46.000Z
chatbot/scripts/interactive_slack.py
check-spelling/learning
a3b031cf8fe766ad97e023ec1f3177389778853b
[ "Apache-2.0" ]
null
null
null
chatbot/scripts/interactive_slack.py
check-spelling/learning
a3b031cf8fe766ad97e023ec1f3177389778853b
[ "Apache-2.0" ]
3
2021-07-24T23:19:45.000Z
2021-12-27T04:20:45.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Talk with a model using a Slack channel. # Examples ```shell parlai interactive_slack --token xoxb-... --task blend...
33.412844
155
0.7095
496
3,642
5.092742
0.40121
0.019002
0.030879
0.015835
0.029295
0.029295
0.029295
0
0
0
0
0.003383
0.188358
3,642
108
156
33.722222
0.85115
0.136189
0
0.030303
0
0
0.204443
0.009036
0
0
0
0
0
1
0.060606
false
0
0.166667
0.030303
0.30303
0.015152
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30fd7f4d4cd4681834c31425f77246c6aabccc27
2,542
py
Python
plywood/plugins/include.py
colinta/plywood
49cf98f198da302ec66e11338320c6b72b642ffa
[ "BSD-2-Clause-FreeBSD" ]
1
2015-06-11T06:17:42.000Z
2015-06-11T06:17:42.000Z
plywood/plugins/include.py
colinta/plywood
49cf98f198da302ec66e11338320c6b72b642ffa
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
plywood/plugins/include.py
colinta/plywood
49cf98f198da302ec66e11338320c6b72b642ffa
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
''' Includes content from another template. If you assign any keyword arguments, those will be available in the scope of that template. ''' import os from plywood import Plywood from plywood.values import PlywoodValue from plywood.exceptions import InvalidArguments from plywood.env import PlywoodEnv @PlywoodEnv.reg...
31
95
0.611723
298
2,542
5.110738
0.338926
0.047275
0.044649
0.026264
0.072226
0.03677
0
0
0
0
0
0.001641
0.280881
2,542
81
96
31.382716
0.83151
0.083006
0
0.126984
0
0
0.077486
0
0
0
0
0
0
1
0.031746
false
0
0.079365
0
0.126984
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a5011c8dc68549aa930d5e1f66b7f91d841322f1
388
py
Python
segundos.py
rafabentoss/courses
ced3f5447dea38220b904678c601ed2bf7f2b0f1
[ "CC0-1.0" ]
null
null
null
segundos.py
rafabentoss/courses
ced3f5447dea38220b904678c601ed2bf7f2b0f1
[ "CC0-1.0" ]
null
null
null
segundos.py
rafabentoss/courses
ced3f5447dea38220b904678c601ed2bf7f2b0f1
[ "CC0-1.0" ]
null
null
null
segundos_str = int(input("Por favor, entre com o número de segundos que deseja converter:")) dias=segundos_str//86400 segs_restantes1=segundos_str%86400 horas=segs_restantes1//3600 segs_restantes2=segs_restantes1%3600 minutos=segs_restantes2//60 segs_restantes_final=segs_restantes2%60 print(dias,"dias,",hora...
38.8
93
0.796392
55
388
5.381818
0.490909
0.111486
0.108108
0
0
0
0
0
0
0
0
0.07932
0.090206
388
10
94
38.8
0.759207
0
0
0
0
0
0.242105
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a501d89e850c922d43a99061a0daa6321c93954a
870
py
Python
src/balloons.py
cloudzfy/pychallenge
1af98a632021532e136721d282b0e7c2cbc519a3
[ "MIT" ]
3
2016-07-23T03:31:46.000Z
2019-08-22T01:23:07.000Z
src/balloons.py
cloudzfy/pychallenge
1af98a632021532e136721d282b0e7c2cbc519a3
[ "MIT" ]
null
null
null
src/balloons.py
cloudzfy/pychallenge
1af98a632021532e136721d282b0e7c2cbc519a3
[ "MIT" ]
3
2017-05-22T09:41:20.000Z
2018-09-06T02:05:19.000Z
import urllib import StringIO import gzip from difflib import Differ from binascii import unhexlify import Image src = urllib.urlopen('http://huge:file@www.pythonchallenge.com/pc/return/deltas.gz').read() file = gzip.GzipFile(fileobj=StringIO.StringIO(src)) left = [] right = [] for line in file.readlines(): left.ap...
24.166667
91
0.654023
119
870
4.781513
0.428571
0.112478
0.063269
0.100176
0.330404
0.235501
0.101933
0.101933
0
0
0
0.030105
0.121839
870
35
92
24.857143
0.71466
0
0
0
0
0
0.082759
0
0
0
0
0
0
1
0
false
0
0.206897
0
0.206897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a506b736c248be3b528126847b39f395938649f3
11,437
py
Python
workload_auto/vsphere_helper.py
CiscoDevNet/dcnm-workload-automation
36d439f0351b88492d21160c534e1260b9d43ca8
[ "Apache-2.0" ]
null
null
null
workload_auto/vsphere_helper.py
CiscoDevNet/dcnm-workload-automation
36d439f0351b88492d21160c534e1260b9d43ca8
[ "Apache-2.0" ]
null
null
null
workload_auto/vsphere_helper.py
CiscoDevNet/dcnm-workload-automation
36d439f0351b88492d21160c534e1260b9d43ca8
[ "Apache-2.0" ]
1
2020-07-07T14:53:14.000Z
2020-07-07T14:53:14.000Z
# Copyright 2020 Cisco Systems, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
40.129825
80
0.607677
1,635
11,437
4.036697
0.160856
0.02197
0.019091
0.013333
0.345
0.262576
0.226818
0.179394
0.145
0.134394
0
0.001414
0.319927
11,437
284
81
40.271127
0.847133
0.26117
0
0.299401
0
0
0.071419
0
0
0
0
0
0
1
0.095808
false
0
0.017964
0
0.299401
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a5083f8e81dde75a4b99510e59a13a9684a3d9d3
1,042
py
Python
TextureConversion/Scripts/InvertYellowNormal.py
Beatbox309/Unity-Texture-Conversion
19fd59c34b8d6c1e528db8f220700d5b1ccef5a1
[ "MIT" ]
null
null
null
TextureConversion/Scripts/InvertYellowNormal.py
Beatbox309/Unity-Texture-Conversion
19fd59c34b8d6c1e528db8f220700d5b1ccef5a1
[ "MIT" ]
null
null
null
TextureConversion/Scripts/InvertYellowNormal.py
Beatbox309/Unity-Texture-Conversion
19fd59c34b8d6c1e528db8f220700d5b1ccef5a1
[ "MIT" ]
null
null
null
from PIL import Image from PIL import ImageChops import pathlib import sys sys.path.append(str(pathlib.Path(__file__).parent.absolute())) import TextureConversionMain as tcm def Convert(normPath): # setup ogNorm = Image.open(normPath) normTuple = tcm.SplitImg(ogNorm) print("Images Loaded...
26.05
86
0.673704
118
1,042
5.881356
0.483051
0.043228
0.060519
0.051873
0.092219
0.092219
0
0
0
0
0
0.01182
0.1881
1,042
39
87
26.717949
0.808511
0.034549
0
0
0
0
0.073728
0
0
0
0
0
0
1
0.04
false
0
0.2
0
0.24
0.12
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a508b46bb0fbec56198e8d643e6c23a47a292553
1,695
py
Python
mininet_scripts/simple_net.py
kulawczukmarcin/mypox
b6a0a3cbfc911f94d0ed2ba5c968025879691eab
[ "Apache-2.0" ]
null
null
null
mininet_scripts/simple_net.py
kulawczukmarcin/mypox
b6a0a3cbfc911f94d0ed2ba5c968025879691eab
[ "Apache-2.0" ]
null
null
null
mininet_scripts/simple_net.py
kulawczukmarcin/mypox
b6a0a3cbfc911f94d0ed2ba5c968025879691eab
[ "Apache-2.0" ]
null
null
null
__author__ = 'Ehsan' from mininet.node import CPULimitedHost from mininet.topo import Topo from mininet.net import Mininet from mininet.log import setLogLevel, info from mininet.node import RemoteController from mininet.cli import CLI """ Instructions to run the topo: 1. Go to directory where this fil is. 2. ru...
26.904762
79
0.635988
218
1,695
4.844037
0.444954
0.072917
0.036932
0.039773
0
0
0
0
0
0
0
0.086381
0.241888
1,695
62
80
27.33871
0.735409
0.126254
0
0
0
0
0.087094
0
0
0
0
0
0
1
0.057143
false
0
0.171429
0
0.257143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a509787b777a426526c085c8fcec56b5e9a290ec
5,806
py
Python
.ci/watchdog/MSTeamsCommunicator.py
NervanaSystems/ngraph-onnx
7fdb4e503a796ef3871927c550d1245e37cb6ffa
[ "Apache-2.0", "MIT" ]
47
2018-03-17T00:30:59.000Z
2021-11-14T17:18:57.000Z
.ci/watchdog/MSTeamsCommunicator.py
NervanaSystems/ngraph-onnx
7fdb4e503a796ef3871927c550d1245e37cb6ffa
[ "Apache-2.0", "MIT" ]
272
2018-03-22T14:31:09.000Z
2022-03-24T20:51:04.000Z
.ci/watchdog/MSTeamsCommunicator.py
NervanaSystems/ngraph-onnx
7fdb4e503a796ef3871927c550d1245e37cb6ffa
[ "Apache-2.0", "MIT" ]
20
2018-04-03T14:53:58.000Z
2021-03-13T01:21:26.000Z
#!/usr/bin/python3 # INTEL CONFIDENTIAL # Copyright 2018-2020 Intel Corporation # The source code contained or described herein and all documents related to the # source code ("Material") are owned by Intel Corporation or its suppliers or # licensors. Title to the Material remains with Intel Corporation or its # suppl...
40.319444
92
0.59783
651
5,806
5.208909
0.360983
0.02949
0.022117
0.026541
0.160425
0.078738
0.048953
0.023592
0
0
0
0.006101
0.322425
5,806
143
93
40.601399
0.855872
0.505167
0
0.035088
0
0
0.101621
0
0
0
0
0
0
1
0.122807
false
0
0.017544
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a50994e7a70e911cc583b9d0550f81e22ad4842b
4,301
py
Python
script/create_buy_point_data_window.py
AtlantixJJ/vnpy
28992c7d5391f6dd42a14b481d01ceafde048b5f
[ "MIT" ]
null
null
null
script/create_buy_point_data_window.py
AtlantixJJ/vnpy
28992c7d5391f6dd42a14b481d01ceafde048b5f
[ "MIT" ]
null
null
null
script/create_buy_point_data_window.py
AtlantixJJ/vnpy
28992c7d5391f6dd42a14b481d01ceafde048b5f
[ "MIT" ]
null
null
null
"""Create wave training data. Automatically annotate data by identifying waves. The begining, middle and ending are obtained. Windows around these points are collected as training data. They are organized in years. """ import sys, glob, os path = os.getcwd() sys.path.insert(0, ".") from datetime import datetime from v...
33.341085
81
0.56359
648
4,301
3.608025
0.307099
0.017964
0.021386
0.021386
0.120616
0.09923
0.051326
0.021386
0
0
0
0.038208
0.294118
4,301
129
82
33.341085
0.731884
0.096024
0
0.076923
0
0
0.081074
0.022205
0
0
0
0
0
1
0.019231
false
0
0.096154
0.009615
0.134615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a50cc4e2779045bd523e797e37d15a965dda09d9
5,784
py
Python
{{cookiecutter.dir_name}}/script.py
TAMU-CPT/cc_automated_drf_template
c538f01ea90bae98ee051a6a2fd977d3dd595cde
[ "BSD-3-Clause" ]
14
2016-10-07T21:59:03.000Z
2020-03-03T17:08:49.000Z
{{cookiecutter.dir_name}}/script.py
TAMU-CPT/cc_automated_drf_template
c538f01ea90bae98ee051a6a2fd977d3dd595cde
[ "BSD-3-Clause" ]
6
2016-10-07T19:48:21.000Z
2019-03-14T12:41:50.000Z
{{cookiecutter.dir_name}}/script.py
TAMU-CPT/drf_template
c538f01ea90bae98ee051a6a2fd977d3dd595cde
[ "BSD-3-Clause" ]
3
2017-03-15T08:32:04.000Z
2018-02-05T22:09:50.000Z
import ast, _ast, subprocess, os, argparse def write_files(app_name): models = {} # parse models.py with open('%s/models.py' % app_name) as models_file: m = ast.parse(models_file.read()) for i in m.body: if type(i) == _ast.ClassDef: models[i.name] = {} ...
45.1875
158
0.510028
658
5,784
4.357143
0.231003
0.056505
0.03488
0.050227
0.222881
0.164981
0.134287
0.09557
0.09557
0.03488
0
0.004916
0.331777
5,784
127
159
45.543307
0.736869
0.009682
0
0.113402
0
0
0.30706
0.087207
0.020619
0
0
0
0
1
0.041237
false
0
0.134021
0
0.175258
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a50f9f33df8927431578a0e644348f580030945d
975
py
Python
BackendAPI/customuser/utils.py
silvioramalho/django-startup-rest-api
b984ee6be27990d29ab3df7cdd446bb63ee3ee34
[ "MIT" ]
9
2020-05-23T14:42:00.000Z
2022-03-04T12:21:00.000Z
BackendAPI/customuser/utils.py
silvioramalho/django-startup-rest-api
b984ee6be27990d29ab3df7cdd446bb63ee3ee34
[ "MIT" ]
6
2020-05-14T21:34:09.000Z
2021-09-22T19:01:15.000Z
BackendAPI/customuser/utils.py
silvioramalho/django-startup-rest-api
b984ee6be27990d29ab3df7cdd446bb63ee3ee34
[ "MIT" ]
1
2022-03-04T12:20:52.000Z
2022-03-04T12:20:52.000Z
from datetime import datetime from calendar import timegm from rest_framework_jwt.compat import get_username, get_username_field from rest_framework_jwt.settings import api_settings def jwt_otp_payload(user, device = None): """ Opcionalmente inclui o Device TOP no payload do JWT """ username_field = ...
28.676471
70
0.683077
124
975
5.129032
0.451613
0.121069
0.132075
0.075472
0
0
0
0
0
0
0
0
0.241026
975
34
71
28.676471
0.859459
0.133333
0
0
0
0
0.038601
0
0
0
0
0
0
1
0.047619
false
0
0.190476
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a511699f0080c5e2bd9b9726e7f19dac525f2d43
3,781
py
Python
extras/tally_results_ucf24.py
salmank255/ROADSlowFast
e939d8f79fe3eb6f3dd32e967a34530d00f45c8e
[ "Apache-2.0" ]
null
null
null
extras/tally_results_ucf24.py
salmank255/ROADSlowFast
e939d8f79fe3eb6f3dd32e967a34530d00f45c8e
[ "Apache-2.0" ]
null
null
null
extras/tally_results_ucf24.py
salmank255/ROADSlowFast
e939d8f79fe3eb6f3dd32e967a34530d00f45c8e
[ "Apache-2.0" ]
null
null
null
""" This script load and tally the result of UCF24 dataset in latex format. """ import os import json def run_exp(cmd): return os.system(cmd) if __name__ == '__main__': base = '/mnt/mercury-alpha/ucf24/cache/resnet50' modes = [['frames',['frame_actions', 'action_ness', 'action']], ['video',...
47.860759
244
0.370008
371
3,781
3.649596
0.358491
0.036189
0.026588
0.025111
0.196455
0.196455
0.196455
0.196455
0.149188
0.149188
0
0.049947
0.496958
3,781
79
245
47.860759
0.661935
0.034118
0
0.2
0
0.033333
0.135165
0.070055
0
0
0
0
0
1
0.016667
false
0
0.033333
0.016667
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a5140c77514670cc1d68ea51faa3667ecc7cdf73
10,325
py
Python
src/acquisition/wiki/wiki_download.py
eujing/delphi-epidata
7281a7525b20e48147049229a9faa0cb97340427
[ "MIT" ]
1
2021-12-29T04:00:21.000Z
2021-12-29T04:00:21.000Z
src/acquisition/wiki/wiki_download.py
eujing/delphi-epidata
7281a7525b20e48147049229a9faa0cb97340427
[ "MIT" ]
1
2020-07-14T15:35:15.000Z
2020-07-16T17:56:30.000Z
src/acquisition/wiki/wiki_download.py
eujing/delphi-epidata
7281a7525b20e48147049229a9faa0cb97340427
[ "MIT" ]
4
2020-09-17T13:47:02.000Z
2020-10-27T19:40:11.000Z
""" =============== === Purpose === =============== Downloads wiki access logs and stores unprocessed article counts See also: wiki.py Note: for maximum portability, this program is compatible with both Python2 and Python3 and has no external dependencies (e.g. running on AWS) ================= === Changelog === =...
35.97561
144
0.644262
1,435
10,325
4.520557
0.261324
0.029135
0.02374
0.024665
0.217204
0.120857
0.08756
0.049946
0.049946
0.049946
0
0.022551
0.214044
10,325
286
145
36.101399
0.776833
0.214625
0
0.217617
0
0.005181
0.17822
0.003983
0
0
0
0
0
1
0.036269
false
0.031088
0.082902
0.005181
0.160622
0.176166
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a51500997a9858263339a466d1f8dbc998e0d17e
851
py
Python
app/main.py
BloomTech-Labs/family-promise-service-tracker-ds-a
1190c1f5fce55ec265a8a42b968aa1f8aea52ac6
[ "MIT" ]
4
2021-08-02T20:45:37.000Z
2021-09-03T19:42:55.000Z
app/main.py
BloomTech-Labs/family-promise-service-tracker-ds-a
1190c1f5fce55ec265a8a42b968aa1f8aea52ac6
[ "MIT" ]
22
2021-06-02T19:28:21.000Z
2021-09-15T15:09:48.000Z
app/main.py
Lambda-School-Labs/family-promise-service-tracker-ds-a
1190c1f5fce55ec265a8a42b968aa1f8aea52ac6
[ "MIT" ]
12
2021-06-02T09:30:14.000Z
2021-09-27T20:21:00.000Z
from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from app import db, viz, eligibility, metrics, geocode app = FastAPI( title='DS API - Family Promise', docs_url='/', version='0.39.6', ) app.include_router(db.router, tags=['Database']) app.include_router(viz.router, tags=['V...
25.029412
60
0.703878
107
851
5.420561
0.495327
0.086207
0.137931
0
0
0
0
0
0
0
0
0.00554
0.151586
851
33
61
25.787879
0.797784
0
0
0
0
0
0.121715
0
0
0
0
0
0
1
0
false
0
0.173913
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a515480d246a94b3a03edbf99bee0fcd4f9d88f2
2,033
py
Python
scripts/make_binarized_masks.py
GUIEEN/acres
ed2ab521bbec866d1588216abfce8532ce28a5e9
[ "MIT" ]
10
2019-01-03T15:31:03.000Z
2020-03-19T06:14:50.000Z
scripts/make_binarized_masks.py
GUIEEN/acres
ed2ab521bbec866d1588216abfce8532ce28a5e9
[ "MIT" ]
3
2020-05-11T12:13:15.000Z
2021-01-03T02:13:10.000Z
scripts/make_binarized_masks.py
GUIEEN/acres
ed2ab521bbec866d1588216abfce8532ce28a5e9
[ "MIT" ]
3
2020-07-26T12:58:18.000Z
2021-04-09T10:56:23.000Z
""" Take a directory of images and their segmentation masks (which only contain two classes - inside and outside) and split the inside class into black and white. Save the resulting masks. """ import argparse import os import numpy as np import cv2 def show(img): cv2.namedWindow("image", cv2.WINDOW_NORMAL) c...
34.457627
109
0.638465
292
2,033
4.297945
0.407534
0.038247
0.040637
0.033466
0.172112
0.172112
0.049402
0
0
0
0
0.035849
0.217905
2,033
58
110
35.051724
0.753459
0.160354
0
0.054054
0
0
0.072019
0
0
0
0
0
0
1
0.081081
false
0
0.108108
0
0.216216
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a51637bfb757b0164488ef03723963eb419dd5ee
6,293
py
Python
initialize.py
WiseDoge/Text-Classification-PyTorch
9371eeed6bd7ecf1d529c8f2a6c997fcde67a559
[ "MIT" ]
6
2019-08-04T13:24:24.000Z
2020-09-28T12:12:21.000Z
initialize.py
WiseDoge/Text-Classification-PyTorch
9371eeed6bd7ecf1d529c8f2a6c997fcde67a559
[ "MIT" ]
null
null
null
initialize.py
WiseDoge/Text-Classification-PyTorch
9371eeed6bd7ecf1d529c8f2a6c997fcde67a559
[ "MIT" ]
null
null
null
from typing import List, Dict from collections import defaultdict from pathlib import Path from util import save_dataset, save_word_dict, save_embedding import torch import argparse import nltk import re import logging logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(level...
37.458333
139
0.658033
914
6,293
4.272429
0.198031
0.057362
0.025352
0.012292
0.262228
0.141357
0.101408
0.089117
0.048656
0.03073
0
0.005264
0.21516
6,293
167
140
37.682635
0.785382
0.023518
0
0.06015
0
0.007519
0.135206
0.010287
0
0
0
0
0
1
0.067669
false
0
0.067669
0
0.195489
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a517e42fabf9ac9063a6459d9056fdf167f23154
9,422
py
Python
src/BERT_NER/utils_preprocess/anntoconll.py
philippeitis/StackOverflowNER
2a1efd8d88356de4a04e510a5ccfe85992fc8d8c
[ "MIT" ]
null
null
null
src/BERT_NER/utils_preprocess/anntoconll.py
philippeitis/StackOverflowNER
2a1efd8d88356de4a04e510a5ccfe85992fc8d8c
[ "MIT" ]
null
null
null
src/BERT_NER/utils_preprocess/anntoconll.py
philippeitis/StackOverflowNER
2a1efd8d88356de4a04e510a5ccfe85992fc8d8c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Convert text and standoff annotations into CoNLL format. import re import sys from pathlib import Path # assume script in brat tools/ directory, extend path to find sentencesplit.py sys.path.append(str(Path(__file__).parent)) sys.path.append('.') from sentencesplit import sentencebreaks_to_...
29.628931
103
0.594884
1,209
9,422
4.495451
0.214227
0.008832
0.014351
0.00828
0.136891
0.086845
0.064765
0.051518
0.022079
0.022079
0
0.005723
0.295266
9,422
317
104
29.722397
0.812801
0.178306
0
0.131313
0
0
0.098298
0.01034
0
0
0
0.003155
0.010101
1
0.065657
false
0
0.040404
0
0.156566
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a51b1c0fe48c6f6a0c51d7e391fb9492bd28a19a
5,509
py
Python
EfficientObjectDetection/dataset/dataloader_ete.py
JunHyungKang/SAROD_ICIP
71585951f64dc1cc22ed72900eff81f747edec77
[ "MIT" ]
null
null
null
EfficientObjectDetection/dataset/dataloader_ete.py
JunHyungKang/SAROD_ICIP
71585951f64dc1cc22ed72900eff81f747edec77
[ "MIT" ]
null
null
null
EfficientObjectDetection/dataset/dataloader_ete.py
JunHyungKang/SAROD_ICIP
71585951f64dc1cc22ed72900eff81f747edec77
[ "MIT" ]
1
2020-12-27T05:24:19.000Z
2020-12-27T05:24:19.000Z
import pandas as pd import numpy as np import warnings import os from torch.utils.data.dataset import Dataset from PIL import Image Image.MAX_IMAGE_PIXELS = None warnings.simplefilter('ignore', Image.DecompressionBombWarning) class CustomDatasetFromImages(Dataset): def __init__(self, fine_data, coarse_data, tran...
34.217391
136
0.622254
769
5,509
4.191157
0.16645
0.039715
0.052125
0.047471
0.48247
0.457648
0.351536
0.331679
0.314303
0.314303
0
0.006686
0.267018
5,509
161
137
34.217391
0.791481
0.239608
0
0.141176
0
0
0.029339
0
0
0
0
0
0
1
0.105882
false
0
0.070588
0.035294
0.282353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a51c924df2a2764415545da28cdbfc63cde5829d
6,236
py
Python
tests/test.py
angstwad/datemike
da84df48022c4067a28182e9bb53434c8f5010bc
[ "Apache-2.0" ]
8
2015-01-30T01:42:02.000Z
2019-04-05T10:50:42.000Z
tests/test.py
angstwad/datemike
da84df48022c4067a28182e9bb53434c8f5010bc
[ "Apache-2.0" ]
null
null
null
tests/test.py
angstwad/datemike
da84df48022c4067a28182e9bb53434c8f5010bc
[ "Apache-2.0" ]
3
2016-06-27T11:23:38.000Z
2018-03-05T21:37:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from collections import OrderedDict import unittest import yaml from datemike import ansible, base, utils from datemike.providers import rackspace desired_task_yaml = """name: Create Cloud Server(s) rax: exact_count: true flavor: performance1-1 image: image-ubuntu-...
32.821053
78
0.59814
761
6,236
4.733246
0.13929
0.034981
0.037479
0.033315
0.536924
0.503887
0.451971
0.403387
0.392282
0.345641
0
0.014821
0.28592
6,236
189
79
32.994709
0.794071
0.006735
0
0.341935
0
0
0.257429
0
0
0
0
0
0.148387
1
0.148387
false
0.006452
0.032258
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
a51d4b9577b8109ecc4fe05e8b1f90f8ad9d6edf
1,100
py
Python
update_others.py
XiaogangHe/cv
814fabeb93c6302526ad0fca79587bf3fbd2a0ea
[ "CC-BY-4.0" ]
null
null
null
update_others.py
XiaogangHe/cv
814fabeb93c6302526ad0fca79587bf3fbd2a0ea
[ "CC-BY-4.0" ]
null
null
null
update_others.py
XiaogangHe/cv
814fabeb93c6302526ad0fca79587bf3fbd2a0ea
[ "CC-BY-4.0" ]
1
2020-12-20T08:02:39.000Z
2020-12-20T08:02:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division, print_function import re import json import requests def get_number_of_citations(url): r = requests.get(url) try: r.raise_for_status() except Exception as e: print(e) return None results = re.finda...
23.913043
76
0.571818
147
1,100
4.102041
0.510204
0.049751
0.036484
0.066335
0.182421
0.112769
0.112769
0.112769
0
0
0
0.006435
0.293636
1,100
45
77
24.444444
0.769627
0.038182
0
0.323529
0
0
0.118371
0
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.294118
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb47b43bc4e1a81b0b221c391bba44d51529910a
1,451
py
Python
haminfo/db/models/request.py
hemna/haminfo
86db93536075999afa086fda84f10c1911af0375
[ "Apache-2.0" ]
null
null
null
haminfo/db/models/request.py
hemna/haminfo
86db93536075999afa086fda84f10c1911af0375
[ "Apache-2.0" ]
null
null
null
haminfo/db/models/request.py
hemna/haminfo
86db93536075999afa086fda84f10c1911af0375
[ "Apache-2.0" ]
null
null
null
import sqlalchemy as sa import datetime from haminfo.db.models.modelbase import ModelBase class Request(ModelBase): __tablename__ = 'request' id = sa.Column(sa.Integer, sa.Sequence('request_id_seq'), primary_key=True) created = sa.Column(sa.Date) latitude = sa.Column(sa.Float) longitude = sa.Col...
30.87234
80
0.582357
175
1,451
4.668571
0.325714
0.088127
0.110159
0.078335
0
0
0
0
0
0
0
0.000937
0.264645
1,451
46
81
31.543478
0.764761
0.021365
0
0
0
0
0.187588
0.118477
0
0
0
0
0
1
0.081081
false
0
0.081081
0.027027
0.540541
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb49b2cbd9ad1ebc523230ba0859acde197afa9b
1,166
py
Python
Box_Plot.py
johndunne2019/pands-project
4a544be7a4074dc8a277775981b3619239c45872
[ "Apache-2.0" ]
null
null
null
Box_Plot.py
johndunne2019/pands-project
4a544be7a4074dc8a277775981b3619239c45872
[ "Apache-2.0" ]
null
null
null
Box_Plot.py
johndunne2019/pands-project
4a544be7a4074dc8a277775981b3619239c45872
[ "Apache-2.0" ]
null
null
null
# 2019-04-24 # John Dunne # Box plot of the data set # pandas box plot documentation: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.boxplot.html print("The box plot will appear on the screen momentarily") import matplotlib.pyplot as pl import pandas as pd # imported the libraries needed an...
61.368421
150
0.779588
200
1,166
4.525
0.49
0.054144
0.055249
0.039779
0.163536
0.163536
0.163536
0.163536
0.163536
0.163536
0
0.020669
0.128645
1,166
19
151
61.368421
0.870079
0.716981
0
0
0
0
0.476341
0
0
0
0
0
0
1
0
false
0
0.285714
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