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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ca0012763ebde5a8a825cd260de95730a4c414f2 | 926 | py | Python | Stack/stackusinglinkedlist.py | shaurtoonetwork/Data-Structures-Implemented-In-Python | 31f770165d535547e6ab3973ca92944cd4d93e11 | [
"Unlicense"
] | null | null | null | Stack/stackusinglinkedlist.py | shaurtoonetwork/Data-Structures-Implemented-In-Python | 31f770165d535547e6ab3973ca92944cd4d93e11 | [
"Unlicense"
] | null | null | null | Stack/stackusinglinkedlist.py | shaurtoonetwork/Data-Structures-Implemented-In-Python | 31f770165d535547e6ab3973ca92944cd4d93e11 | [
"Unlicense"
] | null | null | null | class Node:
def __init__(self,data):
self.data=data
self.next=None
class Stack():
def __init__(self):
self.head=None
def push(self,data):
new_node=Node(data)
new_node.next=self.head
self.head=new_node
def pop(self):
cur_node=self.head
se... | 15.694915 | 37 | 0.541037 | 137 | 926 | 3.481752 | 0.255474 | 0.134172 | 0.075472 | 0.067086 | 0.079665 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003231 | 0.331533 | 926 | 58 | 38 | 15.965517 | 0.767367 | 0 | 0 | 0.097561 | 0 | 0 | 0.010846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195122 | false | 0 | 0 | 0 | 0.292683 | 0.097561 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6b8dd05f5f7cbaff9802e64ef9b63bb934698fe | 10,059 | py | Python | emailhandler.py | wcascades/Simple_Slack_Bot | b674909d5e02d8f15918fb4dee9f2cb1bcf1079a | [
"MIT"
] | null | null | null | emailhandler.py | wcascades/Simple_Slack_Bot | b674909d5e02d8f15918fb4dee9f2cb1bcf1079a | [
"MIT"
] | 3 | 2021-08-05T14:56:04.000Z | 2022-03-06T18:43:58.000Z | emailhandler.py | wcascades/Simple_Slack_Bot | b674909d5e02d8f15918fb4dee9f2cb1bcf1079a | [
"MIT"
] | null | null | null | # don't use 3.9, currently using 3.7
import mysecrets
import re
import email
import logging
import slackhandler
import my_parser
from exchangelib import Credentials, Account, DELEGATE, Configuration, FaultTolerance, Message
from imapclient import IMAPClient
from collections import deque
class emailhandler:
def _... | 42.987179 | 117 | 0.571429 | 1,136 | 10,059 | 4.865317 | 0.227993 | 0.045594 | 0.052108 | 0.05645 | 0.349195 | 0.274109 | 0.213136 | 0.188891 | 0.188891 | 0.188891 | 0 | 0.005772 | 0.345561 | 10,059 | 233 | 118 | 43.171674 | 0.833814 | 0.125659 | 0 | 0.266272 | 0 | 0 | 0.14483 | 0.002511 | 0 | 0 | 0 | 0.004292 | 0 | 1 | 0.071006 | false | 0.017751 | 0.053254 | 0.005917 | 0.183432 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6b8e6b112b5f5a0738910a049da1d3ae0235a6c | 1,698 | py | Python | notebooks/jetlatcalcs.py | afahadabdullah/cmip6hack-emergentconstraints | 287044e7bfb76bc318856d9b25b9e5e2b52ed477 | [
"MIT"
] | 1 | 2019-11-21T02:36:59.000Z | 2019-11-21T02:36:59.000Z | notebooks/jetlatcalcs.py | afahadabdullah/cmip6hack-emergentconstraints | 287044e7bfb76bc318856d9b25b9e5e2b52ed477 | [
"MIT"
] | null | null | null | notebooks/jetlatcalcs.py | afahadabdullah/cmip6hack-emergentconstraints | 287044e7bfb76bc318856d9b25b9e5e2b52ed477 | [
"MIT"
] | 6 | 2019-10-15T20:17:21.000Z | 2019-10-18T22:20:12.000Z | print( "you have successfully imported the jet latitude calculation subroutines" )
import numpy as np
def getzonalmeanonplev( xdatin, plev ):
# -----calculates zonal mean and picks out a pressure level-----
# input: xdatin = xarray data array (plev,nlat,nlon)
# : plev = desired pressure level (hPa)
# oudput: xda... | 38.590909 | 92 | 0.65371 | 246 | 1,698 | 4.50813 | 0.45122 | 0.036069 | 0.024346 | 0.037872 | 0.182146 | 0.182146 | 0.111812 | 0.111812 | 0.050496 | 0 | 0 | 0.018813 | 0.186101 | 1,698 | 43 | 93 | 39.488372 | 0.783647 | 0.430506 | 0 | 0 | 0 | 0 | 0.134595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.285714 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6ba96554a84cae2263637750307f51ca135bde3 | 1,488 | py | Python | TournamentReminder.py | 0ffkilter/StunfiskBot | 5ec1fd27b875ede1845747f22bf5b1fafe81caff | [
"MIT"
] | 1 | 2019-05-10T00:29:15.000Z | 2019-05-10T00:29:15.000Z | TournamentReminder.py | 0ffkilter/StunfiskBot | 5ec1fd27b875ede1845747f22bf5b1fafe81caff | [
"MIT"
] | null | null | null | TournamentReminder.py | 0ffkilter/StunfiskBot | 5ec1fd27b875ede1845747f22bf5b1fafe81caff | [
"MIT"
] | null | null | null | import praw, sys, os
user_agent = "Tournament Reminder by /u/0ffkilter"
config_file = open('%s%s' %(os.getcwd(), '/Config.txt'), 'r')
config = config_file.read().split('\n')
config_file.close()
reddit = praw.Reddit(user_agent = user_agent)
reddit.login('stunfiskhelperbot', config[1])
part_file = open('%s%s' %(os.g... | 33.818182 | 118 | 0.670699 | 219 | 1,488 | 4.484018 | 0.502283 | 0.010183 | 0.033605 | 0.020367 | 0.03666 | 0.03666 | 0 | 0 | 0 | 0 | 0 | 0.010067 | 0.198925 | 1,488 | 43 | 119 | 34.604651 | 0.813758 | 0 | 0 | 0 | 0 | 0.071429 | 0.572966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6baabf4be70eeed58c26930ea96749e16e4205c | 1,699 | py | Python | NGG_NEW.py | Antrix9/NUMBER_GUESSING_GAME | b5fcd5aca17b52dcec1bdbb5f661e20b82cc768b | [
"MIT"
] | null | null | null | NGG_NEW.py | Antrix9/NUMBER_GUESSING_GAME | b5fcd5aca17b52dcec1bdbb5f661e20b82cc768b | [
"MIT"
] | null | null | null | NGG_NEW.py | Antrix9/NUMBER_GUESSING_GAME | b5fcd5aca17b52dcec1bdbb5f661e20b82cc768b | [
"MIT"
] | 1 | 2021-03-27T16:28:33.000Z | 2021-03-27T16:28:33.000Z | import random
while True:
random_list = random.sample((3, 4, 5), 2)
#print(random_list)
random_number = random.randint(1, 1000)
#print(random_number)
start_range = random_number - random_list[0]
end_range = random_number + random_list[1]
print(f'Range Hint: The Number... | 26.138462 | 76 | 0.540906 | 215 | 1,699 | 4.176744 | 0.334884 | 0.13363 | 0.060134 | 0.051225 | 0.207127 | 0.062361 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.350206 | 1,699 | 64 | 77 | 26.546875 | 0.791667 | 0.045909 | 0 | 0.155556 | 0 | 0 | 0.291237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.022222 | 0.022222 | 0 | 0.022222 | 0.311111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6bc65524aa9146a7d999087ba23c1ddab175047 | 284 | py | Python | 2048test.py | zhangzhibo123/2048game | 2bd573fdcff61b47bcdafc6aa498c6cd9e5b55a7 | [
"Apache-2.0"
] | null | null | null | 2048test.py | zhangzhibo123/2048game | 2bd573fdcff61b47bcdafc6aa498c6cd9e5b55a7 | [
"Apache-2.0"
] | null | null | null | 2048test.py | zhangzhibo123/2048game | 2bd573fdcff61b47bcdafc6aa498c6cd9e5b55a7 | [
"Apache-2.0"
] | null | null | null | # map = [[0 for i in range(4)] for j in range(4)]
# print(map)
map = [[2, 0, 0, 0], [0, 0, 0, 4], [8, 0, 0, 0], [4, 0, 0, 2]]
# ma = [[map[c][r] for c in range(4)] for r in reversed(range(4))]
# print(ma)
ma = [[map[c][r] for r in reversed(range(4))] for c in range(4)]
print(ma) | 23.666667 | 66 | 0.517606 | 65 | 284 | 2.261538 | 0.230769 | 0.108844 | 0.102041 | 0.081633 | 0.571429 | 0.272109 | 0 | 0 | 0 | 0 | 0 | 0.103604 | 0.21831 | 284 | 12 | 67 | 23.666667 | 0.558559 | 0.46831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6c2400ffbeca603e01ee66e01e65345a49b8317 | 3,110 | py | Python | scripts/generate_result.py | XinYao1994/HOPE | 99b41b457b67d3e5d6dd182f8aa2ce4ea66e4a68 | [
"Apache-2.0"
] | 108 | 2020-04-23T19:06:51.000Z | 2022-02-23T20:05:09.000Z | scripts/generate_result.py | XinYao1994/HOPE | 99b41b457b67d3e5d6dd182f8aa2ce4ea66e4a68 | [
"Apache-2.0"
] | 1 | 2021-07-07T05:58:57.000Z | 2021-07-07T05:58:57.000Z | scripts/generate_result.py | XinYao1994/HOPE | 99b41b457b67d3e5d6dd182f8aa2ce4ea66e4a68 | [
"Apache-2.0"
] | 11 | 2020-04-24T01:53:50.000Z | 2022-01-21T07:36:14.000Z | import sys
import os
import numpy as np
RESULT_DIR = 'results/'
PREFIX = ['ART', 'btree', 'prefixbtree', 'hot', 'microbench/cpr_latency', 'SuRF']
TYPE = ['point', 'range']
DATASETS = ['email', 'url', 'wiki']
VAR = ['cpr','x','height', 'fpr', 'lat', 'insertlat', 'lookuplat', 'mem', 'stats']
BT_OUTFILE = "../results/micr... | 30.194175 | 86 | 0.50418 | 376 | 3,110 | 4.015957 | 0.337766 | 0.039735 | 0.025828 | 0.025828 | 0.099338 | 0.063576 | 0.063576 | 0 | 0 | 0 | 0 | 0.006965 | 0.353698 | 3,110 | 102 | 87 | 30.490196 | 0.744279 | 0.007074 | 0 | 0.113636 | 0 | 0 | 0.129294 | 0.033377 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.011364 | 0.034091 | 0 | 0.079545 | 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 |
b6c2e06c318572e03e24661769d9fadacecffe3d | 1,647 | py | Python | raspberryPi/control.py | djvolz/CarlLights | 7e0f9d16f2a93c9fcdbd7c4caa3438d39685c498 | [
"Beerware"
] | null | null | null | raspberryPi/control.py | djvolz/CarlLights | 7e0f9d16f2a93c9fcdbd7c4caa3438d39685c498 | [
"Beerware"
] | null | null | null | raspberryPi/control.py | djvolz/CarlLights | 7e0f9d16f2a93c9fcdbd7c4caa3438d39685c498 | [
"Beerware"
] | null | null | null | # -*- coding: utf-8 -*-
# @Author: djvolz
# @Date: 2016-11-14 17:03:11
# @Last Modified by: djvolz
# @Last Modified time: 2016-11-15 01:13:28
import time
import json # import json library to parse messages
import boto3 # import boto library that handles queuing functions
import lightSequence as ls
class Contro... | 28.894737 | 75 | 0.604129 | 191 | 1,647 | 5.141361 | 0.539267 | 0.03055 | 0.032587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028344 | 0.314511 | 1,647 | 56 | 76 | 29.410714 | 0.841453 | 0.336976 | 0 | 0 | 0 | 0 | 0.091248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.321429 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6c7c7680b4ba76a99f84c48fad447e0e2a46a23 | 2,350 | py | Python | measurements/tasks/cleanup.py | nat64check/zaphod_backend | b92191950825e1a4fd8c34207c8491d587cfb61f | [
"BSD-3-Clause"
] | 1 | 2017-11-14T16:22:38.000Z | 2017-11-14T16:22:38.000Z | measurements/tasks/cleanup.py | sjm-steffann/nat64check_zaphod_backend | b92191950825e1a4fd8c34207c8491d587cfb61f | [
"BSD-3-Clause"
] | 5 | 2019-12-03T05:36:07.000Z | 2021-06-25T15:20:04.000Z | measurements/tasks/cleanup.py | sjm-steffann/nat64check_zaphod_backend | b92191950825e1a4fd8c34207c8491d587cfb61f | [
"BSD-3-Clause"
] | null | null | null | # ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
# Copyright (c) 2018, S.J.M. Steffann. This software is licensed under the BSD
# 3-Clause License. Please see the LICENSE file in the project root directory.
# •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••... | 32.638889 | 115 | 0.580426 | 262 | 2,350 | 5.667939 | 0.473282 | 0.051852 | 0.028283 | 0.03367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014434 | 0.262979 | 2,350 | 71 | 116 | 33.098592 | 0.752887 | 0.190213 | 0 | 0.108696 | 0 | 0 | 0.176253 | 0.013193 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.130435 | 0 | 0.217391 | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6c876e63b43d2613e35e9f8be781edcaf28ef29 | 1,268 | py | Python | filter_dict/core.py | daddinuz/filter_dict | 5e4df5489a04eb0a97251197a45dfd8a56e88874 | [
"MIT"
] | null | null | null | filter_dict/core.py | daddinuz/filter_dict | 5e4df5489a04eb0a97251197a45dfd8a56e88874 | [
"MIT"
] | 1 | 2018-12-02T15:37:11.000Z | 2018-12-04T04:59:50.000Z | filter_dict/core.py | daddinuz/filter_dict | 5e4df5489a04eb0a97251197a45dfd8a56e88874 | [
"MIT"
] | null | null | null | import typing
import chainable_iterator
K = typing.TypeVar('K')
V = typing.TypeVar('V')
P = typing.List[K]
Predicate = typing.Callable[[P, K, V], bool]
_Node = typing.NamedTuple('_Node', (('path', P), ('data', typing.Mapping)))
def match_all(_kp: P, _k: K, _v: V) -> bool:
return True
def _decompose_dict(predi... | 30.926829 | 94 | 0.614353 | 177 | 1,268 | 4.254237 | 0.288136 | 0.023904 | 0.074369 | 0.079681 | 0.166003 | 0.132802 | 0.132802 | 0.132802 | 0.132802 | 0.132802 | 0 | 0.00207 | 0.23817 | 1,268 | 40 | 95 | 31.7 | 0.777433 | 0 | 0 | 0 | 0 | 0 | 0.01183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0.066667 | 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 |
b6c8ac2b3828724efc5a4b1a174acc6003af0ab7 | 2,549 | py | Python | src/marlb.py | bennett-nguyen/marlb | f169fa814c7454dce54fd6d0ce8e0821280345b2 | [
"MIT"
] | 4 | 2021-12-15T14:41:43.000Z | 2021-12-27T18:57:13.000Z | src/marlb.py | bennett-nguyen/marlb | f169fa814c7454dce54fd6d0ce8e0821280345b2 | [
"MIT"
] | null | null | null | src/marlb.py | bennett-nguyen/marlb | f169fa814c7454dce54fd6d0ce8e0821280345b2 | [
"MIT"
] | null | null | null | import argparse
import os
import re
from utils import interpret
parser = argparse.ArgumentParser()
parser.add_argument("-m", "--mode", choices=["interpret", "debug"], required=True, help="Mode to interpret your file")
parser.add_argument("-f", "--file", required=True, help="File to interpret, pass in either file name... | 31.085366 | 175 | 0.532366 | 281 | 2,549 | 4.704626 | 0.362989 | 0.066566 | 0.049924 | 0.040847 | 0.142209 | 0.057489 | 0.057489 | 0.057489 | 0 | 0 | 0 | 0.003928 | 0.300902 | 2,549 | 81 | 176 | 31.469136 | 0.737935 | 0 | 0 | 0.25 | 0 | 0 | 0.238133 | 0.025893 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0.017857 | 0.071429 | 0 | 0.25 | 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 |
b6cc07d04501634b38a9132db0f8a13778e8d948 | 1,333 | py | Python | almatsurat_data_compiler.py | IMuslim-org/Al-Matsurat-Internalisation | ad92da6c623911801af23d2d96335e8dedbcd148 | [
"BSD-2-Clause"
] | null | null | null | almatsurat_data_compiler.py | IMuslim-org/Al-Matsurat-Internalisation | ad92da6c623911801af23d2d96335e8dedbcd148 | [
"BSD-2-Clause"
] | null | null | null | almatsurat_data_compiler.py | IMuslim-org/Al-Matsurat-Internalisation | ad92da6c623911801af23d2d96335e8dedbcd148 | [
"BSD-2-Clause"
] | null | null | null |
import csv
import json
import os
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--dzikir_type", dest="dzikir_type", type=str, help="Please Add Al Matsurat Type")
args = parser.parse_args()
dzikir_type = args.dzikir_type
if dzikir_type == None:
dzikir_type = "sugro"
__dir__ = os.path.d... | 24.236364 | 102 | 0.651913 | 167 | 1,333 | 4.898204 | 0.359281 | 0.0978 | 0.03912 | 0.05868 | 0.155257 | 0.06357 | 0.06357 | 0 | 0 | 0 | 0 | 0.004757 | 0.211553 | 1,333 | 55 | 103 | 24.236364 | 0.773549 | 0.021005 | 0 | 0.176471 | 0 | 0 | 0.162058 | 0.089094 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6cc4aeb99e1db488430dfb0021b28e612cd980b | 3,642 | py | Python | prometheus_api_client/metric_range_df.py | chauhankaranraj/prometheus-api-client-python | 5c09c7f3d5b9b2f16dc3aa19c84e9a45c6e23327 | [
"MIT"
] | 118 | 2019-03-31T14:43:25.000Z | 2022-03-20T02:35:42.000Z | prometheus_api_client/metric_range_df.py | chauhankaranraj/prometheus-api-client-python | 5c09c7f3d5b9b2f16dc3aa19c84e9a45c6e23327 | [
"MIT"
] | 225 | 2019-03-22T19:31:51.000Z | 2022-03-29T15:38:20.000Z | prometheus_api_client/metric_range_df.py | chauhankaranraj/prometheus-api-client-python | 5c09c7f3d5b9b2f16dc3aa19c84e9a45c6e23327 | [
"MIT"
] | 67 | 2019-03-21T19:00:52.000Z | 2022-03-31T12:01:14.000Z | """A pandas.DataFrame subclass for Prometheus range vector responses."""
from pandas import DataFrame
from pandas._typing import Axes, Dtype
from typing import Optional, Sequence
class MetricRangeDataFrame(DataFrame):
"""Subclass to format and represent Prometheus query response as pandas.DataFrame.
Assumes ... | 46.692308 | 107 | 0.547227 | 391 | 3,642 | 4.976982 | 0.388747 | 0.02261 | 0.016958 | 0.020555 | 0.040082 | 0.040082 | 0.040082 | 0.040082 | 0 | 0 | 0 | 0.012232 | 0.281713 | 3,642 | 77 | 108 | 47.298701 | 0.731651 | 0.674355 | 0 | 0 | 0 | 0 | 0.105871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.111111 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6d40c0b4675da86701d6ce4d065ffec39bc4d25 | 8,216 | py | Python | cdApi/discount.py | renqiukai/cd_api | 4f1f641adaf031252b097db03249a2581268cc11 | [
"MIT"
] | null | null | null | cdApi/discount.py | renqiukai/cd_api | 4f1f641adaf031252b097db03249a2581268cc11 | [
"MIT"
] | null | null | null | cdApi/discount.py | renqiukai/cd_api | 4f1f641adaf031252b097db03249a2581268cc11 | [
"MIT"
] | null | null | null | '''
@说明 :满减送接口。
@时间 :2020/2/13 下午4:28:26
@作者 :任秋锴
@版本 :1.0
'''
from .base import base
from .product import product
from .store import store
class discount(base):
def __init__(self, token):
super().__init__(token)
def list(self,
state=None,
name=None,
... | 29.985401 | 66 | 0.443403 | 740 | 8,216 | 4.827027 | 0.214865 | 0.023516 | 0.023516 | 0.030235 | 0.495521 | 0.43561 | 0.380179 | 0.354983 | 0.343785 | 0.31243 | 0 | 0.036531 | 0.430258 | 8,216 | 273 | 67 | 30.095238 | 0.726554 | 0.047712 | 0 | 0.52968 | 0 | 0 | 0.151808 | 0.011964 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045662 | false | 0 | 0.013699 | 0 | 0.114155 | 0.018265 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6d550ad2ae06f4375b0baa41ab881e26142f3e6 | 589 | py | Python | blanc_basic_pages/migrations/0002_page_hero_image.py | src-r-r/blanc-basic-pages | 2714567e054cafeaaefd533a1786cdef43369f9d | [
"BSD-3-Clause"
] | 1 | 2020-01-11T12:48:38.000Z | 2020-01-11T12:48:38.000Z | blanc_basic_pages/migrations/0002_page_hero_image.py | src-r-r/blanc-basic-pages | 2714567e054cafeaaefd533a1786cdef43369f9d | [
"BSD-3-Clause"
] | 1 | 2017-05-02T21:41:35.000Z | 2017-05-02T21:41:35.000Z | blanc_basic_pages/migrations/0002_page_hero_image.py | src-r-r/blanc-basic-pages | 2714567e054cafeaaefd533a1786cdef43369f9d | [
"BSD-3-Clause"
] | 2 | 2020-01-11T12:49:03.000Z | 2020-10-17T00:34:29.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import blanc_basic_assets.fields
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('assets', '0001_initial'),
('pages', '0001_initial'),
]
ope... | 25.608696 | 148 | 0.657046 | 65 | 589 | 5.723077 | 0.6 | 0.064516 | 0.086022 | 0.11828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019565 | 0.219015 | 589 | 22 | 149 | 26.772727 | 0.78913 | 0.035654 | 0 | 0 | 0 | 0 | 0.107774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
b6d62cb0d58d04d2fb59cddbe5dfdb15bc52ce89 | 4,538 | py | Python | src/app/beer_garden/metrics.py | ExpressHermes/beer-garden | 2ea0944d7528a8127bc1b79d16d8fdc668f1c8e4 | [
"MIT"
] | null | null | null | src/app/beer_garden/metrics.py | ExpressHermes/beer-garden | 2ea0944d7528a8127bc1b79d16d8fdc668f1c8e4 | [
"MIT"
] | null | null | null | src/app/beer_garden/metrics.py | ExpressHermes/beer-garden | 2ea0944d7528a8127bc1b79d16d8fdc668f1c8e4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""" Metrics Service
The metrics service manages:
* Connectivity to the Prometheus Server
* Creating default summary views in Prometheus
* Publishing `Request` metrics
"""
import datetime
import logging
from http.server import ThreadingHTTPServer
from brewtils.models import Request
from brewti... | 28.721519 | 86 | 0.694579 | 511 | 4,538 | 5.921722 | 0.252446 | 0.059484 | 0.035691 | 0.039656 | 0.329478 | 0.29577 | 0.25347 | 0.206543 | 0.206543 | 0.206543 | 0 | 0.000274 | 0.197003 | 4,538 | 157 | 87 | 28.904459 | 0.830132 | 0.128911 | 0 | 0.227723 | 0 | 0 | 0.203794 | 0.027685 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079208 | false | 0 | 0.089109 | 0 | 0.188119 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6d923de7666600e544be448396f3fd26e44e836 | 2,368 | py | Python | sendmail/__init__.py | hmif-itb/hmif-send-mail | 628e283d7de06b132fe72af97b76104ea5ff8c88 | [
"MIT"
] | null | null | null | sendmail/__init__.py | hmif-itb/hmif-send-mail | 628e283d7de06b132fe72af97b76104ea5ff8c88 | [
"MIT"
] | null | null | null | sendmail/__init__.py | hmif-itb/hmif-send-mail | 628e283d7de06b132fe72af97b76104ea5ff8c88 | [
"MIT"
] | null | null | null | import argparse
from .helpers import yaml_parser
from .mailer import Mailer
from .utils import csv_to_recipients
from .exceptions import TemplateNotFoundException
from .exceptions import TemplateAndCSVNotMatchException
def main():
parser = argparse.ArgumentParser()
parser.add_argument("--config", help="yaml ... | 37 | 82 | 0.600084 | 251 | 2,368 | 5.478088 | 0.270916 | 0.069818 | 0.086545 | 0.019636 | 0.058182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.310389 | 2,368 | 63 | 83 | 37.587302 | 0.842009 | 0 | 0 | 0.058824 | 0 | 0 | 0.154561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.117647 | 0 | 0.137255 | 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 |
b6d95e9d197de4562be8336500d24a19ca05a815 | 1,540 | py | Python | aquascope/tests/aquascope/webserver/data_access/db/dummy_uploads.py | MicroscopeIT/aquascope_backend | 6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24 | [
"MIT"
] | null | null | null | aquascope/tests/aquascope/webserver/data_access/db/dummy_uploads.py | MicroscopeIT/aquascope_backend | 6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24 | [
"MIT"
] | 3 | 2021-06-08T19:50:36.000Z | 2021-09-08T01:15:33.000Z | aquascope/tests/aquascope/webserver/data_access/db/dummy_uploads.py | MicroscopeIT/aquascope_backend | 6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24 | [
"MIT"
] | 2 | 2019-05-15T13:30:42.000Z | 2020-06-12T02:42:49.000Z | import copy
from bson import ObjectId
from aquascope.webserver.data_access.db.upload import Upload, DEFAULT_UPLOAD_PROJECTION
from aquascope.webserver.data_access.db.util import project_dict
_DUMMY_UPLOADS = [
{
'_id': ObjectId('000000000000000000001000'),
'filename': 'dummy0',
'state': '... | 27.017544 | 103 | 0.587013 | 140 | 1,540 | 6.142857 | 0.421429 | 0.069767 | 0.051163 | 0.060465 | 0.132558 | 0.07907 | 0 | 0 | 0 | 0 | 0 | 0.121454 | 0.267532 | 1,540 | 56 | 104 | 27.5 | 0.640957 | 0 | 0 | 0.039216 | 0 | 0 | 0.327922 | 0.121429 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078431 | 0 | 0.078431 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6dea75ac1d892435b1297a25c34723e9ed2ad4b | 4,961 | py | Python | Features/OCR.py | JosephLteif/Smart-Assistant | 6f428288da3abf21e83d64e7db63a41eba9c496c | [
"MIT"
] | null | null | null | Features/OCR.py | JosephLteif/Smart-Assistant | 6f428288da3abf21e83d64e7db63a41eba9c496c | [
"MIT"
] | null | null | null | Features/OCR.py | JosephLteif/Smart-Assistant | 6f428288da3abf21e83d64e7db63a41eba9c496c | [
"MIT"
] | null | null | null | # Import required packages
import os
import time
import cv2
import imutils
import numpy as np
import pytesseract
from autocorrect import Speller
from PIL import Image
def VideoOn():
video = cv2.VideoCapture(0, cv2.CAP_DSHOW)
while True:
# check returns true if python can actually read and frame is n... | 29.011696 | 100 | 0.642209 | 645 | 4,961 | 4.897674 | 0.368992 | 0.02849 | 0.034188 | 0.023742 | 0.149414 | 0.106363 | 0.084204 | 0.039253 | 0.039253 | 0.039253 | 0 | 0.029162 | 0.239669 | 4,961 | 171 | 101 | 29.011696 | 0.808325 | 0.263657 | 0 | 0.153061 | 0 | 0 | 0.091337 | 0.070578 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091837 | false | 0 | 0.081633 | 0 | 0.234694 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6e1ea932d8c5cacb20dcd319573741e59522077 | 4,395 | py | Python | scrapy/tests/test_contrib_exp_crawlspider_reqgen.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | null | null | null | scrapy/tests/test_contrib_exp_crawlspider_reqgen.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 10 | 2020-02-11T23:34:28.000Z | 2022-03-11T23:16:12.000Z | scrapy/tests/test_contrib_exp_crawlspider_reqgen.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 3 | 2018-08-05T14:54:25.000Z | 2021-06-07T01:49:59.000Z | from twisted.internet import defer
from twisted.trial import unittest
from scrapy.http import Request
from scrapy.http import HtmlResponse
from scrapy.utils.python import equal_attributes
from scrapy.contrib_exp.crawlspider.reqext import SgmlRequestExtractor
from scrapy.contrib_exp.crawlspider.reqgen import RequestGe... | 35.16 | 81 | 0.598635 | 435 | 4,395 | 5.954023 | 0.225287 | 0.034749 | 0.043243 | 0.056757 | 0.501158 | 0.471042 | 0.471042 | 0.385714 | 0.385714 | 0.385714 | 0 | 0.009455 | 0.278043 | 4,395 | 124 | 82 | 35.443548 | 0.806807 | 0.014334 | 0 | 0.484211 | 0 | 0.010526 | 0.164317 | 0.023111 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.115789 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6e323612c27f1c648a39e77bf266f1f8b1edb1c | 5,891 | py | Python | scripts/train_agents.py | Silviatulli/minmax_transparency_project | 45f93870d4366c8a1d0d5a43cf270ec92bc7a63b | [
"MIT"
] | 1 | 2021-07-13T02:55:16.000Z | 2021-07-13T02:55:16.000Z | scripts/train_agents.py | Silviatulli/minmax_transparency_project | 45f93870d4366c8a1d0d5a43cf270ec92bc7a63b | [
"MIT"
] | 1 | 2020-07-06T08:44:28.000Z | 2020-07-06T08:44:28.000Z | scripts/train_agents.py | Silviatulli/minmax_transparency_project | 45f93870d4366c8a1d0d5a43cf270ec92bc7a63b | [
"MIT"
] | 1 | 2020-03-15T15:53:40.000Z | 2020-03-15T15:53:40.000Z | import tensorflow as tf
import json
from sklearn.model_selection import KFold
import jsonpickle
import numpy as np
from minmax.game_model import GameState
def load_data(file_name):
with open(file_name, "r") as file:
data = json.load(file)
data_decoded = jsonpickle.decode(data)
states = list(... | 33.282486 | 79 | 0.654728 | 800 | 5,891 | 4.5975 | 0.195 | 0.036161 | 0.042414 | 0.04894 | 0.430941 | 0.386079 | 0.346384 | 0.313757 | 0.250136 | 0.250136 | 0 | 0.015457 | 0.209302 | 5,891 | 176 | 80 | 33.471591 | 0.774152 | 0.138856 | 0 | 0.226087 | 0 | 0 | 0.056922 | 0.02261 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026087 | false | 0 | 0.052174 | 0 | 0.104348 | 0.017391 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6e3ed186797b0db9105b6d4c93d6db5f25cd9a2 | 447 | py | Python | blockapi/test/api/test_tronscan.py | jendis/blockapi | c886cef954a504fc926c132b30acddc71abe5f12 | [
"MIT"
] | null | null | null | blockapi/test/api/test_tronscan.py | jendis/blockapi | c886cef954a504fc926c132b30acddc71abe5f12 | [
"MIT"
] | null | null | null | blockapi/test/api/test_tronscan.py | jendis/blockapi | c886cef954a504fc926c132b30acddc71abe5f12 | [
"MIT"
] | null | null | null | from pytest import mark
from blockapi.api.tronscan import TronscanAPI
from blockapi.test_init import test_addresses
class TestTronscanAPI:
ADDRESS = test_addresses['TRX'][0]
@mark.vcr()
def test_get_balance(self):
api = TronscanAPI(address=self.ADDRESS)
result = api.get_balance()
... | 24.833333 | 78 | 0.655481 | 58 | 447 | 4.948276 | 0.568966 | 0.083624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02907 | 0.230425 | 447 | 17 | 79 | 26.294118 | 0.805233 | 0 | 0 | 0 | 0 | 0 | 0.040268 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.083333 | false | 0 | 0.25 | 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 |
b6e731b3f53ab367c89ef0ea8e1cbffb0d990775 | 429 | py | Python | kornia/feature/loftr/backbone/__init__.py | Ishticode/kornia | 974abb43ec72d12dbd244a2fb247bbbab8498de0 | [
"ECL-2.0",
"Apache-2.0"
] | 4,894 | 2019-10-24T15:51:39.000Z | 2022-03-30T22:58:33.000Z | kornia/feature/loftr/backbone/__init__.py | Ishticode/kornia | 974abb43ec72d12dbd244a2fb247bbbab8498de0 | [
"ECL-2.0",
"Apache-2.0"
] | 912 | 2019-10-24T16:08:42.000Z | 2022-03-31T19:07:09.000Z | kornia/feature/loftr/backbone/__init__.py | Ishticode/kornia | 974abb43ec72d12dbd244a2fb247bbbab8498de0 | [
"ECL-2.0",
"Apache-2.0"
] | 557 | 2019-10-24T16:02:43.000Z | 2022-03-28T07:33:33.000Z | from .resnet_fpn import ResNetFPN_8_2, ResNetFPN_16_4
def build_backbone(config):
if config['backbone_type'] == 'ResNetFPN':
if config['resolution'] == (8, 2):
return ResNetFPN_8_2(config['resnetfpn'])
elif config['resolution'] == (16, 4):
return ResNetFPN_16_4(config['resn... | 35.75 | 89 | 0.655012 | 53 | 429 | 5.056604 | 0.471698 | 0.022388 | 0.08209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0.207459 | 429 | 11 | 90 | 39 | 0.744118 | 0 | 0 | 0 | 0 | 0 | 0.27972 | 0.058275 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6e9e820b7afe09d1d292ddb58ac088c11338fa6 | 5,298 | py | Python | bitsoapi/Client.py | oxsoftdev/bitsoapi | daa15c8921f4e49e07f1a958e8837d3548db329d | [
"MIT"
] | null | null | null | bitsoapi/Client.py | oxsoftdev/bitsoapi | daa15c8921f4e49e07f1a958e8837d3548db329d | [
"MIT"
] | null | null | null | bitsoapi/Client.py | oxsoftdev/bitsoapi | daa15c8921f4e49e07f1a958e8837d3548db329d | [
"MIT"
] | null | null | null | from .errors import (ApiError, ApiClientError)
from .mixins import ApiClientMixin
from .models.public import (
AvailableBooks
, Ticker
, OrderBook
, Trade
)
class Client(ApiClientMixin):
def __init__(self, key=None, secret=None):
self.base_url = 'https://bitso.com/api/v3'
self.key... | 34.855263 | 114 | 0.597206 | 596 | 5,298 | 5.209732 | 0.204698 | 0.028341 | 0.038969 | 0.057971 | 0.300483 | 0.258937 | 0.212882 | 0.152979 | 0.121417 | 0.050242 | 0 | 0.00207 | 0.270479 | 5,298 | 151 | 115 | 35.086093 | 0.801294 | 0.004153 | 0 | 0.235772 | 0 | 0 | 0.128794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0 | 0.02439 | 0 | 0.284553 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6ec2598a56faa62709a6fdad2b2f7f1d84fc242 | 3,256 | py | Python | pycryptoki/mechanism/des.py | nondejus/pycryptoki | 5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3 | [
"Apache-2.0"
] | null | null | null | pycryptoki/mechanism/des.py | nondejus/pycryptoki | 5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3 | [
"Apache-2.0"
] | null | null | null | pycryptoki/mechanism/des.py | nondejus/pycryptoki | 5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3 | [
"Apache-2.0"
] | null | null | null | """
DES3-specific mechanism implementations.
"""
import logging
from ctypes import c_void_p, cast, pointer, sizeof, POINTER
from . import Mechanism
from ..attributes import to_byte_array
from ..conversions import from_bytestring
from ..cryptoki import CK_ULONG, CK_BYTE, CK_BYTE_PTR, CK_DES_CTR_PARAMS, \
CK_KEY_DE... | 36.58427 | 77 | 0.677211 | 412 | 3,256 | 5.06068 | 0.23301 | 0.034532 | 0.020144 | 0.021583 | 0.663309 | 0.618705 | 0.569784 | 0.569784 | 0.569784 | 0.517026 | 0 | 0.014601 | 0.221744 | 3,256 | 89 | 78 | 36.58427 | 0.808208 | 0.292383 | 0 | 0.372093 | 0 | 0 | 0.023245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.139535 | 0 | 0.418605 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6ef7292ee095b344a1e27bdac06d5abb78f801f | 4,772 | py | Python | main.py | hollow-earth/handwritten-latex | 077ecc09edd94d9cda10700886c74bb93f0f6121 | [
"MIT"
] | null | null | null | main.py | hollow-earth/handwritten-latex | 077ecc09edd94d9cda10700886c74bb93f0f6121 | [
"MIT"
] | null | null | null | main.py | hollow-earth/handwritten-latex | 077ecc09edd94d9cda10700886c74bb93f0f6121 | [
"MIT"
] | null | null | null | import tkinter as tk
from tkinter.filedialog import askopenfilename
from tkinter import scrolledtext
from PIL import ImageTk,Image
import execute
def updateText(text):
text_widget["state"] = tk.NORMAL
text_widget.insert(tk.INSERT, text)
text_widget["state"] = tk.DISABLED
def getFile():
global filenam... | 40.440678 | 132 | 0.67917 | 614 | 4,772 | 5.262215 | 0.286645 | 0.021665 | 0.015475 | 0.022284 | 0.282266 | 0.210152 | 0.162798 | 0.11204 | 0.11204 | 0.084184 | 0 | 0.035321 | 0.181266 | 4,772 | 118 | 133 | 40.440678 | 0.791656 | 0 | 0 | 0.165049 | 0 | 0 | 0.125707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048544 | false | 0 | 0.048544 | 0 | 0.097087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6f0188653bb2ee871af6055822ae4236aad3138 | 1,681 | py | Python | aaem/components/ashp_base/config.py | gina-alaska/alaska_affordable_energy_model | 96fed0137152985ce280ea37e0affec131e3087f | [
"MIT-feh"
] | 1 | 2022-01-23T07:18:36.000Z | 2022-01-23T07:18:36.000Z | aaem/components/ashp_base/config.py | gina-alaska/alaska_affordable_energy_model | 96fed0137152985ce280ea37e0affec131e3087f | [
"MIT-feh"
] | 5 | 2017-07-14T21:56:46.000Z | 2017-07-14T21:59:15.000Z | aaem/components/ashp_base/config.py | gina-alaska/alaska_affordable_energy_model | 96fed0137152985ce280ea37e0affec131e3087f | [
"MIT-feh"
] | 2 | 2020-04-28T18:12:55.000Z | 2021-01-13T01:56:57.000Z | """
Air Sorce Heat Pump Base Configuration
--------------------------------------
Contains Air Sorce Heat Pump Base configuration info for community
data yaml file, and other set-up requirements
"""
from aaem.components import definitions
from pandas import DataFrame
COMPONENT_NAME = "air source heat pumps b... | 27.112903 | 161 | 0.603807 | 197 | 1,681 | 5.121827 | 0.431472 | 0.053518 | 0.039643 | 0.051536 | 0.243806 | 0.168484 | 0.047572 | 0 | 0 | 0 | 0 | 0 | 0.245687 | 1,681 | 61 | 162 | 27.557377 | 0.795741 | 0.160024 | 0 | 0 | 0 | 0.045455 | 0.516429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.068182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6f042d82082418eff06a31d2338a1f484ffdb28 | 1,481 | py | Python | tkRAD/xml/rad_xml_attributes_dict.py | eblade/telegram | fffdcdad501a672130ea5b970c5bfc6bd554d826 | [
"MIT"
] | 1 | 2015-02-22T16:33:35.000Z | 2015-02-22T16:33:35.000Z | tkRAD/xml/rad_xml_attributes_dict.py | eblade/telegram | fffdcdad501a672130ea5b970c5bfc6bd554d826 | [
"MIT"
] | null | null | null | tkRAD/xml/rad_xml_attributes_dict.py | eblade/telegram | fffdcdad501a672130ea5b970c5bfc6bd554d826 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
tkRAD - tkinter Rapid Application Development library
(c) 2013+ Raphaël SEBAN <motus@laposte.net>
This program is free software: you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free S... | 29.62 | 71 | 0.679271 | 197 | 1,481 | 5.010152 | 0.634518 | 0.033435 | 0.039514 | 0.057751 | 0.08308 | 0.056738 | 0 | 0 | 0 | 0 | 0 | 0.006289 | 0.248481 | 1,481 | 49 | 72 | 30.22449 | 0.880503 | 0.654963 | 0 | 0 | 0 | 0 | 0.047493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6f0f2ae0437a7438574c9999baa6648a2c77f76 | 6,080 | py | Python | noogle/models.py | mtik00/gcal_nest | eb54e0cdefa8747f3173a91df131092286b83e09 | [
"MIT"
] | 1 | 2019-08-14T01:51:22.000Z | 2019-08-14T01:51:22.000Z | noogle/models.py | mtik00/noogle | eb54e0cdefa8747f3173a91df131092286b83e09 | [
"MIT"
] | null | null | null | noogle/models.py | mtik00/noogle | eb54e0cdefa8747f3173a91df131092286b83e09 | [
"MIT"
] | null | null | null | import enum
from sqlalchemy import Integer, String, Column, Enum, UniqueConstraint
from sqlalchemy.sql import exists, and_
from sqlalchemy_utils import ArrowType
from sqlalchemy.exc import IntegrityError
from .db import Base, session
import arrow
from .settings import settings
from .utils import get_scheduled_date
fro... | 29.371981 | 88 | 0.587171 | 675 | 6,080 | 5.093333 | 0.219259 | 0.052938 | 0.046539 | 0.034904 | 0.315009 | 0.243165 | 0.188773 | 0.128272 | 0.099767 | 0.099767 | 0 | 0.002861 | 0.310033 | 6,080 | 206 | 89 | 29.514563 | 0.816687 | 0.064967 | 0 | 0.25 | 0 | 0 | 0.05976 | 0.02599 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.064103 | 0.038462 | 0.448718 | 0.012821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6f23930d3e912ee805e9716c8b0824677ddf74a | 2,956 | py | Python | params.py | ptarau/StanzaGraphs | 617818ded2f6e633417ec548eec7d9ae59c2e65b | [
"Apache-2.0"
] | 4 | 2020-12-31T01:18:05.000Z | 2021-08-13T08:33:25.000Z | params.py | ptarau/StanzaGraphs | 617818ded2f6e633417ec548eec7d9ae59c2e65b | [
"Apache-2.0"
] | null | null | null | params.py | ptarau/StanzaGraphs | 617818ded2f6e633417ec548eec7d9ae59c2e65b | [
"Apache-2.0"
] | 5 | 2020-12-06T01:46:33.000Z | 2022-02-22T05:27:54.000Z | import json
import os
import pickle
import subprocess
from inspect import getframeinfo, stack
import langid
PARAMS = dict(
TRACE=1,
TARGET_LANG='en', # tried zh,fr,sp,de,hu,ro,ar,el,la,it,ru,ja
RANKER='betweenness',
UPLOAD_DIRECTORY='uploads/',
OUTPUT_DIRECTORY='out/',
k_count=7,
s_count=... | 20.386207 | 66 | 0.578823 | 406 | 2,956 | 4.162562 | 0.403941 | 0.023669 | 0.038462 | 0.023669 | 0.060355 | 0.035503 | 0 | 0 | 0 | 0 | 0 | 0.00992 | 0.28383 | 2,956 | 144 | 67 | 20.527778 | 0.78838 | 0.135318 | 0 | 0 | 0 | 0 | 0.056477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.17284 | false | 0 | 0.08642 | 0.012346 | 0.358025 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6f376b60a00ab17f19cd60c626a3bd2ccf60f7f | 12,589 | py | Python | safe_exploration/environments/ndpendulum.py | oscarkey/safe-exploration | 32f0582a7b54ab7d4c1d415afbcf5e9554e8bcec | [
"MIT"
] | null | null | null | safe_exploration/environments/ndpendulum.py | oscarkey/safe-exploration | 32f0582a7b54ab7d4c1d415afbcf5e9554e8bcec | [
"MIT"
] | null | null | null | safe_exploration/environments/ndpendulum.py | oscarkey/safe-exploration | 32f0582a7b54ab7d4c1d415afbcf5e9554e8bcec | [
"MIT"
] | null | null | null | """Contains the n dimensional inverted pendulum environment."""
import warnings
from typing import Optional
import matplotlib.pyplot as plt
import numpy as np
from numpy import ndarray
from polytope import polytope
from scipy.integrate import ode
from scipy.spatial.qhull import ConvexHull
from ..utils import assert_s... | 38.381098 | 120 | 0.562157 | 1,774 | 12,589 | 3.795941 | 0.196731 | 0.010989 | 0.008465 | 0.05049 | 0.253787 | 0.208494 | 0.187853 | 0.176715 | 0.149985 | 0.118503 | 0 | 0.041739 | 0.316784 | 12,589 | 327 | 121 | 38.498471 | 0.741193 | 0.288982 | 0 | 0.072289 | 0 | 0.036145 | 0.016137 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 1 | 0.078313 | false | 0 | 0.060241 | 0.012048 | 0.192771 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6f37b1b2d758914c3434554bfc9d96346d89687 | 1,062 | py | Python | docs/conf.py | mlibrary/keycard | a91922a0bed8e58f277acde79b050e67dfc1a753 | [
"BSD-3-Clause"
] | 1 | 2022-03-07T13:53:11.000Z | 2022-03-07T13:53:11.000Z | docs/conf.py | mlibrary/keycard | a91922a0bed8e58f277acde79b050e67dfc1a753 | [
"BSD-3-Clause"
] | 16 | 2018-03-02T17:18:03.000Z | 2022-03-01T22:38:05.000Z | docs/conf.py | mlibrary/keycard | a91922a0bed8e58f277acde79b050e67dfc1a753 | [
"BSD-3-Clause"
] | 1 | 2018-04-09T23:44:51.000Z | 2018-04-09T23:44:51.000Z | # -*- coding: utf-8 -*-
import guzzle_sphinx_theme
from recommonmark.parser import CommonMarkParser
# -- General configuration ------------------------------------------------
project = u'Keycard'
copyright = u'2018, Regents of the University of Michigan'
author = u'Noah Botimer'
version = u'0.2.4'
release = u'0.2.4'... | 22.595745 | 75 | 0.632768 | 121 | 1,062 | 5.289256 | 0.603306 | 0.075 | 0.10625 | 0.0125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012236 | 0.153484 | 1,062 | 46 | 76 | 23.086957 | 0.699666 | 0.214689 | 0 | 0 | 0 | 0 | 0.288647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.064516 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6f397e507056289717eaa16d0283482c1ef5f4e | 2,970 | py | Python | tests/integrations/test_bottle.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | 76 | 2015-03-01T11:46:57.000Z | 2022-02-18T10:57:44.000Z | tests/integrations/test_bottle.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | 119 | 2015-01-14T11:53:08.000Z | 2022-03-30T08:22:50.000Z | tests/integrations/test_bottle.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | 46 | 2015-02-09T23:50:57.000Z | 2022-01-06T16:04:40.000Z | from webtest import TestApp
import bottle
from bottle import route, template
import bugsnag
from bugsnag.wsgi.middleware import BugsnagMiddleware
from tests.utils import IntegrationTest
class TestBottle(IntegrationTest):
def setUp(self):
super(TestBottle, self).setUp()
bugsnag.configure(endpoint=... | 37.594937 | 75 | 0.619529 | 307 | 2,970 | 5.918567 | 0.29316 | 0.099064 | 0.059439 | 0.066043 | 0.625206 | 0.614199 | 0.488718 | 0.488718 | 0.488718 | 0.488718 | 0 | 0.01819 | 0.241077 | 2,970 | 78 | 76 | 38.076923 | 0.787933 | 0 | 0 | 0.484375 | 0 | 0 | 0.156566 | 0 | 0 | 0 | 0 | 0 | 0.296875 | 1 | 0.109375 | false | 0 | 0.09375 | 0.015625 | 0.234375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6f43762f841c177bcebca927c3b07f71f1acd71 | 21,087 | py | Python | snappy_pipeline/workflows/somatic_variant_filtration/__init__.py | eudesbarbosa/snappy-pipeline | 34f9abd999499469f9d488b715c861b03e79d3db | [
"MIT"
] | 5 | 2021-02-26T10:39:56.000Z | 2021-12-23T07:53:26.000Z | snappy_pipeline/workflows/somatic_variant_filtration/__init__.py | eudesbarbosa/snappy-pipeline | 34f9abd999499469f9d488b715c861b03e79d3db | [
"MIT"
] | 93 | 2021-02-22T11:23:59.000Z | 2022-03-31T09:58:39.000Z | snappy_pipeline/workflows/somatic_variant_filtration/__init__.py | eudesbarbosa/snappy-pipeline | 34f9abd999499469f9d488b715c861b03e79d3db | [
"MIT"
] | 3 | 2021-02-22T11:44:59.000Z | 2021-06-21T19:33:53.000Z | # -*- coding: utf-8 -*-
"""Implementation of the ``somatic_variant_filtration`` step
=====================
Default Configuration
=====================
The default configuration is as follows.
.. include:: DEFAULT_CONFIG_somatic_variant_filtration.rst
=========
Important
=========
Because the EB Filter step is so t... | 37.790323 | 100 | 0.627685 | 2,458 | 21,087 | 5.114727 | 0.17738 | 0.03118 | 0.021158 | 0.031021 | 0.417276 | 0.384505 | 0.31936 | 0.281737 | 0.265749 | 0.226933 | 0 | 0.007508 | 0.267274 | 21,087 | 557 | 101 | 37.858169 | 0.806161 | 0.141841 | 0 | 0.270471 | 0 | 0 | 0.321024 | 0.134769 | 0 | 0 | 0 | 0.005386 | 0.029777 | 1 | 0.086849 | false | 0.002481 | 0.027295 | 0 | 0.186104 | 0.004963 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6f68264ab402d31bf82d19fd43f6fff3290e562 | 983 | py | Python | src/scrapeacademy/__init__.py | sojin-project/scrape-academy | 5a18f5b497a6b3b85049ec1a4451b6a333e84353 | [
"MIT"
] | null | null | null | src/scrapeacademy/__init__.py | sojin-project/scrape-academy | 5a18f5b497a6b3b85049ec1a4451b6a333e84353 | [
"MIT"
] | null | null | null | src/scrapeacademy/__init__.py | sojin-project/scrape-academy | 5a18f5b497a6b3b85049ec1a4451b6a333e84353 | [
"MIT"
] | null | null | null | __version__ = "0.0.1"
import asyncio
import logging
from contextvars import ContextVar
from pathlib import Path
from typing import Any, Awaitable, Union, cast
from .context import Context
logger = logging.getLogger(__name__)
class wrapper:
def __getattr__(self, name: str) -> Any:
return getattr(_contex... | 21.369565 | 68 | 0.65412 | 122 | 983 | 5.04918 | 0.401639 | 0.048701 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003942 | 0.225839 | 983 | 45 | 69 | 21.844444 | 0.805519 | 0 | 0 | 0.0625 | 0 | 0 | 0.032553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0.03125 | 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 |
b6f6cba04c95192eedb8de4a8cd97764c5fedc28 | 15,739 | py | Python | app.py | explojoe/elektronika_bot | a27c75ecfe677dcefeb5bb492435e7011bd15ef4 | [
"MIT"
] | null | null | null | app.py | explojoe/elektronika_bot | a27c75ecfe677dcefeb5bb492435e7011bd15ef4 | [
"MIT"
] | null | null | null | app.py | explojoe/elektronika_bot | a27c75ecfe677dcefeb5bb492435e7011bd15ef4 | [
"MIT"
] | null | null | null | import os
import random
import time
import json
import datetime
from random import randint
from pyfiglet import figlet_format
from flask import Flask, g, session, redirect, request, url_for, jsonify
from requests_oauthlib import OAuth2Session
OAUTH2_CLIENT_ID = '456608429843283998' #os.environ['OAUTH2_CLIENT_ID']
OAUT... | 32.995807 | 165 | 0.595781 | 1,829 | 15,739 | 5.06561 | 0.200109 | 0.089153 | 0.062385 | 0.075985 | 0.556287 | 0.511171 | 0.480842 | 0.45116 | 0.433028 | 0.417809 | 0 | 0.020837 | 0.301735 | 15,739 | 476 | 166 | 33.065126 | 0.822202 | 0.03844 | 0 | 0.502703 | 0 | 0.005405 | 0.183069 | 0.006556 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005405 | false | 0.018919 | 0.027027 | 0 | 0.124324 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6f74da2f5764dcc1d735f4668f8bb729ddbbf60 | 1,614 | py | Python | pysal/core/IOHandlers/tests/test_gwt.py | cubensys/pysal | 8d50990f6e6603ba79ae1a887a20a1e3a0734e51 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | pysal/core/IOHandlers/tests/test_gwt.py | cubensys/pysal | 8d50990f6e6603ba79ae1a887a20a1e3a0734e51 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | pysal/core/IOHandlers/tests/test_gwt.py | cubensys/pysal | 8d50990f6e6603ba79ae1a887a20a1e3a0734e51 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2021-07-19T01:46:17.000Z | 2021-07-19T01:46:17.000Z | import unittest
import pysal
from pysal.core.IOHandlers.gwt import GwtIO
import tempfile
import os
import warnings
class test_GwtIO(unittest.TestCase):
def setUp(self):
self.test_file = test_file = pysal.examples.get_path('juvenile.gwt')
self.obj = GwtIO(test_file, 'r')
def test_close(self):
... | 29.345455 | 107 | 0.619579 | 218 | 1,614 | 4.481651 | 0.449541 | 0.057318 | 0.033777 | 0.040942 | 0.032753 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022708 | 0.263321 | 1,614 | 54 | 108 | 29.888889 | 0.798991 | 0.193928 | 0 | 0.153846 | 0 | 0 | 0.021672 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 1 | 0.128205 | false | 0 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6f7870471a4c3b9fc2d6873b860248bf22dc993 | 3,036 | py | Python | scrnatools/qc/_filter_cells.py | j-germino/sc-rna-tools-git | 4e9a4fce40f6a303a1869e93a6e52e8db663bd06 | [
"BSD-3-Clause"
] | null | null | null | scrnatools/qc/_filter_cells.py | j-germino/sc-rna-tools-git | 4e9a4fce40f6a303a1869e93a6e52e8db663bd06 | [
"BSD-3-Clause"
] | null | null | null | scrnatools/qc/_filter_cells.py | j-germino/sc-rna-tools-git | 4e9a4fce40f6a303a1869e93a6e52e8db663bd06 | [
"BSD-3-Clause"
] | null | null | null | """
Filters cells based on gene number, total counts, and % mitochondrial
From sc-rna-tools package
Created on Mon Jan 10 15:57:46 2022
@author: joe germino (joe.germino@ucsf.edu)
"""
# external imports
from anndata import AnnData
from typing import Tuple, Optional
# sc-rna-tools package imports
from .._configs imp... | 37.02439 | 120 | 0.675231 | 404 | 3,036 | 4.873762 | 0.29703 | 0.105637 | 0.085323 | 0.105637 | 0.425597 | 0.408329 | 0.358558 | 0.326054 | 0.283393 | 0.197054 | 0 | 0.010815 | 0.208169 | 3,036 | 81 | 121 | 37.481481 | 0.808236 | 0.458169 | 0 | 0.135135 | 0 | 0 | 0.125082 | 0.064178 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.135135 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6f965dfcb63aec2b920f05b495039fb46c693bf | 6,560 | py | Python | SOGcommand/infile_processor.py | SalishSeaCast/SOG | e8c914ea743076829d848e7d90df9b5e383e8b53 | [
"Apache-2.0"
] | null | null | null | SOGcommand/infile_processor.py | SalishSeaCast/SOG | e8c914ea743076829d848e7d90df9b5e383e8b53 | [
"Apache-2.0"
] | null | null | null | SOGcommand/infile_processor.py | SalishSeaCast/SOG | e8c914ea743076829d848e7d90df9b5e383e8b53 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""SOG infile processor.
Do various operations on input files for the the SOG bio-physical
model of deep estuaries. Most notably, convert new YAML infiles into
the old Fortran-style infiles that SOG reads.
This module provides services to the SOG command processor.
:Author: Doug Latornell <dj... | 32.8 | 79 | 0.676829 | 907 | 6,560 | 4.702315 | 0.259096 | 0.107855 | 0.02626 | 0.015944 | 0.370692 | 0.325205 | 0.295662 | 0.240328 | 0.240328 | 0.223447 | 0 | 0.004261 | 0.24878 | 6,560 | 199 | 80 | 32.964824 | 0.861201 | 0.504878 | 0 | 0.277108 | 0 | 0 | 0.059786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060241 | false | 0.012048 | 0.120482 | 0 | 0.228916 | 0.072289 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6fbdea6cb4c3770d8a7144d06603a4a9da8d80a | 3,330 | py | Python | tensorflow/python/tpu/tpu_embedding_v2_test_lib.py | katherinekowalski/tensorflow | 26e92c016a0a1fb76c3651070b859a97e7623256 | [
"Apache-2.0"
] | 2 | 2021-01-20T18:00:03.000Z | 2021-01-21T13:34:56.000Z | tensorflow/python/tpu/tpu_embedding_v2_test_lib.py | katherinekowalski/tensorflow | 26e92c016a0a1fb76c3651070b859a97e7623256 | [
"Apache-2.0"
] | null | null | null | tensorflow/python/tpu/tpu_embedding_v2_test_lib.py | katherinekowalski/tensorflow | 26e92c016a0a1fb76c3651070b859a97e7623256 | [
"Apache-2.0"
] | 1 | 2020-10-15T12:06:40.000Z | 2020-10-15T12:06:40.000Z | # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 34.329897 | 80 | 0.612913 | 477 | 3,330 | 4.125786 | 0.30608 | 0.019309 | 0.042683 | 0.057927 | 0.221545 | 0.199187 | 0.190041 | 0.109756 | 0.086382 | 0.086382 | 0 | 0.059226 | 0.254655 | 3,330 | 96 | 81 | 34.6875 | 0.733683 | 0.351652 | 0 | 0.113636 | 0 | 0 | 0.018536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.159091 | 0 | 0.204545 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6ffc4004aece2db3208e45e2a34bebeaa9566bf | 141,004 | py | Python | code/tmp_rtrip/test/test_buffer.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | 24 | 2018-01-23T05:28:40.000Z | 2021-04-13T20:52:59.000Z | code/tmp_rtrip/test/test_buffer.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | 17 | 2017-12-21T18:32:31.000Z | 2018-12-18T17:09:50.000Z | code/tmp_rtrip/test/test_buffer.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | null | null | null | import contextlib
import unittest
from test import support
from itertools import permutations, product
from random import randrange, sample, choice
import warnings
import sys, array, io
from decimal import Decimal
from fractions import Fraction
try:
from _testbuffer import *
except ImportError:
ndarray = None
t... | 41.630942 | 105 | 0.530304 | 17,632 | 141,004 | 4.141901 | 0.03885 | 0.086061 | 0.030125 | 0.014569 | 0.679515 | 0.604108 | 0.536601 | 0.482651 | 0.44186 | 0.408271 | 0 | 0.043371 | 0.328913 | 141,004 | 3,386 | 106 | 41.643237 | 0.728404 | 0.026574 | 0 | 0.480323 | 0 | 0.000323 | 0.011346 | 0 | 0 | 0 | 0 | 0 | 0.273548 | 1 | 0.043226 | false | 0.000968 | 0.005484 | 0.002258 | 0.076452 | 0.000645 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e07d4a290a89738baa85c1f2a65b178b1380804 | 3,388 | py | Python | processing/geoboundaries/standardize/recode.py | fieldmaps/edge-matcher | d5aac4b1fbd5da3518b5a33fb6ddbe4e936af3bd | [
"MIT"
] | 1 | 2021-11-10T12:59:01.000Z | 2021-11-10T12:59:01.000Z | processing/geoboundaries/standardize/recode.py | fieldmaps/admin-boundaries | 6ec585174656cdc1d209c5ccd31087b7aa6d9929 | [
"MIT"
] | null | null | null | processing/geoboundaries/standardize/recode.py | fieldmaps/admin-boundaries | 6ec585174656cdc1d209c5ccd31087b7aa6d9929 | [
"MIT"
] | null | null | null | import pandas as pd
from .utils import logging, filter_config, DATABASE
logger = logging.getLogger(__name__)
con = f'postgresql:///{DATABASE}'
def get_ids(level):
result = []
for l in range(level, -1, -1):
result += [f'adm{l}_id', f'adm{l}_name']
return ','.join(result)
def rename_id(df, level)... | 29.719298 | 78 | 0.556375 | 539 | 3,388 | 3.276438 | 0.200371 | 0.043035 | 0.039638 | 0.019819 | 0.396376 | 0.337486 | 0.323896 | 0.286523 | 0.286523 | 0.286523 | 0 | 0.015164 | 0.279811 | 3,388 | 113 | 79 | 29.982301 | 0.708607 | 0 | 0 | 0.333333 | 0 | 0 | 0.182113 | 0.036895 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.020833 | 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 |
8e087c3aba36d8a1da8af28ad2d6df931d6e4180 | 1,112 | py | Python | app/vehicle/models.py | ab7289-tandon-nyu/csgy6083_PDS_Project | d2b7d22274dcabbb6ae35c17a8ffd06498f3634f | [
"MIT"
] | null | null | null | app/vehicle/models.py | ab7289-tandon-nyu/csgy6083_PDS_Project | d2b7d22274dcabbb6ae35c17a8ffd06498f3634f | [
"MIT"
] | null | null | null | app/vehicle/models.py | ab7289-tandon-nyu/csgy6083_PDS_Project | d2b7d22274dcabbb6ae35c17a8ffd06498f3634f | [
"MIT"
] | null | null | null | from app.db import DTOBase
class Vehicle(DTOBase):
__id_field__ = "vin"
__display__ = "display_name"
def __init__(
self,
make: str,
model: str,
year: int,
state: str,
policy_id: int = -1,
vin: str = None,
):
self.make = make
sel... | 20.981132 | 85 | 0.563849 | 131 | 1,112 | 4.503817 | 0.267176 | 0.047458 | 0.055932 | 0.050847 | 0.064407 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001346 | 0.331835 | 1,112 | 52 | 86 | 21.384615 | 0.792732 | 0 | 0 | 0.25 | 0 | 0 | 0.083633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.025 | 0.05 | 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 |
8e098d9290daa9ce8fe636df83ecdb38807d6eed | 484 | py | Python | setup.py | JesDanis/Sweaden_Prueba | d028c599eabfe7534eff3113dcaa4aba42254a97 | [
"MIT"
] | null | null | null | setup.py | JesDanis/Sweaden_Prueba | d028c599eabfe7534eff3113dcaa4aba42254a97 | [
"MIT"
] | null | null | null | setup.py | JesDanis/Sweaden_Prueba | d028c599eabfe7534eff3113dcaa4aba42254a97 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
with open('requirements.txt') as f:
install_requires = f.read().strip().split('\n')
# get version from __version__ variable in apptest/__init__.py
from apptest import __version__ as version
setup(
name='apptest',
version=version,
description='prueba',
author='orlando ... | 24.2 | 62 | 0.783058 | 64 | 484 | 5.578125 | 0.671875 | 0.12605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004619 | 0.105372 | 484 | 19 | 63 | 25.473684 | 0.819861 | 0.123967 | 0 | 0 | 0 | 0 | 0.172986 | 0.063981 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e0b0e23dd2e90df198a864385d478cf3eb2e293 | 5,448 | py | Python | flask_helper/_flask.py | meisanggou/JYFlask | c23c659ee60dfc0f9ed4ea47c6a3b018d318100c | [
"MIT"
] | 2 | 2018-11-15T11:18:13.000Z | 2020-05-16T22:12:10.000Z | flask_helper/_flask.py | meisanggou/Flask-Helper | c23c659ee60dfc0f9ed4ea47c6a3b018d318100c | [
"MIT"
] | null | null | null | flask_helper/_flask.py | meisanggou/Flask-Helper | c23c659ee60dfc0f9ed4ea47c6a3b018d318100c | [
"MIT"
] | 1 | 2018-05-07T01:11:23.000Z | 2018-05-07T01:11:23.000Z | # !/usr/bin/env python
# coding: utf-8
from flask import Flask
import os
from flask_helper.exception import InvalidHookClass
from flask_helper.flask_hook import FlaskHook
from flask_helper.hooks.cors_hook import CorsHook
from flask_helper.hooks.handle_30x_hook import Handle30xHook
from flask_helper.hooks.real_ip_hook ... | 37.572414 | 76 | 0.641887 | 690 | 5,448 | 4.794203 | 0.181159 | 0.04081 | 0.045345 | 0.024184 | 0.247279 | 0.093712 | 0.055623 | 0 | 0 | 0 | 0 | 0.006497 | 0.265419 | 5,448 | 144 | 77 | 37.833333 | 0.82009 | 0.010646 | 0 | 0.067797 | 0 | 0 | 0.036762 | 0.007798 | 0 | 0 | 0 | 0 | 0 | 1 | 0.110169 | false | 0 | 0.144068 | 0 | 0.372881 | 0.059322 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e0ce2cde6afdfd6d125f65d229bd7d0e3594dc9 | 5,802 | py | Python | Functions/UpdateSpreadsheet/update-spreadsheet.py | bretterism/CommunityBot | c25db66ae09b79628123f9850ab59c7cbe7b7984 | [
"MIT"
] | null | null | null | Functions/UpdateSpreadsheet/update-spreadsheet.py | bretterism/CommunityBot | c25db66ae09b79628123f9850ab59c7cbe7b7984 | [
"MIT"
] | null | null | null | Functions/UpdateSpreadsheet/update-spreadsheet.py | bretterism/CommunityBot | c25db66ae09b79628123f9850ab59c7cbe7b7984 | [
"MIT"
] | null | null | null | import base64
import boto3
import datetime
import gspread
import json
import logging
from oauth2client.service_account import ServiceAccountCredentials
logger = logging.getLogger()
logger.setLevel(logging.INFO)
def get_client_secret(filename):
"""Get the client secret from encrypted file. Returns decrypted json o... | 32.413408 | 181 | 0.777146 | 794 | 5,802 | 5.440806 | 0.255668 | 0.027778 | 0.017361 | 0.027778 | 0.098611 | 0.022685 | 0 | 0 | 0 | 0 | 0 | 0.004353 | 0.128921 | 5,802 | 178 | 182 | 32.595506 | 0.850416 | 0.154947 | 0 | 0.017857 | 0 | 0 | 0.105328 | 0.00576 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098214 | false | 0 | 0.0625 | 0 | 0.214286 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e0d8add1a61f1897a6bf0bdee26d14f7d06d4d5 | 543 | py | Python | tests/testing_utils.py | josephsv96/crate_classifier | 02a0b55d5714f1e40923b007526c25ffd0c4e098 | [
"MIT"
] | 1 | 2020-11-18T11:30:42.000Z | 2020-11-18T11:30:42.000Z | tests/testing_utils.py | josephsv96/crate_classifier | 02a0b55d5714f1e40923b007526c25ffd0c4e098 | [
"MIT"
] | 7 | 2021-04-30T21:39:14.000Z | 2022-01-13T03:32:59.000Z | tests/testing_utils.py | josephsv96/crate_classifier | 02a0b55d5714f1e40923b007526c25ffd0c4e098 | [
"MIT"
] | null | null | null | # Helper Functions
try:
from src.utils import load_json
except ImportError as error:
print(f"Error: {error}; Local modules not found")
except Exception as exception:
print(exception)
def load_params_1():
"""Returns source path of images and number of exposures
"""
PKG_1_PARAMS = load_json("con... | 22.625 | 60 | 0.71639 | 81 | 543 | 4.567901 | 0.432099 | 0.064865 | 0.07027 | 0.102703 | 0.383784 | 0.259459 | 0.259459 | 0.259459 | 0.259459 | 0.259459 | 0 | 0.018349 | 0.197053 | 543 | 23 | 61 | 23.608696 | 0.830275 | 0.248619 | 0 | 0 | 0 | 0 | 0.219144 | 0.120907 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e10e72463d04064e483ee31cb51f2fbc3e11508 | 380 | py | Python | setup.py | gonicus/clacks | da579f0acc4e48cf2e9451417ac6792282cf7ab6 | [
"ZPL-2.1"
] | 2 | 2015-01-26T07:15:19.000Z | 2015-11-09T13:42:11.000Z | setup.py | gonicus/clacks | da579f0acc4e48cf2e9451417ac6792282cf7ab6 | [
"ZPL-2.1"
] | null | null | null | setup.py | gonicus/clacks | da579f0acc4e48cf2e9451417ac6792282cf7ab6 | [
"ZPL-2.1"
] | null | null | null | #!/usr/bin/env python
import os
import sys
modules = ['common',
'agent',
'dbus',
'client',
'shell',
'utils']
for module in modules:
os.system("cd %s && ./setup.py %s" % (module, " ".join(sys.argv[1:])))
for root, dirs, files in os.walk("plugins"):
if "setup.py" in files:
os.system... | 21.111111 | 76 | 0.544737 | 56 | 380 | 3.696429 | 0.553571 | 0.101449 | 0.096618 | 0.10628 | 0.183575 | 0.183575 | 0.183575 | 0 | 0 | 0 | 0 | 0.00678 | 0.223684 | 380 | 17 | 77 | 22.352941 | 0.694915 | 0.052632 | 0 | 0 | 0 | 0 | 0.256267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e1396c831f746a08108e2cb3118687406bb55ae | 546 | py | Python | force_arp.py | t-amorim/network_package | 863e684b012553d174ad5b5582fb43b33aba9c3e | [
"MIT"
] | null | null | null | force_arp.py | t-amorim/network_package | 863e684b012553d174ad5b5582fb43b33aba9c3e | [
"MIT"
] | null | null | null | force_arp.py | t-amorim/network_package | 863e684b012553d174ad5b5582fb43b33aba9c3e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Thomas AMORIM"
__credits__ = ["Thomas Amorim", "Pierre-François Bonnefoi" "Scapy"]
__license__ = "MIT"
__version__ = "1.1"
__status__ = "OK"
from scapy.all import *
import sys
def force_arp(ipslash):
p = Ether(dst="ff:ff:ff:ff:ff:ff", src="00:03:24:45:11:34... | 26 | 123 | 0.663004 | 98 | 546 | 3.367347 | 0.571429 | 0.060606 | 0.072727 | 0.072727 | 0.169697 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0.120833 | 0.120879 | 546 | 21 | 124 | 26 | 0.566667 | 0.076923 | 0 | 0 | 0 | 0 | 0.32008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e1afbc263f6d797c000a3851ad609f3c38c6432 | 747 | py | Python | addons/omi-blender-gltf-main/reload_package.py | V-Sekai/V-Sekai-Blender-tools | 3473ad4abb737756290a9007273519460742960d | [
"MIT"
] | 2 | 2021-12-21T16:38:58.000Z | 2022-01-08T00:56:35.000Z | addons/omi-blender-gltf-main/reload_package.py | V-Sekai/V-Sekai-Blender-game-tools | 3473ad4abb737756290a9007273519460742960d | [
"MIT"
] | 1 | 2022-01-29T05:46:50.000Z | 2022-01-29T05:46:50.000Z | addons/omi-blender-gltf-main/reload_package.py | V-Sekai/V-Sekai-Blender-game-tools | 3473ad4abb737756290a9007273519460742960d | [
"MIT"
] | 1 | 2021-11-07T19:41:34.000Z | 2021-11-07T19:41:34.000Z | # from io_scene_gltf2
# Copyright 2018-2019 The glTF-Blender-IO authors.
# Apache 2.0
#
# Script reloading (if the user calls 'Reload Scripts' from Blender)
#
def reload_package(module_dict_main):
import importlib
from pathlib import Path
def reload_package_recursive(current_dir, module_dict):
for... | 31.125 | 79 | 0.677376 | 100 | 747 | 4.73 | 0.49 | 0.12685 | 0.139535 | 0.07611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019264 | 0.235609 | 747 | 23 | 80 | 32.478261 | 0.809107 | 0.195448 | 0 | 0 | 0 | 0 | 0.01855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e1e0c186a840151723210baf4fa4bdbf7361239 | 7,938 | py | Python | archives/nnAvicaching_find_rewards_without_lp.py | anmolkabra/avicaching-summ17 | 3b85c1b70adcbe5d5b2764195090b28093081b1f | [
"MIT"
] | null | null | null | archives/nnAvicaching_find_rewards_without_lp.py | anmolkabra/avicaching-summ17 | 3b85c1b70adcbe5d5b2764195090b28093081b1f | [
"MIT"
] | null | null | null | archives/nnAvicaching_find_rewards_without_lp.py | anmolkabra/avicaching-summ17 | 3b85c1b70adcbe5d5b2764195090b28093081b1f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# DEPRECATED -- model didn't work. Was trying to constrain rewards differently.
# Beware -- lack of documentation. Refer to nnAvicaching_find_rewards.py for
# support
from __future__ import print_function
import torch, torch.nn as nn, torch.nn.functional as torchfun, torch.optim as optim
from to... | 45.102273 | 123 | 0.599899 | 1,077 | 7,938 | 4.267409 | 0.264624 | 0.027415 | 0.051784 | 0.015666 | 0.084856 | 0.049608 | 0.01262 | 0.01262 | 0.01262 | 0 | 0 | 0.020276 | 0.16125 | 7,938 | 176 | 124 | 45.102273 | 0.670021 | 0.240867 | 0 | 0.027523 | 0 | 0.009174 | 0.220845 | 0.038874 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045872 | false | 0 | 0.045872 | 0 | 0.137615 | 0.06422 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e1eb2172438f2b56adc51f147f65e93bc5948ab | 8,094 | py | Python | orchestrator/utils/functional.py | florisie/orchestrator-core | 7a5a997fc809cdf53dc942d1ee1fa945de4eb4d8 | [
"Apache-2.0"
] | 15 | 2021-02-18T15:30:25.000Z | 2022-02-19T18:57:51.000Z | orchestrator/utils/functional.py | florisie/orchestrator-core | 7a5a997fc809cdf53dc942d1ee1fa945de4eb4d8 | [
"Apache-2.0"
] | 70 | 2021-02-24T17:59:23.000Z | 2022-03-31T08:24:56.000Z | orchestrator/utils/functional.py | florisie/orchestrator-core | 7a5a997fc809cdf53dc942d1ee1fa945de4eb4d8 | [
"Apache-2.0"
] | 6 | 2021-02-23T18:10:15.000Z | 2022-02-15T16:07:38.000Z | # Copyright 2019-2020 SURF.
# 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, soft... | 33.308642 | 142 | 0.657401 | 1,195 | 8,094 | 4.400837 | 0.307113 | 0.031945 | 0.030424 | 0.03803 | 0.087659 | 0.062559 | 0.047347 | 0.042974 | 0.016733 | 0.016733 | 0 | 0.033851 | 0.244502 | 8,094 | 242 | 143 | 33.446281 | 0.826165 | 0.704102 | 0 | 0.047619 | 0 | 0.02381 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.095238 | 0 | 0.452381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e218d1e4830fc81eed6cc871e828febdb5d8a5f | 4,884 | py | Python | cscs-checks/apps/gromacs/gromacs_check.py | ajocksch/reframe | f701ca5075d78cef2dbf9dc8b754bf70b1a04036 | [
"BSD-3-Clause"
] | null | null | null | cscs-checks/apps/gromacs/gromacs_check.py | ajocksch/reframe | f701ca5075d78cef2dbf9dc8b754bf70b1a04036 | [
"BSD-3-Clause"
] | null | null | null | cscs-checks/apps/gromacs/gromacs_check.py | ajocksch/reframe | f701ca5075d78cef2dbf9dc8b754bf70b1a04036 | [
"BSD-3-Clause"
] | null | null | null | import itertools
import os
import reframe as rfm
import reframe.utility.sanity as sn
class GromacsBaseCheck(rfm.RunOnlyRegressionTest):
def __init__(self, output_file):
super().__init__()
self.valid_prog_environs = ['PrgEnv-gnu']
self.executable = 'gmx_mpi'
# Reset sources dir r... | 31.509677 | 79 | 0.524775 | 550 | 4,884 | 4.410909 | 0.310909 | 0.03751 | 0.054411 | 0.037098 | 0.340066 | 0.314509 | 0.241962 | 0.229596 | 0.229596 | 0.198269 | 0 | 0.035736 | 0.341114 | 4,884 | 154 | 80 | 31.714286 | 0.718148 | 0.022523 | 0 | 0.284553 | 0 | 0.00813 | 0.168309 | 0.025781 | 0 | 0 | 0 | 0.006494 | 0.01626 | 1 | 0.056911 | false | 0 | 0.03252 | 0 | 0.146341 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e21a21a2e04fd87d50fcbd6fe1e05543f8a0c63 | 3,490 | py | Python | tests/test_serialization.py | andsteing/being | 0d0dca71edc512df47fe5ff3bea692e728f90924 | [
"MIT"
] | 2 | 2021-11-11T12:16:43.000Z | 2022-01-13T06:06:20.000Z | tests/test_serialization.py | andsteing/being | 0d0dca71edc512df47fe5ff3bea692e728f90924 | [
"MIT"
] | 5 | 2022-01-13T08:01:54.000Z | 2022-02-22T12:28:02.000Z | tests/test_serialization.py | andsteing/being | 0d0dca71edc512df47fe5ff3bea692e728f90924 | [
"MIT"
] | 3 | 2022-01-11T18:16:35.000Z | 2022-01-13T13:14:26.000Z | import unittest
import enum
from typing import NamedTuple
import numpy as np
from numpy.testing import assert_equal
from scipy.interpolate import PPoly, CubicSpline, BPoly
from being.serialization import (
ENUM_LOOKUP, EOT, NAMED_TUPLE_LOOKUP, FlyByDecoder, dumps, enum_from_dict,
enum_to_dict, loads, named_tu... | 28.842975 | 83 | 0.601719 | 452 | 3,490 | 4.418142 | 0.25 | 0.090135 | 0.045068 | 0.044066 | 0.27992 | 0.224337 | 0.161242 | 0.064096 | 0.064096 | 0.064096 | 0 | 0.031141 | 0.263897 | 3,490 | 120 | 84 | 29.083333 | 0.746205 | 0 | 0 | 0.113636 | 0 | 0 | 0.049284 | 0 | 0 | 0 | 0 | 0 | 0.261364 | 1 | 0.090909 | false | 0 | 0.079545 | 0 | 0.193182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e267a431f39688558b66516192bbde659a69318 | 3,056 | py | Python | delta/utils/solver/solver_utils.py | hchang000/delta | 89320bd538e360d939c50d9f303e81554f6ce7ac | [
"Apache-2.0"
] | 1 | 2019-07-15T11:42:38.000Z | 2019-07-15T11:42:38.000Z | delta/utils/solver/solver_utils.py | hchang000/delta | 89320bd538e360d939c50d9f303e81554f6ce7ac | [
"Apache-2.0"
] | null | null | null | delta/utils/solver/solver_utils.py | hchang000/delta | 89320bd538e360d939c50d9f303e81554f6ce7ac | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LI... | 38.683544 | 80 | 0.717932 | 424 | 3,056 | 4.962264 | 0.403302 | 0.03327 | 0.038023 | 0.015209 | 0.026616 | 0.026616 | 0 | 0 | 0 | 0 | 0 | 0.003421 | 0.139071 | 3,056 | 78 | 81 | 39.179487 | 0.796275 | 0.30072 | 0 | 0 | 0 | 0 | 0.141081 | 0.026781 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.066667 | 0 | 0.244444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e2a7ecb5e30e765a31e831a79df046ffd35183a | 5,255 | py | Python | splparser/parser.py | lowell80/splparser | 2b33d74d59565cc53ae47452126621300dba9ed8 | [
"BSD-3-Clause"
] | 31 | 2015-12-02T15:41:06.000Z | 2022-03-16T22:27:23.000Z | splparser/parser.py | lowell80/splparser | 2b33d74d59565cc53ae47452126621300dba9ed8 | [
"BSD-3-Clause"
] | 1 | 2021-06-24T11:23:00.000Z | 2021-06-24T11:23:00.000Z | splparser/parser.py | lowell80/splparser | 2b33d74d59565cc53ae47452126621300dba9ed8 | [
"BSD-3-Clause"
] | 15 | 2015-12-10T16:48:20.000Z | 2022-02-26T18:12:44.000Z | #!/usr/bin/env python
import imp
import logging
import os
import ply.yacc
LOGDIR = 'logs'
logging.getLogger().setLevel(logging.DEBUG)
class SPLParser(object):
"""Represents a parser object that can parse SPL queries.
You should not need to create one of these. Simply import
parse from the splparser modu... | 38.639706 | 217 | 0.577735 | 582 | 5,255 | 5.113402 | 0.286942 | 0.066532 | 0.033602 | 0.038642 | 0.320228 | 0.276546 | 0.244288 | 0.22379 | 0.171371 | 0.171371 | 0 | 0 | 0.354139 | 5,255 | 135 | 218 | 38.925926 | 0.876841 | 0.294386 | 0 | 0.433735 | 0 | 0 | 0.025985 | 0 | 0 | 0 | 0 | 0.007407 | 0 | 1 | 0.048193 | false | 0.024096 | 0.048193 | 0 | 0.168675 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e2b126355edbe84a1de3d96f2ced5993bbd3398 | 1,529 | py | Python | lib/cache.py | rx007/cheat.sh | 0df9db42214dc0bda0f474171583dcedbbfe5717 | [
"MIT"
] | 28,992 | 2017-05-24T12:21:03.000Z | 2022-03-31T09:35:08.000Z | lib/cache.py | rx007/cheat.sh | 0df9db42214dc0bda0f474171583dcedbbfe5717 | [
"MIT"
] | 274 | 2017-05-24T17:14:48.000Z | 2022-03-31T12:50:14.000Z | lib/cache.py | rx007/cheat.sh | 0df9db42214dc0bda0f474171583dcedbbfe5717 | [
"MIT"
] | 1,578 | 2017-05-24T20:40:41.000Z | 2022-03-31T15:23:42.000Z | """
Cache implementation.
Currently only two types of cache are allowed:
* "none" cache switched off
* "redis" use redis for cache
Configuration parameters:
cache.type = redis | none
cache.redis.db
cache.redis.host
cache.redis.port
"""
import os
import json
from config import CONFIG
_RE... | 20.662162 | 55 | 0.590582 | 188 | 1,529 | 4.675532 | 0.308511 | 0.125142 | 0.095563 | 0.086462 | 0.21843 | 0.193402 | 0.193402 | 0.159272 | 0.159272 | 0.159272 | 0 | 0 | 0.286462 | 1,529 | 73 | 56 | 20.945205 | 0.805683 | 0.257031 | 0 | 0.27027 | 0 | 0 | 0.11819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0.027027 | 0.108108 | 0 | 0.27027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e2b2151bad3cd55a3b085be74899c264fdd8090 | 4,614 | py | Python | scripts/consensus.py | juanjo75es/s-aligner | 0e3dd3425ce40d5c2e062410f308300437f272b2 | [
"MIT"
] | null | null | null | scripts/consensus.py | juanjo75es/s-aligner | 0e3dd3425ce40d5c2e062410f308300437f272b2 | [
"MIT"
] | null | null | null | scripts/consensus.py | juanjo75es/s-aligner | 0e3dd3425ce40d5c2e062410f308300437f272b2 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
from Bio import SeqIO
import argparse
import sys
from argparse import RawTextHelpFormatter
import numpy as np
from collections import namedtuple
MySNP = namedtuple("MySNP", "pos prev new")
snps=[]
def print_vnc(reference, snps, out):
f = open(out+".vcf", "w")
... | 35.221374 | 127 | 0.504551 | 561 | 4,614 | 4.067736 | 0.285205 | 0.042068 | 0.030675 | 0.032866 | 0.218668 | 0.124452 | 0.104294 | 0 | 0 | 0 | 0 | 0.009065 | 0.306675 | 4,614 | 131 | 128 | 35.221374 | 0.704283 | 0.03186 | 0 | 0.077586 | 0 | 0 | 0.241093 | 0.056688 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0.008621 | 0.051724 | 0 | 0.068966 | 0.060345 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e2cb35cee027810b3a9f3b5a2585ec05cb53c10 | 3,287 | py | Python | scripts/backup_old/metadata.py | RodrigoNaves/ginan-bitbucket-update-tests | 4bd5cc0a9dd0e94b1c2d8b35385e128404009b0c | [
"Apache-2.0"
] | 73 | 2021-07-08T23:35:08.000Z | 2022-03-31T15:17:58.000Z | scripts/backup_old/metadata.py | RodrigoNaves/ginan-bitbucket-update-tests | 4bd5cc0a9dd0e94b1c2d8b35385e128404009b0c | [
"Apache-2.0"
] | 5 | 2021-09-27T14:27:32.000Z | 2022-03-21T23:50:02.000Z | scripts/backup_old/metadata.py | RodrigoNaves/ginan-bitbucket-update-tests | 4bd5cc0a9dd0e94b1c2d8b35385e128404009b0c | [
"Apache-2.0"
] | 39 | 2021-07-12T05:42:51.000Z | 2022-03-31T15:15:34.000Z | import requests
import json
import argparse
import xml.etree.ElementTree as ET
#----------------------------------------
# example ---> python cost_metadata.py -s MOBS
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('-s',dest='station',default='',help="sta... | 40.580247 | 220 | 0.613325 | 401 | 3,287 | 4.972569 | 0.396509 | 0.040622 | 0.033099 | 0.034102 | 0.294885 | 0.225677 | 0.19659 | 0.19659 | 0.191575 | 0.142427 | 0 | 0.020748 | 0.178887 | 3,287 | 80 | 221 | 41.0875 | 0.718044 | 0.184971 | 0 | 0.085106 | 0 | 0.021277 | 0.383092 | 0.109673 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.085106 | 0 | 0.148936 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e2d474ceec169ad641399b6fbca19e9290b3d72 | 332 | py | Python | salt/utils/beacons.py | Noah-Huppert/salt | 998c382f5f2c3b4cbf7d96aa6913ada6993909b3 | [
"Apache-2.0"
] | 19 | 2016-01-29T14:37:52.000Z | 2022-03-30T18:08:01.000Z | salt/utils/beacons.py | Noah-Huppert/salt | 998c382f5f2c3b4cbf7d96aa6913ada6993909b3 | [
"Apache-2.0"
] | 223 | 2016-03-02T16:39:41.000Z | 2022-03-03T12:26:35.000Z | salt/utils/beacons.py | Noah-Huppert/salt | 998c382f5f2c3b4cbf7d96aa6913ada6993909b3 | [
"Apache-2.0"
] | 64 | 2016-02-04T19:45:26.000Z | 2021-12-15T02:02:31.000Z | """
Utilies for beacons
"""
import copy
def remove_hidden_options(config, whitelist):
"""
Remove any hidden options not whitelisted
"""
for entry in copy.copy(config):
for func in entry:
if func.startswith("_") and func not in whitelist:
config.remove(entry)
re... | 19.529412 | 62 | 0.623494 | 40 | 332 | 5.1 | 0.525 | 0.127451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.286145 | 332 | 16 | 63 | 20.75 | 0.860759 | 0.183735 | 0 | 0 | 0 | 0 | 0.004032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e2fa21023b492b98716387cb3f3d9474c117974 | 806 | py | Python | k3rn3l-ctf-2021/united-trees-of-america/main.py | AZ-0/Writeups | 1420a51cbf55dae9ffd6d458aac6dec03aad6f1c | [
"MIT"
] | null | null | null | k3rn3l-ctf-2021/united-trees-of-america/main.py | AZ-0/Writeups | 1420a51cbf55dae9ffd6d458aac6dec03aad6f1c | [
"MIT"
] | null | null | null | k3rn3l-ctf-2021/united-trees-of-america/main.py | AZ-0/Writeups | 1420a51cbf55dae9ffd6d458aac6dec03aad6f1c | [
"MIT"
] | null | null | null | import random
import math
from Crypto.Util.number import *
def isPrime(p):
for i in range(2, math.isqrt(p) + 1):
if p % i == 0:
return False
return True
flag = bytes_to_long(open('flag.txt','rb').read())
p = int(input('Enter a prime: '))
assert 10 < p, 'Prime too small'
asse... | 25.1875 | 67 | 0.586849 | 142 | 806 | 3.309859 | 0.43662 | 0.034043 | 0.038298 | 0.070213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036545 | 0.253102 | 806 | 32 | 68 | 25.1875 | 0.744186 | 0 | 0 | 0 | 0 | 0 | 0.150773 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.083333 | false | 0 | 0.125 | 0.041667 | 0.333333 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e30ac0c1a2d30dc96d7adaed4df1ae64f1e8c10 | 4,170 | py | Python | wtm_envs/mujoco/ant_four_rooms/navigate.py | knowledgetechnologyuhh/goal_conditioned_RL_baselines | 915fc875fd8cc75accd0804d99373916756f726e | [
"MIT"
] | 15 | 2020-07-01T16:16:09.000Z | 2021-12-20T21:56:33.000Z | wtm_envs/mujoco/ant_four_rooms/navigate.py | knowledgetechnologyuhh/goal_conditioned_RL_baselines | 915fc875fd8cc75accd0804d99373916756f726e | [
"MIT"
] | 14 | 2020-09-25T22:41:20.000Z | 2022-03-12T00:38:44.000Z | wtm_envs/mujoco/ant_four_rooms/navigate.py | knowledgetechnologyuhh/goal_conditioned_RL_baselines | 915fc875fd8cc75accd0804d99373916756f726e | [
"MIT"
] | 2 | 2020-07-01T16:19:08.000Z | 2020-11-28T10:45:59.000Z | from gym import utils
from wtm_envs.mujoco import ant_env
from wtm_envs.mujoco.hook_env_pddl import PDDLHookEnv
import numpy as np
class AntFourRoomsEnv(ant_env.AntEnv, utils.EzPickle):
def __init__(self, reward_type='sparse'):
name = "ant_four_rooms.xml"
# Provide initial state space consisting... | 58.732394 | 201 | 0.68777 | 640 | 4,170 | 4.248438 | 0.23125 | 0.011769 | 0.012137 | 0.008827 | 0.329165 | 0.269952 | 0.252666 | 0.208533 | 0.135712 | 0.080544 | 0 | 0.026058 | 0.217746 | 4,170 | 70 | 202 | 59.571429 | 0.80748 | 0.359233 | 0 | 0 | 0 | 0 | 0.020354 | 0.011308 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.1 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e311c72a870044e223da7fcbd021949601c16fc | 5,546 | py | Python | src/OTLMOW/OTLModel/Datatypes/DtcSierbeplAanleg.py | davidvlaminck/OTLClassPython | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | 2 | 2022-02-01T08:58:11.000Z | 2022-02-08T13:35:17.000Z | src/OTLMOW/OTLModel/Datatypes/DtcSierbeplAanleg.py | davidvlaminck/OTLMOW | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | null | null | null | src/OTLMOW/OTLModel/Datatypes/DtcSierbeplAanleg.py | davidvlaminck/OTLMOW | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | null | null | null | # coding=utf-8
from OTLMOW.OTLModel.BaseClasses.AttributeInfo import AttributeInfo
from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut
from OTLMOW.OTLModel.Datatypes.ComplexField import ComplexField
from OTLMOW.OTLModel.Datatypes.KlAanplantingswijzeSierbeplanting import KlAanplantingswijzeSierbeplanting
f... | 50.880734 | 212 | 0.622611 | 476 | 5,546 | 7.157563 | 0.222689 | 0.026416 | 0.042266 | 0.047549 | 0.399472 | 0.381861 | 0.373349 | 0.35339 | 0.306428 | 0.14617 | 0 | 0.000259 | 0.304724 | 5,546 | 108 | 213 | 51.351852 | 0.883299 | 0.100613 | 0 | 0.126582 | 0 | 0.012658 | 0.214574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151899 | false | 0 | 0.101266 | 0.012658 | 0.417722 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e31a8f06c8e8b07d56c47355fdc08ec8b4d9a6d | 1,033 | py | Python | scripts/migrate_game_servers.py | Eric-Le-Ge/online-town-public-release | 4397eefb11af6b7d40eb0cc5dd46d73405570091 | [
"Unlicense"
] | null | null | null | scripts/migrate_game_servers.py | Eric-Le-Ge/online-town-public-release | 4397eefb11af6b7d40eb0cc5dd46d73405570091 | [
"Unlicense"
] | null | null | null | scripts/migrate_game_servers.py | Eric-Le-Ge/online-town-public-release | 4397eefb11af6b7d40eb0cc5dd46d73405570091 | [
"Unlicense"
] | null | null | null | import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore
ROOM_COLLECTION = "rooms"
cred = credentials.Certificate("../onlinetown-401f0-firebase-adminsdk-gab3z-1a7a54c2da.json");
firebase_admin.initialize_app(cred)
db = firestore.client()
SERVER_MAP = {
"BLANK": "BLANK",
}... | 28.694444 | 94 | 0.643756 | 117 | 1,033 | 5.504274 | 0.418803 | 0.080745 | 0.074534 | 0.121118 | 0.139752 | 0.139752 | 0.139752 | 0.139752 | 0 | 0 | 0 | 0.023313 | 0.211036 | 1,033 | 35 | 95 | 29.514286 | 0.766871 | 0.199419 | 0 | 0.24 | 0 | 0 | 0.131547 | 0.071864 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.12 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e31dbd191b4113bed77fb5423e06dc9fe9281eb | 8,542 | py | Python | examples/pqa_stacker.py | alex-ip/agdc | 9e9eb556c33792440a3736f64cd5f628cf3a1385 | [
"BSD-3-Clause"
] | null | null | null | examples/pqa_stacker.py | alex-ip/agdc | 9e9eb556c33792440a3736f64cd5f628cf3a1385 | [
"BSD-3-Clause"
] | null | null | null | examples/pqa_stacker.py | alex-ip/agdc | 9e9eb556c33792440a3736f64cd5f628cf3a1385 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
#===============================================================================
# Copyright (c) 2014 Geoscience Australia
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ar... | 46.172973 | 150 | 0.637321 | 1,078 | 8,542 | 4.874768 | 0.325603 | 0.026641 | 0.027402 | 0.03197 | 0.278021 | 0.21313 | 0.200951 | 0.200951 | 0.200951 | 0.183825 | 0 | 0.062833 | 0.252868 | 8,542 | 184 | 151 | 46.423913 | 0.760577 | 0.73402 | 0 | 0 | 0 | 0 | 0.108041 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 1 | 0.054054 | false | 0 | 0.162162 | 0 | 0.324324 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e32e2f7e162c653864236624b206fa5e65569ed | 2,645 | py | Python | 1_code/speed_challenge/difficulty_utils.py | jaimiles23/Multiplication_Medley | 1072dea1a5be0b339211ff39db6a89a90aca64c1 | [
"MIT"
] | null | null | null | 1_code/speed_challenge/difficulty_utils.py | jaimiles23/Multiplication_Medley | 1072dea1a5be0b339211ff39db6a89a90aca64c1 | [
"MIT"
] | null | null | null | 1_code/speed_challenge/difficulty_utils.py | jaimiles23/Multiplication_Medley | 1072dea1a5be0b339211ff39db6a89a90aca64c1 | [
"MIT"
] | null | null | null | """/**
* @author [Jai Miles]
* @email [jaimiles23@gmail.com]
* @create date 2020-05-21 11:55:58
* @modify date 2020-06-16 23:33:58
* @desc [
SC_Difficulty class with methods to set speed challenge difficulty:
- Ask for difficulties
- Acknowledge difficulty message.
]
*/
"""
##########
# Imports
####... | 25.679612 | 76 | 0.653308 | 335 | 2,645 | 4.820896 | 0.325373 | 0.06935 | 0.047678 | 0.085449 | 0.256347 | 0.220433 | 0.204334 | 0.1387 | 0 | 0 | 0 | 0.017839 | 0.237051 | 2,645 | 102 | 77 | 25.931373 | 0.782458 | 0.245747 | 0 | 0.319149 | 0 | 0 | 0.001073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12766 | false | 0 | 0.12766 | 0 | 0.404255 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e3356c7912fd0f7b6244841488af8abd65adea1 | 1,600 | py | Python | examples/example07_branch_dag_parameterization.py | entailor/pytailor | dfd15a0b2a6c1fea6432721ef3b2bc6fb5aad583 | [
"BSD-3-Clause"
] | 9 | 2020-09-20T07:26:19.000Z | 2022-02-28T09:12:30.000Z | examples/example07_branch_dag_parameterization.py | entailor/pytailor | dfd15a0b2a6c1fea6432721ef3b2bc6fb5aad583 | [
"BSD-3-Clause"
] | 2 | 2020-10-03T07:53:23.000Z | 2020-10-12T11:40:24.000Z | examples/example07_branch_dag_parameterization.py | entailor/pytailor | dfd15a0b2a6c1fea6432721ef3b2bc6fb5aad583 | [
"BSD-3-Clause"
] | null | null | null | """
pyTailor Example 7
This example introduces the following NEW concepts:
- Use BranchTask to "branch out" a DAG
- For BranchTask definitions:
- Use *branch_files* to specify which files to use for branching
*branch_files* is given as one or more file tags.
"""
from pytailor import (
PythonTask,... | 23.529412 | 84 | 0.595625 | 185 | 1,600 | 5.091892 | 0.410811 | 0.059448 | 0.023355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008787 | 0.28875 | 1,600 | 67 | 85 | 23.880597 | 0.818981 | 0.26625 | 0 | 0 | 0 | 0 | 0.149565 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025 | 0 | 0.025 | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e3614f97a735aef0ef5def156ca789d1a024710 | 1,122 | py | Python | fstelemetry/telemetry.py | jbencina/fstelemetry | c9d58741e5c32d8019794e25d54146e2a85ce71b | [
"MIT"
] | 1 | 2021-12-28T22:26:47.000Z | 2021-12-28T22:26:47.000Z | fstelemetry/telemetry.py | jbencina/fstelemetry | c9d58741e5c32d8019794e25d54146e2a85ce71b | [
"MIT"
] | null | null | null | fstelemetry/telemetry.py | jbencina/fstelemetry | c9d58741e5c32d8019794e25d54146e2a85ce71b | [
"MIT"
] | null | null | null | from SimConnect import AircraftRequests, SimConnect
import csv
import os
import time
class Telemetry():
def __init__(self, keys):
self.requests = self._make_connection()
self.keys = keys
def _make_connection(self):
sm = SimConnect()
return AircraftRequests(sm, _time=0)
def... | 26.093023 | 70 | 0.567736 | 134 | 1,122 | 4.656716 | 0.432836 | 0.038462 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003968 | 0.326203 | 1,122 | 43 | 71 | 26.093023 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0.077471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.125 | 0 | 0.375 | 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 |
8e38670c4af3cddf39a7934e3dd858bcc1966769 | 1,840 | py | Python | optumpublicdata/gov_data.py | cpaulisi/optumpublicdata | 8f62c3d856e02ee994f816a245329a08905abb85 | [
"MIT"
] | null | null | null | optumpublicdata/gov_data.py | cpaulisi/optumpublicdata | 8f62c3d856e02ee994f816a245329a08905abb85 | [
"MIT"
] | null | null | null | optumpublicdata/gov_data.py | cpaulisi/optumpublicdata | 8f62c3d856e02ee994f816a245329a08905abb85 | [
"MIT"
] | null | null | null | import pandas as pd
import requests
class hhs_extract:
# initialize with api_key
def __init__(self, bearer_token):
self.api_key = bearer_token
# extract HHS data
def extract_data(self) -> pd.DataFrame:
# read data from Socrata HHS API for county level hospitalizations at CMS regis... | 40 | 102 | 0.658152 | 254 | 1,840 | 4.413386 | 0.26378 | 0.080285 | 0.069581 | 0.053524 | 0.50669 | 0.50669 | 0.4157 | 0.4157 | 0.4157 | 0.4157 | 0 | 0.01312 | 0.254348 | 1,840 | 46 | 103 | 40 | 0.803936 | 0.136957 | 0 | 0.176471 | 0 | 0 | 0.087231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e395970b87c621a1fcc58e8559a6aaf781e24f8 | 263 | py | Python | Code/Python/port_scan.py | rf-peixoto/Studies | 89178b6caa29cfa24d54058f3c7fc3424c541760 | [
"CC0-1.0"
] | 1 | 2021-02-10T12:53:37.000Z | 2021-02-10T12:53:37.000Z | Code/Python/port_scan.py | rf-peixoto/Studies | 89178b6caa29cfa24d54058f3c7fc3424c541760 | [
"CC0-1.0"
] | null | null | null | Code/Python/port_scan.py | rf-peixoto/Studies | 89178b6caa29cfa24d54058f3c7fc3424c541760 | [
"CC0-1.0"
] | null | null | null | import socket
import sys
for i in range(1, 65535):
skt = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
if skt.connect((sys.argv[1], i)) == 0:
print("Port: {0} OPEN".format(i))
skt.close()
except:
continue
| 21.916667 | 59 | 0.574144 | 38 | 263 | 3.921053 | 0.684211 | 0.161074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.281369 | 263 | 11 | 60 | 23.909091 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0.053232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 |
8e3a44cfa7146ec2b5aaef9188e372242a439598 | 1,933 | py | Python | h2o-py/tests/testdir_munging/pyunit_unique.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 6,098 | 2015-05-22T02:46:12.000Z | 2022-03-31T16:54:51.000Z | h2o-py/tests/testdir_munging/pyunit_unique.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 2,517 | 2015-05-23T02:10:54.000Z | 2022-03-30T17:03:39.000Z | h2o-py/tests/testdir_munging/pyunit_unique.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 2,199 | 2015-05-22T04:09:55.000Z | 2022-03-28T22:20:45.000Z | import sys
sys.path.insert(1,"../../")
import h2o
from tests import pyunit_utils
def pyunit_unique():
iris = h2o.import_file(pyunit_utils.locate("smalldata/iris/iris.csv"))
uniques = iris[4].unique()
rows, cols = uniques.dim
assert rows == 3 and cols == 1, "Expected 3 rows and 1 column, but got {0}... | 39.44898 | 120 | 0.669943 | 284 | 1,933 | 4.419014 | 0.320423 | 0.035857 | 0.023904 | 0.043028 | 0.246215 | 0.166534 | 0.166534 | 0.104382 | 0.104382 | 0.104382 | 0 | 0.023285 | 0.177962 | 1,933 | 48 | 121 | 40.270833 | 0.76652 | 0.028971 | 0 | 0.054054 | 0 | 0 | 0.2608 | 0.0336 | 0 | 0 | 0 | 0 | 0.297297 | 1 | 0.027027 | false | 0 | 0.135135 | 0 | 0.162162 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e40586624bfd81a0d9a6a3e8dac58538818efa1 | 310 | py | Python | Ex6/q3/server.py | sreyom31/app-srm | 5ca1ac1a3681e160564b05a7d10db2d1b94e5fd1 | [
"MIT"
] | null | null | null | Ex6/q3/server.py | sreyom31/app-srm | 5ca1ac1a3681e160564b05a7d10db2d1b94e5fd1 | [
"MIT"
] | null | null | null | Ex6/q3/server.py | sreyom31/app-srm | 5ca1ac1a3681e160564b05a7d10db2d1b94e5fd1 | [
"MIT"
] | null | null | null | import socket
s = socket.socket()
host = socket.gethostname()
port = 12346
s.bind((host, port))
s.listen(5)
while True:
c, addr = s.accept()
print("connection from", addr)
rec = c.recv(1024).decode("utf-8")
print(rec)
if rec == 'ping':
c.sendto('pong'.encode(), addr)
c.close() | 20.666667 | 39 | 0.6 | 46 | 310 | 4.043478 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045082 | 0.212903 | 310 | 15 | 40 | 20.666667 | 0.717213 | 0 | 0 | 0 | 0 | 0 | 0.090032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e41732c0c1c201ebe223546073ee99f68d2d8f4 | 1,085 | py | Python | spider/luogu.py | MeiK2333/recent_contests | d3c7d2bfb83651b556b501f6000117493503dc7c | [
"MIT"
] | 3 | 2019-08-01T13:18:12.000Z | 2021-04-21T09:10:55.000Z | spider/luogu.py | MeiK-h/recent_contests | 5d4890b3fb9bf65bb31854a8be0e6049ebbf0a06 | [
"MIT"
] | 2 | 2021-06-04T04:53:04.000Z | 2021-06-15T06:40:09.000Z | spider/luogu.py | MeiK-h/recent_contests | 5d4890b3fb9bf65bb31854a8be0e6049ebbf0a06 | [
"MIT"
] | 1 | 2021-06-10T13:33:36.000Z | 2021-06-10T13:33:36.000Z | from datetime import datetime, timezone
import requests
from schemas import Contest
from spider.utils import update_platform
def main():
headers = {
"user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 "
"Safari/537.36 "
}
resp = requ... | 25.232558 | 116 | 0.587097 | 126 | 1,085 | 4.904762 | 0.531746 | 0.043689 | 0.042071 | 0.05178 | 0.074434 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03944 | 0.275576 | 1,085 | 42 | 117 | 25.833333 | 0.746819 | 0 | 0 | 0 | 0 | 0.032258 | 0.251613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.129032 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e4174c582d0f7afb25fdca0511c1255d5ea364c | 1,054 | py | Python | img_colorization.py | MuhammedAshraf2020/ImageColorization | e18949e0bd577e6ef85b3c376a28f7d51206fb1f | [
"MIT"
] | 2 | 2021-01-21T22:23:40.000Z | 2021-01-29T23:19:14.000Z | img_colorization.py | MuhammedAshraf2020/ImageColorization | e18949e0bd577e6ef85b3c376a28f7d51206fb1f | [
"MIT"
] | null | null | null | img_colorization.py | MuhammedAshraf2020/ImageColorization | e18949e0bd577e6ef85b3c376a28f7d51206fb1f | [
"MIT"
] | null | null | null | from processing import *
from decodingModel import *
# Using Transfer learning
feature_extract_model = VggModel()
#Decoding model
colorize = model()
#prepare data in hard disk
PrepareData(datapath = "/content/data" , save_file = "/content/processed/" ,
target_size = (224 , 224) , batch_size = 32 , fea... | 34 | 104 | 0.701139 | 140 | 1,054 | 5 | 0.5 | 0.1 | 0.135714 | 0.042857 | 0.177143 | 0.108571 | 0 | 0 | 0 | 0 | 0 | 0.042403 | 0.194497 | 1,054 | 30 | 105 | 35.133333 | 0.782097 | 0.058824 | 0 | 0 | 0 | 0 | 0.082636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e42b718ee16f23a8ba27a4d6ff7efea8f8ce315 | 23,434 | py | Python | cloudify_cli/env.py | TS-at-WS/cloudify-cli | 598b54ecd67495a76678177f910cdc5eac6128d0 | [
"Apache-2.0"
] | null | null | null | cloudify_cli/env.py | TS-at-WS/cloudify-cli | 598b54ecd67495a76678177f910cdc5eac6128d0 | [
"Apache-2.0"
] | 10 | 2020-08-02T07:45:42.000Z | 2021-06-11T01:03:45.000Z | cloudify_cli/env.py | TS-at-WS/cloudify-cli | 598b54ecd67495a76678177f910cdc5eac6128d0 | [
"Apache-2.0"
] | null | null | null | ########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 35.886677 | 79 | 0.646454 | 2,923 | 23,434 | 4.967841 | 0.13753 | 0.030301 | 0.008264 | 0.005165 | 0.249776 | 0.166104 | 0.113629 | 0.088286 | 0.072791 | 0.066593 | 0 | 0.002068 | 0.27793 | 23,434 | 652 | 80 | 35.941718 | 0.856096 | 0.14415 | 0 | 0.198257 | 0 | 0 | 0.110501 | 0.003932 | 0 | 0 | 0 | 0.001534 | 0.008715 | 1 | 0.108932 | false | 0.043573 | 0.039216 | 0.010893 | 0.265795 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e44044cdc3759630dbb0df881a857baa4e03f7d | 972 | py | Python | Calibration/HcalAlCaRecoProducers/python/alcastreamHcalIsotrkOutput_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Calibration/HcalAlCaRecoProducers/python/alcastreamHcalIsotrkOutput_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Calibration/HcalAlCaRecoProducers/python/alcastreamHcalIsotrkOutput_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
# output block for alcastream HCAL Isotrk
# output module
# module alcastreamHcalIsotrkOutput = PoolOutputModule
alcastreamHcalIsotrkOutput = cms.PSet(
outputCommands = cms.untracked.vstring('drop *',
'keep *_offlineBeamSpot_*_*... | 48.6 | 84 | 0.429012 | 46 | 972 | 8.478261 | 0.695652 | 0.087179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002053 | 0.498971 | 972 | 19 | 85 | 51.157895 | 0.798768 | 0.111111 | 0 | 0 | 0 | 0 | 0.299185 | 0.186263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e44300df9e4409d4508d36cc2011c526c3cb3f9 | 3,256 | py | Python | Python (Basic) Skills Certification Test/2.Python: String Representations of Objects.py | manavnarang/HackerrankCertifications | 72d5d493a48c7c1221398a5b20b01bfa7aad26ea | [
"BSD-3-Clause"
] | 1 | 2021-04-23T10:01:38.000Z | 2021-04-23T10:01:38.000Z | Python (Basic) Skills Certification Test/2.Python: String Representations of Objects.py | manavnarang/HackerrankCertifications | 72d5d493a48c7c1221398a5b20b01bfa7aad26ea | [
"BSD-3-Clause"
] | null | null | null | Python (Basic) Skills Certification Test/2.Python: String Representations of Objects.py | manavnarang/HackerrankCertifications | 72d5d493a48c7c1221398a5b20b01bfa7aad26ea | [
"BSD-3-Clause"
] | null | null | null | #Python: String Representations of Objects
#Implement two vehicle classes:
#Car:
#The constructor for Car must take two arguments. The first of them is its maximum speed, and the second one is a string that denotes the units in which the speed is given: either "km/h" or "mph".
#The class must be implemented to return... | 38.761905 | 433 | 0.697174 | 520 | 3,256 | 4.298077 | 0.288462 | 0.075168 | 0.068904 | 0.07651 | 0.279642 | 0.22774 | 0.176286 | 0.127069 | 0.127069 | 0.089485 | 0 | 0.021446 | 0.226658 | 3,256 | 83 | 434 | 39.228916 | 0.864575 | 0.637592 | 0 | 0.171429 | 0 | 0 | 0.108319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.142857 | 0 | 0.371429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e455903aafe2cb46d5096d1e57569e66b92de48 | 42,807 | py | Python | tests/transitfeed/testtrip.py | gungnir888/transitfeed3 | 406e7ca3fe274521ef5dbf9277c729182b5183cb | [
"Apache-2.0"
] | null | null | null | tests/transitfeed/testtrip.py | gungnir888/transitfeed3 | 406e7ca3fe274521ef5dbf9277c729182b5183cb | [
"Apache-2.0"
] | null | null | null | tests/transitfeed/testtrip.py | gungnir888/transitfeed3 | 406e7ca3fe274521ef5dbf9277c729182b5183cb | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 47.93617 | 117 | 0.636134 | 5,115 | 42,807 | 5.136461 | 0.113001 | 0.019716 | 0.019259 | 0.021695 | 0.586343 | 0.523313 | 0.459103 | 0.411944 | 0.34347 | 0.318616 | 0 | 0.065667 | 0.25365 | 42,807 | 892 | 118 | 47.98991 | 0.756675 | 0.090125 | 0 | 0.389928 | 0 | 0 | 0.086796 | 0.007184 | 0 | 0 | 0 | 0.001121 | 0.169784 | 1 | 0.05036 | false | 0 | 0.004317 | 0 | 0.086331 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e46875c490fe502ca1757b91de8b131eca3be26 | 1,365 | py | Python | knowledge_graph/preprocessing/preprocessor.py | ihaeyong/drama-graph | 60c3c216cd74bb19efd6baf836f6c7c2b42b764f | [
"MIT"
] | 3 | 2021-04-28T07:19:39.000Z | 2022-03-07T09:34:19.000Z | knowledge_graph/preprocessing/preprocessor.py | ihaeyong/drama-graph | 60c3c216cd74bb19efd6baf836f6c7c2b42b764f | [
"MIT"
] | 18 | 2020-08-24T12:40:38.000Z | 2022-03-12T00:47:14.000Z | knowledge_graph/preprocessing/preprocessor.py | ihaeyong/drama-graph | 60c3c216cd74bb19efd6baf836f6c7c2b42b764f | [
"MIT"
] | 1 | 2020-10-15T10:09:20.000Z | 2020-10-15T10:09:20.000Z | from preprocessing.sentence_processor import *
from preprocessing.coreference import *
from preprocessing.to_statement import *
from utils.macro import *
class preprocessor:
def __init__(self, config, demo_json):
self.input = []
self.config = config
if config['preprocessing']['load']:
... | 33.292683 | 79 | 0.649084 | 151 | 1,365 | 5.688742 | 0.258278 | 0.069849 | 0.107101 | 0.039581 | 0.153667 | 0.090803 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 1,365 | 40 | 80 | 34.125 | 0.825962 | 0.05348 | 0 | 0.16129 | 0 | 0 | 0.100155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.129032 | 0 | 0.451613 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e48b9d3b7904192c28927ccbc6170940d53e5e0 | 245 | py | Python | udpoptions/listener.py | adventureloop/network-tests | 2a65c0d10d36842ef63ee33691a911dcec00c6e3 | [
"0BSD"
] | null | null | null | udpoptions/listener.py | adventureloop/network-tests | 2a65c0d10d36842ef63ee33691a911dcec00c6e3 | [
"0BSD"
] | null | null | null | udpoptions/listener.py | adventureloop/network-tests | 2a65c0d10d36842ef63ee33691a911dcec00c6e3 | [
"0BSD"
] | null | null | null | import udp_options
import udp_usrreq
def callback(pcb, data=None, options=None, error=None):
print(pcb)
if __name__ == "__main__":
print("startings")
udp_usrreq.bindaddr('0.0.0.0', 5005, callback)
udp_usrreq.run_loop()
| 22.272727 | 58 | 0.681633 | 35 | 245 | 4.4 | 0.571429 | 0.175325 | 0.038961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.183673 | 245 | 10 | 59 | 24.5 | 0.73 | 0 | 0 | 0 | 0 | 0 | 0.097959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e493c2e212c9c101abf9e6677ffaff7e95ab64e | 4,095 | py | Python | tests/test_events.py | mucker-capital/django-slack-utils | b3ad098f90123ac6bc0b26f1f9f674a4e1e71630 | [
"BSD-3-Clause"
] | 20 | 2018-12-18T20:51:28.000Z | 2019-08-29T19:34:24.000Z | tests/test_events.py | startmatter/django-slack-utils | 7ef321edf8ac91d94262845785d9e505dd84dbfb | [
"BSD-3-Clause"
] | 5 | 2020-05-31T16:16:25.000Z | 2021-06-15T02:01:44.000Z | tests/test_events.py | startmatter/django-slack-utils | 7ef321edf8ac91d94262845785d9e505dd84dbfb | [
"BSD-3-Clause"
] | 5 | 2020-03-25T12:55:48.000Z | 2021-06-14T20:21:26.000Z | import json
from unittest import mock
from django.http import JsonResponse
from django.test import TestCase
from django.urls import reverse
from slack_utils import signals
class EventsViewTestCase(TestCase):
def test_verification(self):
with mock.patch('slack_utils.decorators.verify_request') as verify_... | 39.375 | 117 | 0.542369 | 348 | 4,095 | 6.16954 | 0.284483 | 0.023288 | 0.02422 | 0.033535 | 0.540289 | 0.526316 | 0.526316 | 0.507685 | 0.48952 | 0.359572 | 0 | 0.075803 | 0.346032 | 4,095 | 104 | 118 | 39.375 | 0.725915 | 0 | 0 | 0.539326 | 0 | 0 | 0.268311 | 0.095215 | 0 | 0 | 0 | 0 | 0.101124 | 1 | 0.05618 | false | 0 | 0.067416 | 0 | 0.134831 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e4bf28a810774213c7d1cbf7b0fb39fe9162916 | 4,922 | py | Python | goes17.py | MarcoCiaramella/goes17-to-geotiff | f51cdff60a22eefb3234486eb204bd2069b44410 | [
"MIT"
] | 1 | 2020-06-02T12:32:58.000Z | 2020-06-02T12:32:58.000Z | goes17.py | MarcoCiaramella/goes17-to-geotiff | f51cdff60a22eefb3234486eb204bd2069b44410 | [
"MIT"
] | null | null | null | goes17.py | MarcoCiaramella/goes17-to-geotiff | f51cdff60a22eefb3234486eb204bd2069b44410 | [
"MIT"
] | null | null | null | import sys
from osgeo import gdal
from osgeo.gdalconst import *
from osgeo import osr
import netCDFreader as ncr
import datetime
import numpy as np
class Goes17Reader:
def __init__(self, nc):
self.dataset = ncr.open(nc,'NETCDF4')
self._read_rad()
self._read_projection()
self... | 36.731343 | 133 | 0.58269 | 593 | 4,922 | 4.637437 | 0.359191 | 0.025455 | 0.025455 | 0.038182 | 0.133818 | 0.061091 | 0.042182 | 0.042182 | 0.042182 | 0 | 0 | 0.069967 | 0.314709 | 4,922 | 133 | 134 | 37.007519 | 0.745331 | 0.303941 | 0 | 0.029851 | 0 | 0.014925 | 0.061071 | 0.007185 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104478 | false | 0 | 0.119403 | 0 | 0.238806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e4c91eb7d8d3d7397dac30febf5dc19a985e1a2 | 1,622 | py | Python | src/ethereum/utils/transaction.py | norswap/execution-specs | c2274790e8ac2d637c7dbe092477a1b21243916c | [
"CC0-1.0"
] | 1 | 2021-09-07T21:30:14.000Z | 2021-09-07T21:30:14.000Z | src/ethereum/utils/transaction.py | norswap/execution-specs | c2274790e8ac2d637c7dbe092477a1b21243916c | [
"CC0-1.0"
] | null | null | null | src/ethereum/utils/transaction.py | norswap/execution-specs | c2274790e8ac2d637c7dbe092477a1b21243916c | [
"CC0-1.0"
] | null | null | null | """
Utility Functions For Transactions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..contents:: Table of Contents
:backlinks: none
:local:
Introduction
------------
Transactions specific utility functions used in this application.
"""
from typing import Any, Dict, Tuple
from ethereum.base_types import Bytes0
from et... | 28.964286 | 79 | 0.618372 | 177 | 1,622 | 5.485876 | 0.361582 | 0.061792 | 0.07415 | 0.144181 | 0.055613 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021173 | 0.24291 | 1,622 | 55 | 80 | 29.490909 | 0.769544 | 0.302096 | 0 | 0 | 0 | 0 | 0.041783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.2 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e4ed343e3d684c83160112816408464927af7e8 | 10,031 | py | Python | allenopt/optimize.py | teffland/allenopt | b1959697e6d3f4c5b0841e27348766c73d2d14bd | [
"MIT"
] | null | null | null | allenopt/optimize.py | teffland/allenopt | b1959697e6d3f4c5b0841e27348766c73d2d14bd | [
"MIT"
] | null | null | null | allenopt/optimize.py | teffland/allenopt | b1959697e6d3f4c5b0841e27348766c73d2d14bd | [
"MIT"
] | null | null | null | """ Optimize a base allennlp configuration with a gaussian process by providing
a hyperparam search file.
"""
from argparse import ArgumentParser
import os
import numpy as np
import json
import _jsonnet
import subprocess
from datetime import datetime
from collections import OrderedDict, defaultdict
import skopt
from ... | 41.970711 | 204 | 0.676303 | 1,366 | 10,031 | 4.783309 | 0.225476 | 0.022957 | 0.033823 | 0.010713 | 0.279308 | 0.230487 | 0.19345 | 0.137741 | 0.12611 | 0.075911 | 0 | 0.003598 | 0.224205 | 10,031 | 238 | 205 | 42.147059 | 0.836032 | 0.161599 | 0 | 0.27439 | 0 | 0.030488 | 0.219518 | 0.037885 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036585 | false | 0.006098 | 0.085366 | 0 | 0.140244 | 0.018293 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e5178728ed7355a5dbc403949cae55f35408aca | 1,498 | py | Python | api/animals.py | Super-Serious/bot | 6cee736848e8beb7c8d004fd21301809a11b2cba | [
"MIT"
] | 5 | 2020-07-19T19:07:27.000Z | 2021-12-15T11:30:03.000Z | api/animals.py | Super-Serious/bot | 6cee736848e8beb7c8d004fd21301809a11b2cba | [
"MIT"
] | 136 | 2020-07-25T19:29:37.000Z | 2022-03-09T15:16:49.000Z | api/animals.py | Super-Serious/bot | 6cee736848e8beb7c8d004fd21301809a11b2cba | [
"MIT"
] | 5 | 2020-07-19T18:12:03.000Z | 2021-02-22T10:35:11.000Z | from typing import Callable, Dict, Tuple, TYPE_CHECKING, Union
from requests import get
from telegram import MessageEntity
if TYPE_CHECKING:
import telegram
import telegram.ext
def animal(update: 'telegram.Update', _context: 'telegram.ext.CallbackContext') -> None:
"""Get animal"""
if update.message... | 32.565217 | 101 | 0.618158 | 170 | 1,498 | 5.335294 | 0.429412 | 0.092613 | 0.074972 | 0.097023 | 0.250276 | 0.188534 | 0.070562 | 0 | 0 | 0 | 0 | 0.007881 | 0.23765 | 1,498 | 45 | 102 | 33.288889 | 0.78634 | 0.006676 | 0 | 0.108108 | 0 | 0.027027 | 0.182186 | 0.018893 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.135135 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3cb8f307948086da941c1c7eb13a063fbf80941 | 5,030 | py | Python | appgate/bytes.py | appgate/sdp-operator | 289927e07eca84003aa4bd4631b57dc9955eee23 | [
"MIT"
] | 6 | 2020-09-22T13:21:05.000Z | 2022-01-06T01:49:22.000Z | appgate/bytes.py | appgate/sdp-operator | 289927e07eca84003aa4bd4631b57dc9955eee23 | [
"MIT"
] | 36 | 2020-09-23T06:38:51.000Z | 2022-02-09T13:53:32.000Z | appgate/bytes.py | appgate/sdp-operator | 289927e07eca84003aa4bd4631b57dc9955eee23 | [
"MIT"
] | 3 | 2021-07-27T18:16:52.000Z | 2022-03-01T22:18:15.000Z | import base64
import binascii
import datetime
import hashlib
import re
from typing import Optional, Any, Dict, List, Callable
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.serialization import Encoding, PublicFormat
from cryptography.x509 import load_pem_x509_certificate
from a... | 42.991453 | 99 | 0.648111 | 537 | 5,030 | 5.877095 | 0.27933 | 0.034854 | 0.003802 | 0.017744 | 0.31749 | 0.298479 | 0.298479 | 0.259823 | 0.259823 | 0.259823 | 0 | 0.012668 | 0.24672 | 5,030 | 116 | 100 | 43.362069 | 0.820269 | 0.048708 | 0 | 0.146067 | 0 | 0 | 0.054465 | 0.0095 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11236 | false | 0 | 0.134831 | 0.033708 | 0.370787 | 0.011236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3cba118a37558869d34642f72693aa5c0e2130e | 2,422 | py | Python | rate_limit/tests/test_actiongroups.py | sapcc/openstack-rate-limit-middleware | 107de6130887ecffa91d1d788a3215beb3aab7e1 | [
"Apache-2.0"
] | 4 | 2019-05-28T19:40:29.000Z | 2021-08-02T23:52:29.000Z | rate_limit/tests/test_actiongroups.py | sapcc/openstack-rate-limit-middleware | 107de6130887ecffa91d1d788a3215beb3aab7e1 | [
"Apache-2.0"
] | 7 | 2019-06-07T11:59:28.000Z | 2021-02-23T09:56:08.000Z | rate_limit/tests/test_actiongroups.py | sapcc/openstack-rate-limit-middleware | 107de6130887ecffa91d1d788a3215beb3aab7e1 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 SAP SE
#
# 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, soft... | 24.969072 | 90 | 0.551197 | 254 | 2,422 | 5.114173 | 0.456693 | 0.046189 | 0.034642 | 0.024634 | 0.024634 | 0.024634 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.35095 | 2,422 | 96 | 91 | 25.229167 | 0.818702 | 0.224608 | 0 | 0.067797 | 0 | 0 | 0.143982 | 0.011811 | 0 | 0 | 0 | 0 | 0.033898 | 1 | 0.050847 | false | 0 | 0.067797 | 0 | 0.169492 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3cbf2ce4c2a5e6f06d0cb9cd4033d69edef90ae | 274 | py | Python | Algorithms/Strings/Super Reduced String/solution.py | kitarp29/ds-algo-solutions | c06effdaec2ff014248ca399268934cd8a639b5a | [
"MIT"
] | 48 | 2020-12-04T17:48:47.000Z | 2022-02-26T17:56:52.000Z | Algorithms/Strings/Super Reduced String/solution.py | kitarp29/ds-algo-solutions | c06effdaec2ff014248ca399268934cd8a639b5a | [
"MIT"
] | 465 | 2020-12-04T02:12:56.000Z | 2021-12-07T16:09:51.000Z | Algorithms/Strings/Super Reduced String/solution.py | kitarp29/ds-algo-solutions | c06effdaec2ff014248ca399268934cd8a639b5a | [
"MIT"
] | 199 | 2020-12-04T02:39:56.000Z | 2021-12-07T10:10:50.000Z | #input the string
n = input().strip()
x = 0
while x+1 < len(n):
if n[x] == n[x+1]:
n = n[:x]+n[x+2:]
if x > 0:
x-= 1
else:
x += 1
# output the reduced string or Empty String
if n == "":
print("Empty String")
else:
print(n) | 18.266667 | 43 | 0.463504 | 48 | 274 | 2.645833 | 0.375 | 0.062992 | 0.047244 | 0.062992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039548 | 0.354015 | 274 | 15 | 44 | 18.266667 | 0.677966 | 0.211679 | 0 | 0.153846 | 0 | 0 | 0.055814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3cc0089dc85cf890dfb47d6fdaaefffe5ba01cb | 5,350 | py | Python | corehq/motech/openmrs/forms.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | null | null | null | corehq/motech/openmrs/forms.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | null | null | null | corehq/motech/openmrs/forms.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | null | null | null | from django import forms
from django.core.exceptions import ValidationError
from django.utils.translation import ugettext as _
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit
from corehq.apps.userreports.ui.fields import JsonField
from corehq.motech.openmrs.const import (
ADDRESS... | 52.45098 | 115 | 0.605234 | 578 | 5,350 | 5.363322 | 0.278547 | 0.05871 | 0.079677 | 0.036774 | 0.182581 | 0.119355 | 0.083226 | 0.083226 | 0.083226 | 0.070645 | 0 | 0 | 0.291963 | 5,350 | 101 | 116 | 52.970297 | 0.818374 | 0 | 0 | 0.129412 | 0 | 0 | 0.261869 | 0.012523 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023529 | false | 0.011765 | 0.152941 | 0 | 0.435294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3cf3b7afcc85c390bb7674416c046fd4a943621 | 5,583 | py | Python | tflite2onnx/op/conv.py | briangrifiin/tflite2onnx | e0a30f23d8236673c6a31a9a2a67913ae4cb8644 | [
"Apache-2.0"
] | 87 | 2020-09-23T01:16:36.000Z | 2022-03-26T01:10:32.000Z | tflite2onnx/op/conv.py | briangrifiin/tflite2onnx | e0a30f23d8236673c6a31a9a2a67913ae4cb8644 | [
"Apache-2.0"
] | 57 | 2020-09-23T01:26:13.000Z | 2022-01-26T07:58:29.000Z | tflite2onnx/op/conv.py | briangrifiin/tflite2onnx | e0a30f23d8236673c6a31a9a2a67913ae4cb8644 | [
"Apache-2.0"
] | 23 | 2020-10-17T11:58:21.000Z | 2022-03-24T06:15:18.000Z | import logging
import tflite
from tflite2onnx.layout import Layout
from tflite2onnx.op.activation import handleFusedActivation
from tflite2onnx.op.common import Operator
from tflite2onnx.op.padding import computePaddingSize
logger = logging.getLogger('tflite2onnx')
class Conv(Operator):
TypeMapping = {
... | 33.035503 | 96 | 0.610604 | 619 | 5,583 | 5.434572 | 0.279483 | 0.06956 | 0.022295 | 0.029727 | 0.453627 | 0.415874 | 0.389417 | 0.324316 | 0.324316 | 0.324316 | 0 | 0.010965 | 0.264911 | 5,583 | 168 | 97 | 33.232143 | 0.808723 | 0.189325 | 0 | 0.553398 | 0 | 0 | 0.077625 | 0 | 0 | 0 | 0 | 0.005952 | 0.07767 | 1 | 0.106796 | false | 0.019417 | 0.058252 | 0.038835 | 0.252427 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3da9bfd5a83d4bff0b4a850cbb5746a074cbc82 | 3,850 | bzl | Python | bazel/linux/bundles.bzl | pete-enf/enkit | fe262bef2bdad27bb61135263f10ec848234a9c2 | [
"BSD-3-Clause"
] | null | null | null | bazel/linux/bundles.bzl | pete-enf/enkit | fe262bef2bdad27bb61135263f10ec848234a9c2 | [
"BSD-3-Clause"
] | null | null | null | bazel/linux/bundles.bzl | pete-enf/enkit | fe262bef2bdad27bb61135263f10ec848234a9c2 | [
"BSD-3-Clause"
] | null | null | null | load("//bazel/linux:providers.bzl", "KernelBundleInfo", "KernelImageInfo", "RuntimeBundleInfo", "RuntimeInfo")
load("//bazel/linux:utils.bzl", "expand_deps", "get_compatible")
load("//bazel/utils:messaging.bzl", "location", "package")
load("//bazel/utils:files.bzl", "files_to_dir")
load("@bazel_skylib//lib:shell.bzl", ... | 38.118812 | 180 | 0.603636 | 430 | 3,850 | 5.288372 | 0.34186 | 0.021548 | 0.029024 | 0.029024 | 0.240985 | 0.183817 | 0.183817 | 0.155673 | 0.155673 | 0.112577 | 0 | 0.000358 | 0.275325 | 3,850 | 100 | 181 | 38.5 | 0.814695 | 0.011688 | 0 | 0.230769 | 0 | 0.021978 | 0.306074 | 0.064423 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010989 | false | 0 | 0.010989 | 0 | 0.032967 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3daf2d50e0303551f8d62b9050f38bb85c076ce | 1,562 | py | Python | python/pyqt/LearnPyQt/stack_layout.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | python/pyqt/LearnPyQt/stack_layout.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | python/pyqt/LearnPyQt/stack_layout.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | import sys
from PyQt5.QtWidgets import (
QApplication,
QMainWindow,
QWidget,
QVBoxLayout,
QStackedLayout,
QPushButton,
)
from PyQt5.QtGui import (
QPalette,
QColor,
)
class Color(QWidget):
def __init__(self, color, *args, **kwargs):
super(Color, self).__init__(*args, **kwa... | 23.313433 | 59 | 0.644686 | 161 | 1,562 | 6.068323 | 0.378882 | 0.064483 | 0.085977 | 0.036847 | 0.079836 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011834 | 0.242638 | 1,562 | 66 | 60 | 23.666667 | 0.814032 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.061224 | 0 | 0.163265 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3ddd665e60d0bf2e360d9f1687c0e8c2fbb5966 | 2,376 | py | Python | src/estimagic/shared/check_option_dicts.py | PaulBehler/estimagic | c14f743986262d508e55738c90737cb504fe987b | [
"MIT"
] | 7 | 2019-05-11T07:19:46.000Z | 2019-05-31T07:03:13.000Z | src/estimagic/shared/check_option_dicts.py | PaulBehler/estimagic | c14f743986262d508e55738c90737cb504fe987b | [
"MIT"
] | 14 | 2019-05-04T14:15:52.000Z | 2019-06-10T11:45:27.000Z | src/estimagic/shared/check_option_dicts.py | PaulBehler/estimagic | c14f743986262d508e55738c90737cb504fe987b | [
"MIT"
] | 1 | 2019-05-21T08:44:37.000Z | 2019-05-21T08:44:37.000Z | """Check option dictionaries for minimize, maximize and first_derivative."""
def check_optimization_options(options, usage, algorithm_mandatory=True):
"""Check optimize_options or maximize_options for usage in estimation functions."""
options = {} if options is None else options
if algorithm_mandatory:
... | 32.108108 | 87 | 0.63931 | 252 | 2,376 | 5.845238 | 0.321429 | 0.076035 | 0.046164 | 0.050917 | 0.279701 | 0.126273 | 0.126273 | 0.078751 | 0.078751 | 0.078751 | 0 | 0.00059 | 0.286195 | 2,376 | 73 | 88 | 32.547945 | 0.867925 | 0.093434 | 0 | 0.145455 | 0 | 0 | 0.371375 | 0.025725 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0 | 0 | 0 | 0.036364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3e1253dea65e55b992c34afad185934a10cd9ae | 760 | py | Python | model_testing.py | rafaelfrieri1/Optimization-Project | 20db5200cd361d358e213310c6eb2997c893ff27 | [
"MIT"
] | null | null | null | model_testing.py | rafaelfrieri1/Optimization-Project | 20db5200cd361d358e213310c6eb2997c893ff27 | [
"MIT"
] | null | null | null | model_testing.py | rafaelfrieri1/Optimization-Project | 20db5200cd361d358e213310c6eb2997c893ff27 | [
"MIT"
] | null | null | null | from sklearn.model_selection import train_test_split
from sklearn.neural_network import MLPClassifier
from sklearn.metrics import recall_score, f1_score, precision_score
#X and y should be defined from the data.
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=3)
mlp = MLPClassifier(max_iter=1000... | 47.5 | 122 | 0.785526 | 131 | 760 | 4.305344 | 0.473282 | 0.044326 | 0.053191 | 0.053191 | 0.092199 | 0.067376 | 0 | 0 | 0 | 0 | 0 | 0.028024 | 0.107895 | 760 | 15 | 123 | 50.666667 | 0.803835 | 0.211842 | 0 | 0 | 0 | 0 | 0.060302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0.363636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3e34a856aa1b320193e636ce72fc1a183de8078 | 7,077 | py | Python | e/mail-relay/fabfile.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | e/mail-relay/fabfile.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | 18 | 2020-06-05T18:17:40.000Z | 2022-03-11T23:25:21.000Z | e/mail-relay/fabfile.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import StringIO
from fabric.api import env, put, run
from fabric.contrib.files import append, contains, exists
supervisord_config_template = '''\
[unix_http_server]
file={work_dir}/run/supervisor.sock
[supervisord]
logfile={work_dir}/log/supervisord.log
logfile_maxbytes... | 32.168182 | 119 | 0.614102 | 928 | 7,077 | 4.53556 | 0.269397 | 0.054882 | 0.055595 | 0.039914 | 0.340461 | 0.310287 | 0.24804 | 0.202899 | 0.163934 | 0.163934 | 0 | 0.018489 | 0.205172 | 7,077 | 219 | 120 | 32.315068 | 0.729778 | 0.03363 | 0 | 0.156977 | 0 | 0.034884 | 0.565574 | 0.233167 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063953 | false | 0.02907 | 0.017442 | 0 | 0.081395 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3e74f0279ac7b565e15ae42cae38266be347e34 | 11,178 | py | Python | modules/dipmath.py | mavost/boreholetools | 0b6caae86cd4e30794e5ec469383914d101d5ee3 | [
"MIT"
] | 10 | 2020-03-04T00:55:19.000Z | 2021-11-16T17:23:44.000Z | modules/dipmath.py | mavost/boreholetools | 0b6caae86cd4e30794e5ec469383914d101d5ee3 | [
"MIT"
] | null | null | null | modules/dipmath.py | mavost/boreholetools | 0b6caae86cd4e30794e5ec469383914d101d5ee3 | [
"MIT"
] | 1 | 2020-12-07T19:49:27.000Z | 2020-12-07T19:49:27.000Z | #!/usr/bin/python #Linux shebang plus chmod to make executable
# ------------------------------------------------------------
# FILENAME: dipmath.py
# VERSION: 1.0 - Python 3.6
# PURPOSE:
# AUTHOR: MVS
# LAST CHANGE: 04/09/2018
# ------------------------------------------------------------
# tools for manipulating dipm... | 39.638298 | 119 | 0.565933 | 1,434 | 11,178 | 4.332636 | 0.207113 | 0.009979 | 0.007726 | 0.007082 | 0.349429 | 0.306615 | 0.275712 | 0.243522 | 0.230484 | 0.207951 | 0 | 0.027089 | 0.296565 | 11,178 | 281 | 120 | 39.779359 | 0.763068 | 0.266327 | 0 | 0.15 | 0 | 0.01875 | 0.183734 | 0.042152 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0875 | false | 0 | 0.03125 | 0 | 0.18125 | 0.16875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3e876544f718223952354b4ac3f13e220acfbeb | 12,000 | py | Python | dependency_wxwidgets.py | madeso/build | 79f1d4e592e0f6ebd6bfa3db39cf4ba2b5ef98db | [
"MIT"
] | null | null | null | dependency_wxwidgets.py | madeso/build | 79f1d4e592e0f6ebd6bfa3db39cf4ba2b5ef98db | [
"MIT"
] | null | null | null | dependency_wxwidgets.py | madeso/build | 79f1d4e592e0f6ebd6bfa3db39cf4ba2b5ef98db | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import urllib.request
import os
import zipfile
import sys
import argparse
import re
import subprocess
###############################################################################
## Classes
class TextReplacer:
def __init__(self):
self.res = []
def add(self, reg: str, rep:... | 32.171582 | 216 | 0.660583 | 1,446 | 12,000 | 5.237206 | 0.17704 | 0.011092 | 0.013205 | 0.029711 | 0.30305 | 0.200845 | 0.13667 | 0.095471 | 0.086491 | 0.086491 | 0 | 0.011969 | 0.192333 | 12,000 | 372 | 217 | 32.258065 | 0.769397 | 0.055833 | 0 | 0.187739 | 0 | 0.003831 | 0.171016 | 0.082826 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114943 | false | 0 | 0.02682 | 0 | 0.172414 | 0.095785 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3ea11353d04c8773687b0313a1924daddc2f149 | 1,814 | py | Python | raw2dataset.py | CoderSLZhang/-LTSM- | c163d53d5177d59e18b88ae5f05b0cf3a8aecf6a | [
"MIT"
] | 4 | 2018-06-20T08:16:19.000Z | 2019-01-18T04:44:53.000Z | raw2dataset.py | CoderSLZhang/-LTSM- | c163d53d5177d59e18b88ae5f05b0cf3a8aecf6a | [
"MIT"
] | null | null | null | raw2dataset.py | CoderSLZhang/-LTSM- | c163d53d5177d59e18b88ae5f05b0cf3a8aecf6a | [
"MIT"
] | 2 | 2018-06-15T09:55:12.000Z | 2018-06-20T08:16:19.000Z | # zhangshulin
# 2018-3-17
# e-mail: zhangslwork@yeah.net
TRAIN_IN_PATH = './datasets/rawdata/train/in.txt'
TRAIN_OUT_PATH = './datasets/rawdata/train/out.txt'
TEST_IN_PATH = './datasets/rawdata/test/in.txt'
TEST_OUT_PATH = './datasets/rawdata/test/out.txt'
TOTAL_PATH = './datasets/all_couplets.txt'
def create_data_... | 34.226415 | 93 | 0.681367 | 288 | 1,814 | 3.916667 | 0.190972 | 0.06383 | 0.062057 | 0.066489 | 0.626773 | 0.605496 | 0.400709 | 0.230496 | 0.230496 | 0.230496 | 0 | 0.010767 | 0.180816 | 1,814 | 53 | 94 | 34.226415 | 0.748318 | 0.027563 | 0 | 0.0625 | 0 | 0 | 0.127768 | 0.085747 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0 | 0.0625 | 0.15625 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3ebfa36492777ce768867625106b72c8d70ef9a | 13,623 | py | Python | rayvision_c4d/analyze_c4d.py | renderbus/rayvision_c4d | e040d91c8f19c62d9722cd165bc0bedb657340b7 | [
"Apache-2.0"
] | null | null | null | rayvision_c4d/analyze_c4d.py | renderbus/rayvision_c4d | e040d91c8f19c62d9722cd165bc0bedb657340b7 | [
"Apache-2.0"
] | null | null | null | rayvision_c4d/analyze_c4d.py | renderbus/rayvision_c4d | e040d91c8f19c62d9722cd165bc0bedb657340b7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""A interface for c4d."""
# Import built-in models
from __future__ import print_function
from __future__ import unicode_literals
import base64
import hashlib
import logging
import os
import sys
import time
from builtins import str
from rayvision_c4d.constants import PACKAGE_NAME
from rayvisi... | 36.328 | 107 | 0.585701 | 1,656 | 13,623 | 4.581522 | 0.16244 | 0.023725 | 0.017135 | 0.010149 | 0.208383 | 0.099512 | 0.065111 | 0.046659 | 0.02188 | 0.014235 | 0 | 0.006691 | 0.308889 | 13,623 | 374 | 108 | 36.425134 | 0.79915 | 0.142993 | 0 | 0.096386 | 0 | 0 | 0.098749 | 0.011002 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056225 | false | 0.008032 | 0.068273 | 0 | 0.156627 | 0.036145 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3ef89e91876433fd644f579cc48aa7c9c57a992 | 656 | py | Python | main/xdg-utils/template.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | 46 | 2021-06-10T02:27:32.000Z | 2022-03-27T11:33:24.000Z | main/xdg-utils/template.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | 58 | 2021-07-03T13:58:20.000Z | 2022-03-13T16:45:35.000Z | main/xdg-utils/template.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | 6 | 2021-07-04T10:46:40.000Z | 2022-01-09T00:03:59.000Z | pkgname = "xdg-utils"
pkgver = "1.1.3"
pkgrel = 0
_commit = "d11b33ec7f24cfb1546f6b459611d440013bdc72"
build_style = "gnu_configure"
make_cmd = "gmake"
make_dir = "."
hostmakedepends = ["xmlto", "lynx", "gmake"]
depends = ["xset"]
pkgdesc = "Basic desktop integration scripts"
maintainer = "q66 <q66@chimera-linux.org>"
... | 31.238095 | 83 | 0.742378 | 75 | 656 | 6.386667 | 0.76 | 0.033403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137288 | 0.10061 | 656 | 20 | 84 | 32.8 | 0.674576 | 0.022866 | 0 | 0 | 0 | 0 | 0.552426 | 0.198748 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |