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
7c19ad1a6191915bc44c0691b6fb257480276fc6
700
py
Python
tests/conftest.py
frosch01/rpi_vdr_kodi
a8f1dced1f97cc70d78abb79c78d078ebdccf043
[ "MIT" ]
1
2020-12-23T19:02:25.000Z
2020-12-23T19:02:25.000Z
tests/conftest.py
frosch01/rpi_vdr_kodi
a8f1dced1f97cc70d78abb79c78d078ebdccf043
[ "MIT" ]
1
2021-01-04T12:13:32.000Z
2021-01-04T12:13:32.000Z
tests/conftest.py
frosch01/rpi_vdr_kodi
a8f1dced1f97cc70d78abb79c78d078ebdccf043
[ "MIT" ]
null
null
null
import sys import os import pytest sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) @pytest.fixture def mock_coroutine(mocker, monkeypatch): def _create_coro_patch(*args): """Fixture to mock a corotine. If an object path is given, monkeypatch the coroutine with th...
30.434783
82
0.647143
90
700
4.844444
0.477778
0.041284
0.068807
0
0
0
0
0
0
0
0
0.001901
0.248571
700
22
83
31.818182
0.826996
0.254286
0
0
0
0
0.004141
0
0
0
0
0
0
1
0.142857
false
0
0.214286
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7c271c7ee2e452e90fc43240ccb74394e8ad84ac
3,106
py
Python
generated/nifake/nifake/__init__.py
sukruthG/nimi-python
4f98addb04aea5748c8cac9f635065072e31a867
[ "MIT" ]
null
null
null
generated/nifake/nifake/__init__.py
sukruthG/nimi-python
4f98addb04aea5748c8cac9f635065072e31a867
[ "MIT" ]
null
null
null
generated/nifake/nifake/__init__.py
sukruthG/nimi-python
4f98addb04aea5748c8cac9f635065072e31a867
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This file was generated __version__ = '1.4.1.dev0' from nifake.enums import * # noqa: F403,F401,H303 from nifake.errors import DriverWarning # noqa: F401 from nifake.errors import Error # noqa: F401 from nifake.session import Session # noqa: F401 from nifake.custom_struct import Custom...
30.752475
131
0.629427
373
3,106
5.107239
0.324397
0.047769
0.025197
0.037795
0.118635
0.103937
0.103937
0.066142
0.066142
0.066142
0
0.02352
0.233419
3,106
100
132
31.06
0.776564
0.144559
0
0.089552
1
0
0.159847
0.013002
0
0
0
0
0
1
0.074627
false
0
0.208955
0.044776
0.358209
0.074627
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7c2d9b73f0ee17134ae5a9a750b0dc1b5b912d31
544
py
Python
h1st_contrib/iot_mgmt/data/migrations/0076_equipmentcomponent_sub_components.py
h1st-ai/h1st-contrib
38fbb1fff4513bb3433bc12f2b436836e5e51c80
[ "Apache-2.0" ]
1
2022-02-19T18:55:43.000Z
2022-02-19T18:55:43.000Z
h1st_contrib/iot_mgmt/data/migrations/0076_equipmentcomponent_sub_components.py
h1st-ai/h1st-contrib
38fbb1fff4513bb3433bc12f2b436836e5e51c80
[ "Apache-2.0" ]
null
null
null
h1st_contrib/iot_mgmt/data/migrations/0076_equipmentcomponent_sub_components.py
h1st-ai/h1st-contrib
38fbb1fff4513bb3433bc12f2b436836e5e51c80
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.2 on 2019-06-26 17:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('IoT_DataMgmt', '0075_remove_error_last_updated'), ] operations = [ migrations.AddField( model_name='equipmentcomponent', ...
28.631579
178
0.685662
58
544
6.189655
0.724138
0.011142
0
0
0
0
0
0
0
0
0
0.044186
0.209559
544
18
179
30.222222
0.790698
0.082721
0
0
1
0
0.305835
0.179074
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7c36582a6dcb1d3b7bb1f79972511cd8eb3abbed
161
py
Python
CH_17_c_and_cpp_extensions/T_10_size_matters/sum_of_squares_py.py
mastering-python/code_2
441af8b67402c8216c482cca7c002e1d7f0f1baa
[ "MIT" ]
null
null
null
CH_17_c_and_cpp_extensions/T_10_size_matters/sum_of_squares_py.py
mastering-python/code_2
441af8b67402c8216c482cca7c002e1d7f0f1baa
[ "MIT" ]
null
null
null
CH_17_c_and_cpp_extensions/T_10_size_matters/sum_of_squares_py.py
mastering-python/code_2
441af8b67402c8216c482cca7c002e1d7f0f1baa
[ "MIT" ]
null
null
null
def sum_of_squares(n): total = 0 for i in range(n): if i * i < n: total += i * i else: break return total
13.416667
26
0.42236
23
161
2.869565
0.652174
0.181818
0
0
0
0
0
0
0
0
0
0.012195
0.490683
161
11
27
14.636364
0.792683
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7c38291d783ff15b211eb1e802939d343f8c043a
2,451
py
Python
bot_example/bot_example.py
IllDepence/Canvas-Indexer
3995de102bca005cf1b358dd270de041f5b0317c
[ "MIT" ]
3
2018-05-25T13:28:31.000Z
2019-05-08T15:01:15.000Z
bot_example/bot_example.py
IllDepence/Canvas-Indexer
3995de102bca005cf1b358dd270de041f5b0317c
[ "MIT" ]
6
2018-04-12T04:51:19.000Z
2019-02-24T17:03:04.000Z
bot_example/bot_example.py
IllDepence/Canvas-Indexer
3995de102bca005cf1b358dd270de041f5b0317c
[ "MIT" ]
null
null
null
""" bot example Minimal bot implementation to serve as an example. Not really a part of the Canvas Indexer code base. """ import json import random import requests import time from celery import Celery from flask import (abort, Flask, request, Response) from flask_cors import CORS def get_tags(img_url): ...
24.757576
70
0.608731
313
2,451
4.57508
0.376997
0.03352
0.01676
0.03352
0.02933
0
0
0
0
0
0
0.016022
0.261526
2,451
98
71
25.010204
0.775138
0.074255
0
0
0
0
0.164292
0.02894
0
0
0
0.010204
0
1
0.072464
false
0
0.101449
0.014493
0.275362
0.028986
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7c38b430bb6b82bcdd939a61befafebb9f9f272c
3,346
py
Python
pyblaze/nn/callbacks/schedule.py
Greenroom-Robotics/pyblaze
e45e27fbd400b6ae2365ad2347165c7b5154ac51
[ "MIT" ]
20
2020-03-29T08:43:15.000Z
2021-12-17T21:38:17.000Z
pyblaze/nn/callbacks/schedule.py
borchero/bxtorch
8d01568c8ee9fc05f5b3c84ca3ec68ea74eef9eb
[ "MIT" ]
4
2020-10-27T20:43:40.000Z
2021-04-29T12:19:39.000Z
pyblaze/nn/callbacks/schedule.py
borchero/bxtorch
8d01568c8ee9fc05f5b3c84ca3ec68ea74eef9eb
[ "MIT" ]
2
2020-08-16T18:10:49.000Z
2021-03-31T23:17:28.000Z
from .base import TrainingCallback, ValueTrainingCallback class LearningRateScheduler(TrainingCallback): """ The learning rate scheduler may be used with a PyTorch learning rate scheduler. The callback is automatically triggered after the end of every iteration or epoch. """ def __init__(self, sch...
33.79798
99
0.634788
396
3,346
5.277778
0.29798
0.043062
0.033493
0.025837
0.173684
0.129187
0.104306
0.03445
0
0
0
0.000843
0.291094
3,346
98
100
34.142857
0.88027
0.44471
0
0.272727
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.022727
0.022727
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7c3eb3790ff8a6dfb59bef5983f70d7dc9c909a8
3,073
py
Python
newsapi/news/api/serializers.py
hovsepyanvahe/django-rest-api
d6ab64752b8377e6232ed5d330495bda50bfb20a
[ "MIT" ]
null
null
null
newsapi/news/api/serializers.py
hovsepyanvahe/django-rest-api
d6ab64752b8377e6232ed5d330495bda50bfb20a
[ "MIT" ]
7
2021-03-19T01:50:00.000Z
2022-01-13T02:31:44.000Z
newsapi/news/api/serializers.py
hovsepyanvahe/django-rest-api
d6ab64752b8377e6232ed5d330495bda50bfb20a
[ "MIT" ]
null
null
null
from datetime import datetime from django.utils.timesince import timesince from rest_framework import serializers from news.models import Journalist, Article class ArticleSerializer(serializers.ModelSerializer): time_since_publication = serializers.SerializerMethodField() # author = JournalistSerializer(read...
38.898734
105
0.689554
320
3,073
6.509375
0.259375
0.06241
0.053769
0.069131
0.337974
0.324532
0.263082
0.263082
0.263082
0.263082
0
0.003291
0.208916
3,073
78
106
39.397436
0.853558
0.588676
0
0.148148
0
0
0.095082
0
0
0
0
0
0
1
0.111111
false
0
0.148148
0
0.592593
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7c40af4274e95f085b4ce4ecaf311a7062c21349
554
py
Python
tryread/home/urls.py
szymanskirafal/tryread
f7e395c318e33de84992c79eaa5844028c378a2d
[ "MIT" ]
null
null
null
tryread/home/urls.py
szymanskirafal/tryread
f7e395c318e33de84992c79eaa5844028c378a2d
[ "MIT" ]
null
null
null
tryread/home/urls.py
szymanskirafal/tryread
f7e395c318e33de84992c79eaa5844028c378a2d
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = "home" urlpatterns = [ path( "", view=views.HomeTemplateView.as_view(), name="home" ), path( "landing/", view=views.LandingTemplateView.as_view(), name="landing" ), path( "landing/re...
19.103448
55
0.564982
51
554
6.039216
0.372549
0.116883
0.12987
0.165584
0
0
0
0
0
0
0
0
0.299639
554
28
56
19.785714
0.793814
0
0
0.32
0
0
0.146209
0
0
0
0
0
0
1
0
false
0
0.08
0
0.08
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7c434607bcfe636070631d41fe52d806f6318291
1,710
py
Python
setup.py
Blendify/sphinx-bootstrap-basic
a670d046d837c2be0d3601391dcec4e28f390712
[ "Apache-2.0" ]
4
2019-08-22T01:47:06.000Z
2021-09-11T19:03:51.000Z
setup.py
Blendify/sphinx-bootstrap-basic
a670d046d837c2be0d3601391dcec4e28f390712
[ "Apache-2.0" ]
1
2018-03-01T16:05:00.000Z
2018-03-01T16:05:00.000Z
setup.py
Blendify/sphinx-bootstrap-basic
a670d046d837c2be0d3601391dcec4e28f390712
[ "Apache-2.0" ]
1
2019-08-22T01:47:11.000Z
2019-08-22T01:47:11.000Z
# -*- coding: utf-8 -*- from io import open from setuptools import setup from sphinx-bootstrap-basic import __version__ setup( name='sphinx-bootstrap-basic', version=__version__, url='https://github.com/Blendify/sphinx-bootstrap-basic/', license='Apache License 2.0', author='Aaron Carlisle', au...
34.897959
100
0.611696
178
1,710
5.786517
0.522472
0.101942
0.135922
0.126214
0.052427
0
0
0
0
0
0
0.015302
0.235673
1,710
48
101
35.625
0.772762
0.067251
0
0
0
0
0.547454
0.085481
0
0
0
0
0
0
null
null
0
0.066667
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7c474056ae44d13cb69bdfc681ee665c2681ce86
859
py
Python
neurokit2/stats/rescale.py
purpl3F0x/NeuroKit
bd41f2bf7692bc8ed4c85608daa535293a33a1d6
[ "MIT" ]
1
2020-05-26T09:46:57.000Z
2020-05-26T09:46:57.000Z
neurokit2/stats/rescale.py
purpl3F0x/NeuroKit
bd41f2bf7692bc8ed4c85608daa535293a33a1d6
[ "MIT" ]
null
null
null
neurokit2/stats/rescale.py
purpl3F0x/NeuroKit
bd41f2bf7692bc8ed4c85608daa535293a33a1d6
[ "MIT" ]
1
2020-10-27T06:47:51.000Z
2020-10-27T06:47:51.000Z
# -*- coding: utf-8 -*- import pandas as pd import numpy as np def rescale(data, to=[0, 1]): """Rescale data. Rescale a numeric variable to a new range. Parameters ---------- data : list, array or Series Raw data. to : list New range of values of the data after rescaling. ...
16.843137
96
0.534342
118
859
3.864407
0.415254
0.078947
0.085526
0.070175
0.078947
0.078947
0
0
0
0
0
0.026578
0.299185
859
50
97
17.18
0.730897
0.466822
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.181818
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
0
0
1
0
0
1
7c47a4d0cdf857996ebd8c12d78d946bb0aecb70
713
py
Python
api/mon/backends/__init__.py
klebed/esdc-ce
2c9e4591f344247d345a83880ba86777bb794460
[ "Apache-2.0" ]
97
2016-11-15T14:44:23.000Z
2022-03-13T18:09:15.000Z
api/mon/backends/__init__.py
klebed/esdc-ce
2c9e4591f344247d345a83880ba86777bb794460
[ "Apache-2.0" ]
334
2016-11-17T19:56:57.000Z
2022-03-18T10:45:53.000Z
api/mon/backends/__init__.py
klebed/esdc-ce
2c9e4591f344247d345a83880ba86777bb794460
[ "Apache-2.0" ]
33
2017-01-02T16:04:13.000Z
2022-02-07T19:20:24.000Z
from __future__ import absolute_import from django.conf import settings from api.mon.backends import zabbix from api.mon.backends import dummy __all__ = ('get_monitoring', 'del_monitoring', 'MonitoringBackend', 'MonitoringServer') BACKEND_ALIASES = { 'dummy': dummy, 'zabbix': zabbix, } DEFAULT_BACKEND = 'z...
22.28125
87
0.786816
77
713
7.012987
0.38961
0.088889
0.037037
0.066667
0.088889
0
0
0
0
0
0
0
0.120617
713
31
88
23
0.861244
0
0
0
0
0
0.134642
0
0
0
0
0
0
1
0.111111
false
0
0.222222
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
0
0
0
0
1
0
0
0
1
7c5534024e835aeb0597c97e3a506eb33f52b9a3
2,793
py
Python
panda_exercises.py
hakimny/pandas-notebook
2170b09cc3ab33383e70e77f857ffe6000cec25d
[ "MIT" ]
null
null
null
panda_exercises.py
hakimny/pandas-notebook
2170b09cc3ab33383e70e77f857ffe6000cec25d
[ "MIT" ]
null
null
null
panda_exercises.py
hakimny/pandas-notebook
2170b09cc3ab33383e70e77f857ffe6000cec25d
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd def pretty_print(name, to_print): print(f'{name}:') print(f'{to_print}\n\n') insurance_data = pd.read_csv(filepath_or_buffer='insurance.csv', sep=',', header=0) #Question 2 - Expolring to_string(), columns,index,dtype(), shap...
36.75
139
0.742213
390
2,793
5.138462
0.282051
0.194611
0.05988
0.053892
0.352295
0.249501
0.232535
0.232535
0.189621
0.189621
0
0.019688
0.127103
2,793
75
140
37.24
0.802297
0.188686
0
0.111111
0
0
0.360517
0
0
0
0
0
0
1
0.027778
false
0
0.055556
0
0.083333
0.694444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
7c57a6f8ff0a7dbb18666c1b9c882da10e586aa3
406
py
Python
configs/fcn/fcn_r50-d8_480x480_40k_pascal_context.py
weiyx16/mmsegmentation
6d35d76195f173fbc6b119a7d7815e67d78024c6
[ "Apache-2.0" ]
367
2022-01-14T03:32:25.000Z
2022-03-31T04:48:20.000Z
configs/fcn/fcn_r50-d8_480x480_40k_pascal_context.py
weiyx16/mmsegmentation
6d35d76195f173fbc6b119a7d7815e67d78024c6
[ "Apache-2.0" ]
27
2022-01-27T07:12:49.000Z
2022-03-31T04:31:13.000Z
configs/fcn/fcn_r50-d8_480x480_40k_pascal_context.py
weiyx16/mmsegmentation
6d35d76195f173fbc6b119a7d7815e67d78024c6
[ "Apache-2.0" ]
53
2022-01-18T11:21:43.000Z
2022-03-31T06:42:41.000Z
_base_ = [ '../_base_/models/fcn_r50-d8.py', '../_base_/datasets/pascal_context.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_40k.py' ] model = dict( decode_head=dict(num_classes=60), auxiliary_head=dict(num_classes=60), test_cfg=dict(mode='slide', crop_size=(480, 480), stride=(...
40.6
77
0.689655
61
406
4.245902
0.688525
0.069498
0.084942
0.138996
0.15444
0
0
0
0
0
0
0.088398
0.108374
406
9
78
45.111111
0.627072
0
0
0
0
0
0.337438
0.317734
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7c5c329edd8b2fa41a749007d54ccc2121fa64e2
878
py
Python
projetinhos/ex#75-analise_de_dados_em_tupla.py
dani-fn/Projetinhos_Python
692ff0a7f57d8f8f2e28f7b2c38bb6401e013bdb
[ "MIT" ]
null
null
null
projetinhos/ex#75-analise_de_dados_em_tupla.py
dani-fn/Projetinhos_Python
692ff0a7f57d8f8f2e28f7b2c38bb6401e013bdb
[ "MIT" ]
null
null
null
projetinhos/ex#75-analise_de_dados_em_tupla.py
dani-fn/Projetinhos_Python
692ff0a7f57d8f8f2e28f7b2c38bb6401e013bdb
[ "MIT" ]
null
null
null
pares = 0 numeros = (int(input('Digite um número: ')), int(input('Digite outro número: ')), int(input('Digite mais um número: ')), int(input('Digite um último número: '))) print(f'Você digitou os valores {numeros}') print(f'O valor 9 apareceu {numeros.count(9)} vezes') if numeros.count(3) == 0: pri...
35.12
91
0.5
130
878
3.376923
0.323077
0.068337
0.127563
0.136674
0.526196
0.339408
0.264237
0.264237
0.223235
0.223235
0
0.033841
0.326879
878
24
92
36.583333
0.708968
0.240319
0
0
0
0
0.415482
0.033175
0
0
0
0
0
1
0
false
0
0
0
0
0.4375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
7c5f5476cf354b4e82c6fd46a8ade8021fca9128
2,469
py
Python
code/Repositories.py
EricRohlfs/vsts_to_neo4j
ec09e336540b9d68dcf8c304f1145836a8ea3af0
[ "MIT" ]
null
null
null
code/Repositories.py
EricRohlfs/vsts_to_neo4j
ec09e336540b9d68dcf8c304f1145836a8ea3af0
[ "MIT" ]
1
2019-01-02T15:16:44.000Z
2019-01-02T15:16:44.000Z
code/Repositories.py
EricRohlfs/vsts_to_neo4j
ec09e336540b9d68dcf8c304f1145836a8ea3af0
[ "MIT" ]
null
null
null
''' Repositories.py From VSTS get the list of code repositories so we can later crawl and link up pull request info and comments. ''' # import logging import configparser from multiprocessing import Pool from VSTSInfo import VstsInfo from models import GraphBuilder, Repository, Project class RepositoriesWorker(object...
30.8625
129
0.607533
301
2,469
4.840532
0.395349
0.027454
0.02059
0
0
0
0
0
0
0
0
0.00057
0.289996
2,469
79
130
31.253165
0.830576
0.140948
0
0
0
0
0.083497
0.029961
0
0
0
0.012658
0
1
0.04
false
0
0.08
0
0.14
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7c5fb76488923468c19fd1b0468a610f99dde1e4
996
py
Python
src/process_skills.py
faycalki/tainted-paths
81cecf6c1fba903ec3b8043e22652d222892609d
[ "MIT" ]
4
2019-09-26T21:34:32.000Z
2021-11-18T19:31:15.000Z
src/process_skills.py
faycalki/tainted-paths
81cecf6c1fba903ec3b8043e22652d222892609d
[ "MIT" ]
null
null
null
src/process_skills.py
faycalki/tainted-paths
81cecf6c1fba903ec3b8043e22652d222892609d
[ "MIT" ]
null
null
null
import sys sys.dont_write_bytecode = True import string from header_common import * from module_info import * from module_skills import * from process_common import * # Lav's export_dir tweak export_dir = '%s/' % export_dir.replace('\\', '/').rstrip('/') skill_name_pos = 1 skill_attribute_pos = 2 skill_max_level_pos...
25.538462
133
0.697791
158
996
4.132911
0.341772
0.07657
0.049005
0.049005
0.079632
0.079632
0.079632
0
0
0
0
0.008055
0.12751
996
38
134
26.210526
0.743383
0.022088
0
0.137931
0
0
0.097737
0
0
0
0
0
0
0
null
null
0
0.206897
null
null
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7c652a65c5d65a10314ed2924bf01c395a410929
5,600
py
Python
algorithms/local_beam_search.py
MarauderPixie/MethAI_warehouse_task
fa90f0b3b55aa70b22734edc3f4c80b76eddf2f4
[ "MIT" ]
null
null
null
algorithms/local_beam_search.py
MarauderPixie/MethAI_warehouse_task
fa90f0b3b55aa70b22734edc3f4c80b76eddf2f4
[ "MIT" ]
null
null
null
algorithms/local_beam_search.py
MarauderPixie/MethAI_warehouse_task
fa90f0b3b55aa70b22734edc3f4c80b76eddf2f4
[ "MIT" ]
null
null
null
""" Class generates a neighborhood and explores it using local beam search algorithm. """ import random import numpy as np from warehouse import Warehouse class BeamSearch(Warehouse): def __init__(self, filepath_warehouse, filepath_order, beam_width): self.warehouse = Warehouse(filepath_warehouse, ...
37.583893
164
0.59875
749
5,600
4.376502
0.233645
0.043624
0.009152
0.013423
0.071385
0.04759
0.04759
0.017084
0.017084
0.017084
0
0.01277
0.314821
5,600
148
165
37.837838
0.841543
0.099643
0
0.119565
1
0
0.011288
0
0
0
0
0
0
1
0.097826
false
0
0.032609
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7c67c12c3d3cf9328b85dfcf572eab15fd9a38f8
403
py
Python
starboardscanner_app/migrations/0003_auto_20191008_2343.py
to314as/a-Distributed-Network-and-Port-Scanner
6930e493432e56d0ecf9b9890701fc34e1687d1b
[ "MIT" ]
2
2020-06-29T21:37:14.000Z
2020-06-30T05:34:45.000Z
starboardscanner_app/migrations/0003_auto_20191008_2343.py
to314as/a-Distributed-Network-and-Port-Scanner
6930e493432e56d0ecf9b9890701fc34e1687d1b
[ "MIT" ]
null
null
null
starboardscanner_app/migrations/0003_auto_20191008_2343.py
to314as/a-Distributed-Network-and-Port-Scanner
6930e493432e56d0ecf9b9890701fc34e1687d1b
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2019-10-08 21:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('starboardscanner_app', '0002_auto_20191008_2338'), ] operations = [ migrations.AlterField( model_name='record', name...
21.210526
60
0.615385
44
403
5.477273
0.818182
0
0
0
0
0
0
0
0
0
0
0.113014
0.275434
403
18
61
22.388889
0.712329
0.111663
0
0
1
0
0.16573
0.064607
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7c6a209dcd6b2ed5effd7d1a37d575e847dfdd7f
2,387
py
Python
scripts/time_analysis.py
iotaledger/vdf
feaec45f02d39204b1d70fbb0a9074fb27c3ae55
[ "Apache-2.0" ]
16
2020-04-21T12:36:23.000Z
2022-03-21T09:48:29.000Z
scripts/time_analysis.py
iotaledger/vdf
feaec45f02d39204b1d70fbb0a9074fb27c3ae55
[ "Apache-2.0" ]
null
null
null
scripts/time_analysis.py
iotaledger/vdf
feaec45f02d39204b1d70fbb0a9074fb27c3ae55
[ "Apache-2.0" ]
1
2022-01-25T22:35:51.000Z
2022-01-25T22:35:51.000Z
import os import numpy as np import matplotlib.pyplot as plt t = 8 kk = [5, 6, 7, 8] kk_values = [2**k for k in kk] kk_print = [2**(k + 1) for k in kk] lamda = 2048 ww = [-1, 2, 3] zero = [0 for k in kk] tau_values = range(10, 20) naive_time = [] for k in kk_values: file = open("result/" + str(t) + "_" + str(lam...
27.125
116
0.612065
343
2,387
4.113703
0.250729
0.057406
0.021262
0.028349
0.671864
0.671864
0.671864
0.648476
0.648476
0.648476
0
0.019619
0.231253
2,387
87
117
27.436782
0.749319
0.072895
0
0.616667
0
0
0.180091
0.019005
0
0
0
0
0
1
0
false
0
0.05
0
0.05
0.116667
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7c6f74416cd88396f4254f5462c766ca66411eb0
28,300
py
Python
src/amuse/community/rebound/interface.py
aatrani/amuse
fd1abcfb1b118a9ab13031912abf6e65e9c60dde
[ "Apache-2.0" ]
null
null
null
src/amuse/community/rebound/interface.py
aatrani/amuse
fd1abcfb1b118a9ab13031912abf6e65e9c60dde
[ "Apache-2.0" ]
1
2020-01-27T17:01:49.000Z
2020-01-28T02:09:55.000Z
src/amuse/community/rebound/interface.py
aatrani/amuse
fd1abcfb1b118a9ab13031912abf6e65e9c60dde
[ "Apache-2.0" ]
null
null
null
from amuse.community import * from amuse.community.interface.gd import GravitationalDynamicsInterface from amuse.community.interface.gd import GravitationalDynamics from amuse.community.interface.gd import SinglePointGravityFieldInterface from amuse.community.interface.gd import GravityFieldCode class ReboundInterface...
39.415042
191
0.61159
2,955
28,300
5.709306
0.101184
0.020746
0.048426
0.071128
0.753423
0.717978
0.663802
0.648628
0.590066
0.568431
0
0.018042
0.294912
28,300
717
192
39.470014
0.827453
0.060883
0
0.554935
0
0.005587
0.255519
0.004102
0
0
0
0
0
1
0.070764
false
0
0.009311
0.007449
0.160149
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7c737115552091bacc40414618ed012ba0f4b9c8
1,118
py
Python
python/bakeparm.py
danielforgacs/houdini_tools
b23f2b13baac6881da7e8f0cbb421fde3fc616ce
[ "MIT" ]
2
2017-07-07T08:48:43.000Z
2020-05-01T10:45:58.000Z
python/bakeparm.py
danielforgacs/houdini_tools
b23f2b13baac6881da7e8f0cbb421fde3fc616ce
[ "MIT" ]
null
null
null
python/bakeparm.py
danielforgacs/houdini_tools
b23f2b13baac6881da7e8f0cbb421fde3fc616ce
[ "MIT" ]
2
2017-07-07T08:48:44.000Z
2019-08-22T05:42:35.000Z
""" bakes houdini chanel expression into keys on each frame in the timeline Houdini 15.0 todo: - automatical parm selection """ __version__ = 'v0.3' __author__ = 'github/danielforgacs' import hou def bake_parm(parm): values = [] start, end = get_frame_range() end ...
19.275862
66
0.596601
132
1,118
4.916667
0.409091
0.11094
0.107858
0.11094
0.22188
0.157165
0
0
0
0
0
0.008739
0.283542
1,118
57
67
19.614035
0.801498
0.111807
0
0.068966
0
0
0.056853
0
0
0
0
0.017544
0
1
0.172414
false
0
0.034483
0
0.275862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7c76e3a083c8362e5d701e99d40703fd0516d157
1,374
py
Python
Python/priority_queue_base.py
NewGuonx/DST_algorithm
8c4b2f0fe1f43044a5c37a7f993d339862d9182c
[ "Unlicense" ]
1
2022-01-23T05:29:17.000Z
2022-01-23T05:29:17.000Z
Python/priority_queue_base.py
sonaspy/dst_algorithms
8c4b2f0fe1f43044a5c37a7f993d339862d9182c
[ "Unlicense" ]
null
null
null
Python/priority_queue_base.py
sonaspy/dst_algorithms
8c4b2f0fe1f43044a5c37a7f993d339862d9182c
[ "Unlicense" ]
null
null
null
from ..exceptions import Empty class PriorityQueueBase: """Abstract base class for a priority queue.""" #------------------------------ nested _Item class ------------------------------ class _Item: """Lightweight composite to store priority queue items.""" __slots__ = '_key', '_value' def __init__(...
37.135135
83
0.598981
164
1,374
4.823171
0.384146
0.06574
0.141593
0.151707
0.388116
0.388116
0.388116
0.388116
0.247788
0.247788
0
0.002768
0.211063
1,374
36
84
38.166667
0.726937
0.390102
0
0.190476
0
0
0.183099
0
0
0
0
0
0
1
0.380952
false
0
0.047619
0.095238
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7c77f78fdd6d3896cf16c2766e628301130501ab
588
py
Python
data_extractor.py
arghya17/Movie_recommender
de74111aa3911d83789b6feb1b5919905faad987
[ "MIT" ]
null
null
null
data_extractor.py
arghya17/Movie_recommender
de74111aa3911d83789b6feb1b5919905faad987
[ "MIT" ]
null
null
null
data_extractor.py
arghya17/Movie_recommender
de74111aa3911d83789b6feb1b5919905faad987
[ "MIT" ]
1
2021-12-24T11:37:53.000Z
2021-12-24T11:37:53.000Z
from typing import Dict from jina import Document, DocumentArray, Flow from docarray.document.generators import from_csv from random import randint with open("Data.csv") as file: movies = DocumentArray( from_csv(file, field_resolver={'Summary': 'text'}) ) movies=movies.shuffle(seed=randint) for i in ra...
42
132
0.746599
89
588
4.865169
0.539326
0.064665
0.050808
0.055427
0.203233
0.143187
0
0
0
0
0
0.001923
0.115646
588
14
133
42
0.830769
0.110544
0
0
0
0
0.219885
0.173996
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7c85fbc971379e6fa7d8c76e5a7f9c69157a325c
24,827
py
Python
Lib/socketserver.py
harveyqing/read_cPython_source
3ff91638c8c9df6e5ac8dd5235447b5571781535
[ "PSF-2.0" ]
36
2015-02-04T10:43:31.000Z
2022-03-30T13:01:12.000Z
Lib/socketserver.py
harveyqing/read_cPython_source
3ff91638c8c9df6e5ac8dd5235447b5571781535
[ "PSF-2.0" ]
9
2015-03-17T05:56:16.000Z
2021-11-17T09:31:50.000Z
src/test/python/cpython-3f944f44ee41/Lib/socketserver.py
bkiers/python3-parser
38496e94b3935e5abca6ab86fd98136c51f92fd7
[ "MIT" ]
22
2015-05-13T17:37:35.000Z
2022-01-25T06:24:42.000Z
"""Generic socket server classes. This module tries to capture the various aspects of defining a server: For socket-based servers: - address family: - AF_INET{,6}: IP (Internet Protocol) sockets (default) - AF_UNIX: Unix domain sockets - others, e.g. AF_DECNET are conceivable (see <socket.h> ...
32.624179
84
0.652999
3,025
24,827
5.25719
0.219174
0.030246
0.035213
0.022071
0.225366
0.184431
0.168207
0.140288
0.133371
0.13029
0
0.001992
0.272244
24,827
760
85
32.667105
0.878182
0.527611
0
0.406716
0
0
0.033933
0.006861
0
0
0
0
0
1
0.152985
false
0.067164
0.044776
0
0.354478
0.018657
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7c8667f1b954c40f6c7bf760a3479c03ece18e6e
3,776
py
Python
colossalai/zero/sharded_model/sharded_grad.py
mrriteshranjan/ColossalAI
0d057a1bae67b915a385be7edab7da83413cb645
[ "Apache-2.0" ]
null
null
null
colossalai/zero/sharded_model/sharded_grad.py
mrriteshranjan/ColossalAI
0d057a1bae67b915a385be7edab7da83413cb645
[ "Apache-2.0" ]
null
null
null
colossalai/zero/sharded_model/sharded_grad.py
mrriteshranjan/ColossalAI
0d057a1bae67b915a385be7edab7da83413cb645
[ "Apache-2.0" ]
null
null
null
from typing import Optional import torch import torch.nn as nn from torch.nn.parameter import Parameter class ShardedGradient: def __init__(self, param: Parameter, sharded_module: nn.Module, offload_config: Optional[dict] = None ) -> None: ...
43.906977
163
0.646981
509
3,776
4.605108
0.294695
0.050768
0.056314
0.025597
0.147184
0.115188
0.069966
0.02901
0
0
0
0.001456
0.272511
3,776
85
164
44.423529
0.851838
0.255561
0
0.137255
0
0.039216
0.134137
0.02595
0
0
0
0.011765
0.058824
1
0.078431
false
0
0.078431
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7c8827063c5b886b83af2d2a7c2f77873c03f59e
564
py
Python
src/sales/api/views.py
vishalhjoshi/croma
5b033a1136a9a8290118801f0e7092aebd9d64cc
[ "MIT" ]
1
2019-07-13T18:26:09.000Z
2019-07-13T18:26:09.000Z
src/sales/api/views.py
vishalhjoshi/croma
5b033a1136a9a8290118801f0e7092aebd9d64cc
[ "MIT" ]
null
null
null
src/sales/api/views.py
vishalhjoshi/croma
5b033a1136a9a8290118801f0e7092aebd9d64cc
[ "MIT" ]
null
null
null
from ..models import Party, Doctor from .serializers import * from rest_framework.generics import ListAPIView from rest_framework.permissions import IsAdminUser class PartyListApiView(ListAPIView): queryset = Party.objects.all().order_by('name') search_fields = ['name'] serializer_class = PartyApiSerialze...
33.176471
52
0.765957
58
564
7.275862
0.482759
0.037915
0.080569
0.080569
0.246446
0.246446
0.246446
0.246446
0.246446
0.246446
0
0
0.140071
564
17
53
33.176471
0.870103
0
0
0.285714
0
0
0.028319
0
0
0
0
0
0
1
0
false
0
0.285714
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7c8bc0a92afd8bd9090751f144fc21467331cbb7
6,104
py
Python
testplan/testing/multitest/driver/fix/server.py
apretori-tic/testplan
d3926d328e46c88d12a9c2568d4918f8aa44f26e
[ "Apache-2.0" ]
null
null
null
testplan/testing/multitest/driver/fix/server.py
apretori-tic/testplan
d3926d328e46c88d12a9c2568d4918f8aa44f26e
[ "Apache-2.0" ]
64
2019-04-15T20:56:40.000Z
2021-03-23T01:00:30.000Z
testplan/testing/multitest/driver/fix/server.py
apretori-tic/testplan
d3926d328e46c88d12a9c2568d4918f8aa44f26e
[ "Apache-2.0" ]
null
null
null
"""FixServer driver classes.""" import os from six.moves import queue as Queue from schema import Use from testplan.common.config import ConfigOption from testplan.common.utils.strings import slugify from testplan.common.utils.sockets.fix.server import Server from testplan.common.utils.timing import (TimeoutExcepti...
33.173913
80
0.620577
719
6,104
5.144645
0.285118
0.029738
0.024331
0.018654
0.065964
0.038929
0
0
0
0
0
0.003196
0.282438
6,104
183
81
33.355191
0.841324
0.387123
0
0.061728
0
0
0.051189
0
0
0
0
0.010929
0
1
0.17284
false
0
0.098765
0
0.407407
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7c97c1d349a7035b8c108e98916ffaaa384b38ef
12,469
py
Python
authors/apps/authentication/views.py
andela/ah-backend-realers
f4b0dbde16fed5e95ab3b1b60e365515e1fe6697
[ "BSD-3-Clause" ]
null
null
null
authors/apps/authentication/views.py
andela/ah-backend-realers
f4b0dbde16fed5e95ab3b1b60e365515e1fe6697
[ "BSD-3-Clause" ]
20
2019-05-27T13:05:44.000Z
2021-06-10T21:29:36.000Z
authors/apps/authentication/views.py
andela/ah-backend-realers
f4b0dbde16fed5e95ab3b1b60e365515e1fe6697
[ "BSD-3-Clause" ]
6
2019-06-29T11:49:01.000Z
2020-03-02T12:53:06.000Z
from rest_framework import status, exceptions from rest_framework.generics import RetrieveUpdateAPIView from rest_framework.permissions import AllowAny, IsAuthenticated from rest_framework.response import Response from rest_framework.views import APIView from django.conf import settings from .models import User from i...
38.248466
121
0.678242
1,398
12,469
5.864807
0.216023
0.054885
0.025369
0.02854
0.434809
0.371753
0.360776
0.311745
0.278936
0.205635
0
0.011747
0.235384
12,469
326
122
38.248466
0.848227
0.066966
0
0.316667
0
0.008333
0.128103
0.010086
0
0
0
0
0
1
0.054167
false
0.116667
0.0875
0
0.3375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7c987c646374a16adfb666de7c1f5684b222d08f
687
py
Python
lino_book/projects/avanti1/tests/test_simple.py
lino-framework/lino_book
4eab916832cd8f48ff1b9fc8c2789f0b437da0f8
[ "BSD-2-Clause" ]
3
2016-08-25T05:58:09.000Z
2019-12-05T11:13:45.000Z
lino_book/projects/avanti1/tests/test_simple.py
lino-framework/lino_book
4eab916832cd8f48ff1b9fc8c2789f0b437da0f8
[ "BSD-2-Clause" ]
18
2016-11-12T21:38:58.000Z
2019-12-03T17:54:38.000Z
lino_book/projects/avanti1/tests/test_simple.py
lino-framework/lino_book
4eab916832cd8f48ff1b9fc8c2789f0b437da0f8
[ "BSD-2-Clause" ]
9
2016-10-15T11:12:33.000Z
2021-09-22T04:37:37.000Z
# -*- coding: utf-8 -*- # Copyright 2017-2018 Rumma & Ko Ltd # License: BSD (see file COPYING for details) """ Does not actually test anything. You can run only these tests by issuing:: $ python setup.py test -s tests.DemoTests.test_simple Or:: $ go adg $ python manage.py test tests.test_simple """ from _...
19.628571
55
0.73508
93
687
5.301075
0.72043
0.024341
0.064909
0
0
0
0
0
0
0
0
0.019608
0.183406
687
34
56
20.205882
0.85918
0.430859
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.5
0
0.8
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
0
0
0
1
7c9aebed0e274162c711f9f4f0a8b15efdd71dfe
3,330
py
Python
database/api/scores_old.py
aprilsanchez/ictf-framework
2d37b5632b8ca8a4d90a9d84d689a023d19033cf
[ "BSD-2-Clause-FreeBSD" ]
110
2020-04-01T02:27:38.000Z
2022-03-01T16:17:48.000Z
database/api/scores_old.py
aprilsanchez/ictf-framework
2d37b5632b8ca8a4d90a9d84d689a023d19033cf
[ "BSD-2-Clause-FreeBSD" ]
40
2020-03-31T23:30:47.000Z
2022-03-12T00:20:57.000Z
database/api/scores_old.py
aprilsanchez/ictf-framework
2d37b5632b8ca8a4d90a9d84d689a023d19033cf
[ "BSD-2-Clause-FreeBSD" ]
19
2020-04-12T19:17:22.000Z
2022-03-07T17:03:25.000Z
# Scores old stuff # # Helper functions # # FIXME: use ticks instead, teams are either up for the whole tick or down for the whole tick def _get_uptime_for_team(team_id, cursor): """Calculate the uptime for a team. The uptime is normalized to 0 to 100. An uptime of 100 means the team was online for the ent...
37
93
0.587387
425
3,330
4.442353
0.315294
0.044492
0.030191
0.027013
0.204979
0.165254
0.108051
0.07839
0.07839
0.07839
0
0.011111
0.324324
3,330
89
94
37.41573
0.828
0.385886
0
0.261905
0
0
0.358645
0
0
0
0
0.022472
0
1
0.047619
false
0
0
0
0.095238
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7c9b54ec56045bb39987563c2e422f7c183596b7
2,892
py
Python
shhh/api/validators.py
fossabot/shhh
e19f9493b6eb228775a2ee41ed7f1c27f61b88e0
[ "MIT" ]
null
null
null
shhh/api/validators.py
fossabot/shhh
e19f9493b6eb228775a2ee41ed7f1c27f61b88e0
[ "MIT" ]
null
null
null
shhh/api/validators.py
fossabot/shhh
e19f9493b6eb228775a2ee41ed7f1c27f61b88e0
[ "MIT" ]
null
null
null
import enum import re from flask import current_app as app from marshmallow import ValidationError from webargs.flaskparser import abort, parser from shhh.api import services @enum.unique class Status(enum.Enum): """API body response statuses.""" CREATED = "created" SUCCESS = "success" EXPIRED = "e...
30.442105
115
0.656293
351
2,892
5.353276
0.373219
0.10644
0.050559
0.035125
0.171368
0.135178
0.071315
0.071315
0.036189
0
0
0.011818
0.239281
2,892
94
116
30.765957
0.842273
0.161826
0
0.118644
0
0
0.251902
0.02705
0
0
0
0
0
1
0.135593
false
0.169492
0.101695
0
0.338983
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7c9fb0719d92651cd59766a551af71029c541ec2
76,193
py
Python
pgAdmin4/pgAdmin4/lib/python2.7/site-packages/pgadmin4/pgadmin/utils/driver/psycopg2/__init__.py
Anillab/One-Minute-Pitch
123f7b2010d3ae0f031066db1bcfe6eda7a41e84
[ "MIT" ]
null
null
null
pgAdmin4/pgAdmin4/lib/python2.7/site-packages/pgadmin4/pgadmin/utils/driver/psycopg2/__init__.py
Anillab/One-Minute-Pitch
123f7b2010d3ae0f031066db1bcfe6eda7a41e84
[ "MIT" ]
null
null
null
pgAdmin4/pgAdmin4/lib/python2.7/site-packages/pgadmin4/pgadmin/utils/driver/psycopg2/__init__.py
Anillab/One-Minute-Pitch
123f7b2010d3ae0f031066db1bcfe6eda7a41e84
[ "MIT" ]
null
null
null
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2018, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## """ Implementatio...
34.15195
156
0.543711
8,424
76,193
4.77576
0.085708
0.017598
0.010688
0.009396
0.489921
0.431583
0.399269
0.378116
0.352987
0.329895
0
0.007923
0.373827
76,193
2,230
157
34.167265
0.835318
0.063497
0
0.498649
0
0.008784
0.088494
0.008387
0
0
0
0
0.003378
0
null
null
0.037838
0.018919
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7ca08b51dd21eb4fc98d1b9cadbb7a6972acecb8
1,338
py
Python
my-movies-web/search_imdb.py
jamesfwood/my-movies
9a0e5865249f3b914263211fcff796606a7cfad8
[ "MIT" ]
null
null
null
my-movies-web/search_imdb.py
jamesfwood/my-movies
9a0e5865249f3b914263211fcff796606a7cfad8
[ "MIT" ]
null
null
null
my-movies-web/search_imdb.py
jamesfwood/my-movies
9a0e5865249f3b914263211fcff796606a7cfad8
[ "MIT" ]
null
null
null
import sys from imdb import IMDb from decimal import Decimal import json # TODO: Make this into a common libray to share with updateTool.py def getImdbDetails(imdb): details = { 'id': imdb.movieID, 'title': imdb['title'], 'year': imdb['year'], 'votes': imdb['votes'] } try: mpaa = imdb['mpaa'] ...
23.068966
106
0.591181
167
1,338
4.640719
0.437126
0.027097
0.033548
0.04129
0
0
0
0
0
0
0
0.009881
0.243647
1,338
58
107
23.068966
0.755929
0.174888
0
0
0
0
0.164234
0
0
0
0
0.017241
0
1
0.030303
false
0.030303
0.121212
0
0.181818
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7ca9c51bf3e169f07420b66483d456d247667c8f
4,405
py
Python
BLOX/Core/Tester.py
linearlabstech/blox
6a5c8a28fcfcb17731be89939284e7ac13a047d7
[ "Apache-2.0" ]
17
2019-03-31T18:37:35.000Z
2020-08-17T18:14:40.000Z
BLOX/Core/Tester.py
linearlabstech/blox
6a5c8a28fcfcb17731be89939284e7ac13a047d7
[ "Apache-2.0" ]
null
null
null
BLOX/Core/Tester.py
linearlabstech/blox
6a5c8a28fcfcb17731be89939284e7ac13a047d7
[ "Apache-2.0" ]
1
2019-04-02T07:02:08.000Z
2019-04-02T07:02:08.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Copyright (c) 2019, Linear Labs Technologies 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 Unles...
36.106557
133
0.623156
546
4,405
4.96337
0.39011
0.053137
0.020295
0.02214
0.14059
0.068635
0.049446
0.049446
0.038376
0.038376
0
0.006856
0.27151
4,405
121
134
36.404959
0.837644
0.16731
0
0.192771
0
0
0.074378
0
0
0
0
0
0
1
0.036145
false
0.048193
0.325301
0
0.373494
0.012048
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7cad15b981b526eeb84a1a3675762fc355a601ae
5,137
py
Python
templates/flask/flaskRest/app/user/resources.py
david-osas/create-basic-app
860fc579672855093ad8426fb01d010de4c7cff8
[ "MIT" ]
2
2020-12-01T11:33:36.000Z
2020-12-01T12:25:49.000Z
templates/flask/flaskRest/app/user/resources.py
david-osas/create-basic-app
860fc579672855093ad8426fb01d010de4c7cff8
[ "MIT" ]
2
2020-11-25T14:38:57.000Z
2020-11-25T22:55:25.000Z
templates/flask/flaskRest/app/user/resources.py
david-osas/create-basic-app
860fc579672855093ad8426fb01d010de4c7cff8
[ "MIT" ]
2
2020-11-26T08:59:50.000Z
2021-03-30T20:01:06.000Z
from uuid import uuid4 from datetime import datetime, timedelta from flask import request, make_response, jsonify, Blueprint from flask_restful import Resource, Api from marshmallow.exceptions import ValidationError as DataError from flask_jwt_extended import create_access_token, get_jwt_identity, jwt_required, current...
37.49635
96
0.65291
582
5,137
5.541237
0.243986
0.033488
0.034729
0.031628
0.312558
0.253643
0.253643
0.235039
0.220465
0.164341
0
0.013238
0.264746
5,137
136
97
37.772059
0.840614
0
0
0.352941
0
0
0.056648
0
0
0
0
0
0
1
0.067227
false
0.067227
0.117647
0
0.394958
0.042017
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7cb0bf21e996077fd370739dd2fcb96d600b2755
637
py
Python
06-Calc3.py
amandureja/Important-Content
d222bbd65f3cf7b40a6766905baa160576b6d295
[ "Apache-2.0" ]
null
null
null
06-Calc3.py
amandureja/Important-Content
d222bbd65f3cf7b40a6766905baa160576b6d295
[ "Apache-2.0" ]
null
null
null
06-Calc3.py
amandureja/Important-Content
d222bbd65f3cf7b40a6766905baa160576b6d295
[ "Apache-2.0" ]
null
null
null
def calc(opr,x,y): return eval(x + opr + y) def errHandler(x,y,z): quit() main = True while main: print(""" 1. Add 2. Sub 3. Div 4. Mul 5. Quit """) userInput = input("Enter your choice : ") todo = { "1" : "+", "2" : "-", "3"...
14.813953
71
0.453689
76
637
3.723684
0.460526
0.106007
0.113074
0.113074
0.19788
0.19788
0.19788
0
0
0
0
0.038071
0.381476
637
42
72
15.166667
0.680203
0.127159
0
0
0
0
0.26506
0
0
0
0
0.02381
0
1
0.083333
false
0
0
0.041667
0.125
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7cb25498ead542e219a87e83ea3681fde32ae131
2,983
py
Python
omaha_server/crash/views.py
fiadm/omaha-server
72bf5eb33ffc267ebe45a9461acdc79e31ed894b
[ "Apache-2.0" ]
142
2015-02-10T05:46:28.000Z
2020-03-21T13:18:31.000Z
omaha_server/crash/views.py
tuladhar/omaha-server
6cfd86e4319e03af0eb319fae6c867691ffc2c36
[ "Apache-2.0" ]
272
2015-01-15T09:43:49.000Z
2020-03-30T08:29:30.000Z
omaha_server/crash/views.py
tuladhar/omaha-server
6cfd86e4319e03af0eb319fae6c867691ffc2c36
[ "Apache-2.0" ]
77
2015-01-29T19:13:39.000Z
2020-03-21T06:45:35.000Z
# coding: utf8 """ This software is licensed under the Apache 2 license, quoted below. Copyright 2014 Crystalnix Limited Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/...
34.287356
104
0.710359
374
2,983
5.588235
0.435829
0.028708
0.047368
0.021053
0.040191
0
0
0
0
0
0
0.006731
0.203151
2,983
86
105
34.686047
0.872528
0.249078
0
0.156863
0
0
0.072646
0.024664
0
0
0
0
0
1
0.117647
false
0.019608
0.176471
0.039216
0.588235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7cb688230348c4f9ebb8f4b0aaa8c25d0a4f864f
3,846
py
Python
organic-donut/organic_donut.py
tigfox/legendary-sniffle
60cd485f24a32a6e0d231f5f755d0bd7b67e9446
[ "MIT" ]
1
2016-01-24T01:46:43.000Z
2016-01-24T01:46:43.000Z
organic-donut/organic_donut.py
tigfox/legendary-sniffle
60cd485f24a32a6e0d231f5f755d0bd7b67e9446
[ "MIT" ]
null
null
null
organic-donut/organic_donut.py
tigfox/legendary-sniffle
60cd485f24a32a6e0d231f5f755d0bd7b67e9446
[ "MIT" ]
null
null
null
#!/usr/bin/env python import random import sys import collections class character: def __init__(self, HP, AC, name): self.HP = HP self.AC = AC self.name = name self.inventory = [] def list_inventory(): self.counted_inventory = collections.Counter(self.inventory) ...
35.943925
170
0.638066
562
3,846
4.290036
0.373665
0.029863
0.028204
0.029863
0.137702
0.068022
0.046454
0.024056
0
0
0
0.011669
0.264691
3,846
106
171
36.283019
0.840877
0.369735
0
0.112903
0
0
0.076923
0
0
0
0
0
0
0
null
null
0
0.048387
null
null
0.145161
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7cb83a0b605f872d9e09cf547b04c98ec9c3e4c7
4,333
py
Python
spitfire/runtime/template.py
atubbs/spitfire
73dc7ab2f9721aa96d402887e3a080012047e3e1
[ "BSD-3-Clause" ]
385
2016-04-07T06:21:12.000Z
2022-03-30T23:03:59.000Z
spitfire/runtime/template.py
atubbs/spitfire
73dc7ab2f9721aa96d402887e3a080012047e3e1
[ "BSD-3-Clause" ]
25
2016-02-03T23:43:47.000Z
2016-03-31T21:34:45.000Z
spitfire/runtime/template.py
atubbs/spitfire
73dc7ab2f9721aa96d402887e3a080012047e3e1
[ "BSD-3-Clause" ]
67
2016-04-29T14:49:09.000Z
2022-03-15T01:51:02.000Z
# Copyright 2007 The Spitfire Authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # an 'abstract' base class for a template, seems like a good idea for now import cStringIO as StringIO from spitfire import runtime from spitfire.runtime...
34.11811
81
0.678514
526
4,333
5.442966
0.340304
0.04401
0.026546
0.034928
0.111072
0.111072
0.111072
0.111072
0.111072
0.111072
0
0.00126
0.267482
4,333
126
82
34.388889
0.900756
0.438264
0
0.074074
0
0
0.004787
0
0
0
0
0.007937
0
1
0.148148
false
0
0.12963
0.055556
0.574074
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7cbe7716b5bfb693dc13f61a6e63dd0bbf36d6df
21,268
py
Python
ipython/profile_default/ipython_console_config.py
rjw57/vagrant-ipython
927b521b421137ad127f4a6461c30197338ff58d
[ "MIT" ]
null
null
null
ipython/profile_default/ipython_console_config.py
rjw57/vagrant-ipython
927b521b421137ad127f4a6461c30197338ff58d
[ "MIT" ]
null
null
null
ipython/profile_default/ipython_console_config.py
rjw57/vagrant-ipython
927b521b421137ad127f4a6461c30197338ff58d
[ "MIT" ]
null
null
null
# Configuration file for ipython-console. c = get_config() #------------------------------------------------------------------------------ # ZMQTerminalIPythonApp configuration #------------------------------------------------------------------------------ # ZMQTerminalIPythonApp will inherit config from: TerminalIP...
40.356736
424
0.733308
2,859
21,268
5.412032
0.26198
0.09048
0.010987
0.011633
0.143605
0.127319
0.114522
0.110257
0.081561
0.081561
0
0.005154
0.151542
21,268
526
425
40.43346
0.852314
0.955614
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7cbec53e8f79f815119adf0763328d6c81bc439b
1,620
py
Python
tests/parser/test_feature_func.py
ChandlerSwift/little-python
e36b45fd3f92238c02c73c025ed0f424d599123d
[ "MIT" ]
2
2016-10-15T15:48:03.000Z
2016-10-19T15:41:24.000Z
tests/parser/test_feature_func.py
ChandlerSwift/little-python
e36b45fd3f92238c02c73c025ed0f424d599123d
[ "MIT" ]
12
2016-10-12T13:51:53.000Z
2017-10-21T23:12:39.000Z
tests/parser/test_feature_func.py
ChandlerSwift/little-python
e36b45fd3f92238c02c73c025ed0f424d599123d
[ "MIT" ]
1
2020-11-05T17:21:40.000Z
2020-11-05T17:21:40.000Z
import pytest from littlepython import InvalidSyntaxException from littlepython.parser import Parser from littlepython.tokenizer import Tokenizer from tests import _def, c, v, asg, v, blk, add, getitem, func, sig, call, ret def test_simple(): ast = _def(v("t"), sig([]), blk([asg(v("...
25.3125
77
0.55
227
1,620
3.832599
0.180617
0.062069
0.168966
0.165517
0.586207
0.543678
0.46092
0.31954
0.22069
0.11954
0
0.011354
0.238889
1,620
63
78
25.714286
0.694242
0
0
0.357143
0
0
0.088272
0
0
0
0
0
0.142857
1
0.166667
false
0
0.119048
0
0.285714
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7cc0af4f9049f00a2f0fb012d742d1bbfd81388e
4,480
py
Python
tests/test_router_register.py
ricfri/fastapi-users
6ba70bdbc61a04fd9debad1aa7f8cd0270f572c8
[ "MIT" ]
660
2021-08-27T23:31:44.000Z
2022-03-31T18:49:19.000Z
tests/test_router_register.py
ricfri/fastapi-users
6ba70bdbc61a04fd9debad1aa7f8cd0270f572c8
[ "MIT" ]
80
2021-08-29T04:25:25.000Z
2022-03-24T17:19:48.000Z
tests/test_router_register.py
ricfri/fastapi-users
6ba70bdbc61a04fd9debad1aa7f8cd0270f572c8
[ "MIT" ]
76
2021-08-29T18:38:59.000Z
2022-03-29T10:58:27.000Z
from typing import Any, AsyncGenerator, Dict, cast import httpx import pytest from fastapi import FastAPI, status from fastapi_users.router import ErrorCode, get_register_router from tests.conftest import User, UserCreate @pytest.fixture @pytest.mark.asyncio async def test_app_client( get_user_manager, get_test...
37.966102
85
0.675446
544
4,480
5.323529
0.170956
0.045925
0.08529
0.055939
0.726865
0.669199
0.621892
0.621892
0.592541
0.55732
0
0.007948
0.213616
4,480
117
86
38.290598
0.814079
0
0
0.427083
0
0
0.126563
0.019643
0
0
0
0
0.177083
1
0
false
0.135417
0.0625
0
0.072917
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7cc46de3eceabaf9d2f4d9c1b5d211870def1b1a
1,612
py
Python
axfhz1805/app/migrations/0013_auto_20180928_1022.py
caoluyang8/axf_app
ece44bacad8c8589f28b16d31317fcbe97227bf8
[ "BSD-2-Clause" ]
null
null
null
axfhz1805/app/migrations/0013_auto_20180928_1022.py
caoluyang8/axf_app
ece44bacad8c8589f28b16d31317fcbe97227bf8
[ "BSD-2-Clause" ]
null
null
null
axfhz1805/app/migrations/0013_auto_20180928_1022.py
caoluyang8/axf_app
ece44bacad8c8589f28b16d31317fcbe97227bf8
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-09-28 02:22 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('app', '0012_cartmodel'), ] operations = [ ...
35.043478
114
0.565757
165
1,612
5.339394
0.454545
0.045403
0.063564
0.099886
0.426788
0.376844
0.376844
0.376844
0.376844
0.376844
0
0.022026
0.295906
1,612
45
115
35.822222
0.754185
0.042184
0
0.342105
1
0
0.115509
0
0
0
0
0
0
1
0
false
0
0.078947
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7cc4bca2ec81e3fc98d32bb2f681ece78da79e83
953
py
Python
src/fasterRCNN/faster_rcnn/datasets/pseudo.py
acvi2018/person-detection
63e73493f4b6d2b18dad2b0a1b7813b03fc12681
[ "Apache-2.0" ]
3
2018-03-10T17:52:35.000Z
2019-01-18T04:57:13.000Z
src/fasterRCNN/faster_rcnn/datasets/pseudo.py
acvi2018/person-detection
63e73493f4b6d2b18dad2b0a1b7813b03fc12681
[ "Apache-2.0" ]
null
null
null
src/fasterRCNN/faster_rcnn/datasets/pseudo.py
acvi2018/person-detection
63e73493f4b6d2b18dad2b0a1b7813b03fc12681
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Apr 23 15:42:58 2018 @author: cananthapatn """ class pascal_voc(): def __init__(self): ''' self._classes = ('__background__', # always index 0 'aeroplane', 'bicycle', 'bird', 'boat', 'bottle', 'bus', 'car', 'cat', 'chair...
32.862069
79
0.529906
100
953
4.7
0.58
0.117021
0.089362
0.089362
0.140426
0.140426
0
0
0
0
0
0.022727
0.30745
953
28
80
34.035714
0.689394
0.081847
0
0
0
0
0.089087
0
0
0
0
0
0
0
null
null
0
0
null
null
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7cc58a4740c5c97f2ca9d91cc8d3bd634796e4e7
1,081
py
Python
cride/circles/models/invitations.py
jenapidev/DjangoREST
5ed4fe5e28d88ff7944527bd8c54882a2a03efe3
[ "MIT" ]
1
2020-02-23T22:52:13.000Z
2020-02-23T22:52:13.000Z
cride/circles/models/invitations.py
jenapidev/DjangoREST
5ed4fe5e28d88ff7944527bd8c54882a2a03efe3
[ "MIT" ]
5
2021-03-19T04:31:24.000Z
2022-03-12T00:02:30.000Z
cride/circles/models/invitations.py
jenapidev/DjangoREST
5ed4fe5e28d88ff7944527bd8c54882a2a03efe3
[ "MIT" ]
null
null
null
"""Circle invitations model""" #django from django.db import models #Utilities from cride.utils.models import CRideModel #Managers from cride.circles.managers import InvitationManager class Invitation(CRideModel): """Circle Unique invitations are created by using this model""" code = models.CharField(ma...
26.365854
74
0.681776
129
1,081
5.589147
0.488372
0.066574
0.058252
0.087379
0.133148
0.133148
0.133148
0.133148
0.133148
0
0
0.002347
0.211841
1,081
41
75
26.365854
0.843897
0.12951
0
0.173913
0
0
0.151679
0
0
0
0
0
0
1
0.043478
false
0
0.130435
0
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
0
0
0
0
0
1
0
0
1
7cc8f45687058b1bf70bebe5de97fe1d98f3ebf0
585
bzl
Python
bazel/rules/parcel.bzl
aspect-build/bazelcon-21
d7e7d67478b9c195546cd0148e59edb7ab4a5caa
[ "MIT" ]
3
2021-11-24T00:24:43.000Z
2022-01-04T12:57:33.000Z
bazel/rules/parcel.bzl
aspect-build/bazelcon-21
d7e7d67478b9c195546cd0148e59edb7ab4a5caa
[ "MIT" ]
null
null
null
bazel/rules/parcel.bzl
aspect-build/bazelcon-21
d7e7d67478b9c195546cd0148e59edb7ab4a5caa
[ "MIT" ]
null
null
null
"""Wrapper macro around parcel cli""" load("@aspect_bazel_lib//lib:utils.bzl", "path_to_workspace_root") load("@npm//parcel-bundler:index.bzl", _parcel = "parcel") def parcel(name, entry_html, data = [], **kwargs): """Wrapper macro around parcel cli""" _parcel( name = name, args = [ ...
30.789474
73
0.567521
69
585
4.550725
0.521739
0.057325
0.143312
0.181529
0.171975
0
0
0
0
0
0
0
0.25641
585
18
74
32.5
0.721839
0.107692
0
0
0
0
0.254403
0.164384
0
0
0
0
0
1
0.071429
false
0
0
0
0.071429
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7cd1a6afce0c400ccffef42ed25f3f0c10c0618b
195
py
Python
notes/01 - slow.py
codeuniversity/automated-testing-lu-minimal-example
f7e095a269b7c0292c686bc730fd3a586b62140b
[ "MIT" ]
null
null
null
notes/01 - slow.py
codeuniversity/automated-testing-lu-minimal-example
f7e095a269b7c0292c686bc730fd3a586b62140b
[ "MIT" ]
null
null
null
notes/01 - slow.py
codeuniversity/automated-testing-lu-minimal-example
f7e095a269b7c0292c686bc730fd3a586b62140b
[ "MIT" ]
null
null
null
def fib(n): '''Takes in a number n, and returns the nth fibonacci number, starting with: 1, 1, 2, 3, 5,...''' if n <= 1: return n else: return fib(n - 1) + fib(n - 2)
27.857143
101
0.517949
34
195
2.970588
0.617647
0.118812
0
0
0
0
0
0
0
0
0
0.060606
0.323077
195
6
102
32.5
0.704545
0.466667
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7cd355f997607aa82b00d8875e113200e1435106
12,069
py
Python
app.py
mross1080/XAI-ImmersiveExperience
4de76b013442cdf374a59591a3abb19f04dd0ba9
[ "Apache-2.0" ]
null
null
null
app.py
mross1080/XAI-ImmersiveExperience
4de76b013442cdf374a59591a3abb19f04dd0ba9
[ "Apache-2.0" ]
null
null
null
app.py
mross1080/XAI-ImmersiveExperience
4de76b013442cdf374a59591a3abb19f04dd0ba9
[ "Apache-2.0" ]
null
null
null
# ----------------------------------------------------------------------------# # Imports # ----------------------------------------------------------------------------# from copy import copy import random from flask import Flask, render_template, request, jsonify from lifxlan import BLUE, GREEN, LifxLAN, sleep, RED,...
29.508557
150
0.575524
1,345
12,069
4.912268
0.226766
0.063569
0.081732
0.032693
0.411685
0.321326
0.231724
0.221432
0.209929
0.197366
0
0.038848
0.283371
12,069
408
151
29.580882
0.725055
0.164885
0
0.359259
0
0.003704
0.213146
0.007977
0
0
0
0
0
0
null
null
0
0.025926
null
null
0.07037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7ce006b41a3b0198d6bbf2f151a6f4e45c942724
316
py
Python
paraVerComoFuncionaAlgumasCoisas/pyQt5/0-outros/outro2/2.py
jonasht/pythonEstudos
5e7d28e7bd82b9d1b08e795867fdbaa743f4b747
[ "MIT" ]
null
null
null
paraVerComoFuncionaAlgumasCoisas/pyQt5/0-outros/outro2/2.py
jonasht/pythonEstudos
5e7d28e7bd82b9d1b08e795867fdbaa743f4b747
[ "MIT" ]
null
null
null
paraVerComoFuncionaAlgumasCoisas/pyQt5/0-outros/outro2/2.py
jonasht/pythonEstudos
5e7d28e7bd82b9d1b08e795867fdbaa743f4b747
[ "MIT" ]
null
null
null
from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * import sys class Window(QWindow): def __init__(self): QWindow.__init__(self) self.setTitle('janela') self.resize(400,300) app = QApplication(sys.argv) tela = Window() tela.show() sys.exit(app.exec_())
17.555556
31
0.68038
42
316
4.904762
0.595238
0.131068
0.145631
0
0
0
0
0
0
0
0
0.035294
0.193038
316
17
32
18.588235
0.772549
0
0
0
0
0
0.019048
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7ce87f1a1580d3a20a77a51b242a044901c20c26
22,820
py
Python
bqutil.py
mitodl/xanalytics
8cb7c373eb054bad741a9e567c0c8cbbc6ab08cf
[ "MIT" ]
8
2015-03-05T21:09:40.000Z
2020-02-03T09:15:09.000Z
bqutil.py
mitodl/xanalytics
8cb7c373eb054bad741a9e567c0c8cbbc6ab08cf
[ "MIT" ]
1
2015-09-24T18:43:27.000Z
2015-10-01T18:11:20.000Z
bqutil.py
mitodl/xanalytics
8cb7c373eb054bad741a9e567c0c8cbbc6ab08cf
[ "MIT" ]
6
2015-04-23T16:47:34.000Z
2017-10-13T19:11:53.000Z
#!/usr/bin/python # # File: bqutil.py # Date: 14-Oct-14 # Author: I. Chuang <ichuang@mit.edu> # # common bigquery utility functions import sys import time import json import datetime try: import getpass except: pass try: from edx2bigquery_config import PROJECT_ID as DEFAULT_PROJECT_ID except: fro...
35.824176
134
0.602279
2,759
22,820
4.782892
0.132657
0.063428
0.024401
0.027887
0.506138
0.464232
0.407245
0.370794
0.345408
0.310624
0
0.008314
0.283216
22,820
636
135
35.880503
0.798435
0.025197
0
0.427015
0
0.008715
0.154293
0.00474
0
0
0
0
0.034858
0
null
null
0.008715
0.019608
null
null
0.078431
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7ceb8d10bf91b5fbd69ef66480eb14b183565565
318
py
Python
Mundo 2/Ex46.py
legna7/Python
52e0b642d1b7acc592ec82dd360c5697fb0765db
[ "MIT" ]
2
2020-04-18T21:56:35.000Z
2020-04-23T00:00:08.000Z
Mundo-2/desafio-046.py
LeonardoARGR/Desafios-Python-Curso-em-Video
3fb1b0615fce88f968b5ba6e4bac43fcb0e72d98
[ "MIT" ]
null
null
null
Mundo-2/desafio-046.py
LeonardoARGR/Desafios-Python-Curso-em-Video
3fb1b0615fce88f968b5ba6e4bac43fcb0e72d98
[ "MIT" ]
null
null
null
from time import sleep print(f'{"-=-" * 7}[CONTAGEM REGRESSIVA]{"-=-" * 7}') print('''Vai estourar os fogos de artifício daqui a 10 segundos, vamos começar a contar!''') sleep(1) for c in range(10, -1, -1): print(c) sleep(1) print('BOOM! POOW! BOOM!') print('AEEEEEE! OS FOGOS ESTOURARAM!!') print('-=-' * 20)
26.5
64
0.628931
49
318
4.081633
0.653061
0.07
0
0
0
0
0
0
0
0
0
0.044944
0.160377
318
11
65
28.909091
0.70412
0
0
0.181818
0
0
0.540881
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.545455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
7cede9127342fa8e10c99a360a9cc9e459fca3be
1,861
py
Python
pgoapi/protos/POGOProtos/Inventory/EggIncubatorType_pb2.py
PogoHop/pgoapi-hsvr
b5761159e0240bbb81ef6c257fe2eb1bc1ce2d47
[ "MIT" ]
null
null
null
pgoapi/protos/POGOProtos/Inventory/EggIncubatorType_pb2.py
PogoHop/pgoapi-hsvr
b5761159e0240bbb81ef6c257fe2eb1bc1ce2d47
[ "MIT" ]
null
null
null
pgoapi/protos/POGOProtos/Inventory/EggIncubatorType_pb2.py
PogoHop/pgoapi-hsvr
b5761159e0240bbb81ef6c257fe2eb1bc1ce2d47
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: POGOProtos/Inventory/EggIncubatorType.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from...
32.086207
215
0.771091
212
1,861
6.537736
0.438679
0.04329
0.077922
0.08658
0.049062
0
0
0
0
0
0
0.029814
0.134874
1,861
57
216
32.649123
0.831056
0.09726
0
0.170732
1
0.02439
0.228059
0.168109
0
0
0
0
0
1
0
false
0
0.170732
0
0.170732
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7cf5c5cbfa6e070e8135f4f94642227eb98ea1b2
4,086
py
Python
nuitka/codegen/templates/CodeTemplatesLoader.py
TcDhlPro/Nuitka
5248d49c3f673d62cc293e08b7a831755f15f295
[ "Apache-2.0" ]
1
2022-03-07T13:41:49.000Z
2022-03-07T13:41:49.000Z
nuitka/codegen/templates/CodeTemplatesLoader.py
linkangren/Nuitka
41506f47f01cd7f01d5e382515a47774a7bba123
[ "Apache-2.0" ]
null
null
null
nuitka/codegen/templates/CodeTemplatesLoader.py
linkangren/Nuitka
41506f47f01cd7f01d5e382515a47774a7bba123
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
27.24
93
0.709741
546
4,086
5.148352
0.399267
0.021345
0.031306
0.022412
0.203842
0.174671
0.156172
0.156172
0.156172
0.129136
0
0.013801
0.184288
4,086
149
94
27.422819
0.829583
0.196769
0
0.308511
0
0.021277
0.903256
0.166155
0
0
0.004607
0
0
1
0
false
0
0.010638
0
0.010638
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7cf8b05a92bf16f8ac635c67adf7931cc03e1fae
2,523
py
Python
egt/game_functions/alternative_J.py
nathbo/egt
25b1bc9d1cd6812c4ba32104d940290c45607e42
[ "MIT" ]
1
2021-06-01T10:22:33.000Z
2021-06-01T10:22:33.000Z
egt/game_functions/alternative_J.py
nathbo/egt
25b1bc9d1cd6812c4ba32104d940290c45607e42
[ "MIT" ]
null
null
null
egt/game_functions/alternative_J.py
nathbo/egt
25b1bc9d1cd6812c4ba32104d940290c45607e42
[ "MIT" ]
null
null
null
import numpy as np from .game_template import J_template class MyJ(J_template): """My first own J - quadratic functions""" def __init__(self, *args, **kwargs): super(MyJ, self).__init__(*args, **kwargs) def _naive(self, x, u, x2): if self.f(x2) <= self.f(x): top = x2-x ...
31.148148
80
0.413397
315
2,523
3.11746
0.24127
0.154786
0.242363
0.137475
0.370672
0.356415
0.312627
0.259674
0.259674
0.259674
0
0.045961
0.430836
2,523
80
81
31.5375
0.637883
0.070947
0
0.15625
0
0
0.00257
0
0
0
0
0
0.015625
1
0.046875
false
0
0.03125
0
0.125
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7cf9c5fa02091be9814c0459a77f084513096859
382
py
Python
backend/letters/models.py
cool199966/AutoCoverLetter
33b0b43de2c46deda04c8a3edf693bc449aaf054
[ "MIT" ]
1
2020-12-03T16:31:50.000Z
2020-12-03T16:31:50.000Z
backend/letters/models.py
cool199966/AutoCoverLetter
33b0b43de2c46deda04c8a3edf693bc449aaf054
[ "MIT" ]
null
null
null
backend/letters/models.py
cool199966/AutoCoverLetter
33b0b43de2c46deda04c8a3edf693bc449aaf054
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User # Create your models here. class CoverLetter(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE) title = models.CharField(max_length=255) message = models.TextField() is_public = models.BooleanField(default=Tr...
29.384615
60
0.764398
51
382
5.607843
0.705882
0.06993
0
0
0
0
0
0
0
0
0
0.009146
0.141361
382
12
61
31.833333
0.862805
0.062827
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7cfcf9ab7021527fbda305669d2d1500a0e0abe5
2,032
py
Python
chanimlib/compounds.py
dsvatunek/chanim
69126fe15264ae2e839a806eabcfb629063b4f32
[ "MIT" ]
1
2021-12-11T20:09:29.000Z
2021-12-11T20:09:29.000Z
chanimlib/compounds.py
dsvatunek/chanim
69126fe15264ae2e839a806eabcfb629063b4f32
[ "MIT" ]
null
null
null
chanimlib/compounds.py
dsvatunek/chanim
69126fe15264ae2e839a806eabcfb629063b4f32
[ "MIT" ]
null
null
null
from .chem_objects import ChemObject """ Lazy Classes to create useful organic compounds. """ class PrimaryAlcohol(ChemObject): """ Returns a straight chain alcohol. chain_length >= 1 TODO: Isn't working currently for some reason. Will fix later. """ def __init__(self,...
24.481928
123
0.540354
229
2,032
4.598253
0.454148
0.104463
0.068376
0.049383
0.186135
0.117759
0
0
0
0
0
0.025054
0.3125
2,032
82
124
24.780488
0.728704
0.117126
0
0.294118
0
0
0.165605
0.077849
0
0
0
0.012195
0
1
0.088235
false
0
0.029412
0
0.205882
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
6b073a8aa9a3ec22e722878ead9c6368880e3fe1
1,428
py
Python
yalse-core/yalse_core/tika/extractor.py
iaga84/yalse
3c7279cbe2b105e140e1a9eae364ddc3aa8ebbc0
[ "MIT" ]
null
null
null
yalse-core/yalse_core/tika/extractor.py
iaga84/yalse
3c7279cbe2b105e140e1a9eae364ddc3aa8ebbc0
[ "MIT" ]
null
null
null
yalse-core/yalse_core/tika/extractor.py
iaga84/yalse
3c7279cbe2b105e140e1a9eae364ddc3aa8ebbc0
[ "MIT" ]
null
null
null
import json from string import digits import requests from unidecode import unidecode from yalse_core.common.constants import PUNCTUATION def get_tika_content(path): r = unidecode(requests.put("http://tika:9998/tika", data=open(path, 'rb')).content.decode('utf-8')).lower() no_digit = r.translate(str.maketran...
39.666667
111
0.72619
187
1,428
5.395722
0.390374
0.133796
0.180377
0.150644
0.349851
0.176412
0.07334
0
0
0
0
0.007189
0.123249
1,428
35
112
40.8
0.798722
0
0
0
0
0
0.317927
0.209384
0
0
0
0
0
1
0.068966
false
0
0.172414
0
0.310345
0.068966
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6b07a4c0d8f80dbbcedc3518e9d6af6264a8d817
729
py
Python
resources/migrations/0021_change_image_file_to_char.py
City-of-Helsinki/berth-reservations
a3b1a8c2176f132505527acdf6da3a62199401db
[ "MIT" ]
3
2020-10-13T07:58:48.000Z
2020-12-22T09:41:50.000Z
resources/migrations/0021_change_image_file_to_char.py
City-of-Helsinki/berth-reservations
a3b1a8c2176f132505527acdf6da3a62199401db
[ "MIT" ]
422
2018-10-25T10:57:05.000Z
2022-03-30T05:47:14.000Z
resources/migrations/0021_change_image_file_to_char.py
City-of-Helsinki/berth-reservations
a3b1a8c2176f132505527acdf6da3a62199401db
[ "MIT" ]
1
2020-04-03T07:38:03.000Z
2020-04-03T07:38:03.000Z
# Generated by Django 3.1 on 2020-10-05 12:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("resources", "0020_change_berth_number_to_char"), ] operations = [ migrations.AlterField( model_name="harbor", name="im...
26.035714
80
0.570645
74
729
5.445946
0.581081
0.08933
0.129032
0.143921
0.406948
0.406948
0.406948
0.406948
0.406948
0.406948
0
0.048682
0.323731
729
27
81
27
0.768763
0.058985
0
0.571429
1
0
0.152047
0.046784
0
0
0
0
0
1
0
false
0
0.047619
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6b1b17c812701f20cdc65cb277468f145c46d419
1,525
py
Python
analysis-service/image_analysis.py
garybake/siteanalyzer
862b7c3afcb5d29f931f1a42ec71ca29b7ebde47
[ "MIT" ]
null
null
null
analysis-service/image_analysis.py
garybake/siteanalyzer
862b7c3afcb5d29f931f1a42ec71ca29b7ebde47
[ "MIT" ]
null
null
null
analysis-service/image_analysis.py
garybake/siteanalyzer
862b7c3afcb5d29f931f1a42ec71ca29b7ebde47
[ "MIT" ]
null
null
null
import os import logging from decimal import Decimal import boto3 import botocore logger = logging.getLogger('analysis') def clean_detect_response(response): images = response.get('Labels', []) return [{'Name': i['Name'], 'Confidence': Decimal(str(i['Confidence']))} for i in images] def analyze_image(buc...
28.773585
139
0.63541
166
1,525
5.680723
0.445783
0.042418
0.038176
0.057264
0.135737
0.135737
0.135737
0.135737
0.135737
0.135737
0
0.008598
0.237377
1,525
52
140
29.326923
0.802236
0.379672
0
0
0
0
0.171306
0
0
0
0
0.019231
0
1
0.074074
false
0
0.185185
0
0.37037
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
6b1f465af54aef5de3a47a07bafa2a12ec1106c9
3,477
py
Python
utils/test_the_test/test_version.py
DataDog/system-tests
04f94312fddb135830dbe2df6d51d9246561ea6e
[ "Apache-2.0" ]
3
2021-11-15T20:28:25.000Z
2022-01-27T18:33:15.000Z
utils/test_the_test/test_version.py
DataDog/system-tests
04f94312fddb135830dbe2df6d51d9246561ea6e
[ "Apache-2.0" ]
25
2021-11-08T15:50:38.000Z
2022-03-29T12:16:17.000Z
utils/test_the_test/test_version.py
DataDog/system-tests
04f94312fddb135830dbe2df6d51d9246561ea6e
[ "Apache-2.0" ]
1
2021-11-15T20:28:28.000Z
2021-11-15T20:28:28.000Z
from utils._context.library_version import LibraryVersion, Version from utils import context context.execute_warmups = lambda *args, **kwargs: None def test_version_comparizon(): v = Version("1.0", "some_component") assert v == "1.0" assert v != "1.1" assert v <= "1.1" assert v <= "1.0" as...
26.746154
113
0.545873
579
3,477
3.260794
0.127807
0.042373
0.017479
0.033898
0.636653
0.528072
0.434852
0.342691
0.275953
0.138771
0
0.144781
0.231234
3,477
129
114
26.953488
0.561541
0
0
0.089888
0
0.011236
0.336785
0.054357
0
0
0
0
0.764045
1
0.033708
false
0
0.022472
0
0.05618
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
6b201e0ebcf484cb1aaced0890e1473662effdb8
1,899
py
Python
OP_ui_list_chapter.py
Tilapiatsu/blender-lineup_maker
b020a791645b08328287e932aa2e9287d222dc4c
[ "MIT" ]
1
2019-07-16T13:11:29.000Z
2019-07-16T13:11:29.000Z
OP_ui_list_chapter.py
Tilapiatsu/blender-lineup_maker
b020a791645b08328287e932aa2e9287d222dc4c
[ "MIT" ]
null
null
null
OP_ui_list_chapter.py
Tilapiatsu/blender-lineup_maker
b020a791645b08328287e932aa2e9287d222dc4c
[ "MIT" ]
null
null
null
import bpy, re from . import logger as L def add_keyword(context, naming_convention, keyword): if len(naming_convention): return '{}{}{}{}{}'.format(naming_convention, context.scene.lm_separator, '<', keyword, '>') else: return '{}{}{}{}'.format(naming_convention, '<', keyword, '>') def slic...
33.315789
139
0.674566
232
1,899
5.293103
0.310345
0.104235
0.068404
0.081433
0.156352
0.110749
0.050489
0
0
0
0
0.005246
0.196946
1,899
57
140
33.315789
0.8
0
0
0.2
0
0.025
0.131053
0.054737
0
0
0
0
0
1
0.125
false
0
0.05
0
0.575
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
6b20519867924b10ea0ce1f0aef3245ad0c56950
1,912
py
Python
ska-tmc/ska-tmc-subarraynode-low/src/ska_tmc_subarraynode_low/assign_resources_command.py
ska-telescope/tmc-prototype
4138274e933d4b05f7fe9fc34a11c417b6d0d336
[ "BSD-3-Clause" ]
3
2019-01-10T11:49:36.000Z
2019-07-19T03:32:52.000Z
ska-tmc/ska-tmc-subarraynode-low/src/ska_tmc_subarraynode_low/assign_resources_command.py
ska-telescope/tmc-prototype
4138274e933d4b05f7fe9fc34a11c417b6d0d336
[ "BSD-3-Clause" ]
19
2019-01-07T14:50:26.000Z
2019-10-02T13:25:23.000Z
ska-tmc/ska-tmc-subarraynode-low/src/ska_tmc_subarraynode_low/assign_resources_command.py
ska-telescope/tmc-prototype
4138274e933d4b05f7fe9fc34a11c417b6d0d336
[ "BSD-3-Clause" ]
1
2018-12-21T13:39:23.000Z
2018-12-21T13:39:23.000Z
""" AssignResourcesCommand class for SubarrayNodeLow. """ # Standard python imports import json # Additional import from ska.base.commands import ResultCode from ska.base import SKASubarray from . import const from tmc.common.tango_server_helper import TangoServerHelper class AssignResources(SKASubarray.AssignResou...
32.40678
157
0.687762
227
1,912
5.594714
0.480176
0.055118
0.047244
0.053543
0.050394
0.050394
0
0
0
0
0
0.004087
0.232218
1,912
58
158
32.965517
0.861035
0.437238
0
0
0
0
0.068158
0.036209
0
0
0
0.017241
0
1
0.05
false
0
0.25
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
6b21a8675560f24678ee79bd139d48c9e0f8e0a0
10,131
py
Python
django/thesaurus/settings.py
wykys/project-thesaurus
f700396b30ed44e6b001c15397a25450ac068af4
[ "MIT" ]
null
null
null
django/thesaurus/settings.py
wykys/project-thesaurus
f700396b30ed44e6b001c15397a25450ac068af4
[ "MIT" ]
null
null
null
django/thesaurus/settings.py
wykys/project-thesaurus
f700396b30ed44e6b001c15397a25450ac068af4
[ "MIT" ]
null
null
null
""" Django settings for thesaurus project. Generated by 'django-admin startproject' using Django 3.0.5. """ import os import re from logging.config import dictConfig from django.core.validators import MinValueValidator from django.db import DEFAULT_DB_ALIAS from django.urls import reverse_lazy from django.utils.log i...
28.945714
102
0.701017
1,117
10,131
6.081468
0.329454
0.036361
0.020021
0.011041
0.063153
0.045194
0.016046
0.011777
0.011777
0
0
0.005685
0.166617
10,131
349
103
29.028653
0.798887
0.061791
0
0.031128
1
0
0.42928
0.260819
0
0
0
0
0
1
0
false
0.031128
0.042802
0
0.042802
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6b22355e0c64e820ee5d951099ccec50d71e9011
1,208
py
Python
0_PythonFundamental/3_03_practicetask1.py
hnwarid/DQLabAcademy
e03d82f97536ae103b6abc65db0ae16520fb68c7
[ "MIT" ]
null
null
null
0_PythonFundamental/3_03_practicetask1.py
hnwarid/DQLabAcademy
e03d82f97536ae103b6abc65db0ae16520fb68c7
[ "MIT" ]
null
null
null
0_PythonFundamental/3_03_practicetask1.py
hnwarid/DQLabAcademy
e03d82f97536ae103b6abc65db0ae16520fb68c7
[ "MIT" ]
null
null
null
# Definisikan class Karyawan class Karyawan: def __init__(self, nama, usia, pendapatan, insentif_lembur): self.nama = nama self.usia = usia self.pendapatan = pendapatan self.pendapatan_tambahan = 0 self.insentif_lembur = insentif_lembur def lembur(self): self.pend...
38.967742
64
0.678808
133
1,208
5.902256
0.255639
0.107006
0.112102
0.038217
0
0
0
0
0
0
0
0.001109
0.253311
1,208
31
65
38.967742
0.86918
0.04553
0
0.068966
0
0
0
0
0
0
0
0
0
1
0.241379
false
0
0
0.034483
0.344828
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
6b2b935ce697d817b5b0ee4f8c69c47423160c39
9,678
py
Python
util/tlgen/elaborate.py
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
1,375
2019-11-05T15:11:00.000Z
2022-03-28T17:50:43.000Z
util/tlgen/elaborate.py
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
7,045
2019-11-05T16:05:45.000Z
2022-03-31T23:08:08.000Z
util/tlgen/elaborate.py
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
428
2019-11-05T15:00:20.000Z
2022-03-28T15:34:57.000Z
# Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 import logging as log from .item import Node, NodeType from .xbar import Xbar def elaborate(xbar: Xbar) -> bool: """elaborate reads all nodes and edges then cons...
38.252964
90
0.588655
1,302
9,678
4.288786
0.144393
0.033847
0.037249
0.031519
0.699857
0.628761
0.545845
0.461676
0.380014
0.32808
0
0.015746
0.330647
9,678
252
91
38.404762
0.846249
0.33571
0
0.482014
0
0
0.077988
0
0
0
0.000955
0
0
1
0.021583
false
0.316547
0.021583
0
0.071942
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
6b326fb345cd489e7207c73a165ad8cd85fc8c23
272
py
Python
sentry/filters/__init__.py
Kronuz/django-sentry
31996f37fd866bd91172c6089830671e4d4634ac
[ "BSD-3-Clause" ]
null
null
null
sentry/filters/__init__.py
Kronuz/django-sentry
31996f37fd866bd91172c6089830671e4d4634ac
[ "BSD-3-Clause" ]
null
null
null
sentry/filters/__init__.py
Kronuz/django-sentry
31996f37fd866bd91172c6089830671e4d4634ac
[ "BSD-3-Clause" ]
null
null
null
""" sentry.filters ~~~~~~~~~~~~~~ :copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from .base import * from .builtins import * from .widgets import * # Backwards compatibility SentryFilter = Filter
18.133333
70
0.694853
34
272
5.558824
0.705882
0.074074
0.148148
0
0
0
0
0
0
0
0
0.017544
0.161765
272
14
71
19.428571
0.811404
0.628676
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6b338d865acad61a1301f119e5c4bb37ab858584
470
py
Python
examples/spectral_twomoons.py
dfloeder/GraphLearning
f9b7ea91a43622b5c271315b0b3b2fdd82e37fe4
[ "MIT" ]
null
null
null
examples/spectral_twomoons.py
dfloeder/GraphLearning
f9b7ea91a43622b5c271315b0b3b2fdd82e37fe4
[ "MIT" ]
null
null
null
examples/spectral_twomoons.py
dfloeder/GraphLearning
f9b7ea91a43622b5c271315b0b3b2fdd82e37fe4
[ "MIT" ]
null
null
null
import numpy as np import graphlearning as gl import matplotlib.pyplot as plt import sklearn.datasets as datasets X,labels = datasets.make_moons(n_samples=500,noise=0.1) W = gl.weightmatrix.knn(X,10) model = gl.clustering.spectral(W, num_clusters=2) pred_labels = model.fit_predict() accuracy = gl.clustering.clusteri...
24.736842
65
0.76383
75
470
4.68
0.56
0.08547
0
0
0
0
0
0
0
0
0
0.025882
0.095745
470
18
66
26.111111
0.8
0
0
0
0
0
0.063966
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
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
0
0
0
1
0
0
0
0
1
6b33b431947f579d582e10cb793ca8c9d9edb19f
635
py
Python
sapsan/core/cli/templates/test.py
MilesCranmer/Sapsan
4d21954baf196ede2d4dafc765aed98a0cfca21b
[ "BSD-3-Clause" ]
11
2020-05-25T18:59:02.000Z
2021-11-30T15:27:43.000Z
sapsan/core/cli/templates/test.py
MilesCranmer/Sapsan
4d21954baf196ede2d4dafc765aed98a0cfca21b
[ "BSD-3-Clause" ]
19
2020-04-17T05:54:09.000Z
2021-09-14T05:24:17.000Z
sapsan/core/cli/templates/test.py
MilesCranmer/Sapsan
4d21954baf196ede2d4dafc765aed98a0cfca21b
[ "BSD-3-Clause" ]
3
2021-09-01T16:11:18.000Z
2021-09-06T07:39:06.000Z
TEMPLATE = """import numpy as np import unittest from {name}.algorithm.research_algorithm import {name_upper}Estimator class Test{name_upper}Estimator(unittest.TestCase): def test_predict(self): multiplier = 2 input_data = np.random.random([1, 2]) expected_result = input_data * multiplie...
27.608696
69
0.686614
74
635
5.72973
0.459459
0.084906
0.127358
0
0
0
0
0
0
0
0
0.005976
0.209449
635
22
70
28.863636
0.838645
0
0
0
0
0
0.76063
0.329134
0
0
0
0
0.066667
1
0.066667
false
0
0.2
0.066667
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6b376a1b97ff4164e548f9a1ddca4063f407d5b2
1,336
py
Python
figaro/services/admin.py
hysds/figaro
7c561f936ba11943b4851a122706dc2c79e7da6f
[ "Apache-2.0" ]
1
2019-10-18T21:29:58.000Z
2019-10-18T21:29:58.000Z
figaro/services/admin.py
hysds/figaro
7c561f936ba11943b4851a122706dc2c79e7da6f
[ "Apache-2.0" ]
1
2020-03-18T17:18:32.000Z
2020-03-18T17:18:32.000Z
figaro/services/admin.py
hysds/figaro
7c561f936ba11943b4851a122706dc2c79e7da6f
[ "Apache-2.0" ]
1
2019-02-07T18:58:29.000Z
2019-02-07T18:58:29.000Z
from __future__ import unicode_literals from __future__ import print_function from __future__ import division from __future__ import absolute_import from future import standard_library standard_library.install_aliases() import os import sys import json import time import pprint import subprocess from flask import jsoni...
24.290909
66
0.655689
159
1,336
5.238994
0.415094
0.057623
0.096038
0.040816
0.292917
0.292917
0.292917
0.292917
0.292917
0.182473
0
0.000968
0.226796
1,336
54
67
24.740741
0.805421
0.092066
0
0.25
0
0
0.120332
0.035685
0
0
0
0
0
1
0.025
false
0
0.325
0
0.375
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
0
0
0
1
6b37f6049051ddf4ed225a0d8275c49bc006b205
425
py
Python
lassie/compat.py
idlesign/lassie
1122c719a68c20b847c1963719070e10a3d253dd
[ "MIT" ]
354
2015-01-04T14:47:58.000Z
2022-03-21T21:42:36.000Z
lassie/compat.py
idlesign/lassie
1122c719a68c20b847c1963719070e10a3d253dd
[ "MIT" ]
39
2015-04-13T16:40:07.000Z
2022-02-18T12:39:03.000Z
Lib/site-packages/lassie/compat.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
45
2015-04-15T18:02:15.000Z
2022-02-28T02:27:45.000Z
# -*- coding: utf-8 -*- """ lassie.compat ~~~~~~~~~~~~~ This module contains imports and declarations for seamless Python 2 and Python 3 compatibility. """ import sys _ver = sys.version_info #: Python 2.x? is_py2 = (_ver[0] == 2) #: Python 3.x? is_py3 = (_ver[0] == 3) if is_py2: from urlparse import urljoin,...
14.166667
71
0.644706
62
425
4.290323
0.580645
0.052632
0.157895
0.180451
0
0
0
0
0
0
0
0.038806
0.211765
425
29
72
14.655172
0.755224
0.407059
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.3
0
0.3
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6b3ca14339e229a2def583d6cafaff8d3c3992f2
3,208
py
Python
flambda_app/enums/messages.py
madeiramadeirabr/template-serverless-service-python
17a57e19906f44978dad0c09cff3a16c299ff0c0
[ "MIT" ]
null
null
null
flambda_app/enums/messages.py
madeiramadeirabr/template-serverless-service-python
17a57e19906f44978dad0c09cff3a16c299ff0c0
[ "MIT" ]
1
2022-03-31T17:55:16.000Z
2022-03-31T17:59:00.000Z
flambda_app/enums/messages.py
madeiramadeirabr/template-serverless-service-python
17a57e19906f44978dad0c09cff3a16c299ff0c0
[ "MIT" ]
null
null
null
""" App Messages Enum Module for Flambda APP Version: 1.0.0 """ from enum import IntEnum class MessagesEnum(IntEnum): def __new__(cls, value, label, message=''): obj = int.__new__(cls, value) obj._value_ = value obj.code = value obj.label = label obj.message = message ...
50.920635
132
0.72288
442
3,208
4.997738
0.282805
0.12947
0.052965
0.032594
0.09914
0.038026
0.038026
0
0
0
0
0.033421
0.169888
3,208
62
133
51.741935
0.796095
0.055486
0
0
0
0
0.549553
0.274445
0
0
0
0
0
1
0.025
false
0
0.025
0
0.825
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
6b3f1934c51d2a6eb7c5be95689011a65c95195a
3,461
py
Python
stian/day_thirteen/python/day_thirteen.py
stian-eng/advent-2021
2ed73e24e372a5ef448a70aee5722679214ec562
[ "MIT" ]
null
null
null
stian/day_thirteen/python/day_thirteen.py
stian-eng/advent-2021
2ed73e24e372a5ef448a70aee5722679214ec562
[ "MIT" ]
null
null
null
stian/day_thirteen/python/day_thirteen.py
stian-eng/advent-2021
2ed73e24e372a5ef448a70aee5722679214ec562
[ "MIT" ]
null
null
null
from requests.api import get import time import aoc_frame def get_points(data) : points = [] instr = [] flag = True for i in data : if i : if flag : x, y = i.split(',') points.append((int(x), int(y))) else : y = i.split() ...
35.680412
202
0.295868
302
3,461
3.301325
0.225166
0.036108
0.054162
0.044132
0.280843
0.22668
0.19659
0.19659
0.126379
0.074223
0
0.014365
0.376481
3,461
97
203
35.680412
0.447637
0.002023
0
0.2
0
0
0.019775
0
0
0
0
0
0
1
0.057143
false
0
0.042857
0
0.157143
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6b40a5e6597cd6a1c9e7590590b7f7d405479cb2
10,293
py
Python
ansible/my_env/lib/python2.7/site-packages/ansible/modules/storage/netapp/netapp_e_amg.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
1
2019-04-16T21:23:15.000Z
2019-04-16T21:23:15.000Z
ansible/my_env/lib/python2.7/site-packages/ansible/modules/storage/netapp/netapp_e_amg.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
5
2020-02-26T20:10:50.000Z
2021-09-23T23:23:18.000Z
ansible/my_env/lib/python2.7/site-packages/ansible/modules/storage/netapp/netapp_e_amg.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
1
2020-02-13T14:24:57.000Z
2020-02-13T14:24:57.000Z
#!/usr/bin/python # (c) 2016, NetApp, Inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
40.207031
1,031
0.654134
1,132
10,293
5.766784
0.246466
0.018382
0.013787
0.019608
0.344822
0.321691
0.296109
0.282169
0.271752
0.249387
0
0.029246
0.239289
10,293
255
1,032
40.364706
0.80447
0.013019
0
0.295775
0
0.018779
0.481142
0.108124
0
0
0
0
0
1
0.023474
false
0.032864
0.028169
0
0.070423
0.004695
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6b4218a59ce0e0fd96948a346dd495bce6d7ed91
8,047
py
Python
domainmodel/repository.py
TheImaginaryOne/movies-py
a3b601228cde6850919eaf84c0175f5ce3822e2b
[ "MIT" ]
null
null
null
domainmodel/repository.py
TheImaginaryOne/movies-py
a3b601228cde6850919eaf84c0175f5ce3822e2b
[ "MIT" ]
null
null
null
domainmodel/repository.py
TheImaginaryOne/movies-py
a3b601228cde6850919eaf84c0175f5ce3822e2b
[ "MIT" ]
null
null
null
from abc import abstractmethod from sqlalchemy.orm import Session, aliased, selectinload from sqlalchemy.orm.exc import NoResultFound from domainmodel.movie import Movie from domainmodel.director import Director from domainmodel.actor import Actor from domainmodel.genre import Genre from domainmodel.orm import movie_...
30.481061
94
0.583944
951
8,047
4.837014
0.136698
0.022174
0.054783
0.048913
0.332391
0.271087
0.153043
0.059565
0.043478
0.043478
0
0.002357
0.314527
8,047
263
95
30.596958
0.831581
0.046353
0
0.402985
0
0
0
0
0
0
0
0.003802
0
1
0.154229
false
0.079602
0.054726
0.0199
0.38806
0.004975
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
6b433c1bc4fe179c1cbae474b226a6608c5cddf9
471
py
Python
pages/models/page_change.py
kevin-klein/101wiki
8647271c00e8e9d954df2e43ddbf12f5f3d062be
[ "MIT" ]
null
null
null
pages/models/page_change.py
kevin-klein/101wiki
8647271c00e8e9d954df2e43ddbf12f5f3d062be
[ "MIT" ]
1
2020-02-12T00:17:34.000Z
2020-02-12T00:17:34.000Z
pages/models/page_change.py
kevin-klein/101wiki
8647271c00e8e9d954df2e43ddbf12f5f3d062be
[ "MIT" ]
null
null
null
from django.db import models from .page import Page from .user import User class PageChange(models.Model): page = models.ForeignKey(Page) user = models.ForeignKey(User) title = models.CharField(max_length=100) namespace = models.CharField(max_length=100) raw_content = models.TextField() create...
27.705882
56
0.732484
62
471
5.403226
0.5
0.095522
0.107463
0.143284
0.328358
0
0
0
0
0
0
0.015464
0.176221
471
16
57
29.4375
0.847938
0
0
0
0
0
0.025478
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.923077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8610cd2d44bf2a53ad0a694a623725357e3305c2
741
py
Python
jaeger_lab_to_nwb/labviewconverter/labviewconverter.py
ben-dichter-consulting/jaeger-lab-to-nwb
8bcdc65737486547e2a5dbaa65c336a4c5dbe384
[ "BSD-3-Clause" ]
1
2020-07-30T14:58:18.000Z
2020-07-30T14:58:18.000Z
jaeger_lab_to_nwb/labviewconverter/labviewconverter.py
ben-dichter-consulting/jaeger-lab-to-nwb
8bcdc65737486547e2a5dbaa65c336a4c5dbe384
[ "BSD-3-Clause" ]
12
2020-02-18T09:50:43.000Z
2020-03-17T08:19:39.000Z
jaeger_lab_to_nwb/labviewconverter/labviewconverter.py
ben-dichter-consulting/jaeger-lab-data-to-nwb
8bcdc65737486547e2a5dbaa65c336a4c5dbe384
[ "BSD-3-Clause" ]
null
null
null
from nwb_conversion_tools import NWBConverter from nwb_conversion_tools.json_schema_utils import dict_deep_update from .labviewdatainterface import LabviewDataInterface from pathlib import Path import yaml class JaegerLabviewConverter(NWBConverter): data_interface_classes = dict( LabviewDataInterface=Labv...
32.217391
113
0.746289
80
741
6.625
0.5
0.026415
0.064151
0.083019
0
0
0
0
0
0
0
0
0.186235
741
22
114
33.681818
0.878939
0.067476
0
0
0
0
0.046715
0
0
0
0
0
0
1
0.066667
false
0
0.333333
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
861124300e4de50c6eb7cd13f40a936ae0e8e16b
3,052
py
Python
GIM_Tf_v1/main.py
sankalpachowdhury/Candidate_Skill_Assessment_using_Graph_Neural_Network
dfbfdf0d838397ce5976cd80c0260405a269fedc
[ "MIT" ]
1
2022-02-16T19:12:14.000Z
2022-02-16T19:12:14.000Z
GIM_Tf_v1/main.py
sankalpachowdhury/Candidate_Skill_Assessment_using_Graph_Neural_Network
dfbfdf0d838397ce5976cd80c0260405a269fedc
[ "MIT" ]
null
null
null
GIM_Tf_v1/main.py
sankalpachowdhury/Candidate_Skill_Assessment_using_Graph_Neural_Network
dfbfdf0d838397ce5976cd80c0260405a269fedc
[ "MIT" ]
1
2022-02-16T19:12:15.000Z
2022-02-16T19:12:15.000Z
import argparse import time import os import tensorflow as tf import numpy as np from numpy.distutils.fcompiler import str2bool from data_process import * from train import train import json def main(): os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' train_dkt = 1 arg_parser = argparse.ArgumentParser(descrip...
37.219512
111
0.709371
451
3,052
4.54102
0.283814
0.131836
0.164063
0.273438
0.288574
0.216309
0.127441
0.127441
0.040039
0
0
0.022831
0.138925
3,052
81
112
37.679012
0.756469
0.045216
0
0
0
0
0.166781
0.007909
0
0
0
0
0
1
0.016393
false
0
0.147541
0
0.163934
0.032787
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
861168b60961cdd5c53b91ce1bcefee49b4b2177
944
py
Python
Day 32/main.py
Jackson-Miller/python-boot-camp
7633ffeb6935f61f2febda163f2170dd2785d259
[ "MIT" ]
null
null
null
Day 32/main.py
Jackson-Miller/python-boot-camp
7633ffeb6935f61f2febda163f2170dd2785d259
[ "MIT" ]
null
null
null
Day 32/main.py
Jackson-Miller/python-boot-camp
7633ffeb6935f61f2febda163f2170dd2785d259
[ "MIT" ]
null
null
null
import pandas import random import smtplib from datetime import datetime MY_EMAIL = "email" MY_PASSWORD = "" today = datetime.now() today_tuple = (today.month, today.day) data = pandas.read_csv("birthdays.csv") birthdays_dict = {(data_row["month"], data_row["day"]): data_row for (index, data_row) in data.iterrows()...
31.466667
106
0.690678
125
944
5
0.464
0.0448
0.048
0
0
0
0
0
0
0
0
0.00651
0.186441
944
29
107
32.551724
0.807292
0
0
0
0
0
0.149364
0.076271
0
0
0
0
0
1
0
false
0.083333
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
861212512dc825639c0955f5b6c50cbd9535679b
10,765
py
Python
report_manual_send.py
okraaij/automated-shortinterest-email-report
a479d6e3194155acbbcada73ed7f3e76cd490ee0
[ "MIT" ]
null
null
null
report_manual_send.py
okraaij/automated-shortinterest-email-report
a479d6e3194155acbbcada73ed7f3e76cd490ee0
[ "MIT" ]
null
null
null
report_manual_send.py
okraaij/automated-shortinterest-email-report
a479d6e3194155acbbcada73ed7f3e76cd490ee0
[ "MIT" ]
null
null
null
############################## # # # Automated email report # # oliverk1 # # July 2019 # # # ############################## # Import packages import pyodbc, smtplib, time import pandas.io.sql import pandas as pd import numpy a...
44.300412
1,543
0.597678
1,296
10,765
4.92284
0.272377
0.012226
0.007053
0.006897
0.158307
0.102194
0.061129
0.061129
0.053605
0.04326
0
0.013121
0.228333
10,765
242
1,544
44.483471
0.754906
0.134974
0
0.075862
0
0.027586
0.281603
0.010835
0
0
0
0
0
1
0.041379
false
0
0.082759
0
0.131034
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8614314249cbf29816286cc3dcbd83de37e45eb6
1,090
py
Python
tests/test_parser.py
ahartikainen/pysimdjson
badf23fc3e6b6f8f5bcc36495b21651f4e833648
[ "Apache-2.0" ]
null
null
null
tests/test_parser.py
ahartikainen/pysimdjson
badf23fc3e6b6f8f5bcc36495b21651f4e833648
[ "Apache-2.0" ]
null
null
null
tests/test_parser.py
ahartikainen/pysimdjson
badf23fc3e6b6f8f5bcc36495b21651f4e833648
[ "Apache-2.0" ]
null
null
null
import pytest import simdjson def test_load(parser): """Ensure we can load from disk.""" with pytest.raises(ValueError): parser.load('jsonexamples/invalid.json') doc = parser.load("jsonexamples/small/demo.json") doc.at_pointer('/Image/Width') def test_parse(parser): """Ensure we can lo...
28.684211
77
0.69633
135
1,090
5.540741
0.474074
0.037433
0.044118
0.045455
0.152406
0.066845
0
0
0
0
0
0.001125
0.184404
1,090
37
78
29.459459
0.84027
0.322936
0
0.111111
0
0
0.233894
0.145658
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8614b947fe5f2315ef99b6424b04bb9617813b36
3,210
py
Python
src/msbdata/fetch_msbdata.py
flucto-gmbh/SAAFOWE
66cbe7c7eb46d837bd89a4bb5551b0540e9d3978
[ "MIT" ]
null
null
null
src/msbdata/fetch_msbdata.py
flucto-gmbh/SAAFOWE
66cbe7c7eb46d837bd89a4bb5551b0540e9d3978
[ "MIT" ]
null
null
null
src/msbdata/fetch_msbdata.py
flucto-gmbh/SAAFOWE
66cbe7c7eb46d837bd89a4bb5551b0540e9d3978
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse from config import REMOTE_SERVER, MSB_LIST, MSB_LOCAL_DATA_DIR from datetime import datetime, timezone # import fabric import os import sys import time from msbdata import fetch_remote_datafile_paths, extract_timestamp_fpath from msbhosts import assemble_hosts from msbtimes impo...
33.092784
122
0.647352
402
3,210
4.945274
0.340796
0.077465
0.04829
0.080483
0.103622
0.055332
0.055332
0.055332
0.055332
0.055332
0
0.006216
0.248287
3,210
96
123
33.4375
0.817654
0.034268
0
0.253012
0
0.012048
0.224806
0.006783
0
0
0
0.010417
0.024096
1
0.024096
false
0
0.120482
0
0.156627
0.084337
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
861a98075ae311b781e12a519daee452fdccf778
538
py
Python
scripts/paster.py
openminted/galaxy
bd2147cccf814f8cec93372973b5e6ada4668a80
[ "CC-BY-3.0" ]
1
2021-04-26T08:46:21.000Z
2021-04-26T08:46:21.000Z
scripts/paster.py
openminted/galaxy
bd2147cccf814f8cec93372973b5e6ada4668a80
[ "CC-BY-3.0" ]
null
null
null
scripts/paster.py
openminted/galaxy
bd2147cccf814f8cec93372973b5e6ada4668a80
[ "CC-BY-3.0" ]
1
2018-12-09T13:50:28.000Z
2018-12-09T13:50:28.000Z
""" Bootstrap the Galaxy framework. This should not be called directly! Use the run.sh script in Galaxy's top level directly. """ import os import sys sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'lib'))) from galaxy.util.pastescript import serve from check_python import ch...
19.925926
94
0.739777
82
538
4.719512
0.597561
0.046512
0
0
0
0
0
0
0
0
0
0.011038
0.157993
538
26
95
20.692308
0.843267
0.297398
0
0
0
0
0.04336
0
0
0
0
0
0
1
0
false
0
0.384615
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
861cacce5e3eadce5ecd4dae7acef043b40804ca
620
py
Python
runner/action/feature/feature_discrete.py
PC-Trip/runner
e13291e25a2bc2962523a1de2d13725609497cb5
[ "MIT" ]
null
null
null
runner/action/feature/feature_discrete.py
PC-Trip/runner
e13291e25a2bc2962523a1de2d13725609497cb5
[ "MIT" ]
null
null
null
runner/action/feature/feature_discrete.py
PC-Trip/runner
e13291e25a2bc2962523a1de2d13725609497cb5
[ "MIT" ]
null
null
null
from runner.action.feature.feature import Feature from runner.action.set.discrete import Discrete class FeatureDiscrete(Feature): """Discrete feature Alias for Feature with set.Discrete first sub action Args: low (float): low boundary high (float): high boundary num (int): number...
29.52381
75
0.643548
82
620
4.756098
0.5
0.051282
0.082051
0
0
0
0
0
0
0
0
0.010417
0.225806
620
20
76
31
0.802083
0.346774
0
0
0
0
0.037838
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
862473b91da3d1a7903341f9b4dd768a1f7c0d3b
19,410
py
Python
jasmin/vendor/smpp/pdu/constants.py
MessageCloud/jasmin
bf4338f8dbf4cdab0a72babb11dd49546ae1c7c2
[ "Apache-2.0" ]
null
null
null
jasmin/vendor/smpp/pdu/constants.py
MessageCloud/jasmin
bf4338f8dbf4cdab0a72babb11dd49546ae1c7c2
[ "Apache-2.0" ]
null
null
null
jasmin/vendor/smpp/pdu/constants.py
MessageCloud/jasmin
bf4338f8dbf4cdab0a72babb11dd49546ae1c7c2
[ "Apache-2.0" ]
null
null
null
""" Copyright 2009-2010 Mozes, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
30
113
0.645389
2,142
19,410
5.53408
0.284314
0.045892
0.026152
0.031382
0.185676
0.126033
0.111186
0.090518
0.090518
0.073393
0
0.096652
0.222823
19,410
646
114
30.04644
0.689161
0.009583
0
0.011966
0
0
0.37981
0.058532
0
0
0.055783
0
0
0
null
null
0.003419
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8625ce0714ba6308e898e3f9d2bd671c7e1c7644
3,590
py
Python
Github/my_drawing/bouncing_ball.py
ZachhHsu/Stancode_SC101_project
be2742097b149d96257fc94946d0a0fea7a63c77
[ "MIT" ]
null
null
null
Github/my_drawing/bouncing_ball.py
ZachhHsu/Stancode_SC101_project
be2742097b149d96257fc94946d0a0fea7a63c77
[ "MIT" ]
null
null
null
Github/my_drawing/bouncing_ball.py
ZachhHsu/Stancode_SC101_project
be2742097b149d96257fc94946d0a0fea7a63c77
[ "MIT" ]
null
null
null
""" File: bouncing_ball.py Name: Zach Hsu ------------------------- TODO: This program simulates trajectory of a bouncing ball based on the given velocity and gravity. Users have only three times to initiate the bounce by clicking the mouse. If the ball moves beyond the right border of the window, it ...
56.09375
121
0.48468
372
3,590
4.615591
0.38172
0.032615
0.015725
0.040186
0.046593
0.016308
0
0
0
0
0
0.013563
0.466017
3,590
63
122
56.984127
0.882107
0.388022
0
0
0
0
0.013936
0
0
0
0
0.015873
0
1
0.054054
false
0
0.108108
0
0.189189
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
86262aaee102ad0c670a9d9dd9280a30d7ecf881
7,697
py
Python
python/paddle/fluid/tests/unittests/ir/inference/test_fc_fuse_pass.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/fluid/tests/unittests/ir/inference/test_fc_fuse_pass.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/ir/inference/test_fc_fuse_pass.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
1
2021-12-09T08:59:17.000Z
2021-12-09T08:59:17.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
38.873737
102
0.593738
1,008
7,697
4.285714
0.256944
0.022222
0.037037
0.028009
0.233102
0.18125
0.163657
0.12662
0.081019
0.063426
0
0.017029
0.313369
7,697
197
103
39.071066
0.800378
0.247759
0
0.12782
0
0
0.060717
0
0
0
0
0.005076
0
1
0.052632
false
0.06015
0.075188
0
0.18797
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
862899eca850655e7f8e7a675c72ed15ee4c609f
6,745
py
Python
biolinkml/generators/jsonldcontextgen.py
hsolbrig/biolinkml
e93cfd547800beec897dd3d03c277b3b1eabe78a
[ "CC0-1.0" ]
null
null
null
biolinkml/generators/jsonldcontextgen.py
hsolbrig/biolinkml
e93cfd547800beec897dd3d03c277b3b1eabe78a
[ "CC0-1.0" ]
null
null
null
biolinkml/generators/jsonldcontextgen.py
hsolbrig/biolinkml
e93cfd547800beec897dd3d03c277b3b1eabe78a
[ "CC0-1.0" ]
null
null
null
""" Generate JSON-LD contexts """ import logging import os from typing import Union, TextIO, Set, Optional import click from jsonasobj import JsonObj, as_json from rdflib import XSD from biolinkml.meta import SchemaDefinition, ClassDefinition, SlotDefinition, Definition, Element from biolinkml.utils.formatutils impo...
39.444444
128
0.60593
812
6,745
4.869458
0.232759
0.040465
0.02959
0.023268
0.100658
0.054628
0.054628
0.038442
0.025291
0.025291
0
0.001043
0.289548
6,745
170
129
39.676471
0.824082
0.07487
0
0.11194
1
0.007463
0.103957
0.021246
0
0
0
0
0
1
0.067164
false
0.007463
0.074627
0
0.19403
0.014925
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
862986a2147f080a6dd46cf91777fbfd34fb5706
905
py
Python
MyWebPJ/MyApp/views.py
Z1Park/django
8f022b07e704f6533e5ef95449502cead79885ed
[ "MIT" ]
null
null
null
MyWebPJ/MyApp/views.py
Z1Park/django
8f022b07e704f6533e5ef95449502cead79885ed
[ "MIT" ]
null
null
null
MyWebPJ/MyApp/views.py
Z1Park/django
8f022b07e704f6533e5ef95449502cead79885ed
[ "MIT" ]
null
null
null
from django.shortcuts import render from .models import Question from .forms import SignUpForm # Create your views here. def home(request): ''' Question 출력 ''' question_list = Question.objects.order_by('-create_date') # create_date 의 역순(-) context = {'question_list':question_list} return re...
31.206897
104
0.675138
107
905
5.523364
0.457944
0.101523
0.096447
0.091371
0.111675
0
0
0
0
0
0
0
0.20884
905
29
105
31.206897
0.825419
0.061878
0
0
0
0
0.135654
0.034814
0
0
0
0
0
1
0.111111
false
0.055556
0.166667
0
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
0
0
1
0
0
0
0
0
1
862cc8a0c60433e764da203eee2df7515aa23151
892
py
Python
BreadthFirstSearch.py
sicatpaolo/Random_Scripts
fdfba427ba1fc8dcf128481e6356b8873d7c5114
[ "MIT" ]
1
2021-07-15T03:06:15.000Z
2021-07-15T03:06:15.000Z
BreadthFirstSearch.py
sicatpaolo/Random_Scripts
fdfba427ba1fc8dcf128481e6356b8873d7c5114
[ "MIT" ]
null
null
null
BreadthFirstSearch.py
sicatpaolo/Random_Scripts
fdfba427ba1fc8dcf128481e6356b8873d7c5114
[ "MIT" ]
1
2021-07-15T03:06:18.000Z
2021-07-15T03:06:18.000Z
def path_exists(G, node1, node2): """ This function checks whether a path exists between two nodes (node1, node2) in graph G. Solution to the task from datacamp: Introduction to Network Analysis in Python """ visited_nodes = set() queue = [node1] for node in queue: neighbors = lis...
34.307692
91
0.607623
120
892
4.483333
0.508333
0.074349
0.063197
0.05948
0.122677
0.122677
0.122677
0.122677
0
0
0
0.02447
0.31278
892
25
92
35.68
0.853181
0.11435
0
0
0
0
0.136439
0
0
0
0
0
0
0
null
null
0
0
null
null
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
863381a930bfdd3e06d1383c929b87d6c35be437
297
py
Python
test.py
Landers1037/mgekdown
da152de1a73a9c9c7d70362c38a7056fbd8fb25c
[ "MIT" ]
null
null
null
test.py
Landers1037/mgekdown
da152de1a73a9c9c7d70362c38a7056fbd8fb25c
[ "MIT" ]
null
null
null
test.py
Landers1037/mgekdown
da152de1a73a9c9c7d70362c38a7056fbd8fb25c
[ "MIT" ]
null
null
null
from mgekdown import Mgekdown if __name__ == '__main__': m = Mgekdown() # print(m.filelist('post')) # print(m.read('post/weixinqrcode.md')) txt = m.read('post/weixinqrcode.md') # print(m.title(txt)) # print(m.content(txt)) print(m.abstract(txt))
29.7
46
0.579125
37
297
4.432432
0.459459
0.182927
0.109756
0.256098
0.280488
0
0
0
0
0
0
0
0.249158
297
10
47
29.7
0.735426
0.353535
0
0
0
0
0.156425
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8634b4bbe27a92fd1d0c39e18ba6506fc75da048
617
py
Python
nuro_arm/examples/cube_pose_estimation.py
tw-ilson/nuro-arm
48bbe244b814cf74c44af819b738c2349eb674b9
[ "MIT" ]
null
null
null
nuro_arm/examples/cube_pose_estimation.py
tw-ilson/nuro-arm
48bbe244b814cf74c44af819b738c2349eb674b9
[ "MIT" ]
null
null
null
nuro_arm/examples/cube_pose_estimation.py
tw-ilson/nuro-arm
48bbe244b814cf74c44af819b738c2349eb674b9
[ "MIT" ]
null
null
null
import numpy as np import time from nuro_arm.robot.robot_arm import RobotArm from nuro_arm.camera.camera import Camera from nuro_arm.cube import Cube from nuro_arm.camera import camera_utils xarm = RobotArm(headless=False) xarm.mirror_planner() camera = Camera(free_floating=False) # create cube cube = Cube(pos=(0,0...
22.035714
86
0.735818
97
617
4.484536
0.463918
0.073563
0.101149
0.078161
0
0
0
0
0
0
0
0.021277
0.162075
617
27
87
22.851852
0.820116
0.017828
0
0.1
0
0
0
0
0
0
0
0
0
1
0
false
0.1
0.3
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8637d27fa89e08b1d8e3302b9ac28265984d4669
8,527
py
Python
gyroid/util.py
liuyxpp/liuyxpp-gyroid
7db91cb140869760124a66239773822bc2cd4e44
[ "BSD-3-Clause" ]
2
2020-09-15T13:47:53.000Z
2021-08-18T18:28:46.000Z
gyroid/util.py
liuyxpp/liuyxpp-gyroid
7db91cb140869760124a66239773822bc2cd4e44
[ "BSD-3-Clause" ]
1
2020-11-20T09:37:42.000Z
2020-11-20T09:37:42.000Z
gyroid/util.py
liuyxpp/liuyxpp-gyroid
7db91cb140869760124a66239773822bc2cd4e44
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ gyroid.util =========== """ import numpy as np import scipy.io import matplotlib.pyplot as plt from matplotlib import colors from mayavi import mlab from .unitcell import UnitCell from .group import Group from .grid import Grid from .basis import Basis __all__ = [ "render_structure_1...
35.827731
114
0.59681
1,294
8,527
3.799073
0.152241
0.031326
0.009764
0.018308
0.683076
0.634459
0.607201
0.602319
0.576688
0.523393
0
0.011405
0.290489
8,527
237
115
35.978903
0.801157
0.068488
0
0.275591
0
0
0.048939
0
0
0
0
0
0
0
null
null
0
0.070866
null
null
0.023622
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8639ad41c83abe31102908ac93702eb3fef6e490
1,184
py
Python
src/cocoa/toga_cocoa/widgets/selection.py
luizoti/toga
3c49e685f325f1aba2ce048b253402d7e4519f97
[ "BSD-3-Clause" ]
1,261
2019-03-31T16:28:47.000Z
2022-03-31T09:01:23.000Z
src/cocoa/toga_cocoa/widgets/selection.py
luizoti/toga
3c49e685f325f1aba2ce048b253402d7e4519f97
[ "BSD-3-Clause" ]
597
2019-04-02T20:02:42.000Z
2022-03-30T10:28:47.000Z
src/cocoa/toga_cocoa/widgets/selection.py
luizoti/toga
3c49e685f325f1aba2ce048b253402d7e4519f97
[ "BSD-3-Clause" ]
318
2019-03-31T18:32:00.000Z
2022-03-30T18:07:13.000Z
from travertino.size import at_least from toga_cocoa.libs import SEL, NSPopUpButton, objc_method from .base import Widget class TogaPopupButton(NSPopUpButton): @objc_method def onSelect_(self, obj) -> None: if self.interface.on_select: self.interface.on_select(self.interface) class Sel...
26.909091
100
0.694257
141
1,184
5.680851
0.411348
0.124844
0.044944
0.052434
0.123596
0.068664
0
0
0
0
0
0
0.208615
1,184
43
101
27.534884
0.854856
0
0
0
0
0
0.007601
0
0
0
0
0
0
1
0.275862
false
0.034483
0.103448
0.034483
0.482759
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
86414db62ac24c5e610c4c26ce3d19dd44aa8d50
4,449
py
Python
protocol.py
piazentin/neural-cryptography
c50e00dfe7fe880819bdde182f604e3f99f805f4
[ "MIT" ]
1
2022-01-21T14:03:34.000Z
2022-01-21T14:03:34.000Z
protocol.py
piazentin/neural-cryptography
c50e00dfe7fe880819bdde182f604e3f99f805f4
[ "MIT" ]
null
null
null
protocol.py
piazentin/neural-cryptography
c50e00dfe7fe880819bdde182f604e3f99f805f4
[ "MIT" ]
1
2018-08-29T08:46:36.000Z
2018-08-29T08:46:36.000Z
from twisted.internet.protocol import Protocol from twisted.internet.protocol import Factory from twisted.internet.endpoints import TCP4ServerEndpoint from twisted.internet import reactor from Crypto.Cipher import AES from Crypto.Hash import SHA256 from threading import Thread from tpm import * import json import base6...
30.682759
80
0.635424
562
4,449
4.882562
0.19573
0.038265
0.052478
0.06414
0.418367
0.385933
0.32398
0.258017
0.228863
0.228863
0
0.015445
0.257811
4,449
144
81
30.895833
0.815566
0.01933
0
0.294118
0
0
0.002523
0
0
0
0
0
0
0
null
null
0
0.084034
null
null
0.016807
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
864227c681c8a7ed88bac33f346e3049a6abe435
1,383
py
Python
omtool/core/creation/snapshot_builder.py
Kraysent/OMTool
abb293ee359720d622ed0c4ecdf90967171007c8
[ "Apache-2.0" ]
null
null
null
omtool/core/creation/snapshot_builder.py
Kraysent/OMTool
abb293ee359720d622ed0c4ecdf90967171007c8
[ "Apache-2.0" ]
51
2021-12-05T13:31:51.000Z
2022-03-27T16:05:04.000Z
omtool/core/creation/snapshot_builder.py
Kraysent/OMTool
abb293ee359720d622ed0c4ecdf90967171007c8
[ "Apache-2.0" ]
null
null
null
''' Builder for the snapshot from smaller snapshots. ''' from amuse.datamodel.particles import Particles from amuse.lab import units from amuse.units.quantities import VectorQuantity from omtool.core.datamodel import Snapshot class SnapshotBuilder: ''' Builder for the snapshot from smaller snapshots. ''' ...
27.66
68
0.639913
153
1,383
5.69281
0.339869
0.137773
0.068886
0.04822
0.220436
0.16992
0.094145
0
0
0
0
0.006883
0.264642
1,383
49
69
28.22449
0.849558
0.196674
0
0.086957
0
0
0
0
0
0
0
0
0
1
0.217391
false
0
0.173913
0
0.478261
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8645bb2a7d2a7c87fe5a6b8e5731ccc3ebb64c56
1,664
py
Python
download_images.py
cmoresid/yeg-city-archive-scrapper
46d8255a9542acba6af9d44f1a1e7180e8d176c4
[ "Apache-2.0" ]
null
null
null
download_images.py
cmoresid/yeg-city-archive-scrapper
46d8255a9542acba6af9d44f1a1e7180e8d176c4
[ "Apache-2.0" ]
null
null
null
download_images.py
cmoresid/yeg-city-archive-scrapper
46d8255a9542acba6af9d44f1a1e7180e8d176c4
[ "Apache-2.0" ]
null
null
null
import csv import os import os.path import requests import ssl from requests.adapters import HTTPAdapter from requests.packages.urllib3.poolmanager import PoolManager CRAWLER_OUTPUT = 'data/yeg_city_archive.csv' OUTPUT_DIRECTORY = 'data/imgs' class SSLErrorAdaptor(HTTPAdapter): """ Used to bypass an issue wi...
28.689655
102
0.64363
197
1,664
5.269036
0.497462
0.023121
0.049133
0.034682
0
0
0
0
0
0
0
0.001617
0.256611
1,664
57
103
29.192982
0.83751
0.021635
0
0
0
0
0.142857
0.016088
0
0
0
0
0
0
null
null
0
0.184211
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
0
0
0
0
0
0
1
864fd0c220eb561ed1220b03268f46ab554dbf66
480
py
Python
src/python/nimbusml/internal/entrypoints/_ensemblebinarydiversitymeasure_disagreementdiversitymeasure.py
michaelgsharp/NimbusML
50031157265f49eec85d27fe67582d9ddaf01ef9
[ "MIT" ]
134
2018-11-01T22:15:24.000Z
2019-05-04T11:30:08.000Z
src/python/nimbusml/internal/entrypoints/_ensemblebinarydiversitymeasure_disagreementdiversitymeasure.py
michaelgsharp/NimbusML
50031157265f49eec85d27fe67582d9ddaf01ef9
[ "MIT" ]
226
2019-05-07T19:00:44.000Z
2021-01-06T07:59:48.000Z
src/python/nimbusml/internal/entrypoints/_ensemblebinarydiversitymeasure_disagreementdiversitymeasure.py
michaelgsharp/NimbusML
50031157265f49eec85d27fe67582d9ddaf01ef9
[ "MIT" ]
43
2019-05-15T20:19:42.000Z
2022-03-30T10:26:07.000Z
# - Generated by tools/entrypoint_compiler.py: do not edit by hand """ DisagreementDiversityMeasure """ from ..utils.entrypoints import Component def disagreement_diversity_measure( **params): """ **Description** None """ entrypoint_name = 'DisagreementDiversityMeasure' setting...
18.461538
66
0.670833
39
480
8.128205
0.717949
0.088328
0
0
0
0
0
0
0
0
0
0
0.235417
480
25
67
19.2
0.86376
0.247917
0
0
1
0
0.174174
0.174174
0
0
0
0
0
1
0.1
false
0
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
865015bc54040ad30c7cf0bf012fe7356186b44b
1,226
py
Python
vip/models.py
rayhu-osu/vcube
ff1af048adb8a9f1007368150a78b309b4d821af
[ "MIT" ]
1
2019-02-20T18:47:04.000Z
2019-02-20T18:47:04.000Z
vip/models.py
rayhu-osu/vcube
ff1af048adb8a9f1007368150a78b309b4d821af
[ "MIT" ]
null
null
null
vip/models.py
rayhu-osu/vcube
ff1af048adb8a9f1007368150a78b309b4d821af
[ "MIT" ]
null
null
null
from django.db import models from vendor.models import Store class Category(models.Model): BEAUTY = 'Beauty and Health' CLOTHING = 'Clothing' ELECTRONIC = 'Electronics' FOOD = 'Food and Drinks' GROCERY = 'Grocery' HOME = 'Home' CATEGORY_CHOICES = ( (BEAUTY, 'Beauty and Health')...
33.135135
74
0.66721
142
1,226
5.619718
0.422535
0.056391
0.067669
0.090226
0.531328
0.531328
0.393484
0.393484
0.393484
0.393484
0
0.012358
0.207993
1,226
36
75
34.055556
0.809475
0.00571
0
0.2
0
0
0.109465
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0.066667
0.866667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8651c8413e9052fa2001dd050fa16d48fdddffd2
2,991
py
Python
test/orchestrate/cluster_metadata/service_test.py
emattia/sigopt-python
e6b4e5240261ddbdc84a3b4061b8935873612c23
[ "MIT" ]
67
2015-03-01T02:16:47.000Z
2021-05-10T16:17:21.000Z
test/orchestrate/cluster_metadata/service_test.py
emattia/sigopt-python
e6b4e5240261ddbdc84a3b4061b8935873612c23
[ "MIT" ]
150
2015-10-22T21:59:37.000Z
2022-03-10T00:55:19.000Z
test/orchestrate/cluster_metadata/service_test.py
emattia/sigopt-python
e6b4e5240261ddbdc84a3b4061b8935873612c23
[ "MIT" ]
19
2016-07-10T03:46:33.000Z
2022-02-05T12:13:01.000Z
import pytest from mock import Mock from sigopt.orchestrate.common import TemporaryDirectory from sigopt.orchestrate.cluster.object import AWSCluster from sigopt.orchestrate.cluster_metadata.errors import * from sigopt.orchestrate.cluster_metadata.service import ClusterMetadataService from sigopt.orchestrate.custom_cl...
34.77907
118
0.765965
321
2,991
6.816199
0.186916
0.150823
0.211152
0.054845
0.426417
0.39351
0.31947
0.31947
0.31947
0.31947
0
0
0.168506
2,991
85
119
35.188235
0.879775
0.010699
0
0.25
0
0
0.012851
0
0
0
0
0
0.029412
1
0.102941
false
0
0.117647
0.014706
0.308824
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8654e0a1c3ebe689114075c5010eefbbae503d2b
2,690
py
Python
gastarme/users/tests/test_views.py
rafaeltardivo/gastarme
7e97e611118ab61885f5088a0df7ab1792b71e6e
[ "MIT" ]
null
null
null
gastarme/users/tests/test_views.py
rafaeltardivo/gastarme
7e97e611118ab61885f5088a0df7ab1792b71e6e
[ "MIT" ]
null
null
null
gastarme/users/tests/test_views.py
rafaeltardivo/gastarme
7e97e611118ab61885f5088a0df7ab1792b71e6e
[ "MIT" ]
null
null
null
from unittest.mock import patch from django.urls import reverse from rest_framework import test, status from users.models import User from users.tests.factories import UserFactory class TestUserView(test.APITransactionTestCase): """Test cases for the user view.""" def test_user_resource_url(self): ...
30.568182
78
0.580669
269
2,690
5.643123
0.249071
0.098814
0.057971
0.057971
0.619895
0.539526
0.433465
0.383399
0.355072
0.320817
0
0.018085
0.301115
2,690
87
79
30.91954
0.789362
0.010781
0
0.414286
0
0
0.146893
0.00791
0
0
0
0
0.171429
1
0.085714
false
0.057143
0.071429
0
0.171429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1