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
837126c7ed58a646eeb7ff8f2ca3a90bb536b289
3,486
py
Python
rootfs/guest/daemon.py
ucsdsysnet/faasnap
6d47f5a808d34d37213c57e42a302b351e904614
[ "MIT" ]
null
null
null
rootfs/guest/daemon.py
ucsdsysnet/faasnap
6d47f5a808d34d37213c57e42a302b351e904614
[ "MIT" ]
null
null
null
rootfs/guest/daemon.py
ucsdsysnet/faasnap
6d47f5a808d34d37213c57e42a302b351e904614
[ "MIT" ]
null
null
null
import time, sys, mmap import subprocess from flask import Flask, request app = Flask(__name__) import fcntl, time, struct import redis from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor # executor = ProcessPoolExecutor(max_workers=2) executor = ThreadPoolExecutor(max_workers=2) MEMINFO = False EN...
33.2
155
0.660356
415
3,486
5.407229
0.274699
0.078431
0.080214
0.096257
0.23975
0.23975
0.203654
0.203654
0.142157
0.065508
0
0.013314
0.202811
3,486
104
156
33.519231
0.794171
0.020654
0
0.120879
0
0
0.090589
0
0
0
0
0
0
1
0.076923
false
0.043956
0.164835
0.010989
0.43956
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
837207e8e61e09370cb7047d5c02c7ae05cae9d2
2,729
py
Python
mil_text/rank_plot_all.py
AntonValk/BagGraph-Graph-MIL
1447b52b32995cf6c71e731dd1261104cd66ced0
[ "MIT" ]
8
2021-12-10T19:21:03.000Z
2022-03-24T18:53:02.000Z
mil_text/rank_plot_all.py
AntonValk/BagGraph-Graph-MIL
1447b52b32995cf6c71e731dd1261104cd66ced0
[ "MIT" ]
null
null
null
mil_text/rank_plot_all.py
AntonValk/BagGraph-Graph-MIL
1447b52b32995cf6c71e731dd1261104cd66ced0
[ "MIT" ]
null
null
null
import csv import numpy as np import seaborn as sns import pandas as pd import matplotlib.pyplot as plt datasets = ['alt.atheism', 'comp.graphics', 'comp.os.ms-windows.misc', 'comp.sys.ibm.pc.hardware', 'comp.sys.mac.hardware', 'comp.windows.x', 'misc.forsale', 'rec.autos', 'rec.motorcycles', 'rec.s...
43.31746
161
0.635398
414
2,729
4.089372
0.391304
0.023627
0.023627
0.025989
0.054341
0.054341
0.03544
0
0
0
0
0.016191
0.139978
2,729
63
162
43.31746
0.705156
0.070355
0
0
0
0
0.314702
0.070879
0
0
0
0
0
1
0
false
0
0.113636
0
0.113636
0.204545
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8372488d6e57ae388189d3f6803e33eed08b9007
6,434
py
Python
rh_logger/backends/backend_datadog_logging.py
tomuram/rh_logger
dbd1d918ac163994694da82c7e90758cc29bf0e5
[ "MIT" ]
1
2020-05-08T15:22:46.000Z
2020-05-08T15:22:46.000Z
rh_logger/backends/backend_datadog_logging.py
HoraceKem/rh_logger
7217ce54f1578e7324947ad33381f3c2d1f07e6b
[ "MIT" ]
1
2016-05-13T17:35:02.000Z
2016-05-13T17:35:02.000Z
rh_logger/backends/backend_datadog_logging.py
HoraceKem/rh_logger
7217ce54f1578e7324947ad33381f3c2d1f07e6b
[ "MIT" ]
3
2016-11-28T05:44:42.000Z
2021-08-10T18:28:56.000Z
'''logger.py - the Datadog logger''' import collections import datadog import datetime import os import logging import rh_logger import rh_logger.api import sys import traceback class DatadogLogger(rh_logger.api.Logger): '''Logger for datadog''' def __init__(self, name, config): self.name = name ...
38.993939
79
0.524712
684
6,434
4.855263
0.219298
0.055405
0.04336
0.031617
0.339657
0.29178
0.206263
0.14062
0.117435
0.117435
0
0.000762
0.387784
6,434
164
80
39.231707
0.842346
0.147809
0
0.31405
0
0
0.104807
0
0
0
0
0.006098
0
1
0.066116
false
0
0.07438
0.008264
0.157025
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8372ad2c895756d8ba6acd08356e8ae7366b2454
11,715
py
Python
script_preprocess/building_aggregated_data.py
FrappucinoGithub/school_meal_forecast_regressions
23db636e7592b39cf100d7e7c707a411779b79bc
[ "MIT" ]
2
2021-05-06T19:02:44.000Z
2021-05-10T09:04:36.000Z
script_preprocess/building_aggregated_data.py
FrappucinoGithub/school_meal_forecast_regressions
23db636e7592b39cf100d7e7c707a411779b79bc
[ "MIT" ]
1
2021-03-15T11:16:54.000Z
2021-03-15T11:16:54.000Z
script_preprocess/building_aggregated_data.py
FrappucinoGithub/school_meal_forecast_regressions
23db636e7592b39cf100d7e7c707a411779b79bc
[ "MIT" ]
1
2021-02-24T13:49:46.000Z
2021-02-24T13:49:46.000Z
import os import pandas as pd import spacy from sklearn.feature_extraction.text import CountVectorizer import datetime import numpy as np from processing import get_annee_scolaire if __name__ == "__main__": #print("files", os.listdir("data_processed")) ########################## # Chargement des donné...
41.39576
169
0.553564
1,613
11,715
3.940484
0.238066
0.015104
0.013216
0.016992
0.312618
0.263531
0.263531
0.263531
0.244179
0.22168
0
0.110195
0.202902
11,715
282
170
41.542553
0.570465
0.113359
0
0.235669
0
0
0.307213
0.00991
0
0
0
0
0.012739
1
0
false
0
0.044586
0
0.044586
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
837393fa0b035c535d77757051efaef98b194a88
1,724
py
Python
first_lab.py
ShevchenyaIlya/Chess_knight_move
b7339edbf9423d028f6eb852e0c1c46869a6c0ff
[ "Apache-2.0" ]
null
null
null
first_lab.py
ShevchenyaIlya/Chess_knight_move
b7339edbf9423d028f6eb852e0c1c46869a6c0ff
[ "Apache-2.0" ]
null
null
null
first_lab.py
ShevchenyaIlya/Chess_knight_move
b7339edbf9423d028f6eb852e0c1c46869a6c0ff
[ "Apache-2.0" ]
null
null
null
import pygame from laboratory.base import ChessBoard, ChessHorse, Grid import os os.environ["SDL_VIDEO_WINDOW_POS"] = "400, 100" surface = pygame.display.set_mode((600, 600)) pygame.display.set_caption("Chess knight move") pygame.init() grid = ChessBoard() horse = ChessHorse() cells = Grid() def stand_color(): ...
26.523077
79
0.541763
194
1,724
4.680412
0.402062
0.042952
0.035242
0.063877
0.160793
0.11674
0.090308
0
0
0
0
0.032889
0.347448
1,724
64
80
26.9375
0.774222
0
0
0.24
0
0
0.032483
0
0
0
0
0
0
1
0.06
false
0
0.06
0
0.12
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8375a587533b43ad16c1fde976759a83788c8ad5
1,925
py
Python
models/faster_rcnn_fpn.py
martin-marek/parking-space-occupancy
5514adcb435e239f36b19f4e868678ae0a65f5b8
[ "MIT" ]
6
2021-07-29T04:15:15.000Z
2022-01-12T07:18:14.000Z
models/faster_rcnn_fpn.py
martin-marek/parking-space-occupancy
5514adcb435e239f36b19f4e868678ae0a65f5b8
[ "MIT" ]
null
null
null
models/faster_rcnn_fpn.py
martin-marek/parking-space-occupancy
5514adcb435e239f36b19f4e868678ae0a65f5b8
[ "MIT" ]
4
2021-07-27T10:04:33.000Z
2021-11-27T20:28:35.000Z
from torch import nn from torchvision.models.detection.backbone_utils import resnet_fpn_backbone from torchvision.models.utils import load_state_dict_from_url from .utils import pooling from .utils.class_head import ClassificationHead class FasterRCNN_FPN(nn.Module): """ A Faster R-CNN FPN inspired parking l...
37.019231
115
0.682078
237
1,925
5.320675
0.42616
0.035686
0.031721
0.026963
0.065028
0
0
0
0
0
0
0.010989
0.243636
1,925
51
116
37.745098
0.855082
0.274286
0
0
0
0
0.066863
0
0
0
0
0
0
1
0.083333
false
0
0.208333
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
837739a005a237684a780c9335e0ae3dc01c7873
730
py
Python
configProvider.py
misc77/dsegenerator
3fbaed79ff2809de5b7efb3ac86acf8ffb45afe4
[ "MIT" ]
null
null
null
configProvider.py
misc77/dsegenerator
3fbaed79ff2809de5b7efb3ac86acf8ffb45afe4
[ "MIT" ]
null
null
null
configProvider.py
misc77/dsegenerator
3fbaed79ff2809de5b7efb3ac86acf8ffb45afe4
[ "MIT" ]
null
null
null
from resources import Resources import configparser def getConfigEntry(group, item): entry = None if group != None and item != None: config = configparser.ConfigParser() try: config.read(Resources.getConfigFile()) except(FileNotFoundError): print("ERROR: File '"...
29.2
109
0.642466
75
730
6.253333
0.4
0.057569
0.098081
0
0
0
0
0
0
0
0
0
0.272603
730
25
110
29.2
0.883239
0
0
0.2
0
0
0.035568
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.3
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8378ea628ccc21371175ad9061b5e8ae8ef0a59b
3,041
py
Python
H5_News_Tracker/gui/ticker_window.py
Mouse-Diplodicus/H5-NewsTracker
a771105463db6757171ea28e847208960c7ac598
[ "BSD-2-Clause" ]
null
null
null
H5_News_Tracker/gui/ticker_window.py
Mouse-Diplodicus/H5-NewsTracker
a771105463db6757171ea28e847208960c7ac598
[ "BSD-2-Clause" ]
20
2020-02-27T01:39:28.000Z
2021-12-13T20:39:17.000Z
H5_News_Tracker/gui/ticker_window.py
Mouse-Diplodicus/H5-NewsTracker
a771105463db6757171ea28e847208960c7ac598
[ "BSD-2-Clause" ]
null
null
null
""" Program displays a window with text using Tkinter when run. """ import tkinter import webbrowser from tkinter import font from tkinter import ttk class TickerWindow(tkinter.Frame): """Main Object for creating and running the news ticker gui""" max_label_width = 80 font_size = 12 updating_feed = [...
39.493506
117
0.64584
376
3,041
5.098404
0.335106
0.028169
0.046948
0.035472
0.103286
0.103286
0.103286
0.103286
0.103286
0.058425
0
0.0189
0.234462
3,041
76
118
40.013158
0.804553
0.162447
0
0
0
0
0.104735
0
0
0
0
0
0
1
0.109091
false
0
0.072727
0
0.290909
0.109091
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
837a6c35581467319f1075c05fa1224fd922d268
3,562
py
Python
Yu/Web.py
Hiroshiba/KotohiraYu
1ab5a5376e01aae5c730ae163298e1c34980b586
[ "MIT" ]
null
null
null
Yu/Web.py
Hiroshiba/KotohiraYu
1ab5a5376e01aae5c730ae163298e1c34980b586
[ "MIT" ]
1
2019-05-18T13:16:25.000Z
2019-05-18T13:16:25.000Z
Yu/Web.py
Hiroshiba/KotohiraYu
1ab5a5376e01aae5c730ae163298e1c34980b586
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import configparser import glob import sqlite3 import traceback import json from bottle import route, run, auth_basic, abort, response from sqlite3 import OperationalError config = configparser.ConfigParser() config.read('config/config.ini') def VERIFY(username, password): retur...
31.522124
174
0.571028
460
3,562
4.373913
0.291304
0.047714
0.044732
0.053678
0.204771
0.122266
0.122266
0.062624
0.062624
0.062624
0
0.011965
0.225716
3,562
112
175
31.803571
0.717549
0.005896
0
0.227723
0
0.029703
0.368466
0.170952
0
0
0
0
0
1
0.079208
false
0.019802
0.079208
0.029703
0.227723
0.019802
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
837ad353a450f945fc5a6b024a1362ed9689c173
3,982
py
Python
src/sequencemodel_09.py
PatrikValkovic/neural-networks-step-by-step
86f5f98de1dbeb3a69ba101f06e303dbaabe6b8e
[ "MIT" ]
1
2021-02-04T09:01:44.000Z
2021-02-04T09:01:44.000Z
src/sequencemodel_09.py
alexdevero/neural-networks-step-by-step
55e12e82c78f9be2d942fc1bff252b92fb61c1dd
[ "MIT" ]
null
null
null
src/sequencemodel_09.py
alexdevero/neural-networks-step-by-step
55e12e82c78f9be2d942fc1bff252b92fb61c1dd
[ "MIT" ]
2
2021-01-30T15:17:50.000Z
2021-02-04T09:01:45.000Z
import numpy as np from progressbar import progressbar class SequenceModel: def __init__(self, layers, loss, metrices = [], random_seed = None): self._rand = np.random.RandomState(random_seed); self.loss = loss self.metrices = metrices self.layers = layers def zero_grad...
45.770115
120
0.566298
467
3,982
4.650964
0.218415
0.046041
0.055249
0.036832
0.394107
0.375691
0.330111
0.245856
0.176796
0.131676
0
0.006904
0.345304
3,982
86
121
46.302326
0.826237
0.088649
0
0.1
0
0
0.015521
0
0
0
0
0
0
1
0.066667
false
0
0.033333
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
837cbe3de90b812a9c90cd64972dc52fe2924f87
8,989
py
Python
tests/components/multimatic/__init__.py
thomasgermain/home-assistant
69a8ba678e0276bc1bfde0f3d9e9d3682209f962
[ "Apache-2.0" ]
7
2019-08-15T13:36:58.000Z
2020-03-18T10:46:29.000Z
tests/components/multimatic/__init__.py
thomasgermain/home-assistant
69a8ba678e0276bc1bfde0f3d9e9d3682209f962
[ "Apache-2.0" ]
73
2020-10-01T06:39:39.000Z
2022-03-31T06:16:15.000Z
tests/components/multimatic/__init__.py
thomasgermain/home-assistant
69a8ba678e0276bc1bfde0f3d9e9d3682209f962
[ "Apache-2.0" ]
4
2019-10-26T14:25:13.000Z
2020-11-10T11:00:18.000Z
"""The tests for multimatic integration.""" from __future__ import annotations import datetime from typing import Any from unittest.mock import AsyncMock, patch from pymultimatic.model import ( ActiveFunction, BoilerStatus, Circulation, Device, Dhw, EmfReport, Error, FacilityDetail, ...
26.206997
82
0.585938
923
8,989
5.499458
0.304442
0.026005
0.014775
0.021671
0.106383
0.063239
0.035461
0
0
0
0
0.017104
0.304038
8,989
342
83
26.283626
0.794118
0.049394
0
0.123134
0
0
0.105376
0.034648
0
0
0
0
0.007463
1
0.070896
false
0.007463
0.041045
0
0.179104
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
837cd4561ed86c61a564513e1e29e4b4eaead664
4,877
py
Python
test/e2e/test_200_header_invalid.py
elukey/mod_h2
3418fc31b8ffe9fe477899d60ccfdecdfac1df34
[ "Apache-2.0" ]
null
null
null
test/e2e/test_200_header_invalid.py
elukey/mod_h2
3418fc31b8ffe9fe477899d60ccfdecdfac1df34
[ "Apache-2.0" ]
null
null
null
test/e2e/test_200_header_invalid.py
elukey/mod_h2
3418fc31b8ffe9fe477899d60ccfdecdfac1df34
[ "Apache-2.0" ]
null
null
null
# # mod-h2 test suite # check handling of invalid chars in headers # import copy import os import re import sys import time import pytest from datetime import datetime from TestEnv import TestEnv from TestHttpdConf import HttpdConf def setup_module(module): print("setup_module: %s" % module.__name__) TestEnv...
43.159292
119
0.565717
701
4,877
3.857347
0.228245
0.013314
0.017751
0.02071
0.674556
0.612056
0.602071
0.590607
0.569896
0.550296
0
0.067975
0.279065
4,877
112
120
43.544643
0.701081
0.203404
0
0.3875
0
0
0.207977
0.005698
0
0
0
0
0.2375
1
0.125
false
0
0.1125
0
0.25
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
837d850bff1c24037cf6a37770c38618903819c0
7,529
py
Python
controller/controller.py
angelocarbone/MoDelS
5bfee8d0b6e719c1d2445acf4e332597427ac906
[ "MIT" ]
1
2021-12-02T07:29:29.000Z
2021-12-02T07:29:29.000Z
controller/controller.py
angelocarbone/MoDelS
5bfee8d0b6e719c1d2445acf4e332597427ac906
[ "MIT" ]
null
null
null
controller/controller.py
angelocarbone/MoDelS
5bfee8d0b6e719c1d2445acf4e332597427ac906
[ "MIT" ]
null
null
null
from scenarios import helper from scenarios.builder import Builder from model.enumerations import e_ExperienceFactor, e_MentalOrEmotionalFactor, e_PhyOrPhyFactor, e_EntityType, e_Relation, e_CausalFactorType from model.knowledge_base import kb from model.entities import Entity, CausalFactor from model.utils import Boun...
37.272277
140
0.504582
685
7,529
5.29635
0.254015
0.089305
0.073319
0.08269
0.34785
0.261301
0.261301
0.261301
0.242558
0.242558
0
0.032501
0.399256
7,529
201
141
37.457711
0.769622
0.068402
0
0.359281
0
0
0.188803
0.029277
0
0
0
0.004975
0
1
0.08982
false
0.017964
0.065868
0.011976
0.221557
0.017964
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
837e4da85868086f6aef55e405fd04f2686a56f3
1,567
py
Python
stan/data/data_lex.py
chappers/Stan
61c189ab12ea50214390804cff5694ac51f8df35
[ "MIT" ]
1
2015-01-06T11:10:24.000Z
2015-01-06T11:10:24.000Z
stan/data/data_lex.py
chappers/Stan
61c189ab12ea50214390804cff5694ac51f8df35
[ "MIT" ]
null
null
null
stan/data/data_lex.py
chappers/Stan
61c189ab12ea50214390804cff5694ac51f8df35
[ "MIT" ]
null
null
null
""" The :mod:`stan.data_lex` module is the lexer for SAS-like language. """ from pyparsing import * from stan.data.data_expr import EXPR_, ID_, DATA, SET, RENAME, RUN, DROP, KEEP, SEMI_, LOGICAL_ # set up logic dataStepStmt = Forward() # data/set inline options rename_stmt = (OneOrMore(Group(ID_ + Suppress("=") ...
35.613636
139
0.613912
171
1,567
5.362573
0.274854
0.087241
0.045802
0.06325
0.104689
0.104689
0.104689
0
0
0
0
0
0.240587
1,567
43
140
36.44186
0.770588
0.119974
0
0
0
0
0.046886
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
837e63fb36e90c2f7dc83ee4de463a8b38b3fbca
2,334
py
Python
setup.py
JayDwayne/Neopo
964e1a13ed016b5a74ccb33b7384a0f783100cd7
[ "MIT" ]
null
null
null
setup.py
JayDwayne/Neopo
964e1a13ed016b5a74ccb33b7384a0f783100cd7
[ "MIT" ]
null
null
null
setup.py
JayDwayne/Neopo
964e1a13ed016b5a74ccb33b7384a0f783100cd7
[ "MIT" ]
null
null
null
import os from platform import system from setuptools import setup from subprocess import run, PIPE, CalledProcessError running_on_windows = system() == "Windows" running_in_docker = os.path.isfile("/.dockerenv") # Consistent version as AUR try: count = run(["git", "rev-list", "--count", "HEAD"], stdo...
35.363636
81
0.70437
301
2,334
5.378738
0.481728
0.022236
0.029648
0.023471
0.061767
0.061767
0.061767
0.061767
0.061767
0.061767
0
0.007534
0.146958
2,334
65
82
35.907692
0.805625
0.092545
0
0.039216
0
0
0.44839
0.10322
0
0
0
0
0
1
0
false
0
0.078431
0
0.078431
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8383163f22959bd98885d5ed979d31561a7823ce
1,389
py
Python
foo/pictureR/wordsTemplate.py
MangetsuC/arkHelper
02705294f1bc3ecf926e0a9c62c59026494f62f8
[ "MIT" ]
147
2020-05-06T10:36:13.000Z
2022-03-17T13:03:16.000Z
foo/pictureR/wordsTemplate.py
MangetsuC/arkHelper
02705294f1bc3ecf926e0a9c62c59026494f62f8
[ "MIT" ]
34
2020-07-21T01:20:10.000Z
2022-01-30T06:38:11.000Z
foo/pictureR/wordsTemplate.py
MangetsuC/arkHelper
02705294f1bc3ecf926e0a9c62c59026494f62f8
[ "MIT" ]
17
2020-12-10T14:42:34.000Z
2022-02-26T15:23:58.000Z
from PIL import Image, ImageDraw, ImageFont from numpy import asarray from cv2 import cvtColor, COLOR_RGB2BGR, imshow, waitKey from os import getcwd def getFontSize_name(resolution): x = resolution[0] if x <= 1024: return (16, (1024,576)) elif x <= 1280: return (21, (1280,720)) elif x <...
37.540541
101
0.670266
180
1,389
5.133333
0.422222
0.051948
0.074675
0.090909
0.36039
0.322511
0.097403
0.097403
0
0
0
0.10559
0.188625
1,389
37
102
37.540541
0.714286
0.138949
0
0.137931
0
0
0.054714
0.049663
0
0
0
0
0
1
0.103448
false
0
0.137931
0
0.482759
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8383af1ee3c86c7a8396f853fcb82a399a1772cb
1,185
py
Python
bin/concat_msa.py
HadrienG/arbetsprov
ee4b887a1a8ac43c9c8cbb016480fde14cf0e48f
[ "MIT" ]
5
2021-10-11T09:30:52.000Z
2022-01-03T07:03:17.000Z
bin/concat_msa.py
HadrienG/arbetsprov
ee4b887a1a8ac43c9c8cbb016480fde14cf0e48f
[ "MIT" ]
null
null
null
bin/concat_msa.py
HadrienG/arbetsprov
ee4b887a1a8ac43c9c8cbb016480fde14cf0e48f
[ "MIT" ]
1
2022-01-03T07:03:51.000Z
2022-01-03T07:03:51.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse from Bio import AlignIO def concat_msa(msas, output): """concatenate msas together""" alignments = [] for msa in msas: align = AlignIO.read(msa, "fasta") # shorten id so the concatenated alignment keeps it for record i...
23.7
63
0.592405
131
1,185
5.21374
0.519084
0.122987
0.04978
0.055637
0
0
0
0
0
0
0
0.005924
0.287764
1,185
50
64
23.7
0.803318
0.099578
0
0.166667
0
0
0.09434
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8384d1480db51cc6251738da74aa3074adb07e4f
11,099
py
Python
rendez-vous.py
MrDarkness117/parseTsum
03f9f4d7c9e90a48eec5c689082a4274a160f501
[ "MIT" ]
null
null
null
rendez-vous.py
MrDarkness117/parseTsum
03f9f4d7c9e90a48eec5c689082a4274a160f501
[ "MIT" ]
null
null
null
rendez-vous.py
MrDarkness117/parseTsum
03f9f4d7c9e90a48eec5c689082a4274a160f501
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.keys import Keys...
39.080986
136
0.594918
1,302
11,099
4.945469
0.288018
0.026091
0.034322
0.047523
0.360615
0.300202
0.269141
0.214785
0.202982
0.181861
0
0.010413
0.247229
11,099
283
137
39.219081
0.760263
0.028831
0
0.244726
0
0.016878
0.250047
0.073538
0
0
0
0
0
1
0.037975
false
0
0.059072
0
0.097046
0.109705
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8385a072d6737fbd7ff6db50b44b8505e7dcadb3
1,797
py
Python
public/neumeeditor/models/fields/short_code_field.py
jacobsanz97/cantus
37d139ae20972c36d4abb96a2a5ac5106b0c1b47
[ "MIT" ]
null
null
null
public/neumeeditor/models/fields/short_code_field.py
jacobsanz97/cantus
37d139ae20972c36d4abb96a2a5ac5106b0c1b47
[ "MIT" ]
null
null
null
public/neumeeditor/models/fields/short_code_field.py
jacobsanz97/cantus
37d139ae20972c36d4abb96a2a5ac5106b0c1b47
[ "MIT" ]
null
null
null
import re from django.db import models unacceptable_chars = "[^a-z0-9\._]" duplicate_spaces_and_dots = "[\ .]+" class ShortCodeField(models.CharField): description = "A short string representing a glyph name" def pre_save(self, model_instance, add): model_instance.short_code = sanitize_short_code(mo...
28.983871
82
0.582638
195
1,797
5.194872
0.584615
0.044423
0.051333
0.065153
0.053307
0.053307
0
0
0
0
0
0.002996
0.257095
1,797
61
83
29.459016
0.755805
0.119644
0
0
0
0
0.176169
0
0
0
0
0
0
1
0.090909
false
0
0.045455
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
83882ea566cc14498c7c6f7269a02089a389aa86
2,862
py
Python
src/plugins/pipeline_plugins/utils/blob.py
google/cc4d
206543832368f96bac7f55c0de93c96e32127779
[ "Apache-2.0" ]
11
2021-03-23T22:03:00.000Z
2022-03-30T17:12:38.000Z
src/plugins/pipeline_plugins/utils/blob.py
google/cc4d
206543832368f96bac7f55c0de93c96e32127779
[ "Apache-2.0" ]
3
2021-07-21T10:13:24.000Z
2021-10-18T03:44:03.000Z
src/plugins/pipeline_plugins/utils/blob.py
google/cc4d
206543832368f96bac7f55c0de93c96e32127779
[ "Apache-2.0" ]
5
2021-05-07T03:30:29.000Z
2021-11-03T21:05:00.000Z
# python3 # coding=utf-8 # Copyright 2020 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
37.657895
75
0.677149
401
2,862
4.765586
0.326683
0.062794
0.020931
0.029827
0.209315
0.189953
0.189953
0.176871
0.14652
0.107797
0
0.005505
0.238295
2,862
75
76
38.16
0.871101
0.56464
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.041667
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8388c207ef02a512832cd36b34b04ff91b5bc7e2
2,636
py
Python
LinearModel/scripts/three_classes_train.py
SMZCC/TF-deep-learn
7517685d8b4fb51f1823d4595165538305739fc7
[ "MIT" ]
null
null
null
LinearModel/scripts/three_classes_train.py
SMZCC/TF-deep-learn
7517685d8b4fb51f1823d4595165538305739fc7
[ "MIT" ]
null
null
null
LinearModel/scripts/three_classes_train.py
SMZCC/TF-deep-learn
7517685d8b4fb51f1823d4595165538305739fc7
[ "MIT" ]
null
null
null
# coding=utf-8 # date: 2019/1/1, 19:38 # name: smz import numpy as np import tensorflow as tf import matplotlib.pyplot as plt from sklearn.utils import shuffle from LinearModel.modules.model3 import ModelThreeClasses from LinearModel.configuration.options import opts from LinearModel.scripts.gen_data import generate_d...
35.621622
119
0.65478
371
2,636
4.38814
0.358491
0.03317
0.031941
0.040541
0.081081
0.028256
0
0
0
0
0
0.031342
0.225341
2,636
74
120
35.621622
0.765916
0.061836
0
0
0
0
0.08888
0.040584
0
0
0
0
0
1
0.037736
false
0
0.132075
0
0.169811
0.018868
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83894f358de50ff81cde8fdfc6091027cb2fdbb8
21,108
py
Python
trio/_core/tests/test_multierror.py
JefffHofffman/trio
d8631117ce4ca19017bbe3850704dd5ce6cfaeb1
[ "Apache-2.0", "MIT" ]
4
2017-03-01T22:14:46.000Z
2020-07-31T07:18:18.000Z
trio/_core/tests/test_multierror.py
JefffHofffman/trio
d8631117ce4ca19017bbe3850704dd5ce6cfaeb1
[ "Apache-2.0", "MIT" ]
81
2017-01-22T11:58:29.000Z
2017-05-27T22:17:49.000Z
trio/_core/tests/test_multierror.py
JefffHofffman/trio
d8631117ce4ca19017bbe3850704dd5ce6cfaeb1
[ "Apache-2.0", "MIT" ]
1
2020-05-28T19:38:09.000Z
2020-05-28T19:38:09.000Z
import logging import pytest from traceback import extract_tb, print_exception, format_exception, _cause_message import sys import os import re from pathlib import Path import subprocess from .tutil import slow from .._multierror import MultiError, concat_tb from ..._core import open_nursery class NotHashableExcep...
29.646067
88
0.648664
2,572
21,108
5.11353
0.152799
0.038473
0.046533
0.026004
0.413321
0.34892
0.303528
0.276156
0.256919
0.235173
0
0.018358
0.261939
21,108
711
89
29.687764
0.825855
0.149896
0
0.406375
0
0
0.118378
0.007056
0
0
0
0
0.231076
1
0.083665
false
0.003984
0.031873
0.007968
0.163347
0.025896
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
838a825c230b5aebf0d63f09c997caea89e365c9
3,896
py
Python
servo/drv/ec3po_gpio.py
mmind/servo-hdctools
c7d50190837497dafc45f6efe18bf01d6e70cfd2
[ "BSD-3-Clause" ]
2
2019-09-25T22:44:39.000Z
2020-07-26T22:29:20.000Z
servo/drv/ec3po_gpio.py
mmind/servo-hdctools
c7d50190837497dafc45f6efe18bf01d6e70cfd2
[ "BSD-3-Clause" ]
null
null
null
servo/drv/ec3po_gpio.py
mmind/servo-hdctools
c7d50190837497dafc45f6efe18bf01d6e70cfd2
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Driver for gpio controls through ec3po. Provides the following console controlled function: _Get_single, _Set_single, _Get_multi, _Set_multi """ imp...
25.973333
76
0.652977
550
3,896
4.483636
0.332727
0.032441
0.036902
0.012976
0.062449
0.062449
0.062449
0.02352
0
0
0
0.015337
0.24692
3,896
149
77
26.147651
0.825153
0.443275
0
0.1
0
0
0.105048
0
0
0
0.00459
0
0
1
0.116667
false
0
0.05
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8391c2e017e6f922119fae69c3e8b24e0d685ffc
2,959
py
Python
grad_cam.py
SamuelCahyawijaya/pytorch-smoothgrad
d9a5a359aab520a500e19359b309d1c030babb20
[ "MIT" ]
77
2017-07-28T15:54:44.000Z
2018-04-21T08:25:36.000Z
grad_cam.py
SamuelCahyawijaya/pytorch-smoothgrad
d9a5a359aab520a500e19359b309d1c030babb20
[ "MIT" ]
null
null
null
grad_cam.py
SamuelCahyawijaya/pytorch-smoothgrad
d9a5a359aab520a500e19359b309d1c030babb20
[ "MIT" ]
12
2019-10-11T16:00:51.000Z
2021-12-10T03:21:54.000Z
import argparse import os import sys import numpy as np from scipy import misc import cv2 import torch import torch.nn as nn from torch.autograd import Variable from torchvision.models import vgg16, vgg19 from torchvision.utils import save_image from lib.gradients import GradCam, GuidedBackpropGrad from lib.image_uti...
29.29703
84
0.677256
387
2,959
4.97416
0.299742
0.029091
0.025974
0.015584
0.075844
0.020779
0
0
0
0
0
0.010331
0.214937
2,959
100
85
29.59
0.818338
0.040892
0
0.094595
0
0
0.120099
0
0
0
0
0
0
1
0.027027
false
0
0.189189
0
0.22973
0.121622
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
839340ab08b4524ada1d06b4a611b58353ecf4dc
3,813
py
Python
ricga/ricga_server.py
MeteorKepler/laughing-invention
6f856d7ba27f956d8dceb18fe14ba2575beae6aa
[ "Apache-2.0" ]
1
2018-04-12T01:44:32.000Z
2018-04-12T01:44:32.000Z
ricga/ricga_server.py
MeteorKepler/RICGA
6f856d7ba27f956d8dceb18fe14ba2575beae6aa
[ "Apache-2.0" ]
null
null
null
ricga/ricga_server.py
MeteorKepler/RICGA
6f856d7ba27f956d8dceb18fe14ba2575beae6aa
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import cgi from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer import tensorflow as tf from ricga import configuration from ricga import inference_wrapper from ricga.inference_utils import caption_g...
37.019417
115
0.59402
426
3,813
5.124413
0.370892
0.016033
0.02382
0.026111
0.119102
0.06688
0.043976
0.043976
0.043976
0.043976
0
0.011533
0.295043
3,813
102
116
37.382353
0.800595
0.011015
0
0.050633
0
0.012658
0.229565
0.036093
0
0
0
0
0
1
0.063291
false
0
0.126582
0
0.240506
0.025316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8394cbef054df0807f179df99652e99fb23bca5e
7,331
py
Python
datacube_alchemist/_utils.py
erin-telfer/datacube-alchemist
4c37b2243027769f01ce0729e5ff56d0f6354316
[ "Apache-2.0" ]
15
2020-06-23T06:03:41.000Z
2021-12-23T00:19:01.000Z
datacube_alchemist/_utils.py
erin-telfer/datacube-alchemist
4c37b2243027769f01ce0729e5ff56d0f6354316
[ "Apache-2.0" ]
69
2019-08-14T02:03:38.000Z
2022-03-04T03:38:20.000Z
datacube_alchemist/_utils.py
erin-telfer/datacube-alchemist
4c37b2243027769f01ce0729e5ff56d0f6354316
[ "Apache-2.0" ]
3
2020-09-21T22:01:34.000Z
2021-09-22T03:02:26.000Z
import json from pathlib import Path import re from typing import Dict import boto3 import structlog from datacube.model import Dataset from datacube.virtual import Measurement, Transformation from eodatasets3 import DatasetAssembler, serialise from eodatasets3.model import DatasetDoc, ProductDoc from eodatasets3.prop...
32.438053
105
0.657755
878
7,331
5.306378
0.296128
0.042928
0.013951
0.021464
0.290191
0.268727
0.191243
0.167203
0.167203
0.167203
0
0.00971
0.227391
7,331
225
106
32.582222
0.812853
0.130542
0
0.157233
0
0.006289
0.128817
0.016539
0
0
0
0
0
1
0.062893
false
0.012579
0.09434
0.012579
0.232704
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8394cda94ca23da8940ee7626693fe1126d8fab2
834
py
Python
HMBBF/migrations/0015_auto_20161202_1733.py
HLoveMe/HWMBBF_Serve
a11fb5b67c913b62df839ce3438a3be433e3865b
[ "Apache-2.0" ]
null
null
null
HMBBF/migrations/0015_auto_20161202_1733.py
HLoveMe/HWMBBF_Serve
a11fb5b67c913b62df839ce3438a3be433e3865b
[ "Apache-2.0" ]
null
null
null
HMBBF/migrations/0015_auto_20161202_1733.py
HLoveMe/HWMBBF_Serve
a11fb5b67c913b62df839ce3438a3be433e3865b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('HMBBF', '0014_theme'), ] operations = [ migrations.AddField( model_name='theme', name='time', ...
27.8
134
0.588729
82
834
5.817073
0.597561
0.056604
0.08805
0.113208
0.213836
0.159329
0
0
0
0
0
0.09901
0.273381
834
29
135
28.758621
0.688119
0.02518
0
0.347826
0
0
0.192355
0.135635
0
0
0
0
0
1
0
false
0
0.086957
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83963bff306e66c0a55e66eed48eb8e977fd0dbd
4,649
py
Python
rb/processings/text_classifier/text_classifier.py
readerbench/ReaderBench
f0588a9a63ba21e3b8c2e5e5bc474904c07f6897
[ "Apache-2.0" ]
null
null
null
rb/processings/text_classifier/text_classifier.py
readerbench/ReaderBench
f0588a9a63ba21e3b8c2e5e5bc474904c07f6897
[ "Apache-2.0" ]
2
2021-10-17T14:00:52.000Z
2021-10-17T14:00:52.000Z
rb/processings/text_classifier/text_classifier.py
readerbench/ReaderBench
f0588a9a63ba21e3b8c2e5e5bc474904c07f6897
[ "Apache-2.0" ]
null
null
null
from rb.core.lang import Lang from rb.core.document import Document from rb.complexity.complexity_index import ComplexityIndex, compute_indices from rb.similarity.word2vec import Word2Vec from rb.similarity.vector_model import VectorModelType, CorporaEnum, VectorModel from rb.similarity.vector_model_factory import VECT...
35.219697
113
0.591955
597
4,649
4.450586
0.308208
0.05382
0.015055
0.013549
0.141513
0.11592
0.091833
0.091833
0.091833
0.091833
0
0.01052
0.304797
4,649
132
114
35.219697
0.811572
0
0
0.161905
0
0
0.077056
0.022078
0
0
0
0
0
1
0.047619
false
0.009524
0.190476
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
839812d03b6dbafa768b4338253f5ebbd452fe07
821
py
Python
vault_importer/csv.py
rpetti/vault-keepassxc-importer
7258a1062a52426e44fddce57d0f841f98f3c2c1
[ "Apache-2.0" ]
null
null
null
vault_importer/csv.py
rpetti/vault-keepassxc-importer
7258a1062a52426e44fddce57d0f841f98f3c2c1
[ "Apache-2.0" ]
null
null
null
vault_importer/csv.py
rpetti/vault-keepassxc-importer
7258a1062a52426e44fddce57d0f841f98f3c2c1
[ "Apache-2.0" ]
null
null
null
import csv class Csv: def __init__(self, csv_file): self.reader = csv.reader(open(csv_file, newline=''), delimiter=',') def parse(self): parsed = [] # Ignore the first line, 't is the header next(self.reader) for row in self.reader: secret = { ...
26.483871
75
0.483557
99
821
3.828283
0.464646
0.105541
0.105541
0.073879
0.079156
0
0
0
0
0
0
0.015779
0.38246
821
30
76
27.366667
0.731755
0.047503
0
0
0
0
0.044872
0
0
0
0
0
0
1
0.12
false
0.04
0.04
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
839832c0e53eab95cbbd979af3ec19abef8086bb
3,069
py
Python
src/reader/_plugins/enclosure_tags.py
mirekdlugosz/reader
d929b88f1981085b68e82019aa59af126479d4a9
[ "BSD-3-Clause" ]
205
2018-07-14T12:54:21.000Z
2022-03-29T06:47:13.000Z
src/reader/_plugins/enclosure_tags.py
mirekdlugosz/reader
d929b88f1981085b68e82019aa59af126479d4a9
[ "BSD-3-Clause" ]
275
2018-01-28T20:57:13.000Z
2022-03-29T21:45:11.000Z
src/reader/_plugins/enclosure_tags.py
mirekdlugosz/reader
d929b88f1981085b68e82019aa59af126479d4a9
[ "BSD-3-Clause" ]
12
2021-01-01T17:15:53.000Z
2022-03-22T09:38:12.000Z
""" enclosure_tags ~~~~~~~~~~~~~~ Fix tags for MP3 enclosures (e.g. podcasts). Adds a "with tags" link to a version of the file with tags set as follows: * the entry title as title * the feed title as album * the entry/feed author as author This plugin needs additional dependencies, use the ``unstable-plugins`` ext...
26.008475
81
0.640274
396
3,069
4.858586
0.358586
0.067568
0.038981
0.02183
0.0842
0.06341
0
0
0
0
0
0.011285
0.249267
3,069
117
82
26.230769
0.823785
0.240143
0
0.030303
0
0
0.08143
0.023697
0
0
0
0
0
1
0.075758
false
0
0.136364
0
0.257576
0.075758
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8398b2a65cd51b95d6dff4f5e09806cedb08e588
454
py
Python
sqllite/delete_the_data.py
arjunjanamatti/pymongo_practise
d69153f6a0cce9416b10c0adf300986bfe9dfe22
[ "Apache-2.0" ]
null
null
null
sqllite/delete_the_data.py
arjunjanamatti/pymongo_practise
d69153f6a0cce9416b10c0adf300986bfe9dfe22
[ "Apache-2.0" ]
null
null
null
sqllite/delete_the_data.py
arjunjanamatti/pymongo_practise
d69153f6a0cce9416b10c0adf300986bfe9dfe22
[ "Apache-2.0" ]
null
null
null
import _sqlite3 mydb = _sqlite3.connect(database = 'namelist') with mydb: cur = mydb.cursor() name = 'update_name_placeholder' cur.execute('DELETE FROM users WHERE First_name = ?', (name,)) mydb.commit() print('Data deleted!!!') cur = mydb.cursor() selectquery = 'SELECT * FROM users...
16.814815
66
0.627753
52
454
5.384615
0.576923
0.05
0.092857
0
0
0
0
0
0
0
0
0.005814
0.242291
454
26
67
17.461538
0.80814
0
0
0.133333
0
0
0.259912
0.050661
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
839cf93a477b1ceb19582913fdf13770dea82220
27,056
py
Python
sfftk_migrate/test_sfftk_migrate.py
emdb-empiar/sfftk-migrate
fc8941082256456edb61fe22ecbf932f6258352a
[ "Apache-2.0" ]
null
null
null
sfftk_migrate/test_sfftk_migrate.py
emdb-empiar/sfftk-migrate
fc8941082256456edb61fe22ecbf932f6258352a
[ "Apache-2.0" ]
2
2020-04-02T15:25:10.000Z
2020-04-03T14:32:12.000Z
sfftk_migrate/test_sfftk_migrate.py
emdb-empiar/sfftk-migrate
fc8941082256456edb61fe22ecbf932f6258352a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import types import unittest import inspect from lxml import etree from . import XSL, XML, VERSION_LIST from .core import get_module, get_stylesheet, get_source_version, get_migration_path, list_versions from .main import parse_args from .migrate import migrate_by_styleshe...
50.383613
120
0.623965
3,264
27,056
4.975184
0.101103
0.016627
0.024632
0.025617
0.591169
0.532976
0.481495
0.439436
0.391588
0.338013
0
0.019079
0.242534
27,056
536
121
50.477612
0.7733
0.110622
0
0.293399
0
0
0.123332
0.039097
0
0
0
0
0.195599
1
0.06846
false
0.002445
0.026895
0
0.124694
0.00978
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
839e9ac3360c11d26c97e8b4677e721f25a025a1
11,298
py
Python
ross/stochastic/st_shaft_element.py
hssaabbl/ross
5e548d24c8522c8a9a294479c580c21b4eb3bb65
[ "MIT" ]
69
2018-12-26T19:21:26.000Z
2022-02-10T08:48:03.000Z
ross/stochastic/st_shaft_element.py
hssaabbl/ross
5e548d24c8522c8a9a294479c580c21b4eb3bb65
[ "MIT" ]
639
2018-12-18T16:44:11.000Z
2022-03-27T16:46:41.000Z
ross/stochastic/st_shaft_element.py
hssaabbl/ross
5e548d24c8522c8a9a294479c580c21b4eb3bb65
[ "MIT" ]
136
2019-01-08T12:37:32.000Z
2022-03-30T07:14:35.000Z
"""Shaft element module for STOCHASTIC ROSS. This module creates an instance of random shaft element for stochastic analysis. """ from ross.shaft_element import ShaftElement from ross.stochastic.st_materials import ST_Material from ross.stochastic.st_results_elements import plot_histogram from ross.units import Q_, ch...
32.28
88
0.547354
1,344
11,298
4.490327
0.18378
0.034466
0.013256
0.015907
0.379122
0.35261
0.342999
0.322784
0.290472
0.290472
0
0.015786
0.355196
11,298
349
89
32.372493
0.812629
0.567623
0
0.037383
0
0
0.078399
0
0
0
0
0
0
1
0.065421
false
0
0.046729
0
0.168224
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
839ec849aea4ca2defce43d38650cfab96daff56
2,873
py
Python
sympy/benchmarks/bench_symbench.py
vprusso/sympy
d5aa27ec88bb076f59087aada97d99bfff8b2f4c
[ "BSD-3-Clause" ]
null
null
null
sympy/benchmarks/bench_symbench.py
vprusso/sympy
d5aa27ec88bb076f59087aada97d99bfff8b2f4c
[ "BSD-3-Clause" ]
null
null
null
sympy/benchmarks/bench_symbench.py
vprusso/sympy
d5aa27ec88bb076f59087aada97d99bfff8b2f4c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function, division from sympy.core.compatibility import xrange from random import random from sympy import factor, I, Integer, pi, simplify, sin, sqrt, Symbol, sympify from sympy.abc import x, y, z from timeit import default_timer as clock def bench_R1(): "real(...
21.765152
78
0.484859
495
2,873
2.707071
0.238384
0.031343
0.035821
0.041791
0.276119
0.258209
0.258209
0.180597
0.129851
0.091045
0
0.069862
0.317438
2,873
131
79
21.931298
0.613463
0.157675
0
0.020833
0
0.03125
0.142399
0.040228
0
0
0
0
0
1
0.1875
false
0.010417
0.0625
0.010417
0.322917
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
839f729c16c6176bd93a48ef474f3a2349aae65f
774
py
Python
tests/test_capture.py
atac/c10-tools
278acfaab8bb42dff448fe1fbe08e7b7f75b1752
[ "BSD-3-Clause" ]
5
2021-06-10T01:32:06.000Z
2021-12-22T23:05:52.000Z
tests/test_capture.py
atac/c10-tools
278acfaab8bb42dff448fe1fbe08e7b7f75b1752
[ "BSD-3-Clause" ]
17
2020-08-03T16:35:26.000Z
2022-03-30T17:29:41.000Z
tests/test_capture.py
atac/c10-tools
278acfaab8bb42dff448fe1fbe08e7b7f75b1752
[ "BSD-3-Clause" ]
null
null
null
from tempfile import NamedTemporaryFile import os import pytest from c10_tools.capture import main @pytest.fixture def args(): return {'<infile>': pytest.PCAP, '<outfile>': NamedTemporaryFile('wb').name, '-f': True, '-q': True, '-t': pytest.TMATS} def test_over...
22.114286
70
0.595607
101
774
4.504951
0.485149
0.072527
0.052747
0.083516
0
0
0
0
0
0
0
0.02
0.224806
774
35
71
22.114286
0.738333
0
0
0.125
0
0
0.089147
0
0
0
0
0
0.083333
1
0.166667
false
0
0.166667
0.041667
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83a1781aa9bd0a390115621e83bce23ea229c38b
1,025
py
Python
dino.py
panpepson/DinoBot-chroma-offline
a6587555bf52c1545e69d79a4d30f19ad911eff2
[ "MIT" ]
null
null
null
dino.py
panpepson/DinoBot-chroma-offline
a6587555bf52c1545e69d79a4d30f19ad911eff2
[ "MIT" ]
3
2021-06-08T21:14:50.000Z
2022-03-12T00:22:40.000Z
dino.py
panpepson/DinoBot-chroma-offline
a6587555bf52c1545e69d79a4d30f19ad911eff2
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import numpy as np import cv2 from mss.linux import MSS as mss from PIL import Image import time import pyautogui as pg #mon = {'top': 480, 'left': 130, 'width': 70, 'height': 35} mon = {'top': 200, 'left': 410, 'width': 50, 'height': 30} #git-b01 def process_image(original_image): processed_...
26.282051
80
0.62439
138
1,025
4.521739
0.514493
0.134615
0.054487
0.051282
0
0
0
0
0
0
0
0.053915
0.24
1,025
38
81
26.973684
0.747112
0.08
0
0.071429
0
0
0.054255
0
0
0
0.004255
0
0
1
0.071429
false
0
0.214286
0
0.321429
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83a1f16b819638b10f8073878aae0693547c3238
5,085
py
Python
trove/tests/scenario/groups/instance_create_group.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
1
2019-09-20T08:31:54.000Z
2019-09-20T08:31:54.000Z
trove/tests/scenario/groups/instance_create_group.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
trove/tests/scenario/groups/instance_create_group.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2015 Tesora Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
34.828767
78
0.73117
583
5,085
6.048027
0.219554
0.086217
0.039705
0.048213
0.401872
0.351957
0.22717
0.143222
0.127056
0.065797
0
0.001911
0.176598
5,085
145
79
35.068966
0.84022
0.252114
0
0.25
0
0
0.024805
0.01429
0
0
0
0
0
1
0.2
false
0
0.0625
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83a21e9300920f882ecbddf58f262c3769b6771a
20,066
py
Python
reco_utils/recommender/deeprec/models/dkn.py
suhoy901/recommenders
8ec9f1950d694a5aeaa3d463ac23cad661a30a11
[ "MIT" ]
28
2021-11-12T08:26:40.000Z
2022-03-27T07:21:24.000Z
reco_utils/recommender/deeprec/models/dkn.py
shobhit-agarwal/recommenders
8ec9f1950d694a5aeaa3d463ac23cad661a30a11
[ "MIT" ]
5
2021-11-10T02:58:32.000Z
2022-03-21T16:13:11.000Z
reco_utils/recommender/deeprec/models/dkn.py
shobhit-agarwal/recommenders
8ec9f1950d694a5aeaa3d463ac23cad661a30a11
[ "MIT" ]
9
2021-11-03T07:14:47.000Z
2022-02-22T13:42:04.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import numpy as np import tensorflow as tf from reco_utils.recommender.deeprec.models.base_model import BaseModel __all__ = ["DKN"] class DKN(BaseModel): """DKN model (Deep Knowledge-Aware Network) H. Wang, F. Zh...
41.630705
126
0.546397
2,196
20,066
4.715392
0.150273
0.023177
0.019314
0.012554
0.468469
0.358957
0.258522
0.228102
0.1521
0.145534
0
0.014402
0.377155
20,066
481
127
41.717256
0.81413
0.147214
0
0.242507
0
0
0.01521
0
0.00545
0
0
0
0
1
0.027248
false
0
0.008174
0
0.06267
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83a22a3ba1efc66d7ca002b326c88281fa4ad1f6
2,193
py
Python
LeNet-5/LeNet-5.py
huangjunxiong11/TF2
6de61c28c59ef34be7e53762b3a759da152642f7
[ "MIT" ]
null
null
null
LeNet-5/LeNet-5.py
huangjunxiong11/TF2
6de61c28c59ef34be7e53762b3a759da152642f7
[ "MIT" ]
null
null
null
LeNet-5/LeNet-5.py
huangjunxiong11/TF2
6de61c28c59ef34be7e53762b3a759da152642f7
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras import datasets, layers, optimizers, Sequential, metrics, losses # 1.数据集准备 (x, y), (x_val, y_val) = datasets.mnist.load_data() # 加载数据集,返回的是两个元组,分别表示训练集和测试集 x = tf.convert_to_tensor(x, dtype=tf.float32) / 255. # 转换为张量,并缩放到0~1 y = tf.convert_to_tensor(y, dtype=tf.int32) #...
47.673913
106
0.674875
314
2,193
4.60828
0.512739
0.033172
0.015204
0.023497
0.078784
0.052522
0.052522
0.052522
0
0
0
0.060673
0.173279
2,193
45
107
48.733333
0.737452
0.245782
0
0.108108
0
0
0.021027
0
0
0
0
0
0
1
0
false
0
0.054054
0
0.054054
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83a6888316b1c7a494fc6ea76d1fb65b1293789a
2,651
py
Python
pythonProject1/venv/Lib/site-packages/tkinterpp/dialoguebox.py
mjtomlinson/CNE330_Python_1_Final_Project
05020806860937ef37b9a0ad2e27de4897a606de
[ "CC0-1.0" ]
null
null
null
pythonProject1/venv/Lib/site-packages/tkinterpp/dialoguebox.py
mjtomlinson/CNE330_Python_1_Final_Project
05020806860937ef37b9a0ad2e27de4897a606de
[ "CC0-1.0" ]
null
null
null
pythonProject1/venv/Lib/site-packages/tkinterpp/dialoguebox.py
mjtomlinson/CNE330_Python_1_Final_Project
05020806860937ef37b9a0ad2e27de4897a606de
[ "CC0-1.0" ]
null
null
null
try: import tkinter as tk except ImportError: import Tkinter as tk class DialogueEntry(tk.Toplevel): """ DialogueEntry : tkinter.Toplevel Dialogue box that allow the user to input a text in a field. kwargs : title : title of the dialogue box text : text di...
36.819444
180
0.606941
368
2,651
4.263587
0.290761
0.022307
0.061185
0.030593
0.174634
0.100701
0.038241
0
0
0
0
0.013235
0.287439
2,651
71
181
37.338028
0.817364
0.272727
0
0.045455
0
0
0.044174
0
0
0
0
0
0
1
0.113636
false
0
0.068182
0.022727
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83a7ad962e9be184926ad2137bbbb0b45b02188c
4,781
py
Python
testing/python/tests/test_dcgm_reader.py
omertuc/DCGM
904e1600e5924ef60ac5256d492d0b7f6a7244bc
[ "Apache-2.0" ]
null
null
null
testing/python/tests/test_dcgm_reader.py
omertuc/DCGM
904e1600e5924ef60ac5256d492d0b7f6a7244bc
[ "Apache-2.0" ]
null
null
null
testing/python/tests/test_dcgm_reader.py
omertuc/DCGM
904e1600e5924ef60ac5256d492d0b7f6a7244bc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
35.947368
94
0.69316
598
4,781
5.339465
0.356187
0.033824
0.04134
0.045099
0.264015
0.220482
0.205449
0.163483
0.163483
0.163483
0
0.015907
0.224221
4,781
132
95
36.219697
0.844972
0.189291
0
0.213483
0
0
0.018552
0
0
0
0
0
0.123596
1
0.044944
false
0
0.11236
0
0.157303
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83a81a83e057b3d3c679bc9510ffe5779a6f5647
14,761
py
Python
tests/lava/lib/dl/slayer/neuron/test_alif.py
timcheck/lava-dl
e680722071129fde952ea0d744984aa2a038797a
[ "BSD-3-Clause" ]
37
2021-09-30T16:47:15.000Z
2022-03-07T22:29:21.000Z
tests/lava/lib/dl/slayer/neuron/test_alif.py
timcheck/lava-dl
e680722071129fde952ea0d744984aa2a038797a
[ "BSD-3-Clause" ]
36
2021-11-04T16:54:55.000Z
2022-03-31T02:26:29.000Z
tests/lava/lib/dl/slayer/neuron/test_alif.py
timcheck/lava-dl
e680722071129fde952ea0d744984aa2a038797a
[ "BSD-3-Clause" ]
20
2021-10-29T22:55:58.000Z
2022-03-22T17:27:16.000Z
# Copyright (C) 2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause import sys import os import unittest import numpy as np import matplotlib.pyplot as plt import torch import torch.nn.functional as F from lava.lib.dl.slayer.neuron import alif verbose = True if (('-v' in sys.argv) or ('--verbose' in sys....
34.569087
78
0.492175
1,603
14,761
4.436057
0.134747
0.044298
0.075939
0.022782
0.502883
0.398678
0.380115
0.319505
0.302348
0.23541
0
0.029434
0.376262
14,761
426
79
34.650235
0.742913
0.034551
0
0.338624
0
0
0.126598
0
0
0
0
0.002347
0.047619
1
0.018519
false
0.002646
0.021164
0
0.042328
0.066138
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83a83633ab9542d9e22f77076652f1c0ce78f53a
526
py
Python
amount_test.py
kalafut/go-ledger
28a625e31d460e0ac2926c53a30f47f159d2b82f
[ "MIT" ]
null
null
null
amount_test.py
kalafut/go-ledger
28a625e31d460e0ac2926c53a30f47f159d2b82f
[ "MIT" ]
2
2015-11-08T18:50:11.000Z
2015-11-08T18:50:42.000Z
amount_test.py
kalafut/go-ledger
28a625e31d460e0ac2926c53a30f47f159d2b82f
[ "MIT" ]
null
null
null
import decimal import pytest from amount import Amount as A def test_basic(): a = A(("0.30", "$")) assert '$ 0.30' == str(a) a = A({"$": decimal.Decimal(4)}) assert '$ 4', str(a) def test_add(): a = A(("2.34", "$")) b = A(("5.97", "$")) assert "$ 8.31" == str(a+b) c = A(("9.01", "CA...
21.04
46
0.452471
87
526
2.712644
0.37931
0.033898
0.067797
0.101695
0.127119
0
0
0
0
0
0
0.096939
0.254753
526
24
47
21.916667
0.505102
0
0
0
0
0
0.155894
0
0
0
0
0
0.388889
1
0.111111
false
0
0.166667
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83a84321ea0a0bc9570475d0ce3c63e9712bd0ca
4,449
py
Python
DiscoGAN/discogan_train.py
sumersumerdjl/kozistr-Awesome-GANs
6e20e9cd07d0ec413a187d496159b97d793dab0c
[ "MIT" ]
1
2021-08-16T01:40:46.000Z
2021-08-16T01:40:46.000Z
DiscoGAN/discogan_train.py
Psyche-mia/Awesome-GANs
6e20e9cd07d0ec413a187d496159b97d793dab0c
[ "MIT" ]
null
null
null
DiscoGAN/discogan_train.py
Psyche-mia/Awesome-GANs
6e20e9cd07d0ec413a187d496159b97d793dab0c
[ "MIT" ]
1
2021-08-16T01:35:21.000Z
2021-08-16T01:35:21.000Z
from __future__ import absolute_import from __future__ import print_function from __future__ import division import tensorflow as tf # import numpy as np import time import discogan import sys sys.path.insert(0, '../') import image_utils as iu from datasets import Pix2PixDataSet as DataSets results = { 'sampl...
34.757813
111
0.537199
507
4,449
4.439842
0.266272
0.048867
0.037317
0.030653
0.204354
0.14749
0.075522
0.052421
0.052421
0.052421
0
0.013952
0.355586
4,449
127
112
35.031496
0.771189
0.086761
0
0
0
0
0.109352
0.00668
0
0
0
0
0
1
0.012658
false
0
0.113924
0
0.126582
0.063291
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83ab1978e9bfcb9289cdc6a850d6619b639f3ad4
967
py
Python
experiments/12_wiki_training.py
dddaga/word-tree
ed6c59c16feee04d5c6003b3f5f4df68e6808e04
[ "MIT" ]
null
null
null
experiments/12_wiki_training.py
dddaga/word-tree
ed6c59c16feee04d5c6003b3f5f4df68e6808e04
[ "MIT" ]
null
null
null
experiments/12_wiki_training.py
dddaga/word-tree
ed6c59c16feee04d5c6003b3f5f4df68e6808e04
[ "MIT" ]
1
2020-12-02T09:07:06.000Z
2020-12-02T09:07:06.000Z
import numpy as np EXPERIMENT_NAME = 'EXP_12' CORPUS_PATH = '/home/dddhiraj/Documents/stuff/data/wiki_en.txt' TRAINING_WINDOW = 5 CONTEXT_DIMENSION = 64 LEANING_RATE = 1 DROPOUT = 0.05 CONTEXT_DECAY = 1 - TRAINING_WINDOW ** -0.5 CONTRASTIVE_WEIGHT = 1#0.1 NEGATIVE_SAMPLE_SIZE ...
21.021739
82
0.680455
127
967
4.984252
0.590551
0.088468
0.063191
0.06951
0
0
0
0
0
0
0
0.05277
0.216132
967
45
83
21.488889
0.782322
0.152017
0
0
0
0
0.139001
0.097166
0
0
0
0
0
1
0
false
0
0.130435
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83ab5e631ea0bec7a174bfa753c93a724a3979a9
49,562
py
Python
yasi.py
arenadotio/yasi-sexp-indenter
f64cd332b3f41d7c2b3458b4279a13ec26df16b8
[ "MIT" ]
null
null
null
yasi.py
arenadotio/yasi-sexp-indenter
f64cd332b3f41d7c2b3458b4279a13ec26df16b8
[ "MIT" ]
1
2020-07-14T16:07:38.000Z
2020-07-14T16:07:38.000Z
yasi.py
arenadotio/yasi-sexp-indenter
f64cd332b3f41d7c2b3458b4279a13ec26df16b8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 """ yasi Date: 20th November 2013 Author: nkmathew <kipkoechmathew@gmail.com> Dialect aware s-expression indenter """ from __future__ import print_function import argparse import hashlib import os import re import shutil import sys import time import collections import json i...
38.994493
115
0.57877
6,196
49,562
4.487895
0.137831
0.005394
0.012838
0.006725
0.21509
0.151473
0.099759
0.08131
0.066746
0.057036
0
0.006458
0.297042
49,562
1,270
116
39.025197
0.791676
0.290888
0
0.192819
0
0.00266
0.166929
0.014186
0
0
0
0
0.003989
1
0.041223
false
0.00133
0.025266
0
0.113032
0.013298
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83abb74e341537b5ab6f003c11360924411e10b7
4,014
py
Python
Chapter09/01-optimize-mlp-layers.py
KonstantinKlepikov/Hands-On-Genetic-Algorithms-with-Python
ee5e7c5f8274a7ce22c3b528f86fa2bb1695e686
[ "MIT" ]
null
null
null
Chapter09/01-optimize-mlp-layers.py
KonstantinKlepikov/Hands-On-Genetic-Algorithms-with-Python
ee5e7c5f8274a7ce22c3b528f86fa2bb1695e686
[ "MIT" ]
null
null
null
Chapter09/01-optimize-mlp-layers.py
KonstantinKlepikov/Hands-On-Genetic-Algorithms-with-Python
ee5e7c5f8274a7ce22c3b528f86fa2bb1695e686
[ "MIT" ]
null
null
null
from deap import base from deap import creator from deap import tools import random import numpy import mlp_layers_test import elitism # boundaries for layer size parameters: # [layer_layer_1_size, hidden_layer_2_size, hidden_layer_3_size, hidden_layer_4_size] BOUNDS_LOW = [ 5, -5, -10, -20] BOUNDS_HIGH = [15, 10...
31.359375
89
0.623069
432
4,014
5.585648
0.356481
0.041028
0.03937
0.011604
0.077911
0.059677
0.059677
0.059677
0.059677
0
0
0.015603
0.297459
4,014
128
90
31.359375
0.840071
0.254609
0
0.08
0
0
0.056267
0.014151
0
0
0
0
0
1
0.026667
false
0
0.093333
0.013333
0.133333
0.013333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83ade6c082d1004a672714e19137f8f4cc8ec685
748
py
Python
notifications_utils/__init__.py
cds-snc/notifier-utils
c3a205ac4381312fe1884a39ffafa7ffb862736f
[ "MIT" ]
3
2020-04-29T17:13:43.000Z
2020-12-04T21:08:33.000Z
notifications_utils/__init__.py
cds-snc/notifier-utils
c3a205ac4381312fe1884a39ffafa7ffb862736f
[ "MIT" ]
21
2020-04-16T12:29:46.000Z
2022-02-28T17:17:15.000Z
notifications_utils/__init__.py
cds-snc/notifier-utils
c3a205ac4381312fe1884a39ffafa7ffb862736f
[ "MIT" ]
4
2020-02-21T20:20:00.000Z
2021-02-11T19:00:59.000Z
import re SMS_CHAR_COUNT_LIMIT = 612 # 153 * 4 # regexes for use in recipients.validate_email_address. # Valid characters taken from https://en.wikipedia.org/wiki/Email_address#Local-part # Note: Normal apostrophe eg `Firstname-o'surname@domain.com` is allowed. hostname_part = re.compile(r"^(xn-|[a-z0-9]+)(-[a-z0-9]...
44
92
0.667112
120
748
4
0.633333
0.025
0.033333
0.058333
0.091667
0.091667
0.091667
0.091667
0.091667
0
0
0.02994
0.106952
748
16
93
46.75
0.688623
0.403743
0
0
0
0.1
0.332574
0.289294
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83af8ba0d0f4e817ed4ef6eadece62ddc41fd7db
1,230
py
Python
respondd/Cache.py
FreiFunkMuenster/py-respondd
4b59b0fa2418ed021abe2dca5906b8290e4600d0
[ "MIT" ]
null
null
null
respondd/Cache.py
FreiFunkMuenster/py-respondd
4b59b0fa2418ed021abe2dca5906b8290e4600d0
[ "MIT" ]
null
null
null
respondd/Cache.py
FreiFunkMuenster/py-respondd
4b59b0fa2418ed021abe2dca5906b8290e4600d0
[ "MIT" ]
null
null
null
import time class Cache(object): globalCache = {} localCace = {} timeout = 0 now = time.time() @staticmethod def setTimeout(timeout): Cache.timeout = timeout @staticmethod def updateTime(): Cache.now = time.time() @staticmethod def _isValid(timestamp): return True if Cache.now - Cache.timeout <= tim...
22.363636
66
0.652846
156
1,230
5.128205
0.211538
0.06
0.1275
0.095
0.46375
0.27125
0.155
0.155
0.155
0.155
0
0.000999
0.186179
1,230
55
67
22.363636
0.798202
0
0
0.333333
0
0
0.060114
0
0
0
0
0
0
1
0.155556
false
0
0.022222
0.066667
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
83b152d0790dab9900fa13fb39789949a2ecb7fe
6,664
py
Python
examples/move_presets.py
crazy-djactor/OnVifControlCam
36b1d70b4c025b1bce8ed8ddc1d95c04fe298e1d
[ "MIT" ]
null
null
null
examples/move_presets.py
crazy-djactor/OnVifControlCam
36b1d70b4c025b1bce8ed8ddc1d95c04fe298e1d
[ "MIT" ]
null
null
null
examples/move_presets.py
crazy-djactor/OnVifControlCam
36b1d70b4c025b1bce8ed8ddc1d95c04fe298e1d
[ "MIT" ]
null
null
null
import zeep import asyncio, sys from onvif import ONVIFCamera import cv2 import numpy as np import urllib from urllib.request import urlopen IP="192.168.2.22" # Camera IP address PORT=80 # Port USER="admin" # Username PASS="C0nc3ll0M4r1n" # Password XMAX = 1 XMIN = -1 YMAX = 1 YMIN = -1 mov...
36.415301
144
0.620048
703
6,664
5.762447
0.229018
0.051839
0.041471
0.035794
0.460133
0.422859
0.415453
0.333992
0.314984
0.314984
0
0.012531
0.269508
6,664
183
145
36.415301
0.819638
0.232293
0
0.375
0
0
0.084909
0.004531
0
0
0
0
0
1
0.041667
false
0.041667
0.075
0.008333
0.191667
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83b20a373bfc0ad0b76d049c2ba241c013b10033
737
py
Python
utils.py
OttrOne/suivi
9e53a39b0f50054b89cb960eb9055fd0a28a5ebf
[ "MIT" ]
null
null
null
utils.py
OttrOne/suivi
9e53a39b0f50054b89cb960eb9055fd0a28a5ebf
[ "MIT" ]
2
2022-01-11T15:50:04.000Z
2022-01-13T01:53:53.000Z
utils.py
OttrOne/suivi
9e53a39b0f50054b89cb960eb9055fd0a28a5ebf
[ "MIT" ]
null
null
null
from string import ascii_lowercase, digits from random import choice from re import compile def id_generator(length=8, chars=ascii_lowercase + digits): return ''.join(choice(chars) for _ in range(length)) def hrsize(num: int) -> str: for unit in ['', 'KiB', 'MiB', 'GiB', 'TiB']: if num < 1024.0: ...
28.346154
72
0.58616
99
737
4.313131
0.505051
0.035129
0.093677
0
0
0
0
0
0
0
0
0.02403
0.265943
737
25
73
29.48
0.76525
0.050204
0
0
0
0
0.075931
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0.055556
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83b3965c73ce131b836c28e365aa820a33396d8f
2,602
py
Python
DiSPy/core/path.py
munrojm/DiSPy
c1ae9e213d16bfd098b362e7d54d997cd95f8919
[ "MIT" ]
19
2018-10-05T01:49:36.000Z
2021-11-23T13:35:22.000Z
DiSPy/core/path.py
munrojm/DiSPy
c1ae9e213d16bfd098b362e7d54d997cd95f8919
[ "MIT" ]
1
2019-03-27T20:13:08.000Z
2019-03-28T23:22:22.000Z
DiSPy/core/path.py
munrojm/DiSPy
c1ae9e213d16bfd098b362e7d54d997cd95f8919
[ "MIT" ]
6
2019-06-05T21:41:16.000Z
2021-04-07T09:23:42.000Z
import numpy as np from typing import Dict, List from monty.json import MSONable from pymatgen.core.structure import Structure from pymatgen.symmetry.groups import SymmOp from DiSPy.core.dg import DistortionGroup from DiSPy.core.vecutils import closewrapped # -- Path object and its attributes class Path(MSONable):...
30.97619
112
0.593774
328
2,602
4.493902
0.283537
0.040706
0.067843
0.037992
0.05156
0
0
0
0
0
0
0.011858
0.31937
2,602
83
113
31.349398
0.82044
0.022675
0
0.098361
0
0
0.038598
0
0
0
0
0
0
1
0.131148
false
0
0.114754
0.065574
0.344262
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83b730a44041eeddf60233b1f8b68fb907f48e86
2,386
py
Python
tests/unit/test_product.py
jeantardelli/architecture-patterns-with-python
d48c7d6d4a44073b815c7e6770e44cf2e231e35b
[ "MIT" ]
1
2021-04-07T18:04:56.000Z
2021-04-07T18:04:56.000Z
tests/unit/test_product.py
jeantardelli/architecture-patterns-with-python
d48c7d6d4a44073b815c7e6770e44cf2e231e35b
[ "MIT" ]
null
null
null
tests/unit/test_product.py
jeantardelli/architecture-patterns-with-python
d48c7d6d4a44073b815c7e6770e44cf2e231e35b
[ "MIT" ]
null
null
null
from datetime import date, timedelta from allocation.domain import events from allocation.domain.model import Product, OrderLine, Batch today = date.today() tomorrow = today + timedelta(days=1) later = tomorrow + timedelta(days=10) def test_prefers_warehouse_batches_to_shipments(): in_stock_batch = Batch("in-stoc...
39.114754
86
0.720034
304
2,386
5.496711
0.256579
0.033513
0.057451
0.059844
0.27289
0.14602
0.083782
0.049072
0
0
0
0.029843
0.143336
2,386
60
87
39.766667
0.787671
0
0
0.066667
0
0
0.167645
0
0
0
0
0
0.2
1
0.111111
false
0
0.066667
0
0.177778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83b9a7791d97770f25fe0980d7aaeedc83bafde6
6,129
py
Python
tests/unit/states/test_grafana.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
1
2020-03-31T22:51:16.000Z
2020-03-31T22:51:16.000Z
tests/unit/states/test_grafana.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
null
null
null
tests/unit/states/test_grafana.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
1
2021-09-30T07:00:01.000Z
2021-09-30T07:00:01.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: Jayesh Kariya <jayeshk@saltstack.com> ''' # Import Python libs from __future__ import absolute_import, print_function, unicode_literals # Import Salt Testing Libs from tests.support.mixins import LoaderModuleMockMixin from tests.support.unit import TestCase from tests.suppo...
44.093525
81
0.498287
530
6,129
5.630189
0.228302
0.080429
0.077078
0.081434
0.585121
0.538539
0.487265
0.329759
0.283847
0.283847
0
0.002645
0.383097
6,129
138
82
44.413043
0.786564
0.058574
0
0.479592
0
0
0.144062
0
0
0
0
0
0.122449
1
0.030612
false
0
0.071429
0.010204
0.122449
0.010204
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83b9dae35ff849de97a8ab5c1b5b328eee4bf2a8
517
py
Python
08.Graph/Kruskal.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
1
2021-11-21T06:03:06.000Z
2021-11-21T06:03:06.000Z
08.Graph/Kruskal.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
2
2021-10-13T07:21:09.000Z
2021-11-14T13:53:08.000Z
08.Graph/Kruskal.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
null
null
null
def pprint(arr): for line in arr: print(line) # 5 7 # 0 1 1 # 0 2 3 # 1 2 3 # 1 3 6 # 2 3 4 # 2 4 2 # 3 4 5 import sys import heapq as hq N, M = map(int, sys.stdin.readline().split(" ")) W = [[float('inf')] * N for _ in range(N)] h = [] for _ in range(M): i, j, w = map(int, sys.stdin.readline().split(...
16.15625
55
0.537718
96
517
2.875
0.447917
0.028986
0.021739
0.101449
0.195652
0.195652
0
0
0
0
0
0.06469
0.282398
517
32
56
16.15625
0.679245
0.087041
0
0
0
0
0.010776
0
0
0
0
0
0
1
0.105263
false
0
0.105263
0
0.263158
0.210526
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83bb637db13a5d4678648b8d28c8559126ac4919
3,176
py
Python
archivist/parser.py
Serhiy1/archivist-python
70c7acf29eecd303bb1517d3636663d83f36cc2c
[ "MIT" ]
2
2021-05-04T15:12:37.000Z
2021-09-08T10:04:41.000Z
archivist/parser.py
Serhiy1/archivist-python
70c7acf29eecd303bb1517d3636663d83f36cc2c
[ "MIT" ]
35
2021-05-04T12:39:26.000Z
2022-03-28T09:20:19.000Z
archivist/parser.py
Serhiy1/archivist-python
70c7acf29eecd303bb1517d3636663d83f36cc2c
[ "MIT" ]
6
2021-04-28T14:49:48.000Z
2022-01-07T15:29:05.000Z
"""common parser argument """ # pylint: disable=missing-docstring # pylint: disable=too-few-public-methods import argparse from enum import Enum import logging from sys import exit as sys_exit from . import archivist from .logger import set_logger from .proof_mechanism import ProofMechanism LOGGER = logging.getL...
25.821138
90
0.630668
362
3,176
5.395028
0.428177
0.035842
0.026114
0.015361
0.025602
0
0
0
0
0
0
0.004274
0.263224
3,176
122
91
26.032787
0.830342
0.129723
0
0.084337
0
0
0.187843
0
0
0
0
0
0
1
0.048193
false
0
0.084337
0
0.168675
0.012048
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83bc85a7d09d10f1f239ce0341b95393b82459b8
6,635
py
Python
skytap/models/UserData.py
mapledyne/skytap
c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45
[ "MIT" ]
3
2019-04-17T13:07:30.000Z
2021-09-09T22:01:14.000Z
skytap/models/UserData.py
FulcrumIT/skytap
c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45
[ "MIT" ]
10
2016-11-02T20:48:38.000Z
2021-09-15T15:29:34.000Z
skytap/models/UserData.py
FulcrumIT/skytap
c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45
[ "MIT" ]
3
2016-03-03T07:25:13.000Z
2016-08-30T15:33:03.000Z
"""Support for the UserData resource in Skytap. Specifically, this is for custom ('user data') that's applied to an environment or VM. This data can be text or, in the context of using it with this Skytap script, it can also be JSON or YAML and will then be re-parsed. This allows users to put data into a VM user data...
29.753363
79
0.505803
774
6,635
4.271318
0.213178
0.042347
0.025408
0.036298
0.370841
0.322747
0.27556
0.198427
0.198427
0.155777
0
0.005304
0.37483
6,635
222
80
29.887387
0.791707
0.279729
0
0.512605
0
0
0.063172
0
0
0
0
0
0
1
0.07563
false
0
0.02521
0
0.193277
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83bf94a78ac2eb29dfd1c2b50e991146823fcf6e
2,345
py
Python
generate_trajectories.py
keuntaeklee/pytorch-PPUU
0ba8c953df9cdb1e9937e301ed3384ac6b66ea73
[ "MIT" ]
159
2019-01-23T07:17:36.000Z
2022-03-29T14:33:31.000Z
generate_trajectories.py
keuntaeklee/pytorch-PPUU
0ba8c953df9cdb1e9937e301ed3384ac6b66ea73
[ "MIT" ]
44
2019-04-29T15:11:44.000Z
2022-02-21T18:28:46.000Z
generate_trajectories.py
keuntaeklee/pytorch-PPUU
0ba8c953df9cdb1e9937e301ed3384ac6b66ea73
[ "MIT" ]
61
2019-01-23T12:31:54.000Z
2022-03-07T09:25:20.000Z
import argparse, pdb import gym import numpy as np import os import pickle import random import torch import scipy.misc from gym.envs.registration import register parser = argparse.ArgumentParser() parser.add_argument('-display', type=int, default=0) parser.add_argument('-seed', type=int, default=1) parser.add_argumen...
24.946809
103
0.704478
349
2,345
4.598854
0.295129
0.06729
0.127103
0.037383
0.248598
0.196262
0.196262
0
0
0
0
0.028445
0.13049
2,345
93
104
25.215054
0.758705
0
0
0.126582
0
0
0.207249
0.03113
0
0
0
0
0
1
0
false
0
0.113924
0
0.113924
0.025316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83c0b7884ac12f94ceaeb582cc3c5f5cebb5a227
999
py
Python
main.py
mvazifeh/gridart
78c01d6e660ca9c61f1220e102975ca632a2af6b
[ "MIT" ]
null
null
null
main.py
mvazifeh/gridart
78c01d6e660ca9c61f1220e102975ca632a2af6b
[ "MIT" ]
null
null
null
main.py
mvazifeh/gridart
78c01d6e660ca9c61f1220e102975ca632a2af6b
[ "MIT" ]
null
null
null
import matplotlib.pylab as plt import numpy as np import random from scipy.ndimage import gaussian_filter mu =9 N = 50 k = 10 eta =10 sigma = 2 p0 = 0.5 inverse_random = False L = range(N*N) Q = np.zeros((N*mu,N*mu)) for o in range(mu*mu): print(o) F = 1000*k a = np.ones((N,N)) for k_ in range(1000): ...
24.975
79
0.573574
183
999
3.060109
0.387978
0.021429
0.05
0.064286
0.078571
0.078571
0
0
0
0
0
0.039526
0.24024
999
39
80
25.615385
0.698287
0
0
0
0
0
0.01001
0
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
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
83c0d18d58ec56ff811ed70776d16216d48d95ed
9,841
py
Python
fixture/contact.py
ruslankl9/python_training
7bcaf2606a80935a4a0c458af4e6a078f241fb38
[ "Apache-2.0" ]
null
null
null
fixture/contact.py
ruslankl9/python_training
7bcaf2606a80935a4a0c458af4e6a078f241fb38
[ "Apache-2.0" ]
null
null
null
fixture/contact.py
ruslankl9/python_training
7bcaf2606a80935a4a0c458af4e6a078f241fb38
[ "Apache-2.0" ]
null
null
null
from model.contact import Contact import re class ContactHelper(object): def __init__(self, app): self.app = app def change_field_value(self, field_name, text): wd = self.app.wd if text is not None: wd.find_element_by_name(field_name).click() wd.find_element_b...
43.737778
117
0.648206
1,340
9,841
4.422388
0.115672
0.03645
0.072393
0.080999
0.557712
0.494769
0.426426
0.361964
0.339352
0.319609
0
0.00593
0.22894
9,841
225
118
43.737778
0.77504
0.034143
0
0.338889
0
0.005556
0.094272
0.047981
0
0
0
0
0
1
0.133333
false
0
0.011111
0
0.177778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83c2085a8eb1b76f57b29dca121b213d911376c1
3,137
py
Python
vacancies_and_studentships/models.py
okyame/Arkestra
4aa22816b33d8f2d7a6bc8f7a498957134b557dd
[ "BSD-2-Clause" ]
1
2020-01-15T15:17:06.000Z
2020-01-15T15:17:06.000Z
vacancies_and_studentships/models.py
okyame/Arkestra
4aa22816b33d8f2d7a6bc8f7a498957134b557dd
[ "BSD-2-Clause" ]
null
null
null
vacancies_and_studentships/models.py
okyame/Arkestra
4aa22816b33d8f2d7a6bc8f7a498957134b557dd
[ "BSD-2-Clause" ]
null
null
null
from django.db import models # from cms.models.fields import PlaceholderField from cms.models import CMSPlugin # from filer.fields.image import FilerImageField from arkestra_utilities.output_libraries.dates import nice_date # from arkestra_utilities.models import ArkestraGenericModel from arkestra_utilities.generic_...
36.057471
157
0.723621
355
3,137
6.233803
0.430986
0.027113
0.047447
0.04338
0.074108
0.062359
0.039765
0.039765
0
0
0
0.005569
0.198597
3,137
87
158
36.057471
0.874702
0.215811
0
0.076923
0
0
0.117258
0.010735
0
0
0
0
0
1
0.057692
false
0.019231
0.153846
0.038462
0.653846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83c2e6b596e3c848fe9f97b575c98a5ef638509f
2,660
py
Python
src/olympia/github/tests/test_views.py
gijsk/addons-server
7c38f379e3a0b4a5ca231f98ac0c049450c224bd
[ "BSD-3-Clause" ]
null
null
null
src/olympia/github/tests/test_views.py
gijsk/addons-server
7c38f379e3a0b4a5ca231f98ac0c049450c224bd
[ "BSD-3-Clause" ]
null
null
null
src/olympia/github/tests/test_views.py
gijsk/addons-server
7c38f379e3a0b4a5ca231f98ac0c049450c224bd
[ "BSD-3-Clause" ]
null
null
null
import json from django.utils.http import urlencode import mock import requests from olympia.amo.tests import AMOPaths, TestCase from olympia.amo.urlresolvers import reverse from olympia.files.models import FileUpload from olympia.github.tests.test_github import ( GithubBaseTestCase, example_pull_request) clas...
31.666667
77
0.642105
327
2,660
5.058104
0.333333
0.053204
0.043531
0.029021
0.235792
0.189843
0.154776
0.110036
0.110036
0.110036
0
0.009014
0.249248
2,660
83
78
32.048193
0.819229
0.029323
0
0.109375
0
0
0.112834
0.025591
0
0
0
0
0.09375
1
0.140625
false
0
0.125
0
0.296875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83c3b7af49b5b0a425d6a463dbe982452346eedf
4,381
py
Python
src/ns_web_api/web/ptx/thsr.py
steny138/PyNintendoEPrice
def9c95690cf3cf72615ae4216fee8fca2934de1
[ "Apache-2.0" ]
null
null
null
src/ns_web_api/web/ptx/thsr.py
steny138/PyNintendoEPrice
def9c95690cf3cf72615ae4216fee8fca2934de1
[ "Apache-2.0" ]
3
2020-06-22T15:38:18.000Z
2021-11-24T02:01:51.000Z
src/ns_web_api/web/ptx/thsr.py
steny138/PyNintendoEPrice
def9c95690cf3cf72615ae4216fee8fca2934de1
[ "Apache-2.0" ]
1
2018-08-04T08:15:05.000Z
2018-08-04T08:15:05.000Z
import requests import logging from .auth import Auth domain = "https://ptx.transportdata.tw/MOTC/v2/Rail/THSR/" default_limit_count = 20 logger = logging.getLogger('flask.app') auth = Auth() def get_station(): """GET /v2/Rail/THSR/Station 取得車站基本資料 Returns: [dict] -- 車站基本資料 """ action = "...
20.471963
105
0.582059
488
4,381
5.07377
0.260246
0.067851
0.028271
0.031502
0.358643
0.358643
0.358643
0.358643
0.358643
0.358643
0
0.004686
0.269345
4,381
213
106
20.568075
0.768822
0.207943
0
0.465347
0
0
0.09055
0.0079
0
0
0
0
0
1
0.079208
false
0.019802
0.029703
0
0.277228
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83c68825efc5cb85db8af2cf295d7be0c83834f7
11,214
py
Python
curriculum/experiments/goals/point_nd/goal_point_nd_trpo.py
coco-robotics/rllab-curriculum
f55b50224fcf5a9a5c064542eb0850a966cab223
[ "MIT" ]
115
2017-12-06T16:31:10.000Z
2022-03-01T13:13:55.000Z
curriculum/experiments/goals/point_nd/goal_point_nd_trpo.py
coco-robotics/rllab-curriculum
f55b50224fcf5a9a5c064542eb0850a966cab223
[ "MIT" ]
21
2017-11-15T18:28:16.000Z
2021-04-22T15:26:45.000Z
curriculum/experiments/goals/point_nd/goal_point_nd_trpo.py
coco-robotics/rllab-curriculum
f55b50224fcf5a9a5c064542eb0850a966cab223
[ "MIT" ]
46
2017-12-22T22:26:01.000Z
2022-02-17T06:34:15.000Z
from curriculum.utils import set_env_no_gpu, format_experiment_prefix set_env_no_gpu() import argparse import math import os import os.path as osp import sys import random from multiprocessing import cpu_count import numpy as np import tensorflow as tf from rllab.misc.instrument import run_experiment_lite from rllab...
40.05
124
0.626895
1,381
11,214
4.852281
0.251991
0.04074
0.022832
0.019699
0.223996
0.198478
0.190569
0.180719
0.173258
0.149978
0
0.011233
0.261726
11,214
279
125
40.193548
0.798164
0.108168
0
0.15534
0
0
0.172695
0.015919
0
0
0
0
0
1
0.004854
false
0
0.121359
0
0.126214
0.019417
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83c83c646b4979fd4f5db5513084e63e8c7ce3e0
2,176
py
Python
health_reminder.py
carlkho-cvk/tbe_discord
f1dc05d0cd288b1be4e8d164f58056422627fcc1
[ "MIT" ]
null
null
null
health_reminder.py
carlkho-cvk/tbe_discord
f1dc05d0cd288b1be4e8d164f58056422627fcc1
[ "MIT" ]
null
null
null
health_reminder.py
carlkho-cvk/tbe_discord
f1dc05d0cd288b1be4e8d164f58056422627fcc1
[ "MIT" ]
null
null
null
# Fitness monday variables morning_1 = "10:00" morning_2 = "8:00" afternoon_1 = "13:00" afternoon_2 = "14:30" afternoon_3 = "15:30" afternoon_4 = "17:55" evening_1 = "20:30" evening_2 = "21:10" date_announce = [1, 2, 3, 4, 5] image_file_list = [ 'Exercise_Three.png', 'Exercise_Two_2.png' ] ...
31.085714
94
0.664522
311
2,176
4.376206
0.324759
0.080823
0.076414
0.105805
0.308597
0.285085
0.245408
0.245408
0
0
0
0.052315
0.235754
2,176
69
95
31.536232
0.766085
0.059283
0
0
0
0
0.296615
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83ca8eae1114abccb3186c9a6251ba6c788bcf35
6,559
py
Python
Image_Content_Analysis/deeplab-pytorch-master/labelImsTest.py
PonceLab/as-simple-as-possible
a4093651f226d749b204c48b623acb28221c3bc2
[ "MIT" ]
1
2021-04-16T02:08:39.000Z
2021-04-16T02:08:39.000Z
Image_Content_Analysis/deeplab-pytorch-master/labelImsTest.py
PonceLab/as-simple-as-possible
a4093651f226d749b204c48b623acb28221c3bc2
[ "MIT" ]
1
2021-07-27T16:17:41.000Z
2021-07-27T16:17:41.000Z
Image_Content_Analysis/deeplab-pytorch-master/labelImsTest.py
PonceLab/as-simple-as-possible
a4093651f226d749b204c48b623acb28221c3bc2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Author: Kazuto Nakashima # URL: https://kazuto1011.github.io # Date: 07 January 2019 from __future__ import absolute_import, division, print_function import click import cv2 import matplotlib import matplotlib.cm as cm import matplotlib.pyplot as plt import...
34.161458
309
0.639579
807
6,559
5.083024
0.283767
0.025353
0.019015
0.017552
0.326182
0.266943
0.257679
0.221599
0.221599
0.221599
0
0.023298
0.247446
6,559
191
310
34.340314
0.807739
0.201403
0
0.128
0
0
0.014967
0
0
0
0
0
0
1
0.056
false
0
0.104
0
0.208
0.032
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83cb1b811a0c4db430f4a4ca89a5f71fcbd3b310
1,131
py
Python
setup.py
kvietcong/md-tangle
4170c72f7119adc62eeb75822081a6858ed3c9dc
[ "MIT" ]
14
2019-04-15T08:51:10.000Z
2022-03-25T20:37:28.000Z
setup.py
kvietcong/md-tangle
4170c72f7119adc62eeb75822081a6858ed3c9dc
[ "MIT" ]
4
2019-03-09T22:02:50.000Z
2021-08-24T21:03:48.000Z
setup.py
kvietcong/md-tangle
4170c72f7119adc62eeb75822081a6858ed3c9dc
[ "MIT" ]
3
2020-12-24T05:23:53.000Z
2022-03-23T14:00:44.000Z
import setuptools import md_tangle with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name=md_tangle.__title__, version=md_tangle.__version__, license=md_tangle.__license__, author=md_tangle.__author__, author_email=md_tangle.__author_email__, description="Ge...
31.416667
76
0.650752
116
1,131
6.017241
0.560345
0.103152
0.10745
0.08596
0
0
0
0
0
0
0
0.002265
0.219275
1,131
35
77
32.314286
0.788222
0
0
0
0
0
0.402299
0
0
0
0
0
0
1
0
false
0
0.060606
0
0.060606
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83cb7ebba4b89b28bb78615faadb44744d2cc3e7
3,658
py
Python
src/dvi/bayes_models.py
luoyan407/predict_trustworthiness
8f394fc511b9aa31a766a30f0e1b059481aa5f76
[ "MIT" ]
5
2021-10-04T06:11:21.000Z
2022-02-22T17:57:43.000Z
src/dvi/bayes_models.py
luoyan407/predict_trustworthiness
8f394fc511b9aa31a766a30f0e1b059481aa5f76
[ "MIT" ]
null
null
null
src/dvi/bayes_models.py
luoyan407/predict_trustworthiness
8f394fc511b9aa31a766a30f0e1b059481aa5f76
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from .bayes_layers import VariationalLinearCertainActivations, VariationalLinearReLU from .variables import GaussianVar class MLP(nn.Module): def __init__(self, x_dim, y_dim, hidden_size=None): super(MLP, self).__init__() self.siz...
37.71134
124
0.61099
462
3,658
4.640693
0.170996
0.062966
0.048507
0.066698
0.477612
0.399254
0.371269
0.371269
0.310634
0.310634
0
0.012936
0.239202
3,658
96
125
38.104167
0.757456
0.222526
0
0.066667
0
0
0.04174
0
0
0
0
0
0
1
0.2
false
0
0.083333
0.066667
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83cfd9aa79927b2baa0758f343509a236b7d9e4c
393
py
Python
bai01/keocatgiay.py
YtalYa/CSx101-A1-2021-02
5d95faa483c7a98d8ea75fb3a1720c12e1c1e727
[ "MIT" ]
null
null
null
bai01/keocatgiay.py
YtalYa/CSx101-A1-2021-02
5d95faa483c7a98d8ea75fb3a1720c12e1c1e727
[ "MIT" ]
null
null
null
bai01/keocatgiay.py
YtalYa/CSx101-A1-2021-02
5d95faa483c7a98d8ea75fb3a1720c12e1c1e727
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # from time import time # from math import sqrt # with open("inp.txt", "r") as f: # a, b = list(i for i in f.read().split()) a, b = input().split() # print(a,b,c, type(a), type(int(a))) a = int(a) b = int(b) # st = time() # ----- s1 = a * (a - 1) // 2 cuoi = b - 2 dau = b - a s2 = (dau + cuoi) *...
17.086957
43
0.508906
74
393
2.702703
0.486486
0.04
0.03
0
0
0
0
0
0
0
0
0.033223
0.234097
393
23
44
17.086957
0.631229
0.544529
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83d111ca41c3bb0510b5e6661f1236eaf7537220
576
py
Python
msort/check/age.py
leighmacdonald/msort
b9182d7e3f01ffdb85229dd6e74ad270c766a2d8
[ "MIT" ]
4
2015-02-22T04:27:23.000Z
2021-11-30T14:39:10.000Z
msort/check/age.py
leighmacdonald/msort
b9182d7e3f01ffdb85229dd6e74ad270c766a2d8
[ "MIT" ]
null
null
null
msort/check/age.py
leighmacdonald/msort
b9182d7e3f01ffdb85229dd6e74ad270c766a2d8
[ "MIT" ]
null
null
null
""" Module to scan for empty folders and directories """ from time import time from msort.check import BaseCheck, CheckSkip class AgeCheck(BaseCheck): """ A simple checker which will validate a file or folders age. """ def __call__(self, section, path): if self.conf.getboolean('minimum_age', '...
30.315789
96
0.642361
75
576
4.8
0.626667
0.083333
0
0
0
0
0
0
0
0
0
0.013889
0.25
576
18
97
32
0.819444
0.1875
0
0
0
0
0.182432
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83d316b3fd73a29aececfa45fc1d41b8ed48ae12
5,141
py
Python
scripts/component_graph/server/fpm/package_manager.py
winksaville/Fuchsia
a0ec86f1d51ae8d2538ff3404dad46eb302f9b4f
[ "BSD-3-Clause" ]
3
2020-08-02T04:46:18.000Z
2020-08-07T10:10:53.000Z
scripts/component_graph/server/fpm/package_manager.py
winksaville/Fuchsia
a0ec86f1d51ae8d2538ff3404dad46eb302f9b4f
[ "BSD-3-Clause" ]
null
null
null
scripts/component_graph/server/fpm/package_manager.py
winksaville/Fuchsia
a0ec86f1d51ae8d2538ff3404dad46eb302f9b4f
[ "BSD-3-Clause" ]
1
2020-08-07T10:11:49.000Z
2020-08-07T10:11:49.000Z
#!/usr/bin/env python3 # Copyright 2019 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """PackageManager provides an interface to the JSON FPM API. The PackageManager interface provides a simple way to retrieve data from t...
40.480315
96
0.614861
631
5,141
4.881141
0.313788
0.015909
0.023377
0.023377
0.090909
0.067532
0.056494
0
0
0
0
0.001915
0.289049
5,141
126
97
40.801587
0.840766
0.249173
0
0.088889
0
0
0.081589
0.01351
0
0
0
0.007937
0
1
0.088889
false
0
0.077778
0
0.311111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83d375aa877a85c2432fbed5fdd969dd8542a727
977
py
Python
D01/main.py
itscassie/advent-of-code-2021
731f7b8593e827de7d098f311ab19813f3f1a38d
[ "MIT" ]
null
null
null
D01/main.py
itscassie/advent-of-code-2021
731f7b8593e827de7d098f311ab19813f3f1a38d
[ "MIT" ]
null
null
null
D01/main.py
itscassie/advent-of-code-2021
731f7b8593e827de7d098f311ab19813f3f1a38d
[ "MIT" ]
null
null
null
""" Solve 2021 Day 1: Sonar Sweep Problem """ def solver_problem1(inputs): """ Count the number of increasement from given list """ num_increased = 0 for i in range(1, len(inputs)): if inputs[i] > inputs[i - 1]: num_increased += 1 return num_increased def solver_problem2(...
34.892857
86
0.590583
142
977
3.908451
0.380282
0.151351
0.086486
0.075676
0.551351
0.457658
0.414414
0.277477
0.277477
0.136937
0
0.041018
0.276356
977
27
87
36.185185
0.743989
0.319345
0
0.352941
0
0
0.045381
0
0
0
0
0
0
1
0.117647
false
0
0
0
0.235294
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83d3b34c981cd51adb859cdd0943e06deba009df
928
py
Python
tests/test_power_converter.py
LauWien/smooth
3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
5
2019-10-15T15:56:35.000Z
2021-02-04T10:11:31.000Z
tests/test_power_converter.py
LauWien/smooth
3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
121
2020-01-06T14:32:30.000Z
2021-09-23T11:26:11.000Z
tests/test_power_converter.py
LauWien/smooth
3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
6
2019-10-21T08:36:05.000Z
2021-03-26T10:37:17.000Z
from smooth.components.component_power_converter import PowerConverter import oemof.solph as solph def test_init(): power_converter = PowerConverter({}) params = {"efficiency": 0, "output_power_max": 100} power_converter = PowerConverter(params) assert power_converter.efficiency == params["efficiency"...
33.142857
73
0.710129
111
928
5.63964
0.315315
0.15655
0.134185
0.108626
0
0
0
0
0
0
0
0.009126
0.173491
928
27
74
34.37037
0.80704
0
0
0
0
0
0.137931
0
0
0
0
0
0.272727
1
0.090909
false
0
0.090909
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83d597052cf5a96babe41243ddbe009226025de6
2,094
py
Python
compecon/demos/demapp06.py
daniel-schaefer/CompEcon-python
d3f66e04a7e02be648fc5a68065806ec7cc6ffd6
[ "MIT" ]
23
2016-12-14T13:21:27.000Z
2020-08-23T21:04:34.000Z
compecon/demos/demapp06.py
daniel-schaefer/CompEcon-python
d3f66e04a7e02be648fc5a68065806ec7cc6ffd6
[ "MIT" ]
1
2017-09-10T04:48:54.000Z
2018-03-31T01:36:46.000Z
compecon/demos/demapp06.py
daniel-schaefer/CompEcon-python
d3f66e04a7e02be648fc5a68065806ec7cc6ffd6
[ "MIT" ]
13
2017-02-25T08:10:38.000Z
2020-05-15T09:49:16.000Z
from demos.setup import np, plt from compecon import BasisChebyshev, BasisSpline from compecon.tools import nodeunif __author__ = 'Randall' # DEMAPP06 Chebychev and cubic spline derivative approximation errors # Function to be approximated def f(x): g = np.zeros((3, x.size)) g[0], g[1], g[2] = np.exp(-x),...
26.506329
69
0.608883
303
2,094
4.194719
0.293729
0.084972
0.099135
0.056648
0.450039
0.43273
0.354839
0.354839
0.287175
0.236821
0
0.027237
0.26361
2,094
78
70
26.846154
0.797017
0.312321
0
0.367347
0
0
0.124206
0
0
0
0
0
0
1
0.020408
false
0
0.061224
0
0.102041
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83d5ab6a69ea7c486e04c2f09093c01b18d52c8b
5,411
py
Python
v3_inc_mem_dropout_dqn_model.py
kucharzyk-sebastian/aigym_dqn
eef88dafce3f2a1e13ab91a92089ea6a6c359cd6
[ "MIT" ]
2
2021-03-25T17:55:58.000Z
2021-07-24T14:43:24.000Z
v3_inc_mem_dropout_dqn_model.py
kucharzyk-sebastian/aigym_dqn
eef88dafce3f2a1e13ab91a92089ea6a6c359cd6
[ "MIT" ]
null
null
null
v3_inc_mem_dropout_dqn_model.py
kucharzyk-sebastian/aigym_dqn
eef88dafce3f2a1e13ab91a92089ea6a6c359cd6
[ "MIT" ]
null
null
null
import random import gym import numpy as np from collections import deque from keras.models import Sequential from keras.layers import Dense, Dropout from keras.optimizers import Adam import tensorflow as tf import os import logging os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' logging.getLogger('tensorflow').disabled = Tr...
40.684211
137
0.62798
683
5,411
4.683748
0.307467
0.032823
0.022507
0.023445
0.239137
0.185058
0.130666
0.11066
0.071272
0.071272
0
0.015455
0.27056
5,411
132
138
40.992424
0.795034
0.099612
0
0.042105
0
0.021053
0.074435
0
0
0
0
0
0
1
0.073684
false
0
0.105263
0
0.210526
0.042105
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83d86b44c36b2efbdda4224e3eee5b832e8c3e4e
3,109
py
Python
stock_quantity_history_location/tests/test_stock_quantity_history_location.py
NextERP-Romania/addons_extern
d08f428aeea4cda1890adfd250bc359bda0c33f3
[ "Apache-2.0" ]
null
null
null
stock_quantity_history_location/tests/test_stock_quantity_history_location.py
NextERP-Romania/addons_extern
d08f428aeea4cda1890adfd250bc359bda0c33f3
[ "Apache-2.0" ]
null
null
null
stock_quantity_history_location/tests/test_stock_quantity_history_location.py
NextERP-Romania/addons_extern
d08f428aeea4cda1890adfd250bc359bda0c33f3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 ForgeFlow S.L. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.tests.common import SavepointCase class TestStockQuantityHistoryLocation(SavepointCase): @classmethod def setUpClass(cls): super(TestStockQuantityHistoryLocation, cls).setUpClass() cls.su...
39.35443
85
0.587327
353
3,109
4.926346
0.252125
0.062105
0.069005
0.064405
0.479011
0.461185
0.371478
0.371478
0.371478
0.371478
0
0.023487
0.287874
3,109
78
86
39.858974
0.761969
0.037954
0
0.185714
0
0
0.201205
0.063609
0
0
0
0
0.085714
1
0.042857
false
0
0.014286
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83d96b48773397f017510e5831d9b5aab1d08ad6
2,534
py
Python
src/haddock/core/cns_paths.py
sverhoeven/haddock3
d863106f21ebc128f18c6d73a0d15b97824d050c
[ "Apache-2.0" ]
null
null
null
src/haddock/core/cns_paths.py
sverhoeven/haddock3
d863106f21ebc128f18c6d73a0d15b97824d050c
[ "Apache-2.0" ]
null
null
null
src/haddock/core/cns_paths.py
sverhoeven/haddock3
d863106f21ebc128f18c6d73a0d15b97824d050c
[ "Apache-2.0" ]
null
null
null
""" Path to CNS-related files. Most paths are defined by dictionaries that gather several related paths. Here, instead of defining the dictionaries with static paths, we have functions that create those dict-containing paths dynamically. The default values are defined by: - axis - tensors - translation_vectors - wate...
27.543478
72
0.696527
346
2,534
4.875723
0.315029
0.052164
0.049793
0.047421
0
0
0
0
0
0
0
0.003949
0.200474
2,534
91
73
27.846154
0.828727
0.345699
0
0
0
0
0.216928
0.017555
0
0
0
0
0
1
0.090909
false
0
0.045455
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83d9e4d213f9057ac120341c7210734a02cf3aa5
3,185
py
Python
src/reanalysis_dbns/utils/__init__.py
azedarach/reanalysis-dbns
160f405762fb33cfde38b1d3d63cc19e0bb3d591
[ "MIT" ]
null
null
null
src/reanalysis_dbns/utils/__init__.py
azedarach/reanalysis-dbns
160f405762fb33cfde38b1d3d63cc19e0bb3d591
[ "MIT" ]
null
null
null
src/reanalysis_dbns/utils/__init__.py
azedarach/reanalysis-dbns
160f405762fb33cfde38b1d3d63cc19e0bb3d591
[ "MIT" ]
null
null
null
""" Provides helper routines for reanalysis DBNs study. """ # License: MIT from __future__ import absolute_import from .computation import (calc_truncated_svd, downsample_data, meridional_mean, pattern_correlation, select_lat_band, select...
33.526316
74
0.621978
327
3,185
5.440367
0.299694
0.055087
0.043845
0.035975
0.570545
0.541877
0.541877
0.501405
0.501405
0.501405
0
0
0.307692
3,185
94
75
33.882979
0.806803
0.020408
0
0
0
0
0.286954
0.126928
0
0
0
0
0
1
0
false
0
0.082353
0
0.082353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83db648d31e6571eb460e05dda3b0b88c276583d
2,364
py
Python
generator/src/googleapis/codegen/utilities/json_expander.py
romulobusatto/google-api-php-client-services
7f3d938a1e4b364afa633b5ba13a0d3c9bc156bf
[ "Apache-2.0" ]
709
2018-09-13T01:13:59.000Z
2022-03-31T10:28:41.000Z
generator/src/googleapis/codegen/utilities/json_expander.py
romulobusatto/google-api-php-client-services
7f3d938a1e4b364afa633b5ba13a0d3c9bc156bf
[ "Apache-2.0" ]
1,351
2018-10-12T23:07:12.000Z
2022-03-05T09:25:29.000Z
generator/src/googleapis/codegen/utilities/json_expander.py
romulobusatto/google-api-php-client-services
7f3d938a1e4b364afa633b5ba13a0d3c9bc156bf
[ "Apache-2.0" ]
307
2018-09-04T20:15:31.000Z
2022-03-31T09:42:39.000Z
#!/usr/bin/python2.7 # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
31.52
79
0.730118
340
2,364
4.991176
0.447059
0.035357
0.015321
0.018857
0
0
0
0
0
0
0
0.006785
0.189509
2,364
74
80
31.945946
0.878914
0.593063
0
0.103448
0
0
0.04814
0
0
0
0
0
0
1
0.068966
false
0
0.103448
0
0.344828
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83dda5970adb161d516652e3bbdec232d2bc568b
34,005
py
Python
main5.py
LinXueyuanStdio/MyTransE
971901757aba6af22fc2791b5bb32028390b9625
[ "Apache-2.0" ]
null
null
null
main5.py
LinXueyuanStdio/MyTransE
971901757aba6af22fc2791b5bb32028390b9625
[ "Apache-2.0" ]
null
null
null
main5.py
LinXueyuanStdio/MyTransE
971901757aba6af22fc2791b5bb32028390b9625
[ "Apache-2.0" ]
1
2020-10-11T02:22:33.000Z
2020-10-11T02:22:33.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import _thread import sys import time from math import exp from random import random from typing import List, Tuple, Set from scipy import spatial import numpy as np import torch from torch import nn from torc...
37.327113
118
0.589002
4,291
34,005
4.416453
0.120718
0.002955
0.003799
0.003377
0.409213
0.349111
0.303045
0.25186
0.19371
0.162683
0
0.018358
0.295162
34,005
910
119
37.368132
0.772321
0.088399
0
0.228228
0
0
0.050788
0.02827
0
0
0
0
0
1
0.063063
false
0
0.034535
0
0.145646
0.001502
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83deb844d22e41b2c14e852a19602c5b2980d2b2
25,395
py
Python
cogs/profiles.py
Greenfoot5/BattleBot
f4318124bb85786c3d0ff562132121c382445c36
[ "MIT" ]
2
2020-01-13T22:58:22.000Z
2020-02-19T16:47:17.000Z
cogs/profiles.py
Greenfoot5/BattleBot
f4318124bb85786c3d0ff562132121c382445c36
[ "MIT" ]
29
2020-01-13T23:30:03.000Z
2020-06-26T18:08:01.000Z
cogs/profiles.py
Greenfoot5/BattleBot
f4318124bb85786c3d0ff562132121c382445c36
[ "MIT" ]
2
2020-01-15T00:20:10.000Z
2020-02-18T00:02:55.000Z
import discord import time import random import datetime import asyncio import json import config from discord.ext import commands from data.data_handler import data_handler from itertools import chain from collections import OrderedDict def gainedRP(player, gained_rp): if player['Level']['timeOfNextEarn'] > time...
42.680672
233
0.549478
2,904
25,395
4.756198
0.151171
0.020851
0.019114
0.012308
0.394657
0.323921
0.279178
0.258905
0.248407
0.21532
0
0.011709
0.320693
25,395
594
234
42.752525
0.787896
0.049459
0
0.293303
0
0.04157
0.235665
0.039853
0
0
0.000691
0
0
1
0.016166
false
0.002309
0.025404
0.002309
0.099307
0.002309
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83df6ece272b6dd9b07c901d59a3ab3e529c228e
1,196
py
Python
bloom/editor/ror_constants.py
thomasrogers03/bloom
5d49c18a241216aca354aa79971940691e6f33b4
[ "Apache-2.0" ]
9
2020-11-22T03:04:52.000Z
2022-01-17T15:36:25.000Z
bloom/editor/ror_constants.py
thomasrogers03/bloom
5d49c18a241216aca354aa79971940691e6f33b4
[ "Apache-2.0" ]
null
null
null
bloom/editor/ror_constants.py
thomasrogers03/bloom
5d49c18a241216aca354aa79971940691e6f33b4
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Thomas Rogers # SPDX-License-Identifier: Apache-2.0 LOWER_LINK_TAG = 6 UPPER_LINK_TAG = 7 UPPER_WATER_TAG = 9 LOWER_WATER_TAG = 10 UPPER_STACK_TAG = 11 LOWER_STACK_TAG = 12 UPPER_GOO_TAG = 13 LOWER_GOO_TAG = 14 LOWER_LINK_TYPES = {LOWER_LINK_TAG, LOWER_WATER_TAG, LOWER_STACK_TAG, LOWER_GOO_TAG} UP...
21.357143
84
0.76505
199
1,196
4.015075
0.175879
0.192741
0.137672
0.067584
0.361702
0
0
0
0
0
0
0.032901
0.161371
1,196
55
85
21.745455
0.763709
0.053512
0
0
0
0
0.015058
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83e3a8eb149951bf1ec4846a449c1ac8b36faf3a
6,107
py
Python
tests/validation/tests/v3_api/test_sbx_custom_filter.py
sambabox/rancher
ccb6b40e5c8bb183dbe20f5a099513eb623ed806
[ "Apache-2.0" ]
null
null
null
tests/validation/tests/v3_api/test_sbx_custom_filter.py
sambabox/rancher
ccb6b40e5c8bb183dbe20f5a099513eb623ed806
[ "Apache-2.0" ]
null
null
null
tests/validation/tests/v3_api/test_sbx_custom_filter.py
sambabox/rancher
ccb6b40e5c8bb183dbe20f5a099513eb623ed806
[ "Apache-2.0" ]
null
null
null
from .common import * # NOQA import requests AUTH_PROVIDER = os.environ.get('RANCHER_AUTH_PROVIDER', "") ''' Prerequisite: Enable SBX without TLS, and using testuser1 as admin user. Description: In this test, we are testing the customized user and group search filter functionalities. 1) For customized user search...
37.012121
77
0.667267
662
6,107
5.929003
0.243202
0.028025
0.030573
0.048408
0.440764
0.393121
0.310318
0.289427
0.233376
0.233376
0
0.009994
0.213525
6,107
164
78
37.237805
0.807204
0.002947
0
0.34188
0
0.008547
0.288561
0.123204
0
0
0
0
0.076923
1
0.042735
false
0.042735
0.017094
0
0.059829
0.042735
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83e3deec67e89aa7e42ab0f38a20a3246b563ad9
1,551
py
Python
official/cv/ADNet/export_model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/ADNet/export_model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/ADNet/export_model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
43.083333
111
0.728562
222
1,551
4.990991
0.567568
0.054152
0.046029
0.028881
0
0
0
0
0
0
0
0.018909
0.113475
1,551
35
112
44.314286
0.786909
0.411348
0
0
0
0
0.148107
0
0
0
0
0
0
1
0
false
0
0.294118
0
0.294118
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83e5340e1845145c339f0d7b935ed161bcb52088
566
py
Python
ipaqe_provision_hosts/backend/loader.py
apophys/idm-prepare-hosts
8075600cab44a1b0c4dbe6fe14a8235725eb06d1
[ "MIT" ]
1
2017-04-04T14:35:57.000Z
2017-04-04T14:35:57.000Z
ipaqe_provision_hosts/backend/loader.py
apophys/idm-prepare-hosts
8075600cab44a1b0c4dbe6fe14a8235725eb06d1
[ "MIT" ]
null
null
null
ipaqe_provision_hosts/backend/loader.py
apophys/idm-prepare-hosts
8075600cab44a1b0c4dbe6fe14a8235725eb06d1
[ "MIT" ]
null
null
null
# Author: Milan Kubik, 2017 """Backend entry point manipulation""" import logging from pkg_resources import iter_entry_points RESOURCE_GROUP = "ipaqe_provision_hosts.backends" log = logging.getLogger(__name__) def load_backends(exclude=()): """Load all registered modules""" log.debug("Loading entry points...
25.727273
70
0.717314
76
566
5.105263
0.539474
0.198454
0.07732
0.118557
0.14433
0
0
0
0
0
0
0.008602
0.178445
566
21
71
26.952381
0.825806
0.15371
0
0
0
0
0.175214
0.064103
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83e738fd60db75ae5d34cea420004504804a6032
8,309
py
Python
main_tmp.py
tiffanydho/chip2probe
2c7e00796e048d39ad4da85b90bf76d021c6be1c
[ "MIT" ]
null
null
null
main_tmp.py
tiffanydho/chip2probe
2c7e00796e048d39ad4da85b90bf76d021c6be1c
[ "MIT" ]
null
null
null
main_tmp.py
tiffanydho/chip2probe
2c7e00796e048d39ad4da85b90bf76d021c6be1c
[ "MIT" ]
null
null
null
import urllib.request import os import subprocess import pandas as pd from tqdm import tqdm import sys sys.path.append("probefilter") sys.path.append("probefilter/libsvm-3.23/python") from sitesfinder.imads import iMADS from sitesfinder.imadsmodel import iMADSModel from sitesfinder.plotcombiner import PlotCombiner fr...
46.161111
175
0.672764
1,097
8,309
4.889699
0.284412
0.044743
0.0261
0.019575
0.191648
0.168158
0.143736
0.08352
0.072707
0.059657
0
0.023085
0.18149
8,309
179
176
46.418994
0.765623
0.159345
0
0
0
0
0.222432
0.099796
0
0
0
0.005587
0
1
0.016129
false
0
0.104839
0
0.129032
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83eb304b78bbd24868418bb775b73ade9aefef43
1,593
py
Python
scripts/find_guids_without_referents.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
1
2015-10-02T18:35:53.000Z
2015-10-02T18:35:53.000Z
scripts/find_guids_without_referents.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
13
2020-03-24T15:29:41.000Z
2022-03-11T23:15:28.000Z
scripts/find_guids_without_referents.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
null
null
null
"""Finds Guids that do not have referents or that point to referents that no longer exist. E.g. a node was created and given a guid but an error caused the node to get deleted, leaving behind a guid that points to nothing. """ import sys from modularodm import Q from framework.guid.model import Guid from website.app ...
36.204545
90
0.702448
247
1,593
4.42915
0.558704
0.021938
0.027422
0.038391
0.047532
0
0
0
0
0
0
0.002385
0.210295
1,593
43
91
37.046512
0.86725
0.495292
0
0
0
0
0.135032
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.409091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83eb4550225e76cac1d76f96f09f214fbc122c76
13,836
py
Python
test/test_app.py
IoT-Partners/Platform
ecb17ca5e3e5cf447ecb48c22bfab36b102f01b0
[ "MIT" ]
null
null
null
test/test_app.py
IoT-Partners/Platform
ecb17ca5e3e5cf447ecb48c22bfab36b102f01b0
[ "MIT" ]
null
null
null
test/test_app.py
IoT-Partners/Platform
ecb17ca5e3e5cf447ecb48c22bfab36b102f01b0
[ "MIT" ]
null
null
null
""" This script is for testing/calling in several different ways functions from QRColorChecker modules. @author: Eduard Cespedes Borràs @mail: eduard@iot-partners.com """ import unittest import hashlib import dateutil from chalicelib.server import Server import sys import json from datetime import datetime sys.pat...
37.700272
128
0.594681
1,458
13,836
5.431413
0.200274
0.073873
0.047733
0.030559
0.408006
0.383382
0.35699
0.320621
0.320621
0.296881
0
0.090263
0.267346
13,836
366
129
37.803279
0.690934
0.04416
0
0.25
0
0.020833
0.194354
0.039582
0.003472
0
0
0
0.152778
1
0.107639
false
0
0.024306
0.034722
0.184028
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83ecbdee9bb1d4607592c7d48726a571593fde4f
3,497
py
Python
test/test_config.py
beremaran/spdown
59e5ea6996be51ad015f9da6758e2ce556b9fb94
[ "MIT" ]
2
2019-08-13T15:13:58.000Z
2019-10-04T09:09:24.000Z
test/test_config.py
beremaran/spdown
59e5ea6996be51ad015f9da6758e2ce556b9fb94
[ "MIT" ]
4
2021-02-08T20:23:42.000Z
2022-03-11T23:27:07.000Z
test/test_config.py
beremaran/spdown
59e5ea6996be51ad015f9da6758e2ce556b9fb94
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import json import unittest from collections import OrderedDict from spdown.config import Config TEST_CONFIG_PATHS = OrderedDict([ ('local', 'config.json'), ('home', os.path.join( os.path.expanduser('~'), '.config', 'spdown', 'config' )) ]) TEST_CONFIG = { ...
31.223214
83
0.659994
382
3,497
5.691099
0.170157
0.110396
0.096596
0.055198
0.660534
0.589696
0.558878
0.442502
0.442502
0.442502
0
0
0.2505
3,497
111
84
31.504505
0.829454
0.005719
0
0.447059
0
0
0.061853
0
0
0
0
0
0.047059
1
0.094118
false
0
0.058824
0.011765
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83ed5076917201fcac6f1e8e51002b51c7395c85
2,167
py
Python
external/emulation/tests/test_config.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
1
2021-12-14T23:43:35.000Z
2021-12-14T23:43:35.000Z
external/emulation/tests/test_config.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
195
2021-09-16T05:47:18.000Z
2022-03-31T22:03:15.000Z
external/emulation/tests/test_config.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
null
null
null
from emulation._emulate.microphysics import TimeMask from emulation.config import ( EmulationConfig, ModelConfig, StorageConfig, _load_nml, _get_timestep, _get_storage_hook, get_hooks, ) import emulation.zhao_carr import datetime def test_EmulationConfig_from_dict(): seconds = 60 m...
25.494118
85
0.684818
250
2,167
5.572
0.272
0.045226
0.051687
0.045226
0.256281
0.101938
0.101938
0.101938
0.101938
0.101938
0
0.009473
0.220581
2,167
84
86
25.797619
0.815275
0
0
0.063492
0
0
0.030918
0
0
0
0
0
0.190476
1
0.15873
false
0
0.063492
0.015873
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83ed572ee1b1140fe9364cb212822f09bee7de36
323
py
Python
sorting/insertion_sort.py
src24/algos
b1ac1049be6adaafedaa0572f009668e2c8d3809
[ "MIT" ]
null
null
null
sorting/insertion_sort.py
src24/algos
b1ac1049be6adaafedaa0572f009668e2c8d3809
[ "MIT" ]
null
null
null
sorting/insertion_sort.py
src24/algos
b1ac1049be6adaafedaa0572f009668e2c8d3809
[ "MIT" ]
null
null
null
from typing import List # O(n^2) def insertion_sort(arr: List[int], desc: bool = False) -> None: for i, item in enumerate(arr): if i == 0: continue j: int = i - 1 while j >= 0 and (arr[j] > item) ^ desc: arr[j + 1] = arr[j] j -= 1 arr[j + 1] = it...
23.071429
63
0.4613
50
323
2.96
0.56
0.108108
0.067568
0.081081
0
0
0
0
0
0
0
0.035897
0.396285
323
13
64
24.846154
0.723077
0.018576
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83ee40ca37d52089325ca67f4f809d3e842c7b0b
8,939
py
Python
tests/test_client.py
ocefpaf/pystac-client
ddf0e0566b2b1783a4d32d3d77f9f51b80270df3
[ "Apache-2.0" ]
null
null
null
tests/test_client.py
ocefpaf/pystac-client
ddf0e0566b2b1783a4d32d3d77f9f51b80270df3
[ "Apache-2.0" ]
null
null
null
tests/test_client.py
ocefpaf/pystac-client
ddf0e0566b2b1783a4d32d3d77f9f51b80270df3
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from urllib.parse import urlsplit, parse_qs from dateutil.tz import tzutc import pystac import pytest from pystac_client import Client from pystac_client.conformance import ConformanceClasses from .helpers import STAC_URLS, TEST_DATA, read_data_file class TestAPI: @pytest.mark.vcr...
41.193548
120
0.650632
1,102
8,939
5.063521
0.197822
0.060932
0.027419
0.040323
0.539785
0.509677
0.499283
0.420789
0.378853
0.358423
0
0.016337
0.253608
8,939
216
121
41.384259
0.819994
0.162434
0
0.382353
0
0.007353
0.118804
0.045932
0
0
0
0
0.183824
1
0.102941
false
0
0.058824
0.007353
0.183824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83ef28442d472afe61e0a90f60e0718bf2a46056
363
py
Python
test/test_image.py
arkagogoldey/cloud_coverage_image_analysis
dde9954a27f70e77f9760455d12eeb6e458f8dba
[ "MIT" ]
1
2021-10-16T09:26:53.000Z
2021-10-16T09:26:53.000Z
test/test_image.py
arkagogoldey/cloud_coverage_image_analysis
dde9954a27f70e77f9760455d12eeb6e458f8dba
[ "MIT" ]
null
null
null
test/test_image.py
arkagogoldey/cloud_coverage_image_analysis
dde9954a27f70e77f9760455d12eeb6e458f8dba
[ "MIT" ]
null
null
null
import numpy as np import random from proyecto2.image import Image class TestImage: def test_pixels(self): for _ in range(5): x = random.randrange(1920, 4368, 1) y = random.randrange(1080, 2912, 1) matrix = np.random.rand(y, x) image = Image(matrix) ...
24.2
49
0.584022
47
363
4.468085
0.638298
0.142857
0
0
0
0
0
0
0
0
0
0.080321
0.31405
363
14
50
25.928571
0.763052
0
0
0
0
0
0
0
0
0
0
0
0.090909
1
0.090909
false
0
0.272727
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83effd89a13b4f1b810c9a266a94d6710b5a3afc
2,236
py
Python
test_autolens/unit/pipeline/phase/point_source/test_phase_point_source.py
agarwalutkarsh554/PyAutoLens
72d2f5c39834446e72879fd119b591e52b36cac4
[ "MIT" ]
null
null
null
test_autolens/unit/pipeline/phase/point_source/test_phase_point_source.py
agarwalutkarsh554/PyAutoLens
72d2f5c39834446e72879fd119b591e52b36cac4
[ "MIT" ]
null
null
null
test_autolens/unit/pipeline/phase/point_source/test_phase_point_source.py
agarwalutkarsh554/PyAutoLens
72d2f5c39834446e72879fd119b591e52b36cac4
[ "MIT" ]
null
null
null
from os import path import numpy as np import pytest import autofit as af import autolens as al from autolens.mock import mock pytestmark = pytest.mark.filterwarnings( "ignore:Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of " "`arr[seq]`. In...
33.373134
119
0.654293
268
2,236
5.164179
0.440299
0.135116
0.069364
0.068642
0.231936
0.176301
0.176301
0.176301
0.176301
0.121387
0
0.028519
0.26297
2,236
66
120
33.878788
0.811286
0
0
0.08
0
0.08
0.204147
0.023963
0
0
0
0
0.1
1
0.04
false
0
0.12
0
0.18
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83f051af9726ef346dde4699fd1ff70473f62a92
1,737
py
Python
convert.py
lfe999/xenforo-scraper
a06dd9412658941b269889932534d071ad30367e
[ "MIT" ]
2
2021-07-30T03:11:06.000Z
2022-03-07T15:40:30.000Z
convert.py
lfe999/xenforo-scraper
a06dd9412658941b269889932534d071ad30367e
[ "MIT" ]
null
null
null
convert.py
lfe999/xenforo-scraper
a06dd9412658941b269889932534d071ad30367e
[ "MIT" ]
1
2021-07-07T16:05:07.000Z
2021-07-07T16:05:07.000Z
formats = {"KiB": 1024, "KB": 1000, "MiB": 1024**2, "MB": 1000**2, "GiB": 1024**3, "GB": 1000**3, "TiB": 1024**4, "TB": 1000**4} # Converts shorthand into number of bytes, ex. 1KiB = 1024 def shortToBytes(short): if short is not None: try: for format, multiplie...
35.44898
91
0.614853
201
1,737
5.273632
0.497512
0.039623
0.045283
0.070755
0.107547
0.079245
0
0
0
0
0
0.109813
0.260794
1,737
48
92
36.1875
0.715732
0.128958
0
0.189189
0
0
0.112143
0
0
0
0
0
0.162162
1
0.054054
false
0
0.027027
0
0.189189
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83f147a88053ee096c8c450bcf0c3e2aae29aca2
12,023
py
Python
old/pro/src/GUI/lofarBFgui.py
peijin94/LOFAR-Sun-tools
23ace5a5e8c0bdaa0cbb5ab6e37f6527716d16f3
[ "MIT" ]
null
null
null
old/pro/src/GUI/lofarBFgui.py
peijin94/LOFAR-Sun-tools
23ace5a5e8c0bdaa0cbb5ab6e37f6527716d16f3
[ "MIT" ]
null
null
null
old/pro/src/GUI/lofarBFgui.py
peijin94/LOFAR-Sun-tools
23ace5a5e8c0bdaa0cbb5ab6e37f6527716d16f3
[ "MIT" ]
null
null
null
# The UI interface and analysis of the lofar solar beam from import sys # insert at 1, 0 is the script path (or '' in REPL) sys.path.insert(1, '..') from PyQt5.QtWidgets import * from PyQt5.QtGui import QIcon from PyQt5.uic import loadUi from PyQt5.QtCore import Qt import matplotlib from matplotlib.backends.backend_...
38.909385
115
0.592198
1,543
12,023
4.473104
0.219702
0.060562
0.042596
0.039119
0.455375
0.416691
0.361489
0.343234
0.327586
0.317734
0
0.019824
0.274141
12,023
308
116
39.035714
0.771055
0.026283
0
0.304167
0
0.0125
0.077818
0.009492
0
0
0
0
0
1
0.070833
false
0.004167
0.070833
0
0.145833
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83f17a06a8bc16cfd0111230bb492518bce41c73
2,169
py
Python
otter/api.py
sean-morris/otter-grader
72135c78a69836dbbc920e25f737d4382bee0ec1
[ "BSD-3-Clause" ]
null
null
null
otter/api.py
sean-morris/otter-grader
72135c78a69836dbbc920e25f737d4382bee0ec1
[ "BSD-3-Clause" ]
null
null
null
otter/api.py
sean-morris/otter-grader
72135c78a69836dbbc920e25f737d4382bee0ec1
[ "BSD-3-Clause" ]
null
null
null
""" """ __all__ = ["export_notebook", "grade_submission"] import os import sys import shutil import tempfile from contextlib import redirect_stdout try: from contextlib import nullcontext except ImportError: from .utils import nullcontext # nullcontext is new in Python 3.7 from .argparser import get_parser...
27.1125
102
0.664361
271
2,169
5.206642
0.494465
0.017009
0.028349
0.018427
0
0
0
0
0
0
0
0.001223
0.246196
2,169
79
103
27.455696
0.861774
0.489627
0
0.052632
0
0
0.054348
0
0
0
0
0
0
1
0.026316
false
0
0.289474
0
0.342105
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83f1ef1dcba662400bb9b8d83a966ab6acf3c9c8
2,093
py
Python
mltraining.py
krumaska/FTIFTC
aff8a00a7a4c720801de9b2ac20ce69e9e2c561a
[ "MIT" ]
null
null
null
mltraining.py
krumaska/FTIFTC
aff8a00a7a4c720801de9b2ac20ce69e9e2c561a
[ "MIT" ]
null
null
null
mltraining.py
krumaska/FTIFTC
aff8a00a7a4c720801de9b2ac20ce69e9e2c561a
[ "MIT" ]
null
null
null
from sklearn.model_selection import train_test_split from sklearn.linear_model import LogisticRegression from sklearn.metrics import accuracy_score import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import numpy as np import random lol = pd.read_csv('./data/sample_SilverKDA.csv') lol.drop(['Unna...
26.833333
102
0.698041
356
2,093
4.02809
0.356742
0.058577
0.066946
0.079498
0.160391
0.160391
0
0
0
0
0
0.045576
0.108935
2,093
77
103
27.181818
0.723324
0
0
0.066667
0
0
0.169938
0.012925
0
0
0
0
0
1
0
false
0
0.15
0
0.15
0.183333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83f254257c334bebe3b34129f3e77014a18affa5
1,300
py
Python
timeboard.py
jtbarker/hiring-engineers
cd00fff1bb2be6374fc462891c3bf629e3c3ccb1
[ "Apache-2.0" ]
null
null
null
timeboard.py
jtbarker/hiring-engineers
cd00fff1bb2be6374fc462891c3bf629e3c3ccb1
[ "Apache-2.0" ]
null
null
null
timeboard.py
jtbarker/hiring-engineers
cd00fff1bb2be6374fc462891c3bf629e3c3ccb1
[ "Apache-2.0" ]
null
null
null
from datadog import initialize, api options = { 'api_key': '16ff05c7af6ed4652a20f5a8d0c609ce', 'app_key': 'e6a169b9b337355eef90002878fbf9a565e9ee77' } initialize(**options) title = "Mymetric timeboard" description = "Mymetric Timeboard" graphs = [ { "definition": { "events": [], ...
26
109
0.529231
100
1,300
6.81
0.47
0.070485
0.105727
0.110132
0.152717
0.152717
0.152717
0.152717
0.152717
0
0
0.054871
0.313077
1,300
50
109
26
0.707727
0
0
0.319149
0
0.021277
0.40123
0.162183
0
0
0
0
0
1
0
false
0
0.021277
0
0.021277
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
83f4f90a2f2418b0454a8f8ffca04dc4c58e2aca
25,414
py
Python
plugin.video.rebirth/resources/lib/modules/libtools.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2019-03-05T09:38:10.000Z
2019-03-05T09:38:10.000Z
plugin.video.rebirth/resources/lib/modules/libtools.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
null
null
null
plugin.video.rebirth/resources/lib/modules/libtools.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2021-11-05T20:48:09.000Z
2021-11-05T20:48:09.000Z
# -*- coding: utf-8 -*- ################################################################################ # | # # | ______________________________________________________________ # # | :~8a.`~888a:::::::::::::::88......88:::::::::...
43.666667
388
0.517235
2,717
25,414
4.768495
0.128451
0.007718
0.014665
0.022924
0.576567
0.543069
0.50849
0.494983
0.470902
0.457008
0
0.0303
0.30133
25,414
581
389
43.741824
0.699369
0.102227
0
0.531707
0
0.017073
0.168118
0.032922
0
0
0
0
0
1
0.041463
false
0.04878
0.043902
0
0.126829
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0