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
53d2163e9121a8465780ca2292e86cb38bfef9bd
2,614
py
Python
commons/tests/users_test.py
vvmruder/c2cgeoportal
2aa1cfbfa3872fb745db6dae1e0c4ae9a0692542
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
commons/tests/users_test.py
vvmruder/c2cgeoportal
2aa1cfbfa3872fb745db6dae1e0c4ae9a0692542
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
commons/tests/users_test.py
vvmruder/c2cgeoportal
2aa1cfbfa3872fb745db6dae1e0c4ae9a0692542
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# pylint: disable=no-self-use import pytest @pytest.fixture(scope='class') @pytest.mark.usefixtures("dbsession") def insert_users_test_data(dbsession): from c2cgeoportal_commons.models.static import User from c2cgeoportal_commons.models.main import Role user = User("babar") user.roles = [Role(name='R...
35.808219
75
0.647666
320
2,614
5.1875
0.215625
0.106024
0.15241
0.192169
0.579518
0.563855
0.563855
0.509639
0.449398
0.414458
0
0.016016
0.235654
2,614
72
76
36.305556
0.814815
0.010329
0
0.467742
0
0
0.070406
0.008511
0
0
0
0
0.225806
1
0.080645
false
0
0.193548
0
0.290323
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
53d31fb78505295f563fce92185047b15e0d6de3
25,885
py
Python
omnisync/main.py
skorokithakis/omnisync
b015f56ae7dd72bbb3714a3e061cb3cfeb5c3567
[ "BSD-2-Clause" ]
36
2015-01-17T10:11:44.000Z
2020-08-06T20:45:38.000Z
omnisync/main.py
skorokithakis/omnisync
b015f56ae7dd72bbb3714a3e061cb3cfeb5c3567
[ "BSD-2-Clause" ]
null
null
null
omnisync/main.py
skorokithakis/omnisync
b015f56ae7dd72bbb3714a3e061cb3cfeb5c3567
[ "BSD-2-Clause" ]
5
2015-01-18T11:56:17.000Z
2021-04-04T04:05:56.000Z
#!/usr/bin/env python """The main omnisync module.""" import os import sys import logging import optparse import time import locale from omnisync.configuration import Configuration from omnisync.progress import Progress from omnisync.version import VERSION from omnisync.transportmount import TransportInterface from ...
45.253497
98
0.571257
2,793
25,885
5.157895
0.150376
0.032625
0.054977
0.016868
0.294322
0.253228
0.19832
0.159309
0.124115
0.092461
0
0.000998
0.341935
25,885
571
99
45.33275
0.844722
0.117404
0
0.247086
0
0
0.113797
0.001602
0
0
0
0.001751
0
0
null
null
0.002331
0.034965
null
null
0.006993
0
0
0
null
0
0
0
0
0
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
53d36b1c67689278d35ac9ed6e964ae37d1ec217
1,973
py
Python
ALE/write_family_ll_table.py
Tancata/phylo
fb397c31b5cf4cea3c1513391b330e715da2d603
[ "MIT" ]
5
2020-11-02T06:23:36.000Z
2021-09-07T01:35:35.000Z
ALE/write_family_ll_table.py
Tancata/phylo
fb397c31b5cf4cea3c1513391b330e715da2d603
[ "MIT" ]
1
2021-11-10T13:34:23.000Z
2021-11-10T16:53:02.000Z
ALE/write_family_ll_table.py
Tancata/phylo
fb397c31b5cf4cea3c1513391b330e715da2d603
[ "MIT" ]
4
2018-07-17T13:35:20.000Z
2021-07-09T18:28:44.000Z
#!/usr/bin/env python from Bio import SeqIO, AlignIO, Phylo import re, sys, os dirs = sys.argv[1:] def check_have_reconciliations(filename, dir_list): #given a reconciliation file (e.g. in the first directory, check whether the same gene family has also been reconciled in each of the other directories have_them...
34.614035
203
0.644703
270
1,973
4.592593
0.418519
0.033871
0.026613
0.033871
0.174194
0.159677
0.067742
0
0
0
0
0.009396
0.244805
1,973
56
204
35.232143
0.822819
0.245819
0
0.244444
0
0
0.046527
0.015509
0
0
0
0
0
0
null
null
0
0.044444
null
null
0.044444
0
0
0
null
0
0
0
0
0
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
53d4679045114ade1ea080bcb79832dfb5cc746d
468
py
Python
src/sponsorApp/migrations/0013_auto_20200417_1042.py
patelgaurank/SocialSponsorProject
4a5485cc1e4576d67b8a627221c09f9448b64171
[ "MIT" ]
null
null
null
src/sponsorApp/migrations/0013_auto_20200417_1042.py
patelgaurank/SocialSponsorProject
4a5485cc1e4576d67b8a627221c09f9448b64171
[ "MIT" ]
null
null
null
src/sponsorApp/migrations/0013_auto_20200417_1042.py
patelgaurank/SocialSponsorProject
4a5485cc1e4576d67b8a627221c09f9448b64171
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-17 14:42 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sponsorApp', '0012_auto_20200417_1040'), ] operations = [ migrations.AlterField( model_name='loggeduser', ...
23.4
99
0.632479
51
468
5.72549
0.745098
0
0
0
0
0
0
0
0
0
0
0.143266
0.254274
468
19
100
24.631579
0.69341
0.096154
0
0
1
0
0.140143
0.054632
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
53da5c3d560c6bb573029d5db8115281819b578e
4,687
py
Python
very_scratch/old_core/mouse.py
ibrahemesam/Fos
f2f284a2c7bdc24dafafebb8aa3141ebf225e451
[ "BSD-3-Clause" ]
2
2016-08-03T10:33:08.000Z
2021-06-23T18:50:14.000Z
scratch/very_scratch/old_core/mouse.py
fos/fos-legacy
db6047668781a0615abcebc7d55a7164f3105047
[ "BSD-3-Clause" ]
null
null
null
scratch/very_scratch/old_core/mouse.py
fos/fos-legacy
db6047668781a0615abcebc7d55a7164f3105047
[ "BSD-3-Clause" ]
1
2021-07-11T00:16:46.000Z
2021-07-11T00:16:46.000Z
import sys import math try: import OpenGL.GL as gl import OpenGL.GLUT as glut import OpenGL.GLU as glu except ImportError: ImportError('PyOpenGL is not installed') class InteractionMatrix ( object ): """Class holding a matrix representing a rigid transformation. The current OpenGL is read in...
31.456376
92
0.625133
459
4,687
6.30719
0.294118
0.077375
0.026252
0.067703
0.422453
0.374093
0.283938
0.283938
0.260794
0.260794
0
0.01052
0.290164
4,687
148
93
31.668919
0.859633
0.02859
0
0.311688
0
0
0.006904
0
0
0
0
0
0
0
null
null
0
0.090909
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
53e3c06df7b0282aa7d775cf0071bc37e837cecc
1,587
py
Python
envoy.dependency.cve_scan/envoy/dependency/cve_scan/abstract/typing.py
phlax/abstracts
53fbbee68d1f56effe0ded1ed4e28be870693877
[ "Apache-2.0" ]
1
2021-12-09T19:24:48.000Z
2021-12-09T19:24:48.000Z
envoy.dependency.cve_scan/envoy/dependency/cve_scan/abstract/typing.py
envoyproxy/pytooling
db8b60184f8a61b3184a111b0cfaff4780511b46
[ "Apache-2.0" ]
392
2021-08-24T15:55:32.000Z
2022-03-28T14:26:22.000Z
envoy.dependency.cve_scan/envoy/dependency/cve_scan/abstract/typing.py
envoyproxy/pytooling
db8b60184f8a61b3184a111b0cfaff4780511b46
[ "Apache-2.0" ]
3
2021-10-06T13:43:11.000Z
2021-11-29T13:48:56.000Z
from typing import ( Any, Coroutine, Dict, Generator, List, Optional, Set, Tuple, TypedDict) import aiohttp from . import cve, dependency, typing # Scanner configuration class BaseCVEConfigDict(TypedDict): # non-optional attributes nist_url: str start_year: int class CVEConfigDict(BaseCVECon...
21.445946
70
0.750473
159
1,587
7.45283
0.465409
0.059072
0.080169
0
0
0
0
0
0
0
0
0.001509
0.165091
1,587
73
71
21.739726
0.89283
0.063642
0
0
0
0
0.032454
0.014875
0
0
0
0
0
1
0
false
0
0.069767
0
0.744186
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
53e590bf886c5230c8c6bf8457d2821fdd6a6c22
453
py
Python
src/posts/migrations/0004_post_read_time.py
tyagow/AdvancingTheBlog
c55037b3a6a2a8f5a8103b7a04708fda9db48f45
[ "MIT" ]
1
2016-10-01T13:18:33.000Z
2016-10-01T13:18:33.000Z
src/posts/migrations/0004_post_read_time.py
tyagow/AdvancingTheBlog
c55037b3a6a2a8f5a8103b7a04708fda9db48f45
[ "MIT" ]
null
null
null
src/posts/migrations/0004_post_read_time.py
tyagow/AdvancingTheBlog
c55037b3a6a2a8f5a8103b7a04708fda9db48f45
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-09-09 21:59 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('posts', '0003_auto_20160105_2205'), ] operations = [ migrations.AddField( ...
21.571429
58
0.613687
51
453
5.254902
0.803922
0
0
0
0
0
0
0
0
0
0
0.093373
0.267108
453
20
59
22.65
0.713855
0.143488
0
0
1
0
0.106494
0.05974
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
53eb6b89aac7fa651f63aa24a9544d9b5a3d71cc
2,720
py
Python
LoadBMPImageFileROI2.py
fabiankung/MVM_V1_5C_CNN
f26562b1c897900b88a00b88bbbf508ea71685a3
[ "MIT" ]
null
null
null
LoadBMPImageFileROI2.py
fabiankung/MVM_V1_5C_CNN
f26562b1c897900b88a00b88bbbf508ea71685a3
[ "MIT" ]
null
null
null
LoadBMPImageFileROI2.py
fabiankung/MVM_V1_5C_CNN
f26562b1c897900b88a00b88bbbf508ea71685a3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Jan 25 11:42:21 2020 The file loads a bitmap image and generate a 2D numpy array for the image, and then crop out the region-of-interest of the image file. Sometimes only a part of the image is used for training, so that we can use a smaller NN. The part of the image u...
41.846154
89
0.709926
434
2,720
4.237327
0.341014
0.063622
0.043502
0.058728
0.284937
0.261011
0.243067
0.224035
0.224035
0.224035
0
0.024157
0.193382
2,720
65
90
41.846154
0.814038
0.446324
0
0.1875
1
0
0.092254
0
0
0
0
0
0
1
0
false
0
0.03125
0
0.03125
0.15625
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
53ebab43290cc6ee6555539784623a0a8fb6e657
429
py
Python
line.py
myusei/docycle
28973bf6e457aee1e5f0318b05e79fbe904a7a2a
[ "MIT" ]
null
null
null
line.py
myusei/docycle
28973bf6e457aee1e5f0318b05e79fbe904a7a2a
[ "MIT" ]
null
null
null
line.py
myusei/docycle
28973bf6e457aee1e5f0318b05e79fbe904a7a2a
[ "MIT" ]
null
null
null
import requests class Line: LINE_NOTIFY_URL = 'https://notify-api.line.me/api/notify' def __init__(self, token): self.line_notify_token = token def send_message(self, message): headers = {'Authorization' : 'Bearer ' + self.line_notify_token} payload = {'message' : message} ...
30.642857
91
0.668998
51
429
5.372549
0.45098
0.145985
0.153285
0.138686
0
0
0
0
0
0
0
0
0.221445
429
13
92
33
0.820359
0
0
0
0
0
0.149184
0
0
0
0
0
0
1
0.2
false
0
0.1
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
53ee1df85b3df9523e0c7191266830efe6358083
605
py
Python
paste/templatetags/pygmentize.py
octomike/hellodjango
17dc0742d25687cd1bcac7075ef57c92a84c754f
[ "MIT" ]
null
null
null
paste/templatetags/pygmentize.py
octomike/hellodjango
17dc0742d25687cd1bcac7075ef57c92a84c754f
[ "MIT" ]
null
null
null
paste/templatetags/pygmentize.py
octomike/hellodjango
17dc0742d25687cd1bcac7075ef57c92a84c754f
[ "MIT" ]
null
null
null
from django import template import re import pygments from pygments.lexers import LEXERS, get_lexer_by_name from pygments import highlight from pygments.formatters import HtmlFormatter register = template.Library() @register.filter(name='pygmentize') def pygmentize(value): try: lexer = pygments.lexers.gue...
26.304348
61
0.722314
67
605
6.462687
0.432836
0.083141
0.08776
0
0
0
0
0
0
0
0
0
0.18843
605
22
62
27.5
0.881874
0
0
0.105263
0
0
0.034711
0
0
0
0
0
0
1
0.052632
false
0
0.315789
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
53f0afa560bda58a630a4b53950c07c4a7022fa7
217
py
Python
09_Day_Conditionals/6.py
diegofregolente/30-Days-Of-Python
e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267
[ "Apache-2.0" ]
null
null
null
09_Day_Conditionals/6.py
diegofregolente/30-Days-Of-Python
e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267
[ "Apache-2.0" ]
null
null
null
09_Day_Conditionals/6.py
diegofregolente/30-Days-Of-Python
e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267
[ "Apache-2.0" ]
null
null
null
fruits = ['banana', 'orange', 'mango', 'lemon'] fruit = str(input('Enter a fruit: ')).strip().lower() if fruit not in fruits: fruits.append(fruit) print(fruits) else: print(f'{fruit} already in the list')
27.125
53
0.640553
31
217
4.483871
0.709677
0
0
0
0
0
0
0
0
0
0
0
0.170507
217
7
54
31
0.772222
0
0
0
0
0
0.294931
0
0
0
0
0
0
1
0
false
0
0
0
0
0.285714
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
53f79f7c964d64af0b775cbcb797aaab71c8d80c
2,425
py
Python
tplink-smartbulb.py
hachisanju/Dumb_Bulb
9f5f49c7d0c71b756eb50f81f49978d78866ee88
[ "Apache-2.0" ]
2
2017-04-05T18:34:42.000Z
2018-08-24T14:45:39.000Z
tplink-smartbulb.py
hachisanju/Dumb_Bulb
9f5f49c7d0c71b756eb50f81f49978d78866ee88
[ "Apache-2.0" ]
null
null
null
tplink-smartbulb.py
hachisanju/Dumb_Bulb
9f5f49c7d0c71b756eb50f81f49978d78866ee88
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # # This code is HEAVILY based on tplink_smartplug.py by # Lubomir Stroetmann and is Copyrighted 2016 softScheck GmbH # The original source code is under the Apache License: # # http://www.apache.org/licenses/LICENSE-2.0 # # It can be found here: # # https://github.com/softScheck/tplink-smar...
27.247191
143
0.687835
348
2,425
4.721264
0.497126
0.017042
0.012782
0.043822
0.150943
0.124163
0.124163
0.124163
0.124163
0.049909
0
0.014399
0.169485
2,425
88
144
27.556818
0.80139
0.265155
0
0.32
0
0
0.255695
0.111048
0.02
0
0
0
0
0
null
null
0
0.04
null
null
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
53faec7ad37741a1746624ae12bdf3ea0aa248ef
1,165
py
Python
toggle-tablet-mode.py
Rd8D/toggle-tablet-mode
2b5c3c0531e2679ee4d60b2f5b0db967f38627c1
[ "MIT" ]
null
null
null
toggle-tablet-mode.py
Rd8D/toggle-tablet-mode
2b5c3c0531e2679ee4d60b2f5b0db967f38627c1
[ "MIT" ]
null
null
null
toggle-tablet-mode.py
Rd8D/toggle-tablet-mode
2b5c3c0531e2679ee4d60b2f5b0db967f38627c1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import re def main() -> None: keyboard_id = get_keyboard() touchpad_id = get_touchpad() toggle_device(keyboard_id) toggle_device(touchpad_id) rotate_display() def get_keyboard(device: str = 'AT Translated Set 2 keyboard'): meta = run('xinput --list | grep "%s"' % device) m = r...
27.093023
86
0.654936
177
1,165
4.169492
0.344633
0.04878
0.052846
0.069106
0.162602
0.105691
0.105691
0.105691
0.105691
0.105691
0
0.008188
0.161373
1,165
42
87
27.738095
0.747185
0.018026
0
0.125
0
0.03125
0.268591
0
0
0
0
0
0
1
0.21875
false
0
0.0625
0.03125
0.40625
0
0
0
0
null
0
0
0
0
0
0
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
9902c69850aff45b7f9b6b245ab6d9455b780211
1,717
py
Python
planegeometry/structures/tests/test_edges.py
ufkapano/planegeometry
fa9309a4e867acedd635665f32d7f59a8eeaf2e3
[ "BSD-3-Clause" ]
null
null
null
planegeometry/structures/tests/test_edges.py
ufkapano/planegeometry
fa9309a4e867acedd635665f32d7f59a8eeaf2e3
[ "BSD-3-Clause" ]
null
null
null
planegeometry/structures/tests/test_edges.py
ufkapano/planegeometry
fa9309a4e867acedd635665f32d7f59a8eeaf2e3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python import unittest from planegeometry.structures.edges import Edge class TestDirectedEdge(unittest.TestCase): def setUp(self): self.edge1 = Edge(2, 4) self.edge2 = Edge("A", "B", 5) self.edge3 = Edge(1, 3, 2) self.edge4 = Edge(1, 2) def test_repr(self): ...
31.218182
64
0.601631
226
1,717
4.522124
0.199115
0.149706
0.101761
0.135029
0.696673
0.650685
0.458904
0.291585
0.241683
0.109589
0
0.04893
0.238206
1,717
54
65
31.796296
0.732416
0.020967
0
0.073171
0
0
0.053667
0
0
0
0
0
0.487805
1
0.121951
false
0.02439
0.04878
0
0.195122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
990811be1a7ce489c00e9207e80f605c4652d7bf
10,555
py
Python
tests/util/test_dotted_path.py
lgfunderburk/ploomber
b631a1b21da64bb7b9525db1c29c32ee3c0e48b4
[ "Apache-2.0" ]
2,141
2020-02-14T02:34:34.000Z
2022-03-31T22:43:20.000Z
tests/util/test_dotted_path.py
lgfunderburk/ploomber
b631a1b21da64bb7b9525db1c29c32ee3c0e48b4
[ "Apache-2.0" ]
660
2020-02-06T16:15:57.000Z
2022-03-31T22:55:01.000Z
tests/util/test_dotted_path.py
lgfunderburk/ploomber
b631a1b21da64bb7b9525db1c29c32ee3c0e48b4
[ "Apache-2.0" ]
122
2020-02-14T18:53:05.000Z
2022-03-27T22:33:24.000Z
import inspect from pathlib import Path from unittest.mock import Mock import parso from test_pkg import functions import pytest from ploomber.util import dotted_path from ploomber.exceptions import SpecValidationError from ploomber.sources.inspect import getfile @pytest.mark.parametrize('spec', [ 'test_pkg.fun...
26.061728
79
0.628138
1,282
10,555
4.847894
0.158346
0.106195
0.025101
0.019308
0.514722
0.431376
0.376508
0.336766
0.288496
0.221239
0
0.004983
0.25855
10,555
404
80
26.126238
0.789164
0.01819
0
0.360544
0
0
0.275369
0.037945
0
0
0
0.002475
0.068027
1
0.064626
false
0.05102
0.105442
0
0.187075
0
0
0
0
null
0
0
0
0
0
0
0
0
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
9908ec943689b10bf2632ed9c2d802d3d3930b95
1,036
py
Python
pcdsdevices/lic.py
ghalym/pcdsdevices
0427e1b92b10e305bdd29cd3a968ce913bae60aa
[ "BSD-3-Clause-LBNL" ]
3
2019-06-17T20:08:54.000Z
2022-01-11T17:55:21.000Z
pcdsdevices/lic.py
ghalym/pcdsdevices
0427e1b92b10e305bdd29cd3a968ce913bae60aa
[ "BSD-3-Clause-LBNL" ]
757
2017-12-21T23:16:41.000Z
2022-03-31T22:56:06.000Z
pcdsdevices/lic.py
ghalym/pcdsdevices
0427e1b92b10e305bdd29cd3a968ce913bae60aa
[ "BSD-3-Clause-LBNL" ]
38
2018-01-26T00:01:35.000Z
2022-02-17T00:48:55.000Z
from ophyd import Component as Cpt from .device import GroupDevice from .epics_motor import BeckhoffAxisNoOffset from .interface import BaseInterface, LightpathInOutMixin from .pmps import TwinCATStatePMPS class LICMirror(TwinCATStatePMPS): """ Standard TwinCATStatePMPS motion. The LICMirror does not bl...
28.777778
71
0.684363
124
1,036
5.66129
0.612903
0.021368
0.047009
0.051282
0
0
0
0
0
0
0
0.005031
0.232625
1,036
35
72
29.6
0.877987
0.241313
0
0
0
0
0.185734
0
0
0
0
0
0
1
0
false
0
0.277778
0
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
54cae6b01b1345442f2df3efbcd37615dcce30f5
1,775
py
Python
onthefly/backend/__init__.py
jayvdb/onthefly
b7442e96df44252ad7a68e679b109afb30fbb6a0
[ "MIT" ]
23
2016-12-26T05:40:02.000Z
2021-11-15T09:52:25.000Z
onthefly/backend/__init__.py
jayvdb/onthefly
b7442e96df44252ad7a68e679b109afb30fbb6a0
[ "MIT" ]
4
2017-01-02T21:40:28.000Z
2020-06-01T18:14:53.000Z
onthefly/backend/__init__.py
jayvdb/onthefly
b7442e96df44252ad7a68e679b109afb30fbb6a0
[ "MIT" ]
13
2016-12-29T00:29:35.000Z
2021-01-13T07:58:20.000Z
class Backend(object): # should be implemented all methods def set(self, name, value): raise NotImplementedError() def get(self, name): raise NotImplementedError() def delete(self, name): raise NotImplementedError() def set_fields(self): raise NotImplementedError()...
26.893939
53
0.626479
209
1,775
5.157895
0.200957
0.06679
0.12616
0.051948
0.368275
0.175325
0.156772
0.156772
0.156772
0.109462
0
0
0.287887
1,775
65
54
27.307692
0.852848
0.018592
0
0.265306
0
0
0.004598
0
0
0
0
0
0
1
0.285714
false
0
0
0.020408
0.44898
0
0
0
0
null
0
0
0
0
0
0
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
54cbdfccd2939fce7954407fa50fd1db702da820
527
py
Python
wildlifecompliance/migrations/0194_auto_20200115_1526.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
1
2020-12-07T17:12:40.000Z
2020-12-07T17:12:40.000Z
wildlifecompliance/migrations/0194_auto_20200115_1526.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
14
2020-01-08T08:08:26.000Z
2021-03-19T22:59:46.000Z
wildlifecompliance/migrations/0194_auto_20200115_1526.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
15
2020-01-08T08:02:28.000Z
2021-11-03T06:48:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2020-01-15 07:26 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('wildlifecompliance', '0193_auto_20191227_1146'), ] operations = [ migrations.AlterM...
26.35
128
0.677419
52
527
6.653846
0.769231
0.063584
0
0
0
0
0
0
0
0
0
0.07971
0.214421
527
19
129
27.736842
0.756039
0.129032
0
0
1
0
0.348684
0.109649
0
0
0
0
0
1
0
false
0
0.166667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
54ccdff9e6155bfb077e6e0972874980143fbc0d
6,492
py
Python
pysc2/lib/units.py
zeuseyera/pysc2
df837baa43afd486d9f70a83c64bf12ff1962781
[ "Apache-2.0" ]
20
2019-03-04T08:32:29.000Z
2020-09-25T10:27:28.000Z
pysc2/lib/units.py
zeuseyera/pysc2
df837baa43afd486d9f70a83c64bf12ff1962781
[ "Apache-2.0" ]
null
null
null
pysc2/lib/units.py
zeuseyera/pysc2
df837baa43afd486d9f70a83c64bf12ff1962781
[ "Apache-2.0" ]
6
2019-03-04T09:29:31.000Z
2020-01-27T15:03:28.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
23.693431
77
0.741528
623
6,492
7.70305
0.906902
0.012503
0.010002
0.006668
0
0
0
0
0
0
0
0.127234
0.207024
6,492
273
78
23.78022
0.804973
0.112138
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.016393
0
1
0.004098
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
54d00f693ecd00cd1780ac146e3ee788ce46066e
3,105
py
Python
src/obstools/image/sample.py
astromancer/obstools
c83f562a4f602cbe4420bec07308159761818a79
[ "MIT" ]
null
null
null
src/obstools/image/sample.py
astromancer/obstools
c83f562a4f602cbe4420bec07308159761818a79
[ "MIT" ]
null
null
null
src/obstools/image/sample.py
astromancer/obstools
c83f562a4f602cbe4420bec07308159761818a79
[ "MIT" ]
null
null
null
import numbers import numpy as np from recipes.logging import LoggingMixin class BootstrapResample(LoggingMixin): # Sampling with replacement # Draw a sample of `n` arrays randomly from the index interval `subset` # along the given axis def __init__(self, data, sample_size=None, subset=None, axis=0...
29.018692
79
0.574235
384
3,105
4.554688
0.273438
0.062893
0.064037
0.042882
0.298456
0.287593
0.273299
0.223556
0.1498
0.1498
0
0.00379
0.320129
3,105
107
80
29.018692
0.824728
0.408374
0
0
0
0
0.114815
0
0
0
0
0
0
1
0.171429
false
0
0.085714
0.114286
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
0
1
0
0
0
1
54d073e1bdd4d548438f2f2babe8f99fadd9e0a4
469
py
Python
hackerearth/Algorithms/Mirror of Mahatma Gandhi/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerearth/Algorithms/Mirror of Mahatma Gandhi/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerearth/Algorithms/Mirror of Mahatma Gandhi/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ # Write your code here x = ['0', '1', '8'] t = int(int(input())) f...
24.684211
94
0.560768
72
469
3.638889
0.708333
0.045802
0
0
0
0
0
0
0
0
0
0.011662
0.268657
469
18
95
26.055556
0.752187
0.567164
0
0
0
0
0.041026
0
0
0
0
0.055556
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
54d1255a20547bf4a9242d432c13fb301773688b
680
py
Python
4. project_ Create a Movie Trailer Website/media.py
anton415/Intro_to_programming
1aacb2971afc6364cdd8a2dd07edacfbf9e2bace
[ "Apache-2.0" ]
null
null
null
4. project_ Create a Movie Trailer Website/media.py
anton415/Intro_to_programming
1aacb2971afc6364cdd8a2dd07edacfbf9e2bace
[ "Apache-2.0" ]
null
null
null
4. project_ Create a Movie Trailer Website/media.py
anton415/Intro_to_programming
1aacb2971afc6364cdd8a2dd07edacfbf9e2bace
[ "Apache-2.0" ]
null
null
null
import webbrowser class Movie(): ''' Movie class. ''' def __init__(self, movie_title, movie_storyline, poster_image, trailer_youtube): ''' Init method. :param movie_title: title. :param movie_storyline: storyline. :param poster_image: poster. :param trail...
26.153846
84
0.614706
71
680
5.549296
0.295775
0.177665
0.091371
0.106599
0
0
0
0
0
0
0
0
0.297059
680
25
85
27.2
0.824268
0.269118
0
0
0
0
0
0
0
0
0
0
0
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
54d3a039fd3476056867083fdc7e7763847179b6
3,996
py
Python
qinhaifang/src/evalTools/script/spaceNet/evalTools.py
SpaceNetChallenge/BuildingFootprintDetectors
3def3c44b5847c744cd2f3356182892d92496579
[ "Apache-2.0" ]
161
2017-02-03T05:33:01.000Z
2022-03-31T02:11:21.000Z
qinhaifang/src/evalTools/script/spaceNet/evalTools.py
SpaceNetChallenge/BuildingFootprintDetectors
3def3c44b5847c744cd2f3356182892d92496579
[ "Apache-2.0" ]
5
2017-02-03T05:51:38.000Z
2019-06-18T18:54:00.000Z
qinhaifang/src/evalTools/script/spaceNet/evalTools.py
SpaceNetChallenge/BuildingFootprintDetectors
3def3c44b5847c744cd2f3356182892d92496579
[ "Apache-2.0" ]
76
2017-03-23T23:15:46.000Z
2022-02-10T21:58:18.000Z
import numpy as np import geoTools as gT from osgeo import ogr def iou(test_poly, truth_polys, truth_index=[]): fidlistArray = [] iou_list = [] if truth_index: fidlist = gT.search_rtree(test_poly, truth_index) for fid in fidlist: intersection_result = test_poly.Intersection(tru...
36.327273
123
0.64965
480
3,996
5.06875
0.189583
0.065762
0.059186
0.032881
0.482532
0.438964
0.403617
0.330456
0.300863
0.285245
0
0.00743
0.259009
3,996
109
124
36.66055
0.814252
0.085836
0
0.346667
0
0
0.010431
0
0
0
0
0
0
0
null
null
0
0.04
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
54e79b3186a64854c28b6f8987c59b6504ff246a
363
py
Python
tests/__init__.py
h4ck3rm1k3/scrapy
59dcdbe84769c9d204f552a2b545b1e096a2d42c
[ "BSD-3-Clause" ]
26
2015-02-07T17:35:26.000Z
2020-04-27T21:11:00.000Z
tests/__init__.py
h4ck3rm1k3/scrapy
59dcdbe84769c9d204f552a2b545b1e096a2d42c
[ "BSD-3-Clause" ]
2
2021-09-20T19:54:29.000Z
2022-03-22T21:47:39.000Z
tests/__init__.py
h4ck3rm1k3/scrapy
59dcdbe84769c9d204f552a2b545b1e096a2d42c
[ "BSD-3-Clause" ]
9
2015-09-21T08:17:20.000Z
2021-02-07T02:31:36.000Z
""" tests: this package contains all Scrapy unittests see http://doc.scrapy.org/en/latest/contributing.html#running-tests """ import os tests_datadir = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'sample_data') def get_testdata(*paths): """Return test data""" path = os.path.join(tests_datadir, ...
24.2
87
0.713499
53
363
4.735849
0.660377
0.095618
0.079681
0
0
0
0
0
0
0
0
0
0.123967
363
14
88
25.928571
0.789308
0.371901
0
0
0
0
0.060465
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
54e902ba56c3c52b1328bf934f63b0f4c931fa04
490
py
Python
config/urls.py
dclimber/base-example-django-project
9dbd9b18b4c0505a7b3cb2e4f6f1961743a6caf4
[ "MIT" ]
null
null
null
config/urls.py
dclimber/base-example-django-project
9dbd9b18b4c0505a7b3cb2e4f6f1961743a6caf4
[ "MIT" ]
null
null
null
config/urls.py
dclimber/base-example-django-project
9dbd9b18b4c0505a7b3cb2e4f6f1961743a6caf4
[ "MIT" ]
null
null
null
from django.conf import settings from django.contrib import admin from django.urls import path urlpatterns = [ path('admin/', admin.site.urls), ] if settings.DEBUG: from django.conf.urls.static import static from django.contrib.staticfiles.urls import staticfiles_urlpatterns # Serve static and media ...
27.222222
71
0.753061
60
490
6.066667
0.4
0.137363
0.076923
0
0
0
0
0
0
0
0
0
0.173469
490
17
72
28.823529
0.898765
0.106122
0
0
0
0
0.013761
0
0
0
0
0
0
1
0
false
0
0.384615
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
54ec7e771cb4c1f7d357a92edc1d7cd8f94c46d4
6,342
py
Python
src/sas/sasgui/guiframe/proxy.py
andyfaff/sasview
c00a797ab9c4ddc60f0fa8a64ae8a2067c225921
[ "BSD-3-Clause" ]
null
null
null
src/sas/sasgui/guiframe/proxy.py
andyfaff/sasview
c00a797ab9c4ddc60f0fa8a64ae8a2067c225921
[ "BSD-3-Clause" ]
null
null
null
src/sas/sasgui/guiframe/proxy.py
andyfaff/sasview
c00a797ab9c4ddc60f0fa8a64ae8a2067c225921
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import urllib2 import sys import json import logging import re logger = logging.getLogger(__name__) ''' HTTP Proxy parser and Connection connect() function: - auto detects proxy in windows, osx - in ux systems, the http_pro...
38.670732
105
0.574424
732
6,342
4.836066
0.311475
0.040395
0.014124
0.009322
0.144633
0.091525
0.077401
0.077401
0.077401
0.077401
0
0.008319
0.336645
6,342
163
106
38.907975
0.833135
0.102807
0
0.2
0
0
0.127796
0.043189
0
0
0
0
0
0
null
null
0
0.095238
null
null
0.038095
0
0
0
null
0
0
0
0
0
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
54fa2439b499b5cc0e99ee632ba36dfe430adc68
2,241
py
Python
bdemeta/types.py
tdoug870/bdemeta
34057c04d591e8cfcd01b3b39230166bb7471bb6
[ "Unlicense" ]
null
null
null
bdemeta/types.py
tdoug870/bdemeta
34057c04d591e8cfcd01b3b39230166bb7471bb6
[ "Unlicense" ]
null
null
null
bdemeta/types.py
tdoug870/bdemeta
34057c04d591e8cfcd01b3b39230166bb7471bb6
[ "Unlicense" ]
null
null
null
# bdemeta.types import os class Target(str): def __new__(cls, name, *args): return str.__new__(cls, name) def __init__(self, name, dependencies): self._dependencies = dependencies self.has_output = True self.lazily_bound = False self.overrides = None def d...
26.678571
58
0.598394
252
2,241
5.007937
0.178571
0.038035
0.028526
0.050713
0.534865
0.467512
0.429477
0.316165
0.213946
0.213946
0
0
0.303436
2,241
83
59
27
0.808456
0.005801
0
0.387097
0
0
0.01618
0
0
0
0
0
0
1
0.290323
false
0
0.016129
0.096774
0.467742
0
0
0
0
null
0
0
0
0
0
0
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
54fe91a7b33392640fd4462e9558b1fd29adcb35
14,143
py
Python
download/xml_pickle/xml_pickle-0.30.py
DavidMertz/gnosis-web
df5ab0d470a02ed6c51c971f2b40f1dcdc7d7350
[ "CC0-1.0" ]
null
null
null
download/xml_pickle/xml_pickle-0.30.py
DavidMertz/gnosis-web
df5ab0d470a02ed6c51c971f2b40f1dcdc7d7350
[ "CC0-1.0" ]
null
null
null
download/xml_pickle/xml_pickle-0.30.py
DavidMertz/gnosis-web
df5ab0d470a02ed6c51c971f2b40f1dcdc7d7350
[ "CC0-1.0" ]
null
null
null
"""Store Python objects to (pickle-like) XML Documents Note 0: See http://gnosis.cx/publish/programming/xml_matters_1.txt for a detailed discussion of this module. Note 1: The XML-SIG distribution is changed fairly frequently while it is in beta versions. The changes in turn are extremely likel...
35.094293
79
0.600014
1,825
14,143
4.46411
0.241644
0.021603
0.025776
0.019639
0.272002
0.21603
0.173438
0.169756
0.155886
0.142384
0
0.011137
0.269886
14,143
402
80
35.181592
0.777842
0.077636
0
0.256604
0
0
0.267952
0.007491
0
0
0
0
0
0
null
null
0.011321
0.022642
null
null
0.022642
0
0
0
null
0
0
0
0
0
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
070ad3ea276d38d20342d7ceceb4fcf45ba6727d
3,325
py
Python
cse4308-ai/wumpus/check_true_false.py
mqt0029/univ-courses
d3f565adf7cc1312f8eaf3d6fb83362b1a4cef33
[ "MIT" ]
null
null
null
cse4308-ai/wumpus/check_true_false.py
mqt0029/univ-courses
d3f565adf7cc1312f8eaf3d6fb83362b1a4cef33
[ "MIT" ]
null
null
null
cse4308-ai/wumpus/check_true_false.py
mqt0029/univ-courses
d3f565adf7cc1312f8eaf3d6fb83362b1a4cef33
[ "MIT" ]
1
2021-03-24T21:13:18.000Z
2021-03-24T21:13:18.000Z
#------------------------------------------------------------------------------- # Student Name: Minh Tram # Student ID: 1001540029 # Section: CSE4308-001 # Name: check_true_false # Purpose: Main entry into logic program. Reads input files, creates # base, tests statement, and generates result ...
32.920792
97
0.6
397
3,325
4.924433
0.312343
0.046036
0.016368
0.024552
0.348338
0.302813
0.278261
0.278261
0.278261
0.226087
0
0.015188
0.247519
3,325
100
98
33.25
0.766187
0.295038
0
0.444444
0
0.015873
0.152389
0.011623
0
0
0
0
0
0
null
null
0
0.031746
null
null
0.222222
0
0
0
null
0
0
0
0
0
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
070df6c93a285e90436b4dcb887864a87ab29f4b
405
py
Python
main.py
dev-everaldo-cyrino/EstruturaSequencial---05
8e0efae2c2b12ee76344053e37efc1e5627170fe
[ "MIT" ]
null
null
null
main.py
dev-everaldo-cyrino/EstruturaSequencial---05
8e0efae2c2b12ee76344053e37efc1e5627170fe
[ "MIT" ]
null
null
null
main.py
dev-everaldo-cyrino/EstruturaSequencial---05
8e0efae2c2b12ee76344053e37efc1e5627170fe
[ "MIT" ]
null
null
null
hora = int(input('quantas horas trabalha por mes: ')) money = float(input('quanto ganha por hora: ')) salario = hora * money ir = salario * 0.11 inss = salario * 0.08 sindicato = salario * 0.05 salario2 = (((salario - ir)-inss)-sindicato) print(''' + Salário Bruto : R${} - IR (11%) : R${} - INSS (8%) : R${} - Sindicato...
31.153846
71
0.624691
57
405
4.438596
0.508772
0.094862
0.102767
0.173913
0
0
0
0
0
0
0
0.044248
0.162963
405
13
71
31.153846
0.702065
0
0
0
0
0
0.406404
0
0
0
0
0
0
1
0
false
0
0
0
0
0.076923
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
07109f85f3425477a6e77b4fedb239b2c962b712
16,728
py
Python
arg.py
nasrudin2468/pye-motion
5c0d914d5700918d5aa844f1ec148bc3736d6553
[ "MIT" ]
5
2017-08-25T01:50:45.000Z
2021-08-22T20:58:27.000Z
arg.py
nasrudin2468/pye-motion
5c0d914d5700918d5aa844f1ec148bc3736d6553
[ "MIT" ]
4
2017-08-27T10:53:27.000Z
2017-09-20T13:09:12.000Z
arg.py
nasrudin2468/pye-motion
5c0d914d5700918d5aa844f1ec148bc3736d6553
[ "MIT" ]
null
null
null
################################################################################ # # pye-motion - an open source diagnostic toolkit for BH E-bike systems # This code is released under MIT license. # # Copyright (c) 2017 nasrudin2468 # # Permission is hereby granted, free of charge, to any person obtaining a copy # of t...
36.207792
709
0.583393
2,189
16,728
4.455916
0.254911
0.124257
0.010457
0.013533
0.438487
0.407423
0.376461
0.365081
0.341706
0.331044
0
0.07265
0.168101
16,728
461
710
36.286334
0.62827
0.185258
0
0.613861
0
0.039604
0.337931
0.055095
0
0
0
0
0
1
0.023102
false
0.006601
0.049505
0
0.075908
0.422442
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0716f0f8a8edc029bc4cf32938da19aa701227ad
2,646
py
Python
day4B.py
jjayala1/adventofCode2020
d5587fd812368d2ff24f215d904ddf258dd0a4a8
[ "MIT" ]
null
null
null
day4B.py
jjayala1/adventofCode2020
d5587fd812368d2ff24f215d904ddf258dd0a4a8
[ "MIT" ]
null
null
null
day4B.py
jjayala1/adventofCode2020
d5587fd812368d2ff24f215d904ddf258dd0a4a8
[ "MIT" ]
null
null
null
# Advent of Code - Day 4 valid_passport_data = { 'ecl', 'pid', 'eyr', 'hcl', 'byr', 'iyr', 'hgt', } count_required_data = len(valid_passport_data) def ecl_rule(value): return value in {'amb', 'blu', 'brn', 'gry', 'grn', 'hzl', 'oth'} def pid_rule(value): try: int(value) isnumber = True...
23.625
70
0.558201
326
2,646
4.368098
0.291411
0.067416
0.042135
0.064607
0.135534
0.107444
0.107444
0.107444
0.107444
0.107444
0
0.030218
0.324641
2,646
111
71
23.837838
0.766648
0.013228
0
0.276596
0
0
0.03911
0
0
0
0
0
0
1
0.095745
false
0.202128
0
0.010638
0.276596
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
071795caec86705a1f38ea9dda836d3efd4df72c
2,219
py
Python
stamper/hashes.py
ISTU-Labs/stumper
ef9d528fc6b9b78090a1613ffe737ed87d4b2d05
[ "MIT" ]
null
null
null
stamper/hashes.py
ISTU-Labs/stumper
ef9d528fc6b9b78090a1613ffe737ed87d4b2d05
[ "MIT" ]
null
null
null
stamper/hashes.py
ISTU-Labs/stumper
ef9d528fc6b9b78090a1613ffe737ed87d4b2d05
[ "MIT" ]
null
null
null
import bcrypt import mmh3 as mmh3 def get_hashed_password(plain_text_password): # Хэширует пароль в фазе его задания # Используется модуль bcrypt, соль записывается в сам хэш plain_text_password = as_bytes(plain_text_password) return bcrypt.hashpw(plain_text_password, bcrypt.gensalt()).decode("utf-8")...
24.932584
79
0.653898
301
2,219
4.717608
0.312292
0.042254
0.107746
0.088732
0.293662
0.199296
0.199296
0.199296
0.141549
0.141549
0
0.022928
0.233438
2,219
88
80
25.215909
0.811875
0.145561
0
0.309091
0
0
0.017771
0
0
0
0
0
0
1
0.181818
false
0.127273
0.036364
0.036364
0.472727
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
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
071b984c53dc0df13f2d55d932737bea62347a1e
214
pyw
Python
tk10.pyw
xuezhulong/tkinter_sample
c71c595be8b03ced30169936a0dd2fddac79c1f0
[ "MIT" ]
null
null
null
tk10.pyw
xuezhulong/tkinter_sample
c71c595be8b03ced30169936a0dd2fddac79c1f0
[ "MIT" ]
null
null
null
tk10.pyw
xuezhulong/tkinter_sample
c71c595be8b03ced30169936a0dd2fddac79c1f0
[ "MIT" ]
null
null
null
# -*- conding: utf-8 -*- import tkinter as tk root = tk.Tk() lb = tk.Label(text="M S ゴシック, サイズ20, 太字でない, 斜体, 下線なし, 取消線あり", font=("M S ゴシック", 20,"normal", "italic", "normal", "overstrike")) lb.pack() root.mainloop()
35.666667
127
0.626168
35
214
3.828571
0.742857
0.029851
0.089552
0
0
0
0
0
0
0
0
0.027174
0.140187
214
6
128
35.666667
0.701087
0.102804
0
0
0
0
0.39267
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
071cc6e79e6847b420962aca2ccdf8a74b0584ef
465
py
Python
newsgac/nlp_tools/factory.py
newsgac/newsgac
7503783521afd6fb755fef164ec7e8660955a783
[ "Apache-2.0" ]
3
2019-04-05T13:40:12.000Z
2019-08-01T10:51:40.000Z
newsgac/nlp_tools/factory.py
newsgac/newsgac
7503783521afd6fb755fef164ec7e8660955a783
[ "Apache-2.0" ]
143
2018-12-18T10:38:16.000Z
2022-03-21T19:02:48.000Z
newsgac/nlp_tools/factory.py
Tommos0/newsgac
7503783521afd6fb755fef164ec7e8660955a783
[ "Apache-2.0" ]
1
2020-01-23T09:19:49.000Z
2020-01-23T09:19:49.000Z
from newsgac.nlp_tools import FrogTFIDF from newsgac.nlp_tools.models.frog import Frog from newsgac.nlp_tools.models.tfidf import TFIDF tools = [Frog, TFIDF, FrogTFIDF] def create_nlp_tool(tag, with_defaults=True, **kwargs): for tool in tools: if tool.tag == tag: if with_defaults: ...
31
55
0.649462
63
465
4.68254
0.412698
0.111864
0.142373
0.19322
0.169492
0
0
0
0
0
0
0
0.255914
465
14
56
33.214286
0.852601
0
0
0
0
0
0.053763
0
0
0
0
0
0
1
0.083333
false
0
0.25
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
07240a568ff0689a0fda845bdf52a41af66d20cb
871
py
Python
contact/models.py
Junon72/DreamsOnWheels
f3b1691c36994a35be1d1e8e928730c118c01f4b
[ "PostgreSQL" ]
null
null
null
contact/models.py
Junon72/DreamsOnWheels
f3b1691c36994a35be1d1e8e928730c118c01f4b
[ "PostgreSQL" ]
6
2020-06-19T14:38:15.000Z
2021-09-22T18:58:50.000Z
contact/models.py
Junon72/DreamsOnWheels
f3b1691c36994a35be1d1e8e928730c118c01f4b
[ "PostgreSQL" ]
1
2020-06-29T10:10:54.000Z
2020-06-29T10:10:54.000Z
from django.db import models CONTACT_STATUS_CHOICES = [ ('n', 'New'), ('r', 'Sales read'), ('f', 'Sales follow'), ('d', 'Sales done'), ('c', 'Contributor request'), ('e', 'Contributor in exchange'), ('a', 'Contributor done'), ('or', 'Other read'), ('of', 'Other follow'), ('od', ...
28.096774
65
0.622273
107
871
4.915888
0.514019
0.142586
0.171103
0.228137
0.211027
0.211027
0.211027
0
0
0
0
0.018786
0.205511
871
31
66
28.096774
0.741329
0
0
0
0
0
0.194954
0.029817
0
0
0
0
0
1
0.038462
false
0
0.038462
0.038462
0.423077
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
072447216d2d14e16e007ac028cdb2d73c8a7c2a
4,785
py
Python
test/jit/test_custom_operators.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
60,067
2017-01-18T17:21:31.000Z
2022-03-31T21:37:45.000Z
test/jit/test_custom_operators.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
66,955
2017-01-18T17:21:38.000Z
2022-03-31T23:56:11.000Z
test/jit/test_custom_operators.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
19,210
2017-01-18T17:45:04.000Z
2022-03-31T23:51:56.000Z
import os import sys import unittest import torch # Make the helper files in test/ importable pytorch_test_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.path.append(pytorch_test_dir) from torch.testing._internal.jit_utils import JitTestCase if __name__ == '__main__': raise RuntimeError("...
35.183824
92
0.638036
611
4,785
4.749591
0.276596
0.071675
0.049621
0.038594
0.389731
0.301861
0.216402
0.158511
0.137147
0.039283
0
0.013162
0.237827
4,785
135
93
35.444444
0.782561
0.030721
0
0.321101
0
0
0.148899
0
0
0
0
0
0.201835
1
0.165138
false
0.06422
0.055046
0.027523
0.275229
0
0
0
0
null
0
0
0
0
0
0
0
0
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
0724c50b08338b09abd3d844331f8996f26a392f
691
py
Python
Authentication/migrations/0005_auto_20180127_0703.py
zhuxiyulu/CloudJudge
62ef8d75b0ddd194ea9813ec9df1f7baaa768f69
[ "Apache-2.0" ]
1
2018-02-07T05:14:28.000Z
2018-02-07T05:14:28.000Z
Authentication/migrations/0005_auto_20180127_0703.py
zhuxiyulu/CloudJudge
62ef8d75b0ddd194ea9813ec9df1f7baaa768f69
[ "Apache-2.0" ]
null
null
null
Authentication/migrations/0005_auto_20180127_0703.py
zhuxiyulu/CloudJudge
62ef8d75b0ddd194ea9813ec9df1f7baaa768f69
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.1 on 2018-01-27 07:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Authentication', '0004_auto_20180127_0656'), ] operations = [ migrations.RenameField( model_name='user', old_name='a...
24.678571
82
0.581766
62
691
6.33871
0.677419
0.068702
0.099237
0.086514
0
0
0
0
0
0
0
0.066946
0.308249
691
27
83
25.592593
0.75523
0.065123
0
0.285714
1
0
0.189441
0.035714
0
0
0
0
0
1
0
false
0
0.047619
0
0.190476
0
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
072b49c40a4d6e3ac7dd166e425765d6213902c6
834
py
Python
src/containers/dev_container.py
bertini36/serverless-comments-engine
967659814bf65da729cb4b58e8cbffb2fdd92826
[ "MIT" ]
null
null
null
src/containers/dev_container.py
bertini36/serverless-comments-engine
967659814bf65da729cb4b58e8cbffb2fdd92826
[ "MIT" ]
null
null
null
src/containers/dev_container.py
bertini36/serverless-comments-engine
967659814bf65da729cb4b58e8cbffb2fdd92826
[ "MIT" ]
null
null
null
from dependency_injector import containers, providers from dependency_injector.ext import flask from flask import Flask from ..entrypoints.infrastructure import controllers from ..modules.comments.infrastructure.repository.inmemory_comments_repository import ( # noqa InMemoryCommentsRepository, ) class DevAppCo...
33.36
95
0.78777
87
834
7.321839
0.471264
0.169545
0.069074
0.075353
0
0
0
0
0
0
0
0
0.152278
834
24
96
34.75
0.90099
0.085132
0
0
0
0
0.028947
0.028947
0
0
0
0
0
1
0
false
0
0.277778
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
073ac531c49b48f8651ed7b6f22380ffd2bb5e0f
812
py
Python
kornia/contrib/lambda_module.py
Ishticode/kornia
974abb43ec72d12dbd244a2fb247bbbab8498de0
[ "ECL-2.0", "Apache-2.0" ]
4,894
2019-10-24T15:51:39.000Z
2022-03-30T22:58:33.000Z
kornia/contrib/lambda_module.py
Ishticode/kornia
974abb43ec72d12dbd244a2fb247bbbab8498de0
[ "ECL-2.0", "Apache-2.0" ]
912
2019-10-24T16:08:42.000Z
2022-03-31T19:07:09.000Z
kornia/contrib/lambda_module.py
Ishticode/kornia
974abb43ec72d12dbd244a2fb247bbbab8498de0
[ "ECL-2.0", "Apache-2.0" ]
557
2019-10-24T16:02:43.000Z
2022-03-28T07:33:33.000Z
from typing import Callable import torch import torch.nn as nn class Lambda(nn.Module): """Applies user-defined lambda as a transform. Args: func: Callable function. Returns: The output of the user-defined lambda. Example: >>> import kornia >>> x = torch.rand(1, 3, ...
24.606061
98
0.591133
107
812
4.35514
0.542056
0.051502
0.072961
0
0
0
0
0
0
0
0
0.013582
0.274631
812
32
99
25.375
0.777589
0.381773
0
0
0
0
0.146341
0.059867
0
0
0
0
0
1
0.181818
false
0
0.272727
0.090909
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
073fddd9e4ad9e5351c83d408d7c62ff3f87ce1c
1,821
py
Python
proxySTAR_V3/certbot/venv.1509389747.bak/lib/python2.7/site-packages/examples/example_settings.py
mami-project/lurk
98c293251e9b1e9c9a4b02789486c5ddaf46ba3c
[ "Apache-2.0" ]
2
2017-07-05T09:57:33.000Z
2017-11-14T23:05:53.000Z
proxySTAR_V3/certbot/venv.1509389747.bak/lib/python2.7/site-packages/examples/example_settings.py
mami-project/lurk
98c293251e9b1e9c9a4b02789486c5ddaf46ba3c
[ "Apache-2.0" ]
1
2019-01-17T14:26:22.000Z
2019-01-17T22:56:26.000Z
proxySTAR_V3/certbot/venv.1509389747.bak/lib/python2.7/site-packages/examples/example_settings.py
mami-project/lurk
98c293251e9b1e9c9a4b02789486c5ddaf46ba3c
[ "Apache-2.0" ]
1
2017-08-31T14:33:03.000Z
2017-08-31T14:33:03.000Z
#!/usr/bin/env python """Cloudflare API code - example""" import os import sys sys.path.insert(0, os.path.abspath('..')) import CloudFlare def main(): """Cloudflare API code - example""" # Grab the first argument, if there is one try: zone_name = sys.argv[1] params = {'name':zone_name, '...
30.35
97
0.538166
236
1,821
4.029661
0.300847
0.042061
0.037855
0.050473
0.338591
0.293375
0.293375
0.293375
0.133544
0.086225
0
0.016627
0.306425
1,821
59
98
30.864407
0.736342
0.063701
0
0.146341
0
0
0.161963
0
0
0
0
0
0
0
null
null
0
0.073171
null
null
0.146341
0
0
0
null
0
0
0
0
0
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
074e25146d84a7256fc0326ec00cf775552a26d2
1,329
py
Python
foundation/correspondence/views/contact.py
pilnujemy/foundation-manager
1f1d6afcbb408c87a171bcbe3f9e58570eb478b6
[ "BSD-3-Clause" ]
1
2016-01-04T06:30:24.000Z
2016-01-04T06:30:24.000Z
foundation/correspondence/views/contact.py
pilnujemy/foundation-manager
1f1d6afcbb408c87a171bcbe3f9e58570eb478b6
[ "BSD-3-Clause" ]
36
2015-11-27T14:17:34.000Z
2016-07-14T10:23:52.000Z
foundation/correspondence/views/contact.py
pilnujemy/foundation-manager
1f1d6afcbb408c87a171bcbe3f9e58570eb478b6
[ "BSD-3-Clause" ]
1
2016-05-14T01:11:28.000Z
2016-05-14T01:11:28.000Z
from django.views.generic import CreateView, DeleteView, UpdateView, DetailView from braces.views import LoginRequiredMixin, UserFormKwargsMixin, SelectRelatedMixin from ..models import Contact from ..forms import ContactForm from ..filters import ContactFilter from .mixins import (InitialFormMixin, ...
30.204545
89
0.735892
113
1,329
8.548673
0.460177
0.062112
0.033126
0.043478
0.066253
0
0
0
0
0
0
0
0.208427
1,329
43
90
30.906977
0.918251
0
0
0.225806
0
0
0.036117
0.020316
0
0
0
0
0
1
0.064516
false
0
0.258065
0.064516
0.83871
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
074e2985df75ca6b6cfa9681f1895d9c01983e71
2,082
py
Python
evaluator.py
ruritoBlogger/FTGrunner
343ddcb260576347c7977721d7942092ba711b2d
[ "MIT" ]
null
null
null
evaluator.py
ruritoBlogger/FTGrunner
343ddcb260576347c7977721d7942092ba711b2d
[ "MIT" ]
11
2021-06-25T11:41:18.000Z
2021-07-12T06:06:31.000Z
evaluator.py
ruritoBlogger/FTGrunner
343ddcb260576347c7977721d7942092ba711b2d
[ "MIT" ]
1
2021-06-25T15:25:11.000Z
2021-06-25T15:25:11.000Z
from typing import List import shutil import os import csv import datetime from util import * from game_executor import GameExecutor def evaluate_agent(config: Config) -> None: """AIの評価を行う 具体的にはEPISODE * EVALUATE_NUM回試合をやる 各EPISODE毎の勝率の平均値・最大値・最小値をplotして評価するみたいな感じ Args: config (Config): 評価や学...
27.76
245
0.599424
226
2,082
5.309735
0.433628
0.03
0.04
0.026667
0.148333
0.116667
0.116667
0.058333
0.058333
0
0
0.000678
0.292027
2,082
74
246
28.135135
0.812076
0.141691
0
0.142857
0
0
0.074686
0.014253
0
0
0
0.013514
0
1
0.02381
false
0
0.166667
0
0.190476
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0753a792ac1673401326b482410e40152034ee37
1,101
py
Python
Python/behavioral_patterns/mediator/colleague_radio_button.py
ploukareas/Design-Patterns
8effde38d73ae9058c3028c97ef395644a90d55b
[ "BSD-3-Clause", "MIT" ]
28
2018-09-28T07:45:35.000Z
2022-02-12T12:25:05.000Z
Python/behavioral_patterns/mediator/colleague_radio_button.py
ploukareas/Design-Patterns
8effde38d73ae9058c3028c97ef395644a90d55b
[ "BSD-3-Clause", "MIT" ]
null
null
null
Python/behavioral_patterns/mediator/colleague_radio_button.py
ploukareas/Design-Patterns
8effde38d73ae9058c3028c97ef395644a90d55b
[ "BSD-3-Clause", "MIT" ]
5
2021-05-10T23:19:55.000Z
2022-03-04T20:26:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ˅ from tkinter import * from behavioral_patterns.mediator.colleague import Colleague # ˄ class ColleagueRadioButton(Colleague): # ˅ # ˄ # Numerical value of the selected radio button __selected_value = 0 def __init__(self, radio_button): ...
20.018182
84
0.605813
125
1,101
5.08
0.416
0.138583
0.141732
0.059843
0.091339
0
0
0
0
0
0
0.003802
0.283379
1,101
54
85
20.388889
0.780735
0.141689
0
0
0
0
0.029189
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0.055556
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
075a7cb45efaa29dd21b342ad6921ad2de244b10
8,353
py
Python
tests/test_adapter.py
ubiquiti/python-bluezero-REMOVE
3c60ed33075488343c2ef968d2a965420410125f
[ "MIT" ]
1
2020-02-27T07:23:57.000Z
2020-02-27T07:23:57.000Z
tests/test_adapter.py
ubiquiti/python-bluezero-REMOVE
3c60ed33075488343c2ef968d2a965420410125f
[ "MIT" ]
null
null
null
tests/test_adapter.py
ubiquiti/python-bluezero-REMOVE
3c60ed33075488343c2ef968d2a965420410125f
[ "MIT" ]
null
null
null
""" Tests for the Adapter. This test class makes use of sample DBus data captured from a live device, imported as ``tests.obj_data``. """ import sys import unittest from unittest.mock import MagicMock from unittest.mock import patch import tests.obj_data from bluezero import constants def mock_get_all(iface): ""...
30.485401
77
0.611996
946
8,353
5.241015
0.156448
0.08209
0.063534
0.080476
0.419524
0.387051
0.351351
0.323114
0.323114
0.306172
0
0.010747
0.275949
8,353
273
78
30.59707
0.809028
0.278343
0
0.183486
0
0
0.038447
0
0
0
0
0
0.183486
1
0.229358
false
0
0.06422
0
0.321101
0
0
0
0
null
0
0
0
0
0
0
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
075f1bcc2898c19c7e249cbe70075108bf2416ab
1,484
py
Python
epi_judge_python/random_permutation.py
shobhitmishra/CodingProblems
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
[ "MIT" ]
null
null
null
epi_judge_python/random_permutation.py
shobhitmishra/CodingProblems
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
[ "MIT" ]
null
null
null
epi_judge_python/random_permutation.py
shobhitmishra/CodingProblems
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
[ "MIT" ]
null
null
null
import copy import functools import math from typing import List from test_framework import generic_test from test_framework.random_sequence_checker import ( check_sequence_is_uniformly_random, run_func_with_retries) from test_framework.test_utils import enable_executor_hook def compute_random_permutation(n: int...
30.285714
76
0.608491
174
1,484
4.862069
0.373563
0.180851
0.170213
0.095745
0.269504
0.198582
0.106383
0
0
0
0
0.014808
0.317385
1,484
48
77
30.916667
0.820336
0.016173
0
0
0
0
0.034979
0.029492
0
0
0
0.020833
0
1
0.108108
false
0
0.189189
0.027027
0.378378
0
0
0
0
null
0
0
0
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
0762f2f34b0b94fdbfacb6e48ad23789fcaf2f87
297
py
Python
temboardagent/plugins/administration/functions.py
pierrehilbert/temboard-agent
40c670dd607c6fea651630a353ebe639f4ba661e
[ "PostgreSQL" ]
null
null
null
temboardagent/plugins/administration/functions.py
pierrehilbert/temboard-agent
40c670dd607c6fea651630a353ebe639f4ba661e
[ "PostgreSQL" ]
null
null
null
temboardagent/plugins/administration/functions.py
pierrehilbert/temboard-agent
40c670dd607c6fea651630a353ebe639f4ba661e
[ "PostgreSQL" ]
null
null
null
def pg_version(conn): """ Returns the PostgreSQL server version as numeric and full version. """ num_version = conn.get_pg_version() conn.execute("SELECT version()") full_version = list(conn.get_rows())[0]['version'] return dict(numeric=num_version, full=full_version)
33
70
0.693603
40
297
4.95
0.525
0.166667
0.131313
0
0
0
0
0
0
0
0
0.004098
0.178451
297
8
71
37.125
0.807377
0.222222
0
0
0
0
0.106977
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
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
076385562a343eb929a7d8d19b1dfced4561d0e8
395
py
Python
open_now/migrations/0010_discussion_email.py
AndrewNguyen1/open-now
99d44734e940155b517cf1b25cbebfa5704c88c5
[ "BSD-3-Clause" ]
null
null
null
open_now/migrations/0010_discussion_email.py
AndrewNguyen1/open-now
99d44734e940155b517cf1b25cbebfa5704c88c5
[ "BSD-3-Clause" ]
null
null
null
open_now/migrations/0010_discussion_email.py
AndrewNguyen1/open-now
99d44734e940155b517cf1b25cbebfa5704c88c5
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.2 on 2021-05-04 03:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('open_now', '0009_location_search'), ] operations = [ migrations.AddField( model_name='discussion', name='email', ...
20.789474
62
0.602532
43
395
5.418605
0.860465
0
0
0
0
0
0
0
0
0
0
0.074205
0.283544
395
18
63
21.944444
0.749117
0.108861
0
0
1
0
0.122857
0
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
0763d0302e4706141f5479b4edc6d19932ae6143
371
py
Python
save_excel.py
Damon-wenc/find_out_duplicated_number
42c9e692a65380c5166f9e9e9409a327f7aa354e
[ "MIT" ]
1
2019-07-08T11:37:02.000Z
2019-07-08T11:37:02.000Z
save_excel.py
Damon-wenc/find_out_duplicated_number
42c9e692a65380c5166f9e9e9409a327f7aa354e
[ "MIT" ]
null
null
null
save_excel.py
Damon-wenc/find_out_duplicated_number
42c9e692a65380c5166f9e9e9409a327f7aa354e
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import open_excel from openpyxl import Workbook def save(num): open_excel.G_saved_numbers.append(num) def save_to_excel(): wb = Workbook() ws = wb.active for num in open_excel.G_saved_numbers: ws.cell(row=(open_excel.G_saved_numbers.index(num)+1)...
16.863636
83
0.67655
59
371
4.050847
0.559322
0.150628
0.125523
0.188285
0.276151
0
0
0
0
0
0
0.009901
0.183288
371
21
84
17.666667
0.778878
0.102426
0
0
0
0
0.033233
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
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
0768032414e2c22289df110a2d95a186e3772766
2,222
py
Python
tests.py
terrameijar/capital_finder
cae2bbcffaf5c39735561ed58c92336b73beae49
[ "MIT" ]
1
2018-03-17T15:52:20.000Z
2018-03-17T15:52:20.000Z
tests.py
terrameijar/capital_finder
cae2bbcffaf5c39735561ed58c92336b73beae49
[ "MIT" ]
1
2020-07-17T07:09:10.000Z
2021-07-03T05:02:52.000Z
tests.py
terrameijar/capital_finder
cae2bbcffaf5c39735561ed58c92336b73beae49
[ "MIT" ]
2
2018-03-17T15:52:20.000Z
2020-01-26T12:24:54.000Z
import unittest import subprocess import capitals class TestCapitals(unittest.TestCase): def test_correct_capital_returned(self): city = capitals.capital("Central African Republic") self.assertEqual("Bangui", city) city = capitals.capital("Hungary") self.assertEqual("Budapest", c...
41.148148
247
0.729073
266
2,222
5.778195
0.278195
0.078725
0.081978
0.089785
0.467144
0.448276
0.423552
0.360442
0.304489
0.235524
0
0.002174
0.171917
2,222
53
248
41.924528
0.833152
0
0
0.210526
0
0.026316
0.229073
0.019352
0
0
0
0
0.263158
1
0.236842
false
0
0.078947
0
0.342105
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4acc19edf282eb5b236597954e9a151b39a88cd2
640
py
Python
InvenTree/stock/migrations/0043_auto_20200525_0420.py
ArakniD/InvenTree
0ebf2ebd832b2d736e895abe054ca56bfd1cc477
[ "MIT" ]
656
2017-03-29T22:06:14.000Z
2022-03-30T11:23:52.000Z
InvenTree/stock/migrations/0043_auto_20200525_0420.py
ArakniD/InvenTree
0ebf2ebd832b2d736e895abe054ca56bfd1cc477
[ "MIT" ]
1,545
2017-04-10T23:26:04.000Z
2022-03-31T18:32:10.000Z
InvenTree/stock/migrations/0043_auto_20200525_0420.py
fablabbcn/InvenTree
1d7ea7716cc96c6ffd151c822b01cd1fb5dcfecd
[ "MIT" ]
196
2017-03-28T03:06:21.000Z
2022-03-28T11:53:29.000Z
# Generated by Django 3.0.5 on 2020-05-25 04:20 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('part', '0042_auto_20200518_0900'), ('stock', '0042_auto_20200523_0121'), ] operations = [ migration...
30.47619
227
0.65625
78
640
5.205128
0.653846
0.059113
0.068966
0.108374
0
0
0
0
0
0
0
0.092702
0.207813
640
20
228
32
0.708087
0.070313
0
0
1
0
0.200675
0.077572
0
0
0
0
0
1
0
false
0
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4acc8cdcc8edc42179cb5c67e7ad18dff1cb46c1
1,573
py
Python
layers/poky/meta/lib/oeqa/selftest/cases/fetch.py
dtischler/px30-test
55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f
[ "Apache-2.0" ]
53
2018-02-28T08:51:32.000Z
2022-02-28T06:49:23.000Z
layers/poky/meta/lib/oeqa/selftest/cases/fetch.py
dtischler/px30-test
55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f
[ "Apache-2.0" ]
27
2018-01-25T00:26:53.000Z
2020-08-09T05:20:04.000Z
layers/poky/meta/lib/oeqa/selftest/cases/fetch.py
dtischler/px30-test
55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f
[ "Apache-2.0" ]
51
2018-02-21T04:46:08.000Z
2022-03-02T04:20:41.000Z
import oe.path from oeqa.selftest.case import OESelftestTestCase from oeqa.utils.commands import bitbake from oeqa.core.decorator.oeid import OETestID class Fetch(OESelftestTestCase): @OETestID(1058) def test_git_mirrors(self): """ Verify that the git fetcher will fall back to the HTTP mirrors....
31.46
87
0.656707
196
1,573
5.173469
0.479592
0.023669
0.038462
0.04142
0.402367
0.402367
0.380671
0.380671
0.380671
0.380671
0
0.003322
0.234584
1,573
49
88
32.102041
0.83887
0.202161
0
0.685714
0
0
0.318482
0.091584
0
0
0
0.020408
0.028571
1
0.028571
false
0
0.114286
0
0.171429
0
0
0
0
null
0
0
0
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
4ad10bfaaefc9bb0c1c55dbeaf33489904dd30b0
1,403
py
Python
app/error.py
jhong93/esper-tv-widget
8cf7e0e39b72c53a0d2045552ccf793fa31a9c47
[ "BSD-3-Clause" ]
3
2019-07-04T17:29:31.000Z
2021-08-13T11:50:36.000Z
app/error.py
jhong93/esper-tv-widget
8cf7e0e39b72c53a0d2045552ccf793fa31a9c47
[ "BSD-3-Clause" ]
71
2019-05-15T22:42:11.000Z
2019-12-20T22:26:08.000Z
app/error.py
jhong93/esper-tv-widget
8cf7e0e39b72c53a0d2045552ccf793fa31a9c47
[ "BSD-3-Clause" ]
1
2020-02-10T15:22:01.000Z
2020-02-10T15:22:01.000Z
from typing import Optional class InvalidUsage(Exception): status_code = 400 def __init__(self, message: str, status_code: Optional[int] = None, payload: Optional[str] = None): Exception.__init__(self) self.message = message if status_code is not None: se...
22.629032
71
0.637919
155
1,403
5.451613
0.309677
0.104142
0.078107
0.108876
0.134911
0.085207
0
0
0
0
0
0.002882
0.258019
1,403
61
72
23
0.808838
0
0
0.216216
0
0
0.09551
0
0
0
0
0
0
1
0.189189
false
0.054054
0.027027
0
0.486486
0
0
0
0
null
0
0
0
0
0
0
0
0
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
4ada2fb55d2355245748fc899e8ea653571d4c66
368
py
Python
db/models/benefit.py
matchd-ch/matchd-backend
84be4aab1b4708cae50a8988301b15df877c8db0
[ "Apache-2.0" ]
1
2022-03-03T09:55:57.000Z
2022-03-03T09:55:57.000Z
db/models/benefit.py
matchd-ch/matchd-backend
84be4aab1b4708cae50a8988301b15df877c8db0
[ "Apache-2.0" ]
7
2022-02-09T10:44:53.000Z
2022-03-28T03:29:43.000Z
db/models/benefit.py
matchd-ch/matchd-backend
84be4aab1b4708cae50a8988301b15df877c8db0
[ "Apache-2.0" ]
null
null
null
from django.db import models from wagtail.admin.edit_handlers import FieldPanel class Benefit(models.Model): icon = models.CharField(max_length=255, unique=True) name = models.CharField(max_length=255, unique=True) panels = [FieldPanel('icon'), FieldPanel('name')] class Meta: ordering = ( ...
23
56
0.638587
42
368
5.52381
0.571429
0.12931
0.155172
0.206897
0.318966
0.318966
0.318966
0
0
0
0
0.021583
0.244565
368
15
57
24.533333
0.81295
0
0
0
0
0
0.043478
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.636364
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
4adeb58143ab5ca2b4b8636b63f22333171834c2
4,200
py
Python
_main/dif_emDias.py
Gui25Reis/DIferenca-de-datas-em-dias
06782dd22047769cec46a648848ed6dbebabf047
[ "MIT" ]
null
null
null
_main/dif_emDias.py
Gui25Reis/DIferenca-de-datas-em-dias
06782dd22047769cec46a648848ed6dbebabf047
[ "MIT" ]
1
2021-06-21T19:15:07.000Z
2021-06-21T19:18:15.000Z
_main/dif_emDias.py
Gui25Reis/DIferenca-de-datas-em-dias
06782dd22047769cec46a648848ed6dbebabf047
[ "MIT" ]
null
null
null
###### Gui Reis - guisreis25@gmail.com ###### COPYRIGHT © 2020 KINGS # -*- coding: utf-8 -*- ## Classe responsável pelo dos dias entre duas datas. class Dif_emDias: ## Construtor: define os atributos separando cada índice da data def __init__(self) -> None: # jan,fev,mar,abr,m...
60.869565
177
0.461667
489
4,200
3.766871
0.302658
0.083605
0.04886
0.045603
0.319218
0.30836
0.159066
0.12975
0.12975
0.064604
0
0.024112
0.456905
4,200
69
178
60.869565
0.78299
0.239286
0
0.073171
0
0
0.000637
0
0
0
0
0.014493
0
1
0.170732
false
0
0
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
4adf3de09068c24dac2636c73411b1209882acb1
525
py
Python
tools/_init_paths.py
BryanPlummer/phrase_detection
febe4d2e02a0467850cdf97fb3d3c3c5592be9a2
[ "MIT" ]
7
2019-11-15T13:16:55.000Z
2021-11-10T18:19:58.000Z
tools/_init_paths.py
BryanPlummer/phrase_detection
febe4d2e02a0467850cdf97fb3d3c3c5592be9a2
[ "MIT" ]
1
2021-09-07T13:28:49.000Z
2021-09-07T13:28:49.000Z
tools/_init_paths.py
BryanPlummer/phrase_detection
febe4d2e02a0467850cdf97fb3d3c3c5592be9a2
[ "MIT" ]
null
null
null
import os.path as osp import sys def add_path(path): if path not in sys.path: sys.path.insert(0, path) this_dir = osp.dirname(__file__) # Add lib to PYTHONPATH lib_path = osp.join(this_dir, '..', 'lib') add_path(lib_path) # add each dataset's code too flickr_path = osp.join(this_dir, '..', 'data', 'flic...
21.875
58
0.699048
86
525
4.011628
0.372093
0.101449
0.127536
0.173913
0.231884
0.127536
0
0
0
0
0
0.002232
0.146667
525
23
59
22.826087
0.767857
0.137143
0
0
0
0
0.089087
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.214286
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
4ae4c3e0f5cd7f39b0b2264fad4d1431d47df2c3
1,596
py
Python
test/selenium/src/lib/app_entity/workflow_entity.py
Gusakovskiy/ggrc-core
b8969e7ea5c645ee0eb4db30f3e683d171b2ea01
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-04T10:55:14.000Z
2019-01-04T10:55:14.000Z
test/selenium/src/lib/app_entity/workflow_entity.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/selenium/src/lib/app_entity/workflow_entity.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """App entities related to workflow.""" import attr from lib.app_entity import _base @attr.s class Workflow(_base.Base, _base.WithTitleAndCode): """Represents Workflow entity.""" state = attr.ib() ad...
22.478873
78
0.683584
219
1,596
4.826484
0.278539
0.192999
0.056764
0.052034
0.412488
0.222327
0.174078
0.121097
0.121097
0
0
0.004494
0.163534
1,596
70
79
22.8
0.787266
0.213033
0
0.541667
0
0
0
0
0
0
0
0
0
1
0
false
0
0.041667
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
4af5e2baa6c6bced736c3bad2affef9aa0887728
24,621
py
Python
Lib/test/test_xml_etree_jy.py
jeff5/jython-whinchat
65d8e5268189f8197295ff2d91be3decb1ee0081
[ "CNRI-Jython" ]
577
2020-06-04T16:34:44.000Z
2022-03-31T11:46:07.000Z
Lib/test/test_xml_etree_jy.py
jeff5/jython-whinchat
65d8e5268189f8197295ff2d91be3decb1ee0081
[ "CNRI-Jython" ]
174
2015-01-08T20:37:09.000Z
2020-06-03T16:48:59.000Z
Lib/test/test_xml_etree_jy.py
jeff5/jython-whinchat
65d8e5268189f8197295ff2d91be3decb1ee0081
[ "CNRI-Jython" ]
162
2015-02-07T02:14:38.000Z
2020-05-30T16:42:03.000Z
# encoding: utf-8 import sys JYTHON = sys.platform.startswith("java") import doctest from test import test_support import xml.parsers.expat as expat from xml.etree.ElementTree import * def jython(function): if JYTHON: return function else: return None class sortdict(dict): def __repr__(...
31.126422
316
0.576459
2,635
24,621
5.309298
0.16888
0.016583
0.013939
0.017155
0.451465
0.393138
0.362902
0.318871
0.280415
0.26569
0
0.017605
0.250193
24,621
790
317
31.165823
0.740209
0.00329
0
0.085271
0
0.007752
0.243989
0.025156
0
0
0
0.005063
0
0
null
null
0.015504
0.054264
null
null
0.124031
0
0
0
null
0
0
0
0
0
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
4af9f09de0f160e71b18011a718fa0a7c5e726f6
6,295
py
Python
server/analysis/cross_validation.py
newopscn/ottertune
1d57ad99019b669dfbfd099bae031037c66e822d
[ "Apache-2.0" ]
null
null
null
server/analysis/cross_validation.py
newopscn/ottertune
1d57ad99019b669dfbfd099bae031037c66e822d
[ "Apache-2.0" ]
null
null
null
server/analysis/cross_validation.py
newopscn/ottertune
1d57ad99019b669dfbfd099bae031037c66e822d
[ "Apache-2.0" ]
null
null
null
# # OtterTune - cross_validation.py # # Copyright (c) 2017-18, Carnegie Mellon University Database Group # ''' Created on Aug 29, 2016 @author: dvanaken ''' from collections import namedtuple import cPickle as pickle import gc import numpy as np import tensorflow as tf from fabric.api import local from sklearn.model...
37.029412
87
0.549007
725
6,295
4.508966
0.282759
0.040379
0.031202
0.024778
0.133986
0.064852
0.024472
0.024472
0.024472
0.024472
0
0.011316
0.354249
6,295
169
88
37.248521
0.792866
0.096902
0
0.048387
0
0
0.045398
0
0
0
0
0
0.040323
0
null
null
0
0.08871
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
4afca869039935fdad18b02d1434794182f32177
1,688
py
Python
python/example_code/stepfunctions/sfn_create_state_machine.py
onehitcombo/aws-doc-sdk-examples
03e2e0c5dee75c5decbbb99e849c51417521fd82
[ "Apache-2.0" ]
3
2021-01-19T20:23:17.000Z
2021-01-19T21:38:59.000Z
python/example_code/stepfunctions/sfn_create_state_machine.py
onehitcombo/aws-doc-sdk-examples
03e2e0c5dee75c5decbbb99e849c51417521fd82
[ "Apache-2.0" ]
null
null
null
python/example_code/stepfunctions/sfn_create_state_machine.py
onehitcombo/aws-doc-sdk-examples
03e2e0c5dee75c5decbbb99e849c51417521fd82
[ "Apache-2.0" ]
2
2019-12-27T13:58:00.000Z
2020-05-21T18:35:40.000Z
# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # This file is licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # This f...
34.44898
104
0.719787
234
1,688
5.128205
0.547009
0.041667
0.016667
0.028333
0
0
0
0
0
0
0
0.016583
0.178318
1,688
49
105
34.44898
0.848594
0.687796
0
0
0
0.083333
0.366446
0.050773
0
0
0
0
0
1
0
false
0.083333
0.083333
0
0.083333
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
ab006f9899ef09c702ead4c01f0632fac8288eb3
8,658
py
Python
adb.py
jayway/adbutils
bc9fb0715fd1dc4554e127948d0ede1ff37a6853
[ "Apache-2.0" ]
1
2018-03-17T09:05:19.000Z
2018-03-17T09:05:19.000Z
adb.py
jayway/adbutils
bc9fb0715fd1dc4554e127948d0ede1ff37a6853
[ "Apache-2.0" ]
null
null
null
adb.py
jayway/adbutils
bc9fb0715fd1dc4554e127948d0ede1ff37a6853
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ A Python module containing functionality for communicating through ADB. If you only have one attached device, you will not need to specify which to run the command on. """ import logging import os import re import subprocess import signal import thread import time __author__ = 'Andreas ...
24.87931
107
0.652114
1,159
8,658
4.633305
0.211389
0.022346
0.024209
0.028305
0.17635
0.094972
0.052514
0.016387
0.016387
0.016387
0
0.006925
0.232733
8,658
347
108
24.951009
0.801445
0.141488
0
0.06044
0
0
0.135842
0.023972
0
0
0
0.005764
0
0
null
null
0.005495
0.038462
null
null
0.005495
0
0
0
null
0
0
0
0
0
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
ab01b34d86bd9ebbe69b6be8d36c5387aff4cb73
2,068
py
Python
broom/Broom.py
banzhang/broom
5f71cd0c5faf815849b5b88f6b0ad5f37939606c
[ "MIT" ]
2
2016-03-08T08:57:58.000Z
2017-02-23T07:10:03.000Z
broom/Broom.py
banzhang/broom
5f71cd0c5faf815849b5b88f6b0ad5f37939606c
[ "MIT" ]
null
null
null
broom/Broom.py
banzhang/broom
5f71cd0c5faf815849b5b88f6b0ad5f37939606c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- import pyinotify,Queue,threading,time,os,argparse from ThreadPool import ThreadPool from LogClient import LogClient from EventHandler import EventHandler import Config import Logger logger = Logger.getInstance() class Broom: @classmethod def getFileList(cla, dir, ...
30.411765
84
0.596712
236
2,068
5.173729
0.385593
0.036855
0.039312
0.058968
0
0
0
0
0
0
0
0.000672
0.280464
2,068
67
85
30.865672
0.819892
0.019826
0
0.068966
0
0
0.037037
0
0
0
0
0
0
0
null
null
0
0.103448
null
null
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ab01ba0543a9966b942ad7cff0a85db2d901890a
1,812
py
Python
Python/FlaskMySQL/FullFriends/server.py
JosephAMumford/CodingDojo
505be74d18d7a8f41c4b3576ca050b97f840f0a3
[ "MIT" ]
2
2018-08-18T15:14:45.000Z
2019-10-16T16:14:13.000Z
Python/FlaskMySQL/FullFriends/server.py
JosephAMumford/CodingDojo
505be74d18d7a8f41c4b3576ca050b97f840f0a3
[ "MIT" ]
null
null
null
Python/FlaskMySQL/FullFriends/server.py
JosephAMumford/CodingDojo
505be74d18d7a8f41c4b3576ca050b97f840f0a3
[ "MIT" ]
6
2018-05-05T18:13:05.000Z
2021-05-20T11:32:48.000Z
from flask import Flask, request, redirect, render_template, session, flash from mysqlconnection import MySQLConnector import datetime import re app = Flask(__name__) app.secret_key = "ThisIsSecret!" mysql = MySQLConnector(app,'full_friends_db') DATE_REGEX = re.compile(r'^(1[0-2]|0[1-9])/(3[01]|[12][0-9]|0[1-9])/[0-9...
34.188679
215
0.586645
233
1,812
4.424893
0.407725
0.085354
0.065955
0.085354
0.077595
0.064016
0.064016
0.064016
0.064016
0.064016
0
0.014925
0.260486
1,812
52
216
34.846154
0.754478
0.008278
0
0.159091
0
0.045455
0.298607
0.070752
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ab036d2eb528a185b5a56652157fa799c04bc420
3,899
py
Python
swiftbackmeup/items/databases/postgresql.py
redhat-cip/swiftbackmeup
5d627c275cbb4d5117dd272cd697d6523352a8e1
[ "Apache-2.0" ]
12
2016-06-27T12:41:50.000Z
2020-07-10T04:46:32.000Z
swiftbackmeup/items/databases/postgresql.py
redhat-cip/swiftbackmeup
5d627c275cbb4d5117dd272cd697d6523352a8e1
[ "Apache-2.0" ]
1
2020-03-26T00:59:35.000Z
2020-05-12T15:23:59.000Z
swiftbackmeup/items/databases/postgresql.py
redhat-cip/swiftbackmeup
5d627c275cbb4d5117dd272cd697d6523352a8e1
[ "Apache-2.0" ]
3
2017-04-06T16:26:17.000Z
2018-09-12T15:55:47.000Z
# Copyright 2016 Yanis Guenane <yguenane@redhat.com> # Author: Yanis Guenane <yguenane@redhat.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE...
32.764706
87
0.611439
467
3,899
4.96788
0.310493
0.051724
0.023707
0.028448
0.321552
0.271121
0.271121
0.271121
0.20819
0.177586
0
0.002891
0.290331
3,899
118
88
33.042373
0.835562
0.172095
0
0.307692
0
0
0.179551
0
0
0
0
0
0
1
0.064103
false
0.051282
0.038462
0.012821
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ab094bcc017bbf442e7c27ad93991a28a0b786e9
1,202
py
Python
psave/migrations/0003_auto_20201115_1655.py
ms-18/psave
93d128ebc07c342dafc4147aeb12ca1e6c48e8b9
[ "MIT" ]
null
null
null
psave/migrations/0003_auto_20201115_1655.py
ms-18/psave
93d128ebc07c342dafc4147aeb12ca1e6c48e8b9
[ "MIT" ]
null
null
null
psave/migrations/0003_auto_20201115_1655.py
ms-18/psave
93d128ebc07c342dafc4147aeb12ca1e6c48e8b9
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2020-11-15 16:55 import django.contrib.postgres.fields from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('psave', '0002_host_api_user'), ] operations = [ migrations.AddField( ...
28.619048
125
0.579035
121
1,202
5.669421
0.454545
0.065598
0.094752
0.123907
0.402332
0.402332
0.348397
0.294461
0.294461
0.294461
0
0.022619
0.301165
1,202
41
126
29.317073
0.794048
0.037438
0
0.457143
1
0
0.05974
0
0
0
0
0
0
1
0
false
0
0.085714
0
0.171429
0
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
ab0c24667a40d7e06a3797caa8f5c3a8606836f0
710
py
Python
tests/values/gen_random.py
lidaobing/multihash
85080b63ad621fb4c3d125492fb1ee9b45002537
[ "MIT" ]
null
null
null
tests/values/gen_random.py
lidaobing/multihash
85080b63ad621fb4c3d125492fb1ee9b45002537
[ "MIT" ]
null
null
null
tests/values/gen_random.py
lidaobing/multihash
85080b63ad621fb4c3d125492fb1ee9b45002537
[ "MIT" ]
1
2018-11-01T03:38:18.000Z
2018-11-01T03:38:18.000Z
#!/usr/bin/env python import os import sys import random def usage(code): print "usage:", sys.argv[0], "<number> <size>" print "output <number> random hex-encoded strings of <size> bytes" sys.exit(code) hexcode = '0123456789abcdef' def randstr(length): return ''.join(random.choice(hexcode) for i in range(le...
19.722222
68
0.642254
115
710
3.878261
0.443478
0.09417
0.026906
0.049327
0
0
0
0
0
0
0
0.035273
0.201408
710
35
69
20.285714
0.751323
0.028169
0
0.076923
0
0
0.161103
0
0
0
0
0
0
0
null
null
0
0.115385
null
null
0.115385
0
0
0
null
0
0
0
0
0
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
ab0c7edc77492f0f0c66926d81868112d3a49ffe
472
py
Python
test_helper/dataprovider.py
yazido06/decoding-contour-next-link
d9aef4ffdf0f64444ceed1ce92390d5a4f7faa24
[ "BSD-3-Clause" ]
56
2016-03-25T20:24:42.000Z
2021-11-10T12:59:28.000Z
test_helper/dataprovider.py
yazido06/decoding-contour-next-link
d9aef4ffdf0f64444ceed1ce92390d5a4f7faa24
[ "BSD-3-Clause" ]
40
2016-03-30T12:40:27.000Z
2022-01-14T23:36:48.000Z
test_helper/dataprovider.py
yazido06/decoding-contour-next-link
d9aef4ffdf0f64444ceed1ce92390d5a4f7faa24
[ "BSD-3-Clause" ]
50
2016-04-29T12:05:49.000Z
2021-12-01T16:24:52.000Z
def data_provider(fn_data_provider): """Data provider decorator, allows another callable to provide the data for the test""" def test_decorator(fn): def repl(self, *args): for i in fn_data_provider(): try: fn(self, *i) except AssertionError...
39.333333
91
0.559322
54
472
4.759259
0.555556
0.18677
0.108949
0
0
0
0
0
0
0
0
0
0.364407
472
12
92
39.333333
0.856667
0.17161
0
0
0
0
0.101036
0
0
0
0
0
0.181818
1
0.272727
false
0
0
0
0.454545
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ab0e61339a6718f0eec8c743e0d5e93fa7180652
484
py
Python
InayatBashir/core/migrations/0004_alter_places_name.py
muminfarooq190/InayatBashir.in
f172ad2278608b64aeaa577bfc9d9af33d59fe4d
[ "MIT" ]
null
null
null
InayatBashir/core/migrations/0004_alter_places_name.py
muminfarooq190/InayatBashir.in
f172ad2278608b64aeaa577bfc9d9af33d59fe4d
[ "MIT" ]
null
null
null
InayatBashir/core/migrations/0004_alter_places_name.py
muminfarooq190/InayatBashir.in
f172ad2278608b64aeaa577bfc9d9af33d59fe4d
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-20 15:35 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0003_auto_20210820_1439'), ] operations = [ migrations.AlterField( model_name='places',...
24.2
120
0.63843
57
484
5.315789
0.666667
0.079208
0.092409
0.145215
0
0
0
0
0
0
0
0.084011
0.237603
484
19
121
25.473684
0.737127
0.092975
0
0
1
0
0.118993
0.052632
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
ab179f3a45c5d5869389ce6957ea4d4dd6718f6f
5,720
py
Python
scripts/quintetTopology.py
jsharbrough/allopolyploidCytonuclearEvolutionaryRate
fa107ec86e8c1bf44b1d32db6154fae926657af3
[ "MIT" ]
null
null
null
scripts/quintetTopology.py
jsharbrough/allopolyploidCytonuclearEvolutionaryRate
fa107ec86e8c1bf44b1d32db6154fae926657af3
[ "MIT" ]
null
null
null
scripts/quintetTopology.py
jsharbrough/allopolyploidCytonuclearEvolutionaryRate
fa107ec86e8c1bf44b1d32db6154fae926657af3
[ "MIT" ]
null
null
null
''' quintetTopology.py version 1.0 copyright (C) Joel Sharbrough 2020 USAGE: python quintetTopology.py trees.fofn outgroupID paternalDiploidID maternalDiploidID polyploidID > summaryFile.txt Notes: -trees.fofn is a file containing file names for all the trees for which you want to test quintet topology on -Spe...
40
454
0.645979
629
5,720
5.844197
0.263911
0.027203
0.022851
0.059848
0.3142
0.297334
0.291349
0.291349
0.261153
0.239935
0
0.011454
0.252098
5,720
143
455
40
0.847826
0.011189
0
0.25641
0
0.008547
0.126577
0.027342
0
0
0
0
0
0
null
null
0.017094
0.017094
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
ab1f5ab0db127208c2e98f02ad0516380f93d57e
2,132
py
Python
wagtail/tests/testapp/migrations/0057_customdocumentwithauthor.py
brownaa/wagtail
c97bc56c6822eb1b6589d5c33e07f71acfc48845
[ "BSD-3-Clause" ]
8,851
2016-12-09T19:01:45.000Z
2022-03-31T04:45:06.000Z
wagtail/tests/testapp/migrations/0057_customdocumentwithauthor.py
brownaa/wagtail
c97bc56c6822eb1b6589d5c33e07f71acfc48845
[ "BSD-3-Clause" ]
5,197
2016-12-09T19:24:37.000Z
2022-03-31T22:17:55.000Z
wagtail/tests/testapp/migrations/0057_customdocumentwithauthor.py
brownaa/wagtail
c97bc56c6822eb1b6589d5c33e07f71acfc48845
[ "BSD-3-Clause" ]
2,548
2016-12-09T18:16:55.000Z
2022-03-31T21:34:38.000Z
# Generated by Django 3.0.10 on 2020-12-20 14:52 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import taggit.managers import wagtail.core.models import wagtail.search.index class Migration(migrations.Migration): dependencies = [ ('wagtailcore'...
49.581395
221
0.656191
232
2,132
5.831897
0.456897
0.073171
0.031042
0.04878
0.084257
0.044346
0
0
0
0
0
0.021416
0.211538
2,132
42
222
50.761905
0.783462
0.021576
0
0
1
0
0.183781
0.068138
0
0
0
0
0
1
0
false
0
0.166667
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
ab21b953918b1448f83502fc5e91db5707dd6b9d
3,709
py
Python
parser/team29/analizer/statement/instructions/alter/alter_index.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
parser/team29/analizer/statement/instructions/alter/alter_index.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
parser/team29/analizer/statement/instructions/alter/alter_index.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
from analizer.abstract import instruction from analizer.typechecker.Metadata import File from analizer.typechecker.Metadata import Struct from analizer.reports.Nodo import Nodo class AlterIndex(instruction.Instruction): def __init__(self, name, exists, newName, row, column, idOrNumber=None): instruction.In...
36.009709
82
0.394716
302
3,709
4.81457
0.254967
0.082531
0.089409
0.043329
0.258597
0.207703
0.183631
0.0674
0.0674
0.0674
0
0.000563
0.521165
3,709
103
83
36.009709
0.818131
0
0
0.357895
0
0
0.089757
0
0
0
0
0
0
1
0.031579
false
0
0.052632
0
0.126316
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
ab229f205a77164d1cba6d2f9f64ceb2cdccb46a
526
py
Python
dersicerik/migrations/0012_auto_20200530_2316.py
eneskums/ogrenciBilgiSistemi
fca4eefff079fff3808010fa95713fe0c0bc4b8f
[ "MIT" ]
null
null
null
dersicerik/migrations/0012_auto_20200530_2316.py
eneskums/ogrenciBilgiSistemi
fca4eefff079fff3808010fa95713fe0c0bc4b8f
[ "MIT" ]
null
null
null
dersicerik/migrations/0012_auto_20200530_2316.py
eneskums/ogrenciBilgiSistemi
fca4eefff079fff3808010fa95713fe0c0bc4b8f
[ "MIT" ]
null
null
null
# Generated by Django 2.2.12 on 2020-05-30 20:16 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('dersicerik', '0011_auto_20200530_2310'), ] operations = [ migrations.AlterField( model_name='m...
26.3
141
0.6673
57
526
6.052632
0.666667
0.069565
0.081159
0.127536
0
0
0
0
0
0
0
0.077859
0.218631
526
19
142
27.684211
0.761557
0.087452
0
0
1
0
0.194561
0.10251
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
ab22a8e309fd2f5a44f214d7a49770a02eb0613b
2,413
py
Python
test/workload_distributor_multithread_test.py
samoand/workload_distributor
f20e1598b1f78a4e801bceaae7cd3eeeb0afe261
[ "Apache-2.0" ]
1
2020-02-03T19:38:44.000Z
2020-02-03T19:38:44.000Z
test/workload_distributor_multithread_test.py
samoand/workload_distributor
f20e1598b1f78a4e801bceaae7cd3eeeb0afe261
[ "Apache-2.0" ]
null
null
null
test/workload_distributor_multithread_test.py
samoand/workload_distributor
f20e1598b1f78a4e801bceaae7cd3eeeb0afe261
[ "Apache-2.0" ]
null
null
null
import logging from workload_distributor_test import (UnitTestCase, text_mapper, num_mapper, total_reducer, count_words, count_substrings) import unittest2 as unittest from workload_distributor import MappedException, run_distributively logger = logging.getLogger() @run_distributively('text', text_mapper, total_...
34.971014
79
0.764194
331
2,413
5.181269
0.21148
0.097959
0.090962
0.131195
0.615743
0.568513
0.426239
0.299125
0.174927
0.148105
0
0.004864
0.147949
2,413
68
80
35.485294
0.82928
0.041857
0
0.173913
0
0
0.014292
0
0
0
0
0
0.217391
1
0.304348
false
0
0.086957
0.086957
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
1
0
0
0
0
0
0
0
1
ab309a8ce785d60ce0a25e5a5d88fc958950a931
812
py
Python
DMPython/Produtos/produto.py
OtavioMalta/DevMedia
01614def8a513b2d06ad713830ef8eb4675dc27c
[ "MIT" ]
null
null
null
DMPython/Produtos/produto.py
OtavioMalta/DevMedia
01614def8a513b2d06ad713830ef8eb4675dc27c
[ "MIT" ]
null
null
null
DMPython/Produtos/produto.py
OtavioMalta/DevMedia
01614def8a513b2d06ad713830ef8eb4675dc27c
[ "MIT" ]
null
null
null
class Produto: # Classes começam com letra maiúscula #Construtor def __init__(self,nome,preco): self.nome = nome self.preco = preco #Getters @property def nome(self): return self.__nome @property def preco(self): return self.__preco #Setters @...
24.606061
82
0.575123
98
812
4.571429
0.489796
0.078125
0.049107
0.075893
0
0
0
0
0
0
0
0
0.318966
812
33
83
24.606061
0.810127
0.184729
0
0.095238
0
0
0.059451
0
0
0
0
0
0
1
0.238095
false
0
0
0.095238
0.380952
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ab313894b1e3ad85f3822bb23ca268e6472f2c04
706
py
Python
Python/keylogger.py
Kartik192192/hacktoberfest2021-6
349fb9d70c78d0aff903645442c70e2e2d68e9d7
[ "CC0-1.0" ]
null
null
null
Python/keylogger.py
Kartik192192/hacktoberfest2021-6
349fb9d70c78d0aff903645442c70e2e2d68e9d7
[ "CC0-1.0" ]
null
null
null
Python/keylogger.py
Kartik192192/hacktoberfest2021-6
349fb9d70c78d0aff903645442c70e2e2d68e9d7
[ "CC0-1.0" ]
null
null
null
import win32api import win32console import win32gui import pythoncom, pyHook win = win32console.GetConsoleWindow() win32gui.ShowWindow(win, 0) def OnKeyboardEvent(event): if event.Ascii==5: _exit(1) if event.Ascii !=0 or 8: #open output.txt to read current keystrokes f = open('c:\output.txt', 'r+') buffer = ...
22.0625
52
0.706799
100
706
4.98
0.53
0.080321
0.072289
0.060241
0.100402
0.100402
0
0
0
0
0
0.028765
0.16289
706
31
53
22.774194
0.813875
0.208215
0
0.083333
0
0
0.055957
0
0
0
0
0
0
0
null
null
0
0.166667
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
ab315d0ea6cb7b4a9e0c916a789d9e50f1ffc3ca
12,579
py
Python
cities/models.py
walksource/django-cities
bcfea86fbb6ed3895c1d04340f2776d32c1e60b8
[ "MIT" ]
null
null
null
cities/models.py
walksource/django-cities
bcfea86fbb6ed3895c1d04340f2776d32c1e60b8
[ "MIT" ]
null
null
null
cities/models.py
walksource/django-cities
bcfea86fbb6ed3895c1d04340f2776d32c1e60b8
[ "MIT" ]
null
null
null
from random import choice from string import ascii_uppercase, digits try: from django.utils.encoding import force_unicode as force_text except (NameError, ImportError): from django.utils.encoding import force_str as force_text from django.db import transaction from django.contrib.gis.db.models import PointFie...
33.63369
109
0.612767
1,440
12,579
5.172917
0.170833
0.060411
0.06766
0.090213
0.543831
0.429722
0.380991
0.311317
0.285005
0.229964
0
0.008419
0.282375
12,579
373
110
33.723861
0.816772
0.054774
0
0.505495
0
0
0.058159
0
0
0
0
0
0
1
0.10989
false
0
0.058608
0.065934
0.604396
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
ab378d7600b8c472cc4e790b38314e3269d0fe8d
7,001
py
Python
bin/auto_capture.py
nycnighthawk/my-bash-env
8042769babd0e7b38e5b9d1e3d7704913eea9504
[ "MIT" ]
null
null
null
bin/auto_capture.py
nycnighthawk/my-bash-env
8042769babd0e7b38e5b9d1e3d7704913eea9504
[ "MIT" ]
null
null
null
bin/auto_capture.py
nycnighthawk/my-bash-env
8042769babd0e7b38e5b9d1e3d7704913eea9504
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (C) 2013 Han Chen <hchen@metlife.com> # All rights reserved. No warranty, explicit or implicit, provided from multiprocessing import Process, Queue import pexpect import time import argparse import csv import getpass import socket def login_telnet(host, user_id, user_pass, enable_pas...
33.821256
88
0.535495
833
7,001
4.366146
0.243697
0.026395
0.021996
0.030795
0.415727
0.363486
0.316195
0.301897
0.278801
0.249656
0
0.010141
0.352093
7,001
206
89
33.985437
0.791667
0.055421
0
0.479532
0
0
0.150023
0.011214
0
0
0
0
0
1
0.023392
false
0.099415
0.040936
0
0.140351
0.040936
0
0
0
null
0
0
0
0
0
0
0
0
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
ab39e2fd1d497bed8ce40aa4ebc9229d0b17da4f
512
py
Python
apps/music/migrations/0006_auto_20180330_1242.py
deniskrumko/dendynotdead
d1fd8b32cf2065413c19799f45487ed317b85eb1
[ "MIT" ]
null
null
null
apps/music/migrations/0006_auto_20180330_1242.py
deniskrumko/dendynotdead
d1fd8b32cf2065413c19799f45487ed317b85eb1
[ "MIT" ]
null
null
null
apps/music/migrations/0006_auto_20180330_1242.py
deniskrumko/dendynotdead
d1fd8b32cf2065413c19799f45487ed317b85eb1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-03-30 09:42 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('music', '0005_file_obfuscate_filename'), ] operations = [ migrations.AlterF...
24.380952
110
0.640625
57
512
5.561404
0.807018
0.056782
0
0
0
0
0
0
0
0
0
0.056555
0.240234
512
20
111
25.6
0.758355
0.132813
0
0
1
0
0.108844
0.063492
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
ab3b3cc06681c149803a709c98df0f6d3ea28baa
1,742
py
Python
Data/fetch-data.py
feelpp/angiotk
3faac75cc6eeeb49e9c85dc20ad44038f185e5f6
[ "Apache-2.0" ]
4
2018-12-14T02:37:02.000Z
2021-06-16T01:54:28.000Z
Data/fetch-data.py
feelpp/angiotk
3faac75cc6eeeb49e9c85dc20ad44038f185e5f6
[ "Apache-2.0" ]
7
2018-05-10T18:31:22.000Z
2018-07-20T09:19:31.000Z
Data/fetch-data.py
feelpp/angiotk
3faac75cc6eeeb49e9c85dc20ad44038f185e5f6
[ "Apache-2.0" ]
3
2015-07-06T08:07:46.000Z
2021-02-01T16:01:25.000Z
#!/usr/bin/env python import pydas import os import sys import shutil def main(): serverURL = "http://vivabrain.u-strasbg.fr/midas" print "Pydas AngioTK data downloader" print "Usage: " + sys.argv[0] + " <optinal:data_url_in_AngioTK_Community> ..." print "Example: " + sys.argv[0] + "" print " -> ...
31.107143
82
0.618829
212
1,742
4.985849
0.40566
0.039735
0.022706
0.03122
0.13245
0.094607
0
0
0
0
0
0.003826
0.249713
1,742
55
83
31.672727
0.804897
0.166475
0
0.108108
0
0
0.268884
0.027027
0
0
0
0
0
0
null
null
0
0.108108
null
null
0.378378
0
0
0
null
0
0
0
0
0
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
ab3ebc2a10f9f2132fa54d9d823a213032ea67cc
2,404
py
Python
scripts/index.py
ARKANYOTA/Pygame-Test
e1117da09d69904c155c95bc7e1746593ded6327
[ "MIT" ]
null
null
null
scripts/index.py
ARKANYOTA/Pygame-Test
e1117da09d69904c155c95bc7e1746593ded6327
[ "MIT" ]
1
2021-02-15T13:21:02.000Z
2021-02-15T13:25:23.000Z
scripts/index.py
ARKANYOTA/Pygame-Test
e1117da09d69904c155c95bc7e1746593ded6327
[ "MIT" ]
1
2021-02-14T16:48:18.000Z
2021-02-14T16:48:18.000Z
import sys from background import * from constants import * import time from input import * from perlinnoise import * from player import Player from block import * def main(): # Pygame & screen setup pygame.init() print("Ca marche askip bis") DISPLAY = pygame.display.set_mode(SCREENSIZE, pygame.RESI...
27.632184
115
0.56822
265
2,404
5.109434
0.392453
0.041359
0.044313
0.055391
0.044313
0
0
0
0
0
0
0.01489
0.301581
2,404
86
116
27.953488
0.791543
0.131032
0
0.074074
0
0
0.043353
0.021676
0
0
0
0.011628
0
1
0.018519
false
0
0.148148
0
0.166667
0.12963
0
0
0
null
0
0
0
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
ab41d714f19072ccb8b7a492acc51d56cc0c4849
4,548
py
Python
dojo/note_type/views.py
mtcolman/django-DefectDojo
76175aca446e077884bdb5e1d8e2a671a0840775
[ "BSD-3-Clause" ]
1,772
2018-01-22T23:32:15.000Z
2022-03-31T14:49:33.000Z
dojo/note_type/views.py
mtcolman/django-DefectDojo
76175aca446e077884bdb5e1d8e2a671a0840775
[ "BSD-3-Clause" ]
3,461
2018-01-20T19:12:28.000Z
2022-03-31T17:14:39.000Z
dojo/note_type/views.py
mtcolman/django-DefectDojo
76175aca446e077884bdb5e1d8e2a671a0840775
[ "BSD-3-Clause" ]
1,173
2018-01-23T07:10:23.000Z
2022-03-31T14:40:43.000Z
import logging from django.contrib.auth.decorators import user_passes_test from django.shortcuts import render, get_object_or_404 from django.contrib import messages from django.urls import reverse from django.http import HttpResponseRedirect from dojo.forms import NoteTypeForm, EditNoteTypeForm, DisableOrEnableNoteT...
35.811024
82
0.646878
543
4,548
5.200737
0.171271
0.09915
0.029745
0.035411
0.602691
0.593484
0.580382
0.548513
0.548513
0.523017
0
0.004073
0.244283
4,548
126
83
36.095238
0.817573
0
0
0.432432
0
0
0.139182
0.021988
0
0
0
0
0
1
0.045045
false
0.054054
0.09009
0
0.216216
0
0
0
0
null
0
0
0
0
0
0
0
0
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
ab41df7d3af851bb2683e67bcf0e5272da318405
1,239
py
Python
app/__init__.py
guilhermeeuzebio/locadora-veiculos
02bee29c1b5b6077a9f956fdfe128e7392a3294a
[ "MIT" ]
null
null
null
app/__init__.py
guilhermeeuzebio/locadora-veiculos
02bee29c1b5b6077a9f956fdfe128e7392a3294a
[ "MIT" ]
null
null
null
app/__init__.py
guilhermeeuzebio/locadora-veiculos
02bee29c1b5b6077a9f956fdfe128e7392a3294a
[ "MIT" ]
2
2018-08-19T01:25:49.000Z
2018-08-19T13:45:57.000Z
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_jwt_extended import JWTManager from app.config import DevelopmentConfig, TestingConfig, ProductionConfig db = SQLAlchemy() def create_app(**config_overrides): app = Flask(__name__) # Load c...
28.159091
74
0.702986
148
1,239
5.662162
0.324324
0.118138
0.077566
0.090692
0
0
0
0
0
0
0
0.005123
0.212268
1,239
43
75
28.813953
0.853484
0.146893
0
0
0
0
0.065606
0
0
0
0
0
0
1
0.04
false
0
0.32
0
0.4
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ab452043655c3df301a7a02a7a07ac94cb286bf5
289
py
Python
tfnn/evaluating/test_decorator.py
heiya7/tfnn
19d604e11e5d76461570d7cc5dd105e1d9ed1964
[ "MIT" ]
35
2016-06-15T07:02:51.000Z
2019-09-04T05:56:37.000Z
tfnn/evaluating/test_decorator.py
heiya7/tfnn
19d604e11e5d76461570d7cc5dd105e1d9ed1964
[ "MIT" ]
1
2016-05-18T03:08:11.000Z
2016-05-18T03:08:11.000Z
tfnn/evaluating/test_decorator.py
MorvanZhou/tfnn
19d604e11e5d76461570d7cc5dd105e1d9ed1964
[ "MIT" ]
28
2016-07-02T11:41:48.000Z
2021-01-14T08:38:20.000Z
import time class Decorator(object): @staticmethod def time_dec(func): def wrapper(*arg, **kwargs): t = time.time() res = func(*arg, **kwargs) print(func.__name__, round(time.time()-t, 4)) return res return wrapper
22.230769
57
0.536332
33
289
4.545455
0.575758
0.12
0
0
0
0
0
0
0
0
0
0.005236
0.3391
289
13
58
22.230769
0.780105
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.1
0
0.6
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ab4f419cb2e4c8907e5e2eaa6dc30526329a5651
7,094
py
Python
siae_snmp/SIAE-IFEXT-MIB.py
CygnusNetworks/check_siae
eb7703a60d6746960aa2294b3e9f1821c150d3b9
[ "Apache-2.0" ]
null
null
null
siae_snmp/SIAE-IFEXT-MIB.py
CygnusNetworks/check_siae
eb7703a60d6746960aa2294b3e9f1821c150d3b9
[ "Apache-2.0" ]
null
null
null
siae_snmp/SIAE-IFEXT-MIB.py
CygnusNetworks/check_siae
eb7703a60d6746960aa2294b3e9f1821c150d3b9
[ "Apache-2.0" ]
null
null
null
# # PySNMP MIB module SIAE-IFEXT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file://./sm_ifext.mib # Produced by pysmi-0.3.2 at Fri Jul 19 08:18:02 2019 # On host 0e190c6811ee platform Linux version 4.9.125-linuxkit by user root # Using Python version 3.7.3 (default, Apr 3 2019, 05:39:12) # Integer, OctetString, O...
122.310345
685
0.754299
804
7,094
6.651741
0.215174
0.007479
0.078534
0.014211
0.425019
0.290202
0.290202
0.290202
0.265146
0.262154
0
0.088222
0.079645
7,094
57
686
124.45614
0.730893
0.039611
0
0
0
0
0.175485
0.016314
0
0
0
0
0
1
0
false
0
0.18
0
0.18
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ab4f8dcfd9c701034f71ede65c298c67cc5cb937
4,005
py
Python
triplet_to_text/code_/coreference_resolver/intersection_strategies.py
kracr/OntoLearnBench
c1ca89acd6862fcd6954a62d83c43b2236cdc695
[ "Apache-2.0" ]
1
2022-02-11T19:36:40.000Z
2022-02-11T19:36:40.000Z
triplet_to_text/code_/coreference_resolver/intersection_strategies.py
kracr/OntoLearnBench
c1ca89acd6862fcd6954a62d83c43b2236cdc695
[ "Apache-2.0" ]
null
null
null
triplet_to_text/code_/coreference_resolver/intersection_strategies.py
kracr/OntoLearnBench
c1ca89acd6862fcd6954a62d83c43b2236cdc695
[ "Apache-2.0" ]
1
2021-06-08T18:54:40.000Z
2021-06-08T18:54:40.000Z
#!/usr/bin/env python # coding: utf-8 # In[3]: #pip install neuralcoref --no-binary neuralcoref #pip install allennlp #pip install --pre allennlp-models # In[1]: from utils import load_models, print_clusters from utils import IntersectionStrategy, StrictIntersectionStrategy, PartialIntersectionStrategy, FuzzyInt...
36.409091
456
0.721598
550
4,005
5.22
0.401818
0.063393
0.033438
0.026123
0.229537
0.184953
0.159526
0.112504
0.040404
0.040404
0
0.017026
0.178777
4,005
109
457
36.743119
0.855883
0.63995
0
0
0
0.055556
0.414971
0.030523
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.444444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
ab4ffe7a53a88d80614d78d862be76d65a0f7207
750
py
Python
knowledge_repo/app/utils/time.py
clabroy/knowledge-repo
8e82441ddbc3302d4f8779cc336536a57e8f3b33
[ "Apache-2.0" ]
1
2021-01-28T20:03:03.000Z
2021-01-28T20:03:03.000Z
knowledge_repo/app/utils/time.py
clabroy/knowledge-repo
8e82441ddbc3302d4f8779cc336536a57e8f3b33
[ "Apache-2.0" ]
null
null
null
knowledge_repo/app/utils/time.py
clabroy/knowledge-repo
8e82441ddbc3302d4f8779cc336536a57e8f3b33
[ "Apache-2.0" ]
1
2021-06-07T14:52:26.000Z
2021-06-07T14:52:26.000Z
import datetime def time_since(dt, human_readable=False): if dt is None: return None assert isinstance(dt, datetime.datetime) delta = (datetime.datetime.utcnow() - dt).total_seconds() if human_readable: return human_readable_time_delta(delta) return delta def human_readable_time_...
30
73
0.634667
101
750
4.613861
0.316832
0.096567
0.103004
0.145923
0.227468
0.175966
0.120172
0
0
0
0
0.042105
0.24
750
24
74
31.25
0.775439
0
0
0
0
0
0.085333
0
0
0
0
0
0.05
1
0.1
false
0
0.05
0
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
ab58548dbdaaf95bb0f023ec62f2fe66fb4b2a41
18,027
py
Python
momepy/coins.py
pysal/momepy
319c36aa5671c4be1dccb59817f3041d913d6f74
[ "BSD-3-Clause" ]
36
2021-10-06T16:46:03.000Z
2022-03-23T14:04:56.000Z
momepy/coins.py
pysal/momepy
319c36aa5671c4be1dccb59817f3041d913d6f74
[ "BSD-3-Clause" ]
44
2021-10-01T16:08:46.000Z
2022-03-26T22:42:01.000Z
momepy/coins.py
pysal/momepy
319c36aa5671c4be1dccb59817f3041d913d6f74
[ "BSD-3-Clause" ]
5
2021-10-01T16:26:49.000Z
2022-03-15T23:17:19.000Z
""" This Python script generates strokes from edge geodataframes, mainly roads. Author: Pratyush Tripathy Date: 29 February 2020 Version: 0.2 Adapted for momepy by: Andres Morfin, Niki Patrinopoulou, and Ioannis Daramouskas Date: May 29, 2021 """ import collections import math import geopandas as gpd import numpy a...
31.460733
88
0.567981
2,253
18,027
4.388815
0.159343
0.041464
0.022654
0.026699
0.336165
0.280239
0.261327
0.237864
0.215817
0.162217
0
0.041563
0.331336
18,027
572
89
31.515734
0.778746
0.15388
0
0.28739
1
0
0.018287
0.003763
0
0
0
0
0
1
0.061584
false
0
0.020528
0
0.152493
0
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
ab5a81ccd5aedb1d88fa496764170efa255ea650
193
py
Python
else/else20.py
mifomen/python
b78789f73677b984acfdf3063f62e3bcc57afbe8
[ "MIT" ]
null
null
null
else/else20.py
mifomen/python
b78789f73677b984acfdf3063f62e3bcc57afbe8
[ "MIT" ]
null
null
null
else/else20.py
mifomen/python
b78789f73677b984acfdf3063f62e3bcc57afbe8
[ "MIT" ]
null
null
null
a = float(input("a = ")) b = float(input("b = ")) c = float(input("c = ")) if a==b==c: print('nothing') elif a==c: print(2) elif b==a: print(3) elif b==c: print(1) else: print('nothing')
12.866667
24
0.544041
36
193
2.916667
0.361111
0.285714
0.133333
0
0
0
0
0
0
0
0
0.018987
0.181347
193
14
25
13.785714
0.64557
0
0
0.153846
0
0
0.134715
0
0
0
0
0
0
1
0
false
0
0
0
0
0.384615
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
ab5bd85311681b64f4251bc62599fef616227060
423
py
Python
testing/scipy_distutils-0.3.3_34.586/command/build_py.py
fireballpoint1/fortranTOpy
55843a62c6f0a2f8e2a777ef70193940d3d2d141
[ "Apache-2.0" ]
1
2018-08-26T05:10:56.000Z
2018-08-26T05:10:56.000Z
testing/scipy_distutils-0.3.3_34.586/command/build_py.py
fireballpoint1/fortranTOpy
55843a62c6f0a2f8e2a777ef70193940d3d2d141
[ "Apache-2.0" ]
null
null
null
testing/scipy_distutils-0.3.3_34.586/command/build_py.py
fireballpoint1/fortranTOpy
55843a62c6f0a2f8e2a777ef70193940d3d2d141
[ "Apache-2.0" ]
1
2018-06-26T18:06:44.000Z
2018-06-26T18:06:44.000Z
from distutils.command.build_py import build_py as old_build_py class build_py(old_build_py): def find_package_modules(self, package, package_dir): modules = old_build_py.find_package_modules(self, package, package_dir) # Find build_src generated *.py files. build_src = self.get_finalize...
30.214286
79
0.728132
60
423
4.766667
0.35
0.146853
0.104895
0.153846
0.272727
0.272727
0.272727
0
0
0
0
0
0.189125
423
13
80
32.538462
0.833819
0.085106
0
0
0
0
0.023438
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
ab5e9ae6f2cb257be815a4ce25af3d478bc813b6
3,311
py
Python
java_sk/psketch.py
natebragg/java-sketch
f5ac26f2cc46ae4556f9a61c55afd37f55c961ff
[ "MIT" ]
15
2015-12-15T18:33:50.000Z
2021-09-29T11:48:54.000Z
java_sk/psketch.py
natebragg/java-sketch
f5ac26f2cc46ae4556f9a61c55afd37f55c961ff
[ "MIT" ]
11
2015-11-16T22:14:58.000Z
2021-09-23T05:28:40.000Z
java_sk/psketch.py
natebragg/java-sketch
f5ac26f2cc46ae4556f9a61c55afd37f55c961ff
[ "MIT" ]
8
2015-11-16T21:50:08.000Z
2021-03-23T15:15:34.000Z
#! /usr/bin/env python import multiprocessing import os import logging import logging.config import shutil import subprocess import sys import time def find_output_path(argv): for i, arg in enumerate(argv): if arg == "-o": return argv[i+1] return None def repl_output_path(argv, path): _argv = argv[:] fo...
27.823529
98
0.66868
460
3,311
4.669565
0.352174
0.079143
0.039106
0.02514
0.128492
0.113594
0.057728
0.029795
0.029795
0.029795
0
0.006415
0.199638
3,311
118
99
28.059322
0.804151
0.159468
0
0.206522
0
0
0.064691
0
0
0
0
0
0.021739
0
null
null
0.032609
0.086957
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
ab5f7ce544d7f1de20a06443c2a0f7ec06e3ddee
3,898
py
Python
Escape_Problem.py
anish03/CS255-Project
50bdd6d0c90dc53db6258516396492a50217e8b9
[ "MIT" ]
4
2019-03-10T08:39:53.000Z
2021-12-09T15:47:33.000Z
Escape_Problem.py
anish03/CS255-Project
50bdd6d0c90dc53db6258516396492a50217e8b9
[ "MIT" ]
null
null
null
Escape_Problem.py
anish03/CS255-Project
50bdd6d0c90dc53db6258516396492a50217e8b9
[ "MIT" ]
7
2019-12-03T02:33:28.000Z
2021-11-29T10:38:03.000Z
# Escape problem import os import numpy as np from scipy.sparse import csr_matrix from scipy.sparse.csgraph import breadth_first_order def path(arr, s, t): """ :param arr: Array of predecessors :param s: Source :param t: Sink :return: Shortest length path from source to sink """ source_ve...
25.644737
107
0.538225
603
3,898
3.379768
0.225539
0.013739
0.011776
0.009814
0.252208
0.2316
0.193817
0.160451
0.160451
0.160451
0
0.043843
0.327091
3,898
151
108
25.81457
0.73313
0.073114
0
0.096386
0
0
0.040976
0
0
0
0
0
0
0
null
null
0
0.048193
null
null
0.048193
0
0
0
null
0
0
0
0
0
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
ab617bc6105d1a0929366b1624a20012319177b7
3,469
py
Python
LPES-video/06.02-C-funkcje_struktury_tablice/06.02.01-funkcje.py
opcode-eu-org-website/LPES-wyklady-src
dd4d413f2bb5560790b6365fa7e68e8f1a8a65b0
[ "MIT" ]
null
null
null
LPES-video/06.02-C-funkcje_struktury_tablice/06.02.01-funkcje.py
opcode-eu-org-website/LPES-wyklady-src
dd4d413f2bb5560790b6365fa7e68e8f1a8a65b0
[ "MIT" ]
null
null
null
LPES-video/06.02-C-funkcje_struktury_tablice/06.02.01-funkcje.py
opcode-eu-org-website/LPES-wyklady-src
dd4d413f2bb5560790b6365fa7e68e8f1a8a65b0
[ "MIT" ]
1
2021-07-03T16:43:47.000Z
2021-07-03T16:43:47.000Z
# Copyright (c) 2020-2021 Matematyka dla Ciekawych Świata (http://ciekawi.icm.edu.pl/) # Copyright (c) 2020-2021 Robert Ryszard Paciorek <rrp@opcode.eu.org> # # MIT License # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Soft...
33.679612
185
0.696454
505
3,469
4.748515
0.50099
0.026272
0.010008
0.017515
0.110926
0.065888
0
0
0
0
0
0.013319
0.177573
3,469
102
186
34.009804
0.827199
0.34275
0
0.285714
0
0.079365
0.694728
0
0
0
0
0
0
1
0
false
0
0
0
0.031746
0.031746
0
0
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
ab64231e0cec9741522697a8e0946763fd60c3e6
1,556
py
Python
tests/test_user.py
Dnida/Ignite
38ac6042c9b16cdccf5ef066a1ee80b741b51a37
[ "BSD-2-Clause" ]
53
2017-12-12T06:58:25.000Z
2022-03-24T17:58:37.000Z
tests/test_user.py
Dnida/Ignite
38ac6042c9b16cdccf5ef066a1ee80b741b51a37
[ "BSD-2-Clause" ]
144
2018-01-22T15:15:41.000Z
2022-03-28T09:02:00.000Z
tests/test_user.py
Dnida/Ignite
38ac6042c9b16cdccf5ef066a1ee80b741b51a37
[ "BSD-2-Clause" ]
19
2017-12-12T07:04:14.000Z
2022-03-23T00:20:00.000Z
import pytest from appname.models import db from appname.models.user import User create_user = True @pytest.mark.usefixtures("testapp") class TestModels: def test_user_save(self, testapp): """ Test Saving the user model to the database """ user = User('user@example.com', 'supersafepassword') ...
33.826087
74
0.652956
191
1,556
5.209424
0.329843
0.070352
0.044221
0.048241
0.331658
0.295477
0.295477
0.295477
0.222111
0.222111
0
0.003347
0.232005
1,556
45
75
34.577778
0.829289
0.106041
0
0.375
0
0
0.159707
0
0
0
0
0
0.28125
1
0.125
false
0.1875
0.09375
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
db3e5c61964281dae63ca58e5ecc4a8b27a7dd89
11,228
py
Python
code/python-modules/task_tools.py
jvahala/lucid-robotics
c8473987d149d758369aa43bba54dcd7243fbc6b
[ "Apache-2.0" ]
2
2018-03-03T18:59:17.000Z
2018-05-31T18:02:36.000Z
code/python-modules/task_tools.py
jvahala/lucid-robotics
c8473987d149d758369aa43bba54dcd7243fbc6b
[ "Apache-2.0" ]
2
2016-06-07T13:09:30.000Z
2016-06-07T13:10:48.000Z
code/python-modules/task_tools.py
jvahala/lucid-robotics
c8473987d149d758369aa43bba54dcd7243fbc6b
[ "Apache-2.0" ]
null
null
null
import process import assign import utils import kinectData import clusters import numpy as np def setupComparison(data1,data2): inds = data1.feature_inds print data2.feat_array[0,:] data2.feat_array = data2.all_features[:,inds] print data2.feat_array[0,:] data2.feature_inds = inds def getSeveralBases(data,curr...
29.62533
324
0.690862
1,879
11,228
4.051623
0.194252
0.007093
0.005517
0.00578
0.248391
0.183502
0.117956
0.094312
0.033233
0.033233
0
0.031826
0.14927
11,228
379
325
29.62533
0.76518
0.084877
0
0.140893
0
0
0.036136
0
0
0
0
0
0
0
null
null
0.003436
0.051546
null
null
0.054983
0
0
0
null
0
0
0
0
0
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
db4057e0844a03c979c922f86e3c9a4092612567
1,625
py
Python
betdaq/baseclient.py
jackrhunt13/betdaq
0a7aabce5da0a383f67fd410fc77d8945cfe1503
[ "MIT" ]
13
2017-07-17T22:57:09.000Z
2022-03-25T05:19:04.000Z
betdaq/baseclient.py
liampauling/betdaq
4b09c4b979665e1841de42ee3c4fe154ba3e3966
[ "MIT" ]
10
2017-07-25T12:01:30.000Z
2021-08-03T15:17:03.000Z
betdaq/baseclient.py
liampauling/betdaq
4b09c4b979665e1841de42ee3c4fe154ba3e3966
[ "MIT" ]
11
2017-09-04T18:30:48.000Z
2021-07-26T09:04:50.000Z
import zeep class BaseClient: def __init__(self, username, password): self.username = username self.password = password self.wsdl_file = 'http://api.betdaq.com/v2.0/API.wsdl' self.readonly_types = None self.secure_types = None self.secure_client, self.readonly_clie...
37.790698
117
0.658462
175
1,625
5.885714
0.36
0.038835
0.034951
0.046602
0.205825
0.205825
0.205825
0.205825
0.083495
0
0
0.004906
0.247385
1,625
42
118
38.690476
0.837285
0.110154
0
0
0
0
0.13529
0.015032
0
0
0
0
0
1
0.133333
false
0.1
0.033333
0.033333
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
db45a9844c0fe0027fcb69a7835cae3bb65bbaad
9,434
py
Python
test_Read.py
HollickLab/metagene_analysis
a8b0df296dd1d76ba258fe92550a36bc5242db31
[ "MIT" ]
1
2022-01-22T22:48:38.000Z
2022-01-22T22:48:38.000Z
test_Read.py
HollickLab/metagene_analysis
a8b0df296dd1d76ba258fe92550a36bc5242db31
[ "MIT" ]
null
null
null
test_Read.py
HollickLab/metagene_analysis
a8b0df296dd1d76ba258fe92550a36bc5242db31
[ "MIT" ]
null
null
null
#!/usr/bin/python """test_Read.py to test the Read class. Requires: python 2 (https://www.python.org/downloads/) nose 1.3 (https://nose.readthedocs.org/en/latest/) Joy-El R.B. Talbot Copyright (c) 2014 The MIT License (MIT) Permission is hereby granted, free of charge, to any person obtaining a copy of this...
41.743363
118
0.647763
1,294
9,434
4.540185
0.225657
0.058043
0.035404
0.011915
0.40034
0.330213
0.22366
0.118128
0.096681
0.087149
0
0.061257
0.190163
9,434
225
119
41.928889
0.707723
0.05194
0
0.147887
0
0.014085
0.21685
0.04468
0
0
0
0.004444
0.021127
0
null
null
0
0.021127
null
null
0.021127
0
0
0
null
0
0
0
0
0
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
db5cfa6586a49ecdf9df3bc3f5d3485941499324
667
py
Python
Kooleposhti/courses/migrations/0003_auto_20211113_2220.py
ParizanTeam/Kooleposhti-Backend
e7d819b3e93836f1a893cc51541056cbf681d1c6
[ "MIT" ]
null
null
null
Kooleposhti/courses/migrations/0003_auto_20211113_2220.py
ParizanTeam/Kooleposhti-Backend
e7d819b3e93836f1a893cc51541056cbf681d1c6
[ "MIT" ]
null
null
null
Kooleposhti/courses/migrations/0003_auto_20211113_2220.py
ParizanTeam/Kooleposhti-Backend
e7d819b3e93836f1a893cc51541056cbf681d1c6
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-13 18:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('courses', '0002_auto_20211113_2157'), ] operations = [ migrations.AlterField( model_name='category', name='image', ...
27.791667
114
0.613193
73
667
5.452055
0.589041
0.100503
0.125628
0.145729
0.442211
0.442211
0.442211
0.442211
0.442211
0.442211
0
0.062626
0.257871
667
23
115
29
0.741414
0.067466
0
0.470588
1
0
0.216129
0.104839
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
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
db60b071b3a6a44f23154e104487b336ad7aa948
7,814
py
Python
tcp_and_proxy/sammael.py
mmmonk/crap
96ba81723f043503e7ed2f96ea727b524d22b83f
[ "MIT" ]
14
2015-01-14T15:53:22.000Z
2019-06-21T06:15:47.000Z
tcp_and_proxy/sammael.py
mmmonk/crap
96ba81723f043503e7ed2f96ea727b524d22b83f
[ "MIT" ]
1
2018-04-01T08:40:17.000Z
2020-06-24T10:05:33.000Z
tcp_and_proxy/sammael.py
mmmonk/crap
96ba81723f043503e7ed2f96ea727b524d22b83f
[ "MIT" ]
12
2015-05-13T10:52:04.000Z
2020-10-07T14:49:37.000Z
#!/usr/bin/python -u from OpenSSL import SSL from OpenSSL import crypto from select import select import fcntl import socket import os import sys import pwd import grp import time import random class sammael(): def __init__(self,phost="", pport=443, dhost="::1", dport=80, certpass=""): self.ver = "20140922" ...
29.711027
80
0.612618
1,074
7,814
4.387337
0.271881
0.043081
0.008913
0.0191
0.178905
0.124363
0.095925
0.078947
0.061969
0.043294
0
0.015218
0.243153
7,814
262
81
29.824427
0.781535
0.124648
0
0.181319
0
0
0.148361
0.014557
0
0
0
0
0
0
null
null
0.027473
0.06044
null
null
0.010989
0
0
0
null
0
0
0
0
0
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
db6dce16e99bbd21687167c6e3bf52f7bad1adc0
1,024
py
Python
PINp/2014/Chernov_M_S/task_9_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Chernov_M_S/task_9_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Chernov_M_S/task_9_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 9. Вариант 27. #Создайте игру, в которой компьютер выбирает какое-либо слово, а игрок должен его отгадать. Компьютер сообщает игроку, сколько букв в слове, и дает пять попыток узнать, есть ли какая-либо буква в слове, причем программа может отвечать только "Да" и "Нет". Вслед за тем игрок должен попробовать от...
36.571429
309
0.708984
156
1,024
4.660256
0.647436
0.037139
0.024759
0
0
0
0
0
0
0
0
0.018286
0.145508
1,024
28
310
36.571429
0.811429
0.34375
0
0.166667
0
0
0.422156
0
0
0
0
0
0
0
null
null
0
0.041667
null
null
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
db7343ff6a077632cc8cac418abaaff7af06e4b4
722
py
Python
parser/fase2/team10/InstruccionesPL/Returns/Returns.py
Gabriel-15/tytus
fb00718bf3fcc5211a3604fba1a551f44bdc6deb
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
parser/fase2/team10/InstruccionesPL/Returns/Returns.py
Gabriel-15/tytus
fb00718bf3fcc5211a3604fba1a551f44bdc6deb
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
parser/fase2/team10/InstruccionesPL/Returns/Returns.py
Gabriel-15/tytus
fb00718bf3fcc5211a3604fba1a551f44bdc6deb
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
from InstruccionesPL.TablaSimbolosPL.InstruccionPL import InstruccionPL class Returns(InstruccionPL): def __init__(self, OperacionLogica, tipo, linea, columna, strGram): InstruccionPL.__init__(self, tipo, linea, columna, strGram) self.OperacionLogica = OperacionLogica def ejecut...
42.470588
75
0.671745
71
722
6.71831
0.422535
0.104822
0.067086
0.096436
0.100629
0
0
0
0
0
0
0.005319
0.218837
722
17
76
42.470588
0.840426
0.033241
0
0
0
0
0.04298
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1