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
2fe57072ba02a483b3e95644cd4ed3ea8a35e78f
494
py
Python
manage.py
ThaDeveloper/weConnect
2930a64294fa848728cddbc357b83d486551e86c
[ "MIT" ]
1
2018-06-21T07:34:38.000Z
2018-06-21T07:34:38.000Z
manage.py
ThaDeveloper/weConnect
2930a64294fa848728cddbc357b83d486551e86c
[ "MIT" ]
4
2018-03-04T09:51:33.000Z
2018-06-12T12:20:04.000Z
manage.py
ThaDeveloper/weConnect
2930a64294fa848728cddbc357b83d486551e86c
[ "MIT" ]
2
2018-03-05T11:49:36.000Z
2018-03-08T17:03:15.000Z
import os from flask_script import Manager from flask_migrate import Migrate, MigrateCommand import sys import inspect currentdir = os.path.dirname(os.path.abspath( inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0, parentdir) from src import app, db app.config.f...
20.583333
49
0.769231
66
494
5.575758
0.469697
0.048913
0.070652
0
0
0
0
0
0
0
0
0.002299
0.119433
494
23
50
21.478261
0.843678
0
0
0
0
0
0.05668
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2fe71eb683109a6e1be0b783ce9b5a59b715ba96
1,701
py
Python
tutorials/02_testing_plotter/plotter.py
bird-house/birdhouse-workshop
827ee97a216c08943a6af9a6d2e43ac09daeff3f
[ "Apache-2.0" ]
1
2018-05-08T01:33:35.000Z
2018-05-08T01:33:35.000Z
tutorials/02_testing_plotter/plotter.py
bird-house/birdhouse-workshop
827ee97a216c08943a6af9a6d2e43ac09daeff3f
[ "Apache-2.0" ]
1
2019-01-29T15:27:03.000Z
2019-01-29T15:27:03.000Z
tutorials/02_testing_plotter/plotter.py
bird-house/birdhouse-workshop
827ee97a216c08943a6af9a6d2e43ac09daeff3f
[ "Apache-2.0" ]
null
null
null
import matplotlib # no X11 server ... must be run first # https://github.com/matplotlib/matplotlib/issues/3466/ matplotlib.use('Agg') import matplotlib.pylab as plt # import ccrs for map projections import cartopy.crs as ccrs from netCDF4 import Dataset import os DATADIR = os.path.join(os.path.abspath(os.path.dirname...
25.38806
86
0.673721
230
1,701
4.878261
0.534783
0.053476
0.064171
0.05615
0.088235
0.088235
0.060606
0
0
0
0
0.008869
0.204586
1,701
66
87
25.772727
0.820399
0.358025
0
0
0
0
0.120869
0
0
0
0
0.015152
0
1
0.074074
false
0
0.185185
0
0.296296
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
2fea16f18da9f0e66f479cf885f717851ef339ab
522
py
Python
mplcyberpunk/__init__.py
story645/mplcyberpunk
5e84a71c379fe6fe1057ac2cbc798aaa507817b0
[ "MIT" ]
1
2020-04-05T10:42:48.000Z
2020-04-05T10:42:48.000Z
mplcyberpunk/__init__.py
story645/mplcyberpunk
5e84a71c379fe6fe1057ac2cbc798aaa507817b0
[ "MIT" ]
null
null
null
mplcyberpunk/__init__.py
story645/mplcyberpunk
5e84a71c379fe6fe1057ac2cbc798aaa507817b0
[ "MIT" ]
null
null
null
"""mplcyberpunk - A new Python package""" __version__ = '0.1.0' __author__ = 'Dominik Haitz <dominik.haitz@gmx.de>' __all__ = [] import matplotlib as mpl import pkg_resources from .core import add_glow_effects, make_lines_glow, add_underglow # register the included stylesheet in the mpl style library data_path = p...
32.625
75
0.802682
73
522
5.356164
0.630137
0.081841
0.076726
0
0
0
0
0
0
0
0
0.006383
0.099617
522
16
75
32.625
0.825532
0.180077
0
0
0
0
0.137116
0.052009
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2ff2b93010a01f354bcb8b90b818544581f98e78
1,563
py
Python
app/reports/forms.py
robj3d3/phishing-project
f5d2d626e478d12cb3112bbafb28ed5e5816bb2e
[ "MIT" ]
2
2018-09-25T20:34:48.000Z
2018-10-09T10:03:51.000Z
app/reports/forms.py
RobH18/phishing-project
f5d2d626e478d12cb3112bbafb28ed5e5816bb2e
[ "MIT" ]
1
2021-06-01T22:24:04.000Z
2021-06-01T22:24:04.000Z
app/reports/forms.py
robj3d3/phishing-project
f5d2d626e478d12cb3112bbafb28ed5e5816bb2e
[ "MIT" ]
2
2018-10-09T10:03:40.000Z
2019-05-15T06:48:34.000Z
from flask_wtf import FlaskForm from wtforms import StringField, SelectField, SubmitField, IntegerField from wtforms.validators import DataRequired, NumberRange class SearchStaffForm(FlaskForm): # SearchStaffForm class defined, inherits from FlaskForm superclass. Used by the system administrator for querying the Staff...
91.941176
211
0.714012
186
1,563
5.983871
0.413978
0.040431
0.024259
0.040431
0.278527
0.197664
0.167116
0.167116
0.167116
0.113208
0
0.009901
0.224568
1,563
17
212
91.941176
0.908416
0.426104
0
0.166667
0
0
0.169283
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2ff4bd7f1f22890b12b4e02d840c6495e6f351bf
3,230
py
Python
proyectos_de_ley/pdl_scraper/tests/test_pdfurl_spider.py
napsta32/proyectos_de_ley
63b7737e194a0958f9e95ca92773887000867bc7
[ "MIT" ]
12
2016-07-27T06:23:52.000Z
2021-09-08T16:09:52.000Z
proyectos_de_ley/pdl_scraper/tests/test_pdfurl_spider.py
napsta32/proyectos_de_ley
63b7737e194a0958f9e95ca92773887000867bc7
[ "MIT" ]
58
2015-01-18T14:53:45.000Z
2021-02-19T06:27:19.000Z
proyectos_de_ley/pdl_scraper/tests/test_pdfurl_spider.py
napsta32/proyectos_de_ley
63b7737e194a0958f9e95ca92773887000867bc7
[ "MIT" ]
10
2015-01-28T02:20:38.000Z
2020-11-22T06:23:26.000Z
import os import unittest from scrapy.http import TextResponse, Request from pdl_scraper.spiders.pdfurl_spider import PdfUrlSpider class TestPdfUrlSpider(unittest.TestCase): def setUp(self): self.spider = PdfUrlSpider() def test_find_pdfurl(self): codigos = ( '00001', ...
46.142857
174
0.69969
333
3,230
6.678679
0.378378
0.032374
0.064748
0.076888
0.348022
0.322842
0.322842
0.322842
0.304406
0.304406
0
0.219372
0.191331
3,230
69
175
46.811594
0.632083
0.104334
0
0
0
0.183673
0.515926
0.00805
0
0
0
0
0.020408
1
0.061224
false
0
0.081633
0
0.183673
0
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
2ff69265730e57a394578380f67735d160306cd6
4,338
py
Python
src/prefect/engine/signals.py
skyline-ai/prefect
92430f2f91215d6c27d92ad67df67ccd639e587c
[ "Apache-2.0" ]
null
null
null
src/prefect/engine/signals.py
skyline-ai/prefect
92430f2f91215d6c27d92ad67df67ccd639e587c
[ "Apache-2.0" ]
null
null
null
src/prefect/engine/signals.py
skyline-ai/prefect
92430f2f91215d6c27d92ad67df67ccd639e587c
[ "Apache-2.0" ]
null
null
null
""" These Exceptions, when raised, are used to signal state changes when tasks or flows are running. Signals are used in TaskRunners and FlowRunners as a way of communicating the changes in states. """ from prefect.engine import state from prefect.utilities.exceptions import PrefectError class ENDRUN(Exception): ...
32.616541
104
0.6639
523
4,338
5.441683
0.202677
0.081167
0.103303
0.083626
0.646521
0.595924
0.595924
0.595924
0.595924
0.595924
0
0
0.257031
4,338
132
105
32.863636
0.883028
0.710466
0
0
0
0
0.006369
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.791667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
2ff8e105429e534287e9425433974fd1dedc6688
2,636
py
Python
rtl/messible.py
xobs/haddecks
ee252f996fdc7354ea29a4b6ae54de8384e6a887
[ "Apache-2.0" ]
5
2019-11-11T03:15:25.000Z
2019-11-15T07:18:36.000Z
rtl/messible.py
TomKeddie/haddecks
1a97a2d33757998e7b4743d965c711c5388505f8
[ "Apache-2.0" ]
null
null
null
rtl/messible.py
TomKeddie/haddecks
1a97a2d33757998e7b4743d965c711c5388505f8
[ "Apache-2.0" ]
2
2019-09-30T12:42:50.000Z
2019-11-09T16:11:58.000Z
from litex.soc.integration.doc import AutoDoc, ModuleDoc from litex.soc.interconnect.csr import AutoCSR, CSRStatus, CSRStorage, CSRField from migen import * from migen.genlib import fifo class Messible(Module, AutoCSR, AutoDoc): """Messaging-style Ansible""" def __init__(self): self.submodules.fifo = ...
49.735849
100
0.625948
376
2,636
4.335106
0.409574
0.01227
0.014724
0.015951
0.018405
0
0
0
0
0
0
0.004795
0.287936
2,636
53
101
49.735849
0.863612
0.008725
0
0
0
0.069767
0.621166
0
0
0
0
0
0
1
0.023256
false
0.023256
0.093023
0
0.139535
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2ff9ae8c7df51c33b76abc2c5a8b38255cb51474
2,325
py
Python
Medium/173.BinarySearchTreeIterator.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
39
2020-07-04T11:15:13.000Z
2022-02-04T22:33:42.000Z
Medium/173.BinarySearchTreeIterator.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
1
2020-07-15T11:53:37.000Z
2020-07-15T11:53:37.000Z
Medium/173.BinarySearchTreeIterator.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
20
2020-07-14T19:12:53.000Z
2022-03-02T06:28:17.000Z
""" Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Calling next() will return the next smallest number in the BST. Example: 7 / \ 3 15 / \ 9 20 BSTIterator iterator ...
28.353659
101
0.595269
303
2,325
4.534653
0.379538
0.039301
0.065502
0.054585
0.23508
0.208879
0.171033
0.077147
0.077147
0
0
0.025371
0.304946
2,325
81
102
28.703704
0.824876
0.68086
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
2ffc71da104ba4cf37e93c5a772d50b68897ee2f
3,943
py
Python
hemlock/load_scripts/csv_to_mysql.py
Lab41/Hemlock
2c53cfc11bfbe1e4f901b519db578090fe7a17dd
[ "Apache-2.0" ]
4
2015-05-14T18:59:44.000Z
2017-03-09T12:49:36.000Z
hemlock/load_scripts/csv_to_mysql.py
Lab41/Hemlock
2c53cfc11bfbe1e4f901b519db578090fe7a17dd
[ "Apache-2.0" ]
null
null
null
hemlock/load_scripts/csv_to_mysql.py
Lab41/Hemlock
2c53cfc11bfbe1e4f901b519db578090fe7a17dd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2013 In-Q-Tel, Inc/Lab41, All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE...
29.425373
104
0.511032
490
3,943
4.02449
0.346939
0.01217
0.038032
0.016227
0.193712
0.188134
0.116126
0.096856
0.085193
0.048682
0
0.015606
0.366219
3,943
133
105
29.646617
0.773509
0.191479
0
0.336538
0
0
0.130366
0
0
0
0
0.007519
0
0
null
null
0.019231
0.019231
null
null
0.144231
0
0
0
null
0
0
0
0
0
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
2fff9497177ad9652ad831764e01ba3daa6d7284
12,375
py
Python
GM2AUTOSAR_MM/Properties/positive/models/M2ThenClausePart1Complete_MDL.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
GM2AUTOSAR_MM/Properties/positive/models/M2ThenClausePart1Complete_MDL.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
GM2AUTOSAR_MM/Properties/positive/models/M2ThenClausePart1Complete_MDL.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
""" __M2ThenClausePart1Complete_MDL.py_____________________________________________________ Automatically generated AToM3 Model File (Do not modify directly) Author: gehan Modified: Wed Oct 23 11:27:05 2013 _______________________________________________________________________________________ """ from stickylink impo...
50.925926
632
0.683313
1,509
12,375
5.286282
0.122598
0.031967
0.012285
0.022816
0.604112
0.501692
0.465212
0.465212
0.424596
0.409176
0
0.054854
0.142626
12,375
242
633
51.136364
0.696984
0.110626
0
0.156463
1
0.081633
0.169481
0.063521
0
0
0
0
0
1
0.006803
false
0
0.176871
0
0.183673
0
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
6404094ff505e2b906576d1b09dcfc1e7a47d53f
22,807
py
Python
tools/svg2pdc.py
xabbudm/time-tracker
d5799062861131c025d8500cedd34852e804a9a1
[ "Apache-2.0" ]
83
2015-04-11T03:45:52.000Z
2021-03-08T22:07:38.000Z
tools/svg2pdc.py
xabbudm/time-tracker
d5799062861131c025d8500cedd34852e804a9a1
[ "Apache-2.0" ]
7
2015-08-07T04:32:54.000Z
2016-08-17T20:37:09.000Z
tools/svg2pdc.py
xabbudm/time-tracker
d5799062861131c025d8500cedd34852e804a9a1
[ "Apache-2.0" ]
50
2015-04-11T04:19:45.000Z
2021-11-22T23:44:46.000Z
# # Copyright (c) 2015 Pebble Technology # ''' SVG2PDC converts SVG images to a PDC (Pebble Draw Command) binary format image or sequence. The PDC file format consists of a header, followed by the binary representation of a PDC image or sequence. The file header is as follows: Magic Word (4 bytes) - 'PDCI' for image, '...
35.141757
120
0.593765
2,832
22,807
4.618997
0.129944
0.038682
0.024692
0.029814
0.280177
0.234921
0.201667
0.178733
0.157022
0.144484
0
0.015814
0.301311
22,807
648
121
35.195988
0.805083
0.053185
0
0.233766
0
0.002165
0.073588
0.002527
0
0
0.000583
0
0
0
null
null
0.002165
0.02381
null
null
0.041126
0
0
0
null
0
0
0
0
0
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
6407144ecfa3e6d46fc1d79a4e56fd8cf1a32c53
421
py
Python
music/migrations/0002_auto_20200816_0917.py
anirudha-bs/Django_music_app
1b80bd4299a35fb707c32307dd115074a8ecba9f
[ "Apache-2.0" ]
null
null
null
music/migrations/0002_auto_20200816_0917.py
anirudha-bs/Django_music_app
1b80bd4299a35fb707c32307dd115074a8ecba9f
[ "Apache-2.0" ]
null
null
null
music/migrations/0002_auto_20200816_0917.py
anirudha-bs/Django_music_app
1b80bd4299a35fb707c32307dd115074a8ecba9f
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.6 on 2020-08-16 09:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('music', '0001_initial'), ] operations = [ migrations.AlterField( model_name='album', name='album_logo', ...
22.157895
95
0.603325
47
421
5.297872
0.829787
0.072289
0
0
0
0
0
0
0
0
0
0.064725
0.266033
421
18
96
23.388889
0.7411
0.106888
0
0
1
0
0.176471
0.090909
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
640b52f9c036ffc0f346caa89665e1b4590ecfbd
1,027
py
Python
app/api/config.py
opacam/user-service
5814b5292162af2d382423b9038c5d45fe89f21d
[ "MIT" ]
null
null
null
app/api/config.py
opacam/user-service
5814b5292162af2d382423b9038c5d45fe89f21d
[ "MIT" ]
2
2020-06-08T20:04:41.000Z
2020-07-29T19:20:28.000Z
app/api/config.py
opacam/user-service
5814b5292162af2d382423b9038c5d45fe89f21d
[ "MIT" ]
null
null
null
from functools import lru_cache from pathlib import Path from typing import List from pydantic import BaseSettings BASEDIR = Path(Path(__file__).parent) DB_DIRECTORY = Path(BASEDIR, "db-data") DB_DIRECTORY.mkdir(parents=True, exist_ok=True) SQLALCHEMY_DATABASE_URI = f"sqlite:///{Path(DB_DIRECTORY, 'users.db')}" cla...
27.756757
78
0.721519
141
1,027
5.085106
0.58156
0.033473
0.030683
0.036262
0.055788
0
0
0
0
0
0
0.003597
0.187926
1,027
36
79
28.527778
0.856115
0.277507
0
0
0
0
0.107193
0.040903
0
0
0
0
0
1
0.05
false
0
0.2
0
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
640eb810aff22de1ad77377422abcdea68d00656
327
py
Python
setup.py
kristoy0/octocd
bbb018c6f0e315f801bb5fcb30b93ad0adf0ad80
[ "MIT" ]
null
null
null
setup.py
kristoy0/octocd
bbb018c6f0e315f801bb5fcb30b93ad0adf0ad80
[ "MIT" ]
null
null
null
setup.py
kristoy0/octocd
bbb018c6f0e315f801bb5fcb30b93ad0adf0ad80
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='octocd', version='0.1', packages=find_packages(), url='https://github.com/kristoy0/octocd', license='MIT', author='kristo', author_email='kristoy0@hotmail.com', description='A simple continuous delivery service', zip_safe=Fal...
20.4375
55
0.678899
39
327
5.589744
0.794872
0.110092
0
0
0
0
0
0
0
0
0
0.014925
0.180428
327
15
56
21.8
0.798507
0
0
0
0
0
0.330275
0
0
0
0
0
0
1
0
true
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
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
6418776bd736beb12ba1f44a8e1a68fbe693049e
1,364
py
Python
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/SGIX/depth_texture.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/SGIX/depth_texture.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/SGIX/depth_texture.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
'''OpenGL extension SGIX.depth_texture Overview (from the spec) This extension defines a new depth texture format. An important application of depth texture images is shadow casting, but separating this from the shadow extension allows for the potential use of depth textures in other applications such as image-...
42.625
84
0.818915
190
1,364
5.736842
0.494737
0.066055
0.044037
0.06055
0.074312
0
0
0
0
0
0
0.020168
0.127566
1,364
31
85
44
0.895798
0.667155
0
0
0
0
0.1875
0.1875
0
0
0.035156
0
0
1
0.1
false
0
0.4
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
1
0
0
0
0
1
641af5ea793ed501354ee0186e30ad07908b384a
912
py
Python
src/users/models/componentsschemasmicrosoft_graph_onenoteresourceallof1.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
src/users/models/componentsschemasmicrosoft_graph_onenoteresourceallof1.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
src/users/models/componentsschemasmicrosoft_graph_onenoteresourceallof1.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
31.448276
84
0.572368
79
912
6.405063
0.594937
0.118577
0.059289
0
0
0
0
0
0
0
0
0.006623
0.172149
912
28
85
32.571429
0.663576
0.438596
0
0
1
0
0.120833
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
641e0e887a4615eb344cb4c094813d38062d9840
304
py
Python
helpers/apps.py
sergitopereira/zscaler-cert-app-store
71348f4219469e8302a6db6a4ad4f0113fc0fa38
[ "MIT" ]
2
2022-01-07T18:21:19.000Z
2022-01-31T14:47:23.000Z
helpers/apps.py
sergitopereira/zscaler-cert-app-store
71348f4219469e8302a6db6a4ad4f0113fc0fa38
[ "MIT" ]
null
null
null
helpers/apps.py
sergitopereira/zscaler-cert-app-store
71348f4219469e8302a6db6a4ad4f0113fc0fa38
[ "MIT" ]
1
2022-02-17T15:06:03.000Z
2022-02-17T15:06:03.000Z
JETBRAINS_IDES = { 'androidstudio': 'Android Studio', 'appcode': 'AppCode', 'datagrip': 'DataGrip', 'goland': 'GoLand', 'intellij': 'IntelliJ IDEA', 'pycharm': 'PyCharm', 'rubymine': 'RubyMine', 'webstorm': 'WebStorm' } JETBRAINS_IDE_NAMES = list(JETBRAINS_IDES.values())
25.333333
51
0.628289
27
304
6.925926
0.62963
0.139037
0
0
0
0
0
0
0
0
0
0
0.1875
304
11
52
27.636364
0.757085
0
0
0
0
0
0.447368
0
0
0
0
0
0
1
0
false
0
0
0
0
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
64247bf8b704c6faad907993f1c04358e72ef538
4,141
py
Python
backend/recipe_backend/tests/test_models.py
Nadin007/foodgram-project-react
969f07e4cc74321fbdb566d4cb160ac8eefdde3e
[ "MIT" ]
null
null
null
backend/recipe_backend/tests/test_models.py
Nadin007/foodgram-project-react
969f07e4cc74321fbdb566d4cb160ac8eefdde3e
[ "MIT" ]
null
null
null
backend/recipe_backend/tests/test_models.py
Nadin007/foodgram-project-react
969f07e4cc74321fbdb566d4cb160ac8eefdde3e
[ "MIT" ]
null
null
null
from django.db.utils import IntegrityError from django.test import Client, TestCase try: from recipe_features.models import Ingredient except ImportError: assert False, 'Ingredient model does not find!' try: from users.models import User except ImportError: assert False, 'User model does not find!' ...
33.128
73
0.558078
408
4,141
5.490196
0.291667
0.028125
0.028571
0.026786
0.312946
0.236161
0.179464
0.154911
0.154911
0.154911
0
0.010276
0.318522
4,141
124
74
33.395161
0.783487
0.022458
0
0.247619
0
0
0.174323
0
0
0
0
0
0.07619
1
0.104762
false
0.057143
0.057143
0
0.180952
0.019048
0
0
0
null
0
0
0
0
0
0
0
0
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
64282b7b4885b4990a2d0552b0c40be50df7b23a
528
py
Python
source/emp_evaluation_system/migrations/0007_evaluationsystempage_description.py
LukasLandwich/energy_management_panel
9f9d6cf935573bbe6a49206ece0a82e3a98061d2
[ "MIT-0", "CC-BY-4.0", "MIT" ]
null
null
null
source/emp_evaluation_system/migrations/0007_evaluationsystempage_description.py
LukasLandwich/energy_management_panel
9f9d6cf935573bbe6a49206ece0a82e3a98061d2
[ "MIT-0", "CC-BY-4.0", "MIT" ]
null
null
null
source/emp_evaluation_system/migrations/0007_evaluationsystempage_description.py
LukasLandwich/energy_management_panel
9f9d6cf935573bbe6a49206ece0a82e3a98061d2
[ "MIT-0", "CC-BY-4.0", "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2021-01-10 10:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('emp_evaluation_system', '0006_auto_20210108_0834'), ] operations = [ migrations.AddField( model_name='evaluationsystempage', ...
27.789474
161
0.659091
61
528
5.590164
0.819672
0
0
0
0
0
0
0
0
0
0
0.077307
0.24053
528
18
162
29.333333
0.773067
0.085227
0
0
1
0
0.338877
0.091476
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
642a2f966635a46b20b0d5b40f3eaee2da41c0cd
2,754
py
Python
tests/test_driver.py
csningli/MultiAgent
cabfeab3ea8cf19559e06c354247f8f25739d6b1
[ "Apache-2.0" ]
1
2018-03-21T02:17:01.000Z
2018-03-21T02:17:01.000Z
tests/test_driver.py
csningli/MultiAgent
cabfeab3ea8cf19559e06c354247f8f25739d6b1
[ "Apache-2.0" ]
null
null
null
tests/test_driver.py
csningli/MultiAgent
cabfeab3ea8cf19559e06c354247f8f25739d6b1
[ "Apache-2.0" ]
null
null
null
# MultiAgent 2.0 # (c) 2017-2018, NiL, csningli@gmail.com import sys, os, time import doctest sys.path.append("..") from mas.multiagent import * def test_driver_basic() : ''' >>> test_driver_basic() Initialization. Driver: <<multiagent.Driver has_context=1 has_schedule=1>> Request: None Resp...
31.655172
92
0.640886
365
2,754
4.734247
0.19726
0.034722
0.040509
0.106481
0.462384
0.42419
0.42419
0.42419
0.42419
0.42419
0
0.03658
0.205882
2,754
86
93
32.023256
0.753544
0.31191
0
0.361702
0
0
0.253107
0
0
0
0
0
0
1
0.042553
false
0
0.06383
0
0.106383
0.489362
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
642da5fad66e5342c8de5cd71715c8fc87d497bd
2,253
py
Python
prepare-evaluation-directories.py
shashiongithub/WebSplit
2b62647cc834f8443000fe9d5ed497f8cea28a49
[ "MIT" ]
62
2017-07-24T03:42:33.000Z
2022-02-16T16:45:04.000Z
prepare-evaluation-directories.py
shashiongithub/WebSplit
2b62647cc834f8443000fe9d5ed497f8cea28a49
[ "MIT" ]
4
2018-01-01T06:41:50.000Z
2020-06-14T18:12:02.000Z
prepare-evaluation-directories.py
shashiongithub/WebSplit
2b62647cc834f8443000fe9d5ed497f8cea28a49
[ "MIT" ]
10
2018-01-01T08:35:10.000Z
2021-12-19T00:59:13.000Z
import random import json import re import os def process_sentdata(data, datasplit): data = data.strip().split("\n\n") complexsentdata = data[0].strip().split("\n") complexid = int(complexsentdata[0].split("-")[1].strip()) print complexid simpsents = {} for item in data[1:]: ...
30.04
90
0.556591
235
2,253
5.280851
0.340426
0.048348
0.096696
0.025786
0.058018
0
0
0
0
0
0
0.009615
0.30759
2,253
74
91
30.445946
0.785897
0.174434
0
0.155556
0
0
0.136117
0.088937
0
0
0
0
0
0
null
null
0
0.088889
null
null
0.088889
0
0
0
null
0
0
0
0
0
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
642fac0b3640aba8670af8e60043a72ee27f7851
621
py
Python
dimacs2smtlib.py
yoni206/dimacs2smtlib
a507cfee36f9c00f390172437710926350f8c02f
[ "BSD-3-Clause" ]
null
null
null
dimacs2smtlib.py
yoni206/dimacs2smtlib
a507cfee36f9c00f390172437710926350f8c02f
[ "BSD-3-Clause" ]
null
null
null
dimacs2smtlib.py
yoni206/dimacs2smtlib
a507cfee36f9c00f390172437710926350f8c02f
[ "BSD-3-Clause" ]
null
null
null
import sys dimacs_path = sys.argv[1] with open(dimacs_path, "r") as f: clauses_lines = f.read().splitlines()[1:] declarations = sorted(list(set(["(declare-fun v_" + str(abs(int(lit))) + " () Bool)" for line in clauses_lines for lit in line.split(" ")[:-1]]))) assertions = ["(assert (or " + " ".join(["v_" + str(abs(in...
62.1
203
0.621578
99
621
3.79798
0.494949
0.079787
0.055851
0.079787
0.31117
0.095745
0
0
0
0
0
0.009346
0.138486
621
9
204
69
0.693458
0
0
0
0
0
0.152979
0
0.111111
0
0
0
0.222222
1
0
false
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
643b250beb7c714acf31b9713df7fea05d5df8e6
9,580
py
Python
Inpainting/Context_Encoders/train_imagenet.py
fengjiran/scholar_project
35e86b7a8d0226ad0fee3b2983821a3f331f68aa
[ "Apache-2.0" ]
3
2017-08-20T08:47:18.000Z
2019-06-21T06:09:27.000Z
Inpainting/Context_Encoders/train_imagenet.py
fengjiran/scholar_project
35e86b7a8d0226ad0fee3b2983821a3f331f68aa
[ "Apache-2.0" ]
null
null
null
Inpainting/Context_Encoders/train_imagenet.py
fengjiran/scholar_project
35e86b7a8d0226ad0fee3b2983821a3f331f68aa
[ "Apache-2.0" ]
null
null
null
from __future__ import division import os from glob import glob import platform import cPickle import numpy as np import pandas as pd import cv2 from keras.models import Model from keras.optimizers import Adam from keras import backend as K from semantic_inpainting import Context_Encoder from utils import...
39.916667
112
0.621086
1,247
9,580
4.526864
0.169206
0.018069
0.026572
0.031887
0.376262
0.271922
0.240744
0.212755
0.180868
0.148804
0
0.024268
0.251566
9,580
239
113
40.083682
0.76304
0.061482
0
0.128655
0
0
0.125316
0.08362
0
0
0
0
0
0
null
null
0
0.076023
null
null
0.064327
0
0
0
null
0
0
0
0
0
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
643f14c48642322f0f13360bd733a3e5820feb25
2,411
py
Python
authentication/models.py
tdsymonds/django-custom-authentication
b198d5ce137da1d864a528c8f415c076bb327b4c
[ "MIT" ]
2
2021-10-01T23:42:20.000Z
2021-12-24T20:06:03.000Z
authentication/models.py
tdsymonds/django-custom-authentication
b198d5ce137da1d864a528c8f415c076bb327b4c
[ "MIT" ]
null
null
null
authentication/models.py
tdsymonds/django-custom-authentication
b198d5ce137da1d864a528c8f415c076bb327b4c
[ "MIT" ]
1
2020-05-26T00:10:10.000Z
2020-05-26T00:10:10.000Z
# -*- coding: utf-8 -*- from django.db import models from django.utils import timezone from django.utils.http import urlquote from django.utils.translation import ugettext_lazy as _ from django.core.mail import send_mail from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, BaseUserManager from u...
35.455882
90
0.676898
305
2,411
5.183607
0.439344
0.037951
0.028463
0.018975
0.030361
0.030361
0
0
0
0
0
0.006356
0.216922
2,411
67
91
35.985075
0.831038
0.137287
0
0
0
0
0.140762
0
0
0
0
0
0
1
0.125
false
0
0.2
0.025
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
644029c445115c5df5cb5c0e19eee0a98eff2f52
1,258
py
Python
tests/node/test_upsample.py
gglin001/onnx_jax
08e2a1181250db48f4436f6430903fc895a3a1d6
[ "Apache-2.0" ]
9
2021-04-12T02:37:14.000Z
2022-03-28T23:31:40.000Z
tests/node/test_upsample.py
gglin001/onnx-jax
08e2a1181250db48f4436f6430903fc895a3a1d6
[ "Apache-2.0" ]
null
null
null
tests/node/test_upsample.py
gglin001/onnx-jax
08e2a1181250db48f4436f6430903fc895a3a1d6
[ "Apache-2.0" ]
null
null
null
import numpy as np import onnx from onnx import helper from tests.tools import expect class Upsample: @staticmethod def export_nearest(): # type: () -> None node = onnx.helper.make_node( 'Upsample', inputs=['X', 'scales'], outputs=['Y'], mode='nearest'...
22.070175
65
0.345787
113
1,258
3.716814
0.389381
0.019048
0.057143
0.071429
0.057143
0.057143
0
0
0
0
0
0.072635
0.529412
1,258
56
66
22.464286
0.636824
0.012719
0
0.170213
0
0
0.041935
0.016935
0
0
0
0
0
1
0.021277
false
0
0.106383
0
0.148936
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ff2491aece91c254d42deb65a498a4c771ac1acd
438
py
Python
backend/course/migrations/0008_content_content_name.py
Floran-Github/CoderHifi-Code
6264edcea55fa5945d401d55d8cd7493bf4114eb
[ "Apache-2.0" ]
1
2021-02-24T13:43:42.000Z
2021-02-24T13:43:42.000Z
backend/course/migrations/0008_content_content_name.py
Floran-Github/CoderHifi-Code
6264edcea55fa5945d401d55d8cd7493bf4114eb
[ "Apache-2.0" ]
null
null
null
backend/course/migrations/0008_content_content_name.py
Floran-Github/CoderHifi-Code
6264edcea55fa5945d401d55d8cd7493bf4114eb
[ "Apache-2.0" ]
1
2021-10-05T19:17:51.000Z
2021-10-05T19:17:51.000Z
# Generated by Django 3.0.7 on 2021-03-26 17:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('course', '0007_auto_20210325_1041'), ] operations = [ migrations.AddField( model_name='content', name='content_name'...
21.9
62
0.605023
48
438
5.375
0.791667
0.085271
0.116279
0
0
0
0
0
0
0
0
0.111821
0.285388
438
19
63
23.052632
0.71246
0.10274
0
0
1
0
0.122762
0.058824
0
0
0
0
0
1
0
false
0
0.076923
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ff263aeacbd42cf51177b041c94350ae481e88c3
5,330
py
Python
kevlar/dist.py
johnsmith2077/kevlar
3ed06dae62479e89ccd200391728c416d4df8052
[ "MIT" ]
24
2016-12-07T07:59:09.000Z
2019-03-11T02:05:36.000Z
kevlar/dist.py
johnsmith2077/kevlar
3ed06dae62479e89ccd200391728c416d4df8052
[ "MIT" ]
325
2016-12-07T07:37:17.000Z
2019-03-12T19:01:40.000Z
kevlar/dist.py
standage/kevlar
622d1869266550422e91a60119ddc7261eea434a
[ "MIT" ]
8
2017-08-17T01:37:39.000Z
2019-03-01T16:17:44.000Z
#!/usr/bin/env python # # ----------------------------------------------------------------------------- # Copyright (c) 2018 The Regents of the University of California # # This file is part of kevlar (http://github.com/dib-lab/kevlar) and is # licensed under the MIT license: see LICENSE. # ----------------------------...
32.30303
79
0.596248
604
5,330
5.192053
0.346026
0.024554
0.021684
0.02551
0.225128
0.189413
0.166454
0.141582
0.141582
0.141582
0
0.011926
0.2606
5,330
164
80
32.5
0.783811
0.072796
0
0.186047
0
0
0.125101
0
0
0
0
0
0.015504
1
0.062016
false
0.054264
0.085271
0
0.193798
0.007752
0
0
0
null
0
0
0
0
0
0
0
0
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
ff2a7e57158e16a101d4a8f920b0ac46c44b9a1e
690
py
Python
py/py_0735_divisors_of_$2n^2$.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0735_divisors_of_$2n^2$.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0735_divisors_of_$2n^2$.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
# Solution of; # Project Euler Problem 735: Divisors of $2n^2$ # https://projecteuler.net/problem=735 # # Let $f(n)$ be the number of divisors of $2n^2$ that are no greater than n. # For example, $f(15)=8$ because there are 8 such divisors: 1,2,3,5,6,9,10,15. # Note that 18 is also a divisor of $2\times 15^2$ but it...
28.75
79
0.646377
129
690
3.372093
0.581395
0.013793
0.055172
0.05977
0
0
0
0
0
0
0
0.119134
0.197101
690
23
80
30
0.666065
0.747826
0
0
0
0
0.049383
0
0
0
0
0
0
1
0.125
false
0.125
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ff35a32885945cd93ee67d280408d3219d1c046f
752
py
Python
app.py
charJe/GreenChoice
243abbc65b31a2002df370071dd5fc7524c1d206
[ "Apache-2.0" ]
null
null
null
app.py
charJe/GreenChoice
243abbc65b31a2002df370071dd5fc7524c1d206
[ "Apache-2.0" ]
null
null
null
app.py
charJe/GreenChoice
243abbc65b31a2002df370071dd5fc7524c1d206
[ "Apache-2.0" ]
null
null
null
#@author: Mohit Bhole from flask import Flask,request from process import OCR from getWaterFootPrint import calculateEverything import json from flask import Flask,request app = Flask(__name__) picture=None information=None @app.route('/') def new(): print('POST: /postPicture/ , GET: /getInfo/') ret...
22.787879
63
0.656915
78
752
6.282051
0.435897
0.04898
0.061224
0.081633
0.110204
0
0
0
0
0
0
0
0.231383
752
33
64
22.787879
0.847751
0
0
0.24
0
0
0.114754
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0.08
0
0
0
null
0
0
0
0
0
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
ff3f1f2c7d5f98c871d5ef78689583231d2f3cba
7,254
py
Python
scripts/fetch_all_metrics.py
DocAdam/metrics
aaa4ac6453e38730f21f320ea99b1bb0f9e74d57
[ "Apache-2.0" ]
23
2020-10-14T06:44:00.000Z
2022-01-12T21:55:56.000Z
scripts/fetch_all_metrics.py
DocAdam/metrics
aaa4ac6453e38730f21f320ea99b1bb0f9e74d57
[ "Apache-2.0" ]
7
2020-10-14T17:57:21.000Z
2022-02-26T12:30:00.000Z
scripts/fetch_all_metrics.py
DocAdam/metrics
aaa4ac6453e38730f21f320ea99b1bb0f9e74d57
[ "Apache-2.0" ]
7
2020-10-14T14:56:47.000Z
2022-03-21T00:56:50.000Z
""" Generate METRICS-%Y-%m-%d.json for all the repositories tracked by repos-to-include.txt and save them in their respective _data directory. """ import datetime import json import os import requests import graphql_queries print("LOG: Assuming the current path to be the root of the metrics repository.") PATH_TO_MET...
35.385366
150
0.668321
950
7,254
4.917895
0.269474
0.020976
0.017979
0.010916
0.115796
0.064854
0.044735
0.026113
0.026113
0.026113
0
0.005657
0.195892
7,254
204
151
35.558824
0.795303
0.259305
0
0.100775
1
0
0.231074
0.007929
0
0
0
0
0
1
0.007752
false
0
0.03876
0
0.054264
0.069767
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
ff4f484ebc20a2c6637b512cd6493242d8ae0295
2,286
py
Python
scrape_items.py
DerekRies/arkpy
b8305c8bbbe7c1772b262d7fdaa9d05e0a1728d0
[ "MIT" ]
19
2016-07-14T00:47:21.000Z
2022-03-30T15:22:59.000Z
scrape_items.py
DerekRies/arkpy
b8305c8bbbe7c1772b262d7fdaa9d05e0a1728d0
[ "MIT" ]
23
2016-07-19T06:53:16.000Z
2021-03-25T21:44:57.000Z
scrape_items.py
DerekRies/arkpy
b8305c8bbbe7c1772b262d7fdaa9d05e0a1728d0
[ "MIT" ]
5
2017-02-06T13:11:43.000Z
2022-03-28T21:04:25.000Z
import requests import json from bs4 import BeautifulSoup def scrape_creatures(): print 'scraping creatures' url = 'http://ark.gamepedia.com/Entity_IDs' r = requests.get(url) soup = BeautifulSoup(r.text, 'html.parser') tables = soup.find_all('table') creature_table = tables[2] container =...
26.275862
62
0.523185
262
2,286
4.458015
0.274809
0.035959
0.023116
0.03339
0.548801
0.469178
0.42637
0.42637
0.388699
0.388699
0
0.012211
0.319335
2,286
86
63
26.581395
0.738432
0.035433
0
0.434783
0
0
0.133636
0.025455
0
0
0
0
0
0
null
null
0
0.043478
null
null
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ff520b8fe942d4b6d97a5ee2488e7813d8789ff9
4,096
py
Python
qiskit_optimization/converters/flip_problem_sense.py
X-Libor/qiskit-optimization
f2a92538d883ebc0f78c156ab6f31710e9b1d14f
[ "Apache-2.0" ]
109
2021-01-20T09:37:26.000Z
2022-03-30T08:13:53.000Z
qiskit_optimization/converters/flip_problem_sense.py
X-Libor/qiskit-optimization
f2a92538d883ebc0f78c156ab6f31710e9b1d14f
[ "Apache-2.0" ]
216
2021-01-20T10:31:37.000Z
2022-03-31T15:16:13.000Z
qiskit_optimization/converters/flip_problem_sense.py
X-Libor/qiskit-optimization
f2a92538d883ebc0f78c156ab6f31710e9b1d14f
[ "Apache-2.0" ]
69
2021-01-19T21:43:18.000Z
2022-03-24T22:13:01.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
37.236364
98
0.682861
501
4,096
5.489022
0.305389
0.039273
0.014545
0.020364
0.254182
0.228
0.131273
0.097091
0.077818
0.077818
0
0.00358
0.249756
4,096
109
99
37.577982
0.891311
0.42749
0
0.225
0
0
0.064592
0.009901
0
0
0
0
0
1
0.15
false
0.025
0.175
0.05
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ff52b8d27163e16b9ceb7f0f92fa06756c5f6c8f
594
py
Python
darts_search_space/imagenet/rlnas/train_supernet/config.py
megvii-model/RLNAS
a7e2ef9debcd06a93b075181a027b806b737b106
[ "MIT" ]
17
2021-05-17T04:54:17.000Z
2022-01-23T09:59:02.000Z
darts_search_space/imagenet/rlnas/train_supernet/config.py
megvii-model/RLNAS
a7e2ef9debcd06a93b075181a027b806b737b106
[ "MIT" ]
2
2021-07-09T05:14:29.000Z
2022-02-05T10:15:31.000Z
darts_search_space/imagenet/rlnas/train_supernet/config.py
megvii-model/RLNAS
a7e2ef9debcd06a93b075181a027b806b737b106
[ "MIT" ]
8
2021-05-28T00:04:20.000Z
2021-10-18T02:41:34.000Z
import os class config: # Basic configration layers = 14 edges = 14 model_input_size_imagenet = (1, 3, 224, 224) # Candidate operators blocks_keys = [ 'none', 'max_pool_3x3', 'avg_pool_3x3', 'skip_connect', 'sep_conv_3x3', 'sep_conv_5x5', ...
17.470588
48
0.56734
79
594
3.860759
0.531646
0.091803
0.065574
0
0
0
0
0
0
0
0
0.11399
0.350168
594
33
49
18
0.676166
0.09596
0
0
0
0
0.165725
0
0
0
0
0
0
1
0
false
0
0.041667
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
ff5a508c9123b5873d839f5bb927bcf725b682cd
869
py
Python
src/quiet_loaders.py
pointThink/Quiet-Text
89fbfcd60a33c0c20d45f48c52707c3a578231a4
[ "MIT" ]
61
2020-10-05T20:08:28.000Z
2022-03-14T07:59:18.000Z
src/quiet_loaders.py
pointThink/Quiet-Text
89fbfcd60a33c0c20d45f48c52707c3a578231a4
[ "MIT" ]
73
2020-10-05T12:32:19.000Z
2020-10-27T22:49:55.000Z
src/quiet_loaders.py
pointThink/Quiet-Text
89fbfcd60a33c0c20d45f48c52707c3a578231a4
[ "MIT" ]
44
2020-10-05T17:06:50.000Z
2021-12-24T15:10:01.000Z
from yaml import load, dump, FullLoader import sys, os class QuietLoaders: def resource_path(self, relative): if hasattr(sys, "_MEIPASS"): return os.path.join(sys._MEIPASS, relative) return os.path.join(relative) def __init__(self): self.settings_path = self.resource_path(os.path.join('data', 'config/sett...
28.966667
103
0.752589
126
869
4.968254
0.293651
0.095847
0.063898
0.051118
0.43131
0.373802
0.373802
0.373802
0.373802
0.373802
0
0
0.128884
869
29
104
29.965517
0.826948
0
0
0.1
0
0
0.077457
0.03237
0
0
0
0
0
1
0.2
false
0.1
0.1
0
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ff5bf2109a74d93214a9cb5069c3105a0825cfe9
2,788
py
Python
pymmrouting/datamodel.py
tumluliu/pymmrouting
948ddfa2bd419baffde68440e98e3531277c98d6
[ "MIT" ]
5
2017-06-17T21:02:16.000Z
2022-03-15T10:14:06.000Z
pymmrouting/datamodel.py
tumluliu/pymmrouting
948ddfa2bd419baffde68440e98e3531277c98d6
[ "MIT" ]
null
null
null
pymmrouting/datamodel.py
tumluliu/pymmrouting
948ddfa2bd419baffde68440e98e3531277c98d6
[ "MIT" ]
null
null
null
""" Data adapter for reading and parsing multimodal transportation networks and related abstraction of facilities """ from ctypes import Structure, c_int, c_double, c_longlong, POINTER, CFUNCTYPE class CEdge(Structure): pass CEdge._fields_ = [("mode_id", c_int), ("length", c_dou...
32.418605
78
0.569225
303
2,788
4.940594
0.326733
0.042084
0.032064
0.03006
0.088176
0.038744
0
0
0
0
0
0.004857
0.335366
2,788
85
79
32.8
0.803022
0.039096
0
0.083333
0
0
0.14137
0
0
0
0
0
0
1
0
false
0.083333
0.041667
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ff622d453af6914977835f7aae482343ae3d8d50
906
py
Python
dong_mnist_example/data/default.py
libgirlenterprise/dong_mnist_example
fdcf2fcc457e717eeaddb631f071790eb1f39607
[ "Apache-2.0" ]
1
2019-06-26T02:26:53.000Z
2019-06-26T02:26:53.000Z
dong_mnist_example/data/default.py
libgirlenterprise/dong_mnist_example
fdcf2fcc457e717eeaddb631f071790eb1f39607
[ "Apache-2.0" ]
4
2020-01-28T22:47:24.000Z
2022-02-10T00:10:45.000Z
dong_mnist_example/data/default.py
libgirlenterprise/dong_mnist_example
fdcf2fcc457e717eeaddb631f071790eb1f39607
[ "Apache-2.0" ]
1
2019-08-20T17:04:05.000Z
2019-08-20T17:04:05.000Z
from __future__ import division import collections import numpy import tensorflow import dong.framework DataPair = collections.namedtuple('DataPair', ['x', 'y']) DataParams = collections.namedtuple('Params', ['image_size', 'num_labels']) class DefaultData(dong.framework.Data): def __init__(self, config=No...
27.454545
76
0.672185
121
906
4.661157
0.347107
0.053191
0.053191
0.06383
0.198582
0.095745
0
0
0
0
0
0.012712
0.218543
906
32
77
28.3125
0.783898
0
0
0
0
0
0.039779
0
0
0
0
0
0
1
0.2
false
0
0.25
0.1
0.65
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ff62d9e6714a481320e454a0ad9bd50f53f13d99
763
py
Python
Python/date_formate.py
ArmstrongYang/StudyShare
6dffcfba6811865589a8e11748ffc7e71a656f50
[ "Apache-2.0" ]
2
2017-08-10T13:41:19.000Z
2017-11-30T09:00:33.000Z
Python/date_formate.py
ArmstrongYang/StudyShare
6dffcfba6811865589a8e11748ffc7e71a656f50
[ "Apache-2.0" ]
null
null
null
Python/date_formate.py
ArmstrongYang/StudyShare
6dffcfba6811865589a8e11748ffc7e71a656f50
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import time; # 引入time模块 ticks = time.time() print ("当前时间戳为:", ticks) localtime = time.localtime(time.time()) print ("本地时间为 :", localtime) localtime = time.asctime( time.localtime(time.time()) ) print ("本地时间为 :", localtime) # 格式化成Sat Mar 28 22:24:24 2016形式 time_str_asc = "%a %b %d %H:%M:%S %Y" p...
23.121212
56
0.699869
117
763
4.324786
0.418803
0.096838
0.077075
0.023715
0.324111
0.27668
0.27668
0.118577
0.118577
0.118577
0
0.08321
0.117955
763
33
57
23.121212
0.668648
0.154653
0
0.111111
0
0
0.146875
0
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
0.444444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
ff62f63c37be71b0db477d5e234bc5122f7dc6c3
19,290
py
Python
basics/math/geometry.py
Yinan-Zhang/RichCSpace
e657a5296af115eb66c67f1a2440e84154eaef54
[ "MIT" ]
null
null
null
basics/math/geometry.py
Yinan-Zhang/RichCSpace
e657a5296af115eb66c67f1a2440e84154eaef54
[ "MIT" ]
null
null
null
basics/math/geometry.py
Yinan-Zhang/RichCSpace
e657a5296af115eb66c67f1a2440e84154eaef54
[ "MIT" ]
null
null
null
#! /usr/bin/python """ Reference: Trac 0.10.4 https://trac.assembla.com/icfpc08-csail/ """ """ A small library of 2D geometric primitives. - angle: a routine which normalizes angles to (-pi,pi]. - v2: 2D cartesian vectors in the plane. - line_segment: a line segment from one 2D point to another 2D point....
33.14433
128
0.590513
2,709
19,290
4.043559
0.110742
0.026474
0.016432
0.016432
0.579149
0.502556
0.471426
0.448421
0.413
0.387986
0
0.008382
0.233126
19,290
581
129
33.201377
0.732103
0.113427
0
0.422652
0
0.002762
0.102829
0
0
0
0
0
0
0
null
null
0.002762
0.005525
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
ff65a743a29c45212413227d72b5c92aa49a2569
2,074
py
Python
muddery/worlddata/editor/room_form_view.py
noahzaozao/muddery
294da6fb73cb04c62e5ba6eefe49b595ca76832a
[ "BSD-3-Clause" ]
null
null
null
muddery/worlddata/editor/room_form_view.py
noahzaozao/muddery
294da6fb73cb04c62e5ba6eefe49b595ca76832a
[ "BSD-3-Clause" ]
null
null
null
muddery/worlddata/editor/room_form_view.py
noahzaozao/muddery
294da6fb73cb04c62e5ba6eefe49b595ca76832a
[ "BSD-3-Clause" ]
null
null
null
""" This file checks user's edit actions and put changes into db. """ from django import http from django.http import HttpResponseRedirect from evennia.utils import logger from muddery.worlddata.editor.form_view import FormView from worlddata import forms class RoomFormView(FormView): """ This object deal w...
24.690476
63
0.511572
215
2,074
4.851163
0.390698
0.063279
0.057526
0.072867
0.151486
0.151486
0.151486
0.151486
0.151486
0.151486
0
0.003177
0.39296
2,074
83
64
24.987952
0.825258
0.041466
0
0.25
0
0
0.055661
0
0
0
0
0
0
0
null
null
0
0.125
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
ff6a6cc2820e918cd305738babcc881527cfefa8
1,071
py
Python
src/skaero/atmosphere/util.py
jorgepiloto/scikit-aero
06958096c04183cde87a7e8a6cd7c016eb9140b3
[ "BSD-2-Clause" ]
89
2016-02-11T04:00:24.000Z
2022-02-22T02:54:44.000Z
src/skaero/atmosphere/util.py
jorgepiloto/scikit-aero
06958096c04183cde87a7e8a6cd7c016eb9140b3
[ "BSD-2-Clause" ]
27
2017-06-15T23:34:04.000Z
2021-09-03T20:24:29.000Z
src/skaero/atmosphere/util.py
jorgepiloto/scikit-aero
06958096c04183cde87a7e8a6cd7c016eb9140b3
[ "BSD-2-Clause" ]
27
2016-03-13T17:08:41.000Z
2021-11-10T09:37:30.000Z
# coding: utf-8 """ Utilities for atmospheric calculations. """ from __future__ import absolute_import, division import numpy as np # effective earth's radius R_Earth = 6356.7660e3 # m def geometric_to_geopotential(z): """Returns geopotential altitude from geometric altitude. Parameters ---------- ...
18.152542
87
0.626517
132
1,071
4.931818
0.431818
0.046083
0.09831
0.058372
0.347158
0.22427
0.22427
0
0
0
0
0.038702
0.252101
1,071
58
88
18.465517
0.774032
0.5845
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
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
ff6f769047b650946afa7e28c87234c318a025a9
1,141
py
Python
src/journalabbrev_cli/common.py
alexreg/journal-abbrev
e980b4c96668f610d1a35e816474c094eb563034
[ "BSD-3-Clause" ]
null
null
null
src/journalabbrev_cli/common.py
alexreg/journal-abbrev
e980b4c96668f610d1a35e816474c094eb563034
[ "BSD-3-Clause" ]
null
null
null
src/journalabbrev_cli/common.py
alexreg/journal-abbrev
e980b4c96668f610d1a35e816474c094eb563034
[ "BSD-3-Clause" ]
null
null
null
import sys from typing import * from progressbar.bar import ProgressBar from progressbar.widgets import WidgetBase class FatalError(Exception): def __init__(self, exit_status: int = 1) -> None: super().__init__() self.exit_status = exit_status def error(message: str) -> None: print("ERROR: " + message, file ...
26.534884
112
0.697634
139
1,141
5.553957
0.374101
0.103627
0.165803
0.178756
0.238342
0.238342
0.238342
0.11399
0
0
0
0.001031
0.149869
1,141
42
113
27.166667
0.794845
0
0
0.133333
0
0
0.043821
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.433333
0.1
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
ff6f7f44c7fc513eace9c3c1c5112bfbc7f38839
2,156
py
Python
google/ads/google_ads/v0/proto/services/ad_schedule_view_service_pb2_grpc.py
jwygoda/google-ads-python
863892b533240cb45269d9c2cceec47e2c5a8b68
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v0/proto/services/ad_schedule_view_service_pb2_grpc.py
jwygoda/google-ads-python
863892b533240cb45269d9c2cceec47e2c5a8b68
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v0/proto/services/ad_schedule_view_service_pb2_grpc.py
jwygoda/google-ads-python
863892b533240cb45269d9c2cceec47e2c5a8b68
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from google.ads.google_ads.v0.proto.resources import ad_schedule_view_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_ad__schedule__view__pb2 from google.ads.google_ads.v0.proto.services import ad_schedule_view_servic...
44.916667
176
0.817254
264
2,156
6.094697
0.280303
0.068365
0.07831
0.055935
0.495339
0.482287
0.42138
0.385333
0.338098
0.338098
0
0.009459
0.117347
2,156
47
177
45.87234
0.836048
0.117347
0
0
1
0
0.101659
0.067951
0
0
0
0
0
1
0.115385
false
0
0.115385
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ff71b40ce6d85769cf13839ed6df117eb2357f7d
560
py
Python
intro.py
eeti3084/python_learning
38f2394bbabf6d836905495619ad9b4e5dd8f0af
[ "MIT" ]
null
null
null
intro.py
eeti3084/python_learning
38f2394bbabf6d836905495619ad9b4e5dd8f0af
[ "MIT" ]
null
null
null
intro.py
eeti3084/python_learning
38f2394bbabf6d836905495619ad9b4e5dd8f0af
[ "MIT" ]
null
null
null
# from mymodule import find_index,test # import sys import random as r #stand library modules import math import datetime import calendar import os print(os.__file__) print(os.getcwd()) today=datetime.date.today() print(today) # #if you want to add module in another lcoation just add tha locaiton to sys.path # # sys.p...
22.4
82
0.755357
83
560
5
0.554217
0.050602
0
0
0
0
0
0
0
0
0
0
0.1125
560
24
83
23.333333
0.83501
0.498214
0
0
0
0
0.093985
0
0
0
0
0
0
1
0
false
0
0.416667
0
0.416667
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ff7ecdd12ea74ea82fea6d22779a16ae0562d37f
660
py
Python
solr-admin-app/solr_admin/services/update_records.py
sumesh-aot/namex
53e11aed5ea550b71b7b983f1b57b65db5a06766
[ "Apache-2.0" ]
4
2018-10-05T23:41:05.000Z
2019-06-19T16:17:50.000Z
solr-admin-app/solr_admin/services/update_records.py
sumesh-aot/namex
53e11aed5ea550b71b7b983f1b57b65db5a06766
[ "Apache-2.0" ]
635
2018-05-31T04:12:46.000Z
2022-03-31T18:45:42.000Z
solr-admin-app/solr_admin/services/update_records.py
rarmitag/namex
1b308bf96130619d4a61d44e075cc7ab177dc6cd
[ "Apache-2.0" ]
71
2018-05-14T20:47:55.000Z
2022-03-31T23:08:30.000Z
from solr_admin.models.restricted_condition import RestrictedCondition from solr_admin.models.restricted_word import RestrictedWord from solr_admin.models.restricted_word_condition import RestrictedWordCondition from solr_admin.models.virtual_word_condition import VirtualWordCondition from solr_admin.services.create_re...
36.666667
79
0.824242
74
660
7.148649
0.364865
0.075614
0.122873
0.143667
0.179584
0.124764
0
0
0
0
0
0
0.107576
660
17
80
38.823529
0.898132
0
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0.384615
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
ff81afe2bff62bb295775df69d4d7cc24c05bdaf
1,617
py
Python
src/registration/extract_timeseries.py
Gilles86/bias_project
89016055b4c47a587e30c43bb165b1ea74e65134
[ "MIT" ]
null
null
null
src/registration/extract_timeseries.py
Gilles86/bias_project
89016055b4c47a587e30c43bb165b1ea74e65134
[ "MIT" ]
null
null
null
src/registration/extract_timeseries.py
Gilles86/bias_project
89016055b4c47a587e30c43bb165b1ea74e65134
[ "MIT" ]
null
null
null
from nipype.interfaces import fsl from nipype.interfaces import io as nio import nipype.pipeline.engine as pe import os import numpy as np project_folder = '/home/gdholla1/projects/bias' templates = {'mask_epi':os.path.join(project_folder, 'data', 'derivatives', 'sub-{subject_id}', 'masks', 'epi_space', 'sub-{subjec...
46.2
222
0.742115
224
1,617
5.053571
0.401786
0.113074
0.110424
0.060071
0.111307
0.090989
0.067138
0
0
0
0
0.00684
0.095857
1,617
34
223
47.558824
0.767442
0.037724
0
0
0
0
0.333119
0.113183
0
0
0
0
0
1
0
false
0.238095
0.238095
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
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
ff84a4d20d591a88bfeeae51d07b83ed981f59c6
904
py
Python
source/python/_tests/test_vector.py
sandeep-gh/pyboost_ipc
8e26106f1ea93085acc9fa2f68bb048da53cc8e7
[ "MIT" ]
8
2016-02-03T11:21:05.000Z
2021-08-05T13:17:21.000Z
source/python/_tests/test_vector.py
sandeep-gh/pyboost_ipc
8e26106f1ea93085acc9fa2f68bb048da53cc8e7
[ "MIT" ]
10
2015-07-20T21:46:55.000Z
2015-08-03T12:45:31.000Z
source/python/_tests/test_vector.py
sandeep-gh/pyboost_ipc
8e26106f1ea93085acc9fa2f68bb048da53cc8e7
[ "MIT" ]
4
2016-02-04T12:30:15.000Z
2020-04-21T12:00:31.000Z
from pyboost_ipc import vector_double, vector_string from pyboost_ipc_tests import (create_vector_double_in_shared_memory, create_vector_string_in_shared_memory) def test_string(shmem): v = create_vector_string_in_shared_memory(shmem, 'My vector', [b'Foo', b'Bar']) assert len(v) == 2 assert type(v[0])...
30.133333
83
0.641593
151
904
3.649007
0.205298
0.018149
0.101633
0.043557
0.446461
0.362976
0.083485
0.083485
0
0
0
0.035912
0.199115
904
29
84
31.172414
0.725138
0
0
0.086957
0
0
0.066372
0
0
0
0
0
0.608696
1
0.086957
false
0
0.086957
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
ff894389187ea110701ab0944132a49f841b7261
545
py
Python
netbox_vcenter/management/commands/update_vcenter_cache.py
sjm-steffann/netbox-vcenter
0be55315b7a6c60e2b30198ccd6cfa3d02c2cf14
[ "Apache-2.0" ]
33
2020-04-16T16:06:02.000Z
2022-03-05T06:27:15.000Z
netbox_vcenter/management/commands/update_vcenter_cache.py
sjm-steffann/netbox-vcenter
0be55315b7a6c60e2b30198ccd6cfa3d02c2cf14
[ "Apache-2.0" ]
2
2020-06-24T15:52:49.000Z
2020-08-19T11:41:22.000Z
netbox_vcenter/management/commands/update_vcenter_cache.py
sjm-steffann/netbox-vcenter
0be55315b7a6c60e2b30198ccd6cfa3d02c2cf14
[ "Apache-2.0" ]
5
2021-03-11T19:21:56.000Z
2022-02-14T15:15:01.000Z
from django.core.management import BaseCommand from netbox_vcenter.background_tasks import refresh_virtual_machines from netbox_vcenter.models import ClusterVCenter class Command(BaseCommand): help = "Update the cache of vCenter information" def handle(self, verbosity, *args, **kwargs): for vcenter ...
36.333333
88
0.733945
65
545
6.046154
0.676923
0.050891
0.086514
0
0
0
0
0
0
0
0
0.002257
0.187156
545
14
89
38.928571
0.884876
0
0
0
0
0
0.163303
0.040367
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
ff8c0a7063d2f97980ca4799a94ad9f839cc4fa9
8,997
py
Python
nigraph/nigraph.py
mekman/nigraph
f49766672d1cc189d8ec20cc6fed5d47c1b19a75
[ "MIT" ]
null
null
null
nigraph/nigraph.py
mekman/nigraph
f49766672d1cc189d8ec20cc6fed5d47c1b19a75
[ "MIT" ]
1
2018-05-22T12:47:25.000Z
2018-05-22T12:47:25.000Z
nigraph/nigraph.py
mekman/nigraph
f49766672d1cc189d8ec20cc6fed5d47c1b19a75
[ "MIT" ]
2
2019-01-23T16:01:56.000Z
2021-09-06T02:48:17.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """Commonly used utility functions.""" # mainly backports from future numpy here from __future__ import absolute_import, division, print_function import numpy as np import nibabel as nib def thresholding_abs(A, thr, smaller=True, copy=True): """thresholding of the adjac...
27.940994
79
0.58953
1,311
8,997
3.948894
0.252479
0.010817
0.017578
0.005215
0.285687
0.22909
0.217887
0.207456
0.181959
0.181959
0
0.027236
0.281761
8,997
321
80
28.028037
0.7736
0.640991
0
0.421053
0
0
0.005752
0
0
0
0
0.012461
0
1
0.078947
false
0
0.039474
0
0.184211
0.013158
0
0
0
null
0
0
0
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
ff8dac0bafcb4c41c644149e6a9b4baaf85fb55a
359
py
Python
src/scene_segmentation_module/src/scene_segmentation_module/__init__.py
AndrewDamico/Viper
a34ce8d44e615b0052d8262e9622c32b346d17bf
[ "BSD-3-Clause" ]
1
2021-11-29T08:12:36.000Z
2021-11-29T08:12:36.000Z
src/scene_segmentation_module/src/scene_segmentation_module/__init__.py
AndrewDamico/Viper
a34ce8d44e615b0052d8262e9622c32b346d17bf
[ "BSD-3-Clause" ]
null
null
null
src/scene_segmentation_module/src/scene_segmentation_module/__init__.py
AndrewDamico/Viper
a34ce8d44e615b0052d8262e9622c32b346d17bf
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python __package__ = "scene_segmentation_module" __version__ = '0.1' __author__ = 'Andrew Damico' from .scenesegmentationmodel import SceneSegmentationModel from .utilities import segmentation_map_to_image, SegmentationMap, Label __all__ = [ 'SceneSegmentationModel', 'segmentation_map_to_image'...
23.933333
72
0.774373
35
359
7.257143
0.685714
0.11811
0.133858
0.173228
0
0
0
0
0
0
0
0.006431
0.133705
359
14
73
25.642857
0.810289
0.05571
0
0
0
0
0.319527
0.213018
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
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
ff90b4e9ea68021cd9b720317dbd1da36d5220c5
1,145
py
Python
scripts/post_install.py
eliasrg/funky
ba17d29144c504f4d97bd56f66f20b4f98166d97
[ "MIT" ]
null
null
null
scripts/post_install.py
eliasrg/funky
ba17d29144c504f4d97bd56f66f20b4f98166d97
[ "MIT" ]
null
null
null
scripts/post_install.py
eliasrg/funky
ba17d29144c504f4d97bd56f66f20b4f98166d97
[ "MIT" ]
null
null
null
"""Setuptools post install script.""" import errno import getpass import os import shutil import sys def run(install): """Runs all post install hooks.""" _copy_sh_ext(install) def _copy_sh_ext(install): """Copy shell extension to funky config directory.""" this_dir = os.path.dirname(os.path.realpat...
22.9
80
0.620961
151
1,145
4.456954
0.403974
0.072808
0.074294
0.062407
0
0
0
0
0
0
0
0
0.241048
1,145
49
81
23.367347
0.774453
0.110044
0
0.064516
0
0
0.128257
0.02505
0
0
0
0
0
1
0.096774
false
0.064516
0.16129
0
0.290323
0
0
0
0
null
0
0
0
0
0
0
0
0
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
ff9786e1577394b75218d9ef1c683b5fc32c6935
6,702
py
Python
net_models/models/services/ServerModels.py
mihudec/netcm
380786793e35206cae923e613458be9eb9f0a02e
[ "MIT" ]
null
null
null
net_models/models/services/ServerModels.py
mihudec/netcm
380786793e35206cae923e613458be9eb9f0a02e
[ "MIT" ]
null
null
null
net_models/models/services/ServerModels.py
mihudec/netcm
380786793e35206cae923e613458be9eb9f0a02e
[ "MIT" ]
1
2021-08-09T06:33:28.000Z
2021-08-09T06:33:28.000Z
# Standard Libraries import ipaddress # Third party packages from pydantic import conint, constr, root_validator from pydantic.typing import Optional, Union, List, Literal # Local package from net_models.validators import * from net_models.fields import GENERIC_OBJECT_NAME, VRF_NAME, BASE_INTERFACE_NAME, InterfaceName ...
27.243902
95
0.725455
715
6,702
6.620979
0.261538
0.04943
0.064639
0.052809
0.309463
0.228771
0.179763
0.147233
0.103507
0.062104
0
0.006326
0.174426
6,702
246
96
27.243902
0.849268
0.009848
0
0.265823
0
0
0.055338
0
0
0
0
0
0.006329
1
0.044304
false
0.012658
0.037975
0.006329
0.816456
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
ff97aeb49e52612171164bb74e54ed503cc40093
3,611
py
Python
freqAnalysis/freqAnalysis.py
0x2342/tools
36b9c02c1147c830339f5dbfdbd7b012362794f1
[ "BSD-3-Clause" ]
null
null
null
freqAnalysis/freqAnalysis.py
0x2342/tools
36b9c02c1147c830339f5dbfdbd7b012362794f1
[ "BSD-3-Clause" ]
null
null
null
freqAnalysis/freqAnalysis.py
0x2342/tools
36b9c02c1147c830339f5dbfdbd7b012362794f1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # Frequency analysis of a text files # ETAOIN SHRDLU # Started: 2017-11-08 import sys from operator import itemgetter from collections import OrderedDict f = open(sys.argv[1], 'r'); # Pass input file as parameter s = str(f.read()); ...
36.11
190
0.505677
520
3,611
3.511538
0.284615
0.03012
0.030668
0.021906
0.223439
0.142388
0.128149
0.105148
0.105148
0.090909
0
0.031778
0.311548
3,611
99
191
36.474747
0.702735
0.242869
0
0.15625
0
0
0.05131
0
0
0
0
0
0
0
null
null
0
0.046875
null
null
0.09375
0
0
0
null
0
0
0
0
0
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
ff9a4e9b68782c7ee229f307ffa04571b497b838
5,413
py
Python
legacy/scripts/srd_model_calibration.py
pvkraju80/leo
f6ed6f4ee6eb34c47581d40d4d3fea69f42140f3
[ "CNRI-Python" ]
99
2016-11-02T14:29:41.000Z
2022-03-02T23:53:02.000Z
legacy/scripts/srd_model_calibration.py
pvkraju80/leo
f6ed6f4ee6eb34c47581d40d4d3fea69f42140f3
[ "CNRI-Python" ]
null
null
null
legacy/scripts/srd_model_calibration.py
pvkraju80/leo
f6ed6f4ee6eb34c47581d40d4d3fea69f42140f3
[ "CNRI-Python" ]
86
2016-11-05T15:39:08.000Z
2022-03-14T04:37:17.000Z
# # Calibration of Gruenbichler and Longstaff (1996) # square-root diffusion model to # VSTOXX call options traded at Eurex # Data as of 31. March 2014 # All data from www.eurexchange.com # # (c) Dr. Yves J. Hilpisch # Listed Volatility and Variance Derivatives # import numpy as np import pandas as pd from srd_function...
27.758974
79
0.606688
716
5,413
4.484637
0.314246
0.071629
0.029897
0.037372
0.133292
0.116475
0.050452
0.019309
0.019309
0.019309
0
0.047789
0.273231
5,413
194
80
27.902062
0.768429
0.151118
0
0.131868
0
0
0.065275
0
0
0
0
0
0
0
null
null
0
0.054945
null
null
0.021978
0
0
0
null
0
0
0
0
0
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
ff9aa78c07f0f586f8e5ea09690621bb1af0b5ac
7,940
py
Python
beebole/base.py
Dogeek/beebole
f40ae3fad9a5178cc0d27116790eb5a0ef069a5b
[ "MIT" ]
1
2021-12-19T23:45:47.000Z
2021-12-19T23:45:47.000Z
beebole/base.py
Dogeek/beebole
f40ae3fad9a5178cc0d27116790eb5a0ef069a5b
[ "MIT" ]
null
null
null
beebole/base.py
Dogeek/beebole
f40ae3fad9a5178cc0d27116790eb5a0ef069a5b
[ "MIT" ]
null
null
null
from inspect import Parameter, _ParameterKind, signature, Signature from typing import Any, Callable, Optional, Tuple, Union, List, Dict from dacite import Config, from_dict from requests import Response from beebole.interfaces.responses import SimpleResponse from beebole.exceptions import ( BeeboleException, Bee...
42.459893
93
0.626826
906
7,940
5.310155
0.248344
0.022864
0.010601
0.00582
0.034089
0.014966
0.014966
0
0
0
0
0.001793
0.297607
7,940
186
94
42.688172
0.860857
0.283249
0
0.034188
0
0
0.047437
0.009996
0
0
0
0.010753
0
1
0.068376
false
0
0.059829
0
0.230769
0
0
0
0
null
0
0
0
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
ff9b645d97f3c8c96a38e4fb907f738f745d2f59
433
py
Python
models/Loss.py
ljynlp/HiTrans
142e76845571991f05b3fb1529fa79389af29c36
[ "MIT" ]
9
2021-02-17T08:51:02.000Z
2022-03-07T01:13:33.000Z
models/Loss.py
ljynlp/HiTrans
142e76845571991f05b3fb1529fa79389af29c36
[ "MIT" ]
3
2021-02-03T03:47:59.000Z
2021-12-28T06:49:00.000Z
models/Loss.py
ljynlp/HiTrans
142e76845571991f05b3fb1529fa79389af29c36
[ "MIT" ]
1
2022-03-22T08:40:12.000Z
2022-03-22T08:40:12.000Z
import torch import torch.nn as nn class MultiTaskLoss(nn.Module): def __init__(self, num_tasks): super(MultiTaskLoss, self).__init__() self.sigma = nn.Parameter(torch.ones(num_tasks), requires_grad=True) def forward(self, *losses): losses = torch.cat([loss.unsqueeze(0) for loss in los...
36.083333
76
0.655889
61
433
4.47541
0.540984
0.098901
0
0
0
0
0
0
0
0
0
0.011594
0.203233
433
12
77
36.083333
0.77971
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ff9f86478b6d9b0dbcc9a966ccb60c3dd46b559d
345
py
Python
tests/test_infopdf.py
Zigazou/dietpdf
4608ea2d9d54861d4d894b725a60895e0bdc131a
[ "MIT" ]
6
2022-02-07T06:17:41.000Z
2022-02-15T17:29:16.000Z
tests/test_infopdf.py
Zigazou/dietpdf
4608ea2d9d54861d4d894b725a60895e0bdc131a
[ "MIT" ]
2
2022-02-08T10:00:08.000Z
2022-02-08T12:59:42.000Z
tests/test_infopdf.py
Zigazou/dietpdf
4608ea2d9d54861d4d894b725a60895e0bdc131a
[ "MIT" ]
null
null
null
import pytest from random import seed, randrange from dietpdf.infopdf import infopdf __author__ = "Frédéric BISSON" __copyright__ = "Copyright 2022, Frédéric BISSON" __credits__ = ["Frédéric BISSON"] __license__ = "mit" __maintainer__ = "Frédéric BISSON" __email__ = "zigazou@protonmail.com" def test_infopdf(): ...
19.166667
49
0.747826
38
345
6.131579
0.657895
0.240343
0
0
0
0
0
0
0
0
0
0.013468
0.13913
345
17
50
20.294118
0.771044
0.046377
0
0
0
0
0.313665
0.068323
0
0
0
0
0
1
0.1
false
0
0.3
0
0.4
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
ffa317ce5ff63326df80fa604070cb39b3ba1426
427
py
Python
app/__init__.py
Andrewpqc/hackerthon_sentiment_analysis
0fcb530f5a8ef269007dfea44d245e74eaf9fef7
[ "MIT" ]
null
null
null
app/__init__.py
Andrewpqc/hackerthon_sentiment_analysis
0fcb530f5a8ef269007dfea44d245e74eaf9fef7
[ "MIT" ]
null
null
null
app/__init__.py
Andrewpqc/hackerthon_sentiment_analysis
0fcb530f5a8ef269007dfea44d245e74eaf9fef7
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy from flask import Flask from config import config db = SQLAlchemy() #工厂函数 def create_app(config_key): app = Flask(__name__) app.config.from_object(config[config_key]) config[config_key].init_app(app) db.init_app(app) #注册蓝图 from .service import service...
20.333333
68
0.749415
59
427
5.152542
0.372881
0.088816
0.098684
0
0
0
0
0
0
0
0
0
0.17096
427
20
69
21.35
0.858757
0.018735
0
0
0
0
0.019185
0
0
0
0
0
0
1
0.083333
false
0
0.333333
0
0.5
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ffa325cb541052b2f533c014674f3ac1f02bd13b
709
py
Python
armulator/armv6/opcodes/thumb_instruction_set/thumb_instruction_set_encoding_32_bit/thumb_data_processing_plain_binary_immediate/movt_t1.py
matan1008/armulator
04d24dcec6ab42326018f5e09331e5b4738d6b52
[ "MIT" ]
16
2018-01-22T14:36:49.000Z
2021-12-17T15:39:52.000Z
armulator/armv6/opcodes/thumb_instruction_set/thumb_instruction_set_encoding_32_bit/thumb_data_processing_plain_binary_immediate/movt_t1.py
AhmedMounir/armulator
04d24dcec6ab42326018f5e09331e5b4738d6b52
[ "MIT" ]
3
2019-02-19T17:51:47.000Z
2022-03-31T20:45:21.000Z
armulator/armv6/opcodes/thumb_instruction_set/thumb_instruction_set_encoding_32_bit/thumb_data_processing_plain_binary_immediate/movt_t1.py
AhmedMounir/armulator
04d24dcec6ab42326018f5e09331e5b4738d6b52
[ "MIT" ]
4
2020-06-18T23:51:03.000Z
2022-02-09T17:43:13.000Z
from armulator.armv6.opcodes.abstract_opcodes.movt import Movt from armulator.armv6.opcodes.opcode import Opcode class MovtT1(Movt, Opcode): def __init__(self, instruction, d, imm16): Opcode.__init__(self, instruction) Movt.__init__(self, d, imm16) def is_pc_changing_opcode(self): ret...
28.36
66
0.605078
91
709
4.527473
0.505495
0.058252
0.087379
0.121359
0
0
0
0
0
0
0
0.082353
0.280677
709
24
67
29.541667
0.72549
0
0
0
0
0
0.026798
0
0
0
0
0
0
0
null
null
0
0.1
null
null
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ffaef17ab76d9e787b7adc1e9ccc0aaff9cb5db8
857
py
Python
wals_ml_engine/trainer/get_recommendations.py
BitskiCo/token-recommender
bfa7ac01fcb469234ea4de972177795ab873424d
[ "Apache-2.0" ]
14
2019-01-24T20:34:39.000Z
2022-03-24T04:10:24.000Z
wals_ml_engine/trainer/get_recommendations.py
BitskiCo/token-recommender
bfa7ac01fcb469234ea4de972177795ab873424d
[ "Apache-2.0" ]
4
2019-01-22T05:14:00.000Z
2019-02-26T06:06:21.000Z
wals_ml_engine/trainer/get_recommendations.py
BitskiCo/token-recommender
bfa7ac01fcb469234ea4de972177795ab873424d
[ "Apache-2.0" ]
7
2019-01-30T06:10:56.000Z
2022-03-31T23:45:26.000Z
import numpy as np from model import generate_recommendations user_address = '0x8c373ed467f3eabefd8633b52f4e1b2df00c9fe8' already_rated = ['0x006bea43baa3f7a6f765f14f10a1a1b08334ef45','0x5102791ca02fc3595398400bfe0e33d7b6c82267','0x68d57c9a1c35f63e2c83ee8e49a64e9d70528d25','0xc528c28fec0a90c083328bc45f587ee215760a0f']...
40.809524
197
0.809802
106
857
6.283019
0.377358
0.06006
0.066066
0.084084
0.183183
0.183183
0
0
0
0
0
0.185987
0.084014
857
21
198
40.809524
0.66242
0
0
0
1
0
0.355478
0.287879
0
0
0.244755
0
0
1
0
false
0
0.133333
0
0.133333
0.066667
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
ffb4749b2c3260ffe92cb26a0b4a9bb38793977a
4,150
py
Python
tweets/tweets.py
eltitopera/TFM
9e5cc0dc273ada73f096c9bb77e8d71d69b09e97
[ "Apache-2.0" ]
2
2017-07-04T05:37:44.000Z
2018-04-09T13:04:48.000Z
tweets/tweets.py
eltitopera/TFM
9e5cc0dc273ada73f096c9bb77e8d71d69b09e97
[ "Apache-2.0" ]
null
null
null
tweets/tweets.py
eltitopera/TFM
9e5cc0dc273ada73f096c9bb77e8d71d69b09e97
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 from tweepy.streaming import StreamListener from elasticsearch import Elasticsearch from kafka import KafkaProducer import tweepy from tweepy import OAuthHandler from tweepy import Stream from time import sleep import time import sys import json import datetime import redis impo...
34.583333
295
0.61253
524
4,150
4.633588
0.312977
0.049423
0.051895
0.03089
0.158979
0.147446
0.147446
0.147446
0.147446
0.147446
0
0.014596
0.257108
4,150
119
296
34.87395
0.772948
0.050361
0
0.104651
0
0
0.103229
0
0
0
0
0
0
0
null
null
0
0.151163
null
null
0.034884
0
0
0
null
0
0
0
0
0
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
ffb682ca8a778c5df62e30634846ecf8336edbd5
3,627
py
Python
plugin/edit.py
AmjadHD/LSP
ed5a48d2b87e1e9fa630dc881268b67a387a9f58
[ "MIT" ]
null
null
null
plugin/edit.py
AmjadHD/LSP
ed5a48d2b87e1e9fa630dc881268b67a387a9f58
[ "MIT" ]
null
null
null
plugin/edit.py
AmjadHD/LSP
ed5a48d2b87e1e9fa630dc881268b67a387a9f58
[ "MIT" ]
null
null
null
import sublime import sublime_plugin from .core.edit import sort_by_application_order, TextEdit from .core.logging import debug from .core.typing import List, Dict, Optional, Any, Generator from contextlib import contextmanager @contextmanager def temporary_setting(settings: sublime.Settings, key: str, val: Any) -> G...
43.698795
110
0.620899
434
3,627
5.034562
0.331797
0.040275
0.01373
0.020137
0.097941
0.084211
0.084211
0.084211
0.084211
0.084211
0
0.003486
0.288117
3,627
82
111
44.231707
0.842758
0.084643
0
0.119403
0
0
0.067592
0.021123
0
0
0
0.012195
0
1
0.074627
false
0
0.089552
0
0.208955
0
0
0
0
null
0
0
0
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
4409bcf1d78c04018dc692fa514a18235bb1996c
1,963
py
Python
scripts/getbalance.py
ukkeyHG/zny-nomp
101ca9b12d5b3b1e6cd1fdcc5ae02cb645af4915
[ "MIT" ]
15
2017-12-23T17:15:52.000Z
2022-01-08T08:08:12.000Z
scripts/getbalance.py
ukkeyHG/zny-nomp
101ca9b12d5b3b1e6cd1fdcc5ae02cb645af4915
[ "MIT" ]
2
2018-01-27T12:01:18.000Z
2018-06-10T14:49:03.000Z
scripts/getbalance.py
ukkeyHG/zny-nomp
101ca9b12d5b3b1e6cd1fdcc5ae02cb645af4915
[ "MIT" ]
28
2018-01-04T00:45:45.000Z
2020-06-14T22:25:41.000Z
#!/usr/bin/python # # Wallet Balance Graph Generator # - getbalance.py # - statsb.js # - kotobalance.service # # Assumption: # - Username/Group = koto/koto # - k-nomp was installed under ~/k-nomp # # Installation: # (1) copy scripts, install service # $ mkdir ~/bin # $ cp getbalance.py ~/bin # $ chmod 755 ~/bin/get...
24.234568
109
0.656139
273
1,963
4.714286
0.465201
0.019425
0.027972
0.024864
0.158508
0.158508
0.158508
0.111888
0.111888
0
0
0.010772
0.148752
1,963
80
110
24.5375
0.759425
0.521651
0
0.055556
0
0
0.157428
0
0
0
0
0
0
0
null
null
0.027778
0.166667
null
null
0.027778
0
0
0
null
0
0
0
0
0
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
440cb2dc4dc5bf0c4b03bfc0c5902d0817faaf9d
490
py
Python
setup.py
jobar8/segy2segy
fe59f59b99cfc39f5523171c8f209abc49e4995b
[ "BSD-3-Clause" ]
12
2016-05-16T10:17:02.000Z
2020-08-18T05:04:35.000Z
setup.py
jobar8/segy2segy
fe59f59b99cfc39f5523171c8f209abc49e4995b
[ "BSD-3-Clause" ]
1
2019-03-10T19:03:36.000Z
2019-03-10T20:52:20.000Z
setup.py
jobar8/segy2segy
fe59f59b99cfc39f5523171c8f209abc49e4995b
[ "BSD-3-Clause" ]
3
2016-05-13T19:22:50.000Z
2018-08-27T00:42:49.000Z
from setuptools import setup, find_packages setup( name="Segy2Segy", version="0.2", packages=find_packages(exclude=["tests*"]), scripts=['core/segy2segy.py'], install_requires=['gdal', 'obspy'], author="Joseph Barraud", author_email="joseph.barraud@gmail.com", description="A command li...
28.823529
96
0.693878
58
490
5.793103
0.827586
0.071429
0
0
0
0
0
0
0
0
0
0.009756
0.163265
490
16
97
30.625
0.809756
0
0
0
0
0
0.436735
0.04898
0
0
0
0
0
1
0
true
0
0.071429
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
441e9597fd36dff567144ba8a222b1a53e086895
4,053
py
Python
bin/registry.py
pashtari/factorizer
730f295b403a90c1c691f99b529d5d32b635d0c6
[ "Apache-2.0" ]
7
2022-03-05T00:43:29.000Z
2022-03-07T01:23:08.000Z
bin/registry.py
pashtari/factorizer
730f295b403a90c1c691f99b529d5d32b635d0c6
[ "Apache-2.0" ]
null
null
null
bin/registry.py
pashtari/factorizer
730f295b403a90c1c691f99b529d5d32b635d0c6
[ "Apache-2.0" ]
1
2022-03-21T05:28:23.000Z
2022-03-21T05:28:23.000Z
import yaml from torch import nn, optim from pytorch_lightning.callbacks import LearningRateMonitor, ModelCheckpoint from pytorch_lightning.loggers import TensorBoardLogger from monai.losses import DiceCELoss import factorizer as ft from factorizer import datasets from factorizer.utils.lightning import SemanticSegmen...
30.938931
79
0.780656
436
4,053
7.075688
0.231651
0.158833
0.220421
0.022366
0.017504
0
0
0
0
0
0
0.00111
0.110535
4,053
130
80
31.176923
0.854646
0.032815
0
0.114943
0
0
0.109347
0.022791
0
0
0
0
0
1
0.045977
false
0
0.137931
0
0.229885
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
441f6734036e9a84df1dba35d747212874362f10
1,259
py
Python
yaksh/migrations/0016_auto_20180605_0838.py
amitpeshwani/question_template
b906dad9140e81ef2d520b9f146c8fa3376b7700
[ "Python-2.0" ]
null
null
null
yaksh/migrations/0016_auto_20180605_0838.py
amitpeshwani/question_template
b906dad9140e81ef2d520b9f146c8fa3376b7700
[ "Python-2.0" ]
null
null
null
yaksh/migrations/0016_auto_20180605_0838.py
amitpeshwani/question_template
b906dad9140e81ef2d520b9f146c8fa3376b7700
[ "Python-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2018-06-05 08:38 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('yaksh', '0015_auto_20180601_1215'), ] operations = [ migrations.AlterField( ...
48.423077
440
0.641779
125
1,259
6.368
0.6
0.030151
0.062814
0.072864
0.08794
0.08794
0
0
0
0
0
0.035225
0.188245
1,259
25
441
50.36
0.74364
0.052423
0
0.333333
1
0
0.428571
0.019328
0
0
0
0
0
1
0
false
0
0.111111
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
4422cf73d6ecab5cdcbcdee497fb2ac4b77817f4
437
py
Python
register/migrations/0006_auto_20190314_0019.py
LucasHiago/pede_ja
62609a32d045b167a96be79cc93113d32dcfe917
[ "MIT" ]
null
null
null
register/migrations/0006_auto_20190314_0019.py
LucasHiago/pede_ja
62609a32d045b167a96be79cc93113d32dcfe917
[ "MIT" ]
null
null
null
register/migrations/0006_auto_20190314_0019.py
LucasHiago/pede_ja
62609a32d045b167a96be79cc93113d32dcfe917
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2019-03-14 00:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('register', '0005_profile_gender'), ] operations = [ migrations.AlterField( model_name='menuitem', name='observations...
23
96
0.624714
45
437
6
0.8
0
0
0
0
0
0
0
0
0
0
0.058642
0.258581
437
18
97
24.277778
0.774691
0.102975
0
0
1
0
0.184615
0.064103
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
442a1d53bb315f7fa493d47a7d005f8d3218635d
4,338
py
Python
tests/test_acls.py
objectrocket/python-client
ae739b4946b84cbe7e7f06ead91c6319b8e6b324
[ "MIT" ]
5
2015-07-15T19:20:33.000Z
2018-02-13T21:36:49.000Z
tests/test_acls.py
objectrocket/python-client
ae739b4946b84cbe7e7f06ead91c6319b8e6b324
[ "MIT" ]
28
2015-07-15T17:54:22.000Z
2020-12-23T13:14:25.000Z
tests/test_acls.py
objectrocket/python-client
ae739b4946b84cbe7e7f06ead91c6319b8e6b324
[ "MIT" ]
5
2016-04-14T19:01:20.000Z
2019-06-24T19:50:26.000Z
"""Tests for the objectrocket.acls module.""" import responses from objectrocket.acls import Acl #################################### # Tests for Acls public interface. # #################################### # Tests for all. # @responses.activate def test_all_makes_expected_api_request(client): instance_name = '...
28.92
92
0.67681
545
4,338
5.06789
0.144954
0.047791
0.057929
0.039102
0.776249
0.73244
0.690804
0.624185
0.566618
0.485156
0
0.014108
0.183034
4,338
149
93
29.114094
0.765237
0.069156
0
0.625
0
0
0.108555
0
0
0
0
0
0.163462
1
0.105769
false
0
0.019231
0
0.125
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
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
44327a6c5ca5a349f39ab14978651b6eebf485dd
825
py
Python
rrd/space.py
irl/womaas
407cb41776974564e3b7f33912f7cf719d190d11
[ "BSD-2-Clause" ]
null
null
null
rrd/space.py
irl/womaas
407cb41776974564e3b7f33912f7cf719d190d11
[ "BSD-2-Clause" ]
null
null
null
rrd/space.py
irl/womaas
407cb41776974564e3b7f33912f7cf719d190d11
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import sys, subprocess import rrdtool, tempfile, time #fd, path= tempfile.mkstemp('t.png') HOUR=3600 DAY=86400 YEAR=365 * DAY a=0 while a == 0 : var=subprocess.check_output(["df", "--output=used"]) dat=[int(s) for s in var.split() if s.isdigit()] space1=dat[0] space2=dat[2] print space1 ...
20.121951
56
0.609697
121
825
4.14876
0.628099
0.035857
0
0
0
0
0
0
0
0
0
0.063037
0.153939
825
40
57
20.625
0.65616
0.066667
0
0
0
0
0.352941
0.081046
0
0
0
0
0
0
null
null
0
0.068966
null
null
0.068966
0
0
0
null
0
0
0
0
0
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
4449032d4d84daf3efa98ce7751e69a70038fef2
762
py
Python
models/naive_baseline.py
MarlaWillemse/sales-forecast
d9d2d4d591eeba57375694acd1720c345f29c7ee
[ "MIT" ]
1
2020-11-13T06:07:27.000Z
2020-11-13T06:07:27.000Z
models/naive_baseline.py
MarlaWillemse/sales-forecast
d9d2d4d591eeba57375694acd1720c345f29c7ee
[ "MIT" ]
null
null
null
models/naive_baseline.py
MarlaWillemse/sales-forecast
d9d2d4d591eeba57375694acd1720c345f29c7ee
[ "MIT" ]
null
null
null
from sklearn.metrics import mean_squared_error import pandas as pd import numpy as np from preprocessing.data_utils import * import os from root import * train_x = pd.read_pickle(root+"/data/interim/train_x.pkl") train_y = pd.read_pickle(root+"/data/interim/train_y.pkl").fillna(value=0) test_x = pd.read_pickle(root+"/...
38.1
74
0.786089
135
762
4.162963
0.274074
0.128114
0.085409
0.113879
0.47331
0.41637
0.41637
0
0
0
0
0.008535
0.077428
762
20
75
38.1
0.790896
0
0
0
0
0
0.25426
0.155963
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
444921dc445b4a702435aa9114e006ca80b8a9a2
4,698
py
Python
lab4.py
Zaluznyak/lab4
16fffd7e076564e446d9d438d05020fd379d2b85
[ "BSD-3-Clause" ]
null
null
null
lab4.py
Zaluznyak/lab4
16fffd7e076564e446d9d438d05020fd379d2b85
[ "BSD-3-Clause" ]
null
null
null
lab4.py
Zaluznyak/lab4
16fffd7e076564e446d9d438d05020fd379d2b85
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd import datetime as dt df = pd.read_csv('be.csv') df2 = df name = df['Vac_name'] new_name = [] """Разбиение на группы по вакансиям""" for i in name: if (i.lower().find('рекрутер')!=-1 or i.lower().find('recruiter')!=-1): new_name.append('IT-рекрутер') elif ((i.lower().find('проект')!=...
49.452632
79
0.563431
676
4,698
3.835799
0.210059
0.136521
0.227536
0.114539
0.453914
0.218666
0.202468
0.202468
0.202468
0.169302
0
0.021571
0.200724
4,698
95
80
49.452632
0.668975
0
0
0.022222
0
0
0.225856
0
0
0
0
0
0
1
0
false
0
0.022222
0
0.022222
0.011111
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
444f9b1e5c300eb7349668db168e819fae0c02f3
5,271
py
Python
install.py
zoosk/zenv
5d7a548c7c9cca784f23fdcfd86533eaf1d68811
[ "Apache-2.0" ]
14
2016-03-10T23:00:16.000Z
2020-02-14T22:27:41.000Z
install.py
zoosk/zenv
5d7a548c7c9cca784f23fdcfd86533eaf1d68811
[ "Apache-2.0" ]
null
null
null
install.py
zoosk/zenv
5d7a548c7c9cca784f23fdcfd86533eaf1d68811
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python2.7 # Copyright 2015 Zoosk, 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 ap...
34.45098
130
0.706507
772
5,271
4.722798
0.353627
0.035656
0.024685
0.008777
0.021393
0.014811
0
0
0
0
0
0.00434
0.169418
5,271
152
131
34.677632
0.82846
0.220831
0
0.1
0
0.044444
0.490066
0.067942
0
0
0
0
0
0
null
null
0
0.088889
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
445281ffc89cb023ef51729fd5edc96a68009b49
1,928
py
Python
hooks/pre_gen_project.py
AlexF1994/at-python-template
5cf50ef83336b13766fe7a1a8dd61779487ebe00
[ "Apache-2.0" ]
36
2020-07-16T13:02:55.000Z
2022-03-15T08:02:32.000Z
hooks/pre_gen_project.py
chberreth/at-python-template
284b022cad690b612586a73ee091d783cda39bcf
[ "Apache-2.0" ]
42
2020-07-20T12:42:18.000Z
2022-01-08T12:50:15.000Z
hooks/pre_gen_project.py
chberreth/at-python-template
284b022cad690b612586a73ee091d783cda39bcf
[ "Apache-2.0" ]
10
2020-08-31T13:31:52.000Z
2022-03-20T19:03:27.000Z
""" This file contains the Pre-Generate Hooks for Cookiecutter. They are executed AFTER the user entered their project config, but BEFORE the project is actually generated. More details: https://cookiecutter.readthedocs.io/en/1.7.2/advanced/hooks.html In this script we execute environment checks and run input validati...
40.166667
95
0.720436
296
1,928
4.611486
0.429054
0.043956
0.008791
0.014652
0.184615
0.114286
0.083516
0.083516
0.083516
0
0
0.020561
0.167531
1,928
47
96
41.021277
0.829907
0.314315
0
0.148148
1
0.037037
0.464177
0.073171
0
0
0
0
0
1
0
false
0
0.185185
0
0.185185
0.148148
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
4452e524f8b23f44ce011f10429c5788f7527112
869
py
Python
ch06/atomic-cloud/ec2atomic.py
nhonaitran/docbook
3bd2f8b0dd3d3aa2fe1936381fd1e82e89a78695
[ "Apache-2.0" ]
244
2015-01-15T19:01:56.000Z
2022-03-11T09:16:14.000Z
ch06/atomic-cloud/ec2atomic.py
nhonaitran/docbook
3bd2f8b0dd3d3aa2fe1936381fd1e82e89a78695
[ "Apache-2.0" ]
6
2015-03-03T12:53:26.000Z
2019-07-20T17:06:59.000Z
ch06/atomic-cloud/ec2atomic.py
nhonaitran/docbook
3bd2f8b0dd3d3aa2fe1936381fd1e82e89a78695
[ "Apache-2.0" ]
162
2015-03-01T16:50:25.000Z
2021-12-13T16:39:16.000Z
#!/usr/bin/env python import os from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver ACCESS_ID = os.getenv('AWSAccessKeyId') SECRET_KEY = os.getenv('AWSSecretKey') IMAGE_ID = 'ami-05513b72' SIZE_ID = 't2.micro' cls = get_driver(Provider.EC2_EU_WEST) driver = cls(ACCESS_ID, S...
28.032258
100
0.745685
146
869
4.308219
0.554795
0.038156
0.060413
0
0
0
0
0
0
0
0
0.019763
0.126582
869
30
101
28.966667
0.808959
0.177215
0
0
0
0
0.099859
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.055556
0
0
0
null
0
0
0
0
0
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
4452f953c1c540ef72ef1a02b09ffb64b23f2ecc
2,397
py
Python
scripts/kcore.py
vsui/hypergraph-k-cut
1134ca254fb709bce62a4506c931362d84a06894
[ "MIT" ]
2
2021-01-17T07:31:36.000Z
2021-07-14T08:36:50.000Z
scripts/kcore.py
vsui/hypergraph-k-cut
1134ca254fb709bce62a4506c931362d84a06894
[ "MIT" ]
null
null
null
scripts/kcore.py
vsui/hypergraph-k-cut
1134ca254fb709bce62a4506c931362d84a06894
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import argparse import os import subprocess import tarfile import tempfile from pathlib import Path from typing import List parser = argparse.ArgumentParser( description='Run k-core decomposition on hypergraphs in a TAR file and report decompositions with interesting cuts.') parser.add_argument...
33.291667
121
0.663746
316
2,397
4.93038
0.436709
0.032092
0.032734
0.028883
0.053915
0.053915
0
0
0
0
0
0.001599
0.217355
2,397
71
122
33.760563
0.828891
0.066333
0
0
0
0
0.217099
0
0
0
0
0.014085
0
1
0.056604
false
0
0.132075
0.018868
0.245283
0.113208
0
0
0
null
0
0
0
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
44544f12c4bdbf001c14ea762d6d14b84954fe72
4,984
py
Python
test_api.py
maxwolfe/cryptopals
507954fdb270a66d8ad9b93875846dd6c33caafe
[ "MIT" ]
1
2020-05-24T20:45:25.000Z
2020-05-24T20:45:25.000Z
test_api.py
maxwolfe/cryptopals
507954fdb270a66d8ad9b93875846dd6c33caafe
[ "MIT" ]
1
2020-05-28T04:27:06.000Z
2020-05-28T04:27:06.000Z
test_api.py
maxwolfe/cryptopals
507954fdb270a66d8ad9b93875846dd6c33caafe
[ "MIT" ]
null
null
null
import controller from base64 import ( b64decode, ) from mock import ( Mock, patch, ) from yaml import safe_load INPUT_FILE_FORMAT = 'tests/io/set{set_num}/problem{prob_num}.in' OUTPUT_FILE_FORMAT = 'tests/io/set{set_num}/problem{prob_num}.out' def get_io_files( set_num, prob...
20.595041
69
0.538724
628
4,984
3.974522
0.14172
0.050481
0.060096
0.078125
0.760417
0.71875
0.664663
0.611779
0.542067
0.492788
0
0.044991
0.331059
4,984
241
70
20.680498
0.703659
0.028692
0
0.571429
0
0
0.058361
0.017591
0
0
0
0
0.097143
1
0.102857
false
0
0.022857
0.005714
0.131429
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
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
4465f3cc1141f014710e7c3949a90b9f5e0b379c
921
py
Python
TaskList_Project.py
cs-fullstack-fall-2018/python-task-list-homework-bachmanryan
cc772465405f7d950322ed94ad0fcd7e907cda21
[ "Apache-2.0" ]
null
null
null
TaskList_Project.py
cs-fullstack-fall-2018/python-task-list-homework-bachmanryan
cc772465405f7d950322ed94ad0fcd7e907cda21
[ "Apache-2.0" ]
null
null
null
TaskList_Project.py
cs-fullstack-fall-2018/python-task-list-homework-bachmanryan
cc772465405f7d950322ed94ad0fcd7e907cda21
[ "Apache-2.0" ]
null
null
null
def printCommands(): print("Congratulations! You're running Ryan's Task list program.") print("What would you like to do next?") print("1. List all tasks.") print("2. Add a task to the list.") print("3. Delete a task.") print("q. To quit the program") printCommands() aTaskListArray = ["bob", "...
24.891892
70
0.656895
116
921
5.215517
0.387931
0.066116
0.152066
0.158678
0.456198
0.426446
0.426446
0.175207
0
0
0
0.008242
0.209555
921
37
71
24.891892
0.822802
0
0
0.148148
0
0
0.349241
0
0
0
0
0
0
1
0.037037
false
0
0
0
0.037037
0.407407
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
4469572aaee158e23c1a908134e2af8c20f00dfe
1,128
py
Python
backend/src/baserow/contrib/database/formula/parser/exceptions.py
lucastm/baserow
c5fd45b75c753cc5dfd3227902a79535fbe5ad0f
[ "MIT" ]
839
2020-07-20T13:29:34.000Z
2022-03-31T21:09:16.000Z
backend/src/baserow/contrib/database/formula/parser/exceptions.py
lucastm/baserow
c5fd45b75c753cc5dfd3227902a79535fbe5ad0f
[ "MIT" ]
28
2020-08-07T09:23:58.000Z
2022-03-01T22:32:40.000Z
backend/src/baserow/contrib/database/formula/parser/exceptions.py
lucastm/baserow
c5fd45b75c753cc5dfd3227902a79535fbe5ad0f
[ "MIT" ]
79
2020-08-04T01:48:01.000Z
2022-03-27T13:30:54.000Z
from baserow.contrib.database.formula.exceptions import BaserowFormulaException class InvalidNumberOfArguments(BaserowFormulaException): def __init__(self, function_def, num_args): if num_args == 1: error_prefix = "1 argument was" else: error_prefix = f"{num_args} arguments...
31.333333
79
0.695035
120
1,128
6.15
0.475
0.140921
0.162602
0.184282
0
0
0
0
0
0
0
0.002286
0.224291
1,128
35
80
32.228571
0.841143
0
0
0.08
0
0
0.269504
0.02039
0
0
0
0
0
1
0.16
false
0.04
0.04
0
0.4
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
446b6d548222d04e37dc4f8291071bf5f111383c
683
py
Python
Manipulation/poppy-muffin-master/pybullet/tasks/check/position_control.py
garrettkatz/poppy-simulations
cd4d132ab6f8b4e69f2edd89662980d252a27966
[ "MIT" ]
null
null
null
Manipulation/poppy-muffin-master/pybullet/tasks/check/position_control.py
garrettkatz/poppy-simulations
cd4d132ab6f8b4e69f2edd89662980d252a27966
[ "MIT" ]
null
null
null
Manipulation/poppy-muffin-master/pybullet/tasks/check/position_control.py
garrettkatz/poppy-simulations
cd4d132ab6f8b4e69f2edd89662980d252a27966
[ "MIT" ]
1
2022-02-09T17:35:53.000Z
2022-02-09T17:35:53.000Z
from math import sin, cos import itertools as it import sys sys.path.append('../../envs') import pybullet as pb from ergo_jr import PoppyErgoJrEnv env = PoppyErgoJrEnv(pb.POSITION_CONTROL) # from pickup.py pb.resetDebugVisualizerCamera( 1.2000000476837158, 56.799964904785156, -22.20000648498535, (-0.60516518...
23.551724
88
0.740849
95
683
5.242105
0.578947
0.056225
0.052209
0.068273
0.136546
0.136546
0.136546
0
0
0
0
0.269551
0.120059
683
28
89
24.392857
0.559068
0.081991
0
0.210526
0
0
0.019262
0
0
0
0
0
0
1
0
false
0
0.263158
0
0.263158
0.105263
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
447253fe41997aaed3fcf9940729794cce73ef4e
510
py
Python
Day 2/part1.py
Butterstroke/Advent-of-Code-2019
d40bd48cad5399453709d521010ef611e6053525
[ "MIT" ]
null
null
null
Day 2/part1.py
Butterstroke/Advent-of-Code-2019
d40bd48cad5399453709d521010ef611e6053525
[ "MIT" ]
null
null
null
Day 2/part1.py
Butterstroke/Advent-of-Code-2019
d40bd48cad5399453709d521010ef611e6053525
[ "MIT" ]
null
null
null
data = open("input.txt", "r") data = data.read().split(",") check = True index = 0 while check is True: section = data[index] firstNum = int(data[int(data[index + 1])]) secondNum = int(data[int(data[index + 2])]) if section == "1": total = firstNum + secondNum if section == "2": ...
20.4
47
0.556863
69
510
4.115942
0.42029
0.158451
0.116197
0.169014
0.133803
0
0
0
0
0
0
0.029412
0.266667
510
25
48
20.4
0.729947
0
0
0
0
0
0.064579
0
0
0
0
0
0
1
0
false
0
0
0
0
0.058824
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
44821cdcd5b1d6c06fc67effdb942989ca1a4577
14,907
py
Python
tests/test_snyk.py
RiverSafeUK/eze-snyk-plugin
adc6fa1a1cf78e4b7306616e015b6b7af1bb6c53
[ "MIT" ]
null
null
null
tests/test_snyk.py
RiverSafeUK/eze-snyk-plugin
adc6fa1a1cf78e4b7306616e015b6b7af1bb6c53
[ "MIT" ]
null
null
null
tests/test_snyk.py
RiverSafeUK/eze-snyk-plugin
adc6fa1a1cf78e4b7306616e015b6b7af1bb6c53
[ "MIT" ]
1
2021-11-30T10:34:05.000Z
2021-11-30T10:34:05.000Z
# pylint: disable=missing-module-docstring,missing-class-docstring from unittest import mock import shlex import json from src.snyk import SnykTool, SnykContainerTool, SnykIacTool from eze.core.tool import ToolMeta from eze.utils.io import create_tempfile_path, load_json from eze.utils.cli import build_cli_command c...
29.993964
128
0.638894
1,657
14,907
5.548582
0.164756
0.022732
0.020666
0.023602
0.698173
0.674462
0.65434
0.650859
0.622689
0.605939
0
0.005968
0.246931
14,907
496
129
30.054435
0.813023
0.046689
0
0.596154
0
0.019231
0.516734
0.108753
0
0
0
0
0.052198
1
0.049451
false
0
0.019231
0
0.098901
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
448536d9f86332cd2b6ececd00e661b755e82d05
3,423
py
Python
ldapom/cdef.py
leonhandreke/ldapom
c54e0173123be96fa5179ef7b4aa7ad943185c3c
[ "MIT" ]
2
2015-03-27T13:45:51.000Z
2017-06-25T10:27:18.000Z
ldapom/cdef.py
leonhandreke/ldapom
c54e0173123be96fa5179ef7b4aa7ad943185c3c
[ "MIT" ]
null
null
null
ldapom/cdef.py
leonhandreke/ldapom
c54e0173123be96fa5179ef7b4aa7ad943185c3c
[ "MIT" ]
null
null
null
from cffi import FFI ffi = FFI() ffi.cdef(""" // Type definitions typedef ... LDAP; typedef ... LDAPMessage; typedef ... LDAPControl; typedef ... BerElement; typedef ... berval; typedef struct ldapmod { int mod_op; char *mod_type; union { char **modv_strvals; // struct berval **modv_bvals;...
25.355556
80
0.667251
448
3,423
4.814732
0.283482
0.10663
0.060269
0.051924
0.284191
0.176171
0
0
0
0
0
0.005556
0.211218
3,423
134
81
25.544776
0.793333
0
0
0.119266
0
0
0.967771
0.083133
0
0
0
0
0
1
0
false
0.027523
0.009174
0
0.009174
0
0
0
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
448a45e9d009d78f99081c53fcee0d00f927c762
978
py
Python
mumpy/__init__.py
chrisrink10/mumpy
3cda42eeafcb1bfc419a665bbdb86afbacf8fde9
[ "BSD-3-Clause" ]
1
2021-07-07T20:32:58.000Z
2021-07-07T20:32:58.000Z
mumpy/__init__.py
whitten/mumpy
3cda42eeafcb1bfc419a665bbdb86afbacf8fde9
[ "BSD-3-Clause" ]
null
null
null
mumpy/__init__.py
whitten/mumpy
3cda42eeafcb1bfc419a665bbdb86afbacf8fde9
[ "BSD-3-Clause" ]
8
2021-07-13T23:49:58.000Z
2022-01-18T22:56:52.000Z
"""MUMPy package Licensed under a BSD license. See LICENSE for more information. Author: Christopher Rink""" from mumpy.compiler import (MUMPSFile, MUMPSCompileError) from mumpy.env import MUMPSEnvironment from mumpy.interpreter import main from mumpy.lang import (MUMPSArgumentList, ...
36.222222
63
0.506135
64
978
7.6875
0.703125
0.109756
0
0
0
0
0
0
0
0
0
0
0.456033
978
27
64
36.222222
0.924812
0.106339
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.272727
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
44920bd34ae65d168d7ce2961d6b8572dfeb7f85
1,476
py
Python
cms/utils/compat/dj.py
intgr/django-cms
92edf033ccc0938e41f3752935516572c3623695
[ "BSD-3-Clause" ]
1
2015-06-11T19:25:26.000Z
2015-06-11T19:25:26.000Z
cms/utils/compat/dj.py
damianmoore/django-cms
2d3e10a01e792ec7da5c1418811c1be5ac84e5e2
[ "BSD-3-Clause" ]
5
2021-03-19T15:39:27.000Z
2021-09-08T02:47:21.000Z
cms/utils/compat/dj.py
Acidburn0zzz/django-cms
5a105a1c75eeb4c8a4c1c34301d93855e6724407
[ "BSD-3-Clause" ]
null
null
null
try: from django.utils.encoding import force_unicode def python_2_unicode_compatible(klass): """ A decorator that defines __unicode__ and __str__ methods under Python 2. Under Python 3 it does nothing. To support Python 2 and 3 with a single code base, define a __str__ method ...
36
82
0.638889
185
1,476
4.756757
0.464865
0.054545
0.044318
0.040909
0.143182
0.077273
0.077273
0
0
0
0
0.006711
0.29336
1,476
40
83
36.9
0.837009
0.29607
0
0.24
0
0
0.013684
0
0
0
0
0
0
1
0.08
false
0
0.32
0
0.48
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
92245e8b9c0edf2d6649a3a991917b859c36f658
850
py
Python
src/byro/common/migrations/0012_auto_20180929_1317.py
uescher/byro
e43d646dc8e833591c82b2ea1711c70b9ce7e0b2
[ "Apache-2.0" ]
null
null
null
src/byro/common/migrations/0012_auto_20180929_1317.py
uescher/byro
e43d646dc8e833591c82b2ea1711c70b9ce7e0b2
[ "Apache-2.0" ]
null
null
null
src/byro/common/migrations/0012_auto_20180929_1317.py
uescher/byro
e43d646dc8e833591c82b2ea1711c70b9ce7e0b2
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.1 on 2018-09-29 13:17 from django.db import migrations def init_templates(apps, schema_editor): from byro.mails import default MailTemplate = apps.get_model('mails', 'MailTemplate') Configuration = apps.get_model('common', 'Configuration') config, _ = Configuration.objects.g...
29.310345
71
0.709412
92
850
6.336957
0.521739
0.137221
0.123499
0.102916
0.13036
0
0
0
0
0
0
0.0279
0.198824
850
28
72
30.357143
0.828194
0.052941
0
0
1
0
0.108344
0.05604
0
0
0
0
0
1
0.05
false
0
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
92267807b5c99a2ff4f28b90c47ab5547e0df1ca
1,299
py
Python
ui.py
AcademicDog/YYS_reminder
536a5b74f7573d8e24c870c0be5f34bc661a3205
[ "MIT" ]
2
2020-01-06T09:23:10.000Z
2020-02-19T09:20:12.000Z
ui.py
AcademicDog/YYS_reminder
536a5b74f7573d8e24c870c0be5f34bc661a3205
[ "MIT" ]
null
null
null
ui.py
AcademicDog/YYS_reminder
536a5b74f7573d8e24c870c0be5f34bc661a3205
[ "MIT" ]
1
2021-05-05T14:06:22.000Z
2021-05-05T14:06:22.000Z
from big_boss import * from PyQt5.QtGui import QTextCursor from PyQt5.QtWidgets import QApplication, QMainWindow from Ui_big_boss import * import logging class GuiLogger(logging.Handler): def emit(self, record): self.edit.append(self.format(record)) # implementation of append_line omitted self.edi...
26.510204
97
0.616628
142
1,299
5.429577
0.549296
0.031128
0.033722
0
0
0
0
0
0
0
0
0.00641
0.279446
1,299
49
98
26.510204
0.817308
0.04157
0
0
0
0
0.024155
0
0
0
0
0
0
1
0.108108
false
0.054054
0.135135
0
0.297297
0
0
0
0
null
0
0
0
0
0
0
0
0
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
922ce7f40abf486990b8fcdc1f38fef38f990741
9,738
py
Python
survol/lib_export_ontology.py
rchateauneu/survol
ba66d3ec453b2d9dd3a8dabc6d53f71aa9ba8c78
[ "BSD-3-Clause" ]
9
2017-10-05T23:36:23.000Z
2021-08-09T15:40:03.000Z
survol/lib_export_ontology.py
rchateauneu/survol
ba66d3ec453b2d9dd3a8dabc6d53f71aa9ba8c78
[ "BSD-3-Clause" ]
21
2018-01-02T09:33:03.000Z
2018-08-27T11:09:52.000Z
survol/lib_export_ontology.py
rchateauneu/survol
ba66d3ec453b2d9dd3a8dabc6d53f71aa9ba8c78
[ "BSD-3-Clause" ]
4
2018-06-23T09:05:45.000Z
2021-01-22T15:36:50.000Z
import os import sys import logging import rdflib import lib_util import lib_kbase import lib_naming import lib_exports import lib_ontology_tools import lib_properties from lib_properties import pc ################################################################################ def flush_or_save_rdf_graph(grph, outp...
45.293023
119
0.663278
1,303
9,738
4.732924
0.230238
0.021566
0.019458
0.010702
0.256365
0.231879
0.195557
0.145127
0.145127
0.145127
0
0.002293
0.238755
9,738
214
120
45.504673
0.829624
0.352228
0
0.17094
0
0
0.070516
0
0
0
0
0.014019
0.017094
1
0.051282
false
0
0.094017
0
0.179487
0
0
0
0
null
0
0
0
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
923096ef11724ab7ef136b8f9b49b2b4096967fb
824
py
Python
databus/internal/server/http_srv.py
FloatingCat/TaxCreeper
5047ea7240a0476159a008ad34863e620a5569e9
[ "MIT" ]
2
2021-07-15T16:53:24.000Z
2021-07-16T01:17:56.000Z
databus/internal/server/http_srv.py
FloatingCat/TaxCreeper
5047ea7240a0476159a008ad34863e620a5569e9
[ "MIT" ]
null
null
null
databus/internal/server/http_srv.py
FloatingCat/TaxCreeper
5047ea7240a0476159a008ad34863e620a5569e9
[ "MIT" ]
null
null
null
import http from typing import Optional, List from fastapi import FastAPI, Path, Query from pydantic import BaseModel from databus.internal.service.poster.mission_create import create_mission from databus.internal.service.mission_seq.mission_checker import mission_check app = FastAPI() class CreateReq(BaseModel): ...
26.580645
100
0.75
106
824
5.688679
0.358491
0.069652
0.063018
0.086235
0.169154
0.092869
0
0
0
0
0
0
0.144417
824
30
101
27.466667
0.855319
0.052184
0
0.272727
0
0
0.052699
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.681818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
92394155aac61fa731682e8a0027a75b0a1a9e9d
1,543
py
Python
src/aloam_pose.py
RobertMilijas/uav_ros_general
d9ef09e2da4802891296a9410e5031675c09c066
[ "BSD-3-Clause" ]
null
null
null
src/aloam_pose.py
RobertMilijas/uav_ros_general
d9ef09e2da4802891296a9410e5031675c09c066
[ "BSD-3-Clause" ]
null
null
null
src/aloam_pose.py
RobertMilijas/uav_ros_general
d9ef09e2da4802891296a9410e5031675c09c066
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import geometry_msgs.msg import math import nav_msgs import numpy as np import rospy import tf2_ros if __name__ == '__main__': rospy.init_node('aloam_pose') tfBuffer = tf2_ros.Buffer() listener = tf2_ros.TransformListener(tfBuffer) publisher = rospy.Publisher("aloam/pose", g...
31.489796
110
0.690214
202
1,543
5.09901
0.405941
0.047573
0.069903
0.052427
0
0
0
0
0
0
0
0.010691
0.211925
1,543
48
111
32.145833
0.836349
0.101102
0
0.0625
0
0
0.04483
0
0
0
0
0.020833
0
1
0
false
0
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
1
0
0
0
0
0
0
0
0
0
0
1
923dcda0819be4916fad2880a574304daa67a2ab
360
py
Python
src/config.py
harbenml/Kaggle-Ttitanic
fcce8eca3484a5a46e16af439cc070b3720e6a8b
[ "MIT" ]
1
2020-07-14T10:02:59.000Z
2020-07-14T10:02:59.000Z
src/config.py
harbenml/Kaggle-Ttitanic
fcce8eca3484a5a46e16af439cc070b3720e6a8b
[ "MIT" ]
null
null
null
src/config.py
harbenml/Kaggle-Ttitanic
fcce8eca3484a5a46e16af439cc070b3720e6a8b
[ "MIT" ]
null
null
null
TRAIN_DATA_PATH = "data/processed/train_folds.csv" TEST_DATA_PATH = "data/processed/test.csv" MODEL_PATH = "models/" NUM_FOLDS = 5 SEED = 23 VERBOSE = 0 FEATURE_COLS = [ "Pclass", "Sex", "Age", "SibSp", "Parch", "Ticket", "Fare", "Cabin", "Embarked", "Title", "Surname", "...
16.363636
50
0.594444
43
360
4.744186
0.767442
0.078431
0.117647
0.205882
0
0
0
0
0
0
0
0.014545
0.236111
360
21
51
17.142857
0.727273
0
0
0
0
0
0.377778
0.147222
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
924382fdecc3dba83f6de63cac9ca6f308366a86
253
py
Python
video/2_hidden/784_512_128_10/otsu_test.py
jakubwieczorek/numbers_detection
d090795c4f4fa7ca85d9b3547ebdd225b7e99ddf
[ "MIT" ]
null
null
null
video/2_hidden/784_512_128_10/otsu_test.py
jakubwieczorek/numbers_detection
d090795c4f4fa7ca85d9b3547ebdd225b7e99ddf
[ "MIT" ]
null
null
null
video/2_hidden/784_512_128_10/otsu_test.py
jakubwieczorek/numbers_detection
d090795c4f4fa7ca85d9b3547ebdd225b7e99ddf
[ "MIT" ]
null
null
null
import otsu import cv2 import numpy as np if __name__ == "__main__": image = cv2.imread('7.jpg', cv2.IMREAD_GRAYSCALE) arr = np.asarray(image) arr2 = cv2.resize(arr, (28, 28)) np.savetxt('./7_2.txt', arr2, fmt='%f') otsu.otsu(arr2)
23
53
0.636364
40
253
3.775
0.6
0.119205
0
0
0
0
0
0
0
0
0
0.068627
0.193676
253
10
54
25.3
0.671569
0
0
0
0
0
0.094862
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
924936be46d24c9cfa9e9790b12c6011d3109e71
383
py
Python
webapi/webapi/main.py
nyjin/dockerdemo
5e8e7b361344e56802da26d3eb01f5e5120917e5
[ "Apache-2.0" ]
1
2020-08-12T05:20:15.000Z
2020-08-12T05:20:15.000Z
webapi/webapi/main.py
nyjin/dockerdemo
5e8e7b361344e56802da26d3eb01f5e5120917e5
[ "Apache-2.0" ]
null
null
null
webapi/webapi/main.py
nyjin/dockerdemo
5e8e7b361344e56802da26d3eb01f5e5120917e5
[ "Apache-2.0" ]
null
null
null
from flask import Flask, Blueprint from flask_restful import Resource, Api def create_app(): app = Flask(__name__) api_bp = Blueprint('api', __name__, url_prefix='/api') api = Api(api_bp) api.add_resource(Helloworld, '/') app.register_blueprint(api_bp) return app class Helloworld(Re...
20.157895
58
0.668407
50
383
4.8
0.48
0.0625
0.075
0
0
0
0
0
0
0
0
0.010101
0.224543
383
18
59
21.277778
0.79798
0
0
0
0
0
0.049738
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0.083333
0.583333
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
925428e44619ab884109292390aee01b05bb66a2
22,832
py
Python
othello.py
YutaMiyake/Othello
f5791ede06cc3693231becf63cb26ccea179212b
[ "MIT" ]
null
null
null
othello.py
YutaMiyake/Othello
f5791ede06cc3693231becf63cb26ccea179212b
[ "MIT" ]
null
null
null
othello.py
YutaMiyake/Othello
f5791ede06cc3693231becf63cb26ccea179212b
[ "MIT" ]
null
null
null
# coding: utf-8 # In[15]: import numpy as np import Tkinter import time import sys # In[16]: class Board: """ rows: board size board: a 8x8 matrix of colors color: a value in [0,1,2]: none, black, white, respectively. move: a array [row,col] directions: a set of all nine unit vectors o...
33.186047
137
0.505781
2,631
22,832
4.350057
0.141011
0.040891
0.015378
0.02097
0.361468
0.332197
0.278986
0.268851
0.241415
0.222717
0
0.027216
0.380431
22,832
687
138
33.234352
0.781846
0.041214
0
0.35
0
0
0.022086
0
0
0
0
0
0
0
null
null
0.002174
0.01087
null
null
0.030435
0
0
0
null
0
0
0
0
0
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
92546520f7c9e5b04b26600afc01d2b0ed8f19ee
1,009
py
Python
python-basic/loop-statement.py
zhangzhongyang0521/python-basic
bd9fba6c4d666eab40924aecf896c2abc845ffb2
[ "Apache-2.0" ]
1
2020-05-31T02:28:11.000Z
2020-05-31T02:28:11.000Z
python-basic/loop-statement.py
zhangzhongyang0521/python-basic
bd9fba6c4d666eab40924aecf896c2abc845ffb2
[ "Apache-2.0" ]
null
null
null
python-basic/loop-statement.py
zhangzhongyang0521/python-basic
bd9fba6c4d666eab40924aecf896c2abc845ffb2
[ "Apache-2.0" ]
null
null
null
# while循环,语法如下 # while 条件表达式: # 循环体 print("求数,三三数之剩二,五五数之剩三,七七数之剩二") found = False number = 0 while not found: number += 1 if number % 3 == 2 and number % 5 == 3 and number % 7 == 2: print("数字为", str(number)) found = True # for循环,语法如下 # for 迭代变量 in 对象: # 循环体 print("计算1+2+3+···+100=?") r...
24.02381
78
0.607532
151
1,009
4.07947
0.443709
0.056818
0.058442
0.032468
0
0
0
0
0
0
0
0.049492
0.219029
1,009
41
79
24.609756
0.728426
0.257681
0
0
0
0
0.11413
0.066576
0
0
0
0
0
1
0
false
0
0
0
0
0.407407
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
926ea53a5d52f33bc5f3dba33f2a9e406bccf6d7
385
py
Python
backend/autobets/apimb/migrations/0007_balance_round_bal.py
slarkjm0803/autobets
f92a5d999acaf5d7c83ca2768a260c2282eabbee
[ "MIT" ]
1
2020-03-06T14:29:12.000Z
2020-03-06T14:29:12.000Z
backend/autobets/apimb/migrations/0007_balance_round_bal.py
slarkjm0803/autobets
f92a5d999acaf5d7c83ca2768a260c2282eabbee
[ "MIT" ]
null
null
null
backend/autobets/apimb/migrations/0007_balance_round_bal.py
slarkjm0803/autobets
f92a5d999acaf5d7c83ca2768a260c2282eabbee
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2019-11-15 09:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('apimb', '0006_auto_20191115_0536'), ] operations = [ migrations.AddField( model_name='balance', name='round_bal', ...
20.263158
49
0.597403
42
385
5.357143
0.857143
0
0
0
0
0
0
0
0
0
0
0.113139
0.288312
385
18
50
21.388889
0.708029
0.116883
0
0
1
0
0.130178
0.068047
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9272e73e106012dce8646818c9142721a53d2a78
721
py
Python
constant/const.py
lkl22/CommonTools
090aa4dba2dc151923a2de259acdcade8f73489d
[ "Apache-2.0" ]
1
2020-12-29T08:36:33.000Z
2020-12-29T08:36:33.000Z
constant/const.py
lkl22/CommonTools
090aa4dba2dc151923a2de259acdcade8f73489d
[ "Apache-2.0" ]
3
2021-07-23T12:41:13.000Z
2022-01-03T11:47:28.000Z
constant/const.py
lkl22/CommonTools
090aa4dba2dc151923a2de259acdcade8f73489d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # python 3.x # Filename: constant.py # 定义一个常量类实现常量的功能 # # 该类定义了一个方法__setattr()__,和一个异常ConstError, ConstError类继承 # 自类TypeError. 通过调用类自带的字典__dict__, 判断定义的常量是否包含在字典 # 中。如果字典中包含此变量,将抛出异常,否则,给新创建的常量赋值。 # 最后两行代码的作用是把const类注册到sys.modules这个全局字典中。 import sys class _const: class ConstError(TypeError...
24.862069
70
0.678225
81
721
5.617284
0.580247
0.052747
0.035165
0.052747
0.171429
0.171429
0.171429
0.171429
0.171429
0.171429
0
0.003503
0.208044
721
28
71
25.75
0.793345
0.338419
0
0.153846
0
0
0.109208
0
0
0
0
0
0
1
0.153846
false
0.076923
0.076923
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
928328bdc90dea3ebf3e19a508588d6164767a79
2,460
py
Python
bert/remote/factory.py
jbcurtin/bert
956e1647b590ac13b679579231b085895778d807
[ "MIT" ]
2
2019-08-28T21:39:50.000Z
2019-12-17T10:53:28.000Z
bert/remote/factory.py
jbcurtin/bert
956e1647b590ac13b679579231b085895778d807
[ "MIT" ]
19
2019-09-04T21:19:12.000Z
2021-03-28T22:10:32.000Z
bert/remote/factory.py
jbcurtin/bert
956e1647b590ac13b679579231b085895778d807
[ "MIT" ]
1
2019-08-28T21:39:53.000Z
2019-08-28T21:39:53.000Z
#!/usr/env/bin python import argparse import functools import importlib import logging import multiprocessing import os import signal import time import typing import types from bert import utils as bert_utils from datetime import datetime logger = logging.getLogger(__name__) STOP_DAEMON: bool = False LOG_ERROR_ON...
29.285714
129
0.728049
331
2,460
5.199396
0.335347
0.020337
0.039512
0.026729
0.213829
0.182452
0.182452
0.134805
0.134805
0.069727
0
0.00286
0.147154
2,460
83
130
29.638554
0.817445
0
0
0.125
0
0
0.169401
0.0484
0
0
0
0
0
0
null
null
0
0.25
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
92832d0d2e96bc81209c95ef50d8e10314d83962
5,157
py
Python
tests/test_threedi_api.py
nens/threedi-api-client
43b0eb1bd47310b1783f87f6ad8bfbfe0fb4d90a
[ "BSD-3-Clause" ]
null
null
null
tests/test_threedi_api.py
nens/threedi-api-client
43b0eb1bd47310b1783f87f6ad8bfbfe0fb4d90a
[ "BSD-3-Clause" ]
16
2021-05-31T09:52:04.000Z
2022-03-14T16:07:19.000Z
tests/test_threedi_api.py
nens/threedi-api-client
43b0eb1bd47310b1783f87f6ad8bfbfe0fb4d90a
[ "BSD-3-Clause" ]
null
null
null
from unittest import mock import pytest from mock import AsyncMock from threedi_api_client import ThreediApi from threedi_api_client.aio.openapi.api_client import ApiClient as AsyncApiClient from threedi_api_client.openapi import ApiClient from threedi_api_client.openapi.api import V3Api from threedi_api_client.vers...
29.135593
112
0.728912
672
5,157
5.318452
0.15625
0.081142
0.080022
0.02798
0.558198
0.404029
0.344432
0.303022
0.228036
0.178791
0
0.009689
0.159395
5,157
176
113
29.301136
0.814764
0
0
0.259843
0
0
0.160365
0.046927
0
0
0
0
0.188976
1
0.15748
false
0.070866
0.062992
0.023622
0.244094
0
0
0
0
null
0
0
0
0
0
0
0
0
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
928fe457991dc1a0afbd1f58e54478a3a7e54280
402
py
Python
examples/extended_bus_simpletest.py
adafruit/Adafruit_Python_Extended_Bus
5c21cb514a6b6f95b6ec67ef21e3d50ec5d8bcb1
[ "MIT" ]
21
2020-05-02T20:05:59.000Z
2021-11-18T21:21:11.000Z
examples/extended_bus_simpletest.py
adafruit/Adafruit_Python_Extended_Bus
5c21cb514a6b6f95b6ec67ef21e3d50ec5d8bcb1
[ "MIT" ]
7
2020-04-30T18:57:27.000Z
2022-03-22T02:53:49.000Z
examples/extended_bus_simpletest.py
adafruit/Adafruit_Python_Extended_Bus
5c21cb514a6b6f95b6ec67ef21e3d50ec5d8bcb1
[ "MIT" ]
6
2020-04-30T18:32:23.000Z
2022-01-20T17:34:50.000Z
""" This exmaple demonstrates how to instantiate the Adafruit BME280 Sensor using this library and just the I2C bus number. """ import adafruit_bme280 from adafruit_extended_bus import ExtendedI2C as I2C # Create library object using our Extended Bus I2C port i2c = I2C(1) # Device is /dev/i2c-1 bme280 = adafruit_bme...
28.714286
55
0.78607
61
402
5.081967
0.590164
0.180645
0.129032
0
0
0
0
0
0
0
0
0.089855
0.141791
402
13
56
30.923077
0.808696
0.485075
0
0
0
0
0.111111
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9290b2a830ed94f46711d48e6d86b6127f3014b7
13,610
py
Python
supplemental_content/migrations/0008_auto_20211005_1906.py
PhilR8/cmcs-eregulations
82d63239e592a73c1d7d6967aa2b6ff9ccbdb26d
[ "CC0-1.0" ]
6
2020-10-05T20:19:25.000Z
2022-03-17T18:34:59.000Z
supplemental_content/migrations/0008_auto_20211005_1906.py
PhilR8/cmcs-eregulations
82d63239e592a73c1d7d6967aa2b6ff9ccbdb26d
[ "CC0-1.0" ]
95
2020-10-22T15:00:46.000Z
2022-03-31T19:10:20.000Z
supplemental_content/migrations/0008_auto_20211005_1906.py
PhilR8/cmcs-eregulations
82d63239e592a73c1d7d6967aa2b6ff9ccbdb26d
[ "CC0-1.0" ]
7
2020-10-08T14:10:49.000Z
2022-01-24T18:36:13.000Z
# Generated by Django 3.2.7 on 2021-10-05 19:06 import django.core.validators from django.db import migrations, models from django.db.migrations.operations.fields import RemoveField import django.db.models.deletion from supplemental_content.models import AbstractModel def make_category(id, title, description, order)...
44.622951
422
0.60845
1,267
13,610
6.359116
0.15075
0.087253
0.020851
0.032767
0.467047
0.393571
0.384759
0.309545
0.276654
0.226263
0
0.009373
0.270977
13,610
304
423
44.769737
0.802661
0.02263
0
0.397112
1
0.01083
0.225231
0.075905
0
0
0
0
0
1
0.01444
false
0.01083
0.018051
0.00361
0.046931
0
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
9292e29521709aaf804cd08711b87a988564705e
780
py
Python
sector_stock_lists/communication_services_list.py
scottslusher/Portfolio-Builder
adcac6f29924259da083e9b71045feee8a7cf0a9
[ "Unlicense" ]
2
2021-09-23T16:37:31.000Z
2021-09-25T03:37:35.000Z
sector_stock_lists/communication_services_list.py
scottslusher/Portfolio-Builder
adcac6f29924259da083e9b71045feee8a7cf0a9
[ "Unlicense" ]
null
null
null
sector_stock_lists/communication_services_list.py
scottslusher/Portfolio-Builder
adcac6f29924259da083e9b71045feee8a7cf0a9
[ "Unlicense" ]
1
2021-08-17T20:14:10.000Z
2021-08-17T20:14:10.000Z
"""Communication Services List This file calculates the top 5 stocks list by marketcap """ # Import modules import csv from pathlib import Path import pandas as pd def top_5_communicatoin_services_stocks_by_marketcap(sp500_w_marketcap, communication_services, communication_services_top_5): sp500_w_marketcap = pd...
45.882353
137
0.824359
105
780
5.742857
0.419048
0.348259
0.124378
0.124378
0.15257
0.15257
0
0
0
0
0
0.031294
0.098718
780
17
138
45.882353
0.826458
0.128205
0
0
0
0
0.139673
0.060921
0
0
0
0
0
1
0.1
false
0
0.3
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