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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5401d3f8943311c53015fddf7d9a9c7b00d0c8d8 | 6,784 | py | Python | solver.py | IvoryCandy/char-rnn | a21f3b198770c6c9bef0171bf31b2a1710066da8 | [
"Apache-2.0"
] | null | null | null | solver.py | IvoryCandy/char-rnn | a21f3b198770c6c9bef0171bf31b2a1710066da8 | [
"Apache-2.0"
] | null | null | null | solver.py | IvoryCandy/char-rnn | a21f3b198770c6c9bef0171bf31b2a1710066da8 | [
"Apache-2.0"
] | null | null | null | import math
import numpy as np
import torch
from torch import nn
from torch.backends import cudnn
from torch.utils.data import DataLoader
from tqdm import tqdm
from model import CharRNN
from data import TextDataset, TextConverter
class Trainer(object):
def __init__(self, args):
self.args = args
... | 31.849765 | 119 | 0.599204 | 899 | 6,784 | 4.3604 | 0.186874 | 0.05102 | 0.021429 | 0.018367 | 0.296429 | 0.278571 | 0.255102 | 0.220918 | 0.186224 | 0.186224 | 0 | 0.006792 | 0.283756 | 6,784 | 213 | 120 | 31.849765 | 0.799959 | 0.030513 | 0 | 0.197531 | 0 | 0 | 0.029567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135802 | false | 0 | 0.055556 | 0.018519 | 0.234568 | 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 |
540226b4bbeda54cd1c6e6f8ca8daa02d21b75b8 | 17,360 | py | Python | mayday_control/scripts/motion_control.py | LasseBoerresen/Mayday | 3e40d9f3eb2727f78cfa915e19fb5706b6a53514 | [
"MIT"
] | 2 | 2020-08-20T15:44:44.000Z | 2021-09-27T07:21:59.000Z | mayday_control/scripts/motion_control.py | LasseBoerresen/Mayday | 3e40d9f3eb2727f78cfa915e19fb5706b6a53514 | [
"MIT"
] | 9 | 2018-03-02T15:21:22.000Z | 2020-11-07T12:23:09.000Z | mayday_control/scripts/motion_control.py | LasseBoerresen/Mayday | 3e40d9f3eb2727f78cfa915e19fb5706b6a53514 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import time
import random
import math
import unittest
import numpy as np
import pandas as pd
import std_msgs
from std_msgs.msg import String
# from control_msgs.msg import JointControllerState
# from gazebo_msgs.msg import LinkStates
# import matplotlib.pyplot as plt
import dynamixel_adapter
##... | 33.643411 | 120 | 0.589286 | 2,240 | 17,360 | 4.383036 | 0.229464 | 0.027704 | 0.022815 | 0.025973 | 0.220717 | 0.166327 | 0.161438 | 0.131697 | 0.093196 | 0.08189 | 0 | 0.011863 | 0.300749 | 17,360 | 515 | 121 | 33.708738 | 0.796936 | 0.634101 | 0 | 0.211009 | 0 | 0.009174 | 0.099348 | 0.012859 | 0 | 0 | 0 | 0.009709 | 0 | 1 | 0.091743 | false | 0.018349 | 0.12844 | 0 | 0.247706 | 0.018349 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5402f5bc7398b19a2c1f22b4890e4f4b84f51e3e | 10,278 | py | Python | venv/lib/python3.9/site-packages/trio/socket.py | almmello/frozen | c9928491f694b56a0023926bc763c703ba1fd75a | [
"BSD-2-Clause"
] | 3 | 2022-02-26T17:16:34.000Z | 2022-03-04T15:04:00.000Z | venv/lib/python3.9/site-packages/trio/socket.py | almmello/frozen | c9928491f694b56a0023926bc763c703ba1fd75a | [
"BSD-2-Clause"
] | 20 | 2021-05-03T18:02:23.000Z | 2022-03-12T12:01:04.000Z | venv/lib/python3.9/site-packages/trio/socket.py | almmello/frozen | c9928491f694b56a0023926bc763c703ba1fd75a | [
"BSD-2-Clause"
] | 1 | 2022-03-28T09:19:34.000Z | 2022-03-28T09:19:34.000Z | # This is a public namespace, so we don't want to expose any non-underscored
# attributes that aren't actually part of our public API. But it's very
# annoying to carefully always use underscored names for module-level
# temporaries, imports, etc. when implementing the module. So we put the
# implementation in an under... | 48.481132 | 84 | 0.748784 | 1,498 | 10,278 | 4.695594 | 0.400534 | 0.021325 | 0.012511 | 0.007251 | 0.041513 | 0.024737 | 0.024737 | 0.024737 | 0.024737 | 0.024737 | 0 | 0.019342 | 0.190115 | 10,278 | 211 | 85 | 48.7109 | 0.825685 | 0.167542 | 0 | 0.090361 | 0 | 0 | 0.005046 | 0 | 0 | 0 | 0.000587 | 0 | 0 | 1 | 0 | false | 0.03012 | 0.090361 | 0 | 0.090361 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
54036005b75aaa482dfeae48fd25d054393283e1 | 2,258 | py | Python | tests/test_encoders.py | alxlampe/d3rlpy | af7e6bd018a51f95138d121f59c50dc36ec87e3a | [
"MIT"
] | null | null | null | tests/test_encoders.py | alxlampe/d3rlpy | af7e6bd018a51f95138d121f59c50dc36ec87e3a | [
"MIT"
] | null | null | null | tests/test_encoders.py | alxlampe/d3rlpy | af7e6bd018a51f95138d121f59c50dc36ec87e3a | [
"MIT"
] | null | null | null | import pytest
from d3rlpy.models.torch.encoders import PixelEncoder
from d3rlpy.models.torch.encoders import PixelEncoderWithAction
from d3rlpy.models.torch.encoders import VectorEncoder
from d3rlpy.models.torch.encoders import VectorEncoderWithAction
from d3rlpy.encoders import create_encoder_factory
from d3rlpy.enco... | 35.84127 | 77 | 0.740478 | 242 | 2,258 | 6.714876 | 0.18595 | 0.086154 | 0.090462 | 0.051692 | 0.611077 | 0.578462 | 0.452923 | 0.452923 | 0.452923 | 0.377846 | 0 | 0.009009 | 0.164305 | 2,258 | 62 | 78 | 36.419355 | 0.852146 | 0 | 0 | 0.382979 | 0 | 0 | 0.054473 | 0 | 0 | 0 | 0 | 0 | 0.255319 | 1 | 0.06383 | false | 0 | 0.170213 | 0 | 0.234043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5406dab8bc4f61a6b8581ae628a67e2632c2d5cd | 2,217 | py | Python | cam/03_face_recognition.py | kimtaehoho/osscap2020 | 7980ab742a1a90fb4405eeabe941504a0b859d20 | [
"Apache-2.0"
] | null | null | null | cam/03_face_recognition.py | kimtaehoho/osscap2020 | 7980ab742a1a90fb4405eeabe941504a0b859d20 | [
"Apache-2.0"
] | 10 | 2020-10-12T04:45:01.000Z | 2020-11-29T12:40:55.000Z | cam/03_face_recognition.py | kimtaehoho/osscap2020 | 7980ab742a1a90fb4405eeabe941504a0b859d20 | [
"Apache-2.0"
] | 1 | 2020-10-12T12:28:42.000Z | 2020-10-12T12:28:42.000Z | # -*- coding: utf-8 -*-
#import game
from glob import glob
file1 = glob("01_face_dataset.py")
file2 = glob("02_face_training.py")
import facedataset
import facetrain
import cv2
import numpy as np
import os
from PIL import Image
#facedataset.first()
#facetrain.second()
recognizer = cv2.face.LBPHFaceRecognizer_create()
... | 28.063291 | 81 | 0.620207 | 314 | 2,217 | 4.347134 | 0.493631 | 0.004396 | 0.03663 | 0.045421 | 0.068864 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0.055981 | 0.234551 | 2,217 | 78 | 82 | 28.423077 | 0.748379 | 0.233649 | 0 | 0.040816 | 0 | 0 | 0.106142 | 0.028623 | 0 | 0 | 0.002385 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
540828fed7b9b1cf90bafa38feea72b4a282cfd0 | 1,047 | py | Python | deprecated/dpr/code/encoder.py | eunaoeh/mrc-level2-nlp-01 | caa893ca7d689200b3528377901d59fa9ca452ac | [
"MIT"
] | 1 | 2021-11-25T04:30:51.000Z | 2021-11-25T04:30:51.000Z | deprecated/dpr/code/encoder.py | eunaoeh/mrc-level2-nlp-01 | caa893ca7d689200b3528377901d59fa9ca452ac | [
"MIT"
] | null | null | null | deprecated/dpr/code/encoder.py | eunaoeh/mrc-level2-nlp-01 | caa893ca7d689200b3528377901d59fa9ca452ac | [
"MIT"
] | 5 | 2021-11-21T22:53:40.000Z | 2022-02-23T09:22:25.000Z | from transformers import (
RobertaModel,
RobertaPreTrainedModel,
BertModel,
BertPreTrainedModel,
)
class BertEncoder(BertPreTrainedModel):
def __init__(self, config):
super(BertEncoder, self).__init__(config)
self.bert = BertModel(config)
self.init_weights()
def forwa... | 25.536585 | 83 | 0.685769 | 113 | 1,047 | 5.964602 | 0.274336 | 0.115727 | 0.106825 | 0.124629 | 0.608309 | 0.543027 | 0.543027 | 0.543027 | 0.543027 | 0.543027 | 0 | 0.002494 | 0.234002 | 1,047 | 40 | 84 | 26.175 | 0.837905 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.035714 | 0 | 0.321429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5408382e17eaa39a39eec48a1a272c02bf244807 | 3,395 | py | Python | tutorial/calculator/calculator.002.py | UltraStudioLTD/pyTermTk | a1e96b0e7f43906b9fda0b16f19f427919a055c2 | [
"MIT"
] | 1 | 2022-02-28T16:33:25.000Z | 2022-02-28T16:33:25.000Z | tutorial/calculator/calculator.002.py | UltraStudioLTD/pyTermTk | a1e96b0e7f43906b9fda0b16f19f427919a055c2 | [
"MIT"
] | null | null | null | tutorial/calculator/calculator.002.py | UltraStudioLTD/pyTermTk | a1e96b0e7f43906b9fda0b16f19f427919a055c2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# MIT License
#
# Copyright (c) 2022 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restricti... | 40.903614 | 86 | 0.742268 | 539 | 3,395 | 4.675325 | 0.404453 | 0.107143 | 0.1 | 0.122222 | 0.173413 | 0.103968 | 0 | 0 | 0 | 0 | 0 | 0.03111 | 0.147865 | 3,395 | 82 | 87 | 41.402439 | 0.839959 | 0.564065 | 0 | 0 | 0 | 0 | 0.02772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030303 | 0 | 0.030303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
540dd2561e2691981ca01c923a08b27ff3e24e2d | 2,106 | py | Python | builder/schedule.py | MyConbook/datatool | 1c12bb5124b48ae827c4832896fd81bf711ad44e | [
"Apache-2.0"
] | null | null | null | builder/schedule.py | MyConbook/datatool | 1c12bb5124b48ae827c4832896fd81bf711ad44e | [
"Apache-2.0"
] | null | null | null | builder/schedule.py | MyConbook/datatool | 1c12bb5124b48ae827c4832896fd81bf711ad44e | [
"Apache-2.0"
] | null | null | null | import icalendar
import urllib2
import hashlib
import string
import re
import datetime
from database import Database, TableHandler
class Schedule(TableHandler):
columns = [("Title", Database.C_TCN), "Description", ("Category", Database.C_TCN), ("Location", Database.C_TCN), ("StartDate", Database.C_D), ("EndDate", Dat... | 30.085714 | 169 | 0.7132 | 271 | 2,106 | 5.394834 | 0.402214 | 0.028728 | 0.04104 | 0.0342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003398 | 0.161443 | 2,106 | 69 | 170 | 30.521739 | 0.824462 | 0.048908 | 0 | 0 | 0 | 0 | 0.079119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072727 | false | 0 | 0.127273 | 0 | 0.254545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
540f2aeaaaa0eee405144a0e73dbe2a9199426b2 | 1,697 | py | Python | Search in a Binary Search Tree.py | frank0215/Leetcode_python | 9428ded4f9abd347b12bfef8aa1dd2d177f3afea | [
"MIT"
] | null | null | null | Search in a Binary Search Tree.py | frank0215/Leetcode_python | 9428ded4f9abd347b12bfef8aa1dd2d177f3afea | [
"MIT"
] | null | null | null | Search in a Binary Search Tree.py | frank0215/Leetcode_python | 9428ded4f9abd347b12bfef8aa1dd2d177f3afea | [
"MIT"
] | null | null | null | class TreeNode:
def __init__(self, val, left=None, right=None):
self.val = val
self.right = right
self.left = left
class Solution:
def searchBST(self, root, val):
# if not root:
# return None
# if root.val == val:
# return root
... | 23.569444 | 74 | 0.446081 | 189 | 1,697 | 3.941799 | 0.169312 | 0.072483 | 0.107383 | 0.112752 | 0.473826 | 0.334228 | 0.320805 | 0.320805 | 0.320805 | 0.320805 | 0 | 0.021231 | 0.444903 | 1,697 | 72 | 75 | 23.569444 | 0.769639 | 0.418385 | 0 | 0 | 0 | 0 | 0.008421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0 | 0 | 0.315789 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
541271297050a8dd2d540558c72d94871ade9a15 | 1,019 | py | Python | src/data/process_HJ_data.py | simran-grewal/COVID-19-Data-Analysis | 8751aa75c451e956d5b1d1e2d6f2ffbec8dc673a | [
"FTL"
] | null | null | null | src/data/process_HJ_data.py | simran-grewal/COVID-19-Data-Analysis | 8751aa75c451e956d5b1d1e2d6f2ffbec8dc673a | [
"FTL"
] | null | null | null | src/data/process_HJ_data.py | simran-grewal/COVID-19-Data-Analysis | 8751aa75c451e956d5b1d1e2d6f2ffbec8dc673a | [
"FTL"
] | null | null | null | import subprocess
import os
import numpy as np
import pandas as pd
from datetime import datetime
def store_relational_JH_data():
pd_raw = pd.read_csv('../data/raw/COVID-19/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv')
pd_data_base = pd_raw.rename(columns={'Country/Re... | 42.458333 | 134 | 0.703631 | 145 | 1,019 | 4.572414 | 0.468966 | 0.045249 | 0.075415 | 0.063348 | 0.05279 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018307 | 0.142296 | 1,019 | 24 | 135 | 42.458333 | 0.740275 | 0 | 0 | 0 | 0 | 0 | 0.288235 | 0.15098 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.263158 | 0 | 0.315789 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5414770e7a98cb88e29d0f46a7ec2949accc8e44 | 1,023 | py | Python | wasm-server.py | erique/pt2-clone | f3376a5a40316f15e82feaa321673a8611c31a53 | [
"BSD-3-Clause"
] | null | null | null | wasm-server.py | erique/pt2-clone | f3376a5a40316f15e82feaa321673a8611c31a53 | [
"BSD-3-Clause"
] | null | null | null | wasm-server.py | erique/pt2-clone | f3376a5a40316f15e82feaa321673a8611c31a53 | [
"BSD-3-Clause"
] | null | null | null | # Python 3
import sys
import socketserver
from http.server import SimpleHTTPRequestHandler
class WasmHandler(SimpleHTTPRequestHandler):
def __init__(self, *args, **kwargs):
super().__init__(*args, directory="release/emscripten", **kwargs)
def do_GET(self):
if self.path == '/':
self... | 34.1 | 73 | 0.670577 | 128 | 1,023 | 5.164063 | 0.609375 | 0.02118 | 0.04236 | 0.057489 | 0.075643 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014634 | 0.198436 | 1,023 | 30 | 74 | 34.1 | 0.791463 | 0.106549 | 0 | 0 | 0 | 0 | 0.200878 | 0.059276 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.380952 | 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 |
5414822b05eb873a76f59d1b99fc4fca71aebfa2 | 1,850 | py | Python | stage.py | boularbahsmail/Asteroids-Game | ef4ae8d2e66ea2875aba83f512610b4da56c9ef1 | [
"CNRI-Python"
] | 2 | 2021-03-25T23:02:50.000Z | 2021-03-26T10:41:33.000Z | stage.py | boularbahsmail/Asteroids-Game | ef4ae8d2e66ea2875aba83f512610b4da56c9ef1 | [
"CNRI-Python"
] | null | null | null | stage.py | boularbahsmail/Asteroids-Game | ef4ae8d2e66ea2875aba83f512610b4da56c9ef1 | [
"CNRI-Python"
] | null | null | null |
import pygame
import sys
import os
from pygame.locals import *
class Stage:
# Set up the PyGame surface
def __init__(self, caption, dimensions=None):
pygame.init()
# If no screen size is provided pick the first available mode
if dimensions == None:
dimensions = pygame.di... | 29.83871 | 76 | 0.600541 | 214 | 1,850 | 5.14486 | 0.331776 | 0.101726 | 0.058129 | 0.036331 | 0.328792 | 0.185286 | 0.185286 | 0.127157 | 0.127157 | 0.127157 | 0 | 0.013281 | 0.308108 | 1,850 | 61 | 77 | 30.327869 | 0.846875 | 0.103784 | 0 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0 | 0.097561 | 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 |
5414c4d1cd6ab405e144265b135b1ae64b919a77 | 2,596 | py | Python | web/MicroservicesAsAservice/src/notes/app.py | NoXLaw/RaRCTF2021-Challenges-Public | 1a1b094359b88f8ebbc83a6b26d27ffb2602458f | [
"MIT"
] | null | null | null | web/MicroservicesAsAservice/src/notes/app.py | NoXLaw/RaRCTF2021-Challenges-Public | 1a1b094359b88f8ebbc83a6b26d27ffb2602458f | [
"MIT"
] | null | null | null | web/MicroservicesAsAservice/src/notes/app.py | NoXLaw/RaRCTF2021-Challenges-Public | 1a1b094359b88f8ebbc83a6b26d27ffb2602458f | [
"MIT"
] | null | null | null | from flask import Flask, request, jsonify, render_template_string
import redis
import requests
import re
import json
import sys
app = Flask(__name__)
@app.route('/getid/<username>')
def getid(username):
red = redis.Redis(host="redis_users")
return red.get(username).decode()
@app.route('/useraction', methods... | 33.282051 | 74 | 0.552003 | 305 | 2,596 | 4.596721 | 0.222951 | 0.057061 | 0.079886 | 0.108417 | 0.36234 | 0.36234 | 0.288873 | 0.278887 | 0.278887 | 0.278887 | 0 | 0.01875 | 0.260401 | 2,596 | 77 | 75 | 33.714286 | 0.711458 | 0 | 0 | 0.257143 | 0 | 0 | 0.181048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042857 | false | 0 | 0.085714 | 0 | 0.242857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
54156bd3caed9e41e591c736c817a669d7acd84f | 1,195 | py | Python | divisiones.py | badgercl/scrappers-congreso-chile | ae2f3f451f6fa90a4964f2c476aecdfc2c5254ee | [
"MIT"
] | null | null | null | divisiones.py | badgercl/scrappers-congreso-chile | ae2f3f451f6fa90a4964f2c476aecdfc2c5254ee | [
"MIT"
] | null | null | null | divisiones.py | badgercl/scrappers-congreso-chile | ae2f3f451f6fa90a4964f2c476aecdfc2c5254ee | [
"MIT"
] | null | null | null |
import requests
from bs4 import BeautifulSoup
import json
import pprint
url = 'https://www.bcn.cl/siit/divisionelectoral/index.htm'
res = requests.get(url)
soup = BeautifulSoup(res.text, 'html.parser')
rows = soup.find_all('tbody')[1].find_all('tr')
region = ""
circunscripcion = ""
distrito = ""
comuna = ""
region... | 23.9 | 60 | 0.661925 | 155 | 1,195 | 5.070968 | 0.412903 | 0.14631 | 0.147583 | 0.133588 | 0.201018 | 0.152672 | 0.152672 | 0.152672 | 0.152672 | 0 | 0 | 0.014606 | 0.140586 | 1,195 | 50 | 61 | 23.9 | 0.75073 | 0 | 0 | 0 | 0 | 0 | 0.106276 | 0.01841 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5419760ed6778cfb73074dd68ffc3b8c58ad8780 | 685 | py | Python | aws-auth-manager/src/awsauthmanager/app.py | zepplen/aws_tokens | 9249ba00ea0b39ac3c523a9ea3ee2485436e84ef | [
"MIT"
] | null | null | null | aws-auth-manager/src/awsauthmanager/app.py | zepplen/aws_tokens | 9249ba00ea0b39ac3c523a9ea3ee2485436e84ef | [
"MIT"
] | null | null | null | aws-auth-manager/src/awsauthmanager/app.py | zepplen/aws_tokens | 9249ba00ea0b39ac3c523a9ea3ee2485436e84ef | [
"MIT"
] | null | null | null | ####################################################
# (C) Mark Trimmer, 2016, All Rights Reserved
#
# File Name: app.py
#
# Creation Date: 28-12-2016
#
# Created By: Mark Trimmer
#
# Purpose:
#
####################################################
from __future__ import print_function
from credentialfile import Creden... | 26.346154 | 111 | 0.608759 | 73 | 685 | 5.465753 | 0.561644 | 0.140351 | 0.135338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020725 | 0.154745 | 685 | 25 | 112 | 27.4 | 0.668394 | 0.176642 | 0 | 0 | 0 | 0 | 0.060134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
541acc6e7acab303b472692f00ec1a571d8c6ad5 | 1,027 | py | Python | demo/app/libs/description.py | suenklerhaw/seoeffekt | 0a31fdfa1a7246da37e37bf53c03d94c5f13f095 | [
"MIT"
] | 1 | 2022-02-15T14:03:10.000Z | 2022-02-15T14:03:10.000Z | demo/app/libs/description.py | suenklerhaw/seoeffekt | 0a31fdfa1a7246da37e37bf53c03d94c5f13f095 | [
"MIT"
] | null | null | null | demo/app/libs/description.py | suenklerhaw/seoeffekt | 0a31fdfa1a7246da37e37bf53c03d94c5f13f095 | [
"MIT"
] | null | null | null | #check description
from bs4 import BeautifulSoup
import lxml.html
def check_description(tree):
description = ""
xpath_meta = "//meta[@name='description']/@content"
xpath_og_property = "//meta[@property='og:description']/@content"
xpath_og_name = "//meta[@name='og:description']/@content"
meta_conte... | 32.09375 | 82 | 0.641675 | 116 | 1,027 | 5.456897 | 0.224138 | 0.094787 | 0.107425 | 0.080569 | 0.385466 | 0.183254 | 0.183254 | 0.183254 | 0.183254 | 0 | 0 | 0.010063 | 0.225901 | 1,027 | 31 | 83 | 33.129032 | 0.786164 | 0.016553 | 0 | 0 | 0 | 0 | 0.120912 | 0.116947 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.086957 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
541b0dd061b1cb2fb2dd1d60f50109368732184b | 919 | py | Python | backend/projectfiles/GradleProjectFile.py | karllindmark/IsYourProjectUpToDate | ce2df36b8fa39a4732b05dfd75558a914e4e990b | [
"Apache-2.0"
] | null | null | null | backend/projectfiles/GradleProjectFile.py | karllindmark/IsYourProjectUpToDate | ce2df36b8fa39a4732b05dfd75558a914e4e990b | [
"Apache-2.0"
] | null | null | null | backend/projectfiles/GradleProjectFile.py | karllindmark/IsYourProjectUpToDate | ce2df36b8fa39a4732b05dfd75558a914e4e990b | [
"Apache-2.0"
] | null | null | null | import re
from backend.projectfiles.GenericProjectFile import GenericProjectFile
QUOTE = r'(?:["|\'])'
STRING = r'([\w\.\-\+]+)'
GAV_REGEXP = QUOTE + '(?:' + ":".join([STRING, STRING, STRING]) + ')' + QUOTE
class GradleProjectFile(GenericProjectFile):
""" Gradle project file implementation to extract dependenc... | 34.037037 | 82 | 0.516866 | 77 | 919 | 6.12987 | 0.532468 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004951 | 0.340588 | 919 | 26 | 83 | 35.346154 | 0.773927 | 0.063112 | 0 | 0 | 0 | 0 | 0.062207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
541db46f26a3ec258d9d85654ca98eae0553065a | 3,271 | py | Python | pysal/contrib/geotable/utils.py | cubensys/pysal | 8d50990f6e6603ba79ae1a887a20a1e3a0734e51 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | pysal/contrib/geotable/utils.py | cubensys/pysal | 8d50990f6e6603ba79ae1a887a20a1e3a0734e51 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | pysal/contrib/geotable/utils.py | cubensys/pysal | 8d50990f6e6603ba79ae1a887a20a1e3a0734e51 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2021-07-19T01:46:17.000Z | 2021-07-19T01:46:17.000Z | from ...cg import asShape as pShape
from ...common import requires as _requires
from warnings import warn
@_requires('geopandas')
def to_df(df, geom_col='geometry', **kw):
"""
Convert a Geopandas dataframe into a normal pandas dataframe with a column
containing PySAL shapes. Always returns a copy.
Ar... | 33.721649 | 100 | 0.602262 | 384 | 3,271 | 5.065104 | 0.291667 | 0.032391 | 0.039075 | 0.030848 | 0.27455 | 0.27455 | 0.230334 | 0.202571 | 0.202571 | 0.202571 | 0 | 0 | 0.313971 | 3,271 | 96 | 101 | 34.072917 | 0.866756 | 0.520942 | 0 | 0.117647 | 0 | 0 | 0.121551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.205882 | 0 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
541de3fcd94ea7163228d56302142fff219657ee | 287 | py | Python | torrent/torrent_tracker/whitelist_api/urls.py | projectpai/paipass | 8b8e70b6808bf026cf957e240c7eed7bfcf4c55d | [
"MIT"
] | 3 | 2021-04-17T10:20:26.000Z | 2022-03-08T07:36:13.000Z | torrent/torrent_tracker/whitelist_api/urls.py | projectpai/paipass | 8b8e70b6808bf026cf957e240c7eed7bfcf4c55d | [
"MIT"
] | null | null | null | torrent/torrent_tracker/whitelist_api/urls.py | projectpai/paipass | 8b8e70b6808bf026cf957e240c7eed7bfcf4c55d | [
"MIT"
] | null | null | null | from django.urls import path
from whitelist_api.views import AddTorrentInfoHash, RemoveTorrentInfoHash
app_name = 'whitelist_api'
urlpatterns = [
path('add-torrent-info-hash/', AddTorrentInfoHash.as_view()),
path('del-torrent-info-hash/', RemoveTorrentInfoHash.as_view()),
]
| 23.916667 | 73 | 0.766551 | 33 | 287 | 6.515152 | 0.606061 | 0.111628 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111498 | 287 | 11 | 74 | 26.090909 | 0.843137 | 0 | 0 | 0 | 0 | 0 | 0.198606 | 0.15331 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 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 |
541e93e13927b8ffff8b83f86083ffe9dd7cdee8 | 1,847 | py | Python | vega/core/metrics/pytorch/flops_and_params.py | qixiuai/vega | 3e6588ea4aedb03e3594a549a97ffdb86adb88d1 | [
"MIT"
] | null | null | null | vega/core/metrics/pytorch/flops_and_params.py | qixiuai/vega | 3e6588ea4aedb03e3594a549a97ffdb86adb88d1 | [
"MIT"
] | null | null | null | vega/core/metrics/pytorch/flops_and_params.py | qixiuai/vega | 3e6588ea4aedb03e3594a549a97ffdb86adb88d1 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the ... | 33.581818 | 76 | 0.714131 | 267 | 1,847 | 4.816479 | 0.430712 | 0.111198 | 0.049767 | 0.026439 | 0.083981 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003429 | 0.210612 | 1,847 | 54 | 77 | 34.203704 | 0.878601 | 0.490525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | 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 |
5423f2c125c3cb768b4a0cd17051477a73148c1a | 16,691 | py | Python | gbot/libs/helper.py | dgw/goshu | 3cba300d92f9bde58cf7348ddc3183d52b4c4bcf | [
"ISC"
] | 5 | 2015-01-03T00:08:58.000Z | 2017-05-05T11:57:03.000Z | gbot/libs/helper.py | dgw/goshu | 3cba300d92f9bde58cf7348ddc3183d52b4c4bcf | [
"ISC"
] | 3 | 2016-02-07T07:35:13.000Z | 2016-11-26T19:29:02.000Z | gbot/libs/helper.py | dgw/goshu | 3cba300d92f9bde58cf7348ddc3183d52b4c4bcf | [
"ISC"
] | 1 | 2020-11-12T09:09:06.000Z | 2020-11-12T09:09:06.000Z | #!/usr/bin/env python3
# Goshu IRC Bot
# written by Daniel Oaks <daniel@danieloaks.net>
# licensed under the ISC license
"""extends several builtin functions and provides helper functions
The default Python library is extensive and well-stocked. There are some
times however, you wish a small task was taken care of for... | 30.795203 | 94 | 0.549038 | 1,966 | 16,691 | 4.548321 | 0.217192 | 0.014538 | 0.013084 | 0.01342 | 0.171662 | 0.142586 | 0.124581 | 0.11172 | 0.096287 | 0.081078 | 0 | 0.013314 | 0.342999 | 16,691 | 541 | 95 | 30.852126 | 0.802116 | 0.181894 | 0 | 0.261236 | 0 | 0 | 0.057068 | 0.002009 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05618 | false | 0.002809 | 0.047753 | 0 | 0.247191 | 0.002809 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
542b464eeb35182c67fc88683f7b87c523d2bec7 | 5,982 | py | Python | sequential/seq_smnist/train_args_seq_smnist.py | mariacer/cl_in_rnns | 333b8e03391600a8e3df7d684a3f171b135d273a | [
"Apache-2.0"
] | 26 | 2020-06-17T08:44:15.000Z | 2022-03-20T04:21:13.000Z | sequential/seq_smnist/train_args_seq_smnist.py | mariacer/cl_in_rnns | 333b8e03391600a8e3df7d684a3f171b135d273a | [
"Apache-2.0"
] | null | null | null | sequential/seq_smnist/train_args_seq_smnist.py | mariacer/cl_in_rnns | 333b8e03391600a8e3df7d684a3f171b135d273a | [
"Apache-2.0"
] | 4 | 2020-10-26T02:19:38.000Z | 2021-12-26T02:26:05.000Z | #!/usr/bin/env python3
# Copyright 2019 Benjamin Ehret, Maria Cervera
#
# 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 ... | 41.541667 | 80 | 0.674858 | 809 | 5,982 | 4.755253 | 0.430161 | 0.041591 | 0.015597 | 0.008318 | 0.025994 | 0.025994 | 0.015077 | 0 | 0 | 0 | 0 | 0.021142 | 0.233032 | 5,982 | 144 | 81 | 41.541667 | 0.81735 | 0.279505 | 0 | 0.025316 | 0 | 0 | 0.158032 | 0.00499 | 0 | 0 | 0 | 0.006944 | 0 | 1 | 0.025316 | false | 0.012658 | 0.050633 | 0 | 0.088608 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
542b4d4125780654fe2bbd178dc02f72ba260ddd | 2,490 | py | Python | examples/compare.py | guo-yong-zhi/wordcloud2 | 43d34766323e8eec45d46eeaa98537849f48cd37 | [
"MIT"
] | null | null | null | examples/compare.py | guo-yong-zhi/wordcloud2 | 43d34766323e8eec45d46eeaa98537849f48cd37 | [
"MIT"
] | null | null | null | examples/compare.py | guo-yong-zhi/wordcloud2 | 43d34766323e8eec45d46eeaa98537849f48cd37 | [
"MIT"
] | null | null | null | from wordcloud2 import wordcloud as W
import os
from PIL import Image
stwords = {"us", "will"}
print("==Obama's==")
cs = W.randomscheme() #:Set1_8
as_ = W.randomangles() #(0,90,45,-45)
dens = 0.5 #not too high
wca = W.wordcloud(
W.processtext(open(W.pkgdir(W.WordCloud)+"/res/Barack Obama's First Inaugural Address... | 35.571429 | 104 | 0.685542 | 368 | 2,490 | 4.597826 | 0.399457 | 0.049645 | 0.026596 | 0.026005 | 0.210402 | 0.210402 | 0.124113 | 0.124113 | 0.124113 | 0.124113 | 0 | 0.018414 | 0.149398 | 2,490 | 70 | 105 | 35.571429 | 0.780453 | 0.192369 | 0 | 0.135593 | 0 | 0 | 0.161307 | 0.013568 | 0 | 0 | 0 | 0 | 0.016949 | 1 | 0 | false | 0 | 0.050847 | 0 | 0.050847 | 0.118644 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
542b9661a1d12114a162b51bacab5cac808471e8 | 3,520 | py | Python | modules/insight/nbCurvesLevelSet.py | chrisidefix/devide | 99bfe156e710fa47ba7ae88b0ce1eef592a3a439 | [
"BSD-3-Clause"
] | 25 | 2015-08-24T16:05:14.000Z | 2020-12-09T20:07:14.000Z | modules/insight/nbCurvesLevelSet.py | chrisidefix/devide | 99bfe156e710fa47ba7ae88b0ce1eef592a3a439 | [
"BSD-3-Clause"
] | 1 | 2016-02-16T21:18:10.000Z | 2016-02-16T21:18:10.000Z | modules/insight/nbCurvesLevelSet.py | chrisidefix/devide | 99bfe156e710fa47ba7ae88b0ce1eef592a3a439 | [
"BSD-3-Clause"
] | 5 | 2016-02-16T20:05:37.000Z | 2020-01-31T11:27:39.000Z | # Copyright (c) Charl P. Botha, TU Delft
# All rights reserved.
# See COPYRIGHT for details.
import itk
import module_kits.itk_kit as itk_kit
from module_base import ModuleBase
from module_mixins import ScriptedConfigModuleMixin
class nbCurvesLevelSet(ScriptedConfigModuleMixin, ModuleBase):
def __init__(self, mo... | 32 | 76 | 0.600284 | 318 | 3,520 | 6.443396 | 0.36478 | 0.061493 | 0.040996 | 0.01757 | 0.115666 | 0.045388 | 0.045388 | 0 | 0 | 0 | 0 | 0.007794 | 0.271023 | 3,520 | 109 | 77 | 32.293578 | 0.790725 | 0.127273 | 0 | 0 | 0 | 0 | 0.16034 | 0.011453 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169231 | false | 0 | 0.061538 | 0.046154 | 0.292308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
58087fdf8d89ae3ca538e157ca99613c2f7a205f | 2,835 | py | Python | setup.py | ThomasChiroux/ejabberd_external_auth_jwt | fce68cca70ca578b3c1c002a4dea2aa65e3150c1 | [
"MIT"
] | null | null | null | setup.py | ThomasChiroux/ejabberd_external_auth_jwt | fce68cca70ca578b3c1c002a4dea2aa65e3150c1 | [
"MIT"
] | null | null | null | setup.py | ThomasChiroux/ejabberd_external_auth_jwt | fce68cca70ca578b3c1c002a4dea2aa65e3150c1 | [
"MIT"
] | null | null | null | #
# Copyright 2018-2019 Happineo
#
"""setuptools installer for zamita."""
import os
import uuid
from setuptools import find_packages
from setuptools import setup
from setuptools.command.build_py import build_py
# local imports
from build_scripts.version import VersionInfo
HERE = os.path.abspath(os.path.dirname(__fi... | 27.794118 | 82 | 0.618342 | 330 | 2,835 | 5.136364 | 0.448485 | 0.021239 | 0.058997 | 0.067847 | 0.063717 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010875 | 0.253968 | 2,835 | 101 | 83 | 28.069307 | 0.790544 | 0.077249 | 0 | 0.168831 | 0 | 0 | 0.192293 | 0.057803 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012987 | false | 0.025974 | 0.077922 | 0 | 0.103896 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5808c926d701d604229b7c9061a8576e5eb62676 | 4,724 | py | Python | Analysis/Feb2021/common_plotting.py | TimChild/dat_analysis | 2902e5cb2f2823a1c7a26faf6b3b6dfeb7633c73 | [
"MIT"
] | 2 | 2021-03-07T03:17:13.000Z | 2021-03-07T03:17:16.000Z | Analysis/Feb2021/common_plotting.py | TimChild/dat_analysis | 2902e5cb2f2823a1c7a26faf6b3b6dfeb7633c73 | [
"MIT"
] | 1 | 2021-03-09T00:00:52.000Z | 2021-03-09T00:00:52.000Z | Analysis/Feb2021/common_plotting.py | TimChild/dat_analysis | 2902e5cb2f2823a1c7a26faf6b3b6dfeb7633c73 | [
"MIT"
] | null | null | null | """
Sep 21 -- A few of the plots used in analysis, very far from a complete list, and probably most are too specific to be
useful again.
Moved useful functions from here.
"""
from __future__ import annotations
from typing import List, Callable, Optional, Union, TYPE_CHECKING
import numpy as np
from dat_analysis.anal... | 44.990476 | 120 | 0.556308 | 530 | 4,724 | 4.739623 | 0.29434 | 0.035828 | 0.04379 | 0.079618 | 0.200637 | 0.074841 | 0 | 0 | 0 | 0 | 0 | 0.00465 | 0.362616 | 4,724 | 104 | 121 | 45.423077 | 0.829625 | 0.221634 | 0 | 0.046154 | 0 | 0 | 0.04827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015385 | false | 0.015385 | 0.076923 | 0 | 0.107692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
580a05b1f8e364040a8ccda54856a6eead097400 | 9,980 | py | Python | Code/sphero_learn.py | rvarga601/IER | 1cf05e641dea2fb3b4ad5329e3e556713cc199fe | [
"MIT"
] | null | null | null | Code/sphero_learn.py | rvarga601/IER | 1cf05e641dea2fb3b4ad5329e3e556713cc199fe | [
"MIT"
] | null | null | null | Code/sphero_learn.py | rvarga601/IER | 1cf05e641dea2fb3b4ad5329e3e556713cc199fe | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon May 10 23:54:16 2021
@author: rolandvarga
"""
import gym
import numpy as np
import matplotlib.pyplot as plt
import time
from scipy.signal import savgol_filter
import pickle
#%matplotlib qt
#%matplotlib inline
# Set to 1 to repeat SARSA learning (With... | 30.993789 | 118 | 0.577154 | 1,282 | 9,980 | 4.379875 | 0.229329 | 0.035619 | 0.023508 | 0.032057 | 0.437044 | 0.41959 | 0.388246 | 0.381834 | 0.369724 | 0.356189 | 0 | 0.042451 | 0.313126 | 9,980 | 321 | 119 | 31.090343 | 0.776659 | 0.253307 | 0 | 0.391566 | 0 | 0 | 0.038838 | 0.003395 | 0 | 0 | 0 | 0.003115 | 0.006024 | 1 | 0.018072 | false | 0 | 0.036145 | 0 | 0.066265 | 0.018072 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
580b61225012c491f65cb5e42655216093dbdb35 | 8,952 | py | Python | HW7/kernel_eigenface.py | joycenerd/Machine_Learning_2021 | ecb634a9f2f1112a393a9707ce69c3bc751c4542 | [
"MIT"
] | 1 | 2021-11-18T09:22:21.000Z | 2021-11-18T09:22:21.000Z | HW7/kernel_eigenface.py | joycenerd/Machine_Learning_2021 | ecb634a9f2f1112a393a9707ce69c3bc751c4542 | [
"MIT"
] | null | null | null | HW7/kernel_eigenface.py | joycenerd/Machine_Learning_2021 | ecb634a9f2f1112a393a9707ce69c3bc751c4542 | [
"MIT"
] | null | null | null | from scipy.spatial.distance import cdist
from numpy.linalg import eig, norm, pinv
import matplotlib.pyplot as plt
from PIL import Image
import numpy as np
import argparse
import ntpath
import glob
import os
parser = argparse.ArgumentParser()
parser.add_argument("--option", type=str, default="PCA",
... | 31.632509 | 106 | 0.601095 | 1,277 | 8,952 | 4.036805 | 0.166797 | 0.044617 | 0.008147 | 0.012803 | 0.299127 | 0.247527 | 0.23453 | 0.208535 | 0.196702 | 0.175752 | 0 | 0.019531 | 0.262176 | 8,952 | 282 | 107 | 31.744681 | 0.760939 | 0.086126 | 0 | 0.164179 | 0 | 0 | 0.107296 | 0.002575 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044776 | false | 0 | 0.044776 | 0 | 0.119403 | 0.054726 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
580c8290606fc382a91ddcb30034d1076a50dc58 | 18,427 | py | Python | duqo/optimization/predict.py | canbooo/pyRDO | f7143438aa30cc79587c9f35fc9ff6aa262fc4d3 | [
"BSD-3-Clause"
] | 11 | 2021-08-17T05:55:01.000Z | 2022-02-03T13:16:42.000Z | duqo/optimization/predict.py | canbooo/pyRDO | f7143438aa30cc79587c9f35fc9ff6aa262fc4d3 | [
"BSD-3-Clause"
] | null | null | null | duqo/optimization/predict.py | canbooo/pyRDO | f7143438aa30cc79587c9f35fc9ff6aa262fc4d3 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 9 15:33:47 2019
@author: Bogoclu
"""
import typing
import multiprocessing as mp
import warnings
import numpy as np
from scipy import stats
from .space import FullSpace
from duqo.proba import DS, MC, SUSE, ISPUD, FORM
from duqo.doe.lhs import make_doe
def _check_obj_w... | 35.920078 | 115 | 0.61475 | 2,527 | 18,427 | 4.304313 | 0.17689 | 0.023812 | 0.015537 | 0.010297 | 0.239037 | 0.164567 | 0.115565 | 0.107291 | 0.092948 | 0.092948 | 0 | 0.007776 | 0.302111 | 18,427 | 512 | 116 | 35.990234 | 0.838025 | 0.330005 | 0 | 0.17029 | 0 | 0 | 0.118405 | 0.004614 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097826 | false | 0.003623 | 0.028986 | 0 | 0.23913 | 0.025362 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
580d37ef443f31d16e61142142999c038e7fd18f | 5,352 | py | Python | mymodule/twitter_json_parsing.py | sobkovych/TwitterFriendsMap | 7fb1a844264334fba443feba3830cca2c86b55c9 | [
"MIT"
] | null | null | null | mymodule/twitter_json_parsing.py | sobkovych/TwitterFriendsMap | 7fb1a844264334fba443feba3830cca2c86b55c9 | [
"MIT"
] | null | null | null | mymodule/twitter_json_parsing.py | sobkovych/TwitterFriendsMap | 7fb1a844264334fba443feba3830cca2c86b55c9 | [
"MIT"
] | 1 | 2020-02-26T09:20:17.000Z | 2020-02-26T09:20:17.000Z | """Parse json files."""
import json
import re
def search_for_key(final_key: str, tree: dict, space: list = []):
"""Search all data for a key.
:param final_key: the key
:param tree: the data
:param space: found values
:return: all found values
"""
if isinstance(tree, dict) and final_key in... | 32.047904 | 77 | 0.496076 | 664 | 5,352 | 3.896084 | 0.225904 | 0.050251 | 0.023193 | 0.019714 | 0.073444 | 0.036336 | 0.020101 | 0 | 0 | 0 | 0 | 0.008804 | 0.384529 | 5,352 | 166 | 78 | 32.240964 | 0.776563 | 0.116592 | 0 | 0.142857 | 0 | 0 | 0.114669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.017857 | 0 | 0.133929 | 0.098214 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
580de9ae168cc442b87908dac6e8235e1d9361f3 | 284 | py | Python | setup.py | jrspruitt/pyfa_gpio | d0f189724b34a2a888dd01b33d237b79ace5becf | [
"MIT"
] | null | null | null | setup.py | jrspruitt/pyfa_gpio | d0f189724b34a2a888dd01b33d237b79ace5becf | [
"MIT"
] | null | null | null | setup.py | jrspruitt/pyfa_gpio | d0f189724b34a2a888dd01b33d237b79ace5becf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup,find_packages
version = '0.1'
setup(
name='pyfa_gpio',
version=version,
description='',
author='Jason Pruitt',
url='https://github.com/jrspruitt/pyfa_gpio',
license='MIT',
packages = find_packages(),
)
| 17.75 | 49 | 0.661972 | 35 | 284 | 5.257143 | 0.771429 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.183099 | 284 | 15 | 50 | 18.933333 | 0.784483 | 0.070423 | 0 | 0 | 0 | 0 | 0.247148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
580ec4cbc90960d845dfc3bbcd5951593510c1c2 | 4,093 | py | Python | dps/env/basic/path_discovery.py | alcinos/dps | 5467db1216e9f9089376d2c71f524ced2382e4f6 | [
"Apache-2.0"
] | null | null | null | dps/env/basic/path_discovery.py | alcinos/dps | 5467db1216e9f9089376d2c71f524ced2382e4f6 | [
"Apache-2.0"
] | null | null | null | dps/env/basic/path_discovery.py | alcinos/dps | 5467db1216e9f9089376d2c71f524ced2382e4f6 | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
import numpy as np
from dps.register import RegisterBank
from dps.env import TensorFlowEnv
from dps.utils import Param, Config
def build_env():
return PathDiscovery()
config = Config(
build_env=build_env,
curriculum=[
dict(shape=(2, 2), threshold=6),
dict(shape=(... | 36.221239 | 109 | 0.590765 | 607 | 4,093 | 3.848435 | 0.235585 | 0.050086 | 0.027397 | 0.038955 | 0.205051 | 0.14512 | 0.124572 | 0.102312 | 0.046233 | 0 | 0 | 0.035726 | 0.254581 | 4,093 | 112 | 110 | 36.544643 | 0.729925 | 0.043 | 0 | 0 | 0 | 0 | 0.030287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085366 | false | 0 | 0.060976 | 0.02439 | 0.268293 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5811d6d7e749badbaa3acffda48486b057d48a0e | 4,404 | py | Python | mortgage/mortgage.py | roelbertens/mortgages | b5fe415024933c772e6c7c57f041bf065ac86176 | [
"MIT"
] | 1 | 2019-08-19T07:09:58.000Z | 2019-08-19T07:09:58.000Z | mortgage/mortgage.py | roelbertens/mortgages | b5fe415024933c772e6c7c57f041bf065ac86176 | [
"MIT"
] | null | null | null | mortgage/mortgage.py | roelbertens/mortgages | b5fe415024933c772e6c7c57f041bf065ac86176 | [
"MIT"
] | null | null | null | from typing import List
import matplotlib.pyplot as plt
class Mortgage:
"""
A mortgage overview of the total burden (incl. interest) and the monthly fees per fixed period
"""
def __init__(self, mortgage_amount, burden, periods, monthly_fees, name):
self.mortgage_amount = int(mortgage_amount)... | 38.631579 | 98 | 0.584923 | 585 | 4,404 | 4.196581 | 0.186325 | 0.06721 | 0.051324 | 0.035845 | 0.151935 | 0.074542 | 0.038289 | 0.038289 | 0.038289 | 0.038289 | 0 | 0.011327 | 0.298365 | 4,404 | 113 | 99 | 38.973451 | 0.783172 | 0.096276 | 0 | 0.072289 | 0 | 0.036145 | 0.095601 | 0.024409 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084337 | false | 0 | 0.024096 | 0.012048 | 0.240964 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
58127a028ca7d4bb09bc84dec02f9d31b1e190c3 | 32,827 | py | Python | training/wml_train.py | corvy/MAX-Object-Detector | 2a21183e6bb9d0c35bac297ee3cf1fc67f4c048f | [
"Apache-2.0"
] | 1 | 2019-10-25T11:36:46.000Z | 2019-10-25T11:36:46.000Z | training/wml_train.py | karankrish/MAX-Image-Segmenter | 2d5d080f4a3d7db1aa4cf320ab35b3e157a6f485 | [
"Apache-2.0"
] | 1 | 2019-07-08T17:58:45.000Z | 2019-09-05T18:07:45.000Z | training/wml_train.py | karankrish/MAX-Image-Segmenter | 2d5d080f4a3d7db1aa4cf320ab35b3e157a6f485 | [
"Apache-2.0"
] | 1 | 2019-10-30T20:42:46.000Z | 2019-10-30T20:42:46.000Z | #!/usr/bin/env python
#
# Copyright 2018-2019 IBM Corp. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | 41.03375 | 79 | 0.559113 | 3,354 | 32,827 | 5.301133 | 0.150865 | 0.015748 | 0.033746 | 0.018223 | 0.455343 | 0.365917 | 0.303375 | 0.227672 | 0.169966 | 0.144826 | 0 | 0.003832 | 0.292412 | 32,827 | 799 | 80 | 41.085106 | 0.761624 | 0.197977 | 0 | 0.354717 | 0 | 0.001887 | 0.269942 | 0.041742 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007547 | false | 0 | 0.026415 | 0 | 0.054717 | 0.188679 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
581495876b03363b5fef74a09d461c434b90c0d7 | 8,344 | py | Python | glog.py | leoll2/python-glog | c809d16352bf061d0ee38e590c6f28d553d740e7 | [
"BSD-2-Clause"
] | null | null | null | glog.py | leoll2/python-glog | c809d16352bf061d0ee38e590c6f28d553d740e7 | [
"BSD-2-Clause"
] | null | null | null | glog.py | leoll2/python-glog | c809d16352bf061d0ee38e590c6f28d553d740e7 | [
"BSD-2-Clause"
] | null | null | null | """A simple Google-style logging wrapper."""
import logging
import time
import traceback
import os
import sys
import gflags as flags
FLAGS = flags.FLAGS
def format_message(record):
try:
record_message = "%s" % (record.msg % record.args)
except TypeError:
record_message = record.msg
retu... | 27.447368 | 90 | 0.615532 | 1,010 | 8,344 | 4.979208 | 0.229703 | 0.039372 | 0.023862 | 0.039769 | 0.292503 | 0.264466 | 0.264466 | 0.214754 | 0.214754 | 0.205607 | 0 | 0.013177 | 0.263303 | 8,344 | 303 | 91 | 27.537954 | 0.804946 | 0.116012 | 0 | 0.154206 | 0 | 0.004673 | 0.059514 | 0.003004 | 0 | 0 | 0 | 0 | 0.004673 | 1 | 0.093458 | false | 0 | 0.028037 | 0 | 0.172897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
581517f5427032699dff194265e55b485b52ab39 | 2,994 | py | Python | tests/coretests.py | thomasms/coiny | 1f51eac2542e46b03abd9f66fd3b58fbd80cb177 | [
"MIT"
] | null | null | null | tests/coretests.py | thomasms/coiny | 1f51eac2542e46b03abd9f66fd3b58fbd80cb177 | [
"MIT"
] | null | null | null | tests/coretests.py | thomasms/coiny | 1f51eac2542e46b03abd9f66fd3b58fbd80cb177 | [
"MIT"
] | null | null | null | import unittest
from typing import Any
from coiny.core import CoinPrice, CoinyQueue, CoinySession, price_now_url, price_task
from coiny.utils import NullCoinPrice
class HasJson:
def __init__(self, data) -> None:
self.data = data
async def __aenter__(self):
return self
async def __aexit_... | 34.022727 | 85 | 0.62024 | 345 | 2,994 | 5.194203 | 0.286957 | 0.055246 | 0.046875 | 0.047433 | 0.458147 | 0.415179 | 0.41183 | 0.304129 | 0.304129 | 0.304129 | 0 | 0.030811 | 0.262859 | 2,994 | 87 | 86 | 34.413793 | 0.781151 | 0.044422 | 0 | 0.316667 | 0 | 0 | 0.094954 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 1 | 0.05 | false | 0.016667 | 0.066667 | 0 | 0.216667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5816e949ba4a9d3600362e45768d66548fbd4d4b | 969 | py | Python | legacy/dx/simulator/simulator_diagnoser/test/graph/traversal/forward_test.py | GaloisInc/adapt | 2ccff778d3e77505899266572f8f7caacb5b630f | [
"BSD-3-Clause"
] | 2 | 2020-04-09T13:04:25.000Z | 2021-09-24T14:17:26.000Z | legacy/dx/simulator/simulator_diagnoser/test/graph/traversal/forward_test.py | GaloisInc/adapt | 2ccff778d3e77505899266572f8f7caacb5b630f | [
"BSD-3-Clause"
] | null | null | null | legacy/dx/simulator/simulator_diagnoser/test/graph/traversal/forward_test.py | GaloisInc/adapt | 2ccff778d3e77505899266572f8f7caacb5b630f | [
"BSD-3-Clause"
] | 3 | 2019-09-20T20:49:54.000Z | 2021-09-02T17:33:47.000Z | import unittest
from simulator_diagnoser.graph import InmemoryGraph
from simulator_diagnoser.graph.traversal import ForwardAnalysis
class ForwardAnalysisTest(unittest.TestCase):
def setUp(self):
# Graph =
# 9
# / | \
# 6 7 8
# \ / \ /
# 4 5
#... | 24.846154 | 69 | 0.49742 | 115 | 969 | 4.06087 | 0.4 | 0.051392 | 0.094218 | 0.115632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060163 | 0.365325 | 969 | 38 | 70 | 25.5 | 0.699187 | 0.070175 | 0 | 0 | 0 | 0 | 0.008969 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.136364 | false | 0 | 0.136364 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
58183b1abecb86537c0a52b35966e7d8ef3e9a5f | 5,775 | py | Python | Agent5_a_0_5_knots_512_d_0_02/step_node_Agent6_rewards.py | schigeru/Bachelorarbeit_Code | 261b2552221f768e7022abc60a4e5a7d2fedbbae | [
"MIT"
] | null | null | null | Agent5_a_0_5_knots_512_d_0_02/step_node_Agent6_rewards.py | schigeru/Bachelorarbeit_Code | 261b2552221f768e7022abc60a4e5a7d2fedbbae | [
"MIT"
] | null | null | null | Agent5_a_0_5_knots_512_d_0_02/step_node_Agent6_rewards.py | schigeru/Bachelorarbeit_Code | 261b2552221f768e7022abc60a4e5a7d2fedbbae | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import math
import os
import numpy as np
import time
import sys
import copy
import rospy
import moveit_msgs.msg
import geometry_msgs.msg
import random
import csv
from sensor_msgs.msg import JointState
from gazebo_msgs.msg import LinkStates
from gazebo_msgs.msg import LinkState
from std_msgs.msg i... | 35.429448 | 151 | 0.675152 | 823 | 5,775 | 4.504253 | 0.188335 | 0.083626 | 0.035608 | 0.030753 | 0.378203 | 0.243863 | 0.16833 | 0.16833 | 0.119773 | 0.090639 | 0 | 0.046327 | 0.215065 | 5,775 | 162 | 152 | 35.648148 | 0.771454 | 0.031169 | 0 | 0.19697 | 0 | 0 | 0.032016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037879 | false | 0 | 0.143939 | 0 | 0.242424 | 0.075758 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5818909f1789bffb946f4dcc647ac54b08e00f22 | 10,043 | py | Python | pwnlib/elf/corefile.py | jdsecurity/binjitsu | 999ad632004bfc3e623eead20eb11de98fc1f4dd | [
"MIT"
] | 5 | 2018-05-15T13:00:56.000Z | 2020-02-09T14:29:00.000Z | pwnlib/elf/corefile.py | FDlucifer/binjitsu | 999ad632004bfc3e623eead20eb11de98fc1f4dd | [
"MIT"
] | null | null | null | pwnlib/elf/corefile.py | FDlucifer/binjitsu | 999ad632004bfc3e623eead20eb11de98fc1f4dd | [
"MIT"
] | 6 | 2017-09-07T02:31:11.000Z | 2021-07-05T16:59:18.000Z | import collections
import ctypes
import elftools
from elftools.common.utils import roundup, struct_parse
from elftools.common.py3compat import bytes2str
from elftools.construct import CString
from ..context import context
from ..log import getLogger
from .datatypes import *
from .elf import ELF
from ..tubes.tube impo... | 34.631034 | 103 | 0.54416 | 1,216 | 10,043 | 4.373355 | 0.274671 | 0.015043 | 0.006769 | 0.007522 | 0.106243 | 0.084618 | 0.047386 | 0.025574 | 0.010906 | 0 | 0 | 0.01696 | 0.360052 | 10,043 | 289 | 104 | 34.750865 | 0.810487 | 0.225929 | 0 | 0.125683 | 0 | 0 | 0.048914 | 0.003924 | 0 | 0 | 0.001439 | 0 | 0.016393 | 1 | 0.076503 | false | 0.005464 | 0.060109 | 0.016393 | 0.20765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5819716bac9c4b729336569c993ab6648380ee01 | 2,875 | py | Python | kNN.py | skywind3000/ml | d3ac3d6070b66d84e25537915ee634723ddb8c51 | [
"MIT"
] | 9 | 2019-03-25T02:14:23.000Z | 2020-05-19T20:46:10.000Z | kNN.py | skywind3000/ml | d3ac3d6070b66d84e25537915ee634723ddb8c51 | [
"MIT"
] | null | null | null | kNN.py | skywind3000/ml | d3ac3d6070b66d84e25537915ee634723ddb8c51 | [
"MIT"
] | 2 | 2020-07-06T04:44:02.000Z | 2022-02-17T01:27:55.000Z | from __future__ import print_function
import numpy as np
import operator
import os
import sys
if sys.version_info[0] >= 3:
xrange = range
def createDataSet():
group = np.array([[1.0,1.1], [1.0,1.0], [0,0], [0,0.1]])
labels = ['A', 'A', 'B', 'B']
return group, labels
# kNN classifier
de... | 33.823529 | 85 | 0.619478 | 325 | 2,875 | 5.427692 | 0.390769 | 0.00907 | 0.013605 | 0.018707 | 0.058957 | 0.058957 | 0.058957 | 0.058957 | 0.058957 | 0.058957 | 0 | 0.034467 | 0.253217 | 2,875 | 84 | 86 | 34.22619 | 0.787145 | 0.037565 | 0 | 0.085714 | 0 | 0 | 0.099439 | 0.04972 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.071429 | 0 | 0.242857 | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5819cc4c01f213155dbdad2c086e2c95b1ccd432 | 16,094 | py | Python | pandaserver/brokerage/PandaSiteIDs.py | rybkine/panda-server | 30fdeaa658a38fe2049849446c300c1e1f5b5231 | [
"Apache-2.0"
] | 1 | 2019-08-30T13:47:51.000Z | 2019-08-30T13:47:51.000Z | pandaserver/brokerage/PandaSiteIDs.py | mkycanopus/panda-server | 0f7c36800c033fada8bbde53dceaab98770b6df2 | [
"Apache-2.0"
] | null | null | null | pandaserver/brokerage/PandaSiteIDs.py | mkycanopus/panda-server | 0f7c36800c033fada8bbde53dceaab98770b6df2 | [
"Apache-2.0"
] | null | null | null | # !!!!!!! This file is OBSOLETE. Its content has been absorbed into pilotController.py in the autopilot repository.
# !!!!!!! Questions to Torre Wenaus.
PandaSiteIDs = {
'AGLT2' : {'nickname':'AGLT2-condor','status':'OK'},
'ALBERTA-LCG2' : {'nickname':'ALBERTA-LCG2-lcgce01-atlas-lcgpb... | 80.874372 | 115 | 0.541258 | 1,727 | 16,094 | 4.911986 | 0.171395 | 0.108452 | 0.094188 | 0.073913 | 0.426382 | 0.345515 | 0.255216 | 0.255216 | 0.20877 | 0.078156 | 0 | 0.024658 | 0.228905 | 16,094 | 198 | 116 | 81.282828 | 0.658904 | 0.015223 | 0 | 0 | 0 | 0 | 0.572078 | 0.192691 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
581e242497be1d7d21237861371ea688ae66e1e5 | 3,862 | py | Python | qiskit/pulse/commands/command.py | EnriqueL8/qiskit-terra | 08b801f1f8598c4e44680b4a75c232ed92db0262 | [
"Apache-2.0"
] | 2 | 2019-06-28T19:58:42.000Z | 2019-07-26T05:04:02.000Z | qiskit/pulse/commands/command.py | EnriqueL8/qiskit-terra | 08b801f1f8598c4e44680b4a75c232ed92db0262 | [
"Apache-2.0"
] | 3 | 2018-11-13T17:33:37.000Z | 2018-12-03T09:35:00.000Z | qiskit/pulse/commands/command.py | EnriqueL8/qiskit-terra | 08b801f1f8598c4e44680b4a75c232ed92db0262 | [
"Apache-2.0"
] | 2 | 2017-12-03T15:48:14.000Z | 2018-03-11T13:08:03.000Z | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any... | 31.398374 | 98 | 0.599689 | 469 | 3,862 | 4.820896 | 0.356077 | 0.015922 | 0.02521 | 0.013268 | 0.046882 | 0.026537 | 0.026537 | 0 | 0 | 0 | 0 | 0.009287 | 0.302952 | 3,862 | 122 | 99 | 31.655738 | 0.830609 | 0.307095 | 0 | 0.137931 | 0 | 0 | 0.109864 | 0.00842 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0.017241 | 0.103448 | 0.034483 | 0.465517 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
581f418d3f23d0acfebe881f3102cd64dfbdffef | 6,654 | py | Python | data_loader/data_loaders.py | brendanwallison/birds | b70c01b8c953dfa172c65a51f7bdf100e47853d3 | [
"MIT"
] | null | null | null | data_loader/data_loaders.py | brendanwallison/birds | b70c01b8c953dfa172c65a51f7bdf100e47853d3 | [
"MIT"
] | null | null | null | data_loader/data_loaders.py | brendanwallison/birds | b70c01b8c953dfa172c65a51f7bdf100e47853d3 | [
"MIT"
] | null | null | null | from torchvision import datasets, transforms
from torchvision.transforms import functional as TF
from base import BaseDataLoader
from six.moves import urllib
from parse_config import ConfigParser
# downloads
import requests
import json
from collections import Counter
import os
import errno
import csv
import numpy as ... | 37.382022 | 172 | 0.622483 | 779 | 6,654 | 5.110398 | 0.260591 | 0.066817 | 0.058779 | 0.024115 | 0.333585 | 0.281085 | 0.228837 | 0.228837 | 0.211253 | 0.185632 | 0 | 0.015823 | 0.278179 | 6,654 | 177 | 173 | 37.59322 | 0.813034 | 0.161707 | 0 | 0.373134 | 0 | 0 | 0.008308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104478 | false | 0 | 0.126866 | 0 | 0.380597 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5820628189dcbe4c683064fd6478349ee7f02524 | 5,855 | py | Python | stockscanner/model/portfolio/portfolio.py | adityazagade/StockScanner | 4aecf886a8858757e4720b68d0af5ed94f4d371a | [
"Apache-2.0"
] | null | null | null | stockscanner/model/portfolio/portfolio.py | adityazagade/StockScanner | 4aecf886a8858757e4720b68d0af5ed94f4d371a | [
"Apache-2.0"
] | null | null | null | stockscanner/model/portfolio/portfolio.py | adityazagade/StockScanner | 4aecf886a8858757e4720b68d0af5ed94f4d371a | [
"Apache-2.0"
] | null | null | null | from datetime import date
from typing import List
from stockscanner.model.asset.asset_type import AssetType
from stockscanner.model.exceptions.exceptions import AssetNotFoundException
from stockscanner.model.asset.asset import Asset
from stockscanner.model.asset.cash import Cash
from stockscanner.model.asset.debt impo... | 37.056962 | 113 | 0.640649 | 776 | 5,855 | 4.521907 | 0.110825 | 0.055856 | 0.071815 | 0.0778 | 0.460245 | 0.407524 | 0.329154 | 0.292391 | 0.178398 | 0.162439 | 0 | 0.003908 | 0.257045 | 5,855 | 157 | 114 | 37.292994 | 0.802759 | 0.002733 | 0 | 0.181102 | 0 | 0 | 0.099195 | 0.046257 | 0 | 0 | 0 | 0 | 0 | 1 | 0.165354 | false | 0.015748 | 0.070866 | 0.023622 | 0.338583 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5823914afc52a344ae37dba70fad832cd069531a | 2,397 | py | Python | test/test_sl/test_model/test_data.py | jlaumonier/mlsurvey | 373598d067c7f0930ba13fe8da9756ce26eecbaf | [
"MIT"
] | null | null | null | test/test_sl/test_model/test_data.py | jlaumonier/mlsurvey | 373598d067c7f0930ba13fe8da9756ce26eecbaf | [
"MIT"
] | null | null | null | test/test_sl/test_model/test_data.py | jlaumonier/mlsurvey | 373598d067c7f0930ba13fe8da9756ce26eecbaf | [
"MIT"
] | null | null | null | import unittest
import numpy as np
import pandas as pd
import mlsurvey as mls
class TestData(unittest.TestCase):
def test_to_dict_dict_should_be_set(self):
"""
:test : mlsurvey.model.Data.to_dict()
:condition : x,y, y_pred data are filled.
:main_result : the dictionary generated... | 35.776119 | 93 | 0.570296 | 311 | 2,397 | 4.215434 | 0.26045 | 0.058734 | 0.04958 | 0.048055 | 0.661327 | 0.580473 | 0.536232 | 0.463768 | 0.398169 | 0.398169 | 0 | 0.011969 | 0.302879 | 2,397 | 66 | 94 | 36.318182 | 0.772591 | 0.188986 | 0 | 0.522727 | 0 | 0 | 0.093647 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 1 | 0.068182 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
582469a40acf21b2f0921b0060688c700c098a03 | 1,126 | py | Python | baidu_verify_response.py | CodingDogzxg/Verifycode_ocr | 6f1bdac2137993695cb4591afd1b47931680b204 | [
"MIT"
] | null | null | null | baidu_verify_response.py | CodingDogzxg/Verifycode_ocr | 6f1bdac2137993695cb4591afd1b47931680b204 | [
"MIT"
] | null | null | null | baidu_verify_response.py | CodingDogzxg/Verifycode_ocr | 6f1bdac2137993695cb4591afd1b47931680b204 | [
"MIT"
] | null | null | null | # encoding:utf-8
import requests
import base64
import time
'''
通用文字识别
'''
request_url = "https://aip.baidubce.com/rest/2.0/ocr/v1/general_basic"
access_token = '' # 百度AI的token access 详情请去看文档
request_url = request_url + "?access_token=" + access_token
headers = {'content-type': 'application/x-www-form-urlencoded'}
f... | 35.1875 | 98 | 0.619005 | 151 | 1,126 | 4.450331 | 0.543046 | 0.066964 | 0.053571 | 0.066964 | 0.196429 | 0.196429 | 0.196429 | 0.196429 | 0.196429 | 0.196429 | 0 | 0.022099 | 0.19627 | 1,126 | 32 | 99 | 35.1875 | 0.720442 | 0.035524 | 0 | 0.083333 | 0 | 0 | 0.229907 | 0.086916 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
5824ba4bea2f64074dbcd56d9e462c95a3407e0f | 11,478 | py | Python | nets/efficientdet_training.py | BikesSaver/efficientdet-pytorch | c1e02484733cf2080ecb2ee57c184038a77a09e8 | [
"MIT"
] | 1 | 2020-09-17T00:51:38.000Z | 2020-09-17T00:51:38.000Z | nets/efficientdet_training.py | BikesSaver/efficientdet-pytorch | c1e02484733cf2080ecb2ee57c184038a77a09e8 | [
"MIT"
] | null | null | null | nets/efficientdet_training.py | BikesSaver/efficientdet-pytorch | c1e02484733cf2080ecb2ee57c184038a77a09e8 | [
"MIT"
] | null | null | null |
from random import shuffle
import numpy as np
import torch
import torch.nn as nn
import math
import torch.nn.functional as F
import cv2
from matplotlib.colors import rgb_to_hsv, hsv_to_rgb
from PIL import Image
from .RepulsionLoss.my_repulsion_loss import repulsion
def preprocess_input(image):
image /= 255
... | 37.756579 | 141 | 0.560202 | 1,463 | 11,478 | 4.19959 | 0.155844 | 0.041504 | 0.011719 | 0.029948 | 0.283529 | 0.232259 | 0.20166 | 0.157552 | 0.138346 | 0.138346 | 0 | 0.034843 | 0.307371 | 11,478 | 303 | 142 | 37.881188 | 0.737987 | 0.042516 | 0 | 0.146667 | 0 | 0 | 0.000365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.044444 | 0.004444 | 0.137778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5825efbd85281c5ef1426be58d4c0871b10dcdf9 | 3,445 | py | Python | tests/test_coco_dataset.py | petersiemen/CVND---Image-Captioning-Project | 53d15c5f2b9d5e04b007f4f8b1e4f9dd17425c06 | [
"MIT"
] | null | null | null | tests/test_coco_dataset.py | petersiemen/CVND---Image-Captioning-Project | 53d15c5f2b9d5e04b007f4f8b1e4f9dd17425c06 | [
"MIT"
] | null | null | null | tests/test_coco_dataset.py | petersiemen/CVND---Image-Captioning-Project | 53d15c5f2b9d5e04b007f4f8b1e4f9dd17425c06 | [
"MIT"
] | null | null | null | from .context import CoCoDataset
import os
from torchvision import transforms
import torch.utils.data as data
from src.data_loader import get_loader
from context import COCO_SMALL
from context import clean_sentence
def test_coco_dataset():
transform_train = transforms.Compose([
transforms.Resize(256), # ... | 39.147727 | 93 | 0.608128 | 388 | 3,445 | 5.226804 | 0.286082 | 0.054241 | 0.025641 | 0.026627 | 0.5 | 0.476824 | 0.450197 | 0.450197 | 0.416174 | 0.31854 | 0 | 0.040911 | 0.311756 | 3,445 | 88 | 94 | 39.147727 | 0.814424 | 0.158781 | 0 | 0.342857 | 0 | 0 | 0.058273 | 0.022199 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.1 | 0 | 0.128571 | 0.128571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5828ffc478a57b5d3a54d1d5409d86dcb72100d1 | 5,019 | py | Python | test/retro-fuse-test.py | jaylogue/retro-fuse | b300865c1aa4c38930adea66de364f182c73b3b5 | [
"Apache-2.0"
] | 28 | 2021-02-23T06:00:16.000Z | 2022-02-28T13:38:48.000Z | test/retro-fuse-test.py | jaylogue/retro-fuse | b300865c1aa4c38930adea66de364f182c73b3b5 | [
"Apache-2.0"
] | 3 | 2021-09-22T12:37:59.000Z | 2022-02-01T00:33:25.000Z | test/retro-fuse-test.py | jaylogue/retro-fuse | b300865c1aa4c38930adea66de364f182c73b3b5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright 2021 Jay Logue
#
# 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 la... | 38.312977 | 139 | 0.695557 | 607 | 5,019 | 5.701812 | 0.350906 | 0.040451 | 0.044207 | 0.019936 | 0.199364 | 0.128576 | 0.058943 | 0.021959 | 0 | 0 | 0 | 0.009503 | 0.182307 | 5,019 | 130 | 140 | 38.607692 | 0.833821 | 0.151624 | 0 | 0.057471 | 0 | 0 | 0.169776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126437 | false | 0.011494 | 0.08046 | 0.011494 | 0.229885 | 0.091954 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
582b2e616da4b6c095b0fcc22d4f757b4b8fddc7 | 4,374 | py | Python | creme/cluster/k_means.py | tweakyllama/creme | 6bb8e34789947a943e7e6a8a1af1341e4c1de144 | [
"BSD-3-Clause"
] | null | null | null | creme/cluster/k_means.py | tweakyllama/creme | 6bb8e34789947a943e7e6a8a1af1341e4c1de144 | [
"BSD-3-Clause"
] | null | null | null | creme/cluster/k_means.py | tweakyllama/creme | 6bb8e34789947a943e7e6a8a1af1341e4c1de144 | [
"BSD-3-Clause"
] | 2 | 2021-06-20T09:29:38.000Z | 2021-06-23T07:47:21.000Z | import collections
import numpy as np
from sklearn import utils
from .. import base
__all__ = ['KMeans']
def euclidean_distance(a, b):
return sum((a.get(k, 0) - b.get(k, 0)) ** 2 for k in set([*a.keys(), *b.keys()]))
class KMeans(base.Clusterer):
"""Incremental k-means.
The most common way to imple... | 37.384615 | 123 | 0.633973 | 594 | 4,374 | 4.585859 | 0.341751 | 0.024229 | 0.020558 | 0.026432 | 0.06975 | 0.041116 | 0.041116 | 0.041116 | 0.041116 | 0 | 0 | 0.015251 | 0.265432 | 4,374 | 116 | 124 | 37.706897 | 0.832555 | 0.618884 | 0 | 0 | 0 | 0 | 0.004068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184211 | false | 0 | 0.105263 | 0.052632 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
582ee3ae3eed760c8ee30d3cb820c5796139122b | 42,165 | py | Python | fasttrips/TAZ.py | pedrocamargo/fast-trips | a2549936b2707b00d6c21b4e6ae4be8fefd0aa46 | [
"Apache-2.0"
] | 3 | 2017-11-03T00:18:23.000Z | 2020-11-30T18:54:46.000Z | fasttrips/TAZ.py | pedrocamargo/fast-trips | a2549936b2707b00d6c21b4e6ae4be8fefd0aa46 | [
"Apache-2.0"
] | null | null | null | fasttrips/TAZ.py | pedrocamargo/fast-trips | a2549936b2707b00d6c21b4e6ae4be8fefd0aa46 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
from __future__ import division
from builtins import str
from builtins import object
__copyright__ = "Copyright 2015 Contributing Entities"
__license__ = """
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with... | 57.681259 | 157 | 0.628958 | 5,315 | 42,165 | 4.643462 | 0.090875 | 0.120786 | 0.08748 | 0.081037 | 0.675972 | 0.595989 | 0.520016 | 0.442747 | 0.372609 | 0.306199 | 0 | 0.004576 | 0.290027 | 42,165 | 730 | 158 | 57.760274 | 0.819849 | 0.236428 | 0 | 0.226667 | 0 | 0 | 0.080477 | 0.003554 | 0 | 0 | 0 | 0.006849 | 0.033333 | 1 | 0.008889 | false | 0 | 0.031111 | 0 | 0.211111 | 0.004444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
58309191f39ca5397068401c1360251a2a11c48a | 2,686 | py | Python | tests/test_stardist2D.py | ianbgroves/stardist | 6524c27d01c625dabfd75b1443dd46ccb1cb3dcd | [
"BSD-3-Clause"
] | 1 | 2021-02-05T11:59:39.000Z | 2021-02-05T11:59:39.000Z | tests/test_stardist2D.py | ianbgroves/stardist | 6524c27d01c625dabfd75b1443dd46ccb1cb3dcd | [
"BSD-3-Clause"
] | 1 | 2020-06-17T09:06:29.000Z | 2020-06-17T09:06:29.000Z | tests/test_stardist2D.py | ianbgroves/stardist | 6524c27d01c625dabfd75b1443dd46ccb1cb3dcd | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from stardist import star_dist, relabel_image_stardist
import pytest
from utils import random_image, real_image2d, check_similar, circle_image
@pytest.mark.parametrize('img', (real_image2d()[1], random_image((128, 123))))
@pytest.mark.parametrize('n_rays', (4, 16, 32))
def test_types(img, n_rays):
... | 36.794521 | 95 | 0.655249 | 426 | 2,686 | 3.943662 | 0.246479 | 0.065476 | 0.1 | 0.035714 | 0.531548 | 0.516071 | 0.481548 | 0.481548 | 0.451786 | 0.451786 | 0 | 0.056595 | 0.184289 | 2,686 | 72 | 96 | 37.305556 | 0.710178 | 0.038347 | 0 | 0.37037 | 0 | 0 | 0.083075 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 1 | 0.074074 | false | 0 | 0.092593 | 0 | 0.185185 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
583228f93313973cc02c96e9d032138aeb10b053 | 26,395 | py | Python | all_call/infer_new.py | jbudis/dante | 90177c33825d5f9ce3fba5463092fbcf20b72fe2 | [
"Apache-2.0"
] | 4 | 2018-09-28T14:50:47.000Z | 2021-08-09T12:46:12.000Z | all_call/infer_new.py | jbudis/dante | 90177c33825d5f9ce3fba5463092fbcf20b72fe2 | [
"Apache-2.0"
] | 6 | 2019-01-02T13:08:31.000Z | 2021-03-25T21:45:40.000Z | all_call/infer_new.py | jbudis/dante | 90177c33825d5f9ce3fba5463092fbcf20b72fe2 | [
"Apache-2.0"
] | 1 | 2017-12-12T10:38:26.000Z | 2017-12-12T10:38:26.000Z | import math
import functools
from scipy.stats import binom
import numpy as np
import itertools
import sys
import matplotlib.pyplot as plt
import matplotlib.patheffects as PathEffects
from copy import copy
def combine_distribs(deletes, inserts):
"""
Combine insert and delete models/distributions
:param de... | 44.21273 | 183 | 0.633567 | 3,693 | 26,395 | 4.338207 | 0.120769 | 0.01161 | 0.014356 | 0.006491 | 0.418388 | 0.331128 | 0.279883 | 0.239561 | 0.216903 | 0.183384 | 0 | 0.021108 | 0.262322 | 26,395 | 596 | 184 | 44.286913 | 0.801705 | 0.351961 | 0 | 0.11194 | 0 | 0 | 0.027876 | 0 | 0 | 0 | 0 | 0.003356 | 0.014925 | 1 | 0.089552 | false | 0 | 0.033582 | 0.003731 | 0.231343 | 0.044776 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
583491d9c92a8b53e562e95c5e8cebcf67dc3f00 | 10,937 | py | Python | code/python-neo/neo/core/basesignal.py | qniksefat/macaque_brain_causality_test | 24cd5caee3ae79066ca37844cab931d04dcad977 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | null | null | null | code/python-neo/neo/core/basesignal.py | qniksefat/macaque_brain_causality_test | 24cd5caee3ae79066ca37844cab931d04dcad977 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | null | null | null | code/python-neo/neo/core/basesignal.py | qniksefat/macaque_brain_causality_test | 24cd5caee3ae79066ca37844cab931d04dcad977 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
'''
This module implements :class:`BaseSignal`, an array of signals.
This is a parent class from which all signal objects inherit:
:class:`AnalogSignal` and :class:`IrregularlySampledSignal`
:class:`BaseSignal` inherits from :class:`quantities.Quantity`, which
inherits from :class:`numpy.ar... | 37.713793 | 98 | 0.633172 | 1,301 | 10,937 | 5.122214 | 0.229055 | 0.023409 | 0.011705 | 0.018758 | 0.216537 | 0.146158 | 0.113145 | 0.106543 | 0.093637 | 0.082533 | 0 | 0.002899 | 0.274664 | 10,937 | 289 | 99 | 37.844291 | 0.837136 | 0.34525 | 0 | 0.109375 | 0 | 0 | 0.072988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132813 | false | 0 | 0.0625 | 0 | 0.335938 | 0.007813 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
58394701554d3a507c68ce7bd347905779a7cb27 | 891 | py | Python | dl_data_validation_toolset/framework/report_gen/group.py | kwierman/dl_data_validation_toolset | fb0486abd000ba28c6474f8979762c92fb4ee038 | [
"MIT"
] | 1 | 2017-08-24T00:46:47.000Z | 2017-08-24T00:46:47.000Z | dl_data_validation_toolset/framework/report_gen/group.py | kwierman/dl_data_validation_toolset | fb0486abd000ba28c6474f8979762c92fb4ee038 | [
"MIT"
] | 177 | 2017-04-10T23:03:27.000Z | 2022-03-28T22:07:54.000Z | dl_data_validation_toolset/framework/report_gen/group.py | HEP-DL/dl_data_validation_toolset | fb0486abd000ba28c6474f8979762c92fb4ee038 | [
"MIT"
] | null | null | null | from .file import FileGenerator
from ..report.group import GroupReport
import logging
import asyncio
import os
class GroupGenerator(object):
logger = logging.getLogger("ddvt.rep_gen.grp")
def __init__(self, group):
self.meta = group
async def generate(self, parent):
self.logger.info("Generating Group ... | 31.821429 | 75 | 0.725028 | 134 | 891 | 4.701493 | 0.380597 | 0.07619 | 0.103175 | 0.080952 | 0.166667 | 0.07619 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15376 | 891 | 27 | 76 | 33 | 0.835544 | 0 | 0 | 0 | 0 | 0 | 0.087542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.238095 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
583a2eef001a72cf9b9737ee6ef5ed10dc5f494d | 1,458 | py | Python | api/scpca_portal/views/filter_options.py | AlexsLemonade/scpca-portal | d60d6db5abe892ed58764128269df936778c6fd7 | [
"BSD-3-Clause"
] | null | null | null | api/scpca_portal/views/filter_options.py | AlexsLemonade/scpca-portal | d60d6db5abe892ed58764128269df936778c6fd7 | [
"BSD-3-Clause"
] | 85 | 2021-07-27T14:33:55.000Z | 2022-03-28T20:18:41.000Z | api/scpca_portal/views/filter_options.py | AlexsLemonade/scpca-portal | d60d6db5abe892ed58764128269df936778c6fd7 | [
"BSD-3-Clause"
] | null | null | null | from django.http import JsonResponse
from rest_framework import status, viewsets
from scpca_portal.models import Project
class FilterOptionsViewSet(viewsets.ViewSet):
def list(self, request):
dicts = (
Project.objects.order_by()
.values("diagnoses", "seq_units", "technologies", "m... | 33.136364 | 75 | 0.577503 | 144 | 1,458 | 5.625 | 0.305556 | 0.088889 | 0.049383 | 0.074074 | 0.181481 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0.003006 | 0.315501 | 1,458 | 43 | 76 | 33.906977 | 0.808617 | 0 | 0 | 0 | 0 | 0 | 0.115226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.088235 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
583a8bbe4d63a96ce53555ed1fbf8f8d31b49bdb | 846 | py | Python | all_raspi_code_backup/DriveTesting.py | lord-pradhan/SnowBot | 82a0b3439dc203bf27725e293d6e56bcad720c09 | [
"MIT"
] | 2 | 2020-05-31T07:37:59.000Z | 2021-03-24T13:43:39.000Z | all_raspi_code_backup/DriveTesting.py | lord-pradhan/SnowBot | 82a0b3439dc203bf27725e293d6e56bcad720c09 | [
"MIT"
] | null | null | null | all_raspi_code_backup/DriveTesting.py | lord-pradhan/SnowBot | 82a0b3439dc203bf27725e293d6e56bcad720c09 | [
"MIT"
] | 1 | 2019-12-13T19:21:12.000Z | 2019-12-13T19:21:12.000Z | """
Program: DriveTesting.py
Revised On: 12/01/2019
"""
### Library Imports
from DriveArduino import DriveArduino
import numpy as np
from time import sleep
from sys import exit
from signal import signal, SIGINT
###
### CTRL + C Signal Handler & Resource Cleanup
def signal_handler(sig, frame):
"""Handler for... | 16.92 | 46 | 0.652482 | 107 | 846 | 5.130841 | 0.514019 | 0.027322 | 0.021858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031343 | 0.208038 | 846 | 49 | 47 | 17.265306 | 0.78806 | 0.234043 | 0 | 0 | 0 | 0 | 0.110379 | 0 | 0 | 0 | 0.00659 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.208333 | 0 | 0.291667 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
583d59db015ae71e12d80d6cb5e3e2aba7e8e79c | 817 | py | Python | setup.py | Ozencb/cli-pto | 445e5133340adb25dcf5d14c4203643b7a8741c2 | [
"MIT"
] | 6 | 2020-04-30T18:32:38.000Z | 2020-07-28T15:37:04.000Z | setup.py | Ozencb/cli-pto | 445e5133340adb25dcf5d14c4203643b7a8741c2 | [
"MIT"
] | 1 | 2020-04-30T18:34:08.000Z | 2020-05-01T10:16:49.000Z | setup.py | Ozencb/cli-pto | 445e5133340adb25dcf5d14c4203643b7a8741c2 | [
"MIT"
] | null | null | null | import os
import re
from setuptools import find_packages, setup
def get_version(package):
path = os.path.join(os.path.dirname(__file__), package, "__init__.py")
with open(path, "rb") as f:
init_py = f.read().decode("utf-8")
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
... | 31.423077 | 85 | 0.641371 | 102 | 817 | 4.911765 | 0.627451 | 0.05988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002946 | 0.168911 | 817 | 25 | 86 | 32.68 | 0.734904 | 0 | 0 | 0 | 0 | 0 | 0.324357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.05 | 0.15 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5840120e03a13bb96c98c4c82966a3349be1a938 | 1,012 | py | Python | format_errors.py | drupchen/correct-ewts | 0a23db216b2fb78a8c73476ca55cebf23a7d2706 | [
"Apache-2.0"
] | null | null | null | format_errors.py | drupchen/correct-ewts | 0a23db216b2fb78a8c73476ca55cebf23a7d2706 | [
"Apache-2.0"
] | null | null | null | format_errors.py | drupchen/correct-ewts | 0a23db216b2fb78a8c73476ca55cebf23a7d2706 | [
"Apache-2.0"
] | null | null | null | import re
from collections import defaultdict
with open('input/errors-ewts.csv') as f:
raw = f.read()
#raw = raw.replace('`not expected', '` not expected')
lines = raw.split('\n')
data = []
for line in lines:
columns = re.split(r'(?:^"|","|",,"|"$)', line)
msgs = [a for a in columns[3].split(',') i... | 27.351351 | 60 | 0.614625 | 148 | 1,012 | 4.094595 | 0.418919 | 0.066007 | 0.054455 | 0.046205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008674 | 0.202569 | 1,012 | 37 | 61 | 27.351351 | 0.742255 | 0.051383 | 0 | 0.068966 | 0 | 0 | 0.1375 | 0.021875 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 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 |
5840ef989a734ba50cfa0c0f408fab21378c995e | 344 | py | Python | exercise-django/user/views.py | theseana/goodfellas | 9ad9d9759d193cd64ec71876b1dab155bb9ba2c7 | [
"MIT"
] | null | null | null | exercise-django/user/views.py | theseana/goodfellas | 9ad9d9759d193cd64ec71876b1dab155bb9ba2c7 | [
"MIT"
] | null | null | null | exercise-django/user/views.py | theseana/goodfellas | 9ad9d9759d193cd64ec71876b1dab155bb9ba2c7 | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
from user.forms import UserForm
def register(request):
form = UserForm()
if request.method == 'POST':
form = UserForm(request.POST)
if form.is_valid():
form.save()
return render(request, 'user/registeration/register... | 24.571429 | 78 | 0.659884 | 42 | 344 | 5.380952 | 0.595238 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22093 | 344 | 13 | 79 | 26.461538 | 0.843284 | 0.06686 | 0 | 0 | 0 | 0 | 0.125392 | 0.100313 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5841ecc637b36ee324105b2737f2b6315d8d0459 | 3,609 | py | Python | shark/example/env/catch_ball_env.py | 7starsea/shark | 5030f576da6f5998728d80170480e68a3debfe79 | [
"MIT"
] | null | null | null | shark/example/env/catch_ball_env.py | 7starsea/shark | 5030f576da6f5998728d80170480e68a3debfe79 | [
"MIT"
] | null | null | null | shark/example/env/catch_ball_env.py | 7starsea/shark | 5030f576da6f5998728d80170480e68a3debfe79 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
import PIL
import torch
import torchvision.transforms as TF
from types import SimpleNamespace
from gym import spaces, Env
from .SharkExampleEnv import CatchBallSimulate
# internal_screen_h, internal_screen_w = 80, 140
class CatchBallEnvBase(Env):
metadata = {'render.m... | 31.112069 | 107 | 0.600443 | 473 | 3,609 | 4.437632 | 0.289641 | 0.045736 | 0.023821 | 0.030014 | 0.118152 | 0.118152 | 0.083849 | 0.083849 | 0.083849 | 0.083849 | 0 | 0.022231 | 0.277085 | 3,609 | 115 | 108 | 31.382609 | 0.782292 | 0.031865 | 0 | 0.144578 | 0 | 0 | 0.023789 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 1 | 0.13253 | false | 0 | 0.096386 | 0 | 0.325301 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5842cd8ea1a4359a03a5653c005a52f4e2eeeb68 | 5,123 | py | Python | homeroom/wsgi.py | openshift-labs/workshop-homeroom | a0f0c144eef679e35a93201d11973329be9924fb | [
"Apache-2.0"
] | 14 | 2019-09-28T20:42:29.000Z | 2021-11-23T13:12:42.000Z | homeroom/wsgi.py | openshift-homeroom/workshop-homeroom | a0f0c144eef679e35a93201d11973329be9924fb | [
"Apache-2.0"
] | 1 | 2019-10-15T02:55:57.000Z | 2019-10-15T02:55:57.000Z | homeroom/wsgi.py | openshift-homeroom/workshop-homeroom | a0f0c144eef679e35a93201d11973329be9924fb | [
"Apache-2.0"
] | 3 | 2020-02-11T16:55:59.000Z | 2021-08-13T13:16:27.000Z | import os
import json
import threading
import time
import yaml
from flask import Flask
from flask import render_template
from kubernetes.client.rest import ApiException
from kubernetes.client.configuration import Configuration
from kubernetes.config.incluster_config import load_incluster_config
from kubernetes.clien... | 31.819876 | 87 | 0.622877 | 549 | 5,123 | 5.697632 | 0.271403 | 0.028133 | 0.042199 | 0.016624 | 0.392583 | 0.334399 | 0.315217 | 0.268542 | 0.268542 | 0.242967 | 0 | 0.002162 | 0.277572 | 5,123 | 160 | 88 | 32.01875 | 0.843015 | 0.026352 | 0 | 0.279279 | 0 | 0 | 0.15011 | 0.047762 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.126126 | 0 | 0.162162 | 0.045045 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
58483a9eb35db037bda84433b79608b84ed9f2c4 | 1,912 | py | Python | hard-gists/5409581/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/5409581/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/5409581/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | '''
rename_selected_relation_box.py
Written by Alex Forsythe (awforsythe.com)
When executed, attempts to locate any selected box within any relation
constraint in the scene. If a selected relation box is found, prompts the user
to enter a new name for that box. Allows relation boxes to be given more
descriptive names.... | 30.83871 | 103 | 0.670502 | 273 | 1,912 | 4.564103 | 0.358974 | 0.102729 | 0.091493 | 0.060193 | 0.105136 | 0.081862 | 0.081862 | 0.081862 | 0.081862 | 0.05618 | 0 | 0.000702 | 0.25523 | 1,912 | 61 | 104 | 31.344262 | 0.874298 | 0.467573 | 0 | 0.137931 | 0 | 0 | 0.062099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.034483 | 0 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
584861b23601a5bd9f5d5e6bce09eb691a44f1c2 | 4,010 | py | Python | osu_scene_switcher.py | FunOrange/osu-scene-switcher | 471fc654fe4a222abaf4fbcf062e8302dd52bb18 | [
"MIT"
] | 4 | 2021-05-22T20:56:36.000Z | 2022-03-02T00:19:45.000Z | osu_scene_switcher.py | FunOrange/obs-osu-noise-suppression-switcher | 471fc654fe4a222abaf4fbcf062e8302dd52bb18 | [
"MIT"
] | null | null | null | osu_scene_switcher.py | FunOrange/obs-osu-noise-suppression-switcher | 471fc654fe4a222abaf4fbcf062e8302dd52bb18 | [
"MIT"
] | 1 | 2021-01-29T18:28:04.000Z | 2021-01-29T18:28:04.000Z | import os
import time
import obspython as obs
initial_load = False
status_file = ''
idle_scene = ''
playing_scene = ''
def undb(db):
return pow(10, db/20)
def script_description():
return 'Automatically switch scenes upon entering osu! gameplay.\n\n' \
'See github page for setup instructions.\n\n... | 33.416667 | 122 | 0.721696 | 581 | 4,010 | 4.691911 | 0.225473 | 0.059428 | 0.036317 | 0.028613 | 0.547322 | 0.524578 | 0.440939 | 0.387748 | 0.387748 | 0.332722 | 0 | 0.004621 | 0.190524 | 4,010 | 119 | 123 | 33.697479 | 0.835182 | 0.057606 | 0 | 0.430233 | 0 | 0 | 0.176339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081395 | false | 0 | 0.034884 | 0.023256 | 0.186047 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5849254d7b154fa7533602568ea01800f7eb9d68 | 3,386 | py | Python | donkey_gym/envs/donkey_env.py | mint26/donkey_gym | 4d0302da5818d56f92247b9dbf389994961f487e | [
"MIT"
] | 5 | 2018-11-01T18:48:03.000Z | 2021-03-11T14:36:22.000Z | donkey_gym/envs/donkey_env.py | mint26/donkey_gym | 4d0302da5818d56f92247b9dbf389994961f487e | [
"MIT"
] | null | null | null | donkey_gym/envs/donkey_env.py | mint26/donkey_gym | 4d0302da5818d56f92247b9dbf389994961f487e | [
"MIT"
] | 7 | 2018-10-13T19:48:14.000Z | 2021-10-31T15:10:52.000Z | '''
file: donkey_env.py
author: Tawn Kramer
date: 2018-08-31
'''
import os
from threading import Thread
import numpy as np
import gym
from gym import error, spaces, utils
from gym.utils import seeding
from donkey_gym.envs.donkey_sim import DonkeyUnitySimContoller
from donkey_gym.envs.donkey_proc import Do... | 27.528455 | 99 | 0.60189 | 381 | 3,386 | 5.144357 | 0.351706 | 0.05102 | 0.028061 | 0.040816 | 0.17602 | 0.060204 | 0.060204 | 0.060204 | 0.060204 | 0 | 0 | 0.012858 | 0.28795 | 3,386 | 122 | 100 | 27.754098 | 0.800083 | 0.102185 | 0 | 0.171429 | 0 | 0 | 0.102359 | 0 | 0 | 0 | 0 | 0.008197 | 0 | 1 | 0.157143 | false | 0 | 0.114286 | 0.014286 | 0.442857 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
584a11d14b64edf45f4d6711e52adb48c3e934c3 | 3,966 | py | Python | main.py | parzibyte/login-flask | 165e10980f6a34c7587a53578ed361506eb37475 | [
"MIT"
] | 2 | 2021-09-21T16:37:41.000Z | 2021-12-09T17:38:18.000Z | main.py | parzibyte/login-flask | 165e10980f6a34c7587a53578ed361506eb37475 | [
"MIT"
] | null | null | null | main.py | parzibyte/login-flask | 165e10980f6a34c7587a53578ed361506eb37475 | [
"MIT"
] | 1 | 2021-08-16T01:36:58.000Z | 2021-08-16T01:36:58.000Z | """
____ _____ _ _ _
| _ \ | __ \ (_) | | |
| |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___
| _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \
| |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/
|____/ \__, | |_| ... | 36.054545 | 137 | 0.594049 | 438 | 3,966 | 4.997717 | 0.541096 | 0.025582 | 0.029237 | 0.018273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017315 | 0.22819 | 3,966 | 109 | 138 | 36.385321 | 0.697811 | 0.541351 | 0 | 0.096774 | 0 | 0.032258 | 0.24549 | 0.038431 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.032258 | 0.064516 | 0.387097 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
584b6938b21baa80544be5899accf3e8f5524589 | 218 | py | Python | Modulo 3/HelloWorld.py | antonio343/clase | fda04a606246695aa5d93c8b2b5e2890a16d5973 | [
"MIT"
] | null | null | null | Modulo 3/HelloWorld.py | antonio343/clase | fda04a606246695aa5d93c8b2b5e2890a16d5973 | [
"MIT"
] | null | null | null | Modulo 3/HelloWorld.py | antonio343/clase | fda04a606246695aa5d93c8b2b5e2890a16d5973 | [
"MIT"
] | null | null | null | import sys
print("Hello world, I am",sys.executable, sys.version)
x=input("Dame un numero mayor que cero: ")
x = int(x)
if x < 0:
print('Negative changed to zero')
x = 0
print(f"El valor final de x es: {x}") | 19.818182 | 54 | 0.646789 | 41 | 218 | 3.439024 | 0.731707 | 0.028369 | 0.099291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011561 | 0.206422 | 218 | 11 | 55 | 19.818182 | 0.803468 | 0 | 0 | 0 | 0 | 0 | 0.452055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
584b955b3560453b5439bd686f05b35e554caf34 | 436 | py | Python | rasiberryPiGPIOBaseController/driver/test.py | onwebbe/rasiberryPiBaseController | bdb81cb5a0e62414fa091635a83db799017249e7 | [
"MIT"
] | null | null | null | rasiberryPiGPIOBaseController/driver/test.py | onwebbe/rasiberryPiBaseController | bdb81cb5a0e62414fa091635a83db799017249e7 | [
"MIT"
] | null | null | null | rasiberryPiGPIOBaseController/driver/test.py | onwebbe/rasiberryPiBaseController | bdb81cb5a0e62414fa091635a83db799017249e7 | [
"MIT"
] | null | null | null | def convertToHEXForChar(charList):
convertedCharList = []
for message in charList:
convertedCharList.append(ord(message))
return convertedCharList
def displayChar(line, *args):
concatedList = []
for argItem in args:
concatedList.extend(argItem)
print(len(concatedList))
for message in c... | 22.947368 | 63 | 0.713303 | 44 | 436 | 7.068182 | 0.522727 | 0.160772 | 0.07717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011173 | 0.178899 | 436 | 19 | 64 | 22.947368 | 0.857542 | 0 | 0 | 0 | 0 | 0 | 0.032037 | 0 | 0 | 0 | 0.009153 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.266667 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
584bc0b37c22b1a874521a0f4acbe34fb62b2cde | 17,670 | py | Python | Acquire/Client/_user.py | michellab/BioSimSpaceCloud | 456b146a2131565e354352872d3e75a08c3652d1 | [
"Apache-2.0"
] | 2 | 2019-02-15T16:04:19.000Z | 2019-02-19T15:42:27.000Z | Acquire/Client/_user.py | michellab/BioSimSpaceCloud | 456b146a2131565e354352872d3e75a08c3652d1 | [
"Apache-2.0"
] | null | null | null | Acquire/Client/_user.py | michellab/BioSimSpaceCloud | 456b146a2131565e354352872d3e75a08c3652d1 | [
"Apache-2.0"
] | null | null | null |
import os as _os
from enum import Enum as _Enum
from datetime import datetime as _datetime
import time as _time
from Acquire.Service import call_function as _call_function
from Acquire.Service import Service as _Service
from Acquire.ObjectStore import bytes_to_string as _bytes_to_string
from Acquire.ObjectStore im... | 32.244526 | 79 | 0.590323 | 2,081 | 17,670 | 4.775108 | 0.136953 | 0.049814 | 0.028681 | 0.013686 | 0.333199 | 0.268089 | 0.251484 | 0.231257 | 0.203079 | 0.192613 | 0 | 0.002804 | 0.334012 | 17,670 | 547 | 80 | 32.303473 | 0.841604 | 0.197793 | 0 | 0.385757 | 0 | 0 | 0.092108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091988 | false | 0.020772 | 0.041543 | 0.002967 | 0.267062 | 0.008902 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
584ff888d14bb4a1085d283e99cd26c1976fee31 | 739 | py | Python | var/spack/repos/builtin/packages/netdata/package.py | MiddelkoopT/spack | 4d94c4c4600f42a7a3bb3d06ec879140bc259304 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/netdata/package.py | MiddelkoopT/spack | 4d94c4c4600f42a7a3bb3d06ec879140bc259304 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/netdata/package.py | MiddelkoopT/spack | 4d94c4c4600f42a7a3bb3d06ec879140bc259304 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Netdata(AutotoolsPackage):
"""Real-time performance monitoring, done right!"""
homepa... | 32.130435 | 96 | 0.70636 | 90 | 739 | 5.733333 | 0.722222 | 0.104651 | 0.124031 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104 | 0.154263 | 739 | 22 | 97 | 33.590909 | 0.7216 | 0.317997 | 0 | 0 | 0 | 0.090909 | 0.418182 | 0.129293 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5850feed17b8dae7b2795290112a605c61fbeef1 | 1,727 | py | Python | examples/my_quickstart.py | 87boy/sisu | 823d12c9a8126ab41bb14b6d91cad9acbb95bc47 | [
"Apache-2.0"
] | null | null | null | examples/my_quickstart.py | 87boy/sisu | 823d12c9a8126ab41bb14b6d91cad9acbb95bc47 | [
"Apache-2.0"
] | null | null | null | examples/my_quickstart.py | 87boy/sisu | 823d12c9a8126ab41bb14b6d91cad9acbb95bc47 | [
"Apache-2.0"
] | null | null | null | import flask
import flask.ext.sqlalchemy
import flask.ext.restless
# Create the Flask application and the Flask-SQLAlchemy object.
app = flask.Flask(__name__)
app.config['DEBUG'] = True
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db'
db = flask.ext.sqlalchemy.SQLAlchemy(app)
# Create your Flask-SQLAL... | 35.244898 | 76 | 0.711639 | 246 | 1,727 | 4.914634 | 0.45122 | 0.052936 | 0.06617 | 0.029777 | 0.133168 | 0.117452 | 0.117452 | 0.117452 | 0.117452 | 0.117452 | 0 | 0.001404 | 0.17487 | 1,727 | 48 | 77 | 35.979167 | 0.847018 | 0.401853 | 0 | 0.166667 | 0 | 0 | 0.095191 | 0.044161 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5853ac3ad2b07e0bcfbda162b15356c29c25cefe | 4,687 | py | Python | src/crypto_wallet/crypto_wallet.py | Sedosa/Blockchain-Analytics | a09de9cfd308c70e38a05d4127fb372af5b919b7 | [
"MIT"
] | null | null | null | src/crypto_wallet/crypto_wallet.py | Sedosa/Blockchain-Analytics | a09de9cfd308c70e38a05d4127fb372af5b919b7 | [
"MIT"
] | null | null | null | src/crypto_wallet/crypto_wallet.py | Sedosa/Blockchain-Analytics | a09de9cfd308c70e38a05d4127fb372af5b919b7 | [
"MIT"
] | null | null | null | """
This is a script that takes a calculates the value of a cryptocurrency portfolio
It uses JSON in the with quantities of different cryptocurrencies in the form
{
"ticker" : volume,
"ticker" : volume
}
gets the live price from an API endpoint and returns the price of each item in the portfolio and the total... | 26.480226 | 123 | 0.631961 | 587 | 4,687 | 4.925043 | 0.30494 | 0.031131 | 0.017641 | 0.022829 | 0.172951 | 0.135593 | 0.113456 | 0.113456 | 0.113456 | 0.081633 | 0 | 0.003127 | 0.249413 | 4,687 | 176 | 124 | 26.630682 | 0.818078 | 0.354384 | 0 | 0.074627 | 0 | 0.029851 | 0.187625 | 0.034331 | 0 | 0 | 0 | 0.005682 | 0 | 1 | 0.089552 | false | 0 | 0.074627 | 0.014925 | 0.238806 | 0.029851 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5853d100285433e6202ec4adff867b94b7270769 | 1,685 | py | Python | np43s.py | Muraru-taketa/100_knocks | d34c0157d15a0fda45ac60e41e93bd6b73cebb58 | [
"MIT"
] | null | null | null | np43s.py | Muraru-taketa/100_knocks | d34c0157d15a0fda45ac60e41e93bd6b73cebb58 | [
"MIT"
] | null | null | null | np43s.py | Muraru-taketa/100_knocks | d34c0157d15a0fda45ac60e41e93bd6b73cebb58 | [
"MIT"
] | null | null | null | #np43.py
#43. 名詞を含む文節が動詞を含む文節に係るものを抽出
"""名詞を含む文節が,動詞を含む文節に係るとき,
これらをタブ区切り形式で抽出せよ.ただし,句読点などの記号は出力しないようにせよ.
"""
import re
# 区切り文字
separator = re.compile('\t|,')
# かかりうけ
kakari = re.compile(r'''(?:\*\s\d+\s) # キャプチャ対象外
(-?\d+) # 数字(係り先)
''', re.VERBOSE)
class M... | 30.636364 | 113 | 0.619585 | 213 | 1,685 | 4.835681 | 0.375587 | 0.038835 | 0.048544 | 0.034951 | 0.192233 | 0.170874 | 0.139806 | 0.139806 | 0.081553 | 0.081553 | 0 | 0.01403 | 0.238576 | 1,685 | 55 | 114 | 30.636364 | 0.788776 | 0.15905 | 0 | 0 | 0 | 0 | 0.083811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.057143 | 0 | 0.228571 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
585453c1a7dceaddf108fc0199e9890c1f5860d6 | 4,026 | py | Python | backend/presentation/Viewsets/comment_view.py | Weida-W/CMPUT404-project-socialdistribution | 41d8a7f7f013723d2a3878156953fbc11c2e6156 | [
"W3C-20150513"
] | null | null | null | backend/presentation/Viewsets/comment_view.py | Weida-W/CMPUT404-project-socialdistribution | 41d8a7f7f013723d2a3878156953fbc11c2e6156 | [
"W3C-20150513"
] | 75 | 2021-01-13T23:48:48.000Z | 2021-04-16T19:39:38.000Z | backend/presentation/Viewsets/comment_view.py | Weida-W/CMPUT404-project-socialdistribution | 41d8a7f7f013723d2a3878156953fbc11c2e6156 | [
"W3C-20150513"
] | 12 | 2021-01-13T23:22:35.000Z | 2021-04-28T08:13:38.000Z | from presentation.models import Author, Follower, Post, Comment
from django.shortcuts import get_object_or_404
from presentation.Serializers.comment_serializer import CommentSerializer
from rest_framework import viewsets, status
from django.http import JsonResponse
from rest_framework.response import Response
import uu... | 37.981132 | 115 | 0.655986 | 469 | 4,026 | 5.47548 | 0.270789 | 0.046729 | 0.034268 | 0.03271 | 0.222741 | 0.206386 | 0.206386 | 0.206386 | 0.168224 | 0.168224 | 0 | 0.008581 | 0.247392 | 4,026 | 105 | 116 | 38.342857 | 0.838944 | 0.067312 | 0 | 0.278481 | 0 | 0 | 0.075604 | 0.007307 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088608 | false | 0 | 0.113924 | 0 | 0.379747 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5854bedf049dafa402041ca2798dee49d6f30c6d | 11,520 | py | Python | bundle/vim-pandoc-master/python3/vim_pandoc/command.py | ian-mitchell-001/my-vim-configs | 198747234df311179185ce9fb8424bb1c1c64771 | [
"Unlicense"
] | null | null | null | bundle/vim-pandoc-master/python3/vim_pandoc/command.py | ian-mitchell-001/my-vim-configs | 198747234df311179185ce9fb8424bb1c1c64771 | [
"Unlicense"
] | null | null | null | bundle/vim-pandoc-master/python3/vim_pandoc/command.py | ian-mitchell-001/my-vim-configs | 198747234df311179185ce9fb8424bb1c1c64771 | [
"Unlicense"
] | null | null | null | # encoding=utf-8
import vim
import re
import sys
import os.path
import argparse
import shlex
from subprocess import Popen, PIPE
from itertools import chain
from vim_pandoc.utils import plugin_enabled_modules, ensure_string
from vim_pandoc.bib.vim_completer import find_bibfiles
from vim_pandoc.helpparser import PandocI... | 44.307692 | 118 | 0.521354 | 1,277 | 11,520 | 4.536413 | 0.233359 | 0.046608 | 0.041429 | 0.031072 | 0.200932 | 0.111514 | 0.091317 | 0.065251 | 0.04937 | 0.03556 | 0 | 0.004178 | 0.355903 | 11,520 | 259 | 119 | 44.478764 | 0.77655 | 0.084983 | 0 | 0.126829 | 0 | 0 | 0.172614 | 0.033876 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.058537 | 0 | 0.092683 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
585b50403351ad785a902fa91bf54e0474f5e68a | 4,019 | py | Python | third_party/gsutil/oauth2_plugin/oauth2_helper.py | bdero/depot_tools | 685577439cbf9cb8c660e3da39bdcbb64c197c95 | [
"BSD-3-Clause"
] | 20 | 2015-12-07T06:08:27.000Z | 2021-11-08T11:06:18.000Z | third_party/gsutil/oauth2_plugin/oauth2_helper.py | bdero/depot_tools | 685577439cbf9cb8c660e3da39bdcbb64c197c95 | [
"BSD-3-Clause"
] | 1 | 2019-01-14T00:36:35.000Z | 2019-01-14T00:36:35.000Z | third_party/gsutil/oauth2_plugin/oauth2_helper.py | bdero/depot_tools | 685577439cbf9cb8c660e3da39bdcbb64c197c95 | [
"BSD-3-Clause"
] | 23 | 2015-05-05T08:22:59.000Z | 2021-11-10T06:24:46.000Z | # Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 38.644231 | 91 | 0.736502 | 538 | 4,019 | 5.288104 | 0.366171 | 0.049209 | 0.036907 | 0.031634 | 0.220738 | 0.069596 | 0.041476 | 0.018981 | 0 | 0 | 0 | 0.017948 | 0.168201 | 4,019 | 103 | 92 | 39.019417 | 0.833084 | 0.227171 | 0 | 0.088235 | 0 | 0.014706 | 0.29387 | 0.052546 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.058824 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
58610c3f91576fd189f2c5eb7bc06289b39922a3 | 50,976 | py | Python | spinta/manifests/tabular/helpers.py | atviriduomenys/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 2 | 2019-03-14T06:41:14.000Z | 2019-03-26T11:48:14.000Z | spinta/manifests/tabular/helpers.py | sirex/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 44 | 2019-04-05T15:52:45.000Z | 2022-03-30T07:41:33.000Z | spinta/manifests/tabular/helpers.py | sirex/spinta | 77a10e201f8cdc63143fce7996fd0898acb1ff58 | [
"MIT"
] | 1 | 2019-04-01T09:54:27.000Z | 2019-04-01T09:54:27.000Z | from __future__ import annotations
import csv
import pathlib
import textwrap
from operator import itemgetter
from typing import Any
from typing import Callable
from typing import Dict
from typing import IO
from typing import Iterable
from typing import Iterator
from typing import List
from typing import NamedTuple
fro... | 27.779837 | 80 | 0.568464 | 5,697 | 50,976 | 4.999122 | 0.073196 | 0.018329 | 0.018013 | 0.022823 | 0.435147 | 0.350737 | 0.254916 | 0.230723 | 0.190801 | 0.176088 | 0 | 0.002667 | 0.315815 | 50,976 | 1,834 | 81 | 27.794984 | 0.813917 | 0.020774 | 0 | 0.384822 | 0 | 0 | 0.076169 | 0.002346 | 0 | 0 | 0 | 0.000545 | 0.000672 | 1 | 0.078576 | false | 0.009402 | 0.049026 | 0.015447 | 0.210208 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
58641c0b89af2618e34db3686e77a3a4237fbad3 | 651 | py | Python | setup.py | wontonst/orvibo | 72722b16caa929ae3f07b0a6789a0f18cd3ebad3 | [
"MIT"
] | null | null | null | setup.py | wontonst/orvibo | 72722b16caa929ae3f07b0a6789a0f18cd3ebad3 | [
"MIT"
] | null | null | null | setup.py | wontonst/orvibo | 72722b16caa929ae3f07b0a6789a0f18cd3ebad3 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
from os import path
from io import open
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='orvibo',
version='1.5.0... | 27.125 | 108 | 0.725038 | 91 | 651 | 5.054945 | 0.67033 | 0.163043 | 0.082609 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010909 | 0.155146 | 651 | 23 | 109 | 28.304348 | 0.825455 | 0.082949 | 0 | 0 | 0 | 0 | 0.29798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
58652e385a1acfda94718bdec15c5a91dde6b8c7 | 3,053 | py | Python | autograder-master/autograder/test_runner.py | Diana1320622/AILabs | 315a6f4b8f8dd60e4f53d348e06e23b4d827d179 | [
"MIT"
] | null | null | null | autograder-master/autograder/test_runner.py | Diana1320622/AILabs | 315a6f4b8f8dd60e4f53d348e06e23b4d827d179 | [
"MIT"
] | null | null | null | autograder-master/autograder/test_runner.py | Diana1320622/AILabs | 315a6f4b8f8dd60e4f53d348e06e23b4d827d179 | [
"MIT"
] | null | null | null | import glob, os
import subprocess
from difflib import context_diff
class TestRunner(object):
def __init__(self, context):
self.context = context
self.error_count = 0
self.test_count = 0
self.success_count = 0
def run(self):
os.getcwd()
os.chdir(self.context.repo... | 33.184783 | 83 | 0.556174 | 345 | 3,053 | 4.791304 | 0.292754 | 0.0732 | 0.032668 | 0.039927 | 0.180278 | 0.030248 | 0 | 0 | 0 | 0 | 0 | 0.004936 | 0.33639 | 3,053 | 91 | 84 | 33.549451 | 0.810958 | 0 | 0 | 0.08 | 0 | 0 | 0.092398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106667 | false | 0 | 0.04 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5868165c78c75470f0c193bcf63d0eb76394d605 | 5,059 | py | Python | NER-BiLSTM-CRF-PyTorch-main/src/eval.py | OscarChang46/de-identify-sensitive-data-for-cybersecurity-use-cases-e.g.-PII-and-PHI-data-in-unstructured-text-an | e77ca0d5c19206a349ecc94fc71febdc10824482 | [
"MIT"
] | 22 | 2021-04-28T04:19:04.000Z | 2022-03-20T17:17:57.000Z | NER-BiLSTM-CRF-PyTorch-main/src/eval.py | OscarChang46/de-identify-sensitive-data-for-cybersecurity-use-cases-e.g.-PII-and-PHI-data-in-unstructured-text-an | e77ca0d5c19206a349ecc94fc71febdc10824482 | [
"MIT"
] | 3 | 2021-09-03T12:14:36.000Z | 2022-03-07T10:43:51.000Z | NER-BiLSTM-CRF-PyTorch-main/src/eval.py | OscarChang46/de-identify-sensitive-data-for-cybersecurity-use-cases-e.g.-PII-and-PHI-data-in-unstructured-text-an | e77ca0d5c19206a349ecc94fc71febdc10824482 | [
"MIT"
] | 9 | 2021-03-25T13:44:51.000Z | 2022-02-19T03:56:38.000Z | # coding=utf-8
import optparse
import torch
import time
import pickle
from torch.autograd import Variable
from loader import *
from utils import *
# python -m visdom.server
optparser = optparse.OptionParser()
optparser.add_option(
"-t", "--test", default="data/eng.testb",
help="Test set location"
)
optparse... | 32.22293 | 94 | 0.613758 | 706 | 5,059 | 4.203966 | 0.252125 | 0.016173 | 0.042453 | 0.033693 | 0.234164 | 0.199124 | 0.169137 | 0.169137 | 0.12938 | 0.12938 | 0 | 0.015385 | 0.229097 | 5,059 | 157 | 95 | 32.22293 | 0.745641 | 0.007116 | 0 | 0.178295 | 0 | 0 | 0.115515 | 0.004979 | 0 | 0 | 0 | 0 | 0.015504 | 1 | 0.007752 | false | 0 | 0.054264 | 0 | 0.062016 | 0.031008 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
586a480b0504292a0e113f2a2851c35d28765f0b | 377 | py | Python | rename_files.py | ssinhaleite/util | b65a6e0d7ff270cc2bbdbc09b7894ffc77edaf8d | [
"MIT"
] | 1 | 2018-10-10T11:37:45.000Z | 2018-10-10T11:37:45.000Z | rename_files.py | ssinhaleite/util | b65a6e0d7ff270cc2bbdbc09b7894ffc77edaf8d | [
"MIT"
] | null | null | null | rename_files.py | ssinhaleite/util | b65a6e0d7ff270cc2bbdbc09b7894ffc77edaf8d | [
"MIT"
] | null | null | null | import mahotas as mh
import glob
import os
# rename files from 0 to number of files.
files = glob.glob("/path/*")
files.sort()
if not os.path.isdir("/path/renamed/"):
os.mkdir("/path/renamed/")
for i in range(len(files)):
print("Processing " + files[i])
renamedFile = mh.imread(files[i])
mh.imsave("... | 20.944444 | 71 | 0.649867 | 58 | 377 | 4.224138 | 0.586207 | 0.134694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006369 | 0.167109 | 377 | 17 | 72 | 22.176471 | 0.773885 | 0.103448 | 0 | 0 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
586b210947d0b950e98da84e776f0d34d976b0d2 | 1,749 | py | Python | scripts/download_lookml.py | orf/lkml | 2175a22e0fe8a894ef9312c73c6a062df2447795 | [
"MIT"
] | 110 | 2019-06-25T14:26:41.000Z | 2022-02-01T13:27:19.000Z | scripts/download_lookml.py | orf/lkml | 2175a22e0fe8a894ef9312c73c6a062df2447795 | [
"MIT"
] | 56 | 2019-06-26T22:11:43.000Z | 2022-03-15T20:37:30.000Z | scripts/download_lookml.py | orf/lkml | 2175a22e0fe8a894ef9312c73c6a062df2447795 | [
"MIT"
] | 28 | 2019-07-08T17:34:49.000Z | 2022-03-25T14:36:00.000Z | import os
import re
from base64 import b64decode
from pathlib import Path
import requests
username = os.environ["GITHUB_USERNAME"]
password = os.environ["GITHUB_PERSONAL_ACCESS_TOKEN"]
auth = requests.auth.HTTPBasicAuth(username, password)
directory = Path(__file__).resolve().parent.parent / "github"
directory.mkdir... | 26.5 | 71 | 0.573471 | 202 | 1,749 | 4.836634 | 0.425743 | 0.042989 | 0.030706 | 0.0348 | 0.106448 | 0.055271 | 0 | 0 | 0 | 0 | 0 | 0.009167 | 0.313894 | 1,749 | 65 | 72 | 26.907692 | 0.805 | 0 | 0 | 0.117647 | 0 | 0 | 0.157804 | 0.037164 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.039216 | 0.098039 | 0 | 0.098039 | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
586cd0144d170eb0711f6999768b768351ab3215 | 579 | py | Python | docs/conf.py | RTBHOUSE/carreralib | 1daa959ef411b29601c92f86c0f6876fe8367837 | [
"MIT"
] | null | null | null | docs/conf.py | RTBHOUSE/carreralib | 1daa959ef411b29601c92f86c0f6876fe8367837 | [
"MIT"
] | null | null | null | docs/conf.py | RTBHOUSE/carreralib | 1daa959ef411b29601c92f86c0f6876fe8367837 | [
"MIT"
] | 1 | 2020-02-25T20:40:50.000Z | 2020-02-25T20:40:50.000Z | import os
import sys
sys.path.insert(0, os.path.abspath('..'))
def get_version(filename):
from re import findall
with open(filename) as f:
metadata = dict(findall(r"__([a-z]+)__ = '([^']+)'", f.read()))
return metadata['version']
project = 'carreralib'
copyright = '2015-2017 Thomas Kemmer'
vers... | 20.678571 | 71 | 0.658031 | 73 | 579 | 5.027397 | 0.712329 | 0.098093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018672 | 0.16753 | 579 | 27 | 72 | 21.444444 | 0.742739 | 0 | 0 | 0 | 0 | 0 | 0.309154 | 0.043178 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.142857 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
586fa3eca62dcbd41023f2732e592c80e6a5d80c | 3,077 | py | Python | projects/InterpretationReID/train_net.py | SheldongChen/AMD.github.io | 5f3018f239127949b2d3995162ffe033dcf8051a | [
"Apache-2.0"
] | 17 | 2021-11-01T01:14:06.000Z | 2022-03-02T14:59:39.000Z | projects/InterpretationReID/train_net.py | SheldongChen/AMD.github.io | 5f3018f239127949b2d3995162ffe033dcf8051a | [
"Apache-2.0"
] | 2 | 2021-12-22T07:56:13.000Z | 2022-03-18T10:26:21.000Z | projects/InterpretationReID/train_net.py | SheldongChen/AMD.github.io | 5f3018f239127949b2d3995162ffe033dcf8051a | [
"Apache-2.0"
] | 2 | 2022-02-18T07:42:38.000Z | 2022-02-18T10:16:26.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
@author: sherlock
@contact: sherlockliao01@gmail.com
"""
import logging
import os
import sys
sys.path.append('.')
from fastreid.config import get_cfg
from projects.InterpretationReID.interpretationreid.engine import DefaultTrainer, default_argument_parser, default_setup, ... | 26.756522 | 128 | 0.677283 | 381 | 3,077 | 5.254593 | 0.35958 | 0.023976 | 0.065934 | 0.019481 | 0.202797 | 0.164835 | 0.147852 | 0.147852 | 0.147852 | 0.147852 | 0 | 0.00209 | 0.222619 | 3,077 | 114 | 129 | 26.991228 | 0.834866 | 0.253494 | 0 | 0.052632 | 0 | 0 | 0.025878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087719 | false | 0 | 0.157895 | 0 | 0.368421 | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
586fc6bf6803a3f84dbc2e58fa7867211fee503b | 826 | py | Python | asynciomeasures/collectors.py | Poogles/aiomeasures | d62482e8de56a00bce310e7c422d1a1e7a114ef7 | [
"MIT"
] | 2 | 2018-12-27T22:01:41.000Z | 2019-04-29T11:51:15.000Z | asynciomeasures/collectors.py | Poogles/aiomeasures | d62482e8de56a00bce310e7c422d1a1e7a114ef7 | [
"MIT"
] | null | null | null | asynciomeasures/collectors.py | Poogles/aiomeasures | d62482e8de56a00bce310e7c422d1a1e7a114ef7 | [
"MIT"
] | null | null | null | from collections import deque
from asynciomeasures.events import Event
class Collector(deque):
"""Caped list of metrics
"""
def flush(self, rate=None, formatter=None):
while True:
try:
metric = self.popleft()
if isinstance(metric, Event):
... | 28.482759 | 63 | 0.457627 | 68 | 826 | 5.558824 | 0.529412 | 0.079365 | 0.10582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.491525 | 826 | 28 | 64 | 29.5 | 0.9 | 0.025424 | 0 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5870b28965fe63f49e7e9e53bb51b1566ea6452e | 1,463 | py | Python | python/primsAlgo.py | Ayushd70/RetartedCodes | 301ced178a0ec352b2d127e19028845de950551d | [
"MIT"
] | null | null | null | python/primsAlgo.py | Ayushd70/RetartedCodes | 301ced178a0ec352b2d127e19028845de950551d | [
"MIT"
] | null | null | null | python/primsAlgo.py | Ayushd70/RetartedCodes | 301ced178a0ec352b2d127e19028845de950551d | [
"MIT"
] | null | null | null | # Prim's Algorithm in Python
INF = 9999999
# number of vertices in graph
V = 5
# create a 2d array of size 5x5
# for adjacency matrix to represent graph
G = [
[0, 9, 75, 0, 0],
[9, 0, 95, 19, 42],
[75, 95, 0, 51, 66],
[0, 19, 51, 0, 31],
[0, 42, 66, 31, 0],
]
# create a array to track... | 31.12766 | 68 | 0.546822 | 235 | 1,463 | 3.391489 | 0.378723 | 0.012547 | 0.011292 | 0.045169 | 0.057716 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06962 | 0.352016 | 1,463 | 46 | 69 | 31.804348 | 0.771097 | 0.470267 | 0 | 0 | 0 | 0 | 0.02391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5870fd20f646ac17e765716a8a7674f3e6c452db | 13,449 | py | Python | tests/test_likelihood.py | sa2c/care-home-fit | 58a2639c74b53e24f062d0dfc3e21df6d53b3077 | [
"MIT"
] | null | null | null | tests/test_likelihood.py | sa2c/care-home-fit | 58a2639c74b53e24f062d0dfc3e21df6d53b3077 | [
"MIT"
] | null | null | null | tests/test_likelihood.py | sa2c/care-home-fit | 58a2639c74b53e24f062d0dfc3e21df6d53b3077 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''Tests for the likelihood.py module'''
from time import perf_counter_ns
import pytest
import numpy as np
from numpy.testing import assert_array_equal, assert_almost_equal
from scipy.stats import gamma
import likelihood
SMALL_FIT_PARAMS = {
'baseline_intensities': np.asarray([1, 2, np.na... | 32.485507 | 79 | 0.693509 | 1,767 | 13,449 | 4.983022 | 0.158461 | 0.037819 | 0.023169 | 0.0318 | 0.551164 | 0.490857 | 0.409199 | 0.386258 | 0.352868 | 0.318228 | 0 | 0.031168 | 0.207971 | 13,449 | 413 | 80 | 32.564165 | 0.795437 | 0.175403 | 0 | 0.311828 | 0 | 0 | 0.066918 | 0.041421 | 0 | 0 | 0 | 0 | 0.075269 | 1 | 0.082437 | false | 0 | 0.021505 | 0 | 0.114695 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
587220b8fa00eda9456728bff03e4461bf290254 | 2,411 | py | Python | data-structure/queue.py | 66chenbiao/sleepace_verification_tool | 6271312d9d78ee50703e27a75787510cab4c7f4d | [
"Apache-2.0"
] | null | null | null | data-structure/queue.py | 66chenbiao/sleepace_verification_tool | 6271312d9d78ee50703e27a75787510cab4c7f4d | [
"Apache-2.0"
] | null | null | null | data-structure/queue.py | 66chenbiao/sleepace_verification_tool | 6271312d9d78ee50703e27a75787510cab4c7f4d | [
"Apache-2.0"
] | null | null | null | import unittest
class Queue:
"""Simple Queue implementation - First in First Out"""
def __init__(self):
self.__data = []
def enqueue(self, text):
"""Add new element to queue
Arguments:
text {string} -- An element which needs to be added to an end of a queue
"... | 27.397727 | 84 | 0.561178 | 296 | 2,411 | 4.412162 | 0.202703 | 0.067381 | 0.045942 | 0.045942 | 0.488515 | 0.47856 | 0.452527 | 0.425727 | 0.379786 | 0.379786 | 0 | 0.004222 | 0.312319 | 2,411 | 87 | 85 | 27.712644 | 0.783474 | 0.189548 | 0 | 0.403846 | 0 | 0 | 0.091357 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 1 | 0.173077 | false | 0 | 0.019231 | 0 | 0.346154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
58747a38ec4c868ae85caa7d4f7a021b2a655030 | 7,973 | py | Python | facebook_messenger_conversation.py | davidkrantz/FacebookChatStatistics | 01fc2a022d45ed695fa7f4ad53d6532a160379db | [
"MIT"
] | 35 | 2018-02-22T09:04:21.000Z | 2022-03-21T18:28:21.000Z | facebook_messenger_conversation.py | davidkrantz/FacebookChatStatistics | 01fc2a022d45ed695fa7f4ad53d6532a160379db | [
"MIT"
] | 5 | 2018-05-03T17:56:35.000Z | 2022-02-24T08:19:58.000Z | facebook_messenger_conversation.py | davidkrantz/FacebookChatStatistics | 01fc2a022d45ed695fa7f4ad53d6532a160379db | [
"MIT"
] | 12 | 2018-05-15T19:15:25.000Z | 2022-02-24T08:20:15.000Z | import sys
import numpy as np
import json
import matplotlib.pyplot as plt
from matplotlib.dates import DateFormatter
from matplotlib.backends.backend_pdf import PdfPages
from datetime import datetime, timedelta
import matplotlib.dates as mdates
import emoji
class FacebookMessengerConversation():
"""Module for get... | 34.07265 | 82 | 0.56014 | 971 | 7,973 | 4.46344 | 0.215242 | 0.025842 | 0.029534 | 0.011537 | 0.210891 | 0.151592 | 0.099216 | 0.085371 | 0.056761 | 0.038302 | 0 | 0.015498 | 0.336385 | 7,973 | 233 | 83 | 34.218884 | 0.803629 | 0.243321 | 0 | 0.111111 | 0 | 0 | 0.078971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087302 | false | 0.007937 | 0.071429 | 0 | 0.253968 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5876eec474b4c0410b6e104f6c352d08e47e01ce | 1,758 | py | Python | setup.py | stevearc/pyramid_duh | af14b185533d00b69dfdb8ab1cab6f1d1d8d4647 | [
"MIT"
] | 5 | 2015-12-15T09:27:16.000Z | 2017-12-12T12:56:04.000Z | setup.py | stevearc/pyramid_duh | af14b185533d00b69dfdb8ab1cab6f1d1d8d4647 | [
"MIT"
] | null | null | null | setup.py | stevearc/pyramid_duh | af14b185533d00b69dfdb8ab1cab6f1d1d8d4647 | [
"MIT"
] | null | null | null | """ Setup file """
import os
import sys
from setuptools import setup, find_packages
HERE = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(HERE, 'README.rst')).read()
CHANGES = open(os.path.join(HERE, 'CHANGES.rst')).read()
REQUIREMENTS = [
'pyramid',
'six',
]
TEST_REQUIREMENTS = [
... | 30.310345 | 61 | 0.580205 | 178 | 1,758 | 5.578652 | 0.533708 | 0.133938 | 0.176234 | 0.07855 | 0.036254 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015723 | 0.276451 | 1,758 | 57 | 62 | 30.842105 | 0.764937 | 0.005688 | 0 | 0 | 0 | 0 | 0.381034 | 0.012069 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.061224 | 0 | 0.061224 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5877683380ccf730fab956e05f9d48490796920d | 555 | py | Python | telegramhelpers.py | olgamirete/log-public-ip | 0e53c27e62f0709a9d0adf52c860b407a841a252 | [
"MIT"
] | null | null | null | telegramhelpers.py | olgamirete/log-public-ip | 0e53c27e62f0709a9d0adf52c860b407a841a252 | [
"MIT"
] | null | null | null | telegramhelpers.py | olgamirete/log-public-ip | 0e53c27e62f0709a9d0adf52c860b407a841a252 | [
"MIT"
] | null | null | null | import requests, os
from dotenv import load_dotenv
load_dotenv()
API_TOKEN = os.getenv('API_TOKEN')
def sendMessage(user_id: str, text: str, max_retries: int = 1):
url = f'https://api.telegram.org/bot{API_TOKEN}/sendMessage'
payload = {
"chat_id": user_id,
"text": text
}
for i in rang... | 24.130435 | 64 | 0.572973 | 73 | 555 | 4.219178 | 0.60274 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002611 | 0.30991 | 555 | 23 | 65 | 24.130435 | 0.801567 | 0 | 0 | 0.1 | 0 | 0 | 0.131295 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.05 | 0.1 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
58793e76d3fcb25dfcdd3339f4cd5621aa988f33 | 1,880 | py | Python | datawinners/questionnaire/tests/test_questionnaire_template.py | ICT4H/dcs-web | fb0f53fad4401cfac1c1789ff28b9d5bda40c975 | [
"Apache-2.0"
] | 1 | 2015-11-02T09:11:12.000Z | 2015-11-02T09:11:12.000Z | datawinners/questionnaire/tests/test_questionnaire_template.py | ICT4H/dcs-web | fb0f53fad4401cfac1c1789ff28b9d5bda40c975 | [
"Apache-2.0"
] | null | null | null | datawinners/questionnaire/tests/test_questionnaire_template.py | ICT4H/dcs-web | fb0f53fad4401cfac1c1789ff28b9d5bda40c975 | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from mock import patch, MagicMock
from mangrove.datastore.database import DatabaseManager
from datawinners.questionnaire.library import QuestionnaireLibrary
class TestQuestionnaireTemplate(TestCase):
def test_get_category_to_doc_mappings(self):
with patch('datawinners.quest... | 47 | 100 | 0.643617 | 205 | 1,880 | 5.570732 | 0.331707 | 0.049037 | 0.063047 | 0.049037 | 0.399299 | 0.399299 | 0.399299 | 0.399299 | 0.399299 | 0.399299 | 0 | 0.006892 | 0.228191 | 1,880 | 39 | 101 | 48.205128 | 0.780152 | 0 | 0 | 0.258065 | 0 | 0 | 0.180851 | 0.075532 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.064516 | false | 0 | 0.129032 | 0 | 0.225806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
58795121905bb3b21c3853525b46782e8fe333ee | 2,826 | py | Python | chainer_chemistry/links/update/ggnn_update.py | pfnet/chainerchem | efe323aa21f63a815130d673781e7cca1ccb72d2 | [
"MIT"
] | 184 | 2019-11-27T12:59:01.000Z | 2022-03-29T19:18:54.000Z | chainer_chemistry/links/update/ggnn_update.py | pfnet/chainerchem | efe323aa21f63a815130d673781e7cca1ccb72d2 | [
"MIT"
] | 21 | 2019-12-08T01:53:33.000Z | 2020-10-23T01:19:56.000Z | chainer_chemistry/links/update/ggnn_update.py | pfnet/chainerchem | efe323aa21f63a815130d673781e7cca1ccb72d2 | [
"MIT"
] | 45 | 2019-11-28T09:59:54.000Z | 2022-02-07T02:42:46.000Z | import chainer
from chainer import functions
from chainer import links
import chainer_chemistry
from chainer_chemistry.links.connection.graph_linear import GraphLinear
from chainer_chemistry.utils import is_sparse
class GGNNUpdate(chainer.Chain):
"""GGNN submodule for update part.
Args:
in_channels ... | 36.230769 | 79 | 0.624204 | 369 | 2,826 | 4.525745 | 0.227642 | 0.05988 | 0.053892 | 0.041916 | 0.170659 | 0.14491 | 0.086228 | 0.086228 | 0.086228 | 0.086228 | 0 | 0.004418 | 0.279193 | 2,826 | 77 | 80 | 36.701299 | 0.815415 | 0.216561 | 0 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.244444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
58803dca4ce3bbdf62d3eb2aca41861e7c2239d8 | 1,125 | py | Python | main.py | philipperemy/tensorflow-fifo-queue-example | 1e38e6e907b7856e954caeeb01d52f7d66e54de0 | [
"MIT"
] | 42 | 2017-03-17T07:22:30.000Z | 2022-03-31T16:11:50.000Z | main.py | afcarl/tensorflow-fifo-queue-example | 885bcfe417f6d3a9beb4180922cd221d95abc1ef | [
"MIT"
] | 2 | 2017-08-15T19:23:26.000Z | 2017-08-18T02:49:11.000Z | main.py | afcarl/tensorflow-fifo-queue-example | 885bcfe417f6d3a9beb4180922cd221d95abc1ef | [
"MIT"
] | 15 | 2017-05-04T07:27:24.000Z | 2022-03-31T16:26:28.000Z | from __future__ import print_function
import time
import tensorflow as tf
from data import DataGenerator
def define_net(input_batch):
return input_batch + 20 # simplest network I could think of.
def main():
batch_size = 1
coord = tf.train.Coordinator()
with tf.name_scope('create_inputs'):
... | 25 | 95 | 0.683556 | 155 | 1,125 | 4.754839 | 0.574194 | 0.054274 | 0.037992 | 0.05156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012644 | 0.226667 | 1,125 | 44 | 96 | 25.568182 | 0.834483 | 0.178667 | 0 | 0 | 0 | 0 | 0.052174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0.035714 | 0.25 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
58803eeb0ae16d220e9ed2f74395fa7c80ff5afa | 1,285 | py | Python | Chapter_3/OO_DimmerSwitch_Model1.py | zjwillie/Object-Oriented-Python-Code | 017b07084c7937c870926b96a856f60b9d7077aa | [
"BSD-2-Clause"
] | 38 | 2021-11-16T03:04:42.000Z | 2022-03-27T05:57:50.000Z | Chapter_3/OO_DimmerSwitch_Model1.py | zjwillie/Object-Oriented-Python-Code | 017b07084c7937c870926b96a856f60b9d7077aa | [
"BSD-2-Clause"
] | null | null | null | Chapter_3/OO_DimmerSwitch_Model1.py | zjwillie/Object-Oriented-Python-Code | 017b07084c7937c870926b96a856f60b9d7077aa | [
"BSD-2-Clause"
] | 22 | 2021-11-11T15:57:58.000Z | 2022-03-18T12:58:07.000Z | # Dimmer Switch class
class DimmerSwitch():
def __init__(self, label):
self.label = label
self.isOn = False
self.brightness = 0
def turnOn(self):
self.isOn = True
# turn the light on at self.brightness
def turnOff(self):
self.isOn = False
# ... | 23.363636 | 61 | 0.654475 | 151 | 1,285 | 5.543046 | 0.384106 | 0.150538 | 0.033453 | 0.04779 | 0.143369 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0.02376 | 0.246693 | 1,285 | 54 | 62 | 23.796296 | 0.840909 | 0.244358 | 0 | 0.212121 | 0 | 0 | 0.055151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.212121 | 0.121212 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5881480162c7fded411cf84766484caa36fe07ea | 2,101 | py | Python | python/vosk/transcriber/cli.py | madkote/vosk-api | 8cf64ee93e5cc21a6d53595c6a80fc638a45b1d7 | [
"Apache-2.0"
] | 33 | 2019-09-03T23:21:14.000Z | 2020-01-02T10:18:15.000Z | python/vosk/transcriber/cli.py | madkote/vosk-api | 8cf64ee93e5cc21a6d53595c6a80fc638a45b1d7 | [
"Apache-2.0"
] | 7 | 2019-09-11T09:40:03.000Z | 2019-12-31T10:04:21.000Z | python/vosk/transcriber/cli.py | madkote/vosk-api | 8cf64ee93e5cc21a6d53595c6a80fc638a45b1d7 | [
"Apache-2.0"
] | 10 | 2019-09-05T05:30:16.000Z | 2020-01-02T10:18:17.000Z | #!/usr/bin/env python3
import logging
import argparse
from pathlib import Path
from vosk import list_models, list_languages
from vosk.transcriber.transcriber import Transcriber
parser = argparse.ArgumentParser(
description = 'Transcribe audio file and save result in selected format')
parser.add_argument(
... | 28.013333 | 113 | 0.634936 | 258 | 2,101 | 5.042636 | 0.360465 | 0.06226 | 0.117602 | 0.03382 | 0.104535 | 0.104535 | 0.06764 | 0.06764 | 0 | 0 | 0 | 0.002471 | 0.229415 | 2,101 | 74 | 114 | 28.391892 | 0.801112 | 0.009995 | 0 | 0.245902 | 0 | 0 | 0.243867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0 | 0.081967 | 0 | 0.147541 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
58816407aff8c18d528cadd21c391b1d398c40c2 | 2,923 | py | Python | OCR-Flask-app-master/tesseract.py | ChungNPH/OCR | 06a78fa5f2c8f5891db1969ac2076ef8d20b74a8 | [
"MIT"
] | null | null | null | OCR-Flask-app-master/tesseract.py | ChungNPH/OCR | 06a78fa5f2c8f5891db1969ac2076ef8d20b74a8 | [
"MIT"
] | null | null | null | OCR-Flask-app-master/tesseract.py | ChungNPH/OCR | 06a78fa5f2c8f5891db1969ac2076ef8d20b74a8 | [
"MIT"
] | null | null | null | import numpy as np
import cv2
from imutils.object_detection import non_max_suppression
import pytesseract
from matplotlib import pyplot as plt
def ocr(images):
results = []
for image in images:
args = {"image": image, "east": "frozen_east_text_detection.pb", "min_confidence": 0.5, "width": 320,
... | 30.134021 | 109 | 0.485118 | 341 | 2,923 | 4.085044 | 0.372434 | 0.046662 | 0.038765 | 0.028715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037757 | 0.383852 | 2,923 | 97 | 110 | 30.134021 | 0.735702 | 0 | 0 | 0 | 0 | 0 | 0.067373 | 0.034884 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028986 | false | 0 | 0.072464 | 0 | 0.130435 | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
588580ba517b618b5770a81ab628f3858c9ed41b | 3,141 | py | Python | DeepModels/KerasConvNetMNIST.py | amingolnari/Deep-Learning-Course | 00d4fe10db8d1dde3d9b2a94fe93531e8f836cbc | [
"MIT"
] | 17 | 2018-12-05T06:50:34.000Z | 2021-05-26T04:03:18.000Z | DeepModels/KerasConvNetMNIST.py | amingolnari/Deep-Learning-Course | 00d4fe10db8d1dde3d9b2a94fe93531e8f836cbc | [
"MIT"
] | null | null | null | DeepModels/KerasConvNetMNIST.py | amingolnari/Deep-Learning-Course | 00d4fe10db8d1dde3d9b2a94fe93531e8f836cbc | [
"MIT"
] | 3 | 2018-12-08T14:59:47.000Z | 2019-12-26T17:52:09.000Z | """
github : https://github.com/amingolnari/Deep-Learning-Course
Author : Amin Golnari
Keras Version : 2.2.4
Date : 4/12/2018
Keras CNN Classification on MNIST Data
Code 301
"""
## If your GPU is AMD , you can use PlaidML Backend
# import os
# os.environ["KERAS_BACKEND"] = "plaidml.keras.backend"
from keras.models i... | 32.381443 | 97 | 0.61127 | 395 | 3,141 | 4.792405 | 0.405063 | 0.042261 | 0.009509 | 0.010565 | 0.155837 | 0.096144 | 0.069731 | 0.036978 | 0.036978 | 0 | 0 | 0.047479 | 0.24228 | 3,141 | 96 | 98 | 32.71875 | 0.747899 | 0.157911 | 0 | 0.090909 | 0 | 0 | 0.106367 | 0.00915 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.090909 | 0 | 0.19697 | 0.015152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
588a0eb119fc13cdd266d6e4d090c38c400126a9 | 526 | py | Python | armstrong.py | Sanchr-sys/Letsupgrade_python7 | f130cb1dff259878193fb65dd414fc936a7c760d | [
"Apache-2.0"
] | null | null | null | armstrong.py | Sanchr-sys/Letsupgrade_python7 | f130cb1dff259878193fb65dd414fc936a7c760d | [
"Apache-2.0"
] | null | null | null | armstrong.py | Sanchr-sys/Letsupgrade_python7 | f130cb1dff259878193fb65dd414fc936a7c760d | [
"Apache-2.0"
] | null | null | null | start = 104200
end = 702648265
for arm1 in range(start, end + 1):
exp = len(str(arm1))
num_sum = 0
c = arm1
while c > 0:
num = c % 10
num_sum += num ** exp
c //= 10
if arm1 != num_sum:
continue
else:
if arm1 == num_sum:
... | 17.533333 | 70 | 0.503802 | 65 | 526 | 4.015385 | 0.553846 | 0.091954 | 0.114943 | 0.091954 | 0.275862 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0.110063 | 0.395437 | 526 | 29 | 71 | 18.137931 | 0.710692 | 0.171103 | 0 | 0 | 0 | 0 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
588a5c56f6208237e504aa5b6fa4afab73e5300c | 787 | py | Python | neji.py | NejiViraj/Viraj | d5bfc60e29100e00a87596b5e16961ab97a3dc4c | [
"BSD-2-Clause"
] | null | null | null | neji.py | NejiViraj/Viraj | d5bfc60e29100e00a87596b5e16961ab97a3dc4c | [
"BSD-2-Clause"
] | null | null | null | neji.py | NejiViraj/Viraj | d5bfc60e29100e00a87596b5e16961ab97a3dc4c | [
"BSD-2-Clause"
] | null | null | null | import requests
import json
def Neji_version():
# import neji
# print(neji.Neji_version())
# output: Hydrogen-0.0.0.1
return "Hydrogen-0.0.0.1"
def Neji_upload(put_file_directory_in_string_format):
# import neji
# print(neji.Neji_upload(r"C:\...\Pictures\trial\black1 - Copy (5).png"))
... | 24.59375 | 125 | 0.645489 | 119 | 787 | 4.109244 | 0.411765 | 0.01636 | 0.09816 | 0.110429 | 0.408998 | 0.265849 | 0.204499 | 0.204499 | 0.204499 | 0.204499 | 0 | 0.030581 | 0.168996 | 787 | 32 | 126 | 24.59375 | 0.717125 | 0.226175 | 0 | 0.125 | 0 | 0 | 0.16958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.0625 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |