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
c6820f740d521952eaab4345fdd7330901b2b53c
1,633
py
Python
examples/original-paper/example-anchor-rotate.py
aengelke/z-plot
63e4e6656355b608487a3e4df5da13b7fad9b108
[ "BSD-3-Clause" ]
22
2016-10-19T15:02:22.000Z
2021-12-23T12:40:37.000Z
examples/original-paper/example-anchor-rotate.py
aengelke/z-plot
63e4e6656355b608487a3e4df5da13b7fad9b108
[ "BSD-3-Clause" ]
4
2017-04-16T03:15:48.000Z
2020-10-28T11:36:35.000Z
examples/original-paper/example-anchor-rotate.py
aengelke/z-plot
63e4e6656355b608487a3e4df5da13b7fad9b108
[ "BSD-3-Clause" ]
11
2017-01-18T02:41:57.000Z
2021-12-28T02:21:30.000Z
#! /usr/bin/env python from zplot import * # describe the drawing surface import sys ctype = 'eps' if len(sys.argv) < 2 else sys.argv[1] c = canvas(ctype, title='example-anchor-rotate', dimensions=[200,300]) y = 80 s = 80 x = 10 c.text(coord=[x,y], anchor='l,l', text='Anchor Is l,l', size=10, rotate=90) c.text(coo...
35.5
79
0.652174
323
1,633
3.297214
0.176471
0.101408
0.11831
0.090141
0.686385
0.686385
0.635681
0.635681
0.635681
0.635681
0
0.038199
0.102266
1,633
45
80
36.288889
0.688267
0.052664
0
0.321429
0
0
0.144156
0.013636
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c68370c93c0fbae9e91627449e95c1484e40f449
428
py
Python
generate/LSTM/list_to_gcode_conversion_merge.py
opendot/3Deeprinting
a2a3ab5ba9abe9af1da9805d0d1b4ab0dfb21971
[ "MIT" ]
null
null
null
generate/LSTM/list_to_gcode_conversion_merge.py
opendot/3Deeprinting
a2a3ab5ba9abe9af1da9805d0d1b4ab0dfb21971
[ "MIT" ]
null
null
null
generate/LSTM/list_to_gcode_conversion_merge.py
opendot/3Deeprinting
a2a3ab5ba9abe9af1da9805d0d1b4ab0dfb21971
[ "MIT" ]
null
null
null
data = open('output_dataset_ALL.txt').readlines() original = open('dataset_ALL.txt').readlines() #data = open('dataset.txt').readlines() out = open('output_gcode_merged.gcode', 'w') for j in range(len(data)/4): i = j*4 x = data[i].strip() y = data[i+1].strip() z = original[i+2].strip() e = original...
28.533333
80
0.558411
71
428
3.295775
0.43662
0.153846
0.111111
0.188034
0
0
0
0
0
0
0
0.025862
0.186916
428
14
81
30.571429
0.646552
0.088785
0
0
0
0
0.192802
0.120823
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c685524b979f5e8a58aba858878235e7aa2e57b9
4,724
py
Python
app/user/tests/test_users_api.py
amirmallaei/recipe-app-api
d4f705b4ed309c3bb6905861d428683d0dc9a65e
[ "MIT" ]
null
null
null
app/user/tests/test_users_api.py
amirmallaei/recipe-app-api
d4f705b4ed309c3bb6905861d428683d0dc9a65e
[ "MIT" ]
null
null
null
app/user/tests/test_users_api.py
amirmallaei/recipe-app-api
d4f705b4ed309c3bb6905861d428683d0dc9a65e
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework.test import APIClient from rest_framework import status CREATE_USER_URL = reverse('user:create') TOKEN_URL = reverse('user:token') ME_URL = reverse('user:me') def create_user(**params...
34.735294
78
0.656224
596
4,724
5.003356
0.199664
0.046948
0.072435
0.088531
0.460429
0.448692
0.385983
0.349095
0.321932
0.289738
0
0.009217
0.219094
4,724
135
79
34.992593
0.799133
0.112828
0
0.313953
0
0
0.095273
0
0
0
0
0
0.244186
1
0.162791
false
0.162791
0.05814
0.011628
0.255814
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c687d3daf9288281ccfc373accd890924c10d9bd
9,163
py
Python
rdf_io/migrations/0003_auto_20180531_1517.py
Ircam-Web/django-rdf-io
5854fb5e57e92103595c95914c0adb092059dd89
[ "CC0-1.0" ]
null
null
null
rdf_io/migrations/0003_auto_20180531_1517.py
Ircam-Web/django-rdf-io
5854fb5e57e92103595c95914c0adb092059dd89
[ "CC0-1.0" ]
null
null
null
rdf_io/migrations/0003_auto_20180531_1517.py
Ircam-Web/django-rdf-io
5854fb5e57e92103595c95914c0adb092059dd89
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.11 on 2018-05-31 13:17 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import rdf_io.models class Migration(migrations.Migration): dependencies = [ ('rdf_io', '0002_auto_20170810_2351'), ...
68.894737
797
0.657099
1,073
9,163
5.468779
0.246039
0.048739
0.011929
0.033742
0.424335
0.353613
0.251363
0.207907
0.177744
0.153545
0
0.01409
0.217723
9,163
132
798
69.416667
0.804548
0.007421
0
0.504
1
0.056
0.365816
0.019908
0
0
0
0
0
1
0
false
0
0.056
0
0.08
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c68a10c731b569300b0fb8f4ee67a1937ff778f5
6,469
py
Python
ver1_0/openassembly/oa_dashboard/views.py
fragro/Open-Assembly
e9679ff5e7ae9881fa5781d763288ed2f40b014d
[ "BSD-3-Clause" ]
1
2015-11-05T08:22:19.000Z
2015-11-05T08:22:19.000Z
ver1_0/openassembly/oa_dashboard/views.py
fragro/Open-Assembly
e9679ff5e7ae9881fa5781d763288ed2f40b014d
[ "BSD-3-Clause" ]
null
null
null
ver1_0/openassembly/oa_dashboard/views.py
fragro/Open-Assembly
e9679ff5e7ae9881fa5781d763288ed2f40b014d
[ "BSD-3-Clause" ]
1
2018-02-03T18:25:41.000Z
2018-02-03T18:25:41.000Z
from django.http import HttpResponse import simplejson import BeautifulSoup from oa_dashboard.tasks import async_sort_board, async_del_board, save_board from oa_cache.views import render_hashed from oa_dashboard.models import DashboardPanel from oa_cache.models import interpret_hash, build_hash from django.template.loa...
39.445122
223
0.603648
727
6,469
5.248968
0.181568
0.043239
0.044025
0.050314
0.535115
0.515723
0.494497
0.487159
0.468291
0.4337
0
0.002769
0.274386
6,469
163
224
39.687117
0.810183
0.041119
0
0.463415
0
0
0.115558
0.01162
0
0
0
0
0
0
null
null
0
0.065041
null
null
0.01626
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c68d7f643e83ca2448bef06c6fde5da599648289
1,848
py
Python
drop/notes/views.py
folz/drop
f2d41785e0d95bebe644d8a66decfa5acf0093c5
[ "MIT" ]
2
2015-10-23T04:08:10.000Z
2017-04-16T07:33:08.000Z
drop/notes/views.py
folz/drop
f2d41785e0d95bebe644d8a66decfa5acf0093c5
[ "MIT" ]
null
null
null
drop/notes/views.py
folz/drop
f2d41785e0d95bebe644d8a66decfa5acf0093c5
[ "MIT" ]
null
null
null
from base64 import b64decode import binascii import datetime import json import os from django.core.files.base import ContentFile from django.http import HttpResponse from django.shortcuts import render from django.utils.decorators import method_decorator from django.views.decorators.csrf import csrf_exempt from djang...
33
137
0.653139
223
1,848
5.309417
0.443946
0.067568
0.025338
0.033784
0
0
0
0
0
0
0
0.009838
0.229978
1,848
55
138
33.6
0.822207
0.029762
0
0
0
0
0.044643
0
0
0
0
0
0
1
0.068182
false
0
0.340909
0.022727
0.568182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
c69bcdf330eaade3e23e53869e3e752cfb527642
9,369
py
Python
plaso/preprocessors/windows_test.py
cvandeplas/plaso
b625a2c267ed09505cfac84c9593d8c0922852b1
[ "Apache-2.0" ]
3
2016-03-11T02:47:08.000Z
2016-12-24T03:19:27.000Z
plaso/preprocessors/windows_test.py
cvandeplas/plaso
b625a2c267ed09505cfac84c9593d8c0922852b1
[ "Apache-2.0" ]
null
null
null
plaso/preprocessors/windows_test.py
cvandeplas/plaso
b625a2c267ed09505cfac84c9593d8c0922852b1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2014 The Plaso Project Authors. # Please see the AUTHORS file for details on individual authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the L...
35.221805
79
0.7496
1,127
9,369
6.044366
0.180124
0.083969
0.094833
0.049325
0.720053
0.668673
0.668673
0.634322
0.619348
0.619348
0
0.010465
0.153485
9,369
265
80
35.354717
0.848443
0.28637
0
0.607692
0
0
0.068627
0.034773
0
0
0
0
0.092308
1
0.1
false
0
0.053846
0
0.253846
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c6a2584ab22b69ae01618de96926f83283dc345f
2,264
py
Python
doc/processtrak_example/mergegps.py
nscheirer/limatix
bd22ce349a59194834879aac5b2452d85d12293e
[ "BSD-3-Clause" ]
null
null
null
doc/processtrak_example/mergegps.py
nscheirer/limatix
bd22ce349a59194834879aac5b2452d85d12293e
[ "BSD-3-Clause" ]
3
2018-06-26T22:56:24.000Z
2018-07-09T18:33:00.000Z
doc/processtrak_example/mergegps.py
nscheirer/limatix
bd22ce349a59194834879aac5b2452d85d12293e
[ "BSD-3-Clause" ]
1
2022-03-03T19:26:11.000Z
2022-03-03T19:26:11.000Z
import sys import datetime as pydatetime import pytz import collections import time #sys.path.append('/usr/local/datacollect2/lib') from limatix.dc_value import stringvalue from limatix.dc_value import hrefvalue from limatix import xmldoc gpxcache=None gpxtimescache=None def argmin(iterable): return min(enume...
32.811594
144
0.655919
272
2,264
5.415441
0.452206
0.022403
0.017651
0.02444
0.092329
0
0
0
0
0
0
0.005679
0.222173
2,264
68
145
33.294118
0.830778
0.112191
0
0.156863
0
0
0.08637
0.025961
0
0
0
0
0
1
0.039216
false
0.117647
0.156863
0.019608
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c6a9d9963bf058347532612cc19959ee08421cd3
7,084
py
Python
nr_merkletree/merkle_tree.py
nitred/nr-merkletree
282f9d7c1e64ca55984c3d008f1cbfb922a19bf5
[ "MIT" ]
null
null
null
nr_merkletree/merkle_tree.py
nitred/nr-merkletree
282f9d7c1e64ca55984c3d008f1cbfb922a19bf5
[ "MIT" ]
7
2018-01-01T14:24:01.000Z
2018-01-07T20:51:08.000Z
nr_merkletree/merkle_tree.py
nitred/nr-merkletree
282f9d7c1e64ca55984c3d008f1cbfb922a19bf5
[ "MIT" ]
null
null
null
"""Module for Merkle Tree.""" import hashlib from itertools import zip_longest from treelib import Node, Tree class MerkleTree(Tree): """Merkle Tree. Inherits treelib.Tree class. All nodes of the tree are of type treelib.Node. The `data_chunks` are first converted to leaf nodes, where each node is assig...
42.166667
119
0.623941
1,017
7,084
4.204523
0.199607
0.039757
0.018007
0.014032
0.221235
0.144761
0.069224
0.044434
0.044434
0.027128
0
0.003654
0.30463
7,084
167
120
42.419162
0.864393
0.552089
0
0.085106
0
0
0.079282
0.012341
0
0
0
0.011976
0
1
0.12766
false
0
0.06383
0
0.297872
0.06383
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
c6ab45f69842f13f6818b99c27949d21a9e6266b
1,599
py
Python
1021 NOTAS E MOEDAS.py
castrolimoeiro/Uri-exercise
7a9227c55a79f14fe8bde4aa0ebb4c268bbda4bb
[ "MIT" ]
null
null
null
1021 NOTAS E MOEDAS.py
castrolimoeiro/Uri-exercise
7a9227c55a79f14fe8bde4aa0ebb4c268bbda4bb
[ "MIT" ]
null
null
null
1021 NOTAS E MOEDAS.py
castrolimoeiro/Uri-exercise
7a9227c55a79f14fe8bde4aa0ebb4c268bbda4bb
[ "MIT" ]
null
null
null
""" Leia um valor de ponto flutuante com duas casas decimais. Este valor representa um valor monetário. A seguir, calcule o menor número de notas e moedas possíveis no qual o valor pode ser decomposto. As notas consideradas são de 100, 50, 20, 10, 5, 2. As moedas possíveis são de 1, 0.50, 0.25, 0.10, 0.05 e 0.01. A seg...
28.052632
114
0.614134
272
1,599
3.617647
0.327206
0.04878
0.036585
0.065041
0.42378
0.377033
0.365854
0.304878
0.304878
0.291667
0
0.079391
0.220138
1,599
56
115
28.553571
0.708099
0.84803
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c6b7b4b47aeb784ec01c8e2105ed162ebaa8bf61
5,661
py
Python
slideatlas/ptiffstore/preprocess_reader.py
SlideAtlas/SlideAtlas-Server
3b9cbd56eaa29ae08ae521e75616ea230fe26397
[ "Apache-2.0" ]
3
2015-10-10T10:17:26.000Z
2020-12-14T09:42:19.000Z
slideatlas/ptiffstore/preprocess_reader.py
SlideAtlas/SlideAtlas-Server
3b9cbd56eaa29ae08ae521e75616ea230fe26397
[ "Apache-2.0" ]
41
2015-02-03T19:47:28.000Z
2017-02-06T23:24:26.000Z
slideatlas/ptiffstore/preprocess_reader.py
SlideAtlas/SlideAtlas-Server
3b9cbd56eaa29ae08ae521e75616ea230fe26397
[ "Apache-2.0" ]
2
2016-04-04T18:23:27.000Z
2017-11-14T22:34:58.000Z
import os import sys from openslide_reader import OpenslideReader import subprocess __all__ = ("PreprocessReader", ) import logging logger = logging.getLogger('slideatlas') from lockfile import LockFile class PreprocessReader(OpenslideReader): def __init__(self): logger.info('PreprocessReader init') ...
32.534483
108
0.606607
658
5,661
5.097264
0.24772
0.021467
0.027132
0.025343
0.528026
0.503876
0.503876
0.489267
0.489267
0.489267
0
0.009521
0.295001
5,661
173
109
32.722543
0.830869
0.285815
0
0.292683
0
0
0.128752
0
0
0
0
0.011561
0.02439
1
0.085366
false
0.012195
0.073171
0
0.231707
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
c6b9ac914681526d3276f229e3afa5ae4c5f57f2
3,097
py
Python
spacy/lang/ro/stop_words.py
algteam/spacy_zh_model
0b0cba1a3964aa426e5f96087849c90e69e2a89d
[ "MIT" ]
5
2019-04-19T06:27:29.000Z
2019-12-02T13:30:47.000Z
spacy/lang/ro/stop_words.py
algteam/spacy_zh_model
0b0cba1a3964aa426e5f96087849c90e69e2a89d
[ "MIT" ]
null
null
null
spacy/lang/ro/stop_words.py
algteam/spacy_zh_model
0b0cba1a3964aa426e5f96087849c90e69e2a89d
[ "MIT" ]
2
2019-04-19T06:27:18.000Z
2019-10-04T12:39:15.000Z
# encoding: utf8 from __future__ import unicode_literals # Source: https://github.com/stopwords-iso/stopwords-ro STOP_WORDS = set(""" a abia acea aceasta această aceea aceeasi acei aceia acel acela acelasi acele acelea acest acesta aceste acestea acestei acestia acestui aceşti aceştia a...
6.506303
56
0.681304
488
3,097
4.311475
0.987705
0
0
0
0
0
0
0
0
0
0
0.000468
0.309655
3,097
475
57
6.52
0.98363
0.021957
0
0
0
0
0.969424
0
0
0
0
0
0
1
0
false
0
0.002128
0
0.002128
0.002128
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c6bd7b068a37adb5d87dd7a598d320bd8e7478d9
2,419
py
Python
tests/formats/mysql/definitions/test_table_1215_regressions.py
cmancone/mygrations
30d1d568ca7d6c38dbc5211834dd2d04c0bcf078
[ "MIT" ]
10
2018-04-09T08:39:42.000Z
2022-03-14T15:36:05.000Z
tests/formats/mysql/definitions/test_table_1215_regressions.py
cmancone/mygrations
30d1d568ca7d6c38dbc5211834dd2d04c0bcf078
[ "MIT" ]
14
2018-05-02T11:14:08.000Z
2022-01-15T18:48:54.000Z
tests/formats/mysql/definitions/test_table_1215_regressions.py
cmancone/mygrations
30d1d568ca7d6c38dbc5211834dd2d04c0bcf078
[ "MIT" ]
5
2018-07-18T02:20:48.000Z
2022-02-19T09:32:07.000Z
import unittest from mygrations.formats.mysql.file_reader.database import database as database_reader class test_table_1215_regressions(unittest.TestCase): def test_foreign_key_without_index(self): """ Discovered that the system was not raising an error for a foreign key that didn't have an index for the t...
50.395833
210
0.713931
344
2,419
4.854651
0.337209
0.10479
0.167665
0.173054
0.464671
0.383234
0.128144
0.041916
0
0
0
0.047667
0.176106
2,419
47
211
51.468085
0.790266
0.052914
0
0
0
0.083333
0.319149
0.10802
0
0
0
0
0.166667
1
0.083333
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c6cec3ebd009590de967527c5c18985ab116d6a5
9,635
py
Python
channelshowdown/userprofile/views.py
channelfix/cshowdown-backend
4225ad4f2bd56112f627e6fe1f26c281484d804e
[ "MIT" ]
null
null
null
channelshowdown/userprofile/views.py
channelfix/cshowdown-backend
4225ad4f2bd56112f627e6fe1f26c281484d804e
[ "MIT" ]
6
2018-02-19T02:41:20.000Z
2022-03-11T23:19:40.000Z
channelshowdown/userprofile/views.py
emilarran/channelshowdown_final
0bcc8766af66719934bf744d0be2a90e96359761
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render from django.utils.decorators import method_decorator from django.views.decorators.csrf import csrf_exempt from django.views.generic import View from django.http import ( JsonResponse, HttpResponseNotFound, H...
36.221805
89
0.575091
989
9,635
5.498483
0.129424
0.057374
0.038617
0.036778
0.656859
0.592497
0.515447
0.44851
0.426076
0.426076
0
0.00151
0.31261
9,635
265
90
36.358491
0.819568
0.036533
0
0.477679
0
0
0.13965
0.025901
0
0
0
0
0
0
null
null
0.008929
0.053571
null
null
0.008929
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c6cfe36fafb8a80e378149d4914e157dd0d11405
1,764
py
Python
Strings and Lists/strings_and_lists.py
py1-10-2017/rgero215_PY1-10-2017
f455b335ec9c8c850571f3a75dcd95759b4cfdad
[ "Unlicense" ]
1
2018-05-10T21:29:45.000Z
2018-05-10T21:29:45.000Z
Strings and Lists/strings_and_lists.py
py1-10-2017/rgero215_PY1-10-2017
f455b335ec9c8c850571f3a75dcd95759b4cfdad
[ "Unlicense" ]
null
null
null
Strings and Lists/strings_and_lists.py
py1-10-2017/rgero215_PY1-10-2017
f455b335ec9c8c850571f3a75dcd95759b4cfdad
[ "Unlicense" ]
null
null
null
""" Find and Replace In this string: words = "It's thanksgiving day. It's my birthday,too!" print the position of the first instance of the word "day". Then create a new string where the word "day" is replaced with the word "month". """ words = "It's thanksgiving day. It's my birthday,too!" #position of the first inst...
27.138462
105
0.683107
344
1,764
3.502907
0.261628
0.039834
0.019917
0.024896
0.353527
0.275519
0.230705
0.215768
0.127801
0.094606
0
0.065789
0.181406
1,764
64
106
27.5625
0.768698
0.150794
0
0.08
0
0
0.120148
0
0
0
0
0
0
0
null
null
0
0
null
null
0.32
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c6d63e04721f8a2483d05ab33af77b792100bd79
670
py
Python
perftracker/migrations/0012_auto_20180624_1051.py
istillc0de/perftracker-perfguru
79d0f1740f4072503ba1bf06b871590de6bcf470
[ "Apache-2.0" ]
11
2018-03-12T05:40:02.000Z
2020-01-30T10:13:36.000Z
perftracker/migrations/0012_auto_20180624_1051.py
istillc0de/perftracker-perfguru
79d0f1740f4072503ba1bf06b871590de6bcf470
[ "Apache-2.0" ]
4
2019-05-12T18:38:22.000Z
2020-07-20T07:13:34.000Z
perftracker/migrations/0012_auto_20180624_1051.py
istillc0de/perftracker-perfguru
79d0f1740f4072503ba1bf06b871590de6bcf470
[ "Apache-2.0" ]
25
2018-07-19T12:12:09.000Z
2022-02-15T09:16:31.000Z
# Generated by Django 2.0.3 on 2018-06-24 10:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('perftracker', '0011_hwfarmnodelockmodel_hwfarmnodemodel'), ] operations = [ migrations.AddField( model_name='hwfarmnodemodel', ...
26.8
84
0.60597
70
670
5.671429
0.642857
0.09068
0.115869
0.13602
0.231738
0.231738
0
0
0
0
0
0.057732
0.276119
670
24
85
27.916667
0.760825
0.067164
0
0.333333
1
0
0.163724
0.064205
0
0
0
0
0
1
0
false
0
0.055556
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c6dcbabec1641bbb4b8f4a7ca69e3361ae92210b
1,002
py
Python
python-basic-project/unit04/03.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
9
2020-10-25T15:13:32.000Z
2022-03-26T11:27:21.000Z
python-basic-project/unit04/03.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
null
null
null
python-basic-project/unit04/03.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
7
2021-03-01T11:06:45.000Z
2022-03-14T07:06:04.000Z
import random while True: com = random.choice(["가위", "바위", "보"]) user = input("입력: ") # 결과 판단 winner = None if com == "가위": if user == "가위": winner = None elif user == "바위": winner = "user" else: winner = "computer" elif com == "바위"...
18.90566
42
0.396208
99
1,002
4.010101
0.262626
0.100756
0.060453
0.105793
0.2267
0.2267
0.2267
0.2267
0
0
0
0
0.44511
1,002
52
43
19.269231
0.714029
0.00499
0
0.725
0
0
0.128803
0
0
0
0
0
0
1
0
false
0
0.025
0
0.025
0.225
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c6dde66b413b2939346a923d94479952e2120560
7,598
py
Python
src/functions.py
D17AN/Student-Management
12d61bef9381c7c8c3a45fdaeb9a8bbec1dfe7e0
[ "Apache-2.0" ]
null
null
null
src/functions.py
D17AN/Student-Management
12d61bef9381c7c8c3a45fdaeb9a8bbec1dfe7e0
[ "Apache-2.0" ]
null
null
null
src/functions.py
D17AN/Student-Management
12d61bef9381c7c8c3a45fdaeb9a8bbec1dfe7e0
[ "Apache-2.0" ]
null
null
null
""" Program functionalities module """ def create_transaction(day, value, type, description): """ :return: a dictionary that contains the data of a transaction """ return {'day': day, 'value': value, 'type': type, 'description': description} def get_day(transaction): """ :retur...
30.392
122
0.636352
903
7,598
5.149502
0.106312
0.216774
0.095054
0.028387
0.577419
0.445591
0.385376
0.370108
0.333763
0.333763
0
0.005621
0.274151
7,598
249
123
30.514056
0.837534
0.228481
0
0.438017
0
0
0.012598
0
0
0
0
0
0
1
0.173554
false
0
0
0
0.272727
0.066116
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c6de25406bcbdc768e473fbf807e106edf38b17b
634
py
Python
charlotte/resources/renderers/mathdown.py
geajack/charlotte
373c069ec897b11e47a5af474e121a7f9c5e1578
[ "MIT" ]
null
null
null
charlotte/resources/renderers/mathdown.py
geajack/charlotte
373c069ec897b11e47a5af474e121a7f9c5e1578
[ "MIT" ]
1
2021-03-20T00:31:36.000Z
2021-03-20T00:31:36.000Z
charlotte/resources/renderers/mathdown.py
geajack/charlotte
373c069ec897b11e47a5af474e121a7f9c5e1578
[ "MIT" ]
null
null
null
import markdown def render(raw): html = markdown.markdown(raw) return html def head(): html = """ <script type="text/x-mathjax-config"> MathJax.Hub.Config( { elements: document.querySelectorAll(".mathdown-format"), tex2jax: { ...
28.818182
127
0.466877
55
634
5.363636
0.709091
0.067797
0
0
0
0
0
0
0
0
0
0.010471
0.397476
634
22
128
28.818182
0.76178
0
0
0.1
0
0.05
0.793701
0.11811
0
0
0
0
0
1
0.1
false
0
0.05
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c6dee8193ee7d9a830638ec910898d874519cb06
2,613
py
Python
examples/river_crossing.py
astraldawn/pylps
e9964a24bb38657b180d441223b4cdb9e1dadc8a
[ "MIT" ]
1
2018-05-19T18:28:12.000Z
2018-05-19T18:28:12.000Z
examples/river_crossing.py
astraldawn/pylps
e9964a24bb38657b180d441223b4cdb9e1dadc8a
[ "MIT" ]
12
2018-04-26T00:58:11.000Z
2018-05-13T22:03:39.000Z
examples/river_crossing.py
astraldawn/pylps
e9964a24bb38657b180d441223b4cdb9e1dadc8a
[ "MIT" ]
null
null
null
from pylps.core import * initialise(max_time=10) create_actions('show(_)', 'valid(_, _)', 'say(_, _)') create_events('river(_, _, _, _)', 'member(_, _)') create_facts('inp(_, _)', 'crossing(_, _, _)') create_variables( 'A', 'B', 'C', 'P', 'V', 'X', 'Y', 'Z', 'Tail', 'D', 'Action', 'Start', 'End', 'Plan', ) i...
27.797872
70
0.520857
478
2,613
2.732218
0.1841
0.032159
0.020674
0.012251
0.454058
0.369066
0.2634
0.226646
0.166922
0.166922
0
0.012282
0.18982
2,613
93
71
28.096774
0.604629
0.050517
0
0
0
0
0.172904
0
0
0
0
0
0
1
0
true
0
0.029412
0
0.029412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
c6e526724fddad989fc12a8313a5b32c3c2fdea6
1,046
py
Python
Week4/Naman , Ashwin, Karthik/Grovers code.py
Naman2023/HGQC_Assignment_Repo
6e287d193135b412981d0f665d5db5a9327c1547
[ "MIT" ]
null
null
null
Week4/Naman , Ashwin, Karthik/Grovers code.py
Naman2023/HGQC_Assignment_Repo
6e287d193135b412981d0f665d5db5a9327c1547
[ "MIT" ]
null
null
null
Week4/Naman , Ashwin, Karthik/Grovers code.py
Naman2023/HGQC_Assignment_Repo
6e287d193135b412981d0f665d5db5a9327c1547
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Copy of Untitled19.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1UsBzAPuuznzHflaQYUA3bs_blhuJIxeb """ import numpy as np import math L=[1,2,3,4,5,6,7] L1=[] L2=[] L3=[] L4=[] for ele in L: k=bin(ele)[2:] if ...
14.942857
77
0.65392
214
1,046
3.023364
0.359813
0.074189
0.043277
0.046368
0.063369
0.043277
0
0
0
0
0
0.061867
0.150096
1,046
69
78
15.15942
0.665917
0.187381
0
0
1
0
0.00119
0
0
0
0
0
0
1
0.022222
false
0
0.044444
0
0.088889
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c6e8e5b082642c75c08eea4264775cc7449af21a
4,583
py
Python
old/old/ner_nltk_stanford_o.py
edazizovv/news_embedder
c01a93264a8a696b98ffe43a9b0fb62718627f76
[ "MIT" ]
null
null
null
old/old/ner_nltk_stanford_o.py
edazizovv/news_embedder
c01a93264a8a696b98ffe43a9b0fb62718627f76
[ "MIT" ]
null
null
null
old/old/ner_nltk_stanford_o.py
edazizovv/news_embedder
c01a93264a8a696b98ffe43a9b0fb62718627f76
[ "MIT" ]
null
null
null
import numpy import pandas from nltk.tag import StanfordNERTagger # from nltk.tag.corenlp import CoreNLPNERTagger import os java_path = "C:/Program Files/Java/jdk-13.0.1/bin/java.exe" os.environ['JAVAHOME'] = java_path # TODO: configure these paths! a1 = 'C:\\Users\\MainUser\\OneDrive\\RAMP-EXTERNAL\\IP-02\\OSTRTA\\m...
27.443114
151
0.529129
570
4,583
4.212281
0.222807
0.054144
0.017493
0.044981
0.645148
0.631404
0.631404
0.631404
0.631404
0.631404
0
0.018807
0.327078
4,583
166
152
27.608434
0.759728
0.050185
0
0.5625
0
0.046875
0.212448
0.176763
0
0
0
0.006024
0
1
0
false
0.015625
0.0625
0
0.0625
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c6eb3c306d8048613f30e8cd06e886e0c24e1c5e
779
py
Python
python-playing/python_ml_kaggle/classification/classify_iris_flower.py
uptonking/code-playing
30a7c80f5a160a24b49574635e31682e0922bb7d
[ "MIT" ]
2
2017-11-15T07:21:48.000Z
2017-11-24T00:17:55.000Z
python-playing/python_ml_kaggle/classification/classify_iris_flower.py
uptonking/code-playing
30a7c80f5a160a24b49574635e31682e0922bb7d
[ "MIT" ]
null
null
null
python-playing/python_ml_kaggle/classification/classify_iris_flower.py
uptonking/code-playing
30a7c80f5a160a24b49574635e31682e0922bb7d
[ "MIT" ]
null
null
null
# _*_ coding:utf-8 _*_ from sklearn.datasets import load_iris from sklearn.cross_validation import train_test_split from sklearn.preprocessing import StandardScaler from sklearn.metrics import classification_report from sklearn.neighbors import KNeighborsClassifier iris = load_iris() print iris.data.shape # print iri...
28.851852
108
0.811297
122
779
4.885246
0.352459
0.092282
0.04698
0.036913
0
0
0
0
0
0
0
0.008535
0.097561
779
26
109
29.961538
0.83926
0.047497
0
0
0
0
0.014885
0
0
0
0
0
0
0
null
null
0
0.277778
null
null
0.277778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
c6eb6694e3b015d72c2f1ce937110dedf0b55b1c
1,024
py
Python
dogclassifierapp/prediction_scripts/detector_functions.py
cnspatino/dog-breed-classifier
14b990091d2200521fafc642b8753116e3b7d783
[ "CNRI-Python", "Linux-OpenIB" ]
1
2020-10-30T06:26:53.000Z
2020-10-30T06:26:53.000Z
dogclassifierapp/prediction_scripts/detector_functions.py
cnspatino/dog-breed-classifier
14b990091d2200521fafc642b8753116e3b7d783
[ "CNRI-Python", "Linux-OpenIB" ]
11
2020-01-28T22:31:32.000Z
2022-03-11T23:36:47.000Z
dogclassifierapp/prediction_scripts/detector_functions.py
cnspatino/dog-breed-classifier
14b990091d2200521fafc642b8753116e3b7d783
[ "CNRI-Python", "Linux-OpenIB" ]
1
2019-10-08T12:09:38.000Z
2019-10-08T12:09:38.000Z
import cv2 from keras.applications.resnet50 import preprocess_input, decode_predictions from dogclassifierapp.prediction_scripts.data_functions import path_to_tensor import numpy as np def face_detector(img_path): ### returns "True" if face is detected in image stored at img_path face_cascade = cv2.CascadeCl...
31.030303
82
0.768555
139
1,024
5.489209
0.503597
0.055046
0.055046
0.076016
0.217562
0.073395
0
0
0
0
0
0.031142
0.15332
1,024
32
83
32
0.848904
0.243164
0
0
0
0
0.060131
0.049673
0
0
0
0
0
1
0.125
false
0
0.3125
0
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
c6fb79ce02507607b23dd5189a073d2d404ef8ab
4,216
py
Python
buzzbnb/base/views.py
AmidBidee/buzzbnb
632b44096229a9e346f57e918bc8d6f2d777e143
[ "CC0-1.0" ]
null
null
null
buzzbnb/base/views.py
AmidBidee/buzzbnb
632b44096229a9e346f57e918bc8d6f2d777e143
[ "CC0-1.0" ]
null
null
null
buzzbnb/base/views.py
AmidBidee/buzzbnb
632b44096229a9e346f57e918bc8d6f2d777e143
[ "CC0-1.0" ]
null
null
null
from django.shortcuts import render, get_object_or_404, redirect from .models import Artist,Genre,Categorie,Album,Song from django.views.generic import ListView, DetailView def HomePage(request): return render(request, 'base/base.html') def LatestSongs(request): latest_songs = Song.latest_songs.all() #lat...
34
95
0.669829
513
4,216
5.247563
0.138402
0.048291
0.052006
0.036404
0.518202
0.431649
0.33321
0.279718
0.279718
0.279718
0
0.005464
0.218691
4,216
123
96
34.276423
0.811779
0.018264
0
0.468085
0
0
0.133156
0.084582
0
0
0
0
0
1
0.138298
false
0
0.031915
0.021277
0.734043
0.053191
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
059f55c7cac4bb84a6cb05cd515a1e06374c8484
1,018
py
Python
sqlalchemy_things/declarative/base.py
ri-gilfanov/sqlalchemy-things
de469b50196f9529c9e1611318b6d01fc8065f3e
[ "MIT" ]
null
null
null
sqlalchemy_things/declarative/base.py
ri-gilfanov/sqlalchemy-things
de469b50196f9529c9e1611318b6d01fc8065f3e
[ "MIT" ]
4
2021-06-29T16:13:37.000Z
2021-07-14T02:03:03.000Z
sqlalchemy_things/declarative/base.py
ri-gilfanov/sqlalchemy-things
de469b50196f9529c9e1611318b6d01fc8065f3e
[ "MIT" ]
null
null
null
from typing import Any, Iterable, Optional import sqlalchemy as sa from sqlalchemy import Table, orm @orm.declarative_mixin class DeclarativeMixin: __table__: 'Table' @orm.declarative_mixin class InheritedDeclarativeMixin(DeclarativeMixin): __bases__: Iterable[Any] @orm.declarative_mixin class Polymorphi...
23.136364
74
0.707269
120
1,018
5.766667
0.5
0.046243
0.08237
0.104046
0
0
0
0
0
0
0
0.002457
0.200393
1,018
43
75
23.674419
0.847666
0.226916
0
0.12
0
0
0.036939
0
0
0
0
0
0
1
0.08
false
0
0.12
0.04
0.56
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
05a1296b713057c9518f0fa711fed58f9403cc52
367
py
Python
brutus/__main__.py
MatthewZito/brutus
89cba5bf07ec579aa6987e4866db446c8457927f
[ "MIT" ]
30
2021-06-03T19:56:23.000Z
2022-03-31T08:17:07.000Z
brutus/__main__.py
MatthewZito/Brutus
89cba5bf07ec579aa6987e4866db446c8457927f
[ "MIT" ]
3
2020-09-16T14:35:24.000Z
2021-03-26T03:40:32.000Z
brutus/__main__.py
MatthewZito/brutus
89cba5bf07ec579aa6987e4866db446c8457927f
[ "MIT" ]
9
2021-05-26T17:24:45.000Z
2022-03-31T11:36:12.000Z
""" Brutus is an educational exploitation kit """ from .interfaces.main_program.main_program import run_main_ui from .utils.logger import LOGGER try: LOGGER.info('WELCOME TO BRUTUS') run_main_ui() except KeyboardInterrupt: LOGGER.info('user cancelled the process') except Exception: # pylint: disable=W07...
22.9375
61
0.749319
48
367
5.604167
0.6875
0.081784
0.066915
0
0
0
0
0
0
0
0
0.012821
0.149864
367
15
62
24.466667
0.849359
0.174387
0
0
0
0
0.223729
0
0
0
0
0
0
1
0
true
0
0.222222
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
05aaff7fb274ac713912df5467dc6760a3aae28e
13,966
py
Python
pyopt/packing/rectangular/test_box.py
stonelake/pyoptimization
6e2a4acbaa6eac9716e9ef9e46ca23986dbb6c71
[ "Apache-2.0" ]
null
null
null
pyopt/packing/rectangular/test_box.py
stonelake/pyoptimization
6e2a4acbaa6eac9716e9ef9e46ca23986dbb6c71
[ "Apache-2.0" ]
null
null
null
pyopt/packing/rectangular/test_box.py
stonelake/pyoptimization
6e2a4acbaa6eac9716e9ef9e46ca23986dbb6c71
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from box import Box __author__ = 'Alex Baranov' class TestBox(TestCase): """ Set of test for the Box class """ def test_create(self): """ Verify that Box can be created """ rect = Box((1, 2, 3)) self.assertIsNotNon...
36.181347
97
0.497064
1,852
13,966
3.605292
0.069654
0.092257
0.059907
0.047177
0.74225
0.658979
0.565224
0.494983
0.43253
0.373371
0
0.072769
0.351568
13,966
386
98
36.181347
0.664532
0.027495
0
0.297674
0
0
0.018269
0
0
0
0
0
0.260465
0
null
null
0
0.009302
null
null
0.004651
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
05af994ef1314d2ba1943879a6fa439808305fb6
629
py
Python
solutions/problem_016.py
ksvr444/daily-coding-problem
5d9f488f81c616847ee4e9e48974523ec2d598d7
[ "MIT" ]
1,921
2018-11-13T18:19:56.000Z
2021-11-15T14:25:41.000Z
solutions/problem_016.py
MohitIndian/daily-coding-problem
5d9f488f81c616847ee4e9e48974523ec2d598d7
[ "MIT" ]
2
2019-07-19T01:06:16.000Z
2019-08-01T22:21:36.000Z
solutions/problem_016.py
MohitIndian/daily-coding-problem
5d9f488f81c616847ee4e9e48974523ec2d598d7
[ "MIT" ]
1,066
2018-11-19T19:06:55.000Z
2021-11-13T12:33:56.000Z
class OrderLog: def __init__(self, size): self.log = list() self.size = size def __repr__(self): return str(self.log) def record(self, order_id): self.log.append(order_id) if len(self.log) > self.size: self.log = self.log[1:] def get_last(self, i): ...
19.65625
37
0.589825
109
629
3.284404
0.266055
0.201117
0.100559
0.083799
0.078212
0
0
0
0
0
0
0.054507
0.241653
629
31
38
20.290323
0.696017
0
0
0
0
0
0
0
0
0
0
0
0.192308
1
0.153846
false
0
0
0.076923
0.269231
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
05b030874e47991274e20c503233adf6690d2e7e
991
py
Python
utils/auth.py
brian-yang/nutrition-finder
3305aabce6f351c90b58db1f1ea48b35d2a66568
[ "MIT" ]
null
null
null
utils/auth.py
brian-yang/nutrition-finder
3305aabce6f351c90b58db1f1ea48b35d2a66568
[ "MIT" ]
null
null
null
utils/auth.py
brian-yang/nutrition-finder
3305aabce6f351c90b58db1f1ea48b35d2a66568
[ "MIT" ]
null
null
null
import hashlib import sqlite3 def register(user, password): f = "data/users.db" db = sqlite3.connect(f) c = db.cursor() check_user = "SELECT * FROM user_credentials WHERE username=?" entry = c.execute(check_user, (user,)).fetchone() if entry is None: register_user = "INSERT INTO user_c...
23.595238
89
0.618567
123
991
4.910569
0.333333
0.059603
0.043046
0.056291
0.503311
0.503311
0.433775
0.433775
0.433775
0.433775
0
0.013514
0.25328
991
41
90
24.170732
0.802703
0
0
0.666667
0
0
0.184662
0
0
0
0
0
0
1
0.060606
false
0.151515
0.060606
0
0.242424
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
05b0619e32d2788602065d46422ba1688c6cb7b7
15,681
py
Python
localization/catalog/fi.py
sgrayban/CastPodder
3f49d179c237dda722614e25439162d39328b18a
[ "Apache-2.0" ]
null
null
null
localization/catalog/fi.py
sgrayban/CastPodder
3f49d179c237dda722614e25439162d39328b18a
[ "Apache-2.0" ]
null
null
null
localization/catalog/fi.py
sgrayban/CastPodder
3f49d179c237dda722614e25439162d39328b18a
[ "Apache-2.0" ]
null
null
null
#! python # -*- coding: utf-8 -*- # # $Id: fi.py 146 2006-11-07 07:44:29Z sgrayban $ # g_strtable = -1 language_code = __name__.split('.')[-1] def add(label, txt): global g_strtable g_strtable.AddText(language_code, label, txt) def AddStrings(strtable): global g_strtable g_strtable = strtable ##...
40.414948
730
0.71086
2,049
15,681
5.050756
0.374329
0.117113
0.009566
0.010049
0.154121
0.093536
0.08252
0.075949
0.075949
0.069379
0
0.003517
0.165997
15,681
387
731
40.51938
0.787812
0.187807
0
0.009259
0
0.009259
0.650076
0.097312
0
0
0
0
0
1
0.009259
false
0.00463
0.018519
0
0.027778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
05b7f3bb54188d2c1c8729728433c3e50001ab81
325
py
Python
setup.py
BeckResearchLab/Neuralizer
70826e684f395796752dcdb891a28b35512a9632
[ "MIT" ]
1
2019-04-23T15:54:14.000Z
2019-04-23T15:54:14.000Z
setup.py
BeckResearchLab/Neuralizer
70826e684f395796752dcdb891a28b35512a9632
[ "MIT" ]
1
2019-05-08T01:13:14.000Z
2019-05-08T01:13:14.000Z
setup.py
BeckResearchLab/Neuralizer
70826e684f395796752dcdb891a28b35512a9632
[ "MIT" ]
1
2018-11-01T17:12:30.000Z
2018-11-01T17:12:30.000Z
from setuptools import setup setup(name = 'model_create', version = '0.1', description = 'Create neural-network model to replace complicated simulation models', url = 'https://github.com/BeckResearchLab/Neuralizer', author = 'Yuening Wang', license = 'MIT', packages = ['model_create...
29.545455
91
0.661538
35
325
6.085714
0.857143
0.103286
0
0
0
0
0
0
0
0
0
0.007874
0.218462
325
10
92
32.5
0.830709
0
0
0
0
0
0.479876
0
0
0
0
0
0
1
0
true
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
1
0
0
0
0
0
0
1
05b883597055de6bcea59bcd4e1ab25fefa1cd24
1,239
py
Python
instagram/migrations/0001_initial.py
samwel-chege/Instagram
859ef26a3a90a403cc69d5165b3b80513a3cfa70
[ "MIT" ]
null
null
null
instagram/migrations/0001_initial.py
samwel-chege/Instagram
859ef26a3a90a403cc69d5165b3b80513a3cfa70
[ "MIT" ]
null
null
null
instagram/migrations/0001_initial.py
samwel-chege/Instagram
859ef26a3a90a403cc69d5165b3b80513a3cfa70
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-10 20:04 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Profile', fields=[ ...
34.416667
117
0.572236
123
1,239
5.658537
0.495935
0.051724
0.04023
0.063218
0.396552
0.235632
0.235632
0.235632
0.235632
0.235632
0
0.030543
0.286521
1,239
35
118
35.4
0.756787
0.03632
0
0.357143
1
0
0.07802
0
0
0
0
0
0
1
0
false
0
0.071429
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
05b9b8b8dc589edc033820144927d2f51d63e6ac
6,392
py
Python
python/lib/learning/neural_classifier.py
nildude/QuantEquityManagement
2713ffe8c8c0e814a4e5f657182ff692d7745012
[ "Apache-2.0" ]
1
2021-01-26T06:03:03.000Z
2021-01-26T06:03:03.000Z
python/lib/learning/neural_classifier.py
nildude/QuantEquityManagement
2713ffe8c8c0e814a4e5f657182ff692d7745012
[ "Apache-2.0" ]
null
null
null
python/lib/learning/neural_classifier.py
nildude/QuantEquityManagement
2713ffe8c8c0e814a4e5f657182ff692d7745012
[ "Apache-2.0" ]
null
null
null
""" Implements the Perception & Adaline Learning Algorithm Author: Rajan Subramanian Created: May 18, 2010 """ import numpy as np import matplotlib.pyplot as plt class Perception: """first artifical neural classifier Args: eta: Learning rate (between 0.0 and 1.0) n_iter: ...
34
83
0.540519
790
6,392
4.28481
0.218987
0.035451
0.042245
0.028951
0.654062
0.648744
0.630724
0.622452
0.622452
0.622452
0
0.021728
0.366395
6,392
188
84
34
0.814074
0.466364
0
0.385965
0
0
0.038235
0
0
0
0
0
0
1
0.175439
false
0
0.035088
0
0.385965
0.017544
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
05be41369545a67c25134e97022fe8e075f85623
4,949
py
Python
checkpwned.py
snipav1/checkpwned
e0fdc1e24c2a2e5df5d74112e9af83379c23a9ff
[ "MIT" ]
null
null
null
checkpwned.py
snipav1/checkpwned
e0fdc1e24c2a2e5df5d74112e9af83379c23a9ff
[ "MIT" ]
1
2021-05-28T19:00:28.000Z
2021-05-28T19:00:28.000Z
checkpwned.py
snipav1/checkpwned
e0fdc1e24c2a2e5df5d74112e9af83379c23a9ff
[ "MIT" ]
null
null
null
#!/usr/bin/python2 import argparse import sys import utils import time import logging import datetime import os """ @author: Emmanuel Hernandez This script will verify if an email or an email list is pwned via haveibeenpwned.com api Usage: single address: python checkpwned.py -a foo@bar.co...
33.214765
116
0.539503
543
4,949
4.615101
0.278085
0.043895
0.017957
0.021548
0.259377
0.207103
0.175978
0.155227
0.097765
0.097765
0
0.003824
0.312993
4,949
149
117
33.214765
0.733235
0.035159
0
0.205357
0
0.026786
0.260773
0.033763
0
0
0
0
0
0
null
null
0
0.0625
null
null
0.098214
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
05d63bc057078ddba883c425a393d2ab728034a4
452
py
Python
blogapp/migrations/0008_post_created_date.py
NitinPSingh/blogprojlive
769685f22218d31b8eb2195d65d9c3c351e02772
[ "MIT" ]
1
2021-04-06T15:10:09.000Z
2021-04-06T15:10:09.000Z
blogapp/migrations/0008_post_created_date.py
NitinPSingh/blogprojlive
769685f22218d31b8eb2195d65d9c3c351e02772
[ "MIT" ]
null
null
null
blogapp/migrations/0008_post_created_date.py
NitinPSingh/blogprojlive
769685f22218d31b8eb2195d65d9c3c351e02772
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-03-15 11:52 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('blogapp', '0007_post_likes'), ] operations = [ migrations.AddField( model_name='post'...
22.6
75
0.599558
48
452
5.5625
0.75
0.082397
0.142322
0
0
0
0
0
0
0
0
0.059375
0.292035
452
19
76
23.789474
0.775
0.099558
0
0
1
0
0.098446
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
05d7f91f89d2ec2cdd3989f4e59ddee38836a1f9
5,349
py
Python
applications/plugins/SofaPython/python/SofaPython/console.py
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
applications/plugins/SofaPython/python/SofaPython/console.py
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
applications/plugins/SofaPython/python/SofaPython/console.py
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
"""a readline console module (unix only). maxime.tournier@brain.riken.jp the module starts a subprocess for the readline console and communicates through pipes (prompt/cmd). the console is polled through a timer, which depends on PySide. """ from select import select import os import sys import signal if __name_...
23.986547
79
0.524584
568
5,349
4.827465
0.338028
0.021882
0.021882
0.009482
0.113786
0.07221
0.07221
0.07221
0.07221
0.07221
0
0.004163
0.371284
5,349
222
80
24.094595
0.81118
0.169564
0
0.119266
0
0
0.041915
0
0
0
0
0
0
0
null
null
0.018349
0.091743
null
null
0.036697
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
05e05fd8b8350f107456c932e4d1bcd36e8d5ae3
901
py
Python
recipe_project/recipe_project/apps/recipes/migrations/0004_auto_20211012_2141.py
Mark4nov/recipe-calculator-Django
d9bb3e4c1c7624d540debd9b2c427e0cc5f4ce78
[ "MIT" ]
1
2021-09-25T23:25:22.000Z
2021-09-25T23:25:22.000Z
recipe_project/recipe_project/apps/recipes/migrations/0004_auto_20211012_2141.py
Mark4nov/recipe-calculator-Django
d9bb3e4c1c7624d540debd9b2c427e0cc5f4ce78
[ "MIT" ]
null
null
null
recipe_project/recipe_project/apps/recipes/migrations/0004_auto_20211012_2141.py
Mark4nov/recipe-calculator-Django
d9bb3e4c1c7624d540debd9b2c427e0cc5f4ce78
[ "MIT" ]
1
2021-09-25T23:34:32.000Z
2021-09-25T23:34:32.000Z
# Generated by Django 3.2.7 on 2021-10-12 21:41 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('recipes', '0003_auto_20211008_2300'), ] operations = [ migrations.AlterField( model_name='ingpr...
30.033333
106
0.622642
94
901
5.87234
0.414894
0.072464
0.101449
0.15942
0.586957
0.586957
0.36413
0.36413
0.36413
0.36413
0
0.0462
0.255272
901
29
107
31.068966
0.776453
0.049945
0
0.391304
1
0
0.149883
0.026932
0
0
0
0
0
1
0
false
0
0.086957
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
05e3c45c4dec6302ea1d965dac4967f335a99eea
416
py
Python
setup.py
alexveden/featurewiz
2ced5898d4b2f1fa982ded44fdfc07afc19af423
[ "MIT" ]
1
2019-02-09T15:33:48.000Z
2019-02-09T15:33:48.000Z
setup.py
alexveden/featurewiz
2ced5898d4b2f1fa982ded44fdfc07afc19af423
[ "MIT" ]
null
null
null
setup.py
alexveden/featurewiz
2ced5898d4b2f1fa982ded44fdfc07afc19af423
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='featurewiz', version='0.1a', description='Data science features toolbox', url='https://github.com/alexveden/featurewiz', author='Alex Veden', author_email='i@alexveden.com', license='MIT', packages=['featurewiz'], install_requires...
26
52
0.576923
41
416
5.780488
0.853659
0
0
0
0
0
0
0
0
0
0
0.006711
0.283654
416
16
53
26
0.788591
0
0
0
0
0
0.326139
0
0
0
0
0
0
1
0
true
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
05e5ce2a7c4caf2e7a041b996497ef7819317370
1,228
py
Python
test/test_util.py
delijati/spark-emr
0d87dd51167993815e1a5046114da6b248549edf
[ "MIT" ]
null
null
null
test/test_util.py
delijati/spark-emr
0d87dd51167993815e1a5046114da6b248549edf
[ "MIT" ]
null
null
null
test/test_util.py
delijati/spark-emr
0d87dd51167993815e1a5046114da6b248549edf
[ "MIT" ]
null
null
null
import unittest import spark_emr import spark_emr.util class TestS3Path(unittest.TestCase): def test_main(self): parse = spark_emr.util.S3Path( "s3://bucket/folder/file.txt") self.assertEqual(parse.key, "folder/file.txt") self.assertEqual(parse.file, "file.txt") self....
34.111111
66
0.623779
154
1,228
4.850649
0.201299
0.107095
0.168675
0.168675
0.676037
0.61178
0.531459
0.523427
0.523427
0.463186
0
0.018908
0.224756
1,228
35
67
35.085714
0.765756
0.002443
0
0.285714
0
0
0.239575
0.114473
0
0
0
0
0.321429
1
0.107143
false
0
0.107143
0
0.25
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
05ea8507e66cc073d253ce56b97693afc1b651d9
124,612
py
Python
dfrandom.py
dripton/dfrandom
baa754b58b75201441c0e9a0fbfc10acd62f9939
[ "MIT" ]
5
2019-03-08T00:13:12.000Z
2021-05-02T07:29:45.000Z
dfrandom.py
dripton/dfrandom
baa754b58b75201441c0e9a0fbfc10acd62f9939
[ "MIT" ]
7
2019-03-08T00:24:03.000Z
2019-03-09T19:40:36.000Z
dfrandom.py
dripton/dfrandom
baa754b58b75201441c0e9a0fbfc10acd62f9939
[ "MIT" ]
3
2017-10-19T22:47:29.000Z
2020-01-14T21:58:31.000Z
#!/usr/bin/env python3 """Generate a random GURPS Dungeon Fantasy character.""" import argparse from collections import Counter import copy from enum import Enum, auto import os import random import re from typing import Dict, List, Set, Tuple import typing import xml.etree.ElementTree as et class TraitType(Enum)...
30.497308
80
0.502135
14,237
124,612
4.284751
0.106694
0.013868
0.018885
0.030163
0.593751
0.544851
0.508688
0.457116
0.423543
0.396151
0
0.03514
0.32289
124,612
4,085
81
30.504774
0.687838
0.035446
0
0.44139
1
0
0.311367
0.004571
0
0
0
0.000734
0.001347
1
0.01024
false
0.000808
0.002695
0
0.043654
0.00512
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
05f479a710c4415d605f3b4a9174218ec3f0c0f8
1,872
py
Python
demo/Mask_R-CNN_demo.py
federicovergallo/maskrcnn-benchmark
5c7151415e252f210cb8fe93e12d52e32b8c7066
[ "MIT" ]
null
null
null
demo/Mask_R-CNN_demo.py
federicovergallo/maskrcnn-benchmark
5c7151415e252f210cb8fe93e12d52e32b8c7066
[ "MIT" ]
null
null
null
demo/Mask_R-CNN_demo.py
federicovergallo/maskrcnn-benchmark
5c7151415e252f210cb8fe93e12d52e32b8c7066
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import matplotlib.pyplot as plt import matplotlib.pylab as pylab import requests from io import BytesIO from PIL import Image import numpy as np from maskrcnn_benchmark.config import cfg from predictor import COCODemo config_file = "../configs/e2e_mask_rcnn_R_50_FPN_1x_synthia....
21.767442
215
0.72062
291
1,872
4.536082
0.522337
0.021212
0.018182
0.024242
0
0
0
0
0
0
0
0.03881
0.174145
1,872
85
216
22.023529
0.815006
0.497329
0
0
0
0
0.090301
0.054627
0
0
0
0
0
1
0.068966
false
0
0.310345
0
0.413793
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
05f67548bfa5d7f070c3a8eb59bca25104d6ac10
444
py
Python
setup.py
IgorBaratta/pyMLPG
e005e4abe56a405a01c113efc63bb022339d728c
[ "MIT" ]
2
2019-05-28T01:00:37.000Z
2019-08-28T15:46:45.000Z
setup.py
IgorBaratta/pyMLPG
e005e4abe56a405a01c113efc63bb022339d728c
[ "MIT" ]
null
null
null
setup.py
IgorBaratta/pyMLPG
e005e4abe56a405a01c113efc63bb022339d728c
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='pymlpg', version='0.0.1', description='Python package for the Meshless Local Petrov Galerkin method', url='https://github.com/IgorBaratta/pyMLPG', author='Igor Baratta', author_email='igorbaratta@gmail.com', license='MIT', packages=['py...
27.75
81
0.603604
47
444
5.638298
0.851064
0
0
0
0
0
0
0
0
0
0
0.009174
0.263514
444
16
82
27.75
0.801223
0
0
0
0
0
0.382022
0.047191
0
0
0
0
0
1
0
true
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
05f79ef4380dd03ab2ea02a7dbbfd84902c023d4
10,853
py
Python
server/brain.py
19Leonidas99/JenniferVirtualAssistant
01fd219bb5850834e9624f8ff80fa6038b5f207b
[ "MIT" ]
1
2022-02-20T21:53:31.000Z
2022-02-20T21:53:31.000Z
server/brain.py
19Leonidas99/JenniferVirtualAssistant
01fd219bb5850834e9624f8ff80fa6038b5f207b
[ "MIT" ]
null
null
null
server/brain.py
19Leonidas99/JenniferVirtualAssistant
01fd219bb5850834e9624f8ff80fa6038b5f207b
[ "MIT" ]
null
null
null
import os import json import atexit import nltk import pkgutil import Queue import random import logging from pytz import common_timezones, timezone from apscheduler.schedulers.background import BackgroundScheduler from nltk.tag.perceptron import PerceptronTagger from lessons.base.plugin import JenniferResponsePlugin...
39.900735
161
0.600571
1,179
10,853
5.291773
0.243427
0.036544
0.024363
0.011059
0.1707
0.108351
0.065075
0.031415
0.031415
0.031415
0
0.002909
0.303234
10,853
271
162
40.04797
0.822137
0.047544
0
0.107527
0
0
0.065524
0.004598
0
0
0
0.00369
0
0
null
null
0.005376
0.075269
null
null
0.026882
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
05fb59500dc4c533a128b4f70f39bad7beeab0dd
1,994
py
Python
ccuapi/__init__.py
ScholzVolkmer/python-ccuapi
a823f5da158f7566945d38bf0049a91173f13781
[ "BSD-3-Clause" ]
null
null
null
ccuapi/__init__.py
ScholzVolkmer/python-ccuapi
a823f5da158f7566945d38bf0049a91173f13781
[ "BSD-3-Clause" ]
null
null
null
ccuapi/__init__.py
ScholzVolkmer/python-ccuapi
a823f5da158f7566945d38bf0049a91173f13781
[ "BSD-3-Clause" ]
null
null
null
""" Provide a Python interface to the Akamai CCU API. The CCU API is used to purge content from Akamai. This module will expose that API in the form of Python objects """ import os import sys # Handle the fact that ConfigParser was renamed to configparser in PY3 # pylint: disable=import-error try: import configp...
39.88
78
0.68004
231
1,994
5.744589
0.359307
0.033911
0.036172
0.054258
0.171063
0.128862
0.128862
0
0
0
0
0.000648
0.225677
1,994
49
79
40.693878
0.858808
0.215145
0
0.15625
0
0
0.224871
0
0
0
0
0
0
1
0
false
0.125
0.1875
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
05ffbc37259659cbed54297f97839051ba266066
362
py
Python
tests/unit2/test_is_point_in_polygon.py
yegarti/arcade
1862e61aab9a7dc646265005b0e808d953a9dfe3
[ "MIT" ]
824
2016-01-07T19:27:57.000Z
2020-08-01T03:15:47.000Z
tests/unit2/test_is_point_in_polygon.py
3w36zj6/arcade
2429205243f3b8c247a67163caea2e694f8e2ba4
[ "MIT" ]
646
2016-01-08T02:42:31.000Z
2020-08-03T14:13:27.000Z
tests/unit2/test_is_point_in_polygon.py
3w36zj6/arcade
2429205243f3b8c247a67163caea2e694f8e2ba4
[ "MIT" ]
221
2016-01-07T22:36:33.000Z
2020-07-24T23:30:08.000Z
import arcade def test_point_in_rectangle(): polygon = [ (0, 0), (0, 50), (50, 50), (50, 0), ] result = arcade.is_point_in_polygon(25, 25, polygon) assert result is True def test_point_not_in_empty_polygon(): polygon = [] result = arcade.is_point_in_polygon(25...
19.052632
56
0.604972
50
362
4.1
0.36
0.102439
0.117073
0.185366
0.517073
0.517073
0.517073
0.517073
0.517073
0.517073
0
0.07722
0.28453
362
18
57
20.111111
0.714286
0
0
0.142857
0
0
0
0
0
0
0
0
0.142857
1
0.142857
false
0
0.071429
0
0.214286
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
af08227ae2f293b66d7a658e7dfea3242e3060d9
1,621
py
Python
recipes/Python/580616_Python_method_chaining_examples/recipe-580616.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/580616_Python_method_chaining_examples/recipe-580616.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/580616_Python_method_chaining_examples/recipe-580616.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
''' Program: string_processor.py Demo of method chaining in Python. By: Vasudev Ram - http://jugad2.blogspot.in/p/about-vasudev-ram.html Copyright 2016 Vasudev Ram ''' import copy class StringProcessor(object): ''' A class to process strings in various ways. ''' def __init__(self, st): '''Pas...
25.328125
75
0.601481
201
1,621
4.761194
0.40796
0.068966
0.041797
0.050157
0.058516
0.058516
0
0
0
0
0
0.004177
0.261567
1,621
63
76
25.730159
0.795322
0.03578
0
0.117647
0
0
0.155477
0
0
0
0
0
0
0
null
null
0
0.029412
null
null
0.205882
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
af1289d9d648906df4f7322dc40e5d8b23f8aae2
471
py
Python
amep/nn/util.py
shunk031/attention-meets-perturbation
d40a5ca92ca5c85470a70edcbd968186bb50f9b0
[ "MIT" ]
4
2020-09-28T11:17:16.000Z
2021-12-16T01:35:25.000Z
amep/nn/util.py
shunk031/attention-meets-perturbation
d40a5ca92ca5c85470a70edcbd968186bb50f9b0
[ "MIT" ]
null
null
null
amep/nn/util.py
shunk031/attention-meets-perturbation
d40a5ca92ca5c85470a70edcbd968186bb50f9b0
[ "MIT" ]
null
null
null
import torch def weighted_loss( bce_loss: torch.Tensor, label: torch.Tensor, weight: torch.Tensor ) -> torch.Tensor: weight = label * weight.transpose(0, 1) + (1 - label) return (bce_loss * weight).mean(dim=1).sum() def masked_fill_for_qa( prediction: torch.Tensor, entity_mask: torch.Tensor = None )...
27.705882
78
0.685775
66
471
4.742424
0.454545
0.246006
0.108626
0
0
0
0
0
0
0
0
0.012987
0.18259
471
16
79
29.4375
0.8
0
0
0.166667
0
0
0.008493
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.5
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
af14edb2f5df3a297e21c7fd9bbc6c00032920d0
1,064
py
Python
wildlifecompliance/migrations/0177_auto_20190531_1034.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
1
2020-12-07T17:12:40.000Z
2020-12-07T17:12:40.000Z
wildlifecompliance/migrations/0177_auto_20190531_1034.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
14
2020-01-08T08:08:26.000Z
2021-03-19T22:59:46.000Z
wildlifecompliance/migrations/0177_auto_20190531_1034.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
15
2020-01-08T08:02:28.000Z
2021-11-03T06:48:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2019-05-31 02:34 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wildlifecompliance', '0176_auto_20190528_1220'), ] operations = [ migration...
42.56
463
0.669173
104
1,064
6.625
0.634615
0.095791
0.058055
0.072569
0.076923
0
0
0
0
0
0
0.040184
0.181391
1,064
24
464
44.333333
0.750861
0.06391
0
0.117647
1
0
0.411883
0.126888
0
0
0
0
0
1
0
false
0
0.117647
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
af177daa0707b0de612af8ed59e7464f2f3b8565
7,319
py
Python
tests/compile_step_stats_test.py
ribosomeprofiling/RFCommands
88970383d32e8c47ce137e6c500851facebddf8e
[ "MIT" ]
1
2020-01-14T01:20:25.000Z
2020-01-14T01:20:25.000Z
tests/compile_step_stats_test.py
ribosomeprofiling/RFCommands
88970383d32e8c47ce137e6c500851facebddf8e
[ "MIT" ]
2
2020-11-22T19:55:23.000Z
2021-04-06T19:42:49.000Z
tests/compile_step_stats_test.py
ribosomeprofiling/RFCommands
88970383d32e8c47ce137e6c500851facebddf8e
[ "MIT" ]
1
2019-08-19T22:06:38.000Z
2019-08-19T22:06:38.000Z
# -*- coding: utf-8 -*- import unittest import subprocess import os from io import StringIO import pandas as pd import sys test_dir_1 = os.path.dirname(os.path.realpath(__file__)) sys.path.append(test_dir_1) from base import TestBase ############################################################################### ...
34.852381
157
0.616751
1,133
7,319
3.889673
0.316858
0.017245
0.024506
0.069889
0.325845
0.297481
0.256183
0.22555
0.203767
0.203767
0
0.226718
0.260555
7,319
209
158
35.019139
0.587583
0.008334
0
0
0
0
0.118708
0.032289
0
0
0
0.004785
0.174603
1
0.031746
false
0.015873
0.111111
0
0.15873
0.031746
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
af1c8ff3085a7b3e24cef612e5a3d093cbe1503d
5,434
py
Python
predictor.py
WangShouDao/ecs
fa638a37b66caa04c96820d498d230331f7059e0
[ "Apache-2.0" ]
1
2018-03-29T07:08:41.000Z
2018-03-29T07:08:41.000Z
predictor.py
WangShouDao/ecs
fa638a37b66caa04c96820d498d230331f7059e0
[ "Apache-2.0" ]
null
null
null
predictor.py
WangShouDao/ecs
fa638a37b66caa04c96820d498d230331f7059e0
[ "Apache-2.0" ]
2
2018-03-17T14:33:28.000Z
2018-03-28T16:24:15.000Z
def count_time(time1, time2): monthDay = [31,28,31,30,31,30,31,31,30,31,30,31] if time1[0] % 4 !=0: if time2[1] == time1[1]: count = time2[2] - time1[2] else: count = time2[2] - time1[2] + monthDay[time1[1] - 1] elif time1[0] % 400 != 0: if time2[1] == time1[...
34.392405
112
0.517298
693
5,434
4.018759
0.157287
0.035907
0.027648
0.040215
0.335009
0.261041
0.207181
0.175583
0.11167
0.11167
0
0.040947
0.339345
5,434
158
113
34.392405
0.734819
0.019139
0
0.216216
0
0
0.019335
0
0
0
0
0
0
0
null
null
0
0
null
null
0.02027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
af1e514fcb095be8a0992050702495ed84edf108
651
py
Python
source-code/Power of Three 326.py
ttungl/Coding-Interview-Challenge
d80c3e15468d50b42ee53fcc73e9326c6c816495
[ "MIT" ]
null
null
null
source-code/Power of Three 326.py
ttungl/Coding-Interview-Challenge
d80c3e15468d50b42ee53fcc73e9326c6c816495
[ "MIT" ]
null
null
null
source-code/Power of Three 326.py
ttungl/Coding-Interview-Challenge
d80c3e15468d50b42ee53fcc73e9326c6c816495
[ "MIT" ]
null
null
null
# 326. Power of Three # ttungl@gmail.com # Given an integer, write a function to determine if it is a power of three. # Follow up: # Could you do it without using any loop / recursion? class Solution(object): def isPowerOfThree(self, n): """ :type n: int :rtype: bool """ ...
16.275
76
0.494624
89
651
3.617978
0.651685
0.018634
0.074534
0
0
0
0
0
0
0
0
0.095607
0.40553
651
39
77
16.692308
0.736434
0.482335
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
af20c443f6fdf93957688c9baef2cf11e6ab7f8b
249
py
Python
install.py
an-dr/dot_to_osscript
4c258834b36b80da730bef73c082b2b4ae175c1a
[ "MIT" ]
null
null
null
install.py
an-dr/dot_to_osscript
4c258834b36b80da730bef73c082b2b4ae175c1a
[ "MIT" ]
null
null
null
install.py
an-dr/dot_to_osscript
4c258834b36b80da730bef73c082b2b4ae175c1a
[ "MIT" ]
null
null
null
""" Do not edit using from a template """ import os import sys python = sys.executable install_cmd = "setup.py install" script_dir = os.path.dirname(os.path.realpath(__file__)) cmd_install = " ".join([python, install_cmd]) os.system(cmd_install)
17.785714
56
0.738956
38
249
4.605263
0.631579
0.114286
0
0
0
0
0
0
0
0
0
0
0.128514
249
13
57
19.153846
0.806452
0.13253
0
0
1
0
0.081731
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
af232e87923c641c2e7be2c2e7f859c6abf3f3f1
539
py
Python
TitanTwo/titan_two_cv.py
csalinasonline/TitanTwoDiablo2
ef3e02a28fedb8c2d3678516f73ac7bd17aaba88
[ "MIT" ]
null
null
null
TitanTwo/titan_two_cv.py
csalinasonline/TitanTwoDiablo2
ef3e02a28fedb8c2d3678516f73ac7bd17aaba88
[ "MIT" ]
null
null
null
TitanTwo/titan_two_cv.py
csalinasonline/TitanTwoDiablo2
ef3e02a28fedb8c2d3678516f73ac7bd17aaba88
[ "MIT" ]
null
null
null
import os import cv2 class GCVWorker: def __init__(self, width, height): os.chdir(os.path.dirname(__file__)) self.gcvdata = bytearray([0x00]) def __del__(self): del self.gcvdata def process(self, frame): position = (10,50) cv2.putText( frame, #numpy array on which te...
23.434783
51
0.643785
75
539
4.44
0.693333
0.066066
0
0
0
0
0
0
0
0
0
0.051852
0.248609
539
22
52
24.5
0.77037
0
0
0
0
0
0.009685
0
0
0
0.009685
0
0
0
null
null
0
0.105263
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
af2bffffb3eff2ea1350a15b87d107b230d85d9e
4,532
py
Python
C3PO/Models/Encoder.py
tech-srl/c3po
ce1e002bf9d026c10fbd2c178d454ebb76cb7a94
[ "MIT" ]
18
2020-11-13T02:43:58.000Z
2022-01-04T08:11:05.000Z
C3PO/Models/Encoder.py
shaileshj2803/c3po
a673a0514ee8c800efa12574ef8da3fcb8ef73b7
[ "MIT" ]
2
2021-03-11T01:19:55.000Z
2021-05-21T15:01:42.000Z
C3PO/Models/Encoder.py
shaileshj2803/c3po
a673a0514ee8c800efa12574ef8da3fcb8ef73b7
[ "MIT" ]
6
2021-02-25T06:07:06.000Z
2021-05-21T23:44:45.000Z
import torch.nn as nn from Models.PathEncoder import PathEncoder from Models.SequenceEncoder import SequenceEncoder from Models.Transformer import Transformer from Models.OperationMix import OperationMix from torch.nn.utils.rnn import pad_packed_sequence, pack_padded_sequence, pack_sequence import torch class Encoder...
55.950617
201
0.734775
653
4,532
4.67075
0.162328
0.086557
0.039344
0.047213
0.419672
0.368197
0.282623
0.247869
0.227541
0.138361
0
0.007561
0.182921
4,532
80
202
56.65
0.816095
0.223963
0
0
0
0
0.004366
0
0
0
0
0.0125
0
1
0.0625
false
0
0.145833
0.020833
0.270833
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
af32ccb5a182b0b75f847114ec9aa9a2409036de
477
py
Python
ml_enabler/api/swagger.py
ingalls/ml-enabler
efda973cb3fa9954cbe24cd0963a7b8f5be5ad6f
[ "BSD-2-Clause" ]
39
2019-06-02T13:34:09.000Z
2022-03-29T16:08:59.000Z
ml_enabler/api/swagger.py
ingalls/ml-enabler
efda973cb3fa9954cbe24cd0963a7b8f5be5ad6f
[ "BSD-2-Clause" ]
36
2019-05-16T10:17:16.000Z
2020-09-02T21:01:01.000Z
ml_enabler/api/swagger.py
ingalls/ml-enabler
efda973cb3fa9954cbe24cd0963a7b8f5be5ad6f
[ "BSD-2-Clause" ]
8
2019-05-22T19:16:32.000Z
2020-08-20T15:31:15.000Z
from flask import current_app, jsonify from flask_restful import Resource from flask_swagger import swagger class SwaggerDocsAPI(Resource): """ Provides a swagger template for API docs """ def get(self): template = swagger(current_app) template['info']['title'] = "HOT ML Enabler API" ...
26.5
76
0.662474
58
477
5.37931
0.534483
0.086538
0.076923
0
0
0
0
0
0
0
0
0.00813
0.226415
477
17
77
28.058824
0.837398
0.083857
0
0
0
0
0.213777
0
0
0
0
0
0
1
0.1
false
0
0.3
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
af33fca2b32dfb3a1bffad4485969d6a293ae047
3,256
py
Python
tests/test_sdklib.py
jframos/sdklib
0cc1126e94b823fad6cc47e6a00549cad6d2f771
[ "BSD-2-Clause" ]
3
2016-12-15T15:54:37.000Z
2021-08-10T03:16:18.000Z
tests/test_sdklib.py
jframos/sdklib
0cc1126e94b823fad6cc47e6a00549cad6d2f771
[ "BSD-2-Clause" ]
44
2016-04-13T08:19:45.000Z
2022-01-14T12:58:44.000Z
tests/test_sdklib.py
jframos/sdklib
0cc1126e94b823fad6cc47e6a00549cad6d2f771
[ "BSD-2-Clause" ]
5
2016-11-22T11:23:28.000Z
2020-01-28T12:26:10.000Z
# -*- coding: utf-8 -*- import unittest import pytest import time from sdklib.compat import bytes, is_py2, is_py3, exceptions from sdklib.util.files import guess_filename_stream from tests.sample_sdk import SampleHttpSdk class TestSampleSdk(unittest.TestCase): @classmethod def setUpClass(cls): # Sa...
36.58427
96
0.688268
391
3,256
5.521739
0.258312
0.077814
0.083372
0.079203
0.592867
0.553034
0.508106
0.413154
0.377026
0.319592
0
0.028273
0.207002
3,256
88
97
37
0.807901
0.132678
0
0.322034
0
0
0.073942
0.022752
0
0
0
0
0.220339
1
0.237288
false
0.033898
0.101695
0
0.355932
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
af3e239b5bf94a5fc414db39fc2e6b409cddb49f
1,756
py
Python
exts/utils/channels.py
TushaarKhurana/Quote-Finder
d10e011f6ebb2f12aa85571f8fd9c6c70b053bfc
[ "MIT" ]
null
null
null
exts/utils/channels.py
TushaarKhurana/Quote-Finder
d10e011f6ebb2f12aa85571f8fd9c6c70b053bfc
[ "MIT" ]
null
null
null
exts/utils/channels.py
TushaarKhurana/Quote-Finder
d10e011f6ebb2f12aa85571f8fd9c6c70b053bfc
[ "MIT" ]
2
2021-06-07T17:47:05.000Z
2022-01-16T16:33:48.000Z
from exts import config pos_channel_cooldown = [x.strip() for x in (config.get( 'cooldown channels', 'pos_channel')).split(",")] bl_channel_cooldown = [x.strip() for x in (config.get( 'cooldown channels', 'bl_channel')).split(",")] aoc_channel_cooldown = [x.strip() for x in (config.get( 'cooldown channel...
31.357143
75
0.683371
232
1,756
4.913793
0.150862
0.224561
0.055263
0.061404
0.720175
0.674561
0.474561
0.474561
0.326316
0.326316
0
0.002829
0.194761
1,756
55
76
31.927273
0.803395
0.019932
0
0.054054
0
0
0.119837
0
0
0
0
0
0
1
0.027027
false
0
0.027027
0
0.081081
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
af3fe5b6ac68b001b30a57da2ceb1a8fbc8a398d
505
py
Python
lesson05/chenfan/messag.py
herrywen-nanj/51reboot
1130c79a360e1b548a6eaad176eb60f8bed22f40
[ "Apache-2.0" ]
null
null
null
lesson05/chenfan/messag.py
herrywen-nanj/51reboot
1130c79a360e1b548a6eaad176eb60f8bed22f40
[ "Apache-2.0" ]
null
null
null
lesson05/chenfan/messag.py
herrywen-nanj/51reboot
1130c79a360e1b548a6eaad176eb60f8bed22f40
[ "Apache-2.0" ]
null
null
null
import psutil # cpu cpu_info = psutil.cpu_times() print("cpu执行用户进程时间: {}".format(cpu_info.user)) print("cpu执行系统调用时间: {}".format(cpu_info.system)) mem_info = psutil.virtual_memory() print(mem_info) print("总内存:{}".format(mem_info.total)) print("可用内存:{}".format(mem_info.available)) print("内存使用率: {}".format(mem_info.pe...
21.041667
48
0.730693
73
505
4.821918
0.39726
0.099432
0.110795
0
0
0
0
0
0
0
0
0.025696
0.075248
505
23
49
21.956522
0.728051
0.011881
0
0
0
0
0.127016
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0.6
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
af4008db7cbd2793b5cc2f916c17f35a76fb8f2b
2,190
py
Python
slimer/statement.py
BernardNotarianni/slimer
78c5d445d751032d5ff1152d8eccfac06011c084
[ "MIT" ]
null
null
null
slimer/statement.py
BernardNotarianni/slimer
78c5d445d751032d5ff1152d8eccfac06011c084
[ "MIT" ]
null
null
null
slimer/statement.py
BernardNotarianni/slimer
78c5d445d751032d5ff1152d8eccfac06011c084
[ "MIT" ]
1
2020-08-18T08:03:48.000Z
2020-08-18T08:03:48.000Z
from SlimError import SlimError class Statement(object): def __init__(self, statement): self.words = statement def operationIs(self, operation): return self.getOperation() == operation def getOperation(self): return self.getWord(1) def getWord(self, word): try: ...
31.73913
100
0.602283
217
2,190
6.032258
0.271889
0.067227
0.036669
0.061879
0
0
0
0
0
0
0
0.0089
0.281735
2,190
68
101
32.205882
0.823268
0
0
0.035714
0
0
0.052968
0.026941
0.017857
0
0
0
0
1
0.214286
false
0
0.035714
0.071429
0.464286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
af485d90e1bf76ac16e905cc09a0da0082e9876c
411
py
Python
apps/twee/templatetags/hash_tags.py
adepeter/pythondailytip
8b114b68d417e7631d139f1ee2267f6f0e061cdf
[ "MIT" ]
null
null
null
apps/twee/templatetags/hash_tags.py
adepeter/pythondailytip
8b114b68d417e7631d139f1ee2267f6f0e061cdf
[ "MIT" ]
null
null
null
apps/twee/templatetags/hash_tags.py
adepeter/pythondailytip
8b114b68d417e7631d139f1ee2267f6f0e061cdf
[ "MIT" ]
null
null
null
from django import template from ..models import PythonTipHashTag register = template.Library() @register.inclusion_tag('apps/twee/includes/templatetags/hash_tags.html', name='hashtags_template') def hash_tags_with_template(): tags = PythonTipHashTag.objects.all() return {'hash_tags': tags} @register.simp...
24.176471
99
0.776156
50
411
6.18
0.52
0.10356
0.071197
0
0
0
0
0
0
0
0
0
0.107056
411
16
100
25.6875
0.841962
0
0
0
0
0
0.194647
0.111922
0
0
0
0
0
1
0.2
false
0
0.2
0.1
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
af4b4dfd6ecc559109eb7687a77551c33e5572da
7,880
py
Python
src/pyrad_proc/pyrad/graph/plots_aux.py
jfigui/pyrad
7811d593bb09a7f8a621c0e8ae3f32c2b85a0254
[ "BSD-3-Clause" ]
41
2016-12-01T08:46:06.000Z
2021-06-24T21:14:33.000Z
src/pyrad_proc/pyrad/graph/plots_aux.py
jfigui/pyrad
7811d593bb09a7f8a621c0e8ae3f32c2b85a0254
[ "BSD-3-Clause" ]
42
2017-02-23T14:52:49.000Z
2021-02-01T10:43:52.000Z
src/pyrad_proc/pyrad/graph/plots_aux.py
jfigui/pyrad
7811d593bb09a7f8a621c0e8ae3f32c2b85a0254
[ "BSD-3-Clause" ]
21
2016-08-25T15:02:12.000Z
2021-05-27T04:09:40.000Z
""" pyrad.graph.plots_aux ===================== Auxiliary plotting functions .. autosummary:: :toctree: generated/ generate_complex_range_Doppler_title generate_angle_Doppler_title generate_complex_Doppler_title generate_fixed_rng_span_title generate_fixed_rng_title get_colobar_label ...
25.501618
82
0.624492
1,013
7,880
4.65153
0.144126
0.068761
0.054329
0.081494
0.628608
0.593803
0.579372
0.579372
0.540747
0.514856
0
0.00489
0.27335
7,880
308
83
25.584416
0.818023
0.348985
0
0.451923
1
0
0.07856
0
0
0
0
0
0
1
0.076923
false
0
0.028846
0
0.182692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
af52a8ebecb813936ad08a472b5c6443b48be2c8
730
py
Python
ufaas_dockerapi/types.py
DDevine/ufaas-dockerapi
f11bfe3ee3f770ef4d0236f9e37594190e529864
[ "Apache-2.0" ]
null
null
null
ufaas_dockerapi/types.py
DDevine/ufaas-dockerapi
f11bfe3ee3f770ef4d0236f9e37594190e529864
[ "Apache-2.0" ]
null
null
null
ufaas_dockerapi/types.py
DDevine/ufaas-dockerapi
f11bfe3ee3f770ef4d0236f9e37594190e529864
[ "Apache-2.0" ]
null
null
null
# flake8: noqa from typing import Any, Dict, List, Tuple, Union JsonDict = Dict[str, Any] DockerJSON = Union[List[JsonDict], JsonDict] # Docker sometimes returns streamed JSON. We also want the HTTP code as int. DockerJSONResponse = Tuple[int, DockerJSON] from ufaas_dockerapi.config import ConfigBase from ufaas_dock...
31.73913
76
0.835616
85
730
7.105882
0.552941
0.089404
0.178808
0
0
0
0
0
0
0
0
0.001546
0.113699
730
23
77
31.73913
0.931994
0.119178
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4375
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
af551336e2887a324037bb07fc940aa4b7dc1570
1,928
py
Python
simplechoice/admin.py
axju/django-simplechoice
ced00996a852a84b6738118501b3f098bc6361b4
[ "MIT" ]
null
null
null
simplechoice/admin.py
axju/django-simplechoice
ced00996a852a84b6738118501b3f098bc6361b4
[ "MIT" ]
null
null
null
simplechoice/admin.py
axju/django-simplechoice
ced00996a852a84b6738118501b3f098bc6361b4
[ "MIT" ]
null
null
null
from django.contrib import admin from nested_inline.admin import NestedTabularInline, NestedModelAdmin from simplechoice.models import Attribute from simplechoice.models import Game, GameDecision, GameAttribute, GameEvent from simplechoice.models import Decision, DecisionRequireAttribute, Answer, AnswerGetAttribute fr...
26.410959
94
0.761411
175
1,928
8.274286
0.348571
0.044199
0.060773
0.077348
0.027624
0
0
0
0
0
0
0.00183
0.149896
1,928
72
95
26.777778
0.881635
0
0
0.106383
0
0
0.095954
0
0
0
0
0
0
1
0
false
0.021277
0.12766
0
0.808511
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
af59c9307b7c7d94fd2708f5a1306a8843af4cd3
830
py
Python
manage.py
moonbria/test1
05893bd91d416ca4093e4619ede427434fa665cc
[ "MIT" ]
null
null
null
manage.py
moonbria/test1
05893bd91d416ca4093e4619ede427434fa665cc
[ "MIT" ]
null
null
null
manage.py
moonbria/test1
05893bd91d416ca4093e4619ede427434fa665cc
[ "MIT" ]
null
null
null
from flask_migrate import Migrate, MigrateCommand from flask_script import Manager from info import db from info import create_app # 通过指定的配置名字创建对应的app from info.models import User app = create_app("development") manager = Manager(app) Migrate(app, db) manager.add_command('db', MigrateCommand) @manager.option("-n",...
21.282051
51
0.663855
104
830
5.153846
0.451923
0.044776
0.052239
0
0
0
0
0
0
0
0
0
0.209639
830
38
52
21.842105
0.817073
0.031325
0
0
0
0
0.068922
0
0
0
0
0
0
1
0.035714
false
0.142857
0.178571
0
0.25
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
af6a283c28dda130e12c51453742f17166ffb420
2,081
py
Python
arrays.py
smv7/Numpy_exploration
1cf0af53da9a3cd1572809264c7d8f4447fa7712
[ "MIT" ]
null
null
null
arrays.py
smv7/Numpy_exploration
1cf0af53da9a3cd1572809264c7d8f4447fa7712
[ "MIT" ]
null
null
null
arrays.py
smv7/Numpy_exploration
1cf0af53da9a3cd1572809264c7d8f4447fa7712
[ "MIT" ]
null
null
null
import numpy as np # Creating vectors (unidimensional arrays) vector_a = np.arange(5) # 0 to 4 array vector_b = np.arange(start=3, stop=7, step=1) # start, stop, step vector_c = np.arange(11, 1, -2) vector_d = np.linspace(start=0, stop=1, num=11) # Automatic step calculation with explicit array length definition (thi...
29.728571
132
0.693897
385
2,081
3.58961
0.236364
0.073806
0.05644
0.011577
0.132417
0.070912
0.070912
0.030391
0.030391
0.030391
0
0.039576
0.137914
2,081
69
133
30.15942
0.730769
0.26766
0
0
0
0
0.257294
0
0
0
0
0
0
1
0
false
0
0.028571
0
0.028571
0.457143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
af6fead83d5798fd99b00a16fda0f6b0aba3a3e4
5,243
py
Python
sdk/python/pulumi_google_native/bigtableadmin/v2/get_instance.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/bigtableadmin/v2/get_instance.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/bigtableadmin/v2/get_instance.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __...
38.837037
597
0.651535
647
5,243
5.085008
0.302937
0.036474
0.029179
0.054711
0.189058
0.124316
0.101824
0.082675
0.037082
0.037082
0
0.00683
0.246042
5,243
134
598
39.126866
0.825449
0.260919
0
0.111111
1
0
0.127734
0.018363
0
0
0
0
0
1
0.111111
false
0
0.055556
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
af748cfe6701c43970631cfac6f1df648931cfdf
1,112
py
Python
computationAndProgrammingUsingPython/src/algorithms/binarySearch.py
pparacch/PlayingWithPython
9fe75551cae6aeac8730b922a06ff0be85634f4d
[ "MIT" ]
null
null
null
computationAndProgrammingUsingPython/src/algorithms/binarySearch.py
pparacch/PlayingWithPython
9fe75551cae6aeac8730b922a06ff0be85634f4d
[ "MIT" ]
null
null
null
computationAndProgrammingUsingPython/src/algorithms/binarySearch.py
pparacch/PlayingWithPython
9fe75551cae6aeac8730b922a06ff0be85634f4d
[ "MIT" ]
null
null
null
#BinarySearch #Asymptotic complexity: O(log(len(n))) #Python version 2.7 #Suppose we know something about the order in which elemnets are stored #e.g. a list of integer stored in ascending order. def search(L, e): """Assume that L is a list, elements ordered in ascending order Returns True if e is in L and False ot...
25.272727
71
0.679856
182
1,112
4.153846
0.395604
0.013228
0.047619
0.071429
0.322751
0.297619
0.253968
0.103175
0
0
0
0.119454
0.209532
1,112
43
72
25.860465
0.740614
0.18705
0
0.192308
0
0
0.255102
0
0
0
0
0
0
0
null
null
0
0
null
null
0.307692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
af75909cb976e13bfc2b9801dabd0216b4074bdf
1,195
py
Python
exoral/migrations/0003_auto_20170322_1453.py
fachschaft-medizin-rostock/django-fsmedhro
9b7b595494e0d277b4c7bf49f01f385bd3df79c4
[ "MIT" ]
3
2017-01-31T10:09:37.000Z
2017-04-27T19:33:05.000Z
exoral/migrations/0003_auto_20170322_1453.py
hutchison/django-fsmedhro
7062b6d94c2e0ce6fb659b5159c4d777863a53d9
[ "MIT" ]
9
2017-06-09T07:29:51.000Z
2022-01-13T00:40:16.000Z
exoral/migrations/0003_auto_20170322_1453.py
hutchison/django-fsmedhro
7062b6d94c2e0ce6fb659b5159c4d777863a53d9
[ "MIT" ]
2
2020-02-13T12:35:06.000Z
2020-04-26T13:26:04.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-22 13:53 from __future__ import unicode_literals import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('exoral', '0002_auto_20170126_1634'), ] ...
31.447368
132
0.621757
126
1,195
5.753968
0.460317
0.044138
0.137931
0.16
0.391724
0.391724
0.182069
0.182069
0.182069
0.182069
0
0.036954
0.25272
1,195
37
133
32.297297
0.774916
0.056904
0
0.4
1
0
0.128114
0.020463
0
0
0
0
0
1
0
false
0
0.133333
0
0.233333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
af79ae521f897c3129c29ebce0c46eefa1608e3f
418
py
Python
main.py
alen2/python-programs
3d1d0533f63445fa79d0c788fd1084c4586ccf91
[ "BSD-2-Clause" ]
null
null
null
main.py
alen2/python-programs
3d1d0533f63445fa79d0c788fd1084c4586ccf91
[ "BSD-2-Clause" ]
null
null
null
main.py
alen2/python-programs
3d1d0533f63445fa79d0c788fd1084c4586ccf91
[ "BSD-2-Clause" ]
null
null
null
# This is a sample Python script. # Press Shift+F10 to execute it or replace it with your code. # num=int(input("enter the number")) flag=False if num>1: for i in range(2,num): if(num%i)==0: flag=True break if flag: print(num, "is not a prime number") else: print(num,"...
17.416667
62
0.600478
68
418
3.691176
0.691176
0.023904
0.079681
0
0
0
0
0
0
0
0
0.016722
0.284689
418
23
63
18.173913
0.822742
0.361244
0
0
0
0
0.225941
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
1
af7a13a9314a374894f0bf7e58087e5bfa0024f0
1,579
py
Python
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/ARB/vertex_shader.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/ARB/vertex_shader.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GL/ARB/vertex_shader.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
'''OpenGL extension ARB.vertex_shader This module customises the behaviour of the OpenGL.raw.GL.ARB.vertex_shader to provide a more Python-friendly API ''' from OpenGL import platform, constants, constant, arrays from OpenGL import extensions, wrapper from OpenGL.GL import glget import ctypes from OpenGL.raw.GL.ARB....
40.487179
93
0.775807
212
1,579
5.660377
0.429245
0.041667
0.0375
0.023333
0.125
0.125
0
0
0
0
0
0.010241
0.134262
1,579
38
94
41.552632
0.867593
0.015833
0
0
0
0
0.051488
0
0
0
0
0
0
0
null
null
0
0.269231
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
af7dbd7aeb8cde45acf7af547ba53ef4ffc03a19
2,247
py
Python
toolchain/riscv/MSYS/python/Lib/symbol.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
207
2018-10-01T08:53:01.000Z
2022-03-14T12:15:54.000Z
Thonny/Lib/symbol.py
Pydiderot/pydiderotIDE
a42fcde3ea837ae40c957469f5d87427e8ce46d3
[ "MIT" ]
30
2019-01-04T10:14:56.000Z
2020-10-12T14:00:31.000Z
Thonny/Lib/symbol.py
Pydiderot/pydiderotIDE
a42fcde3ea837ae40c957469f5d87427e8ce46d3
[ "MIT" ]
76
2020-03-16T01:47:46.000Z
2022-03-21T16:37:07.000Z
#! /usr/bin/env python3 """Non-terminal symbols of Python grammar (from "graminit.h").""" # This file is automatically generated; please don't muck it up! # # To update the symbols in this file, 'cd' to the top directory of # the python source tree after building the interpreter and run: # # ./python L...
19.205128
70
0.684913
337
2,247
4.329377
0.658754
0.014393
0.015079
0
0
0
0
0
0
0
0
0.153043
0.23231
2,247
116
71
19.37069
0.692754
0.150423
0
0
1
0
0.021922
0
0
0
0
0
0.010101
1
0.010101
false
0.010101
0.070707
0
0.080808
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
af7f38fb6d785ca3f9429dd5e0ab921f374eb9cd
169
py
Python
scripts/multi-version-tests.py
sauljabin/licensegh
01dad5a8934869423feb9bc59854631ab1cb6e08
[ "MIT" ]
null
null
null
scripts/multi-version-tests.py
sauljabin/licensegh
01dad5a8934869423feb9bc59854631ab1cb6e08
[ "MIT" ]
null
null
null
scripts/multi-version-tests.py
sauljabin/licensegh
01dad5a8934869423feb9bc59854631ab1cb6e08
[ "MIT" ]
null
null
null
import subprocess import sys def main(): tox = subprocess.run(["poetry", "run", "tox", "-q"]) sys.exit(tox.returncode) if __name__ == "__main__": main()
14.083333
56
0.609467
21
169
4.52381
0.619048
0
0
0
0
0
0
0
0
0
0
0
0.201183
169
11
57
15.363636
0.703704
0
0
0
0
0
0.130178
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.428571
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
af841bdad54bf41e00192fc2c610cf5052dfd7d9
3,331
py
Python
amqp_aio/amqp/queue.py
Mendes11/amqp-aio
8728ce5c54f68aa51ba95da86b34062c7a06451d
[ "Apache-2.0" ]
null
null
null
amqp_aio/amqp/queue.py
Mendes11/amqp-aio
8728ce5c54f68aa51ba95da86b34062c7a06451d
[ "Apache-2.0" ]
null
null
null
amqp_aio/amqp/queue.py
Mendes11/amqp-aio
8728ce5c54f68aa51ba95da86b34062c7a06451d
[ "Apache-2.0" ]
null
null
null
from amqp_aio.amqp.amqp_types import NoField, ShortString, Boolean, FieldTable, \ LongInt from amqp_aio.amqp.base_frame import FrameField from amqp_aio.amqp.consts import QUEUE_CLASS_ID, QUEUE_DECLARE_ID, \ QUEUE_DECLARE_OK_ID, QUEUE_BIND_ID, QUEUE_BIND_OK_ID, QUEUE_UNBIND_ID, \ QUEUE_UNBIND_OK_ID, QUEUE_P...
25.045113
81
0.681477
372
3,331
5.790323
0.158602
0.071495
0.088208
0.111421
0.567781
0.399257
0.362117
0.362117
0.286908
0.286908
0
0.003896
0.229361
3,331
132
82
25.234848
0.835216
0
0
0.378947
0
0
0.075353
0
0
0
0
0
0
1
0.010526
false
0.021053
0.042105
0.010526
0.694737
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
af8b9bb5a660cc82b3f7901ff6fc6895f087c0df
1,133
py
Python
good_spot/places/migrations/0040_actualpopulartimes.py
jasmine92122/NightClubBackend
7f59129b78baaba0e0c25de2b493033b858f1b00
[ "MIT" ]
null
null
null
good_spot/places/migrations/0040_actualpopulartimes.py
jasmine92122/NightClubBackend
7f59129b78baaba0e0c25de2b493033b858f1b00
[ "MIT" ]
5
2020-02-12T03:13:11.000Z
2022-01-13T01:41:14.000Z
good_spot/places/migrations/0040_actualpopulartimes.py
jasmine92122/NightClubBackend
7f59129b78baaba0e0c25de2b493033b858f1b00
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-01-30 13:02 from __future__ import unicode_literals import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.utils.timezone import model_utils.fields class Migration(migrations.Migration): dependencies = [ ...
35.40625
147
0.639011
116
1,133
6.077586
0.568966
0.046809
0.080851
0.076596
0.241135
0.150355
0.150355
0.150355
0.150355
0
0
0.038106
0.235658
1,133
31
148
36.548387
0.775982
0.060018
0
0
1
0
0.107345
0.021657
0
0
0
0
0
1
0
false
0
0.208333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
af9a80f711d1fb9fcf29d080fdad869771636234
8,643
py
Python
HMM_training.py
paulinapmk/ML-project
a16f91a05900111b41ad936933e015900ceb096a
[ "MIT" ]
null
null
null
HMM_training.py
paulinapmk/ML-project
a16f91a05900111b41ad936933e015900ceb096a
[ "MIT" ]
null
null
null
HMM_training.py
paulinapmk/ML-project
a16f91a05900111b41ad936933e015900ceb096a
[ "MIT" ]
1
2018-05-03T15:21:00.000Z
2018-05-03T15:21:00.000Z
# -*- coding: utf-8 -*- """ @author: Paulina Kania """ from collections import Counter from collections import defaultdict import pickle from ghmm import * ##proteins is used to store all possible amino acids sequences: list of strings; it's taken from dssp files proteins = [] ##structures is used to store all possibl...
38.757848
408
0.727294
1,116
8,643
5.465054
0.204301
0.022955
0.017708
0.012461
0.172979
0.114609
0.072143
0.058042
0.021643
0.021643
0
0.006087
0.182691
8,643
222
409
38.932432
0.857305
0.280458
0
0.081818
0
0
0.028184
0
0
0
0
0
0
0
null
null
0
0.036364
null
null
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
af9c0a1d7387b018bcb480ff82383ae8091928ed
12,827
py
Python
etcd3/errors/go_etcd_rpctypes_error.py
dariko/etcd3-py
aceada8c03942d83104f4a8601683ab0abeb9d66
[ "Apache-2.0" ]
96
2018-03-20T03:42:25.000Z
2022-03-20T13:29:14.000Z
etcd3/errors/go_etcd_rpctypes_error.py
dariko/etcd3-py
aceada8c03942d83104f4a8601683ab0abeb9d66
[ "Apache-2.0" ]
148
2018-01-26T08:32:52.000Z
2022-03-25T11:40:42.000Z
etcd3/errors/go_etcd_rpctypes_error.py
dariko/etcd3-py
aceada8c03942d83104f4a8601683ab0abeb9d66
[ "Apache-2.0" ]
20
2018-03-30T04:40:25.000Z
2022-03-18T16:10:20.000Z
""" from github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/error.go """ from .go_grpc_codes import GRPCCode, codeText # server-side error ErrGRPCEmptyKey = GRPCCode.InvalidArgument, "etcdserver: key is not provided" ErrGRPCKeyNotFound = GRPCCode.InvalidArgument, "etcdserver: key not found" ErrGRPCValueProvided = G...
51.514056
132
0.809698
1,007
12,827
10.194638
0.222443
0.074518
0.049094
0.011689
0.062147
0.041691
0.02104
0.011105
0.011105
0
0
0.000527
0.111873
12,827
248
133
51.721774
0.900632
0.009355
0
0.019704
0
0
0.180988
0.008033
0
0
0
0
0
1
0.024631
false
0.009852
0.004926
0.009852
0.064039
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
afa8c180256ed9a9203e489c5df30f3e403ff589
7,610
py
Python
simulator/schedulers.py
llpilla/study-loop-scheduling
1bd56a03b1524bf4a5a2df32a88bca7ed8bf6a9f
[ "CC0-1.0" ]
1
2021-01-30T21:53:51.000Z
2021-01-30T21:53:51.000Z
simulator/schedulers.py
llpilla/study-loop-scheduling
1bd56a03b1524bf4a5a2df32a88bca7ed8bf6a9f
[ "CC0-1.0" ]
null
null
null
simulator/schedulers.py
llpilla/study-loop-scheduling
1bd56a03b1524bf4a5a2df32a88bca7ed8bf6a9f
[ "CC0-1.0" ]
null
null
null
"""Module containing scheduling algorithms. Each scheduling algorithm receives a specific set of inputs. They output partial mappings when requested using the query method. Implemented scheduling methods: OpenMPStatic, LPT. Methods with interfaces but no implementation: OpenMPDynamic, OpenMPGuided, RecursiveBipartiti...
29.269231
78
0.591459
894
7,610
4.902685
0.218121
0.052019
0.025553
0.027379
0.45494
0.438056
0.423682
0.403149
0.394707
0.386265
0
0.004547
0.335348
7,610
259
79
29.382239
0.862001
0.483837
0
0.438356
0
0
0.010427
0
0
0
0
0.019305
0
1
0.178082
false
0
0
0.013699
0.342466
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
afaed21bc58b0bec37c83d8c2fe94dbea69e8efb
6,869
py
Python
spambayes/testtools/table.py
alexeip0/spambayes
0c7d12cf4702ef82974ab16d2a36fa9ccedf185a
[ "PSF-2.0" ]
13
2015-07-03T06:53:47.000Z
2021-02-19T13:21:56.000Z
spambayes/testtools/table.py
alexeip0/spambayes
0c7d12cf4702ef82974ab16d2a36fa9ccedf185a
[ "PSF-2.0" ]
5
2015-07-16T07:33:46.000Z
2021-04-05T20:27:52.000Z
spambayes/testtools/table.py
alexeip0/spambayes
0c7d12cf4702ef82974ab16d2a36fa9ccedf185a
[ "PSF-2.0" ]
20
2015-05-16T22:42:14.000Z
2021-09-18T17:46:40.000Z
#!/usr/bin/env python """ table.py [-m] base1 base2 ... baseN Combines output from base1.txt, base2.txt, etc., which are created by the TestDriver (such as timcv.py) output, and displays tabulated comparison statistics to stdout. Each input file is represented by one column in the table. Optional argument -m shows ...
29.607759
79
0.483185
797
6,869
4.154329
0.237139
0.021746
0.043491
0.029598
0.18363
0.134703
0.134703
0.134703
0.134703
0.134703
0
0.050514
0.363081
6,869
231
80
29.735931
0.706286
0.079633
0
0.022989
0
0
0.128826
0
0
0
0
0
0
0
null
null
0
0.011494
null
null
0.109195
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
afafd72d9a9612c59d1949e11202472b53c59e2f
686
py
Python
src/brouwers/shop/resources.py
modelbrouwers/modelbrouwers
e0ba4819bf726d6144c0a648fdd4731cdc098a52
[ "MIT" ]
6
2015-03-03T13:23:07.000Z
2021-12-19T18:12:41.000Z
src/brouwers/shop/resources.py
modelbrouwers/modelbrouwers
e0ba4819bf726d6144c0a648fdd4731cdc098a52
[ "MIT" ]
95
2015-02-07T00:55:39.000Z
2022-02-08T20:22:05.000Z
src/brouwers/shop/resources.py
modelbrouwers/modelbrouwers
e0ba4819bf726d6144c0a648fdd4731cdc098a52
[ "MIT" ]
2
2016-03-22T16:53:26.000Z
2019-02-09T22:46:04.000Z
from import_export.resources import ModelResource from .models import Category, Product class CategoryResource(ModelResource): class Meta: model = Category fields = ("id", "name", "image", "seo_keyword", "enabled") class ProductResource(ModelResource): class Meta: model = Product ...
21.4375
66
0.475219
50
686
6.44
0.6
0.111801
0.136646
0.167702
0
0
0
0
0
0
0
0
0.411079
686
31
67
22.129032
0.79703
0
0
0.076923
0
0
0.186589
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.230769
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
afb750c6155e20ebfa152f825adab84ccf29e364
2,394
py
Python
comments/forms.py
awesome-archive/DjangoBlog
2a9b9cb97c659f6589ae22d29ae2c8fb41497756
[ "MIT" ]
null
null
null
comments/forms.py
awesome-archive/DjangoBlog
2a9b9cb97c659f6589ae22d29ae2c8fb41497756
[ "MIT" ]
null
null
null
comments/forms.py
awesome-archive/DjangoBlog
2a9b9cb97c659f6589ae22d29ae2c8fb41497756
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ @version: ?? @author: liangliangyy @license: MIT Licence @contact: liangliangyy@gmail.com @site: https://www.lylinux.org/ @software: PyCharm @file: forms.py @time: 2016/11/12 下午2:45 """ from .models import Comment from django import forms from django.forms import ModelForm ...
33.71831
109
0.620718
259
2,394
5.644788
0.343629
0.082763
0.135431
0.068399
0.565663
0.52394
0.454172
0.429549
0.429549
0.429549
0
0.009408
0.245196
2,394
70
110
34.2
0.799668
0.091061
0
0
0
0
0.063183
0
0
0
0
0
0
1
0
false
0
0.3125
0
0.6875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
afb7e6f37e96a1b9713e0696395a6f1fcbda0f4e
5,014
py
Python
plotting/plot_mg_ttot_sarea_scan.py
sjforeman/RadioFisher
fe25f969de9a700c5697168ba9e0d2645c55ed81
[ "AFL-3.0" ]
3
2020-12-05T11:28:47.000Z
2021-07-09T02:42:21.000Z
plotting/plot_mg_ttot_sarea_scan.py
sjforeman/RadioFisher
fe25f969de9a700c5697168ba9e0d2645c55ed81
[ "AFL-3.0" ]
null
null
null
plotting/plot_mg_ttot_sarea_scan.py
sjforeman/RadioFisher
fe25f969de9a700c5697168ba9e0d2645c55ed81
[ "AFL-3.0" ]
2
2021-07-09T02:42:23.000Z
2021-11-30T06:37:47.000Z
#!/usr/bin/python """ Plot 2D constraints on (w0, wa), with a low-z survey added in for good measure. """ import numpy as np import pylab as P from rfwrapper import rf import matplotlib.patches import matplotlib.cm import matplotlib.ticker from radiofisher.units import * import radiofisher.euclid as euclid import os, s...
39.480315
149
0.556043
675
5,014
4.008889
0.343704
0.035477
0.047302
0.017738
0.392092
0.372875
0.325203
0.306726
0.306726
0.306726
0
0.041994
0.263861
5,014
126
150
39.793651
0.691141
0.166334
0
0.033333
0
0
0.167442
0.015615
0
0
0
0
0
0
null
null
0
0.15
null
null
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
afc26084cd82645ead1b1f2fc743cf59cffc1244
949
py
Python
devTools/mail.py
Tr4shL0rd/ytDownloader
0a7a6e9ce19044872138355ea0e81b5842f93fdd
[ "MIT" ]
1
2022-02-07T15:05:16.000Z
2022-02-07T15:05:16.000Z
devTools/mail.py
Tr4shL0rd/ytDownloader
0a7a6e9ce19044872138355ea0e81b5842f93fdd
[ "MIT" ]
null
null
null
devTools/mail.py
Tr4shL0rd/ytDownloader
0a7a6e9ce19044872138355ea0e81b5842f93fdd
[ "MIT" ]
null
null
null
import smtplib import mimetypes from email.message import EmailMessage from rich.console import Console def send(sender:str, password:str, receiver:str, attachment, subject="Title", body="Body", debug=False): attachmentName = f"{attachment}" message = EmailMessage() message['From'] = sender message[...
30.612903
121
0.702845
117
949
5.547009
0.470085
0.077042
0
0
0
0
0
0
0
0
0
0.002535
0.168599
949
30
122
31.633333
0.820025
0
0
0
0
0
0.092925
0
0
0
0
0
0
1
0.045455
false
0.090909
0.181818
0
0.227273
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
afcb2e48e346b3c49ce4c922cb9cc4e8ce3390b2
1,985
py
Python
bin/create_snapshots.py
UKHomeOffice/docker-ebs-snapshot
e9b32e61937ff0a30faf44d260ba4c8dfa21f24e
[ "MIT" ]
null
null
null
bin/create_snapshots.py
UKHomeOffice/docker-ebs-snapshot
e9b32e61937ff0a30faf44d260ba4c8dfa21f24e
[ "MIT" ]
null
null
null
bin/create_snapshots.py
UKHomeOffice/docker-ebs-snapshot
e9b32e61937ff0a30faf44d260ba4c8dfa21f24e
[ "MIT" ]
2
2018-05-30T16:55:14.000Z
2021-04-11T09:28:49.000Z
import boto3 import collections import datetime import re from botocore.exceptions import ClientError # Set default retention days retention_days = 10 ec = boto3.client('ec2') # Find volumes with tag = backup volumes_to_backup = ec.describe_volumes(Filters=[ {'Name': 'tag-key', 'Values': ['ba...
28.768116
90
0.617128
238
1,985
5
0.340336
0.098319
0.035294
0.045378
0.038655
0
0
0
0
0
0
0.003353
0.248867
1,985
68
91
29.191176
0.794769
0.081612
0
0.040816
0
0
0.179417
0
0
0
0
0
0
0
null
null
0
0.102041
null
null
0.081633
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
afcdda4218ecc3ff46b847e226f337a85bfa786f
3,554
py
Python
auctions/models.py
tomwhross/web50-commerce
41253f8aee3d436d507904b76ed2d93dacf587dd
[ "MIT" ]
null
null
null
auctions/models.py
tomwhross/web50-commerce
41253f8aee3d436d507904b76ed2d93dacf587dd
[ "MIT" ]
null
null
null
auctions/models.py
tomwhross/web50-commerce
41253f8aee3d436d507904b76ed2d93dacf587dd
[ "MIT" ]
null
null
null
from django.contrib.auth.models import AbstractUser from django.db import models class User(AbstractUser): pass class Category(models.Model): title = models.CharField(max_length=64) def __str__(self): return f"{self.title}" class Listing(models.Model): title = models.CharField(max_length...
27.338462
94
0.659257
431
3,554
5.24594
0.225058
0.044228
0.049536
0.074303
0.585139
0.55241
0.538257
0.497567
0.427245
0.427245
0
0.0044
0.232696
3,554
129
95
27.550388
0.824716
0.083005
0
0.289157
0
0.012048
0.113836
0.018553
0
0
0
0
0
1
0.13253
false
0.012048
0.024096
0.060241
0.650602
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bb696daecc2521c0b4a9b5416cafd09fa9b34889
308
py
Python
tests/test_image.py
BulbaWarrior/hydro-serving-sdk
154ab37034c22c13ef6bded56039f4f23404723d
[ "Apache-2.0" ]
5
2020-02-20T08:53:43.000Z
2021-02-19T12:00:23.000Z
tests/test_image.py
Hydrospheredata/hydro-serving-sdk
94bc4d8335ffe0bf4c90af336656d3e5473952c4
[ "Apache-2.0" ]
43
2019-09-30T15:23:48.000Z
2021-05-13T08:06:45.000Z
tests/test_image.py
BulbaWarrior/hydro-serving-sdk
154ab37034c22c13ef6bded56039f4f23404723d
[ "Apache-2.0" ]
6
2019-08-27T17:15:45.000Z
2021-08-10T13:09:21.000Z
import pytest from hydrosdk.image import DockerImage @pytest.mark.parametrize("image", ["test:latest", "test:1", "www.registry.io/test:latest"]) def test_image_parsing(image): parsed = DockerImage.from_string(image) print(parsed) assert parsed.name is not None assert parsed.tag is not None
30.8
91
0.743506
44
308
5.136364
0.568182
0.088496
0.079646
0
0
0
0
0
0
0
0
0.003774
0.13961
308
9
92
34.222222
0.849057
0
0
0
0
0
0.159091
0.087662
0
0
0
0
0.25
1
0.125
false
0
0.25
0
0.375
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bb6b348c9e38cb821334c85fc917b2b3a52fe4b6
10,343
py
Python
tests/bugs/core_6348_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_6348_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_6348_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
#coding:utf-8 # # id: bugs.core_6348 # title: Wire compression causes freezes # decription: # Test does TWO measures related to speed of loading big blob into database: # 1) when WireCompression = true # 2) when WireCompression = false # ...
39.030189
218
0.558542
1,352
10,343
4.109467
0.314349
0.019798
0.016199
0.030778
0.154788
0.111951
0.092873
0.061555
0.061555
0.046796
0
0.043624
0.279706
10,343
264
219
39.17803
0.702148
0.897805
0
0
0
0
0.095156
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bb6d0264a25a6a18464d5352edeba82ddf0f408f
2,096
py
Python
iconsdk/utils/typing/conversion.py
geometry-labs/icon-sdk-python
e530df02eb16b394c3022d2d7d0383bd972e129a
[ "Apache-2.0" ]
51
2018-08-29T04:15:36.000Z
2022-03-14T10:02:08.000Z
iconsdk/utils/typing/conversion.py
geometry-labs/icon-sdk-python
e530df02eb16b394c3022d2d7d0383bd972e129a
[ "Apache-2.0" ]
24
2018-09-03T03:16:19.000Z
2022-01-17T08:28:04.000Z
iconsdk/utils/typing/conversion.py
geometry-labs/icon-sdk-python
e530df02eb16b394c3022d2d7d0383bd972e129a
[ "Apache-2.0" ]
44
2018-09-06T22:36:16.000Z
2022-03-15T06:46:05.000Z
# -*- coding: utf-8 -*- # Copyright 2020 ICON Foundation Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
26.871795
74
0.6875
311
2,096
4.488746
0.337621
0.08596
0.039398
0.045845
0.215616
0.138968
0.060172
0.060172
0
0
0
0.006083
0.215649
2,096
77
75
27.220779
0.843066
0.274332
0
0.170732
0
0
0.056441
0.013944
0
0
0
0
0
1
0.146341
false
0
0.04878
0.04878
0.585366
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bb769e5b3a18f41ec047097bd784f9e599a7b5a8
501
py
Python
setup.py
nmecsys/Pyguana
32d52598ec56e46d0c61a710733123e1f790e597
[ "BSD-3-Clause" ]
null
null
null
setup.py
nmecsys/Pyguana
32d52598ec56e46d0c61a710733123e1f790e597
[ "BSD-3-Clause" ]
null
null
null
setup.py
nmecsys/Pyguana
32d52598ec56e46d0c61a710733123e1f790e597
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup setup(name='pyguana', version='0.1.5', description='The pyguana provides a python wrapper to the Iguana API.', long_description=open('README.rst').read(), url='http://github.com/nmecsys/pyguana', author='Jonatha Costa','Fernando Teixeira', author_email=...
33.4
77
0.668663
61
501
5.42623
0.819672
0.072508
0
0
0
0
0
0
0
0
0
0.007229
0.171657
501
14
78
35.785714
0.790361
0
0
0
0
0
0.441118
0.063872
0
0
0
0
0
0
null
null
0
0.083333
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bb787b8620da315e5e5bd37237a2e62f683d56ae
787
py
Python
server/project/api_v1/migrations/0002_auto_20191020_1005.py
Utree/TRAGRAM
d994394d580296c6acccbc3e222454b883ffb4d5
[ "MIT" ]
null
null
null
server/project/api_v1/migrations/0002_auto_20191020_1005.py
Utree/TRAGRAM
d994394d580296c6acccbc3e222454b883ffb4d5
[ "MIT" ]
null
null
null
server/project/api_v1/migrations/0002_auto_20191020_1005.py
Utree/TRAGRAM
d994394d580296c6acccbc3e222454b883ffb4d5
[ "MIT" ]
null
null
null
# Generated by Django 2.1.8 on 2019-10-20 01:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api_v1', '0001_initial'), ] operations = [ migrations.AddField( model_name='post', name='map_lat', field...
27.137931
100
0.579416
88
787
5
0.590909
0.061364
0.088636
0.115909
0.472727
0.472727
0.472727
0.3
0.3
0.3
0
0.048561
0.29352
787
28
101
28.107143
0.742806
0.057179
0
0.363636
1
0
0.093243
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bb7ada19ffdc056a95366d092deccd716c34922c
5,294
py
Python
biskivy/utils/winpreferences/__init__.py
manahter/biskivy
8fe87c94b42d9563a8d8939a517401c8221542aa
[ "MIT" ]
null
null
null
biskivy/utils/winpreferences/__init__.py
manahter/biskivy
8fe87c94b42d9563a8d8939a517401c8221542aa
[ "MIT" ]
null
null
null
biskivy/utils/winpreferences/__init__.py
manahter/biskivy
8fe87c94b42d9563a8d8939a517401c8221542aa
[ "MIT" ]
null
null
null
from kivy.lang import Builder from biskivy.uix.window import BisWindow from biskivy.utils.winpreferences.interface import BisWinPrefInterfaces from biskivy.utils.winpreferences.themes import BisWinPrefThemes """ BisWinPreferences Ayarları barındıran Penceredir. Mesela, buton, label vb. renkleri, boyutları vs'...
30.959064
79
0.494144
443
5,294
5.726862
0.230248
0.091447
0.081987
0.088687
0.56484
0.56484
0.56484
0.56484
0.534884
0.534884
0
0.015445
0.425198
5,294
170
80
31.141176
0.818271
0
0
0.524194
0
0
0.853295
0.106977
0
0
0
0
0
1
0.008065
false
0
0.032258
0
0.056452
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bb7b4f148b8aa39048e30aed298624e2a22796f2
714
py
Python
unit_tests/quadtree_boundary_unit_test.py
sgsellan/gpytoolbox
c238f36aebb89f892eede7d06e4af21bfa51175c
[ "MIT" ]
13
2021-11-22T16:32:10.000Z
2022-03-30T21:35:50.000Z
unit_tests/quadtree_boundary_unit_test.py
sgsellan/gpytoolbox
c238f36aebb89f892eede7d06e4af21bfa51175c
[ "MIT" ]
null
null
null
unit_tests/quadtree_boundary_unit_test.py
sgsellan/gpytoolbox
c238f36aebb89f892eede7d06e4af21bfa51175c
[ "MIT" ]
1
2021-12-10T22:11:49.000Z
2021-12-10T22:11:49.000Z
from context import gpytoolbox import numpy as np from scipy.sparse import csr_matrix import igl import polyscope as ps np.random.seed(0) th = 2*np.pi*np.random.rand(100,1) P = 2*np.random.rand(100,2) - 1 C,W,CH,PAR,D,A = gpytoolbox.initialize_quadtree(P,graded=True,max_depth=8,min_depth=2,vmin=np.array([-1,-1]),vmax...
31.043478
130
0.759104
135
714
3.851852
0.496296
0.046154
0.046154
0.057692
0.119231
0.119231
0
0
0
0
0
0.029231
0.089636
714
22
131
32.454545
0.770769
0.053221
0
0
0
0
0.044577
0
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
bb82dd92a04da5f59a47f611bc446e481e52b6ca
934
py
Python
Interviewbook/models.py
kmAyush/IntReview
b96d5249d8b0c7987f533fe345fef470b9ea6435
[ "MIT" ]
2
2020-01-20T08:55:42.000Z
2020-08-01T16:44:57.000Z
Interviewbook/models.py
kmAyush/IntReview
b96d5249d8b0c7987f533fe345fef470b9ea6435
[ "MIT" ]
28
2019-01-29T18:35:23.000Z
2022-02-10T08:34:28.000Z
Interviewbook/models.py
kmAyush/IntReview
b96d5249d8b0c7987f533fe345fef470b9ea6435
[ "MIT" ]
15
2019-01-31T13:47:51.000Z
2020-09-25T13:35:14.000Z
from django.db import models from django.utils import timezone from django.conf import settings from django.contrib.auth.models import User class Company(models.Model): name = models.CharField(max_length=50) def __str__(self): return str(self.name) class InterviewResponse(models.Model): company =...
32.206897
65
0.732334
119
934
5.630252
0.420168
0.059701
0.080597
0.107463
0.225373
0.225373
0
0
0
0
0
0.016667
0.164882
934
28
66
33.357143
0.842308
0
0
0.086957
0
0
0
0
0
0
0
0
0
1
0.130435
false
0
0.173913
0.086957
0.913043
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bb867355b51dedc153b54329d03b36d5d5b0df51
150
py
Python
BackEnd/python/example/14.mod/common/utils/location.py
forwardNow/study
7a4723df865531539cf4044faf8e00a6f1e56bab
[ "MIT" ]
2
2019-08-20T01:27:37.000Z
2021-03-12T15:04:27.000Z
BackEnd/python/example/14.mod/common/utils/location.py
forwardNow/read
7a4723df865531539cf4044faf8e00a6f1e56bab
[ "MIT" ]
34
2020-09-04T15:06:00.000Z
2022-03-02T02:56:03.000Z
BackEnd/python/example/14.mod/common/utils/location.py
forwardNow/read
7a4723df865531539cf4044faf8e00a6f1e56bab
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- 'Documentation Comments' __author__ = '吴钦飞' def test(): print('location module') if __name__=='__main__': test()
11.538462
28
0.613333
16
150
5
0.9375
0
0
0
0
0
0
0
0
0
0
0.008333
0.2
150
12
29
12.5
0.658333
0.3
0
0
0
0
0.377953
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.166667
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bb8a4cb36c3b43b3870e1678e434214663fb75ad
4,186
py
Python
tests/test_pipeline_instance.py
1and1/yagocd
4c75336ae6f107c8723d37b15e52169151822127
[ "ISC" ]
18
2016-04-29T00:10:15.000Z
2021-02-27T05:38:14.000Z
tests/test_pipeline_instance.py
1and1/yagocd
4c75336ae6f107c8723d37b15e52169151822127
[ "ISC" ]
16
2016-05-15T20:19:30.000Z
2020-04-13T17:00:11.000Z
tests/test_pipeline_instance.py
1and1/yagocd
4c75336ae6f107c8723d37b15e52169151822127
[ "ISC" ]
13
2016-05-24T01:50:28.000Z
2020-12-18T18:22:45.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # The MIT License # # Copyright (c) 2016 Grigory Chernyshev # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation file...
41.445545
109
0.71548
526
4,186
5.511407
0.3327
0.154536
0.055191
0.071749
0.215937
0.154536
0.109003
0.042083
0.042083
0
0
0.002013
0.169135
4,186
100
110
41.86
0.831512
0.268036
0
0.035714
0
0
0.142659
0.090246
0
0
0
0
0.214286
1
0.232143
false
0.017857
0.125
0
0.392857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
bb8cae77ee93c60b07ea8b033182349e780e7841
350
py
Python
cookbookex/c01/3.2.2.py
fengchunhui/cookbookex
0c97ed92b7963ed6cef9140f3dbd5a559c1d1c79
[ "Apache-2.0" ]
null
null
null
cookbookex/c01/3.2.2.py
fengchunhui/cookbookex
0c97ed92b7963ed6cef9140f3dbd5a559c1d1c79
[ "Apache-2.0" ]
null
null
null
cookbookex/c01/3.2.2.py
fengchunhui/cookbookex
0c97ed92b7963ed6cef9140f3dbd5a559c1d1c79
[ "Apache-2.0" ]
null
null
null
# #星号表达式 # def drop_first_last(grades): # first, *middle, last = grades # return avg(middle) record = ('Dave', 'dave@example.com', '773-555-1212', '847-555-1212') name, email, *phone_numbers = record print(name) print(email) print(phone_numbers) #星号表达式用在列表开始的部分 *trailing, current = [10, 8, 7, 1, 9, 5, 10, 3] ...
23.333333
69
0.68
51
350
4.588235
0.627451
0.08547
0
0
0
0
0
0
0
0
0
0.100334
0.145714
350
15
70
23.333333
0.682274
0.3
0
0
0
0
0.1841
0
0
0
0
0
0
1
0
false
0
0
0
0
0.625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
bb95cefa8e3aab8de5d5e5c1551b3feec0bc437a
551
py
Python
les_8/lab_8a/00-inheritance.py
Timurdov/Python3.Advanced
a99ae1ab9e0424aeb7f8e93c53d0e08319b426a2
[ "Apache-2.0" ]
1
2018-09-10T12:04:53.000Z
2018-09-10T12:04:53.000Z
les_8/lab_8a/00-inheritance.py
Timurdov/Python3.Advanced
a99ae1ab9e0424aeb7f8e93c53d0e08319b426a2
[ "Apache-2.0" ]
null
null
null
les_8/lab_8a/00-inheritance.py
Timurdov/Python3.Advanced
a99ae1ab9e0424aeb7f8e93c53d0e08319b426a2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Пример наследования классов """ class Figure(object): def __init__(self, side): self.side = side class Square(Figure): def draw(self): for i in range(self.side): print('*' * self.side) class Triangle(Figure): def draw(self): ...
15.742857
35
0.517241
62
551
4.403226
0.419355
0.14652
0.095238
0.124542
0.300366
0.300366
0.300366
0.300366
0.300366
0.300366
0
0.010929
0.335753
551
35
36
15.742857
0.734973
0.090744
0
0.210526
0
0
0.021739
0
0
0
0
0
0
1
0.210526
false
0
0
0
0.368421
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
bb960271e706222acdc3d1eee56653d1674f3452
2,392
py
Python
test_data/split_and_load_bundles.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
test_data/split_and_load_bundles.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
test_data/split_and_load_bundles.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
##### DO NOT USE REFERENCES ARE NOT PRESERVED ##### ##### times out on HAPI test server so split into thirds and save. from fhirclient.r4models import ( bundle, ) from json import loads, dumps from requests import get, post, put from datetime import date...
35.176471
131
0.663043
331
2,392
4.649547
0.441088
0.011696
0.020793
0.012995
0.096166
0.096166
0.053281
0
0
0
0
0.020355
0.198997
2,392
67
132
35.701493
0.782881
0
0
0
0
0
0.293544
0.129587
0
0
0
0
0
0
null
null
0
0.122449
null
null
0.204082
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bb960b46749a269b44d3296f5fb77565b5ffd5b5
5,929
py
Python
rock4/common/ext/database/pregresql.py
RockFeng0/rock4automation
a29270ab9fa4cdc79f6453971b7c7a21f01442b0
[ "MIT" ]
5
2018-09-25T05:49:49.000Z
2021-12-30T11:06:09.000Z
rock4/common/ext/database/pregresql.py
RockFeng0/rock4automation
a29270ab9fa4cdc79f6453971b7c7a21f01442b0
[ "MIT" ]
3
2018-04-01T04:27:21.000Z
2019-01-03T11:02:33.000Z
rock4/common/ext/database/pregresql.py
RockFeng0/rock4automation
a29270ab9fa4cdc79f6453971b7c7a21f01442b0
[ "MIT" ]
7
2018-09-25T05:49:51.000Z
2021-12-30T11:06:11.000Z
# -*- encoding: utf-8 -*- ''' Current module: pyrunner.ext.database.pregresql Rough version history: v1.0 Original version to use ******************************************************************** @AUTHOR: Administrator-Bruce Luo(罗科峰) MAIL: lkf20031988@163.com RCS: pyrunner.ext.dat...
32.398907
112
0.453027
556
5,929
4.69964
0.27518
0.042863
0.025258
0.019135
0.614237
0.589744
0.589744
0.536165
0.520092
0.487945
0
0.037637
0.386068
5,929
182
113
32.576923
0.68022
0.074886
0
0.415584
0
0
0.121505
0.010652
0
0
0
0
0
0
null
null
0.025974
0.012987
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bb97c0eb3502065bb13fcf86a57daae88347ab52
3,574
py
Python
web_server.py
disasterarchy/Thermal_Lookout
404eb395fc605c790ed9acdd802ad56fb7f1347e
[ "MIT" ]
null
null
null
web_server.py
disasterarchy/Thermal_Lookout
404eb395fc605c790ed9acdd802ad56fb7f1347e
[ "MIT" ]
null
null
null
web_server.py
disasterarchy/Thermal_Lookout
404eb395fc605c790ed9acdd802ad56fb7f1347e
[ "MIT" ]
null
null
null
import requests import threading import time from flask import Flask from local_thermal_loop import * from flask import render_template from flask import request, redirect, url_for app = Flask(__name__) @app.before_first_request def activate_job(): #def run_job(): # while True: # print("Run recu...
28.365079
88
0.5554
412
3,574
4.728155
0.354369
0.080082
0.073922
0.027721
0.063655
0.063655
0.063655
0.063655
0.063655
0.063655
0
0.008452
0.271684
3,574
125
89
28.592
0.739915
0
0
0.078947
0
0
0.189778
0
0
0
0
0.008
0
0
null
null
0
0.092105
null
null
0.118421
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1