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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b6670f5cb5c8d632fc48bea8d155de2c30d4d414 | 1,014 | py | Python | tests/test_geometry.py | Zepmanbc/cps_workflow | 0926a01c3ef1f163b43edcdae84cc77a1842f3b0 | [
"MIT"
] | 35 | 2019-07-03T16:45:47.000Z | 2022-03-31T16:08:35.000Z | tests/test_geometry.py | Zepmanbc/cps_workflow | 0926a01c3ef1f163b43edcdae84cc77a1842f3b0 | [
"MIT"
] | 42 | 2019-07-03T17:12:34.000Z | 2022-03-17T12:46:40.000Z | tests/test_geometry.py | Zepmanbc/cps_workflow | 0926a01c3ef1f163b43edcdae84cc77a1842f3b0 | [
"MIT"
] | null | null | null | """Geometry testing."""
import creopyson
from .fixtures import mk_creoson_post_dict, mk_creoson_post_None, mk_getactivefile
def test_geometry_bound_box(mk_creoson_post_dict, mk_getactivefile):
"""Test bound_box."""
c = creopyson.Client()
result = c.geometry_bound_box(file_="file")
assert isinstance(re... | 32.709677 | 82 | 0.719921 | 132 | 1,014 | 5.181818 | 0.212121 | 0.061404 | 0.131579 | 0.099415 | 0.630117 | 0.489766 | 0.444444 | 0.266082 | 0.152047 | 0.152047 | 0 | 0.00927 | 0.148915 | 1,014 | 30 | 83 | 33.8 | 0.783314 | 0.067061 | 0 | 0.45 | 0 | 0 | 0.021622 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.15 | false | 0 | 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 |
b667207fcb57bd4ec887cd84ed8d9aa150c17bab | 356 | py | Python | answers/Ananya Chandra/day4/question1.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 22 | 2021-03-16T14:07:47.000Z | 2021-08-13T08:52:50.000Z | answers/Ananya Chandra/day4/question1.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 174 | 2021-03-16T21:16:40.000Z | 2021-06-12T05:19:51.000Z | answers/Ananya Chandra/day4/question1.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 135 | 2021-03-16T16:47:12.000Z | 2021-06-27T14:22:38.000Z | #print prime factorisation of a number
n= int(input("enter the number \n"))
def prime(t, j):
if(j<t):
if(t%j!=0):
return prime(t, j=j + 1)
else:
return 0
else:
return 1
i=2
while(n>1):
if (prime(i, 2) == 1):
while n % i == 0:
print(i, ","... | 17.8 | 38 | 0.429775 | 58 | 356 | 2.637931 | 0.396552 | 0.039216 | 0.091503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046729 | 0.398876 | 356 | 19 | 39 | 18.736842 | 0.668224 | 0.103933 | 0 | 0.125 | 0 | 0 | 0.062893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.25 | 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 |
b66835431fc34e47226d3889e3140fdd215f8887 | 1,865 | py | Python | awx/main/tests/functional/api/test_project.py | gitEdouble/awx | 5885654405ccaf465f08df4db998a6dafebd9b4d | [
"Apache-2.0"
] | 2 | 2018-11-12T18:52:24.000Z | 2020-05-22T18:41:21.000Z | awx/main/tests/functional/api/test_project.py | gitEdouble/awx | 5885654405ccaf465f08df4db998a6dafebd9b4d | [
"Apache-2.0"
] | 4 | 2022-02-15T01:33:35.000Z | 2022-03-02T12:47:41.000Z | awx/main/tests/functional/api/test_project.py | gitEdouble/awx | 5885654405ccaf465f08df4db998a6dafebd9b4d | [
"Apache-2.0"
] | 9 | 2019-05-11T00:03:30.000Z | 2021-07-07T16:09:17.000Z | import os
from backports.tempfile import TemporaryDirectory
from django.conf import settings
import pytest
from awx.api.versioning import reverse
@pytest.mark.django_db
class TestInsightsCredential:
def test_insights_credential(self, patch, insights_project, admin_user, insights_credential):
patch(insig... | 39.680851 | 97 | 0.716354 | 241 | 1,865 | 5.323651 | 0.282158 | 0.112237 | 0.049883 | 0.056118 | 0.590023 | 0.441933 | 0.357755 | 0.307872 | 0.144193 | 0.110678 | 0 | 0.009536 | 0.156568 | 1,865 | 46 | 98 | 40.543478 | 0.806103 | 0 | 0 | 0.257143 | 0 | 0 | 0.131903 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.314286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6688604687d78d27bb9bf2999491a71b429148b | 761 | py | Python | download codigo fontes/PythonExercicios/ex058.py | tidesjunior2018/Exercicios-da-linguagem-pyhton | 82bb9e7a121ce9fcb12591615120dd9f3a493555 | [
"MIT"
] | null | null | null | download codigo fontes/PythonExercicios/ex058.py | tidesjunior2018/Exercicios-da-linguagem-pyhton | 82bb9e7a121ce9fcb12591615120dd9f3a493555 | [
"MIT"
] | null | null | null | download codigo fontes/PythonExercicios/ex058.py | tidesjunior2018/Exercicios-da-linguagem-pyhton | 82bb9e7a121ce9fcb12591615120dd9f3a493555 | [
"MIT"
] | 1 | 2021-03-13T18:26:50.000Z | 2021-03-13T18:26:50.000Z | '''
58-Melhore o jogo do desafio 028 onde o computador vai "pensar" em um numero
entre 0 e 10.Só que agora vai tentar advinhar até acertar mostrando no final
quantos palpites foram necessários até vencer.
'''
import random
palpite=0
print('\033[33m{:=^40}'.format('JOGO DA ADVINHAÇÂO 2.0'))
print('\033[m')
numerosortead... | 29.269231 | 76 | 0.68594 | 110 | 761 | 4.745455 | 0.627273 | 0.114943 | 0.02682 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046129 | 0.202365 | 761 | 25 | 77 | 30.44 | 0.813839 | 0.262812 | 0 | 0 | 0 | 0 | 0.280289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b66b180fc94b3f3077d165f9eba30fc51374504c | 20,727 | py | Python | main.py | HeloiseKatharine/Analise-de-dados | e05e337c0ef03ef68815aa684bdf4466226e02cb | [
"MIT"
] | null | null | null | main.py | HeloiseKatharine/Analise-de-dados | e05e337c0ef03ef68815aa684bdf4466226e02cb | [
"MIT"
] | null | null | null | main.py | HeloiseKatharine/Analise-de-dados | e05e337c0ef03ef68815aa684bdf4466226e02cb | [
"MIT"
] | null | null | null | import pandas as pd
import matplotlib.pyplot as plt
from IPython.display import display
from pymongo import MongoClient
def get_database():
from pymongo import MongoClient
CONNECTION_STRING = "#"
from pymongo import MongoClient
client = MongoClient(CONNECTION_STRING) #conexão com o cliente
ret... | 58.716714 | 331 | 0.726444 | 2,819 | 20,727 | 5.184108 | 0.181979 | 0.022923 | 0.02395 | 0.037635 | 0.548241 | 0.523402 | 0.495415 | 0.455522 | 0.415287 | 0.372041 | 0 | 0.023087 | 0.157813 | 20,727 | 352 | 332 | 58.883523 | 0.814104 | 0.200174 | 0 | 0.230047 | 0 | 0.046948 | 0.493564 | 0.124459 | 0 | 0 | 0 | 0.002841 | 0 | 1 | 0.065728 | false | 0 | 0.028169 | 0 | 0.098592 | 0.093897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b66d2d5519a0ef3b8c25d34eaafb9a51b73e5edc | 2,235 | py | Python | utils/preprocess_word_embedding.py | JiaqiYao/dynamic_multi_label | dae8b34349f6da80e962fefd5349a29a0f5630f1 | [
"MIT"
] | 2 | 2020-11-29T07:09:29.000Z | 2020-12-22T07:40:24.000Z | utils/preprocess_word_embedding.py | JiaqiYao/dynamic_multi_label | dae8b34349f6da80e962fefd5349a29a0f5630f1 | [
"MIT"
] | null | null | null | utils/preprocess_word_embedding.py | JiaqiYao/dynamic_multi_label | dae8b34349f6da80e962fefd5349a29a0f5630f1 | [
"MIT"
] | null | null | null | import os
import json
from tqdm import tqdm
def build_vocabulary(data_dir):
with open(os.path.join(data_dir, 'train_texts.txt'), 'rt') as fin:
train_texts = json.load(fin)
print("train text cuts load done")
with open(os.path.join(data_dir, "Telegram", 'train_key_words.dat'), 'rb') as fin:... | 39.910714 | 103 | 0.632215 | 305 | 2,235 | 4.42623 | 0.259016 | 0.036296 | 0.044444 | 0.062222 | 0.257037 | 0.203704 | 0.138519 | 0.048889 | 0 | 0 | 0 | 0.013095 | 0.248322 | 2,235 | 55 | 104 | 40.636364 | 0.790476 | 0 | 0 | 0.041667 | 0 | 0 | 0.19229 | 0.055989 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.0625 | 0 | 0.104167 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b66d60f785036a36c6d1ed53d8206d68665248c2 | 2,797 | py | Python | stories.py | grantat/news-similarity-core | 278399bb215954510fa265ba4bc5b28f7f02e1ee | [
"MIT"
] | null | null | null | stories.py | grantat/news-similarity-core | 278399bb215954510fa265ba4bc5b28f7f02e1ee | [
"MIT"
] | null | null | null | stories.py | grantat/news-similarity-core | 278399bb215954510fa265ba4bc5b28f7f02e1ee | [
"MIT"
] | null | null | null | import requests
import json
import hashlib
import os
import argparse
def load_links(filename):
with open(filename) as f:
data = json.load(f)
return data
def get_story(session, uri):
""" Get mementos for html using Internet Archive """
try:
print(uri)
r = session.get(uri,... | 34.530864 | 79 | 0.505899 | 302 | 2,797 | 4.539735 | 0.377483 | 0.023341 | 0.032093 | 0.032823 | 0.062728 | 0.062728 | 0.062728 | 0.062728 | 0.062728 | 0.062728 | 0 | 0.013411 | 0.386843 | 2,797 | 80 | 80 | 34.9625 | 0.786006 | 0.076153 | 0 | 0.032258 | 0 | 0 | 0.144134 | 0.035742 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.080645 | 0 | 0.16129 | 0.145161 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b66d7aa9b11fd773a698acfd6bb25cc487a20615 | 3,564 | py | Python | python/downsample_images_in_rosbag.py | JzHuai0108/vio_common | 2d9c5fce761034cb4e55b3395d259ce392da8ee6 | [
"BSD-3-Clause"
] | 16 | 2017-06-02T07:22:31.000Z | 2022-03-23T02:39:39.000Z | python/downsample_images_in_rosbag.py | JzHuai0108/vio_common | 2d9c5fce761034cb4e55b3395d259ce392da8ee6 | [
"BSD-3-Clause"
] | 2 | 2020-08-10T04:01:35.000Z | 2021-01-18T08:21:17.000Z | python/downsample_images_in_rosbag.py | JzHuai0108/vio_common | 2d9c5fce761034cb4e55b3395d259ce392da8ee6 | [
"BSD-3-Clause"
] | 19 | 2017-08-03T02:23:11.000Z | 2021-09-22T02:17:46.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
import argparse
import rosbag
import rospy
from cv_bridge import CvBridge
import cv2
import play_images_in_rosbag
def decide_output_encoding(cv_img):
"""
For 16UC1 input image, we need to use mono16 as output enc... | 33.942857 | 84 | 0.623457 | 471 | 3,564 | 4.494692 | 0.314225 | 0.036372 | 0.033066 | 0.025508 | 0.16958 | 0.144544 | 0.144544 | 0.144544 | 0.085026 | 0.085026 | 0 | 0.021714 | 0.263468 | 3,564 | 104 | 85 | 34.269231 | 0.784762 | 0.076038 | 0 | 0.103896 | 0 | 0 | 0.192945 | 0.019939 | 0 | 0 | 0.001227 | 0 | 0 | 1 | 0.025974 | false | 0.025974 | 0.103896 | 0 | 0.142857 | 0.116883 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b66e79df977dcaa16a976367fddaca5f9d45f186 | 1,770 | py | Python | gen_dataset.py | mantydze/knapsack-problem-py | 15caf65c8abde693f04eae0291933fa426aad1d9 | [
"MIT"
] | null | null | null | gen_dataset.py | mantydze/knapsack-problem-py | 15caf65c8abde693f04eae0291933fa426aad1d9 | [
"MIT"
] | null | null | null | gen_dataset.py | mantydze/knapsack-problem-py | 15caf65c8abde693f04eae0291933fa426aad1d9 | [
"MIT"
] | null | null | null | import json
import random
import sys
import time
sys.setrecursionlimit(2500)
memo = {}
def ks(capacity_left, n):
"""
capacity_left(int): remaining storage capacity of a bag
n(int): current item position
"""
if n == -1 or capacity_left == 0:
# No more items to add
return 0
... | 21.851852 | 82 | 0.564407 | 227 | 1,770 | 4.334802 | 0.38326 | 0.121951 | 0.066057 | 0.045732 | 0.079268 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027823 | 0.309605 | 1,770 | 81 | 83 | 21.851852 | 0.777414 | 0.210169 | 0 | 0.040816 | 0 | 0 | 0.051357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0.081633 | 0 | 0.183673 | 0.102041 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b66f2f7d9d9618cebbca9ca3940382b757594d51 | 15,629 | py | Python | Juris_Cam.py | eugeniu1994/Stereo-Camera-LiDAR-calibration | 54eec1b911f78ca6b66c35803c47d016b7069499 | [
"Unlicense"
] | 6 | 2021-06-02T03:42:11.000Z | 2022-02-17T12:30:00.000Z | Juris_Cam.py | eugeniu1994/Stereo-Camera-LiDAR-calibration | 54eec1b911f78ca6b66c35803c47d016b7069499 | [
"Unlicense"
] | 1 | 2021-06-09T07:16:09.000Z | 2021-06-09T07:16:09.000Z | Juris_Cam.py | eugeniu1994/Stereo-Camera-LiDAR-calibration | 54eec1b911f78ca6b66c35803c47d016b7069499 | [
"Unlicense"
] | 1 | 2021-08-13T05:20:19.000Z | 2021-08-13T05:20:19.000Z | ''' CONFIDENTIAL
Copyright (c) 2021 Eugeniu Vezeteu,
Department of Remote Sensing and Photogrammetry,
Finnish Geospatial Research Institute (FGI), National Land Survey of Finland (NLS)
PERMISSION IS HEREBY LIMITED TO FGI'S INTERNAL USE ONLY. THE CODE
MAY BE RE-LICENSED, SHARED, OR TAKEN INTO... | 44.274788 | 134 | 0.550259 | 1,950 | 15,629 | 4.236923 | 0.161538 | 0.012709 | 0.018155 | 0.017429 | 0.298959 | 0.230816 | 0.183733 | 0.144275 | 0.10046 | 0.088356 | 0 | 0.032379 | 0.318255 | 15,629 | 352 | 135 | 44.400568 | 0.743031 | 0.173524 | 0 | 0.15311 | 0 | 0 | 0.072117 | 0.004552 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038278 | false | 0 | 0.023923 | 0 | 0.086124 | 0.129187 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6726617c09fe5e7abbd64cdec30ed1653450f24 | 4,851 | py | Python | process_design.py | Multiscale-Genomics/C-HiC | 65e189acc79f5420a276a2f7fd740cb2a3ae8e27 | [
"Apache-2.0"
] | null | null | null | process_design.py | Multiscale-Genomics/C-HiC | 65e189acc79f5420a276a2f7fd740cb2a3ae8e27 | [
"Apache-2.0"
] | 1 | 2018-09-06T12:27:49.000Z | 2018-09-06T12:27:49.000Z | process_design.py | Multiscale-Genomics/CHi-C | 65e189acc79f5420a276a2f7fd740cb2a3ae8e27 | [
"Apache-2.0"
] | 1 | 2021-01-28T23:44:37.000Z | 2021-01-28T23:44:37.000Z | #!/usr/bin/env python
"""
.. See the NOTICE file distributed with this work for additional information
regarding copyright ownership.
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
... | 29.760736 | 76 | 0.59328 | 525 | 4,851 | 5.36 | 0.384762 | 0.027363 | 0.012793 | 0.029851 | 0.084932 | 0.024876 | 0.024876 | 0 | 0 | 0 | 0 | 0.002351 | 0.298495 | 4,851 | 162 | 77 | 29.944444 | 0.824567 | 0.37518 | 0 | 0.046154 | 0 | 0 | 0.161027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046154 | false | 0 | 0.107692 | 0 | 0.2 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6746a5b4942abdb9bcb80fa96fed7162930c929 | 5,136 | py | Python | em2/utils/web_push.py | samuelcolvin/em2 | a587eaa80c09a2b44d9c221d09a563aad5b05d78 | [
"MIT"
] | 5 | 2019-03-20T19:07:45.000Z | 2020-10-03T01:16:05.000Z | em2/utils/web_push.py | samuelcolvin/em2 | a587eaa80c09a2b44d9c221d09a563aad5b05d78 | [
"MIT"
] | 51 | 2019-03-12T16:19:46.000Z | 2021-03-09T00:52:24.000Z | em2/utils/web_push.py | samuelcolvin/em2 | a587eaa80c09a2b44d9c221d09a563aad5b05d78 | [
"MIT"
] | 1 | 2019-05-31T14:41:18.000Z | 2019-05-31T14:41:18.000Z | import asyncio
import base64
import hashlib
import logging
import re
import time
from typing import Optional
import http_ece
import ujson
from aiohttp import ClientSession
from arq import ArqRedis
from atoolbox import JsonErrors, RequestError
from cryptography.hazmat.backends import default_backend
from cryptography.h... | 33.350649 | 112 | 0.672702 | 681 | 5,136 | 4.9163 | 0.325991 | 0.030466 | 0.013142 | 0.016726 | 0.135603 | 0.096774 | 0.077061 | 0.061529 | 0.061529 | 0.037037 | 0 | 0.014353 | 0.213201 | 5,136 | 153 | 113 | 33.568627 | 0.814155 | 0.067757 | 0 | 0.035398 | 0 | 0 | 0.059455 | 0.005151 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035398 | false | 0 | 0.168142 | 0.026549 | 0.318584 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b677bba2bd9632d1c8e6d24dee8f3549fac2379b | 14,928 | py | Python | wrapper/utils.py | DaWeSearch/backend | 809e575ed730fce55d0e89a2fbc2031ba116f5e0 | [
"MIT"
] | 1 | 2021-02-15T01:05:22.000Z | 2021-02-15T01:05:22.000Z | wrapper/utils.py | DaWeSearch/backend | 809e575ed730fce55d0e89a2fbc2031ba116f5e0 | [
"MIT"
] | null | null | null | wrapper/utils.py | DaWeSearch/backend | 809e575ed730fce55d0e89a2fbc2031ba116f5e0 | [
"MIT"
] | null | null | null | """Helper functions useful for all wrapper classes."""
import re
from typing import Callable, Optional, Union
from urllib.parse import quote_plus
from requests import exceptions, Response
from .output_format import OUTPUT_FORMAT
def get(nest: Union[dict, list, str], *args, default=None):
"""Get a value in a nes... | 37.507538 | 97 | 0.579448 | 1,830 | 14,928 | 4.669945 | 0.319672 | 0.012637 | 0.007021 | 0.009829 | 0.100281 | 0.068804 | 0.063187 | 0.04938 | 0.04938 | 0.026445 | 0 | 0.003778 | 0.273044 | 14,928 | 398 | 98 | 37.507538 | 0.783727 | 0.351755 | 0 | 0.097436 | 0 | 0 | 0.234145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05641 | false | 0 | 0.025641 | 0 | 0.169231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6795fc3685731a886d5d284ea5740aaa1d445a0 | 1,179 | py | Python | serverdensity/proxy/runserver.py | serverdensity/sd-proxy | 3726b391e0e40258a3e58004568c9737898f4b01 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2016-08-12T17:49:23.000Z | 2016-08-12T17:49:23.000Z | serverdensity/proxy/runserver.py | serverdensity/sd-proxy | 3726b391e0e40258a3e58004568c9737898f4b01 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | serverdensity/proxy/runserver.py | serverdensity/sd-proxy | 3726b391e0e40258a3e58004568c9737898f4b01 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | """Main WSGI server runner for sd-proxy
"""
import os
import logging
from sys import argv, path, stderr, exit
from gevent.wsgi import WSGIServer
class VersionedWSGIServer(WSGIServer):
def __init__(self, server_version, *args, **kwargs):
self.base_env['SERVER_SOFTWARE'] = server_version
super(Ver... | 24.061224 | 79 | 0.679389 | 155 | 1,179 | 4.96129 | 0.425806 | 0.036411 | 0.050715 | 0.039012 | 0.050715 | 0.050715 | 0 | 0 | 0 | 0 | 0 | 0.009504 | 0.196777 | 1,179 | 48 | 80 | 24.5625 | 0.802534 | 0.030534 | 0 | 0 | 0 | 0 | 0.106514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.206897 | 0 | 0.413793 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b679e07e4853c1ac8702e21a433f7100a58636c7 | 1,553 | py | Python | dblp/python/citations.py | DocSeven/spark | a88330f554a4afc70696dac8d00bcf4d2f512acf | [
"Apache-2.0"
] | null | null | null | dblp/python/citations.py | DocSeven/spark | a88330f554a4afc70696dac8d00bcf4d2f512acf | [
"Apache-2.0"
] | null | null | null | dblp/python/citations.py | DocSeven/spark | a88330f554a4afc70696dac8d00bcf4d2f512acf | [
"Apache-2.0"
] | 1 | 2019-11-06T11:29:31.000Z | 2019-11-06T11:29:31.000Z | import citationsCommon
def countByIdAndYear(rdd):
docsplit = rdd.flatMap(lambda row:
[('{}.{}'.format(ref, row[2]), 1) for ref in row[1]])
return docsplit.reduceByKey(lambda c, d: c + d)
def joinIdYearAge(idYearCount, ddpairs):
# idYear: id, year cited
idYear = idYearCount.map(lambda row: ... | 41.972973 | 86 | 0.666452 | 198 | 1,553 | 5.227273 | 0.40404 | 0.030918 | 0.024155 | 0.030918 | 0.129469 | 0.129469 | 0.054106 | 0 | 0 | 0 | 0 | 0.023734 | 0.186091 | 1,553 | 36 | 87 | 43.138889 | 0.795095 | 0.221507 | 0 | 0 | 0 | 0 | 0.045075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.047619 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b67a5113b21316f83812bfead9269a89744903e8 | 8,727 | py | Python | src/ext/cstruct.py | X-EcutiOnner/fileobj | 7e4120759450bbdd1eee4ec26c8a757a8af48093 | [
"BSD-2-Clause"
] | 17 | 2015-05-23T11:09:46.000Z | 2021-12-10T14:28:01.000Z | src/ext/cstruct.py | X-EcutiOnner/fileobj | 7e4120759450bbdd1eee4ec26c8a757a8af48093 | [
"BSD-2-Clause"
] | 3 | 2015-03-23T04:35:25.000Z | 2017-09-15T07:12:15.000Z | src/ext/cstruct.py | X-EcutiOnner/fileobj | 7e4120759450bbdd1eee4ec26c8a757a8af48093 | [
"BSD-2-Clause"
] | 2 | 2016-01-07T00:38:13.000Z | 2020-12-02T08:27:28.000Z | # Copyright (c) 2009, Tomohiro Kusumi
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and... | 31.619565 | 81 | 0.569153 | 1,230 | 8,727 | 3.857724 | 0.229268 | 0.013909 | 0.010116 | 0.011802 | 0.214963 | 0.148577 | 0.134247 | 0.074183 | 0.053952 | 0.053952 | 0 | 0.013489 | 0.303426 | 8,727 | 275 | 82 | 31.734545 | 0.767067 | 0.184141 | 0 | 0.214953 | 0 | 0 | 0.073818 | 0.009033 | 0 | 0 | 0 | 0 | 0.009346 | 1 | 0.130841 | false | 0.004673 | 0.056075 | 0.046729 | 0.313084 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b67bd574fe892b817e3e205848dedd222bd9824b | 1,493 | py | Python | agent/nets/GraphConvNet.py | JosepLeder/RL-Graph-Matching | 5ea6b3beaf2a2f8d3739f64e7172a566d59d5468 | [
"MIT"
] | null | null | null | agent/nets/GraphConvNet.py | JosepLeder/RL-Graph-Matching | 5ea6b3beaf2a2f8d3739f64e7172a566d59d5468 | [
"MIT"
] | null | null | null | agent/nets/GraphConvNet.py | JosepLeder/RL-Graph-Matching | 5ea6b3beaf2a2f8d3739f64e7172a566d59d5468 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch_scatter import scatter_mean
from torch.nn import Linear, ReLU
from torch_geometric.nn import GraphConv
class GraphConvNet(nn.Module):
def __init__(self, n_feat, n_hid, n_out):
super(GraphConvNet).__init__()
self.conv1 =... | 28.169811 | 100 | 0.636303 | 228 | 1,493 | 3.960526 | 0.232456 | 0.060908 | 0.055371 | 0.0299 | 0.145072 | 0.06866 | 0.06866 | 0.06866 | 0.06866 | 0.06866 | 0 | 0.034483 | 0.242465 | 1,493 | 52 | 101 | 28.711538 | 0.763926 | 0 | 0 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.171429 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b67e4db8f00b585b7a13ade5c1abf4013518f113 | 7,437 | py | Python | skoleintra/__init__.py | jona799t/skoleintra-api | b6a73aa50b53415aba7aa2249c45771b931992a9 | [
"Apache-2.0"
] | null | null | null | skoleintra/__init__.py | jona799t/skoleintra-api | b6a73aa50b53415aba7aa2249c45771b931992a9 | [
"Apache-2.0"
] | null | null | null | skoleintra/__init__.py | jona799t/skoleintra-api | b6a73aa50b53415aba7aa2249c45771b931992a9 | [
"Apache-2.0"
] | null | null | null | import json
import httpx
import requests
import urllib
import ssl
from urllib3 import poolmanager
from bs4 import BeautifulSoup
from unilogin import Unilogin
class TLSAdapter(requests.adapters.HTTPAdapter): #https://stackoverflow.com/questions/61631955/python-requests-ssl-error-during-requests
def init_poolmanager... | 67.609091 | 450 | 0.671238 | 856 | 7,437 | 5.785047 | 0.242991 | 0.042205 | 0.052504 | 0.039984 | 0.576333 | 0.52706 | 0.480412 | 0.452544 | 0.452544 | 0.452544 | 0 | 0.024204 | 0.155573 | 7,437 | 110 | 451 | 67.609091 | 0.764331 | 0.024338 | 0 | 0.26087 | 0 | 0.195652 | 0.506897 | 0.336966 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032609 | false | 0 | 0.086957 | 0 | 0.163043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b67e8c2b0c5ddd808117b7d17c7cf6d08076154f | 1,433 | py | Python | commands/leaderboad.py | classAndrew/valor | b68a72b76c111e22d8df8d56a2923185f057fc2a | [
"MIT"
] | null | null | null | commands/leaderboad.py | classAndrew/valor | b68a72b76c111e22d8df8d56a2923185f057fc2a | [
"MIT"
] | null | null | null | commands/leaderboad.py | classAndrew/valor | b68a72b76c111e22d8df8d56a2923185f057fc2a | [
"MIT"
] | 1 | 2021-11-28T00:45:25.000Z | 2021-11-28T00:45:25.000Z | from valor import Valor
from discord.ext.commands import Context
from util import ErrorEmbed, LongTextEmbed, LongFieldEmbed, guild_name_from_tag
import random
from datetime import datetime
import requests
from sql import ValorSQL
from commands.common import get_uuid, from_uuid
async def _register_leaderboard(valor: Va... | 37.710526 | 227 | 0.667132 | 198 | 1,433 | 4.717172 | 0.414141 | 0.034261 | 0.03212 | 0.055675 | 0.205567 | 0.156317 | 0 | 0 | 0 | 0 | 0 | 0.019678 | 0.219819 | 1,433 | 38 | 228 | 37.710526 | 0.815742 | 0 | 0 | 0.071429 | 0 | 0.035714 | 0.188982 | 0.043933 | 0.035714 | 0 | 0.009763 | 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 |
b6810fce8cb140c6eacc9841d12f9fa404ed0bac | 3,388 | py | Python | game/alfa_beta.py | YuseqYaseq/gry-kombinatoryczne | 15e5d857cdbc6ec447c0028a90c4354ba25fc553 | [
"MIT"
] | 2 | 2020-04-26T16:57:37.000Z | 2020-04-26T16:57:40.000Z | game/alfa_beta.py | YuseqYaseq/gry-kombinatoryczne | 15e5d857cdbc6ec447c0028a90c4354ba25fc553 | [
"MIT"
] | null | null | null | game/alfa_beta.py | YuseqYaseq/gry-kombinatoryczne | 15e5d857cdbc6ec447c0028a90c4354ba25fc553 | [
"MIT"
] | null | null | null | from game.sequence import Sequence
max_value = 999888777666555
class AlfaBeta:
def __init__(self, values, state, k, player, enemy, max_deepth = None):
self.values = values
self.state = state
self.k = k
self.player = player
self.enemy = enemy
if max_deepth is None:... | 30.8 | 88 | 0.563164 | 406 | 3,388 | 4.517241 | 0.142857 | 0.113413 | 0.054526 | 0.035987 | 0.47928 | 0.47928 | 0.302617 | 0.302617 | 0.268811 | 0.20229 | 0 | 0.013618 | 0.349764 | 3,388 | 109 | 89 | 31.082569 | 0.818883 | 0 | 0 | 0.285714 | 0 | 0 | 0.002066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119048 | false | 0 | 0.011905 | 0.02381 | 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 |
b68116a66a4de7ee10965623e6d1922379799cea | 4,620 | py | Python | app.py | j33mk/randomnews | 705ecde11f8097a8348a9abae384bd09031cb2ca | [
"Apache-2.0"
] | null | null | null | app.py | j33mk/randomnews | 705ecde11f8097a8348a9abae384bd09031cb2ca | [
"Apache-2.0"
] | null | null | null | app.py | j33mk/randomnews | 705ecde11f8097a8348a9abae384bd09031cb2ca | [
"Apache-2.0"
] | null | null | null | #----------------------------------------------------------------------------#
# Imports
#----------------------------------------------------------------------------#
from flask import Flask, render_template, request,jsonify
import random
# from flask.ext.sqlalchemy import SQLAlchemy
import logging
from logging impor... | 32.083333 | 88 | 0.5671 | 521 | 4,620 | 4.950096 | 0.493282 | 0.027142 | 0.03102 | 0.019387 | 0.107794 | 0.055836 | 0.055836 | 0.055836 | 0.055836 | 0.055836 | 0 | 0.009814 | 0.183983 | 4,620 | 143 | 89 | 32.307692 | 0.674271 | 0.20303 | 0 | 0.123457 | 0 | 0.012346 | 0.431868 | 0.033196 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061728 | false | 0 | 0.08642 | 0.037037 | 0.209877 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6833905716414b7fc7d6f77dff5aa4d0c6d4d14 | 9,836 | py | Python | scripts/dfuse-pack.py | qiuchengxuan/rs-flight | 66a09afe4e24f8b49c6445f9048172e46e6a0f03 | [
"MIT"
] | 1 | 2020-09-01T08:49:24.000Z | 2020-09-01T08:49:24.000Z | scripts/dfuse-pack.py | qiuchengxuan/rs-flight | 66a09afe4e24f8b49c6445f9048172e46e6a0f03 | [
"MIT"
] | null | null | null | scripts/dfuse-pack.py | qiuchengxuan/rs-flight | 66a09afe4e24f8b49c6445f9048172e46e6a0f03 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Written by Antonio Galea - 2010/11/18
# Distributed under Gnu LGPL 3.0
# see http://www.gnu.org/licenses/lgpl-3.0.txt
import binascii
import os
import struct
import sys
import zlib
from optparse import OptionParser
try:
from intelhex import IntelHex
except ImportError:
IntelHex = Non... | 35.25448 | 122 | 0.51281 | 1,118 | 9,836 | 4.480322 | 0.208408 | 0.018167 | 0.020763 | 0.03354 | 0.291875 | 0.248153 | 0.23318 | 0.204432 | 0.204432 | 0.204432 | 0 | 0.029746 | 0.347194 | 9,836 | 278 | 123 | 35.381295 | 0.75035 | 0.013725 | 0 | 0.3 | 0 | 0.028 | 0.214396 | 0.016912 | 0 | 0 | 0.0099 | 0 | 0 | 1 | 0.028 | false | 0 | 0.032 | 0.012 | 0.08 | 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 |
b6857c3a9f8eac380eda21da26fac71984173300 | 12,313 | py | Python | AI.py | alexrockhill/chess | 63d6691912c14ff4c2b0bf4ad9e73a17edec2f70 | [
"MIT"
] | null | null | null | AI.py | alexrockhill/chess | 63d6691912c14ff4c2b0bf4ad9e73a17edec2f70 | [
"MIT"
] | null | null | null | AI.py | alexrockhill/chess | 63d6691912c14ff4c2b0bf4ad9e73a17edec2f70 | [
"MIT"
] | null | null | null | import numpy as np
import os
import os.path as op
import matplotlib.pyplot as plt
import pickle
from tqdm import tqdm
from Board import Board
from func import opposite_color, loc2int, int2color, is_last_rank
LETTERS = [chr(i) for i in range(65, 65+26)]
BOARD_DIM = 8
N_PIECES = 6
MAX_MOVES = 100
def logistic(x):
ret... | 34.013812 | 103 | 0.70925 | 1,880 | 12,313 | 4.465426 | 0.128191 | 0.030137 | 0.0324 | 0.010721 | 0.359619 | 0.293985 | 0.231805 | 0.186182 | 0.14592 | 0.131983 | 0 | 0.013933 | 0.154796 | 12,313 | 361 | 104 | 34.108033 | 0.792736 | 0.023715 | 0 | 0.202703 | 0 | 0 | 0.036365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128378 | false | 0.003378 | 0.027027 | 0.006757 | 0.243243 | 0.006757 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b686d0afc43a520dbac2ae42822b469d33f9f3d0 | 4,901 | py | Python | python/caffe/custom_layers/adaptive_weighting_loss_layer.py | asmorkalov/training_toolbox_caffe | 08716d344da7d78cb7ede4646467c15e86852ae7 | [
"Apache-2.0"
] | null | null | null | python/caffe/custom_layers/adaptive_weighting_loss_layer.py | asmorkalov/training_toolbox_caffe | 08716d344da7d78cb7ede4646467c15e86852ae7 | [
"Apache-2.0"
] | null | null | null | python/caffe/custom_layers/adaptive_weighting_loss_layer.py | asmorkalov/training_toolbox_caffe | 08716d344da7d78cb7ede4646467c15e86852ae7 | [
"Apache-2.0"
] | null | null | null | """
Copyright (c) 2018 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | 34.758865 | 106 | 0.598653 | 619 | 4,901 | 4.589661 | 0.240711 | 0.071806 | 0.026399 | 0.036959 | 0.250616 | 0.229145 | 0.159099 | 0.121084 | 0.090109 | 0.090109 | 0 | 0.013454 | 0.302387 | 4,901 | 140 | 107 | 35.007143 | 0.81749 | 0.243828 | 0 | 0.271429 | 0 | 0 | 0.052557 | 0.022159 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.085714 | false | 0.028571 | 0.057143 | 0 | 0.157143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6871d09585056a5b2254aec8a95efcb0fbeee1d | 1,843 | py | Python | src/cgr_gwas_qc/cluster_profiles/biowulf/status.py | Monia234/NCI-GwasQc | 9e3ca52085c891e1d4d7972e5337c4a1888f992c | [
"MIT"
] | null | null | null | src/cgr_gwas_qc/cluster_profiles/biowulf/status.py | Monia234/NCI-GwasQc | 9e3ca52085c891e1d4d7972e5337c4a1888f992c | [
"MIT"
] | 43 | 2021-03-02T04:10:01.000Z | 2022-03-16T20:26:55.000Z | src/cgr_gwas_qc/cluster_profiles/biowulf/status.py | Monia234/NCI-GwasQc | 9e3ca52085c891e1d4d7972e5337c4a1888f992c | [
"MIT"
] | 2 | 2021-03-02T12:27:00.000Z | 2021-12-16T03:22:20.000Z | #!/usr/bin/env python3
import logging
import re
import shlex
import subprocess as sp
import sys
import time
from typing import Optional
logger = logging.getLogger("__name__")
logger.setLevel(40)
MAX_STATUS_ATTEMPTS = 20
STATUS_CODES = {
"BOOT_FAIL": "failed",
"CANCELLED": "failed",
"COMPLETED": "success"... | 24.573333 | 98 | 0.62344 | 243 | 1,843 | 4.534979 | 0.395062 | 0.045372 | 0.021779 | 0.027223 | 0.284936 | 0.23775 | 0.23775 | 0.096189 | 0.096189 | 0.096189 | 0 | 0.007003 | 0.225176 | 1,843 | 74 | 99 | 24.905405 | 0.764706 | 0.011394 | 0 | 0.169492 | 0 | 0 | 0.200439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0 | 0.118644 | 0 | 0.254237 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b687fc10ba01cb9f0419af4e607ce6c85279c90f | 49,769 | py | Python | editor.py | azagoruyko/rigBuilder | bd744704d3fee1ab7cd85a08c735e6bf044fd27e | [
"Apache-2.0"
] | 2 | 2022-03-20T03:13:24.000Z | 2022-03-20T03:14:11.000Z | editor.py | azagoruyko/rigBuilder | bd744704d3fee1ab7cd85a08c735e6bf044fd27e | [
"Apache-2.0"
] | null | null | null | editor.py | azagoruyko/rigBuilder | bd744704d3fee1ab7cd85a08c735e6bf044fd27e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from Qt.QtGui import *
from Qt.QtCore import *
from Qt.QtWidgets import *
import re
def clamp(mn, mx, val):
if val < mn:
return mn
elif val > mx:
return mx
else:
return val
def highlightLine(widget, line=-1, clear=False):
if line == -1:
block =... | 34.489951 | 169 | 0.578553 | 4,665 | 49,769 | 6.138907 | 0.126688 | 0.009253 | 0.011453 | 0.007717 | 0.370312 | 0.297158 | 0.250995 | 0.200293 | 0.180355 | 0.157483 | 0 | 0.01154 | 0.305311 | 49,769 | 1,443 | 170 | 34.489951 | 0.816741 | 0.030159 | 0 | 0.40965 | 0 | 0.000946 | 0.022831 | 0.002391 | 0 | 0 | 0 | 0 | 0.000946 | 1 | 0.053926 | false | 0.002838 | 0.00473 | 0.001892 | 0.093661 | 0.000946 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b68866458224b910c1e4822374a14bdc98c7fe27 | 5,523 | py | Python | research/Issue2/purifier/text_extractor.py | johnklee/ff_crawler | 53b056bd94ccf55388d12c7f70460d280964f45f | [
"MIT"
] | null | null | null | research/Issue2/purifier/text_extractor.py | johnklee/ff_crawler | 53b056bd94ccf55388d12c7f70460d280964f45f | [
"MIT"
] | 4 | 2021-04-09T02:05:42.000Z | 2021-07-04T07:42:15.000Z | research/Issue2/purifier/text_extractor.py | johnklee/ff_crawler | 53b056bd94ccf55388d12c7f70460d280964f45f | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import sys
import importlib
import os
import inspect
from importlib import util as importlib_util
from .logb import getLogger
# from .pdf2text import simple_fact as pdf_sfact
from .html2text import simple_fact as html_sfact
from .plain2text import simple_fact as pln_sfact
##########################... | 43.833333 | 162 | 0.570704 | 658 | 5,523 | 4.607903 | 0.267477 | 0.032982 | 0.022427 | 0.019789 | 0.190633 | 0.134894 | 0.076847 | 0.046834 | 0.046834 | 0.046834 | 0 | 0.003083 | 0.295311 | 5,523 | 125 | 163 | 44.184 | 0.775951 | 0.1673 | 0 | 0.148649 | 0 | 0 | 0.08434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040541 | false | 0 | 0.135135 | 0 | 0.310811 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b68b69b099d27f3f50d04d0c00314efb72f42971 | 21,664 | py | Python | tests/util.py | wayneweiqiang/GaMMA | 8dcc94088e462d386e10fa7c9a2be06d646ba825 | [
"MIT"
] | 9 | 2021-11-15T10:13:05.000Z | 2022-03-03T13:41:46.000Z | tests/util.py | wayneweiqiang/GaMMA | 8dcc94088e462d386e10fa7c9a2be06d646ba825 | [
"MIT"
] | null | null | null | tests/util.py | wayneweiqiang/GaMMA | 8dcc94088e462d386e10fa7c9a2be06d646ba825 | [
"MIT"
] | 1 | 2021-11-25T05:33:11.000Z | 2021-11-25T05:33:11.000Z | import os
from datetime import datetime
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import torch
from tqdm import tqdm
from collections import defaultdict
# import fire
timestamp = lambda dt: (dt - datetime(2019, 1, 1)).total_seconds()
## ridgecrest
class Config:
degree2km = np.pi * ... | 34.332805 | 175 | 0.565962 | 2,885 | 21,664 | 4.10364 | 0.125477 | 0.011825 | 0.022806 | 0.024833 | 0.629614 | 0.586029 | 0.550722 | 0.523186 | 0.515584 | 0.50511 | 0 | 0.038654 | 0.252446 | 21,664 | 630 | 176 | 34.387302 | 0.692374 | 0.086088 | 0 | 0.428279 | 0 | 0.008197 | 0.102242 | 0.004932 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030738 | false | 0 | 0.016393 | 0 | 0.077869 | 0.002049 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b68c42c88331b8f4284ebd3949497dbb9ed4959f | 869 | py | Python | datasetinsights/constants.py | 86sanj/datasetinsights | 8b34c434fc841ccb20f3ad06985f82dfe3829d02 | [
"Apache-2.0"
] | null | null | null | datasetinsights/constants.py | 86sanj/datasetinsights | 8b34c434fc841ccb20f3ad06985f82dfe3829d02 | [
"Apache-2.0"
] | null | null | null | datasetinsights/constants.py | 86sanj/datasetinsights | 8b34c434fc841ccb20f3ad06985f82dfe3829d02 | [
"Apache-2.0"
] | null | null | null | import os
from datetime import datetime
TIMESTAMP_SUFFIX = datetime.now().strftime("%Y%m%d-%H%M%S")
PROJECT_ROOT = os.path.dirname(os.path.dirname(__file__))
GCS_BASE_STR = "gs://"
HTTP_URL_BASE_STR = "http://"
HTTPS_URL_BASE_STR = "https://"
LOCAL_FILE_BASE_STR = "file://"
NULL_STRING = "None"
DEFAULT_DATA_ROOT = ... | 27.15625 | 59 | 0.734177 | 121 | 869 | 4.975207 | 0.661157 | 0.046512 | 0.043189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028871 | 0.12313 | 869 | 31 | 60 | 28.032258 | 0.761155 | 0.150748 | 0 | 0 | 0 | 0 | 0.337875 | 0.079019 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b68d1dbf0c5ca4f1cf1c2b340f13d2c57fe8602c | 7,829 | py | Python | server.py | danielemoro/PeepsFinder | 423e95526900aa6c932306a9670c06e41189e27b | [
"Apache-2.0"
] | 2 | 2019-07-17T22:04:25.000Z | 2021-03-03T17:41:07.000Z | server.py | danielemoro/PeepsFinder | 423e95526900aa6c932306a9670c06e41189e27b | [
"Apache-2.0"
] | 19 | 2019-12-26T17:23:33.000Z | 2022-03-21T22:19:06.000Z | server.py | danielemoro/PeepsFinder | 423e95526900aa6c932306a9670c06e41189e27b | [
"Apache-2.0"
] | null | null | null | # IMPORTANT: Change these file paths to be in the same repository as the webs server running Peeps.
# You can find the Peeps web server repository here: https://github.com/danielemoro/peeps/tree/peeps_finder
input_file = "D:/Google Drive/BSU/BSU 2018 Fall/CS401/website/peeps_finder_in.txt"
output_file = "D:/Google Driv... | 36.584112 | 120 | 0.609401 | 1,103 | 7,829 | 4.194923 | 0.24388 | 0.033067 | 0.009077 | 0.027015 | 0.229738 | 0.177005 | 0.160147 | 0.128161 | 0.109574 | 0.08861 | 0 | 0.014763 | 0.247286 | 7,829 | 213 | 121 | 36.755869 | 0.770406 | 0.059522 | 0 | 0.184049 | 0 | 0.006135 | 0.193908 | 0.01047 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067485 | false | 0 | 0.079755 | 0.006135 | 0.202454 | 0.171779 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b68d3ffb40a4006bf5b8a5543641f9a3020929bc | 6,497 | py | Python | python/oak/vio_record.py | SpectacularAI/sdk-examples | 70840f7a68d9536ce473c4d20e224ecfa90284ce | [
"Apache-2.0"
] | 18 | 2021-11-02T09:32:11.000Z | 2022-03-29T17:04:32.000Z | python/oak/vio_record.py | SpectacularAI/sdk-examples | 70840f7a68d9536ce473c4d20e224ecfa90284ce | [
"Apache-2.0"
] | 4 | 2021-11-02T05:19:11.000Z | 2022-03-28T08:53:27.000Z | python/oak/vio_record.py | SpectacularAI/sdk-examples | 70840f7a68d9536ce473c4d20e224ecfa90284ce | [
"Apache-2.0"
] | 2 | 2022-02-25T14:28:45.000Z | 2022-03-05T14:14:55.000Z | """
Record data for later playback
Requirements:
ffmpeg must be installed.
On Linux you can install it with package manager
of your choise. For example with
ap-get: sudo apt-get install ffmpeg
yuM: sudo yum install ffmpeg
On Windows, you must download and install it from https://w... | 36.094444 | 126 | 0.687548 | 811 | 6,497 | 5.405672 | 0.360049 | 0.008212 | 0.024635 | 0.025547 | 0.188412 | 0.158531 | 0.093066 | 0.066606 | 0.045164 | 0.045164 | 0 | 0.010547 | 0.211944 | 6,497 | 179 | 127 | 36.296089 | 0.845703 | 0.1827 | 0 | 0.139344 | 0 | 0 | 0.141265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02459 | false | 0.008197 | 0.090164 | 0 | 0.122951 | 0.04918 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b68e1a9a9505bdaff392741746a2cc8527c4f6b6 | 311 | py | Python | src/fileIOTest.py | justinsmits/dlm | 39281701f4512cfc34dede0141d83b7cd8e247f4 | [
"MIT"
] | null | null | null | src/fileIOTest.py | justinsmits/dlm | 39281701f4512cfc34dede0141d83b7cd8e247f4 | [
"MIT"
] | null | null | null | src/fileIOTest.py | justinsmits/dlm | 39281701f4512cfc34dede0141d83b7cd8e247f4 | [
"MIT"
] | null | null | null | import os
def fileTest():
dir_path = os.path.dirname(os.path.realpath(__file__))
print(dir_path)
data_path = os.path.join(dir_path, '../FileTest/data.txt')
print(data_path)
file = open(data_path, 'r')
for line in file:
print(line)
if __name__ == '__main__':
fileTest() | 20.733333 | 62 | 0.633441 | 44 | 311 | 4.068182 | 0.477273 | 0.117318 | 0.111732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221865 | 311 | 15 | 63 | 20.733333 | 0.739669 | 0 | 0 | 0 | 0 | 0 | 0.092949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6908e28349ce2d7d9f38b20eac30f1523c0d324 | 501 | py | Python | OSGI/predictive-python/python model/test.py | davinder2385/iot-edge-samples | e6667947440f3eb0781ab4fe22281f4c1d79f376 | [
"Apache-2.0"
] | 7 | 2019-12-03T10:05:31.000Z | 2021-01-21T19:05:55.000Z | OSGI/predictive-python/python model/test.py | davinder2385/iot-edge-samples | e6667947440f3eb0781ab4fe22281f4c1d79f376 | [
"Apache-2.0"
] | 8 | 2020-01-08T08:03:21.000Z | 2020-09-04T18:25:56.000Z | OSGI/predictive-python/python model/test.py | davinder2385/iot-edge-samples | e6667947440f3eb0781ab4fe22281f4c1d79f376 | [
"Apache-2.0"
] | 11 | 2021-06-16T15:48:33.000Z | 2022-02-13T13:05:52.000Z | import json
import os.path
import time
# Third-party libraries
import zmq
context = zmq.Context()
socket = context.socket(zmq.REQ)
socket.connect("tcp://localhost:5555")
socket.send(b"hello")
message = socket.recv()
print(message)
while True:
# Wait for next request from client
jsonStr = '{"measures":{"R"... | 20.875 | 59 | 0.666667 | 71 | 501 | 4.704225 | 0.661972 | 0.05988 | 0.101796 | 0.131737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036058 | 0.169661 | 501 | 24 | 60 | 20.875 | 0.766827 | 0.143713 | 0 | 0.125 | 0 | 0.0625 | 0.21831 | 0.053991 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b692e177fac102ebbcfa5f07692d3af8e28cb595 | 2,172 | py | Python | source/group.py | AaronDavidSchneider/CyclingDinner | 40521e7ffe4d11b91cca59733f3768ebf456b1af | [
"MIT"
] | null | null | null | source/group.py | AaronDavidSchneider/CyclingDinner | 40521e7ffe4d11b91cca59733f3768ebf456b1af | [
"MIT"
] | null | null | null | source/group.py | AaronDavidSchneider/CyclingDinner | 40521e7ffe4d11b91cca59733f3768ebf456b1af | [
"MIT"
] | null | null | null | from source.couple import couple
import numpy as np
import requests
import json
import source.config as c
import googlemaps
from geopy.distance import geodesic
import itertools
gd = {"H":1,"V":0, "N":2}
gd_inv = {1:"H",0:"V", 2:"N"}
# CONVERT TIMES TO POSIX TIME
from datetime import timezone, datetime, timedelta
dinne... | 34.47619 | 160 | 0.587017 | 315 | 2,172 | 3.95873 | 0.320635 | 0.070569 | 0.060144 | 0.076183 | 0.179631 | 0.142743 | 0.113873 | 0.113873 | 0.113873 | 0.113873 | 0 | 0.018239 | 0.267956 | 2,172 | 62 | 161 | 35.032258 | 0.766038 | 0.032228 | 0 | 0.111111 | 0 | 0 | 0.053034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.166667 | 0 | 0.314815 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b69435cd91d1a650c1244efbc456a6f87305ba23 | 8,616 | py | Python | text_importer/importers/olive/parsers.py | aflueckiger/impresso-text-acquisition | ed8f0586ed6a4f7de94b1504b292570bce1f51c5 | [
"MIT"
] | null | null | null | text_importer/importers/olive/parsers.py | aflueckiger/impresso-text-acquisition | ed8f0586ed6a4f7de94b1504b292570bce1f51c5 | [
"MIT"
] | null | null | null | text_importer/importers/olive/parsers.py | aflueckiger/impresso-text-acquisition | ed8f0586ed6a4f7de94b1504b292570bce1f51c5 | [
"MIT"
] | null | null | null | """Functions to parse Olive XML data."""
import codecs
import copy
import re
from typing import List, Optional
from bs4 import BeautifulSoup
from impresso_commons.path.path_fs import canonical_path, IssueDir
from text_importer.importers.olive.helpers import (normalize_language,
... | 31.217391 | 102 | 0.515901 | 1,008 | 8,616 | 4.297619 | 0.250992 | 0.022853 | 0.012465 | 0.007387 | 0.141043 | 0.104109 | 0.10157 | 0.10157 | 0.087719 | 0.087719 | 0 | 0.003374 | 0.346448 | 8,616 | 275 | 103 | 31.330909 | 0.765939 | 0.196147 | 0 | 0.113772 | 0 | 0 | 0.117547 | 0.010531 | 0 | 0 | 0 | 0 | 0.017964 | 1 | 0.023952 | false | 0 | 0.041916 | 0 | 0.095808 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b69613a7512da774d1b23dd4f974de878107a0bc | 550 | py | Python | comsetformat.py | paqs2020/paqs2020 | 28377f3e0aa3d3dd2885baf2b339ae3228c68192 | [
"MIT"
] | 1 | 2021-07-29T10:47:52.000Z | 2021-07-29T10:47:52.000Z | comsetformat.py | paqs2020/paqs2020 | 28377f3e0aa3d3dd2885baf2b339ae3228c68192 | [
"MIT"
] | 1 | 2021-07-29T11:04:47.000Z | 2021-07-29T11:04:47.000Z | comsetformat.py | paqs2020/paqs2020 | 28377f3e0aa3d3dd2885baf2b339ae3228c68192 | [
"MIT"
] | 2 | 2021-05-06T18:33:01.000Z | 2021-08-01T10:21:46.000Z | import pickle
databox = "/nfs/projects/paqs/qadatasetAstudy"
source = pickle.load(open(databox + "/val.pkl","rb"))
questions = databox + "/output/ques.val"
answers = databox + "/output/ans.val"
fqes = open(questions, 'w')
fans = open(answers, 'w')
for fid, value in source.items():
for sid, sentence in value.ite... | 25 | 73 | 0.587273 | 75 | 550 | 4.306667 | 0.493333 | 0.102167 | 0.043344 | 0.049536 | 0.173375 | 0.173375 | 0.173375 | 0.173375 | 0 | 0 | 0 | 0 | 0.2 | 550 | 21 | 74 | 26.190476 | 0.734091 | 0 | 0 | 0 | 0 | 0 | 0.216758 | 0.061931 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b697d352270f4d5af09a28c0d438435fc0bb409c | 15,849 | py | Python | app.py | ruianfrp/Yolov3 | 8449b37e0ee5bffeacea555036ca52e3b4ae1531 | [
"MIT"
] | 2 | 2020-04-04T08:53:25.000Z | 2020-06-14T09:13:39.000Z | app.py | ruianfrp/Yolov3 | 8449b37e0ee5bffeacea555036ca52e3b4ae1531 | [
"MIT"
] | null | null | null | app.py | ruianfrp/Yolov3 | 8449b37e0ee5bffeacea555036ca52e3b4ae1531 | [
"MIT"
] | null | null | null | import keras
from PIL import Image
from flask import Flask, request, jsonify
from flask_cors import CORS
from itsdangerous import Serializer
from concurrent.futures import ThreadPoolExecutor
from flask_apscheduler import APScheduler
import token_authorization
import AesCipher
import mysql
import functools
from yolo ... | 34.37961 | 109 | 0.546659 | 1,711 | 15,849 | 4.934541 | 0.150205 | 0.053299 | 0.094635 | 0.082554 | 0.513443 | 0.443207 | 0.3982 | 0.360535 | 0.336373 | 0.326898 | 0 | 0.021198 | 0.300524 | 15,849 | 460 | 110 | 34.454348 | 0.740393 | 0.015585 | 0 | 0.408629 | 0 | 0 | 0.149608 | 0.004495 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043147 | false | 0.017767 | 0.030457 | 0 | 0.203046 | 0.002538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6980fb0608d22d689e43b123d9af449a3000f0b | 1,350 | py | Python | 1d_unconstrained_optimization/golden_section_algorithm.py | almostdutch/numerical-optimization-algorithms | cd6c1306cb04eccce62a74420323bda83058c1d6 | [
"MIT"
] | null | null | null | 1d_unconstrained_optimization/golden_section_algorithm.py | almostdutch/numerical-optimization-algorithms | cd6c1306cb04eccce62a74420323bda83058c1d6 | [
"MIT"
] | 1 | 2021-06-02T10:07:26.000Z | 2021-06-03T10:23:46.000Z | 1d_unconstrained_optimization/golden_section_algorithm.py | almostdutch/numerical-optimization-algorithms | cd6c1306cb04eccce62a74420323bda83058c1d6 | [
"MIT"
] | null | null | null | """
golden_section_algorithm.py
Returns the reduced uncertainty interval containing the minimizer of the function
func - anonimous function
interval0 - initial uncertainty interval
N_iter - number of iterations
"""
import math
import numpy as np
def golden_section_algorithm_calc_N_iter(interval0, uncertainty_range_d... | 27 | 100 | 0.56963 | 179 | 1,350 | 4.005587 | 0.301676 | 0.112971 | 0.027894 | 0.07113 | 0.171548 | 0.171548 | 0.149233 | 0.149233 | 0.149233 | 0.149233 | 0 | 0.022002 | 0.326667 | 1,350 | 49 | 101 | 27.55102 | 0.766777 | 0.153333 | 0 | 0.193548 | 0 | 0 | 0.003524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.064516 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b699c359961ff4c5fe1e7486390fb0c95dd99241 | 1,132 | py | Python | constants.py | JNPRAutomate/unicast2multicast-translator | d400d71745eec8f5ae7933be54a5505460173dea | [
"MIT"
] | 3 | 2021-09-30T18:07:54.000Z | 2021-10-03T01:48:17.000Z | constants.py | JNPRAutomate/unicast2multicast-translator | d400d71745eec8f5ae7933be54a5505460173dea | [
"MIT"
] | 1 | 2021-09-20T21:08:51.000Z | 2021-09-20T21:08:51.000Z | constants.py | JNPRAutomate/unicast2multicast-translator | d400d71745eec8f5ae7933be54a5505460173dea | [
"MIT"
] | null | null | null | import ipaddress
# =============================================== DEFAULT CONFIGURATION ================================================
# Default port to bind the translator's unicast server socket to.
DEFAULT_UNICAST_SRV_PORT = 9001
# Default address space to pick multicast destination addresses (groups) from for t... | 62.888889 | 120 | 0.659011 | 133 | 1,132 | 5.518797 | 0.518797 | 0.020436 | 0.036785 | 0.118529 | 0.333787 | 0.333787 | 0.243869 | 0.243869 | 0.147139 | 0.147139 | 0 | 0.017875 | 0.110424 | 1,132 | 17 | 121 | 66.588235 | 0.711023 | 0.732332 | 0 | 0 | 0 | 0 | 0.232082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b69b9ca24f2fb2208c924db77c7c45f56668f4d1 | 19,059 | py | Python | src/Tools/CodeGenerator/Plugins/SharedLibraryPluginImpl/VectorTypeInfo.py | Bhaskers-Blu-Org2/FeaturizersLibrary | 229ae38ea233bfb02a6ff92ec3a67c1751c58005 | [
"MIT"
] | 15 | 2019-12-14T07:54:18.000Z | 2021-03-14T14:53:28.000Z | src/Tools/CodeGenerator/Plugins/SharedLibraryPluginImpl/VectorTypeInfo.py | Bhaskers-Blu-Org2/FeaturizersLibrary | 229ae38ea233bfb02a6ff92ec3a67c1751c58005 | [
"MIT"
] | 30 | 2019-12-03T20:58:56.000Z | 2020-04-21T23:34:39.000Z | src/Tools/CodeGenerator/Plugins/SharedLibraryPluginImpl/VectorTypeInfo.py | microsoft/FeaturizersLibrary | 229ae38ea233bfb02a6ff92ec3a67c1751c58005 | [
"MIT"
] | 13 | 2020-01-23T00:18:47.000Z | 2021-10-04T17:46:45.000Z | # ----------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License
# ----------------------------------------------------------------------
"""Contains the VectorTypeInfo object"""
import os
import re
import text... | 38.659229 | 153 | 0.4389 | 1,460 | 19,059 | 5.500685 | 0.14589 | 0.019176 | 0.011207 | 0.016187 | 0.359233 | 0.263977 | 0.224505 | 0.190138 | 0.175819 | 0.104844 | 0 | 0.003434 | 0.404061 | 19,059 | 492 | 154 | 38.737805 | 0.703645 | 0.103153 | 0 | 0.423529 | 0 | 0 | 0.070156 | 0.018462 | 0 | 0 | 0 | 0.002033 | 0.032353 | 1 | 0.020588 | false | 0 | 0.023529 | 0 | 0.073529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6a1c2ab8cd5b17863bf873dabf0a5085e350658 | 2,492 | py | Python | reque.py | parserpp/ppppppppppp | a1c1ef1d252e7cf652e90465649483b728bf9839 | [
"MIT"
] | null | null | null | reque.py | parserpp/ppppppppppp | a1c1ef1d252e7cf652e90465649483b728bf9839 | [
"MIT"
] | null | null | null | reque.py | parserpp/ppppppppppp | a1c1ef1d252e7cf652e90465649483b728bf9839 | [
"MIT"
] | null | null | null | import time
import requests
import urllib3
from lxml import etree
from requests.models import Response
from requests.packages.urllib3.exceptions import InsecureRequestWarning
urllib3.disable_warnings()
requests.packages.urllib3.disable_warnings()
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
fro... | 28 | 97 | 0.532905 | 249 | 2,492 | 5.232932 | 0.369478 | 0.073676 | 0.039908 | 0.058327 | 0.1934 | 0.175748 | 0.175748 | 0.175748 | 0.069071 | 0 | 0 | 0.016026 | 0.373997 | 2,492 | 88 | 98 | 28.318182 | 0.819231 | 0.111958 | 0 | 0.28125 | 0 | 0 | 0.036933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.109375 | 0 | 0.390625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6a456d569704179a69c2734a46c283edcb8c45d | 1,306 | py | Python | spellvardetection/webapi/resources.py | fab-bar/SpellvarDetection | 624f472f9eec9636650bace9c091ba1fe9cda313 | [
"MIT"
] | 1 | 2019-11-08T08:02:21.000Z | 2019-11-08T08:02:21.000Z | spellvardetection/webapi/resources.py | fab-bar/SpellvarDetection | 624f472f9eec9636650bace9c091ba1fe9cda313 | [
"MIT"
] | null | null | null | spellvardetection/webapi/resources.py | fab-bar/SpellvarDetection | 624f472f9eec9636650bace9c091ba1fe9cda313 | [
"MIT"
] | null | null | null | import os
import shutil
import click
from flask import current_app
from flask.cli import AppGroup
### CLI for management of additional resources
res_cli = AppGroup('resources', short_help='Manage additional resources used by SpellvarDetection.')
@res_cli.command('list')
def list_resources():
"List existing reso... | 27.787234 | 102 | 0.683767 | 172 | 1,306 | 5.075581 | 0.354651 | 0.057274 | 0.07331 | 0.114548 | 0.339061 | 0.272623 | 0.272623 | 0.16953 | 0.080183 | 0 | 0 | 0 | 0.18683 | 1,306 | 46 | 103 | 28.391304 | 0.822034 | 0.079632 | 0 | 0.371429 | 0 | 0 | 0.240476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.142857 | 0 | 0.257143 | 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 |
b6acc8f967fad42f11b205b325094dc3299810f3 | 1,759 | py | Python | ocr-server/ocr_server/lines.py | twerkmeister/table-annotator | 11bce00f28411a1ad047ba673d3e713060076943 | [
"MIT"
] | null | null | null | ocr-server/ocr_server/lines.py | twerkmeister/table-annotator | 11bce00f28411a1ad047ba673d3e713060076943 | [
"MIT"
] | null | null | null | ocr-server/ocr_server/lines.py | twerkmeister/table-annotator | 11bce00f28411a1ad047ba673d3e713060076943 | [
"MIT"
] | null | null | null | from typing import List
import numpy as np
import cv2
import scipy.signal
def find_line(image: np.ndarray, window_size: int = 30) -> np.ndarray:
"""Extracts a single line from the image"""
image_inverted = cv2.bitwise_not(image)
image_as_column = np.sum(image_inverted, axis=1)
window_values = [np.su... | 36.645833 | 83 | 0.699261 | 259 | 1,759 | 4.505792 | 0.297297 | 0.071979 | 0.044559 | 0.046272 | 0.173093 | 0.140531 | 0 | 0 | 0 | 0 | 0 | 0.019149 | 0.198408 | 1,759 | 47 | 84 | 37.425532 | 0.808511 | 0.046617 | 0 | 0 | 0 | 0 | 0.002401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.114286 | 0 | 0.228571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6ae1b0f0d22088c98982c121eae8e4affeac754 | 4,406 | py | Python | model.py | shaldev/java-builder-generator | 22c47067a058d6708910c869e41e1cfd66da9435 | [
"MIT"
] | null | null | null | model.py | shaldev/java-builder-generator | 22c47067a058d6708910c869e41e1cfd66da9435 | [
"MIT"
] | null | null | null | model.py | shaldev/java-builder-generator | 22c47067a058d6708910c869e41e1cfd66da9435 | [
"MIT"
] | null | null | null | package = 'org.bonadza.openrtb'
model = {
'bidResponse' : {
'id' : 'str',
'seatbid': [{
'bid' : [{
'id' : 'str',
'impid' : 'str',
'price' : 'float',
'adid' : 'str',
'nurl' : 'str',
'adm' : 'str',
'adomain' : 'str[]',
'bundle' : 'str',
'iurl' : 'str',
'cid' : 'str',
'c... | 19.073593 | 31 | 0.385611 | 396 | 4,406 | 4.287879 | 0.373737 | 0.084806 | 0.053004 | 0.04947 | 0.138987 | 0.062426 | 0.062426 | 0 | 0 | 0 | 0 | 0.003322 | 0.316841 | 4,406 | 231 | 32 | 19.073593 | 0.560797 | 0.004085 | 0 | 0.401747 | 0 | 0 | 0.397082 | 0 | 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 |
b6b0d58640e8ab5ad641a791c0e3af73049572b4 | 760 | py | Python | scripts/preprocess_glsl.py | Pandinosaurus/geojs | c38b3c91a597db84bbc74c2c915bb525a82aedc1 | [
"Apache-2.0"
] | 365 | 2015-01-28T12:07:22.000Z | 2022-03-27T14:17:10.000Z | scripts/preprocess_glsl.py | Pandinosaurus/geojs | c38b3c91a597db84bbc74c2c915bb525a82aedc1 | [
"Apache-2.0"
] | 699 | 2015-01-05T21:22:40.000Z | 2022-03-30T15:58:55.000Z | scripts/preprocess_glsl.py | manthey/geojs | 9f36165133f07c8fb08102e0b3459369a052f6a3 | [
"Apache-2.0"
] | 74 | 2015-02-23T14:08:13.000Z | 2022-03-17T23:37:05.000Z | #!/usr/bin/env python3
import argparse
import os
import re
import sys
def readSource(source):
data = open(source).read()
parts = re.split('(\\$[-.\\w]+)', data)
for idx, chunk in enumerate(parts):
if chunk.startswith('$') and len(chunk) > 1:
parts[idx] = readSource(os.path.join(os.pat... | 29.230769 | 95 | 0.651316 | 100 | 760 | 4.85 | 0.63 | 0.028866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004951 | 0.202632 | 760 | 25 | 96 | 30.4 | 0.79538 | 0.027632 | 0 | 0 | 0 | 0 | 0.227642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.210526 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6b0f5fa7387a72c8d23e89c64d1524c5f61c96b | 286 | py | Python | test/task_1/fixtures/__init__.py | Quinlys/-Yakymiv_Igor--tasks | 4992ca5fd050ed35f060b5b22ed05133be5c1d5a | [
"MIT"
] | 2 | 2018-06-15T08:06:09.000Z | 2018-06-24T12:28:07.000Z | test/task_1/fixtures/__init__.py | Quinlys/-Yakymiv_Igor--tasks | 4992ca5fd050ed35f060b5b22ed05133be5c1d5a | [
"MIT"
] | null | null | null | test/task_1/fixtures/__init__.py | Quinlys/-Yakymiv_Igor--tasks | 4992ca5fd050ed35f060b5b22ed05133be5c1d5a | [
"MIT"
] | 1 | 2018-06-15T14:41:23.000Z | 2018-06-15T14:41:23.000Z | import os
import json
_location = os.path.realpath(
os.path.join(os.getcwd(), os.path.dirname(__file__)))
with open(os.path.join(_location, 'small.json')) as f:
fixtures = json.load(f)
with open(os.path.join(_location, '1000.json')) as f:
fixtures['1000'] = json.load(f)
| 23.833333 | 57 | 0.681818 | 46 | 286 | 4.086957 | 0.391304 | 0.159574 | 0.159574 | 0.148936 | 0.276596 | 0.276596 | 0 | 0 | 0 | 0 | 0 | 0.03252 | 0.13986 | 286 | 11 | 58 | 26 | 0.731707 | 0 | 0 | 0 | 0 | 0 | 0.08042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
b6b2392dc515104106ac7e7d4892cd8bdc2834dc | 4,102 | py | Python | views.py | rajeev/lifeflow | b1de2a7b5b8a89042c1440b3e38092ef1241b9ca | [
"MIT"
] | 2 | 2015-11-24T08:51:46.000Z | 2016-05-08T10:24:42.000Z | views.py | rajeev/lifeflow | b1de2a7b5b8a89042c1440b3e38092ef1241b9ca | [
"MIT"
] | null | null | null | views.py | rajeev/lifeflow | b1de2a7b5b8a89042c1440b3e38092ef1241b9ca | [
"MIT"
] | null | null | null | """
Views.py
Author: Will Larson
Contact: lethain@gmail.com
Contains one custom view for displaying articles.
Mostly necessary to presort the articles in order
of descending size.
"""
import datetime, time, random, cgi, md5
from django.template import RequestContext
from django.shortcuts import render_to_response
f... | 32.555556 | 114 | 0.638957 | 512 | 4,102 | 5.015625 | 0.292969 | 0.047118 | 0.043614 | 0.051402 | 0.242212 | 0.136293 | 0.136293 | 0.075545 | 0.075545 | 0.043614 | 0 | 0.011498 | 0.236714 | 4,102 | 125 | 115 | 32.816 | 0.808687 | 0.102877 | 0 | 0.229885 | 0 | 0 | 0.090859 | 0.024557 | 0 | 0 | 0 | 0.008 | 0 | 1 | 0.08046 | false | 0 | 0.091954 | 0.011494 | 0.264368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6b24cefc57188b709e820b0bf006c36f34376a7 | 20,566 | py | Python | singlecelltool.py | MattiazziLab/singlecelltool | 0084709448ab851010ba488e3e4cc1d95422862e | [
"MIT"
] | null | null | null | singlecelltool.py | MattiazziLab/singlecelltool | 0084709448ab851010ba488e3e4cc1d95422862e | [
"MIT"
] | null | null | null | singlecelltool.py | MattiazziLab/singlecelltool | 0084709448ab851010ba488e3e4cc1d95422862e | [
"MIT"
] | 1 | 2021-06-09T23:37:03.000Z | 2021-06-09T23:37:03.000Z | from PIL import ImageTk, Image
from tkinter import filedialog, messagebox
import tkinter as tk
import pandas as pd
import numpy as np
import platform
import math
import os
import traceback
class Menu:
def __init__(self, main):
self.main = main
self.main.title("Single Cell Labelling Tool")
... | 51.159204 | 132 | 0.596616 | 2,475 | 20,566 | 4.803232 | 0.147879 | 0.059724 | 0.019684 | 0.016824 | 0.408059 | 0.318977 | 0.244196 | 0.213493 | 0.129795 | 0.082015 | 0 | 0.018561 | 0.284839 | 20,566 | 401 | 133 | 51.286783 | 0.789706 | 0.035495 | 0 | 0.150769 | 0 | 0 | 0.065657 | 0.00545 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043077 | false | 0 | 0.027692 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b6b326441a9a486ddfcf807ab05bc6fc1032ac9c | 761 | py | Python | rss_temple/api/migrations/0006_dedup_feedentries_20210401.py | murrple-1/rss_temple | 289197923b1e7d1213f1673d164337df17d7269b | [
"MIT"
] | null | null | null | rss_temple/api/migrations/0006_dedup_feedentries_20210401.py | murrple-1/rss_temple | 289197923b1e7d1213f1673d164337df17d7269b | [
"MIT"
] | 8 | 2019-12-04T21:58:35.000Z | 2021-12-15T02:29:49.000Z | rss_temple/api/migrations/0006_dedup_feedentries_20210401.py | murrple-1/rss_temple | 289197923b1e7d1213f1673d164337df17d7269b | [
"MIT"
] | null | null | null | from django.db import migrations
def _forward_func_deduplication_feed_entries(apps, schema_editor):
FeedEntry = apps.get_model('api', 'FeedEntry')
unique_set = set()
delete_list = []
for feed_entry in FeedEntry.objects.all():
unique_desc = (feed_entry.feed_id, feed_entry.url,
... | 24.548387 | 71 | 0.660972 | 89 | 761 | 5.280899 | 0.505618 | 0.134043 | 0.102128 | 0.119149 | 0.148936 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02807 | 0.250986 | 761 | 30 | 72 | 25.366667 | 0.796491 | 0 | 0 | 0 | 0 | 0 | 0.049934 | 0.030223 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 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 |
b6b792498459995b89df7fac86e7a4c838ae82e7 | 6,200 | py | Python | setup.py | bark-simulator/bark-ml | 68a4244e91779667c98396c51ee713676bf1dfea | [
"MIT"
] | 58 | 2019-10-07T12:10:27.000Z | 2022-03-01T08:08:47.000Z | setup.py | bark-simulator/bark-ml | 68a4244e91779667c98396c51ee713676bf1dfea | [
"MIT"
] | 31 | 2019-09-10T15:33:20.000Z | 2022-03-30T08:52:08.000Z | setup.py | bark-simulator/bark-ml | 68a4244e91779667c98396c51ee713676bf1dfea | [
"MIT"
] | 14 | 2019-10-01T08:23:37.000Z | 2021-12-16T15:55:38.000Z | from setuptools import setup, find_packages, Extension
import os
from setuptools import setup, find_packages, Extension
import os,sys
import os
import shlex
import shutil
import setuptools.command.build_ext
import setuptools.command.build_py
import setuptools.command.install
import setuptools.command.sdist
import setu... | 36.904762 | 146 | 0.67629 | 771 | 6,200 | 5.211414 | 0.372244 | 0.054754 | 0.023644 | 0.023892 | 0.123196 | 0.067944 | 0.041812 | 0.026879 | 0.026879 | 0 | 0 | 0.011944 | 0.216774 | 6,200 | 167 | 147 | 37.125749 | 0.815486 | 0.208226 | 0 | 0.07874 | 0 | 0 | 0.223611 | 0.053495 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055118 | false | 0 | 0.15748 | 0.015748 | 0.275591 | 0.007874 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcab1ef55255f164328a1ed4e5f9679cb1a3f825 | 8,198 | py | Python | ml_aos/david_net.py | jfcrenshaw/ml-aos | 762509a77d809954749aea9b2b4e594951255c47 | [
"MIT"
] | null | null | null | ml_aos/david_net.py | jfcrenshaw/ml-aos | 762509a77d809954749aea9b2b4e594951255c47 | [
"MIT"
] | null | null | null | ml_aos/david_net.py | jfcrenshaw/ml-aos | 762509a77d809954749aea9b2b4e594951255c47 | [
"MIT"
] | null | null | null | """Pytorch neural network to predict zernike coefficients from donut images.
My implementation of the network presented in David Thomas's PhD Thesis
at Stanford.
"""
import numpy as np
import torch
from torch import nn
class DavidNet(nn.Module):
"""Network to predict wavefront Zernike coefficients from donut ima... | 30.475836 | 78 | 0.580385 | 1,001 | 8,198 | 4.669331 | 0.216783 | 0.06119 | 0.020539 | 0.016688 | 0.284339 | 0.211596 | 0.18849 | 0.15169 | 0.129226 | 0.118742 | 0 | 0.014265 | 0.333008 | 8,198 | 268 | 79 | 30.589552 | 0.840527 | 0.491095 | 0 | 0.26087 | 0 | 0 | 0.001169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.032609 | 0 | 0.282609 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcacbde3bba335a6b61bda2101f46d6c3839fe23 | 26,845 | py | Python | FastAutoAugment/utils/utils.py | ironluffy/fast-autoaugment | eaae5a6172afe28ba3053021c97e2cb09d170969 | [
"MIT"
] | null | null | null | FastAutoAugment/utils/utils.py | ironluffy/fast-autoaugment | eaae5a6172afe28ba3053021c97e2cb09d170969 | [
"MIT"
] | 12 | 2020-11-08T16:51:28.000Z | 2020-11-15T16:31:57.000Z | FastAutoAugment/utils/utils.py | ironluffy/fast-autoaugment | eaae5a6172afe28ba3053021c97e2cb09d170969 | [
"MIT"
] | null | null | null | import torch
import open3d
import os
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import itertools
import imageio
from torch.autograd import Variable
from src.utils import point_cloud_utils as pcu
from sklearn.metrics import confusion_matrix
def weights_init(m):
classname = m.__class__.__n... | 47.597518 | 119 | 0.620898 | 3,872 | 26,845 | 4.05501 | 0.100723 | 0.048405 | 0.01191 | 0.011592 | 0.404433 | 0.342526 | 0.295523 | 0.249729 | 0.220241 | 0.188714 | 0 | 0.022599 | 0.241758 | 26,845 | 563 | 120 | 47.68206 | 0.74876 | 0.01937 | 0 | 0.292 | 0 | 0 | 0.022847 | 0.000912 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048 | false | 0 | 0.024 | 0 | 0.104 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcaccf9b0138aa7d34d6785bbb98eec7ec092b2d | 811 | py | Python | utils/config.py | wuyue92tree/nice-you-get | 5c4962d27eb23656c14992e260ba94094a9728e6 | [
"MIT"
] | null | null | null | utils/config.py | wuyue92tree/nice-you-get | 5c4962d27eb23656c14992e260ba94094a9728e6 | [
"MIT"
] | null | null | null | utils/config.py | wuyue92tree/nice-you-get | 5c4962d27eb23656c14992e260ba94094a9728e6 | [
"MIT"
] | null | null | null | import os
import json
from conf.settings import CONFIG_PATH, HOME_DIR
class Config(object):
def __init__(self) -> None:
super().__init__()
self.default_config = {
'save_path': os.path.join(HOME_DIR, 'media'),
'insecure': 0,
'merge': 0,
'caption': 0
... | 25.34375 | 69 | 0.557337 | 106 | 811 | 4.09434 | 0.509434 | 0.092166 | 0.078341 | 0.082949 | 0.069124 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010695 | 0.308261 | 811 | 32 | 70 | 25.34375 | 0.762923 | 0 | 0 | 0 | 0 | 0 | 0.05665 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 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 |
fcad268505923f6abed1ba916aa0220d82115bca | 9,807 | py | Python | _modules/nexus3_privileges.py | jsandas/saltstack-nexus3-module | e090dfe18cd3b5d90d1c71b0747ff150eb96e328 | [
"MIT"
] | 1 | 2020-11-15T00:18:55.000Z | 2020-11-15T00:18:55.000Z | _modules/nexus3_privileges.py | jsandas/saltstack-nexus3-module | e090dfe18cd3b5d90d1c71b0747ff150eb96e328 | [
"MIT"
] | 1 | 2020-11-21T19:08:07.000Z | 2020-11-21T19:14:37.000Z | _modules/nexus3_privileges.py | jsandas/saltstack-nexus3-module | e090dfe18cd3b5d90d1c71b0747ff150eb96e328 | [
"MIT"
] | null | null | null | ''''
execution module for Nexus 3 security privileges
:version: v0.2.1
:configuration: In order to connect to Nexus 3, certain configuration is required
in /etc/salt/minion on the relevant minions.
Example:
nexus3:
hostname: '127.0.0.1:8081'
username: 'admin'
password: 'admin123... | 25.807895 | 238 | 0.595187 | 1,028 | 9,807 | 5.64786 | 0.148833 | 0.026524 | 0.025835 | 0.035653 | 0.59783 | 0.562694 | 0.542714 | 0.523424 | 0.512401 | 0.473131 | 0 | 0.006696 | 0.284287 | 9,807 | 380 | 239 | 25.807895 | 0.820487 | 0.379933 | 0 | 0.391061 | 0 | 0 | 0.21778 | 0.008592 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027933 | false | 0 | 0.01676 | 0 | 0.106145 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcaf861bcc515b67dfa9fe42cad17a8ff98ba4be | 1,708 | py | Python | Least_Common_Ancestor.py | cjdekker/Tree_Exercises | 30350626bfb146dc5affb51f6ab4f2a067832d4b | [
"MIT"
] | null | null | null | Least_Common_Ancestor.py | cjdekker/Tree_Exercises | 30350626bfb146dc5affb51f6ab4f2a067832d4b | [
"MIT"
] | null | null | null | Least_Common_Ancestor.py | cjdekker/Tree_Exercises | 30350626bfb146dc5affb51f6ab4f2a067832d4b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[2]:
def find_LCAs(parent):
LCA = dict() # This is the nested dictionary
def lca(u, v):
if u in list(LCA.keys()):
if v in list(LCA[u].keys()):
return
for i in list(parent[u]):
lca(i,v)
ul = [u]
... | 23.39726 | 100 | 0.379977 | 235 | 1,708 | 2.757447 | 0.217021 | 0.050926 | 0.083333 | 0.074074 | 0.398148 | 0.256173 | 0.256173 | 0.256173 | 0.256173 | 0.256173 | 0 | 0.002265 | 0.483021 | 1,708 | 72 | 101 | 23.722222 | 0.731597 | 0.101288 | 0 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcb0aac9f660d4912d9fc1b07d9b54eabce822d8 | 290 | py | Python | samples/takePicture.py | windriver-codecamp/alpha_drone | 2845784b93296f1ff8d259418208d24202f05c5d | [
"MIT"
] | null | null | null | samples/takePicture.py | windriver-codecamp/alpha_drone | 2845784b93296f1ff8d259418208d24202f05c5d | [
"MIT"
] | null | null | null | samples/takePicture.py | windriver-codecamp/alpha_drone | 2845784b93296f1ff8d259418208d24202f05c5d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import cv2
import time
from djitellopy import Tello
tello = Tello()
tello.connect()
tello.streamon()
frame_read = tello.get_frame_read()
#tello.takeoff()
time.sleep(1)
cv2.imwrite("picture.png", frame_read.frame)
#tello.land()
tello.end() | 15.263158 | 44 | 0.717241 | 43 | 290 | 4.744186 | 0.604651 | 0.147059 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019455 | 0.113793 | 290 | 19 | 45 | 15.263158 | 0.774319 | 0.241379 | 0 | 0 | 0 | 0 | 0.050691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcb2a18761108cac8ef931cd2742ce63d5c4b447 | 1,167 | py | Python | terrapower/physics/neutronics/dragon/tests/dragonTestingApp.py | ntouran/dragon-armi-plugin | c43e39891f9c99b87ff8ff82bd2424acbe6afec0 | [
"Apache-2.0"
] | null | null | null | terrapower/physics/neutronics/dragon/tests/dragonTestingApp.py | ntouran/dragon-armi-plugin | c43e39891f9c99b87ff8ff82bd2424acbe6afec0 | [
"Apache-2.0"
] | 9 | 2019-11-16T01:17:41.000Z | 2021-11-22T15:47:19.000Z | terrapower/physics/neutronics/dragon/tests/dragonTestingApp.py | ntouran/dragon-armi-plugin | c43e39891f9c99b87ff8ff82bd2424acbe6afec0 | [
"Apache-2.0"
] | 2 | 2019-11-18T15:13:46.000Z | 2021-07-30T18:01:40.000Z | # Copyright 2019 TerraPower, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 30.710526 | 76 | 0.672665 | 149 | 1,167 | 5.208054 | 0.61745 | 0.07732 | 0.033505 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00852 | 0.195373 | 1,167 | 37 | 77 | 31.540541 | 0.817891 | 0.600686 | 0 | 0.153846 | 0 | 0 | 0.260181 | 0.144796 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0.076923 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcb31fbe47519c56c2575ea13372b07701ee10b4 | 510 | py | Python | 2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/08-Text-Processing/01_Lab/04-Text-Filter.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | 2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/08-Text-Processing/01_Lab/04-Text-Filter.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | 2-Python-Fundamentals (Jan 2021)/Course-Exercises-and-Exams/08-Text-Processing/01_Lab/04-Text-Filter.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | # 4. Text Filter
# Write a program that takes a text and a string of banned words.
# All words included in the ban list should be replaced with asterisks "*", equal to the word's length. ' \
# 'The entries in the ban list will be separated by a comma and space ", ".
# The ban list should be entered on the first... | 34 | 107 | 0.692157 | 86 | 510 | 4.081395 | 0.534884 | 0.094017 | 0.08547 | 0.068376 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0025 | 0.215686 | 510 | 14 | 108 | 36.428571 | 0.875 | 0.705882 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcb3567798e88484d6775c6425b603d48c728543 | 18,009 | py | Python | main.py | ghurone/tamacat | 70f0e4bb6d21cde993caa38ef7e047187b306d3d | [
"MIT"
] | null | null | null | main.py | ghurone/tamacat | 70f0e4bb6d21cde993caa38ef7e047187b306d3d | [
"MIT"
] | null | null | null | main.py | ghurone/tamacat | 70f0e4bb6d21cde993caa38ef7e047187b306d3d | [
"MIT"
] | null | null | null | import config.funcoes as cfunc
import config.saveload as csave
import config.janela as cjane
import config.gatos_ascii as cga
import objs.gatinho as ogato
import objs.geladeira as ogela
import objs.bau as obau
from random import randint, choice
from time import sleep
humores = ['feliz', 'triste', 'quieto', 'brincalhã... | 35.105263 | 133 | 0.470931 | 1,963 | 18,009 | 4.15894 | 0.180846 | 0.034297 | 0.051445 | 0.014699 | 0.28099 | 0.174057 | 0.109873 | 0.073126 | 0.073126 | 0.021803 | 0 | 0.019961 | 0.40191 | 18,009 | 512 | 134 | 35.173828 | 0.737722 | 0.038925 | 0 | 0.25 | 0 | 0.010989 | 0.193184 | 0.006666 | 0 | 0 | 0 | 0.001953 | 0 | 1 | 0.027473 | false | 0.002747 | 0.024725 | 0 | 0.087912 | 0.049451 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcb3f35344db31559c493891a3016def67e71ee1 | 3,837 | py | Python | src/pyluxcoretools/pyluxcoretools/utils/netbeacon.py | OmidGhotbi/LuxCore | e83fb6bf2e2c0254e3c769ffc8e5546eb71f576a | [
"Apache-2.0"
] | 826 | 2017-12-12T15:38:16.000Z | 2022-03-28T07:12:40.000Z | src/pyluxcoretools/pyluxcoretools/utils/netbeacon.py | OmidGhotbi/LuxCore | e83fb6bf2e2c0254e3c769ffc8e5546eb71f576a | [
"Apache-2.0"
] | 531 | 2017-12-03T17:21:06.000Z | 2022-03-20T19:22:11.000Z | src/pyluxcoretools/pyluxcoretools/utils/netbeacon.py | OmidGhotbi/LuxCore | e83fb6bf2e2c0254e3c769ffc8e5546eb71f576a | [
"Apache-2.0"
] | 133 | 2017-12-13T18:46:10.000Z | 2022-03-27T16:21:00.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
################################################################################
# Copyright 1998-2018 by authors (see AUTHORS.txt)
#
# This file is part of LuxCoreRender.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except i... | 28.849624 | 99 | 0.691426 | 473 | 3,837 | 5.54334 | 0.35518 | 0.04958 | 0.02746 | 0.012204 | 0.318841 | 0.295957 | 0.276125 | 0.251716 | 0.218154 | 0.218154 | 0 | 0.009886 | 0.156372 | 3,837 | 132 | 100 | 29.068182 | 0.800124 | 0.23117 | 0 | 0.363636 | 0 | 0 | 0.113965 | 0.015919 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103896 | false | 0 | 0.064935 | 0 | 0.194805 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcb43a9aaebf1ad8cae7c5ffcb6ef4a11fa19aa8 | 389 | py | Python | api/main.py | debbie-chan/SPM | f84e62779347579287aee8a2e832f72dcc53b8dd | [
"MIT"
] | null | null | null | api/main.py | debbie-chan/SPM | f84e62779347579287aee8a2e832f72dcc53b8dd | [
"MIT"
] | null | null | null | api/main.py | debbie-chan/SPM | f84e62779347579287aee8a2e832f72dcc53b8dd | [
"MIT"
] | null | null | null | from flask import render_template
from .src.app import create_app
db_uri = (
"mongodb+srv://dbAdmin:Ve08ByJJOk5RNhWK@clusterlms.k10xd.mongodb.net/lms"
)
app = create_app(db_uri)
@app.route("/", defaults={"path": ""})
@app.route("/<path:path>")
def index(path):
return render_template("index.html")
if __name... | 21.611111 | 77 | 0.691517 | 57 | 389 | 4.473684 | 0.614035 | 0.023529 | 0.086275 | 0.109804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038123 | 0.123393 | 389 | 17 | 78 | 22.882353 | 0.709677 | 0 | 0 | 0 | 0 | 0 | 0.290488 | 0.182519 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0.083333 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcb44301153a2a318071b686264e0d081c08940a | 2,189 | py | Python | inference.py | SolomidHero/voice-conversion-flask-heroku | 2b27f1e92dcd2d06723ab39382389fbe722c843d | [
"MIT"
] | null | null | null | inference.py | SolomidHero/voice-conversion-flask-heroku | 2b27f1e92dcd2d06723ab39382389fbe722c843d | [
"MIT"
] | null | null | null | inference.py | SolomidHero/voice-conversion-flask-heroku | 2b27f1e92dcd2d06723ab39382389fbe722c843d | [
"MIT"
] | null | null | null | import json
import torch
import sys
from common_utils import transform_audio
from engine.data import load_wav, log_mel_spectrogram, plot_mel, plot_attn
from engine.models import load_pretrained_wav2vec
from vocoder.env import AttrDict
sys.path.append("./vocoder")
from vocoder.models import Generator
device = torch.... | 29.581081 | 80 | 0.740978 | 327 | 2,189 | 4.712538 | 0.327217 | 0.046723 | 0.025308 | 0.033095 | 0.063595 | 0.035042 | 0 | 0 | 0 | 0 | 0 | 0.020148 | 0.138419 | 2,189 | 73 | 81 | 29.986301 | 0.796925 | 0.042942 | 0 | 0 | 0 | 0 | 0.169459 | 0.021541 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.156863 | 0 | 0.235294 | 0.156863 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcb77d0da70d5d72ccf79ec2127cc2c4373c050d | 5,412 | py | Python | suica.py | hsgwa/nfcpy-suica-sample | 7903ec3546c3e11fef0c82b6316b357a7a4d585d | [
"MIT"
] | null | null | null | suica.py | hsgwa/nfcpy-suica-sample | 7903ec3546c3e11fef0c82b6316b357a7a4d585d | [
"MIT"
] | null | null | null | suica.py | hsgwa/nfcpy-suica-sample | 7903ec3546c3e11fef0c82b6316b357a7a4d585d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import binascii
import csv
import datetime
import os
import struct
import sys
import nfc
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/nfcpy')
num_blocks = 20
service_code = 0x090f
class StationRecord(object):
db = None
def __init__(self, row... | 29.736264 | 91 | 0.55765 | 644 | 5,412 | 4.495342 | 0.268634 | 0.017271 | 0.046978 | 0.017617 | 0.078411 | 0.044905 | 0.020725 | 0 | 0 | 0 | 0 | 0.029459 | 0.316334 | 5,412 | 181 | 92 | 29.900552 | 0.752973 | 0.034183 | 0 | 0.101449 | 0 | 0 | 0.050594 | 0 | 0 | 0 | 0.014182 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.057971 | 0.043478 | 0.282609 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcb7d3280cecce6265b2df4ab52529db9861f61d | 1,760 | py | Python | raekwon/db.py | metheoryt/raekwon | 3330559a2b655436520fad3d7edf6c871d6e8460 | [
"MIT"
] | null | null | null | raekwon/db.py | metheoryt/raekwon | 3330559a2b655436520fad3d7edf6c871d6e8460 | [
"MIT"
] | null | null | null | raekwon/db.py | metheoryt/raekwon | 3330559a2b655436520fad3d7edf6c871d6e8460 | [
"MIT"
] | null | null | null | from datetime import datetime
import marshmallow as ma
import sqlalchemy as sa
from marshmallow import fields as f
from sqlalchemy import MetaData
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, scoped_session
metadata = MetaData()
Session = scoped_session(sessionmaker... | 28.387097 | 84 | 0.694318 | 235 | 1,760 | 5.07234 | 0.365957 | 0.017617 | 0.065436 | 0.071309 | 0.050336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198864 | 1,760 | 61 | 85 | 28.852459 | 0.84539 | 0.053409 | 0 | 0 | 0 | 0 | 0.014661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0.170732 | 0 | 0.317073 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcbb97830b78a5ce1b4a5754ca7c5afd3e05b7f0 | 3,963 | py | Python | app/FrontendMicroservice/main_frontend.py | AdavisSnakes/GrocerySaaS | 1d0b50d1c0d2e53b1bdb9fe57e94c6168b7e4c84 | [
"MIT"
] | null | null | null | app/FrontendMicroservice/main_frontend.py | AdavisSnakes/GrocerySaaS | 1d0b50d1c0d2e53b1bdb9fe57e94c6168b7e4c84 | [
"MIT"
] | null | null | null | app/FrontendMicroservice/main_frontend.py | AdavisSnakes/GrocerySaaS | 1d0b50d1c0d2e53b1bdb9fe57e94c6168b7e4c84 | [
"MIT"
] | null | null | null | #!/usr/bin/python3.7
import sys, json, os, stripe
from datetime import timedelta, datetime
from flask import Flask, render_template, redirect, request, escape, jsonify, flash, current_app
from flask_login import LoginManager, UserMixin, login_required, login_user, logout_user, current_user
from flask_wtf import CSRFPro... | 36.027273 | 102 | 0.726218 | 471 | 3,963 | 5.781316 | 0.248408 | 0.064635 | 0.058759 | 0.05729 | 0.364671 | 0.302975 | 0.263313 | 0.246787 | 0.226956 | 0.226956 | 0 | 0.006479 | 0.182185 | 3,963 | 110 | 103 | 36.027273 | 0.833693 | 0.010346 | 0 | 0.192771 | 0 | 0 | 0.06682 | 0.005356 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108434 | false | 0 | 0.120482 | 0 | 0.349398 | 0.036145 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcbc22574e8ecb6bb9fb93418299a40102fc9634 | 483 | py | Python | examples/decoupledibpm/sphere3d/Re350/scripts/create_body.py | barbagroup/petibm-examples | 794de3613967c14750c750aed386602c988cff05 | [
"BSD-3-Clause"
] | 2 | 2020-08-08T13:37:32.000Z | 2021-12-01T03:22:32.000Z | examples/decoupledibpm/sphere3d/Re350/scripts/create_body.py | barbagroup/petibm-examples | 794de3613967c14750c750aed386602c988cff05 | [
"BSD-3-Clause"
] | null | null | null | examples/decoupledibpm/sphere3d/Re350/scripts/create_body.py | barbagroup/petibm-examples | 794de3613967c14750c750aed386602c988cff05 | [
"BSD-3-Clause"
] | 2 | 2019-12-22T08:49:01.000Z | 2021-12-01T03:22:44.000Z | """Create a sphere."""
import pathlib
import sys
import petibmpy
rootdir = pathlib.Path(__file__).absolute().parents[5]
sys.path.insert(0, str(rootdir / 'misc'))
import icosphere
R = 0.5
sphere = icosphere.create_icosphere(25)
sphere.vertices *= R
sphere.print_info()
x, y, z = sphere.vertices.T
# Center the sphe... | 18.576923 | 54 | 0.706004 | 76 | 483 | 4.342105 | 0.460526 | 0.024242 | 0.027273 | 0.139394 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0358 | 0.132505 | 483 | 25 | 55 | 19.32 | 0.75179 | 0.113872 | 0 | 0 | 0 | 0 | 0.035545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.266667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcbc3d99f59af651cbfa762d00ff42cd63d6d739 | 1,129 | py | Python | examples/plot_therm.py | xavigisbeg/handy_plotter | 048a38dc8510b81df01348bf4e756fa846a977be | [
"MIT"
] | null | null | null | examples/plot_therm.py | xavigisbeg/handy_plotter | 048a38dc8510b81df01348bf4e756fa846a977be | [
"MIT"
] | null | null | null | examples/plot_therm.py | xavigisbeg/handy_plotter | 048a38dc8510b81df01348bf4e756fa846a977be | [
"MIT"
] | null | null | null | import context as HP
import os
OT = '2018_1101_B'
if (os.name == 'nt'):
pathData = '{}{}/{}'.format(
'//SERVIDORSQL/Datos/Desarrollos y pruebas/',
'Automatitzacio/Dades Proves/Termoparell',
OT)
pathPlot = '{}{}/{}'.format(
'//SERVIDORSQL/Datos/Desarrollos y pruebas/',
'Automatitzacio/Dades Proves/Termopar... | 22.137255 | 74 | 0.622675 | 146 | 1,129 | 4.773973 | 0.568493 | 0.021521 | 0.025825 | 0.094692 | 0.370158 | 0.370158 | 0.370158 | 0.370158 | 0.226686 | 0.226686 | 0 | 0.061269 | 0.190434 | 1,129 | 50 | 75 | 22.58 | 0.701313 | 0.0124 | 0 | 0.297872 | 0 | 0 | 0.327044 | 0.100629 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.042553 | 0 | 0.042553 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcbd2a883473757a97803fed690a067d5c7f7016 | 7,526 | py | Python | sammba/registration/tests/test_template_registrator.py | salma1601/sammba-mri | c3c79ed806a4e5ce3524bc6053bf0c3ff1444113 | [
"CECILL-B"
] | null | null | null | sammba/registration/tests/test_template_registrator.py | salma1601/sammba-mri | c3c79ed806a4e5ce3524bc6053bf0c3ff1444113 | [
"CECILL-B"
] | null | null | null | sammba/registration/tests/test_template_registrator.py | salma1601/sammba-mri | c3c79ed806a4e5ce3524bc6053bf0c3ff1444113 | [
"CECILL-B"
] | null | null | null | import os
from nose import with_setup
from nose.tools import assert_true
import numpy as np
import nibabel
from nilearn.datasets.tests import test_utils as tst
from nilearn._utils.testing import assert_raises_regex
from nilearn._utils.niimg_conversions import _check_same_fov
from sammba import testing_data
from sammba.... | 44.797619 | 78 | 0.662769 | 921 | 7,526 | 5.040174 | 0.12595 | 0.028436 | 0.030159 | 0.042223 | 0.607712 | 0.55838 | 0.467902 | 0.383455 | 0.358035 | 0.317105 | 0 | 0.008329 | 0.250199 | 7,526 | 167 | 79 | 45.065868 | 0.814283 | 0.042386 | 0 | 0.395522 | 0 | 0 | 0.050188 | 0 | 0 | 0 | 0 | 0 | 0.141791 | 1 | 0.044776 | false | 0 | 0.074627 | 0 | 0.119403 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcbe57aa0aba088b6e7c1f10ce1907df3fa001fe | 8,939 | py | Python | main.py | RabbitFored/responseJSON-bot | 45364296fe63b6db3a89003339d787d0966ae037 | [
"MIT"
] | 5 | 2021-08-11T18:24:53.000Z | 2021-11-16T13:01:41.000Z | main.py | RabbitFored/responseJSON-bot | 45364296fe63b6db3a89003339d787d0966ae037 | [
"MIT"
] | null | null | null | main.py | RabbitFored/responseJSON-bot | 45364296fe63b6db3a89003339d787d0966ae037 | [
"MIT"
] | 2 | 2021-08-10T05:42:14.000Z | 2021-08-12T14:00:24.000Z | from multiprocessing import Process
import botapi
from pyrogram import Client, filters
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton
from pyrogram.handlers import MessageHandler
import json
import database
from pyrogram.errors import (PeerIdInvalid, UserIsBlocked, MessageTooLong)
from pyrogram.t... | 33.859848 | 119 | 0.571205 | 900 | 8,939 | 5.498889 | 0.204444 | 0.026672 | 0.024247 | 0.029097 | 0.481309 | 0.409982 | 0.404526 | 0.387149 | 0.292382 | 0.25298 | 0 | 0.001655 | 0.323974 | 8,939 | 263 | 120 | 33.988593 | 0.817309 | 0.003804 | 0 | 0.337963 | 0 | 0.009259 | 0.175466 | 0.007414 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.050926 | 0 | 0.064815 | 0.009259 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcc07acfd0ff24e49be1cb1b14f2f8ee025b2537 | 4,301 | py | Python | datastax/trees/heap_tree.py | warmachine028/datastax | 2898b517dee471a240a10e81bcfafee5dce615ca | [
"MIT"
] | 5 | 2021-12-25T17:08:39.000Z | 2022-03-18T16:22:57.000Z | datastax/trees/heap_tree.py | warmachine028/datastax | 2898b517dee471a240a10e81bcfafee5dce615ca | [
"MIT"
] | 1 | 2021-12-28T05:45:34.000Z | 2021-12-28T21:31:50.000Z | datastax/trees/heap_tree.py | warmachine028/datastax | 2898b517dee471a240a10e81bcfafee5dce615ca | [
"MIT"
] | null | null | null | # Heap Tree Implementation
from __future__ import annotations
import warnings
from typing import Optional, Any
from datastax.errors import DeletionFromEmptyTreeWarning
from datastax.trees.private_trees.binary_tree import BinaryTree, TreeNode
class HeapNode(TreeNode):
def __init__(self, data: Any,
... | 34.408 | 73 | 0.589863 | 538 | 4,301 | 4.592937 | 0.204461 | 0.100364 | 0.038851 | 0.0259 | 0.161068 | 0.108458 | 0.025091 | 0.025091 | 0 | 0 | 0 | 0.000348 | 0.332016 | 4,301 | 124 | 74 | 34.685484 | 0.859729 | 0.110672 | 0 | 0.141414 | 0 | 0 | 0.016002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10101 | false | 0 | 0.050505 | 0.010101 | 0.262626 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcc09e2543fdf968d7d7db4fd1316f5b3e4dc932 | 7,443 | py | Python | pretix_mpesa/payment.py | enyachoke/pretix-mpesa | 615368b04226e72cea3b1a16002001e32d0435bb | [
"Apache-2.0"
] | 2 | 2018-07-10T15:55:47.000Z | 2020-11-28T20:42:53.000Z | pretix_mpesa/payment.py | enyachoke/pretix-mpesa | 615368b04226e72cea3b1a16002001e32d0435bb | [
"Apache-2.0"
] | null | null | null | pretix_mpesa/payment.py | enyachoke/pretix-mpesa | 615368b04226e72cea3b1a16002001e32d0435bb | [
"Apache-2.0"
] | 1 | 2021-05-27T15:20:18.000Z | 2021-05-27T15:20:18.000Z | import json
import logging
import urllib.parse
import phonenumbers
import math
from pympesa import Pympesa
from django import forms
from django.contrib import messages
from django.core import signing
from django.template.loader import get_template
from django.utils.translation import ugettext as __, ugettext_lazy as _... | 42.775862 | 142 | 0.616015 | 800 | 7,443 | 5.5375 | 0.3 | 0.027314 | 0.032506 | 0.018059 | 0.138826 | 0.090068 | 0.0693 | 0.048984 | 0.048984 | 0.048984 | 0 | 0.000573 | 0.296655 | 7,443 | 173 | 143 | 43.023121 | 0.845654 | 0.065296 | 0 | 0.216783 | 0 | 0.006993 | 0.204844 | 0.03808 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06993 | false | 0.034965 | 0.167832 | 0.027972 | 0.34965 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcc1840932d14855ac81775c732f4766b613aa60 | 1,927 | py | Python | tests/test_api_bot_snake.py | gatarelib/site | 81c71a58b949cb346e6af95d2cc3a7c4a71f36fe | [
"MIT"
] | null | null | null | tests/test_api_bot_snake.py | gatarelib/site | 81c71a58b949cb346e6af95d2cc3a7c4a71f36fe | [
"MIT"
] | null | null | null | tests/test_api_bot_snake.py | gatarelib/site | 81c71a58b949cb346e6af95d2cc3a7c4a71f36fe | [
"MIT"
] | null | null | null | """Tests the `/api/bot/snake_` endpoints."""
from tests import SiteTest, app
class TestSnakeFactsAPI(SiteTest):
"""GET method - get snake fact"""
def test_snake_facts(self):
response = self.client.get(
'/bot/snake_facts',
app.config['API_SUBDOMAIN'],
headers=app.c... | 29.646154 | 63 | 0.613908 | 218 | 1,927 | 5.275229 | 0.224771 | 0.078261 | 0.052174 | 0.095652 | 0.733913 | 0.668696 | 0.668696 | 0.582609 | 0.516522 | 0.516522 | 0 | 0.010526 | 0.260509 | 1,927 | 64 | 64 | 30.109375 | 0.796491 | 0.091853 | 0 | 0.533333 | 0 | 0 | 0.12355 | 0.016821 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.111111 | false | 0 | 0.022222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcc6c86765fcf633c28691ba399ab19c5fd57779 | 461 | py | Python | Addresses/checkboxes.py | bruceqqqqq/Tkinter-Course | 5c4260a1b6aa45c5a7c406f940a57d778afce20b | [
"Apache-2.0"
] | null | null | null | Addresses/checkboxes.py | bruceqqqqq/Tkinter-Course | 5c4260a1b6aa45c5a7c406f940a57d778afce20b | [
"Apache-2.0"
] | null | null | null | Addresses/checkboxes.py | bruceqqqqq/Tkinter-Course | 5c4260a1b6aa45c5a7c406f940a57d778afce20b | [
"Apache-2.0"
] | null | null | null | from tkinter import *
from PIL import ImageTk, Image
root = Tk()
root.title('Batman')
root.iconbitmap('images/batman.ico')
root.geometry('400x400')
def show():
myLabel = Label(root, text=var.get())
myLabel.pack()
var = StringVar()
check = Checkbutton(root, text='Check this box', variable=var, onvalue='On', ... | 20.043478 | 92 | 0.707158 | 62 | 461 | 5.258065 | 0.629032 | 0.07362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014888 | 0.125813 | 461 | 22 | 93 | 20.954545 | 0.794045 | 0 | 0 | 0 | 0 | 0 | 0.136659 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcc79406b9832714fea2809a9345d147398abb57 | 38,295 | py | Python | model/interact/modeling.py | shanestorks/piglet | be8ab482503a94a61667bef66e8aac8584ee5a9c | [
"MIT"
] | 48 | 2021-06-02T01:44:06.000Z | 2022-01-19T05:10:54.000Z | model/interact/modeling.py | shanestorks/piglet | be8ab482503a94a61667bef66e8aac8584ee5a9c | [
"MIT"
] | 2 | 2021-07-07T21:53:37.000Z | 2022-01-11T20:46:31.000Z | model/interact/modeling.py | shanestorks/piglet | be8ab482503a94a61667bef66e8aac8584ee5a9c | [
"MIT"
] | 7 | 2021-06-02T14:41:05.000Z | 2022-03-11T21:37:01.000Z | import tensorflow as tf
import sys
sys.path.append('../../')
from model.model_utils import bfloat16_getter, get_shape_list, gelu, dropout, layer_norm, sequence_xe_loss, \
construct_host_call, get_assignment_map_from_checkpoint, _sequence_xe_loss_noreduce, stack_jagged, \
get_ltr_attention_mask
from data.thor_c... | 48.352273 | 125 | 0.589215 | 4,526 | 38,295 | 4.623288 | 0.115113 | 0.035699 | 0.020741 | 0.013763 | 0.479092 | 0.386284 | 0.293763 | 0.238949 | 0.19871 | 0.179881 | 0 | 0.015195 | 0.31085 | 38,295 | 791 | 126 | 48.413401 | 0.777689 | 0.212665 | 0 | 0.248918 | 0 | 0 | 0.046717 | 0.009385 | 0 | 0 | 0 | 0 | 0.032468 | 1 | 0.030303 | false | 0 | 0.021645 | 0 | 0.08658 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcc845234e6840c99dfb161a50d8b03c190825b7 | 16,564 | py | Python | tests/docker/test_docker.py | radiocosmology/alpenhorn | a91df899d864e04699b6f49c33f473383ee10cfc | [
"MIT"
] | 3 | 2017-03-10T00:51:01.000Z | 2018-04-25T16:50:13.000Z | tests/docker/test_docker.py | radiocosmology/alpenhorn | a91df899d864e04699b6f49c33f473383ee10cfc | [
"MIT"
] | 106 | 2017-03-16T23:57:10.000Z | 2021-10-05T23:44:48.000Z | tests/docker/test_docker.py | radiocosmology/alpenhorn | a91df899d864e04699b6f49c33f473383ee10cfc | [
"MIT"
] | 1 | 2018-07-26T23:32:13.000Z | 2018-07-26T23:32:13.000Z | import os
import re
import time
from os.path import dirname, exists, join
import pytest
import yaml
from alpenhorn import acquisition as ac
from alpenhorn import archive as ar
from alpenhorn import storage as st
if ("RUN_DOCKER_TESTS" not in os.environ) and ("PLAYGROUND" not in os.environ):
pytestmark = pytest... | 27.745394 | 90 | 0.604262 | 2,153 | 16,564 | 4.517882 | 0.194612 | 0.014804 | 0.021487 | 0.028786 | 0.287961 | 0.24725 | 0.228436 | 0.193276 | 0.179912 | 0.160481 | 0 | 0.010692 | 0.282903 | 16,564 | 596 | 91 | 27.791946 | 0.808217 | 0.218908 | 0 | 0.284457 | 0 | 0.008798 | 0.141078 | 0.018767 | 0 | 0 | 0 | 0 | 0.049853 | 1 | 0.061584 | false | 0.002933 | 0.043988 | 0 | 0.131965 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fccb331c2eb46090371d60f7632d229d2233551e | 10,172 | py | Python | SparseSC/optimizers/cd_line_search.py | cclauss/SparseSC | bd5c65f162a5431f92ed957df3385c803f2d3365 | [
"MIT"
] | null | null | null | SparseSC/optimizers/cd_line_search.py | cclauss/SparseSC | bd5c65f162a5431f92ed957df3385c803f2d3365 | [
"MIT"
] | null | null | null | SparseSC/optimizers/cd_line_search.py | cclauss/SparseSC | bd5c65f162a5431f92ed957df3385c803f2d3365 | [
"MIT"
] | null | null | null | import numpy as np
from scipy.optimize import line_search
import locale
locale.setlocale(locale.LC_ALL, '')
class cd_res(object):
def __init__(self, x, fun):
self.x = x
self.fun = fun
print_stop_iteration = 1
def cdl_step(score,
guess,
jac,
val = Non... | 42.383333 | 159 | 0.567735 | 1,353 | 10,172 | 4.128603 | 0.230599 | 0.035804 | 0.048335 | 0.025063 | 0.383101 | 0.339241 | 0.281776 | 0.261726 | 0.261726 | 0.253849 | 0 | 0.013481 | 0.336414 | 10,172 | 239 | 160 | 42.560669 | 0.814074 | 0.341329 | 0 | 0.307692 | 0 | 0.020979 | 0.119927 | 0 | 0 | 0 | 0 | 0.008368 | 0.034965 | 1 | 0.034965 | false | 0 | 0.020979 | 0.006993 | 0.125874 | 0.20979 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fccf49b1abdfc57fe1c9a3e98dcfeba511b3cef0 | 2,495 | py | Python | runOgre.py | songsiwei/Ogre_r_sv | b31dc64133f082ae395196ebedf41c8cc825ebfd | [
"BSD-3-Clause"
] | null | null | null | runOgre.py | songsiwei/Ogre_r_sv | b31dc64133f082ae395196ebedf41c8cc825ebfd | [
"BSD-3-Clause"
] | null | null | null | runOgre.py | songsiwei/Ogre_r_sv | b31dc64133f082ae395196ebedf41c8cc825ebfd | [
"BSD-3-Clause"
] | null | null | null | from ogre import generators
import argparse
from configparser import ConfigParser
from ase.io import read, write
import os
from ogre.utils.utils import print_run_time
#print('################')
#teat_a = read('TETCEN.cif', format= 'cif')
#print(teat_a)
def parse_arguments():
parser = argparse.ArgumentParser()
... | 38.384615 | 92 | 0.662926 | 299 | 2,495 | 5.240803 | 0.304348 | 0.058073 | 0.03829 | 0.053606 | 0.121251 | 0.089981 | 0.068922 | 0.068922 | 0.068922 | 0 | 0 | 0.002572 | 0.220842 | 2,495 | 64 | 93 | 38.984375 | 0.803498 | 0.034068 | 0 | 0.035714 | 0 | 0 | 0.114644 | 0.013808 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.107143 | 0 | 0.160714 | 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 |
fcd93a3e56808b06287beaf9ab650f7bd54032be | 13,058 | py | Python | quantile_ml/utils_scoring.py | doordash/auto_ml | 7e6873265c4c2c0a03946c3f68a954930cda3bb2 | [
"MIT"
] | 17 | 2016-09-23T03:29:23.000Z | 2022-03-22T10:42:34.000Z | quantile_ml/utils_scoring.py | doordash/auto_ml | 7e6873265c4c2c0a03946c3f68a954930cda3bb2 | [
"MIT"
] | 3 | 2016-09-21T23:12:51.000Z | 2016-12-01T19:17:18.000Z | quantile_ml/utils_scoring.py | doordash/auto_ml | 7e6873265c4c2c0a03946c3f68a954930cda3bb2 | [
"MIT"
] | 3 | 2017-05-30T17:30:30.000Z | 2020-03-26T09:43:24.000Z | from collections import OrderedDict
import math
from quantile_ml import utils
import pandas as pd
from sklearn.ensemble import GradientBoostingRegressor, GradientBoostingClassifier
from sklearn.metrics import mean_squared_error, make_scorer, brier_score_loss, accuracy_score, explained_variance_score, mean_absolute_err... | 40.055215 | 362 | 0.652856 | 1,735 | 13,058 | 4.767723 | 0.197695 | 0.02986 | 0.014507 | 0.01632 | 0.342722 | 0.28663 | 0.230658 | 0.230658 | 0.219536 | 0.189192 | 0 | 0.010702 | 0.24866 | 13,058 | 325 | 363 | 40.178462 | 0.832433 | 0.114566 | 0 | 0.297778 | 0 | 0.026667 | 0.192341 | 0.01083 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048889 | false | 0.004444 | 0.031111 | 0.004444 | 0.133333 | 0.284444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcda80063c8aaa6e840fe53a93438e5045c6f364 | 1,150 | py | Python | setup.py | icon-project/loopchain_tools | 3441f0ade654bbaedc382d94230f526b14baea1a | [
"Apache-2.0"
] | 1 | 2020-08-15T16:15:03.000Z | 2020-08-15T16:15:03.000Z | setup.py | icon-project/loopchain_tools | 3441f0ade654bbaedc382d94230f526b14baea1a | [
"Apache-2.0"
] | null | null | null | setup.py | icon-project/loopchain_tools | 3441f0ade654bbaedc382d94230f526b14baea1a | [
"Apache-2.0"
] | 2 | 2021-06-02T07:50:57.000Z | 2021-12-01T23:35:10.000Z | import os
from setuptools import setup, find_packages
version = os.environ.get('VERSION')
if version is None:
with open(os.path.join('.', 'VERSION')) as version_file:
version = version_file.read().strip()
setup_options = {
'name': 'loopchain tools',
'description': 'CLI tools for loopchain',
... | 31.944444 | 61 | 0.64087 | 123 | 1,150 | 5.878049 | 0.626016 | 0.078838 | 0.103734 | 0.071923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006572 | 0.206087 | 1,150 | 35 | 62 | 32.857143 | 0.785323 | 0 | 0 | 0 | 0 | 0 | 0.533913 | 0.025217 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcdb510122b20178c2555bc294630f212df04c12 | 1,315 | py | Python | lecture_6/stack_4.py | Willianan/Interview_Book | bde1a975bcffdb1179f234cb3380f51d4c800b12 | [
"Apache-2.0"
] | 2 | 2019-11-12T09:07:56.000Z | 2020-07-15T06:28:58.000Z | lecture_6/stack_4.py | Willianan/Interview_Book | bde1a975bcffdb1179f234cb3380f51d4c800b12 | [
"Apache-2.0"
] | null | null | null | lecture_6/stack_4.py | Willianan/Interview_Book | bde1a975bcffdb1179f234cb3380f51d4c800b12 | [
"Apache-2.0"
] | 1 | 2020-05-04T13:46:38.000Z | 2020-05-04T13:46:38.000Z | # -*- coding:utf-8 -*-
"""
@Author:Charles Van
@E-mail: williananjhon@hotmail.com
@Time:2019-08-13 15:52
@Project:InterView_Book
@Filename:stack_4.py
@description:
使用堆栈解决汉诺塔问题
"""
'''
题目描述:
有3根杆子,其中一根上有n快铁饼,铁饼由小到大依次从上往下排列,要求把杆1上的铁饼挪到杆2上,
杆3可以作为铁饼转移的中转站。当转移铁饼时,必须保证小铁饼只能放到大铁饼的上头,请给出移动步骤。
'''
class HanoiMove:
... | 23.909091 | 92 | 0.698859 | 169 | 1,315 | 5.35503 | 0.461538 | 0.086188 | 0.044199 | 0.044199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028131 | 0.161977 | 1,315 | 55 | 93 | 23.909091 | 0.793103 | 0.13308 | 0 | 0.129032 | 0 | 0 | 0.052889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0 | 0 | 0.193548 | 0.16129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcdc751153a77f14d59683f2518a461ca9f696b9 | 34,911 | py | Python | src/genopandas/core/matrix.py | jrderuiter/genopandas | 8d4bd46cfcd3a9c27c1f561ed25b3e5c3ff4b8a5 | [
"MIT"
] | null | null | null | src/genopandas/core/matrix.py | jrderuiter/genopandas | 8d4bd46cfcd3a9c27c1f561ed25b3e5c3ff4b8a5 | [
"MIT"
] | null | null | null | src/genopandas/core/matrix.py | jrderuiter/genopandas | 8d4bd46cfcd3a9c27c1f561ed25b3e5c3ff4b8a5 | [
"MIT"
] | null | null | null | import functools
import itertools
import operator
import re
import numpy as np
import pandas as pd
from pandas.api.types import is_numeric_dtype
import toolz
from genopandas import plotting as gplot
from genopandas.util.pandas_ import DfWrapper
from .frame import GenomicDataFrame, GenomicSlice
RANGED_REGEX = r'(?P<... | 34.462981 | 80 | 0.595085 | 4,019 | 34,911 | 4.950485 | 0.132122 | 0.057801 | 0.025633 | 0.018999 | 0.379674 | 0.312123 | 0.261962 | 0.215923 | 0.209439 | 0.182097 | 0 | 0.004052 | 0.314228 | 34,911 | 1,012 | 81 | 34.497036 | 0.826991 | 0.15826 | 0 | 0.345257 | 0 | 0 | 0.0472 | 0.002909 | 0 | 0 | 0 | 0.001976 | 0 | 1 | 0.07154 | false | 0.001555 | 0.032659 | 0.00311 | 0.178849 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcdcb04e7d7ccb6b7e169672c64a338e2a347415 | 936 | py | Python | GUI/Generic/GScrollableBases.py | gcewing/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 9 | 2019-07-15T19:03:27.000Z | 2021-11-24T19:50:02.000Z | GUI/Generic/GScrollableBases.py | mnabeelp/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 3 | 2019-09-11T13:22:10.000Z | 2020-08-19T20:13:00.000Z | GUI/Generic/GScrollableBases.py | mnabeelp/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 4 | 2020-02-23T16:50:06.000Z | 2022-02-10T07:15:35.000Z | #-------------------------------------------------------------------------------
#
# Python GUI - Scrollable objects mixin - Generic
#
#-------------------------------------------------------------------------------
from GUI.Properties import overridable_property
class ScrollableBase(object):
"""Mixin for component... | 28.363636 | 80 | 0.600427 | 95 | 936 | 5.852632 | 0.505263 | 0.136691 | 0.064748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 936 | 32 | 81 | 29.25 | 0.689826 | 0.290598 | 0 | 0 | 0 | 0 | 0.274119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 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 |
fcdf6498cef441e9307973c5719c094eefe1d7d2 | 5,047 | py | Python | lap/create_lap_dataset.py | saadyousuf45/age-gender-estimation | 50ff4bce716e8eba717c53009c2e0fa6feaae03c | [
"MIT"
] | 1,437 | 2017-04-10T04:55:35.000Z | 2022-03-31T04:49:26.000Z | lap/create_lap_dataset.py | saadyousuf45/age-gender-estimation | 50ff4bce716e8eba717c53009c2e0fa6feaae03c | [
"MIT"
] | 130 | 2017-05-19T02:39:38.000Z | 2022-03-21T14:10:35.000Z | lap/create_lap_dataset.py | saadyousuf45/age-gender-estimation | 50ff4bce716e8eba717c53009c2e0fa6feaae03c | [
"MIT"
] | 542 | 2017-05-10T10:18:15.000Z | 2022-03-21T05:52:35.000Z | import argparse
import better_exceptions
import sys
import time
from pathlib import Path
import zipfile
import bz2
import urllib.request
import dlib
import cv2
zip_names = ["train_1.zip", "train_2.zip", "train_gt.zip", "valid.zip", "valid_gt.zip"]
urls = ["http://***/train_1.zip",
"http://***/train_2.zip",
... | 36.572464 | 112 | 0.650684 | 657 | 5,047 | 4.741248 | 0.277017 | 0.045907 | 0.036597 | 0.02825 | 0.19069 | 0.123274 | 0.050722 | 0.050722 | 0.050722 | 0.050722 | 0 | 0.016096 | 0.22449 | 5,047 | 137 | 113 | 36.839416 | 0.779765 | 0.01704 | 0 | 0.019048 | 0 | 0.009524 | 0.153722 | 0.005649 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0.038095 | 0.095238 | 0 | 0.171429 | 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 |
fce0375babdffaec108464100e4d42cc1e0f5f14 | 364 | py | Python | FastSimulation/CTPPSSimHitProducer/python/CTPPSSimHitProducer_cfi.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | FastSimulation/CTPPSSimHitProducer/python/CTPPSSimHitProducer_cfi.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | FastSimulation/CTPPSSimHitProducer/python/CTPPSSimHitProducer_cfi.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | import FWCore.ParameterSet.Config as cms
CTPPSSimHits = cms.EDProducer('CTPPSSimHitProducer',
MCEvent = cms.untracked.InputTag("LHCTransport"),
Z_Tracker1 = cms.double(203.827),# first tracker z position in m
Z_Tracker2 = cms.double(212.550),# second tracker z position in m
Z_Timing = cms.double(215... | 33.090909 | 71 | 0.730769 | 51 | 364 | 5.156863 | 0.607843 | 0.102662 | 0.125475 | 0.136882 | 0.152091 | 0.152091 | 0 | 0 | 0 | 0 | 0 | 0.066007 | 0.167582 | 364 | 10 | 72 | 36.4 | 0.80198 | 0.258242 | 0 | 0 | 0 | 0 | 0.116541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fce41f5398739ee51c0146bd32f70e90c45cd487 | 10,999 | py | Python | app/api/v1/resources/deregdevice.py | a-wakeel/Device-Registration-Subsystem | dd9fa387e2087a6ccea9676303debe640bd99422 | [
"Unlicense"
] | 6 | 2018-11-07T12:41:30.000Z | 2020-04-12T18:07:03.000Z | app/api/v1/resources/deregdevice.py | a-wakeel/Device-Registration-Subsystem | dd9fa387e2087a6ccea9676303debe640bd99422 | [
"Unlicense"
] | 1 | 2020-10-20T12:33:18.000Z | 2020-10-20T12:33:18.000Z | app/api/v1/resources/deregdevice.py | a-wakeel/Device-Registration-Subsystem | dd9fa387e2087a6ccea9676303debe640bd99422 | [
"Unlicense"
] | 10 | 2018-11-12T06:15:19.000Z | 2021-11-18T05:45:12.000Z | """
DRS De-Registration device resource package.
Copyright (c) 2018-2020 Qualcomm Technologies, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met:
... | 62.851429 | 844 | 0.638967 | 1,268 | 10,999 | 5.363565 | 0.227918 | 0.020585 | 0.026761 | 0.03823 | 0.58609 | 0.553301 | 0.553301 | 0.553301 | 0.536833 | 0.536833 | 0 | 0.002033 | 0.284389 | 10,999 | 174 | 845 | 63.212644 | 0.862025 | 0.224566 | 0 | 0.691781 | 0 | 0 | 0.097776 | 0.007413 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020548 | false | 0 | 0.09589 | 0 | 0.212329 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fce42dcc84df1e368c75a961a2e92119ffaf9405 | 3,193 | py | Python | fixedfield-to-csv.py | curtisalexander/fixedfield-to-csv | 57ef87ed698321bb700ed2a2f4dafe07d6a7213d | [
"MIT"
] | null | null | null | fixedfield-to-csv.py | curtisalexander/fixedfield-to-csv | 57ef87ed698321bb700ed2a2f4dafe07d6a7213d | [
"MIT"
] | null | null | null | fixedfield-to-csv.py | curtisalexander/fixedfield-to-csv | 57ef87ed698321bb700ed2a2f4dafe07d6a7213d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import csv
from itertools import compress
from struct import Struct
def check_ctl(incsv):
"""Check the Length variable within the control file.
Length = Start - End + 1
"""
with open(incsv, 'rU') as f:
csv_reader = csv.DictReader(f)
for row in csv_reader:
... | 37.127907 | 108 | 0.606953 | 448 | 3,193 | 4.167411 | 0.332589 | 0.06481 | 0.048206 | 0.067488 | 0.23353 | 0.203535 | 0.151044 | 0.085699 | 0.043921 | 0.043921 | 0 | 0.016927 | 0.296899 | 3,193 | 85 | 109 | 37.564706 | 0.814699 | 0.347635 | 0 | 0.095238 | 0 | 0 | 0.083881 | 0.060637 | 0 | 0 | 0 | 0 | 0.02381 | 1 | 0.142857 | false | 0 | 0.119048 | 0.047619 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fce46c304276b9b24990e4e0366dffce626e8138 | 1,515 | py | Python | bumblebee/core/respadapter.py | nosoyyo/bumblebee | 60452b03b2cd255ae4582a830b463fe7183e209e | [
"Apache-2.0"
] | null | null | null | bumblebee/core/respadapter.py | nosoyyo/bumblebee | 60452b03b2cd255ae4582a830b463fe7183e209e | [
"Apache-2.0"
] | null | null | null | bumblebee/core/respadapter.py | nosoyyo/bumblebee | 60452b03b2cd255ae4582a830b463fe7183e209e | [
"Apache-2.0"
] | null | null | null | __doc__ = 'for adapting 3 main types of resp: requests, baidubce & bumblebee'
import json
from requests import Response as RequestsResponse
from utils.bce import BceResponse
from utils import SelfAssemblingClass
class GeneralResp():
'''
0. if everything is ok, directly access this for json
1. if somethi... | 34.431818 | 78 | 0.590759 | 158 | 1,515 | 5.512658 | 0.506329 | 0.064294 | 0.041332 | 0.061998 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002962 | 0.331353 | 1,515 | 43 | 79 | 35.232558 | 0.856861 | 0.128713 | 0 | 0 | 0 | 0 | 0.158805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.035714 | 0.142857 | 0.035714 | 0.428571 | 0.178571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fce6cd181284a407deac3e65af5c7526a1141077 | 698 | py | Python | scripts/hotandcold.py | jkutner/minecraft-python-server | 9c09ffb6fb0001d89100d7f5b55c5a682a7ff81f | [
"MIT"
] | null | null | null | scripts/hotandcold.py | jkutner/minecraft-python-server | 9c09ffb6fb0001d89100d7f5b55c5a682a7ff81f | [
"MIT"
] | null | null | null | scripts/hotandcold.py | jkutner/minecraft-python-server | 9c09ffb6fb0001d89100d7f5b55c5a682a7ff81f | [
"MIT"
] | 1 | 2021-01-02T16:16:56.000Z | 2021-01-02T16:16:56.000Z | from mcpi.minecraft import Minecraft
import math
import time
import random
import pycraft
mc = pycraft.new_minecraft()
destX = random.randint(-127, 127)
destZ = random.randint(-127, 127)
destY = mc.getHeight(destX, destZ)
block = 57
mc.setBlock(destX, destY, destZ, block)
mc.postToChat("Block set")
while True:
pos ... | 21.8125 | 66 | 0.696275 | 100 | 698 | 4.85 | 0.48 | 0.173196 | 0.065979 | 0.078351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046075 | 0.160458 | 698 | 32 | 67 | 21.8125 | 0.78157 | 0 | 0 | 0 | 0 | 0 | 0.067239 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.178571 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fce82e902ad945e4eaa9e4c10493543217fafc73 | 2,368 | py | Python | fuzzinator/tracker/bugzilla.py | elecro/fuzzinator | 2ed30127c364d50af960ad9f5cecbbae5cde2381 | [
"BSD-3-Clause"
] | null | null | null | fuzzinator/tracker/bugzilla.py | elecro/fuzzinator | 2ed30127c364d50af960ad9f5cecbbae5cde2381 | [
"BSD-3-Clause"
] | null | null | null | fuzzinator/tracker/bugzilla.py | elecro/fuzzinator | 2ed30127c364d50af960ad9f5cecbbae5cde2381 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2016-2018 Renata Hodovan, Akos Kiss.
#
# Licensed under the BSD 3-Clause License
# <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>.
# This file may not be copied, modified, or distributed except
# according to those terms.
import os
from bugzilla import *
from .base import BaseTracker
... | 36.430769 | 106 | 0.559122 | 249 | 2,368 | 5.192771 | 0.465863 | 0.083527 | 0.015468 | 0.021655 | 0.035576 | 0.035576 | 0 | 0 | 0 | 0 | 0 | 0.006456 | 0.345861 | 2,368 | 64 | 107 | 37 | 0.828276 | 0.127534 | 0 | 0 | 0 | 0 | 0.047133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162791 | false | 0.046512 | 0.069767 | 0.069767 | 0.395349 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fceb36dd10a7c2e8d6eea587eff7fe47021932ef | 3,741 | py | Python | HW2/gradebook_202101-14765_HW20220Assignment_2021-03-11-18-59-42/Libraries/HT_natural_convection.py | CarlGriffinsteed/UVM-ME144-Heat-Transfer | 9c477449d6ba5d6a9ee7c57f1c0ed4aab0ce4cca | [
"CC-BY-3.0"
] | 7 | 2017-06-02T20:31:22.000Z | 2021-04-05T13:52:33.000Z | HW2/gradebook_202101-14765_HW20220Assignment_2021-03-11-18-59-42/Libraries/HT_natural_convection.py | CarlGriffinsteed/UVM-ME144-Heat-Transfer | 9c477449d6ba5d6a9ee7c57f1c0ed4aab0ce4cca | [
"CC-BY-3.0"
] | null | null | null | HW2/gradebook_202101-14765_HW20220Assignment_2021-03-11-18-59-42/Libraries/HT_natural_convection.py | CarlGriffinsteed/UVM-ME144-Heat-Transfer | 9c477449d6ba5d6a9ee7c57f1c0ed4aab0ce4cca | [
"CC-BY-3.0"
] | 9 | 2019-01-24T17:43:41.000Z | 2021-07-25T18:08:34.000Z | """
Object name: HorizontalCylinder
Functions: Gr(g,beta,DT,D,nu) gives the Grashoff number based on:
gravity g, thermal expansion coefficient beta, Temperature difference DT,
length scale D, viscosity nu
Ra(g,beta,DT,D,nu,alpha) gives the Rayleigh number where alpha is the thermal ... | 35.971154 | 102 | 0.493718 | 506 | 3,741 | 3.626482 | 0.254941 | 0.039237 | 0.091553 | 0.035967 | 0.531335 | 0.518256 | 0.474659 | 0.474659 | 0.474659 | 0.431608 | 0 | 0.071336 | 0.377974 | 3,741 | 103 | 103 | 36.320388 | 0.717232 | 0.260893 | 0 | 0.287671 | 0 | 0 | 0.129008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054795 | false | 0 | 0.041096 | 0.027397 | 0.150685 | 0.123288 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fced7903bc90aa448acbe8f9d949ea135dc54660 | 3,765 | py | Python | bdd/contact_steps.py | Nadezhda-Sokolova/Python_training_from_software-testing.ru | 5ce65cee1d538dc5d0b25beba67547b32e612a10 | [
"Apache-2.0"
] | null | null | null | bdd/contact_steps.py | Nadezhda-Sokolova/Python_training_from_software-testing.ru | 5ce65cee1d538dc5d0b25beba67547b32e612a10 | [
"Apache-2.0"
] | null | null | null | bdd/contact_steps.py | Nadezhda-Sokolova/Python_training_from_software-testing.ru | 5ce65cee1d538dc5d0b25beba67547b32e612a10 | [
"Apache-2.0"
] | null | null | null | from pytest_bdd import given, when, then
from model.contact import Contact
import random
@given('a contact list')
def contact_list(db):
return db.get_contacts_list()
@given('a contact with <first_name>, <last_name>, <address>, <home_phone>, <work_phone>, <mobile_phone>, <fax>, <mail_1>, <mail_2> and <mail_3>')
de... | 46.481481 | 160 | 0.705976 | 558 | 3,765 | 4.448029 | 0.168459 | 0.079774 | 0.048348 | 0.061241 | 0.560435 | 0.500806 | 0.420629 | 0.39726 | 0.383562 | 0.383562 | 0 | 0.015324 | 0.185392 | 3,765 | 80 | 161 | 47.0625 | 0.793935 | 0 | 0 | 0.306452 | 0 | 0.016129 | 0.176674 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 1 | 0.16129 | false | 0 | 0.048387 | 0.048387 | 0.274194 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fceeb5c97dcacc7efd221c426aaa56e4566fd2c1 | 3,050 | py | Python | tests/validate_mcts.py | hdelecki/AdaptiveStressTestingToolbox | 184d7d7f1b4acb65eecb749e3c3a78cbcfc3c4ed | [
"MIT"
] | 29 | 2019-01-09T23:56:35.000Z | 2022-03-18T03:41:10.000Z | tests/validate_mcts.py | hdelecki/AdaptiveStressTestingToolbox | 184d7d7f1b4acb65eecb749e3c3a78cbcfc3c4ed | [
"MIT"
] | 39 | 2019-01-10T00:32:26.000Z | 2022-03-12T00:29:05.000Z | tests/validate_mcts.py | hdelecki/AdaptiveStressTestingToolbox | 184d7d7f1b4acb65eecb749e3c3a78cbcfc3c4ed | [
"MIT"
] | 11 | 2019-01-10T08:11:47.000Z | 2021-12-28T15:56:02.000Z | from examples.AV.example_runner_mcts_av import runner as mcts_runner
def validate_mcts():
# Overall settings
max_path_length = 50
s_0 = [0.0, -4.0, 1.0, 11.17, -35.0]
base_log_dir = './data'
# experiment settings
run_experiment_args = {'snapshot_mode': 'last',
'snaps... | 31.770833 | 102 | 0.475738 | 325 | 3,050 | 4.049231 | 0.295385 | 0.041033 | 0.079027 | 0.036474 | 0.266717 | 0.209726 | 0.148936 | 0.103343 | 0.045593 | 0.045593 | 0 | 0.034659 | 0.422951 | 3,050 | 95 | 103 | 32.105263 | 0.713068 | 0.047541 | 0 | 0.085714 | 0 | 0 | 0.162349 | 0.009326 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014286 | false | 0 | 0.014286 | 0 | 0.042857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcf41308fbf0ea2ddf14fd935e69cbfa21da77dc | 1,274 | py | Python | SocialDistanceDetector/loggingModule.py | Rankush888/Social-Distancing-Detector | e4a73ad84c63a6152fefdf9606ccf8850be7d629 | [
"MIT"
] | null | null | null | SocialDistanceDetector/loggingModule.py | Rankush888/Social-Distancing-Detector | e4a73ad84c63a6152fefdf9606ccf8850be7d629 | [
"MIT"
] | null | null | null | SocialDistanceDetector/loggingModule.py | Rankush888/Social-Distancing-Detector | e4a73ad84c63a6152fefdf9606ccf8850be7d629 | [
"MIT"
] | null | null | null | try:
import logging
import os
except BaseException:
print('Exception got in importing the module.')
class makeLog:
def __init__(self):
current_dir = os.getcwd()
if 'log_files' in os.listdir(current_dir):
path = os.path.join(current_dir, 'log_files\\')
... | 28.954545 | 66 | 0.530612 | 134 | 1,274 | 4.932836 | 0.358209 | 0.1059 | 0.1059 | 0.151286 | 0.444781 | 0.444781 | 0.360061 | 0.360061 | 0.263238 | 0.263238 | 0 | 0 | 0.358713 | 1,274 | 43 | 67 | 29.627907 | 0.809058 | 0 | 0 | 0.363636 | 0 | 0 | 0.112916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.30303 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcf6780f79287563663f060074514f87c285483f | 1,618 | py | Python | modelzoo/SOK/DLRM/data/bin2bin.py | aalbersk/DeepRec | f673a950780959b44dcda99398880a1d883ab338 | [
"Apache-2.0"
] | 292 | 2021-12-24T03:24:33.000Z | 2022-03-31T15:41:05.000Z | modelzoo/SOK/DLRM/data/bin2bin.py | aalbersk/DeepRec | f673a950780959b44dcda99398880a1d883ab338 | [
"Apache-2.0"
] | 54 | 2021-12-24T06:40:09.000Z | 2022-03-30T07:57:24.000Z | modelzoo/SOK/DLRM/data/bin2bin.py | aalbersk/DeepRec | f673a950780959b44dcda99398880a1d883ab338 | [
"Apache-2.0"
] | 75 | 2021-12-24T04:48:21.000Z | 2022-03-29T10:13:39.000Z | import os
import argparse
import time
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('input', type=str)
parser.add_argument('output', type=str)
args = parser.parse_args()
os.makedirs(args.output)
size = os.path.getsize(args.input)
assert(size % 160 == 0... | 29.962963 | 120 | 0.592089 | 231 | 1,618 | 3.939394 | 0.285714 | 0.026374 | 0.023077 | 0.036264 | 0.145055 | 0.082418 | 0.082418 | 0 | 0 | 0 | 0 | 0.049622 | 0.265142 | 1,618 | 54 | 121 | 29.962963 | 0.715728 | 0 | 0 | 0 | 0 | 0.02439 | 0.083385 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 1 | 0 | false | 0 | 0.073171 | 0 | 0.073171 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcf7b3bbe71b81f791bb6c3c67628d01ea766d4a | 836 | py | Python | aes_classifier/helpers/database_importer.py | tinenbruno/aes_classifier | 31d358c4e34a056cf67a5e602ad945011283a6ed | [
"MIT"
] | null | null | null | aes_classifier/helpers/database_importer.py | tinenbruno/aes_classifier | 31d358c4e34a056cf67a5e602ad945011283a6ed | [
"MIT"
] | null | null | null | aes_classifier/helpers/database_importer.py | tinenbruno/aes_classifier | 31d358c4e34a056cf67a5e602ad945011283a6ed | [
"MIT"
] | null | null | null | from ml_buff.models.input_data import InputData
from ml_buff.database_helper import create_tables, drop_tables
from ml_buff.models.base_model import database
DATABASE = {
'drivername': 'postgresql',
'host': 'localhost',
'port': '5432',
'username': 'postgres',
'password': 'postgr... | 26.125 | 73 | 0.671053 | 106 | 836 | 5.084906 | 0.537736 | 0.092764 | 0.055659 | 0.059369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019006 | 0.181818 | 836 | 31 | 74 | 26.967742 | 0.769006 | 0 | 0 | 0 | 0 | 0 | 0.206938 | 0.029904 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.043478 | 0.130435 | 0 | 0.130435 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcf7d278277033217c65b945fa153e84b5082b8a | 9,050 | py | Python | title_screen.py | matthew-sirman/mongoose-game | 02751a85c3849ddb9da48414e165363a6d8a931e | [
"Unlicense"
] | null | null | null | title_screen.py | matthew-sirman/mongoose-game | 02751a85c3849ddb9da48414e165363a6d8a931e | [
"Unlicense"
] | null | null | null | title_screen.py | matthew-sirman/mongoose-game | 02751a85c3849ddb9da48414e165363a6d8a931e | [
"Unlicense"
] | null | null | null | import pygame
import socket
import errno
import threading
from button import Button
from text import Text, TextFeed
from textbox import TextBox
from message import Message
from instructions import Instruction
from cards import Deck, Card
class TitleScreen:
UPDATE_FREQUENCY = 1000
def __init__(self, screen_si... | 35.351563 | 119 | 0.572376 | 1,062 | 9,050 | 4.560264 | 0.188324 | 0.047491 | 0.066488 | 0.055751 | 0.367128 | 0.305389 | 0.230436 | 0.206484 | 0.186661 | 0.186661 | 0 | 0.029812 | 0.318011 | 9,050 | 255 | 120 | 35.490196 | 0.754861 | 0.020884 | 0 | 0.223464 | 0 | 0 | 0.067073 | 0.006775 | 0 | 0 | 0 | 0 | 0.011173 | 1 | 0.050279 | false | 0 | 0.055866 | 0 | 0.139665 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcf84360ff359b57ca0fd18707821b983a769abc | 1,357 | py | Python | tests/tests.py | CoderOJ/RLJ | 20bb7ffd1581bf8cf820e0f594b63d2760ea721c | [
"MIT"
] | 45 | 2017-11-19T06:54:07.000Z | 2022-03-21T14:44:42.000Z | tests/tests.py | CoderOJ/RLJ | 20bb7ffd1581bf8cf820e0f594b63d2760ea721c | [
"MIT"
] | 6 | 2017-12-12T05:33:16.000Z | 2018-08-28T12:30:50.000Z | tests/tests.py | CoderOJ/RLJ | 20bb7ffd1581bf8cf820e0f594b63d2760ea721c | [
"MIT"
] | 12 | 2017-12-12T04:43:04.000Z | 2022-02-23T00:13:47.000Z | # import pytest
from rlj import Judge, JudgeStatus, Config, makeConfig
import os
arguments = {
'--O2': False,
'--delete': False,
'--genConfig': False,
'--help': False,
'--silent': False,
'--version': False,
'-c': 'config.yml',
'-j': None,
'FILE': None
}
def getConfig(st):
new... | 23.396552 | 64 | 0.585851 | 173 | 1,357 | 4.479769 | 0.369942 | 0.117419 | 0.098065 | 0.061935 | 0.28129 | 0.28129 | 0.28129 | 0.229677 | 0.229677 | 0.131613 | 0 | 0.032505 | 0.229182 | 1,357 | 57 | 65 | 23.807018 | 0.708413 | 0.00958 | 0 | 0.181818 | 0 | 0 | 0.127422 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 1 | 0.113636 | false | 0 | 0.045455 | 0 | 0.181818 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcfade839bbd2f518955cd01678b3f38bc653fa2 | 18,424 | py | Python | adventure.py | brianquinlan/2016-christmas-adventure | 40558968765a585414bb1c5b284e716dd4981957 | [
"MIT"
] | null | null | null | adventure.py | brianquinlan/2016-christmas-adventure | 40558968765a585414bb1c5b284e716dd4981957 | [
"MIT"
] | null | null | null | adventure.py | brianquinlan/2016-christmas-adventure | 40558968765a585414bb1c5b284e716dd4981957 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import itertools
import random
import subprocess
import sys
WELCOME_TEXT = """Welcome {name} to the land of Pavlisha.
Many have entered this land but few have returned.
Your quest is to slay the Bad King, who has stolen the Clock of Time. Without
the Clock of Time it will be 2016 forever and ... | 31.174281 | 104 | 0.651162 | 2,644 | 18,424 | 4.475794 | 0.238654 | 0.038449 | 0.01014 | 0.015379 | 0.163427 | 0.114163 | 0.069461 | 0.052391 | 0.036843 | 0.027632 | 0 | 0.016367 | 0.250543 | 18,424 | 590 | 105 | 31.227119 | 0.840672 | 0.003908 | 0 | 0.229581 | 0 | 0.002208 | 0.458859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039735 | false | 0.002208 | 0.00883 | 0.004415 | 0.094923 | 0.143488 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcfb1989c996cbe167fe37e33ab960b7feff5dd5 | 7,649 | py | Python | wax/modules/online_supervised_learner_test.py | eserie/wax-ml | 9cf92ff5c41ea681fd3eaaf4560b3380f986ee1e | [
"MIT",
"ECL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | 42 | 2021-06-14T16:27:54.000Z | 2022-03-23T09:51:42.000Z | wax/modules/online_supervised_learner_test.py | eserie/wax-ml | 9cf92ff5c41ea681fd3eaaf4560b3380f986ee1e | [
"MIT",
"ECL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2021-10-01T12:45:29.000Z | 2021-10-03T18:06:39.000Z | wax/modules/online_supervised_learner_test.py | eserie/wax-ml | 9cf92ff5c41ea681fd3eaaf4560b3380f986ee1e | [
"MIT",
"ECL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | 5 | 2021-06-11T12:32:41.000Z | 2022-02-17T16:13:15.000Z | # Copyright 2021 The WAX-ML Authors
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 31.093496 | 127 | 0.676298 | 1,142 | 7,649 | 4.410683 | 0.236427 | 0.01489 | 0.011912 | 0.011912 | 0.415922 | 0.389915 | 0.341672 | 0.335517 | 0.302164 | 0.302164 | 0 | 0.01403 | 0.226566 | 7,649 | 245 | 128 | 31.220408 | 0.83739 | 0.377173 | 0 | 0.534351 | 0 | 0 | 0.006145 | 0 | 0 | 0 | 0 | 0 | 0.076336 | 1 | 0.137405 | false | 0 | 0.061069 | 0.068702 | 0.312977 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
fcfc2b1fb4d4ad2e27520f6caefbdcadcd160c6c | 2,814 | py | Python | src/cvhelpers/visualization/objects.py | yewzijian/RegTR | 64e5b3f0ccc1e1a11b514eb22734959d32e0cec6 | [
"MIT"
] | 25 | 2022-03-28T06:26:16.000Z | 2022-03-30T14:21:24.000Z | src/cvhelpers/visualization/objects.py | yewzijian/RegTR | 64e5b3f0ccc1e1a11b514eb22734959d32e0cec6 | [
"MIT"
] | null | null | null | src/cvhelpers/visualization/objects.py | yewzijian/RegTR | 64e5b3f0ccc1e1a11b514eb22734959d32e0cec6 | [
"MIT"
] | 2 | 2022-03-29T09:37:50.000Z | 2022-03-30T06:26:35.000Z | """Functions to create objects to add to the visualizer"""
import numpy as np
import torch
from .vtk_object import VTKObject
def _convert_torch_to_numpy(arr):
"""If arr is torch.Tensor, return the numpy equivalent, else return arr
as it is"""
if isinstance(arr, torch.Tensor):
arr = arr.detach().... | 26.299065 | 80 | 0.672708 | 417 | 2,814 | 4.453237 | 0.33813 | 0.01077 | 0.072698 | 0.077544 | 0.054927 | 0.019386 | 0 | 0 | 0 | 0 | 0 | 0.021838 | 0.218905 | 2,814 | 106 | 81 | 26.54717 | 0.823021 | 0.344705 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.055556 | 0 | 0.425926 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |