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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b23982f8407dbc3483413856c393b975fe3673ad | 2,549 | py | Python | src/selfie_app_communication/scripts/app_communication.py | KNR-Selfie/selfie_carolocup2020 | 5d6331962e4752c9e9c4fcc88ebd3093e4d96b85 | [
"BSD-3-Clause"
] | 10 | 2019-08-17T14:50:13.000Z | 2021-07-19T17:21:13.000Z | src/selfie_app_communication/scripts/app_communication.py | KNR-Selfie/selfie_carolocup2020 | 5d6331962e4752c9e9c4fcc88ebd3093e4d96b85 | [
"BSD-3-Clause"
] | 16 | 2019-05-27T18:50:09.000Z | 2020-02-11T00:23:50.000Z | src/selfie_app_communication/scripts/app_communication.py | KNR-Selfie/selfie_carolocup2020 | 5d6331962e4752c9e9c4fcc88ebd3093e4d96b85 | [
"BSD-3-Clause"
] | 3 | 2020-01-21T15:03:24.000Z | 2021-05-02T06:40:50.000Z | #!/usr/bin/env python3
import rospy
import bluetooth as bt
import select
import threading
from std_srvs.srv import Empty
import dynamic_reconfigure.client
from struct import pack, unpack
class Communicator:
def __init__(self):
self.connections = []
self.port = 1
self.server_socket = bt.Bluet... | 35.901408 | 119 | 0.540212 | 255 | 2,549 | 5.301961 | 0.407843 | 0.059172 | 0.094675 | 0.032544 | 0.118343 | 0.06213 | 0.048817 | 0.048817 | 0.048817 | 0.048817 | 0 | 0.026458 | 0.347587 | 2,549 | 70 | 120 | 36.414286 | 0.78653 | 0.026285 | 0 | 0.178571 | 0 | 0 | 0.068255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b243a336db4269635e3dab81dcd231ee8d7ff004 | 739 | py | Python | syma/__init__.py | rooterkyberian/syma | 47cda602b6a8bb9e52dad14af468c6742311b0fb | [
"MIT"
] | 3 | 2020-11-11T23:41:46.000Z | 2022-01-07T12:50:18.000Z | syma/__init__.py | rooterkyberian/syma | 47cda602b6a8bb9e52dad14af468c6742311b0fb | [
"MIT"
] | null | null | null | syma/__init__.py | rooterkyberian/syma | 47cda602b6a8bb9e52dad14af468c6742311b0fb | [
"MIT"
] | 1 | 2020-04-16T16:30:41.000Z | 2020-04-16T16:30:41.000Z | import operator
from functools import reduce
MSG_LEN = 27
IDLE = bytes.fromhex("436d640001001200010404000a000000808080802020202000550f")
CMD_PREFIX = IDLE[:-11]
def _c(cmd: str) -> bytes:
data = bytes.fromhex(cmd)
assert len(data) == MSG_LEN - len(CMD_PREFIX)
return CMD_PREFIX + data
def checksum(msg: ... | 25.482759 | 78 | 0.688769 | 87 | 739 | 5.701149 | 0.505747 | 0.03629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.288815 | 0.189445 | 739 | 28 | 79 | 26.392857 | 0.539232 | 0 | 0 | 0 | 0 | 0 | 0.227334 | 0.221922 | 0 | 0 | 0.016238 | 0 | 0.047619 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.619048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2466a83bc0cd6957099e8d87c2c1e1f3fa86f4c | 1,373 | py | Python | src/news_posts/migrations/0001_initial.py | Zencrazycat/news_board | 567824182434bd0aacc13695679210e172082929 | [
"MIT"
] | null | null | null | src/news_posts/migrations/0001_initial.py | Zencrazycat/news_board | 567824182434bd0aacc13695679210e172082929 | [
"MIT"
] | 3 | 2021-06-04T23:48:02.000Z | 2022-02-10T10:24:46.000Z | src/news_posts/migrations/0001_initial.py | amediantsev/news_board | 567824182434bd0aacc13695679210e172082929 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.10 on 2020-05-29 06:33
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
... | 36.131579 | 133 | 0.586307 | 140 | 1,373 | 5.642857 | 0.464286 | 0.04557 | 0.072152 | 0.091139 | 0.459494 | 0.425316 | 0.341772 | 0.341772 | 0.341772 | 0.2 | 0 | 0.029087 | 0.273853 | 1,373 | 37 | 134 | 37.108108 | 0.76329 | 0.033503 | 0 | 0.466667 | 1 | 0 | 0.078491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.233333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b24c173c5ec1ffa24f82a979366facf3c9890e66 | 1,705 | py | Python | kafka_utils/kafka_rolling_restart/task.py | dbgrigsby/kafka-utils | 4cf4500d4aeea872846269d410cc7dd70a31e00d | [
"Apache-2.0"
] | 302 | 2016-05-18T02:05:04.000Z | 2022-03-28T21:36:28.000Z | kafka_utils/kafka_rolling_restart/task.py | dbgrigsby/kafka-utils | 4cf4500d4aeea872846269d410cc7dd70a31e00d | [
"Apache-2.0"
] | 135 | 2016-05-17T23:15:16.000Z | 2021-11-04T13:35:51.000Z | kafka_utils/kafka_rolling_restart/task.py | dbgrigsby/kafka-utils | 4cf4500d4aeea872846269d410cc7dd70a31e00d | [
"Apache-2.0"
] | 133 | 2016-05-18T10:23:05.000Z | 2022-01-29T17:24:17.000Z | # -*- coding: utf-8 -*-
# Copyright 2016 Yelp Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 28.416667 | 82 | 0.668035 | 233 | 1,705 | 4.83691 | 0.545064 | 0.053239 | 0.02307 | 0.028394 | 0.078083 | 0.040816 | 0.040816 | 0 | 0 | 0 | 0 | 0.007064 | 0.252786 | 1,705 | 59 | 83 | 28.898305 | 0.877551 | 0.61173 | 0 | 0.111111 | 0 | 0 | 0.041071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.111111 | 0.111111 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b24f3233a4003e4d8ebad9c8f1539260f0716cef | 1,030 | py | Python | ba5g-edit-distance/edit_distance.py | kjco/bioinformatics-algorithms | 3c466157b89c1cbd54749563e39d86a307d7a3f3 | [
"MIT"
] | null | null | null | ba5g-edit-distance/edit_distance.py | kjco/bioinformatics-algorithms | 3c466157b89c1cbd54749563e39d86a307d7a3f3 | [
"MIT"
] | null | null | null | ba5g-edit-distance/edit_distance.py | kjco/bioinformatics-algorithms | 3c466157b89c1cbd54749563e39d86a307d7a3f3 | [
"MIT"
] | null | null | null | ##str1 = 'PLEASANTLY'
##str2 = 'MEANLY'
with open('dataset_77_3.txt','r') as f:
str1 = f.readline().strip()
str2 = f.readline().strip()
# Initialize the matrix
m = [[0 for j in range(len(str2)+1)] for i in range(len(str1)+1)]
#b = [[0 for j in range(len(str2)+1)] for i in range(len(str1)+1)]
# m =... | 23.953488 | 67 | 0.453398 | 211 | 1,030 | 2.203791 | 0.165877 | 0.068817 | 0.064516 | 0.068817 | 0.47957 | 0.455914 | 0.427957 | 0.354839 | 0.292473 | 0.245161 | 0 | 0.087193 | 0.287379 | 1,030 | 42 | 68 | 24.52381 | 0.546322 | 0.293204 | 0 | 0 | 0 | 0 | 0.02526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2510fadb2eb61d3227009179d20f375e43abe00 | 687 | py | Python | concurrence/download_by_multi_process.py | dnxbjyj/python-basic | 14cba06cd84715ebb8acc6dd3cef84789316d81e | [
"MIT"
] | 3 | 2018-03-19T07:57:10.000Z | 2021-07-05T08:55:14.000Z | concurrence/download_by_multi_process.py | dnxbjyj/python-basic | 14cba06cd84715ebb8acc6dd3cef84789316d81e | [
"MIT"
] | 6 | 2020-03-24T15:40:18.000Z | 2021-12-13T19:46:09.000Z | concurrence/download_by_multi_process.py | dnxbjyj/python-basic | 14cba06cd84715ebb8acc6dd3cef84789316d81e | [
"MIT"
] | 4 | 2018-03-29T21:59:55.000Z | 2019-12-16T14:56:38.000Z | # coding:utf-8
# 使用多进程下载多个网页
import requests
from utils import urls,fn_timer
from multiprocessing import Process,Pool
def download_page(url):
resp = requests.get(url)
return resp
# 使用进程池下载多个网页的内容
@fn_timer
def download_using_process_pool(urls):
# 创建一个进程池,数字表示一次性同时执行的最大子进程数
pool = Pool(20... | 23.689655 | 67 | 0.669578 | 85 | 687 | 5.2 | 0.564706 | 0.074661 | 0.090498 | 0.108597 | 0.126697 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007533 | 0.227074 | 687 | 29 | 68 | 23.689655 | 0.824859 | 0.131004 | 0 | 0 | 0 | 0 | 0.115453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b258a42563e439361a8eff9ac78241772b4182aa | 616 | py | Python | test/on_yubikey/test_cli_openpgp.py | amake/yubikey-manager | ba049e1454a2435e4772b17fec88785a50373cf9 | [
"BSD-2-Clause"
] | null | null | null | test/on_yubikey/test_cli_openpgp.py | amake/yubikey-manager | ba049e1454a2435e4772b17fec88785a50373cf9 | [
"BSD-2-Clause"
] | null | null | null | test/on_yubikey/test_cli_openpgp.py | amake/yubikey-manager | ba049e1454a2435e4772b17fec88785a50373cf9 | [
"BSD-2-Clause"
] | null | null | null | import unittest
from .framework import cli_test_suite
@cli_test_suite
def additional_tests(ykman_cli):
class TestOpenPGP(unittest.TestCase):
def setUp(self):
ykman_cli('openpgp', 'reset', '-f')
def test_openpgp_info(self):
output = ykman_cli('openpgp', 'info')
... | 26.782609 | 79 | 0.605519 | 70 | 616 | 5.142857 | 0.5 | 0.088889 | 0.125 | 0.111111 | 0.213889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287338 | 616 | 22 | 80 | 28 | 0.820046 | 0 | 0 | 0 | 0 | 0 | 0.186688 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b271e0d5ab491b13fdf64fb293b655d5788d60b6 | 1,586 | py | Python | tests/bugs/core_5705_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | tests/bugs/core_5705_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | tests/bugs/core_5705_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | #coding:utf-8
#
# id: bugs.core_5705
# title: Store precision of DECFLOAT in RDB$FIELDS
# decription:
# Checked on LI-T4.0.0.940.
#
# tracker_id: CORE-5705
# min_versions: ['4.0']
# versions: 4.0
# qmid: None
import pytest
from firebird.qa import d... | 28.836364 | 199 | 0.505675 | 183 | 1,586 | 4.120219 | 0.420765 | 0.074271 | 0.06366 | 0.03183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067308 | 0.409836 | 1,586 | 54 | 200 | 29.37037 | 0.738248 | 0.180958 | 0 | 0.068966 | 0 | 0 | 0.624903 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.103448 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2791ccdd63125d34e1db117938edc008b393bf1 | 666 | py | Python | blogapp/admin.py | heyylateef/lateeflab | 4d7cdf3232eb22fe1151bd92beb04b7789cf9f71 | [
"MIT"
] | null | null | null | blogapp/admin.py | heyylateef/lateeflab | 4d7cdf3232eb22fe1151bd92beb04b7789cf9f71 | [
"MIT"
] | null | null | null | blogapp/admin.py | heyylateef/lateeflab | 4d7cdf3232eb22fe1151bd92beb04b7789cf9f71 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Blogpost
from django_summernote.admin import SummernoteModelAdmin
# class BlogpostAdmin(admin.ModelAdmin):
# list_display = ('title', 'slug', 'status','created_on')
# list_filter = ("status",)
# search_fields = ['title', 'content']
# prepopulated_fie... | 37 | 74 | 0.692192 | 68 | 666 | 6.588235 | 0.397059 | 0.044643 | 0.071429 | 0.089286 | 0.455357 | 0.339286 | 0.339286 | 0.339286 | 0.339286 | 0.339286 | 0 | 0 | 0.147147 | 666 | 17 | 75 | 39.176471 | 0.788732 | 0.324324 | 0 | 0 | 0 | 0 | 0.155405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b27954b971c6f4af62ab0162be0a40f0224898cf | 1,393 | py | Python | utilities/html_creator.py | nerji/FF-Bingo | b052df84914ce8becd3482c57b58c421417d699c | [
"MIT"
] | 1 | 2021-06-27T11:58:30.000Z | 2021-06-27T11:58:30.000Z | utilities/html_creator.py | nerji/FF-Bingo | b052df84914ce8becd3482c57b58c421417d699c | [
"MIT"
] | null | null | null | utilities/html_creator.py | nerji/FF-Bingo | b052df84914ce8becd3482c57b58c421417d699c | [
"MIT"
] | 5 | 2021-06-27T11:45:35.000Z | 2021-07-19T19:38:16.000Z | from bs4 import BeautifulSoup as bs
import json
import uuid
class htmlCreator:
def generate_html_file(self, jsonObject):
soup = self.__getTemplateFileData()
jsonData = json.loads(jsonObject)
self.__appendDivs(soup, jsonData)
self.__saveFile(soup)
def __saveFile(self, soup):
... | 28.428571 | 72 | 0.588658 | 146 | 1,393 | 5.472603 | 0.486301 | 0.035044 | 0.047559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00715 | 0.2972 | 1,393 | 48 | 73 | 29.020833 | 0.808989 | 0 | 0 | 0 | 1 | 0 | 0.113424 | 0.050969 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.085714 | 0 | 0.314286 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b279a8cd36a33f89ebfb400a1b617a2908cd7c52 | 10,755 | py | Python | BasicBlocksPyew/gcluster.py | JoeyJiao/peach | 661cb39034583a8cf1b02b56e6b409f2c7498e07 | [
"MIT"
] | 10 | 2017-06-18T19:40:23.000Z | 2022-03-09T08:09:44.000Z | BasicBlocksPyew/gcluster.py | JoeyJiao/peach | 661cb39034583a8cf1b02b56e6b409f2c7498e07 | [
"MIT"
] | 2 | 2019-07-01T12:39:41.000Z | 2020-11-09T11:40:54.000Z | BasicBlocksPyew/gcluster.py | JoeyJiao/peach | 661cb39034583a8cf1b02b56e6b409f2c7498e07 | [
"MIT"
] | 11 | 2016-07-01T02:21:06.000Z | 2020-11-23T08:29:22.000Z | #!/usr/bin/env python
"""
A program's clusterization tool based on Pyew
Copyright (C) 2010, Joxean Koret
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your... | 30.381356 | 180 | 0.531474 | 1,294 | 10,755 | 4.361669 | 0.215611 | 0.028349 | 0.01506 | 0.012048 | 0.267541 | 0.218994 | 0.194366 | 0.164422 | 0.142098 | 0.122962 | 0 | 0.037378 | 0.353231 | 10,755 | 353 | 181 | 30.467422 | 0.774008 | 0.01153 | 0 | 0.325926 | 0 | 0.003704 | 0.075055 | 0.019142 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011111 | null | null | 0.077778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b281cd9634961520545b8d0c8dae59fc97312f2d | 3,101 | py | Python | crawlster/helpers/http/requests.py | vladcalin/crawlster | 4cabc4e891a4491a9f06b59cab929c62dc501757 | [
"MIT"
] | 1 | 2017-01-13T23:14:31.000Z | 2017-01-13T23:14:31.000Z | crawlster/helpers/http/requests.py | vladcalin/crawlster | 4cabc4e891a4491a9f06b59cab929c62dc501757 | [
"MIT"
] | 5 | 2017-03-19T09:29:23.000Z | 2017-11-07T11:24:22.000Z | crawlster/helpers/http/requests.py | vladcalin/crawlster | 4cabc4e891a4491a9f06b59cab929c62dc501757 | [
"MIT"
] | 1 | 2017-03-19T13:48:16.000Z | 2017-03-19T13:48:16.000Z | import requests
import requests.auth
import requests.exceptions
from crawlster.helpers.base import BaseHelper
from crawlster.helpers.http.request import (
HttpRequest, GetRequest, PostRequest)
from crawlster.helpers.http.response import HttpResponse
class RequestsHelper(BaseHelper):
"""Helper for making HTTP... | 34.842697 | 76 | 0.629152 | 354 | 3,101 | 5.358757 | 0.240113 | 0.069584 | 0.047443 | 0.069584 | 0.240907 | 0.214549 | 0.114918 | 0.114391 | 0.074328 | 0.074328 | 0 | 0 | 0.272493 | 3,101 | 88 | 77 | 35.238636 | 0.840869 | 0.148984 | 0 | 0.071429 | 0 | 0 | 0.027548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.107143 | 0.035714 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b283b3375115673ec78b8def20315857e1dfb263 | 3,227 | py | Python | api/int_news/views.py | sp-team-lutsk/docker_polls_group | e59aa4d9b0b703e31046460a87a8b14d9e3f3d1e | [
"MIT"
] | null | null | null | api/int_news/views.py | sp-team-lutsk/docker_polls_group | e59aa4d9b0b703e31046460a87a8b14d9e3f3d1e | [
"MIT"
] | 18 | 2019-06-25T14:37:52.000Z | 2019-10-25T21:18:44.000Z | api/int_news/views.py | sp-team-lutsk/cyber_security_web_portal | e59aa4d9b0b703e31046460a87a8b14d9e3f3d1e | [
"MIT"
] | 2 | 2019-06-25T12:43:44.000Z | 2019-08-21T08:36:44.000Z | from rest_framework import status
from django.http import Http404
from rest_framework.response import Response
from rest_framework.views import APIView
from int_news.serializers import NewsIntSerializer
from int_news.models import NewsInt
from utils.decorators import permission, permissions
from ext_news.serializers im... | 36.258427 | 100 | 0.673381 | 366 | 3,227 | 5.797814 | 0.215847 | 0.065975 | 0.05278 | 0.049482 | 0.486805 | 0.392554 | 0.340245 | 0.295005 | 0.201697 | 0.201697 | 0 | 0.01071 | 0.218779 | 3,227 | 88 | 101 | 36.670455 | 0.831019 | 0 | 0 | 0.375 | 0 | 0 | 0.028819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.138889 | 0 | 0.569444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b28573be8000176bfd56ef3a77b39dce16b0b3c0 | 2,192 | py | Python | hdm/core/dao/netezza_jdbc.py | hashmapinc/hdm | a77872bb7a7d151b2a3f7474b15009cea09aa98f | [
"Apache-2.0"
] | 1 | 2021-02-09T00:40:40.000Z | 2021-02-09T00:40:40.000Z | hdm/core/dao/netezza_jdbc.py | hashmapinc/hdm | a77872bb7a7d151b2a3f7474b15009cea09aa98f | [
"Apache-2.0"
] | null | null | null | hdm/core/dao/netezza_jdbc.py | hashmapinc/hdm | a77872bb7a7d151b2a3f7474b15009cea09aa98f | [
"Apache-2.0"
] | null | null | null | # Copyright © 2020 Hashmap, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 42.980392 | 112 | 0.599909 | 251 | 2,192 | 5.119522 | 0.47012 | 0.046693 | 0.020233 | 0.024903 | 0.118288 | 0.093385 | 0 | 0 | 0 | 0 | 0 | 0.005141 | 0.290146 | 2,192 | 50 | 113 | 43.84 | 0.820051 | 0.251369 | 0 | 0 | 0 | 0 | 0.173748 | 0.079899 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.107143 | 0.142857 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b2935a9aedf21315f7e73b4f7a63abacf00dccec | 621 | py | Python | backend/app/server/routes/verify.py | MyrrhDev/SocioMark | dd2f61a17f999b203581919349becd20e4f1f1b5 | [
"MIT"
] | 10 | 2021-04-09T21:24:51.000Z | 2022-01-16T13:33:33.000Z | backend/app/server/routes/verify.py | MyrrhDev/SocioMark | dd2f61a17f999b203581919349becd20e4f1f1b5 | [
"MIT"
] | 67 | 2021-03-25T23:57:40.000Z | 2021-04-09T19:25:46.000Z | backend/app/server/routes/verify.py | MyrrhDev/SocioMark | dd2f61a17f999b203581919349becd20e4f1f1b5 | [
"MIT"
] | 10 | 2021-04-09T21:00:42.000Z | 2021-04-17T15:10:19.000Z | from fastapi import APIRouter, Body, Depends
from ..models.post import ResponseModel
from ..controllers.auth import auth_handler
from ..controllers.verify import verify_post
router = APIRouter()
@router.post("/", response_description="Verify the post's authenticity")
async def verify_post_data(post_id: str = Body(..... | 38.8125 | 114 | 0.768116 | 77 | 621 | 5.987013 | 0.506494 | 0.104121 | 0.117137 | 0.13449 | 0.186551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128824 | 621 | 15 | 115 | 41.4 | 0.852126 | 0 | 0 | 0 | 0 | 0 | 0.140097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b29a7a86205753662c5054bbd103d239da53d966 | 3,116 | py | Python | whapCloud.py | andregtorres/whatsapp-scripts | edbb364b087aebfdff10ad62ef310f5dae7d4c22 | [
"MIT"
] | null | null | null | whapCloud.py | andregtorres/whatsapp-scripts | edbb364b087aebfdff10ad62ef310f5dae7d4c22 | [
"MIT"
] | null | null | null | whapCloud.py | andregtorres/whatsapp-scripts | edbb364b087aebfdff10ad62ef310f5dae7d4c22 | [
"MIT"
] | null | null | null |
#!/usr/bin/env python
#Generates a wordcloud from a exported whatsapp chat
#3/06/2018
from os import path
from wordcloud import WordCloud, STOPWORDS, ImageColorGenerator
from PIL import Image
import emoji
import re
from datetime import datetime
import numpy as np
import matplotlib.pyplot as plt
#d = path.dirname(__f... | 24.730159 | 139 | 0.649872 | 442 | 3,116 | 4.522624 | 0.371041 | 0.18009 | 0.018009 | 0.01951 | 0.187094 | 0.12006 | 0.057029 | 0.034017 | 0.034017 | 0.034017 | 0 | 0.014815 | 0.176829 | 3,116 | 125 | 140 | 24.928 | 0.764522 | 0.241656 | 0 | 0.025641 | 1 | 0 | 0.086192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.102564 | 0 | 0.102564 | 0.012821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b29d7c4940049555cc3e710150901ab3a87331ac | 684 | py | Python | remind/migrations/0005_auto_20190320_0125.py | yejunzhou/quantserver | 4d9c8c396f7f17644211f95cee76ffc88efe4f0e | [
"Apache-2.0"
] | null | null | null | remind/migrations/0005_auto_20190320_0125.py | yejunzhou/quantserver | 4d9c8c396f7f17644211f95cee76ffc88efe4f0e | [
"Apache-2.0"
] | 2 | 2020-06-05T23:36:11.000Z | 2021-06-10T22:05:48.000Z | remind/migrations/0005_auto_20190320_0125.py | yejunzhou/quantserver | 4d9c8c396f7f17644211f95cee76ffc88efe4f0e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-03-19 17:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('remind', '0004_custom_cost'),
]
operations = [
migrations.AddField(
... | 26.307692 | 92 | 0.609649 | 75 | 684 | 5.333333 | 0.64 | 0.09 | 0.115 | 0.135 | 0.37 | 0.37 | 0.185 | 0 | 0 | 0 | 0 | 0.043738 | 0.26462 | 684 | 25 | 93 | 27.36 | 0.751491 | 0.096491 | 0 | 0.333333 | 1 | 0 | 0.136585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b29e4cb34ab985bfc9515c285410edc8179c6018 | 2,029 | py | Python | python/pyqt/pyqt5/sql_connect_sqlite.py | jeremiedecock/snippets | 4bd4e7f459eee610d5cf19f845299ca942ff4b64 | [
"MIT"
] | 23 | 2015-06-08T13:01:00.000Z | 2021-12-30T08:20:04.000Z | python/pyqt/pyqt5/sql_connect_sqlite.py | jeremiedecock/snippets | 4bd4e7f459eee610d5cf19f845299ca942ff4b64 | [
"MIT"
] | 1 | 2020-10-22T02:36:10.000Z | 2020-10-22T02:36:10.000Z | python/pyqt/pyqt5/sql_connect_sqlite.py | jeremiedecock/snippets | 4bd4e7f459eee610d5cf19f845299ca942ff4b64 | [
"MIT"
] | 7 | 2017-10-31T09:48:14.000Z | 2022-01-04T15:59:45.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (c) 2015 Jérémie DECOCK (http://www.jdhp.org)
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including witho... | 39.019231 | 101 | 0.736323 | 304 | 2,029 | 4.898026 | 0.585526 | 0.0591 | 0.017461 | 0.016118 | 0.036266 | 0.036266 | 0 | 0 | 0 | 0 | 0 | 0.013435 | 0.156235 | 2,029 | 51 | 102 | 39.784314 | 0.856308 | 0.81863 | 0 | 0 | 0 | 0 | 0.112426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b29f684eccc65ad452a73e4367b039e51adbdc62 | 1,598 | py | Python | Random-Programs/dev/games/misc/computarr.py | naumoff0/Archive | d4ad2da89abb1576dd5a7c72ded6bf9b45c3f610 | [
"MIT"
] | null | null | null | Random-Programs/dev/games/misc/computarr.py | naumoff0/Archive | d4ad2da89abb1576dd5a7c72ded6bf9b45c3f610 | [
"MIT"
] | null | null | null | Random-Programs/dev/games/misc/computarr.py | naumoff0/Archive | d4ad2da89abb1576dd5a7c72ded6bf9b45c3f610 | [
"MIT"
] | null | null | null | import time
import sys
import os
from random import randint
#imports
def fail():
#defining computer failure
print("FATAL_ERROR:: {} strings unhandled".format(randint(1, 100)))
time.sleep(1)
print("Attempting to handle strings")
time.sleep(1)
print("Could not decorrupt streams")
time.sleep(1)... | 30.150943 | 74 | 0.543805 | 181 | 1,598 | 4.751381 | 0.513812 | 0.073256 | 0.069767 | 0.104651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026738 | 0.297872 | 1,598 | 53 | 75 | 30.150943 | 0.73975 | 0.037547 | 0 | 0.122449 | 0 | 0 | 0.272786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0.061224 | 0.081633 | 0 | 0.122449 | 0.326531 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b2a120efbb8a009b5cd784e2b489e21018be3d59 | 10,697 | py | Python | colosseumrl/BaseEnvironment.py | carletonz/colosseumrl | 878f0459731511d716672aee8a5adafcb96cf0a7 | [
"MIT"
] | 8 | 2019-06-04T00:22:30.000Z | 2022-02-14T15:27:17.000Z | colosseumrl/BaseEnvironment.py | carletonz/colosseumrl | 878f0459731511d716672aee8a5adafcb96cf0a7 | [
"MIT"
] | 1 | 2019-07-23T03:32:59.000Z | 2019-07-23T06:16:35.000Z | colosseumrl/BaseEnvironment.py | carletonz/colosseumrl | 878f0459731511d716672aee8a5adafcb96cf0a7 | [
"MIT"
] | 3 | 2020-01-13T08:09:27.000Z | 2021-11-14T01:30:25.000Z | """ Abstract definition of a game environment. Whenever you wish to make a new environment, make sure to subclass
this to have all of the correct functions. """
import numpy as np
from abc import ABC, abstractmethod
from typing import Tuple, List, Union, Dict
class BaseEnvironment(ABC):
""" Base class for all e... | 31.277778 | 120 | 0.585024 | 1,266 | 10,697 | 4.909163 | 0.223539 | 0.035398 | 0.022526 | 0.020274 | 0.223331 | 0.165245 | 0.141754 | 0.128882 | 0.128882 | 0.12325 | 0 | 0.002518 | 0.331775 | 10,697 | 342 | 121 | 31.277778 | 0.866956 | 0.519772 | 0 | 0.360465 | 0 | 0 | 0.046668 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22093 | false | 0 | 0.034884 | 0 | 0.337209 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2a8e8e4385a75769ba97d4abdbc2f0bdcd245a8 | 1,465 | py | Python | services/read_scp_write_npy_embeddings.py | ishine/self_supervised_AHC | 59c3a05dfe2f0fc24f54a316d87bc28b07bcdd9a | [
"Apache-2.0"
] | 10 | 2020-08-11T02:58:31.000Z | 2022-03-18T06:39:38.000Z | services/read_scp_write_npy_embeddings.py | ishine/self_supervised_AHC | 59c3a05dfe2f0fc24f54a316d87bc28b07bcdd9a | [
"Apache-2.0"
] | 2 | 2021-12-07T10:33:58.000Z | 2021-12-16T05:15:32.000Z | services/read_scp_write_npy_embeddings.py | ishine/self_supervised_AHC | 59c3a05dfe2f0fc24f54a316d87bc28b07bcdd9a | [
"Apache-2.0"
] | 4 | 2020-08-04T00:33:18.000Z | 2021-12-08T03:33:07.000Z | import os
import numpy as np
import glob
import kaldi_io
import sys
#Usage
if len(sys.argv)!=4:
print("Need 3 input arguments!")
print("Usage :")
print("python read_scp_write_npy_embeddings.py <mat/vec> <complete path of ark/scp file> <path of output folder to store numpy output>")
print("... | 29.3 | 141 | 0.65256 | 222 | 1,465 | 4.22973 | 0.405405 | 0.038339 | 0.022364 | 0.031949 | 0.207668 | 0.207668 | 0.207668 | 0.207668 | 0.122471 | 0.122471 | 0 | 0.009549 | 0.213652 | 1,465 | 49 | 142 | 29.897959 | 0.805556 | 0.023208 | 0 | 0.162162 | 0 | 0.054054 | 0.338651 | 0.023205 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.135135 | null | null | 0.27027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2ae7a11cb115d72f13904a3221cddf1f6998bd3 | 34,557 | py | Python | board.py | NgyAnthony/ISN_game1.0 | aae90147ca94d634e89d57c29338b5ec4ffdd594 | [
"MIT"
] | null | null | null | board.py | NgyAnthony/ISN_game1.0 | aae90147ca94d634e89d57c29338b5ec4ffdd594 | [
"MIT"
] | 4 | 2019-01-29T16:46:53.000Z | 2019-01-30T16:45:28.000Z | board.py | NgyAnthony/ISN_game1.0 | aae90147ca94d634e89d57c29338b5ec4ffdd594 | [
"MIT"
] | null | null | null | from math import cos, sin, sqrt, radians # imports used to create hexagons
import tkinter as tk
import sys
import os
import webbrowser
hexagons = [] # This is a list of list of the boards of each canvas_instance that is created
squad_list = [] # this list contains all the instances of the Squad class
bonus_list = ... | 47.016327 | 1,682 | 0.536765 | 4,440 | 34,557 | 4.067793 | 0.102928 | 0.024916 | 0.016057 | 0.014728 | 0.488511 | 0.440286 | 0.38298 | 0.349759 | 0.289187 | 0.272798 | 0 | 0.047155 | 0.334173 | 34,557 | 734 | 1,683 | 47.080381 | 0.737798 | 0.140232 | 0 | 0.345216 | 0 | 0 | 0.09191 | 0.013096 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052533 | false | 0 | 0.009381 | 0 | 0.078799 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2b026319c9151cacab4a368ad6ada042510c416 | 8,145 | py | Python | dbMaint/test/backfillFromHistory.py | lsst-camera-dh/eTraveler-backend | c236014034318ab594b3cb66f7b4a8ea81a4ed8d | [
"BSD-3-Clause-LBNL"
] | null | null | null | dbMaint/test/backfillFromHistory.py | lsst-camera-dh/eTraveler-backend | c236014034318ab594b3cb66f7b4a8ea81a4ed8d | [
"BSD-3-Clause-LBNL"
] | null | null | null | dbMaint/test/backfillFromHistory.py | lsst-camera-dh/eTraveler-backend | c236014034318ab594b3cb66f7b4a8ea81a4ed8d | [
"BSD-3-Clause-LBNL"
] | null | null | null | #!/usr/bin/env python
import os
import os.path
import re
import sqlalchemy
from optparse import OptionParser
class backfillFromHistory():
def __init__(self, dbConnectFile='db_connect.txt',item='activityStatus',
ifNull=True):
self.engine = None
self.dbConnectFile = dbConnectFile
... | 41.556122 | 156 | 0.538735 | 808 | 8,145 | 5.394802 | 0.273515 | 0.012388 | 0.0195 | 0.021106 | 0.135811 | 0.093599 | 0.0624 | 0.0624 | 0.050929 | 0.050929 | 0 | 0.008019 | 0.341682 | 8,145 | 195 | 157 | 41.769231 | 0.804924 | 0.034868 | 0 | 0.24375 | 0 | 0.0125 | 0.257495 | 0.032317 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03125 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2315396a0a45e424b198630e540266212534572 | 1,839 | py | Python | game/plitk.py | 0niel/DandyBot | fe84890fb773446722ba2d5bf8b6473ba6b05160 | [
"MIT"
] | null | null | null | game/plitk.py | 0niel/DandyBot | fe84890fb773446722ba2d5bf8b6473ba6b05160 | [
"MIT"
] | null | null | null | game/plitk.py | 0niel/DandyBot | fe84890fb773446722ba2d5bf8b6473ba6b05160 | [
"MIT"
] | null | null | null | import json
import importlib.resources
import tkinter as tk
def load_tileset(filename):
tileset = json.loads(importlib.resources.read_text('game', filename))
tileset["data"] = importlib.resources.read_binary('game', tileset["file"])
return tileset
def get_tile_ppm(tileset, index):
x = tileset["tile... | 36.058824 | 79 | 0.568787 | 238 | 1,839 | 4.306723 | 0.281513 | 0.096585 | 0.078049 | 0.032195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.282219 | 1,839 | 50 | 80 | 36.78 | 0.769697 | 0 | 0 | 0 | 0 | 0 | 0.088139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.119048 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a23e3a0e11501c1f9413418aa1fde506136e6dff | 1,034 | py | Python | books/dongbin-na/part2_implementation/ipmt_1.py | livlikwav/Algorithms | dbb443aeb56946252ed8fa2fccd3c35026697a16 | [
"MIT"
] | 1 | 2019-11-28T02:47:48.000Z | 2019-11-28T02:47:48.000Z | books/dongbin-na/part2_implementation/ipmt_1.py | livlikwav/Algorithms | dbb443aeb56946252ed8fa2fccd3c35026697a16 | [
"MIT"
] | 6 | 2019-11-27T14:01:51.000Z | 2020-12-03T16:34:27.000Z | books/dongbin-na/part2_implementation/ipmt_1.py | livlikwav/BOJstack | dbb443aeb56946252ed8fa2fccd3c35026697a16 | [
"MIT"
] | null | null | null | import sys
def myinput():
return sys.stdin.readline()
N = int(myinput())
data = myinput().split()
dict = {
'L' : [0, -1],
'R' : [0, +1],
'U' : [-1, 0],
'D' : [+1, 0],
}
start = [1, 1]
for cmd in data:
next = [start[i] + dict[cmd][i] for i in range(2)]
# print(f'next is {next}')
if n... | 17.233333 | 54 | 0.501934 | 178 | 1,034 | 2.898876 | 0.421348 | 0.01938 | 0.023256 | 0.042636 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037762 | 0.308511 | 1,034 | 59 | 55 | 17.525424 | 0.683916 | 0.086074 | 0 | 0 | 0 | 0 | 0.009926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.052632 | 0.052632 | 0.157895 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a23f1f94486b7cfe2358f2b64605a62134ba8c75 | 2,263 | py | Python | code/results/04_AUPRC_train_validation.py | data-intelligence-for-health-lab/delirium_prediction | a0a25819ef6c98e32563b4e3b986c1a26fc30ed7 | [
"MIT"
] | null | null | null | code/results/04_AUPRC_train_validation.py | data-intelligence-for-health-lab/delirium_prediction | a0a25819ef6c98e32563b4e3b986c1a26fc30ed7 | [
"MIT"
] | null | null | null | code/results/04_AUPRC_train_validation.py | data-intelligence-for-health-lab/delirium_prediction | a0a25819ef6c98e32563b4e3b986c1a26fc30ed7 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import pickle
import tensorflow as tf
import random
import math
import os
import time
from sklearn.metrics import average_precision_score
# ------------------------------------------------------ loading libraries ----
# --- setting random seed ----------------------------------... | 41.145455 | 137 | 0.687583 | 321 | 2,263 | 4.595016 | 0.224299 | 0.048814 | 0.122034 | 0.170847 | 0.416271 | 0.394576 | 0.394576 | 0.394576 | 0.394576 | 0.394576 | 0 | 0.062069 | 0.102961 | 2,263 | 54 | 138 | 41.907407 | 0.664532 | 0.132567 | 0 | 0 | 0 | 0.03125 | 0.420676 | 0.360287 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.28125 | 0 | 0.28125 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a23f609ac2d55c47cd1d1a10450652982784e7d5 | 600 | py | Python | tests/test_test_project.py | develtech/django-slugify-processors | 768b773e05d9b85166ac69dfe97a9982b3b3651e | [
"MIT"
] | null | null | null | tests/test_test_project.py | develtech/django-slugify-processors | 768b773e05d9b85166ac69dfe97a9982b3b3651e | [
"MIT"
] | 1 | 2022-03-09T00:38:44.000Z | 2022-03-09T00:38:44.000Z | tests/test_test_project.py | develtech/django-slugify-processors | 768b773e05d9b85166ac69dfe97a9982b3b3651e | [
"MIT"
] | null | null | null | import pytest
from django.apps import apps
@pytest.mark.django_db
def test_models_passthrough(settings):
MyModel = apps.get_model("test_app.MyModel")
entered = "c++"
expected = "c"
m = MyModel(title=entered)
m.save()
assert m.django_extensions_slug == expected
@pytest.mark.django_db
def t... | 20.689655 | 73 | 0.698333 | 78 | 600 | 5.166667 | 0.384615 | 0.052109 | 0.079404 | 0.08933 | 0.694789 | 0.694789 | 0.694789 | 0.540943 | 0.540943 | 0.540943 | 0 | 0 | 0.183333 | 600 | 28 | 74 | 21.428571 | 0.822449 | 0 | 0 | 0.631579 | 0 | 0 | 0.128333 | 0.058333 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.105263 | false | 0.052632 | 0.105263 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a24585eefb33062536aa7a60eb2f91c63d858dbb | 13,124 | py | Python | openvim/dhcp_thread.py | acasana/openmano_movilnet | 0c33f0fb7fbb3ad0e49bd47650b27c9899a75ca1 | [
"Apache-2.0"
] | 204 | 2015-03-04T11:45:41.000Z | 2021-09-28T22:44:41.000Z | openvim/dhcp_thread.py | acasana/openmano_movilnet | 0c33f0fb7fbb3ad0e49bd47650b27c9899a75ca1 | [
"Apache-2.0"
] | 35 | 2015-03-24T11:29:34.000Z | 2019-05-04T18:32:30.000Z | openvim/dhcp_thread.py | acasana/openmano_movilnet | 0c33f0fb7fbb3ad0e49bd47650b27c9899a75ca1 | [
"Apache-2.0"
] | 95 | 2015-03-04T18:18:12.000Z | 2022-02-02T06:45:32.000Z | # -*- coding: utf-8 -*-
##
# Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
# This file is part of openmano
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License ... | 44.791809 | 145 | 0.536193 | 1,590 | 13,124 | 4.266038 | 0.206289 | 0.067817 | 0.076662 | 0.075483 | 0.40513 | 0.374318 | 0.325225 | 0.281291 | 0.249152 | 0.233525 | 0 | 0.020423 | 0.354541 | 13,124 | 292 | 146 | 44.945205 | 0.780309 | 0.161384 | 0 | 0.427861 | 0 | 0 | 0.121235 | 0.002117 | 0 | 0 | 0 | 0.006849 | 0 | 0 | null | null | 0.004975 | 0.029851 | null | null | 0.089552 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a245adef842f29edb238f3c91e343c43f67bf93e | 378 | py | Python | Tarea2DDSIV/ejercicio2.py | Gorwast/python-tests | 342605fdfa50d05c645e12c15b4db24d3f7cb7f0 | [
"MIT"
] | null | null | null | Tarea2DDSIV/ejercicio2.py | Gorwast/python-tests | 342605fdfa50d05c645e12c15b4db24d3f7cb7f0 | [
"MIT"
] | null | null | null | Tarea2DDSIV/ejercicio2.py | Gorwast/python-tests | 342605fdfa50d05c645e12c15b4db24d3f7cb7f0 | [
"MIT"
] | null | null | null | # Lopez Chaidez Luis Enrique DDSIV
def hello_user(name):
"""Function that returns a string that says hello to the name that you introduce
Args:
name (String): Name that you want to add to the string
Returns:
String: It returns '¡Hola {name}!'
"""
return '¡Hola ' + name + '!'
name... | 23.625 | 84 | 0.642857 | 55 | 378 | 4.418182 | 0.545455 | 0.074074 | 0.106996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251323 | 378 | 15 | 85 | 25.2 | 0.85159 | 0.597884 | 0 | 0 | 0 | 0 | 0.224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a24f1cb74f29d7f8838b793bea2d9fcc02474b49 | 585 | py | Python | hypha/apply/projects/migrations/0021_add_paid_value.py | maxpearl/hypha | e181ebadfb744aab34617bb766e746368d6f2de0 | [
"BSD-3-Clause"
] | 20 | 2021-04-08T16:38:49.000Z | 2022-02-09T20:05:57.000Z | hypha/apply/projects/migrations/0021_add_paid_value.py | maxpearl/hypha | e181ebadfb744aab34617bb766e746368d6f2de0 | [
"BSD-3-Clause"
] | 1,098 | 2017-12-15T11:23:03.000Z | 2020-01-24T07:58:07.000Z | hypha/apply/projects/migrations/0021_add_paid_value.py | maxpearl/hypha | e181ebadfb744aab34617bb766e746368d6f2de0 | [
"BSD-3-Clause"
] | 17 | 2020-02-07T14:55:54.000Z | 2021-04-04T19:32:38.000Z | # Generated by Django 2.0.13 on 2019-08-26 12:04
from decimal import Decimal
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('application_projects', '0020_rename_value_to_requested_value'),
]
operations = [
... | 27.857143 | 154 | 0.68547 | 67 | 585 | 5.835821 | 0.686567 | 0.066496 | 0.102302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055914 | 0.205128 | 585 | 20 | 155 | 29.25 | 0.784946 | 0.078632 | 0 | 0 | 1 | 0 | 0.156425 | 0.067039 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a252a6b7fb1d7f32576a633b72a57ae20c0a93d9 | 1,760 | py | Python | bb_IDP/scripts/IDP_T1_GM_parc_gen.py | yilewang/tvb-ukbb | 9b89811e3c1acde1ecc73df9ff668bbdc6533d1b | [
"Apache-2.0"
] | 4 | 2022-01-25T15:53:07.000Z | 2022-02-04T01:24:45.000Z | bb_IDP/scripts/IDP_T1_GM_parc_gen.py | yilewang/tvb-ukbb | 9b89811e3c1acde1ecc73df9ff668bbdc6533d1b | [
"Apache-2.0"
] | 11 | 2021-07-09T17:22:36.000Z | 2021-12-07T22:43:20.000Z | bb_IDP/scripts/IDP_T1_GM_parc_gen.py | yilewang/tvb-ukbb | 9b89811e3c1acde1ecc73df9ff668bbdc6533d1b | [
"Apache-2.0"
] | 2 | 2021-08-10T18:13:27.000Z | 2021-09-06T03:50:00.000Z | #!/bin/env python
#
# Script name: IDP_T1_GM_parc_gen.py
#
# Description: Script to generate the bb_IDP_T1_GM_parcellation IDP file.
#
## Author: Justin Wang
import nibabel as nib
import numpy as np
import sys
import os
def IDP_T1_GM_parc_gen(PARC_LUT,IDP_file,parcel_to_T1,pve_1):
parcel_img = nib.load(parcel_to_T... | 20.705882 | 123 | 0.722159 | 302 | 1,760 | 3.860927 | 0.347682 | 0.038593 | 0.054031 | 0.046312 | 0.246998 | 0.138937 | 0.138937 | 0.06175 | 0 | 0 | 0 | 0.030935 | 0.155114 | 1,760 | 84 | 124 | 20.952381 | 0.753194 | 0.180114 | 0 | 0 | 1 | 0 | 0.015741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.121212 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a25a514f0ad8e26f6e270d1bca25b2de0c8c760c | 3,192 | py | Python | People/Rob/Meeting_03/my_calendar.py | rmorgan10/ExpertPythonProgramming | e171c3334a7e94a9b6c31cda79c7c0d2527218e7 | [
"MIT"
] | 2 | 2021-11-22T07:48:51.000Z | 2021-11-22T07:49:10.000Z | People/Rob/Meeting_03/my_calendar.py | rmorgan10/ExpertPythonProgramming | e171c3334a7e94a9b6c31cda79c7c0d2527218e7 | [
"MIT"
] | null | null | null | People/Rob/Meeting_03/my_calendar.py | rmorgan10/ExpertPythonProgramming | e171c3334a7e94a9b6c31cda79c7c0d2527218e7 | [
"MIT"
] | 1 | 2020-06-13T20:45:01.000Z | 2020-06-13T20:45:01.000Z | # The outer shell for PyCalendar
from calendar_functions import Display, Calendar, Spot
import curses
import datetime
import os
# Create a calendar
calendar = Calendar()
# Create a display
display = Display(calendar)
def main_wrapper(screen, display):
screen.border(0)
display.main(screen)
current_... | 33.25 | 78 | 0.496241 | 342 | 3,192 | 4.447368 | 0.260234 | 0.216963 | 0.101249 | 0.098619 | 0.35503 | 0.290598 | 0.290598 | 0.209073 | 0.209073 | 0.209073 | 0 | 0.025739 | 0.427945 | 3,192 | 95 | 79 | 33.6 | 0.807229 | 0.093672 | 0 | 0.238806 | 0 | 0 | 0.003123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014925 | false | 0.014925 | 0.059701 | 0 | 0.089552 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a25ba900f3b073832591953b79a5fb33450862c0 | 2,244 | py | Python | master_node_scripts/fill_tables.py | ashd97/simple-scalable-ml-backend | 0b61025826442f0bec01c434d4003492a56ce77b | [
"MIT"
] | null | null | null | master_node_scripts/fill_tables.py | ashd97/simple-scalable-ml-backend | 0b61025826442f0bec01c434d4003492a56ce77b | [
"MIT"
] | null | null | null | master_node_scripts/fill_tables.py | ashd97/simple-scalable-ml-backend | 0b61025826442f0bec01c434d4003492a56ce77b | [
"MIT"
] | null | null | null | import psycopg2
from psycopg2 import sql, extras
# If there is no venv, run schrodinger_virtualenv.py schrodinger.ve to install pycopg2
# In win powershell as admin:
# >Set-Location -Path "C:\Program Files\Schrodinger2020-3"
# >Set-ExecutionPolicy RemoteSigned
# >schrodinger.ve\Scripts\activate
# or source schroding... | 30.324324 | 145 | 0.687166 | 306 | 2,244 | 4.911765 | 0.460784 | 0.013307 | 0.041916 | 0.027944 | 0.091816 | 0.091816 | 0.05855 | 0.05855 | 0 | 0 | 0 | 0.019956 | 0.196078 | 2,244 | 73 | 146 | 30.739726 | 0.813193 | 0.198307 | 0 | 0.166667 | 0 | 0.027778 | 0.148797 | 0.08461 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.055556 | 0.055556 | 0 | 0.138889 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a25d217a7ae2cbe59170cbd61eb8a2c94a6c618c | 6,054 | py | Python | domain/crypstyx.py | zloyuser/sanic-ccxt | 536be05f1d66dd2144a65015dea0e8c6d0c11056 | [
"MIT"
] | 2 | 2018-08-11T11:47:09.000Z | 2020-01-22T13:50:25.000Z | domain/crypstyx.py | zloyuser/sanic-ccxt | 536be05f1d66dd2144a65015dea0e8c6d0c11056 | [
"MIT"
] | null | null | null | domain/crypstyx.py | zloyuser/sanic-ccxt | 536be05f1d66dd2144a65015dea0e8c6d0c11056 | [
"MIT"
] | 1 | 2018-08-11T11:45:57.000Z | 2018-08-11T11:45:57.000Z | import aiohttp
import base64
import hashlib
import hmac
import json
from datetime import datetime
from domain.errors import InvalidSymbol
from domain.models import *
class CrypstyxSecurity:
_secret: str
_app: str
_nonce: int
def __init__(self, params: dict):
self._key = params['apiKey']
... | 29.531707 | 117 | 0.544268 | 625 | 6,054 | 5.1568 | 0.3024 | 0.037232 | 0.037232 | 0.015824 | 0.207881 | 0.197332 | 0.124108 | 0.124108 | 0.124108 | 0.037853 | 0 | 0.015752 | 0.328873 | 6,054 | 204 | 118 | 29.676471 | 0.777504 | 0 | 0 | 0.167742 | 0 | 0 | 0.102577 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0.064516 | 0.051613 | 0.006452 | 0.206452 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a25fa7b6474b2a45362b3f983255f87f45413451 | 637 | py | Python | utils/progress_bar.py | gongbudaizhe/bilib | fbda8361d14f5e830a8d86883926daf99fd92a5d | [
"MIT"
] | null | null | null | utils/progress_bar.py | gongbudaizhe/bilib | fbda8361d14f5e830a8d86883926daf99fd92a5d | [
"MIT"
] | 1 | 2018-08-26T10:34:34.000Z | 2018-08-28T04:18:09.000Z | utils/progress_bar.py | gongbudaizhe/bilib | fbda8361d14f5e830a8d86883926daf99fd92a5d | [
"MIT"
] | null | null | null | import sys
import time
if __name__ == "__main__":
# show the progress
for progress in range(100):
i = progress / 5
# the general syntax for a format place holder is
# %[flags][width][.precision]type
# reference: http://www.python-course.eu/python3_formatted_output.php
#
# for example, ... | 33.526316 | 81 | 0.657771 | 94 | 637 | 4.351064 | 0.659574 | 0.066015 | 0.08802 | 0.08802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027944 | 0.213501 | 637 | 18 | 82 | 35.388889 | 0.788423 | 0.585557 | 0 | 0 | 0 | 0 | 0.185771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a266857b602a58044ce85cab1dac1080c5ae8427 | 3,375 | py | Python | mirrormanager2/login_forms.py | Devyani-Divs/mirrormanager2 | c56bfdb363608c5ea701ce8f089ab1b09abc4de9 | [
"MIT"
] | 1 | 2015-11-08T08:56:33.000Z | 2015-11-08T08:56:33.000Z | mirrormanager2/login_forms.py | Devyani-Divs/mirrormanager2 | c56bfdb363608c5ea701ce8f089ab1b09abc4de9 | [
"MIT"
] | null | null | null | mirrormanager2/login_forms.py | Devyani-Divs/mirrormanager2 | c56bfdb363608c5ea701ce8f089ab1b09abc4de9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright © 2014 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2, or (at your option) any later
# version. This program is distributed in t... | 33.415842 | 76 | 0.678815 | 424 | 3,375 | 5.367925 | 0.426887 | 0.082162 | 0.05536 | 0.071178 | 0.362478 | 0.339631 | 0.315026 | 0.296134 | 0.29174 | 0.29174 | 0 | 0.014264 | 0.210667 | 3,375 | 100 | 77 | 33.75 | 0.839715 | 0.453037 | 0 | 0.469388 | 0 | 0 | 0.2296 | 0.111424 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0.346939 | 0.040816 | 0 | 0.346939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a26787ed17e49c8243e36f632091f0fdfe3d2af7 | 330 | py | Python | desafio/desafio053.py | henriquekirchheck/Curso-em-video-Python | 1a29f68515313af85c8683f626ba35f8fcdd10e7 | [
"MIT"
] | null | null | null | desafio/desafio053.py | henriquekirchheck/Curso-em-video-Python | 1a29f68515313af85c8683f626ba35f8fcdd10e7 | [
"MIT"
] | null | null | null | desafio/desafio053.py | henriquekirchheck/Curso-em-video-Python | 1a29f68515313af85c8683f626ba35f8fcdd10e7 | [
"MIT"
] | null | null | null | # Crie um programa que leia uma frase qualquer e diga se ela é um palíndromo, desconsiderando os espaços.
frase = str(input('\nDigite uma frase: '))
min = ''.join(frase.lower().split())
rev = ''.join(frase.lower().split())[::-1]
if(min == rev):
print('A frase é um palíndromo')
else:
print('A frase não é um pa... | 33 | 105 | 0.666667 | 52 | 330 | 4.230769 | 0.596154 | 0.040909 | 0.177273 | 0.172727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003636 | 0.166667 | 330 | 10 | 106 | 33 | 0.796364 | 0.312121 | 0 | 0 | 0 | 0 | 0.309735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a26a575792b34993ca9fdcddf1ff40370e33743b | 3,741 | py | Python | panaroo/post_run_alignment_gen.py | AMARTELKE/Pangenome-with-Panaroo | b720debf8616882668d53600038c334393080d9b | [
"MIT"
] | 116 | 2019-11-28T07:54:26.000Z | 2022-03-31T03:20:44.000Z | panaroo/post_run_alignment_gen.py | AMARTELKE/Pangenome-with-Panaroo | b720debf8616882668d53600038c334393080d9b | [
"MIT"
] | 120 | 2019-12-08T21:01:46.000Z | 2022-03-30T04:11:52.000Z | panaroo/post_run_alignment_gen.py | AMARTELKE/Pangenome-with-Panaroo | b720debf8616882668d53600038c334393080d9b | [
"MIT"
] | 19 | 2019-12-19T05:34:03.000Z | 2022-03-19T05:54:51.000Z | import shutil
import tempfile
import os
import networkx as nx
from .generate_output import *
from .isvalid import *
from .__init__ import __version__
def get_options():
import argparse
description = 'Generate multiple sequence alignments after running Panaroo'
parser = argparse.ArgumentParser(descriptio... | 32.25 | 79 | 0.543705 | 402 | 3,741 | 4.853234 | 0.365672 | 0.050743 | 0.053306 | 0.024603 | 0.116863 | 0.064582 | 0.064582 | 0.064582 | 0.064582 | 0.064582 | 0 | 0.003682 | 0.346699 | 3,741 | 115 | 80 | 32.530435 | 0.794599 | 0.049987 | 0 | 0.045977 | 1 | 0 | 0.191537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022989 | false | 0 | 0.091954 | 0 | 0.137931 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a26b8d35df676023ee8dab40fd787e3886513efd | 2,194 | py | Python | NEST-14.0-FPGA/pynest/nest/tests/test_errors.py | OpenHEC/SNN-simulator-on-PYNQcluster | 14f86a76edf4e8763b58f84960876e95d4efc43a | [
"MIT"
] | 45 | 2019-12-09T06:45:53.000Z | 2022-01-29T12:16:41.000Z | NEST-14.0-FPGA/pynest/nest/tests/test_errors.py | zlchai/SNN-simulator-on-PYNQcluster | 14f86a76edf4e8763b58f84960876e95d4efc43a | [
"MIT"
] | 2 | 2020-05-23T05:34:21.000Z | 2021-09-08T02:33:46.000Z | NEST-14.0-FPGA/pynest/nest/tests/test_errors.py | OpenHEC/SNN-simulator-on-PYNQcluster | 14f86a76edf4e8763b58f84960876e95d4efc43a | [
"MIT"
] | 10 | 2019-12-09T06:45:59.000Z | 2021-03-25T09:32:56.000Z | # -*- coding: utf-8 -*-
#
# test_errors.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or... | 24.377778 | 75 | 0.658159 | 263 | 2,194 | 5.410646 | 0.494297 | 0.024596 | 0.053408 | 0.101195 | 0.195362 | 0.177091 | 0 | 0 | 0 | 0 | 0 | 0.008358 | 0.236554 | 2,194 | 89 | 76 | 24.651685 | 0.841194 | 0.37876 | 0 | 0.257143 | 0 | 0 | 0.065084 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.228571 | false | 0 | 0.057143 | 0 | 0.342857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a26faf26027cd5f071d214c6ceacf1145f186918 | 317 | py | Python | main/rearrange-array-such-that-even-positioned-are-greater-than-odd/rearrange-array-such-that-even-positioned-are-greater-than-odd-wrong-interpretation.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/rearrange-array-such-that-even-positioned-are-greater-than-odd/rearrange-array-such-that-even-positioned-are-greater-than-odd-wrong-interpretation.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/rearrange-array-such-that-even-positioned-are-greater-than-odd/rearrange-array-such-that-even-positioned-are-greater-than-odd-wrong-interpretation.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | #!/usr/bin/env python3
def round_down_to_even(value):
return value & ~1
for _ in range(int(input())):
input() # don't need n
a = list(map(int, input().split()))
for i in range(0, round_down_to_even(len(a)), 2):
if a[i] > a[i + 1]:
a[i], a[i + 1] = a[i + 1], a[i]
print(*a)
| 21.133333 | 53 | 0.523659 | 59 | 317 | 2.694915 | 0.525424 | 0.075472 | 0.056604 | 0.075472 | 0.09434 | 0.075472 | 0.075472 | 0 | 0 | 0 | 0 | 0.030435 | 0.274448 | 317 | 14 | 54 | 22.642857 | 0.66087 | 0.107256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0.111111 | 0.222222 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
a27480b26930ea98a607a2079254d234d35a4e18 | 198 | py | Python | test.py | pscly/bisai1 | e619186cec5053a8e02bd59e48fc3ad3af47d19a | [
"MulanPSL-1.0"
] | null | null | null | test.py | pscly/bisai1 | e619186cec5053a8e02bd59e48fc3ad3af47d19a | [
"MulanPSL-1.0"
] | null | null | null | test.py | pscly/bisai1 | e619186cec5053a8e02bd59e48fc3ad3af47d19a | [
"MulanPSL-1.0"
] | null | null | null | # coding: utf-8
# 作者:Pscly
# 创建日期:
# 用意:
# a = [1,2,3,4,5]
# a.pop(0)
# a.append(4)
# print(a)
# for i, j in enumerate(a,1):
# print(i, j)
# print(a[:-1])
a = '123456'
print(a.split('x'))
| 10.421053 | 29 | 0.5 | 40 | 198 | 2.475 | 0.625 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 0.222222 | 198 | 18 | 30 | 11 | 0.538961 | 0.691919 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
a27abf92e6e6b265f521fc1f59f32dbfbf93b0a7 | 438 | py | Python | fakester/redirects/admin.py | pawelad/fakester | 0545aa89e7ece567b58a893400db96260b1f34f8 | [
"MIT"
] | 9 | 2016-06-20T08:01:40.000Z | 2021-08-22T21:08:38.000Z | fakester/redirects/admin.py | pawelad/fakester | 0545aa89e7ece567b58a893400db96260b1f34f8 | [
"MIT"
] | 1 | 2017-02-10T15:58:24.000Z | 2017-02-10T16:32:33.000Z | fakester/redirects/admin.py | pawelad/fakester | 0545aa89e7ece567b58a893400db96260b1f34f8 | [
"MIT"
] | 1 | 2016-06-23T20:42:22.000Z | 2016-06-23T20:42:22.000Z | """
Redirects module Django Admin integration
"""
from django.contrib import admin
from redirects.models import Redirect
@admin.register(Redirect)
class RedirectAdmin(admin.ModelAdmin):
"""
Django Admin integration for `redirects.Redirect` model
"""
list_display = (
'local_path', 'destination... | 23.052632 | 59 | 0.687215 | 46 | 438 | 6.391304 | 0.608696 | 0.07483 | 0.14966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189498 | 438 | 18 | 60 | 24.333333 | 0.828169 | 0.221461 | 0 | 0 | 0 | 0 | 0.248428 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a27b67367e84dd1b586b06395d66ca79e461856e | 232 | py | Python | answers/Fab-Gaurav/Day 7/Answer_1.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 22 | 2021-03-16T14:07:47.000Z | 2021-08-13T08:52:50.000Z | answers/Fab-Gaurav/Day 7/Answer_1.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 174 | 2021-03-16T21:16:40.000Z | 2021-06-12T05:19:51.000Z | answers/Fab-Gaurav/Day 7/Answer_1.py | arc03/30-DaysOfCode-March-2021 | 6d6e11bf70280a578113f163352fa4fa8408baf6 | [
"MIT"
] | 135 | 2021-03-16T16:47:12.000Z | 2021-06-27T14:22:38.000Z | num = [int(x) for x in input("Enter the Numbers : ").split()]
index=[int(x) for x in input("Enter the Index : ").split()]
target=[]
for i in range(len(num)):
target.insert(index[i], num[i])
print("The Target array is :",target)
| 33.142857 | 61 | 0.637931 | 41 | 232 | 3.609756 | 0.463415 | 0.054054 | 0.094595 | 0.108108 | 0.310811 | 0.310811 | 0.310811 | 0.310811 | 0 | 0 | 0 | 0 | 0.155172 | 232 | 6 | 62 | 38.666667 | 0.755102 | 0 | 0 | 0 | 0 | 0 | 0.25431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a27dbd99aaa7412b3ac2028e72d9acb9fe31b2a3 | 1,253 | py | Python | calculate_submit.py | joonaspessi/acoustic-scene-2018 | f253c98607376b542c41d90b8073b15f987234db | [
"MIT"
] | null | null | null | calculate_submit.py | joonaspessi/acoustic-scene-2018 | f253c98607376b542c41d90b8073b15f987234db | [
"MIT"
] | null | null | null | calculate_submit.py | joonaspessi/acoustic-scene-2018 | f253c98607376b542c41d90b8073b15f987234db | [
"MIT"
] | null | null | null | from keras.models import Sequential, load_model
from keras.layers.core import Dense, Flatten
from keras.layers import Conv2D, MaxPool2D
from keras.utils import to_categorical
from keras.optimizers import SGD
from sklearn.preprocessing import LabelBinarizer
import matplotlib
import matplotlib.pyplot as plt
import util... | 27.844444 | 68 | 0.760575 | 220 | 1,253 | 4.045455 | 0.295455 | 0.044944 | 0.031461 | 0.017978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01444 | 0.115722 | 1,253 | 44 | 69 | 28.477273 | 0.788809 | 0.048683 | 0 | 0 | 0 | 0 | 0.027731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a27df9e152cf65da514ea408b6325f7d1264b463 | 774 | py | Python | tests/mem.py | caplena/django-hashid-field | 2d24c166f2c5b03db56c23078ab3619823f7b159 | [
"MIT"
] | 310 | 2016-10-04T20:26:01.000Z | 2022-03-30T05:10:20.000Z | tests/mem.py | caplena/django-hashid-field | 2d24c166f2c5b03db56c23078ab3619823f7b159 | [
"MIT"
] | 64 | 2016-12-27T18:29:01.000Z | 2022-02-12T01:37:20.000Z | tests/mem.py | caplena/django-hashid-field | 2d24c166f2c5b03db56c23078ab3619823f7b159 | [
"MIT"
] | 35 | 2017-06-05T14:48:31.000Z | 2022-03-17T14:34:00.000Z | #!/usr/bin/env python
import os
import sys
import django
from memory_profiler import profile
@profile(precision=8)
def no_cache():
from hashid_field.hashid import Hashid
instances = [Hashid(i, salt="asdf", min_length=7) for i in range(1, 10_000)]
return instances
@profile(precision=8)
def with_cache():... | 23.454545 | 80 | 0.70801 | 109 | 774 | 4.816514 | 0.431193 | 0.08 | 0.064762 | 0.07619 | 0.335238 | 0.266667 | 0.266667 | 0.121905 | 0.121905 | 0 | 0 | 0.025039 | 0.174419 | 774 | 32 | 81 | 24.1875 | 0.796557 | 0.02584 | 0 | 0.26087 | 0 | 0 | 0.09429 | 0.029216 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.304348 | 0 | 0.478261 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
a27ea80ef0a7ba15807535ebdfd8695f1d380b0c | 3,347 | py | Python | DQMOffline/CalibCalo/python/MonitorAlCaEcalPi0_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | DQMOffline/CalibCalo/python/MonitorAlCaEcalPi0_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | DQMOffline/CalibCalo/python/MonitorAlCaEcalPi0_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
EcalPi0MonDQM = DQMEDAnalyzer('DQMSourcePi0',
prescaleFactor = cms.untracked.int32(1),
FolderName = cms.untracked.string('AlCaReco/EcalPi0'),
AlCaStreamEBpi0Tag = cms.untracked.InputTag("hltAlCaPi0RegRecHits"... | 39.845238 | 91 | 0.623245 | 340 | 3,347 | 6.126471 | 0.341176 | 0.211714 | 0.168027 | 0.036966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064671 | 0.251569 | 3,347 | 83 | 92 | 40.325301 | 0.766866 | 0 | 0 | 0 | 0 | 0 | 0.058261 | 0.006872 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028986 | 0 | 0.028986 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2895a006685e255e7e4f9057b238003cc727086 | 338 | py | Python | prs2/referral/migrations/0002_alter_clearance_options.py | ropable/prs | 0654ca7fce5a6639f5df67905dd2e5c09a1c1f17 | [
"Apache-2.0"
] | 1 | 2016-08-21T06:45:50.000Z | 2016-08-21T06:45:50.000Z | prs2/referral/migrations/0002_alter_clearance_options.py | dbca-wa/prs | 0654ca7fce5a6639f5df67905dd2e5c09a1c1f17 | [
"Apache-2.0"
] | 12 | 2019-02-11T00:01:01.000Z | 2022-02-01T02:07:49.000Z | prs2/referral/migrations/0002_alter_clearance_options.py | ropable/prs | 0654ca7fce5a6639f5df67905dd2e5c09a1c1f17 | [
"Apache-2.0"
] | 4 | 2018-08-09T06:56:43.000Z | 2019-11-13T08:05:46.000Z | # Generated by Django 3.2.10 on 2021-12-20 03:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('referral', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='clearance',
options={'ordering': ['-pk']},... | 18.777778 | 48 | 0.576923 | 33 | 338 | 5.878788 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.289941 | 338 | 17 | 49 | 19.882353 | 0.725 | 0.136095 | 0 | 0 | 1 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a28d88416b684feb2d56b4af13447ed949e0d867 | 326 | py | Python | Solutions/21-30/26.py | Astha-Bhushan/Python-Beginners | f1a010b110b03fd64bb1a00a9c8bb8c0d1c8ead6 | [
"MIT"
] | null | null | null | Solutions/21-30/26.py | Astha-Bhushan/Python-Beginners | f1a010b110b03fd64bb1a00a9c8bb8c0d1c8ead6 | [
"MIT"
] | null | null | null | Solutions/21-30/26.py | Astha-Bhushan/Python-Beginners | f1a010b110b03fd64bb1a00a9c8bb8c0d1c8ead6 | [
"MIT"
] | null | null | null | # Python Program to find Power of a Number
number = int(input(" Please Enter any Positive Integer : "))
exponent = int(input(" Please Enter Exponent Value : "))
power = 1
for i in range(1, exponent + 1):
power = power * number
print("The Result of {0} Power {1} = {2}".format(number, exponent, power))
# by a... | 25.076923 | 74 | 0.662577 | 49 | 326 | 4.408163 | 0.612245 | 0.074074 | 0.12963 | 0.175926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.208589 | 326 | 12 | 75 | 27.166667 | 0.813953 | 0.153374 | 0 | 0 | 0 | 0 | 0.369963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a29000b939246a4d49c700a427871939a95a8ec7 | 289 | py | Python | YourApp/config.py | gpaOliveira/NewPythonApp | 50c0295b628e74d329ea80eff21194b2848d0764 | [
"MIT"
] | 2 | 2016-10-12T16:11:04.000Z | 2017-08-25T18:29:44.000Z | YourApp/config.py | gpaOliveira/NewPythonApp | 50c0295b628e74d329ea80eff21194b2848d0764 | [
"MIT"
] | null | null | null | YourApp/config.py | gpaOliveira/NewPythonApp | 50c0295b628e74d329ea80eff21194b2848d0764 | [
"MIT"
] | null | null | null | #taken from https://github.com/pallets/flask/wiki/Large-app-how-to
import os
_basedir = os.path.abspath(os.path.dirname(__file__))
DEBUG = False
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(_basedir, 'app.db')
DATABASE_CONNECT_OPTIONS = {}
SQLALCHEMY_TRACK_MODIFICATIONS = False | 32.111111 | 73 | 0.771626 | 41 | 289 | 5.146341 | 0.756098 | 0.085308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083045 | 289 | 9 | 74 | 32.111111 | 0.796226 | 0.224913 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2917cbfe4f100002ff6f5f9596e8f7fdc18004b | 879 | py | Python | bin/toc.py | sjbrown/1kfa | 0b18b7ad2f61aa46a710143e1ecddaffdd79f8dd | [
"CC-BY-3.0"
] | 8 | 2019-03-06T08:00:40.000Z | 2022-01-31T16:36:41.000Z | bin/toc.py | sjbrown/1kfa | 0b18b7ad2f61aa46a710143e1ecddaffdd79f8dd | [
"CC-BY-3.0"
] | null | null | null | bin/toc.py | sjbrown/1kfa | 0b18b7ad2f61aa46a710143e1ecddaffdd79f8dd | [
"CC-BY-3.0"
] | null | null | null | import re
from itertools import izip_longest
def percent(num, den):
return '%2.0f%%' % ((float(num)/den) * 100)
def parse(fname, level=2):
f = file(fname)
c = f.read()
f.close()
num_lines = len(c.split('\n'))
headings = []
print 'num lines', num_lines
regexp = '#{1,%s}\s' % level
f... | 26.636364 | 53 | 0.536974 | 126 | 879 | 3.65873 | 0.436508 | 0.02603 | 0.030369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010819 | 0.263936 | 879 | 32 | 54 | 27.46875 | 0.7017 | 0 | 0 | 0 | 0 | 0 | 0.113766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074074 | null | null | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a294e566a68d80fc0c8b018a2adbcecfc728578e | 1,013 | py | Python | msc/popnum_comp.py | rtagirov/python_scr_pc_imperial | 423204964ddbc9c117bd2b3bb4397ee98b89a56d | [
"MIT"
] | null | null | null | msc/popnum_comp.py | rtagirov/python_scr_pc_imperial | 423204964ddbc9c117bd2b3bb4397ee98b89a56d | [
"MIT"
] | null | null | null | msc/popnum_comp.py | rtagirov/python_scr_pc_imperial | 423204964ddbc9c117bd2b3bb4397ee98b89a56d | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import os
import sys
import importlib
if not '../aux/' in sys.path: sys.path.append('../aux/')
import paths; importlib.reload(paths)
import nessy; importlib.reload(nessy)
import auxplt; importlib.reload(auxplt)
import auxsys; importlib.reload(auxsys)
plt.close('al... | 24.707317 | 89 | 0.661402 | 167 | 1,013 | 3.958084 | 0.389222 | 0.045386 | 0.04236 | 0.06354 | 0.099849 | 0.099849 | 0.099849 | 0.099849 | 0.099849 | 0 | 0 | 0.064554 | 0.158934 | 1,013 | 40 | 90 | 25.325 | 0.711268 | 0.086871 | 0 | 0 | 0 | 0 | 0.024892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.346154 | 0 | 0.346154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a29c075ed83a65481f7637b0a5f4cc68f407277f | 20,662 | py | Python | glearn/crf/ixx_glodon/template/basic_template_updater_original.py | WeiShiwei/tornado_glearn | 5e74bbaaee4d2b8c5abf3b60cffbe54694a3bc6f | [
"Apache-2.0"
] | null | null | null | glearn/crf/ixx_glodon/template/basic_template_updater_original.py | WeiShiwei/tornado_glearn | 5e74bbaaee4d2b8c5abf3b60cffbe54694a3bc6f | [
"Apache-2.0"
] | null | null | null | glearn/crf/ixx_glodon/template/basic_template_updater_original.py | WeiShiwei/tornado_glearn | 5e74bbaaee4d2b8c5abf3b60cffbe54694a3bc6f | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
u"""
Description: Generate new basic template from the result and add
it to data base.
User: Jerry.Fang
Date: 13-12-12
"""
from xlrd import open_workbook
from model.session import *
from template.match_rule import MatchRule
from template.logger import logger
from model.basic_element import ... | 46.746606 | 121 | 0.573226 | 2,637 | 20,662 | 4.13121 | 0.081532 | 0.069396 | 0.066091 | 0.024234 | 0.638792 | 0.546448 | 0.456673 | 0.398384 | 0.371856 | 0.359556 | 0 | 0.005329 | 0.346094 | 20,662 | 441 | 122 | 46.852608 | 0.800977 | 0.116397 | 0 | 0.375 | 1 | 0 | 0.077672 | 0.001705 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.003205 | 0.028846 | 0 | 0.080128 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a29dc5dec90a9bb03e54f3638e6c2a0707283a93 | 2,212 | py | Python | api/history/migrations/0001_initial.py | uktrade/market-access-api | 850a59880f8f62263784bcd9c6b3362e447dbc7a | [
"MIT"
] | null | null | null | api/history/migrations/0001_initial.py | uktrade/market-access-api | 850a59880f8f62263784bcd9c6b3362e447dbc7a | [
"MIT"
] | 51 | 2018-05-31T12:16:31.000Z | 2022-03-08T09:36:48.000Z | api/history/migrations/0001_initial.py | uktrade/market-access-api | 850a59880f8f62263784bcd9c6b3362e447dbc7a | [
"MIT"
] | 2 | 2019-12-24T09:47:42.000Z | 2021-02-09T09:36:51.000Z | # Generated by Django 2.2.13 on 2020-08-11 14:56
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
("contenttypes", "0002_remove_content_type_name"),
("barriers", "0080_auto_20200806_1333"),
]... | 33.515152 | 74 | 0.439873 | 161 | 2,212 | 5.807453 | 0.447205 | 0.042781 | 0.059893 | 0.094118 | 0.462032 | 0.404278 | 0.190374 | 0.190374 | 0.190374 | 0.190374 | 0 | 0.035473 | 0.464738 | 2,212 | 65 | 75 | 34.030769 | 0.754223 | 0.020796 | 0 | 0.310345 | 1 | 0 | 0.156192 | 0.100739 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.103448 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2a19adaa0d4b85d409ff3eab7c85bf0da0c278b | 810 | py | Python | t_urllib2.py | iloghyr/easy_python | b750f6817d54562b23630e2419bace19da0abf8b | [
"Apache-2.0"
] | 1 | 2018-03-01T02:42:52.000Z | 2018-03-01T02:42:52.000Z | t_urllib2.py | iloghyr/easy_python | b750f6817d54562b23630e2419bace19da0abf8b | [
"Apache-2.0"
] | null | null | null | t_urllib2.py | iloghyr/easy_python | b750f6817d54562b23630e2419bace19da0abf8b | [
"Apache-2.0"
] | null | null | null | #coding:utf-8
import urllib2
try:
response = urllib2.urlopen('http://www.baidu.com/img/bdlogo.png',timeout=1)
print response.info()['Content-Length']
print response.getcode()
except urllib2.HTTPError, e:
print e.code
except urllib2.URLError, e:
print e.__dict__
def sendHttp(api=None, data='',ti... | 19.756098 | 77 | 0.649383 | 111 | 810 | 4.693694 | 0.540541 | 0.080614 | 0.026871 | 0.076775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.212346 | 810 | 40 | 78 | 20.25 | 0.799373 | 0.014815 | 0 | 0.166667 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2aab0c6ca18cea9c4a630ed6ff5b737be88a272 | 584 | py | Python | PyObjCTest/test_nspathcell.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | PyObjCTest/test_nspathcell.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | PyObjCTest/test_nspathcell.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | import AppKit
from PyObjCTools.TestSupport import TestCase, min_sdk_level
import objc
class TestNSPathCell(TestCase):
def testConstants(self):
self.assertEqual(AppKit.NSPathStyleStandard, 0)
self.assertEqual(AppKit.NSPathStyleNavigationBar, 1)
self.assertEqual(AppKit.NSPathStylePopUp, 2)
... | 30.736842 | 67 | 0.72089 | 62 | 584 | 6.612903 | 0.596774 | 0.146341 | 0.153659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016461 | 0.167808 | 584 | 18 | 68 | 32.444444 | 0.82716 | 0 | 0 | 0 | 0 | 0 | 0.080479 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.214286 | false | 0 | 0.214286 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2ace3780484da5e1757a1dc1939a0bd409d9a46 | 1,044 | py | Python | tweetuoso/tests/tweet_commit.py | c0ding/tweetuoso | 7ba45e492ff486685f4948ae91df5704fd73b8c2 | [
"Apache-2.0"
] | 2 | 2015-03-26T16:46:09.000Z | 2015-04-07T15:21:01.000Z | tweetuoso/tests/tweet_commit.py | c0ding/tweetuoso | 7ba45e492ff486685f4948ae91df5704fd73b8c2 | [
"Apache-2.0"
] | null | null | null | tweetuoso/tests/tweet_commit.py | c0ding/tweetuoso | 7ba45e492ff486685f4948ae91df5704fd73b8c2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__appname__ = 'tweet_commit.py'
__version__ = "0.1"
__author__ = "c0ding"
__licence__ = "Apache v2.0 License"
import tweepy
from git import Repo
from config import keys
from colorama import Fore, Style
# Git repository path
git_path = 'repo_path'
def twitter_authorize()... | 26.769231 | 125 | 0.719349 | 143 | 1,044 | 4.958042 | 0.587413 | 0.046544 | 0.042313 | 0.059238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006696 | 0.141762 | 1,044 | 39 | 126 | 26.769231 | 0.784598 | 0.059387 | 0 | 0 | 0 | 0 | 0.269792 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | null | null | 0 | 0.142857 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2af55f322734d171900b4a869e0b41406833f79 | 1,045 | py | Python | python codes/rock-paper-scissor.py | mflilian/Hacktoberfest2020-1 | a2741872d1921d3fa4ce2c9417a29f033aed4446 | [
"MIT"
] | 266 | 2020-10-06T11:47:03.000Z | 2022-03-08T09:01:00.000Z | python codes/rock-paper-scissor.py | mflilian/Hacktoberfest2020-1 | a2741872d1921d3fa4ce2c9417a29f033aed4446 | [
"MIT"
] | 73 | 2020-10-06T09:14:43.000Z | 2021-10-05T19:02:00.000Z | python codes/rock-paper-scissor.py | mflilian/Hacktoberfest2020-1 | a2741872d1921d3fa4ce2c9417a29f033aed4446 | [
"MIT"
] | 958 | 2020-10-06T10:41:13.000Z | 2022-02-23T11:14:34.000Z | import random
def rps(str):
if (str==1):
return "Rock"
elif (str==2):
return "Paper"
else:
return "Scissor"
print("1. Rock 2.Paper 3.Scissor \n")
choice=int(input())
print("You "+rps(choice))
computer = random.randint(1,3)
print("Computer "+rps(computer))
print()
... | 24.302326 | 48 | 0.546411 | 129 | 1,045 | 4.426357 | 0.20155 | 0.110333 | 0.126095 | 0.115587 | 0.555166 | 0.555166 | 0.555166 | 0.555166 | 0.555166 | 0.483363 | 0 | 0.020779 | 0.263158 | 1,045 | 42 | 49 | 24.880952 | 0.720779 | 0 | 0 | 0.324324 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.027027 | 0 | 0.135135 | 0.459459 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
a2af6d81d719173cc17a52e2d185b5da8065d650 | 960 | py | Python | lingo24/business_documents/locales.py | RossLote/lingo24 | 44d33b2c7dd040ba90f4ea090038aaa22721c9df | [
"MIT"
] | null | null | null | lingo24/business_documents/locales.py | RossLote/lingo24 | 44d33b2c7dd040ba90f4ea090038aaa22721c9df | [
"MIT"
] | null | null | null | lingo24/business_documents/locales.py | RossLote/lingo24 | 44d33b2c7dd040ba90f4ea090038aaa22721c9df | [
"MIT"
] | 1 | 2021-04-21T06:58:29.000Z | 2021-04-21T06:58:29.000Z | from .collections import SortablePaginatableAddressableCollection
class LocaleCollection(SortablePaginatableAddressableCollection):
url_path = 'locales/'
def make_item(self, **kwargs):
return Locale(
locale_id=kwargs['id'],
name=kwargs['name'],
language=kwargs['lan... | 26.666667 | 65 | 0.586458 | 95 | 960 | 5.663158 | 0.305263 | 0.04461 | 0.055762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.297917 | 960 | 35 | 66 | 27.428571 | 0.79822 | 0 | 0 | 0 | 0 | 0 | 0.045833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.037037 | 0.148148 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
a2b215b5a2f755f57fd98d01109967d246545844 | 261 | py | Python | src/scripts/athene/export_current_config_to_json.py | UKPLab/fever-2018-team-athene | 730e4055899680c2ce5d5be1881e36913041d490 | [
"Apache-2.0"
] | 41 | 2019-02-11T13:49:54.000Z | 2022-01-25T19:37:29.000Z | src/scripts/athene/export_current_config_to_json.py | j6mes/fever-athene-system | e2b3cd731e5675c78745d918fd2d194cfd4191ca | [
"Apache-2.0"
] | 22 | 2019-02-20T13:42:28.000Z | 2022-02-09T23:29:32.000Z | src/scripts/athene/export_current_config_to_json.py | j6mes/fever-athene-system | e2b3cd731e5675c78745d918fd2d194cfd4191ca | [
"Apache-2.0"
] | 13 | 2019-03-27T08:42:40.000Z | 2022-03-27T14:14:30.000Z | import argparse
from athene.utils.config import Config
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('output', help='/path/to/file/to/save/config')
args = parser.parse_args()
Config.save_config(args.output)
| 26.1 | 70 | 0.727969 | 34 | 261 | 5.264706 | 0.617647 | 0.111732 | 0.156425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141762 | 261 | 9 | 71 | 29 | 0.799107 | 0 | 0 | 0 | 0 | 0 | 0.16092 | 0.10728 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2b2307f2e78f018af49cd8480b9f8a177af64aa | 2,675 | py | Python | Python_server/TowerDefenseServer/tests/client_test.py | zlociu/TowerDefenceSecure | 3f1ab97670e879aefc0049d247038f47caea2c88 | [
"MIT"
] | null | null | null | Python_server/TowerDefenseServer/tests/client_test.py | zlociu/TowerDefenceSecure | 3f1ab97670e879aefc0049d247038f47caea2c88 | [
"MIT"
] | 4 | 2021-03-30T13:17:16.000Z | 2021-09-22T18:59:25.000Z | Python_server/TowerDefenseServer/tests/client_test.py | zlociu/TowerDefenceSecure | 3f1ab97670e879aefc0049d247038f47caea2c88 | [
"MIT"
] | 1 | 2021-07-10T08:26:15.000Z | 2021-07-10T08:26:15.000Z | import json
import os
from datetime import datetime
from zipfile import ZipFile
import requests
def send_map(map_array, map_path):
content = {"map": map_array, "path": map_path}
r = requests.post('http://127.0.0.1:8000/map-upload', data=json.dumps(content))
print(r.json())
def request_map(map_path):
... | 23.464912 | 83 | 0.568972 | 387 | 2,675 | 3.767442 | 0.232558 | 0.043896 | 0.037037 | 0.030178 | 0.403292 | 0.401235 | 0.346365 | 0.304527 | 0.237311 | 0.222222 | 0 | 0.072536 | 0.25271 | 2,675 | 113 | 84 | 23.672566 | 0.656828 | 0.008224 | 0 | 0.24 | 0 | 0 | 0.174274 | 0.031309 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0.053333 | 0.066667 | 0 | 0.146667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a2b5d7f3999ea02f353a68da1730c5a8977196d5 | 7,264 | py | Python | server/storage.py | Skirmant/electrumx-trump | ce0e4e8c592ea593b2ee9df84126980e54da5053 | [
"MIT"
] | null | null | null | server/storage.py | Skirmant/electrumx-trump | ce0e4e8c592ea593b2ee9df84126980e54da5053 | [
"MIT"
] | null | null | null | server/storage.py | Skirmant/electrumx-trump | ce0e4e8c592ea593b2ee9df84126980e54da5053 | [
"MIT"
] | null | null | null | # Copyright (c) 2016-2017, the ElectrumX authors
#
# All rights reserved.
#
# See the file "LICENCE" for information about the copyright
# and warranty status of this software.
'''Backend database abstraction.
The abstraction needs to be improved to not heavily penalise LMDB.
'''
import os
from functools import part... | 31.720524 | 80 | 0.582874 | 880 | 7,264 | 4.679545 | 0.226136 | 0.034968 | 0.016999 | 0.025255 | 0.275134 | 0.22001 | 0.157115 | 0.137203 | 0.068966 | 0.068966 | 0 | 0.007155 | 0.326542 | 7,264 | 228 | 81 | 31.859649 | 0.834628 | 0.173733 | 0 | 0.421769 | 0 | 0 | 0.00716 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217687 | false | 0 | 0.081633 | 0.034014 | 0.421769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2ba200a6ba25991c1df4ac0c5b615fb6e7544e9 | 643 | py | Python | flaskblog/__init__.py | jagooch/flask_blog | 3253fd69eb050dd35fb57de7f47ceaba373195a8 | [
"MIT"
] | null | null | null | flaskblog/__init__.py | jagooch/flask_blog | 3253fd69eb050dd35fb57de7f47ceaba373195a8 | [
"MIT"
] | 4 | 2021-06-08T21:31:15.000Z | 2022-03-12T00:28:34.000Z | flaskblog/__init__.py | jagooch/flask_blog | 3253fd69eb050dd35fb57de7f47ceaba373195a8 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
# from models import User,Post
# Create flask app
app = Flask(__name__)
#set app config
app.config['SECRET_KEY'] = '894f16ed082df645715f80256549fef5'
app.config['SQLALCHEMY_DATABASE_URI... | 22.964286 | 67 | 0.788491 | 84 | 643 | 5.845238 | 0.416667 | 0.07332 | 0.10387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041293 | 0.133748 | 643 | 27 | 68 | 23.814815 | 0.840215 | 0.236392 | 0 | 0 | 0 | 0 | 0.189583 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a2c438df52e83a517613eac758780c6c53b37767 | 3,386 | py | Python | examples/postgres.py | KLab/grenado | b308ab1b235070817154a7fd84428b2c40a358ba | [
"Apache-2.0"
] | 1 | 2018-03-19T07:39:22.000Z | 2018-03-19T07:39:22.000Z | examples/postgres.py | KLab/grenado | b308ab1b235070817154a7fd84428b2c40a358ba | [
"Apache-2.0"
] | null | null | null | examples/postgres.py | KLab/grenado | b308ab1b235070817154a7fd84428b2c40a358ba | [
"Apache-2.0"
] | null | null | null | ##
# Copyright (c) 2008-2012 Sprymix Inc.
# License: Apache 2.0
##
"""A non-blocking adapter for py-postgresql library.
WARNING: This is just an experiment; use in production is not recommended.
"""
import postgresql
from postgresql.python import socket as pg_socket
from postgresql.driver import pq3
from greenio i... | 25.651515 | 74 | 0.621973 | 397 | 3,386 | 5.083123 | 0.329975 | 0.043608 | 0.027255 | 0.037661 | 0.10109 | 0.10109 | 0.10109 | 0.081269 | 0.051536 | 0.051536 | 0 | 0.016091 | 0.24749 | 3,386 | 131 | 75 | 25.847328 | 0.775903 | 0.024808 | 0 | 0.105882 | 0 | 0 | 0.05596 | 0.017389 | 0 | 0 | 0 | 0 | 0.011765 | 0 | null | null | 0.023529 | 0.082353 | null | null | 0.047059 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2cbc0254f02651d27c33bf26944accebce63151 | 22,562 | py | Python | mtrain.py | trevor-wieland/MTrainAI | 47bab3bf3af9e5426a822a7d14586f1798674cd7 | [
"MIT"
] | null | null | null | mtrain.py | trevor-wieland/MTrainAI | 47bab3bf3af9e5426a822a7d14586f1798674cd7 | [
"MIT"
] | null | null | null | mtrain.py | trevor-wieland/MTrainAI | 47bab3bf3af9e5426a822a7d14586f1798674cd7 | [
"MIT"
] | null | null | null | import random
import treeclasses
import playerclasses
import dominoclasses
import pandas as pd
import numpy as np
import copy
def generate_players(num_players, modes, domino_size, filename):
"""
Creates player objects based on modes passed to this script
Returns a list of the player objects in order of cre... | 53.212264 | 138 | 0.513651 | 2,529 | 22,562 | 4.392645 | 0.117833 | 0.05023 | 0.05446 | 0.079215 | 0.537942 | 0.533711 | 0.507336 | 0.465298 | 0.458907 | 0.444324 | 0 | 0.012001 | 0.405416 | 22,562 | 424 | 139 | 53.212264 | 0.816101 | 0.134297 | 0 | 0.569182 | 1 | 0 | 0.057865 | 0.001083 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012579 | false | 0 | 0.022013 | 0 | 0.04717 | 0.084906 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2cd7d04cb0be68644b80df191396aa080c4c06d | 1,364 | py | Python | applications/GeoMechanicsApplication/python_scripts/gap_closure_interface_activation_process.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 778 | 2017-01-27T16:29:17.000Z | 2022-03-30T03:01:51.000Z | applications/GeoMechanicsApplication/python_scripts/gap_closure_interface_activation_process.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 6,634 | 2017-01-15T22:56:13.000Z | 2022-03-31T15:03:36.000Z | applications/GeoMechanicsApplication/python_scripts/gap_closure_interface_activation_process.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 224 | 2017-02-07T14:12:49.000Z | 2022-03-06T23:09:34.000Z | import KratosMultiphysics
import KratosMultiphysics.GeoMechanicsApplication as KratosGeo
def Factory(settings, Model):
if(type(settings) != KratosMultiphysics.Parameters):
raise Exception("expected input shall be a Parameters object, encapsulating a json string")
return GapClosureInterfaceActivationPro... | 40.117647 | 99 | 0.760264 | 126 | 1,364 | 8.031746 | 0.404762 | 0.044466 | 0.059289 | 0.041502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148827 | 1,364 | 33 | 100 | 41.333333 | 0.871662 | 0.046921 | 0 | 0 | 0 | 0 | 0.159599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.086957 | 0 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2cfd7972fc058c2e40043307a2ff284bbd22e94 | 264 | py | Python | Square/Hotfire.py | kevin200617/U-Design-Summer-Camp-Code | bf930dbf65ac0a3e827c1ffd70863f1f8c519a76 | [
"MIT"
] | null | null | null | Square/Hotfire.py | kevin200617/U-Design-Summer-Camp-Code | bf930dbf65ac0a3e827c1ffd70863f1f8c519a76 | [
"MIT"
] | null | null | null | Square/Hotfire.py | kevin200617/U-Design-Summer-Camp-Code | bf930dbf65ac0a3e827c1ffd70863f1f8c519a76 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from ev3dev2.sound import Sound
sound = Sound()
# Play a 200Hz tone for 2 seconds and then wait 0.4 seconds
# before playing the next tone, 800Hz for 1 second
# followed by a 3 second delay
sound.tone([(200, 2000, 400),(800, 1000, 3000)]) | 26.4 | 59 | 0.719697 | 47 | 264 | 4.042553 | 0.787234 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16055 | 0.174242 | 264 | 10 | 60 | 26.4 | 0.711009 | 0.594697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a2d20ac57ebb1f4c97a178d1a3359d51a4bf8640 | 4,444 | py | Python | python_pubsub/cgitb.py | kragen/mod_pubsub | 9abcdb07b02b7979bf4538ac8047783100ecb7bc | [
"BSD-3-Clause-Clear"
] | 1 | 2021-04-05T14:53:29.000Z | 2021-04-05T14:53:29.000Z | python_pubsub/cgitb.py | kragen/mod_pubsub | 9abcdb07b02b7979bf4538ac8047783100ecb7bc | [
"BSD-3-Clause-Clear"
] | null | null | null | python_pubsub/cgitb.py | kragen/mod_pubsub | 9abcdb07b02b7979bf4538ac8047783100ecb7bc | [
"BSD-3-Clause-Clear"
] | 1 | 2021-04-05T14:53:41.000Z | 2021-04-05T14:53:41.000Z | # cgitb.py -- a traceback printer for CGI scripts
# We got this code from http://lfw.org/python/ -- thanks ?!ng
# FIXME: Does not escape HTML markup in exceptions.
# This exposes browsers to inter-domain security compromises and spoofing.
import sys, os, types, string, keyword, linecache, tokenize, inspect, pydoc
... | 38.643478 | 79 | 0.537804 | 536 | 4,444 | 4.421642 | 0.354478 | 0.026582 | 0.027426 | 0.03038 | 0.084388 | 0.074262 | 0.074262 | 0 | 0 | 0 | 0 | 0.013592 | 0.30468 | 4,444 | 114 | 80 | 38.982456 | 0.753398 | 0.067282 | 0 | 0.095745 | 0 | 0 | 0.214355 | 0.051957 | 0 | 0 | 0 | 0.008772 | 0 | 0 | null | null | 0.010638 | 0.021277 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2d2da2bdaef9992afd0f031044098e213eeb273 | 3,189 | py | Python | json2obsidian.py | dearmiles/TheBrain2TiddlyNObsidian | f8c23ad14a674c7a0a6d6d6444d06e7a3d7a6e65 | [
"MIT"
] | null | null | null | json2obsidian.py | dearmiles/TheBrain2TiddlyNObsidian | f8c23ad14a674c7a0a6d6d6444d06e7a3d7a6e65 | [
"MIT"
] | null | null | null | json2obsidian.py | dearmiles/TheBrain2TiddlyNObsidian | f8c23ad14a674c7a0a6d6d6444d06e7a3d7a6e65 | [
"MIT"
] | null | null | null | import codecs
import json
import markdownify
strSourcePath = 'd:\\工作\\b2t\\'
strMDPath = 'd:\\工作\\b2t\\markdown\\'
def readjson(strFileName):
try:
jsonfin = codecs.open('d:\\工作\\b2t\\thoughts.json', 'r', 'utf-8')
objthoughts = json.load(jsonfin)
except Exception as e:
pri... | 28.473214 | 187 | 0.57322 | 272 | 3,189 | 6.580882 | 0.352941 | 0.022346 | 0.010056 | 0.024581 | 0.046927 | 0.046927 | 0.046927 | 0.046927 | 0.046927 | 0 | 0 | 0.007052 | 0.288492 | 3,189 | 111 | 188 | 28.72973 | 0.781402 | 0.048918 | 0 | 0.15942 | 0 | 0 | 0.068729 | 0.016838 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0.072464 | 0.043478 | 0 | 0.144928 | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a2d3346553777c3b7c9ec4597044a2bb0de21875 | 2,699 | py | Python | apischema/types.py | callumforrester/apischema | bc4d8fbba019b01d2089da064486ba9718a98d11 | [
"MIT"
] | null | null | null | apischema/types.py | callumforrester/apischema | bc4d8fbba019b01d2089da064486ba9718a98d11 | [
"MIT"
] | null | null | null | apischema/types.py | callumforrester/apischema | bc4d8fbba019b01d2089da064486ba9718a98d11 | [
"MIT"
] | null | null | null | import collections.abc
import sys
from enum import Enum, auto
from itertools import chain
from types import MappingProxyType
from typing import (
AbstractSet,
Any,
Collection,
Dict,
FrozenSet,
List,
Mapping,
MutableMapping,
MutableSequence,
MutableSet,
Sequence,
Set,
... | 21.943089 | 84 | 0.649129 | 289 | 2,699 | 5.871972 | 0.321799 | 0.065999 | 0.026517 | 0.023571 | 0.083677 | 0.058928 | 0.058928 | 0.058928 | 0 | 0 | 0 | 0.004431 | 0.247499 | 2,699 | 122 | 85 | 22.122951 | 0.831118 | 0.041497 | 0 | 0.061856 | 0 | 0 | 0.013173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113402 | false | 0 | 0.061856 | 0.103093 | 0.371134 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
a2d8f9b78069a28634dd8cf9d1ea794d7aba6bc8 | 1,018 | py | Python | int.p4app/nc.py | baru64/int-p4 | 237122b194294e9a663fcf5a11964183c71c513d | [
"Apache-2.0"
] | 3 | 2021-04-05T07:31:51.000Z | 2022-01-19T10:23:16.000Z | int.p4app/nc.py | baru64/int-p4 | 237122b194294e9a663fcf5a11964183c71c513d | [
"Apache-2.0"
] | null | null | null | int.p4app/nc.py | baru64/int-p4 | 237122b194294e9a663fcf5a11964183c71c513d | [
"Apache-2.0"
] | 2 | 2020-10-27T02:56:34.000Z | 2022-01-06T03:16:32.000Z | # simple netcat in python2
import sys
import socket
def netcat(host, port, is_server):
if is_server:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((host, port))
s.listen(1)
conn, _ = s.accept()
while True:
data = conn.recv(1024)
if not... | 27.513514 | 61 | 0.514735 | 139 | 1,018 | 3.654676 | 0.431655 | 0.096457 | 0.051181 | 0.074803 | 0.26378 | 0.26378 | 0.26378 | 0.26378 | 0.165354 | 0.165354 | 0 | 0.019667 | 0.350688 | 1,018 | 36 | 62 | 28.277778 | 0.748865 | 0.023576 | 0 | 0.28125 | 0 | 0 | 0.122984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2dde3339904f27d36623381146dd7da659ec09f | 1,685 | py | Python | facial_expression_program_cython/Gettingthecorrectframerate.pycrawl_image.py | NhamNgocTuanAnh/Real_Time_Facial_Expression_Recognition | 7e7b1ce9eb7b5292087752501c8cd13ea79cc07d | [
"Apache-2.0"
] | null | null | null | facial_expression_program_cython/Gettingthecorrectframerate.pycrawl_image.py | NhamNgocTuanAnh/Real_Time_Facial_Expression_Recognition | 7e7b1ce9eb7b5292087752501c8cd13ea79cc07d | [
"Apache-2.0"
] | null | null | null | facial_expression_program_cython/Gettingthecorrectframerate.pycrawl_image.py | NhamNgocTuanAnh/Real_Time_Facial_Expression_Recognition | 7e7b1ce9eb7b5292087752501c8cd13ea79cc07d | [
"Apache-2.0"
] | null | null | null | #include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <ctime>
#include <windows.h>
using namespace cv;
int main(int argc, char** argv)
{
char* filename = argc >= 2 ? argv[1] : (char*)"c:/768x576.avi";
VideoCapture capture(filename); // open video file
if (!capture.isOpened()) // check i... | 26.746032 | 154 | 0.571513 | 216 | 1,685 | 4.356481 | 0.439815 | 0.026567 | 0.053135 | 0.02763 | 0.121148 | 0.074389 | 0.074389 | 0.074389 | 0.074389 | 0.074389 | 0 | 0.04856 | 0.278932 | 1,685 | 62 | 155 | 27.177419 | 0.725926 | 0.054599 | 0 | 0 | 0 | 0 | 0.040277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2e0061a830a2b8c617fa37cf869c88311fb361b | 16,421 | py | Python | scripts/clashFunctions.py | XiyuChenFAU/kgs_vibration_entropy | 117c4a3d39ec6285eccc1d3b8e5de9a21db21ec9 | [
"MIT"
] | 1 | 2020-05-23T18:26:14.000Z | 2020-05-23T18:26:14.000Z | scripts/clashFunctions.py | XiyuChenFAU/kgs_vibration_entropy | 117c4a3d39ec6285eccc1d3b8e5de9a21db21ec9 | [
"MIT"
] | 8 | 2017-01-26T19:54:38.000Z | 2021-02-06T16:06:30.000Z | scripts/clashFunctions.py | XiyuChenFAU/kgs_vibration_entropy | 117c4a3d39ec6285eccc1d3b8e5de9a21db21ec9 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
import os
import numpy as np
import fnmatch
import matplotlib.colors as colors
import matplotlib.cm as cmx
import matplotlib as mpl
mpl.use('Agg')
from combineKGSPath_steps import extractPath
from math import log
import csv
from matplotlib.ticker import MultipleLocator, LinearLocator, Forma... | 26.700813 | 129 | 0.687108 | 2,008 | 16,421 | 5.590637 | 0.133964 | 0.013896 | 0.008017 | 0.011402 | 0.643773 | 0.62088 | 0.60057 | 0.587386 | 0.587386 | 0.582398 | 0 | 0.022468 | 0.194994 | 16,421 | 614 | 130 | 26.7443 | 0.826765 | 0.387735 | 0 | 0.598266 | 0 | 0 | 0.037644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043353 | null | null | 0.00289 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2f1f34cbd6ef29edf540514b5a8f34ad9c3a124 | 3,629 | py | Python | trove/common/template.py | citrix-openstack-build/trove | 52506396dd7bd095d1623d40cf2e67f2b478dc1d | [
"Apache-2.0"
] | null | null | null | trove/common/template.py | citrix-openstack-build/trove | 52506396dd7bd095d1623d40cf2e67f2b478dc1d | [
"Apache-2.0"
] | null | null | null | trove/common/template.py | citrix-openstack-build/trove | 52506396dd7bd095d1623d40cf2e67f2b478dc1d | [
"Apache-2.0"
] | null | null | null | # Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 30.495798 | 78 | 0.622486 | 398 | 3,629 | 5.577889 | 0.454774 | 0.036036 | 0.013514 | 0.014414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013298 | 0.274731 | 3,629 | 118 | 79 | 30.754237 | 0.830167 | 0.295123 | 0 | 0.148649 | 0 | 0 | 0.622103 | 0.053808 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.013514 | 0.013514 | 0.148649 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2f4ce157bce1343456fe25456dd579b102b6620 | 4,423 | py | Python | BoxesDots.py | lmunro0402/ShallowBlue | 500c509e35db51ae6e9cb2ebd20e6cd5df0fb913 | [
"MIT"
] | null | null | null | BoxesDots.py | lmunro0402/ShallowBlue | 500c509e35db51ae6e9cb2ebd20e6cd5df0fb913 | [
"MIT"
] | null | null | null | BoxesDots.py | lmunro0402/ShallowBlue | 500c509e35db51ae6e9cb2ebd20e6cd5df0fb913 | [
"MIT"
] | null | null | null | # Dots & Boxes Class
#
# Author: Luke Munro
import copy
from Minimax import Minimax
from Player import Player
import utils as UTIL
class BoxesDots:
def __init__(self, dim, players):
""" Only square games allowed"""
self.dim = dim
assert self.dim < 10, "Less than 10 please"
self.usedBoxes = 0
self.players... | 27.134969 | 82 | 0.615193 | 651 | 4,423 | 4.095238 | 0.221198 | 0.077644 | 0.102401 | 0.036759 | 0.28057 | 0.252813 | 0.190173 | 0.095274 | 0.073518 | 0.03976 | 0 | 0.017232 | 0.186525 | 4,423 | 163 | 83 | 27.134969 | 0.723735 | 0.116437 | 0 | 0.24 | 0 | 0 | 0.043027 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0 | null | null | 0 | 0.032 | null | null | 0.056 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2f7db660c0fb65076451bdb939fa6f296142a73 | 4,154 | py | Python | figures/plot_pareto.py | wdlynch/symbolic_experiments | 8c0c9bf93edc8f58ed1e027cf5704dadd57e853a | [
"MIT"
] | null | null | null | figures/plot_pareto.py | wdlynch/symbolic_experiments | 8c0c9bf93edc8f58ed1e027cf5704dadd57e853a | [
"MIT"
] | null | null | null | figures/plot_pareto.py | wdlynch/symbolic_experiments | 8c0c9bf93edc8f58ed1e027cf5704dadd57e853a | [
"MIT"
] | 1 | 2022-01-25T18:35:44.000Z | 2022-01-25T18:35:44.000Z |
# this script generates kernel density estimation plots of sensitivity indices
# for results according to cluster (hue), and category, neighborhood, and lag of input
import os
import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
from matplotlib import rcParams, cycler, colors
p... | 38.462963 | 118 | 0.704863 | 626 | 4,154 | 4.523962 | 0.316294 | 0.037076 | 0.019774 | 0.021186 | 0.394068 | 0.310028 | 0.18291 | 0.143362 | 0.076271 | 0.040254 | 0 | 0.030213 | 0.107607 | 4,154 | 108 | 119 | 38.462963 | 0.733747 | 0.060424 | 0 | 0.073171 | 1 | 0 | 0.226841 | 0.005902 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012195 | false | 0 | 0.085366 | 0 | 0.097561 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2f8967b3256be81385dd1915377471fc90897f7 | 504 | py | Python | proj files/walk.py | ZhenoSan/DistributedFileSystem | 8776e0ecffcc06ea213603ad0ca202e15595297c | [
"MIT"
] | 1 | 2021-03-01T08:49:26.000Z | 2021-03-01T08:49:26.000Z | proj files/walk.py | ZhenoSan/DistributedFileSystem | 8776e0ecffcc06ea213603ad0ca202e15595297c | [
"MIT"
] | null | null | null | proj files/walk.py | ZhenoSan/DistributedFileSystem | 8776e0ecffcc06ea213603ad0ca202e15595297c | [
"MIT"
] | null | null | null | import os
fileDirectoryRoot = 'root'
localfilelist=[]
def generateList():
del localfilelist[:]
for root, dirs, files in os.walk(fileDirectoryRoot):
#localfilelist.append(os.path.relpath(root,fileDirectoryRoot))
prefx = os.path.relpath(root,fileDirectoryRoot)
if (prefx != '.'):
prefx = '/'+prefx
else:
p... | 22.909091 | 64 | 0.690476 | 59 | 504 | 5.898305 | 0.389831 | 0.163793 | 0.074713 | 0.097701 | 0.195402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156746 | 504 | 21 | 65 | 24 | 0.818824 | 0.121032 | 0 | 0 | 1 | 0 | 0.020362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.111111 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2f92e2ebfa27b19e475175a620672f79bd1bcf9 | 1,784 | py | Python | ida_export/preselect/utils.py | RUB-SysSec/tropyhunter | 7d027bf18944c641296ed5d68462f4400dbc055e | [
"MIT"
] | 1 | 2020-11-06T21:18:01.000Z | 2020-11-06T21:18:01.000Z | ida_export/preselect/utils.py | RUB-SysSec/tropyhunter | 7d027bf18944c641296ed5d68462f4400dbc055e | [
"MIT"
] | null | null | null | ida_export/preselect/utils.py | RUB-SysSec/tropyhunter | 7d027bf18944c641296ed5d68462f4400dbc055e | [
"MIT"
] | null | null | null | import idautils
import idaapi
import idc
def instructions(start_ea, end_ea):
"""
Returns the list of instruction addresses in the given address range (including).
"""
return list(idautils.Heads(start_ea, end_ea))
def basic_blocks(func_addr):
"""
Generator that yields tuples of start and end ... | 27.030303 | 105 | 0.691704 | 249 | 1,784 | 4.7751 | 0.236948 | 0.053827 | 0.050463 | 0.060555 | 0.415475 | 0.239697 | 0.065601 | 0.065601 | 0.065601 | 0.065601 | 0 | 0.00219 | 0.232063 | 1,784 | 65 | 106 | 27.446154 | 0.865693 | 0.334081 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.103448 | 0 | 0.448276 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2fa6cebcce4f2d3559f28089caa7504e6756320 | 1,287 | py | Python | dwh_analytic/dags/data_warehouse_prod/schema/dim_field.py | dnguyenngoc/analytic | d609a93e96e7c546ad3ee3ebd4e13309ddf575f8 | [
"MIT"
] | null | null | null | dwh_analytic/dags/data_warehouse_prod/schema/dim_field.py | dnguyenngoc/analytic | d609a93e96e7c546ad3ee3ebd4e13309ddf575f8 | [
"MIT"
] | null | null | null | dwh_analytic/dags/data_warehouse_prod/schema/dim_field.py | dnguyenngoc/analytic | d609a93e96e7c546ad3ee3ebd4e13309ddf575f8 | [
"MIT"
] | null | null | null | class DimFieldModel:
def __init__(
self,
*kwargs,
field_key: str,
project_id: str,
name: str,
control_type: str,
default_value: str = None,
counted_character: bool,
counted_character_date_from_key: int,
counted_character_time_from_key: ... | 40.21875 | 80 | 0.713287 | 160 | 1,287 | 5.16875 | 0.18125 | 0.406288 | 0.169287 | 0.106409 | 0.449819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239316 | 1,287 | 32 | 81 | 40.21875 | 0.84474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0 | 0 | 0.064516 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2fc1e37575ff920890251095e6ca64b931fc162 | 1,215 | py | Python | app/__init__.py | fredpan/Prosopagnosia_Web_Server | b56b58eccdbbde6b158802d49f7bcc1b44b18b69 | [
"Apache-2.0"
] | null | null | null | app/__init__.py | fredpan/Prosopagnosia_Web_Server | b56b58eccdbbde6b158802d49f7bcc1b44b18b69 | [
"Apache-2.0"
] | null | null | null | app/__init__.py | fredpan/Prosopagnosia_Web_Server | b56b58eccdbbde6b158802d49f7bcc1b44b18b69 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 EraO Prosopagnosia Helper Dev Team, Liren Pan, Yixiao Hong, Hongzheng Xu, Stephen Huang, Tiancong Wang
#
# Supervised by Prof. Steve Mann (http://www.eecg.toronto.edu/~mann/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with th... | 34.714286 | 120 | 0.759671 | 185 | 1,215 | 4.935135 | 0.691892 | 0.065717 | 0.056955 | 0.035049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030333 | 0.158848 | 1,215 | 34 | 121 | 35.735294 | 0.863014 | 0.616461 | 0 | 0 | 0 | 0.083333 | 0.1875 | 0.147321 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.5 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0c01107342f60ccca59eadb6c0421bf19b34e644 | 7,928 | py | Python | parse_papers.py | WideOpen/datawatch | 90d33a50cff7028a4a596ca96454bfdb5eaa1b15 | [
"MIT"
] | 9 | 2017-06-08T18:54:28.000Z | 2017-06-26T14:51:57.000Z | parse_papers.py | WideOpen/datawatch | 90d33a50cff7028a4a596ca96454bfdb5eaa1b15 | [
"MIT"
] | null | null | null | parse_papers.py | WideOpen/datawatch | 90d33a50cff7028a4a596ca96454bfdb5eaa1b15 | [
"MIT"
] | null | null | null | # coding: utf-8
import tarfile
import xml.etree.ElementTree as ET
import datetime
import tqdm
import re
import sqlite3
import unicodedata
from contextlib import closing
import os
import logging
logging.basicConfig(filename='parse_papers.log', level=logging.DEBUG)
def innertext(el):
return "".join(el.itertext()... | 27.150685 | 156 | 0.606206 | 1,058 | 7,928 | 4.42344 | 0.200378 | 0.014103 | 0.015385 | 0.022436 | 0.271581 | 0.234615 | 0.213462 | 0.15812 | 0.12906 | 0.121154 | 0 | 0.004619 | 0.262614 | 7,928 | 291 | 157 | 27.243986 | 0.795929 | 0.007316 | 0 | 0.246512 | 0 | 0.013953 | 0.238271 | 0.048951 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046512 | null | null | 0.013953 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c01248430af3879d19e0ed6be2d239da3eef941 | 29,269 | py | Python | fragscapy/modgenerator.py | Fratso/Fragscapy | b824db6fa67a743a91c26f6239c7ee9dc86ea7fe | [
"MIT"
] | 56 | 2019-09-19T09:09:19.000Z | 2022-02-07T01:48:48.000Z | fragscapy/modgenerator.py | Fratso/Fragscapy | b824db6fa67a743a91c26f6239c7ee9dc86ea7fe | [
"MIT"
] | 5 | 2020-01-30T15:32:32.000Z | 2021-05-27T20:01:52.000Z | fragscapy/modgenerator.py | Fratso/Fragscapy | b824db6fa67a743a91c26f6239c7ee9dc86ea7fe | [
"MIT"
] | 13 | 2019-09-20T16:11:58.000Z | 2021-11-23T06:33:42.000Z | """Generator for modifications and modifications lists.
The objects in this module are generator used to generate the `Mod`
and the `ModList` based on precise parametrization.
The `ModOption`-derived classes are used to generates 1 option (e.g. an
integer, a string, ...) based on a type of option (e.g. a sequence, a ... | 31.370847 | 80 | 0.575284 | 3,746 | 29,269 | 4.341164 | 0.093166 | 0.037449 | 0.018263 | 0.024782 | 0.568872 | 0.509777 | 0.469684 | 0.41102 | 0.363793 | 0.321609 | 0 | 0.013744 | 0.316376 | 29,269 | 932 | 81 | 31.404506 | 0.79894 | 0.440432 | 0 | 0.41519 | 1 | 0 | 0.101592 | 0.010549 | 0 | 0 | 0 | 0 | 0 | 1 | 0.174684 | false | 0 | 0.025316 | 0.078481 | 0.367089 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c0805fab254a1390f0465aed23339a616f9df06 | 213 | py | Python | Data Science Mini Projects/Data Science Mini Proj 2/2.2.py | c-u-p/data-science-project | ae8a9e178d8d0e16adfa55fa6f462e7193d0aa45 | [
"MIT"
] | null | null | null | Data Science Mini Projects/Data Science Mini Proj 2/2.2.py | c-u-p/data-science-project | ae8a9e178d8d0e16adfa55fa6f462e7193d0aa45 | [
"MIT"
] | null | null | null | Data Science Mini Projects/Data Science Mini Proj 2/2.2.py | c-u-p/data-science-project | ae8a9e178d8d0e16adfa55fa6f462e7193d0aa45 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import seaborn as sea
sea.set(style = 'whitegrid')
iris = sea.load_dataset('iris')
ax = sea.stripplot(x = 'species', y = 'sepal_length', data = iris)
plt.title('Graph')
plt.show() | 23.666667 | 66 | 0.70892 | 33 | 213 | 4.515152 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131455 | 213 | 9 | 67 | 23.666667 | 0.805405 | 0 | 0 | 0 | 0 | 0 | 0.172897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c1041ebe77cd6041663050c11370a3e8999a9d2 | 518 | py | Python | perftest1/migrations/0003_auto_20200428_1915.py | mbranko/perftest-1 | 11a4a5c23a9469bf6653e6bf3eda0862ccc078cd | [
"MIT"
] | null | null | null | perftest1/migrations/0003_auto_20200428_1915.py | mbranko/perftest-1 | 11a4a5c23a9469bf6653e6bf3eda0862ccc078cd | [
"MIT"
] | 3 | 2021-03-30T13:16:49.000Z | 2021-09-22T18:56:38.000Z | perftest1/migrations/0003_auto_20200428_1915.py | mbranko/perftest-1 | 11a4a5c23a9469bf6653e6bf3eda0862ccc078cd | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-04-28 19:15
from django.db import migrations
from django.contrib.auth.models import User
def add_user(apps, schema_editor):
user = User.objects.create_user('ucenik.1@gmail.com', 'ucenik.1@gmail.com', '12345')
user.first_name = 'Učenik'
user.last_name = 'Učeniković'
... | 22.521739 | 88 | 0.681467 | 69 | 518 | 4.985507 | 0.695652 | 0.05814 | 0.069767 | 0.087209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093079 | 0.19112 | 518 | 22 | 89 | 23.545455 | 0.727924 | 0.086873 | 0 | 0 | 1 | 0 | 0.18896 | 0.048832 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c1619f9288495aafe7b6648cd3434d9b747f9ae | 5,981 | py | Python | pirauber_project/settings.py | andrenbrandao/pirauber | d7c5647ec6df698fa3d7397907ff629c74cc76b9 | [
"MIT"
] | null | null | null | pirauber_project/settings.py | andrenbrandao/pirauber | d7c5647ec6df698fa3d7397907ff629c74cc76b9 | [
"MIT"
] | 6 | 2020-06-05T23:27:38.000Z | 2022-02-10T08:14:16.000Z | pirauber_project/settings.py | andrenbrandao/pirauber | d7c5647ec6df698fa3d7397907ff629c74cc76b9 | [
"MIT"
] | null | null | null | """
Django settings for pirauber_project project.
Generated by 'django-admin startproject' using Django 2.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
imp... | 26.820628 | 91 | 0.727805 | 698 | 5,981 | 6.005731 | 0.362464 | 0.058922 | 0.032443 | 0.041746 | 0.149094 | 0.133349 | 0.076097 | 0.063693 | 0.028626 | 0 | 0 | 0.010464 | 0.153152 | 5,981 | 222 | 92 | 26.941441 | 0.817177 | 0.206153 | 0 | 0 | 1 | 0 | 0.458404 | 0.334041 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.045455 | 0.022727 | 0 | 0.022727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c17aa3ed1410e271da3bf33a73a65207d3bf155 | 2,666 | py | Python | slitronomy/Optimization/proximals.py | aymgal/SLITronomy | 56d1528fc7c96f6dce687dec99cbab56de30216c | [
"MIT"
] | 7 | 2019-12-06T17:39:06.000Z | 2021-12-21T10:17:13.000Z | slitronomy/Optimization/proximals.py | aymgal/SLITronomy | 56d1528fc7c96f6dce687dec99cbab56de30216c | [
"MIT"
] | 14 | 2020-02-28T17:08:39.000Z | 2022-01-18T21:16:13.000Z | slitronomy/Optimization/proximals.py | aymgal/SLITronomy | 56d1528fc7c96f6dce687dec99cbab56de30216c | [
"MIT"
] | 2 | 2020-02-18T12:23:11.000Z | 2021-04-22T16:24:22.000Z | __author__ = 'aymgal'
# implementations of proximal operators adapted to sparsity
import numpy as np
from slitronomy.Util import util
def prox_sparsity_wavelets(coeffs_input, step, level_const=None, level_pixels=None, l_norm=1):
"""
Apply soft or hard threshold on all wavelets scales excepts the last one (t... | 35.078947 | 123 | 0.627157 | 323 | 2,666 | 4.987616 | 0.346749 | 0.043451 | 0.024829 | 0.032278 | 0.040968 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007945 | 0.291823 | 2,666 | 75 | 124 | 35.546667 | 0.845339 | 0.222056 | 0 | 0.085106 | 0 | 0 | 0.053801 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.06383 | false | 0 | 0.042553 | 0 | 0.191489 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c2252fa3656cbb8366980b4e0501f49db685624 | 3,935 | py | Python | tangerine/factories.py | shacker/tangerine | 0c52d61d7cbbb856c09790b941b75fb761cb7505 | [
"BSD-2-Clause"
] | 1 | 2018-03-29T05:16:40.000Z | 2018-03-29T05:16:40.000Z | tangerine/factories.py | shacker/tangerine | 0c52d61d7cbbb856c09790b941b75fb761cb7505 | [
"BSD-2-Clause"
] | null | null | null | tangerine/factories.py | shacker/tangerine | 0c52d61d7cbbb856c09790b941b75fb761cb7505 | [
"BSD-2-Clause"
] | null | null | null | import factory
import random
from faker import Faker
from titlecase import titlecase
from django.contrib.auth import get_user_model
from django.utils.text import slugify
from django.utils.timezone import get_current_timezone
from .models import Category, Post, RelatedLinkGroup, RelatedLink, Blog, Comment, AuthorPage
... | 31.733871 | 104 | 0.693774 | 498 | 3,935 | 5.385542 | 0.37751 | 0.058166 | 0.087248 | 0.090604 | 0.244594 | 0.195377 | 0.094705 | 0.094705 | 0.045488 | 0.045488 | 0 | 0.005358 | 0.193647 | 3,935 | 123 | 105 | 31.99187 | 0.839899 | 0.167726 | 0 | 0.177215 | 0 | 0 | 0.057616 | 0.006436 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075949 | false | 0 | 0.101266 | 0 | 0.683544 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0c249f75c4714e55434d0ad92729b37ec87e7d05 | 12,974 | py | Python | src/python_pachyderm/experimental/mixin/auth.py | sjezewski/pypachy | 4bc022d0c73140475f9bd0acd5c0e7204609de26 | [
"Apache-2.0"
] | 2 | 2017-02-01T14:22:34.000Z | 2017-02-01T19:58:54.000Z | src/python_pachyderm/experimental/mixin/auth.py | sjezewski/pypachy | 4bc022d0c73140475f9bd0acd5c0e7204609de26 | [
"Apache-2.0"
] | 3 | 2018-02-13T20:40:59.000Z | 2018-02-13T22:23:41.000Z | src/python_pachyderm/experimental/mixin/auth.py | sjezewski/pypachy | 4bc022d0c73140475f9bd0acd5c0e7204609de26 | [
"Apache-2.0"
] | null | null | null | from typing import Dict, List
from grpc import RpcError
from python_pachyderm.errors import AuthServiceNotActivated
from python_pachyderm.service import Service
from python_pachyderm.experimental.service import auth_proto
# bp_to_pb: OidcConfig -> OIDCConfig
# bp_to_pb: GetOidcLoginResponse -> GetOIDCLoginResponse
... | 32.193548 | 93 | 0.578156 | 1,401 | 12,974 | 5.249822 | 0.197716 | 0.047723 | 0.034262 | 0.044052 | 0.363562 | 0.318695 | 0.304691 | 0.275323 | 0.249626 | 0.229504 | 0 | 0.00171 | 0.323724 | 12,974 | 402 | 94 | 32.273632 | 0.836563 | 0.547403 | 0 | 0.156627 | 0 | 0 | 0.091402 | 0.010844 | 0 | 0 | 0 | 0 | 0 | 1 | 0.240964 | false | 0 | 0.060241 | 0 | 0.457831 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c28993162fa09c23277c9ba6399ebbbe7d50af9 | 739 | py | Python | crawler/tool.py | dgut-group-ten/crawler | 362508bb45ee5ca06db14800d093d558126521d8 | [
"MIT"
] | null | null | null | crawler/tool.py | dgut-group-ten/crawler | 362508bb45ee5ca06db14800d093d558126521d8 | [
"MIT"
] | null | null | null | crawler/tool.py | dgut-group-ten/crawler | 362508bb45ee5ca06db14800d093d558126521d8 | [
"MIT"
] | null | null | null | import os
import uuid
import paramiko
import requests
def random_filename(filename):
ext = os.path.splitext(filename)[1]
new_filename = uuid.uuid4().hex + ext
return new_filename
def sftp_upload(host, port, username, password, local, remote):
sf = paramiko.Transport(host, port)
sf.connect(usern... | 26.392857 | 87 | 0.64682 | 96 | 739 | 4.927083 | 0.510417 | 0.05074 | 0.042283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003565 | 0.240866 | 739 | 27 | 88 | 27.37037 | 0.839572 | 0.046008 | 0 | 0 | 0 | 0 | 0.02432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.095238 | 0.190476 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0c2cc6750c2344c966353fb7dc98f710ce9f22ca | 1,365 | py | Python | astropop/math/array.py | rudnerlq/astropop | 37688c6b91fa9718202a1c4e85c99049f591a3fc | [
"BSD-3-Clause"
] | 3 | 2020-06-15T18:09:15.000Z | 2020-06-16T00:58:21.000Z | astropop/math/array.py | rudnerlq/astropop | 37688c6b91fa9718202a1c4e85c99049f591a3fc | [
"BSD-3-Clause"
] | null | null | null | astropop/math/array.py | rudnerlq/astropop | 37688c6b91fa9718202a1c4e85c99049f591a3fc | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Small module for simple matrix works. Possible deprecated in future.
"""
import numpy as np
__all__ = ['xy2r', 'iraf_indices', 'trim_array']
def xy2r(x, y, data, xc, yc):
"""Convert (x, y) values to distance of a (xc, yc) position."""
r = ... | 25.754717 | 75 | 0.608791 | 243 | 1,365 | 3.304527 | 0.37037 | 0.012453 | 0.01868 | 0.029888 | 0.059776 | 0.059776 | 0.059776 | 0.059776 | 0 | 0 | 0 | 0.021443 | 0.248352 | 1,365 | 52 | 76 | 26.25 | 0.761209 | 0.364835 | 0 | 0 | 0 | 0 | 0.031288 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.125 | false | 0 | 0.041667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c354eb15080404ad8523ce1cfc8635da518361f | 304 | py | Python | store_app/views.py | nastinsk/django-models | 4ad5b73906711315a6a2e562e80167bccbe489e5 | [
"MIT"
] | null | null | null | store_app/views.py | nastinsk/django-models | 4ad5b73906711315a6a2e562e80167bccbe489e5 | [
"MIT"
] | 6 | 2020-06-05T20:51:30.000Z | 2022-03-12T00:15:03.000Z | store_app/views.py | nastinsk/django-models | 4ad5b73906711315a6a2e562e80167bccbe489e5 | [
"MIT"
] | null | null | null | from django.views.generic import ListView, DetailView
from .models import Product
class HomePageView(ListView):
template_name = 'home.html'
model = Product
context_object_name = 'products'
class ProductDetailView(DetailView):
template_name = 'product_detail.html'
model = Product
| 21.714286 | 53 | 0.753289 | 34 | 304 | 6.588235 | 0.617647 | 0.107143 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171053 | 304 | 13 | 54 | 23.384615 | 0.888889 | 0 | 0 | 0.222222 | 0 | 0 | 0.119205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0c382ecafcb2808c8d70c2c8d5b10df63068028c | 3,588 | py | Python | catalog/views.py | l-a-motta/talehub | 970f27bda5625576cc66a5a31224adce031f7404 | [
"MIT"
] | null | null | null | catalog/views.py | l-a-motta/talehub | 970f27bda5625576cc66a5a31224adce031f7404 | [
"MIT"
] | null | null | null | catalog/views.py | l-a-motta/talehub | 970f27bda5625576cc66a5a31224adce031f7404 | [
"MIT"
] | null | null | null | # Django imports
from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.urls import reverse
# Internal imports
from .models import Book, Chapter
# External imports
from django.utils import timezone
# * Function to list the five latest books
def index(request... | 46.597403 | 108 | 0.696767 | 506 | 3,588 | 4.843874 | 0.288538 | 0.035904 | 0.039984 | 0.062832 | 0.424317 | 0.416973 | 0.401877 | 0.365973 | 0.332517 | 0.332517 | 0 | 0.00781 | 0.214883 | 3,588 | 77 | 109 | 46.597403 | 0.862265 | 0.391304 | 0 | 0.372093 | 0 | 0 | 0.095833 | 0 | 0 | 0 | 0 | 0.012987 | 0 | 1 | 0.093023 | false | 0 | 0.116279 | 0 | 0.325581 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c3cdb2d418c841e542e1639931c8eca3e9fd433 | 5,814 | py | Python | sample/app/views.py | naviat/CruiseControl-Micro-service-deployment | 562d16e3fae200f0fac8a2be4166d870e08eb648 | [
"MIT"
] | 86 | 2016-01-26T22:46:13.000Z | 2021-09-30T08:25:14.000Z | sample/app/views.py | naviat/CruiseControl-Micro-service-deployment | 562d16e3fae200f0fac8a2be4166d870e08eb648 | [
"MIT"
] | 1 | 2016-07-15T21:28:27.000Z | 2016-07-26T18:31:23.000Z | sample/app/views.py | naviat/CruiseControl-Micro-service-deployment | 562d16e3fae200f0fac8a2be4166d870e08eb648 | [
"MIT"
] | 26 | 2016-01-30T02:18:27.000Z | 2022-01-04T20:00:13.000Z | from app import app
from flask import render_template
from flask import send_from_directory
import json
from json import dumps
from os.path import join
from flask import make_response, request, redirect, url_for
import awslib
import os
bucket_name = os.environ.get('IPLIST_CONFIG_BUCKET')
s3path = os.environ.get('IPLI... | 34.402367 | 139 | 0.528036 | 648 | 5,814 | 4.575617 | 0.220679 | 0.045531 | 0.021922 | 0.018887 | 0.223272 | 0.160202 | 0.093761 | 0.093761 | 0.093761 | 0.093761 | 0 | 0.006658 | 0.354145 | 5,814 | 168 | 140 | 34.607143 | 0.782956 | 0 | 0 | 0.224638 | 0 | 0 | 0.114207 | 0.004128 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065217 | null | null | 0.028986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c3d192a89c876c856509b09f335ce7178d07228 | 11,228 | py | Python | src/agreement/predicate_mention.py | hitzkrieg/Okr-Test | 9db00c2cdecdc023727d103ca8a935275428d7cc | [
"Apache-2.0"
] | null | null | null | src/agreement/predicate_mention.py | hitzkrieg/Okr-Test | 9db00c2cdecdc023727d103ca8a935275428d7cc | [
"Apache-2.0"
] | null | null | null | src/agreement/predicate_mention.py | hitzkrieg/Okr-Test | 9db00c2cdecdc023727d103ca8a935275428d7cc | [
"Apache-2.0"
] | null | null | null | """
Author: Rachel Wities and Vered Shwartz
Receives two annotated graphs and computes the agreement on the predicate mentions.
We average the accuracy of the two annotators, each computed while taking the other as a gold reference.
"""
import sys
sys.path.append('../common')
from mention_common im... | 47.576271 | 320 | 0.673317 | 1,395 | 11,228 | 5.236559 | 0.151254 | 0.072279 | 0.049281 | 0.035044 | 0.516222 | 0.456674 | 0.403149 | 0.378234 | 0.348528 | 0.301985 | 0 | 0.017124 | 0.230228 | 11,228 | 235 | 321 | 47.778723 | 0.828069 | 0.103491 | 0 | 0.150943 | 0 | 0 | 0.093516 | 0.002665 | 0 | 0 | 0 | 0.004255 | 0 | 0 | null | null | 0 | 0.04717 | null | null | 0.141509 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c3ddb1af8eecc617d3bdbfadb0a54b6414d2453 | 928 | py | Python | colaboradores/migrations/0003_auto_20211119_1406.py | victorescosta/Site-django-para-cadastro-de-funcionarios | 44db03400ef49f9e0377ddc0e3f81f507d70546a | [
"MIT"
] | 3 | 2021-11-22T13:04:49.000Z | 2022-01-06T01:23:15.000Z | colaboradores/migrations/0003_auto_20211119_1406.py | victorescosta/Site-django-para-cadastro-de-funcionarios | 44db03400ef49f9e0377ddc0e3f81f507d70546a | [
"MIT"
] | null | null | null | colaboradores/migrations/0003_auto_20211119_1406.py | victorescosta/Site-django-para-cadastro-de-funcionarios | 44db03400ef49f9e0377ddc0e3f81f507d70546a | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-19 14:06
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('colaboradores', '0002_alter_colaborador_cpf'),
]
operations = [
migrations.CreateModel(
name='E... | 32 | 124 | 0.603448 | 95 | 928 | 5.778947 | 0.610526 | 0.043716 | 0.051002 | 0.080146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036765 | 0.267241 | 928 | 28 | 125 | 33.142857 | 0.770588 | 0.048491 | 0 | 0.090909 | 1 | 0 | 0.124858 | 0.054484 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c3f9f20d7267f61293829da1259ef32bce6813a | 1,578 | py | Python | feynman/S_combine_pareto.py | harshjp93/AI_Feynman_edit | f98cae516bff8d78e59f7b9673eec6ddce29e6f0 | [
"MIT"
] | null | null | null | feynman/S_combine_pareto.py | harshjp93/AI_Feynman_edit | f98cae516bff8d78e59f7b9673eec6ddce29e6f0 | [
"MIT"
] | null | null | null | feynman/S_combine_pareto.py | harshjp93/AI_Feynman_edit | f98cae516bff8d78e59f7b9673eec6ddce29e6f0 | [
"MIT"
] | 1 | 2021-06-03T19:16:08.000Z | 2021-06-03T19:16:08.000Z | # Combines 2 pareto fromtier obtained from the separability test into a new one.
from get_pareto import Point, ParetoSet
from S_get_symbolic_expr_error import get_symbolic_expr_error
from sympy.parsing.sympy_parser import parse_expr
import numpy as np
import matplotlib.pyplot as plt
import os
from os import pa... | 41.526316 | 121 | 0.63308 | 236 | 1,578 | 4.016949 | 0.355932 | 0.044304 | 0.042194 | 0.063291 | 0.263713 | 0.21308 | 0.21308 | 0.168776 | 0.086498 | 0 | 0 | 0.031979 | 0.266793 | 1,578 | 37 | 122 | 42.648649 | 0.787381 | 0.114702 | 0 | 0.068966 | 0 | 0 | 0.010347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.344828 | 0 | 0.413793 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0c42bc7f3fc1615110c02f84f3d118efd3961f20 | 217 | py | Python | code/arc042_a_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/arc042_a_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/arc042_a_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | N,M=map(int,input().split())
A=[int(input()) for i in range(M)][::-1]
ans=[]
s=set()
for a in A:
if a not in s:ans.append(a)
s.add(a)
for i in range(1,N+1):
if i not in s:ans.append(i)
print(*ans,sep="\n") | 21.7 | 40 | 0.56682 | 52 | 217 | 2.365385 | 0.403846 | 0.130081 | 0.097561 | 0.178862 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016854 | 0.179724 | 217 | 10 | 41 | 21.7 | 0.674157 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c4568c5f4a4a0a59826ed925fdfd2cd3801f6f2 | 2,948 | py | Python | client.py | maker2413/Socket-Squares | ce841495905154b5d6303e1631f5ad365a6b48a4 | [
"MIT"
] | 1 | 2021-04-23T23:24:20.000Z | 2021-04-23T23:24:20.000Z | client.py | maker2413/Socket-Squares | ce841495905154b5d6303e1631f5ad365a6b48a4 | [
"MIT"
] | null | null | null | client.py | maker2413/Socket-Squares | ce841495905154b5d6303e1631f5ad365a6b48a4 | [
"MIT"
] | 1 | 2021-04-19T03:18:30.000Z | 2021-04-19T03:18:30.000Z | """
client.py
"""
# Standard library
import socket
import re
import pickle
import sys
# Third party
import pygame
# Local source
import game_functions as gf
import square
# Server port, IPv4 will be prompted
PORT = 26256
# Server data constraints
HEADER_SIZE = 16
FORMAT_TYPE = 'utf-8'
def main():
server_ip = i... | 26.558559 | 107 | 0.675373 | 406 | 2,948 | 4.780788 | 0.403941 | 0.032973 | 0.037094 | 0.041216 | 0.054096 | 0.026275 | 0.026275 | 0.009789 | 0.009789 | 0.009789 | 0 | 0.01913 | 0.21981 | 2,948 | 111 | 108 | 26.558559 | 0.824783 | 0.190638 | 0 | 0 | 0 | 0.015385 | 0.18055 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061538 | false | 0.076923 | 0.107692 | 0 | 0.2 | 0.123077 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0c496db30136a9a259a2f488809552b77a0fb102 | 1,012 | py | Python | GPy/util/gpu_init.py | beckdaniel/GPy | 37e835aa36b18c32bc500684cc10dd2b74240e1f | [
"BSD-3-Clause"
] | null | null | null | GPy/util/gpu_init.py | beckdaniel/GPy | 37e835aa36b18c32bc500684cc10dd2b74240e1f | [
"BSD-3-Clause"
] | null | null | null | GPy/util/gpu_init.py | beckdaniel/GPy | 37e835aa36b18c32bc500684cc10dd2b74240e1f | [
"BSD-3-Clause"
] | 1 | 2020-02-21T02:40:18.000Z | 2020-02-21T02:40:18.000Z | """
The package for scikits.cuda initialization
Global variables: initSuccess
providing CUBLAS handle: cublas_handle
"""
gpu_initialized = False
gpu_device = None
gpu_context = None
MPI_enabled = False
try:
from mpi4py import MPI
MPI_enabled = True
except:
pass
def initGPU():
try:
if MPI_e... | 23.534884 | 92 | 0.621542 | 119 | 1,012 | 5.084034 | 0.504202 | 0.066116 | 0.046281 | 0.056198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002837 | 0.30336 | 1,012 | 42 | 93 | 24.095238 | 0.855319 | 0.11166 | 0 | 0.266667 | 0 | 0 | 0.043771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.133333 | 0 | 0.2 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0c5408b1bdb63a2d560ad66965a5cbc7e4bb0767 | 1,914 | py | Python | src/awkward/_v2/contents/content.py | henryiii/awkward-1.0 | d9b8082314911041acc7b1c1b63313d66c2d3315 | [
"BSD-3-Clause"
] | 2 | 2021-06-26T11:31:32.000Z | 2021-06-26T11:31:40.000Z | src/awkward/_v2/contents/content.py | henryiii/awkward-1.0 | d9b8082314911041acc7b1c1b63313d66c2d3315 | [
"BSD-3-Clause"
] | null | null | null | src/awkward/_v2/contents/content.py | henryiii/awkward-1.0 | d9b8082314911041acc7b1c1b63313d66c2d3315 | [
"BSD-3-Clause"
] | null | null | null | # BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
from __future__ import absolute_import
try:
from collections.abc import Iterable
except ImportError:
from collections import Iterable
import numbers
import awkward as ak
np = ak.nplike.NumpyMetadata.instance()
class Co... | 32.440678 | 87 | 0.642633 | 210 | 1,914 | 5.709524 | 0.452381 | 0.112594 | 0.126772 | 0.210175 | 0.36447 | 0.282736 | 0.246038 | 0.246038 | 0 | 0 | 0 | 0.002147 | 0.270115 | 1,914 | 58 | 88 | 33 | 0.85612 | 0.04441 | 0 | 0.175 | 0 | 0 | 0.210181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c590699a44abde213ad986da7f0d39cd6f55412 | 1,749 | py | Python | 1-dars.py | thejorabek/python | 62ac888dedd6fcb485f2f3a074a127b2b0c45d31 | [
"Apache-2.0"
] | 1 | 2022-03-24T06:04:54.000Z | 2022-03-24T06:04:54.000Z | 1-dars.py | thejorabek/python | 62ac888dedd6fcb485f2f3a074a127b2b0c45d31 | [
"Apache-2.0"
] | null | null | null | 1-dars.py | thejorabek/python | 62ac888dedd6fcb485f2f3a074a127b2b0c45d31 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 1 09:26:03 2022
@author: thejorabek
"""
'''son=10
print(son,type(son))
son=3.14
print(son,type(son))
son='Salom Foundationchilar'
print(son,type(son))
son=True
print(son,type(son))
son=int()
print(son,type(son))
print("Assalom",123,3.14,True,sep='... | 18.21875 | 91 | 0.63179 | 317 | 1,749 | 3.485804 | 0.26183 | 0.089593 | 0.054299 | 0.067873 | 0.322172 | 0.248869 | 0.18371 | 0.18371 | 0.147511 | 0.128507 | 0 | 0.042513 | 0.098914 | 1,749 | 96 | 92 | 18.21875 | 0.658629 | 0.057176 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.