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
ca963c794e6b8ca2f4dbf07be128d72d92a54e5c
9,514
py
Python
openGaussBase/testcase/SQL/INNERFUNC/last/Opengauss_Function_Innerfunc_Last_Case0007.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/INNERFUNC/last/Opengauss_Function_Innerfunc_Last_Case0007.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/INNERFUNC/last/Opengauss_Function_Innerfunc_Last_Case0007.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
42.663677
84
0.586189
1,324
9,514
4.076284
0.212991
0.037613
0.057069
0.030573
0.523254
0.426163
0.312025
0.254771
0.241616
0.217528
0
0.039195
0.289363
9,514
222
85
42.855856
0.759059
0.053395
0
0.196532
0
0
0.513659
0.107985
0
0
0
0
0.115607
1
0.017341
false
0
0.034682
0
0.057803
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca9b95c978ba4ebdf7212bca4a59b66c0c1f46e7
356
py
Python
test/record.py
titulebolide/variometer
7e5fbacdb9c403d11dd01abc6f5e20db4b922756
[ "MIT" ]
null
null
null
test/record.py
titulebolide/variometer
7e5fbacdb9c403d11dd01abc6f5e20db4b922756
[ "MIT" ]
null
null
null
test/record.py
titulebolide/variometer
7e5fbacdb9c403d11dd01abc6f5e20db4b922756
[ "MIT" ]
null
null
null
import flask import numpy as np buff = [] app = flask.Flask(__name__) @app.route("/",methods=['POST']) def index(): global buff datas = flask.request.get_json(force=True) buff.extend(datas["data"]) return "",200 @app.route("/save/",methods=['GET']) def save(): np.save("record.npy", buff) retu...
17.8
46
0.620787
53
356
4.075472
0.566038
0.027778
0.111111
0
0
0
0
0
0
0
0
0.047297
0.168539
356
19
47
18.736842
0.682432
0
0
0.133333
0
0
0.098315
0
0
0
0
0
0
1
0.133333
false
0
0.133333
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
ca9bf7b2d5b27c913dc9d1327604f448153b014a
13,207
py
Python
framework/cefs.py
shew91/Retropy
9feb34855b997c48d93a5343a9842788d19582e6
[ "MIT" ]
13
2018-06-02T09:11:15.000Z
2020-08-29T01:01:19.000Z
framework/cefs.py
shew91/Retropy
9feb34855b997c48d93a5343a9842788d19582e6
[ "MIT" ]
1
2021-01-17T14:03:13.000Z
2021-01-17T14:03:13.000Z
framework/cefs.py
shew91/Retropy
9feb34855b997c48d93a5343a9842788d19582e6
[ "MIT" ]
6
2018-06-02T16:20:47.000Z
2021-12-30T22:26:54.000Z
# https://www.cefconnect.com/closed-end-funds-screener # https://www.cefa.com/ # http://cefdata.com/funds/clm/ # https://www.cefconnect.com/fund/CLM # https://www.cefchannel.com/clm/ from framework.utils import * from framework.base import * from framework.meta_data import * from framework.stats_basic import * from ...
41.271875
678
0.673885
2,330
13,207
3.629614
0.329185
0.048244
0.039376
0.013007
0.371763
0.311694
0.253754
0.215561
0.19676
0.177486
0
0.010702
0.16514
13,207
319
679
41.401254
0.756303
0.245779
0
0.274262
0
0.008439
0.17823
0.003625
0
0
0
0
0
1
0.14346
false
0
0.029536
0.016878
0.409283
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca9c994cab0cb35cf5defa4b1739417be15fb6c9
2,616
py
Python
ecco_v4_py/vector_calc.py
zelunwu/ECCOv4-py
03b6a1b01fcd17b0b88c25bee205c195df52d7fa
[ "MIT" ]
1
2022-03-08T12:27:08.000Z
2022-03-08T12:27:08.000Z
ecco_v4_py/vector_calc.py
zelunwu/ECCOv4-py
03b6a1b01fcd17b0b88c25bee205c195df52d7fa
[ "MIT" ]
null
null
null
ecco_v4_py/vector_calc.py
zelunwu/ECCOv4-py
03b6a1b01fcd17b0b88c25bee205c195df52d7fa
[ "MIT" ]
1
2020-05-09T01:07:03.000Z
2020-05-09T01:07:03.000Z
""" Functions defined on vector valued fields """ import xarray as xr import xgcm from .ecco_utils import get_llc_grid def UEVNfromUXVY(xfld,yfld,coords,grid=None): """Compute east, north facing vector field components from x, y components by interpolating to cell centers and rotating by grid cell angle ...
30.068966
84
0.66552
371
2,616
4.609164
0.431267
0.024561
0.023392
0.018713
0
0
0
0
0
0
0
0.00303
0.243119
2,616
86
85
30.418605
0.860606
0.603211
0
0
0
0
0.075964
0
0
0
0
0
0
1
0.1
false
0
0.15
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
045f42e7e3687860c6585444a23e801817f61e12
2,409
py
Python
StockExporter.py
A1eXFei/StockMarket3
01000d0731395868c4477982c6ed6c632c9a7427
[ "Apache-2.0" ]
null
null
null
StockExporter.py
A1eXFei/StockMarket3
01000d0731395868c4477982c6ed6c632c9a7427
[ "Apache-2.0" ]
null
null
null
StockExporter.py
A1eXFei/StockMarket3
01000d0731395868c4477982c6ed6c632c9a7427
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import os import logging from logging.config import fileConfig from util import DatabaseUtil as dbu from util import ExportUtil as eu fileConfig("logging_config.ini") logger = logging.getLogger(__name__) class StockExporter(): def __init__(self, export_dir, stock_code, start_date, end_da...
43.8
114
0.602325
326
2,409
4.177914
0.236196
0.079295
0.066814
0.037445
0.420705
0.374449
0.311307
0.273128
0.232012
0.232012
0
0.00927
0.28352
2,409
54
115
44.611111
0.779838
0.008717
0
0.146341
0
0
0.158906
0.008971
0
0
0
0
0
1
0.04878
false
0
0.121951
0
0.195122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
046046d511220f9b7bfb8a21f8d381f0f028cf8d
34,758
py
Python
experiments/2021-02-18-knockouts/local/py_analysis/avida.py
amlalejini/plastic-evolvability-avida
909d944e52a102e09dd714a8b7e0f2274c4a8072
[ "MIT" ]
2
2021-09-16T14:47:43.000Z
2021-10-31T04:55:16.000Z
experiments/2021-02-18-knockouts/local/py_analysis/avida.py
amlalejini/evolutionary-consequences-of-plasticity
909d944e52a102e09dd714a8b7e0f2274c4a8072
[ "MIT" ]
null
null
null
experiments/2021-02-18-knockouts/local/py_analysis/avida.py
amlalejini/evolutionary-consequences-of-plasticity
909d944e52a102e09dd714a8b7e0f2274c4a8072
[ "MIT" ]
2
2020-08-19T20:01:14.000Z
2020-12-21T21:24:12.000Z
from helpers import * import copy import pygame import random # Render vars inst_x = 32 inst_width = 128 arrow_width = inst_x / 2 font_size = 10 font = pygame.font.SysFont('ubuntu', size = font_size) large_font_size = 20 large_font = pygame.font.SysFont('ubuntu', size = large_font_size) # Basic Avidian class. Handles...
43.831021
101
0.466857
4,435
34,758
3.407892
0.060203
0.094019
0.047638
0.032023
0.707821
0.631203
0.562988
0.523025
0.488686
0.429999
0
0.040145
0.406611
34,758
792
102
43.886364
0.692655
0.039962
0
0.47561
0
0
0.034444
0
0.01084
0
0
0
0
1
0.020325
false
0.01084
0.00542
0
0.03523
0.012195
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
046277d3c02237d1299502009394a5bf6a8ac7e5
6,262
py
Python
examples/cvpr2020/reference_trainer.py
UCMerced-ML/LC-model-compression
bf12c3c1baad2bdd8d2aa3c560f8d7d0bed64a1e
[ "BSD-3-Clause" ]
40
2020-05-19T01:31:02.000Z
2022-01-28T00:25:33.000Z
examples/cvpr2020/reference_trainer.py
UCMerced-ML/LC-model-compression
bf12c3c1baad2bdd8d2aa3c560f8d7d0bed64a1e
[ "BSD-3-Clause" ]
3
2020-09-09T16:04:17.000Z
2022-03-18T00:59:39.000Z
examples/cvpr2020/reference_trainer.py
UCMerced-ML/LC-model-compression
bf12c3c1baad2bdd8d2aa3c560f8d7d0bed64a1e
[ "BSD-3-Clause" ]
8
2020-09-08T14:11:16.000Z
2022-01-28T00:25:41.000Z
#!/bin/env/python3 from types import ModuleType from lc.models import torch as model_def from utils import AverageMeter, Recorder, format_time, data_loader, compute_acc_loss import argparse import torch from torch import optim import torch.backends.cudnn as cudnn import torch.nn as nn import time import os if __name__...
44.728571
125
0.621048
770
6,262
4.848052
0.244156
0.022502
0.059202
0.016073
0.261988
0.226092
0.199839
0.167694
0.129119
0.109831
0
0.013061
0.241935
6,262
140
126
44.728571
0.773331
0.026509
0
0.118644
0
0.008475
0.173314
0.013294
0.008475
0
0
0
0
1
0.008475
false
0.008475
0.09322
0
0.110169
0.084746
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0463351ecd48fd4a8685d1b1e0e86fd55a8bbaa2
1,249
py
Python
sa/profiles/Generic/sync_vlans.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
sa/profiles/Generic/sync_vlans.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
sa/profiles/Generic/sync_vlans.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# --------------------------------------------------------------------- # Copyright (C) 2007-2015 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- from noc.core.script.base import BaseScript from noc.sa.interfaces.isyncvlans import ISyncVlans class Sc...
33.756757
92
0.552442
160
1,249
4.0875
0.35
0.045872
0.027523
0.033639
0.103976
0.055046
0.055046
0
0
0
0
0.013771
0.244195
1,249
36
93
34.694444
0.679025
0.180945
0
0
0
0
0.083661
0
0
0
0
0
0
1
0.041667
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0463d410530853a1c2fe7284a9f305e2222bedae
1,875
py
Python
Day_21/part2.py
Uklusi/AdventOfCode2021
3d22ace832bfd6c9855b2ebad3bf7f10c4751982
[ "MIT" ]
null
null
null
Day_21/part2.py
Uklusi/AdventOfCode2021
3d22ace832bfd6c9855b2ebad3bf7f10c4751982
[ "MIT" ]
null
null
null
Day_21/part2.py
Uklusi/AdventOfCode2021
3d22ace832bfd6c9855b2ebad3bf7f10c4751982
[ "MIT" ]
null
null
null
from types import new_class from AoCUtils import * result = 0 partNumber = "2" writeToLog = True if writeToLog: logFile = open("log" + partNumber + ".txt", "w") else: logFile = "stdout" printLog = printLogFactory(logFile) start1 = 8 start2 = 9 # Example # start1 = 4 # start2 = 8 score1 = 0 score2 = 0 di...
21.067416
95
0.5488
227
1,875
4.528634
0.356828
0.046693
0.027237
0.019455
0.036965
0.036965
0
0
0
0
0
0.07613
0.327467
1,875
88
96
21.306818
0.739096
0.063467
0
0.092308
0
0
0.014849
0
0
0
0
0
0
1
0
false
0
0.030769
0
0.030769
0.030769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
046764af8b8febc01686b2caf4cec52bcb012ff6
20,510
py
Python
dpytools/menus.py
ComfortablyCoding/dpytools
e5588bc1795543eddb94c3d3a58a9ea9668740a0
[ "MIT" ]
22
2021-01-21T19:57:39.000Z
2022-03-14T02:34:01.000Z
dpytools/menus.py
ComfortablyCoding/dpytools
e5588bc1795543eddb94c3d3a58a9ea9668740a0
[ "MIT" ]
3
2021-05-20T16:34:21.000Z
2021-06-23T19:54:32.000Z
dpytools/menus.py
ComfortablyCoding/dpytools
e5588bc1795543eddb94c3d3a58a9ea9668740a0
[ "MIT" ]
7
2021-04-28T04:18:09.000Z
2021-06-23T00:20:06.000Z
# -*- coding: utf-8 -*- """ This module holds functions for displaying different kinds of menus. All menus are reaction based. """ import asyncio from copy import copy from inspect import isawaitable from typing import List, Optional, Union, Callable import discord from discord import Embed from discord.ext import c...
35.982456
120
0.570697
2,392
20,510
4.777174
0.150502
0.017765
0.01934
0.012252
0.30638
0.274788
0.21668
0.205303
0.175199
0.136781
0
0.005776
0.341589
20,510
569
121
36.045694
0.840196
0.10941
0
0.26935
0
0
0.039958
0.00253
0
0
0
0
0
1
0.037152
false
0.009288
0.034056
0.012384
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
046b23b296bfcedfcca9aaf23e3a6837b6efe373
9,706
py
Python
formulator/models.py
Cahersan/django-formulator
0b7552f9b0c11b83568ad37350c14a111694a931
[ "MIT" ]
null
null
null
formulator/models.py
Cahersan/django-formulator
0b7552f9b0c11b83568ad37350c14a111694a931
[ "MIT" ]
null
null
null
formulator/models.py
Cahersan/django-formulator
0b7552f9b0c11b83568ad37350c14a111694a931
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import re import importlib from django.utils.translation import ugettext_lazy as _ from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.utils.functional import cached_property from model_utils import Choices from collections im...
35.166667
119
0.637441
1,143
9,706
5.247594
0.218723
0.022508
0.039013
0.052017
0.204235
0.147049
0.106536
0.087362
0.030677
0.014338
0
0.007522
0.274057
9,706
275
120
35.294545
0.843741
0.084381
0
0.167568
0
0
0.170196
0.003737
0
0
0
0
0
1
0.075676
false
0
0.102703
0.037838
0.497297
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04700730113a9f3f7622d5a4ec5c89cef15b8e21
963
py
Python
src/python/pyLCIO/io/StdHepReader.py
jstrube/lcio
763eb323df33d3b0c4240e6b6feb7d0a27b790d5
[ "BSD-3-Clause" ]
null
null
null
src/python/pyLCIO/io/StdHepReader.py
jstrube/lcio
763eb323df33d3b0c4240e6b6feb7d0a27b790d5
[ "BSD-3-Clause" ]
4
2020-08-26T23:35:37.000Z
2020-09-22T21:13:25.000Z
src/python/pyLCIO/io/StdHepReader.py
JeffersonLab/hps-lcio
b83447dd8189d5f541601343066f8e3b4621f4ec
[ "BSD-3-Clause" ]
1
2020-08-26T19:31:19.000Z
2020-08-26T19:31:19.000Z
''' Created on Dec 4, 2012 @author: <a href="mailto:christian.grefe@cern.ch">Christian Grefe</a> ''' import os from pyLCIO.io.Reader import Reader from pyLCIO import EVENT, IMPL, UTIL class StdHepReader( Reader ): ''' Class to hold an LCStdHepRdr object ''' def __init__( self, fileName=None): ''' C...
25.342105
71
0.589823
102
963
5.372549
0.54902
0.104015
0
0
0
0
0
0
0
0
0
0.010526
0.30945
963
37
72
26.027027
0.813534
0.185877
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0470d58f55c3b1b314cc0262448436f7712baf8d
6,440
py
Python
test/deposit.py
DAism2019/ERCs
f5cfec6b5700685b5515c8106a373b5f71b429c6
[ "CC0-1.0" ]
null
null
null
test/deposit.py
DAism2019/ERCs
f5cfec6b5700685b5515c8106a373b5f71b429c6
[ "CC0-1.0" ]
null
null
null
test/deposit.py
DAism2019/ERCs
f5cfec6b5700685b5515c8106a373b5f71b429c6
[ "CC0-1.0" ]
null
null
null
from contract import Forge,Validator,TOH,NDAO from privateKey import my_address, private_key # from web3.auto.infura.rinkeby import w3 from web3.auto import w3 import time # 引入time模块 another = "0x2E8b222CFac863Ec6D3446c78fD46aAEA289A9fb" another_privateKey = "078e9ed558a9afd1e7e27b9884fbcc95f8fa406bd02de3a2a19fbac401...
29.406393
92
0.678416
695
6,440
6.151079
0.185612
0.032749
0.016374
0.047485
0.549942
0.511345
0.499415
0.421053
0.382924
0.382924
0
0.033462
0.197205
6,440
218
93
29.541284
0.793424
0.031832
0
0.605882
0
0
0.075563
0.017042
0
0
0.006752
0
0.017647
1
0.082353
false
0
0.023529
0
0.129412
0.182353
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0470f24c34be36437ebfed026dd28c5941c7d5c4
815
py
Python
probe/influx.py
phenobarbital/asyncdb
d4ea3d6b60436afce758abbcd632164a6ac6fa0c
[ "Apache-2.0", "BSD-3-Clause" ]
4
2020-09-07T15:39:10.000Z
2022-03-15T03:48:34.000Z
probe/influx.py
phenobarbital/asyncdb
d4ea3d6b60436afce758abbcd632164a6ac6fa0c
[ "Apache-2.0", "BSD-3-Clause" ]
394
2020-10-08T08:05:54.000Z
2022-03-31T10:28:27.000Z
probe/influx.py
jelitox/asyncdb
c5cad9857baa14fa949d34fa29406024d68d5735
[ "Apache-2.0", "BSD-3-Clause" ]
2
2020-09-07T15:38:56.000Z
2021-09-26T03:52:27.000Z
from asyncdb import AsyncDB, AsyncPool import asyncio loop = asyncio.get_event_loop() asyncio.set_event_loop(loop) params = { "host": "127.0.0.1", "port": "8086", "database": 'testdb', "user": "influxdata", "password": "12345678" } DRIVER='influx' async def test_connect(driver, params, event_lo...
22.638889
67
0.656442
103
815
4.990291
0.514563
0.070039
0.066148
0.089494
0
0
0
0
0
0
0
0.027821
0.206135
815
35
68
23.285714
0.766615
0
0
0
0
0
0.121472
0
0
0
0
0
0
1
0
false
0.035714
0.071429
0
0.071429
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
0472705f71b9f473bebe34fc4fa5caeef5f89456
17,557
py
Python
UI.py
Abdur-rahmaanJ/PygameUI
91139272f41558176ea105f7f0b613aef9a243f5
[ "Apache-2.0" ]
1
2020-05-27T04:24:36.000Z
2020-05-27T04:24:36.000Z
UI.py
Abdur-rahmaanJ/PygameUI
91139272f41558176ea105f7f0b613aef9a243f5
[ "Apache-2.0" ]
null
null
null
UI.py
Abdur-rahmaanJ/PygameUI
91139272f41558176ea105f7f0b613aef9a243f5
[ "Apache-2.0" ]
null
null
null
#Ui Widgets for pygame #this is supposed to make it as easy as possible to make and use buttons and other widgets #Documentation at 'https://github.com/TheBigKahuna353/PygameUI' #All made by Jordan Withell import pygame #make screen quick def Window(w = 500, h = 500): pygame.init() return pygame.dis...
43.8925
361
0.566327
2,382
17,557
4.054996
0.103694
0.047831
0.038824
0.027539
0.414846
0.330676
0.278083
0.249094
0.197743
0.157987
0
0.01802
0.317252
17,557
400
362
43.8925
0.787687
0.111466
0
0.288961
0
0
0.020593
0
0
0
0
0
0
1
0.087662
false
0.003247
0.003247
0.012987
0.159091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04763099553a3f60ab99174135b7fe8f42971ff3
2,108
py
Python
blurple/io/reaction.py
jeremytiki/blurple.py
c8f65955539cc27be588a06592b1c81c03f59c37
[ "MIT" ]
4
2021-06-30T19:58:59.000Z
2021-07-27T13:43:49.000Z
blurple/io/reaction.py
jeremytiki/blurple.py
c8f65955539cc27be588a06592b1c81c03f59c37
[ "MIT" ]
2
2021-07-10T16:08:25.000Z
2021-07-12T02:15:40.000Z
blurple/io/reaction.py
jeremytiki/blurple.py
c8f65955539cc27be588a06592b1c81c03f59c37
[ "MIT" ]
3
2021-07-08T03:00:40.000Z
2021-09-08T19:57:50.000Z
import discord import blurple.io as io class ReactionAddBasic(io.Reply): """An unopinionated, lower level class to wait for a user to add a reaction.""" event = "raw_reaction_add" async def on_reply_init(self, message: discord.Message): """Sepcialized to pass message object.""" self.mess...
37.642857
97
0.675047
266
2,108
5.255639
0.296992
0.062947
0.028612
0.042918
0.418455
0.312589
0.23319
0.23319
0.23319
0.170243
0
0
0.225332
2,108
55
98
38.327273
0.854868
0.202087
0
0.222222
0
0
0.024982
0
0
0
0
0
0
1
0.074074
false
0
0.074074
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
047794e8835f067229c32824232b6e2929ad5189
824
py
Python
client/events.py
adamstallard/EtherBank
d5b24034d9416b6b61efb9f8cb8699e63cf322e9
[ "BSD-2-Clause" ]
1
2019-01-09T22:05:03.000Z
2019-01-09T22:05:03.000Z
client/events.py
adamstallard/EtherBank
d5b24034d9416b6b61efb9f8cb8699e63cf322e9
[ "BSD-2-Clause" ]
null
null
null
client/events.py
adamstallard/EtherBank
d5b24034d9416b6b61efb9f8cb8699e63cf322e9
[ "BSD-2-Clause" ]
null
null
null
from web3.auto import w3 import time # from infura import * import config import json with open("../build/contracts/EtherBank.json") as f: ether_bank_json = json.load(f) ether_bank_contract = w3.eth.contract( address=config.ETHER_BANK_ADDR, abi=ether_bank_json['abi'] ) accounts = w3.eth.accounts def han...
23.542857
72
0.71966
111
824
5.126126
0.495496
0.094903
0.035149
0.077329
0.091388
0
0
0
0
0
0
0.011645
0.166262
824
34
73
24.235294
0.816594
0.024272
0
0
0
0
0.09601
0.041147
0
0
0
0
0
1
0.08
false
0
0.16
0
0.24
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0477d1fec515526460f168e4daf0936536d74afc
14,316
py
Python
train.py
HuipengXu/MixMatch-PyTorch
026a733de773a58e361f66ee48dc150d23ba9754
[ "MIT" ]
1
2021-12-20T14:19:10.000Z
2021-12-20T14:19:10.000Z
train.py
HuipengXu/MixMatch-PyTorch
026a733de773a58e361f66ee48dc150d23ba9754
[ "MIT" ]
null
null
null
train.py
HuipengXu/MixMatch-PyTorch
026a733de773a58e361f66ee48dc150d23ba9754
[ "MIT" ]
null
null
null
import argparse import os import shutil import time import random import json import numpy as np import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim as optim from torch.utils.data import DataLoader from torchtext.vocab import GloVe from progress.bar imp...
38.074468
194
0.634325
1,902
14,316
4.564669
0.17245
0.017623
0.033287
0.008639
0.297742
0.229095
0.173923
0.147892
0.101359
0.092375
0
0.011518
0.241897
14,316
375
195
38.176
0.788446
0.036323
0
0.143369
0
0.007168
0.113775
0
0
0
0
0
0.003584
1
0.02509
false
0
0.0681
0.003584
0.111111
0.046595
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0477db777b9cee4f58f0a5582459326ea8dada3b
1,221
py
Python
api/anubis/utils/visuals/users.py
AnubisLMS/Anubis
2f66ed2e0518422832816615d6f948239c081400
[ "MIT" ]
87
2021-11-08T10:58:26.000Z
2022-03-31T19:02:47.000Z
api/anubis/utils/visuals/users.py
AnubisLMS/Anubis
2f66ed2e0518422832816615d6f948239c081400
[ "MIT" ]
80
2021-11-07T04:46:42.000Z
2022-03-31T23:58:00.000Z
api/anubis/utils/visuals/users.py
AnubisLMS/Anubis
2f66ed2e0518422832816615d6f948239c081400
[ "MIT" ]
15
2021-11-07T17:02:21.000Z
2022-03-28T02:04:16.000Z
from datetime import datetime, timedelta from anubis.utils.cache import cache from anubis.utils.data import is_debug, is_job from anubis.utils.usage.users import get_platform_users from anubis.utils.visuals.files import convert_fig_bytes from anubis.utils.visuals.watermark import add_watermark @cache.memoize(timeout...
28.395349
70
0.673219
181
1,221
4.425414
0.458564
0.062422
0.093633
0.054931
0
0
0
0
0
0
0
0.020683
0.208026
1,221
42
71
29.071429
0.807653
0.026208
0
0
0
0
0.095198
0
0
0
0
0
0
1
0.033333
false
0
0.233333
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
04796e79a9664545eb63e6ba84915a3f7ac3d290
438
py
Python
heatingcontrolstate.py
szbeni/heatingcontroller
624538fdb8ddb88992b1dc5240b5caa7f7380255
[ "MIT" ]
null
null
null
heatingcontrolstate.py
szbeni/heatingcontroller
624538fdb8ddb88992b1dc5240b5caa7f7380255
[ "MIT" ]
null
null
null
heatingcontrolstate.py
szbeni/heatingcontroller
624538fdb8ddb88992b1dc5240b5caa7f7380255
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys sys.argv[1:] if len(sys.argv) < 2: print("Off") exit() inp = sys.argv[1] if(inp == '00000'): print ("Off") elif(inp == '10000'): print ("Gas Auto Fan") elif(inp == '01000'): print ("Gas Slow Fan"); elif(inp == '00100'): print ("Fan"); elif(inp == '00010'): ...
16.846154
33
0.538813
64
438
3.6875
0.4375
0.148305
0.169492
0.084746
0
0
0
0
0
0
0
0.103245
0.226027
438
25
34
17.52
0.59292
0.038813
0
0.1
0
0
0.22619
0
0
0
0
0
0
1
0
false
0
0.05
0
0.05
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
047d17f6bf4f854c158900b4950a6ed69d11af25
2,919
py
Python
user/admin.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
null
null
null
user/admin.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
null
null
null
user/admin.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
null
null
null
from django.contrib import admin, messages from django.contrib.auth.models import Group from app.settings import GROUP_BY_DIVISION_NAME from user.models import Division, History, Role, Team, User from user.utils import send_imported, send_slack def send_welcome(modeladmin, request, users): for user in users: ...
28.067308
80
0.627612
337
2,919
5.204748
0.293769
0.036488
0.059863
0.076967
0.285633
0.165336
0.129989
0.078677
0
0
0
0
0.231929
2,919
103
81
28.339806
0.782337
0
0
0.188235
0
0
0.224735
0.023296
0
0
0
0
0
1
0.035294
false
0.011765
0.070588
0
0.435294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
047d1fce76502daee3bd9c513a2ef6f8cb1425bd
11,584
py
Python
chassisml-sdk/chassisml/chassisml.py
modzy/chassis
a147411c5a27dfee371b75d4cba8d12171d89255
[ "Apache-2.0" ]
29
2021-07-27T15:59:31.000Z
2022-03-24T17:22:17.000Z
chassisml-sdk/chassisml/chassisml.py
modzy/chassis
a147411c5a27dfee371b75d4cba8d12171d89255
[ "Apache-2.0" ]
46
2021-07-29T08:47:21.000Z
2022-03-28T01:59:24.000Z
chassisml-sdk/chassisml/chassisml.py
modzy/chassis
a147411c5a27dfee371b75d4cba8d12171d89255
[ "Apache-2.0" ]
2
2021-12-06T20:33:38.000Z
2022-03-11T15:47:48.000Z
#!/usr/bin/env python # -*- coding utf-8 -*- import _io import os import time import json import requests import urllib.parse import tempfile import shutil import mlflow import base64 import string import numpy as np from chassisml import __version__ from ._utils import zipdir,fix_dependencies,write_modzy_yaml,NumpyEn...
41.224199
127
0.610238
1,404
11,584
4.770655
0.165954
0.041654
0.035533
0.018812
0.496268
0.461332
0.397283
0.372947
0.333831
0.299492
0
0.002878
0.280041
11,584
280
128
41.371429
0.80024
0.05827
0
0.314554
0
0
0.121037
0.016971
0
0
0
0
0
1
0.061033
false
0.00939
0.065728
0
0.201878
0.046948
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
047ffe9066fea69b5d6a121fa7e090201689c5c8
2,659
py
Python
test/cli/init_command/location_files_case/test_location_files.py
openeuler-mirror/pkgship
5aaa4953023fde8ff03892fe5608f0711a26a942
[ "MulanPSL-1.0" ]
null
null
null
test/cli/init_command/location_files_case/test_location_files.py
openeuler-mirror/pkgship
5aaa4953023fde8ff03892fe5608f0711a26a942
[ "MulanPSL-1.0" ]
null
null
null
test/cli/init_command/location_files_case/test_location_files.py
openeuler-mirror/pkgship
5aaa4953023fde8ff03892fe5608f0711a26a942
[ "MulanPSL-1.0" ]
1
2021-11-20T00:10:53.000Z
2021-11-20T00:10:53.000Z
#!/usr/bin/python3 # ****************************************************************************** # Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved. # licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # You may obtain a c...
39.686567
98
0.616773
332
2,659
4.686747
0.391566
0.042416
0.044987
0.044987
0.382391
0.298201
0.219794
0.219794
0.179949
0.105398
0
0.008142
0.214742
2,659
66
99
40.287879
0.737069
0.303498
0
0.210526
0
0
0.126957
0.034676
0
0
0
0
0.052632
1
0.131579
false
0
0.105263
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04802ec7cded7ac0ac872783dbfebaa1d973ca5f
2,667
py
Python
apt/transports/filesytem.py
javajawa/debian-repo-remux
b6626b268acd1743208d8a399f8c975316cfbc80
[ "BSD-2-Clause" ]
1
2019-10-31T08:36:29.000Z
2019-10-31T08:36:29.000Z
apt/transports/filesytem.py
javajawa/debian-repo-remux
b6626b268acd1743208d8a399f8c975316cfbc80
[ "BSD-2-Clause" ]
null
null
null
apt/transports/filesytem.py
javajawa/debian-repo-remux
b6626b268acd1743208d8a399f8c975316cfbc80
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ APT transport for a local OS accessible filesystem """ import os.path import urllib.parse from typing import IO from apt.transport import Transport from apt.transport.exceptions import URIMismatchError from apt.transport.directorylisting import DirectoryListing cl...
24.694444
66
0.594301
305
2,667
5.177049
0.272131
0.062698
0.025332
0.063331
0.528816
0.516783
0.516783
0.516783
0.462318
0.462318
0
0.001075
0.302587
2,667
107
67
24.925234
0.847849
0.229096
0
0.410256
0
0
0.071116
0
0
0
0
0
0
1
0.102564
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
048379e73ffaf235bc1f161c9acc29e96bf1085e
3,845
py
Python
code/.ipynb_checkpoints/main-checkpoint.py
Bcastet/DeepReconstruction
0a91eeda4c34350bee6ebafdfc0528060b8142fc
[ "MIT" ]
8
2019-08-08T16:45:45.000Z
2021-12-09T07:00:52.000Z
code/.ipynb_checkpoints/main-checkpoint.py
Bcastet/DeepReconstruction
0a91eeda4c34350bee6ebafdfc0528060b8142fc
[ "MIT" ]
null
null
null
code/.ipynb_checkpoints/main-checkpoint.py
Bcastet/DeepReconstruction
0a91eeda4c34350bee6ebafdfc0528060b8142fc
[ "MIT" ]
4
2020-05-20T02:08:37.000Z
2021-12-01T08:47:05.000Z
# -*- coding: utf-8 -*- """ Created on Wed Jul 17 10:12:12 2019 @author: Phan Huy Thong """ import os, sys sys.path.append(os.getcwd()) import argparse from system import System from config import Config as cfg import utils import torch if __name__ == '__main__': #read argument parser = argparse.ArgumentPar...
36.971154
115
0.527698
517
3,845
3.806576
0.257253
0.025407
0.014228
0.017785
0.502541
0.489329
0.473069
0.473069
0.448679
0.428354
0
0.029231
0.323797
3,845
104
116
36.971154
0.727692
0.039012
0
0.407407
0
0
0.11163
0
0
0
0
0
0
1
0.049383
false
0
0.074074
0.049383
0.17284
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
0487bb220d4008a76d9487e6275983871d38df44
2,800
py
Python
movielens_data.py
CLArg-group/Aspect-Item-Recommender-Systems
6fe98657cb17bcb8f4eb4606bdea7446909f4a71
[ "Apache-2.0" ]
1
2021-02-09T21:40:08.000Z
2021-02-09T21:40:08.000Z
movielens_data.py
CLArg-group/Aspect-Item-Recommender-Systems
6fe98657cb17bcb8f4eb4606bdea7446909f4a71
[ "Apache-2.0" ]
null
null
null
movielens_data.py
CLArg-group/Aspect-Item-Recommender-Systems
6fe98657cb17bcb8f4eb4606bdea7446909f4a71
[ "Apache-2.0" ]
1
2021-02-09T21:40:55.000Z
2021-02-09T21:40:55.000Z
''' script to get predictions for movielens data ''' from measures import predictions from processing import preprocessing import time import pickle import argparse if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('--movielens_data', choices=['small', '100k'], required=True...
37.333333
250
0.675714
375
2,800
4.778667
0.296
0.058036
0.03125
0.040179
0.233259
0.233259
0.233259
0.225446
0.203125
0.090402
0
0.01566
0.201786
2,800
74
251
37.837838
0.78613
0.052857
0
0.037736
0
0
0.185087
0.08327
0
0
0
0
0.018868
1
0
false
0
0.09434
0
0.09434
0.150943
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0487ce7010d92a962a3a7ae8eef685aa4dc87679
11,608
py
Python
src/main/python/widgets/syntax_highlighters/nasm_highlighter.py
michaelbradley91/NASM-Debugger
c7b5593cfa2583c48c6607ee6e7d608c486bce0a
[ "MIT" ]
null
null
null
src/main/python/widgets/syntax_highlighters/nasm_highlighter.py
michaelbradley91/NASM-Debugger
c7b5593cfa2583c48c6607ee6e7d608c486bce0a
[ "MIT" ]
null
null
null
src/main/python/widgets/syntax_highlighters/nasm_highlighter.py
michaelbradley91/NASM-Debugger
c7b5593cfa2583c48c6607ee6e7d608c486bce0a
[ "MIT" ]
null
null
null
from PyQt5.QtCore import QRegularExpression, Qt, QRegularExpressionMatchIterator, QRegularExpressionMatch, QRegExp from PyQt5.QtGui import QSyntaxHighlighter, QTextDocument, QTextCharFormat, QFont, QColor from widgets.syntax_highlighters.highlighting_rule import HighlightingRule # noinspection SpellCheckingInspection...
67.098266
120
0.504221
1,116
11,608
5.165771
0.603943
0.027754
0.036427
0.041631
0.125585
0.087771
0.067997
0
0
0
0
0.013193
0.249052
11,608
172
121
67.488372
0.648159
0.031702
0
0.014493
0
0
0.325712
0.006609
0
0
0
0
0
1
0.014493
false
0
0.021739
0
0.043478
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
048a2c388530b970ba835f4824f7f77e7ebda823
1,964
py
Python
Intuitive.py
Sundragon1993/Smart-real-estate-assistant
3e901e86e1009bf464a44f870f3ee911217a9916
[ "MIT" ]
null
null
null
Intuitive.py
Sundragon1993/Smart-real-estate-assistant
3e901e86e1009bf464a44f870f3ee911217a9916
[ "MIT" ]
null
null
null
Intuitive.py
Sundragon1993/Smart-real-estate-assistant
3e901e86e1009bf464a44f870f3ee911217a9916
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.model_selection import train_test_split import matplotlib.pyplot as plt from keras.models import Sequential from keras.layers import Dense from sklearn import preprocessing from keras.layers import Dropout from keras import regularizers df = pd.read_csv('housepricedata.csv') print(df) ...
29.757576
96
0.721996
304
1,964
4.470395
0.279605
0.014717
0.106696
0.114054
0.348786
0.272995
0.247976
0.247976
0.19794
0.19794
0
0.036109
0.125764
1,964
65
97
30.215385
0.755387
0
0
0.207547
0
0
0.090631
0
0
0
0
0
0
1
0
false
0
0.150943
0
0.150943
0.113208
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
048ae9bb8b1e3a03ae719af21c92a5fb4cfdf9ae
7,934
py
Python
arxiv_miner/mining_engine.py
valayDave/arxiv-miner
47751ac731e797d9a0e49959d11c07857e747aee
[ "MIT" ]
95
2021-05-28T23:07:13.000Z
2022-02-08T02:44:09.000Z
arxiv_miner/mining_engine.py
valayDave/arxiv-miner
47751ac731e797d9a0e49959d11c07857e747aee
[ "MIT" ]
7
2021-05-30T01:46:49.000Z
2021-07-15T23:18:54.000Z
arxiv_miner/mining_engine.py
valayDave/arxiv-miner
47751ac731e797d9a0e49959d11c07857e747aee
[ "MIT" ]
6
2021-05-29T09:58:34.000Z
2021-06-10T10:32:27.000Z
""" Scraping Engine creates the Identiy Data for the papers. The Mining Engine on Instantiation - Will check For the New Papers to Mine. - It will Create a ArxivPaper --> Download Latex --> Parse Latex --> Sematically Parse the Paper here too. ...
37.961722
136
0.612806
947
7,934
4.87434
0.223865
0.040511
0.025997
0.018414
0.168328
0.14753
0.100737
0.075823
0.063692
0.063692
0
0.005123
0.311066
7,934
209
137
37.961722
0.839371
0.159188
0
0.226027
0
0.006849
0.053413
0.00352
0
0
0
0
0
1
0.075342
false
0
0.082192
0
0.226027
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
048b183da7874e695331f6fac93ac63e58a5596b
3,190
py
Python
janus/janus/analysis/tree_pairs_analysis.py
josepablocam/janus-public
4713092b27d02386bdb408213d8edc0dc5859eec
[ "MIT" ]
null
null
null
janus/janus/analysis/tree_pairs_analysis.py
josepablocam/janus-public
4713092b27d02386bdb408213d8edc0dc5859eec
[ "MIT" ]
null
null
null
janus/janus/analysis/tree_pairs_analysis.py
josepablocam/janus-public
4713092b27d02386bdb408213d8edc0dc5859eec
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from argparse import ArgumentParser from collections import defaultdict import numpy as np import os import pickle import matplotlib matplotlib.use('pdf') matplotlib.rcParams['pdf.fonttype'] = 42 matplotlib.rcParams['ps.fonttype'] = 42 matplotlib.rcParams['font.size'] = 12 import matplotlib.pypl...
28.738739
79
0.638245
413
3,190
4.719128
0.37046
0.060031
0.02668
0.027707
0.098512
0.023602
0
0
0
0
0
0.005274
0.227273
3,190
110
80
29
0.785396
0.006583
0
0.021978
0
0
0.160354
0.019886
0
0
0
0
0
1
0.043956
false
0
0.120879
0
0.197802
0.021978
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
048b8a47b92597ba13d720ac05cab93a23005c88
5,807
py
Python
models/ConvLarge.py
iSarmad/MeanTeacher-SNTG-HybridNet
7ca9f8fc89a7be0524b2a0fb648678b9556f8843
[ "MIT" ]
24
2019-01-22T06:20:41.000Z
2022-03-26T07:51:40.000Z
models/ConvLarge.py
iSarmad/MeanTeacher-SNTG-HybridNet
7ca9f8fc89a7be0524b2a0fb648678b9556f8843
[ "MIT" ]
1
2021-04-12T06:27:43.000Z
2021-04-12T06:27:43.000Z
models/ConvLarge.py
iSarmad/MeanTeacher-SNTG-HybridNet
7ca9f8fc89a7be0524b2a0fb648678b9556f8843
[ "MIT" ]
12
2019-01-03T07:18:06.000Z
2021-12-09T18:24:27.000Z
import torch.nn as nn import torch.nn.functional as F import torch from torch.nn.init import kaiming_normal_ from torch.nn.utils import weight_norm from torch.autograd.variable import Variable import math __all__ = ['convlarge'] # noise function taken from blog : https://ferretj.github.io/ml/2018/01/22/temporal-ense...
37.464516
168
0.580851
841
5,807
3.919144
0.200951
0.042476
0.038228
0.060073
0.458131
0.359223
0.359223
0.359223
0.326456
0.290049
0
0.075552
0.275185
5,807
154
169
37.707792
0.707531
0.165834
0
0.174312
0
0
0.005206
0
0
0
0
0.006494
0
1
0.045872
false
0
0.06422
0
0.165138
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
048b9de36f4ed588142ded1ea107dfbc36e23fb6
932
py
Python
track/urls.py
IJaccojwang/loop
c534051ac0a0744638624376c814e22dd62fbd08
[ "MIT" ]
null
null
null
track/urls.py
IJaccojwang/loop
c534051ac0a0744638624376c814e22dd62fbd08
[ "MIT" ]
4
2021-03-19T01:02:03.000Z
2021-09-08T01:01:45.000Z
track/urls.py
IJaccojwang/loop
c534051ac0a0744638624376c814e22dd62fbd08
[ "MIT" ]
null
null
null
from django.conf.urls.static import static from django.conf.urls import url from django.conf import settings from . import views urlpatterns=[ url('^$', views.index, name = 'index'), url(r'^profile$',views.profile,name='profile'), url(r'^profile/edit$',views.edit_profile,name='edit'), url(r'^profile/up...
44.380952
81
0.716738
123
932
5.333333
0.252033
0.060976
0.064024
0.054878
0
0
0
0
0
0
0
0
0.104077
932
21
81
44.380952
0.785629
0
0
0
0
0
0.261522
0
0
0
0
0
0
1
0
false
0
0.210526
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
048f525023727acec650d30bcde2c29bc495c599
2,401
py
Python
tests/presentation/test_create_presentation.py
abitoun-42/atpbar
fe5e4c24621b4707c5253be8ab2b5ae48f4801e3
[ "BSD-3-Clause" ]
72
2019-02-24T15:49:57.000Z
2022-03-27T19:38:38.000Z
tests/presentation/test_create_presentation.py
abitoun-42/atpbar
fe5e4c24621b4707c5253be8ab2b5ae48f4801e3
[ "BSD-3-Clause" ]
24
2019-02-18T12:39:04.000Z
2022-01-19T02:14:56.000Z
tests/presentation/test_create_presentation.py
abitoun-42/atpbar
fe5e4c24621b4707c5253be8ab2b5ae48f4801e3
[ "BSD-3-Clause" ]
10
2019-04-19T15:39:32.000Z
2022-01-08T16:57:42.000Z
# Tai Sakuma <tai.sakuma@gmail.com> import os import sys import pytest import unittest.mock as mock has_jupyter_notebook = False try: import ipywidgets as widgets from IPython.display import display has_jupyter_notebook = True except ImportError: pass from atpbar.presentation.create import create_pr...
30.392405
82
0.742191
234
2,401
5.884615
0.282051
0.108932
0.08642
0.061002
0.309368
0.16703
0.092956
0.092956
0.092956
0
0
0
0.167014
2,401
78
83
30.782051
0.6885
0.155352
0
0.311475
0
0
0.128472
0.063492
0
0
0
0
0.065574
1
0.065574
false
0.016393
0.131148
0
0.245902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
048fe32428b42c9f1df5738539aa6f0a4f71bad4
4,652
py
Python
GridTrader_with_db.py
wcen/Leveraged-grid-trading-bot
a6920b9c0d6aecaa6e28c6e12d760b75e5d9bff2
[ "MIT" ]
6
2021-11-20T21:47:42.000Z
2022-03-31T05:38:27.000Z
GridTrader_with_db.py
webclinic017/Leveraged-grid-trading-bot
a698bb5bea0fed00c28dce023afa751c4f82e869
[ "MIT" ]
null
null
null
GridTrader_with_db.py
webclinic017/Leveraged-grid-trading-bot
a698bb5bea0fed00c28dce023afa751c4f82e869
[ "MIT" ]
5
2021-10-11T20:25:38.000Z
2022-03-04T15:02:17.000Z
import sys import time import datetime import asyncio import pytz from GridTrader import GridTrader from db_connector import db_connector class GridTrader_with_db(GridTrader): def __init__(self, file='setting.json'): super().__init__(file=file) info=GridTrader.read_setting(file=file) sel...
41.90991
200
0.557395
635
4,652
3.981102
0.218898
0.041535
0.042722
0.031646
0.24288
0.215585
0.160997
0.102848
0.030063
0.030063
0
0.034788
0.246131
4,652
110
201
42.290909
0.686056
0
0
0.089888
0
0.089888
0.234308
0.120163
0
0
0
0
0
1
0.044944
false
0.011236
0.078652
0
0.146067
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04906bc044f904359850b223172cd50440da19f9
1,218
py
Python
pstests/settings/launch_scheduler.py
sj1104/Het
81b7e9f0f593108db969fc46a1af3df74b825230
[ "Apache-2.0" ]
2
2021-12-05T07:11:04.000Z
2021-12-15T07:53:48.000Z
pstests/settings/launch_scheduler.py
sj1104/Het
81b7e9f0f593108db969fc46a1af3df74b825230
[ "Apache-2.0" ]
null
null
null
pstests/settings/launch_scheduler.py
sj1104/Het
81b7e9f0f593108db969fc46a1af3df74b825230
[ "Apache-2.0" ]
3
2021-04-01T22:39:13.000Z
2021-04-21T11:51:57.000Z
from athena import gpu_ops as ad import os import sys import yaml import json import multiprocessing import signal def main(): def start_scheduler(settings): for key, value in settings.items(): os.environ[key] = str(value) assert os.environ['DMLC_ROLE'] == "scheduler" print('S...
26.478261
80
0.611658
145
1,218
5
0.468966
0.044138
0.022069
0.055172
0
0
0
0
0
0
0
0.004449
0.261905
1,218
45
81
27.066667
0.802002
0
0
0.052632
0
0
0.128079
0.020525
0
0
0
0
0.052632
1
0.078947
false
0
0.184211
0
0.263158
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0491276565adb67c9144a9e141d865fe9de613d1
10,959
py
Python
featureio/parsers.py
nijibabulu/featureio
23c439de645a654f1e548c4ff0df409ecd3a2935
[ "MIT" ]
null
null
null
featureio/parsers.py
nijibabulu/featureio
23c439de645a654f1e548c4ff0df409ecd3a2935
[ "MIT" ]
null
null
null
featureio/parsers.py
nijibabulu/featureio
23c439de645a654f1e548c4ff0df409ecd3a2935
[ "MIT" ]
null
null
null
#! /usr/bin/env python import functools from . import gene def BedIterator(handle, cls=gene.Gene): for n, line in enumerate(handle): if line.startswith('#'): continue if not len(line.strip()): continue fields = line.strip().split('\t') if len(fields) != 12:...
35.237942
94
0.521763
1,275
10,959
4.362353
0.19451
0.018698
0.018878
0.012226
0.196692
0.156778
0.123697
0.116864
0.078029
0.070478
0
0.010492
0.347751
10,959
310
95
35.351613
0.767627
0.037686
0
0.237668
0
0
0.053387
0.005486
0
0
0
0.003226
0
1
0.112108
false
0.008969
0.013453
0.008969
0.183857
0.022422
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04929055f4410ade9e4497312f0a6f059a8507e0
8,183
py
Python
fiber/config.py
agrimrules/fiber
e21e7dea019eae6259705b351f0e196f9eaa4835
[ "Apache-2.0" ]
1
2020-08-11T01:52:08.000Z
2020-08-11T01:52:08.000Z
fiber/config.py
agrimrules/fiber
e21e7dea019eae6259705b351f0e196f9eaa4835
[ "Apache-2.0" ]
null
null
null
fiber/config.py
agrimrules/fiber
e21e7dea019eae6259705b351f0e196f9eaa4835
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Uber Technologies, 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 ...
32.995968
246
0.638397
1,088
8,183
4.674632
0.27114
0.023791
0.011797
0.010224
0.044436
0.025167
0.013763
0.013763
0
0
0
0.004033
0.272761
8,183
247
247
33.129555
0.850613
0.546377
0
0.053191
0
0
0.076577
0
0
0
0
0
0
1
0.074468
false
0
0.031915
0.010638
0.180851
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0493ef8fc992e579828c78f162358b41a9e24ff1
14,188
py
Python
compartmental.py
burakbudanur/compartmental
9729aa2b7a7464c7a866828b72b3a09d95e0017a
[ "MIT" ]
null
null
null
compartmental.py
burakbudanur/compartmental
9729aa2b7a7464c7a866828b72b3a09d95e0017a
[ "MIT" ]
null
null
null
compartmental.py
burakbudanur/compartmental
9729aa2b7a7464c7a866828b72b3a09d95e0017a
[ "MIT" ]
null
null
null
import numpy as np import networkx as nx import sympy as sp import matplotlib.pyplot as plt import matplotlib as mpl from sys import exit from scipy.optimize import curve_fit from scipy.integrate import odeint class Model(nx.DiGraph): """ Base class for compartmental models. See also: --------- ...
31.740492
96
0.518889
1,487
14,188
4.801614
0.207801
0.064426
0.046218
0.061625
0.290056
0.187815
0.164706
0.137815
0.114006
0.088375
0
0.008401
0.379123
14,188
446
97
31.811659
0.802134
0.214688
0
0.18894
0
0
0.045778
0
0
0
0
0
0
1
0.059908
false
0
0.036866
0.013825
0.147465
0.013825
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0495634b91f43d0e7597e99e33589f764a60171d
13,207
py
Python
tpx3format/read.py
M4I-nanoscopy/tpx3HitParser
76147455a75effc1e799b6569c23320c5a4cf21a
[ "MIT" ]
9
2021-03-02T12:13:54.000Z
2022-03-23T15:36:09.000Z
tpx3format/read.py
M4I-nanoscopy/tpx3HitParser
76147455a75effc1e799b6569c23320c5a4cf21a
[ "MIT" ]
1
2020-10-08T10:45:15.000Z
2021-02-15T15:27:56.000Z
tpx3format/read.py
M4I-nanoscopy/tpx3HitParser
76147455a75effc1e799b6569c23320c5a4cf21a
[ "MIT" ]
1
2022-03-25T08:42:54.000Z
2022-03-25T08:42:54.000Z
import logging import struct import h5py import numpy as np from lib.constants import * import os # TODO: Logging does not work for multiprocessing processes on Windows logger = logging.getLogger('root') def read_positions(f): control_events = [] i = 0 rollover_counter = 0 approaching_rollover = Fa...
32.609877
132
0.602181
1,877
13,207
4.108684
0.20032
0.035399
0.008299
0.020228
0.314964
0.248703
0.220436
0.169476
0.10529
0.09777
0
0.047392
0.285833
13,207
404
133
32.690594
0.77025
0.185962
0
0.222689
0
0.004202
0.122802
0.002525
0
0
0.015432
0.002475
0
1
0.071429
false
0.004202
0.02521
0.008403
0.184874
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04959864b1c4805376ca408fc8be78c66f6a18b8
4,717
py
Python
pysen/ext/isort_wrapper.py
linshoK/pysen
2b84a15240c5a47cadd8e3fc8392c54c2995b0b1
[ "MIT" ]
423
2021-03-22T08:45:12.000Z
2022-03-31T21:05:53.000Z
pysen/ext/isort_wrapper.py
linshoK/pysen
2b84a15240c5a47cadd8e3fc8392c54c2995b0b1
[ "MIT" ]
1
2022-02-23T08:53:24.000Z
2022-03-23T14:11:54.000Z
pysen/ext/isort_wrapper.py
linshoK/pysen
2b84a15240c5a47cadd8e3fc8392c54c2995b0b1
[ "MIT" ]
9
2021-03-26T14:20:07.000Z
2022-03-24T13:17:06.000Z
import copy import dataclasses import enum import functools import pathlib from typing import Any, Dict, Iterable, List, Optional, Set, Tuple from pysen import process_utils from pysen.command import check_command_installed from pysen.dist_version import get_version from pysen.error_lines import parse_error_diffs from...
32.088435
89
0.682213
560
4,717
5.530357
0.328571
0.026154
0.03681
0.052309
0.080723
0.045851
0
0
0
0
0
0.006895
0.231291
4,717
146
90
32.308219
0.847215
0.104092
0
0.018018
0
0
0.081613
0.007592
0
0
0
0
0
1
0.063063
false
0
0.135135
0.009009
0.432432
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0498bc969c8391d24523c65b85a0eaca372772f0
1,816
py
Python
lib/cello_util/plasmid_map/plasmid_html.py
OGalOz/cello
1b62807e9881900daf8f3f59eafb11743ad84d6d
[ "MIT" ]
null
null
null
lib/cello_util/plasmid_map/plasmid_html.py
OGalOz/cello
1b62807e9881900daf8f3f59eafb11743ad84d6d
[ "MIT" ]
null
null
null
lib/cello_util/plasmid_map/plasmid_html.py
OGalOz/cello
1b62807e9881900daf8f3f59eafb11743ad84d6d
[ "MIT" ]
null
null
null
#python3 """ Takes template and inserts javascript into template html """ import json """ Inputs: plasmid_js: (str) filepath to file containing javascript string. out_fp: (str) filepath to where we'll write the file out. """ def html_prepare(plasmid_js_fp, template_html_fp, out_fp, config_fp): with open (...
25.577465
72
0.623899
275
1,816
3.778182
0.196364
0.057748
0.033686
0.080847
0.697786
0.688162
0.66795
0.66795
0.598653
0.598653
0
0.001441
0.235683
1,816
70
73
25.942857
0.747118
0.035242
0
0.555556
0
0
0.134299
0
0
0
0
0
0
1
0.055556
false
0
0.027778
0
0.138889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
049aa68e09eda0578871d1ae318ec877fd5826d7
1,985
py
Python
tests/test_cluster_01.py
wavestoweather/enstools
d0f612b0187b0ad54dfbbb78aa678564f46eaedf
[ "Apache-2.0" ]
5
2021-12-16T14:08:00.000Z
2022-03-02T14:08:10.000Z
tests/test_cluster_01.py
wavestoweather/enstools
d0f612b0187b0ad54dfbbb78aa678564f46eaedf
[ "Apache-2.0" ]
null
null
null
tests/test_cluster_01.py
wavestoweather/enstools
d0f612b0187b0ad54dfbbb78aa678564f46eaedf
[ "Apache-2.0" ]
null
null
null
import numpy from enstools.clustering import prepare from enstools.clustering import cluster from sklearn.cluster import KMeans variables = [] ens_members = 20 n_variables = 2 def setup(): """ create two variables for clustering """ for ivar in range(n_variables): var = numpy.random.randn(en...
28.357143
82
0.663476
267
1,985
4.827715
0.322097
0.069822
0.09775
0.05353
0.256788
0.235066
0.235066
0.211016
0.150504
0.071373
0
0.024167
0.228715
1,985
69
83
28.768116
0.817766
0.250378
0
0.142857
0
0
0.007746
0
0
0
0
0
0.2
1
0.114286
false
0
0.114286
0
0.228571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
049b4aaa6c9b6af5b5f7a084af5bbd63b6108f08
17,349
py
Python
magpylib/_src/display/display_matplotlib.py
OrtnerMichael/magPyLib
4c7e7f56f6e0b915ec0e024c172c460fa80126e5
[ "BSD-2-Clause" ]
null
null
null
magpylib/_src/display/display_matplotlib.py
OrtnerMichael/magPyLib
4c7e7f56f6e0b915ec0e024c172c460fa80126e5
[ "BSD-2-Clause" ]
null
null
null
magpylib/_src/display/display_matplotlib.py
OrtnerMichael/magPyLib
4c7e7f56f6e0b915ec0e024c172c460fa80126e5
[ "BSD-2-Clause" ]
null
null
null
""" matplotlib draw-functionalities""" import matplotlib.pyplot as plt import numpy as np from mpl_toolkits.mplot3d.art3d import Poly3DCollection from magpylib._src.defaults.defaults_classes import default_settings as Config from magpylib._src.display.display_utility import draw_arrow_from_vertices from magpylib._src....
34.837349
88
0.560551
2,056
17,349
4.565661
0.159047
0.01534
0.022371
0.02578
0.320017
0.278896
0.259188
0.198786
0.149249
0.118994
0
0.011916
0.322785
17,349
497
89
34.907445
0.787046
0.170212
0
0.236769
0
0
0.012375
0
0
0
0
0
0
1
0.030641
false
0
0.047354
0
0.097493
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
049c51b8f00635b7afe59969e4b68f6036acb2b1
3,493
py
Python
solum/builder/controllers/v1/image.py
ed-/solum
2d23edb7fb53e1bdeff510710824658575d166c4
[ "Apache-2.0" ]
null
null
null
solum/builder/controllers/v1/image.py
ed-/solum
2d23edb7fb53e1bdeff510710824658575d166c4
[ "Apache-2.0" ]
null
null
null
solum/builder/controllers/v1/image.py
ed-/solum
2d23edb7fb53e1bdeff510710824658575d166c4
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 - Rackspace Hosting # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
33.912621
75
0.665331
428
3,493
5.28271
0.399533
0.024768
0.018576
0.022556
0.175144
0.123839
0.104379
0.104379
0.104379
0.104379
0
0.033271
0.234183
3,493
102
76
34.245098
0.811963
0.206127
0
0.105263
0
0
0.116316
0.063914
0
0
0
0
0
1
0.087719
false
0
0.140351
0.017544
0.45614
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
049db6a644f9d8354d438e91d794bf040ae0bcbe
1,091
py
Python
pyAI-OpenMV4/3.机器学习/2.笑脸识别/nn_haar_smile_detection.py
01studio-lab/MicroPython_Examples
f06a1bee398674ceafebed2aac88d8413cc8abad
[ "MIT" ]
73
2020-05-02T13:48:27.000Z
2022-03-26T13:15:10.000Z
pyAI-OpenMV4/3.机器学习/2.笑脸识别/nn_haar_smile_detection.py
01studio-lab/MicroPython_Examples
f06a1bee398674ceafebed2aac88d8413cc8abad
[ "MIT" ]
null
null
null
pyAI-OpenMV4/3.机器学习/2.笑脸识别/nn_haar_smile_detection.py
01studio-lab/MicroPython_Examples
f06a1bee398674ceafebed2aac88d8413cc8abad
[ "MIT" ]
50
2020-05-15T13:57:28.000Z
2022-03-30T14:03:33.000Z
# 笑脸识别示例( Haar Cascade + CNN 模型). # #翻译和注释:01Studio import sensor, time, image, os, nn #设置摄像头 sensor.reset() # Reset and initialize the sensor. sensor.set_contrast(2) sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565 sensor.set_framesize(sensor.QVGA) # Set frame size ...
25.372093
91
0.64528
159
1,091
4.345912
0.553459
0.052098
0.014472
0.017366
0.023155
0
0
0
0
0
0
0.057803
0.207149
1,091
42
92
25.97619
0.74104
0.221815
0
0
0
0
0.034772
0
0
0
0
0
0
1
0
false
0
0.047619
0
0.047619
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
049f32d34a3c6febe0ef73ec987f383e72dcf188
1,170
py
Python
mapshader/__init__.py
lex-c/mapshader
321246b3011e36abe580d0beff4f07ec5ee38d95
[ "MIT" ]
null
null
null
mapshader/__init__.py
lex-c/mapshader
321246b3011e36abe580d0beff4f07ec5ee38d95
[ "MIT" ]
null
null
null
mapshader/__init__.py
lex-c/mapshader
321246b3011e36abe580d0beff4f07ec5ee38d95
[ "MIT" ]
null
null
null
import sys try: from ._version import __version__ except ImportError: __version__ = "Unknown" def test(): """Run the mapshader test suite.""" import os try: import pytest except ImportError: import sys sys.stderr.write("You need to install py.test to run tests.\n\n") ...
31.621622
109
0.529915
102
1,170
4.362745
0.480392
0.062921
0.116854
0.07191
0
0
0
0
0
0
0
0
0.286325
1,170
36
110
32.5
0.532934
0.024786
0
0.206897
0
0.172414
0.532159
0.118943
0
0
0
0
0
1
0.068966
false
0
0.241379
0
0.310345
0.137931
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
049f8780ded61cd749db86845928ea603541d12d
1,357
py
Python
server/apps/bot/dispatcher/callbacks/list_movies.py
LowerDeez/movies_finder
3763bfe4c0d1cfe36e081c45a9cc9cdaa85e0ee4
[ "MIT" ]
null
null
null
server/apps/bot/dispatcher/callbacks/list_movies.py
LowerDeez/movies_finder
3763bfe4c0d1cfe36e081c45a9cc9cdaa85e0ee4
[ "MIT" ]
null
null
null
server/apps/bot/dispatcher/callbacks/list_movies.py
LowerDeez/movies_finder
3763bfe4c0d1cfe36e081c45a9cc9cdaa85e0ee4
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING from apps.bot.dispatcher.consts import ( CONSTS, ACTION_CHOICES, STATE_CHOICES ) from apps.bot.dispatcher.services import ( get_current_page, render_movies, get_last_movie_keyboard ) from apps.bot.tmdb import TMDBWrapper if TYPE_CHECKING: from telegram impo...
23.807018
71
0.704495
165
1,357
5.509091
0.30303
0.110011
0.036304
0.072607
0.055006
0
0
0
0
0
0
0.001869
0.211496
1,357
56
72
24.232143
0.847664
0.011054
0
0
0
0
0.05597
0
0
0
0
0
0
1
0.02381
false
0
0.142857
0
0.190476
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
04a27c0d4d3c374f1212533d3cfbf7e2202872c1
1,704
py
Python
subt/test_subt.py
robotika/osgar
6f4f584d5553ab62c08a1c7bb493fefdc9033173
[ "MIT" ]
12
2017-02-16T10:22:59.000Z
2022-03-20T05:48:06.000Z
subt/test_subt.py
robotika/osgar
6f4f584d5553ab62c08a1c7bb493fefdc9033173
[ "MIT" ]
618
2016-08-30T04:46:12.000Z
2022-03-25T16:03:10.000Z
subt/test_subt.py
robotika/osgar
6f4f584d5553ab62c08a1c7bb493fefdc9033173
[ "MIT" ]
11
2016-08-27T20:02:55.000Z
2022-03-07T08:53:53.000Z
import unittest import logging import math from unittest.mock import MagicMock, call from osgar.bus import Bus from osgar.lib import quaternion from subt.main import SubTChallenge from subt.trace import distance3D from subt import simulation g_logger = logging.getLogger(__name__) def entrance_reached(sim): co...
29.894737
151
0.627934
237
1,704
4.396624
0.464135
0.033589
0.042226
0.017274
0.028791
0
0
0
0
0
0
0.015349
0.235329
1,704
56
152
30.428571
0.782809
0.066901
0
0
0
0
0.111672
0
0
0
0
0
0.02381
1
0.047619
false
0
0.238095
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04a51c3634fa37cb65a083a5e078715450463600
260
py
Python
registration/get_image.py
roguen/jive-derby
bc9e0f63e4298c3f1869288345d79e320fd20b65
[ "Apache-2.0" ]
null
null
null
registration/get_image.py
roguen/jive-derby
bc9e0f63e4298c3f1869288345d79e320fd20b65
[ "Apache-2.0" ]
null
null
null
registration/get_image.py
roguen/jive-derby
bc9e0f63e4298c3f1869288345d79e320fd20b65
[ "Apache-2.0" ]
null
null
null
from picamera import PiCamera import time def captureImage(): camera = PiCamera() camera.start_preview() camera.rotation = 90 time.sleep(1) camera.capture('static/images/test.jpg') camera.stop_preview() if __name__ == '__main__': captureImage()
17.333333
41
0.730769
32
260
5.625
0.6875
0.155556
0
0
0
0
0
0
0
0
0
0.013514
0.146154
260
14
42
18.571429
0.797297
0
0
0
0
0
0.115385
0.084615
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04a725fd777c3aa01c9d14a46b6d2bdbf741ca2a
4,012
py
Python
gpvdm_gui/gui/scan_tab_ribbon.py
roderickmackenzie/gpvdm
914fd2ee93e7202339853acaec1d61d59b789987
[ "BSD-3-Clause" ]
12
2016-09-13T08:58:13.000Z
2022-01-17T07:04:52.000Z
gpvdm_gui/gui/scan_tab_ribbon.py
roderickmackenzie/gpvdm
914fd2ee93e7202339853acaec1d61d59b789987
[ "BSD-3-Clause" ]
3
2017-11-11T12:33:02.000Z
2019-03-08T00:48:08.000Z
gpvdm_gui/gui/scan_tab_ribbon.py
roderickmackenzie/gpvdm
914fd2ee93e7202339853acaec1d61d59b789987
[ "BSD-3-Clause" ]
6
2019-01-03T06:17:12.000Z
2022-01-01T15:59:00.000Z
# -*- coding: utf-8 -*- # # General-purpose Photovoltaic Device Model - a drift diffusion base/Shockley-Read-Hall # model for 1st, 2nd and 3rd generation solar cells. # Copyright (C) 2008-2022 Roderick C. I. MacKenzie r.c.i.mackenzie at googlemail.com # # https://www.gpvdm.com # # This program is free ...
30.165414
166
0.738285
586
4,012
4.890785
0.366894
0.033496
0.039079
0.04187
0.150035
0.111654
0.06141
0.06141
0.030007
0
0
0.018721
0.134596
4,012
132
167
30.393939
0.80674
0.356431
0
0
0
0
0.06769
0
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.3
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
04a7d1ad3d2c4355c91792c04e9a6461198ad07a
2,855
py
Python
Components/text.py
amauri-bz/az_log_viewer
3d11bf94993e34ce1253266b9bcf64db4c4ba6c4
[ "MIT" ]
null
null
null
Components/text.py
amauri-bz/az_log_viewer
3d11bf94993e34ce1253266b9bcf64db4c4ba6c4
[ "MIT" ]
null
null
null
Components/text.py
amauri-bz/az_log_viewer
3d11bf94993e34ce1253266b9bcf64db4c4ba6c4
[ "MIT" ]
null
null
null
import re import tkinter as tk from tkinter import ttk from Components.db import Database from Components.pop_up_menu import PopUpMenu from Components.text_sync import TextSync from Components.custom_text import * class TextScrollCombo(tk.Frame): def __init__(self, root, tab): super().__init__(root, bg='...
33.588235
96
0.594396
370
2,855
4.467568
0.345946
0.101633
0.029038
0.020569
0.031458
0.031458
0
0
0
0
0
0.010057
0.268651
2,855
84
97
33.988095
0.781609
0.022767
0
0.030769
0
0
0.055974
0
0
0
0
0
0
1
0.092308
false
0
0.107692
0
0.215385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04a9860077d854d091c1198ef151308897080df1
1,913
py
Python
applications/plugins/Compliant/examples/chain.py
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
applications/plugins/Compliant/examples/chain.py
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
applications/plugins/Compliant/examples/chain.py
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
import Sofa from Compliant import StructuralAPI StructuralAPI.geometric_stiffness=2 def createScene(root): # root node setup root.createObject('RequiredPlugin', pluginName = 'Compliant') root.createObject('VisualStyle', displayFlags="showBehavior" ) root.createObject('CompliantAttachButtonSettin...
35.425926
150
0.651856
229
1,913
5.414847
0.393013
0.017742
0.014516
0.029032
0.194355
0.16129
0.120968
0.120968
0.120968
0.095161
0
0.04405
0.204914
1,913
53
151
36.09434
0.771203
0.170413
0
0
0
0
0.135324
0.032402
0
0
0
0
0
1
0.037037
false
0
0.074074
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04a9cf8fa788b8c75de2f502190ad9f5825f1285
5,636
py
Python
cwe_sfp_to_threatspec.py
threatspec/pythreatspec
77c0c7d3052adaeb91ea28ae61e60538c6d3fa9b
[ "MIT" ]
10
2018-01-14T22:53:29.000Z
2019-05-22T08:26:56.000Z
cwe_sfp_to_threatspec.py
threatspec/pythreatspec
77c0c7d3052adaeb91ea28ae61e60538c6d3fa9b
[ "MIT" ]
1
2019-02-17T23:39:19.000Z
2019-02-17T23:39:19.000Z
cwe_sfp_to_threatspec.py
threatspec/pythreatspec
77c0c7d3052adaeb91ea28ae61e60538c6d3fa9b
[ "MIT" ]
4
2018-03-03T03:16:37.000Z
2019-02-17T03:09:33.000Z
#!/usr/bin/env python import re import sys import xmltodict import json import time import collections from pprint import pprint def create_id(obj): identifier = obj["@ID"] name = obj["@Name"] name = re.sub(r'[^a-zA-Z0-9_ \-]', "", name) name = re.sub(r'[ \-]', "_", name) name = name.lower() ...
32.767442
238
0.617814
611
5,636
5.513912
0.199673
0.044524
0.014248
0.011873
0.280499
0.231226
0.217275
0.162066
0.11873
0.074206
0
0.004631
0.233676
5,636
171
239
32.959064
0.775411
0.009936
0
0.189781
0
0
0.24081
0.034069
0
0
0
0
0
1
0.043796
false
0
0.051095
0.007299
0.160584
0.029197
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04ad585a9a2b68ae8175682dbfc62c2645117883
300
py
Python
baseline/crosswalk.py
wko/clinical-trial-criteria-translation
1478c5bab3511c7a92313a488510641d161deeff
[ "Apache-2.0" ]
null
null
null
baseline/crosswalk.py
wko/clinical-trial-criteria-translation
1478c5bab3511c7a92313a488510641d161deeff
[ "Apache-2.0" ]
null
null
null
baseline/crosswalk.py
wko/clinical-trial-criteria-translation
1478c5bab3511c7a92313a488510641d161deeff
[ "Apache-2.0" ]
null
null
null
import requests import os # translate CUIs into SNOMED Ids def crosswalk(cui): headers = {'Accept': 'application/xml'} data = {"data": cui} mapping = requests.post(f"{os.environ['METAMAP_WEB_URL']}crosswalk", data = data) print(mapping.text) return mapping.text.splitlines()
27.272727
85
0.683333
38
300
5.342105
0.710526
0.078818
0
0
0
0
0
0
0
0
0
0
0.18
300
10
86
30
0.825203
0.1
0
0
0
0
0.242537
0.149254
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04ae09bb61ba231f35c7bc90f21c1f434a2f9b74
4,469
py
Python
DAO.py
arturj9/sistema-mercearia-python
000c7e887350768483d7a7a6058f2a5d0dcaa83d
[ "MIT" ]
null
null
null
DAO.py
arturj9/sistema-mercearia-python
000c7e887350768483d7a7a6058f2a5d0dcaa83d
[ "MIT" ]
null
null
null
DAO.py
arturj9/sistema-mercearia-python
000c7e887350768483d7a7a6058f2a5d0dcaa83d
[ "MIT" ]
null
null
null
from Models import * class DaoCategoria: @classmethod def salvar(cls, categoria): with open('arquivos-txt/categoria.txt', 'a') as arq: arq.writelines(categoria) arq.writelines('\n') @classmethod def ler(cls): with open('arquivos-txt/categoria.txt', 'r') as arq: ...
42.160377
85
0.55829
532
4,469
4.68985
0.146617
0.067335
0.076954
0.091383
0.492585
0.470942
0.322645
0.220441
0.154709
0.154709
0
0.008032
0.275677
4,469
106
86
42.160377
0.762743
0
0
0.226415
0
0
0.083221
0.069351
0
0
0
0
0
1
0.113208
false
0
0.009434
0
0.235849
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04ae9a2e77bc4446dfbf168a4becf211916997ba
1,221
py
Python
invenio_previewer/extensions/gis.py
nyudlts/invenio-previewer
89da1108a8ed8c38e98bebc470d33e0447bea277
[ "MIT" ]
null
null
null
invenio_previewer/extensions/gis.py
nyudlts/invenio-previewer
89da1108a8ed8c38e98bebc470d33e0447bea277
[ "MIT" ]
null
null
null
invenio_previewer/extensions/gis.py
nyudlts/invenio-previewer
89da1108a8ed8c38e98bebc470d33e0447bea277
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """GIS data previewer""" from __future__ import absolute_import, print_function from flask import render_template from ..proxies import current_previewer import zipfile import cchardet as chardet from six import binary_type previewable_extensions = ['zip'] def can_preview(file): """Chec...
30.525
78
0.638002
153
1,221
4.934641
0.490196
0.063576
0.029139
0
0
0
0
0
0
0
0
0.004306
0.239148
1,221
39
79
31.307692
0.808396
0.126126
0
0.074074
0
0
0.082936
0.024786
0
0
0
0
0
1
0.074074
false
0
0.222222
0
0.37037
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
04b24242aa80e1798826b605b90f49e757941f2e
4,153
py
Python
code/entity2facts.py
Program-Bear/WalkingNetwork
b19ab91ba85e08992bf6afa865655deeaa19c509
[ "BSD-3-Clause" ]
null
null
null
code/entity2facts.py
Program-Bear/WalkingNetwork
b19ab91ba85e08992bf6afa865655deeaa19c509
[ "BSD-3-Clause" ]
null
null
null
code/entity2facts.py
Program-Bear/WalkingNetwork
b19ab91ba85e08992bf6afa865655deeaa19c509
[ "BSD-3-Clause" ]
3
2018-04-13T05:50:09.000Z
2019-01-05T06:55:53.000Z
import numpy as np import json from tqdm import tqdm def process(temp): temp = temp.split('(')[1] temp = temp.split(')')[0] _id = temp.split(',')[0] _start = temp.split(',')[1] _len = temp.split(',')[2] # print(_id) return int(_id),int(_start),int(_len) def genDict(): dic = {} file_o...
31.462121
102
0.596196
566
4,153
4.176678
0.194346
0.079103
0.023689
0.028765
0.230118
0.14044
0.14044
0.14044
0.14044
0.14044
0
0.029793
0.256441
4,153
131
103
31.70229
0.735751
0.147604
0
0.065217
0
0
0.088352
0.029545
0
0
0
0
0
1
0.086957
false
0
0.032609
0
0.195652
0.054348
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04b54af5409bd211bebf59e0e6f1b320669915e5
4,533
py
Python
EyePatterns/prepare_data/format_data.py
Sale1996/Pattern-detection-of-eye-tracking-scanpaths
15c832f26dce98bb95445f9f39f454f99bbb6029
[ "MIT" ]
1
2021-12-07T08:02:30.000Z
2021-12-07T08:02:30.000Z
EyePatterns/prepare_data/format_data.py
Sale1996/Pattern-detection-of-eye-tracking-scanpaths
15c832f26dce98bb95445f9f39f454f99bbb6029
[ "MIT" ]
null
null
null
EyePatterns/prepare_data/format_data.py
Sale1996/Pattern-detection-of-eye-tracking-scanpaths
15c832f26dce98bb95445f9f39f454f99bbb6029
[ "MIT" ]
null
null
null
import os import numpy as np # collecting all csv files from forwarded directory def collect_csv_data_collection_from_directory(path): import pandas as pd import os data_collection = [] for csv_name in os.listdir(path): csv_path = os.path.join(path, csv_name) data_collection.append(p...
35.139535
118
0.698875
632
4,533
4.705696
0.197785
0.075319
0.033289
0.060525
0.408204
0.346671
0.284802
0.246469
0.190989
0.167451
0
0.011432
0.228105
4,533
128
119
35.414063
0.838525
0.206927
0
0.345238
0
0
0.017049
0.007267
0
0
0
0
0
1
0.071429
false
0
0.166667
0
0.297619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04b5bdc0bd251cb1ebbbc0b150a7e991848278cf
6,432
py
Python
workon/utils/cache.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
1
2018-01-19T16:08:54.000Z
2018-01-19T16:08:54.000Z
workon/utils/cache.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
1
2020-07-06T08:35:18.000Z
2020-07-06T08:35:18.000Z
workon/utils/cache.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
4
2020-04-08T06:14:46.000Z
2020-12-11T14:28:06.000Z
from time import time import threading from functools import partial from django.utils.functional import cached_property from django.core.cache import cache try: import asyncio except (ImportError, SyntaxError): asyncio = None __all__ = [ "cached_property", "cached_property_with_ttl", "memoize",...
29.504587
96
0.632929
796
6,432
4.741206
0.226131
0.09274
0.057234
0.066773
0.360625
0.263646
0.233439
0.175941
0.175941
0.160042
0
0.005877
0.285759
6,432
218
97
29.504587
0.815629
0.367693
0
0.33913
0
0
0.021118
0.006181
0
0
0
0
0
1
0.156522
false
0.017391
0.06087
0.008696
0.408696
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04b6a85ac9932e9cbfd03042b0f9d5385ad450ca
22,179
py
Python
src/roto/roto.py
joshbriegal/roto
58694285932e101286e407bc521b2fa80e4eed47
[ "MIT" ]
null
null
null
src/roto/roto.py
joshbriegal/roto
58694285932e101286e407bc521b2fa80e4eed47
[ "MIT" ]
3
2021-09-15T10:08:47.000Z
2021-09-16T17:15:55.000Z
src/roto/roto.py
joshbriegal/roto
58694285932e101286e407bc521b2fa80e4eed47
[ "MIT" ]
null
null
null
import logging from itertools import cycle from typing import Dict, List, Optional, Tuple, Union import matplotlib.cm as cm import matplotlib.pyplot as plt import numpy as np import pandas as pd from matplotlib.axes import Axes from matplotlib.figure import Figure from matplotlib.ticker import ScalarFormatter from sci...
34.927559
152
0.550881
2,425
22,179
4.865567
0.148041
0.016273
0.016018
0.013645
0.368421
0.313925
0.257988
0.235528
0.187982
0.158742
0
0.007081
0.356914
22,179
634
153
34.98265
0.820094
0.142026
0
0.252654
0
0.008493
0.079682
0.002971
0
0
0
0
0
1
0.027601
false
0
0.036093
0.002123
0.101911
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04b810df629398a8386d9f310c6d63fef1c5faa9
2,638
py
Python
testPrintProfile2.py
dmsteck/paper-regularized-qn-benchmark
b07ed54ca50af4bf2cf45952c103f3f80b62f5e2
[ "MIT" ]
null
null
null
testPrintProfile2.py
dmsteck/paper-regularized-qn-benchmark
b07ed54ca50af4bf2cf45952c103f3f80b62f5e2
[ "MIT" ]
null
null
null
testPrintProfile2.py
dmsteck/paper-regularized-qn-benchmark
b07ed54ca50af4bf2cf45952c103f3f80b62f5e2
[ "MIT" ]
1
2019-12-05T11:55:16.000Z
2019-12-05T11:55:16.000Z
""" ... """ import numpy as np import matplotlib.pyplot as plt from utility import parameters from utility import perfprof algorithms = ['regLBFGS', 'armijoLBFGS', 'wolfeLBFGS'] # Read all the data in the ugliest fashion possible nfM = np.array([np.loadtxt(f"results/{a}_solve.csv", delimiter=',')[:, 0] for a in alg...
46.280702
123
0.690675
397
2,638
4.534005
0.241814
0.045
0.04
0.071111
0.613889
0.592778
0.592778
0.5
0.482222
0.443333
0
0.022148
0.092873
2,638
56
124
47.107143
0.730046
0.059515
0
0.108108
0
0
0.221952
0.104091
0
0
0
0
0
1
0
false
0
0.108108
0
0.108108
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04b93f24806cca8ae65455322559cca6b35b9e43
5,315
py
Python
src/train_eval.py
1amG4bor/mlflow-for-model-improvement
9ec653a8d20b353b1d049dd509cd1b680b6152b1
[ "MIT" ]
1
2021-11-27T23:05:36.000Z
2021-11-27T23:05:36.000Z
src/train_eval.py
1amG4bor/mlflow-for-model-improvement
9ec653a8d20b353b1d049dd509cd1b680b6152b1
[ "MIT" ]
null
null
null
src/train_eval.py
1amG4bor/mlflow-for-model-improvement
9ec653a8d20b353b1d049dd509cd1b680b6152b1
[ "MIT" ]
null
null
null
"""Train and evaluate Tool The script utilizes the 2 main inputs which are the config.yml and the CLI params. With the combination of these configuration 2 running branches are possible: - Training workflow: - Load the dataset - Create a model with the provided configuration - Train then save the model ...
41.850394
118
0.665663
690
5,315
4.908696
0.284058
0.031887
0.012991
0.012991
0.082079
0.082079
0.065545
0.065545
0.065545
0.032477
0
0.003692
0.23556
5,315
126
119
42.18254
0.829929
0.253246
0
0.028169
0
0.014085
0.198106
0.017917
0
0
0
0
0
1
0.028169
false
0
0.084507
0
0.140845
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04b9c4193420eabe9013aae3e035a41bbd7078ad
5,959
py
Python
model_tools/brain_transformation/neural.py
franzigeiger/model-tools-1
124e1ee688161d1e671dad33c0ebefd001d78ef6
[ "MIT" ]
null
null
null
model_tools/brain_transformation/neural.py
franzigeiger/model-tools-1
124e1ee688161d1e671dad33c0ebefd001d78ef6
[ "MIT" ]
null
null
null
model_tools/brain_transformation/neural.py
franzigeiger/model-tools-1
124e1ee688161d1e671dad33c0ebefd001d78ef6
[ "MIT" ]
null
null
null
import logging from collections import Iterable from typing import Optional, Union from tqdm import tqdm from brainscore.metrics import Score from brainscore.model_interface import BrainModel from brainscore.utils import fullname from model_tools.activations.pca import LayerPCA from model_tools.brain_transformation i...
48.056452
120
0.681322
654
5,959
5.954128
0.235474
0.084746
0.039034
0.034669
0.248074
0.172573
0.130971
0.025167
0.025167
0
0
0.003059
0.232086
5,959
123
121
48.447154
0.847902
0.062091
0
0.0625
0
0.010417
0.079236
0.032955
0
0
0
0
0.010417
1
0.114583
false
0.010417
0.104167
0.010417
0.302083
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04bab0fcc8f0c4e3268cebb2cb3c07963e8a3db4
920
py
Python
test/test_extension/test_analytics.py
maximest-pierre/WebCore
543bfb79c0737917d1bd2a148eb61761ab6f6319
[ "MIT" ]
56
2015-05-13T16:08:06.000Z
2021-12-26T22:24:46.000Z
test/test_extension/test_analytics.py
maximest-pierre/WebCore
543bfb79c0737917d1bd2a148eb61761ab6f6319
[ "MIT" ]
104
2015-01-20T23:55:28.000Z
2021-03-01T03:29:47.000Z
test/test_extension/test_analytics.py
maximest-pierre/WebCore
543bfb79c0737917d1bd2a148eb61761ab6f6319
[ "MIT" ]
12
2015-05-22T15:46:39.000Z
2021-09-16T00:38:54.000Z
# encoding: utf-8 import time import pytest from webob import Request from web.core import Application from web.core.context import Context from web.ext.analytics import AnalyticsExtension def endpoint(context): time.sleep(0.1) return "Hi." sample = Application(endpoint, extensions=[AnalyticsExtension()]) def...
20.909091
70
0.746739
123
920
5.463415
0.439024
0.03125
0.032738
0.032738
0.139881
0
0
0
0
0
0
0.021066
0.122826
920
43
71
21.395349
0.811648
0.016304
0
0.074074
0
0
0.124169
0
0
0
0
0
0.148148
1
0.111111
false
0
0.296296
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
04c05fe0493b6c15658cd872dfc53737c5f84819
737
py
Python
pymongolab/__init__.py
puentesarrin/pymongolab
159a46c6cf88313c11522503d9243e2e16d3d72c
[ "Apache-2.0" ]
2
2015-04-09T08:17:03.000Z
2016-05-17T23:42:36.000Z
pymongolab/__init__.py
puentesarrin/pymongolab
159a46c6cf88313c11522503d9243e2e16d3d72c
[ "Apache-2.0" ]
1
2015-02-12T17:25:17.000Z
2015-02-12T17:53:09.000Z
pymongolab/__init__.py
puentesarrin/pymongolab
159a46c6cf88313c11522503d9243e2e16d3d72c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 *-* """PyMongo_-flavored package for accessing to MongoLab databases via `MongoLabClient`. .. _PyMongo: http://api.mongodb.org/python/current/""" ASCENDING = 1 """Ascending sort order.""" DESCENDING = -1 """Descending sort order.""" OFF = 0 """No database profiling.""" SLOW_ONLY = 1 """Only pro...
21.057143
73
0.694708
92
737
5.423913
0.586957
0.12024
0.104208
0.064128
0.112224
0.112224
0
0
0
0
0
0.017405
0.142469
737
34
74
21.676471
0.772152
0.215739
0
0
0
0
0.007059
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04c092098ea8bed63aafcff967ba75911ecb4e0e
2,065
py
Python
Week 03/exercise05.py
JessicaHamilton/PHYS-3210
997fb9fbc43852ed32badaca68bed39bef2a1b0b
[ "MIT" ]
null
null
null
Week 03/exercise05.py
JessicaHamilton/PHYS-3210
997fb9fbc43852ed32badaca68bed39bef2a1b0b
[ "MIT" ]
null
null
null
Week 03/exercise05.py
JessicaHamilton/PHYS-3210
997fb9fbc43852ed32badaca68bed39bef2a1b0b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Sep 4 10:03:35 2019 @author: hamil """ import numpy as np import matplotlib.pyplot as plt def up_harmonic(value_n): H_up = 0.0 summ_array1 = [] new_x = value_n + 1 x_array1 = np.arange(1,new_x) for each_value in x_array1: numm1 = 1/each_value ...
27.905405
112
0.684746
355
2,065
3.794366
0.295775
0.022272
0.020045
0.022272
0.059391
0.017817
0
0
0
0
0
0.039604
0.217433
2,065
74
113
27.905405
0.793936
0.426634
0
0.051282
0
0
0.02584
0
0
0
0
0
0
1
0.051282
false
0
0.051282
0
0.153846
0.051282
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04c0b65e42c25329491e1c4286e88a08b669efe7
2,458
py
Python
src/cliptools/modules/data_loader.py
bigbirdcode/cliptools
992ddf2088462477992734af8eb00453bde3ce85
[ "MIT" ]
null
null
null
src/cliptools/modules/data_loader.py
bigbirdcode/cliptools
992ddf2088462477992734af8eb00453bde3ce85
[ "MIT" ]
6
2019-04-02T18:25:35.000Z
2019-08-21T20:24:16.000Z
src/cliptools/modules/data_loader.py
bigbirdcode/cliptools
992ddf2088462477992734af8eb00453bde3ce85
[ "MIT" ]
null
null
null
"""ClipTools clipboard manager and text processing tools with a lines based GUI interface Data loader, search for available personal data. WARNING, python file will be executed! When making python personal file, take care not allow uncontrolled changes! yaml is safer from this point of view. Note: logging is not par...
33.671233
85
0.702197
353
2,458
4.76204
0.365439
0.070791
0.039262
0.02677
0.350982
0.234384
0.143962
0.083284
0
0
0
0.001031
0.21074
2,458
72
86
34.138889
0.865464
0.485761
0
0.117647
0
0
0.064946
0
0
0
0
0
0
1
0.147059
false
0
0.117647
0
0.5
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04c1820dcc2e20cd468a64c1d6ca1319a04e2cf5
25,660
py
Python
sysevr/slicer/access_db_operate.py
Saleh-Ibtasham/VulScrape
738d17e9dd7e5edc2341d106361651fd28f99c61
[ "PostgreSQL", "Unlicense", "MIT" ]
1
2021-04-12T12:59:33.000Z
2021-04-12T12:59:33.000Z
sysevr/slicer/access_db_operate.py
Jokers-grin/VulScrape
738d17e9dd7e5edc2341d106361651fd28f99c61
[ "PostgreSQL", "Unlicense", "MIT" ]
null
null
null
sysevr/slicer/access_db_operate.py
Jokers-grin/VulScrape
738d17e9dd7e5edc2341d106361651fd28f99c61
[ "PostgreSQL", "Unlicense", "MIT" ]
null
null
null
## -*- coding: utf-8 -*- from joern.all import JoernSteps from igraph import * from .general_op import * import pickle from py2neo.packages.httpstream import http http.socket_timeout = 9999 def get_all_use_bydefnode(db, node_id): query_str = "g.v(%d).in('USE')" % node_id results = db.runGremlinQuery(query_str)...
35.49101
253
0.539517
2,891
25,660
4.554825
0.080249
0.054222
0.050122
0.010024
0.576018
0.484204
0.436437
0.396264
0.327764
0.308779
0
0.006687
0.341465
25,660
722
254
35.540166
0.772577
0.039712
0
0.467308
0
0.001923
0.088296
0.037603
0.003846
0
0
0
0
1
0.069231
false
0
0.009615
0
0.175
0.023077
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04c30ca6dae699405806c7919712bb4e2c2022d3
3,818
py
Python
consolidate_json.py
squirrel2038/archive-archdruid-report
cd121a2466887999062e4e674998af971cd416e2
[ "MIT" ]
1
2022-01-30T11:01:11.000Z
2022-01-30T11:01:11.000Z
consolidate_json.py
squirrel2038/thearchdruidreport-archive
cd121a2466887999062e4e674998af971cd416e2
[ "MIT" ]
null
null
null
consolidate_json.py
squirrel2038/thearchdruidreport-archive
cd121a2466887999062e4e674998af971cd416e2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Consolidate all the raw Blogger JSON files into a single, simplified JSON file. # from collections import OrderedDict import html import io import json import sys import lxml.etree as ET import lxml.html import re import feeds import util posts = feeds.json_post_entries_list() output = []...
38.959184
124
0.585385
475
3,818
4.635789
0.330526
0.031789
0.014532
0.009991
0.156222
0.13079
0.118074
0.118074
0.118074
0.118074
0
0.035141
0.217391
3,818
97
125
39.360825
0.701807
0.102148
0
0.045455
0
0.015152
0.285589
0.033392
0
0
0
0
0.045455
1
0
false
0
0.151515
0
0.151515
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04ca253f5e82296a1e2958dc72286f826aff2f7b
2,619
py
Python
preprocess.py
wonderlr/news_aggregator
123a6b912988013fd83080393ff978ff85a76dc0
[ "MIT" ]
null
null
null
preprocess.py
wonderlr/news_aggregator
123a6b912988013fd83080393ff978ff85a76dc0
[ "MIT" ]
null
null
null
preprocess.py
wonderlr/news_aggregator
123a6b912988013fd83080393ff978ff85a76dc0
[ "MIT" ]
null
null
null
#! /usr/bin/python3 import nltk import pdb import pickle import pandas as pd import numpy as np import json stemmer = nltk.stem.porter.PorterStemmer() stop_words = set(nltk.corpus.stopwords.words('english')) def is_alphanumeric(character): to_ord = ord(character) is_alpha = (to_ord >= ord('A') and to_ord <= o...
28.78022
105
0.644139
365
2,619
4.443836
0.369863
0.021578
0.034525
0.020345
0.078915
0.055487
0.025894
0.025894
0.025894
0
0
0.008538
0.239786
2,619
90
106
29.1
0.806128
0.138221
0
0.085714
0
0
0.040943
0
0
0
0
0
0
1
0.114286
false
0
0.085714
0
0.271429
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04cad953622a83f0e9965ec0a898a7a9f104aa3c
22,312
py
Python
test/intelliflow/core/application/test_aws_application_execution_hooks.py
amzn/rheoceros
5e8f79d97f8b21d693d3c869b0df70de3d5fd068
[ "Apache-2.0", "MIT-0" ]
4
2022-03-24T04:39:02.000Z
2022-03-31T16:41:50.000Z
test/intelliflow/core/application/test_aws_application_execution_hooks.py
amzn/rheoceros
5e8f79d97f8b21d693d3c869b0df70de3d5fd068
[ "Apache-2.0", "MIT-0" ]
null
null
null
test/intelliflow/core/application/test_aws_application_execution_hooks.py
amzn/rheoceros
5e8f79d97f8b21d693d3c869b0df70de3d5fd068
[ "Apache-2.0", "MIT-0" ]
null
null
null
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import threading import time from typing import Callable import pytest from mock import MagicMock import intelliflow.api_ext as flow from intelliflow.api_ext import * from intelliflow.core.application.applicati...
47.777302
141
0.701327
2,572
22,312
5.794323
0.153966
0.023552
0.02268
0.022948
0.642153
0.585721
0.560558
0.529826
0.504462
0.466282
0
0.007371
0.22777
22,312
466
142
47.879828
0.857574
0.158973
0
0.443425
0
0
0.068335
0.030585
0
0
0
0
0.143731
1
0.06422
false
0
0.061162
0.018349
0.174312
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04cb89b6281e761d43339b9fbbae2aa13203f250
6,988
py
Python
Plot/4.13.His_Plot_Global.py
hliu119/Phenological-Dynamics-revealed-by-SIF
2584d09837ea37387dc4d5ad39fcaba0ed714e94
[ "Apache-2.0" ]
null
null
null
Plot/4.13.His_Plot_Global.py
hliu119/Phenological-Dynamics-revealed-by-SIF
2584d09837ea37387dc4d5ad39fcaba0ed714e94
[ "Apache-2.0" ]
null
null
null
Plot/4.13.His_Plot_Global.py
hliu119/Phenological-Dynamics-revealed-by-SIF
2584d09837ea37387dc4d5ad39fcaba0ed714e94
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Dec 26 14:58:57 2019 @author: Administrator MCD12 LandCover Types: DBF == 4:DBF,5:MF EBF == 2:EBF NF == 1:ENF,3:DNF CRO == 12: CRO, 14: CRO&NV GRA == 10: GRA SHR == 6:CSH, 7:OSH SAV == 8:WSA, 9:SAV """ import numpy as np import matplotlib.pyplot as plt imp...
48.867133
306
0.598598
1,021
6,988
3.905975
0.25857
0.024072
0.019308
0.033099
0.31996
0.251003
0.232698
0.21013
0.185055
0.154714
0
0.038547
0.224098
6,988
143
307
48.867133
0.696975
0.054665
0
0
0
0.028302
0.180985
0.10473
0
0
0
0
0
1
0
false
0
0.056604
0
0.056604
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04cbe616581fc2cfbc97890b4ef12ba243847e7e
6,260
py
Python
CountryReconciler/reconciler/country_normalizer.py
weso/landportal-importers
6edfa3c301422bbe8c09cb877b1cbddbcd902463
[ "Unlicense" ]
null
null
null
CountryReconciler/reconciler/country_normalizer.py
weso/landportal-importers
6edfa3c301422bbe8c09cb877b1cbddbcd902463
[ "Unlicense" ]
8
2016-02-16T13:05:37.000Z
2017-01-04T14:38:03.000Z
CountryReconciler/reconciler/country_normalizer.py
landportal/landbook-importers
f0e246f493329b9c5741c50f3a0495d27ee5c54b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on 10/02/2014 @author: Dani """ import re import codecs from reconciler.entities.normalized_country import NormalizedCountry from reconciler.exceptions.unknown_country_error import UnknownCountryError class CountryNormalizer(object): """ In this class we'll implement th...
39.872611
116
0.62476
728
6,260
5.14011
0.315934
0.054516
0.035275
0.059861
0.299572
0.138963
0.113843
0.062533
0.062533
0.062533
0
0.005717
0.273482
6,260
156
117
40.128205
0.815963
0.235623
0
0.183908
0
0
0.080314
0.046408
0
0
0
0
0
1
0.114943
false
0
0.045977
0.034483
0.436782
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04cc4c2755a30d4af02b82ac645949400c8f8805
1,573
py
Python
tests/affine_test.py
martin-luecke/xdsl
b96d19d97a5282823e7735da06764fa57a781429
[ "Apache-2.0" ]
null
null
null
tests/affine_test.py
martin-luecke/xdsl
b96d19d97a5282823e7735da06764fa57a781429
[ "Apache-2.0" ]
null
null
null
tests/affine_test.py
martin-luecke/xdsl
b96d19d97a5282823e7735da06764fa57a781429
[ "Apache-2.0" ]
null
null
null
from xdsl.dialects.builtin import * from xdsl.dialects.std import * from xdsl.dialects.arith import * from xdsl.printer import Printer from xdsl.dialects.affine import * def get_example_affine_program(ctx: MLContext, builtin: Builtin, std: Std, affine: Affine) -> Operation: def aff...
31.46
78
0.530833
187
1,573
4.336898
0.294118
0.049322
0.078915
0.073983
0.192355
0.096178
0.096178
0.096178
0.096178
0
0
0.035922
0.3452
1,573
49
79
32.102041
0.751456
0.016529
0
0.051282
0
0
0.012306
0
0
0
0
0
0
1
0.076923
false
0
0.128205
0.025641
0.25641
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04cd48f165a97bf20274ed413e6996f8b236819c
1,632
py
Python
setup.py
remifan/commplax
e8ee5bc86ab0dfd90773202579237ecf42488cd0
[ "Apache-2.0" ]
20
2021-03-09T08:33:51.000Z
2021-11-29T05:04:55.000Z
setup.py
remifan/commplax
e8ee5bc86ab0dfd90773202579237ecf42488cd0
[ "Apache-2.0" ]
null
null
null
setup.py
remifan/commplax
e8ee5bc86ab0dfd90773202579237ecf42488cd0
[ "Apache-2.0" ]
6
2021-03-09T08:34:01.000Z
2021-12-03T15:14:42.000Z
# Copyright 2021 The Commplax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
26.322581
74
0.582721
188
1,632
4.952128
0.664894
0.064447
0.027927
0.034372
0
0
0
0
0
0
0
0.022453
0.290441
1,632
61
75
26.754098
0.78152
0.352941
0
0.116279
0
0
0.316956
0.020231
0
0
0
0
0
1
0
false
0
0.023256
0
0.023256
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04d0c052c025367c548447ff41b0b30285e71781
1,069
py
Python
src/MetaSeg/functions/meta_nn.py
RonMcKay/Detection-and-Retrieval-of-OOD-Objects
561dc4362226f67b5a85d94843ee439d67fad4ab
[ "MIT" ]
null
null
null
src/MetaSeg/functions/meta_nn.py
RonMcKay/Detection-and-Retrieval-of-OOD-Objects
561dc4362226f67b5a85d94843ee439d67fad4ab
[ "MIT" ]
null
null
null
src/MetaSeg/functions/meta_nn.py
RonMcKay/Detection-and-Retrieval-of-OOD-Objects
561dc4362226f67b5a85d94843ee439d67fad4ab
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.utils.data import Dataset class MetricDataset(Dataset): def __init__(self, data): super(MetricDataset, self).__init__() self.data = data[0].squeeze() self.targets = data[1].squeeze() def __getitem__(self, index): return ( ...
25.452381
65
0.540692
131
1,069
4.206107
0.335878
0.076225
0.098004
0.136116
0
0
0
0
0
0
0
0.035813
0.320861
1,069
41
66
26.073171
0.723141
0
0
0.147059
0
0
0
0
0
0
0
0
0
1
0.147059
false
0
0.088235
0.088235
0.382353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04d9a64e16d05c00923b86847acd17f241da5519
4,704
py
Python
python/experiments/lnpdfs/StopAndFrisk/frisk.py
DrawZeroPoint/VIPS
730f4e18c24afa6f561b13d1fe8af53ae89990a7
[ "MIT" ]
12
2018-07-11T14:35:51.000Z
2020-12-07T03:54:28.000Z
python/experiments/lnpdfs/StopAndFrisk/frisk.py
ykwon0407/VIPS
91d940304b34d702c1a8b12363b5fff38455ef88
[ "MIT" ]
null
null
null
python/experiments/lnpdfs/StopAndFrisk/frisk.py
ykwon0407/VIPS
91d940304b34d702c1a8b12363b5fff38455ef88
[ "MIT" ]
10
2018-07-11T14:36:00.000Z
2022-01-14T21:41:41.000Z
""" Implementation of the hierarchical poisson glm model, with a precinct-specific term, an ethnicity specific term, and an offset term. The data are tuples of (ethnicity, precinct, num_stops, total_arrests), where the count variables num_stops and total_arrests refer to the number of stops and total arrests of an eth...
38.557377
155
0.616709
704
4,704
3.975852
0.3125
0.030011
0.010718
0.017149
0.072883
0.040729
0.029296
0.029296
0.029296
0
0
0.020068
0.247874
4,704
121
156
38.876033
0.771057
0.244473
0
0
0
0
0.047018
0.010034
0
0
0
0
0
1
0.085714
false
0
0.085714
0
0.257143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04dc2b56346a0029e3867882b541bc4c488cd002
12,578
py
Python
script.module.saltsrd.shared/lib/kodi.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2019-03-05T09:37:15.000Z
2019-03-05T09:37:15.000Z
script.module.saltsrd.shared/lib/kodi.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
null
null
null
script.module.saltsrd.shared/lib/kodi.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2021-11-05T20:48:09.000Z
2021-11-05T20:48:09.000Z
""" Salts RD Lite shared module Copyright (C) 2016 creits -2- tknorris This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any...
35.430986
139
0.63134
1,561
12,578
4.950673
0.213965
0.013975
0.025233
0.014234
0.290502
0.259964
0.242365
0.219332
0.179865
0.155797
0
0.012488
0.255128
12,578
354
140
35.531073
0.81236
0.062649
0
0.26259
0
0
0.054717
0.015767
0
0
0
0
0
1
0.158273
false
0
0.046763
0.039568
0.363309
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04dc6f790341edc14815fce9aa1146cef3491bdc
11,554
py
Python
data/aicharacter.py
kennethsinder/exit-dash-hyperion
d44ea77ef5e8a6ce9490e3f802636da5b44e6e74
[ "MIT" ]
2
2018-01-29T14:34:51.000Z
2020-10-20T23:30:26.000Z
data/aicharacter.py
kennethsinder/exit-dash-hyperion
d44ea77ef5e8a6ce9490e3f802636da5b44e6e74
[ "MIT" ]
null
null
null
data/aicharacter.py
kennethsinder/exit-dash-hyperion
d44ea77ef5e8a6ce9490e3f802636da5b44e6e74
[ "MIT" ]
null
null
null
# coding=utf-8 from random import randint import pygame, math from character import * class AICharacter(Character): def __init__(self, x, y, Vx, Vy, properties=('slime', -1, -1)): # Properties should be a tuple of the form (STRING mobName, INT leftLimit, # INT rightLimit) where leftLimit ...
49.587983
131
0.552017
1,323
11,554
4.785336
0.176115
0.028432
0.042647
0.062549
0.380351
0.304375
0.26931
0.232823
0.213236
0.138051
0
0.020906
0.283798
11,554
232
132
49.801724
0.744169
0.127402
0
0.059172
0
0
0.057056
0
0
0
0
0
0
1
0.029586
false
0
0.017751
0.005917
0.065089
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04e078577ead750421a7020ed8aeebb5726ef2c5
2,181
py
Python
HotPotato/hot_potato.py
caternuson/CircuitPython-Demos
cffb226750614caed5368d7ca31c06be321f54d8
[ "MIT" ]
null
null
null
HotPotato/hot_potato.py
caternuson/CircuitPython-Demos
cffb226750614caed5368d7ca31c06be321f54d8
[ "MIT" ]
null
null
null
HotPotato/hot_potato.py
caternuson/CircuitPython-Demos
cffb226750614caed5368d7ca31c06be321f54d8
[ "MIT" ]
null
null
null
# Circuit Playground Express Hot Potato # # Author: Carter Nelson # MIT License (https://opensource.org/licenses/MIT) import time import random import math import board from analogio import AnalogIn from adafruit_circuitplayground.express import cpx # This brings in the song to play import melody number_of_notes = len...
23.967033
76
0.600642
311
2,181
4.096463
0.37299
0.037677
0.054945
0.040031
0.105965
0.105965
0.105965
0.105965
0.065934
0
0
0.046154
0.314535
2,181
91
77
23.967033
0.80602
0.220083
0
0.037037
0
0
0
0
0
0
0.009524
0
0
1
0.018519
false
0.018519
0.12963
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
04e0b45d4a2c91bb016d8c40ce99ce0942e046b2
7,728
py
Python
evaluator/design_table.py
vita-epfl/Trajectory-Transformer
922e17741c532678fd34b041257395acfaecec04
[ "MIT" ]
null
null
null
evaluator/design_table.py
vita-epfl/Trajectory-Transformer
922e17741c532678fd34b041257395acfaecec04
[ "MIT" ]
null
null
null
evaluator/design_table.py
vita-epfl/Trajectory-Transformer
922e17741c532678fd34b041257395acfaecec04
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from matplotlib.font_manager import FontProperties from collections import OrderedDict import pandas as pd from evaluator.evaluator_helpers import Categories, Sub_categories, Metrics class Table(object): """docstring for Table""" def __init__(self, arg=None)...
43.41573
158
0.566511
1,049
7,728
3.954242
0.156339
0.050386
0.027001
0.039778
0.536644
0.502411
0.492285
0.492285
0.486017
0.474928
0
0.027826
0.260611
7,728
178
159
43.41573
0.69811
0.048395
0
0.31405
0
0
0.084711
0
0
0
0
0
0
1
0.049587
false
0
0.049587
0
0.123967
0.008264
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04e1d79de3ac3f1998a9096e9d35c2880a417cdc
4,667
py
Python
bench/sample.py
MustardForBreakfast/safetywrap
170f836e12df455aed9b6dce5e7c634f6b9e8f87
[ "Apache-2.0" ]
21
2019-10-31T17:43:18.000Z
2022-03-19T13:46:05.000Z
bench/sample.py
MustardForBreakfast/safetywrap
170f836e12df455aed9b6dce5e7c634f6b9e8f87
[ "Apache-2.0" ]
null
null
null
bench/sample.py
MustardForBreakfast/safetywrap
170f836e12df455aed9b6dce5e7c634f6b9e8f87
[ "Apache-2.0" ]
3
2019-11-01T17:50:07.000Z
2021-12-15T07:23:21.000Z
"""A benchmark to be run externally. Executes a program that might make heavy use of Result/Option types in one of two ways: classically, with exceptions, or using result types. The program checks several data stores (in memory to minimize interference from slow IO &c.) in order for a key. If it finds it, it gets the...
29.916667
77
0.543604
535
4,667
4.646729
0.263551
0.044248
0.017699
0.013274
0.341512
0.334674
0.28399
0.263073
0.209976
0.209976
0
0.004217
0.339404
4,667
155
78
30.109677
0.802141
0.150204
0
0.238095
0
0
0.07088
0
0
0
0
0
0.019048
1
0.114286
false
0
0.038095
0
0.27619
0.009524
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04e23249464eb1af09688cb5261f0910c0a92916
1,775
py
Python
schemato/validationresult.py
emmett9001/schema.to
cfb5eb128faee391e1ac5c69093776b2d2cfd6b6
[ "Apache-2.0" ]
38
2015-01-16T11:28:12.000Z
2017-10-26T07:24:32.000Z
schemato/validationresult.py
emmett9001/schema.to
cfb5eb128faee391e1ac5c69093776b2d2cfd6b6
[ "Apache-2.0" ]
11
2015-03-20T13:54:49.000Z
2016-10-05T18:38:38.000Z
schemato/validationresult.py
emmett9001/schema.to
cfb5eb128faee391e1ac5c69093776b2d2cfd6b6
[ "Apache-2.0" ]
5
2015-02-17T18:08:35.000Z
2021-12-02T12:33:07.000Z
import json class ValidationResult(object): ERROR = 1 WARNING = 2 def __init__(self, namespace, classname): super(ValidationResult, self).__init__() self.warnings = [] self.errors = [] self.namespace = namespace self.classname = classname def add_error(self, w...
28.629032
74
0.593239
189
1,775
5.386243
0.190476
0.035363
0.021611
0.02554
0.155206
0.155206
0.102161
0.102161
0.102161
0.102161
0
0.001597
0.294648
1,775
61
75
29.098361
0.811502
0
0
0.24
0
0
0.042817
0
0
0
0
0
0
1
0.16
false
0
0.02
0.02
0.36
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04e2eacd84c84c864a83a13c251d959ab593d0a5
2,049
py
Python
robosuite/scripts/playback_demonstrations_from_hdf5.py
gsp-27/robosuite
642065ebba4ea0c2c1f3ae6e96a8f14262146019
[ "MIT" ]
1
2021-12-22T13:10:46.000Z
2021-12-22T13:10:46.000Z
robosuite/scripts/playback_demonstrations_from_hdf5.py
gsp-27/robosuite
642065ebba4ea0c2c1f3ae6e96a8f14262146019
[ "MIT" ]
null
null
null
robosuite/scripts/playback_demonstrations_from_hdf5.py
gsp-27/robosuite
642065ebba4ea0c2c1f3ae6e96a8f14262146019
[ "MIT" ]
1
2020-12-29T01:38:01.000Z
2020-12-29T01:38:01.000Z
""" A convenience script to playback random demonstrations from a set of demonstrations stored in a hdf5 file. Example: $ python playback_demonstrations_from_hdf5.py --folder ../models/assets/demonstrations/SawyerPickPlace/ """ import os import h5py import argparse import random import numpy as np import robosuit...
28.068493
107
0.644705
261
2,049
4.873563
0.45977
0.031447
0.023585
0.022013
0.034591
0.034591
0
0
0
0
0
0.007194
0.253782
2,049
72
108
28.458333
0.824722
0.223524
0
0
0
0
0.099493
0.020279
0
0
0
0
0
1
0
false
0
0.145833
0
0.145833
0.020833
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04e8053cd909a8f30dd024e9c4b9845248ff59fe
1,518
py
Python
awacs/xray.py
mprince/awacs
f6a16af326ac7fd11e2e2be3a48180475f150611
[ "BSD-2-Clause" ]
null
null
null
awacs/xray.py
mprince/awacs
f6a16af326ac7fd11e2e2be3a48180475f150611
[ "BSD-2-Clause" ]
null
null
null
awacs/xray.py
mprince/awacs
f6a16af326ac7fd11e2e2be3a48180475f150611
[ "BSD-2-Clause" ]
1
2020-04-03T06:37:42.000Z
2020-04-03T06:37:42.000Z
# Copyright (c) 2012-2013, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from aws import Action as BaseAction from aws import BaseARN service_name = 'AWS XRay' prefix = 'xray' class Action(BaseAction): def __init__(self, action=None): sup = super(Action, self) ...
33
73
0.763505
133
1,518
8.586466
0.428571
0.014011
0.022767
0
0
0
0
0
0
0
0
0.006029
0.125823
1,518
45
74
33.733333
0.854559
0.069829
0
0
0
0
0.24236
0.041933
0
0
0
0
0
1
0.060606
false
0
0.060606
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04eacbed2960320b74f280d23dd6e09fb5dbbb17
6,839
py
Python
cmake/CMakeBuild/bin/pyhhi/cmbuild/bjambld.py
myfan/VTM-1.1_sKLT
adf549a14e630167fe22f9b8c73a307174160d7c
[ "BSD-3-Clause" ]
null
null
null
cmake/CMakeBuild/bin/pyhhi/cmbuild/bjambld.py
myfan/VTM-1.1_sKLT
adf549a14e630167fe22f9b8c73a307174160d7c
[ "BSD-3-Clause" ]
null
null
null
cmake/CMakeBuild/bin/pyhhi/cmbuild/bjambld.py
myfan/VTM-1.1_sKLT
adf549a14e630167fe22f9b8c73a307174160d7c
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import os import shutil import subprocess import logging import pyhhi.build.common.ver as ver import pyhhi.build.common.bldtools as bldtools from pyhhi.build.common.system import SystemInfo class BjamBuilder(object): """The BjamBuilder class supports building a new bjam exe...
39.531792
146
0.607106
895
6,839
4.338547
0.231285
0.027814
0.030904
0.036055
0.288694
0.193665
0.136235
0.110482
0.096575
0.096575
0
0.010419
0.284252
6,839
172
147
39.761628
0.78284
0.130136
0
0.193798
0
0
0.09973
0.018932
0
0
0
0
0.03876
1
0.054264
false
0
0.062016
0
0.178295
0.054264
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04ebbba0f5550d29b2188709fea832733cf15cb6
2,773
py
Python
Exercise 2-3.py
Falli0o/linear_regression
b21a682bae9e4a3d5aa8aa6223233aa6dea8749c
[ "Apache-2.0" ]
null
null
null
Exercise 2-3.py
Falli0o/linear_regression
b21a682bae9e4a3d5aa8aa6223233aa6dea8749c
[ "Apache-2.0" ]
null
null
null
Exercise 2-3.py
Falli0o/linear_regression
b21a682bae9e4a3d5aa8aa6223233aa6dea8749c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # In[ ]: from __future__ import division get_ipython().magic(u'matplotlib inline') import numpy as np import matplotlib.pyplot as plt import math import multivarlinreg import rmse # In[ ]: #Linear regression red_train = np.loadtxt('redwine_training.txt') red_test = np.loadtxt('redwine_testing.tx...
25.440367
106
0.728814
434
2,773
4.426267
0.31106
0.040083
0.023425
0.026028
0.155648
0.070276
0.030193
0
0
0
0
0.03658
0.152182
2,773
108
107
25.675926
0.780519
0.268301
0
0
0
0
0.046784
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
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
04ee4a305162e4e3bdcb164213ede6ebc3c2c03c
3,260
py
Python
Sketches/JL/IRC/Translator.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/JL/IRC/Translator.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/JL/IRC/Translator.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
# -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License, Version 2.0 (the "Lice...
34.315789
112
0.607975
353
3,260
5.569405
0.424929
0.030519
0.045778
0.048321
0.151577
0.096643
0.047813
0.047813
0.047813
0
0
0.006397
0.280675
3,260
94
113
34.680851
0.831983
0.235583
0
0.180328
0
0
0.094622
0
0
0
0
0
0
1
0.131148
false
0
0.081967
0.081967
0.360656
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04efafcb6db1afd7a3030ec016d52f31b51e110e
11,926
py
Python
ClientSide2.py
MatthewGong/DiffractionClassification
68be6cf3960f09388253c79bab13cbd9dc07edbb
[ "MIT" ]
7
2019-08-14T18:14:06.000Z
2021-01-14T01:43:50.000Z
ClientSide2.py
MatthewGong/DiffractionClassification
68be6cf3960f09388253c79bab13cbd9dc07edbb
[ "MIT" ]
null
null
null
ClientSide2.py
MatthewGong/DiffractionClassification
68be6cf3960f09388253c79bab13cbd9dc07edbb
[ "MIT" ]
2
2019-11-06T20:19:23.000Z
2020-08-04T21:06:36.000Z
from __future__ import print_function from __future__ import division from Notation import SpaceGroupsDict as spgs SpGr = spgs.spacegroups() notation_dictionary = spgs.spacegroups() import PeakFinding2 as pfnd #custom library to handle the functions behind Find_Peaks import UniversalLoader2 as uvll #custom library ...
32.673973
124
0.606322
1,491
11,926
4.663984
0.205902
0.015099
0.03365
0.015531
0.303422
0.222174
0.156888
0.109002
0.080242
0.041703
0
0.011397
0.27897
11,926
364
125
32.763736
0.797302
0.28811
0
0.060976
0
0
0.147232
0
0
0
0
0
0
1
0.042683
false
0
0.042683
0
0.128049
0.128049
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04f023bee1d7ff03aceebf8ab92a9d06c9bdc3a1
802
py
Python
examples/application_commands/choices.py
freepizzas-dev/nextcord
58dd18d4d60d50a0462e87b2400db980e73da72c
[ "MIT" ]
null
null
null
examples/application_commands/choices.py
freepizzas-dev/nextcord
58dd18d4d60d50a0462e87b2400db980e73da72c
[ "MIT" ]
null
null
null
examples/application_commands/choices.py
freepizzas-dev/nextcord
58dd18d4d60d50a0462e87b2400db980e73da72c
[ "MIT" ]
null
null
null
import nextcord from nextcord import SlashOption from nextcord.interactions import Interaction client = nextcord.Client() @client.slash_command(guild_ids=[...]) # Limits the guildes async def choose_a_number( interaction: Interaction, number: str = SlashOption( name="picker", description="Th...
27.655172
99
0.699501
101
802
5.475248
0.475248
0.0434
0.065099
0.083183
0.256781
0.256781
0.126582
0
0
0
0
0.009023
0.170823
802
28
100
28.642857
0.822556
0.067332
0
0.285714
0
0
0.171812
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04f24dbabf997234bb3f9394b5d4778cde915e92
729
py
Python
debug/testUSB.py
sgoadhouse/dcps-visa
3021168bb15bb66fdd74d2a235d4dc3e0e3a4733
[ "MIT" ]
2
2019-10-30T08:23:14.000Z
2021-09-15T14:20:53.000Z
debug/testUSB.py
sgoadhouse/dcps-visa
3021168bb15bb66fdd74d2a235d4dc3e0e3a4733
[ "MIT" ]
null
null
null
debug/testUSB.py
sgoadhouse/dcps-visa
3021168bb15bb66fdd74d2a235d4dc3e0e3a4733
[ "MIT" ]
6
2019-10-11T18:52:40.000Z
2022-03-28T10:14:38.000Z
import usb.core import usb.util import sys # got these using the command lsusb -vv VENDOR_ID = 0x1AB1 PRODUCT_ID = 0x0E11 DATA_SIZE = 1 device = usb.core.find(idVendor=VENDOR_ID, idProduct=PRODUCT_ID) #@@@#print(device.is_kernel_driver_active(0)) # was it found? if device is None: raise ValueError('USB Device ...
22.78125
64
0.728395
109
729
4.770642
0.633028
0.040385
0
0
0
0
0
0
0
0
0
0.036244
0.167353
729
31
65
23.516129
0.820428
0.30727
0
0
0
0
0.109091
0
0
0
0.024242
0
0
1
0
false
0
0.1875
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04f30aaa86b0d421b2d40dfdaa3750bdc67bcc4e
809
py
Python
test_ruge_stuben_solver.py
CoderMoray/AMG-for-finity-element
1f4194eb3d1b8b6007733cb1122bdab7d67424bc
[ "MIT" ]
null
null
null
test_ruge_stuben_solver.py
CoderMoray/AMG-for-finity-element
1f4194eb3d1b8b6007733cb1122bdab7d67424bc
[ "MIT" ]
null
null
null
test_ruge_stuben_solver.py
CoderMoray/AMG-for-finity-element
1f4194eb3d1b8b6007733cb1122bdab7d67424bc
[ "MIT" ]
null
null
null
import pyamg import numpy as np import time from prettytable import PrettyTable A = pyamg.gallery.poisson((500,500), format='csr') # 2D Poisson problem on 500x500 grid # print('A : ', A ) ml = pyamg.ruge_stuben_solver(A) b = np.random.rand(A.shape[0]) # pick a random right hand side # t0= ...
28.892857
88
0.608158
131
809
3.70229
0.519084
0.041237
0.037113
0.057732
0
0
0
0
0
0
0
0.055016
0.236094
809
28
89
28.892857
0.729773
0.202719
0
0
0
0
0.050235
0
0
0
0
0
0
1
0
false
0
0.190476
0
0.190476
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
04f33c7544bbc8ed87639ae554a4185b880e29cc
7,467
py
Python
app/telegram_handler.py
badgateway666/Telegram2MQTT
387709bae98e99f1c5a83a27981ebd2172ad356b
[ "MIT" ]
1
2020-05-22T17:00:27.000Z
2020-05-22T17:00:27.000Z
app/telegram_handler.py
badgateway666/Telegram2MQTT
387709bae98e99f1c5a83a27981ebd2172ad356b
[ "MIT" ]
null
null
null
app/telegram_handler.py
badgateway666/Telegram2MQTT
387709bae98e99f1c5a83a27981ebd2172ad356b
[ "MIT" ]
null
null
null
import logging import re from queue import SimpleQueue from telegram.bot import Bot as Telegram_Bot from telegram.ext import Updater, CommandHandler, Filters class TelegramHandler(object): def __init__(self, bot_token, allowed_telegram_user_ids): self.logger = logging.getLogger("telegram2mqtt.bot") ...
38.096939
109
0.583367
876
7,467
4.826484
0.206621
0.028382
0.034059
0.042573
0.456244
0.397824
0.342952
0.342952
0.331835
0.306055
0
0.00331
0.312174
7,467
195
110
38.292308
0.819899
0.124146
0
0.244898
0
0
0.202202
0.003256
0
0
0
0.005128
0
1
0.047619
false
0
0.034014
0
0.122449
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04f40581777dd72ef62292b53638cb5d976a365c
1,574
py
Python
forcefield_utilities/utils.py
mosdef-hub/forcefield-utilities
6424f9c8c2935399171ee7056a0d6b408cabda81
[ "MIT" ]
1
2022-03-15T15:14:02.000Z
2022-03-15T15:14:02.000Z
forcefield_utilities/utils.py
mosdef-hub/forcefield-utilities
6424f9c8c2935399171ee7056a0d6b408cabda81
[ "MIT" ]
5
2021-11-12T01:35:55.000Z
2022-03-23T15:45:29.000Z
forcefield_utilities/utils.py
mosdef-hub/forcefield-utilities
6424f9c8c2935399171ee7056a0d6b408cabda81
[ "MIT" ]
2
2022-03-15T15:14:06.000Z
2022-03-23T00:11:24.000Z
import functools import warnings def call_on_import(func): """Declare a decorator that will run `func` when imported.""" func() def get_package_file_path(from_package, relative_path): """Use source of a python package to locate and cache the address of a file.""" from pkg_resources import resource_f...
29.698113
87
0.656925
192
1,574
5.182292
0.411458
0.096482
0.066332
0.046231
0.293467
0.180905
0.180905
0.180905
0.180905
0.180905
0
0.001735
0.267471
1,574
52
88
30.269231
0.861232
0.081957
0
0.105263
0
0
0.199442
0
0
0
0
0
0
1
0.157895
false
0
0.105263
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04f45b90500ae631520f30af9f99758d2ff28520
889
py
Python
decbin.py
faisalkhan91/Dec2Bin
623f1640aa6a4b619d95fad9df869c4901cd4c96
[ "MIT" ]
null
null
null
decbin.py
faisalkhan91/Dec2Bin
623f1640aa6a4b619d95fad9df869c4901cd4c96
[ "MIT" ]
null
null
null
decbin.py
faisalkhan91/Dec2Bin
623f1640aa6a4b619d95fad9df869c4901cd4c96
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 decimal = input("Please enter a real number: ") index = 0 while index < len(decimal) and decimal[index] != ".": index += 1 if index == 10: intpart = decimal[:] fracpart = "" else : intpart = decimal[:index] fracpart = decimal[index+1:] # print("int len = ", len(intpart), "int part = "...
18.914894
115
0.590551
112
889
4.6875
0.294643
0.068571
0
0
0
0
0
0
0
0
0
0.033626
0.230596
889
46
116
19.326087
0.733918
0.154106
0
0.151515
0
0
0.069333
0
0
0
0
0
0
1
0
false
0
0
0
0
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04f5f1b977e5486329255efbf34e12d42bdcf0a3
2,716
py
Python
src/installer/src/tortuga/db/nicsDbHandler.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
33
2018-03-02T17:07:39.000Z
2021-05-21T18:02:51.000Z
src/installer/src/tortuga/db/nicsDbHandler.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
201
2018-03-05T14:28:24.000Z
2020-11-23T19:58:27.000Z
src/installer/src/tortuga/db/nicsDbHandler.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
23
2018-03-02T17:21:59.000Z
2020-11-18T14:52:38.000Z
# Copyright 2008-2018 Univa Corporation # # 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...
28.893617
74
0.626657
297
2,716
5.673401
0.474747
0.035608
0.026706
0.018991
0.052819
0
0
0
0
0
0
0.006094
0.275037
2,716
93
75
29.204301
0.84967
0.279087
0
0.095238
0
0
0.084819
0
0
0
0
0
0
1
0.095238
false
0.02381
0.142857
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
04fa50f216dce4da7cb555026a335c1664fdf05b
516
py
Python
topCoder/srms/300s/srm378/div2/two_rotation_cypher.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
1
2020-09-30T19:53:08.000Z
2020-09-30T19:53:08.000Z
topCoder/srms/300s/srm378/div2/two_rotation_cypher.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
null
null
null
topCoder/srms/300s/srm378/div2/two_rotation_cypher.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
1
2020-10-15T09:10:57.000Z
2020-10-15T09:10:57.000Z
from string import ascii_lowercase class TwoRotationCypher: def encrypt(self, firstSize, firstRotate, secondRotate, message): f, s, r = ascii_lowercase[:firstSize], ascii_lowercase[firstSize:], '' for e in message: if e == ' ': r += e elif e in f: ...
36.857143
88
0.52907
63
516
4.285714
0.444444
0.155556
0.17037
0.059259
0
0
0
0
0
0
0
0.017291
0.327519
516
13
89
39.692308
0.760807
0
0
0
0
0
0.001938
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04faa5333b2d83edb78730a93736b95eddd63ea2
5,675
py
Python
src/CoRe.py
SkBlaz/core
2833191021ddf7113d375daeb9e9740faa068957
[ "BSD-3-Clause" ]
null
null
null
src/CoRe.py
SkBlaz/core
2833191021ddf7113d375daeb9e9740faa068957
[ "BSD-3-Clause" ]
null
null
null
src/CoRe.py
SkBlaz/core
2833191021ddf7113d375daeb9e9740faa068957
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from class_neural import GenericAutoencoder from class_clustering_reduction import ReductionCluster from class_subspace_reduction import ReductionSubspace try: import umap except Exception as es: print(f"UMAP unavailable. {es}") from sklearn.decomposition import TruncatedSVD from sklearn.man...
32.994186
84
0.622379
584
5,675
5.847603
0.234589
0.084334
0.083748
0.084334
0.332943
0.194729
0.175988
0.108053
0.108053
0.108053
0
0.003002
0.295507
5,675
171
85
33.187135
0.851176
0.014978
0
0.178295
0
0
0.058855
0
0
0
0
0
0
1
0.046512
false
0
0.069767
0
0.155039
0.015504
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04fccb1478ce692e14caa6ca3962aae84ed836d8
1,771
py
Python
p314_Binary_Tree_Vertical_Order_Traversal.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
p314_Binary_Tree_Vertical_Order_Traversal.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
p314_Binary_Tree_Vertical_Order_Traversal.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
''' - Leetcode problem: 314 - Difficulty: Medium - Brief problem description: Given a binary tree, return the vertical order traversal of its nodes' values. (ie, from top to bottom, column by column). If two nodes are in the same row and column, the order should be from left to right. Examples 1: Input: [3,9,20,n...
15.8125
122
0.512705
244
1,771
3.704918
0.393443
0.013274
0.013274
0.017699
0.042035
0.042035
0.026549
0.026549
0
0
0
0.07088
0.338792
1,771
111
123
15.954955
0.70111
0.57764
0
0
0
0
0
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04feec89ef011be3222eac2c8a548d3c3d472132
2,548
py
Python
tests/pterradactyl/commands/test_lookup.py
GiampaoloFalqui/pterradactyl
3d34f8088784c53e3d0871d8ca81f2381f2c2be9
[ "Apache-2.0" ]
2
2022-03-31T09:02:49.000Z
2022-03-31T18:56:52.000Z
tests/pterradactyl/commands/test_lookup.py
GiampaoloFalqui/pterradactyl
3d34f8088784c53e3d0871d8ca81f2381f2c2be9
[ "Apache-2.0" ]
4
2021-12-20T18:31:47.000Z
2022-03-14T16:31:49.000Z
tests/pterradactyl/commands/test_lookup.py
GiampaoloFalqui/pterradactyl
3d34f8088784c53e3d0871d8ca81f2381f2c2be9
[ "Apache-2.0" ]
null
null
null
import unittest from pterradactyl.commands.lookup import LookupCommand from mock import patch import os import argparse import pytest class TestLookupCommands(unittest.TestCase): def setUp(self) -> None: self.base_path = os.path.dirname(os.path.abspath(__file__)) self.config = os.path.join(os.get...
49
145
0.637363
310
2,548
5.070968
0.222581
0.050891
0.053435
0.050891
0.655216
0.608142
0.608142
0.587786
0.544529
0.489822
0
0.005056
0.223705
2,548
51
146
49.960784
0.789687
0
0
0.363636
0
0
0.127943
0.042386
0
0
0
0
0.159091
1
0.113636
false
0
0.136364
0
0.295455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0