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
518e296fcd47480555619d28da9b1f803d91b6a5
543
py
Python
test/ep/file_test.py
alanjimenez1/qualibrate-api
d005e35029303ac9dfd8e66cb09c79393a472cad
[ "MIT" ]
null
null
null
test/ep/file_test.py
alanjimenez1/qualibrate-api
d005e35029303ac9dfd8e66cb09c79393a472cad
[ "MIT" ]
null
null
null
test/ep/file_test.py
alanjimenez1/qualibrate-api
d005e35029303ac9dfd8e66cb09c79393a472cad
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Test module for User endpoint responses """ __author__ = "@canimus" __license__ = "MIT" __revision__ = "1.0" import unittest from test.ep.utils import ApiRequest as http_client class FileEndPointTest(unittest.TestCase): '''Files endpoint tests''' def test_file_upload(self): ...
25.857143
108
0.664825
67
543
5.104478
0.716418
0.05848
0
0
0
0
0
0
0
0
0
0.020455
0.189687
543
20
109
27.15
0.756818
0.198895
0
0
0
0
0.215539
0.092732
0
0
0
0
0.111111
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
518f9bd6632a478fd29c87c47bda80684e792457
1,286
py
Python
ZDF/CSCI 6212/QuickSelect.py
zdf0221/leetcode
66e92e29e6619d138401658fa656f41404ccabe3
[ "MIT" ]
null
null
null
ZDF/CSCI 6212/QuickSelect.py
zdf0221/leetcode
66e92e29e6619d138401658fa656f41404ccabe3
[ "MIT" ]
null
null
null
ZDF/CSCI 6212/QuickSelect.py
zdf0221/leetcode
66e92e29e6619d138401658fa656f41404ccabe3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: QuickSelect Description : Author : zdf date: 2018/9/26 ------------------------------------------------- Change Activity: 2018/9/26:13:11 ----------------------------------------...
27.361702
88
0.452566
157
1,286
3.656051
0.324841
0.156794
0.090592
0.062718
0.184669
0.097561
0.097561
0
0
0
0
0.05157
0.306376
1,286
46
89
27.956522
0.591928
0.251944
0
0.142857
0
0
0.046122
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.25
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5194f2f707886fc733209274dbe61c98c74c61c8
3,009
py
Python
main.py
ResByte/torch-gcp-fn
eb343dd144c6a5d828e666db084cb39b70896ff8
[ "Apache-2.0" ]
1
2020-03-31T21:49:37.000Z
2020-03-31T21:49:37.000Z
main.py
ResByte/torch-gcp-fn
eb343dd144c6a5d828e666db084cb39b70896ff8
[ "Apache-2.0" ]
null
null
null
main.py
ResByte/torch-gcp-fn
eb343dd144c6a5d828e666db084cb39b70896ff8
[ "Apache-2.0" ]
null
null
null
import os import io import json import torch import torch.nn as nn import torch.nn.functional as F from torchvision import models,transforms from PIL import Image import time from flask import jsonify import logging logging.basicConfig(level=logging.INFO) # lazy global device = None model = None imagenet_clas...
27.605505
78
0.627119
365
3,009
5.030137
0.369863
0.056645
0.068627
0.034858
0.044662
0
0
0
0
0
0
0.017066
0.279495
3,009
109
79
27.605505
0.829797
0.25457
0
0
0
0
0.078695
0.011996
0
0
0
0
0
1
0.052632
false
0
0.192982
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
519570b06f319b34b830bc38363fe48ded0d8966
3,686
py
Python
ressonantes/core/models/organization/organization.py
ag-castro/brazil-ongs-mapping
80f7542d437913ad92cd74b6e456760f61be32ad
[ "Unlicense" ]
1
2020-09-07T17:33:42.000Z
2020-09-07T17:33:42.000Z
ressonantes/core/models/organization/organization.py
ag-castro/brazil-ongs-mapping
80f7542d437913ad92cd74b6e456760f61be32ad
[ "Unlicense" ]
null
null
null
ressonantes/core/models/organization/organization.py
ag-castro/brazil-ongs-mapping
80f7542d437913ad92cd74b6e456760f61be32ad
[ "Unlicense" ]
null
null
null
import random import string from datetime import date from django.db import models from django.core.validators import validate_email from django.core.validators import validate_slug from django.core.validators import validate_unicode_slug from django.contrib.auth import get_user_model from django.utils.translation impo...
30.213115
69
0.645958
420
3,686
5.488095
0.330952
0.095445
0.039046
0.027766
0.313232
0.269848
0.196095
0.169197
0.169197
0.169197
0
0.00726
0.252577
3,686
121
70
30.46281
0.829401
0.009767
0
0.168142
0
0
0.127333
0
0
0
0
0
0
1
0
false
0
0.088496
0
0.274336
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5196b7f30facdbb359a3288ac6d9df2fd67191b7
988
py
Python
source/svlib/tests/conftest.py
DomBalint/SecureVision
311e4744fdc8513079c2e7dcfbc2316035f92793
[ "MIT" ]
null
null
null
source/svlib/tests/conftest.py
DomBalint/SecureVision
311e4744fdc8513079c2e7dcfbc2316035f92793
[ "MIT" ]
null
null
null
source/svlib/tests/conftest.py
DomBalint/SecureVision
311e4744fdc8513079c2e7dcfbc2316035f92793
[ "MIT" ]
null
null
null
import os import pytest files = ['test1.yaml', 'test2.yaml', 'test3.yaml'] @pytest.fixture(scope='module') def desired_config_files(): return [os.path.join(os.getcwd(), 'data_test', file) for file in files] params_configs = [ { 'mail_server': { 'host': 'example11.securevison.intra.net...
20.163265
75
0.574899
105
988
5.266667
0.514286
0.070524
0.097649
0.130199
0.097649
0
0
0
0
0
0
0.026499
0.274292
988
48
76
20.583333
0.74477
0
0
0.054054
0
0
0.244939
0.096154
0
0
0
0
0
1
0.081081
false
0.027027
0.054054
0.054054
0.216216
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5196f9c7d01c0adec8869c697882fc216857847d
643
py
Python
app.py
miccarrer/copbot
44c549afd6d80ae516c8615d6b18518b745f9020
[ "MIT" ]
null
null
null
app.py
miccarrer/copbot
44c549afd6d80ae516c8615d6b18518b745f9020
[ "MIT" ]
null
null
null
app.py
miccarrer/copbot
44c549afd6d80ae516c8615d6b18518b745f9020
[ "MIT" ]
null
null
null
import logging from src.config import get_env_var, get_yaml_file from src.discord.bot import DiscordBot from src.service import AppService if __name__ == '__main__': base_config = get_yaml_file('base') logging.basicConfig(**base_config['logging']) try: logging.info('Starting Bot') discord...
29.227273
59
0.698289
79
643
5.392405
0.443038
0.049296
0.077465
0.079812
0
0
0
0
0
0
0
0
0.202177
643
21
60
30.619048
0.830409
0
0
0
0
0
0.125972
0
0
0
0
0
0
1
0
false
0
0.222222
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
51992a037bb72c62719a2b885a904c938dc3ece2
9,821
py
Python
main.py
zypangpang/example_of_lightgbm
c4862253cbb4233f1143c21608f3dd6ff9f59d78
[ "MIT" ]
null
null
null
main.py
zypangpang/example_of_lightgbm
c4862253cbb4233f1143c21608f3dd6ff9f59d78
[ "MIT" ]
null
null
null
main.py
zypangpang/example_of_lightgbm
c4862253cbb4233f1143c21608f3dd6ff9f59d78
[ "MIT" ]
1
2021-10-22T02:36:10.000Z
2021-10-22T02:36:10.000Z
import numpy as np import pandas as pd import lightgbm as lgb from pathlib import Path from functools import reduce from sklearn.metrics import roc_auc_score import hyperopt from hyperopt import STATUS_OK, Trials, hp, space_eval, tpe import utils, feature_selector, preprocess global_params = { 'CK_var_threshold': ...
38.363281
112
0.68099
1,496
9,821
4.131684
0.149733
0.027827
0.01537
0.023297
0.327132
0.260961
0.21194
0.2011
0.191717
0.176185
0
0.016555
0.181957
9,821
255
113
38.513725
0.752801
0.103248
0
0.049451
0
0
0.188404
0.063447
0
0
0
0
0
1
0.06044
false
0
0.093407
0
0.203297
0.10989
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
519bee9e5276c118445215e895dd293662cda568
2,693
py
Python
heic-conv.py
shihaocao/heic-converter
5a6b068dfbf69c982397d20b69d9c67e260eee82
[ "MIT" ]
null
null
null
heic-conv.py
shihaocao/heic-converter
5a6b068dfbf69c982397d20b69d9c67e260eee82
[ "MIT" ]
1
2021-12-24T07:36:25.000Z
2021-12-25T23:17:20.000Z
heic-conv.py
shihaocao/heic-converter
5a6b068dfbf69c982397d20b69d9c67e260eee82
[ "MIT" ]
1
2021-12-24T01:06:11.000Z
2021-12-24T01:06:11.000Z
'''A python script for batch converting heic files.''' import argparse import os import subprocess import time CMD = "heif-convert" QUALITY = "-q" QUALITY_ARG = "99" AUX_FILE_SUFFIX = "-urn:com:apple:photo:2020:aux:hdrgainmap" def parse_args() -> argparse.Namespace: '''Get the args from the command line''' ...
34.525641
112
0.678054
375
2,693
4.674667
0.338667
0.0502
0.038791
0.032516
0.10154
0
0
0
0
0
0
0.004671
0.204976
2,693
78
113
34.525641
0.814106
0.116227
0
0
0
0
0.201442
0.016964
0
0
0
0
0
1
0.055556
false
0
0.092593
0
0.185185
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
519d2e3dfdf9c558c8b3e16c368955fda216a00c
1,251
py
Python
generate_images.py
rwg1234/sticks
4d1398c0a659bbc1b4c9e44ae8ea5a5429a96c0f
[ "MIT" ]
null
null
null
generate_images.py
rwg1234/sticks
4d1398c0a659bbc1b4c9e44ae8ea5a5429a96c0f
[ "MIT" ]
null
null
null
generate_images.py
rwg1234/sticks
4d1398c0a659bbc1b4c9e44ae8ea5a5429a96c0f
[ "MIT" ]
null
null
null
# Script to create www/assets/sprites/{box,stack}_*.png # This file is NOT a part of the www/ folder and DOES NOT need to be deployed. It is used for development only. from PIL import Image SOURCE_DIRECTORY = "www/assets/matches gens_1-12" DEST_DIRECTORY = "www/assets/sprites" for i in range(1, 13): original_fil...
43.137931
135
0.692246
206
1,251
4.07767
0.456311
0.053571
0.071429
0.033333
0.069048
0.069048
0
0
0
0
0
0.028971
0.19984
1,251
29
136
43.137931
0.81019
0.334932
0
0
0
0
0.119855
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
519e717718802250addcc03ae24b702964950e74
15,237
py
Python
api/backend/app/namespace/api.py
radsec/ottr
411559a2bac307594c92d4d14667143cd04625ff
[ "Apache-2.0" ]
207
2021-10-29T20:35:04.000Z
2022-03-02T08:04:06.000Z
api/backend/app/namespace/api.py
wngn123/ottr
411559a2bac307594c92d4d14667143cd04625ff
[ "Apache-2.0" ]
3
2021-11-05T05:50:57.000Z
2022-01-03T06:07:18.000Z
api/backend/app/namespace/api.py
wngn123/ottr
411559a2bac307594c92d4d14667143cd04625ff
[ "Apache-2.0" ]
19
2021-11-03T06:34:46.000Z
2022-03-21T14:06:54.000Z
""" Copyright 2021-present Airbnb, 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 writing, sof...
50.121711
800
0.64829
1,688
15,237
5.619076
0.167654
0.048498
0.020875
0.021402
0.558988
0.545704
0.50058
0.482657
0.469584
0.395888
0
0.014593
0.248934
15,237
303
801
50.287129
0.814226
0.049025
0
0.491597
0
0.008403
0.204863
0.033568
0
0
0
0
0
1
0.042017
false
0.004202
0.046218
0
0.210084
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
519f171ce6f44a916c5bc406a1cd821a75880bb1
2,803
py
Python
my_robot/launch/robot_description.launch.py
arpit6232/ros2_gazebo_integration
a57c781824166722d68b555e21fc48fcf856a0bd
[ "Apache-2.0" ]
null
null
null
my_robot/launch/robot_description.launch.py
arpit6232/ros2_gazebo_integration
a57c781824166722d68b555e21fc48fcf856a0bd
[ "Apache-2.0" ]
null
null
null
my_robot/launch/robot_description.launch.py
arpit6232/ros2_gazebo_integration
a57c781824166722d68b555e21fc48fcf856a0bd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import yaml from ament_index_python.packages import get_package_share_directory from launch import LaunchDescription from launch.actions import DeclareLaunchArgument from launch.actions import IncludeLaunchDescription from launch.conditions import IfCondition from launch.launch_descri...
30.139785
99
0.699251
367
2,803
5.100817
0.283379
0.037393
0.026709
0.051282
0.169872
0.152778
0.126068
0.126068
0.126068
0.09188
0
0.000453
0.212629
2,803
92
100
30.467391
0.847757
0.136639
0
0.129032
0
0
0.123276
0.010029
0
0
0
0
0
1
0.080645
false
0
0.16129
0
0.354839
0.016129
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51a0718e8863a5231ddc644bc610b93556c2f43d
1,429
py
Python
wouso/games/grandchallenge/views.py
AlexandruGhergut/wouso
f26244ff58ae626808ae8c58ccc93d21f9f2666f
[ "Apache-2.0" ]
117
2015-01-02T18:07:33.000Z
2021-01-06T22:36:25.000Z
wouso/games/grandchallenge/views.py
AlexandruGhergut/wouso
f26244ff58ae626808ae8c58ccc93d21f9f2666f
[ "Apache-2.0" ]
229
2015-01-12T07:07:58.000Z
2019-10-12T08:27:01.000Z
wouso/games/grandchallenge/views.py
AlexandruGhergut/wouso
f26244ff58ae626808ae8c58ccc93d21f9f2666f
[ "Apache-2.0" ]
96
2015-01-07T05:26:09.000Z
2020-06-25T07:28:51.000Z
from django.contrib import messages from django.contrib.auth.decorators import login_required from django.shortcuts import render, render_to_response from django.template import RequestContext from models import GrandChallengeGame, GrandChallengeUser from wouso.core.ui import register_sidebar_block from wouso.interfac...
42.029412
110
0.748775
176
1,429
5.903409
0.392045
0.040423
0.032724
0.071222
0
0
0
0
0
0
0
0
0.153254
1,429
34
111
42.029412
0.858678
0.030091
0
0
0
0
0.137056
0.057288
0
0
0
0
0
1
0.074074
false
0
0.259259
0
0.481481
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51a2c3962a3a17215f77501362d5256d9fd5774a
4,091
py
Python
day_16.py
JamesOwers/aoc2017
682e73c3c80562e59cb9a3ce44c152fbd1994b97
[ "MIT" ]
null
null
null
day_16.py
JamesOwers/aoc2017
682e73c3c80562e59cb9a3ce44c152fbd1994b97
[ "MIT" ]
null
null
null
day_16.py
JamesOwers/aoc2017
682e73c3c80562e59cb9a3ce44c152fbd1994b97
[ "MIT" ]
null
null
null
from __future__ import division, print_function import os from my_utils.tests import test_function import string def spin(inst_string, programs): nr = int(inst_string) if nr == 0: return programs old_programs = programs[:] programs[0:nr] = old_programs[-nr:] programs[nr:] = old_programs[0:-...
30.080882
94
0.615742
519
4,091
4.643545
0.271676
0.045643
0.044813
0.038174
0.204564
0.154357
0.078838
0.061411
0.061411
0.061411
0
0.024124
0.260328
4,091
135
95
30.303704
0.772307
0.204595
0
0.117647
0
0
0.042245
0
0
0
0
0
0
1
0.070588
false
0.011765
0.047059
0
0.188235
0.035294
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51a358ddac445393325f7c09b1e0d7e668772ee9
1,513
py
Python
index/handler.py
googleglass/mirror-catfacts-python
31d957cf9236128f8f4606668ce168b5e1470030
[ "Apache-2.0" ]
4
2016-10-13T22:17:52.000Z
2020-08-08T18:29:23.000Z
index/handler.py
googleglass/mirror-catfacts-python
31d957cf9236128f8f4606668ce168b5e1470030
[ "Apache-2.0" ]
null
null
null
index/handler.py
googleglass/mirror-catfacts-python
31d957cf9236128f8f4606668ce168b5e1470030
[ "Apache-2.0" ]
5
2015-02-21T09:04:13.000Z
2020-02-02T00:01:38.000Z
# Copyright (C) 2014 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
28.018519
74
0.708526
187
1,513
5.636364
0.625668
0.056926
0.024668
0.030361
0
0
0
0
0
0
0
0.010535
0.184402
1,513
53
75
28.54717
0.843598
0.434898
0
0
0
0
0.163241
0
0
0
0
0
0
1
0.04
false
0
0.12
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
51a987bb42f9129c3d434e226fa501c00fe36edf
9,801
py
Python
sportrefpy/nfl/player.py
alexkahan/sports_stats
6fbc435c8fa0dffb0b7152ce42c055a252858c54
[ "MIT" ]
null
null
null
sportrefpy/nfl/player.py
alexkahan/sports_stats
6fbc435c8fa0dffb0b7152ce42c055a252858c54
[ "MIT" ]
null
null
null
sportrefpy/nfl/player.py
alexkahan/sports_stats
6fbc435c8fa0dffb0b7152ce42c055a252858c54
[ "MIT" ]
null
null
null
import requests import os from bs4 import BeautifulSoup, Comment import pandas as pd import numpy as np import enchant from sportrefpy.nfl.league import NFL from sportrefpy.errors.not_found import PlayerNotFound class NFLPlayer(NFL): def __init__(self, player): super().__init__() player_dict = ...
42.986842
107
0.531374
1,017
9,801
5.036382
0.158309
0.034362
0.035143
0.02499
0.71105
0.666927
0.604842
0.59508
0.572433
0.556619
0
0.00277
0.336904
9,801
227
108
43.176211
0.785352
0.735741
0
0.121212
0
0
0.095851
0.024066
0
0
0
0
0
1
0.030303
false
0
0.242424
0
0.30303
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51acd2ce8f5fd62db4d35ce9e5d03738c3f8c0ff
2,395
py
Python
undiscord/server/__main__.py
nklapste/undiscord
221b8387561494f1c721db21ef05729e0abb6b08
[ "MIT" ]
3
2019-06-14T21:36:08.000Z
2020-12-21T09:25:30.000Z
undiscord/server/__main__.py
nklapste/undiscord
221b8387561494f1c721db21ef05729e0abb6b08
[ "MIT" ]
3
2019-01-13T21:06:04.000Z
2019-01-14T06:56:44.000Z
undiscord/server/__main__.py
nklapste/undiscord
221b8387561494f1c721db21ef05729e0abb6b08
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """argparse and entry point script for undiscord flask/cheroot server""" import argparse import os import sys from logging import getLogger from cheroot.wsgi import Server as WSGIServer, PathInfoDispatcher import undiscord.server.server from undiscord.common import add_...
31.933333
108
0.65261
282
2,395
5.333333
0.368794
0.047872
0.055851
0.071809
0.065824
0
0
0
0
0
0
0.005975
0.231315
2,395
74
109
32.364865
0.810972
0.093528
0
0
0
0
0.17688
0
0
0
0
0
0
1
0.038462
false
0
0.134615
0
0.211538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51af100bd940df7f4472f28df5f3cb8e0fc2b56d
8,943
py
Python
logic/core/game.py
rdelacrz/connect-four
7123d6e649aadcb76f429c61dde405527211c5b2
[ "MIT" ]
null
null
null
logic/core/game.py
rdelacrz/connect-four
7123d6e649aadcb76f429c61dde405527211c5b2
[ "MIT" ]
null
null
null
logic/core/game.py
rdelacrz/connect-four
7123d6e649aadcb76f429c61dde405527211c5b2
[ "MIT" ]
null
null
null
""" Contains the logic needed to run a game of Connect Four. """ # Built-in modules from copy import deepcopy # User-defined modules from .components import ConnectFourGrid, Disc from .exceptions import IllegalAction, IllegalState, InvalidSpace from ..utilities import js_callback DISC_COLORS = [ '#F5473E', # re...
39.570796
120
0.634015
1,272
8,943
4.312107
0.177673
0.061258
0.034093
0.026253
0.269098
0.194713
0.162078
0.129991
0.102461
0.071103
0
0.010255
0.280331
8,943
226
121
39.570796
0.841983
0.339931
0
0.181034
0
0
0.066667
0.004932
0
0
0
0
0
1
0.103448
false
0
0.034483
0.017241
0.275862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51b196fb1c16109226ea07074ed93a9af4c9a3cb
3,321
py
Python
rdflib/plugins/parsers/pyRdfa/transform/DublinCore.py
gromgull/rdflib
7c90f646e3734ee6d3081b5d3f699f0f501f6a39
[ "BSD-3-Clause" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
rdflib/plugins/parsers/pyRdfa/transform/DublinCore.py
gromgull/rdflib
7c90f646e3734ee6d3081b5d3f699f0f501f6a39
[ "BSD-3-Clause" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
rdflib/plugins/parsers/pyRdfa/transform/DublinCore.py
gromgull/rdflib
7c90f646e3734ee6d3081b5d3f699f0f501f6a39
[ "BSD-3-Clause" ]
4
2021-06-10T18:54:16.000Z
2021-10-25T00:42:22.000Z
# -*- coding: utf-8 -*- """ Transfomer: handles the Dublin Core recommendation for XHTML for adding DC values. What this means is that: - DC namespaces are defined via C{<link rel="schema.XX" value="...."/>} - The 'XX.term' is used much like QNames in C{<link>} and C{<meta>} elements. For the latter, the namespaced ...
33.887755
154
0.6486
464
3,321
4.640086
0.392241
0.013934
0.012541
0.016721
0.196935
0.182072
0.169066
0.169066
0.169066
0.169066
0
0.02344
0.203553
3,321
97
155
34.237113
0.79017
0.465824
0
0.489796
0
0
0.04823
0
0
0
0
0
0
1
0.020408
false
0.020408
0.020408
0
0.081633
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51b2b4ac9db120f311d239b140062958cf771fe6
2,898
py
Python
app.py
Yaamboo/suomipelit-api
fd5d0058d4820667dd78669207ae7646055239f4
[ "Apache-2.0" ]
null
null
null
app.py
Yaamboo/suomipelit-api
fd5d0058d4820667dd78669207ae7646055239f4
[ "Apache-2.0" ]
null
null
null
app.py
Yaamboo/suomipelit-api
fd5d0058d4820667dd78669207ae7646055239f4
[ "Apache-2.0" ]
null
null
null
from flask import abort, Flask, jsonify import sqlite3 import re from Suomipelit.jsonencoder import OmaEncoder from Suomipelit.models import Peli, Peliarvostelu, Kappale, Kuva app = Flask(__name__) app.json_encoder = OmaEncoder @app.route("/api/pelit") def pelit(): return jsonify(lataa_pelit()) def lataa_pelit()...
28.693069
180
0.613182
332
2,898
5.286145
0.268072
0.023932
0.02906
0.018234
0.164103
0.118519
0.094587
0.094587
0.094587
0.094587
0
0.006564
0.263975
2,898
100
181
28.98
0.816221
0.014493
0
0.157895
0
0.013158
0.141354
0
0
0
0
0
0
1
0.065789
false
0
0.065789
0.013158
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
51b31553ef083d8d41b49feb74b1b78a77ce9832
1,563
py
Python
ices_erf32_generator_cli.py
sharkdata/ices
e529a2636f06b942d39b57897ca17023f76fb80d
[ "MIT" ]
null
null
null
ices_erf32_generator_cli.py
sharkdata/ices
e529a2636f06b942d39b57897ca17023f76fb80d
[ "MIT" ]
null
null
null
ices_erf32_generator_cli.py
sharkdata/ices
e529a2636f06b942d39b57897ca17023f76fb80d
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding:utf-8 -*- # # Copyright (c) 2021-present SMHI, Swedish Meteorological and Hydrological Institute # License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit). import pathlib import click import ices_erf32_generator_main global ices_config @click.command() @click.opt...
29.490566
84
0.666027
206
1,563
4.81068
0.42233
0.127144
0.151362
0.060545
0
0
0
0
0
0
0
0.042197
0.196417
1,563
52
85
30.057692
0.746815
0.152271
0
0.055556
0
0
0.226994
0.022239
0
0
0
0
0
1
0.027778
false
0
0.083333
0
0.138889
0.194444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51b3dd135b10c21259433ea1463301ed5c72163c
2,790
py
Python
test/module_train_test.py
nktankta/PytorchCNNModules
bc1469ceb37477d3f60062f14a750f272e7ceeb0
[ "MIT" ]
null
null
null
test/module_train_test.py
nktankta/PytorchCNNModules
bc1469ceb37477d3f60062f14a750f272e7ceeb0
[ "MIT" ]
null
null
null
test/module_train_test.py
nktankta/PytorchCNNModules
bc1469ceb37477d3f60062f14a750f272e7ceeb0
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim import torchvision import torchvision.transforms as transforms import numpy as np from module_easyModel import EasyModel from module_list import get_test_module import pytest test_modules = get_test_module() transform = transforms.Compose( [transforms...
36.710526
69
0.524373
281
2,790
5.120996
0.398577
0.034746
0.018068
0.038916
0.051425
0.051425
0
0
0
0
0
0.030474
0.364875
2,790
75
70
37.2
0.781603
0
0
0.151515
0
0
0.047704
0
0
0
0
0
0.015152
1
0.015152
false
0
0.136364
0
0.151515
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51b52f4360dde9f8fcf753a559f4341aae212c20
1,592
py
Python
Projects/project_2_packages/Team_cool/OLS_team_cool/logit.py
gen-li/modularizationandtesting
103be0c80bd70ffcf4c700861497745733b72640
[ "MIT" ]
null
null
null
Projects/project_2_packages/Team_cool/OLS_team_cool/logit.py
gen-li/modularizationandtesting
103be0c80bd70ffcf4c700861497745733b72640
[ "MIT" ]
null
null
null
Projects/project_2_packages/Team_cool/OLS_team_cool/logit.py
gen-li/modularizationandtesting
103be0c80bd70ffcf4c700861497745733b72640
[ "MIT" ]
null
null
null
import numpy as np import scipy.stats as st import statsmodels as sm from scipy import optimize y = np.random.randint(2, size=(100,1)) x = np.random.normal(0,1,(100,2)) res_correct = sm.discrete.discrete_model.Logit(y,x).fit() res_correct.params def Logit(b,y,x): # y = np.random.randint(2, size=(100,1)) # x...
23.411765
119
0.557161
269
1,592
3.327138
0.30855
0.017877
0.020112
0.023464
0.215642
0.176536
0.149721
0.149721
0.149721
0.149721
0
0.050654
0.231156
1,592
67
120
23.761194
0.660131
0.564698
0
0
0
0
0
0
0
0
0
0
0
1
0.055556
false
0
0.222222
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
51bc4a4baca841ac8b5c86065dd040c9313df97d
5,847
py
Python
fractals/pytorch/model_processor.py
NeilBostian/ML
df487db8755ad074cdd42f1094747815ae555896
[ "Unlicense" ]
1
2019-10-11T21:36:06.000Z
2019-10-11T21:36:06.000Z
fractals/pytorch/model_processor.py
NeilBostian/ML
df487db8755ad074cdd42f1094747815ae555896
[ "Unlicense" ]
null
null
null
fractals/pytorch/model_processor.py
NeilBostian/ML
df487db8755ad074cdd42f1094747815ae555896
[ "Unlicense" ]
null
null
null
import os import random import pickle import datetime import torch import numpy as np from PIL import Image from model import Model from train_data import TrainData from loss_train_data import get_loss_train_data class ModelProcessor(): def __init__(self, path): self.path = path self.device = tor...
31.605405
116
0.507611
691
5,847
4.068017
0.180897
0.039843
0.032017
0.015653
0.334045
0.245464
0.245464
0.165777
0.118819
0.097474
0
0.011599
0.380708
5,847
185
117
31.605405
0.764706
0.017103
0
0.208333
0
0
0.110279
0.036411
0
0
0
0
0
1
0.076389
false
0.006944
0.069444
0.006944
0.159722
0.034722
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51be5f0b52819e31e6e93a3882ca71e420ce2121
573
py
Python
python/Python-Quick-Start/generator_func.py
pepincho/playground
9202a3dab880ff789e5fb96b259c3e0c2503cb49
[ "MIT" ]
null
null
null
python/Python-Quick-Start/generator_func.py
pepincho/playground
9202a3dab880ff789e5fb96b259c3e0c2503cb49
[ "MIT" ]
null
null
null
python/Python-Quick-Start/generator_func.py
pepincho/playground
9202a3dab880ff789e5fb96b259c3e0c2503cb49
[ "MIT" ]
null
null
null
# print all prime numbers in a range with a generator function in python #that is an utility function def isprime(n): if n == 1: return False for x in range(2, n): if n % x == 0: return False else: return True #generator function is used in the for loop as an iterator #...
23.875
72
0.624782
94
573
3.808511
0.457447
0.02514
0.022346
0
0
0
0
0
0
0
0
0.020101
0.30541
573
23
73
24.913043
0.879397
0.460733
0
0.133333
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0
0
0.333333
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51c02944976e6d03f939af067e9a4a01386ea663
8,577
py
Python
pygalgen/generator/common/source_file_parsing/parser_discovery_and_init.py
Kulivox/PyGalGen
816004bce50703737384e2fbdcfe43b61ce2f4dd
[ "MIT" ]
null
null
null
pygalgen/generator/common/source_file_parsing/parser_discovery_and_init.py
Kulivox/PyGalGen
816004bce50703737384e2fbdcfe43b61ce2f4dd
[ "MIT" ]
null
null
null
pygalgen/generator/common/source_file_parsing/parser_discovery_and_init.py
Kulivox/PyGalGen
816004bce50703737384e2fbdcfe43b61ce2f4dd
[ "MIT" ]
null
null
null
""" Module responsible for discovery of import statements importing Argument parser and discovery of the statements initializing the parser itself """ import ast import sys from typing import Tuple, Optional, Any, Set, List from .parsing_exceptions import ArgParseImportNotFound, ArgParserNotUsed from .parsing_commons i...
35.589212
79
0.641483
1,046
8,577
5.09847
0.17304
0.039377
0.028502
0.025877
0.350834
0.270954
0.238702
0.184699
0.174198
0.174198
0
0.00097
0.279002
8,577
240
80
35.7375
0.861417
0.198205
0
0.303448
0
0
0.007876
0
0
0
0
0
0.006897
1
0.131034
false
0
0.075862
0.02069
0.365517
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51c0e5193ac5162e3a0fb7638cb34cf6d76fc644
358
py
Python
cpovc_pfs/pmtct/urls.py
uonafya/cpims-ovc-3.0
ec2768c00fc0855eb4983a94204cfcdee0824e19
[ "Apache-2.0" ]
2
2022-02-26T14:04:40.000Z
2022-03-23T17:33:32.000Z
cpovc_pfs/pmtct/urls.py
uonafya/cpims-ovc-3.0
ec2768c00fc0855eb4983a94204cfcdee0824e19
[ "Apache-2.0" ]
null
null
null
cpovc_pfs/pmtct/urls.py
uonafya/cpims-ovc-3.0
ec2768c00fc0855eb4983a94204cfcdee0824e19
[ "Apache-2.0" ]
19
2022-02-26T13:44:58.000Z
2022-03-26T17:20:22.000Z
from django.urls import path from . import views # This should contain urls related to OVC ONLY urlpatterns = [ path('', views.pmtct_home, name='pmtct_home'), path('new/<int:id>/', views.new_pmtct, name='new_pmtct'), path('view/<int:id>/', views.view_pmtct, name='view_pmtct'), path('edit/<int:id>/', vi...
32.545455
64
0.678771
54
358
4.351852
0.407407
0.06383
0.12766
0
0
0
0
0
0
0
0
0
0.139665
358
10
65
35.8
0.762987
0.122905
0
0
0
0
0.25641
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
51c49423dfa19179ff9a8960299203c4be600c6e
311
py
Python
delay.py
fleidloff/effect-pedal
20680294e70979ec230ec2798c836a6447c49853
[ "MIT" ]
null
null
null
delay.py
fleidloff/effect-pedal
20680294e70979ec230ec2798c836a6447c49853
[ "MIT" ]
null
null
null
delay.py
fleidloff/effect-pedal
20680294e70979ec230ec2798c836a6447c49853
[ "MIT" ]
null
null
null
import pyo from settings import audioSource s = pyo.Server(audio=audioSource, nchnls=1).boot() s.start() a = pyo.Input(chnl=0).out() delay = pyo.Delay(a, delay=.5, feedback=.5) delay.out() while True: s = raw_input('Delay'); if s == "q": quit() delay.setDelay(float(s)) #s.gui(locals())
17.277778
50
0.630225
49
311
3.979592
0.612245
0
0
0
0
0
0
0
0
0
0
0.015686
0.180064
311
18
51
17.277778
0.74902
0.048232
0
0
0
0
0.02027
0
0
0
0
0
0
1
0
false
0
0.166667
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
51c64365386b4968c448213772fdf24be5c8b7b8
297
py
Python
djangoPharma/drugs/validators.py
thodoris/djangoPharma
76089e67bc9940651a876d078879469127f5ac66
[ "Apache-2.0" ]
null
null
null
djangoPharma/drugs/validators.py
thodoris/djangoPharma
76089e67bc9940651a876d078879469127f5ac66
[ "Apache-2.0" ]
null
null
null
djangoPharma/drugs/validators.py
thodoris/djangoPharma
76089e67bc9940651a876d078879469127f5ac66
[ "Apache-2.0" ]
null
null
null
from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ def validate_integer(value): if type(value) is not int: raise ValidationError( _('%(value)s is not an even number'), params={'value': value}, )
27
55
0.659933
36
297
5.333333
0.722222
0.104167
0
0
0
0
0
0
0
0
0
0
0.249158
297
10
56
29.7
0.860987
0
0
0
0
0
0.121212
0
0
0
0
0
0
1
0.125
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
51c80e982e0d954d47d04ce8e0ca20615f304653
6,568
py
Python
Reto1/unet_training.py
Hackaton-JusticIA-2021/pista-latente-ML-sol
3aeeae5970539c0b17358e4ac8585b13c9cea07b
[ "MIT" ]
null
null
null
Reto1/unet_training.py
Hackaton-JusticIA-2021/pista-latente-ML-sol
3aeeae5970539c0b17358e4ac8585b13c9cea07b
[ "MIT" ]
null
null
null
Reto1/unet_training.py
Hackaton-JusticIA-2021/pista-latente-ML-sol
3aeeae5970539c0b17358e4ac8585b13c9cea07b
[ "MIT" ]
1
2021-08-22T02:38:38.000Z
2021-08-22T02:38:38.000Z
import numpy as np import cv2 import os import keras import tensorflow as tf import random import matplotlib.pyplot as plt from glob import glob from keras import layers from keras.backend.tensorflow_backend import set_session from tensorflow.python.client import device_lib input_dir_1 = "unet/images/" target_dir_1 = ...
37.531429
105
0.701279
966
6,568
4.52381
0.238095
0.087872
0.071396
0.027231
0.414416
0.367735
0.303661
0.26865
0.132265
0.121281
0
0.023071
0.175091
6,568
175
106
37.531429
0.783499
0.140073
0
0.173554
0
0
0.053524
0.003925
0
0
0
0
0
1
0.033058
false
0
0.090909
0.008264
0.157025
0.016529
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51c897010d686c63214412a25e6bca01df90e345
343
py
Python
wangdai/spiders/zj_sprider.py
jiaoshenmene/wangdai
82090948602bc756048b4655b41a8a342e58a03e
[ "MIT" ]
null
null
null
wangdai/spiders/zj_sprider.py
jiaoshenmene/wangdai
82090948602bc756048b4655b41a8a342e58a03e
[ "MIT" ]
null
null
null
wangdai/spiders/zj_sprider.py
jiaoshenmene/wangdai
82090948602bc756048b4655b41a8a342e58a03e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy class Sprider(scrapy.Spider): name = "zj" start_urls = [ 'https://www.wdzj.com/pingji.html' ] def parse(self , response): for quote in response.css('div.tb-platname'): yield { 'name': quote.css('a::text').extract_f...
19.055556
62
0.51312
39
343
4.461538
0.871795
0
0
0
0
0
0
0
0
0
0
0.00431
0.323615
343
18
63
19.055556
0.74569
0.061224
0
0
0
0
0.186916
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51c925099b64da573af34c5499717de76a3fec2e
706
py
Python
asterisk/forms.py
ahmednamoha/astroapp
10ff7d2fa92ce430ce39a036c501f64429ddcec7
[ "MIT" ]
null
null
null
asterisk/forms.py
ahmednamoha/astroapp
10ff7d2fa92ce430ce39a036c501f64429ddcec7
[ "MIT" ]
null
null
null
asterisk/forms.py
ahmednamoha/astroapp
10ff7d2fa92ce430ce39a036c501f64429ddcec7
[ "MIT" ]
null
null
null
from django.db import models from django import forms from django.forms import ModelForm, TextInput, FileField, NumberInput from .models import Extentions, Queue class ExtentionsForm(ModelForm): class Meta: model = Extentions fields = ['exten', 'file'] widgets = {'exten': NumberInput( ...
29.416667
84
0.620397
71
706
6.169014
0.422535
0.068493
0.09589
0.143836
0.269406
0.196347
0
0
0
0
0
0.001848
0.233711
706
23
85
30.695652
0.807763
0
0
0.117647
0
0
0.201133
0
0
0
0
0
0
1
0
false
0
0.235294
0
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51c93dd8819a23b3597d92e0d07d3b2369c52da0
1,983
py
Python
admin-portal/therapy/models.py
oakbani/ksdp-portal
8f44b3cb0081a7f31b9c8121883dd51945a05520
[ "MIT" ]
null
null
null
admin-portal/therapy/models.py
oakbani/ksdp-portal
8f44b3cb0081a7f31b9c8121883dd51945a05520
[ "MIT" ]
null
null
null
admin-portal/therapy/models.py
oakbani/ksdp-portal
8f44b3cb0081a7f31b9c8121883dd51945a05520
[ "MIT" ]
1
2021-09-19T10:58:17.000Z
2021-09-19T10:58:17.000Z
from django.db import models from clients.models import Client # Create your models here. class TherapyCenter(models.Model): title = models.CharField(max_length=30) location = models.CharField(max_length=30) phone_no = models.CharField(max_length=15) def __str__(self): return self.title clas...
32.508197
118
0.665154
249
1,983
5.144578
0.301205
0.070258
0.117096
0.093677
0.466042
0.270101
0.232631
0.157689
0
0
0
0.02011
0.172466
1,983
60
119
33.05
0.760512
0.012103
0
0.217391
0
0.043478
0.145631
0.05723
0
0
0
0
0
1
0.086957
false
0
0.043478
0.086957
0.76087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51ceefe54c4a73ce82c7712450c6f6534c6876d4
3,501
py
Python
service/handlers/my_handler.py
ran-isenberg/aws-lambda-handler-cookbook
adfe58dacd87315151265818869bb842c7eb4971
[ "MIT" ]
61
2022-02-07T05:21:14.000Z
2022-03-27T14:11:30.000Z
service/handlers/my_handler.py
ran-isenberg/aws-lambda-handler-cookbook
adfe58dacd87315151265818869bb842c7eb4971
[ "MIT" ]
17
2022-02-26T05:25:31.000Z
2022-03-16T20:02:46.000Z
service/handlers/my_handler.py
ran-isenberg/aws-lambda-handler-cookbook
adfe58dacd87315151265818869bb842c7eb4971
[ "MIT" ]
4
2022-02-17T16:35:27.000Z
2022-03-07T03:13:07.000Z
from http import HTTPStatus from typing import Any, Dict from aws_lambda_powertools.metrics.metrics import MetricUnit from aws_lambda_powertools.utilities.feature_flags.exceptions import ConfigurationStoreError, SchemaValidationError from aws_lambda_powertools.utilities.parser import ValidationError, parse from aws_la...
51.485294
115
0.790346
420
3,501
6.37619
0.304762
0.03286
0.056759
0.042942
0.137043
0.113144
0.037341
0.037341
0.037341
0
0
0.000326
0.123679
3,501
67
116
52.253731
0.872555
0.028849
0
0.072727
0
0
0.107153
0.012953
0
0
0
0
0
1
0.036364
false
0
0.272727
0
0.381818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51cf936521268672d39eaa8e60b4fea15504c4c2
327
py
Python
faktura/breadcrumbs.py
Tethik/faktura
a2ffa7d93d9b4afbaafe02e5ae65c5e3541fd969
[ "MIT" ]
null
null
null
faktura/breadcrumbs.py
Tethik/faktura
a2ffa7d93d9b4afbaafe02e5ae65c5e3541fd969
[ "MIT" ]
1
2016-02-16T10:06:34.000Z
2016-02-16T10:06:34.000Z
faktura/breadcrumbs.py
Tethik/faktura
a2ffa7d93d9b4afbaafe02e5ae65c5e3541fd969
[ "MIT" ]
null
null
null
class Breadcrumb: def __init__(self, url, text): self.url = url self.text = text url_dict = { 'Main Menu': '/', 'Invoices': '/invoices', 'Customers': '/customers', 'Settings': '/settings' } def breadcrumbs(*shortwords): return [Breadcrumb(url_dict[word], word) for word in short...
21.8
68
0.611621
36
327
5.388889
0.527778
0.072165
0
0
0
0
0
0
0
0
0
0
0.232416
327
14
69
23.357143
0.772908
0
0
0
0
0
0.192661
0
0
0
0
0
0
1
0.166667
false
0
0
0.083333
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
51d3468a11499ea6c16dce5d6cf20348e89cbaf6
3,170
py
Python
workon/contrib/tracking/models.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
workon/contrib/tracking/models.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
workon/contrib/tracking/models.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import uuid try: from django.contrib.contenttypes.fields import GenericForeignKey except ImportError: from django.contrib.contenttypes.generic import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.utils.translation import ugette...
28.053097
79
0.658991
329
3,170
6.091185
0.297872
0.090818
0.025449
0.043413
0.338822
0.324351
0.288423
0.239521
0.170659
0.05988
0
0.004948
0.235016
3,170
113
80
28.053097
0.821443
0.017666
0
0.266667
0
0
0.192159
0.044987
0
0
0
0
0
1
0
false
0
0.088889
0
0.322222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51d35292854e309612a05a0a9928f4f1a1103650
12,377
py
Python
mister_ed/utils/checkpoints.py
jonasnm/geometric-certificates
8730abaf2ab0c8972a2d40168d5fe64c8670fc62
[ "MIT" ]
40
2019-01-17T22:17:42.000Z
2022-03-23T06:24:00.000Z
mister_ed/utils/checkpoints.py
Mortal12138/geometric-certificates
8730abaf2ab0c8972a2d40168d5fe64c8670fc62
[ "MIT" ]
6
2019-08-03T08:49:21.000Z
2022-03-11T23:43:56.000Z
mister_ed/utils/checkpoints.py
Mortal12138/geometric-certificates
8730abaf2ab0c8972a2d40168d5fe64c8670fc62
[ "MIT" ]
4
2020-10-22T05:55:30.000Z
2022-03-15T06:26:55.000Z
""" Code for saving/loading pytorch models and batches of adversarial images CHECKPOINT NAMING CONVENTIONS: <unique_experiment_name>.<architecture_abbreviation>.<6 digits of epoch number>.path e.g. fgsm_def.resnet32.20180301.120000.path All checkpoints are stored in CHECKPOINT_DIR Checkpoints are state dicts...
38.437888
88
0.594328
1,439
12,377
4.90132
0.203614
0.039699
0.058982
0.022118
0.327095
0.281015
0.2321
0.191975
0.158656
0.139232
0
0.005213
0.302577
12,377
321
89
38.557632
0.811863
0.316474
0
0.106667
0
0
0.019475
0
0
0
0
0.006231
0.02
1
0.093333
false
0
0.06
0
0.24
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51d4ea4507d80e27f773f363a22c466284face7c
2,219
py
Python
extra/carbontools.py
carbon-org/carbon
454d087f85f7fb9408eb0bc10ae702b8de844648
[ "MIT" ]
9
2021-03-20T13:09:52.000Z
2022-03-18T07:33:40.000Z
extra/carbontools.py
ThakeeNathees/Carbon
454d087f85f7fb9408eb0bc10ae702b8de844648
[ "MIT" ]
4
2020-08-11T07:57:00.000Z
2020-11-30T21:05:51.000Z
extra/carbontools.py
carbon-org/carbon
454d087f85f7fb9408eb0bc10ae702b8de844648
[ "MIT" ]
null
null
null
import os, sys import shutil CARBON_DIR = os.path.dirname(__file__) USAGE = '''\ ''' ## USAGE: ## sys.path.append('path/to/carbon/') ## import carbontools.py as cbtools ## lib = cbtools.GET_CARBON_LIB(env) def GET_CARBON_LIB(env): ## TODO: generate "*.gen.h" files SOURCES = [] cbenv = env.Clone(); cbenv.A...
19.8125
63
0.611537
304
2,219
4.345395
0.394737
0.027252
0.03785
0.036336
0.133989
0.034822
0
0
0
0
0
0.008287
0.184317
2,219
112
64
19.8125
0.721547
0.080216
0
0.046512
0
0
0.222662
0.014844
0
0
0
0.008929
0
1
0.069767
false
0.011628
0.023256
0
0.104651
0.081395
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51d59299ccdf71aaf83a73a14cec2a4bba7c6231
1,394
py
Python
tests/profiler/test_smtfprofiler_events.py
aaronmarkham/sagemaker-debugger
d271fbefb0cbe9686100850249c96a40fdc45b06
[ "Apache-2.0" ]
null
null
null
tests/profiler/test_smtfprofiler_events.py
aaronmarkham/sagemaker-debugger
d271fbefb0cbe9686100850249c96a40fdc45b06
[ "Apache-2.0" ]
null
null
null
tests/profiler/test_smtfprofiler_events.py
aaronmarkham/sagemaker-debugger
d271fbefb0cbe9686100850249c96a40fdc45b06
[ "Apache-2.0" ]
null
null
null
# First Party from smdebug.profiler import SMTFProfilerEvents def test_smtfprofiler_events(trace_file="./tests/profiler/smtf_profiler_trace.json"): trace_json_file = trace_file print(f"Reading the trace file {trace_json_file}") t_events = SMTFProfilerEvents(trace_json_file) all_trace_events = t_event...
42.242424
98
0.781205
206
1,394
4.868932
0.271845
0.062812
0.04985
0.063809
0.36989
0.227318
0.063809
0.063809
0
0
0
0.084448
0.142037
1,394
32
99
43.5625
0.754181
0.025108
0
0
0
0
0.265683
0.089299
0
0
0
0
0.217391
1
0.043478
false
0
0.043478
0
0.086957
0.26087
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51d63a3e6da1e5e89a19fcaa83ea91fa806990e0
2,551
py
Python
package/tests/test_PartSegCore/segmentation/test_segmentation_algorithm.py
neuromusic/PartSeg
a4edff1b9fbe55eb7f5e1fc8b5b3f8e730b35caf
[ "BSD-3-Clause" ]
15
2020-03-21T03:27:56.000Z
2022-03-21T07:46:39.000Z
package/tests/test_PartSegCore/segmentation/test_segmentation_algorithm.py
neuromusic/PartSeg
a4edff1b9fbe55eb7f5e1fc8b5b3f8e730b35caf
[ "BSD-3-Clause" ]
479
2019-10-27T22:57:22.000Z
2022-03-30T12:48:14.000Z
package/tests/test_PartSegCore/segmentation/test_segmentation_algorithm.py
neuromusic/PartSeg
a4edff1b9fbe55eb7f5e1fc8b5b3f8e730b35caf
[ "BSD-3-Clause" ]
5
2020-02-05T14:25:02.000Z
2021-12-21T03:44:52.000Z
from typing import Type import numpy as np import pytest from PartSegCore.segmentation import ROIExtractionAlgorithm from PartSegCore.segmentation.algorithm_base import ROIExtractionResult, SegmentationLimitException from PartSegCore.segmentation.restartable_segmentation_algorithms import final_algorithm_list as rest...
35.430556
113
0.73971
290
2,551
6.317241
0.337931
0.049127
0.07369
0.026201
0.114629
0.058952
0
0
0
0
0
0.012408
0.147001
2,551
71
114
35.929577
0.829504
0
0
0
0
0
0.085849
0
0
0
0
0
0.107143
1
0.107143
false
0.017857
0.142857
0.035714
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
51d655292e154bea97fce427b26a455cc09bac09
958
py
Python
bootstrap.py
ayang818/pyweb-template
d4b8c97b9e99166a6b6d856929ef670771b90fd3
[ "MIT" ]
null
null
null
bootstrap.py
ayang818/pyweb-template
d4b8c97b9e99166a6b6d856929ef670771b90fd3
[ "MIT" ]
null
null
null
bootstrap.py
ayang818/pyweb-template
d4b8c97b9e99166a6b6d856929ef670771b90fd3
[ "MIT" ]
null
null
null
# coding=utf-8 import logging import os from flask import Flask from cloudware_server.route.base import register_routes def config_logger(): """ 设置日志等级 """ logging.getLogger().setLevel(logging.INFO) config_logger() def create_app(config=None): """ 创建 bootstrap app """ app = Flask...
20.382979
68
0.656576
127
958
4.787402
0.488189
0.059211
0.098684
0.065789
0.121711
0.121711
0.121711
0.121711
0
0
0
0.006667
0.217119
958
46
69
20.826087
0.804
0.043841
0
0
0
0
0.063348
0
0
0
0
0
0
1
0.074074
false
0
0.148148
0
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51d7b2bb9f36934a7abf44cab165f9dd936da6f5
2,990
py
Python
src/online/batch_job.py
jack139/fair
fe0ff64f8edbd794c3fb951ab6af420054e9e585
[ "BSD-3-Clause" ]
1
2019-07-16T09:46:39.000Z
2019-07-16T09:46:39.000Z
src/online/batch_job.py
jack139/fair
fe0ff64f8edbd794c3fb951ab6af420054e9e585
[ "BSD-3-Clause" ]
null
null
null
src/online/batch_job.py
jack139/fair
fe0ff64f8edbd794c3fb951ab6af420054e9e585
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import web from bson.objectid import ObjectId from config import setting import helper db = setting.db_web url = ('/online/batch_job') # - 批量处理订单 class handler: def GET(self): if helper.logged(helper.PRIV_USER,'BATCH_JOB'): render = helper.create_render() #use...
31.473684
95
0.538462
446
2,990
3.46861
0.226457
0.061409
0.058177
0.096962
0.46671
0.458953
0.438268
0.404654
0.352295
0.336134
0
0.020949
0.217726
2,990
94
96
31.808511
0.640445
0.057191
0
0.067568
0
0
0.211052
0
0
0
0
0
0
1
0.013514
false
0
0.054054
0
0.094595
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51d8ae23bd3580d3a4606d438e3b8518ad7289ac
8,124
py
Python
attributes/architecture/main.py
Lufedi/reaper
bdf56b499e5b704c27b9f6c053d798c2a10fa4cf
[ "Apache-2.0" ]
null
null
null
attributes/architecture/main.py
Lufedi/reaper
bdf56b499e5b704c27b9f6c053d798c2a10fa4cf
[ "Apache-2.0" ]
1
2021-03-16T20:28:19.000Z
2021-03-16T20:28:19.000Z
attributes/architecture/main.py
Lufedi/reaper
bdf56b499e5b704c27b9f6c053d798c2a10fa4cf
[ "Apache-2.0" ]
1
2022-03-04T01:21:09.000Z
2022-03-04T01:21:09.000Z
import os import re import subprocess import json import networkx from pygments import lexers, token, util TOKENTYPE_WHITELIST = [ token.Name, token.Name.Attribute, token.Name.Builtin, token.Name.Builtin.Pseudo, token.Name.Constant, token.Name.Decorator, token.Name.Entity, token.Name.E...
31.858824
117
0.616322
1,035
8,124
4.712077
0.252174
0.033217
0.013943
0.010662
0.143121
0.132869
0.104162
0.089809
0.065204
0.043879
0
0.005619
0.27708
8,124
254
118
31.984252
0.824791
0.19387
0
0.111111
0
0.005556
0.08005
0.003568
0.005556
0
0
0
0
1
0.05
false
0
0.066667
0.011111
0.177778
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51d8b62bf25917e74c95918a73ec119b3673d41b
1,065
py
Python
opencv/colordetect/sendimage.py
ronhandler/gitroot
beb81c4b826939f16e57a98ac5845d8acecf151d
[ "Unlicense" ]
null
null
null
opencv/colordetect/sendimage.py
ronhandler/gitroot
beb81c4b826939f16e57a98ac5845d8acecf151d
[ "Unlicense" ]
null
null
null
opencv/colordetect/sendimage.py
ronhandler/gitroot
beb81c4b826939f16e57a98ac5845d8acecf151d
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python import sys import os.path import cv2 import numpy as np import boto from boto.s3.key import Key cap = cv2.VideoCapture(0) ret, new_image = cap.read() if ret == False: exit(1) filename = 'new.jpg' cv2.imwrite(filename, new_image) bucket_name = 'ronhandler' AWS_ACCESS_KEY_ID = 'AKIAIYLDR3LU2X...
25.97561
81
0.723005
163
1,065
4.588957
0.552147
0.048128
0.032086
0.037433
0
0
0
0
0
0
0
0.043621
0.138967
1,065
40
82
26.625
0.772083
0.107981
0
0
0
0.034483
0.297782
0.069694
0
0
0
0
0
1
0
false
0
0.241379
0
0.241379
0.103448
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51dded95316bf909a713965fa3b3d3c363309051
2,782
py
Python
hipp/utils/utils.py
cmcneil-usgs/hipp
be6f9f8cccdc32b7b96be92172977a5c4006500c
[ "MIT" ]
12
2020-10-07T22:12:11.000Z
2022-02-15T23:10:53.000Z
hipp/utils/utils.py
cmcneil-usgs/hipp
be6f9f8cccdc32b7b96be92172977a5c4006500c
[ "MIT" ]
7
2020-10-11T23:42:55.000Z
2021-12-15T23:16:43.000Z
hipp/utils/utils.py
cmcneil-usgs/hipp
be6f9f8cccdc32b7b96be92172977a5c4006500c
[ "MIT" ]
4
2020-10-11T19:48:58.000Z
2022-03-08T21:32:13.000Z
import glob import os import cv2 import hipp.io import hipp.utils """ Library for command line tools. """ def optimize_geotif(geotif_file_name, output_file_name=None, verbose=False, print_call=False): if output_file_name is None: ...
29.284211
83
0.515097
300
2,782
4.513333
0.25
0.124077
0.103397
0.088626
0.564993
0.564993
0.564993
0.520679
0.520679
0.520679
0
0.002311
0.377786
2,782
94
84
29.595745
0.779896
0
0
0.56338
0
0
0.097187
0
0
0
0
0
0
1
0.042254
false
0
0.070423
0
0.15493
0.112676
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51e08e485ba5b37c52a2c10b26fc9af31001557a
5,836
py
Python
tests/test_preprocessing/test_encoding.py
ig248/timeserio
afc2a953a83e763418d417059493ef13a17d349c
[ "MIT" ]
63
2019-07-12T17:16:27.000Z
2022-02-22T11:06:50.000Z
tests/test_preprocessing/test_encoding.py
ig248/timeserio
afc2a953a83e763418d417059493ef13a17d349c
[ "MIT" ]
34
2019-07-30T11:52:09.000Z
2022-03-28T12:42:02.000Z
tests/test_preprocessing/test_encoding.py
ig248/timeserio
afc2a953a83e763418d417059493ef13a17d349c
[ "MIT" ]
12
2019-08-14T05:51:22.000Z
2021-03-15T09:34:15.000Z
import numpy as np import numpy.testing as npt import pytest from sklearn.preprocessing import OneHotEncoder from timeserio.preprocessing import ( FeatureIndexEncoder, StatelessOneHotEncoder, StatelessTemporalOneHotEncoder, StatelessPeriodicEncoder ) from timeserio.preprocessing.encoding import PeriodicEncoder...
32.422222
76
0.600583
699
5,836
4.792561
0.153076
0.064478
0.056418
0.033433
0.546866
0.460597
0.412836
0.362687
0.333731
0.297015
0
0.028578
0.2805
5,836
179
77
32.603352
0.769231
0
0
0.310127
0
0
0.039239
0
0
0
0
0
0.075949
1
0.06962
false
0
0.037975
0
0.196203
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51e1a411ad9558e7543b3930124feeca7cd75ff5
11,654
py
Python
paper_examples/ex51_validation2D/main.py
jhabriel/mixdim-estimates
aa7041fe3fc7a13b820ef41dacefb759f4b592ff
[ "MIT" ]
3
2022-02-15T14:56:16.000Z
2022-03-24T10:20:00.000Z
paper_examples/ex51_validation2D/main.py
jhabriel/mixdim-estimates
aa7041fe3fc7a13b820ef41dacefb759f4b592ff
[ "MIT" ]
3
2021-06-15T16:23:46.000Z
2021-12-05T10:25:41.000Z
paper_examples/ex51_validation2D/main.py
jhabriel/mixdim-estimates
aa7041fe3fc7a13b820ef41dacefb759f4b592ff
[ "MIT" ]
null
null
null
# Importing modules import numpy as np import porepy as pp import itertools from time import time from model import model #%% Functions def make_constrained_mesh(h=0.1): """ Creates unstructured mesh for a given target mesh size for the case of a single vertical fracture embedded in the domain Parame...
32.282548
87
0.643041
1,706
11,654
4.094373
0.139508
0.067001
0.018468
0.030923
0.565211
0.538153
0.434503
0.397423
0.393414
0.393414
0
0.039266
0.204565
11,654
360
88
32.372222
0.714239
0.144843
0
0.395062
0
0.016461
0.213826
0.037169
0
0
0
0
0
1
0.00823
false
0
0.024691
0
0.041152
0.016461
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51e7204783742c4d06205cf3ac4d3a46079650b3
22,987
py
Python
slottools/PhotometryConfigWidget.py
apodemus/pysalt3
97bb790ad7bcf1137e3ffd2a7b32840ae7167358
[ "BSD-3-Clause" ]
null
null
null
slottools/PhotometryConfigWidget.py
apodemus/pysalt3
97bb790ad7bcf1137e3ffd2a7b32840ae7167358
[ "BSD-3-Clause" ]
null
null
null
slottools/PhotometryConfigWidget.py
apodemus/pysalt3
97bb790ad7bcf1137e3ffd2a7b32840ae7167358
[ "BSD-3-Clause" ]
1
2021-07-15T19:43:59.000Z
2021-07-15T19:43:59.000Z
################################# LICENSE ################################## # Copyright (c) 2009, South African Astronomical Observatory (SAAO) # # All rights reserved. # # # # Redistribu...
39.428816
131
0.525253
2,404
22,987
5.009567
0.206323
0.030391
0.035871
0.028232
0.250851
0.19638
0.17313
0.150046
0.150046
0.150046
0
0.008578
0.355897
22,987
582
132
39.496564
0.804809
0.274938
0
0.196013
0
0
0.070532
0.004204
0
0
0
0
0
1
0.049834
false
0.003322
0.043189
0
0.10299
0.003322
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51e720cfeb8235927a5ad18a3477edc29e509a46
1,895
py
Python
Linked Lists/add_two_numbers.py
fredricksimi/leetcode
f6352c26914ca77f915f5994746ecf0b36efc89b
[ "MIT" ]
null
null
null
Linked Lists/add_two_numbers.py
fredricksimi/leetcode
f6352c26914ca77f915f5994746ecf0b36efc89b
[ "MIT" ]
null
null
null
Linked Lists/add_two_numbers.py
fredricksimi/leetcode
f6352c26914ca77f915f5994746ecf0b36efc89b
[ "MIT" ]
1
2021-12-05T12:27:46.000Z
2021-12-05T12:27:46.000Z
""" Add Two Numbers: Leetcode 2 You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list. You may assume the two numbers do not contain any leading ...
25.958904
91
0.543008
256
1,895
3.964844
0.472656
0.049261
0.032512
0.011823
0.053202
0.053202
0.053202
0
0
0
0
0.044764
0.375198
1,895
72
92
26.319444
0.8125
0.510818
0
0.08
0
0
0
0
0
0
0
0
0
1
0.04
false
0
0
0
0.12
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51e82124f47a81e7a21c3ded6ba32d9e42bbdaa0
6,539
py
Python
darts_socket/darts_server/display.py
y-azuma/opencv-softdarts
644778be219fb96cdde32b884157899d39fc14e5
[ "MIT" ]
9
2019-05-01T18:42:47.000Z
2021-09-05T09:49:44.000Z
darts_socket/darts_server/display.py
y-azuma/opencv-softdarts
644778be219fb96cdde32b884157899d39fc14e5
[ "MIT" ]
null
null
null
darts_socket/darts_server/display.py
y-azuma/opencv-softdarts
644778be219fb96cdde32b884157899d39fc14e5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import tkinter as tk import sound import socket import threading class ConnClient(): ''' ソケット通信によりラズベリーパイから画像情報を受け取る。 ''' def __init__(self,conn, addr): self.conn_socket = conn self.addr = addr self.recvdata = 0 self.recvdata1 = 0 self.re...
21.093548
76
0.570577
782
6,539
4.620205
0.283887
0.070855
0.039856
0.053141
0.217825
0.179352
0.114863
0.099917
0.090783
0.090783
0
0.058837
0.31121
6,539
309
77
21.161812
0.743339
0.027986
0
0.240506
0
0
0.040468
0
0
0
0
0
0
1
0.042194
false
0
0.016878
0
0.063291
0.012658
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51eb7396a14c0a9adcd7a3d4b7b068d93d1985e2
2,566
py
Python
neutron/tests/unit/services/trunk/drivers/openvswitch/agent/test_trunk_manager.py
p0i0/openstack-neutron
df2ee28ae9a43cc511482bd6ece5396eb1288814
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/services/trunk/drivers/openvswitch/agent/test_trunk_manager.py
p0i0/openstack-neutron
df2ee28ae9a43cc511482bd6ece5396eb1288814
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/services/trunk/drivers/openvswitch/agent/test_trunk_manager.py
p0i0/openstack-neutron
df2ee28ae9a43cc511482bd6ece5396eb1288814
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 Red Hat # 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 a...
37.735294
79
0.684334
324
2,566
5.274691
0.429012
0.035108
0.061439
0.067291
0.203043
0.167934
0.093622
0.093622
0
0
0
0.013138
0.228761
2,566
67
80
38.298507
0.85043
0.243959
0
0.097561
0
0
0.046778
0.028067
0
0
0
0
0.121951
1
0.121951
false
0.02439
0.146341
0
0.365854
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51ec05cacfb6953f807cc60da921092f7aeb6965
873
py
Python
app/schema/queries/todo.py
rjNemo/graphql_python_template
14bc5fd657f6bdba8d7293f21cfcec821fa6374f
[ "MIT" ]
1
2021-05-02T01:47:57.000Z
2021-05-02T01:47:57.000Z
app/schema/queries/todo.py
rjNemo/graphql_python_template
14bc5fd657f6bdba8d7293f21cfcec821fa6374f
[ "MIT" ]
null
null
null
app/schema/queries/todo.py
rjNemo/graphql_python_template
14bc5fd657f6bdba8d7293f21cfcec821fa6374f
[ "MIT" ]
null
null
null
""" Defines the query and how to interact with """ from app.schema.types.todo import TodoListResponseField, TodoResponseField from app.usecases.todo import read_all_todos, read_todo_by_id def resolve_list_todos(self, info) -> TodoListResponseField: try: todos = read_all_todos() is_success = True ...
28.16129
78
0.717068
115
873
5.173913
0.426087
0.121008
0.040336
0.040336
0.141176
0.141176
0.141176
0.141176
0
0
0
0
0.213058
873
30
79
29.1
0.866084
0.04811
0
0
0
0
0.034022
0
0
0
0
0
0
1
0.1
false
0
0.1
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
51ef4f3354164b3ce73be7d1b2f9128704be0733
8,884
py
Python
meiduo_mall/apps/orders/views.py
canarysama/meiduo_project
906cf667e27fa205b18aeb10b009d76dec19b211
[ "MIT" ]
null
null
null
meiduo_mall/apps/orders/views.py
canarysama/meiduo_project
906cf667e27fa205b18aeb10b009d76dec19b211
[ "MIT" ]
null
null
null
meiduo_mall/apps/orders/views.py
canarysama/meiduo_project
906cf667e27fa205b18aeb10b009d76dec19b211
[ "MIT" ]
null
null
null
import json from datetime import datetime from decimal import Decimal from django import http from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import render # Create your views here. from django.views import View from django_redis import get_redis_connection from apps.goods.models imp...
31.842294
124
0.533431
945
8,884
4.798942
0.225397
0.038589
0.023815
0.018523
0.261963
0.213892
0.174201
0.158765
0.144653
0.114223
0
0.019319
0.364926
8,884
278
125
31.956835
0.784474
0.06281
0
0.173913
0
0
0.060637
0.002826
0
0
0
0
0
1
0.024845
false
0
0.093168
0
0.192547
0.006211
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51f094af4d80238e40eb72e75e31a6ae810f3f62
11,159
py
Python
pie/tray_icon.py
sabaatworld/pie-indexing-service-py
f48ee18023f9c15e18fdb4296ba651fd343aef01
[ "MIT" ]
2
2020-03-30T18:00:40.000Z
2020-05-30T17:09:04.000Z
pie/tray_icon.py
sabaatworld/pie-indexing-service-py
f48ee18023f9c15e18fdb4296ba651fd343aef01
[ "MIT" ]
null
null
null
pie/tray_icon.py
sabaatworld/pie-indexing-service-py
f48ee18023f9c15e18fdb4296ba651fd343aef01
[ "MIT" ]
null
null
null
import json import logging import os import ssl import webbrowser from multiprocessing import Event, Queue from urllib.request import urlopen import certifi from PySide2 import QtCore, QtGui, QtWidgets from packaging import version from pie.core import IndexDB, IndexingHelper, MediaProcessor from pie.domain import In...
46.690377
201
0.692087
1,232
11,159
6.039773
0.212662
0.056444
0.019352
0.0254
0.384491
0.27241
0.232899
0.213547
0.192313
0.180218
0
0.00058
0.226992
11,159
238
202
46.886555
0.862045
0
0
0.183575
0
0.014493
0.111928
0
0
0
0
0
0
1
0.10628
false
0.009662
0.072464
0
0.202899
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51f40f22276db646a119642572727553613d35f0
8,903
py
Python
vis_utils/graphics/geometry/procedural_primitives.py
eherr/vis_utils
b757b01f42e6da02ad62130c3b0e61e9eaa3886f
[ "MIT" ]
4
2020-05-20T03:55:19.000Z
2020-12-24T06:33:40.000Z
vis_utils/graphics/geometry/procedural_primitives.py
eherr/vis_utils
b757b01f42e6da02ad62130c3b0e61e9eaa3886f
[ "MIT" ]
1
2020-05-18T11:21:35.000Z
2020-07-07T21:25:57.000Z
vis_utils/graphics/geometry/procedural_primitives.py
eherr/vis_utils
b757b01f42e6da02ad62130c3b0e61e9eaa3886f
[ "MIT" ]
1
2020-07-20T06:57:13.000Z
2020-07-20T06:57:13.000Z
#!/usr/bin/env python # # Copyright 2019 DFKI GmbH. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merg...
35.75502
116
0.550826
1,255
8,903
3.858964
0.165737
0.023126
0.099112
0.07516
0.516209
0.479455
0.410489
0.410489
0.404295
0.375594
0
0.064516
0.296642
8,903
248
117
35.899194
0.708879
0.173986
0
0.274854
0
0
0.002062
0
0
0
0
0
0
1
0.040936
false
0
0.017544
0
0.099415
0.005848
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51f4f2785dcaeca906879c7e62e621e4a846114b
9,212
py
Python
src/tokentype.py
londav28/chasm
a5cd97ab2732af30d20aaf05842f3ddad7618660
[ "MIT" ]
null
null
null
src/tokentype.py
londav28/chasm
a5cd97ab2732af30d20aaf05842f3ddad7618660
[ "MIT" ]
null
null
null
src/tokentype.py
londav28/chasm
a5cd97ab2732af30d20aaf05842f3ddad7618660
[ "MIT" ]
null
null
null
# MIT LICENSE Copyright (c) 2018 David Longnecker # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, ...
21.98568
78
0.65469
1,536
9,212
3.434896
0.18099
0.088704
0.026156
0.034117
0.347612
0.272176
0.192381
0.072024
0.069371
0.052312
0
0.012102
0.246526
9,212
418
79
22.038278
0.748019
0.180743
0
0.127148
0
0
0.091962
0
0
0
0
0
0
1
0.072165
false
0
0
0.061856
0.151203
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51f6b55bf08cd3caaf58fe60b17883de8d75c7aa
1,803
py
Python
src/cr/sparse/_src/lop/reshape.py
carnot-shailesh/cr-sparse
989ebead8a8ac37ade643093e1caa31ae2a3eda1
[ "Apache-2.0" ]
42
2021-06-11T17:11:29.000Z
2022-03-29T11:51:44.000Z
src/cr/sparse/_src/lop/reshape.py
carnot-shailesh/cr-sparse
989ebead8a8ac37ade643093e1caa31ae2a3eda1
[ "Apache-2.0" ]
19
2021-06-04T11:36:11.000Z
2022-01-22T20:13:39.000Z
src/cr/sparse/_src/lop/reshape.py
carnot-shailesh/cr-sparse
989ebead8a8ac37ade643093e1caa31ae2a3eda1
[ "Apache-2.0" ]
5
2021-11-21T21:01:11.000Z
2022-02-28T07:20:03.000Z
# Copyright 2021 CR.Sparse Development Team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
32.781818
86
0.702718
274
1,803
4.554745
0.390511
0.044872
0.041667
0.054487
0.298077
0.267628
0.190705
0.083333
0.083333
0.083333
0
0.00632
0.210205
1,803
54
87
33.388889
0.870084
0.552413
0
0
0
0
0.047425
0
0
0
0
0
0.0625
1
0.125
false
0
0.1875
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51f6ed71939071c909f6f821aec31a10daf6299c
637
py
Python
innuy_lambda/settings/dev.py
innuy/innuy_lambda
739d2573919513f08925fe63cad6e301b69323f9
[ "MIT" ]
null
null
null
innuy_lambda/settings/dev.py
innuy/innuy_lambda
739d2573919513f08925fe63cad6e301b69323f9
[ "MIT" ]
1
2020-06-05T18:21:24.000Z
2020-06-05T18:21:24.000Z
innuy_lambda/settings/dev.py
innuy/innuy_lambda
739d2573919513f08925fe63cad6e301b69323f9
[ "MIT" ]
null
null
null
from .base import * INSTALLED_APPS += [ 'debug_toolbar', 'zappa_django_utils', 'storages', ] MIDDLEWARE += [ 'debug_toolbar.middleware.DebugToolbarMiddleware', ] INTERNAL_IPS = [ '127.0.0.1', ] DATABASES = { 'default': { 'ENGINE': 'zappa_django_utils.db.backends.s3sqlite', '...
18.735294
70
0.6719
70
637
5.785714
0.628571
0.059259
0.079012
0.098765
0
0
0
0
0
0
0
0.022945
0.178964
637
34
71
18.735294
0.751434
0
0
0
0
0
0.413793
0.194357
0
0
0
0
0
1
0
false
0
0.041667
0
0.041667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51f7369f83b845973e9526f6db9b7f120362742a
3,658
py
Python
UNET.py
ArtemBoyarintsev/cell_segmentation
9c0e70c1edbb20d661e392bab4c42002d13ebf06
[ "MIT" ]
null
null
null
UNET.py
ArtemBoyarintsev/cell_segmentation
9c0e70c1edbb20d661e392bab4c42002d13ebf06
[ "MIT" ]
null
null
null
UNET.py
ArtemBoyarintsev/cell_segmentation
9c0e70c1edbb20d661e392bab4c42002d13ebf06
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torchvision class UNET(nn.Module): THIRD_POOLING_INDEX = 16 FORTH_POOLING_INDEX = 23 def __init__(self, n_class = 1): super(UNET, self).__init__() # Contracting Path self.c1 = UNET.get_conv2d_block(3, 16, 3, 1) self.p1 = nn....
31.264957
96
0.5462
523
3,658
3.659656
0.193117
0.103448
0.073145
0.08464
0.360502
0.212121
0.194357
0.194357
0.131661
0.131661
0
0.092929
0.323401
3,658
117
97
31.264957
0.680404
0.056042
0
0.02381
0
0
0.012772
0
0
0
0
0
0
1
0.035714
false
0
0.035714
0
0.130952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51f8bea04c27110192da44644da602e9cd13a9c7
4,538
py
Python
order_center/api.py
YuaShizuki/order_center
6f0a8831b7cef82cee5b2f6268822acbee9077c4
[ "MIT" ]
null
null
null
order_center/api.py
YuaShizuki/order_center
6f0a8831b7cef82cee5b2f6268822acbee9077c4
[ "MIT" ]
null
null
null
order_center/api.py
YuaShizuki/order_center
6f0a8831b7cef82cee5b2f6268822acbee9077c4
[ "MIT" ]
null
null
null
import frappe import os import json import datetime import uuid @frappe.whitelist(allow_guest=True) def clustering_and_scheduling(): for trip in json.loads(frappe.local.request.values["inputData"]): build_trip(trip) def build_trip(dat): d = frappe.get_doc({ "doctype":"DRS", "trip_name"...
34.907692
473
0.653812
539
4,538
5.378479
0.211503
0.067265
0.089686
0.112108
0.618144
0.618144
0.547775
0.481545
0.385995
0.35426
0
0.020323
0.154253
4,538
129
474
35.178295
0.735018
0.160864
0
0.407767
0
0
0.184114
0.020516
0
0
0
0
0
1
0.15534
false
0
0.048544
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
51f968ed80d1979d901e48aea3098c1013002f25
1,836
py
Python
monkeytools/array_methods.py
mr-devs/monkeytools
e56197befcc0a14d9d082eb4463ebe27fb967116
[ "MIT" ]
null
null
null
monkeytools/array_methods.py
mr-devs/monkeytools
e56197befcc0a14d9d082eb4463ebe27fb967116
[ "MIT" ]
null
null
null
monkeytools/array_methods.py
mr-devs/monkeytools
e56197befcc0a14d9d082eb4463ebe27fb967116
[ "MIT" ]
null
null
null
""" A collection of array-based algorithms 1. Find maximum sub-array - https://en.wikipedia.org/wiki/Maximum_subarray_problem Author: Matthew R. DeVerna """ from .utils import check_array def max_subarray_kadane(given_array): """ Find a contiguous subarray with the largest sum. Note: This algorithm i...
27.818182
83
0.622004
247
1,836
4.45749
0.437247
0.038147
0.032698
0.034514
0.143506
0.143506
0.143506
0.081744
0
0
0
0.028422
0.271786
1,836
66
84
27.818182
0.795064
0.609477
0
0
0
0
0.0067
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
51fa66f7327624b0362e31f656c33d867492f9a3
2,922
py
Python
Library/ContractUtils.py
rccannizzaro/QC-StrategyBacktest
847dbd61680466bc60ce7893eced8a8f70d16b2e
[ "Apache-2.0" ]
11
2021-12-02T15:41:47.000Z
2022-03-14T03:49:22.000Z
Library/ContractUtils.py
ikamanu/QC-StrategyBacktest
847dbd61680466bc60ce7893eced8a8f70d16b2e
[ "Apache-2.0" ]
null
null
null
Library/ContractUtils.py
ikamanu/QC-StrategyBacktest
847dbd61680466bc60ce7893eced8a8f70d16b2e
[ "Apache-2.0" ]
5
2022-02-02T12:07:51.000Z
2022-02-13T02:24:19.000Z
######################################################################################## # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may not use this file except in compliance with...
48.7
132
0.558522
287
2,922
5.658537
0.393728
0.036946
0.018473
0.033251
0.166256
0.166256
0.166256
0.105911
0.105911
0.105911
0
0.003055
0.327858
2,922
59
133
49.525424
0.823829
0.485284
0
0.153846
0
0
0.004971
0
0
0
0
0
0
1
0.192308
false
0
0.038462
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51fad0b66c4e3fa317158550a35e046091d71c7e
24,945
py
Python
backtester/backtester.py
unbalancedparentheses/backtester_options
46efd30e405f360c560f8eae8b2ee7d26f4532db
[ "MIT" ]
91
2020-01-31T10:15:35.000Z
2022-03-27T19:15:12.000Z
backtester/backtester.py
unbalancedparentheses/backtester_options
46efd30e405f360c560f8eae8b2ee7d26f4532db
[ "MIT" ]
38
2019-05-12T02:00:46.000Z
2019-12-06T14:54:25.000Z
backtester/backtester.py
unbalancedparentheses/backtester_options
46efd30e405f360c560f8eae8b2ee7d26f4532db
[ "MIT" ]
20
2020-06-12T08:21:30.000Z
2022-03-28T05:52:59.000Z
from functools import reduce import numpy as np import pandas as pd import pyprind from .enums import * class Backtest: """Backtest runner class.""" def __init__(self, allocation, initial_capital=1_000_000, shares_per_contract=100): assets = ('stocks', 'options', 'cash') total_allocation = s...
47.066038
119
0.621768
2,949
24,945
5.016616
0.126823
0.049074
0.032446
0.013992
0.296945
0.191429
0.154049
0.107544
0.097066
0.084494
0
0.00344
0.277571
24,945
529
120
47.155009
0.817435
0.197394
0
0.09375
0
0
0.072942
0
0
0
0
0.00189
0.021875
1
0.078125
false
0
0.015625
0.015625
0.146875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51fb7539b1f2f6afaf1c56b1fdd1c2bde6b3883c
7,948
py
Python
kicktipper/predictor.py
Kricki/kicktipper
fae146c8df0d9ba9bebe84c1f20cf8df6fc39678
[ "ISC" ]
1
2016-11-23T16:09:46.000Z
2016-11-23T16:09:46.000Z
kicktipper/predictor.py
Kricki/kicktipper
fae146c8df0d9ba9bebe84c1f20cf8df6fc39678
[ "ISC" ]
1
2017-04-21T08:38:39.000Z
2018-07-19T20:46:10.000Z
kicktipper/predictor.py
Kricki/kicktipper
fae146c8df0d9ba9bebe84c1f20cf8df6fc39678
[ "ISC" ]
null
null
null
import numpy as np from scipy import stats import matplotlib.pyplot as plt class MatchPredictor: """ Class to calculates the probabilities for different scores (outcomes) of two teams. Attributes ---------- l1 : float Projected score for team 1 (expectation value for Poisson distribution) ...
37.847619
120
0.6116
1,074
7,948
4.408752
0.234637
0.063358
0.032101
0.016895
0.293981
0.226822
0.196832
0.176558
0.145723
0.145723
0
0.021854
0.28611
7,948
209
121
38.028708
0.812654
0.45848
0
0.179775
0
0
0.070601
0
0
0
0
0
0
1
0.11236
false
0.011236
0.033708
0
0.235955
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51fbfcfac2b93e98239de7ce36bcc1077cb951a1
7,012
py
Python
app.py
ai4r/SGToolkit
684df2cfc830eeb8ea23c95a8af1c9199991ec99
[ "MIT" ]
16
2021-08-11T08:55:41.000Z
2022-02-11T02:45:55.000Z
app.py
ai4r/SGToolkit
684df2cfc830eeb8ea23c95a8af1c9199991ec99
[ "MIT" ]
9
2021-09-07T14:52:59.000Z
2022-03-24T13:33:00.000Z
app.py
ai4r/SGToolkit
684df2cfc830eeb8ea23c95a8af1c9199991ec99
[ "MIT" ]
2
2021-08-25T06:00:43.000Z
2021-10-07T00:57:49.000Z
from flask import Flask, render_template, request, send_file from flask_pymongo import PyMongo import json import sg_core_api as sgapi import os import pathlib import numpy as np from bson.json_util import dumps from bson.objectid import ObjectId from datetime import datetime from scipy.interpolate import CubicSpline ...
33.075472
118
0.61138
847
7,012
4.864227
0.227863
0.050971
0.043689
0.031553
0.251942
0.20267
0.153155
0.107524
0.089563
0.089563
0
0.004599
0.255705
7,012
211
119
33.232227
0.784825
0.032801
0
0.301775
0
0
0.123284
0.032039
0
0
0
0
0.011834
1
0.053254
false
0
0.065089
0.011834
0.201183
0.047337
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
51fdc866742d67c3e351348526ab6d8be86c0161
473
py
Python
pins/pins.py
evarga/composite-decomposition
07de8a21d1d1974a8a3b1346be1d5ee0d7764fa5
[ "MIT" ]
null
null
null
pins/pins.py
evarga/composite-decomposition
07de8a21d1d1974a8a3b1346be1d5ee0d7764fa5
[ "MIT" ]
null
null
null
pins/pins.py
evarga/composite-decomposition
07de8a21d1d1974a8a3b1346be1d5ee0d7764fa5
[ "MIT" ]
null
null
null
from math import sqrt def num_pins_full_row(n: int, k: int) -> int: return (n // k + 1) * k + n % k + (n % k > 0) if n > 0 else 0 def num_pins_square(n: int, k: int) -> int: m = int(sqrt(n)) used_pins = (m + 1)**2 n -= m * m if 0 < n <= m: used_pins += n + 1 elif n > m: used_...
23.65
65
0.541226
90
473
2.688889
0.322222
0.115702
0.082645
0.115702
0.181818
0
0
0
0
0
0
0.032836
0.291755
473
20
66
23.65
0.689552
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.071429
0.071429
0.357143
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a40166e450ee628d6a50ace1f3007f22ec4f1689
6,239
py
Python
blocking_utils.py
colebryant/DeepBlocker
e90bbe2c4fa75f53fccea20cbdebf71b9167584d
[ "BSD-3-Clause" ]
null
null
null
blocking_utils.py
colebryant/DeepBlocker
e90bbe2c4fa75f53fccea20cbdebf71b9167584d
[ "BSD-3-Clause" ]
null
null
null
blocking_utils.py
colebryant/DeepBlocker
e90bbe2c4fa75f53fccea20cbdebf71b9167584d
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd import numpy as np def topK_neighbors_to_candidate_set(topK_neighbors): #We create a data frame corresponding to topK neighbors. # We are given a 2D matrix of the form 1: [a1, a2, a3], 2: [b1, b2, b3] # where a1, a2, a3 are the top-3 neighbors for tuple 1 and so on. # We will now cr...
46.559701
179
0.702036
950
6,239
4.256842
0.184211
0.133531
0.131553
0.04451
0.56454
0.526212
0.481454
0.44634
0.369189
0.263106
0
0.014117
0.171181
6,239
133
180
46.909774
0.767937
0.150665
0
0.362637
0
0
0.197236
0.020254
0
0
0
0
0
1
0.065934
false
0
0.021978
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a401b7bfe3f33a4fcdd4603c34778103819c8259
1,989
py
Python
project/simulation/naive/iterated_prisoners.py
horken7/game-theory
c5484e6c338646e8143e90290efdc07acf397f22
[ "MIT" ]
null
null
null
project/simulation/naive/iterated_prisoners.py
horken7/game-theory
c5484e6c338646e8143e90290efdc07acf397f22
[ "MIT" ]
null
null
null
project/simulation/naive/iterated_prisoners.py
horken7/game-theory
c5484e6c338646e8143e90290efdc07acf397f22
[ "MIT" ]
null
null
null
# coding: utf-8 import numpy as np import pandas as pd import matplotlib.pyplot as plt both_coorporate_utility = 3 both_defect_utility = 1 looser_utility = 0 winner_utility = 3 a_resources = 2 b_resources = 2 a_actions = [] b_actions = [] a_utility = [] b_utility = [] rounds = 20 # Defect: action 0 # Cooperate...
26.52
86
0.711413
322
1,989
4.177019
0.232919
0.035688
0.026766
0.047584
0.331599
0.331599
0.30632
0.30632
0.30632
0.30632
0
0.019059
0.155857
1,989
74
87
26.878378
0.782013
0.092509
0
0.226415
0
0
0.057446
0
0
0
0
0
0
1
0.037736
false
0
0.056604
0
0.09434
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a403cb1eb639ba6d23d5ad19b32afabf17e2a3db
844
py
Python
higher_lower/__init__.py
simonw/higher-lower
436810573bfcb0175738b6636b6b4d790b81183b
[ "Apache-2.0" ]
2
2021-02-16T08:45:24.000Z
2021-02-22T01:30:29.000Z
higher_lower/__init__.py
simonw/higher-lower
436810573bfcb0175738b6636b6b4d790b81183b
[ "Apache-2.0" ]
1
2021-02-16T07:17:21.000Z
2021-02-16T19:39:12.000Z
higher_lower/__init__.py
simonw/higher-lower
436810573bfcb0175738b6636b6b4d790b81183b
[ "Apache-2.0" ]
null
null
null
from enum import Enum class ActualIs(Enum): HIGHER = 1 MATCH = 0 LOWER = -1 def higher_lower(min_value, max_value, callback): assert isinstance(max_value, int) assert isinstance(min_value, int) assert max_value > min_value candidate = midpoint(min_value, max_value) while True: ...
25.575758
62
0.61019
100
844
5.02
0.36
0.095618
0.101594
0.063745
0.115538
0
0
0
0
0
0
0.006944
0.317536
844
32
63
26.375
0.864583
0.014218
0
0
0
0
0.041013
0
0
0
0
0
0.166667
1
0.083333
false
0
0.041667
0.041667
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
a405507dac4880c95cf65af8bea272bbc90ef96d
4,819
py
Python
satcfe/resposta/enviardadosvenda.py
danielgoncalves/satcfe
b460eaa2fc09b891b68a4ad25db5f7c45a1fcf4f
[ "Apache-2.0" ]
38
2015-05-25T02:57:16.000Z
2022-01-18T21:01:49.000Z
satcfe/resposta/enviardadosvenda.py
danielgoncalves/satcfe
b460eaa2fc09b891b68a4ad25db5f7c45a1fcf4f
[ "Apache-2.0" ]
15
2015-08-19T13:30:46.000Z
2022-01-19T22:34:17.000Z
satcfe/resposta/enviardadosvenda.py
danielgoncalves/satcfe
b460eaa2fc09b891b68a4ad25db5f7c45a1fcf4f
[ "Apache-2.0" ]
13
2015-05-07T01:10:12.000Z
2022-02-04T14:30:01.000Z
# -*- coding: utf-8 -*- # # satcfe/resposta/enviardadosvenda.py # # Copyright 2015 Base4 Sistemas Ltda ME # # 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/license...
31.703947
76
0.564225
469
4,819
5.716418
0.45629
0.02238
0.02984
0.035808
0.23536
0.131294
0.131294
0.131294
0.131294
0.131294
0
0.007334
0.349243
4,819
151
77
31.913907
0.847577
0.426645
0
0.31746
0
0
0.073622
0
0
0
0
0.006623
0
1
0.063492
false
0
0.206349
0.015873
0.349206
0.015873
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a4097c2af9c121f0f61a10affe12d058da5aad64
2,769
py
Python
bocadillo_cli/helpers.py
bocadilloproject/bocadillo-cli
f11ec438504eb2edd3c4e8f5d2992e804b3da6b0
[ "MIT" ]
6
2019-04-17T17:07:46.000Z
2020-08-09T07:37:34.000Z
bocadillo_cli/helpers.py
bocadilloproject/bocadillo-cli
f11ec438504eb2edd3c4e8f5d2992e804b3da6b0
[ "MIT" ]
10
2019-04-17T21:27:46.000Z
2019-06-17T05:45:51.000Z
bocadillo_cli/helpers.py
bocadilloproject/bocadillo-cli
f11ec438504eb2edd3c4e8f5d2992e804b3da6b0
[ "MIT" ]
1
2019-05-12T17:32:45.000Z
2019-05-12T17:32:45.000Z
import pathlib import pkgutil import typing from contextlib import contextmanager import click from jinja2 import Template from . import formatutils as fmt class Templates: def __init__(self, context: dict): self.context = context @staticmethod def _get(name: str) -> Template: path = st...
29.774194
76
0.562658
320
2,769
4.80625
0.309375
0.042913
0.029259
0.019506
0.026008
0
0
0
0
0
0
0.001613
0.328277
2,769
92
77
30.097826
0.825269
0
0
0.131579
0
0
0.079812
0.017335
0
0
0
0
0.013158
1
0.118421
false
0
0.092105
0.013158
0.289474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a409daf46a3fa04de8f0e145bfe66c2e1af54b0c
1,637
py
Python
extras/cleanup-meshes.py
RQWorldblender/io_scene_numdlb
8a67c092f1aef9536e6de7cc7665dec77c0d52c6
[ "MIT" ]
2
2020-12-04T14:55:09.000Z
2021-03-04T02:11:27.000Z
extras/cleanup-meshes.py
RQWorldblender/io_scene_numdlb
8a67c092f1aef9536e6de7cc7665dec77c0d52c6
[ "MIT" ]
null
null
null
extras/cleanup-meshes.py
RQWorldblender/io_scene_numdlb
8a67c092f1aef9536e6de7cc7665dec77c0d52c6
[ "MIT" ]
1
2021-03-04T02:11:42.000Z
2021-03-04T02:11:42.000Z
import bpy, os # Select Expressions mesh_expr = ["*Blink*", "*Attack*", "*Ouch*", "*Talk*", "*Capture*", "*Ottotto*", "*Escape*", "*Half*", "*Pattern*", "*Result*", "*Harf*","*Hot*", "*Heavy*", "*Voice*", "*Fura*", "*Throw*", "*Catch*", "*Cliff*", "*FLIP*", "*Bound*", "*Down*", "*Bodybig*", "*Final*", "*Result*", "...
38.97619
362
0.596823
194
1,637
4.948454
0.469072
0.04375
0.075
0.1125
0.276042
0.276042
0.147917
0.075
0.075
0.075
0
0.002364
0.224801
1,637
41
363
39.926829
0.754137
0.156384
0
0.222222
0
0
0.189047
0
0
0
0
0
0
1
0
false
0
0.037037
0
0.037037
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cf8bc62feb8e0471e65e54c2a009471153f8ea88
636
py
Python
_sadm/listen/handlers/exec.py
jrmsdev/pysadm
0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37
[ "BSD-3-Clause" ]
1
2019-10-15T08:37:56.000Z
2019-10-15T08:37:56.000Z
_sadm/listen/handlers/exec.py
jrmsdev/pysadm
0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37
[ "BSD-3-Clause" ]
null
null
null
_sadm/listen/handlers/exec.py
jrmsdev/pysadm
0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Jeremías Casteglione <jrmsdev@gmail.com> # See LICENSE file. import json from bottle import request from _sadm import log from _sadm.listen.errors import error from _sadm.listen.webhook.repo.vcs.git import GitRepo __all__ = ['exech'] _taskman = { 'webhook.repo.git': GitRepo(), } def handle(task, a...
22.714286
60
0.709119
95
636
4.652632
0.578947
0.054299
0.063348
0
0
0
0
0
0
0
0
0.011215
0.158805
636
27
61
23.555556
0.814953
0.113208
0
0
0
0
0.135472
0
0
0
0
0
0
1
0.05
false
0
0.25
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cf8e095b2dfd6ed697713c2bc61fb4d1890cfd30
579
py
Python
EstruturaDeRepeticao/exercicio19.py
Nicolas-Wursthorn/exercicios-python-brasil
b2b564d48b519be04643636033ec0815e6d99ea1
[ "MIT" ]
null
null
null
EstruturaDeRepeticao/exercicio19.py
Nicolas-Wursthorn/exercicios-python-brasil
b2b564d48b519be04643636033ec0815e6d99ea1
[ "MIT" ]
null
null
null
EstruturaDeRepeticao/exercicio19.py
Nicolas-Wursthorn/exercicios-python-brasil
b2b564d48b519be04643636033ec0815e6d99ea1
[ "MIT" ]
null
null
null
# Altere o programa anterior para que ele aceite apenas números entre 0 e 1000 condition = True conjunto = [] while condition: numero = int(input("Digite os números do conjunto (Digite 0 para parar): ")) if numero == 0: break elif numero > 1000 or numero < 0: print("Digite somente números...
30.473684
80
0.659758
80
579
4.775
0.5375
0.104712
0.125654
0.073298
0.094241
0
0
0
0
0
0
0.037611
0.219344
579
19
81
30.473684
0.807522
0.131261
0
0
0
0
0.366534
0
0
0
0
0
0
1
0
false
0
0
0
0
0.307692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cf8ef2b45d7d458a65d6c785888a76f8daf2c51b
750
py
Python
cogs/help.py
moisesjsanchez/anime-movie-discord-bot
2979dc28cc6250e56f713c2d6483aaaff7688176
[ "MIT" ]
null
null
null
cogs/help.py
moisesjsanchez/anime-movie-discord-bot
2979dc28cc6250e56f713c2d6483aaaff7688176
[ "MIT" ]
2
2021-05-03T04:48:46.000Z
2021-05-06T08:29:23.000Z
cogs/help.py
moisesjsanchez/anime-movie-discord-bot
2979dc28cc6250e56f713c2d6483aaaff7688176
[ "MIT" ]
null
null
null
import discord from discord.ext import commands class Help(commands.Cog): def __init__(self, client): self.client = client # settings up the custom help functions @commands.command() async def help(self, ctx): embed = discord.Embed( title='Fathom Chan', description="A bot...
28.846154
141
0.665333
100
750
4.92
0.58
0.04065
0.056911
0.069106
0
0
0
0
0
0
0
0.01049
0.237333
750
25
142
30
0.84965
0.049333
0
0.125
0
0
0.274262
0
0
0
0.011252
0
0
1
0.125
false
0
0.125
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cf8fb65655bb2de90066c1c7dab90f53f736211b
2,255
py
Python
summarize/modules/coverage_matrix_attention/coverage_matrix_attention.py
danieldeutsch/summarize
f36a86d58f381ff1f607f356dad3d6ef7b0e0224
[ "Apache-2.0" ]
15
2019-11-01T11:49:44.000Z
2021-01-19T06:59:32.000Z
summarize/modules/coverage_matrix_attention/coverage_matrix_attention.py
CogComp/summary-cloze
b38e3e8c7755903477fd92a4cff27125cbf5553d
[ "Apache-2.0" ]
2
2020-03-30T07:54:01.000Z
2021-11-15T16:27:42.000Z
summarize/modules/coverage_matrix_attention/coverage_matrix_attention.py
CogComp/summary-cloze
b38e3e8c7755903477fd92a4cff27125cbf5553d
[ "Apache-2.0" ]
3
2019-12-06T05:57:51.000Z
2019-12-11T11:34:21.000Z
import torch from allennlp.common.registrable import Registrable from typing import Tuple class CoverageMatrixAttention(torch.nn.Module, Registrable): """ The ``CoverageMatrixAttention`` computes a matrix of attention probabilities between the encoder and decoder outputs. The attention function has access...
45.1
98
0.701552
263
2,255
5.882129
0.34981
0.071105
0.054299
0.061409
0.229476
0.125404
0.071105
0.071105
0.071105
0.071105
0
0
0.244789
2,255
49
99
46.020408
0.908397
0.695344
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.3
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cf938a4c23d460c727e0aec9347ad4f5e6ef02f9
6,373
py
Python
test/test_oscope_tf.py
alexisboukouvalas/OscoNet
f100d1ccfe8f7dad050a3082773a4b6383a4994a
[ "MIT" ]
1
2020-09-03T10:00:44.000Z
2020-09-03T10:00:44.000Z
test/test_oscope_tf.py
alexisboukouvalas/OscoNet
f100d1ccfe8f7dad050a3082773a4b6383a4994a
[ "MIT" ]
1
2022-02-10T02:22:05.000Z
2022-02-10T02:22:05.000Z
test/test_oscope_tf.py
alexisboukouvalas/OscoNet
f100d1ccfe8f7dad050a3082773a4b6383a4994a
[ "MIT" ]
1
2019-09-25T16:44:30.000Z
2019-09-25T16:44:30.000Z
""" TensorFlow 2 OscoNet code """ import numpy as np import pytest import tensorflow as tf from OscopeBootstrap import qvalue from OscopeBootstrap.create_edge_network_represention import create_edge_network_representation from OscopeBootstrap.oscope_tf import PRECISION_fp, calc_e2, calc_e2_many_genes, find_best_psi_fo...
40.852564
133
0.672682
961
6,373
4.216441
0.204995
0.062192
0.063179
0.020731
0.293435
0.23692
0.14462
0.10612
0.092794
0.057749
0
0.022075
0.218108
6,373
155
134
41.116129
0.79109
0.09399
0
0.093458
0
0
0.036449
0
0
0
0
0
0.17757
1
0.074766
false
0
0.074766
0.009346
0.17757
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cf96ec46a9f75ae061cfdda9d111b67ea90fbbf5
458
py
Python
LC/9.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/9.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/9.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def isPalindrome(self, x): """ :type x: int :rtype: bool """ if x<0: return False a=x b=0 while(a!=0): # 1. get last digit of a and add to b, b=b*10+lastdigit b=b*10+a%10 ...
24.105263
67
0.423581
65
458
2.984615
0.507692
0.030928
0.113402
0.123711
0
0
0
0
0
0
0
0.054852
0.482533
458
19
68
24.105263
0.763713
0.28821
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cf976cb08811d9daaefe1b3400c3ef25e10128c3
1,918
py
Python
live.py
ardamavi/Vocalize-Sign-Language
b00ce8c2a54f7f333ba8b3612567448281abfc61
[ "Apache-2.0" ]
65
2017-06-10T19:34:42.000Z
2022-03-15T06:47:29.000Z
live.py
sygops/Vocalize-Sign-Language
b19f6251e48478193c3a8001966edf2d421e8281
[ "Apache-2.0" ]
1
2021-09-08T04:04:55.000Z
2021-09-09T03:24:37.000Z
live.py
sygops/Vocalize-Sign-Language
b19f6251e48478193c3a8001966edf2d421e8281
[ "Apache-2.0" ]
25
2018-01-08T15:02:05.000Z
2021-11-16T16:31:42.000Z
# Arda Mavi import os import cv2 import platform import numpy as np from predict import predict from scipy.misc import imresize from multiprocessing import Process from keras.models import model_from_json img_size = 64 channel_size = 1 def main(): # Getting model: model_file = open('Data/Model/model.json', 'r...
30.935484
101
0.618874
257
1,918
4.435798
0.412451
0.030702
0.022807
0.019298
0.04386
0.04386
0
0
0
0
0
0.028592
0.270594
1,918
61
102
31.442623
0.786276
0.145464
0
0.046512
0
0
0.062654
0.025799
0
0
0
0
0
1
0.023256
false
0
0.186047
0
0.209302
0.046512
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cf9c1389b641f423d0d37afccaff7445dbc77a66
1,028
py
Python
examples/webhook/server.py
Alma-field/twitcaspy
25f3e850f2d5aab8a864bd6b7003468587fa3ea7
[ "MIT" ]
null
null
null
examples/webhook/server.py
Alma-field/twitcaspy
25f3e850f2d5aab8a864bd6b7003468587fa3ea7
[ "MIT" ]
18
2021-10-01T13:40:01.000Z
2021-10-18T12:34:57.000Z
examples/webhook/server.py
Alma-field/twitcaspy
25f3e850f2d5aab8a864bd6b7003468587fa3ea7
[ "MIT" ]
null
null
null
# Twitcaspy # Copyright 2021 Alma-field # See LICENSE for details. # Before running this code, run the following command: # このコードを実行する前に、以下のコマンドを実行してください。 # pip install twitcaspy[webhook] from flask import Flask, request, make_response, jsonify, abort app = Flask(__name__) from twitcaspy import api, TwitcaspyExcepti...
31.151515
63
0.678988
125
1,028
5.44
0.608
0.026471
0.055882
0
0
0
0
0
0
0
0
0.006017
0.191634
1,028
32
64
32.125
0.812274
0.238327
0
0
0
0
0.230272
0.109961
0
0
0
0
0
1
0.055556
false
0
0.166667
0
0.277778
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cf9db563a203c43bbc7c0bac94e9bc037f070989
7,814
py
Python
SK_Net_Plus.py
xingshulicc/Channel_Attention_Selection
c51b8de34ddfe5d6a88dd3ab5e846930f53e7476
[ "MIT" ]
2
2020-10-26T06:44:29.000Z
2020-10-31T06:06:59.000Z
SK_Net_Plus.py
xingshulicc/Channel_Attention_Selection
c51b8de34ddfe5d6a88dd3ab5e846930f53e7476
[ "MIT" ]
null
null
null
SK_Net_Plus.py
xingshulicc/Channel_Attention_Selection
c51b8de34ddfe5d6a88dd3ab5e846930f53e7476
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function """ Created on Fri Oct 23 13:31:34 2020 @author: Admin """ from keras.layers import Input from keras.layers import Conv2D from keras.layers import BatchNormalization from keras.layers import Activation from keras.layers import MaxPooling2D from ...
39.664975
106
0.579473
1,115
7,814
3.803587
0.127354
0.015091
0.044801
0.05942
0.546333
0.501061
0.501061
0.443056
0.42655
0.37892
0
0.061016
0.299463
7,814
196
107
39.867347
0.713738
0.10494
0
0.392593
0
0
0.061096
0.003893
0
0
0
0
0
1
0.02963
false
0
0.118519
0
0.177778
0.014815
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cfa0c9cdefacf9cd6963bf8494c977ebb9d0cbfc
1,386
py
Python
examples/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/schedule_from_partitions.py
silentsokolov/dagster
510bf07bf6906294d5a239d60079c88211002ebf
[ "Apache-2.0" ]
null
null
null
examples/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/schedule_from_partitions.py
silentsokolov/dagster
510bf07bf6906294d5a239d60079c88211002ebf
[ "Apache-2.0" ]
null
null
null
examples/docs_snippets/docs_snippets/concepts/partitions_schedules_sensors/schedule_from_partitions.py
silentsokolov/dagster
510bf07bf6906294d5a239d60079c88211002ebf
[ "Apache-2.0" ]
null
null
null
# isort: skip_file from .partitioned_job import my_partitioned_config from dagster import HourlyPartitionsDefinition # start_marker from dagster import build_schedule_from_partitioned_job, job @job(config=my_partitioned_config) def do_stuff_partitioned(): ... do_stuff_partitioned_schedule = build_schedule_fro...
21
87
0.786436
174
1,386
5.833333
0.270115
0.082759
0.070936
0.082759
0.312315
0.281773
0.281773
0.183251
0.183251
0
0
0.010033
0.137085
1,386
65
88
21.323077
0.838629
0.138528
0
0.129032
0
0
0.052365
0
0
0
0
0
0
1
0.096774
false
0
0.193548
0
0.290323
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cfa4f9c3c47163b8357b553409d94c4c1cf0c0a0
1,019
py
Python
src/contnext_viewer/graph.py
ContNeXt/web_app
0ace1077ee07902cadca684e4e06b3e91cea437f
[ "MIT" ]
3
2022-01-14T11:56:08.000Z
2022-01-14T12:36:42.000Z
src/contnext_viewer/graph.py
ContNeXt/web_app
0ace1077ee07902cadca684e4e06b3e91cea437f
[ "MIT" ]
null
null
null
src/contnext_viewer/graph.py
ContNeXt/web_app
0ace1077ee07902cadca684e4e06b3e91cea437f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from contnext_viewer.models import Network, engine from sqlalchemy.orm import sessionmaker def create_json_file(id, node): # Start database session Session = sessionmaker(bind=engine) sqlsession = Session() try: g = [each.data for each in sqlsession.query(Network).filter(Network.identif...
37.740741
112
0.68106
154
1,019
4.435065
0.383117
0.046852
0.035139
0.074671
0.175695
0.175695
0.175695
0.175695
0.175695
0.175695
0
0.007973
0.138371
1,019
26
113
39.192308
0.769932
0.069676
0
0
0
0
0.076271
0
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cfa6145bbf7350ea98ed17dde42977836a1d405b
8,302
py
Python
crystals/affine.py
priyankism/crystals
683bf35fbc95d0ded8cafdad0f2dede7adf5b072
[ "BSD-3-Clause" ]
null
null
null
crystals/affine.py
priyankism/crystals
683bf35fbc95d0ded8cafdad0f2dede7adf5b072
[ "BSD-3-Clause" ]
null
null
null
crystals/affine.py
priyankism/crystals
683bf35fbc95d0ded8cafdad0f2dede7adf5b072
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Linear algebra operations and helpers. Inspired by Christoph Gohlke's transformation.py <http://www.lfd.uci.edu/~gohlke/> This module is not directly exported by the `crystals` library. Use it with caution. """ import math import numpy as np # standard basis e1, e2, e3 = np.eye(3) def...
26.694534
86
0.63298
1,121
8,302
4.64496
0.219447
0.020741
0.00941
0.016132
0.25773
0.201844
0.172268
0.172268
0.149222
0.122719
0
0.028747
0.237413
8,302
310
87
26.780645
0.793713
0.540713
0
0.134831
0
0
0.018753
0
0
0
0
0.003226
0
1
0.11236
false
0
0.022472
0
0.269663
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cfa6ad3ae4dd2b7b0f171c22b61ad5f626a27dd6
675
py
Python
app/common/models.py
chaos-soft/velvet
71edabaa6e25308e76af82b76eb62c159d2b3368
[ "MIT" ]
null
null
null
app/common/models.py
chaos-soft/velvet
71edabaa6e25308e76af82b76eb62c159d2b3368
[ "MIT" ]
null
null
null
app/common/models.py
chaos-soft/velvet
71edabaa6e25308e76af82b76eb62c159d2b3368
[ "MIT" ]
null
null
null
import json from django.db import models class JSONEncoder(json.JSONEncoder): def __init__(self, *args, **kwargs): kwargs['ensure_ascii'] = False super().__init__(*args, **kwargs) class Document(models.Model): document = models.JSONField(encoder=JSONEncoder, default=dict) images = None ...
24.107143
66
0.567407
73
675
5.013699
0.520548
0.10929
0.060109
0.081967
0.114754
0
0
0
0
0
0
0
0.317037
675
27
67
25
0.793926
0
0
0.2
0
0
0.017778
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cfa6f7d12ac60700054deb918bc90c4c2c0ba1fc
25,987
py
Python
wsgi/iportalen_django/events/views.py
I-sektionen/i-portalen
1713e5814d40c0da1bf3278d60a561e7d3df3550
[ "MIT" ]
4
2016-09-21T17:06:01.000Z
2018-02-06T16:36:44.000Z
wsgi/iportalen_django/events/views.py
I-sektionen/i-portalen
1713e5814d40c0da1bf3278d60a561e7d3df3550
[ "MIT" ]
149
2016-03-07T23:50:47.000Z
2022-03-11T23:16:33.000Z
wsgi/iportalen_django/events/views.py
I-sektionen/i-portalen
1713e5814d40c0da1bf3278d60a561e7d3df3550
[ "MIT" ]
1
2016-03-07T23:02:06.000Z
2016-03-07T23:02:06.000Z
from django.core.mail import send_mail from django.core.urlresolvers import reverse from django.db.models import Q from django.http.response import JsonResponse from django.shortcuts import render, get_object_or_404, redirect from django.forms import modelformset_factory from django.contrib.auth.decorators import login...
41.118671
248
0.588833
2,787
25,987
5.334051
0.147112
0.023678
0.01453
0.038679
0.571842
0.508408
0.433741
0.404749
0.380802
0.348581
0
0.005414
0.303459
25,987
631
249
41.183835
0.815867
0.014161
0
0.501859
0
0.007435
0.156235
0.033169
0
0
0
0.001585
0
1
0.057621
false
0.005576
0.046468
0.001859
0.197026
0.001859
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cfa89d2739c826f494098053f56652fab2675cda
411
py
Python
loop_count_sum_average.py
bclead3/python_for_everyone
ccf72c335fe1e9b6419ccb34fc091c9520a69e5c
[ "MIT" ]
null
null
null
loop_count_sum_average.py
bclead3/python_for_everyone
ccf72c335fe1e9b6419ccb34fc091c9520a69e5c
[ "MIT" ]
null
null
null
loop_count_sum_average.py
bclead3/python_for_everyone
ccf72c335fe1e9b6419ccb34fc091c9520a69e5c
[ "MIT" ]
null
null
null
intNum = 0 fltTotal = 0.0 while True: strVal = input('Enter a number: ') if strVal == 'done': break try: fltVal = float(strVal) intNum += 1 fltTotal += fltVal except ValueError: print('Invalid Input value, continuing...') continue print("The number of ...
21.631579
111
0.586375
47
411
5.12766
0.659574
0
0
0
0
0
0
0
0
0
0
0.013605
0.284672
411
18
112
22.833333
0.806122
0
0
0
0
0
0.272506
0
0
0
0
0
0
1
0
false
0
0
0
0
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
cfaad53b73796070da96bc425bbb924627d94d3e
66,608
py
Python
direfl/api/invert.py
TUM-E21-ThinFilms/direfl
ef60610b1653ab1a93840ec481a0eed3242fcfcc
[ "MIT" ]
null
null
null
direfl/api/invert.py
TUM-E21-ThinFilms/direfl
ef60610b1653ab1a93840ec481a0eed3242fcfcc
[ "MIT" ]
null
null
null
direfl/api/invert.py
TUM-E21-ThinFilms/direfl
ef60610b1653ab1a93840ec481a0eed3242fcfcc
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This program is public domain # # Phase inversion author: Norm Berk # Translated from Mathematica by Paul Kienzle # # Phase reconstruction author: Charles Majkrzak # Converted from Fortran by Paul Kienzle # # Reflectivity calculation author: Paul Kienzle # # The National Institute of Standards ...
38.952047
90
0.563191
8,549
66,608
4.359574
0.152883
0.006171
0.00601
0.003864
0.179608
0.136786
0.111913
0.089536
0.071183
0.06147
0
0.022703
0.31292
66,608
1,709
91
38.974839
0.791675
0.498349
0
0.181943
0
0
0.083922
0.001578
0
0
0
0
0
1
0.072503
false
0
0.045144
0.002736
0.191518
0.00684
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cfab26c2310626960a9eb1bcfe2663950cbe8982
1,429
py
Python
JupiterMag/Tools/TestTrace.py
mattkjames7/JupiterMag
0c2bc82e9efadc4b026b82f4aeea30b068ba7fbd
[ "MIT" ]
null
null
null
JupiterMag/Tools/TestTrace.py
mattkjames7/JupiterMag
0c2bc82e9efadc4b026b82f4aeea30b068ba7fbd
[ "MIT" ]
null
null
null
JupiterMag/Tools/TestTrace.py
mattkjames7/JupiterMag
0c2bc82e9efadc4b026b82f4aeea30b068ba7fbd
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt def TestTrace(IntModel='jrm33',ExtModel='Con2020',fig=None,maps=[1,1,0,0],color='green'): from ..TraceField import TraceField from ..Con2020 import Config #set the starting coords n = 7 x = np.linspace(2.0,30.0,n) x = np.append(-x[::-1],x) y = np.zeros(n*2) ...
21.651515
89
0.6669
237
1,429
4.004219
0.35443
0.00843
0.066386
0.041096
0.314015
0.314015
0.240253
0.206533
0.094837
0
0
0.059117
0.159552
1,429
65
90
21.984615
0.731057
0.085374
0
0.285714
0
0
0.071483
0
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cfac305f0f7ce458aca125a8380e57d97d04bc9b
81,938
py
Python
openstuder.py
OpenStuder/openstuder-client-python
ade667116afcd084faed93febfa4e267972f5250
[ "MIT" ]
null
null
null
openstuder.py
OpenStuder/openstuder-client-python
ade667116afcd084faed93febfa4e267972f5250
[ "MIT" ]
null
null
null
openstuder.py
OpenStuder/openstuder-client-python
ade667116afcd084faed93febfa4e267972f5250
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import Callable, Optional, Tuple, List from enum import Enum, Flag, auto from threading import Thread import datetime import json import websocket class SIStatus(Enum): """ Status of operations on the OpenStuder gateway. - **SIStatus.SUCCESS**: Operation was...
48.541469
180
0.672435
9,824
81,938
5.470684
0.051608
0.011722
0.010029
0.007554
0.744176
0.687295
0.646975
0.602542
0.573013
0.543279
0
0.002771
0.251251
81,938
1,687
181
48.570243
0.873238
0.348752
0
0.398417
0
0
0.071592
0.011891
0
0
0
0.000593
0
1
0.138522
false
0.036939
0.009235
0.01715
0.295515
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cfb605ca953b0b2a145c9dfb2721c7a45cd2d149
2,485
py
Python
Code/Aurora-to-Redshift-SnapshotExport-ELT/python/rds_snap_exp_check_snapshot.py
aws-samples/aurora-and-database-migration-labs
5f7f4ab7985dda04c2a6cdc8a04fb34491f6a0aa
[ "MIT-0" ]
23
2019-02-18T17:20:17.000Z
2022-03-31T18:12:49.000Z
Code/Aurora-to-Redshift-SnapshotExport-ELT/python/rds_snap_exp_check_snapshot.py
CloudGuru79/aurora-and-database-migration-labs
e70b6a41747d6117d763a708df035e73db88e107
[ "MIT-0" ]
1
2021-05-25T14:07:51.000Z
2021-08-04T16:06:44.000Z
Code/Aurora-to-Redshift-SnapshotExport-ELT/python/rds_snap_exp_check_snapshot.py
CloudGuru79/aurora-and-database-migration-labs
e70b6a41747d6117d763a708df035e73db88e107
[ "MIT-0" ]
11
2019-03-29T13:11:29.000Z
2022-03-26T20:47:38.000Z
import boto3 from datetime import datetime, timezone class SnapshotException(Exception): pass def lambda_handler(event, context): # Input from Cloudwatch event rule aurora_cluster_id=event["aurora_cluster_id"] s3_bucket_for_rds_snap_exp=event["s3_bucket_for_rds_snap_exp"] iam_role_for_r...
31.455696
102
0.660362
274
2,485
5.660584
0.357664
0.045132
0.045132
0.058672
0.133462
0.092843
0.027079
0
0
0
0
0.004857
0.254326
2,485
79
103
31.455696
0.832164
0.070825
0
0
0
0
0.196095
0.045987
0
0
0
0
0
1
0.020833
false
0.020833
0.041667
0
0.104167
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
cfb76a0451724cb5b9f942bb838e8d1e229a0d3d
4,932
py
Python
research/nlp/lstm_crf/eval.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/lstm_crf/eval.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/lstm_crf/eval.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
39.774194
107
0.651663
659
4,932
4.605463
0.326252
0.026689
0.024712
0.023064
0.068204
0.038221
0.018451
0.018451
0
0
0
0.014803
0.232968
4,932
123
108
40.097561
0.78747
0.182482
0
0
0
0
0.032725
0
0
0
0
0
0
1
0.02381
false
0
0.119048
0
0.142857
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
cfb7b75e80d6f16aa38ab2c5bb8e48063d63e82b
2,682
py
Python
prepare_training_data.py
vijayaganesh/Chrome-DinoGame-AI
1c28114c3b0ac40dcb3812ba202b5a343de7d93a
[ "MIT" ]
null
null
null
prepare_training_data.py
vijayaganesh/Chrome-DinoGame-AI
1c28114c3b0ac40dcb3812ba202b5a343de7d93a
[ "MIT" ]
null
null
null
prepare_training_data.py
vijayaganesh/Chrome-DinoGame-AI
1c28114c3b0ac40dcb3812ba202b5a343de7d93a
[ "MIT" ]
null
null
null
import cv2 import numpy as np import tensorflow as tf import time import statistics import h5py vid_file = '/home/vijayaganesh/Videos/Google Chrome Dinosaur Game [Bird Update] BEST SCORE OF THE WORLD (No hack).mp4' data_file = 'training_data.txt' roi_x = 320 roi_y = 120 roi_w = 459 roi_h = 112 font = cv2.FONT_HERSHEY...
25.788462
118
0.590604
449
2,682
3.36971
0.336303
0.019828
0.039656
0.026438
0.124256
0.124256
0.072703
0.072703
0.072703
0.046266
0
0.082707
0.256152
2,682
103
119
26.038835
0.675689
0.052573
0
0.083333
0
0.011905
0.059595
0.012714
0
0
0.001589
0
0
1
0
false
0
0.071429
0
0.071429
0.011905
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cfbe82223a8d3479a6dfc0c1cbd4a4db1f89fae3
941
py
Python
crfill/trainers/__init__.py
node21challenge/rank2_node21_generation
6c1708468b4ba48383c55bc8473ebcc5a83b8995
[ "Apache-2.0" ]
null
null
null
crfill/trainers/__init__.py
node21challenge/rank2_node21_generation
6c1708468b4ba48383c55bc8473ebcc5a83b8995
[ "Apache-2.0" ]
null
null
null
crfill/trainers/__init__.py
node21challenge/rank2_node21_generation
6c1708468b4ba48383c55bc8473ebcc5a83b8995
[ "Apache-2.0" ]
1
2022-02-11T12:42:21.000Z
2022-02-11T12:42:21.000Z
import importlib def find_trainer_using_name(model_name): model_filename = "trainers." + model_name + "_trainer" modellib = importlib.import_module(model_filename) # In the file, the class called ModelNameModel() will # be instantiated. It has to be a subclass of torch.nn.Module, # and it is case-...
32.448276
156
0.682253
129
941
4.744186
0.465116
0.088235
0.073529
0.065359
0.084967
0.084967
0.084967
0
0
0
0
0.001353
0.214665
941
28
157
33.607143
0.826793
0.148778
0
0
0
0.055556
0.185696
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.333333
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
cfbf0b7ed91177f382813b392b45d5b821b94144
3,790
py
Python
setup.py
zfit/zfit-flavour
291be3d3d80a8e20907a5de88239098d0ed7e96d
[ "BSD-3-Clause" ]
null
null
null
setup.py
zfit/zfit-flavour
291be3d3d80a8e20907a5de88239098d0ed7e96d
[ "BSD-3-Clause" ]
null
null
null
setup.py
zfit/zfit-flavour
291be3d3d80a8e20907a5de88239098d0ed7e96d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- import io import re import os import glob from setuptools import find_packages from setuptools import setup def read(*names, **kwargs): with io.open( os.path.join(os.path.dirname(__file__), *names), encoding=kwargs.get('encoding', 'utf8') ) as f...
38.673469
104
0.641953
435
3,790
5.462069
0.43908
0.09596
0.126263
0.054714
0.124579
0.077441
0.02862
0
0
0
0
0.009967
0.205805
3,790
97
105
39.072165
0.779402
0.11847
0
0.025641
0
0
0.408163
0.031212
0
0
0
0
0
1
0.012821
false
0
0.076923
0
0.102564
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cfbfa275b0b7f6610c00f6739476900452fbdfa6
1,858
py
Python
engine/utils/scheduler.py
rmarticedeno/Agent_Platform
12891e96bae4670e50f12e56a2dee258b7b584b4
[ "MIT" ]
2
2019-12-07T00:20:51.000Z
2019-12-23T15:54:27.000Z
engine/utils/scheduler.py
rmarticedeno/Agent_Platform
12891e96bae4670e50f12e56a2dee258b7b584b4
[ "MIT" ]
null
null
null
engine/utils/scheduler.py
rmarticedeno/Agent_Platform
12891e96bae4670e50f12e56a2dee258b7b584b4
[ "MIT" ]
null
null
null
from collections import deque class TaskScheduler: ''' Represents an ordered Scheduler. ''' def __init__(self): self._task_deque = deque() def new_task(self, task): ''' Admit a newly started task to the scheduler\n (must be a generator `yield`) ...
19.557895
57
0.520452
236
1,858
3.944915
0.34322
0.103115
0.069817
0.040816
0.197637
0.038668
0
0
0
0
0
0.039543
0.387513
1,858
94
58
19.765957
0.778559
0.353068
0
0.125
0
0
0.032498
0
0
0
0
0
0
1
0.15625
false
0.03125
0.03125
0
0.21875
0.09375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cfc02d4a4657dd5adc5e53454218d4b69d722cf8
2,138
py
Python
leet_code/editorial/numbers_roman.py
theeksha101/problem_solving
431c4ff224035bb98ad67ead963860329dd4c9ff
[ "MIT" ]
null
null
null
leet_code/editorial/numbers_roman.py
theeksha101/problem_solving
431c4ff224035bb98ad67ead963860329dd4c9ff
[ "MIT" ]
null
null
null
leet_code/editorial/numbers_roman.py
theeksha101/problem_solving
431c4ff224035bb98ad67ead963860329dd4c9ff
[ "MIT" ]
null
null
null
class Solution: def intToRoman(self, num: int) -> str: a = { 'I': 1, 'IV': 4, 'V': 5, 'IX': 9, 'X': 10, 'XL': 40, 'L': 50, 'XC': 90, 'C': 100, 'CD': 400, 'D': 500, ...
25.759036
116
0.384471
233
2,138
3.454936
0.300429
0.080745
0.089441
0.074534
0.213665
0.213665
0.11677
0.11677
0.11677
0.11677
0
0.107174
0.45884
2,138
82
117
26.073171
0.588591
0
0
0.072464
0
0
0.023854
0
0
0
0
0
0
1
0.043478
false
0
0
0
0.130435
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cfc2420a8b0d8a4ab0326148009595e910540813
2,310
py
Python
test_incoming.py
james-721/chat_limpet
88a394d4e6e3f34b9af4dd29d43999f28bd91224
[ "MIT" ]
null
null
null
test_incoming.py
james-721/chat_limpet
88a394d4e6e3f34b9af4dd29d43999f28bd91224
[ "MIT" ]
null
null
null
test_incoming.py
james-721/chat_limpet
88a394d4e6e3f34b9af4dd29d43999f28bd91224
[ "MIT" ]
null
null
null
import zlib import zmq import simplejson import sys import time import pprint import math pp = pprint.PrettyPrinter(indent=4) """ " Configuration """ __relayEDDN = 'tcp://eddn.edcd.io:9500' __timeoutEDDN = 600000 """ " Start """ def distance_finder(input_coords): colonia_coords = [-953...
32.535211
172
0.544156
226
2,310
5.265487
0.438053
0.064706
0.020168
0.030252
0.10084
0.10084
0
0
0
0
0
0.048481
0.330303
2,310
71
173
32.535211
0.72075
0.027273
0
0.16
0
0
0.078983
0.01044
0
0
0
0
0
1
0.04
false
0
0.14
0
0.2
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cfc3b184faded8ad9ad737db946c5f8bf1633768
8,599
py
Python
bayesian_optimization/algorithms/dt.py
ukritw/autonialm
a5264753dae19b9b5257ca75433a0f55dce0f173
[ "Apache-2.0" ]
2
2022-02-22T13:16:17.000Z
2022-03-24T17:37:54.000Z
bayesian_optimization/algorithms/dt.py
ukritw/autonialm
a5264753dae19b9b5257ca75433a0f55dce0f173
[ "Apache-2.0" ]
null
null
null
bayesian_optimization/algorithms/dt.py
ukritw/autonialm
a5264753dae19b9b5257ca75433a0f55dce0f173
[ "Apache-2.0" ]
2
2019-03-24T20:58:53.000Z
2022-03-06T06:51:50.000Z
from __future__ import print_function, division import warnings; warnings.filterwarnings("ignore") from nilmtk import DataSet import pandas as pd import numpy as np import datetime import time import math import glob from sklearn.tree import DecisionTreeRegressor # Bring packages onto the path import sys, os sys.pa...
43.211055
230
0.695662
1,219
8,599
4.62018
0.162428
0.051136
0.02983
0.046875
0.481889
0.415661
0.405362
0.382635
0.350497
0.350497
0
0.020148
0.18037
8,599
198
231
43.429293
0.778944
0.437842
0
0.134831
0
0
0.015388
0.00527
0
0
0
0
0
1
0.011236
false
0
0.146067
0
0.168539
0.011236
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cfc4dc6ecc3462bf8a0af5bf57b6f97a39afd525
856
py
Python
Interpolation/New Tab with Special Layers.py
juandelperal/Glyphs-Scripts
1f3cb71683ec044dff67a46cd895773e8271effa
[ "Apache-2.0" ]
null
null
null
Interpolation/New Tab with Special Layers.py
juandelperal/Glyphs-Scripts
1f3cb71683ec044dff67a46cd895773e8271effa
[ "Apache-2.0" ]
null
null
null
Interpolation/New Tab with Special Layers.py
juandelperal/Glyphs-Scripts
1f3cb71683ec044dff67a46cd895773e8271effa
[ "Apache-2.0" ]
null
null
null
#MenuTitle: New Tab with Special Layers # -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals from builtins import str __doc__=""" Opens a new Edit tab containing all special (bracket & brace) layers. """ Glyphs.clearLog() # clears log of Macro window thisFont = Glyphs.font # frontm...
28.533333
70
0.748832
112
856
5.633929
0.589286
0.019017
0.031696
0
0
0
0
0
0
0
0
0.001404
0.168224
856
29
71
29.517241
0.884831
0.28271
0
0
0
0
0.229752
0
0
0
0
0
0
1
0
false
0
0.095238
0
0.095238
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cfc4e76ff268f1b04652ad27abd0acee3bdfb297
3,244
py
Python
tests/wallet/nft_wallet/test_ownership_outer_puzzle.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
tests/wallet/nft_wallet/test_ownership_outer_puzzle.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
tests/wallet/nft_wallet/test_ownership_outer_puzzle.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
from typing import Optional from clvm_tools.binutils import assemble from chinilla.types.blockchain_format.program import Program from chinilla.types.blockchain_format.sized_bytes import bytes32 from chinilla.util.ints import uint16 from chinilla.wallet.nft_wallet.ownership_outer_puzzle import puzzle_for_ownership_la...
42.684211
119
0.750308
389
3,244
5.910026
0.197943
0.130492
0.073075
0.058721
0.328839
0.176599
0.074815
0.043497
0
0
0
0.017395
0.167078
3,244
75
120
43.253333
0.833457
0.034217
0
0
0
0
0.038611
0
0
0
0
0
0.306452
1
0.016129
false
0
0.145161
0
0.16129
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0