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
b9c3b6fda684b2909b7f9cbce1f91f5eda9301de
5,275
py
Python
downloader.py
gokulmisfit/Ragalahari-downloader
65f457623a489b4217248366cf42bc7d6c24d08a
[ "MIT" ]
null
null
null
downloader.py
gokulmisfit/Ragalahari-downloader
65f457623a489b4217248366cf42bc7d6c24d08a
[ "MIT" ]
null
null
null
downloader.py
gokulmisfit/Ragalahari-downloader
65f457623a489b4217248366cf42bc7d6c24d08a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os.path import urllib.request import sys import traceback import requests import subprocess as sp idLists = [] # author: Anbuselvan Rocky # Facebook: fb.me/anburocky3 # Github: github.com/anburocky3 class bcolors: HEADER = '\033[95m' OKBLUE = '\033[96m' ...
35.166667
124
0.433555
416
5,275
5.295673
0.447115
0.070813
0.043123
0.031775
0.048116
0
0
0
0
0
0
0.016719
0.330995
5,275
149
125
35.402685
0.607538
0.135166
0
0.168421
0
0.042105
0.446279
0.148173
0
0
0
0
0
0
null
null
0
0.063158
null
null
0.168421
0
0
0
null
0
0
0
0
0
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
b9c5259e5dec00822cb38951047e9cd3d8f40f02
296
py
Python
open_xlsx.py
jonathan-JIPSlok/Aprendendo_Pandas
2a6a5a3b72b4a757078ba25b0b1f953b682bb62d
[ "MIT" ]
1
2021-09-16T23:12:55.000Z
2021-09-16T23:12:55.000Z
open_xlsx.py
jonathan-JIPSlok/Aprendendo_Pandas
2a6a5a3b72b4a757078ba25b0b1f953b682bb62d
[ "MIT" ]
null
null
null
open_xlsx.py
jonathan-JIPSlok/Aprendendo_Pandas
2a6a5a3b72b4a757078ba25b0b1f953b682bb62d
[ "MIT" ]
null
null
null
import pandas as pd import openpyxl """ Pandas perdeu suporte para arquivos xlsx por isso usamos o openpyxl engine -> motor de busca, usamos o openpyxl sheet_name -> para especificar qual aba usaremos """ df = pd.read_excel("Excel/Arquivo.xlsx", engine="openpyxl", sheet_name=0) print(df.head())
29.6
73
0.763514
46
296
4.847826
0.673913
0.06278
0.134529
0
0
0
0
0
0
0
0
0.003906
0.135135
296
10
74
29.6
0.867188
0
0
0
0
0
0.20155
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b9c5d0beb3175348ba17aaeb4f6801cb8d78d2f9
2,939
py
Python
app/pets/serializers.py
lannstoirme/Django-API-Petstore
57b35b5f432b274047394fb99cc5fba0f2107fcf
[ "MIT" ]
null
null
null
app/pets/serializers.py
lannstoirme/Django-API-Petstore
57b35b5f432b274047394fb99cc5fba0f2107fcf
[ "MIT" ]
null
null
null
app/pets/serializers.py
lannstoirme/Django-API-Petstore
57b35b5f432b274047394fb99cc5fba0f2107fcf
[ "MIT" ]
1
2021-06-19T22:45:26.000Z
2021-06-19T22:45:26.000Z
from rest_framework import serializers from core.models import PetManager from core.models import Customer from core.models import StoreStatus from core.models import PetName from core.models import Category from core.models import Price from core.models import Order from core.models import User from core.models impor...
28.813725
71
0.66281
293
2,939
6.535836
0.221843
0.071018
0.065796
0.093995
0.334726
0.312794
0.182768
0.182768
0.182768
0
0
0
0.224226
2,939
102
72
28.813725
0.839912
0.127935
0
0.261538
0
0
0.10827
0.020376
0
0
0
0
0
1
0
false
0
0.153846
0
0.523077
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
b9c770d2fb3434593e7140341c187d3c8d9369f2
745
py
Python
05 - Python Thoughts/Exercises/p05.py
whosramoss/Optimal-Coding-Solutions
2b507fab7174fe2d22bc8c153df70753c84ace7e
[ "MIT" ]
null
null
null
05 - Python Thoughts/Exercises/p05.py
whosramoss/Optimal-Coding-Solutions
2b507fab7174fe2d22bc8c153df70753c84ace7e
[ "MIT" ]
null
null
null
05 - Python Thoughts/Exercises/p05.py
whosramoss/Optimal-Coding-Solutions
2b507fab7174fe2d22bc8c153df70753c84ace7e
[ "MIT" ]
null
null
null
''' Explain the operation of Lists and basic operations of lists ''' l = [5, 6, 7, 8] print(l) #prints the element in position 1, remembering that it starts 0 print(l[2]) # List size use len () function print(len(l)) l.append(10) print("New list after adding 10 at the end = " + str(l)) position, value = 0, 20 ...
21.911765
71
0.67651
132
745
3.818182
0.424242
0.047619
0.047619
0.06746
0.09127
0
0
0
0
0
0
0.034826
0.190604
745
33
72
22.575758
0.800995
0.288591
0
0
0
0
0.444874
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
b9cc0cf66080fbe536e755fca635d543ba81247c
423
py
Python
mysite/urls.py
codingchairs/mysite-blogs
62f000ab498c5200596f37e3ccb3839aa6e74e96
[ "BSD-3-Clause" ]
null
null
null
mysite/urls.py
codingchairs/mysite-blogs
62f000ab498c5200596f37e3ccb3839aa6e74e96
[ "BSD-3-Clause" ]
1
2018-05-16T16:53:08.000Z
2018-05-16T16:54:28.000Z
mysite/urls.py
codingchairs/mysite-blogs
62f000ab498c5200596f37e3ccb3839aa6e74e96
[ "BSD-3-Clause" ]
1
2018-05-16T16:28:14.000Z
2018-05-16T16:28:14.000Z
from django.conf.urls import url, include from django.contrib import admin from mysite.views import hello from . import views urlpatterns = [ url(r'^admin/', admin.site.urls), #all-auth url(r'^accounts/', include('allauth.urls')), url(r'^hello/$', hello), url('^$', views.Home.as_view(), name = 'h...
22.263158
51
0.624113
58
423
4.534483
0.431034
0.076046
0.060837
0
0
0
0
0
0
0
0
0
0.174941
423
18
52
23.5
0.753582
0.018913
0
0
0
0
0.18599
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b9d5705160d5737cea632ebafd3d6497a4173121
497
py
Python
ColorPalette/__init__.py
ssiyad/ColorPalette
161c8d991cba1da05d2058f5d0f34f8f3a661fe7
[ "MIT" ]
1
2020-05-28T14:03:27.000Z
2020-05-28T14:03:27.000Z
ColorPalette/__init__.py
ssiyad/ColorPalette
161c8d991cba1da05d2058f5d0f34f8f3a661fe7
[ "MIT" ]
2
2021-12-15T23:16:21.000Z
2022-01-13T01:50:58.000Z
getpalette/__init__.py
ssiyad/getpalette
b3e9922658b4fd4fff75c0e07b166315af2895c3
[ "MIT" ]
null
null
null
import argparse SHOW = False COUNT = 5 # Default value arguments = argparse.ArgumentParser() arguments.add_argument("image") arguments.add_argument("-c", "--count", help="Number of colors to find") arguments.add_argument("-s", "--show", action="store_true", ...
23.666667
65
0.619718
59
497
5.135593
0.542373
0.118812
0.19802
0
0
0
0
0
0
0
0
0.002703
0.255533
497
20
66
24.85
0.816216
0.026157
0
0
0
0
0.186722
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b9d98605128fcca0b06d6506c2608b590932aa5a
3,344
py
Python
fastestimator/backend/cast.py
hanskrupakar/fastestimator
1c3fe89ad8b012991b524a6c48f328b2a80dc9f6
[ "Apache-2.0" ]
57
2019-05-21T21:29:26.000Z
2022-02-23T05:55:21.000Z
fastestimator/backend/cast.py
vbvg2008/fastestimator
6061a4fbbeb62a2194ef82ba8017f651710d0c65
[ "Apache-2.0" ]
93
2019-05-23T18:36:07.000Z
2022-03-23T17:15:55.000Z
fastestimator/backend/cast.py
vbvg2008/fastestimator
6061a4fbbeb62a2194ef82ba8017f651710d0c65
[ "Apache-2.0" ]
47
2019-05-09T15:41:37.000Z
2022-03-26T17:00:08.000Z
# Copyright 2019 The FastEstimator Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
44
118
0.632775
486
3,344
4.314815
0.281893
0.021459
0.031474
0.042918
0.214592
0.190272
0.130663
0.090606
0.077253
0.040057
0
0.035688
0.178828
3,344
75
119
44.586667
0.727968
0.683612
0
0
0
0
0.006303
0
0
0
0
0
0
1
0.047619
false
0
0.238095
0
0.619048
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
b9e6f5006711fb2c33d0615f5186338bda9d5fcf
284
py
Python
core/decorators.py
AbbeG/modmail
4aa3077de9929d1f4291924fe798808d47830780
[ "MIT" ]
1
2018-12-13T04:58:52.000Z
2018-12-13T04:58:52.000Z
core/decorators.py
AbbeG/modmail
4aa3077de9929d1f4291924fe798808d47830780
[ "MIT" ]
null
null
null
core/decorators.py
AbbeG/modmail
4aa3077de9929d1f4291924fe798808d47830780
[ "MIT" ]
null
null
null
import functools from discord.ext import commands def trigger_typing(func): @functools.wraps(func) async def wrapper(self, ctx: commands.Context, *args, **kwargs): await ctx.trigger_typing() return await func(self, ctx, *args, **kwargs) return wrapper
21.846154
68
0.690141
36
284
5.388889
0.555556
0.134021
0
0
0
0
0
0
0
0
0
0
0.204225
284
12
69
23.666667
0.858407
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.625
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
b9ef7f9b43f45dc94204c5882765531b2f699b11
13,414
py
Python
netbox/extras/views.py
joshcorr/netbox
0296aa240ab710751ca74224683a35768d27c251
[ "Apache-2.0" ]
null
null
null
netbox/extras/views.py
joshcorr/netbox
0296aa240ab710751ca74224683a35768d27c251
[ "Apache-2.0" ]
null
null
null
netbox/extras/views.py
joshcorr/netbox
0296aa240ab710751ca74224683a35768d27c251
[ "Apache-2.0" ]
null
null
null
from django import template from django.conf import settings from django.contrib import messages from django.contrib.auth.mixins import PermissionRequiredMixin from django.contrib.contenttypes.models import ContentType from django.db.models import Count, Q from django.http import Http404, HttpResponseForbidden from dja...
31.562353
117
0.684881
1,367
13,414
6.525969
0.187271
0.042372
0.056496
0.028024
0.380563
0.321601
0.20547
0.190674
0.173635
0.133393
0
0.003468
0.226182
13,414
424
118
31.636792
0.855973
0.062398
0
0.360714
0
0
0.128053
0.06695
0
0
0
0
0
1
0.053571
false
0.003571
0.067857
0.010714
0.507143
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
b9f1660785d1ccecf9ad74d4d77f106d8d22d6dc
1,092
py
Python
rsserpent/main.py
Creedowl/RSSerpent
c9b0e14a338a2c0dd5d8c9de9b7b5fda0ffdcf54
[ "MIT" ]
null
null
null
rsserpent/main.py
Creedowl/RSSerpent
c9b0e14a338a2c0dd5d8c9de9b7b5fda0ffdcf54
[ "MIT" ]
null
null
null
rsserpent/main.py
Creedowl/RSSerpent
c9b0e14a338a2c0dd5d8c9de9b7b5fda0ffdcf54
[ "MIT" ]
null
null
null
from pathlib import Path from typing import cast import arrow from fastapi import APIRouter, Depends, FastAPI, Request, Response from importlib_metadata import entry_points from jinja2 import Environment, FileSystemLoader from .model import Feed, Plugin app = FastAPI() templates = Environment(loader=FileSystemLoade...
35.225806
85
0.717033
127
1,092
6.007874
0.503937
0.028834
0
0
0
0
0
0
0
0
0
0.001114
0.177656
1,092
30
86
36.4
0.848552
0.045788
0
0
0
0
0.05695
0
0
0
0
0
0
1
0.047619
false
0
0.333333
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b9fd6b6f5b214fc90720465ee61a84e42aaf1f3a
2,695
py
Python
drivers/dpdk-16.11/app/test/autotest.py
chandaweia/onvm-mos-new
9b46708e036514c9748b480aa09b46caf53fda94
[ "BSD-3-Clause" ]
15
2020-10-30T18:20:39.000Z
2022-03-10T13:14:01.000Z
drivers/dpdk-16.11/app/test/autotest.py
chandaweia/onvm-mos-new
9b46708e036514c9748b480aa09b46caf53fda94
[ "BSD-3-Clause" ]
1
2018-01-11T00:11:41.000Z
2018-01-11T17:21:47.000Z
drivers/dpdk-16.11/app/test/autotest.py
chandaweia/onvm-mos-new
9b46708e036514c9748b480aa09b46caf53fda94
[ "BSD-3-Clause" ]
5
2020-10-19T16:28:10.000Z
2021-05-27T03:07:26.000Z
#!/usr/bin/python # BSD LICENSE # # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of sourc...
34.551282
88
0.751391
385
2,695
5.174026
0.464935
0.036145
0.034137
0.023092
0.187751
0.124498
0.068273
0.068273
0.068273
0.068273
0
0.00809
0.174397
2,695
77
89
35
0.887191
0.632653
0
0
0
0
0.094044
0.022989
0
0
0
0
0
0
null
null
0
0.037037
null
null
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
1
0
0
0
0
0
0
0
0
1
6a00add4db4ce8e4838d6104e49fec79fcb19e83
2,077
py
Python
src/neighbors/knn.py
frmunozz/irregular-bag-of-pattern
d1e118546aca89bff75036a06f74a76a2fdb1a82
[ "MIT" ]
1
2022-01-23T21:40:10.000Z
2022-01-23T21:40:10.000Z
src/neighbors/knn.py
frmunozz/irregular-bag-of-pattern
d1e118546aca89bff75036a06f74a76a2fdb1a82
[ "MIT" ]
null
null
null
src/neighbors/knn.py
frmunozz/irregular-bag-of-pattern
d1e118546aca89bff75036a06f74a76a2fdb1a82
[ "MIT" ]
null
null
null
from sklearn.neighbors import KNeighborsClassifier as skl_knn from sklearn.base import TransformerMixin, BaseEstimator import numpy as np from dtaidistance.dtw_ndim import distance_fast class KNeighborsClassifier(skl_knn): def __init__(self, n_neighbors=1, classes=None, useClasses=False, **kwargs): self....
29.253521
85
0.674049
282
2,077
4.79078
0.258865
0.086603
0.062176
0.081421
0.415248
0.367876
0.310141
0.310141
0.310141
0.23094
0
0.01052
0.221955
2,077
70
86
29.671429
0.825495
0.008185
0
0.270833
0
0
0.005839
0
0
0
0
0
0.041667
1
0.208333
false
0
0.083333
0.083333
0.5625
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
6a02a38bf21caa6728986a9f8da53da8ec54c458
218
py
Python
webapp/app/__init__.py
siddharthsudheer/Alysida
9359f519e96a7af1608b5dfcdde5c81df720a03c
[ "MIT" ]
null
null
null
webapp/app/__init__.py
siddharthsudheer/Alysida
9359f519e96a7af1608b5dfcdde5c81df720a03c
[ "MIT" ]
null
null
null
webapp/app/__init__.py
siddharthsudheer/Alysida
9359f519e96a7af1608b5dfcdde5c81df720a03c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from flask import Flask from flask_socketio import SocketIO app = Flask(__name__, static_url_path='') app.url_map.strict_slashes = False socketio = SocketIO(app) from app.routes import index
18.166667
41
0.784404
33
218
4.909091
0.575758
0.111111
0
0
0
0
0
0
0
0
0
0.005263
0.12844
218
11
42
19.818182
0.847368
0.09633
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
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
1
0
0
0
0
1
6a1704427d592530159fd0fe89b1bb0f0543c989
724
py
Python
blog/forms.py
leparrav/PSite
3f26ce4c85150c4de4098aa9dd32af2ebd36c8e4
[ "Apache-2.0" ]
null
null
null
blog/forms.py
leparrav/PSite
3f26ce4c85150c4de4098aa9dd32af2ebd36c8e4
[ "Apache-2.0" ]
null
null
null
blog/forms.py
leparrav/PSite
3f26ce4c85150c4de4098aa9dd32af2ebd36c8e4
[ "Apache-2.0" ]
null
null
null
from blog.models import Comment from django import forms import bleach import datetime # At the end didn't use it, I decided to use Disqus instead class CommentForm(forms.ModelForm): author = forms.CharField(help_text="Username", max_length=36) text = forms.CharField(widget=forms.Textarea, help_text="Comment", max...
34.47619
85
0.754144
107
724
5.018692
0.579439
0.102421
0.055866
0
0
0
0
0
0
0
0
0.008
0.13674
724
21
86
34.47619
0.8512
0.191989
0
0
0
0
0.063465
0
0
0
0
0
0
1
0.0625
false
0
0.25
0
0.6875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
6a1d334a054f8f98ef3d483ff0e1cc7ed2ddf2fa
2,244
py
Python
scripts/transmission_test1/common.py
pratyuksh/FEMWave
9ed0fbe0981d712ce3e531500381589b034fb9f0
[ "MIT" ]
1
2021-11-05T13:06:38.000Z
2021-11-05T13:06:38.000Z
scripts/transmission_test1/common.py
pratyuksh/FEMWave
9ed0fbe0981d712ce3e531500381589b034fb9f0
[ "MIT" ]
null
null
null
scripts/transmission_test1/common.py
pratyuksh/FEMWave
9ed0fbe0981d712ce3e531500381589b034fb9f0
[ "MIT" ]
1
2021-11-05T13:06:39.000Z
2021-11-05T13:06:39.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt from matplotlib import rc from matplotlib import rcParams font = {'family' : 'Dejavu Sans', 'weight' : 'normal', 'size' : 30} rc('font', **font) rcParams['lines.linewidth'] = 4 rcParams['lines.markersiz...
31.605634
123
0.634581
320
2,244
4.31875
0.303125
0.043415
0.026049
0.02026
0.650507
0.621563
0.610709
0.610709
0.610709
0.610709
0
0.019178
0.18672
2,244
70
124
32.057143
0.738082
0.036988
0
0.538462
0
0
0.155844
0
0
0
0
0
0
1
0.038462
false
0
0.076923
0
0.115385
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
6a2343a7c066439c30e134059b96016af0aaaf16
6,098
py
Python
pre_process/auto_sign_baidu.py
caiyueliang/CarClassification
a8d8051085c4e66ed3ed67e56360a515c9762cd5
[ "Apache-2.0" ]
null
null
null
pre_process/auto_sign_baidu.py
caiyueliang/CarClassification
a8d8051085c4e66ed3ed67e56360a515c9762cd5
[ "Apache-2.0" ]
null
null
null
pre_process/auto_sign_baidu.py
caiyueliang/CarClassification
a8d8051085c4e66ed3ed67e56360a515c9762cd5
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 import os import urllib, urllib2, base64 import sys import ssl import json import shutil from retry import retry my_access_token = ['24.21d7f09158d04b3b082c3333613676ed.2592000.1550980444.282335-15215859', '24.0c566e00da8de8cee5f5ded88d98e9b2.2592000.1550980447.282335-15216921', ...
41.202703
154
0.581502
718
6,098
4.66156
0.236769
0.045414
0.036152
0.02928
0.353451
0.311622
0.262623
0.218405
0.187332
0.187332
0
0.073452
0.287799
6,098
147
155
41.482993
0.697214
0.11184
0
0.26
0
0.02
0.166759
0.058551
0
0
0
0
0
0
null
null
0
0.07
null
null
0.07
0
0
0
null
0
0
0
0
0
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
6a2385fceb454c918c9f4ac2f99028d9e12c112f
735
py
Python
python/image.py
ctcaulfield/funlights
fbad95d1471a5d2d87c79cbe2bd5352ec9248ca8
[ "MIT" ]
null
null
null
python/image.py
ctcaulfield/funlights
fbad95d1471a5d2d87c79cbe2bd5352ec9248ca8
[ "MIT" ]
null
null
null
python/image.py
ctcaulfield/funlights
fbad95d1471a5d2d87c79cbe2bd5352ec9248ca8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ image.py Converts an image into matrix.drawPixel commands for a 32x32 LED display """ from skimage import io, transform image = io.imread("q.png") image = transform.resize(image, [32,32]) io.imsave("q-sm.png", image) #uncomment to save 32x32 img print image[0][0] f = open("matrix.txt", ...
25.344828
89
0.54966
111
735
3.63964
0.540541
0.014851
0.044554
0
0
0
0
0
0
0
0
0.056159
0.24898
735
29
90
25.344828
0.675725
0.117007
0
0
0
0
0.122523
0
0.0625
0
0
0
0
0
null
null
0
0.0625
null
null
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6a26e004d717f6bcd26e64c96748239dd5d1a71a
633
py
Python
article/migrations/0012_works_work_category.py
skylifewww/artdelo
55d235a59d8a3abdf0f904336c1c75a2be903699
[ "MIT" ]
null
null
null
article/migrations/0012_works_work_category.py
skylifewww/artdelo
55d235a59d8a3abdf0f904336c1c75a2be903699
[ "MIT" ]
null
null
null
article/migrations/0012_works_work_category.py
skylifewww/artdelo
55d235a59d8a3abdf0f904336c1c75a2be903699
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-07-06 17:30 from __future__ import unicode_literals from django.db import migrations import django.db.models.deletion import mptt.fields class Migration(migrations.Migration): dependencies = [ ('article', '0011_auto_20160702_0203'), ] ...
27.521739
185
0.671406
75
633
5.493333
0.693333
0.058252
0.067961
0.106796
0
0
0
0
0
0
0
0.063366
0.202212
633
22
186
28.772727
0.752475
0.105845
0
0
1
0
0.138544
0.040853
0
0
0
0
0
1
0
false
0
0.266667
0
0.466667
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
6a45f89f61605b5d6b926b0063b02f164e0b720d
826
py
Python
scripts/training-data-processing/vector_utilities/utils_sjoin.py
DDS-Lab/disaster-image-processing
5d87e858c8d933bf4d5288061d121129fadb863d
[ "MIT" ]
10
2018-11-07T14:39:15.000Z
2022-03-30T11:27:27.000Z
scripts/training-data-processing/vector_utilities/utils_sjoin.py
DDS-Lab/disaster-image-processing
5d87e858c8d933bf4d5288061d121129fadb863d
[ "MIT" ]
1
2019-09-24T07:22:33.000Z
2019-09-24T07:22:33.000Z
scripts/training-data-processing/vector_utilities/utils_sjoin.py
DDS-Lab/disaster-image-processing
5d87e858c8d933bf4d5288061d121129fadb863d
[ "MIT" ]
5
2018-08-02T21:25:30.000Z
2020-08-08T18:52:50.000Z
import geopandas as gpd from geopandas.tools import sjoin def loadFile(file_path): shape = gpd.GeoDataFrame(gpd.read_file(file_path)) return shape def writeFile(shape, new_file): shape.to_file(new_file) def polysWithPoints(polygons, points, new_file): polygons = loadFile(polygons) points = load...
29.5
92
0.785714
97
826
6.42268
0.28866
0.191011
0.043339
0.0626
0.060995
0
0
0
0
0
0
0
0.139225
826
27
93
30.592593
0.876231
0
0
0
0
0
0.01697
0
0
0
0
0
0
1
0.210526
false
0
0.105263
0
0.473684
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
6a4bfe91ec743e72f159e18cb17f61300bc5d1e6
6,236
py
Python
python/ja3s.py
arunpalaniappan/ja3
f303ade586b9a9723424cacc1a10c533fcaf0425
[ "BSD-3-Clause" ]
null
null
null
python/ja3s.py
arunpalaniappan/ja3
f303ade586b9a9723424cacc1a10c533fcaf0425
[ "BSD-3-Clause" ]
null
null
null
python/ja3s.py
arunpalaniappan/ja3
f303ade586b9a9723424cacc1a10c533fcaf0425
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """Generate JA3 fingerprints from PCAPs using Python.""" import argparse import dpkt import json import socket import struct import os from hashlib import md5 __author__ = "Tommy Stallings" __copyright__ = "Copyright (c) 2017, salesforce.com, inc." __credits__ = ["John B. Althouse", "Jeff Atkins...
31.494949
78
0.582104
737
6,236
4.778833
0.332429
0.0159
0.013629
0.016184
0.077797
0.077797
0.029529
0.029529
0.029529
0.029529
0
0.011848
0.323284
6,236
197
79
31.654822
0.822749
0.145927
0
0.218045
1
0
0.122254
0.004967
0
0
0
0
0
1
0.030075
false
0
0.052632
0
0.120301
0.022556
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
6a4d38bbf5c0613466c10a3ca0c0e0c111e12fdd
307
py
Python
Mean, Median, and Mode.py
rashidulhasanhridoy/LANGUAGE-PROFICIENCY-Python-HackerRank
46beecbf3a2468d6c598fe62a3e65c5f0c1395c8
[ "Apache-2.0" ]
1
2020-07-21T18:01:52.000Z
2020-07-21T18:01:52.000Z
Mean, Median, and Mode.py
rashidulhasanhridoy/LANGUAGE-PROFICIENCY-Python-HackerRank
46beecbf3a2468d6c598fe62a3e65c5f0c1395c8
[ "Apache-2.0" ]
null
null
null
Mean, Median, and Mode.py
rashidulhasanhridoy/LANGUAGE-PROFICIENCY-Python-HackerRank
46beecbf3a2468d6c598fe62a3e65c5f0c1395c8
[ "Apache-2.0" ]
null
null
null
# Enter your code here. Read input from STDIN. Print output to STDOUT import numpy as np from scipy import stats i = 0 arr = [] n = int(input('')) arr = list(map(int, input().split())) arr.sort() x = np.mean(arr) y = np.median(arr) z = stats.mode(arr) print(round(x,1)) print(round(y,1)) print('%d' %(z[0]))
21.928571
69
0.651466
58
307
3.448276
0.62069
0.08
0
0
0
0
0
0
0
0
0
0.015385
0.153094
307
14
70
21.928571
0.753846
0.218241
0
0
0
0
0.008368
0
0
0
0
0.071429
0
1
0
false
0
0.153846
0
0.153846
0.230769
0
0
0
null
0
0
0
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
dbde56f070f9f29d124c6154e52587cb35229325
30,894
py
Python
tests/transactions/tests.py
huicheese/Django-test
eb866b3c4c61eb990e68f4b6a02cb1b7d948adbd
[ "BSD-3-Clause" ]
118
2015-01-03T15:42:32.000Z
2022-02-01T02:58:38.000Z
tests/transactions/tests.py
huicheese/Django-test
eb866b3c4c61eb990e68f4b6a02cb1b7d948adbd
[ "BSD-3-Clause" ]
18
2015-01-14T07:51:48.000Z
2021-10-14T01:19:26.000Z
tests/transactions/tests.py
huicheese/Django-test
eb866b3c4c61eb990e68f4b6a02cb1b7d948adbd
[ "BSD-3-Clause" ]
70
2015-01-01T00:33:24.000Z
2021-12-10T03:43:07.000Z
from __future__ import absolute_import import sys try: import threading except ImportError: threading = None import time from django.db import (connection, transaction, DatabaseError, Error, IntegrityError, OperationalError) from django.test import TransactionTestCase, skipIfDBFeature, skipUnlessDBFeature...
41.861789
120
0.655564
3,202
30,894
6.157089
0.11649
0.077606
0.055389
0.054071
0.770226
0.732488
0.692214
0.651331
0.631296
0.583414
0
0.002597
0.25225
30,894
737
121
41.918589
0.850829
0.14676
0
0.687375
0
0
0.103169
0.023099
0
0
0
0
0.190381
1
0.144289
false
0.002004
0.022044
0
0.206413
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dbe2b7b0e1c06f22c8104b11c378afc2dd3ba792
1,375
py
Python
dxr/plugins/buglink/htmlifier.py
jonasfj/dxr
5b2b9735beb754780e124081b6999afeba7e40c7
[ "MIT" ]
1
2015-10-02T19:45:35.000Z
2015-10-02T19:45:35.000Z
dxr/plugins/buglink/htmlifier.py
jonasfj/dxr
5b2b9735beb754780e124081b6999afeba7e40c7
[ "MIT" ]
null
null
null
dxr/plugins/buglink/htmlifier.py
jonasfj/dxr
5b2b9735beb754780e124081b6999afeba7e40c7
[ "MIT" ]
null
null
null
import dxr.plugins import re import sys bugFinder = re.compile("(?i)bug\s+#?([0-9]+)") # also used in hg plugin # Global variables bugzilla = None name = None # Load global variables def load(tree, conn): global bugzilla # Get bugzilla link if hasattr(tree, 'plugin_buglink_bugzilla'): bug...
25
93
0.591273
165
1,375
4.8
0.424242
0.098485
0.085859
0.04798
0.25
0.123737
0.123737
0.123737
0.123737
0
0
0.007261
0.298909
1,375
54
94
25.462963
0.814315
0.072727
0
0.179487
0
0
0.190701
0.036249
0
0
0
0
0
1
0.179487
false
0
0.076923
0.102564
0.384615
0.051282
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
dbe901768a08ef6bef61c096601755c9ebbdf56b
25,124
py
Python
pipedream/configurations/maps_labelnoise_conv.py
rainerkelz/ICASSP18
7445eab24ab4c78e425c8c9c41fbba1a75696223
[ "MIT" ]
null
null
null
pipedream/configurations/maps_labelnoise_conv.py
rainerkelz/ICASSP18
7445eab24ab4c78e425c8c9c41fbba1a75696223
[ "MIT" ]
null
null
null
pipedream/configurations/maps_labelnoise_conv.py
rainerkelz/ICASSP18
7445eab24ab4c78e425c8c9c41fbba1a75696223
[ "MIT" ]
null
null
null
from .. import utils from .. utils import lasagne as utils_lasagne from .. datasources import maps_labelnoise as maps import numpy as np import lasagne.layers as L import theano.tensor as T import lasagne.nonlinearities as A import lasagne.objectives as O import lasagne.updates as U import lasagne.init as I import the...
35.738265
164
0.578968
3,333
25,124
4.114911
0.132313
0.015676
0.020999
0.015312
0.461903
0.385345
0.338534
0.29362
0.250747
0.20124
0
0.011804
0.278419
25,124
702
165
35.789174
0.744718
0.051226
0
0.261122
0
0
0.082472
0.012698
0
0
0
0.001425
0
0
null
null
0.007737
0.040619
null
null
0.027079
0
0
0
null
0
0
0
0
0
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
dbea95f324f6a7697f5b8048e309537ae54fdc51
7,773
py
Python
src/raleigh-client/pyraleigh/sql/psql-server.py
matteobertozzi/RaleighSL
c0479296201a34ea647534ed8cbc523494776da2
[ "Apache-2.0" ]
null
null
null
src/raleigh-client/pyraleigh/sql/psql-server.py
matteobertozzi/RaleighSL
c0479296201a34ea647534ed8cbc523494776da2
[ "Apache-2.0" ]
null
null
null
src/raleigh-client/pyraleigh/sql/psql-server.py
matteobertozzi/RaleighSL
c0479296201a34ea647534ed8cbc523494776da2
[ "Apache-2.0" ]
null
null
null
# th30z@u1310:[Desktop]$ psql -h localhost -p 55432 # Password: # psql (9.1.10, server 0.0.0) # WARNING: psql version 9.1, server version 0.0. # Some psql features might not work. # Type "help" for help. # # th30z=> select foo; # a | b # ---+--- # 1 | 2 # 3 | 4 # 5 | 6 # (3 rows) from cStringIO import Str...
27.178322
97
0.639264
1,055
7,773
4.566825
0.218957
0.024907
0.02968
0.024907
0.215442
0.179743
0.099419
0.085305
0.032794
0.019095
0
0.026066
0.215232
7,773
285
98
27.273684
0.76377
0.068442
0
0.140187
0
0
0.087053
0
0
0
0.000832
0
0.004673
0
null
null
0.018692
0.03271
null
null
0.014019
0
0
0
null
0
0
0
0
0
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
dbef890f224bfacac2ad3b4b3faa4f1af61ceb79
4,399
py
Python
mininet/my-topo-lb.py
bvalente/ngsdn-tutorial
abf5bd1e8fa6652897784788d3e711242a48c4d4
[ "Apache-2.0" ]
null
null
null
mininet/my-topo-lb.py
bvalente/ngsdn-tutorial
abf5bd1e8fa6652897784788d3e711242a48c4d4
[ "Apache-2.0" ]
null
null
null
mininet/my-topo-lb.py
bvalente/ngsdn-tutorial
abf5bd1e8fa6652897784788d3e711242a48c4d4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2019-present Open Networking Foundation # # 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 requ...
34.637795
128
0.61514
604
4,399
4.438742
0.389073
0.023872
0.024618
0.017904
0.187244
0.161134
0.151809
0.105931
0.105931
0.046997
0
0.053626
0.253921
4,399
126
129
34.912698
0.763254
0.186861
0
0.08
0
0
0.219815
0
0
0
0
0
0
0
null
null
0.013333
0.106667
null
null
0.093333
0
0
0
null
0
0
0
0
0
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
dbefdfa84d4eb08c391bebcd7ecc6bd8326a19a3
905
py
Python
ucb_cs61A/lab/lab08/tests/foobar.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
null
null
null
ucb_cs61A/lab/lab08/tests/foobar.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2017-07-31T08:15:26.000Z
2017-07-31T08:15:26.000Z
ucb_cs61A/lab/lab08/tests/foobar.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2019-10-06T16:52:31.000Z
2019-10-06T16:52:31.000Z
test = { 'name': 'FooBar', 'points': 0, 'suites': [ { 'cases': [ { 'code': r""" >>> class Foo: ... def print_one(self): ... print('foo') ... def print_two(): ... print('foofoo') >>> f = Foo() ...
22.073171
56
0.330387
76
905
3.802632
0.394737
0.16609
0.114187
0.096886
0.15917
0.15917
0
0
0
0
0
0.002174
0.491713
905
41
57
22.073171
0.626087
0
0
0.146341
0
0
0.791391
0
0
0
0
0
0
1
0
false
0
0
0
0
0.317073
0
0
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
dbf4f3f3c425c910d6f4a369cf343ba1593d2899
1,143
py
Python
src/kbase_module/utils/run_method.py
jayrbolton/kbase_module
db79aaf0a3ec50315b2f9d198805f3452b38f393
[ "MIT" ]
null
null
null
src/kbase_module/utils/run_method.py
jayrbolton/kbase_module
db79aaf0a3ec50315b2f9d198805f3452b38f393
[ "MIT" ]
null
null
null
src/kbase_module/utils/run_method.py
jayrbolton/kbase_module
db79aaf0a3ec50315b2f9d198805f3452b38f393
[ "MIT" ]
null
null
null
""" Find and run a method from within a kbase module. Also validates the parameters. """ import sys import importlib from inspect import signature from kbase_module.utils.load_config import load_config from kbase_module.utils.validate_methods import validate_method_params config = load_config() sys.path.insert(0, con...
31.75
95
0.725284
167
1,143
4.868263
0.443114
0.04059
0.066421
0.0492
0
0
0
0
0
0
0
0.003226
0.186352
1,143
35
96
32.657143
0.870968
0.208224
0
0.095238
0
0
0.219818
0
0
0
0
0
0
1
0.047619
false
0
0.333333
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
dbfde346b6fd4c9aca0771a03405e0f1485b466d
805
py
Python
tests/test_rime_funcs.py
lbfinkbeiner/RIMEz
7a8ca9a4cbd73137a20f58bf44fee000b96e790d
[ "MIT" ]
2
2020-11-24T00:24:24.000Z
2021-01-14T15:39:46.000Z
tests/test_rime_funcs.py
lbfinkbeiner/RIMEz
7a8ca9a4cbd73137a20f58bf44fee000b96e790d
[ "MIT" ]
17
2019-09-04T15:04:45.000Z
2020-12-02T15:14:43.000Z
tests/test_rime_funcs.py
lbfinkbeiner/RIMEz
7a8ca9a4cbd73137a20f58bf44fee000b96e790d
[ "MIT" ]
1
2020-11-12T04:57:37.000Z
2020-11-12T04:57:37.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2019 UPennEoR # Licensed under the MIT License import numba as nb import numpy as np from RIMEz import rime_funcs def test_make_sigma_tensor(): """Test make_sigma_tensor function""" sigma = rime_funcs.make_sigma_tensor() assert sigma.shape == (2, 2, 4) assert ...
27.758621
82
0.585093
125
805
3.696
0.336
0.056277
0.045455
0.199134
0.482684
0.396104
0.396104
0.313853
0.229437
0.229437
0
0.095847
0.22236
805
28
83
28.75
0.642173
0.140373
0
0.2
0
0
0
0
0
0
0
0
0.3
1
0.05
false
0
0.15
0
0.25
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dbfe9989e62137b3d641416cdcb1069e46a8221a
3,679
py
Python
videoSummarizer/summarize/migrations/0001_initial.py
talsperre/LectureSummarizer
4a0d5a51e80be77fb3715cb386a242871d5cf298
[ "MIT" ]
4
2020-09-20T19:37:26.000Z
2021-12-12T08:03:17.000Z
videoSummarizer/summarize/migrations/0001_initial.py
talsperre/LectureSummarizer
4a0d5a51e80be77fb3715cb386a242871d5cf298
[ "MIT" ]
28
2020-11-13T18:50:46.000Z
2022-03-02T14:53:59.000Z
videoSummarizer/summarize/migrations/0001_initial.py
talsperre/LectureSummarizer
4a0d5a51e80be77fb3715cb386a242871d5cf298
[ "MIT" ]
2
2021-03-23T11:32:43.000Z
2021-03-24T03:50:37.000Z
# Generated by Django 3.0.5 on 2020-04-27 08:25 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import summarize.models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USE...
43.282353
165
0.583854
351
3,679
5.991453
0.253561
0.038041
0.059914
0.094151
0.663338
0.59962
0.59962
0.59962
0.59962
0.590585
0
0.009399
0.276977
3,679
84
166
43.797619
0.781203
0.012232
0
0.558442
1
0
0.093612
0
0
0
0
0
0
1
0
false
0
0.051948
0
0.103896
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
dbff019443e1b83c15df514108f757c53b51603a
34,624
py
Python
msp430/jtag/jtag.py
alignan/python-msp430-tools
71a86dd82206aaeb46dcf2c2f4f01c3aeb46eeef
[ "BSD-3-Clause" ]
15
2015-04-07T08:09:16.000Z
2022-03-15T23:27:03.000Z
msp430/jtag/jtag.py
seemoo-lab/python-msp430-tools
ae402286131f4762492025601a4512c7a487a0f1
[ "BSD-3-Clause" ]
1
2021-09-03T18:45:58.000Z
2021-09-03T18:45:58.000Z
msp430/jtag/jtag.py
seemoo-lab/python-msp430-tools
ae402286131f4762492025601a4512c7a487a0f1
[ "BSD-3-Clause" ]
5
2017-10-03T06:55:45.000Z
2019-12-13T20:04:55.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2002-2012 Chris Liechti <cliechti@gmx.net> # All Rights Reserved. # Simplified BSD License (see LICENSE.txt for full text) """\ JTAG programmer for the TI MSP430 embedded processor. Requires Python 2+, ctypes and MSP430mspgcc.dll/libMSP430mspgcc.so or MS...
45.557895
158
0.609779
4,088
34,624
5.001468
0.148973
0.027389
0.020444
0.017216
0.3946
0.344909
0.293114
0.266703
0.224445
0.199452
0
0.041751
0.304095
34,624
759
159
45.617918
0.806806
0.135369
0
0.309942
0
0.001949
0.100854
0
0
0
0.000461
0
0
0
null
null
0.007797
0.005848
null
null
0.001949
0
0
0
null
0
0
0
0
0
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
e00164ff1a7d5264920af49a627d18783ad31b1f
2,933
py
Python
homeassistant/components/tesla/switch.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
2
2017-10-26T19:43:55.000Z
2017-12-30T23:29:00.000Z
homeassistant/components/tesla/switch.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
3
2021-09-08T03:34:57.000Z
2022-03-12T00:59:48.000Z
homeassistant/components/tesla/switch.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
1
2019-06-19T07:43:11.000Z
2019-06-19T07:43:11.000Z
"""Support for Tesla charger switches.""" import logging from homeassistant.components.switch import ENTITY_ID_FORMAT, SwitchDevice from homeassistant.const import STATE_OFF, STATE_ON from . import DOMAIN as TESLA_DOMAIN, TeslaDevice _LOGGER = logging.getLogger(__name__) DEPENDENCIES = ['tesla'] def setup_platform...
33.712644
74
0.654961
365
2,933
5.016438
0.235616
0.058984
0.081922
0.0426
0.651557
0.623157
0.574003
0.54178
0.54178
0.54178
0
0.001759
0.224685
2,933
86
75
34.104651
0.80343
0.151381
0
0.490566
0
0
0.074855
0
0
0
0.002481
0
0
1
0.207547
false
0
0.075472
0
0.358491
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
e0028b655fdc3cfc08be13a4c65e4c5f2744541b
903
py
Python
setup.py
davidthomas5412/MassInference
680cb7b2e628647f15c90f4de8dda445e6350f37
[ "MIT" ]
null
null
null
setup.py
davidthomas5412/MassInference
680cb7b2e628647f15c90f4de8dda445e6350f37
[ "MIT" ]
null
null
null
setup.py
davidthomas5412/MassInference
680cb7b2e628647f15c90f4de8dda445e6350f37
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="massinference", version="0.0.0", author="Phil Marshall, Tom Collett, Spencer Everett, David Thomas", author_email="pjm@slac.stanford.edu, thomas.collett@port.ac.uk, spencerweverett@gmail.com, " "dthomas5@stanford.edu", url="https://github.com/dav...
37.625
95
0.665559
97
903
6.134021
0.793814
0.006723
0
0
0
0
0
0
0
0
0
0.012245
0.186047
903
24
96
37.625
0.797279
0
0
0
0
0.043478
0.573009
0.105089
0
0
0
0
0
1
0
true
0
0.043478
0
0.043478
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
e002fed5cac6b22d4b664ce459d8616a195aa7b3
579
py
Python
src/organisations/migrations/0022_organisation_persist_trait_data.py
augustuswm/flagsmith-api
6f37947fe3791726a92b4df2cdbded11e77387d3
[ "BSD-3-Clause" ]
1,259
2021-06-10T11:24:09.000Z
2022-03-31T10:30:44.000Z
src/organisations/migrations/0022_organisation_persist_trait_data.py
augustuswm/flagsmith-api
6f37947fe3791726a92b4df2cdbded11e77387d3
[ "BSD-3-Clause" ]
392
2021-06-10T11:12:29.000Z
2022-03-31T10:13:53.000Z
src/organisations/migrations/0022_organisation_persist_trait_data.py
augustuswm/flagsmith-api
6f37947fe3791726a92b4df2cdbded11e77387d3
[ "BSD-3-Clause" ]
58
2021-06-11T03:18:07.000Z
2022-03-31T14:39:10.000Z
# Generated by Django 2.2.15 on 2020-09-09 15:51 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('organisations', '0021_auto_20200619_1555'), ] operations = [ migrations.AddField( model_name='o...
30.473684
188
0.685665
72
579
5.361111
0.736111
0.051813
0
0
0
0
0
0
0
0
0
0.071111
0.222798
579
18
189
32.166667
0.786667
0.079447
0
0
1
0
0.288136
0.043315
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e006f63a4dcab50bc1d94ba99cd9fdf94e43797c
1,770
py
Python
setup.py
wk8/Brive
bc8f36d4b10d596ffb9f7dfd5a76e58544200a8d
[ "Unlicense" ]
21
2015-10-05T19:45:38.000Z
2020-10-28T20:00:11.000Z
setup.py
wk8/Brive
bc8f36d4b10d596ffb9f7dfd5a76e58544200a8d
[ "Unlicense" ]
12
2015-02-03T18:01:22.000Z
2020-09-30T11:00:48.000Z
setup.py
wk8/Brive
bc8f36d4b10d596ffb9f7dfd5a76e58544200a8d
[ "Unlicense" ]
6
2015-04-15T13:29:30.000Z
2018-01-17T02:52:05.000Z
try: from setuptools import setup, find_packages except ImportError: print 'Please download and install setuptools (http://pypi.python.org/pypi/setuptools)' exit(1) setup( name = "Brive", version = "0.4.0", packages = find_packages(), author = "Jean Rouge", author_email = "jer329@corne...
31.052632
91
0.618079
240
1,770
4.45
0.495833
0.095506
0.016854
0.033708
0.046816
0
0
0
0
0
0
0.068841
0.220339
1,770
56
92
31.607143
0.705072
0.097175
0
0
0
0
0.427227
0.062108
0
0
0
0
0
0
null
null
0
0.0625
null
null
0.020833
0
0
0
null
0
0
0
0
0
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
e0070ab6fbca55135011d6a04cf45f1d053025bf
2,434
py
Python
yuntu/dataset/base.py
CONABIO/yuntu
5ffb3bff88397d1e929d8bd76998cccff2c45db9
[ "MIT" ]
null
null
null
yuntu/dataset/base.py
CONABIO/yuntu
5ffb3bff88397d1e929d8bd76998cccff2c45db9
[ "MIT" ]
3
2021-09-08T01:43:34.000Z
2022-03-12T00:17:23.000Z
yuntu/dataset/base.py
CONABIO-audio/yuntu
5ffb3bff88397d1e929d8bd76998cccff2c45db9
[ "MIT" ]
3
2021-08-22T05:54:02.000Z
2021-10-29T21:43:03.000Z
from abc import abstractmethod, ABCMeta import yuntu.dataset.methods as dsetMethods class metaDataset(object): __metaclass__ = ABCMeta @abstractmethod def getType(self): pass @abstractmethod def getDefaultConfig(self): pass @abstractmethod def setConfig(self): pas...
29.682927
153
0.541906
198
2,434
6.60101
0.419192
0.030604
0.033665
0.038256
0
0
0
0
0
0
0
0.005799
0.362366
2,434
81
154
30.049383
0.83634
0
0
0.26087
0
0
0.168036
0
0
0
0
0
0
1
0.101449
false
0.057971
0.028986
0.028986
0.231884
0.028986
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e0097cfa4bb1b015120053cca31e69570d9ca23b
2,536
py
Python
rogal/systems/console.py
kosciak/ecs-rogal
d553104e0ea350d11272d274a900419620b9389e
[ "MIT" ]
4
2021-01-23T13:25:46.000Z
2021-03-19T03:08:05.000Z
rogal/systems/console.py
kosciak/ecs-rogal
d553104e0ea350d11272d274a900419620b9389e
[ "MIT" ]
null
null
null
rogal/systems/console.py
kosciak/ecs-rogal
d553104e0ea350d11272d274a900419620b9389e
[ "MIT" ]
null
null
null
import logging from operator import itemgetter import time from .. import components from ..ecs import System from ..ecs.run_state import RunState from ..tiles import Colors from ..utils import perf log = logging.getLogger(__name__) class ConsoleSystem(System): def __init__(self, ecs): super().__ini...
26.694737
104
0.630126
296
2,536
5.209459
0.300676
0.054475
0.051881
0.059663
0.164073
0.083009
0.033722
0
0
0
0
0.0011
0.283123
2,536
94
105
26.978723
0.847085
0.070189
0
0.181818
0
0
0
0
0
0
0
0.010638
0
1
0.106061
false
0
0.121212
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e00a48518ab0b334bccfbd15156e05531a64f39e
1,108
py
Python
QandA/app/forms.py
rtbortolin/QandA
103dac34170e52ff35f36540477bb382efb4c27f
[ "MIT" ]
null
null
null
QandA/app/forms.py
rtbortolin/QandA
103dac34170e52ff35f36540477bb382efb4c27f
[ "MIT" ]
null
null
null
QandA/app/forms.py
rtbortolin/QandA
103dac34170e52ff35f36540477bb382efb4c27f
[ "MIT" ]
null
null
null
""" Definition of forms. """ from django import forms from django.contrib.auth.forms import AuthenticationForm from django.utils.translation import ugettext_lazy as _ from app.models import * from ckeditor.fields import RichTextField class BootstrapAuthenticationForm(AuthenticationForm): """Authentication form wh...
34.625
64
0.583935
95
1,108
6.757895
0.557895
0.046729
0.046729
0.084112
0.087227
0
0
0
0
0
0
0.003968
0.31769
1,108
32
65
34.625
0.845238
0.058664
0
0.166667
0
0
0.091174
0
0
0
0
0
0
1
0
false
0.125
0.208333
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
1
0
0
0
0
0
1
e00a7ee36bf9a80a7231e6ad6635c84bf42086b9
1,846
py
Python
Server/Server.py
USB-am/driver-geolocation
f25ca664f80949bf982e32be83a9f0cf7bcf962f
[ "Apache-2.0" ]
null
null
null
Server/Server.py
USB-am/driver-geolocation
f25ca664f80949bf982e32be83a9f0cf7bcf962f
[ "Apache-2.0" ]
null
null
null
Server/Server.py
USB-am/driver-geolocation
f25ca664f80949bf982e32be83a9f0cf7bcf962f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from select import select import socket # My modules from modules import Requests class Server(object): def __init__(self, host='localhost', port=8080): self.host = host self.port = port self.tasks = [] self.to_read = {} self.to_write = {} self.post_requests...
21.717647
79
0.63922
242
1,846
4.706612
0.326446
0.052678
0.043898
0.066725
0.136084
0.071115
0.052678
0.052678
0
0
0
0.007047
0.231311
1,846
85
80
21.717647
0.794926
0.017335
0
0.084746
0
0
0.046902
0
0
0
0
0
0
0
null
null
0.016949
0.050847
null
null
0.033898
0
0
0
null
0
0
0
0
0
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
e00c3d9b73c517defcaf3728489be68f62c670a4
566
py
Python
backend/src/gql/query/get_user.py
spiritutumduo/spiritumDuo
987785906cd504f46ccebe3bbfe0e81cbf02bf7c
[ "MIT" ]
1
2022-03-11T14:07:16.000Z
2022-03-11T14:07:16.000Z
backend/src/gql/query/get_user.py
spiritutumduo/spiritumDuo
987785906cd504f46ccebe3bbfe0e81cbf02bf7c
[ "MIT" ]
3
2022-02-25T22:46:46.000Z
2022-03-30T08:19:41.000Z
backend/src/gql/query/get_user.py
spiritutumduo/spiritumDuo
987785906cd504f46ccebe3bbfe0e81cbf02bf7c
[ "MIT" ]
1
2022-03-31T14:35:51.000Z
2022-03-31T14:35:51.000Z
from .query_type import query from dataloaders import UserByIdLoader, UserByUsernameLoader from authentication.authentication import needsAuthorization from SdTypes import Permissions @query.field("getUser") @needsAuthorization([Permissions.USER_READ]) async def resolve_get_user( obj=None, info=None, id: ...
26.952381
78
0.749117
66
566
6.30303
0.5
0.052885
0.048077
0.067308
0.100962
0
0
0
0
0
0
0
0.180212
566
20
79
28.3
0.896552
0
0
0
0
0
0.012367
0
0
0
0
0
0
1
0
true
0
0.222222
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
e00e9b57176a940f3da9350bca706e00fc33c96e
4,329
py
Python
a01_stubs.py
2019-fall-csc-226/a01-breaking-bad-garrettz
d027a4e7ee739363e66905d24f419d6853b6c494
[ "MIT" ]
null
null
null
a01_stubs.py
2019-fall-csc-226/a01-breaking-bad-garrettz
d027a4e7ee739363e66905d24f419d6853b6c494
[ "MIT" ]
null
null
null
a01_stubs.py
2019-fall-csc-226/a01-breaking-bad-garrettz
d027a4e7ee739363e66905d24f419d6853b6c494
[ "MIT" ]
null
null
null
###################################################################### # Author: Zyshavia Garrett # Username: garrettz # # Assignment: A01 # # Purpose: A program that returns your Chinese Zodiac animal given a # birth year between 1988 and 1999. Also prints your friend's animal, # and your compatibility with that frien...
25.767857
85
0.578656
605
4,329
4.095868
0.335537
0.094431
0.115416
0.108959
0.418483
0.175948
0.137207
0.096852
0.042776
0.042776
0
0.038771
0.195657
4,329
167
86
25.922156
0.672889
0.191268
0
0.5
0
0
0.42451
0
0
0
0
0.005988
0
1
0
false
0
0.02
0
0.02
0.54
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
e011002d8f9c6a546f0c382fa752619476ffa007
20,756
py
Python
training&test_servers/training_server.py
wills2133/digits-ssd
addf2fda32291a02a7c602b9d58d37ca71afe79d
[ "BSD-3-Clause" ]
null
null
null
training&test_servers/training_server.py
wills2133/digits-ssd
addf2fda32291a02a7c602b9d58d37ca71afe79d
[ "BSD-3-Clause" ]
null
null
null
training&test_servers/training_server.py
wills2133/digits-ssd
addf2fda32291a02a7c602b9d58d37ca71afe79d
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from io import BlockingIOError import locale import os import fcntl import sys import struct import socket import job_msg_pb2 as proto import StringIO # import cv2 import logging import threading import subprocess import time import gzip import rarfile import zipfile import tarfi...
35.239389
127
0.548227
2,584
20,756
4.176471
0.130805
0.026872
0.05189
0.026872
0.487676
0.407246
0.342105
0.313195
0.276223
0.246942
0
0.006729
0.341299
20,756
589
128
35.239389
0.782621
0.143139
0
0.419192
0
0
0.084733
0.003138
0
0
0
0
0
0
null
null
0.012626
0.050505
null
null
0.010101
0
0
0
null
0
0
0
0
0
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
e0120b186ed4a4c8a2664c19f4e5b2f9861c42a9
447
py
Python
web/transiq/fileupload/migrations/0009_auto_20180109_1650.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
web/transiq/fileupload/migrations/0009_auto_20180109_1650.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
14
2020-06-05T23:06:45.000Z
2022-03-12T00:00:18.000Z
web/transiq/fileupload/migrations/0009_auto_20180109_1650.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2018-01-09 16:50 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('fileupload', '0008_auto_20180109_1634'), ] operations = [ migrations.RenameField( ...
21.285714
50
0.621924
48
447
5.541667
0.833333
0
0
0
0
0
0
0
0
0
0
0.10061
0.266219
447
20
51
22.35
0.710366
0.152125
0
0
1
0
0.178191
0.06117
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e016cdb1e12fd879563b38a68aa2ff0d80e585f6
1,066
py
Python
Tarefa 1.py
mattheuslima/BootCamp_Python
a141a74c01c9835cce3e78ebda27dd7db57ae551
[ "MIT" ]
null
null
null
Tarefa 1.py
mattheuslima/BootCamp_Python
a141a74c01c9835cce3e78ebda27dd7db57ae551
[ "MIT" ]
null
null
null
Tarefa 1.py
mattheuslima/BootCamp_Python
a141a74c01c9835cce3e78ebda27dd7db57ae551
[ "MIT" ]
null
null
null
print('-='*10) print('{:=^20}'.format('Desafio 1 - BOOTCAMP')) print('-='*10) #idade idade=int(input('Qual a sua idade:')) n_id=idade+1 print('No ano que vem você terá {} anos. '.format(n_id)) print('-='*20) #area do triangulo lado_a=35 lado_b=14.333333 area=(lado_a)*(lado_b) print('O retângulo de lado A =%f e lado B...
17.193548
80
0.621013
190
1,066
3.410526
0.447368
0.04321
0.027778
0.030864
0
0
0
0
0
0
0
0.073001
0.190432
1,066
62
81
17.193548
0.677868
0.053471
0
0.135135
0
0
0.375872
0
0
0
0
0
0
1
0
false
0
0
0
0
0.432432
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
e01ac858e3b043cfe879471b3db1cfe96488ad27
2,748
py
Python
ipython/scienceimports.py
bsvh/jupyter_extensions
d7a1a5e552f8dfad55476c23eedb068bf04cbbfd
[ "0BSD" ]
null
null
null
ipython/scienceimports.py
bsvh/jupyter_extensions
d7a1a5e552f8dfad55476c23eedb068bf04cbbfd
[ "0BSD" ]
null
null
null
ipython/scienceimports.py
bsvh/jupyter_extensions
d7a1a5e552f8dfad55476c23eedb068bf04cbbfd
[ "0BSD" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from IPython.core.magic import line_magic, Magics, magics_class @magics_class class ScienceImports(Magics): """Provides IPython magic for scientific imports.""" known = { "mpl": "import matplotlib as mpl", "pd": "import pandas as pd", ...
29.234043
79
0.544396
323
2,748
4.591331
0.374613
0.024275
0.032367
0.028321
0.099798
0.041807
0
0
0
0
0
0.001651
0.338792
2,748
93
80
29.548387
0.814529
0.34607
0
0.093023
0
0
0.228554
0.018785
0
0
0
0
0
1
0.116279
false
0
0.302326
0.023256
0.488372
0.232558
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e01bfe74034f93205f7b277b54617cfaf61f637e
1,376
py
Python
mission_planner_stack/mission_planner/src/header.py
dyutimoy/kraken_3.0
4bbf2450b0df7405035bc88966d9b8e2244e5c74
[ "BSD-3-Clause-Clear" ]
33
2015-02-24T09:41:20.000Z
2021-05-17T05:10:58.000Z
mission_planner_stack/mission_planner/src/header.py
dyutimoy/kraken_3.0
4bbf2450b0df7405035bc88966d9b8e2244e5c74
[ "BSD-3-Clause-Clear" ]
81
2015-03-26T22:14:13.000Z
2019-08-29T11:08:48.000Z
mission_planner_stack/mission_planner/src/header.py
dyutimoy/kraken_3.0
4bbf2450b0df7405035bc88966d9b8e2244e5c74
[ "BSD-3-Clause-Clear" ]
51
2015-02-24T09:41:24.000Z
2020-09-06T07:45:53.000Z
############################CONSTANTS AND SERVICES NAMES################################## import rospy ADVANCED_CONTROLLER_SERVER='/kraken/advance_controller_action' CONTROLLER_SERVER='/kraken/controller_action' RESET_POSE_SERVICE='/kraken_pose_change' ESTIMATED_POSE_TOPIC_NAME='/kraken/pos_estimated' MARKER_DETECT_...
21.84127
119
0.551599
188
1,376
3.659574
0.430851
0.02907
0.063953
0.017442
0.203488
0.203488
0.203488
0.203488
0.203488
0.203488
0
0.037037
0.175872
1,376
63
120
21.84127
0.569665
0.291424
0
0
0
0
0.244389
0.150873
0
0
0
0
0
1
0.03125
false
0
0.03125
0
0.5625
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
e01d013f0492c3365f9c049f106ecc1e2e295d37
791
py
Python
setup.py
hanase/developer
eca21517c84a5210c43d710ec6b20a20bca56d3a
[ "BSD-3-Clause" ]
3
2019-09-10T20:46:57.000Z
2020-12-09T18:34:08.000Z
setup.py
hanase/developer
eca21517c84a5210c43d710ec6b20a20bca56d3a
[ "BSD-3-Clause" ]
11
2017-12-21T22:19:33.000Z
2020-01-22T01:17:00.000Z
setup.py
hanase/developer
eca21517c84a5210c43d710ec6b20a20bca56d3a
[ "BSD-3-Clause" ]
4
2018-06-22T15:40:44.000Z
2021-10-02T19:27:42.000Z
# Install setuptools if not installed. try: import setuptools except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='developer', version='0.3.0', description='UrbanSim developer model', author='UrbanSim Inc.', a...
23.969697
48
0.60177
91
791
5.142857
0.571429
0.055556
0.106838
0
0
0
0
0
0
0
0
0.036728
0.242731
791
32
49
24.71875
0.744574
0.045512
0
0.068966
0
0
0.350598
0
0
0
0
0
0
1
0
true
0
0.137931
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
1
0
0
0
0
0
0
1
e021223f3f027cfa55454e8365b1a22575992d2c
1,083
py
Python
Music_Scripts/double_chords_keyboard.py
Matthix7/music_synthetiser
3c38bf456f5a7ceb6ba7aa3aa8a306e82f8cd188
[ "MIT" ]
null
null
null
Music_Scripts/double_chords_keyboard.py
Matthix7/music_synthetiser
3c38bf456f5a7ceb6ba7aa3aa8a306e82f8cd188
[ "MIT" ]
4
2021-09-02T11:41:50.000Z
2021-09-02T19:53:07.000Z
Music_Scripts/double_chords_keyboard.py
Matthix7/music_synthetiser
3c38bf456f5a7ceb6ba7aa3aa8a306e82f8cd188
[ "MIT" ]
null
null
null
from pynput.keyboard import Key keyboard = \ { # Main gauche '(': 'Sol#3', 't': 'Mi3', 'g': 'MiM3', 'b': 'Mim3', "'": 'Do#3', 'r': 'La3', 'f': 'LaM3', 'v': 'Lam3', '"': 'Fa#3', 'e': 'Re3', 'd': 'ReM3', 'c': 'Rem...
19.690909
31
0.261311
107
1,083
2.626168
0.700935
0.02847
0
0
0
0
0
0
0
0
0
0.080756
0.462604
1,083
54
32
20.055556
0.402062
0.021237
0
0
0
0
0.199622
0
0
0
0
0
0
1
0
false
0
0.02
0
0.02
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e02335e746ab37936688fcda52c68ae1c73fa918
345
py
Python
euler015.py
gttm/project-euler
b5d37fb2f0aced2292209a45b53a0fb19193b3a9
[ "MIT" ]
null
null
null
euler015.py
gttm/project-euler
b5d37fb2f0aced2292209a45b53a0fb19193b3a9
[ "MIT" ]
null
null
null
euler015.py
gttm/project-euler
b5d37fb2f0aced2292209a45b53a0fb19193b3a9
[ "MIT" ]
null
null
null
#!/usr/bin/env python def calcPaths(x, y, paths): if x == grid or y == grid: paths[x][y] = 1 if paths[x][y] == 0: paths[x][y] = calcPaths(x + 1, y, paths) + calcPaths(x, y + 1, paths) return paths[x][y] grid = 20 paths = [[0 for j in range(grid + 1)] for i in range(grid + 1)] prin...
24.642857
77
0.536232
62
345
2.983871
0.354839
0.064865
0.151351
0.12973
0
0
0
0
0
0
0
0.044355
0.281159
345
13
78
26.538462
0.701613
0.057971
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
1
e0264cf4eaa6020e33e06569e408fe74144fb1e8
692
py
Python
Lib/lib2to3/fixes/fix_input.py
leepro/unladen-swallow
8175e37eaea7ca66ed03283b46bc1d2db0d3f9c3
[ "PSF-2.0" ]
2,293
2015-01-02T12:46:10.000Z
2022-03-29T09:45:43.000Z
python/src/Lib/lib2to3/fixes/fix_input.py
weiqiangzheng/sl4a
d3c17dca978cbeee545e12ea240a9dbf2a6999e9
[ "Apache-2.0" ]
315
2015-05-31T11:55:46.000Z
2022-01-12T08:36:37.000Z
python/src/Lib/lib2to3/fixes/fix_input.py
weiqiangzheng/sl4a
d3c17dca978cbeee545e12ea240a9dbf2a6999e9
[ "Apache-2.0" ]
1,033
2015-01-04T07:48:40.000Z
2022-03-24T09:34:37.000Z
"""Fixer that changes input(...) into eval(input(...)).""" # Author: Andre Roberge # Local imports from .. import fixer_base from ..fixer_util import Call, Name from .. import patcomp context = patcomp.compile_pattern("power< 'eval' trailer< '(' any ')' > >") class FixInput(fixer_base.BaseFix): PATTERN = """ ...
25.62963
75
0.586705
83
692
4.819277
0.590361
0.05
0
0
0
0
0
0
0
0
0
0
0.248555
692
26
76
26.615385
0.769231
0.208092
0
0
0
0
0.218519
0
0
0
0
0
0
1
0.071429
false
0
0.214286
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e02b0e641d0ac239595eabed335d7c39948934f2
429
py
Python
src/portals/admins/migrations/0007_topup_stripe_payment_intent.py
IkramKhan-DevOps/pws-ewallet
7c16a97d521d5eb91cc3bbda64f317c1c2f92658
[ "MIT" ]
null
null
null
src/portals/admins/migrations/0007_topup_stripe_payment_intent.py
IkramKhan-DevOps/pws-ewallet
7c16a97d521d5eb91cc3bbda64f317c1c2f92658
[ "MIT" ]
3
2022-02-24T20:37:00.000Z
2022-03-26T18:35:25.000Z
src/portals/admins/migrations/0007_topup_stripe_payment_intent.py
IkramKhan-DevOps/pws-ewallet
7c16a97d521d5eb91cc3bbda64f317c1c2f92658
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2022-02-24 11:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('admins', '0006_auto_20220224_1259'), ] operations = [ migrations.AddField( model_name='topup', name='stripe_payment_...
21.45
47
0.60373
46
429
5.478261
0.847826
0
0
0
0
0
0
0
0
0
0
0.104918
0.289044
429
19
48
22.578947
0.721311
0.104895
0
0
1
0
0.143979
0.115183
0
0
0
0
0
1
0
false
0
0.076923
0
0.307692
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
e02d35616e25ff1a93ee65edfcf9c7bd477a81ae
1,525
py
Python
core/logging_handlers/SQLiteLoggingEventHandler.py
marcowang2008/anti-tamper-test
60f77e07f62a27b6cbbc9f36069dc8ea4a456944
[ "Apache-2.0" ]
null
null
null
core/logging_handlers/SQLiteLoggingEventHandler.py
marcowang2008/anti-tamper-test
60f77e07f62a27b6cbbc9f36069dc8ea4a456944
[ "Apache-2.0" ]
null
null
null
core/logging_handlers/SQLiteLoggingEventHandler.py
marcowang2008/anti-tamper-test
60f77e07f62a27b6cbbc9f36069dc8ea4a456944
[ "Apache-2.0" ]
null
null
null
import logging from datetime import datetime from core.logging_handlers._BaseLoggingEventHandler import BaseLoggingEventHandler class SQLiteLoggingEventHandler(BaseLoggingEventHandler): db = None """Logs all the events captured into SQLite db""" def __init__(self, db): self.db = db def log...
33.888889
82
0.674754
193
1,525
5.165803
0.238342
0.04012
0.080241
0.090271
0.545637
0.440321
0.257773
0.222668
0.17653
0
0
0
0.210492
1,525
45
83
33.888889
0.828073
0.135738
0
0.153846
0
0
0.124803
0
0
0
0
0
0
1
0.230769
false
0
0.115385
0
0.423077
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e02dd16f15b7bfa9665364f8c3da37588805468c
814
py
Python
Factory/ABCs/solution_3_event_loop/shapes.py
musen-rse/examples_python
75f2afb94c9ee2e1f1333638d186c2c3c3a96436
[ "MIT" ]
1
2022-01-23T14:02:47.000Z
2022-01-23T14:02:47.000Z
Factory/ABCs/solution_2_strings/shapes.py
musen-rse/examples_python
75f2afb94c9ee2e1f1333638d186c2c3c3a96436
[ "MIT" ]
1
2021-09-12T07:00:30.000Z
2021-09-12T07:00:30.000Z
Factory/ABCs/solution_3_event_loop/shapes.py
musen-rse/examples_python
75f2afb94c9ee2e1f1333638d186c2c3c3a96436
[ "MIT" ]
1
2022-01-23T14:02:29.000Z
2022-01-23T14:02:29.000Z
from core.shape_abc import Shape, ShapeFactory from typing import List class Circle(Shape): def draw(self): print("Drawing Circle") class Rectangle(Shape): def draw(self): print("Drawing Rectangle") class Triangle(Shape): def draw(self): print("Drawing Triangle") class ShapeF...
22.611111
64
0.613022
88
814
5.556818
0.340909
0.06544
0.07362
0.09816
0.171779
0.171779
0
0
0
0
0
0
0.275184
814
35
65
23.257143
0.828814
0
0
0.12
0
0
0.130221
0
0
0
0
0
0
1
0.24
false
0
0.08
0.04
0.64
0.12
0
0
0
null
0
0
0
0
0
0
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
e0399dab346fd63c12a64781daf9cf31464b325a
2,140
py
Python
pywick/datasets/PredictFolderDataset.py
achaiah/pywick
9d663faf0c1660a9b8359a6472c164f658dfc8cb
[ "MIT" ]
408
2019-05-16T16:12:41.000Z
2022-03-26T17:27:12.000Z
pywick/datasets/PredictFolderDataset.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
13
2019-05-17T05:47:06.000Z
2021-06-21T19:02:30.000Z
pywick/datasets/PredictFolderDataset.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
42
2019-05-16T19:57:12.000Z
2022-03-06T15:23:18.000Z
from .FolderDataset import FolderDataset, identity_x class PredictFolderDataset(FolderDataset): """ Convenience class for loading out-of-memory data that is more geared toward prediction data loading (where ground truth is not available). \n If not transformed in any way (either via one of the loaders or t...
53.5
154
0.721028
308
2,140
4.899351
0.454545
0.033135
0.029821
0.021206
0.099404
0.099404
0.099404
0.099404
0.099404
0.099404
0
0
0.211215
2,140
39
155
54.871795
0.893957
0.713551
0
0
0
0
0.009881
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e0433738bd957d5946724855d75e447c6299c338
41,230
py
Python
simulator/ez_lib/p2p_scheduler.py
faywh/read_ez
d26a14aed473291b896664faf284ef3027c8be90
[ "Apache-2.0" ]
7
2017-05-28T21:00:09.000Z
2021-04-05T16:14:07.000Z
simulator/ez_lib/p2p_scheduler.py
faywh/read_ez
d26a14aed473291b896664faf284ef3027c8be90
[ "Apache-2.0" ]
null
null
null
simulator/ez_lib/p2p_scheduler.py
faywh/read_ez
d26a14aed473291b896664faf284ef3027c8be90
[ "Apache-2.0" ]
3
2018-12-27T07:59:30.000Z
2021-05-02T07:47:42.000Z
from copy import deepcopy from domain.network_premitives import Link from domain.message import NotificationMessage from ez_lib.ez_ob import P2PUpdateInfo, UpdateNext, UpdateOperation from ez_lib import ez_flow_tool from time import time from collections import deque, defaultdict from misc import constants import event...
52.791293
125
0.646495
5,809
41,230
4.150973
0.048545
0.074026
0.088832
0.038776
0.729606
0.642475
0.56003
0.48646
0.415875
0.371252
0
0.003086
0.277031
41,230
780
126
52.858974
0.805857
0.11836
0
0.339713
0
0
0.005101
0
0
0
0
0
0.004785
0
null
null
0
0.015949
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e048423dc5bc88a3fc4daf1cb035fb6a9086dd41
1,631
py
Python
avgn/custom_parsing/zebra_finch_gardner.py
xingjeffrey/avgn_paper
412e95dabc7b7b13a434b85cc54a21c06efe4e2b
[ "MIT" ]
null
null
null
avgn/custom_parsing/zebra_finch_gardner.py
xingjeffrey/avgn_paper
412e95dabc7b7b13a434b85cc54a21c06efe4e2b
[ "MIT" ]
null
null
null
avgn/custom_parsing/zebra_finch_gardner.py
xingjeffrey/avgn_paper
412e95dabc7b7b13a434b85cc54a21c06efe4e2b
[ "MIT" ]
null
null
null
from avgn.utils.json import NoIndentEncoder import librosa import json import avgn from avgn.utils.paths import DATA_DIR DATASET_ID = 'zebra_finch_gardner' def generate_json_wav_noise(indv, wav_num, song, nonsong, sr, DT_ID): wav_duration = len(song) / sr wav_stem = indv + "_" + str(wav_num).zfill(4) j...
30.203704
87
0.659105
238
1,631
4.226891
0.319328
0.079523
0.055666
0.05666
0.241551
0.095427
0.095427
0.095427
0
0
0
0.003072
0.201717
1,631
54
88
30.203704
0.769585
0.066217
0
0
1
0
0.129288
0
0
0
0
0
0
1
0.028571
false
0
0.142857
0
0.171429
0.057143
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
e0493907e0e1dcdb1346839922afe1565d348253
1,964
py
Python
tests/records/test_mx.py
raspi/pypdnsrest
d45f89721108d0718c791de91c2cdf31ab7cee9b
[ "Apache-2.0" ]
2
2017-05-16T14:45:27.000Z
2018-03-02T08:50:00.000Z
tests/records/test_mx.py
raspi/pypdnsrest
d45f89721108d0718c791de91c2cdf31ab7cee9b
[ "Apache-2.0" ]
4
2017-08-19T03:46:25.000Z
2019-04-04T14:13:51.000Z
tests/records/test_mx.py
raspi/pypdnsrest
d45f89721108d0718c791de91c2cdf31ab7cee9b
[ "Apache-2.0" ]
1
2020-02-09T17:17:33.000Z
2020-02-09T17:17:33.000Z
from pypdnsrest.dnsrecords import DNSMxRecord from pypdnsrest.dnsrecords import DNSMxRecordData from pypdnsrest.dnsrecords import InvalidDNSRecordException from datetime import timedelta from tests.records.test_records import TestRecords class TestMxRecord(TestRecords): def test_record(self): mxdata = DNS...
34.45614
87
0.692464
225
1,964
5.928889
0.191111
0.071964
0.107946
0.131934
0.687406
0.685907
0.685907
0.685907
0.685907
0.618441
0
0.010316
0.210285
1,964
57
88
34.45614
0.849774
0
0
0.47619
0
0
0.026972
0
0
0
0
0
0.190476
1
0.190476
false
0
0.119048
0
0.333333
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
e04b27f085886c6943117e834186a94704ba6132
1,553
py
Python
src/compat_func.py
rangell/icff
a24b7b289219caef26d24e8cdbf37e24de49447a
[ "MIT" ]
null
null
null
src/compat_func.py
rangell/icff
a24b7b289219caef26d24e8cdbf37e24de49447a
[ "MIT" ]
null
null
null
src/compat_func.py
rangell/icff
a24b7b289219caef26d24e8cdbf37e24de49447a
[ "MIT" ]
null
null
null
import copy import numpy as np from sparse_dot_mkl import dot_product_mkl from utils import MIN_FLOAT from IPython import embed #def raw_overlap(node, constraint, num_points): def raw_overlap(raw_reps, stacked_constraints, num_points): extreme_raw_reps = copy.deepcopy(raw_reps).astype(float) extreme_raw_re...
34.511111
74
0.721185
224
1,553
4.696429
0.299107
0.135932
0.076046
0.065589
0.051331
0
0
0
0
0
0
0.006349
0.188667
1,553
44
75
35.295455
0.828571
0.04443
0
0
0
0
0
0
0
0
0
0.022727
0.028571
1
0.057143
false
0
0.142857
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
1
0
0
0
0
0
0
0
0
0
0
1
e04c234819057585c9ba55e23756a0830eeff7e3
1,530
py
Python
tests/integration/parse_project/test_import.py
ajeetraina/pycograph
a1bcf8e0f62a605a798e82373ec2279add83cf16
[ "BSD-3-Clause" ]
2
2021-04-20T22:39:03.000Z
2021-11-30T20:26:23.000Z
tests/integration/parse_project/test_import.py
ajeetraina/pycograph
a1bcf8e0f62a605a798e82373ec2279add83cf16
[ "BSD-3-Clause" ]
12
2021-04-23T13:09:49.000Z
2021-05-15T23:39:32.000Z
tests/integration/parse_project/test_import.py
ajeetraina/pycograph
a1bcf8e0f62a605a798e82373ec2279add83cf16
[ "BSD-3-Clause" ]
2
2022-01-09T12:55:42.000Z
2022-03-05T09:22:29.000Z
from pycograph.project import PythonProject from pycograph.schemas.basic_syntax_elements import ABSOLUTE, ImportSyntaxElement from pycograph.schemas.parse_result import ( PackageWithContext, ResolvedImportRelationship, ) from ..helper import create_module_with_content def test_import_one_name(): content ...
28.333333
81
0.698693
162
1,530
6.253086
0.358025
0.069102
0.047384
0.068115
0.122409
0
0
0
0
0
0
0.00082
0.203268
1,530
53
82
28.867925
0.830189
0
0
0.044444
0
0
0.118954
0
0
0
0
0
0.111111
1
0.022222
false
0
0.355556
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e04c7a1fc641ffaf262635c8fbba53f8bc684d1f
609
py
Python
avs_client/avs_client/helpers.py
CuidaHealth/alexa-voice-service-client
3b189b7039997251196956f13e365a4b83c36622
[ "MIT" ]
1
2019-01-16T01:38:40.000Z
2019-01-16T01:38:40.000Z
avs_client/avs_client/helpers.py
CuidaHealth/alexa-voice-service-client
3b189b7039997251196956f13e365a4b83c36622
[ "MIT" ]
null
null
null
avs_client/avs_client/helpers.py
CuidaHealth/alexa-voice-service-client
3b189b7039997251196956f13e365a4b83c36622
[ "MIT" ]
2
2018-07-12T19:56:42.000Z
2018-07-20T23:56:35.000Z
import collections import time Cache = collections.namedtuple('Cache', ['value', 'time']) class expiring_memo(object): caches = {} def __init__(self, ttl): self.ttl = ttl def __call__(self, func): def inner(target, *args, **kwargs): cache_id = id(target) cache =...
25.375
76
0.563218
72
609
4.597222
0.388889
0.090634
0
0
0
0
0
0
0
0
0
0
0.316913
609
23
77
26.478261
0.795673
0
0
0
0
0
0.022989
0
0
0
0
0
0
1
0.176471
false
0
0.117647
0
0.529412
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
e059988a19357213b3dd46f7dedcccdd1da23843
1,926
py
Python
api2/services.py
umatbro/crawler-helper
dbdc2f2766abeef0a3a29a3e16642764822b1d47
[ "MIT" ]
null
null
null
api2/services.py
umatbro/crawler-helper
dbdc2f2766abeef0a3a29a3e16642764822b1d47
[ "MIT" ]
3
2019-09-19T15:02:29.000Z
2019-09-25T22:15:45.000Z
api2/services.py
umatbro/crawler-helper
dbdc2f2766abeef0a3a29a3e16642764822b1d47
[ "MIT" ]
null
null
null
import base64 import json from typing import Dict from typing import List from typing import Tuple from django.conf import settings from sendgrid import Attachment from sendgrid import FileContent from sendgrid import FileName from sendgrid import FileType from sendgrid import Mail from sendgrid import SendGridAPIClie...
30.09375
111
0.715472
255
1,926
5.313725
0.388235
0.053137
0.079705
0.02214
0
0
0
0
0
0
0
0.005219
0.20405
1,926
63
112
30.571429
0.878669
0.154725
0
0.045455
0
0
0.076875
0
0
0
0
0
0
1
0.068182
false
0
0.318182
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e05f30a323f3dcdbfd01dbc742c7f96d66951ac7
1,547
py
Python
main.py
arxaqapi/ioweyou
5881baef59a2f67d5e3da96d438dcf85a532c245
[ "MIT" ]
null
null
null
main.py
arxaqapi/ioweyou
5881baef59a2f67d5e3da96d438dcf85a532c245
[ "MIT" ]
2
2021-04-26T13:58:46.000Z
2021-04-26T15:39:01.000Z
main.py
arxaqapi/ioweyou
5881baef59a2f67d5e3da96d438dcf85a532c245
[ "MIT" ]
null
null
null
from ioweyou.BoundingBox import evaluate_model PATH = "data/bird_dataset/" # to_file(PATH + "test_index.txt", get_all_images(PATH + "test/")) # to_file(PATH + "train_index.txt", get_all_images(PATH + "train/")) # to_file(PATH + "eval_index.txt", get_all_images(PATH + "val/")) def evaluate_yolov4(): from ioweyou....
29.75
79
0.719457
218
1,547
4.825688
0.33945
0.062738
0.062738
0.079848
0.146388
0.146388
0
0
0
0
0
0.006245
0.171946
1,547
52
80
29.75
0.814988
0.177117
0
0.060606
0
0
0.115931
0.044953
0
0
0
0
0
1
0.090909
false
0.030303
0.30303
0
0.393939
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e05f8e3050d473713e84840d35a05500ba99929d
768
py
Python
mitxpro_core/settings/common.py
umarmughal824/mitxpro-openedx-extensions
4bab750148033666aef9d34746cfd141d6a78b15
[ "BSD-3-Clause" ]
null
null
null
mitxpro_core/settings/common.py
umarmughal824/mitxpro-openedx-extensions
4bab750148033666aef9d34746cfd141d6a78b15
[ "BSD-3-Clause" ]
null
null
null
mitxpro_core/settings/common.py
umarmughal824/mitxpro-openedx-extensions
4bab750148033666aef9d34746cfd141d6a78b15
[ "BSD-3-Clause" ]
null
null
null
""" Settings for mitxpro-core """ from __future__ import unicode_literals SECRET_KEY = "unsafe-secret-key" INSTALLED_APPS = ( "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.sessions", ) def plugin_settings(settings): """Apply default settings for this plugin""" settings.MI...
26.482759
75
0.729167
86
768
6.174419
0.523256
0.124294
0.143126
0.20339
0
0
0
0
0
0
0
0.003101
0.160156
768
28
76
27.428571
0.820155
0.083333
0
0
0
0
0.360347
0.308249
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.105263
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e061e9bbbbc5d683036d617fe5ee4fbaafe480ef
20,568
py
Python
Desktop10.4/raster2gpkg.py
Esri/raster2gpkg
d10ebb3038786ecddf41072ba5b2c49baad97c5a
[ "Apache-2.0" ]
13
2015-11-18T18:26:34.000Z
2021-05-09T13:59:46.000Z
Desktop10.3.1/raster2gpkg.py
Esri/raster2gpkg
d10ebb3038786ecddf41072ba5b2c49baad97c5a
[ "Apache-2.0" ]
4
2015-12-26T03:16:25.000Z
2016-08-23T17:18:11.000Z
Desktop10.3.1/raster2gpkg.py
Esri/raster2gpkg
d10ebb3038786ecddf41072ba5b2c49baad97c5a
[ "Apache-2.0" ]
5
2015-10-22T13:28:53.000Z
2020-12-12T13:07:52.000Z
#!/usr/bin/env python #------------------------------------------------------------------------------ # Copyright 2015 Esri # 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.apa...
43.119497
136
0.520566
2,126
20,568
4.831138
0.215898
0.024925
0.043618
0.036803
0.3764
0.352254
0.331419
0.31954
0.31954
0.310388
0
0.059618
0.38837
20,568
476
137
43.210084
0.756757
0.088438
0
0.168182
0
0
0.087265
0.004453
0
0
0
0
0
0
null
null
0
0.068182
null
null
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e0691349c3a5cb8ba5537b502f56710f1808a66f
799
py
Python
users_api/serializers.py
neilbren/user-django-framework
f2d40be4d4d40aeff075185882a1425e9c5cd780
[ "MIT" ]
null
null
null
users_api/serializers.py
neilbren/user-django-framework
f2d40be4d4d40aeff075185882a1425e9c5cd780
[ "MIT" ]
null
null
null
users_api/serializers.py
neilbren/user-django-framework
f2d40be4d4d40aeff075185882a1425e9c5cd780
[ "MIT" ]
null
null
null
from rest_framework import serializers from users_api import models class UserSerializer(serializers.ModelSerializer): class Meta: model = models.User fields = ('id', 'email', 'username', 'password') # Passwd field only availble for creating object extra_kwargs = { 'pa...
27.551724
93
0.603254
83
799
5.662651
0.638554
0.110638
0
0
0
0
0
0
0
0
0
0
0.305382
799
28
94
28.535714
0.846847
0.16771
0
0
0
0
0.128399
0
0
0
0
0
0
1
0.052632
false
0.210526
0.105263
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e06b4ba5e008b98b5d6e66187c913f56d99e7c28
12,573
py
Python
ckan/lib/base.py
rossjones/ckan-mini
cb39b3de7dcc9d12a64c5f37bcafe6306e9e3412
[ "Apache-2.0" ]
3
2015-09-30T20:07:52.000Z
2015-10-01T04:16:31.000Z
ckan/lib/base.py
rossjones/ckan-mini
cb39b3de7dcc9d12a64c5f37bcafe6306e9e3412
[ "Apache-2.0" ]
4
2015-09-29T18:29:56.000Z
2015-10-04T14:55:22.000Z
ckan/lib/base.py
rossjones/ckan-mini
cb39b3de7dcc9d12a64c5f37bcafe6306e9e3412
[ "Apache-2.0" ]
null
null
null
"""The base Controller API Provides the BaseController class for subclassing. """ import logging import time from paste.deploy.converters import asbool from pylons import cache, config from pylons.controllers import WSGIController from pylons.controllers.util import abort as _abort from pylons.controllers.util import...
36.025788
79
0.627615
1,531
12,573
4.979099
0.258001
0.022039
0.016791
0.009445
0.121474
0.060081
0.04329
0.011019
0.011019
0.011019
0
0.004567
0.28593
12,573
348
80
36.12931
0.844509
0.141891
0
0.12381
0
0
0.108893
0.020181
0
0
0
0.005747
0
0
null
null
0.009524
0.104762
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e06cb974648e68da0ffb6ca49951554e2ae0dbab
857
py
Python
Hashing/test_cukooset.py
Jh123x/COMP-550-Algorithms-and-Analysis
1bc0b7fb8c48dc52cf89704557795aa87290e88b
[ "MIT" ]
null
null
null
Hashing/test_cukooset.py
Jh123x/COMP-550-Algorithms-and-Analysis
1bc0b7fb8c48dc52cf89704557795aa87290e88b
[ "MIT" ]
null
null
null
Hashing/test_cukooset.py
Jh123x/COMP-550-Algorithms-and-Analysis
1bc0b7fb8c48dc52cf89704557795aa87290e88b
[ "MIT" ]
null
null
null
from CukooHashSet import CukooSet def test_set_add_1_element(): """Add 1 element to CukooSet""" mySet = CukooSet() assert mySet.insert("1") def test_set_search_1_element(): """Searching for element in cukoo set""" mySet = CukooSet() assert mySet.insert("1") assert mySet._contains("1") ...
24.485714
51
0.63944
118
857
4.5
0.279661
0.124294
0.056497
0.048964
0.365348
0.263653
0.146893
0.146893
0
0
0
0.017188
0.253209
857
34
52
25.205882
0.8125
0.087515
0
0.318182
0
0
0.003916
0
0
0
0
0
0.5
1
0.136364
false
0
0.045455
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
1
0
0
0
0
0
0
0
0
0
1
e06d49af23aa800bfb7011bbaff4b9c7957a0e8c
8,071
py
Python
tsaotun/lib/Addon/loader.py
qazbnm456/tsaotun
70186faebd5303961d5996c758f7c9147c4439ba
[ "Apache-2.0" ]
47
2017-01-15T08:33:46.000Z
2022-02-11T22:37:48.000Z
tsaotun/lib/Addon/loader.py
qazbnm456/dokcer
70186faebd5303961d5996c758f7c9147c4439ba
[ "Apache-2.0" ]
null
null
null
tsaotun/lib/Addon/loader.py
qazbnm456/dokcer
70186faebd5303961d5996c758f7c9147c4439ba
[ "Apache-2.0" ]
2
2017-01-16T13:10:22.000Z
2019-03-28T17:05:04.000Z
"""Addon Loader module""" import os import pkgutil import imp from ast import literal_eval from ConfigParser import RawConfigParser from git import RemoteProgress from ..Utils.deepgetattr import deepgetattr from ..Utils.hightlight import hightlight_python from ..Utils.urlutil import is_git_url class Progress(Remote...
41.178571
185
0.536117
846
8,071
4.972813
0.20331
0.042786
0.063228
0.054671
0.39981
0.39981
0.39981
0.33991
0.293796
0.277157
0
0.000754
0.342337
8,071
195
186
41.389744
0.791824
0
0
0.40625
0
0.00625
0.105208
0.002728
0
0
0
0
0
0
null
null
0
0.1
null
null
0.01875
0
0
0
null
0
0
0
0
0
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
e07485a701a1cd09a29ca8ba7f1bd10cdcd99c05
637
py
Python
jetee/common/shell.py
WhackoJacko/Jetee
46e7e83660e06ec93e1ee34fbd1d5136c83d6d0e
[ "BSD-2-Clause" ]
2
2015-04-03T02:41:45.000Z
2019-02-27T23:10:29.000Z
jetee/common/shell.py
WhackoJacko/Jetee
46e7e83660e06ec93e1ee34fbd1d5136c83d6d0e
[ "BSD-2-Clause" ]
5
2015-01-16T14:39:59.000Z
2017-12-01T04:36:45.000Z
jetee/common/shell.py
WhackoJacko/Jetee
46e7e83660e06ec93e1ee34fbd1d5136c83d6d0e
[ "BSD-2-Clause" ]
2
2015-04-03T02:41:49.000Z
2015-06-10T08:29:59.000Z
import subprocess from jetee.common.utils import render_env_variables class SSHClient(object): def __init__(self, hostname, port, username, env_variables=None): self.hostname = hostname self.port = port self.username = username self.env_variables = env_variables or {} def run...
28.954545
101
0.591837
74
637
4.905405
0.418919
0.264463
0.132231
0
0
0
0
0
0
0
0
0
0.296703
637
22
102
28.954545
0.810268
0
0
0
0
0
0.043887
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.277778
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e075b0048f349eff2005802bfb38fd31607258c9
9,458
py
Python
pnc_cli/swagger_client/models/product_version_rest.py
SakuragawaAsaba/pnc-cli
0e0c5976766f6d2e32980c39ebc30950fc02960e
[ "Apache-2.0" ]
null
null
null
pnc_cli/swagger_client/models/product_version_rest.py
SakuragawaAsaba/pnc-cli
0e0c5976766f6d2e32980c39ebc30950fc02960e
[ "Apache-2.0" ]
3
2015-06-01T22:12:27.000Z
2015-10-11T16:20:11.000Z
pnc_cli/swagger_client/models/product_version_rest.py
SakuragawaAsaba/pnc-cli
0e0c5976766f6d2e32980c39ebc30950fc02960e
[ "Apache-2.0" ]
5
2015-05-28T18:14:36.000Z
2018-07-20T07:38:21.000Z
# coding: utf-8 """ Copyright 2015 SmartBear Software 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 applica...
28.660606
105
0.63026
963
9,458
5.982347
0.163032
0.041659
0.166638
0.065093
0.474744
0.327374
0.165076
0.10276
0.03055
0
0
0.001347
0.29372
9,458
329
106
28.74772
0.861078
0.001375
0
0.084034
0
0
0.128301
0.057218
0
0
0
0
0
0
null
null
0
0.02521
null
null
0.008403
0
0
0
null
0
0
0
0
0
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
e07675fe5fc93f98cf96881e75ecff0264b30a22
334
py
Python
oferty/templatetags/math.py
minikdo/estates
9aa547ff98bc6c437e63c2f2650307efe4b0a5fd
[ "Apache-2.0" ]
null
null
null
oferty/templatetags/math.py
minikdo/estates
9aa547ff98bc6c437e63c2f2650307efe4b0a5fd
[ "Apache-2.0" ]
null
null
null
oferty/templatetags/math.py
minikdo/estates
9aa547ff98bc6c437e63c2f2650307efe4b0a5fd
[ "Apache-2.0" ]
null
null
null
from django import template register = template.Library() @register.filter def div(value, arg): ''' Divides the value; argument is the divisor. Returns empty string on any error. ''' try: value = int(value) arg = int(arg) if arg: return value / arg except: pass ...
18.555556
47
0.592814
41
334
4.829268
0.682927
0.121212
0
0
0
0
0
0
0
0
0
0
0.314371
334
17
48
19.647059
0.864629
0.233533
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0.090909
0.090909
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
1
0
0
0
0
0
1
e076e440ef49d87013b335f490d59f61cd8bb34a
1,305
py
Python
ynab.py
thomasantony/budget-app
5e3bf635bdb7ec8c573a7fe93336a16a35906240
[ "MIT" ]
null
null
null
ynab.py
thomasantony/budget-app
5e3bf635bdb7ec8c573a7fe93336a16a35906240
[ "MIT" ]
8
2016-08-29T23:52:17.000Z
2016-08-29T23:53:50.000Z
ynab.py
thomasantony/budget-app
5e3bf635bdb7ec8c573a7fe93336a16a35906240
[ "MIT" ]
null
null
null
def import_transactions(filename, db): """Import Transactions from YNAB Register CSV file""" # Keep track of account names found so far accounts = {} with open(filename, newline='') as csvfile: txnreader = csv.reader(csvfile, delimiter=',',quotechar='"') next(txnreader, None) # skip the...
40.78125
78
0.514176
137
1,305
4.70073
0.452555
0.074534
0.046584
0.055901
0.080745
0.080745
0
0
0
0
0
0.007614
0.396169
1,305
31
79
42.096774
0.809645
0.043678
0
0
0
0
0.045302
0.020134
0
0
0
0
0
0
null
null
0
0.071429
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0eb31965b25cdb69288071fdff7588d7d73a0cf9
6,141
py
Python
metafilter/webserve.py
exhuma/metafilter
dfbc01877a3020f7fe58b9fda3e14ed073684f25
[ "BSD-3-Clause" ]
null
null
null
metafilter/webserve.py
exhuma/metafilter
dfbc01877a3020f7fe58b9fda3e14ed073684f25
[ "BSD-3-Clause" ]
null
null
null
metafilter/webserve.py
exhuma/metafilter
dfbc01877a3020f7fe58b9fda3e14ed073684f25
[ "BSD-3-Clause" ]
null
null
null
from flask import ( Flask, g, render_template, request, redirect, make_response, url_for, jsonify) from metafilter.model import Node, Query, Session, Tag, set_dsn from metafilter.model import queries, nodes, tags as tag_model import logging LOG = logging....
27.172566
87
0.623351
786
6,141
4.746819
0.222646
0.029483
0.021442
0.026802
0.239346
0.217368
0.189493
0.176628
0.155186
0.155186
0
0.006101
0.226022
6,141
225
88
27.293333
0.778877
0
0
0.263736
0
0.005495
0.124272
0.043919
0
0
0
0
0
0
null
null
0
0.038462
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0eb3aca623ffde2ae3c05d9957849392b9e96e8e
577
py
Python
tests/test_reversion.py
moser/django-money
852353fdd4cc4e09fdb57b9bdcc735806545200c
[ "BSD-3-Clause" ]
null
null
null
tests/test_reversion.py
moser/django-money
852353fdd4cc4e09fdb57b9bdcc735806545200c
[ "BSD-3-Clause" ]
5
2019-07-23T19:45:57.000Z
2020-04-22T06:07:14.000Z
tests/test_reversion.py
moser/django-money
852353fdd4cc4e09fdb57b9bdcc735806545200c
[ "BSD-3-Clause" ]
1
2020-12-28T21:40:03.000Z
2020-12-28T21:40:03.000Z
import pytest from reversion.models import Version from reversion.revisions import create_revision from djmoney.money import Money from .testapp.models import RevisionedModel @pytest.mark.django_db def test_that_can_safely_restore_deleted_object(): amount = Money(100, "GHS") with create_revision(): ...
28.85
64
0.772964
70
577
6.228571
0.528571
0.059633
0.137615
0
0
0
0
0
0
0
0
0.010101
0.142114
577
19
65
30.368421
0.870707
0
0
0
0
0
0.005199
0
0
0
0
0
0.066667
1
0.066667
false
0
0.333333
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0eb5f5fc882f43b96ca7554f41680130a3eb0d43
60,338
py
Python
syntax/Rules.py
Rajneesh486Git/tpp-compiler
06d0e1f1daacdaed468c8c56f4c53e305d6b5bd6
[ "MIT" ]
1
2018-05-22T19:13:43.000Z
2018-05-22T19:13:43.000Z
syntax/Rules.py
Rajneesh486Git/tpp-compiler
06d0e1f1daacdaed468c8c56f4c53e305d6b5bd6
[ "MIT" ]
59
2018-03-19T03:38:22.000Z
2018-07-16T02:19:37.000Z
syntax/Rules.py
Rajneesh486Git/tpp-compiler
06d0e1f1daacdaed468c8c56f4c53e305d6b5bd6
[ "MIT" ]
1
2018-04-12T03:40:56.000Z
2018-04-12T03:40:56.000Z
# -*- coding: utf-8 -*- from lexical.structure.token.Token import token from lexical.structure.token.TokenType import TokenType from lexical.structure.token.TokenVal import TokenVal class syntax_rule(object): def __init__(self): self.errorFound = False def isNumber(self,token): number ...
36.06575
114
0.455567
4,332
60,338
6.317175
0.039705
0.082
0.089454
0.057297
0.677264
0.641051
0.633779
0.612877
0.598188
0.586348
0
0.016063
0.475853
60,338
1,673
115
36.06575
0.849238
0.000348
0
0.780015
0
0
0.011042
0
0
0
0
0
0
1
0.051454
false
0
0.002237
0.001491
0.281133
0.041014
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0ebdf01bdfb0a39f0cc30eda302755746f9613b3
168
py
Python
.history/database/controller_20220330130055.py
LynxPardelle/examen-python
cc308b5e01271c555d8692fb58250f11c4032266
[ "MIT" ]
null
null
null
.history/database/controller_20220330130055.py
LynxPardelle/examen-python
cc308b5e01271c555d8692fb58250f11c4032266
[ "MIT" ]
null
null
null
.history/database/controller_20220330130055.py
LynxPardelle/examen-python
cc308b5e01271c555d8692fb58250f11c4032266
[ "MIT" ]
null
null
null
import sqlite3 as sql DB_PATH = "dispositivo.db" def createDB(): conn = sql.connect(DB_PATH) conn.commit() conn.close() if __name__ == "__main__": createDB()
15.272727
29
0.684524
23
168
4.565217
0.695652
0.114286
0
0
0
0
0
0
0
0
0
0.007194
0.172619
168
11
30
15.272727
0.748201
0
0
0
0
0
0.130178
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0ec418cb9c9bac44eb60770f91d3b307557ff514
3,796
py
Python
tools/common-models/src/metrics/predictions.py
emotive-computing/mosaic_stress_2021
be4e0f2e0f0455d97cf6c9b5fd6dac60872d94c7
[ "MIT" ]
null
null
null
tools/common-models/src/metrics/predictions.py
emotive-computing/mosaic_stress_2021
be4e0f2e0f0455d97cf6c9b5fd6dac60872d94c7
[ "MIT" ]
null
null
null
tools/common-models/src/metrics/predictions.py
emotive-computing/mosaic_stress_2021
be4e0f2e0f0455d97cf6c9b5fd6dac60872d94c7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np from src.configuration.settings_template import Settings from src.io.read_data_input import Dataset from src.metrics.metrics import Metrics from src.metrics.output_columns import RunInfoOutputColumnNames, PROBABILITY_COLUMN_NAME_SUFFIX, \ PredictionsOutputColumnNames c...
48.666667
146
0.736301
447
3,796
5.970917
0.239374
0.043837
0.065942
0.082428
0.437242
0.391158
0.370176
0.370176
0.370176
0.370176
0
0.000978
0.192308
3,796
77
147
49.298701
0.869537
0.06823
0
0.283019
0
0
0
0
0
0
0
0
0
1
0.150943
false
0
0.09434
0.056604
0.509434
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
0ecd70096b2632b35f786c53a7ad11adab489151
728
py
Python
apps/staffs/migrations/0002_auto_20201124_0614.py
shravakushwaha/school_system
840f414a7a56b5d424695af811b621c18a1ec72a
[ "MIT" ]
235
2020-05-05T21:05:22.000Z
2022-03-27T07:41:51.000Z
apps/staffs/migrations/0002_auto_20201124_0614.py
shravakushwaha/school_system
840f414a7a56b5d424695af811b621c18a1ec72a
[ "MIT" ]
24
2020-05-05T21:44:40.000Z
2022-03-12T00:28:02.000Z
apps/staffs/migrations/0002_auto_20201124_0614.py
shravakushwaha/school_system
840f414a7a56b5d424695af811b621c18a1ec72a
[ "MIT" ]
133
2020-05-05T20:53:42.000Z
2022-03-30T00:34:56.000Z
# Generated by Django 3.0.8 on 2020-11-24 12:14 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("staffs", "0001_initial"), ] operations = [ migrations.AlterField( model_name="staff", ...
25.103448
81
0.493132
67
728
5.298507
0.776119
0.056338
0.112676
0
0
0
0
0
0
0
0
0.062069
0.402473
728
28
82
26
0.754023
0.061813
0
0.090909
1
0
0.140969
0
0
0
0
0
0
1
0
false
0
0.090909
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0ed3f4b64c58ffbddd49574f8e921861f3192490
1,576
py
Python
tests/python_client/common/milvus_sys.py
productinfo/milvus
83bf9c5efb942b4a90dc57d6ca57188d23260c47
[ "Apache-2.0" ]
null
null
null
tests/python_client/common/milvus_sys.py
productinfo/milvus
83bf9c5efb942b4a90dc57d6ca57188d23260c47
[ "Apache-2.0" ]
null
null
null
tests/python_client/common/milvus_sys.py
productinfo/milvus
83bf9c5efb942b4a90dc57d6ca57188d23260c47
[ "Apache-2.0" ]
null
null
null
import ujson from pymilvus.grpc_gen import milvus_pb2 as milvus_types from pymilvus import connections sys_info_req = ujson.dumps({"metric_type": "system_info"}) sys_statistics_req = ujson.dumps({"metric_type": "system_statistics"}) sys_logs_req = ujson.dumps({"metric_type": "system_logs"}) class MilvusSys: def ...
31.52
98
0.699239
185
1,576
5.697297
0.324324
0.062619
0.159393
0.170778
0.538899
0.427894
0.22296
0.22296
0.22296
0.22296
0
0.000804
0.21066
1,576
49
99
32.163265
0.846463
0
0
0.324324
0
0
0.076825
0
0
0
0
0
0
1
0.189189
false
0
0.081081
0
0.297297
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0ed4fa1af844558c1d7b26f32679d3fd781e284b
2,902
py
Python
modin/experimental/core/execution/ray/implementations/pyarrow_on_ray/partitioning/partition.py
jeffreykennethli/modin
d4dc204363e8f42ad14da69bba965f2d07d17d98
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/experimental/core/execution/ray/implementations/pyarrow_on_ray/partitioning/partition.py
jeffreykennethli/modin
d4dc204363e8f42ad14da69bba965f2d07d17d98
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/experimental/core/execution/ray/implementations/pyarrow_on_ray/partitioning/partition.py
jeffreykennethli/modin
d4dc204363e8f42ad14da69bba965f2d07d17d98
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Licensed to Modin Development Team under one or more contributor license agreements. # See the NOTICE file distributed with this work for additional information regarding # copyright ownership. The Modin Development Team licenses this file to you under the # Apache License, Version 2.0 (the "License"); you may not u...
35.390244
97
0.685389
357
2,902
5.535014
0.40056
0.048583
0.038462
0.022773
0.214575
0.189271
0.156883
0.156883
0.120445
0.120445
0
0.002711
0.237422
2,902
81
98
35.82716
0.890194
0.687802
0
0.2
0
0
0.0078
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0ed855f04c9193b43c28e0de64de8543be531824
779
py
Python
Aula55/controller/pessoa_controller.py
PabloSchumacher/TrabalhosPython
828edd35eb40442629211bc9f1477f75fb025d74
[ "bzip2-1.0.6", "MIT" ]
null
null
null
Aula55/controller/pessoa_controller.py
PabloSchumacher/TrabalhosPython
828edd35eb40442629211bc9f1477f75fb025d74
[ "bzip2-1.0.6", "MIT" ]
null
null
null
Aula55/controller/pessoa_controller.py
PabloSchumacher/TrabalhosPython
828edd35eb40442629211bc9f1477f75fb025d74
[ "bzip2-1.0.6", "MIT" ]
null
null
null
from flask import request import json from Aula55.controller.base_controller import BaseController from Aula55.dao.pessoa_dao import PessoaDao from Aula55.model.pessoa import Pessoa class PessoaController(BaseController): def __init__(self): super().__init__(PessoaDao()) def post(self): return...
31.16
63
0.688062
89
779
5.853933
0.337079
0.084453
0.080614
0
0
0
0
0
0
0
0
0.009756
0.210526
779
25
64
31.16
0.837398
0
0
0
0
0
0.051282
0
0
0
0
0
0
1
0.190476
false
0
0.238095
0.047619
0.619048
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
0edc35a5abec52e9768192f47909423c8b55ca16
561
py
Python
sunless_web/migrations/0060_auto_20181025_2306.py
bluedisk/SunlessSeaKo
1e6d498ff7e735b8d272dd0bca6c17741a2faedb
[ "MIT" ]
2
2019-02-19T11:53:29.000Z
2021-02-18T23:57:20.000Z
sunless_web/migrations/0060_auto_20181025_2306.py
bluedisk/SunlessSeaKo
1e6d498ff7e735b8d272dd0bca6c17741a2faedb
[ "MIT" ]
4
2018-05-26T13:18:27.000Z
2018-05-26T13:19:50.000Z
sunless_web/migrations/0060_auto_20181025_2306.py
bluedisk/SunlessSeaKo
1e6d498ff7e735b8d272dd0bca6c17741a2faedb
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2018-10-25 14:06 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sunless_web', '0059_auto_20181025_2303'), ] operations = [ migrations.AlterField( model_name='di...
28.05
115
0.620321
61
561
5.57377
0.688525
0.070588
0.082353
0.129412
0
0
0
0
0
0
0
0.07561
0.269162
561
19
116
29.526316
0.753659
0.080214
0
0
1
0
0.161479
0.089494
0
0
0
0
0
1
0
false
0
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0ee37cfd88b5d94d527c2b596a261d29ef5b6919
712
py
Python
driver/migrations/0002_place.py
rickmutua/booky-ride
dc5229a698a4f04e9263fed75cb3fdded4c4c2b1
[ "MIT" ]
null
null
null
driver/migrations/0002_place.py
rickmutua/booky-ride
dc5229a698a4f04e9263fed75cb3fdded4c4c2b1
[ "MIT" ]
8
2020-02-12T00:16:00.000Z
2021-12-13T19:46:33.000Z
driver/migrations/0002_place.py
rickmutua/booky-ride
dc5229a698a4f04e9263fed75cb3fdded4c4c2b1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-02 19:57 from __future__ import unicode_literals from django.db import migrations, models import geoposition.fields class Migration(migrations.Migration): dependencies = [ ('driver', '0001_initial'), ] operations = [ migrat...
28.48
114
0.613764
76
712
5.605263
0.723684
0.079812
0
0
0
0
0
0
0
0
0
0.049057
0.255618
712
24
115
29.666667
0.754717
0.095506
0
0
1
0
0.060842
0
0
0
0
0
0
1
0
false
0
0.176471
0
0.352941
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
0eee9a2f6a1d604dae41f0c1a3587c50d0ecee93
285
py
Python
tests/shglib/test_log_support.py
pbx/Mercurial
f941f6c634f2fbd724182b1f9c1cc75f431e54c7
[ "MIT" ]
12
2015-01-03T16:00:48.000Z
2020-02-02T19:52:56.000Z
tests/shglib/test_log_support.py
pbx/Mercurial
f941f6c634f2fbd724182b1f9c1cc75f431e54c7
[ "MIT" ]
2
2015-06-23T19:10:06.000Z
2016-02-17T23:36:40.000Z
tests/shglib/test_log_support.py
pbx/Mercurial
f941f6c634f2fbd724182b1f9c1cc75f431e54c7
[ "MIT" ]
6
2015-02-11T12:10:19.000Z
2020-09-30T02:34:06.000Z
from AAAPT.runner import TestsState from Mercurial.shglib.log_support import RevisionLogInfo import unittest import os import tempfile import datetime import time import shutil class Test_RevisionLogInfo(unittest.TestCase): def testCanInit(self): self.assertTrue(False)
19
56
0.814035
35
285
6.571429
0.685714
0
0
0
0
0
0
0
0
0
0
0
0.140351
285
14
57
20.357143
0.938776
0
0
0
0
0
0
0
0
0
0
0
0.090909
1
0.090909
false
0
0.727273
0
0.909091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0ef1704f6fed68bf686a9bd1780c2a275f0700a4
176
py
Python
Others/cpsco/cpsco2019-s2/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
Others/cpsco/cpsco2019-s2/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
Others/cpsco/cpsco2019-s2/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- def main(): m, n = map(int, input().split()) unit = m // n print(m - (unit * (n - 1))) if __name__ == '__main__': main()
14.666667
37
0.426136
23
176
2.913043
0.695652
0.059701
0
0
0
0
0
0
0
0
0
0.017241
0.340909
176
11
38
16
0.560345
0.119318
0
0
0
0
0.056338
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.166667
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0ef6e4911788b3d73952e8880a728310a6c7d45c
593
py
Python
13/test_dict_convert.py
alehpineda/bitesofpy
bfd319a606cd0b7b9bfb85a3e8942872a2d43c48
[ "MIT" ]
null
null
null
13/test_dict_convert.py
alehpineda/bitesofpy
bfd319a606cd0b7b9bfb85a3e8942872a2d43c48
[ "MIT" ]
2
2020-09-24T11:25:29.000Z
2021-06-25T15:43:35.000Z
13/test_dict_convert.py
alehpineda/bitesofpy
bfd319a606cd0b7b9bfb85a3e8942872a2d43c48
[ "MIT" ]
null
null
null
import json from dict_convert import blog, dict2nt, nt2json nt = dict2nt(blog) def test_dict2nt(): assert nt.name == "PyBites" assert nt.founders[1] == "Bob" assert nt.tags[2] == "Learn by Doing" assert nt.started.year == 2016 assert nt.__class__.__base__ == tuple assert hasattr(nt, "_asdic...
21.962963
47
0.630691
78
593
4.641026
0.5
0.110497
0.093923
0
0
0
0
0
0
0
0
0.040685
0.212479
593
26
48
22.807692
0.734475
0
0
0
0
0
0.129848
0
0
0
0
0
0.611111
1
0.111111
false
0
0.111111
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0ef7df1c621eb181fdf994b1cffa798843bc8703
6,916
py
Python
Code/Components/Synthesis/testdata/current/simulation/stdtest/definitions/locations.py
rtobar/askapsoft
6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e
[ "BSL-1.0", "Apache-2.0", "OpenSSL" ]
1
2020-06-18T08:37:43.000Z
2020-06-18T08:37:43.000Z
Code/Components/Synthesis/testdata/current/simulation/stdtest/definitions/locations.py
ATNF/askapsoft
d839c052d5c62ad8a511e58cd4b6548491a6006f
[ "BSL-1.0", "Apache-2.0", "OpenSSL" ]
null
null
null
Code/Components/Synthesis/testdata/current/simulation/stdtest/definitions/locations.py
ATNF/askapsoft
d839c052d5c62ad8a511e58cd4b6548491a6006f
[ "BSL-1.0", "Apache-2.0", "OpenSSL" ]
null
null
null
#! /usr/bin/env python import math import csv import sys import os import string # Ellipsoid model constants (actual values here are for WGS84) sm_a = 6378137.0 invf = 298.257223563 UTMScaleFactor = 0.9996 f = 1.0 / invf sm_b = sm_a * (1.0 - f) Deg2Rad = math.pi / 180.0 Rad2Deg = 180.0 / math.pi # # UTMCentralMeri...
28.816667
145
0.617843
1,130
6,916
3.745133
0.253982
0.006616
0.016541
0.026465
0.260161
0.231333
0.20794
0.177221
0.103497
0.103497
0
0.090512
0.239589
6,916
239
146
28.937238
0.714204
0.460816
0
0.096774
0
0.010753
0.02379
0
0
0
0
0
0
0
null
null
0
0.053763
null
null
0.010753
0
0
0
null
0
0
0
0
0
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
0ef81292e580129d637ebdbf99f4feacb6470fc2
340
py
Python
AWAE/trunk/migrations/0003_alter_eyekey_order_with_respect_to.py
icynewyear/airwaves-angeleyes
beca3f8720f5aff1928f1615701775dfae2f94e4
[ "MIT" ]
null
null
null
AWAE/trunk/migrations/0003_alter_eyekey_order_with_respect_to.py
icynewyear/airwaves-angeleyes
beca3f8720f5aff1928f1615701775dfae2f94e4
[ "MIT" ]
null
null
null
AWAE/trunk/migrations/0003_alter_eyekey_order_with_respect_to.py
icynewyear/airwaves-angeleyes
beca3f8720f5aff1928f1615701775dfae2f94e4
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-07-24 03:08 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('trunk', '0002_eyekey_trunk'), ] operations = [ migrations.AlterOrderWithRespectTo( name='eyekey', order_with_respect_to='trunk...
18.888889
45
0.608824
35
340
5.771429
0.8
0
0
0
0
0
0
0
0
0
0
0.074074
0.285294
340
17
46
20
0.757202
0.126471
0
0
1
0
0.111864
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0ef8b0787188412adae8929689131051832a4a69
3,163
py
Python
lib/sensor/hdc1080/hdc1080.py
diescalo/xbee-micropython-test
14a4b04f2ceaa5d9515dab12f1a8e033576509a6
[ "MIT" ]
1
2019-04-17T16:37:15.000Z
2019-04-17T16:37:15.000Z
lib/sensor/hdc1080/hdc1080.py
diescalo/xbee-micropython-test
14a4b04f2ceaa5d9515dab12f1a8e033576509a6
[ "MIT" ]
null
null
null
lib/sensor/hdc1080/hdc1080.py
diescalo/xbee-micropython-test
14a4b04f2ceaa5d9515dab12f1a8e033576509a6
[ "MIT" ]
null
null
null
# Driver for the Texas Instruments HDC1080 temperature and humidity sensor # Communication is done over I2C from micropython import const from machine import I2C from time import sleep # device register values that can be written to (do not write to others) # used to specify location (pointer) to read from/write to T...
43.328767
102
0.654442
439
3,163
4.656036
0.373576
0.031311
0.053816
0.023483
0.289139
0.225049
0.186888
0.186888
0.186888
0.14775
0
0.046983
0.266519
3,163
72
103
43.930556
0.834052
0.501423
0
0.146341
0
0
0.028398
0
0
0
0.021636
0.013889
0.02439
1
0.073171
false
0
0.073171
0
0.219512
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
0efc8ea157a54db9e8d88db6a7487cc145ad1de6
536
py
Python
var/spack/repos/builtin/packages/perl-class-load/package.py
whitfin/spack
aabd2be31a511d0e00c1017f7311a421659319d9
[ "ECL-2.0", "Apache-2.0", "MIT" ]
3
2019-06-27T13:26:50.000Z
2019-07-01T16:24:54.000Z
var/spack/repos/builtin/packages/perl-class-load/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
75
2016-07-27T11:43:00.000Z
2020-12-08T15:56:53.000Z
var/spack/repos/builtin/packages/perl-class-load/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
8
2015-10-16T13:51:49.000Z
2021-10-18T13:58:03.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PerlClassLoad(PerlPackage): """A working (require "Class::Name") and more""" homepage...
33.5
89
0.718284
77
536
5
0.74026
0.07013
0.072727
0.088312
0.088312
0
0
0
0
0
0
0.073434
0.136194
536
15
90
35.733333
0.758099
0.432836
0
0
0
0.4
0.579661
0.108475
0
0
0
0
0
1
0
false
0
0.2
0
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
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0efdc53015cb7fb0f64b15c759036883e3d578ec
8,956
py
Python
proplot/crs.py
zmoon92/proplot
2c6f7af8a044567bb9409d3f67d844bac05c7d14
[ "MIT" ]
1
2021-03-30T00:34:11.000Z
2021-03-30T00:34:11.000Z
proplot/crs.py
zmoon92/proplot
2c6f7af8a044567bb9409d3f67d844bac05c7d14
[ "MIT" ]
null
null
null
proplot/crs.py
zmoon92/proplot
2c6f7af8a044567bb9409d3f67d844bac05c7d14
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ New cartopy projection classes. """ import warnings from .internals import ic # noqa: F401 from .internals import docstring try: from cartopy.crs import _WarpedRectangularProjection from cartopy.crs import AzimuthalEquidistant, Gnomonic, LambertAzimuthalEqualArea from cartopy.c...
27.813665
85
0.620255
897
8,956
5.93311
0.138239
0.093198
0.052612
0.041338
0.732995
0.695791
0.659714
0.659714
0.659714
0.644682
0
0.012888
0.280929
8,956
321
86
27.900312
0.813509
0.123604
0
0.649746
0
0
0.132807
0.020547
0
0
0
0
0
1
0.071066
false
0
0.071066
0
0.233503
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
0efdc77324280660cda7336ef8a0bf8fe0d6fa00
1,367
py
Python
python/ray/workflow/dag_to_workflow.py
yuanchi2807/ray
cf512254bb4bcd71ff1818dff5c868ab10c5f620
[ "Apache-2.0" ]
1
2022-03-28T06:18:30.000Z
2022-03-28T06:18:30.000Z
python/ray/workflow/dag_to_workflow.py
yuanchi2807/ray
cf512254bb4bcd71ff1818dff5c868ab10c5f620
[ "Apache-2.0" ]
null
null
null
python/ray/workflow/dag_to_workflow.py
yuanchi2807/ray
cf512254bb4bcd71ff1818dff5c868ab10c5f620
[ "Apache-2.0" ]
null
null
null
from typing import Any from ray import workflow from ray.experimental.dag import DAGNode, FunctionNode, InputNode from ray.experimental.dag.input_node import InputAtrributeNode, DAGInputData def transform_ray_dag_to_workflow(dag_node: DAGNode, input_context: DAGInputData): """ Transform a Ray DAG to a workf...
40.205882
88
0.711778
176
1,367
5.369318
0.346591
0.037037
0.050794
0.046561
0
0
0
0
0
0
0
0
0.219459
1,367
33
89
41.424242
0.885661
0.237747
0
0
0
0
0.085317
0
0
0
0
0
0
1
0.105263
false
0
0.210526
0
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
16009c5dd5659340c3a2f1fa45c0c56d39654f26
6,800
py
Python
handedness/c2_ukb_analysisPheno.py
Conxz/brainskew
5b7ec6642f3f7440f201c3ac2005733e56cc0d71
[ "MIT" ]
null
null
null
handedness/c2_ukb_analysisPheno.py
Conxz/brainskew
5b7ec6642f3f7440f201c3ac2005733e56cc0d71
[ "MIT" ]
null
null
null
handedness/c2_ukb_analysisPheno.py
Conxz/brainskew
5b7ec6642f3f7440f201c3ac2005733e56cc0d71
[ "MIT" ]
null
null
null
# import pandas as pd import numpy as np import os import statsmodels.api as sm from scipy.stats import pearsonr, bartlett, levene data_file = './ukb_pheno_T1pos.csv' dat = pd.read_csv(data_file) print 'Handedness: 1=right, 2=left' print dat[dat['Handedness']==1]['Handedness'].count() print dat[dat['Handedness']==2]['...
37.569061
108
0.626618
1,007
6,800
4.066534
0.205561
0.08547
0.075214
0.044444
0.547253
0.515263
0.436386
0.408547
0.36044
0.36044
0
0.036633
0.165
6,800
180
109
37.777778
0.684572
0.138088
0
0.276786
0
0
0.187996
0.021865
0
0
0
0
0
0
null
null
0
0.044643
null
null
0.1875
0
0
0
null
0
0
0
0
0
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
160312ef44f52df95fb1d755426fe65b37502791
369
py
Python
home/migrations/0010_auto_20180522_1436.py
marcanuy/keraban
c9824a65cc3e6f54f3b68ba272fe556ccded0a11
[ "MIT" ]
4
2020-04-20T05:35:17.000Z
2020-11-27T13:52:49.000Z
home/migrations/0010_auto_20180522_1436.py
marcanuy/keraban
c9824a65cc3e6f54f3b68ba272fe556ccded0a11
[ "MIT" ]
12
2018-05-22T14:04:21.000Z
2022-03-11T23:20:57.000Z
home/migrations/0010_auto_20180522_1436.py
marcanuy/keraban
c9824a65cc3e6f54f3b68ba272fe556ccded0a11
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-05-22 14:36 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('home', '0009_auto_20180522_1409'), ] operations = [ migrations.AlterModelOptions( name='contactnumbers', options={'verbose_n...
20.5
62
0.617886
38
369
5.868421
0.868421
0
0
0
0
0
0
0
0
0
0
0.114815
0.268293
369
17
63
21.705882
0.711111
0.121951
0
0
1
0
0.229814
0.071429
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1608a6ceeb841697d7b3d4a35b64073558864391
3,824
py
Python
orchestra/contrib/mailboxes/serializers.py
RubenPX/django-orchestra
5ab4779e1ae12ec99569d682601b7810587ed381
[ "Unlicense" ]
null
null
null
orchestra/contrib/mailboxes/serializers.py
RubenPX/django-orchestra
5ab4779e1ae12ec99569d682601b7810587ed381
[ "Unlicense" ]
null
null
null
orchestra/contrib/mailboxes/serializers.py
RubenPX/django-orchestra
5ab4779e1ae12ec99569d682601b7810587ed381
[ "Unlicense" ]
null
null
null
from django.db import transaction from rest_framework import serializers from orchestra.api.serializers import SetPasswordHyperlinkedSerializer, RelatedHyperlinkedModelSerializer from orchestra.contrib.accounts.serializers import AccountSerializerMixin from .models import Mailbox, Address class RelatedDomainSeriali...
35.407407
106
0.6909
357
3,824
7.29972
0.27451
0.059862
0.032233
0.034536
0.437068
0.290867
0.261704
0.207598
0.117421
0.085188
0
0.000977
0.196914
3,824
107
107
35.738318
0.847607
0.054132
0
0.486842
0
0
0.097561
0
0
0
0
0
0
1
0.092105
false
0.092105
0.065789
0
0.473684
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
1611d25b0d813307a96f8c9eba89990a65faccb9
731
py
Python
cnns/nnlib/test/numba/numba_vectorized.py
adam-dziedzic/time-series-ml
81aaa27f1dd9ea3d7d62b661dac40cac6c1ef77a
[ "Apache-2.0" ]
1
2018-03-25T13:19:46.000Z
2018-03-25T13:19:46.000Z
cnns/nnlib/test/numba/numba_vectorized.py
adam-dziedzic/time-series-ml
81aaa27f1dd9ea3d7d62b661dac40cac6c1ef77a
[ "Apache-2.0" ]
null
null
null
cnns/nnlib/test/numba/numba_vectorized.py
adam-dziedzic/time-series-ml
81aaa27f1dd9ea3d7d62b661dac40cac6c1ef77a
[ "Apache-2.0" ]
null
null
null
import numpy as np from timeit import default_timer as timer """ Timing: 7.19 sec c first 5 elements: [0.69906056 0.959825 0.8178963 0.9870413 0.7213005 ] c last 5 elements: [0.83658946 0.71512336 0.6924522 0.694939 0.8647377 ] duration: 7.187152965925634 """ def pow(a, b): return a ** b def main():...
19.756757
77
0.625171
115
731
3.86087
0.452174
0.081081
0.031532
0.067568
0.166667
0
0
0
0
0
0
0.221034
0.232558
731
36
78
20.305556
0.57041
0.019152
0
0
0
0
0.112648
0
0
0
0
0
0
1
0.117647
false
0
0.117647
0.058824
0.294118
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
16174c4f9ae01828d09befa0f3dd75c150a7c696
538
py
Python
home/migrations/0012_sitesettings_allowed_emails.py
praekeltfoundation/ge-web
331d22554dfd6b6f6060b1fd7a110f38dd7ddece
[ "BSD-2-Clause" ]
1
2022-03-09T15:11:52.000Z
2022-03-09T15:11:52.000Z
home/migrations/0012_sitesettings_allowed_emails.py
praekeltfoundation/ge-web
331d22554dfd6b6f6060b1fd7a110f38dd7ddece
[ "BSD-2-Clause" ]
14
2022-01-03T09:49:41.000Z
2022-03-31T12:53:31.000Z
home/migrations/0012_sitesettings_allowed_emails.py
praekeltfoundation/ge-web
331d22554dfd6b6f6060b1fd7a110f38dd7ddece
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 4.0.3 on 2022-05-11 13:47 import wagtail.core.blocks import wagtail.core.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('home', '0011_sitesettings_comment_posting_and_more'), ] operations = [ migrations.AddField( ...
25.619048
128
0.663569
61
538
5.721311
0.721311
0.126075
0.097421
0
0
0
0
0
0
0
0
0.045131
0.217472
538
20
129
26.9
0.783848
0.083643
0
0
1
0
0.173116
0.08554
0
0
0
0
0
1
0
false
0
0.214286
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1618d9086b3416b92be7bb10987797e2b0c0309a
644
py
Python
src/settings/local.py
u93/image-dataset-augmentation
99bd667afa60ab8543d61f9b09f1da2bee23b87f
[ "MIT" ]
null
null
null
src/settings/local.py
u93/image-dataset-augmentation
99bd667afa60ab8543d61f9b09f1da2bee23b87f
[ "MIT" ]
null
null
null
src/settings/local.py
u93/image-dataset-augmentation
99bd667afa60ab8543d61f9b09f1da2bee23b87f
[ "MIT" ]
null
null
null
import os LOCAL_SOURCE_IMAGE_DIRECTORY = os.environ.get("LOCAL_SOURCE_IMAGE_DIRECTORY", "./images/source") LOCAL_DESTINATION_IMAGE_DIRECTORY = os.environ.get("LOCAL_DESTINATION_IMAGE_DIRECTORY", "./images/destination") LOCAL_IMAGE_INPUT_SOURCE = os.environ.get("LOCAL_IMAGE_INPUT_SOURCE", "thumbs_image.jpg") LOCAL_IM...
49.538462
111
0.824534
93
644
5.225806
0.258065
0.111111
0.148148
0.209877
0.358025
0.26749
0.139918
0
0
0
0
0.006547
0.051242
644
12
112
53.666667
0.788871
0
0
0
0
0
0.428571
0.326087
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
161a9ad3ec94e4fff61f805a701dba30182c8c13
9,189
py
Python
ambari-agent/src/main/python/ambari_agent/ActionQueue.py
cglewis/ambari
e5d7e08e42baea2ad15784400c6f9e7ebb5f1608
[ "Apache-2.0" ]
null
null
null
ambari-agent/src/main/python/ambari_agent/ActionQueue.py
cglewis/ambari
e5d7e08e42baea2ad15784400c6f9e7ebb5f1608
[ "Apache-2.0" ]
null
null
null
ambari-agent/src/main/python/ambari_agent/ActionQueue.py
cglewis/ambari
e5d7e08e42baea2ad15784400c6f9e7ebb5f1608
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2.6 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "Licens...
36.464286
143
0.638372
904
9,189
6.439159
0.29646
0.054114
0.007731
0.010308
0.07284
0.062189
0.038825
0.017866
0.017866
0.017866
0
0.002328
0.252149
9,189
251
144
36.609562
0.844732
0.03798
0
0.179487
0
0
0.145582
0
0
0
0
0
0
0
null
null
0.015385
0.107692
null
null
0.041026
0
0
0
null
0
0
0
0
0
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
1624cdaf9d3cc5c4d283a39710c008e5ae091c1d
1,733
py
Python
create_graphs/risk_factors.py
setavenger/Asset_Management_Project
9192ed9f76c774c5cc59bc33f08086a959ce2eff
[ "MIT" ]
1
2020-12-07T11:55:18.000Z
2020-12-07T11:55:18.000Z
create_graphs/risk_factors.py
setavenger/Asset_Management_Project
9192ed9f76c774c5cc59bc33f08086a959ce2eff
[ "MIT" ]
null
null
null
create_graphs/risk_factors.py
setavenger/Asset_Management_Project
9192ed9f76c774c5cc59bc33f08086a959ce2eff
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt import datetime import seaborn as sns from matplotlib.colors import ListedColormap import numpy as np df = pd.read_excel('data/R1_5_results_only.xlsx') rc = {'figure.figsize': (10, 5), 'axes.facecolor': 'white', 'axes.grid': True...
31.509091
86
0.710329
267
1,733
4.490637
0.456929
0.045872
0.032527
0.052544
0.169308
0.100917
0.063386
0.063386
0.063386
0.063386
0
0.050492
0.120023
1,733
54
87
32.092593
0.735738
0.143681
0
0
0
0
0.298103
0.056911
0
0
0
0.018519
0
1
0
false
0
0.212121
0
0.212121
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1