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
752bc94bdb813f33b60a4fa6280c58bed1b2d03d
1,803
py
Python
src/translation.py
Wlodarski/DR-Altimeter
b831a2ce4f05d89fcadba5bab623a39d6527264e
[ "MIT" ]
null
null
null
src/translation.py
Wlodarski/DR-Altimeter
b831a2ce4f05d89fcadba5bab623a39d6527264e
[ "MIT" ]
6
2020-03-28T18:56:47.000Z
2020-04-06T13:09:55.000Z
src/translation.py
Wlodarski/DR-Altimeter
b831a2ce4f05d89fcadba5bab623a39d6527264e
[ "MIT" ]
null
null
null
#! python3 """ MIT License Copyright (c) 2020 Walter Wlodarski Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
34.673077
101
0.742651
250
1,803
5.272
0.52
0.066768
0.019727
0
0
0
0
0
0
0
0
0.003458
0.198003
1,803
51
102
35.352941
0.908022
0.600111
0
0
0
0
0.026648
0
0
0
0
0
0
1
0.2
false
0
0.1
0.1
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
752d3e4ee7475225bb08bd56270853593c9c7737
676
py
Python
config/urls.py
stkrizh/otus-django-hasker
9692b8060a789b0b66b4cf3591a78e32c8a10380
[ "MIT" ]
null
null
null
config/urls.py
stkrizh/otus-django-hasker
9692b8060a789b0b66b4cf3591a78e32c8a10380
[ "MIT" ]
10
2020-06-05T22:56:30.000Z
2022-02-10T08:54:18.000Z
config/urls.py
stkrizh/otus-django-hasker
9692b8060a789b0b66b4cf3591a78e32c8a10380
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import include, path from users.views import LogIn, LogOut, Settings, SignUp urlpatterns = [ path(f"{settings.ADMIN_URL}/", admin.site.urls), path("", include("questions.urls")), ...
32.190476
80
0.704142
91
676
5.142857
0.340659
0.08547
0.08547
0
0
0
0
0
0
0
0
0.001701
0.130178
676
20
81
33.8
0.794218
0
0
0
0
0
0.147929
0.031065
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
7539ce8921d3225bf80008bbe5aba7640173e66f
554
py
Python
research/datasets/tests/test_datasets.py
joaopfonseca/research
02659512218d077d9ef28d481178e62172ef18cd
[ "MIT" ]
1
2021-01-25T00:09:32.000Z
2021-01-25T00:09:32.000Z
research/datasets/tests/test_datasets.py
joaopfonseca/research
02659512218d077d9ef28d481178e62172ef18cd
[ "MIT" ]
null
null
null
research/datasets/tests/test_datasets.py
joaopfonseca/research
02659512218d077d9ef28d481178e62172ef18cd
[ "MIT" ]
null
null
null
from urllib.request import urlopen import multiprocessing.dummy as mp from multiprocessing import cpu_count import ssl from .._base import FETCH_URLS ssl._create_default_https_context = ssl._create_unverified_context def test_urls(): """Test whether URLS are working.""" urls = [ url for subl...
24.086957
87
0.693141
80
554
4.6125
0.525
0.073171
0.04336
0
0
0
0
0
0
0
0
0.006849
0.209386
554
22
88
25.181818
0.835616
0.054152
0
0
0
0
0
0
0
0
0
0
0.066667
1
0.066667
false
0
0.333333
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
753e238d11dcef3e0069b4e553a40395bf220dd3
421
py
Python
python3/contains_duplicate_3.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
1
2020-10-08T09:17:40.000Z
2020-10-08T09:17:40.000Z
python3/contains_duplicate_3.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
null
null
null
python3/contains_duplicate_3.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
null
null
null
""" Space : O(1) Time : O(n**2) """ class Solution: def containsNearbyAlmostDuplicate(self, nums: List[int], k: int, t: int) -> bool: if t == 0 and len(nums) == len(set(nums)): return False for i, cur_val in enumerate(nums): for j in range(i+1, min(i+k+1, len(nums))): ...
26.3125
85
0.503563
61
421
3.442623
0.57377
0.066667
0
0
0
0
0
0
0
0
0
0.018182
0.346793
421
15
86
28.066667
0.745455
0.07601
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
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
753f4b0a72fb6a598355d9cd10551930431e1d41
5,024
py
Python
LIBRAY_MANAGEMENT/f_passwd.py
ShriyasnhAgarwl/Hacktoberfest
5e8adf77a833f7b99dbddff92716e05641dac857
[ "MIT" ]
null
null
null
LIBRAY_MANAGEMENT/f_passwd.py
ShriyasnhAgarwl/Hacktoberfest
5e8adf77a833f7b99dbddff92716e05641dac857
[ "MIT" ]
null
null
null
LIBRAY_MANAGEMENT/f_passwd.py
ShriyasnhAgarwl/Hacktoberfest
5e8adf77a833f7b99dbddff92716e05641dac857
[ "MIT" ]
null
null
null
from tkinter import * from tkinter import ttk from tkinter import messagebox import sqlite3 from sqlite3 import Error #creating window class Fp(Tk): def __init__(self): super().__init__() self.iconbitmap(r'libico.ico') self.maxsize(480, 320) self.title("Forget Password...
50.24
250
0.488256
577
5,024
4.22877
0.32409
0.029508
0.065984
0.02459
0.337295
0.317623
0.268852
0.237705
0.194262
0.156148
0
0.041074
0.370024
5,024
99
251
50.747475
0.729858
0.013336
0
0.266667
0
0.011111
0.195509
0.015245
0
0
0
0
0
1
0.033333
false
0.077778
0.055556
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7548e64006c12b84e95b327958f7a42ffbcf5097
2,658
py
Python
code/syn.py
ron-rivest/audit-lab
b8f1478035db04afa2c5e5349b9666fd8df5976e
[ "MIT" ]
3
2018-09-12T03:06:28.000Z
2019-05-04T06:45:54.000Z
code/syn.py
YAXINLEI/audit-lab
b8f1478035db04afa2c5e5349b9666fd8df5976e
[ "MIT" ]
11
2017-09-19T18:23:02.000Z
2018-07-06T19:08:49.000Z
code/syn.py
YAXINLEI/audit-lab
b8f1478035db04afa2c5e5349b9666fd8df5976e
[ "MIT" ]
23
2017-09-05T17:09:59.000Z
2019-12-15T19:55:53.000Z
# syn.py # Ronald L. Rivest (with Karim Husayn Karimi) # August 3, 2017 # python3 """ Routines to generate a synthetic test election dataset for OpenAuditTool.py. Calls data generation routines in syn1.py for elections "of type 1", and calls routines in syn2.py for elections "of type 2". """ import numpy as np imp...
26.316832
82
0.623401
382
2,658
4.293194
0.484293
0.032927
0.029268
0.036585
0.097561
0.057317
0
0
0
0
0
0.067317
0.228743
2,658
100
83
26.58
0.732683
0.57374
0
0
1
0
0.008929
0
0
0
0
0
0.037037
1
0.111111
false
0.037037
0.111111
0
0.37037
0
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
754b6ed304a3a91854108f6ce34b4157cf24597b
6,519
py
Python
pycalc/MAVProxy/modules/lib/ANUGA/redfearn.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
null
null
null
pycalc/MAVProxy/modules/lib/ANUGA/redfearn.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
8
2021-01-28T19:26:22.000Z
2022-03-24T18:07:24.000Z
pycalc/MAVProxy/modules/lib/ANUGA/redfearn.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
null
null
null
""" This module adapted ANUGA https://anuga.anu.edu.au/ ------------ Implementation of Redfearn's formula to compute UTM projections from latitude and longitude Based in part on spreadsheet www.icsm.gov.au/gda/gdatm/redfearn.xls downloaded from INTERGOVERNMENTAL COMMITTEE ON SURVEYING & MAPPING (ICSM) http://www.ics...
26.717213
91
0.595644
907
6,519
4.200662
0.292172
0.031496
0.015748
0.015748
0.087139
0.032021
0
0
0
0
0
0.080855
0.303728
6,519
243
92
26.82716
0.758537
0.061513
0
0.067669
0
0
0.014941
0
0
0
0
0
0.022556
0
null
null
0
0.015038
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
7551dd7a08f30ce3108b03fcbbf5b83d7533a27d
908
py
Python
core/migrations/0002_auto_20220209_1251.py
mazdakdev/video-compressor
17e9f9f3f70f41b953a4c84ec6b1370f9faa97e3
[ "MIT" ]
3
2022-02-11T12:09:29.000Z
2022-02-12T19:13:17.000Z
core/migrations/0002_auto_20220209_1251.py
mazdakdev/Video-compressor
17e9f9f3f70f41b953a4c84ec6b1370f9faa97e3
[ "MIT" ]
null
null
null
core/migrations/0002_auto_20220209_1251.py
mazdakdev/Video-compressor
17e9f9f3f70f41b953a4c84ec6b1370f9faa97e3
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2022-02-09 12:51 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.AlterField( model_name='video', na...
30.266667
162
0.60793
98
908
5.55102
0.510204
0.082721
0.110294
0.159926
0.415441
0.415441
0.345588
0.1875
0.1875
0.1875
0
0.053333
0.256608
908
29
163
31.310345
0.752593
0.049559
0
0.391304
1
0
0.111498
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
75522ca8fbe7cd45f4d322e2008582dbf31ff13b
533
py
Python
setup_guide/translation.py
uktrade/invest
15b84c511839b46e81608fca9762d2df3f6df16c
[ "MIT" ]
1
2019-01-18T03:50:46.000Z
2019-01-18T03:50:46.000Z
setup_guide/translation.py
uktrade/invest
15b84c511839b46e81608fca9762d2df3f6df16c
[ "MIT" ]
50
2018-01-24T18:04:08.000Z
2019-01-03T03:30:30.000Z
setup_guide/translation.py
uktrade/invest
15b84c511839b46e81608fca9762d2df3f6df16c
[ "MIT" ]
2
2018-02-12T15:20:52.000Z
2019-01-18T03:51:52.000Z
from .models import SetupGuidePage, SetupGuideLandingPage from modeltranslation.translator import TranslationOptions from modeltranslation.decorators import register @register(SetupGuidePage) class SetupGuidePageTranslation(TranslationOptions): fields = ( 'description', 'heading', 'sub_hea...
23.173913
59
0.712946
37
533
10.189189
0.540541
0.106101
0.090186
0
0
0
0
0
0
0
0
0
0.206379
533
22
60
24.227273
0.891253
0
0
0.333333
0
0
0.121951
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.388889
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7558d464af2c0903cb1ca1c124d0a67287c52fa3
13,195
py
Python
stacker/deploy.py
elliottgorrell/stacker
6a8f2518dd04606255107937820bf3c249efd839
[ "MIT" ]
null
null
null
stacker/deploy.py
elliottgorrell/stacker
6a8f2518dd04606255107937820bf3c249efd839
[ "MIT" ]
null
null
null
stacker/deploy.py
elliottgorrell/stacker
6a8f2518dd04606255107937820bf3c249efd839
[ "MIT" ]
null
null
null
__author__ = "Steve Mactaggart && Elliott Gorrell" import base64 import json import re import sys import traceback from datetime import datetime import boto3 import botocore import yaml from cf_helper import secure_print from cf_helper.utils import DeployException, CloudFormationUtil, STSUtil class DeployExecutor(o...
42.702265
182
0.551648
1,317
13,195
5.33713
0.215642
0.035851
0.022194
0.018495
0.18822
0.147674
0.127614
0.108835
0.108835
0.08593
0
0.003935
0.36438
13,195
308
183
42.840909
0.834148
0.061008
0
0.272727
0
0
0.134432
0.007352
0
0
0
0
0
0
null
null
0
0.053719
null
null
0.103306
0
0
0
null
0
0
0
0
0
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
f3336022271959da6f3feefe377eea05c0033d68
2,981
py
Python
src/pages/mainPage.py
mvoitko/Habrahabr-tests
0b909178ba09b31dbd02c73f8b34f191746a27c2
[ "MIT" ]
null
null
null
src/pages/mainPage.py
mvoitko/Habrahabr-tests
0b909178ba09b31dbd02c73f8b34f191746a27c2
[ "MIT" ]
null
null
null
src/pages/mainPage.py
mvoitko/Habrahabr-tests
0b909178ba09b31dbd02c73f8b34f191746a27c2
[ "MIT" ]
null
null
null
""" Created on Oct 28, 2016 @author: mvoitko """ import re import time import locale from datetime import datetime from selenium import webdriver from selenium.common.exceptions import * from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.sup...
35.488095
94
0.667226
345
2,981
5.646377
0.327536
0.053388
0.026694
0.041068
0.191478
0.191478
0.160678
0.070842
0
0
0
0.003557
0.245555
2,981
84
95
35.488095
0.862606
0.242536
0
0.044444
0
0
0.05953
0
0
0
0
0
0
1
0.088889
false
0
0.288889
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
f335630c98f006cde2b540a21572bf9a60f94dc4
2,595
py
Python
mainsite/migrations/0001_initial.py
MuratovER/IMO
90efd087917159dc5b8aab3c8946003496e54418
[ "MIT" ]
null
null
null
mainsite/migrations/0001_initial.py
MuratovER/IMO
90efd087917159dc5b8aab3c8946003496e54418
[ "MIT" ]
null
null
null
mainsite/migrations/0001_initial.py
MuratovER/IMO
90efd087917159dc5b8aab3c8946003496e54418
[ "MIT" ]
1
2022-03-31T21:19:14.000Z
2022-03-31T21:19:14.000Z
# Generated by Django 4.0.3 on 2022-05-07 11:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
45.526316
148
0.589595
266
2,595
5.631579
0.349624
0.066088
0.084112
0.11215
0.497997
0.425901
0.287049
0.287049
0.287049
0.287049
0
0.024059
0.263198
2,595
56
149
46.339286
0.759414
0.017341
0
0.346939
1
0
0.078493
0
0
0
0
0
0
1
0
false
0
0.081633
0
0.163265
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f339a807e3723d74dbde7cf96ca0b74587cac911
285
py
Python
day01/ex04/test.py
d-r-e/Machine-Learning-Bootcamp
618cad97c04d15fec6e8a371c526ad8e08cae35a
[ "MIT" ]
null
null
null
day01/ex04/test.py
d-r-e/Machine-Learning-Bootcamp
618cad97c04d15fec6e8a371c526ad8e08cae35a
[ "MIT" ]
6
2021-05-25T08:51:39.000Z
2021-05-25T08:51:40.000Z
day01/ex04/test.py
d-r-e/Python-Bootcamp-42AI
618cad97c04d15fec6e8a371c526ad8e08cae35a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from eval import Evaluator def main(): words = ["Le", "Lorem", "Ipsum", "est", "simple"] coefs = [1, 2, 1, 4, 0.5] print(Evaluator.zip_evaluate(coefs, words)) print(Evaluator.enumerate_evaluate(coefs, words)) if __name__ == '__main__': main()
23.75
51
0.642105
39
285
4.435897
0.717949
0.16185
0.208092
0
0
0
0
0
0
0
0
0.029787
0.175439
285
12
52
23.75
0.706383
0.073684
0
0
0
0
0.114625
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.25
0.25
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f340cb596921e5050e8fd921f0453c58f3a6bf7a
607
py
Python
config/config_example1_singleton.py
orest-d/design-patterns-finance
5878912dfa5b34925b00c38da978e7b9e4735a14
[ "CC0-1.0" ]
null
null
null
config/config_example1_singleton.py
orest-d/design-patterns-finance
5878912dfa5b34925b00c38da978e7b9e4735a14
[ "CC0-1.0" ]
null
null
null
config/config_example1_singleton.py
orest-d/design-patterns-finance
5878912dfa5b34925b00c38da978e7b9e4735a14
[ "CC0-1.0" ]
null
null
null
class Config: __instance = None @staticmethod def get_instance(): """ Static access method. """ if Config.__instance == None: Config() return Config.__instance def __init__(self): if Config.__instance != None: raise Exception("This class can't b...
22.481481
92
0.594728
71
607
4.816901
0.464789
0.204678
0.157895
0.116959
0.160819
0.160819
0.160819
0.160819
0.160819
0
0
0
0.286656
607
27
93
22.481481
0.789838
0.034596
0
0.2
0
0
0.141623
0
0
0
0
0
0
1
0.1
false
0
0
0
0.25
0.15
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
f34de76ae9039725d601fb7aab02966a635e24da
2,071
py
Python
Control/AFGRoperations.py
RNolioSC/TrabalhoFormais
1668fe2cd21eb2a5546e5d04381e5927637aab4c
[ "MIT" ]
null
null
null
Control/AFGRoperations.py
RNolioSC/TrabalhoFormais
1668fe2cd21eb2a5546e5d04381e5927637aab4c
[ "MIT" ]
null
null
null
Control/AFGRoperations.py
RNolioSC/TrabalhoFormais
1668fe2cd21eb2a5546e5d04381e5927637aab4c
[ "MIT" ]
null
null
null
class AFGR: @staticmethod def af_to_gr(dict_af): dict_swap = {} for keys in dict_af: dict_swap[keys] = [] for list in dict_af[keys]: dict_swap[keys].insert(len(dict_swap[keys]), list[0]) dict_swap[keys].insert(len(dict_swap[keys]), list[1]...
38.351852
122
0.551424
254
2,071
4.275591
0.228346
0.162063
0.143646
0.18232
0.450276
0.415285
0.415285
0.415285
0.415285
0.305709
0
0.009552
0.34283
2,071
53
123
39.075472
0.788391
0.08112
0
0.414634
0
0
0.00316
0
0
0
0
0
0
1
0.073171
false
0
0
0
0.195122
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
f350b79d3a3986015ca3232bfcbeaee0d5fcd69f
6,501
py
Python
syft_proto/execution/v1/protocol_pb2.py
karlhigley/syft-proto
f7c926ce26f7551b7ab430fcab9c204819845396
[ "Apache-2.0" ]
null
null
null
syft_proto/execution/v1/protocol_pb2.py
karlhigley/syft-proto
f7c926ce26f7551b7ab430fcab9c204819845396
[ "Apache-2.0" ]
null
null
null
syft_proto/execution/v1/protocol_pb2.py
karlhigley/syft-proto
f7c926ce26f7551b7ab430fcab9c204819845396
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: syft_proto/execution/v1/protocol.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import sym...
43.05298
727
0.76219
886
6,501
5.27088
0.156885
0.057816
0.075375
0.089936
0.625054
0.501927
0.471734
0.425482
0.395931
0.388223
0
0.041732
0.111675
6,501
150
728
43.34
0.766926
0.053992
0
0.496063
1
0.007874
0.236731
0.197655
0
0
0
0
0
1
0
false
0
0.047244
0
0.047244
0
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
f35ab5301440aa325869937b34d4d4a986a14ae0
1,367
py
Python
016 3Sum Closest.py
ChiFire/legend_LeetCode
93fe97fef7e929fdbdc25fbb53955d44e14ecff8
[ "MIT" ]
872
2015-06-15T12:02:41.000Z
2022-03-30T08:44:35.000Z
016 3Sum Closest.py
ChiFire/legend_LeetCode
93fe97fef7e929fdbdc25fbb53955d44e14ecff8
[ "MIT" ]
8
2015-06-21T15:11:59.000Z
2022-02-01T11:22:34.000Z
016 3Sum Closest.py
ChiFire/legend_LeetCode
93fe97fef7e929fdbdc25fbb53955d44e14ecff8
[ "MIT" ]
328
2015-06-28T03:10:35.000Z
2022-03-29T11:05:28.000Z
""" Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exactly one solution. For example, given array S = {-1 2 1 -4}, and target = 1. The sum that is closest to ...
31.790698
120
0.512802
174
1,367
3.913793
0.41954
0.088106
0.032305
0.038179
0
0
0
0
0
0
0
0.032847
0.398683
1,367
42
121
32.547619
0.79562
0
0
0.086957
0
0
0.019011
0
0
0
0
0
0
0
null
null
0
0
null
null
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f35b1b6906f039410938832141f022b5a187af5f
4,253
py
Python
SENN/models.py
EdwardGuen/SENN-revisited
41145a89214c6d978eb7c83e74c0f43007e0be4d
[ "MIT" ]
null
null
null
SENN/models.py
EdwardGuen/SENN-revisited
41145a89214c6d978eb7c83e74c0f43007e0be4d
[ "MIT" ]
null
null
null
SENN/models.py
EdwardGuen/SENN-revisited
41145a89214c6d978eb7c83e74c0f43007e0be4d
[ "MIT" ]
null
null
null
# torch import torch.nn as nn class Senn(nn.Module): """Self-Explaining Neural Network (SENN) Args: conceptizer: conceptizer architecture parametrizer: parametrizer architecture aggregator: aggregator architecture Inputs: x: image (b, n_channels, h, w) Returns: ...
33.753968
96
0.648013
467
4,253
5.734475
0.149893
0.01419
0.033607
0.033607
0.691187
0.691187
0.667289
0.612397
0.612397
0.612397
0
0.0096
0.265225
4,253
125
97
34.024
0.84736
0.429579
0
0.510204
0
0
0
0
0
0
0
0
0
1
0.163265
false
0
0.020408
0
0.367347
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f35da1b1d84b79f3638ec8c0791f85ce28bc153d
7,514
py
Python
backend/benefit/applications/tests/factories.py
City-of-Helsinki/kesaseteli
964f801c2dba72c4105b6e436b12b821b199d6d2
[ "MIT" ]
2
2021-05-10T09:28:35.000Z
2021-05-17T12:15:34.000Z
backend/benefit/applications/tests/factories.py
City-of-Helsinki/yjdh
1c07576b456d2be9c3171363450ed46de2c1bbcb
[ "MIT" ]
931
2021-05-21T15:24:35.000Z
2022-03-31T20:07:40.000Z
backend/benefit/applications/tests/factories.py
City-of-Helsinki/yjdh
1c07576b456d2be9c3171363450ed46de2c1bbcb
[ "MIT" ]
6
2021-07-06T11:07:02.000Z
2022-02-07T12:42:21.000Z
import decimal import itertools import random from datetime import date, timedelta import factory from applications.enums import ApplicationStatus, ApplicationStep, BenefitType from applications.models import ( AhjoDecision, Application, APPLICATION_LANGUAGE_CHOICES, ApplicationBasis, ApplicationBa...
36.833333
86
0.729838
804
7,514
6.588308
0.292289
0.092883
0.023787
0.027374
0.343024
0.315839
0.253162
0.194261
0.185766
0.185766
0
0.013088
0.176338
7,514
203
87
37.014778
0.842786
0.03021
0
0.202381
0
0
0.094754
0.029525
0
0
0
0
0
1
0.017857
false
0
0.059524
0
0.553571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
f35f43c00e526592a35ccf5d1df69d3b25cc9782
492
py
Python
homework(december)/decemberAssigment1/random1.py
tkanicka/python_learning
67fc0e8ca6333571f8b0d30f835b759d670a8643
[ "Unlicense" ]
null
null
null
homework(december)/decemberAssigment1/random1.py
tkanicka/python_learning
67fc0e8ca6333571f8b0d30f835b759d670a8643
[ "Unlicense" ]
null
null
null
homework(december)/decemberAssigment1/random1.py
tkanicka/python_learning
67fc0e8ca6333571f8b0d30f835b759d670a8643
[ "Unlicense" ]
null
null
null
import random class Play: def __init__(self, name="Player"): self.name = name def print_name(self): print("your name is ", self.name) def TossDie(self, x=1): for i in range(x): print(random.randint(1, 6)) def RPC(self, x=1): for i in range(x): ...
15.375
51
0.565041
67
492
4.059701
0.462687
0.088235
0.044118
0.066176
0.132353
0.132353
0.132353
0.132353
0
0
0
0.028653
0.29065
492
31
52
15.870968
0.750716
0
0
0.117647
0
0
0.08589
0
0
0
0
0
0
1
0.235294
false
0
0.058824
0
0.352941
0.294118
0
0
0
null
0
0
0
0
0
0
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
f370a807612b9899c6544506def0d96f26936479
358
py
Python
app/requests.py
Mash14/personal-blog
4117097b98ffab7a0dfc43261162da88cde863c2
[ "MIT" ]
null
null
null
app/requests.py
Mash14/personal-blog
4117097b98ffab7a0dfc43261162da88cde863c2
[ "MIT" ]
null
null
null
app/requests.py
Mash14/personal-blog
4117097b98ffab7a0dfc43261162da88cde863c2
[ "MIT" ]
null
null
null
import urllib.request,json from .models import Quote def get_quotes(): get_quotes_url = 'http://quotes.stormconsultancy.co.uk/random.json' with urllib.request.urlopen(get_quotes_url) as url: get_quotes_data = url.read() get_quotes_response = json.loads(get_quotes_data) print(get_quote...
29.833333
71
0.73743
51
358
4.882353
0.490196
0.289157
0.156627
0
0
0
0
0
0
0
0
0
0.173184
358
12
72
29.833333
0.841216
0
0
0
0
0
0.133705
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0.111111
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
f373d9e39b7c68b7583c76a11336122d800a3114
2,142
py
Python
misc/phyler_classify.py
hurwitzlab/LSA-pipeline
0515fe325ccf49c7914ea8aa1404cdee6dfe2648
[ "MIT" ]
39
2015-09-20T06:33:54.000Z
2021-12-21T06:59:53.000Z
misc/phyler_classify.py
hurwitzlab/LSA-pipeline
0515fe325ccf49c7914ea8aa1404cdee6dfe2648
[ "MIT" ]
23
2015-09-23T12:00:43.000Z
2020-05-27T15:42:11.000Z
misc/phyler_classify.py
hurwitzlab/LSA-pipeline
0515fe325ccf49c7914ea8aa1404cdee6dfe2648
[ "MIT" ]
19
2015-10-16T21:40:12.000Z
2020-11-10T07:58:00.000Z
#!/usr/bin/env python import sys, getopt import glob,os # sample the first 10**7 reads def get_fasta(fp,fo): f = open(fp) g = open(fo,'w') lastlinechar = '' writenext = False read_count = 0 for line in f: if (line[0] == '@') and (lastlinechar != '+'): g.write('>'+line[1:]) writenext = True read_count...
34
304
0.653595
323
2,142
4.260062
0.346749
0.103924
0.071221
0.055233
0.275436
0.161337
0.102471
0.102471
0
0
0
0.021358
0.147526
2,142
63
305
34
0.732202
0.022876
0
0.103448
0
0.051724
0.322658
0.160612
0
0
0
0
0
0
null
null
0
0.034483
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
f374cca632fe9ea398a4cffa7dc83253ebb4f185
9,481
py
Python
aws/sagemaker/kmeans/daal_kmeans_docker/container/kmeans/Kmeans.py
ravi9/csp
42cc55bf36841514341fc45f17363f287bc70114
[ "MIT" ]
null
null
null
aws/sagemaker/kmeans/daal_kmeans_docker/container/kmeans/Kmeans.py
ravi9/csp
42cc55bf36841514341fc45f17363f287bc70114
[ "MIT" ]
null
null
null
aws/sagemaker/kmeans/daal_kmeans_docker/container/kmeans/Kmeans.py
ravi9/csp
42cc55bf36841514341fc45f17363f287bc70114
[ "MIT" ]
1
2018-11-06T06:16:35.000Z
2018-11-06T06:16:35.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import daal.algorithms.kmeans.init from daal.algorithms import kmeans from daal.data_management import InputDataArchive, OutputDataArchive from daal.data_management import Compressor_Zlib, Decompressor_Zlib, \ level9, DecompressionStream, CompressionStream, HomogenNumericT...
43.490826
1,404
0.629259
878
9,481
6.779043
0.281321
0.008065
0.00756
0.004704
0.171035
0.128024
0.116935
0.116935
0.116935
0.116935
0
0.014346
0.272123
9,481
217
1,405
43.691244
0.848138
0.179201
0
0.259887
0
0
0.042322
0
0
0
0
0
0
1
0.039548
false
0
0.050847
0
0.135593
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f37556e45733e4284a2c266789d0279aa779aaab
1,037
py
Python
packages/syft/src/syft/proto/lib/python/bytes_pb2.py
jackbandy/PySyft
0e20e90abab6a7a7ca672d6eedfa1e7f83c4981b
[ "Apache-2.0" ]
null
null
null
packages/syft/src/syft/proto/lib/python/bytes_pb2.py
jackbandy/PySyft
0e20e90abab6a7a7ca672d6eedfa1e7f83c4981b
[ "Apache-2.0" ]
null
null
null
packages/syft/src/syft/proto/lib/python/bytes_pb2.py
jackbandy/PySyft
0e20e90abab6a7a7ca672d6eedfa1e7f83c4981b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/lib/python/bytes.proto """Generated protocol buffer code.""" # third party from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import ...
34.566667
139
0.788814
133
1,037
5.902256
0.548872
0.04586
0.09172
0.09172
0.086624
0
0
0
0
0
0
0.039871
0.105111
1,037
29
140
35.758621
0.806034
0.224687
0
0
1
0.0625
0.199243
0.197982
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f3792dc86555ef5c680134d2150cbf714d907165
27,319
py
Python
sequenceur.py
lperezfr/turbot-toulouse-robot-race
52043120db44cf3c901429d1990c4c96c9c2b5f6
[ "Apache-2.0" ]
1
2017-10-06T22:13:27.000Z
2017-10-06T22:13:27.000Z
sequenceur.py
lperezfr/turbot-toulouse-robot-race
52043120db44cf3c901429d1990c4c96c9c2b5f6
[ "Apache-2.0" ]
null
null
null
sequenceur.py
lperezfr/turbot-toulouse-robot-race
52043120db44cf3c901429d1990c4c96c9c2b5f6
[ "Apache-2.0" ]
null
null
null
# encoding:utf-8 # Librairies tierces import time import os # Mes classes from voiture import Voiture from asservissement import Asservissement from arduino import Arduino class Sequenceur: # General # CONST_NOMBRE_MESURES_DEPASSEMENT_DISTANCE = 1000 # Nombre de mesures consecutives du telemetre a...
39.535456
169
0.538856
2,420
27,319
5.867355
0.141322
0.070498
0.033805
0.029157
0.506162
0.444257
0.404395
0.358476
0.358476
0.300444
0
0.024341
0.344339
27,319
691
170
39.535456
0.767865
0.216553
0
0.396728
0
0
0.17275
0.005596
0
0
0
0.001447
0
0
null
null
0.014315
0.010225
null
null
0.006135
0
0
0
null
0
0
0
0
0
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
f38371cb347fe1cc59a05a3c04244fc73c03cc52
820
py
Python
app/request/migrations/0003_auto_20190924_2107.py
contestcrew/2019SeoulContest-Backend
2e99cc6ec6a712911da3b79412ae84a9d35453e1
[ "MIT" ]
null
null
null
app/request/migrations/0003_auto_20190924_2107.py
contestcrew/2019SeoulContest-Backend
2e99cc6ec6a712911da3b79412ae84a9d35453e1
[ "MIT" ]
32
2019-08-30T13:09:28.000Z
2021-06-10T19:07:56.000Z
app/request/migrations/0003_auto_20190924_2107.py
contestcrew/2019SeoulContest-Backend
2e99cc6ec6a712911da3b79412ae84a9d35453e1
[ "MIT" ]
3
2019-09-19T10:12:50.000Z
2019-09-30T15:59:13.000Z
# Generated by Django 2.2.5 on 2019-09-24 12:07 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('request', '0002_auto_20190924_1811'), ] operations = [ migrations.CreateModel( name='PoliceOffi...
30.37037
140
0.610976
89
820
5.483146
0.617978
0.04918
0.057377
0.090164
0
0
0
0
0
0
0
0.054366
0.259756
820
26
141
31.538462
0.749588
0.054878
0
0.1
1
0
0.122898
0.029754
0
0
0
0
0
1
0
false
0
0.1
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
f388170b0b0845168e9528e0556eaa6b27d8bd42
6,952
py
Python
vad.py
zhuligs/Pallas
c8d77d0963c080fa7331560f1659001488b0328f
[ "MIT" ]
null
null
null
vad.py
zhuligs/Pallas
c8d77d0963c080fa7331560f1659001488b0328f
[ "MIT" ]
null
null
null
vad.py
zhuligs/Pallas
c8d77d0963c080fa7331560f1659001488b0328f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # import numpy as np import itin import sdata import fppy from copy import deepcopy as cp from wrapdimer import get_rmode, get_0mode, get_mode from zfunc import set_cell_from_vasp, write_cell_to_vasp from vfunc import runvdim, goptv # def con(reac, prod): # mode = get_mode(reac, prod) # sdd = ...
28.260163
76
0.534091
1,075
6,952
3.336744
0.139535
0.082799
0.033733
0.045999
0.618065
0.574854
0.567048
0.546139
0.517982
0.479509
0
0.018678
0.299194
6,952
245
77
28.37551
0.71757
0.121979
0
0.299401
0
0.005988
0.107255
0
0
0
0
0
0
0
null
null
0
0.041916
null
null
0.179641
0
0
0
null
0
0
0
0
0
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
f3940f471c47cc139263585f43ad154e0740108a
8,509
py
Python
pygpsnmea/kml.py
tww-software/py_gps_nmea
8295d146014d4e8636e7ca05f7e843f023c67e45
[ "MIT" ]
null
null
null
pygpsnmea/kml.py
tww-software/py_gps_nmea
8295d146014d4e8636e7ca05f7e843f023c67e45
[ "MIT" ]
null
null
null
pygpsnmea/kml.py
tww-software/py_gps_nmea
8295d146014d4e8636e7ca05f7e843f023c67e45
[ "MIT" ]
null
null
null
""" a parser to generate Keyhole Markup Language (KML) for Google Earth """ import datetime import os import re DATETIMEREGEX = re.compile( r'\d{4}/(0[1-9]|1[0-2])/(0[1-9]|1[0-9]|2[0-9]|3[01]) ' r'(0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])') class KMLOutputParser(): """ Class to parse KML int...
31.868914
78
0.595135
929
8,509
5.404736
0.264801
0.054372
0.01912
0.00956
0.138419
0.078072
0.057757
0.048198
0.02151
0.02151
0
0.00917
0.282289
8,509
266
79
31.988722
0.813001
0.261253
0
0.170068
1
0.013605
0.226894
0.075921
0
0
0
0
0
1
0.088435
false
0
0.020408
0
0.156463
0
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
f39a1fae3017b69be241d72f355eabb23b20cb7e
766
py
Python
setup.py
btpka3/certbot-auto-dns-challenge
6f0eee2c4a65380aaf51e439714b0c88820cd392
[ "Apache-2.0" ]
null
null
null
setup.py
btpka3/certbot-auto-dns-challenge
6f0eee2c4a65380aaf51e439714b0c88820cd392
[ "Apache-2.0" ]
null
null
null
setup.py
btpka3/certbot-auto-dns-challenge
6f0eee2c4a65380aaf51e439714b0c88820cd392
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf8 -*- from setuptools import setup setup( name='certbot_adc', version='0.1', description="perform certbot auto dns challenge with DNS provider's API", url='http://github.com/btpka3/certbot-auto-dns-challenge', author='btpka3', author_email='btpka3@163.com...
26.413793
77
0.612272
102
766
4.539216
0.598039
0.107991
0.084233
0.099352
0
0
0
0
0
0
0
0.041391
0.211488
766
28
78
27.357143
0.725166
0.053525
0
0.083333
0
0
0.53112
0.248963
0
0
0
0
0
1
0
true
0
0.041667
0
0.041667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
f3ac47f0d2af46f81dd25d634efde4812cbc00a9
2,263
py
Python
IATI2LOD/src/gather data scripts/DbpediaData.py
KasperBrandt/IATI2LOD
3a4fbcbf59d324e948b14509f74c50633d36a497
[ "MIT" ]
1
2019-08-03T00:52:44.000Z
2019-08-03T00:52:44.000Z
IATI2LOD/src/gather data scripts/DbpediaData.py
KasperBrandt/IATI2LOD
3a4fbcbf59d324e948b14509f74c50633d36a497
[ "MIT" ]
1
2015-10-11T09:47:25.000Z
2015-10-16T12:58:43.000Z
IATI2LOD/src/gather data scripts/DbpediaData.py
KasperBrandt/IATI2LOD
3a4fbcbf59d324e948b14509f74c50633d36a497
[ "MIT" ]
1
2021-05-29T03:43:01.000Z
2021-05-29T03:43:01.000Z
## By Kasper Brandt ## Last updated on 26-05-2013 import os, sys, datetime, urllib2, AddProvenance from rdflib import Namespace, Graph # Settings dbpedia_folder = "/media/Acer/School/IATI-data/dataset/DBPedia/" dbpedia_files = ["/media/Acer/School/IATI-data/mappings/DBPedia/dbpedia-countries-via-factbook.ttl", ...
35.359375
107
0.550155
230
2,263
5.247826
0.4
0.053853
0.037283
0.047225
0.13836
0.119304
0.074565
0.074565
0
0
0
0.011386
0.340256
2,263
64
108
35.359375
0.797053
0.038445
0
0
0
0.025641
0.211157
0.118027
0
0
0
0
0
0
null
null
0
0.051282
null
null
0.076923
0
0
0
null
0
0
0
0
0
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
f3ad47eaa0299f9f0aeb207c1f9ec4e1799a981c
1,337
py
Python
test_api.py
cagcoach/aikapi
cbb796d736b7a37536672b0f1841014b9b7545bb
[ "MIT" ]
null
null
null
test_api.py
cagcoach/aikapi
cbb796d736b7a37536672b0f1841014b9b7545bb
[ "MIT" ]
null
null
null
test_api.py
cagcoach/aikapi
cbb796d736b7a37536672b0f1841014b9b7545bb
[ "MIT" ]
null
null
null
from PythonAPI.bam import BAM import numpy as np dataset_dir = '/home/beatriz/Documentos/Work/final_datasets' # For Bea # dataset_dir = '/home/almartmen/Github/aikapi' # For Alberto dataset_name = '181129' bam = BAM(dataset_dir, dataset_name, image_format='png') # bam.unroll_videos() # print(bam.get_persons_in...
26.74
84
0.76739
206
1,337
4.665049
0.359223
0.112383
0.16025
0.05307
0.227888
0.094693
0
0
0
0
0
0.083882
0.090501
1,337
49
85
27.285714
0.706414
0.681376
0
0
0
0
0.134518
0.111675
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
f3c07f9cec57f76e746c76c17235957335504e0a
986
py
Python
wunderkafka/config/generated/enums.py
severstal-digital/wunderkafka
8c56fa4559a8576af7f005fd916bf97127576278
[ "Apache-2.0" ]
null
null
null
wunderkafka/config/generated/enums.py
severstal-digital/wunderkafka
8c56fa4559a8576af7f005fd916bf97127576278
[ "Apache-2.0" ]
null
null
null
wunderkafka/config/generated/enums.py
severstal-digital/wunderkafka
8c56fa4559a8576af7f005fd916bf97127576278
[ "Apache-2.0" ]
null
null
null
from enum import Enum class BrokerAddressFamily(str, Enum): any = 'any' v4 = 'v4' v6 = 'v6' class SecurityProtocol(str, Enum): plaintext = 'plaintext' ssl = 'ssl' sasl_plaintext = 'sasl_plaintext' sasl_ssl = 'sasl_ssl' class SslEndpointIdentificationAlgorithm(str, Enum): none = 'no...
17.607143
52
0.618661
104
986
5.788462
0.355769
0.093023
0.054817
0.074751
0.179402
0.179402
0.179402
0.179402
0.179402
0.179402
0
0.010929
0.257606
986
55
53
17.927273
0.811475
0
0
0.282051
0
0
0.178499
0
0
0
0
0
0
1
0
false
0
0.025641
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f3c21ba1dec0f31a9f84ecd704fb5126c483d973
1,593
py
Python
examples/example_ME5ME6.py
bmachiel/python-substratestack
5689cdbc8582dac7a6b567c03e871ebb3a89343a
[ "BSD-2-Clause" ]
1
2020-03-10T14:46:47.000Z
2020-03-10T14:46:47.000Z
examples/example_ME5ME6.py
bmachiel/python-substratestack
5689cdbc8582dac7a6b567c03e871ebb3a89343a
[ "BSD-2-Clause" ]
null
null
null
examples/example_ME5ME6.py
bmachiel/python-substratestack
5689cdbc8582dac7a6b567c03e871ebb3a89343a
[ "BSD-2-Clause" ]
1
2020-03-10T14:48:49.000Z
2020-03-10T14:48:49.000Z
#!/bin/env python # import the technology's complete stack definition from example import stack # in order to decrease simulation times, some metal layers can be removed from # the stack, allowing more oxide layers to be merged in the next step stack.remove_metal_layer_by_name('PO1') stack.remove_metal_layer_by_name...
38.853659
78
0.755179
225
1,593
5.071111
0.4
0.067485
0.09816
0.128834
0.411043
0.300614
0.134969
0.134969
0.134969
0.134969
0
0.015909
0.171375
1,593
40
79
39.825
0.848485
0.609542
0
0.153846
0
0
0.150912
0
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
f3c32a1c29b23a9a39eedc92636dc8c119583df9
450
py
Python
other/dingding/dingtalk/api/rest/OapiProjectPointAddRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiProjectPointAddRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiProjectPointAddRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
''' Created by auto_sdk on 2020.12.24 ''' from dingtalk.api.base import RestApi class OapiProjectPointAddRequest(RestApi): def __init__(self,url=None): RestApi.__init__(self,url) self.action_time = None self.rule_code = None self.rule_name = None self.score = None self.tenant_id = None self.userid = None...
21.428571
42
0.733333
65
450
4.876923
0.6
0.15142
0.069401
0
0
0
0
0
0
0
0
0.021053
0.155556
450
20
43
22.5
0.813158
0.073333
0
0
0
0
0.085575
0.075795
0
0
0
0
0
1
0.2
false
0
0.066667
0.133333
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
f3c6b52efc5243517d9844c7baac03ac3dc8305c
645
py
Python
django_site/parser_vacancies/migrations/0005_vacancies_count.py
StGrail/v.it
765cb720a16b0fff66e013b8b66a80d99168c16b
[ "MIT" ]
null
null
null
django_site/parser_vacancies/migrations/0005_vacancies_count.py
StGrail/v.it
765cb720a16b0fff66e013b8b66a80d99168c16b
[ "MIT" ]
1
2020-12-23T19:08:20.000Z
2020-12-23T19:08:20.000Z
django_site/parser_vacancies/migrations/0005_vacancies_count.py
StGrail/v.it
765cb720a16b0fff66e013b8b66a80d99168c16b
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-02-28 15:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('parser_vacancies', '0004_auto_20210207_0052'), ] operations = [ migrations.CreateModel( name='Vacancies_count', fiel...
28.043478
79
0.586047
64
645
5.765625
0.703125
0.146341
0.119241
0.140921
0
0
0
0
0
0
0
0.067391
0.286822
645
22
80
29.318182
0.734783
0.069767
0
0
1
0
0.153846
0.073579
0
0
0
0
0
1
0
false
0
0.0625
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
45edca108e30053b7caf54d078e854708b738e3e
300
py
Python
Scripts/TK_xls-to-peaks.py
colinwalshbrown/CWB_utils
86675812f9398845d1994b57500830e2c3dc6cc0
[ "MIT" ]
null
null
null
Scripts/TK_xls-to-peaks.py
colinwalshbrown/CWB_utils
86675812f9398845d1994b57500830e2c3dc6cc0
[ "MIT" ]
null
null
null
Scripts/TK_xls-to-peaks.py
colinwalshbrown/CWB_utils
86675812f9398845d1994b57500830e2c3dc6cc0
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys if len(sys.argv) < 2: print "usage: TK_xls-to-peaks.py <TK_xls>" sys.exit(0) for line in open(sys.argv[1]): l = line[:-1].split() for (i,x) in enumerate(l[4][:-1].split(",")): print "\t".join((l[0],l[1],x,l[5][:-1].split(",")[i]))
21.428571
62
0.52
56
300
2.75
0.589286
0.116883
0
0
0
0
0
0
0
0
0
0.042017
0.206667
300
13
63
23.076923
0.605042
0.066667
0
0
0
0
0.136201
0
0
0
0
0
0
0
null
null
0
0.125
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
45f5aa52358da93645231378c0fbfaf7b12d6756
2,319
py
Python
examples/custom_node.py
tomaszkurgan/sapling
717681f04f9cb00a47322c5a16f052b8658d558b
[ "MIT" ]
null
null
null
examples/custom_node.py
tomaszkurgan/sapling
717681f04f9cb00a47322c5a16f052b8658d558b
[ "MIT" ]
null
null
null
examples/custom_node.py
tomaszkurgan/sapling
717681f04f9cb00a47322c5a16f052b8658d558b
[ "MIT" ]
null
null
null
import uuid import sapling # create your own node by inheritance from sapling.Node class MyNode(sapling.Node): def __init__(self, name, data=None, id=None): self.id = id or uuid.uuid4() super(MyNode, self).__init__(name, data=data) # There are two ways to force the sapling.Tree to use your node...
31.337838
101
0.661492
395
2,319
3.835443
0.311392
0.060066
0.052805
0.073927
0.271287
0.266007
0.233663
0.207921
0.039604
0
0
0.011519
0.213885
2,319
73
102
31.767123
0.819528
0.432083
0
0.1
0
0
0.100077
0
0
0
0
0
0
0
null
null
0.025
0.05
null
null
0.275
0
0
0
null
0
0
0
0
0
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
3404a220cc2c7335fc1d99ac2799acd671b399e7
1,410
py
Python
templates/pythonScripts/ExtraMeeting.py
cameronosmith/webreg-to-google-calendar
b245d17ce763082f253e98755d1e24a973b6d1ea
[ "MIT" ]
null
null
null
templates/pythonScripts/ExtraMeeting.py
cameronosmith/webreg-to-google-calendar
b245d17ce763082f253e98755d1e24a973b6d1ea
[ "MIT" ]
null
null
null
templates/pythonScripts/ExtraMeeting.py
cameronosmith/webreg-to-google-calendar
b245d17ce763082f253e98755d1e24a973b6d1ea
[ "MIT" ]
null
null
null
#class for meetings other than lecture class ExtraMeeting: def __init__(self): self.type="TBA" self.days="TBA" self.time="TBA" self.building="TBA" self.room="TBA" #self explanatory setter methods def setType(self,type): if type == 'DI': self.type...
23.114754
92
0.51844
154
1,410
4.720779
0.272727
0.088033
0.068776
0
0
0
0
0
0
0
0
0
0.366667
1,410
60
93
23.5
0.81411
0.053191
0
0.215686
0
0
0.029345
0
0
0
0
0
0
0
null
null
0
0
null
null
0.039216
0
0
0
null
0
0
0
0
0
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
3411f5389305082b1750729cc8d9ca2b0b1a5f11
529
py
Python
home/migrations/0010_auto_20190604_1147.py
xni06/wagtail-CMS
defe0f46e8109e96d6d5e9fd4cf002790fbcd54b
[ "MIT" ]
4
2019-06-04T07:18:44.000Z
2020-06-15T22:27:36.000Z
home/migrations/0010_auto_20190604_1147.py
jaspotsangbam/wagtail-CMS
2ec0dd05ba1f9339b705ce529588131049aa9bc7
[ "MIT" ]
38
2019-05-09T13:14:56.000Z
2022-03-12T00:54:57.000Z
home/migrations/0010_auto_20190604_1147.py
jaspotsangbam/wagtail-CMS
2ec0dd05ba1f9339b705ce529588131049aa9bc7
[ "MIT" ]
3
2019-09-26T14:32:36.000Z
2021-05-06T15:48:01.000Z
# Generated by Django 2.1.8 on 2019-06-04 11:47 from django.db import migrations import wagtail.core.blocks import wagtail.core.fields class Migration(migrations.Migration): dependencies = [ ('home', '0009_homepage_header'), ] operations = [ migrations.AlterField( model_name...
25.190476
152
0.644612
58
529
5.810345
0.637931
0.163205
0.151335
0
0
0
0
0
0
0
0
0.046117
0.221172
529
20
153
26.45
0.771845
0.085066
0
0
1
0
0.107884
0
0
0
0
0
0
1
0
false
0
0.214286
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
341b8abe8d9d5f16043f17419ff87aa397d65daa
2,681
py
Python
src/crud/user.py
JuanFKurucz/proyecto-seguridad
feb805c785afc57de19244e7916f232d3798a768
[ "MIT" ]
null
null
null
src/crud/user.py
JuanFKurucz/proyecto-seguridad
feb805c785afc57de19244e7916f232d3798a768
[ "MIT" ]
null
null
null
src/crud/user.py
JuanFKurucz/proyecto-seguridad
feb805c785afc57de19244e7916f232d3798a768
[ "MIT" ]
null
null
null
import os from datetime import datetime, timedelta from src.database.models.user import User # noqa from src.database.models.file import File # noqa from src.database.session import db_session # noqa from src.utils.hash import hash_pass from sqlalchemy.orm.exc import NoResultFound from src.utils.cipher import encr...
31.174419
100
0.664677
350
2,681
4.945714
0.305714
0.057192
0.056615
0.041594
0.140959
0.140959
0.051993
0.051993
0.051993
0.051993
0
0.003443
0.241701
2,681
85
101
31.541176
0.848008
0.005222
0
0.295775
0
0
0.104394
0
0
0
0
0
0
1
0.070423
false
0.070423
0.140845
0
0.352113
0.112676
0
0
0
null
0
0
0
0
0
0
0
0
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
342de811bc99973f044dafb400a3ec144fec6901
2,092
py
Python
1441. Build an Array With Stack Operations.py
alijon30/Leetcode
73e8171945e1fcbc59e76f79667c9ea130db27e9
[ "Unlicense" ]
null
null
null
1441. Build an Array With Stack Operations.py
alijon30/Leetcode
73e8171945e1fcbc59e76f79667c9ea130db27e9
[ "Unlicense" ]
null
null
null
1441. Build an Array With Stack Operations.py
alijon30/Leetcode
73e8171945e1fcbc59e76f79667c9ea130db27e9
[ "Unlicense" ]
null
null
null
You are given an array target and an integer n. In each iteration, you will read a number from list = [1, 2, 3, ..., n]. Build the target array using the following operations: "Push": Reads a new element from the beginning list, and pushes it in the array. "Pop": Deletes the last element of the array. If the target ...
26.15
114
0.565966
290
2,092
4.055172
0.306897
0.040816
0.034014
0.056122
0.202381
0.202381
0.147959
0.095238
0.095238
0.095238
0
0.019901
0.327438
2,092
79
115
26.481013
0.81592
0
0
0.206897
0
0
0.042543
0
0
0
0
0
0
0
null
null
0
0
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
342f8555d424c554a10a704d33b1cac436a6cb38
221
py
Python
introduction-to-data-visualization-in-python/3. Statistical plots with Seaborn/script_11.py
nhutnamhcmus/datacamp-playground
25457e813b1145e1d335562286715eeddd1c1a7b
[ "MIT" ]
1
2021-05-08T11:09:27.000Z
2021-05-08T11:09:27.000Z
introduction-to-data-visualization-in-python/3. Statistical plots with Seaborn/script_11.py
nhutnamhcmus/datacamp-playground
25457e813b1145e1d335562286715eeddd1c1a7b
[ "MIT" ]
1
2022-03-12T15:42:14.000Z
2022-03-12T15:42:14.000Z
introduction-to-data-visualization-in-python/3. Statistical plots with Seaborn/script_11.py
nhutnamhcmus/datacamp-playground
25457e813b1145e1d335562286715eeddd1c1a7b
[ "MIT" ]
1
2021-04-30T18:24:19.000Z
2021-04-30T18:24:19.000Z
# Plotting distributions pairwise (1) # Print the first 5 rows of the DataFrame print(auto.head()) # Plot the pairwise joint distributions from the DataFrame sns.pairplot(auto) # Display the plot plt.show()
20.090909
60
0.723982
31
221
5.16129
0.677419
0.15
0
0
0
0
0
0
0
0
0
0.011299
0.199095
221
10
61
22.1
0.892655
0.678733
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
343b36003417f4c54f3846c29ad26c071c003af4
1,146
py
Python
src/neuro_comma/logger.py
Andhs/neuro-comma
9e0203f46a08dced3bcc7d7f55065c8ff8317ef7
[ "MIT" ]
32
2021-06-15T09:41:10.000Z
2022-02-13T09:55:37.000Z
src/neuro_comma/logger.py
vkirilenko/neuro-comma
d76c97b39d0a60d7e07eb37f6d68ed491241c051
[ "MIT" ]
2
2021-06-24T16:25:34.000Z
2021-07-09T09:24:20.000Z
src/neuro_comma/logger.py
vkirilenko/neuro-comma
d76c97b39d0a60d7e07eb37f6d68ed491241c051
[ "MIT" ]
5
2021-07-30T07:33:39.000Z
2021-12-30T13:06:15.000Z
def log_text(file_path, log): if not log.endswith('\n'): log += '\n' print(log) with open(file_path, 'a') as f: f.write(log) def log_args(file_path, args): log = f"Args: {args}\n" log_text(file_path, log) def log_train_epoch(file_path, epoch, train_loss, train_accuracy): log...
28.65
89
0.615183
178
1,146
3.758427
0.213483
0.143498
0.098655
0.134529
0.204783
0.177877
0.149477
0.149477
0
0
0
0.010135
0.225131
1,146
39
90
29.384615
0.743243
0
0
0.178571
0
0
0.321117
0
0
0
0
0
0
1
0.214286
false
0
0
0
0.214286
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
344753395c32fdc8e1cad3a8b60e006debbc3651
354
py
Python
social_blog/blog_posts/forms.py
higorspinto/Social-Blog
bec89351bf76778059f112c0e2a66de9348dda54
[ "MIT" ]
null
null
null
social_blog/blog_posts/forms.py
higorspinto/Social-Blog
bec89351bf76778059f112c0e2a66de9348dda54
[ "MIT" ]
4
2021-03-19T03:43:40.000Z
2022-01-13T01:39:30.000Z
social_blog/blog_posts/forms.py
higorspinto/Social-Blog
bec89351bf76778059f112c0e2a66de9348dda54
[ "MIT" ]
null
null
null
# blogs_posts/forms.py from flask_wtf import FlaskForm from wtforms import StringField, TextAreaField, SubmitField from wtforms.validators import DataRequired class BlogPostForm(FlaskForm): title = StringField("Title", validators=[DataRequired()]) text = TextAreaField("Text", validators=[DataRequired()]) ...
29.5
61
0.762712
36
354
7.444444
0.583333
0.08209
0
0
0
0
0
0
0
0
0
0
0.135593
354
12
62
29.5
0.875817
0.056497
0
0
0
0
0.039039
0
0
0
0
0
0
1
0
false
0
0.428571
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
3447c0a2e4e87d813f8b9dc78d7b0714f0ad5791
1,568
py
Python
blog/migrations/0001_initial.py
ht-90/django-blog
b7dd80a4066ecf3c288461e0c5785f953a1d2e5f
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
ht-90/django-blog
b7dd80a4066ecf3c288461e0c5785f953a1d2e5f
[ "MIT" ]
1
2021-02-23T11:25:37.000Z
2021-02-23T11:25:37.000Z
blog/migrations/0001_initial.py
ht-90/django-blog
b7dd80a4066ecf3c288461e0c5785f953a1d2e5f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-02-26 08:07 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ...
37.333333
124
0.574617
164
1,568
5.390244
0.359756
0.063348
0.084842
0.078054
0.567873
0.567873
0.567873
0.528281
0.43552
0.43552
0
0.021333
0.282526
1,568
41
125
38.243902
0.764444
0.028699
0
0.5
1
0
0.059172
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3449704981ebbc8bc32237e12d8a30eef51a79de
1,566
py
Python
evaluate/previous_works/svsyn/supervision/photometric.py
Syniez/Joint_360depth
4f28c3b5b7f648173480052e205e898c6c7a5151
[ "MIT" ]
92
2019-09-08T09:55:05.000Z
2022-02-21T21:29:40.000Z
supervision/photometric.py
zjsprit/SphericalViewSynthesis
fcdec95bf3ad109767d27396434b51cf3aad2b4b
[ "BSD-2-Clause" ]
4
2020-05-12T02:29:36.000Z
2021-11-26T07:49:43.000Z
supervision/photometric.py
zjsprit/SphericalViewSynthesis
fcdec95bf3ad109767d27396434b51cf3aad2b4b
[ "BSD-2-Clause" ]
26
2019-09-16T02:26:33.000Z
2021-10-21T03:55:02.000Z
import torch from .ssim import * class PhotometricLossParameters(object): def __init__(self, alpha=0.85, l1_estimator='none',\ ssim_estimator='none', window=7, std=1.5, ssim_mode='gaussian'): super(PhotometricLossParameters, self).__init__() self.alpha = alpha self.l1_esti...
30.115385
83
0.604725
203
1,566
4.418719
0.251232
0.053512
0.093645
0.051282
0.037904
0.037904
0
0
0
0
0
0.021505
0.287356
1,566
51
84
30.705882
0.782258
0
0
0
0
0
0.010561
0
0
0
0
0
0
1
0.190476
false
0
0.047619
0.142857
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
3449bef65b5b8a27951b1370c04e2abfac01c124
1,917
py
Python
Python/waytoolong.py
pretam591/All_Program_helper
83f52bce53bdcd0b115753ecda610d21aa0ddd2a
[ "MIT" ]
16
2021-10-03T11:15:49.000Z
2021-10-31T04:40:24.000Z
Python/waytoolong.py
pretam591/All_Program_helper
83f52bce53bdcd0b115753ecda610d21aa0ddd2a
[ "MIT" ]
232
2021-10-02T14:51:43.000Z
2021-11-14T08:23:27.000Z
Python/waytoolong.py
pretam591/All_Program_helper
83f52bce53bdcd0b115753ecda610d21aa0ddd2a
[ "MIT" ]
166
2021-10-02T13:56:34.000Z
2021-10-31T17:56:34.000Z
# A. Way Too Long Words # ------------------------------- # time limit per test1 second # memory limit per test 256 megabytes # input :standard input # ...
36.865385
107
0.649974
275
1,917
4.541818
0.487273
0.028022
0.028823
0.024019
0.078463
0.04964
0.04964
0
0
0
0
0.021629
0.276474
1,917
51
108
37.588235
0.876712
0.869588
0
0
0
0
0
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
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
344a8a5e768a6b664f7f2dcbefec0978989b66e3
584
py
Python
stake-pool/py/stake/constants.py
wowswap-io/solana-program-library
3af176d6c4d872afe029396a597736484d4a8212
[ "Apache-2.0" ]
null
null
null
stake-pool/py/stake/constants.py
wowswap-io/solana-program-library
3af176d6c4d872afe029396a597736484d4a8212
[ "Apache-2.0" ]
21
2022-03-18T20:20:29.000Z
2022-03-29T08:38:49.000Z
stake-pool/py/stake/constants.py
wowswap-io/solana-program-library
3af176d6c4d872afe029396a597736484d4a8212
[ "Apache-2.0" ]
null
null
null
"""Stake Program Constants.""" from solana.publickey import PublicKey STAKE_PROGRAM_ID: PublicKey = PublicKey("Stake11111111111111111111111111111111111111") """Public key that identifies the Stake program.""" SYSVAR_STAKE_CONFIG_ID: PublicKey = PublicKey("StakeConfig11111111111111111111111111111111") """Public key t...
30.736842
92
0.789384
70
584
6.385714
0.471429
0.107383
0.09396
0.102908
0.277405
0.138702
0
0
0
0
0
0.159615
0.109589
584
18
93
32.444444
0.7
0.041096
0
0
0
0
0.258258
0.258258
0
0
0
0
0
1
0
true
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
344bdfd8bb0a323b85e099ee0a1e40416c891086
1,774
py
Python
tests/chem/test_mol.py
ShantamShorewala/aizynthfinder
6b15d5846558b14c4ce3c353727d9d676af7f6fb
[ "MIT" ]
219
2020-06-15T08:04:53.000Z
2022-03-31T09:02:47.000Z
tests/chem/test_mol.py
ShantamShorewala/aizynthfinder
6b15d5846558b14c4ce3c353727d9d676af7f6fb
[ "MIT" ]
56
2020-08-14T14:50:42.000Z
2022-03-22T12:49:06.000Z
tests/chem/test_mol.py
ShantamShorewala/aizynthfinder
6b15d5846558b14c4ce3c353727d9d676af7f6fb
[ "MIT" ]
58
2020-06-15T13:36:42.000Z
2022-03-21T06:18:02.000Z
import pytest from rdkit import Chem from aizynthfinder.chem import MoleculeException, Molecule def test_no_input(): with pytest.raises(MoleculeException): Molecule() def test_create_with_mol(): rd_mol = Chem.MolFromSmiles("O") mol = Molecule(rd_mol=rd_mol) assert mol.smiles == "O" def ...
19.494505
58
0.669109
247
1,774
4.643725
0.255061
0.158675
0.103749
0.078466
0.320837
0.247602
0.247602
0
0
0
0
0.022284
0.19053
1,774
90
59
19.711111
0.776462
0.012965
0
0.2
0
0
0.077231
0.015446
0
0
0
0
0.3
1
0.22
false
0
0.06
0
0.28
0.06
0
0
0
null
0
0
0
0
0
0
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
344cd574f56ada084ecacd041bbefa24f527dd55
715
py
Python
agents/agent_loader.py
JCKing97/Agents4Asteroids
c25eb106b9963db97a6fd426f2a8b2f7b8dd073f
[ "MIT" ]
1
2020-06-24T16:07:38.000Z
2020-06-24T16:07:38.000Z
agents/agent_loader.py
JCKing97/Agents4Asteroids
c25eb106b9963db97a6fd426f2a8b2f7b8dd073f
[ "MIT" ]
9
2019-08-14T19:44:39.000Z
2020-05-03T13:01:57.000Z
agents/agent_loader.py
JCKing97/Agents4Asteroids
c25eb106b9963db97a6fd426f2a8b2f7b8dd073f
[ "MIT" ]
null
null
null
from typing import List, Type from game.agent import Agent import os from importlib import import_module import inspect def load_agents() -> List[Type[Agent]]: """ :return: all available agent types currently in the system. """ agents: List[Type[Agent]] = [] agent_dir = os.path.dirname(os.path.abs...
32.5
73
0.641958
91
715
4.945055
0.494505
0.053333
0.062222
0.084444
0
0
0
0
0
0
0
0.001855
0.246154
715
21
74
34.047619
0.833024
0.082517
0
0
0
0
0.017188
0
0
0
0
0
0
1
0.0625
false
0
0.375
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
345cff6b5dc8f245274d42d83f7cdc4417c7b6b5
1,961
py
Python
proper_forms/fields/email.py
jpsca/pforms
77c9da93e5224e79bb147aa873f28951e972bb21
[ "MIT" ]
2
2020-09-30T22:41:00.000Z
2020-12-04T16:47:17.000Z
proper_forms/fields/email.py
jpsca/hyperform
d5c450ad8684a853fed26f8c2606877151125a9e
[ "MIT" ]
2
2021-11-18T18:01:28.000Z
2021-11-18T18:03:29.000Z
proper_forms/fields/email.py
jpsca/hyperform
d5c450ad8684a853fed26f8c2606877151125a9e
[ "MIT" ]
null
null
null
from .text import Text from ..ftypes import type_email __all__ = ("Email", ) class Email(Text): """Validates and normalize an email address using the JoshData/python-email-validator library. Even if the format is valid, it cannot guarantee that the email is real, so the purpose of this function is ...
40.854167
87
0.701683
272
1,961
4.970588
0.566176
0.026627
0.028846
0
0
0
0
0
0
0
0
0.009993
0.234574
1,961
47
88
41.723404
0.89074
0.719021
0
0
0
0
0.104213
0
0
0
0
0
0
1
0.2
false
0
0.2
0.1
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
3461f75437c6e8764c0d89e33b3659778cc6f407
368
py
Python
MRTasks/parsingTasks/listS3Files.py
ArulselvanMadhavan/Artist_Recognition_from_Audio_Features
feeca8487773b2f1bac7f408fd11adcc3820b294
[ "Apache-2.0" ]
1
2016-04-19T14:17:12.000Z
2016-04-19T14:17:12.000Z
MRTasks/parsingTasks/listS3Files.py
ArulselvanMadhavan/Artist_Recognition_from_Audio_Features
feeca8487773b2f1bac7f408fd11adcc3820b294
[ "Apache-2.0" ]
null
null
null
MRTasks/parsingTasks/listS3Files.py
ArulselvanMadhavan/Artist_Recognition_from_Audio_Features
feeca8487773b2f1bac7f408fd11adcc3820b294
[ "Apache-2.0" ]
1
2016-09-16T15:08:00.000Z
2016-09-16T15:08:00.000Z
import sys __author__ = 'arul' from boto.s3.connection import S3Connection if __name__ == '__main__': access_key = sys.argv[1] access_secret = sys.argv[2] conn = S3Connection(access_key,access_secret) bucket = conn.get_bucket('cs6240_msd') for key in bucket.list(prefix='cs6240_msd/'): pr...
24.533333
49
0.682065
51
368
4.54902
0.607843
0.077586
0
0
0
0
0
0
0
0
0
0.047458
0.19837
368
15
50
24.533333
0.738983
0.081522
0
0
0
0
0.097923
0
0
0
0
0
0
0
null
null
0
0.2
null
null
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
1
0
0
0
0
0
0
0
0
1
34662329b3c89b9de5cd7e3249e18c3a5937c451
3,812
py
Python
Analytic/plots.py
benvchurch/project-eva
38e3e61ec1913fb2d94fbb8a5db53b90ec32ed66
[ "Unlicense" ]
1
2017-07-27T19:02:16.000Z
2017-07-27T19:02:16.000Z
Analytic/plots.py
benvchurch/project-eva
38e3e61ec1913fb2d94fbb8a5db53b90ec32ed66
[ "Unlicense" ]
null
null
null
Analytic/plots.py
benvchurch/project-eva
38e3e61ec1913fb2d94fbb8a5db53b90ec32ed66
[ "Unlicense" ]
null
null
null
from __future__ import division import numpy as np from scipy import special from numpy import log, exp, sin ,cos, pi, log10, sqrt from scipy.integrate import quad, dblquad, cumtrapz from matplotlib import pyplot as plt import time import CDM_SubHalo_Potential import FDM_SubHalo_Potential #integral precision p = 2 ...
29.550388
135
0.662382
533
3,812
4.622889
0.283302
0.051136
0.069399
0.073864
0.40138
0.378653
0.117289
0.096185
0.096185
0.096185
0
0.024646
0.148478
3,812
128
136
29.78125
0.734442
0.045383
0
0.272727
0
0.050505
0.292481
0.025337
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.020202
0
0
0
null
0
0
0
0
0
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
346b05d408ff7992b28238f3b72a34e2e2a82c5a
645
py
Python
swigwin-3.0.12/Examples/test-suite/python/swigobject_runme.py
bostich83/atomic_swig
5438f676d690ffddb09d88bbc1b51e3b38fa8c6a
[ "MIT" ]
null
null
null
swigwin-3.0.12/Examples/test-suite/python/swigobject_runme.py
bostich83/atomic_swig
5438f676d690ffddb09d88bbc1b51e3b38fa8c6a
[ "MIT" ]
2
2020-03-24T18:19:22.000Z
2020-03-31T11:22:32.000Z
swigwin-3.0.12/Examples/test-suite/python/swigobject_runme.py
bostich83/atomic_swig
5438f676d690ffddb09d88bbc1b51e3b38fa8c6a
[ "MIT" ]
2
2019-11-01T01:28:09.000Z
2020-05-11T05:48:26.000Z
from swigobject import * a = A() a1 = a_ptr(a) a2 = a_ptr(a) if a1.this != a2.this: raise RuntimeError lthis = long(a.this) # match pointer value, but deal with leading zeros on 8/16 bit systems and # different C++ compilers interpretation of %p xstr1 = "%016X" % (lthis,) xstr1 = str.lstrip(xstr1, '0') xstr2...
17.916667
74
0.651163
106
645
3.915094
0.462264
0.038554
0.024096
0.096386
0.125301
0.125301
0.125301
0
0
0
0
0.065385
0.193798
645
35
75
18.428571
0.732692
0.181395
0
0.130435
0
0
0.020992
0
0
0
0
0
0
0
null
null
0
0.043478
null
null
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
346d66976904f2a2e890a78b4c0d64f9e6578329
347
py
Python
contrib/mypy/examples/src/python/mypy_plugin/settings.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
1
2020-08-26T03:30:31.000Z
2020-08-26T03:30:31.000Z
contrib/mypy/examples/src/python/mypy_plugin/settings.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
1
2020-01-21T16:34:02.000Z
2020-01-21T16:34:02.000Z
contrib/mypy/examples/src/python/mypy_plugin/settings.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from django.urls import URLPattern DEBUG: bool = True DEFAULT_FROM_EMAIL: str = 'webmaster@example.com' SECRET_KEY: str = 'not so secret' MY_SETTING: URLPattern = URLPattern(pattern='fo...
28.916667
73
0.769452
48
347
5.479167
0.833333
0
0
0
0
0
0
0
0
0
0
0.019934
0.132565
347
11
74
31.545455
0.853821
0.363112
0
0
0
0
0.169725
0.09633
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
346fa28c58b006ee5c9a022eea52649d810fd3de
902
py
Python
trainer/migrations/0023_userpretest.py
tthelen/interpunct
83e2cbd67dcc94c131a3a2b155eefd710636a912
[ "MIT" ]
2
2016-10-21T21:52:08.000Z
2021-10-19T02:19:43.000Z
trainer/migrations/0023_userpretest.py
tthelen/interpunct
83e2cbd67dcc94c131a3a2b155eefd710636a912
[ "MIT" ]
null
null
null
trainer/migrations/0023_userpretest.py
tthelen/interpunct
83e2cbd67dcc94c131a3a2b155eefd710636a912
[ "MIT" ]
4
2016-10-24T19:17:48.000Z
2018-05-11T11:53:12.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-05-18 08:55 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('trainer', '0022_auto_20180517_1429'), ] operations =...
34.692308
141
0.640798
101
902
5.534653
0.574257
0.057245
0.075134
0.118068
0.250447
0.250447
0.250447
0.250447
0.250447
0.250447
0
0.045649
0.222838
902
25
142
36.08
0.751783
0.073171
0
0
1
0
0.136855
0.027611
0
0
0
0
0
1
0
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
347a6f99a4de31c46f4ac69d858282e197897fe5
1,651
py
Python
chris_backend/users/tests/test_serializers.py
PintoGideon/ChRIS_ultron_backEnd
3c094c90f45c64e279c6d78d9accc357679fb37b
[ "MIT" ]
null
null
null
chris_backend/users/tests/test_serializers.py
PintoGideon/ChRIS_ultron_backEnd
3c094c90f45c64e279c6d78d9accc357679fb37b
[ "MIT" ]
null
null
null
chris_backend/users/tests/test_serializers.py
PintoGideon/ChRIS_ultron_backEnd
3c094c90f45c64e279c6d78d9accc357679fb37b
[ "MIT" ]
null
null
null
import logging from django.test import TestCase from rest_framework import serializers from users.serializers import UserSerializer class UserSerializerTests(TestCase): """ Generic user view tests' setup and tearDown """ def setUp(self): # avoid cluttered console output (for instance logg...
32.372549
85
0.675348
172
1,651
6.395349
0.406977
0.076364
0.072727
0.043636
0.063636
0
0
0
0
0
0
0
0.24046
1,651
50
86
33.02
0.877193
0.205936
0
0.074074
0
0
0.042776
0
0
0
0
0
0.222222
1
0.148148
false
0.148148
0.148148
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
347d4a00184ea7c2c1c24dd55efd4162c15dc9d8
7,727
py
Python
day_4/day_4_improvements/tests/test_user_edit.py
dmchu/Pytest_REST_API_with_Allure
a41fbbcc04304a89a99ece7b06148de668a7b696
[ "Apache-2.0" ]
null
null
null
day_4/day_4_improvements/tests/test_user_edit.py
dmchu/Pytest_REST_API_with_Allure
a41fbbcc04304a89a99ece7b06148de668a7b696
[ "Apache-2.0" ]
null
null
null
day_4/day_4_improvements/tests/test_user_edit.py
dmchu/Pytest_REST_API_with_Allure
a41fbbcc04304a89a99ece7b06148de668a7b696
[ "Apache-2.0" ]
null
null
null
import allure from day_4.day_4_improvements.lib.base_case import BaseCase from day_4.day_4_improvements.lib.assersions import Assertions as AS from day_4.day_4_improvements.lib.my_requests import MyRequests as MR from day_4.day_4_improvements.lib.helpers import Helpers as HP @allure.epic("User Profile Edit cases") cl...
38.635
115
0.64734
981
7,727
4.841998
0.132518
0.039789
0.046526
0.057474
0.753263
0.698737
0.660211
0.584
0.562947
0.535579
0
0.008879
0.256633
7,727
199
116
38.829146
0.818071
0.033907
0
0.467532
0
0
0.213605
0
0
0
0
0
0.084416
1
0.032468
false
0.064935
0.032468
0
0.084416
0
0
0
0
null
0
0
0
0
0
0
0
0
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
347e90ac805f9147fa4f7a2a02dbf307daa9c5ca
3,685
py
Python
usecase/usecase-cordova-android-tests/samples/SharedModeLibraryDownload4.x/res/test.py
JianfengXu/crosswalk-test-suite
6fb6ef9d89235743ee8b867fd2541c5bdf388786
[ "BSD-3-Clause" ]
null
null
null
usecase/usecase-cordova-android-tests/samples/SharedModeLibraryDownload4.x/res/test.py
JianfengXu/crosswalk-test-suite
6fb6ef9d89235743ee8b867fd2541c5bdf388786
[ "BSD-3-Clause" ]
null
null
null
usecase/usecase-cordova-android-tests/samples/SharedModeLibraryDownload4.x/res/test.py
JianfengXu/crosswalk-test-suite
6fb6ef9d89235743ee8b867fd2541c5bdf388786
[ "BSD-3-Clause" ]
null
null
null
import os import commands import sys import json from optparse import OptionParser global CROSSWALK_VERSION with open("../../tools/VERSION", "rt") as pkg_version_file: pkg_version_raw = pkg_version_file.read() pkg_version_file.close() pkg_version_json = json.loads(pkg_version_raw) CROSSWALK_VERSION = pk...
44.39759
226
0.699322
459
3,685
5.453159
0.337691
0.0831
0.035957
0.030364
0.14982
0.068718
0.053536
0.053536
0.053536
0.053536
0
0.00451
0.157666
3,685
82
227
44.939024
0.801869
0
0
0.118421
0
0.026316
0.45536
0.205699
0
0
0
0
0
0
null
null
0
0.065789
null
null
0.105263
0
0
0
null
0
0
0
0
0
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
caa57ab541795d55d1fd7fa6b28f28f0dd754bf4
761
py
Python
ois_api_client/v3_0/deserialization/deserialize_user_header.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
7
2020-10-22T08:15:29.000Z
2022-01-27T07:59:39.000Z
ois_api_client/v3_0/deserialization/deserialize_user_header.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
null
null
null
ois_api_client/v3_0/deserialization/deserialize_user_header.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
null
null
null
from typing import Optional import xml.etree.ElementTree as ET from ...xml.XmlReader import XmlReader as XR from ..namespaces import COMMON from ..dto.UserHeader import UserHeader from .deserialize_crypto import deserialize_crypto def deserialize_user_header(element: ET.Element) -> Optional[UserHeader]: if elemen...
30.44
73
0.70565
88
761
5.931818
0.454545
0.130268
0.038314
0.05364
0.214559
0.1341
0
0
0
0
0
0
0.208936
761
24
74
31.708333
0.86711
0
0
0.1
0
0
0.055191
0
0
0
0
0
0
1
0.05
false
0.1
0.3
0
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
caaf2c40188789d0575a2ef98deb50c6eded3c8b
464
py
Python
annotations/migrations/0015_organization_description.py
alexliyihao/auto-annotation-web
391bd2c4a8ea1d2d3aba92a13cd7c41dd77a609d
[ "MIT" ]
1
2021-11-17T15:34:33.000Z
2021-11-17T15:34:33.000Z
annotations/migrations/0015_organization_description.py
alexliyihao/auto-annotation-web
391bd2c4a8ea1d2d3aba92a13cd7c41dd77a609d
[ "MIT" ]
null
null
null
annotations/migrations/0015_organization_description.py
alexliyihao/auto-annotation-web
391bd2c4a8ea1d2d3aba92a13cd7c41dd77a609d
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-11 02:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('annotations', '0014_auto_20211110_2007'), ] operations = [ migrations.AddField( model_name='organization', name='des...
23.2
79
0.62069
48
464
5.875
0.8125
0
0
0
0
0
0
0
0
0
0
0.100592
0.271552
464
19
80
24.421053
0.733728
0.096983
0
0
1
0
0.17506
0.055156
0
0
0
0
0
1
0
false
0
0.076923
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
caaf9b2d174b67f74ceb1ce325fcdf36e83f2b9b
632
py
Python
flask_resources/parsers/__init__.py
inveniosoftware/flask-resources
f9d926a959f392b66811a10ee8faaa2f77e6d528
[ "MIT" ]
2
2021-09-04T22:36:26.000Z
2021-12-06T22:02:37.000Z
flask_resources/parsers/__init__.py
inveniosoftware/flask-resources
f9d926a959f392b66811a10ee8faaa2f77e6d528
[ "MIT" ]
62
2020-06-09T09:09:28.000Z
2021-03-31T16:32:51.000Z
flask_resources/parsers/__init__.py
inveniosoftware/flask-resources
f9d926a959f392b66811a10ee8faaa2f77e6d528
[ "MIT" ]
6
2020-04-28T08:23:55.000Z
2021-04-09T07:41:15.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2020-2021 CERN. # Copyright (C) 2020-2021 Northwestern University. # # Flask-Resources is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Request parser for the body, headers, query string and ...
27.478261
76
0.740506
80
632
5.725
0.625
0.085153
0.061135
0.078603
0.131004
0
0
0
0
0
0
0.032197
0.164557
632
22
77
28.727273
0.835227
0.495253
0
0
0
0
0.254072
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
caaff8629778159017275b2997472982be0e80e4
3,253
py
Python
analyze_tagged_corpus.py
kevincobain2000/nltk-trainer
5c0b53ccecb7a5042d5af6c4325e134f7d83cb45
[ "Apache-2.0" ]
1
2021-10-08T11:40:09.000Z
2021-10-08T11:40:09.000Z
analyze_tagged_corpus.py
kevincobain2000/nltk-trainer
5c0b53ccecb7a5042d5af6c4325e134f7d83cb45
[ "Apache-2.0" ]
null
null
null
analyze_tagged_corpus.py
kevincobain2000/nltk-trainer
5c0b53ccecb7a5042d5af6c4325e134f7d83cb45
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import argparse import nltk.corpus from nltk.corpus.util import LazyCorpusLoader from nltk.probability import FreqDist from nltk.tag.simplify import simplify_wsj_tag from nltk_trainer import load_corpus_reader ######################################## ## command options & argument parsing ## #########...
32.53
89
0.694436
456
3,253
4.837719
0.335526
0.044878
0.036265
0.029918
0.094288
0.028105
0
0
0
0
0
0.005234
0.118967
3,253
100
90
32.53
0.76448
0.057178
0
0.063492
0
0
0.294199
0.015283
0
0
0
0
0
0
null
null
0
0.095238
null
null
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
cab12a2e4b4e5bc1f20b3d34222016965f6e7990
352
py
Python
02_Variables/Variable types/tests.py
dannymeijer/level-up-with-python
1bd1169aafd0fdc124984c30edc7f0153626cf06
[ "MIT" ]
null
null
null
02_Variables/Variable types/tests.py
dannymeijer/level-up-with-python
1bd1169aafd0fdc124984c30edc7f0153626cf06
[ "MIT" ]
null
null
null
02_Variables/Variable types/tests.py
dannymeijer/level-up-with-python
1bd1169aafd0fdc124984c30edc7f0153626cf06
[ "MIT" ]
null
null
null
from lessons.test_helper import run_common_tests, get_answer_placeholders, passed, failed def test_type_used(): window = get_answer_placeholders()[0] if "type" in window and "float_number" in window: passed() else: failed("Use the type() function") if __name__ == '__main__': run_comm...
23.466667
89
0.696023
47
352
4.744681
0.617021
0.080717
0.125561
0
0
0
0
0
0
0
0
0.003571
0.204545
352
14
90
25.142857
0.792857
0
0
0
0
0
0.133523
0
0
0
0
0
0
1
0.1
false
0.2
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
cab5b79870681508e9b3e9a34436132f63a674f8
3,985
py
Python
main.py
hamolicious/Python-Word-Search-Generator
9a8ce3f54afd1e2dd286b89bdb9052bb03023ccf
[ "Apache-2.0" ]
null
null
null
main.py
hamolicious/Python-Word-Search-Generator
9a8ce3f54afd1e2dd286b89bdb9052bb03023ccf
[ "Apache-2.0" ]
null
null
null
main.py
hamolicious/Python-Word-Search-Generator
9a8ce3f54afd1e2dd286b89bdb9052bb03023ccf
[ "Apache-2.0" ]
null
null
null
from random import choice, randint import os def generate_grid(w, h): global width, height alphabet = 'qwertyuiopasdfghjklzxcvbnm' grid = [] for i in range(h): row = [] for j in range(w): row.append(' ') grid.append(row) return grid def popul...
20.863874
156
0.430866
437
3,985
3.855835
0.267735
0.02908
0.021365
0.032641
0.099703
0.078338
0.066469
0.037982
0.037982
0.037982
0
0.012127
0.461982
3,985
190
157
20.973684
0.773787
0.004517
0
0.239316
1
0.008547
0.10391
0.027852
0
0
0
0
0
1
0.068376
false
0.008547
0.017094
0.008547
0.136752
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cababbb0c22d7ff63e14475c4594f1e5800c07e0
6,019
py
Python
sklearn_pipeline_enhancements/shared/transformers.py
Kgoetsch/sklearn_pipeline_enhancements
9afb9e03d762c3d8ecd19639f3b84f38cb33a71d
[ "MIT" ]
11
2017-04-18T00:19:05.000Z
2020-04-06T22:16:35.000Z
sklearn_pipeline_enhancements/shared/transformers.py
OlliePage/sklearn_pipeline_enhancements
9afb9e03d762c3d8ecd19639f3b84f38cb33a71d
[ "MIT" ]
null
null
null
sklearn_pipeline_enhancements/shared/transformers.py
OlliePage/sklearn_pipeline_enhancements
9afb9e03d762c3d8ecd19639f3b84f38cb33a71d
[ "MIT" ]
5
2017-12-05T20:14:55.000Z
2021-03-29T12:25:36.000Z
import numpy as np import pandas as pd from patsy.highlevel import dmatrix from sklearn.base import TransformerMixin, BaseEstimator from sklearn.pipeline import _name_estimators, Pipeline __author__ = 'kgoetsch' def make_dataframeunion(steps): return DataFrameUnion(_name_estimators(steps)) class FactorExtracto...
25.943966
112
0.632663
683
6,019
5.352855
0.218155
0.030635
0.053611
0.07221
0.310449
0.271061
0.204869
0.15454
0.073304
0.044311
0
0.001361
0.267486
6,019
231
113
26.056277
0.827852
0.005317
0
0.276786
0
0
0.018316
0
0
0
0
0
0
0
null
null
0
0.044643
null
null
0.008929
0
0
0
null
0
0
0
0
0
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
cabd038328a350d6730ea789068223bf2e852a25
526
py
Python
experimental/plotlyDelaunay3D.py
FYP-DES5/deepscan-core
b6ce70ae69577fbdf5b80b30c4e83c7ee9cf6942
[ "MIT" ]
null
null
null
experimental/plotlyDelaunay3D.py
FYP-DES5/deepscan-core
b6ce70ae69577fbdf5b80b30c4e83c7ee9cf6942
[ "MIT" ]
null
null
null
experimental/plotlyDelaunay3D.py
FYP-DES5/deepscan-core
b6ce70ae69577fbdf5b80b30c4e83c7ee9cf6942
[ "MIT" ]
null
null
null
import plotly.plotly as py from plotly.graph_objs import * import numpy as np import matplotlib.cm as cm from scipy.spatial import Delaunay u=np.linspace(0,2*np.pi, 24) v=np.linspace(-1,1, 8) u,v=np.meshgrid(u,v) u=u.flatten() v=v.flatten() #evaluate the parameterization at the flattened u and v tp=1+0.5*v*np.cos(u/...
22.869565
68
0.731939
111
526
3.459459
0.468468
0.03125
0.015625
0.026042
0
0
0
0
0
0
0
0.036717
0.119772
526
22
69
23.909091
0.792657
0.281369
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
cac8d19cf2fbd34c80ea8f4c9aeb60a84c12ab4c
1,542
py
Python
after/trans.py
Windsooon/Comments
47a6077e3bf46743a8da3d59ea8ebcd5601c9fe9
[ "MIT" ]
1
2020-07-08T06:17:54.000Z
2020-07-08T06:17:54.000Z
after/trans.py
Windsooon/Comments
47a6077e3bf46743a8da3d59ea8ebcd5601c9fe9
[ "MIT" ]
null
null
null
after/trans.py
Windsooon/Comments
47a6077e3bf46743a8da3d59ea8ebcd5601c9fe9
[ "MIT" ]
null
null
null
import os import csv import numpy as np import pandas as pd import matplotlib.pyplot as plt from comments.base import DATA_DIR, cut_words, sigmoid class Trans: def __init__(self): self.trans_matrix = pd.read_excel(os.path.join(DATA_DIR, 'trans.xls'), index_col=0) # add one to every value s...
29.09434
120
0.576524
212
1,542
4.042453
0.45283
0.04084
0.070012
0.032672
0.088681
0
0
0
0
0
0
0.014585
0.288586
1,542
52
121
29.653846
0.766636
0.044747
0
0
0
0
0.06358
0.015204
0
0
0
0.019231
0
1
0.102564
false
0.025641
0.153846
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
cacadf76d959296c2be37d92baf26148aaa927bb
4,417
py
Python
pysnmp/Unisphere-Products-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/Unisphere-Products-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/Unisphere-Products-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module Unisphere-Products-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Unisphere-Products-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:26:09 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (d...
105.166667
856
0.737152
568
4,417
5.728873
0.246479
0.029502
0.022127
0.028273
0.350031
0.289183
0.289183
0.289183
0.285802
0.285802
0
0.158549
0.107539
4,417
41
857
107.731707
0.66692
0.076523
0
0
0
0
0.155528
0.016216
0
0
0
0
0
1
0
false
0
0.205882
0
0.205882
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
caceb51d93c36ec68a44bf085fefaa6d893e959c
2,609
py
Python
ooobuild/dyn/awt/field_unit.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/awt/field_unit.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/awt/field_unit.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
37.811594
106
0.708317
347
2,609
5.10951
0.429395
0.110547
0.022561
0.029329
0.049633
0.027073
0
0
0
0
0
0.008305
0.215408
2,609
68
107
38.367647
0.857841
0.330012
0
0
0
0
0.080904
0.015467
0
0
0
0
0
1
0.026316
false
0
0.131579
0
0.552632
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
cad6d4d9039f032ee0647fb24456c499c4ecede6
1,108
py
Python
tests/test_kfold.py
pal-16/preprocessy
6577143d3397a47bd69c125c8de46ebc5ad2ddae
[ "MIT" ]
null
null
null
tests/test_kfold.py
pal-16/preprocessy
6577143d3397a47bd69c125c8de46ebc5ad2ddae
[ "MIT" ]
null
null
null
tests/test_kfold.py
pal-16/preprocessy
6577143d3397a47bd69c125c8de46ebc5ad2ddae
[ "MIT" ]
null
null
null
import numpy as np import pytest from preprocessy.resampling import KFold class TestKFold: def test_kfold(self): with pytest.raises(ValueError): KFold(n_splits=2.3) with pytest.raises(ValueError): KFold(n_splits=0) with pytest.raises(ValueError): KFol...
27.7
68
0.583935
132
1,108
4.772727
0.356061
0.095238
0.152381
0.247619
0.485714
0.431746
0.250794
0.130159
0.130159
0
0
0.0253
0.322202
1,108
39
69
28.410256
0.813582
0
0
0.275862
0
0
0.054152
0.018953
0
0
0
0
0.068966
1
0.068966
false
0
0.103448
0
0.206897
0.034483
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
cadb7857fc43538c2164847a75f460688bce44f4
879
py
Python
tests/max/test_rmc.py
realead/rmc
6dafa2a4b5ab7199e86e86a4c10388bc8e472bb6
[ "MIT" ]
null
null
null
tests/max/test_rmc.py
realead/rmc
6dafa2a4b5ab7199e86e86a4c10388bc8e472bb6
[ "MIT" ]
null
null
null
tests/max/test_rmc.py
realead/rmc
6dafa2a4b5ab7199e86e86a4c10388bc8e472bb6
[ "MIT" ]
null
null
null
import os import exetest as ex import exetest.decorator as dec import RMCTester @dec.to_unit_tests class Tester(RMCTester.RMCTester): #setting up the test case my_path = os.path.dirname(__file__) program_name = "max" exe = os.path.join(my_path, RMCTester.RMCTester.EXE_NAME) default_para...
25.114286
61
0.486917
103
879
3.961165
0.456311
0.088235
0.098039
0.053922
0
0
0
0
0
0
0
0.030853
0.373151
879
34
62
25.852941
0.709619
0.027304
0
0
0
0
0.031653
0
0
0
0
0
0
1
0
false
0
0.2
0
0.65
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
cadf0bfc3589bccc805fdee98c4cd79597ee146b
2,309
py
Python
waitercaller.py
salaikumar/waitercaller
83ad2f8a477fc196c665db1ce1159a042d69fe8e
[ "Apache-2.0" ]
null
null
null
waitercaller.py
salaikumar/waitercaller
83ad2f8a477fc196c665db1ce1159a042d69fe8e
[ "Apache-2.0" ]
null
null
null
waitercaller.py
salaikumar/waitercaller
83ad2f8a477fc196c665db1ce1159a042d69fe8e
[ "Apache-2.0" ]
null
null
null
from flask import Flask from flask import request from flask import render_template # Login Extension from flask_login import LoginManager from flask_login import login_required from flask_login import login_user from flask_login import logout_user from mockdbhelper import MockDBHelper as DBHelper from user import Use...
27.164706
98
0.708099
306
2,309
5.156863
0.245098
0.051331
0.064639
0.076046
0.274398
0.134347
0.068441
0.068441
0.068441
0.068441
0
0.006332
0.179298
2,309
84
99
27.488095
0.826385
0.154612
0
0.12069
0
0
0.096491
0.024252
0
0
0
0
0
1
0.103448
false
0.172414
0.206897
0.034483
0.465517
0
0
0
0
null
0
0
0
0
0
0
0
0
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
cae4acfde1f01b9cb0259fd0db2f62854a8254cc
4,544
py
Python
fabfile.py
yanikou19/pymatgen
8ee0d9ff35a9c2fa4f00da5d423e536ed8914e31
[ "MIT" ]
null
null
null
fabfile.py
yanikou19/pymatgen
8ee0d9ff35a9c2fa4f00da5d423e536ed8914e31
[ "MIT" ]
null
null
null
fabfile.py
yanikou19/pymatgen
8ee0d9ff35a9c2fa4f00da5d423e536ed8914e31
[ "MIT" ]
null
null
null
""" Deployment file to facilitate releases of pymatgen. Note that this file is meant to be run from the root directory of the pymatgen repo. """ __author__ = "Shyue Ping Ong" __email__ = "ongsp@ucsd.edu" __date__ = "Sep 1, 2014" import glob import os import json import webbrowser import requests import re import subp...
29.316129
92
0.541813
543
4,544
4.449355
0.357274
0.033113
0.024834
0.029801
0.137417
0.120033
0.069536
0.05298
0.05298
0.05298
0
0.00473
0.302157
4,544
154
93
29.506494
0.757174
0.026188
0
0.10084
0
0
0.233699
0.027343
0
0
0
0
0
0
null
null
0
0.07563
null
null
0.008403
0
0
0
null
0
0
0
0
0
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
cae85af56f28cb944803582d2acd6f034c6fb314
2,281
py
Python
bin/contentctl_project/contentctl_core/domain/entities/story.py
arjunkhunti-crest/security_content
41e354485e5917d3366ef735a9c5b25a20d3b8cc
[ "Apache-2.0" ]
null
null
null
bin/contentctl_project/contentctl_core/domain/entities/story.py
arjunkhunti-crest/security_content
41e354485e5917d3366ef735a9c5b25a20d3b8cc
[ "Apache-2.0" ]
null
null
null
bin/contentctl_project/contentctl_core/domain/entities/story.py
arjunkhunti-crest/security_content
41e354485e5917d3366ef735a9c5b25a20d3b8cc
[ "Apache-2.0" ]
null
null
null
import string import uuid import requests from pydantic import BaseModel, validator, ValidationError from datetime import datetime from bin.contentctl_project.contentctl_core.domain.entities.security_content_object import SecurityContentObject from bin.contentctl_project.contentctl_core.domain.entities.story_tags imp...
30.824324
112
0.615081
254
2,281
5.448819
0.370079
0.065029
0.046243
0.049133
0.213873
0.157514
0.157514
0.157514
0.08237
0
0
0.001836
0.283648
2,281
74
113
30.824324
0.845165
0.207804
0
0.176471
0
0
0.087465
0
0
0
0
0
0
1
0.078431
false
0
0.137255
0
0.627451
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
cae9f9112bf10e3c5039ce94fd6acb072c0cb24e
2,793
py
Python
backend/api/migrations/0001_initial.py
INSRapperswil/nornir-web
458e6b24bc373197044b4b7b5da74f16f93a9459
[ "MIT" ]
2
2021-06-01T08:33:04.000Z
2021-08-20T04:22:39.000Z
backend/api/migrations/0001_initial.py
INSRapperswil/nornir-web
458e6b24bc373197044b4b7b5da74f16f93a9459
[ "MIT" ]
null
null
null
backend/api/migrations/0001_initial.py
INSRapperswil/nornir-web
458e6b24bc373197044b4b7b5da74f16f93a9459
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-05 10:33 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
45.786885
137
0.56928
270
2,793
5.744444
0.292593
0.077369
0.045132
0.070922
0.564152
0.564152
0.564152
0.509994
0.509994
0.509994
0
0.014551
0.28643
2,793
60
138
46.55
0.763673
0.016112
0
0.471698
1
0
0.112435
0
0
0
0
0
0
1
0
false
0
0.056604
0
0.132075
0
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
caec913d6621cf7f754967667188e3d0cafa8eeb
3,982
py
Python
tests/primitives/high_precision_condition_slowtest.py
gift-surg/puma
58beae3459a0c8d96adfe9af323e26868428df4d
[ "Apache-2.0" ]
null
null
null
tests/primitives/high_precision_condition_slowtest.py
gift-surg/puma
58beae3459a0c8d96adfe9af323e26868428df4d
[ "Apache-2.0" ]
13
2020-05-04T14:14:58.000Z
2020-07-29T16:37:03.000Z
tests/primitives/high_precision_condition_slowtest.py
gift-surg/puma
58beae3459a0c8d96adfe9af323e26868428df4d
[ "Apache-2.0" ]
null
null
null
import time from threading import Thread from unittest import TestCase from puma.primitives import HighPrecisionCondition from tests.github_issue_11_quickfix import skip_on_windows_until_github_issue_11_is_resolved TIMEOUTS = [0.0, 0.000001, 0.014, 0.015, 0.016, 0.017, 0.018, 0.3] PRECISION = 0.005 TIMEOUT = 0.3 cl...
45.770115
172
0.659216
505
3,982
5.00198
0.239604
0.019002
0.047506
0.028504
0.673793
0.670625
0.644497
0.644497
0.644497
0.628266
0
0.030591
0.261175
3,982
86
173
46.302326
0.828008
0.171773
0
0.630137
0
0
0.049863
0
0
0
0
0
0.164384
1
0.109589
false
0
0.068493
0
0.191781
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
caf0139fdfe557f953aad0f3d0c2c6c1ddb373a5
1,091
py
Python
catch.py
AlexLito666/my_first_project
94898038bb6b0558328ee80791340d1ad3b92260
[ "CC0-1.0" ]
null
null
null
catch.py
AlexLito666/my_first_project
94898038bb6b0558328ee80791340d1ad3b92260
[ "CC0-1.0" ]
null
null
null
catch.py
AlexLito666/my_first_project
94898038bb6b0558328ee80791340d1ad3b92260
[ "CC0-1.0" ]
null
null
null
from pygame import * #создай окно игры window = display.set_mode((700, 500)) display.set_caption("Догонялки") #задай фон сцены background = transform.scale(image.load("background.png"), (700, 500)) sprite1 = transform.scale(image.load('sprite1.png'), (100, 100)) sprite2 = transform.scale(image.load('sprite2.png'), (...
18.491525
73
0.600367
164
1,091
3.884146
0.432927
0.141287
0.150706
0.163265
0.183673
0.160126
0
0
0
0
0
0.096535
0.259395
1,091
58
74
18.810345
0.689356
0.073327
0
0
0
0
0.044643
0
0
0
0
0
0
1
0
false
0
0.025641
0
0.025641
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
cafc588d566696ccb6cf77935803ead728bb260c
2,674
py
Python
Image Classification/CGIAR Crop Yield Prediction Challenge/omarhzm/fields (1).py
ZindiAfrica/Computer-Vision
bf4c00a0633506270dc6d07df938a100a10ee799
[ "MIT" ]
null
null
null
Image Classification/CGIAR Crop Yield Prediction Challenge/omarhzm/fields (1).py
ZindiAfrica/Computer-Vision
bf4c00a0633506270dc6d07df938a100a10ee799
[ "MIT" ]
null
null
null
Image Classification/CGIAR Crop Yield Prediction Challenge/omarhzm/fields (1).py
ZindiAfrica/Computer-Vision
bf4c00a0633506270dc6d07df938a100a10ee799
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split from sklearn.metrics import mean_squared_error import glob, random import sklearn from sklearn.decomposition import PCA from xgboost.sklearn import XGBRegressor from sklearn.tr...
34.727273
111
0.715782
404
2,674
4.596535
0.351485
0.041465
0.040388
0.016155
0.250942
0.250942
0.250942
0.250942
0.250942
0.250942
0
0.010787
0.167913
2,674
76
112
35.184211
0.82382
0.110696
0
0.338983
0
0
0.076889
0.009174
0
0
0
0
0
1
0.033898
false
0
0.305085
0
0.372881
0.050847
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1b02966f6bd91456827cf2718b30f4933e7e5684
480
py
Python
example_app/blog/models.py
yswtrue/taggit-selectize
7c417e5179629414d2ef8ed000b1d14d5980da5b
[ "BSD-3-Clause" ]
77
2015-02-15T23:57:39.000Z
2021-06-04T06:32:41.000Z
example_app/blog/models.py
yswtrue/taggit-selectize
7c417e5179629414d2ef8ed000b1d14d5980da5b
[ "BSD-3-Clause" ]
38
2015-02-16T08:11:27.000Z
2021-11-11T15:08:19.000Z
example_app/blog/models.py
yswtrue/taggit-selectize
7c417e5179629414d2ef8ed000b1d14d5980da5b
[ "BSD-3-Clause" ]
29
2016-01-25T21:55:44.000Z
2021-11-09T00:19:45.000Z
from django.db import models from django.utils.encoding import python_2_unicode_compatible from taggit_selectize.managers import TaggableManager @python_2_unicode_compatible class Blog(models.Model): title = models.CharField(max_length=255) slug = models.SlugField(editable=True, max_length=255, unique=True) ...
28.235294
71
0.76875
62
480
5.709677
0.645161
0.056497
0.079096
0.135593
0
0
0
0
0
0
0
0.019608
0.15
480
16
72
30
0.848039
0
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.25
0.083333
0.916667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1b084957ce54dfc38011de897df30991e0e6f6c8
901
py
Python
checkov/terraform/checks/resource/gcp/GoogleComputeBootDiskEncryption.py
shimont/checkov
470e4998f3a0287cdb80b75a898927027c42e16b
[ "Apache-2.0" ]
null
null
null
checkov/terraform/checks/resource/gcp/GoogleComputeBootDiskEncryption.py
shimont/checkov
470e4998f3a0287cdb80b75a898927027c42e16b
[ "Apache-2.0" ]
null
null
null
checkov/terraform/checks/resource/gcp/GoogleComputeBootDiskEncryption.py
shimont/checkov
470e4998f3a0287cdb80b75a898927027c42e16b
[ "Apache-2.0" ]
null
null
null
from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck from checkov.common.models.enums import CheckResult, CheckCategories class GoogleComputeBootDiskEncryption(BaseResourceCheck): def __init__(self): name = "Ensure VM disks for critical VMs are encrypted with CustomerSupplie...
40.954545
112
0.738069
102
901
6.245098
0.578431
0.084772
0.031397
0.043956
0.047096
0
0
0
0
0
0
0.005405
0.17869
901
21
113
42.904762
0.855405
0
0
0
0
0
0.211987
0.051054
0
0
0
0
0
1
0.133333
false
0.066667
0.133333
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1b0b5385379c866640e35c8a01868562a900ce1f
8,606
py
Python
asset/google/cloud/asset_v1/proto/asset_service_pb2_grpc.py
conwaychriscosmo/google-cloud-python
8e7b7f8a5f4bb04d13f4d88ec3848f017faf834a
[ "Apache-2.0" ]
1
2019-03-26T21:44:51.000Z
2019-03-26T21:44:51.000Z
asset/google/cloud/asset_v1/proto/asset_service_pb2_grpc.py
conwaychriscosmo/google-cloud-python
8e7b7f8a5f4bb04d13f4d88ec3848f017faf834a
[ "Apache-2.0" ]
40
2019-07-16T10:04:48.000Z
2020-01-20T09:04:59.000Z
asset/google/cloud/asset_v1/proto/asset_service_pb2_grpc.py
conwaychriscosmo/google-cloud-python
8e7b7f8a5f4bb04d13f4d88ec3848f017faf834a
[ "Apache-2.0" ]
2
2019-07-18T00:05:31.000Z
2019-11-27T14:17:22.000Z
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from google.cloud.asset_v1.proto import ( asset_service_pb2 as google_dot_cloud_dot_asset__v1_dot_proto_dot_asset__service__pb2, ) from google.longrunning import ( operations_pb2 as google_dot_longrunning_dot_operations__pb2, ) f...
51.843373
145
0.757146
981
8,606
6.143731
0.156983
0.066368
0.064709
0.070516
0.721752
0.675626
0.653725
0.583707
0.529119
0.529119
0
0.009603
0.177202
8,606
165
146
52.157576
0.841548
0.126075
0
0.293103
1
0
0.103486
0.052148
0
0
0
0
0
1
0.077586
false
0
0.034483
0
0.12931
0
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
1b0be51bf909125818059e14554ee8ddc0df6805
357
py
Python
src/main/python/cobra/mit/_loader.py
tm0nk/cobra-j
daeb85250e63cb21e9c02ecc2acfdf8ba1e44d6b
[ "Apache-2.0" ]
null
null
null
src/main/python/cobra/mit/_loader.py
tm0nk/cobra-j
daeb85250e63cb21e9c02ecc2acfdf8ba1e44d6b
[ "Apache-2.0" ]
null
null
null
src/main/python/cobra/mit/_loader.py
tm0nk/cobra-j
daeb85250e63cb21e9c02ecc2acfdf8ba1e44d6b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) '2015' Cisco Systems, Inc. All Rights Reserved import importlib class ClassLoader(object): @classmethod def loadClass(cls, fqClassName): fqClassName = str(fqClassName) moduleName, className = fqClassName.rsplit('.', 1) module = importlib.import_module(moduleName) ...
27.461538
62
0.694678
36
357
6.861111
0.75
0
0
0
0
0
0
0
0
0
0
0.017731
0.210084
357
12
63
29.75
0.858156
0.168067
0
0
0
0
0.00339
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1b0d7458eb7f29bf8431f38d4ac67830ed31e880
4,283
py
Python
auth/oauth.py
sensi277/rebble-auth-py
298b7b15f0835d8379e0ef132a129940061a9ca1
[ "MIT" ]
null
null
null
auth/oauth.py
sensi277/rebble-auth-py
298b7b15f0835d8379e0ef132a129940061a9ca1
[ "MIT" ]
null
null
null
auth/oauth.py
sensi277/rebble-auth-py
298b7b15f0835d8379e0ef132a129940061a9ca1
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta import logging from flask import Blueprint, abort, render_template, request, redirect from flask_oauthlib.provider import OAuth2Provider from oauthlib.common import generate_token as generate_random_token from flask_login import current_user, login_required from auth.login.bas...
32.694656
118
0.698342
581
4,283
4.94148
0.26506
0.04737
0.029258
0.023685
0.052247
0.018809
0.018809
0
0
0
0
0.006638
0.190988
4,283
130
119
32.946154
0.821934
0.053467
0
0.085106
0
0
0.083724
0.02124
0
0
0
0
0
1
0.180851
false
0
0.106383
0.117021
0.478723
0.031915
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
1b1163b5c1c6d08f8b1ea7b7d3e6b064f710268e
1,283
py
Python
52_最长不含重复字符的子字符串.py
wode1/-offer-python-
22cb55b7a89f48c7d3686f0a7a822c16ff3976f1
[ "Apache-2.0" ]
null
null
null
52_最长不含重复字符的子字符串.py
wode1/-offer-python-
22cb55b7a89f48c7d3686f0a7a822c16ff3976f1
[ "Apache-2.0" ]
null
null
null
52_最长不含重复字符的子字符串.py
wode1/-offer-python-
22cb55b7a89f48c7d3686f0a7a822c16ff3976f1
[ "Apache-2.0" ]
null
null
null
''' 从字符串中找出一个最长的不包含重复字符的子字符串,计算该最长子字符串的长度。假设字符串中只包含'a'~'z的字符。例如,在字 符串"arabcacfr"中,最长的不含重复字符的子字符串是"acfr",长度为4。 ''' class Solution: def lengthOfLongestSubstring(self, s): if len(s) <= 1: return len(s) head, tail = 0, 0 maxLen = 1 while tail+1 < len(s): tail += 1 # 往窗口内添加元素 if s[tail] not in s[head: tai...
12.578431
62
0.631333
184
1,283
4.402174
0.255435
0.044444
0.1
0.081481
0.588889
0.588889
0.588889
0.554321
0.476543
0.444444
0
0.028455
0.233048
1,283
101
63
12.70297
0.794715
0.197974
0
0.857143
0
0
0.015593
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.238095
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1b1717b44e9148ae97616955dad12e1104067a0e
1,147
py
Python
sh/scripts/view_faucet_account_keys.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
4
2020-03-10T15:28:17.000Z
2021-10-02T11:41:17.000Z
sh/scripts/view_faucet_account_keys.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
1
2020-03-25T11:31:44.000Z
2020-03-25T11:31:44.000Z
sh/scripts/view_faucet_account_keys.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
9
2020-02-25T18:43:42.000Z
2021-08-10T17:08:42.000Z
import argparse from stests.core import cache from stests.core import factory from stests.core.utils import args_validator from stests.core.utils import cli as utils from stests.core.utils import env from arg_utils import get_network # CLI argument parser. ARGS = argparse.ArgumentParser("Displays a keys asssociated...
27.97561
96
0.710549
158
1,147
5.018987
0.341772
0.0971
0.088272
0.080706
0.286255
0.191677
0.191677
0.150063
0
0
0
0.001037
0.159547
1,147
40
97
28.675
0.821577
0.096774
0
0
0
0
0.414201
0.110454
0
0
0
0
0
1
0.043478
false
0
0.304348
0
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1b206ae3f5c5fdb2c9e5d1ecca0c6fbb09923902
5,152
py
Python
test/acceptance/tools/fabric_utils.py
FIWARE/cloud.PaaS
3ddec91c2b0ef3baca1dd2e596373cf0d4d341e3
[ "Apache-2.0" ]
null
null
null
test/acceptance/tools/fabric_utils.py
FIWARE/cloud.PaaS
3ddec91c2b0ef3baca1dd2e596373cf0d4d341e3
[ "Apache-2.0" ]
null
null
null
test/acceptance/tools/fabric_utils.py
FIWARE/cloud.PaaS
3ddec91c2b0ef3baca1dd2e596373cf0d4d341e3
[ "Apache-2.0" ]
2
2016-08-22T16:03:25.000Z
2018-03-05T23:28:55.000Z
# -*- coding: utf-8 -*- # Copyright 2014 Telefonica Investigación y Desarrollo, S.A.U # # This file is part of FI-WARE project. # # 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://w...
35.287671
115
0.658579
658
5,152
4.951368
0.285714
0.036832
0.019951
0.019644
0.350215
0.263352
0.205648
0.159607
0.159607
0.159607
0
0.005189
0.251941
5,152
145
116
35.531034
0.840166
0.417508
0
0.237288
0
0.016949
0.171004
0
0
0
0
0
0.152542
1
0.101695
false
0.050847
0.084746
0
0.338983
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1b21ac02930b4e22bdd28cedc76ce3ebf51b7c69
650
py
Python
hdri_encoding/metadata_encoding_utils.py
microsoft/ConfigNet
f16b9b52698b1fe588322fdc5d921746f68d0e9e
[ "MIT" ]
82
2020-08-24T01:47:03.000Z
2022-02-28T08:33:50.000Z
hdri_encoding/metadata_encoding_utils.py
microsoft/ConfigNet
f16b9b52698b1fe588322fdc5d921746f68d0e9e
[ "MIT" ]
3
2020-09-18T07:21:00.000Z
2022-02-09T23:42:27.000Z
hdri_encoding/metadata_encoding_utils.py
microsoft/ConfigNet
f16b9b52698b1fe588322fdc5d921746f68d0e9e
[ "MIT" ]
16
2020-08-24T05:47:00.000Z
2022-01-05T07:25:13.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. """Common functions used by the metadata encoding scripts""" import json def load_metadata_dicts(metadata_files): metadata_dicts = [] for metadata_file in metadata_files: with open(metadata_file, "r") as fp: m...
34.210526
61
0.690769
87
650
4.954023
0.471264
0.271462
0.146172
0.12065
0
0
0
0
0
0
0
0.001949
0.210769
650
18
62
36.111111
0.838207
0.190769
0
0
0
0
0.003992
0
0
0
0
0
0.083333
1
0.166667
false
0
0.083333
0
0.333333
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1b227e9375b3dddeb348d11a30d06d878e3e08d5
11,700
py
Python
code/segmentation/MELC_ImageProcessing.py
perlfloccri/DeepFLEX
84d2d83f09acdb4dbc7c02735e071bf8d67ddafe
[ "MIT" ]
null
null
null
code/segmentation/MELC_ImageProcessing.py
perlfloccri/DeepFLEX
84d2d83f09acdb4dbc7c02735e071bf8d67ddafe
[ "MIT" ]
null
null
null
code/segmentation/MELC_ImageProcessing.py
perlfloccri/DeepFLEX
84d2d83f09acdb4dbc7c02735e071bf8d67ddafe
[ "MIT" ]
1
2020-09-30T21:44:12.000Z
2020-09-30T21:44:12.000Z
from MELC.utils.myDatasets import generate_workingRaw_from_raw, MELCStructureDataset import numpy as np import tifffile as tiff from MELC.utils.registration_daria import register import matplotlib.pyplot as plt import cv2 from MELC.utils.Files import create_folder from skimage import img_as_float, img_as_uint from MELC...
42.238267
148
0.685897
1,506
11,700
4.920983
0.152058
0.073404
0.058292
0.039671
0.447308
0.300364
0.18648
0.149642
0.113885
0.054514
0
0.030346
0.208547
11,700
276
149
42.391304
0.769978
0.041709
0
0.012579
1
0
0.064246
0.014787
0
0
0
0
0
1
0.044025
false
0
0.081761
0
0.150943
0
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
1b24854fdff1c239a2ae1dd104ad4dbb9b57c601
1,668
py
Python
ryu/tests/server-for-consistency-test.py
uiuc-srg/ryu
2a597f812270ea9690269a20bf659f334c323eb6
[ "Apache-2.0" ]
null
null
null
ryu/tests/server-for-consistency-test.py
uiuc-srg/ryu
2a597f812270ea9690269a20bf659f334c323eb6
[ "Apache-2.0" ]
null
null
null
ryu/tests/server-for-consistency-test.py
uiuc-srg/ryu
2a597f812270ea9690269a20bf659f334c323eb6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ An echo server that uses select to handle multiple clients at a time. Command-line parameter: port=listening port """ import select import socket import sys if len(sys.argv)!=2: print("You need to specify a listening port!") sys.exit() host = '' port = int(sys.argv[1]) back...
27.344262
103
0.550959
205
1,668
4.473171
0.492683
0.022901
0.015267
0.037077
0.039258
0
0
0
0
0
0
0.011765
0.33753
1,668
60
104
27.8
0.8181
0.166667
0
0.153846
0
0
0.088165
0
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.102564
0
0
0
null
0
0
0
0
0
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
1b24a9c95de8992eb607fee932124e52311407d1
1,146
py
Python
2015/python/d07.py
eduellery/adventofcode
dccece0bf59bc241803edc99a6536062fe2714d1
[ "MIT" ]
null
null
null
2015/python/d07.py
eduellery/adventofcode
dccece0bf59bc241803edc99a6536062fe2714d1
[ "MIT" ]
null
null
null
2015/python/d07.py
eduellery/adventofcode
dccece0bf59bc241803edc99a6536062fe2714d1
[ "MIT" ]
null
null
null
import re lines = open('d07.in').read().split('\n') calc = dict() for line in lines: instruction = re.findall(r'(.*)\s->\s(\w*)', line) for ops, register in instruction: calc[register] = ops.strip().split(' ') def calculate(register): try: return int(register) except ValueError: ...
25.466667
58
0.519197
136
1,146
4.375
0.382353
0.201681
0.151261
0.134454
0.22521
0.22521
0.22521
0.176471
0.176471
0
0
0.021684
0.315881
1,146
44
59
26.045455
0.737245
0
0
0.054054
0
0
0.046248
0
0
0
0.005236
0
0
1
0.027027
false
0.027027
0.027027
0
0.108108
0.054054
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
1b2c8ab1cb51ed50fafc8095cf24fef9233aa71a
2,755
py
Python
lib/durak/game/ai.py
maximpertsov/durak-sockets
53e47980a5456f44df4c2f140d74504ae8ad43a6
[ "MIT" ]
null
null
null
lib/durak/game/ai.py
maximpertsov/durak-sockets
53e47980a5456f44df4c2f140d74504ae8ad43a6
[ "MIT" ]
1
2020-10-23T14:12:47.000Z
2020-11-03T17:33:11.000Z
lib/durak/game/ai.py
maximpertsov/durak-sockets
53e47980a5456f44df4c2f140d74504ae8ad43a6
[ "MIT" ]
null
null
null
from itertools import chain from random import choice from lib.durak.exceptions import IllegalAction class AI: class CannotPerform(IllegalAction): pass def __init__(self, *, game): self._game = game def perform_action(self, *, player): """ Have the user perform a random ...
29.945652
86
0.57931
284
2,755
5.355634
0.271127
0.063116
0.072321
0.065746
0.236686
0.1762
0.149901
0.149901
0
0
0
0.002146
0.323412
2,755
91
87
30.274725
0.813841
0.058076
0
0.225806
0
0
0.020668
0
0
0
0
0.010989
0
1
0.145161
false
0.016129
0.048387
0.032258
0.306452
0
0
0
0
null
0
0
0
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
1b2e5bc5b7359f315c6568c59fbcd38f9b3397a5
948
py
Python
string/tinyUrl.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
string/tinyUrl.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
string/tinyUrl.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
import random class Codec: base62 = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' baseurl = 'http://tinyurl.com/' tinyTolong = {'1':'1'} longTotiny = {} def encode(self, longUrl): """Encodes a URL to a shortened URL. :type longUrl: str :rtype: str ...
28.727273
77
0.597046
94
948
6.021277
0.425532
0.079505
0.121908
0.106007
0
0
0
0
0
0
0
0.027439
0.308017
948
33
78
28.727273
0.835366
0.150844
0
0
0
0
0.115226
0.085048
0
0
0
0
0
1
0.105263
false
0
0.052632
0
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1b3057afe6cc042a2d06d8c6901dc21dbf505ca6
1,328
py
Python
Lib/objc/MetalKit.py
kanishpatel/Pyto
feec7a1a54f635a6375fa7ede074ff35afbfbb95
[ "MIT" ]
null
null
null
Lib/objc/MetalKit.py
kanishpatel/Pyto
feec7a1a54f635a6375fa7ede074ff35afbfbb95
[ "MIT" ]
null
null
null
Lib/objc/MetalKit.py
kanishpatel/Pyto
feec7a1a54f635a6375fa7ede074ff35afbfbb95
[ "MIT" ]
null
null
null
''' Classes from the 'MetalKit' framework. ''' try: from rubicon.objc import ObjCClass except ValueError: def ObjCClass(name): return None def _Class(name): try: return ObjCClass(name) except NameError: return None MTKViewDisplayLinkTarget = _Class('MTKViewDisplayLinkTar...
33.2
67
0.799699
92
1,328
11.304348
0.423913
0.025
0
0
0
0
0
0
0
0
0
0.001682
0.104669
1,328
39
68
34.051282
0.873003
0.028614
0
0.129032
0
0
0.300312
0.111544
0
0
0
0
0
1
0.064516
false
0
0.032258
0.032258
0.193548
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
1b42bdaa222371750f61ef24741923cb5ba6d385
3,392
py
Python
tests/test_datasets.py
gau-nernst/CenterNet
bd6a21813a63310e3b1c77cefe24077b72d1092a
[ "MIT" ]
47
2021-08-10T09:30:53.000Z
2022-03-29T07:53:43.000Z
tests/test_datasets.py
gau-nernst/CenterNet
bd6a21813a63310e3b1c77cefe24077b72d1092a
[ "MIT" ]
1
2021-08-07T13:46:49.000Z
2021-08-07T13:46:49.000Z
tests/test_datasets.py
gau-nernst/CenterNet
bd6a21813a63310e3b1c77cefe24077b72d1092a
[ "MIT" ]
6
2021-08-12T02:40:43.000Z
2022-01-31T16:12:40.000Z
import random import pytest import numpy as np import torch from torch.utils.data import DataLoader from centernet_lightning.datasets import COCODataset, VOCDataset, CrowdHumanDataset, MOTTrackingSequence, MOTTrackingDataset, KITTITrackingSequence, KITTITrackingDataset from centernet_lightning.datasets.utils import g...
34.262626
169
0.65684
389
3,392
5.542416
0.210797
0.081633
0.058442
0.074675
0.325603
0.229128
0.198516
0.198516
0.180891
0.180891
0
0.009415
0.248526
3,392
99
170
34.262626
0.836406
0
0
0.232877
0
0
0.027999
0
0
0
0
0
0.342466
1
0.136986
false
0.09589
0.109589
0
0.30137
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1b437fea1f8494157ef38e2b0fdd72c52d6e8cfe
768
py
Python
docs/run.py
imrehg/dash-bootstrap-components
7cf43168808bb88b243e414168dc3bf196fefd84
[ "Apache-2.0" ]
1
2022-01-12T12:36:20.000Z
2022-01-12T12:36:20.000Z
docs/run.py
imrehg/dash-bootstrap-components
7cf43168808bb88b243e414168dc3bf196fefd84
[ "Apache-2.0" ]
null
null
null
docs/run.py
imrehg/dash-bootstrap-components
7cf43168808bb88b243e414168dc3bf196fefd84
[ "Apache-2.0" ]
null
null
null
from werkzeug.middleware.dispatcher import DispatcherMiddleware from components_page import register_apps as register_component_apps from examples import register_apps as register_example_apps from markdown_to_html import convert_all_markdown_files from server import create_server convert_all_markdown_files() server...
30.72
68
0.807292
98
768
5.938776
0.469388
0.041237
0.061856
0.068729
0.09622
0
0
0
0
0
0
0.005926
0.121094
768
24
69
32
0.856296
0
0
0
0
0
0.042969
0
0
0
0
0
0
1
0
false
0
0.388889
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1b4626f96dec1d654d95e876fe84b62e1e6877b4
1,426
py
Python
fledgling/app/entity/task.py
PracticalCleanArchitecture/fledgling
ec2fdd8446c0ecb94bdd8f8cfaec4c264b546683
[ "MIT" ]
1
2021-08-28T16:26:44.000Z
2021-08-28T16:26:44.000Z
fledgling/app/entity/task.py
PracticalCleanArchitecture/fledgling
ec2fdd8446c0ecb94bdd8f8cfaec4c264b546683
[ "MIT" ]
null
null
null
fledgling/app/entity/task.py
PracticalCleanArchitecture/fledgling
ec2fdd8446c0ecb94bdd8f8cfaec4c264b546683
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- from abc import ABC, abstractmethod from datetime import datetime from enum import Enum from typing import List, Optional, Tuple, Union class TaskRepositoryError(Exception): pass class TaskStatus(Enum): CREATED = 1 FINISHED = 2 class Task: def __init__(self): self.br...
22.634921
75
0.581346
154
1,426
5.285714
0.357143
0.083538
0.077396
0
0
0
0
0
0
0
0
0.003052
0.310659
1,426
62
76
23
0.825025
0.025245
0
0.214286
0
0
0.002978
0
0
0
0
0
0
1
0.166667
false
0.119048
0.095238
0.02381
0.452381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1b469269698aba27e175e7d85e9c7b4f767ceec3
7,254
py
Python
ElectroWeakAnalysis/ZMuMu/python/ZMuMuCategoriesPlots_cff.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
ElectroWeakAnalysis/ZMuMu/python/ZMuMuCategoriesPlots_cff.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
ElectroWeakAnalysis/ZMuMu/python/ZMuMuCategoriesPlots_cff.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
import FWCore.ParameterSet.Config as cms from ElectroWeakAnalysis.ZMuMu.ZMuMuCategoriesSequences_cff import * import copy zPlots = cms.PSet( histograms = cms.VPSet( cms.PSet( min = cms.untracked.double(0.0), max = cms.untracked.double(200.0), nbins = cms.untracked.int32(200), name = cms.untra...
34.056338
95
0.809347
601
7,254
9.597338
0.214642
0.026006
0.06068
0.020804
0.665742
0.659327
0.648752
0.630028
0.630028
0.616158
0
0.021115
0.092501
7,254
212
96
34.216981
0.855081
0.397849
0
0.216867
0
0
0.145579
0.106303
0
0
0
0
0
1
0
false
0
0.036145
0
0.036145
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1b588099d4b30e26fb0a274ed99ed4ea86b7a285
1,038
py
Python
appcred.py
tamalsaha/keystone-demo
dd13b3d283565f72f38d696b235be4e2ad2c2845
[ "Apache-2.0" ]
1
2018-07-31T09:25:53.000Z
2018-07-31T09:25:53.000Z
appcred.py
tamalsaha/keystone-demo
dd13b3d283565f72f38d696b235be4e2ad2c2845
[ "Apache-2.0" ]
null
null
null
appcred.py
tamalsaha/keystone-demo
dd13b3d283565f72f38d696b235be4e2ad2c2845
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from keystoneauth1.identity import v3 from keystoneauth1 import session from keystoneclient.v3 import client from pprint import pprint import os def main(): AUTH_URL = os.getenv('OS_AUTH_URL') USERNAME = os.getenv('OS_USERNAME') USER_DOMAIN_NAME = os.getenv('OS_USER_DOMAIN_NAME') PASSWD = os.get...
27.315789
52
0.754335
145
1,038
5.068966
0.255172
0.057143
0.081633
0.059864
0.07619
0.07619
0
0
0
0
0
0.005495
0.123314
1,038
37
53
28.054054
0.802198
0.015414
0
0
0
0
0.17238
0
0
0
0
0
0
1
0.032258
false
0.129032
0.16129
0
0.193548
0.258065
0
0
0
null
0
0
0
0
0
0
0
0
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
1b5abd620bf6c3fd9ffce5839f82ac6ace822f1a
664
py
Python
data/admin.py
FSavoy/visuo-server
d9c93ec7ae9dd033f3f0290381ddbac413bb6f9a
[ "BSD-3-Clause" ]
2
2017-11-16T08:32:46.000Z
2018-04-02T13:36:42.000Z
data/admin.py
FSavoy/visuo-server
d9c93ec7ae9dd033f3f0290381ddbac413bb6f9a
[ "BSD-3-Clause" ]
null
null
null
data/admin.py
FSavoy/visuo-server
d9c93ec7ae9dd033f3f0290381ddbac413bb6f9a
[ "BSD-3-Clause" ]
2
2017-11-16T08:33:52.000Z
2021-05-12T06:31:54.000Z
from django.contrib.gis import admin # Register your models here. from models import SkyPicture, MeasuringDevice, WeatherMeasurement, RadiosondeMeasurement from django.contrib.gis import forms # Custom interface for selecting the location of devices class MeasuringDeviceAdminForm(forms.ModelForm): location = for...
34.947368
89
0.813253
68
664
7.926471
0.544118
0.06679
0.12616
0.074212
0.096475
0
0
0
0
0
0
0
0.111446
664
19
90
34.947368
0.913559
0.121988
0
0
0
0
0.018933
0
0
0
0
0
0
1
0
false
0
0.25
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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