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
cdeaa27ba25e454daf95595f163fae1a13887999
1,220
py
Python
chat.py
Programmer-RD-AI/Learning-NLP-PyTorch
5780598340308995c0b8436d3031aa58ee7b81da
[ "Apache-2.0" ]
null
null
null
chat.py
Programmer-RD-AI/Learning-NLP-PyTorch
5780598340308995c0b8436d3031aa58ee7b81da
[ "Apache-2.0" ]
null
null
null
chat.py
Programmer-RD-AI/Learning-NLP-PyTorch
5780598340308995c0b8436d3031aa58ee7b81da
[ "Apache-2.0" ]
null
null
null
import random import json import torch from model import NeuralNet from nltk_utils import * device = "cuda" with open('intents.json','r') as f: intents = json.load(f) FILE = 'data.pth' data = torch.load(FILE) input_size = data['input_size'] output_size = data['output_size'] hidden_size = data['hidden_size'] all_wor...
29.047619
74
0.648361
180
1,220
4.244444
0.416667
0.03534
0.036649
0.034031
0
0
0
0
0
0
0
0.00813
0.193443
1,220
41
75
29.756098
0.768293
0
0
0
0
0
0.17459
0.029508
0
0
0
0
0
1
0
false
0
0.121951
0
0.121951
0.073171
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cdecd7c4bafe572b5e961bd73c1a75878f9feaa8
3,428
py
Python
zoomeye/cli.py
r0oike/zoomeye-python
b93f1c9c350e4fce7580f9f71ab1e76d06ce165d
[ "Apache-2.0" ]
null
null
null
zoomeye/cli.py
r0oike/zoomeye-python
b93f1c9c350e4fce7580f9f71ab1e76d06ce165d
[ "Apache-2.0" ]
null
null
null
zoomeye/cli.py
r0oike/zoomeye-python
b93f1c9c350e4fce7580f9f71ab1e76d06ce165d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ * Filename: cli.py * Description: cli program entry * Time: 2020.11.30 * Author: liuf5 */ """ import os import sys import argparse module_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.path.insert(1, module_path) from zoomeye import core ...
26.369231
110
0.606768
392
3,428
5.17602
0.369898
0.059142
0.05175
0.079349
0.18137
0.109414
0.109414
0.109414
0.071957
0.071957
0
0.005983
0.26867
3,428
129
111
26.573643
0.803351
0.073221
0
0.34375
0
0
0.353147
0.067069
0
0
0
0
0
1
0.020833
false
0.010417
0.041667
0
0.072917
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
cdeceab8b898ec021afc4aa90ddeda2bd76d683c
862
py
Python
3) Cartoonizing and Video Capture/#1 Accessing the webcam/webcam_access.py
RezaFirouzii/python-opencv-review
454a2be7fa36516a2b1fbd4e6162068bba25c989
[ "MIT" ]
null
null
null
3) Cartoonizing and Video Capture/#1 Accessing the webcam/webcam_access.py
RezaFirouzii/python-opencv-review
454a2be7fa36516a2b1fbd4e6162068bba25c989
[ "MIT" ]
null
null
null
3) Cartoonizing and Video Capture/#1 Accessing the webcam/webcam_access.py
RezaFirouzii/python-opencv-review
454a2be7fa36516a2b1fbd4e6162068bba25c989
[ "MIT" ]
null
null
null
import cv2 as cv if __name__ == "__main__": # 0 => first (default) webcam connected, # 1 => second webcam and so on. cap = cv.VideoCapture(0, cv.CAP_DSHOW) # cv.namedWindow("Window") if not cap.isOpened(): raise IOError("Webcam could not be opened!") while True: ...
25.352941
61
0.597448
116
862
4.362069
0.681034
0.019763
0
0
0
0
0
0
0
0
0
0.016722
0.306265
862
33
62
26.121212
0.829431
0.363109
0
0.125
0
0
0.087199
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cdf16ad97ffce90e11c1fa4d69eb40752cd40a16
3,928
py
Python
apps/sso/access_requests/models.py
g10f/sso
ba6eb712add388c69d4880f5620a2e4ce42d3fee
[ "BSD-3-Clause" ]
3
2021-05-16T17:06:57.000Z
2021-05-28T17:14:05.000Z
apps/sso/access_requests/models.py
g10f/sso
ba6eb712add388c69d4880f5620a2e4ce42d3fee
[ "BSD-3-Clause" ]
null
null
null
apps/sso/access_requests/models.py
g10f/sso
ba6eb712add388c69d4880f5620a2e4ce42d3fee
[ "BSD-3-Clause" ]
null
null
null
import datetime from current_user.models import CurrentUserField from django.conf import settings from django.db import models from django.urls import reverse from django.utils.timezone import now from django.utils.translation import gettext_lazy as _ from sso.accounts.models import Application from sso.models import ...
39.28
111
0.649949
429
3,928
5.731935
0.305361
0.035787
0.044734
0.02074
0.165921
0.102481
0.083774
0
0
0
0
0.003743
0.251782
3,928
99
112
39.676768
0.832936
0.035387
0
0.102564
0
0
0.073222
0.022469
0
0
0
0
0
1
0.102564
false
0
0.128205
0.051282
0.474359
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cdf35f3aa036ddd5079307083d76c1f9e474653b
1,518
py
Python
test/snr_test.py
AP-Atul/wavelets
cff71e777759844b35f8e96f14930b2c71a215a1
[ "MIT" ]
5
2021-02-01T07:43:39.000Z
2022-03-25T05:01:31.000Z
test/snr_test.py
AP-Atul/wavelets
cff71e777759844b35f8e96f14930b2c71a215a1
[ "MIT" ]
null
null
null
test/snr_test.py
AP-Atul/wavelets
cff71e777759844b35f8e96f14930b2c71a215a1
[ "MIT" ]
null
null
null
import os from time import time import numpy as np import soundfile from matplotlib import pyplot as plt from wavelet.fast_transform import FastWaveletTransform from wavelet.util.utility import threshold, mad, snr, amp_to_db INPUT_FILE = "/example/input/file.wav" OUTPUT_DIR = "/example/output/" info = soundfile.inf...
29.192308
108
0.689065
202
1,518
5.10396
0.475248
0.034918
0.015519
0.019399
0
0
0
0
0
0
0
0.0058
0.204875
1,518
51
109
29.764706
0.848384
0.118577
0
0
0
0
0.088589
0.017267
0
0
0
0
0
1
0
false
0
0.205882
0
0.205882
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
cdf93d47f329e66522fe3776469675377c2e7349
1,758
py
Python
leetcode/0566_reshape_the_matrix.py
chaosWsF/Python-Practice
ff617675b6bcd125933024bb4c246b63a272314d
[ "BSD-2-Clause" ]
null
null
null
leetcode/0566_reshape_the_matrix.py
chaosWsF/Python-Practice
ff617675b6bcd125933024bb4c246b63a272314d
[ "BSD-2-Clause" ]
null
null
null
leetcode/0566_reshape_the_matrix.py
chaosWsF/Python-Practice
ff617675b6bcd125933024bb4c246b63a272314d
[ "BSD-2-Clause" ]
null
null
null
""" In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data. You're given a matrix represented by a two-dimensional array, and two positive integers r and c representing the row number and column number of the wanted reshap...
33.807692
100
0.606371
280
1,758
3.807143
0.367857
0.009381
0.014071
0.018762
0.123827
0.123827
0.123827
0.097561
0.054409
0.054409
0
0.03818
0.299772
1,758
51
101
34.470588
0.827782
0.717861
0
0.428571
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cdfba4673ccb2b05e2ef7ddcaa8aeaa3095e7451
4,629
py
Python
python/main.py
LaraProject/rnn2java
f35b1b98f74864d4310e7866ad5271ae5389292d
[ "MIT" ]
null
null
null
python/main.py
LaraProject/rnn2java
f35b1b98f74864d4310e7866ad5271ae5389292d
[ "MIT" ]
null
null
null
python/main.py
LaraProject/rnn2java
f35b1b98f74864d4310e7866ad5271ae5389292d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import socket import select from time import sleep import message_pb2 from google.protobuf.internal import encoder import tensorflow as tf from tensorflow.keras import preprocessing import pickle import numpy as np ## RNN part # Load the inference model def load_inference_models(enc_file, dec_f...
32.598592
140
0.712249
636
4,629
4.97956
0.264151
0.022734
0.037891
0.030313
0.34228
0.332807
0.278813
0.278813
0.278813
0.262078
0
0.012977
0.151005
4,629
141
141
32.829787
0.792875
0.04623
0
0.181034
0
0
0.079145
0
0
0
0
0
0
1
0.068966
false
0
0.077586
0
0.206897
0.043103
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cdfcd2a90ed7ec6257eb01c41e93f4909519bbec
3,427
py
Python
examples/vae.py
zhangyewu/edward
8ec452eb0a3801df8bda984796034a9e945faec7
[ "Apache-2.0" ]
5,200
2016-05-03T04:59:01.000Z
2022-03-31T03:32:26.000Z
examples/vae.py
zhangyewu/edward
8ec452eb0a3801df8bda984796034a9e945faec7
[ "Apache-2.0" ]
724
2016-05-04T09:04:37.000Z
2022-02-28T02:41:12.000Z
examples/vae.py
zhangyewu/edward
8ec452eb0a3801df8bda984796034a9e945faec7
[ "Apache-2.0" ]
1,004
2016-05-03T22:45:14.000Z
2022-03-25T00:08:08.000Z
"""Variational auto-encoder for MNIST data. References ---------- http://edwardlib.org/tutorials/decoder http://edwardlib.org/tutorials/inference-networks """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import edward as ed import numpy as np import os i...
31.731481
77
0.676685
522
3,427
4.293103
0.356322
0.018742
0.029005
0.023204
0.091923
0.055332
0.033021
0.033021
0
0
0
0.020158
0.189378
3,427
107
78
32.028037
0.786537
0.195214
0
0
0
0
0.048664
0
0
0
0
0
0
1
0.028571
false
0
0.157143
0
0.185714
0.042857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a804975ed4327041257e7e887706be1ffc7b7803
2,829
py
Python
app.py
Raisler/Brazil_HDI_DataVisualization
76dde95dd1a7171e30a4a2e180a9ecdcea6f8c7c
[ "MIT" ]
null
null
null
app.py
Raisler/Brazil_HDI_DataVisualization
76dde95dd1a7171e30a4a2e180a9ecdcea6f8c7c
[ "MIT" ]
null
null
null
app.py
Raisler/Brazil_HDI_DataVisualization
76dde95dd1a7171e30a4a2e180a9ecdcea6f8c7c
[ "MIT" ]
null
null
null
import streamlit as st import pandas as pd import numpy as np import plotly.express as px from plotly.subplots import make_subplots import plotly.graph_objects as go import matplotlib.pyplot as plt def load_data(data): data=pd.read_csv(data) return data df = load_data('hdi.csv') st.title('Human Development Index i...
40.414286
144
0.679392
409
2,829
4.665037
0.342298
0.044025
0.073375
0.075996
0.357442
0.194969
0.15304
0.111111
0
0
0
0.024237
0.154118
2,829
69
145
41
0.771835
0
0
0.075472
0
0.09434
0.392011
0.04065
0
0
0
0
0
1
0.018868
false
0
0.132075
0
0.169811
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a804e02acc0b6d5ed28538bc5bf647eab91b6259
657
py
Python
Examples/pycomBlink/main.py
sophie-bernier/RemoteOceanAcidificationMonitor
6a8b799826a2eb9b1d5064883193c61eea0ee310
[ "Unlicense" ]
1
2021-06-22T23:07:31.000Z
2021-06-22T23:07:31.000Z
Examples/pycomBlink/main.py
sophie-bernier/RemoteOceanAcidificationMonitor
6a8b799826a2eb9b1d5064883193c61eea0ee310
[ "Unlicense" ]
null
null
null
Examples/pycomBlink/main.py
sophie-bernier/RemoteOceanAcidificationMonitor
6a8b799826a2eb9b1d5064883193c61eea0ee310
[ "Unlicense" ]
null
null
null
# main.py import pycom import time pycom.heartbeat(False) red = 0x08 blue = 0x00 green = 0x00 sleepTime = 0.01 def setRgb(red, green, blue): rgbValue = 0x000000 rgbValue |= (red << 16) | (green << 8) | blue pycom.rgbled(rgbValue) return while True: ### #if red >= 0x08: # if green > 0:...
16.425
49
0.464231
77
657
3.961039
0.376623
0.059016
0.091803
0.118033
0
0
0
0
0
0
0
0.101266
0.398782
657
39
50
16.846154
0.670886
0.35312
0
0
0
0
0
0
0
0
0.05
0
0
1
0.066667
false
0
0.133333
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a8054920242ac3e7b7e99120e329e53db3f718af
1,891
py
Python
dsn/pp/construct.py
expressionsofchange/nerf0
788203619fc89c92e8c7301d62bbc4f1f4ee66e1
[ "MIT" ]
2
2019-04-30T05:42:05.000Z
2019-08-11T19:17:20.000Z
dsn/pp/construct.py
expressionsofchange/nerf0
788203619fc89c92e8c7301d62bbc4f1f4ee66e1
[ "MIT" ]
null
null
null
dsn/pp/construct.py
expressionsofchange/nerf0
788203619fc89c92e8c7301d62bbc4f1f4ee66e1
[ "MIT" ]
null
null
null
from spacetime import get_s_address_for_t_address from s_address import node_for_s_address from dsn.s_expr.structure import TreeText from dsn.pp.structure import PPNone, PPSingleLine, PPLispy, PPAnnotatedSExpr from dsn.pp.clef import PPUnset, PPSetSingleLine, PPSetLispy def build_annotated_tree(node, default_annota...
35.679245
120
0.710206
253
1,891
5.086957
0.391304
0.049728
0.041958
0.021756
0.034188
0.034188
0
0
0
0
0
0
0.230566
1,891
52
121
36.365385
0.884536
0.248017
0
0.060606
0
0
0.010707
0
0
0
0
0
0
1
0.060606
false
0
0.151515
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
a8065cec94c9ac0bb277d2b7b2c4a7aa013dd5ba
3,285
py
Python
pallet.py
sprightlyManifesto/cadQuery2
207a1ff2420210460539400dfd1945e8b7245497
[ "MIT" ]
1
2021-05-31T00:08:02.000Z
2021-05-31T00:08:02.000Z
pallet.py
sprightlyManifesto/cadQuery2
207a1ff2420210460539400dfd1945e8b7245497
[ "MIT" ]
null
null
null
pallet.py
sprightlyManifesto/cadQuery2
207a1ff2420210460539400dfd1945e8b7245497
[ "MIT" ]
null
null
null
from cadquery import * from math import sin,cos,acos,asin,pi,atan2 class Pallet: def __init__(self): self.torx6 = { 6:(1.75,1.27), 8:(2.4,1.75), 10:(2.8,2.05), 15:(3.35,2.4), 20:(3.95,2.85), 25:(4.50,3.25), 30:(5.6,4.05), 40:(6.75,4.85),45:(7.93,5.64), 50:(8.95,6.45), ...
48.308824
101
0.497717
626
3,285
2.592652
0.178914
0.05915
0.044362
0.029575
0.321627
0.149723
0.078866
0.045595
0.041898
0.041898
0
0.111997
0.236225
3,285
68
102
48.308824
0.534874
0.040487
0
0
0
0
0.003175
0
0
0
0
0
0
1
0.067797
false
0
0.033898
0
0.152542
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a8094575efb5f9d3bcb611dcb83074209e70f07f
478
py
Python
Algorithms/Easy/830. Positions of Large Groups/answer.py
KenWoo/Algorithm
4012a2f0a099a502df1e5df2e39faa75fe6463e8
[ "Apache-2.0" ]
null
null
null
Algorithms/Easy/830. Positions of Large Groups/answer.py
KenWoo/Algorithm
4012a2f0a099a502df1e5df2e39faa75fe6463e8
[ "Apache-2.0" ]
null
null
null
Algorithms/Easy/830. Positions of Large Groups/answer.py
KenWoo/Algorithm
4012a2f0a099a502df1e5df2e39faa75fe6463e8
[ "Apache-2.0" ]
null
null
null
from typing import List class Solution: def largeGroupPositions(self, S: str) -> List[List[int]]: l = [] start = end = 0 while start < len(S): while end < len(S) and S[start] == S[end]: end += 1 if end - start >= 3: l.append([start, e...
22.761905
61
0.493724
57
478
4
0.508772
0.105263
0
0
0
0
0
0
0
0
0
0.013468
0.378661
478
20
62
23.9
0.754209
0
0
0
0
0
0.023013
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.25
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a80a22c9f777e08edf7fe7ed83b93c4fd1e307bc
1,727
py
Python
imu.py
aume1/SatelliteTracker
62725e1d1a72a1350b2af15d9e33fcd574ceb3a2
[ "MIT" ]
2
2021-06-19T17:17:30.000Z
2021-06-19T17:17:39.000Z
imu.py
aume1/SatelliteTracker
62725e1d1a72a1350b2af15d9e33fcd574ceb3a2
[ "MIT" ]
null
null
null
imu.py
aume1/SatelliteTracker
62725e1d1a72a1350b2af15d9e33fcd574ceb3a2
[ "MIT" ]
1
2021-06-19T17:18:32.000Z
2021-06-19T17:18:32.000Z
import time import math import py_qmc5883l import pigpio import adafruit_bmp280 from i2c_ADXL345 import ADXL345 import numpy as np from i2c_ITG3205 import Gyro class IMU: def __init__(self, pi): self.gyro = Gyro(pi) self.accel = ADXL345(pi) self.mag = py_qmc5883l.QMC5883L(pi) rpy =...
28.311475
104
0.579618
286
1,727
3.300699
0.307692
0.03178
0.050847
0.047669
0.105932
0
0
0
0
0
0
0.063167
0.294152
1,727
60
105
28.783333
0.711239
0.110596
0
0
0
0
0.015023
0
0
0
0
0
0
1
0.125
false
0
0.166667
0.0625
0.416667
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
a80b6a8d0bacba13b3fe61daf36962d8ad3001a4
8,892
py
Python
src/titanic/tit_utils.py
buffbob/titanic
1e52814076ad78f6f9845d7b8f829889977a907b
[ "MIT" ]
null
null
null
src/titanic/tit_utils.py
buffbob/titanic
1e52814076ad78f6f9845d7b8f829889977a907b
[ "MIT" ]
null
null
null
src/titanic/tit_utils.py
buffbob/titanic
1e52814076ad78f6f9845d7b8f829889977a907b
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.model_selection import GridSearchCV, train_test_split, cross_val_score from sklearn.tree import DecisionTreeClassifier from sklearn.metrics import accuracy_score, classification_report import matplotlib.pyplot as plt import numpy as np import category_encoders as ce from sklearn.preproc...
31.870968
109
0.624944
1,293
8,892
4.08894
0.273782
0.016645
0.018725
0.015888
0.237375
0.198979
0.198979
0.188765
0.164933
0.164933
0
0.017174
0.246964
8,892
279
110
31.870968
0.772401
0.233468
0
0.230263
0
0
0.137084
0.018962
0
0
0
0
0
1
0.111842
false
0
0.052632
0
0.269737
0.197368
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a80cfdeae5dd9779dfdf75f7f464b230527883ae
1,167
py
Python
src/Tests/power_generators_tests/solar_panel_tests/solar_panel_east_west_test.py
BoKleynen/P-O-3-Smart-Energy-Home
4849038c47199aa0a752ff5a4f2afa91f4a9e8f0
[ "MIT" ]
null
null
null
src/Tests/power_generators_tests/solar_panel_tests/solar_panel_east_west_test.py
BoKleynen/P-O-3-Smart-Energy-Home
4849038c47199aa0a752ff5a4f2afa91f4a9e8f0
[ "MIT" ]
null
null
null
src/Tests/power_generators_tests/solar_panel_tests/solar_panel_east_west_test.py
BoKleynen/P-O-3-Smart-Energy-Home
4849038c47199aa0a752ff5a4f2afa91f4a9e8f0
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import pandas as pd from house.production.solar_panel import SolarPanel from house import House from math import pi from time import time start_time = time() solar_panel_east = SolarPanel(285.0, 10*pi/180, -pi/2, 0.87, 1.540539, 10) solar_panel_west = SolarPanel(285.0, 10*pi/180, pi/2...
33.342857
167
0.642674
182
1,167
3.994505
0.461538
0.082531
0.035763
0.044017
0.225585
0.173315
0.173315
0.099037
0.099037
0.099037
0
0.105092
0.209083
1,167
34
168
34.323529
0.682557
0.045416
0
0
0
0.043478
0.179279
0.081081
0
0
0
0
0
1
0
false
0
0.26087
0
0.26087
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a813a7003f5f5d2c9a1b282747c12188d836b770
2,468
py
Python
src/lsct/models/cnn_1d.py
junyongyou/lsct_phiqnet
ffa546b3225c7db0bc7977565dc11a91186fe939
[ "MIT" ]
9
2021-11-01T06:06:33.000Z
2022-02-07T12:21:18.000Z
src/lsct/models/cnn_1d.py
junyongyou/lsct_phiqnet
ffa546b3225c7db0bc7977565dc11a91186fe939
[ "MIT" ]
null
null
null
src/lsct/models/cnn_1d.py
junyongyou/lsct_phiqnet
ffa546b3225c7db0bc7977565dc11a91186fe939
[ "MIT" ]
1
2022-03-06T07:38:32.000Z
2022-03-06T07:38:32.000Z
from tensorflow.keras.layers import Layer, Conv1D, Input, Dropout, MaxPool1D, Masking import tensorflow.keras.backend as K from tensorflow.keras import Model import tensorflow as tf class CNN1D(Layer): def __init__(self, filters=(32, 64), pooling_sizes=(4, 4), kernel_size=3, stride_size=1, using_dropout=True, ...
37.393939
112
0.573339
306
2,468
4.444444
0.313725
0.052941
0.027941
0.029412
0
0
0
0
0
0
0
0.027778
0.329011
2,468
65
113
37.969231
0.793478
0.15316
0
0
0
0
0.011988
0
0
0
0
0
0
1
0.086957
false
0
0.086957
0.021739
0.23913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a81435452d7a1fd0220c50904adbc5e774a45f27
931
py
Python
test/utils.py
eddrial/aapy
929f554aea24c0a893052f0907488e0a843fd5dd
[ "Apache-2.0" ]
null
null
null
test/utils.py
eddrial/aapy
929f554aea24c0a893052f0907488e0a843fd5dd
[ "Apache-2.0" ]
null
null
null
test/utils.py
eddrial/aapy
929f554aea24c0a893052f0907488e0a843fd5dd
[ "Apache-2.0" ]
null
null
null
import json import os import mock def mock_response(json_str=None, raw=None): resp = mock.MagicMock() if json_str is not None: loaded_json = json.loads(json_str) resp.json = mock.MagicMock(return_value=loaded_json) if raw is not None: resp.raw = mock.MagicMock() resp.raw.r...
21.159091
68
0.651987
133
931
4.428571
0.360902
0.088285
0.03056
0.081494
0.118846
0.118846
0.118846
0
0
0
0
0
0.26101
931
43
69
21.651163
0.856105
0.274973
0
0
0
0
0.006472
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a81666f0e6701e07b7dd6f00c88fe2096ec32290
391
py
Python
archive/AIAP_v1.00/v1.2b/promoter_bin.py
ShaopengLiu1/Zhanglab_ATAC-seq_analysis
3f615c159bb04fcc3f7b777e00c5f04ff105898c
[ "MIT" ]
null
null
null
archive/AIAP_v1.00/v1.2b/promoter_bin.py
ShaopengLiu1/Zhanglab_ATAC-seq_analysis
3f615c159bb04fcc3f7b777e00c5f04ff105898c
[ "MIT" ]
null
null
null
archive/AIAP_v1.00/v1.2b/promoter_bin.py
ShaopengLiu1/Zhanglab_ATAC-seq_analysis
3f615c159bb04fcc3f7b777e00c5f04ff105898c
[ "MIT" ]
1
2018-02-26T03:14:46.000Z
2018-02-26T03:14:46.000Z
import sys peak=[] with open(sys.argv[1],'r') as f: for line in f: line=line.strip('\n').split('\t') peak.append(int(line[3])) f.close() num=int(len(peak)/100.0) bin=[] for i in range(99): bin.append(str(i+1)+'\t'+str(sum(peak[num*i:num*(i+1)])/(num*1.0))+'\n') bin.append('100'+'\t'+str(sum(peak[num*99:])/(num*...
20.578947
73
0.59335
83
391
2.795181
0.409639
0.068966
0.060345
0.094828
0.12069
0
0
0
0
0
0
0.053824
0.097187
391
18
74
21.722222
0.603399
0
0
0
0
0
0.061381
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a8178087a6d24532c3fa392eae43c6d6a8b30612
4,595
py
Python
MultiInputDialog.py
chemmatcars/XModFit
7d1298448d1908d78797fd67ce0a00ecfaf17629
[ "MIT" ]
null
null
null
MultiInputDialog.py
chemmatcars/XModFit
7d1298448d1908d78797fd67ce0a00ecfaf17629
[ "MIT" ]
2
2019-07-31T23:14:14.000Z
2020-12-26T16:27:02.000Z
MultiInputDialog.py
chemmatcars/XModFit
7d1298448d1908d78797fd67ce0a00ecfaf17629
[ "MIT" ]
2
2019-07-31T22:22:06.000Z
2020-07-14T04:58:16.000Z
from PyQt5.QtWidgets import QWidget, QApplication, QPushButton, QLabel, QLineEdit, QVBoxLayout, QMessageBox, QCheckBox,\ QSpinBox, QComboBox, QListWidget, QDialog, QFileDialog, QProgressBar, QTableWidget, QTableWidgetItem,\ QAbstractItemView, QSpinBox, QSplitter, QSizePolicy, QAbstractScrollArea, QHBoxLayout, Q...
47.864583
120
0.654189
449
4,595
6.657016
0.289532
0.120442
0.138508
0.05353
0.264972
0.241552
0.128137
0.128137
0.057544
0.057544
0
0.009078
0.232862
4,595
96
121
47.864583
0.838865
0
0
0.045455
0
0
0.016536
0
0
0
0
0
0
1
0.079545
false
0
0.056818
0
0.147727
0.011364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a81b25109e2c25d80338be4ee486823e581a2347
3,813
py
Python
src/handlers.py
jneethling/WikiStats
232640bf3799851554fa4c13cee8a7f63eb532e2
[ "MIT" ]
null
null
null
src/handlers.py
jneethling/WikiStats
232640bf3799851554fa4c13cee8a7f63eb532e2
[ "MIT" ]
1
2022-01-09T12:07:13.000Z
2022-01-09T15:29:41.000Z
src/handlers.py
jneethling/WikiStats
232640bf3799851554fa4c13cee8a7f63eb532e2
[ "MIT" ]
null
null
null
import os import psutil import json import sqlite3 import threading from datetime import datetime, timezone from websocket import create_connection class CustomHandler: def __init__(self): self.working = False self.counter = 0 self.ws = None if self.dbReady('./data/wiki_statsDB'):...
32.87069
199
0.575924
445
3,813
4.847191
0.332584
0.040797
0.031525
0.034771
0.203987
0.159481
0.159481
0.121465
0.121465
0.078813
0
0.009157
0.312615
3,813
115
200
33.156522
0.813812
0
0
0.228261
0
0
0.218988
0.007606
0
0
0
0
0
1
0.108696
false
0
0.076087
0
0.293478
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a81fa302f2ff4cbc6dc18bbb647920f29a503d5e
1,897
py
Python
2017/23b.py
mcbor/advent_of_code_2016
14453b970d3e0f031ae6a66f2028652b6ed870dd
[ "MIT" ]
1
2016-12-17T10:53:22.000Z
2016-12-17T10:53:22.000Z
2017/23b.py
mcbor/adventofcode
14453b970d3e0f031ae6a66f2028652b6ed870dd
[ "MIT" ]
null
null
null
2017/23b.py
mcbor/adventofcode
14453b970d3e0f031ae6a66f2028652b6ed870dd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ 23b.py ~~~~~~ Advent of Code 2017 - Day 23: Coprocessor Conflagration Part Two Now, it's time to fix the problem. The debug mode switch is wired directly to register a. You flip the switch, which makes register a now start at 1 when the pr...
24.012658
79
0.615709
297
1,897
3.89899
0.542088
0.043178
0.02418
0.025907
0
0
0
0
0
0
0
0.035897
0.280443
1,897
78
80
24.320513
0.812454
0.508171
0
0.16129
0
0
0.045346
0
0
0
0
0
0.064516
1
0.096774
false
0
0.064516
0
0.354839
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a81fc289f1eb7f0a4f761bd960c55555bea22c98
4,456
py
Python
game_of_life.py
WinterWonderland/Game_of_Life
99eced42146a195b6a7bc423f76f0fd79f5771d2
[ "MIT" ]
null
null
null
game_of_life.py
WinterWonderland/Game_of_Life
99eced42146a195b6a7bc423f76f0fd79f5771d2
[ "MIT" ]
null
null
null
game_of_life.py
WinterWonderland/Game_of_Life
99eced42146a195b6a7bc423f76f0fd79f5771d2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Sep 20 11:59:50 2018 @author: klaus """ import numpy as np import matplotlib.pyplot as plt import time import random from argparse import ArgumentParser, RawTextHelpFormatter class GameOfLife: def __init__(self, width, height, interval, seed): ran...
41.64486
123
0.47711
521
4,456
4.001919
0.264875
0.069065
0.052758
0.031655
0.326139
0.306954
0.306954
0.235971
0.235971
0.228777
0
0.034879
0.414497
4,456
106
124
42.037736
0.764278
0.016607
0
0.154762
0
0
0.114808
0
0
0
0
0
0
1
0.047619
false
0
0.059524
0
0.142857
0.011905
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a820c01ed9ab1a3512b23d858002b832b81b6f26
506
py
Python
examples/snippets/data_io/df_connect/export_simple.py
nguyentr17/tamr-toolbox
1d27101eda12f937813cdbfe27e2fa9c33ac34d2
[ "Apache-2.0" ]
6
2021-02-09T22:27:55.000Z
2022-01-14T18:15:17.000Z
examples/snippets/data_io/df_connect/export_simple.py
nguyentr17/tamr-toolbox
1d27101eda12f937813cdbfe27e2fa9c33ac34d2
[ "Apache-2.0" ]
34
2021-02-09T22:23:33.000Z
2022-03-31T16:22:51.000Z
examples/snippets/data_io/df_connect/export_simple.py
nguyentr17/tamr-toolbox
1d27101eda12f937813cdbfe27e2fa9c33ac34d2
[ "Apache-2.0" ]
12
2021-02-09T21:17:10.000Z
2022-02-09T16:35:39.000Z
""" Export data from Tamr using df-connect. An example where everything is default in config file, which implies exported data is written back to same database as ingested from. """ import tamr_toolbox as tbox my_config = tbox.utils.config.from_yaml("examples/resources/conf/connect.config.yaml") my_connect = tbox.dat...
36.142857
94
0.8083
79
506
4.949367
0.518987
0.069054
0.061381
0.061381
0.127877
0.127877
0
0
0
0
0
0
0.102767
506
13
95
38.923077
0.861233
0.341897
0
0
0
0
0.24
0.132308
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a8247bed0a1cb5051fa0d35c0fab64fca16aa20d
1,396
py
Python
python/cuML/test/test_dbscan.py
rongou/cuml
9fbd7187ccf7ee7457c55b768ebd8ea86dbe2bec
[ "Apache-2.0" ]
null
null
null
python/cuML/test/test_dbscan.py
rongou/cuml
9fbd7187ccf7ee7457c55b768ebd8ea86dbe2bec
[ "Apache-2.0" ]
null
null
null
python/cuML/test/test_dbscan.py
rongou/cuml
9fbd7187ccf7ee7457c55b768ebd8ea86dbe2bec
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
32.465116
86
0.703438
223
1,396
4.345291
0.497758
0.06192
0.026832
0.033024
0.03096
0
0
0
0
0
0
0.041703
0.175501
1,396
42
87
33.238095
0.800174
0.401862
0
0
0
0
0.035452
0
0
0
0
0
0.05
1
0.05
false
0
0.3
0
0.35
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
a8276b0d3215a9fe2604eec700ad87c77dc2f29b
769
py
Python
LeetCode/0023_merge_k_sorted_lists.py
KanegaeGabriel/ye-olde-interview-prep-grind
868362872523a5688f49ab48efb09c3008e0db4d
[ "MIT" ]
1
2020-05-13T19:16:23.000Z
2020-05-13T19:16:23.000Z
LeetCode/0023_merge_k_sorted_lists.py
KanegaeGabriel/ye-olde-interview-prep-grind
868362872523a5688f49ab48efb09c3008e0db4d
[ "MIT" ]
null
null
null
LeetCode/0023_merge_k_sorted_lists.py
KanegaeGabriel/ye-olde-interview-prep-grind
868362872523a5688f49ab48efb09c3008e0db4d
[ "MIT" ]
null
null
null
from heapq import heappush, heappop class ListNode: def __init__(self, x): self.val = x self.next = None def __lt__(self, other): return self.val < other.val def mergeKLists(lists): result = ListNode(-1) p = result heap = [] for l in lists: if l: heappush(heap...
17.477273
45
0.579974
121
769
3.619835
0.322314
0.136986
0.027397
0
0
0
0
0
0
0
0
0.054945
0.289987
769
44
46
17.477273
0.747253
0.019506
0
0.060606
0
0
0.001328
0
0
0
0
0
0
1
0.090909
false
0
0.030303
0.030303
0.212121
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a82a766dd5a8919e5aec354cbe63b71c9cd59549
2,297
py
Python
source/cell_mask/cell_mask.py
zhanyinx/SPT_analysis
1cf806c1fd6051e7fc998d2860a16bea6aa9de1a
[ "MIT" ]
1
2021-07-09T11:51:04.000Z
2021-07-09T11:51:04.000Z
source/cell_mask/cell_mask.py
zhanyinx/SPT_analysis
1cf806c1fd6051e7fc998d2860a16bea6aa9de1a
[ "MIT" ]
null
null
null
source/cell_mask/cell_mask.py
zhanyinx/SPT_analysis
1cf806c1fd6051e7fc998d2860a16bea6aa9de1a
[ "MIT" ]
null
null
null
import argparse import glob import numpy as np import os import skimage.io import torch import tifffile from cellpose import models def _parse_args(): """Parse command-line arguments.""" parser = argparse.ArgumentParser() parser.add_argument( "-i", "--input", type=str, def...
25.241758
85
0.562908
284
2,297
4.43662
0.394366
0.042857
0.040476
0.042857
0.180952
0.120635
0.120635
0.065079
0.065079
0.065079
0
0.012141
0.318677
2,297
90
86
25.522222
0.792971
0.0431
0
0.256757
0
0
0.145405
0.015546
0
0
0
0
0
1
0.027027
false
0
0.108108
0
0.148649
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a82b6067d87e3c320c8e0fb55b9b998dccade592
14,134
py
Python
02-customer-cliff-dive/python/emery_leslie.py
leslem/insight-data-challenges
14c56d30663d7fef178b820d2128dbf4782c1200
[ "MIT" ]
null
null
null
02-customer-cliff-dive/python/emery_leslie.py
leslem/insight-data-challenges
14c56d30663d7fef178b820d2128dbf4782c1200
[ "MIT" ]
1
2021-06-08T02:43:08.000Z
2021-06-08T03:05:21.000Z
02-customer-cliff-dive/python/emery_leslie.py
leslem/insight-data-challenges
14c56d30663d7fef178b820d2128dbf4782c1200
[ "MIT" ]
null
null
null
# # Customer cliff dive data challenge # 2020-02-17 # Leslie Emery # ## Summary # ### The problem # The head of the Yammer product team has noticed a precipitous drop in weekly active users, which is one of the main KPIs for customer engagement. What has caused this drop? # ### My approach and results # I began b...
51.963235
524
0.743809
2,168
14,134
4.660978
0.223247
0.038001
0.032063
0.03048
0.35052
0.307472
0.254132
0.215636
0.192083
0.15616
0
0.008326
0.150276
14,134
271
525
52.154982
0.833056
0.417787
0
0.163265
0
0.006803
0.22371
0.045332
0
0
0
0
0
1
0
false
0
0.061224
0
0.061224
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a82c200cd117a48cc9a2ebacd146f50b56baabcf
23,587
py
Python
convolutional_attention/token_naming_data.py
s1530129650/convolutional-attention
8839da8146962879bb419a61253e7cf1b684fb22
[ "BSD-3-Clause" ]
128
2016-05-10T01:38:27.000Z
2022-02-04T07:14:12.000Z
convolutional_attention/token_naming_data.py
s1530129650/convolutional-attention
8839da8146962879bb419a61253e7cf1b684fb22
[ "BSD-3-Clause" ]
6
2016-07-19T09:27:47.000Z
2021-07-08T21:22:32.000Z
convolutional_attention/token_naming_data.py
s1530129650/convolutional-attention
8839da8146962879bb419a61253e7cf1b684fb22
[ "BSD-3-Clause" ]
36
2016-05-11T08:57:26.000Z
2021-07-07T02:37:07.000Z
from collections import defaultdict import heapq from itertools import chain, repeat from feature_dict import FeatureDictionary import json import numpy as np import scipy.sparse as sp class TokenCodeNamingData: SUBTOKEN_START = "%START%" SUBTOKEN_END = "%END%" NONE = "%NONE%" @staticmethod def _...
51.953744
143
0.644338
3,038
23,587
4.682357
0.087558
0.022777
0.020387
0.035571
0.68471
0.651107
0.624394
0.603866
0.578278
0.554517
0
0.008087
0.255607
23,587
453
144
52.068433
0.802085
0.061347
0
0.497222
0
0
0.003678
0
0
0
0
0.002208
0.061111
1
0.069444
false
0
0.019444
0.002778
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a82c44a1683f511d5f99fbda3a6f12bd84f86c4c
550
py
Python
test_word.py
AsherSeiling/Ap-hug-Vocab-database
fbf29a225e81a5807b6ff4e06fbb24e88ce55a6a
[ "MIT" ]
null
null
null
test_word.py
AsherSeiling/Ap-hug-Vocab-database
fbf29a225e81a5807b6ff4e06fbb24e88ce55a6a
[ "MIT" ]
1
2021-02-27T06:12:07.000Z
2021-03-01T14:32:39.000Z
test_word.py
AsherSeiling/Ap-hug-Vocab-database
fbf29a225e81a5807b6ff4e06fbb24e88ce55a6a
[ "MIT" ]
1
2021-02-27T06:14:55.000Z
2021-02-27T06:14:55.000Z
words = open("words.txt", "r") words = [x.rstrip("\n") for x in words.readlines()] refwords = open("referencewords.txt", "r") refwords = [x.strip("\n") for x in refwords.readlines()] def find_word(word): retunrval = False if word.lower() in words: retunrval = True return retunrval words_needed = [] def main(): ...
20.37037
56
0.650909
81
550
4.358025
0.37037
0.05949
0.028329
0.03966
0
0
0
0
0
0
0
0
0.187273
550
27
57
20.37037
0.789709
0
0
0
0
0
0.061706
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.136364
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a82ef552d3bf70dc77e897c13a1b0f9b584ffa9d
3,359
py
Python
src/keras_networks.py
RU-IIPL/2DLD_keras
8c291b6a652f54bd94cb3a5c8382d10ba42e5cbf
[ "MIT" ]
1
2021-05-24T08:00:29.000Z
2021-05-24T08:00:29.000Z
src/keras_networks.py
RU-IIPL/2DLD_keras
8c291b6a652f54bd94cb3a5c8382d10ba42e5cbf
[ "MIT" ]
null
null
null
src/keras_networks.py
RU-IIPL/2DLD_keras
8c291b6a652f54bd94cb3a5c8382d10ba42e5cbf
[ "MIT" ]
1
2021-09-29T03:43:46.000Z
2021-09-29T03:43:46.000Z
# -*- coding: utf-8 -*- """ @author: Terada """ from keras.models import Sequential, Model from keras.layers import Dense, MaxPooling2D, Flatten, Dropout from keras.layers import Conv2D, BatchNormalization, ZeroPadding2D, MaxPool2D from keras.layers import Input, Convolution2D, AveragePooling2D, merge, Reshape, Activat...
42.518987
122
0.677583
469
3,359
4.784648
0.181237
0.128342
0.068627
0.088235
0.665775
0.620321
0.566845
0.487077
0.4541
0.407754
0
0.072772
0.144984
3,359
78
123
43.064103
0.708565
0.036023
0
0.514706
0
0
0.041525
0
0
0
0
0
0
1
0.058824
false
0
0.073529
0
0.191176
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a830be9674eca4b0486b3f40d92cbb270322784c
2,327
py
Python
Bitcoin_Malware.py
Ismael-Safadi/Bitcoin-Wallet-address-spoofer
16b92d5538d10a2b14ee1fed441a25bdb33a2e67
[ "MIT" ]
7
2019-03-04T14:28:53.000Z
2022-01-31T12:11:53.000Z
Bitcoin_Malware.py
Ismael-Safadi/Bitcoin-Wallet-address-spoofer
16b92d5538d10a2b14ee1fed441a25bdb33a2e67
[ "MIT" ]
null
null
null
Bitcoin_Malware.py
Ismael-Safadi/Bitcoin-Wallet-address-spoofer
16b92d5538d10a2b14ee1fed441a25bdb33a2e67
[ "MIT" ]
4
2019-03-04T14:29:01.000Z
2022-01-31T12:11:40.000Z
# Coded By : Ismael Al-safadi from win32gui import GetWindowText, GetForegroundWindow from pyperclip import copy from re import findall from win32clipboard import OpenClipboard , GetClipboardData , CloseClipboard from time import sleep class BitcoinDroper: """ class for spoofing Bitcoin Wallet address...
31.026667
96
0.628277
277
2,327
5.108303
0.34657
0.055124
0.060071
0.018375
0.039576
0.039576
0
0
0
0
0
0.007932
0.29566
2,327
74
97
31.445946
0.8554
0.243661
0
0.212766
0
0
0.054434
0
0
0
0
0
0
1
0.148936
false
0
0.106383
0.021277
0.382979
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a8347276bdea4347d1187329f50e22db158c90b3
5,096
py
Python
Stock_Programs/myOauth.py
timwroge/DeepPurple
3d6f3203938853ede654ef4f88b7451a1ba3999e
[ "Apache-2.0" ]
4
2020-02-13T18:57:41.000Z
2020-08-03T21:08:26.000Z
Stock_Programs/myOauth.py
timwroge/DeepPurple
3d6f3203938853ede654ef4f88b7451a1ba3999e
[ "Apache-2.0" ]
null
null
null
Stock_Programs/myOauth.py
timwroge/DeepPurple
3d6f3203938853ede654ef4f88b7451a1ba3999e
[ "Apache-2.0" ]
1
2021-06-14T13:42:39.000Z
2021-06-14T13:42:39.000Z
import urllib.parse, urllib.request,json import time import hmac, hashlib,random,base64 #yahoo stuff #client ID dj0yJmk9S3owYWNNcm1jS3VIJmQ9WVdrOU1HMUZiMHh5TjJNbWNHbzlNQS0tJnM9Y29uc3VtZXJzZWNyZXQmeD0xOQ-- #client secret ID fcde44eb1bf2a7ff474b9fd861a6fcf33be56d3f def setConsumerCreds(cons_key,cons_s...
41.770492
116
0.724882
518
5,096
6.978764
0.247104
0.032365
0.014385
0.026556
0.296819
0.260858
0.232089
0.167358
0.100692
0.080221
0
0.015684
0.161695
5,096
121
117
42.115702
0.830524
0.040424
0
0.12381
0
0
0.090145
0.012088
0
0
0
0
0
1
0.12381
false
0
0.028571
0.028571
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
a8347a798c6edcafbe98def909244e3a366c1264
5,246
py
Python
IOController/src/UpdateManager.py
MicrosoftDX/liquidintel
8c3f840f88ca3515cc812078a620e2a845978177
[ "MIT" ]
9
2017-05-27T20:42:46.000Z
2020-11-12T21:03:28.000Z
IOController/src/UpdateManager.py
MicrosoftDX/liquidintel
8c3f840f88ca3515cc812078a620e2a845978177
[ "MIT" ]
30
2017-02-16T19:43:18.000Z
2018-01-17T21:17:01.000Z
IOController/src/UpdateManager.py
MicrosoftDX/liquidintel
8c3f840f88ca3515cc812078a620e2a845978177
[ "MIT" ]
6
2017-02-24T03:40:04.000Z
2020-11-22T20:29:11.000Z
import os, sys, logging, threading, tempfile, shutil, tarfile, inspect from ConfigParser import RawConfigParser import requests from DXLiquidIntelApi import DXLiquidIntelApi log = logging.getLogger(__name__) class UpdateManager: def __init__(self, liquidApi, packageType, checkUnpublished, packageCheckInterval, c...
51.940594
191
0.62276
510
5,246
6.319608
0.411765
0.014893
0.009308
0.008688
0.017375
0
0
0
0
0
0
0.002186
0.302326
5,246
100
192
52.46
0.878415
0.138582
0
0.052632
0
0.013158
0.130551
0
0
0
0
0
0
1
0.092105
false
0.013158
0.052632
0.026316
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a834a938200061353abd64e3aa79cc1eac77b3bf
2,511
py
Python
python/jinja2_template.py
bismog/leetcode
13b8a77045f96e7c59ddfe287481f6aaa68e564d
[ "MIT" ]
null
null
null
python/jinja2_template.py
bismog/leetcode
13b8a77045f96e7c59ddfe287481f6aaa68e564d
[ "MIT" ]
null
null
null
python/jinja2_template.py
bismog/leetcode
13b8a77045f96e7c59ddfe287481f6aaa68e564d
[ "MIT" ]
1
2018-08-17T07:07:15.000Z
2018-08-17T07:07:15.000Z
#!/usr/bin/env python import os from jinja2 import Environment, FileSystemLoader PATH = os.path.dirname(os.path.abspath(__file__)) env = Environment(loader=FileSystemLoader(os.path.join(PATH, 'templates'))) mac_addr = "01:23:45:67:89:01" PXE_ROOT_DIR = "/data/tftpboot" pxe_options = { 'os_distribution': 'centos...
31
84
0.68419
364
2,511
4.486264
0.318681
0.024495
0.029394
0.029394
0.22229
0.169626
0.119412
0.05695
0.05695
0
0
0.011679
0.181601
2,511
80
85
31.3875
0.782968
0.329351
0
0
0
0
0.159669
0.031807
0
0
0
0
0
1
0.105263
false
0
0.052632
0
0.236842
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a837db7dbbd9e3811093f9342986a637e65f9e07
1,101
py
Python
school_system/users/admin.py
SanyaDeath/BIA-school-system
d07e4e86f91cf1e24c211cc9f5524c50da45b0e5
[ "BSD-3-Clause" ]
null
null
null
school_system/users/admin.py
SanyaDeath/BIA-school-system
d07e4e86f91cf1e24c211cc9f5524c50da45b0e5
[ "BSD-3-Clause" ]
null
null
null
school_system/users/admin.py
SanyaDeath/BIA-school-system
d07e4e86f91cf1e24c211cc9f5524c50da45b0e5
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin from .models import Student, User admin.site.site_header = 'BIA SCHOOL SYSTEM' class UserAdmin(DjangoUserAdmin): model = User fieldsets = DjangoUserAdmin.fieldsets + ((None, { 'fields': ('role', 'midd...
28.230769
66
0.613079
119
1,101
5.478992
0.411765
0.06135
0.069018
0.087423
0.197853
0.197853
0.156442
0.156442
0.156442
0.156442
0
0
0.254314
1,101
38
67
28.973684
0.794153
0
0
0.076923
0
0
0.197094
0
0
0
0
0
0
1
0.038462
false
0
0.115385
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5179adb5c10e59288f470f8fa76ecec344ba97b
1,111
py
Python
converter.py
ownerofworld/TDroidDesk
5c773f15d764e6cff468bb39ed40dca5ba07d902
[ "MIT" ]
20
2017-02-22T18:36:57.000Z
2022-03-23T11:03:35.000Z
converter.py
extratone/TDroidDesk
e778463e996368374c856e6154dc0885df1f3c11
[ "MIT" ]
3
2017-02-23T03:51:07.000Z
2017-03-26T15:06:35.000Z
converter.py
extratone/TDroidDesk
e778463e996368374c856e6154dc0885df1f3c11
[ "MIT" ]
9
2017-02-23T19:39:20.000Z
2022-01-02T03:28:01.000Z
# coding: utf-8 """Converter module.""" import util THEME = 'theme' BACKGROUND = 'background' class ThemeConverter(object): """Object that converts themes using given map file.""" def __init__(self, theme_map, transp_map): """Constructor.""" self.theme_map = theme_map self.transp_m...
26.452381
74
0.621062
131
1,111
5.015267
0.381679
0.100457
0.054795
0
0
0
0
0
0
0
0
0.002519
0.285329
1,111
41
75
27.097561
0.824937
0.212421
0
0
0
0
0.018116
0
0
0
0
0
0
1
0.105263
false
0
0.052632
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5195d6a3d0b3fd5a3b08706a1231fda25ed0eb8
2,252
py
Python
py/DREAM/Settings/Equations/RunawayElectronDistribution.py
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
12
2020-09-07T11:19:10.000Z
2022-02-17T17:40:19.000Z
py/DREAM/Settings/Equations/RunawayElectronDistribution.py
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
110
2020-09-02T15:29:24.000Z
2022-03-09T09:50:01.000Z
py/DREAM/Settings/Equations/RunawayElectronDistribution.py
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
3
2021-05-21T13:24:31.000Z
2022-02-11T14:43:12.000Z
import numpy as np from DREAM.Settings.Equations.EquationException import EquationException from . import DistributionFunction as DistFunc from . DistributionFunction import DistributionFunction from .. TransportSettings import TransportSettings INIT_FORWARD = 1 INIT_XI_NEGATIVE = 2 INIT_XI_POSITIVE = 3 INIT_ISOTROP...
30.026667
83
0.655861
278
2,252
5.097122
0.366906
0.031757
0.067749
0.048694
0.149612
0.08892
0.0494
0
0
0
0
0.020784
0.25222
2,252
74
84
30.432432
0.820665
0.150089
0
0
0
0
0.015608
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b51c95bad3faa026a48a62db4fc8bca989c644e2
7,561
py
Python
data/unaligned_dataset.py
basicskywards/cyclegan-yolo
536498706da30707facf1211355ff21df2e5b227
[ "BSD-3-Clause" ]
null
null
null
data/unaligned_dataset.py
basicskywards/cyclegan-yolo
536498706da30707facf1211355ff21df2e5b227
[ "BSD-3-Clause" ]
null
null
null
data/unaligned_dataset.py
basicskywards/cyclegan-yolo
536498706da30707facf1211355ff21df2e5b227
[ "BSD-3-Clause" ]
null
null
null
import os.path import torchvision.transforms as transforms from data.base_dataset import BaseDataset, get_transform from data.image_folder import make_dataset from PIL import Image import PIL from pdb import set_trace as st import torch import numpy as np #from yolo.utils.datasets import pad #import torchvision.trans...
40.005291
206
0.562492
1,031
7,561
3.903977
0.173618
0.017391
0.019876
0.017888
0.358261
0.308571
0.244969
0.201491
0.172671
0.159255
0
0.015264
0.289512
7,561
188
207
40.218085
0.733991
0.297183
0
0.020619
0
0
0.0518
0.004761
0
0
0
0
0
1
0.061856
false
0
0.103093
0.020619
0.226804
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b51f90c659e185b69613117f368541efd8ec132f
8,396
py
Python
primare_control/primare_interface.py
ZenithDK/primare-control
597a2dd15bedb511fab5cca8d01044692d1e2d96
[ "Apache-2.0" ]
null
null
null
primare_control/primare_interface.py
ZenithDK/primare-control
597a2dd15bedb511fab5cca8d01044692d1e2d96
[ "Apache-2.0" ]
null
null
null
primare_control/primare_interface.py
ZenithDK/primare-control
597a2dd15bedb511fab5cca8d01044692d1e2d96
[ "Apache-2.0" ]
null
null
null
"""Interface to Primare amplifiers using Twisted SerialPort. This module allows you to control your Primare I22 and I32 amplifier from the command line using Primare's binary protocol via the RS232 port on the amplifier. """ import logging import click from contextlib import closing from primare_control import Prima...
36.504348
79
0.47737
798
8,396
4.902256
0.288221
0.027607
0.021472
0.033742
0.221115
0.162065
0.126278
0.126278
0.126278
0.112986
0
0.01643
0.412816
8,396
229
80
36.663755
0.777079
0.137685
0
0.293413
0
0
0.129792
0
0
0
0
0
0
1
0.02994
false
0.02994
0.023952
0
0.071856
0.005988
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b51fa08d66290d275d2da9e4167fcbc0a1d4e931
382
py
Python
sjfxjc/foundations-for-analytics-with-python-master/csv/2csv_reader_parsing_and_write.py
SaronZhou/python
40d73b49b9b17542c73a3c09d28e479d2fefcde3
[ "MIT" ]
null
null
null
sjfxjc/foundations-for-analytics-with-python-master/csv/2csv_reader_parsing_and_write.py
SaronZhou/python
40d73b49b9b17542c73a3c09d28e479d2fefcde3
[ "MIT" ]
null
null
null
sjfxjc/foundations-for-analytics-with-python-master/csv/2csv_reader_parsing_and_write.py
SaronZhou/python
40d73b49b9b17542c73a3c09d28e479d2fefcde3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import csv import sys input_file = sys.argv[1] output_file = sys.argv[2] with open(input_file, 'r', newline='') as csv_in_file: with open(output_file, 'w', newline='') as csv_out_file: filereader = csv.reader(csv_in_file, delimiter=',') filewriter = csv.writer(csv_out_file, delimiter=',') ...
29.384615
57
0.730366
61
382
4.344262
0.491803
0.067925
0.083019
0
0
0
0
0
0
0
0
0.008982
0.125654
382
13
58
29.384615
0.784431
0.054974
0
0
0
0
0.01108
0
0
0
0
0
0
1
0
false
0
0.2
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
b5220f9d88a447b033fc07fa837a16f3731fa688
1,971
py
Python
ocrDA.py
it-pebune/ani-research-data-extraction
e8b0ffecb0835020ce7942223cf566dc45ccee35
[ "MIT" ]
null
null
null
ocrDA.py
it-pebune/ani-research-data-extraction
e8b0ffecb0835020ce7942223cf566dc45ccee35
[ "MIT" ]
7
2022-01-29T22:19:55.000Z
2022-03-28T18:18:19.000Z
ocrDA.py
it-pebune/ani-research-data-extraction
e8b0ffecb0835020ce7942223cf566dc45ccee35
[ "MIT" ]
null
null
null
import json from NewDeclarationInQueue.formular_converter import FormularConverter from NewDeclarationInQueue.preprocess_one_step import PreprocessOneStep from NewDeclarationInQueue.preprocess_two_steps import PreProcessTwoSteps from NewDeclarationInQueue.processfiles.customprocess.search_text_line_parameter import Se...
38.647059
112
0.811771
235
1,971
6.395745
0.289362
0.08982
0.123087
0.0998
0.049235
0
0
0
0
0
0
0
0.129376
1,971
50
113
39.42
0.875874
0.125824
0
0
0
0
0.015734
0
0
0
0
0
0
1
0.1
false
0
0.3
0
0.433333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b525a442d992316233f044f50e799f9a075c90fa
1,270
py
Python
app/users/tasks.py
atulmishra-one/dairy_management_portal
a07320dc0f4419d4c78f7d2453c63b1c9544aba8
[ "MIT" ]
2
2020-08-02T10:06:19.000Z
2022-03-29T06:10:57.000Z
app/users/tasks.py
atulmishra-one/dairy_management_portal
a07320dc0f4419d4c78f7d2453c63b1c9544aba8
[ "MIT" ]
null
null
null
app/users/tasks.py
atulmishra-one/dairy_management_portal
a07320dc0f4419d4c78f7d2453c63b1c9544aba8
[ "MIT" ]
2
2019-02-03T15:44:02.000Z
2021-03-09T07:30:28.000Z
import xlrd from app.services.extension import task_server, sqlalchemy as db from app.models.core.user import User from app.application import initialize_app try: from app.config.production import ProductionConfig as config_object except ImportError: from app.config.local import LocalConfig as config_object ...
27.608696
71
0.607874
157
1,270
4.770701
0.509554
0.046729
0.034713
0.024032
0.048064
0
0
0
0
0
0
0.009934
0.286614
1,270
46
72
27.608696
0.816777
0.019685
0
0
0
0
0.049035
0
0
0
0
0
0
1
0.027027
false
0.027027
0.189189
0
0.243243
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b526e227b8af6adb71768eb4900aaf57a69f1acb
3,444
py
Python
savenger.py
SlapBot/GodkillerArmor
27058332cd94c4389b092a621eeedc834d8f5a15
[ "MIT" ]
3
2018-07-06T17:06:28.000Z
2018-09-06T03:31:43.000Z
savenger.py
SlapBot/GodkillerArmor
27058332cd94c4389b092a621eeedc834d8f5a15
[ "MIT" ]
null
null
null
savenger.py
SlapBot/GodkillerArmor
27058332cd94c4389b092a621eeedc834d8f5a15
[ "MIT" ]
1
2018-07-10T00:13:07.000Z
2018-07-10T00:13:07.000Z
from praw import Reddit import random class Savenger: AVENGERS = ["Iron Man", "Doctor Strange", "Star-Lord", "Black Widow", "Thor", "Spider-Man", "Captain America", "Wanda Maximoff", "Bucky Barnes", "Loki", "Hulk", "Black Panther", "Vision", "Gamora", "Drax", "Nebula", ...
44.727273
108
0.626597
370
3,444
5.683784
0.318919
0.029957
0.033286
0.043272
0.162625
0.162625
0.162625
0.07418
0
0
0
0
0.278165
3,444
76
109
45.315789
0.845937
0
0
0.166667
0
0.015152
0.256969
0.044715
0
0
0
0
0
1
0.121212
false
0.030303
0.030303
0.015152
0.287879
0.212121
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b52a4b91de40afb841386437bc92df7dcd61942d
1,493
py
Python
python-packages/pyRiemann-0.2.2/pyriemann/channelselection.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
2
2017-08-13T14:09:32.000Z
2018-07-16T23:39:00.000Z
python-packages/pyRiemann-0.2.2/pyriemann/channelselection.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
null
null
null
python-packages/pyRiemann-0.2.2/pyriemann/channelselection.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
2
2018-04-02T06:45:11.000Z
2018-07-16T23:39:02.000Z
from .utils.distance import distance from .classification import MDM import numpy from sklearn.base import BaseEstimator, TransformerMixin ########################################################## class ElectrodeSelection(BaseEstimator, TransformerMixin): def __init__(self, nelec=16, metric='riemann'): ...
31.765957
62
0.464836
153
1,493
4.503268
0.326797
0.143687
0.060958
0.040639
0
0
0
0
0
0
0
0.009751
0.381782
1,493
46
63
32.456522
0.736728
0.005358
0
0.055556
0
0
0.004912
0
0
0
0
0
0
1
0.083333
false
0
0.111111
0.027778
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
b52daf8a9a6916b3bc3be9fb6b077491427da67f
1,728
py
Python
mac_changer.py
xicoder96/luv-sic
033527b558c3e4d7f254dca1e2f6f0ccf9ff78fe
[ "MIT" ]
null
null
null
mac_changer.py
xicoder96/luv-sic
033527b558c3e4d7f254dca1e2f6f0ccf9ff78fe
[ "MIT" ]
null
null
null
mac_changer.py
xicoder96/luv-sic
033527b558c3e4d7f254dca1e2f6f0ccf9ff78fe
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import subprocess import re import argparse def get_arguments(): parser = argparse.ArgumentParser() parser.add_argument("-i", "--interface", dest="interface", help="interface to change mac address") parser.add_argument("-m", "--mac", dest="new_mac", ...
33.230769
79
0.65162
221
1,728
4.918552
0.316742
0.020239
0.027599
0.033119
0.236431
0.158234
0.158234
0.01104
0.01104
0.01104
0
0.001468
0.211806
1,728
51
80
33.882353
0.796623
0.012153
0
0.1
0
0.025
0.292497
0.016999
0
0
0
0
0
1
0.075
false
0
0.075
0
0.2
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b53016b4f1a8a22aaafbf177615312636a59d031
1,916
py
Python
training/model.py
J77M/stuffy-nose-recognition
e5d8957e2026e9046e6ffee69a60a11a686bc042
[ "MIT" ]
null
null
null
training/model.py
J77M/stuffy-nose-recognition
e5d8957e2026e9046e6ffee69a60a11a686bc042
[ "MIT" ]
null
null
null
training/model.py
J77M/stuffy-nose-recognition
e5d8957e2026e9046e6ffee69a60a11a686bc042
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import time import utils path = r'data/' x, y = utils.reload_data(path) inp_shape = (x[0].shape[0],1) x = np.array(x).reshape(-1, 1000, 1)# change 1000 to your sample lenght if you changed frame (= CHUNK ) or RESOLUTION # prepared for testing and evaluating. try other comb...
39.102041
173
0.641441
256
1,916
4.625
0.382813
0.053209
0.059122
0.088682
0.274493
0.217905
0.191723
0.162162
0.092905
0.092905
0
0.023826
0.233299
1,916
49
174
39.102041
0.782165
0.080898
0
0.055556
0
0
0.092098
0.039795
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5325a85e324486debcb82eb330c6fd293cb8cf4
1,306
py
Python
game/game/protocol.py
maosplx/L2py
5d81b2ea150c0096cfce184706fa226950f7f583
[ "MIT" ]
7
2020-09-01T21:52:37.000Z
2022-02-25T16:00:08.000Z
game/game/protocol.py
maosplx/L2py
5d81b2ea150c0096cfce184706fa226950f7f583
[ "MIT" ]
4
2021-09-10T22:15:09.000Z
2022-03-25T22:17:43.000Z
game/game/protocol.py
maosplx/L2py
5d81b2ea150c0096cfce184706fa226950f7f583
[ "MIT" ]
9
2020-09-01T21:53:39.000Z
2022-03-30T12:03:04.000Z
import logging from common.api_handlers import handle_request from common.packet import Packet from common.response import Response from common.transport.protocol import TCPProtocol from game.models.world import WORLD from game.session import GameSession from game.states import Connected LOG = logging.getLogger(f"l2p...
30.372093
79
0.658499
146
1,306
5.760274
0.431507
0.092747
0.014269
0.035672
0.054697
0.054697
0
0
0
0
0
0.00207
0.260337
1,306
42
80
31.095238
0.86853
0
0
0.058824
0
0
0.048239
0
0
0
0
0
0
1
0.058824
false
0
0.235294
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b536ac94f02abdab43e5ca604aa965f6ad2715d0
1,394
py
Python
pyoptmat/solvers.py
Argonne-National-Laboratory/pyoptmat
a6e5e8d0b93c77374d4ccbc65a86262eec5df77b
[ "MIT" ]
null
null
null
pyoptmat/solvers.py
Argonne-National-Laboratory/pyoptmat
a6e5e8d0b93c77374d4ccbc65a86262eec5df77b
[ "MIT" ]
1
2022-03-30T22:20:38.000Z
2022-03-31T15:02:22.000Z
pyoptmat/solvers.py
Argonne-National-Laboratory/pyoptmat
a6e5e8d0b93c77374d4ccbc65a86262eec5df77b
[ "MIT" ]
2
2021-11-16T15:13:54.000Z
2022-01-06T21:35:42.000Z
import torch import warnings def newton_raphson(fn, x0, linsolver = "lu", rtol = 1e-6, atol = 1e-10, miter = 100): """ Solve a nonlinear system with Newton's method. Return the solution and the last Jacobian Args: fn: function that returns the residual and Jacobian x0:...
27.333333
82
0.585366
191
1,394
4.246073
0.471204
0.059186
0.009864
0.01233
0.051788
0.051788
0.051788
0.051788
0.051788
0.051788
0
0.021784
0.308465
1,394
50
83
27.88
0.819502
0.422525
0
0.166667
0
0
0.127572
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.291667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5373a616def2b1d58dca3805f309b56a4c149e0
323
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/number-of-substrings-with-only-1s.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/number-of-substrings-with-only-1s.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/number-of-substrings-with-only-1s.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: O(n) # Space: O(1) class Solution(object): def numSub(self, s): """ :type s: str :rtype: int """ MOD = 10**9+7 result, count = 0, 0 for c in s: count = count+1 if c == '1' else 0 result = (result+count)%MOD return resu...
20.1875
46
0.436533
44
323
3.204545
0.659091
0.156028
0
0
0
0
0
0
0
0
0
0.054054
0.427245
323
15
47
21.533333
0.708108
0.151703
0
0
0
0
0.004149
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b537ff6eac7f94b76cf8db09b3957cee998efb52
4,531
py
Python
usecase-2/monitoring/fleet-seat-info-monitor/src/seat_res_train_monitor.py
edgefarm/edgefarm-demos
6381d4a2f7f9c1d0632ab8123fed2bd0763d3b34
[ "MIT" ]
null
null
null
usecase-2/monitoring/fleet-seat-info-monitor/src/seat_res_train_monitor.py
edgefarm/edgefarm-demos
6381d4a2f7f9c1d0632ab8123fed2bd0763d3b34
[ "MIT" ]
9
2021-04-21T10:37:45.000Z
2021-07-28T05:56:50.000Z
usecase-2/monitoring/fleet-seat-info-monitor/src/seat_res_train_monitor.py
edgefarm/train-simulation
6381d4a2f7f9c1d0632ab8123fed2bd0763d3b34
[ "MIT" ]
null
null
null
import logging import datetime import asyncio from edgefarm_application.base.application_module import application_module_network_nats from edgefarm_application.base.avro import schemaless_decode from run_task import run_task from state_tracker import StateTracker from schema_loader import schema_load _logger = logg...
31.685315
96
0.608034
549
4,531
4.73224
0.238616
0.037721
0.028868
0.024634
0.156274
0.111624
0.070824
0.070824
0.026944
0
0
0.001888
0.29861
4,531
142
97
31.908451
0.815607
0.060252
0
0.115385
0
0
0.110227
0.005065
0
0
0
0
0
1
0.038462
false
0
0.076923
0.009615
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b538595bde41c89c5a8fbdc33e2ae560a927b953
1,597
py
Python
src/AML/run_training.py
monkeypants/CartridgeOCR
a2cdaa72e3839a881118b85f5ff7b4515579004b
[ "MIT" ]
2
2021-07-12T02:37:46.000Z
2021-12-28T23:03:20.000Z
src/AML/run_training.py
monkeypants/CartridgeOCR
a2cdaa72e3839a881118b85f5ff7b4515579004b
[ "MIT" ]
28
2021-12-29T00:51:24.000Z
2022-03-24T08:03:59.000Z
src/AML/run_training.py
monkeypants/CartridgeOCR
a2cdaa72e3839a881118b85f5ff7b4515579004b
[ "MIT" ]
4
2021-09-24T16:13:43.000Z
2022-03-09T17:52:35.000Z
import sys from azureml.core import Workspace, Experiment, Environment, ScriptRunConfig from azureml.core.compute import ComputeTarget, AmlCompute from azureml.core.compute_target import ComputeTargetException from shutil import copy ws = Workspace.from_config() # Choose a name for your CPU cluster # cpu_cluster_name...
35.488889
86
0.708203
187
1,597
5.834225
0.475936
0.082493
0.064161
0.04033
0
0
0
0
0
0
0
0.004688
0.198497
1,597
44
87
36.295455
0.847656
0.068253
0
0
0
0
0.117925
0
0
0
0
0
0
1
0
false
0
0.16129
0
0.16129
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
b538fc619dc6adad01e93a8132a517e7cc8b2d80
818
py
Python
tests/conftest.py
cielavenir/pyppmd-py2
c148b8fbe7cb0c0e9f68fdf9a1c3599325f0e4c8
[ "BSD-3-Clause" ]
3
2021-05-04T13:20:39.000Z
2021-11-03T12:43:02.000Z
tests/conftest.py
cielavenir/pyppmd-py2
c148b8fbe7cb0c0e9f68fdf9a1c3599325f0e4c8
[ "BSD-3-Clause" ]
39
2021-04-16T02:55:28.000Z
2022-03-30T14:23:50.000Z
tests/conftest.py
cielavenir/pyppmd-py2
c148b8fbe7cb0c0e9f68fdf9a1c3599325f0e4c8
[ "BSD-3-Clause" ]
3
2021-07-07T17:39:30.000Z
2022-03-30T15:15:44.000Z
import cpuinfo def pytest_benchmark_update_json(config, benchmarks, output_json): """Calculate compression/decompression speed and add as extra_info""" for benchmark in output_json["benchmarks"]: if "data_size" in benchmark["extra_info"]: rate = benchmark["extra_info"].get("data_size", 0.0...
43.052632
110
0.684597
109
818
4.862385
0.40367
0.079245
0.075472
0.090566
0
0
0
0
0
0
0
0.00292
0.162592
818
18
111
45.444444
0.770803
0.077017
0
0
0
0
0.233645
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b53920dd20dbdafabadb24be44f2a512437147fb
331
py
Python
examples/test_gcld3.py
lbp0200/EasyNMT
d253e9346996a47aa989bb33aed72e531528dc27
[ "Apache-2.0" ]
null
null
null
examples/test_gcld3.py
lbp0200/EasyNMT
d253e9346996a47aa989bb33aed72e531528dc27
[ "Apache-2.0" ]
null
null
null
examples/test_gcld3.py
lbp0200/EasyNMT
d253e9346996a47aa989bb33aed72e531528dc27
[ "Apache-2.0" ]
null
null
null
import time import gcld3 detector = gcld3.NNetLanguageIdentifier(min_num_bytes=0, max_num_bytes=1000) # text = "This text is written in English" text = "薄雾" while True: result = detector.FindLanguage(text=text) print(text, result.probability, result.language) time.s...
25.461538
59
0.65861
41
331
5.219512
0.658537
0.074766
0
0
0
0
0
0
0
0
0
0.040323
0.250755
331
12
60
27.583333
0.822581
0.120846
0
0
0
0
0.00692
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
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
b539e3fd28c31f9e28937feef603fdbd7a3fc98e
1,593
py
Python
src/0075下一个排列/index.py
zzh2036/OneDayOneLeetcode
1198692e68f8f0dbf15555e45969122e1a92840a
[ "MIT" ]
null
null
null
src/0075下一个排列/index.py
zzh2036/OneDayOneLeetcode
1198692e68f8f0dbf15555e45969122e1a92840a
[ "MIT" ]
null
null
null
src/0075下一个排列/index.py
zzh2036/OneDayOneLeetcode
1198692e68f8f0dbf15555e45969122e1a92840a
[ "MIT" ]
null
null
null
''' 实现获取 下一个排列 的函数,算法需要将给定数字序列重新排列成字典序中下一个更大的排列。 如果不存在下一个更大的排列,则将数字重新排列成最小的排列(即升序排列)。 必须 原地 修改,只允许使用额外常数空间。 示例 1: 输入:nums = [1,2,3] 输出:[1,3,2] 示例 2: 输入:nums = [3,2,1] 输出:[1,2,3] 示例 3: 输入:nums = [1,1,5] 输出:[1,5,1] 示例 4: 输入:nums = [1] 输出:[1]   提示: 1 <= nums.length <= 100 0 <= nums[i] <= 100 ''' class Solution: ...
22.125
61
0.468927
199
1,593
3.713568
0.371859
0.040595
0.028417
0
0
0
0
0
0
0
0
0.054507
0.40113
1,593
71
62
22.43662
0.720126
0.310107
0
0
0
0
0.007533
0
0
0
0
0
0
1
0.103448
false
0
0
0
0.206897
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b53df049332ea39e2f7827214e41edfb7e42ca6c
7,885
py
Python
feed_forward_model.py
karlschrader/deepPD
678793c9026eab2681d2d0a3b7e7f9f91c0f3bc5
[ "MIT" ]
null
null
null
feed_forward_model.py
karlschrader/deepPD
678793c9026eab2681d2d0a3b7e7f9f91c0f3bc5
[ "MIT" ]
null
null
null
feed_forward_model.py
karlschrader/deepPD
678793c9026eab2681d2d0a3b7e7f9f91c0f3bc5
[ "MIT" ]
null
null
null
import os from datetime import datetime import numpy as np import tensorflow as tf from tensorflow.python.training import moving_averages TF_DTYPE = tf.float64 MOMENTUM = 0.99 EPSILON = 1e-6 DELTA_CLIP = 50.0 class FeedForwardModel(): """ Abstract class for creating neural networks. Offers functions to ...
38.842365
95
0.557261
872
7,885
4.824541
0.231651
0.01545
0.022819
0.02377
0.365581
0.314476
0.246019
0.214405
0.151652
0.151652
0
0.009419
0.367153
7,885
202
96
39.034653
0.833667
0.29423
0
0.281818
0
0
0.030564
0
0
0
0
0
0
1
0.054545
false
0
0.045455
0
0.163636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b540b40d9aaf331bef2f785083b2bbd7ed30bfe6
619
py
Python
Fibonacci/Python/fibonacci.py
IanDoarn/LearningRepo
4c5906b3c1f497a979c3fce89a66d1e571cd6b42
[ "MIT" ]
null
null
null
Fibonacci/Python/fibonacci.py
IanDoarn/LearningRepo
4c5906b3c1f497a979c3fce89a66d1e571cd6b42
[ "MIT" ]
null
null
null
Fibonacci/Python/fibonacci.py
IanDoarn/LearningRepo
4c5906b3c1f497a979c3fce89a66d1e571cd6b42
[ "MIT" ]
null
null
null
""" Fibonacci sequence using python generators Written by: Ian Doarn """ def fib(): # Generator that yields fibonacci numbers a, b = 0, 1 while True: # First iteration: yield a # yield 0 to start with and then a, b = b, a + b # a will now be 1, and b will also be 1,...
23.807692
75
0.55412
97
619
3.402062
0.57732
0.018182
0
0
0
0
0
0
0
0
0
0.027094
0.344103
619
25
76
24.76
0.785714
0.466882
0
0
0
0
0.063291
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.090909
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b543f58cf6e8b8dc209086801165057172e20d3f
1,711
py
Python
scripts/test_spider_roundtrip.py
mattr1/seq2struct_forPRs
cdc9e3c94380fb479ed3e3c77f370038d27cf2d6
[ "MIT" ]
25
2019-07-16T22:32:44.000Z
2022-01-25T05:23:07.000Z
scripts/test_spider_roundtrip.py
mattr1/seq2struct_forPRs
cdc9e3c94380fb479ed3e3c77f370038d27cf2d6
[ "MIT" ]
19
2018-12-17T20:42:11.000Z
2020-02-12T21:29:51.000Z
scripts/test_spider_roundtrip.py
mattr1/seq2struct_forPRs
cdc9e3c94380fb479ed3e3c77f370038d27cf2d6
[ "MIT" ]
22
2019-03-16T05:57:27.000Z
2020-10-25T04:34:54.000Z
import ast import argparse import json import os import pprint import astor import tqdm import _jsonnet from seq2struct import datasets from seq2struct import grammars from seq2struct.utils import registry from third_party.spider import evaluation def main(): parser = argparse.ArgumentParser() parser.add_a...
30.553571
102
0.663939
211
1,711
5.222749
0.417062
0.045372
0.046279
0.041742
0.161525
0.123412
0.079855
0.079855
0
0
0
0.013709
0.189947
1,711
55
103
31.109091
0.781385
0
0
0
0
0
0.124489
0.035652
0
0
0
0
0
1
0.02381
false
0
0.285714
0
0.309524
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5473421d6c0b8e5ed5978ee678700c80296d6a9
1,340
py
Python
utils/model_helper.py
CocoBir/django-restful-demo
aeb7f8a0bcff5c52b528c7b0c48f87de5f392320
[ "MIT" ]
null
null
null
utils/model_helper.py
CocoBir/django-restful-demo
aeb7f8a0bcff5c52b528c7b0c48f87de5f392320
[ "MIT" ]
null
null
null
utils/model_helper.py
CocoBir/django-restful-demo
aeb7f8a0bcff5c52b528c7b0c48f87de5f392320
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ model helper ~~~~~~~~~~~~ :Created: 2016-8-5 :Copyright: (c) 2016<smileboywtu@gmail.com> """ from customer_exceptions import OffsetOutOfRangeException class ListModelHelper(object): """get the object list""" @classmethod def list(cls, index=0, limit=8, sor...
23.103448
60
0.568657
144
1,340
5.263889
0.465278
0.031662
0
0
0
0
0
0
0
0
0
0.014161
0.314925
1,340
57
61
23.508772
0.811547
0.319403
0
0.095238
0
0
0.028424
0
0
0
0
0
0
1
0.095238
false
0.047619
0.047619
0
0.380952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5484bee48cb34153d413c1639f3e4d36037235a
2,323
py
Python
tests/test_filters/test_edges.py
luluricketts/biothings_explorer
ae2009ff285f96a08e0145f242846ca613b5069c
[ "Apache-2.0" ]
null
null
null
tests/test_filters/test_edges.py
luluricketts/biothings_explorer
ae2009ff285f96a08e0145f242846ca613b5069c
[ "Apache-2.0" ]
null
null
null
tests/test_filters/test_edges.py
luluricketts/biothings_explorer
ae2009ff285f96a08e0145f242846ca613b5069c
[ "Apache-2.0" ]
null
null
null
""" Tests for edges.py """ import unittest import pandas as pd from biothings_explorer.user_query_dispatcher import SingleEdgeQueryDispatcher from biothings_explorer.filters.edges import filter_node_degree class TestFilterEdges(unittest.TestCase): # test for count values def test_count_values(self): ...
40.754386
106
0.54025
233
2,323
5.23176
0.351931
0.059065
0.052502
0.091058
0.45119
0.415094
0.415094
0.359311
0.331419
0.331419
0
0.039624
0.359019
2,323
56
107
41.482143
0.779046
0.061989
0
0.340909
0
0
0.082988
0
0
0
0
0
0.090909
1
0.068182
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
b54ed986a0849287fd62118ba89a87ae8732ba9e
974
py
Python
get_data.py
ryanw3bb/fpl
a06fbf8ada5f549f0750ed9af46f53b3a1a0149e
[ "MIT" ]
1
2018-08-15T02:52:52.000Z
2018-08-15T02:52:52.000Z
get_data.py
ryanw3bb/fpl
a06fbf8ada5f549f0750ed9af46f53b3a1a0149e
[ "MIT" ]
null
null
null
get_data.py
ryanw3bb/fpl
a06fbf8ada5f549f0750ed9af46f53b3a1a0149e
[ "MIT" ]
null
null
null
""" Retrieves data as json files from fantasy.premierleague.com """ import json import requests LAST_SEASON_DATA_FILENAME = "data/player_data_20_21.json" DATA_URL = "https://fantasy.premierleague.com/api/bootstrap-static/" DATA_FILENAME = "data/player_data_21_22.json" FIXTURES_URL = "https://fantasy.premierleague.c...
24.974359
68
0.74846
142
974
4.84507
0.288732
0.087209
0.100291
0.063953
0.468023
0.392442
0.229651
0.148256
0.148256
0.148256
0
0.014634
0.158111
974
38
69
25.631579
0.82439
0.145791
0
0.190476
0
0
0.227218
0.100851
0
0
0
0
0
1
0.095238
false
0
0.095238
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
b54f720607fa63d495bc79cd36045e62028217a1
5,587
py
Python
examples/spawning5.py
MissMeriel/BeamNGpy
a8467c57537441802bc5b56f0012dfee2b5f5af0
[ "MIT" ]
1
2021-08-10T19:29:52.000Z
2021-08-10T19:29:52.000Z
examples/spawning5.py
MissMeriel/BeamNGpy
a8467c57537441802bc5b56f0012dfee2b5f5af0
[ "MIT" ]
null
null
null
examples/spawning5.py
MissMeriel/BeamNGpy
a8467c57537441802bc5b56f0012dfee2b5f5af0
[ "MIT" ]
null
null
null
from beamngpy import BeamNGpy, Vehicle, Scenario, ScenarioObject from beamngpy import setup_logging, Config from beamngpy.sensors import Camera, GForces, Lidar, Electrics, Damage, Timer import beamngpy import time, random # globals default_model = 'pickup' default_scenario = 'west_coast_usa' #'cliff' # smallgrid dt = ...
36.51634
133
0.583139
685
5,587
4.632117
0.264234
0.015128
0.0104
0.022061
0.211787
0.173338
0.173338
0.162622
0.144343
0.113457
0
0.067558
0.263469
5,587
153
134
36.51634
0.703524
0.121711
0
0.12069
0
0
0.122466
0.01454
0
0
0
0
0
1
0.043103
false
0
0.043103
0
0.137931
0.086207
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5526b9490a6617e9343309ab67db978943793e5
1,070
py
Python
SmallTips/RemoveDuplication.py
Akasan/PythonTips
eee85c35fd25576c7b2b01af838749608bf8989c
[ "MIT" ]
null
null
null
SmallTips/RemoveDuplication.py
Akasan/PythonTips
eee85c35fd25576c7b2b01af838749608bf8989c
[ "MIT" ]
null
null
null
SmallTips/RemoveDuplication.py
Akasan/PythonTips
eee85c35fd25576c7b2b01af838749608bf8989c
[ "MIT" ]
null
null
null
import pickle def remove_duplicate_from_list(data): """ remove duplications from specific list any data can be contained in the data. if the data is hashable, you can implement this function easily like below. data = list(set(data)) but if the data is unhashable, you have to im...
36.896552
89
0.66729
161
1,070
4.291925
0.403727
0.014472
0.082489
0.099855
0.23589
0.196816
0.104197
0.104197
0.104197
0
0
0.017305
0.243925
1,070
28
90
38.214286
0.836836
0.534579
0
0.181818
0
0
0.042601
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.272727
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5533e6640dc60d29a04f82e1a7722aa55036807
7,226
py
Python
ultraviolet_cli/commands/fixtures.py
mnyrop/ultraviolet-cli
f177adde71a899ca6775bd4673d30e19ccdb2a30
[ "MIT" ]
1
2022-02-08T18:28:30.000Z
2022-02-08T18:28:30.000Z
ultraviolet_cli/commands/fixtures.py
mnyrop/ultraviolet-cli
f177adde71a899ca6775bd4673d30e19ccdb2a30
[ "MIT" ]
null
null
null
ultraviolet_cli/commands/fixtures.py
mnyrop/ultraviolet-cli
f177adde71a899ca6775bd4673d30e19ccdb2a30
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2022 NYU Libraries. # # ultraviolet-cli is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Invenio module for custom UltraViolet commands.""" import click import glob import json import os imp...
33.146789
128
0.63313
932
7,226
4.831545
0.216738
0.044415
0.062181
0.049745
0.617366
0.596713
0.573173
0.567177
0.540084
0.540084
0
0.003049
0.22848
7,226
217
129
33.299539
0.804664
0.07902
0
0.608392
0
0
0.180188
0.034488
0
0
0
0
0
1
0.048951
false
0.013986
0.06993
0
0.132867
0.027972
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b55d244aa62443aced945674009694fb76ee238b
1,834
py
Python
src/function_manager/function_manager.py
lzjzx1122/FaaSFlow
c4a32a04797770c21fe6a0dcacd85ac27a3d29ec
[ "Apache-2.0" ]
24
2021-12-02T01:00:54.000Z
2022-03-27T00:50:28.000Z
src/function_manager/function_manager.py
lzjzx1122/FaaSFlow
c4a32a04797770c21fe6a0dcacd85ac27a3d29ec
[ "Apache-2.0" ]
null
null
null
src/function_manager/function_manager.py
lzjzx1122/FaaSFlow
c4a32a04797770c21fe6a0dcacd85ac27a3d29ec
[ "Apache-2.0" ]
3
2021-12-02T01:00:47.000Z
2022-03-04T07:33:09.000Z
import gevent import docker import os from function_info import parse from port_controller import PortController from function import Function import random repack_clean_interval = 5.000 # repack and clean every 5 seconds dispatch_interval = 0.005 # 200 qps at most # the class for scheduling functions' int...
37.428571
104
0.681025
229
1,834
5.222707
0.344978
0.055184
0.053512
0.052676
0.36204
0.348662
0.348662
0.32107
0.244147
0.091973
0
0.011429
0.236641
1,834
48
105
38.208333
0.842857
0.09542
0
0.166667
0
0
0.061644
0
0
0
0
0
0
1
0.138889
false
0
0.194444
0
0.388889
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b55f0ffd6458d9da1434363a2f94293d840e899b
6,717
py
Python
MalmoEnv/run.py
chemgymrl/malmo
207e2530ec94af46450ba6d0e62d691ade91e282
[ "MIT" ]
1
2022-02-17T07:58:06.000Z
2022-02-17T07:58:06.000Z
MalmoEnv/run.py
chemgymrl/malmo
207e2530ec94af46450ba6d0e62d691ade91e282
[ "MIT" ]
null
null
null
MalmoEnv/run.py
chemgymrl/malmo
207e2530ec94af46450ba6d0e62d691ade91e282
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------------------------ # Copyright (c) 2018 Microsoft Corporation # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and # associated documentation files (the "Software"), to deal in the Software ...
46.645833
128
0.650737
879
6,717
4.861206
0.333333
0.025275
0.047742
0.036508
0.083782
0.052422
0.029487
0.01451
0
0
0
0.01434
0.221379
6,717
143
129
46.972028
0.802677
0.37755
0
0.028571
0
0.014286
0.203812
0.012219
0
0
0
0
0
1
0.028571
false
0
0.214286
0
0.271429
0.042857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b55f2629add10c43d98efae9012f1f13e3691bd5
1,172
py
Python
example/wrapper/common/5001-get_tgpio_digital.py
krasin/xArm-Python-SDK-ssh
9c854e8bfa78d0e91b67efbab79f733ddf19e916
[ "BSD-3-Clause" ]
62
2018-11-30T05:53:32.000Z
2022-03-20T13:15:22.000Z
example/wrapper/common/5001-get_tgpio_digital.py
krasin/xArm-Python-SDK-ssh
9c854e8bfa78d0e91b67efbab79f733ddf19e916
[ "BSD-3-Clause" ]
25
2019-08-12T18:53:41.000Z
2021-12-28T10:17:39.000Z
example/wrapper/common/5001-get_tgpio_digital.py
krasin/xArm-Python-SDK-ssh
9c854e8bfa78d0e91b67efbab79f733ddf19e916
[ "BSD-3-Clause" ]
43
2019-01-03T04:47:13.000Z
2022-03-18T06:40:59.000Z
#!/usr/bin/env python3 # Software License Agreement (BSD License) # # Copyright (c) 2019, UFACTORY, Inc. # All rights reserved. # # Author: Vinman <vinman.wen@ufactory.cc> <vinman.cub@gmail.com> """ Example: Get GPIO Digital """ import os import sys import time sys.path.append(os.path.join(os.path.dirname(__file__), ...
23.44
70
0.648464
175
1,172
4.251429
0.451429
0.064516
0.048387
0.026882
0
0
0
0
0
0
0
0.051064
0.197952
1,172
49
71
23.918367
0.740426
0.176621
0
0
0
0
0.135021
0.024262
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b56057ff5dbd4cdc1d25d244ff87b18b26455492
544
py
Python
49-group anagrams/main.py
ytong82/leetcode
34e08c430d654b14b1608211f74702f57e507189
[ "Apache-2.0" ]
null
null
null
49-group anagrams/main.py
ytong82/leetcode
34e08c430d654b14b1608211f74702f57e507189
[ "Apache-2.0" ]
null
null
null
49-group anagrams/main.py
ytong82/leetcode
34e08c430d654b14b1608211f74702f57e507189
[ "Apache-2.0" ]
null
null
null
class Solution: def groupAnagrams(self, strs): l = len(strs) if l == 0: return [] map = dict() for i in range(l): key = ''.join(sorted(strs[i])) if key in map.keys(): map[key].append(i) else: map[key] = ...
22.666667
51
0.443015
68
544
3.544118
0.485294
0.062241
0.06639
0.099585
0
0
0
0
0
0
0
0.00304
0.395221
544
24
52
22.666667
0.729483
0
0
0
0
0
0.033028
0
0
0
0
0
0
1
0.052632
false
0
0
0
0.210526
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b561af012e5087c35cc2997a33fe02fbbdb5ae5d
2,429
py
Python
vending.py
mit-dci/litvending
28f8f2b51691eac7c69de153aafbe72663d9892c
[ "MIT" ]
1
2018-06-20T01:42:54.000Z
2018-06-20T01:42:54.000Z
vending.py
mit-dci/litvending
28f8f2b51691eac7c69de153aafbe72663d9892c
[ "MIT" ]
null
null
null
vending.py
mit-dci/litvending
28f8f2b51691eac7c69de153aafbe72663d9892c
[ "MIT" ]
1
2022-02-15T06:48:15.000Z
2022-02-15T06:48:15.000Z
#!/usr/bin/env python3 import os import time import sys gpio = None try: import RPi.GPIO gpio = RPi.GPIO except: print('RPi library not found. We\'re probably on a dev machine. Moving on...') import lvconfig import litrpc # This could be more efficient, we're making a lot more requests than we need to. def che...
26.11828
136
0.669823
393
2,429
4.012723
0.445293
0.038047
0.022828
0.020292
0.076094
0.026633
0.026633
0
0
0
0
0.004639
0.201317
2,429
92
137
26.402174
0.808247
0.186085
0
0.089552
0
0
0.229908
0
0
0
0
0
0
1
0.029851
false
0
0.089552
0
0.134328
0.149254
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b56b02915f5cdfb61babcb70fc1c32bc2970b2fa
597
py
Python
Section02/ParsingChart.py
fosterleejoe/Developing-NLP-Applications-Using-NLTK-in-Python
f2cac32c02d0632fb89f32446388ef15d9926bbc
[ "MIT" ]
67
2017-11-23T18:48:47.000Z
2022-03-29T08:03:25.000Z
Section02/ParsingChart.py
fosterleejoe/Developing-NLP-Applications-Using-NLTK-in-Python
f2cac32c02d0632fb89f32446388ef15d9926bbc
[ "MIT" ]
null
null
null
Section02/ParsingChart.py
fosterleejoe/Developing-NLP-Applications-Using-NLTK-in-Python
f2cac32c02d0632fb89f32446388ef15d9926bbc
[ "MIT" ]
49
2017-12-06T16:10:14.000Z
2021-11-25T09:02:49.000Z
from nltk.grammar import CFG from nltk.parse.chart import ChartParser, BU_LC_STRATEGY grammar = CFG.fromstring(""" S -> T1 T4 T1 -> NNP VBZ T2 -> DT NN T3 -> IN NNP T4 -> T3 | T2 T3 NNP -> 'Tajmahal' | 'Agra' | 'Bangalore' | 'Karnataka' VBZ -> 'is' IN -> 'in' | 'of' DT -> 'the' NN -> 'capital' """) cp = ChartParser(g...
22.961538
56
0.676717
90
597
4.433333
0.511111
0.0401
0.06015
0
0
0
0
0
0
0
0
0.017857
0.155779
597
25
57
23.88
0.77381
0
0
0
0
0
0.386935
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b56c623a069eaa852720532015deec19073b3d1a
5,526
py
Python
sirbot/slack/wrapper.py
Ovvovy/sirbot-slack
2d27e49cfbc2cb12e87ef3814823d2ad68d0a788
[ "MIT" ]
7
2017-05-06T11:37:25.000Z
2018-11-22T09:46:32.000Z
sirbot/slack/wrapper.py
Ovvovy/sirbot-slack
2d27e49cfbc2cb12e87ef3814823d2ad68d0a788
[ "MIT" ]
19
2017-05-07T16:25:02.000Z
2017-09-22T08:02:59.000Z
sirbot/slack/wrapper.py
Ovvovy/sirbot-slack
2d27e49cfbc2cb12e87ef3814823d2ad68d0a788
[ "MIT" ]
3
2017-05-06T11:37:28.000Z
2017-07-07T09:32:54.000Z
import logging from .store.user import User from .errors import SlackInactiveDispatcher, SlackNoThread logger = logging.getLogger(__name__) class SlackWrapper: """ A class to compose all available functionality of the slack plugin. An instance is offered to all incoming message of all the plugins to ...
32.892857
79
0.596091
602
5,526
5.33887
0.19103
0.037337
0.047915
0.053205
0.398569
0.274113
0.247978
0.21313
0.21313
0.187617
0
0.000266
0.31958
5,526
167
80
33.08982
0.854521
0.05067
0
0.288889
0
0
0.027227
0
0
0
0
0
0
1
0.066667
false
0
0.033333
0
0.122222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b56d3d57d3b008ef213624e96067cf823658819f
4,321
py
Python
rc/returninfo/classifier.py
ddangelorb/gthbmining
a7d18623cd14a2ffd2508a4bb6a71b06a5f26215
[ "MIT" ]
4
2019-09-17T02:53:51.000Z
2020-10-23T14:48:16.000Z
rc/returninfo/classifier.py
ddangelorb/gthbmining
a7d18623cd14a2ffd2508a4bb6a71b06a5f26215
[ "MIT" ]
null
null
null
rc/returninfo/classifier.py
ddangelorb/gthbmining
a7d18623cd14a2ffd2508a4bb6a71b06a5f26215
[ "MIT" ]
null
null
null
import warnings warnings.filterwarnings('ignore') #ignore warnings to print values properly import logging import pandas as pd import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import ListedColormap from sklearn.model_selection import train_test_split from sklearn.tree import DecisionTreeClassif...
50.244186
190
0.682249
526
4,321
5.385932
0.288973
0.022944
0.019061
0.031768
0.249912
0.235792
0.228733
0.133427
0.133427
0.133427
0
0.004342
0.200417
4,321
85
191
50.835294
0.81563
0.076603
0
0
0
0
0.228586
0.044461
0
0
0
0
0
1
0.0625
false
0
0.203125
0
0.296875
0.140625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b56dd907e3a9ba7c7134351a3ded86b0fead6823
183
py
Python
run.py
sgilhuly/mire
8ac07af9083831a03a1901c1bb655932111ae4cf
[ "MIT" ]
2
2020-06-15T10:51:43.000Z
2020-08-02T07:38:44.000Z
run.py
sgilhuly/mire
8ac07af9083831a03a1901c1bb655932111ae4cf
[ "MIT" ]
null
null
null
run.py
sgilhuly/mire
8ac07af9083831a03a1901c1bb655932111ae4cf
[ "MIT" ]
1
2018-05-15T04:45:37.000Z
2018-05-15T04:45:37.000Z
import sys from app import app, socketio if __name__ == "__main__": if len(sys.argv) > 1: port = int(sys.argv[1]) else: port=5000 socketio.run(app, host="0.0.0.0", port=port)
18.3
45
0.661202
33
183
3.424242
0.545455
0.053097
0.141593
0
0
0
0
0
0
0
0
0.065789
0.169399
183
10
45
18.3
0.677632
0
0
0
0
0
0.081522
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b56fc2f3040d889070f9fe524690dd7b2af07b3c
1,004
py
Python
pyFoam/extractForces.py
mjsauvinen/P4US
ba7bbc77a6e482f612ba5aa5f021a41fcbb23345
[ "MIT" ]
4
2017-06-10T13:34:29.000Z
2021-10-08T14:33:43.000Z
pyFoam/extractForces.py
mjsauvinen/P4US
ba7bbc77a6e482f612ba5aa5f021a41fcbb23345
[ "MIT" ]
8
2018-07-10T12:00:49.000Z
2021-09-16T13:58:59.000Z
pyFoam/extractForces.py
mjsauvinen/P4US
ba7bbc77a6e482f612ba5aa5f021a41fcbb23345
[ "MIT" ]
6
2019-05-03T07:29:12.000Z
2022-01-21T03:10:27.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys import numpy as np import pylab as pl from txtTools import openIOFile # =*=*=*=* FUNCTION DEFINITIONS *=*=*=*=*=*=*=*=*=*=*=* def isolateValues( line , stripChars ): v = [] sl = line.split() for i in xrange(len(sl)): for sc in stripChars: sl[i]...
20.489796
55
0.531873
150
1,004
3.56
0.48
0.089888
0.022472
0.044944
0
0
0
0
0
0
0
0.014907
0.198207
1,004
49
56
20.489796
0.648447
0.168327
0
0
0
0
0.054152
0
0
0
0
0
0
1
0.030303
false
0
0.121212
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
b5742eb898932211cf75e05e216d0c94c86949cb
418
py
Python
examples/select.py
GBS3/cues
09bce776f9275b71a4028e5c59103e45d81ebed6
[ "MIT" ]
1
2021-09-13T02:29:43.000Z
2021-09-13T02:29:43.000Z
examples/select.py
giosali/cues
09bce776f9275b71a4028e5c59103e45d81ebed6
[ "MIT" ]
null
null
null
examples/select.py
giosali/cues
09bce776f9275b71a4028e5c59103e45d81ebed6
[ "MIT" ]
1
2021-05-26T04:35:47.000Z
2021-05-26T04:35:47.000Z
""" examples.select =============== An example that demonstrates the Select child class. """ from cues.cues import Select def main(): name = 'programming_language' message = 'Which of these is your favorite programming language?' options = ['Python', 'JavaScript', 'C++', 'C#'] cue = Select(name, me...
18.173913
69
0.629187
48
418
5.291667
0.6875
0.149606
0
0
0
0
0
0
0
0
0
0
0.205742
418
22
70
19
0.76506
0.203349
0
0
0
0
0.313846
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.2
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b57f76841f0c85c583ef9797290a21bbf823a12e
2,212
py
Python
model_metadata/utils.py
csdms/model_metadata
62acab7ae2a152bec64bc1f52751f7a8aa1d4184
[ "MIT" ]
1
2021-05-25T14:38:10.000Z
2021-05-25T14:38:10.000Z
model_metadata/utils.py
csdms/model_metadata
62acab7ae2a152bec64bc1f52751f7a8aa1d4184
[ "MIT" ]
3
2018-04-05T21:50:24.000Z
2021-04-02T03:54:04.000Z
model_metadata/utils.py
csdms/model_metadata
62acab7ae2a152bec64bc1f52751f7a8aa1d4184
[ "MIT" ]
null
null
null
#! /usr/bin/env python import os import sys from .api import install as install_mmd def model_data_dir(name, datarootdir=None): """Get a model's data dir. Parameters ---------- name : str The name of the model. Returns ------- str The absolute path to the data directory ...
26.97561
66
0.574593
252
2,212
4.924603
0.277778
0.070911
0.04029
0.053183
0.357776
0.357776
0.26108
0.196616
0.196616
0.196616
0
0.002015
0.326854
2,212
81
67
27.308642
0.83143
0.084087
0
0.32
0
0
0.037821
0
0
0
0
0
0
1
0.1
false
0
0.14
0
0.34
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b582e5842d21e445f1825c2debc8042c425aedda
8,060
py
Python
solution/serverlist.py
ksh0165/lhms
8848a74ac5c0f309e3ab28583af4bd574575ab8a
[ "Apache-2.0" ]
null
null
null
solution/serverlist.py
ksh0165/lhms
8848a74ac5c0f309e3ab28583af4bd574575ab8a
[ "Apache-2.0" ]
null
null
null
solution/serverlist.py
ksh0165/lhms
8848a74ac5c0f309e3ab28583af4bd574575ab8a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import os import subprocess import re import pymysql from datetime import datetime strPath = r"/etc/webmin/servers";# file dir files = os.listdir(strPath) lists = [];# file lists host = []; user = []; pwd = []; val = 0;# extractServer use test = "";# grep host test1 = "";# grep user test2 = "";# gre...
42.198953
150
0.458561
863
8,060
4.274623
0.202781
0.056926
0.056926
0.029818
0.278124
0.261317
0.261317
0.208187
0.149092
0.088371
0
0.017614
0.25335
8,060
190
151
42.421053
0.595381
0.220596
0
0.140741
0
0.007407
0.230173
0.093937
0
0
0
0
0
1
0.02963
false
0.02963
0.037037
0
0.096296
0.259259
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b58403121af69cb7645522d11585b8ed10c27038
579
py
Python
algorithms/tree_level_width.py
danielhgasparin/algorithms-python
4b27c3cddd22762599fe55d3b760f388733c4fa7
[ "MIT" ]
null
null
null
algorithms/tree_level_width.py
danielhgasparin/algorithms-python
4b27c3cddd22762599fe55d3b760f388733c4fa7
[ "MIT" ]
null
null
null
algorithms/tree_level_width.py
danielhgasparin/algorithms-python
4b27c3cddd22762599fe55d3b760f388733c4fa7
[ "MIT" ]
null
null
null
"""Tree level width module.""" from collections import deque def tree_level_width(tree): """Return a list containing the width of each level of the specified tree.""" result = [] count = 0 queue = deque([tree.root, "s"]) while len(queue) > 0: node = queue.popleft() if node == "s": ...
26.318182
81
0.504318
66
579
4.393939
0.515152
0.062069
0.096552
0
0
0
0
0
0
0
0
0.014006
0.38342
579
22
82
26.318182
0.798319
0.165803
0
0.222222
0
0
0.006342
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b58c5490649547fd191436f9730cc2a2c51f3b00
3,619
py
Python
src/utils.py
Flantropy/TelegramChatAnalyzer
88e879fa771361d47292721ff8adfd82a74e9b93
[ "MIT" ]
null
null
null
src/utils.py
Flantropy/TelegramChatAnalyzer
88e879fa771361d47292721ff8adfd82a74e9b93
[ "MIT" ]
null
null
null
src/utils.py
Flantropy/TelegramChatAnalyzer
88e879fa771361d47292721ff8adfd82a74e9b93
[ "MIT" ]
null
null
null
import json import logging from io import BytesIO from typing import List from typing import Optional import matplotlib.pyplot as plt import pandas as pd import seaborn as sns from telegram import InputMediaPhoto def __convert_plot_to_telegram_photo(plot) -> InputMediaPhoto: with BytesIO() as buffer: plo...
30.411765
94
0.671733
464
3,619
4.950431
0.318966
0.095777
0.031345
0.054854
0.26121
0.182847
0.131911
0.05616
0.05616
0
0
0.005622
0.213595
3,619
118
95
30.669492
0.801476
0.049738
0
0.096774
0
0
0.091765
0
0
0
0
0
0
1
0.086022
false
0
0.096774
0
0.290323
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b58c5890c2ea7e046b469064a62ceb8bea1ea212
2,215
py
Python
pyxrd/calculations/improve.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
27
2018-06-15T15:28:18.000Z
2022-03-10T12:23:50.000Z
pyxrd/calculations/improve.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
22
2018-06-14T08:29:16.000Z
2021-07-05T13:33:44.000Z
pyxrd/calculations/improve.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
8
2019-04-13T13:03:51.000Z
2021-06-19T09:29:11.000Z
# coding=UTF-8 # ex:ts=4:sw=4:et=on # Copyright (c) 2013, Mathijs Dumon # All rights reserved. # Complete license can be found in the LICENSE file. from io import StringIO from scipy.optimize import fmin_l_bfgs_b from .exceptions import wrap_exceptions def setup_project(projectf): from pyxrd.file_parsers.json_...
27.012195
86
0.648307
254
2,215
5.484252
0.42126
0.043073
0.017229
0.014358
0.315865
0.26705
0.26705
0.26705
0.18234
0.18234
0
0.005643
0.27991
2,215
81
87
27.345679
0.867712
0.163883
0
0.340426
0
0
0
0
0
0
0
0
0
1
0.06383
false
0
0.170213
0
0.319149
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b58ccbfff32cc054d600f5f7877ef4514f099933
931
py
Python
enforceTH.py
Multivalence/enforceTypeHint
fb87fd48baa525044516ddbdf2160128e03fb7b7
[ "MIT" ]
null
null
null
enforceTH.py
Multivalence/enforceTypeHint
fb87fd48baa525044516ddbdf2160128e03fb7b7
[ "MIT" ]
null
null
null
enforceTH.py
Multivalence/enforceTypeHint
fb87fd48baa525044516ddbdf2160128e03fb7b7
[ "MIT" ]
1
2020-12-16T18:34:19.000Z
2020-12-16T18:34:19.000Z
import functools def enforceType(func): @functools.wraps(func) def wrapper(*args): wrapper.has_been_called = True x = func.__annotations__ t = [x[i] for i in x if i != 'return'] if len(args) != len(t): raise TypeError("Missing required positional arguments and/or annotations.") for i in range(...
23.275
94
0.664876
124
931
4.927419
0.451613
0.032733
0.045827
0.065466
0
0
0
0
0
0
0
0
0.221267
931
39
95
23.871795
0.842759
0
0
0.076923
0
0
0.228786
0
0
0
0
0
0
1
0.076923
false
0
0.038462
0
0.192308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b591052db3d50aa3c4ca4b5f6cbba2c5ca1708a6
3,239
py
Python
examples/DataRecording/runDataRecording.py
mumuwoyou/pytrader
6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a
[ "MIT" ]
4
2019-03-14T05:30:59.000Z
2021-11-21T20:05:22.000Z
examples/DataRecording/runDataRecording.py
mumuwoyou/pytrader
6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a
[ "MIT" ]
null
null
null
examples/DataRecording/runDataRecording.py
mumuwoyou/pytrader
6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a
[ "MIT" ]
4
2019-02-14T14:30:46.000Z
2021-01-05T09:46:19.000Z
# encoding: UTF-8 from __future__ import print_function import sys try: reload(sys) # Python 2 sys.setdefaultencoding('utf8') except NameError: pass # Python 3 import multiprocessing from time import sleep from datetime import datetime, time from cyvn.trader.vtEvent import EVENT_LOG, EVENT_REC...
26.120968
77
0.562211
346
3,239
5.135838
0.378613
0.033765
0.039392
0.018571
0.075408
0.075408
0.075408
0.075408
0.075408
0.075408
0
0.013502
0.268293
3,239
123
78
26.333333
0.736287
0.12967
0
0.151899
0
0
0.041096
0
0
0
0
0
0
1
0.037975
false
0.012658
0.126582
0
0.164557
0.037975
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b593abbfc1101fb51b4b3e49fd3161d9712060e7
12,779
py
Python
sitk_rtss_io.py
Auto-segmentation-in-Radiation-Oncology/Chapter-3
307330c848c7ddb650353484e18fa9bc7903f737
[ "BSD-3-Clause" ]
1
2020-06-28T01:57:46.000Z
2020-06-28T01:57:46.000Z
sitk_rtss_io.py
Auto-segmentation-in-Radiation-Oncology/Chapter-12
307330c848c7ddb650353484e18fa9bc7903f737
[ "BSD-3-Clause" ]
null
null
null
sitk_rtss_io.py
Auto-segmentation-in-Radiation-Oncology/Chapter-12
307330c848c7ddb650353484e18fa9bc7903f737
[ "BSD-3-Clause" ]
1
2021-11-15T21:47:17.000Z
2021-11-15T21:47:17.000Z
from skimage import measure import pydicom from pydicom.dataset import Dataset, FileDataset from pydicom.sequence import Sequence import os import numpy as np import SimpleITK as sITK import time import glob import sitk_ct_io as imio from skimage.draw import polygon # for debugging # import matplotlib.p...
44.526132
120
0.642069
1,456
12,779
5.414148
0.223214
0.025371
0.019028
0.013954
0.126728
0.071927
0.068121
0.066218
0.066218
0.049474
0
0.026108
0.26567
12,779
286
121
44.681818
0.813939
0.083418
0
0.063927
0
0.009132
0.062407
0.016062
0
0
0
0.003497
0.009132
1
0.018265
false
0
0.050228
0
0.09589
0.004566
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b59742af888cb2d88c4cbf6cba219ceb64599613
2,364
py
Python
code/opt_algo/downhillsimplex_untested.py
nicolai-schwartze/Masterthesis
7857af20c6b233901ab3cedc325bd64704111e16
[ "MIT" ]
1
2020-06-13T10:02:02.000Z
2020-06-13T10:02:02.000Z
code/opt_algo/downhillsimplex_untested.py
nicolai-schwartze/Masterthesis
7857af20c6b233901ab3cedc325bd64704111e16
[ "MIT" ]
null
null
null
code/opt_algo/downhillsimplex_untested.py
nicolai-schwartze/Masterthesis
7857af20c6b233901ab3cedc325bd64704111e16
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Apr 20 14:03:18 2020 @author: Nicolai """ import sys sys.path.append("../differential_evolution") from JADE import JADE import numpy as np import scipy as sc import testFunctions as tf def downhillsimplex(population, function, minError, maxFeval): ''' implementatio...
26.863636
87
0.593909
270
2,364
5.144444
0.462963
0.054716
0.058315
0.077754
0.074874
0.038877
0
0
0
0
0
0.033878
0.300761
2,364
88
88
26.863636
0.806413
0.436971
0
0
0
0
0.028473
0.02157
0
0
0
0
0
1
0.032258
false
0
0.193548
0
0.258065
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b59a516d2e4ba77e47687f54990e9a2e4f955197
1,185
py
Python
LoopStructural/modelling/features/lambda_geological_feature.py
wgorczyk/LoopStructural
bedc7abd4c1868fdbd6ed659c8d72ef19f793875
[ "MIT" ]
67
2020-06-25T06:50:58.000Z
2022-03-29T17:15:43.000Z
LoopStructural/modelling/features/lambda_geological_feature.py
wgorczyk/LoopStructural
bedc7abd4c1868fdbd6ed659c8d72ef19f793875
[ "MIT" ]
60
2020-06-28T22:58:21.000Z
2022-03-24T01:30:59.000Z
LoopStructural/modelling/features/lambda_geological_feature.py
wgorczyk/LoopStructural
bedc7abd4c1868fdbd6ed659c8d72ef19f793875
[ "MIT" ]
9
2020-06-25T13:07:39.000Z
2021-12-01T01:41:24.000Z
""" Geological features """ import logging import numpy as np logger = logging.getLogger(__name__) class LambdaGeologicalFeature: def __init__(self,function = None,name = 'unnamed_lambda', gradient_function = None, model = None): self.function = function self.name = name self.gradient_fu...
27.55814
103
0.563713
148
1,185
4.351351
0.283784
0.124224
0.093168
0.055901
0.350932
0.285714
0.285714
0.285714
0.21118
0.121118
0
0.021014
0.3173
1,185
43
104
27.55814
0.775031
0.057384
0
0.147059
0
0
0.012613
0
0
0
0
0
0
1
0.147059
false
0
0.058824
0.058824
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b59a84378daec5c068b0ad9a5875001c348356a9
2,137
py
Python
2021/day8.py
Bug38/AoC
576ee0d3745242b71240a62c121c52bc92f7253e
[ "MIT" ]
null
null
null
2021/day8.py
Bug38/AoC
576ee0d3745242b71240a62c121c52bc92f7253e
[ "MIT" ]
null
null
null
2021/day8.py
Bug38/AoC
576ee0d3745242b71240a62c121c52bc92f7253e
[ "MIT" ]
null
null
null
from typing import Set import utils data = utils.getLinesFromFile("day8.input") # data = ['be cfbegad cbdgef fgaecd cgeb fdcge agebfd fecdb fabcd edb | fdgacbe cefdb cefbgd gcbe','edbfga begcd cbg gc gcadebf fbgde acbgfd abcde gfcbed gfec | fcgedb cgb dgebacf gc','fgaebd cg bdaec gdafb agbcfd gdcbef bgcad gfac gcb cdg...
35.616667
860
0.657932
364
2,137
3.862637
0.535714
0.010669
0.012802
0.036273
0.102418
0.078236
0.041252
0.041252
0
0
0
0.025045
0.215255
2,137
59
861
36.220339
0.813357
0.44642
0
0.230769
0
0
0.036441
0
0
0
0
0
0
1
0.038462
false
0
0.038462
0
0.115385
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b59c0e7ce913172c25c6a249bc299d0133408394
4,951
py
Python
utils/optimizers.py
csalt-research/OpenASR-py
9aea6753689d87d321260d7eb0ea0544e1b3403a
[ "MIT" ]
2
2019-11-29T15:46:14.000Z
2021-05-28T06:54:41.000Z
utils/optimizers.py
csalt-research/OpenASR-py
9aea6753689d87d321260d7eb0ea0544e1b3403a
[ "MIT" ]
null
null
null
utils/optimizers.py
csalt-research/OpenASR-py
9aea6753689d87d321260d7eb0ea0544e1b3403a
[ "MIT" ]
null
null
null
""" Optimizers class """ import torch import torch.optim as optim from torch.nn.utils import clip_grad_norm_ import operator import functools from copy import copy from math import sqrt def build_torch_optimizer(model, opt): params = [p for p in model.parameters() if p.requires_grad] if opt.optim == 'sgd': ...
31.941935
75
0.613411
615
4,951
4.64878
0.214634
0.096537
0.044771
0.033228
0.284715
0.221056
0.173487
0.173487
0.149003
0.149003
0
0.011638
0.288427
4,951
155
76
31.941935
0.799886
0.07655
0
0.205128
0
0
0.0338
0
0
0
0
0
0
1
0.119658
false
0
0.059829
0.017094
0.299145
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b59da18e5dee5065a74262a17b2223e79fa39bac
3,019
py
Python
src/argcompile/meta.py
artu-hnrq/argcompile
48b8997cc21b861fd090a809a9149d95476edbf8
[ "MIT" ]
null
null
null
src/argcompile/meta.py
artu-hnrq/argcompile
48b8997cc21b861fd090a809a9149d95476edbf8
[ "MIT" ]
null
null
null
src/argcompile/meta.py
artu-hnrq/argcompile
48b8997cc21b861fd090a809a9149d95476edbf8
[ "MIT" ]
null
null
null
import inspect class MetaComposition(type): """Overwrites a target method to behave calling same-type superclasses' implementation orderly""" def __new__(meta, name, bases, attr, __func__='__call__'): attr['__run__'] = attr[__func__] attr[__func__] = meta.__run__ return super(MetaComposition, meta).__new__(...
26.716814
100
0.663796
375
3,019
4.72
0.237333
0.050847
0.073446
0.072316
0.217514
0.159887
0.09435
0.079096
0.079096
0.040678
0
0.00082
0.191785
3,019
112
101
26.955357
0.72459
0.233852
0
0.083333
0
0
0.033654
0
0
0
0
0
0
1
0.111111
false
0
0.013889
0.013889
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
b5a0cac842fff324e018f25672c1b93817ef376b
761
py
Python
linux/keyman-config/tests/test_gnome_keyboards_util.py
srl295/keyman
4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1
[ "MIT" ]
null
null
null
linux/keyman-config/tests/test_gnome_keyboards_util.py
srl295/keyman
4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1
[ "MIT" ]
null
null
null
linux/keyman-config/tests/test_gnome_keyboards_util.py
srl295/keyman
4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import unittest from unittest.mock import patch from keyman_config.gnome_keyboards_util import is_gnome_shell, _reset_gnome_shell class GnomeKeyboardsUtilTests(unittest.TestCase): def setUp(self): _reset_gnome_shell() @patch('keyman_config.os.system') def test_IsGnomeShell_Run...
26.241379
81
0.710907
86
761
5.930233
0.476744
0.098039
0.070588
0.07451
0.486275
0.486275
0.329412
0.172549
0
0
0
0.004918
0.198423
761
28
82
27.178571
0.831148
0.07753
0
0.125
0
0
0.077475
0.065997
0
0
0
0
0.125
1
0.1875
false
0
0.1875
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5a22c7ed55e816b9317d7d3ca45276bbf0eae8f
4,059
py
Python
ghostwriter/users/forms.py
bbhunter/Ghostwriter
1b684ddd119feed9891e83b39c9b314b41d086ca
[ "BSD-3-Clause" ]
1
2022-02-04T20:24:35.000Z
2022-02-04T20:24:35.000Z
ghostwriter/users/forms.py
bbhunter/Ghostwriter
1b684ddd119feed9891e83b39c9b314b41d086ca
[ "BSD-3-Clause" ]
null
null
null
ghostwriter/users/forms.py
bbhunter/Ghostwriter
1b684ddd119feed9891e83b39c9b314b41d086ca
[ "BSD-3-Clause" ]
null
null
null
"""This contains all of the forms used by the Users application.""" # Django Imports from django.contrib.admin.widgets import FilteredSelectMultiple from django.contrib.auth import forms, get_user_model from django.contrib.auth.forms import UserChangeForm from django.contrib.auth.models import Group from django.core.e...
33
151
0.60951
459
4,059
5.270153
0.357298
0.028938
0.029764
0.028111
0.120711
0.060356
0.060356
0.060356
0.060356
0.060356
0
0.004773
0.277408
4,059
122
152
33.270492
0.81998
0.136487
0
0.160494
0
0
0.132743
0
0
0
0
0
0
1
0.061728
false
0
0.111111
0
0.296296
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5a405be96095986ee0bca6128c66be907263013
5,119
py
Python
nxsdk_modules_contrib/pelenet/pelenet/utils/spikes.py
biagiom/models
79489a3c429b3027dd420840bbccfee5e8c9a879
[ "BSD-3-Clause" ]
54
2020-03-04T17:37:17.000Z
2022-02-22T13:16:10.000Z
nxsdk_modules_contrib/pelenet/pelenet/utils/spikes.py
biagiom/models
79489a3c429b3027dd420840bbccfee5e8c9a879
[ "BSD-3-Clause" ]
9
2020-08-26T13:17:54.000Z
2021-11-09T09:02:00.000Z
nxsdk_modules_contrib/pelenet/pelenet/utils/spikes.py
biagiom/models
79489a3c429b3027dd420840bbccfee5e8c9a879
[ "BSD-3-Clause" ]
26
2020-03-18T17:09:34.000Z
2021-11-22T16:23:14.000Z
import numpy as np import scipy.linalg as la from statsmodels.tsa.api import SimpleExpSmoothing, Holt """ @desc: From activity probe, calculate spike patterns """ def getSpikesFromActivity(self, activityProbes): # Get number of probes (equals number of used cores) numProbes = np.shape(activityProbes)[0] # ...
31.99375
116
0.66302
657
5,119
5.150685
0.252664
0.01448
0.008865
0.016253
0.345154
0.345154
0.31383
0.291371
0.291371
0.291371
0
0.012462
0.231881
5,119
159
117
32.194969
0.848169
0.268412
0
0.253521
0
0
0.02013
0
0
0
0
0
0
1
0.112676
false
0
0.042254
0
0.309859
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5a74044f5f2241591f7f602964eb017fc2ac290
6,429
py
Python
src/bst.py
tranduythanh/algorithm-in-python
b883ea0bc4dcd46b9a9f72f0ca3786aa3545f58a
[ "MIT" ]
null
null
null
src/bst.py
tranduythanh/algorithm-in-python
b883ea0bc4dcd46b9a9f72f0ca3786aa3545f58a
[ "MIT" ]
null
null
null
src/bst.py
tranduythanh/algorithm-in-python
b883ea0bc4dcd46b9a9f72f0ca3786aa3545f58a
[ "MIT" ]
null
null
null
from visualize import pprint class Node: def __init__(self, key): self.left = None self.right = None self.val = key def __repr__(self): ptr = id(self) ret = f'{ptr}:' if self.left: ret = f'{ret} {self.left.val}' else: ret = f'{ret...
27.474359
63
0.492767
770
6,429
3.923377
0.11039
0.057597
0.029791
0.033102
0.461106
0.359484
0.265475
0.209202
0.139027
0.106587
0
0.00187
0.417639
6,429
233
64
27.592275
0.805021
0.053196
0
0.473404
0
0
0.013999
0
0
0
0
0
0
1
0.159574
false
0
0.005319
0.047872
0.404255
0.010638
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5af94b7bf661eb528749316c8d0360da97313c8
1,023
py
Python
pythonModules/plugin_showRainbowAllLEDs.py
mhoelzner/BinaryClock_RP
3dcd6c9369b827c4228c90c8c4da6dd9c21ab632
[ "MIT" ]
null
null
null
pythonModules/plugin_showRainbowAllLEDs.py
mhoelzner/BinaryClock_RP
3dcd6c9369b827c4228c90c8c4da6dd9c21ab632
[ "MIT" ]
null
null
null
pythonModules/plugin_showRainbowAllLEDs.py
mhoelzner/BinaryClock_RP
3dcd6c9369b827c4228c90c8c4da6dd9c21ab632
[ "MIT" ]
null
null
null
from neopixel import Color import time class ShowRainbowAllLEDs(): def __init__(self, strip, config): self.strip = strip self.configuration = config def wheel(self, pos): """Generate rainbow colors across 0-255 positions.""" if pos < 85: return Color(pos * 3, 255...
26.230769
72
0.507331
119
1,023
4.327731
0.428571
0.046602
0.040777
0.062136
0.178641
0.135922
0.135922
0
0
0
0
0.06891
0.390029
1,023
38
73
26.921053
0.75641
0.095797
0
0.153846
0
0
0
0
0
0
0
0
0
1
0.115385
false
0
0.076923
0
0.423077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5b23767bc452d1d161330f945974af76c7faa29
3,337
py
Python
tronx/modules/group.py
TronUb/Tron
55b5067a34cf2849913647533d7d035cab64568e
[ "MIT" ]
4
2022-03-07T07:27:04.000Z
2022-03-29T05:59:57.000Z
tronx/modules/group.py
TronUb/Tron
55b5067a34cf2849913647533d7d035cab64568e
[ "MIT" ]
null
null
null
tronx/modules/group.py
TronUb/Tron
55b5067a34cf2849913647533d7d035cab64568e
[ "MIT" ]
3
2022-03-05T15:24:51.000Z
2022-03-14T08:48:05.000Z
import asyncio from pyrogram.raw import functions from pyrogram.types import Message from tronx import app, gen app.CMD_HELP.update( {"group" : ( "group", { "bgroup [group name]" : "Creates a basic group.", "sgroup [group name]" : "Creates a super group.", "unread" : "Mark a chat as unread in your tele...
26.275591
145
0.66407
503
3,337
4.326044
0.214712
0.084559
0.066176
0.088235
0.559283
0.518842
0.463235
0.463235
0.399816
0.399816
0
0.011527
0.168115
3,337
126
146
26.484127
0.772334
0.002397
0
0.49
0
0.02
0.269312
0.034265
0
0
0
0
0
1
0
false
0
0.04
0
0.07
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5b4a7c2bcf95fde6a181a23d3adc5de69780240
5,152
py
Python
benchmark/bit_task/input_pipeline.py
Fanxingye/AutoDL
6f409aefc8b81e5fe47df57b82332c8df427875d
[ "Apache-2.0" ]
1
2021-11-04T09:19:14.000Z
2021-11-04T09:19:14.000Z
benchmark/bit_task/input_pipeline.py
Fanxingye/AutoDL
6f409aefc8b81e5fe47df57b82332c8df427875d
[ "Apache-2.0" ]
null
null
null
benchmark/bit_task/input_pipeline.py
Fanxingye/AutoDL
6f409aefc8b81e5fe47df57b82332c8df427875d
[ "Apache-2.0" ]
null
null
null
# 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 or agreed to in writing, ...
38.162963
103
0.606366
635
5,152
4.711811
0.297638
0.048128
0.048128
0.037433
0.225267
0.142045
0.090241
0.090241
0.090241
0.090241
0
0.011242
0.29212
5,152
134
104
38.447761
0.809158
0.209627
0
0.204819
0
0
0.03733
0
0
0
0
0
0
1
0.060241
false
0
0.060241
0
0.180723
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5b4c824ddba4f2d18052e43c4be91b69f16e79d
5,997
py
Python
accrpc/maps.py
manucabral/accrpc
8b8f3d47751732706570fded73cdc64bf1edb41d
[ "MIT" ]
3
2022-01-18T01:11:21.000Z
2022-01-25T01:04:42.000Z
accrpc/maps.py
manucabral/accrpc
8b8f3d47751732706570fded73cdc64bf1edb41d
[ "MIT" ]
null
null
null
accrpc/maps.py
manucabral/accrpc
8b8f3d47751732706570fded73cdc64bf1edb41d
[ "MIT" ]
null
null
null
from ctypes import Structure, sizeof, c_int, c_int32, c_float, c_wchar # Credits # https://github.com/dabde/acc_shared_mem_access_python # https://github.com/rrennoir/PyAccSharedMemory class Statics(Structure): _fields_ = [ ("smVersion", c_wchar * 15), ("acVersion", c_wchar * 15), ("number...
32.416216
70
0.516925
592
5,997
4.925676
0.334459
0.162551
0.062414
0.00823
0.018519
0
0
0
0
0
0
0.017703
0.302985
5,997
184
71
32.592391
0.679904
0.017842
0
0.028571
0
0
0.303262
0.022766
0
0
0
0
0
1
0
false
0
0.005714
0
0.04
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5b4c9c1dbb3216905a27aa4ce2edea78394a9e2
2,554
py
Python
scripts/plot_fc_bc.py
dpmerrell/TrialMDP-analyses
07e7d2b8aa918e6d314a315be487afc28659a00e
[ "MIT" ]
null
null
null
scripts/plot_fc_bc.py
dpmerrell/TrialMDP-analyses
07e7d2b8aa918e6d314a315be487afc28659a00e
[ "MIT" ]
null
null
null
scripts/plot_fc_bc.py
dpmerrell/TrialMDP-analyses
07e7d2b8aa918e6d314a315be487afc28659a00e
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import script_util as su import pandas as pd import numpy as np import argparse def get_score(tsv_file, pA, pB, score_name): df = pd.read_csv(tsv_file, sep="\t") df.set_index(["pA", "pB"], inplace=True) return float(df.loc[(pA, pB), score_name]) def get_N(tsv_file, pA,...
27.462366
82
0.583399
388
2,554
3.613402
0.255155
0.022825
0.054922
0.03709
0.268188
0.098431
0.075606
0.075606
0.075606
0.075606
0
0.002644
0.259593
2,554
92
83
27.76087
0.738763
0.028191
0
0.070175
0
0
0.046774
0
0
0
0
0
0
1
0.070175
false
0
0.087719
0
0.22807
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5b5bab4def1ed3509dd85a680dfad03dc1b2fa0
5,466
py
Python
pyai/search/minimax.py
bpesquet/pyai
09f6e9989c9c3d3619b45a0aab2bd363141dfe58
[ "MIT" ]
null
null
null
pyai/search/minimax.py
bpesquet/pyai
09f6e9989c9c3d3619b45a0aab2bd363141dfe58
[ "MIT" ]
null
null
null
pyai/search/minimax.py
bpesquet/pyai
09f6e9989c9c3d3619b45a0aab2bd363141dfe58
[ "MIT" ]
null
null
null
""" Minimax algorithm with alpha-beta pruning applied to the Connect 4 game. Inspired by https://youtu.be/l-hh51ncgDI """ import os import copy import math def minimax(game, depth, maximize, alpha=None, beta=None): """Minimax algorithm, using (optionally) alpha-beta pruning.""" if depth == 0: # Max...
32.730539
89
0.612697
747
5,466
4.382865
0.231593
0.058644
0.023824
0.021381
0.229383
0.154246
0.148748
0.132254
0.132254
0.132254
0
0.012652
0.291438
5,466
166
90
32.927711
0.832171
0.374131
0
0.089744
0
0
0.005738
0
0
0
0
0
0
1
0.102564
false
0
0.038462
0
0.282051
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5b832c7207c148b4f89c1e17e84f452793c1e36
3,397
py
Python
src/preparation/2_prepare_0_tokens.py
wietsedv/gpt2-recycle
7d1dbac01f111d87445de5b950c88971c0a1b733
[ "Apache-2.0" ]
42
2020-12-11T09:21:10.000Z
2022-02-20T01:44:32.000Z
src/preparation/2_prepare_0_tokens.py
wietsedv/gpt2-recycle
7d1dbac01f111d87445de5b950c88971c0a1b733
[ "Apache-2.0" ]
2
2020-12-15T14:40:33.000Z
2021-08-02T07:04:42.000Z
src/preparation/2_prepare_0_tokens.py
wietsedv/gpt2-recycle
7d1dbac01f111d87445de5b950c88971c0a1b733
[ "Apache-2.0" ]
5
2020-12-13T16:03:03.000Z
2021-08-09T14:18:37.000Z
from argparse import ArgumentParser from pathlib import Path import pickle import os from tqdm import tqdm from tokenizers import Tokenizer from tokenizers.processors import RobertaProcessing from transformers import AutoTokenizer def init_tokenizer(lang, n, m): if n is None and m is None: print('size no...
30.603604
79
0.578746
411
3,397
4.649635
0.306569
0.029304
0.041863
0.039246
0.186813
0.132391
0.03977
0
0
0
0
0.001664
0.292317
3,397
110
80
30.881818
0.792845
0
0
0.151163
0
0
0.158669
0.02826
0
0
0
0
0
1
0.046512
false
0
0.093023
0
0.197674
0.081395
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5b8963f6516bffc7a6999cc9be33b3103b93631
1,175
py
Python
src/notifi/consumers.py
earth-emoji/love
3617bd47c396803c411e136b3e1de87c18e03890
[ "BSD-2-Clause" ]
null
null
null
src/notifi/consumers.py
earth-emoji/love
3617bd47c396803c411e136b3e1de87c18e03890
[ "BSD-2-Clause" ]
7
2021-03-19T10:46:09.000Z
2022-03-12T00:28:55.000Z
src/notifi/consumers.py
earth-emoji/love
3617bd47c396803c411e136b3e1de87c18e03890
[ "BSD-2-Clause" ]
null
null
null
from channels.generic.websocket import WebsocketConsumer import json from asgiref.sync import async_to_sync class NotificationConsumer(WebsocketConsumer): # Function to connect to the websocket def connect(self): # Checking if the User is logged in if self.scope["user"].is_anonymous: ...
43.518519
199
0.685106
168
1,175
4.720238
0.470238
0.045397
0.065574
0.040353
0
0
0
0
0
0
0
0
0.241702
1,175
27
200
43.518519
0.890011
0.440851
0
0.133333
0
0
0.018519
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0