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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4c3e29e2ae1ab7be40f9cfea714aae230e6e4e54 | 2,146 | py | Python | Back-End/Python/timers/clock_named_tuple.py | ASHISHKUMAR2411/Programming-CookBook | 9c60655d64d21985ccb4196360858d98344701f9 | [
"MIT"
] | 25 | 2021-04-28T02:51:26.000Z | 2022-03-24T13:58:04.000Z | Back-End/Python/timers/clock_named_tuple.py | ASHISHKUMAR2411/Programming-CookBook | 9c60655d64d21985ccb4196360858d98344701f9 | [
"MIT"
] | 1 | 2022-03-03T23:33:41.000Z | 2022-03-03T23:35:41.000Z | Back-End/Python/timers/clock_named_tuple.py | ASHISHKUMAR2411/Programming-CookBook | 9c60655d64d21985ccb4196360858d98344701f9 | [
"MIT"
] | 15 | 2021-05-30T01:35:20.000Z | 2022-03-25T12:38:25.000Z | from collections import namedtuple
MainTimer = namedtuple('MainTimer', 'new_time_joined, end_period, new_weekday, days')
def add_time(start, duration, start_weekday=None):
weekdays = [
'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday',
'Saturday', 'Sunday'
]
start_time, period ... | 32.029851 | 102 | 0.592265 | 278 | 2,146 | 4.33813 | 0.316547 | 0.087065 | 0.043118 | 0.036484 | 0.074627 | 0.074627 | 0.074627 | 0.074627 | 0.074627 | 0 | 0 | 0.019342 | 0.27726 | 2,146 | 67 | 103 | 32.029851 | 0.758221 | 0.085275 | 0 | 0.136364 | 0 | 0 | 0.136944 | 0.022994 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.022727 | 0 | 0.159091 | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c4211ba5dbc8c290d97362485169fd20badaf8a | 816 | py | Python | stanford/sms-tools/lectures/02-DFT/plots-code/idft.py | phunc20/dsp | e7c496eb5fd4b8694eab0fc049cf98a5e3dfd886 | [
"MIT"
] | 1 | 2021-03-12T18:32:06.000Z | 2021-03-12T18:32:06.000Z | stanford/sms-tools/lectures/02-DFT/plots-code/idft.py | phunc20/dsp | e7c496eb5fd4b8694eab0fc049cf98a5e3dfd886 | [
"MIT"
] | null | null | null | stanford/sms-tools/lectures/02-DFT/plots-code/idft.py | phunc20/dsp | e7c496eb5fd4b8694eab0fc049cf98a5e3dfd886 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import sys
sys.path.append('../../../software/models/')
import dftModel as DFT
import math
k0 = 8.5
N = 64
w = np.ones(N)
x = np.cos(2*np.pi*k0/N*np.arange(-N/2,N/2))
mX, pX = DFT.dftAnal(x, w, N)
y = DFT.dftSynth(mX, pX, N)
plt.figure(1, figsize=(9.5, 5))
plt.subpl... | 23.314286 | 56 | 0.654412 | 170 | 816 | 3.135294 | 0.382353 | 0.022514 | 0.016886 | 0.022514 | 0.110694 | 0.090056 | 0 | 0 | 0 | 0 | 0 | 0.049519 | 0.109069 | 816 | 34 | 57 | 24 | 0.683631 | 0 | 0 | 0 | 0 | 0 | 0.167892 | 0.030637 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.178571 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c449a22ce009dfff20f9f81e80e2e5aae88a200 | 3,200 | py | Python | 2021-02-03/2.py | Elfenreigen/MCM-2021-C-SJTU-Test | 98e3b14dbe7bb0ab4a76245d14e4691050704ac9 | [
"MIT"
] | 1 | 2022-01-24T11:59:40.000Z | 2022-01-24T11:59:40.000Z | 2021-02-03/2.py | Elfenreigen/MCM-2021-C-SJTU-Test | 98e3b14dbe7bb0ab4a76245d14e4691050704ac9 | [
"MIT"
] | null | null | null | 2021-02-03/2.py | Elfenreigen/MCM-2021-C-SJTU-Test | 98e3b14dbe7bb0ab4a76245d14e4691050704ac9 | [
"MIT"
] | null | null | null | #####Time Flow Simulation######
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from datetime import timedelta
import datetime
import csv
data=pd.read_excel('CF66-all.xlsx')
data.sort_values(by=['WBL_AUD_DT'],ascending=True,inplace=True)
or_data=pd.read_excel('CF66-ordinary.xlsx')
rul... | 27.118644 | 121 | 0.62375 | 567 | 3,200 | 3.349206 | 0.190476 | 0.039494 | 0.056872 | 0.075303 | 0.3802 | 0.290153 | 0.220642 | 0.184308 | 0.184308 | 0.184308 | 0 | 0.037961 | 0.160313 | 3,200 | 117 | 122 | 27.350427 | 0.668776 | 0.00625 | 0 | 0.123596 | 0 | 0 | 0.14941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.067416 | 0 | 0.067416 | 0.101124 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c497bbd6391fbc0eaad2b9548fcee8c07a53d5e | 2,348 | py | Python | samples/cmk/test.py | jasstionzyf/Mask_RCNN | 971a9dd9be1f9716e6f7c23b959bd57079cd93eb | [
"MIT"
] | null | null | null | samples/cmk/test.py | jasstionzyf/Mask_RCNN | 971a9dd9be1f9716e6f7c23b959bd57079cd93eb | [
"MIT"
] | null | null | null | samples/cmk/test.py | jasstionzyf/Mask_RCNN | 971a9dd9be1f9716e6f7c23b959bd57079cd93eb | [
"MIT"
] | null | null | null |
import os
import sys
import json
import datetime
import numpy as np
import glob
import skimage
from PIL import Image as pil_image
import cv2
import cv2
def locationToMask(locations=None,height=None,width=None):
mask = np.zeros([height, width, len(locations)],
dtype=np.uint8)
for ... | 18.488189 | 77 | 0.559199 | 294 | 2,348 | 4.408163 | 0.377551 | 0.03858 | 0.037037 | 0.026235 | 0.049383 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025862 | 0.308348 | 2,348 | 126 | 78 | 18.634921 | 0.772167 | 0.117121 | 0 | 0.037736 | 0 | 0 | 0.036479 | 0.023833 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.188679 | 0 | 0.245283 | 0.075472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c49c1d6c63daaf7fca0ba56abe4608634b5eea3 | 371 | py | Python | myBeautifulSoup.py | ZhongXinWang/python | 4cf3ecdc9d9e811e777c6d8408a8319097cfdec3 | [
"Apache-2.0"
] | null | null | null | myBeautifulSoup.py | ZhongXinWang/python | 4cf3ecdc9d9e811e777c6d8408a8319097cfdec3 | [
"Apache-2.0"
] | null | null | null | myBeautifulSoup.py | ZhongXinWang/python | 4cf3ecdc9d9e811e777c6d8408a8319097cfdec3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#Author:Winston.Wang
import requests
from bs4 import BeautifulSoup
print(dir(BeautifulSoup))
url = 'http://www.baidu.com';
with requests.get(url) as r:
r.encoding='utf-8'
soup = BeautifulSoup(r.text)
#格式化
pret = soup.prettify();
u = soup.select('#u1 a')
for i in u:
... | 24.733333 | 52 | 0.660377 | 61 | 371 | 4.016393 | 0.721311 | 0.032653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01548 | 0.12938 | 371 | 15 | 52 | 24.733333 | 0.743034 | 0.175202 | 0 | 0 | 0 | 0 | 0.148515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
4c4aaf6acc32d2b6cfe7656b0adf41a02eba514c | 869 | py | Python | blogsNewsModule/urls.py | adityakekare/NewsAPIDjango | 47ff0c69e3d48c10a257c8221916ccd2fdaf9abb | [
"MIT"
] | 1 | 2020-10-14T17:13:45.000Z | 2020-10-14T17:13:45.000Z | blogsNewsModule/urls.py | adityakekare/NewsAPIDjango | 47ff0c69e3d48c10a257c8221916ccd2fdaf9abb | [
"MIT"
] | null | null | null | blogsNewsModule/urls.py | adityakekare/NewsAPIDjango | 47ff0c69e3d48c10a257c8221916ccd2fdaf9abb | [
"MIT"
] | null | null | null | from django.urls import path, include
from . import views
urlpatterns = [
path("", views.newsView, name="home"),
path("createBlog", views.CreateBlogView.as_view(), name="createBlog"),
path("myBlogs", views.PostListView.as_view(), name="myBlogs"),
path("single/<int:pk>", views.PostDetailView.as_view(), ... | 41.380952 | 75 | 0.667434 | 109 | 869 | 5.238532 | 0.366972 | 0.084063 | 0.087566 | 0.045534 | 0.063047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130035 | 869 | 21 | 76 | 41.380952 | 0.755291 | 0.025316 | 0 | 0 | 0 | 0 | 0.219858 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c4ab4331dee2d296afdfa6d9310db62fe1c4c93 | 3,133 | py | Python | unitClass.py | MatthewZheng/UnitsPlease | 5911267b5a0a78dd4d833c6be46e89caaf98c200 | [
"MIT"
] | null | null | null | unitClass.py | MatthewZheng/UnitsPlease | 5911267b5a0a78dd4d833c6be46e89caaf98c200 | [
"MIT"
] | null | null | null | unitClass.py | MatthewZheng/UnitsPlease | 5911267b5a0a78dd4d833c6be46e89caaf98c200 | [
"MIT"
] | null | null | null | #!/usr/bin/python
_author_ = "Matthew Zheng"
_purpose_ = "Sets up the unit class"
class Unit:
'''This is a class of lists'''
def __init__(self):
self.baseUnits = ["m", "kg", "A", "s", "K", "mol", "cd", "sr", "rad"]
self.derivedUnits = ["Hz", "N", "Pa", "J", "W", "C", "V", "F", "ohm", "S", "Wb",... | 42.917808 | 192 | 0.509416 | 372 | 3,133 | 4.271505 | 0.365591 | 0.022026 | 0.0472 | 0.045312 | 0.273128 | 0.237885 | 0.237885 | 0.192574 | 0.192574 | 0.139711 | 0 | 0.002052 | 0.377913 | 3,133 | 72 | 193 | 43.513889 | 0.812724 | 0.151931 | 0 | 0.177778 | 0 | 0.066667 | 0.168501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0 | 0 | 0.066667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c4da9a43e106d41a3befb2cd7c5b3dab87492dd | 274 | py | Python | conans/server/server_launcher.py | Wonders11/conan | 28ec09f6cbf1d7e27ec27393fd7bbc74891e74a8 | [
"MIT"
] | 6,205 | 2015-12-01T13:40:05.000Z | 2022-03-31T07:30:25.000Z | conans/server/server_launcher.py | Wonders11/conan | 28ec09f6cbf1d7e27ec27393fd7bbc74891e74a8 | [
"MIT"
] | 8,747 | 2015-12-01T16:28:48.000Z | 2022-03-31T23:34:53.000Z | conans/server/server_launcher.py | Mattlk13/conan | 005fc53485557b0a570bb71670f2ca9c66082165 | [
"MIT"
] | 961 | 2015-12-01T16:56:43.000Z | 2022-03-31T13:50:52.000Z | from conans.server.launcher import ServerLauncher
from conans.util.env_reader import get_env
launcher = ServerLauncher(server_dir=get_env("CONAN_SERVER_HOME"))
app = launcher.server.root_app
def main(*args):
launcher.launch()
if __name__ == "__main__":
main()
| 18.266667 | 66 | 0.762774 | 37 | 274 | 5.243243 | 0.567568 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131387 | 274 | 14 | 67 | 19.571429 | 0.815126 | 0 | 0 | 0 | 0 | 0 | 0.091241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c4dd7e5ec767d2a5876ed8c611d8ac4661dfd09 | 153,586 | py | Python | sdk/videoanalyzer/azure-mgmt-videoanalyzer/azure/mgmt/videoanalyzer/models/_models.py | praveenkuttappan/azure-sdk-for-python | 4b79413667b7539750a6c7dde15737013a3d4bd5 | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/videoanalyzer/azure-mgmt-videoanalyzer/azure/mgmt/videoanalyzer/models/_models.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/videoanalyzer/azure-mgmt-videoanalyzer/azure/mgmt/videoanalyzer/models/_models.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 38.473447 | 815 | 0.658563 | 17,602 | 153,586 | 5.62527 | 0.061982 | 0.023542 | 0.026672 | 0.017856 | 0.674487 | 0.640088 | 0.612739 | 0.57317 | 0.558122 | 0.548942 | 0 | 0.002714 | 0.222566 | 153,586 | 3,991 | 816 | 38.483087 | 0.826545 | 0.497591 | 0 | 0.619886 | 0 | 0 | 0.27065 | 0.063819 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053858 | false | 0.003625 | 0.001036 | 0 | 0.209736 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c4fedd0e6fc912cf1a282846b6e90c655a094c7 | 69,123 | py | Python | blender/arm/material/cycles.py | philipmduarte/armory | 675211c66a1e49147226ccb472a6f5dc87b7db02 | [
"Zlib"
] | 1 | 2021-03-17T05:51:45.000Z | 2021-03-17T05:51:45.000Z | blender/arm/material/cycles.py | philipmduarte/armory | 675211c66a1e49147226ccb472a6f5dc87b7db02 | [
"Zlib"
] | null | null | null | blender/arm/material/cycles.py | philipmduarte/armory | 675211c66a1e49147226ccb472a6f5dc87b7db02 | [
"Zlib"
] | null | null | null | #
# This module builds upon Cycles nodes work licensed as
# Copyright 2011-2013 Blender 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... | 39.207601 | 185 | 0.567568 | 9,286 | 69,123 | 4.049968 | 0.081305 | 0.053978 | 0.061822 | 0.039353 | 0.619443 | 0.539965 | 0.481733 | 0.437806 | 0.397043 | 0.379786 | 0 | 0.048285 | 0.283017 | 69,123 | 1,762 | 186 | 39.229852 | 0.710553 | 0.081521 | 0 | 0.48317 | 0 | 0.023843 | 0.146301 | 0.003589 | 0 | 0 | 0 | 0.000568 | 0 | 1 | 0.031557 | false | 0.003506 | 0.007013 | 0.01122 | 0.181627 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c4ffee559cb6b71ce9c01f453a956254f1cdb8a | 9,981 | py | Python | src/config.py | Jizanator/botty | 3026de0d4c03f4e797ed92dedb8fdfdf9cf1462e | [
"MIT"
] | null | null | null | src/config.py | Jizanator/botty | 3026de0d4c03f4e797ed92dedb8fdfdf9cf1462e | [
"MIT"
] | null | null | null | src/config.py | Jizanator/botty | 3026de0d4c03f4e797ed92dedb8fdfdf9cf1462e | [
"MIT"
] | null | null | null | import configparser
import numpy as np
import os
class Config:
def _select_val(self, section: str, key: str = None):
if section in self._custom and key in self._custom[section]:
return self._custom[section][key]
elif section in self._config:
return self._config[se... | 55.45 | 164 | 0.616772 | 1,230 | 9,981 | 4.631707 | 0.173984 | 0.123223 | 0.175707 | 0.128313 | 0.371424 | 0.309286 | 0.223451 | 0.056521 | 0.031596 | 0.031596 | 0 | 0.002484 | 0.233644 | 9,981 | 179 | 165 | 55.759777 | 0.742319 | 0.023545 | 0 | 0 | 0 | 0 | 0.295576 | 0.028867 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013158 | false | 0 | 0.019737 | 0 | 0.072368 | 0.046053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c50b18cade6c81fd3dffac9c31804d4407603cf | 19,446 | py | Python | aps/transform/utils.py | haoxiangsnr/aps | 38f77139b54553b0cb04b26a833bebbbf3177c5e | [
"Apache-2.0"
] | 2 | 2021-06-17T20:29:02.000Z | 2021-09-18T01:56:36.000Z | aps/transform/utils.py | haoxiangsnr/aps | 38f77139b54553b0cb04b26a833bebbbf3177c5e | [
"Apache-2.0"
] | null | null | null | aps/transform/utils.py | haoxiangsnr/aps | 38f77139b54553b0cb04b26a833bebbbf3177c5e | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Jian Wu
# License: Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
import math
import numpy as np
import torch as th
import torch.nn as nn
import torch.nn.functional as tf
import librosa.filters as filters
from aps.const import EPSILON
from typing import Optional, Union, Tuple
def init_win... | 34.849462 | 121 | 0.538671 | 2,492 | 19,446 | 4.085474 | 0.135634 | 0.02986 | 0.01768 | 0.022984 | 0.406443 | 0.356547 | 0.313132 | 0.29781 | 0.259994 | 0.222179 | 0 | 0.01631 | 0.353646 | 19,446 | 557 | 122 | 34.912029 | 0.793699 | 0.270236 | 0 | 0.294833 | 0 | 0 | 0.063127 | 0.009135 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051672 | false | 0 | 0.024316 | 0.006079 | 0.136778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c517119112a50b7dbf0616dc32615e3180ecafa | 3,427 | py | Python | applications/tensorflow/cnns/models/resnet.py | xihuaiwen/chinese_bert | 631afbc76c40b0ac033be2186e717885246f446c | [
"MIT"
] | null | null | null | applications/tensorflow/cnns/models/resnet.py | xihuaiwen/chinese_bert | 631afbc76c40b0ac033be2186e717885246f446c | [
"MIT"
] | null | null | null | applications/tensorflow/cnns/models/resnet.py | xihuaiwen/chinese_bert | 631afbc76c40b0ac033be2186e717885246f446c | [
"MIT"
] | null | null | null | # Copyright 2019 Graphcore Ltd.
from models.resnet_base import ResNet
import tensorflow.compat.v1 as tf
import tensorflow.contrib as contrib
from tensorflow.python.ipu import normalization_ops
# This is all written for: NHWC
class TensorflowResNet(ResNet):
def __init__(self, *args, **kwargs):
self.dtype... | 38.505618 | 101 | 0.569594 | 438 | 3,427 | 4.287671 | 0.280822 | 0.01065 | 0.011182 | 0.01065 | 0.194356 | 0.181576 | 0.107561 | 0.107561 | 0.052183 | 0 | 0 | 0.022015 | 0.310767 | 3,427 | 88 | 102 | 38.943182 | 0.773074 | 0.030055 | 0 | 0.144928 | 0 | 0 | 0.016265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144928 | false | 0 | 0.057971 | 0.043478 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c551d5c25c26d348d1738fdb22529ee094e17ed | 8,942 | py | Python | rawcdf_extract.py | bedaro/ssm-analysis | 09880dbfa5733d6301b84accc8f42a5ee320d698 | [
"MIT"
] | null | null | null | rawcdf_extract.py | bedaro/ssm-analysis | 09880dbfa5733d6301b84accc8f42a5ee320d698 | [
"MIT"
] | null | null | null | rawcdf_extract.py | bedaro/ssm-analysis | 09880dbfa5733d6301b84accc8f42a5ee320d698 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import time
import os
import tempfile
import shutil
import logging
from enum import Enum
from argparse import ArgumentParser, Namespace, FileType
from netCDF4 import Dataset, MFDataset
import geopandas as gpd
import numpy as np
domain_nodes_shp = "gis/ssm domain nodes.shp"
masked_nodes_txt = "g... | 40.461538 | 117 | 0.64225 | 1,177 | 8,942 | 4.75616 | 0.268479 | 0.024116 | 0.027331 | 0.017864 | 0.086995 | 0.060915 | 0.051268 | 0.036084 | 0.022508 | 0.022508 | 0 | 0.020574 | 0.228137 | 8,942 | 220 | 118 | 40.645455 | 0.790496 | 0.113509 | 0 | 0.103448 | 0 | 0.005747 | 0.146184 | 0.002784 | 0 | 0 | 0 | 0.004545 | 0 | 1 | 0.051724 | false | 0 | 0.057471 | 0.005747 | 0.155172 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c55bbb06ea35dd59d573da6a8f782da8c81fbf2 | 3,548 | py | Python | tutorial/43.py | mssung94/daishin-trading-system | d6682495afb7a08e68db65537b1d1789f2996891 | [
"MIT"
] | 2 | 2020-11-21T08:45:26.000Z | 2020-11-21T08:50:56.000Z | tutorial/43.py | mssung94/daishin-trading-system | d6682495afb7a08e68db65537b1d1789f2996891 | [
"MIT"
] | null | null | null | tutorial/43.py | mssung94/daishin-trading-system | d6682495afb7a08e68db65537b1d1789f2996891 | [
"MIT"
] | null | null | null | # 대신증권 API
# 데이터 요청 방법 2가지 BlockRequest 와 Request 방식 비교 예제
# 플러스 API 에서 데이터를 요청하는 방법은 크게 2가지가 있습니다
#
# BlockRequest 방식 - 가장 간단하게 데이터 요청해서 수신 가능
# Request 호출 후 Received 이벤트로 수신 받기
#
# 아래는 위 2가지를 비교할 수 있도록 만든 예제 코드입니다
# 일반적인 데이터 요청에는 BlockRequest 방식이 가장 간단합니다
# 다만, BlockRequest 함수 내에서도 동일 하게 메시지펌핑을 하고 있어 해당 ... | 31.39823 | 84 | 0.590755 | 421 | 3,548 | 4.931116 | 0.546318 | 0.026975 | 0.023121 | 0.021195 | 0.174374 | 0.11368 | 0.11368 | 0.11368 | 0.11368 | 0.11368 | 0 | 0.026528 | 0.266911 | 3,548 | 112 | 85 | 31.678571 | 0.771626 | 0.273675 | 0 | 0.289855 | 0 | 0 | 0.106586 | 0.032062 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072464 | false | 0.014493 | 0.057971 | 0 | 0.188406 | 0.15942 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c56a26b957f0f1d768b5949bae27c075bbc9817 | 10,280 | py | Python | datasets/tao/tao.py | Nik-V9/AirObject | 5937e64531f08449e81d2c90e3c6643727efbaf0 | [
"BSD-3-Clause"
] | 9 | 2022-03-15T17:28:48.000Z | 2022-03-29T12:32:28.000Z | datasets/tao/tao.py | Nik-V9/AirObject | 5937e64531f08449e81d2c90e3c6643727efbaf0 | [
"BSD-3-Clause"
] | 1 | 2022-03-29T06:03:14.000Z | 2022-03-29T13:38:29.000Z | datasets/tao/tao.py | Nik-V9/AirObject | 5937e64531f08449e81d2c90e3c6643727efbaf0 | [
"BSD-3-Clause"
] | 1 | 2022-03-15T19:34:06.000Z | 2022-03-15T19:34:06.000Z | from __future__ import print_function
import sys
sys.path.append('.')
import os
from typing import Optional, Union
import cv2
import numpy as np
import PIL.Image as Image
import pickle
import torch
from torch.utils import data
__all__ = ["TAO"]
class TAO(data.Dataset):
r"""A torch Dataset for loading in `the TA... | 41.788618 | 135 | 0.569163 | 1,280 | 10,280 | 4.541406 | 0.204688 | 0.032685 | 0.030965 | 0.012042 | 0.190263 | 0.112678 | 0.096508 | 0.084122 | 0.060382 | 0 | 0 | 0.010438 | 0.328988 | 10,280 | 246 | 136 | 41.788618 | 0.817918 | 0.307685 | 0 | 0.095541 | 0 | 0.006369 | 0.084711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019108 | false | 0 | 0.063694 | 0 | 0.101911 | 0.006369 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c59684045a1dab8436432732a93183e33f7d39d | 3,853 | py | Python | augmentation/ISDA.py | RichardScottOZ/sota-data-augmentation-and-optimizers | 60128ca762ac2864a3b54c43c36d1d5aa2033e5a | [
"MIT"
] | 31 | 2020-01-14T20:03:31.000Z | 2022-01-07T08:02:09.000Z | augmentation/ISDA.py | RichardScottOZ/sota-data-augmentation-and-optimizers | 60128ca762ac2864a3b54c43c36d1d5aa2033e5a | [
"MIT"
] | null | null | null | augmentation/ISDA.py | RichardScottOZ/sota-data-augmentation-and-optimizers | 60128ca762ac2864a3b54c43c36d1d5aa2033e5a | [
"MIT"
] | 6 | 2020-03-04T09:31:45.000Z | 2021-11-21T18:47:15.000Z | import torch
import torch.nn as nn
class EstimatorCV():
def __init__(self, feature_num, class_num):
super(EstimatorCV, self).__init__()
self.class_num = class_num
self.CoVariance = torch.zeros(class_num, feature_num, feature_num)#.cuda()
self.Ave = torch.zeros(class_num, feature_nu... | 29.868217 | 104 | 0.536465 | 528 | 3,853 | 3.683712 | 0.145833 | 0.013368 | 0.024679 | 0.023136 | 0.294602 | 0.255013 | 0.172751 | 0.137789 | 0.086375 | 0.086375 | 0 | 0.021028 | 0.333506 | 3,853 | 128 | 105 | 30.101563 | 0.736371 | 0.058137 | 0 | 0.120482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060241 | false | 0 | 0.024096 | 0 | 0.13253 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c59cbad1a1c628d8be0abf3472039d2b0fe36c6 | 22,828 | py | Python | netpyne/plotting/plotter.py | sanjayankur31/netpyne | d8b7e94cabeb27e23e30853ff17ae86518b35ac2 | [
"MIT"
] | null | null | null | netpyne/plotting/plotter.py | sanjayankur31/netpyne | d8b7e94cabeb27e23e30853ff17ae86518b35ac2 | [
"MIT"
] | null | null | null | netpyne/plotting/plotter.py | sanjayankur31/netpyne | d8b7e94cabeb27e23e30853ff17ae86518b35ac2 | [
"MIT"
] | null | null | null | """
Module for plotting analyses
"""
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
from copy import deepcopy
import pickle, json
import os
from matplotlib.offsetbox import AnchoredOffsetbox
try:
basestring
except NameError:
basestring = str
colorList = [[0.42, 0.67, 0.84], [0.... | 34.535552 | 376 | 0.56987 | 2,724 | 22,828 | 4.728708 | 0.168502 | 0.032063 | 0.010092 | 0.014906 | 0.231892 | 0.180731 | 0.134462 | 0.11482 | 0.110318 | 0.110318 | 0 | 0.013848 | 0.307254 | 22,828 | 660 | 377 | 34.587879 | 0.800683 | 0.114027 | 0 | 0.22488 | 0 | 0 | 0.063341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064593 | false | 0 | 0.033493 | 0 | 0.138756 | 0.002392 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c5b215bf00e243da89ca4e94c55e9e94a7ff44a | 9,885 | py | Python | tests/test_app_settings_dict.py | wheelercj/app_settings | 06224dec0b5baf1eeb92e5a81ca4e8385d4942a6 | [
"MIT"
] | null | null | null | tests/test_app_settings_dict.py | wheelercj/app_settings | 06224dec0b5baf1eeb92e5a81ca4e8385d4942a6 | [
"MIT"
] | null | null | null | tests/test_app_settings_dict.py | wheelercj/app_settings | 06224dec0b5baf1eeb92e5a81ca4e8385d4942a6 | [
"MIT"
] | null | null | null | import pytest
import re
from typing import Any, Tuple
from dataclasses import dataclass
from app_settings_dict import Settings
def test_simple_settings() -> None:
settings = Settings(
settings_file_path="C:/Users/chris/Documents/sample_settings_file_name.json",
default_factories={
"key... | 27.84507 | 86 | 0.527466 | 996 | 9,885 | 5.048193 | 0.128514 | 0.136436 | 0.060859 | 0.066826 | 0.65354 | 0.565434 | 0.542562 | 0.520286 | 0.471559 | 0.43218 | 0 | 0.026588 | 0.315124 | 9,885 | 354 | 87 | 27.923729 | 0.7161 | 0.006474 | 0 | 0.512579 | 0 | 0 | 0.185781 | 0.029741 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.056604 | false | 0 | 0.015723 | 0.006289 | 0.08805 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c5b696f9bc64bbbc8bda141e564e9a8de0891a8 | 5,910 | py | Python | demo/demo_FSANET_ssd.py | jacke121/FSA-Net | c4d60bd38e9d17b0ea33d824ec443a01bdeba015 | [
"Apache-2.0"
] | null | null | null | demo/demo_FSANET_ssd.py | jacke121/FSA-Net | c4d60bd38e9d17b0ea33d824ec443a01bdeba015 | [
"Apache-2.0"
] | null | null | null | demo/demo_FSANET_ssd.py | jacke121/FSA-Net | c4d60bd38e9d17b0ea33d824ec443a01bdeba015 | [
"Apache-2.0"
] | null | null | null | import os
import time
import cv2
import sys
sys.path.append('..')
import numpy as np
from math import cos, sin
from lib.FSANET_model import *
import numpy as np
from keras.layers import Average
def draw_axis(img, yaw, pitch, roll, tdx=None, tdy=None, size = 50):
print(yaw,roll,pitch)
pitch = pitch * np.pi /... | 34.16185 | 122 | 0.577496 | 879 | 5,910 | 3.691695 | 0.261661 | 0.034515 | 0.01849 | 0.020339 | 0.267488 | 0.255778 | 0.194145 | 0.180586 | 0.137134 | 0.105701 | 0 | 0.070907 | 0.281726 | 5,910 | 172 | 123 | 34.360465 | 0.693522 | 0.099831 | 0 | 0.034483 | 0 | 0 | 0.09362 | 0.059645 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025862 | false | 0 | 0.077586 | 0 | 0.12069 | 0.051724 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c5b93a68b2014eb34642b9dabeaf09a9053d01e | 5,118 | py | Python | examples/app_commands/slash_autocomplete.py | Mihitoko/pycord | 137c1474eed5fb4273e542bd22ad76764a8712fc | [
"MIT"
] | null | null | null | examples/app_commands/slash_autocomplete.py | Mihitoko/pycord | 137c1474eed5fb4273e542bd22ad76764a8712fc | [
"MIT"
] | null | null | null | examples/app_commands/slash_autocomplete.py | Mihitoko/pycord | 137c1474eed5fb4273e542bd22ad76764a8712fc | [
"MIT"
] | 1 | 2022-02-20T09:10:40.000Z | 2022-02-20T09:10:40.000Z | import discord
from discord.commands import option
bot = discord.Bot(debug_guilds=[...])
COLORS = ["red", "orange", "yellow", "green", "blue", "indigo", "violet"]
LOTS_OF_COLORS = [
"aliceblue",
"antiquewhite",
"aqua",
"aquamarine",
"azure",
"beige",
"bisque",
"blueviolet",
"brown... | 27.079365 | 112 | 0.657679 | 604 | 5,118 | 5.506623 | 0.384106 | 0.033073 | 0.035779 | 0.061034 | 0.291942 | 0.228803 | 0.180698 | 0.100421 | 0.069152 | 0.069152 | 0 | 0.000503 | 0.223329 | 5,118 | 188 | 113 | 27.223404 | 0.836226 | 0.05295 | 0 | 0.074627 | 0 | 0.007463 | 0.338261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014925 | 0 | 0.089552 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c5bad7796ac5e7201e5d6fb5312abee3b503a5c | 11,522 | py | Python | tools/Networking/sybil_block_no_ban.py | simewu/bitcoin_researcher | b9fd2efdb8ae8467c5bd4b3320713a541635df16 | [
"MIT"
] | 1 | 2020-02-15T21:44:04.000Z | 2020-02-15T21:44:04.000Z | tools/Networking/sybil_block_no_ban.py | SimeoW/bitcoin | 3644405f06c8b16a437513e8c02f0f061b91be2e | [
"MIT"
] | null | null | null | tools/Networking/sybil_block_no_ban.py | SimeoW/bitcoin | 3644405f06c8b16a437513e8c02f0f061b91be2e | [
"MIT"
] | null | null | null | from _thread import start_new_thread
from bitcoin.messages import *
from bitcoin.net import CAddress
from bitcoin.core import CBlock
from io import BytesIO as _BytesIO
import atexit
import bitcoin
import fcntl
import hashlib
import json
import os
import random
import re
import socket
import struct
import sys
import tim... | 34.497006 | 359 | 0.743881 | 1,684 | 11,522 | 4.9519 | 0.226247 | 0.04461 | 0.064756 | 0.083463 | 0.222449 | 0.153016 | 0.144142 | 0.131071 | 0.093896 | 0.093896 | 0 | 0.03019 | 0.137563 | 11,522 | 333 | 360 | 34.600601 | 0.808997 | 0.24553 | 0 | 0.118421 | 0 | 0.026316 | 0.278183 | 0.051906 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065789 | false | 0.013158 | 0.078947 | 0.008772 | 0.175439 | 0.122807 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c5c39c5c86dfe51c79bcbc35385263a0ba508a1 | 1,638 | py | Python | spider/db.py | aloneZERO/douban-movie-visualization | 8e59c4d0b00df1b240a5dce09093ae4984fd7118 | [
"WTFPL"
] | null | null | null | spider/db.py | aloneZERO/douban-movie-visualization | 8e59c4d0b00df1b240a5dce09093ae4984fd7118 | [
"WTFPL"
] | null | null | null | spider/db.py | aloneZERO/douban-movie-visualization | 8e59c4d0b00df1b240a5dce09093ae4984fd7118 | [
"WTFPL"
] | null | null | null | #!python3
'''
数据库操作类
author: justZero
email: alonezero@foxmail.com
date: 2017-8-6
'''
import time
import pandas as pd
import numpy as np
import pymysql
import pymysql.cursors
import pprint
class MySQLdb(object):
def __init__(self):
self.conn = pymysql.connect(
host='localho... | 25.2 | 156 | 0.566545 | 192 | 1,638 | 4.677083 | 0.489583 | 0.035635 | 0.046771 | 0.053452 | 0.122494 | 0.071269 | 0.071269 | 0.071269 | 0.016704 | 0.016704 | 0 | 0.010563 | 0.306471 | 1,638 | 64 | 157 | 25.59375 | 0.77993 | 0.058608 | 0 | 0.04878 | 0 | 0.04878 | 0.203135 | 0.148269 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0.02439 | 0.146341 | 0 | 0.292683 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c5d1777ffd1452788619a58c2a3c09a88985225 | 2,077 | py | Python | examples/rxff-serial/run.py | sctiwari/EZFF_ASE | 94710d4cf778ff2db5e6df0cd6d10d92e1b98afe | [
"MIT"
] | 3 | 2019-01-22T21:22:09.000Z | 2019-04-02T22:50:40.000Z | examples/rxff-serial/run.py | ElsevierSoftwareX/SOFTX-D-20-00066 | b43f8bbb1321d7ed3eeec4f8bb894fe431779433 | [
"MIT"
] | 14 | 2019-01-14T18:33:15.000Z | 2019-07-08T22:10:11.000Z | examples/rxff-serial/run.py | ElsevierSoftwareX/SOFTX-D-20-00066 | b43f8bbb1321d7ed3eeec4f8bb894fe431779433 | [
"MIT"
] | 3 | 2019-03-24T23:43:13.000Z | 2021-09-12T13:45:08.000Z | import ezff
from ezff.interfaces import gulp, qchem
# Define ground truths
gt_gs = qchem.read_structure('ground_truths/optCHOSx.out')
gt_gs_energy = qchem.read_energy('ground_truths/optCHOSx.out')
gt_scan = qchem.read_structure('ground_truths/scanCHOSx.out')
gt_scan_energy = qchem.read_energy('ground_truths/scanCHOSx.... | 37.763636 | 124 | 0.735676 | 306 | 2,077 | 4.70915 | 0.277778 | 0.030534 | 0.04372 | 0.029146 | 0.431645 | 0.353921 | 0.224844 | 0.224844 | 0.224844 | 0.163775 | 0 | 0.003452 | 0.163216 | 2,077 | 54 | 125 | 38.462963 | 0.825662 | 0.158883 | 0 | 0 | 0 | 0 | 0.121544 | 0.06106 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.055556 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c5db4db71b2cfe512dcdca6c87e641cb929544e | 2,288 | py | Python | dev_files/utils.py | dylanwal/unit_parse | 07a74d43b9f161bd7ad6ef12ab0f362f1bf6a90d | [
"BSD-3-Clause"
] | 1 | 2022-01-29T17:14:40.000Z | 2022-01-29T17:14:40.000Z | dev_files/utils.py | dylanwal/unit_parse | 07a74d43b9f161bd7ad6ef12ab0f362f1bf6a90d | [
"BSD-3-Clause"
] | null | null | null | dev_files/utils.py | dylanwal/unit_parse | 07a74d43b9f161bd7ad6ef12ab0f362f1bf6a90d | [
"BSD-3-Clause"
] | null | null | null | import logging
from testing_func import testing_func, test_logger
from unit_parse import logger, Unit, Q
from unit_parse.utils import *
test_logger.setLevel(logging.DEBUG)
logger.setLevel(logging.DEBUG)
test_split_list = [
# positive control (changes)
[["fish","pig", "cow"], ["f", "is", "h", "pig", "cow"], ... | 27.566265 | 89 | 0.542832 | 270 | 2,288 | 4.425926 | 0.259259 | 0.085356 | 0.097908 | 0.090377 | 0.366527 | 0.210879 | 0.210879 | 0.105439 | 0.037657 | 0.037657 | 0 | 0.106553 | 0.179633 | 2,288 | 82 | 90 | 27.902439 | 0.530101 | 0.111014 | 0 | 0.037037 | 0 | 0 | 0.167244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.074074 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c5f21108bc3014442b8b88f1279054fc89706f5 | 5,302 | py | Python | freqtrade/strategy/informative_decorator.py | Fractate/freqbot | 47b35d2320dc97977411454c1466c762d339fdee | [
"MIT"
] | 1 | 2022-03-06T22:44:30.000Z | 2022-03-06T22:44:30.000Z | freqtrade/strategy/informative_decorator.py | Fractate/freqbot | 47b35d2320dc97977411454c1466c762d339fdee | [
"MIT"
] | null | null | null | freqtrade/strategy/informative_decorator.py | Fractate/freqbot | 47b35d2320dc97977411454c1466c762d339fdee | [
"MIT"
] | 1 | 2021-09-22T23:28:21.000Z | 2021-09-22T23:28:21.000Z | from typing import Any, Callable, NamedTuple, Optional, Union
from pandas import DataFrame
from freqtrade.exceptions import OperationalException
from freqtrade.strategy.strategy_helper import merge_informative_pair
PopulateIndicators = Callable[[Any, DataFrame, dict], DataFrame]
class InformativeData(NamedTuple):... | 41.100775 | 100 | 0.656733 | 597 | 5,302 | 5.708543 | 0.273032 | 0.024648 | 0.017606 | 0.01115 | 0.090376 | 0.037559 | 0.02054 | 0.02054 | 0 | 0 | 0 | 0.001009 | 0.252546 | 5,302 | 128 | 101 | 41.421875 | 0.858945 | 0.375707 | 0 | 0.042254 | 0 | 0 | 0.078898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056338 | false | 0 | 0.056338 | 0.014085 | 0.239437 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c60db4ddf2f272ea38921358d511b5e55303545 | 835 | py | Python | codigo_das_aulas/aula_09/aula_09_03.py | VeirichR/curso-python-selenium | 9b9107a64adb4e6bcf10c76287e0b4cc7d024321 | [
"CC0-1.0"
] | 234 | 2020-04-03T02:59:30.000Z | 2022-03-27T15:29:21.000Z | codigo_das_aulas/aula_09/aula_09_03.py | VeirichR/curso-python-selenium | 9b9107a64adb4e6bcf10c76287e0b4cc7d024321 | [
"CC0-1.0"
] | 8 | 2020-04-20T11:20:43.000Z | 2021-08-18T16:41:15.000Z | codigo_das_aulas/aula_09/aula_09_03.py | VeirichR/curso-python-selenium | 9b9107a64adb4e6bcf10c76287e0b4cc7d024321 | [
"CC0-1.0"
] | 77 | 2020-04-03T13:25:19.000Z | 2022-02-24T15:31:26.000Z | from functools import partial
from selenium.webdriver import Firefox
from selenium.webdriver.support.ui import (
WebDriverWait
)
def esperar_elemento(elemento, webdriver):
print(f'Tentando encontrar "{elemento}"')
if webdriver.find_elements_by_css_selector(elemento):
return True
return False
... | 21.973684 | 58 | 0.762874 | 105 | 835 | 5.866667 | 0.52381 | 0.073052 | 0.063312 | 0.061688 | 0.097403 | 0.097403 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.132934 | 835 | 37 | 59 | 22.567568 | 0.845304 | 0 | 0 | 0 | 0 | 0 | 0.205988 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.041667 | false | 0 | 0.125 | 0 | 0.25 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c6108b6c6b2c6296484cdaaf51540f0a9efca44 | 1,470 | py | Python | prae/losses.py | irom-lab/RL_Generalization | 82add6898ee2e962a3aa5efedf80821a013eae7f | [
"MIT"
] | 24 | 2020-06-30T11:43:38.000Z | 2021-11-15T22:58:47.000Z | prae/losses.py | irom-lab/RL_Generalization | 82add6898ee2e962a3aa5efedf80821a013eae7f | [
"MIT"
] | null | null | null | prae/losses.py | irom-lab/RL_Generalization | 82add6898ee2e962a3aa5efedf80821a013eae7f | [
"MIT"
] | 4 | 2020-10-15T10:54:18.000Z | 2021-05-25T07:38:14.000Z | import torch
from torch import nn
from prae.distances import square_dist, HingedSquaredEuclidean
class Loss(nn.Module):
"""
"""
def __init__(self, hinge, neg=True, rew=True):
"""
"""
super().__init__()
self.reward_loss = square_dist
# If False, no negative sampling
... | 24.098361 | 86 | 0.586395 | 191 | 1,470 | 4.287958 | 0.314136 | 0.08547 | 0.014652 | 0.014652 | 0.078144 | 0.078144 | 0 | 0 | 0 | 0 | 0 | 0.007775 | 0.3 | 1,470 | 60 | 87 | 24.5 | 0.788144 | 0.065306 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.09375 | 0 | 0.34375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c6289a028d756ccd03ac220d11a9d33117ee573 | 6,530 | py | Python | djcorsche/settings_default.py | carthage-college/django-djcorsche | c43db6e634f5b3fc9c8b0cff80ced8382ca6643c | [
"BSD-3-Clause"
] | null | null | null | djcorsche/settings_default.py | carthage-college/django-djcorsche | c43db6e634f5b3fc9c8b0cff80ced8382ca6643c | [
"BSD-3-Clause"
] | null | null | null | djcorsche/settings_default.py | carthage-college/django-djcorsche | c43db6e634f5b3fc9c8b0cff80ced8382ca6643c | [
"BSD-3-Clause"
] | null | null | null | """
Django settings for project.
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
# Debug
#DEBUG = False
DEBUG = True
TEMPLATE_DEBUG = DEBUG
INFORMIX_DEBUG = "debug"
ADMINS = (
('', ''),
)
MANAGERS = ADMINS
SECRET_KEY = ''
ALLOWED_HOSTS = []
LANGUAGE_CODE = 'en-us'
TIME_ZONE... | 27.552743 | 96 | 0.620214 | 653 | 6,530 | 5.984686 | 0.381317 | 0.059877 | 0.013306 | 0.01305 | 0.07216 | 0.038383 | 0.010747 | 0.010747 | 0.010747 | 0 | 0 | 0.011021 | 0.221899 | 6,530 | 236 | 97 | 27.669492 | 0.758118 | 0.118989 | 0 | 0.084577 | 0 | 0.00995 | 0.426075 | 0.252884 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.014925 | 0.004975 | 0 | 0.004975 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c63d036bfd0e51ade860a3521aecee117e88f7d | 7,064 | py | Python | tests/test_users.py | fastapi-users/fastapi-users-db-sqlmodel | 3a46b80399f129aa07a834a1b40bf49d08c37be1 | [
"MIT"
] | 18 | 2021-09-09T09:35:30.000Z | 2022-03-19T04:58:17.000Z | tests/test_users.py | fastapi-users/fastapi-users-db-sqlmodel | 3a46b80399f129aa07a834a1b40bf49d08c37be1 | [
"MIT"
] | null | null | null | tests/test_users.py | fastapi-users/fastapi-users-db-sqlmodel | 3a46b80399f129aa07a834a1b40bf49d08c37be1 | [
"MIT"
] | 3 | 2021-11-01T16:58:54.000Z | 2022-02-15T16:17:11.000Z | import uuid
from typing import AsyncGenerator
import pytest
from sqlalchemy import exc
from sqlalchemy.ext.asyncio import AsyncSession, create_async_engine
from sqlalchemy.orm import sessionmaker
from sqlmodel import Session, SQLModel, create_engine
from fastapi_users_db_sqlmodel import (
NotSetOAuthAccountTableE... | 30.982456 | 88 | 0.709513 | 920 | 7,064 | 5.191304 | 0.147826 | 0.059045 | 0.085008 | 0.079564 | 0.630653 | 0.573283 | 0.536432 | 0.484296 | 0.45959 | 0.44263 | 0 | 0.006196 | 0.200311 | 7,064 | 227 | 89 | 31.118943 | 0.839264 | 0.03171 | 0 | 0.445714 | 0 | 0 | 0.071481 | 0.029538 | 0 | 0 | 0 | 0 | 0.165714 | 1 | 0 | false | 0.034286 | 0.051429 | 0 | 0.051429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c64a40785307d838c76dd7877d9296fa9590e81 | 623 | py | Python | copy_reg.py | rtbo/vkdgen | 04a228961bb091b59dc6f741eee703cd81724ca3 | [
"MIT"
] | 2 | 2021-01-08T15:05:27.000Z | 2021-10-12T08:44:01.000Z | copy_reg.py | rtbo/vkdgen | 04a228961bb091b59dc6f741eee703cd81724ca3 | [
"MIT"
] | null | null | null | copy_reg.py | rtbo/vkdgen | 04a228961bb091b59dc6f741eee703cd81724ca3 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
import os
from os import path
root_dir = path.dirname(path.realpath(__file__))
local_reg_dir = path.join(root_dir, 'registry')
os.makedirs(local_reg_dir, exist_ok=True)
def copy_reg(reg_dir, files):
import shutil
for f in files:
file_path = path.join(reg_dir, f)
if not... | 31.15 | 76 | 0.704655 | 99 | 623 | 4.191919 | 0.444444 | 0.072289 | 0.079518 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003846 | 0.165329 | 623 | 19 | 77 | 32.789474 | 0.794231 | 0.035313 | 0 | 0 | 0 | 0 | 0.153333 | 0.035 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c656802f3785c807e752895a2d07dd94b79c82b | 4,377 | py | Python | cloud/caasp-admin-setup/lib/caaspadminsetup/utils.py | hwoarang/caasp-container-manifests | 6df831d6b4f4218f96e552c416d86eabcfad46c0 | [
"Apache-2.0"
] | 5 | 2017-03-16T10:47:39.000Z | 2018-01-17T13:07:03.000Z | cloud/caasp-admin-setup/lib/caaspadminsetup/utils.py | hwoarang/caasp-container-manifests | 6df831d6b4f4218f96e552c416d86eabcfad46c0 | [
"Apache-2.0"
] | 138 | 2017-03-08T12:43:51.000Z | 2019-04-15T12:57:30.000Z | cloud/caasp-admin-setup/lib/caaspadminsetup/utils.py | hwoarang/caasp-container-manifests | 6df831d6b4f4218f96e552c416d86eabcfad46c0 | [
"Apache-2.0"
] | 26 | 2017-03-09T08:24:03.000Z | 2019-03-08T00:26:52.000Z | import json
import logging
import re
import susepubliccloudinfoclient.infoserverrequests as ifsrequest
import yaml
import sys
RELEASE_DATE = re.compile('^.*-v(\d{8})-*.*')
def get_caasp_release_version():
"""Return the version from os-release"""
os_release = open('/etc/os-release', 'r').readlines()
for e... | 37.732759 | 80 | 0.631026 | 557 | 4,377 | 4.807899 | 0.332136 | 0.036968 | 0.020911 | 0.01643 | 0.100822 | 0.100822 | 0.078417 | 0.056759 | 0.056759 | 0.056759 | 0 | 0.00158 | 0.276902 | 4,377 | 115 | 81 | 38.06087 | 0.84455 | 0.215216 | 0 | 0.085366 | 0 | 0 | 0.197705 | 0.032068 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060976 | false | 0 | 0.085366 | 0 | 0.243902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c6cd0ca287f397e656cbb934079a5d03bb867b9 | 2,786 | py | Python | jsfiddle_factory/__init__.py | andrewp-as-is/jsfiddle-factory.py | 7b8b883676f3330f5714b15157819b583a753ba1 | [
"Unlicense"
] | null | null | null | jsfiddle_factory/__init__.py | andrewp-as-is/jsfiddle-factory.py | 7b8b883676f3330f5714b15157819b583a753ba1 | [
"Unlicense"
] | null | null | null | jsfiddle_factory/__init__.py | andrewp-as-is/jsfiddle-factory.py | 7b8b883676f3330f5714b15157819b583a753ba1 | [
"Unlicense"
] | null | null | null | __all__ = ['Factory']
import jsfiddle_build
import jsfiddle_github
import jsfiddle_generator
import jsfiddle_readme_generator
import getdirs
import getfiles
import os
import popd
import yaml
@popd.popd
def _build(path):
os.chdir(path)
jsfiddle_build.Build().save("build.html")
@popd.popd
def _init(path):
... | 30.955556 | 98 | 0.578248 | 346 | 2,786 | 4.552023 | 0.245665 | 0.041905 | 0.017778 | 0.028571 | 0.280635 | 0.229841 | 0.229841 | 0.165079 | 0.165079 | 0.165079 | 0 | 0.001505 | 0.284637 | 2,786 | 89 | 99 | 31.303371 | 0.788761 | 0.031587 | 0 | 0.25 | 0 | 0 | 0.067236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.277778 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c6d7d5083c40236ec67c12d5db46eb9b81e4185 | 5,774 | py | Python | spellnn/train.py | MartinXPN/SpellNN | e3226fbff359ef60360e63bf7b80a7e1c909e7d8 | [
"MIT"
] | null | null | null | spellnn/train.py | MartinXPN/SpellNN | e3226fbff359ef60360e63bf7b80a7e1c909e7d8 | [
"MIT"
] | null | null | null | spellnn/train.py | MartinXPN/SpellNN | e3226fbff359ef60360e63bf7b80a7e1c909e7d8 | [
"MIT"
] | null | null | null | import logging
import os
from datetime import datetime
from inspect import signature, Parameter
from pathlib import Path
from pprint import pprint
from textwrap import dedent
from typing import Optional, Union
import fire
import tensorflow as tf
from tensorflow.keras.callbacks import EarlyStopping, ModelCheckpoint, Te... | 46.943089 | 118 | 0.662799 | 734 | 5,774 | 4.957766 | 0.262943 | 0.032152 | 0.057159 | 0.029678 | 0.251168 | 0.214894 | 0.185765 | 0.154438 | 0.108272 | 0.108272 | 0 | 0.010316 | 0.227745 | 5,774 | 122 | 119 | 47.327869 | 0.805786 | 0.003464 | 0 | 0.057143 | 0 | 0 | 0.08329 | 0.00939 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038095 | false | 0 | 0.171429 | 0 | 0.257143 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c72d8c0b48b4984dfd1c6e64ae6bd05f864f9ea | 1,273 | py | Python | pybb/middleware.py | grigi/pybbm | 9ecc5e7fadf4da820d2fc2c22914e14f3545047d | [
"BSD-2-Clause"
] | null | null | null | pybb/middleware.py | grigi/pybbm | 9ecc5e7fadf4da820d2fc2c22914e14f3545047d | [
"BSD-2-Clause"
] | null | null | null | pybb/middleware.py | grigi/pybbm | 9ecc5e7fadf4da820d2fc2c22914e14f3545047d | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from django.utils import translation
from django.db.models import ObjectDoesNotExist
from pybb import util
from pybb.signals import user_saved
class PybbMiddleware(object):
def process_request(self, request):
if request.user.is_authenticated():
try:
# ... | 37.441176 | 69 | 0.624509 | 138 | 1,273 | 5.65942 | 0.456522 | 0.115237 | 0.035851 | 0.046095 | 0.09219 | 0.09219 | 0.09219 | 0 | 0 | 0 | 0 | 0.001135 | 0.307934 | 1,273 | 33 | 70 | 38.575758 | 0.885358 | 0.189317 | 0 | 0.1 | 0 | 0 | 0.014634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c73a2fb986309ca0a2f6912149adaf74509a6fc | 716 | py | Python | day5.py | achien/advent-of-code-2021 | 8851e1727975ea8124db78b54fe577fbf2e5883d | [
"MIT"
] | null | null | null | day5.py | achien/advent-of-code-2021 | 8851e1727975ea8124db78b54fe577fbf2e5883d | [
"MIT"
] | null | null | null | day5.py | achien/advent-of-code-2021 | 8851e1727975ea8124db78b54fe577fbf2e5883d | [
"MIT"
] | null | null | null | import fileinput
counts = {}
for line in fileinput.input():
line = line.strip()
p1, p2 = line.split('>')
p1 = p1[:-2]
x1, y1 = p1.split(',')
x1 = int(x1)
y1 = int(y1)
p2 = p2[1:]
x2, y2 = p2.split(',')
x2 = int(x2)
y2 = int(y2)
if x1 == x2:
dx = 0
elif x1 > x2:... | 15.911111 | 42 | 0.391061 | 108 | 716 | 2.583333 | 0.333333 | 0.028674 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114796 | 0.452514 | 716 | 45 | 43 | 15.911111 | 0.596939 | 0 | 0 | 0.051282 | 0 | 0 | 0.004184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.025641 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c73c6bd43cad4b6997238ea62e6e2c529f20e54 | 1,635 | py | Python | meditation_example.py | sodapopinsky/dfk | be48e89d4b054ad8abbb009d0e1ea4c10f559af5 | [
"MIT"
] | 90 | 2021-10-17T19:36:45.000Z | 2022-03-31T17:19:43.000Z | meditation_example.py | sodapopinsky/dfk | be48e89d4b054ad8abbb009d0e1ea4c10f559af5 | [
"MIT"
] | 13 | 2021-11-13T00:19:31.000Z | 2022-03-20T15:13:22.000Z | meditation_example.py | sodapopinsky/dfk | be48e89d4b054ad8abbb009d0e1ea4c10f559af5 | [
"MIT"
] | 71 | 2021-11-05T03:00:41.000Z | 2022-03-30T06:16:25.000Z | import logging
from web3 import Web3
import sys
import time
import meditation.meditation as meditation
if __name__ == "__main__":
log_format = '%(asctime)s|%(name)s|%(levelname)s: %(message)s'
logger = logging.getLogger("DFK-meditation")
logger.setLevel(logging.DEBUG)
logging.basicConfig(level=loggin... | 41.923077 | 127 | 0.720489 | 193 | 1,635 | 5.818653 | 0.378238 | 0.072128 | 0.053428 | 0.033838 | 0.22618 | 0.22618 | 0.162066 | 0.162066 | 0.162066 | 0.162066 | 0 | 0.03286 | 0.18104 | 1,635 | 38 | 128 | 43.026316 | 0.805825 | 0.009174 | 0 | 0.066667 | 0 | 0 | 0.13791 | 0.047619 | 0 | 0 | 0.025974 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c76367fcd11568b786d20b9e43e17b970ff6e48 | 2,329 | py | Python | servers/python/coweb/bot/wrapper/object.py | opencoweb/coweb | 7b3a87ee9eda735a859447d404ee16edde1c5671 | [
"AFL-2.1"
] | 83 | 2015-01-05T19:02:57.000Z | 2021-11-19T02:48:09.000Z | servers/python/coweb/bot/wrapper/object.py | xuelingxiao/coweb | 7b3a87ee9eda735a859447d404ee16edde1c5671 | [
"AFL-2.1"
] | 3 | 2015-12-16T13:49:33.000Z | 2019-06-17T13:38:50.000Z | servers/python/coweb/bot/wrapper/object.py | xuelingxiao/coweb | 7b3a87ee9eda735a859447d404ee16edde1c5671 | [
"AFL-2.1"
] | 14 | 2015-04-29T22:36:53.000Z | 2021-11-18T03:24:29.000Z | '''
Copyright (c) The Dojo Foundation 2011. All Rights Reserved.
Copyright (c) IBM Corporation 2008, 2011. All Rights Reserved.
'''
# tornado
import tornado.ioloop
# std lib
import logging
import time
import weakref
import functools
# coweb
from .base import BotWrapperBase
log = logging.getLogger('coweb.bot')
class O... | 35.287879 | 78 | 0.653499 | 282 | 2,329 | 5.294326 | 0.411348 | 0.036839 | 0.048225 | 0.03215 | 0.046885 | 0.046885 | 0 | 0 | 0 | 0 | 0 | 0.006861 | 0.249034 | 2,329 | 65 | 79 | 35.830769 | 0.84677 | 0.278231 | 0 | 0.105263 | 0 | 0 | 0.011002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184211 | false | 0 | 0.157895 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c76baa8499aec4813a3d47e851bd3cbe62268bf | 6,193 | py | Python | battle_tut5.py | lankotiAditya/RPG_battle_main | 0063941d023ff1c18a6b050fab4d0c7ec583b11a | [
"MIT"
] | 22 | 2021-01-13T10:21:42.000Z | 2022-03-10T00:06:05.000Z | battle_tut5.py | lankotiAditya/RPG_battle_main | 0063941d023ff1c18a6b050fab4d0c7ec583b11a | [
"MIT"
] | 1 | 2021-01-14T17:02:41.000Z | 2021-01-14T20:23:38.000Z | battle_tut5.py | lankotiAditya/RPG_battle_main | 0063941d023ff1c18a6b050fab4d0c7ec583b11a | [
"MIT"
] | 33 | 2021-01-17T08:52:38.000Z | 2022-03-28T10:36:36.000Z | import pygame
import random
pygame.init()
clock = pygame.time.Clock()
fps = 60
#game window
bottom_panel = 150
screen_width = 800
screen_height = 400 + bottom_panel
screen = pygame.display.set_mode((screen_width, screen_height))
pygame.display.set_caption('Battle')
#define game variables
current_fighter = 1
total... | 23.911197 | 101 | 0.707089 | 947 | 6,193 | 4.476241 | 0.195354 | 0.012975 | 0.023119 | 0.032555 | 0.313281 | 0.248879 | 0.215145 | 0.181647 | 0.14343 | 0.122199 | 0 | 0.028878 | 0.172453 | 6,193 | 258 | 102 | 24.003876 | 0.798244 | 0.141773 | 0 | 0.295597 | 0 | 0 | 0.040212 | 0.016502 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062893 | false | 0 | 0.012579 | 0 | 0.08805 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c791be103564830f1d4250200840c0dccc964ac | 651 | py | Python | curso_em_video/0087a.py | marinaoliveira96/python-exercises | 13fc0ec30dec9bb6531cdeb41c80726971975835 | [
"MIT"
] | null | null | null | curso_em_video/0087a.py | marinaoliveira96/python-exercises | 13fc0ec30dec9bb6531cdeb41c80726971975835 | [
"MIT"
] | null | null | null | curso_em_video/0087a.py | marinaoliveira96/python-exercises | 13fc0ec30dec9bb6531cdeb41c80726971975835 | [
"MIT"
] | null | null | null | matriz = [[0, 0, 0], [0, 0, 0], [0, 0, 0]]
soma = col3 = maior = 0
for l in range(0, 3):
for c in range(0, 3):
matriz[l][c] = int(input(f'[{l}][{c}]: '))
for l in range(0, 3):
for c in range(0, 3):
print(f'[{matriz[l][c]:^5}]', end='')
if matriz[l][c] % 2 == 0:
soma += matriz... | 31 | 50 | 0.506912 | 126 | 651 | 2.619048 | 0.253968 | 0.048485 | 0.063636 | 0.072727 | 0.348485 | 0.263636 | 0.184848 | 0.184848 | 0.157576 | 0.157576 | 0 | 0.07431 | 0.276498 | 651 | 21 | 51 | 31 | 0.626327 | 0 | 0 | 0.380952 | 0 | 0 | 0.211656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.238095 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c79db5803090229f5cee46e595e5f692bd63c32 | 1,652 | py | Python | camd3/infrastructure/component/tests/test_uidattr.py | mamrhein/CAmD3 | d20f62295771a297c3fbb314beef314e5ec7a2b5 | [
"BSD-2-Clause"
] | null | null | null | camd3/infrastructure/component/tests/test_uidattr.py | mamrhein/CAmD3 | d20f62295771a297c3fbb314beef314e5ec7a2b5 | [
"BSD-2-Clause"
] | null | null | null | camd3/infrastructure/component/tests/test_uidattr.py | mamrhein/CAmD3 | d20f62295771a297c3fbb314beef314e5ec7a2b5 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ----------------------------------------------------------------------------
# Name: test_uidattr
# Purpose: Test driver for module 'uidattr'
#
# Author: Michael Amrhein (michael@adrhinum.de)
#
# Copyright: (c) 2018 Michael Amrhein
# -------------------... | 23.6 | 78 | 0.578087 | 166 | 1,652 | 5.518072 | 0.451807 | 0.027293 | 0.028384 | 0.041485 | 0.139738 | 0.082969 | 0.082969 | 0.082969 | 0.082969 | 0.082969 | 0 | 0.011792 | 0.230024 | 1,652 | 69 | 79 | 23.942029 | 0.708333 | 0.276634 | 0 | 0.121212 | 0 | 0 | 0.006809 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.181818 | false | 0 | 0.121212 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
4c7a9873c160d856f0a448855b2b79215e8191fc | 883 | py | Python | s.py | tn012604409/HW3_chatRobot | 97762e53bfccd8b30c6b263792919c679e53b404 | [
"MIT"
] | null | null | null | s.py | tn012604409/HW3_chatRobot | 97762e53bfccd8b30c6b263792919c679e53b404 | [
"MIT"
] | null | null | null | s.py | tn012604409/HW3_chatRobot | 97762e53bfccd8b30c6b263792919c679e53b404 | [
"MIT"
] | null | null | null | import requests
import time
from bs4 import BeautifulSoup
def get_web_page(url):
resp = requests.get(
url=url,
)
if resp.status_code != 200:
print('Invalid url:', resp.url)
return None
else:
return resp.text
def get_articles(dom):
soup = BeautifulSoup(dom, 'html.p... | 22.641026 | 76 | 0.551529 | 118 | 883 | 4.042373 | 0.5 | 0.025157 | 0.041929 | 0.046122 | 0.067086 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023102 | 0.313703 | 883 | 38 | 77 | 23.236842 | 0.764026 | 0.05889 | 0 | 0 | 0 | 0 | 0.127711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.103448 | 0 | 0.344828 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4c7abb53711251283db1d2b1869388b7608f3858 | 21,493 | py | Python | awstin/dynamodb/orm.py | k2bd/awstin | 7360cc20d3c72a6aa87de57146b9c5f4247c58d5 | [
"MIT"
] | 1 | 2020-12-29T20:49:27.000Z | 2020-12-29T20:49:27.000Z | awstin/dynamodb/orm.py | k2bd/awstin | 7360cc20d3c72a6aa87de57146b9c5f4247c58d5 | [
"MIT"
] | 69 | 2020-11-16T21:16:44.000Z | 2021-04-14T17:16:33.000Z | awstin/dynamodb/orm.py | k2bd/awstin | 7360cc20d3c72a6aa87de57146b9c5f4247c58d5 | [
"MIT"
] | null | null | null | import uuid
from abc import ABC, abstractmethod
from collections import defaultdict
from typing import Union
from boto3.dynamodb.conditions import Attr as BotoAttr
from boto3.dynamodb.conditions import Key as BotoKey
from awstin.dynamodb.utils import from_decimal, to_decimal
class NotSet:
"""
A value of an ... | 27.912987 | 88 | 0.579258 | 2,062 | 21,493 | 5.840446 | 0.126576 | 0.014946 | 0.019763 | 0.014116 | 0.39824 | 0.358299 | 0.316865 | 0.297351 | 0.28199 | 0.22702 | 0 | 0.000616 | 0.320476 | 21,493 | 769 | 89 | 27.949285 | 0.823964 | 0.18085 | 0 | 0.367788 | 0 | 0 | 0.127362 | 0.104586 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151442 | false | 0.002404 | 0.016827 | 0.033654 | 0.355769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5b22ea34f0bbc299fab73839184251258eecd69 | 310 | py | Python | Losses/__init__.py | SimonTheVillain/ActiveStereoNet | 708bddce844998b366be1a1ec8a72a31ccd26f8c | [
"MIT"
] | 17 | 2019-08-23T04:00:32.000Z | 2022-02-06T13:37:02.000Z | Losses/__init__.py | SimonTheVillain/ActiveStereoNet | 708bddce844998b366be1a1ec8a72a31ccd26f8c | [
"MIT"
] | null | null | null | Losses/__init__.py | SimonTheVillain/ActiveStereoNet | 708bddce844998b366be1a1ec8a72a31ccd26f8c | [
"MIT"
] | 7 | 2019-12-20T07:46:41.000Z | 2021-11-01T04:18:19.000Z | from .supervise import *
def get_losses(name, **kwargs):
name = name.lower()
if name == 'rhloss':
loss = RHLoss(**kwargs)
elif name == 'xtloss':
loss = XTLoss(**kwargs)
else:
raise NotImplementedError('Loss [{:s}] is not supported.'.format(name))
return loss
| 22.142857 | 79 | 0.580645 | 35 | 310 | 5.114286 | 0.657143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270968 | 310 | 13 | 80 | 23.846154 | 0.792035 | 0 | 0 | 0 | 0 | 0 | 0.132258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5b25fcda4db3927e0504a3caa222468f8e2eb7c | 6,766 | py | Python | model/src/recurrent.py | qkaren/converse_reading_cmr | d06d981be12930cff8458e2b1b81be4f5df3a329 | [
"MIT"
] | 87 | 2019-06-07T18:16:30.000Z | 2021-11-27T08:18:45.000Z | model/src/recurrent.py | qkaren/converse_reading_cmr | d06d981be12930cff8458e2b1b81be4f5df3a329 | [
"MIT"
] | 11 | 2019-06-19T20:53:27.000Z | 2021-05-07T01:05:01.000Z | model/src/recurrent.py | qkaren/converse_reading_cmr | d06d981be12930cff8458e2b1b81be4f5df3a329 | [
"MIT"
] | 17 | 2019-06-08T01:50:23.000Z | 2022-02-16T07:12:15.000Z | import torch
import torch.nn as nn
from torch.nn.parameter import Parameter
from torch.nn.utils.rnn import pad_packed_sequence as unpack
from torch.nn.utils.rnn import pack_padded_sequence as pack
from .my_optim import weight_norm as WN
# TODO: use system func to bind ~
RNN_MAP = {'lstm': nn.LSTM, 'gru': nn.GR... | 45.716216 | 134 | 0.619125 | 927 | 6,766 | 4.307443 | 0.160734 | 0.027548 | 0.032056 | 0.0288 | 0.593539 | 0.522915 | 0.465064 | 0.454545 | 0.454545 | 0.441022 | 0 | 0.03 | 0.246231 | 6,766 | 147 | 135 | 46.027211 | 0.752941 | 0.038723 | 0 | 0.420168 | 0 | 0 | 0.023014 | 0 | 0 | 0 | 0 | 0.006803 | 0 | 1 | 0.084034 | false | 0.008403 | 0.05042 | 0 | 0.210084 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5b27d5f6e6878759cb3ab473c4702b3507a5b67 | 2,810 | py | Python | kmcsim/sim/events_old.py | vlcekl/kmcpy | b55a23f64d4b6d2871671f4a16346cc897c4a2a5 | [
"MIT"
] | null | null | null | kmcsim/sim/events_old.py | vlcekl/kmcpy | b55a23f64d4b6d2871671f4a16346cc897c4a2a5 | [
"MIT"
] | null | null | null | kmcsim/sim/events_old.py | vlcekl/kmcpy | b55a23f64d4b6d2871671f4a16346cc897c4a2a5 | [
"MIT"
] | null | null | null | #!//anaconda/envs/py36/bin/python
#
# File name: kmc_pld.py
# Date: 2018/08/03 09:07
# Author: Lukas Vlcek
#
# Description:
#
import numpy as np
from collections import Counter
class EventTree:
"""
Class maintaining a binary tree for random event type lookup
and arrays for choosing specific... | 26.509434 | 82 | 0.56548 | 395 | 2,810 | 3.878481 | 0.311392 | 0.06658 | 0.059399 | 0.02611 | 0.159269 | 0.101828 | 0.084856 | 0.084856 | 0.084856 | 0.035248 | 0 | 0.021751 | 0.329181 | 2,810 | 105 | 83 | 26.761905 | 0.790981 | 0.291459 | 0 | 0.173913 | 0 | 0 | 0.007837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0.021739 | 0.043478 | 0 | 0.195652 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5b2a5e3c1f4caec8e1b4e760aef349c24f989cf | 7,293 | py | Python | scripts/my_inference.py | Mr-TalhaIlyas/Scaled-YOLOv4 | 2b0326a6bc1eba386eb1a78b56727dcf29c77bac | [
"MIT"
] | null | null | null | scripts/my_inference.py | Mr-TalhaIlyas/Scaled-YOLOv4 | 2b0326a6bc1eba386eb1a78b56727dcf29c77bac | [
"MIT"
] | null | null | null | scripts/my_inference.py | Mr-TalhaIlyas/Scaled-YOLOv4 | 2b0326a6bc1eba386eb1a78b56727dcf29c77bac | [
"MIT"
] | null | null | null | import os
os.environ['CUDA_VISIBLE_DEVICES'] = '2'
import torch
torch.rand(10)
import torch.nn as nn
import torch.nn.functional as F
import glob
from tqdm import tqdm, trange
print(torch.cuda.is_available())
print(torch.cuda.get_device_name())
print(torch.cuda.current_device())
device = torch.device('cuda' if torch.cu... | 36.833333 | 135 | 0.680927 | 1,109 | 7,293 | 4.310189 | 0.267809 | 0.032218 | 0.041423 | 0.024895 | 0.38431 | 0.370502 | 0.348326 | 0.343724 | 0.323013 | 0.323013 | 0 | 0.033472 | 0.176608 | 7,293 | 198 | 136 | 36.833333 | 0.762531 | 0.124092 | 0 | 0.335616 | 0 | 0.006849 | 0.116682 | 0.070325 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006849 | false | 0 | 0.130137 | 0 | 0.143836 | 0.10274 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5b36222e5f117b24edaf10265aa3e6b8fc6c46c | 7,351 | py | Python | monasca/microservice/notification_engine.py | TeamZenith/python-monasca | badc86fbe2c4424deb15b84eabd3248e899ef4ee | [
"Apache-2.0"
] | null | null | null | monasca/microservice/notification_engine.py | TeamZenith/python-monasca | badc86fbe2c4424deb15b84eabd3248e899ef4ee | [
"Apache-2.0"
] | null | null | null | monasca/microservice/notification_engine.py | TeamZenith/python-monasca | badc86fbe2c4424deb15b84eabd3248e899ef4ee | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Carnegie Mellon University
#
# Author: Han Chen <hanc@andrew.cmu.edu>
#
# 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
#
# ... | 39.951087 | 119 | 0.522786 | 775 | 7,351 | 4.832258 | 0.345806 | 0.012817 | 0.013885 | 0.021362 | 0.188785 | 0.126836 | 0.080641 | 0.080641 | 0.080641 | 0.055541 | 0 | 0.035146 | 0.384574 | 7,351 | 183 | 120 | 40.169399 | 0.792661 | 0.259284 | 0 | 0.158416 | 0 | 0 | 0.179844 | 0 | 0 | 0 | 0 | 0.005464 | 0 | 1 | 0.049505 | false | 0 | 0.089109 | 0 | 0.19802 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5ba81a91490ddb0a286042ea3d0c0e723e0af52 | 2,348 | py | Python | section2/out/src/data_prep/SlicesDataset.py | ssheikh85/AIHCND_c3_3d_imaging | 6502985d4199244328a683459b4d819090d58f3c | [
"MIT"
] | null | null | null | section2/out/src/data_prep/SlicesDataset.py | ssheikh85/AIHCND_c3_3d_imaging | 6502985d4199244328a683459b4d819090d58f3c | [
"MIT"
] | null | null | null | section2/out/src/data_prep/SlicesDataset.py | ssheikh85/AIHCND_c3_3d_imaging | 6502985d4199244328a683459b4d819090d58f3c | [
"MIT"
] | null | null | null | """
Module for Pytorch dataset representations
"""
import torch
from torch.utils.data import Dataset
class SlicesDataset(Dataset):
"""
This class represents an indexable Torch dataset
which could be consumed by the PyTorch DataLoader class
"""
def __init__(self, data):
self.data = data
... | 35.044776 | 103 | 0.609881 | 329 | 2,348 | 4.303951 | 0.419453 | 0.028249 | 0.04661 | 0.025424 | 0.070621 | 0.070621 | 0.070621 | 0.070621 | 0.070621 | 0.070621 | 0 | 0.010481 | 0.309199 | 2,348 | 66 | 104 | 35.575758 | 0.862515 | 0.572828 | 0 | 0 | 0 | 0 | 0.026467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.1 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
d5bd90ba6b204f06ed13dd7eaecdd9ec577e33cb | 5,512 | py | Python | src/models/utils_func.py | Soufiane-Fartit/cars-prices | 8eee8aa168251adab7f4947c45a78752e4145041 | [
"MIT"
] | null | null | null | src/models/utils_func.py | Soufiane-Fartit/cars-prices | 8eee8aa168251adab7f4947c45a78752e4145041 | [
"MIT"
] | null | null | null | src/models/utils_func.py | Soufiane-Fartit/cars-prices | 8eee8aa168251adab7f4947c45a78752e4145041 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""" This module offers util functions to be called and used
in other modules
"""
from datetime import datetime
import os
import json
import pickle
import string
import random
import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
import seaborn as sns
from sklearn impo... | 33.815951 | 90 | 0.649492 | 747 | 5,512 | 4.658635 | 0.263722 | 0.032184 | 0.028161 | 0.013793 | 0.267816 | 0.193103 | 0.165517 | 0.144253 | 0.112644 | 0.112644 | 0 | 0.006775 | 0.250181 | 5,512 | 163 | 91 | 33.815951 | 0.835229 | 0.347424 | 0 | 0.142857 | 0 | 0 | 0.10565 | 0.039435 | 0 | 0 | 0 | 0 | 0.02381 | 1 | 0.083333 | false | 0 | 0.238095 | 0 | 0.345238 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5c0292ca1d781849b4c6bb27642731423800d86 | 7,504 | py | Python | modules/finance.py | KpaBap/palbot | 38d2b7958e310f45a28cf1b3173967b92f819946 | [
"MIT"
] | null | null | null | modules/finance.py | KpaBap/palbot | 38d2b7958e310f45a28cf1b3173967b92f819946 | [
"MIT"
] | null | null | null | modules/finance.py | KpaBap/palbot | 38d2b7958e310f45a28cf1b3173967b92f819946 | [
"MIT"
] | null | null | null | import asyncio
import discord
from discord.ext import commands
import re
import sqlite3
from urllib.parse import quote as uriquote
import html
CURR = ["AUD", "BRL", "CAD", "CHF", "CLP", "CNY", "CZK", "DKK", "EUR",
"GBP", "HKD", "HUF", "IDR", "ILS", "INR", "JPY", "KRW", "MXN",
"MYR", "NOK", "NZD", "P... | 40.344086 | 166 | 0.518124 | 853 | 7,504 | 4.534584 | 0.277843 | 0.025595 | 0.015512 | 0.020683 | 0.261634 | 0.261634 | 0.202689 | 0.157187 | 0.122285 | 0.094623 | 0 | 0.010974 | 0.319963 | 7,504 | 185 | 167 | 40.562162 | 0.747012 | 0.003598 | 0 | 0.22 | 0 | 0.02 | 0.245019 | 0.006779 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.046667 | 0.006667 | 0.126667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5c1a9c69d580b85cf1676ca01e443acef7eb239 | 9,048 | py | Python | pyx/tests/test_http.py | l04m33/pyx | b70efec605832ba3c7079e991584db3f5d1da8cb | [
"MIT"
] | 2 | 2015-08-25T11:31:42.000Z | 2015-10-16T11:30:15.000Z | pyx/tests/test_http.py | l04m33/pyx | b70efec605832ba3c7079e991584db3f5d1da8cb | [
"MIT"
] | null | null | null | pyx/tests/test_http.py | l04m33/pyx | b70efec605832ba3c7079e991584db3f5d1da8cb | [
"MIT"
] | null | null | null | import unittest
import unittest.mock as mock
import asyncio
import pyx.http as http
def create_dummy_message():
msg = http.HttpMessage(None)
msg.headers = [
http.HttpHeader('Server', 'Pyx'),
http.HttpHeader('Cookie', 'a'),
http.HttpHeader('Cookie', 'b'),
]
return msg
def crea... | 33.511111 | 92 | 0.59527 | 1,049 | 9,048 | 4.987607 | 0.148713 | 0.12328 | 0.061927 | 0.025994 | 0.639526 | 0.522362 | 0.477446 | 0.408257 | 0.36143 | 0.260703 | 0 | 0.011743 | 0.265915 | 9,048 | 269 | 93 | 33.635688 | 0.775971 | 0 | 0 | 0.318841 | 0 | 0.004831 | 0.138594 | 0.039567 | 0 | 0 | 0 | 0 | 0.294686 | 1 | 0.082126 | false | 0 | 0.019324 | 0 | 0.154589 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5c480f55405e4b344842fed3a1082b875de03dd | 1,349 | py | Python | main.py | DuskXi/ArkX | 7b416ae0c4ec2b383c6f414ed475930dd228909f | [
"Apache-2.0"
] | 2 | 2022-02-18T03:08:38.000Z | 2022-03-03T04:20:08.000Z | main.py | DuskXi/ArkX | 7b416ae0c4ec2b383c6f414ed475930dd228909f | [
"Apache-2.0"
] | null | null | null | main.py | DuskXi/ArkX | 7b416ae0c4ec2b383c6f414ed475930dd228909f | [
"Apache-2.0"
] | null | null | null | import os
import json
from File.file import File
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
def fileRead(fileName, encoding='utf-8'):
with open(fileName, encoding=encoding) as f:
return f.read()
def main():
from Automation.distributor import Distributor
from Performance import recoder
from ... | 30.659091 | 127 | 0.681987 | 136 | 1,349 | 6.669118 | 0.455882 | 0.029768 | 0.056229 | 0.076075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006346 | 0.182357 | 1,349 | 43 | 128 | 31.372093 | 0.815956 | 0.220904 | 0 | 0 | 0 | 0 | 0.176414 | 0.044104 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.26087 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5c68966a759ee86d163e95dee1679657c063de3 | 2,236 | py | Python | Python Spider/xpath/03 login.py | CodingGorit/Coding-with-Python | b0f1d5d704b816a85b0ae57b46d00314de2a67b9 | [
"Apache-2.0"
] | 1 | 2020-01-31T15:57:29.000Z | 2020-01-31T15:57:29.000Z | Python Spider/xpath/03 login.py | CodingGorit/Coding-with-Python | b0f1d5d704b816a85b0ae57b46d00314de2a67b9 | [
"Apache-2.0"
] | null | null | null | Python Spider/xpath/03 login.py | CodingGorit/Coding-with-Python | b0f1d5d704b816a85b0ae57b46d00314de2a67b9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
#file: 03 login.py
#@author: Gorit
#@contact: gorit@qq.com
#@time: 2020/1/20 12:44
import requests
from lxml import etree
# 封装类,进行学习猿地的登录和订单的获取
class lMonKey():
# 登录请求地址
loginUrl = "https://www.lmonkey.com/login"
# 账户中心地址
orderUrl = "https://www.lmonkey.com/my... | 27.268293 | 175 | 0.549195 | 280 | 2,236 | 4.339286 | 0.507143 | 0.023045 | 0.042798 | 0.037037 | 0.181893 | 0.134156 | 0.06749 | 0.06749 | 0.06749 | 0 | 0 | 0.048021 | 0.310823 | 2,236 | 81 | 176 | 27.604938 | 0.740428 | 0.18381 | 0 | 0.170213 | 0 | 0.021277 | 0.210556 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0.042553 | 0.042553 | 0 | 0.297872 | 0.148936 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5c72a3c1f9827cd7d71f3da809f2313db6f0a32 | 9,730 | py | Python | src/gui/MultiplayerPlayerInfo.py | fireclawthefox/AnkandoraLight | 05b71e1a2919141cce02cb1aade95fbac682614b | [
"BSD-2-Clause"
] | 3 | 2020-07-31T10:27:06.000Z | 2022-01-11T20:28:55.000Z | src/gui/MultiplayerPlayerInfo.py | fireclawthefox/AnkandoraLight | 05b71e1a2919141cce02cb1aade95fbac682614b | [
"BSD-2-Clause"
] | null | null | null | src/gui/MultiplayerPlayerInfo.py | fireclawthefox/AnkandoraLight | 05b71e1a2919141cce02cb1aade95fbac682614b | [
"BSD-2-Clause"
] | 1 | 2020-07-30T08:23:28.000Z | 2020-07-30T08:23:28.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# This file was created using the DirectGUI Designer
from direct.gui import DirectGuiGlobals as DGG
from direct.gui.DirectFrame import DirectFrame
from direct.gui.DirectLabel import DirectLabel
from direct.gui.DirectButton import DirectButton
from direct.gui.DirectOptionMenu... | 35.126354 | 104 | 0.528777 | 1,198 | 9,730 | 4.196995 | 0.128548 | 0.057279 | 0.036993 | 0.062053 | 0.589897 | 0.554694 | 0.539578 | 0.50358 | 0.498011 | 0.442323 | 0 | 0.133963 | 0.336382 | 9,730 | 276 | 105 | 35.253623 | 0.644727 | 0.009147 | 0 | 0.484 | 0 | 0 | 0.030193 | 0.017016 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016 | false | 0 | 0.024 | 0 | 0.044 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5c7e9662e071c24633307f69bc18856ffa49ecf | 634 | py | Python | publications/time_mag.py | mkoo21/rss-review-scraper | 4adde8586ce55d7bb211bcfbb9bcccd1edc8b6a5 | [
"BSD-3-Clause"
] | null | null | null | publications/time_mag.py | mkoo21/rss-review-scraper | 4adde8586ce55d7bb211bcfbb9bcccd1edc8b6a5 | [
"BSD-3-Clause"
] | 1 | 2021-06-01T23:47:57.000Z | 2021-06-01T23:47:57.000Z | publications/time_mag.py | mkoo21/rss-review-scraper | 4adde8586ce55d7bb211bcfbb9bcccd1edc8b6a5 | [
"BSD-3-Clause"
] | null | null | null | from . import FROM_FEED_PUBLISHED_TODAY, STRINGIFY
def filter_by_tag(tag, entries):
matches = list(filter(
lambda x: any(list(map(
lambda y: y.term == tag,
x.tags
))),
entries
))
if len(matches) == 0:
return ""
return "<h2>TIME {} - {} result... | 28.818182 | 93 | 0.594637 | 79 | 634 | 4.582278 | 0.468354 | 0.066298 | 0.09116 | 0.121547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0.255521 | 634 | 21 | 94 | 30.190476 | 0.758475 | 0 | 0 | 0 | 0 | 0 | 0.152997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5c8ad01f8962aad9216b71e8846b60294d68306 | 3,017 | py | Python | 2020/21/code.py | irobin591/advent-of-code-2019 | 279c28a2863558bd014b289802fff4b444c5d6cf | [
"MIT"
] | null | null | null | 2020/21/code.py | irobin591/advent-of-code-2019 | 279c28a2863558bd014b289802fff4b444c5d6cf | [
"MIT"
] | null | null | null | 2020/21/code.py | irobin591/advent-of-code-2019 | 279c28a2863558bd014b289802fff4b444c5d6cf | [
"MIT"
] | null | null | null | # Advent of Code 2020
# Day 21
# Author: irobin591
import os
import doctest
import re
re_entry = re.compile(r'^([a-z ]+) \(contains ([a-z, ]*)\)$')
with open(os.path.join(os.path.dirname(__file__), "input.txt"), 'r') as input_file:
input_data = input_file.read().strip().split('\n')
def part1(input_data):
"... | 30.785714 | 114 | 0.599271 | 355 | 3,017 | 4.969014 | 0.270423 | 0.056122 | 0.017007 | 0.02381 | 0.576531 | 0.576531 | 0.576531 | 0.576531 | 0.558957 | 0.558957 | 0 | 0.013483 | 0.262512 | 3,017 | 98 | 115 | 30.785714 | 0.779326 | 0.2118 | 0 | 0.461538 | 0 | 0 | 0.036989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.019231 | 0.057692 | 0 | 0.134615 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5cb7cb45edf1a90b51258da74fc6a1d2b6758fa | 2,761 | py | Python | app.py | iandees/microdata2osm | 1505b8072880055033ddbb85626fcdb857c97d4e | [
"MIT"
] | 1 | 2019-11-05T16:02:17.000Z | 2019-11-05T16:02:17.000Z | app.py | iandees/microdata2osm | 1505b8072880055033ddbb85626fcdb857c97d4e | [
"MIT"
] | null | null | null | app.py | iandees/microdata2osm | 1505b8072880055033ddbb85626fcdb857c97d4e | [
"MIT"
] | null | null | null | from flask import Flask, jsonify, request
from w3lib.html import get_base_url
import extruct
import requests
app = Flask(__name__)
def extract_osm_tags(data):
tags = {}
schema_org_type = data.get('@type')
if schema_org_type == 'Restaurant':
tags['amenity'] = 'restaurant'
serves_cuisine... | 25.803738 | 75 | 0.589279 | 324 | 2,761 | 4.901235 | 0.302469 | 0.052897 | 0.040932 | 0.066121 | 0.093199 | 0.078086 | 0 | 0 | 0 | 0 | 0 | 0.005429 | 0.266208 | 2,761 | 106 | 76 | 26.04717 | 0.778381 | 0 | 0 | 0.060241 | 0 | 0 | 0.191959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024096 | false | 0 | 0.048193 | 0 | 0.13253 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5cdc3a0f5e46ad0ab740a282e0265f0e1bb27d5 | 702 | py | Python | dags/simple_python_taskflow_api.py | davemasino/airflow101 | f940e169b9c562e3834a201827b615744a99b86d | [
"Apache-2.0"
] | null | null | null | dags/simple_python_taskflow_api.py | davemasino/airflow101 | f940e169b9c562e3834a201827b615744a99b86d | [
"Apache-2.0"
] | null | null | null | dags/simple_python_taskflow_api.py | davemasino/airflow101 | f940e169b9c562e3834a201827b615744a99b86d | [
"Apache-2.0"
] | null | null | null | """
A simple Python DAG using the Taskflow API.
"""
import logging
import time
from datetime import datetime
from airflow import DAG
from airflow.decorators import task
log = logging.getLogger(__name__)
with DAG(
dag_id='simple_python_taskflow_api',
schedule_interval=None,
start_date=datetime(2021, 1, 1)... | 20.057143 | 43 | 0.665242 | 96 | 702 | 4.604167 | 0.458333 | 0.061086 | 0.045249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021858 | 0.217949 | 702 | 34 | 44 | 20.647059 | 0.783242 | 0.109687 | 0 | 0 | 0 | 0 | 0.120264 | 0.042834 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.227273 | 0 | 0.318182 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5cdc4a618ee4e3bc14a1bf765626931e9530f36 | 1,744 | py | Python | pyunmarked/roylenichols.py | kenkellner/pyunmarked | 485bd96b4ca12a019b478fc19f68f577279ac9b8 | [
"MIT"
] | null | null | null | pyunmarked/roylenichols.py | kenkellner/pyunmarked | 485bd96b4ca12a019b478fc19f68f577279ac9b8 | [
"MIT"
] | null | null | null | pyunmarked/roylenichols.py | kenkellner/pyunmarked | 485bd96b4ca12a019b478fc19f68f577279ac9b8 | [
"MIT"
] | null | null | null | from . import model
import numpy as np
from scipy import special, stats
class RoyleNicholsModel(model.UnmarkedModel):
def __init__(self, det_formula, abun_formula, data):
self.response = model.Response(data.y)
abun = model.Submodel("Abundance", "abun", abun_formula, np.exp, data.site_covs)
... | 37.913043 | 91 | 0.544151 | 253 | 1,744 | 3.695652 | 0.328063 | 0.010695 | 0.019251 | 0.049198 | 0.079144 | 0.053476 | 0 | 0 | 0 | 0 | 0 | 0.01141 | 0.296445 | 1,744 | 45 | 92 | 38.755556 | 0.750611 | 0 | 0 | 0.04878 | 0 | 0 | 0.026376 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5cdf640db99a0e2d2dcf804807be669d9939f1e | 75,933 | py | Python | proc_chords_xarray.py | pgriewank/ASR_tools | 306a7d92725888485a35f8824433ad7b0451b569 | [
"MIT"
] | null | null | null | proc_chords_xarray.py | pgriewank/ASR_tools | 306a7d92725888485a35f8824433ad7b0451b569 | [
"MIT"
] | null | null | null | proc_chords_xarray.py | pgriewank/ASR_tools | 306a7d92725888485a35f8824433ad7b0451b569 | [
"MIT"
] | null | null | null | #Contains the functions needed to process both chords and regularized beards
# proc_chords is used for chords
#proc_beard_regularize for generating beards
#proc_pdf saves pdfs of a variable below cloud base
#Both have a large overlap, but I split them in two to keep the one script from getting to confusing.
import nu... | 40.605882 | 218 | 0.563326 | 10,852 | 75,933 | 3.660892 | 0.074825 | 0.00589 | 0.011352 | 0.009817 | 0.702376 | 0.657874 | 0.624547 | 0.607858 | 0.584122 | 0.56474 | 0 | 0.030185 | 0.334663 | 75,933 | 1,869 | 219 | 40.627608 | 0.756181 | 0.252841 | 0 | 0.641026 | 0 | 0 | 0.058283 | 0.003896 | 0 | 0 | 0 | 0.000535 | 0 | 1 | 0.003945 | false | 0 | 0.013807 | 0 | 0.021696 | 0.100592 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5ce012afb2ebb7c4522ad96e38d4259432b472d | 1,656 | py | Python | expression-atlas-wf/scripts/dmel_tau_housekeeping.py | jfear/larval_gonad | 624a71741864b74e0372f89bdcca578e5cca3722 | [
"MIT"
] | 1 | 2019-09-13T13:24:18.000Z | 2019-09-13T13:24:18.000Z | expression-atlas-wf/scripts/dmel_tau_housekeeping.py | jfear/larval_gonad | 624a71741864b74e0372f89bdcca578e5cca3722 | [
"MIT"
] | 65 | 2019-07-24T16:23:08.000Z | 2020-03-06T22:18:47.000Z | expression-atlas-wf/scripts/dmel_tau_housekeeping.py | jfear/larval_gonad | 624a71741864b74e0372f89bdcca578e5cca3722 | [
"MIT"
] | 1 | 2021-06-02T19:09:35.000Z | 2021-06-02T19:09:35.000Z | """D. mel housekeeping genes based on tau.
Uses the intersection of w1118 and orgR to create a list of
D. mel housekeeping genes.
"""
import os
from functools import partial
import pandas as pd
from larval_gonad.io import pickle_load, pickle_dump
def main():
# Load mapping of YOgn to FBgn
annot = pickle_loa... | 30.109091 | 96 | 0.630435 | 203 | 1,656 | 4.940887 | 0.364532 | 0.089731 | 0.101695 | 0.114656 | 0.251246 | 0.251246 | 0.175474 | 0.089731 | 0 | 0 | 0 | 0.010647 | 0.262681 | 1,656 | 54 | 97 | 30.666667 | 0.810811 | 0.094807 | 0 | 0.055556 | 0 | 0 | 0.230563 | 0.205094 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.138889 | 0.055556 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5ce93a21169fedfe3df6edeca6f8d5d29633b0f | 2,226 | py | Python | api-server/server/core/key.py | TK-IBM-Call-for-Code-Challange-2021/call-for-code-challenge-2021 | 7a3d78d4067303d61c4a25d45c0671ae7e984222 | [
"MIT"
] | 75 | 2020-07-22T15:24:56.000Z | 2022-03-30T08:34:06.000Z | api-server/server/core/key.py | TK-IBM-Call-for-Code-Challange-2021/call-for-code-challenge-2021 | 7a3d78d4067303d61c4a25d45c0671ae7e984222 | [
"MIT"
] | null | null | null | api-server/server/core/key.py | TK-IBM-Call-for-Code-Challange-2021/call-for-code-challenge-2021 | 7a3d78d4067303d61c4a25d45c0671ae7e984222 | [
"MIT"
] | 34 | 2020-07-23T02:54:03.000Z | 2022-03-29T09:51:21.000Z | """
Api Key validation
"""
from typing import Optional
from fastapi.security.api_key import APIKeyHeader
from fastapi import HTTPException, Security, Depends
from starlette.status import HTTP_401_UNAUTHORIZED, HTTP_400_BAD_REQUEST, HTTP_403_FORBIDDEN
from server.core.security import verify_key
from server.db.mongodb ... | 33.223881 | 92 | 0.666667 | 281 | 2,226 | 5.071174 | 0.291815 | 0.063158 | 0.101053 | 0.117895 | 0.214035 | 0.191579 | 0.191579 | 0.191579 | 0.117193 | 0.081404 | 0 | 0.016197 | 0.251123 | 2,226 | 66 | 93 | 33.727273 | 0.838632 | 0.063792 | 0 | 0.136364 | 0 | 0 | 0.063004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.204545 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5cee84d7663e55b77b23428667b37ccfb80fbf9 | 1,253 | py | Python | scripts/kconfig-split.py | Osirium/linuxkit | b710224cdf9a8425a7129cdcb84fc1af00f926d7 | [
"Apache-2.0"
] | 7,798 | 2017-04-18T15:19:24.000Z | 2022-03-30T19:34:42.000Z | scripts/kconfig-split.py | Osirium/linuxkit | b710224cdf9a8425a7129cdcb84fc1af00f926d7 | [
"Apache-2.0"
] | 1,673 | 2017-04-18T16:15:20.000Z | 2022-03-31T06:14:17.000Z | scripts/kconfig-split.py | Osirium/linuxkit | b710224cdf9a8425a7129cdcb84fc1af00f926d7 | [
"Apache-2.0"
] | 1,099 | 2017-04-18T15:19:33.000Z | 2022-03-31T20:23:20.000Z | #!/usr/bin/env python
# This is a slightly modified version of ChromiumOS' splitconfig
# https://chromium.googlesource.com/chromiumos/third_party/kernel/+/stabilize-5899.B-chromeos-3.14/chromeos/scripts/splitconfig
"""See this page for more details:
http://dev.chromium.org/chromium-os/how-tos-and-troubleshooting/kern... | 27.844444 | 127 | 0.651237 | 165 | 1,253 | 4.921212 | 0.49697 | 0.098522 | 0.054187 | 0.077586 | 0.153941 | 0.061576 | 0.061576 | 0 | 0 | 0 | 0 | 0.008955 | 0.197925 | 1,253 | 44 | 128 | 28.477273 | 0.799005 | 0.321628 | 0 | 0.115385 | 0 | 0 | 0.090692 | 0.03222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.115385 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5cef9720c8cb2b94870da749da3f4cf31757f01 | 1,631 | py | Python | src/synapse/azext_synapse/vendored_sdks/azure_synapse/models/livy_statement_output.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 2 | 2021-06-05T17:51:26.000Z | 2021-11-17T11:17:56.000Z | src/synapse/azext_synapse/vendored_sdks/azure_synapse/models/livy_statement_output.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 3 | 2020-05-27T20:16:26.000Z | 2020-07-23T19:46:49.000Z | src/synapse/azext_synapse/vendored_sdks/azure_synapse/models/livy_statement_output.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 5 | 2020-05-09T17:47:09.000Z | 2020-10-01T19:52:06.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 33.285714 | 76 | 0.563458 | 170 | 1,631 | 5.311765 | 0.411765 | 0.093023 | 0.039867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000772 | 0.205395 | 1,631 | 48 | 77 | 33.979167 | 0.695988 | 0.429185 | 0 | 0 | 0 | 0 | 0.23175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5d07c6912264faadbd6b41b6918a6a30e91f2bc | 8,638 | py | Python | plugins/Operations/Crypto/blowfish_encrypt_dialog.py | nmantani/FileInsight-plugins | a6b036672e4c72ed06678729a86293212b7213db | [
"BSD-2-Clause",
"CC0-1.0",
"MIT"
] | 120 | 2015-02-28T14:49:12.000Z | 2022-03-27T07:13:24.000Z | plugins/Operations/Crypto/blowfish_encrypt_dialog.py | nmantani/FileInsight-plugins | a6b036672e4c72ed06678729a86293212b7213db | [
"BSD-2-Clause",
"CC0-1.0",
"MIT"
] | null | null | null | plugins/Operations/Crypto/blowfish_encrypt_dialog.py | nmantani/FileInsight-plugins | a6b036672e4c72ed06678729a86293212b7213db | [
"BSD-2-Clause",
"CC0-1.0",
"MIT"
] | 17 | 2016-04-04T15:53:03.000Z | 2021-12-10T18:07:59.000Z | #
# Blowfish encrypt - Encrypt selected region with Blowfish
#
# Copyright (c) 2019, Nobutaka Mantani
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code... | 44.297436 | 210 | 0.678629 | 1,310 | 8,638 | 4.363359 | 0.207634 | 0.019944 | 0.058782 | 0.020994 | 0.480231 | 0.393982 | 0.349895 | 0.329076 | 0.28394 | 0.222183 | 0 | 0.0131 | 0.186965 | 8,638 | 194 | 211 | 44.525773 | 0.800797 | 0.205487 | 0 | 0.146154 | 0 | 0.007692 | 0.103636 | 0 | 0 | 0 | 0 | 0.005155 | 0 | 1 | 0.015385 | false | 0 | 0.076923 | 0 | 0.123077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5d16bd87f7bfb96643e0e75dbd1d494645de558 | 5,734 | py | Python | dns/rdtypes/IN/IPSECKEY.py | preo/dnspython | 465785f85f87508209117264c677080e901e957c | [
"0BSD"
] | null | null | null | dns/rdtypes/IN/IPSECKEY.py | preo/dnspython | 465785f85f87508209117264c677080e901e957c | [
"0BSD"
] | null | null | null | dns/rdtypes/IN/IPSECKEY.py | preo/dnspython | 465785f85f87508209117264c677080e901e957c | [
"0BSD"
] | null | null | null | # Copyright (C) 2006, 2007, 2009-2011 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and this permission notice
# appear in all copies.
#
# THE SOFTWARE IS PROVIDED ... | 38.743243 | 81 | 0.591734 | 688 | 5,734 | 4.819767 | 0.257267 | 0.119421 | 0.049759 | 0.034379 | 0.271713 | 0.226176 | 0.191797 | 0.124849 | 0.068758 | 0.025332 | 0 | 0.018108 | 0.316184 | 5,734 | 147 | 82 | 39.006803 | 0.827595 | 0.202302 | 0 | 0.28972 | 0 | 0 | 0.047239 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046729 | false | 0.018692 | 0.046729 | 0 | 0.158879 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5d2163f998824781f4cf67aa89ebfc2260b9f51 | 42,648 | py | Python | python/input_reader.py | dagesundholm/DAGE | 0d0ef1d3e74ba751ca4d288db9f1ac7f9a822138 | [
"MIT"
] | 3 | 2018-03-29T08:48:57.000Z | 2020-02-16T22:40:22.000Z | python/input_reader.py | dagesundholm/DAGE | 0d0ef1d3e74ba751ca4d288db9f1ac7f9a822138 | [
"MIT"
] | null | null | null | python/input_reader.py | dagesundholm/DAGE | 0d0ef1d3e74ba751ca4d288db9f1ac7f9a822138 | [
"MIT"
] | 1 | 2019-04-08T14:40:57.000Z | 2019-04-08T14:40:57.000Z |
"""---------------------------------------------------------------------------------*
* Copyright (c) 2010-2018 Pauli Parkkinen, Eelis Solala, Wen-Hua Xu, *
* Sergio Losilla, Elias Toivanen, Jonas Juselius *
* ... | 47.020948 | 179 | 0.559487 | 4,646 | 42,648 | 4.959535 | 0.105252 | 0.010416 | 0.014061 | 0.016275 | 0.393803 | 0.285305 | 0.228105 | 0.204149 | 0.169951 | 0.135622 | 0 | 0.004375 | 0.356898 | 42,648 | 906 | 180 | 47.072848 | 0.835746 | 0.170559 | 0 | 0.245347 | 0 | 0 | 0.075603 | 0.001987 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06599 | false | 0.001692 | 0.011844 | 0.005076 | 0.175973 | 0.013536 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5d27a9aec4e8518393324c6681b93cf4f6993a5 | 506 | py | Python | tests/test_mate_hashes_methods.py | MacHu-GWU/pathlib_mate-project | 5b8f5441e681730d02209211cce7f46986147418 | [
"MIT"
] | 9 | 2017-09-07T21:21:43.000Z | 2020-10-11T09:47:24.000Z | tests/test_mate_hashes_methods.py | MacHu-GWU/pathlib_mate-project | 5b8f5441e681730d02209211cce7f46986147418 | [
"MIT"
] | 2 | 2018-10-16T14:30:26.000Z | 2020-12-05T02:40:46.000Z | tests/test_mate_hashes_methods.py | MacHu-GWU/pathlib_mate-project | 5b8f5441e681730d02209211cce7f46986147418 | [
"MIT"
] | 2 | 2017-09-05T14:06:01.000Z | 2021-06-29T15:31:13.000Z | # -*- coding: utf-8 -*-
import pytest
from pathlib_mate.pathlib2 import Path
class TestHashesMethods(object):
def test(self):
p = Path(__file__)
assert len({
p.md5, p.get_partial_md5(nbytes=1 << 20),
p.sha256, p.get_partial_sha256(nbytes=1 << 20),
p.sha512, p.g... | 23 | 59 | 0.592885 | 66 | 506 | 4.19697 | 0.560606 | 0.043321 | 0.119134 | 0.072202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0.254941 | 506 | 21 | 60 | 24.095238 | 0.665782 | 0.041502 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.071429 | false | 0 | 0.214286 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5d2a60bb0dcf9c3c7f564f0707f97c252020d5c | 4,183 | py | Python | tools/lib/auth.py | shoes22/openpilot | a965de3c96a53b67d106cfa775e3407db82dd0e1 | [
"MIT"
] | 121 | 2019-03-27T06:34:51.000Z | 2021-06-15T14:37:29.000Z | tools/lib/auth.py | shoes22/openpilot | a965de3c96a53b67d106cfa775e3407db82dd0e1 | [
"MIT"
] | 54 | 2019-04-11T08:51:58.000Z | 2021-06-13T17:04:22.000Z | tools/lib/auth.py | shoes22/openpilot | a965de3c96a53b67d106cfa775e3407db82dd0e1 | [
"MIT"
] | 139 | 2019-07-16T07:25:05.000Z | 2021-06-09T11:27:53.000Z | #!/usr/bin/env python3
"""
Usage::
usage: auth.py [-h] [{google,apple,github,jwt}] [jwt]
Login to your comma account
positional arguments:
{google,apple,github,jwt}
jwt
optional arguments:
-h, --help show this help message and exit
Examples::
./auth.py # Log in with google accou... | 28.650685 | 140 | 0.672962 | 536 | 4,183 | 5.126866 | 0.384328 | 0.029476 | 0.043304 | 0.043668 | 0.049491 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014052 | 0.183361 | 4,183 | 145 | 141 | 28.848276 | 0.790398 | 0.130528 | 0 | 0.161616 | 0 | 0 | 0.283154 | 0.026192 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040404 | false | 0.010101 | 0.090909 | 0 | 0.20202 | 0.080808 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5d51d8a99234145a06442d575334e8b8cd54c32 | 4,762 | py | Python | elastica/wrappers/callbacks.py | zhidou2/PyElastica | 0f5502bc5349ab5e5dc794d8dfc82b7c2bd69eb6 | [
"MIT"
] | 71 | 2020-04-15T17:02:42.000Z | 2022-03-26T04:53:51.000Z | elastica/wrappers/callbacks.py | zhidou2/PyElastica | 0f5502bc5349ab5e5dc794d8dfc82b7c2bd69eb6 | [
"MIT"
] | 59 | 2020-05-15T03:51:46.000Z | 2022-03-28T13:53:01.000Z | elastica/wrappers/callbacks.py | zhidou2/PyElastica | 0f5502bc5349ab5e5dc794d8dfc82b7c2bd69eb6 | [
"MIT"
] | 57 | 2020-06-17T20:34:02.000Z | 2022-03-16T08:09:54.000Z | __doc__ = """
CallBacks
-----------
Provides the callBack interface to collect data over time (see `callback_functions.py`).
"""
from elastica.callback_functions import CallBackBaseClass
class CallBacks:
"""
CallBacks class is a wrapper for calling callback functions, set by the user. If the user
wants ... | 29.214724 | 94 | 0.584208 | 542 | 4,762 | 4.972325 | 0.350554 | 0.040816 | 0.024119 | 0.018924 | 0.060853 | 0.045269 | 0.045269 | 0.045269 | 0.045269 | 0 | 0 | 0.004685 | 0.327593 | 4,762 | 162 | 95 | 29.395062 | 0.836977 | 0.414112 | 0 | 0 | 0 | 0 | 0.161223 | 0.010469 | 0 | 0 | 0 | 0.006173 | 0.016949 | 1 | 0.135593 | false | 0 | 0.016949 | 0.016949 | 0.254237 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5d5b53df6261a4974bd6d3bb678fc4435a6413e | 15,032 | py | Python | scripts/summarize-kmer-counts.py | rpetit3/anthrax-metagenome-study | b4a6f2c4d49b57aeae898afd6a95c8f6cb437945 | [
"MIT"
] | null | null | null | scripts/summarize-kmer-counts.py | rpetit3/anthrax-metagenome-study | b4a6f2c4d49b57aeae898afd6a95c8f6cb437945 | [
"MIT"
] | null | null | null | scripts/summarize-kmer-counts.py | rpetit3/anthrax-metagenome-study | b4a6f2c4d49b57aeae898afd6a95c8f6cb437945 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
"""Parse through the simulated sequencing group specific kmer counts."""
import argparse as ap
from collections import OrderedDict
import glob
import gzip
import os
import sys
import time
import numpy as np
import multiprocessing as mp
SAMPLES = OrderedDict()
KMERS = {}
HAMMING = OrderedDict()
... | 40.408602 | 87 | 0.549494 | 1,738 | 15,032 | 4.478711 | 0.116801 | 0.057554 | 0.020555 | 0.028777 | 0.434481 | 0.3398 | 0.212616 | 0.13335 | 0.103931 | 0.098535 | 0 | 0.006367 | 0.320849 | 15,032 | 371 | 88 | 40.51752 | 0.756098 | 0.033196 | 0 | 0.181818 | 0 | 0 | 0.220811 | 0.082234 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031348 | false | 0 | 0.028213 | 0 | 0.0721 | 0.040752 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5d9b42548010e4777afbfec7a0536b09a13b146 | 1,883 | py | Python | src/data/dataModule.py | mikkelfo/Title-prediction-from-abstract | 45c9b64c963ae9b00c6b34a3f2b9f7c25496350e | [
"MIT"
] | null | null | null | src/data/dataModule.py | mikkelfo/Title-prediction-from-abstract | 45c9b64c963ae9b00c6b34a3f2b9f7c25496350e | [
"MIT"
] | null | null | null | src/data/dataModule.py | mikkelfo/Title-prediction-from-abstract | 45c9b64c963ae9b00c6b34a3f2b9f7c25496350e | [
"MIT"
] | null | null | null | from typing import Optional
import pytorch_lightning as pl
import torch
from omegaconf import OmegaConf
from torch.utils.data import DataLoader, random_split
from transformers import T5Tokenizer
from src.data.PaperDataset import PaperDataset
class ArvixDataModule(pl.LightningDataModule):
def __init__(self, conf... | 32.465517 | 73 | 0.669676 | 227 | 1,883 | 5.334802 | 0.330396 | 0.069364 | 0.02725 | 0.074319 | 0.314616 | 0.314616 | 0.205615 | 0.11891 | 0.072667 | 0 | 0 | 0.011019 | 0.22889 | 1,883 | 57 | 74 | 33.035088 | 0.823003 | 0.038237 | 0 | 0 | 0 | 0 | 0.037611 | 0.012168 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.175 | 0.075 | 0.425 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5d9d4fd434e21de06a534a9b7ddf3881191564e | 10,573 | py | Python | shs/gui/RootFrame.py | ansobolev/shs | 7a5f61bd66fe1e8ae047a4d3400b055175a53f4e | [
"MIT"
] | 1 | 2016-06-22T13:30:25.000Z | 2016-06-22T13:30:25.000Z | shs/gui/RootFrame.py | ansobolev/shs | 7a5f61bd66fe1e8ae047a4d3400b055175a53f4e | [
"MIT"
] | 1 | 2017-12-01T04:49:45.000Z | 2017-12-01T04:49:45.000Z | shs/gui/RootFrame.py | ansobolev/shs | 7a5f61bd66fe1e8ae047a4d3400b055175a53f4e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
import time
import subprocess
import wx
import ConfigParser
from wx.lib.mixins.listctrl import getListCtrlSelection
from wx.lib.pubsub import pub
from gui.RootGUI import RootGUI
from StepsDialog import StepsDialog
from PlotFrame import PlotFuncFrame, PlotCorrFrame
import i... | 39.01476 | 120 | 0.608909 | 1,240 | 10,573 | 5.083871 | 0.243548 | 0.028553 | 0.012373 | 0.017767 | 0.215419 | 0.189245 | 0.16894 | 0.14118 | 0.126904 | 0.111675 | 0 | 0.005157 | 0.284782 | 10,573 | 270 | 121 | 39.159259 | 0.828485 | 0.127873 | 0 | 0.160804 | 0 | 0 | 0.027796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075377 | false | 0 | 0.080402 | 0 | 0.21608 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5dc3b0ac30486b996b5ad01fe0ad1a247834e86 | 1,411 | py | Python | srl/simulation_test.py | google/simple-reinforcement-learning | 9bdac29427cd5c556d7ea7531b807645f043aae3 | [
"Apache-2.0"
] | 60 | 2017-01-10T06:35:11.000Z | 2020-12-19T07:33:40.000Z | srl/simulation_test.py | google/simple-reinforcement-learning | 9bdac29427cd5c556d7ea7531b807645f043aae3 | [
"Apache-2.0"
] | null | null | null | srl/simulation_test.py | google/simple-reinforcement-learning | 9bdac29427cd5c556d7ea7531b807645f043aae3 | [
"Apache-2.0"
] | 29 | 2017-01-11T22:15:36.000Z | 2022-03-17T02:17:37.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 32.068182 | 74 | 0.722892 | 207 | 1,411 | 4.850242 | 0.487923 | 0.059761 | 0.038845 | 0.044821 | 0.222112 | 0.172311 | 0.172311 | 0.172311 | 0.172311 | 0.172311 | 0 | 0.012766 | 0.167257 | 1,411 | 43 | 75 | 32.813953 | 0.841702 | 0.388377 | 0 | 0.208333 | 0 | 0 | 0.010601 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.125 | false | 0 | 0.208333 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5dc76ad37d386c3045e8ed5404e25dd2364d605 | 26,564 | py | Python | src/xmltollvm.py | Tejvinder/thesis-ghidra | 2e59bc48d6bb820ecf6b390e5cf5893fc6ea0216 | [
"MIT"
] | 101 | 2019-10-22T09:48:19.000Z | 2022-03-30T07:03:40.000Z | src/xmltollvm.py | Tejvinder/thesis-ghidra | 2e59bc48d6bb820ecf6b390e5cf5893fc6ea0216 | [
"MIT"
] | 4 | 2020-03-06T14:18:47.000Z | 2021-11-05T04:10:59.000Z | src/xmltollvm.py | Tejvinder/thesis-ghidra | 2e59bc48d6bb820ecf6b390e5cf5893fc6ea0216 | [
"MIT"
] | 15 | 2019-10-22T13:12:39.000Z | 2022-03-04T20:08:06.000Z | from llvmlite import ir
import xml.etree.ElementTree as et
int32 = ir.IntType(32)
int64 = ir.IntType(64)
int1 = ir.IntType(1)
void_type = ir.VoidType()
function_names = []
registers, functions, uniques, extracts = {}, {}, {}, {}
internal_functions = {}
memory = {}
flags = ["ZF", "CF", "OF", "SF"]
pointers = ["RSP", "R... | 49.932331 | 118 | 0.571074 | 3,003 | 26,564 | 4.885115 | 0.084582 | 0.07362 | 0.092706 | 0.101431 | 0.730539 | 0.675596 | 0.651738 | 0.599932 | 0.537014 | 0.510907 | 0 | 0.010864 | 0.306994 | 26,564 | 532 | 119 | 49.932331 | 0.786029 | 0.012686 | 0 | 0.46856 | 0 | 0 | 0.094969 | 0.002403 | 0 | 0 | 0.000114 | 0 | 0 | 1 | 0.022312 | false | 0.002028 | 0.004057 | 0 | 0.052738 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5dfc52594a99b2ee5b9d8578f257b3fdecb0fcf | 4,726 | py | Python | bot.py | tiianprb/TikTok-Downloader-Bot | 91b6fd64d5a151c3e439772c69850a18b7562ceb | [
"MIT"
] | null | null | null | bot.py | tiianprb/TikTok-Downloader-Bot | 91b6fd64d5a151c3e439772c69850a18b7562ceb | [
"MIT"
] | null | null | null | bot.py | tiianprb/TikTok-Downloader-Bot | 91b6fd64d5a151c3e439772c69850a18b7562ceb | [
"MIT"
] | null | null | null | import json, requests, os, shlex, asyncio, uuid, shutil
from typing import Tuple
from pyrogram import Client, filters
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, CallbackQuery
# Configs
API_HASH = os.environ['API_HASH']
APP_ID = int(os.environ['APP_ID'])
BOT_TOKEN = os.environ['BOT_T... | 33.757143 | 152 | 0.643039 | 634 | 4,726 | 4.711356 | 0.252366 | 0.030465 | 0.060261 | 0.049213 | 0.504185 | 0.483763 | 0.483763 | 0.483763 | 0.483763 | 0.483763 | 0 | 0.008463 | 0.199958 | 4,726 | 139 | 153 | 34 | 0.781539 | 0.019044 | 0 | 0.575 | 0 | 0.008333 | 0.139929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5e12ba6cbfd755e451e70540ba00bbbd7d6bc8c | 24,254 | py | Python | frontend-gui/rpanel.py | skyu0221/660-iot | d31f973c93871bfa8122f1b83364d0147d402e9e | [
"Apache-2.0"
] | null | null | null | frontend-gui/rpanel.py | skyu0221/660-iot | d31f973c93871bfa8122f1b83364d0147d402e9e | [
"Apache-2.0"
] | 8 | 2021-03-19T01:36:06.000Z | 2022-03-12T00:22:43.000Z | frontend-gui/rpanel.py | skyu0221/660-iot | d31f973c93871bfa8122f1b83364d0147d402e9e | [
"Apache-2.0"
] | null | null | null | import wx
import wx.adv
import random
import util
import config
import time
import datetime
import threading
import requests
import json
from functools import partial
class ReqeusterThread(threading.Thread):
# https://www.oreilly.com/library/view/python-cookbook/0596001673/ch06s03.html
def __init__(self, ... | 34.599144 | 158 | 0.580564 | 2,968 | 24,254 | 4.55593 | 0.096361 | 0.024848 | 0.043485 | 0.054578 | 0.651679 | 0.59259 | 0.580905 | 0.5088 | 0.49327 | 0.479515 | 0 | 0.030045 | 0.293271 | 24,254 | 700 | 159 | 34.648571 | 0.758824 | 0.123196 | 0 | 0.464455 | 0 | 0 | 0.075221 | 0.000995 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047393 | false | 0.00237 | 0.026066 | 0 | 0.085308 | 0.042654 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5e280ff84ed8b441621c5c137faf53691c8d37c | 3,422 | py | Python | Bot/Bot/board.py | Baidi96/AI-Agent-for-Light-Rider | 6ae0cd4ea07248751c0f015ed74123ae3dec33d1 | [
"MIT"
] | 1 | 2019-12-18T08:24:22.000Z | 2019-12-18T08:24:22.000Z | Bot/Bot/board.py | Baidi96/AI-Agent-for-Light-Rider | 6ae0cd4ea07248751c0f015ed74123ae3dec33d1 | [
"MIT"
] | null | null | null | Bot/Bot/board.py | Baidi96/AI-Agent-for-Light-Rider | 6ae0cd4ea07248751c0f015ed74123ae3dec33d1 | [
"MIT"
] | null | null | null | import copy
import sys
PLAYER1, PLAYER2, EMPTY, BLOCKED = [0, 1, 2, 3]
S_PLAYER1, S_PLAYER2, S_EMPTY, S_BLOCKED, = ['0', '1', '.', 'x']
CHARTABLE = [(PLAYER1, S_PLAYER1), (PLAYER2, S_PLAYER2), (EMPTY, S_EMPTY), (BLOCKED, S_BLOCKED)]
DIRS = [
((-1, 0), "up"),
((1, 0), "down"),
((0, 1), "right"),
((0, ... | 29.247863 | 124 | 0.504383 | 457 | 3,422 | 3.636761 | 0.183807 | 0.057762 | 0.033093 | 0.042118 | 0.138387 | 0.104693 | 0.028881 | 0.028881 | 0.028881 | 0 | 0 | 0.018097 | 0.370251 | 3,422 | 116 | 125 | 29.5 | 0.753132 | 0.009643 | 0 | 0.173469 | 0 | 0 | 0.007674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132653 | false | 0.010204 | 0.020408 | 0.010204 | 0.244898 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5e2b128cd1d2cb827ad4460d329a4ebc4a12998 | 884 | py | Python | baekjoon/1012.py | wonnerky/coteMaster | 360e491e6342c1ee42ff49750b838a2ead865613 | [
"Apache-2.0"
] | null | null | null | baekjoon/1012.py | wonnerky/coteMaster | 360e491e6342c1ee42ff49750b838a2ead865613 | [
"Apache-2.0"
] | null | null | null | baekjoon/1012.py | wonnerky/coteMaster | 360e491e6342c1ee42ff49750b838a2ead865613 | [
"Apache-2.0"
] | null | null | null | import sys
sys.setrecursionlimit(10000)
def dfs(r, c):
global visit
visit[r][c] = True
mov = [(-1, 0), (0, -1), (1, 0), (0, 1)]
for i in range(4):
dr, dc = mov[i]
nr, nc = r + dr, c + dc
if 0 <= nr < N and 0 <= nc < M and visit[nr][nc] == False and board[nr][nc] == 1:
... | 27.625 | 90 | 0.417421 | 138 | 884 | 2.644928 | 0.282609 | 0.134247 | 0.109589 | 0.021918 | 0.180822 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042471 | 0.414027 | 884 | 32 | 91 | 27.625 | 0.662162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.034483 | 0 | 0.068966 | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5e2b817212060ef7c5fee7505c4febd057adc71 | 5,827 | py | Python | collection/cp/algorithms-master/python/binary_tree.py | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | 1 | 2019-03-24T13:12:01.000Z | 2019-03-24T13:12:01.000Z | collection/cp/algorithms-master/python/binary_tree.py | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | collection/cp/algorithms-master/python/binary_tree.py | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | """
Binary Tree and basic properties
1. In-Order Traversal
2. Pre-Order Traversal
3. Post-Order Traversal
4. Level-Order Traversal
"""
from collections import deque
class BinaryTree(object):
"""
Representation of a general binary tree
data: value of element
left: Left subtree
right: Right subtree
... | 33.488506 | 120 | 0.579372 | 744 | 5,827 | 4.428763 | 0.157258 | 0.073748 | 0.027314 | 0.030956 | 0.557511 | 0.509863 | 0.509863 | 0.472231 | 0.435812 | 0.395448 | 0 | 0.012182 | 0.351982 | 5,827 | 173 | 121 | 33.682081 | 0.860434 | 0.386477 | 0 | 0.505747 | 0 | 0 | 0.030284 | 0 | 0 | 0 | 0 | 0 | 0.045977 | 1 | 0.091954 | false | 0 | 0.011494 | 0 | 0.16092 | 0.045977 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5e3869d32d3fe51b72766bc724a95897a33b8c9 | 32,841 | py | Python | lightonml/opu.py | lightonai/lightonml | 451327cccecdca4e8ec65df30f30d3fd8ad2194f | [
"Apache-2.0"
] | 27 | 2021-02-24T15:37:20.000Z | 2022-01-12T00:28:22.000Z | lightonml/opu.py | lightonai/lightonml | 451327cccecdca4e8ec65df30f30d3fd8ad2194f | [
"Apache-2.0"
] | 4 | 2021-02-26T12:58:21.000Z | 2021-09-10T09:54:49.000Z | lightonml/opu.py | lightonai/lightonml | 451327cccecdca4e8ec65df30f30d3fd8ad2194f | [
"Apache-2.0"
] | 9 | 2021-02-26T15:58:32.000Z | 2021-06-21T09:18:48.000Z | # Copyright (c) 2020 LightOn, All Rights Reserved.
# This file is subject to the terms and conditions defined in
# file 'LICENSE.txt', which is part of this source code package.
"""
This module contains the OPU class
"""
import time
from math import sqrt
import pkg_resources
from lightonml.encoding.base import NoEnco... | 44.319838 | 114 | 0.645595 | 4,068 | 32,841 | 5.048673 | 0.146264 | 0.017528 | 0.009933 | 0.00779 | 0.384069 | 0.334989 | 0.304996 | 0.300224 | 0.282063 | 0.262392 | 0 | 0.004078 | 0.283152 | 32,841 | 740 | 115 | 44.37973 | 0.86832 | 0.392832 | 0 | 0.23796 | 0 | 0 | 0.114696 | 0.007588 | 0 | 0 | 0 | 0.001351 | 0.031161 | 1 | 0.084986 | false | 0.022663 | 0.07932 | 0.011331 | 0.226629 | 0.014164 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5e5a12f0690f68a0f2da693b51965dfe681eeea | 22,938 | py | Python | scripts/external_libs/scapy-2.4.3/scapy/config.py | timgates42/trex-core | efe94752fcb2d0734c83d4877afe92a3dbf8eccd | [
"Apache-2.0"
] | 956 | 2015-06-24T15:04:55.000Z | 2022-03-30T06:25:04.000Z | scripts/external_libs/scapy-2.4.3/scapy/config.py | angelyouyou/trex-core | fddf78584cae285d9298ef23f9f5c8725e16911e | [
"Apache-2.0"
] | 782 | 2015-09-20T15:19:00.000Z | 2022-03-31T23:52:05.000Z | scripts/external_libs/scapy-2.4.3/scapy/config.py | angelyouyou/trex-core | fddf78584cae285d9298ef23f9f5c8725e16911e | [
"Apache-2.0"
] | 429 | 2015-06-27T19:34:21.000Z | 2022-03-23T11:02:51.000Z | # This file is part of Scapy
# See http://www.secdev.org/projects/scapy for more information
# Copyright (C) Philippe Biondi <phil@secdev.org>
# This program is published under a GPLv2 license
"""
Implementation of the configuration object.
"""
from __future__ import absolute_import
from __future__ import print_funct... | 33.584187 | 122 | 0.624161 | 2,856 | 22,938 | 4.82423 | 0.22479 | 0.012774 | 0.006387 | 0.00871 | 0.146973 | 0.119756 | 0.097692 | 0.085426 | 0.06358 | 0.06358 | 0 | 0.017981 | 0.275046 | 22,938 | 682 | 123 | 33.633431 | 0.810572 | 0.187287 | 0 | 0.171717 | 0 | 0 | 0.064815 | 0.002007 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131313 | false | 0.008081 | 0.074747 | 0.016162 | 0.523232 | 0.00404 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5e70f438163ee68472f800dcc1f45bfb446e30f | 5,797 | py | Python | tests/base/test_server.py | Prodigy123/rasa_nlu_zh | b85717063a493f6b148504ee550a0642c6c379ae | [
"Apache-2.0"
] | 4 | 2017-07-20T03:06:29.000Z | 2021-04-20T03:25:17.000Z | tests/base/test_server.py | imsakshi/rasa_nlu | 6dafc37825b99139248fdea9e9745f416734d4dd | [
"Apache-2.0"
] | null | null | null | tests/base/test_server.py | imsakshi/rasa_nlu | 6dafc37825b99139248fdea9e9745f416734d4dd | [
"Apache-2.0"
] | 2 | 2017-10-03T00:56:22.000Z | 2018-08-15T10:41:41.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import tempfile
import pytest
import time
from treq.testing import StubTreq
from rasa_nlu.config import RasaNLUConfig
import json
import io
fr... | 32.205556 | 104 | 0.656719 | 709 | 5,797 | 5.19464 | 0.234133 | 0.036655 | 0.048873 | 0.068422 | 0.503665 | 0.473799 | 0.459408 | 0.437958 | 0.3489 | 0.309802 | 0 | 0.01256 | 0.203381 | 5,797 | 179 | 105 | 32.385475 | 0.784972 | 0.030533 | 0 | 0.461538 | 0 | 0 | 0.247185 | 0.020912 | 0 | 0 | 0 | 0 | 0.125874 | 1 | 0.076923 | false | 0 | 0.097902 | 0 | 0.188811 | 0.006993 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5e7507528f57c95fde0e247aa2531f1d8579112 | 15,277 | py | Python | bugsnag/configuration.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | null | null | null | bugsnag/configuration.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | null | null | null | bugsnag/configuration.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | null | null | null | import os
import platform
import socket
import sysconfig
from typing import List, Any, Tuple, Union
import warnings
from bugsnag.sessiontracker import SessionMiddleware
from bugsnag.middleware import DefaultMiddleware, MiddlewareStack
from bugsnag.utils import (fully_qualified_class_name, validate_str_setter,
... | 31.695021 | 99 | 0.636185 | 1,714 | 15,277 | 5.456243 | 0.163944 | 0.023952 | 0.02021 | 0.027802 | 0.313195 | 0.155796 | 0.13719 | 0.066082 | 0.026946 | 0.015825 | 0 | 0.001204 | 0.292989 | 15,277 | 481 | 100 | 31.760915 | 0.864642 | 0.199057 | 0 | 0.173913 | 0 | 0 | 0.044747 | 0.008791 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170569 | false | 0.003344 | 0.046823 | 0.006689 | 0.317726 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5e7f6433ef2aafee2885217cc2a65201e60c31e | 587 | py | Python | secret_injector/secret.py | failk8s/failk8s-operator | 457890a09a2551b9002eec73386b11a37469569f | [
"Apache-2.0"
] | null | null | null | secret_injector/secret.py | failk8s/failk8s-operator | 457890a09a2551b9002eec73386b11a37469569f | [
"Apache-2.0"
] | null | null | null | secret_injector/secret.py | failk8s/failk8s-operator | 457890a09a2551b9002eec73386b11a37469569f | [
"Apache-2.0"
] | null | null | null | import kopf
from .functions import global_logger, reconcile_secret
@kopf.on.event("", "v1", "secrets")
def injector_secret_event(type, event, logger, **_):
obj = event["object"]
namespace = obj["metadata"]["namespace"]
name = obj["metadata"]["name"]
# If secret already exists, indicated by type bein... | 30.894737 | 67 | 0.67632 | 77 | 587 | 5.064935 | 0.597403 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002146 | 0.206133 | 587 | 18 | 68 | 32.611111 | 0.834764 | 0.289608 | 0 | 0 | 0 | 0 | 0.138015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5e86c6edc684a9da3a98d63325e3f3c6ab77abb | 25,390 | py | Python | src/py/gee/utils.py | openforis/collectearthonline | 1af48e373c393a1d8c48b17472f6aa6c41f65769 | [
"MIT"
] | null | null | null | src/py/gee/utils.py | openforis/collectearthonline | 1af48e373c393a1d8c48b17472f6aa6c41f65769 | [
"MIT"
] | null | null | null | src/py/gee/utils.py | openforis/collectearthonline | 1af48e373c393a1d8c48b17472f6aa6c41f65769 | [
"MIT"
] | null | null | null | import datetime
import os
import ee
import math
import sys
import json
from ee.ee_exception import EEException
from gee.inputs import getLandsat, getS1
########## Helper functions ##########
def initialize(ee_account='', ee_key_path=''):
try:
if ee_account and ee_key_path and os.path.exis... | 38.704268 | 130 | 0.605593 | 2,617 | 25,390 | 5.838365 | 0.185327 | 0.032463 | 0.021598 | 0.014137 | 0.387394 | 0.317691 | 0.278814 | 0.252634 | 0.236861 | 0.213496 | 0 | 0.038154 | 0.24746 | 25,390 | 655 | 131 | 38.763359 | 0.761501 | 0.035841 | 0 | 0.294231 | 0 | 0.059615 | 0.12065 | 0.026416 | 0 | 0 | 0 | 0.001527 | 0 | 1 | 0.094231 | false | 0.003846 | 0.015385 | 0.015385 | 0.244231 | 0.001923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5e8cedec4a5704ab1636f88d9b806e93b86ff8a | 1,186 | py | Python | userManagement/management/urls.py | shubhamguptaorg/user_managementl | ad98e0e4886d9b0547b05ae424c10d8f6268d470 | [
"MIT"
] | null | null | null | userManagement/management/urls.py | shubhamguptaorg/user_managementl | ad98e0e4886d9b0547b05ae424c10d8f6268d470 | [
"MIT"
] | 4 | 2021-03-19T03:22:44.000Z | 2022-03-11T23:58:10.000Z | userManagement/management/urls.py | shubhamguptaorg/user_managementl | ad98e0e4886d9b0547b05ae424c10d8f6268d470 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path,include
from django.views.generic import TemplateView
from .views import Index,SignUp,UserDashboard,AdminDashboard,logout,showAdminData,deleteuser,activeUser,deactiveUser,UserDetailEdit,uploadImage
# from .views import Index,UserDashboard,SignUp,AdminDashboa... | 49.416667 | 143 | 0.764755 | 122 | 1,186 | 7.377049 | 0.270492 | 0.04 | 0.066667 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080101 | 1,186 | 23 | 144 | 51.565217 | 0.824931 | 0.077572 | 0 | 0 | 0 | 0 | 0.331193 | 0.156881 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5e96b9312873b5f396a18010caddd4d11bd8888 | 16,962 | py | Python | sickbeard/lib/hachoir_parser/container/riff.py | Branlala/docker-sickbeardfr | 3ac85092dc4cc8a4171fb3c83e9682162245e13e | [
"MIT"
] | null | null | null | sickbeard/lib/hachoir_parser/container/riff.py | Branlala/docker-sickbeardfr | 3ac85092dc4cc8a4171fb3c83e9682162245e13e | [
"MIT"
] | null | null | null | sickbeard/lib/hachoir_parser/container/riff.py | Branlala/docker-sickbeardfr | 3ac85092dc4cc8a4171fb3c83e9682162245e13e | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
"""
RIFF parser, able to parse:
* AVI video container
* WAV audio container
* CDA file
Documents:
- libavformat source code from ffmpeg library
http://ffmpeg.mplayerhq.hu/
- Video for Windows Programmer's Guide
http://www.opennet.ru/docs/formats/avi.txt
- What is an animated curso... | 38.55 | 103 | 0.614432 | 2,069 | 16,962 | 4.958434 | 0.212663 | 0.054586 | 0.076031 | 0.00926 | 0.172336 | 0.107905 | 0.064919 | 0.058485 | 0.035676 | 0.027878 | 0 | 0.027067 | 0.242012 | 16,962 | 439 | 104 | 38.637813 | 0.770864 | 0.092619 | 0 | 0.147929 | 0 | 0 | 0.274117 | 0.001633 | 0 | 0 | 0.000392 | 0.002278 | 0 | 1 | 0.085799 | false | 0 | 0.026627 | 0 | 0.210059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5eb56662663b212c6709a52f8fbe61a75880b3c | 800 | py | Python | tools/ldbc_benchmark/neo4j/load_scripts/time_index.py | carlboudreau007/ecosys | d415143837a85ceb6213a0f0588128a86a4a3984 | [
"Apache-2.0"
] | 245 | 2018-04-07T00:14:56.000Z | 2022-03-28T05:51:35.000Z | tools/ldbc_benchmark/neo4j/load_scripts/time_index.py | carlboudreau007/ecosys | d415143837a85ceb6213a0f0588128a86a4a3984 | [
"Apache-2.0"
] | 47 | 2018-04-02T16:41:22.000Z | 2022-03-24T01:40:46.000Z | tools/ldbc_benchmark/neo4j/load_scripts/time_index.py | carlboudreau007/ecosys | d415143837a85ceb6213a0f0588128a86a4a3984 | [
"Apache-2.0"
] | 140 | 2018-08-09T15:54:47.000Z | 2022-03-30T12:44:48.000Z | from datetime import datetime
with open('/home/neo4j/neo4j-community-3.5.1/logs/debug.log', 'r') as log:
begin = []
end = []
for line in log:
if 'Index population started' in line:
begin.append(line[:23])
elif 'Index creation finished' in line:
end.append(line[:23])
if len(begin) == 0 or le... | 34.782609 | 77 | 0.6175 | 128 | 800 | 3.796875 | 0.46875 | 0.065844 | 0.049383 | 0.016461 | 0.032922 | 0.032922 | 0.032922 | 0.032922 | 0 | 0 | 0 | 0.021807 | 0.1975 | 800 | 22 | 78 | 36.363636 | 0.735202 | 0 | 0 | 0 | 0 | 0 | 0.28375 | 0.06 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5ec93a99d9c113668c2693c8d65499328f692cd | 1,489 | py | Python | zf-setup.py | Ziki2001/new-school-sdk | b606e666888e1c9813e2f1a6a64bbede3744026e | [
"MIT"
] | null | null | null | zf-setup.py | Ziki2001/new-school-sdk | b606e666888e1c9813e2f1a6a64bbede3744026e | [
"MIT"
] | null | null | null | zf-setup.py | Ziki2001/new-school-sdk | b606e666888e1c9813e2f1a6a64bbede3744026e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
:file: setup.py
:author: -Farmer
:url: https://blog.farmer233.top
:date: 2021/09/20 11:11:54
'''
from os import path
from setuptools import setup, find_packages
basedir = path.abspath(path.dirname(__file__))
with open(path.join(basedir, "README.md"), encoding='utf-8') as f... | 26.589286 | 70 | 0.620551 | 172 | 1,489 | 5.244186 | 0.662791 | 0.066519 | 0.02439 | 0.066519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021701 | 0.226326 | 1,489 | 56 | 71 | 26.589286 | 0.761285 | 0.126931 | 0 | 0 | 0 | 0 | 0.403454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051282 | 0 | 0.051282 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5edd2119227be04c5621c163a6292b04c441de0 | 10,716 | py | Python | tcex/services/api_service.py | kdeltared/tcex | 818c0d09256764f871e42d9ca5916f92d941d882 | [
"Apache-2.0"
] | null | null | null | tcex/services/api_service.py | kdeltared/tcex | 818c0d09256764f871e42d9ca5916f92d941d882 | [
"Apache-2.0"
] | null | null | null | tcex/services/api_service.py | kdeltared/tcex | 818c0d09256764f871e42d9ca5916f92d941d882 | [
"Apache-2.0"
] | null | null | null | """TcEx Framework API Service module."""
# standard library
import json
import sys
import threading
import traceback
from io import BytesIO
from typing import Any
from .common_service import CommonService
class ApiService(CommonService):
"""TcEx Framework API Service module."""
def __init__(self, tcex: obje... | 38.271429 | 100 | 0.535741 | 1,131 | 10,716 | 4.971706 | 0.220159 | 0.028632 | 0.019918 | 0.04695 | 0.295038 | 0.27014 | 0.254846 | 0.223546 | 0.201672 | 0.176774 | 0 | 0.004131 | 0.344905 | 10,716 | 279 | 101 | 38.408602 | 0.796866 | 0.205767 | 0 | 0.216374 | 0 | 0.005848 | 0.196624 | 0.041271 | 0 | 0 | 0 | 0.003584 | 0 | 1 | 0.046784 | false | 0 | 0.040936 | 0 | 0.122807 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5ee43eaf3c3033dcd289654572ab9b3e0e7b99a | 1,540 | py | Python | mmpose/core/optimizer/builder.py | vsatyakumar/mmpose | 2fffccb19dad3b59184b41be94653f75523b8585 | [
"Apache-2.0"
] | 1 | 2021-05-06T08:40:13.000Z | 2021-05-06T08:40:13.000Z | mmpose/core/optimizer/builder.py | CV-IP/mmpose | 3ef8e6dbbeb6262b7ed6c51faa74b83c23f4c6a1 | [
"Apache-2.0"
] | null | null | null | mmpose/core/optimizer/builder.py | CV-IP/mmpose | 3ef8e6dbbeb6262b7ed6c51faa74b83c23f4c6a1 | [
"Apache-2.0"
] | null | null | null | from mmcv.runner import build_optimizer
def build_optimizers(model, cfgs):
"""Build multiple optimizers from configs.
If `cfgs` contains several dicts for optimizers, then a dict for each
constructed optimizers will be returned.
If `cfgs` only contains one optimizer config, the constructed optimizer
... | 29.056604 | 78 | 0.635065 | 190 | 1,540 | 5.105263 | 0.378947 | 0.051546 | 0.097938 | 0.040206 | 0.124742 | 0.109278 | 0.049485 | 0 | 0 | 0 | 0 | 0.005249 | 0.257792 | 1,540 | 52 | 79 | 29.615385 | 0.843395 | 0.627922 | 0 | 0 | 0 | 0 | 0.012658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5efef002e68abbec6057f8677301ab26bdc9a66 | 16,846 | py | Python | custom_train.py | shirley-wu/text_to_table | 44cb100b8ff2543b5b4efe1461502c00c34ef846 | [
"MIT"
] | 3 | 2022-03-17T05:55:23.000Z | 2022-03-30T08:34:14.000Z | custom_train.py | shirley-wu/text_to_table | 44cb100b8ff2543b5b4efe1461502c00c34ef846 | [
"MIT"
] | 1 | 2022-03-30T09:04:54.000Z | 2022-03-30T09:04:54.000Z | custom_train.py | shirley-wu/text_to_table | 44cb100b8ff2543b5b4efe1461502c00c34ef846 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3 -u
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Train a new model on one or across multiple GPUs.
"""
import collections
import logging
import math
import os
im... | 36.306034 | 114 | 0.633919 | 2,120 | 16,846 | 4.789623 | 0.171226 | 0.022848 | 0.012803 | 0.011818 | 0.348533 | 0.293776 | 0.219125 | 0.200315 | 0.167323 | 0.143983 | 0 | 0.003597 | 0.273893 | 16,846 | 463 | 115 | 36.384449 | 0.826521 | 0.10038 | 0 | 0.208092 | 0 | 0 | 0.06815 | 0.007087 | 0 | 0 | 0 | 0 | 0.00289 | 1 | 0.034682 | false | 0 | 0.046243 | 0.00578 | 0.124277 | 0.00578 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5f13f54fb0bf75e7d45a4d1bb426a38fb3fb255 | 3,403 | py | Python | visualization.py | shyhyawJou/GradCAM-pytorch | 8159f077552fc71055fe97c17bf8544d32cc8b0f | [
"Apache-2.0"
] | null | null | null | visualization.py | shyhyawJou/GradCAM-pytorch | 8159f077552fc71055fe97c17bf8544d32cc8b0f | [
"Apache-2.0"
] | null | null | null | visualization.py | shyhyawJou/GradCAM-pytorch | 8159f077552fc71055fe97c17bf8544d32cc8b0f | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
from torch.nn import functional as F
from PIL import Image
import cv2 as cv
from matplotlib import cm
import numpy as np
class GradCAM:
"""
#### Args:
layer_name: module name (not child name), if None,
will use the last layer befor... | 34.72449 | 85 | 0.528945 | 416 | 3,403 | 4.151442 | 0.300481 | 0.062536 | 0.034742 | 0.015055 | 0.104227 | 0.08454 | 0.061378 | 0.032426 | 0.032426 | 0.032426 | 0 | 0.015242 | 0.363797 | 3,403 | 97 | 86 | 35.082474 | 0.782448 | 0.083162 | 0 | 0.117647 | 0 | 0 | 0.034771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073529 | false | 0 | 0.102941 | 0 | 0.220588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5f302c5d8d693812839ea69e155909e598db642 | 19,149 | py | Python | frame_2D_alg/alternative versions/intra_blob_xy.py | Mechachleopteryx/CogAlg | 723104e1f57010e52f1dc249ba53ba58db0a991b | [
"MIT"
] | null | null | null | frame_2D_alg/alternative versions/intra_blob_xy.py | Mechachleopteryx/CogAlg | 723104e1f57010e52f1dc249ba53ba58db0a991b | [
"MIT"
] | null | null | null | frame_2D_alg/alternative versions/intra_blob_xy.py | Mechachleopteryx/CogAlg | 723104e1f57010e52f1dc249ba53ba58db0a991b | [
"MIT"
] | null | null | null | '''
2D version of 1st-level algorithm is a combination of frame_blobs, intra_blob, and comp_P: optional raster-to-vector conversion.
intra_blob recursively evaluates each blob for two forks of extended internal cross-comparison and sub-clustering:
der+: incremental derivation cross-comp in high-variati... | 44.740654 | 144 | 0.576584 | 2,827 | 19,149 | 3.700035 | 0.140785 | 0.034417 | 0.024092 | 0.005736 | 0.225621 | 0.205736 | 0.190153 | 0.16262 | 0.142925 | 0.139866 | 0 | 0.016623 | 0.318293 | 19,149 | 428 | 145 | 44.740654 | 0.784664 | 0.353804 | 0 | 0.293729 | 0 | 0 | 0.001977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026403 | false | 0 | 0.029703 | 0 | 0.224422 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5f35dd267171d89db5d5ed7c57d46dbcf723ae2 | 2,502 | py | Python | polecat/db/sql/expression/values.py | furious-luke/polecat | 7be5110f76dc42b15c922c1bb7d49220e916246d | [
"MIT"
] | 4 | 2019-08-10T12:56:12.000Z | 2020-01-21T09:51:20.000Z | polecat/db/sql/expression/values.py | furious-luke/polecat | 7be5110f76dc42b15c922c1bb7d49220e916246d | [
"MIT"
] | 71 | 2019-04-09T05:39:21.000Z | 2020-05-16T23:09:24.000Z | polecat/db/sql/expression/values.py | furious-luke/polecat | 7be5110f76dc42b15c922c1bb7d49220e916246d | [
"MIT"
] | null | null | null | from functools import partial
from polecat.db.query import query as query_module
from psycopg2.sql import SQL, Placeholder
from .expression import Expression
class Values(Expression):
def __init__(self, values, relation=None):
self.values = values
self.relation = relation
self.keyword = ... | 34.75 | 79 | 0.61311 | 304 | 2,502 | 4.713816 | 0.151316 | 0.138172 | 0.092114 | 0.044662 | 0.406141 | 0.36776 | 0.291696 | 0.177251 | 0.121424 | 0.066992 | 0 | 0.00057 | 0.298961 | 2,502 | 71 | 80 | 35.239437 | 0.81642 | 0 | 0 | 0.213115 | 0 | 0 | 0.008393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114754 | false | 0 | 0.065574 | 0 | 0.327869 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5f3f84aa262b2485923b0060a6795013deae56c | 1,292 | py | Python | python/day3p1.py | swilcox/2019adventofcode | b67261aae74805ba8c2f4b72f09dd79277224ebb | [
"MIT"
] | 1 | 2020-01-18T18:24:18.000Z | 2020-01-18T18:24:18.000Z | python/day3p1.py | swilcox/2019adventofcode | b67261aae74805ba8c2f4b72f09dd79277224ebb | [
"MIT"
] | null | null | null | python/day3p1.py | swilcox/2019adventofcode | b67261aae74805ba8c2f4b72f09dd79277224ebb | [
"MIT"
] | null | null | null | # 2019 advent day 3
MOVES = {
'R': (lambda x: (x[0], x[1] + 1)),
'L': (lambda x: (x[0], x[1] - 1)),
'U': (lambda x: (x[0] + 1, x[1])),
'D': (lambda x: (x[0] - 1, x[1])),
}
def build_route(directions: list) -> list:
current_location = (0, 0)
route = []
for d in directions:
directio... | 26.367347 | 79 | 0.600619 | 198 | 1,292 | 3.787879 | 0.464646 | 0.066667 | 0.042667 | 0.048 | 0.064 | 0.064 | 0.064 | 0 | 0 | 0 | 0 | 0.112512 | 0.202012 | 1,292 | 48 | 80 | 26.916667 | 0.614937 | 0.200464 | 0 | 0 | 0 | 0 | 0.026341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0 | 0.074074 | 0.259259 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5f42d830df55813fe6234674e4d597dccbd7f59 | 1,054 | py | Python | examples/demo/python/catalog.py | JavDomGom/mist | 83ae9f67df61ff2387a7d424cff0f8591a6a645f | [
"Apache-2.0"
] | 1 | 2021-04-23T17:13:31.000Z | 2021-04-23T17:13:31.000Z | examples/demo/python/catalog.py | JavDomGom/mist | 83ae9f67df61ff2387a7d424cff0f8591a6a645f | [
"Apache-2.0"
] | null | null | null | examples/demo/python/catalog.py | JavDomGom/mist | 83ae9f67df61ff2387a7d424cff0f8591a6a645f | [
"Apache-2.0"
] | null | null | null | import asyncio
async def searchDomains(domain, q):
domains = []
proc = await asyncio.create_subprocess_shell(f"dnsrecon -d {domain} -t crt", stdout=asyncio.subprocess.PIPE)
line = True
while line:
line = (await proc.stdout.readline()).decode('utf-8')
fields = line.split()
if len... | 36.344828 | 112 | 0.588235 | 133 | 1,054 | 4.631579 | 0.368421 | 0.045455 | 0.051948 | 0.071429 | 0.642857 | 0.603896 | 0.506494 | 0.383117 | 0.383117 | 0.383117 | 0 | 0.016645 | 0.259013 | 1,054 | 28 | 113 | 37.642857 | 0.772087 | 0 | 0 | 0.384615 | 0 | 0 | 0.091082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d5f5d714834d96889f873a0d7ec900fdf1926bca | 21,522 | py | Python | geomstats/geometry/riemannian_metric.py | stefanheyder/geomstats | c4e6d959db7b1bcc99b00b535b8aa5d832b62e28 | [
"MIT"
] | null | null | null | geomstats/geometry/riemannian_metric.py | stefanheyder/geomstats | c4e6d959db7b1bcc99b00b535b8aa5d832b62e28 | [
"MIT"
] | null | null | null | geomstats/geometry/riemannian_metric.py | stefanheyder/geomstats | c4e6d959db7b1bcc99b00b535b8aa5d832b62e28 | [
"MIT"
] | null | null | null | """Riemannian and pseudo-Riemannian metrics."""
import math
import warnings
import autograd
import geomstats.backend as gs
from geomstats.geometry.connection import Connection
EPSILON = 1e-4
N_CENTERS = 10
TOLERANCE = 1e-5
N_REPETITIONS = 20
N_MAX_ITERATIONS = 50000
N_STEPS = 10
def loss(y_pred, y_true, metric):... | 33.315789 | 79 | 0.557987 | 2,505 | 21,522 | 4.552495 | 0.120559 | 0.038583 | 0.038057 | 0.040775 | 0.472466 | 0.372939 | 0.334883 | 0.273413 | 0.257804 | 0.215714 | 0 | 0.010714 | 0.349456 | 21,522 | 645 | 80 | 33.367442 | 0.8038 | 0.232599 | 0 | 0.243077 | 0 | 0 | 0.049 | 0.003026 | 0 | 0 | 0 | 0.003101 | 0.012308 | 1 | 0.064615 | false | 0 | 0.015385 | 0 | 0.153846 | 0.009231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |