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
e6e519c34806df836f150fb2649703603da92026
1,580
py
Python
src/users/migrations/0014_auto_20200801_1008.py
aliharby12/Simple-vezeeta-project
feb6df8b354ac284edc645059bea17021169dcfa
[ "MIT" ]
null
null
null
src/users/migrations/0014_auto_20200801_1008.py
aliharby12/Simple-vezeeta-project
feb6df8b354ac284edc645059bea17021169dcfa
[ "MIT" ]
5
2021-03-19T12:06:16.000Z
2022-02-10T11:44:27.000Z
src/users/migrations/0014_auto_20200801_1008.py
aliharby12/Simple-vezeeta-project
feb6df8b354ac284edc645059bea17021169dcfa
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2020-08-01 08:08 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('users', '0013_auto_20200731_1810'), ] operations = [ migrations.AlterField( model_name='profile',...
49.375
444
0.599367
171
1,580
5.421053
0.54386
0.059331
0.030205
0.047465
0.049622
0
0
0
0
0
0
0.031733
0.222152
1,580
31
445
50.967742
0.722539
0.027215
0
0.08
1
0
0.246906
0.014984
0
0
0
0
0
1
0
false
0
0.08
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e6e54d8b26245cebf1276442b433cc49edf1fc78
762
py
Python
caller_v3/app/api/v1/docker.py
tienthegainz/pipeline_executor_docker_call
b2b9478056e4b818f5963b0b266375fe6d39627a
[ "MIT" ]
null
null
null
caller_v3/app/api/v1/docker.py
tienthegainz/pipeline_executor_docker_call
b2b9478056e4b818f5963b0b266375fe6d39627a
[ "MIT" ]
null
null
null
caller_v3/app/api/v1/docker.py
tienthegainz/pipeline_executor_docker_call
b2b9478056e4b818f5963b0b266375fe6d39627a
[ "MIT" ]
null
null
null
from typing import Any, List, Callable from fastapi import APIRouter, HTTPException, status, BackgroundTasks from app import schemas from app.core import docker_client import json from copy import deepcopy router = APIRouter() @router.get("/images", response_model=schemas.DockerImageRespond) def get_docker_image(...
28.222222
99
0.732283
100
762
5.43
0.4
0.066298
0.073665
0
0
0
0
0
0
0
0
0
0.153543
762
26
100
29.307692
0.84186
0
0
0.105263
0
0
0.052493
0
0
0
0
0
0
1
0.105263
false
0
0.315789
0
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e6e829827c4e2ffcbb07be400f025860fb9ae813
10,409
py
Python
keras/models.py
kalyc/keras-apache-mxnet
5497ebd50a45ccc446b8944ebbe11fb7721a5533
[ "MIT" ]
300
2018-04-04T05:01:21.000Z
2022-02-25T18:56:04.000Z
keras/models.py
kalyc/keras-apache-mxnet
5497ebd50a45ccc446b8944ebbe11fb7721a5533
[ "MIT" ]
163
2018-04-03T17:41:22.000Z
2021-09-03T16:44:04.000Z
keras/models.py
kalyc/keras-apache-mxnet
5497ebd50a45ccc446b8944ebbe11fb7721a5533
[ "MIT" ]
72
2018-04-21T06:42:30.000Z
2021-12-26T06:02:42.000Z
"""Model-related utilities. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from . import backend as K from .utils.generic_utils import has_arg from .utils.generic_utils import to_list from .engine.input_layer import Input from .engine.input_layer import...
41.142292
77
0.593525
1,202
10,409
4.941764
0.155574
0.072727
0.022896
0.022222
0.524916
0.428283
0.369697
0.341751
0.334848
0.304882
0
0.001893
0.340186
10,409
252
78
41.305556
0.862988
0.265539
0
0.176471
0
0
0.07296
0
0
0
0
0
0.006536
1
0.026144
false
0
0.117647
0.006536
0.189542
0.006536
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6e833fb51a1ec7a1130669c82455b2f1f57a22e
53,602
py
Python
pythonFiles/tests/testing_tools/adapter/test_functional.py
erinxocon/vscode-python
e53f9061d16467a9ae2d8995a9a5f3cfa0f444e1
[ "MIT" ]
null
null
null
pythonFiles/tests/testing_tools/adapter/test_functional.py
erinxocon/vscode-python
e53f9061d16467a9ae2d8995a9a5f3cfa0f444e1
[ "MIT" ]
null
null
null
pythonFiles/tests/testing_tools/adapter/test_functional.py
erinxocon/vscode-python
e53f9061d16467a9ae2d8995a9a5f3cfa0f444e1
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from __future__ import unicode_literals import json import os import os.path import subprocess import sys import unittest import pytest from ...__main__ import TESTING_TOOLS_ROOT CWD = os.getcwd() DATA_DIR = os.path.join...
43.828291
96
0.491605
5,793
53,602
4.257034
0.047989
0.132274
0.218969
0.242002
0.89084
0.857751
0.829691
0.792141
0.750253
0.719517
0
0.02468
0.315902
53,602
1,222
97
43.864157
0.64785
0.007817
0
0.467372
0
0
0.434642
0.293534
0
0
0
0.000818
0.004409
1
0.0097
false
0
0.007937
0.000882
0.025573
0.001764
0
0
0
null
0
1
1
1
1
1
1
1
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
8
e6e86dd990b3c5cac611e5ac9c031855b2eafefb
2,223
py
Python
mmgp/kernels/wavelet_slice.py
axdahl/SC-MMGP
c6cd9d9de66bb7074925a4b6485f10a74bdd9f68
[ "Apache-2.0" ]
null
null
null
mmgp/kernels/wavelet_slice.py
axdahl/SC-MMGP
c6cd9d9de66bb7074925a4b6485f10a74bdd9f68
[ "Apache-2.0" ]
null
null
null
mmgp/kernels/wavelet_slice.py
axdahl/SC-MMGP
c6cd9d9de66bb7074925a4b6485f10a74bdd9f68
[ "Apache-2.0" ]
null
null
null
''' Wavelet kernel slice allows kernel operation on feature subset active_dims is iterable of feature dimensions to extract input_dim must equal dimension defined by active_dims ''' import numpy as np import tensorflow as tf from .. import util from . import kernel from .kernel_extras import * class WaveletSlice(ke...
34.734375
113
0.597391
322
2,223
4.034161
0.254658
0.026944
0.04234
0.046189
0.301001
0.227098
0.17398
0.17398
0.17398
0.17398
0
0.043452
0.264957
2,223
63
114
35.285714
0.75153
0.141251
0
0.102564
0
0
0.003692
0
0
0
0
0
0
1
0.153846
false
0
0.128205
0.076923
0.435897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6e91782ecbf3d082de6c4e80c1d94b9a36175e3
8,084
py
Python
transform.py
latenite4/python3
30e367471ba48e5fc0fb07327b636fcb9959e3e0
[ "Apache-2.0" ]
null
null
null
transform.py
latenite4/python3
30e367471ba48e5fc0fb07327b636fcb9959e3e0
[ "Apache-2.0" ]
null
null
null
transform.py
latenite4/python3
30e367471ba48e5fc0fb07327b636fcb9959e3e0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 #program to parse png images and change images # cmd: python3 transform.py # you must have local input/ and output/ directories # # name: R. Melton # date: 12/27/20 # cmdline: python transform.py cmd show image='city.png' --ulx=1 --uly=2 --brx=0 --bry=9 # python transform.py show city.png #...
35.30131
162
0.671326
1,317
8,084
3.951405
0.191344
0.032283
0.037471
0.026902
0.410454
0.342813
0.307264
0.293428
0.285742
0.259224
0
0.017413
0.204354
8,084
229
163
35.30131
0.791667
0.336838
0
0.384
0
0
0.130246
0
0
0
0
0
0
1
0.072
false
0
0.048
0
0.168
0.112
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6e98c6da8123831026901d34d51a2a66f9be3c8
4,563
py
Python
plugins/wyr.py
Jeglet/pcbot
89178d4982151adb2fadfacdc3080e46cda9e891
[ "MIT" ]
null
null
null
plugins/wyr.py
Jeglet/pcbot
89178d4982151adb2fadfacdc3080e46cda9e891
[ "MIT" ]
null
null
null
plugins/wyr.py
Jeglet/pcbot
89178d4982151adb2fadfacdc3080e46cda9e891
[ "MIT" ]
null
null
null
""" Would you rather? This plugin includes would you rather functionality """ import asyncio import random import re import discord import bot import plugins from pcbot import Config client = plugins.client # type: bot.Client db = Config("would-you-rather", data=dict(timeout=10, responses=["**{name}** would **{cho...
34.308271
114
0.601359
585
4,563
4.676923
0.31453
0.015351
0.030702
0.046053
0.035088
0
0
0
0
0
0
0.008732
0.272189
4,563
132
115
34.568182
0.815116
0.150121
0
0.1375
0
0
0.154236
0.008725
0
0
0
0
0.05
1
0.025
false
0
0.0875
0.0125
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6e9911a23d6bd5acc93e8e6fe7c90d813721358
5,690
py
Python
suit_tool/argparser.py
bergzand/suit-manifest-generator
da82651a8b02fd4d7261e826cc70b5c862dd94ea
[ "Apache-2.0" ]
16
2018-03-16T23:56:47.000Z
2022-01-23T14:14:09.000Z
suit_tool/argparser.py
bergzand/suit-manifest-generator
da82651a8b02fd4d7261e826cc70b5c862dd94ea
[ "Apache-2.0" ]
23
2018-06-05T14:30:23.000Z
2021-02-15T20:53:09.000Z
suit_tool/argparser.py
bergzand/suit-manifest-generator
da82651a8b02fd4d7261e826cc70b5c862dd94ea
[ "Apache-2.0" ]
10
2018-03-16T23:56:52.000Z
2020-07-21T16:36:46.000Z
# -*- coding: utf-8 -*- # ---------------------------------------------------------------------------- # Copyright 2019-2020 ARM Limited or its affiliates # # SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the...
55.784314
142
0.649561
737
5,690
4.884668
0.290366
0.065
0.118056
0.070278
0.273889
0.253056
0.235833
0.216944
0.216944
0.216944
0
0.005869
0.161511
5,690
101
143
56.336634
0.74869
0.168541
0
0
0
0.016393
0.252071
0.007008
0
0
0
0
0
1
0.065574
false
0
0.098361
0
0.229508
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6e9b0500db4a76f7cfddf89a8acd023b1673bdb
437
py
Python
python/process/process_pool.py
y2ghost/study
c5278611b0a732fe19e3d805c0c079e530b1d3b2
[ "MIT" ]
null
null
null
python/process/process_pool.py
y2ghost/study
c5278611b0a732fe19e3d805c0c079e530b1d3b2
[ "MIT" ]
null
null
null
python/process/process_pool.py
y2ghost/study
c5278611b0a732fe19e3d805c0c079e530b1d3b2
[ "MIT" ]
null
null
null
import random import time from multiprocessing import Pool def worker(name: str) -> None: print(f'Started worker {name}') worker_time = random.choice(range(1, 5)) time.sleep(worker_time) print(f'{name} worker finished in {worker_time} seconds') if __name__ == '__main__': process_names = [f'compu...
24.277778
61
0.686499
62
437
4.612903
0.532258
0.104895
0
0
0
0
0
0
0
0
0
0.014045
0.185355
437
17
62
25.705882
0.789326
0.036613
0
0
0
0
0.210024
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.333333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6e9e879bcf76ce5cfbee781823873ae94cc9222
45,541
py
Python
Project/Support-NotSourced/generic_pydicom_ns.py
mazalgarab-git/OSICpypy
003fb0b146c9ed711f05475e6cc7563bf549f230
[ "CC0-1.0" ]
1
2020-12-18T14:39:24.000Z
2020-12-18T14:39:24.000Z
Project/Support-NotSourced/generic_pydicom_ns.py
mazalgarab-git/OSICpypy
003fb0b146c9ed711f05475e6cc7563bf549f230
[ "CC0-1.0" ]
null
null
null
Project/Support-NotSourced/generic_pydicom_ns.py
mazalgarab-git/OSICpypy
003fb0b146c9ed711f05475e6cc7563bf549f230
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Sep 7 11:48:59 2020 @author: mazal """ """ ========================================= Support functions of pydicom (Not sourced) ========================================= Purpose: Create support functions for the pydicom project """ """ Test mode 1 | Basics...
41.973272
186
0.603215
4,457
45,541
5.976442
0.118914
0.055412
0.033037
0.013215
0.387206
0.293389
0.231858
0.192852
0.166573
0.127004
0
0.016036
0.251005
45,541
1,085
187
41.973272
0.764878
0.135526
0
0.322684
0
0
0.163236
0.090468
0
0
0
0
0
1
0.007987
false
0
0.046326
0
0.0623
0.186901
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6e9ffb5e0649025342ebb242012d9b21913b192
8,378
py
Python
paperscraper/scrapers/keywords.py
ahmed-shariff/scraper
52bed967db7e08e438daaa8dfa8d9338567ad7c2
[ "MIT" ]
1
2021-11-19T02:56:22.000Z
2021-11-19T02:56:22.000Z
paperscraper/scrapers/keywords.py
ahmed-shariff/scraper
52bed967db7e08e438daaa8dfa8d9338567ad7c2
[ "MIT" ]
1
2021-11-19T03:42:58.000Z
2022-03-29T16:32:16.000Z
paperscraper/scrapers/keywords.py
ahmed-shariff/scraper
52bed967db7e08e438daaa8dfa8d9338567ad7c2
[ "MIT" ]
1
2021-11-19T02:56:28.000Z
2021-11-19T02:56:28.000Z
import re regex = re.compile(r'[\n\r\t]') def acm_digital_library(soup): try: keywords = set() keywords_parent_ol = soup.find('ol', class_="rlist organizational-chart") keywords_divs = keywords_parent_ol.findChildren('div', recursive=True) for kw_parent in keywords_divs: ...
38.608295
247
0.62509
1,032
8,378
4.905039
0.19186
0.045041
0.030818
0.032003
0.435994
0.378507
0.350454
0.350454
0.323785
0.323785
0
0.005214
0.267486
8,378
216
248
38.787037
0.818315
0.140368
0
0.432927
0
0
0.145639
0.033106
0
0
0
0.00463
0
1
0.079268
false
0.006098
0.006098
0.018293
0.219512
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6ea376dac46236ea3d4ce92ad3215d1dbffb660
6,642
py
Python
topobank/publication/models.py
ContactEngineering/TopoBank
12710c24cc158801db20f030c3e0638060e24a0e
[ "MIT", "BSD-3-Clause" ]
3
2021-12-03T19:11:07.000Z
2021-12-27T17:14:39.000Z
topobank/publication/models.py
ContactEngineering/TopoBank
12710c24cc158801db20f030c3e0638060e24a0e
[ "MIT", "BSD-3-Clause" ]
268
2021-03-19T13:57:00.000Z
2022-03-31T20:58:26.000Z
topobank/publication/models.py
ContactEngineering/TopoBank
12710c24cc158801db20f030c3e0638060e24a0e
[ "MIT", "BSD-3-Clause" ]
null
null
null
from django.db import models from django.urls import reverse from django.utils import timezone from django.utils.safestring import mark_safe from django.conf import settings MAX_LEN_AUTHORS_FIELD = 512 CITATION_FORMAT_FLAVORS = ['html', 'ris', 'bibtex', 'biblatex'] DEFAULT_KEYWORDS = ['surface', 'topography'] class...
36.696133
107
0.579645
745
6,642
5.024161
0.302013
0.041143
0.013358
0.025648
0.238312
0.206519
0.180069
0.100454
0.100454
0.075341
0
0.012743
0.279283
6,642
180
108
36.9
0.769166
0.124812
0
0.341085
0
0.007752
0.236697
0.029717
0.015504
0
0
0
0
1
0.093023
false
0
0.03876
0.023256
0.310078
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6ea40233a3bb49f837e23e4f39a0fd85da9fe09
489
py
Python
vendor/migrations/0003_store_password.py
rayhu-osu/vcube
ff1af048adb8a9f1007368150a78b309b4d821af
[ "MIT" ]
1
2019-02-20T18:47:04.000Z
2019-02-20T18:47:04.000Z
vendor/migrations/0003_store_password.py
rayhu-osu/vcube
ff1af048adb8a9f1007368150a78b309b4d821af
[ "MIT" ]
null
null
null
vendor/migrations/0003_store_password.py
rayhu-osu/vcube
ff1af048adb8a9f1007368150a78b309b4d821af
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-07-24 19:36 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('vendor', '0002_store_image'), ] operations = [ migrations.AddField( ...
22.227273
61
0.609407
54
489
5.333333
0.796296
0
0
0
0
0
0
0
0
0
0
0.067606
0.274029
489
21
62
23.285714
0.743662
0.139059
0
0
1
0
0.083732
0
0
0
0
0
0
1
0
false
0.071429
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
e6eadd6e5aefadc0d052f84f6f0acadbd4bc7e84
440
py
Python
lec2.py
widnerlr/isat252
4196a8b1c6f4c75c3f5d8f64164014103b695077
[ "MIT" ]
null
null
null
lec2.py
widnerlr/isat252
4196a8b1c6f4c75c3f5d8f64164014103b695077
[ "MIT" ]
null
null
null
lec2.py
widnerlr/isat252
4196a8b1c6f4c75c3f5d8f64164014103b695077
[ "MIT" ]
null
null
null
""" Your module description """ """ this is my second py code for my second lecture """ #print ('hello world') # this is a single line commment # this is my second line comment #print(type("123.")) #print ("Hello World".upper()) #print("Hello World".lower()) #print("hello" + "world" + ".") #print(2**3) #my_st...
12.941176
56
0.638636
70
440
3.9
0.428571
0.18315
0.21978
0.102564
0
0
0
0
0
0
0
0.022161
0.179545
440
34
57
12.941176
0.734072
0.656818
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
e6eb31b711fe08af2de8afcc37c668f59c3bdd16
1,579
py
Python
day_22_b.py
Gyaha/AOC2020
fbabae9acd7d274b84bc0c64f2665dfba9f008ca
[ "MIT" ]
null
null
null
day_22_b.py
Gyaha/AOC2020
fbabae9acd7d274b84bc0c64f2665dfba9f008ca
[ "MIT" ]
null
null
null
day_22_b.py
Gyaha/AOC2020
fbabae9acd7d274b84bc0c64f2665dfba9f008ca
[ "MIT" ]
null
null
null
def play_recursively_combat(p1: list, p2: list) -> bool: rounds = set() winner = None while len(p1) > 0 and len(p2) > 0: r = tuple(p1 + [-1] + p2) if r in rounds: return True else: rounds.add(r) c1 = p1.pop(0) c2 = p2.pop(0) if c1 <= ...
17.544444
62
0.542115
239
1,579
3.430962
0.364017
0.04878
0.076829
0.084146
0.136585
0.07561
0
0
0
0
0
0.072165
0.324256
1,579
89
63
17.741573
0.696345
0
0
0.1
0
0
0.082964
0
0
0
0
0
0.028571
1
0.071429
false
0
0.014286
0
0.157143
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6ecb90ea1c9f175831984d63548bf549ba7937d
335
py
Python
Auth/Constants/LoginOpCode.py
sundayz/idewave-core
5bdb88892173c9c3e8c85f431cf9b5dbd9f23941
[ "Apache-2.0" ]
null
null
null
Auth/Constants/LoginOpCode.py
sundayz/idewave-core
5bdb88892173c9c3e8c85f431cf9b5dbd9f23941
[ "Apache-2.0" ]
null
null
null
Auth/Constants/LoginOpCode.py
sundayz/idewave-core
5bdb88892173c9c3e8c85f431cf9b5dbd9f23941
[ "Apache-2.0" ]
null
null
null
from enum import Enum class LoginOpCode(Enum): ''' Opcodes during login process ''' LOGIN_CHALL = 0x00 LOGIN_PROOF = 0x01 RECON_CHALL = 0x02 # currently do not in use RECON_PROOF = 0x03 # currently do not in use REALMLIST = 0x10 class LoginResult(Enum): ''' Error codes ''' SUCC...
18.611111
49
0.641791
42
335
5.02381
0.642857
0.104265
0.132701
0.151659
0.180095
0
0
0
0
0
0
0.074689
0.280597
335
17
50
19.705882
0.80083
0.271642
0
0
0
0
0
0
0
0
0.104348
0
0
1
0
false
0
0.111111
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
e6ee19c46029883010bf024e3e8dd551854a83e8
80
py
Python
LINETOKEN/__init__.py
pratannaimjoi/tokenIpad
f03969c05427bc1804d05c42823a28725c7e38a0
[ "Apache-2.0" ]
null
null
null
LINETOKEN/__init__.py
pratannaimjoi/tokenIpad
f03969c05427bc1804d05c42823a28725c7e38a0
[ "Apache-2.0" ]
null
null
null
LINETOKEN/__init__.py
pratannaimjoi/tokenIpad
f03969c05427bc1804d05c42823a28725c7e38a0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from .LineApi import LINE from .lib.Gen.ttypes import *
20
29
0.6625
12
80
4.416667
0.833333
0
0
0
0
0
0
0
0
0
0
0.014925
0.1625
80
3
30
26.666667
0.776119
0.2625
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
e6ee404e9353e9098c1662d7447e96af2b5999cf
164
py
Python
main.py
seton-develops/PDF-Camelot-Folder-Executable
168b5c24afe8884cf121a4207d7d3cb3ee7cc626
[ "MIT" ]
null
null
null
main.py
seton-develops/PDF-Camelot-Folder-Executable
168b5c24afe8884cf121a4207d7d3cb3ee7cc626
[ "MIT" ]
null
null
null
main.py
seton-develops/PDF-Camelot-Folder-Executable
168b5c24afe8884cf121a4207d7d3cb3ee7cc626
[ "MIT" ]
null
null
null
''' Created on Jun 17, 2021 @author: Sean ''' import PDF2CSV_GUI def main(): j = PDF2CSV_GUI.Convert_GUI() if __name__ == "__main__": main()
12.615385
34
0.591463
21
164
4.095238
0.761905
0.232558
0
0
0
0
0
0
0
0
0
0.066667
0.268293
164
13
35
12.615385
0.65
0.231707
0
0
0
0
0.074766
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e6ee7c4e821041f353c4df40b51b9e9fed815d11
325
py
Python
Part1/bot_read.py
Mildlyoffbeat/RedditBot-1
f65c3c4d0f3d6d3a468069d4a009b44a20e33797
[ "MIT" ]
null
null
null
Part1/bot_read.py
Mildlyoffbeat/RedditBot-1
f65c3c4d0f3d6d3a468069d4a009b44a20e33797
[ "MIT" ]
null
null
null
Part1/bot_read.py
Mildlyoffbeat/RedditBot-1
f65c3c4d0f3d6d3a468069d4a009b44a20e33797
[ "MIT" ]
null
null
null
#!/usr/bin/python import praw reddit = praw.Reddit('mob-secondbot') subreddit = reddit.subreddit("learnpython") for submission in subreddit.hot(limit=5): print("Title: ", submission.title) print("Text: ", submission.selftext) print("Score: ", submission.score) print("---------------------------------...
25
48
0.618462
35
325
5.742857
0.628571
0.099502
0
0
0
0
0
0
0
0
0
0.003534
0.129231
325
12
49
27.083333
0.706714
0.049231
0
0
0
0
0.256494
0.113636
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.5
0
0
0
null
0
0
0
0
0
0
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
e6ee864c778e3c7bd05d01ccaa072084d9d7a6f7
1,052
py
Python
17/kazuate_liar.cpp.py
Siketyan/Programming-I
0749c1ae045d53cd8a67f0de7ab13c26030ddd74
[ "Apache-2.0" ]
null
null
null
17/kazuate_liar.cpp.py
Siketyan/Programming-I
0749c1ae045d53cd8a67f0de7ab13c26030ddd74
[ "Apache-2.0" ]
null
null
null
17/kazuate_liar.cpp.py
Siketyan/Programming-I
0749c1ae045d53cd8a67f0de7ab13c26030ddd74
[ "Apache-2.0" ]
null
null
null
from subprocess import Popen, PIPE, call name = "kazuate_liar.o" src = """ #include <iostream> #include <random> using namespace std; int main() { random_device rd; mt19937 mt(rd()); uniform_int_distribution<int> randfive(0, 4); uniform_int_distribution<int> randint(1, 100); int count = 0; ...
17.533333
66
0.439163
111
1,052
4.108108
0.522523
0.026316
0.096491
0.109649
0
0
0
0
0
0
0
0.029141
0.380228
1,052
59
67
17.830508
0.670245
0
0
0
0
0
0.834443
0.055186
0
0
0
0
0
1
0
false
0
0.021739
0
0.043478
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
e6eeea99216e21aebde0241d03385a480d8c6df4
649
py
Python
src/terrafort/main.py
silvercar/terrafort
bdf9cb5d7f58d10a0c295c01b3a5620fdcc2876c
[ "MIT" ]
1
2019-06-18T00:40:40.000Z
2019-06-18T00:40:40.000Z
src/terrafort/main.py
silvercar/terrafort
bdf9cb5d7f58d10a0c295c01b3a5620fdcc2876c
[ "MIT" ]
null
null
null
src/terrafort/main.py
silvercar/terrafort
bdf9cb5d7f58d10a0c295c01b3a5620fdcc2876c
[ "MIT" ]
1
2021-08-25T02:15:28.000Z
2021-08-25T02:15:28.000Z
""" Terrafort Generate terraform templates for specific resources """ import click from .providers.aws import Aws @click.group() @click.option('--commands', is_flag=True, help="Output import commands instead of a terraform template") @click.version_option() @click.pass_context def cli(ct...
22.37931
76
0.731895
88
649
5.136364
0.568182
0.053097
0.115044
0.141593
0.20354
0.119469
0
0
0
0
0
0
0.146379
649
28
77
23.178571
0.815884
0.191063
0
0
1
0
0.154739
0
0
0
0
0
0
1
0.0625
false
0.0625
0.1875
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
1
0
0
0
0
0
2
e6efe17c4e6e08ec55040433cf5ea1ff20fecb68
528
py
Python
src/ping.py
jnsougata/rich-embed
95901e590f00c4e4eabeb99c8f06bb5f90718d80
[ "MIT" ]
null
null
null
src/ping.py
jnsougata/rich-embed
95901e590f00c4e4eabeb99c8f06bb5f90718d80
[ "MIT" ]
null
null
null
src/ping.py
jnsougata/rich-embed
95901e590f00c4e4eabeb99c8f06bb5f90718d80
[ "MIT" ]
null
null
null
import discord import app_util class Ping(app_util.Cog): def __init__(self, bot: app_util.Bot): self.bot = bot @app_util.Cog.command( command=app_util.SlashCommand( name='ping', description='shows avg ping of client' ), guild_id=877399405056102431 ) async ...
24
94
0.662879
74
528
4.527027
0.513514
0.146269
0.089552
0.077612
0
0
0
0
0
0
0
0.05569
0.217803
528
21
95
25.142857
0.755448
0
0
0
0
0
0.111742
0
0
0
0
0
0
1
0.133333
false
0
0.133333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6f05425230fc70414cb78c1b2738e7f0e282ac0
2,017
py
Python
2020/24/visualization.py
AlbertVeli/AdventOfCode
3d3473695318a0686fac720a1a21dd3629f09e33
[ "Unlicense" ]
null
null
null
2020/24/visualization.py
AlbertVeli/AdventOfCode
3d3473695318a0686fac720a1a21dd3629f09e33
[ "Unlicense" ]
null
null
null
2020/24/visualization.py
AlbertVeli/AdventOfCode
3d3473695318a0686fac720a1a21dd3629f09e33
[ "Unlicense" ]
1
2021-12-04T10:37:09.000Z
2021-12-04T10:37:09.000Z
#!/usr/bin/env python3 import sys import re import numpy as np from PIL import Image moves = { 'e': (2, 0), 'se': (1, 2), 'sw': (-1, 2), 'w': (-2, 0), 'nw': (-1, -2), 'ne': (1, -2) } # Save (x, y): True/False in tiles. True = black, False = white. tiles = {} for line in open(sys.argv[1]).read().splitlines(): po...
24.901235
97
0.511155
331
2,017
3.090634
0.350453
0.013685
0.02737
0.02346
0.017595
0
0
0
0
0
0
0.041066
0.311849
2,017
80
98
25.2125
0.695965
0.115022
0
0.034483
0
0
0.030968
0
0
0
0
0
0
1
0.051724
false
0
0.068966
0
0.137931
0.051724
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6f0fc4f8d5c7522b3b6e45957a0edd9bcec2662
16,451
py
Python
experimental/tracing/bin/diff_heap_profiler.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
1,894
2015-04-17T18:29:53.000Z
2022-03-28T22:41:06.000Z
experimental/tracing/bin/diff_heap_profiler.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
experimental/tracing/bin/diff_heap_profiler.py
atuchin-m/catapult
108ea3e2ec108e68216b1250a3d79cc642600294
[ "BSD-3-Clause" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
#!/usr/bin/env python # Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import absolute_import from __future__ import print_function import argparse import gzip import json import os import s...
32.005837
152
0.636253
2,007
16,451
5.046338
0.155954
0.010071
0.011947
0.010367
0.229759
0.17032
0.143661
0.093207
0.073855
0.057662
0
0.008292
0.24497
16,451
513
153
32.068226
0.807101
0.096651
0
0.167102
0
0
0.108296
0.004932
0
0
0
0
0
1
0.05483
false
0
0.023499
0.002611
0.112272
0.007833
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6f21f20dc1c7283a540aac397169a7429e851b1
3,743
py
Python
mne_bids/commands/mne_bids_raw_to_bids.py
kingjr/mne-bids
3a4543076912cebbc89a5f0b9433cda1b9e288b8
[ "BSD-3-Clause" ]
null
null
null
mne_bids/commands/mne_bids_raw_to_bids.py
kingjr/mne-bids
3a4543076912cebbc89a5f0b9433cda1b9e288b8
[ "BSD-3-Clause" ]
null
null
null
mne_bids/commands/mne_bids_raw_to_bids.py
kingjr/mne-bids
3a4543076912cebbc89a5f0b9433cda1b9e288b8
[ "BSD-3-Clause" ]
null
null
null
"""Write raw files to BIDS format. example usage: $ mne_bids raw_to_bids --subject_id sub01 --task rest --raw data.edf --bids_root new_path """ # Authors: Teon Brooks <teon.brooks@gmail.com> # Stefan Appelhoff <stefan.appelhoff@mailbox.org> # # License: BSD (3-clause) import mne_bids from mne_bids import wr...
41.588889
77
0.594176
477
3,743
4.45912
0.297694
0.06347
0.105783
0.018336
0.076164
0.027268
0
0
0
0
0
0.004458
0.280791
3,743
89
78
42.05618
0.785661
0.078547
0
0.030303
0
0
0.287212
0
0
0
0
0
0
1
0.015152
false
0.015152
0.060606
0
0.075758
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
0
0
0
0
0
0
0
0
0
0
1
0
e6f290178fbe89e1c3a852359d5e4b95ce0dd4ec
1,460
py
Python
lab1oop.py
NastiaK/NewRepository
d1907fc2e159dc1831071d7c79e20bbfb47fb822
[ "MIT" ]
null
null
null
lab1oop.py
NastiaK/NewRepository
d1907fc2e159dc1831071d7c79e20bbfb47fb822
[ "MIT" ]
null
null
null
lab1oop.py
NastiaK/NewRepository
d1907fc2e159dc1831071d7c79e20bbfb47fb822
[ "MIT" ]
null
null
null
class Calculations: def __init__(self, first, second): self.first = first self.second = second def add(self): print(self.first + self.second) def subtract(self): print(self.first - self.second) def multiply(self): print(self.first * self.second) ...
29.795918
119
0.489041
150
1,460
4.68
0.326667
0.076923
0.106838
0.102564
0.273504
0.273504
0.235043
0.102564
0
0
0
0.020501
0.39863
1,460
48
120
30.416667
0.779043
0
0
0.097561
0
0
0.137394
0
0
0
0
0
0
1
0.146341
false
0
0
0
0.170732
0.195122
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6f2fef589655b9bf1c7a2c668ca919bfd152a24
460
py
Python
Arrays/cyclic_rotation.py
Jeans212/codility-dev-training
9c5118c6433ea210d1485a6127712a92496e2bc2
[ "MIT" ]
null
null
null
Arrays/cyclic_rotation.py
Jeans212/codility-dev-training
9c5118c6433ea210d1485a6127712a92496e2bc2
[ "MIT" ]
null
null
null
Arrays/cyclic_rotation.py
Jeans212/codility-dev-training
9c5118c6433ea210d1485a6127712a92496e2bc2
[ "MIT" ]
null
null
null
# you can write to stdout for debugging purposes, e.g. # print("this is a debug message") ''' Rotate an array A to the right by a given number of steps K. Covert the array to a deque Apply the rotate() method the rotate the deque in positive K steps Convert the deque to array ''' from collec...
23
70
0.669565
80
460
3.8125
0.5875
0.039344
0
0
0
0
0
0
0
0
0
0.005882
0.26087
460
19
71
24.210526
0.891176
0.652174
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e6f36e3d6234b36ef09fd70fd1be755548b506ba
37,741
py
Python
tests/test_apis.py
hatzel/markdown-spoilers
1964f298f0e8b99f1202d36ccc7d8cf7d613ad26
[ "BSD-3-Clause" ]
2
2020-06-21T12:02:58.000Z
2020-09-02T15:21:19.000Z
tests/test_apis.py
hatzel/markdown-spoilers
1964f298f0e8b99f1202d36ccc7d8cf7d613ad26
[ "BSD-3-Clause" ]
null
null
null
tests/test_apis.py
hatzel/markdown-spoilers
1964f298f0e8b99f1202d36ccc7d8cf7d613ad26
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Python Markdown A Python implementation of John Gruber's Markdown. Documentation: https://python-markdown.github.io/ GitHub: https://github.com/Python-Markdown/markdown/ PyPI: https://pypi.org/project/Markdown/ Started by Manfred Stienstra (http://www.dwerg.net/). Maintained for a few yea...
36.081262
116
0.601123
4,138
37,741
5.413001
0.150073
0.070985
0.037948
0.027724
0.487522
0.409393
0.32939
0.26961
0.253985
0.226037
0
0.007248
0.254233
37,741
1,045
117
36.115789
0.788567
0.133462
0
0.338753
0
0.009485
0.110431
0.032452
0
0
0
0.000957
0.219512
1
0.155827
false
0
0.020325
0.00542
0.214092
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6f5ecde56dec14d70d3fec0b36dc822d497cba7
2,230
py
Python
nervous/utility/config.py
csxeba/nervous
f7aeb9b2ff875835c346c607722fab517ef6df61
[ "MIT" ]
1
2018-09-24T11:29:19.000Z
2018-09-24T11:29:19.000Z
nervous/utility/config.py
csxeba/nervous
f7aeb9b2ff875835c346c607722fab517ef6df61
[ "MIT" ]
null
null
null
nervous/utility/config.py
csxeba/nervous
f7aeb9b2ff875835c346c607722fab517ef6df61
[ "MIT" ]
null
null
null
import os class StressedNetConfig: def __init__(self, synaptic_environmental_constraint=0.8, group_environmental_constraint=0.6, stress_factor=0.8, save_folder=os.path.expanduser("~/.nervous/models/")): self._synaptic_environmental_const...
33.283582
98
0.673991
244
2,230
5.790984
0.180328
0.325548
0.219391
0.12385
0.636943
0.334749
0.334749
0.084218
0.084218
0.069356
0
0.010708
0.246188
2,230
66
99
33.787879
0.829863
0
0
0.169811
0
0
0.091031
0
0
0
0
0
0
1
0.207547
false
0
0.018868
0.075472
0.339623
0
0
0
0
null
1
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
1
0
0
0
0
0
0
0
3
e6f658acae15a3e9ea6e4c377ee45743db7b0897
6,365
py
Python
mindspore/nn/optim/ftrl.py
XinYao1994/mindspore
2c1a2bf752a1fde311caddba22633d2f4f63cb4e
[ "Apache-2.0" ]
2
2020-04-28T03:49:10.000Z
2020-04-28T03:49:13.000Z
mindspore/nn/optim/ftrl.py
XinYao1994/mindspore
2c1a2bf752a1fde311caddba22633d2f4f63cb4e
[ "Apache-2.0" ]
null
null
null
mindspore/nn/optim/ftrl.py
XinYao1994/mindspore
2c1a2bf752a1fde311caddba22633d2f4f63cb4e
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
50.11811
116
0.692066
901
6,365
4.73141
0.261931
0.045039
0.055829
0.07225
0.243725
0.205724
0.115412
0.103214
0.094065
0.085386
0
0.020424
0.192302
6,365
126
117
50.515873
0.808792
0.410998
0
0.033898
0
0
0.05915
0
0
0
0
0
0
1
0.067797
false
0
0.118644
0
0.237288
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6f688088bfa1088bfe7257d2cece961dd478353
5,106
py
Python
aws_utils/region_selector.py
skimhub/aws-utils
5496a7594ab90b1e658e8f9f8137e8943a39be1e
[ "Apache-2.0" ]
null
null
null
aws_utils/region_selector.py
skimhub/aws-utils
5496a7594ab90b1e658e8f9f8137e8943a39be1e
[ "Apache-2.0" ]
13
2016-01-05T14:48:38.000Z
2017-08-14T10:17:41.000Z
aws_utils/region_selector.py
skimhub/aws-utils
5496a7594ab90b1e658e8f9f8137e8943a39be1e
[ "Apache-2.0" ]
null
null
null
import datetime import boto3 US_EAST_REGION = {'us-east-1'} US_EAST_AVAILABILITY_ZONES = {'us-east-1a', 'us-east-1b', 'us-east-1c', 'us-east-1e'} # note d is missing INSTANCE_VERSION = 'Linux/UNIX (Amazon VPC)' def fetch_spot_prices(region, start_time, end_time, instance_type, instance_version=INSTANCE_VERSION): ...
44.4
138
0.604387
597
5,106
4.971524
0.256281
0.022237
0.061995
0.018194
0.393194
0.370283
0.370283
0.34535
0.34535
0.34535
0
0.010759
0.308265
5,106
114
139
44.789474
0.829558
0.321582
0
0.226415
0
0
0.074074
0
0
0
0
0
0
1
0.056604
false
0
0.037736
0
0.132075
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6f6e592f45ce51ed72972736b1981a35d6ad662
81
py
Python
pynn/__init__.py
jkae/knn-exercise
ae569e3f6a0e23669369d99e032270e72f8fbb66
[ "MIT" ]
null
null
null
pynn/__init__.py
jkae/knn-exercise
ae569e3f6a0e23669369d99e032270e72f8fbb66
[ "MIT" ]
null
null
null
pynn/__init__.py
jkae/knn-exercise
ae569e3f6a0e23669369d99e032270e72f8fbb66
[ "MIT" ]
null
null
null
from .nearest_neighbor_index import NearestNeighborIndex from .kd_tree import *
20.25
56
0.851852
10
81
6.6
0.8
0
0
0
0
0
0
0
0
0
0
0
0.111111
81
3
57
27
0.916667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
e6f7da2b0c80534457eb53c6aaa04a6eb69ac541
2,562
py
Python
tests/test_try.py
threecifanggen/python-functional-programming
bd17281e5f24db826266f509bc54b25362c0d2a1
[ "MIT" ]
3
2021-10-05T09:12:36.000Z
2021-11-30T07:11:58.000Z
tests/test_try.py
threecifanggen/python-functional-programming
bd17281e5f24db826266f509bc54b25362c0d2a1
[ "MIT" ]
14
2021-10-11T05:31:15.000Z
2021-12-16T12:52:47.000Z
tests/test_try.py
threecifanggen/python-functional-programming
bd17281e5f24db826266f509bc54b25362c0d2a1
[ "MIT" ]
null
null
null
''' Author: huangbaochen<huangbaochenwo@live.com> Date: 2021-12-11 20:04:19 LastEditTime: 2021-12-11 21:46:16 LastEditors: huangbaochen<huangbaochenwo@live.com> Description: 测试Try单子 No MERCY ''' import pytest from fppy.try_monad import Try, Success, Fail from fppy.option import Just, Nothing @pytest.mark.try_monad def...
29.790698
66
0.673692
352
2,562
4.778409
0.181818
0.222949
0.240785
0.258026
0.668252
0.656956
0.548751
0.381094
0.283591
0.241974
0
0.034828
0.181889
2,562
85
67
30.141176
0.767653
0.083138
0
0.396552
0
0
0.101239
0
0
0
0
0
0.310345
1
0.137931
true
0
0.051724
0
0.189655
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
e6f805f6f11f261c37210a559213d4def9f1debd
952
py
Python
app/internal/daily_quotes.py
yammesicka/calendar
7c15a24883dbdffb563b6d3286c2d458e4a1c9c0
[ "Apache-2.0" ]
null
null
null
app/internal/daily_quotes.py
yammesicka/calendar
7c15a24883dbdffb563b6d3286c2d458e4a1c9c0
[ "Apache-2.0" ]
null
null
null
app/internal/daily_quotes.py
yammesicka/calendar
7c15a24883dbdffb563b6d3286c2d458e4a1c9c0
[ "Apache-2.0" ]
null
null
null
from datetime import date from typing import Dict, Optional from sqlalchemy.orm import Session from sqlalchemy.sql.expression import func from app.database.models import Quote TOTAL_DAYS = 366 def create_quote_object(quotes_fields: Dict[str, Optional[str]]) -> Quote: """This function create a quote object from...
30.709677
74
0.711134
138
952
4.811594
0.5
0.054217
0.051205
0
0
0
0
0
0
0
0
0.003937
0.19958
952
30
75
31.733333
0.867454
0.295168
0
0
0
0
0.015432
0
0
0
0
0
0
1
0.111111
false
0
0.277778
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6fa166658f7b4a5f652c93e09a1ac34583195f0
123
py
Python
src/789A.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
2
2016-08-19T09:47:03.000Z
2016-10-01T10:15:03.000Z
src/789A.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
null
null
null
src/789A.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
1
2015-07-01T23:57:32.000Z
2015-07-01T23:57:32.000Z
n, k = map(int, input().split()) w = list(map(int, input().split())) r = sum(map(lambda x: (x+k-1)//k, w)) print((r+1)//2)
24.6
37
0.536585
26
123
2.538462
0.576923
0.181818
0.333333
0.484848
0
0
0
0
0
0
0
0.028037
0.130081
123
4
38
30.75
0.588785
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
e6fab2043b0b6fa907bee5da86873ddbf2cfe3cf
1,432
py
Python
platform/server/detect.py
leyyin/godot
68325d7254db711beaedddad218e2cddb405c42c
[ "CC-BY-3.0", "MIT" ]
24
2016-10-14T16:54:01.000Z
2022-01-15T06:39:17.000Z
platform/server/detect.py
leyyin/godot
68325d7254db711beaedddad218e2cddb405c42c
[ "CC-BY-3.0", "MIT" ]
17
2016-12-30T14:35:53.000Z
2017-03-07T21:07:50.000Z
platform/server/detect.py
leyyin/godot
68325d7254db711beaedddad218e2cddb405c42c
[ "CC-BY-3.0", "MIT" ]
9
2017-08-04T12:00:16.000Z
2021-12-10T06:48:28.000Z
import os import sys def is_active(): return True def get_name(): return "Server" def can_build(): if (os.name!="posix"): return False return True # enabled def get_opts(): return [ ('use_llvm','Use llvm compiler','no'), ('force_32_bits','Force 32 bits binary','no') ] def get_flags(): return [ (...
17.679012
81
0.609637
193
1,432
4.42487
0.435233
0.084309
0.056206
0.030445
0.063232
0.063232
0
0
0
0
0
0.014516
0.134078
1,432
80
82
17.9
0.674194
0.106844
0
0.173913
0
0
0.335697
0.017336
0
0
0
0.0125
0
1
0.130435
false
0
0.043478
0.086957
0.304348
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
e6fc051294ab288b08cbb146da00f8c04ac171dd
413
py
Python
telemetry/Truck.py
SnipsMine/ETS2-Speedrun-Tool
5ac87e4bc88be67ff4954b2b98772ff14a65eb48
[ "MIT" ]
null
null
null
telemetry/Truck.py
SnipsMine/ETS2-Speedrun-Tool
5ac87e4bc88be67ff4954b2b98772ff14a65eb48
[ "MIT" ]
null
null
null
telemetry/Truck.py
SnipsMine/ETS2-Speedrun-Tool
5ac87e4bc88be67ff4954b2b98772ff14a65eb48
[ "MIT" ]
null
null
null
from telemetry.TruckConstants import ConstantValues from telemetry.TruckCurrent import CurrentValues from telemetry.TruckPositioning import Positioning class TruckValues: constant_values = None current_values = None positioning = None def __init__(self): self.current_values = CurrentValues()...
21.736842
51
0.750605
39
413
7.74359
0.461538
0.129139
0
0
0
0
0
0
0
0
0
0
0.196126
413
18
52
22.944444
0.909639
0
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6fc32c8a31669a37234337e3418a714af3c26bd
1,483
py
Python
IntroToSpark/Assign4_Q1-6_action.py
petersontylerd/spark-courses
e8dcb4968ea31a50206739e6af3006889f8c3c6c
[ "MIT" ]
null
null
null
IntroToSpark/Assign4_Q1-6_action.py
petersontylerd/spark-courses
e8dcb4968ea31a50206739e6af3006889f8c3c6c
[ "MIT" ]
null
null
null
IntroToSpark/Assign4_Q1-6_action.py
petersontylerd/spark-courses
e8dcb4968ea31a50206739e6af3006889f8c3c6c
[ "MIT" ]
1
2021-03-26T11:47:37.000Z
2021-03-26T11:47:37.000Z
import csv from pyspark.sql import SparkSession from pyspark.sql.types import IntegerType spark = SparkSession.builder.appName("Assignment4").getOrCreate() sc = spark.sparkContext # load data to dataframe path = 'fake_data.csv' df = spark.read.format('csv').option('header','true').load(path) # cast income as an int...
26.017544
157
0.652057
246
1,483
3.926829
0.296748
0.050725
0.074534
0.130435
0.217391
0.175983
0.149068
0.149068
0.097308
0.097308
0
0.043511
0.116655
1,483
56
158
26.482143
0.693893
0.076871
0
0.375
0
0
0.163476
0
0
0
0
0
0
1
0
false
0
0.09375
0
0.09375
0.75
0
0
0
null
0
0
0
0
0
0
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
e6fc5742d6236482be2f3020d03479a9c33e3222
274
py
Python
src/firebot/tests/factories.py
zipmex/fire
a41bbdbc86085c055ae4706fadea4f142e881a85
[ "Apache-2.0" ]
52
2017-03-15T16:25:14.000Z
2022-03-01T16:50:14.000Z
src/firebot/tests/factories.py
zipmex/fire
a41bbdbc86085c055ae4706fadea4f142e881a85
[ "Apache-2.0" ]
239
2017-03-16T17:10:22.000Z
2022-03-06T07:24:24.000Z
src/firebot/tests/factories.py
zipmex/fire
a41bbdbc86085c055ae4706fadea4f142e881a85
[ "Apache-2.0" ]
8
2017-03-15T17:45:18.000Z
2022-01-26T14:51:03.000Z
import factory from django.contrib.auth import get_user_model class UserFactory(factory.DjangoModelFactory): class Meta: model = get_user_model() first_name = factory.Faker('name') last_name = factory.Faker('name') email = factory.Faker('email')
21.076923
46
0.715328
34
274
5.588235
0.529412
0.189474
0.126316
0.210526
0
0
0
0
0
0
0
0
0.182482
274
12
47
22.833333
0.848214
0
0
0
0
0
0.047445
0
0
0
0
0
0
1
0
false
0
0.25
0
0.875
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
e6fc7870ccb1bbdefca5d31e7c6358dd9b6c9578
482
py
Python
reamber/o2jam/O2JHold.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
reamber/o2jam/O2JHold.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
reamber/o2jam/O2JHold.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from reamber.base.Hold import Hold, HoldTail from reamber.o2jam.O2JNoteMeta import O2JNoteMeta @dataclass class O2JHoldTail(HoldTail, O2JNoteMeta): pass @dataclass class O2JHold(Hold, O2JNoteMeta): """ Defines the O2Jam Bpm Object The O2Jam Bpm Object is stored...
21.909091
54
0.73029
57
482
6.140351
0.578947
0.062857
0.062857
0.097143
0
0
0
0
0
0
0
0.030612
0.186722
482
21
55
22.952381
0.862245
0.165975
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.090909
false
0.090909
0.272727
0.090909
0.727273
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
e6fc89e2fb95df50b778c64242f30654175e9df4
566
py
Python
peacebot/core/plugins/Miscellaneous/__init__.py
Peacebot-Development/Peacebot-v2
79ab87b12cd60b708631d96021ac3d3eaeee01c9
[ "MIT" ]
3
2021-11-13T06:26:06.000Z
2022-01-23T13:03:30.000Z
peacebot/core/plugins/Miscellaneous/__init__.py
Peacebot-Development/Peacebot-v2
79ab87b12cd60b708631d96021ac3d3eaeee01c9
[ "MIT" ]
32
2021-11-12T15:29:04.000Z
2022-01-23T14:44:19.000Z
peacebot/core/plugins/Miscellaneous/__init__.py
Peacebot-Development/Peacebot-v2
79ab87b12cd60b708631d96021ac3d3eaeee01c9
[ "MIT" ]
1
2021-11-13T06:34:03.000Z
2021-11-13T06:34:03.000Z
import lightbulb from apscheduler.schedulers.asyncio import AsyncIOScheduler from peacebot.core.utils.time import TimeConverter def fetch_scheduler(ctx: lightbulb.Context) -> AsyncIOScheduler: return ctx.bot.d.scheduler async def convert_time(ctx: lightbulb.Context, time: str) -> float: seconds = await Tim...
25.727273
68
0.738516
68
566
6.088235
0.544118
0.086957
0.137681
0
0
0
0
0
0
0
0
0
0.162544
566
21
69
26.952381
0.873418
0
0
0
0
0
0.070671
0
0
0
0
0
0
1
0.076923
false
0
0.230769
0.076923
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
0
0
0
0
1
0
e6fe319ea41fa303d91576c379f5911e22bf4307
855
py
Python
example/android/python/msite_simple_default_browser.py
laichimirum/docker-appium-emulator
3549c5f1fc09bbc650dd30351ad4f509a72a90fa
[ "Apache-2.0" ]
8
2019-04-26T04:09:40.000Z
2022-01-04T05:24:12.000Z
example/android/python/msite_simple_default_browser.py
laichimirum/docker-appium-emulator
3549c5f1fc09bbc650dd30351ad4f509a72a90fa
[ "Apache-2.0" ]
null
null
null
example/android/python/msite_simple_default_browser.py
laichimirum/docker-appium-emulator
3549c5f1fc09bbc650dd30351ad4f509a72a90fa
[ "Apache-2.0" ]
2
2019-12-16T15:34:57.000Z
2020-10-22T07:03:15.000Z
import unittest from appium import webdriver class MSiteDefaultBrowserAndroidUITests(unittest.TestCase): def setUp(self): # Default browser does not exist for android >= 6.0 desired_caps = { 'platformName': 'Android', 'deviceName': 'Android Emulator', 'appPac...
29.482759
90
0.65614
89
855
6.134831
0.651685
0.054945
0.062271
0
0
0
0
0
0
0
0
0.024024
0.221053
855
28
91
30.535714
0.795796
0.05731
0
0
0
0
0.248756
0.069652
0
0
0
0
0
1
0.157895
false
0
0.105263
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6fe636ebee73df95de2568536aed7f6f3927fad
458
py
Python
src/nn/dataset_utils/types_processing.py
sola-st/Nalin
3a6f95cec95d9152a65af970cfbb145179b0bd72
[ "MIT" ]
null
null
null
src/nn/dataset_utils/types_processing.py
sola-st/Nalin
3a6f95cec95d9152a65af970cfbb145179b0bd72
[ "MIT" ]
null
null
null
src/nn/dataset_utils/types_processing.py
sola-st/Nalin
3a6f95cec95d9152a65af970cfbb145179b0bd72
[ "MIT" ]
null
null
null
""" Created on 17-June-2020 @author Jibesh Patra The types extracted during runtime usually look something like --> <class 'numpy.ndarray'> or <class 'seaborn.palettes._ColorPalette'> change them to --> ndarray, ColorPalette """ import re remove_chars = re.compile(r'>|\'|<|(class )|_|(type)') def process_types(tp...
24.105263
93
0.696507
61
458
5.081967
0.721311
0.141935
0
0
0
0
0
0
0
0
0
0.017903
0.146288
458
18
94
25.444444
0.774936
0.482533
0
0
0
0
0.017544
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e6fee516b4253e139cd1d42c7d2077b96248a564
4,254
py
Python
src/canvas.py
soootaleb/spare
b454b9a8861df55c29fe55b4b584248a2ffe79cb
[ "Apache-2.0" ]
1
2019-05-21T16:04:08.000Z
2019-05-21T16:04:08.000Z
src/canvas.py
soootaleb/school-spacial-relations
b454b9a8861df55c29fe55b4b584248a2ffe79cb
[ "Apache-2.0" ]
null
null
null
src/canvas.py
soootaleb/school-spacial-relations
b454b9a8861df55c29fe55b4b584248a2ffe79cb
[ "Apache-2.0" ]
null
null
null
from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * from matplotlib import pyplot as plt from matplotlib.figure import Figure from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas import matplotlib.ticker as ticker import numpy as np import random, matplotlib...
35.157025
107
0.609074
526
4,254
4.813688
0.288973
0.066351
0.03594
0.037915
0.458926
0.435624
0.372828
0.252765
0.252765
0.21485
0
0.020806
0.276916
4,254
120
108
35.45
0.802341
0.088858
0
0.317647
0
0
0.024537
0
0
0
0
0.008333
0
1
0.094118
false
0
0.105882
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc0054805adf6c4edaa7b274d8d98323387b2aa1
7,561
py
Python
src/cpg_scpi/test/__init__.py
GeorgBraun/cpg_scpi_python
ec74c15beaac0b002fb996a42f4e66ea369e1fc6
[ "MIT" ]
null
null
null
src/cpg_scpi/test/__init__.py
GeorgBraun/cpg_scpi_python
ec74c15beaac0b002fb996a42f4e66ea369e1fc6
[ "MIT" ]
null
null
null
src/cpg_scpi/test/__init__.py
GeorgBraun/cpg_scpi_python
ec74c15beaac0b002fb996a42f4e66ea369e1fc6
[ "MIT" ]
null
null
null
'''Functional tests for CPG''' from .. import CircuitPlayground from .. import __version__ as CircuitPlaygroundVersion import time def funcTest(timestamps: bool = False) -> None: cpg = CircuitPlayground() if timestamps: _printFuncTestHeadingWithDeliLine(f'cpg_scpi v{CircuitPlaygroundVersion}\nRUNNING...
37.616915
151
0.61923
902
7,561
5.135255
0.213969
0.031088
0.014249
0.026123
0.494819
0.454231
0.426382
0.387522
0.30462
0.286269
0
0.027643
0.239254
7,561
200
152
37.805
0.777295
0.104748
0
0.43038
0
0.031646
0.289771
0.051293
0
0
0
0
0
1
0.094937
false
0.018987
0.031646
0
0.126582
0.316456
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc01125ff8253bbaef2b133518f03e3663e85d73
216
py
Python
main/models.py
yejun1060/SbjctSclctn
eca6a9d09cf81fce262ea58ca90e69ee5735ab16
[ "MIT" ]
null
null
null
main/models.py
yejun1060/SbjctSclctn
eca6a9d09cf81fce262ea58ca90e69ee5735ab16
[ "MIT" ]
null
null
null
main/models.py
yejun1060/SbjctSclctn
eca6a9d09cf81fce262ea58ca90e69ee5735ab16
[ "MIT" ]
1
2021-06-08T17:41:42.000Z
2021-06-08T17:41:42.000Z
from django.db import models class Account(models.Model): clsNb = models.IntegerField() Name = models.CharField(max_length=10) pw = models.IntegerField() def __str__(self): return self.Name
21.6
42
0.689815
27
216
5.333333
0.740741
0.25
0
0
0
0
0
0
0
0
0
0.011696
0.208333
216
10
43
21.6
0.830409
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
4
fc01bbc538287134d61e574ed4af064a81cfdf43
1,307
py
Python
test/utils/test_geodesic.py
shrey-bansal/pytorch_geometric
17108a08066b0a73530544d01719b186f2625ef2
[ "MIT" ]
2
2020-12-06T13:10:52.000Z
2021-07-06T06:50:10.000Z
test/utils/test_geodesic.py
shrey-bansal/pytorch_geometric
17108a08066b0a73530544d01719b186f2625ef2
[ "MIT" ]
null
null
null
test/utils/test_geodesic.py
shrey-bansal/pytorch_geometric
17108a08066b0a73530544d01719b186f2625ef2
[ "MIT" ]
1
2019-05-31T02:45:38.000Z
2019-05-31T02:45:38.000Z
from math import sqrt import torch from torch_geometric.utils import geodesic_distance def test_geodesic_distance(): pos = torch.Tensor([[0, 0, 0], [2, 0, 0], [0, 2, 0], [2, 2, 0]]) face = torch.tensor([[0, 1, 3], [0, 2, 3]]).t() out = geodesic_distance(pos, face) expected = [ [0, 1, 1, sqrt...
30.395349
76
0.574598
202
1,307
3.663366
0.143564
0.027027
0.17973
0.178378
0.662162
0.467568
0.445946
0.394595
0.224324
0.224324
0
0.077778
0.24254
1,307
42
77
31.119048
0.669697
0
0
0.235294
0
0
0
0
0
0
0
0
0.176471
1
0.029412
false
0
0.088235
0
0.117647
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
fc01d88d24681ec66a1cf06a3a055252d072afd3
31,292
py
Python
gridfs/grid_file.py
naomielst/mongo-python-driver
e3d1d6f5b48101654a05493fd6eec7fe3fa014bd
[ "Apache-2.0" ]
2
2022-01-19T21:00:48.000Z
2022-01-27T05:54:13.000Z
gridfs/grid_file.py
naomielst/mongo-python-driver
e3d1d6f5b48101654a05493fd6eec7fe3fa014bd
[ "Apache-2.0" ]
1
2021-12-24T11:32:17.000Z
2021-12-24T11:32:17.000Z
gridfs/grid_file.py
naomielst/mongo-python-driver
e3d1d6f5b48101654a05493fd6eec7fe3fa014bd
[ "Apache-2.0" ]
null
null
null
# Copyright 2009-present MongoDB, 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 wri...
35.721461
103
0.599035
3,709
31,292
4.830682
0.149636
0.014567
0.010158
0.004019
0.291399
0.250544
0.213038
0.186136
0.154211
0.142937
0
0.005351
0.307267
31,292
875
104
35.762286
0.821193
0.293078
0
0.385892
0
0
0.102517
0
0
0
0
0
0.002075
1
0.13278
false
0.006224
0.029046
0.018672
0.304979
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc021cb14dd8b84a0a6873924f2194048e2791f0
1,415
py
Python
forte/processors/tests/stanfordnlp_processor_test.py
tcl326/forte
d0d7b8b97da5e1d507dfa7cd4ec51d96067770b8
[ "Apache-2.0" ]
null
null
null
forte/processors/tests/stanfordnlp_processor_test.py
tcl326/forte
d0d7b8b97da5e1d507dfa7cd4ec51d96067770b8
[ "Apache-2.0" ]
null
null
null
forte/processors/tests/stanfordnlp_processor_test.py
tcl326/forte
d0d7b8b97da5e1d507dfa7cd4ec51d96067770b8
[ "Apache-2.0" ]
null
null
null
"""This module tests Stanford NLP processors.""" import os import unittest from texar.torch import HParams from forte.pipeline import Pipeline from forte.data.readers import StringReader from forte.processors.stanfordnlp_processor import StandfordNLPProcessor from ft.onto.base_ontology import Token, Sentence class ...
36.282051
77
0.638869
152
1,415
5.848684
0.552632
0.074241
0.084364
0
0
0
0
0
0
0
0
0
0.279859
1,415
38
78
37.236842
0.872424
0.071378
0
0
0
0
0.16909
0
0
0
0
0.026316
0
1
0.066667
false
0
0.233333
0
0.333333
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
fc02e2f67f44eb696a821c6397117531267c2ddc
496
py
Python
src/serve_files.py
eventh/m3u8looper
9c4ae166e9af4679cf64b19e3c3efc7bbdaed5a5
[ "MIT" ]
null
null
null
src/serve_files.py
eventh/m3u8looper
9c4ae166e9af4679cf64b19e3c3efc7bbdaed5a5
[ "MIT" ]
null
null
null
src/serve_files.py
eventh/m3u8looper
9c4ae166e9af4679cf64b19e3c3efc7bbdaed5a5
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """ Serve current folder files in a HTTP webserver. """ import socketserver from threading import Thread from http.server import SimpleHTTPRequestHandler PORT = 8000 def start_http_server(port=PORT): httpd = socketserver.TCPServer(("", port), SimpleHTTPRequestHand...
20.666667
76
0.709677
58
496
5.844828
0.603448
0.088496
0.088496
0
0
0
0
0
0
0
0
0.014706
0.177419
496
23
77
21.565217
0.816176
0.185484
0
0
0
0
0.020253
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc03078d9d14b23c740018bcdf9069c213af00f0
7,393
py
Python
pypy/module/__builtin__/test/test_compile.py
yxzoro/pypy
6e47b3d3e5513d9639a21554963a6ace172ccfee
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/module/__builtin__/test/test_compile.py
yxzoro/pypy
6e47b3d3e5513d9639a21554963a6ace172ccfee
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/module/__builtin__/test/test_compile.py
yxzoro/pypy
6e47b3d3e5513d9639a21554963a6ace172ccfee
[ "Apache-2.0", "OpenSSL" ]
null
null
null
# coding: utf-8 class AppTestCompile: def test_simple(self): import sys co = compile('1+2', '?', 'eval') assert eval(co) == 3 co = compile(memoryview(b'1+2'), '?', 'eval') assert eval(co) == 3 exc = raises(ValueError, compile, chr(0), '?', 'eval') assert str(...
34.226852
79
0.538212
880
7,393
4.392045
0.238636
0.027167
0.035705
0.016818
0.255627
0.2
0.148254
0.129625
0.115653
0.09806
0
0.017388
0.315434
7,393
215
80
34.386047
0.746295
0.11051
0
0.27381
0
0
0.239333
0.004282
0
0
0.000612
0.004651
0.190476
1
0.107143
false
0.017857
0.059524
0
0.202381
0.011905
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc035a3b69dad59dad81dc8e5b68a8db4a2f4aff
12,207
py
Python
tickers_graphing_module.py
huangbrandon432/Investing-Trading-Tool
370015b906b7ee90c0fb48ca69865ac7428b3917
[ "BSD-3-Clause" ]
null
null
null
tickers_graphing_module.py
huangbrandon432/Investing-Trading-Tool
370015b906b7ee90c0fb48ca69865ac7428b3917
[ "BSD-3-Clause" ]
null
null
null
tickers_graphing_module.py
huangbrandon432/Investing-Trading-Tool
370015b906b7ee90c0fb48ca69865ac7428b3917
[ "BSD-3-Clause" ]
null
null
null
import yfinance as yf import matplotlib.pyplot as plt import plotly.express as px import plotly.graph_objects as go from plotly.subplots import make_subplots import pandas as pd from IPython.display import Markdown import numpy as np from datetime import date, timedelta def plot_and_get_info(ticker, start = None, en...
35.178674
169
0.530843
1,332
12,207
4.693694
0.215465
0.041587
0.03119
0.028791
0.430902
0.352047
0.286628
0.261996
0.261996
0.252079
0
0.029986
0.341607
12,207
346
170
35.280347
0.747916
0.004833
0
0.468085
0
0.008511
0.135046
0.010211
0
0
0
0
0
1
0.025532
false
0.004255
0.038298
0
0.07234
0.055319
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc045ba1073202cd1ab4f6738b3709fb28279ff8
5,008
py
Python
flexbe_navigation_states/src/flexbe_navigation_states/navigation_sm.py
amsks/generic_flexbe_states
f7be84105d3370c943ed17fc19af672b330726de
[ "BSD-3-Clause" ]
null
null
null
flexbe_navigation_states/src/flexbe_navigation_states/navigation_sm.py
amsks/generic_flexbe_states
f7be84105d3370c943ed17fc19af672b330726de
[ "BSD-3-Clause" ]
null
null
null
flexbe_navigation_states/src/flexbe_navigation_states/navigation_sm.py
amsks/generic_flexbe_states
f7be84105d3370c943ed17fc19af672b330726de
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ########################################################### # WARNING: Generated code! # # ************************** # # Manual changes may get lost if file is generated again. # # Only code inside the [MANUAL] ta...
34.777778
131
0.659145
550
5,008
5.8
0.292727
0.040752
0.028213
0.041379
0.396552
0.29373
0.261442
0.19185
0.168025
0.12163
0
0.027166
0.184105
5,008
143
132
35.020979
0.753549
0.179113
0
0.220588
1
0
0.189487
0.006923
0
0
0
0
0
1
0.029412
false
0
0.117647
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fc070f80801a319fdf697b23e027ce45aa2d558c
26,632
py
Python
text2cc/xml_assessment.py
dlehman83/text2cc
303798993590bceaeb5238a6cce82893c37cdfc7
[ "BSD-3-Clause" ]
1
2021-02-12T09:34:07.000Z
2021-02-12T09:34:07.000Z
text2cc/xml_assessment.py
dlehman83/text2cc
303798993590bceaeb5238a6cce82893c37cdfc7
[ "BSD-3-Clause" ]
null
null
null
text2cc/xml_assessment.py
dlehman83/text2cc
303798993590bceaeb5238a6cce82893c37cdfc7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2021, Dana Lehman # Copyright (c) 2020, Geoffrey M. Poore # All rights reserved. # # Licensed under the BSD 3-Clause License: # http://opensource.org/licenses/BSD-3-Clause # from .quiz import Quiz, Question, GroupStart, GroupEnd, TextRegion BEFORE_ITEMS = '''\ <?xml version...
40.474164
260
0.629769
2,487
26,632
6.386409
0.081624
0.087767
0.052131
0.047598
0.781842
0.714789
0.658377
0.619027
0.559529
0.494302
0
0.006305
0.273393
26,632
657
261
40.535769
0.81448
0.010063
0
0.640212
0
0.001764
0.470215
0.159497
0
0
0
0
0
1
0.001764
false
0
0.001764
0
0.005291
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
fc072ef6a205b171dfc4d3510829d73d11a5f833
2,360
py
Python
tests/test_aggregate_stats_design.py
bids-standard/bids-statsmodels-design-synthesizer
d8a1dac3891760990082c2d3aa75a1edda44ffa0
[ "MIT" ]
null
null
null
tests/test_aggregate_stats_design.py
bids-standard/bids-statsmodels-design-synthesizer
d8a1dac3891760990082c2d3aa75a1edda44ffa0
[ "MIT" ]
1
2021-05-12T21:53:53.000Z
2021-05-12T22:26:09.000Z
tests/test_aggregate_stats_design.py
bids-standard/bids-statsmodels-design-synthesizer
d8a1dac3891760990082c2d3aa75a1edda44ffa0
[ "MIT" ]
3
2021-05-06T12:44:04.000Z
2021-05-12T21:42:59.000Z
#!/usr/bin/env python """Tests for `bids_statsmodels_design_synthesizer` package.""" import pytest import subprocess as sp from pathlib import Path SYNTHESIZER = "aggregate_stats_design.py" from bids_statsmodels_design_synthesizer import aggregate_stats_design as synth_mod # from bids_statsmodels_design_synthesizer...
36.875
199
0.715678
306
2,360
5.316993
0.437909
0.036878
0.051629
0.078672
0.250768
0.213891
0.129072
0.129072
0.081131
0.081131
0
0.038265
0.169492
2,360
63
200
37.460317
0.791837
0.335169
0
0.114286
0
0
0.339498
0.18362
0
0
0
0
0
1
0.114286
false
0
0.114286
0
0.228571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc084ddbb4a5b92a2c3c4c62cd1d09d582bd5892
689
py
Python
skynet-agent/plugins/plugin_api.py
skynetera/skynet
24a50f2a2eb95b777802934a2b66f162bf4b2d53
[ "Apache-2.0" ]
3
2016-09-12T08:54:46.000Z
2016-09-18T07:54:10.000Z
skynet-agent/plugins/plugin_api.py
skynetera/skynet
24a50f2a2eb95b777802934a2b66f162bf4b2d53
[ "Apache-2.0" ]
null
null
null
skynet-agent/plugins/plugin_api.py
skynetera/skynet
24a50f2a2eb95b777802934a2b66f162bf4b2d53
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 __author__ = 'whoami' """ @version: 1.0 @author: whoami @license: Apache Licence 2.0 @contact: skutil@gmail.com @site: http://www.itweet.cn @software: PyCharm Community Edition @file: plugin_api.py @time: 2015-11-28 下午1:52 """ from linux import cpu,disk,iostats,loadavg,memory,net...
17.225
63
0.71553
101
689
4.693069
0.564356
0.088608
0.164557
0
0
0
0
0
0
0
0
0.027257
0.148041
689
39
64
17.666667
0.780239
0.049347
0
0
0
0
0.013423
0
0
0
0
0
0
1
0.4375
false
0
0.0625
0.4375
0.9375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
fc09cc4c599dae963fa070fbe9dc0b9a5e9e17c9
1,425
py
Python
code/figure_warp.py
jwcarr/drift
a514c5970ba53025cc142257e953c1bda3cd049c
[ "CC-BY-4.0" ]
2
2021-11-19T10:12:58.000Z
2021-11-30T03:33:59.000Z
code/figure_warp.py
jwcarr/vertical_drift
5b4b6c475b5118950514dc01960391ef0d95bd19
[ "CC-BY-4.0" ]
null
null
null
code/figure_warp.py
jwcarr/vertical_drift
5b4b6c475b5118950514dc01960391ef0d95bd19
[ "CC-BY-4.0" ]
null
null
null
import numpy as np import eyekit import algorithms import core data = eyekit.io.load(core.FIXATIONS / 'sample.json') passages = eyekit.io.load(core.DATA / 'passages.json') original_sequence = data['trial_5']['fixations'] fixation_XY = np.array([fixation.xy for fixation in original_sequence], dtype=int) word_XY = np....
39.583333
102
0.781754
224
1,425
4.745536
0.424107
0.028222
0.022578
0.030103
0
0
0
0
0
0
0
0.031418
0.084211
1,425
35
103
40.714286
0.783142
0.04
0
0
0
0
0.061493
0.015373
0
0
0
0
0
1
0
false
0.115385
0.153846
0
0.153846
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
fc0a7d892ee7ccba2ec10d7aa3adc47150da3dac
98,817
py
Python
storm/Nimbus.py
krux/python-storm
1a9c06d3580a2b1bc2c27174d892a6dbcaa9e0bd
[ "BSD-3-Clause" ]
null
null
null
storm/Nimbus.py
krux/python-storm
1a9c06d3580a2b1bc2c27174d892a6dbcaa9e0bd
[ "BSD-3-Clause" ]
null
null
null
storm/Nimbus.py
krux/python-storm
1a9c06d3580a2b1bc2c27174d892a6dbcaa9e0bd
[ "BSD-3-Clause" ]
null
null
null
# # Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TException, TApplicationException from ttypes import * from thrift.Thrift import TProcessor from thrift.transport import TTransport ...
30.182346
188
0.668508
11,134
98,817
5.684839
0.015538
0.017063
0.030713
0.023888
0.890339
0.865803
0.843669
0.828723
0.820855
0.819986
0
0.002812
0.215509
98,817
3,273
189
30.191567
0.813676
0.019905
0
0.866403
1
0
0.028866
0.004118
0
0
0
0
0
1
0.134387
false
0.007115
0.002372
0.042688
0.263241
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
fc0c40028b9c4945addfec469dd5871c8f82e05b
52
py
Python
gemucator/__init__.py
philipwfowler/genucator
d43a79afe1aa81ca24d7ab4370ed230e08aa89bf
[ "MIT" ]
null
null
null
gemucator/__init__.py
philipwfowler/genucator
d43a79afe1aa81ca24d7ab4370ed230e08aa89bf
[ "MIT" ]
null
null
null
gemucator/__init__.py
philipwfowler/genucator
d43a79afe1aa81ca24d7ab4370ed230e08aa89bf
[ "MIT" ]
null
null
null
#! /usr/bin/env python from .core import gemucator
13
27
0.730769
8
52
4.75
1
0
0
0
0
0
0
0
0
0
0
0
0.153846
52
3
28
17.333333
0.863636
0.403846
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
fc0db1d4c1d538c8a8da3398414e346edd37ebe8
166
py
Python
client/checkout/schema/types.py
daniel-waruo/e-commerse-api
6b080039398fb4099a34335317d649dd67783f63
[ "Apache-2.0" ]
6
2019-11-21T10:09:49.000Z
2021-06-19T09:52:59.000Z
client/checkout/schema/types.py
daniel-waruo/e-commerse-api
6b080039398fb4099a34335317d649dd67783f63
[ "Apache-2.0" ]
null
null
null
client/checkout/schema/types.py
daniel-waruo/e-commerse-api
6b080039398fb4099a34335317d649dd67783f63
[ "Apache-2.0" ]
null
null
null
import graphene from graphene_django import DjangoObjectType from graphene_django.converter import convert_django_field from pyuploadcare.dj.models import ImageField
33.2
58
0.89759
21
166
6.904762
0.571429
0.165517
0.248276
0
0
0
0
0
0
0
0
0
0.084337
166
4
59
41.5
0.953947
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
fc0e5695633a29e1789efba016b66fc96fcedf4a
15,518
py
Python
pangenome_fluidity.py
PlantDr430/CSU_scripts
8ed9e1dc014b099ce68d77ce5c8747217c230e61
[ "MIT" ]
1
2020-03-02T04:26:21.000Z
2020-03-02T04:26:21.000Z
pangenome_fluidity.py
PlantDr430/CSU_scripts
8ed9e1dc014b099ce68d77ce5c8747217c230e61
[ "MIT" ]
null
null
null
pangenome_fluidity.py
PlantDr430/CSU_scripts
8ed9e1dc014b099ce68d77ce5c8747217c230e61
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ''' This script follows formulas put forth in Kislyuk et al. (2011) to calculate genome fluidity of a pangenome dataset. Variance and standard error are estimated as total variance containing both the variance due to subsampling all possible combinations (without replacement) of N genomes from th...
46.322388
135
0.669738
2,205
15,518
4.533787
0.203628
0.024507
0.036011
0.035211
0.264179
0.242173
0.209963
0.181354
0.157847
0.079424
0
0.012767
0.222709
15,518
334
136
46.461078
0.816034
0.199704
0
0.143911
0
0
0.096287
0.011213
0
0
0
0
0
1
0.04428
false
0.01476
0.03321
0.00738
0.114391
0.01845
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc100b64b37cc26f7af79a394d9e388ede43f204
7,610
py
Python
osvolbackup/backup.py
CCSGroupInternational/osvolbackup
d0d93812a729acdb6c961c6bdd1cc2cb5c9c87f5
[ "Apache-2.0" ]
1
2019-02-27T12:59:49.000Z
2019-02-27T12:59:49.000Z
osvolbackup/backup.py
CCSGroupInternational/osvolbackup
d0d93812a729acdb6c961c6bdd1cc2cb5c9c87f5
[ "Apache-2.0" ]
4
2019-03-07T09:31:51.000Z
2019-03-12T15:19:40.000Z
osvolbackup/backup.py
CCSGroupInternational/osvolbackup
d0d93812a729acdb6c961c6bdd1cc2cb5c9c87f5
[ "Apache-2.0" ]
null
null
null
# # This module provides the Instance class that encapsulate some complex server instances related operations # from __future__ import print_function from json import loads from neutronclient.v2_0 import client as neutron_client from novaclient import client as nova_client from cinderclient import client as cinder_cli...
42.044199
107
0.642181
906
7,610
5.144592
0.233996
0.025746
0.018022
0.022313
0.14675
0.119288
0.060931
0.021026
0.021026
0
0
0.002676
0.263469
7,610
180
108
42.277778
0.828903
0.109724
0
0.128788
0
0
0.055547
0
0
0
0
0
0
1
0.075758
false
0.015152
0.068182
0.015152
0.234848
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc107e595b21342f82e5161a579e155e45e95a50
13,314
py
Python
gammapy/estimators/profile.py
JohannesBuchner/gammapy
48769519f04b7df7b3e4580ebb61396445790bc3
[ "BSD-3-Clause" ]
1
2021-02-02T21:35:27.000Z
2021-02-02T21:35:27.000Z
gammapy/estimators/profile.py
kabartay/gammapy
015206d2418b1d254f1c9d3ea819ab0c5ece99e9
[ "BSD-3-Clause" ]
2
2018-08-09T20:49:13.000Z
2019-01-23T17:30:49.000Z
gammapy/estimators/profile.py
kabartay/gammapy
015206d2418b1d254f1c9d3ea819ab0c5ece99e9
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Tools to create profiles (i.e. 1D "slices" from 2D images).""" import numpy as np import scipy.ndimage from astropy import units as u from astropy.convolution import Box1DKernel, Gaussian1DKernel from astropy.coordinates import Angle from astropy.table ...
31.928058
84
0.570828
1,573
13,314
4.724094
0.191354
0.036334
0.019378
0.013457
0.254475
0.229579
0.173866
0.130803
0.111425
0.088817
0
0.006627
0.308623
13,314
416
85
32.004808
0.800652
0.326048
0
0.248649
0
0
0.096675
0.005192
0
0
0
0.002404
0
1
0.086486
false
0
0.054054
0
0.243243
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc109f21dbb2efc4b477a59e275c911d6c56316e
221
py
Python
ABC/abc001-abc050/abc007/b.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
ABC/abc001-abc050/abc007/b.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
ABC/abc001-abc050/abc007/b.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- def main(): a = input() # See: # https://www.slideshare.net/chokudai/abc007 if a == 'a': print('-1') else: print('a') if __name__ == '__main__': main()
13
48
0.466063
26
221
3.653846
0.730769
0
0
0
0
0
0
0
0
0
0
0.033333
0.321267
221
16
49
13.8125
0.6
0.312217
0
0
0
0
0.081081
0
0
0
0
0
0
1
0.125
false
0
0
0
0.125
0.25
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
fc1121d14735ee8c8c982d686f96751beb66af86
7,270
py
Python
env/lib/python3.8/site-packages/versatileimagefield/mixins.py
crimergio/linux_test
5e688a06884ab10b4eaaad10a5d0df417a1c9b31
[ "CC-BY-4.0" ]
1
2021-04-07T16:25:20.000Z
2021-04-07T16:25:20.000Z
env/lib/python3.8/site-packages/versatileimagefield/mixins.py
crimergio/linux_test
5e688a06884ab10b4eaaad10a5d0df417a1c9b31
[ "CC-BY-4.0" ]
9
2021-03-19T03:06:53.000Z
2022-03-12T00:37:04.000Z
myvenv/lib/python3.6/site-packages/versatileimagefield/mixins.py
yog240597/saleor
b75a23827a4ec2ce91637f0afe6808c9d09da00a
[ "CC-BY-4.0" ]
1
2021-04-23T15:01:05.000Z
2021-04-23T15:01:05.000Z
"""versatileimagefield Field mixins.""" import os import re from .datastructures import FilterLibrary from .registry import autodiscover, versatileimagefield_registry from .settings import ( cache, VERSATILEIMAGEFIELD_CREATE_ON_DEMAND, VERSATILEIMAGEFIELD_SIZED_DIRNAME, VERSATILEIMAGEFIELD_FILTERED_DIR...
34.454976
90
0.599037
796
7,270
5.202261
0.207286
0.03091
0.054093
0.021734
0.38469
0.271674
0.229896
0.137648
0.085004
0.085004
0
0.001601
0.312792
7,270
210
91
34.619048
0.827262
0.169051
0
0.116883
0
0
0.025887
0.011829
0
0
0
0
0.006494
1
0.097403
false
0.006494
0.038961
0
0.194805
0.006494
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc11ec393a7dcebc05211e5be317a56b62dc07c0
9,450
py
Python
differential_privacy/run_federated.py
HanGuo97/federated
7e64bfe86bb606fad2ea7bc2a0f8ebdb565546f9
[ "BSD-3-Clause" ]
330
2020-09-14T23:10:16.000Z
2022-03-30T19:49:19.000Z
differential_privacy/run_federated.py
HanGuo97/federated
7e64bfe86bb606fad2ea7bc2a0f8ebdb565546f9
[ "BSD-3-Clause" ]
52
2020-09-30T06:10:51.000Z
2022-03-31T19:25:16.000Z
differential_privacy/run_federated.py
HanGuo97/federated
7e64bfe86bb606fad2ea7bc2a0f8ebdb565546f9
[ "BSD-3-Clause" ]
119
2020-09-24T04:54:46.000Z
2022-03-31T21:46:57.000Z
# Copyright 2020, Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
42.760181
91
0.742963
1,211
9,450
5.500413
0.231214
0.026422
0.030026
0.036031
0.25912
0.218135
0.183756
0.143522
0.130911
0.110194
0
0.004398
0.181905
9,450
220
92
42.954545
0.857198
0.09619
0
0.153846
0
0
0.202561
0.028669
0
0
0
0
0
1
0.023669
false
0
0.059172
0.011834
0.094675
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc11f9759b82ea3a650e3c9261504b9c80e953f0
417
py
Python
waymo_kitti_converter/tools/visual_point_cloud.py
anhvth/Pseudo_Lidar_V2
d7a29ffc811e315df25bba2a43acf288d4ceb30e
[ "MIT" ]
null
null
null
waymo_kitti_converter/tools/visual_point_cloud.py
anhvth/Pseudo_Lidar_V2
d7a29ffc811e315df25bba2a43acf288d4ceb30e
[ "MIT" ]
null
null
null
waymo_kitti_converter/tools/visual_point_cloud.py
anhvth/Pseudo_Lidar_V2
d7a29ffc811e315df25bba2a43acf288d4ceb30e
[ "MIT" ]
null
null
null
import open3d as o3d import numpy as np pc_load_pathname = '/home/caizhongang/github/waymo_kitti_converter/007283-000.bin' pc = np.fromfile(pc_load_pathname, dtype=np.float32).reshape(-1, 3) pcd = o3d.geometry.PointCloud() pcd.points = o3d.utility.Vector3dVector(pc) axis = o3d.geometry.TriangleMesh.create_coordinat...
34.75
82
0.781775
63
417
5.031746
0.666667
0.037855
0.088328
0
0
0
0
0
0
0
0
0.063158
0.088729
417
11
83
37.909091
0.771053
0
0
0
0
0
0.146283
0.146283
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc11f9bf036f8314167de520f758c42b9fa4aa63
2,306
py
Python
designate-8.0.0/designate/tests/test_api/test_v2/test_limits.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
145
2015-01-02T09:35:53.000Z
2021-12-14T17:03:53.000Z
designate/tests/test_api/test_v2/test_limits.py
sapcc/designate
c3f084751006a2fe7562f137930542c4759d6fd9
[ "Apache-2.0" ]
6
2015-03-15T00:22:27.000Z
2019-12-16T09:37:38.000Z
designate/tests/test_api/test_v2/test_limits.py
sapcc/designate
c3f084751006a2fe7562f137930542c4759d6fd9
[ "Apache-2.0" ]
109
2015-01-13T16:47:34.000Z
2021-03-15T13:18:48.000Z
# Copyright 2013 Hewlett-Packard Development Company, L.P. # # Author: Kiall Mac Innes <kiall@managedit.ie> # # 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/lice...
41.927273
76
0.667823
274
2,306
5.448905
0.434307
0.072338
0.085733
0.112525
0.312793
0.251172
0.134628
0
0
0
0
0.009106
0.238075
2,306
54
77
42.703704
0.840637
0.270598
0
0.15625
0
0
0.183073
0.042617
0
0
0
0
0.5
1
0.03125
false
0
0.0625
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
fc1210baa0e8a8267a154dad6a47b17fe2942673
1,696
py
Python
pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGLContext/scenegraph/nodepath.py
alexus37/AugmentedRealityChess
7f600ad153270feff12aa7aa86d7ed0a49ebc71c
[ "MIT" ]
1
2015-07-12T07:24:17.000Z
2015-07-12T07:24:17.000Z
pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGLContext/scenegraph/nodepath.py
alexus37/AugmentedRealityChess
7f600ad153270feff12aa7aa86d7ed0a49ebc71c
[ "MIT" ]
null
null
null
pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGLContext/scenegraph/nodepath.py
alexus37/AugmentedRealityChess
7f600ad153270feff12aa7aa86d7ed0a49ebc71c
[ "MIT" ]
1
2016-02-19T21:55:53.000Z
2016-02-19T21:55:53.000Z
"""node-path implementation for OpenGLContext """ from vrml.vrml97 import nodepath, nodetypes from vrml.cache import CACHE from OpenGLContext import quaternion from OpenGL.GL import glMultMatrixf class _NodePath( object ): """OpenGLContext-specific node-path class At the moment this only adds a single method,...
32
69
0.630896
192
1,696
5.526042
0.5
0.06032
0.035815
0.043355
0
0
0
0
0
0
0
0.004223
0.301887
1,696
52
70
32.615385
0.891892
0.373231
0
0.066667
0
0
0.011423
0
0
0
0
0
0
1
0.066667
false
0.066667
0.133333
0
0.366667
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
fc12305fff510e126657094db88dd638e8718e01
1,042
py
Python
part01_basic/for_while_loop.py
ApprenticeOne/python_learn
2433726b3f164526e8a8fa18739854e052d76a2e
[ "MIT" ]
null
null
null
part01_basic/for_while_loop.py
ApprenticeOne/python_learn
2433726b3f164526e8a8fa18739854e052d76a2e
[ "MIT" ]
null
null
null
part01_basic/for_while_loop.py
ApprenticeOne/python_learn
2433726b3f164526e8a8fa18739854e052d76a2e
[ "MIT" ]
null
null
null
import random from math import sqrt sum = 0 for x in range(101): sum += x print(sum) ''' range(101) 0-100 一共101个数 range(1,101) 1-100 range(1,101,2) 1-100间的奇数 步长为2 range(100,0,-2) 100-0间的偶数 步长为-2 ''' sum = 0 for x in range(100, 0, -2): sum += x print(sum) # while # 0-100间的随机数 answer = random.randint(0, 1...
17.366667
53
0.589251
168
1,042
3.636905
0.380952
0.057283
0.02946
0.05401
0.0491
0.0491
0
0
0
0
0
0.086452
0.256238
1,042
59
54
17.661017
0.701935
0.077735
0
0.216216
0
0
0.143713
0
0
0
0
0
0
1
0
false
0
0.054054
0
0.054054
0.27027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc140cda2ae3ddb2fa94e33b0e36406cb6293308
12,340
py
Python
src/toil/batchSystems/htcondor.py
ElementGenomicsInc/toil
e29a07db194469afba3edf90ffeee8f981f7344b
[ "Apache-2.0" ]
2
2019-01-16T03:55:57.000Z
2019-01-16T04:04:38.000Z
src/toil/batchSystems/htcondor.py
ElementGenomicsInc/toil
e29a07db194469afba3edf90ffeee8f981f7344b
[ "Apache-2.0" ]
4
2018-10-02T00:39:18.000Z
2018-10-02T00:52:31.000Z
src/toil/batchSystems/htcondor.py
ElementGenomicsInc/toil
e29a07db194469afba3edf90ffeee8f981f7344b
[ "Apache-2.0" ]
2
2018-10-09T06:31:52.000Z
2018-11-16T00:49:40.000Z
# Copyright (C) 2018, HTCondor Team, Computer Sciences Department, # University of Wisconsin-Madison, WI. # # 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/license...
40.19544
121
0.569044
1,296
12,340
5.374228
0.299383
0.015075
0.017085
0.018665
0.141278
0.123331
0.103518
0.087581
0.06748
0.06748
0
0.008156
0.344246
12,340
306
122
40.326797
0.85257
0.257293
0
0.168539
0
0
0.148749
0.002557
0
0
0
0.006536
0
1
0.05618
false
0.005618
0.05618
0
0.196629
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc15adfda30a5ded3481fe570a59a41b60da2bcc
26,347
py
Python
paddlespeech/t2s/modules/tacotron2/decoder.py
alanlv/PaddleSpeech
7413c9e48ac77fdece45e0b4ffe41f7746ef0583
[ "Apache-2.0" ]
null
null
null
paddlespeech/t2s/modules/tacotron2/decoder.py
alanlv/PaddleSpeech
7413c9e48ac77fdece45e0b4ffe41f7746ef0583
[ "Apache-2.0" ]
null
null
null
paddlespeech/t2s/modules/tacotron2/decoder.py
alanlv/PaddleSpeech
7413c9e48ac77fdece45e0b4ffe41f7746ef0583
[ "Apache-2.0" ]
null
null
null
# 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...
36.290634
87
0.537405
3,109
26,347
4.391123
0.122869
0.012892
0.012306
0.01758
0.55274
0.508204
0.463522
0.437811
0.391737
0.372107
0
0.016786
0.371427
26,347
725
88
36.34069
0.80756
0.355866
0
0.514045
0
0
0.004039
0
0
0
0
0
0.002809
1
0.033708
false
0
0.014045
0
0.087079
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc165549752f98bd300323b664ce1555196f65d8
661
py
Python
pyblazing/__init__.py
Mattlk13/pyBlazing
5c3042c510ab17e9f9d1647e1873d3d04313d900
[ "Apache-2.0" ]
null
null
null
pyblazing/__init__.py
Mattlk13/pyBlazing
5c3042c510ab17e9f9d1647e1873d3d04313d900
[ "Apache-2.0" ]
null
null
null
pyblazing/__init__.py
Mattlk13/pyBlazing
5c3042c510ab17e9f9d1647e1873d3d04313d900
[ "Apache-2.0" ]
null
null
null
from .api import run_query_get_token from .api import convert_to_dask from .api import run_query_get_results from .api import run_query_get_concat_results from .api import register_file_system from .api import deregister_file_system from .api import FileSystemType, DriverType, EncryptionType from .api import SchemaFro...
33.05
60
0.857791
104
661
5.134615
0.346154
0.196629
0.365169
0.089888
0.423221
0.258427
0
0
0
0
0
0.003401
0.110439
661
19
61
34.789474
0.904762
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
1
0
0
4
fc17f33a601367758a32e2d5faa7f26cd43a27dc
1,938
py
Python
bootstrap/p1.5.0/src/common/const.py
apurwaj2/df-on-k8s
1aecb0bc293d008c5a2384df32ad434bfcc51caa
[ "Apache-2.0" ]
null
null
null
bootstrap/p1.5.0/src/common/const.py
apurwaj2/df-on-k8s
1aecb0bc293d008c5a2384df32ad434bfcc51caa
[ "Apache-2.0" ]
null
null
null
bootstrap/p1.5.0/src/common/const.py
apurwaj2/df-on-k8s
1aecb0bc293d008c5a2384df32ad434bfcc51caa
[ "Apache-2.0" ]
null
null
null
class Constants(object): LOGGER_CONF = "common/mapr_conf/logger.yml" USERNAME = "mapr" GROUPNAME = "mapr" USERID = 5000 GROUPID = 5000 ADMIN_USERNAME = "custadmin" ADMIN_GROUPNAME = "custadmin" ADMIN_USERID = 7000 ADMIN_GROUPID = 7000 ADMIN_PASS = "mapr" MYSQL_USER = "admin"...
29.363636
108
0.639835
238
1,938
4.978992
0.57563
0.027004
0.01519
0.021941
0.032068
0
0
0
0
0
0
0.032832
0.245614
1,938
65
109
29.815385
0.777702
0.055728
0
0
0
0
0.493151
0.098082
0
0
0
0
0
1
0.017241
false
0.068966
0
0.017241
0.637931
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
fc180c50e2be52fc8b9a19b64b0af4e3927de263
12,367
py
Python
dataset/scan2cad/s2c_collect_pgroup.py
jeonghyunkeem/PointGroup
fa90830259aeb37d2e0f203471552d2f43cbc60b
[ "Apache-2.0" ]
null
null
null
dataset/scan2cad/s2c_collect_pgroup.py
jeonghyunkeem/PointGroup
fa90830259aeb37d2e0f203471552d2f43cbc60b
[ "Apache-2.0" ]
null
null
null
dataset/scan2cad/s2c_collect_pgroup.py
jeonghyunkeem/PointGroup
fa90830259aeb37d2e0f203471552d2f43cbc60b
[ "Apache-2.0" ]
null
null
null
# Jeonghyun Kim, UVR KAIST @jeonghyunct.kaist.ac.kr import os, sys import json import h5py import numpy as np import quaternion import torch from torch.utils.data import Dataset BASE_DIR_1 = os.path.dirname(os.path.abspath(__file__)) # scan2cad BASE_DIR = os.path.dirname(BASE_DIR_1) # dataset ROOT_DIR = os.path.dirn...
38.052308
147
0.537479
1,656
12,367
3.808575
0.199275
0.006342
0.017441
0.011416
0.181227
0.143174
0.088315
0.079436
0.068654
0.056604
0
0.02756
0.307593
12,367
325
148
38.052308
0.708981
0.103582
0
0.112971
0
0
0.086501
0.004132
0
0
0
0
0.008368
1
0.041841
false
0
0.041841
0.004184
0.121339
0.054393
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc18327783ac4d0615c52f0106bc59f803cb607d
3,590
py
Python
nappy/msd2diff.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
27
2015-10-05T06:21:28.000Z
2021-10-04T17:08:23.000Z
nappy/msd2diff.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
4
2020-11-08T12:39:38.000Z
2021-01-10T22:31:36.000Z
nappy/msd2diff.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
4
2015-01-29T23:10:34.000Z
2022-01-08T05:20:13.000Z
#!/usr/bin/env python """ Compute diffusion coefficient from MSD data. Time interval, DT, is obtained from in.pmd in the same directory. Usage: msd2diff.py [options] MSD_FILE Options: -h, --help Show this message and exit. -o, --offset OFFSET Offset of given data. [default: 0] --plot Plot ...
29.186992
69
0.567688
544
3,590
3.647059
0.338235
0.00756
0.015121
0.03125
0.058468
0.032258
0.032258
0.032258
0.032258
0
0
0.033153
0.277437
3,590
122
70
29.42623
0.731689
0.196657
0
0.071429
0
0
0.108184
0
0
0
0
0
0
1
0.035714
false
0
0.071429
0
0.142857
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc186568dd52a9df9e70c87a7b31fe1c1c3e1f4d
1,172
py
Python
5/part2.py
jcsesznegi/advent-of-code-2017
9710e184e092b82aa798076b9ce3915c6e42758d
[ "MIT" ]
1
2020-04-12T17:54:52.000Z
2020-04-12T17:54:52.000Z
5/part2.py
jcsesznegi/advent-of-code-2017
9710e184e092b82aa798076b9ce3915c6e42758d
[ "MIT" ]
null
null
null
5/part2.py
jcsesznegi/advent-of-code-2017
9710e184e092b82aa798076b9ce3915c6e42758d
[ "MIT" ]
null
null
null
import os f = open(os.path.join(os.path.dirname(__file__), '../input/5/part2.txt'), 'r') class InstructionSet: def __init__(self, instructions): self.instructions = instructions self.currentIndex = 0 self.numberSteps = 0 def _changeOffsetValue(self, index): if self.instructi...
23.44
78
0.619454
118
1,172
6
0.381356
0.158192
0.084746
0.062147
0
0
0
0
0
0
0
0.010453
0.265358
1,172
49
79
23.918367
0.811847
0
0
0.057143
0
0
0.024744
0
0
0
0
0
0
1
0.171429
false
0
0.028571
0.028571
0.257143
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc188927db9f5bd43bd5abe64681e14292f26e08
269
py
Python
features/steps/basic_account_add_bdd.py
MhmdRyhn/behavior_test
868252e0b31596e0bff4a969745cf3b633c13695
[ "MIT" ]
null
null
null
features/steps/basic_account_add_bdd.py
MhmdRyhn/behavior_test
868252e0b31596e0bff4a969745cf3b633c13695
[ "MIT" ]
null
null
null
features/steps/basic_account_add_bdd.py
MhmdRyhn/behavior_test
868252e0b31596e0bff4a969745cf3b633c13695
[ "MIT" ]
null
null
null
import behave @behave.when('I add $1200 to my account') def add_usd_1200(context): context.account.add_cash(amount=1200) @behave.then('It becomes $3200 in my account') def check_for_increase_to_usd_1880(context): assert context.account.current_cash == 3200
22.416667
47
0.762082
43
269
4.55814
0.581395
0.091837
0.122449
0
0
0
0
0
0
0
0
0.102564
0.130112
269
11
48
24.454545
0.735043
0
0
0
0
0
0.204461
0
0
0
0
0
0.142857
1
0.285714
false
0
0.142857
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
fc18a51ed3a62618a4f8d1b8d53f53c96ae69319
11,944
py
Python
tests/test_sync_module.py
naveengh6/blinkpy
e821687f2b7590b13532ac596c31e8eaa6c7b69a
[ "MIT" ]
272
2017-01-29T18:43:25.000Z
2022-03-27T20:43:50.000Z
tests/test_sync_module.py
naveengh6/blinkpy
e821687f2b7590b13532ac596c31e8eaa6c7b69a
[ "MIT" ]
434
2017-01-23T20:22:51.000Z
2022-03-31T18:10:36.000Z
tests/test_sync_module.py
naveengh6/blinkpy
e821687f2b7590b13532ac596c31e8eaa6c7b69a
[ "MIT" ]
77
2017-04-15T17:04:04.000Z
2022-03-04T10:03:39.000Z
"""Tests camera and system functions.""" import unittest from unittest import mock from blinkpy.blinkpy import Blink from blinkpy.helpers.util import BlinkURLHandler from blinkpy.sync_module import BlinkSyncModule, BlinkOwl from blinkpy.camera import BlinkCamera, BlinkCameraMini @mock.patch("blinkpy.auth.Auth.query"...
40.488136
83
0.592264
1,399
11,944
4.857756
0.107219
0.083431
0.103296
0.132578
0.748823
0.67319
0.609918
0.573278
0.51236
0.471895
0
0.029636
0.262642
11,944
294
84
40.62585
0.742023
0.080124
0
0.466102
0
0
0.11063
0.022845
0
0
0
0
0.241525
1
0.101695
false
0
0.025424
0
0.131356
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc1a91eb27f4ff382a15602726e82a1122f6307d
2,807
py
Python
dymos/examples/min_time_climb/aero/aero.py
naylor-b/dymos
56ee72041056ae20c3332d060e291c4da93844b1
[ "Apache-2.0" ]
null
null
null
dymos/examples/min_time_climb/aero/aero.py
naylor-b/dymos
56ee72041056ae20c3332d060e291c4da93844b1
[ "Apache-2.0" ]
null
null
null
dymos/examples/min_time_climb/aero/aero.py
naylor-b/dymos
56ee72041056ae20c3332d060e291c4da93844b1
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import numpy as np from openmdao.api import Group from .dynamic_pressure_comp import DynamicPressureComp from .lift_drag_force_comp import LiftDragForceComp from .cd0_comp import CD0Comp from .kappa_comp import KappaComp from .cla_comp import CLaComp from .cl_comp import CLComp...
34.231707
79
0.530816
292
2,807
4.890411
0.321918
0.056022
0.089636
0.112045
0.17437
0.090336
0.090336
0.090336
0
0
0
0.004494
0.365871
2,807
81
80
34.654321
0.797753
0.121838
0
0.061224
0
0
0.090568
0
0
0
0
0
0
1
0.040816
false
0
0.22449
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc1b9449290073ccef5e51dfe2bdedbc18900050
7,035
py
Python
stats.py
jakeb1996/SBS
3bcc0017d22674d4290be1b272aeac4836f0d5ec
[ "MIT" ]
null
null
null
stats.py
jakeb1996/SBS
3bcc0017d22674d4290be1b272aeac4836f0d5ec
[ "MIT" ]
null
null
null
stats.py
jakeb1996/SBS
3bcc0017d22674d4290be1b272aeac4836f0d5ec
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import argparse, csv, numpy, time, os, re def main(resultsFile, toolName): filesToCalc = [] toolNames = [] if os.path.isfile(resultsFile): # the user must have defined an exact file to plot filesToCalc.append(resultsFile) toolNames.appen...
33.341232
338
0.519119
759
7,035
4.749671
0.329381
0.022191
0.021637
0.023578
0.147295
0.058807
0.058807
0.038835
0.038835
0.023301
0
0.007388
0.345842
7,035
210
339
33.5
0.775967
0.157072
0
0.194444
0
0.006944
0.198302
0.016299
0
0
0
0
0
0
null
null
0
0.013889
null
null
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fc1d23d6b61a9e5c408d579ed37655541819b9f0
23,402
py
Python
callback_handlers.py
andrey18106/vocabulary_bot
68a5835fb69e255df1766c2ed5c5228daaa4f06f
[ "MIT" ]
null
null
null
callback_handlers.py
andrey18106/vocabulary_bot
68a5835fb69e255df1766c2ed5c5228daaa4f06f
[ "MIT" ]
null
null
null
callback_handlers.py
andrey18106/vocabulary_bot
68a5835fb69e255df1766c2ed5c5228daaa4f06f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # ===== Default imports ===== import asyncio import logging # ===== External libs imports ===== from aiogram import Bot, Dispatcher, types from aiogram.dispatcher import FSMContext # ===== Local imports ===== from analytics import BotAnalytics from db_manager import DbManager from lang_man...
61.746702
119
0.563499
2,437
23,402
5.135412
0.076734
0.048582
0.029005
0.027567
0.76684
0.752697
0.71674
0.676468
0.632761
0.590811
0
0.002748
0.331425
23,402
378
120
61.910053
0.797137
0.009529
0
0.523669
0
0
0.084704
0.006529
0
0
0
0
0
1
0.005917
false
0
0.038462
0
0.047337
0
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
fc1d28c4600f03845019e2280e8c9b05ec587f01
930
py
Python
1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/06_Nested-Loops/02.Exercise-06-Special-Numbers.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/06_Nested-Loops/02.Exercise-06-Special-Numbers.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/06_Nested-Loops/02.Exercise-06-Special-Numbers.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
# 6. Специални числа # Да се напише програма, която чете едно цяло число N, въведено от потребителя, и генерира всички възможни "специални" # числа от 1111 до 9999. За да бъде “специално” едно число, то трябва да отговаря на следното условие: # • N да се дели на всяка една от неговите цифри без остатък. # Пример: при N...
35.769231
130
0.665591
157
930
3.88535
0.522293
0.081967
0.091803
0.063934
0
0
0
0
0
0
0
0.061254
0.245161
930
25
131
37.2
0.80057
0.608602
0
0
0
0
0.054286
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
1
0
fc1d95b3a3f568e9cf0561a8f283914e5b1db140
1,815
py
Python
skopt/tests/test_transformers.py
sqbl/scikit-optimize
c1866d5a9ad67efe93ac99736bfc2dc659b561d4
[ "BSD-3-Clause" ]
null
null
null
skopt/tests/test_transformers.py
sqbl/scikit-optimize
c1866d5a9ad67efe93ac99736bfc2dc659b561d4
[ "BSD-3-Clause" ]
null
null
null
skopt/tests/test_transformers.py
sqbl/scikit-optimize
c1866d5a9ad67efe93ac99736bfc2dc659b561d4
[ "BSD-3-Clause" ]
null
null
null
import pytest import numbers import numpy as np from numpy.testing import assert_raises from numpy.testing import assert_array_equal from numpy.testing import assert_equal from numpy.testing import assert_raises_regex from skopt.space import LogN, Normalize @pytest.mark.fast_test def test_logn2_integer(): transf...
34.245283
72
0.738292
256
1,815
5.074219
0.203125
0.21555
0.135489
0.203233
0.836798
0.734411
0.482679
0.449577
0.378753
0.378753
0
0.049351
0.151515
1,815
52
73
34.903846
0.794156
0
0
0.380952
0
0
0
0
0
0
0
0
0.52381
1
0.095238
false
0
0.190476
0
0.285714
0
0
0
0
null
1
0
1
1
1
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
5
fc1f1d11a9a9d323ee25ccd432c9e05f59ae89c2
29,526
py
Python
tokenization_numerical.py
dspoka/mnm
f212e8d5697a4556c6469d469a2930b203667828
[ "MIT" ]
1
2021-07-08T04:18:30.000Z
2021-07-08T04:18:30.000Z
tokenization_numerical.py
dspoka/mnm
f212e8d5697a4556c6469d469a2930b203667828
[ "MIT" ]
1
2021-08-24T03:36:53.000Z
2021-08-24T03:36:53.000Z
tokenization_numerical.py
dspoka/mnm
f212e8d5697a4556c6469d469a2930b203667828
[ "MIT" ]
1
2021-07-08T04:18:32.000Z
2021-07-08T04:18:32.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # # 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/LICEN...
39.953992
183
0.601605
3,605
29,526
4.772538
0.170042
0.022087
0.015984
0.013252
0.384946
0.328277
0.280732
0.242371
0.21517
0.200407
0
0.025797
0.294994
29,526
739
184
39.953992
0.80073
0.264005
0
0.227176
0
0.027601
0.151609
0.031277
0
0
0.005348
0
0.006369
1
0.063694
false
0.002123
0.016985
0.004246
0.178344
0.004246
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc1f29f43c293c82628f38a87129e37c79fd02ea
6,694
py
Python
dipole/splitting_dipole.py
wheelerMT/spin-1_BEC
e8ea34699b4001847c6b4c7451c11be241ce598f
[ "MIT" ]
null
null
null
dipole/splitting_dipole.py
wheelerMT/spin-1_BEC
e8ea34699b4001847c6b4c7451c11be241ce598f
[ "MIT" ]
null
null
null
dipole/splitting_dipole.py
wheelerMT/spin-1_BEC
e8ea34699b4001847c6b4c7451c11be241ce598f
[ "MIT" ]
null
null
null
import numpy as np import multiprocessing as mp import pyfftw from numpy import pi, exp, sqrt, sin, cos, conj, arctan, tanh, tan from numpy import heaviside as heav from include import helper import h5py # ---------Spatial and potential parameters-------------- Mx = My = 64 Nx = Ny = 128 # Number of grid pts dx = dy...
34.864583
114
0.586047
1,105
6,694
3.366516
0.182805
0.032258
0.036559
0.035753
0.412634
0.396237
0.307796
0.262903
0.204839
0.174194
0
0.039799
0.22677
6,694
191
115
35.04712
0.678903
0.168659
0
0.190476
0
0
0.046352
0.013942
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
0.007937
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc1fa639ebbd112d3143f8455e253cf35ff2e2c9
1,033
py
Python
src/main/resources/scripts/crumbDiag.py
cam-laf/vectorcast-execution-plugin
fd54e8580886084d040d21fa809be8a609d44d8e
[ "MIT" ]
4
2019-06-28T22:46:06.000Z
2020-05-28T08:53:37.000Z
src/main/resources/scripts/crumbDiag.py
cam-laf/vectorcast-execution-plugin
fd54e8580886084d040d21fa809be8a609d44d8e
[ "MIT" ]
18
2018-09-26T15:32:11.000Z
2021-10-01T21:57:14.000Z
src/main/resources/scripts/crumbDiag.py
cam-laf/vectorcast-execution-plugin
fd54e8580886084d040d21fa809be8a609d44d8e
[ "MIT" ]
11
2017-03-19T18:37:16.000Z
2020-04-06T19:46:09.000Z
from __future__ import print_function import requests import sys import os verbose=True try: username=os.environ['USERNAME'] password=os.environ['PASSWORD'] except: print("Crumb Diaganostic requires USERNAME/PASSWORD to be set as environment variables") sys.exit(-1) jenkins_url=os.environ['JENKINS_URL'...
35.62069
120
0.683446
131
1,033
5.29771
0.541985
0.057637
0.023055
0
0
0
0
0
0
0
0
0.008383
0.191675
1,033
28
121
36.892857
0.822754
0
0
0.074074
0
0
0.346563
0.062924
0
0
0
0
0
1
0
false
0.111111
0.148148
0
0.148148
0.296296
0
0
0
null
0
0
0
0
0
0
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
fc20aff0ea13fa9ee03eb24e8c0870f91ab872ab
219
py
Python
URI/1-Beginner/1099.py
vicenteneto/online-judge-solutions
4176e2387658f083b980d7b49bc98300a4c28411
[ "MIT" ]
null
null
null
URI/1-Beginner/1099.py
vicenteneto/online-judge-solutions
4176e2387658f083b980d7b49bc98300a4c28411
[ "MIT" ]
null
null
null
URI/1-Beginner/1099.py
vicenteneto/online-judge-solutions
4176e2387658f083b980d7b49bc98300a4c28411
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- for i in range(int(raw_input())): x, y = [int(x) for x in raw_input().split()] if x > y: x, y = y, x x += 1 if x % 2 == 0 else 2 print sum([j for j in range(x, y, 2)])
19.909091
48
0.465753
45
219
2.222222
0.466667
0.08
0
0
0
0
0
0
0
0
0
0.040816
0.328767
219
10
49
21.9
0.639456
0.09589
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fc2274d5bd59faf9232572f6514dafd536557966
625
py
Python
mock_file.py
MahirGulzar/fpointnet-tiny
e79406f648573d50fa3988ca987db652ab1286b8
[ "MIT" ]
null
null
null
mock_file.py
MahirGulzar/fpointnet-tiny
e79406f648573d50fa3988ca987db652ab1286b8
[ "MIT" ]
null
null
null
mock_file.py
MahirGulzar/fpointnet-tiny
e79406f648573d50fa3988ca987db652ab1286b8
[ "MIT" ]
null
null
null
import tensorflow as tf FLIPPING_TENSOR = tf.constant([1.0, -1.0, 1.0]) @tf.function def sample_data(points, labels, num_point): if tf.random.uniform(shape=()) >= 0.5: return points * FLIPPING_TENSOR, labels return points, labels mock_data = tf.constant([ [1., 2., 3.], [4., 5., 6.], [7....
19.53125
69
0.6048
95
625
3.831579
0.494737
0.021978
0.090659
0.065934
0.071429
0
0
0
0
0
0
0.05071
0.2112
625
32
70
19.53125
0.687627
0
0
0.086957
0
0
0
0
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.173913
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc23560a0050cb2a7fdf80d872323f5e40124603
118
py
Python
myapp.py
dataholiks/flask_heroku_scheduler
d2b4c2c8fdee066aea729c1566bfbaf52c068557
[ "MIT" ]
7
2019-03-20T01:48:42.000Z
2021-07-02T15:51:36.000Z
myapp.py
dataholiks/flask_heroku_scheduler
d2b4c2c8fdee066aea729c1566bfbaf52c068557
[ "MIT" ]
null
null
null
myapp.py
dataholiks/flask_heroku_scheduler
d2b4c2c8fdee066aea729c1566bfbaf52c068557
[ "MIT" ]
1
2020-09-17T06:36:24.000Z
2020-09-17T06:36:24.000Z
from flask import Flask app = Flask(__name__) @app.route('/') def index(): return 'This is the app index page.'
14.75
40
0.669492
18
118
4.166667
0.722222
0
0
0
0
0
0
0
0
0
0
0
0.194915
118
7
41
16.857143
0.789474
0
0
0
0
0
0.237288
0
0
0
0
0
0
1
0.2
false
0
0.2
0.2
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
4
fc241e5e9d6a198e302aa50f27135ed63d4ecd94
629
py
Python
day_ok/schedule/migrations/0027_auto_20210216_1337.py
bostud/day_ok
2bcee68252b698f5818808d1766fb3ec3f07fce8
[ "MIT" ]
null
null
null
day_ok/schedule/migrations/0027_auto_20210216_1337.py
bostud/day_ok
2bcee68252b698f5818808d1766fb3ec3f07fce8
[ "MIT" ]
16
2021-02-27T08:36:19.000Z
2021-04-07T11:43:31.000Z
day_ok/schedule/migrations/0027_auto_20210216_1337.py
bostud/day_ok
2bcee68252b698f5818808d1766fb3ec3f07fce8
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-16 11:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('schedule', '0026_event'), ] operations = [ migrations.AlterField( model_name='group', name='students', f...
26.208333
101
0.599364
63
629
5.904762
0.650794
0.107527
0.134409
0.155914
0.241935
0.241935
0.241935
0
0
0
0
0.041575
0.27345
629
23
102
27.347826
0.772429
0.071542
0
0.235294
1
0
0.154639
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fc24427e78d6696d2cac568f07f35aa2881831bf
10,683
py
Python
Blog.py
OliverChao/PyWhoAmI
8742e0a44c4e673d038779b01b14b0cfb7d5395f
[ "MIT" ]
null
null
null
Blog.py
OliverChao/PyWhoAmI
8742e0a44c4e673d038779b01b14b0cfb7d5395f
[ "MIT" ]
null
null
null
Blog.py
OliverChao/PyWhoAmI
8742e0a44c4e673d038779b01b14b0cfb7d5395f
[ "MIT" ]
null
null
null
import aiohttp import asyncio import time import time import argparse import glob import os import shutil import random import re import requests import sys from concurrent import futures import pdfkit import time from retrying import retry from pygments import highlight from pygments.lexers import...
33.914286
114
0.529346
1,239
10,683
4.414044
0.263923
0.019016
0.008228
0.005485
0.237703
0.175901
0.167307
0.156336
0.146096
0.1322
0
0.026158
0.330806
10,683
315
115
33.914286
0.738845
0.078255
0
0.270916
0
0.01992
0.198748
0.035017
0.007968
0
0
0
0
1
0.087649
false
0.007968
0.119522
0.015936
0.326693
0.091633
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc24c739bd5d57047e0ff4c5f882289fbb007117
722
py
Python
corehq/apps/app_manager/tests/test_xml_parsing.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
corehq/apps/app_manager/tests/test_xml_parsing.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/app_manager/tests/test_xml_parsing.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
from django.test import SimpleTestCase as TestCase from corehq.apps.app_manager.models import _parse_xml import os class XMLParsingTest(TestCase): def testUnicodeError(self): """Tests a bug found in Unicode processing of a form""" file_path = os.path.join(os.path.dirname(__file__), "data", "un...
36.1
95
0.634349
95
722
4.631579
0.568421
0.054545
0.05
0.095455
0
0
0
0
0
0
0
0
0.272853
722
19
96
38
0.838095
0.112188
0
0.25
0
0
0.170079
0.037795
0
0
0
0
0
1
0.0625
false
0
0.1875
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc26055543d8ffb1b618b1328cc4ad7000d27faf
25,605
py
Python
S4/S4 Library/generated/protocolbuffers/Localization_pb2.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/generated/protocolbuffers/Localization_pb2.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/generated/protocolbuffers/Localization_pb2.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
import protocolbuffers.Consts_pb2 as Consts_pb2 from google.protobuf import descriptor, message, reflection DESCRIPTOR = descriptor.FileDescriptor(name = 'Localization.proto', package = 'EA.Sims4.Network', serialized_pb = '\n\x12Localization.proto\x12\x10EA.Sims4.Network\x1a\x0cConsts.proto"\x85\n\n\x14Loc...
218.846154
2,866
0.754189
3,485
25,605
5.313056
0.074605
0.070426
0.048391
0.044556
0.764312
0.730719
0.669097
0.588788
0.556384
0.542558
0
0.051333
0.119742
25,605
116
2,867
220.732759
0.770132
0
0
0
0
0.009174
0.252099
0.21984
0
0
0
0
0
1
0
false
0
0.018349
0
0.100917
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
fc2653dfaa764320b8eb71e09ae9ebdeb59fea8c
287
py
Python
dynamic_programming/01/01-06.py
fumiyanll23/algo-method
d86ea1d399cbc5a1db0ae49d0c82e41042f661ab
[ "MIT" ]
null
null
null
dynamic_programming/01/01-06.py
fumiyanll23/algo-method
d86ea1d399cbc5a1db0ae49d0c82e41042f661ab
[ "MIT" ]
null
null
null
dynamic_programming/01/01-06.py
fumiyanll23/algo-method
d86ea1d399cbc5a1db0ae49d0c82e41042f661ab
[ "MIT" ]
null
null
null
# input N, M = map(int, input().split()) Ds = [*map(int, input().split())] # compute dp = [False] * (N+1) for ni in range(N+1): if ni == 0: dp[ni] = True for D in Ds: if ni >= D: dp[ni] = dp[ni] or dp[ni-D] # output print("Yes" if dp[-1] else "No")
17.9375
39
0.477352
52
287
2.634615
0.480769
0.116788
0.160584
0.233577
0
0
0
0
0
0
0
0.02
0.303136
287
15
40
19.133333
0.665
0.069686
0
0
0
0
0.019011
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fc26599fa48fc7ee6289bde05e441a088fd069d9
447
py
Python
swapsort.py
ArshSood/sorting
97e1188ad626420e8ffeab992f7e98a2a91ae4b1
[ "Apache-2.0" ]
null
null
null
swapsort.py
ArshSood/sorting
97e1188ad626420e8ffeab992f7e98a2a91ae4b1
[ "Apache-2.0" ]
null
null
null
swapsort.py
ArshSood/sorting
97e1188ad626420e8ffeab992f7e98a2a91ae4b1
[ "Apache-2.0" ]
null
null
null
# sorting n=int(input()) array=list(map(int,input().split())) i=0 count=[] counter=0 while i<len(array): min=i start=i+1 while(start<len(array)): if array[start]<array[min]: min=start start+=1 if i!=min: array[i],array[min]=array[min],array[i] count.append(i) ...
19.434783
47
0.557047
71
447
3.507042
0.338028
0.128514
0.072289
0
0
0
0
0
0
0
0
0.021021
0.255034
447
22
48
20.318182
0.726727
0.01566
0
0
0
0
0.002283
0
0
0
0
0
0
1
0
false
0
0
0
0
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc267d60ba151acc5fd2bfd47790174a62234e97
1,043
py
Python
tests/news_test.py
mucciz/News
2484d91edaef181d9a6d4b86d6bee822781f931d
[ "MIT" ]
null
null
null
tests/news_test.py
mucciz/News
2484d91edaef181d9a6d4b86d6bee822781f931d
[ "MIT" ]
null
null
null
tests/news_test.py
mucciz/News
2484d91edaef181d9a6d4b86d6bee822781f931d
[ "MIT" ]
1
2019-07-29T12:45:00.000Z
2019-07-29T12:45:00.000Z
import unittest from app.models import News # News = news.News class NewsTest(unittest.TestCase): ''' Test Class to test the behaviour of the Movie class ''' def setUp(self): ''' Set up method that will run before every Test ''' self.new_news = News('abc-news','ABC NEWS...
35.965517
207
0.67977
143
1,043
4.839161
0.412587
0.070809
0.111272
0.15896
0.520231
0.445087
0.352601
0.257225
0.257225
0.257225
0
0
0.190796
1,043
28
208
37.25
0.819905
0.155321
0
0
0
0.153846
0.371429
0
0
0
0
0
0.461538
1
0.230769
false
0
0.153846
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
1
0
1
0
0
0
0
0
0
0
2
fc2698b4b0dd35425a260f9ab84e959ae7a54a73
365
py
Python
test/get-gh-comment-info.py
MQasimSarfraz/cilium
89b622cf4e0a960e27e5b1bf9f139abee25dfea0
[ "Apache-2.0" ]
1
2020-06-12T19:43:52.000Z
2020-06-12T19:43:52.000Z
test/get-gh-comment-info.py
MQasimSarfraz/cilium
89b622cf4e0a960e27e5b1bf9f139abee25dfea0
[ "Apache-2.0" ]
null
null
null
test/get-gh-comment-info.py
MQasimSarfraz/cilium
89b622cf4e0a960e27e5b1bf9f139abee25dfea0
[ "Apache-2.0" ]
1
2020-06-17T07:06:27.000Z
2020-06-17T07:06:27.000Z
import argparse parser = argparse.ArgumentParser() parser.add_argument('ghcomment', type=str) # this is for test-me-please phrases parser.add_argument('--focus', type=str, default="") parser.add_argument('--version', type=str, default="") parser.add_argument('--retrieve', type=str, default="focus") args = parser.pars...
30.416667
79
0.750685
49
365
5.408163
0.489796
0.135849
0.256604
0.150943
0.233962
0.233962
0
0
0
0
0
0
0.082192
365
11
80
33.181818
0.791045
0.093151
0
0
0
0
0.121581
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.125
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
1
0
0
0
0
0
0
0
0
2
fc26c7b5181466b2721115acd12b6c40ca2fe4ae
7,699
py
Python
preprocessing/booking.py
madcat1991/clustered_cars
a79b83d9d14360c6c51d4bf462217ef690e62c74
[ "Apache-2.0" ]
null
null
null
preprocessing/booking.py
madcat1991/clustered_cars
a79b83d9d14360c6c51d4bf462217ef690e62c74
[ "Apache-2.0" ]
null
null
null
preprocessing/booking.py
madcat1991/clustered_cars
a79b83d9d14360c6c51d4bf462217ef690e62c74
[ "Apache-2.0" ]
null
null
null
""" This script cleans and prepares the data set of bookings for the future usage """ import argparse import logging import sys import pandas as pd from preprocessing.common import canonize_datetime, raw_data_to_df, check_processed_columns, check_data OLD_BREAKPOINT_MATCHER = { 2001: [ (1, 1, "New Year"...
36.661905
113
0.56267
1,067
7,699
3.951265
0.226804
0.051233
0.085389
0.030361
0.274431
0.223672
0.205882
0.190228
0.190228
0.171252
0
0.066794
0.251331
7,699
209
114
36.837321
0.664643
0.029354
0
0.235955
0
0
0.284182
0.003351
0
0
0
0
0
1
0.022472
false
0
0.02809
0
0.067416
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fc272e521d0e985bdda9352e00baa8b30c9ad89c
1,309
py
Python
src/api/wish.py
PKU-GeekGame/gs-backend
d13219609d4e52810540bda6a3bddac1bf5406ce
[ "MIT" ]
7
2022-02-06T09:49:27.000Z
2022-03-03T14:23:32.000Z
src/api/wish.py
PKU-GeekGame/gs-backend
d13219609d4e52810540bda6a3bddac1bf5406ce
[ "MIT" ]
null
null
null
src/api/wish.py
PKU-GeekGame/gs-backend
d13219609d4e52810540bda6a3bddac1bf5406ce
[ "MIT" ]
null
null
null
from sanic import Blueprint, Request, HTTPResponse, response from sanic.models.handler_types import RouteHandler from functools import wraps from inspect import isawaitable from typing import Callable, Dict, Any, Union, Awaitable, List, Optional ACCEPTED_WISH_VERS = ['wish.alpha.v1'] WishHandler = Callable[..., Union...
37.4
124
0.612681
148
1,309
5.331081
0.47973
0.022814
0.040558
0.058302
0
0
0
0
0
0
0
0.001046
0.269672
1,309
35
125
37.4
0.824268
0.030558
0
0.148148
0
0
0.071034
0.016575
0
0
0
0
0
1
0.074074
false
0
0.185185
0
0.407407
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0