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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d8e26319181adcd1d8b21729d56bd185a4af5546 | 315 | py | Python | Part 2/Week_1_3/ImprimindoMatrizes.py | Arielcarv/Intro-Ciencia-da-Computacao-USP | 03d69b9e0f3fa5fca053d0fc406aa1a584d33de1 | [
"MIT"
] | null | null | null | Part 2/Week_1_3/ImprimindoMatrizes.py | Arielcarv/Intro-Ciencia-da-Computacao-USP | 03d69b9e0f3fa5fca053d0fc406aa1a584d33de1 | [
"MIT"
] | null | null | null | Part 2/Week_1_3/ImprimindoMatrizes.py | Arielcarv/Intro-Ciencia-da-Computacao-USP | 03d69b9e0f3fa5fca053d0fc406aa1a584d33de1 | [
"MIT"
] | null | null | null | minha_matriz1 = [[1], [2], [3]]
minha_matriz2 = [[1, 2, 3], [4, 5, 6]]
def imprime_matriz(matriz):
for i in matriz:
linha = ''
for j in i:
linha += str(j)
print(" ".join(linha), end="")
print()
# imprime_matriz(minha_matriz1)
# imprime_matriz(minha_matriz2)
| 21 | 40 | 0.530159 | 42 | 315 | 3.809524 | 0.5 | 0.24375 | 0.0375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.298413 | 315 | 14 | 41 | 22.5 | 0.665158 | 0.187302 | 0 | 0 | 0 | 0 | 0.003953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0.222222 | 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 |
d8e9d77616259423d795cc45d7862b01de39fedf | 1,443 | py | Python | tests/compare-transformation-test-case.py | barajus/netsim-tools | b536cd1d9ec1f1dd6a8507aafadca6f9528d9d33 | [
"MIT"
] | null | null | null | tests/compare-transformation-test-case.py | barajus/netsim-tools | b536cd1d9ec1f1dd6a8507aafadca6f9528d9d33 | [
"MIT"
] | null | null | null | tests/compare-transformation-test-case.py | barajus/netsim-tools | b536cd1d9ec1f1dd6a8507aafadca6f9528d9d33 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# Create expanded topology file, Ansible inventory, host vars, or Vagrantfile from
# topology file
#
import sys
import os
import yaml
import pathlib
import difflib
import common
import argparse
import read_topology
import augment.main
import inventory
import provider
import utils
def parse()... | 28.86 | 125 | 0.709633 | 180 | 1,443 | 5.611111 | 0.45 | 0.047525 | 0.050495 | 0.051485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000814 | 0.148302 | 1,443 | 49 | 126 | 29.44898 | 0.820993 | 0.080388 | 0 | 0.054054 | 0 | 0 | 0.191377 | 0.018154 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.324324 | 0 | 0.405405 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8f0f53d10984b1502fa700e049279a3bf01f903 | 1,431 | py | Python | src/waypoints_reader/scripts/yaml_reader.py | HajimeTokuyasu/CIRKIT-5 | 925647f5d88cfa8d45c4afffa6c82c63956c360b | [
"BSD-3-Clause"
] | 19 | 2016-09-15T10:56:13.000Z | 2021-11-15T10:47:23.000Z | src/waypoints_reader/scripts/yaml_reader.py | golaced/fifth_robot_pkg | 925647f5d88cfa8d45c4afffa6c82c63956c360b | [
"BSD-3-Clause"
] | 105 | 2016-09-15T10:22:14.000Z | 2019-03-19T08:16:08.000Z | src/waypoints_reader/scripts/yaml_reader.py | HajimeTokuyasu/CIRKIT-5 | 925647f5d88cfa8d45c4afffa6c82c63956c360b | [
"BSD-3-Clause"
] | 7 | 2017-01-03T07:09:31.000Z | 2021-05-08T11:12:34.000Z | #!/usr/bin/env python
# coding UTF-8
import yaml
import rospy
from goal_sender_msgs.srv import ApplyGoals
from goal_sender_msgs.msg import GoalSequence, Waypoint
from geometry_msgs.msg import Point, Quaternion
def read_yaml(path):
f = open(path, 'r')
waypoints = yaml.load(f)
f.close()
return waypoint... | 34.071429 | 82 | 0.612159 | 160 | 1,431 | 5.25625 | 0.475 | 0.099881 | 0.053508 | 0.042806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003918 | 0.286513 | 1,431 | 41 | 83 | 34.902439 | 0.819785 | 0.043326 | 0 | 0 | 0 | 0 | 0.063736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.029412 | 0.176471 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d8f1b088615c2e243d257e99cb4f09646f7f6650 | 374 | py | Python | pyvino/model/reidentification/person_reidentification/reid_0248.py | hampen2929/openvino-python | 276760a54b8a8e5c96f63a8e7899d6bc02dae8c9 | [
"Apache-2.0"
] | 62 | 2019-08-21T23:34:52.000Z | 2021-05-18T21:47:05.000Z | pyvino/model/reidentification/person_reidentification/reid_0248.py | hampen2929/openvino-python | 276760a54b8a8e5c96f63a8e7899d6bc02dae8c9 | [
"Apache-2.0"
] | 15 | 2019-08-19T15:03:57.000Z | 2022-01-25T13:45:10.000Z | pyvino/model/reidentification/person_reidentification/reid_0248.py | hampen2929/openvino-python | 276760a54b8a8e5c96f63a8e7899d6bc02dae8c9 | [
"Apache-2.0"
] | 16 | 2019-08-31T03:48:44.000Z | 2021-08-08T19:14:57.000Z | from ..reidentification.reidentification import Reid
from ....util.logger import get_logger
logger = get_logger(__name__)
class PersonReid0248(Reid):
model_name = 'person-reidentification-retail-0248'
model_loc = 'intel'
dim = 256
def __init__(self, xml_path=None, fp=None, draw=False):
... | 24.933333 | 61 | 0.716578 | 49 | 374 | 5.081633 | 0.571429 | 0.084337 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03537 | 0.168449 | 374 | 14 | 62 | 26.714286 | 0.765273 | 0 | 0 | 0 | 0 | 0 | 0.106952 | 0.093583 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8f890e86b28c5b8793bab69af23d432bd023996 | 1,315 | py | Python | new_code/stateMachine.py | buenos-dan/quadrupedal_robot | 605054c027e20b83e347f2aa175c03c965e72983 | [
"MIT"
] | 5 | 2019-03-22T06:39:42.000Z | 2021-07-27T13:56:45.000Z | new_code/stateMachine.py | buenos-dan/quadrupedal_robot | 605054c027e20b83e347f2aa175c03c965e72983 | [
"MIT"
] | null | null | null | new_code/stateMachine.py | buenos-dan/quadrupedal_robot | 605054c027e20b83e347f2aa175c03c965e72983 | [
"MIT"
] | 2 | 2021-02-16T09:52:04.000Z | 2021-11-30T12:12:55.000Z | import rospy
import time
from std_msgs.msg import *
from settings import *
class stateMechine:
def __init__(self):
rospy.init_node("state_mechine",anonymous = True)
rospy.set_param("current_state","IDLE")
rospy.set_param("temp_state","IDLE")
self.motion_suber = rospy.Subscriber("robot/motion_plan",String,self... | 27.395833 | 88 | 0.688213 | 168 | 1,315 | 5.119048 | 0.357143 | 0.097674 | 0.059302 | 0.062791 | 0.086047 | 0.086047 | 0.086047 | 0 | 0 | 0 | 0 | 0.007619 | 0.201521 | 1,315 | 47 | 89 | 27.978723 | 0.811429 | 0 | 0 | 0.055556 | 0 | 0 | 0.095817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | 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 |
d8fae6fe37a804b61320be85aeb6fd65f3dbf918 | 16,851 | py | Python | ChessEngine.py | Hazent/PyChess | bb3e963c0ceb15aa6920817ee11b6e61772a4a3e | [
"Unlicense",
"MIT"
] | null | null | null | ChessEngine.py | Hazent/PyChess | bb3e963c0ceb15aa6920817ee11b6e61772a4a3e | [
"Unlicense",
"MIT"
] | null | null | null | ChessEngine.py | Hazent/PyChess | bb3e963c0ceb15aa6920817ee11b6e61772a4a3e | [
"Unlicense",
"MIT"
] | null | null | null | # Main driver file for user input and displaying
# Also checks legal moves and keep a move log
class GameState():
def __init__(self):
# Initial board state
# Board is 8x8 2d list with each element having 2 characters
# First character represents the color: w = white & b = black
# Se... | 45.176944 | 184 | 0.536882 | 1,935 | 16,851 | 4.667183 | 0.125065 | 0.061787 | 0.02879 | 0.035434 | 0.531281 | 0.504485 | 0.404828 | 0.345145 | 0.331414 | 0.323441 | 0 | 0.021238 | 0.32099 | 16,851 | 372 | 185 | 45.298387 | 0.768048 | 0.081241 | 0 | 0.368601 | 0 | 0 | 0.015805 | 0 | 0 | 0 | 0 | 0.002688 | 0 | 1 | 0.075085 | false | 0.068259 | 0 | 0.003413 | 0.153584 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d8fbb8c8c49dabf3a2caf70c272654957f5b7955 | 565 | py | Python | companies/urls.py | miclemabasie/jobizar | 1dde7aab4ba02de75517a5cf91d54b43ac41e3cb | [
"MIT"
] | null | null | null | companies/urls.py | miclemabasie/jobizar | 1dde7aab4ba02de75517a5cf91d54b43ac41e3cb | [
"MIT"
] | null | null | null | companies/urls.py | miclemabasie/jobizar | 1dde7aab4ba02de75517a5cf91d54b43ac41e3cb | [
"MIT"
] | null | null | null | from django.urls import path
from .views import (
setup_company,
company_home_page,
company_profile_view,
update_company_profile,
)
app_name = 'companies'
urlpatterns = [
path('setup-company-profile/<slug:slug>/', setup_company, name='setup-company'),
path('update-company-profile/<slug:slug>/',... | 35.3125 | 103 | 0.729204 | 73 | 565 | 5.438356 | 0.246575 | 0.31738 | 0.151134 | 0.110831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115044 | 565 | 15 | 104 | 37.666667 | 0.794 | 0 | 0 | 0 | 0 | 0 | 0.376991 | 0.272566 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
2b01e01ff0264bd521febc105b7681e7f559d956 | 2,930 | py | Python | ground/droneController/main copy.py | tonbut/rpi-python-drone | f57038383c3b52746ba49f7d660ba53ff5ee9f58 | [
"MIT"
] | 10 | 2018-07-21T19:18:07.000Z | 2022-02-04T19:56:01.000Z | ground/droneController/main copy.py | tonbut/rpi-python-drone | f57038383c3b52746ba49f7d660ba53ff5ee9f58 | [
"MIT"
] | null | null | null | ground/droneController/main copy.py | tonbut/rpi-python-drone | f57038383c3b52746ba49f7d660ba53ff5ee9f58 | [
"MIT"
] | null | null | null | from joystick import Joystick
from threading import Thread
import sys, time
#import paho.mqtt.client as mqtt
#import paho.mqtt.publish as publish
from soundEnvelope import SoundEnvelope, Envelope
sys.path.append('/home/pi/dev/mavlink/')
from pymavlink import mavutil
import pymavlink.dialects.v10.ardupilotmega as mavli... | 25.042735 | 127 | 0.714334 | 413 | 2,930 | 5.031477 | 0.384988 | 0.006737 | 0.009625 | 0.012512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068396 | 0.131741 | 2,930 | 117 | 128 | 25.042735 | 0.748428 | 0.143003 | 0 | 0.101266 | 0 | 0 | 0.075321 | 0.008413 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075949 | null | null | 0.063291 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2b119e37c62e912518a5144c963ef5d816a1cf9f | 1,754 | py | Python | KFS_builder.py | kevinsa5/KevinOS | 857cb171fbb4de54906f1e4c924164738f34290a | [
"Unlicense"
] | 6 | 2015-01-08T04:18:36.000Z | 2017-08-22T10:31:17.000Z | KFS_builder.py | kevinsa5/KevinOS | 857cb171fbb4de54906f1e4c924164738f34290a | [
"Unlicense"
] | 1 | 2015-03-10T04:30:14.000Z | 2015-03-10T04:30:14.000Z | KFS_builder.py | kevinsa5/KevinOS | 857cb171fbb4de54906f1e4c924164738f34290a | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
import os
files = os.listdir("./files")
contents = {}
if len(files) > 94:
print "Too many files! Max number is 94, but {0} are present.".format(len(files))
exit()
for i in files:
if len(i) > 10:
print "Filename is too long! Can only be ten characters, is currently {0} :{1}".format(len(i),i)
ex... | 33.09434 | 98 | 0.58951 | 269 | 1,754 | 3.832714 | 0.30855 | 0.077595 | 0.048497 | 0.042677 | 0.193986 | 0.14161 | 0.058196 | 0 | 0 | 0 | 0 | 0.046198 | 0.197834 | 1,754 | 52 | 99 | 33.730769 | 0.686567 | 0.165907 | 0 | 0.047619 | 0 | 0 | 0.217481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02381 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2b12ae520ddfd619120d76e7540d8083c88fbef3 | 1,526 | py | Python | inmetCrawler/spiders/inmet_spider.py | ricardogiuliani/Web-Scraping | 18afe6457c850cb370c1c4a352e24f26605d79c4 | [
"MIT"
] | null | null | null | inmetCrawler/spiders/inmet_spider.py | ricardogiuliani/Web-Scraping | 18afe6457c850cb370c1c4a352e24f26605d79c4 | [
"MIT"
] | null | null | null | inmetCrawler/spiders/inmet_spider.py | ricardogiuliani/Web-Scraping | 18afe6457c850cb370c1c4a352e24f26605d79c4 | [
"MIT"
] | null | null | null | import scrapy
import json
import pandas as pd
import csv
from datetime import date
codMunTodos = pd.read_csv('codMun.csv')
codMunTodos = codMunTodos['codMunIBGE'].values.tolist()
urls_api_inmet = []
data_inmet_list = []
for codigo in codMunTodos:
string = 'https://apiprevmet3.inmet.gov.br/previsao/{... | 33.173913 | 108 | 0.623853 | 168 | 1,526 | 5.541667 | 0.488095 | 0.09667 | 0.051557 | 0.10956 | 0.088077 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003401 | 0.229358 | 1,526 | 45 | 109 | 33.911111 | 0.788265 | 0.043906 | 0 | 0 | 0 | 0 | 0.119858 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0.064516 | false | 0 | 0.16129 | 0 | 0.290323 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
2b131a6301e19a06a1b13d9a89f156bee511bbcb | 1,340 | py | Python | conceptnet5/db/connection.py | tesYolan/conceptnet5 | 1ba2bcf0a7b74de6fcba556b8e996814312deebc | [
"Apache-2.0"
] | 2,195 | 2015-01-02T20:07:43.000Z | 2022-03-31T02:25:39.000Z | conceptnet5/db/connection.py | tesYolan/conceptnet5 | 1ba2bcf0a7b74de6fcba556b8e996814312deebc | [
"Apache-2.0"
] | 178 | 2015-01-01T18:57:45.000Z | 2022-03-22T06:34:50.000Z | conceptnet5/db/connection.py | tesYolan/conceptnet5 | 1ba2bcf0a7b74de6fcba556b8e996814312deebc | [
"Apache-2.0"
] | 333 | 2015-01-08T09:09:40.000Z | 2022-03-19T21:17:43.000Z | import psycopg2
from conceptnet5.db import config
_CONNECTIONS = {}
def get_db_connection(dbname=None):
"""
Get a global connection to the ConceptNet PostgreSQL database.
`dbname` specifies the name of the database in PostgreSQL.
"""
if dbname is None:
dbname = config.DB_NAME
if dbn... | 25.769231 | 75 | 0.668657 | 172 | 1,340 | 5.046512 | 0.406977 | 0.064516 | 0.069124 | 0.069124 | 0.235023 | 0.073733 | 0.073733 | 0.073733 | 0 | 0 | 0 | 0.005076 | 0.264925 | 1,340 | 51 | 76 | 26.27451 | 0.876142 | 0.289552 | 0 | 0.275862 | 0 | 0 | 0.005549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.068966 | 0.068966 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b14870c5bd87c6861d679288fc97f04b159dfc4 | 9,746 | py | Python | matrix_utils/resource_group.py | mixib/matrix_utils | 6e59f4179980d705face350d839ca4bd951e3c3c | [
"BSD-3-Clause"
] | null | null | null | matrix_utils/resource_group.py | mixib/matrix_utils | 6e59f4179980d705face350d839ca4bd951e3c3c | [
"BSD-3-Clause"
] | null | null | null | matrix_utils/resource_group.py | mixib/matrix_utils | 6e59f4179980d705face350d839ca4bd951e3c3c | [
"BSD-3-Clause"
] | null | null | null | from .aggregation import aggregate_with_sparse
from .array_mapper import ArrayMapper
from .indexers import Indexer, Proxy
from bw_processing import DatapackageBase
from stats_arrays import MCRandomNumberGenerator
from typing import Any, Union, Callable
import numpy as np
class FakeRNG:
def __init__(self, array):
... | 38.674603 | 1,110 | 0.615535 | 1,232 | 9,746 | 4.755682 | 0.209416 | 0.02509 | 0.028162 | 0.025943 | 0.232634 | 0.195767 | 0.12852 | 0.112477 | 0.110428 | 0.091825 | 0 | 0.004966 | 0.297558 | 9,746 | 251 | 1,111 | 38.828685 | 0.850862 | 0.329058 | 0 | 0.290698 | 0 | 0 | 0.015161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0.005814 | 0.040698 | 0.011628 | 0.30814 | 0 | 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 |
2b1497643530d9f27c070545f8d9063805fc4cb9 | 257 | py | Python | codepack/storage/file_storage.py | ihnokim/codepack | 9d043b2db977de503faf7f5f1370c1424c6cb19f | [
"MIT"
] | 2 | 2021-04-18T17:51:49.000Z | 2021-06-22T10:21:30.000Z | codepack/storage/file_storage.py | ihnokim/codepack | 9d043b2db977de503faf7f5f1370c1424c6cb19f | [
"MIT"
] | 24 | 2021-12-23T18:02:01.000Z | 2022-03-27T03:03:38.000Z | codepack/storage/file_storage.py | ihnokim/codepack | 9d043b2db977de503faf7f5f1370c1424c6cb19f | [
"MIT"
] | 1 | 2021-09-13T12:56:40.000Z | 2021-09-13T12:56:40.000Z | from codepack.storage import Storage
class FileStorage(Storage):
def __init__(self, obj=None, path='./'):
super().__init__(obj=obj)
self.path = None
self.init(path=path)
def init(self, path='./'):
self.path = path
| 21.416667 | 44 | 0.603113 | 32 | 257 | 4.59375 | 0.40625 | 0.163265 | 0.14966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.249027 | 257 | 11 | 45 | 23.363636 | 0.761658 | 0 | 0 | 0 | 0 | 0 | 0.015564 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b1e2a4b4a0f4a975e7f81834d6168b8f130ba8d | 2,108 | py | Python | hydra/file.py | rhmtazad/hydradb | 1d359ebb09a7690f8d08632438bad596d2e14646 | [
"MIT"
] | null | null | null | hydra/file.py | rhmtazad/hydradb | 1d359ebb09a7690f8d08632438bad596d2e14646 | [
"MIT"
] | null | null | null | hydra/file.py | rhmtazad/hydradb | 1d359ebb09a7690f8d08632438bad596d2e14646 | [
"MIT"
] | 2 | 2021-04-07T21:06:29.000Z | 2021-04-09T20:50:52.000Z | import os
class File:
def __init__(self, name=None, location=None):
"""
Create and store information about name and location of file.
Note:
Do not pass the file name and location as parameters if
you want to create a 'main.db' file in your directory.
Examp... | 30.550725 | 79 | 0.590133 | 257 | 2,108 | 4.735409 | 0.326848 | 0.028759 | 0.036976 | 0.029581 | 0.10189 | 0.031224 | 0 | 0 | 0 | 0 | 0 | 0 | 0.33871 | 2,108 | 68 | 80 | 31 | 0.873027 | 0.647059 | 0 | 0 | 0 | 0 | 0.088553 | 0.073434 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2b248489a92ba7e2d0ed898ead06b9149697c883 | 10,814 | py | Python | smartACL/tools.py | salesforce/smartACL | b8ccf5003689e32e9cf10512df84117f95ed86c2 | [
"BSD-3-Clause"
] | 3 | 2019-10-10T16:53:06.000Z | 2020-12-29T22:48:29.000Z | smartACL/tools.py | salesforce/smartACL | b8ccf5003689e32e9cf10512df84117f95ed86c2 | [
"BSD-3-Clause"
] | 5 | 2018-03-02T08:30:52.000Z | 2021-07-26T10:53:18.000Z | smartACL/tools.py | salesforce/smartACL | b8ccf5003689e32e9cf10512df84117f95ed86c2 | [
"BSD-3-Clause"
] | 3 | 2018-02-27T14:41:31.000Z | 2019-08-06T04:41:21.000Z | # Copyright (c) 2018, salesforce.com, inc.
# All rights reserved.
# Licensed under the BSD 3-Clause license.
# For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
import itertools
import sys
try:
import netaddr
except:
try:
import sys
s... | 34.221519 | 124 | 0.550768 | 1,492 | 10,814 | 3.91622 | 0.191019 | 0.006846 | 0.036967 | 0.051343 | 0.222488 | 0.195619 | 0.165497 | 0.131439 | 0.10765 | 0.093616 | 0 | 0.049419 | 0.331977 | 10,814 | 315 | 125 | 34.330159 | 0.759413 | 0.142316 | 0 | 0.304348 | 0 | 0 | 0.046609 | 0 | 0.012422 | 0 | 0.00225 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.006211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2b25b34fb6910876ca2672392ba2c4f7d129d3e9 | 3,378 | py | Python | prediction_cnn.py | jongpillee/musicTagging_MSD | 71ed2353cf3ccf261603eb016fef37e368c70e41 | [
"MIT"
] | 8 | 2017-09-30T05:55:25.000Z | 2020-02-05T04:23:49.000Z | prediction_cnn.py | jongpillee/musicTagging_MSD | 71ed2353cf3ccf261603eb016fef37e368c70e41 | [
"MIT"
] | null | null | null | prediction_cnn.py | jongpillee/musicTagging_MSD | 71ed2353cf3ccf261603eb016fef37e368c70e41 | [
"MIT"
] | 3 | 2017-12-25T10:33:30.000Z | 2019-10-13T10:51:01.000Z | import os
import numpy as np
import time
from keras.optimizers import SGD
from keras.models import model_from_json,Model
from keras import backend as K
from keras.callbacks import Callback,ModelCheckpoint,EarlyStopping
from keras.layers import Input
from keras.layers.core import Dense
import sys
import librosa
import... | 25.398496 | 89 | 0.744227 | 536 | 3,378 | 4.479478 | 0.294776 | 0.049979 | 0.014994 | 0.027489 | 0.125364 | 0.054144 | 0.054144 | 0 | 0 | 0 | 0 | 0.02343 | 0.128182 | 3,378 | 132 | 90 | 25.590909 | 0.791851 | 0.084073 | 0 | 0 | 0 | 0 | 0.070523 | 0.0156 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.146341 | null | null | 0.121951 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2b261811f29744677e7cabb09142ee39cafc5404 | 1,483 | py | Python | source/algorithms/Predictor.py | elangovana/kegg-pathway-extractor | 08e9a28199bb4454e2e1a09c5d833f243f6f5768 | [
"MIT"
] | 10 | 2019-12-17T01:17:06.000Z | 2022-02-25T22:08:09.000Z | source/algorithms/Predictor.py | elangovana/kegg-pathway-extractor | 08e9a28199bb4454e2e1a09c5d833f243f6f5768 | [
"MIT"
] | 2 | 2021-03-31T18:40:32.000Z | 2021-12-13T20:15:20.000Z | source/algorithms/Predictor.py | elangovana/kegg-pathway-extractor | 08e9a28199bb4454e2e1a09c5d833f243f6f5768 | [
"MIT"
] | 2 | 2020-08-25T19:31:33.000Z | 2021-11-11T15:15:02.000Z | import logging
import torch
class Predictor:
@property
def logger(self):
return logging.getLogger(__name__)
def predict(self, model_network, dataloader, device=None):
device = device or ('cuda:0' if torch.cuda.is_available() else 'cpu')
self.logger.info("Using device {}".format... | 30.895833 | 77 | 0.581929 | 177 | 1,483 | 4.666667 | 0.418079 | 0.043584 | 0.060533 | 0.048426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003918 | 0.311531 | 1,483 | 47 | 78 | 31.553191 | 0.805093 | 0.051247 | 0 | 0 | 0 | 0 | 0.047042 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0.033333 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2b2650d5140f592ea816ad97633437e1a7d871c8 | 1,045 | py | Python | examples/pbc/22-k_points_tddft.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 2 | 2021-08-03T12:32:25.000Z | 2021-09-29T08:19:02.000Z | examples/pbc/22-k_points_tddft.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | null | null | null | examples/pbc/22-k_points_tddft.py | robert-anderson/pyscf | cdc56e168cb15f47e8cdc791a92d689fa9b655af | [
"Apache-2.0"
] | 2 | 2020-06-01T05:31:38.000Z | 2022-02-08T02:38:33.000Z | #!/usr/bin/env python
'''
TDDFT with k-point sampling or at an individual k-point
(This feature is in testing. We observe numerical stability problem in TDDFT
diagonalization.)
'''
from pyscf.pbc import gto
from pyscf.pbc import scf
from pyscf.pbc import df
from pyscf.pbc import tdscf
cell = gto.Cell()
cell.unit =... | 19.351852 | 76 | 0.649761 | 183 | 1,045 | 3.693989 | 0.409836 | 0.079882 | 0.071006 | 0.106509 | 0.321006 | 0.321006 | 0.321006 | 0.321006 | 0.236686 | 0.236686 | 0 | 0.136523 | 0.179904 | 1,045 | 53 | 77 | 19.716981 | 0.652275 | 0.288038 | 0 | 0.25 | 0 | 0 | 0.251029 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2b2aa4e617f1e36f5b3f41a9dd36465c5795d019 | 379 | py | Python | tests/vis_model_test.py | srujandeshpande/DashAI | 85581abc17ff3a8bf03a1e8b6aae7a06e5ab0dc8 | [
"Apache-2.0"
] | 7 | 2020-08-26T09:36:54.000Z | 2021-12-21T15:46:32.000Z | tests/vis_model_test.py | JoeRishon/DashAI | 68d1b01088a65e2062d96b47b083fa8f5c82b27c | [
"Apache-2.0"
] | 16 | 2020-08-25T18:44:45.000Z | 2022-03-25T19:12:36.000Z | tests/vis_model_test.py | JoeRishon/DashAI | 68d1b01088a65e2062d96b47b083fa8f5c82b27c | [
"Apache-2.0"
] | 10 | 2020-09-30T19:27:17.000Z | 2021-04-04T14:50:31.000Z | from vision.databunch import DashVisionDatabunch
from vision.learner import DashVisionLearner
import json
import torch.optim
import path
path = path.Path('./')
with open('data/response.json') as f:
response = json.load(f)
learn = DashVisionLearner.create_vision_learner(response)
print('created learner')
print(learn)
... | 27.071429 | 57 | 0.78628 | 52 | 379 | 5.673077 | 0.557692 | 0.081356 | 0.081356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008721 | 0.092348 | 379 | 14 | 58 | 27.071429 | 0.848837 | 0.113456 | 0 | 0 | 0 | 0 | 0.116418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2b5e2ebf71bf9d583907eb61e1ba28d8d218e5ae | 2,304 | py | Python | cinder/tests/volume/drivers/netapp/eseries/test_iscsi.py | kazum/cinder | 370b8e60c3166b289c8da924a227dd1bc63f8b8a | [
"Apache-2.0"
] | null | null | null | cinder/tests/volume/drivers/netapp/eseries/test_iscsi.py | kazum/cinder | 370b8e60c3166b289c8da924a227dd1bc63f8b8a | [
"Apache-2.0"
] | null | null | null | cinder/tests/volume/drivers/netapp/eseries/test_iscsi.py | kazum/cinder | 370b8e60c3166b289c8da924a227dd1bc63f8b8a | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2014 Andrew Kerr. All rights reserved.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | 39.050847 | 78 | 0.71875 | 306 | 2,304 | 5.248366 | 0.460784 | 0.082192 | 0.047323 | 0.042964 | 0.070361 | 0.052304 | 0.052304 | 0 | 0 | 0 | 0 | 0.018807 | 0.192274 | 2,304 | 58 | 79 | 39.724138 | 0.84417 | 0.294271 | 0 | 0 | 0 | 0 | 0.094081 | 0.040498 | 0 | 0 | 0 | 0 | 0.03125 | 1 | 0.09375 | false | 0.0625 | 0.1875 | 0 | 0.34375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2b64bf004692d6c95ba1bcd4e3596839bc3b1a6f | 17,518 | py | Python | api/graph/utility/graph_inquiry.py | AutoCoinDCF/NEW_API | f4abc48fff907a0785372b941afcd67e62eec825 | [
"Apache-2.0"
] | null | null | null | api/graph/utility/graph_inquiry.py | AutoCoinDCF/NEW_API | f4abc48fff907a0785372b941afcd67e62eec825 | [
"Apache-2.0"
] | null | null | null | api/graph/utility/graph_inquiry.py | AutoCoinDCF/NEW_API | f4abc48fff907a0785372b941afcd67e62eec825 | [
"Apache-2.0"
] | null | null | null | """
SQLGraphAPI utility level:
1.create a sql query
2.call executor to execute sql query and get raw response data
3.simply pre-process raw data (generate frontend-defined response code, extract useful data from raw data)
"""
import time
# from .restful_executor import Executor
from api.graph.utility.restful_executor... | 42.31401 | 153 | 0.574609 | 2,130 | 17,518 | 4.502817 | 0.101878 | 0.02909 | 0.032113 | 0.030028 | 0.620269 | 0.576686 | 0.537587 | 0.495256 | 0.456887 | 0.422792 | 0 | 0.009975 | 0.296095 | 17,518 | 413 | 154 | 42.416465 | 0.767821 | 0.179758 | 0 | 0.503546 | 1 | 0.042553 | 0.525568 | 0.11886 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088652 | false | 0.007092 | 0.028369 | 0 | 0.195035 | 0.010638 | 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 |
2b64c135987fa18f2ec07376b32a141dca83d4a4 | 534 | py | Python | python_ext/tests/test_mnv.py | varda/cvarda | 50552bf8205afc6919e5470e3bfc01a011300242 | [
"MIT"
] | null | null | null | python_ext/tests/test_mnv.py | varda/cvarda | 50552bf8205afc6919e5470e3bfc01a011300242 | [
"MIT"
] | 4 | 2020-09-08T08:04:39.000Z | 2021-08-01T07:15:50.000Z | python_ext/tests/test_mnv.py | varda/cvarda | 50552bf8205afc6919e5470e3bfc01a011300242 | [
"MIT"
] | null | null | null | import cvarda.ext as cvarda
def test_mnv_common_end():
mnv_table = cvarda.MNVTable()
seq_table = cvarda.SequenceTable()
index = seq_table.insert("")
mnv_table.insert("chr1", 1, 4, 1, 1, index, 1)
mnv_table.insert("chr1", 2, 4, 1, 1, index, 2)
assert mnv_table.diagnostics() == \
{'ch... | 25.428571 | 63 | 0.61236 | 81 | 534 | 3.876543 | 0.358025 | 0.178344 | 0.178344 | 0.181529 | 0.264331 | 0.191083 | 0.191083 | 0.191083 | 0 | 0 | 0 | 0.068884 | 0.21161 | 534 | 20 | 64 | 26.7 | 0.67696 | 0 | 0 | 0 | 0 | 0 | 0.088015 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 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 |
2b65abc5f560851689b6e3a19d905afdee8bf83e | 1,537 | py | Python | src/dcss/state/itemproperty.py | jsuagee/dcss-ai-wrapper | da446a88d4f2ca290fe8477773373ce7c9bb88a7 | [
"MIT"
] | 29 | 2020-03-06T05:55:15.000Z | 2022-01-24T19:10:23.000Z | src/dcss/state/itemproperty.py | jsuagee/dcss-ai-wrapper | da446a88d4f2ca290fe8477773373ce7c9bb88a7 | [
"MIT"
] | 22 | 2020-04-06T19:17:32.000Z | 2022-03-08T02:42:38.000Z | src/dcss/state/itemproperty.py | jsuagee/dcss-ai-wrapper | da446a88d4f2ca290fe8477773373ce7c9bb88a7 | [
"MIT"
] | 10 | 2020-03-06T03:04:35.000Z | 2022-03-24T18:08:17.000Z | from enum import Enum
class ItemProperty(Enum):
"""
See crawl wiki for lists of these:
weapons: http://crawl.chaosforge.org/Brand
armour: http://crawl.chaosforge.org/Ego
"""
NO_PROPERTY = 0
# Melee Weapon Brands
Antimagic_Brand = 1
Chaos_Brand = 2
Disruption_Brand = 3
Dist... | 22.602941 | 46 | 0.666884 | 197 | 1,537 | 4.903553 | 0.664975 | 0.067288 | 0.039337 | 0.045549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083183 | 0.280416 | 1,537 | 68 | 47 | 22.602941 | 0.790235 | 0.124919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018868 | 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 |
2b689958ce4654038d956992abe2b0b195609b9d | 315 | py | Python | trendy/notice/migrations/0002_auto_20210221_1502.py | wnsals411/Trendy-New | b13eddebd493d091d3ad4affcb9da6e7d910f15d | [
"MIT"
] | null | null | null | trendy/notice/migrations/0002_auto_20210221_1502.py | wnsals411/Trendy-New | b13eddebd493d091d3ad4affcb9da6e7d910f15d | [
"MIT"
] | null | null | null | trendy/notice/migrations/0002_auto_20210221_1502.py | wnsals411/Trendy-New | b13eddebd493d091d3ad4affcb9da6e7d910f15d | [
"MIT"
] | null | null | null | # Generated by Django 3.0.12 on 2021-02-21 06:02
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('notice', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='Board',
new_name='Qna',
),
]
| 17.5 | 48 | 0.574603 | 34 | 315 | 5.235294 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091743 | 0.307937 | 315 | 17 | 49 | 18.529412 | 0.724771 | 0.146032 | 0 | 0 | 1 | 0 | 0.097378 | 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 |
2b68bf2da3573cfade345c107bd11317fa4ea98c | 1,605 | py | Python | Grid Challenge.py | Shaikh-Nabeel/HackerRankAlgorithms | 3d11fd2c45bd045fa320691c8ac1c89acadc6d8a | [
"Apache-2.0"
] | null | null | null | Grid Challenge.py | Shaikh-Nabeel/HackerRankAlgorithms | 3d11fd2c45bd045fa320691c8ac1c89acadc6d8a | [
"Apache-2.0"
] | null | null | null | Grid Challenge.py | Shaikh-Nabeel/HackerRankAlgorithms | 3d11fd2c45bd045fa320691c8ac1c89acadc6d8a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Problem Statement
Given a squared sized grid G of size N in which each cell has a lowercase letter. Denote the character in the ith row
and in the jth column as G[i][j].
You can perform one operation as many times as you like: Swap two column adjacent characters in the same row G[i][j]
and... | 28.157895 | 118 | 0.586916 | 266 | 1,605 | 3.545113 | 0.428571 | 0.012725 | 0.009544 | 0.029692 | 0.080594 | 0.080594 | 0.080594 | 0.080594 | 0.080594 | 0 | 0 | 0.014834 | 0.285981 | 1,605 | 56 | 119 | 28.660714 | 0.796684 | 0.044237 | 0 | 0 | 0 | 0 | 0.03781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2b7641629415699a0cc065a6e348a0b3e6b3b049 | 851 | py | Python | output/models/ibm_data/mixed/assertions/test15_xsd/test15.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ibm_data/mixed/assertions/test15_xsd/test15.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ibm_data/mixed/assertions/test15_xsd/test15.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from typing import List, Optional
@dataclass
class XType:
class Meta:
name = "x_Type"
value: Optional[int] = field(
default=None,
metadata={
"required": True,
}
)
a: Optional[str] = field(
default=None,
... | 19.340909 | 41 | 0.472385 | 77 | 851 | 5.155844 | 0.519481 | 0.120907 | 0.120907 | 0.18136 | 0.36272 | 0.36272 | 0.246851 | 0.246851 | 0 | 0 | 0 | 0.013645 | 0.39718 | 851 | 43 | 42 | 19.790698 | 0.760234 | 0 | 0 | 0.368421 | 0 | 0 | 0.137485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.236842 | 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 |
2b77490872ab6e7690d5a204d302decd0e038455 | 1,812 | py | Python | app/tests/select_tracks_page/select_tracks_page.py | jasoncordis/Spotify-Playlist-Generator1 | 149941ec16167a32c076ee98a8325555411d614d | [
"MIT"
] | 75 | 2020-10-04T11:04:24.000Z | 2022-03-30T15:54:36.000Z | app/tests/select_tracks_page/select_tracks_page.py | jasoncordis/Spotify-Playlist-Generator1 | 149941ec16167a32c076ee98a8325555411d614d | [
"MIT"
] | 3 | 2020-10-04T20:25:59.000Z | 2021-07-12T10:11:57.000Z | app/tests/select_tracks_page/select_tracks_page.py | jasoncordis/Spotify-Playlist-Generator1 | 149941ec16167a32c076ee98a8325555411d614d | [
"MIT"
] | 14 | 2020-10-04T11:17:42.000Z | 2022-03-18T07:28:39.000Z | from app.tests.utilities import selenium_utility
class SelectTracks(selenium_utility.SeleniumUtility):
_first_playlist = '//li[@data-toggle="collapse"][1]'
_track = '(//li[contains(@class, "track")])[1]'
_next_btn = '//button[@id="next-btn"]'
def __init__(self, driver):
self.driver = driver
... | 31.241379 | 74 | 0.660596 | 228 | 1,812 | 4.916667 | 0.302632 | 0.049955 | 0.064228 | 0.064228 | 0.188225 | 0.167707 | 0.111508 | 0.111508 | 0 | 0 | 0 | 0.001442 | 0.234547 | 1,812 | 57 | 75 | 31.789474 | 0.806777 | 0.040287 | 0 | 0.102564 | 0 | 0 | 0.072104 | 0.046099 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.051282 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
990fb2bfc12522da58c8369726c6d3483861ecde | 1,402 | py | Python | find_hazarduous.py | iamKunal/WareHouse-Inventory-Check | 433f12d88b8025a64133429c1d7a95ac56fe045e | [
"MIT"
] | 1 | 2018-07-10T18:29:02.000Z | 2018-07-10T18:29:02.000Z | pi/find_hazarduous.py | iamKunal/WareHouse-Inventory-Check | 433f12d88b8025a64133429c1d7a95ac56fe045e | [
"MIT"
] | null | null | null | pi/find_hazarduous.py | iamKunal/WareHouse-Inventory-Check | 433f12d88b8025a64133429c1d7a95ac56fe045e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from PIL import Image
import cv2
from matplotlib import pyplot as plt
def hazarduous():
# Select and start Camera.
DEVICE_NO = 0
capture = cv2.VideoCapture(DEVICE_NO)
if not capture:
print "Failed to open camera number %d" %(DEVICE_NO)
return False
template = c... | 33.380952 | 68 | 0.599144 | 185 | 1,402 | 4.448649 | 0.524324 | 0.042527 | 0.026731 | 0.038882 | 0.051033 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031342 | 0.271755 | 1,402 | 41 | 69 | 34.195122 | 0.774731 | 0.038516 | 0 | 0.055556 | 0 | 0 | 0.082528 | 0 | 0 | 0 | 0.002974 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
991608028dfb920dca031d2effb6a8d64acb13c8 | 1,118 | py | Python | tests/test_schema_registry.py | patrick-ryan/ciri | f11f198a26465db513694f4c94e90e5ea6773ba7 | [
"MIT"
] | 5 | 2019-08-08T18:32:09.000Z | 2021-06-03T14:43:14.000Z | tests/test_schema_registry.py | patrick-ryan/ciri | f11f198a26465db513694f4c94e90e5ea6773ba7 | [
"MIT"
] | 18 | 2018-06-22T14:47:04.000Z | 2021-06-04T13:57:12.000Z | tests/test_schema_registry.py | patrick-ryan/ciri | f11f198a26465db513694f4c94e90e5ea6773ba7 | [
"MIT"
] | 2 | 2019-07-19T16:06:39.000Z | 2021-06-02T17:26:17.000Z | import os
import sys
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)) + '/../') # noqa
from ciri.fields import String, Schema as SubSchema
from ciri.core import Schema
from ciri.registry import SchemaRegistry, schema_registry
from ciri.exception import RegistryError
import pytest
def test_default_reg... | 24.304348 | 95 | 0.685152 | 138 | 1,118 | 5.34058 | 0.326087 | 0.132972 | 0.092266 | 0.093623 | 0.154681 | 0.081411 | 0 | 0 | 0 | 0 | 0 | 0.001094 | 0.182469 | 1,118 | 45 | 96 | 24.844444 | 0.805252 | 0.003578 | 0 | 0.066667 | 0 | 0 | 0.079137 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.166667 | false | 0 | 0.233333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
991bc67ba02b1c06381d53583ececf7222831a19 | 622 | py | Python | Playground3/src/playground/asyncio_lib/SimpleCondition.py | kandarpck/networksecurity2018 | dafe2ee8d39bd9596b1ce3fbc8b50ca645bcd626 | [
"MIT"
] | 3 | 2018-10-25T16:03:53.000Z | 2019-06-13T15:24:41.000Z | Playground3/src/playground/asyncio_lib/SimpleCondition.py | kandarpck/networksecurity2018 | dafe2ee8d39bd9596b1ce3fbc8b50ca645bcd626 | [
"MIT"
] | null | null | null | Playground3/src/playground/asyncio_lib/SimpleCondition.py | kandarpck/networksecurity2018 | dafe2ee8d39bd9596b1ce3fbc8b50ca645bcd626 | [
"MIT"
] | null | null | null | import asyncio
class SimpleCondition:
def __init__(self):
self.rawCondition = asyncio.Condition()
async def awaitCondition(self, predicate):
with (await self.rawCondition):
satisfied = False
while not satisfied:
satisfied = await self.rawCondit... | 28.272727 | 72 | 0.585209 | 55 | 622 | 6.509091 | 0.472727 | 0.223464 | 0.175978 | 0.139665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.339228 | 622 | 21 | 73 | 29.619048 | 0.871046 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.3125 | 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 |
9921ed41a9df5ece3b92d85c01b0ee3b251957f3 | 266 | py | Python | tests/test_true_answer.py | AsciiShell/Alice-Check-Train | 49d5804d28a237756a7cf27e451ff56166fbee5c | [
"MIT"
] | null | null | null | tests/test_true_answer.py | AsciiShell/Alice-Check-Train | 49d5804d28a237756a7cf27e451ff56166fbee5c | [
"MIT"
] | null | null | null | tests/test_true_answer.py | AsciiShell/Alice-Check-Train | 49d5804d28a237756a7cf27e451ff56166fbee5c | [
"MIT"
] | null | null | null | import pytest
from alice_check_train.true_answer import _NUMBERS_TO_STR
@pytest.mark.parametrize("test_input,expected", [
(0, ''),
(5, 'пять'),
(9, 'девять')
])
def test_answer(test_input, expected):
assert _NUMBERS_TO_STR[test_input] == expected
| 20.461538 | 57 | 0.706767 | 36 | 266 | 4.861111 | 0.638889 | 0.154286 | 0.291429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.154135 | 266 | 12 | 58 | 22.166667 | 0.764444 | 0 | 0 | 0 | 0 | 0 | 0.109023 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9927854ad4a842a3259d4a0a6e96ea059670378a | 439 | py | Python | main/implementing-floyd-warshall/implementing-floyd-warshall.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/implementing-floyd-warshall/implementing-floyd-warshall.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/implementing-floyd-warshall/implementing-floyd-warshall.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | #!/usr/bin/env python3
import itertools
import math
def read_val():
return int(input())
def read_record():
return map(int, input().split())
for _ in range(read_val()):
v = read_val()
vs = range(v)
it = read_record()
a = [list(itertools.islice(it, v)) for _ in vs]
for k, i, j in itertool... | 19.954545 | 51 | 0.592255 | 74 | 439 | 3.405405 | 0.459459 | 0.083333 | 0.02381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002924 | 0.220957 | 439 | 21 | 52 | 20.904762 | 0.733918 | 0.047836 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
993853b31b71915677b4d6c3882c2d63ec20228b | 594 | py | Python | plugit/__init__.py | ebu/PlugIt | de5f1e870f67caaef7a4a58e4bb1ed54d9c5dc53 | [
"BSD-3-Clause"
] | 3 | 2017-07-26T08:17:20.000Z | 2021-05-26T10:47:31.000Z | plugit/__init__.py | ebu/PlugIt | de5f1e870f67caaef7a4a58e4bb1ed54d9c5dc53 | [
"BSD-3-Clause"
] | 32 | 2015-05-27T13:26:38.000Z | 2021-06-10T18:32:28.000Z | plugit/__init__.py | ebu/PlugIt | de5f1e870f67caaef7a4a58e4bb1ed54d9c5dc53 | [
"BSD-3-Clause"
] | 4 | 2015-02-02T12:30:38.000Z | 2018-11-15T12:48:17.000Z | from flask import Flask
import config
import routes
from params import PI_BASE_URL
app = Flask(
getattr(config, 'PI_PROJECT_NAME', 'PlugIT-Project'),
static_folder='media',
static_url_path='{}media'.format(PI_BASE_URL)
)
def load_actions(act_mod, mail_callback=None):
"""Initialize routes of the fl... | 23.76 | 139 | 0.728956 | 87 | 594 | 4.781609 | 0.574713 | 0.043269 | 0.043269 | 0.086538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193603 | 594 | 24 | 140 | 24.75 | 0.868476 | 0.382155 | 0 | 0 | 0 | 0 | 0.119186 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
993d446726c04ea29de50b5e9b92784875f75b01 | 3,308 | py | Python | tests/ui/test_ui_passwords.py | LCBRU/batch_demographics | e516e958091fd74dad00b1705431ac030e3c4503 | [
"MIT"
] | null | null | null | tests/ui/test_ui_passwords.py | LCBRU/batch_demographics | e516e958091fd74dad00b1705431ac030e3c4503 | [
"MIT"
] | null | null | null | tests/ui/test_ui_passwords.py | LCBRU/batch_demographics | e516e958091fd74dad00b1705431ac030e3c4503 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
from flask import url_for
from tests.ui_tools import login
from batch_demographics.model import User
from batch_demographics.database import db
from tests.ui.test_ui_security import assert__requires_login_get, assert__url_exists_without_login
from tests.ui.test_ui_boilerpl... | 26.253968 | 99 | 0.623942 | 380 | 3,308 | 5.115789 | 0.213158 | 0.096193 | 0.087963 | 0.067901 | 0.675412 | 0.587963 | 0.539609 | 0.539609 | 0.461934 | 0.4393 | 0 | 0.006431 | 0.247884 | 3,308 | 125 | 100 | 26.464 | 0.77492 | 0.006348 | 0 | 0.546392 | 0 | 0 | 0.125 | 0.022785 | 0 | 0 | 0 | 0 | 0.14433 | 1 | 0.072165 | false | 0.268041 | 0.072165 | 0 | 0.14433 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
99465127dfba97f4e96378e6d36c9f45800d46ad | 340 | py | Python | team_fundraising/migrations/0015_remove_fundraiser_email.py | namtel-hp/fundraising-website | 30cb0cd2bd4505454295d11715e70712525234a3 | [
"MIT"
] | 5 | 2019-10-26T12:41:31.000Z | 2022-03-13T08:30:29.000Z | team_fundraising/migrations/0015_remove_fundraiser_email.py | Maalik1/fundraising-website | a5fcd7e8a5966f299f57c22af8c739a3d6cd501a | [
"MIT"
] | 9 | 2021-03-18T21:27:36.000Z | 2022-03-11T23:42:46.000Z | team_fundraising/migrations/0015_remove_fundraiser_email.py | Maalik1/fundraising-website | a5fcd7e8a5966f299f57c22af8c739a3d6cd501a | [
"MIT"
] | 2 | 2021-01-11T14:19:01.000Z | 2022-02-18T19:18:38.000Z | # Generated by Django 2.2.2 on 2019-06-18 06:19
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('team_fundraising', '0014_auto_20190615_2358'),
]
operations = [
migrations.RemoveField(
model_name='fundraiser',
name='email... | 18.888889 | 56 | 0.605882 | 36 | 340 | 5.583333 | 0.777778 | 0.019901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127572 | 0.285294 | 340 | 17 | 57 | 20 | 0.699588 | 0.132353 | 0 | 0 | 1 | 0 | 0.1843 | 0.078498 | 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 |
9946b56997b79d97fa1892c082c92295916af233 | 499 | py | Python | Configuration/DataProcessing/python/Impl/cosmicsEra_Run2_2017.py | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Configuration/DataProcessing/python/Impl/cosmicsEra_Run2_2017.py | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Configuration/DataProcessing/python/Impl/cosmicsEra_Run2_2017.py | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #!/usr/bin/env python3
"""
_cosmicsEra_Run2_2017_
Scenario supporting cosmic data taking
"""
import os
import sys
from Configuration.Eras.Era_Run2_2017_cff import Run2_2017
from Configuration.DataProcessing.Impl.cosmics import cosmics
class cosmicsEra_Run2_2017(cosmics):
def __init__(self):
cosmics.__i... | 19.192308 | 67 | 0.749499 | 63 | 499 | 5.571429 | 0.507937 | 0.136752 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078624 | 0.184369 | 499 | 25 | 68 | 19.96 | 0.783784 | 0.168337 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
994efa6b25fd2a34bfc13cd400f304ca96cceb28 | 5,739 | py | Python | Code/position_mean_bedGraph.py | Fang-Kevin/PIRCh | 055c1bbea6c8c718fdf1fc4d1ebbb825dfb08fd2 | [
"MIT"
] | null | null | null | Code/position_mean_bedGraph.py | Fang-Kevin/PIRCh | 055c1bbea6c8c718fdf1fc4d1ebbb825dfb08fd2 | [
"MIT"
] | null | null | null | Code/position_mean_bedGraph.py | Fang-Kevin/PIRCh | 055c1bbea6c8c718fdf1fc4d1ebbb825dfb08fd2 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from __future__ import division
import sys
import re
import math
reffile=sys.argv[1] #read in referance file
chrfile=sys.argv[2] #read in chromosome information file
outfile=sys.argv[-1]
bedfile=[] #read in different bedGraph file
for i in range(3,len(sys.argv)-1):
bedfile.append(sys.argv[i])
e... | 32.607955 | 94 | 0.485973 | 792 | 5,739 | 3.493687 | 0.122475 | 0.048067 | 0.028189 | 0.051681 | 0.487532 | 0.421756 | 0.336465 | 0.268522 | 0.21648 | 0.214312 | 0 | 0.031721 | 0.340826 | 5,739 | 175 | 95 | 32.794286 | 0.699709 | 0.200035 | 0 | 0.373134 | 0 | 0 | 0.018649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029851 | null | null | 0.007463 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
994f3631984315f56fb71384955c3d24bb477009 | 12,102 | py | Python | sign_detection/data/video_handler.py | takezo39/mapping-parking-regulations | f25c37bdd2f3678cfd1d87e2861015b27ee1df50 | [
"RSA-MD"
] | null | null | null | sign_detection/data/video_handler.py | takezo39/mapping-parking-regulations | f25c37bdd2f3678cfd1d87e2861015b27ee1df50 | [
"RSA-MD"
] | null | null | null | sign_detection/data/video_handler.py | takezo39/mapping-parking-regulations | f25c37bdd2f3678cfd1d87e2861015b27ee1df50 | [
"RSA-MD"
] | null | null | null | from os.path import join as pj
import numpy as np
import pandas as pd
import cv2
import gpxpy
import datetime
from geopy.distance import vincenty
import imutils
from sign_detection import base_dir
from sign_detection.data import logger
class VideoHandler():
def __init__(self, videopath, fps, gps_path, sync_tup,... | 31.190722 | 95 | 0.579987 | 1,500 | 12,102 | 4.492 | 0.17 | 0.041407 | 0.014841 | 0.016622 | 0.367617 | 0.33274 | 0.290591 | 0.262689 | 0.251113 | 0.231523 | 0 | 0.010599 | 0.3373 | 12,102 | 387 | 96 | 31.271318 | 0.829551 | 0.019997 | 0 | 0.238889 | 0 | 0 | 0.063254 | 0 | 0 | 0 | 0 | 0.002584 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
994f41131865820679efe62f0ec3decb1e73d068 | 10,729 | py | Python | datatypes.py | smilechaser/mc-roboto | f96411c11064114e0d9eb77201b97234ea5fe802 | [
"Apache-2.0"
] | 3 | 2016-06-23T03:43:26.000Z | 2021-08-17T19:31:59.000Z | datatypes.py | smilechaser/mc-roboto | f96411c11064114e0d9eb77201b97234ea5fe802 | [
"Apache-2.0"
] | 1 | 2016-06-16T04:22:57.000Z | 2021-04-21T03:14:51.000Z | datatypes.py | smilechaser/mc-roboto | f96411c11064114e0d9eb77201b97234ea5fe802 | [
"Apache-2.0"
] | null | null | null | '''
'''
import struct
# this gets populated via the class decorators on the DataType subclasses
DATA_TYPE_REGISTRY = {}
def data_type(name):
'''Decorator that:
a) populates the DATA_TYPE_REGISTRY
b) modifies the decorated class to include a DATA_TYPE_NAME field
'''
def dummy(cls):
... | 20.55364 | 90 | 0.590176 | 1,325 | 10,729 | 4.661887 | 0.132075 | 0.133722 | 0.06589 | 0.098592 | 0.615671 | 0.579893 | 0.515137 | 0.469322 | 0.41007 | 0.357293 | 0 | 0.023277 | 0.295274 | 10,729 | 521 | 91 | 20.59309 | 0.793678 | 0.0535 | 0 | 0.479495 | 0 | 0 | 0.021087 | 0 | 0 | 0 | 0.00594 | 0.001919 | 0.003155 | 1 | 0.198738 | false | 0 | 0.003155 | 0.129338 | 0.466877 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
99503947e7d9d08712793f71e08425096c5a6209 | 633 | py | Python | 03_maltparser_train.py | runelk/maltnob | fa12b967650a9273ed40e0c4bdf4484d92f4c0d1 | [
"MIT"
] | null | null | null | 03_maltparser_train.py | runelk/maltnob | fa12b967650a9273ed40e0c4bdf4484d92f4c0d1 | [
"MIT"
] | null | null | null | 03_maltparser_train.py | runelk/maltnob | fa12b967650a9273ed40e0c4bdf4484d92f4c0d1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import maltnob.maltparser as mp
import os.path as path
def make_models(k, filename,
maltparser_jar='tools/maltparser-1.8.1/maltparser-1.8.1.jar'):
for i in range(0, k):
filename_train = "%s.train.%02d" % (filename, i)
filena... | 24.346154 | 78 | 0.620853 | 89 | 633 | 4.213483 | 0.47191 | 0.053333 | 0.058667 | 0.069333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031315 | 0.243286 | 633 | 25 | 79 | 25.32 | 0.751566 | 0.066351 | 0 | 0 | 0 | 0 | 0.120543 | 0.073005 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.176471 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9954ee3565eb91a2f394b2b5e5e76b7a6fd27cef | 465 | py | Python | python/login.py | andrwxlin/quarantine-projects | b42252e168d91b8c9cfcc8f3de35d7aa7287638f | [
"Apache-2.0"
] | null | null | null | python/login.py | andrwxlin/quarantine-projects | b42252e168d91b8c9cfcc8f3de35d7aa7287638f | [
"Apache-2.0"
] | null | null | null | python/login.py | andrwxlin/quarantine-projects | b42252e168d91b8c9cfcc8f3de35d7aa7287638f | [
"Apache-2.0"
] | null | null | null | import json
with open('./credentials.json') as f:
data = json.load(f)
def login(un, pw):
if data['username'] == un and data['password'] == pw:
print("logged in successfully")
return True
else:
print("invalid credentials")
return False
while True:
try:
uName = ... | 20.217391 | 57 | 0.552688 | 56 | 465 | 4.589286 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.32043 | 465 | 23 | 58 | 20.217391 | 0.813291 | 0 | 0 | 0 | 0 | 0 | 0.199571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.111111 | 0.055556 | 0 | 0.222222 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
995b6b7cb4ddf110a21dceb0e14c09251e967e96 | 4,058 | py | Python | server.py | IntegersOfK/grafana_simple_json_flask_example | 15b67a065a0631f78b0a25d2235944989864c320 | [
"Apache-2.0"
] | 1 | 2020-10-10T01:24:27.000Z | 2020-10-10T01:24:27.000Z | server.py | IntegersOfK/grafana_simple_json_flask_example | 15b67a065a0631f78b0a25d2235944989864c320 | [
"Apache-2.0"
] | null | null | null | server.py | IntegersOfK/grafana_simple_json_flask_example | 15b67a065a0631f78b0a25d2235944989864c320 | [
"Apache-2.0"
] | 2 | 2020-07-13T16:55:30.000Z | 2020-09-24T01:02:33.000Z | # python 3.7.2
import datetime
import random
from flask import Flask, make_response, jsonify, request
app = Flask(__name__)
def generate_fake_timeseries(fr, to, interval=60000, create=4):
"""Makes some fake timeseries (value, clock) to send back for rendering a chart in our examples below."""
fr_timestamp = int(da... | 47.186047 | 124 | 0.66757 | 557 | 4,058 | 4.743268 | 0.355476 | 0.040878 | 0.02271 | 0.027252 | 0.162377 | 0.084406 | 0.019682 | 0.019682 | 0.019682 | 0.019682 | 0 | 0.014898 | 0.206013 | 4,058 | 86 | 125 | 47.186047 | 0.80509 | 0.272794 | 0 | 0.035714 | 1 | 0 | 0.161024 | 0.042913 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0.017857 | 0.053571 | 0 | 0.267857 | 0.017857 | 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 |
995bab68ecd55cef5b28aa2efd3fc2c8737ec48d | 1,014 | py | Python | openwater/tests/test_split.py | flowmatters/openwater | 8c48fc1694f54c2735a7ac451fcce56df498e520 | [
"MIT"
] | 1 | 2020-02-12T11:17:02.000Z | 2020-02-12T11:17:02.000Z | openwater/tests/test_split.py | flowmatters/openwater | 8c48fc1694f54c2735a7ac451fcce56df498e520 | [
"MIT"
] | null | null | null | openwater/tests/test_split.py | flowmatters/openwater | 8c48fc1694f54c2735a7ac451fcce56df498e520 | [
"MIT"
] | 1 | 2020-02-27T13:58:14.000Z | 2020-02-27T13:58:14.000Z |
from openwater.split import split_time_series
import numpy as np
def test_create_split_windows():
grp = {
'DummyModel':{
'inputs':np.zeros((1,1,10000))
}
}
BREAKS = [
[100,1000,5000],
[0,100,1000,5000],
[100,1000,5000,10000],
[0,100,1000,5000,1... | 22.043478 | 50 | 0.545365 | 127 | 1,014 | 4.267717 | 0.291339 | 0.191882 | 0.110701 | 0.121771 | 0.226937 | 0.226937 | 0.173432 | 0.173432 | 0.173432 | 0.173432 | 0 | 0.211127 | 0.308679 | 1,014 | 45 | 51 | 22.533333 | 0.562054 | 0 | 0 | 0.111111 | 0 | 0 | 0.01581 | 0 | 0 | 0 | 0 | 0 | 0.305556 | 1 | 0.027778 | false | 0 | 0.055556 | 0 | 0.083333 | 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 |
995cf6a83778f5441ab2a9b08648468e206d52a6 | 21,132 | py | Python | commands/feature_matrix_construction/shscript/make-dcc-snapshot.py | cancerregulome/gidget | 6c9e9a37f9992267c7505c7a396ff7e2638599ab | [
"MIT"
] | 3 | 2016-02-22T21:29:23.000Z | 2020-09-19T07:38:21.000Z | commands/feature_matrix_construction/shscript/make-dcc-snapshot.py | cancerregulome/gidget | 6c9e9a37f9992267c7505c7a396ff7e2638599ab | [
"MIT"
] | 1 | 2015-01-16T02:33:59.000Z | 2015-01-16T02:33:59.000Z | commands/feature_matrix_construction/shscript/make-dcc-snapshot.py | cancerregulome/gidget | 6c9e9a37f9992267c7505c7a396ff7e2638599ab | [
"MIT"
] | 2 | 2015-12-27T08:40:12.000Z | 2021-03-01T06:30:23.000Z | #!/usr/bin/python
# This is a version of DCC Snapshot 2.0 that runs under Python 2.4.
# It no longer prints out the handy help text specified by
# later-supported epilog param of optparse. Since this is meant to
# run in an automated fashion and is quite verbose with its error
# messages, I feel this change is w... | 40.098672 | 100 | 0.604912 | 2,617 | 21,132 | 4.822316 | 0.197937 | 0.012361 | 0.008716 | 0.013312 | 0.20832 | 0.174326 | 0.146117 | 0.121712 | 0.09683 | 0.067987 | 0 | 0.002699 | 0.298694 | 21,132 | 526 | 101 | 40.174905 | 0.848853 | 0.040318 | 0 | 0.247475 | 0 | 0 | 0.24252 | 0.014169 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025253 | null | null | 0.002525 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9961a051b5f2ed3da74e07409d702a9b36336865 | 1,536 | py | Python | bridgedb/test/test_distribute.py | jugheadjones10/bridgedb | 94d6bca4b22458c156898785d8f6ccedf562d884 | [
"BSD-3-Clause-Clear"
] | 4 | 2016-04-18T06:30:54.000Z | 2019-07-17T14:02:45.000Z | bridgedb/test/test_distribute.py | jugheadjones10/bridgedb | 94d6bca4b22458c156898785d8f6ccedf562d884 | [
"BSD-3-Clause-Clear"
] | null | null | null | bridgedb/test/test_distribute.py | jugheadjones10/bridgedb | 94d6bca4b22458c156898785d8f6ccedf562d884 | [
"BSD-3-Clause-Clear"
] | 1 | 2019-04-11T23:00:02.000Z | 2019-04-11T23:00:02.000Z | # -*- coding: utf-8 -*-
#_____________________________________________________________________________
#
# This file is part of BridgeDB, a Tor bridge distribution system.
#
# :authors: Isis Lovecruft 0xA3ADB67A2CDB8B35 <isis@torproject.org>
# please also see AUTHORS file
# :copyright: (c) 2013-2017, Isis Lo... | 34.133333 | 79 | 0.728516 | 159 | 1,536 | 5.968553 | 0.496855 | 0.075869 | 0.056902 | 0.059009 | 0.069547 | 0.069547 | 0.069547 | 0 | 0 | 0 | 0 | 0.01981 | 0.178385 | 1,536 | 44 | 80 | 34.909091 | 0.732171 | 0.473307 | 0 | 0.117647 | 0 | 0 | 0.007884 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.176471 | false | 0 | 0.294118 | 0 | 0.529412 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
99718800710b77d3a37ce312de8b50c32dbd23ca | 476 | py | Python | story/migrations/0019_notification_notify_time.py | OrhanOdabasi/weirdbutreal | 6bd227608192876f65505200873275cc5f709e7d | [
"MIT"
] | null | null | null | story/migrations/0019_notification_notify_time.py | OrhanOdabasi/weirdbutreal | 6bd227608192876f65505200873275cc5f709e7d | [
"MIT"
] | null | null | null | story/migrations/0019_notification_notify_time.py | OrhanOdabasi/weirdbutreal | 6bd227608192876f65505200873275cc5f709e7d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-03-09 15:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('story', '0018_notification_read'),
]
operations = [
migrations.AddField(
... | 22.666667 | 69 | 0.630252 | 53 | 476 | 5.45283 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059155 | 0.254202 | 476 | 20 | 70 | 23.8 | 0.75493 | 0.142857 | 0 | 0 | 1 | 0 | 0.123457 | 0.054321 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9971a5810be27129fd9a628950171a710e6e76a6 | 324 | py | Python | connect4/file.py | wexel-nath/connect4 | 0b084676a1017d11ee33fb7acdaf015b6dbb47d0 | [
"MIT"
] | null | null | null | connect4/file.py | wexel-nath/connect4 | 0b084676a1017d11ee33fb7acdaf015b6dbb47d0 | [
"MIT"
] | null | null | null | connect4/file.py | wexel-nath/connect4 | 0b084676a1017d11ee33fb7acdaf015b6dbb47d0 | [
"MIT"
] | null | null | null | class File:
def __init__(self, name: str, mode: str):
self.file = open(name, mode)
def write(self, line: str):
self.file.write(line + "\n")
def write_dict(self, dict):
for key, val in dict.items():
self.write(f"{key}: {val}")
def close(self):
self.file.clos... | 23.142857 | 45 | 0.546296 | 46 | 324 | 3.73913 | 0.434783 | 0.139535 | 0.127907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29321 | 324 | 13 | 46 | 24.923077 | 0.751092 | 0 | 0 | 0 | 0 | 0 | 0.04321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 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 |
997b7123f3eca829678615be70810b6e6ebf0487 | 1,987 | py | Python | tests/swan/test_defgrad_basic.py | matmodlab/matmodlab2 | 97bb858e2b625cca5f3291db5d50bdbb6352e976 | [
"BSD-3-Clause"
] | 6 | 2017-02-14T02:04:56.000Z | 2022-02-03T04:53:32.000Z | tests/swan/test_defgrad_basic.py | tjfulle/matmodlab2 | 97bb858e2b625cca5f3291db5d50bdbb6352e976 | [
"BSD-3-Clause"
] | 10 | 2017-01-21T00:00:06.000Z | 2017-01-22T07:39:44.000Z | tests/swan/test_defgrad_basic.py | tjfulle/matmodlab2 | 97bb858e2b625cca5f3291db5d50bdbb6352e976 | [
"BSD-3-Clause"
] | 3 | 2018-10-20T22:53:59.000Z | 2022-01-13T07:17:24.000Z | from io import StringIO
from collections import OrderedDict
import numpy as np
import scipy.linalg as sl
import pandas as pd
import pytest
import matmodlab2 as mml
runid = 'simulation_output'
def compare_dataframes(frame1, frame2, tol=1.0e-12):
head1 = frame1.keys()
head2 = frame2.keys()
passed = True
... | 29.220588 | 86 | 0.612984 | 327 | 1,987 | 3.636086 | 0.330275 | 0.04878 | 0.050463 | 0.047098 | 0.089151 | 0.030278 | 0.021867 | 0.021026 | 0.015139 | 0 | 0 | 0.096291 | 0.226472 | 1,987 | 67 | 87 | 29.656716 | 0.677293 | 0.031203 | 0 | 0 | 0 | 0.076923 | 0.127017 | 0.083811 | 0 | 0 | 0 | 0 | 0.019231 | 1 | 0.038462 | false | 0.057692 | 0.134615 | 0 | 0.192308 | 0.096154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
998918243d699ca113602fa1641f9628d6c286e7 | 4,070 | py | Python | radar/plot/completion.py | RADAR-base/pyRADAR-processing | 3995d5f5f52b7be116a3b9dcaa7a1fa36875354a | [
"Apache-2.0"
] | 2 | 2018-07-02T14:31:51.000Z | 2020-11-02T16:01:58.000Z | radar/plot/completion.py | RADAR-base/pyRADAR-processing | 3995d5f5f52b7be116a3b9dcaa7a1fa36875354a | [
"Apache-2.0"
] | 2 | 2020-09-25T05:20:50.000Z | 2021-06-25T15:17:34.000Z | radar/plot/completion.py | RADAR-base/pyRADAR-processing | 3995d5f5f52b7be116a3b9dcaa7a1fa36875354a | [
"Apache-2.0"
] | 1 | 2020-09-18T13:20:15.000Z | 2020-09-18T13:20:15.000Z | import pandas as pd
import seaborn as sns
from datetime import datetime
import matplotlib.patches as patches
from ..common import log
from ..util.completion import completion_idx_has_data
def completion_plot(completion, modalities, start, end, freq,
ax=None, cmap=None, x_tick_mult=24, x_tick_fmt="%y-%m-%d %H:%M",... | 40.7 | 128 | 0.641769 | 622 | 4,070 | 3.998392 | 0.289389 | 0.031363 | 0.007238 | 0.0193 | 0.186972 | 0.160032 | 0.141536 | 0.12304 | 0.057097 | 0.057097 | 0 | 0.018713 | 0.251597 | 4,070 | 99 | 129 | 41.111111 | 0.797768 | 0.279361 | 0 | 0 | 0 | 0 | 0.041369 | 0 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.02 | false | 0 | 0.12 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
998ac702249f446413ab3a67dfd81f37fc34e283 | 729 | py | Python | p30-39/p37.py | kbrose/project_euler | f582ef1887f44628997e05d88253adad0822d6b9 | [
"Unlicense"
] | 1 | 2015-10-11T15:53:00.000Z | 2015-10-11T15:53:00.000Z | p30-39/p37.py | kbrose/project_euler | f582ef1887f44628997e05d88253adad0822d6b9 | [
"Unlicense"
] | null | null | null | p30-39/p37.py | kbrose/project_euler | f582ef1887f44628997e05d88253adad0822d6b9 | [
"Unlicense"
] | null | null | null | from array import *
n = 1000000 # finds primes up to n
sieve = [1]*n
sieve[0] = 0
sieve[1] = 0
for i in xrange(2, int(n ** 0.5) + 1):
for j in xrange(i << 1, n, i):
sieve[j] = 0
def testleft(n):
while(n > 10):
if not sieve[n]:
return 0
n = n / 10
return sieve[n]
de... | 15.847826 | 38 | 0.470508 | 119 | 729 | 2.882353 | 0.285714 | 0.087464 | 0.069971 | 0.058309 | 0.163265 | 0.163265 | 0.163265 | 0.163265 | 0.163265 | 0.163265 | 0 | 0.092971 | 0.395062 | 729 | 45 | 39 | 16.2 | 0.684807 | 0.027435 | 0 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029412 | null | null | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
998b74dee6179e0d513a17a87cb4c988c6f1f4b5 | 237 | py | Python | dunqgram/notify/admin.py | kindunq/DunqGram | e4c9a6d2501d6229d1ef000b1c269cd978a8b4b8 | [
"MIT"
] | 1 | 2018-12-27T08:47:16.000Z | 2018-12-27T08:47:16.000Z | dunqgram/notify/admin.py | kindunq/DunqGram | e4c9a6d2501d6229d1ef000b1c269cd978a8b4b8 | [
"MIT"
] | null | null | null | dunqgram/notify/admin.py | kindunq/DunqGram | e4c9a6d2501d6229d1ef000b1c269cd978a8b4b8 | [
"MIT"
] | null | null | null | from django.contrib import admin
from . import models
# Register your models here.
@admin.register(models.Notify)
class NotifyAdmin(admin.ModelAdmin):
list_display = (
'creator',
'to',
'notify_type',
)
| 16.928571 | 36 | 0.649789 | 26 | 237 | 5.846154 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244726 | 237 | 13 | 37 | 18.230769 | 0.849162 | 0.109705 | 0 | 0 | 0 | 0 | 0.095694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9994260ad52105c9684e87844450b938947764e3 | 1,362 | py | Python | course_parallel_computer/Section_1_Python_Parallel_Programming_Solutions/Section6/PyOPENCL/PyOpenCLParallellSum.py | software-foundations/learning-distributed-systems | b09f60742a88acf466fcf724e1368b95363682fa | [
"MIT"
] | 6 | 2018-03-22T10:23:27.000Z | 2021-12-10T03:45:50.000Z | course_parallel_computer/Section_1_Python_Parallel_Programming_Solutions/Section6/PyOPENCL/PyOpenCLParallellSum.py | software-foundations/learning-distributed-systems | b09f60742a88acf466fcf724e1368b95363682fa | [
"MIT"
] | null | null | null | course_parallel_computer/Section_1_Python_Parallel_Programming_Solutions/Section6/PyOPENCL/PyOpenCLParallellSum.py | software-foundations/learning-distributed-systems | b09f60742a88acf466fcf724e1368b95363682fa | [
"MIT"
] | 1 | 2020-08-25T14:26:27.000Z | 2020-08-25T14:26:27.000Z | import numpy as np
import pyopencl as cl
import numpy.linalg as la
vector_dimension = 100
vector_a = np.random.randint(vector_dimension, size=vector_dimension)
vector_b = np.random.randint(vector_dimension, size=vector_dimension)
platform = cl.get_platforms()[0]
device = platform.get_devices()[0]
contex... | 28.375 | 97 | 0.714391 | 222 | 1,362 | 4.130631 | 0.315315 | 0.061069 | 0.029444 | 0.052345 | 0.239913 | 0.220284 | 0.220284 | 0.220284 | 0.113413 | 0.113413 | 0 | 0.006981 | 0.15859 | 1,362 | 47 | 98 | 28.978723 | 0.793194 | 0 | 0 | 0 | 0 | 0.029412 | 0.234221 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0 | null | null | 0 | 0.088235 | null | null | 0.294118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
999b445fae171cafe90e8b52864d0f40943dd0e1 | 4,471 | py | Python | searchlogger/form/migrations/0003_auto_20160531_2059.py | andrewhead/Search-Task-Logger | 8f867780235493ca43b5cd1ad0f95e4464a62ee4 | [
"MIT"
] | null | null | null | searchlogger/form/migrations/0003_auto_20160531_2059.py | andrewhead/Search-Task-Logger | 8f867780235493ca43b5cd1ad0f95e4464a62ee4 | [
"MIT"
] | null | null | null | searchlogger/form/migrations/0003_auto_20160531_2059.py | andrewhead/Search-Task-Logger | 8f867780235493ca43b5cd1ad0f95e4464a62ee4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-31 20:59
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependen... | 49.131868 | 259 | 0.617535 | 528 | 4,471 | 5.100379 | 0.314394 | 0.057185 | 0.063127 | 0.07798 | 0.529521 | 0.50687 | 0.435574 | 0.305978 | 0.266617 | 0.266617 | 0 | 0.038855 | 0.257437 | 4,471 | 90 | 260 | 49.677778 | 0.772289 | 0.014985 | 0 | 0.445783 | 1 | 0 | 0.263349 | 0.017269 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.048193 | 0 | 0.084337 | 0 | 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 |
999b50f7e99e2787d547390ec67b3f8050536847 | 1,970 | py | Python | backend/headliner/api/news/migrations/0001_initial.py | mraarif/udacity-clouddevops-capstone | eba3963c9ed83208adcf04cc5dd98a10b658fb60 | [
"MIT"
] | null | null | null | backend/headliner/api/news/migrations/0001_initial.py | mraarif/udacity-clouddevops-capstone | eba3963c9ed83208adcf04cc5dd98a10b658fb60 | [
"MIT"
] | null | null | null | backend/headliner/api/news/migrations/0001_initial.py | mraarif/udacity-clouddevops-capstone | eba3963c9ed83208adcf04cc5dd98a10b658fb60 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-05-09 07:52
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="Source",
fields=[
... | 32.295082 | 84 | 0.428934 | 147 | 1,970 | 5.585034 | 0.401361 | 0.120585 | 0.065773 | 0.087698 | 0.317905 | 0.28989 | 0.28989 | 0.199756 | 0.199756 | 0.199756 | 0 | 0.027619 | 0.467005 | 1,970 | 60 | 85 | 32.833333 | 0.754286 | 0.021827 | 0 | 0.509434 | 1 | 0 | 0.076883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037736 | 0 | 0.113208 | 0 | 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 |
99a48ee142da09f122ae25ef215f5f7b814afc3e | 6,896 | py | Python | core/views.py | schliker1987/django-social-network-1 | ab8c648ca1a60eb2ec204b767d2846f010e6be78 | [
"Apache-2.0"
] | 3 | 2021-03-11T15:13:25.000Z | 2022-01-19T12:25:20.000Z | core/views.py | schliker1987/django-social-network-1 | ab8c648ca1a60eb2ec204b767d2846f010e6be78 | [
"Apache-2.0"
] | null | null | null | core/views.py | schliker1987/django-social-network-1 | ab8c648ca1a60eb2ec204b767d2846f010e6be78 | [
"Apache-2.0"
] | 2 | 2021-12-15T00:02:17.000Z | 2021-12-28T19:14:56.000Z | import os, json
from PIL import Image
from django.contrib.auth.models import User
from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
from django.views.generic import ListView
from django.contrib import messages
from django.core.paginator import Paginator, Emp... | 37.89011 | 115 | 0.656032 | 831 | 6,896 | 5.298436 | 0.23225 | 0.019986 | 0.025437 | 0.028617 | 0.187826 | 0.153077 | 0.10402 | 0.093573 | 0.093573 | 0.029525 | 0 | 0.006156 | 0.222593 | 6,896 | 182 | 116 | 37.89011 | 0.815146 | 0.022767 | 0 | 0.180124 | 0 | 0 | 0.098322 | 0.006238 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055901 | false | 0.062112 | 0.111801 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
41cf6463cd40dbf5f4b3f21b0bf8199c264be7b3 | 7,339 | py | Python | cogs/giveaway.py | Mr-PenguinMan/bush-bot | 88d9c7e2af5f5b5fa73cef33d7759c76b3f52658 | [
"MIT"
] | null | null | null | cogs/giveaway.py | Mr-PenguinMan/bush-bot | 88d9c7e2af5f5b5fa73cef33d7759c76b3f52658 | [
"MIT"
] | null | null | null | cogs/giveaway.py | Mr-PenguinMan/bush-bot | 88d9c7e2af5f5b5fa73cef33d7759c76b3f52658 | [
"MIT"
] | null | null | null | from discord.ext.commands import Cog
from discord.ext.commands import has_permissions
from discord.ext.commands import command
from discord.ext.commands import group
from discord.ext import commands
import datetime
import asyncio
import discord
import re
def td_format(td_object):
seconds = int(td_object.total_se... | 42.421965 | 154 | 0.619567 | 903 | 7,339 | 4.92691 | 0.284607 | 0.016183 | 0.026298 | 0.03439 | 0.258036 | 0.189256 | 0.16588 | 0.16588 | 0.092156 | 0.071027 | 0 | 0.024074 | 0.252895 | 7,339 | 172 | 155 | 42.668605 | 0.78716 | 0.022755 | 0 | 0.058824 | 0 | 0.014706 | 0.188729 | 0.020226 | 0 | 0 | 0 | 0.005814 | 0 | 0 | null | null | 0 | 0.066176 | 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 |
41d188cc8ed46b9e31b25b0e8d61e7bad4b26e0b | 7,261 | py | Python | pysnmp/H3C-FTM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/H3C-FTM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/H3C-FTM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module H3C-FTM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/H3C-FTM-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:09:18 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 0... | 119.032787 | 891 | 0.741771 | 861 | 7,261 | 6.253194 | 0.174216 | 0.018202 | 0.014487 | 0.017088 | 0.395431 | 0.306092 | 0.29049 | 0.272845 | 0.258358 | 0.2461 | 0 | 0.101015 | 0.090621 | 7,261 | 60 | 892 | 121.016667 | 0.714372 | 0.04352 | 0 | 0.057692 | 0 | 0 | 0.174885 | 0.00966 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.134615 | 0 | 0.134615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
41d6cb2a5f87c591ebc5f7d764ca696a843c5e40 | 10,818 | py | Python | test_looper/core/tools/Docker.py | ufora/test-looper | 2a803c08dbf1c7d20966998a7744f65c30fc505a | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2018-02-03T22:05:44.000Z | 2019-07-30T01:12:31.000Z | test_looper/core/tools/Docker.py | ufora/test-looper | 2a803c08dbf1c7d20966998a7744f65c30fc505a | [
"ECL-2.0",
"Apache-2.0"
] | 43 | 2018-01-30T19:46:38.000Z | 2018-06-13T15:59:24.000Z | test_looper/core/tools/Docker.py | ufora/test-looper | 2a803c08dbf1c7d20966998a7744f65c30fc505a | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2017-10-07T14:29:42.000Z | 2018-07-23T19:59:59.000Z | import collections
from hashlib import md5
import os
import test_looper.core.SubprocessRunner as SubprocessRunner
import sys
import logging
import docker
import tempfile
import test_looper.core.tools.DockerWatcher as DockerWatcher
docker_client = docker.from_env()
docker_client.containers.list()
class DockerContaine... | 31.631579 | 137 | 0.550009 | 1,114 | 10,818 | 5.182226 | 0.190305 | 0.028581 | 0.016629 | 0.022865 | 0.246666 | 0.213061 | 0.135458 | 0.082453 | 0.052312 | 0.052312 | 0 | 0.002416 | 0.349603 | 10,818 | 341 | 138 | 31.72434 | 0.818078 | 0.004714 | 0 | 0.233083 | 0 | 0.007519 | 0.10275 | 0.006782 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015038 | 0.033835 | null | null | 0.011278 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
41da74872aef5cb14aeb224f3ad309e0cd7d373f | 1,112 | py | Python | qurator/dinglehopper/tests/test_integ_ocrd_cli.py | JKamlah/dinglehopper | 40ab1c07747e0bb888a7f06b249835e375235e71 | [
"Apache-2.0"
] | null | null | null | qurator/dinglehopper/tests/test_integ_ocrd_cli.py | JKamlah/dinglehopper | 40ab1c07747e0bb888a7f06b249835e375235e71 | [
"Apache-2.0"
] | null | null | null | qurator/dinglehopper/tests/test_integ_ocrd_cli.py | JKamlah/dinglehopper | 40ab1c07747e0bb888a7f06b249835e375235e71 | [
"Apache-2.0"
] | null | null | null | import os
import re
import shutil
import json
from pathlib import Path
from click.testing import CliRunner
import pytest
from .util import working_directory
from ..ocrd_cli import ocrd_dinglehopper
data_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data')
def test_ocrd_cli(tmp_path):
"""Test... | 29.263158 | 87 | 0.68795 | 160 | 1,112 | 4.5625 | 0.4375 | 0.124658 | 0.131507 | 0.078082 | 0.052055 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01768 | 0.186151 | 1,112 | 37 | 88 | 30.054054 | 0.78895 | 0.104317 | 0 | 0 | 0 | 0 | 0.138664 | 0.078947 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.041667 | false | 0 | 0.375 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
41fabc4b67bb1e8a7c8e0e66373ee328f6287870 | 611 | py | Python | urlScanner.py | keeranrichardson/python-seo-tool | 0bc9c675be7c6757649abf06bde7d76d3f75fe81 | [
"MIT"
] | 1 | 2022-02-20T17:23:41.000Z | 2022-02-20T17:23:41.000Z | urlScanner.py | keeranrichardson/python-seo-tool | 0bc9c675be7c6757649abf06bde7d76d3f75fe81 | [
"MIT"
] | null | null | null | urlScanner.py | keeranrichardson/python-seo-tool | 0bc9c675be7c6757649abf06bde7d76d3f75fe81 | [
"MIT"
] | 1 | 2022-03-05T15:41:33.000Z | 2022-03-05T15:41:33.000Z | import requests
class UrlScanner:
def __init__(self, url):
self.url = url
self.response = None
self.location = ''
def getStatus(self):
try:
if self.response is None:
self.response = requests.head(self.url, allow_redirects=False)
if self.r... | 27.772727 | 78 | 0.577741 | 67 | 611 | 5.164179 | 0.462687 | 0.208092 | 0.080925 | 0.127168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01467 | 0.330606 | 611 | 22 | 79 | 27.772727 | 0.831296 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.055556 | 0.055556 | 0.444444 | 0.055556 | 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 |
41fe39d72df66952c8652ec220f2b8e859fc4f03 | 3,927 | py | Python | proj/utils/torch_util.py | angelolovatto/deep-rl | 9f0c1aafe71852c8973bf1ab732114a3cdbe23ad | [
"MIT"
] | 1 | 2018-11-28T15:21:44.000Z | 2018-11-28T15:21:44.000Z | proj/utils/torch_util.py | angelolovatto/deep-rl | 9f0c1aafe71852c8973bf1ab732114a3cdbe23ad | [
"MIT"
] | null | null | null | proj/utils/torch_util.py | angelolovatto/deep-rl | 9f0c1aafe71852c8973bf1ab732114a3cdbe23ad | [
"MIT"
] | null | null | null | """
A collection of PyTorch utility functions and module subclasses
"""
import torch
import torch.nn as nn
import numpy as np
from torch.autograd import grad
from torch.optim.lr_scheduler import _LRScheduler
from torch.distributions import constraints
from torch.distributions.transforms import Transform
_NP_TO_PT = {... | 25.835526 | 80 | 0.599694 | 528 | 3,927 | 4.236742 | 0.270833 | 0.032186 | 0.024587 | 0.026822 | 0.137684 | 0.084935 | 0.032186 | 0.032186 | 0.032186 | 0.032186 | 0 | 0.024892 | 0.232748 | 3,927 | 151 | 81 | 26.006623 | 0.717557 | 0.071301 | 0 | 0.1 | 0 | 0 | 0.000826 | 0 | 0 | 0 | 0 | 0 | 0.01 | 1 | 0.19 | false | 0 | 0.07 | 0.09 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
51030b33ab46634a78be168617bea90e97587fed | 2,703 | py | Python | tcpcheck-bulk.py | bugcy013/Bash-Admin-Scripts | 3d4f05a8bbbe0e4b7712cf4fc424178e9edc65e0 | [
"Unlicense"
] | null | null | null | tcpcheck-bulk.py | bugcy013/Bash-Admin-Scripts | 3d4f05a8bbbe0e4b7712cf4fc424178e9edc65e0 | [
"Unlicense"
] | null | null | null | tcpcheck-bulk.py | bugcy013/Bash-Admin-Scripts | 3d4f05a8bbbe0e4b7712cf4fc424178e9edc65e0 | [
"Unlicense"
] | 1 | 2020-12-16T20:51:35.000Z | 2020-12-16T20:51:35.000Z | #!/usr/bin/python
#
# Author : Jon Zobrist <jon@jonzobrist.com>
# Homepage : http://www.jonzobrist.com
# License : BSD http://en.wikipedia.org/wiki/BSD_license
# Copyright (c) 2012, Jon Zobrist
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted pr... | 40.954545 | 112 | 0.721791 | 377 | 2,703 | 5.167109 | 0.472149 | 0.014374 | 0.01694 | 0.023101 | 0.185318 | 0.160678 | 0.10883 | 0.069815 | 0.069815 | 0.069815 | 0 | 0.010526 | 0.191639 | 2,703 | 65 | 113 | 41.584615 | 0.881007 | 0.698853 | 0 | 0.148148 | 0 | 0 | 0.117419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074074 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51057815ee830fe1cd6840777e293f3cafbca195 | 3,180 | py | Python | Google Vision OCR.py | shirishsaxena/Tesseract-Multi-Image-OCR | c0664040b1471680a527d0629e086b68abb77431 | [
"Apache-2.0"
] | 1 | 2019-12-05T15:06:41.000Z | 2019-12-05T15:06:41.000Z | Google Vision OCR.py | shirishsaxena/Tesseract-Multi-Image-OCR | c0664040b1471680a527d0629e086b68abb77431 | [
"Apache-2.0"
] | null | null | null | Google Vision OCR.py | shirishsaxena/Tesseract-Multi-Image-OCR | c0664040b1471680a527d0629e086b68abb77431 | [
"Apache-2.0"
] | null | null | null | import os, io,time,os.path
from PIL import Image, ImageChops
from google.cloud import vision
from google.cloud.vision import types
#import pandas as pd
os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = r'VisionAPI.json'
Version = "v1 (05-12-19)"
print "\nMulti GVision Image -> .txt %s\n\n" %Version
####################... | 32.783505 | 144 | 0.57956 | 430 | 3,180 | 4.148837 | 0.386047 | 0.030269 | 0.026906 | 0.035874 | 0.058296 | 0.058296 | 0.058296 | 0 | 0 | 0 | 0 | 0.011475 | 0.260063 | 3,180 | 96 | 145 | 33.125 | 0.746706 | 0.05 | 0 | 0.111111 | 0 | 0 | 0.158917 | 0.010409 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.063492 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5109c2590a42a1a42e9bc77e922b2bcb1a04265f | 789 | py | Python | engine/test/mock_plugin/__init__.py | leosmerling/hopeit.engine | d95a130b03db4c5c6265d13256e77bf3fa2f6a42 | [
"Apache-2.0"
] | null | null | null | engine/test/mock_plugin/__init__.py | leosmerling/hopeit.engine | d95a130b03db4c5c6265d13256e77bf3fa2f6a42 | [
"Apache-2.0"
] | null | null | null | engine/test/mock_plugin/__init__.py | leosmerling/hopeit.engine | d95a130b03db4c5c6265d13256e77bf3fa2f6a42 | [
"Apache-2.0"
] | null | null | null | import pytest # type: ignore
from hopeit.app.config import AppConfig, AppDescriptor, \
EventDescriptor, EventType, EventPlugMode
from hopeit.server.config import ServerConfig, LoggingConfig
@pytest.fixture
def mock_plugin_config():
return AppConfig(
app=AppDescriptor(name='mock_plugin', version='tes... | 28.178571 | 80 | 0.590621 | 72 | 789 | 6.277778 | 0.555556 | 0.044248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.307985 | 789 | 27 | 81 | 29.222222 | 0.827839 | 0.015209 | 0 | 0 | 0 | 0 | 0.143226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | true | 0 | 0.125 | 0.041667 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
510c8b027c773abed30582e34c7c1b4f5cc044cf | 1,755 | py | Python | preprocessing/lowlight_enhancement.py | vision4robotics/UDAT | f06971ec7d6794d0572864cf9fd6d49a66201303 | [
"Apache-2.0"
] | 81 | 2022-03-06T05:10:46.000Z | 2022-03-30T09:43:41.000Z | preprocessing/lowlight_enhancement.py | JayYe99/UDAT | f06971ec7d6794d0572864cf9fd6d49a66201303 | [
"Apache-2.0"
] | null | null | null | preprocessing/lowlight_enhancement.py | JayYe99/UDAT | f06971ec7d6794d0572864cf9fd6d49a66201303 | [
"Apache-2.0"
] | 13 | 2022-03-07T12:11:44.000Z | 2022-03-31T06:16:01.000Z | import torch
import torch.nn as nn
import torchvision
import torch.backends.cudnn as cudnn
import torch.optim
import os
import sys
import argparse
import time
import DCE.dce_model
import numpy as np
from torchvision import transforms
from PIL import Image
import glob
import time
from tqdm import tqdm
# os.environ['CUDA... | 28.306452 | 79 | 0.757835 | 272 | 1,755 | 4.617647 | 0.330882 | 0.133758 | 0.038217 | 0.057325 | 0.08758 | 0.08758 | 0 | 0 | 0 | 0 | 0 | 0.016077 | 0.11396 | 1,755 | 62 | 80 | 28.306452 | 0.79164 | 0.052991 | 0 | 0.086957 | 0 | 0 | 0.074141 | 0.0217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.347826 | 0 | 0.369565 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
51123d80ea6e6ce38a1eb7d5b289ba62198aff4a | 571 | py | Python | src/rayures/management/commands/replay_events.py | johnnoone/django-rayures | a839bd134e41175b32715901ffd46d129b255812 | [
"MIT"
] | null | null | null | src/rayures/management/commands/replay_events.py | johnnoone/django-rayures | a839bd134e41175b32715901ffd46d129b255812 | [
"MIT"
] | null | null | null | src/rayures/management/commands/replay_events.py | johnnoone/django-rayures | a839bd134e41175b32715901ffd46d129b255812 | [
"MIT"
] | null | null | null | from django.apps import apps
from django.core.management.base import BaseCommand
from rayures.events import dispatch
class Command(BaseCommand):
help = 'Sync stripe events'
def handle(self, *args, **options):
# TODO: option to select only the one that have only failed or never processed
cls =... | 33.588235 | 86 | 0.66725 | 76 | 571 | 4.934211 | 0.684211 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231173 | 571 | 16 | 87 | 35.6875 | 0.854214 | 0.208406 | 0 | 0 | 0 | 0 | 0.089087 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.545455 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5115867ce34dae576d24e042e8c7c634090469ac | 2,300 | py | Python | setup.py | jayvdb/pypidb | 7b27f9314cb4d87c2d6cd383a8d3c094ce4a2d3a | [
"Apache-2.0"
] | 14 | 2020-03-21T11:03:43.000Z | 2022-03-05T14:54:03.000Z | setup.py | jayvdb/pypidb | 7b27f9314cb4d87c2d6cd383a8d3c094ce4a2d3a | [
"Apache-2.0"
] | 119 | 2020-03-22T11:57:29.000Z | 2020-09-11T03:54:46.000Z | setup.py | jayvdb/pypidb | 7b27f9314cb4d87c2d6cd383a8d3c094ce4a2d3a | [
"Apache-2.0"
] | 3 | 2020-04-14T12:42:35.000Z | 2022-03-18T15:58:59.000Z | #!/usr/bin/env python
"""PyPI client side database."""
"""
Copyright 2020 John Vandenberg
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless requ... | 29.113924 | 72 | 0.663043 | 269 | 2,300 | 5.605948 | 0.613383 | 0.039788 | 0.09947 | 0.068966 | 0.035809 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020241 | 0.205217 | 2,300 | 78 | 73 | 29.487179 | 0.804705 | 0.029565 | 0 | 0 | 0 | 0.017857 | 0.603127 | 0.039687 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017857 | 0 | 0.017857 | 0 | 0 | 0 | 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 |
5115cca963b8b97a0115826031e988f0063105f7 | 722 | py | Python | upload.py | alexguzun/rascam_client | 8fc4c7aa66f6cd635b44c279b323abe9a254c2c7 | [
"Apache-2.0"
] | 1 | 2017-07-21T14:44:18.000Z | 2017-07-21T14:44:18.000Z | upload.py | alexguzun/rascam_client | 8fc4c7aa66f6cd635b44c279b323abe9a254c2c7 | [
"Apache-2.0"
] | null | null | null | upload.py | alexguzun/rascam_client | 8fc4c7aa66f6cd635b44c279b323abe9a254c2c7 | [
"Apache-2.0"
] | null | null | null | import argparse
from camera_worker import upload
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Upload images.')
parser.add_argument("-f", help="the filename of the image", dest='filename', required=True)
parser.add_argument("-e", help="the event", dest='event')
parser.add_... | 31.391304 | 113 | 0.695291 | 96 | 722 | 5.072917 | 0.46875 | 0.092402 | 0.174538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 722 | 22 | 114 | 32.818182 | 0.800987 | 0 | 0 | 0 | 0 | 0 | 0.285118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5118e97ca07ead162d2e9b7ef9b9c76993cf401c | 2,088 | py | Python | utils/checks.py | davidetacchini/overbot | 933a40642f6c87d39fb3eaf878001097376d2e2c | [
"MIT"
] | 8 | 2020-10-13T14:56:13.000Z | 2021-09-23T14:48:53.000Z | utils/checks.py | davidetacchini/overbot | 933a40642f6c87d39fb3eaf878001097376d2e2c | [
"MIT"
] | null | null | null | utils/checks.py | davidetacchini/overbot | 933a40642f6c87d39fb3eaf878001097376d2e2c | [
"MIT"
] | 4 | 2021-01-14T16:38:38.000Z | 2021-02-01T15:56:17.000Z | from discord.ext import commands
class ProfileNotLinked(commands.CheckFailure):
pass
class ProfileLimitReached(commands.CheckFailure):
def __init__(self, limit):
self.limit = limit
class MemberIsNotPremium(commands.CheckFailure):
pass
class MemberOnCooldown(commands.CommandOnCooldown):
... | 23.460674 | 65 | 0.653257 | 268 | 2,088 | 4.951493 | 0.294776 | 0.0422 | 0.027129 | 0.02939 | 0.257724 | 0.191409 | 0.134137 | 0.094951 | 0.094951 | 0.094951 | 0 | 0.001948 | 0.262452 | 2,088 | 88 | 66 | 23.727273 | 0.85974 | 0.064176 | 0 | 0.358491 | 0 | 0 | 0.099071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0.056604 | 0.018868 | 0 | 0.320755 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
511fb29c1a2dbe45e8247a6272e689a4f2a1777f | 5,080 | py | Python | Neural_Networks/Aplication/Neural_network_color.py | jeffreire/Deep_Learning | 960142080dc63ea103b326ea3d6d17bd44ae0f51 | [
"MIT"
] | null | null | null | Neural_Networks/Aplication/Neural_network_color.py | jeffreire/Deep_Learning | 960142080dc63ea103b326ea3d6d17bd44ae0f51 | [
"MIT"
] | null | null | null | Neural_Networks/Aplication/Neural_network_color.py | jeffreire/Deep_Learning | 960142080dc63ea103b326ea3d6d17bd44ae0f51 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import random as rd
class Color_learning:
def __init__(self, feature, labls, entradas, oculta, saida, inst, lr, ephoca, ohl):
self.feature = feature
self.labels = labls
self.input = entradas
self.output = saida
self.hidden = ... | 44.561404 | 190 | 0.657677 | 638 | 5,080 | 5.059561 | 0.268025 | 0.034077 | 0.022305 | 0.01487 | 0.126704 | 0.107497 | 0.046468 | 0.046468 | 0.022305 | 0.022305 | 0 | 0.294595 | 0.224213 | 5,080 | 113 | 191 | 44.955752 | 0.524486 | 0.003937 | 0 | 0.045455 | 0 | 0 | 0.011731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.011364 | 0.034091 | 0.034091 | 0.181818 | 0.011364 | 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 |
5120e76d420cbe8ada5f07045f2fd3bd54df828a | 260 | py | Python | blog/api/urls.py | khatangatao/khatangatao | 58ecf793f2dfdaceee90e5a2d6b60559f208a131 | [
"MIT"
] | null | null | null | blog/api/urls.py | khatangatao/khatangatao | 58ecf793f2dfdaceee90e5a2d6b60559f208a131 | [
"MIT"
] | null | null | null | blog/api/urls.py | khatangatao/khatangatao | 58ecf793f2dfdaceee90e5a2d6b60559f208a131 | [
"MIT"
] | null | null | null | from django.conf.urls import include, url
from ..views import EntryApi
from rest_framework import routers
router = routers.DefaultRouter()
router.register('entry', EntryApi, base_name='entry')
urlpatterns = [
# API
url(r'^', include(router.urls)),
] | 21.666667 | 53 | 0.730769 | 33 | 260 | 5.69697 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142308 | 260 | 12 | 54 | 21.666667 | 0.843049 | 0.011538 | 0 | 0 | 0 | 0 | 0.042969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
51340409f8b1eb3af1c950505b249a316381f800 | 916 | py | Python | correiospy/service_codes.py | guicarvalho/pycorreios | a332f8dfebaa98d749705c0d846b3d58c7a3e32a | [
"MIT"
] | 8 | 2015-02-17T04:33:01.000Z | 2022-03-04T10:19:13.000Z | correiospy/service_codes.py | guicarvalho/pycorreios | a332f8dfebaa98d749705c0d846b3d58c7a3e32a | [
"MIT"
] | 1 | 2016-03-04T10:51:28.000Z | 2016-09-25T19:04:32.000Z | correiospy/service_codes.py | guicarvalho/pycorreios | a332f8dfebaa98d749705c0d846b3d58c7a3e32a | [
"MIT"
] | 1 | 2016-03-05T12:37:30.000Z | 2016-03-05T12:37:30.000Z | # coding: utf-8
from .errors import InvalidServiceCodeError
class ServiceCodes(object):
SEDEX_VAREJO_CODE = '40010'
SEDEX_A_COBRAR_VAREJO_CODE = '40045'
SEDEX_10_VAREJO_CODE = '40215'
SEDEX_HOJE_VAREJO_CODE = '40290'
PAC_VAREJO_CODE = '41106'
def get_service_code_list(self):
codes = ... | 30.533333 | 106 | 0.686681 | 121 | 916 | 4.768595 | 0.338843 | 0.17331 | 0.135182 | 0.098787 | 0.076257 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043165 | 0.241266 | 916 | 29 | 107 | 31.586207 | 0.78705 | 0.014192 | 0 | 0 | 0 | 0 | 0.083241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
513892411f63a4da5958a40fdd2a48e411bc36d1 | 1,376 | py | Python | walletapp/helpers.py | nkuttler/flaskwallet | 87fe06fdffd424341305a79e7a61c56254bdd6c9 | [
"BSD-3-Clause"
] | 17 | 2015-01-18T23:24:37.000Z | 2021-06-26T17:31:07.000Z | walletapp/helpers.py | nkuttler/flaskwallet | 87fe06fdffd424341305a79e7a61c56254bdd6c9 | [
"BSD-3-Clause"
] | 1 | 2016-07-29T11:26:37.000Z | 2016-07-29T11:38:14.000Z | walletapp/helpers.py | nkuttler/flaskwallet | 87fe06fdffd424341305a79e7a61c56254bdd6c9 | [
"BSD-3-Clause"
] | 10 | 2015-03-10T06:07:01.000Z | 2021-06-26T17:31:18.000Z | import random
import urllib
from flaskwallet import app
from flaskwallet import session
from settingsapp.helpers import get_setting
def real_format(account):
if account == '__DEFAULT_ACCOUNT__':
account = ''
return account
def human_format(account):
if account == '':
account = '__DEFAULT... | 25.481481 | 66 | 0.650436 | 169 | 1,376 | 5.130178 | 0.473373 | 0.034602 | 0.048443 | 0.05075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003813 | 0.237645 | 1,376 | 53 | 67 | 25.962264 | 0.822688 | 0.106831 | 0 | 0.171429 | 0 | 0 | 0.067854 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.171429 | false | 0 | 0.142857 | 0 | 0.485714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
51393ee67792401b04e671ffae9d84e88cbd05be | 632 | py | Python | bin/User.py | Andrew-Tan/e-mission-server | 91d59bee86e63d803e401f10f4b6a2502effedda | [
"BSD-3-Clause"
] | null | null | null | bin/User.py | Andrew-Tan/e-mission-server | 91d59bee86e63d803e401f10f4b6a2502effedda | [
"BSD-3-Clause"
] | 1 | 2017-08-31T19:54:16.000Z | 2017-08-31T19:54:16.000Z | bin/User.py | Andrew-Tan/e-mission-server | 91d59bee86e63d803e401f10f4b6a2502effedda | [
"BSD-3-Clause"
] | null | null | null | __author__ = 'Yin'
from pymongo import MongoClient
import uuid
from get_database import get_mode_db, get_section_db, get_trip_db, get_user_db
Users=get_user_db()
for user in Users.find():
userEmail=user['user']
if 'uuid' not in user:
print "Generating UUID for user %s" % userEmail
user['uui... | 31.6 | 90 | 0.64557 | 90 | 632 | 4.333333 | 0.422222 | 0.082051 | 0.069231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003992 | 0.207278 | 632 | 19 | 91 | 33.263158 | 0.774451 | 0 | 0 | 0 | 0 | 0 | 0.218597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | 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 |
5139bc022fb3c87c817c245f2d2cb2515711b1cc | 335 | py | Python | swagger_coverage_py/docs_writers/api_doc_writer.py | JamalZeynalov/swagger-coverage-py | de9da61d77c0f795c3542705be26ee740787dc76 | [
"MIT"
] | 16 | 2021-02-09T19:53:49.000Z | 2022-03-23T15:58:01.000Z | swagger_coverage_py/docs_writers/api_doc_writer.py | JamalZeynalov/swagger-coverage-py | de9da61d77c0f795c3542705be26ee740787dc76 | [
"MIT"
] | 3 | 2021-06-16T11:11:35.000Z | 2022-02-03T21:18:10.000Z | swagger_coverage_py/docs_writers/api_doc_writer.py | JamalZeynalov/swagger-coverage-py | de9da61d77c0f795c3542705be26ee740787dc76 | [
"MIT"
] | 3 | 2021-06-25T11:23:42.000Z | 2021-12-21T08:35:34.000Z | import json
from swagger_coverage_py.configs import API_DOCS_TYPE
def write_api_doc_to_file(file_path: str, api_doc_data: dict):
if API_DOCS_TYPE == "swagger" and not api_doc_data.get("swagger", None):
api_doc_data["swagger"] = "2.0"
with open(file_path, "w+") as file:
file.write(json.dumps(... | 27.916667 | 76 | 0.716418 | 57 | 335 | 3.859649 | 0.54386 | 0.136364 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007168 | 0.167164 | 335 | 11 | 77 | 30.454545 | 0.781362 | 0 | 0 | 0 | 0 | 0 | 0.077612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5140aa162b2b5f0f7adc84be29bb351ce8a0aa64 | 2,625 | py | Python | btalib/utils.py | demattia/bta-lib | cd6c934e838ec0f56f26e1963c0a5f73123e5b64 | [
"MIT"
] | 352 | 2020-02-01T04:53:34.000Z | 2022-03-16T04:45:40.000Z | src/etalib/utils.py | estebanvz/bta-lib | 879719d7d9f154032293df26dca003d48f5ee689 | [
"MIT"
] | 18 | 2020-02-01T15:50:04.000Z | 2021-11-18T16:47:58.000Z | src/etalib/utils.py | estebanvz/bta-lib | 879719d7d9f154032293df26dca003d48f5ee689 | [
"MIT"
] | 85 | 2020-02-01T22:45:02.000Z | 2022-03-12T18:35:53.000Z | #!/usr/bin/env python
# -*- coding: utf-8; py-indent-offset:4 -*-
###############################################################################
# Copyright (C) 2020 Daniel Rodriguez
# Use of this source code is governed by the MIT License
###############################################################################... | 31.626506 | 79 | 0.64 | 375 | 2,625 | 4.373333 | 0.389333 | 0.018293 | 0.041463 | 0.053659 | 0.335976 | 0.281707 | 0.281707 | 0.281707 | 0.281707 | 0.281707 | 0 | 0.010618 | 0.210667 | 2,625 | 82 | 80 | 32.012195 | 0.780888 | 0.619048 | 0 | 0 | 0 | 0 | 0.159772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0 | 0 | 0.37037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
514240a38e7002459497f7d520849aa4414de413 | 194 | py | Python | docs/multiple-tests/with-config-file/src/E0103.py | codacy/codacy-pylint-python3 | 462614fbe679d2f7978dc3e74993099b4ef5c1c9 | [
"Apache-2.0"
] | 1 | 2021-02-02T06:57:31.000Z | 2021-02-02T06:57:31.000Z | docs/multiple-tests/with-config-file/src/E0103.py | itsMo07/codacy-pylint-python3 | e25ddfcea787d790c7df05407966fadd6e0a209b | [
"Apache-2.0"
] | 50 | 2019-08-14T16:14:45.000Z | 2022-03-31T11:00:50.000Z | docs/multiple-tests/with-config-file/src/E0103.py | itsMo07/codacy-pylint-python3 | e25ddfcea787d790c7df05407966fadd6e0a209b | [
"Apache-2.0"
] | 5 | 2019-08-27T14:56:36.000Z | 2021-02-02T06:48:30.000Z | ##Patterns: E0103
def test():
while True:
break
##Err: E0103
break
for letter in 'Python':
if letter == 'h':
continue
##Err: E0103
continue
| 13.857143 | 27 | 0.5 | 21 | 194 | 4.619048 | 0.714286 | 0.164948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101695 | 0.391753 | 194 | 13 | 28 | 14.923077 | 0.720339 | 0.180412 | 0 | 0.5 | 0 | 0 | 0.045752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5144f229d6da11b31a9942ebd77bdf1b75099da3 | 8,018 | py | Python | tnasnet.py | deepak7376/tNASnet | 08b74bd6d23a1ec92d4b6791bde78c04dc341229 | [
"MIT"
] | 1 | 2020-11-24T15:09:24.000Z | 2020-11-24T15:09:24.000Z | tnasnet.py | deepak7376/tNASnet | 08b74bd6d23a1ec92d4b6791bde78c04dc341229 | [
"MIT"
] | null | null | null | tnasnet.py | deepak7376/tNASnet | 08b74bd6d23a1ec92d4b6791bde78c04dc341229 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""tNASnet.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1yl3flXhYBNmjQ2bXVZcXZmhHfHXoSWHB
"""
import pandas as pd
#read the file
df = pd.read_csv("/Users/deepak/Documents/OpenSource/tNASnet/dataset/jena_climate_2009_2016... | 29.477941 | 108 | 0.662634 | 1,107 | 8,018 | 4.676603 | 0.270099 | 0.013521 | 0.014487 | 0.020282 | 0.158779 | 0.113193 | 0.062198 | 0.062198 | 0.045973 | 0.033224 | 0 | 0.022113 | 0.216014 | 8,018 | 272 | 109 | 29.477941 | 0.801464 | 0.310052 | 0 | 0.147059 | 1 | 0 | 0.070526 | 0.014105 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022059 | false | 0 | 0.161765 | 0 | 0.198529 | 0.073529 | 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 |
5146e8ab85d29d256d14b9b653524fc9c716d5d5 | 1,065 | py | Python | others/learn_flask.py | swayli94/python-web | 848b0ef24f4201edd1d1275c59f0f91728be0ab0 | [
"MIT"
] | 1 | 2021-03-24T12:45:14.000Z | 2021-03-24T12:45:14.000Z | others/learn_flask.py | swayli94/python-web | 848b0ef24f4201edd1d1275c59f0f91728be0ab0 | [
"MIT"
] | null | null | null | others/learn_flask.py | swayli94/python-web | 848b0ef24f4201edd1d1275c59f0f91728be0ab0 | [
"MIT"
] | 1 | 2021-03-24T12:46:12.000Z | 2021-03-24T12:46:12.000Z |
from flask import Flask, render_template, request
#* 创建web应用程序
app = Flask(__name__)
#* 处理浏览器发送的请求
@app.route('/') # 当访问 127.0.0.1:5000/ 时运行的函数
def index():
return render_template('home_page.html') # 默认搜索 template/ 中的文件
@app.route('/meow') # 当访问 127.0.0.1:5000/meow 时运行的函数
def meow():
return '... | 20.09434 | 96 | 0.631925 | 146 | 1,065 | 4.465753 | 0.39726 | 0.128834 | 0.153374 | 0.02454 | 0.128834 | 0.039877 | 0 | 0 | 0 | 0 | 0 | 0.026869 | 0.196244 | 1,065 | 52 | 97 | 20.480769 | 0.734813 | 0.16338 | 0 | 0 | 0 | 0 | 0.196571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.166667 | 0.033333 | 0.1 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
514a7062679cb878e4fabebd0a650d787e1a30a1 | 3,888 | py | Python | DeepLearning/Utils/prepare_corpus.py | neuralconcept/DrWhoAI | fe5f9e4961a9e25ec0eb4b6e3d3d73cf94e58878 | [
"Apache-2.0"
] | 3 | 2016-05-04T20:17:54.000Z | 2022-02-03T20:26:32.000Z | DeepLearning/Utils/prepare_corpus.py | neuralconcept/DrWhoAI | fe5f9e4961a9e25ec0eb4b6e3d3d73cf94e58878 | [
"Apache-2.0"
] | null | null | null | DeepLearning/Utils/prepare_corpus.py | neuralconcept/DrWhoAI | fe5f9e4961a9e25ec0eb4b6e3d3d73cf94e58878 | [
"Apache-2.0"
] | 1 | 2019-04-12T20:10:29.000Z | 2019-04-12T20:10:29.000Z | # coding=utf-8
"""
Build vocab with a set max vocab size.
Build token ids given the vocab.
Do get_data.py first.
"""
# from __future__ import unicode_literals, print_function, division
import os
import subprocess
import re
from unidecode import unidecode
from nltk import word_tokenize
from DeepLearning.Utils import C... | 40.082474 | 143 | 0.75 | 547 | 3,888 | 4.972578 | 0.195612 | 0.030882 | 0.073529 | 0.095588 | 0.423529 | 0.397059 | 0.341176 | 0.280515 | 0.197426 | 0.039706 | 0 | 0.005009 | 0.127058 | 3,888 | 97 | 144 | 40.082474 | 0.796405 | 0.09928 | 0 | 0 | 0 | 0 | 0.04475 | 0 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.080645 | false | 0 | 0.145161 | 0 | 0.258065 | 0.16129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
514ecdfb33743ba66dc0377528d7d2f4e0d31918 | 685 | py | Python | src/api/tests/test_user_model.py | ThaDeveloper/grind | fa90b65d12e6d9b3d658b132874801ecda08c57f | [
"MIT"
] | 1 | 2019-11-06T22:26:26.000Z | 2019-11-06T22:26:26.000Z | src/api/tests/test_user_model.py | ThaDeveloper/grind | fa90b65d12e6d9b3d658b132874801ecda08c57f | [
"MIT"
] | 5 | 2021-03-19T02:49:44.000Z | 2021-06-10T19:13:00.000Z | src/api/tests/test_user_model.py | ThaDeveloper/grind | fa90b65d12e6d9b3d658b132874801ecda08c57f | [
"MIT"
] | null | null | null | from api.models import User
from api.tests.base import BaseTestCase
class TestUserModel(BaseTestCase):
""" User model test cases """
def test_create_user_success(self):
""" Test can add user to db successfully """
old_count = User.objects.count()
user = User.objects.create(**{
... | 31.136364 | 52 | 0.582482 | 74 | 685 | 5.256757 | 0.540541 | 0.069409 | 0.082262 | 0.107969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002049 | 0.287591 | 685 | 21 | 53 | 32.619048 | 0.795082 | 0.086131 | 0 | 0 | 0 | 0 | 0.168301 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.0625 | false | 0.0625 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
515c6f0580014f865e1ffd918e3c0178cf8933ed | 415 | py | Python | ConvertShellcode.py | rvrsh3ll/CPLResourceRunner | 13e109a6eff1b1d4285e59f9db04c5d7d3b6262d | [
"BSD-3-Clause"
] | 232 | 2019-03-02T17:21:45.000Z | 2022-03-29T21:58:12.000Z | ConvertShellcode.py | Nicolas-yuan/CPLResourceRunner | b14424606c7c617df824a41fade6aa5637d9ce8c | [
"BSD-3-Clause"
] | 2 | 2019-03-03T11:49:28.000Z | 2021-05-21T17:17:34.000Z | ConvertShellcode.py | Nicolas-yuan/CPLResourceRunner | b14424606c7c617df824a41fade6aa5637d9ce8c | [
"BSD-3-Clause"
] | 61 | 2019-03-02T17:11:32.000Z | 2022-03-28T11:07:05.000Z | #!/usr/bin/env python
import binascii
import sys
file_name = sys.argv[1]
with open (file_name) as f:
hexdata = binascii.hexlify(f.read())
hexlist = map(''.join, zip(hexdata[::2], hexdata[1::2]))
shellcode = ''
for i in hexlist:
shellcode += "0x{},".format(i)
shellcode = shellcode[:-1]
output = open('shellcode.... | 24.411765 | 57 | 0.684337 | 61 | 415 | 4.622951 | 0.606557 | 0.056738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01676 | 0.137349 | 415 | 17 | 58 | 24.411765 | 0.77095 | 0.048193 | 0 | 0 | 0 | 0 | 0.134177 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
515ec27311e25e74694eb005420194afb87ada10 | 1,278 | py | Python | tests/test_data-utils.py | fossabot/BIRL | 62e91523ac5797a13a7b78b9869ccfdf61cc60d8 | [
"BSD-3-Clause"
] | null | null | null | tests/test_data-utils.py | fossabot/BIRL | 62e91523ac5797a13a7b78b9869ccfdf61cc60d8 | [
"BSD-3-Clause"
] | null | null | null | tests/test_data-utils.py | fossabot/BIRL | 62e91523ac5797a13a7b78b9869ccfdf61cc60d8 | [
"BSD-3-Clause"
] | null | null | null | """
Testing default benchmarks in single thred and parallel configuration
Check whether it generates correct outputs and resulting values
Copyright (C) 2017-2019 Jiri Borovec <jiri.borovec@fel.cvut.cz>
"""
import os
import sys
import unittest
from parameterized import parameterized
sys.path += [os.path.abspath('.')... | 35.5 | 101 | 0.754304 | 183 | 1,278 | 5.054645 | 0.464481 | 0.032432 | 0.028108 | 0.03027 | 0.095135 | 0.095135 | 0.095135 | 0.095135 | 0.095135 | 0.095135 | 0 | 0.009025 | 0.13302 | 1,278 | 35 | 102 | 36.514286 | 0.825812 | 0.205008 | 0 | 0 | 1 | 0 | 0.103792 | 0.028942 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.45 | 0 | 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 |
515f0b279054d66cf45c3ecb85db2b632979b3e5 | 923 | py | Python | gva/data/writers/file_writer.py | gva-jjoyce/gva_data | cda990d0abb4b175025aaf16e75192bd9cc213af | [
"Apache-2.0"
] | null | null | null | gva/data/writers/file_writer.py | gva-jjoyce/gva_data | cda990d0abb4b175025aaf16e75192bd9cc213af | [
"Apache-2.0"
] | 24 | 2020-12-24T12:21:42.000Z | 2021-01-28T14:22:38.000Z | gva/data/writers/file_writer.py | gva-jjoyce/gva_data | cda990d0abb4b175025aaf16e75192bd9cc213af | [
"Apache-2.0"
] | null | null | null | import glob
import os
import shutil
from ...utils import paths
from .internals.base_writer import BaseWriter
class FileWriter(BaseWriter):
def __init__(self, **kwargs):
super().__init__(**kwargs)
def commit(
self,
source_file_name):
existing_partitions = self.get_part... | 27.969697 | 79 | 0.682557 | 106 | 923 | 5.575472 | 0.462264 | 0.118443 | 0.186125 | 0.087986 | 0.165821 | 0.165821 | 0.165821 | 0.165821 | 0 | 0 | 0 | 0.002829 | 0.23402 | 923 | 32 | 80 | 28.84375 | 0.833098 | 0.004334 | 0 | 0.090909 | 0 | 0 | 0.003272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.227273 | 0.045455 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
516465dc0f22b48e7f0d18e14970ddf1c681b4cf | 1,475 | py | Python | ps_oneliner.py | klsecurityservices/bat-armor | b41ad72370ca5e22313718b7721362800ed310cb | [
"MIT"
] | 87 | 2016-12-19T13:22:24.000Z | 2017-12-28T21:25:03.000Z | ps_oneliner.py | klsecurityservices/bat-armor | b41ad72370ca5e22313718b7721362800ed310cb | [
"MIT"
] | null | null | null | ps_oneliner.py | klsecurityservices/bat-armor | b41ad72370ca5e22313718b7721362800ed310cb | [
"MIT"
] | 30 | 2016-12-20T13:27:05.000Z | 2017-10-11T12:26:59.000Z | #!/usr/bin/python
#Author: Artem Kondratenko https://twitter.com/artkond
import argparse
import base64
import zlib
blob = 'powershell.exe -NoP -NonI -E "{}"'
ps1_comment_decoder_stage = "sal a New-Object;iex(a IO.StreamReader((a IO.Compression.DeflateStream([IO.MemoryStream][Convert]::FromBase64String('{}'),[IO.Compr... | 39.864865 | 235 | 0.738305 | 194 | 1,475 | 5.386598 | 0.530928 | 0.076555 | 0.032536 | 0.042105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02331 | 0.127458 | 1,475 | 37 | 236 | 39.864865 | 0.788656 | 0.04678 | 0 | 0 | 0 | 0.04 | 0.323843 | 0.116014 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5a930d9fb33c054bddfba49f978417771412c100 | 2,821 | py | Python | src/celery_exporter/exporter.py | coderanger/celery-local-exporter | 3db869b7e0ec09309834b8835c619edbe8898504 | [
"Apache-2.0"
] | 3 | 2020-06-30T22:26:18.000Z | 2021-09-27T23:52:11.000Z | src/celery_exporter/exporter.py | coderanger/celery-local-exporter | 3db869b7e0ec09309834b8835c619edbe8898504 | [
"Apache-2.0"
] | null | null | null | src/celery_exporter/exporter.py | coderanger/celery-local-exporter | 3db869b7e0ec09309834b8835c619edbe8898504 | [
"Apache-2.0"
] | null | null | null | import logging
import time
import prometheus_client # type: ignore
from celery.signals import ( # type: ignore
after_task_publish,
beat_init,
before_task_publish,
task_postrun,
task_prerun,
worker_ready,
)
from .metrics import (
TASK_EXECUTION_TIME,
TASK_POSTRUN,
TASK_PRERUN,
... | 32.802326 | 84 | 0.699397 | 351 | 2,821 | 5.310541 | 0.299145 | 0.04721 | 0.041845 | 0.038627 | 0.159335 | 0.112661 | 0.081545 | 0.081545 | 0.081545 | 0.081545 | 0 | 0.007692 | 0.21659 | 2,821 | 85 | 85 | 33.188235 | 0.835747 | 0.090393 | 0 | 0.031746 | 0 | 0 | 0.06294 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.111111 | false | 0 | 0.126984 | 0 | 0.269841 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
5a96887b7910b3478bfc6f8aa146a2c53e5f01d0 | 10,155 | py | Python | backend/tests/unittests/metric/project/project_management_metrics_tests.py | ICTU/quality-report | f6234e112228ee7cfe6476c2d709fe244579bcfe | [
"Apache-2.0"
] | 25 | 2016-11-25T10:41:24.000Z | 2021-07-03T14:02:49.000Z | backend/tests/unittests/metric/project/project_management_metrics_tests.py | ICTU/quality-report | f6234e112228ee7cfe6476c2d709fe244579bcfe | [
"Apache-2.0"
] | 783 | 2016-09-19T12:10:21.000Z | 2021-01-04T20:39:15.000Z | backend/tests/unittests/metric/project/project_management_metrics_tests.py | ICTU/quality-report | f6234e112228ee7cfe6476c2d709fe244579bcfe | [
"Apache-2.0"
] | 15 | 2015-03-25T13:52:49.000Z | 2021-03-08T17:17:56.000Z | """
Copyright 2012-2019 Ministerie van Sociale Zaken en Werkgelegenheid
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... | 37.750929 | 105 | 0.658986 | 1,242 | 10,155 | 5.190821 | 0.166667 | 0.050256 | 0.039088 | 0.032573 | 0.69288 | 0.652241 | 0.639832 | 0.614394 | 0.582441 | 0.531875 | 0 | 0.004073 | 0.226391 | 10,155 | 268 | 106 | 37.891791 | 0.816573 | 0.258395 | 0 | 0.556338 | 0 | 0 | 0.054608 | 0 | 0 | 0 | 0 | 0 | 0.15493 | 1 | 0.28169 | false | 0 | 0.035211 | 0 | 0.464789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5a9f8ef9b925611fdd45ddadf8817247d746ca78 | 1,395 | py | Python | src/foreign_if/python/UT/src/fm/test_002.py | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 63 | 2018-06-21T14:11:59.000Z | 2022-03-30T11:24:36.000Z | src/foreign_if/python/UT/src/fm/test_002.py | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 5 | 2018-09-22T14:01:53.000Z | 2021-12-27T16:11:05.000Z | src/foreign_if/python/UT/src/fm/test_002.py | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 12 | 2018-08-23T15:59:44.000Z | 2022-02-20T06:47:22.000Z | #!/usr/bin/env python
import sys
import numpy as np
from math import sqrt
from sklearn.metrics import mean_squared_error
from frovedis.exrpc.server import FrovedisServer
from frovedis.matrix.crs import FrovedisCRSMatrix
from frovedis.matrix.dvector import FrovedisDoubleDvector
from frovedis.mllib.fm import Factorizati... | 28.469388 | 82 | 0.736918 | 209 | 1,395 | 4.837321 | 0.511962 | 0.047478 | 0.029674 | 0.007913 | 0.019782 | 0.019782 | 0.019782 | 0.019782 | 0.019782 | 0.019782 | 0 | 0.036882 | 0.144803 | 1,395 | 48 | 83 | 29.0625 | 0.810562 | 0.123297 | 0 | 0 | 0 | 0 | 0.098603 | 0.018077 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.029412 | 0.235294 | null | null | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5aa581ca686095ce7c0f5d30fd6c6bd3f40f0610 | 769 | py | Python | src/mean.py | e2t/cli-tools | 23a21b410b4d1389ecd91a7b378f839384eb2f6a | [
"CC0-1.0"
] | null | null | null | src/mean.py | e2t/cli-tools | 23a21b410b4d1389ecd91a7b378f839384eb2f6a | [
"CC0-1.0"
] | null | null | null | src/mean.py | e2t/cli-tools | 23a21b410b4d1389ecd91a7b378f839384eb2f6a | [
"CC0-1.0"
] | null | null | null | """Вычисление среднего ариметического и геометрического ряда чисел."""
from typing import List
from cli import mainloop, ArrayFloatParameter
def arith_mean(array: List[float]) -> float:
"""Среднее арифметическое ряда чисел."""
return sum(array) / len(array)
def geom_mean(array: List[float]) -> float:
""... | 24.806452 | 70 | 0.671001 | 93 | 769 | 5.376344 | 0.462366 | 0.054 | 0.052 | 0.072 | 0.12 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0.004847 | 0.195059 | 769 | 30 | 71 | 25.633333 | 0.802908 | 0.174252 | 0 | 0 | 0 | 0 | 0.180937 | 0.082391 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0 | 0.470588 | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5aa8a3e75d642212c9fc69ca83c73fbbe65943af | 5,082 | py | Python | business_register/migrations/0131_auto_20210630_1048.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | business_register/migrations/0131_auto_20210630_1048.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | business_register/migrations/0131_auto_20210630_1048.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | # Generated by Django 3.1.8 on 2021-06-30 10:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('business_register', '0130_auto_20210629_1241'),
]
operations = [
migrations.AlterField(
model_n... | 53.494737 | 619 | 0.635577 | 595 | 5,082 | 5.282353 | 0.211765 | 0.027044 | 0.127267 | 0.14763 | 0.690741 | 0.669106 | 0.601654 | 0.582564 | 0.527521 | 0.504613 | 0 | 0.027471 | 0.233569 | 5,082 | 94 | 620 | 54.06383 | 0.779461 | 0.008855 | 0 | 0.602273 | 1 | 0 | 0.247666 | 0.010328 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022727 | 0 | 0.056818 | 0 | 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 |
5aab2965d8e3765aeff7727605fcc29797a13b96 | 16,145 | py | Python | lifxlan3/group.py | sweettuse/lifxlan3 | a8260a77b30451d610c5bd8fc5a1a240af09cd0a | [
"MIT"
] | 6 | 2019-01-19T18:55:45.000Z | 2020-11-13T18:25:21.000Z | lifxlan3/group.py | sweettuse/lifxlan3 | a8260a77b30451d610c5bd8fc5a1a240af09cd0a | [
"MIT"
] | null | null | null | lifxlan3/group.py | sweettuse/lifxlan3 | a8260a77b30451d610c5bd8fc5a1a240af09cd0a | [
"MIT"
] | 1 | 2020-05-20T21:39:04.000Z | 2020-05-20T21:39:04.000Z | import os
from contextlib import suppress, contextmanager
from functools import partial, wraps
from itertools import chain, repeat, groupby
from typing import List, Union, Dict, Optional, Iterable, Any
from lifxlan3.base_api import LightAPI
from .colors import ColorPower, Color
from .devices.device import Device
from ... | 39.282238 | 120 | 0.574729 | 1,881 | 16,145 | 4.702286 | 0.166401 | 0.046015 | 0.018994 | 0.016959 | 0.28762 | 0.213228 | 0.17524 | 0.172075 | 0.134426 | 0.10684 | 0 | 0.002575 | 0.230164 | 16,145 | 410 | 121 | 39.378049 | 0.709068 | 0.228244 | 0 | 0.136546 | 0 | 0.004016 | 0.052518 | 0.008048 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216867 | false | 0 | 0.068273 | 0.048193 | 0.449799 | 0.004016 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5ab3b732606fe3eea44565f7f569f9f4deba2476 | 663 | py | Python | fastface/transforms/pad.py | mdornseif/fastface | 72772db1fae4af17e829cd5479c4848fe5eb8948 | [
"MIT"
] | 72 | 2021-01-03T05:43:56.000Z | 2021-09-17T06:09:35.000Z | fastface/transforms/pad.py | mdornseif/fastface | 72772db1fae4af17e829cd5479c4848fe5eb8948 | [
"MIT"
] | 3 | 2021-09-23T22:26:57.000Z | 2021-10-31T10:11:48.000Z | fastface/transforms/pad.py | mdornseif/fastface | 72772db1fae4af17e829cd5479c4848fe5eb8948 | [
"MIT"
] | 6 | 2021-02-15T19:58:57.000Z | 2021-08-19T12:46:41.000Z | from typing import Dict, Tuple
import numpy as np
from . import functional as F
class Padding:
"""Applies padding to image and target boxes"""
def __init__(self, target_size: Tuple[int, int] = (640, 640), pad_value: int = 0):
super(Padding, self).__init__()
self.pad_value = pad_value
... | 28.826087 | 89 | 0.650075 | 94 | 663 | 4.351064 | 0.446809 | 0.122249 | 0.102689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.250377 | 663 | 22 | 90 | 30.136364 | 0.808853 | 0.104072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
5ab7d858487f589f1a6216fc726e06eb7281b3b0 | 1,455 | py | Python | tests/tests.py | kiedtl/zf | d590b630990d2e9ef6422c946f183914490c908b | [
"MIT"
] | 4 | 2021-04-08T12:42:53.000Z | 2021-05-17T17:54:54.000Z | tests/tests.py | kiedtl/zf | d590b630990d2e9ef6422c946f183914490c908b | [
"MIT"
] | null | null | null | tests/tests.py | kiedtl/zf | d590b630990d2e9ef6422c946f183914490c908b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
from subprocess import Popen, PIPE, STDOUT
zfpath = "target/debug/zf"
testdir = 'tests'
FAILED = 0
PASSED = 0
def do_test(test):
test = testdir + "/" + test
testcode = ""
expect = ""
with open(test) as f:
testcode = f.read()
for line in testcode.split("\... | 23.852459 | 66 | 0.561512 | 208 | 1,455 | 3.899038 | 0.413462 | 0.04439 | 0.024661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040516 | 0.253608 | 1,455 | 60 | 67 | 24.25 | 0.706262 | 0.014433 | 0 | 0 | 0 | 0 | 0.189114 | 0.036288 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0.066667 | 0.044444 | 0 | 0.111111 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5ab8427099da220f237ef7014dd4e6752977d271 | 2,399 | py | Python | Curious Course on Coroutines and Concurrency by David Beazley/coexpat_bus.py | Ziang-Lu/Asynchronous-IO-and-Coroutines-in-Python | bd1ed033fa8fe14fedd809fd43e73e5c05715e3f | [
"MIT"
] | 1 | 2018-03-25T04:04:36.000Z | 2018-03-25T04:04:36.000Z | Curious Course on Coroutines and Concurrency by David Beazley/coexpat_bus.py | Ziang-Lu/Asynchronous-IO-and-Coroutines-in-Python | bd1ed033fa8fe14fedd809fd43e73e5c05715e3f | [
"MIT"
] | null | null | null | Curious Course on Coroutines and Concurrency by David Beazley/coexpat_bus.py | Ziang-Lu/Asynchronous-IO-and-Coroutines-in-Python | bd1ed033fa8fe14fedd809fd43e73e5c05715e3f | [
"MIT"
] | null | null | null | #!usr/bin/env python3
# -*- coding: utf-8 -*-
"""
An example showing how to do the same XML parsing as in cosax_bus.py but using
Expat, which is in lower-level than SAX.
"""
import xml.parsers.expat
from typing import Coroutine
from cosax_bus import bus_info_printer, buses_to_dicts, filter_on_field
def expat_parse... | 37.484375 | 78 | 0.701125 | 300 | 2,399 | 5.496667 | 0.48 | 0.103093 | 0.10188 | 0.023044 | 0.029109 | 0 | 0 | 0 | 0 | 0 | 0 | 0.31005 | 0.170488 | 2,399 | 63 | 79 | 38.079365 | 0.518593 | 0.541476 | 0 | 0 | 0 | 0 | 0.060691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.115385 | 0 | 0.192308 | 0.076923 | 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 |
5abac28502e77ed46249fcc35f5ca4a3393961b1 | 20,608 | py | Python | tests/unit/quagen/test_game.py | granttitus/quagen | b6dc53efeebce454a86f7aa4aa4de2680574d332 | [
"MIT"
] | 4 | 2019-08-22T02:06:59.000Z | 2020-02-14T08:05:45.000Z | tests/unit/quagen/test_game.py | granttitus/quagen | b6dc53efeebce454a86f7aa4aa4de2680574d332 | [
"MIT"
] | 29 | 2019-05-17T14:45:18.000Z | 2021-07-11T22:52:50.000Z | tests/unit/quagen/test_game.py | granttitus/quagen | b6dc53efeebce454a86f7aa4aa4de2680574d332 | [
"MIT"
] | 2 | 2020-04-03T02:11:55.000Z | 2021-07-31T16:24:29.000Z | """
Test game
"""
# pylint: disable=protected-access
import mock
from quagen.game import Board
from quagen.game import Game
##################
##################
# GAME #
##################
##################
def test_get_game_state():
"""
Share only information we want to share
"""
params... | 26.694301 | 86 | 0.63946 | 3,014 | 20,608 | 4.095554 | 0.069675 | 0.099644 | 0.057032 | 0.064647 | 0.79407 | 0.719378 | 0.645901 | 0.582388 | 0.548202 | 0.518714 | 0 | 0.039068 | 0.212539 | 20,608 | 771 | 87 | 26.728923 | 0.721592 | 0.111995 | 0 | 0.648188 | 0 | 0 | 0.155415 | 0.026149 | 0 | 0 | 0 | 0 | 0.334755 | 1 | 0.081023 | false | 0 | 0.006397 | 0 | 0.08742 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ac4f402123045c671d92065d3fec66abcfdbbbe | 1,078 | py | Python | common/mysql_util.py | xingchen558/apiapi | 240ad7f4d20b9bbb1cf1f5fc0fa2973bf02cc276 | [
"MIT"
] | null | null | null | common/mysql_util.py | xingchen558/apiapi | 240ad7f4d20b9bbb1cf1f5fc0fa2973bf02cc276 | [
"MIT"
] | null | null | null | common/mysql_util.py | xingchen558/apiapi | 240ad7f4d20b9bbb1cf1f5fc0fa2973bf02cc276 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# user = www
# 1:连接数据库 2:编写sql 3:建立游标 4:执行
import pymysql
from common.read_config import ReadConfig
class MysqlUtil:
def __init__(self):
config = ReadConfig()
host = config.get('mysql', 'host')
user = config.get('mysql', 'usr')
password = config.get('mysql... | 30.8 | 91 | 0.574212 | 126 | 1,078 | 4.793651 | 0.531746 | 0.044702 | 0.069536 | 0.115894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0.290353 | 1,078 | 34 | 92 | 31.705882 | 0.777778 | 0.111317 | 0 | 0 | 0 | 0 | 0.097689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.074074 | 0.074074 | 0 | 0.259259 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5ac63ad34a9106d93474813e9df438c2caf5dada | 3,313 | py | Python | env/lib/python3.9/site-packages/tests/engines/test_engines_differences.py | afrokyss/DIT-ILLUMNI-WAGTAIL-APP | c1b22efa6b5b6c0ed5afb30c721b630ec8e37968 | [
"MIT"
] | 1 | 2021-06-03T21:57:32.000Z | 2021-06-03T21:57:32.000Z | env/lib/python3.9/site-packages/tests/engines/test_engines_differences.py | febycloud/wagtail_project_demo | 0a72f112133423b08c1a149d527f3366cfad198f | [
"MIT"
] | null | null | null | env/lib/python3.9/site-packages/tests/engines/test_engines_differences.py | febycloud/wagtail_project_demo | 0a72f112133423b08c1a149d527f3366cfad198f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import unittest
from draftjs_exporter.engines.html5lib import DOM_HTML5LIB
from draftjs_exporter.engines.lxml import DOM_LXML
from draftjs_exporter.engines.string import DOMString
class TestDOMEnginesDifferences(unittest.TestCase):
... | 48.014493 | 144 | 0.670691 | 431 | 3,313 | 4.858469 | 0.153132 | 0.050143 | 0.099809 | 0.073543 | 0.73639 | 0.651862 | 0.558739 | 0.496657 | 0.452722 | 0.288443 | 0 | 0.009602 | 0.151222 | 3,313 | 68 | 145 | 48.720588 | 0.735064 | 0.006339 | 0 | 0.061224 | 0 | 0.020408 | 0.179939 | 0.027356 | 0 | 0 | 0 | 0 | 0.306122 | 1 | 0.306122 | false | 0 | 0.102041 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ace5179f52dc39000bc036c37026b7d5c49e026 | 1,816 | py | Python | components/page_storage_and_lookup.py | xietanu/he_dashboard | 0c7ea3622952fd2362e7203c034da333bd2cf1df | [
"MIT"
] | null | null | null | components/page_storage_and_lookup.py | xietanu/he_dashboard | 0c7ea3622952fd2362e7203c034da333bd2cf1df | [
"MIT"
] | null | null | null | components/page_storage_and_lookup.py | xietanu/he_dashboard | 0c7ea3622952fd2362e7203c034da333bd2cf1df | [
"MIT"
] | null | null | null | """
PageStorageAndLookup - A container for dashboard pages, providing tools to store and find them.
"""
from importlib.resources import path
from components.page import Page
class PageStorageAndLookup:
"""
A container for dashboard pages, providing tools to store and find them.
"""
def __init__(self... | 25.942857 | 95 | 0.564427 | 229 | 1,816 | 4.406114 | 0.253275 | 0.062438 | 0.032706 | 0.065411 | 0.156591 | 0.156591 | 0.156591 | 0.156591 | 0.156591 | 0.156591 | 0 | 0 | 0.345815 | 1,816 | 69 | 96 | 26.318841 | 0.849327 | 0.365639 | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.083333 | 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 |
5acfb650ea48f07a7fcd5b189e79edba8929329a | 2,521 | py | Python | scratches/020_populate_linuxquiztest.py | indecipherable/linuxtest_dust | be1801be7776d044c2d794decc65f7a2df6e7e5f | [
"CC0-1.0"
] | null | null | null | scratches/020_populate_linuxquiztest.py | indecipherable/linuxtest_dust | be1801be7776d044c2d794decc65f7a2df6e7e5f | [
"CC0-1.0"
] | null | null | null | scratches/020_populate_linuxquiztest.py | indecipherable/linuxtest_dust | be1801be7776d044c2d794decc65f7a2df6e7e5f | [
"CC0-1.0"
] | null | null | null | # this is a scratch file
# use with caution
import glob
import sys
import re
import os
from os import listdir
from os.path import isfile, join
from os import walk
from pprint import pprint as p
import mysql.connector
from mysql.connector import errorcode
# defines strip_end for project_dir
def strip_end(text, suffix)... | 32.320513 | 99 | 0.679096 | 383 | 2,521 | 4.308094 | 0.375979 | 0.054545 | 0.014545 | 0.021818 | 0.08 | 0.08 | 0.027879 | 0.027879 | 0 | 0 | 0 | 0.005376 | 0.188417 | 2,521 | 77 | 100 | 32.74026 | 0.801075 | 0.300278 | 0 | 0.04 | 0 | 0.02 | 0.23938 | 0.030999 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.04 | 0.2 | null | null | 0.18 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5ada5043a1fb9c6a6913358f9c7c7309a49de4aa | 1,691 | py | Python | create_person.py | bencomp/impactstory-tng | eba3429bb69ac7ebb532738a83d9642dc5e3a2a4 | [
"MIT"
] | 15 | 2019-11-20T12:13:06.000Z | 2022-03-27T04:39:49.000Z | create_person.py | bencomp/impactstory-tng | eba3429bb69ac7ebb532738a83d9642dc5e3a2a4 | [
"MIT"
] | 1 | 2021-02-04T10:08:15.000Z | 2021-02-04T19:47:00.000Z | create_person.py | skeptycal/impactstory-tng | eba3429bb69ac7ebb532738a83d9642dc5e3a2a4 | [
"MIT"
] | 2 | 2020-04-01T09:59:20.000Z | 2022-01-29T12:38:26.000Z | from time import time
from app import db
from util import elapsed
from util import safe_commit
import argparse
from models.person import make_person
from models.orcid import clean_orcid
from models.orcid import NoOrcidException
# needs to be imported so the definitions get loaded into the registry
import jobs_defs
... | 27.274194 | 87 | 0.688941 | 240 | 1,691 | 4.6625 | 0.404167 | 0.050045 | 0.032172 | 0.037534 | 0.080429 | 0.080429 | 0.080429 | 0.080429 | 0.080429 | 0.080429 | 0 | 0 | 0.221762 | 1,691 | 61 | 88 | 27.721311 | 0.850304 | 0.053814 | 0 | 0 | 0 | 0 | 0.147389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.236842 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.