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
6486381637823d2233cc5e2e755dff8914311f6f
5,841
py
Python
third-party/rlimit/scripts/codegen.py
capyloon/api-daemon
ab4e4b60aa9bb617734c64655c0b8940fff098bc
[ "Apache-2.0" ]
4
2022-02-08T05:32:15.000Z
2022-03-29T22:35:33.000Z
third-party/rlimit/scripts/codegen.py
capyloon/api-daemon
ab4e4b60aa9bb617734c64655c0b8940fff098bc
[ "Apache-2.0" ]
null
null
null
third-party/rlimit/scripts/codegen.py
capyloon/api-daemon
ab4e4b60aa9bb617734c64655c0b8940fff098bc
[ "Apache-2.0" ]
1
2022-03-20T11:14:51.000Z
2022-03-20T11:14:51.000Z
from typing import Optional, Dict, List import json import os import re from pprint import pprint LIBC_REPO_PATH = os.getenv("LIBC_REPO_PATH", "libc") PREDICATES = { "fuchsia/mod.rs": {"os": ["fuchsia"]}, "unix/bsd/apple/mod.rs": {"os": ["macos", "ios"]}, "unix/bsd/freebsdlike/dragonfly/mod.rs": {"os": ["...
34.56213
104
0.541174
723
5,841
4.250346
0.250346
0.043931
0.056948
0.04686
0.235926
0.117475
0.07029
0.058575
0.022128
0.022128
0
0.012999
0.23609
5,841
168
105
34.767857
0.675706
0.002054
0
0.115646
0
0
0.398661
0.140724
0
0
0
0
0.013605
1
0.027211
false
0
0.034014
0
0.095238
0.204082
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64879ceed73b3f3ed843d40690f61395ac4530f2
13,389
py
Python
deepatari/tools/statistics.py
cowhi/deepatari
3b676ca4fc66266d766cd2366226f3e10213bc78
[ "MIT" ]
10
2016-06-10T01:13:44.000Z
2017-10-15T10:47:09.000Z
deepatari/tools/statistics.py
cowhi/deepatari
3b676ca4fc66266d766cd2366226f3e10213bc78
[ "MIT" ]
null
null
null
deepatari/tools/statistics.py
cowhi/deepatari
3b676ca4fc66266d766cd2366226f3e10213bc78
[ "MIT" ]
2
2016-06-10T14:38:08.000Z
2020-08-29T03:11:06.000Z
import logging _logger = logging.getLogger(__name__) import sys import os import csv import time import numpy as np class Statistics(object): """ This class handles all statistics of an experiment. The class keeps the statistics running and saves certain paramaters at the end of an epoch to files. It's a...
44.481728
276
0.56778
1,622
13,389
4.448829
0.146732
0.031596
0.036031
0.031181
0.54296
0.440549
0.41311
0.388997
0.336752
0.326774
0
0.003377
0.314288
13,389
300
277
44.63
0.782594
0.219359
0
0.492147
0
0.005236
0.197568
0.00224
0
0
0
0.003333
0
1
0.036649
false
0
0.031414
0
0.094241
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6488b1c28baaff292669122a86d2163e41ff8cf6
1,284
py
Python
cmskit/products/views.py
ozgurgunes/django-cmskit
19d14fbb57702a6c56b6b3a5d859c93533ff1535
[ "MIT" ]
1
2015-09-28T10:10:34.000Z
2015-09-28T10:10:34.000Z
cmskit/products/views.py
ozgurgunes/django-cmskit
19d14fbb57702a6c56b6b3a5d859c93533ff1535
[ "MIT" ]
null
null
null
cmskit/products/views.py
ozgurgunes/django-cmskit
19d14fbb57702a6c56b6b3a5d859c93533ff1535
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.utils.translation import get_language from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext from django.http import Http404 from cmskit.products.models import Category, Product def index(request): categories = Category.obje...
41.419355
80
0.662773
139
1,284
5.913669
0.402878
0.048662
0.077859
0.080292
0.160584
0
0
0
0
0
0
0.012795
0.208723
1,284
31
81
41.419355
0.79626
0.016355
0
0.125
0
0
0.142631
0.05309
0
0
0
0
0
1
0.083333
false
0.041667
0.208333
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
648919faa81c812b312bc58cbd08e8cc789afe5f
307
py
Python
main.py
baifengbai/xlart
d4568dcc3c221b25a9227af1ae022c4f0a5b3476
[ "MIT" ]
1
2022-03-12T02:40:51.000Z
2022-03-12T02:40:51.000Z
main.py
baifengbai/xlart
d4568dcc3c221b25a9227af1ae022c4f0a5b3476
[ "MIT" ]
null
null
null
main.py
baifengbai/xlart
d4568dcc3c221b25a9227af1ae022c4f0a5b3476
[ "MIT" ]
null
null
null
from time import time import xlart if __name__ == '__main__': start = time() xlart.resize_image('picture.jpg', 'picture_resized.jpg', 200, 200) xlart.image_to_xlsx('picture_resized.jpg', 'demo.xlsx') end = time() print('An xlart file has been generated in ' + str(end - start) + 's.')
27.909091
75
0.664495
44
307
4.340909
0.613636
0.104712
0.17801
0
0
0
0
0
0
0
0
0.024096
0.188925
307
10
76
30.7
0.742972
0
0
0
0
0
0.338762
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6489d5635a822fcdc10fe744a26044fe5cedea48
528
py
Python
tests/units/Vault/test_withdraw_all.py
benber86/alcom_contracts
57136d97d0d30088679e358a2fc3345e82ccb0f7
[ "MIT" ]
2
2021-07-14T16:26:14.000Z
2021-08-01T22:24:51.000Z
tests/units/Vault/test_withdraw_all.py
benber86/alcom_contracts
57136d97d0d30088679e358a2fc3345e82ccb0f7
[ "MIT" ]
null
null
null
tests/units/Vault/test_withdraw_all.py
benber86/alcom_contracts
57136d97d0d30088679e358a2fc3345e82ccb0f7
[ "MIT" ]
null
null
null
import brownie AMOUNT = 10 ** 18 def test_single_withdraw_all(alice, vault, alcx, ss_compounder): prior_pool_balance = ss_compounder.stakeBalance() prior_alcx_balance = alcx.balanceOf(alice) alcx.approve(vault, AMOUNT, {'from': alice}) vault.deposit(AMOUNT, {'from': alice}) vault.withdrawAll({'...
27.789474
64
0.717803
65
528
5.615385
0.415385
0.082192
0.087671
0.158904
0
0
0
0
0
0
0
0.013544
0.160985
528
18
65
29.333333
0.810384
0
0
0
0
0
0.022727
0
0
0
0
0
0.333333
1
0.083333
false
0
0.083333
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
648b823acfa1c931f329b120da5595b30d0999f3
685
py
Python
tests/test_constituency_parsing.py
jayten42/pororo
0b02e6a633b9a32ec4241b8ed96745e6592db317
[ "Apache-2.0" ]
1,137
2021-02-02T02:09:06.000Z
2022-03-29T03:10:40.000Z
tests/test_constituency_parsing.py
jayten42/pororo
0b02e6a633b9a32ec4241b8ed96745e6592db317
[ "Apache-2.0" ]
57
2021-02-02T03:29:54.000Z
2022-03-31T16:20:00.000Z
tests/test_constituency_parsing.py
jayten42/pororo
0b02e6a633b9a32ec4241b8ed96745e6592db317
[ "Apache-2.0" ]
216
2021-02-02T02:49:02.000Z
2022-03-28T01:19:58.000Z
"""Test Constituency Parsing module""" import unittest from pororo import Pororo class PororoConstParsingTester(unittest.TestCase): def test_modules(self): const = Pororo(task="const", lang="ko") const_res = const( "지금까지 최원호 한화 이글스 감독대행, 이동욱 NC 다이노스 감독, 이강철 KT 감독에 이어 4번째 선물이었다.") ...
25.37037
77
0.640876
85
685
4.988235
0.541176
0.113208
0.106132
0.141509
0.389151
0.259434
0.259434
0.259434
0.259434
0.259434
0
0.001923
0.240876
685
26
78
26.346154
0.813462
0.046715
0
0.1875
0
0
0.174652
0
0
0
0
0
0.1875
1
0.0625
false
0
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
648bc0fbcc9b572dd1e815e182903fd435d432c6
6,120
py
Python
goat_scraper.py
Joseph1337/Snkr-Findr-API
7caf2eef5beb487d1a5446dafec796c37c7e6be4
[ "MIT" ]
4
2021-03-03T17:14:25.000Z
2022-01-22T14:52:49.000Z
goat_scraper.py
Joseph1337/Snkr-Trakr-API
7caf2eef5beb487d1a5446dafec796c37c7e6be4
[ "MIT" ]
null
null
null
goat_scraper.py
Joseph1337/Snkr-Trakr-API
7caf2eef5beb487d1a5446dafec796c37c7e6be4
[ "MIT" ]
null
null
null
import json import requests import pprint from time import sleep import random #extracts all user-agents from the provided 'ua_file.txt' into a list then randomly selects a user-agent def getUserAgent(): randomUserAgent = "" listOfUserAgents = [] userAgentFile = 'ua_file.txt' with open('ua_file.txt') ...
39.483871
244
0.584967
648
6,120
5.399691
0.371914
0.022006
0.009145
0.008574
0.135467
0.110889
0.110889
0.110889
0.110889
0.092026
0
0.022212
0.286438
6,120
154
245
39.74026
0.779025
0.103595
0
0.201613
0
0.008065
0.254662
0.029616
0
0
0
0
0
1
0.040323
false
0
0.040323
0
0.129032
0.016129
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
648e62a712e9527d4e41e9d0aa25cde0e47d754b
4,674
py
Python
src/morsecoder.py
PyMorseCoder/MorseCoder
3266f2ec7c0563affd0c6d7a71a621245fb890e4
[ "Apache-2.0" ]
7
2021-06-20T22:57:36.000Z
2021-07-05T21:43:24.000Z
src/morsecoder.py
HestStudio/MorseCoder
3266f2ec7c0563affd0c6d7a71a621245fb890e4
[ "Apache-2.0" ]
null
null
null
src/morsecoder.py
HestStudio/MorseCoder
3266f2ec7c0563affd0c6d7a71a621245fb890e4
[ "Apache-2.0" ]
2
2021-07-30T04:28:14.000Z
2022-01-02T07:45:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Update time: 2021/6/19 class MorsecodeError(Exception): ''' 自定义异常, 更明了的异常信息 ''' def __init__(self, value): self.value = value def __str__(self): return repr(self.value) class Morsecoder: ''' 基于Python3.6+的摩斯密码库, 支持编码...
22.257143
78
0.384467
370
4,674
4.540541
0.413514
0.071429
0.02619
0.017857
0.107143
0.075
0
0
0
0
0
0.01124
0.409927
4,674
210
79
22.257143
0.597897
0.081729
0
0.141667
0
0
0.12698
0.043249
0
0
0
0
0
1
0.083333
false
0
0
0.016667
0.183333
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
648f3c72677968d9346724e918ca2c01342d3bfb
6,629
py
Python
third_party/chromite/scripts/sysmon/puppet_metrics_unittest.py
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/chromite/scripts/sysmon/puppet_metrics_unittest.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
third_party/chromite/scripts/sysmon/puppet_metrics_unittest.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# -*- coding: utf-8 -*- # Copyright 2017 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Unit tests for puppet_metrics.""" # pylint: disable=protected-access from __future__ import absolute_import from __future__ i...
33.821429
77
0.607633
774
6,629
5.050388
0.224806
0.057304
0.100281
0.114607
0.568688
0.553083
0.53671
0.521361
0.39166
0.310565
0
0.116757
0.251923
6,629
195
78
33.994872
0.671506
0.045256
0
0.10241
0
0
0.25107
0.017277
0
0
0
0
0.048193
1
0.048193
false
0
0.042169
0
0.10241
0.006024
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6490cc9b76431e255aeab4722b02c97b8014ad01
5,628
py
Python
src/flocker/blueprints/mvg-frame/__init__.py
Muxelmann/home-projects
85bd06873174b9c5c6276160988c19b460370db8
[ "MIT" ]
null
null
null
src/flocker/blueprints/mvg-frame/__init__.py
Muxelmann/home-projects
85bd06873174b9c5c6276160988c19b460370db8
[ "MIT" ]
null
null
null
src/flocker/blueprints/mvg-frame/__init__.py
Muxelmann/home-projects
85bd06873174b9c5c6276160988c19b460370db8
[ "MIT" ]
null
null
null
import os import time from flask import Blueprint, render_template, redirect, url_for, request, current_app from . import mvg from . import displays from PIL import Image, ImageFont, ImageDraw def create_bp(app): bp_mvg = Blueprint('mvg-frame', __name__, url_prefix='/mvg-frame') displays.init(app) @bp_m...
39.083333
122
0.555792
781
5,628
3.850192
0.254802
0.053874
0.019953
0.013967
0.203193
0.163951
0.14433
0.14433
0.091786
0.091786
0
0.022675
0.302594
5,628
144
123
39.083333
0.743439
0.120469
0
0.09
0
0
0.099291
0.023506
0
0
0
0
0
1
0.06
false
0
0.06
0.02
0.21
0.02
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
649106bcf86144f6cc9ff5c528dd98e420f849a0
4,770
py
Python
friendly/runtime_errors/value_error.py
MrGreenTea/friendly
091f6af1d3c2be8fee078e52db6e16074d5518e5
[ "MIT" ]
null
null
null
friendly/runtime_errors/value_error.py
MrGreenTea/friendly
091f6af1d3c2be8fee078e52db6e16074d5518e5
[ "MIT" ]
null
null
null
friendly/runtime_errors/value_error.py
MrGreenTea/friendly
091f6af1d3c2be8fee078e52db6e16074d5518e5
[ "MIT" ]
null
null
null
"""value_error.py Collection of functions useful in parsing ValueError messages and providing a more detailed explanation. """ import re from ..my_gettext import current_lang, no_information, internal_error from .. import info_variables from .. import debug_helper from .. import utils convert_type = info_variables....
31.176471
87
0.639832
641
4,770
4.588144
0.24805
0.047603
0.048963
0.040802
0.478069
0.442367
0.427406
0.409045
0.409045
0.381163
0
0.004462
0.248218
4,770
152
88
31.381579
0.815672
0.098323
0
0.418182
0
0
0.21791
0
0
0
0
0
0
1
0.072727
false
0
0.045455
0.009091
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6492a201029a7d225176b66fd3ca085b9340bf5b
5,951
py
Python
bctree/bctree.py
lad/bctree
7f99917fab9071af8ad870ba39304bd804e78e12
[ "Apache-2.0" ]
1
2016-02-16T20:07:34.000Z
2016-02-16T20:07:34.000Z
bctree/bctree.py
lad/bctree
7f99917fab9071af8ad870ba39304bd804e78e12
[ "Apache-2.0" ]
null
null
null
bctree/bctree.py
lad/bctree
7f99917fab9071af8ad870ba39304bd804e78e12
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """BeatCleaver Unsorted Tree Implementation.""" from collections import deque # pylint: disable-msg=W0212 # pylint can't figure out that we're accessing a protected member of our own # class. class BcTree(object): """Unsorted Native Python Tree.""" DFS = 0 BFS = 1 def __init_...
33.621469
77
0.584104
762
5,951
4.450131
0.181102
0.031849
0.023002
0.024771
0.323503
0.258036
0.210852
0.179298
0.158065
0.158065
0
0.002728
0.322467
5,951
176
78
33.8125
0.838294
0.232062
0
0.345455
0
0
0.063481
0
0
0
0
0
0
1
0.154545
false
0
0.009091
0
0.354545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64949fc4b1f9f8284a4942246dab5340df67e65c
773
py
Python
src/main.py
juhovan/stuk-dose-rate-exporter
7eec62cc3c9dad48a0a2868dcb55e9a9b4bd569e
[ "MIT" ]
null
null
null
src/main.py
juhovan/stuk-dose-rate-exporter
7eec62cc3c9dad48a0a2868dcb55e9a9b4bd569e
[ "MIT" ]
1
2022-03-08T20:52:02.000Z
2022-03-08T20:52:02.000Z
src/main.py
juhovan/stuk-dose-rate-exporter
7eec62cc3c9dad48a0a2868dcb55e9a9b4bd569e
[ "MIT" ]
null
null
null
#!/bin/python import datetime from http.server import HTTPServer, BaseHTTPRequestHandler import dose_rates class SimpleHTTPRequestHandler(BaseHTTPRequestHandler): def do_GET(self): if self.path == '/metrics': results = dose_rates.get_data() body = '\n'.join(results) s...
26.655172
75
0.609314
87
773
5.298851
0.597701
0.017354
0.069414
0.078091
0.164859
0.164859
0.164859
0.164859
0
0
0
0.0373
0.271669
773
28
76
27.607143
0.781528
0.015524
0
0.2
0
0
0.107895
0
0
0
0
0
0
1
0.05
false
0
0.15
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6496e828b7afe578a9d14aa5a0c97a8185b15a63
7,487
py
Python
service/api.py
psorianom/csv_detective_api
7c96f497374d842226a95a26cb6627ac22cd799b
[ "MIT" ]
2
2020-02-04T05:24:56.000Z
2021-05-05T17:22:55.000Z
service/api.py
psorianom/csv_detective_api
7c96f497374d842226a95a26cb6627ac22cd799b
[ "MIT" ]
10
2019-10-24T13:29:59.000Z
2022-02-26T17:06:15.000Z
service/api.py
psorianom/csv_detective_api
7c96f497374d842226a95a26cb6627ac22cd799b
[ "MIT" ]
2
2019-12-30T23:26:53.000Z
2020-03-27T17:23:28.000Z
#!flask/bin/python import os import sys from collections import defaultdict sys.path.append("./csv_detective_ml") # horrible hack to load my features class to load my ML pipeline :/ from flask import Flask from flask import request from flask import jsonify from flask_restplus import Api, Resource, fields from flask_...
33.573991
112
0.625351
908
7,487
4.932819
0.21696
0.034383
0.04376
0.016968
0.322617
0.268587
0.236213
0.228176
0.228176
0.207189
0
0.008684
0.277147
7,487
222
113
33.725225
0.818921
0.042073
0
0.323353
0
0
0.1448
0.012195
0
0
0
0
0
1
0.05988
false
0
0.08982
0.005988
0.275449
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6497557f12dce30fe9d34eda6e562520909cd934
624
py
Python
Python-code-snippets-001-100/080-crop image and save.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-001-100/080-crop image and save.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-001-100/080-crop image and save.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
''' 80-Crop Image Source: vars sources and shambleized pip install opencv-python ''' import cv2 # Load image to crop. img = cv2.imread('weird.jpg', cv2.IMREAD_UNCHANGED) # Set crop dimensions # We first supply the startY and endY coordinates, #followed by the startX and endX coordinates to the slice. #top-line-230 ...
20.8
61
0.740385
96
624
4.802083
0.625
0.02603
0
0
0
0
0
0
0
0
0
0.065421
0.142628
624
29
62
21.517241
0.796262
0.572115
0
0
0
0
0.163347
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
649796fc6892373cd358b9ae0ff0471d9dffe9cf
1,474
py
Python
own/recursive_lomuto_quick_select_k_set_coderpad.py
MrCsabaToth/IK
713f91c28af7b4a964ba854ede9fec73bf0c4682
[ "Apache-2.0" ]
null
null
null
own/recursive_lomuto_quick_select_k_set_coderpad.py
MrCsabaToth/IK
713f91c28af7b4a964ba854ede9fec73bf0c4682
[ "Apache-2.0" ]
null
null
null
own/recursive_lomuto_quick_select_k_set_coderpad.py
MrCsabaToth/IK
713f91c28af7b4a964ba854ede9fec73bf0c4682
[ "Apache-2.0" ]
null
null
null
import random def quick_select_helper(a, beg, end, k): if beg >= end: return if end == beg + 1: if a[beg] > a[end]: a[beg], a[end] = a[end], a[beg] return pivot_index = random.randint(beg, end) pivot = a[pivot_index] # 1 swap pivot with beginning if pivot_i...
23.03125
90
0.57327
233
1,474
3.549356
0.300429
0.043531
0.082225
0.087062
0.095526
0
0
0
0
0
0
0.030769
0.294437
1,474
63
91
23.396825
0.764423
0.12483
0
0.068182
0
0
0.000778
0
0
0
0
0
0.022727
1
0.068182
false
0
0.045455
0
0.181818
0.113636
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6497a361fbfe4776b2db4e33d8ba9a4805544636
1,212
py
Python
app.py
Programmer-RD-AI/Simple-Blog
188343b9ed039690e2081026ec604c37d821ad57
[ "Apache-2.0" ]
null
null
null
app.py
Programmer-RD-AI/Simple-Blog
188343b9ed039690e2081026ec604c37d821ad57
[ "Apache-2.0" ]
null
null
null
app.py
Programmer-RD-AI/Simple-Blog
188343b9ed039690e2081026ec604c37d821ad57
[ "Apache-2.0" ]
null
null
null
from flask import * import pymongo from pymongo import * app = Flask(__name__) app.debug = True app.secret_key = 'test' cluster = MongoClient("mongodb://Ranuga:ranuga2008@cluster0-shard-00-00.odlbl.mongodb.net:27017,cluster0-shard-00-01.odlbl.mongodb.net:27017,cluster0-shard-00-02.odlbl.mongodb.net:27017/myFirstDatabas...
36.727273
289
0.670792
165
1,212
4.806061
0.430303
0.035309
0.056747
0.075662
0.300126
0.257251
0.257251
0
0
0
0
0.036893
0.150165
1,212
32
290
37.875
0.73301
0
0
0.066667
0
0.033333
0.353135
0.217822
0
0
0
0
0
1
0.066667
false
0
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
649d0ca596b6a034bd16e8ed6193bec8d572c9c4
2,033
py
Python
ProgrammingAssignments/IrisClassification/Vowpal/convertToVowpal.py
ckcortright/CSCI4830MachineLearning
5d1c6c7bfb05b54f7c000c940b1f6410054f10f0
[ "MIT" ]
null
null
null
ProgrammingAssignments/IrisClassification/Vowpal/convertToVowpal.py
ckcortright/CSCI4830MachineLearning
5d1c6c7bfb05b54f7c000c940b1f6410054f10f0
[ "MIT" ]
null
null
null
ProgrammingAssignments/IrisClassification/Vowpal/convertToVowpal.py
ckcortright/CSCI4830MachineLearning
5d1c6c7bfb05b54f7c000c940b1f6410054f10f0
[ "MIT" ]
2
2016-11-30T07:28:47.000Z
2017-01-28T05:52:45.000Z
################################################################################ # A simple script to convert the iris training data to the vowpal wabbit format. # # Author: Carl Cortright # Date: 9/10/2016 # # Copyright 2016 Carl Cortright ###############################################################################...
27.849315
80
0.567634
266
2,033
4.165414
0.304511
0.073105
0.086643
0.06769
0.097473
0.051444
0
0
0
0
0
0.019255
0.233645
2,033
72
81
28.236111
0.691913
0.1697
0
0
0
0
0.069444
0
0
0
0
0
0
1
0.046512
false
0
0.069767
0
0.116279
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
649fc4b512a5b9fc6782de731a26e50560bffbcf
516
py
Python
z.uncategorized/programmers87946.py
kimminki10/algorithms2
5d3b2d970dbc88169108632ce0d234bf74446316
[ "MIT" ]
null
null
null
z.uncategorized/programmers87946.py
kimminki10/algorithms2
5d3b2d970dbc88169108632ce0d234bf74446316
[ "MIT" ]
null
null
null
z.uncategorized/programmers87946.py
kimminki10/algorithms2
5d3b2d970dbc88169108632ce0d234bf74446316
[ "MIT" ]
null
null
null
""" https://programmers.co.kr/learn/courses/30/lessons/87946 피로도 """ result = 0 def gogo(k, dun, depth=0): global result if result < depth: result = depth if k < 1: return if dun == None: return for i in range(len(dun)): if k >= dun[i][0]: gogo(k - dun[i]...
19.111111
61
0.550388
80
516
3.55
0.475
0.056338
0.056338
0
0
0
0
0
0
0
0
0.075067
0.277132
516
27
62
19.111111
0.686327
0.116279
0
0.105263
0
0
0
0
0
0
0
0
0
1
0.105263
false
0
0
0
0.263158
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64a02aaa94244083fe284a70aa2f56168c273094
10,914
py
Python
nicos/clients/gui/utils.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
1
2021-03-26T10:30:45.000Z
2021-03-26T10:30:45.000Z
nicos/clients/gui/utils.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos/clients/gui/utils.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
3
2020-08-04T18:35:05.000Z
2021-04-16T11:22:08.000Z
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
31.45245
87
0.616731
1,220
10,914
5.431967
0.32623
0.024295
0.01509
0.017655
0.189226
0.158292
0.101102
0.078769
0.047382
0.036517
0
0.007561
0.260766
10,914
346
88
31.543353
0.813832
0.125252
0
0.229839
0
0
0.037883
0
0
0
0
0
0
1
0.189516
false
0.012097
0.020161
0.044355
0.314516
0.008065
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64a5e4b1934441d33265c0c90517da3ddd60146a
27,257
py
Python
pythonScripts/blenderMeshExport.py
dsnettleton/whipstitch-game-engine
1c91a2e90274f18723141ec57d0cb4930bd29b25
[ "MIT" ]
null
null
null
pythonScripts/blenderMeshExport.py
dsnettleton/whipstitch-game-engine
1c91a2e90274f18723141ec57d0cb4930bd29b25
[ "MIT" ]
null
null
null
pythonScripts/blenderMeshExport.py
dsnettleton/whipstitch-game-engine
1c91a2e90274f18723141ec57d0cb4930bd29b25
[ "MIT" ]
null
null
null
# Blender Mesh Export for the Whipstitch Game Engine # Copyright D. Scott Nettleton, 2013 # This software is released under the terms of the # Lesser GNU Public License (LGPL). import bpy,os from math import sqrt from mathutils import Matrix, Vector, Quaternion from copy import deepcopy workingDirectory = "./"...
39.849415
125
0.602341
3,657
27,257
4.450643
0.093793
0.064881
0.044237
0.002949
0.352421
0.253195
0.19495
0.170742
0.12374
0.086569
0
0.015099
0.244304
27,257
683
126
39.90776
0.775075
0.071064
0
0.179795
0
0.001712
0.075814
0.004159
0
0
0.000475
0
0
1
0.02911
false
0
0.006849
0
0.058219
0.001712
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64a70ed160e992e374d323deae21b2f96b2a2c39
638
py
Python
python/listnode/219.contains-duplicate-ii.py
Nobodylesszb/LeetCode
0e902f6bff4834a93ce64cf9c57fd64297e63523
[ "MIT" ]
null
null
null
python/listnode/219.contains-duplicate-ii.py
Nobodylesszb/LeetCode
0e902f6bff4834a93ce64cf9c57fd64297e63523
[ "MIT" ]
null
null
null
python/listnode/219.contains-duplicate-ii.py
Nobodylesszb/LeetCode
0e902f6bff4834a93ce64cf9c57fd64297e63523
[ "MIT" ]
null
null
null
# Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the absolute difference between i and j is at most k. # Example 1: # Input: nums = [1,2,3,1], k = 3 # Output: true # Example 2: # Input: nums = [1,0,1,1], k = 1 # Output...
25.52
201
0.597179
109
638
3.495413
0.458716
0.070866
0.07874
0.057743
0.068241
0.068241
0
0
0
0
0
0.043956
0.286834
638
24
202
26.583333
0.793407
0.57837
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64a73e1098cc1dff298ecb88f5712e1ebc04b918
23,120
py
Python
network/utils.py
lukaspie/xpsdeeplearning
0e5cf818cb0fe7bcfda707f58a1d2194301a9f24
[ "MIT" ]
1
2022-01-05T09:41:58.000Z
2022-01-05T09:41:58.000Z
network/utils.py
lukaspie/xpsdeeplearning
0e5cf818cb0fe7bcfda707f58a1d2194301a9f24
[ "MIT" ]
null
null
null
network/utils.py
lukaspie/xpsdeeplearning
0e5cf818cb0fe7bcfda707f58a1d2194301a9f24
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jun 9 14:10:44 2020. @author: pielsticker """ import os import pickle import numpy as np import json from matplotlib import pyplot as plt import matplotlib.colors as mcolors import seaborn as sns from docx import Document from docx.enum.table import WD_TABLE_ALIGNMENT, WD_R...
31.033557
80
0.530882
2,739
23,120
4.323111
0.147864
0.030403
0.03167
0.01858
0.414745
0.343214
0.285111
0.253019
0.193058
0.154886
0
0.014253
0.356661
23,120
744
81
31.075269
0.781834
0.160856
0
0.263889
0
0
0.086225
0.003917
0
0
0
0
0
1
0.043981
false
0.00463
0.027778
0
0.097222
0.006944
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64a76d80d9db98ea61ff9254492492045784c0fa
7,743
py
Python
pyzbar/wrapper.py
spmallick/pyzbar
372003b5fc129e15bcf35d464118ea43432a56b8
[ "MIT" ]
null
null
null
pyzbar/wrapper.py
spmallick/pyzbar
372003b5fc129e15bcf35d464118ea43432a56b8
[ "MIT" ]
null
null
null
pyzbar/wrapper.py
spmallick/pyzbar
372003b5fc129e15bcf35d464118ea43432a56b8
[ "MIT" ]
2
2018-11-21T14:17:48.000Z
2020-02-26T22:21:59.000Z
"""Low-level wrapper around zbar's interface """ import platform import sys from ctypes import ( cdll, c_ubyte, c_char_p, c_int, c_uint, c_ulong, c_void_p, Structure, CFUNCTYPE, POINTER ) from ctypes.util import find_library from enum import IntEnum, unique from pathlib import Path # Types c_ubyte_p = POINTE...
28.784387
76
0.592923
915
7,743
4.791257
0.292896
0.063641
0.058394
0.043111
0.314325
0.157391
0.060675
0.040602
0
0
0
0.028953
0.304146
7,743
268
77
28.891791
0.784707
0.332042
0
0.26257
0
0
0.084948
0.030468
0
0
0.005246
0
0
1
0.01676
false
0.011173
0.039106
0
0.268156
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64a8df9ffa0c33a95bf84e16379536e77b819f43
1,281
py
Python
connector/write_rnd.py
lodrantl/pimenk
7871c872d1d93c2e2bb17d48c891696887dbf3b4
[ "Apache-2.0" ]
null
null
null
connector/write_rnd.py
lodrantl/pimenk
7871c872d1d93c2e2bb17d48c891696887dbf3b4
[ "Apache-2.0" ]
2
2016-10-12T15:43:59.000Z
2016-10-12T15:46:38.000Z
connector/write_rnd.py
lodrantl/pimenk
7871c872d1d93c2e2bb17d48c891696887dbf3b4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import argparse import time import random from configparser import ConfigParser from influxdb import SeriesHelper, InfluxDBClient parser = argparse.ArgumentParser() parser.add_argument('config', help='path to the config file') args = parser.parse_args() config_parser = ConfigParser() config_...
23.722222
79
0.693208
163
1,281
5.257669
0.484663
0.070012
0.105018
0.067678
0
0
0
0
0
0
0
0.03128
0.176425
1,281
53
80
24.169811
0.781043
0.02498
0
0
0
0
0.165196
0.017642
0
0
0
0
0
1
0.025641
false
0.025641
0.128205
0
0.205128
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64a8e9e329731638734656b698ff0ab9bec0827e
2,084
py
Python
kyu_5/number_of_trailing_zeros_of_n/test_zeros.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
1
2022-02-12T05:56:04.000Z
2022-02-12T05:56:04.000Z
kyu_5/number_of_trailing_zeros_of_n/test_zeros.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
182
2020-04-30T00:51:36.000Z
2021-09-07T04:15:05.000Z
kyu_5/number_of_trailing_zeros_of_n/test_zeros.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
4
2020-04-29T22:04:20.000Z
2021-07-13T20:04:14.000Z
# Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/ # ALGORITHMS MATHEMATICS NUMBERS import unittest import allure from kyu_5.number_of_trailing_zeros_of_n.zeros import zeros from utils.log_func import print_log @allure.epic('5 kyu') @allure.parent_...
32.061538
94
0.540787
225
2,084
4.937778
0.448889
0.049505
0.054005
0.056706
0.043204
0.043204
0
0
0
0
0
0.033479
0.340691
2,084
64
95
32.5625
0.775109
0.136756
0
0
0
0
0.258046
0
0
0
0
0
0.025641
1
0.025641
false
0
0.102564
0
0.153846
0.051282
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64a9349d4758e8a5e3292009a5229618d221633a
1,404
py
Python
fairness/visualise_target_distribution_datasets_joosje.py
JSGoedhart/fairness-comparison
f6fcb7f39f15bb63aeab03ef24e41d0ffe353bb8
[ "Apache-2.0" ]
null
null
null
fairness/visualise_target_distribution_datasets_joosje.py
JSGoedhart/fairness-comparison
f6fcb7f39f15bb63aeab03ef24e41d0ffe353bb8
[ "Apache-2.0" ]
1
2021-11-15T17:52:04.000Z
2021-11-15T17:52:04.000Z
fairness/visualise_target_distribution_datasets_joosje.py
JSGoedhart/fairness-comparison
f6fcb7f39f15bb63aeab03ef24e41d0ffe353bb8
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import os import seaborn as sns import matplotlib.pyplot as plt from fairness.data.objects.list import DATASETS, get_dataset_names sns.set_context(rc={"figure.figsize": (8, 4)}) sns.set(style = 'white', font_scale = 1.5) colors = ['#2ECC71' , '#FFEB3B'] # Green, yellow curren...
33.428571
134
0.698718
214
1,404
4.443925
0.457944
0.012618
0.042061
0.029443
0.121977
0.121977
0.121977
0
0
0
0
0.022463
0.143875
1,404
42
135
33.428571
0.768719
0.009259
0
0
0
0
0.117266
0.019424
0
0
0
0
0
1
0
false
0
0.193548
0
0.193548
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64ac4e0c696328a0793c73c2ffb9c229acc0aada
2,508
py
Python
examples/kddcup2021/WikiKG90M/feature/dump_feat/1_rrt_feat.py
zbmain/PGL
dbded6a1543248b0a33c05eb476ddc513401a774
[ "Apache-2.0" ]
1,389
2019-06-11T03:29:20.000Z
2022-03-29T18:25:43.000Z
examples/kddcup2021/WikiKG90M/feature/dump_feat/1_rrt_feat.py
zbmain/PGL
dbded6a1543248b0a33c05eb476ddc513401a774
[ "Apache-2.0" ]
232
2019-06-21T06:52:10.000Z
2022-03-29T08:20:31.000Z
examples/kddcup2021/WikiKG90M/feature/dump_feat/1_rrt_feat.py
zbmain/PGL
dbded6a1543248b0a33c05eb476ddc513401a774
[ "Apache-2.0" ]
229
2019-06-20T12:13:58.000Z
2022-03-25T12:04:48.000Z
# -*- coding: utf-8 -*- ######################################################################## # # Copyright (c) 2021 Baidu.com, Inc. All Rights Reserved # # Author: suweiyue(suweiyue@baidu.com) # Date: 2021/06/03 23:12:20 # ######################################################################## """ Comment. """...
30.216867
78
0.637959
368
2,508
4.057065
0.271739
0.073677
0.040188
0.052244
0.359009
0.316142
0.267917
0.166109
0.101139
0
0
0.048293
0.182616
2,508
82
79
30.585366
0.68
0.08134
0
0.067797
0
0
0.201308
0.159271
0
0
0
0
0
1
0.016949
false
0
0.20339
0
0.220339
0.067797
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64ae4132f882d01178b0d9e0b77c964a7b55c91a
959
py
Python
tests/test_db_access_in_repr.py
bdauvergne/pytest-django
66205b3d6ac21e65fbd3d95f1f541db30a596e53
[ "BSD-3-Clause" ]
967
2015-01-06T14:36:22.000Z
2022-03-29T21:07:03.000Z
tests/test_db_access_in_repr.py
bdauvergne/pytest-django
66205b3d6ac21e65fbd3d95f1f541db30a596e53
[ "BSD-3-Clause" ]
743
2015-01-02T12:20:13.000Z
2022-03-25T17:13:05.000Z
tests/test_db_access_in_repr.py
bdauvergne/pytest-django
66205b3d6ac21e65fbd3d95f1f541db30a596e53
[ "BSD-3-Clause" ]
308
2015-01-08T11:40:23.000Z
2022-03-23T02:53:14.000Z
def test_db_access_with_repr_in_report(django_testdir) -> None: django_testdir.create_test_module( """ import pytest from .app.models import Item def test_via_db_blocker(django_db_setup, django_db_blocker): with django_db_blocker.unblock(): Item.objects....
34.25
73
0.637122
124
959
4.693548
0.508065
0.036082
0.034364
0.041237
0.323024
0.264605
0.264605
0.264605
0.120275
0
0
0.004196
0.254432
959
27
74
35.518519
0.80979
0
0
0.142857
0
0
0.390523
0.109477
0
0
0
0
0.142857
1
0.071429
false
0
0
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64b9710adc87f43f75a6a4f22eff06a3622b0bf8
411
py
Python
interface_blockchain/product/forms.py
kultimovn/interface_blockchain
5e827d7241200c1aed1ca551649a1ef651297032
[ "MIT" ]
null
null
null
interface_blockchain/product/forms.py
kultimovn/interface_blockchain
5e827d7241200c1aed1ca551649a1ef651297032
[ "MIT" ]
null
null
null
interface_blockchain/product/forms.py
kultimovn/interface_blockchain
5e827d7241200c1aed1ca551649a1ef651297032
[ "MIT" ]
null
null
null
from django import forms from .models import Product, Good class GoodForm(forms.ModelForm): def __init__(self, *args, **kwargs): super(GoodForm, self).__init__(*args, **kwargs) class Meta: model = Good fields = ('name', 'options', 'description', 'image', 'tmp_responsibility', 'tmp_amo...
27.4
96
0.620438
42
411
5.809524
0.666667
0.081967
0
0
0
0
0
0
0
0
0
0
0.243309
411
14
97
29.357143
0.784566
0
0
0
0
0
0.177616
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64b97f2e2ba70fea221b6d73b9b60cadc991d3e9
9,219
py
Python
shark/shark/report/warehouse_wise_stock_ageing/warehouse_wise_stock_ageing.py
umaepoch/Shark
2ebf715efba796f96c2d9807bbe930e354606492
[ "MIT" ]
null
null
null
shark/shark/report/warehouse_wise_stock_ageing/warehouse_wise_stock_ageing.py
umaepoch/Shark
2ebf715efba796f96c2d9807bbe930e354606492
[ "MIT" ]
null
null
null
shark/shark/report/warehouse_wise_stock_ageing/warehouse_wise_stock_ageing.py
umaepoch/Shark
2ebf715efba796f96c2d9807bbe930e354606492
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals from operator import itemgetter import frappe from frappe import _ from frappe.utils import cint, date_diff, flt from six import iteritems from erpne...
29.082019
108
0.678599
1,260
9,219
4.711905
0.139683
0.037729
0.014149
0.021897
0.258548
0.183931
0.158329
0.052889
0.028971
0.013812
0
0.021165
0.174856
9,219
317
109
29.082019
0.759301
0.024732
0
0.157088
0
0.003831
0.209238
0.020812
0
0
0
0
0
1
0.042146
false
0
0.02682
0.003831
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64bb99f7ba68e5c75620ffdbf50cc594972bec36
2,652
py
Python
src/nasty_analysis/document/maxqda_coded_nasty.py
lschmelzeisen/nasty-analysis
50e2f2d5f6b8b9649a8c8adba1d94b59f01a8dca
[ "ECL-2.0", "Apache-2.0" ]
2
2020-05-23T19:18:42.000Z
2020-05-26T12:33:44.000Z
src/nasty_analysis/document/maxqda_coded_nasty.py
lschmelzeisen/nasty-analysis
50e2f2d5f6b8b9649a8c8adba1d94b59f01a8dca
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/nasty_analysis/document/maxqda_coded_nasty.py
lschmelzeisen/nasty-analysis
50e2f2d5f6b8b9649a8c8adba1d94b59f01a8dca
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# # Copyright 2019-2020 Lukas Schmelzeisen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
34
82
0.691931
335
2,652
5.268657
0.444776
0.075354
0.045326
0.01813
0
0
0
0
0
0
0
0.006179
0.206637
2,652
77
83
34.441558
0.8327
0.211161
0
0
0
0
0.100674
0.010597
0
0
0
0
0
1
0.037037
false
0
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
0
0
0
0
0
1
0
64bd439f7c8735ddf6edf662567de783df1b760f
6,188
py
Python
mpinterfaces/nanoparticle.py
yw-fang/MPInterfaces
ca2e43b590fdfbcf87a116c5c758e54cb7cb2d2e
[ "MIT" ]
null
null
null
mpinterfaces/nanoparticle.py
yw-fang/MPInterfaces
ca2e43b590fdfbcf87a116c5c758e54cb7cb2d2e
[ "MIT" ]
12
2016-11-07T23:46:01.000Z
2018-08-24T19:00:12.000Z
mpinterfaces/nanoparticle.py
joshgabriel/MPInterfaces
2799ae161fa94c78842092fb24ef468607afa465
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright (c) Henniggroup. # Distributed under the terms of the MIT License. from __future__ import division, print_function, unicode_literals, \ absolute_import """ Wulff construction to create the nanoparticle """ from six.moves import range import itertools from math import gcd from functoo...
36.833333
83
0.626212
747
6,188
4.97992
0.302544
0.060484
0.004032
0.023656
0.027957
0.012903
0.01129
0.01129
0
0
0
0.015176
0.286522
6,188
167
84
37.053892
0.827407
0.136231
0
0
0
0
0.006993
0
0
0
0
0
0
1
0.054348
false
0
0.130435
0
0.217391
0.01087
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64bd7c10430f6a161fe1d2e13a9a45bf6a6cda3c
1,262
py
Python
src/day07.py
birdman74/advent-of-code-2021
190cd4110ef3553258a26c8521bdf372c006a77c
[ "Apache-2.0" ]
null
null
null
src/day07.py
birdman74/advent-of-code-2021
190cd4110ef3553258a26c8521bdf372c006a77c
[ "Apache-2.0" ]
null
null
null
src/day07.py
birdman74/advent-of-code-2021
190cd4110ef3553258a26c8521bdf372c006a77c
[ "Apache-2.0" ]
null
null
null
import os from collections import Counter MODULE_DIR = os.path.dirname(os.path.realpath(__file__)) PROJECT_DIR = os.path.join(MODULE_DIR, "..") INPUT_SOURCE_DIR = os.path.join(PROJECT_DIR, "input") def get_data_lines(input_file_name): input_file = os.path.join(INPUT_SOURCE_DIR, input_file_name) print(f"Inpu...
25.755102
120
0.659271
215
1,262
3.572093
0.311628
0.140625
0.135417
0.058594
0.264323
0.264323
0.169271
0.169271
0.169271
0.075521
0
0.028763
0.173534
1,262
48
121
26.291667
0.707574
0.029319
0
0
0
0
0.129191
0.06296
0
0
0
0
0
1
0.142857
false
0
0.071429
0
0.25
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64bdb2fbf30aa7f6c7c89de13064542fa9d7162e
1,460
py
Python
bin/check_files_yml.py
synesthesiam/voice2json-profiles
4618d121d8d64985deb43d14e2f01b1e12743a18
[ "MIT" ]
10
2020-01-01T09:08:50.000Z
2022-01-09T00:18:33.000Z
bin/check_files_yml.py
synesthesiam/voice2json-profiles
4618d121d8d64985deb43d14e2f01b1e12743a18
[ "MIT" ]
null
null
null
bin/check_files_yml.py
synesthesiam/voice2json-profiles
4618d121d8d64985deb43d14e2f01b1e12743a18
[ "MIT" ]
3
2020-07-25T03:20:21.000Z
2022-01-23T03:56:16.000Z
#!/usr/bin/env python3 """Verifies sizes and sha256 sums for files.yml files.""" import os import subprocess import sys from pathlib import Path import yaml def main(): """Main entry point""" for files_yaml_path in sys.argv[1:]: profile_root = Path(files_yaml_path).parent with open(files_yaml...
31.06383
100
0.584247
181
1,460
4.425414
0.381215
0.078652
0.048689
0.029963
0.054931
0.054931
0
0
0
0
0
0.02004
0.316438
1,460
46
101
31.73913
0.782565
0.084247
0
0.068966
0
0
0.132175
0
0
0
0
0
0.068966
1
0.034483
false
0
0.172414
0
0.206897
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64beb60d078cf10c3f14199bcdc7a0d43c7a432a
1,370
py
Python
witness.py
barryZZJ/dp-finder
ddf8e3589110b4b35920b437d605b45dd56291da
[ "MIT" ]
null
null
null
witness.py
barryZZJ/dp-finder
ddf8e3589110b4b35920b437d605b45dd56291da
[ "MIT" ]
null
null
null
witness.py
barryZZJ/dp-finder
ddf8e3589110b4b35920b437d605b45dd56291da
[ "MIT" ]
null
null
null
from abc import ABC from collections import OrderedDict class Witness(ABC): def __init__(self, a1, a2, s, eps, method, **kwargs): self.meth = method self.a1 = a1 self.a2 = a2 self.s = s self.eps = eps self.kwargs = OrderedDict(kwargs) def get_witness(self): ...
24.909091
57
0.550365
189
1,370
3.783069
0.365079
0.048951
0.022378
0.036364
0
0
0
0
0
0
0
0.026233
0.30438
1,370
55
58
24.909091
0.724029
0.089051
0
0.05
0
0
0.035398
0
0
0
0
0
0
1
0.175
false
0
0.125
0.075
0.475
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64c0a446da789593ff960351a0ce0f86e665e35a
6,873
py
Python
TicTacToe/classes/TicTacToe.py
camilleAmaury/ReinforcementLearning
c5d9ec3f17ca02e84ea3786fa2048b35864fc724
[ "CNRI-Python", "Info-ZIP" ]
null
null
null
TicTacToe/classes/TicTacToe.py
camilleAmaury/ReinforcementLearning
c5d9ec3f17ca02e84ea3786fa2048b35864fc724
[ "CNRI-Python", "Info-ZIP" ]
null
null
null
TicTacToe/classes/TicTacToe.py
camilleAmaury/ReinforcementLearning
c5d9ec3f17ca02e84ea3786fa2048b35864fc724
[ "CNRI-Python", "Info-ZIP" ]
null
null
null
import numpy as np from tqdm import tqdm class TicTacToe(object): # Constructor of the TicTacToe class # <Params name="player1" type="Agent">The first player</Params> # <Params name="player2" type="Agent">The second player</Params> # <Params name="rewards" type="object"> # <Contains key="w...
45.217105
112
0.559144
897
6,873
4.142698
0.16388
0.092034
0.055974
0.077503
0.636168
0.581539
0.535791
0.458019
0.422766
0.344187
0
0.021697
0.322712
6,873
152
113
45.217105
0.776584
0.279645
0
0.381443
0
0
0.050672
0
0
0
0
0
0
1
0.103093
false
0
0.020619
0.010309
0.175258
0.041237
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64c0d45dc9b180f6c1dd6f97a24cb3227649d735
9,780
py
Python
poem/cv_mim/action_recognition/train_with_encoder_base.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
poem/cv_mim/action_recognition/train_with_encoder_base.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
poem/cv_mim/action_recognition/train_with_encoder_base.py
admariner/google-research
7cee4b22b925581d912e8d993625c180da2a5a4f
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # 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.760618
80
0.720143
1,251
9,780
5.353317
0.258193
0.031208
0.021502
0.007765
0.122742
0.05271
0.031059
0.008959
0
0
0
0.011641
0.191922
9,780
258
81
37.906977
0.835759
0.129346
0
0.04023
0
0
0.176199
0.029011
0
0
0
0
0
1
0.011494
false
0
0.068966
0
0.086207
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64c210806c5cc219f6c4e3fa272f46558ce9bbfc
1,216
py
Python
misc/get_magnitude.py
cinjon/ml-capsules-inverted-attention-routing
978b0f58eba1007bcef0b6cb045f3d2040f76a31
[ "AML" ]
null
null
null
misc/get_magnitude.py
cinjon/ml-capsules-inverted-attention-routing
978b0f58eba1007bcef0b6cb045f3d2040f76a31
[ "AML" ]
null
null
null
misc/get_magnitude.py
cinjon/ml-capsules-inverted-attention-routing
978b0f58eba1007bcef0b6cb045f3d2040f76a31
[ "AML" ]
null
null
null
import os import json import argparse import numpy as np from glob import glob from multiprocessing import Pool parser = argparse.ArgumentParser() parser.add_argument( "--root", default="/misc/kcgscratch1/ChoGroup/resnick/spaceofmotion/flows", type=str) parser.add_argument( "--store_dir", default="...
29.658537
73
0.629934
169
1,216
4.390533
0.402367
0.040431
0.040431
0.080863
0.328841
0.274933
0.072776
0.072776
0.072776
0
0
0.010384
0.208059
1,216
40
74
30.4
0.760125
0.11102
0
0.129032
0
0
0.140465
0.094884
0
0
0
0
0
1
0.032258
false
0
0.193548
0
0.258065
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64c2188244333a65c7be325fa85c1fffbc0b6a2e
1,171
py
Python
libs/core/setup.py
ggsdc/corn
4c17c46a70f95b8882bcb6a55ef7daa1f69e0456
[ "MIT" ]
2
2020-07-09T20:58:47.000Z
2020-07-20T20:40:46.000Z
libs/core/setup.py
baobabsoluciones/cornflow
bd7cae22107e5fe148704d5f41d4f58f9c410b40
[ "Apache-2.0" ]
2
2022-03-31T08:42:10.000Z
2022-03-31T12:05:23.000Z
libs/core/setup.py
ggsdc/corn
4c17c46a70f95b8882bcb6a55ef7daa1f69e0456
[ "MIT" ]
null
null
null
import setuptools with open("README.rst") as fh: long_description = fh.read() required = [] with open("requirements.txt", "r") as fh: required.append(fh.read().splitlines()) setuptools.setup( name="cornflow-core", version="0.0.3a11", author="baobab soluciones", author_email="sistemas@baobabso...
32.527778
97
0.680615
134
1,171
5.738806
0.634328
0.078023
0.070221
0.078023
0
0
0
0
0
0
0
0.009544
0.194705
1,171
35
98
33.457143
0.805938
0
0
0
0
0
0.458582
0.121264
0
0
0
0
0
1
0
false
0
0.03125
0
0.03125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64c313cfd9b762378f88f2ab75f1f1485ab4f677
17,890
py
Python
quex/output/analyzer/lexeme_converter.py
smmckay/quex-mirror
7d75ed560e9f3a591935e59243188676eecb112a
[ "MIT" ]
null
null
null
quex/output/analyzer/lexeme_converter.py
smmckay/quex-mirror
7d75ed560e9f3a591935e59243188676eecb112a
[ "MIT" ]
null
null
null
quex/output/analyzer/lexeme_converter.py
smmckay/quex-mirror
7d75ed560e9f3a591935e59243188676eecb112a
[ "MIT" ]
null
null
null
"""PURPOSE: Converters: Lexemes towards encodings UTF8/UTF16/UTF32. During exical analysis matches delivers lexemes in the encoding of the buffer. The functions develops converters of those lexemes to standard encodings, so that they can easily be reflected. Let 'Character' be a character in the buffer's encoding, '...
41.896956
110
0.578927
1,968
17,890
4.991362
0.192581
0.022804
0.021073
0.010995
0.268553
0.220605
0.13784
0.114833
0.079711
0.051308
0
0.03498
0.325657
17,890
426
111
41.995305
0.779261
0.253102
0
0.194444
0
0
0.093684
0.011214
0
0
0.011526
0
0.015873
1
0.095238
false
0
0.047619
0.02381
0.253968
0.015873
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64c6ded8ce35837ed8c633aa32ede13e3f7ab314
9,500
py
Python
code/reasoningtool/QueryBioLink.py
dkoslicki/NCATS
5d8e38d5868d830d8f8c215b8c649e3979ca03fb
[ "MIT" ]
2
2018-02-26T19:16:26.000Z
2020-12-16T03:31:58.000Z
code/reasoningtool/QueryBioLink.py
dkoslicki/NCATS
5d8e38d5868d830d8f8c215b8c649e3979ca03fb
[ "MIT" ]
17
2017-12-09T01:13:20.000Z
2018-03-06T02:17:32.000Z
code/reasoningtool/QueryBioLink.py
dkoslicki/NCATS
5d8e38d5868d830d8f8c215b8c649e3979ca03fb
[ "MIT" ]
null
null
null
''' This module defines the class QueryBioLink. QueryBioLink class is designed to communicate with Monarch APIs and their corresponding data sources. The available methods include: * query phenotype for disease * query disease for gene * query gene for disease * query phenotype for gene * query gene...
39.915966
124
0.666211
1,191
9,500
4.97649
0.126784
0.029526
0.05399
0.044036
0.714864
0.55863
0.509701
0.453518
0.353805
0.338451
0
0.016346
0.233684
9,500
237
125
40.084388
0.797802
0.108842
0
0.443787
0
0
0.192974
0.096308
0
0
0
0
0.005917
1
0.065089
false
0
0.011834
0
0.218935
0.159763
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64c72ead265362a6fd2cf5c37958f0fa44622e3f
7,319
py
Python
tb_auto_publsh/publish_product.py
sinalma/taobao_tools
222800ccd808ef4bbbcbcffc6b3f4fde133d8685
[ "MIT" ]
null
null
null
tb_auto_publsh/publish_product.py
sinalma/taobao_tools
222800ccd808ef4bbbcbcffc6b3f4fde133d8685
[ "MIT" ]
null
null
null
tb_auto_publsh/publish_product.py
sinalma/taobao_tools
222800ccd808ef4bbbcbcffc6b3f4fde133d8685
[ "MIT" ]
null
null
null
import os from selenium import webdriver driver = webdriver.Chrome("D:/Programming/python/chromedriver.exe") driver.maximize_window() from os import path from selenium.webdriver.common.action_chains import ActionChains from selenium.common.exceptions import UnexpectedAlertPresentException import time,unittest, re fro...
35.357488
148
0.704741
933
7,319
5.353698
0.239014
0.054655
0.078078
0.041842
0.606607
0.564164
0.466867
0.419419
0.378378
0.335135
0
0.067068
0.13827
7,319
206
149
35.529126
0.724909
0.134445
0
0.404255
0
0.014184
0.25
0.032161
0
0
0
0
0
1
0.078014
false
0
0.049645
0
0.148936
0.014184
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64cc5aac32b4fc2a5556f4d550730a0acdbd74d3
5,781
py
Python
sailor/assetcentral/workorder.py
gecko17/project-sailor
7a35eeec2a6a8ec9bc998e39e8ffad4703cec5d7
[ "Apache-2.0" ]
19
2021-03-02T12:27:48.000Z
2022-03-31T15:24:41.000Z
sailor/assetcentral/workorder.py
gecko17/project-sailor
7a35eeec2a6a8ec9bc998e39e8ffad4703cec5d7
[ "Apache-2.0" ]
75
2021-03-04T16:58:47.000Z
2022-03-31T08:31:06.000Z
sailor/assetcentral/workorder.py
gecko17/project-sailor
7a35eeec2a6a8ec9bc998e39e8ffad4703cec5d7
[ "Apache-2.0" ]
2
2021-11-08T12:45:05.000Z
2022-02-27T18:42:13.000Z
""" Workorder module can be used to retrieve Workorder information from AssetCentral. Classes are provided for individual Workorders as well as groups of Workorders (WorkorderSet). """ from sailor import _base from ..utils.timestamps import _string_to_timestamp_parser from .constants import VIEW_WORKORDERS from .util...
43.141791
116
0.733437
589
5,781
6.872666
0.36163
0.020751
0.020998
0.028409
0.141057
0.132411
0.104743
0.060277
0.060277
0.031621
0
0.005371
0.162602
5,781
133
117
43.466165
0.83082
0.331431
0
0.030303
0
0
0.284406
0.027202
0
0
0
0
0
1
0.015152
false
0
0.060606
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64cc7a5f5c43f80efef521c2171660053264a4c7
796
py
Python
widgets2/pixmap.py
gnthibault/PyQt6-Tutorial-Examples
c54819f74154de923df0bdfaa302d62b4bad890b
[ "BSD-2-Clause" ]
38
2021-05-18T07:47:54.000Z
2022-03-31T13:10:41.000Z
widgets2/pixmap.py
gnthibault/PyQt6-Tutorial-Examples
c54819f74154de923df0bdfaa302d62b4bad890b
[ "BSD-2-Clause" ]
3
2021-08-03T03:49:42.000Z
2021-09-09T08:09:23.000Z
widgets2/pixmap.py
gnthibault/PyQt6-Tutorial-Examples
c54819f74154de923df0bdfaa302d62b4bad890b
[ "BSD-2-Clause" ]
16
2021-06-12T11:25:58.000Z
2022-03-05T07:43:10.000Z
#!/usr/bin/python """ ZetCode PyQt6 tutorial In this example, we display an image on the window. Author: Jan Bodnar Website: zetcode.com """ from PyQt6.QtWidgets import (QWidget, QHBoxLayout, QLabel, QApplication) from PyQt6.QtGui import QPixmap import sys class Example(QWidget): def __init__(self): ...
15.307692
50
0.614322
94
796
5.031915
0.617021
0.038055
0
0
0
0
0
0
0
0
0
0.015385
0.265075
796
51
51
15.607843
0.793162
0.167085
0
0
0
0
0.027481
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.291667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64ce6f6efb2fdb2724c45647b09d052115673dcc
3,423
py
Python
scripts/get_dataset100.py
AShedko/UIR8_im2gps
f4a7adb7e632b42a306ebdfbffb8a3843d43a594
[ "MIT" ]
1
2020-11-12T11:46:30.000Z
2020-11-12T11:46:30.000Z
scripts/get_dataset100.py
AShedko/UIR8_im2gps
f4a7adb7e632b42a306ebdfbffb8a3843d43a594
[ "MIT" ]
null
null
null
scripts/get_dataset100.py
AShedko/UIR8_im2gps
f4a7adb7e632b42a306ebdfbffb8a3843d43a594
[ "MIT" ]
null
null
null
import math import os import random import sys from multiprocessing.pool import ThreadPool import urllib import file_util import pandas as pd ds = pd.read_csv("../data/simplemaps-worldcities-basic.csv") # Heuristically select from DB cities likely to be on google maps cities = ds[ds["pop"]>20000][ds....
36.414894
103
0.646217
488
3,423
4.366803
0.368852
0.022994
0.023463
0.01267
0.075551
0.066166
0.05725
0
0
0
0
0.020183
0.232837
3,423
93
104
36.806452
0.791318
0.189308
0
0
0
0
0.130206
0.049531
0
0
0
0
0
1
0.032787
false
0
0.131148
0
0.163934
0.032787
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64cf331bf3aec4cd73fb15b8c3551c47a61671fb
1,501
py
Python
mistral/auth/keystone.py
soda-research/mistral
550a3de9c2defc7ce26336cb705d9c8d87bbaddd
[ "Apache-2.0" ]
205
2015-06-21T11:51:47.000Z
2022-03-05T04:00:04.000Z
mistral/auth/keystone.py
soda-research/mistral
550a3de9c2defc7ce26336cb705d9c8d87bbaddd
[ "Apache-2.0" ]
21
2015-04-14T22:41:53.000Z
2019-02-20T09:30:10.000Z
mistral/auth/keystone.py
soda-research/mistral
550a3de9c2defc7ce26336cb705d9c8d87bbaddd
[ "Apache-2.0" ]
110
2015-06-14T03:34:38.000Z
2021-11-11T12:12:56.000Z
# Copyright 2016 - Brocade Communications Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
34.906977
78
0.691539
193
1,501
5.341969
0.580311
0.058196
0.037827
0.040737
0.054316
0.054316
0
0
0
0
0
0.00692
0.229847
1,501
42
79
35.738095
0.884948
0.507662
0
0
0
0
0.182825
0.034626
0
0
0
0
0
1
0.0625
false
0
0.1875
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64d17a7f9f6e04f18e7fe0677f5b3c4e404da64e
1,587
py
Python
integrationtests/utils_tests.py
landcast/flaskseed
15b73fef7345e8c05c4b6efe26c889f9818fabe3
[ "Apache-2.0" ]
null
null
null
integrationtests/utils_tests.py
landcast/flaskseed
15b73fef7345e8c05c4b6efe26c889f9818fabe3
[ "Apache-2.0" ]
1
2018-10-21T14:28:46.000Z
2018-10-21T14:28:46.000Z
integrationtests/utils_tests.py
landcast/flaskseed
15b73fef7345e8c05c4b6efe26c889f9818fabe3
[ "Apache-2.0" ]
null
null
null
import json import re import subprocess import sys import unittest sys.path.append('.') from integrationtests import TestBase, json_header, server_location class CourseTest(TestBase): def test_course(self): url = f'{server_location}/test/add_account_single_session' json_data = "'" + json.dumps(...
31.117647
76
0.558286
180
1,587
4.688889
0.405556
0.037915
0.023697
0.042654
0.545024
0.545024
0.545024
0.469194
0.469194
0.372038
0
0.031475
0.299307
1,587
50
77
31.74
0.727518
0
0
0.47619
0
0.047619
0.321991
0.061752
0
0
0
0
0.071429
1
0.02381
false
0
0.142857
0
0.190476
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64d2c172df3283a327a114c985bcc7b09bf329f7
5,309
py
Python
scripts/evalutate_excell_data_condition_study.py
llucid-97/AdaS
298beca98d5b432460c9f268364c0fe7ce8323a6
[ "MIT" ]
1
2020-06-12T17:14:31.000Z
2020-06-12T17:14:31.000Z
scripts/evalutate_excell_data_condition_study.py
llucid-97/AdaS
298beca98d5b432460c9f268364c0fe7ce8323a6
[ "MIT" ]
1
2020-08-12T21:10:48.000Z
2020-08-12T21:10:48.000Z
scripts/evalutate_excell_data_condition_study.py
llucid-97/AdaS
298beca98d5b432460c9f268364c0fe7ce8323a6
[ "MIT" ]
3
2020-06-17T21:51:16.000Z
2020-07-23T03:26:13.000Z
""" MIT License Copyright (c) 2020 Mahdi S. Hosseini 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, mer...
41.476563
140
0.680542
864
5,309
4.027778
0.236111
0.045977
0.045977
0.036207
0.517529
0.455172
0.40977
0.317816
0.293103
0.280172
0
0.039128
0.162366
5,309
127
141
41.80315
0.743423
0.353927
0
0.36
0
0
0.072278
0
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64d4eca2a01366e3a22a289ad383de96073f8bac
1,286
py
Python
var/spack/repos/builtin/packages/netcdf-fortran/package.py
mrzv/spack
a0fb2838ea60f020179f480a2db1438da9d2e2ab
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2018-11-27T03:39:44.000Z
2021-09-06T15:50:35.000Z
var/spack/repos/builtin/packages/netcdf-fortran/package.py
matzke1/spack
9af44814b12639744926c56cdf16ac9e95490011
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/netcdf-fortran/package.py
matzke1/spack
9af44814b12639744926c56cdf16ac9e95490011
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class NetcdfFortran(AutotoolsPackage): """Fortran interface for NetCDF4""" homepage = "http...
32.974359
93
0.688958
162
1,286
5.425926
0.67284
0.013652
0.031854
0.040956
0.047782
0
0
0
0
0
0
0.059788
0.193624
1,286
38
94
33.842105
0.78785
0.341369
0
0
0
0.055556
0.302158
0.076739
0
0
0
0
0
1
0.111111
false
0
0.055556
0.055556
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64d5db1f326dd6948ae5b6aa2e86f60f45afe760
2,293
py
Python
tests/db/test_v5_to_v6.py
inmanta/inmanta-core
ae2153d57f124d00ad1b58e6d4bc6818364be4a8
[ "Apache-2.0" ]
6
2021-03-09T10:24:02.000Z
2022-01-16T03:52:11.000Z
tests/db/test_v5_to_v6.py
inmanta/inmanta-core
ae2153d57f124d00ad1b58e6d4bc6818364be4a8
[ "Apache-2.0" ]
1,319
2020-12-18T08:52:29.000Z
2022-03-31T18:17:32.000Z
tests/db/test_v5_to_v6.py
inmanta/inmanta-core
ae2153d57f124d00ad1b58e6d4bc6818364be4a8
[ "Apache-2.0" ]
4
2021-03-03T15:36:50.000Z
2022-03-11T11:41:51.000Z
""" Copyright 2020 Inmanta Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
34.742424
105
0.73659
318
2,293
5.160377
0.496855
0.036563
0.06947
0.0195
0.075564
0
0
0
0
0
0
0.008663
0.194505
2,293
65
106
35.276923
0.879805
0.355866
0
0
0
0
0.096596
0.038638
0
0
0
0
0.12
1
0
false
0
0.24
0
0.24
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64d944653978f4300eb65aebe5ed000c73c7f7d4
6,840
py
Python
is_data_handler.py
AlexanderFengler/nn_likelihoods
2d0f63a63eb50f026b9492acba14708b23dfcaa4
[ "MIT" ]
2
2019-08-19T15:48:01.000Z
2020-03-13T12:47:23.000Z
is_data_handler.py
AlexanderFengler/nn_likelihoods
2d0f63a63eb50f026b9492acba14708b23dfcaa4
[ "MIT" ]
null
null
null
is_data_handler.py
AlexanderFengler/nn_likelihoods
2d0f63a63eb50f026b9492acba14708b23dfcaa4
[ "MIT" ]
6
2019-06-13T04:46:51.000Z
2021-01-27T18:26:59.000Z
import os import pickle import numpy as np import re from string import ascii_letters from datetime import datetime import argparse import gzip def collect_datasets_is(folder = [], model = [], ndata = [], nsubsample = []): # Load in param...
44.705882
213
0.575585
781
6,840
4.723432
0.207426
0.063432
0.041475
0.043914
0.532665
0.499593
0.462185
0.391434
0.391434
0.364055
0
0.011722
0.276608
6,840
153
214
44.705882
0.733832
0.029825
0
0.175
0
0
0.280501
0.148394
0
0
0
0
0
1
0.008333
false
0
0.091667
0
0.108333
0.075
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64da409d0683b2127b58982d077ae000d035597d
9,239
py
Python
apps/api/tests/test_user.py
onyxhealth/safhir-vmi
60ba90e9e8ba00347e0dc32e3061da5285df4ade
[ "Apache-2.0" ]
null
null
null
apps/api/tests/test_user.py
onyxhealth/safhir-vmi
60ba90e9e8ba00347e0dc32e3061da5285df4ade
[ "Apache-2.0" ]
9
2021-03-19T11:43:09.000Z
2022-03-12T00:38:43.000Z
apps/api/tests/test_user.py
onyxhealth/safhir-vmi
60ba90e9e8ba00347e0dc32e3061da5285df4ade
[ "Apache-2.0" ]
null
null
null
from datetime import date from django.contrib.auth import get_user_model from django.test import Client from oauth2_provider.models import get_application_model, get_access_token_model from apps.accounts.models import UserProfile from .base import BaseTestCase User = get_user_model() Application = get_application_mode...
39.652361
98
0.535556
895
9,239
5.415642
0.175419
0.047039
0.024139
0.07778
0.667836
0.643078
0.623891
0.580978
0.580978
0.580978
0
0.036556
0.324927
9,239
232
99
39.823276
0.74058
0.075874
0
0.56
0
0
0.21141
0.019955
0
0
0
0
0.11
1
0.025
false
0.02
0.03
0
0.06
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64da7ea65369f204e730539cae624275e47b12c4
5,094
py
Python
context/app/routes_auth.py
schwenk102/portal-ui
b40fd10e2d6568a9c419c06ba0759da295035cbd
[ "MIT" ]
null
null
null
context/app/routes_auth.py
schwenk102/portal-ui
b40fd10e2d6568a9c419c06ba0759da295035cbd
[ "MIT" ]
null
null
null
context/app/routes_auth.py
schwenk102/portal-ui
b40fd10e2d6568a9c419c06ba0759da295035cbd
[ "MIT" ]
null
null
null
from urllib.parse import urlencode from flask import ( Blueprint, make_response, current_app, url_for, request, redirect, render_template, session) import requests import globus_sdk # This is mostly copy-and-paste from # https://globus-sdk-python.readthedocs.io/en/stable/examples/three_legged_oauth/ bluepr...
35.131034
97
0.667452
660
5,094
4.972727
0.345455
0.036563
0.0195
0.017367
0.121572
0.08897
0.024375
0
0
0
0
0.005645
0.234982
5,094
144
98
35.375
0.836541
0.296427
0
0.068966
0
0
0.207536
0.051955
0
0
0
0
0
1
0.045977
false
0
0.045977
0.011494
0.172414
0.045977
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64daf61f1b459c77ae842abee1c37e78d14fc111
8,283
py
Python
neutron_taas/tests/unit/taas_client/osc/test_osc_tap_service.py
openstack/tap-as-a-service
c9d046843565b3af514169c26e5893dbe86a9b98
[ "Apache-2.0" ]
68
2015-10-18T02:57:10.000Z
2022-02-22T11:33:25.000Z
neutron_taas/tests/unit/taas_client/osc/test_osc_tap_service.py
openstack/tap-as-a-service
c9d046843565b3af514169c26e5893dbe86a9b98
[ "Apache-2.0" ]
null
null
null
neutron_taas/tests/unit/taas_client/osc/test_osc_tap_service.py
openstack/tap-as-a-service
c9d046843565b3af514169c26e5893dbe86a9b98
[ "Apache-2.0" ]
27
2015-11-11T02:00:35.000Z
2020-03-07T03:36:33.000Z
# All Rights Reserved 2020 # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
36.013043
79
0.645056
987
8,283
5.08612
0.175279
0.143426
0.069721
0.030478
0.585857
0.559363
0.519721
0.453785
0.429482
0.373705
0
0.0026
0.257032
8,283
229
80
36.170306
0.81313
0.083907
0
0.375758
0
0
0.03404
0
0
0
0
0
0.084848
1
0.066667
false
0
0.054545
0.006061
0.175758
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64dc127b8f61573f77c1944fb95158b8208f8c2e
600
py
Python
auth/Auth.py
fede-da/PageDownloader
2344e2307ea374690ba05923056fff9e59c9ad12
[ "MIT" ]
null
null
null
auth/Auth.py
fede-da/PageDownloader
2344e2307ea374690ba05923056fff9e59c9ad12
[ "MIT" ]
null
null
null
auth/Auth.py
fede-da/PageDownloader
2344e2307ea374690ba05923056fff9e59c9ad12
[ "MIT" ]
null
null
null
from auth.pwdLine import PwdLine from auth.userLine import UserLine from auth.enabler import Enabler from tkinter import Tk class Auth: ul: UserLine pl: PwdLine en: Enabler def __init__(self, tk: Tk, row: int, col: int, w: int): self.ul = UserLine("disabled", tk, row+1, col, w) self.p...
27.272727
59
0.598333
84
600
4.22619
0.345238
0.056338
0.073239
0
0
0
0
0
0
0
0
0.004525
0.263333
600
21
60
28.571429
0.798643
0
0
0
0
0
0.04
0
0
0
0
0
0
1
0.117647
false
0
0.235294
0
0.705882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64dd3848949598fcdf3c2e10b7873c7391e20401
782
py
Python
setup.py
soulless-viewer/w3cpull
acc5a564564a2cd256cc32f598f4551c70c17775
[ "MIT" ]
1
2020-11-19T21:09:00.000Z
2020-11-19T21:09:00.000Z
setup.py
soulless-viewer/w3cpull
acc5a564564a2cd256cc32f598f4551c70c17775
[ "MIT" ]
null
null
null
setup.py
soulless-viewer/w3cpull
acc5a564564a2cd256cc32f598f4551c70c17775
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open('README.md', encoding='utf-8') as f: readme = f.read() setup( name="w3cpull", version="1.1.1", author="Mikalai Lisitsa", author_email="Mikalai.Lisitsa@ibm.com", url="https://github.com/soulless-viewer/w3cpull", description="w3cpull is a...
27.928571
86
0.640665
101
782
4.851485
0.673267
0.04898
0
0
0
0
0
0
0
0
0
0.044872
0.202046
782
27
87
28.962963
0.740385
0
0
0
0
0
0.375959
0.029412
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64dd62196969f76ce749b40ce7bdcc2fcddb001f
2,341
py
Python
noel/noel/main.py
jonparrott/noel
48d54df340efbcff00ba0c2db587301199fbc572
[ "Apache-2.0" ]
66
2016-02-11T04:22:52.000Z
2018-01-14T22:03:55.000Z
noel/noel/main.py
theacodes/noel
48d54df340efbcff00ba0c2db587301199fbc572
[ "Apache-2.0" ]
null
null
null
noel/noel/main.py
theacodes/noel
48d54df340efbcff00ba0c2db587301199fbc572
[ "Apache-2.0" ]
8
2016-03-26T06:21:17.000Z
2018-04-23T13:47:38.000Z
# Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
33.442857
80
0.70739
309
2,341
5.229773
0.420712
0.054455
0.086634
0.042079
0.07302
0.042079
0
0
0
0
0
0.006421
0.201623
2,341
69
81
33.927536
0.858213
0.300726
0
0.146341
0
0
0.253416
0
0
0
0
0
0
1
0.04878
false
0
0.121951
0
0.170732
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b379b19bf85788ca37275f4904081e4ad7396d67
567
py
Python
bkmus_api/bkmus_copyr.py
mbakija/bkmuseum_xstitch_bot
07de75a23d48fafae34ebda60a82ba9973386be1
[ "MIT" ]
1
2020-11-24T05:47:55.000Z
2020-11-24T05:47:55.000Z
bkmus_api/bkmus_copyr.py
mbakija/bkmuseum_xstitch_bot
07de75a23d48fafae34ebda60a82ba9973386be1
[ "MIT" ]
null
null
null
bkmus_api/bkmus_copyr.py
mbakija/bkmuseum_xstitch_bot
07de75a23d48fafae34ebda60a82ba9973386be1
[ "MIT" ]
null
null
null
# print copyright restrictions: 0 = not restricted, 1 = in copyright # that said, several pieces (particularly in Contemporary Art collection) # do have copyright notices on them even if copyright restrictions == 0 # sorting by "rights_type": "name" might be more clarifying, but the number of # But I'd argue this use ...
37.8
79
0.75485
87
567
4.896552
0.735632
0.098592
0.103286
0
0
0
0
0
0
0
0
0.006369
0.169312
567
14
80
40.5
0.898089
0.753086
0
0
0
0
0.308271
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b379e885d5afb3236202408bc7d3c8933c443206
1,243
py
Python
parseq/scripts_insert/util.py
lukovnikov/parseq
65a4a2444d78779c3255e70a7897f77e73cdcdda
[ "MIT" ]
1
2022-01-21T16:08:08.000Z
2022-01-21T16:08:08.000Z
parseq/scripts_insert/util.py
lukovnikov/parseq
65a4a2444d78779c3255e70a7897f77e73cdcdda
[ "MIT" ]
null
null
null
parseq/scripts_insert/util.py
lukovnikov/parseq
65a4a2444d78779c3255e70a7897f77e73cdcdda
[ "MIT" ]
1
2020-08-19T07:09:44.000Z
2020-08-19T07:09:44.000Z
from nltk import Tree from parseq.grammar import tree_to_lisp_tokens def reorder_tree(x:Tree, orderless=None, typestr="arg:~type"): """ Reorders given tree 'x' such that if a parent label is in 'orderless', the order of the children is always as follows: - arg:~type goes first - other children are or...
36.558824
122
0.617056
178
1,243
4.235955
0.376404
0.033157
0.046419
0.047745
0.129973
0.087533
0.087533
0.087533
0.087533
0
0
0.004405
0.269509
1,243
34
123
36.558824
0.825991
0.19469
0
0.090909
0
0
0.019507
0
0
0
0
0
0.090909
1
0.090909
false
0
0.090909
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b37bde647afa0d22b730a31da03c3321ccc70480
3,887
py
Python
r_desktop.py
mtiday/open_remote_desktop_with_python
25dd0abed91cf45a7a1bd4961afec4cdcee1b039
[ "MIT" ]
null
null
null
r_desktop.py
mtiday/open_remote_desktop_with_python
25dd0abed91cf45a7a1bd4961afec4cdcee1b039
[ "MIT" ]
null
null
null
r_desktop.py
mtiday/open_remote_desktop_with_python
25dd0abed91cf45a7a1bd4961afec4cdcee1b039
[ "MIT" ]
null
null
null
"""This program will open a connection to a server you choose from a list, or specify a name not on the list. Build a text file named servers.txt and save it in the same directory this program is ran from. Please make sure not to have any extra spaces before or at the end of the name of the servers. One name per li...
35.66055
79
0.655518
563
3,887
4.358792
0.309059
0.066015
0.079462
0.041565
0.259576
0.182559
0.153219
0.072535
0
0
0
0.004893
0.263957
3,887
108
80
35.990741
0.852849
0.361976
0
0.163636
0
0
0.219512
0.037892
0
0
0
0
0
1
0.090909
false
0
0.036364
0
0.181818
0.272727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b37c92749148846755c132fe23eebba1cdbf7a9a
10,069
py
Python
external_apps/oauth/__init__.py
spreeker/democracygame
525139955cb739c295051f317ab670049511bcf8
[ "BSD-3-Clause" ]
2
2016-05-09T04:57:34.000Z
2017-03-03T14:22:24.000Z
external_apps/oauth/__init__.py
spreeker/democracygame
525139955cb739c295051f317ab670049511bcf8
[ "BSD-3-Clause" ]
null
null
null
external_apps/oauth/__init__.py
spreeker/democracygame
525139955cb739c295051f317ab670049511bcf8
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 import collections import random import time import urllib import urlparse from urlencoding import escape, parse_qs, compose_qs OAUTH_VERSION = '1.0' TIMESTAMP_THRESHOLD = 300 NONCE_LENGTH = 10 class OAuthError(RuntimeError): """ Generic OAuthError for all error cases. """ pass clas...
34.961806
149
0.614063
1,145
10,069
5.269869
0.217467
0.033146
0.026516
0.014915
0.346371
0.308916
0.2824
0.267484
0.223401
0.223401
0
0.006203
0.295561
10,069
287
150
35.083624
0.844495
0.487039
0
0.064516
0
0
0.120442
0.015761
0
0
0
0.003484
0
1
0.086022
false
0.010753
0.064516
0
0.225806
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b37cd0f3a91feee812c43f65e8c47aeebe21eb18
5,244
py
Python
Pneumonia_Detection.py
sachin7695/Pneumonia_Diagnosis_using_XRays
5192f4d79efba1abc3684cb85e02b46a0b508ee2
[ "MIT" ]
null
null
null
Pneumonia_Detection.py
sachin7695/Pneumonia_Diagnosis_using_XRays
5192f4d79efba1abc3684cb85e02b46a0b508ee2
[ "MIT" ]
null
null
null
Pneumonia_Detection.py
sachin7695/Pneumonia_Diagnosis_using_XRays
5192f4d79efba1abc3684cb85e02b46a0b508ee2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Conv2D, MaxPooling2D, Dense,Flatten, Dropout,BatchNormalization, GlobalAveragePooling2D, ZeroPadding2D from keras.preprocessing.image import ImageDataGenerator, load_img, img_to_array fr...
22.899563
138
0.687071
791
5,244
4.409608
0.286979
0.025229
0.012901
0.025229
0.298739
0.287557
0.261181
0.198968
0.198968
0.116686
0
0.048528
0.15122
5,244
228
139
23
0.735116
0.054157
0
0.151786
0
0
0.11395
0.03528
0
0
0
0
0
1
0
false
0
0.116071
0
0.116071
0.098214
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b37f2c8f6aee924b36740ecfe3b5cc25e0a3af9c
448
py
Python
masters/master.client.syzygy/master_source_cfg.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
null
null
null
masters/master.client.syzygy/master_source_cfg.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
null
null
null
masters/master.client.syzygy/master_source_cfg.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
1
2020-07-23T11:05:06.000Z
2020-07-23T11:05:06.000Z
# Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from master.chromium_git_poller_bb8 import ChromiumGitPoller def Update(config, active_master, c): syzygy_poller = ChromiumGitPoller( repourl='...
32
72
0.75
63
448
5.222222
0.777778
0.072948
0
0
0
0
0
0
0
0
0
0.018568
0.158482
448
13
73
34.461538
0.854111
0.354911
0
0
0
0
0.192982
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b381335b767782ee84683c89db68147a9099b797
861
py
Python
udemy_pyspark/min-temperatures.py
XC-Li/Hadoop_Spark_Practice
e34b51874ebf81ae9ba7e4c3ccd864580920c525
[ "MIT" ]
null
null
null
udemy_pyspark/min-temperatures.py
XC-Li/Hadoop_Spark_Practice
e34b51874ebf81ae9ba7e4c3ccd864580920c525
[ "MIT" ]
null
null
null
udemy_pyspark/min-temperatures.py
XC-Li/Hadoop_Spark_Practice
e34b51874ebf81ae9ba7e4c3ccd864580920c525
[ "MIT" ]
null
null
null
from pyspark import SparkConf, SparkContext conf = SparkConf().setMaster("local").setAppName("MinTemperatures") sc = SparkContext(conf = conf) def parseLine(line): fields = line.split(',') stationID = fields[0] entryType = fields[2] temperature = float(fields[3]) * 0.1 * (9.0 / 5.0) + 32.0 return ...
39.136364
90
0.699187
122
861
4.909836
0.606557
0.035058
0
0
0
0
0
0
0
0
0
0.031378
0.148664
861
21
91
41
0.785812
0.11266
0
0
0
0
0.126482
0.081686
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.176471
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b382df3f6b2858f533490ca2d78d4ad6529491c4
6,122
py
Python
src/polyswarmd/app.py
polyswarm/polyswarmd
b732d60f0f829cc355c1f938bbe6de69f9985098
[ "MIT" ]
14
2018-04-16T18:04:23.000Z
2019-11-26T06:39:23.000Z
src/polyswarmd/app.py
polyswarm/polyswarmd
b732d60f0f829cc355c1f938bbe6de69f9985098
[ "MIT" ]
227
2018-04-03T01:10:34.000Z
2021-03-25T21:49:58.000Z
src/polyswarmd/app.py
polyswarm/polyswarmd
b732d60f0f829cc355c1f938bbe6de69f9985098
[ "MIT" ]
2
2018-04-23T18:37:47.000Z
2021-04-26T10:58:39.000Z
""" isort:skip_file """ from concurrent.futures import ThreadPoolExecutor from requests_futures.sessions import FuturesSession from polyswarmd.monkey import patch_all patch_all() import datetime import functools import logging from flask import Flask, g, request from flask_caching import Cache from polyswarmd.c...
30.61
99
0.703692
799
6,122
5.180225
0.244055
0.023194
0.036241
0.006765
0.231457
0.161633
0.144721
0.144721
0.103165
0.08577
0
0.005473
0.194218
6,122
199
100
30.763819
0.83357
0.046553
0
0.142857
0
0
0.099485
0.017182
0
0
0
0
0
1
0.078571
false
0
0.142857
0.014286
0.35
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3838e5127349f4a28ab146728a622c8c9ad0a50
9,702
py
Python
script/AWS_EC2_info_to_FMC.py
tekgourou/AWS_EC2_CONTEXT_to_FMC
777df7e5acd96cdab0b65eda1c8b9c54f4d477c2
[ "Apache-2.0" ]
3
2020-06-29T17:23:16.000Z
2021-08-18T05:47:53.000Z
script/AWS_EC2_info_to_FMC.py
tekgourou/AWS_EC2_CONTEXT_to_FMC
777df7e5acd96cdab0b65eda1c8b9c54f4d477c2
[ "Apache-2.0" ]
null
null
null
script/AWS_EC2_info_to_FMC.py
tekgourou/AWS_EC2_CONTEXT_to_FMC
777df7e5acd96cdab0b65eda1c8b9c54f4d477c2
[ "Apache-2.0" ]
null
null
null
#!/bin/env python ''' PURPOSE: THIS SCRIPT IMPORTS ALL THE OPERATING SYSTEMS INFORMATION FROM AWS EC2 API, PRINTS THE OUTPUT TO A CSV AND THEN IMPORTS THE CSV INTO FIREPOWER MANAGEMENT CENTER USING THE HOST INPUT API OF FMC. DEPENDENCIES / REQUIREMENTS: 1- PYTHON 3.6 2- PERL 5 3- ACCOUNT ON AWS CLOUD AN API KEY G...
48.029703
219
0.660276
1,349
9,702
4.633062
0.227576
0.03808
0.03744
0.0272
0.50176
0.46752
0.42176
0.4016
0.39632
0.38736
0
0.006984
0.188312
9,702
201
220
48.268657
0.786667
0.176149
0
0.324138
0
0.089655
0.534913
0.112824
0
0
0
0
0
1
0.006897
false
0.013793
0.041379
0
0.048276
0.131034
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b384f1cd8ef3bf5972a03b34c5abadd537fbffab
2,394
py
Python
app-packages/solr/package/scripts/solr_node.py
turningme/incubator-retired-slider
1d4f519d763210f46e327338be72efa99e65cb5d
[ "Apache-2.0" ]
60
2015-01-05T10:51:11.000Z
2018-12-15T03:48:09.000Z
app-packages/solr/package/scripts/solr_node.py
turningme/incubator-retired-slider
1d4f519d763210f46e327338be72efa99e65cb5d
[ "Apache-2.0" ]
null
null
null
app-packages/solr/package/scripts/solr_node.py
turningme/incubator-retired-slider
1d4f519d763210f46e327338be72efa99e65cb5d
[ "Apache-2.0" ]
87
2015-01-14T05:14:15.000Z
2018-12-25T14:14:56.000Z
#!/usr/bin/env python """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License");...
26.898876
72
0.70259
342
2,394
4.754386
0.447368
0.030135
0.03198
0.04674
0.169127
0.169127
0.151292
0.151292
0.060271
0.060271
0
0.005624
0.182957
2,394
88
73
27.204545
0.825665
0.324144
0
0.25
0
0
0.350528
0.156619
0
0
0
0
0
1
0.083333
false
0
0.1
0
0.2
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b388a93bd00b03fd3f2be3f945fb5452ac8fba8a
2,364
py
Python
other/gen_inserts_from_hpge.py
dlooto/dauphine
ba0a0caaf513dbbfcfdd658ad5c687cbf279c021
[ "Apache-2.0" ]
null
null
null
other/gen_inserts_from_hpge.py
dlooto/dauphine
ba0a0caaf513dbbfcfdd658ad5c687cbf279c021
[ "Apache-2.0" ]
null
null
null
other/gen_inserts_from_hpge.py
dlooto/dauphine
ba0a0caaf513dbbfcfdd658ad5c687cbf279c021
[ "Apache-2.0" ]
1
2020-08-13T14:34:44.000Z
2020-08-13T14:34:44.000Z
# 2017数据补齐 # 根据SPE文件和RPT文件生成导入SQL import os import time def parse_spe(filename): f = open(filename) line = f.readline() while line: if line.startswith('$DATE_MEA:'): begin_time_line = f.readline() begin_time = time.strptime(begin_time_line.strip(), '%m/%d/%Y %H:%M:%S') ...
31.52
142
0.58714
324
2,364
4.080247
0.283951
0.08472
0.066566
0.048412
0.413011
0.366112
0.32829
0.290469
0.231467
0.231467
0
0.01209
0.265228
2,364
75
143
31.52
0.748993
0.012267
0
0.254545
0
0
0.112302
0.041577
0
0
0
0
0
1
0.072727
false
0
0.036364
0
0.163636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3898633efb7d04220516dced622d82112dbe427
1,200
py
Python
photos/views.py
Gideon-Muriithi/photos_gallary
06534c06582bfb5e38e0e0d9bde768512a493c2e
[ "MIT" ]
null
null
null
photos/views.py
Gideon-Muriithi/photos_gallary
06534c06582bfb5e38e0e0d9bde768512a493c2e
[ "MIT" ]
5
2020-02-12T03:13:56.000Z
2021-09-08T01:20:31.000Z
photos/views.py
Gideon-Muriithi/photos_gallary
06534c06582bfb5e38e0e0d9bde768512a493c2e
[ "MIT" ]
null
null
null
from django.shortcuts import render from . models import Location, Image, categories def get_images(request): images = Image.get_all_images() locations = Location.objects.all() context = { "images":images, "locations":locations } return render(request, 'images.html', context) def get_loc...
34.285714
74
0.68
136
1,200
5.875
0.294118
0.060075
0.095119
0.067584
0.072591
0
0
0
0
0
0
0
0.199167
1,200
34
75
35.294118
0.831426
0
0
0.068966
0
0
0.155833
0
0
0
0
0
0
1
0.103448
false
0
0.068966
0
0.310345
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b38b561a2bf71d935045c435d5ddb3b856bc3af4
9,103
py
Python
tests/processing_components/test_atmospheric_screen.py
SKA-ScienceDataProcessor/rascil
bd3b47f779e18e184781e2928ad1539d1fdc1c9b
[ "Apache-2.0" ]
7
2019-12-14T13:42:33.000Z
2022-01-28T03:31:45.000Z
tests/processing_components/test_atmospheric_screen.py
SKA-ScienceDataProcessor/rascil
bd3b47f779e18e184781e2928ad1539d1fdc1c9b
[ "Apache-2.0" ]
6
2020-01-08T09:40:08.000Z
2020-06-11T14:56:13.000Z
tests/processing_components/test_atmospheric_screen.py
SKA-ScienceDataProcessor/rascil
bd3b47f779e18e184781e2928ad1539d1fdc1c9b
[ "Apache-2.0" ]
3
2020-01-14T11:14:16.000Z
2020-09-15T05:21:06.000Z
""" Unit tests for mpc """ import logging import os import unittest import astropy.units as u import numpy from astropy.coordinates import SkyCoord from rascil.data_models.parameters import rascil_path, rascil_data_path from rascil.data_models.polarisation import PolarisationFrame from rascil.processing_components i...
52.618497
120
0.631989
981
9,103
5.565749
0.158002
0.038095
0.03663
0.054945
0.65989
0.597985
0.592674
0.520513
0.493773
0.476557
0
0.027336
0.288696
9,103
172
121
52.924419
0.815907
0.003515
0
0.414063
0
0
0.05341
0.029905
0
0
0
0
0.09375
1
0.054688
false
0
0.179688
0
0.242188
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b38fdb90a8567c51ecce68bb72dba00c506fbc8a
6,822
bzl
Python
tools/build_rules/proto.bzl
bowlofstew/kythe
23a3524de3924901ffaba4b8bcab8abe96de6f3a
[ "Apache-2.0" ]
1
2021-04-24T08:18:15.000Z
2021-04-24T08:18:15.000Z
tools/build_rules/proto.bzl
bowlofstew/kythe
23a3524de3924901ffaba4b8bcab8abe96de6f3a
[ "Apache-2.0" ]
3
2020-12-31T09:08:34.000Z
2021-09-28T05:42:02.000Z
tools/build_rules/proto.bzl
moul/kythe
2e198cc818981fc6cffa14d8263fda3a33da6429
[ "Apache-2.0" ]
null
null
null
load("@//tools:build_rules/go.bzl", "go_library") standard_proto_path = "third_party/proto/src/" def go_package_name(go_prefix, label): return "%s%s/%s" % (go_prefix.go_prefix, label.package, label.name) def _genproto_impl(ctx): proto_src_deps = [src.proto_src for src in ctx.attr.deps] inputs, outputs, argumen...
31.730233
86
0.598358
856
6,822
4.508178
0.191589
0.022804
0.029023
0.030837
0.210158
0.099508
0.034206
0.034206
0
0
0
0.002184
0.261653
6,822
214
87
31.878505
0.763947
0.071094
0
0.203125
0
0
0.14507
0.063369
0
0
0
0.004673
0
1
0.026042
false
0
0.03125
0.005208
0.078125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b391c9147986afbcf63eec9ecaef07d00a11bbee
1,128
py
Python
examples/nsw-qld.py
ejwilson3/NchooseK
1e985fb47808283fbb579609b2467be3f5a4a29e
[ "BSD-3-Clause" ]
null
null
null
examples/nsw-qld.py
ejwilson3/NchooseK
1e985fb47808283fbb579609b2467be3f5a4a29e
[ "BSD-3-Clause" ]
1
2021-07-19T20:41:06.000Z
2021-07-19T20:41:06.000Z
examples/nsw-qld.py
ejwilson3/NchooseK
1e985fb47808283fbb579609b2467be3f5a4a29e
[ "BSD-3-Clause" ]
1
2021-07-14T17:21:17.000Z
2021-07-14T17:21:17.000Z
#! /usr/bin/env python ################################### # Test NchooseK on a two-region # # map-coloring problem # # # # By Scott Pakin <pakin@lanl.gov> # ################################### import nchoosek # Define a type for "exactly one color". env = nchoosek.Enviro...
26.857143
61
0.560284
144
1,128
4.326389
0.451389
0.019262
0.028892
0.022472
0.035313
0
0
0
0
0
0
0.005701
0.222518
1,128
41
62
27.512195
0.704675
0.281028
0
0.090909
0
0
0.116919
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.045455
0.318182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3934e37cd454e67d99a3d0f67cc435385b6aa5b
7,902
py
Python
googledrive_cloner/tests/mock_service.py
martinmCGG/googledrivecloner
b7d9592ef0bed34b567dfdf5f306b057edd2a0f3
[ "MIT" ]
5
2022-02-01T01:07:17.000Z
2022-03-29T19:23:52.000Z
googledrive_cloner/tests/mock_service.py
martinmCGG/googledrivecloner
b7d9592ef0bed34b567dfdf5f306b057edd2a0f3
[ "MIT" ]
1
2022-03-29T19:23:25.000Z
2022-03-29T19:23:25.000Z
googledrive_cloner/tests/mock_service.py
martinmCGG/googledrivecloner
b7d9592ef0bed34b567dfdf5f306b057edd2a0f3
[ "MIT" ]
1
2022-03-29T14:07:36.000Z
2022-03-29T14:07:36.000Z
import copy from typing import Dict, List, Optional, Set, Union from unittest.mock import Mock from uuid import uuid4 class File: """ Mock File class representing a GoogleDrive File with basic information file_id, name, parents (list of parent ids), mimeType """ def __init__( self, ...
29.266667
87
0.559226
986
7,902
4.342799
0.157201
0.054647
0.018683
0.017515
0.201308
0.168846
0.078001
0.036432
0.021952
0.021952
0
0.001314
0.325867
7,902
269
88
29.375465
0.802515
0.223235
0
0.133758
0
0
0.053486
0.011121
0
0
0
0
0
1
0.140127
false
0
0.025478
0.012739
0.292994
0.025478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b393a832ea806e708dd3e9d64cfaf7e065346907
43,854
py
Python
astrocats/catalog/entry.py
Astrocats-Cataclysmic-Variable-Catalog/Cataclysmic-Varible-Astrocats
7835595a4df5bf463bf11412f65b4f8671ae8dfc
[ "MIT" ]
null
null
null
astrocats/catalog/entry.py
Astrocats-Cataclysmic-Variable-Catalog/Cataclysmic-Varible-Astrocats
7835595a4df5bf463bf11412f65b4f8671ae8dfc
[ "MIT" ]
null
null
null
astrocats/catalog/entry.py
Astrocats-Cataclysmic-Variable-Catalog/Cataclysmic-Varible-Astrocats
7835595a4df5bf463bf11412f65b4f8671ae8dfc
[ "MIT" ]
null
null
null
"""Definitions related to the `Entry` class for catalog entries.""" import codecs import gzip as gz import hashlib import json import logging import os import sys from collections import OrderedDict from copy import deepcopy from decimal import Decimal from astrocats.catalog.catdict import CatDict, CatDictError from a...
38.067708
92
0.548319
5,082
43,854
4.574577
0.121409
0.034756
0.019098
0.012388
0.284541
0.23116
0.188016
0.158551
0.129086
0.115967
0
0.001314
0.358097
43,854
1,151
93
38.100782
0.824547
0.215693
0
0.269231
0
0
0.05195
0.002378
0
0
0
0
0
1
0.054377
false
0.003979
0.030504
0
0.218833
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b39793836966e613d8f5a0a9e61da63d48b5e600
3,096
py
Python
util/get-google-calendars.py
Kartoffel/infodisplay
01c87c1d06b4bae45397243d0a99c86015cee708
[ "MIT" ]
2
2021-12-29T14:24:19.000Z
2022-01-04T21:24:56.000Z
util/get-google-calendars.py
Kartoffel/infodisplay
01c87c1d06b4bae45397243d0a99c86015cee708
[ "MIT" ]
1
2022-01-03T19:40:47.000Z
2022-01-05T17:45:39.000Z
util/get-google-calendars.py
Kartoffel/infodisplay
01c87c1d06b4bae45397243d0a99c86015cee708
[ "MIT" ]
null
null
null
''' get-google-calendars.py This script will obtain the `token.json` required for getting your google calendar appointments on the info display. It will also give you the ID's of your calendars, which you can choose to include in your config.ini Run this on your local desktop! Install the following pa...
32.25
120
0.671189
394
3,096
5.190355
0.42132
0.022005
0.011736
0.023472
0
0
0
0
0
0
0
0.0034
0.239987
3,096
95
121
32.589474
0.865703
0.377261
0
0
0
0
0.153384
0
0
0
0
0
0
1
0.042553
false
0
0.148936
0
0.234043
0.148936
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3a032ed592c9395acc528eda36249d66c3bcd76
619
py
Python
view_npy.py
ryx2/tools
cc223ae5ed41e0a35832282775bd49650f71a24e
[ "MIT" ]
null
null
null
view_npy.py
ryx2/tools
cc223ae5ed41e0a35832282775bd49650f71a24e
[ "MIT" ]
null
null
null
view_npy.py
ryx2/tools
cc223ae5ed41e0a35832282775bd49650f71a24e
[ "MIT" ]
null
null
null
import numpy as np import sys import matplotlib.pyplot as plt import argparse parser = argparse.ArgumentParser( description="terminal view a numpy file or image as np array") parser.add_argument("data", help=".npy file to be viewed or im.") parser.add_argument("--img", action='store_true', help="if an image.") arg...
25.791667
70
0.694669
91
619
4.67033
0.56044
0.056471
0.08
0
0
0
0
0
0
0
0
0
0.195477
619
23
71
26.913043
0.853414
0
0
0
0
0
0.213247
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3a207ed26d2f91c204a97c15e81205d87670102
5,667
py
Python
mlaut/strategies/neural_networks.py
vishalbelsare/mlaut
a3bd4b2591c3144d100f413f6c4c2231392103e5
[ "BSD-3-Clause" ]
23
2019-01-14T15:12:32.000Z
2022-03-31T12:23:34.000Z
mlaut/strategies/neural_networks.py
vishalbelsare/mlaut
a3bd4b2591c3144d100f413f6c4c2231392103e5
[ "BSD-3-Clause" ]
11
2019-01-23T13:39:20.000Z
2020-04-17T13:25:27.000Z
mlaut/strategies/neural_networks.py
vishalbelsare/mlaut
a3bd4b2591c3144d100f413f6c4c2231392103e5
[ "BSD-3-Clause" ]
4
2019-01-07T20:46:40.000Z
2022-03-25T00:00:00.000Z
from mlaut.shared.static_variables import GRIDSEARCH_NUM_CV_FOLDS, GRIDSEARCH_CV_NUM_PARALLEL_JOBS from mlaut.shared.static_variables import VERBOSE from tensorflow.python.keras.models import Sequential, load_model, model_from_json from tensorflow.python.keras.layers import Dense, Activation, Dropout from tensorflow.p...
41.364964
158
0.636668
618
5,667
5.572816
0.245955
0.043554
0.079849
0.060976
0.537747
0.512485
0.450058
0.409698
0.39518
0.358014
0
0.012172
0.260632
5,667
136
159
41.669118
0.809785
0.510676
0
0.409091
0
0
0.053137
0.015867
0
0
0
0
0
1
0.045455
false
0
0.272727
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
0
0
0
0
1
0
b3a5004165d6ada562d6358f71622d9f82b157f8
3,130
py
Python
src/rtfparse/parser.py
hanose/rtfparse
437bf2ef560a275427ae2e48416ec8c12331b370
[ "MIT" ]
2
2021-08-31T08:26:14.000Z
2022-03-28T11:28:56.000Z
src/rtfparse/parser.py
hanose/rtfparse
437bf2ef560a275427ae2e48416ec8c12331b370
[ "MIT" ]
1
2021-06-10T11:31:16.000Z
2021-11-21T16:12:57.000Z
src/rtfparse/parser.py
hanose/rtfparse
437bf2ef560a275427ae2e48416ec8c12331b370
[ "MIT" ]
2
2021-12-05T17:26:36.000Z
2022-03-31T13:58:33.000Z
#!/usr/bin/env python import io import re import logging import pathlib # Own modules from rtfparse import re_patterns from rtfparse import entities from rtfparse import utils # Typing from typing import Optional from typing import Union from rtfparse import config_loader # Setup logging logger = logging.getLogger(...
35.568182
172
0.594888
385
3,130
4.690909
0.348052
0.03876
0.036545
0.037652
0.09247
0.024363
0.024363
0
0
0
0
0.00892
0.319489
3,130
87
173
35.977011
0.838967
0.131949
0
0.055556
0
0
0.090439
0
0
0
0
0
0
1
0.041667
false
0.013889
0.138889
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3a78bb678c70aacc4fa4fb1b41422f20b1003ff
330
py
Python
cmssw/examples/MyAnalyzer/python/MyAnalyzer_cfg.py
guitargeek/PKGBUILDs
a71e887c838827bb876f3ad4badb66c2eda5f61c
[ "MIT" ]
null
null
null
cmssw/examples/MyAnalyzer/python/MyAnalyzer_cfg.py
guitargeek/PKGBUILDs
a71e887c838827bb876f3ad4badb66c2eda5f61c
[ "MIT" ]
null
null
null
cmssw/examples/MyAnalyzer/python/MyAnalyzer_cfg.py
guitargeek/PKGBUILDs
a71e887c838827bb876f3ad4badb66c2eda5f61c
[ "MIT" ]
null
null
null
import FWCore.ParameterSet.Config as cms process = cms.Process("MyAnalyzer") process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring( "file:/home/jonas/PhD/022E2036-A2D9-E711-9A8C-0CC47A13D2A4.root" ) ) process.analyzer = cms.EDAnalyzer('MyAnalyzer') process.p = cms.Path(process....
23.571429
72
0.733333
40
330
6.05
0.675
0.082645
0
0
0
0
0
0
0
0
0
0.072917
0.127273
330
13
73
25.384615
0.767361
0
0
0
0
0
0.278788
0.187879
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3a840e28d30bd9ab4482c1cf21eed740cbb25a5
4,513
py
Python
Math/matrix.py
TimHeiszwolf/Heis_Python_Tools
ffa35b80838673e272dc46a6fff5cafc76ecb239
[ "MIT" ]
null
null
null
Math/matrix.py
TimHeiszwolf/Heis_Python_Tools
ffa35b80838673e272dc46a6fff5cafc76ecb239
[ "MIT" ]
null
null
null
Math/matrix.py
TimHeiszwolf/Heis_Python_Tools
ffa35b80838673e272dc46a6fff5cafc76ecb239
[ "MIT" ]
null
null
null
# Methods for dealing with Matrices. Don't use these. Just use the numpy functions. def get_random_matrix(size = [5, 5], value_range = [-10, 10], type_of_value = int): """ A function which can generate many different types of random matrixes of whatever dimension is desired. """ if len(size)>1: ...
36.395161
211
0.581653
635
4,513
4.009449
0.222047
0.043991
0.037706
0.034564
0.192066
0.123331
0.073841
0.056559
0.056559
0.056559
0
0.016444
0.285841
4,513
123
212
36.691057
0.773503
0.21006
0
0.116667
0
0
0.021964
0
0
0
0
0.00813
0
1
0.083333
false
0
0
0
0.216667
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3acb021cd22a119b718d7aceb7d3ebd579b063b
233
py
Python
python/tb6600/set-power.py
Heimkino-Praxis/screen-masking
024f0f84c524f897fc00d0c177b618b610a560b5
[ "MIT" ]
3
2020-09-09T12:59:24.000Z
2021-10-14T13:45:11.000Z
python/tb6600/set-power.py
Heimkino-Praxis/screen-masking
024f0f84c524f897fc00d0c177b618b610a560b5
[ "MIT" ]
null
null
null
python/tb6600/set-power.py
Heimkino-Praxis/screen-masking
024f0f84c524f897fc00d0c177b618b610a560b5
[ "MIT" ]
null
null
null
import stepper import sys if (len(sys.argv) != 2): print("missing parameter: 0|1"); sys.exit(); value = int(sys.argv[1]) stepper.setLock(0) stepper.setPower(value) if (value > 0): print("power on") else: print("power off")
12.263158
33
0.656652
37
233
4.135135
0.567568
0.091503
0
0
0
0
0
0
0
0
0
0.030457
0.154506
233
18
34
12.944444
0.746193
0
0
0
0
0
0.167382
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3afea34374cd7ab693f16bdea1195e824d2afa9
10,880
py
Python
huawei/services/device_config.py
tuxuser/huawei-lpv2
38bf2fd7e5a21978ffacc4bc58923c7c2389c7ab
[ "MIT" ]
42
2019-09-01T08:59:35.000Z
2022-03-06T17:48:08.000Z
huawei/services/device_config.py
tuxuser/huawei-lpv2
38bf2fd7e5a21978ffacc4bc58923c7c2389c7ab
[ "MIT" ]
7
2019-09-01T08:33:16.000Z
2021-05-26T13:44:36.000Z
huawei/services/device_config.py
tuxuser/huawei-lpv2
38bf2fd7e5a21978ffacc4bc58923c7c2389c7ab
[ "MIT" ]
11
2019-09-01T03:43:50.000Z
2021-07-01T14:42:12.000Z
import enum from dataclasses import dataclass from datetime import datetime from logging import getLogger from typing import Tuple from ..protocol import ( AUTH_VERSION, Command, MismatchError, NONCE_LENGTH, PROTOCOL_VERSION, Packet, TLV, check_result, create_bonding_key, decode...
28.113695
116
0.636489
1,137
10,880
5.91029
0.170624
0.05
0.050893
0.045833
0.362798
0.283482
0.20625
0.11994
0.11994
0.094643
0
0.013041
0.274081
10,880
386
117
28.186529
0.837807
0.011121
0
0.293729
0
0
0.031994
0.010603
0
0
0
0.002591
0
1
0.056106
false
0
0.019802
0.036304
0.250825
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3b29d9a1f0bfb0365245f5647a6528266304cb8
1,023
py
Python
2021/06-python-decorator/decorator_sample.py
tswast/code-snippets
f859a9f4c747326bff9456a4f1f6578453cad2db
[ "Apache-2.0" ]
14
2017-03-09T23:12:42.000Z
2022-01-13T11:15:11.000Z
2021/06-python-decorator/decorator_sample.py
tswast/code-snippets
f859a9f4c747326bff9456a4f1f6578453cad2db
[ "Apache-2.0" ]
1
2020-12-31T04:12:08.000Z
2021-05-08T05:20:56.000Z
2021/06-python-decorator/decorator_sample.py
tswast/code-snippets
f859a9f4c747326bff9456a4f1f6578453cad2db
[ "Apache-2.0" ]
8
2017-05-31T16:55:46.000Z
2020-12-29T22:00:32.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
23.25
74
0.68915
150
1,023
4.686667
0.56
0.085349
0.036984
0.045519
0
0
0
0
0
0
0
0.017654
0.224829
1,023
43
75
23.790698
0.868852
0.538612
0
0
0
0
0
0
0
0
0
0
0
1
0.15
false
0
0.1
0
0.45
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3b39c2289d1b79f44c6ce12edc0939c142807ba
8,742
py
Python
pysymoro/baseparams.py
songhongxiang/symoro
3db657778337e89c63d383789df5e4d2994bd542
[ "MIT" ]
109
2015-01-19T11:17:11.000Z
2022-03-19T13:24:02.000Z
pysymoro/baseparams.py
songhongxiang/symoro
3db657778337e89c63d383789df5e4d2994bd542
[ "MIT" ]
21
2015-04-17T11:19:57.000Z
2021-11-30T03:21:49.000Z
pysymoro/baseparams.py
songhongxiang/symoro
3db657778337e89c63d383789df5e4d2994bd542
[ "MIT" ]
50
2015-08-27T06:32:54.000Z
2022-03-16T03:35:13.000Z
# -*- coding: utf-8 -*- # This file is part of the OpenSYMORO project. Please see # https://github.com/symoro/symoro/blob/master/LICENCE for the licence. """ This module of SYMORO package contains function to compute the base inertial parameters. """ import sympy from sympy import Matrix from pysymoro.geometry i...
29.734694
78
0.549188
1,321
8,742
3.536715
0.162755
0.025685
0.025043
0.020976
0.533818
0.508348
0.462115
0.422303
0.399829
0.33476
0
0.042191
0.300503
8,742
293
79
29.836177
0.721832
0.23553
0
0.361963
0
0
0.006466
0
0
0
0
0.003413
0
1
0.06135
false
0.01227
0.03681
0
0.116564
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3b4d14d3f330ee0c96bf4049e9687a82a51d0f3
7,543
py
Python
app/risks.py
allezalex/pyro-platform
0205ca4121aff1185580fb0e97a211336c22792a
[ "Apache-2.0" ]
6
2020-12-13T19:08:51.000Z
2022-01-09T02:44:38.000Z
app/risks.py
allezalex/pyro-platform
0205ca4121aff1185580fb0e97a211336c22792a
[ "Apache-2.0" ]
41
2020-11-11T15:08:13.000Z
2022-02-03T10:26:14.000Z
app/risks.py
allezalex/pyro-platform
0205ca4121aff1185580fb0e97a211336c22792a
[ "Apache-2.0" ]
3
2021-03-16T19:07:46.000Z
2022-01-18T19:12:44.000Z
# Copyright (C) 2021, Pyronear contributors. # This program is licensed under the Apache License version 2. # See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details. """ The following file is dedicated to the "Risk Score" view of the dashboard. Following a first section dedic...
46.276074
120
0.603208
927
7,543
4.83603
0.344121
0.020076
0.013384
0.006246
0.051305
0
0
0
0
0
0
0.017715
0.251624
7,543
162
121
46.561728
0.776439
0.5466
0
0
0
0
0.093551
0
0
0
0
0
0
1
0.048387
false
0
0.129032
0
0.225806
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3b57743fc67237e5e0dfd141e3c95a3161e3a39
318
py
Python
lws_backend/api/routes/auth.py
AlexKLWS/lws_backend
a886073b1b0f6ab80d848fb4b6e8465de9d88317
[ "Unlicense" ]
null
null
null
lws_backend/api/routes/auth.py
AlexKLWS/lws_backend
a886073b1b0f6ab80d848fb4b6e8465de9d88317
[ "Unlicense" ]
null
null
null
lws_backend/api/routes/auth.py
AlexKLWS/lws_backend
a886073b1b0f6ab80d848fb4b6e8465de9d88317
[ "Unlicense" ]
null
null
null
from fastapi import APIRouter, Depends from lws_backend.api.dependencies.authorization import check_user_auth router = APIRouter() @router.get("/user-access") async def user_access(user_auth=Depends(check_user_auth)): exception = user_auth[1] if exception: raise exception return user_auth[0]
21.2
70
0.757862
43
318
5.395349
0.55814
0.172414
0.112069
0
0
0
0
0
0
0
0
0.007463
0.157233
318
14
71
22.714286
0.858209
0
0
0
0
0
0.037736
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3b5d9872af7cd4981466decde26abff958ca0d2
3,219
py
Python
website/bhamon_orchestra_website/job_controller.py
BenjaminHamon/BuildService
2ca12f9ae74e9cbf732229849f6cd6d13f40151a
[ "MIT" ]
2
2021-01-28T15:56:50.000Z
2021-03-02T06:27:09.000Z
website/bhamon_orchestra_website/job_controller.py
BenjaminHamon/BuildService
2ca12f9ae74e9cbf732229849f6cd6d13f40151a
[ "MIT" ]
null
null
null
website/bhamon_orchestra_website/job_controller.py
BenjaminHamon/BuildService
2ca12f9ae74e9cbf732229849f6cd6d13f40151a
[ "MIT" ]
null
null
null
import logging import flask import bhamon_orchestra_website.helpers as helpers import bhamon_orchestra_website.service_client as service_client logger = logging.getLogger("JobController") def show_collection(project_identifier): item_total = service_client.get("/project/{project_identifier}/job_count".format(**l...
50.296875
176
0.751476
382
3,219
6.060209
0.219895
0.161555
0.095032
0.081641
0.586609
0.586609
0.527862
0.509287
0.432829
0.359827
0
0.00237
0.082324
3,219
63
177
51.095238
0.781313
0.041938
0
0.162791
0
0
0.32608
0.165313
0
0
0
0
0
1
0.116279
false
0
0.093023
0
0.325581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3b83373cf5e4f901428414e382481adff631cd0
10,751
py
Python
resource_counter.py
ferragi/aws_resource_counter
dd0c8c61fd9e3c4cb0237310fa1a7a2c70b99a07
[ "Apache-2.0" ]
3
2021-03-01T12:50:39.000Z
2021-09-06T13:53:00.000Z
resource_counter.py
ferragi/aws_resource_counter
dd0c8c61fd9e3c4cb0237310fa1a7a2c70b99a07
[ "Apache-2.0" ]
null
null
null
resource_counter.py
ferragi/aws_resource_counter
dd0c8c61fd9e3c4cb0237310fa1a7a2c70b99a07
[ "Apache-2.0" ]
1
2021-03-01T12:51:21.000Z
2021-03-01T12:51:21.000Z
# -*- coding: utf-8 -*- import sys import boto3 from botocore.exceptions import ClientError import json from datetime import datetime CUSTOMER_FILE_NAME = "customer_assessment.yandeh.config.json" SERVICES_FILE_NAME = "services.config.json" def get_customer_config(): customer_file = open(CUSTOMER_FILE...
48.427928
199
0.594921
1,204
10,751
5.02907
0.135382
0.061767
0.03237
0.047234
0.60578
0.568456
0.497936
0.484228
0.466226
0.446078
0
0.005308
0.264068
10,751
222
200
48.427928
0.759985
0.010325
0
0.342697
0
0
0.26144
0.038617
0
0
0
0
0
1
0.033708
false
0
0.02809
0
0.140449
0.101124
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3b9455435505a5fb9a159f6a19ce96afc0246de
3,351
py
Python
dags/JL_proj_dag.py
jsleslie/sparkify-airflow-pipeline
fd6706e6a40f0fa6420c6d00e53c0734be24d86f
[ "MIT" ]
null
null
null
dags/JL_proj_dag.py
jsleslie/sparkify-airflow-pipeline
fd6706e6a40f0fa6420c6d00e53c0734be24d86f
[ "MIT" ]
null
null
null
dags/JL_proj_dag.py
jsleslie/sparkify-airflow-pipeline
fd6706e6a40f0fa6420c6d00e53c0734be24d86f
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta import os from airflow import DAG from airflow.operators.dummy_operator import DummyOperator from operators import (StageToRedshiftOperator, LoadFactOperator, LoadDimensionOperator, DataQualityOperator) from helpers import SqlQueries # AWS_KEY = ...
29.394737
101
0.7359
426
3,351
5.396714
0.251174
0.073075
0.054806
0.047847
0.398869
0.288821
0.080905
0.057416
0.057416
0.057416
0
0.008906
0.16234
3,351
113
102
29.654867
0.810118
0.022978
0
0.107527
0
0
0.235546
0.03212
0
0
0
0
0
1
0
false
0
0.064516
0
0.064516
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3b9f47ce9246c0dbf4929a2fc4048535c1ebffb
3,468
py
Python
datasets/leejaponic/__init__.py
LinguList/lexibank-data-old
7bf886597afa26863de8527dfd8529d9eb99fcd6
[ "Apache-2.0" ]
null
null
null
datasets/leejaponic/__init__.py
LinguList/lexibank-data-old
7bf886597afa26863de8527dfd8529d9eb99fcd6
[ "Apache-2.0" ]
null
null
null
datasets/leejaponic/__init__.py
LinguList/lexibank-data-old
7bf886597afa26863de8527dfd8529d9eb99fcd6
[ "Apache-2.0" ]
1
2018-10-19T11:58:00.000Z
2018-10-19T11:58:00.000Z
# coding: utf8 from __future__ import unicode_literals, print_function, division from clldutils.dsv import UnicodeReader from clldutils.misc import slug from pylexibank.util import xls2csv from pylexibank.lingpy_util import iter_alignments, segmentize from pylexibank.dataset import CldfDataset def download(dataset)...
33.346154
84
0.488466
350
3,468
4.734286
0.334286
0.032589
0.032589
0.032589
0.02414
0
0
0
0
0
0
0.011572
0.401961
3,468
103
85
33.669903
0.787367
0.00346
0
0.149425
0
0
0.065721
0.021424
0
0
0
0
0.045977
1
0.057471
false
0
0.068966
0.011494
0.16092
0.011494
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3be443cdf964d3bbf6ca7a7ee7114e3f65cd9ab
3,051
py
Python
example.py
isanich/aiochannels
0f2fc1466ade008bf9c470b3e681412ddbb01a73
[ "MIT" ]
null
null
null
example.py
isanich/aiochannels
0f2fc1466ade008bf9c470b3e681412ddbb01a73
[ "MIT" ]
null
null
null
example.py
isanich/aiochannels
0f2fc1466ade008bf9c470b3e681412ddbb01a73
[ "MIT" ]
null
null
null
import asyncio from aiochannels import Channel, aenumerate async def simple_pinger(ch): sender = await ch.new_sender() while sender.is_attached: # sender can be detached from Channel with `sender.detach` await sender.send('ping') async def simple_ponger(ch): sender = await ch.new_sender(...
40.68
113
0.707965
441
3,051
4.784581
0.319728
0.059716
0.045498
0.024171
0.173934
0.084834
0.072038
0.042654
0.042654
0.042654
0
0.008254
0.205834
3,051
74
114
41.22973
0.862567
0.478859
0
0.166667
0
0
0.083173
0
0
0
0
0
0
1
0.02381
false
0
0.047619
0
0.071429
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3be6789804fb5752eb28306b4e6c26da559d325
1,004
py
Python
itembase/core/urls/vendor_item_urls.py
wedwardbeck/ibase
5647fa5aff6c1bdc99b6c93884ff0d5aef17d85b
[ "MIT" ]
null
null
null
itembase/core/urls/vendor_item_urls.py
wedwardbeck/ibase
5647fa5aff6c1bdc99b6c93884ff0d5aef17d85b
[ "MIT" ]
9
2020-01-17T14:16:08.000Z
2020-02-18T15:07:40.000Z
itembase/core/urls/vendor_item_urls.py
wedwardbeck/ibase
5647fa5aff6c1bdc99b6c93884ff0d5aef17d85b
[ "MIT" ]
null
null
null
from django.urls import path from itembase.core.views.item_views import UOMCreateView, UOMDeleteView, UOMDetailView, \ UOMListView, UOMUpdateView, VendorItemCreateView, VendorItemDeleteView, VendorItemDetailView, \ VendorItemListView, VendorItemUpdateView app_name = "vendor-items" urlpatterns = [ path("uo...
50.2
99
0.698207
120
1,004
5.741667
0.283333
0.087083
0.145138
0.09434
0
0
0
0
0
0
0
0
0.105578
1,004
19
100
52.842105
0.767261
0
0
0
0
0
0.194223
0
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3c1e9ab9358afaa83215e8fcdb31e334f3d7732
1,472
py
Python
exercises/utils/runner.py
rattletat/homework-server
abfac831ed45cc567a6a1610edee934200ffada7
[ "Unlicense" ]
1
2020-06-03T14:54:38.000Z
2020-06-03T14:54:38.000Z
exercises/utils/runner.py
rattletat/homework-server
abfac831ed45cc567a6a1610edee934200ffada7
[ "Unlicense" ]
null
null
null
exercises/utils/runner.py
rattletat/homework-server
abfac831ed45cc567a6a1610edee934200ffada7
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 """ Runs the test suite and prints the results to standard output. It uses the given separator in the following way: <Separator> #Tests <Separator> #Succeeded Tests <Separator> First Error <Separator> First Failure <Separator> """ import sys import traceback import unittest def main(): sep...
21.647059
78
0.570652
161
1,472
5.080745
0.42236
0.0489
0
0
0
0
0
0
0
0
0
0.019153
0.326087
1,472
67
79
21.970149
0.805444
0.16644
0
0.25
0
0
0.041017
0.018048
0
0
0
0
0
1
0.022727
false
0
0.090909
0
0.113636
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3c368e347b19b994c0f594074bd9213901ef162
1,135
py
Python
django-budget/config/urls.py
eliostvs/django-budget
c3b181e0dd259f14de6cb6f537508190e1344ec3
[ "MIT" ]
null
null
null
django-budget/config/urls.py
eliostvs/django-budget
c3b181e0dd259f14de6cb6f537508190e1344ec3
[ "MIT" ]
null
null
null
django-budget/config/urls.py
eliostvs/django-budget
c3b181e0dd259f14de6cb6f537508190e1344ec3
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.conf.urls import include, patterns, url from django.conf.urls.i18n import i18n_patterns from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^$', 'base.views.index', name='index'), url(r'^i18n/', ...
21.018519
62
0.592952
125
1,135
5.312
0.264
0.066265
0.063253
0.054217
0
0
0
0
0
0
0
0.011364
0.22467
1,135
53
63
21.415094
0.743182
0
0
0.052632
0
0
0.315419
0.105727
0
0
0
0
0
1
0
false
0
0.105263
0
0.105263
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3c39873bff99fe7e5298c28441bd0599d3f6194
5,433
py
Python
tests/fdb/test_fdb.py
GarrickHe/sonic-mgmt
74c2ac63ad948227ac90d7ab89205cff08cc9833
[ "Apache-2.0" ]
null
null
null
tests/fdb/test_fdb.py
GarrickHe/sonic-mgmt
74c2ac63ad948227ac90d7ab89205cff08cc9833
[ "Apache-2.0" ]
11
2019-07-10T16:27:32.000Z
2019-09-10T15:56:48.000Z
tests/fdb/test_fdb.py
GarrickHe/sonic-mgmt
74c2ac63ad948227ac90d7ab89205cff08cc9833
[ "Apache-2.0" ]
null
null
null
from ansible_host import AnsibleHost import pytest import ptf.testutils as testutils import time import itertools import logging import pprint DEFAULT_FDB_ETHERNET_TYPE = 0x1234 DUMMY_MAC_PREFIX = "02:11:22:33" DUMMY_MAC_COUNT = 10 FDB_POPULATE_SLEEP_TIMEOUT = 2 logger = logging.getLogger(__name__) def send_eth(p...
33.95625
109
0.677342
748
5,433
4.705882
0.251337
0.031818
0.025852
0.021591
0.349148
0.288068
0.20483
0.145739
0.125284
0.125284
0
0.010238
0.226946
5,433
159
110
34.169811
0.827857
0.241671
0
0.186047
0
0
0.128482
0.017064
0
0
0.001506
0
0.023256
1
0.05814
false
0
0.081395
0
0.151163
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3c7792d212a10cd3a3492a2b0a312b11bc2457f
4,916
py
Python
python/adso_odata_to_neo4j.py
fbelleau/sap2model
ecabfb8f3b514e5c2e23f5fc8594aa3415701ad3
[ "MIT" ]
null
null
null
python/adso_odata_to_neo4j.py
fbelleau/sap2model
ecabfb8f3b514e5c2e23f5fc8594aa3415701ad3
[ "MIT" ]
null
null
null
python/adso_odata_to_neo4j.py
fbelleau/sap2model
ecabfb8f3b514e5c2e23f5fc8594aa3415701ad3
[ "MIT" ]
null
null
null
# adso_odata_to_neo4j.py # from francois.belleau@saaq.gouv.qc.ca # create ADSO nodes in NEO4J using a CDS VIEW exposed as OData service from neo4j import GraphDatabase #pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org neo4j driver = GraphDatabase.driver("bolt://localhost:7687", auth=("neo4j",...
35.114286
345
0.718267
643
4,916
5.326594
0.332815
0.010511
0.02219
0.02219
0.486131
0.48
0.461314
0.427153
0.414015
0.414015
0
0.009836
0.131408
4,916
139
346
35.366906
0.792272
0.172498
0
0.235294
0
0.023529
0.312886
0.034628
0
0
0
0
0
1
0.047059
false
0.011765
0.058824
0
0.105882
0.082353
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3c875a221b839dc6e51b8ef33e2086e6f987b91
3,372
py
Python
kbsbot/compose_engine/compose_utils.py
astandre/cb-compose-engine-ms
ed4141f57dcb544743fd17fe62001d573ae1efc9
[ "MIT" ]
null
null
null
kbsbot/compose_engine/compose_utils.py
astandre/cb-compose-engine-ms
ed4141f57dcb544743fd17fe62001d573ae1efc9
[ "MIT" ]
null
null
null
kbsbot/compose_engine/compose_utils.py
astandre/cb-compose-engine-ms
ed4141f57dcb544743fd17fe62001d573ae1efc9
[ "MIT" ]
null
null
null
import re def clean_uri(uri): """ This method removes the url part of the URI in order to obtain just the property or class :param uri: An uri to be cleaned :return: The name of the property or the class """ if uri.find('#') != -1: special_char = '#' else: special_char =...
31.514019
105
0.590747
405
3,372
4.767901
0.241975
0.051269
0.033143
0.032626
0.07768
0.048679
0.048679
0.048679
0.048679
0
0
0.00218
0.319692
3,372
106
106
31.811321
0.839582
0.279063
0
0.25
0
0
0.056204
0
0
0
0
0
0
1
0.066667
false
0
0.016667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3cadd5bfa7e24c0eed1116844676bed9022fba5
1,008
py
Python
textscreen.py
MennoNij/DrivePy
2c5c5ed60b4704e656895fb0d2afc9fe3524696c
[ "MIT" ]
1
2021-02-16T10:47:39.000Z
2021-02-16T10:47:39.000Z
textscreen.py
MennoNij/DrivePy
2c5c5ed60b4704e656895fb0d2afc9fe3524696c
[ "MIT" ]
null
null
null
textscreen.py
MennoNij/DrivePy
2c5c5ed60b4704e656895fb0d2afc9fe3524696c
[ "MIT" ]
null
null
null
import time from pyglet.gl import * from pyglet import image from pyglet.window import key import globals import helpers class TextScreen(object): def __init__(self, txt): self.text = txt self.state = 0 self.startTime = 0.0 def draw(self, ww): label = pyglet.text.HTMLLabel(se...
22.4
63
0.507937
116
1,008
4.362069
0.396552
0.071146
0.059289
0.055336
0
0
0
0
0
0
0
0.021417
0.397817
1,008
44
64
22.909091
0.812191
0.072421
0
0.068966
0
0
0.01826
0
0
0
0
0
0
1
0.172414
false
0
0.206897
0
0.482759
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3cc8a8a3a90142b361a941d04d0660448e6bf61
2,490
py
Python
examples/classify_digits.py
mbaelde/sklearn-hierarchical-classification
f2cc1535b043e323a25fe0de5e26c04011dbfcb2
[ "Apache-2.0" ]
174
2018-02-09T05:37:42.000Z
2022-03-21T07:09:43.000Z
examples/classify_digits.py
mbaelde/sklearn-hierarchical-classification
f2cc1535b043e323a25fe0de5e26c04011dbfcb2
[ "Apache-2.0" ]
42
2018-03-15T06:51:16.000Z
2022-01-17T15:44:55.000Z
examples/classify_digits.py
mbaelde/sklearn-hierarchical-classification
f2cc1535b043e323a25fe0de5e26c04011dbfcb2
[ "Apache-2.0" ]
51
2018-03-21T17:13:11.000Z
2022-03-21T13:30:29.000Z
#!/usr/bin/env python """ Example of using the hierarchical classifier to classify (a subset of) the digits data set. Demonstrated some of the capabilities, e.g using a Pipeline as the base estimator, defining a non-trivial class hierarchy, etc. """ from sklearn import svm from sklearn.decomposition import TruncatedS...
28.295455
95
0.646988
310
2,490
4.951613
0.403226
0.064495
0.059935
0.096417
0.019544
0
0
0
0
0
0
0.013774
0.271084
2,490
87
96
28.62069
0.831956
0.288353
0
0
0
0
0.035527
0
0
0
0
0
0
1
0.018868
false
0
0.169811
0
0.188679
0.037736
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0