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
1f5755adc834fa964d8b57abac91fbc6499d9935
4,608
py
Python
menucard/migrations/0001_initial.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
1
2021-01-23T21:42:10.000Z
2021-01-23T21:42:10.000Z
menucard/migrations/0001_initial.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
null
null
null
menucard/migrations/0001_initial.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-12-27 10:36 from django.db import migrations, models import django.db.models.deletion import phonenumber_field.modelfields class Migration(migrations.Migration): initial = True dependencies = [ ('crm', '0001_initial'), ] operations = [ migrations...
48
128
0.567491
449
4,608
5.701559
0.195991
0.049219
0.084375
0.1125
0.771484
0.720703
0.720703
0.720703
0.720703
0.720703
0
0.014449
0.27908
4,608
95
129
48.505263
0.756171
0.009766
0
0.681818
1
0
0.09647
0
0
0
0
0
0
1
0
false
0
0.034091
0
0.079545
0
0
0
0
null
0
0
0
0
1
1
1
1
1
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
6
1f5774372518e14045e4add17d37c16fbf360cfe
10,289
py
Python
episim/model.py
jm-begon/episim
705f80b782c5653a0d8b6e53614f34c12917cb43
[ "BSD-3-Clause" ]
null
null
null
episim/model.py
jm-begon/episim
705f80b782c5653a0d8b6e53614f34c12917cb43
[ "BSD-3-Clause" ]
null
null
null
episim/model.py
jm-begon/episim
705f80b782c5653a0d8b6e53614f34c12917cb43
[ "BSD-3-Clause" ]
null
null
null
import os import datetime from collections import defaultdict import numpy as np from scipy import sparse from episim.ontology import Ontology from episim.plot.modeling import System, Accumulator from .data import State class EulerSimulator(object): """ Explicit Euler method """ def __init__(self, ...
26.180662
80
0.57197
1,297
10,289
4.298381
0.157286
0.01722
0.018655
0.003587
0.4287
0.357309
0.327892
0.307085
0.259731
0.259731
0
0.009597
0.321508
10,289
392
81
26.247449
0.788999
0.055593
0
0.388
0
0
0.023884
0
0
0
0
0
0
1
0.144
false
0
0.032
0.048
0.312
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f57dbdd7653a2a24621940b5ab48570df0a2af1
4,620
py
Python
pytorch/camera_intrinsics.py
abdur4373/ROS_depth_pred
63ed4d97df8b49a43aad53c4c6bf01441f05153d
[ "MIT" ]
1
2019-06-29T07:48:31.000Z
2019-06-29T07:48:31.000Z
pytorch/camera_intrinsics.py
abdur4373/ROS_depth_pred
63ed4d97df8b49a43aad53c4c6bf01441f05153d
[ "MIT" ]
null
null
null
pytorch/camera_intrinsics.py
abdur4373/ROS_depth_pred
63ed4d97df8b49a43aad53c4c6bf01441f05153d
[ "MIT" ]
null
null
null
import numpy as np from sensor_msgs.msg import CameraInfo, RegionOfInterest from std_msgs.msg import Header class CameraIntrinsics(object): """A set of intrinsic parameters for a camera. This class is used to project and deproject points. """ def __init__(self, frame, fx, fy=None, cx=0.0, cy=0.0, ske...
28.695652
96
0.534632
633
4,620
3.780411
0.156398
0.035938
0.033849
0.033431
0.486001
0.479315
0.476807
0.462599
0.41496
0.348099
0
0.027722
0.351948
4,620
160
97
28.875
0.771543
0.018615
0
0.261364
0
0
0.003148
0
0
0
0
0
0
0
null
null
0
0.034091
null
null
0.011364
0
0
0
null
0
0
0
0
0
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
1f581484e57d7f06ab12a83feeb46bea44a7e7c3
327
py
Python
app/logger.py
d3vzer0/reternal-backend
aeeb613c820759212e7aef9150738a66b2882d50
[ "MIT" ]
6
2019-01-01T23:38:12.000Z
2021-07-27T03:43:11.000Z
app/logger.py
d3vzer0/kickstart-flask-vuejs
562a829d3f3b87488035719025f2d29b4fe33a89
[ "MIT" ]
1
2020-08-02T00:21:41.000Z
2020-08-02T00:21:41.000Z
app/logger.py
d3vzer0/kickstart-flask-vuejs
562a829d3f3b87488035719025f2d29b4fe33a89
[ "MIT" ]
1
2021-07-27T03:43:24.000Z
2021-07-27T03:43:24.000Z
import logging from logging.handlers import SysLogHandler # Logging environment that can be used by the application to output syslog logging_object = logging.getLogger(__name__) logging_object.setLevel(logging.INFO) syslog_handler = logging.handlers.SysLogHandler(address='/dev/log') logging_object.addHandler(syslog_ha...
36.333333
74
0.844037
42
327
6.357143
0.619048
0.146067
0
0
0
0
0
0
0
0
0
0
0.085627
327
8
75
40.875
0.892977
0.220183
0
0
0
0
0.031621
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
1f5af941019a09b58bc8c7a46b832a62890985af
2,446
py
Python
db/schema.py
aatrubilin/sqlalchemy_sessions
8f99c3bf42da7224bbb6622ab23222ee1ebf1627
[ "MIT" ]
null
null
null
db/schema.py
aatrubilin/sqlalchemy_sessions
8f99c3bf42da7224bbb6622ab23222ee1ebf1627
[ "MIT" ]
null
null
null
db/schema.py
aatrubilin/sqlalchemy_sessions
8f99c3bf42da7224bbb6622ab23222ee1ebf1627
[ "MIT" ]
null
null
null
import logging from datetime import datetime import sqlalchemy as sa import sqlalchemy.orm as so from .base import Base, Session __all__ = ["User", "Message"] logger = logging.getLogger(__name__) class User(Base): __tablename__ = "users" id = sa.Column(sa.Integer, primary_key=True) nickname = sa.Colu...
27.795455
95
0.629191
320
2,446
4.565625
0.234375
0.049281
0.061602
0.043806
0.292266
0.279261
0.238193
0.11499
0.069815
0.069815
0
0
0.248978
2,446
87
96
28.114943
0.795318
0
0
0.215385
0
0.015385
0.061325
0
0
0
0
0
0
1
0.138462
false
0
0.076923
0.061538
0.569231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f5bf93e6d736ffce8e14bcf71e0ff664aca6f6a
553
py
Python
tests/private/test_uber_string_formatter.py
odedlaz-oss/uberlogs
09658f6ee98b4018c1c3620f56973fcdadb260d5
[ "MIT" ]
null
null
null
tests/private/test_uber_string_formatter.py
odedlaz-oss/uberlogs
09658f6ee98b4018c1c3620f56973fcdadb260d5
[ "MIT" ]
null
null
null
tests/private/test_uber_string_formatter.py
odedlaz-oss/uberlogs
09658f6ee98b4018c1c3620f56973fcdadb260d5
[ "MIT" ]
null
null
null
import six from unittest import TestCase from uberlogs.private import UberStringFormatter class UberStringFormatterTests(TestCase): def setUp(self): self.formatter = UberStringFormatter() self.invalid_format = "{[blabla]" def test_raise_on_invalid_format_when_not_silent(self): with ...
29.105263
73
0.750452
66
553
6.030303
0.469697
0.163317
0.128141
0.100503
0.346734
0.226131
0.226131
0.226131
0
0
0
0
0.166365
553
18
74
30.722222
0.863341
0
0
0
0
0
0.016275
0
0
0
0
0
0.083333
1
0.25
false
0
0.25
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
1f5c32e422bbc6af249f8c6cdbc7e36215c76758
371
py
Python
testapp/models.py
andrewyoung1991/django-redis-pubsub
6ec9467528919a20bc9db6ebe94d5929ddd028a6
[ "BSD-3-Clause" ]
21
2016-02-11T06:04:48.000Z
2021-12-27T07:02:28.000Z
testapp/models.py
kashyap2108/django-redis-pubsub
6ec9467528919a20bc9db6ebe94d5929ddd028a6
[ "BSD-3-Clause" ]
3
2020-05-17T13:53:50.000Z
2021-06-10T20:38:34.000Z
testapp/models.py
kashyap2108/django-redis-pubsub
6ec9467528919a20bc9db6ebe94d5929ddd028a6
[ "BSD-3-Clause" ]
8
2016-02-05T20:17:43.000Z
2020-07-14T17:10:20.000Z
from django.conf import settings from django.db import models from redis_pubsub.models import PublishableModel class Message(PublishableModel): """ """ PUBLISH_ON_CREATE = True PUBLISH_ON_UPDATE = True from_user = models.ForeignKey(settings.AUTH_USER_MODEL) to_user = models.ForeignKey(settin...
21.823529
59
0.752022
46
371
5.826087
0.521739
0.074627
0.149254
0.208955
0.30597
0.30597
0.30597
0
0
0
0
0
0.172507
371
16
60
23.1875
0.872964
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
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
1
0
1
0
0
3
1f5d11bfac525af7eaa9a4069790c1ad9c1d4423
10,602
py
Python
src/phat/thold.py
rskene/phat
84a946e1e638642f36ce5fd81dc85aa89f7b66f0
[ "MIT" ]
2
2021-07-23T11:34:21.000Z
2022-01-09T17:22:45.000Z
src/phat/thold.py
rjskene/phat
84a946e1e638642f36ce5fd81dc85aa89f7b66f0
[ "MIT" ]
3
2022-01-18T09:27:16.000Z
2022-01-18T09:28:43.000Z
src/phat/thold.py
rskene/phat
84a946e1e638642f36ce5fd81dc85aa89f7b66f0
[ "MIT" ]
null
null
null
from functools import wraps from typing import Iterable import numpy as np import scipy.stats as scist import matplotlib.pyplot as plt from rpy2.robjects.packages import importr from rpy2.robjects.vectors import FloatVector from phat.utils import argsetter base = importr('base') utils = importr('utils') utils.choos...
36.940767
131
0.54518
1,517
10,602
3.705339
0.170073
0.021349
0.014232
0.021349
0.332859
0.293542
0.253869
0.216332
0.216332
0.210105
0
0.030116
0.282777
10,602
286
132
37.06993
0.708837
0.043671
0
0.166667
0
0.004505
0.062685
0
0
0
0
0
0
0
null
null
0
0.04955
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
1f5e5337671f2aa26669d1f985e1feb6f9bb2487
3,075
py
Python
app/eventFrameTemplates/forms.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
27
2017-11-27T05:01:05.000Z
2020-11-14T19:52:26.000Z
app/eventFrameTemplates/forms.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
259
2017-11-23T00:43:26.000Z
2020-11-03T01:07:30.000Z
app/eventFrameTemplates/forms.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
8
2018-10-29T04:39:29.000Z
2020-10-01T22:18:12.000Z
from flask_wtf import FlaskForm from wtforms import HiddenField, IntegerField, SelectField, StringField, SubmitField, ValidationError from wtforms.validators import Length, Required from .. models import EventFrameTemplate class CopyEventFrameTemplateForm(FlaskForm): name = StringField("Name", validators = [Required(...
45.220588
152
0.766504
309
3,075
7.601942
0.226537
0.044274
0.036186
0.068114
0.707961
0.675181
0.675181
0.502767
0.463602
0.397616
0
0.005285
0.138537
3,075
67
153
45.895522
0.881465
0.125203
0
0.641509
0
0
0.055887
0
0
0
0
0
0
1
0.056604
false
0
0.075472
0
0.433962
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f605b59e4b42a83b06301dd95460d66a85a140f
3,751
py
Python
flask_demo.py
tlinc/cyber-ng-18
40dd088b5785e75e59afded17f71ea50d64ae77f
[ "MIT" ]
null
null
null
flask_demo.py
tlinc/cyber-ng-18
40dd088b5785e75e59afded17f71ea50d64ae77f
[ "MIT" ]
null
null
null
flask_demo.py
tlinc/cyber-ng-18
40dd088b5785e75e59afded17f71ea50d64ae77f
[ "MIT" ]
null
null
null
import os from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC from cryptography.hazmat.backends import default_backend from stegano import lsb from flask import Flask, render_te...
27.379562
76
0.643295
467
3,751
5.062099
0.30621
0.029611
0.037225
0.040609
0.197547
0.168359
0.168359
0.168359
0.168359
0.168359
0
0.013633
0.217809
3,751
136
77
27.580882
0.792093
0.111704
0
0.222222
0
0
0.084163
0.026848
0
0
0
0
0
1
0.077778
false
0
0.088889
0.011111
0.244444
0.011111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f61bacc0966d711145c05f1a6526934fd3ce1d0
1,585
py
Python
ex0095.py
EwertonRosendo/PastaDeExercicios
68d23194b87ce1c8405c70fcceb3378955815d7d
[ "MIT" ]
null
null
null
ex0095.py
EwertonRosendo/PastaDeExercicios
68d23194b87ce1c8405c70fcceb3378955815d7d
[ "MIT" ]
null
null
null
ex0095.py
EwertonRosendo/PastaDeExercicios
68d23194b87ce1c8405c70fcceb3378955815d7d
[ "MIT" ]
null
null
null
jogador = dict() lista_de_jogadores = [] lista = [] print("_"*38) contador = 0 while True: jogador["nome"] = str(input("Informe o nome do jogador: ")).strip() jogador["partidas"] = int(input("Informe quantas partidas foram jogadas: ")) jogador["gols marcados"] = [] for c in range(0, jogador["partidas"])...
40.641026
83
0.620189
212
1,585
4.556604
0.353774
0.057971
0.132505
0.074534
0.141822
0.076605
0.076605
0
0
0
0
0.018053
0.196215
1,585
39
84
40.641026
0.740188
0.0347
0
0.157895
0
0
0.284872
0.027505
0
0
0
0
0
1
0
false
0
0
0
0
0.263158
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f6205c1effd40848344000bccb696a977da03f4
954
py
Python
app/stock/apps.py
shift37/asx_gym
dd3d8dafae4f22ab9c9027bf362013255dbc6c36
[ "RSA-MD" ]
null
null
null
app/stock/apps.py
shift37/asx_gym
dd3d8dafae4f22ab9c9027bf362013255dbc6c36
[ "RSA-MD" ]
3
2020-06-06T08:27:08.000Z
2020-06-13T09:51:26.000Z
app/stock/apps.py
asxgym/asx_gym
8b7745820c0d4cd59281acf7c003ec1f1938005a
[ "RSA-MD" ]
null
null
null
from django.apps import AppConfig import logging logger = logging.getLogger(__name__) class StockConfig(AppConfig): name = 'stock' def ready(self): from background_task.models import Task task_update_daily_stock_price = Task.objects.filter( task_name='stock.tasks.cron_update_dail...
38.16
74
0.72327
127
954
5
0.267717
0.188976
0.151181
0.198425
0.727559
0.393701
0.393701
0.299213
0.173228
0.173228
0
0.005312
0.210692
954
24
75
39.75
0.837981
0
0
0
0
0
0.172956
0.144654
0
0
0
0
0
1
0.052632
false
0
0.263158
0
0.421053
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
1f634bdb1c7a7c3154dda573b13beb16dfe4e289
8,568
py
Python
slide/models.py
AICAN-Research/learn-pathology
663f9c5f125857badf5bb41b6bfa2d9100578e2e
[ "MIT" ]
2
2021-09-16T08:38:10.000Z
2021-09-16T10:46:53.000Z
slide/models.py
AICAN-Research/learn-pathology
663f9c5f125857badf5bb41b6bfa2d9100578e2e
[ "MIT" ]
6
2021-09-20T10:56:21.000Z
2022-01-05T08:25:17.000Z
slide/models.py
AICAN-Research/learn-pathology
663f9c5f125857badf5bb41b6bfa2d9100578e2e
[ "MIT" ]
null
null
null
import threading from io import BytesIO from django.db import models import fast import time import numpy as np from PIL import Image from django.conf import settings from slide.timing import Timer from tag.models import Tag class Slide(models.Model): """ Model for whole slide image """ name = models....
38.25
152
0.615079
1,043
8,568
4.819751
0.198466
0.044559
0.021484
0.03342
0.256018
0.193754
0.163915
0.092699
0.059678
0.02029
0
0.009794
0.285014
8,568
223
153
38.421525
0.810806
0.108193
0
0.114458
0
0.012048
0.085109
0.015983
0
0
0
0.008969
0
1
0.084337
false
0
0.090361
0.006024
0.331325
0.048193
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f641a14add400abd8e0ed7c75835db3c0d6d277
742
py
Python
xpresso/_utils/endpoint_dependant.py
adriangb/xpresso
43fcc360f7b19c00e0b78480f96390bcb4d28053
[ "MIT" ]
75
2022-01-18T02:17:57.000Z
2022-03-24T02:30:04.000Z
xpresso/_utils/endpoint_dependant.py
adriangb/xpresso
43fcc360f7b19c00e0b78480f96390bcb4d28053
[ "MIT" ]
73
2022-01-18T03:01:27.000Z
2022-03-27T16:41:38.000Z
xpresso/_utils/endpoint_dependant.py
adriangb/xpresso
43fcc360f7b19c00e0b78480f96390bcb4d28053
[ "MIT" ]
3
2022-01-18T22:47:06.000Z
2022-01-25T02:03:53.000Z
from __future__ import annotations import typing from di.api.providers import CallableProvider, CoroutineProvider from di.dependant import Dependant from xpresso.dependencies._dependencies import Depends, DependsMarker Endpoint = typing.Union[CallableProvider[typing.Any], CoroutineProvider[typing.Any]] class Endp...
25.586207
84
0.677898
76
742
6.328947
0.526316
0.056133
0.074844
0
0
0
0
0
0
0
0
0
0.239892
742
28
85
26.5
0.852837
0
0
0
0
0
0.010782
0
0
0
0
0
0
1
0.095238
false
0
0.238095
0.047619
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f643bc3dbbf8bbb68623cedf5db93412e8053a1
554
py
Python
MkSSensor.py
MakeSenseCorp/mksdk-py
3466124288c3a89effa0e918c2f310e25db17e0e
[ "Apache-2.0" ]
null
null
null
MkSSensor.py
MakeSenseCorp/mksdk-py
3466124288c3a89effa0e918c2f310e25db17e0e
[ "Apache-2.0" ]
7
2018-02-19T12:15:46.000Z
2018-05-04T23:02:12.000Z
MkSSensor.py
MakeSenseCorp/mksdk-py
3466124288c3a89effa0e918c2f310e25db17e0e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python class Sensor: Name = "" ID = 0 UUID = 0 Type = 0 Value = 0 def __init__(self, id, type, local_id): self.ID = local_id self.UUID = id[:-1] + str(local_id) self.Type = type def SetInterval(self, interval): self.UpdateInterval = interval def SetUUID(self, dev...
24.086957
135
0.566787
75
554
4.04
0.32
0.115512
0.145215
0.09901
0
0
0
0
0
0
0
0.014019
0.227437
554
22
136
25.181818
0.693925
0.028881
0
0
0
0
0.097087
0
0
0
0
0
0
1
0.25
false
0
0
0.0625
0.6875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1f6482191a91e02ca740cd105cd4bb4ccfd6872b
1,010
py
Python
tuples.py
ShuhaoZQGG/Python-Very-Beginner-to-Very-Intermediate
cfad98b1c1c175761d3a68861438562f7d410cb0
[ "MIT" ]
null
null
null
tuples.py
ShuhaoZQGG/Python-Very-Beginner-to-Very-Intermediate
cfad98b1c1c175761d3a68861438562f7d410cb0
[ "MIT" ]
null
null
null
tuples.py
ShuhaoZQGG/Python-Very-Beginner-to-Very-Intermediate
cfad98b1c1c175761d3a68861438562f7d410cb0
[ "MIT" ]
null
null
null
mytuple = ("Max", 28, "Boston") print(mytuple) print(type(mytuple)) mytuple2 = ("Max") ## , is needed before the closing paranthese if only one string print(mytuple2) print(type(mytuple2)) mt3 = tuple(["Max", 28, "Boston"]) ## mt indicates mytuple + number print(mt3) print(type(m...
17.413793
104
0.620792
158
1,010
3.968354
0.474684
0.076555
0.052632
0
0
0
0
0
0
0
0
0.05774
0.194059
1,010
58
105
17.413793
0.712531
0.19802
0
0
0
0
0.067584
0
0
0
0
0
0
1
0
false
0
0
0
0
0.585366
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1f64ad352e9b9691d83fdce5ed744e84a89c5372
13,330
py
Python
create_pretraining_data_lm.py
twilightdema/ALBERT_Thai
2c5612237a6843c4949dd941dbcd01ca91f82f2b
[ "Apache-2.0" ]
null
null
null
create_pretraining_data_lm.py
twilightdema/ALBERT_Thai
2c5612237a6843c4949dd941dbcd01ca91f82f2b
[ "Apache-2.0" ]
4
2020-09-25T22:35:29.000Z
2022-02-09T23:37:24.000Z
create_pretraining_data_lm.py
twilightdema/ALBERT_Thai
2c5612237a6843c4949dd941dbcd01ca91f82f2b
[ "Apache-2.0" ]
1
2020-10-17T01:36:03.000Z
2020-10-17T01:36:03.000Z
# coding=utf-8 # Copyright 2018 The Google AI Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
33.076923
117
0.692798
1,866
13,330
4.755627
0.229904
0.018256
0.018932
0.003944
0.208249
0.146833
0.091053
0.057471
0.04192
0.04192
0
0.006722
0.207577
13,330
402
118
33.159204
0.833097
0.25994
0
0.14
0
0
0.122476
0.005842
0
0
0
0
0.02
1
0.056
false
0.004
0.044
0.004
0.152
0.044
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f6706c7305503eebcfb4dc0e941eec4fd99c3fd
3,260
py
Python
src/libcore/tests/test_qmc.py
tizian/layer-laboratory
008cc94b76127e9eb74227fcd3d0145da8ddec30
[ "CNRI-Python" ]
7
2020-07-24T03:19:59.000Z
2022-03-30T10:56:12.000Z
src/libcore/tests/test_qmc.py
tizian/layer-laboratory
008cc94b76127e9eb74227fcd3d0145da8ddec30
[ "CNRI-Python" ]
1
2021-04-07T22:30:23.000Z
2021-04-08T00:55:36.000Z
src/libcore/tests/test_qmc.py
tizian/layer-laboratory
008cc94b76127e9eb74227fcd3d0145da8ddec30
[ "CNRI-Python" ]
2
2020-06-08T08:25:09.000Z
2021-04-05T22:13:08.000Z
import enoki as ek import pytest import mitsuba def r_inv(divisor, index): factor = 1 value = 0 recip = 1.0 / divisor while index != 0: next_val = index // divisor factor *= recip value = value * divisor + index - next_val * divisor index = next_val return value *...
28.347826
74
0.60184
481
3,260
3.989605
0.234927
0.029182
0.046899
0.065659
0.4716
0.460657
0.439812
0.369463
0.342887
0.342887
0
0.092646
0.261656
3,260
114
75
28.596491
0.704612
0.01319
0
0.252874
0
0
0.033904
0
0
0
0
0
0.172414
1
0.08046
false
0
0.126437
0
0.218391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f69bfc2c5f28e5c08c2ff64bb83de310333e32a
14,656
py
Python
train.py
ColinWine/Multi-modal-Multi-label-Facial-Action-Unit-Detection-with-Transformer
93871bed9078d5bf6b4bb37407c9dce87c569b55
[ "MIT" ]
null
null
null
train.py
ColinWine/Multi-modal-Multi-label-Facial-Action-Unit-Detection-with-Transformer
93871bed9078d5bf6b4bb37407c9dce87c569b55
[ "MIT" ]
null
null
null
train.py
ColinWine/Multi-modal-Multi-label-Facial-Action-Unit-Detection-with-Transformer
93871bed9078d5bf6b4bb37407c9dce87c569b55
[ "MIT" ]
null
null
null
import warnings import torch from torch.utils.data.dataloader import DataLoader from torch.optim import lr_scheduler import numpy as np from models import * from dataloader import Aff2CompDataset, SubsetSequentialSampler, SubsetRandomSampler, Prefetcher from tqdm import tqdm import os import time from sklearn.metrics i...
42.604651
134
0.60917
1,905
14,656
4.501312
0.177428
0.012128
0.018192
0.030787
0.395102
0.338542
0.294111
0.28898
0.260058
0.189854
0
0.016751
0.246452
14,656
343
135
42.728863
0.759689
0.034047
0
0.236301
0
0.003425
0.107582
0.025888
0
0
0
0
0
1
0.030822
false
0
0.061644
0
0.113014
0.034247
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f6aef11602a1e5873d6782928e3986a359ca69a
123
py
Python
carin/help.py
fiskurgit/Carin
41f5e8003d169f1f0454e7b674daf341d238f061
[ "Unlicense" ]
null
null
null
carin/help.py
fiskurgit/Carin
41f5e8003d169f1f0454e7b674daf341d238f061
[ "Unlicense" ]
null
null
null
carin/help.py
fiskurgit/Carin
41f5e8003d169f1f0454e7b674daf341d238f061
[ "Unlicense" ]
null
null
null
def show_help(): print("Carbon Intensity API Help") def show_bad_argument_help(): print("app -e generation")
11.181818
38
0.674797
17
123
4.647059
0.705882
0.177215
0
0
0
0
0
0
0
0
0
0
0.203252
123
10
39
12.3
0.806122
0
0
0
0
0
0.352941
0
0
0
0
0
0
1
0.5
true
0
0
0
0.5
0.5
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
1
1
0
0
0
0
1
0
4
1f6c4abc3f836e517354bb086cbc395ddcb5e9b2
251
py
Python
utils.py
Ls-Dai/Pytorch_FL_CNN
59bfd017dc21a4d11e7dafb382cdae3c57086071
[ "MIT" ]
3
2021-03-22T01:54:43.000Z
2021-03-28T10:48:35.000Z
utils.py
Ls-Dai/Pytorch_FL_CNN
59bfd017dc21a4d11e7dafb382cdae3c57086071
[ "MIT" ]
null
null
null
utils.py
Ls-Dai/Pytorch_FL_CNN
59bfd017dc21a4d11e7dafb382cdae3c57086071
[ "MIT" ]
null
null
null
import os def dir_setup(path): if not os.path.exists(path): os.makedirs(path) """def dir_setup(path): if not os.path.isdir(path): dir_setup(os.path.split(path)[0]) else: return os.mkdir(path)"""
17.928571
42
0.561753
37
251
3.72973
0.432432
0.173913
0.15942
0.217391
0.376812
0.376812
0.376812
0.376812
0
0
0
0.005618
0.290837
251
13
43
19.307692
0.769663
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
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
1
0
0
0
0
0
0
0
2
1f6e05df1cdce06badd2f76abc8f4fd50f6739ab
212
py
Python
1011 - Esfera.py
le16bits/URI---Python
9d22ae74f008104bc9c3c0e2d5f8cd59303bc1db
[ "Apache-2.0" ]
null
null
null
1011 - Esfera.py
le16bits/URI---Python
9d22ae74f008104bc9c3c0e2d5f8cd59303bc1db
[ "Apache-2.0" ]
null
null
null
1011 - Esfera.py
le16bits/URI---Python
9d22ae74f008104bc9c3c0e2d5f8cd59303bc1db
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- '''Autor: Alessandra Souza Data: 05/05/2017 Objetivo: Calcular o volume de uma esfera. ID Urionlinejudge: 1011''' R=float(input()) vol=((4.0/3)*3.14159)*R**3 print("VOLUME = %.3f" %vol)
21.2
42
0.646226
35
212
3.914286
0.828571
0
0
0
0
0
0
0
0
0
0
0.130435
0.132075
212
9
43
23.555556
0.61413
0.617925
0
0
0
0
0.173333
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
1f6f98de6468e928dedff399ac6db135e5b7f2ec
18,002
py
Python
src/agent.py
Lukeeeeee/DataCenterJobSchedulingSolution
9c62c0039b2dd9e0a1ca5474dc46c8be98a972b3
[ "MIT" ]
null
null
null
src/agent.py
Lukeeeeee/DataCenterJobSchedulingSolution
9c62c0039b2dd9e0a1ca5474dc46c8be98a972b3
[ "MIT" ]
null
null
null
src/agent.py
Lukeeeeee/DataCenterJobSchedulingSolution
9c62c0039b2dd9e0a1ca5474dc46c8be98a972b3
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import tensorlayer as tl import datetime from log import LOG_PATH import os import src.visualization as vis from src.config import Config as con import tensorflow.contrib as tfcontrib server_count = con.server_count server_state_dim = con.server_state_dim total_server_state_d...
47.750663
118
0.575436
2,175
18,002
4.407816
0.106667
0.028476
0.021905
0.043809
0.520601
0.434964
0.383227
0.358611
0.329822
0.297695
0
0.006376
0.32913
18,002
376
119
47.87766
0.787447
0.119876
0
0.241509
0
0
0.04755
0
0
0
0
0
0
1
0.060377
false
0.003774
0.041509
0.003774
0.14717
0.045283
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f704e7278b9ef779559e766cacb1ef676546a1a
194
py
Python
programmers/lv3/2n_tiling.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
programmers/lv3/2n_tiling.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
programmers/lv3/2n_tiling.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
# 2 * n 타일링 def solution(n): dp = [0] * 60001 dp[0], dp[1] = 1, 1 for i in range(2, n + 1): dp[i] = (dp[i - 1] + dp[i - 2]) % 1000000007 return dp[n] print(solution(4))
19.4
52
0.469072
37
194
2.459459
0.459459
0.098901
0.087912
0
0
0
0
0
0
0
0
0.198473
0.324742
194
10
53
19.4
0.496183
0.046392
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1f7102de5fec932b92f1cdaf56485f914e53929e
79
py
Python
pyup/settings.py
Callek/pyup
e29014320accdca2947b9e18c215d2144752081a
[ "MIT" ]
445
2016-01-14T09:19:26.000Z
2022-03-16T13:19:33.000Z
pyup/settings.py
Callek/pyup
e29014320accdca2947b9e18c215d2144752081a
[ "MIT" ]
387
2015-12-28T09:54:32.000Z
2022-01-04T00:45:00.000Z
pyup/settings.py
Callek/pyup
e29014320accdca2947b9e18c215d2144752081a
[ "MIT" ]
96
2016-01-19T19:25:00.000Z
2021-09-30T18:22:02.000Z
api_key = None def configure(key=None): global api_key api_key = key
11.285714
24
0.670886
13
79
3.846154
0.461538
0.36
0
0
0
0
0
0
0
0
0
0
0.253165
79
6
25
13.166667
0.847458
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.25
0
1
0
0
null
1
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
1
0
0
0
0
0
0
0
4
1f746fdd19456f3c70b06319cd8440bf69081a77
190
py
Python
setup.py
alexisjihyeross/actionable-recourse
a00a0221484d1cf66ff6c0bcba6aaca2220bf9d1
[ "BSD-3-Clause" ]
null
null
null
setup.py
alexisjihyeross/actionable-recourse
a00a0221484d1cf66ff6c0bcba6aaca2220bf9d1
[ "BSD-3-Clause" ]
null
null
null
setup.py
alexisjihyeross/actionable-recourse
a00a0221484d1cf66ff6c0bcba6aaca2220bf9d1
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages setup( name="Recourse", version="0.1.1", packages=find_packages(), install_requires=open('requirements.txt').read().split('\n') )
23.75
64
0.689474
24
190
5.333333
0.791667
0.1875
0
0
0
0
0
0
0
0
0
0.018405
0.142105
190
8
65
23.75
0.766871
0
0
0
0
0
0.162304
0
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
0
1
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
1
0
0
0
0
0
0
3
1f74a2f22700c0cecd865a836091b95cf438f84d
536
py
Python
ch06/data.py
stoneflyop1/py_machine_learning
18fd635d312f957ca4fcc23d856a1bcd4cf95f48
[ "MIT" ]
null
null
null
ch06/data.py
stoneflyop1/py_machine_learning
18fd635d312f957ca4fcc23d856a1bcd4cf95f48
[ "MIT" ]
null
null
null
ch06/data.py
stoneflyop1/py_machine_learning
18fd635d312f957ca4fcc23d856a1bcd4cf95f48
[ "MIT" ]
null
null
null
import pandas as pd ##################### # Load Dataset # https://archive.ics.uci.edu/ml/machine-learning-databases/breast-cancer-wisconsin/wdbc.data df = pd.read_csv('../data/wdbc.data', header=None) from sklearn.preprocessing import LabelEncoder X = df.loc[:, 2:].values y = df.loc[:,1].values le = LabelEncoder() ...
28.210526
93
0.699627
85
536
4.258824
0.611765
0.044199
0.077348
0.082873
0
0
0
0
0
0
0
0.012579
0.110075
536
19
94
28.210526
0.746331
0.19403
0
0
0
0
0.046455
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f75dc40de3440e94dfc62ec31434b5e0206507e
733
py
Python
src/tga_to_jpg.py
NicolasGrosjean/HoI4_Stats
b2b6341e8a0b400255302b277407ea33c1a9833f
[ "MIT" ]
null
null
null
src/tga_to_jpg.py
NicolasGrosjean/HoI4_Stats
b2b6341e8a0b400255302b277407ea33c1a9833f
[ "MIT" ]
null
null
null
src/tga_to_jpg.py
NicolasGrosjean/HoI4_Stats
b2b6341e8a0b400255302b277407ea33c1a9833f
[ "MIT" ]
null
null
null
import argparse import os from PIL import Image def get_args(): parser = argparse.ArgumentParser(description='Transform tga files to jpg') parser.add_argument('input_dir', type=str, help='Path of input directory containing tga files') parser.add_argument('output_dir', type=str, help='Path of output direct...
34.904762
101
0.682128
107
733
4.46729
0.46729
0.050209
0.07113
0.058577
0.083682
0.083682
0
0
0
0
0
0.001684
0.189632
733
20
102
36.65
0.80303
0
0
0
0
0
0.208731
0
0
0
0
0
0
1
0.0625
false
0
0.1875
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f7833d48966d1ed49519df9d13f101196d3956c
3,057
py
Python
db/csvs_test_examples/project/project_availability/project_availability_types/doc.py
souissim/gridpath
4eeca2be24b485edc56026e38cfda83f4a6b27ea
[ "Apache-2.0" ]
44
2020-10-27T19:05:44.000Z
2022-03-22T17:17:37.000Z
db/csvs_test_examples/project/project_availability/project_availability_types/doc.py
souissim/gridpath
4eeca2be24b485edc56026e38cfda83f4a6b27ea
[ "Apache-2.0" ]
67
2020-10-08T22:36:53.000Z
2022-03-22T22:58:33.000Z
db/csvs_test_examples/project/project_availability/project_availability_types/doc.py
souissim/gridpath
4eeca2be24b485edc56026e38cfda83f4a6b27ea
[ "Apache-2.0" ]
21
2020-10-08T23:23:48.000Z
2022-03-28T01:21:21.000Z
# Copyright 2016-2020 Blue Marble Analytics LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
51.813559
81
0.669284
372
3,057
5.38172
0.408602
0.094905
0.042458
0.072428
0.103896
0.071928
0
0
0
0
0
0.004551
0.13739
3,057
58
82
52.706897
0.754645
0.972522
0
0
0
0
0.129032
0
0
0
0
0
0
1
0
true
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
3
1f78bf747e413822fce9fdf17d1c1fc1b0c7a165
3,052
py
Python
src/construction_finder/coderack.py
juliakzn/construction_finder
92e9f044163fbe8bde3a6c5f9ec125a7ecf96de8
[ "MIT" ]
null
null
null
src/construction_finder/coderack.py
juliakzn/construction_finder
92e9f044163fbe8bde3a6c5f9ec125a7ecf96de8
[ "MIT" ]
null
null
null
src/construction_finder/coderack.py
juliakzn/construction_finder
92e9f044163fbe8bde3a6c5f9ec125a7ecf96de8
[ "MIT" ]
null
null
null
import logging import random from typing import Dict, List, Tuple, Union from construction_finder import codelets, frame logger = logging.getLogger(f"{__name__}") class SpinResult: def __init__( self, temp_modifier: float, workspace_modifiers: Union[List[codelets.WorkSpaceModifier], None...
35.08046
118
0.656619
355
3,052
5.323944
0.219718
0.087302
0.063492
0.058201
0.183598
0.129101
0.129101
0.068783
0.068783
0.068783
0
0.00488
0.261468
3,052
86
119
35.488372
0.833629
0
0
0.073529
0
0
0.082896
0.02654
0
0
0
0
0
1
0.117647
false
0
0.058824
0.014706
0.279412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f7babebb7eb438c1f113d421ddd85e8d4dce5ed
1,713
py
Python
configuration.py
ewellchen/STIN
0612a0b56d8caf1f8771ce13a3d8827d26a38f30
[ "MIT" ]
null
null
null
configuration.py
ewellchen/STIN
0612a0b56d8caf1f8771ce13a3d8827d26a38f30
[ "MIT" ]
null
null
null
configuration.py
ewellchen/STIN
0612a0b56d8caf1f8771ce13a3d8827d26a38f30
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Default configurations of model configuration, training. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import os.path as osp from typing import Dict CONFIG = { 'is_train': True, ...
23.148649
65
0.549329
195
1,713
4.461538
0.364103
0.051724
0.063218
0.087356
0.457471
0.382759
0.382759
0.318391
0.27931
0.147126
0
0.047502
0.287215
1,713
73
66
23.465753
0.665029
0.058377
0
0.333333
0
0
0.458877
0.116188
0
0
0
0
0
1
0
false
0
0.119048
0
0.119048
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f7d838dc8f88dc8eef76ebba1d92fdbf66fdaf5
54,959
py
Python
util/configurejson2cmake.py
chentoz/occQt
9738c26a18ac7757201342a69f95483d435a39fa
[ "MIT" ]
null
null
null
util/configurejson2cmake.py
chentoz/occQt
9738c26a18ac7757201342a69f95483d435a39fa
[ "MIT" ]
null
null
null
util/configurejson2cmake.py
chentoz/occQt
9738c26a18ac7757201342a69f95483d435a39fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ############################################################################# ## ## Copyright (C) 2018 The Qt Company Ltd. ## Contact: https://www.qt.io/licensing/ ## ## This file is part of the plugins of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:GPL-EXCEPT$ ## Commercial License Usage ## Licensee...
34.608942
147
0.580251
5,997
54,959
5.121227
0.142571
0.019146
0.029891
0.012047
0.274518
0.196243
0.155639
0.128582
0.098496
0.084039
0
0.008092
0.293965
54,959
1,587
148
34.63075
0.783393
0.097236
0
0.171149
0
0
0.265549
0.058592
0.002445
0
0
0.00126
0.00326
1
0.0326
false
0.000815
0.00815
0
0.072535
0.0326
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f7e10137722c6fcc224fdac359159dee3d532fc
819
py
Python
easy_scrapy/2_beautifulsoup/bs4_3_regex.py
cyfu/web_scrapying
b59a75d3db289032bb9005f062470e8ce745539a
[ "MIT" ]
null
null
null
easy_scrapy/2_beautifulsoup/bs4_3_regex.py
cyfu/web_scrapying
b59a75d3db289032bb9005f062470e8ce745539a
[ "MIT" ]
null
null
null
easy_scrapy/2_beautifulsoup/bs4_3_regex.py
cyfu/web_scrapying
b59a75d3db289032bb9005f062470e8ce745539a
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup from urllib.request import urlopen import re # open and read web page, decode it if it contains Chinese html = urlopen('https://mofanpy.com/static/scraping/table.html').read().decode('utf-8') print(html) # 'lxml' is parser name soup = BeautifulSoup(html, features='lxml') # search by tag...
32.76
87
0.693529
125
819
4.48
0.52
0.05
0.058929
0
0
0
0
0
0
0
0
0.002829
0.136752
819
25
88
32.76
0.78925
0.218559
0
0
0
0
0.193701
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.266667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f839d58efbf61c5507f3e11ca4b447b2e8e7b82
1,826
py
Python
ssrlsim/scripts/start_RE.py
tangkong/ssrlsim
62f8a07989ebc187ecf6d2dc3bd8d97ae4c56536
[ "BSD-3-Clause" ]
null
null
null
ssrlsim/scripts/start_RE.py
tangkong/ssrlsim
62f8a07989ebc187ecf6d2dc3bd8d97ae4c56536
[ "BSD-3-Clause" ]
2
2020-06-18T05:18:15.000Z
2021-09-08T21:44:29.000Z
ssrlsim/scripts/start_RE.py
tangkong/ssrlsim
62f8a07989ebc187ecf6d2dc3bd8d97ae4c56536
[ "BSD-3-Clause" ]
null
null
null
import os import matplotlib # get_ipython().run_line_magic("matplotlib", "widget") # i.e. %matplotlib widget import matplotlib.pyplot as plt from ophyd import Device, Component, EpicsSignal from ophyd.signal import EpicsSignalBase from ophyd.areadetector.filestore_mixins import resource_factory import uuid import os...
24.675676
81
0.793538
254
1,826
5.629921
0.5
0.061538
0.033566
0.046154
0.026573
0
0
0
0
0
0
0
0.133625
1,826
73
82
25.013699
0.903919
0.372399
0
0.114286
0
0
0.027531
0
0
0
0
0
0
1
0
false
0
0.657143
0
0.657143
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1
0
0
2
1f85f7ae96d69285ca7b29169676435a4ce6e57d
5,021
py
Python
snakeskin/protos/peer/peer_pb2.py
healthverity/snakeskin-fabric
31ba7fa5a71445eba76f89723c998d603704e0f9
[ "Apache-2.0" ]
5
2019-08-08T17:16:02.000Z
2021-05-15T07:28:31.000Z
snakeskin/protos/peer/peer_pb2.py
healthverity/snakeskin-fabric
31ba7fa5a71445eba76f89723c998d603704e0f9
[ "Apache-2.0" ]
4
2019-08-20T15:07:12.000Z
2020-07-31T17:50:51.000Z
snakeskin/protos/peer/peer_pb2.py
healthverity/snakeskin-fabric
31ba7fa5a71445eba76f89723c998d603704e0f9
[ "Apache-2.0" ]
2
2019-08-20T15:22:48.000Z
2019-12-17T19:38:55.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: snakeskin/protos/peer/peer.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from ...
34.390411
550
0.768174
629
5,021
5.810811
0.248013
0.024077
0.046785
0.034473
0.484268
0.436662
0.397811
0.397811
0.363064
0.33762
0
0.029971
0.10954
5,021
145
551
34.627586
0.78752
0.060147
0
0.474576
1
0.016949
0.217788
0.164509
0
0
0
0
0
1
0
false
0
0.059322
0
0.059322
0
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
1f8ae5e3724e8e2ef10be9cc46bc0a4381cac952
3,236
py
Python
tests/test_models/test_place.py
lepc1972/AirBnB_clone
3ba7f0332e926ff7715272866a00d3a23341b3c3
[ "MIT" ]
2
2021-07-16T01:07:40.000Z
2021-07-16T01:23:15.000Z
tests/test_models/test_place.py
lepc1972/AirBnB_clone
3ba7f0332e926ff7715272866a00d3a23341b3c3
[ "MIT" ]
null
null
null
tests/test_models/test_place.py
lepc1972/AirBnB_clone
3ba7f0332e926ff7715272866a00d3a23341b3c3
[ "MIT" ]
1
2021-07-09T01:41:16.000Z
2021-07-09T01:41:16.000Z
#!/usr/bin/python3 ''' test for the place model here. ''' import unittest from models.base_model import BaseModel from models.place import Place class TestUser(unittest.TestCase): ''' Testing Place class ''' def setUp(self): ''' Create instance for place. ''' ...
28.637168
70
0.603523
364
3,236
5.03022
0.164835
0.084107
0.144184
0.076461
0.235937
0.15456
0.15456
0.036046
0
0
0
0.000434
0.287392
3,236
112
71
28.892857
0.793582
0.105377
0
0
0
0
0.075209
0
0
0
0
0
0.428571
1
0.265306
false
0
0.061224
0
0.346939
0
0
0
0
null
0
0
0
0
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
1
0
0
0
0
0
0
0
2
1f8af70835313ee879d71169d774cac9ba7f41c9
1,714
py
Python
app/__init__.py
zjyfdu/flask_huxiaofei
2193bfe0aa45626fdb4b270f7532a1e04c5be556
[ "MIT" ]
null
null
null
app/__init__.py
zjyfdu/flask_huxiaofei
2193bfe0aa45626fdb4b270f7532a1e04c5be556
[ "MIT" ]
null
null
null
app/__init__.py
zjyfdu/flask_huxiaofei
2193bfe0aa45626fdb4b270f7532a1e04c5be556
[ "MIT" ]
null
null
null
from flask import Flask from flask_bootstrap import Bootstrap from flask_mail import Mail from flask_moment import Moment from flask_sqlalchemy import SQLAlchemy from sqlalchemy import MetaData from flask_login import LoginManager from flask_msearch import Search from config import config from jieba.analyse import Chin...
28.566667
72
0.757876
239
1,714
5.138075
0.23431
0.032573
0.057003
0.094463
0.053746
0.053746
0.053746
0
0
0
0
0.002721
0.142357
1,714
59
73
29.050847
0.832653
0.009918
0
0
0
0
0.126844
0.088496
0
0
0
0
0
1
0.021739
false
0
0.326087
0
0.369565
0.173913
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1f8f15b75dc5ee4ca1fc697ef1e5c0863cf598a7
1,893
py
Python
easyTCP/CLIENT/backend/Protocol.py
dsal3389/easyTCP
0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f
[ "MIT" ]
4
2018-12-09T13:57:59.000Z
2019-10-19T19:34:28.000Z
easyTCP/CLIENT/backend/Protocol.py
dsal3389/easyTCP
0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f
[ "MIT" ]
null
null
null
easyTCP/CLIENT/backend/Protocol.py
dsal3389/easyTCP
0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f
[ "MIT" ]
null
null
null
import asyncio import json from ..utils import DEFAULT_SETTINGS from ..utils.DEFAULT_ENCRYPTION import SERVER_encryption, CLIENT_encryption def json_dumper(data): return bytes(json.dumps(data), encoding=DEFAULT_SETTINGS.ENCODING) def json_loader(data): return json.loads(str(data, encoding=DEFAULT_S...
36.403846
111
0.661912
238
1,893
5.138655
0.327731
0.07359
0.075225
0.076043
0.057236
0
0
0
0
0
0
0
0.242472
1,893
51
112
37.117647
0.852859
0.064976
0
0.078947
0
0
0.022727
0
0
0
0
0
0
1
0.157895
false
0
0.105263
0.052632
0.394737
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f8f9e391109c41227336b2bb762cb77a40123c1
6,413
py
Python
src/harvester.py
bmoxon/azfinsim
3e203855410abd6c9636377b93ed5d33ac896c41
[ "MIT" ]
5
2021-02-24T19:10:34.000Z
2022-02-24T21:11:24.000Z
src/harvester.py
bmoxon/azfinsim
3e203855410abd6c9636377b93ed5d33ac896c41
[ "MIT" ]
null
null
null
src/harvester.py
bmoxon/azfinsim
3e203855410abd6c9636377b93ed5d33ac896c41
[ "MIT" ]
2
2021-05-03T11:57:31.000Z
2021-12-09T10:24:29.000Z
#! /usr/bin/env python3 #-- harvest scheduler that runs on the compute pool nodes import argparse import time import sys import logging import os import psutil from applicationinsights import TelemetryClient from applicationinsights.logging import LoggingHandler from getargs import getargs import azlog azlog.color=...
34.478495
127
0.626072
802
6,413
4.905237
0.34414
0.027453
0.015252
0.011439
0.11998
0.093035
0.084392
0.038129
0.038129
0.038129
0
0.007097
0.252924
6,413
186
128
34.478495
0.814026
0.24388
0
0.220472
0
0
0.151301
0.00437
0
0
0
0
0
1
0.031496
false
0
0.07874
0
0.11811
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f8faaab50ba1792d26b495c5cba37135b67c989
7,758
py
Python
old/model.py
samhippie/shallow-red
5690cdf380c6e138e25d88e85093738951438298
[ "MIT" ]
null
null
null
old/model.py
samhippie/shallow-red
5690cdf380c6e138e25d88e85093738951438298
[ "MIT" ]
null
null
null
old/model.py
samhippie/shallow-red
5690cdf380c6e138e25d88e85093738951438298
[ "MIT" ]
1
2020-03-13T12:53:35.000Z
2020-03-13T12:53:35.000Z
#!/usr/bin/env python3 #loading tf is slow, so don't do it unless we're using it USE_TENSORFLOW = False import collections import numpy as np import os import pickle if USE_TENSORFLOW: import tensorflow as tf from tensorflow import keras os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import modelInput #use...
37.298077
130
0.620907
921
7,758
5.186754
0.256243
0.046891
0.041449
0.045426
0.305212
0.239481
0.14821
0.113042
0.082479
0.067406
0
0.014469
0.278422
7,758
207
131
37.478261
0.838871
0.143336
0
0.267123
0
0
0.01374
0
0
0
0
0
0
1
0.130137
false
0.006849
0.047945
0
0.267123
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f907167fd216693dde972de5a46db5460599384
183
py
Python
src/emuvim/api/util/process_utils.py
RafaelSche/vim-emu
6503ba9fcbe13ca73c94d318157a1ba78ef26b5b
[ "Apache-2.0" ]
34
2016-09-05T06:11:12.000Z
2021-12-24T08:45:24.000Z
src/emuvim/api/util/process_utils.py
RafaelSche/vim-emu
6503ba9fcbe13ca73c94d318157a1ba78ef26b5b
[ "Apache-2.0" ]
89
2016-07-19T14:14:27.000Z
2020-01-09T07:19:45.000Z
src/emuvim/api/util/process_utils.py
RafaelSche/vim-emu
6503ba9fcbe13ca73c94d318157a1ba78ef26b5b
[ "Apache-2.0" ]
32
2016-07-19T14:58:06.000Z
2020-05-05T13:30:01.000Z
import logging import subprocess import time def wait_until(cmd): logging.debug('waiting for %s\n' % cmd) while subprocess.call(cmd, shell=True) != 0: time.sleep(1)
18.3
48
0.677596
27
183
4.555556
0.740741
0
0
0
0
0
0
0
0
0
0
0.013699
0.202186
183
9
49
20.333333
0.828767
0
0
0
0
0
0.087432
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.571429
0
1
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
1
0
1
0
0
4
1f944de947e6f066710ae464c5f7cd8435c93b21
189
py
Python
zesty_metrics/defaults.py
Crossway/django-zesty-metrics
863532dce1379039e3db99355c90e84ac2288534
[ "BSD-3-Clause" ]
1
2015-07-07T19:22:42.000Z
2015-07-07T19:22:42.000Z
zesty_metrics/defaults.py
Crossway/django-zesty-metrics
863532dce1379039e3db99355c90e84ac2288534
[ "BSD-3-Clause" ]
4
2016-08-01T18:11:18.000Z
2018-02-06T18:02:02.000Z
zesty_metrics/defaults.py
Crossway/django-zesty-metrics
863532dce1379039e3db99355c90e84ac2288534
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ZESTY_TRACKING_CLASSES = [ 'zesty_metrics.tracking.UserAccounts', ] ZESTY_TIMING_SAMPLE_RATE = 1 ZESTY_TIME_RESPONSES = True ZESTY_TRACK_USER_ACTIVITY = True
17.181818
42
0.756614
24
189
5.5
0.75
0
0
0
0
0
0
0
0
0
0
0.01227
0.137566
189
10
43
18.9
0.797546
0.111111
0
0
0
0
0.210843
0.210843
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
1f9508b579771bc7e41b7b6de9c4a49ddf05f51e
3,368
py
Python
models/generatorUnet.py
ctyler9/cartoon-gan
48ec80cfcf23c6f30c5d1c446c12ff6f9c81afc8
[ "MIT" ]
177
2020-01-31T08:32:07.000Z
2022-03-28T02:20:29.000Z
models/generatorUnet.py
ctyler9/cartoon-gan
48ec80cfcf23c6f30c5d1c446c12ff6f9c81afc8
[ "MIT" ]
10
2020-06-26T04:46:26.000Z
2022-02-01T18:17:10.000Z
models/generatorUnet.py
ctyler9/cartoon-gan
48ec80cfcf23c6f30c5d1c446c12ff6f9c81afc8
[ "MIT" ]
44
2020-03-11T17:21:51.000Z
2022-03-16T16:09:22.000Z
import torch import torch.nn as nn import torch.nn.functional as F class Bottleneck(nn.Module): def __init__(self, in_channels, out_channels): super(Bottleneck, self).__init__() self.conv = nn.Sequential( nn.Conv2d(in_channels, in_channels, 1, padding=0, bias=False), ...
32.384615
101
0.561758
451
3,368
4.026608
0.190687
0.082599
0.104626
0.092511
0.378304
0.318282
0.189427
0.1663
0.124449
0.102423
0
0.065896
0.306116
3,368
104
102
32.384615
0.711168
0.003563
0
0.193182
0
0
0.002385
0
0
0
0
0
0
1
0.102273
false
0
0.034091
0.034091
0.238636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f964a207f38c7145c92fc77855d4848bb25de63
1,716
py
Python
app/calc/utility.py
sajeeshen/WebCalculatorAPI
d951e688e84741cc594877914d292fbddb4e9542
[ "MIT" ]
null
null
null
app/calc/utility.py
sajeeshen/WebCalculatorAPI
d951e688e84741cc594877914d292fbddb4e9542
[ "MIT" ]
null
null
null
app/calc/utility.py
sajeeshen/WebCalculatorAPI
d951e688e84741cc594877914d292fbddb4e9542
[ "MIT" ]
null
null
null
import math from datetime import datetime AVAILABLE_ACTIONS = [{'action': 'add', 'admin_required': False, 'operator': '+'}, {'action': 'subtract', 'admin_required': False, 'operator': '-'}, {'action': 'multiply', 'admin_required': Fa...
28.131148
73
0.501166
185
1,716
4.545946
0.318919
0.028537
0.057075
0.053508
0.26635
0.047562
0.047562
0.047562
0.047562
0.047562
0
0.001781
0.345571
1,716
60
74
28.6
0.747106
0.132284
0
0.054054
0
0
0.164575
0
0
0
0
0
0
1
0.135135
false
0
0.054054
0.027027
0.324324
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f06bad44169797de0c1276f26ece53ea110fad2
6,009
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/commerce/api/v1/models.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/commerce/api/v1/models.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/commerce/api/v1/models.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" API v1 models. """ import logging from itertools import groupby from django.db import transaction from opaque_keys import InvalidKeyError from opaque_keys.edx.keys import CourseKey from common.djangoapps.course_modes.models import CourseMode from lms.djangoapps.verify_student.models import VerificationDeadline ...
40.328859
112
0.669496
748
6,009
5.183155
0.295455
0.035079
0.024761
0.01625
0.069126
0.02992
0
0
0
0
0
0.000222
0.251955
6,009
148
113
40.601351
0.862291
0.237144
0
0.083333
0
0
0.067065
0.018592
0
0
0
0
0
1
0.072917
false
0
0.083333
0
0.302083
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f082e2906c7c51226d4204e5140aa52273e420e
984
py
Python
model_code/grid_search/DecisionTreeClassifier.py
lacava/sklearn-benchmarks
bec1d5468f40b1fea08b605a11d5f7795fe5bb1b
[ "MIT" ]
213
2016-02-03T02:56:40.000Z
2022-02-26T06:44:27.000Z
model_code/grid_search/DecisionTreeClassifier.py
lacava/sklearn-benchmarks
bec1d5468f40b1fea08b605a11d5f7795fe5bb1b
[ "MIT" ]
30
2016-02-03T14:32:27.000Z
2020-05-12T17:32:40.000Z
model_code/grid_search/DecisionTreeClassifier.py
arunsinghyadav/sklearn-benchmarks
a917336f6fd3ffb89efd94b1c7f60b3a05ba780f
[ "MIT" ]
59
2016-02-03T14:32:58.000Z
2021-01-12T23:48:46.000Z
import sys import pandas as pd import numpy as np import itertools from sklearn.preprocessing import RobustScaler from sklearn.tree import DecisionTreeClassifier from evaluate_model import evaluate_model dataset = sys.argv[1] pipeline_components = [RobustScaler, DecisionTreeClassifier] pipeline_parameters = {} min_i...
39.36
136
0.813008
125
984
6.096
0.4
0.072178
0.124672
0.065617
0.07874
0
0
0
0
0
0
0.032621
0.096545
984
24
137
41
0.824522
0
0
0
0
0
0.074187
0.021341
0
0
0
0
0
1
0
false
0
0.368421
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
2f0914ec0565214e9bbc4b09ca688ebda76940dd
3,428
py
Python
training_v1_backup/training/PPO/run_ppo.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
training_v1_backup/training/PPO/run_ppo.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
training_v1_backup/training/PPO/run_ppo.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
''' Wrapper function to run PPO algorithm for training ''' import numpy as np import matplotlib.pyplot as plt import time import math import logging from scipy.optimize import minimize, LinearConstraint # custom libraries from training.PPO.run_helper import buyerPenaltiesCalculator, buyerUtilitiesCalculator, evaluati...
38.516854
130
0.698658
388
3,428
5.927835
0.322165
0.046957
0.04
0.015652
0.144348
0.144348
0.118261
0.086957
0.086957
0.064348
0
0.005678
0.229288
3,428
88
131
38.954545
0.864875
0.151984
0
0.04
0
0
0.038141
0
0
0
0
0
0
1
0.02
false
0.04
0.16
0
0.18
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f093dab61a4920e6658955efc331ab3c70a322c
850
py
Python
tests/custom/test_clean_dateTime.py
arkhn/cleaning-scripts
ffe88598b476b2e6b53fd06e8ce6092ef0351b19
[ "Apache-2.0" ]
9
2019-03-31T03:46:51.000Z
2020-05-20T13:05:06.000Z
tests/custom/test_clean_dateTime.py
arkhn/cleaning-scripts
ffe88598b476b2e6b53fd06e8ce6092ef0351b19
[ "Apache-2.0" ]
18
2019-09-11T09:19:45.000Z
2021-07-13T09:16:23.000Z
tests/custom/test_clean_dateTime.py
arkhn/cleaning-scripts
ffe88598b476b2e6b53fd06e8ce6092ef0351b19
[ "Apache-2.0" ]
2
2019-09-18T15:20:10.000Z
2021-07-25T06:46:57.000Z
import pytest from scripts.custom import clean_dateTime @pytest.mark.parametrize( "test_input,expected", [ ("2015", "2015"), ("2015-02", "2015-02"), ("201502", "2015-02"), ("2015-02-07", "2015-02-07"), ("20150207", "2015-02-07"), ("2015-02-07T13:28:17", "2015-0...
31.481481
71
0.555294
130
850
3.576923
0.292308
0.193548
0.165591
0.195699
0.346237
0.275269
0.275269
0.275269
0.275269
0.275269
0
0.41194
0.211765
850
26
72
32.692308
0.28209
0
0
0
0
0
0.46
0.235294
0
0
0
0
0.043478
1
0.043478
false
0
0.086957
0
0.130435
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
2f0957f3db94b5ef71452361a51b110a5a627030
14,927
py
Python
mlprogram/entrypoint/train.py
HiroakiMikami/mlprogram
573e94c567064705fa65267dd83946bf183197de
[ "MIT" ]
9
2020-05-24T11:25:01.000Z
2022-03-28T15:32:10.000Z
mlprogram/entrypoint/train.py
HiroakiMikami/mlprogram
573e94c567064705fa65267dd83946bf183197de
[ "MIT" ]
87
2020-05-09T08:56:55.000Z
2022-03-31T14:46:45.000Z
mlprogram/entrypoint/train.py
HiroakiMikami/NL2Prog
573e94c567064705fa65267dd83946bf183197de
[ "MIT" ]
3
2021-02-22T20:38:29.000Z
2021-11-11T18:48:44.000Z
import os import traceback from dataclasses import dataclass from typing import Any, Callable, List, Optional, Union import pytorch_pfn_extras as ppe import torch from pytorch_pfn_extras.training import extension, extensions from torch import nn from torch.utils.data import DataLoader from mlprogram import distribute...
37.599496
88
0.554231
1,469
14,927
5.397549
0.1484
0.018918
0.027242
0.018161
0.53752
0.479506
0.454156
0.436751
0.379493
0.359945
0
0.002602
0.356401
14,927
396
89
37.694444
0.822733
0.005158
0
0.486647
0
0
0.043048
0.004716
0
0
0
0
0
1
0.04451
false
0
0.038576
0.011869
0.139466
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f09b816cae5d16accf1cca62376da23fd995e52
3,381
py
Python
visualization.py
aditya-srikanth/Data-Mining-Assignment-3
7dc44d7ca8884680130db9b52a75e3036cf2f8a7
[ "MIT" ]
null
null
null
visualization.py
aditya-srikanth/Data-Mining-Assignment-3
7dc44d7ca8884680130db9b52a75e3036cf2f8a7
[ "MIT" ]
null
null
null
visualization.py
aditya-srikanth/Data-Mining-Assignment-3
7dc44d7ca8884680130db9b52a75e3036cf2f8a7
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import math import numpy as np class Visualization: """ This class contains methods for reducing the dimensions of the points to 2-D and visualization of the reduced points. Attributes ---------- OUTLIERS : list List of points marked as outlier...
34.85567
121
0.55102
405
3,381
4.51358
0.259259
0.060175
0.05744
0.036105
0.501094
0.410284
0.342451
0.272429
0.272429
0.272429
0
0.014072
0.348418
3,381
97
122
34.85567
0.815706
0.317658
0
0.2
0
0
0.018443
0
0
0
0
0
0
1
0.088889
false
0
0.066667
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f0b0a77f9fa1f45efa368882434f52b3044f388
322
py
Python
20211001_PythonIntro/ex2/ex2.py
alessandro-massarenti/Cybersec2021
3d6dcc4b255dd425b1be66d440df1d94d5ea5ac0
[ "BSD-3-Clause" ]
15
2021-10-01T16:10:48.000Z
2022-02-19T20:45:35.000Z
20211001_PythonIntro/ex2/ex2.py
alessandro-massarenti/Cybersec2021
3d6dcc4b255dd425b1be66d440df1d94d5ea5ac0
[ "BSD-3-Clause" ]
null
null
null
20211001_PythonIntro/ex2/ex2.py
alessandro-massarenti/Cybersec2021
3d6dcc4b255dd425b1be66d440df1d94d5ea5ac0
[ "BSD-3-Clause" ]
2
2021-11-06T08:32:41.000Z
2021-12-11T16:18:54.000Z
from operator import add, itruediv, mul, sub ops = [add, sub, mul, itruediv] a = float(input("Inserisci un numero: ")) b = float(input("Inserisci un altro numero: ")) op = int( input("Inserisci un operatore (0 per addizione, 1 per sottrazione, 2 per moltiplicazione oppure 3 per divisione: ") ) print(ops[op](a, b)...
29.272727
119
0.695652
49
322
4.571429
0.612245
0.1875
0.214286
0.1875
0
0
0
0
0
0
0
0.014981
0.170807
322
10
120
32.2
0.82397
0
0
0
0
0
0.478261
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.125
0
0
0
null
0
1
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
2
2f0df6e28987fcaa913b236b22575fcae954bfe4
3,639
py
Python
robotidy/transformers/ext_ExtraIndentForKeywordArguments.py
josflorap/robotframework-tidy
9d4e1ccc6a50c415187468305235830f80f3373b
[ "Apache-2.0" ]
null
null
null
robotidy/transformers/ext_ExtraIndentForKeywordArguments.py
josflorap/robotframework-tidy
9d4e1ccc6a50c415187468305235830f80f3373b
[ "Apache-2.0" ]
null
null
null
robotidy/transformers/ext_ExtraIndentForKeywordArguments.py
josflorap/robotframework-tidy
9d4e1ccc6a50c415187468305235830f80f3373b
[ "Apache-2.0" ]
null
null
null
from robot.api.parsing import ModelTransformer, get_model, ModelVisitor, Token import os, sys keywordlist = [] other_keywords = [] used_keywords = [] class ext_ExtraIndentForKeywordArguments(ModelTransformer): def __init__(self): self.cont = 0 def visit_File(self, node): # Get keywords in py...
50.541667
140
0.569387
437
3,639
4.636156
0.242563
0.049358
0.019743
0.027641
0.441757
0.37463
0.245805
0.135242
0.076012
0.076012
0
0.009858
0.303105
3,639
71
141
51.253521
0.789038
0.141797
0
0.245283
0
0
0.031501
0
0
0
0
0
0
1
0.09434
false
0
0.037736
0
0.207547
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
0
0
0
0
0
0
0
0
0
0
1
0
2f0e2ccc0b7fb78f69f72c37d56b7289930132ef
6,581
py
Python
Common/Strategies/TechIndicators/MacdStrategy.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
2
2020-03-04T11:18:38.000Z
2020-05-10T15:36:42.000Z
Common/Strategies/TechIndicators/MacdStrategy.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
6
2020-03-30T16:42:47.000Z
2021-12-13T20:37:21.000Z
Common/Strategies/TechIndicators/MacdStrategy.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
1
2020-04-14T11:26:16.000Z
2020-04-14T11:26:16.000Z
from typing import Tuple import pandas as pd import numpy as np import matplotlib.pyplot as plt from Common.Strategies.TechIndicators.AbstractTechStrategy import AbstractTechStrategy from Common.TechIndicators.MacdIndicator import MacdIndicator class MacdStrategy(AbstractTechStrategy): _macd_indicator: MacdIndica...
46.34507
124
0.621942
856
6,581
4.502336
0.146028
0.128179
0.158796
0.062273
0.573949
0.447846
0.375714
0.305656
0.281266
0.281266
0
0.01481
0.251026
6,581
141
125
46.673759
0.767093
0.018538
0
0.193548
0
0
0.019377
0
0
0
0
0
0
1
0.056452
false
0
0.048387
0.008065
0.169355
0.016129
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f1305b235214a028b433be662b9539aa5ea50e7
7,572
py
Python
dayu_widgets/wizard.py
xiaonuoAndy/dayu_widgets
0a87e40b5b3b10e9f1f3f98c17a252c107118257
[ "MIT" ]
null
null
null
dayu_widgets/wizard.py
xiaonuoAndy/dayu_widgets
0a87e40b5b3b10e9f1f3f98c17a252c107118257
[ "MIT" ]
null
null
null
dayu_widgets/wizard.py
xiaonuoAndy/dayu_widgets
0a87e40b5b3b10e9f1f3f98c17a252c107118257
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################### # Author: Mu yanru # Date : 2018.5 # Email : muyanru345@163.com ################################################################### from collections import defaultdict import utils from qt import * from s...
34.108108
100
0.633386
876
7,572
5.221461
0.207763
0.035418
0.0446
0.019676
0.183865
0.081329
0.069961
0.049847
0.018365
0
0
0.006554
0.234284
7,572
221
101
34.262443
0.782339
0.029583
0
0.093567
0
0.005848
0.1267
0.006245
0
0
0
0
0
1
0.111111
false
0.017544
0.040936
0.023392
0.251462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f14ec3187ef5944e2d523b10e6eabf13148caae
897
py
Python
examples/TechChangeModel.py
timkittel/PyViability
63b628df47ab506e9317a908a63a49a556232137
[ "BSD-2-Clause" ]
null
null
null
examples/TechChangeModel.py
timkittel/PyViability
63b628df47ab506e9317a908a63a49a556232137
[ "BSD-2-Clause" ]
null
null
null
examples/TechChangeModel.py
timkittel/PyViability
63b628df47ab506e9317a908a63a49a556232137
[ "BSD-2-Clause" ]
null
null
null
from __future__ import division, print_function, generators import numpy as np pi = np.pi def techChange_rhs(uB_pB, t, rvar, pBmin, pE, delta, smax, sBmax): uB, pB = uB_pB if sBmax == 0.: p = pE else: if smax < sBmax * uB: p = pE + smax / uB else: p = s...
20.860465
68
0.528428
133
897
3.466165
0.308271
0.052061
0.095445
0.039046
0.416486
0.416486
0.416486
0.416486
0.416486
0.416486
0
0.013051
0.316611
897
42
69
21.357143
0.738989
0.040134
0
0.384615
0
0
0
0
0
0
0
0
0
1
0.115385
false
0
0.076923
0
0.307692
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f1545a93541c971b7ff89f3c71a62f913a542c9
2,502
py
Python
tests/test_heif.py
Cykooz/cykooz.heif
cfd60687406763503a57fe949bdf01fb9997cae8
[ "MIT" ]
5
2020-03-05T20:31:23.000Z
2021-11-24T00:22:18.000Z
tests/test_heif.py
Cykooz/cykooz.heif
cfd60687406763503a57fe949bdf01fb9997cae8
[ "MIT" ]
3
2021-01-14T15:23:04.000Z
2021-11-24T00:30:37.000Z
tests/test_heif.py
Cykooz/cykooz.heif
cfd60687406763503a57fe949bdf01fb9997cae8
[ "MIT" ]
1
2020-06-12T01:29:10.000Z
2020-06-12T01:29:10.000Z
# -*- coding: utf-8 -*- """ :Authors: cykooz :Date: 23.06.2019 """ from pathlib import Path import piexif import pytest from PIL import Image from cykooz.heif.errors import HeifError from cykooz.heif.image import RawHeifImage from cykooz.heif.pil import register_heif_opener @pytest.fixture(scope='session', autouse=...
24.529412
79
0.63709
355
2,502
4.315493
0.287324
0.082245
0.031332
0.041775
0.510444
0.456919
0.405352
0.362272
0.362272
0.313969
0
0.062984
0.225819
2,502
101
80
24.772277
0.72793
0.028777
0
0.378378
0
0
0.082197
0
0
0
0
0
0.324324
1
0.094595
false
0
0.094595
0.013514
0.202703
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f15770186ad88ae65932854e1cbbe4f54f58e9d
3,960
py
Python
ambari-agent/src/main/python/ambari_agent/StatusCommandsExecutor.py
risdenk/ambari
3809bdc6d5fe367c2c3207812ee42856214db8de
[ "Apache-2.0" ]
null
null
null
ambari-agent/src/main/python/ambari_agent/StatusCommandsExecutor.py
risdenk/ambari
3809bdc6d5fe367c2c3207812ee42856214db8de
[ "Apache-2.0" ]
1
2018-10-22T17:50:00.000Z
2018-10-22T17:50:00.000Z
ambari-agent/src/main/python/ambari_agent/StatusCommandsExecutor.py
risdenk/ambari
3809bdc6d5fe367c2c3207812ee42856214db8de
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License");...
41.684211
195
0.769192
479
3,960
6.256785
0.415449
0.047714
0.026693
0.024024
0.102436
0.058058
0.028695
0
0
0
0
0.002991
0.155808
3,960
94
196
42.12766
0.893509
0.330303
0
0.115385
0
0.019231
0.161782
0.044538
0
0
0
0
0
1
0.096154
false
0
0.153846
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f16819a3d5eb873ef8eef277cfd895042d5e5d1
5,630
py
Python
blender/addons/2.8/mifth_tools/mifth_tools_ui.py
feynmanliang/mifthtools
cf99bc5811215a8747c43d84895ba4fa806812b7
[ "BSD-3-Clause" ]
null
null
null
blender/addons/2.8/mifth_tools/mifth_tools_ui.py
feynmanliang/mifthtools
cf99bc5811215a8747c43d84895ba4fa806812b7
[ "BSD-3-Clause" ]
null
null
null
blender/addons/2.8/mifth_tools/mifth_tools_ui.py
feynmanliang/mifthtools
cf99bc5811215a8747c43d84895ba4fa806812b7
[ "BSD-3-Clause" ]
null
null
null
import bpy from bpy.props import * from bpy.types import Operator, AddonPreferences class MFT_PT_PanelPose(bpy.types.Panel): bl_label = "Bones" bl_space_type = 'VIEW_3D' bl_region_type = 'UI' bl_context = "posemode" bl_category = 'Mifth' # bl_options = {'DEFAULT_CLOSED'} def draw(self, co...
37.533333
89
0.675311
574
5,630
6.480836
0.250871
0.053763
0.063978
0.020161
0.365323
0.270161
0.228495
0.228495
0.206452
0.206452
0
0.001107
0.197513
5,630
149
90
37.785235
0.822266
0.049911
0
0.392857
0
0
0.27111
0.058603
0
0
0
0
0
1
0.044643
false
0
0.026786
0
0.339286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f1729df6cf48161f37c48656ac64fd0cceb2a63
11,830
py
Python
fabfile.py
bbayles/link
48cf656fac6c31c0aa82152ce68767e469ed5f06
[ "Apache-2.0" ]
9
2015-03-18T18:23:41.000Z
2016-11-18T09:16:02.000Z
fabfile.py
bbayles/link
48cf656fac6c31c0aa82152ce68767e469ed5f06
[ "Apache-2.0" ]
3
2015-11-07T16:56:51.000Z
2016-11-22T19:32:09.000Z
fabfile.py
bbayles/link
48cf656fac6c31c0aa82152ce68767e469ed5f06
[ "Apache-2.0" ]
7
2015-05-15T18:12:40.000Z
2017-03-16T18:42:25.000Z
""" Fabfile for deploying and setting up code that looks like the production environment. it also makes it easy to start up the servers If you want to run on the localhost you may need to first do:: rm -rf ~/.ssh/known_hosts """ from __future__ import with_statement import os import re from fabric.api import ...
28.995098
129
0.608876
1,650
11,830
4.267273
0.24
0.018179
0.021872
0.005113
0.067036
0.028121
0
0
0
0
0
0.01081
0.272781
11,830
407
130
29.066339
0.807625
0.055621
0
0.142857
0
0.008658
0.264815
0.012666
0
0
0
0.004914
0
0
null
null
0
0.030303
null
null
0.099567
0
0
0
null
0
0
0
0
0
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
2f17c5de8625cd4bead31cfebf12c8291e262c52
183
py
Python
jails/routing.py
himrock922/jaisting
a1a53371043c05f0bb82fb7e2e3e16aecb1eba42
[ "Apache-2.0" ]
9
2019-03-23T08:38:58.000Z
2021-01-27T05:54:32.000Z
jails/routing.py
himrock922/jaisting
a1a53371043c05f0bb82fb7e2e3e16aecb1eba42
[ "Apache-2.0" ]
16
2019-03-23T07:35:01.000Z
2022-01-22T04:23:46.000Z
jails/routing.py
himrock922/jaisting
a1a53371043c05f0bb82fb7e2e3e16aecb1eba42
[ "Apache-2.0" ]
1
2019-03-24T13:17:18.000Z
2019-03-24T13:17:18.000Z
from channels.routing import ProtocolTypeRouter from django.urls import re_path from . import consumers websocket_urlpatterns = [ re_path(r'/websocket', consumers.VNCConsumer) ]
22.875
49
0.803279
22
183
6.545455
0.636364
0.083333
0
0
0
0
0
0
0
0
0
0
0.125683
183
7
50
26.142857
0.9
0
0
0
0
0
0.054645
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
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
1
0
0
0
0
3
2f190acf1519186091c3bd6551e361c43ae96fd6
515
py
Python
layers/poky/meta/lib/oeqa/runtime/case.py
dtischler/px30-test
55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f
[ "Apache-2.0" ]
53
2018-02-28T08:51:32.000Z
2022-02-28T06:49:23.000Z
layers/poky/meta/lib/oeqa/runtime/case.py
dtischler/px30-test
55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f
[ "Apache-2.0" ]
27
2018-01-25T00:26:53.000Z
2020-08-09T05:20:04.000Z
layers/poky/meta/lib/oeqa/runtime/case.py
dtischler/px30-test
55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f
[ "Apache-2.0" ]
51
2018-02-21T04:46:08.000Z
2022-03-02T04:20:41.000Z
# Copyright (C) 2016 Intel Corporation # Released under the MIT license (see COPYING.MIT) from oeqa.core.case import OETestCase from oeqa.utils.package_manager import install_package, uninstall_package class OERuntimeTestCase(OETestCase): # target instance set by OERuntimeTestLoader. target = None def se...
28.611111
73
0.735922
59
515
6.338983
0.610169
0.042781
0.139037
0.160428
0
0
0
0
0
0
0
0.009547
0.186408
515
17
74
30.294118
0.883055
0.250485
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
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
2f194f4c6d0e43f1d9af761e30aabf62de1d5d85
393
py
Python
tests/analysis/test_general.py
trumanw/ScaffoldGraph
a594e5c5effe6c5e45c0061a235ccbeb64e416f9
[ "MIT" ]
121
2019-12-12T15:30:16.000Z
2022-02-28T02:00:54.000Z
tests/analysis/test_general.py
trumanw/ScaffoldGraph
a594e5c5effe6c5e45c0061a235ccbeb64e416f9
[ "MIT" ]
8
2020-04-04T15:37:26.000Z
2021-11-17T07:30:31.000Z
tests/analysis/test_general.py
trumanw/ScaffoldGraph
a594e5c5effe6c5e45c0061a235ccbeb64e416f9
[ "MIT" ]
28
2019-12-16T11:58:53.000Z
2021-11-19T09:57:46.000Z
""" scaffoldgraph tests.analysis.test_general """ from scaffoldgraph.analysis import get_singleton_scaffolds, get_virtual_scaffolds from ..test_network import long_test_network def test_get_virtual_scaffolds(network): v = get_virtual_scaffolds(network) assert len(v) == 19 def test_get_singleton_scaffolds(n...
23.117647
81
0.78626
52
393
5.596154
0.384615
0.219931
0.216495
0.178694
0
0
0
0
0
0
0
0.008798
0.132316
393
16
82
24.5625
0.844575
0.104326
0
0
0
0
0
0
0
0
0
0
0.25
1
0.25
false
0
0.25
0
0.5
0
0
0
0
null
1
1
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
1
0
0
0
0
0
0
0
4
2f1989e325bb85e0738bbeae4175fa2a163031d0
1,750
py
Python
Problem 001-150 Python/pb035.py
Adamssss/projectEuler
25881b1bd82876e81197756f62ab5b0d73e3e6c8
[ "MIT" ]
2
2015-02-11T05:47:42.000Z
2015-02-11T05:47:51.000Z
Problem 001-150 Python/pb035.py
Adamssss/projectEuler
25881b1bd82876e81197756f62ab5b0d73e3e6c8
[ "MIT" ]
1
2015-04-13T06:36:21.000Z
2015-04-13T06:36:21.000Z
Problem 001-150 Python/pb035.py
Adamssss/projectEuler
25881b1bd82876e81197756f62ab5b0d73e3e6c8
[ "MIT" ]
null
null
null
import math import time t1 = time.time() N = 1000000 n = (N+1)//2 p = [True]*(n) i = 1 prime = [2] while i < n: if p[i]: t = 2*i+1 prime.append(t) j = i while j < n: p[j] = False j += t i += 1 def isPrime(item): root = math.floor(math.sqrt...
18.617021
58
0.430857
213
1,750
3.539906
0.248826
0.015915
0.018568
0
0
0
0
0
0
0
0
0.051255
0.453714
1,750
93
59
18.817204
0.737448
0.028
0
0.178082
0
0
0.002946
0
0
0
0
0
0
1
0.027397
false
0
0.027397
0
0.109589
0.027397
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f19e1c9987607e703c57f23deb45035eb248b71
87
py
Python
izone/apps/secret/apps.py
shenjl/vmatrix
8f510d04005aa707cb6b296825f459f852cb59f6
[ "MIT" ]
null
null
null
izone/apps/secret/apps.py
shenjl/vmatrix
8f510d04005aa707cb6b296825f459f852cb59f6
[ "MIT" ]
2
2020-02-11T23:34:28.000Z
2020-06-05T17:33:09.000Z
izone/apps/secret/apps.py
selonsy/vmatrix
8f510d04005aa707cb6b296825f459f852cb59f6
[ "MIT" ]
null
null
null
from django.apps import AppConfig class SecretConfig(AppConfig): name = 'secret'
14.5
33
0.747126
10
87
6.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.172414
87
5
34
17.4
0.902778
0
0
0
0
0
0.068966
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
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
1
0
1
0
0
4
2f1a5c2760e9a1b86d6eb2f562c21e3dbc87be05
2,190
py
Python
BAP/adapters.py
EleutherAGI/summarisation
d432873e1ba171f47371b8b0df7235478b52ca99
[ "CC-BY-4.0" ]
11
2021-05-12T14:11:58.000Z
2022-01-25T04:23:38.000Z
BAP/adapters.py
EleutherAGI/summarisation
d432873e1ba171f47371b8b0df7235478b52ca99
[ "CC-BY-4.0" ]
3
2021-05-13T11:37:35.000Z
2021-05-13T11:50:15.000Z
BAP/adapters.py
EleutherAGI/summarisation
d432873e1ba171f47371b8b0df7235478b52ca99
[ "CC-BY-4.0" ]
null
null
null
import torch import torch.nn as nn from collections import OrderedDict class AdapterLayer(nn.Module): def __init__(self, input_size, reduction_factor): super(AdapterLayer, self).__init__() self.skip_adapter = False self.adapter = nn.Sequential(nn.Linear(input_size, input_size//reduc...
39.818182
111
0.594977
281
2,190
4.459075
0.241993
0.083799
0.075818
0.057462
0.48763
0.422985
0.408619
0.379888
0.322426
0.322426
0
0.003856
0.289498
2,190
55
112
39.818182
0.801414
0.028767
0
0.111111
0
0
0.006031
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f1b669092b8b167d53d53cce79bec39a591e1c1
3,934
py
Python
tests/test_PrependError.py
hutoTUM/macke-opt-llvm
95830cb4e1416a6d1fb538f2b91d1c4720d4bde7
[ "Apache-2.0" ]
4
2018-05-11T08:33:46.000Z
2019-12-16T01:49:37.000Z
tests/test_PrependError.py
aheroine/use-llvm-opt
407102740f563f57a7abb952e198f6a65800deaa
[ "Apache-2.0" ]
null
null
null
tests/test_PrependError.py
aheroine/use-llvm-opt
407102740f563f57a7abb952e198f6a65800deaa
[ "Apache-2.0" ]
null
null
null
import unittest import os import re import subprocess class TestPrependError(unittest.TestCase): def test_symmain_directory(self): self.assertIn("LLVMBIN", os.environ, "Path to llvm-bin not set") self.assertIn("KLEEBIN", os.environ, "Path to klee-bin not set") bitcodefile = "bin/klee_sym...
36.766355
73
0.576004
429
3,934
5.242424
0.251748
0.048021
0.0747
0.081814
0.847488
0.847488
0.847488
0.847488
0.847488
0.847488
0
0.024587
0.276309
3,934
106
74
37.113208
0.765367
0.061261
0
0.769231
0
0
0.2654
0.071913
0
0
0
0
0.179487
1
0.025641
false
0
0.051282
0
0.089744
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
2f1da8ae305ab06e7ec0677f650d3ae476d39207
1,851
py
Python
water_modelling/hydrus/desktop/hydrus_desktop_deployer.py
Water-Modelling-Agh/Hydrus-Modflow-Syngery-Engine
4b28f75fb74647d6453385a893149a48f797eeed
[ "MIT" ]
null
null
null
water_modelling/hydrus/desktop/hydrus_desktop_deployer.py
Water-Modelling-Agh/Hydrus-Modflow-Syngery-Engine
4b28f75fb74647d6453385a893149a48f797eeed
[ "MIT" ]
null
null
null
water_modelling/hydrus/desktop/hydrus_desktop_deployer.py
Water-Modelling-Agh/Hydrus-Modflow-Syngery-Engine
4b28f75fb74647d6453385a893149a48f797eeed
[ "MIT" ]
null
null
null
import os import subprocess from typing import Optional from hydrus import hydrus_log_analyzer from hydrus.hydrus_deployer_interface import IHydrusDeployer from simulation.simulation_error import SimulationError from utils import path_formatter class _HydrusDesktopDeployer(IHydrusDeployer): LOG_FILE = "simulatio...
41.133333
98
0.703944
228
1,851
5.434211
0.359649
0.045198
0.041969
0.041162
0.17272
0.14205
0.109766
0
0
0
0
0.000683
0.209076
1,851
44
99
42.068182
0.845628
0.058887
0
0
0
0
0.105869
0.020713
0
0
0
0
0
1
0.15625
false
0
0.21875
0.0625
0.5625
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
0
0
0
0
0
0
1
0
0
1
2f1dfd7483d1c7356a889232b88033380a6fbee8
3,600
py
Python
src/openprocurement/framework/electroniccatalogue/views/submission.py
ProzorroUKR/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
10
2020-02-18T01:56:21.000Z
2022-03-28T00:32:57.000Z
src/openprocurement/framework/electroniccatalogue/views/submission.py
quintagroup/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
26
2018-07-16T09:30:44.000Z
2021-02-02T17:51:30.000Z
src/openprocurement/framework/electroniccatalogue/views/submission.py
ProzorroUKR/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
15
2019-08-08T10:50:47.000Z
2022-02-05T14:13:36.000Z
from openprocurement.api.utils import APIResource, json_view, context_unpack, get_now, generate_id from openprocurement.framework.core.utils import ( submissionsresource, apply_patch, save_qualification, ) from openprocurement.framework.core.validation import ( validate_patch_submission_data, valida...
36.734694
102
0.656111
329
3,600
6.87538
0.258359
0.053492
0.03183
0.038904
0.179487
0.179487
0.179487
0.146773
0.070734
0.070734
0
0
0.249444
3,600
97
103
37.113402
0.837158
0.019444
0
0.175
1
0
0.136664
0.016939
0
0
0
0.010309
0
1
0.0375
false
0
0.05
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
1
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
2
2f222448d0c305c6158a8a8cb410ef32dcbf5429
7,090
py
Python
util.py
gmshashank/pytorch_yolo
9736006639acba9743b4e3ff56285668357097f9
[ "MIT" ]
null
null
null
util.py
gmshashank/pytorch_yolo
9736006639acba9743b4e3ff56285668357097f9
[ "MIT" ]
null
null
null
util.py
gmshashank/pytorch_yolo
9736006639acba9743b4e3ff56285668357097f9
[ "MIT" ]
null
null
null
from __future__ import division from torch.autograd import Variable import cv2 import numpy as np import torch def bbox_iou(box1, box2): # returns IoU of two bounding boxes b1_x1, b1_y1, b1_x2, b1_y2 = box1[:, 0], box1[:, 1], box1[:, 2], box1[:, 3] b2_x1, b2_y1, b2_x2, b2_y2 = box2[:, 0], box2...
34.754902
87
0.572779
923
7,090
4.141928
0.187432
0.045776
0.047083
0.017787
0.210829
0.120848
0.11457
0.06644
0.064347
0.064347
0
0.039702
0.300141
7,090
203
88
34.926108
0.730754
0.065303
0
0.108108
0
0
0.000468
0
0
0
0
0
0
1
0.040541
false
0
0.033784
0
0.114865
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f2228d6057ad9c4100fbf0aed98528ab280f726
743
py
Python
922.py
BLUECARVIN/LeetCode
0d085ed2dbee47c57d22ac368872161076369ff9
[ "MIT" ]
null
null
null
922.py
BLUECARVIN/LeetCode
0d085ed2dbee47c57d22ac368872161076369ff9
[ "MIT" ]
null
null
null
922.py
BLUECARVIN/LeetCode
0d085ed2dbee47c57d22ac368872161076369ff9
[ "MIT" ]
null
null
null
class Solution: def sortArrayByParityII(self, A: List[int]) -> List[int]: A.sort(key=lambda x: (x % 2 != 0)) b = [] for i in range(int(len(A) / 2)): b.append(A[i]) b.append(A[-(1+i)]) return b # ---------- 320ms, 15.9MB ---------- # class Solution: def so...
28.576923
61
0.414536
95
743
3.242105
0.347368
0.090909
0.058442
0.107143
0.441558
0.350649
0.350649
0.350649
0.350649
0.350649
0
0.038793
0.375505
743
26
62
28.576923
0.625
0.096904
0
0.173913
0
0
0
0
0
0
0
0
0
1
0.086957
false
0
0
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f224c8f917dc2d903a60f297bdfff121e03b7dc
1,190
py
Python
mainConsumer.py
cmoshe390/pythonProj
7123255abbb53e4330c9548be16dd9e237f8a51d
[ "Unlicense", "MIT" ]
null
null
null
mainConsumer.py
cmoshe390/pythonProj
7123255abbb53e4330c9548be16dd9e237f8a51d
[ "Unlicense", "MIT" ]
null
null
null
mainConsumer.py
cmoshe390/pythonProj
7123255abbb53e4330c9548be16dd9e237f8a51d
[ "Unlicense", "MIT" ]
null
null
null
from rabbitConsumer import * from socketConsumer import SocketConsumer from dlx import * import threading import sys if __name__ == '__main__': work_with = sys.argv[1] r_k = ['*.jpg', '*.jpeg', '#'] threads = [] dlx = ReconnectingDlx() threads.append(threading.Thread(target=dlx.run)) for j...
34
118
0.561345
127
1,190
4.96063
0.425197
0.038095
0.052381
0.088889
0.384127
0.27619
0.27619
0.27619
0.27619
0.27619
0
0.008728
0.32605
1,190
34
119
35
0.776808
0.172269
0
0
0
0
0.107034
0
0
0
0
0
0
1
0
false
0
0.217391
0
0.217391
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f237c48f402b5312560d0ad14f693b93cf182f6
1,797
py
Python
backend/flask-api/migrations/versions/6fdbb9233bd6_.py
lucasbibianot/inova-cnj-time16
e621d7027bd462d348e233ffd6ed88648c53704b
[ "Apache-2.0" ]
null
null
null
backend/flask-api/migrations/versions/6fdbb9233bd6_.py
lucasbibianot/inova-cnj-time16
e621d7027bd462d348e233ffd6ed88648c53704b
[ "Apache-2.0" ]
null
null
null
backend/flask-api/migrations/versions/6fdbb9233bd6_.py
lucasbibianot/inova-cnj-time16
e621d7027bd462d348e233ffd6ed88648c53704b
[ "Apache-2.0" ]
2
2020-10-19T22:03:31.000Z
2020-11-29T21:22:33.000Z
"""Mapeamento das tabelas para persistir os processos datajud Revision ID: 6fdbb9233bd6 Revises: 8d2eb6149b1d Create Date: 2020-10-18 09:22:06.650559 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '6fdbb9233bd6' down_revision = '8d2eb6149b1d' branch_labels = N...
36.673469
76
0.709516
235
1,797
5.26383
0.340426
0.077607
0.145513
0.169766
0.493937
0.362975
0.31447
0.31447
0.153597
0.090542
0
0.043142
0.135782
1,797
48
77
37.4375
0.753381
0.189204
0
0.066667
0
0
0.230282
0.033099
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.133333
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
2f239d716de5c5b3e73637e42e5427fd0197839a
1,991
py
Python
analyses/quantifications/scripts/2019_11_12_CC414022_quantifications.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
analyses/quantifications/scripts/2019_11_12_CC414022_quantifications.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
analyses/quantifications/scripts/2019_11_12_CC414022_quantifications.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
""" A set of CC412022, CC416168 were run back to back without blanks on 2019-11-12. Rough quantification is done by the below. """ __package__ = 'Z' from datetime import datetime from settings import CORE_DIR, DB_NAME from IO.db import connect_to_db, GcRun, Integration, Standard, SampleQuant from processing import b...
40.632653
109
0.70668
260
1,991
5.215385
0.330769
0.026549
0.058997
0.066372
0.427729
0.412979
0.259587
0.259587
0.20649
0.20649
0
0.058752
0.179307
1,991
48
110
41.479167
0.771114
0.113009
0
0.193548
0
0
0.044963
0.012521
0
0
0
0
0
1
0
false
0
0.16129
0
0.16129
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f25439acb972903c75d41093b0f43be910845ab
310
py
Python
main.py
mesmacosta/datacatalog-fileset-enricher
0792632fc181b13696f89ef3335da4e2ce1dca4a
[ "MIT" ]
3
2020-04-01T15:28:25.000Z
2020-06-06T18:30:34.000Z
main.py
mesmacosta/datacatalog-fileset-enricher
0792632fc181b13696f89ef3335da4e2ce1dca4a
[ "MIT" ]
null
null
null
main.py
mesmacosta/datacatalog-fileset-enricher
0792632fc181b13696f89ef3335da4e2ce1dca4a
[ "MIT" ]
1
2020-07-09T06:05:24.000Z
2020-07-09T06:05:24.000Z
import logging import sys from datacatalog_fileset_enricher import datacatalog_fileset_enricher_cli if __name__ == '__main__': logging.basicConfig(level=logging.INFO) argv = sys.argv datacatalog_fileset_enricher_cli.\ DatacatalogFilesetEnricherCLI.run(argv[1:] if len(argv) > 0 else argv)
31
78
0.780645
38
310
5.947368
0.552632
0.238938
0.345133
0.256637
0
0
0
0
0
0
0
0.007547
0.145161
310
9
79
34.444444
0.845283
0
0
0
0
0
0.025806
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
1
1
1
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
1
0
0
0
0
5
2f2590662675a6fa11503eafa56e671b78fe7a23
10,473
py
Python
srcds/events/csgo.py
w4rum/pysrcds
a9dbc198c6f087757e40d9af14ca8de9a39cef74
[ "MIT" ]
17
2015-06-26T08:49:07.000Z
2021-09-11T09:02:40.000Z
srcds/events/csgo.py
w4rum/pysrcds
a9dbc198c6f087757e40d9af14ca8de9a39cef74
[ "MIT" ]
5
2015-04-27T13:44:58.000Z
2022-02-07T19:00:42.000Z
srcds/events/csgo.py
w4rum/pysrcds
a9dbc198c6f087757e40d9af14ca8de9a39cef74
[ "MIT" ]
12
2015-02-13T15:34:47.000Z
2021-09-11T09:02:30.000Z
# Copyright (C) 2013 Peter Rowlands """csgo events module Contains event classes for CS:S and CS:GO events """ from __future__ import absolute_import, unicode_literals from future.utils import python_2_unicode_compatible from .generic import (BaseEvent, PlayerEvent, PlayerTargetEvent, KillEvent, ...
36.491289
83
0.531175
1,070
10,473
4.945794
0.109346
0.084656
0.043084
0.031746
0.664588
0.63511
0.623394
0.623205
0.599017
0.580499
0
0.00736
0.338394
10,473
286
84
36.618881
0.756386
0.038575
0
0.554054
0
0.004505
0.123902
0.01897
0
0
0
0
0
1
0.067568
false
0
0.013514
0
0.202703
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f2781811c4aeb325fd30cc295a58030636b2c7d
695
py
Python
formacao-python/brasilidades/Telefone.py
hollowrm08/python-alura
eb43be24c7160b38f1598d8da25582bfe04ade29
[ "MIT" ]
null
null
null
formacao-python/brasilidades/Telefone.py
hollowrm08/python-alura
eb43be24c7160b38f1598d8da25582bfe04ade29
[ "MIT" ]
null
null
null
formacao-python/brasilidades/Telefone.py
hollowrm08/python-alura
eb43be24c7160b38f1598d8da25582bfe04ade29
[ "MIT" ]
null
null
null
import re class Telefone: padrao = "([0-9]{2,3})?([0-9]{2})([0-9]{4,5})([0-9]{4})" def __init__(self, telefone): if self.valida_telefone(telefone): self._numero = telefone else: raise ValueError("Número Incorreto!") def __str__(self): return self.format_n...
24.821429
100
0.579856
86
695
4.523256
0.383721
0.020566
0.015424
0
0
0
0
0
0
0
0
0.035433
0.269065
695
27
101
25.740741
0.730315
0
0
0.105263
0
0.105263
0.207194
0.151079
0
0
0
0
0
1
0.210526
false
0
0.052632
0.052632
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
2f27bd70a0bac448a69a312f5b0f06826fe66bdd
670
py
Python
Listing_19-1.py
PrinceChou/Play-Python-with-Alisa
808ab2744a99c548de4633b5707af27112bcdccf
[ "Apache-2.0" ]
null
null
null
Listing_19-1.py
PrinceChou/Play-Python-with-Alisa
808ab2744a99c548de4633b5707af27112bcdccf
[ "Apache-2.0" ]
null
null
null
Listing_19-1.py
PrinceChou/Play-Python-with-Alisa
808ab2744a99c548de4633b5707af27112bcdccf
[ "Apache-2.0" ]
null
null
null
# Listing_19-1.py # Copyright Warren & Carter Sande, 2013 # Released under MIT license http://www.opensource.org/licenses/mit-license.php # Version $version ---------------------------- # Trying out sounds in Pygame import pygame pygame.init() pygame.mixer.init() screen = pygame.display.set_mode([640,480]) pygame....
29.130435
81
0.649254
89
670
4.865169
0.674157
0.046189
0
0
0
0
0
0
0
0
0
0.032015
0.207463
670
22
82
30.454545
0.783428
0.444776
0
0
0
0
0.024793
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f2f6a510aa43446af03b23b36744744444b6c67
1,532
py
Python
docker_emperor/commands/context/set.py
workon-io/docker-emperor
d827bb2806494dcba97920dd83c5934d0a300089
[ "Apache-2.0" ]
null
null
null
docker_emperor/commands/context/set.py
workon-io/docker-emperor
d827bb2806494dcba97920dd83c5934d0a300089
[ "Apache-2.0" ]
null
null
null
docker_emperor/commands/context/set.py
workon-io/docker-emperor
d827bb2806494dcba97920dd83c5934d0a300089
[ "Apache-2.0" ]
null
null
null
import six import docker_emperor.logger as logger from docker_emperor.nodes.context import Context def run(root, *args, **kwargs): name = args[0].strip() if args else None if name: if name in root.project['contexts']: root.project.config['context'] = name logger.success(u'Cont...
39.282051
103
0.539817
189
1,532
4.333333
0.343915
0.094017
0.021978
0.087912
0.274725
0.114774
0.114774
0.114774
0.114774
0.114774
0
0.00484
0.325718
1,532
39
104
39.282051
0.787996
0
0
0.151515
0
0
0.171559
0
0
0
0
0
0
1
0.060606
false
0
0.090909
0
0.212121
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f2f9ccd72b1ada4944e0fb6d3cba3a6b6b3d3fc
759
py
Python
bnc/scripts/instance_lock_test.py
dotzhou/geodesy-ausgeoid
7d4fbcc1d88738de6ab84ccdba362407cbaeb117
[ "Apache-2.0" ]
null
null
null
bnc/scripts/instance_lock_test.py
dotzhou/geodesy-ausgeoid
7d4fbcc1d88738de6ab84ccdba362407cbaeb117
[ "Apache-2.0" ]
null
null
null
bnc/scripts/instance_lock_test.py
dotzhou/geodesy-ausgeoid
7d4fbcc1d88738de6ab84ccdba362407cbaeb117
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import absolute_import from __future__ import division from __future__ import print_function import sys import time from instance_lock import InstanceLock ################################################################################ def main(): print(sys.argv[0]) ...
19.973684
88
0.524374
79
759
4.632911
0.56962
0.131148
0.131148
0
0
0
0
0
0
0
0
0.012719
0.171278
759
37
89
20.513514
0.569157
0.02635
0
0
0
0
0.137153
0.0625
0
0
0
0
0
1
0.05
false
0
0.3
0
0.35
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f30a5cc06c93cc21cd8f006b81cb7e3a4339ab4
1,194
py
Python
examples/Sans_Sphere/guiFitSphere.py
DomiDre/modelexp
1ec25f71e739dac27716f9a8637fa6ab067499b9
[ "MIT" ]
null
null
null
examples/Sans_Sphere/guiFitSphere.py
DomiDre/modelexp
1ec25f71e739dac27716f9a8637fa6ab067499b9
[ "MIT" ]
null
null
null
examples/Sans_Sphere/guiFitSphere.py
DomiDre/modelexp
1ec25f71e739dac27716f9a8637fa6ab067499b9
[ "MIT" ]
null
null
null
import modelexp from modelexp.experiments.sas import Sans from modelexp.models.sas import Sphere from modelexp.data import XyeData from modelexp.fit import LevenbergMarquardt from modelexp.models.sas import InstrumentalResolution app = modelexp.App() app.setExperiment(Sans) dataRef = app.setData(XyeData) dataRef.lo...
39.8
99
0.742881
160
1,194
5.51875
0.3625
0.14496
0.11778
0.079275
0.15402
0.056625
0.056625
0
0
0
0
0.107414
0.118928
1,194
30
100
39.8
0.731939
0
0
0
0
0
0.080335
0.038494
0
0
0
0
0
1
0
false
0
0.26087
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f34112711a7f4d8c6fd98347f5ba592ca3f8d4f
345
py
Python
chapter03/demo_3_2_1_7_1.py
NetworkRanger/python-spider-project
f501e331a59608d9a321a0d7254fcbcf81b50ec2
[ "MIT" ]
1
2019-02-08T03:14:17.000Z
2019-02-08T03:14:17.000Z
chapter03/demo_3_2_1_7_1.py
NetworkRanger/python-spider-project
f501e331a59608d9a321a0d7254fcbcf81b50ec2
[ "MIT" ]
null
null
null
chapter03/demo_3_2_1_7_1.py
NetworkRanger/python-spider-project
f501e331a59608d9a321a0d7254fcbcf81b50ec2
[ "MIT" ]
null
null
null
#!/usr/bin/python2.7 # -*- coding:utf-8 -*- # Author: NetworkRanger # Date: 2019/1/9 上午12:35 """ 使用ProxyHandler在程序中动态设置代理 """ import urllib2 proxy = urllib2.ProxyHandler({'http': '127.0.0.1:8087'}) opener = urllib2.build_opener([proxy]) urllib2.install_opener(opener) response = urllib2.urlopen('http://www.zhichu.com...
21.5625
56
0.713043
46
345
5.304348
0.73913
0.098361
0
0
0
0
0
0
0
0
0
0.089457
0.092754
345
16
57
21.5625
0.690096
0.246377
0
0
0
0
0.177778
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
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
1
0
0
0
0
0
0
0
0
1
2f34c3e2255c1aaf56cddd4bf264efb8253bf37a
1,254
py
Python
scripts/run_metasv_bed2vcf.py
willrockout/metasv
b46f15cbe8a28941661855da6587451c971dc2e3
[ "BSD-2-Clause" ]
43
2015-01-12T20:58:24.000Z
2021-11-24T07:30:06.000Z
scripts/run_metasv_bed2vcf.py
willrockout/metasv
b46f15cbe8a28941661855da6587451c971dc2e3
[ "BSD-2-Clause" ]
80
2015-01-08T00:34:55.000Z
2022-02-16T08:30:34.000Z
scripts/run_metasv_bed2vcf.py
willrockout/metasv
b46f15cbe8a28941661855da6587451c971dc2e3
[ "BSD-2-Clause" ]
25
2015-04-30T06:30:28.000Z
2022-02-22T02:48:20.000Z
#!/usr/bin/env python import argparse import logging from metasv.generate_final_vcf import convert_metasv_bed_to_vcf if __name__ == "__main__": FORMAT = '%(levelname)s %(asctime)-15s %(name)-20s %(message)s' logging.basicConfig(level=logging.INFO, format=FORMAT) logger = logging.getLogger(__name__) p...
41.8
75
0.651515
145
1,254
5.393103
0.4
0.069054
0.130435
0.080563
0.164962
0
0
0
0
0
0
0.004128
0.227273
1,254
30
76
41.8
0.80289
0.015949
0
0
1
0
0.200972
0
0
0
0
0
0
1
0
false
0.130435
0.130435
0
0.130435
0
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
1
0
0
0
0
0
2
2f373ae8b308ab8313e26c9ce9ba782726162914
2,273
py
Python
almanac/pages/abstract_page.py
welchbj/almanac
91db5921a27f7d089b4ad8463ffb6e1453c5126a
[ "MIT" ]
4
2020-08-04T10:59:10.000Z
2021-08-23T13:42:03.000Z
almanac/pages/abstract_page.py
welchbj/almanac
91db5921a27f7d089b4ad8463ffb6e1453c5126a
[ "MIT" ]
null
null
null
almanac/pages/abstract_page.py
welchbj/almanac
91db5921a27f7d089b4ad8463ffb6e1453c5126a
[ "MIT" ]
2
2021-07-20T04:49:22.000Z
2021-08-23T13:42:23.000Z
from __future__ import annotations from abc import ABC, abstractmethod, abstractproperty from typing import Any, Optional, Set from .page_path import PagePath, PagePathLike class AbstractPage(ABC): """The base abstract page interface.""" def __init__( self, path: PagePathLike, ) -> None...
21.647619
83
0.57985
252
2,273
5.035714
0.345238
0.044129
0.023641
0.022065
0.113475
0.048857
0.048857
0.048857
0.048857
0
0
0
0.33216
2,273
104
84
21.855769
0.835968
0.259569
0
0.40625
0
0
0.028828
0.019218
0
0
0
0
0
1
0.1875
false
0
0.0625
0.046875
0.390625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f3740dbe908121e76457672fb1354e03d0a203a
3,022
py
Python
examples/VTK/PerfTests/scene-export-time.py
ajpmaclean/trame
48ab4e80c6050a2bea8b04ef32fd7d8b2cc7f787
[ "BSD-3-Clause" ]
null
null
null
examples/VTK/PerfTests/scene-export-time.py
ajpmaclean/trame
48ab4e80c6050a2bea8b04ef32fd7d8b2cc7f787
[ "BSD-3-Clause" ]
null
null
null
examples/VTK/PerfTests/scene-export-time.py
ajpmaclean/trame
48ab4e80c6050a2bea8b04ef32fd7d8b2cc7f787
[ "BSD-3-Clause" ]
null
null
null
from trame import state from trame.html import vuetify, vtk from trame.layouts import SinglePage from vtkmodules.vtkImagingCore import vtkRTAnalyticSource from vtkmodules.vtkFiltersGeometry import vtkGeometryFilter from vtkmodules.vtkRenderingCore import ( vtkRenderer, vtkRenderWindow, vtkRenderWindowInter...
29.627451
81
0.617141
242
3,022
7.57438
0.475207
0.03928
0.065466
0.065466
0.032733
0
0
0
0
0
0
0.006381
0.118465
3,022
101
82
29.920792
0.681682
0.228657
0
0
0
0
0.05054
0
0
0
0
0
0
1
0.014706
false
0
0.117647
0
0.132353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f37d9b321c1b357a652919715d0a963e96430ee
601
py
Python
server/toolz_swap_app/migrations/0021_auto_20211217_2310.py
minerva-university/cs162-toolz-swap-service
d514d9b04118f26479cba71497c12dfa824c7c42
[ "MIT" ]
null
null
null
server/toolz_swap_app/migrations/0021_auto_20211217_2310.py
minerva-university/cs162-toolz-swap-service
d514d9b04118f26479cba71497c12dfa824c7c42
[ "MIT" ]
null
null
null
server/toolz_swap_app/migrations/0021_auto_20211217_2310.py
minerva-university/cs162-toolz-swap-service
d514d9b04118f26479cba71497c12dfa824c7c42
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-12-17 22:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('toolz_swap_app', '0020_auto_20211217_1402'), ] operations = [ migrations.AddField( model_name='listing', name='item_...
25.041667
87
0.599002
66
601
5.272727
0.666667
0.103448
0.132184
0.155172
0.270115
0.270115
0.270115
0.270115
0
0
0
0.072093
0.284526
601
23
88
26.130435
0.737209
0.074875
0
0.352941
1
0
0.16065
0.041516
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2f382211712726ce3bebece3524ea17b01c0cd4f
2,540
py
Python
saleor/dashboard/store/special_page/views.py
Chaoslecion123/Diver
8c5c493701422eada49cbf95b0b0add08f1ea561
[ "BSD-3-Clause" ]
null
null
null
saleor/dashboard/store/special_page/views.py
Chaoslecion123/Diver
8c5c493701422eada49cbf95b0b0add08f1ea561
[ "BSD-3-Clause" ]
null
null
null
saleor/dashboard/store/special_page/views.py
Chaoslecion123/Diver
8c5c493701422eada49cbf95b0b0add08f1ea561
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import messages from django.contrib.auth.decorators import permission_required from django.shortcuts import get_object_or_404, redirect from django.template.response import TemplateResponse from django.utils.translation import pgettext_lazy from ....store.models import SpecialPage from ...views imp...
40.31746
77
0.715748
306
2,540
5.663399
0.215686
0.14599
0.10502
0.055395
0.693595
0.665897
0.64974
0.618003
0.618003
0.589152
0
0.004358
0.187008
2,540
62
78
40.967742
0.834867
0
0
0.527273
0
0
0.188189
0.078346
0
0
0
0
0
1
0.054545
false
0
0.145455
0
0.309091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f38dea668d3c57cb5f9fffdb2e8a23821880993
96
py
Python
pacote-download/Ex24.py
nkonai/Curso-em-video-Python
c05a60b3daa7d448e1e7f0d4d23f62df5d2c8df2
[ "MIT" ]
null
null
null
pacote-download/Ex24.py
nkonai/Curso-em-video-Python
c05a60b3daa7d448e1e7f0d4d23f62df5d2c8df2
[ "MIT" ]
null
null
null
pacote-download/Ex24.py
nkonai/Curso-em-video-Python
c05a60b3daa7d448e1e7f0d4d23f62df5d2c8df2
[ "MIT" ]
null
null
null
cidade = str(input('Qual cidade voce mora?')) print(cidade.strip().lower().startswith('santo'))
32
49
0.708333
13
96
5.230769
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.072917
96
2
50
48
0.764045
0
0
0
0
0
0.28125
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
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
1
0
3
2f3a828848ad3ed2bdecff21215f6a9e0ea54453
8,417
py
Python
src/salt_finder_charts/standard_finder_charts.py
saltastroops/salt_finder_charts
f5b0f7a779f7f1c2b8a228ba6ed65a17bd17b4de
[ "MIT" ]
null
null
null
src/salt_finder_charts/standard_finder_charts.py
saltastroops/salt_finder_charts
f5b0f7a779f7f1c2b8a228ba6ed65a17bd17b4de
[ "MIT" ]
null
null
null
src/salt_finder_charts/standard_finder_charts.py
saltastroops/salt_finder_charts
f5b0f7a779f7f1c2b8a228ba6ed65a17bd17b4de
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from typing import BinaryIO, Generator, Optional, Tuple import astropy.units as u import pytz from astropy.units import Quantity from salt_finder_charts.image import Survey, SurveyImageService from salt_finder_charts.mode import ( Mode, ModeDetails, ImagingModeDeta...
34.63786
147
0.661756
1,033
8,417
5.268151
0.195547
0.033076
0.038405
0.038589
0.165748
0.107497
0.098309
0.05237
0.05237
0.03473
0
0.000826
0.281217
8,417
242
148
34.780992
0.898678
0.250802
0
0.065359
0
0.006536
0.144758
0.003451
0
0
0
0
0
1
0.006536
false
0.058824
0.071895
0
0.084967
0
0
0
0
null
0
0
0
0
0
0
0
0
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
2f3aae6740fa544f6fcbafd5b09e5b47c616d5d2
2,449
py
Python
satstac/landsat/cli.py
developmentseed/sat-stac-landsat
f2263485043a827b4153aecc12f45a3d1363e9e2
[ "MIT" ]
null
null
null
satstac/landsat/cli.py
developmentseed/sat-stac-landsat
f2263485043a827b4153aecc12f45a3d1363e9e2
[ "MIT" ]
null
null
null
satstac/landsat/cli.py
developmentseed/sat-stac-landsat
f2263485043a827b4153aecc12f45a3d1363e9e2
[ "MIT" ]
null
null
null
import argparse import logging import sys from datetime import datetime import satstac from satstac import Catalog import satstac.landsat as landsat from .version import __version__ # quiet loggers logging.getLogger('urllib3').propagate = False logging.getLogger('requests').propagate = False logger = logging.getLog...
37.106061
120
0.694978
309
2,449
5.339806
0.385113
0.06
0.072121
0.030303
0.141818
0.141818
0.100606
0.100606
0
0
0
0.00978
0.164965
2,449
66
121
37.106061
0.797066
0.080441
0
0
0
0.02381
0.22049
0
0
0
0
0
0
1
0.047619
false
0
0.190476
0
0.261905
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f3ae02cd059cdf4b269302e970b02d87301e8cf
3,005
py
Python
database.py
pratik-choudhari/squ.ez-url-shortener
ebd13da15501806d0ef30353fe77a9d3d6d1081a
[ "MIT" ]
5
2020-12-20T14:50:31.000Z
2021-09-20T06:39:18.000Z
database.py
pratik-choudhari/squ.ez-url-shortener
ebd13da15501806d0ef30353fe77a9d3d6d1081a
[ "MIT" ]
null
null
null
database.py
pratik-choudhari/squ.ez-url-shortener
ebd13da15501806d0ef30353fe77a9d3d6d1081a
[ "MIT" ]
3
2020-12-20T18:18:09.000Z
2021-11-14T09:42:07.000Z
import sqlite3 import random import string import re import sys # domain name args = sys.argv if len(args)==2: if args[1] == 'localhost': domain = "localhost:5000/" else: domain = "https://squez-url-shortener.herokuapp.com/" else: domain = "https://squez-url-shortener.herokuapp.com/" # URL...
28.084112
200
0.547088
403
3,005
4.019851
0.290323
0.018519
0.007407
0.007407
0.31358
0.135802
0.107407
0.054321
0
0
0
0.012071
0.283195
3,005
106
201
28.349057
0.73909
0.231281
0
0.344828
0
0.034483
0.28301
0.095106
0
0
0
0
0
1
0.068966
false
0
0.086207
0
0.293103
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f3e4585789dca549a8fbdd15c298b8c2bf0a041
1,954
py
Python
ball.py
b3mery/Python-Pong-Game
d0051942412c331a752cbade11815002be8d4d1e
[ "MIT" ]
null
null
null
ball.py
b3mery/Python-Pong-Game
d0051942412c331a752cbade11815002be8d4d1e
[ "MIT" ]
null
null
null
ball.py
b3mery/Python-Pong-Game
d0051942412c331a752cbade11815002be8d4d1e
[ "MIT" ]
null
null
null
from turtle import Turtle from scoreboard import Scoreboard WIDTH = 800 HEIGHT = 600 START_SPEED = 0.1 class Ball(Turtle): """Class for creating and moving the ball. Extends Turtle""" def __init__(self) -> None: super().__init__() self.y_trajectory = 10 self.x_trajectory = 10 ...
34.892857
84
0.590583
263
1,954
4.231939
0.323194
0.069182
0.067385
0.050314
0.277628
0.186882
0.186882
0.145553
0.097035
0.097035
0
0.033528
0.297851
1,954
56
85
34.892857
0.777697
0.18782
0
0.2
0
0
0.040103
0
0
0
0
0
0
1
0.125
false
0
0.05
0
0.2
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f3f7fbb2e9c92a49ae40445269e03dc87f8856d
185
py
Python
tsai/data/basics.py
radi-cho/tsai
32f24d55ee58df1a14d1e68618f230097a266c77
[ "Apache-2.0" ]
1
2022-01-02T18:21:27.000Z
2022-01-02T18:21:27.000Z
tsai/data/basics.py
radi-cho/tsai
32f24d55ee58df1a14d1e68618f230097a266c77
[ "Apache-2.0" ]
31
2021-12-01T23:08:51.000Z
2021-12-29T02:59:49.000Z
tsai/data/basics.py
radi-cho/tsai
32f24d55ee58df1a14d1e68618f230097a266c77
[ "Apache-2.0" ]
1
2022-03-13T16:47:04.000Z
2022-03-13T16:47:04.000Z
from .validation import * from .preparation import * from .external import * from .core import * from .preprocessing import * from .transforms import * from .mixed_augmentation import *
26.428571
33
0.778378
22
185
6.5
0.454545
0.41958
0
0
0
0
0
0
0
0
0
0
0.145946
185
7
33
26.428571
0.905063
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
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
1
0
1
0
1
0
0
6
2f3f9137757f79baedb08f68f1da6c337e1ee99a
703
py
Python
push_notifications/migrations/0002_auto_20180408_1513.py
walison17/pulso-api
b9edfc3f6042676dbdb50d7efcdb461a19ea90ed
[ "MIT" ]
null
null
null
push_notifications/migrations/0002_auto_20180408_1513.py
walison17/pulso-api
b9edfc3f6042676dbdb50d7efcdb461a19ea90ed
[ "MIT" ]
null
null
null
push_notifications/migrations/0002_auto_20180408_1513.py
walison17/pulso-api
b9edfc3f6042676dbdb50d7efcdb461a19ea90ed
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2018-04-08 15:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('push_notifications', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='device', name='is_active', ...
25.107143
99
0.5633
70
703
5.514286
0.7
0.103627
0.11658
0.147668
0
0
0
0
0
0
0
0.047325
0.308677
703
27
100
26.037037
0.746914
0.061166
0
0.285714
1
0
0.133739
0
0
0
0
0
0
1
0
false
0
0.047619
0
0.190476
0
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
2f436e86cdf8ffd5b6c159aa475cc3ce92d884bf
50
py
Python
app/api/config.py
stdevelopr/Jtray
287a4be1e26b2dab372323cc0bd8df1f8689fd97
[ "MIT" ]
null
null
null
app/api/config.py
stdevelopr/Jtray
287a4be1e26b2dab372323cc0bd8df1f8689fd97
[ "MIT" ]
1
2020-05-01T20:37:34.000Z
2020-05-01T20:37:34.000Z
app/api/config.py
stdevelopr/JTray
287a4be1e26b2dab372323cc0bd8df1f8689fd97
[ "MIT" ]
null
null
null
jira_user_url = "" jira_email = "" jira_token = ""
16.666667
18
0.66
7
50
4.142857
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.16
50
3
19
16.666667
0.690476
0
0
0
0
0
0
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
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
2
2f43d99fa4ec9d66bba52027500997441d643a8e
1,216
py
Python
baseq/bed/__init__.py
basedata10/baseq
0f1786c3392a51a6ec7cb0f32355cd28eaa5df29
[ "MIT" ]
1
2018-08-30T20:29:17.000Z
2018-08-30T20:29:17.000Z
baseq/bed/__init__.py
basedata10/baseq
0f1786c3392a51a6ec7cb0f32355cd28eaa5df29
[ "MIT" ]
null
null
null
baseq/bed/__init__.py
basedata10/baseq
0f1786c3392a51a6ec7cb0f32355cd28eaa5df29
[ "MIT" ]
null
null
null
import subprocess, re, os from baseq.utils.runcommand import run_it, run_generator import pandas as pd import random """ baseq dev bed ./bed """ import click, os, sys CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) @click.group(context_settings=CONTEXT_SETTINGS) def cli(): pass class BEDFILE: def ...
31.179487
124
0.612664
161
1,216
4.521739
0.521739
0.038462
0.03022
0.038462
0
0
0
0
0
0
0
0.009667
0.234375
1,216
39
125
31.179487
0.772288
0
0
0
0
0
0.063866
0
0
0
0
0
0
1
0.16129
false
0.032258
0.16129
0
0.419355
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f44190ef14e633a5b67ab12f51b43692438c0da
855
py
Python
tests/unit/test_iostatic.py
Rogdham/python-xz
f53266dae8d4f7fcc74cd53222f22105e40d5112
[ "MIT" ]
3
2021-07-13T16:06:38.000Z
2022-03-04T22:52:58.000Z
tests/unit/test_iostatic.py
Rogdham/python-xz
f53266dae8d4f7fcc74cd53222f22105e40d5112
[ "MIT" ]
3
2021-09-19T09:48:35.000Z
2022-01-09T15:38:48.000Z
tests/unit/test_iostatic.py
Rogdham/python-xz
f53266dae8d4f7fcc74cd53222f22105e40d5112
[ "MIT" ]
null
null
null
from io import UnsupportedOperation import pytest from xz.io import IOStatic def test_read() -> None: static = IOStatic(b"abcdefghij") # read all static.seek(0) assert static.read() == b"abcdefghij" static.seek(4) assert static.read() == b"efghij" # read partial static.seek(6) ...
22.5
49
0.625731
111
855
4.792793
0.306306
0.180451
0.180451
0.12782
0.5
0.206767
0.206767
0.206767
0.206767
0.206767
0
0.012422
0.246784
855
37
50
23.108108
0.813665
0.024561
0
0.32
0
0
0.046931
0
0
0
0
0
0.32
1
0.12
false
0
0.12
0
0.24
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
2f4660a8cf58761bb602bec1315943879f761718
4,264
py
Python
swtstore/application.py
janastu/swtstore
7326138bf2fbf2a4ed8c7300c68092f91709dfc2
[ "BSD-2-Clause" ]
2
2015-04-28T00:35:21.000Z
2016-02-11T19:31:15.000Z
swtstore/application.py
janastu/swtstore
7326138bf2fbf2a4ed8c7300c68092f91709dfc2
[ "BSD-2-Clause" ]
9
2015-02-02T11:24:23.000Z
2017-12-29T07:49:07.000Z
swtstore/application.py
janastu/swtstore
7326138bf2fbf2a4ed8c7300c68092f91709dfc2
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ __init__.py """ import os import logging from logging.handlers import RotatingFileHandler from flask import Flask, request, jsonify, render_template, make_response from classes.database import db from config import DefaultConfig from classes import views #from classes import models f...
24.090395
78
0.633912
515
4,264
5.07767
0.281553
0.034417
0.032505
0.047801
0.281836
0.23327
0.23327
0.151052
0.151052
0.151052
0
0.020128
0.265947
4,264
176
79
24.227273
0.815335
0.107645
0
0.240741
0
0
0.066138
0.006349
0
0
0
0.005682
0
1
0.111111
false
0
0.074074
0.009259
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f46d633a48c16504cc0737a6f08d56b6c8d1caf
2,313
py
Python
2018/12a.py
apie/advent-of-code
c49abec01b044166a688ade40ebb1e642f0e5ce0
[ "MIT" ]
4
2018-12-04T23:33:46.000Z
2021-12-07T17:33:27.000Z
2018/12a.py
apie/advent-of-code
c49abec01b044166a688ade40ebb1e642f0e5ce0
[ "MIT" ]
17
2018-12-12T23:32:09.000Z
2020-01-04T15:50:31.000Z
2018/12a.py
apie/advent-of-code
c49abec01b044166a688ade40ebb1e642f0e5ce0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pytest import fileinput import sys DAY=12 class Plants(): def __init__(self, in_lines): self.generation = 0 lines = iter(in_lines) initial_state = next(lines).replace('initial state: ', '') self.pots = {i:s for i, s in enumerate(initial_state) if s == '#' } ...
31.684932
92
0.587981
357
2,313
3.686275
0.221289
0.097264
0.06383
0.06383
0.342705
0.307751
0.254559
0.254559
0.238602
0.238602
0
0.025178
0.210117
2,313
72
93
32.125
0.695129
0.036749
0
0.193548
0
0
0.083596
0
0
0
0
0
0.032258
1
0.112903
false
0
0.048387
0.032258
0.241935
0.096774
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f47e0e4afa3b0ef06fd5508f958beec6b26eb72
826
py
Python
03-Spark DFs/24-Solution (Group By).py
PacktPublishing/PySpark-and-AWS-Master-Big-Data-with-PySpark-and-AWS
28726ada2a8f03557180b472eecf3efc72cab5a2
[ "MIT" ]
3
2021-09-29T04:11:44.000Z
2021-12-21T06:28:48.000Z
Part 3/Code/03-Spark DFs/24-Solution (Group By).py
PacktPublishing/50-Hours-of-Big-Data-PySpark-AWS-Scala-and-Scraping
8993a8ee10534a29aeee18fa91bdc48e3093bec5
[ "MIT" ]
null
null
null
Part 3/Code/03-Spark DFs/24-Solution (Group By).py
PacktPublishing/50-Hours-of-Big-Data-PySpark-AWS-Scala-and-Scraping
8993a8ee10534a29aeee18fa91bdc48e3093bec5
[ "MIT" ]
5
2021-11-17T15:47:36.000Z
2022-03-09T05:13:09.000Z
# Databricks notebook source from pyspark.sql import SparkSession from pyspark.sql.functions import col, lit from pyspark.sql.functions import sum,avg,max,min,mean,count spark = SparkSession.builder.appName("Spark DataFrames").getOrCreate() # COMMAND ---------- df = spark.read.options(header='True', inferSchema='True...
25.8125
99
0.659806
104
826
5.211538
0.451923
0.083026
0.138376
0.084871
0.333948
0.143911
0.143911
0
0
0
0
0.005284
0.083535
826
31
100
26.645161
0.7107
0.156174
0
0
0
0
0.24344
0.048105
0
0
0
0
0
1
0
false
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
0
0
0
0
0
0
1
0
2f494c01c823bdfd4b8fa27dc3e019de599fda15
897
py
Python
queues/list_queue/queue.py
joeb15/202Problems
a8ab3dc49cb899b640cc836863e28e52fb978466
[ "MIT" ]
null
null
null
queues/list_queue/queue.py
joeb15/202Problems
a8ab3dc49cb899b640cc836863e28e52fb978466
[ "MIT" ]
null
null
null
queues/list_queue/queue.py
joeb15/202Problems
a8ab3dc49cb899b640cc836863e28e52fb978466
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ A queue is a first-in first-out type of data structure For this to work, you must be able to enqueue (add) items to the queue, dequeue (remove) items from the queue """ class List_Queue: """ Creates a List Queue """ def __init__(self, size): self.size = size ...
19.933333
109
0.591973
134
897
3.910448
0.485075
0.091603
0.038168
0
0
0
0
0
0
0
0
0.006623
0.326644
897
44
110
20.386364
0.860927
0.018952
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1