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
814bbe8913aa4c1ed64cfd661e62c150faebc750
805
py
Python
gpdata.py
masenov/bullet
be7148c93e3bf8111923063b599f2e9f7ea929b8
[ "Zlib" ]
null
null
null
gpdata.py
masenov/bullet
be7148c93e3bf8111923063b599f2e9f7ea929b8
[ "Zlib" ]
null
null
null
gpdata.py
masenov/bullet
be7148c93e3bf8111923063b599f2e9f7ea929b8
[ "Zlib" ]
null
null
null
flat_x = x.flatten() flat_y = y.flatten() flat_z = z.flatten() size = flat_x.shape[0] filename = 'landscapeData.h' open(filename, 'w').close() f = open(filename, 'a') f.write('#include "LinearMath/btScalar.h"\n#define Landscape01VtxCount 4\n#define Landscape01IdxCount 4\nbtScalar Landscape01Vtx[] = {\n') for i in r...
23.676471
138
0.62236
142
805
3.478873
0.28169
0.145749
0.09919
0.05668
0.362348
0.34413
0.34413
0.283401
0.283401
0.182186
0
0.04073
0.115528
805
33
139
24.393939
0.65309
0
0
0.416667
0
0.041667
0.380124
0.039752
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
814d356177b5fffd6e85621ee2f5863452f63451
2,776
py
Python
samples/create_project.py
zuarbase/server-client-python
1e5e02a550727d72fa90c3d8e4caa4c5f416dc74
[ "CC0-1.0", "MIT" ]
470
2016-09-14T23:38:48.000Z
2022-03-31T07:59:53.000Z
samples/create_project.py
zuarbase/server-client-python
1e5e02a550727d72fa90c3d8e4caa4c5f416dc74
[ "CC0-1.0", "MIT" ]
772
2016-09-09T18:15:44.000Z
2022-03-31T22:01:08.000Z
samples/create_project.py
zuarbase/server-client-python
1e5e02a550727d72fa90c3d8e4caa4c5f416dc74
[ "CC0-1.0", "MIT" ]
346
2016-09-10T00:05:00.000Z
2022-03-30T18:55:47.000Z
#### # This script demonstrates how to use the Tableau Server Client # to create new projects, both at the root level and how to nest them using # parent_id. # # # To run the script, you must have installed Python 3.6 or later. #### import argparse import logging import sys import tableauserverclient as TSC def cre...
40.823529
101
0.699568
373
2,776
5.045576
0.364611
0.057386
0.045165
0.039851
0.132837
0.068013
0.068013
0.068013
0.068013
0.068013
0
0.001358
0.204251
2,776
67
102
41.432836
0.850611
0.231628
0
0
0
0
0.20237
0
0
0
0
0
0
1
0.054054
false
0
0.108108
0
0.189189
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
814e51bb73ef3a0faf2172d4b70fb37c15405587
2,146
py
Python
tests/test_threading.py
nmandery/rasterio
ba5e90c487bd1930f52e57dba999e889b4df9ade
[ "BSD-3-Clause" ]
1,479
2015-01-10T12:35:07.000Z
2021-10-18T16:17:15.000Z
tests/test_threading.py
nmandery/rasterio
ba5e90c487bd1930f52e57dba999e889b4df9ade
[ "BSD-3-Clause" ]
1,819
2015-01-06T21:56:25.000Z
2021-10-20T02:28:27.000Z
tests/test_threading.py
nmandery/rasterio
ba5e90c487bd1930f52e57dba999e889b4df9ade
[ "BSD-3-Clause" ]
509
2015-01-06T20:59:12.000Z
2021-10-18T14:14:57.000Z
from threading import Thread import time import unittest import rasterio as rio from rasterio.env import get_gdal_config class TestThreading(unittest.TestCase): def test_multiopen(self): """ Open a file from different threads. Regression test for issue #986 """ def func(...
25.855422
75
0.584809
275
2,146
4.414545
0.356364
0.040362
0.074959
0.093904
0.193575
0.054366
0.054366
0.054366
0
0
0
0.01752
0.308481
2,146
82
76
26.170732
0.800539
0.166356
0
0.269231
0
0
0.046552
0.013218
0
0
0
0
0.134615
1
0.134615
false
0
0.096154
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
81507c4f325c3f7f550df8daa74e43be479e3fc4
4,600
py
Python
dm_construction/environments_test.py
frangipane/dm_construction
c84dcbd13ef6896a57da04fe62be85297178552a
[ "Apache-2.0" ]
25
2020-07-16T12:35:07.000Z
2022-03-25T11:02:54.000Z
dm_construction/environments_test.py
frangipane/dm_construction
c84dcbd13ef6896a57da04fe62be85297178552a
[ "Apache-2.0" ]
2
2021-01-11T11:40:21.000Z
2021-06-15T12:43:28.000Z
dm_construction/environments_test.py
LaudateCorpus1/dm_construction
f9d59f6ccb8818b71f971387704f2db8f2b3323a
[ "Apache-2.0" ]
7
2020-08-20T13:04:37.000Z
2021-11-19T18:55:09.000Z
#!/usr/bin/python # # Copyright 2020 DeepMind Technologies Limited # # 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 a...
35.658915
80
0.722609
563
4,600
5.687389
0.337478
0.039975
0.018738
0.021549
0.319176
0.28451
0.266708
0.266708
0.240475
0.22361
0
0.006527
0.167391
4,600
128
81
35.9375
0.829504
0.233043
0
0.270588
0
0
0.135827
0.025036
0
0
0
0
0
1
0.094118
false
0
0.058824
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8150b4a9e126831d7b3a5289d0e53064e11cb629
225
py
Python
Modulo_3/semana 2/imagenes/imagen.py
rubens233/cocid_python
492ebdf21817e693e5eb330ee006397272f2e0cc
[ "MIT" ]
null
null
null
Modulo_3/semana 2/imagenes/imagen.py
rubens233/cocid_python
492ebdf21817e693e5eb330ee006397272f2e0cc
[ "MIT" ]
null
null
null
Modulo_3/semana 2/imagenes/imagen.py
rubens233/cocid_python
492ebdf21817e693e5eb330ee006397272f2e0cc
[ "MIT" ]
null
null
null
from tkinter import * ventana = Tk() ventana.geometry("500x500") ventana.title('PythonGuides') img = PhotoImage(file='./logo.png') img = img.subsample(3, 3) Label( ventana, image=img ).pack(fill="both") ventana.mainloop()
18.75
45
0.711111
30
225
5.333333
0.733333
0
0
0
0
0
0
0
0
0
0
0.039801
0.106667
225
12
46
18.75
0.756219
0
0
0
0
0
0.146018
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
8157314b8c5e999d455ae8518882f282b75cc228
4,581
py
Python
half_json/json_util.py
half-pie/half-json
d8064e90ac769547c22db11bcbe47fcb4f1eb600
[ "MIT" ]
4
2020-08-04T15:14:25.000Z
2021-08-18T18:29:03.000Z
half_json/json_util.py
half-pie/half-json
d8064e90ac769547c22db11bcbe47fcb4f1eb600
[ "MIT" ]
1
2019-06-04T15:01:31.000Z
2019-06-04T15:01:31.000Z
half_json/json_util.py
half-pie/half-json
d8064e90ac769547c22db11bcbe47fcb4f1eb600
[ "MIT" ]
3
2019-06-01T14:16:32.000Z
2021-06-25T10:10:47.000Z
# coding=utf8 import re import json.decoder from collections import namedtuple from json.decoder import JSONDecoder from json.scanner import py_make_scanner from json.decoder import py_scanstring class JSONDecodeError(object): def __init__(self, parser, message): self.message = message self.pars...
32.260563
104
0.652696
549
4,581
5.26776
0.347905
0.027663
0.033195
0.03527
0.153181
0.124827
0.073997
0.073997
0.073997
0.040802
0
0.020874
0.226152
4,581
141
105
32.489362
0.794922
0.009823
0
0.047059
0
0
0.129434
0
0
0
0
0
0.011765
1
0.094118
false
0
0.070588
0.011765
0.423529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8157a3f9c8c5a1a22e0af65a58d5048d55b4c514
1,963
py
Python
capa-system/capaSystem.py
slumbermachine/capatimelapse
446e2a276b8ab0cf8d2f2292858cf2b540eb4748
[ "MIT" ]
2
2017-06-13T20:49:50.000Z
2019-04-09T10:14:24.000Z
capa-system/capaSystem.py
slumbermachine/capatimelapse
446e2a276b8ab0cf8d2f2292858cf2b540eb4748
[ "MIT" ]
null
null
null
capa-system/capaSystem.py
slumbermachine/capatimelapse
446e2a276b8ab0cf8d2f2292858cf2b540eb4748
[ "MIT" ]
null
null
null
#!/usr/bin/python ##################################################################### # Name : capaSystem.py # Description : Read system data and update db for web display # Environment : Tested under Raspberry Pi Rasbian Jessie Summer 17 # Author : Steve Osteen sosteen@gmail.com #####...
30.671875
101
0.596536
224
1,963
5.151786
0.517857
0.038995
0.02773
0.031196
0.081456
0.081456
0.081456
0.081456
0.081456
0
0
0.014848
0.210902
1,963
63
102
31.15873
0.730148
0.129903
0
0.22449
0
0
0.210493
0.068458
0
0
0
0
0
1
0.081633
false
0
0.122449
0
0.265306
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
815971e46cc7b24062e27d29f7d4f09a3aec13fb
3,770
py
Python
wagtail/wagtailadmin/tasks.py
willcodefortea/wagtail
2723b85ed8f356bde89d9541105b8cea4812d6a1
[ "BSD-3-Clause" ]
null
null
null
wagtail/wagtailadmin/tasks.py
willcodefortea/wagtail
2723b85ed8f356bde89d9541105b8cea4812d6a1
[ "BSD-3-Clause" ]
null
null
null
wagtail/wagtailadmin/tasks.py
willcodefortea/wagtail
2723b85ed8f356bde89d9541105b8cea4812d6a1
[ "BSD-3-Clause" ]
null
null
null
from django.template.loader import render_to_string from django.core.mail import send_mail from django.conf import settings from django.contrib.auth import get_user_model from django.db.models import Q from wagtail.wagtailcore.models import PageRevision, GroupPagePermission from wagtail.wagtailusers.models import User...
36.960784
145
0.734218
491
3,770
5.431772
0.311609
0.064117
0.047994
0.053993
0.198725
0.198725
0.198725
0.198725
0.198725
0.198725
0
0.000659
0.19496
3,770
101
146
37.326733
0.878089
0.236074
0
0.316667
0
0
0.083304
0.034652
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
815a258e49c9c6abc6816370b4272cf95e62bbe1
3,506
py
Python
app/map_sup_enrich_compose.py
onap/sdc-dcae-d-tosca-lab
b0120c1671e8987387ccae4f21793ceb303f471c
[ "Apache-2.0" ]
1
2021-10-15T19:47:42.000Z
2021-10-15T19:47:42.000Z
app/map_sup_enrich_compose.py
onap/archive-sdc-dcae-d-tosca-lab
b0120c1671e8987387ccae4f21793ceb303f471c
[ "Apache-2.0" ]
null
null
null
app/map_sup_enrich_compose.py
onap/archive-sdc-dcae-d-tosca-lab
b0120c1671e8987387ccae4f21793ceb303f471c
[ "Apache-2.0" ]
1
2021-10-15T19:47:34.000Z
2021-10-15T19:47:34.000Z
#Author: Shu Shi #emaiL: shushi@research.att.com from toscalib.tosca_workbook import ToscaWorkBook from toscalib.tosca_builder import ToscaBuilder import getopt, sys, json, logging def usage(): print('OPTIONS:') print('\t-h|--help: print this help message') print('\t-i|--input: The home folder where all ...
35.414141
187
0.582145
420
3,506
4.661905
0.314286
0.027579
0.024515
0.019918
0.06333
0.06333
0.036772
0
0
0
0
0.002372
0.278665
3,506
99
188
35.414141
0.771847
0.048774
0
0.171053
0
0
0.238667
0.049835
0
0
0
0
0
1
0.026316
false
0
0.105263
0
0.131579
0.065789
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
815b05fc82778af22f4d9f4104ce255be5442149
1,937
py
Python
lusidtools/lpt/qry_scopes.py
fossabot/lusid-python-tools
93b2fa8085a0a6550d12d036bd89248aba6e5718
[ "MIT" ]
1
2020-04-27T12:27:23.000Z
2020-04-27T12:27:23.000Z
lusidtools/lpt/qry_scopes.py
entityoneuk/lusid-python-tools
ee13d92673d01cfc9f7c427ed053e7a1e8d64973
[ "MIT" ]
null
null
null
lusidtools/lpt/qry_scopes.py
entityoneuk/lusid-python-tools
ee13d92673d01cfc9f7c427ed053e7a1e8d64973
[ "MIT" ]
null
null
null
import pandas as pd import dateutil from lusidtools.lpt import lpt from lusidtools.lpt import lse from lusidtools.lpt import stdargs from .either import Either import re import urllib.parse rexp = re.compile(r".*page=([^=']{10,}).*") TOOLNAME = "scopes" TOOLTIP = "List scopes" def parse(extend=None, args=None): ...
26.534247
85
0.575116
234
1,937
4.666667
0.41453
0.038462
0.046703
0.063187
0
0
0
0
0
0
0
0.00366
0.294786
1,937
72
86
26.902778
0.795754
0.007744
0
0
0
0
0.105208
0.010938
0
0
0
0
0
1
0.087719
false
0
0.140351
0.052632
0.350877
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
815eed7c81aa394ca156f60562a609ed561c8f68
4,253
py
Python
tests/tests.py
ActivityWatch/activitywatch-old
e69b071ff701368cee7bac5d01e5936c200e58be
[ "MIT" ]
4
2017-01-30T16:27:18.000Z
2017-09-28T19:14:13.000Z
tests/tests.py
ActivityWatch/activitywatch-old
e69b071ff701368cee7bac5d01e5936c200e58be
[ "MIT" ]
null
null
null
tests/tests.py
ActivityWatch/activitywatch-old
e69b071ff701368cee7bac5d01e5936c200e58be
[ "MIT" ]
2
2020-06-22T07:11:51.000Z
2020-12-11T02:46:22.000Z
from copy import copy from itertools import groupby import unittest from datetime import datetime, timedelta from typing import List from activitywatch.base import Watcher, Activity, Logger from activitywatch.settings import Settings from activitywatch.utils import floor_datetime, ceil_datetime from activitywatch.filt...
32.715385
105
0.652481
531
4,253
5.096045
0.175141
0.075388
0.08167
0.087953
0.369919
0.363267
0.315225
0.306356
0.191426
0.191426
0
0.050675
0.215848
4,253
129
106
32.968992
0.76072
0
0
0.175824
0
0
0.013167
0
0
0
0
0
0.186813
1
0.186813
false
0.043956
0.10989
0.032967
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
815ef73f8d3016d9f5e536e42e63dc78b0cafca1
254,077
py
Python
lang/it/basic_vocabulary_it.py
gtoffoli/commons-cops
e4b1f556c550e25bb2e6a9eabe8db963877c08d3
[ "MIT" ]
5
2016-11-13T02:41:02.000Z
2020-01-20T10:01:26.000Z
lang/it/basic_vocabulary_it.py
gtoffoli/commons
8b51a08a37c6d0b38fd4ecde82c20036c2dc168f
[ "MIT" ]
null
null
null
lang/it/basic_vocabulary_it.py
gtoffoli/commons
8b51a08a37c6d0b38fd4ecde82c20036c2dc168f
[ "MIT" ]
null
null
null
voc_it = [ ['a', 'noun', 'c'], ['a', 'preposition', 'a'], ['abbagliante', 'pres_part', 'c'], ['abbagliante', 'adjective', 'c'], ['abbagliante', 'noun', 'c'], ['abbaiare', 'verb', 'c'], ['abbandonare', 'verb', 'a'], ['abbandonato', 'past_part', 'b'], ['abbandonato', 'adjective', 'b'], ['abbandono', 'noun', 'b'], ['abbas...
28.130757
40
0.50236
27,406
254,077
4.646282
0.262643
0.079475
0.008552
0.000377
0.001453
0.000754
0
0
0
0
0
0
0.106633
254,077
9,032
41
28.130757
0.560991
0
0
0.007307
0
0
0.502385
0
0
0
0
0
0
1
0
false
0.003322
0.000664
0
0.000664
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
816071ad63a52503bfce3572b1ef2ec295dea013
9,099
py
Python
libs/models.py
aquastripe/DenseCLIP
9481bc4aac39265eb313041ae53b8f33d755508b
[ "Apache-2.0" ]
7
2022-02-02T14:34:38.000Z
2022-03-21T09:54:14.000Z
libs/models.py
aquastripe/DenseCLIP
9481bc4aac39265eb313041ae53b8f33d755508b
[ "Apache-2.0" ]
null
null
null
libs/models.py
aquastripe/DenseCLIP
9481bc4aac39265eb313041ae53b8f33d755508b
[ "Apache-2.0" ]
null
null
null
import json from collections import OrderedDict from typing import Union, List import clip import torch import torch.nn as nn import torch.nn.functional as F from libs.definitions import ROOT label_file = ROOT / 'imagenet_class_index.json' with open(label_file, 'r') as f: labels = json.load(f) _DEFAULT_CLASSNAM...
35.964427
116
0.593032
1,174
9,099
4.470187
0.179727
0.057355
0.025152
0.025152
0.664825
0.553544
0.465701
0.429878
0.411585
0.411585
0
0.00898
0.277943
9,099
252
117
36.107143
0.789802
0.07902
0
0.31068
0
0
0.20792
0.002991
0
0
0
0
0
1
0.063107
false
0
0.038835
0.014563
0.160194
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8160fc2ecf8175573434885167d35e68b574a5af
11,463
py
Python
src/basset_sick_loss.py
shtoneyan/Basset
b6c7f8995bb4f8fc37eccf3ee0f78478beef51d7
[ "MIT" ]
248
2015-10-06T12:30:53.000Z
2022-02-02T20:30:34.000Z
src/basset_sick_loss.py
Deepstatsanalysis/Basset
18753ad9ff5a46291021a0fa1abaad037b6f64f0
[ "MIT" ]
51
2015-10-08T04:57:41.000Z
2021-08-12T19:53:04.000Z
src/basset_sick_loss.py
Deepstatsanalysis/Basset
18753ad9ff5a46291021a0fa1abaad037b6f64f0
[ "MIT" ]
120
2015-10-15T00:49:44.000Z
2022-02-16T21:17:17.000Z
#!/usr/bin/env python from __future__ import print_function from optparse import OptionParser import os import random import subprocess import matplotlib matplotlib.use('Agg') import numpy as np import matplotlib.pyplot as plt import pysam from scipy.stats import binom from scipy.stats.mstats import mquantiles import...
34.527108
175
0.566693
1,567
11,463
3.943842
0.200383
0.02945
0.025243
0.024595
0.348706
0.256472
0.21699
0.180259
0.1411
0.118123
0
0.015555
0.242868
11,463
331
176
34.63142
0.696509
0.145686
0
0.254054
0
0
0.108553
0
0
0
0
0.003021
0
1
0.032432
false
0
0.07027
0
0.113514
0.07027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81617162fc6604315b045e09dee8878d1bf83430
4,826
py
Python
UI/test/ui_test.py
tunapro1234/ai.destroy
0c0e1be378e40ef069fcafaa91eb9c98de31520f
[ "MIT" ]
null
null
null
UI/test/ui_test.py
tunapro1234/ai.destroy
0c0e1be378e40ef069fcafaa91eb9c98de31520f
[ "MIT" ]
null
null
null
UI/test/ui_test.py
tunapro1234/ai.destroy
0c0e1be378e40ef069fcafaa91eb9c98de31520f
[ "MIT" ]
null
null
null
import pygame_gui import pygame class colors: black = "#000000" dimgrey = "#696969" # lmao darkslategray = "#2F4F4F" TITLE = "TUNAPRO1234" BACKGROUND = colors.darkslategray WIDTH, HEIGHT = 1920, 1080 """ Hızlıca bir plan yapacağım Neural ağları kontrol edebileceğimiz küçük bir framework Ağların geli...
33.282759
187
0.643804
559
4,826
5.370304
0.359571
0.056962
0.045303
0.051299
0.214857
0.17988
0.138574
0.117921
0.07495
0.051632
0
0.037828
0.233112
4,826
145
188
33.282759
0.773305
0.122462
0
0
0
0
0.06503
0
0
0
0
0
0
1
0.027397
false
0
0.027397
0
0.123288
0.068493
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8163184bea4450d8faedd6f3d068c99c6560b188
2,814
py
Python
tests/test_temperature_system.py
SmartSleepIoT/SmartSleepCoding
21c19489f0c477cbfbabd3a1d232f526f84a9e49
[ "BSD-3-Clause" ]
null
null
null
tests/test_temperature_system.py
SmartSleepIoT/SmartSleepCoding
21c19489f0c477cbfbabd3a1d232f526f84a9e49
[ "BSD-3-Clause" ]
41
2021-10-20T17:54:59.000Z
2022-02-02T20:43:53.000Z
tests/test_temperature_system.py
SmartSleepIoT/SmartSleepCoding
21c19489f0c477cbfbabd3a1d232f526f84a9e49
[ "BSD-3-Clause" ]
null
null
null
import time import pytest from flask import g from flask import session import paho.mqtt.client as paho from SmartSleep.db import get_db from flask import json import runpy msg_nr = 0 messages = [""] broker = 'broker.emqx.io' port = 1883 def update_contor(): global msg_nr msg_nr += 1 def on_message(client...
29.621053
105
0.646411
384
2,814
4.630208
0.203125
0.114736
0.148481
0.121485
0.634421
0.573116
0.573116
0.517998
0.495501
0.495501
0
0.049296
0.24307
2,814
94
106
29.93617
0.785446
0
0
0.486486
0
0
0.303235
0.105937
0
0
0
0
0.148649
1
0.040541
false
0
0.108108
0
0.148649
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81643c548f00589437ba73490093135a47e9e5d0
470
py
Python
readtest.py
pyEtherCAT/Test-Source
32e7f36873cf311580acc25ab76db589e209e479
[ "MIT" ]
null
null
null
readtest.py
pyEtherCAT/Test-Source
32e7f36873cf311580acc25ab76db589e209e479
[ "MIT" ]
null
null
null
readtest.py
pyEtherCAT/Test-Source
32e7f36873cf311580acc25ab76db589e209e479
[ "MIT" ]
null
null
null
from pyEtherCAT import MasterEtherCAT #ライブラリの読出し nic = "eth0" # ネットワークカードのアドレスを記載 cat = MasterEtherCAT.MasterEtherCAT(nic) ADP = 0x0000 #1台目 ADDR = 0x0E00 #コアレジスタのアドレス cat.APRD(IDX=0x00, ADP=ADP, ADO=ADDR, DATA=[0,0,0,0,0,0,0,0]) #DATAは0を8個(64bit分)の枠を指示 (DATA, WKC) = cat.socket_read() #結果を読出し print("[0x{:04X}]= 0x{:...
47
158
0.691489
78
470
4.153846
0.525641
0.04321
0.055556
0.061728
0.123457
0.123457
0.123457
0.098765
0.098765
0
0
0.13164
0.078723
470
10
159
47
0.616628
0.174468
0
0
0
0.125
0.196335
0.15445
0
0
0.041885
0
0
1
0
false
0
0.125
0
0.125
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
8167b0d56a737d008f46fbbcfb74a28e00ab2a2b
1,353
py
Python
python/dataingest/grammar/dmo/python_loc_parser.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/dataingest/grammar/dmo/python_loc_parser.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/dataingest/grammar/dmo/python_loc_parser.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- import pprint from base import BaseObject from base import FileIO class PythonLOCParser(BaseObject): """ Parse T/LOC from a Python File """ def __init__(self, file_path: str, is_debug: bool = False): """ C...
24.160714
103
0.554324
160
1,353
4.4125
0.4875
0.067989
0.067989
0
0
0
0
0
0
0
0
0.022148
0.332594
1,353
55
104
24.6
0.75969
0.209904
0
0
0
0
0.047475
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.333333
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8168288e7e0624056cb2c2cd06a6e71eb7b00f91
255
py
Python
time_series_data_generator/csv_to_df_generator.py
ArtHackDay-Plus1/ParameterServer
5e6e57154d2d29e311b9a725fd3b9ac8c5b99a74
[ "MIT" ]
null
null
null
time_series_data_generator/csv_to_df_generator.py
ArtHackDay-Plus1/ParameterServer
5e6e57154d2d29e311b9a725fd3b9ac8c5b99a74
[ "MIT" ]
7
2018-03-10T09:44:34.000Z
2018-06-17T09:44:59.000Z
time_series_data_generator/csv_to_df_generator.py
ArtHackDay-Plus1/ParameterServer
5e6e57154d2d29e311b9a725fd3b9ac8c5b99a74
[ "MIT" ]
1
2018-03-10T04:56:01.000Z
2018-03-10T04:56:01.000Z
import pandas as pd import time df = pd.read_csv("data/sample.csv") for num in range(1000): argx = str(df["x"][num:num+1].get_values()) argy = str(df["y"][num:num+1].get_values()) print("x:{0} / y:{1}".format(argx,argy)) time.sleep(0.1)
23.181818
47
0.611765
48
255
3.1875
0.5625
0.065359
0.091503
0.130719
0.20915
0
0
0
0
0
0
0.046729
0.160784
255
10
48
25.5
0.668224
0
0
0
0
0
0.117647
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
8169c20b93a9491060201043f0c1a523fd5bc8ec
1,924
py
Python
twister2/python-support/src/main/python/twister2/tset/TLink.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
63
2017-08-31T10:02:52.000Z
2021-12-18T21:42:14.000Z
twister2/python-support/src/main/python/twister2/tset/TLink.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
284
2017-10-20T15:35:26.000Z
2020-09-11T15:25:40.000Z
twister2/python-support/src/main/python/twister2/tset/TLink.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
44
2017-08-21T19:47:57.000Z
2020-11-22T22:45:50.000Z
from inspect import signature import twister2.tset.TSet as ts from twister2.utils import function_wrapper class TLink: def __init__(self, java_ref, env): self.__java_ref = java_ref self.__env = env def map(self, lam): map_wrapper = function_wrapper(lam) map_func_java_ref = s...
42.755556
96
0.72817
277
1,924
4.552347
0.184116
0.138779
0.122125
0.133228
0.514671
0.461538
0.373513
0.166535
0.088818
0.088818
0
0.001933
0.193347
1,924
44
97
43.727273
0.810567
0.0421
0
0
0
0
0
0
0
0
0
0
0
1
0.176471
false
0
0.088235
0
0.441176
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
816e5b3d645c0e4cb41592db326d16685c653103
9,373
py
Python
e2cnn/nn/modules/nonlinearities/concatenated.py
ziatdinovmax/e2cnn
e486a0d2cec71f2bde2d61f2f1315922f2883cee
[ "BSD-3-Clause" ]
null
null
null
e2cnn/nn/modules/nonlinearities/concatenated.py
ziatdinovmax/e2cnn
e486a0d2cec71f2bde2d61f2f1315922f2883cee
[ "BSD-3-Clause" ]
null
null
null
e2cnn/nn/modules/nonlinearities/concatenated.py
ziatdinovmax/e2cnn
e486a0d2cec71f2bde2d61f2f1315922f2883cee
[ "BSD-3-Clause" ]
null
null
null
from e2cnn.gspaces import * from e2cnn.nn import FieldType from e2cnn.nn import GeometricTensor from e2cnn.group import Representation from e2cnn.group.representation import build_from_discrete_group_representation from ..equivariant_module import EquivariantModule import torch from typing import List, Tuple, Any i...
37.047431
124
0.559159
1,038
9,373
4.968208
0.229287
0.019779
0.011635
0.010083
0.213496
0.154159
0.130308
0.114408
0.100446
0.100446
0
0.014372
0.36157
9,373
252
125
37.194444
0.847426
0.275365
0
0.128788
0
0
0.047968
0.003997
0
0
0
0
0.05303
1
0.045455
false
0
0.075758
0
0.166667
0.007576
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81710a8f5de8e268c2f9c31947a6e69ae41e9b04
2,551
py
Python
modules/gathering/host_gathering.py
anouarbensaad/VulnX
2f9f46e59f28ceb6d5cf3bfacd9810d43b4b25cb
[ "MIT" ]
10
2019-05-10T04:43:54.000Z
2019-05-16T00:45:46.000Z
modules/gathering/host_gathering.py
anouarbensaad/VulnX
2f9f46e59f28ceb6d5cf3bfacd9810d43b4b25cb
[ "MIT" ]
null
null
null
modules/gathering/host_gathering.py
anouarbensaad/VulnX
2f9f46e59f28ceb6d5cf3bfacd9810d43b4b25cb
[ "MIT" ]
8
2019-05-13T04:25:11.000Z
2019-05-15T02:47:49.000Z
import requests import re import socket from common.colors import bad,que, info, good,run,W,end from common.uriParser import parsing_url as hostd class GatherHost(): def __init__(self,url,headers=None): self.url = url self.headers = headers def match_info(self,regex,data): match ...
42.516667
95
0.53822
302
2,551
4.456954
0.307947
0.080238
0.071322
0.062407
0.037147
0.037147
0.037147
0.037147
0
0
0
0.01323
0.288906
2,551
60
96
42.516667
0.728776
0
0
0.058824
0
0
0.18221
0
0
0
0
0
0
1
0.098039
false
0
0.098039
0
0.235294
0.294118
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8173b9a0c93895ba388cef8eeda4fb14eb4184e3
15,988
py
Python
website/admin.py
jonfroehlich/makeabilitylabwebsite
0b322b5a172cf1d4edc63559e3de713ad3e3542c
[ "MIT" ]
2
2017-06-19T02:24:48.000Z
2018-10-25T09:14:59.000Z
website/admin.py
jonfroehlich/makeabilitylabwebsite
0b322b5a172cf1d4edc63559e3de713ad3e3542c
[ "MIT" ]
571
2017-06-14T13:38:45.000Z
2020-07-17T18:15:58.000Z
website/admin.py
jonfroehlich/makeabilitylabwebsite
0b322b5a172cf1d4edc63559e3de713ad3e3542c
[ "MIT" ]
7
2017-12-06T21:51:29.000Z
2020-06-18T19:58:36.000Z
from django.contrib import admin from django.contrib.admin import widgets from .models import Person, Publication, Position, Talk, Project, Poster, Keyword, News, Banner, Video, Project_header, Photo, Project_umbrella, Project_Role, Sponsor from website.admin_list_filters import PositionRoleListFilter, PositionTitleLis...
58.99631
185
0.714411
1,956
15,988
5.67638
0.199898
0.032784
0.02774
0.017563
0.49257
0.470143
0.440331
0.403765
0.387193
0.368819
0
0.010616
0.169252
15,988
270
186
59.214815
0.825328
0.315987
0
0.262195
0
0
0.18658
0.030468
0
0
0
0.003704
0
1
0.054878
false
0
0.097561
0
0.469512
0.036585
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8173fb74546ca4fcfb60600f03ab6b477c4abacb
6,191
py
Python
python/annotation_orthologs_inference.py
liebermanlab/wide-variant
2fe4c54d1e4bcf0e5e06313cc9696588ab105653
[ "Unlicense" ]
null
null
null
python/annotation_orthologs_inference.py
liebermanlab/wide-variant
2fe4c54d1e4bcf0e5e06313cc9696588ab105653
[ "Unlicense" ]
null
null
null
python/annotation_orthologs_inference.py
liebermanlab/wide-variant
2fe4c54d1e4bcf0e5e06313cc9696588ab105653
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jun 26 21:39:04 2019 @author: fmk """ import argparse,subprocess,string,random import pandas as pd ''' positional and optional argument parser''' parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter, ...
45.189781
182
0.65466
798
6,191
4.868421
0.33208
0.045302
0.046332
0.029601
0.165766
0.095238
0.095238
0.046847
0
0
0
0.014253
0.229365
6,191
137
183
45.189781
0.800042
0.225166
0
0.08
0
0.026667
0.206359
0.009816
0.013333
0
0
0
0
1
0.04
false
0
0.026667
0
0.12
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
81740534e476d32c799f65e43f16716d4ed45822
708
py
Python
tests/test_vtable.py
matthewpruett/angr
bfba2af1ea2eb941001339f47a1264a685c60eec
[ "BSD-2-Clause" ]
6,132
2015-08-06T23:24:47.000Z
2022-03-31T21:49:34.000Z
tests/test_vtable.py
matthewpruett/angr
bfba2af1ea2eb941001339f47a1264a685c60eec
[ "BSD-2-Clause" ]
2,272
2015-08-10T08:40:07.000Z
2022-03-31T23:46:44.000Z
tests/test_vtable.py
matthewpruett/angr
bfba2af1ea2eb941001339f47a1264a685c60eec
[ "BSD-2-Clause" ]
1,155
2015-08-06T23:37:39.000Z
2022-03-31T05:54:11.000Z
import os import angr test_location = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'binaries', 'tests') def test_vtable_extraction_x86_64(): p = angr.Project(os.path.join(test_location, "x86_64", "cpp_classes"), auto_load_libs=False) vtables_sizes = {0x403cb0: 24, 0x403cd8: 1...
32.181818
107
0.689266
91
708
5.021978
0.516484
0.052516
0.043764
0.100656
0.109409
0
0
0
0
0
0
0.109185
0.185028
708
21
108
33.714286
0.682842
0
0
0
0
0
0.061135
0
0
0
0.093159
0
0.214286
1
0.071429
false
0
0.142857
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81741edd16ac8dabfdb435a60121ed91382e9d89
465
py
Python
sendmail.py
loitd/buzreportgenerator
8d07be40b68859ca15173f3b229dd93f6bb39809
[ "MIT" ]
null
null
null
sendmail.py
loitd/buzreportgenerator
8d07be40b68859ca15173f3b229dd93f6bb39809
[ "MIT" ]
null
null
null
sendmail.py
loitd/buzreportgenerator
8d07be40b68859ca15173f3b229dd93f6bb39809
[ "MIT" ]
null
null
null
from zeep import Client def test(): client = Client('http://www.dneonline.com/calculator.asmx?wsdl') result = client.service.Add(100,220) print(result) def test2(): client = Client('http://172.16.237.11:8080/SendNotify_Interface_Gmail/services/Notify?wsdl') result = client.service.sendEmail("loitd...
33.214286
131
0.696774
62
465
5.064516
0.677419
0.076433
0.101911
0.146497
0
0
0
0
0
0
0
0.057214
0.135484
465
14
132
33.214286
0.723881
0
0
0.181818
0
0
0.422747
0.090129
0
0
0
0
0
1
0.181818
false
0
0.090909
0
0.272727
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
817503f7a5b9852ce0db8730044ea4170fe4eb91
13,998
py
Python
examples/map.py
jlsajfj/NBT
a7aaaadce423cd50f941ccd5cd25fbd071651336
[ "MIT" ]
241
2015-01-14T22:49:03.000Z
2022-03-17T06:46:44.000Z
examples/map.py
jlsajfj/NBT
a7aaaadce423cd50f941ccd5cd25fbd071651336
[ "MIT" ]
78
2015-01-02T15:01:06.000Z
2022-03-12T16:06:23.000Z
examples/map.py
jlsajfj/NBT
a7aaaadce423cd50f941ccd5cd25fbd071651336
[ "MIT" ]
87
2015-01-24T20:02:29.000Z
2022-03-17T21:32:24.000Z
#!/usr/bin/env python """ Prints a map of the entire world. """ import os, sys import math from struct import pack # local module try: import nbt except ImportError: # nbt not in search path. Let's see if it can be found in the parent folder extrasearchpath = os.path.realpath(os.path.join(__file__,os.pardi...
41.660714
128
0.473282
1,969
13,998
3.257491
0.225495
0.01029
0.014967
0.016838
0.246804
0.223262
0.155285
0.084814
0.039913
0.039913
0
0.080309
0.324832
13,998
335
129
41.785075
0.598349
0.211887
0
0.080508
0
0.004237
0.128587
0
0
0
0
0.002985
0
1
0.025424
false
0
0.042373
0
0.101695
0.033898
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8177b1f754a6ce02d1d064390b7211e8eae1df80
8,595
py
Python
femagtools/vtu.py
dapu/femagtools
95eaf750adc2013232cdf482e523b3900ac6eb08
[ "BSD-2-Clause" ]
null
null
null
femagtools/vtu.py
dapu/femagtools
95eaf750adc2013232cdf482e523b3900ac6eb08
[ "BSD-2-Clause" ]
null
null
null
femagtools/vtu.py
dapu/femagtools
95eaf750adc2013232cdf482e523b3900ac6eb08
[ "BSD-2-Clause" ]
null
null
null
""" femagtools.vtu ~~~~~~~~~~~~~~ Read FEMAG vtu files """ import vtk import pathlib import numpy as np class Reader(object): '''Class to read vtu-files''' def __init__(self, pathname): '''Read the vtu-files Parameters ---------- pathname : str Directo...
31.254545
83
0.52135
1,027
8,595
4.208374
0.118793
0.053679
0.04211
0.022906
0.490745
0.421101
0.364877
0.325544
0.255206
0.201758
0
0.006872
0.373589
8,595
274
84
31.368613
0.795877
0.20954
0
0.366667
0
0
0.017177
0
0
0
0
0
0
1
0.06
false
0
0.02
0
0.16
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81788a0ffc02bedb32998891f0a147adfc80c30e
1,507
py
Python
pymps/ansatz/tests/test_sweeper.py
GiggleLiu/pymps
c8314581010d68d3fa34af6e87b6af2969fc261d
[ "MIT" ]
4
2018-02-17T05:35:54.000Z
2021-09-12T10:14:57.000Z
pymps/ansatz/tests/test_sweeper.py
GiggleLiu/pymps
c8314581010d68d3fa34af6e87b6af2969fc261d
[ "MIT" ]
null
null
null
pymps/ansatz/tests/test_sweeper.py
GiggleLiu/pymps
c8314581010d68d3fa34af6e87b6af2969fc261d
[ "MIT" ]
null
null
null
#!/usr/bin/python ''' Tests for MPS and MPO ''' from numpy import * import matplotlib.pyplot as plt from numpy.testing import dec, assert_, assert_raises, assert_almost_equal, assert_allclose import pdb from ..sweep import * def test_iterator(): start = (1, '->', 2) stop = (3, '<-', 1) print('Testing ite...
31.395833
91
0.512276
219
1,507
3.415525
0.246575
0.02139
0.037433
0.048128
0.525401
0.454545
0.328877
0.328877
0.219251
0.219251
0
0.066489
0.251493
1,507
47
92
32.06383
0.596631
0.025216
0
0.222222
0
0
0.085558
0
0
0
0
0
0.138889
1
0.027778
false
0
0.138889
0
0.166667
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
8178e5a5cdd16d8a39e43e9f1e2b33dd9e55953c
4,471
py
Python
ui/numbered_menu.py
LouisPi/PiPortableRecorder
430a4b6e1e869cbd68fd89bbf97261710fd7db6b
[ "Apache-2.0", "MIT" ]
51
2017-12-03T21:59:13.000Z
2021-01-02T17:13:34.000Z
ui/numbered_menu.py
LouisPi/PiPortableRecorder
430a4b6e1e869cbd68fd89bbf97261710fd7db6b
[ "Apache-2.0", "MIT" ]
153
2017-10-27T19:59:46.000Z
2020-01-14T23:58:57.000Z
ui/numbered_menu.py
LouisPi/PiPortableRecorder
430a4b6e1e869cbd68fd89bbf97261710fd7db6b
[ "Apache-2.0", "MIT" ]
26
2017-11-16T11:10:56.000Z
2022-03-29T18:44:48.000Z
from threading import Lock from time import time from ui import Menu from ui.utils import clamp, check_value_lock, to_be_foreground class NumberedMenu(Menu): """ This Menu allows the user to jump to entries using the numpad. If the menu is 10 entries or less the navigation is instant. Otherwise, it lets ...
33.616541
116
0.635652
609
4,471
4.454844
0.262726
0.075194
0.076668
0.029488
0.265389
0.117951
0.101732
0.053815
0
0
0
0.010523
0.277343
4,471
132
117
33.871212
0.829155
0.191009
0
0.252747
0
0
0.01427
0
0
0
0
0
0
1
0.175824
false
0
0.043956
0.021978
0.351648
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8179e93b1b83227b20bf562f4c5eea1ac565d48c
358
py
Python
Math/RussianPeasantMultiplication.py
kopok2/algorithms
efb6a423a8447d99584335e9fef8d9b3c74e2ad8
[ "MIT" ]
null
null
null
Math/RussianPeasantMultiplication.py
kopok2/algorithms
efb6a423a8447d99584335e9fef8d9b3c74e2ad8
[ "MIT" ]
null
null
null
Math/RussianPeasantMultiplication.py
kopok2/algorithms
efb6a423a8447d99584335e9fef8d9b3c74e2ad8
[ "MIT" ]
null
null
null
# coding=utf-8 """Russian Peasant Multiplication algorithm Python implementation.""" def russ_peasant(a, b): res = 0 while b > 0: if b & 1: res += a a <<= 1 b >>= 1 return res if __name__ == '__main__': for x in range(10): for y in range(10): p...
18.842105
69
0.511173
52
358
3.326923
0.538462
0.034682
0.104046
0
0
0
0
0
0
0
0
0.043478
0.357542
358
18
70
19.888889
0.708696
0.215084
0
0
0
0
0.029091
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.166667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
817af60b313398519be2e69061cd3bf593b81217
2,972
py
Python
gluon/dal/adapters/teradata.py
lightcoder127/Web2py
d604816b487aaf758075805cffdb89f45dea906e
[ "BSD-3-Clause" ]
2
2017-02-02T00:31:48.000Z
2017-08-08T22:36:25.000Z
gluon/dal/adapters/teradata.py
crania/containerservices
0ffbadb3b5a259abc74ed433b69bf6342b99ef83
[ "BSD-3-Clause" ]
null
null
null
gluon/dal/adapters/teradata.py
crania/containerservices
0ffbadb3b5a259abc74ed433b69bf6342b99ef83
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from .._globals import IDENTITY from ..connection import ConnectionPool from .base import BaseAdapter class TeradataAdapter(BaseAdapter): drivers = ('pyodbc',) types = { 'boolean': 'CHAR(1)', 'string': 'VARCHAR(%(length)s)', 'text': 'VARCHAR(2000)', 'j...
38.102564
156
0.601615
357
2,972
4.845938
0.453782
0.025434
0.024277
0.028902
0.07052
0.07052
0.023121
0.023121
0.023121
0.023121
0
0.0217
0.25572
2,972
77
157
38.597403
0.760398
0.138627
0
0
0
0
0.26324
0.012554
0
0
0
0
0
1
0.096774
false
0.016129
0.048387
0.032258
0.258065
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
817bffa6766be54af974175321c8e15902437d0a
8,367
py
Python
conan_tests/external_tools/vswhere_test.py
conan-io/test
273835a701aca3934694dfa1ec082e58d5332660
[ "MIT" ]
2
2019-02-09T10:18:25.000Z
2020-12-15T22:22:03.000Z
conan_tests/external_tools/vswhere_test.py
conan-io/test
273835a701aca3934694dfa1ec082e58d5332660
[ "MIT" ]
9
2018-02-22T21:42:17.000Z
2020-10-16T03:54:19.000Z
conan_tests/external_tools/vswhere_test.py
conan-io/test
273835a701aca3934694dfa1ec082e58d5332660
[ "MIT" ]
7
2017-12-19T09:35:31.000Z
2020-09-23T16:17:59.000Z
import os import platform import unittest import nose from conans import tools from conans.errors import ConanException from conans.model.version import Version from conans import __version__ as client_version from conans.model import settings from conans.test.utils.tools import TestClient from conans.test.assets.vis...
45.472826
126
0.676826
947
8,367
5.795143
0.165787
0.068149
0.026057
0.032799
0.573069
0.540634
0.540634
0.531341
0.483601
0.37992
0
0.020748
0.216565
8,367
183
127
45.721311
0.816476
0.102546
0
0.387597
0
0
0.229526
0.069472
0
0
0
0
0.294574
1
0.046512
false
0
0.093023
0
0.186047
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
817dad7fd6fc56d0d2967576e42cee9331599cf9
7,797
py
Python
pinliner/pinliner.py
minazukie/pinliner
4d1f879a8df2b03e7335536735840274bbb26416
[ "Apache-2.0" ]
53
2016-03-29T10:30:41.000Z
2022-03-23T17:49:38.000Z
pinliner/pinliner.py
minazukie/pinliner
4d1f879a8df2b03e7335536735840274bbb26416
[ "Apache-2.0" ]
4
2017-07-21T15:21:54.000Z
2022-03-17T19:51:07.000Z
pinliner/pinliner.py
minazukie/pinliner
4d1f879a8df2b03e7335536735840274bbb26416
[ "Apache-2.0" ]
9
2017-07-21T18:05:45.000Z
2022-01-15T19:57:00.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import argparse import json import os from pinliner import __version__ import sys TEMPLATE_FILE = 'importer.template' TEMPLATE_PATTERN = '${CONTENTS}' def output(cfg, what, newline=True): # We need indentation for PEP8 cfg...
36.434579
79
0.62896
1,039
7,797
4.574591
0.262753
0.018935
0.025037
0.015148
0.131917
0.083526
0.078266
0.047549
0.020198
0
0
0.003662
0.264461
7,797
213
80
36.605634
0.821622
0.116455
0
0.052288
0
0
0.268211
0.003205
0
0
0
0
0
1
0.071895
false
0
0.078431
0.006536
0.196078
0.006536
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
817ee460ad53e44fa65e444a49afe839ce9a20b2
2,570
py
Python
GAScore/testbench/hold_buffer.py
sharm294/shoal
db7dd08a70882585fb9740a39b57b4b7a48b3081
[ "MIT" ]
1
2021-04-12T06:41:33.000Z
2021-04-12T06:41:33.000Z
GAScore/testbench/hold_buffer.py
UofT-HPRC/shoal
db7dd08a70882585fb9740a39b57b4b7a48b3081
[ "MIT" ]
null
null
null
GAScore/testbench/hold_buffer.py
UofT-HPRC/shoal
db7dd08a70882585fb9740a39b57b4b7a48b3081
[ "MIT" ]
null
null
null
import os from sonar.testbench import Testbench, Module, TestVector, Thread from sonar.interfaces import AXIS from sonar_strToInt import strToInt hold_buffer = Testbench.default('hold_buffer') filepath = os.path.join(os.path.dirname(__file__), 'build/hold_buffer/') dut = Module.default("DUT") dut.add_clock_port('ap...
27.934783
95
0.614008
343
2,570
4.250729
0.262391
0.061728
0.038409
0.034979
0.390947
0.237311
0.163237
0.163237
0.163237
0.113855
0
0.023629
0.077821
2,570
91
96
28.241758
0.591561
0.162257
0
0.1
0
0
0.146821
0
0
0
0.020182
0
0
1
0
false
0
0.066667
0
0.066667
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8180ea48ed0eaf64449e035d61a657bb7146e229
16,957
py
Python
vaxtools/utils/pair.py
menis/vaxtools
221343d0a2b9ecefc777ff5a94cb12eaa1524813
[ "MIT" ]
null
null
null
vaxtools/utils/pair.py
menis/vaxtools
221343d0a2b9ecefc777ff5a94cb12eaa1524813
[ "MIT" ]
null
null
null
vaxtools/utils/pair.py
menis/vaxtools
221343d0a2b9ecefc777ff5a94cb12eaa1524813
[ "MIT" ]
1
2018-10-10T21:59:08.000Z
2018-10-10T21:59:08.000Z
#!/usr/bin/env python # filename: pair.py # # Copyright (c) 2015 Bryan Briney # License: The MIT license (http://opensource.org/licenses/MIT) # # 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...
37.766147
109
0.606062
2,278
16,957
4.408253
0.156277
0.027783
0.023302
0.011153
0.33808
0.297351
0.253137
0.228042
0.197769
0.149572
0
0.003614
0.298284
16,957
448
110
37.850446
0.840323
0.319632
0
0.172535
0
0
0.045389
0
0
0
0
0
0
1
0.112676
false
0
0.028169
0.010563
0.214789
0.007042
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
818971d06d80952ffaa6249ad6fd01e66412f03b
30,912
py
Python
tests/random/random_testing.py
jkeiren/mCRL2
3a60939f4e6dbc131e8ce87b1929bea9dbf90dd2
[ "BSL-1.0" ]
61
2018-05-24T13:14:05.000Z
2022-03-29T11:35:03.000Z
tests/random/random_testing.py
jkeiren/mCRL2
3a60939f4e6dbc131e8ce87b1929bea9dbf90dd2
[ "BSL-1.0" ]
229
2018-05-28T08:31:09.000Z
2022-03-21T11:02:41.000Z
tests/random/random_testing.py
jkeiren/mCRL2
3a60939f4e6dbc131e8ce87b1929bea9dbf90dd2
[ "BSL-1.0" ]
28
2018-04-11T14:09:39.000Z
2022-02-25T15:57:39.000Z
#!/usr/bin/env python # Copyright 2015 Wieger Wesselink. # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) import os import os.path import random import re import sys import traceback sys.path += [os.path.abspath(os.path.join...
63.085714
280
0.606593
2,943
30,912
6.127761
0.137954
0.087169
0.074859
0.035766
0.491128
0.412166
0.332539
0.153377
0.1175
0.10092
0
0.006504
0.283773
30,912
489
281
63.214724
0.80804
0.040405
0
0.220297
0
0
0.141103
0.053803
0
0
0
0
0.007426
1
0.143564
false
0
0.032178
0.00495
0.294554
0.012376
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
818a52c58e57385fa71bcd403825bd6c6ac08eb9
15,748
py
Python
desktop/core/ext-py/josepy-1.1.0/src/josepy/json_util.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/josepy-1.1.0/src/josepy/json_util.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/josepy-1.1.0/src/josepy/json_util.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
"""JSON (de)serialization framework. The framework presented here is somewhat based on `Go's "json" package`_ (especially the ``omitempty`` functionality). .. _`Go's "json" package`: http://golang.org/pkg/encoding/json/ """ import abc import binascii import logging import OpenSSL import six from josepy import b64,...
32.672199
78
0.625921
1,861
15,748
5.187534
0.186459
0.017091
0.038533
0.011187
0.263932
0.218769
0.14999
0.140046
0.122851
0.101305
0
0.009044
0.269812
15,748
481
79
32.740125
0.830507
0.397955
0
0.27
0
0
0.038713
0
0
0
0
0
0
1
0.155
false
0
0.03
0.01
0.38
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
818c9c67cc31addec97fe43bfd97c54843bc6cf4
6,463
py
Python
norm/executable/schema/variable.py
reasoned-ai/norm
5e45d5917ce8745c9a757a0c6b5e689ea0cac19f
[ "Apache-2.0" ]
8
2019-07-22T08:57:20.000Z
2021-03-26T13:51:02.000Z
norm/executable/schema/variable.py
xumiao/norm
5e45d5917ce8745c9a757a0c6b5e689ea0cac19f
[ "Apache-2.0" ]
null
null
null
norm/executable/schema/variable.py
xumiao/norm
5e45d5917ce8745c9a757a0c6b5e689ea0cac19f
[ "Apache-2.0" ]
1
2019-11-16T13:37:35.000Z
2019-11-16T13:37:35.000Z
from norm.models.norm import Status, Lambda from norm.executable import NormExecutable from typing import Union, List import logging logger = logging.getLogger(__name__) class VariableName(NormExecutable): def __init__(self, scope, name): """ The variable and its scope :param scope: the ...
34.195767
116
0.597865
744
6,463
5.061828
0.155914
0.059745
0.026022
0.018056
0.364578
0.268455
0.215879
0.150558
0.150558
0.122942
0
0.001132
0.316726
6,463
188
117
34.37766
0.851676
0.076899
0
0.404412
0
0
0.001026
0
0
0
0
0.005319
0.044118
1
0.147059
false
0
0.066176
0.051471
0.426471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
818cc866ba9ab18156dde4bf30880a18007fbc03
3,318
py
Python
src/parserindexer/tika_parser.py
yyzhuang1991/parser-indexer-py
66847a6373d1fbc771e8ed9172a068731f9cd4da
[ "Apache-2.0" ]
8
2016-07-20T19:50:00.000Z
2020-09-15T01:56:51.000Z
src/parserindexer/tika_parser.py
yyzhuang1991/parser-indexer-py
66847a6373d1fbc771e8ed9172a068731f9cd4da
[ "Apache-2.0" ]
27
2016-08-01T13:39:25.000Z
2021-08-18T17:47:23.000Z
src/parserindexer/tika_parser.py
yyzhuang1991/parser-indexer-py
66847a6373d1fbc771e8ed9172a068731f9cd4da
[ "Apache-2.0" ]
3
2016-07-20T19:55:49.000Z
2021-08-06T16:19:48.000Z
from __future__ import print_function import os import sys import json import tika from tqdm import tqdm from utils import LogUtil from parser import Parser from ioutils import read_lines from tika import parser as tk_parser class TikaParser(Parser): """ The TikaParser class is wrapper of the Apache TIKA parse "...
31.6
80
0.611814
433
3,318
4.450346
0.293303
0.062273
0.060716
0.026466
0.099118
0.05397
0
0
0
0
0
0.000836
0.279084
3,318
104
81
31.903846
0.804766
0.066305
0
0.027397
0
0
0.207293
0.013798
0
0
0
0
0
1
0.054795
false
0
0.150685
0
0.232877
0.041096
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
818de49075c87063860cf616c4fbba1c27c95106
584
py
Python
py/server/deephaven/server/plugin/__init__.py
lbooker42/deephaven-core
2d04563f18ae914754b28041475c02770e57af15
[ "MIT" ]
null
null
null
py/server/deephaven/server/plugin/__init__.py
lbooker42/deephaven-core
2d04563f18ae914754b28041475c02770e57af15
[ "MIT" ]
null
null
null
py/server/deephaven/server/plugin/__init__.py
lbooker42/deephaven-core
2d04563f18ae914754b28041475c02770e57af15
[ "MIT" ]
null
null
null
# # Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending # import jpy _JCallbackAdapter = jpy.get_type('io.deephaven.server.plugin.python.CallbackAdapter') def initialize_all_and_register_into(callback: _JCallbackAdapter): try: from . import register except ModuleNotFoundError as e: ...
30.736842
116
0.717466
74
584
5.513514
0.689189
0.063725
0.078431
0.117647
0.176471
0.176471
0
0
0
0
0
0.017429
0.214041
584
18
117
32.444444
0.87146
0.309932
0
0
0
0
0.163728
0.123426
0
0
0
0
0
1
0.1
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
818e56826eb6b882afcd422dcb192ea6b72a334b
3,133
py
Python
mypy/test/testoutput.py
TimSimpsonR/mypy
5e6fd6335e0662b0477e1d678269f33e6f4194ba
[ "PSF-2.0" ]
1
2019-06-27T11:34:27.000Z
2019-06-27T11:34:27.000Z
mypy/test/testoutput.py
silky/mypy
de6a8d3710df9f49109cb682f2092e4967bfb92c
[ "PSF-2.0" ]
null
null
null
mypy/test/testoutput.py
silky/mypy
de6a8d3710df9f49109cb682f2092e4967bfb92c
[ "PSF-2.0" ]
null
null
null
"""Tests for parse tree pretty printing that preserves formatting Test case descriptions are in file test/data/output.test. """ import os.path import re from typing import Undefined, Any from mypy import build from mypy.myunit import Suite, run_test from mypy.test.helpers import assert_string_arrays_equal from mypy...
31.969388
79
0.578998
373
3,133
4.739946
0.38874
0.036199
0.024887
0.026018
0
0
0
0
0
0
0
0.000946
0.324928
3,133
97
80
32.298969
0.834988
0.205235
0
0
0
0
0.049393
0
0
0
0
0
0.030769
1
0.061538
false
0
0.184615
0.015385
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
81909aed2c8da07e00d68c36e16753bcc2a5f66d
2,395
py
Python
tests/test_SklearnDecisionTreeConverters.py
c-bata/sklearn-onnx
ff3e2eb204991b5799fc606c265b2c283dbfc25c
[ "MIT" ]
1
2019-05-06T20:54:02.000Z
2019-05-06T20:54:02.000Z
tests/test_SklearnDecisionTreeConverters.py
PossieMP/https-github.com-onnx-sklearn-onnx
48c60398d38e6937897d7c1506a8dcfcf28830a2
[ "MIT" ]
null
null
null
tests/test_SklearnDecisionTreeConverters.py
PossieMP/https-github.com-onnx-sklearn-onnx
48c60398d38e6937897d7c1506a8dcfcf28830a2
[ "MIT" ]
1
2020-04-09T07:46:52.000Z
2020-04-09T07:46:52.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import un...
38.015873
76
0.562004
198
2,395
6.383838
0.373737
0.126582
0.098892
0.114715
0.414557
0.378165
0.378165
0.378165
0.378165
0.378165
0
0.012441
0.295198
2,395
62
77
38.629032
0.736374
0.14572
0
0.42
0
0
0.249632
0.164296
0
0
0
0
0
1
0.04
false
0
0.12
0
0.18
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8190b06cbd6a99f76c275c7c5d6181dfe355ab0d
7,005
py
Python
tests/test_inference.py
MihailSalnikov/microscopeimagequality
22d1f7c7f6793a0ba6f64c2aea2bf3270c32301b
[ "Apache-2.0" ]
77
2017-10-30T19:34:06.000Z
2022-01-20T17:15:10.000Z
tests/test_inference.py
MihailSalnikov/microscopeimagequality
22d1f7c7f6793a0ba6f64c2aea2bf3270c32301b
[ "Apache-2.0" ]
3
2020-07-02T22:20:46.000Z
2021-08-25T14:39:43.000Z
tests/test_inference.py
MihailSalnikov/microscopeimagequality
22d1f7c7f6793a0ba6f64c2aea2bf3270c32301b
[ "Apache-2.0" ]
40
2017-12-22T01:21:13.000Z
2022-03-13T22:28:59.000Z
import logging import os import tempfile import PIL.Image import numpy import tensorflow import microscopeimagequality.constants import microscopeimagequality.data_provider import microscopeimagequality.evaluation import microscopeimagequality.prediction class Inference(tensorflow.test.TestCase): def setUp(self...
44.056604
125
0.63469
764
7,005
5.510471
0.215969
0.024228
0.023753
0.026603
0.487411
0.398337
0.381473
0.362233
0.352732
0.312827
0
0.025529
0.284226
7,005
158
126
44.335443
0.81412
0.008851
0
0.300752
0
0
0.031696
0.025789
0
0
0
0
0.06015
1
0.037594
false
0
0.075188
0
0.120301
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
8190c488725fd5780c71f8986d5214f9a0371832
498
py
Python
config.py
hiankun/qb_test
ab031d74d903cdb8845a033d290611b444a5abdb
[ "MIT" ]
4
2015-03-07T19:15:28.000Z
2021-01-24T15:13:30.000Z
config.py
hiankun/qb_test
ab031d74d903cdb8845a033d290611b444a5abdb
[ "MIT" ]
null
null
null
config.py
hiankun/qb_test
ab031d74d903cdb8845a033d290611b444a5abdb
[ "MIT" ]
1
2017-07-03T06:55:24.000Z
2017-07-03T06:55:24.000Z
""" QuickBot wiring config. Specifies which pins are used for motor control, IR sensors and wheel encoders. """ # Motor pins: (dir1_pin, dir2_pin, pwd_pin) RIGHT_MOTOR_PINS = 'P8_12', 'P8_10', 'P9_14' LEFT_MOTOR_PINS = 'P8_14', 'P8_16', 'P9_16' # IR sensors (clock-wise, starting with the rear left sensor): # rear-l...
23.714286
79
0.690763
84
498
3.833333
0.535714
0.083851
0.068323
0
0
0
0
0
0
0
0
0.097156
0.15261
498
20
80
24.9
0.665877
0.600402
0
0
0
0
0.353261
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
81977d254cadb7ee5093cb2ff32e221394f8fe36
8,455
py
Python
Miscellaneous/test_script_pymc3/multinominal.py
junpenglao/Planet_Sakaar_Data_Science
73d9605b91b774a56d18c193538691521f679f16
[ "MIT" ]
51
2018-04-08T19:53:15.000Z
2021-11-24T21:08:25.000Z
Miscellaneous/test_script_pymc3/multinominal.py
junpenglao/Planet_Sakaar_Data_Science
73d9605b91b774a56d18c193538691521f679f16
[ "MIT" ]
2
2018-05-29T20:50:37.000Z
2020-09-12T07:14:08.000Z
Miscellaneous/test_script_pymc3/multinominal.py
junpenglao/Planet_Sakaar_Data_Science
73d9605b91b774a56d18c193538691521f679f16
[ "MIT" ]
13
2018-07-21T09:53:10.000Z
2021-06-07T19:06:26.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Sep 11 13:30:53 2017 @author: laoj """ import numpy as np import pymc3 as pm import theano.tensor as tt from pymc3.distributions.distribution import Discrete, draw_values, generate_samples, infer_shape from pymc3.distributions.dist_math import bound, lo...
30.970696
135
0.543465
1,234
8,455
3.666937
0.213938
0.038011
0.045083
0.044199
0.380773
0.338343
0.322873
0.289061
0.24442
0.206409
0
0.12629
0.277942
8,455
273
136
30.970696
0.614906
0.110822
0
0.393035
0
0
0.007773
0
0
0
0
0
0.00995
1
0.049751
false
0
0.044776
0
0.154229
0.004975
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
819a9225919d23f1c377fd7749da7d7ea0d1e851
2,896
py
Python
src/implant/commands/__init__.py
diefans/debellator
44203174ef8e0702be577a9e08dedde40e3ce1fe
[ "Apache-2.0" ]
2
2018-09-08T00:04:43.000Z
2021-07-20T01:31:09.000Z
src/implant/commands/__init__.py
diefans/implant
44203174ef8e0702be577a9e08dedde40e3ce1fe
[ "Apache-2.0" ]
null
null
null
src/implant/commands/__init__.py
diefans/implant
44203174ef8e0702be577a9e08dedde40e3ce1fe
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Oliver Berger # # 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,...
28.96
85
0.648481
363
2,896
5.07989
0.421488
0.032538
0.02115
0.027657
0.173536
0.042299
0.042299
0.042299
0.042299
0
0
0.006013
0.253453
2,896
99
86
29.252525
0.846901
0.239641
0
0.169811
0
0
0.085136
0.013346
0
0
0.002761
0
0
1
0.037736
false
0
0.113208
0
0.358491
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
819c97d3aababb49d55ab8197540259628b81475
3,132
py
Python
CIM14/CPSM/Equipment/LoadModel/SubLoadArea.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
58
2015-04-22T10:41:03.000Z
2022-03-29T16:04:34.000Z
CIM14/CPSM/Equipment/LoadModel/SubLoadArea.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
12
2015-08-26T03:57:23.000Z
2020-12-11T20:14:42.000Z
CIM14/CPSM/Equipment/LoadModel/SubLoadArea.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
35
2015-01-10T12:21:03.000Z
2020-09-09T08:18:16.000Z
# Copyright (C) 2010-2011 Richard Lincoln # # 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, merge, publish...
36
129
0.685185
387
3,132
5.457364
0.392765
0.0625
0.045455
0.017045
0.132576
0.105114
0.070076
0.043561
0
0
0
0.004209
0.241379
3,132
86
130
36.418605
0.88468
0.461047
0
0.1
0
0
0.017252
0
0
0
0
0
0
1
0.175
false
0
0.025
0
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
819e28662a5c7fe45f90d593ee3b3db086815aa5
369
py
Python
bin/clean_pdb.py
caixiuhong/Stable-MCCE
186bdafdf1d631994b2cdd6ec6a548383f559929
[ "MIT" ]
null
null
null
bin/clean_pdb.py
caixiuhong/Stable-MCCE
186bdafdf1d631994b2cdd6ec6a548383f559929
[ "MIT" ]
null
null
null
bin/clean_pdb.py
caixiuhong/Stable-MCCE
186bdafdf1d631994b2cdd6ec6a548383f559929
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys HATOMS = ["HG", "HD", "HE", "HH"] lines = open(sys.argv[1]).readlines() for line in lines: if line[:6] == "ATOM " or line[:6] == "HETATM": if line[17:20] == "WAT": continue if line[13] == "H": continue if line[12:14] in HATOMS: ...
23.0625
52
0.490515
51
369
3.54902
0.686275
0.132597
0.154696
0
0
0
0
0
0
0
0
0.051587
0.317073
369
15
53
24.6
0.666667
0.054201
0
0.25
0
0
0.074713
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
819e7c6d0a67bfff73dacc1d420e6cd83f55ee9f
7,693
py
Python
old_logen/pylogen/OutputBook.py
leuschel/logen
0ea806f54628162615e25177c3ed98f6b2c27935
[ "Apache-2.0" ]
14
2015-10-16T11:35:30.000Z
2021-05-12T15:31:16.000Z
old_logen/pylogen/OutputBook.py
leuschel/logen
0ea806f54628162615e25177c3ed98f6b2c27935
[ "Apache-2.0" ]
null
null
null
old_logen/pylogen/OutputBook.py
leuschel/logen
0ea806f54628162615e25177c3ed98f6b2c27935
[ "Apache-2.0" ]
5
2015-10-16T12:44:41.000Z
2019-10-02T02:45:38.000Z
import Pmw import os import re from FastIndex import FastIndex, timer from PrologFrame import PrologFrame from TerminalFrame import TerminalFrame class OutputBook(Pmw.NoteBook): def __init__(self, master=None): self.app = master Pmw.NoteBook.__init__(self, self.app.bottom,createcommand=self.create...
34.191111
100
0.573508
949
7,693
4.454162
0.169652
0.09463
0.043057
0.038325
0.256447
0.162527
0.134138
0.072628
0.047788
0.047788
0
0.004662
0.302873
7,693
224
101
34.34375
0.783517
0.027688
0
0.111111
0
0
0.046319
0.002811
0
0
0
0
0
1
0.122807
false
0.011696
0.035088
0
0.192982
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
819fb9161fe72a4b226194ee2bfb3c7088844885
743
py
Python
vectorize.py
tomohiroando/recipe_gan
00f7418dfc5ee732e6d2de33d9c397e24f304864
[ "MIT" ]
null
null
null
vectorize.py
tomohiroando/recipe_gan
00f7418dfc5ee732e6d2de33d9c397e24f304864
[ "MIT" ]
null
null
null
vectorize.py
tomohiroando/recipe_gan
00f7418dfc5ee732e6d2de33d9c397e24f304864
[ "MIT" ]
null
null
null
import sys from gensim import models from gensim.models.doc2vec import LabeledSentence import pickle def corpus_to_sentences(corpus): sentences = [] for idx, (name, doc) in enumerate(corpus.items()): sys.stdout.write('\r前処理中 {}/{}'.format(idx, len(corpus))) sentence = LabeledSentence(words=doc...
28.576923
104
0.722746
102
743
5.166667
0.578431
0.085389
0.064516
0.087287
0
0
0
0
0
0
0
0.029734
0.139973
743
26
105
28.576923
0.794992
0
0
0
0
0
0.051075
0
0
0
0
0
0
1
0.052632
false
0
0.210526
0
0.315789
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
81a0eab42248c18facd3ce51c6e6f97ebfbcd166
6,206
py
Python
lxman/registry.py
stuxcrystal/lxman
ea0b44a8b9424b3489e393591f5384a986f583a3
[ "MIT" ]
1
2017-12-04T18:48:21.000Z
2017-12-04T18:48:21.000Z
lxman/registry.py
stuxcrystal/lxman
ea0b44a8b9424b3489e393591f5384a986f583a3
[ "MIT" ]
null
null
null
lxman/registry.py
stuxcrystal/lxman
ea0b44a8b9424b3489e393591f5384a986f583a3
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- from collections import UserDict from itertools import count import shutil import winreg import uuid PATH = "Software\\Microsoft\\Windows\\CurrentVersion\\Lxss" KEY = winreg.HKEY_CURRENT_USER class RegistryDescriptor(object): def __init__(self, name): self.name ...
30.875622
108
0.563165
660
6,206
5.112121
0.233333
0.026675
0.040308
0.013337
0.141375
0.077653
0.077653
0.063426
0.043865
0
0
0.006486
0.329198
6,206
200
109
31.03
0.803988
0.003706
0
0.205128
0
0.00641
0.088781
0.019228
0
0
0
0
0
1
0.173077
false
0
0.032051
0.038462
0.455128
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81a34a9a29a2bcf516df9f355478686bebdaa96b
25,235
py
Python
virtual/lib/python3.6/site-packages/debian/changelog.py
marknesh/pitches
0a480d9bc2beafaefa0121393b1502cc05edab89
[ "MIT" ]
null
null
null
virtual/lib/python3.6/site-packages/debian/changelog.py
marknesh/pitches
0a480d9bc2beafaefa0121393b1502cc05edab89
[ "MIT" ]
10
2020-03-08T21:13:29.000Z
2021-04-08T19:41:14.000Z
flask/lib/python3.6/site-packages/debian/changelog.py
JOFLIX/grapevines
34576e01184570d79cc140b42ffb71d322132da6
[ "MIT", "Unlicense" ]
null
null
null
# changelog.py -- Python module for Debian changelogs # Copyright (C) 2006-7 James Westby <jw+debian@jameswestby.net> # Copyright (C) 2008 Canonical Ltd. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Fo...
39.553292
80
0.559263
2,978
25,235
4.555406
0.151444
0.024326
0.017249
0.014448
0.308197
0.253354
0.216423
0.176544
0.133938
0.127009
0
0.007522
0.3362
25,235
637
81
39.615385
0.80234
0.148048
0
0.303797
0
0.010549
0.087014
0.021918
0
0
0
0.00157
0.00211
1
0.084388
false
0
0.018987
0.027426
0.204641
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81a49f3c33e13f260a839b1cda7b2ffc5e26f768
5,089
py
Python
miss_islington/util.py
webknjaz/miss-islington
51c38793b9ff95ecf4a3e98755a291120e7240cc
[ "Apache-2.0" ]
null
null
null
miss_islington/util.py
webknjaz/miss-islington
51c38793b9ff95ecf4a3e98755a291120e7240cc
[ "Apache-2.0" ]
1
2021-02-27T14:15:59.000Z
2021-02-27T14:15:59.000Z
miss_islington/util.py
webknjaz/miss-islington
51c38793b9ff95ecf4a3e98755a291120e7240cc
[ "Apache-2.0" ]
null
null
null
import requests import os import subprocess import gidgethub from gidgethub import sansio AUTOMERGE_LABEL = ":robot: automerge" def comment_on_pr(issue_number, message): """ Leave a comment on a PR/Issue """ request_headers = sansio.create_headers( "miss-islington", oauth_token=os.getenv("...
29.760234
86
0.660051
684
5,089
4.74269
0.283626
0.029593
0.018496
0.027127
0.313194
0.270654
0.258323
0.258323
0.258323
0.210851
0
0.008099
0.22362
5,089
170
87
29.935294
0.81144
0.121635
0
0.33913
0
0.008696
0.202276
0.058987
0
0
0
0
0
1
0.069565
false
0
0.043478
0
0.26087
0.052174
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81a67c33ee26043b2ddf70e19e7da7c69207a707
5,492
py
Python
dexp/processing/utils/scatter_gather_i2i.py
haesleinhuepf/dexp
2ea84f3db323724588fac565fae56f0d522bc5ca
[ "BSD-3-Clause" ]
16
2021-04-21T14:09:19.000Z
2022-03-22T02:30:59.000Z
dexp/processing/utils/scatter_gather_i2i.py
haesleinhuepf/dexp
2ea84f3db323724588fac565fae56f0d522bc5ca
[ "BSD-3-Clause" ]
28
2021-04-15T17:43:08.000Z
2022-03-29T16:08:35.000Z
dexp/processing/utils/scatter_gather_i2i.py
haesleinhuepf/dexp
2ea84f3db323724588fac565fae56f0d522bc5ca
[ "BSD-3-Clause" ]
3
2022-02-08T17:41:30.000Z
2022-03-18T15:32:27.000Z
from typing import Callable, Optional, Sequence, Tuple, Union import numpy from dexp.processing.utils.nd_slice import nd_split_slices, remove_margin_slice from dexp.processing.utils.normalise import Normalise from dexp.utils import xpArray from dexp.utils.backends import Backend def scatter_gather_i2i( function...
35.205128
110
0.667334
723
5,492
4.912863
0.255878
0.051239
0.040541
0.024775
0.194538
0.177365
0.13232
0.113739
0.091779
0.091779
0
0.001937
0.247997
5,492
155
111
35.432258
0.858111
0.437728
0
0.191176
0
0
0
0
0
0
0
0
0
1
0.029412
false
0
0.088235
0
0.132353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81a8ec6fd77ecb2b6c41666fc9f2b8378760daa6
3,759
py
Python
setup.py
wrmsr/omnibus
3c4ef5eb17b0fff8593fa6a2284337bf193c18d3
[ "BSD-3-Clause" ]
2
2020-06-17T19:54:09.000Z
2020-06-18T20:10:26.000Z
setup.py
wrmsr/omnibus
3c4ef5eb17b0fff8593fa6a2284337bf193c18d3
[ "BSD-3-Clause" ]
null
null
null
setup.py
wrmsr/omnibus
3c4ef5eb17b0fff8593fa6a2284337bf193c18d3
[ "BSD-3-Clause" ]
null
null
null
import fnmatch import glob import os import sys import setuptools.command.build_ext APPLE = sys.platform == 'darwin' BASE_DIR = os.path.dirname(__file__) ABOUT = {} def _read_about(): with open(os.path.join(BASE_DIR, 'omnibus', '__about__.py'), 'rb') as f: src = f.read() if sys.version_info[0...
24.096154
93
0.536313
370
3,759
5.181081
0.375676
0.018779
0.052165
0.045383
0.156495
0.156495
0.156495
0.065728
0
0
0
0.010081
0.313913
3,759
155
94
24.251613
0.73323
0.003724
0
0.12069
0
0
0.192359
0.012557
0
0
0
0
0
1
0.017241
false
0.008621
0.077586
0.008621
0.103448
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81ad78394864e547b6c74d97fef7b7beb9ca5228
1,793
py
Python
recipe_parser/recipes/thehappyfoodie.py
tyler-a-cox/recipe-parsing
fa883f66a39063cf72912527628b082cda455e76
[ "MIT" ]
null
null
null
recipe_parser/recipes/thehappyfoodie.py
tyler-a-cox/recipe-parsing
fa883f66a39063cf72912527628b082cda455e76
[ "MIT" ]
null
null
null
recipe_parser/recipes/thehappyfoodie.py
tyler-a-cox/recipe-parsing
fa883f66a39063cf72912527628b082cda455e76
[ "MIT" ]
null
null
null
from ._schema import DefaultSchema from ._utils import get_minutes, get_yields, normalize_string class TheHappyFoodie(DefaultSchema): @classmethod def host(cls): return "thehappyfoodie.co.uk" def title(self): return self.soup.find("h1", {"class": "main-title"}).get_text() def total_t...
28.919355
88
0.516453
166
1,793
5.307229
0.313253
0.099886
0.095346
0.085131
0.286039
0.286039
0.170261
0.136209
0.136209
0
0
0.000865
0.355271
1,793
61
89
29.393443
0.761246
0
0
0.156863
0
0
0.165644
0.081986
0
0
0
0
0
1
0.117647
false
0
0.039216
0.078431
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
81ae2fd5d9a2f3d3be912f6bccda2599695dd505
2,866
py
Python
Scopuli/WEB/DebugToolbar/Toolbar.py
MaxOnNet/scopuli-core-web
66a2c31b36d7fc05be36ba5d5b141644459b4aba
[ "Apache-2.0" ]
null
null
null
Scopuli/WEB/DebugToolbar/Toolbar.py
MaxOnNet/scopuli-core-web
66a2c31b36d7fc05be36ba5d5b141644459b4aba
[ "Apache-2.0" ]
null
null
null
Scopuli/WEB/DebugToolbar/Toolbar.py
MaxOnNet/scopuli-core-web
66a2c31b36d7fc05be36ba5d5b141644459b4aba
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright [2017] Tatarnikov Viktor [viktor@tatarnikov.org] # # 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/licen...
29.854167
97
0.63887
354
2,866
5
0.415254
0.056497
0.020339
0.018079
0.045198
0
0
0
0
0
0
0.004294
0.268667
2,866
95
98
30.168421
0.840172
0.239707
0
0.148148
0
0
0.065919
0.012155
0
0
0
0
0
1
0.111111
false
0.037037
0.185185
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
81ae89733812f04310f2f41f0ec35c6af756fb98
8,372
py
Python
CalculateLods.py
makeling/AGSSmartVectorTileTools
009d925f883729f98c0d0744e1d466062dc260e6
[ "Apache-2.0" ]
3
2019-02-19T06:14:03.000Z
2020-01-06T07:57:12.000Z
CalculateLods.py
makeling/AGSSmartVectorTileTools
009d925f883729f98c0d0744e1d466062dc260e6
[ "Apache-2.0" ]
null
null
null
CalculateLods.py
makeling/AGSSmartVectorTileTools
009d925f883729f98c0d0744e1d466062dc260e6
[ "Apache-2.0" ]
2
2019-03-25T09:43:30.000Z
2019-11-28T03:52:56.000Z
# -*- coding: utf-8 -*- # !/usr/bin/python __author__ = 'ma_keling' # Version : 1.0.0 # Start Time : 2018-11-29 # Update Time : # Change Log : ## 1. ## 2. ## 3. import time import arcpy import math def express_arcpy_error(): severity = arcpy.GetMaxSeverity() if severity =...
36.086207
121
0.568562
930
8,372
4.977419
0.205376
0.07129
0.032404
0.032404
0.348239
0.289911
0.267876
0.267876
0.244329
0.226183
0
0.023936
0.326326
8,372
231
122
36.242424
0.796809
0.136885
0
0.403727
0
0
0.097224
0
0
0
0
0
0
1
0.068323
false
0
0.018634
0
0.15528
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
81aef189550b2b54e321b9991b292a9ac7b3bfcb
5,133
py
Python
cardano-node-tests/cardano_node_tests/tests/test_configuration.py
MitchellTesla/Cardano-SCK
f394506eb0875622093805c009951f6905261778
[ "Apache-2.0" ]
6
2021-08-30T00:49:12.000Z
2022-01-27T07:07:53.000Z
cardano-node-tests/cardano_node_tests/tests/test_configuration.py
c-spider/Cardano-SCK
1accb0426289489e371eb67422ccb19ffaab5f3c
[ "Apache-2.0" ]
17
2021-08-31T23:27:44.000Z
2022-03-25T20:35:16.000Z
cardano-node-tests/cardano_node_tests/tests/test_configuration.py
c-spider/Cardano-SCK
1accb0426289489e371eb67422ccb19ffaab5f3c
[ "Apache-2.0" ]
3
2021-05-20T08:26:00.000Z
2022-03-27T22:31:36.000Z
"""Tests for node configuration.""" import json import logging import time from pathlib import Path import allure import pytest from _pytest.tmpdir import TempdirFactory from cardano_clusterlib import clusterlib from cardano_node_tests.utils import cluster_management from cardano_node_tests.utils import cluster_nodes...
33.116129
100
0.728034
676
5,133
5.235207
0.238166
0.040407
0.023736
0.022605
0.593953
0.543091
0.434021
0.412546
0.412546
0.380899
0
0.010745
0.184103
5,133
154
101
33.331169
0.834288
0.12254
0
0.372549
0
0
0.062135
0.031404
0
0
0
0
0.058824
1
0.088235
false
0
0.117647
0.019608
0.284314
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81b112f3d2024fef2d743717dabaf4db53727b51
661
py
Python
tests/functional_tests/test_camera.py
accessai/access-face-vision
04469ebc03ac9644a44bbdb90951f1821dca0f6d
[ "Apache-2.0" ]
3
2019-07-19T17:59:19.000Z
2019-07-21T16:07:43.000Z
tests/functional_tests/test_camera.py
accessai/access-face-vision
04469ebc03ac9644a44bbdb90951f1821dca0f6d
[ "Apache-2.0" ]
9
2019-07-19T17:38:11.000Z
2022-03-11T23:53:13.000Z
tests/functional_tests/test_camera.py
accessai/access-face-vision
04469ebc03ac9644a44bbdb90951f1821dca0f6d
[ "Apache-2.0" ]
1
2019-07-21T16:07:54.000Z
2019-07-21T16:07:54.000Z
from multiprocessing import Queue, Value from time import sleep from access_face_vision.source.camera import Camera from access_face_vision.utils import create_parser from access_face_vision import access_logger LOG_LEVEL = 'debug' logger, log_que, que_listener = access_logger.set_main_process_logger(LOG_LEVEL) def...
26.44
90
0.754917
94
661
4.957447
0.43617
0.064378
0.090129
0.128755
0
0
0
0
0
0
0
0.005338
0.149773
661
24
91
27.541667
0.823843
0
0
0
0
0
0.083207
0
0
0
0
0
0
1
0.055556
false
0
0.277778
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
81b36615a4cceca74102543564ca1a7f49b62e92
2,880
py
Python
src/triage/component/results_schema/alembic/versions/5dd2ba8222b1_add_run_type.py
josephbajor/triage_NN
cbaee6e5a06e597c91fec372717d89a2b5f34fa5
[ "MIT" ]
160
2017-06-13T09:59:59.000Z
2022-03-21T22:00:35.000Z
src/triage/component/results_schema/alembic/versions/5dd2ba8222b1_add_run_type.py
josephbajor/triage_NN
cbaee6e5a06e597c91fec372717d89a2b5f34fa5
[ "MIT" ]
803
2016-10-21T19:44:02.000Z
2022-03-29T00:02:33.000Z
src/triage/component/results_schema/alembic/versions/5dd2ba8222b1_add_run_type.py
josephbajor/triage_NN
cbaee6e5a06e597c91fec372717d89a2b5f34fa5
[ "MIT" ]
59
2017-01-31T22:10:22.000Z
2022-03-19T12:35:03.000Z
"""add run_type Revision ID: 5dd2ba8222b1 Revises: 079a74c15e8b Create Date: 2021-07-22 23:53:04.043651 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '5dd2ba8222b1' down_revision = '079a74c15e8b' branch_labels = None ...
48.813559
209
0.755556
371
2,880
5.552561
0.229111
0.142718
0.145631
0.128155
0.414563
0.291748
0.18932
0.107767
0.04466
0
0
0.019585
0.113542
2,880
58
210
49.655172
0.787309
0.048958
0
0
0
0
0.443956
0.124176
0
0
0
0
0
1
0.051282
false
0
0.076923
0
0.128205
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81b65c798718e0eb1c455ac640017cba04a70ce8
19,426
py
Python
txdav/common/datastore/upgrade/test/test_migrate.py
backwardn/ccs-calendarserver
13c706b985fb728b9aab42dc0fef85aae21921c3
[ "Apache-2.0" ]
462
2016-08-14T17:43:24.000Z
2022-03-17T07:38:16.000Z
txdav/common/datastore/upgrade/test/test_migrate.py
backwardn/ccs-calendarserver
13c706b985fb728b9aab42dc0fef85aae21921c3
[ "Apache-2.0" ]
72
2016-09-01T23:19:35.000Z
2020-02-05T02:09:26.000Z
txdav/common/datastore/upgrade/test/test_migrate.py
backwardn/ccs-calendarserver
13c706b985fb728b9aab42dc0fef85aae21921c3
[ "Apache-2.0" ]
171
2016-08-16T03:50:30.000Z
2022-03-26T11:49:55.000Z
## # Copyright (c) 2010-2017 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
37.357692
130
0.653197
1,871
19,426
6.741315
0.269909
0.011417
0.018552
0.017204
0.302941
0.24673
0.22231
0.187664
0.173393
0.173393
0
0.011184
0.249717
19,426
519
131
37.429672
0.854202
0.171935
0
0.244776
0
0
0.090856
0.020714
0
0
0
0.001927
0.077612
1
0.056716
false
0
0.068657
0
0.164179
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81b7304301ce82e40f227f18f20c21206d2e4a7b
5,745
py
Python
imagernn/generic_batch_generator.py
OnlyBelter/learn_neuralTalk
53c78962960e142bbd149eb92405029b795845ed
[ "MIT" ]
7
2019-03-18T10:19:11.000Z
2021-11-10T02:10:55.000Z
imagernn/generic_batch_generator.py
AllenMas/learn_neuralTalk
53c78962960e142bbd149eb92405029b795845ed
[ "MIT" ]
null
null
null
imagernn/generic_batch_generator.py
AllenMas/learn_neuralTalk
53c78962960e142bbd149eb92405029b795845ed
[ "MIT" ]
8
2017-11-17T08:54:51.000Z
2021-05-29T15:08:34.000Z
import numpy as np import code from imagernn.utils import merge_init_structs, initw, accumNpDicts from imagernn.lstm_generator import LSTMGenerator from imagernn.rnn_generator import RNNGenerator def decodeGenerator(generator): if generator == 'lstm': return LSTMGenerator if generator == 'rnn': return RNNG...
37.064516
131
0.673281
811
5,745
4.659679
0.297164
0.038105
0.03149
0.028579
0.057687
0.057687
0.046573
0.046573
0.046573
0.046573
0
0.005381
0.223673
5,745
154
132
37.305195
0.841928
0.305657
0
0.23
0
0
0.099669
0
0
0
0
0
0.01
1
0.05
false
0
0.05
0
0.17
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81b75b5619b0c3e8fbf77d44a083c297724d2365
6,110
py
Python
ConfigUpdater.py
godfatherlmh/LoLAnalyzer
0b265b33230316ab1a1459a9767ef7527a4a4f89
[ "MIT" ]
null
null
null
ConfigUpdater.py
godfatherlmh/LoLAnalyzer
0b265b33230316ab1a1459a9767ef7527a4a4f89
[ "MIT" ]
null
null
null
ConfigUpdater.py
godfatherlmh/LoLAnalyzer
0b265b33230316ab1a1459a9767ef7527a4a4f89
[ "MIT" ]
null
null
null
# Update the working patch and champions list from __future__ import print_function import configparser import json import os import urllib.request from datetime import datetime from slugify import slugify from collections import OrderedDict from InterfaceAPI import InterfaceAPI def run(): config = configparser...
54.553571
147
0.592635
744
6,110
4.810484
0.298387
0.010617
0.094999
0.03325
0.200615
0.176586
0.176586
0.115116
0.081587
0.063146
0
0.006526
0.222586
6,110
111
148
55.045045
0.746947
0.082651
0
0
0
0.021053
0.301877
0
0
0
0
0
0
1
0.021053
false
0
0.094737
0
0.126316
0.126316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81ba27f4241d7478bbc576ab7545d0bb01038c41
665
py
Python
ex115/biblioteca/interface/__init__.py
Danilo-Xaxa/python_curso_em_video
9a88e5f579dfc844f936b7759d33e4068b091f09
[ "MIT" ]
4
2021-08-29T02:19:55.000Z
2021-08-30T20:21:30.000Z
ex115/biblioteca/interface/__init__.py
Danilo-Xaxa/python_curso_em_video
9a88e5f579dfc844f936b7759d33e4068b091f09
[ "MIT" ]
null
null
null
ex115/biblioteca/interface/__init__.py
Danilo-Xaxa/python_curso_em_video
9a88e5f579dfc844f936b7759d33e4068b091f09
[ "MIT" ]
null
null
null
def LeiaInt(msg1): pronto = False while True: valor1 = input(msg1) if valor1.isnumeric(): pronto = True else: print('\033[1;31mERRO! FAVOR DIGITAR UM NÚMERO INTEIRO VÁLIDO\033[m') if pronto: break return valor1 def linha(tamanho=42): ...
20.78125
81
0.554887
87
665
4.241379
0.505747
0.04336
0
0
0
0
0
0
0
0
0
0.095652
0.308271
665
32
82
20.78125
0.706522
0
0
0.115385
0
0.038462
0.21021
0
0
0
0
0
0
1
0.153846
false
0
0
0.038462
0.269231
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
81bf3cce63eb0d81e1cb3c04efffcbc893d011ef
2,023
py
Python
app/fednlp/data/raw_data_loader/CNN_Dailymail/data_loader.py
ray-ruisun/FedML
24ff30d636bb70f64e94e9ca205375033597d3dd
[ "Apache-2.0" ]
null
null
null
app/fednlp/data/raw_data_loader/CNN_Dailymail/data_loader.py
ray-ruisun/FedML
24ff30d636bb70f64e94e9ca205375033597d3dd
[ "Apache-2.0" ]
null
null
null
app/fednlp/data/raw_data_loader/CNN_Dailymail/data_loader.py
ray-ruisun/FedML
24ff30d636bb70f64e94e9ca205375033597d3dd
[ "Apache-2.0" ]
null
null
null
import os from data.raw_data_loader.base.base_raw_data_loader import Seq2SeqRawDataLoader class RawDataLoader(Seq2SeqRawDataLoader): def __init__(self, data_path): super().__init__(data_path) self.cnn_path = "cnn/stories" self.dailymail_path = "dailymail/stories" def load_data(self)...
36.125
79
0.527435
240
2,023
4.191667
0.2875
0.047714
0.039761
0.029821
0.347913
0.326044
0.326044
0.326044
0.326044
0.326044
0
0.005542
0.37568
2,023
55
80
36.781818
0.790974
0
0
0.244898
0
0
0.032625
0
0
0
0
0
0.020408
1
0.061224
false
0
0.040816
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81c0253c14333698b3786f1e30f1b538f9b67736
1,384
py
Python
core/gf/test.py
zorrock/accelerated-text
942bacf653fc4c901748b06eaba72da4aeaaec9e
[ "Apache-2.0" ]
1
2021-05-05T01:37:51.000Z
2021-05-05T01:37:51.000Z
core/gf/test.py
zorrock/accelerated-text
942bacf653fc4c901748b06eaba72da4aeaaec9e
[ "Apache-2.0" ]
null
null
null
core/gf/test.py
zorrock/accelerated-text
942bacf653fc4c901748b06eaba72da4aeaaec9e
[ "Apache-2.0" ]
null
null
null
import pytest import server @pytest.fixture(scope="session") def authorship_grammar(): with open("test_grammars/Authorship.gf", "r") as f: abstract = {"content": f.read()} with open("test_grammars/AuthorshipEng.gf", "r") as f: inst = {"content": f.read(), "key": "Eng"} return serv...
32.186047
77
0.62211
157
1,384
5.382166
0.369427
0.12071
0.028402
0.047337
0.239053
0.066272
0
0
0
0
0
0.003752
0.229769
1,384
42
78
32.952381
0.788931
0
0
0
0
0
0.327549
0.041215
0
0
0
0
0.125
1
0.09375
false
0
0.0625
0
0.1875
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
81c086bf3828eec5887f2980268193fc09c2dd9d
3,126
py
Python
troposphere/validators/dynamodb.py
compose-x/troposphere
9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4
[ "BSD-2-Clause" ]
null
null
null
troposphere/validators/dynamodb.py
compose-x/troposphere
9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4
[ "BSD-2-Clause" ]
null
null
null
troposphere/validators/dynamodb.py
compose-x/troposphere
9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2012-2022, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from .. import AWSHelperFn, If def attribute_type_validator(x): """ Property: AttributeDefinition.AttributeType """ valid_types = ["S", "N", "B"] if x not in valid_types: ra...
29.214953
88
0.619962
357
3,126
5.271709
0.260504
0.047821
0.047821
0.021254
0.438363
0.408077
0.408077
0.38576
0.333156
0.299681
0
0.003534
0.275752
3,126
106
89
29.490566
0.827739
0.090531
0
0.378788
0
0
0.234267
0.063296
0
0
0
0
0
1
0.121212
false
0
0.015152
0
0.257576
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81c1bcd0f7ae70104609fcbc8c962b13a08d4c00
1,943
py
Python
modules/week2/utils.py
tobias-z/4-sem-python
35c0a73f0a2085f2dc539c8ec8761c26675aa078
[ "MIT" ]
null
null
null
modules/week2/utils.py
tobias-z/4-sem-python
35c0a73f0a2085f2dc539c8ec8761c26675aa078
[ "MIT" ]
null
null
null
modules/week2/utils.py
tobias-z/4-sem-python
35c0a73f0a2085f2dc539c8ec8761c26675aa078
[ "MIT" ]
null
null
null
from io import TextIOWrapper import os from typing import List OUTPUT = "files/output.csv" FOLDER = "modules/week2/folders" def get_file_names(folderpath, out=OUTPUT): """takes a path to a folder and writes all filenames in the folder to a specified output file""" dir_list = os.listdir(folderpath) with o...
34.696429
100
0.629439
286
1,943
4.129371
0.237762
0.035563
0.030483
0.038103
0.395428
0.360711
0.333616
0.333616
0.235394
0.235394
0
0.000706
0.270715
1,943
55
101
35.327273
0.832745
0.211529
0
0.27027
0
0
0.043161
0.013944
0
0
0
0
0
1
0.162162
false
0
0.081081
0
0.243243
0.108108
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81c234494317e86e4d284863eff810f848405889
4,480
py
Python
src/api/providers.py
ismetacar/ertis-auth
64727cc8201d5fcc955485e94262500d63ff4b17
[ "MIT" ]
17
2020-06-17T15:28:59.000Z
2021-09-21T19:18:14.000Z
src/api/providers.py
ismetacar/Ertis-Auth
5521eb8a0b11fca7c5ff2a4ecc6cc0b9af59aa8f
[ "MIT" ]
5
2020-06-17T21:22:56.000Z
2021-05-02T19:10:05.000Z
src/api/providers.py
ismetacar/Ertis-Auth
5521eb8a0b11fca7c5ff2a4ecc6cc0b9af59aa8f
[ "MIT" ]
2
2021-03-02T17:08:07.000Z
2021-04-07T18:11:59.000Z
import json from sanic import response from sanic_openapi import doc from src.plugins.authorization import authorized from src.plugins.validator import validated from src.request_models.providers import Provider from src.request_models.query_model import Query from src.resources.generic import ensure_membership_is_ex...
43.076923
104
0.705134
528
4,480
5.797348
0.168561
0.062725
0.052924
0.045737
0.608951
0.533159
0.500163
0.475335
0.431232
0.386475
0
0.00462
0.178571
4,480
103
105
43.495146
0.827174
0.042857
0
0.189189
0
0
0.135875
0.064079
0
0
0
0
0
1
0.013514
false
0
0.148649
0
0.22973
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81c3777bd3aa3fe5f25a3ee068f24e1720ba3426
3,290
py
Python
ccvpn/views/__init__.py
CCrypto/ccvpn
6bbfd01f41816bea905518f302f4cec474fdd221
[ "MIT" ]
81
2015-03-07T20:26:55.000Z
2016-05-16T10:22:05.000Z
ccvpn/views/__init__.py
CCrypto/ccvpn2
6bbfd01f41816bea905518f302f4cec474fdd221
[ "MIT" ]
1
2017-09-21T15:56:31.000Z
2017-11-30T15:10:56.000Z
ccvpn/views/__init__.py
CCrypto/ccvpn
6bbfd01f41816bea905518f302f4cec474fdd221
[ "MIT" ]
20
2015-03-07T22:36:46.000Z
2016-04-23T22:47:12.000Z
import codecs import markdown import os import logging from pyramid.view import view_config from pyramid.httpexceptions import HTTPOk, HTTPNotFound from sqlalchemy import func from mako.lookup import TemplateLookup import mako.exceptions logger = logging.getLogger(__name__) from ccvpn.models import DBSession, User, Ic...
33.571429
87
0.619149
398
3,290
4.982412
0.394472
0.030257
0.030257
0.038326
0.054463
0
0
0
0
0
0
0.006073
0.24924
3,290
97
88
33.917526
0.796761
0.001216
0
0.05
0
0
0.088029
0.00792
0
0
0
0
0
1
0.075
false
0
0.1375
0.0125
0.2875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81c43cdcda51abd9a7c25faabe42afd1a69a3e45
3,142
py
Python
rx/subjects/subject.py
MichaelSchneeberger/RxPY
994f974d37783f63c5d9e018a316fa9b06ba9337
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
rx/subjects/subject.py
MichaelSchneeberger/RxPY
994f974d37783f63c5d9e018a316fa9b06ba9337
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
rx/subjects/subject.py
MichaelSchneeberger/RxPY
994f974d37783f63c5d9e018a316fa9b06ba9337
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import threading from typing import Any, List, Optional from rx.disposable import Disposable from rx.core.typing import Observer, Scheduler from rx.core import Observable, typing from rx.internal import DisposedException from .anonymoussubject import AnonymousSubject from .innersubscription import InnerSubscription ...
28.825688
100
0.590707
331
3,142
5.507553
0.232628
0.032913
0.049918
0.043884
0.296764
0.278113
0.278113
0.233132
0.161273
0.161273
0
0
0.332272
3,142
108
101
29.092593
0.868923
0.15627
0
0.434783
0
0
0
0
0
0
0
0
0
1
0.115942
false
0
0.115942
0.014493
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81c467ca6111d33d242e6a5ccd32ee27968ad970
931
py
Python
scripts/uda.py
nng555/fairseq
c9730a125825a85f33042e1b9fd1959b8ca829e5
[ "MIT" ]
2
2020-10-05T08:52:01.000Z
2021-03-03T15:26:35.000Z
scripts/uda.py
nng555/fairseq
c9730a125825a85f33042e1b9fd1959b8ca829e5
[ "MIT" ]
null
null
null
scripts/uda.py
nng555/fairseq
c9730a125825a85f33042e1b9fd1959b8ca829e5
[ "MIT" ]
null
null
null
import os import hydra import subprocess import logging from omegaconf import DictConfig from hydra import slurm_utils log = logging.getLogger(__name__) @hydra.main(config_path='/h/nng/conf/robust/config.yaml', strict=False) def launch(cfg: DictConfig): os.environ['NCCL_DEBUG'] = 'INFO' if cfg.data.task in [...
29.09375
110
0.684211
137
931
4.481752
0.510949
0.068404
0.071661
0.042345
0
0
0
0
0
0
0
0.003851
0.163265
931
31
111
30.032258
0.784339
0
0
0
0
0
0.184748
0.095596
0
0
0
0
0
1
0.041667
false
0
0.25
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
81c5bce0c4d9254a207a213c3a227fa2fcf0908d
2,062
py
Python
06_Business/application_iris/app.py
MaryMP11/The_Bridge_School_DataScience_PT
8b4a24d0b79608061a470e806de542dbbcccf75d
[ "Apache-2.0" ]
null
null
null
06_Business/application_iris/app.py
MaryMP11/The_Bridge_School_DataScience_PT
8b4a24d0b79608061a470e806de542dbbcccf75d
[ "Apache-2.0" ]
null
null
null
06_Business/application_iris/app.py
MaryMP11/The_Bridge_School_DataScience_PT
8b4a24d0b79608061a470e806de542dbbcccf75d
[ "Apache-2.0" ]
null
null
null
from flask import Flask, request, jsonify, session, url_for, redirect, render_template import joblib from flower_form import FlowerForm classifier_loaded = joblib.load("application_iris/saved_models/knn_iris_dataset.pkl") encoder_loaded = joblib.load("application_iris/saved_models/iris_label_encoder.pkl") # predict...
32.21875
112
0.734724
232
2,062
6.297414
0.353448
0.034223
0.043806
0.035592
0.123203
0.097194
0.097194
0
0
0
0
0.007361
0.14355
2,062
64
113
32.21875
0.819932
0.131426
0
0
0
0
0.219293
0.057207
0
0
0
0
0
1
0.088235
false
0
0.088235
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
81c63070aaf168ec47a744d51e1a20dd220ae56b
8,522
py
Python
test.py
EdwinChan/python-physical
44383280acddd77b35adf8923b7d8cdb512553a0
[ "MIT" ]
2
2021-07-13T05:58:13.000Z
2021-08-19T04:37:57.000Z
test.py
EdwinChan/python-physical
44383280acddd77b35adf8923b7d8cdb512553a0
[ "MIT" ]
null
null
null
test.py
EdwinChan/python-physical
44383280acddd77b35adf8923b7d8cdb512553a0
[ "MIT" ]
null
null
null
import math import re import unittest import urllib.error import urllib.request from .core import Quantity from .define import defined_systems si = defined_systems['si'] esu = defined_systems['esu'] emu = defined_systems['emu'] gauss = defined_systems['gauss'] class PhysicalQuantitiesTest(unittest.TestCase): def a...
40.198113
74
0.602558
1,252
8,522
4.020767
0.163738
0.023838
0.054629
0.105085
0.516091
0.457688
0.418752
0.356774
0.335717
0.328963
0
0.04808
0.211687
8,522
211
75
40.388626
0.70125
0.00974
0
0.165775
0
0
0.132322
0.00498
0
0
0
0
0.304813
1
0.080214
false
0.005348
0.042781
0.010695
0.139037
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81c77ad5e87d4cea69ce9a40ad25f9768714ae45
3,828
py
Python
test/test_cirrus_ngs/test_cfnCluster/test_ConnectionManager.py
ucsd-ccbb/cirrus-ngs
8f51450b3d971b03d4fd08a1aab11d5a076aa23e
[ "MIT" ]
8
2017-01-20T00:00:45.000Z
2022-02-11T00:20:45.000Z
test/test_cirrus_ngs/test_cfnCluster/test_ConnectionManager.py
miko-798/cirrus-ngs
2c005f0fe29e298652ed2164e08ada75e908229b
[ "MIT" ]
3
2018-03-23T19:09:06.000Z
2018-03-26T19:49:55.000Z
test/test_cirrus_ngs/test_cfnCluster/test_ConnectionManager.py
miko-798/cirrus-ngs
2c005f0fe29e298652ed2164e08ada75e908229b
[ "MIT" ]
2
2018-03-29T06:24:31.000Z
2019-04-01T18:34:53.000Z
import unittest import sys import os sys.path.append(os.getcwd().replace("test", "src")) import cirrus_ngs.cfnCluster.ConnectionManager as ConnectionManager import paramiko import tempfile import re ##THIS TEST WILL NOT WORK## class test_ConnectionManager(unittest.TestCase): def test_paramiko(self): key_f...
35.775701
117
0.637931
448
3,828
5.287946
0.357143
0.035458
0.050654
0.064162
0.360068
0.238497
0.132968
0.120726
0.081891
0.081891
0
0.004454
0.237461
3,828
106
118
36.113208
0.807126
0.198537
0
0.262295
0
0
0.0614
0
0
0
0
0
0.163934
1
0.065574
false
0
0.114754
0
0.196721
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81c7caa0739efb8823c259206d2c89fc45540cae
3,166
py
Python
src/backend/opus/opusctl/cmds/process.py
DTG-FRESCO/opus
8975e154524802efead82794ab2f70d4a1611000
[ "Apache-2.0" ]
null
null
null
src/backend/opus/opusctl/cmds/process.py
DTG-FRESCO/opus
8975e154524802efead82794ab2f70d4a1611000
[ "Apache-2.0" ]
null
null
null
src/backend/opus/opusctl/cmds/process.py
DTG-FRESCO/opus
8975e154524802efead82794ab2f70d4a1611000
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Commands for launching processes with or without OPUS interposition. ''' from __future__ import absolute_import, division, print_function import argparse import os import psutil from .. import config, server_start, utils def get_current_shell(): ppid = os.getppid() parent = psuti...
31.979798
82
0.609602
387
3,166
4.767442
0.30491
0.068293
0.063415
0.039024
0.354472
0.354472
0.323035
0.298103
0.268835
0.227642
0
0.007306
0.265003
3,166
98
83
32.306122
0.785561
0.036008
0
0.302632
0
0
0.213675
0.007232
0
0
0
0
0
1
0.065789
false
0.026316
0.065789
0
0.157895
0.039474
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81c8df8164adec85e55f94629c0090d4dd609286
1,718
py
Python
tests/unit/l2_infrastructure/test_app_collection_config_parser.py
ansible-self-service/ansible-self-service
80840f02b68c6ba5fe6c55ab9a317b310c185b4d
[ "MIT" ]
null
null
null
tests/unit/l2_infrastructure/test_app_collection_config_parser.py
ansible-self-service/ansible-self-service
80840f02b68c6ba5fe6c55ab9a317b310c185b4d
[ "MIT" ]
null
null
null
tests/unit/l2_infrastructure/test_app_collection_config_parser.py
ansible-self-service/ansible-self-service
80840f02b68c6ba5fe6c55ab9a317b310c185b4d
[ "MIT" ]
null
null
null
import pytest from ansible_self_service.l2_infrastructure.app_collection_config_parser import AppCollectionConfigValidationException, \ YamlAppCollectionConfigParser from ansible_self_service.l4_core.models import AppCategory, App VALID_CATEGORY_NAME = 'Misc' VALID_ITEM_NAME = 'Cowsay' VALID_ITEM_DESCRIPTION = 'L...
33.038462
121
0.760186
203
1,718
6.123153
0.463054
0.043443
0.068383
0.035398
0.379726
0.297667
0.238134
0.183427
0.096541
0.096541
0
0.003434
0.152503
1,718
51
122
33.686275
0.850275
0
0
0.139535
0
0.046512
0.369034
0.052969
0
0
0
0
0.046512
1
0.046512
false
0.023256
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
81cb6312561698f081c8ea3ba400b666e569a740
740
py
Python
ethereumetl/mappers/event_mapper.py
thanhnv2303/ethereum-etl
94381feadf1f1602a95db44aea5e944559628271
[ "MIT" ]
null
null
null
ethereumetl/mappers/event_mapper.py
thanhnv2303/ethereum-etl
94381feadf1f1602a95db44aea5e944559628271
[ "MIT" ]
null
null
null
ethereumetl/mappers/event_mapper.py
thanhnv2303/ethereum-etl
94381feadf1f1602a95db44aea5e944559628271
[ "MIT" ]
null
null
null
from config.constant import ExportItemConstant, ExportItemTypeConstant, EventConstant, TransactionConstant from ethereumetl.service.eth_event_service import EthEvent class EthEventMapper(object): def eth_event_to_dict(self, eth_event: EthEvent): d1 = { ExportItemConstant.type: ExportItemTypeCo...
43.529412
106
0.731081
75
740
6.92
0.44
0.138728
0
0
0
0
0
0
0
0
0
0.006768
0.201351
740
16
107
46.25
0.871404
0
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
81cc09d97179b0455468e2dd08a57556c6ae600f
5,934
py
Python
openerp/addons/crm_partner_assign/wizard/crm_forward_to_partner.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
3
2016-01-29T14:39:49.000Z
2018-12-29T22:42:00.000Z
openerp/addons/crm_partner_assign/wizard/crm_forward_to_partner.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
2
2016-03-23T14:29:41.000Z
2017-02-20T17:11:30.000Z
openerp/addons/crm_partner_assign/wizard/crm_forward_to_partner.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). All Rights Reserved # $Id$ # # This program is free software: you can redistribute it and/or modify # ...
47.472
195
0.635322
757
5,934
4.792602
0.290621
0.027563
0.028666
0.044101
0.199008
0.120452
0.077729
0.050165
0
0
0
0.003898
0.221773
5,934
124
196
47.854839
0.781724
0.22666
0
0.16
0
0
0.206181
0.059963
0
0
0
0
0
1
0.08
false
0
0.026667
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
81cd30e6f9de401088d486d770c3328acf7f5008
5,033
py
Python
losses.py
DensenDavis/yolov5_tf2
5b2f38e3f0391e5beee1551a386e9b81512db179
[ "Unlicense" ]
null
null
null
losses.py
DensenDavis/yolov5_tf2
5b2f38e3f0391e5beee1551a386e9b81512db179
[ "Unlicense" ]
null
null
null
losses.py
DensenDavis/yolov5_tf2
5b2f38e3f0391e5beee1551a386e9b81512db179
[ "Unlicense" ]
null
null
null
import tensorflow as tf from tensorflow.keras.losses import binary_crossentropy,sparse_categorical_crossentropy from config import Configuration cfg = Configuration() class YOLOLoss(tf.losses.Loss): def __init__(self, anchors): super(YOLOLoss, self).__init__(reduction="none", name="YOLOLoss") self....
44.9375
98
0.587522
800
5,033
3.4225
0.17125
0.027757
0.024105
0.011687
0.187728
0.119065
0.086194
0.086194
0.086194
0.086194
0
0.041589
0.254719
5,033
111
99
45.342342
0.68835
0.133121
0
0.026667
0
0
0.002762
0
0
0
0
0
0
1
0.066667
false
0
0.04
0.013333
0.173333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81cd44adfb162f86e55541035a3d572728194cd3
2,235
py
Python
test/stress/mmlogic.py
dzlier-gcp/open-match
8db449b307468e20c9835cc22dcca9511c38025a
[ "Apache-2.0" ]
null
null
null
test/stress/mmlogic.py
dzlier-gcp/open-match
8db449b307468e20c9835cc22dcca9511c38025a
[ "Apache-2.0" ]
12
2019-08-10T00:37:58.000Z
2019-08-14T22:47:26.000Z
test/stress/mmlogic.py
dzlier-gcp/open-match
8db449b307468e20c9835cc22dcca9511c38025a
[ "Apache-2.0" ]
2
2019-08-10T00:31:54.000Z
2019-08-10T00:33:10.000Z
# Copyright 2019 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
35.47619
181
0.714541
305
2,235
5.147541
0.508197
0.038217
0.016561
0.020382
0.034395
0
0
0
0
0
0
0.017505
0.182103
2,235
62
182
36.048387
0.841357
0.380761
0
0.121212
0
0
0.137399
0.018369
0
0
0
0
0
1
0.090909
false
0
0.121212
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
81d18ed12d722ad07b48dba575ac241b64bc31f0
1,691
py
Python
setup.py
extensive-nlp/ttc_nlp
b84892b4f6856baf99d9a5975cdcbf2fe3b19b7a
[ "Apache-2.0" ]
null
null
null
setup.py
extensive-nlp/ttc_nlp
b84892b4f6856baf99d9a5975cdcbf2fe3b19b7a
[ "Apache-2.0" ]
null
null
null
setup.py
extensive-nlp/ttc_nlp
b84892b4f6856baf99d9a5975cdcbf2fe3b19b7a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Setup process.""" from io import open from os import path from setuptools import find_packages, setup with open( path.join(path.abspath(path.dirname(__file__)), "README.md"), encoding="utf-8" ) as f: long_description = f.read() setup( # Basic project inf...
28.661017
82
0.607333
202
1,691
4.99505
0.579208
0.059465
0.099108
0.077304
0
0
0
0
0
0
0
0.04549
0.232998
1,691
58
83
29.155172
0.73246
0.108811
0
0.043478
0
0
0.434783
0.032107
0
0
0
0
0
1
0
false
0
0.065217
0
0.065217
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81d9ca381791e7e9b4231c86815a9f9bf5fa4886
40,400
py
Python
kraken/ketos.py
zjsteyn/kraken
eaa9f4290db5425ddf80d0aebfa3944713558ab5
[ "Apache-2.0" ]
null
null
null
kraken/ketos.py
zjsteyn/kraken
eaa9f4290db5425ddf80d0aebfa3944713558ab5
[ "Apache-2.0" ]
null
null
null
kraken/ketos.py
zjsteyn/kraken
eaa9f4290db5425ddf80d0aebfa3944713558ab5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2015 Benjamin Kiessling # # 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 ...
47.251462
234
0.62146
5,039
40,400
4.89998
0.160151
0.032076
0.028553
0.024057
0.305253
0.227492
0.184399
0.167713
0.142562
0.133692
0
0.008727
0.242698
40,400
854
235
47.306792
0.798235
0.07255
0
0.186589
0
0.010204
0.219463
0.00852
0
0
0
0
0
1
0.01895
false
0.010204
0.080175
0
0.104956
0.010204
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81daacebc9755ed9fad67d0bb9146bb8f488fc5d
2,728
py
Python
util/visualize_loss.py
whq-hqw/detr_change
142f75cc5e0b59ca6e07928ddcbed3e461816611
[ "Apache-2.0" ]
2
2020-07-17T15:09:47.000Z
2020-11-20T13:52:48.000Z
util/visualize_loss.py
whq-hqw/detr_change
142f75cc5e0b59ca6e07928ddcbed3e461816611
[ "Apache-2.0" ]
null
null
null
util/visualize_loss.py
whq-hqw/detr_change
142f75cc5e0b59ca6e07928ddcbed3e461816611
[ "Apache-2.0" ]
null
null
null
from os.path import * import glob import json import numpy as np from util.plot_utils import plot_curves, plot_multi_loss_distribution TMPJPG = expanduser("~/Pictures/") def plot_multi_logs(exp_name, keys, save_name, epoch, addition_len): root_path = expanduser("/raid/dataset/detection/detr_exp") folder_cand...
38.422535
101
0.612903
372
2,728
4.236559
0.311828
0.055838
0.038071
0.050761
0.185279
0.185279
0.096447
0.096447
0
0
0
0.016667
0.252199
2,728
70
102
38.971429
0.755882
0
0
0.04918
0
0
0.113636
0.01173
0
0
0
0
0.016393
1
0.04918
false
0
0.081967
0
0.163934
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81dab8323f10c78c0bf2886a1ab5569f40f742ad
12,616
py
Python
tower_cli/resources/job.py
kedark3/tower-cli
487a1b9a8e96509798fee108e4f7d2c187177771
[ "Apache-2.0" ]
363
2015-01-14T17:48:34.000Z
2022-01-29T06:37:04.000Z
tower_cli/resources/job.py
kedark3/tower-cli
487a1b9a8e96509798fee108e4f7d2c187177771
[ "Apache-2.0" ]
703
2015-01-06T17:17:20.000Z
2020-09-16T15:54:17.000Z
tower_cli/resources/job.py
kedark3/tower-cli
487a1b9a8e96509798fee108e4f7d2c187177771
[ "Apache-2.0" ]
203
2015-01-18T22:38:23.000Z
2022-01-28T19:19:05.000Z
# Copyright 2015, Ansible, Inc. # Luke Sneeringer <lsneeringer@ansible.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
46.212454
112
0.611367
1,608
12,616
4.704602
0.228856
0.03926
0.018903
0.02115
0.221811
0.19696
0.14924
0.12505
0.085922
0.054726
0
0.002701
0.295815
12,616
272
113
46.382353
0.848829
0.323478
0
0.059211
0
0
0.227736
0.008967
0
0
0
0
0
1
0.006579
false
0.026316
0.052632
0
0.131579
0.006579
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81db0f62ce609e284136aef25e5f81fbdf1a0feb
1,643
py
Python
src/backend/expungeservice/models/charge_types/traffic_offense.py
april96415/recordexpungPDX
43ec60ddfb7fe1ec7940b2a38c6e7d7f85286506
[ "MIT" ]
38
2019-05-09T03:13:43.000Z
2022-03-16T22:59:25.000Z
src/backend/expungeservice/models/charge_types/traffic_offense.py
april96415/recordexpungPDX
43ec60ddfb7fe1ec7940b2a38c6e7d7f85286506
[ "MIT" ]
938
2019-05-02T15:13:21.000Z
2022-02-27T20:59:00.000Z
src/backend/expungeservice/models/charge_types/traffic_offense.py
april96415/recordexpungPDX
43ec60ddfb7fe1ec7940b2a38c6e7d7f85286506
[ "MIT" ]
65
2019-05-09T03:28:12.000Z
2022-03-21T00:06:39.000Z
from dataclasses import dataclass from typing import Any from expungeservice.models.charge import ChargeType from expungeservice.models.charge import ChargeUtil from expungeservice.models.expungement_result import TypeEligibility, EligibilityStatus @dataclass(frozen=True) class TrafficOffense(ChargeType): type_n...
45.638889
181
0.677419
186
1,643
5.962366
0.586022
0.050496
0.064923
0.054103
0.064923
0
0
0
0
0
0
0.011457
0.256239
1,643
35
182
46.942857
0.896072
0
0
0.064516
0
0.064516
0.468046
0
0
0
0
0
0
1
0.032258
false
0
0.16129
0
0.322581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81dc5fd1549c9df6ac26331817777ce1242a46e7
427
py
Python
PythonExercicio/ex081.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
PythonExercicio/ex081.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
PythonExercicio/ex081.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
valores = [] while True: num = int(input('Digite um valor: ')) valores.append(num) cont = str(input('Quer continuar? [S/N] ')).upper() if cont == 'N': break print(f'Você digitou {len(valores)} elememtos.') valores.sort(reverse=True) print(f'Os valores em ordem decrescente são {valores}') if 5 ...
26.6875
55
0.641686
66
427
4.151515
0.621212
0.043796
0.080292
0.087591
0
0
0
0
0
0
0
0.00885
0.206089
427
16
56
26.6875
0.79941
0
0
0
0
0
0.432243
0
0
0
0
0
0
1
0
false
0
0
0
0
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
81dc7fd7e49eea8472a8c802075bd5a03af475ce
10,670
py
Python
huobi/client/margin.py
codemonkey89/huobi_Python
92b96679f6e239c785df7c4354a0a94deda2768f
[ "Apache-2.0" ]
1
2021-09-06T00:09:11.000Z
2021-09-06T00:09:11.000Z
huobi/client/margin.py
codemonkey89/huobi_Python
92b96679f6e239c785df7c4354a0a94deda2768f
[ "Apache-2.0" ]
null
null
null
huobi/client/margin.py
codemonkey89/huobi_Python
92b96679f6e239c785df7c4354a0a94deda2768f
[ "Apache-2.0" ]
null
null
null
from huobi.utils.input_checker import * class MarginClient(object): def __init__(self, **kwargs): """ Create the request client instance. :param kwargs: The option of request connection. api_key: The public key applied from Huobi. secret_key: The private key appli...
36.541096
116
0.624649
1,124
10,670
5.72331
0.120996
0.032644
0.03482
0.044769
0.571273
0.531478
0.468055
0.420954
0.323799
0.287424
0
0
0.279944
10,670
292
117
36.541096
0.837303
0.271509
0
0.438849
0
0
0.074174
0
0
0
0
0
0
1
0.107914
false
0
0.107914
0
0.323741
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81dd1a8439621b09316ab23b0da1c48479109ea1
2,297
py
Python
vine/commit.py
robinson96/GRAPE
f6404ae6ee2933647e515a9480077ab01fb2c430
[ "BSD-3-Clause" ]
4
2017-04-30T17:08:42.000Z
2019-11-15T04:44:09.000Z
vine/commit.py
robinson96/GRAPE
f6404ae6ee2933647e515a9480077ab01fb2c430
[ "BSD-3-Clause" ]
1
2016-02-12T07:51:30.000Z
2016-02-12T07:51:30.000Z
vine/commit.py
robinson96/GRAPE
f6404ae6ee2933647e515a9480077ab01fb2c430
[ "BSD-3-Clause" ]
null
null
null
import os import option import grapeGit as git import grapeConfig import utility class Commit(option.Option): """ Usage: grape-commit [-m <message>] [-a | <filetree>] Options: -m <message> The commit message. -a Commit modified files that have not been staged. Arguments...
33.289855
134
0.573792
248
2,297
5.274194
0.403226
0.045872
0.027523
0.010703
0
0
0
0
0
0
0
0
0.315629
2,297
68
135
33.779412
0.832061
0.10579
0
0.104167
0
0.020833
0.172962
0
0
0
0
0
0
1
0.104167
false
0.020833
0.104167
0.020833
0.3125
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
81ddc6f0c5c1c51183abe91817be444c4671d793
2,743
py
Python
allopy/optimize/regret/abstract.py
wangcj05/allopy
0d97127e5132df1449283198143994b45fb11214
[ "MIT" ]
1
2021-04-06T04:33:03.000Z
2021-04-06T04:33:03.000Z
allopy/optimize/regret/abstract.py
wangcj05/allopy
0d97127e5132df1449283198143994b45fb11214
[ "MIT" ]
null
null
null
allopy/optimize/regret/abstract.py
wangcj05/allopy
0d97127e5132df1449283198143994b45fb11214
[ "MIT" ]
null
null
null
from abc import ABC from typing import List, Optional, Union import numpy as np from allopy import OptData from allopy.penalty import NoPenalty, Penalty __all__ = ["AbstractObjectiveBuilder", "AbstractConstraintBuilder"] class AbstractObjectiveBuilder(ABC): def __init__(self, data: List[OptData], cvar_data: Li...
40.338235
115
0.682829
366
2,743
4.942623
0.229508
0.066335
0.070757
0.031509
0.36042
0.332781
0.281924
0.281924
0.281924
0.225539
0
0.001418
0.228582
2,743
67
116
40.940299
0.853497
0
0
0.204082
0
0
0.160044
0.017864
0
0
0
0
0.142857
1
0.102041
false
0
0.102041
0.020408
0.306122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81de227f0a3f6458399634f490d77c2bd9c293a6
3,786
py
Python
dataset-processor3.py
Pawel762/class5-homework
8e48dcda1ed91b7a5e28bea6db13b2a82182e074
[ "MIT" ]
null
null
null
dataset-processor3.py
Pawel762/class5-homework
8e48dcda1ed91b7a5e28bea6db13b2a82182e074
[ "MIT" ]
null
null
null
dataset-processor3.py
Pawel762/class5-homework
8e48dcda1ed91b7a5e28bea6db13b2a82182e074
[ "MIT" ]
null
null
null
import os import pandas as pd import matplotlib.pyplot as plt wine_df = pd.read_csv(filepath_or_buffer='~/class5-homework/wine.data', sep=',', header=None) wine_df.columns = ['Class','Alcohol','Malic_Acid','Ash','Alcalinity_of_Ash','Magnesium', 'Total_Phenols','Flavanoid...
29.578125
88
0.744057
605
3,786
4.45124
0.115702
0.072781
0.057185
0.062384
0.53472
0.421834
0.401782
0.272558
0.199035
0.199035
0
0.01091
0.080032
3,786
127
89
29.811024
0.762274
0.14448
0
0.292135
0
0
0.43119
0.192917
0
0
0
0
0
1
0
false
0
0.033708
0
0.033708
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81e0b2153d543771f9ccb08bc53b840667a38757
7,451
py
Python
ares/attack/bim.py
KuanKuanQAQ/ares
40dbefc18f6438e1812021fe6d6c3195f22ca295
[ "MIT" ]
206
2020-12-31T09:43:11.000Z
2022-03-30T07:02:41.000Z
ares/attack/bim.py
afoolboy/ares
89610d41fdde194e4ad916d29961aaed73383692
[ "MIT" ]
7
2021-01-26T06:45:44.000Z
2022-02-26T05:25:48.000Z
ares/attack/bim.py
afoolboy/ares
89610d41fdde194e4ad916d29961aaed73383692
[ "MIT" ]
61
2020-12-29T14:02:41.000Z
2022-03-26T14:21:10.000Z
import tensorflow as tf import numpy as np from ares.attack.base import BatchAttack from ares.attack.utils import get_xs_ph, get_ys_ph, maybe_to_array, get_unit class BIM(BatchAttack): ''' Basic Iterative Method (BIM). A white-box iterative constraint-based method. Require a differentiable loss function and ...
53.992754
120
0.65414
1,062
7,451
4.379473
0.180791
0.030961
0.023651
0.018061
0.321006
0.223608
0.201032
0.149645
0.133735
0.119114
0
0.002999
0.239163
7,451
137
121
54.386861
0.817428
0.358341
0
0.052632
0
0
0.013475
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81e170cb1bf7f677e6d97334533f66e198b1aa28
3,148
py
Python
parasite/resolver.py
SGevorg/parasite
574b3992abeef03406524a94b6a8a2d662ca13e7
[ "MIT" ]
9
2020-09-21T11:21:01.000Z
2020-12-18T08:21:27.000Z
parasite/resolver.py
bittlingmayer/parasite
daac95eeaa19d5b05c0a3af076e364ca21708ff4
[ "MIT" ]
1
2020-11-21T09:45:45.000Z
2020-11-21T09:45:45.000Z
parasite/resolver.py
bittlingmayer/parasite
daac95eeaa19d5b05c0a3af076e364ca21708ff4
[ "MIT" ]
4
2020-11-21T09:08:30.000Z
2020-12-05T15:46:56.000Z
import numpy as np from functools import lru_cache from typing import Tuple class DynamicResolver: def __init__(self, matrix: np.ndarray, *, num_src_lines: int = None, num_tgt_lines: int = None, max_k: int = 3, ...
32.453608
80
0.55432
400
3,148
4.055
0.1625
0.098644
0.064118
0.066584
0.217016
0.086313
0.032059
0.032059
0
0
0
0.012079
0.368806
3,148
96
81
32.791667
0.804227
0
0
0.12
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0.08
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
81e2d167ec9fa89c74b62f2bf234fc1429ff2619
3,864
py
Python
utils/preprocess.py
Deep-MI/3d-neuro-seg
57cc1e16e5ecbef8caf9f6f1e735a0e7339d1152
[ "Apache-2.0" ]
null
null
null
utils/preprocess.py
Deep-MI/3d-neuro-seg
57cc1e16e5ecbef8caf9f6f1e735a0e7339d1152
[ "Apache-2.0" ]
null
null
null
utils/preprocess.py
Deep-MI/3d-neuro-seg
57cc1e16e5ecbef8caf9f6f1e735a0e7339d1152
[ "Apache-2.0" ]
null
null
null
import numpy as np """ Contains preprocessing code for creating additional information based on MRI volumes and true segmentation maps (asegs). Eg. weight masks for median frequency class weighing, edge weighing etc. """ def create_weight_mask(aseg): """ Main function for calculating weight mask of segmentati...
35.777778
120
0.646222
561
3,864
4.327986
0.42246
0.037068
0.009885
0.014415
0.157743
0.11944
0.102142
0.102142
0.102142
0.102142
0
0.101305
0.246377
3,864
107
121
36.11215
0.732486
0.473602
0
0.243243
0
0
0
0
0
0
0
0
0
1
0.081081
false
0
0.027027
0
0.189189
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
81e2ef476be7e9c25d158962fb2d60491bb44e8a
4,381
py
Python
test/test_oneview_hypervisor_cluster_profile_facts.py
nabhajit-ray/oneview-ansible
b31af8a696013bac7a1900748a2fa5ba491fe8e2
[ "Apache-2.0" ]
108
2016-06-28T18:14:08.000Z
2022-02-21T09:16:06.000Z
test/test_oneview_hypervisor_cluster_profile_facts.py
HPE-Japan-Presales/oneview-ansible
26eb13354333d862d9e80f07e3fe9bbe2eb59af3
[ "Apache-2.0" ]
248
2016-07-14T12:50:17.000Z
2022-02-06T18:57:16.000Z
test/test_oneview_hypervisor_cluster_profile_facts.py
HPE-Japan-Presales/oneview-ansible
26eb13354333d862d9e80f07e3fe9bbe2eb59af3
[ "Apache-2.0" ]
88
2016-06-29T15:52:44.000Z
2022-03-10T12:34:41.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- ### # Copyright (2016-2020) Hewlett Packard Enterprise Development LP # # 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/licen...
35.048
115
0.71947
521
4,381
5.715931
0.270633
0.090665
0.117529
0.042982
0.496306
0.474144
0.474144
0.43687
0.349899
0.349899
0
0.012419
0.191281
4,381
124
116
35.330645
0.828112
0.156357
0
0.220779
0
0
0.135519
0.046175
0
0
0
0
0.064935
1
0.051948
false
0
0.064935
0
0.12987
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81e5c39849311e6837ffa50cd43accfe28aa75bf
1,339
py
Python
utils/predictions.py
jaingaurav3/ML_sample
4e53de198f7965fa96f0db44717df27032df4b48
[ "MIT" ]
19
2018-06-08T05:33:47.000Z
2021-04-26T16:19:32.000Z
utils/predictions.py
jaingaurav3/ML_sample
4e53de198f7965fa96f0db44717df27032df4b48
[ "MIT" ]
null
null
null
utils/predictions.py
jaingaurav3/ML_sample
4e53de198f7965fa96f0db44717df27032df4b48
[ "MIT" ]
13
2018-09-24T21:52:06.000Z
2021-02-26T10:40:25.000Z
import os import scipy import numpy as np import pandas as pd import torch from torch.autograd import Variable def predict_batch(net, inputs): v = Variable(inputs.cuda(), volatile=True) return net(v).data.cpu().numpy() def get_probabilities(model, loader): model.eval() return np.vstack(predict_batch...
25.264151
70
0.630321
189
1,339
4.42328
0.402116
0.028708
0.028708
0.035885
0.045455
0.045455
0
0
0
0
0
0.017734
0.241972
1,339
53
71
25.264151
0.805911
0
0
0
0
0
0.01791
0
0
0
0
0
0
1
0.146341
false
0
0.146341
0
0.487805
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
81e6447d74e137ba6ed7fb43a3550f34c92da3a7
2,876
py
Python
aict_tools/scripts/plot_regressor_performance.py
LukasBeiske/aict-tools
ccf61c051c58040cf4b676180ae7184021d1b81b
[ "MIT" ]
null
null
null
aict_tools/scripts/plot_regressor_performance.py
LukasBeiske/aict-tools
ccf61c051c58040cf4b676180ae7184021d1b81b
[ "MIT" ]
null
null
null
aict_tools/scripts/plot_regressor_performance.py
LukasBeiske/aict-tools
ccf61c051c58040cf4b676180ae7184021d1b81b
[ "MIT" ]
null
null
null
import click import logging import matplotlib import matplotlib.pyplot as plt import joblib import fact.io from ..configuration import AICTConfig from ..plotting import ( plot_regressor_confusion, plot_bias_resolution, plot_feature_importances, ) if matplotlib.get_backend() == 'pgf': from matplotlib.b...
30.924731
83
0.691586
373
2,876
5.142091
0.289544
0.045881
0.05318
0.039625
0.427529
0.412409
0.376955
0.376955
0.376955
0.376955
0
0.009087
0.196453
2,876
92
84
31.26087
0.820857
0.047288
0
0.291667
0
0
0.094139
0
0
0
0
0
0
1
0.013889
false
0
0.180556
0
0.194444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
c48ce6625a976f83a24cccf09278351389aa811f
3,991
py
Python
CGAT/Sra.py
861934367/cgat
77fdc2f819320110ed56b5b61968468f73dfc5cb
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
CGAT/Sra.py
861934367/cgat
77fdc2f819320110ed56b5b61968468f73dfc5cb
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
CGAT/Sra.py
861934367/cgat
77fdc2f819320110ed56b5b61968468f73dfc5cb
[ "BSD-2-Clause", "BSD-3-Clause" ]
1
2019-08-04T22:46:38.000Z
2019-08-04T22:46:38.000Z
########################################################################## # # MRC FGU Computational Genomics Group # # $Id$ # # Copyright (C) 2009 Andreas Heger # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by ...
32.447154
82
0.607367
543
3,991
4.432781
0.388582
0.046531
0.013295
0.023681
0.133361
0.122559
0.068966
0.068966
0.057333
0.029082
0
0.01648
0.23979
3,991
122
83
32.713115
0.776862
0.574793
0
0.166667
0
0
0.164927
0
0
0
0
0
0.027778
1
0.055556
false
0.027778
0.194444
0
0.305556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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