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
d99a1e98eccb58cbc0c0cef6e9e6702f33461b0e
5,886
py
Python
public_data/serializers.py
MTES-MCT/sparte
3b8ae6d21da81ca761d64ae9dfe2c8f54487211c
[ "MIT" ]
null
null
null
public_data/serializers.py
MTES-MCT/sparte
3b8ae6d21da81ca761d64ae9dfe2c8f54487211c
[ "MIT" ]
3
2022-02-10T11:47:58.000Z
2022-02-23T18:50:24.000Z
public_data/serializers.py
MTES-MCT/sparte
3b8ae6d21da81ca761d64ae9dfe2c8f54487211c
[ "MIT" ]
null
null
null
from rest_framework_gis import serializers from rest_framework import serializers as s from .models import ( Artificialisee2015to2018, Artificielle2018, CommunesSybarval, CouvertureSol, EnveloppeUrbaine2018, Ocsge, Renaturee2018to2015, Sybarval, Voirie2018, ZonesBaties2018, ...
25.37069
80
0.613829
558
5,886
6.28853
0.130824
0.029068
0.058136
0.072955
0.702194
0.668852
0.666002
0.656312
0.656312
0.623254
0
0.061826
0.29103
5,886
231
81
25.480519
0.779056
0.009514
0
0.664804
0
0
0.067194
0
0
0
0
0
0
1
0.094972
false
0
0.01676
0.089385
0.418994
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d99a20277c32bb1e28312f42ab6d732f38323169
241
py
Python
quick_search/admin.py
naman1901/django-quick-search
7b93554ed9fa4721e52372f9fd1a395d94cc04a7
[ "MIT" ]
null
null
null
quick_search/admin.py
naman1901/django-quick-search
7b93554ed9fa4721e52372f9fd1a395d94cc04a7
[ "MIT" ]
2
2020-02-11T23:28:22.000Z
2020-06-05T19:27:40.000Z
quick_search/admin.py
HereWithoutPermission/django-quick-search
7b93554ed9fa4721e52372f9fd1a395d94cc04a7
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import SearchResult # Register your models here. class SearchResultAdmin(admin.ModelAdmin): fields = ["query", "heading", "url", "text"] admin.site.register(SearchResult, SearchResultAdmin)
30.125
52
0.771784
27
241
6.888889
0.703704
0
0
0
0
0
0
0
0
0
0
0
0.116183
241
8
52
30.125
0.873239
0.107884
0
0
0
0
0.088785
0
0
0
0
0
0
1
0
false
0
0.4
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
d99b5ab0ec594ac30b1d197b23a5cda7c48151d5
18,065
py
Python
rasa/train.py
Amirali-Shirkh/rasa-for-botfront
36aa24ad31241c5d1a180bbe34e1c8c50da40ff7
[ "Apache-2.0" ]
null
null
null
rasa/train.py
Amirali-Shirkh/rasa-for-botfront
36aa24ad31241c5d1a180bbe34e1c8c50da40ff7
[ "Apache-2.0" ]
null
null
null
rasa/train.py
Amirali-Shirkh/rasa-for-botfront
36aa24ad31241c5d1a180bbe34e1c8c50da40ff7
[ "Apache-2.0" ]
null
null
null
import asyncio import os import tempfile from contextlib import ExitStack from typing import Text, Optional, List, Union, Dict from rasa.importers.importer import TrainingDataImporter from rasa import model from rasa.model import FingerprintComparisonResult from rasa.core.domain import Domain from rasa.utils.common im...
34.673704
128
0.654027
2,139
18,065
5.259467
0.099579
0.0432
0.053511
0.043022
0.643644
0.565956
0.532178
0.5128
0.470756
0.448444
0
0
0.275505
18,065
520
129
34.740385
0.859566
0.102131
0
0.47619
0
0
0.097136
0.003
0
0
0
0
0
1
0.008403
false
0
0.123249
0
0.173669
0.120448
0
0
0
null
0
0
0
0
0
0
0
0
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
d99e8a9a95f28da6c2d4d1ee42e95a270ab08977
421
py
Python
coding_intereview/1475. Final Prices With a Special Discount in a Shop.py
Jahidul007/Python-Bootcamp
3c870587465ff66c2c1871c8d3c4eea72463abda
[ "MIT" ]
2
2020-12-07T16:07:07.000Z
2020-12-07T16:08:53.000Z
coding_intereview/1475. Final Prices With a Special Discount in a Shop.py
purusharthmalik/Python-Bootcamp
2ed1cf886d1081de200b0fdd4cb4e28008c7e3d1
[ "MIT" ]
null
null
null
coding_intereview/1475. Final Prices With a Special Discount in a Shop.py
purusharthmalik/Python-Bootcamp
2ed1cf886d1081de200b0fdd4cb4e28008c7e3d1
[ "MIT" ]
1
2020-10-03T16:38:02.000Z
2020-10-03T16:38:02.000Z
class Solution: def finalPrices(self, prices: List[int]) -> List[int]: res = [] for i in range(len(prices)): for j in range(i+1,len(prices)): if prices[j]<=prices[i]: res.append(prices[i]-prices[j]) break if j==len(p...
35.083333
58
0.460808
52
421
3.730769
0.384615
0.139175
0.231959
0.164948
0.226804
0
0
0
0
0
0
0.011858
0.39905
421
12
59
35.083333
0.754941
0
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.25
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d99ed7256245422c7c5dd3c60b0661e4f78183ea
35,585
py
Python
rplugin/python3/denite/ui/default.py
timgates42/denite.nvim
12a9b5456f5a4600afeb0ba284ce1098bd35e501
[ "MIT" ]
null
null
null
rplugin/python3/denite/ui/default.py
timgates42/denite.nvim
12a9b5456f5a4600afeb0ba284ce1098bd35e501
[ "MIT" ]
null
null
null
rplugin/python3/denite/ui/default.py
timgates42/denite.nvim
12a9b5456f5a4600afeb0ba284ce1098bd35e501
[ "MIT" ]
null
null
null
# ============================================================================ # FILE: default.py # AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com> # License: MIT license # ============================================================================ import re import typing from denite.util import echo, error, c...
37.816153
79
0.54863
3,700
35,585
4.95
0.09973
0.058094
0.036637
0.012995
0.344253
0.19585
0.13448
0.096861
0.084084
0.06967
0
0.00293
0.328565
35,585
940
80
37.856383
0.763613
0.030547
0
0.25
0
0
0.141075
0.02771
0
0
0
0
0
1
0.057592
false
0
0.007853
0.005236
0.111257
0.001309
0
0
0
null
0
0
0
0
0
0
0
0
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
d99f875863138f11af1d76f0c753c198ad6d96bd
1,329
py
Python
PyDSTool/core/context_managers.py
yuanz271/PyDSTool
886c143cdd192aea204285f3a1cb4968c763c646
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
PyDSTool/core/context_managers.py
yuanz271/PyDSTool
886c143cdd192aea204285f3a1cb4968c763c646
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
PyDSTool/core/context_managers.py
yuanz271/PyDSTool
886c143cdd192aea204285f3a1cb4968c763c646
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
# -*- coding: utf-8 -*- """Context managers implemented for (mostly) internal use""" import contextlib import functools from io import UnsupportedOperation import os import sys __all__ = ["RedirectStdout", "RedirectStderr"] @contextlib.contextmanager def _stdchannel_redirected(stdchannel, dest_filename, mode="w")...
28.891304
109
0.68924
144
1,329
6.229167
0.479167
0.044593
0.086957
0.120401
0.086957
0
0
0
0
0
0
0.014299
0.210685
1,329
45
110
29.533333
0.840801
0.209932
0
0.071429
0
0
0.028404
0
0
0
0
0
0
1
0.035714
false
0
0.178571
0
0.214286
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
d99ff34b5f61cee604590c456f40398d7da18182
3,215
py
Python
pos_kiosk/hooks.py
Muzzy73/pos_kiosk
1ed42cfaeb15f009293b76d05dd85bd322b42f03
[ "MIT" ]
1
2022-03-05T11:42:36.000Z
2022-03-05T11:42:36.000Z
pos_kiosk/hooks.py
Muzzy73/pos_kiosk
1ed42cfaeb15f009293b76d05dd85bd322b42f03
[ "MIT" ]
null
null
null
pos_kiosk/hooks.py
Muzzy73/pos_kiosk
1ed42cfaeb15f009293b76d05dd85bd322b42f03
[ "MIT" ]
1
2022-03-05T11:42:37.000Z
2022-03-05T11:42:37.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version app_name = "pos_kiosk" app_title = "Pos Kiosk" app_publisher = "9t9it" app_description = "Kiosk App" app_icon = "octicon octicon-file-directory" app_color = "grey" app_email = "info@9t9it.com" app_license = "MIT" ...
22.964286
101
0.631415
384
3,215
5.010417
0.338542
0.091476
0.033784
0.035343
0.235967
0.141892
0.108628
0.085239
0.085239
0.045738
0
0.001911
0.186003
3,215
139
102
23.129496
0.733282
0.7521
0
0
0
0
0.231206
0.031206
0
0
0
0
0
1
0
false
0
0.08
0
0.08
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
d9a00b2c6f1a0e88ad5b4a7def2a45bd074f417f
3,880
py
Python
pypagai/models/model_lstm.py
gcouti/pypagAI
d08fac95361dcc036d890a88cb86ce090322a612
[ "Apache-2.0" ]
1
2018-07-24T18:53:26.000Z
2018-07-24T18:53:26.000Z
pypagai/models/model_lstm.py
gcouti/pypagAI
d08fac95361dcc036d890a88cb86ce090322a612
[ "Apache-2.0" ]
7
2020-01-28T21:45:14.000Z
2022-03-11T23:20:53.000Z
pypagai/models/model_lstm.py
gcouti/pypagAI
d08fac95361dcc036d890a88cb86ce090322a612
[ "Apache-2.0" ]
null
null
null
from keras import Model, Input from keras.layers import Dense, concatenate, LSTM, Reshape, Permute, Embedding, Dropout, Convolution1D, Flatten from keras.optimizers import Adam from pypagai.models.base import KerasModel class SimpleLSTM(KerasModel): """ Use a simple lstm neural network """ @staticmet...
33.162393
114
0.650773
460
3,880
5.226087
0.171739
0.040765
0.037854
0.034942
0.851498
0.851498
0.835691
0.811564
0.741681
0.741681
0
0.022069
0.217526
3,880
116
115
33.448276
0.769763
0.043041
0
0.694444
0
0
0.064648
0.025368
0
0
0
0
0
1
0.125
false
0
0.055556
0
0.263889
0
0
0
0
null
0
0
0
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
6
d9a09cb6f497e8ccdf9de40f4b8ebd6b96a1c43a
113
py
Python
lib/variables/latent_variables/__init__.py
joelouismarino/variational_rl
11dc14bfb56f3ebbfccd5de206b78712a8039a9a
[ "MIT" ]
15
2020-10-20T22:09:36.000Z
2021-12-24T13:40:36.000Z
lib/variables/latent_variables/__init__.py
joelouismarino/variational_rl
11dc14bfb56f3ebbfccd5de206b78712a8039a9a
[ "MIT" ]
null
null
null
lib/variables/latent_variables/__init__.py
joelouismarino/variational_rl
11dc14bfb56f3ebbfccd5de206b78712a8039a9a
[ "MIT" ]
1
2020-10-23T19:48:06.000Z
2020-10-23T19:48:06.000Z
from .fully_connected import FullyConnectedLatentVariable from .convolutional import ConvolutionalLatentVariable
37.666667
57
0.911504
9
113
11.333333
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.070796
113
2
58
56.5
0.971429
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
1
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
0
0
0
5
d9a0c8935f1da040f76922b94d20a857d8b8cd7d
3,338
py
Python
easyai/model/backbone/cls/pnasnet.py
lpj0822/image_point_cloud_det
7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f
[ "MIT" ]
1
2020-09-05T09:18:56.000Z
2020-09-05T09:18:56.000Z
easyai/model/backbone/cls/pnasnet.py
lpj0822/image_point_cloud_det
7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f
[ "MIT" ]
8
2020-04-20T02:18:55.000Z
2022-03-12T00:24:50.000Z
easyai/model/backbone/cls/pnasnet.py
lpj0822/image_point_cloud_det
7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: ''' PNASNet in PyTorch. Paper: Progressive Neural Architecture Search ''' from easyai.base_name.block_name import NormalizationType, ActivationType from easyai.base_name.backbone_name import BackboneName from easyai.model.backbone.utility.base_backbone import * fr...
35.892473
95
0.612942
386
3,338
5.012953
0.238342
0.056848
0.069767
0.037209
0.357623
0.328682
0.285271
0.234625
0.131266
0.131266
0
0.010748
0.303176
3,338
92
96
36.282609
0.821152
0.034452
0
0.117647
0
0
0.005602
0
0
0
0
0
0
1
0.102941
false
0
0.073529
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
d9a0daeef5f3a3455af5c2983af478cd08c74a7b
11,247
py
Python
map_download/cmd/TerrainDownloader.py
cugxy/map_download
02142b33edb2bc163f7ae971f443efe84c13e029
[ "MIT" ]
27
2019-04-02T08:34:16.000Z
2022-01-11T01:48:50.000Z
map_download/cmd/TerrainDownloader.py
cugxy/map_download
02142b33edb2bc163f7ae971f443efe84c13e029
[ "MIT" ]
8
2019-10-10T03:03:51.000Z
2021-11-14T11:01:47.000Z
map_download/cmd/TerrainDownloader.py
cugxy/map_download
02142b33edb2bc163f7ae971f443efe84c13e029
[ "MIT" ]
7
2019-04-02T08:43:04.000Z
2020-08-11T02:14:24.000Z
# -*- coding: utf-8 -*- # coding=utf-8 import json import os import math import logging import requests import time from map_download.cmd.BaseDownloader import DownloadEngine, BaseDownloaderThread, latlng2tile_terrain, BoundBox def get_access_token(token): resp = None request_count = 0 url = "https://ap...
35.479495
117
0.384992
980
11,247
4.266327
0.257143
0.025114
0.04664
0.050227
0.218369
0.128199
0.088017
0.056446
0.043052
0.043052
0
0.043237
0.518805
11,247
316
118
35.591772
0.728936
0.003112
0
0.30303
0
0.003367
0.107423
0.010707
0
0
0
0
0
1
0.026936
false
0.003367
0.023569
0.003367
0.097643
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d9a1f3b0cf83d1115ed19f3acdb5e35f75ece5c0
252,781
py
Python
kubernetes_asyncio/client/api/rbac_authorization_v1_api.py
dineshsonachalam/kubernetes_asyncio
d57e9e9be11f6789e1ce8d5b161acb64d29acf35
[ "Apache-2.0" ]
1
2021-02-25T04:36:18.000Z
2021-02-25T04:36:18.000Z
kubernetes_asyncio/client/api/rbac_authorization_v1_api.py
hubo1016/kubernetes_asyncio
d57e9e9be11f6789e1ce8d5b161acb64d29acf35
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/api/rbac_authorization_v1_api.py
hubo1016/kubernetes_asyncio
d57e9e9be11f6789e1ce8d5b161acb64d29acf35
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v1.12.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import r...
66.661656
1,390
0.685004
33,396
252,781
5.055426
0.013355
0.030942
0.018326
0.01598
0.996659
0.99647
0.996298
0.995386
0.99522
0.994657
0
0.012057
0.243709
252,781
3,791
1,391
66.67924
0.871061
0.556818
0
0.864838
1
0.003918
0.245771
0.083494
0
0
0
0
0
1
0.030852
false
0
0.001959
0
0.078844
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
1
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
d9a268f19adc7700cf1335eb9dfc2c8d74c5a4dc
2,208
py
Python
tools/utils.py
vahini01/electoral_rolls
82e42a6ee68844b1c8ac7899e8e7bf7a24e48d44
[ "MIT" ]
16
2018-01-22T02:03:09.000Z
2022-02-24T07:16:47.000Z
tools/utils.py
vahini01/electoral_rolls
82e42a6ee68844b1c8ac7899e8e7bf7a24e48d44
[ "MIT" ]
2
2019-02-01T02:48:17.000Z
2020-09-06T06:09:35.000Z
tools/utils.py
vahini01/electoral_rolls
82e42a6ee68844b1c8ac7899e8e7bf7a24e48d44
[ "MIT" ]
8
2018-01-22T06:48:07.000Z
2021-08-08T16:26:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Nov 10 23:28:58 2017 @author: dhingratul """ import urllib.request import os from selenium import webdriver from selenium.webdriver.support.ui import Select from bs4 import BeautifulSoup import ssl import requests import wget from PyPDF2 import PdfFileR...
25.976471
100
0.646286
299
2,208
4.668896
0.391304
0.034384
0.032235
0.038682
0.259312
0.18553
0.098138
0.098138
0.098138
0.098138
0
0.017748
0.259964
2,208
84
101
26.285714
0.836597
0.14221
0
0.33871
0
0
0.004795
0
0
0
0
0
0
1
0.080645
false
0
0.145161
0
0.322581
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
d9a3883f0ea5d080d5d4d2e05df6fadcaeb5c36e
1,956
py
Python
exp/viz_raw_manhattan.py
ellencwade/coronavirus-2020
b71e018deb8df8450b4d88ddbcd6ded6497aa8f9
[ "MIT" ]
null
null
null
exp/viz_raw_manhattan.py
ellencwade/coronavirus-2020
b71e018deb8df8450b4d88ddbcd6ded6497aa8f9
[ "MIT" ]
null
null
null
exp/viz_raw_manhattan.py
ellencwade/coronavirus-2020
b71e018deb8df8450b4d88ddbcd6ded6497aa8f9
[ "MIT" ]
null
null
null
""" Experiment summary ------------------ Treat each province/state in a country cases over time as a vector, do a simple K-Nearest Neighbor between countries. What country has the most similar trajectory to a given country? Plots similar countries """ import sys sys.path.insert(0, '..') from utils import data impor...
26.432432
74
0.658487
270
1,956
4.614815
0.485185
0.044141
0.017657
0.041734
0.089888
0.089888
0.089888
0.089888
0.089888
0.089888
0
0.019692
0.169223
1,956
74
75
26.432432
0.747077
0.169734
0
0.16
0
0
0.214109
0.080446
0
0
0
0
0
1
0
false
0
0.14
0
0.14
0.02
0
0
0
null
0
0
0
0
0
0
0
0
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
d9a428c026d2352f281b2b7ddd8ec8a286d37297
5,290
py
Python
rational/mxnet/rationals.py
steven-lang/rational_activations
234623dbb9360c215c430185b09e2237d5186b54
[ "MIT" ]
null
null
null
rational/mxnet/rationals.py
steven-lang/rational_activations
234623dbb9360c215c430185b09e2237d5186b54
[ "MIT" ]
null
null
null
rational/mxnet/rationals.py
steven-lang/rational_activations
234623dbb9360c215c430185b09e2237d5186b54
[ "MIT" ]
null
null
null
""" Rational Activation Functions for MXNET ======================================= This module allows you to create Rational Neural Networks using Learnable Rational activation functions with MXNET networks. """ import mxnet as mx from mxnet import initializer from mxnet.gluon import HybridBlock from rational.utils....
42.66129
99
0.56276
584
5,290
4.943493
0.304795
0.02771
0.027018
0.004157
0.085902
0.073433
0.0478
0.0478
0.0478
0.010391
0
0.006928
0.34518
5,290
123
100
43.00813
0.826501
0.413422
0
0.24
0
0
0.038147
0
0
0
0
0
0
1
0.06
false
0
0.14
0.02
0.26
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
d9a6621d903359b14c87695eb4a1ac8dcea18138
844
py
Python
torchflare/criterion/utils.py
Neklaustares-tPtwP/torchflare
7af6b01ef7c26f0277a041619081f6df4eb1e42c
[ "Apache-2.0" ]
1
2021-09-14T08:38:05.000Z
2021-09-14T08:38:05.000Z
torchflare/criterion/utils.py
weidao-Shi/torchflare
3c55b5a0761f2e85dd6da95767c6ec03f0f5baad
[ "Apache-2.0" ]
null
null
null
torchflare/criterion/utils.py
weidao-Shi/torchflare
3c55b5a0761f2e85dd6da95767c6ec03f0f5baad
[ "Apache-2.0" ]
1
2021-08-06T19:24:43.000Z
2021-08-06T19:24:43.000Z
"""Utils for criterion.""" import torch import torch.nn.functional as F def normalize(x, axis=-1): """Performs L2-Norm.""" num = x denom = torch.norm(x, 2, axis, keepdim=True).expand_as(x) + 1e-12 return num / denom # Source : https://github.com/earhian/Humpback-Whale-Identification-1st-/blob/master...
26.375
107
0.613744
141
844
3.64539
0.439716
0.015564
0.099222
0.054475
0.124514
0.124514
0.124514
0.124514
0.124514
0.124514
0
0.031019
0.197867
844
31
108
27.225806
0.728213
0.236967
0
0.111111
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.111111
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9a714b3484177f5fee5427d98c53a86bf48daf3
134
py
Python
tests/__init__.py
eloo/sensor.sbahn_munich
05e05a845178ab529dc4c80e924035fe1d072b55
[ "MIT" ]
null
null
null
tests/__init__.py
eloo/sensor.sbahn_munich
05e05a845178ab529dc4c80e924035fe1d072b55
[ "MIT" ]
null
null
null
tests/__init__.py
eloo/sensor.sbahn_munich
05e05a845178ab529dc4c80e924035fe1d072b55
[ "MIT" ]
null
null
null
"""Tests for the sbahn_munich integration""" line_dict = { "name": "S3", "color": "#333333", "text_color": "#444444", }
14.888889
44
0.567164
15
134
4.866667
0.933333
0
0
0
0
0
0
0
0
0
0
0.12381
0.216418
134
8
45
16.75
0.571429
0.283582
0
0
0
0
0.388889
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d9a88e74a4ac032ae6e8218d9ec1ed42e6092d32
375
py
Python
app/views/web/homestack.py
geudrik/hautomation
0baae29e85cd68658a0f8578de2e36e42945053f
[ "MIT" ]
null
null
null
app/views/web/homestack.py
geudrik/hautomation
0baae29e85cd68658a0f8578de2e36e42945053f
[ "MIT" ]
null
null
null
app/views/web/homestack.py
geudrik/hautomation
0baae29e85cd68658a0f8578de2e36e42945053f
[ "MIT" ]
null
null
null
#! /usr/bin/env python2.7 # -*- coding: latin-1 -*- from flask import Blueprint from flask import current_app from flask import render_template from flask_login import login_required homestack = Blueprint("homestack", __name__, url_prefix="/homestack") @homestack.route("/", methods=["GET"]) @login_required def hom...
22.058824
69
0.749333
49
375
5.510204
0.591837
0.133333
0.166667
0
0
0
0
0
0
0
0
0.009091
0.12
375
16
70
23.4375
0.809091
0.128
0
0
0
0
0.129231
0
0
0
0
0
0
1
0.111111
false
0
0.444444
0.111111
0.666667
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
3
d9a90a5af3f207f1020cbf41f94830b75e23fbc9
4,411
py
Python
readthedocs/donate/forms.py
gamearming/readthedocs
53d0094f657f549326a86b8bd0ccf924c2126941
[ "MIT" ]
null
null
null
readthedocs/donate/forms.py
gamearming/readthedocs
53d0094f657f549326a86b8bd0ccf924c2126941
[ "MIT" ]
null
null
null
readthedocs/donate/forms.py
gamearming/readthedocs
53d0094f657f549326a86b8bd0ccf924c2126941
[ "MIT" ]
null
null
null
"""Forms for RTD donations""" import logging from django import forms from django.conf import settings from django.utils.translation import ugettext_lazy as _ from readthedocs.payments.forms import StripeModelForm, StripeResourceMixin from readthedocs.payments.utils import stripe from .models import Supporter log ...
33.416667
97
0.594423
478
4,411
5.349372
0.320084
0.038717
0.052796
0.028158
0.525616
0.509973
0.484943
0.44036
0.44036
0.397341
0
0.008729
0.298798
4,411
131
98
33.671756
0.817976
0.112446
0
0.510204
0
0
0.230052
0
0
0
0
0
0
1
0.040816
false
0
0.071429
0
0.22449
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
d9ad95f0461bd02e44c310b1381567e8524c288c
6,258
py
Python
pandas_datareaders_unofficial/datareaders/google_finance_options.py
movermeyer/pandas_datareaders_unofficial
458dcf473d070cd7686d53d4a9b479cbe0ab9218
[ "BSD-3-Clause" ]
18
2015-02-05T01:42:51.000Z
2020-12-27T19:24:25.000Z
pandas_datareaders_unofficial/datareaders/google_finance_options.py
movermeyer/pandas_datareaders_unofficial
458dcf473d070cd7686d53d4a9b479cbe0ab9218
[ "BSD-3-Clause" ]
1
2015-01-12T11:08:02.000Z
2015-01-13T09:14:47.000Z
pandas_datareaders_unofficial/datareaders/google_finance_options.py
femtotrader/pandas_datareaders
458dcf473d070cd7686d53d4a9b479cbe0ab9218
[ "BSD-3-Clause" ]
13
2015-09-10T19:39:51.000Z
2022-01-06T17:08:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from .base import DataReaderBase from ..tools import COL, _get_dates, to_float, to_int import pandas as pd #from pandas.tseries.frequencies import to_offset from six.moves import cStringIO as StringIO import logging import traceback import datetime import json import tok...
29.942584
115
0.527964
754
6,258
4.270557
0.324934
0.01087
0.013975
0.013043
0.198758
0.180745
0.146584
0.1
0.1
0.1
0
0.016197
0.319271
6,258
208
116
30.086538
0.739671
0.167945
0
0.281818
0
0
0.087476
0
0
0
0
0
0
1
0.072727
false
0
0.090909
0.009091
0.190909
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
d9adb9ef68a4c2ce5de1ed13aea3230964400996
5,039
py
Python
keras_textclassification/data_preprocess/generator_preprocess.py
Vail-qin/Keras-TextClassification
8acda5ae37db2647c8ecaa70027ffc6003d2abca
[ "MIT" ]
1
2019-12-27T16:59:16.000Z
2019-12-27T16:59:16.000Z
keras_textclassification/data_preprocess/generator_preprocess.py
Yolo-Cultivate/Keras-TextClassification
183cf7b3483588bfe10d19b65124e52df5b338f8
[ "MIT" ]
null
null
null
keras_textclassification/data_preprocess/generator_preprocess.py
Yolo-Cultivate/Keras-TextClassification
183cf7b3483588bfe10d19b65124e52df5b338f8
[ "MIT" ]
1
2022-01-11T06:37:54.000Z
2022-01-11T06:37:54.000Z
# !/usr/bin/python # -*- coding: utf-8 -*- # @time : 2019/11/2 21:08 # @author : Mo # @function: from keras_textclassification.data_preprocess.text_preprocess import load_json, save_json from keras_textclassification.conf.path_config import path_model_dir path_fast_text_model_vocab2index = path_model_dir + 'vocab...
36.781022
92
0.523318
646
5,039
3.773994
0.218266
0.049221
0.054143
0.076702
0.370796
0.322395
0.30886
0.248975
0.226005
0.211649
0
0.039798
0.371701
5,039
136
93
37.051471
0.730259
0.059536
0
0.219048
0
0
0.040825
0.019562
0
0
0
0
0
1
0.057143
false
0
0.038095
0
0.142857
0.009524
0
0
0
null
0
0
0
0
0
0
0
0
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
d9aeee22298fa03239ef3d63fdcaa4984d37ba63
3,030
py
Python
content/test/gpu/gpu_tests/pixel_expectations.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
content/test/gpu/gpu_tests/pixel_expectations.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
content/test/gpu/gpu_tests/pixel_expectations.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright 2014 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 gpu_tests.gpu_test_expectations import GpuTestExpectations # See the GpuTestExpectations class for documentation. class PixelExpectations(GpuTestExpec...
42.083333
78
0.706931
325
3,030
6.48
0.446154
0.049383
0.080247
0.037987
0.136752
0.041311
0.02849
0
0
0
0
0.062896
0.165677
3,030
71
79
42.676056
0.770174
0.289439
0
0
0
0
0.436739
0.330834
0
0
0.010309
0.014085
0
1
0.027778
false
0
0.027778
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
d9afca45a6adc9c41c0b981032c729d59e9db234
2,801
py
Python
examples/p02_budgets/budget_data_ingest/migrations/0001_initial.py
18F/data-federation-ingest
a896ef2da1faf3966f018366b26a338bb66cc717
[ "CC0-1.0" ]
18
2019-07-26T13:43:01.000Z
2022-01-15T14:57:52.000Z
examples/p02_budgets/budget_data_ingest/migrations/0001_initial.py
18F/data-federation-ingest
a896ef2da1faf3966f018366b26a338bb66cc717
[ "CC0-1.0" ]
96
2019-06-14T18:30:54.000Z
2021-08-03T09:25:02.000Z
examples/p02_budgets/budget_data_ingest/migrations/0001_initial.py
18F/data-federation-ingest
a896ef2da1faf3966f018366b26a338bb66cc717
[ "CC0-1.0" ]
3
2020-01-23T04:48:18.000Z
2021-01-12T09:31:20.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-06-08 22:54 from __future__ import unicode_literals from django.conf import settings import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial ...
47.474576
209
0.611567
285
2,801
5.831579
0.396491
0.028881
0.042118
0.066185
0.465704
0.358604
0.358604
0.358604
0.247894
0.247894
0
0.012258
0.24277
2,801
58
210
48.293103
0.771334
0.024634
0
0.22
1
0
0.135581
0.018322
0
0
0
0
0
1
0
false
0
0.1
0
0.18
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d9b0c3d32e07c56a0732f0fca454740538a940fe
451
py
Python
setup.py
Kaslanarian/PythonSVM
715eeef2a245736167addf45a6aee8b40b54d0c7
[ "MIT" ]
2
2021-09-25T01:00:37.000Z
2021-09-27T12:13:24.000Z
setup.py
Kaslanarian/PythonSVM
715eeef2a245736167addf45a6aee8b40b54d0c7
[ "MIT" ]
1
2021-09-17T12:08:14.000Z
2021-09-17T12:08:14.000Z
setup.py
Kaslanarian/PythonSVM
715eeef2a245736167addf45a6aee8b40b54d0c7
[ "MIT" ]
null
null
null
import setuptools #enables develop setuptools.setup( name='pysvm', version='0.1', description='PySVM : A NumPy implementation of SVM based on SMO algorithm', author_email="191300064@smail.nju.edu.cn", packages=['pysvm'], license='MIT License', long_description=open('README.md', encoding='u...
28.1875
79
0.660754
54
451
5.462963
0.87037
0
0
0
0
0
0
0
0
0
0
0.03252
0.181818
451
15
80
30.066667
0.766938
0.046563
0
0
0
0
0.401869
0.060748
0
0
0
0
0
1
0
true
0
0.071429
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
d9b0df7f5ef294a68858d836af143c289d120187
4,375
py
Python
Object_detection_image.py
hiperus0988/pyao
72c56975a3d45aa033bdf7650b5369d59240395f
[ "Apache-2.0" ]
1
2021-06-09T22:17:57.000Z
2021-06-09T22:17:57.000Z
Object_detection_image.py
hiperus0988/pyao
72c56975a3d45aa033bdf7650b5369d59240395f
[ "Apache-2.0" ]
null
null
null
Object_detection_image.py
hiperus0988/pyao
72c56975a3d45aa033bdf7650b5369d59240395f
[ "Apache-2.0" ]
null
null
null
######## Image Object Detection Using Tensorflow-trained Classifier ######### # # Author: Evan Juras # Date: 1/15/18 # Description: # This program uses a TensorFlow-trained classifier to perform object detection. # It loads the classifier uses it to perform object detection on an image. # It draws boxes and scores aro...
36.458333
122
0.779886
680
4,375
4.836765
0.377941
0.045607
0.025844
0.034965
0.082396
0.06689
0.034661
0
0
0
0
0.007451
0.141029
4,375
119
123
36.764706
0.867749
0.511314
0
0
0
0
0.083977
0.012066
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9b2e0c418fbf0ff7ba59e80c34fb2974714b1c9
398
py
Python
polling_stations/apps/data_collection/management/commands/import_torbay.py
chris48s/UK-Polling-Stations
4742b527dae94f0276d35c80460837be743b7d17
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_collection/management/commands/import_torbay.py
chris48s/UK-Polling-Stations
4742b527dae94f0276d35c80460837be743b7d17
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_collection/management/commands/import_torbay.py
chris48s/UK-Polling-Stations
4742b527dae94f0276d35c80460837be743b7d17
[ "BSD-3-Clause" ]
null
null
null
from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter class Command(BaseXpressDemocracyClubCsvImporter): council_id = 'E06000027' addresses_name = 'parl.2017-06-08/Version 1/Torbay Democracy_Club__08June2017.tsv' stations_name = 'parl.2017-06-08/Version 1/Torbay Democracy_Club_...
44.222222
86
0.788945
47
398
6.446809
0.638298
0.079208
0.09901
0.118812
0.369637
0.369637
0.369637
0.369637
0.369637
0.369637
0
0.130682
0.115578
398
8
87
49.75
0.730114
0
0
0
0
0
0.38191
0.266332
0
0
0
0
0
1
0
false
0
0.285714
0
1.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d9b38469f6b00b7a441fff875e4ecd7bcc272b7e
1,832
py
Python
Backend/product/views.py
Bhavya0020/Readopolis
a0053e4fae97dc8291b50c746f3dc3e6b454ad95
[ "MIT" ]
null
null
null
Backend/product/views.py
Bhavya0020/Readopolis
a0053e4fae97dc8291b50c746f3dc3e6b454ad95
[ "MIT" ]
null
null
null
Backend/product/views.py
Bhavya0020/Readopolis
a0053e4fae97dc8291b50c746f3dc3e6b454ad95
[ "MIT" ]
null
null
null
from django.db.models import Q from django.shortcuts import render from django.http import Http404 # Create your views here. from rest_framework.views import APIView from rest_framework.response import Response from rest_framework.decorators import api_view from .models import Product, Category from .serializers imp...
34.566038
101
0.715611
208
1,832
6.173077
0.293269
0.084112
0.074766
0.087227
0.316199
0.247664
0.247664
0.193146
0.193146
0
0
0.007478
0.197052
1,832
53
102
34.566038
0.865398
0.012555
0
0.238095
0
0
0.009403
0
0
0
0
0
0
1
0.142857
false
0
0.190476
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d9b42bca24804913cf6908775c04bc29a0bec6df
1,469
py
Python
model/contact.py
hubogeri/python_training
7a918040e4c8bae5a031134911bc8b465f322699
[ "Apache-2.0" ]
null
null
null
model/contact.py
hubogeri/python_training
7a918040e4c8bae5a031134911bc8b465f322699
[ "Apache-2.0" ]
null
null
null
model/contact.py
hubogeri/python_training
7a918040e4c8bae5a031134911bc8b465f322699
[ "Apache-2.0" ]
null
null
null
from sys import maxsize class Contact: def __init__(self, fname=None, mname=None, lname=None, nick=None, title=None, comp=None, addr=None, home=None, mobile=None, work=None, fax=None, email1=None, email2=None, email3=None, homepage=None, bday=None, bmonth=None, byear=None, aday=...
30.604167
135
0.571137
191
1,469
4.319372
0.246073
0.043636
0.019394
0.024242
0
0
0
0
0
0
0
0.009091
0.326072
1,469
47
136
31.255319
0.824242
0
0
0
0
0
0.00545
0
0
0
0
0
0
1
0.1
false
0
0.025
0.05
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9b4cabd9071c90b544409b5b87e3302450b1278
11,342
py
Python
test/IECore/BasicPreset.py
ericmehl/cortex
054839cc709ce153d1bcaaefe7f340ebe641ec82
[ "BSD-3-Clause" ]
386
2015-01-02T11:10:43.000Z
2022-03-10T15:12:20.000Z
test/IECore/BasicPreset.py
ericmehl/cortex
054839cc709ce153d1bcaaefe7f340ebe641ec82
[ "BSD-3-Clause" ]
484
2015-01-09T18:28:06.000Z
2022-03-31T16:02:04.000Z
test/IECore/BasicPreset.py
ericmehl/cortex
054839cc709ce153d1bcaaefe7f340ebe641ec82
[ "BSD-3-Clause" ]
99
2015-01-28T23:18:04.000Z
2022-03-27T00:59:39.000Z
########################################################################## # # Copyright (c) 2010-2012, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redis...
33.655786
107
0.677923
1,199
11,342
6.381985
0.202669
0.102196
0.059592
0.040251
0.657998
0.625457
0.58965
0.570047
0.533717
0.515682
0
0.014208
0.162229
11,342
336
108
33.755952
0.791097
0.156145
0
0.46729
0
0
0.085242
0.013213
0
0
0
0
0.182243
1
0.037383
false
0
0.028037
0
0.070093
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
d9b4da54ad6bdf7efb1efb5b210a443bc83b0db4
12,492
py
Python
rlpy/Domains/Pacman.py
imanolarrieta/RL
072a8c328652f45e053baecd640f04adf7f84b49
[ "BSD-3-Clause" ]
1
2019-12-07T13:47:43.000Z
2019-12-07T13:47:43.000Z
rlpy/Domains/Pacman.py
imanolarrieta/RL
072a8c328652f45e053baecd640f04adf7f84b49
[ "BSD-3-Clause" ]
null
null
null
rlpy/Domains/Pacman.py
imanolarrieta/RL
072a8c328652f45e053baecd640f04adf7f84b49
[ "BSD-3-Clause" ]
null
null
null
"""Pacman game domain.""" from rlpy.Tools import __rlpy_location__ from .Domain import Domain from .PacmanPackage import layout, pacman, game, ghostAgents from .PacmanPackage import graphicsDisplay import numpy as np from copy import deepcopy import os import time __copyright__ = "Copyright 2013, RLPy http://acl.mit.e...
38.795031
159
0.616394
1,559
12,492
4.815266
0.264272
0.023445
0.031171
0.022646
0.170641
0.143866
0.130944
0.116558
0.092847
0.066871
0
0.013697
0.292827
12,492
321
160
38.915888
0.836088
0.285383
0
0.21466
0
0
0.044839
0
0
0
0
0.003115
0
1
0.073298
false
0.026178
0.041885
0
0.193717
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
d9b4dfc1ad39620d7b5b2d1c39ad7fd8f6cec36b
819
py
Python
core/src/zeit/cms/settings/interfaces.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
5
2019-05-16T09:51:29.000Z
2021-05-31T09:30:03.000Z
core/src/zeit/cms/settings/interfaces.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
107
2019-05-24T12:19:02.000Z
2022-03-23T15:05:56.000Z
core/src/zeit/cms/settings/interfaces.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
3
2020-08-14T11:01:17.000Z
2022-01-08T17:32:19.000Z
from zeit.cms.i18n import MessageFactory as _ import zope.interface import zope.schema class IGlobalSettings(zope.interface.Interface): """Global CMS settings.""" default_year = zope.schema.Int( title=_("Default year"), min=1900, max=2100) default_volume = zope.schema.Int( ...
26.419355
78
0.636142
98
819
5.244898
0.571429
0.058366
0.050584
0.070039
0.097276
0
0
0
0
0
0
0.021886
0.274725
819
30
79
27.3
0.843434
0.421245
0
0
0
0
0.064198
0
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.538462
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
d9b55a7ee025f94a0ef3f125fa9c30f974dd7d6e
211
py
Python
abc/abc165/abc165e.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
abc/abc165/abc165e.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
abc/abc165/abc165e.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
N, M = map(int, input().split()) for i in range(1, M + 1): if i % 2 == 1: j = (i - 1) // 2 print(1 + j, M + 1 - j) else: j = (i - 2) // 2 print(M + 2 + j, 2 * M + 1 - j)
21.1
39
0.336493
40
211
1.775
0.4
0.112676
0.084507
0
0
0
0
0
0
0
0
0.111111
0.445498
211
9
40
23.444444
0.495727
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
d9b62ab258f0b51ef25d431f8fa66de9acd438a7
1,895
py
Python
setup.py
giggslam/python-messengerbot-sdk
4a6fadf96fe3425da9abc4726fbb84db6d84f7b5
[ "Apache-2.0" ]
23
2019-03-05T08:33:34.000Z
2021-12-13T01:52:47.000Z
setup.py
giggslam/python-messengerbot-sdk
4a6fadf96fe3425da9abc4726fbb84db6d84f7b5
[ "Apache-2.0" ]
null
null
null
setup.py
giggslam/python-messengerbot-sdk
4a6fadf96fe3425da9abc4726fbb84db6d84f7b5
[ "Apache-2.0" ]
6
2019-03-07T07:58:02.000Z
2020-12-18T10:08:47.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # 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 a...
30.079365
76
0.663852
238
1,895
5.168067
0.57563
0.04878
0.012195
0.026016
0
0
0
0
0
0
0
0.020175
0.215303
1,895
62
77
30.564516
0.806994
0.302902
0
0
0
0
0.343272
0.050459
0
0
0
0
0
1
0.025
false
0
0.1
0
0.15
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
d9b76c6f6bd2bcb1986a9d9701e4ee097a1ff3bf
18,905
py
Python
src/transformers/models/mmbt/modeling_mmbt.py
MaximovaIrina/transformers
033c3ed95a14b58f5a657f5124bc5988e4109c9f
[ "Apache-2.0" ]
1
2022-01-12T11:39:47.000Z
2022-01-12T11:39:47.000Z
src/transformers/models/mmbt/modeling_mmbt.py
AugustVIII/transformers
185876392c0dcd4c4bb02f2750822144a3bee545
[ "Apache-2.0" ]
null
null
null
src/transformers/models/mmbt/modeling_mmbt.py
AugustVIII/transformers
185876392c0dcd4c4bb02f2750822144a3bee545
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # Copyright (c) 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...
46.794554
209
0.685533
2,371
18,905
5.255588
0.169127
0.019501
0.021186
0.020544
0.351416
0.306958
0.25953
0.232084
0.172298
0.137389
0
0.004011
0.23507
18,905
403
210
46.91067
0.857686
0.139646
0
0.229167
0
0.03125
0.414009
0.024936
0
0
0
0
0
1
0.027778
false
0.003472
0.024306
0.003472
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9b79f86fa592dbe24c72c454192af966a916a5a
12,444
py
Python
eth2/beacon/chains/base.py
mhchia/trinity
e40e475064ca4605887706e9b0e4f8e2349b10cd
[ "MIT" ]
null
null
null
eth2/beacon/chains/base.py
mhchia/trinity
e40e475064ca4605887706e9b0e4f8e2349b10cd
[ "MIT" ]
null
null
null
eth2/beacon/chains/base.py
mhchia/trinity
e40e475064ca4605887706e9b0e4f8e2349b10cd
[ "MIT" ]
null
null
null
from abc import ( ABC, abstractmethod, ) import logging from typing import ( TYPE_CHECKING, Tuple, Type, ) from eth._utils.datatypes import ( Configurable, ) from eth.db.backends.base import ( BaseAtomicDB, ) from eth.exceptions import ( BlockNotFound, ) from eth.validation import ( ...
30.955224
99
0.634201
1,348
12,444
5.622404
0.141691
0.017417
0.025729
0.02375
0.485024
0.445046
0.38224
0.338831
0.288429
0.264283
0
0.003717
0.286564
12,444
401
100
31.032419
0.849966
0.180006
0
0.400794
0
0
0.064676
0.019259
0
0
0
0.004988
0
1
0.126984
false
0.063492
0.115079
0
0.34127
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
d9b8347698a1fe18b6d9ec66f6bfbfa77f2567be
1,566
py
Python
using_paramiko.py
allupramodreddy/cisco_py
5488b56d9324011860b78998e694dcce6da5e3d1
[ "Apache-2.0" ]
null
null
null
using_paramiko.py
allupramodreddy/cisco_py
5488b56d9324011860b78998e694dcce6da5e3d1
[ "Apache-2.0" ]
null
null
null
using_paramiko.py
allupramodreddy/cisco_py
5488b56d9324011860b78998e694dcce6da5e3d1
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python3 import paramiko,time #using as SSH Client client = paramiko.SSHClient() # check dir(client) to find available options. # auto adjust host key verification with yes or no client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) # time for connecting to remote Cisco IOS """ Manually taki...
23.727273
89
0.691571
234
1,566
4.551282
0.495727
0.067606
0.04507
0.037559
0.155869
0.155869
0.093897
0.093897
0
0
0
0.026377
0.176884
1,566
66
90
23.727273
0.799845
0.17433
0
0.2
0
0
0.051893
0
0
0
0
0
0
1
0
false
0.05
0.05
0
0.05
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
d9b86cc42aaff67200ff3f4f5f6d27121835fd8c
733
py
Python
old/.history/a_20201125192943.py
pscly/bisai1
e619186cec5053a8e02bd59e48fc3ad3af47d19a
[ "MulanPSL-1.0" ]
null
null
null
old/.history/a_20201125192943.py
pscly/bisai1
e619186cec5053a8e02bd59e48fc3ad3af47d19a
[ "MulanPSL-1.0" ]
null
null
null
old/.history/a_20201125192943.py
pscly/bisai1
e619186cec5053a8e02bd59e48fc3ad3af47d19a
[ "MulanPSL-1.0" ]
null
null
null
# for n in range(400,500): # i = n // 100 # j = n // 10 % 10 # k = n % 10 # if n == i ** 3 + j ** 3 + k ** 3: # print(n) # 第一道题(16) # input("请输入(第一次):") # s1 = input("请输入(第二次):") # l1 = s1.split(' ') # l2 = [] # for i in l1: # if i.isdigit(): # l2.append(int(i)) # for i in l2: # ...
13.089286
39
0.452933
121
733
2.636364
0.421488
0.050157
0.075235
0.075235
0
0
0
0
0
0
0
0.099576
0.356071
733
55
40
13.327273
0.576271
0.472033
0
0
0
0
0.019718
0
0
0
0
0
0
1
0.125
false
0
0
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9b8d42e905cba910e6a30f7d6f38e82d05ab46c
2,110
py
Python
graphdb/transformer.py
muggat0n/graphdb
56dfd5ef8a3321abc6a919faee47494bbe059080
[ "MIT" ]
2
2020-08-28T13:42:38.000Z
2020-09-05T03:13:45.000Z
graphdb/transformer.py
muggat0n/graphdb
56dfd5ef8a3321abc6a919faee47494bbe059080
[ "MIT" ]
null
null
null
graphdb/transformer.py
muggat0n/graphdb
56dfd5ef8a3321abc6a919faee47494bbe059080
[ "MIT" ]
null
null
null
""" A query transformer is a function that accepts a program and returns a program, plus a priority level. Higher priority transformers are placed closer to the front of the list. We’re ensuring is a function, because we’re going to evaluate it later 31 . We’ll assume there won’t be an enormous number of transformer ad...
30.57971
120
0.627962
273
2,110
4.842491
0.47619
0.026475
0.016641
0
0
0
0
0
0
0
0
0.005799
0.264455
2,110
68
121
31.029412
0.845361
0.267299
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0
0.2
0.8
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
d9b92da15285253454115ccfc5647355f3c2b100
345
py
Python
yzcore/templates/project_template/src/const/_job.py
lixuemin13/yz-core
82774f807ac1002b77d0cc90f6695b1cc6ba0820
[ "MIT" ]
6
2021-01-26T10:27:04.000Z
2022-03-19T16:13:12.000Z
yzcore/templates/project_template/src/const/_job.py
lixuemin13/yz-core
82774f807ac1002b77d0cc90f6695b1cc6ba0820
[ "MIT" ]
null
null
null
yzcore/templates/project_template/src/const/_job.py
lixuemin13/yz-core
82774f807ac1002b77d0cc90f6695b1cc6ba0820
[ "MIT" ]
2
2021-07-27T04:11:51.000Z
2022-01-06T09:36:06.000Z
#!/usr/bin/python3.6.8+ # -*- coding:utf-8 -*- """ @auth: cml @date: 2020-12-2 @desc: ... """ class JobStatus(object): PENDING = 0 # 任务等待执行 STARTED = 100 # 任务执行开始 PROCESS = 110 POLLING = 120 CALLBACK = 130 SUCCESS = 200 # 任务执行成功 RETRY = 300 # 任务重试 FAILURE = 400 # 任务执行失败 ...
15
28
0.53913
42
345
4.428571
0.97619
0
0
0
0
0
0
0
0
0
0
0.151261
0.310145
345
22
29
15.681818
0.630252
0.347826
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9b95364464c7d47db46ee15f7524a804b79ea1b
10,311
py
Python
pyboleto/html.py
RenanPalmeira/pyboleto
7b12a7a2f7e92cad5f35f843ae67c397b6f7e36e
[ "BSD-3-Clause" ]
null
null
null
pyboleto/html.py
RenanPalmeira/pyboleto
7b12a7a2f7e92cad5f35f843ae67c397b6f7e36e
[ "BSD-3-Clause" ]
null
null
null
pyboleto/html.py
RenanPalmeira/pyboleto
7b12a7a2f7e92cad5f35f843ae67c397b6f7e36e
[ "BSD-3-Clause" ]
1
2019-03-20T01:01:00.000Z
2019-03-20T01:01:00.000Z
# -*- coding: utf-8 -*- """ pyboleto.html ~~~~~~~~~~~~~ Classe Responsável por fazer o output do boleto em html. :copyright: © 2012 by Artur Felipe de Sousa :license: BSD, see LICENSE for more details. """ import os import string import sys import codecs import base64 from itertools import chain...
35.926829
77
0.617011
1,194
10,311
5.156616
0.237018
0.050024
0.027611
0.043853
0.410102
0.404743
0.376969
0.337502
0.335066
0.318824
0
0.009436
0.260014
10,311
286
78
36.052448
0.797379
0.212201
0
0.291667
0
0
0.118981
0.016137
0
0
0
0.003497
0
1
0.089286
false
0
0.047619
0
0.172619
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
d9b9563b7aae9c46b0fbd98073d96eeedfaec4aa
91
py
Python
Courses/1 month/2 week/day 6/Formula.py
emir-naiz/first_git_lesson
1fecf712290f6da3ef03deff518870d91638eb69
[ "MIT" ]
null
null
null
Courses/1 month/2 week/day 6/Formula.py
emir-naiz/first_git_lesson
1fecf712290f6da3ef03deff518870d91638eb69
[ "MIT" ]
null
null
null
Courses/1 month/2 week/day 6/Formula.py
emir-naiz/first_git_lesson
1fecf712290f6da3ef03deff518870d91638eb69
[ "MIT" ]
null
null
null
summary = 0 i = 0 while i < 5: summary = summary + i print(summary) i = i + 1
11.375
25
0.516484
15
91
3.133333
0.466667
0.340426
0
0
0
0
0
0
0
0
0
0.070175
0.373626
91
7
26
13
0.754386
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
d9b9af3bd25b0d2f9357446b0ff43e3ab614b141
243
py
Python
tests/image_saver/image_saver_7.py
Vicken-Ghoubiguian/Imtreat
1f8e8406dc48af3b1e8e0c138a09aa1faee0b8a0
[ "MIT" ]
null
null
null
tests/image_saver/image_saver_7.py
Vicken-Ghoubiguian/Imtreat
1f8e8406dc48af3b1e8e0c138a09aa1faee0b8a0
[ "MIT" ]
null
null
null
tests/image_saver/image_saver_7.py
Vicken-Ghoubiguian/Imtreat
1f8e8406dc48af3b1e8e0c138a09aa1faee0b8a0
[ "MIT" ]
null
null
null
import imtreat img = imtreat.imageManagerClass.openImageFunction("../images/soleil.png", 0) img = imtreat.definedModesClass.detailEnhanceFunction(img) imtreat.imageManagerClass.saveImageFunction("/Téléchargements/", "image_1", ".png", img)
30.375
88
0.794239
23
243
8.347826
0.652174
0.15625
0.28125
0
0
0
0
0
0
0
0
0.008811
0.065844
243
7
89
34.714286
0.837004
0
0
0
0
0
0.197531
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
0
0
0
0
0
0
0
3
d9ba3c5b12232bbc811a9ad606f2570ac2481108
10,492
py
Python
nova/conf/hyperv.py
raubvogel/nova
b78be4e83cdc191e20a4a61b6aae72cb2b37f62b
[ "Apache-2.0" ]
null
null
null
nova/conf/hyperv.py
raubvogel/nova
b78be4e83cdc191e20a4a61b6aae72cb2b37f62b
[ "Apache-2.0" ]
null
null
null
nova/conf/hyperv.py
raubvogel/nova
b78be4e83cdc191e20a4a61b6aae72cb2b37f62b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 TUBITAK BILGEM # 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 requir...
31.04142
79
0.735989
1,552
10,492
4.906572
0.278351
0.026001
0.016809
0.022062
0.222981
0.161261
0.127118
0.088378
0.066448
0.052265
0
0.018754
0.191956
10,492
337
80
31.133531
0.879453
0.057568
0
0.31746
0
0
0.841993
0.065836
0
0
0
0
0
1
0.007937
false
0.011905
0.003968
0.003968
0.015873
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
d9ba3e40007f306c4c070fefef8a9b0aa2387204
363
py
Python
src/fetchWords.py
theyadev/thierry-bot
f3c72998d4c16afbca77baf4cabaf0f547d51e94
[ "MIT" ]
null
null
null
src/fetchWords.py
theyadev/thierry-bot
f3c72998d4c16afbca77baf4cabaf0f547d51e94
[ "MIT" ]
2
2022-01-20T16:36:33.000Z
2022-03-31T14:16:01.000Z
src/fetchWords.py
theyadev/thierry-bot
f3c72998d4c16afbca77baf4cabaf0f547d51e94
[ "MIT" ]
1
2022-01-28T12:14:14.000Z
2022-01-28T12:14:14.000Z
import requests words_list = requests.get("https://raw.githubusercontent.com/atebits/Words/master/Words/fr.txt").text words_list = filter(lambda x: len(x) > 4, words_list.split('\n')) path = input("Chemin d'écriture ? (words.txt) ") if path == "": path = "./words.txt" with open(path, "w", encoding="utf-8") as ...
27.923077
101
0.672176
56
363
4.285714
0.660714
0.15
0
0
0
0
0
0
0
0
0
0.006309
0.126722
363
13
102
27.923077
0.750789
0
0
0
0
0
0.32967
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9ba8bca5b7327bbb7e6554d0a3849c186cc4ba9
1,623
py
Python
inspiration/simplegallery/test/upload/variants/test_aws_uploader.py
Zenahr/simple-music-gallery
2cf6e81208b721a91dcbf77e047c7f77182dd194
[ "MIT" ]
1
2020-07-03T17:21:01.000Z
2020-07-03T17:21:01.000Z
simplegallery/test/upload/variants/test_aws_uploader.py
theemack/simple-photo-gallery
f5db98bca7a7443ea7a9172317811f446eff760c
[ "MIT" ]
1
2020-06-20T12:13:00.000Z
2020-06-20T15:32:03.000Z
inspiration/simplegallery/test/upload/variants/test_aws_uploader.py
Zenahr/simple-music-gallery
2cf6e81208b721a91dcbf77e047c7f77182dd194
[ "MIT" ]
null
null
null
import unittest from unittest import mock import os import subprocess from testfixtures import TempDirectory from simplegallery.upload.uploader_factory import get_uploader class AWSUploaderTestCase(unittest.TestCase): def test_no_location(self): uploader = get_uploader('aws') self.assertFalse(upl...
37.744186
103
0.646334
178
1,623
5.657303
0.337079
0.076465
0.079444
0.053625
0.405164
0.405164
0.405164
0.405164
0.405164
0.405164
0
0.007183
0.227973
1,623
42
104
38.642857
0.796488
0.078866
0
0.285714
0
0
0.167114
0.056376
0
0
0
0
0.142857
1
0.071429
false
0
0.214286
0
0.321429
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
d9bd741cd9ad9e20eeb1069fce4709781f43edd4
6,476
py
Python
Qt_interface/add_subject.py
kithsirij/NLP-based-Syllabus-Coverage-Exam-paper-checker-Tool
b7b38a7b7c6d0a2ad5264df32acd75cdef552bd0
[ "MIT" ]
1
2019-07-17T09:08:41.000Z
2019-07-17T09:08:41.000Z
Qt_interface/add_subject.py
kithsirij/NLP-based-Syllabus-Coverage-Exam-paper-checker-Tool
b7b38a7b7c6d0a2ad5264df32acd75cdef552bd0
[ "MIT" ]
null
null
null
Qt_interface/add_subject.py
kithsirij/NLP-based-Syllabus-Coverage-Exam-paper-checker-Tool
b7b38a7b7c6d0a2ad5264df32acd75cdef552bd0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'add_subject.ui' # # Created by: PyQt4 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: de...
48.691729
137
0.694719
761
6,476
5.654402
0.198423
0.092958
0.118987
0.041831
0.478039
0.408552
0.364397
0.263072
0.228213
0.206832
0
0.033788
0.195645
6,476
132
138
49.060606
0.792283
0.028567
0
0.293103
1
0
0.100634
0.022435
0
0
0
0
0
1
0.043103
false
0
0.017241
0.025862
0.094828
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
d9be3b65d403b8ba23a315dd5e1dcfb9fd542171
2,553
py
Python
tests/syncdb_signals/tests.py
mdj2/django
e71b63e280559122371d125d75a593dc2435c394
[ "BSD-3-Clause" ]
1
2017-02-08T15:13:43.000Z
2017-02-08T15:13:43.000Z
tests/syncdb_signals/tests.py
mdj2/django
e71b63e280559122371d125d75a593dc2435c394
[ "BSD-3-Clause" ]
null
null
null
tests/syncdb_signals/tests.py
mdj2/django
e71b63e280559122371d125d75a593dc2435c394
[ "BSD-3-Clause" ]
null
null
null
from django.db.models import signals from django.test import TestCase from django.core import management from django.utils import six from shared_models import models PRE_SYNCDB_ARGS = ['app', 'create_models', 'verbosity', 'interactive', 'db'] SYNCDB_DATABASE = 'default' SYNCDB_VERBOSITY = 1 SYNCDB_INTERACTIVE = Fal...
34.04
77
0.703486
328
2,553
5.277439
0.29878
0.057192
0.051993
0.02773
0.233391
0.18602
0.18602
0.139804
0.139804
0.139804
0
0.005462
0.211124
2,553
74
78
34.5
0.854022
0.236584
0
0.27907
0
0
0.044294
0
0
0
0
0
0.162791
1
0.139535
false
0
0.116279
0
0.325581
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
d9be5eda54c6b03914f01c88d3b8d97dd5add586
3,625
py
Python
pytorch_lightning/plugins/environments/slurm_environment.py
gianscarpe/pytorch-lightning
261ea90822e2bf1cfa5d56171ab1f95a81d5c571
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/plugins/environments/slurm_environment.py
gianscarpe/pytorch-lightning
261ea90822e2bf1cfa5d56171ab1f95a81d5c571
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/plugins/environments/slurm_environment.py
gianscarpe/pytorch-lightning
261ea90822e2bf1cfa5d56171ab1f95a81d5c571
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning 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/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
33.878505
114
0.622345
466
3,625
4.693133
0.345494
0.051212
0.034294
0.029264
0.132602
0.091449
0.060357
0.046639
0
0
0
0.011839
0.254345
3,625
106
115
34.198113
0.797262
0.285241
0
0.137931
0
0
0.163082
0.045757
0
0
0
0
0
1
0.189655
false
0
0.068966
0.086207
0.431034
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
d9be639438e84e867c9e53c267b847b31292fe23
928
py
Python
examples/mouse.py
ginkage/trackball-python
06439ac77935f7fd9374bd4f535822e859734729
[ "MIT" ]
22
2019-04-19T11:13:16.000Z
2022-03-04T15:04:43.000Z
examples/mouse.py
ginkage/trackball-python
06439ac77935f7fd9374bd4f535822e859734729
[ "MIT" ]
7
2019-06-17T13:48:41.000Z
2022-02-07T14:24:00.000Z
examples/mouse.py
ginkage/trackball-python
06439ac77935f7fd9374bd4f535822e859734729
[ "MIT" ]
6
2019-04-24T00:58:29.000Z
2022-01-26T15:39:10.000Z
#!/usr/bin/env python import time import os import math from trackball import TrackBall print("""Trackball: Mouse Use the trackball as a mouse in Raspbian, with right-click when the switch is pressed. Press Ctrl+C to exit! """) trackball = TrackBall(interrupt_pin=4) trackball.set_rgbw(0, 0, 0, 0) # Check for xte (...
23.2
78
0.635776
145
928
4.041379
0.544828
0.010239
0.010239
0
0
0
0
0
0
0
0
0.021368
0.243534
928
39
79
23.794872
0.81339
0.09806
0
0.074074
0
0
0.27458
0
0
0
0
0
0
1
0
false
0
0.148148
0
0.148148
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
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
d9be866c44b7b03225042353a7fcf648c1ce10ab
11,294
py
Python
garaged/src/garage/tf/regressors/gaussian_mlp_regressor_model.py
artberryx/LSD
99ee081de2502b4d13c140b474f772db8a5f92fe
[ "MIT" ]
7
2022-02-01T03:02:24.000Z
2022-02-10T12:54:05.000Z
garaged/src/garage/tf/regressors/gaussian_mlp_regressor_model.py
artberryx/LSD
99ee081de2502b4d13c140b474f772db8a5f92fe
[ "MIT" ]
null
null
null
garaged/src/garage/tf/regressors/gaussian_mlp_regressor_model.py
artberryx/LSD
99ee081de2502b4d13c140b474f772db8a5f92fe
[ "MIT" ]
2
2022-02-03T03:33:25.000Z
2022-02-10T12:54:07.000Z
"""GaussianMLPRegressorModel.""" import numpy as np import tensorflow as tf import tensorflow_probability as tfp from garage.experiment import deterministic from garage.tf.models import GaussianMLPModel class GaussianMLPRegressorModel(GaussianMLPModel): """GaussianMLPRegressor based on garage.tf.models.Model cla...
44.81746
79
0.611741
1,340
11,294
4.86791
0.158209
0.01533
0.016863
0.016097
0.516787
0.37866
0.322858
0.311207
0.288518
0.237314
0
0.005616
0.322029
11,294
251
80
44.996016
0.846284
0.387108
0
0.167939
0
0
0.028767
0.003887
0
0
0
0
0
1
0.030534
false
0
0.038168
0
0.099237
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
d9becf802ca0765623e481aef0b8fd051c0096e5
3,594
py
Python
test.py
kim-sunghoon/DiracDeltaNet
7bcc0575f28715d9c7f737f8a239718320f9c05b
[ "Apache-2.0" ]
null
null
null
test.py
kim-sunghoon/DiracDeltaNet
7bcc0575f28715d9c7f737f8a239718320f9c05b
[ "Apache-2.0" ]
null
null
null
test.py
kim-sunghoon/DiracDeltaNet
7bcc0575f28715d9c7f737f8a239718320f9c05b
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torch.backends.cudnn as cudnn import torchvision import torchvision.transforms as transforms import torchvision.datasets as datasets import os import argparse from torch.autograd import Variable from e...
28.983871
115
0.645242
461
3,594
4.91974
0.357918
0.02425
0.019841
0.017637
0.022928
0.022928
0
0
0
0
0
0.034021
0.231219
3,594
123
116
29.219512
0.786826
0.023929
0
0.023256
0
0
0.072846
0
0
0
0
0
0
1
0.023256
false
0
0.186047
0
0.232558
0.05814
0
0
0
null
0
0
0
0
0
0
0
0
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
d9c028ee1a5ced657b4755383e247cbb2fed35a8
416
py
Python
paccmann_chemistry/utils/hyperparams.py
PaccMann/paccmann_chemistry
f7e9735aafb936f837c38b5055c654be178f385f
[ "MIT" ]
9
2019-11-06T10:39:15.000Z
2022-01-09T11:08:52.000Z
paccmann_chemistry/utils/hyperparams.py
PaccMann/paccmann_chemistry
f7e9735aafb936f837c38b5055c654be178f385f
[ "MIT" ]
10
2019-11-06T17:33:51.000Z
2020-12-28T07:46:23.000Z
paccmann_chemistry/utils/hyperparams.py
PaccMann/paccmann_chemistry
f7e9735aafb936f837c38b5055c654be178f385f
[ "MIT" ]
5
2020-08-13T15:00:57.000Z
2022-03-24T14:29:07.000Z
"""Model Parameters Module.""" import torch.optim as optim from .search import SamplingSearch, GreedySearch, BeamSearch SEARCH_FACTORY = { 'sampling': SamplingSearch, 'greedy': GreedySearch, 'beam': BeamSearch, } OPTIMIZER_FACTORY = { 'adadelta': optim.Adadelta, 'adagrad': optim.Adagrad, 'adam...
21.894737
60
0.675481
42
416
6.642857
0.547619
0
0
0
0
0
0
0
0
0
0
0
0.185096
416
18
61
23.111111
0.823009
0.057692
0
0
0
0
0.137306
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
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
d9c1c1059c5b91f27882844cb4c3becda27ebd7c
6,417
py
Python
tests/gpflux/layers/test_latent_variable_layer.py
francescodonato/GPflux
fe45b353243b31d9fa0ec0daeb1d39a2e78ba094
[ "Apache-2.0" ]
100
2021-04-13T07:54:49.000Z
2022-03-21T16:25:45.000Z
tests/gpflux/layers/test_latent_variable_layer.py
francescodonato/GPflux
fe45b353243b31d9fa0ec0daeb1d39a2e78ba094
[ "Apache-2.0" ]
17
2021-04-13T03:13:11.000Z
2022-02-28T07:36:55.000Z
tests/gpflux/layers/test_latent_variable_layer.py
francescodonato/GPflux
fe45b353243b31d9fa0ec0daeb1d39a2e78ba094
[ "Apache-2.0" ]
13
2021-04-12T19:12:17.000Z
2022-03-10T00:41:44.000Z
# # Copyright (c) 2021 The GPflux Contributors. # # 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 agr...
32.573604
99
0.717781
848
6,417
5.21934
0.275943
0.018075
0.032309
0.046317
0.286941
0.229327
0.208089
0.189336
0.189336
0.173972
0
0.011094
0.171264
6,417
196
100
32.739796
0.821173
0.163316
0
0.217391
0
0
0.011202
0
0
0
0
0
0.113043
1
0.078261
false
0
0.069565
0.008696
0.182609
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
d9c21d6803d82661080e36eb0e94a3b82f8b2f7c
18,041
py
Python
aw-actor-trust.py
actingweb/box-actingweb
f586458484649aba927cd78c60b4d0fec7b82ca6
[ "Apache-2.0" ]
null
null
null
aw-actor-trust.py
actingweb/box-actingweb
f586458484649aba927cd78c60b4d0fec7b82ca6
[ "Apache-2.0" ]
null
null
null
aw-actor-trust.py
actingweb/box-actingweb
f586458484649aba927cd78c60b4d0fec7b82ca6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # from actingweb import actor from actingweb import config from actingweb import trust from actingweb import auth import webapp2 import os from google.appengine.ext.webapp import template import json import logging import datetime import time # /trust handlers # # GET /trust with query paramet...
41.955814
152
0.558228
1,868
18,041
5.322805
0.114026
0.056723
0.055818
0.078145
0.615307
0.590969
0.534748
0.473398
0.428342
0.416474
0
0.013286
0.332465
18,041
429
153
42.053613
0.812339
0.087357
0
0.616402
0
0
0.097518
0.004319
0
0
0
0
0
1
0.026455
false
0
0.029101
0
0.15873
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
d9c3024853794c19d2ce2400c8d47311441430b2
8,513
py
Python
src/main/python/rlbot/version.py
IamEld3st/RLBot
36195ffd3a836ed910ce63aed8ba103b98b7b361
[ "MIT" ]
null
null
null
src/main/python/rlbot/version.py
IamEld3st/RLBot
36195ffd3a836ed910ce63aed8ba103b98b7b361
[ "MIT" ]
null
null
null
src/main/python/rlbot/version.py
IamEld3st/RLBot
36195ffd3a836ed910ce63aed8ba103b98b7b361
[ "MIT" ]
null
null
null
# Store the version here so: # 1) we don't load dependencies by storing it in __init__.py # 2) we can import it in setup.py for the same reason # 3) we can import it into your module module # https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package __version__ = '1.6.1' release_note...
45.768817
118
0.677787
1,269
8,513
4.467297
0.394011
0.008467
0.014817
0.020109
0.095608
0.07444
0.054683
0.054683
0.027165
0.027165
0
0.028786
0.23282
8,513
185
119
46.016216
0.839228
0.032186
0
0.158228
0
0.101266
0.909632
0.012389
0
0
0
0
0
1
0.018987
false
0
0
0.006329
0.037975
0.037975
0
0
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
d9c310055166d8d1507c05ad91c6bc47af7f5743
32,544
py
Python
dungeoncog/enemy_skills_pb2.py
muffin-rice/pad-cogs
820ecf08f9569a3d7cf3264d0eb9567264b42edf
[ "MIT" ]
3
2021-04-16T23:47:59.000Z
2021-09-10T06:00:18.000Z
dungeoncog/enemy_skills_pb2.py
muffin-rice/pad-cogs
820ecf08f9569a3d7cf3264d0eb9567264b42edf
[ "MIT" ]
708
2020-10-31T08:02:40.000Z
2022-03-31T09:39:25.000Z
dungeoncog/enemy_skills_pb2.py
muffin-rice/pad-cogs
820ecf08f9569a3d7cf3264d0eb9567264b42edf
[ "MIT" ]
20
2020-11-01T23:11:29.000Z
2022-02-07T07:04:15.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: enemy_skills.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.pr...
51.169811
2,854
0.703386
3,756
32,544
5.743344
0.078541
0.050065
0.0916
0.077601
0.731087
0.659651
0.637725
0.615474
0.599759
0.599759
0
0.03926
0.191495
32,544
635
2,855
51.250394
0.780594
0.02111
0
0.68386
1
0.004992
0.146451
0.10647
0
0
0
0
0
1
0
false
0.003328
0.006656
0
0.006656
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d9c32f78fb7ce24035473595e0a40c4945453a5b
2,465
py
Python
classy_vision/heads/fully_connected_head.py
dlegor/ClassyVision
9c82d533b66b0a5fbb11f8ab3567a9c70aa4e013
[ "MIT" ]
1
2021-04-11T19:01:10.000Z
2021-04-11T19:01:10.000Z
classy_vision/heads/fully_connected_head.py
prigoyal/ClassyVision
db87bb87068ee8d2c7b21849ddd0548082e20a87
[ "MIT" ]
null
null
null
classy_vision/heads/fully_connected_head.py
prigoyal/ClassyVision
db87bb87068ee8d2c7b21849ddd0548082e20a87
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Any, Dict import torch.nn as nn from classy_vision.generic.util import is_pos_int from classy_visio...
31.602564
83
0.628398
317
2,465
4.712934
0.391167
0.066934
0.032129
0.022758
0
0
0
0
0
0
0
0.004577
0.290872
2,465
77
84
32.012987
0.850114
0.403245
0
0
0
0
0.056732
0
0
0
0
0
0.055556
1
0.083333
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9c387f6c561372e064bfe33f0566d9f2a1cdd50
399
py
Python
Task2C.py
StanleyHou117/group66_LentTermProject
0255310cb202f21cada8cf7c0f45a045a9b72c1f
[ "MIT" ]
null
null
null
Task2C.py
StanleyHou117/group66_LentTermProject
0255310cb202f21cada8cf7c0f45a045a9b72c1f
[ "MIT" ]
null
null
null
Task2C.py
StanleyHou117/group66_LentTermProject
0255310cb202f21cada8cf7c0f45a045a9b72c1f
[ "MIT" ]
null
null
null
from floodsystem.stationdata import build_station_list from floodsystem.flood import stations_highest_rel_level def run(): stations = build_station_list() warning_stations = stations_highest_rel_level(stations,10) for entry in warning_stations: print(entry[0].name,entry[1]) if __name__ == "__mai...
28.5
63
0.734336
53
399
5.150943
0.584906
0.10989
0.117216
0.168498
0
0
0
0
0
0
0
0.01506
0.16792
399
14
64
28.5
0.807229
0
0
0
0
0
0.145
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.3
0.2
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d9c389b63a2c9720abef56190237f31a2306da19
1,972
py
Python
src/biotite/copyable.py
danijoo/biotite
22072e64676e4e917236eac8493eed4c6a22cc33
[ "BSD-3-Clause" ]
208
2018-04-20T15:59:42.000Z
2022-03-22T07:47:12.000Z
src/biotite/copyable.py
danielmuthama/biotite
cb238a8d8d7dc82b3bcea274d7d91d5c876badcd
[ "BSD-3-Clause" ]
121
2017-11-15T14:52:07.000Z
2022-03-30T16:31:41.000Z
src/biotite/copyable.py
danielmuthama/biotite
cb238a8d8d7dc82b3bcea274d7d91d5c876badcd
[ "BSD-3-Clause" ]
49
2018-07-19T09:06:24.000Z
2022-03-23T17:21:34.000Z
# This source code is part of the Biotite package and is distributed # under the 3-Clause BSD License. Please see 'LICENSE.rst' for further # information. __name__ = "biotite" __author__ = "Patrick Kunzmann" __all__ = ["Copyable"] import abc class Copyable(metaclass=abc.ABCMeta): """ Base class for all obje...
27.774648
70
0.59432
235
1,972
4.787234
0.421277
0.017778
0.017778
0.023111
0.088889
0
0
0
0
0
0
0.00076
0.333164
1,972
71
71
27.774648
0.854753
0.626775
0
0
0
0
0.077114
0
0
0
0
0
0
1
0.230769
false
0.076923
0.076923
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
d9c3ac1232aa677a1999a869a726247c9e688214
3,400
py
Python
custom_components/wyzeapi/binary_sensor.py
np-hacs/ha-wyzeapi
8abc6af59d36514008f696310b290a046d7c7a72
[ "Apache-2.0" ]
null
null
null
custom_components/wyzeapi/binary_sensor.py
np-hacs/ha-wyzeapi
8abc6af59d36514008f696310b290a046d7c7a72
[ "Apache-2.0" ]
null
null
null
custom_components/wyzeapi/binary_sensor.py
np-hacs/ha-wyzeapi
8abc6af59d36514008f696310b290a046d7c7a72
[ "Apache-2.0" ]
null
null
null
import logging import time from datetime import timedelta from typing import List from homeassistant.components.binary_sensor import ( BinarySensorEntity, DEVICE_CLASS_MOTION ) from homeassistant.config_entries import ConfigEntry from homeassistant.const import ATTR_ATTRIBUTION from homeassistant.core import H...
29.059829
109
0.645
382
3,400
5.489529
0.290576
0.042918
0.024797
0.025751
0.104912
0.079161
0.079161
0.079161
0.043872
0.043872
0
0.002419
0.270588
3,400
116
110
29.310345
0.843145
0.031765
0
0.233333
0
0
0.044899
0
0
0
0
0
0
1
0.111111
false
0
0.133333
0.044444
0.377778
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
d9c3b05c7fcf1f87eb65a4b552deef9342032f24
6,520
py
Python
src/Components/missions/GEMS/mcd43c.py
GEOS-ESM/AeroApps
874dad6f34420c014d98eccbe81a061bdc0110cf
[ "NASA-1.3", "ECL-2.0", "Apache-2.0" ]
2
2020-12-02T14:23:30.000Z
2021-12-31T15:39:30.000Z
src/Components/missions/GEMS/mcd43c.py
GEOS-ESM/AeroApps
874dad6f34420c014d98eccbe81a061bdc0110cf
[ "NASA-1.3", "ECL-2.0", "Apache-2.0" ]
9
2020-04-15T16:22:14.000Z
2022-03-24T13:59:25.000Z
src/Components/missions/SENTINEL-4/mcd43c.py
GEOS-ESM/AeroApps
874dad6f34420c014d98eccbe81a061bdc0110cf
[ "NASA-1.3", "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Reads climate modeling grid 0.05 degree MCD43 BRDF files. """ import os import sys from numpy import loadtxt, array, tile, where, concatenate, flipud from numpy import ones from datetime import date, datetime, timedelta from glob import glob from pyhdf.SD import SD, HDF4Error MISSING = 32.767 SDS = dict...
36.222222
103
0.533282
747
6,520
4.373494
0.273092
0.137741
0.085706
0.018365
0.039792
0.012244
0
0
0
0
0
0.067998
0.316564
6,520
179
104
36.424581
0.665171
0.100767
0
0.056604
0
0
0.209649
0.133752
0
0
0
0
0
0
null
null
0
0.066038
null
null
0.04717
0
0
0
null
0
0
0
0
0
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
d9c4481e6f2e6c4d81a9ed81d21838df61cf431f
26,272
py
Python
tests/keras/layers/wrappers_test.py
kalyc/keras-apache-mxnet
5497ebd50a45ccc446b8944ebbe11fb7721a5533
[ "MIT" ]
300
2018-04-04T05:01:21.000Z
2022-02-25T18:56:04.000Z
tests/keras/layers/wrappers_test.py
kalyc/keras-apache-mxnet
5497ebd50a45ccc446b8944ebbe11fb7721a5533
[ "MIT" ]
163
2018-04-03T17:41:22.000Z
2021-09-03T16:44:04.000Z
tests/keras/layers/wrappers_test.py
kalyc/keras-apache-mxnet
5497ebd50a45ccc446b8944ebbe11fb7721a5533
[ "MIT" ]
72
2018-04-21T06:42:30.000Z
2021-12-26T06:02:42.000Z
import pytest import numpy as np import copy from numpy.testing import assert_allclose from keras.utils import CustomObjectScope from keras.layers import wrappers, Input, Layer from keras.layers import RNN from keras import layers from keras.models import Sequential, Model, model_from_json from keras import backend as ...
40.418462
95
0.629225
3,476
26,272
4.577675
0.086594
0.017597
0.021996
0.027149
0.794558
0.760872
0.714178
0.637192
0.602061
0.562909
0
0.023567
0.242502
26,272
649
96
40.48074
0.775991
0.052223
0
0.58365
0
0
0.044619
0
0
0
0
0
0.110266
1
0.045627
false
0.001901
0.020913
0
0.077947
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
d9c4cf9fb1ad31300587d3e24030d9670ed150d3
3,342
py
Python
src/tornado-3.2.2/tornado/platform/common.py
code-annotator/tornado-annotated
78fa3ab3b87a559c1db9ec11d86d79f6bf47853c
[ "MIT" ]
645
2015-01-03T02:03:59.000Z
2021-12-03T08:43:16.000Z
filenv/lib/python2.7/site-packages/tornado/platform/common.py
betoesquivel/fil2014
4c2e9188769096391bb206b76ed1ab8bd2ff66a1
[ "MIT" ]
2
2021-04-30T20:29:40.000Z
2022-02-11T03:38:04.000Z
filenv/lib/python2.7/site-packages/tornado/platform/common.py
betoesquivel/fil2014
4c2e9188769096391bb206b76ed1ab8bd2ff66a1
[ "MIT" ]
222
2015-01-07T05:00:52.000Z
2021-12-06T09:54:26.000Z
"""Lowest-common-denominator implementations of platform functionality.""" from __future__ import absolute_import, division, print_function, with_statement import errno import socket from tornado.platform import interface class Waker(interface.Waker): """Create an OS independent asynchronous pipe. For use ...
36.326087
86
0.55775
415
3,342
4.450602
0.498795
0.043313
0.025988
0.030861
0.033568
0.033568
0
0
0
0
0
0.021296
0.35368
3,342
91
87
36.725275
0.833796
0.382406
0
0.269231
0
0
0.021361
0
0
0
0
0
0
1
0.115385
false
0.038462
0.076923
0.038462
0.25
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
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
d9c69927875c451378bcb7d50069e903036beefa
5,490
py
Python
bathymetry_blink/bathymetry_blink.py
poster515/BlinkyTape_Python
edc2f7e43fbf07dbfdeba60da7acb7ae7a3707d0
[ "MIT" ]
26
2015-02-14T11:37:21.000Z
2021-05-10T17:24:16.000Z
bathymetry_blink/bathymetry_blink.py
poster515/BlinkyTape_Python
edc2f7e43fbf07dbfdeba60da7acb7ae7a3707d0
[ "MIT" ]
8
2015-02-14T17:33:24.000Z
2021-10-05T20:32:19.000Z
bathymetry_blink/bathymetry_blink.py
poster515/BlinkyTape_Python
edc2f7e43fbf07dbfdeba60da7acb7ae7a3707d0
[ "MIT" ]
15
2015-01-24T23:36:54.000Z
2021-10-02T23:40:08.000Z
""" This script will modulate the blinky lights using the following algorithm: 1) uses user-provided location to obtain row of pixel data from bathy image 2) samples a 'number of LEDs' number of pixels from that row 3) shifts the sampled row data to center it at the location specified by user 4) displays resulting pix...
36.845638
230
0.654098
786
5,490
4.496183
0.375318
0.012733
0.025467
0.007923
0.034522
0.01245
0
0
0
0
0
0.025142
0.232058
5,490
149
231
36.845638
0.813093
0.436976
0
0.044118
0
0
0.213035
0.011673
0
0
0
0
0
1
0
false
0
0.102941
0
0.102941
0.102941
0
0
0
null
0
0
0
0
0
0
0
0
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
d9c6ca6076e88b29cf949f6ea50aa8a721054e5d
5,118
py
Python
service/transforms/export_submissions.py
SFDigitalServices/pts-dispatcher-microservice-py
80ec68d9d7f3f120a708717ed92c8b5a16742ff3
[ "MIT" ]
null
null
null
service/transforms/export_submissions.py
SFDigitalServices/pts-dispatcher-microservice-py
80ec68d9d7f3f120a708717ed92c8b5a16742ff3
[ "MIT" ]
4
2020-08-28T17:21:06.000Z
2021-06-02T01:52:16.000Z
service/transforms/export_submissions.py
SFDigitalServices/pts-dispatcher-microservice-py
80ec68d9d7f3f120a708717ed92c8b5a16742ff3
[ "MIT" ]
null
null
null
""" Export Submissions Transform module """ #pylint: disable=too-few-public-methods import pandas as pd from .transform import TransformBase from ..resources.field_configs import FieldConfigs from ..resources.field_maps import FieldMaps class ExportSubmissionsTransform(TransformBase): """ Transform for Export Subm...
44.12069
112
0.520125
512
5,118
5.074219
0.279297
0.048499
0.023095
0.013087
0.046959
0.046959
0
0
0
0
0
0.002545
0.385893
5,118
115
113
44.504348
0.824053
0.150254
0
0.157895
0
0
0.038116
0.005919
0
0
0
0
0
1
0.065789
false
0
0.052632
0
0.197368
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
d9c723ccb8662448fc572ef43b245239e373eaa3
2,877
py
Python
python/ray/ml/tests/test_torch_trainer.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
22
2018-05-08T05:52:34.000Z
2020-04-01T10:09:55.000Z
python/ray/ml/tests/test_torch_trainer.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
73
2021-09-25T07:11:39.000Z
2022-03-26T07:10:59.000Z
python/ray/ml/tests/test_torch_trainer.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
10
2018-04-27T10:50:59.000Z
2020-02-24T02:41:43.000Z
import pytest import torch import ray from ray.ml.predictors.integrations.torch import TorchPredictor from ray.ml.train.integrations.torch import TorchTrainer from ray import train from ray.ml.examples.pytorch.torch_linear_example import train_func as linear_train_func @pytest.fixture def ray_start_4_cpus(): add...
28.77
88
0.681265
369
2,877
5.01897
0.281843
0.043737
0.019438
0.028078
0.534557
0.510799
0.470842
0.470842
0.446004
0.446004
0
0.012406
0.215502
2,877
99
89
29.060606
0.808152
0.041363
0
0.418919
0
0
0.042468
0
0
0
0
0
0.054054
1
0.148649
false
0
0.121622
0.027027
0.324324
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9c7946fa7c34a185ec10fc47b862efa2f519a9d
19,770
py
Python
uhd_restpy/testplatform/sessions/ixnetwork/quicktest/learnframes_58e01d83db5d99bcabff902f5cf6ec51.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
20
2019-05-07T01:59:14.000Z
2022-02-11T05:24:47.000Z
uhd_restpy/testplatform/sessions/ixnetwork/quicktest/learnframes_58e01d83db5d99bcabff902f5cf6ec51.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
60
2019-04-03T18:59:35.000Z
2022-02-22T12:05:05.000Z
uhd_restpy/testplatform/sessions/ixnetwork/quicktest/learnframes_58e01d83db5d99bcabff902f5cf6ec51.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
13
2019-05-20T10:48:31.000Z
2021-10-06T07:45:44.000Z
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
44.728507
304
0.644917
2,223
19,770
5.650022
0.127305
0.021497
0.018631
0.025876
0.68949
0.663296
0.605573
0.595701
0.558519
0.519984
0
0.002926
0.239454
19,770
441
305
44.829932
0.832402
0.527112
0
0.270833
0
0
0.13391
0.042006
0
0
0
0
0
1
0.243056
false
0
0.020833
0
0.451389
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
d9c7f3fdaa6dbe4abf7e68c6052896f817807b98
190
py
Python
core/serializers.py
telminov/sonm-cdn-cms
e51107e3baed9e633e54db6cd7f784178f531b4a
[ "MIT" ]
1
2018-08-31T17:40:14.000Z
2018-08-31T17:40:14.000Z
core/serializers.py
telminov/sonm-cdn-cms
e51107e3baed9e633e54db6cd7f784178f531b4a
[ "MIT" ]
null
null
null
core/serializers.py
telminov/sonm-cdn-cms
e51107e3baed9e633e54db6cd7f784178f531b4a
[ "MIT" ]
null
null
null
from rest_framework import serializers from core import models class AssetSerializer(serializers.ModelSerializer): class Meta: model = models.Asset fields = '__all__'
19
51
0.731579
20
190
6.7
0.75
0
0
0
0
0
0
0
0
0
0
0
0.215789
190
9
52
21.111111
0.899329
0
0
0
0
0
0.036842
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
d9c7f680a10afbb210d6a7c50f3b0ac7716821e0
190
py
Python
tests/wasp1/AllAnswerSets/aggregates_count_boundvariables_1.test.py
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
19
2015-12-03T08:53:45.000Z
2022-03-31T02:09:43.000Z
tests/wasp1/AllAnswerSets/aggregates_count_boundvariables_1.test.py
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
80
2017-11-25T07:57:32.000Z
2018-06-10T19:03:30.000Z
tests/wasp1/AllAnswerSets/aggregates_count_boundvariables_1.test.py
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
6
2015-01-15T07:51:48.000Z
2020-06-18T14:47:48.000Z
input = """ c(2). p(1). a(2). d(2,2,1). okay(X):- c(X), #count{V:a(V),d(V,X,1)} = 1. ouch(X):- p(X), #count{V:a(V),d(V,X,1)} = 1. """ output = """ {a(2), c(2), d(2,2,1), okay(2), p(1)} """
14.615385
44
0.4
50
190
1.52
0.26
0.052632
0.078947
0.105263
0.605263
0.605263
0.368421
0.368421
0.368421
0.368421
0
0.104938
0.147368
190
12
45
15.833333
0.364198
0
0
0.181818
0
0.272727
0.831579
0.242105
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
d9c9b89785f6cfc7757c2e1d1d401d256c20d14f
2,567
py
Python
Pzzzzz/plugins/wm.py
Pzzzzz5142/animal-forest-QQ-group-bot
a9141a212a7746ac95d28459ec9cec5b6c188b35
[ "MIT" ]
5
2020-05-28T06:29:33.000Z
2020-09-30T12:14:46.000Z
Pzzzzz/plugins/wm.py
Pzzzzz5142/xjbx-QQ-group-bot
a9141a212a7746ac95d28459ec9cec5b6c188b35
[ "MIT" ]
null
null
null
Pzzzzz/plugins/wm.py
Pzzzzz5142/xjbx-QQ-group-bot
a9141a212a7746ac95d28459ec9cec5b6c188b35
[ "MIT" ]
null
null
null
from nonebot import CommandSession, on_command from langdetect import detect, detect_langs from aiohttp import ClientSession from nonebot import get_bot from nonebot.argparse import ArgumentParser import time import hmac import random, sys import hashlib import binascii import urllib bot = get_bot() # 百度通用翻译API,不包含词典、...
27.021053
75
0.592131
314
2,567
4.773885
0.401274
0.096064
0.056037
0.024016
0.044029
0.044029
0.044029
0
0
0
0
0.008333
0.252045
2,567
94
76
27.308511
0.772396
0.031944
0
0.078947
0
0
0.095968
0.009677
0
0
0
0
0
1
0
false
0.013158
0.184211
0
0.184211
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
d9ca7d1ad949a33a39144490cd6ec4bc4a1910a2
5,375
py
Python
home/scripts/memory/lpsolve.py
ParksProjets/Mips-Applications
d4284a5ee357b0e5f348b9af28bb0d90c036ae99
[ "MIT" ]
1
2019-01-08T08:41:22.000Z
2019-01-08T08:41:22.000Z
home/scripts/memory/lpsolve.py
ParksProjets/Mips-Applications
d4284a5ee357b0e5f348b9af28bb0d90c036ae99
[ "MIT" ]
null
null
null
home/scripts/memory/lpsolve.py
ParksProjets/Mips-Applications
d4284a5ee357b0e5f348b9af28bb0d90c036ae99
[ "MIT" ]
null
null
null
""" LpSolve wrapper. Copyright (C) 2018, Guillaume Gonnet License MIT """ from ctypes import * import sys import os.path as path import platform # Import the DLL ver = ("x86", "x64")[sys.maxsize > 2**32] here = path.dirname(__file__) if sys.platform == "win32": lib = windll.LoadLibrary(path.abspath(path.join...
25.116822
92
0.630884
790
5,375
4.083544
0.201266
0.031618
0.022319
0.047737
0.32734
0.253255
0.182269
0.16243
0.16243
0.106014
0
0.008387
0.245767
5,375
213
93
25.234742
0.787371
0.067535
0
0.077519
0
0
0.115881
0
0
0
0
0
0.054264
1
0.124031
false
0
0.031008
0.007752
0.248062
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
d9ca842cbdc63c54359e746c423beca4af1124b3
118,727
py
Python
octavia/tests/unit/controller/worker/v2/tasks/test_database_tasks.py
mauroseb/octavia
8f032d884e0f89ac69d5b6e5f5b77d19ee6eb1d7
[ "Apache-2.0" ]
null
null
null
octavia/tests/unit/controller/worker/v2/tasks/test_database_tasks.py
mauroseb/octavia
8f032d884e0f89ac69d5b6e5f5b77d19ee6eb1d7
[ "Apache-2.0" ]
null
null
null
octavia/tests/unit/controller/worker/v2/tasks/test_database_tasks.py
mauroseb/octavia
8f032d884e0f89ac69d5b6e5f5b77d19ee6eb1d7
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Hewlett-Packard Development Company, L.P. # # 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...
42.191542
79
0.568691
11,299
118,727
5.492344
0.034959
0.077508
0.058429
0.060266
0.835847
0.799784
0.781237
0.768523
0.756099
0.739357
0
0.005443
0.373268
118,727
2,813
80
42.206541
0.828558
0.031206
0
0.749546
0
0
0.044507
0.030615
0
0
0
0.000355
0.102541
1
0.034936
false
0.000907
0.005898
0
0.041289
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
d9caf13b41f36d2f1d5f56fee8cc8d3745513f23
18,402
py
Python
Yellow_Pages_Lithuania/unit_tests.py
Jay4C/Web-Scraping
187679bee035dad661d983b5a8382240f820c337
[ "MIT" ]
1
2022-02-28T05:05:06.000Z
2022-02-28T05:05:06.000Z
Yellow_Pages_Lithuania/unit_tests.py
Jay4C/Web-Scraping
187679bee035dad661d983b5a8382240f820c337
[ "MIT" ]
23
2020-03-04T22:17:32.000Z
2021-01-21T09:35:33.000Z
Yellow_Pages_Lithuania/unit_tests.py
Jay4C/Web-Scraping
187679bee035dad661d983b5a8382240f820c337
[ "MIT" ]
null
null
null
import time from bs4 import BeautifulSoup import requests import pymysql.cursors import unittest class UnitTestsDataMinerYellowPagesLithuania(unittest.TestCase): def test_extract_one_email(self): url = "https://www.visalietuva.lt/en/company/astorija-hotel-uab" # Request the content of a page from...
53.0317
119
0.395392
1,592
18,402
4.378141
0.232412
0.032138
0.052224
0.025251
0.657389
0.647489
0.647489
0.643472
0.638737
0.638737
0
0.029659
0.463156
18,402
346
120
53.184971
0.675878
0.101185
0
0.639216
0
0
0.1551
0.005596
0
0
0
0
0
1
0.011765
false
0.007843
0.019608
0
0.035294
0.109804
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d9cb561a08fd3aac17d5adf4c0665d1418e60e6a
3,262
py
Python
python_modules/dagster/dagster_tests/compat_tests/test_back_compat.py
vatervonacht/dagster
595d78c883ef20618052ac1575fe46cde51fd541
[ "Apache-2.0" ]
3
2020-04-28T16:27:33.000Z
2020-07-22T07:43:30.000Z
python_modules/dagster/dagster_tests/compat_tests/test_back_compat.py
vatervonacht/dagster
595d78c883ef20618052ac1575fe46cde51fd541
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/compat_tests/test_back_compat.py
vatervonacht/dagster
595d78c883ef20618052ac1575fe46cde51fd541
[ "Apache-2.0" ]
1
2021-02-21T12:16:47.000Z
2021-02-21T12:16:47.000Z
# pylint: disable=protected-access import os import re import pytest from dagster import file_relative_path from dagster.core.errors import DagsterInstanceMigrationRequired from dagster.core.instance import DagsterInstance, InstanceRef from dagster.utils.test import restore_directory # test that we can load runs an...
42.363636
100
0.698038
432
3,262
4.979167
0.280093
0.009298
0.059507
0.033473
0.662483
0.662483
0.647606
0.632729
0.632729
0.615528
0
0.074961
0.218884
3,262
76
101
42.921053
0.769231
0.136726
0
0.584906
0
0
0.264245
0.155983
0
0
0
0
0.150943
1
0.056604
false
0
0.132075
0
0.188679
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d9cb7d0cdfc5b919d86c41747507b434bce2ff4e
2,595
py
Python
scripts/charts.py
yshrdbrn/bigdata
51114ae98354ee094e0bcff26c1814f85c434148
[ "MIT" ]
null
null
null
scripts/charts.py
yshrdbrn/bigdata
51114ae98354ee094e0bcff26c1814f85c434148
[ "MIT" ]
1
2020-02-01T04:53:43.000Z
2020-02-01T04:53:43.000Z
scripts/charts.py
yshrdbrn/bigdata
51114ae98354ee094e0bcff26c1814f85c434148
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import pandas as pd def group_by_category(df): grouped = df.groupby(['CATEGORY']).size().to_frame('Crimes') labels = ['Trespassing', 'Vehicle theft', 'General Theft', 'Damage to Property', 'Robbery', 'Homicide'] p = grouped.plot.pie(y='Crimes', labels=labels, ...
38.161765
91
0.668208
373
2,595
4.439678
0.217158
0.050725
0.036232
0.065217
0.597826
0.562802
0.541063
0.396135
0.396135
0.350242
0
0.006358
0.151445
2,595
67
92
38.731343
0.745686
0
0
0.275862
0
0
0.300193
0.056262
0
0
0
0
0
1
0.103448
false
0.017241
0.034483
0
0.137931
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
d9cc56ba272dad2f5e9b82b388ad10350a722906
15,349
py
Python
unittests.py
benjaminkrenn/abcvoting
1e3833a7314d3467de7560f7e531a4c35c6eda08
[ "MIT" ]
null
null
null
unittests.py
benjaminkrenn/abcvoting
1e3833a7314d3467de7560f7e531a4c35c6eda08
[ "MIT" ]
null
null
null
unittests.py
benjaminkrenn/abcvoting
1e3833a7314d3467de7560f7e531a4c35c6eda08
[ "MIT" ]
null
null
null
# Unit tests import unittest def run_test_instance(unittestinstance, profile, committeesize, tests): import rules_approval # all rules used? for rule in rules_approval.MWRULES: unittestinstance.assertTrue(rule in tests.keys()) for rule in tests.keys(): output = rules_approval.comp...
42.167582
79
0.410906
2,000
15,349
3.097
0.065
0.042299
0.035841
0.018082
0.67969
0.608492
0.524217
0.463513
0.379238
0.278172
0
0.135299
0.407714
15,349
363
80
42.283747
0.546035
0.020913
0
0.448845
0
0
0.047017
0
0
0
0
0
0.089109
1
0.036304
false
0
0.066007
0
0.105611
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
d9cc99c89bae7a8c33f8aa618bc77a5eebb78e7c
7,638
py
Python
Robustness Check/Calculating Risk Factors/calculate_momentum_factor.py
behnoud-bazrafshan/ThesisPortfolio
2edda0109fb8aafc984b5dfc2e59cabb949b4a78
[ "MIT" ]
null
null
null
Robustness Check/Calculating Risk Factors/calculate_momentum_factor.py
behnoud-bazrafshan/ThesisPortfolio
2edda0109fb8aafc984b5dfc2e59cabb949b4a78
[ "MIT" ]
null
null
null
Robustness Check/Calculating Risk Factors/calculate_momentum_factor.py
behnoud-bazrafshan/ThesisPortfolio
2edda0109fb8aafc984b5dfc2e59cabb949b4a78
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import jdatetime pd.options.mode.chained_assignment = None # Read Bourseview data for market cap # Concat all 75 tickers' data me_list = [] for file_number in range(1, 76): print(file_number) me_path = f'E:/Thesis/New Sampling/Daily Data - Bourseview/'\ ...
38.38191
77
0.612857
1,040
7,638
4.269231
0.247115
0.056982
0.067342
0.021622
0.263063
0.216216
0.137387
0.110811
0.022523
0.022523
0
0.081327
0.238544
7,638
198
78
38.575758
0.682084
0.127258
0
0.070588
0
0
0.165502
0
0
0
0
0
0
1
0
false
0.005882
0.017647
0
0.017647
0.005882
0
0
0
null
0
0
0
0
0
0
0
0
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
d9cdaf9a83cf7f7590823c87b5b4ab6e714294e0
4,632
py
Python
source/lambda/geoip_downloader/index.py
aws-samples/siem-on-amazon-opensearch-service
9bac87d39e9fab04f483bae54ffe94948af096ff
[ "MIT-0" ]
92
2021-09-14T06:41:06.000Z
2022-03-31T09:52:07.000Z
source/lambda/geoip_downloader/index.py
aws-samples/siem-on-amazon-opensearch-service
9bac87d39e9fab04f483bae54ffe94948af096ff
[ "MIT-0" ]
74
2021-09-18T01:46:47.000Z
2022-03-28T10:46:59.000Z
source/lambda/geoip_downloader/index.py
aws-samples/siem-on-amazon-opensearch-service
9bac87d39e9fab04f483bae54ffe94948af096ff
[ "MIT-0" ]
42
2021-09-16T23:00:00.000Z
2022-03-29T15:11:43.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 __copyright__ = ('Copyright Amazon.com, Inc. or its affiliates. ' 'All Rights Reserved.') __version__ = '2.7.1' __license__ = 'MIT-0' __author__ = 'Akihiro Nakajima' __url__ = 'https://github.com/aws-s...
34.827068
122
0.633636
527
4,632
5.43833
0.343454
0.058618
0.019888
0.018842
0.137474
0.095604
0.036985
0.036985
0.036985
0.036985
0
0.01498
0.236183
4,632
132
123
35.090909
0.795082
0.053109
0
0.111111
0
0
0.222552
0
0
0
0
0
0
1
0.037037
false
0
0.074074
0
0.138889
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
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
d9cdbec7cf44be7c5e8dcf70bed770879dcd7e21
16,679
py
Python
components/mroipac/baseline/Baseline.py
earthobservatory/isce2
655c46cc4add275879167b750a5e91f6d00f168e
[ "ECL-2.0", "Apache-2.0" ]
1
2019-10-06T12:21:02.000Z
2019-10-06T12:21:02.000Z
components/mroipac/baseline/Baseline.py
earthobservatory/isce2
655c46cc4add275879167b750a5e91f6d00f168e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
components/mroipac/baseline/Baseline.py
earthobservatory/isce2
655c46cc4add275879167b750a5e91f6d00f168e
[ "ECL-2.0", "Apache-2.0" ]
2
2021-06-24T20:20:18.000Z
2021-06-24T20:32:23.000Z
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Copyright 2010 California Institute of Technology. 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 th...
39.523697
202
0.655495
1,840
16,679
5.902174
0.244565
0.016206
0.020626
0.013812
0.160958
0.114088
0.068048
0.058748
0.031676
0.020258
0
0.010068
0.24372
16,679
421
203
39.617577
0.85088
0.225553
0
0.105263
0
0
0.07378
0.003269
0
0
0
0.002375
0
1
0.140351
false
0
0.021053
0.059649
0.294737
0.021053
0
0
0
null
0
0
0
0
0
0
0
0
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
d9cf50080cfd2da35179773577dfa101c0a0615b
1,106
py
Python
src/modules/deuces/deck.py
Bot-Box/FiveCardStud
55e11d7a23becece33658075f922cf007909d058
[ "MIT" ]
null
null
null
src/modules/deuces/deck.py
Bot-Box/FiveCardStud
55e11d7a23becece33658075f922cf007909d058
[ "MIT" ]
1
2020-05-09T20:27:33.000Z
2020-05-09T20:27:33.000Z
src/modules/deuces/deck.py
Bot-Box/FiveCardStud
55e11d7a23becece33658075f922cf007909d058
[ "MIT" ]
null
null
null
from random import shuffle as rshuffle from .card import Card class Deck: """ Class representing a deck. The first time we create, we seed the static deck with the list of unique card integers. Each object instantiated simply makes a copy of this object and shuffles it. """ _FULL_DECK = [] ...
25.136364
79
0.605787
149
1,106
4.328859
0.449664
0.062016
0.074419
0.055814
0.068217
0
0
0
0
0
0
0.006553
0.310127
1,106
43
80
25.72093
0.838794
0.221519
0
0.076923
0
0
0
0
0
0
0
0
0
1
0.192308
false
0
0.076923
0.038462
0.538462
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9cfb448c497219965f4d51af8838d801a58ed41
21,000
py
Python
openidc_client/__init__.py
puiterwijk/python-openidc-client
cd8d91c0503124305727f38a0f9fe93bb472209c
[ "MIT" ]
6
2017-03-16T13:32:11.000Z
2021-06-21T19:12:21.000Z
openidc_client/__init__.py
puiterwijk/python-openidc-client
cd8d91c0503124305727f38a0f9fe93bb472209c
[ "MIT" ]
5
2017-03-23T19:50:36.000Z
2022-01-25T04:45:27.000Z
openidc_client/__init__.py
puiterwijk/python-openidc-client
cd8d91c0503124305727f38a0f9fe93bb472209c
[ "MIT" ]
4
2017-03-21T17:34:28.000Z
2022-01-24T06:16:19.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2016, 2017 Red Hat, Inc. # Red Hat Author: Patrick Uiterwijk <puiterwijk@redhat.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restri...
40.384615
87
0.617
2,749
21,000
4.588214
0.191342
0.019979
0.01213
0.012685
0.172362
0.134464
0.120035
0.115754
0.10727
0.075081
0
0.003163
0.307381
21,000
519
88
40.462428
0.864008
0.385571
0
0.27931
0
0
0.135661
0.001921
0
0
0
0.001927
0.013793
1
0.058621
false
0
0.068966
0
0.224138
0.017241
0
0
0
null
0
0
0
0
0
0
0
0
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
d9cfea74cbe1fffe3e3d0849bdd6679785142bf0
7,159
py
Python
eoxserver/services/ows/wps/v10/encoders/parameters.py
constantinius/eoxserver_combined
68f261133fed65a4e8a6ddba82b0d2845171e4bf
[ "OML" ]
1
2017-11-21T22:23:30.000Z
2017-11-21T22:23:30.000Z
eoxserver/services/ows/wps/v10/encoders/parameters.py
constantinius/eoxserver_combined
68f261133fed65a4e8a6ddba82b0d2845171e4bf
[ "OML" ]
null
null
null
eoxserver/services/ows/wps/v10/encoders/parameters.py
constantinius/eoxserver_combined
68f261133fed65a4e8a6ddba82b0d2845171e4bf
[ "OML" ]
null
null
null
#------------------------------------------------------------------------------- # # WPS 1.0 parameters' XML encoders # # Project: EOxServer <http://eoxserver.org> # Authors: Fabian Schindler <fabian.schindler@eox.at> # Martin Paces <martin.paces@eox.at> # #-----------------------------------------------------...
38.283422
80
0.621875
862
7,159
5.056845
0.271462
0.014912
0.026841
0.020647
0.206699
0.140399
0.095435
0.095435
0.095435
0.021565
0
0.002415
0.19011
7,159
186
81
38.489247
0.749396
0.289845
0
0.083333
0
0
0.101117
0
0
0
0
0
0
1
0.091667
false
0
0.016667
0.016667
0.216667
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
d9d317f8ac0c3d87ca7347265d7a9836b41ed098
2,481
py
Python
gci-vci-serverless/src/helpers/vp_saves_helpers.py
ClinGen/gene-and-variant-curation-tools
30f21d8f03d8b5c180c1ce3cb8401b5abc660080
[ "MIT" ]
1
2021-09-17T20:39:07.000Z
2021-09-17T20:39:07.000Z
gci-vci-serverless/src/helpers/vp_saves_helpers.py
ClinGen/gene-and-variant-curation-tools
30f21d8f03d8b5c180c1ce3cb8401b5abc660080
[ "MIT" ]
133
2021-08-29T17:24:26.000Z
2022-03-25T17:24:31.000Z
gci-vci-serverless/src/helpers/vp_saves_helpers.py
ClinGen/gene-and-variant-curation-tools
30f21d8f03d8b5c180c1ce3cb8401b5abc660080
[ "MIT" ]
null
null
null
import datetime import uuid import simplejson as json from src.db.s3_client import Client as S3Client from decimal import Decimal def get_from_archive(archive_key): ''' Download a VP Save from S3. :param str archive_key: The vp_save data's location (S3 bucket and file path). This value is required. ''' if ...
27.263736
104
0.699315
389
2,481
4.300771
0.290488
0.064555
0.033473
0.045427
0.1315
0.069337
0.069337
0
0
0
0
0.009615
0.203547
2,481
90
105
27.566667
0.837045
0.359532
0
0.266667
0
0
0.101816
0
0
0
0
0
0
1
0.088889
false
0
0.111111
0.022222
0.288889
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
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
d9d321dead6bc8e55098581c550215a3e969a2f1
464
py
Python
docs/source/auto_examples/plot_usage.py
ruhugu/brokenaxes
1cfb301c854b3336aeb4dd9a2c329310534dfb21
[ "MIT" ]
362
2017-05-01T10:20:56.000Z
2022-03-29T21:39:09.000Z
docs/source/auto_examples/plot_usage.py
ruhugu/brokenaxes
1cfb301c854b3336aeb4dd9a2c329310534dfb21
[ "MIT" ]
73
2017-04-20T18:54:39.000Z
2021-12-02T08:04:21.000Z
docs/source/auto_examples/plot_usage.py
ruhugu/brokenaxes
1cfb301c854b3336aeb4dd9a2c329310534dfb21
[ "MIT" ]
52
2017-05-04T13:03:25.000Z
2022-03-29T21:39:20.000Z
""" Basic usage =========== This example presents the basic usage of brokenaxes """ import matplotlib.pyplot as plt from brokenaxes import brokenaxes import numpy as np fig = plt.figure(figsize=(5,2)) bax = brokenaxes(xlims=((0, .1), (.4, .7)), ylims=((-1, .7), (.79, 1)), hspace=.05) x = np.linspace(0, 1, 100) bax...
21.090909
83
0.644397
79
464
3.759494
0.594937
0.161616
0.053872
0.06734
0
0
0
0
0
0
0
0.057214
0.133621
464
21
84
22.095238
0.681592
0.163793
0
0
0
0
0.039578
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d9d368d362ab070d71b3363fe0fb20728ec9660d
5,985
py
Python
src/entity/002_createRdf.py
toyo-bunko/paper_app
f988e05cf83711d98c5ed735c0fd74fcf11e0f05
[ "Apache-2.0" ]
1
2021-02-28T15:38:37.000Z
2021-02-28T15:38:37.000Z
src/entity/002_createRdf.py
toyo-bunko/paper_app
f988e05cf83711d98c5ed735c0fd74fcf11e0f05
[ "Apache-2.0" ]
null
null
null
src/entity/002_createRdf.py
toyo-bunko/paper_app
f988e05cf83711d98c5ed735c0fd74fcf11e0f05
[ "Apache-2.0" ]
null
null
null
import shutil import os import json import glob import yaml import sys import urllib import ssl import csv import time import requests import json import csv from rdflib import URIRef, BNode, Literal, Graph from rdflib.namespace import RDF, RDFS, FOAF, XSD from rdflib import Namespace all = Graph() with open("data/...
29.338235
129
0.513116
743
5,985
4.095559
0.179004
0.061453
0.055866
0.035491
0.495892
0.394676
0.338153
0.338153
0.261255
0.253368
0
0.018863
0.326817
5,985
204
130
29.338235
0.736411
0.00685
0
0.198198
0
0
0.238463
0
0
0
0
0
0
1
0
false
0
0.144144
0
0.144144
0.018018
0
0
0
null
0
0
0
0
0
0
0
0
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
d9d4e94302ccb3b8bcc4d40fbc60872ee3780872
2,107
py
Python
client/tests/test_config_read_tool.py
nuft/can-bootloader
18dd77dae1fb2328dac1fd1df2c9e5d5c936771e
[ "BSD-2-Clause" ]
null
null
null
client/tests/test_config_read_tool.py
nuft/can-bootloader
18dd77dae1fb2328dac1fd1df2c9e5d5c936771e
[ "BSD-2-Clause" ]
null
null
null
client/tests/test_config_read_tool.py
nuft/can-bootloader
18dd77dae1fb2328dac1fd1df2c9e5d5c936771e
[ "BSD-2-Clause" ]
null
null
null
import unittest try: from unittest.mock import * except ImportError: from mock import * from msgpack import * import bootloader_read_config from commands import * import sys import json class ReadConfigToolTestCase(unittest.TestCase): @patch('utils.write_command_retry') @patch('utils.write_command'...
30.985294
78
0.596108
258
2,107
4.620155
0.329457
0.120805
0.099832
0.029362
0.514262
0.391779
0.317114
0.162752
0.098993
0.098993
0
0.014208
0.298529
2,107
67
79
31.447761
0.792287
0.04224
0
0.26087
0
0
0.122429
0.058204
0
0
0
0
0.065217
1
0.043478
false
0
0.195652
0
0.26087
0.108696
0
0
0
null
0
0
0
0
0
0
0
0
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
d9d51a8133c12a74117e8b569f8ace23d5fb49e6
5,499
py
Python
bot.py
Pyrrolidine/letterboxd-bot
b2cd1364e00c3ec6fb70be9c8be7a8b707a8ffbe
[ "MIT" ]
1
2021-03-14T20:01:53.000Z
2021-03-14T20:01:53.000Z
bot.py
Pyrrolidine/letterboxd-bot
b2cd1364e00c3ec6fb70be9c8be7a8b707a8ffbe
[ "MIT" ]
null
null
null
bot.py
Pyrrolidine/letterboxd-bot
b2cd1364e00c3ec6fb70be9c8be7a8b707a8ffbe
[ "MIT" ]
null
null
null
import logging from asyncio import sleep import discord from discord.ext import commands from config import SETTINGS from crew import crew_embed from diary import diary_embed from film import film_embed from helpers import LetterboxdError from list_ import list_embed from review import review_embed from user import us...
28.640625
78
0.651755
731
5,499
4.771546
0.253078
0.03211
0.024083
0.026089
0.249713
0.205275
0.151663
0.151663
0.131594
0.131594
0
0.005221
0.233679
5,499
191
79
28.790576
0.822496
0.008183
0
0.256579
0
0
0.090626
0
0
0
0
0
0
1
0
false
0
0.078947
0
0.105263
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
d9d59aa9c4853e8590f823a63f53768b8aecbce1
6,899
py
Python
python/ray/experimental/workflow/execution.py
wgifford/ray
8acb469b047cd9b327c9477a13b030eb7357860e
[ "Apache-2.0" ]
null
null
null
python/ray/experimental/workflow/execution.py
wgifford/ray
8acb469b047cd9b327c9477a13b030eb7357860e
[ "Apache-2.0" ]
32
2021-09-04T07:08:45.000Z
2022-02-19T08:08:11.000Z
python/ray/experimental/workflow/execution.py
wgifford/ray
8acb469b047cd9b327c9477a13b030eb7357860e
[ "Apache-2.0" ]
null
null
null
import asyncio import logging import time from typing import Set, List, Tuple, Optional, TYPE_CHECKING import uuid import ray from ray.experimental.workflow import workflow_context from ray.experimental.workflow import workflow_storage from ray.experimental.workflow.common import (Workflow, WorkflowStatus, ...
40.345029
79
0.681258
838
6,899
5.400955
0.201671
0.061865
0.031816
0.041759
0.383341
0.35285
0.292974
0.194432
0.150243
0.124613
0
0.000566
0.232208
6,899
170
80
40.582353
0.85388
0.14031
0
0.184
0
0
0.078885
0.018021
0
0
0
0.011765
0.016
1
0.056
false
0
0.104
0
0.248
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
d9d5b48647e38ebb7586e30d71d263a91ce8bc1b
156
py
Python
src/zeep/wsse/__init__.py
bertonha/python-zeep
748f4e028db2ef498bc6dd1e60d3555b7688f08c
[ "MIT" ]
null
null
null
src/zeep/wsse/__init__.py
bertonha/python-zeep
748f4e028db2ef498bc6dd1e60d3555b7688f08c
[ "MIT" ]
null
null
null
src/zeep/wsse/__init__.py
bertonha/python-zeep
748f4e028db2ef498bc6dd1e60d3555b7688f08c
[ "MIT" ]
null
null
null
from .compose import Compose # noqa from .signature import BinarySignature, Signature, MemorySignature # noqa from .username import UsernameToken # noqa
39
74
0.801282
17
156
7.352941
0.529412
0.128
0
0
0
0
0
0
0
0
0
0
0.147436
156
3
75
52
0.93985
0.089744
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
0
0
0
4
d9d5cc7533855c3c985b9ccbdc0f7d78d12441b1
746
py
Python
Complab assignment.py
peteboi/Python-Scripts
d84e352c41cff3f459d88c83bc81f6dc2f25ed05
[ "MIT" ]
null
null
null
Complab assignment.py
peteboi/Python-Scripts
d84e352c41cff3f459d88c83bc81f6dc2f25ed05
[ "MIT" ]
null
null
null
Complab assignment.py
peteboi/Python-Scripts
d84e352c41cff3f459d88c83bc81f6dc2f25ed05
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt def orbit(u): x,y,v_x,v_y = u r=np.hypot(x,y) #r= 1.521e+06 #M,G=1.989e+30,6.7e-11 M,G=20,110 f=G*M/r**3 return np.array([v_x,v_y,-f*x,-f*y]) def RK4(f,u,dt): k1=f(u)*dt k2=f(u+0.5*k1)*dt ...
19.128205
51
0.518767
174
746
2.166667
0.33908
0.026525
0.023873
0.03183
0.03183
0.03183
0
0
0
0
0
0.122995
0.247989
746
38
52
19.631579
0.54902
0.072386
0
0
0
0
0
0
0
0
0
0
0
1
0.107143
false
0
0.071429
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
d9d5e8ec4bcf85e917876d27f935eeb707d35bc9
675
py
Python
factory_generator/management/commands/generate_factories.py
gamabounty/django-factory-generator
284184b22f3564a7a915ac3f3363e588d3721158
[ "MIT" ]
10
2019-04-19T03:00:09.000Z
2022-02-23T16:17:43.000Z
factory_generator/management/commands/generate_factories.py
charlesthk/django-factory-generator
cd0f7aa5b4ecc2bbe8f30a081238056c653d7265
[ "MIT" ]
2
2020-05-10T00:40:51.000Z
2021-02-28T11:31:26.000Z
factory_generator/management/commands/generate_factories.py
charlesthk/django-factory-generator
cd0f7aa5b4ecc2bbe8f30a081238056c653d7265
[ "MIT" ]
6
2019-12-19T16:26:00.000Z
2021-05-13T23:42:35.000Z
import os from django.apps import apps from django.core.management.base import BaseCommand from factory_generator.generator import FactoryAppGenerator class Command(BaseCommand): help = 'Create model factories for all installed apps' def handle(self, *args, **options): created_files = [] fo...
33.75
80
0.715556
80
675
5.875
0.475
0.076596
0.080851
0.085106
0.153191
0.153191
0.153191
0
0
0
0
0
0.198519
675
19
81
35.526316
0.868762
0
0
0
0
0
0.115556
0
0
0
0
0
0
1
0.071429
false
0
0.285714
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
d9d66c8e24ecdddf4d2ecdc3b422d09645a2f485
3,021
py
Python
mro/stages/analyzer/run_differential_expression/__init__.py
qiangli/cellranger
046e24c3275cfbd4516a6ebc064594513a5c45b7
[ "MIT" ]
1
2019-03-29T04:05:58.000Z
2019-03-29T04:05:58.000Z
mro/stages/analyzer/run_differential_expression/__init__.py
qiangli/cellranger
046e24c3275cfbd4516a6ebc064594513a5c45b7
[ "MIT" ]
null
null
null
mro/stages/analyzer/run_differential_expression/__init__.py
qiangli/cellranger
046e24c3275cfbd4516a6ebc064594513a5c45b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2017 10X Genomics, Inc. All rights reserved. # import cellranger.analysis.diffexp as cr_diffexp import cellranger.analysis.io as analysis_io from cellranger.analysis.singlegenome import SingleGenomeAnalysis import cellranger.h5_constants as h5_constants import cellranger.analysi...
35.541176
125
0.735849
424
3,021
4.900943
0.316038
0.028874
0.034649
0.023099
0.16025
0.076035
0.023099
0
0
0
0
0.016353
0.190334
3,021
84
126
35.964286
0.833197
0.109897
0
0.087719
0
0
0.148825
0.027602
0
0
0
0.011905
0
1
0.052632
false
0
0.140351
0
0.263158
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
d9d80db949c5d5f415b809076411a2404da55e53
10,912
py
Python
sympy/combinatorics/testutil.py
ethankward/sympy
44664d9f625a1c68bc492006cfe1012cb0b49ee4
[ "BSD-3-Clause" ]
2
2019-05-18T22:36:49.000Z
2019-05-24T05:56:16.000Z
sympy/combinatorics/testutil.py
ethankward/sympy
44664d9f625a1c68bc492006cfe1012cb0b49ee4
[ "BSD-3-Clause" ]
1
2020-04-22T12:45:26.000Z
2020-04-22T12:45:26.000Z
sympy/combinatorics/testutil.py
ethankward/sympy
44664d9f625a1c68bc492006cfe1012cb0b49ee4
[ "BSD-3-Clause" ]
3
2021-02-16T16:40:49.000Z
2022-03-07T18:28:41.000Z
from sympy.combinatorics import Permutation from sympy.combinatorics.util import _distribute_gens_by_base rmul = Permutation.rmul def _cmp_perm_lists(first, second): """ Compare two lists of permutations as sets. This is used for testing purposes. Since the array form of a permutation is currently a...
32.47619
98
0.641679
1,482
10,912
4.588394
0.176113
0.09
0.093824
0.049412
0.340147
0.284853
0.215147
0.162647
0.123824
0.123824
0
0.023035
0.248076
10,912
335
99
32.573134
0.805728
0.363361
0
0.101449
0
0
0.011052
0
0
0
0
0
0.014493
1
0.050725
false
0
0.07971
0
0.217391
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
d9d95781d1bacab44253ba285649d7b99ee1e33d
542
py
Python
src/vatic_checker/config.py
jonkeane/vatic-checker
fa8aec6946dcfd3f466b62f9c00d81bc43514b22
[ "MIT" ]
null
null
null
src/vatic_checker/config.py
jonkeane/vatic-checker
fa8aec6946dcfd3f466b62f9c00d81bc43514b22
[ "MIT" ]
null
null
null
src/vatic_checker/config.py
jonkeane/vatic-checker
fa8aec6946dcfd3f466b62f9c00d81bc43514b22
[ "MIT" ]
null
null
null
localhost = "http://localhost/" # your local host database = "mysql://root@localhost/vaticChecker" # server://user:pass@localhost/dbname min_training = 2 # the minimum number of training videos to be considered recaptcha_secret = "" # recaptcha secret for verification duplicate_annotations = False #...
38.714286
94
0.745387
72
542
5.486111
0.694444
0.04557
0
0
0
0
0
0
0
0
0
0.002169
0.149446
542
13
95
41.692308
0.854664
0.394834
0
0
0
0
0.246106
0.109034
0
0
0
0.076923
0
1
0
false
0
0.3
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
d9d96360237e53141cd11d1271cee29b6140650f
8,233
py
Python
django/utils/timezone.py
graingert/django
784d0c261c76535dc760bc8d76793d92f35c1513
[ "BSD-3-Clause" ]
1
2015-11-11T12:20:45.000Z
2015-11-11T12:20:45.000Z
django/utils/timezone.py
graingert/django
784d0c261c76535dc760bc8d76793d92f35c1513
[ "BSD-3-Clause" ]
null
null
null
django/utils/timezone.py
graingert/django
784d0c261c76535dc760bc8d76793d92f35c1513
[ "BSD-3-Clause" ]
null
null
null
"""Timezone helper functions. This module uses pytz when it's available and fallbacks when it isn't. """ from datetime import datetime, timedelta, tzinfo from threading import local import time as _time try: import pytz except ImportError: pytz = None from django.conf import settings __all__ = [ 'utc',...
28.195205
81
0.66197
1,098
8,233
4.839709
0.220401
0.034626
0.023711
0.009785
0.285284
0.252352
0.228453
0.176139
0.125329
0.125329
0
0.000972
0.24997
8,233
291
82
28.292096
0.859595
0.383457
0
0.242424
0
0
0.045045
0.004505
0
0
0
0
0
1
0.204545
false
0
0.045455
0.045455
0.469697
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
d9da1ced032a66e58537bdeecea30c322d1a2f01
644
py
Python
malleefowl/tests/test_wps_caps.py
Ouranosinc/malleefowl
685a4cabe4c4ccafc2721a50e1f8178b8b81689e
[ "Apache-2.0" ]
null
null
null
malleefowl/tests/test_wps_caps.py
Ouranosinc/malleefowl
685a4cabe4c4ccafc2721a50e1f8178b8b81689e
[ "Apache-2.0" ]
4
2017-09-21T17:14:45.000Z
2020-11-11T03:20:42.000Z
malleefowl/tests/test_wps_caps.py
Ouranosinc/malleefowl
685a4cabe4c4ccafc2721a50e1f8178b8b81689e
[ "Apache-2.0" ]
null
null
null
import pytest from pywps import Service from pywps.tests import assert_response_success from .common import client_for from malleefowl.processes import processes def test_wps_caps(): client = client_for(Service(processes=processes)) resp = client.get(service='wps', request='getcapabilities', version='1.0.0'...
28
80
0.608696
65
644
5.907692
0.6
0.046875
0
0
0
0
0
0
0
0
0
0.006508
0.284161
644
22
81
29.272727
0.826464
0
0
0
0
0
0.200311
0.032609
0
0
0
0
0.111111
1
0.055556
false
0
0.277778
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
d9dd8d48aa39f42683555f052c81e9f33f26c3cd
1,835
py
Python
setup.py
CallumJHays/pyngrok
e1a28948d1d8cf42f8eed1b166a2caf6b2a68066
[ "MIT" ]
null
null
null
setup.py
CallumJHays/pyngrok
e1a28948d1d8cf42f8eed1b166a2caf6b2a68066
[ "MIT" ]
null
null
null
setup.py
CallumJHays/pyngrok
e1a28948d1d8cf42f8eed1b166a2caf6b2a68066
[ "MIT" ]
null
null
null
from setuptools import setup __author__ = "Alex Laird" __copyright__ = "Copyright 2019, Alex Laird" __version__ = "1.4.0" with open("README.md", "r") as f: long_description = f.read() setup( name="pyngrok", version=__version__, packages=["pyngrok"], python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2...
34.622642
95
0.611444
184
1,835
5.923913
0.532609
0.122018
0.16055
0.095413
0.062385
0.062385
0
0
0
0
0
0.01983
0.230518
1,835
52
96
35.288462
0.752125
0
0
0
0
0.020408
0.572752
0.023978
0
0
0
0
0
1
0
false
0
0.020408
0
0.020408
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
d9ddd794f7ce3da3377a0064524099ee9b8e1fd8
1,377
py
Python
pipelines/trackml.py
texasmichelle/kubeflow-cern
886925fad5c37a72f6999c1100584fa8e4a0adae
[ "Apache-2.0" ]
4
2019-06-06T20:10:08.000Z
2021-02-19T11:59:39.000Z
pipelines/trackml.py
texasmichelle/kubeflow-cern
886925fad5c37a72f6999c1100584fa8e4a0adae
[ "Apache-2.0" ]
null
null
null
pipelines/trackml.py
texasmichelle/kubeflow-cern
886925fad5c37a72f6999c1100584fa8e4a0adae
[ "Apache-2.0" ]
1
2019-10-13T03:51:16.000Z
2019-10-13T03:51:16.000Z
#!/usr/bin/env python3 import kfp.dsl as dsl import kfp.gcp as gcp # Pipeline input variables. KUBECTL_IMAGE = "gcr.io/mcas-195423/trackml_master_kfp_kubectl" KUBECTL_IMAGE_VERSION = "1" TRACKML_IMAGE = "gcr.io/mcas-195423/trackml_master_trackml" TRACKML_IMAGE_VERSION = "1" def train_op(): return dsl.ContainerOp( ...
24.157895
63
0.688453
175
1,377
5.148571
0.354286
0.079911
0.063263
0.073252
0.372919
0.264151
0.215316
0.142064
0.142064
0.142064
0
0.014518
0.149601
1,377
56
64
24.589286
0.75491
0.046478
0
0.204545
0
0
0.223835
0.065699
0
0
0
0
0
1
0.090909
false
0
0.068182
0.068182
0.227273
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
d9de866f5c692eb5d2ae261f2a1854febddba480
2,211
py
Python
bin/ticker.py
aleasoluciones/infrabbitmq
2759590156c63b9a04fb5daf8d588a084fc30629
[ "MIT" ]
null
null
null
bin/ticker.py
aleasoluciones/infrabbitmq
2759590156c63b9a04fb5daf8d588a084fc30629
[ "MIT" ]
null
null
null
bin/ticker.py
aleasoluciones/infrabbitmq
2759590156c63b9a04fb5daf8d588a084fc30629
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time import puka import argparse import logging from infcommon import utils from infrabbitmq import factory as infrabbitmq_factory from infrabbitmq.rabbitmq import RabbitMQError from infrabbitmq.events_names import ( TICK_1_SECOND, TICK_1_MINUTE, TICK_2_MINUTES, TICK_5_...
29.878378
114
0.622795
245
2,211
5.342857
0.302041
0.073338
0.096257
0.061115
0.375859
0.341482
0.298701
0.298701
0.298701
0.298701
0
0.019595
0.284487
2,211
73
115
30.287671
0.807838
0.009498
0
0.218182
0
0
0.043876
0
0
0
0
0
0
1
0.036364
false
0
0.145455
0
0.181818
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
d9df003e9cd20fdfdd89b5aaebba29cdc7e644c5
16,137
py
Python
transformers/modeling_encoder_decoder.py
Tarpelite/UniNLP
176c2a0f88c8054bf69e1f92693d353737367c34
[ "MIT" ]
null
null
null
transformers/modeling_encoder_decoder.py
Tarpelite/UniNLP
176c2a0f88c8054bf69e1f92693d353737367c34
[ "MIT" ]
3
2021-06-02T00:41:41.000Z
2022-02-10T01:07:59.000Z
transformers/modeling_encoder_decoder.py
Tarpelite/UniNLP
176c2a0f88c8054bf69e1f92693d353737367c34
[ "MIT" ]
1
2020-01-27T03:02:19.000Z
2020-01-27T03:02:19.000Z
# coding=utf-8 # Copyright 2018 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/LICENSE-2.0 # # Unless required by a...
51.88746
473
0.656008
1,947
16,137
5.30303
0.216744
0.02615
0.029443
0.032542
0.343923
0.330073
0.302954
0.255303
0.244649
0.237482
0
0.003413
0.273781
16,137
310
474
52.054839
0.877635
0.580653
0
0.296296
0
0.007407
0.120644
0.01786
0
0
0
0
0
1
0.059259
false
0.007407
0.044444
0
0.155556
0.007407
0
0
0
null
0
0
0
0
0
0
0
0
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