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
4f7ac73509e6e84e42327cc7eb2cf60206c29356
478
py
Python
blender/arm/logicnode/math/LN_separate_xyz.py
onelsonic/armory
55cfead0844923d419d75bf4bd677ebed714b4b5
[ "Zlib" ]
2,583
2016-07-27T08:25:47.000Z
2022-03-31T10:42:17.000Z
blender/arm/logicnode/math/LN_separate_xyz.py
N8n5h/armory
5b4d24f067a2354bafd3ab417bb8e30ee0c5aff8
[ "Zlib" ]
2,122
2016-07-31T14:20:04.000Z
2022-03-31T20:44:14.000Z
blender/arm/logicnode/math/LN_separate_xyz.py
N8n5h/armory
5b4d24f067a2354bafd3ab417bb8e30ee0c5aff8
[ "Zlib" ]
451
2016-08-12T05:52:58.000Z
2022-03-31T01:33:07.000Z
from arm.logicnode.arm_nodes import * class SeparateVectorNode(ArmLogicTreeNode): """Splits the given vector into X, Y and Z.""" bl_idname = 'LNSeparateVectorNode' bl_label = 'Separate XYZ' arm_section = 'vector' arm_version = 1 def arm_init(self, context): self.add_input('ArmVectorSoc...
29.875
51
0.669456
56
478
5.535714
0.625
0.090323
0.125806
0.26129
0
0
0
0
0
0
0
0.002632
0.205021
478
15
52
31.866667
0.813158
0.083682
0
0
0
0
0.240741
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.636364
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
1
0
0
2
4f8bacf5cc8d683ea814fa649f93bbfbdf8b2af2
67
py
Python
SoftUni-Basic/first_steps_in_coding/lab/04_inches_to_centimeters.py
Darkartt/SoftUni
23d65ddb9f1e454c9b1338a60dc52f5a64c30bc9
[ "MIT" ]
null
null
null
SoftUni-Basic/first_steps_in_coding/lab/04_inches_to_centimeters.py
Darkartt/SoftUni
23d65ddb9f1e454c9b1338a60dc52f5a64c30bc9
[ "MIT" ]
null
null
null
SoftUni-Basic/first_steps_in_coding/lab/04_inches_to_centimeters.py
Darkartt/SoftUni
23d65ddb9f1e454c9b1338a60dc52f5a64c30bc9
[ "MIT" ]
null
null
null
inch = float(input()) centimetars = inch * 2.54 print(centimetars)
16.75
25
0.716418
9
67
5.333333
0.777778
0
0
0
0
0
0
0
0
0
0
0.051724
0.134328
67
4
26
16.75
0.775862
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
4f8e402da6a278939229244bc051662a74bdbb7f
1,099
py
Python
app/main/views.py
jfairf01/OrgoWebsite
62f25faa1cc174f91377a281e1cea1dd898b0b30
[ "MIT" ]
null
null
null
app/main/views.py
jfairf01/OrgoWebsite
62f25faa1cc174f91377a281e1cea1dd898b0b30
[ "MIT" ]
null
null
null
app/main/views.py
jfairf01/OrgoWebsite
62f25faa1cc174f91377a281e1cea1dd898b0b30
[ "MIT" ]
null
null
null
from flask import render_template, jsonify from sqlalchemy import func from . import main from .. import db from ..models import User, HighScore @main.route('/highScore') def highScore(): highScore = HighScore.query.order_by(HighScore.username).first() if highScore is None: return jsonify(username="No...
28.921053
80
0.743403
128
1,099
6.335938
0.289063
0.066584
0.098644
0.118372
0
0
0
0
0
0
0
0.001037
0.122839
1,099
37
81
29.702703
0.840249
0
0
0
0
0
0.141947
0.031847
0
0
0
0
0
1
0.2
false
0
0.166667
0.133333
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
4f98c653568190ba3d9757f9946ea9b828f77543
186
py
Python
code/src/scripts/pause.py
nuvla/job-engine
58d42bd24d8dd2c6e28541c08df1455c9ac909f6
[ "Apache-2.0" ]
3
2019-04-27T10:36:21.000Z
2019-04-29T12:41:57.000Z
code/src/scripts/pause.py
nuvla/job-engine
58d42bd24d8dd2c6e28541c08df1455c9ac909f6
[ "Apache-2.0" ]
131
2019-02-13T06:00:49.000Z
2022-03-29T15:06:03.000Z
code/src/scripts/pause.py
nuvla/job-engine
58d42bd24d8dd2c6e28541c08df1455c9ac909f6
[ "Apache-2.0" ]
1
2020-12-03T11:35:21.000Z
2020-12-03T11:35:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import docker import socket docker_client = docker.from_env() myself = docker_client.containers.get(socket.gethostname()) myself.pause()
16.909091
59
0.731183
25
186
5.32
0.68
0.180451
0
0
0
0
0
0
0
0
0
0.006061
0.112903
186
11
60
16.909091
0.8
0.225806
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
1
0
0
0
0
2
4f9a379d3ba99f8e8d48d7249f66b2636ad03135
880
py
Python
backend/app/security.py
Kwsswart/writter
851b887d0c8b0a9489f530065f0efe744bb149f3
[ "MIT" ]
null
null
null
backend/app/security.py
Kwsswart/writter
851b887d0c8b0a9489f530065f0efe744bb149f3
[ "MIT" ]
null
null
null
backend/app/security.py
Kwsswart/writter
851b887d0c8b0a9489f530065f0efe744bb149f3
[ "MIT" ]
null
null
null
import os from bcrypt import hashpw, gensalt, checkpw from base64 import b64encode from hashlib import sha256 from cryptography.fernet import Fernet e = Fernet(os.getenv("KEY")) def encpwd(pwd): """ Hash pwd provided """ return hashpw(b64encode(sha256(pwd.encode()).digest()), gensalt()).decode() ...
20
79
0.626136
109
880
5.027523
0.422018
0.04927
0.032847
0
0
0
0
0
0
0
0
0.025037
0.228409
880
44
80
20
0.782032
0.2125
0
0
0
0
0.004926
0
0
0
0
0
0
1
0.3125
false
0
0.3125
0
0.9375
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
0
2
4f9d958bf40e31e749c287f77979cfb2be9e5cee
396
py
Python
tests/cell_fabric/test_rect.py
mabrains/ALIGN-public
9a6c14310de13df369a8340f465911b629f15a3f
[ "BSD-3-Clause" ]
119
2019-05-14T18:44:34.000Z
2022-03-17T01:01:02.000Z
tests/cell_fabric/test_rect.py
mabrains/ALIGN-public
9a6c14310de13df369a8340f465911b629f15a3f
[ "BSD-3-Clause" ]
717
2019-04-03T15:36:35.000Z
2022-03-31T21:56:47.000Z
tests/cell_fabric/test_rect.py
mabrains/ALIGN-public
9a6c14310de13df369a8340f465911b629f15a3f
[ "BSD-3-Clause" ]
34
2019-04-01T21:21:27.000Z
2022-03-21T09:46:57.000Z
from align.cell_fabric.transformation import Rect def test_toList(): r = Rect( 0, 0, 1, 1) assert r.toList() == [0, 0, 1, 1] def test_canonical(): r = Rect( 1, 1, 0, 0) assert r.canonical().toList() == [0, 0, 1, 1] def test_repr(): r = Rect( 0, 0, 1, 1) assert r.__repr__() == "[0, 0, 1, 1...
24.75
49
0.517677
70
396
2.814286
0.242857
0.081218
0.106599
0.142132
0.467005
0.335025
0.335025
0.162437
0
0
0
0.109966
0.265152
396
15
50
26.4
0.56701
0
0
0.166667
0
0
0.090909
0
0
0
0
0
0.416667
1
0.25
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
0
0
0
0
0
0
0
2
4fa4042c8d50c736872f18bc6de82a9eeac26254
591
py
Python
apps/base/migrations/0056_auto_20190821_1628.py
gvizquel/pyerp
c859f7293cabd1003f79112463cee93ac89fccba
[ "MIT" ]
null
null
null
apps/base/migrations/0056_auto_20190821_1628.py
gvizquel/pyerp
c859f7293cabd1003f79112463cee93ac89fccba
[ "MIT" ]
11
2020-06-05T22:50:37.000Z
2022-02-10T09:05:56.000Z
apps/base/migrations/0056_auto_20190821_1628.py
gvizquel/pyerp
c859f7293cabd1003f79112463cee93ac89fccba
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2019-08-21 20:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('base', '0055_pycron'), ] operations = [ migrations.AlterField( model_name='pycron', name='model_name', f...
24.625
85
0.588832
62
591
5.483871
0.66129
0.079412
0.147059
0.170588
0.229412
0.229412
0
0
0
0
0
0.052506
0.291032
591
23
86
25.695652
0.75895
0.076142
0
0.352941
1
0
0.132353
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
96d4fa95c81cfe8edb8a039e4f400fd39027e05f
1,974
py
Python
products/api/api.py
Arvind-4/E-commerce-REST-API
ee6bf15f08590db99c423639db382f8c3fb3ab05
[ "MIT" ]
null
null
null
products/api/api.py
Arvind-4/E-commerce-REST-API
ee6bf15f08590db99c423639db382f8c3fb3ab05
[ "MIT" ]
null
null
null
products/api/api.py
Arvind-4/E-commerce-REST-API
ee6bf15f08590db99c423639db382f8c3fb3ab05
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework.generics import ( ListAPIView, RetrieveAPIView, ) from rest_framework.views import APIView from rest_framework.response import Response from django.core import serializers from django.http import Http404 from rest_framework.permissions import AllowAny fro...
29.029412
65
0.692503
204
1,974
6.578431
0.338235
0.062593
0.063338
0.074516
0.362891
0.227273
0.19225
0.107303
0.107303
0.107303
0
0.007727
0.213273
1,974
67
66
29.462687
0.856407
0.450355
0
0.142857
0
0
0.011342
0
0
0
0
0
0
1
0.035714
false
0
0.357143
0
0.642857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
96e2e02958eb8b2f96b29096a9887913b5f2e8c3
733
py
Python
monitoring/deployment_manager/systems/configuration.py
interuss/InterUSS-Platform
099abaa1159c4c143f8f1fde6b88956c86608281
[ "Apache-2.0" ]
null
null
null
monitoring/deployment_manager/systems/configuration.py
interuss/InterUSS-Platform
099abaa1159c4c143f8f1fde6b88956c86608281
[ "Apache-2.0" ]
1
2021-11-29T21:53:39.000Z
2021-11-29T21:53:39.000Z
monitoring/deployment_manager/systems/configuration.py
interuss/InterUSS-Platform
099abaa1159c4c143f8f1fde6b88956c86608281
[ "Apache-2.0" ]
null
null
null
from typing import Optional from monitoring.monitorlib.typing import ImplicitDict from monitoring.deployment_manager.systems.dss.configuration import DSS from monitoring.deployment_manager.systems.test.configuration import Test class KubernetesCluster(ImplicitDict): name: str """Name of the Kubernetes clust...
27.148148
73
0.758527
83
733
6.674699
0.421687
0.101083
0.086643
0.111913
0.285199
0
0
0
0
0
0
0
0.162347
733
26
74
28.192308
0.90228
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
96e2f6791d358888a299b482a3e7912cf3a6c4c5
627
py
Python
src/Broker_Instance/streamer.py
zxq0404/Raven
398e208330619d76c0236a43493f217c1dd198be
[ "RSA-MD" ]
null
null
null
src/Broker_Instance/streamer.py
zxq0404/Raven
398e208330619d76c0236a43493f217c1dd198be
[ "RSA-MD" ]
null
null
null
src/Broker_Instance/streamer.py
zxq0404/Raven
398e208330619d76c0236a43493f217c1dd198be
[ "RSA-MD" ]
null
null
null
import zmq def main(): try: context = zmq.Context(1) # Socket facing clients frontend = context.socket(zmq.PULL) frontend.bind("tcp://*:5556") # Socket facing services backend = context.socket(zmq.PUSH) backend.bind("tcp://*:5557") zmq.device(zmq.S...
24.115385
79
0.503987
63
627
4.888889
0.539683
0.077922
0.103896
0
0
0
0
0
0
0
0
0.028646
0.38756
627
25
80
25.08
0.773438
0.070175
0
0
0
0
0.096552
0
0
0
0
0
0
0
null
null
0.052632
0.052632
null
null
0.105263
0
0
0
null
0
0
0
0
0
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
1
0
0
0
0
0
2
96e5665a895a1fb9a756f3fb69c43aacf59d81ff
886
py
Python
partialflow/utils.py
jakob-bauer/partialflow
bea1b46ca66fb5c10aefbcd1570aff922a903118
[ "MIT" ]
3
2017-02-03T15:59:10.000Z
2020-05-23T07:26:10.000Z
partialflow/utils.py
jakob-bauer/partialflow
bea1b46ca66fb5c10aefbcd1570aff922a903118
[ "MIT" ]
null
null
null
partialflow/utils.py
jakob-bauer/partialflow
bea1b46ca66fb5c10aefbcd1570aff922a903118
[ "MIT" ]
1
2018-08-02T02:16:34.000Z
2018-08-02T02:16:34.000Z
import time class Timer(object): def __init__(self): self._start = 0 self._end = 0 def __enter__(self): self._start = time.time() return self def __exit__(self, exc_type, exc_val, exc_tb): self._end = time.time() @property def duration(self): if s...
24.611111
74
0.595937
111
886
4.252252
0.279279
0.076271
0.063559
0.082627
0.161017
0.161017
0.122881
0.122881
0.122881
0
0
0.00627
0.27991
886
36
74
24.611111
0.733542
0
0
0.153846
0
0
0.043968
0
0
0
0
0
0
1
0.269231
false
0
0.038462
0
0.538462
0.076923
0
0
0
null
0
0
0
0
0
0
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
96e773f3eb8d9309f3f610d7802ef89439807320
3,679
py
Python
rush00/rush00/settings.py
ppichier/moviemon_game
556948b4763879c6c88d60037e4faf5f3555e432
[ "MIT" ]
null
null
null
rush00/rush00/settings.py
ppichier/moviemon_game
556948b4763879c6c88d60037e4faf5f3555e432
[ "MIT" ]
null
null
null
rush00/rush00/settings.py
ppichier/moviemon_game
556948b4763879c6c88d60037e4faf5f3555e432
[ "MIT" ]
null
null
null
""" Django settings for rush00 project. Generated by 'django-admin startproject' using Django 3.0.2. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # ...
24.203947
91
0.693395
426
3,679
5.873239
0.464789
0.077938
0.061551
0.069944
0.213829
0.18745
0.106715
0.106715
0.047962
0
0
0.016324
0.167437
3,679
151
92
24.364238
0.800522
0.289481
0
0
1
0.011765
0.524932
0.395052
0
0
0
0
0
1
0
false
0.058824
0.011765
0
0.011765
0
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
8c22ac32d9e86be7204e958a46ee2baa1ce5b423
602
py
Python
MakeRelativePaths.py
Ccantey/ArcGIS-Scripting
464ed20e4365c5518ff6e226fb9b209de422f0dc
[ "Unlicense" ]
11
2015-06-08T08:35:46.000Z
2021-07-29T22:45:23.000Z
MakeRelativePaths.py
Ccantey/ArcGIS-Scripting
464ed20e4365c5518ff6e226fb9b209de422f0dc
[ "Unlicense" ]
null
null
null
MakeRelativePaths.py
Ccantey/ArcGIS-Scripting
464ed20e4365c5518ff6e226fb9b209de422f0dc
[ "Unlicense" ]
5
2016-11-22T19:24:59.000Z
2018-05-02T13:03:43.000Z
import arcpy, os #walk through all subdirectories and change mxd to store relative paths for root, dirs, files in os.walk(r"Q:\Geodata\shape"): for f in files: if f.endswith(".mxd"): filepath = root + '\\' + f print filepath try: ...
28.666667
71
0.463455
58
602
4.810345
0.672414
0.043011
0
0
0
0
0
0
0
0
0
0
0.463455
602
20
72
30.1
0.863777
0.16113
0
0
0
0
0.057769
0
0
0
0
0
0
0
null
null
0.076923
0.076923
null
null
0.153846
0
0
0
null
0
0
0
0
0
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
1
0
0
0
0
0
2
8c27dc6bc871f7889ddc494ac9e16b08fd6a4764
248
py
Python
settings.py
arakilian0/calcupy
c0091c840cae982c9bf8816f1f8ec630dbb305ae
[ "MIT" ]
1
2021-07-22T03:07:16.000Z
2021-07-22T03:07:16.000Z
settings.py
arakilian0/calcupy
c0091c840cae982c9bf8816f1f8ec630dbb305ae
[ "MIT" ]
null
null
null
settings.py
arakilian0/calcupy
c0091c840cae982c9bf8816f1f8ec630dbb305ae
[ "MIT" ]
1
2020-01-24T11:51:47.000Z
2020-01-24T11:51:47.000Z
screen = { "bg": "blue", "rows": 0, "columns": 0, "columnspan": 4, "padx": 5, "pady": 5, } input = { "bg": "blue", "fg": "red", "fs": "20px", } button = { "bg": "blue", "fg": "red", "fs": "20px", }
11.809524
20
0.366935
27
248
3.37037
0.62963
0.197802
0.175824
0.241758
0.373626
0.373626
0
0
0
0
0
0.055556
0.346774
248
20
21
12.4
0.506173
0
0
0.388889
0
0
0.278226
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
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
2
8c2d9c7411c316a5fdbc00d27ddd1f859de4e57c
4,645
py
Python
Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/TypeInfo/FundamentalTypes/All.py
davidbrownell/v3-Common_Environment
8f42f256e573cbd83cbf9813db9958025ddf12f2
[ "BSL-1.0" ]
null
null
null
Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/TypeInfo/FundamentalTypes/All.py
davidbrownell/v3-Common_Environment
8f42f256e573cbd83cbf9813db9958025ddf12f2
[ "BSL-1.0" ]
1
2018-06-08T06:45:16.000Z
2018-06-08T06:45:16.000Z
Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/TypeInfo/FundamentalTypes/All.py
davidbrownell/v3-Common_Environment
8f42f256e573cbd83cbf9813db9958025ddf12f2
[ "BSL-1.0" ]
1
2018-06-08T04:15:17.000Z
2018-06-08T04:15:17.000Z
# ---------------------------------------------------------------------- # | # | All.py # | # | David Brownell <db@DavidBrownell.com> # | 2018-04-23 10:05:42 # | # ---------------------------------------------------------------------- # | # | Copyright David Brownell 2018-22. # | Distributed ...
46.919192
103
0.475996
269
4,645
8.141264
0.408922
0.124658
0.172146
0.267123
0
0
0
0
0
0
0
0.010434
0.33972
4,645
98
104
47.397959
0.703619
0.277503
0
0.346154
0
0
0.009077
0
0
0
0
0
0
1
0.019231
false
0
0.307692
0
0.384615
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
0
0
0
2
8c33eb4b835fe5ebadebb84d215778d0aae457a4
3,479
py
Python
src/mds/api/signals.py
rryan/sana.mds
d62cd7e6a3d47ce933f6ee04aa7f10c8d642c944
[ "BSD-3-Clause" ]
null
null
null
src/mds/api/signals.py
rryan/sana.mds
d62cd7e6a3d47ce933f6ee04aa7f10c8d642c944
[ "BSD-3-Clause" ]
null
null
null
src/mds/api/signals.py
rryan/sana.mds
d62cd7e6a3d47ce933f6ee04aa7f10c8d642c944
[ "BSD-3-Clause" ]
null
null
null
''' Created on Aug 11, 2012 :author: Sana Development Team :version: 2.0 ''' from django.dispatch import Signal class ExternalDispatch(Signal): """ Simple dispatching signal. The superclass providing_args are a 'dispatcher' key and 'data' dictionary. """ def __init__(self): Signal.__init_...
32.514019
90
0.61052
372
3,479
5.508065
0.311828
0.050756
0.042948
0.041484
0.373353
0.362128
0.362128
0.362128
0.306491
0.249878
0
0.003255
0.293475
3,479
106
91
32.820755
0.83035
0.375108
0
0.255319
0
0
0.059197
0
0
0
0
0
0
1
0.234043
false
0
0.021277
0
0.510638
0
0
0
0
null
0
0
0
0
0
0
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
8c3d3f0d60b1efa71f513e96282456978c895ca2
9,423
py
Python
Artesian/_Query/VersionedQuery.py
ARKlab/Artesian.SDK-Python
79b54ad00526f5a75c400422fd1c0c8532b67436
[ "MIT" ]
2
2022-02-21T17:03:04.000Z
2022-02-24T17:14:02.000Z
Artesian/_Query/VersionedQuery.py
ARKlab/Artesian.SDK-Python
79b54ad00526f5a75c400422fd1c0c8532b67436
[ "MIT" ]
2
2020-02-06T10:03:35.000Z
2022-03-01T09:39:54.000Z
Artesian/_Query/VersionedQuery.py
ARKlab/Artesian.SDK-Python
79b54ad00526f5a75c400422fd1c0c8532b67436
[ "MIT" ]
1
2019-08-01T06:20:58.000Z
2019-08-01T06:20:58.000Z
from Artesian._Query.Query import _Query from Artesian._Query.QueryParameters.VersionedQueryParameters import VersionedQueryParameters from Artesian._Query.Config.ExtractionRangeConfig import ExtractionRangeConfig from Artesian._Query.Config.VersionSelectionType import VersionSelectionType from Artesian._Configuration....
48.823834
184
0.685875
837
9,423
7.565114
0.200717
0.135028
0.187776
0.213203
0.379659
0.318067
0.292167
0.292167
0.259476
0.249052
0
0.000137
0.228059
9,423
193
185
48.823834
0.87036
0
0
0.315508
0
0.02139
0.121923
0.072899
0
0
0
0
0
1
0.176471
false
0
0.037433
0.02139
0.40107
0
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
8c41abbedc0d7fa2c291694a56f40b82034bd4ff
113
py
Python
download-deveres/para-execicios-curso-em-video/exe046.py
Hugo-Oliveira-RDO11/meus-deveres
b5e41015e2cb95946262678e82197e5f47d56271
[ "MIT" ]
null
null
null
download-deveres/para-execicios-curso-em-video/exe046.py
Hugo-Oliveira-RDO11/meus-deveres
b5e41015e2cb95946262678e82197e5f47d56271
[ "MIT" ]
null
null
null
download-deveres/para-execicios-curso-em-video/exe046.py
Hugo-Oliveira-RDO11/meus-deveres
b5e41015e2cb95946262678e82197e5f47d56271
[ "MIT" ]
null
null
null
from time import sleep for c in range(10, -1, -1): print(c) sleep(1) print('BOMMMMMMMMM\nE ANO NOVO!!!')
18.833333
35
0.628319
20
113
3.55
0.75
0.169014
0
0
0
0
0
0
0
0
0
0.055556
0.20354
113
5
36
22.6
0.733333
0
0
0
0
0
0.230089
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.4
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
8c4a0be60d8dc4aa18a2eafcee63ae8c7af73a85
268
py
Python
LeetcodeAlgorithms/598. Range Addition II/range-addition-ii.py
Fenghuapiao/PyLeetcode
d804a62643fe935eb61808196a2c093ea9583654
[ "MIT" ]
3
2019-08-20T06:54:38.000Z
2022-01-07T12:56:46.000Z
LeetcodeAlgorithms/598. Range Addition II/range-addition-ii.py
Fenghuapiao/PyLeetcode
d804a62643fe935eb61808196a2c093ea9583654
[ "MIT" ]
null
null
null
LeetcodeAlgorithms/598. Range Addition II/range-addition-ii.py
Fenghuapiao/PyLeetcode
d804a62643fe935eb61808196a2c093ea9583654
[ "MIT" ]
2
2018-06-07T02:56:39.000Z
2018-08-01T15:27:55.000Z
class Solution(object): def maxCount(self, m, n, ops): """ :type m: int :type n: int :type ops: List[List[int]] :rtype: int """ return reduce(operator.mul, map(min, zip(*ops + [[m,n]])))
26.8
67
0.440299
32
268
3.6875
0.625
0.033898
0
0
0
0
0
0
0
0
0
0
0.399254
268
10
68
26.8
0.732919
0.238806
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
8c4fb46daef9f00f54d178b3d13b1196f12048c9
473
py
Python
pyroomacoustics/experimental/__init__.py
oleg-alexandrov/pyroomacoustics
4681b3cec21e09c54be50b2ee835115bcbc1d298
[ "MIT" ]
1
2020-02-14T22:32:55.000Z
2020-02-14T22:32:55.000Z
pyroomacoustics/experimental/__init__.py
Bar-BY/pyroomacoustics
45b45febdf93340a55a719942f2daa9efbef9960
[ "MIT" ]
null
null
null
pyroomacoustics/experimental/__init__.py
Bar-BY/pyroomacoustics
45b45febdf93340a55a719942f2daa9efbef9960
[ "MIT" ]
1
2021-01-14T08:42:47.000Z
2021-01-14T08:42:47.000Z
""" Experimental ============ A bunch of routines useful when doing measurements and experiments. """ __all__ = [ "measure_ir", "physics", "point_cloud", "delay_calibration", "deconvolution", "localization", "signals", "rt60", ] from .deconvolution import * from .delay_calibration imp...
17.518519
67
0.672304
50
473
6.16
0.5
0.227273
0
0
0
0
0
0
0
0
0
0.010526
0.196617
473
26
68
18.192308
0.8
0.198732
0
0
0
0
0.218329
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
8c54d1bb115f902bf84d6ec2fd66b3e1daa99799
3,248
py
Python
neighborapp/models.py
Maureen-1998DEV/watch_Hood
44b644dc8a5c4dfbea7a1e90ac7fe79c5dbf9abb
[ "MIT" ]
null
null
null
neighborapp/models.py
Maureen-1998DEV/watch_Hood
44b644dc8a5c4dfbea7a1e90ac7fe79c5dbf9abb
[ "MIT" ]
null
null
null
neighborapp/models.py
Maureen-1998DEV/watch_Hood
44b644dc8a5c4dfbea7a1e90ac7fe79c5dbf9abb
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from cloudinary.models import CloudinaryField # Create your models here. class Neighborhood(models.Model): name = models.CharField(max_length = 50) location = models.ForeignKey('Location',on_delete = models.CASCADE,null = True) admin ...
30.933333
117
0.703818
398
3,248
5.550251
0.190955
0.048891
0.081485
0.108646
0.594387
0.536442
0.484382
0.3866
0.217746
0.217746
0
0.01029
0.192118
3,248
105
118
30.933333
0.831555
0.007389
0
0.320513
0
0
0.020484
0.006828
0
0
0
0
0
1
0.217949
false
0
0.038462
0.076923
0.820513
0
0
0
0
null
0
0
0
0
0
0
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
8c59187ba750abcf04c6147479de2bce3f2491de
751
py
Python
oidc_provider/migrations/0029_auto_20190606_1218.py
omunozn/django-oidc-provider
6f4822b56637aaa7ece92324123c26a36061d73a
[ "MIT" ]
2
2018-10-05T01:17:57.000Z
2020-10-07T21:07:20.000Z
oidc_provider/migrations/0029_auto_20190606_1218.py
omunozn/django-oidc-provider
6f4822b56637aaa7ece92324123c26a36061d73a
[ "MIT" ]
null
null
null
oidc_provider/migrations/0029_auto_20190606_1218.py
omunozn/django-oidc-provider
6f4822b56637aaa7ece92324123c26a36061d73a
[ "MIT" ]
4
2018-10-30T14:47:12.000Z
2020-05-06T19:11:55.000Z
# Generated by Django 2.2.2 on 2019-06-06 12:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('oidc_provider', '0028_auto_20190502_1654'), ] operations = [ migrations.AddField( model_name='code', name='ae', ...
25.896552
73
0.573901
75
751
5.613333
0.48
0.085511
0.163895
0.192399
0.52019
0.52019
0.52019
0.52019
0.52019
0.52019
0
0.059273
0.303595
751
28
74
26.821429
0.745698
0.05992
0
0.545455
1
0
0.096591
0.03267
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4fb19360602138faa0d22fba8d442fb8c1895535
1,792
py
Python
accounts/models.py
barissaslan/eventhub
37aa005b3f2eab9a2c6c48d30b2f7f4483fa6749
[ "MIT" ]
4
2017-11-13T19:51:25.000Z
2020-12-08T17:19:31.000Z
accounts/models.py
barissaslan/eventhub
37aa005b3f2eab9a2c6c48d30b2f7f4483fa6749
[ "MIT" ]
null
null
null
accounts/models.py
barissaslan/eventhub
37aa005b3f2eab9a2c6c48d30b2f7f4483fa6749
[ "MIT" ]
3
2018-05-19T08:37:42.000Z
2020-12-08T17:19:34.000Z
from django.db import models from django.contrib.auth.models import BaseUserManager, AbstractBaseUser from event.models import Event class UserManager(BaseUserManager): def create_user(self, email, password=None): if not email: raise ValueError('Users must have an email address') user...
25.971014
72
0.648996
223
1,792
5.035874
0.358744
0.032057
0.046305
0.060552
0.137133
0.137133
0.137133
0.085485
0.085485
0.085485
0
0.008289
0.259487
1,792
68
73
26.352941
0.83798
0
0
0.156863
0
0
0.030709
0
0
0
0
0
0
1
0.156863
false
0.078431
0.058824
0.098039
0.607843
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1
0
0
2
4fbab7405719ae7d782fceeb047eb0c83c99705f
3,604
py
Python
oms_cms/backend/api/v2/socialaccount/views.py
RomanYarovoi/oms_cms
49c6789242d7a35e81f4f208c04b18fb79249be7
[ "BSD-3-Clause" ]
18
2019-07-11T18:34:10.000Z
2021-11-20T06:34:39.000Z
oms_cms/backend/api/v2/socialaccount/views.py
RomanYarovoi/oms_cms
49c6789242d7a35e81f4f208c04b18fb79249be7
[ "BSD-3-Clause" ]
13
2019-07-24T11:27:58.000Z
2022-03-28T01:07:31.000Z
oms_cms/backend/api/v2/socialaccount/views.py
RomanYarovoi/oms_cms
49c6789242d7a35e81f4f208c04b18fb79249be7
[ "BSD-3-Clause" ]
18
2019-07-08T18:07:21.000Z
2021-11-03T10:33:07.000Z
from rest_framework import generics, permissions from rest_framework import filters as filters_rf from django_filters import rest_framework as filters from allauth.socialaccount.models import SocialAccount, SocialApp, SocialToken from .serializers import SocialAppSerializer, SocialAppExtendedSerializer, SocialAccountS...
39.173913
101
0.748613
291
3,604
9.106529
0.271478
0.057736
0.095094
0.169811
0.492075
0.492075
0.421887
0.393208
0.363019
0.328302
0
0
0.165927
3,604
91
102
39.604396
0.88157
0.081021
0
0.571429
0
0
0.034293
0.007042
0
0
0
0
0
1
0
false
0
0.079365
0
0.888889
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
1
0
0
2
4fbff0bc9c697c0951f61a60296a6035d822cd65
941
py
Python
backend.py
Fennec2000GH/KeywordFS
0e1d7ab78d084e0c21cf4e7246ed169353cfca9b
[ "MIT" ]
null
null
null
backend.py
Fennec2000GH/KeywordFS
0e1d7ab78d084e0c21cf4e7246ed169353cfca9b
[ "MIT" ]
null
null
null
backend.py
Fennec2000GH/KeywordFS
0e1d7ab78d084e0c21cf4e7246ed169353cfca9b
[ "MIT" ]
null
null
null
from genericpath import exists, isfile import json, os from pprint import pprint from keyword_extraction import * from topic_modeling import * # from xml_parser import * def file_to_json(path: str, storage_path: str = 'storage'): """ Converts file containing text to stored JSON object to track topic...
30.354839
86
0.629118
128
941
4.539063
0.476563
0.048193
0.048193
0.04475
0
0
0
0
0
0
0
0
0.275239
941
30
87
31.366667
0.851906
0.036132
0
0
0
0
0.098498
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
4fc9baceeb6c53d83cab3241e6032040a6ea6f24
33,921
py
Python
tests/examples/minlplib/syn05m04h.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
2
2021-07-03T13:19:10.000Z
2022-02-06T10:48:13.000Z
tests/examples/minlplib/syn05m04h.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
1
2021-07-04T14:52:14.000Z
2021-07-15T10:17:11.000Z
tests/examples/minlplib/syn05m04h.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
null
null
null
# MINLP written by GAMS Convert at 04/21/18 13:54:28 # # Equation counts # Total E G L N X C B # 363 141 12 210 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
35.187759
117
0.635565
6,075
33,921
3.548807
0.111111
0.042766
0.246301
0.155851
0.512176
0.471682
0.461663
0.441579
0.369219
0
0
0.220744
0.160107
33,921
963
118
35.224299
0.535978
0.020047
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.00173
0
0.00173
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4fcfbd8024734cb1efbb3a2c975669d6daead2b5
666
py
Python
RaspberryPi/Hardware/UltrasonicSensorSet.py
amaankhan02/SelfDrivingCar
7831a9db13d2e8c9ca683e48588eabdf065f80fa
[ "MIT" ]
null
null
null
RaspberryPi/Hardware/UltrasonicSensorSet.py
amaankhan02/SelfDrivingCar
7831a9db13d2e8c9ca683e48588eabdf065f80fa
[ "MIT" ]
null
null
null
RaspberryPi/Hardware/UltrasonicSensorSet.py
amaankhan02/SelfDrivingCar
7831a9db13d2e8c9ca683e48588eabdf065f80fa
[ "MIT" ]
null
null
null
import RPi.GPIO as gpio from enum import Enum import time from GpioMode import GpioMode from UltrasonicSensor import UltrasonicSensor class UltrasonicSensorSet: def __init__(self, *args:UltrasonicSensor): """ :param args: UltrasonicSensor objects """ self.ussSet = args def getD...
25.615385
97
0.641141
71
666
5.957746
0.535211
0.047281
0
0
0
0
0
0
0
0
0
0
0.283784
666
26
98
25.615385
0.886792
0.190691
0
0
0
0
0.030426
0
0
0
0
0
0
1
0.1875
false
0
0.3125
0
0.625
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
4ff5b0c354535c37f2701811b82b3f73ff4f9e97
989
py
Python
blogjaguar/apps/blog/categorylister.py
darioblanco/blogjaguar
11f5d8b1afa8b206992142e97382895a80a70b58
[ "Apache-2.0" ]
null
null
null
blogjaguar/apps/blog/categorylister.py
darioblanco/blogjaguar
11f5d8b1afa8b206992142e97382895a80a70b58
[ "Apache-2.0" ]
9
2020-06-30T05:41:00.000Z
2020-06-30T05:42:16.000Z
blogjaguar/apps/blog/categorylister.py
darioblanco/blogjaguar
11f5d8b1afa8b206992142e97382895a80a70b58
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 Dario Blanco Iturriaga # # 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...
34.103448
76
0.71183
136
989
5.132353
0.654412
0.08596
0.037249
0.045845
0
0
0
0
0
0
0
0.01027
0.212336
989
28
77
35.321429
0.885751
0.722952
0
0
0
0
0.02008
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
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
8b0a50f43851de6203cf6ea5aec25fdd01ac8908
5,508
py
Python
standalone/demo_texas.py
apalomES/plug
5ab2244e0560814a313bc73b18796324f1599d35
[ "MIT" ]
null
null
null
standalone/demo_texas.py
apalomES/plug
5ab2244e0560814a313bc73b18796324f1599d35
[ "MIT" ]
null
null
null
standalone/demo_texas.py
apalomES/plug
5ab2244e0560814a313bc73b18796324f1599d35
[ "MIT" ]
null
null
null
from uuid import uuid4 from powersimdata import Scenario scenario = Scenario() print(scenario.state.name) scenario.set_grid(interconnect="Texas") scenario.set_name("test", "comp_" + str(uuid4())) scenario.set_time("2016-01-01 00:00:00", "2016-01-01 03:00:00", "1H") scenario.set_base_profile("demand", "vJan2021") s...
25.382488
79
0.444808
497
5,508
4.82495
0.416499
0.023353
0.020851
0.025021
0.10759
0.028357
0.028357
0.028357
0.028357
0.028357
0
0.491117
0.427741
5,508
216
80
25.5
0.26967
0
0
0.126829
0
0
0.094408
0
0
0
0
0
0
1
0
false
0
0.009756
0
0.009756
0.009756
0
0
0
null
0
0
0
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
2
8b0b7d57ff6061a5647dccc3c860959fdca68eea
602
py
Python
AeroComBAT/__init__.py
bennames/AeroComBAT-Project
ddc7194d5ccc0b8bf09b73cc0c2c3d64adf4a472
[ "MIT" ]
13
2016-01-20T04:42:38.000Z
2022-03-09T04:49:48.000Z
AeroComBAT/__init__.py
mldmnn/AeroComBAT-Project
ddc7194d5ccc0b8bf09b73cc0c2c3d64adf4a472
[ "MIT" ]
1
2016-04-18T14:19:26.000Z
2016-04-18T21:55:25.000Z
AeroComBAT/__init__.py
mldmnn/AeroComBAT-Project
ddc7194d5ccc0b8bf09b73cc0c2c3d64adf4a472
[ "MIT" ]
3
2018-05-03T07:45:05.000Z
2021-04-07T08:55:14.000Z
"""A tool for modeling composite beams and aircraft wings. ``Aerodynamics`` This module provides the aerodynamics models used within AeroComBAT ``AircraftParts`` This module provides a full-fledged wing object that can be used to determine if a design is both statically adequate as well as stable. ``...
43
75
0.750831
83
602
5.445783
0.626506
0.088496
0.159292
0.09292
0
0
0
0
0
0
0
0
0.202658
602
14
76
43
0.941667
0.9701
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
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
0
0
2
8b1bd7659a90a8ba28e7af3215b07594e4ce1ce4
620
py
Python
dayu_widgets/radio_button.py
ZSD-tim/dayu_widgets
31c2530bdc4161d9311574d9850c2e9471e53072
[ "MIT" ]
157
2019-03-10T05:55:21.000Z
2022-03-31T09:07:00.000Z
dayu_widgets/radio_button.py
kanbang/dayu_widgets
6ff101e6c6f8fcf10e5cb578023a12ccdcef9164
[ "MIT" ]
16
2019-07-15T11:30:53.000Z
2021-12-16T14:17:59.000Z
dayu_widgets/radio_button.py
kanbang/dayu_widgets
6ff101e6c6f8fcf10e5cb578023a12ccdcef9164
[ "MIT" ]
56
2019-06-19T03:35:27.000Z
2022-03-22T08:07:32.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################### # Author: Mu yanru # Date : 2019.2 # Email : muyanru345@163.com ################################################################### """ MRadioButton """ from dayu_widgets.mixin import cursor_mixin from day...
28.181818
85
0.55
63
620
5.222222
0.714286
0.048632
0.091185
0
0
0
0
0
0
0
0
0.022388
0.135484
620
21
86
29.52381
0.591418
0.316129
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
8b22f60e8817b510f8bc63f41e536f26cc1e0f64
689
py
Python
test/integration/ggrc/models/test_control_assessment.py
mikecb/ggrc-core
1cda560cb0920021416e07740c6cca1acba56268
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc/models/test_control_assessment.py
mikecb/ggrc-core
1cda560cb0920021416e07740c6cca1acba56268
[ "ECL-2.0", "Apache-2.0" ]
1
2021-03-26T00:24:35.000Z
2021-03-26T00:24:35.000Z
test/integration/ggrc/models/test_control_assessment.py
mikecb/ggrc-core
1cda560cb0920021416e07740c6cca1acba56268
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: miha@reciprocitylabs.com # Maintained By: miha@reciprocitylabs.com from ggrc import db from ggrc.models import ControlAssessment from integration.g...
34.45
78
0.780842
87
689
6.149425
0.609195
0.02243
0.078505
0.08972
0
0
0
0
0
0
0
0.009901
0.120464
689
19
79
36.263158
0.872937
0.333817
0
0
0
0
0.039648
0
0
0
0
0
0.181818
1
0.090909
false
0
0.363636
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8b328370d1cf93b389aef2ac7b2ff633d0f7663a
519
py
Python
rotait/workload.py
stevecshanks/rota-it
09a48b3e8c863557968258f9083bb69e4188e5b3
[ "MIT" ]
null
null
null
rotait/workload.py
stevecshanks/rota-it
09a48b3e8c863557968258f9083bb69e4188e5b3
[ "MIT" ]
null
null
null
rotait/workload.py
stevecshanks/rota-it
09a48b3e8c863557968258f9083bb69e4188e5b3
[ "MIT" ]
null
null
null
from collections import Counter class Workload: def __init__(self, tasks): self.per_person = Counter(task.assignee for task in tasks) def assign(self, task, person): task.assignee = person self.per_person[person] += 1 return task def assigned_to(self, person): re...
25.95
77
0.655106
68
519
4.823529
0.470588
0.064024
0.118902
0.115854
0
0
0
0
0
0
0
0.005208
0.260116
519
20
77
25.95
0.848958
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.071429
0.071429
0.714286
0
0
0
0
null
0
0
0
0
0
0
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
8b409e98d4bcafd53946a98c26955761614abc97
216
py
Python
js/jquery_scrolltofixed/__init__.py
davidjb/js.jquery_scrolltofixed
f5a8606ce8c240334504e43f218c2e8d11d09551
[ "BSD-3-Clause" ]
1
2016-08-31T19:19:16.000Z
2016-08-31T19:19:16.000Z
js/jquery_scrolltofixed/__init__.py
davidjb/js.jquery_scrolltofixed
f5a8606ce8c240334504e43f218c2e8d11d09551
[ "BSD-3-Clause" ]
null
null
null
js/jquery_scrolltofixed/__init__.py
davidjb/js.jquery_scrolltofixed
f5a8606ce8c240334504e43f218c2e8d11d09551
[ "BSD-3-Clause" ]
null
null
null
from fanstatic import Library, Resource library = Library('scrolltofixed', 'resources') scrolltofixed = Resource(library, 'jquery-scrolltofixed.js', minified='jquery-scrolltofixed-min.js')
30.857143
64
0.699074
20
216
7.55
0.55
0.198676
0
0
0
0
0
0
0
0
0
0
0.189815
216
6
65
36
0.862857
0
0
0
0
0
0.333333
0.231481
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
8c6a4e21298bd22ee6accce6dcffb362757cd105
746
py
Python
devops-console/apps/applications/migrations/0002_auto_20190130_1757.py
lilinghell/devops
1b2890d3f2d9f6e15e5b32d0910bc4768f065adc
[ "Apache-2.0" ]
4
2019-12-06T06:19:33.000Z
2021-12-23T13:05:06.000Z
devops-console/apps/applications/migrations/0002_auto_20190130_1757.py
lilinghell/devops
1b2890d3f2d9f6e15e5b32d0910bc4768f065adc
[ "Apache-2.0" ]
8
2020-03-15T03:40:38.000Z
2022-03-12T00:50:27.000Z
devops-console/apps/applications/migrations/0002_auto_20190130_1757.py
lilinghell/devops
1b2890d3f2d9f6e15e5b32d0910bc4768f065adc
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.5 on 2019-01-30 09:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('applications', '0001_initial'), ] operations = [ migrations.AlterField( model_name='repository', name='auth_pwd', ...
26.642857
62
0.580429
75
746
5.64
0.52
0.141844
0.177305
0.205674
0.617021
0.617021
0.617021
0.50591
0.411348
0.411348
0
0.05395
0.30429
746
27
63
27.62963
0.761079
0.060322
0
0.545455
1
0
0.121602
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8c6d9af9d7f87aa9ba388d3e1cf15c31ce4fbd09
2,958
py
Python
tests/test_encode.py
gruber-sciencelab/SMEAGOL
966e18a9869e992537605f93e5ee2af1c9e257f2
[ "MIT" ]
null
null
null
tests/test_encode.py
gruber-sciencelab/SMEAGOL
966e18a9869e992537605f93e5ee2af1c9e257f2
[ "MIT" ]
null
null
null
tests/test_encode.py
gruber-sciencelab/SMEAGOL
966e18a9869e992537605f93e5ee2af1c9e257f2
[ "MIT" ]
null
null
null
from smeagol.encode import * import os import pytest script_dir = os.path.dirname(__file__) rel_path = "data" data_path = os.path.join(script_dir, rel_path) def test_integer_encode(): record = SeqRecord(Seq('ACGTNWSMKRYBDHVZ'), id='id', name='name') result = integer_encode(record, rc=False) assert np.all...
44.149254
220
0.612576
415
2,958
4.322892
0.209639
0.084727
0.116499
0.180045
0.497213
0.372352
0.27146
0.231884
0.231884
0.156076
0
0.034722
0.172414
2,958
67
221
44.149254
0.698121
0
0
0.105263
0
0
0.08246
0.007097
0.017544
0
0
0
0.491228
1
0.052632
false
0
0.052632
0
0.105263
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
1
0
0
0
0
0
0
0
0
0
2
8c6dfa8e7650cca218f10ad2519c965b351b6e94
688
py
Python
tflite/BuiltinOperator.py
erezinman/tflite-flatbuffer-explorer
0fe1828b80108de3b6b7075de6a66162dfd0d322
[ "MIT" ]
null
null
null
tflite/BuiltinOperator.py
erezinman/tflite-flatbuffer-explorer
0fe1828b80108de3b6b7075de6a66162dfd0d322
[ "MIT" ]
null
null
null
tflite/BuiltinOperator.py
erezinman/tflite-flatbuffer-explorer
0fe1828b80108de3b6b7075de6a66162dfd0d322
[ "MIT" ]
null
null
null
# automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite class BuiltinOperator(object): ADD = 0 AVERAGE_POOL_2D = 1 CONCATENATION = 2 CONV_2D = 3 DEPTHWISE_CONV_2D = 4 EMBEDDING_LOOKUP = 7 FULLY_CONNECTED = 9 HASHTABLE_LOOKUP = 10 L2_NORMALIZATION = ...
19.657143
68
0.638081
91
688
4.593407
0.89011
0.043062
0
0
0
0
0
0
0
0
0
0.120253
0.311047
688
34
69
20.235294
0.761603
0.122093
0
0
1
0
0
0
0
0
0
0
0
1
0
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
8c71904ebd9c63564cf8de7ecdb8f509752b6a40
703
py
Python
parser/team27/G-27/execution/symbol/table.py
Lenin201/tytus
cace7587b0274ceb26327b583201493bd1048b96
[ "MIT" ]
1
2021-01-09T05:32:35.000Z
2021-01-09T05:32:35.000Z
parser/team27/G-27/execution/symbol/table.py
XiomRB/tytus
0873e4bdce5c110bee6ef2aa98240be6a93ae024
[ "MIT" ]
null
null
null
parser/team27/G-27/execution/symbol/table.py
XiomRB/tytus
0873e4bdce5c110bee6ef2aa98240be6a93ae024
[ "MIT" ]
null
null
null
class Table(object): def __init__(self, name): self.name = name self.columns = [] def createColumn(self, column): self.columns.append(column) def readColumn(self, name): for value in self.columns: if value.name == name: return value ...
28.12
45
0.519203
82
703
4.402439
0.304878
0.274238
0.132964
0.105263
0.265928
0.265928
0.265928
0.265928
0.265928
0.265928
0
0.004545
0.374111
703
24
46
29.291667
0.815909
0
0
0.3
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.35
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
8c78b4076ac285387691eaefdc4b2dc0c790be8d
1,191
py
Python
app/core/models.py
108806/drf_adv_test
fe4363e47e65de883fabd551aaf18ca5ff7bee1d
[ "BSD-2-Clause" ]
null
null
null
app/core/models.py
108806/drf_adv_test
fe4363e47e65de883fabd551aaf18ca5ff7bee1d
[ "BSD-2-Clause" ]
null
null
null
app/core/models.py
108806/drf_adv_test
fe4363e47e65de883fabd551aaf18ca5ff7bee1d
[ "BSD-2-Clause" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \ PermissionsMixin class UserManager(BaseUserManager): def create_user(self, email, password=None, **extra_fields): """Creates and saves a new user""" if not email: raise ValueError('No valid email provided') ...
29.775
75
0.739715
154
1,191
5.61039
0.422078
0.027778
0.041667
0.037037
0.199074
0.155093
0.155093
0
0
0
0
0.008911
0.151973
1,191
39
76
30.538462
0.846535
0.115029
0
0.16
0
0
0.027132
0
0
0
0
0
0
1
0.08
false
0.16
0.08
0
0.64
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1
0
0
2
8c8302aacd848814b28c80f3cb7d246d2c41919a
222
py
Python
pysge/utils.py
shane-breeze/pysge
7c8d7f8df5ca7c09c529b01134a0e789a2ba2cbe
[ "MIT" ]
null
null
null
pysge/utils.py
shane-breeze/pysge
7c8d7f8df5ca7c09c529b01134a0e789a2ba2cbe
[ "MIT" ]
null
null
null
pysge/utils.py
shane-breeze/pysge
7c8d7f8df5ca7c09c529b01134a0e789a2ba2cbe
[ "MIT" ]
null
null
null
try: import subprocess32 as sp except ModuleNotFoundError: import subprocess as sp import shlex def run_command(cmd): p = sp.run(shlex.split(cmd), stdout=sp.PIPE, stderr=sp.PIPE) return p.stdout, p.stderr
22.2
64
0.725225
34
222
4.705882
0.558824
0.05
0
0
0
0
0
0
0
0
0
0.010989
0.18018
222
9
65
24.666667
0.868132
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.625
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
8c860bdb685621ac68461a5e8c8c00340c6b1c45
435
py
Python
tests/test_inchi.py
ginkgobioworks/pychemy
e2da05ff5815aae1465407b4d434afb66117e8da
[ "MIT" ]
3
2016-12-18T20:19:51.000Z
2020-10-20T01:49:39.000Z
tests/test_inchi.py
ginkgobioworks/pychemy
e2da05ff5815aae1465407b4d434afb66117e8da
[ "MIT" ]
null
null
null
tests/test_inchi.py
ginkgobioworks/pychemy
e2da05ff5815aae1465407b4d434afb66117e8da
[ "MIT" ]
1
2020-03-29T22:55:46.000Z
2020-03-29T22:55:46.000Z
from __future__ import print_function import unittest import six from pychemy.inchi import InChI class InchiTest(unittest.TestCase): def test_unicode_inchi(self): inchi_str = six.u('InChI=1S/C14H18O8/c1-20-9-4-7(5-15)2-3-8(9)21-14-13(19)12(18)11(17)10(6-16)22-14/h2-5,10-14,16-19H,6H2,1H3/t10-,11-,12+,13-,14-/...
29
158
0.721839
81
435
3.765432
0.62963
0.052459
0
0
0
0
0
0
0
0
0
0.194301
0.112644
435
14
159
31.071429
0.595855
0
0
0
0
0.1
0.324138
0.305747
0
0
0
0
0.1
1
0.1
false
0
0.4
0
0.6
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
8c8a4300c28e34f4930ae2443042159fc3f83514
753
py
Python
experimental_code/integratedAltAz/keplerianToCartesianOrbital.py
rex-mcall/EST_Internship_2021
e2281925c0410e10cf779f8da37d2cf0b58c893a
[ "MIT" ]
null
null
null
experimental_code/integratedAltAz/keplerianToCartesianOrbital.py
rex-mcall/EST_Internship_2021
e2281925c0410e10cf779f8da37d2cf0b58c893a
[ "MIT" ]
null
null
null
experimental_code/integratedAltAz/keplerianToCartesianOrbital.py
rex-mcall/EST_Internship_2021
e2281925c0410e10cf779f8da37d2cf0b58c893a
[ "MIT" ]
null
null
null
from tletools import TLE import matplotlib.pyplot as plt import numpy as np import math from math import * import sys import datetime as dt import tleToKeplerianElements as ttke # uses TLE to return the current distance of the satellite to the focus def distanceToCentralBody(tle, curr_trueA): lan, argp, inc, ecc,...
31.375
77
0.706507
117
753
4.487179
0.521368
0.12
0.068571
0.125714
0
0
0
0
0
0
0
0.008375
0.207171
753
24
78
31.375
0.871022
0.188579
0
0
0
0
0
0
0
0
0
0
0
1
0.105263
false
0
0.421053
0
0.631579
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8ca80fec6941295983f63bed7954d4de64aa4bfb
208
py
Python
csrf/api/v1/urls.py
CredoEducation/edx-drf-extensions
853fb5ec6392d57693008e1a1c1620b79cb8343b
[ "Apache-2.0" ]
13
2016-08-26T15:33:05.000Z
2020-12-20T19:12:34.000Z
csrf/api/v1/urls.py
CredoEducation/edx-drf-extensions
853fb5ec6392d57693008e1a1c1620b79cb8343b
[ "Apache-2.0" ]
74
2016-03-11T21:42:14.000Z
2021-10-04T05:41:12.000Z
csrf/api/v1/urls.py
CredoEducation/edx-drf-extensions
853fb5ec6392d57693008e1a1c1620b79cb8343b
[ "Apache-2.0" ]
13
2016-11-21T06:34:17.000Z
2021-09-07T08:34:28.000Z
""" URL definitions for version 1 of the CSRF API. """ from django.conf.urls import url from .views import CsrfTokenView urlpatterns = [ url(r'^token$', CsrfTokenView.as_view(), name='csrf_token'), ]
16
64
0.701923
29
208
4.965517
0.758621
0
0
0
0
0
0
0
0
0
0
0.005747
0.163462
208
12
65
17.333333
0.821839
0.221154
0
0
0
0
0.11039
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
1
0
0
0
0
2
8ca83fa54e7394d645fa820ab6dd850bff3aac1f
832
py
Python
bokeh/protocol/messages/ok.py
kinghows/bokeh
aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7
[ "BSD-3-Clause" ]
4
2018-06-03T14:08:15.000Z
2020-09-09T01:56:29.000Z
bokeh/protocol/messages/ok.py
kinghows/bokeh
aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7
[ "BSD-3-Clause" ]
1
2021-05-09T02:45:17.000Z
2021-05-09T02:45:17.000Z
bokeh/protocol/messages/ok.py
kinghows/bokeh
aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7
[ "BSD-3-Clause" ]
3
2020-04-28T17:47:50.000Z
2021-04-05T06:11:46.000Z
from __future__ import absolute_import import logging log = logging.getLogger(__name__) from ..message import Message from . import register @register class ok_1(Message): ''' Define the ``OK`` message (revision 1) for acknowledging successful handling of a previous message. The ``content`` fragment of ...
23.771429
75
0.644231
101
832
5.158416
0.504951
0.069098
0
0
0
0
0
0
0
0
0
0.004926
0.268029
832
34
76
24.470588
0.850575
0.439904
0
0
0
0
0.005141
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.692308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8cadc9a1ef987de2247466e14b6dcd5f4aa056a1
220
py
Python
src/utils/pythonSrc/watchFaceParser/elements/weatherElements/icon.py
chm-dev/amazfitGTSwatchfaceBundle
4cb04be5215de16628418e9b38152a35d5372d3e
[ "MIT" ]
49
2019-12-18T11:24:56.000Z
2022-03-28T09:56:27.000Z
src/utils/pythonSrc/watchFaceParser/elements/weatherElements/icon.py
chm-dev/amazfitGTSwatchfaceBundle
4cb04be5215de16628418e9b38152a35d5372d3e
[ "MIT" ]
6
2020-01-08T21:31:15.000Z
2022-03-25T19:13:26.000Z
src/utils/pythonSrc/watchFaceParser/elements/weatherElements/icon.py
chm-dev/amazfitGTSwatchfaceBundle
4cb04be5215de16628418e9b38152a35d5372d3e
[ "MIT" ]
6
2019-12-27T17:30:24.000Z
2021-09-30T08:11:01.000Z
from watchFaceParser.elements.basicElements.imageSet import ImageSet class Icon: definitions = { 1: { 'Name': 'Images', 'Type': ImageSet}, 2: { 'Name': 'NoWeatherImageIndex', 'Type': 'long'}, }
24.444444
68
0.622727
20
220
6.85
0.8
0
0
0
0
0
0
0
0
0
0
0.011628
0.218182
220
8
69
27.5
0.784884
0
0
0
0
0
0.205479
0
0
0
0
0
0
1
0
false
0
0.166667
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
0
0
0
0
0
2
8cae7ac8e5d8109409bea3d890ec721d39341abb
905
py
Python
netbox/dcim/migrations/0133_port_colors.py
TheFlyingCorpse/netbox
a226f06b1beb575011d783b202d76cb74d3b1f79
[ "Apache-2.0" ]
4,994
2019-07-01T13:15:44.000Z
2022-03-31T19:55:45.000Z
netbox/dcim/migrations/0133_port_colors.py
TheFlyingCorpse/netbox
a226f06b1beb575011d783b202d76cb74d3b1f79
[ "Apache-2.0" ]
4,045
2019-07-01T14:24:09.000Z
2022-03-31T16:07:39.000Z
netbox/dcim/migrations/0133_port_colors.py
TheFlyingCorpse/netbox
a226f06b1beb575011d783b202d76cb74d3b1f79
[ "Apache-2.0" ]
1,225
2019-07-01T15:34:03.000Z
2022-03-31T16:47:09.000Z
from django.db import migrations import utilities.fields class Migration(migrations.Migration): dependencies = [ ('dcim', '0132_cable_length'), ] operations = [ migrations.AddField( model_name='frontport', name='color', field=utilities.fields.ColorFiel...
27.424242
72
0.577901
82
905
6.256098
0.353659
0.146199
0.179337
0.210526
0.610136
0.610136
0.610136
0.610136
0.610136
0.610136
0
0.012759
0.307182
905
32
73
28.28125
0.805423
0
0
0.571429
0
0
0.100552
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.178571
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8cca8d879ebb48981faec1a262d979d1e0c2e298
13,639
py
Python
py_src/mlpiot/proto/scene_description_pb2.py
machine2learn/mlpiot.base
da0b77fccbb0e42d1ddbb6dbc490313433dc7575
[ "Apache-2.0" ]
1
2021-03-30T20:49:54.000Z
2021-03-30T20:49:54.000Z
py_src/mlpiot/proto/scene_description_pb2.py
machine2learn/mlpiot.base
da0b77fccbb0e42d1ddbb6dbc490313433dc7575
[ "Apache-2.0" ]
null
null
null
py_src/mlpiot/proto/scene_description_pb2.py
machine2learn/mlpiot.base
da0b77fccbb0e42d1ddbb6dbc490313433dc7575
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mlpiot/proto/scene_description.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbo...
45.768456
1,384
0.768311
1,709
13,639
5.820948
0.101229
0.046643
0.03468
0.042019
0.729996
0.629373
0.591878
0.541616
0.541616
0.541616
0
0.035909
0.113865
13,639
297
1,385
45.922559
0.787192
0.034973
0
0.649057
1
0.003774
0.226505
0.189249
0
0
0
0
0
1
0
false
0
0.030189
0
0.030189
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8ccc7527ffc47c5ff344fbc2004901e2de010bf4
242
py
Python
core/exception.py
simyy/flask_app
ec34a4e939620b2d261364b40e85f8211f8f9e9d
[ "MIT" ]
null
null
null
core/exception.py
simyy/flask_app
ec34a4e939620b2d261364b40e85f8211f8f9e9d
[ "MIT" ]
2
2021-03-25T22:14:36.000Z
2021-06-01T22:51:34.000Z
core/exception.py
simyy/flask_app
ec34a4e939620b2d261364b40e85f8211f8f9e9d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 class BaseException(Exception): def __init__(self, code, msg): self.code = code self.msg = msg def __str__(self): return '<%s %s>' % (self.__class__.__name__, self.code)
20.166667
63
0.607438
32
242
4.09375
0.59375
0.183206
0
0
0
0
0
0
0
0
0
0.005464
0.243802
242
11
64
22
0.710383
0.136364
0
0
0
0
0.033816
0
0
0
0
0
0
1
0.333333
false
0
0
0.166667
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
8ce0ee53bb5fb1aa40bed29ff3cb17d7bb85ac52
524
py
Python
trace_feature/models/simple_scenario.py
trace-features-bdd/trace_feature
e372b3188d5d77c58789afdb1e39d25e2cf84785
[ "MIT" ]
null
null
null
trace_feature/models/simple_scenario.py
trace-features-bdd/trace_feature
e372b3188d5d77c58789afdb1e39d25e2cf84785
[ "MIT" ]
null
null
null
trace_feature/models/simple_scenario.py
trace-features-bdd/trace_feature
e372b3188d5d77c58789afdb1e39d25e2cf84785
[ "MIT" ]
null
null
null
from trace_feature.models.scenario import Scenario class SimpleScenario(Scenario): def __init__(self): self.steps = [] self.scenario_title = "" self.line = None self.executed_methods = [] def execute(self): pass def set_line(self): pass def __str__(s...
20.153846
50
0.593511
58
524
5.086207
0.465517
0.091525
0.115254
0.142373
0
0
0
0
0
0
0
0
0.30916
524
25
51
20.96
0.814917
0
0
0.111111
0
0
0.019084
0
0
0
0
0
0
1
0.277778
false
0.111111
0.055556
0
0.444444
0.222222
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
0
0
2
8cf3894e77f3b424b8d63437a58e95928dde4ed7
652
py
Python
src/280. Wiggle Sort.py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
1
2019-12-16T08:18:25.000Z
2019-12-16T08:18:25.000Z
src/280. Wiggle Sort.py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
null
null
null
src/280. Wiggle Sort.py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
null
null
null
class Solution: def wiggleSort(self, nums: List[int]) -> None: """ Do not return anything, modify nums in-place instead. """ ''' [3,5,2,1,6,4] [3,5,1,6,2,4] [4,3,2,1] [3,4,2,1] [6,6,5,6,3,8] ''' def is_correct_order(x, ...
27.166667
69
0.455521
92
652
3.184783
0.402174
0.102389
0.061433
0.068259
0.075085
0
0
0
0
0
0
0.076336
0.397239
652
23
70
28.347826
0.669211
0.081288
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0
0.111111
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
8cf86bfb6eec122aaf737782baf668c53d57edad
363
py
Python
Task1E.py
dan7267/1a-flood-risk-project-93
d95cee987f5673d637626e1804f719371a25daa8
[ "MIT" ]
null
null
null
Task1E.py
dan7267/1a-flood-risk-project-93
d95cee987f5673d637626e1804f719371a25daa8
[ "MIT" ]
null
null
null
Task1E.py
dan7267/1a-flood-risk-project-93
d95cee987f5673d637626e1804f719371a25daa8
[ "MIT" ]
null
null
null
from floodsystem.stationdata import MonitoringStation from floodsystem.geo import rivers_by_station_number def run(): """Requirements for Task1E""" rivers_station_number = rivers_by_station_number(MonitoringStation, 9) print(rivers_station_number) if __name__ == "__main__": print("*** Task 1E: CUED P...
30.25
74
0.752066
44
363
5.795455
0.636364
0.203922
0.117647
0.164706
0
0
0
0
0
0
0
0.00974
0.151515
363
12
75
30.25
0.818182
0.063361
0
0
0
0
0.173134
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.375
0.25
0
0
0
null
1
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
2
8cf8d6f44600fb995dd1f41219e9e6510db6f3d8
998
py
Python
test/test_util.py
konfiger/konfiger-python
294fb2fed8a46f7e242825fc0b723b0ff7132c8c
[ "MIT" ]
4
2019-09-25T02:18:43.000Z
2020-01-21T19:16:05.000Z
test/test_util.py
keyvaluedb/key-value-db-python
294fb2fed8a46f7e242825fc0b723b0ff7132c8c
[ "MIT" ]
null
null
null
test/test_util.py
keyvaluedb/key-value-db-python
294fb2fed8a46f7e242825fc0b723b0ff7132c8c
[ "MIT" ]
null
null
null
#!python import unittest import os import sys sys.path.insert(0, os.getcwd()) from src import escape_string, un_escape_string class TestKonfigerUtil(unittest.TestCase): def test_check_escape_and_unescape_separator(self): actual_str = "\\,Hello¬W\n-\t-\torld" t1 = escape_string(actu...
33.266667
64
0.655311
134
998
4.641791
0.291045
0.192926
0.180064
0.128617
0.411576
0.332797
0.234727
0.234727
0.131833
0
0
0.020279
0.209419
998
29
65
34.413793
0.759189
0.007014
0
0.090909
0
0
0.079798
0.067677
0
0
0
0
0.454545
1
0.045455
false
0
0.181818
0
0.272727
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
1
0
0
0
0
0
0
0
0
0
2
8cfdf25e9a8b70f9400ed44ee8c791ade7d45ab5
1,117
py
Python
farnsworth/peewee_extensions.py
mechaphish/farnsworth
7d6bcbd94ab5ab521c29309fe3c47a0f6005a5d3
[ "BSD-2-Clause" ]
6
2016-08-20T23:39:42.000Z
2020-11-06T23:08:03.000Z
farnsworth/peewee_extensions.py
mechaphish/farnsworth
7d6bcbd94ab5ab521c29309fe3c47a0f6005a5d3
[ "BSD-2-Clause" ]
null
null
null
farnsworth/peewee_extensions.py
mechaphish/farnsworth
7d6bcbd94ab5ab521c29309fe3c47a0f6005a5d3
[ "BSD-2-Clause" ]
5
2016-08-21T13:16:00.000Z
2020-11-06T23:08:17.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from peewee import Field, SQL import itertools """Extend Peewee basic types.""" class EnumField(Field): """Define a EnumField type""" db_field = "enum" def __init__(self, *args, **kwargs): ...
28.641026
82
0.642793
145
1,117
4.682759
0.455172
0.070692
0.088365
0.053019
0.082474
0.082474
0
0
0
0
0
0.002291
0.218442
1,117
38
83
29.394737
0.775487
0.059982
0
0
0
0
0.093966
0
0
0
0
0
0
1
0.217391
false
0
0.130435
0.086957
0.565217
0
0
0
0
null
0
0
0
0
0
0
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
507554c410c6294385578ca1eb9a80f4ffa123e6
683
py
Python
tests/telemetry/decorators_test.py
trevorgrayson/telemetry
efeca1b2062f40a2557f2c030dc687f546f3c60b
[ "MIT" ]
3
2020-03-20T20:04:37.000Z
2021-08-23T20:11:10.000Z
tests/telemetry/decorators_test.py
trevorgrayson/telemetry
efeca1b2062f40a2557f2c030dc687f546f3c60b
[ "MIT" ]
2
2019-06-10T08:02:05.000Z
2019-06-10T08:02:22.000Z
tests/telemetry/decorators_test.py
trevorgrayson/telemetry
efeca1b2062f40a2557f2c030dc687f546f3c60b
[ "MIT" ]
null
null
null
from pytest import raises import telemetry REPORT_NAME = 'some.key' meter = telemetry.get_telemeter(__name__) @meter.catch('some_report') def exception_prone(ii): return 1/ii class TestsExcept: def test_catch_pass(self): assert exception_prone(2) == 0.5 def test_catch_throws(self): ...
18.459459
42
0.645681
92
683
4.565217
0.445652
0.02381
0.057143
0.066667
0.071429
0
0
0
0
0
0
0.015779
0.257687
683
36
43
18.972222
0.812623
0.081991
0
0
0
0
0.030449
0
0
0
0
0
0.095238
1
0.238095
false
0.047619
0.095238
0.095238
0.52381
0
0
0
0
null
0
0
0
0
0
0
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
5078d56ccc790f70f1e43a28737794a0f83dfcac
1,022
py
Python
creel_portal/api/filters/FN125Tag_Filter.py
AdamCottrill/CreelPortal
5ec867c4f11b4231c112e8209116b6b96c2830ec
[ "MIT" ]
null
null
null
creel_portal/api/filters/FN125Tag_Filter.py
AdamCottrill/CreelPortal
5ec867c4f11b4231c112e8209116b6b96c2830ec
[ "MIT" ]
null
null
null
creel_portal/api/filters/FN125Tag_Filter.py
AdamCottrill/CreelPortal
5ec867c4f11b4231c112e8209116b6b96c2830ec
[ "MIT" ]
null
null
null
import django_filters from .filter_utils import ValueInFilter from ...models import FN125_Tag from .FishAttr_Filter import FishAttrFilters class FN125TagFilter(FishAttrFilters): """A filter set class for lamprey data. Inherits all of the filters in FishAttrs and add some that are specific to Tag attribute...
30.969697
74
0.736791
126
1,022
5.777778
0.460317
0.197802
0.241758
0.142857
0.287088
0
0
0
0
0
0
0.010714
0.178082
1,022
32
75
31.9375
0.855952
0.245597
0
0
0
0
0.086093
0
0
0
0
0
0
1
0
false
0
0.25
0
0.875
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
1
0
0
2
5093de6bb237feb29997a009c2a055d96c61745b
221
py
Python
src/atc/etl/__init__.py
atc-net/atc-dataplatform
4614efbbc9a5b2b4e063cc12211aa5c697cad115
[ "MIT" ]
6
2021-09-10T09:50:20.000Z
2022-02-12T09:30:47.000Z
src/atc/etl/__init__.py
atc-net/atc-dataplatform
4614efbbc9a5b2b4e063cc12211aa5c697cad115
[ "MIT" ]
40
2021-09-10T11:20:42.000Z
2022-03-25T08:26:57.000Z
src/atc/etl/__init__.py
atc-net/atc-dataplatform
4614efbbc9a5b2b4e063cc12211aa5c697cad115
[ "MIT" ]
2
2021-09-10T10:07:04.000Z
2022-02-16T17:49:08.000Z
from .loader import Loader from .extractor import Extractor from .transformer import Transformer from .orchestrator import Orchestrator __all__ = [ "Loader", "Extractor", "Transformer", "Orchestrator", ]
18.416667
38
0.728507
21
221
7.47619
0.333333
0
0
0
0
0
0
0
0
0
0
0
0.18552
221
11
39
20.090909
0.872222
0
0
0
0
0
0.171946
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
1
0
0
0
0
2
509a3e7b6cd578f69b49591849f510331b44efb2
8,780
py
Python
test/test_gg_snippets.py
ooz/ggpy
a222299c3fc23739576ae0d3dfc75362fb1152cd
[ "MIT" ]
null
null
null
test/test_gg_snippets.py
ooz/ggpy
a222299c3fc23739576ae0d3dfc75362fb1152cd
[ "MIT" ]
2
2020-05-13T22:12:39.000Z
2021-05-01T22:41:55.000Z
test/test_gg_snippets.py
ooz/ggpy
a222299c3fc23739576ae0d3dfc75362fb1152cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import gg from ggconfig import config ############################################################################## # CONTENT SNIPPETS ############################################################################## def test_logo_url(): assert gg.logo_url(config) == 'h...
37.20339
185
0.637813
1,252
8,780
4.353834
0.176518
0.025683
0.028252
0.035773
0.53403
0.434232
0.378279
0.346725
0.346725
0.316639
0
0.022686
0.116401
8,780
235
186
37.361702
0.679814
0.051708
0
0.074074
0
0
0.229857
0.020749
0
0
0
0
0.45679
1
0.246914
false
0
0.024691
0
0.271605
0
0
0
0
null
0
0
0
0
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
50a7e0a80d5cef9b4bb80a0f46b84c78195b8ae4
527
py
Python
FaceLandmarking.LearningProcess/readers/regressor_example_reader.py
TomaszRewak/FaceLandmarking
74bc5cbcdb61cd9835e5bfc61e978fad256940f4
[ "MIT" ]
78
2018-02-09T14:30:06.000Z
2020-10-01T08:43:32.000Z
FaceLandmarking.LearningProcess/readers/regressor_example_reader.py
YoungerGao/Face-Landmarking
74bc5cbcdb61cd9835e5bfc61e978fad256940f4
[ "MIT" ]
1
2019-03-20T00:16:47.000Z
2019-03-24T09:12:25.000Z
FaceLandmarking.LearningProcess/readers/regressor_example_reader.py
YoungerGao/Face-Landmarking
74bc5cbcdb61cd9835e5bfc61e978fad256940f4
[ "MIT" ]
8
2019-03-03T11:57:43.000Z
2021-07-01T09:27:20.000Z
import csv def read_regressor_examples(num_of_features, num_of_decisions, file_path): xs = [] ys = [] with open(file_path, mode='r', encoding='utf-8') as file: reader = csv.reader(file, delimiter=' ') for row in reader: x = [float(value) for value in row[0 : num_of_features]]...
23.954545
101
0.571157
74
527
3.851351
0.459459
0.105263
0.182456
0.168421
0.396491
0.350877
0
0
0
0
0
0.005479
0.3074
527
21
102
25.095238
0.775342
0
0
0
0
0
0.017078
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.2
0
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
50b2c8b6eb4eb1e401d69a4ec9a24c73d1dd8ed4
220
py
Python
Exercices/Secao04/exercicio46.py
Guilt-tech/PythonExercices
e59bffae997a1974d3e3cdcfff7700afbed65e6e
[ "MIT" ]
null
null
null
Exercices/Secao04/exercicio46.py
Guilt-tech/PythonExercices
e59bffae997a1974d3e3cdcfff7700afbed65e6e
[ "MIT" ]
null
null
null
Exercices/Secao04/exercicio46.py
Guilt-tech/PythonExercices
e59bffae997a1974d3e3cdcfff7700afbed65e6e
[ "MIT" ]
null
null
null
print('Digite um número inteiro positivo de três dígitos (100 a 999), para gerar o número invertido') num = int(input('Número: ')) num = str(num) reverso = num[::-1] print(f'O número ao contrário de: {num} é: {reverso}')
44
101
0.695455
37
220
4.135135
0.702703
0.091503
0
0
0
0
0
0
0
0
0
0.037433
0.15
220
5
102
44
0.780749
0
0
0
0
0
0.651584
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
50c5e0a8570cdd739aa3c8e994e48c1fd64e8100
196
py
Python
lambda/python/ip/what_is_my_ip.py
enrikiko/AWS
e8984e5fc5d015285ef2cc3f4295a273d1994e22
[ "MIT" ]
null
null
null
lambda/python/ip/what_is_my_ip.py
enrikiko/AWS
e8984e5fc5d015285ef2cc3f4295a273d1994e22
[ "MIT" ]
null
null
null
lambda/python/ip/what_is_my_ip.py
enrikiko/AWS
e8984e5fc5d015285ef2cc3f4295a273d1994e22
[ "MIT" ]
null
null
null
import json def lambda_handler(event, context): ip = event["requestContext"]["identity"]["sourceIp"] return { 'statusCode': 200, 'body': json.dumps(ip) }
21.777778
57
0.561224
19
196
5.736842
0.842105
0
0
0
0
0
0
0
0
0
0
0.021583
0.290816
196
8
58
24.5
0.76259
0
0
0
0
0
0.22449
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
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
50c9aef6ef070fdd9753a4e730c01e945a86b51c
3,581
py
Python
qtpp/views/auth.py
xzdylyh/qtppy
baa37c59082863ace3cddb09c30a55a92d64f656
[ "Apache-2.0" ]
2
2020-04-23T06:10:05.000Z
2021-01-21T08:56:09.000Z
qtpp/views/auth.py
xzdylyh/qtppy
baa37c59082863ace3cddb09c30a55a92d64f656
[ "Apache-2.0" ]
2
2020-04-22T10:11:29.000Z
2020-05-12T10:02:14.000Z
qtpp/views/auth.py
xzdylyh/qtppy
baa37c59082863ace3cddb09c30a55a92d64f656
[ "Apache-2.0" ]
4
2020-04-22T09:35:14.000Z
2020-12-19T08:15:25.000Z
import functools from flask import ( Blueprint, flash, g, redirect, render_template, request, session, url_for, jsonify, abort ) from werkzeug.security import check_password_hash, generate_password_hash from qtpp import db from qtpp.libs.framework.operate_db import OperationDB from qtpp.libs.framework.constant i...
26.330882
93
0.647584
427
3,581
5.309133
0.405152
0.040141
0.05558
0.077195
0.198059
0.124393
0.064402
0.064402
0.064402
0.064402
0
0.009104
0.233175
3,581
136
94
26.330882
0.81646
0.155822
0
0.233333
1
0
0.071222
0
0
0
0
0
0
1
0.1
false
0.1
0.116667
0
0.4
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
50dff37f03053b54880a5058a34de49805426364
671
py
Python
python_base/binary_array_to_number.py
GlacierBo/python_learn
f604029a1ec449d8d24bb5d40215f25df2a2b027
[ "MIT" ]
1
2018-02-12T04:56:08.000Z
2018-02-12T04:56:08.000Z
python_base/binary_array_to_number.py
GlacierBo/python_learn
f604029a1ec449d8d24bb5d40215f25df2a2b027
[ "MIT" ]
null
null
null
python_base/binary_array_to_number.py
GlacierBo/python_learn
f604029a1ec449d8d24bb5d40215f25df2a2b027
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2017/12/15 11:26 # @Author : glacier # @Site : 二进制计算 # @File : binary_array_to_number.py # @Software: PyCharm Edu # def binary_array_to_number(arr): # sum = 0 # index = len(arr)-1 # i = 0 # while(index >= 0): # sum += mul(a...
19.171429
42
0.535022
98
671
3.540816
0.479592
0.126801
0.149856
0.21902
0.224784
0.144092
0
0
0
0
0
0.060543
0.28614
671
34
43
19.735294
0.663883
0.710879
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.333333
0.333333
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
50e51c505990ca8f05a03573ffb38d38c07be03c
3,776
py
Python
data_toy/bnmtf/generate_bnmtf.py
ThomasBrouwer/BNMTF
34df0c3cebc5e67a5e39762b9305b75d73a2a0e0
[ "Apache-2.0" ]
16
2017-04-19T12:04:47.000Z
2021-12-03T00:50:43.000Z
data_toy/bnmtf/generate_bnmtf.py
ThomasBrouwer/BNMTF
34df0c3cebc5e67a5e39762b9305b75d73a2a0e0
[ "Apache-2.0" ]
1
2017-04-20T11:26:16.000Z
2017-04-20T11:26:16.000Z
data_toy/bnmtf/generate_bnmtf.py
ThomasBrouwer/BNMTF
34df0c3cebc5e67a5e39762b9305b75d73a2a0e0
[ "Apache-2.0" ]
8
2015-12-15T05:29:43.000Z
2019-06-05T03:14:11.000Z
""" Generate a toy dataset for the matrix tri-factorisation case, and store it. We use dimensions 100 by 50 for the dataset, 10 row clusters, and 5 column clusters. As the prior for F, G we take value 1 for all entries (so exp 1), and for S value 2 (so exp 1/2). As a result, each value in R has a value of around 25,...
37.019608
128
0.640625
624
3,776
3.778846
0.285256
0.010178
0.040712
0.05598
0.272265
0.176421
0.106022
0.095844
0.036472
0.036472
0
0.034888
0.21054
3,776
102
129
37.019608
0.756122
0.019862
0
0
1
0.03125
0.109712
0.006961
0
0
0
0
0.046875
0
null
null
0.015625
0.078125
null
null
0.03125
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
1
0
0
0
0
0
0
0
0
2
50ee3e8e00f618a16eddadbc990257d3c3594577
244
py
Python
example/src/pythonSnippet.py
hansehe/DockerBuildManagement
774ddfb5184dc9c9ae0c307c7d5963a4ccb104f8
[ "MIT" ]
8
2019-04-03T13:40:30.000Z
2020-11-29T09:20:13.000Z
example/src/pythonSnippet.py
hansehe/DockerBuildManagement
774ddfb5184dc9c9ae0c307c7d5963a4ccb104f8
[ "MIT" ]
1
2019-02-06T16:05:06.000Z
2019-02-24T22:59:43.000Z
example/src/pythonSnippet.py
hansehe/DockerBuildManagement
774ddfb5184dc9c9ae0c307c7d5963a4ccb104f8
[ "MIT" ]
5
2018-12-15T19:03:25.000Z
2021-09-22T23:42:33.000Z
def GetInfoMsg(): infoMsg = "This python snippet is triggered by the 'cmd' property.\r\n" infoMsg += "Any command line may be triggered with the 'cmd' property.\r\n" return infoMsg if __name__ == "__main__": print(GetInfoMsg())
34.857143
79
0.684426
34
244
4.676471
0.735294
0.075472
0.176101
0.188679
0.201258
0
0
0
0
0
0
0
0.196721
244
7
80
34.857143
0.811224
0
0
0
0
0
0.526531
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0.166667
0
0
0
null
0
0
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
0
0
0
0
0
2
0f9d62c9fc903008351f564ece40e730aa1af67b
412
py
Python
old/accent_analyser/rules/VoicedFricative1.py
stefantaubert/eng2ipa-accent-transformer
d620c70b06c83119402e255085046747ade87444
[ "MIT" ]
null
null
null
old/accent_analyser/rules/VoicedFricative1.py
stefantaubert/eng2ipa-accent-transformer
d620c70b06c83119402e255085046747ade87444
[ "MIT" ]
null
null
null
old/accent_analyser/rules/VoicedFricative1.py
stefantaubert/eng2ipa-accent-transformer
d620c70b06c83119402e255085046747ade87444
[ "MIT" ]
null
null
null
from accent_analyser.rules.IpaRule import IpaRule def replace(word: str): return word.replace("v", "w") class VoicedFricative1(IpaRule): def __init__(self, likelihood=0.51): super().__init__(likelihood) self.name = "Voiced Fricative: [w] instead of /v/" def _convert_core(self, words: list, current_in...
24.235294
59
0.708738
55
412
5.072727
0.618182
0.071685
0
0
0
0
0
0
0
0
0
0.011662
0.167476
412
16
60
25.75
0.801749
0
0
0
0
0
0.092233
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0.090909
0.636364
0
0
0
0
null
0
0
0
0
0
0
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
0f9f167571a194f1bc7acb964cd47daad5d38e0c
146
py
Python
mamonsu/plugins/system/linux/__init__.py
sgrinko/mamonsu
03b8e1217b08e6580e08129fddd64dbc20265fd4
[ "BSD-3-Clause" ]
188
2016-01-31T09:05:59.000Z
2022-03-22T16:49:12.000Z
mamonsu/plugins/system/linux/__init__.py
sgrinko/mamonsu
03b8e1217b08e6580e08129fddd64dbc20265fd4
[ "BSD-3-Clause" ]
162
2016-02-02T13:49:14.000Z
2022-02-22T08:45:42.000Z
mamonsu/plugins/system/linux/__init__.py
sgrinko/mamonsu
03b8e1217b08e6580e08129fddd64dbc20265fd4
[ "BSD-3-Clause" ]
46
2016-01-31T21:23:37.000Z
2022-02-07T10:59:54.000Z
__all__ = [ 'proc_stat', 'disk_stats', 'disk_sizes', 'memory', 'uptime', 'open_files', 'net', 'la' ,'pg_probackup' ] from . import *
18.25
49
0.582192
17
146
4.470588
0.941176
0
0
0
0
0
0
0
0
0
0
0
0.205479
146
7
50
20.857143
0.655172
0
0
0
0
0
0.465753
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
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
0f9f1cf0e2224146473d97b789d2a857c46d01b2
164
py
Python
config.py
stultus/Flask-wado
997c4b54640be121e9436950c053df60054b2c13
[ "Apache-2.0" ]
3
2015-07-09T18:49:20.000Z
2021-04-19T03:20:12.000Z
config.py
stultus/Flask-wado
997c4b54640be121e9436950c053df60054b2c13
[ "Apache-2.0" ]
1
2016-07-20T23:19:03.000Z
2016-07-20T23:19:03.000Z
config.py
stultus/Flask-wado
997c4b54640be121e9436950c053df60054b2c13
[ "Apache-2.0" ]
4
2015-05-13T07:26:57.000Z
2022-01-25T23:19:00.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- import os basedir = os.path.abspath(os.path.dirname(__file__)) CSRF_ENABLED = True SECRET_KEY='parayan-manasilla'
16.4
52
0.707317
24
164
4.583333
0.875
0.109091
0
0
0
0
0
0
0
0
0
0.006944
0.121951
164
9
53
18.222222
0.756944
0.262195
0
0
0
0
0.145299
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
0fa25074fb0a3f8683d33c168968750fc928e7ea
1,198
py
Python
tests/data/view.py
Forumouth/flask-simple
0764559fbbc4348cc146aa4dddbc1f90d91bc840
[ "MIT", "Unlicense" ]
null
null
null
tests/data/view.py
Forumouth/flask-simple
0764559fbbc4348cc146aa4dddbc1f90d91bc840
[ "MIT", "Unlicense" ]
5
2016-01-30T13:32:23.000Z
2016-02-06T13:34:11.000Z
tests/data/view.py
Forumouth/flask-simple
0764559fbbc4348cc146aa4dddbc1f90d91bc840
[ "MIT", "Unlicense" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 from flask.ext.simple import FlaskEasyView from .model import ExampleModel from .form import generate_example_form from .testapp import app class SimpleView(FlaskEasyView): ''' Simple Example View for test ''' trailing_slash = False model = ExampleModel f...
22.185185
53
0.716194
128
1,198
6.523438
0.421875
0.062275
0.081437
0.071856
0.083832
0
0
0
0
0
0
0.001032
0.191152
1,198
53
54
22.603774
0.860681
0.151085
0
0.148148
1
0
0.12356
0.026178
0
0
0
0
0
1
0
false
0
0.148148
0
0.851852
0
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
1
0
0
2
0fb6d81fdcc4a6f92216d10fda5840c9b15c50e3
295
py
Python
tests/data/formulas/five/five-1.0.py
pmuller/ipkg
9e3df803e0f16035a7552f63bbf54886244827d8
[ "MIT" ]
3
2016-04-20T21:24:59.000Z
2021-11-17T10:58:49.000Z
tests/data/formulas/five/five-1.0.py
pmuller/ipkg
9e3df803e0f16035a7552f63bbf54886244827d8
[ "MIT" ]
null
null
null
tests/data/formulas/five/five-1.0.py
pmuller/ipkg
9e3df803e0f16035a7552f63bbf54886244827d8
[ "MIT" ]
null
null
null
from os.path import dirname from ipkg.build import Formula, File class five(Formula): name = 'five' version = '1.0' sources = File(dirname(__file__) + '/../../sources/five-1.0.tar.gz') platform = 'any' dependencies = ('four > 1.0',) def install(self): pass
17.352941
72
0.6
39
295
4.435897
0.666667
0.034682
0
0
0
0
0
0
0
0
0
0.026786
0.240678
295
16
73
18.4375
0.745536
0
0
0
0
0
0.169492
0.101695
0
0
0
0
0
1
0.1
false
0.1
0.2
0
0.9
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1
0
0
2
0fbcbe12ef9216cd827006560b9e93c286ad369b
531
py
Python
activity/views.py
AkshayVKumar/ActivityManager
e87987a532b8441b41ecc038b51e4614b8d1a526
[ "BSD-3-Clause" ]
null
null
null
activity/views.py
AkshayVKumar/ActivityManager
e87987a532b8441b41ecc038b51e4614b8d1a526
[ "BSD-3-Clause" ]
5
2020-06-06T01:47:24.000Z
2022-02-10T14:42:15.000Z
activity/views.py
AkshayVKumar/ActivityManager
e87987a532b8441b41ecc038b51e4614b8d1a526
[ "BSD-3-Clause" ]
null
null
null
from rest_framework import viewsets from .serializers import MemberSerializer, ActivityPeriodSerializer from activity.models import UserProfile, ActivityPeriod from django.http import JsonResponse #class for displaying members class MemberViewSet(viewsets.ModelViewSet): queryset = UserProfile.objects.all() ser...
35.4
67
0.834275
52
531
8.461538
0.538462
0.036364
0.127273
0.113636
0
0
0
0
0
0
0
0
0.114878
531
14
68
37.928571
0.93617
0.111111
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
0fc78435f35004709d8d5a9264257cf022be0b7d
4,337
py
Python
Posts/migrations/0001_initial.py
rosekairu/Neighbourly
3381b4472cd9d7de988ea57f1ecd931976e95853
[ "MIT" ]
null
null
null
Posts/migrations/0001_initial.py
rosekairu/Neighbourly
3381b4472cd9d7de988ea57f1ecd931976e95853
[ "MIT" ]
6
2021-03-30T13:56:43.000Z
2021-09-22T19:26:50.000Z
Posts/migrations/0001_initial.py
rosekairu/Neighbourly
3381b4472cd9d7de988ea57f1ecd931976e95853
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-19 17:34 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import phone_field.models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_U...
52.253012
144
0.611944
459
4,337
5.620915
0.20915
0.048837
0.054264
0.085271
0.735271
0.68062
0.643023
0.615891
0.615891
0.615891
0
0.017157
0.247406
4,337
82
145
52.890244
0.773284
0.010376
0
0.52
1
0
0.107692
0
0
0
0
0
0
1
0
false
0
0.053333
0
0.106667
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0fd3b9d2e66fa26e441f1b047f98378e175a4aff
231
py
Python
python_3/aula21c.py
felipesch92/CursoEmVideo
df443e4771adc4506c96d8f419aa7acb97b28366
[ "MIT" ]
null
null
null
python_3/aula21c.py
felipesch92/CursoEmVideo
df443e4771adc4506c96d8f419aa7acb97b28366
[ "MIT" ]
null
null
null
python_3/aula21c.py
felipesch92/CursoEmVideo
df443e4771adc4506c96d8f419aa7acb97b28366
[ "MIT" ]
null
null
null
# Programa Principal def teste(): x = 8 print(f'Na função teste, n vale {n}') print(f'Na função teste x vale {x}') n = 2 print(f'No programa principal, n vale {n}') teste() print(f'No programa principal, x vale {x}')
19.25
43
0.632035
41
231
3.560976
0.341463
0.164384
0.109589
0.191781
0.60274
0
0
0
0
0
0
0.01105
0.21645
231
11
44
21
0.79558
0.077922
0
0
0
0
0.563981
0
0
0
0
0
0
1
0.125
false
0
0
0
0.125
0.5
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
1
0
2
0fdc8f057905c0da9456649de2bde8f06dd894eb
1,984
py
Python
cohesity_management_sdk/models/object_status_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-09-24T17:35:53.000Z
2022-03-25T08:08:47.000Z
cohesity_management_sdk/models/object_status_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-03-29T19:32:29.000Z
2022-01-03T23:16:45.000Z
cohesity_management_sdk/models/object_status_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
16
2019-02-27T06:54:12.000Z
2021-11-16T18:10:24.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. class ObjectStatusEnum(object): """Implementation of the 'ObjectStatus' enum. Specifies the status of an object during a Restore Task. 'kFilesCloned' indicates that the cloning has completed. 'kFetchedEntityInfo' indicates that information about ...
34.807018
73
0.724294
230
1,984
6.247826
0.452174
0.044537
0.105776
0.128045
0.037578
0
0
0
0
0
0
0.00324
0.222278
1,984
56
74
35.428571
0.928062
0.766633
0
0
0
0
0.306306
0
0
0
0
0.142857
0
1
0
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
0fe028e53da10f567941d0206c9d2ffff90acae0
418
py
Python
prometheus_redis_client/helpers.py
ChielWH/prometheus_redis_client
90852fb0eaf3aee1937a74cad6181c304dc6999a
[ "Apache-2.0" ]
19
2019-04-02T11:46:45.000Z
2022-03-21T03:38:56.000Z
prometheus_redis_client/helpers.py
ChielWH/prometheus_redis_client
90852fb0eaf3aee1937a74cad6181c304dc6999a
[ "Apache-2.0" ]
12
2019-08-17T05:55:23.000Z
2022-02-10T07:37:38.000Z
prometheus_redis_client/helpers.py
ChielWH/prometheus_redis_client
90852fb0eaf3aee1937a74cad6181c304dc6999a
[ "Apache-2.0" ]
6
2019-11-20T15:12:38.000Z
2022-03-21T03:36:44.000Z
import time from typing import Callable from functools import wraps def timeit(metric_callback: Callable, **labels): def wrapper(func): @wraps(func) def func_wrapper(*args, **kwargs): start = time.time() result = func(*args, **kwargs) metric_callback(time.time()...
26.125
63
0.62201
47
418
5.446809
0.404255
0.109375
0
0
0
0
0
0
0
0
0
0
0.284689
418
15
64
27.866667
0.856187
0
0
0
0
0
0
0
0
0
0
0
0
1
0.230769
false
0
0.230769
0
0.692308
0
0
0
0
null
0
0
0
0
0
0
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
0fe648b3645c63c3137ac9f66876140376501f31
3,513
py
Python
ebrains_drive/repo.py
apdavison/ebrains-drive
8ff11fc60e77c1b605485f550efc350c1a5f443a
[ "Apache-2.0" ]
5
2020-12-20T16:12:18.000Z
2022-03-29T09:56:34.000Z
ebrains_drive/repo.py
apdavison/ebrains-drive
8ff11fc60e77c1b605485f550efc350c1a5f443a
[ "Apache-2.0" ]
9
2020-09-25T08:27:41.000Z
2022-01-03T08:41:48.000Z
ebrains_drive/repo.py
apdavison/ebrains-drive
8ff11fc60e77c1b605485f550efc350c1a5f443a
[ "Apache-2.0" ]
2
2020-09-18T17:32:38.000Z
2020-10-13T13:34:38.000Z
from urllib.parse import urlencode from ebrains_drive.files import SeafDir, SeafFile from ebrains_drive.utils import raise_does_not_exist class Repo(object): """ A seafile library """ def __init__(self, client, **kwargs): self.client = client allowed_keys = ['encrypted', 'group_name', ...
34.441176
380
0.618275
458
3,513
4.561135
0.281659
0.033509
0.028722
0.024414
0.253231
0.19866
0.160843
0.108186
0.070847
0.039253
0
0.001142
0.252206
3,513
101
381
34.782178
0.794062
0.246798
0
0.192308
0
0
0.185972
0.042084
0
0
0
0
0.038462
1
0.269231
false
0.076923
0.057692
0.076923
0.480769
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
0
0
2
ba041d9f4395da9615d70dc1c9b697b6dd747f7f
1,903
py
Python
config.py
SoCaTel/backend-storage
11667d1868dc0d031bf0c6e938724bf2ba6f9343
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
config.py
SoCaTel/backend-storage
11667d1868dc0d031bf0c6e938724bf2ba6f9343
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
config.py
SoCaTel/backend-storage
11667d1868dc0d031bf0c6e938724bf2ba6f9343
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
#-------------------------------------------------------------------------------- # SoCaTel - Backend data storage API endpoints docker container # These tokens are needed for database access. #-------------------------------------------------------------------------------- #===========================================...
55.970588
102
0.524435
175
1,903
5.554286
0.468571
0.024691
0.030864
0.037037
0.193416
0.193416
0.193416
0.168724
0.168724
0
0
0.066477
0.075145
1,903
33
103
57.666667
0.485795
0.623752
0
0
0
0
0.56447
0.118911
0
0
0
0
0
1
0
false
0.076923
0
0
0
0
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
1
0
0
0
0
0
2
ba0b04b4ada95663d8638daf31f1153f553fb61f
912
py
Python
src/abaqus/Calibration/CalibrationModel.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
7
2022-01-21T09:15:45.000Z
2022-02-15T09:31:58.000Z
src/abaqus/Calibration/CalibrationModel.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
null
null
null
src/abaqus/Calibration/CalibrationModel.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
null
null
null
from ..Calibration.Calibration import Calibration from ..Model.ModelBase import ModelBase class CalibrationModel(ModelBase): """Abaqus creates a Model object named `Model-1` when a session is started. Notes ----- This object can be accessed by: .. code-block:: python mdb.models[name] ...
22.8
79
0.557018
88
912
5.772727
0.488636
0.086614
0.051181
0.059055
0.169291
0.169291
0.169291
0.169291
0.169291
0.169291
0
0.001678
0.346491
912
39
80
23.384615
0.850671
0.502193
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
ba1793e21f50164606de991114f96e7cddb49ec8
1,331
py
Python
test_tree.py
lightmanca/InterviewPrep
d77d6b8a1d9dd4f4d5b2d5ef38a5d1c9b2e50f07
[ "Apache-2.0" ]
null
null
null
test_tree.py
lightmanca/InterviewPrep
d77d6b8a1d9dd4f4d5b2d5ef38a5d1c9b2e50f07
[ "Apache-2.0" ]
null
null
null
test_tree.py
lightmanca/InterviewPrep
d77d6b8a1d9dd4f4d5b2d5ef38a5d1c9b2e50f07
[ "Apache-2.0" ]
null
null
null
import pytest from Tree import Tree class TestClass: def setup_class(self): pass def test_tree(self): tree = Tree() tree.add(3) tree.add(4) tree.add(0) tree.add(8) tree.add(2) tree.print_tree() assert True def test_compare_trees(se...
21.819672
50
0.555222
177
1,331
4.073446
0.169492
0.137309
0.224688
0.274619
0.525659
0.525659
0.525659
0.479889
0.410541
0
0
0.076223
0.339594
1,331
60
51
22.183333
0.744027
0.077385
0
0.181818
0
0
0
0
0
0
0
0
0.204545
1
0.068182
false
0.022727
0.045455
0
0.136364
0.045455
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
ba184328b10f564a0cd03008486c8ac39964d140
158
py
Python
03_Day_Operators/10.py
diegofregolente/30-Days-Of-Python
e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267
[ "Apache-2.0" ]
null
null
null
03_Day_Operators/10.py
diegofregolente/30-Days-Of-Python
e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267
[ "Apache-2.0" ]
null
null
null
03_Day_Operators/10.py
diegofregolente/30-Days-Of-Python
e0cad31f6d5ab1384ad6fa5a5d24a84771d6c267
[ "Apache-2.0" ]
null
null
null
x1 = 1 y1 = 0 x2 = 0 y2 = -2 m1 = (y2 / x1) x1 = 2 y1 = 2 x2 = 6 y2 = 10 m2 = (y2 - y1 / x2 - x1) diff = m1 - m2 print(f'Diff of 8 and 9: {diff:.2f}') # 10
11.285714
43
0.468354
37
158
2
0.513514
0
0
0
0
0
0
0
0
0
0
0.304762
0.335443
158
14
43
11.285714
0.4
0.012658
0
0
0
0
0.174194
0
0
0
0
0
0
1
0
false
0
0
0
0
0.083333
0
0
0
null
0
0
0
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
2
ba19b202492740345b68fb765ce97ad817af8b04
560
py
Python
application/migrations/0002_auto_20200901_2057.py
KMaina/counselling-app
16991dd0ede0e60e6f9886de283178cedd4ab58a
[ "MIT" ]
null
null
null
application/migrations/0002_auto_20200901_2057.py
KMaina/counselling-app
16991dd0ede0e60e6f9886de283178cedd4ab58a
[ "MIT" ]
null
null
null
application/migrations/0002_auto_20200901_2057.py
KMaina/counselling-app
16991dd0ede0e60e6f9886de283178cedd4ab58a
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-09-01 17:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('application', '0001_initial'), ] operations = [ migrations.AlterField( model_name='client', name='link', f...
23.333333
77
0.575
57
560
5.578947
0.666667
0.125786
0.157233
0.18239
0.245283
0.245283
0
0
0
0
0
0.051414
0.305357
560
23
78
24.347826
0.766067
0.076786
0
0.352941
1
0
0.083495
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ba21d65b7d1cc8f2d7ea73d9ecfaf83200df9067
709
py
Python
launch/gl_ros2_driver_udp.py
soslab-project/gl_ros2_driver_udp
40382327a433a5feff4f2bb09d6228129eaa6ee3
[ "BSD-3-Clause" ]
3
2021-09-15T04:54:08.000Z
2021-12-21T06:47:40.000Z
launch/gl_ros2_driver_udp.py
soslab-project/gl_ros2_driver_udp
40382327a433a5feff4f2bb09d6228129eaa6ee3
[ "BSD-3-Clause" ]
1
2021-10-15T08:55:47.000Z
2021-10-15T08:55:47.000Z
launch/gl_ros2_driver_udp.py
soslab-project/gl_ros2_driver_udp
40382327a433a5feff4f2bb09d6228129eaa6ee3
[ "BSD-3-Clause" ]
null
null
null
import os import launch from launch_ros.actions import Node from ament_index_python.packages import get_package_share_directory def generate_launch_description(): gl_ros2_driver_udp = Node( node_name = 'gl_ros2_driver_udp', package = 'gl_ros2_driver_udp', node_executable = 'gl_ros2_driver...
25.321429
67
0.599436
85
709
4.6
0.6
0.076726
0.153453
0.191816
0.14578
0
0
0
0
0
0
0.043478
0.286319
709
27
68
26.259259
0.729249
0
0
0
1
0
0.200282
0.03244
0
0
0
0
0
1
0.045455
false
0
0.181818
0
0.272727
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ba247ac7c75341abffe46b2c862326f4b1bcfefb
275
py
Python
COPS.py
abphilip-codes/Codechef_Practice
21fd52e03df8a0f72a08b0e2a0b48dbd508aac95
[ "MIT" ]
2
2021-07-26T03:32:24.000Z
2021-07-31T02:32:14.000Z
COPS.py
abphilip-codes/Codechef_Practice
21fd52e03df8a0f72a08b0e2a0b48dbd508aac95
[ "MIT" ]
null
null
null
COPS.py
abphilip-codes/Codechef_Practice
21fd52e03df8a0f72a08b0e2a0b48dbd508aac95
[ "MIT" ]
1
2021-07-14T17:45:33.000Z
2021-07-14T17:45:33.000Z
# https://www.codechef.com/problems/COPS for T in range(int(input())): M,x,y=map(int,input().split()) m,a = list(map(int,input().split())),list(range(1,101)) for i in m: for j in range(i-x*y,i+1+x*y): if(j in a): a.remove(j) print(len(a))
30.555556
59
0.552727
55
275
2.763636
0.490909
0.157895
0.144737
0.210526
0
0
0
0
0
0
0
0.023148
0.214545
275
9
60
30.555556
0.680556
0.138182
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
0
0
0
null
0
0
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
0
0
0
0
0
2
e83a10c3bd7787fb995d7f3409fbe97fa6a48414
7,597
py
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_fretta_bcm_dpa_drop_stats_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_fretta_bcm_dpa_drop_stats_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_fretta_bcm_dpa_drop_stats_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import re import collections from enum import Enum from ydk._core._dm_meta_info import _MetaInfoClassMember, _MetaInfoClass, _MetaInfoEnum from ydk.types import Empty, YList, YLeafList, DELETE, Decimal64, FixedBitsDict from ydk._core._dm_meta_info import ATTRIBUTE, REFERENCE_CLASS, REFERENCE_LIST, REFERENCE_LEAFLI...
49.012903
258
0.576938
795
7,597
5.227673
0.109434
0.086622
0.108277
0.130895
0.774302
0.714629
0.664341
0.623195
0.568094
0.520693
0
0.014738
0.285507
7,597
154
259
49.331169
0.750921
0
0
0.433824
0
0.007353
0.475775
0.403887
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e83e7031289be7e749092a0b52442c696186785d
5,091
py
Python
src/python/src/grpc/framework/foundation/_later_test.py
iMilind/grpc
f5b20ce8ec0c1dde684840f6ea8dcf80822bbb1d
[ "BSD-3-Clause" ]
1
2021-04-24T08:18:15.000Z
2021-04-24T08:18:15.000Z
src/python/src/grpc/framework/foundation/_later_test.py
iMilind/grpc
f5b20ce8ec0c1dde684840f6ea8dcf80822bbb1d
[ "BSD-3-Clause" ]
3
2020-12-31T09:08:34.000Z
2021-09-28T05:42:02.000Z
third_party/grpc/src/python/src/grpc/framework/foundation/_later_test.py
acidburn0zzz/kythe
6cd4e9c81a1158de43ec783607a4d7edd9b7e4a0
[ "Apache-2.0" ]
1
2022-01-14T04:25:02.000Z
2022-01-14T04:25:02.000Z
# Copyright 2015, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
33.493421
80
0.719112
653
5,091
5.445636
0.264931
0.095613
0.051181
0.080427
0.556805
0.498594
0.45613
0.45613
0.444601
0.441507
0
0.01122
0.194657
5,091
151
81
33.715232
0.856098
0.305637
0
0.737864
0
0
0.002285
0
0
0
0
0
0.223301
1
0.106796
false
0.116505
0.038835
0
0.174757
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
e8417c90203dc931182a576771783829d860eca2
608
py
Python
kubernetes_typed/client/models/v2beta2_metric_status.py
sobolevn/kubernetes-typed
5f0a770631c73a9831fbeaeebac188e8f4a52c54
[ "Apache-2.0" ]
22
2020-12-10T13:06:02.000Z
2022-02-13T21:58:15.000Z
kubernetes_typed/client/models/v2beta2_metric_status.py
sobolevn/kubernetes-typed
5f0a770631c73a9831fbeaeebac188e8f4a52c54
[ "Apache-2.0" ]
4
2021-03-08T07:06:12.000Z
2022-03-29T23:41:45.000Z
kubernetes_typed/client/models/v2beta2_metric_status.py
sobolevn/kubernetes-typed
5f0a770631c73a9831fbeaeebac188e8f4a52c54
[ "Apache-2.0" ]
2
2021-09-05T19:18:28.000Z
2022-03-14T02:56:17.000Z
# Code generated by `typeddictgen`. DO NOT EDIT. """V2beta2MetricStatusDict generated type.""" from typing import TypedDict from kubernetes_typed.client import V2beta2ExternalMetricStatusDict, V2beta2ObjectMetricStatusDict, V2beta2PodsMetricStatusDict, V2beta2ResourceMetricStatusDict V2beta2MetricStatusDict = TypedDi...
33.777778
160
0.761513
38
608
12.157895
0.710526
0
0
0
0
0
0
0
0
0
0
0.043137
0.161184
608
17
161
35.764706
0.862745
0.143092
0
0
1
0
0.102913
0.04466
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e8449bc93dc7b2136a3c89b249e0217f67fedec5
723
py
Python
day-07.py
analuisadev/100-Days-Of-Code
b1dafabc335cd2c3c9b1cecd50597b42d8959d4a
[ "MIT" ]
2
2021-01-08T22:13:21.000Z
2021-03-17T10:44:12.000Z
day-07.py
analuisadev/100-Days-Of-Code
b1dafabc335cd2c3c9b1cecd50597b42d8959d4a
[ "MIT" ]
null
null
null
day-07.py
analuisadev/100-Days-Of-Code
b1dafabc335cd2c3c9b1cecd50597b42d8959d4a
[ "MIT" ]
null
null
null
from random import randint from time import sleep print ('=' * 18) print ('\033[1mSTONE PAPER AND SCISSORS\033[m') print ('=' * 18) print ('I already chose mine now missing you') sleep (1) computer = randint (1, 3) player = int(input('\033[1mChoose between\033[m \033[1;33m1) Stone 2) Paper and 3) Scissors\033[m : '))...
36.15
104
0.658368
118
723
4.042373
0.432203
0.075472
0.113208
0.178197
0.379455
0.379455
0.379455
0.379455
0.379455
0.379455
0
0.144026
0.15491
723
19
105
38.052632
0.635025
0
0
0.368421
0
0.052632
0.485477
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.105263
0.526316
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
1
0
2
e856d28ae91acdab7a6956c6e1799773dfe4c394
994
py
Python
bleak/backends/device.py
virantha/bleak
0226cdef0af2d6bcdf5a84d87c437ed75aaa7726
[ "MIT" ]
null
null
null
bleak/backends/device.py
virantha/bleak
0226cdef0af2d6bcdf5a84d87c437ed75aaa7726
[ "MIT" ]
1
2019-04-01T02:31:45.000Z
2019-04-01T02:31:45.000Z
bleak/backends/device.py
virantha/bleak
0226cdef0af2d6bcdf5a84d87c437ed75aaa7726
[ "MIT" ]
1
2019-04-01T01:34:42.000Z
2019-04-01T01:34:42.000Z
# -*- coding: utf-8 -*- """ Wrapper class for Bluetooth LE servers returned from calling :py:meth:`bleak.discover`. Created on 2018-04-23 by hbldh <henrik.blidh@nedomkull.com> """ class BLEDevice(object): """A simple wrapper class representing a BLE server detected during a `discover` call. - When usin...
30.121212
84
0.678068
124
994
5.346774
0.604839
0.040724
0.104072
0.075415
0.078431
0
0
0
0
0
0
0.014121
0.216298
994
32
85
31.0625
0.83697
0.559356
0
0
0
0
0.038462
0
0
0
0
0
0
1
0.222222
false
0
0
0.111111
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
e85746131b4e0732b56b704dfb01f9cc40207e1c
3,195
py
Python
diffrax/solver/kvaerno5.py
FedericoV/diffrax
98b010242394491fea832e77dc94f456b48495fa
[ "Apache-2.0" ]
377
2022-02-07T11:13:56.000Z
2022-03-31T18:35:51.000Z
diffrax/solver/kvaerno5.py
FedericoV/diffrax
98b010242394491fea832e77dc94f456b48495fa
[ "Apache-2.0" ]
25
2022-02-08T23:08:11.000Z
2022-03-30T21:21:18.000Z
diffrax/solver/kvaerno5.py
FedericoV/diffrax
98b010242394491fea832e77dc94f456b48495fa
[ "Apache-2.0" ]
15
2022-02-08T04:46:23.000Z
2022-03-30T20:53:10.000Z
import numpy as np from ..local_interpolation import ThirdOrderHermitePolynomialInterpolation from .runge_kutta import AbstractESDIRK, ButcherTableau γ = 0.26 a21 = γ a31 = 0.13 a32 = 0.84033320996790809 a41 = 0.22371961478320505 a42 = 0.47675532319799699 a43 = -0.06470895363112615 a51 = 0.16648564323248321 a52 = 0....
28.274336
159
0.662285
416
3,195
5.033654
0.514423
0.053486
0.005731
0.005731
0.105062
0.102197
0.102197
0.102197
0.078319
0
0
0.345694
0.215023
3,195
112
160
28.526786
0.489234
0.333959
0
0.053333
0
0
0
0
0
0
0
0
0
1
0.013333
false
0
0.04
0.013333
0.106667
0
0
0
0
null
0
0
0
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
2
e865943b38c7fa0a91f989744dd08a3debd48239
400
py
Python
ecommerce/cart/migrations/0023_auto_20210314_1656.py
MirjahonMirsaidov/ecommerce-web-app
22d0fe5648b7acb5f819f7634abcf61b6bc12ed9
[ "Unlicense" ]
null
null
null
ecommerce/cart/migrations/0023_auto_20210314_1656.py
MirjahonMirsaidov/ecommerce-web-app
22d0fe5648b7acb5f819f7634abcf61b6bc12ed9
[ "Unlicense" ]
null
null
null
ecommerce/cart/migrations/0023_auto_20210314_1656.py
MirjahonMirsaidov/ecommerce-web-app
22d0fe5648b7acb5f819f7634abcf61b6bc12ed9
[ "Unlicense" ]
null
null
null
# Generated by Django 3.1.2 on 2021-03-14 11:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cart', '0022_delete_sendpassword'), ] operations = [ migrations.AlterField( model_name='orderbeta', name='finish_pri...
21.052632
57
0.6125
41
400
5.878049
0.853659
0
0
0
0
0
0
0
0
0
0
0.069204
0.2775
400
18
58
22.222222
0.764706
0.1125
0
0
1
0
0.13881
0.067989
0
0
0
0
0
1
0
false
0.083333
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
e8a6d1ef969a737bdcd7f9ccf6c5ef2da1f6db6f
268
py
Python
src/utils/utils.py
chokyzhou/gym-flappy-bird
ffe1089501f3e2e113a8868cd27480653dbe0ef7
[ "MIT" ]
null
null
null
src/utils/utils.py
chokyzhou/gym-flappy-bird
ffe1089501f3e2e113a8868cd27480653dbe0ef7
[ "MIT" ]
null
null
null
src/utils/utils.py
chokyzhou/gym-flappy-bird
ffe1089501f3e2e113a8868cd27480653dbe0ef7
[ "MIT" ]
null
null
null
import math def obs2state(obs, multiplier=1000): x_pos = int(math.floor(obs[0]*multiplier)) y_pos = int(math.floor(obs[1]*multiplier)) y_vel = y_vel = int(obs[2]) state_string = str(x_pos) + '_' + str(y_pos) + '_' + str(y_vel) return state_string
29.777778
67
0.649254
44
268
3.704545
0.454545
0.07362
0.122699
0.184049
0.220859
0
0
0
0
0
0
0.036697
0.186567
268
9
68
29.777778
0.711009
0
0
0
0
0
0.007435
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
0
0
0
0
null
0
0
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
0
0
0
0
0
2
e8be64b0dcdd575acf275b088a14909677a52a3e
1,627
py
Python
DataAnalysis/test.py
yuxiang-zhou/MarketAnalysor
4d19d2589d07409cd699f394921d1a95f3097e94
[ "MIT" ]
null
null
null
DataAnalysis/test.py
yuxiang-zhou/MarketAnalysor
4d19d2589d07409cd699f394921d1a95f3097e94
[ "MIT" ]
null
null
null
DataAnalysis/test.py
yuxiang-zhou/MarketAnalysor
4d19d2589d07409cd699f394921d1a95f3097e94
[ "MIT" ]
null
null
null
import urllib2 import threading from bs4 import BeautifulSoup import re import json import sys import os import django from stock_list import getlist, getLSEList from extract_stock_info import get_info, getLSEInfo from extract_stock_history import get_historical_info from extract_sector_history import get_sector_histo...
29.053571
122
0.728949
211
1,627
5.393365
0.421801
0.04833
0.042179
0.026362
0
0
0
0
0
0
0
0.004525
0.185003
1,627
55
123
29.581818
0.853695
0.012293
0
0.044444
0
0
0.112773
0.047975
0
0
0
0
0
0
null
null
0
0.444444
null
null
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
e8c391255b56e4ff6feefeae210b186373cc9c99
372
py
Python
pyml/crawler/minispider/mini_spider.py
onehao/opensource
e34784fcc294094a4ce0decd0e6809c11a96bbf7
[ "Apache-2.0" ]
null
null
null
pyml/crawler/minispider/mini_spider.py
onehao/opensource
e34784fcc294094a4ce0decd0e6809c11a96bbf7
[ "Apache-2.0" ]
1
2015-07-15T02:11:41.000Z
2015-07-15T02:30:34.000Z
pyml/crawler/minispider/mini_spider.py
onehao/opensource
e34784fcc294094a4ce0decd0e6809c11a96bbf7
[ "Apache-2.0" ]
1
2018-09-11T12:52:30.000Z
2018-09-11T12:52:30.000Z
# -*- coding:utf-8 -*- ''' Created on 2015年3月2日 @author: wanhao01 ''' import sys from crawler.minispider import logerror import main reload(sys) sys.setdefaultencoding('utf-8') if __name__ == '__main__': try: main.main() except Exception as exception: logerror("error du...
16.909091
69
0.629032
41
372
5.512195
0.707317
0.035398
0
0
0
0
0
0
0
0
0
0.035842
0.25
372
22
70
16.909091
0.774194
0.163978
0
0
0
0
0.155477
0
0
0
0
0
0
1
0
true
0.090909
0.272727
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
2
e8d389d59d2e598814e8742d6ed48d600f563413
436
py
Python
cape_privacy/pandas/transformations/test_utils.py
vismaya-Kalaiselvan/cape-python
2b93696cec43c4bab9098c35eccf6f2f66d9e5c0
[ "Apache-2.0" ]
144
2020-06-23T21:31:49.000Z
2022-02-25T15:51:00.000Z
cape_privacy/pandas/transformations/test_utils.py
vismaya-Kalaiselvan/cape-python
2b93696cec43c4bab9098c35eccf6f2f66d9e5c0
[ "Apache-2.0" ]
44
2020-06-24T14:42:23.000Z
2022-02-21T03:30:58.000Z
cape_privacy/pandas/transformations/test_utils.py
vismaya-Kalaiselvan/cape-python
2b93696cec43c4bab9098c35eccf6f2f66d9e5c0
[ "Apache-2.0" ]
16
2020-06-26T20:05:51.000Z
2022-01-12T05:23:58.000Z
import pandas as pd class PlusN: """A sample transform that adds n to a specific field. Attributes: field: The field that this transform will be applied to. n: The value to add to the field. """ identifier = "plusN" type_signature = "col->col" def __init__(self, n: int = 1) ...
21.8
64
0.607798
63
436
4.063492
0.587302
0.058594
0
0
0
0
0
0
0
0
0
0.003257
0.295872
436
19
65
22.947368
0.830619
0.373853
0
0
0
0
0.052
0
0
0
0
0
0
1
0.25
false
0
0.125
0.125
0.875
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
2
2cdb285432c69bfe1c1fbf5662fc9c8781add56e
766
py
Python
tests/fixtures.py
luisfmcalado/coinoxr
e7cf95d717aa9b58e458332bfd6fd2d4172d175f
[ "MIT" ]
2
2020-09-05T20:48:54.000Z
2022-03-28T11:00:15.000Z
tests/fixtures.py
luisfmcalado/coinoxr
e7cf95d717aa9b58e458332bfd6fd2d4172d175f
[ "MIT" ]
null
null
null
tests/fixtures.py
luisfmcalado/coinoxr
e7cf95d717aa9b58e458332bfd6fd2d4172d175f
[ "MIT" ]
null
null
null
import pytest from tests.stub_client import StubHttpClient from coinoxr.requestor import Requestor from coinoxr.response import Response def content(file): return StubHttpClient.json(file)["content"] @pytest.fixture def client(): client = StubHttpClient() client.add_app_id("fake_app_id") client.add...
21.885714
55
0.73107
100
766
5.42
0.31
0.066421
0.088561
0.081181
0.070111
0
0
0
0
0
0
0.025276
0.173629
766
34
56
22.529412
0.830964
0
0
0.208333
0
0
0.063969
0
0
0
0
0
0
1
0.208333
false
0
0.166667
0.083333
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
2cf7266e9b31c455b918042035a8554f33eeaf4b
143
py
Python
test/unit/__init__.py
comtravo/grafana-dashboards
cd0e6f46408aebd2941ae4abc5b94e45124006a2
[ "MIT" ]
8
2020-12-09T13:14:53.000Z
2022-01-29T01:56:30.000Z
test/unit/__init__.py
comtravo/grafana-dashboards
cd0e6f46408aebd2941ae4abc5b94e45124006a2
[ "MIT" ]
4
2021-02-24T08:49:14.000Z
2022-01-22T18:17:32.000Z
test/unit/__init__.py
comtravo/grafana-dashboards
cd0e6f46408aebd2941ae4abc5b94e45124006a2
[ "MIT" ]
null
null
null
""" tests module """ import os import sys import sure ROOT_DIR = os.path.join(os.path.dirname(__file__), "../..") sys.path.append(ROOT_DIR)
11.916667
59
0.685315
22
143
4.181818
0.590909
0.152174
0
0
0
0
0
0
0
0
0
0
0.125874
143
11
60
13
0.736
0.083916
0
0
0
0
0.04065
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
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
1
0
0
0
0
2
2cf913172f053454c3779f2bdd6081d51582533f
175
py
Python
blog/templatetags/markdownify.py
darkLord19/blog
16c3b72fef9d22ccfa606934c8b94fc0feb82103
[ "MIT" ]
12
2018-01-30T00:44:06.000Z
2020-07-13T05:20:48.000Z
blog/templatetags/markdownify.py
darkLord19/blog
16c3b72fef9d22ccfa606934c8b94fc0feb82103
[ "MIT" ]
36
2018-03-06T17:49:50.000Z
2020-06-23T19:26:00.000Z
web/templatetags/markdown.py
odinje/yactff
d55ece2905ca49114f7ec15bbcd354cacb49b973
[ "MIT" ]
3
2018-08-03T07:03:09.000Z
2020-07-09T20:21:10.000Z
from django import template import mistune register = template.Library() @register.filter def markdown(value): markdown = mistune.Markdown() return markdown(value)
15.909091
33
0.754286
20
175
6.6
0.6
0.19697
0
0
0
0
0
0
0
0
0
0
0.16
175
10
34
17.5
0.897959
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
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
1
0
0
2
fa01295cd72e1cc24e99fe0b555865e4e352a352
844
py
Python
cqi_cpp/src/wrapper/discrete.py
AMR-/Conservative-Q-Improvement
f9d47b33fe757475d3216d3c406d147206738c90
[ "MIT" ]
null
null
null
cqi_cpp/src/wrapper/discrete.py
AMR-/Conservative-Q-Improvement
f9d47b33fe757475d3216d3c406d147206738c90
[ "MIT" ]
null
null
null
cqi_cpp/src/wrapper/discrete.py
AMR-/Conservative-Q-Improvement
f9d47b33fe757475d3216d3c406d147206738c90
[ "MIT" ]
null
null
null
import numpy as np from .space import Space class Discrete(Space): r"""A discrete space in :math:`\{ 0, 1, \\dots, n-1 \}`. Example:: >>> Discrete(2) """ def __init__(self, n): assert n >= 0 self.n = n super(Discrete, self).__init__((), np.int64) def sample(self)...
24.823529
120
0.555687
117
844
3.82906
0.410256
0.066964
0.053571
0
0
0
0
0
0
0
0
0.013605
0.303318
844
33
121
25.575758
0.748299
0.099526
0
0
0
0
0.02973
0
0
0
0
0
0.045455
1
0.227273
false
0
0.090909
0.136364
0.590909
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
0
2
fa0387e8bd74f0b0f503dfeea41eb47cd54c1fe4
1,331
py
Python
src/lockstep/models/arheaderinfomodel.py
sfwatanabe/lockstep-sdk-python
b388c818663a4b090debb68c65c18728a082fec0
[ "MIT" ]
1
2022-03-17T00:23:24.000Z
2022-03-17T00:23:24.000Z
src/lockstep/models/arheaderinfomodel.py
sfwatanabe/lockstep-sdk-python
b388c818663a4b090debb68c65c18728a082fec0
[ "MIT" ]
null
null
null
src/lockstep/models/arheaderinfomodel.py
sfwatanabe/lockstep-sdk-python
b388c818663a4b090debb68c65c18728a082fec0
[ "MIT" ]
null
null
null
# # Lockstep Software Development Kit for Python # # (c) 2021-2022 Lockstep, Inc. # # For the full copyright and license information, please view the LICENSE # file that was distributed with this source code. # # @author Ted Spence <tspence@lockstep.io> # @copyright 2021-2022 Lockstep, Inc. # @version 2022.4 # ...
28.934783
73
0.731029
127
1,331
7.661417
0.574803
0.110997
0.032888
0.039054
0
0
0
0
0
0
0
0.025352
0.19985
1,331
45
74
29.577778
0.888263
0.306536
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.041667
0
0.958333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
2
fa1043f553e1c60667839cc0926b5837cdef559f
576
py
Python
api/views.py
AktanKasymaliev/django_blog_site_fullstack
146a03a58c12bf61ff32cadfbb66e7f0ecbcf6b1
[ "MIT" ]
1
2021-06-29T15:17:06.000Z
2021-06-29T15:17:06.000Z
api/views.py
AktanKasymaliev/django_blog_site_fullstack
146a03a58c12bf61ff32cadfbb66e7f0ecbcf6b1
[ "MIT" ]
null
null
null
api/views.py
AktanKasymaliev/django_blog_site_fullstack
146a03a58c12bf61ff32cadfbb66e7f0ecbcf6b1
[ "MIT" ]
null
null
null
from rest_framework import generics from blogs.models import Comments from .serializers import CommentsSerializer, UsersSerializers from rest_framework.permissions import AllowAny, IsAuthenticated, IsAdminUser from customUsers.models import User class CommentsView(generics.CreateAPIView): serializer_class = Commen...
33.882353
77
0.8125
57
576
8.105263
0.508772
0.034632
0.073593
0.116883
0
0
0
0
0
0
0
0
0.128472
576
16
78
36
0.920319
0.008681
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.384615
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
fa11053785bbc9426fa980dd1bd5615c9a3ba8c5
562
py
Python
client/__init__.py
mycelium-ethereum/punk-offerbook
5804a27fe26af0d613fd5281f0f17b9c207f1822
[ "MIT" ]
null
null
null
client/__init__.py
mycelium-ethereum/punk-offerbook
5804a27fe26af0d613fd5281f0f17b9c207f1822
[ "MIT" ]
null
null
null
client/__init__.py
mycelium-ethereum/punk-offerbook
5804a27fe26af0d613fd5281f0f17b9c207f1822
[ "MIT" ]
null
null
null
from dotenv import load_dotenv load_dotenv(); import os import json import settings from web3 import Web3 from client.Mongo import Mongo from client.Webhook import webhook from client.Opensea import Opensea def get_raw_abis(abi_paths): raw_abis = {} for abi_key, abi_path in abi_paths.items(): with ope...
25.545455
62
0.731317
89
562
4.41573
0.404494
0.089059
0.050891
0
0
0
0
0
0
0
0
0.010661
0.16548
562
22
63
25.545455
0.827292
0
0
0
0
0
0.028419
0
0
0
0
0
0
1
0.052632
false
0
0.421053
0
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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