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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e79a35c1a773dc8339c84515f66fdc2f438b1a66 | 331 | py | Python | 701-Insert-into-a-Binary-Search-Tree/solution.py | alfmunny/leetcode | e35d2164c7e6e66410309fe1667ceab5a7689bef | [
"MIT"
] | null | null | null | 701-Insert-into-a-Binary-Search-Tree/solution.py | alfmunny/leetcode | e35d2164c7e6e66410309fe1667ceab5a7689bef | [
"MIT"
] | null | null | null | 701-Insert-into-a-Binary-Search-Tree/solution.py | alfmunny/leetcode | e35d2164c7e6e66410309fe1667ceab5a7689bef | [
"MIT"
] | null | null | null | class Solution:
def insertIntoBST(self, root: TreeNode, val: int) -> TreeNode:
if not root:
return TreeNode(val)
if val > root.val:
root.right = self.insertIntoBST(root.right, val)
else:
root.left = self.insertIntoBST(root.left, val)
r... | 30.090909 | 66 | 0.558912 | 37 | 331 | 5 | 0.405405 | 0.118919 | 0.227027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.347432 | 331 | 10 | 67 | 33.1 | 0.856481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.444444 | 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 |
e79d3f37ca1b018b4f096a5a6a9e6c9d57822f0f | 13,860 | py | Python | SMB/gesdisc_merra_sync.py | tsutterley/model-harmonics | 17f6842d5fa1f2abf42caea51cfb09b6a4b2ee30 | [
"MIT"
] | 4 | 2021-01-04T00:40:03.000Z | 2021-12-29T13:37:32.000Z | scripts/gesdisc_merra_sync.py | tsutterley/SMBcorr | 1c911d88483a4a29ce05b253b485b16b799fb66f | [
"MIT"
] | 2 | 2021-10-10T06:57:20.000Z | 2021-12-06T19:28:34.000Z | scripts/gesdisc_merra_sync.py | tsutterley/SMBcorr | 1c911d88483a4a29ce05b253b485b16b799fb66f | [
"MIT"
] | 4 | 2020-06-11T00:09:36.000Z | 2021-01-25T12:38:10.000Z | #!/usr/bin/env python
u"""
gesdisc_merra_sync.py
Written by Tyler Sutterley (10/2021)
Syncs MERRA-2 surface mass balance (SMB) related products from the Goddard
Earth Sciences Data and Information Server Center (GES DISC)
https://gmao.gsfc.nasa.gov/reanalysis/MERRA-2/
https://wiki.earthdata.nasa.gov/displa... | 46.354515 | 80 | 0.671645 | 1,817 | 13,860 | 5.052834 | 0.239956 | 0.015685 | 0.027557 | 0.016556 | 0.32992 | 0.289511 | 0.270232 | 0.230803 | 0.214029 | 0.214029 | 0 | 0.017577 | 0.228283 | 13,860 | 298 | 81 | 46.510067 | 0.840782 | 0.468543 | 0 | 0.229167 | 0 | 0 | 0.150925 | 0.010555 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0.069444 | 0.090278 | 0 | 0.111111 | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e7abcb21f9bc4d6737007ae61a74f042f25e785c | 4,065 | py | Python | unit1_lesson_06_understanding_sets.py | RaviTejaKomma/learn-python | c9788b958371c013e19f2af289ebb4c5e4dd04ba | [
"MIT"
] | null | null | null | unit1_lesson_06_understanding_sets.py | RaviTejaKomma/learn-python | c9788b958371c013e19f2af289ebb4c5e4dd04ba | [
"MIT"
] | null | null | null | unit1_lesson_06_understanding_sets.py | RaviTejaKomma/learn-python | c9788b958371c013e19f2af289ebb4c5e4dd04ba | [
"MIT"
] | null | null | null | __author__ = 'Ravi Teja'
notes = '''
Sets are unordered collection of elements without duplicates. They are designed to be very efficient with respect to
set operations like membership, union, intersection. Doing similar operations on lists will be very inefficient as lists
are optimized for scenario... | 33.04878 | 138 | 0.598524 | 537 | 4,065 | 4.430168 | 0.394786 | 0.047079 | 0.029424 | 0.013871 | 0.053804 | 0.030265 | 0.030265 | 0.030265 | 0 | 0 | 0 | 0.031478 | 0.257565 | 4,065 | 122 | 139 | 33.319672 | 0.756793 | 0.184502 | 0 | 0.096386 | 0 | 0.012048 | 0.251275 | 0 | 0 | 0 | 0 | 0 | 0.301205 | 0 | null | null | 0 | 0.024096 | null | null | 0.024096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e7ad45f71e8ce4d1b6fb25477490dc502fdbaad0 | 6,723 | py | Python | house-prices/aux_functions.py | avsilva/kaggle-competions | d74ea8dff83286d0a721250f17d72bbfb5778a16 | [
"MIT"
] | null | null | null | house-prices/aux_functions.py | avsilva/kaggle-competions | d74ea8dff83286d0a721250f17d72bbfb5778a16 | [
"MIT"
] | null | null | null | house-prices/aux_functions.py | avsilva/kaggle-competions | d74ea8dff83286d0a721250f17d72bbfb5778a16 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
import seaborn as sns
from sklearn.model_selection import cross_val_score
from sklearn.metrics import mean_squared_error, mean_absolute_error
from scipy.stats import skew
from elapsed_time import *
from plots import *
@profile
def heatmap(df,... | 34.654639 | 113 | 0.666518 | 852 | 6,723 | 5.051643 | 0.28169 | 0.027649 | 0.030204 | 0.015335 | 0.132435 | 0.084572 | 0.078532 | 0.078532 | 0.031599 | 0.031599 | 0 | 0.006371 | 0.229511 | 6,723 | 193 | 114 | 34.834197 | 0.824517 | 0.097873 | 0 | 0.02459 | 0 | 0 | 0.061503 | 0.009748 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.163934 | null | null | 0.065574 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e7b035c0c50633ab006fef023c57693f67b5aa20 | 321 | py | Python | ex085.py | qnomon/Python-Studies | dbd592cf2a161bb9ddbec66f020c602bddc6d44b | [
"MIT"
] | null | null | null | ex085.py | qnomon/Python-Studies | dbd592cf2a161bb9ddbec66f020c602bddc6d44b | [
"MIT"
] | null | null | null | ex085.py | qnomon/Python-Studies | dbd592cf2a161bb9ddbec66f020c602bddc6d44b | [
"MIT"
] | null | null | null | num = [[], []]
pares = list()
impares = list()
for c in range (0,7):
v = int(input(f'Digite o {c+1}° valor: '))
if v % 2 == 0:
num[0].append(v)
else:
num[1].append(v)
num[0].sort()
num[1].sort()
print(f'Os valores pares digitados foram: {num[0]}\nOs valores ímpares digitados foram: {num[1]}'... | 26.75 | 98 | 0.560748 | 56 | 321 | 3.232143 | 0.553571 | 0.066298 | 0.187845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044 | 0.221184 | 321 | 12 | 98 | 26.75 | 0.676 | 0 | 0 | 0 | 0 | 0.083333 | 0.344721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.083333 | 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 |
e7b078dbb419dc959ffe17de8c5431450a590be8 | 3,514 | py | Python | tests/app/domain/models.py | abhan00/fastana | 46f90832d8e24185619292f76cbd1b3ce73f2dae | [
"Apache-2.0"
] | 1 | 2021-05-01T13:44:44.000Z | 2021-05-01T13:44:44.000Z | tests/app/domain/models.py | abhan00/fastana | 46f90832d8e24185619292f76cbd1b3ce73f2dae | [
"Apache-2.0"
] | 9 | 2021-04-17T03:22:56.000Z | 2021-05-12T16:40:53.000Z | tests/app/domain/models.py | abhan00/fastana | 46f90832d8e24185619292f76cbd1b3ce73f2dae | [
"Apache-2.0"
] | null | null | null | """도메인 모델."""
from __future__ import annotations
from dataclasses import dataclass
from datetime import datetime
from typing import Optional
from tests.app.domain.events import OutOfStock
@dataclass
class Order:
"""고객이 발주하는 주문(Order) 모델입니다.."""
id: str # pylint: disable=invalid-name
@dataclass(unsafe_h... | 25.463768 | 75 | 0.584804 | 454 | 3,514 | 4.420705 | 0.39207 | 0.067265 | 0.03139 | 0.044843 | 0.094669 | 0.094669 | 0.054808 | 0.037867 | 0.037867 | 0.037867 | 0 | 0 | 0.295674 | 3,514 | 137 | 76 | 25.649635 | 0.810909 | 0.205464 | 0 | 0.086957 | 0 | 0 | 0.01241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.072464 | 0.014493 | 0.507246 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e7b21f9776bd656c7c261c458ef29d0fe2484757 | 678 | py | Python | hc/accounts/tests/test_team_access_middleware.py | andela/-healthchecks_valor | 04d726145a5a194cef4d374ec6af55569f2c1bbb | [
"BSD-3-Clause"
] | null | null | null | hc/accounts/tests/test_team_access_middleware.py | andela/-healthchecks_valor | 04d726145a5a194cef4d374ec6af55569f2c1bbb | [
"BSD-3-Clause"
] | 1 | 2017-02-06T12:10:32.000Z | 2017-02-07T11:05:18.000Z | hc/accounts/tests/test_team_access_middleware.py | andela/-healthchecks_valor | 04d726145a5a194cef4d374ec6af55569f2c1bbb | [
"BSD-3-Clause"
] | 1 | 2017-01-25T17:13:57.000Z | 2017-01-25T17:13:57.000Z | from django.contrib.auth.models import User
from django.test import TestCase
from hc.accounts.models import Profile
class TeamAccessMiddlewareTestCase(TestCase):
def test_it_handles_missing_profile(self):
user = User(username="ned", email="ned@example.org")
user.set_password("password")
u... | 35.684211 | 74 | 0.690265 | 83 | 678 | 5.542169 | 0.554217 | 0.065217 | 0.084783 | 0.078261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009025 | 0.182891 | 678 | 19 | 75 | 35.684211 | 0.8213 | 0.053097 | 0 | 0 | 0 | 0 | 0.14867 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.076923 | false | 0.153846 | 0.230769 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e7b26f144353299f964adc2fb9bd68d9d453a494 | 1,711 | py | Python | scripts/Recieve_ROIs.py | kennondmckeever/obe_toolset | 5ecdb498914a49122e6a2137fc72aafae0868b6c | [
"MIT"
] | null | null | null | scripts/Recieve_ROIs.py | kennondmckeever/obe_toolset | 5ecdb498914a49122e6a2137fc72aafae0868b6c | [
"MIT"
] | null | null | null | scripts/Recieve_ROIs.py | kennondmckeever/obe_toolset | 5ecdb498914a49122e6a2137fc72aafae0868b6c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
from obe_toolset.msg import ImageAndPose
import cv2
# from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
bridge = CvBridge()
def callback(data):
rospy.loginfo(rospy.get_caller_id())
cv_image = bridge.imgmsg_to_cv2(data.image, desired_encoding="pa... | 37.195652 | 79 | 0.676213 | 252 | 1,711 | 4.503968 | 0.5 | 0.084582 | 0.019383 | 0.026432 | 0.05815 | 0.05815 | 0.05815 | 0.05815 | 0.05815 | 0.05815 | 0 | 0.014738 | 0.206897 | 1,711 | 45 | 80 | 38.022222 | 0.821665 | 0.605494 | 0 | 0 | 0 | 0 | 0.072086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e7bb26f51f29cb7fb783adc3b39b3daa3649b380 | 847 | py | Python | web/whatsapp/app.py | thexeus/Hercule | 3a4c07449c52c53c1debaefff2fc656193950c29 | [
"MIT"
] | null | null | null | web/whatsapp/app.py | thexeus/Hercule | 3a4c07449c52c53c1debaefff2fc656193950c29 | [
"MIT"
] | null | null | null | web/whatsapp/app.py | thexeus/Hercule | 3a4c07449c52c53c1debaefff2fc656193950c29 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request
import logging
import json
app = Flask(__name__)
app.logger.disabled = True
log = logging.getLogger('werkzeug')
log.disabled = True
R = '\033[31m' # red
G = '\033[32m' # green
C = '\033[36m' # cyan
W = '\033[0m' # white
def default(text):
return G + '[+]' + C + te... | 18.822222 | 60 | 0.623377 | 124 | 847 | 4.16129 | 0.467742 | 0.077519 | 0.034884 | 0.034884 | 0.236434 | 0.236434 | 0.170543 | 0.170543 | 0.170543 | 0.170543 | 0 | 0.027656 | 0.188902 | 847 | 44 | 61 | 19.25 | 0.723435 | 0.023613 | 0 | 0.068966 | 0 | 0 | 0.153285 | 0.053528 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.103448 | 0.103448 | 0.37931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e7c706055f84571c12a9f0fc91307a60d0a8da4b | 3,968 | py | Python | FusionIIIT/applications/establishment/views/fm.py | sdhiman99/Fusion | e3fb620737720e81231f07867884b053d392c5b1 | [
"bzip2-1.0.6"
] | null | null | null | FusionIIIT/applications/establishment/views/fm.py | sdhiman99/Fusion | e3fb620737720e81231f07867884b053d392c5b1 | [
"bzip2-1.0.6"
] | null | null | null | FusionIIIT/applications/establishment/views/fm.py | sdhiman99/Fusion | e3fb620737720e81231f07867884b053d392c5b1 | [
"bzip2-1.0.6"
] | 2 | 2020-01-23T11:33:36.000Z | 2020-01-23T11:34:58.000Z | # FACULTY MANAGEMENT
from .utils import *
# TODO THIS
def handle_fm_admin(request):
if 'fm_new_employee' in request.POST:
# print (request.POST)
username = request.POST.get('username')
if User.objects.filter(username=username).exists():
messages.error(request, 'The given user A... | 34.807018 | 73 | 0.600554 | 425 | 3,968 | 5.383529 | 0.261176 | 0.139423 | 0.152972 | 0.023601 | 0.048077 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001086 | 0.303931 | 3,968 | 113 | 74 | 35.115044 | 0.827299 | 0.046371 | 0 | 0.06383 | 0 | 0 | 0.108874 | 0 | 0 | 0 | 0 | 0.00885 | 0 | 1 | 0.021277 | false | 0.053191 | 0.010638 | 0 | 0.06383 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e7c799d142961f11d70c593b20cfbf1594f8effb | 1,221 | py | Python | tests/test_coments.py | Ruweydha/Blog | 399c4f0342f0a20fea90b0448165575404ba4fe0 | [
"Unlicense"
] | null | null | null | tests/test_coments.py | Ruweydha/Blog | 399c4f0342f0a20fea90b0448165575404ba4fe0 | [
"Unlicense"
] | null | null | null | tests/test_coments.py | Ruweydha/Blog | 399c4f0342f0a20fea90b0448165575404ba4fe0 | [
"Unlicense"
] | null | null | null | import unittest
from app.models import Blogs, User,Comments
from app import db
class CommentsTest(unittest.TestCase):
def setUp(self):
self.user_ruweydha = User(username='ruweydha', password ='potato', email = 'ruweydhaabdinoor@gmail.com')
self.new_blog = Blogs(title= 'Technology', content = 'Softw... | 43.607143 | 137 | 0.701884 | 166 | 1,221 | 4.963855 | 0.331325 | 0.084951 | 0.101942 | 0.050971 | 0.411408 | 0.281553 | 0.135922 | 0 | 0 | 0 | 0 | 0.002014 | 0.186732 | 1,221 | 28 | 138 | 43.607143 | 0.827795 | 0 | 0 | 0.086957 | 0 | 0 | 0.101473 | 0.021277 | 0 | 0 | 0 | 0 | 0.217391 | 1 | 0.217391 | false | 0.043478 | 0.130435 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e7d9d2445b0cdad45b2003e7664a98a430bc3372 | 2,208 | py | Python | src/whodat/test.py | ral99/whodat | 8abe493c8ec26edcb9fcaa95b8d4a44a955612fe | [
"BSD-3-Clause"
] | null | null | null | src/whodat/test.py | ral99/whodat | 8abe493c8ec26edcb9fcaa95b8d4a44a955612fe | [
"BSD-3-Clause"
] | null | null | null | src/whodat/test.py | ral99/whodat | 8abe493c8ec26edcb9fcaa95b8d4a44a955612fe | [
"BSD-3-Clause"
] | null | null | null | from whodat.http import *
class Client:
"""HTTP client for WSGIApplication."""
def __init__(self, app):
"""Set the client for testing the specified app."""
self._app = app
self._cookies = {}
def set_cookies(self, response):
"""Set the cookies from an HTTPResponse to the cl... | 38.736842 | 111 | 0.632246 | 264 | 2,208 | 5.128788 | 0.204545 | 0.103397 | 0.092319 | 0.077548 | 0.488183 | 0.488183 | 0.451256 | 0.451256 | 0.451256 | 0.451256 | 0 | 0 | 0.23913 | 2,208 | 56 | 112 | 39.428571 | 0.805952 | 0.149004 | 0 | 0.394737 | 0 | 0 | 0.039825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.026316 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99ad4bde24803c52c96ffeb7b21ea8c45ce47f45 | 1,392 | py | Python | appyter/render/nbinspect/nbtemplate_json.py | MaayanLab/jupyter-template | dd05bfcb95c9eafb1a9df845b5d8fecae1d6b9d5 | [
"Apache-2.0"
] | null | null | null | appyter/render/nbinspect/nbtemplate_json.py | MaayanLab/jupyter-template | dd05bfcb95c9eafb1a9df845b5d8fecae1d6b9d5 | [
"Apache-2.0"
] | 24 | 2020-04-07T17:04:47.000Z | 2020-05-27T00:51:25.000Z | appyter/render/nbinspect/nbtemplate_json.py | MaayanLab/jupyter-template | dd05bfcb95c9eafb1a9df845b5d8fecae1d6b9d5 | [
"Apache-2.0"
] | null | null | null | import os
import json
import click
import fsspec
from appyter.context import get_env, get_jinja2_env
from appyter.ext.click import click_option_setenv, click_argument_setenv
from appyter.parse.nb import nb_from_ipynb_io
from appyter.parse.nbtemplate import parse_fields_from_nbtemplate
from appyter.ext.urllib import jo... | 44.903226 | 164 | 0.775144 | 204 | 1,392 | 5.098039 | 0.372549 | 0.063462 | 0.049038 | 0.028846 | 0.071154 | 0.071154 | 0 | 0 | 0 | 0 | 0 | 0.001617 | 0.111351 | 1,392 | 30 | 165 | 46.4 | 0.839127 | 0.051006 | 0 | 0 | 0 | 0 | 0.172387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.4 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
99aea17f60d55ffba8d0e2fba9fa793c2cc75195 | 8,849 | py | Python | Scope_Panel.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | null | null | null | Scope_Panel.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | 1 | 2019-10-22T21:28:31.000Z | 2019-10-22T21:39:12.000Z | Scope_Panel.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | 2 | 2019-06-06T15:06:46.000Z | 2020-07-20T02:03:22.000Z | #!/usr/bin/env python
"""Control panel for Lecroy Oscilloscope
Author: Friedrich Schotte
Date created: 2018-10-26
Date last modified: 2018-03-22
"""
__version__ = "1.6" # auto_acquire
from logging import debug,info,warn,error
import wx
from instrumentation import * # passed on in "globals()"
class Scope_Panel(wx.Fram... | 31.945848 | 97 | 0.590914 | 966 | 8,849 | 5.258799 | 0.20911 | 0.040157 | 0.056102 | 0.067913 | 0.53563 | 0.505118 | 0.493701 | 0.48622 | 0.48622 | 0.485236 | 0 | 0.006063 | 0.291671 | 8,849 | 276 | 98 | 32.061594 | 0.804403 | 0.025314 | 0 | 0.439462 | 0 | 0.004484 | 0.06715 | 0.014381 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076233 | null | null | 0.004484 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
99b4395bf45870c477b2910d7097af796fd0bf31 | 414 | py | Python | authors/apps/profiles/renderers.py | andela/ah-backend-odin | 0e9ef1a10c8a3f6736999a5111736f7bd7236689 | [
"BSD-3-Clause"
] | null | null | null | authors/apps/profiles/renderers.py | andela/ah-backend-odin | 0e9ef1a10c8a3f6736999a5111736f7bd7236689 | [
"BSD-3-Clause"
] | 43 | 2018-10-25T10:14:52.000Z | 2022-03-11T23:33:46.000Z | authors/apps/profiles/renderers.py | andela/ah-backend-odin | 0e9ef1a10c8a3f6736999a5111736f7bd7236689 | [
"BSD-3-Clause"
] | 4 | 2018-10-29T07:04:58.000Z | 2020-04-02T14:15:10.000Z | import json # pragma : no cover
from rest_framework.renderers import JSONRenderer
class ProfileRenderer(JSONRenderer):
charset = 'utf-8'
def render(self, data, *args, **kwargs):
""" Renders a profle Response"""
errors = data.get('errors', None)
if errors is not None:
r... | 23 | 60 | 0.642512 | 48 | 414 | 5.520833 | 0.729167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003195 | 0.243961 | 414 | 17 | 61 | 24.352941 | 0.84345 | 0.10628 | 0 | 0 | 0 | 0 | 0.049587 | 0 | 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 |
99b641ea3a8984d622d85f2bb9bcf8fedf291af1 | 7,301 | py | Python | dtikit.py | mcc-/dtikit | e2ef3dc65979ecfdb1f44e64632656020c68d979 | [
"MIT"
] | null | null | null | dtikit.py | mcc-/dtikit | e2ef3dc65979ecfdb1f44e64632656020c68d979 | [
"MIT"
] | null | null | null | dtikit.py | mcc-/dtikit | e2ef3dc65979ecfdb1f44e64632656020c68d979 | [
"MIT"
] | null | null | null | import os
import logging
import shelve
import re
import gzip
from io import StringIO
from collections import namedtuple
import pandas as pd
import requests
from bioservices.uniprot import UniProt
from Bio import SwissProt
class Chemical():
__slots__ = ('cid',
'stereo',
'name',
'interactions',
'inhi... | 39.464865 | 128 | 0.601151 | 884 | 7,301 | 4.825792 | 0.298643 | 0.036568 | 0.015471 | 0.025316 | 0.128458 | 0.097046 | 0.081575 | 0.054618 | 0.054618 | 0.054618 | 0 | 0.005841 | 0.273113 | 7,301 | 184 | 129 | 39.679348 | 0.798003 | 0 | 0 | 0.084615 | 0 | 0 | 0.209033 | 0.022583 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084615 | 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 |
99ba6ca83e73f611142e0988541d27847a91ac5c | 679 | py | Python | evaluator/evaluator_based_on_comparing_set_pcs/JSD_based_evaluator.py | VinAIResearch/PointSWD | ea676926e21286185e836ab355fee7937540ce69 | [
"Apache-2.0"
] | 4 | 2021-11-06T10:24:21.000Z | 2022-02-23T10:12:38.000Z | evaluator/evaluator_based_on_comparing_set_pcs/JSD_based_evaluator.py | VinAIResearch/PointSWD | ea676926e21286185e836ab355fee7937540ce69 | [
"Apache-2.0"
] | null | null | null | evaluator/evaluator_based_on_comparing_set_pcs/JSD_based_evaluator.py | VinAIResearch/PointSWD | ea676926e21286185e836ab355fee7937540ce69 | [
"Apache-2.0"
] | null | null | null | import os.path as osp
import sys
import torch.nn as nn
sys.path.append(osp.dirname(osp.dirname(osp.dirname(osp.abspath(__file__)))))
from criteria_comparing_sets_pcs.jsd_calculator import JsdCalculator
class JSDBasedEvaluator(nn.Module):
def __init__(self):
super().__init__()
@staticmethod
def... | 30.863636 | 82 | 0.743741 | 83 | 679 | 5.73494 | 0.554217 | 0.063025 | 0.081933 | 0.084034 | 0.069328 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001754 | 0.16053 | 679 | 21 | 83 | 32.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.014728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
99c46f4a97e393bd8ac670930a1bcdb2fbf68e6a | 2,037 | py | Python | programs/pyeos/tests/python/rpctest/rpctest.py | learnforpractice/pyeos | 4f04eb982c86c1fdb413084af77c713a6fda3070 | [
"MIT"
] | 144 | 2017-10-18T16:38:51.000Z | 2022-01-09T12:43:57.000Z | programs/pyeos/tests/python/rpctest/rpctest.py | openchatproject/safeos | 2c8dbf57d186696ef6cfcbb671da9705b8f3d9f7 | [
"MIT"
] | 60 | 2017-10-11T13:07:43.000Z | 2019-03-26T04:33:27.000Z | programs/pyeos/tests/python/rpctest/rpctest.py | learnforpractice/pyeos | 4f04eb982c86c1fdb413084af77c713a6fda3070 | [
"MIT"
] | 38 | 2017-12-05T01:13:56.000Z | 2022-01-07T07:06:53.000Z | from eoslib import *
code = N('rpctest')
def sayHello():
n = N('rpctest')
id = N('name')
name = read_action()
print('hello', name)
itr = db_find_i64(n, n, n, id)
if itr >= 0: # value exist, update it
old_name = db_get_i64(itr)
print('hello,', old_name)
db_update_i64(it... | 26.115385 | 67 | 0.502209 | 274 | 2,037 | 3.554745 | 0.167883 | 0.098563 | 0.049281 | 0.067762 | 0.740246 | 0.691992 | 0.691992 | 0.691992 | 0.691992 | 0.691992 | 0 | 0.041825 | 0.354443 | 2,037 | 77 | 68 | 26.454545 | 0.698859 | 0.053019 | 0 | 0.672131 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04918 | false | 0 | 0.016393 | 0 | 0.065574 | 0.245902 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 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 |
99c939b465fe434efd4c28ffb7c08139a9b5240c | 282 | py | Python | unused/constants.py | sundevilmotorsports/telemetryviewer | 4cc9b09e62c8c10e6bb10e95f48b87c59464d797 | [
"MIT"
] | null | null | null | unused/constants.py | sundevilmotorsports/telemetryviewer | 4cc9b09e62c8c10e6bb10e95f48b87c59464d797 | [
"MIT"
] | null | null | null | unused/constants.py | sundevilmotorsports/telemetryviewer | 4cc9b09e62c8c10e6bb10e95f48b87c59464d797 | [
"MIT"
] | null | null | null | # constants #
team_number = 0
# flags #
# simulation
sim_enable_flag = False
sim_activate_flag = False
# telemetry transmission
cx_flag = False
sp1x_flag = False
sp2x_flag = False
# mqtt
mqtt_flag = False
# payload deployment
sp1_deployed_flag = False
sp2_deployed_flag = False | 14.1 | 25 | 0.77305 | 39 | 282 | 5.25641 | 0.564103 | 0.35122 | 0.165854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.166667 | 282 | 20 | 26 | 14.1 | 0.851064 | 0.265957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
99ce71092e91cba83b6e9532db12ddc60e6695a5 | 6,371 | py | Python | src/get_financials_v2.py | lupks/value-invest | dc2d701f7920185a861a0854ba37c8043e59d550 | [
"MIT"
] | null | null | null | src/get_financials_v2.py | lupks/value-invest | dc2d701f7920185a861a0854ba37c8043e59d550 | [
"MIT"
] | null | null | null | src/get_financials_v2.py | lupks/value-invest | dc2d701f7920185a861a0854ba37c8043e59d550 | [
"MIT"
] | 2 | 2021-10-12T15:00:50.000Z | 2022-01-25T16:39:41.000Z | import yfinance as yf
import yahoo_fin.stock_info as si
import pandas as pd
import requests
from math import isnan
from bs4 import BeautifulSoup
class Financials:
def __init__(self, stock_batch):
self.stock_batch = []
self.batch_earnings = []
self.batch_stats = []
self.batch_info =... | 38.847561 | 111 | 0.508711 | 734 | 6,371 | 4.242507 | 0.252044 | 0.052023 | 0.069364 | 0.044958 | 0.188504 | 0.157033 | 0.136802 | 0.100835 | 0.090559 | 0.090559 | 0 | 0.013643 | 0.378747 | 6,371 | 163 | 112 | 39.08589 | 0.773118 | 0.045676 | 0 | 0.186567 | 0 | 0.014925 | 0.101639 | 0.011256 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104478 | false | 0.067164 | 0.052239 | 0.037313 | 0.261194 | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
99d7f7903a8e1ba35d02e42c16e9990b49a580b0 | 374 | py | Python | src_old/kernel.py | gregpr07/NeuralNetwork | 89a1f4a08e0592f5cb1584026c4965ccf5abe1d2 | [
"Apache-2.0"
] | 2 | 2021-01-04T12:46:59.000Z | 2021-01-12T11:23:13.000Z | src_old/kernel.py | gregpr07/NeuralNetwork | 89a1f4a08e0592f5cb1584026c4965ccf5abe1d2 | [
"Apache-2.0"
] | 1 | 2020-12-23T08:27:30.000Z | 2020-12-31T10:32:25.000Z | src_old/kernel.py | gregpr07/NeuralNetwork | 89a1f4a08e0592f5cb1584026c4965ccf5abe1d2 | [
"Apache-2.0"
] | 1 | 2021-03-05T09:04:46.000Z | 2021-03-05T09:04:46.000Z | import numpy as np
def sigmoid(x, derivative=False):
# Sigmoida in odvod
s = 1/(1 + np.exp(-x))
if not derivative:
return s
else:
return s * (1 - s)
def ReLu(x, derivative=False):
if not derivative:
return x if x > 0 else 0,
else:
return 1 if x > 0 else 0,
k... | 15.583333 | 33 | 0.542781 | 56 | 374 | 3.625 | 0.392857 | 0.073892 | 0.157635 | 0.206897 | 0.08867 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032653 | 0.34492 | 374 | 23 | 34 | 16.26087 | 0.795918 | 0.045455 | 0 | 0.25 | 0 | 0 | 0.030986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.4375 | 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 |
99e1b86ebb7c27f81bca30c41e566ac0578a2e9a | 1,018 | py | Python | python/tests/testdata/region_FR.py | vishnuku/python-phonenumbers | 6ac2cdd06b7ccf709a8efb21629cf2c5f030e627 | [
"Apache-2.0"
] | 3 | 2018-12-02T23:09:00.000Z | 2018-12-02T23:16:59.000Z | python/tests/testdata/region_FR.py | carljm/python-phonenumbers | 494044aaf75443dbfd62b8d1352b441af6a458ae | [
"Apache-2.0"
] | null | null | null | python/tests/testdata/region_FR.py | carljm/python-phonenumbers | 494044aaf75443dbfd62b8d1352b441af6a458ae | [
"Apache-2.0"
] | null | null | null | """Auto-generated file, do not edit by hand. FR metadata"""
from phonenumbers.phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_FR = PhoneMetadata(id='FR', country_code=33, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='3\\d{6}', possible_number_patt... | 50.9 | 170 | 0.732809 | 118 | 1,018 | 6.067797 | 0.525424 | 0.096369 | 0.081006 | 0.100559 | 0.131285 | 0.131285 | 0.131285 | 0.131285 | 0 | 0 | 0 | 0.025192 | 0.103143 | 1,018 | 19 | 171 | 53.578947 | 0.759036 | 0.052063 | 0 | 0 | 1 | 0 | 0.078206 | 0.03024 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 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 |
99e35e5855a67d788b5f81ae86c042e9789c497a | 5,729 | py | Python | src/datastore/datastore.py | mikelmcdaniel/grade-oven | 91bbfa38b9b13ea7ef352b0bf4f097525c87d88a | [
"Unlicense"
] | 5 | 2017-04-03T01:14:16.000Z | 2021-04-07T23:57:21.000Z | src/datastore/datastore.py | mikelmcdaniel/grade-oven | 91bbfa38b9b13ea7ef352b0bf4f097525c87d88a | [
"Unlicense"
] | 2 | 2016-11-24T04:04:45.000Z | 2017-05-20T21:17:23.000Z | src/datastore/datastore.py | mikelmcdaniel/grade-oven | 91bbfa38b9b13ea7ef352b0bf4f097525c87d88a | [
"Unlicense"
] | 4 | 2017-04-25T02:11:02.000Z | 2018-06-12T21:53:39.000Z | """This module provides a simple hierarchical DataStore where keys are tuples
of ASCII strings and values are basic Python types (e.g. int, str, None).
See the example at the bottom of datastore.py for an example of
how to use it or look at this simple example:
key = ('courses', 'c++', 'assignments')
store = Data... | 30.801075 | 77 | 0.65631 | 796 | 5,729 | 4.56407 | 0.23995 | 0.042389 | 0.099367 | 0.033031 | 0.393064 | 0.334159 | 0.24883 | 0.238921 | 0.206441 | 0.144233 | 0 | 0.010389 | 0.210333 | 5,729 | 185 | 78 | 30.967568 | 0.792661 | 0.20405 | 0 | 0.418605 | 0 | 0 | 0.022546 | 0 | 0 | 0 | 0 | 0.010811 | 0 | 1 | 0.162791 | false | 0.023256 | 0.046512 | 0 | 0.325581 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
99e541a9cc940d831a26f2cdaee273a32a901ca5 | 6,223 | py | Python | garbage_detection.py | deejey674/urban-object-detection | bd819cdfc90a0232e178e8fb5b5f17554c719bcd | [
"MIT"
] | 22 | 2020-02-14T08:54:17.000Z | 2022-03-19T09:23:33.000Z | garbage_detection.py | deejey674/urban-object-detection | bd819cdfc90a0232e178e8fb5b5f17554c719bcd | [
"MIT"
] | 4 | 2021-06-08T20:55:16.000Z | 2022-03-12T00:14:29.000Z | garbage_detection.py | deejey674/urban-object-detection | bd819cdfc90a0232e178e8fb5b5f17554c719bcd | [
"MIT"
] | 15 | 2020-03-02T15:48:34.000Z | 2022-02-28T11:42:08.000Z | import os
import argparse
from model.darknet import Darknet
import torch
import logging
from model.util import process_result, load_images, resize_image, cv_image2tensor, transform_result, create_batches,create_output_json, load_data_frame
import math
import pickle as pkl
import os.path as osp
from datetime import dat... | 35.971098 | 174 | 0.619155 | 706 | 6,223 | 5.23796 | 0.240793 | 0.112493 | 0.047593 | 0.024337 | 0.653867 | 0.647918 | 0.647918 | 0.647918 | 0.647918 | 0.647918 | 0 | 0.015845 | 0.269806 | 6,223 | 172 | 175 | 36.180233 | 0.797975 | 0.040816 | 0 | 0.651786 | 0 | 0 | 0.114613 | 0.01163 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.098214 | 0 | 0.160714 | 0.098214 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 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 |
99e62131080ff5110ca0a86b95c4cfa5f2286c5c | 676 | py | Python | sql_app/database.py | 0-jam/fastapi_tutorials | c341b9fbef69c74a9cd3cfc24151e4dedf2d37a7 | [
"Apache-2.0"
] | null | null | null | sql_app/database.py | 0-jam/fastapi_tutorials | c341b9fbef69c74a9cd3cfc24151e4dedf2d37a7 | [
"Apache-2.0"
] | null | null | null | sql_app/database.py | 0-jam/fastapi_tutorials | c341b9fbef69c74a9cd3cfc24151e4dedf2d37a7 | [
"Apache-2.0"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
# Path to the SQLite database file
SQLALCHEMY_DATABASE_URL = 'sqlite:///./sql_app.db'
# URL to the PostgreSQL database
# SQLALCHEMY_DATABASE_URL = 'postgresql://user:password@postgresser... | 37.555556 | 90 | 0.813609 | 90 | 676 | 5.933333 | 0.488889 | 0.078652 | 0.117978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109467 | 676 | 17 | 91 | 39.764706 | 0.887043 | 0.41568 | 0 | 0 | 0 | 0 | 0.100775 | 0.056848 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
99eb201be3fbcd89b43e8859bcd4d2d39aa91436 | 775 | py | Python | tests/functional/smoke/test_register.py | vyahello/Blog | 5e0dae383be2eedde221f31bc61d29bfc436a44a | [
"MIT"
] | 4 | 2018-05-22T10:02:23.000Z | 2018-06-04T19:58:46.000Z | tests/functional/smoke/test_register.py | vyahello/blog | 5e0dae383be2eedde221f31bc61d29bfc436a44a | [
"MIT"
] | 1 | 2020-09-28T21:01:05.000Z | 2020-09-28T21:01:05.000Z | tests/functional/smoke/test_register.py | vyahello/blog | 5e0dae383be2eedde221f31bc61d29bfc436a44a | [
"MIT"
] | 1 | 2021-04-10T22:32:39.000Z | 2021-04-10T22:32:39.000Z | from typing import Dict
from blog.api.requests import Request
from blog.api.responses import Response
from tests.markers import smoke
_zero: int = 0
@smoke
def test_register_page_url(register_url_response: Response, success: int) -> None:
assert register_url_response.status_code() == success
@smoke
def test_re... | 27.678571 | 82 | 0.725161 | 101 | 775 | 5.306931 | 0.39604 | 0.08209 | 0.141791 | 0.11194 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001543 | 0.163871 | 775 | 27 | 83 | 28.703704 | 0.825617 | 0 | 0 | 0.15 | 0 | 0 | 0.095484 | 0 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.15 | false | 0.1 | 0.2 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8201d1142828a970c7f3a0299dba23aebabdc1ad | 267 | py | Python | Online Judges/LeetCode/September LeetCoding Challenge/Week-3/Best Time to Buy and Sell Stock.py | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | 4 | 2017-02-20T17:41:14.000Z | 2019-07-15T14:15:34.000Z | Online Judges/LeetCode/September LeetCoding Challenge/Week-3/Best Time to Buy and Sell Stock.py | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | null | null | null | Online Judges/LeetCode/September LeetCoding Challenge/Week-3/Best Time to Buy and Sell Stock.py | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | null | null | null | class Solution:
def maxProfit(self, prices: List[int]) -> int:
ret, mn = 0, float('inf')
for price in prices:
if price < mn:
mn = price
if price - mn > ret:
ret = price-mn
return ret
| 26.7 | 50 | 0.456929 | 32 | 267 | 3.8125 | 0.5625 | 0.172131 | 0.147541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.445693 | 267 | 9 | 51 | 29.666667 | 0.817568 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
820e25da1dd2e76b2bddc25dd9beb4e69afb7325 | 1,187 | py | Python | oxyrhopus/config.py | bhoeckendorf/oxyrhopus | 0abc383fd2b3fcbe38a797e28198696178a19f8e | [
"Apache-2.0"
] | null | null | null | oxyrhopus/config.py | bhoeckendorf/oxyrhopus | 0abc383fd2b3fcbe38a797e28198696178a19f8e | [
"Apache-2.0"
] | null | null | null | oxyrhopus/config.py | bhoeckendorf/oxyrhopus | 0abc383fd2b3fcbe38a797e28198696178a19f8e | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass, field
from typing import Any, List
# import logging
from hydra.core.config_store import ConfigStore
from omegaconf import MISSING
from .optimizers import *
from .datasets import *
@dataclass
class TrainConfig:
num_epochs: int = 5
batch_size: int = 32
optimizer: Any = MIS... | 27.604651 | 68 | 0.657119 | 152 | 1,187 | 5.039474 | 0.388158 | 0.073107 | 0.062663 | 0.083551 | 0.16188 | 0.083551 | 0.083551 | 0.083551 | 0.083551 | 0 | 0 | 0.005342 | 0.211457 | 1,187 | 42 | 69 | 28.261905 | 0.813034 | 0.317607 | 0 | 0.071429 | 0 | 0 | 0.072409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.214286 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
822079d3c09a4e2c083c58379db423cad3a3d939 | 2,157 | py | Python | torchcule/atari/rom.py | DanielShrimpton/cule | 70847c51da7102d52510c01079d2c1e4e8a5e166 | [
"BSD-3-Clause"
] | null | null | null | torchcule/atari/rom.py | DanielShrimpton/cule | 70847c51da7102d52510c01079d2c1e4e8a5e166 | [
"BSD-3-Clause"
] | null | null | null | torchcule/atari/rom.py | DanielShrimpton/cule | 70847c51da7102d52510c01079d2c1e4e8a5e166 | [
"BSD-3-Clause"
] | null | null | null | """CuLE (CUda Learning Environment module)
This module provides access to several RL environments that generate data
on the CPU or GPU.
"""
import atari_py
import gym
import os
import site
from torchcule_atari import AtariRom
# def get_rom(roms_path, env_name):
def get_rom(env_name):
# roms = [os.path.splitext(... | 36.559322 | 89 | 0.511822 | 260 | 2,157 | 4.023077 | 0.373077 | 0.053537 | 0.017208 | 0.026769 | 0.040153 | 0.040153 | 0 | 0 | 0 | 0 | 0 | 0.002874 | 0.354659 | 2,157 | 58 | 90 | 37.189655 | 0.748563 | 0.215577 | 0 | 0 | 1 | 0 | 0.166965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.128205 | 0.025641 | 0.282051 | 0 | 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 |
8223670003dfd61a9947a004609b39d62fb4aadf | 1,979 | py | Python | SocialAPI/TwitterAPI/RecolectorSeguidoresLong.py | garnachod/ConcursoPolicia | f123595afc697ddfa862114a228d7351e2f8fd73 | [
"Apache-2.0"
] | null | null | null | SocialAPI/TwitterAPI/RecolectorSeguidoresLong.py | garnachod/ConcursoPolicia | f123595afc697ddfa862114a228d7351e2f8fd73 | [
"Apache-2.0"
] | null | null | null | SocialAPI/TwitterAPI/RecolectorSeguidoresLong.py | garnachod/ConcursoPolicia | f123595afc697ddfa862114a228d7351e2f8fd73 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from SocialAPI.Recolector import Recolector
from ApoyoTwitter import ApoyoTwitter
from getAuthorizations import GetAuthorizations
from twython import Twython
class RecolectorSeguidoresLong(Recolector):
"""docstring for RecolectorSeguidores"""
def __init__(self, escritor):
super(RecolectorSe... | 25.050633 | 96 | 0.723598 | 234 | 1,979 | 5.940171 | 0.337607 | 0.057554 | 0.028777 | 0.02446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006575 | 0.154624 | 1,979 | 78 | 97 | 25.371795 | 0.824268 | 0.035877 | 0 | 0.092593 | 0 | 0 | 0.067204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074074 | null | null | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
822c5b6de760e6c206a17ed727dcff7ba0d84073 | 1,846 | py | Python | wgm/cli/checkpeers.py | Skylaski-VPN/WireGuard-Gateway-Manager | 5cacbbc2318fdf662cd4793a786e3c7b9b74c5c4 | [
"MIT"
] | 1 | 2021-11-28T21:26:58.000Z | 2021-11-28T21:26:58.000Z | wgm/cli/checkpeers.py | Skylaski-VPN/WireGuard-Gateway-Manager | 5cacbbc2318fdf662cd4793a786e3c7b9b74c5c4 | [
"MIT"
] | 2 | 2021-04-07T18:10:07.000Z | 2021-04-07T21:41:35.000Z | wgm/cli/checkpeers.py | Skylaski-VPN/WireGuard-Gateway-Manager | 5cacbbc2318fdf662cd4793a786e3c7b9b74c5c4 | [
"MIT"
] | 2 | 2021-04-07T16:13:55.000Z | 2021-04-23T18:33:22.000Z | #!/usr/bin/python3
#
# privacy_bot
#
# Privacy bot interprets WireGuard output and generates a list of connected clients
# That haven't performed a handshake in the last 2 minutes. Privacy bot then re-peers these
# clients with the WireGuard server to remove the known IP Address from the server's memory.
import privac... | 32.964286 | 126 | 0.719393 | 278 | 1,846 | 4.589928 | 0.413669 | 0.031348 | 0.037618 | 0.039969 | 0.146552 | 0.076803 | 0.076803 | 0.076803 | 0 | 0 | 0 | 0.010013 | 0.134345 | 1,846 | 55 | 127 | 33.563636 | 0.788486 | 0.225352 | 0 | 0.125 | 1 | 0.0625 | 0.270995 | 0.07904 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 0.15625 | 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 |
822c9cd3e495fc3f5f69f1a1a723195369a6fcdd | 605 | py | Python | Part_3_advanced/m16_tests_I/assert_and_pytest/test_example_3.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_3_advanced/m16_tests_I/assert_and_pytest/test_example_3.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_3_advanced/m16_tests_I/assert_and_pytest/test_example_3.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | def anonymize_phone_number(phone_number: str) -> str:
public_digits_num = 6
phone_number = phone_number.replace("-", "")
public_digits = phone_number[:public_digits_num]
number_of_private_digits = len(phone_number) - public_digits_num
private_digits = "-" * number_of_private_digits
return f"{pub... | 37.8125 | 70 | 0.768595 | 77 | 605 | 5.519481 | 0.350649 | 0.310588 | 0.141176 | 0.155294 | 0.268235 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034749 | 0.143802 | 605 | 15 | 71 | 40.333333 | 0.785714 | 0.042975 | 0 | 0 | 0 | 0 | 0.090278 | 0.053819 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.272727 | 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 |
8230bd8d1b74cbccab37fd2b5e9b5c2bd5fd1d18 | 430 | py | Python | Assets/Python/Test/TestUtils.py | dguenms/Dawn-of-Civilization | 1c4f510af97a869637cddb4c0859759158cea5ce | [
"MIT"
] | 93 | 2015-11-20T04:13:36.000Z | 2022-03-24T00:03:08.000Z | Assets/Python/Test/TestUtils.py | dguenms/Dawn-of-Civilization | 1c4f510af97a869637cddb4c0859759158cea5ce | [
"MIT"
] | 206 | 2015-11-09T00:27:15.000Z | 2021-12-04T19:05:18.000Z | Assets/Python/Test/TestUtils.py | dguenms/Dawn-of-Civilization | 1c4f510af97a869637cddb4c0859759158cea5ce | [
"MIT"
] | 117 | 2015-11-08T02:43:46.000Z | 2022-02-12T06:29:00.000Z | from unittest import *
import cPickle as pickle
class PickleTestCase(TestCase):
def assertPickleable(self, object):
print "assert pickle %s" % object.__class__.__name__
self.tryPickle(object)
def tryPickle(self, object):
try:
pickle.dumps(object)
except:
if hasattr(object, '__dict__'):
for k... | 21.5 | 54 | 0.704651 | 53 | 430 | 5.415094 | 0.566038 | 0.069686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190698 | 430 | 20 | 55 | 21.5 | 0.824713 | 0 | 0 | 0 | 0 | 0 | 0.085847 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0 | null | null | 0 | 0.133333 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
82324b979afa58ae84c758ceb7c5b008fca0f59d | 10,338 | py | Python | tests.py | myconundrum/pymush | 9122be442cca02ebcdfbfa4babf4baf8a4b4bcf9 | [
"MIT"
] | 1 | 2021-08-07T00:49:54.000Z | 2021-08-07T00:49:54.000Z | tests.py | myconundrum/pymush | 9122be442cca02ebcdfbfa4babf4baf8a4b4bcf9 | [
"MIT"
] | null | null | null | tests.py | myconundrum/pymush | 9122be442cca02ebcdfbfa4babf4baf8a4b4bcf9 | [
"MIT"
] | null | null | null |
from parser import EvalEngine,gMushFunctions
from mushstate import mush
def inspectFunctions():
mushfun = [x[3:] for x in dir(gMushFunctions) if x[0:3] == "fn_" and x != "fn_notimplemented"]
e = EvalEngine("",1,1)
notimp = [x for x in mushfun if x != "notimplemented" and x !="create" and x!= "dig" and getattr(gMus... | 33.564935 | 173 | 0.543529 | 1,849 | 10,338 | 3.036777 | 0.228772 | 0.008192 | 0.008014 | 0.007836 | 0.204452 | 0.131434 | 0.105076 | 0.077115 | 0.044702 | 0.013179 | 0 | 0.085269 | 0.150319 | 10,338 | 307 | 174 | 33.674267 | 0.553962 | 0.006674 | 0 | 0 | 0 | 0.023891 | 0.690404 | 0.102095 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010239 | false | 0.006826 | 0.006826 | 0 | 0.017065 | 0 | 0 | 0 | 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 |
8237f216246cf41e77bc7a6ea0e6c33e3531c033 | 14,340 | py | Python | intersight/models/memory_array_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 21 | 2018-03-29T14:20:35.000Z | 2021-10-13T05:11:41.000Z | intersight/models/memory_array_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 14 | 2018-01-30T15:45:46.000Z | 2022-02-23T14:23:21.000Z | intersight/models/memory_array_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 18 | 2018-01-03T15:09:56.000Z | 2021-07-16T02:21:54.000Z | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | 34.061758 | 1,052 | 0.643305 | 1,661 | 14,340 | 5.367249 | 0.145093 | 0.032305 | 0.118452 | 0.104992 | 0.529333 | 0.428491 | 0.383735 | 0.323836 | 0.209647 | 0.140886 | 0 | 0.014008 | 0.283124 | 14,340 | 420 | 1,053 | 34.142857 | 0.85321 | 0.432078 | 0 | 0.084211 | 0 | 0 | 0.080732 | 0.01731 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.021053 | 0 | 0.294737 | 0.010526 | 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 |
823887ac74a85bf8319a1af965d0749a9150c569 | 255 | py | Python | crafts/common/template.py | mkalte666/KSP-Playground | 9fd2933180e883c582fa2c6544366728cb788d34 | [
"MIT"
] | null | null | null | crafts/common/template.py | mkalte666/KSP-Playground | 9fd2933180e883c582fa2c6544366728cb788d34 | [
"MIT"
] | null | null | null | crafts/common/template.py | mkalte666/KSP-Playground | 9fd2933180e883c582fa2c6544366728cb788d34 | [
"MIT"
] | null | null | null | #!python3
#import stuff so we find everything
import sys
sys.path.append('../../')
import piloet.piloet as piloet
import piloet.task as task
# tasks here
# startup everything
pilot = piloet.Piloet()
#add tasks
#run!
pilot.run()
| 12.75 | 36 | 0.658824 | 34 | 255 | 4.941176 | 0.558824 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005076 | 0.227451 | 255 | 19 | 37 | 13.421053 | 0.847716 | 0.333333 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
413268d1705a41c29bea5dbbb3121acf4a66d75c | 4,254 | py | Python | sdk/python/pulumi_aws/ssm/activation.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/ssm/activation.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/ssm/activation.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import pulumi
import pulumi.runtime
class Activation(pulumi.CustomResource):
"""
Registers an on-premises server or virtual ma... | 42.118812 | 195 | 0.649036 | 476 | 4,254 | 5.510504 | 0.308824 | 0.026687 | 0.030499 | 0.060999 | 0.115135 | 0.037362 | 0.037362 | 0 | 0 | 0 | 0 | 0.004834 | 0.270569 | 4,254 | 100 | 196 | 42.54 | 0.840477 | 0.086272 | 0 | 0 | 1 | 0 | 0.221639 | 0.009508 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.034483 | 0 | 0.086207 | 0 | 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 |
4132fae9bbf533320c1738a394677a7b40a8ef64 | 2,269 | py | Python | dynamodb_stream_router/record.py | ateoto/dynamodb-stream-router | 5625a6ee8ce2e37a92025c0913cc16894f7ccc8b | [
"Apache-2.0"
] | null | null | null | dynamodb_stream_router/record.py | ateoto/dynamodb-stream-router | 5625a6ee8ce2e37a92025c0913cc16894f7ccc8b | [
"Apache-2.0"
] | 1 | 2021-12-01T21:29:07.000Z | 2021-12-01T23:05:59.000Z | dynamodb_stream_router/record.py | ateoto/dynamodb-stream-router | 5625a6ee8ce2e37a92025c0913cc16894f7ccc8b | [
"Apache-2.0"
] | 1 | 2021-11-30T19:22:12.000Z | 2021-11-30T19:22:12.000Z | from __future__ import annotations
from base64 import b64decode
from copy import deepcopy
from typing import Any, TypedDict
from boto3.dynamodb.types import TypeDeserializer
AttributeValueMap = dict[str, dict[str, Any]]
class Identity(TypedDict, total=False):
PrincipalId: str
Type: str
class StreamRecord... | 28.012346 | 80 | 0.662847 | 247 | 2,269 | 5.805668 | 0.255061 | 0.069735 | 0.048815 | 0.029289 | 0.25523 | 0.192469 | 0.146444 | 0.111576 | 0.076709 | 0 | 0 | 0.004065 | 0.241075 | 2,269 | 80 | 81 | 28.3625 | 0.828688 | 0 | 0 | 0.064516 | 0 | 0 | 0.038784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.080645 | 0.016129 | 0.629032 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
413ccc1812abbbebdb453c2381e9113be41aab91 | 761 | py | Python | metropolis-hastings/postproc/hist-gauss.py | nicholasmalaya/paleologos | 11959056caa80d3c910759b714a0f8e42f986f0f | [
"MIT"
] | 1 | 2021-11-04T17:49:42.000Z | 2021-11-04T17:49:42.000Z | metropolis-hastings/postproc/hist-gauss.py | nicholasmalaya/paleologos | 11959056caa80d3c910759b714a0f8e42f986f0f | [
"MIT"
] | null | null | null | metropolis-hastings/postproc/hist-gauss.py | nicholasmalaya/paleologos | 11959056caa80d3c910759b714a0f8e42f986f0f | [
"MIT"
] | 2 | 2019-01-04T16:08:18.000Z | 2019-12-16T19:34:24.000Z | #
# create histogram from time series data
#
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.mlab as mlab
dat=[]
tf = open('../src/gauss.dat','r')
fig = plt.figure()
ax = fig.add_subplot(111)
for line in tf.readlines():
keep = line
dat.append(float(keep))
pdf, bins, patches = ax.hist(da... | 18.119048 | 87 | 0.689882 | 130 | 761 | 4.015385 | 0.615385 | 0.061303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03811 | 0.137976 | 761 | 41 | 88 | 18.560976 | 0.757622 | 0.127464 | 0 | 0 | 0 | 0 | 0.120611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
414334a39da3fe433b1b3f67530a30e5a35abff8 | 1,067 | py | Python | tests/common.py | xhochy/rejected | 610a3e1401122ecb98d891b6795cca0255e5b044 | [
"BSD-3-Clause"
] | null | null | null | tests/common.py | xhochy/rejected | 610a3e1401122ecb98d891b6795cca0255e5b044 | [
"BSD-3-Clause"
] | null | null | null | tests/common.py | xhochy/rejected | 610a3e1401122ecb98d891b6795cca0255e5b044 | [
"BSD-3-Clause"
] | null | null | null | """
Common Classes and Such
"""
from rejected import consumer
class TestConsumer(consumer.Consumer):
def __init__(self, *args, **kwargs):
self.called_initialize = False
self.called_prepare = False
self.called_process = False
self.called_on_finish = False
self.called_shutd... | 26.02439 | 59 | 0.633552 | 128 | 1,067 | 5.078125 | 0.25 | 0.153846 | 0.138462 | 0.156923 | 0.129231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257732 | 1,067 | 40 | 60 | 26.675 | 0.820707 | 0.021556 | 0 | 0 | 0 | 0 | 0.072464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.035714 | 0 | 0.321429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
414acf9906a6527e87d65bf5575f87e624cf439f | 79,438 | py | Python | pyserver/grax/item_manager.py | lbouma/Cyclopath | d09d927a1e6f9e07924007fd39e8e807cd9c0f8c | [
"Apache-2.0"
] | 15 | 2015-05-06T05:11:48.000Z | 2021-12-03T14:56:58.000Z | pyserver/grax/item_manager.py | landonb/Cyclopath | d09d927a1e6f9e07924007fd39e8e807cd9c0f8c | [
"Apache-2.0"
] | null | null | null | pyserver/grax/item_manager.py | landonb/Cyclopath | d09d927a1e6f9e07924007fd39e8e807cd9c0f8c | [
"Apache-2.0"
] | 8 | 2015-05-06T05:11:36.000Z | 2020-11-04T05:11:22.000Z | # Copyright (c) 2006-2013 Regents of the University of Minnesota.
# For licensing terms, see the file LICENSE.
import conf
import g
import os
import sys
import time
import traceback
from grax.access_level import Access_Level
from gwis.exception.gwis_error import GWIS_Error
from gwis.query_filters import Query_Filter... | 39.659511 | 79 | 0.595017 | 10,669 | 79,438 | 4.15859 | 0.095135 | 0.035183 | 0.011427 | 0.013794 | 0.438311 | 0.354535 | 0.284146 | 0.219392 | 0.1994 | 0.173887 | 0 | 0.006097 | 0.320716 | 79,438 | 2,002 | 80 | 39.679321 | 0.816126 | 0.255482 | 0 | 0.357676 | 0 | 0 | 0.09813 | 0.020057 | 0 | 0 | 0 | 0.000999 | 0 | 0 | null | null | 0.009129 | 0.021577 | null | null | 0.00083 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
415100ada21a15625dc3520fb492352e3c0171c3 | 5,371 | py | Python | carla/models/api/mlmodel.py | jayanthyetukuri/CARLA | c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950 | [
"MIT"
] | 140 | 2021-08-03T21:53:32.000Z | 2022-03-20T08:52:02.000Z | carla/models/api/mlmodel.py | jayanthyetukuri/CARLA | c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950 | [
"MIT"
] | 54 | 2021-03-07T18:22:16.000Z | 2021-08-03T12:06:31.000Z | carla/models/api/mlmodel.py | jayanthyetukuri/CARLA | c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950 | [
"MIT"
] | 16 | 2021-08-23T12:14:58.000Z | 2022-03-01T00:52:58.000Z | from abc import ABC, abstractmethod
from typing import Union
import numpy as np
import pandas as pd
from sklearn import preprocessing
from sklearn.base import BaseEstimator
from carla.data.api import Data
class MLModel(ABC):
"""
Abstract class to implement custom black-box-model for a given dataset with enc... | 25.822115 | 112 | 0.580897 | 577 | 5,371 | 5.348354 | 0.263432 | 0.020415 | 0.019443 | 0.024627 | 0.360985 | 0.340246 | 0.260531 | 0.212573 | 0.212573 | 0.187946 | 0 | 0.002766 | 0.326941 | 5,371 | 207 | 113 | 25.94686 | 0.850899 | 0.445541 | 0 | 0.328358 | 0 | 0 | 0.051327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179104 | false | 0.074627 | 0.104478 | 0 | 0.343284 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4164a8e659d069c323d733625dc7d9b60d12c3b4 | 695 | py | Python | classic_tetris_project/migrations/0054_auto_20210802_1651.py | professor-l/classic-tetris-project | d171ab40c06b87ee945dce058babf2ed23dd3b88 | [
"MIT"
] | 17 | 2019-11-23T12:56:06.000Z | 2022-02-05T21:48:00.000Z | classic_tetris_project/migrations/0054_auto_20210802_1651.py | professor-l/classic-tetris-project | d171ab40c06b87ee945dce058babf2ed23dd3b88 | [
"MIT"
] | 43 | 2019-10-03T20:16:11.000Z | 2022-03-12T00:24:52.000Z | classic_tetris_project/migrations/0054_auto_20210802_1651.py | professor-l/classic-tetris-project | d171ab40c06b87ee945dce058babf2ed23dd3b88 | [
"MIT"
] | 17 | 2020-02-09T01:55:01.000Z | 2021-11-12T21:16:50.000Z | # Generated by Django 3.1.3 on 2021-08-02 16:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('classic_tetris_project', '0053_auto_20210607_0343'),
]
operations = [
migrations.AddField(
mode... | 27.8 | 139 | 0.634532 | 77 | 695 | 5.584416 | 0.571429 | 0.055814 | 0.065116 | 0.102326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059501 | 0.25036 | 695 | 24 | 140 | 28.958333 | 0.765835 | 0.064748 | 0 | 0.222222 | 1 | 0 | 0.166667 | 0.112654 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
416567a3b3bfd2e1c5afef03b014925a11220d20 | 2,477 | py | Python | pybricksdev/ble/lwp3/__init__.py | lobodpav/pybricksdev | 62e2143e68022394524608c6f81a89e94de3dc05 | [
"MIT"
] | null | null | null | pybricksdev/ble/lwp3/__init__.py | lobodpav/pybricksdev | 62e2143e68022394524608c6f81a89e94de3dc05 | [
"MIT"
] | null | null | null | pybricksdev/ble/lwp3/__init__.py | lobodpav/pybricksdev | 62e2143e68022394524608c6f81a89e94de3dc05 | [
"MIT"
] | null | null | null | # SPDX-License-Identifier: MIT
# Copyright (c) 2021-2022 The Pybricks Authors
"""
This module and its submodules are used for Bluetooth Low Energy
communications with devices that provide the LEGO Wireless Protocol v3.
"""
from .bytecodes import Capabilities, HubKind, LastNetwork, Status
# LEGO Wireless Protocol v3 ... | 25.27551 | 79 | 0.662091 | 314 | 2,477 | 5.085987 | 0.436306 | 0.040075 | 0.075141 | 0.082655 | 0.071384 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044397 | 0.236173 | 2,477 | 97 | 80 | 25.536082 | 0.799683 | 0.300363 | 0 | 0.166667 | 0 | 0 | 0.058169 | 0.036784 | 0 | 0 | 0.025663 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.033333 | 0.033333 | 0.566667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4166bd0e059c5a804dfc9e01b0073e2496d01033 | 13,866 | py | Python | directflow_assist/DirectFlowSwitch.py | aristanetworks/DirectFlowAssist | 16c594cb42edd8aa084c6dbb931c87bbdff81ed0 | [
"Apache-2.0"
] | null | null | null | directflow_assist/DirectFlowSwitch.py | aristanetworks/DirectFlowAssist | 16c594cb42edd8aa084c6dbb931c87bbdff81ed0 | [
"Apache-2.0"
] | null | null | null | directflow_assist/DirectFlowSwitch.py | aristanetworks/DirectFlowAssist | 16c594cb42edd8aa084c6dbb931c87bbdff81ed0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2.7
#
# Copyright (c) 2013-2015 Arista Networks, Inc. All rights reserved
# Arista Networks, Inc. Confidential and Proprietary.
''' Class for interacting with an Arista Switch that supports DirectFlow
'''
import re
import time
import socket
import logging
import random
import config
from . impor... | 38.409972 | 88 | 0.581639 | 1,655 | 13,866 | 4.686405 | 0.224169 | 0.01444 | 0.003094 | 0.012378 | 0.091413 | 0.045771 | 0.01573 | 0.010315 | 0.010315 | 0 | 0 | 0.014838 | 0.319559 | 13,866 | 360 | 89 | 38.516667 | 0.807207 | 0.078465 | 0 | 0.068376 | 0 | 0.008547 | 0.15183 | 0.004919 | 0 | 0 | 0 | 0.002778 | 0 | 0 | null | null | 0.017094 | 0.042735 | null | null | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
416734f8c6bc910fd99c598697924708f5ce17d8 | 25,007 | py | Python | machines/views.py | mkschu/greensManagerDjango | 842f6cc0e5bc9fa5f36e5d996960900886d3370a | [
"Apache-2.0"
] | null | null | null | machines/views.py | mkschu/greensManagerDjango | 842f6cc0e5bc9fa5f36e5d996960900886d3370a | [
"Apache-2.0"
] | null | null | null | machines/views.py | mkschu/greensManagerDjango | 842f6cc0e5bc9fa5f36e5d996960900886d3370a | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render, redirect
from django.utils.timezone import now
from .models import (
Machine,
Mower,
GreensMower,
TeeMower,
FairwayMower,
RoughMower,
Roller,
Aerator,
Sprayer,
Cart,
TrapRake,
UtilVehicle,
Tractor,
FertSpreader,
HourReadin... | 26.976268 | 70 | 0.612748 | 2,719 | 25,007 | 5.495771 | 0.069879 | 0.054072 | 0.050191 | 0.063575 | 0.74463 | 0.703875 | 0.629325 | 0.571505 | 0.452319 | 0.419594 | 0 | 0.001795 | 0.264926 | 25,007 | 926 | 71 | 27.0054 | 0.81112 | 0 | 0 | 0.499261 | 0 | 0 | 0.119886 | 0.056424 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11226 | false | 0 | 0.007386 | 0.001477 | 0.237814 | 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 |
41759ee10427580b6462a3d48d3200a1e8ddc48e | 972 | py | Python | slotserver/slot_http_client.py | h-dub/slotserver | a4067fb4f756fd5bc7681b36a233647b367780dd | [
"MIT"
] | null | null | null | slotserver/slot_http_client.py | h-dub/slotserver | a4067fb4f756fd5bc7681b36a233647b367780dd | [
"MIT"
] | null | null | null | slotserver/slot_http_client.py | h-dub/slotserver | a4067fb4f756fd5bc7681b36a233647b367780dd | [
"MIT"
] | null | null | null | # Copyright (c) 2020 Hugh Wade
# SPDX-License-Identifier: MIT
import requests
class SlotConsumerClient():
'''
Client for slotserver's consumer http endpoint
'''
def __init__(self, base_address):
self.base_address = base_address
def consume(self, slot_ids: object, subslot_ids: object):
... | 30.375 | 72 | 0.592593 | 108 | 972 | 5.074074 | 0.37963 | 0.160584 | 0.164234 | 0.072993 | 0.313869 | 0.229927 | 0.229927 | 0.229927 | 0.229927 | 0.229927 | 0 | 0.0059 | 0.302469 | 972 | 31 | 73 | 31.354839 | 0.80236 | 0.156379 | 0 | 0.235294 | 0 | 0 | 0.071066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0 | 0.411765 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
417c31c5296f54d66c0c5dbfcfabdacf44169495 | 1,461 | py | Python | CPP2DLRTrace/__init__.py | KOLANICH-tools/CPP2DRLTrace.py | d03324689cdfb1824fb357d94cb33d3a6c70be6d | [
"Unlicense"
] | null | null | null | CPP2DLRTrace/__init__.py | KOLANICH-tools/CPP2DRLTrace.py | d03324689cdfb1824fb357d94cb33d3a6c70be6d | [
"Unlicense"
] | null | null | null | CPP2DLRTrace/__init__.py | KOLANICH-tools/CPP2DRLTrace.py | d03324689cdfb1824fb357d94cb33d3a6c70be6d | [
"Unlicense"
] | null | null | null | import pycparser
from pycparser import c_parser, c_ast, parse_file, preprocess_file
from pathlib import Path
class UnprocessibleFunc(Exception):
pass
class UnrecoverableArg(Exception):
pass
def CPP2DRLTace(srcFile, cpp_args):
#tf.write_text(preprocess_file(str(srcFile), cpp_args=cpp_args)
ast = parse_file(str... | 26.563636 | 120 | 0.701574 | 201 | 1,461 | 4.9801 | 0.373134 | 0.03996 | 0.116883 | 0.114885 | 0.163836 | 0.163836 | 0.075924 | 0.075924 | 0.075924 | 0 | 0 | 0.003273 | 0.163587 | 1,461 | 54 | 121 | 27.055556 | 0.815876 | 0.061602 | 0 | 0.153846 | 0 | 0 | 0.026297 | 0.018262 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.051282 | 0.076923 | 0 | 0.25641 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
417ed1b06f3a45a15297e7f940aaba1ac135bdfe | 3,204 | py | Python | pymks/fmks/tests/test_multiphase.py | auag92/pymks | 75fb016a6c6073f504f4d9db2767d705e1718d61 | [
"MIT"
] | 2 | 2015-03-26T14:23:48.000Z | 2018-10-18T20:46:45.000Z | pymks/fmks/tests/test_multiphase.py | wd15/pymks | 8ea501da3496885d7d365f124e3807d3ca87c600 | [
"MIT"
] | 2 | 2020-04-10T03:23:38.000Z | 2021-06-02T11:04:26.000Z | pymks/fmks/tests/test_multiphase.py | SvenPVoigt/pymks | 5c357e88025df5ea5421e59e30525783f79cee3e | [
"MIT"
] | 1 | 2015-06-05T17:35:54.000Z | 2015-06-05T17:35:54.000Z | """Test the multiphase microstructure generator
"""
import numpy as np
import pytest
import dask.array as da
from pymks.fmks.data.multiphase import generate_multiphase, np_generate
from pymks.datasets.microstructure_generator import MicrostructureGenerator
def test_chunking():
"""Test that the generated micro... | 25.03125 | 88 | 0.583333 | 453 | 3,204 | 3.99117 | 0.209713 | 0.064712 | 0.04646 | 0.04646 | 0.32854 | 0.313606 | 0.28042 | 0.258296 | 0.258296 | 0.165376 | 0 | 0.074839 | 0.274345 | 3,204 | 127 | 89 | 25.228346 | 0.702796 | 0.134831 | 0 | 0.219512 | 1 | 0 | 0.037848 | 0 | 0 | 0 | 0 | 0 | 0.109756 | 1 | 0.085366 | false | 0 | 0.060976 | 0 | 0.146341 | 0 | 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 |
418051cce90fe5dcf73e61c6072b7b6c88299057 | 2,091 | py | Python | Asap-3.8.4/Test/EMTleak.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | 1 | 2021-10-19T11:35:34.000Z | 2021-10-19T11:35:34.000Z | Asap-3.8.4/Test/EMTleak.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | null | null | null | Asap-3.8.4/Test/EMTleak.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | 3 | 2016-07-18T19:22:48.000Z | 2021-07-06T03:06:42.000Z | """Test for memory leaks in the EMT code."""
import asap3
from ase.lattice.compounds import L1_2
import numpy as np
steps = 30
msteps = 5
def makeatoms(causetrouble):
atoms = L1_2(size=(10,10,10), symbol=('Au', 'Cu'), latticeconstant=4.0)
r = atoms.get_positions()
r += np.random.normal(0.0, 0.0001, r.sha... | 35.440678 | 87 | 0.463415 | 206 | 2,091 | 4.65534 | 0.432039 | 0.045881 | 0.034411 | 0.039625 | 0.087591 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039096 | 0.449546 | 2,091 | 59 | 88 | 35.440678 | 0.794092 | 0.010521 | 0 | 0.083333 | 0 | 0 | 0.090864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.020833 | 0.0625 | null | null | 0.104167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4183ecb782aa5102c6b52ab2e120085588ee8e00 | 304 | py | Python | telethon/types/_custom/inputsizedfile.py | MrGam-oy/Telethon | acc512683c107f80d47ab0fdaac0d1ac9439d43c | [
"MIT"
] | 2 | 2022-01-17T13:08:34.000Z | 2022-01-20T05:33:43.000Z | telethon/types/_custom/inputsizedfile.py | MrGam-oy/Telethon | acc512683c107f80d47ab0fdaac0d1ac9439d43c | [
"MIT"
] | null | null | null | telethon/types/_custom/inputsizedfile.py | MrGam-oy/Telethon | acc512683c107f80d47ab0fdaac0d1ac9439d43c | [
"MIT"
] | null | null | null | from ... import _tl
class InputSizedFile(_tl.InputFile):
"""InputFile class with two extra parameters: md5 (digest) and size"""
def __init__(self, id_, parts, name, md5, size):
super().__init__(id_, parts, name, md5.hexdigest())
self.md5 = md5.digest()
self.size = size
| 30.4 | 74 | 0.641447 | 39 | 304 | 4.692308 | 0.564103 | 0.098361 | 0.120219 | 0.153005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021097 | 0.220395 | 304 | 9 | 75 | 33.777778 | 0.751055 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
41846c5ff5777a70926391658be14f31a4ee4ace | 5,074 | py | Python | profiles_api/views.py | Quzeem/profiles-rest-api | 9f01af2ca3896f92c54fa15e9da4aa38bdbeb29c | [
"MIT"
] | null | null | null | profiles_api/views.py | Quzeem/profiles-rest-api | 9f01af2ca3896f92c54fa15e9da4aa38bdbeb29c | [
"MIT"
] | null | null | null | profiles_api/views.py | Quzeem/profiles-rest-api | 9f01af2ca3896f92c54fa15e9da4aa38bdbeb29c | [
"MIT"
] | null | null | null | from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework import viewsets
from rest_framework.authentication import TokenAuthentication
from rest_framework.filters import SearchFilter
from rest_framework.authtoken.views import ObtainAuthT... | 38.732824 | 156 | 0.691565 | 573 | 5,074 | 6.033159 | 0.298429 | 0.052647 | 0.044258 | 0.034423 | 0.373734 | 0.3558 | 0.32803 | 0.32803 | 0.324559 | 0.324559 | 0 | 0.002982 | 0.206937 | 5,074 | 130 | 157 | 39.030769 | 0.856113 | 0.236106 | 0 | 0.293333 | 0 | 0 | 0.135422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.16 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4186eeb420516f363fbd2b14091355f409789ee8 | 1,058 | py | Python | queue.py | tylermenezes/GitDeploy | a118e2ea49afaac89c793e7d192a22f969ab6e6b | [
"Artistic-2.0"
] | 1 | 2021-04-21T00:27:06.000Z | 2021-04-21T00:27:06.000Z | queue.py | tylermenezes/GitDeploy | a118e2ea49afaac89c793e7d192a22f969ab6e6b | [
"Artistic-2.0"
] | null | null | null | queue.py | tylermenezes/GitDeploy | a118e2ea49afaac89c793e7d192a22f969ab6e6b | [
"Artistic-2.0"
] | null | null | null | import MySQLdb
import sys
import server
import time
from deploy_worker import deploy_worker
con = None
try:
conn = MySQLdb.connect( host="localhost", db="gitdeploy", user="gitdeploy", passwd="xxx" )
cursor = conn.cursor( MySQLdb.cursors.DictCursor )
cursor.connection.autocommit(True)
while 1:
tim... | 33.0625 | 189 | 0.672023 | 139 | 1,058 | 4.985612 | 0.489209 | 0.116883 | 0.054834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005624 | 0.159735 | 1,058 | 31 | 190 | 34.129032 | 0.773903 | 0 | 0 | 0 | 0 | 0.043478 | 0.341772 | 0.046738 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.043478 | 0.217391 | 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 |
4188b676d380ceb0d1abfcf4b00469e515e48407 | 289 | py | Python | examples/starlette/static.py | Asphalt-framework/asphalt-web | 8816ff78b486585d19862d593b0e1b622b3a0b15 | [
"Apache-2.0"
] | null | null | null | examples/starlette/static.py | Asphalt-framework/asphalt-web | 8816ff78b486585d19862d593b0e1b622b3a0b15 | [
"Apache-2.0"
] | null | null | null | examples/starlette/static.py | Asphalt-framework/asphalt-web | 8816ff78b486585d19862d593b0e1b622b3a0b15 | [
"Apache-2.0"
] | null | null | null | from starlette.applications import Starlette
from starlette.requests import Request
from starlette.responses import PlainTextResponse, Response
application = Starlette()
@application.route("/")
async def root(request: Request) -> Response:
return PlainTextResponse("Hello, world!")
| 26.272727 | 59 | 0.795848 | 30 | 289 | 7.666667 | 0.566667 | 0.169565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114187 | 289 | 10 | 60 | 28.9 | 0.898438 | 0 | 0 | 0 | 0 | 0 | 0.048443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
418a4690d6b654afc3639b671cdf019558f27e7e | 5,264 | py | Python | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/FCELPRequest_template.py | Vibaswan/ixnetwork_restpy | 239fedc7050890746cbabd71ea1e91c68d9e5cad | [
"MIT"
] | null | null | null | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/FCELPRequest_template.py | Vibaswan/ixnetwork_restpy | 239fedc7050890746cbabd71ea1e91c68d9e5cad | [
"MIT"
] | null | null | null | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/FCELPRequest_template.py | Vibaswan/ixnetwork_restpy | 239fedc7050890746cbabd71ea1e91c68d9e5cad | [
"MIT"
] | null | null | null | from ixnetwork_restpy.base import Base
from ixnetwork_restpy.files import Files
class FC_ELP_Request(Base):
__slots__ = ()
_SDM_NAME = 'FCELPRequest'
_SDM_ATT_MAP = {
'FC Header': 'fcELPRequest.header.fcHeader',
'FC Command': 'fcELPRequest.header.fcCmd',
'Reserved1': 'fcELPRequest.... | 42.451613 | 119 | 0.733093 | 613 | 5,264 | 5.970636 | 0.122349 | 0.071038 | 0.103825 | 0.067486 | 0.641257 | 0.580874 | 0.528689 | 0.528689 | 0.528689 | 0.528689 | 0 | 0.004621 | 0.177812 | 5,264 | 123 | 120 | 42.796748 | 0.841035 | 0 | 0 | 0.356436 | 0 | 0 | 0.243731 | 0.117211 | 0 | 0 | 0 | 0 | 0 | 1 | 0.19802 | false | 0 | 0.19802 | 0.009901 | 0.623762 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
418c8e41cfdd9e31bf031c5887e65947b624438c | 473 | py | Python | Source/main.py | Tejasteju/Sudoku-Solver | d00e158d9ce7cb07c7059421bd471990352fdaf5 | [
"MIT"
] | 2 | 2020-10-06T20:07:17.000Z | 2021-08-13T14:15:00.000Z | Source/main.py | Tejasteju/Sudoku-Solver | d00e158d9ce7cb07c7059421bd471990352fdaf5 | [
"MIT"
] | null | null | null | Source/main.py | Tejasteju/Sudoku-Solver | d00e158d9ce7cb07c7059421bd471990352fdaf5 | [
"MIT"
] | null | null | null | import os
# path = os.getcwd()
# os.chdir(os.path.join(path,"Source"))
from grid_parser import get_cells
from Solver import display, solve
from number_predict import predict
def start_solve():
get_cells("sudoku.jpg")
predicted_str = predict("temp_dir_for_cell/square")
predicted_str = "003042090090060500500000010001... | 22.52381 | 100 | 0.79704 | 58 | 473 | 6.137931 | 0.568966 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191038 | 0.103594 | 473 | 20 | 101 | 23.65 | 0.648585 | 0.118393 | 0 | 0 | 0 | 0 | 0.297101 | 0.253623 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
418f34d0d0dde07f3c72ab7125dfb07a259f6354 | 2,914 | py | Python | docs/conf.py | ChronicallySerious/Rootex | bf2a0997b6aa5be84dbfc0e7826c31ff693ca0f1 | [
"MIT"
] | 166 | 2019-06-19T19:51:45.000Z | 2022-03-24T13:03:29.000Z | docs/conf.py | rahil627/Rootex | 44f827d469bddc7167b34dedf80d7a8b984fdf20 | [
"MIT"
] | 312 | 2019-06-13T19:39:25.000Z | 2022-03-02T18:37:22.000Z | docs/conf.py | rahil627/Rootex | 44f827d469bddc7167b34dedf80d7a8b984fdf20 | [
"MIT"
] | 23 | 2019-10-04T11:02:21.000Z | 2021-12-24T16:34:52.000Z | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | 29.14 | 79 | 0.63418 | 322 | 2,914 | 5.611801 | 0.552795 | 0.026563 | 0.021029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002488 | 0.172272 | 2,914 | 99 | 80 | 29.434343 | 0.746683 | 0.510295 | 0 | 0 | 0 | 0 | 0.400143 | 0.110952 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0 | false | 0 | 0.039216 | 0 | 0.039216 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
4190031a5723fa16e977010776fbb7f243180dcd | 333 | py | Python | champ/urls.py | broadsinatlanta/champ_django | c507d93bf5d9ea3d33286a93501827e5e8476c6a | [
"MIT"
] | null | null | null | champ/urls.py | broadsinatlanta/champ_django | c507d93bf5d9ea3d33286a93501827e5e8476c6a | [
"MIT"
] | 8 | 2020-02-12T00:13:33.000Z | 2022-02-10T07:52:24.000Z | champ/urls.py | broadsinatlanta/champ_django | c507d93bf5d9ea3d33286a93501827e5e8476c6a | [
"MIT"
] | null | null | null | from django.urls import path, include
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
path('', include('home.urls')),
path('workouts/', include('workouts.urls')),
path('api/', include('workouts.api.urls')),
] + static(settings.STATIC_URL, document_root=settings.... | 30.272727 | 67 | 0.723724 | 43 | 333 | 5.534884 | 0.372093 | 0.12605 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12012 | 333 | 10 | 68 | 33.3 | 0.812287 | 0 | 0 | 0 | 0 | 0 | 0.156156 | 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 |
41a4c09dc3cceda57b35ccf373ed5afa9e6e5b22 | 4,982 | py | Python | align_seqs.py | iskandr/mhcpred | 71f082d94bbde9616ab31f0e70e7076240690163 | [
"Apache-2.0"
] | 1 | 2016-03-16T09:24:56.000Z | 2016-03-16T09:24:56.000Z | align_seqs.py | iskandr/mhcpred | 71f082d94bbde9616ab31f0e70e7076240690163 | [
"Apache-2.0"
] | null | null | null | align_seqs.py | iskandr/mhcpred | 71f082d94bbde9616ab31f0e70e7076240690163 | [
"Apache-2.0"
] | null | null | null | import sys
import argparse
import collections
from itertools import izip
from parsing import parse_fasta_mhc_dirs
import numpy as np
from pepdata import amino_acid
parser = argparse.ArgumentParser(
description='Align MHC sequences')
parser.add_argument(
"dir",
help="Directory which contains MHC sequence... | 30.564417 | 79 | 0.566841 | 610 | 4,982 | 4.483607 | 0.295082 | 0.039488 | 0.037294 | 0.036563 | 0.078245 | 0.05192 | 0.05192 | 0.05192 | 0.05192 | 0 | 0 | 0.006924 | 0.3332 | 4,982 | 163 | 80 | 30.564417 | 0.816376 | 0.05821 | 0 | 0.136364 | 0 | 0 | 0.103523 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0 | null | null | 0 | 0.05303 | null | null | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
41a65532d5a6a2ff4f45cf35e7c8a5a3c32bc543 | 5,641 | py | Python | paxes_nova/virt/ibmpowervm/common/exception.py | windskyer/k_nova | 63579dbfcfcda5def5b588a6728bfff85ad4564e | [
"Apache-2.0"
] | null | null | null | paxes_nova/virt/ibmpowervm/common/exception.py | windskyer/k_nova | 63579dbfcfcda5def5b588a6728bfff85ad4564e | [
"Apache-2.0"
] | null | null | null | paxes_nova/virt/ibmpowervm/common/exception.py | windskyer/k_nova | 63579dbfcfcda5def5b588a6728bfff85ad4564e | [
"Apache-2.0"
] | null | null | null | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# =================================================================
# =================================================================
from nova import exception
from paxes_nova import _
class IBMPowerVMMigrationFailed(exception.NovaException):
msg_fmt = _("The migr... | 38.114865 | 76 | 0.684808 | 566 | 5,641 | 6.655477 | 0.30742 | 0.041412 | 0.112822 | 0.126361 | 0.367667 | 0.204407 | 0.149456 | 0.106982 | 0.086806 | 0.043005 | 0 | 0.001111 | 0.201915 | 5,641 | 147 | 77 | 38.37415 | 0.835629 | 0.030668 | 0 | 0.023256 | 0 | 0 | 0.438873 | 0.003843 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011628 | false | 0 | 0.023256 | 0 | 0.651163 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
41a92ac93fc7f75dea50f26abb2e27733cc27883 | 1,933 | py | Python | src/recall/plugins/news/test_cache.py | shenshaoyong/recommender-system-dev-workshop-code | ce422627181472ad513f473b65bf42410c46304a | [
"Apache-2.0"
] | 10 | 2021-07-14T09:14:47.000Z | 2022-01-24T09:21:41.000Z | src/recall/plugins/news/test_cache.py | shenshaoyong/recommender-system-dev-workshop-code | ce422627181472ad513f473b65bf42410c46304a | [
"Apache-2.0"
] | null | null | null | src/recall/plugins/news/test_cache.py | shenshaoyong/recommender-system-dev-workshop-code | ce422627181472ad513f473b65bf42410c46304a | [
"Apache-2.0"
] | 92 | 2021-06-18T05:13:53.000Z | 2022-01-25T08:15:49.000Z | import client
import pickle
import logging
import os
import json
logging.basicConfig(level=logging.DEBUG)
rCache = client.RedisCache(host='localhost', port=6379)
test_data = {
'name': 'test_data',
'data': [
{
'key': 'key1',
'value': 'value1'
},
{
'key... | 31.177419 | 102 | 0.655458 | 280 | 1,933 | 4.196429 | 0.242857 | 0.081702 | 0.122553 | 0.108936 | 0.595745 | 0.449362 | 0.449362 | 0.321702 | 0.27234 | 0.158298 | 0 | 0.014013 | 0.187791 | 1,933 | 62 | 103 | 31.177419 | 0.734395 | 0.029488 | 0 | 0 | 0 | 0 | 0.310401 | 0.028169 | 0 | 0 | 0 | 0 | 0.130435 | 1 | 0.043478 | false | 0.065217 | 0.108696 | 0 | 0.152174 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
41a9c0172142d5400158ecb1fcf96b1186fadaef | 796 | py | Python | Dataset/Leetcode/valid/26/178.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/26/178.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/26/178.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, nums: List[int]) -> int:
# 直接pop法
# if len(nums)<=1: return len(nums)
# curr = nums[0]
# idx = 1
# while idx < len(nums):
# # print(nums[idx], curr)
# if nums[idx] != curr:
# curr = nums[idx]
# ... | 26.533333 | 44 | 0.38191 | 86 | 796 | 3.534884 | 0.27907 | 0.184211 | 0.128289 | 0.065789 | 0.302632 | 0.302632 | 0.151316 | 0 | 0 | 0 | 0 | 0.027228 | 0.492462 | 796 | 29 | 45 | 27.448276 | 0.725248 | 0.339196 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
41aa1bf793389fb4b1b119bca22dc4d69580f2c1 | 3,422 | py | Python | tests/flytekit/unit/models/test_matchable_resource.py | slai/flytekit | 9d73d096b748d263a638e6865d15db4880845305 | [
"Apache-2.0"
] | 1 | 2021-11-11T10:10:10.000Z | 2021-11-11T10:10:10.000Z | tests/flytekit/unit/models/test_matchable_resource.py | slai/flytekit | 9d73d096b748d263a638e6865d15db4880845305 | [
"Apache-2.0"
] | 2 | 2021-06-26T04:32:43.000Z | 2021-07-14T04:47:52.000Z | tests/flytekit/unit/models/test_matchable_resource.py | slai/flytekit | 9d73d096b748d263a638e6865d15db4880845305 | [
"Apache-2.0"
] | null | null | null | from flytekit.models import matchable_resource
def test_cluster_resource_attributes():
obj = matchable_resource.ClusterResourceAttributes({"cpu": "one million", "gpu": "just one"})
assert obj.attributes == {"cpu": "one million", "gpu": "just one"}
assert obj == matchable_resource.ClusterResourceAttributes... | 49.594203 | 116 | 0.778784 | 371 | 3,422 | 6.795148 | 0.12938 | 0.202301 | 0.103134 | 0.06188 | 0.752876 | 0.617215 | 0.521618 | 0.488298 | 0.349861 | 0.235621 | 0 | 0.002672 | 0.125073 | 3,422 | 68 | 117 | 50.323529 | 0.839345 | 0 | 0 | 0.09434 | 0 | 0 | 0.070134 | 0 | 0 | 0 | 0 | 0 | 0.377358 | 1 | 0.113208 | false | 0 | 0.018868 | 0 | 0.132075 | 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 |
41af713dae10f784aac508516b96c4f0b97c88f9 | 1,833 | py | Python | tests/test_functional.py | kalvin-osoro/flask-registration | 0ef910b611db87c3aaa6c707da372a4a49fdcf96 | [
"MIT"
] | 93 | 2015-01-01T18:07:22.000Z | 2022-03-17T12:11:44.000Z | tests/test_functional.py | Pasha999/flask-basic-registration | e445899092103d8e9a2a5e03eb62a076bb56c4a6 | [
"MIT"
] | 6 | 2021-02-26T14:33:34.000Z | 2022-03-21T00:00:41.000Z | tests/test_functional.py | Pasha999/flask-basic-registration | e445899092103d8e9a2a5e03eb62a076bb56c4a6 | [
"MIT"
] | 63 | 2015-01-02T05:32:34.000Z | 2022-03-23T03:49:57.000Z | # tests/test_functional.py
import unittest
from flask_login import current_user
from project.util import BaseTestCase
class TestPublic(BaseTestCase):
def test_main_route_requires_login(self):
# Ensure main route requres logged in user.
response = self.client.get('/', follow_redirects=True)
... | 33.327273 | 74 | 0.644299 | 214 | 1,833 | 5.341122 | 0.331776 | 0.061242 | 0.083115 | 0.08049 | 0.497813 | 0.448819 | 0.376203 | 0.376203 | 0.376203 | 0.315836 | 0 | 0.004418 | 0.259138 | 1,833 | 54 | 75 | 33.944444 | 0.837261 | 0.120567 | 0 | 0.4 | 0 | 0 | 0.110834 | 0 | 0 | 0 | 0 | 0 | 0.257143 | 1 | 0.114286 | false | 0.057143 | 0.085714 | 0 | 0.257143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
41b212d21dc406f399a57e31677c98694ff48150 | 451 | py | Python | vaccinate/core/migrations/0126_sourcelocation_source_loca_matched_d1b866_idx.py | MoralCode/vial | cdaaab053a9cf1cef40104a2cdf480b7932d58f7 | [
"MIT"
] | 7 | 2021-06-28T17:33:47.000Z | 2022-02-12T21:54:59.000Z | vaccinate/core/migrations/0126_sourcelocation_source_loca_matched_d1b866_idx.py | MoralCode/vial | cdaaab053a9cf1cef40104a2cdf480b7932d58f7 | [
"MIT"
] | 104 | 2021-06-17T21:25:30.000Z | 2022-03-28T14:21:57.000Z | vaccinate/core/migrations/0126_sourcelocation_source_loca_matched_d1b866_idx.py | MoralCode/vial | cdaaab053a9cf1cef40104a2cdf480b7932d58f7 | [
"MIT"
] | 1 | 2021-06-25T17:52:23.000Z | 2021-06-25T17:52:23.000Z | # Generated by Django 3.2.2 on 2021-05-10 01:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("core", "0125_alter_callrequest_created_at"),
]
operations = [
migrations.AddIndex(
model_name="sourcelocation",
inde... | 22.55 | 82 | 0.607539 | 47 | 451 | 5.617021 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.286031 | 451 | 19 | 83 | 23.736842 | 0.748447 | 0.099778 | 0 | 0.153846 | 1 | 0 | 0.240099 | 0.155941 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
41bbd7d4f079506864fd4e9345a860b06d4572f5 | 5,383 | py | Python | owl/apps/mnist/mnist_cnn.py | jjzhang166/minerva | 7d21ed2bdca3de9fbb6e5e2e277fd9956b81a04f | [
"Apache-2.0"
] | 561 | 2015-04-05T02:50:00.000Z | 2022-03-04T09:05:16.000Z | owl/apps/mnist/mnist_cnn.py | jjzhang166/minerva | 7d21ed2bdca3de9fbb6e5e2e277fd9956b81a04f | [
"Apache-2.0"
] | 35 | 2015-04-05T12:46:45.000Z | 2016-06-14T00:58:17.000Z | owl/apps/mnist/mnist_cnn.py | jjzhang166/minerva | 7d21ed2bdca3de9fbb6e5e2e277fd9956b81a04f | [
"Apache-2.0"
] | 161 | 2015-04-15T05:47:34.000Z | 2022-01-25T16:01:20.000Z | import sys
import time
import argparse
import numpy as np
import mnist_io
import owl
import owl.elewise as ele
import owl.conv as conv
lazy_cycle = 4
class MNISTCNNModel:
def __init__(self):
self.convs = [
conv.Convolver(0, 0, 1, 1),
conv.Convolver(2, 2, 1, 1),
];
s... | 39.580882 | 165 | 0.586662 | 794 | 5,383 | 3.836272 | 0.207809 | 0.043336 | 0.021339 | 0.00394 | 0.173999 | 0.105056 | 0.071569 | 0.056468 | 0.041366 | 0.020355 | 0 | 0.049679 | 0.248375 | 5,383 | 135 | 166 | 39.874074 | 0.703164 | 0.003158 | 0 | 0.1 | 0 | 0 | 0.024986 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0 | null | null | 0 | 0.066667 | null | null | 0.058333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
41bd4beefcacc8752af876126becea9e07b0c4a6 | 402 | py | Python | mayan/apps/documents/tests/test_copying.py | nattangwiwat/Mayan-EDMS-recitation | fcf16afb56eae812fb99144d65ae1ae6749de0b7 | [
"Apache-2.0"
] | 343 | 2015-01-05T14:19:35.000Z | 2018-12-10T19:07:48.000Z | mayan/apps/documents/tests/test_copying.py | nattangwiwat/Mayan-EDMS-recitation | fcf16afb56eae812fb99144d65ae1ae6749de0b7 | [
"Apache-2.0"
] | 191 | 2015-01-03T00:48:19.000Z | 2018-11-30T09:10:25.000Z | mayan/apps/documents/tests/test_copying.py | nattangwiwat/Mayan-EDMS-recitation | fcf16afb56eae812fb99144d65ae1ae6749de0b7 | [
"Apache-2.0"
] | 257 | 2019-05-14T10:26:37.000Z | 2022-03-30T03:37:36.000Z | from mayan.apps.common.tests.mixins import ObjectCopyTestMixin
from mayan.apps.testing.tests.base import BaseTestCase
from .mixins.document_mixins import DocumentTestMixin
class DocumentTypeCopyTestCase(
DocumentTestMixin, ObjectCopyTestMixin, BaseTestCase
):
auto_upload_test_document = False
def setUp(... | 26.8 | 62 | 0.78607 | 44 | 402 | 7.022727 | 0.568182 | 0.058252 | 0.084142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146766 | 402 | 14 | 63 | 28.714286 | 0.900875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 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 |
41bd83e0d7b77ef42747716254a98ef127e4b518 | 11,268 | py | Python | dags/landsat_scenes_sync/landsat_scenes_gap_report.py | digitalearthafrica/deafrica-airflow | 2993495671dbf3a6f2dd08dd23c44adcee330493 | [
"Apache-2.0"
] | 1 | 2020-12-08T21:38:02.000Z | 2020-12-08T21:38:02.000Z | dags/landsat_scenes_sync/landsat_scenes_gap_report.py | digitalearthafrica/deafrica-airflow | 2993495671dbf3a6f2dd08dd23c44adcee330493 | [
"Apache-2.0"
] | 31 | 2020-06-01T22:55:43.000Z | 2021-08-18T01:03:39.000Z | dags/landsat_scenes_sync/landsat_scenes_gap_report.py | digitalearthafrica/deafrica-airflow | 2993495671dbf3a6f2dd08dd23c44adcee330493 | [
"Apache-2.0"
] | 2 | 2020-06-01T23:28:37.000Z | 2021-02-26T05:44:52.000Z | """
# Generate a gap report between deafrica-landsat-dev and usgs-landsat buckets
This DAG runs weekly and creates a gap report in the folowing location:
s3://deafrica-landsat-dev/<date>/status-report
#### Utility utilization
The DAG can be parameterized with run time configurations `update_stac`.
* The option updat... | 32.566474 | 106 | 0.641196 | 1,425 | 11,268 | 4.81193 | 0.225965 | 0.036897 | 0.026251 | 0.021438 | 0.16392 | 0.114773 | 0.089544 | 0.06271 | 0.043168 | 0.043168 | 0 | 0.01222 | 0.266507 | 11,268 | 345 | 107 | 32.66087 | 0.817423 | 0.139954 | 0 | 0.088235 | 1 | 0 | 0.237364 | 0.100042 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02521 | false | 0 | 0.071429 | 0 | 0.113445 | 0.004202 | 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 |
68b97fda4bcdfca65ca7e8138c8edbe07ab0b179 | 718 | py | Python | kosarajus_algorithm/kosarajus.py | ChiragKr/python-algorithms | 93b36ad689c3b4432897c960ceb81ba3d365a225 | [
"MIT"
] | null | null | null | kosarajus_algorithm/kosarajus.py | ChiragKr/python-algorithms | 93b36ad689c3b4432897c960ceb81ba3d365a225 | [
"MIT"
] | null | null | null | kosarajus_algorithm/kosarajus.py | ChiragKr/python-algorithms | 93b36ad689c3b4432897c960ceb81ba3d365a225 | [
"MIT"
] | null | null | null | def dfsUtil(G, visited, travel, s):
if(visited[s]):
return
visited[s] = True
for u in G[s]:
if(not visited[u]):
dfsUtil(G, visited, travel, u)
travel.append(s)
def dfs(G, s=1):
visited = {k: False for k in G.nodes}
travel = []
for u in G.nodes:
if(not vi... | 23.16129 | 45 | 0.544568 | 100 | 718 | 3.91 | 0.26 | 0.030691 | 0.11509 | 0.161125 | 0.306905 | 0.306905 | 0.306905 | 0.306905 | 0.179028 | 0 | 0 | 0.002066 | 0.325905 | 718 | 30 | 46 | 23.933333 | 0.805785 | 0 | 0 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0 | 0 | 0.230769 | 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 |
68c206d9f0db3600cf74d9b508a256e19ad4d7ac | 18,657 | py | Python | dht22v2.py | WDavidX/pipy | b91f0d94fbbbdef68aa1c6b8a4bbdb97c8d4a4bf | [
"MIT"
] | null | null | null | dht22v2.py | WDavidX/pipy | b91f0d94fbbbdef68aa1c6b8a4bbdb97c8d4a4bf | [
"MIT"
] | null | null | null | dht22v2.py | WDavidX/pipy | b91f0d94fbbbdef68aa1c6b8a4bbdb97c8d4a4bf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# 2014-07-11 DHT22.py
import time
import atexit
import pigpio
import smbus
import subprocess
import os
import signal
import RPi.GPIO as GPIO
import psutil
import urllib2
import json
import socket
class i2c_device:
def __init__(self, addr, port=1):
self.addr = addr
self.bus =... | 32.167241 | 124 | 0.56992 | 2,460 | 18,657 | 4.191463 | 0.199187 | 0.020367 | 0.019785 | 0.022403 | 0.237901 | 0.175929 | 0.136068 | 0.114538 | 0.106488 | 0.072156 | 0 | 0.041913 | 0.319666 | 18,657 | 579 | 125 | 32.222798 | 0.770425 | 0.080506 | 0 | 0.197995 | 0 | 0.002506 | 0.053115 | 0.002167 | 0 | 0 | 0.010768 | 0 | 0 | 0 | null | null | 0.007519 | 0.030075 | null | null | 0.030075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
68cde8ed9c76713011e2be9d189687fee887b27d | 1,307 | py | Python | news/admin.py | ezequiellagos/UniNews | d0dc8d9f1e34165da972dd3fd88cf39bbcaaf1f8 | [
"MIT"
] | null | null | null | news/admin.py | ezequiellagos/UniNews | d0dc8d9f1e34165da972dd3fd88cf39bbcaaf1f8 | [
"MIT"
] | 2 | 2017-07-17T20:13:39.000Z | 2017-07-17T20:19:30.000Z | news/admin.py | ezequiellagos/UniNews | d0dc8d9f1e34165da972dd3fd88cf39bbcaaf1f8 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Noticia, Universidad, Region
# Register your models here.
class UniversidadAdmin(admin.ModelAdmin):
readonly_fields = ('created', 'updated', 'id_universidad')
list_display = ('id_universidad', 'nombre', 'alias', 'region')
list_filter = ('region',)
class... | 43.566667 | 84 | 0.7215 | 144 | 1,307 | 6.270833 | 0.347222 | 0.100775 | 0.076412 | 0.096346 | 0.149502 | 0.149502 | 0.149502 | 0 | 0 | 0 | 0 | 0 | 0.132364 | 1,307 | 30 | 85 | 43.566667 | 0.796296 | 0.019893 | 0 | 0 | 0 | 0 | 0.300781 | 0.05 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.083333 | 0.041667 | 0.791667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
68cf252bb8e9e33527e82df3af47bc9e68de7a8e | 586 | py | Python | s3/list_bucket.py | AidanMcComb/ral-ceph-tools | 30438c1cf9963e5ba081892efdce805b1a0c2a77 | [
"Apache-2.0"
] | 4 | 2019-05-20T13:28:04.000Z | 2020-05-29T22:56:47.000Z | s3/list_bucket.py | AidanMcComb/ral-ceph-tools | 30438c1cf9963e5ba081892efdce805b1a0c2a77 | [
"Apache-2.0"
] | 6 | 2016-12-02T15:01:52.000Z | 2021-07-30T09:19:30.000Z | s3/list_bucket.py | AidanMcComb/ral-ceph-tools | 30438c1cf9963e5ba081892efdce805b1a0c2a77 | [
"Apache-2.0"
] | 7 | 2016-09-08T12:33:05.000Z | 2021-07-30T08:17:41.000Z | #!/usr/bin/env python
import boto
import boto.s3.connection
from cred import *
conn = boto.connect_s3(
aws_access_key_id = S3_ACCESS_KEY,
aws_secret_access_key = S3_SECRET_KEY,
host = 'ceph-gw4.gridpp.rl.ac.uk',
port = 443,
is_secure=True, # uncomment if you are n... | 29.3 | 74 | 0.610922 | 75 | 586 | 4.56 | 0.68 | 0.078947 | 0.093567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021687 | 0.291809 | 586 | 19 | 75 | 30.842105 | 0.80241 | 0.093857 | 0 | 0 | 0 | 0 | 0.077505 | 0.045369 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68d06193a92198dcd187e874b01590fe9db3fe9d | 1,841 | py | Python | src/python/tensorflow_cloud/utils/tf_utils.py | haifeng-jin/cloud | 78f4ebe1273dbd71bba8794b553caffee0a73f47 | [
"Apache-2.0"
] | 342 | 2020-02-10T18:55:31.000Z | 2022-03-01T04:30:12.000Z | src/python/tensorflow_cloud/utils/tf_utils.py | haifeng-jin/cloud | 78f4ebe1273dbd71bba8794b553caffee0a73f47 | [
"Apache-2.0"
] | 179 | 2020-02-14T22:35:42.000Z | 2022-01-22T23:06:23.000Z | src/python/tensorflow_cloud/utils/tf_utils.py | haifeng-jin/cloud | 78f4ebe1273dbd71bba8794b553caffee0a73f47 | [
"Apache-2.0"
] | 140 | 2020-02-10T19:11:50.000Z | 2022-02-23T13:04:44.000Z | # Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 35.403846 | 80 | 0.747963 | 246 | 1,841 | 5.49187 | 0.487805 | 0.044412 | 0.048853 | 0.059956 | 0.095485 | 0.095485 | 0 | 0 | 0 | 0 | 0 | 0.005398 | 0.195003 | 1,841 | 51 | 81 | 36.098039 | 0.906208 | 0.583379 | 0 | 0 | 0 | 0 | 0.038627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.277778 | 0.055556 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
68d27b7b509316eed52ce0b36eef939cde7e3700 | 2,603 | py | Python | __init__.py | concongo/py-mrr-api-v2 | 314cc1cb58ee5e17d7aefcfed068c7141c186190 | [
"MIT"
] | null | null | null | __init__.py | concongo/py-mrr-api-v2 | 314cc1cb58ee5e17d7aefcfed068c7141c186190 | [
"MIT"
] | null | null | null | __init__.py | concongo/py-mrr-api-v2 | 314cc1cb58ee5e17d7aefcfed068c7141c186190 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import hmac
import hashlib
import time
import urllib
import urllib2
import json
import sys
from pprint import pprint
__author__ = 'concongo'
__version__ = '0.1.0'
class mrr_api:
__api_key = ''
__api_secret = ''
__nonce_v = ''
__api_base = 'https://www.miningrigrentals.com/api/... | 32.5375 | 110 | 0.595851 | 320 | 2,603 | 4.575 | 0.346875 | 0.06694 | 0.045082 | 0.057377 | 0.189208 | 0.174863 | 0.15847 | 0.11612 | 0.06694 | 0.06694 | 0 | 0.010543 | 0.271226 | 2,603 | 80 | 111 | 32.5375 | 0.761202 | 0.097964 | 0 | 0 | 0 | 0 | 0.119435 | 0.00899 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186441 | false | 0 | 0.135593 | 0.084746 | 0.559322 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
68d431a0b9beb977a501ac98c63afa378a12dcff | 599 | py | Python | 2017-11/2017-11-10.py | shangpf1/python_study | 6730519ce7b5cf4612e1c778ae5876cfbb748a4f | [
"MIT"
] | null | null | null | 2017-11/2017-11-10.py | shangpf1/python_study | 6730519ce7b5cf4612e1c778ae5876cfbb748a4f | [
"MIT"
] | null | null | null | 2017-11/2017-11-10.py | shangpf1/python_study | 6730519ce7b5cf4612e1c778ae5876cfbb748a4f | [
"MIT"
] | null | null | null | '''
python 字符串的操作
'''
name = 'liGang'
address = 'china'
# 3种不同的打印方式
print(name,address)
print(name+" "+address)
print('my name is %s,I live in %s'%(name,address))
print("圆周率PI的值:%f"%3.14) # 默认一般是八位
print("圆周率PI的值:%.2f"%3.14159) # 小数点后2位
print("圆周率PI的值:%12f"%3.14) # 字符宽度为12,剩余4个空格
print("圆周率PI的值:%*f"%(1... | 23.96 | 58 | 0.614357 | 72 | 599 | 5.111111 | 0.527778 | 0.122283 | 0.130435 | 0.11413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059197 | 0.210351 | 599 | 25 | 59 | 23.96 | 0.718816 | 0.263773 | 0 | 0 | 0 | 0 | 0.195294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.857143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
68d6a1470975fdf873f95fd7e9bfc14367b53080 | 637 | py | Python | pepdb/core/migrations/0068_person2person_declaration.py | dchaplinsky/pep.org.ua | 8633a65fb657d7f04dbdb12eb8ae705fa6be67e3 | [
"MIT"
] | 7 | 2015-12-21T03:52:46.000Z | 2020-07-24T19:17:23.000Z | pepdb/core/migrations/0068_person2person_declaration.py | dchaplinsky/pep.org.ua | 8633a65fb657d7f04dbdb12eb8ae705fa6be67e3 | [
"MIT"
] | 12 | 2016-03-05T18:11:05.000Z | 2021-06-17T20:20:03.000Z | pepdb/core/migrations/0068_person2person_declaration.py | dchaplinsky/pep.org.ua | 8633a65fb657d7f04dbdb12eb8ae705fa6be67e3 | [
"MIT"
] | 4 | 2016-07-17T20:19:38.000Z | 2021-03-23T12:47:20.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0067_auto_20151229_1542'),
]
operations = [
migrations.AddField(
model_name='person2person',
... | 31.85 | 278 | 0.675039 | 73 | 637 | 5.753425 | 0.712329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242775 | 0.185243 | 637 | 19 | 279 | 33.526316 | 0.566474 | 0.032967 | 0 | 0 | 0 | 0.076923 | 0.400651 | 0.30456 | 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 | 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 |
68dd3b2c9969fb2231cdbde82740451079b4d57f | 5,390 | py | Python | reimburse.py | jbharrell92/savedogemas | d7cb0c43c9dcb20e0aef9c820eaae61fa69cff40 | [
"MIT"
] | null | null | null | reimburse.py | jbharrell92/savedogemas | d7cb0c43c9dcb20e0aef9c820eaae61fa69cff40 | [
"MIT"
] | null | null | null | reimburse.py | jbharrell92/savedogemas | d7cb0c43c9dcb20e0aef9c820eaae61fa69cff40 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
The MIT License (MIT)
Copyright (c) 2013 Jon Harrell
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, cop... | 39.057971 | 136 | 0.747681 | 800 | 5,390 | 4.98375 | 0.4025 | 0.022072 | 0.028593 | 0.008528 | 0.023075 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009205 | 0.173655 | 5,390 | 138 | 137 | 39.057971 | 0.885945 | 0.162709 | 0 | 0.16129 | 0 | 0 | 0.314491 | 0.048901 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.048387 | 0.032258 | null | null | 0.290323 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
68ddc459878e302f54f451b37c81c7e1377a36d9 | 5,797 | py | Python | summarize_perfection.py | tommccoy1/copynet | 6bc6f3a81a4922d06bdd9e86dcd7125251282076 | [
"MIT"
] | null | null | null | summarize_perfection.py | tommccoy1/copynet | 6bc6f3a81a4922d06bdd9e86dcd7125251282076 | [
"MIT"
] | null | null | null | summarize_perfection.py | tommccoy1/copynet | 6bc6f3a81a4922d06bdd9e86dcd7125251282076 | [
"MIT"
] | null | null | null | import sys
import os
all_architectures_0dev = {}
all_architectures_1dev = {}
all_architectures_2dev = {}
all_architectures_3dev = {}
all_architectures_4dev = {}
all_architectures_5dev = {}
all_architectures_6dev = {}
all_architectures_correct = {}
all_architectures_insertion = {}
all_architectures_deletion = {}
all_a... | 41.705036 | 254 | 0.673107 | 638 | 5,797 | 5.815047 | 0.134796 | 0.263073 | 0.076819 | 0.075202 | 0.546092 | 0.498652 | 0.37655 | 0.37655 | 0.196226 | 0.196226 | 0 | 0.029552 | 0.206141 | 5,797 | 138 | 255 | 42.007246 | 0.776619 | 0 | 0 | 0.067308 | 0 | 0 | 0.079579 | 0.036423 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009615 | false | 0 | 0.019231 | 0 | 0.048077 | 0.115385 | 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 |
68ddc95bb8d2ede53d83cec72f9a13821634313f | 1,240 | py | Python | tests/test_needextend.py | David-Le-Nir/sphinxcontrib-needs | fe809445505fa1e9bf5963eab1d6283dad405e92 | [
"MIT"
] | 90 | 2016-11-30T21:23:10.000Z | 2022-01-11T16:33:56.000Z | tests/test_needextend.py | David-Le-Nir/sphinxcontrib-needs | fe809445505fa1e9bf5963eab1d6283dad405e92 | [
"MIT"
] | 359 | 2016-12-02T14:53:44.000Z | 2022-03-31T11:59:03.000Z | tests/test_needextend.py | David-Le-Nir/sphinxcontrib-needs | fe809445505fa1e9bf5963eab1d6283dad405e92 | [
"MIT"
] | 25 | 2018-06-20T18:56:13.000Z | 2022-03-25T06:11:40.000Z | from pathlib import Path
from sphinx_testing import with_app
@with_app(buildername="html", srcdir="doc_test/doc_needextend")
def test_doc_needextend_html(app, status, warning):
app.build()
index_html = Path(app.outdir, "index.html").read_text()
assert "extend_test_003" in index_html
assert (
... | 42.758621 | 114 | 0.682258 | 178 | 1,240 | 4.466292 | 0.269663 | 0.125786 | 0.10566 | 0.090566 | 0.567296 | 0.567296 | 0.528302 | 0.528302 | 0.528302 | 0.528302 | 0 | 0.03235 | 0.152419 | 1,240 | 28 | 115 | 44.285714 | 0.724072 | 0 | 0 | 0.227273 | 0 | 0.090909 | 0.604032 | 0.349194 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.136364 | 0 | 0 | 0 | 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 |
68e4bec6c072d0be5fab3259857e76f151008abb | 2,133 | py | Python | variables.py | makhan/spaghetti-basic | d23b66f22f897772cf7c221e1fe1f509529c2de8 | [
"MIT"
] | 1 | 2020-11-26T09:44:49.000Z | 2020-11-26T09:44:49.000Z | variables.py | makhan/spaghetti-basic | d23b66f22f897772cf7c221e1fe1f509529c2de8 | [
"MIT"
] | null | null | null | variables.py | makhan/spaghetti-basic | d23b66f22f897772cf7c221e1fe1f509529c2de8 | [
"MIT"
] | null | null | null | import operator
from collections import deque
import ctypes
class Variable:
def __init__(self, name, type_, value):
self.name=name
self.type=type_
self.value=value
def __str__(self):
return str(self.value)
class StringType:
def __init__(self,value):
self.value=value
self.__class__=StringType
def _... | 22.691489 | 100 | 0.715424 | 323 | 2,133 | 4.371517 | 0.263158 | 0.050992 | 0.046742 | 0.033994 | 0.126062 | 0.089235 | 0.025496 | 0 | 0 | 0 | 0 | 0.002807 | 0.165026 | 2,133 | 93 | 101 | 22.935484 | 0.790006 | 0.060947 | 0 | 0.226667 | 0 | 0 | 0.077616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | null | null | 0.013333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
68e5fe72b09b75c9f77137c1e6a483a346257eff | 1,500 | py | Python | test/test_LocalMergeWorkflow.py | fsetti/ProjectMetis | e4db9a5f8048e54582a382dcff5b15526085ff0b | [
"MIT"
] | null | null | null | test/test_LocalMergeWorkflow.py | fsetti/ProjectMetis | e4db9a5f8048e54582a382dcff5b15526085ff0b | [
"MIT"
] | null | null | null | test/test_LocalMergeWorkflow.py | fsetti/ProjectMetis | e4db9a5f8048e54582a382dcff5b15526085ff0b | [
"MIT"
] | null | null | null | import os
import glob
import time
import unittest
from metis.LocalMergeTask import LocalMergeTask
from metis.Utils import do_cmd
from metis.Path import Path
from metis.File import File, MutableFile
from pprint import pprint
class LocalMergeWorkflowTest(unittest.TestCase):
@unittest.skipIf(os.getenv("FAST"), "S... | 30.612245 | 241 | 0.654 | 185 | 1,500 | 5.145946 | 0.594595 | 0.037815 | 0.037815 | 0.046218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035013 | 0.219333 | 1,500 | 48 | 242 | 31.25 | 0.777968 | 0.180667 | 0 | 0 | 0 | 0 | 0.159184 | 0.066939 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.032258 | false | 0 | 0.322581 | 0 | 0.387097 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
68ea4a819e001ab4a104fa615e95b3253def1407 | 2,289 | py | Python | mining/cmd_executor.py | SGtOriginal/cpuminer-multi-pool-cli | b55cecda637b0d60fc859bb2bf27cea29e373d35 | [
"Apache-2.0"
] | null | null | null | mining/cmd_executor.py | SGtOriginal/cpuminer-multi-pool-cli | b55cecda637b0d60fc859bb2bf27cea29e373d35 | [
"Apache-2.0"
] | null | null | null | mining/cmd_executor.py | SGtOriginal/cpuminer-multi-pool-cli | b55cecda637b0d60fc859bb2bf27cea29e373d35 | [
"Apache-2.0"
] | 1 | 2021-02-26T17:01:29.000Z | 2021-02-26T17:01:29.000Z | import subprocess
from datetime import date
from typing import overload
from mining.cmd import Command
class CommandOutputConsumer:
@overload
def consum(self, output_line: str):
pass
class CommandExecutor:
def __init__(self, output_consumer: CommandOutputConsumer):
self.output_consume... | 28.6125 | 82 | 0.648755 | 254 | 2,289 | 5.53937 | 0.311024 | 0.120824 | 0.049751 | 0.060412 | 0.197584 | 0.160625 | 0.04833 | 0 | 0 | 0 | 0 | 0.00059 | 0.259502 | 2,289 | 79 | 83 | 28.974684 | 0.829499 | 0.019659 | 0 | 0.113208 | 0 | 0 | 0.026762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207547 | false | 0.018868 | 0.075472 | 0 | 0.415094 | 0.075472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68f2e53dbc641a5aea630cd63ef204444669eec9 | 352 | py | Python | beginner_contest/121/C.py | FGtatsuro/myatcoder | 25a3123be6a6311e7d1c25394987de3e35575ff4 | [
"MIT"
] | null | null | null | beginner_contest/121/C.py | FGtatsuro/myatcoder | 25a3123be6a6311e7d1c25394987de3e35575ff4 | [
"MIT"
] | null | null | null | beginner_contest/121/C.py | FGtatsuro/myatcoder | 25a3123be6a6311e7d1c25394987de3e35575ff4 | [
"MIT"
] | null | null | null | import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)
n, m = map(int, input().split())
prices = [0] * n
for i in range(n):
prices[i] = tuple(map(int, input().split()))
prices = sorted(prices)
ans = 0
for a, b in prices:
if m <= b:
ans += (a * m)
break
else:
ans += (a... | 17.6 | 48 | 0.53125 | 56 | 352 | 3.339286 | 0.5 | 0.064171 | 0.117647 | 0.171123 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02008 | 0.292614 | 352 | 19 | 49 | 18.526316 | 0.730924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.058824 | 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 |
68fa0ea29d14c58300e3d72ffaf4bae6af2b2f85 | 1,760 | py | Python | fylesdk/apis/__init__.py | fylein/fyle-sdk-py | 826f804ec4d94d5f95fb304254a373679a494238 | [
"MIT"
] | 4 | 2019-05-07T07:38:27.000Z | 2021-09-14T08:39:12.000Z | fylesdk/apis/__init__.py | snarayanank2/fyle-sdk-py | 826f804ec4d94d5f95fb304254a373679a494238 | [
"MIT"
] | 3 | 2019-09-23T11:50:31.000Z | 2020-02-10T12:12:10.000Z | fylesdk/apis/__init__.py | fylein/fyle-sdk-py | 826f804ec4d94d5f95fb304254a373679a494238 | [
"MIT"
] | 12 | 2019-05-06T09:48:51.000Z | 2020-11-13T10:00:26.000Z | from .fyle_v1.employees import Employees
from .fyle_v1.expenses import Expenses
from .fyle_v1.reports import Reports
from .fyle_v1.categories import Categories
from .fyle_v1.advances import Advances
from .fyle_v1.advance_requests import AdvanceRequests
from .fyle_v1.refunds import Refunds
from .fyle_v1.reimbursements i... | 33.207547 | 92 | 0.804545 | 186 | 1,760 | 7.370968 | 0.247312 | 0.140044 | 0.175055 | 0.052516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015605 | 0.126136 | 1,760 | 52 | 93 | 33.846154 | 0.875813 | 0 | 0 | 0 | 0 | 0 | 0.186364 | 0.073864 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.48 | 0 | 0.48 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
68feda08ef1c21ede0dc4dca0a068491b2d229c3 | 405 | py | Python | camaras/migrations/0003_camaras_imagen_defecto.py | joelsegoviacrespo/control_aforo_migrado | be90d1d45a20f735e7ef20449c4ab91ca05b5d85 | [
"MIT"
] | null | null | null | camaras/migrations/0003_camaras_imagen_defecto.py | joelsegoviacrespo/control_aforo_migrado | be90d1d45a20f735e7ef20449c4ab91ca05b5d85 | [
"MIT"
] | null | null | null | camaras/migrations/0003_camaras_imagen_defecto.py | joelsegoviacrespo/control_aforo_migrado | be90d1d45a20f735e7ef20449c4ab91ca05b5d85 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.13 on 2020-12-16 11:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('camaras', '0002_camaras_snapshot'),
]
operations = [
migrations.AddField(
model_name='camaras',
name='imagen_defect... | 21.315789 | 63 | 0.604938 | 43 | 405 | 5.581395 | 0.790698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078498 | 0.276543 | 405 | 18 | 64 | 22.5 | 0.740614 | 0.11358 | 0 | 0 | 1 | 0 | 0.137255 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec00161b060e96b753ec7f5aeca5d8b066611deb | 270 | py | Python | Mundo_1/Ex030.py | alinenog/Mundo_Python-1-2-3 | 2cfda105eec436ae32394e01c011342515fceff5 | [
"MIT"
] | null | null | null | Mundo_1/Ex030.py | alinenog/Mundo_Python-1-2-3 | 2cfda105eec436ae32394e01c011342515fceff5 | [
"MIT"
] | null | null | null | Mundo_1/Ex030.py | alinenog/Mundo_Python-1-2-3 | 2cfda105eec436ae32394e01c011342515fceff5 | [
"MIT"
] | null | null | null | #Exercício Python 30:
#Crie um programa que leia um número inteiro e mostre na tela se ele é PAR ou ÍMPAR.
num = int(input('Digite um qualquer: '))
resultado = num % 2
if resultado == 0:
print(f'O número {num} é PAR!')
else:
print(f'O número {num} é IMPAR') | 30 | 85 | 0.666667 | 48 | 270 | 3.75 | 0.708333 | 0.044444 | 0.077778 | 0.144444 | 0.188889 | 0.188889 | 0 | 0 | 0 | 0 | 0 | 0.018957 | 0.218519 | 270 | 9 | 86 | 30 | 0.834123 | 0.381481 | 0 | 0 | 0 | 0 | 0.398734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec12243a55a82b5233fffa89acd8d92d9f4f02f9 | 3,129 | py | Python | src/apps/devices/ledwall.py | ajintom/music_sync | 0d7bc302502d28e4be4f0a0be1fc9bafb706f651 | [
"MIT"
] | null | null | null | src/apps/devices/ledwall.py | ajintom/music_sync | 0d7bc302502d28e4be4f0a0be1fc9bafb706f651 | [
"MIT"
] | null | null | null | src/apps/devices/ledwall.py | ajintom/music_sync | 0d7bc302502d28e4be4f0a0be1fc9bafb706f651 | [
"MIT"
] | null | null | null | import device
from phosphene.signal import *
import scipy, numpy
from phosphene.graphs import barGraph
import math
from phosphene import signalutil
from phosphene.util import *
""" The LEDWall is a device which composed of a 6*6 square of led strips.
Attached to it were 2 "woofers" which had 4 rings of leds
an... | 36.383721 | 99 | 0.531799 | 432 | 3,129 | 3.833333 | 0.310185 | 0.028986 | 0.021739 | 0.039855 | 0.145531 | 0.132246 | 0.100242 | 0.100242 | 0.071256 | 0.071256 | 0 | 0.042479 | 0.360499 | 3,129 | 85 | 100 | 36.811765 | 0.785107 | 0.105785 | 0 | 0.173913 | 0 | 0 | 0.003195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.101449 | null | null | 0.057971 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ec163196eb3476f44603a4edab0e9836dd761f3d | 770 | py | Python | setup_test_env.py | diem/rosetta-proxy | 7e7f305d4ba725578d94d8b4ad365a2fb9034246 | [
"Apache-2.0"
] | 5 | 2021-01-24T15:36:16.000Z | 2022-01-27T18:42:32.000Z | setup_test_env.py | libra/rosetta-proxy | 7e7f305d4ba725578d94d8b4ad365a2fb9034246 | [
"Apache-2.0"
] | null | null | null | setup_test_env.py | libra/rosetta-proxy | 7e7f305d4ba725578d94d8b4ad365a2fb9034246 | [
"Apache-2.0"
] | 3 | 2020-11-05T01:39:57.000Z | 2020-12-05T05:20:40.000Z | # Copyright (c) The Diem Core Contributors
# SPDX-License-Identifier: Apache-2.0
from diem import testnet, LocalAccount
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey
import json
def accounts():
with open("rosetta-diem.json", "r") as f:
config=json.load(f)
return ... | 33.478261 | 104 | 0.754545 | 103 | 770 | 5.495146 | 0.592233 | 0.045936 | 0.04947 | 0.060071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039764 | 0.118182 | 770 | 22 | 105 | 35 | 0.793814 | 0.098701 | 0 | 0 | 0 | 0 | 0.188133 | 0.085384 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0.076923 | 0.538462 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ec204df8064458de5ca89ebcf8fe20f06cbbe03b | 612 | py | Python | tests/conftest.py | mcgillij/analyzere-python | b262c57e557aa8fe863f35d12bc0f127e04e2e39 | [
"MIT"
] | 3 | 2016-06-07T00:35:29.000Z | 2018-09-05T13:19:20.000Z | tests/conftest.py | mcgillij/analyzere-python | b262c57e557aa8fe863f35d12bc0f127e04e2e39 | [
"MIT"
] | 21 | 2015-06-24T19:45:24.000Z | 2019-11-29T19:51:41.000Z | tests/conftest.py | mcgillij/analyzere-python | b262c57e557aa8fe863f35d12bc0f127e04e2e39 | [
"MIT"
] | 6 | 2017-12-19T16:57:09.000Z | 2021-11-04T22:16:51.000Z | import pytest
import requests_mock
@pytest.fixture
def reqmock(request):
m = requests_mock.Mocker()
m.start()
request.addfinalizer(lambda: m.stop())
return m
@pytest.fixture
def mock_bar_request(reqmock):
reqmock.post('https://api/bars/abc123/data', status_code=201,
text='data')... | 27.818182 | 72 | 0.676471 | 80 | 612 | 5.075 | 0.4125 | 0.078818 | 0.118227 | 0.17734 | 0.334975 | 0.334975 | 0.26601 | 0 | 0 | 0 | 0 | 0.047337 | 0.171569 | 612 | 21 | 73 | 29.142857 | 0.753452 | 0 | 0 | 0.117647 | 0 | 0 | 0.269608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.352941 | 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 |
ec22ced84ce566585c050ab22104cf46051289a4 | 253 | py | Python | logs/management/commands/create_logs_celery.py | ir0nfelix/apache-log-parser | 9a8f6e65679ac514babefbddfd3dd7323e169930 | [
"Apache-2.0"
] | null | null | null | logs/management/commands/create_logs_celery.py | ir0nfelix/apache-log-parser | 9a8f6e65679ac514babefbddfd3dd7323e169930 | [
"Apache-2.0"
] | null | null | null | logs/management/commands/create_logs_celery.py | ir0nfelix/apache-log-parser | 9a8f6e65679ac514babefbddfd3dd7323e169930 | [
"Apache-2.0"
] | null | null | null | from django.core.management.base import BaseCommand
from logs.tasks import create_logs_delay
class Command(BaseCommand):
help = 'Pull apache logs from URL and save to DB'
def handle(self, *args, **options):
create_logs_delay.delay()
| 23 | 53 | 0.735178 | 36 | 253 | 5.055556 | 0.722222 | 0.10989 | 0.164835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 253 | 10 | 54 | 25.3 | 0.879227 | 0 | 0 | 0 | 0 | 0 | 0.158103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ec24fa197a8f7d66fadeac2e6af92451c3e1e1cc | 8,452 | py | Python | data_generator.py | dmolony3/SMITH | f47b4463c8cb16a8d89260a7f49d0847a101f1f4 | [
"MIT"
] | 4 | 2020-09-01T11:24:13.000Z | 2022-01-03T11:42:40.000Z | data_generator.py | dmolony3/SMITH | f47b4463c8cb16a8d89260a7f49d0847a101f1f4 | [
"MIT"
] | null | null | null | data_generator.py | dmolony3/SMITH | f47b4463c8cb16a8d89260a7f49d0847a101f1f4 | [
"MIT"
] | null | null | null | import re
import torch
from torch.utils.data import Dataset
class Dataset(Dataset):
"""Generates a dataset for Smith
Args:
file: str, path to raw dataset where each line is a data sample
tokenizer: BertTokenizer, a tokenizer to generate tokens and convert to ids
sentence_block_length:... | 42.26 | 117 | 0.632158 | 1,107 | 8,452 | 4.551039 | 0.184282 | 0.052402 | 0.060341 | 0.041088 | 0.30131 | 0.236602 | 0.173085 | 0.122271 | 0.108773 | 0.108773 | 0 | 0.009048 | 0.293895 | 8,452 | 200 | 118 | 42.26 | 0.835121 | 0.284548 | 0 | 0.134021 | 1 | 0 | 0.013201 | 0.007122 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061856 | false | 0 | 0.030928 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec34881e105458766997758f61939289f51a4456 | 662 | py | Python | sps/api/v1/socket/server.py | tantexian/sps-2014-12-4 | 0cdab186cb3bf148656c4c214a18215643b4969c | [
"Apache-2.0"
] | 1 | 2018-07-27T15:16:14.000Z | 2018-07-27T15:16:14.000Z | sps/api/v1/socket/server.py | tantexian/sps-2014-12-4 | 0cdab186cb3bf148656c4c214a18215643b4969c | [
"Apache-2.0"
] | null | null | null | sps/api/v1/socket/server.py | tantexian/sps-2014-12-4 | 0cdab186cb3bf148656c4c214a18215643b4969c | [
"Apache-2.0"
] | null | null | null | import SocketServer
from SocketServer import StreamRequestHandler as SRH
from time import ctime
from processor import Processor
host = '127.0.0.1'
port = 9999
addr = (host,port)
class Servers(SRH):
def handle(self):
self.processor = Processor()
print 'got connection from ',self.cli... | 27.583333 | 58 | 0.643505 | 76 | 662 | 5.565789 | 0.605263 | 0.061466 | 0.070922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.270393 | 662 | 23 | 59 | 28.782609 | 0.846791 | 0 | 0 | 0 | 0 | 0 | 0.075529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec36aed44e861dee215c8cc60da75b8e9be36b8e | 742 | py | Python | test_config.py | BlueGlassBlock/Avilla | fd6bf546b430f0f755af4f29ceca87cc5f14e742 | [
"MIT"
] | null | null | null | test_config.py | BlueGlassBlock/Avilla | fd6bf546b430f0f755af4f29ceca87cc5f14e742 | [
"MIT"
] | null | null | null | test_config.py | BlueGlassBlock/Avilla | fd6bf546b430f0f755af4f29ceca87cc5f14e742 | [
"MIT"
] | null | null | null | from typing import Any
from pydantic import BaseModel
from avilla.core import Avilla
from avilla.core.config import ConfigApplicant, ConfigFlushingMoment
from avilla.core.utilles.mock import ConfigMock
class TestConfig(BaseModel):
test_field1: str
test_field2: int
field3: float
field4: bool
fiel... | 21.823529 | 90 | 0.737197 | 86 | 742 | 6.244186 | 0.453488 | 0.055866 | 0.078212 | 0.05959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022951 | 0.177898 | 742 | 33 | 91 | 22.484848 | 0.857377 | 0 | 0 | 0 | 0 | 0 | 0.028302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.208333 | 0 | 0.583333 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ec39288877bc482e0dbcf55eb2e77fef3454a4d4 | 4,155 | py | Python | src/skdh/gait/gait_endpoints/base.py | PfizerRD/scikit-digital-health | f834a82d750d9e3cdd35f4f5692a0a388210b821 | [
"MIT"
] | 1 | 2022-03-31T20:56:49.000Z | 2022-03-31T20:56:49.000Z | src/skdh/gait/gait_endpoints/base.py | PfizerRD/scikit-digital-health | f834a82d750d9e3cdd35f4f5692a0a388210b821 | [
"MIT"
] | null | null | null | src/skdh/gait/gait_endpoints/base.py | PfizerRD/scikit-digital-health | f834a82d750d9e3cdd35f4f5692a0a388210b821 | [
"MIT"
] | null | null | null | """
Base gait endpoints class
Lukas Adamowicz
Copyright (c) 2021. Pfizer Inc. All rights reserved.
"""
import functools
import logging
from numpy import zeros, roll, full, nan, bool_, float_
def basic_asymmetry(f):
@functools.wraps(f)
def run_basic_asymmetry(self, *args, **kwargs):
f(self, *args, **... | 28.458904 | 94 | 0.580987 | 507 | 4,155 | 4.589744 | 0.238659 | 0.042544 | 0.039106 | 0.051139 | 0.629996 | 0.567254 | 0.567254 | 0.544048 | 0.544048 | 0.544048 | 0 | 0.003201 | 0.323225 | 4,155 | 145 | 95 | 28.655172 | 0.824324 | 0.291697 | 0 | 0.46875 | 0 | 0 | 0.040062 | 0.008168 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203125 | false | 0 | 0.046875 | 0.0625 | 0.421875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ec42748c5491622424af35af33387af64c3e10f4 | 587 | py | Python | LeetCode/October 2020 Leetcoding Challenge/Buddy Strings.py | UtkarshPathrabe/Competitive-Coding | ba322fbb1b88682d56a9b80bdd92a853f1caa84e | [
"MIT"
] | 13 | 2021-09-02T07:30:02.000Z | 2022-03-22T19:32:03.000Z | LeetCode/October 2020 Leetcoding Challenge/Buddy Strings.py | UtkarshPathrabe/Competitive-Coding | ba322fbb1b88682d56a9b80bdd92a853f1caa84e | [
"MIT"
] | null | null | null | LeetCode/October 2020 Leetcoding Challenge/Buddy Strings.py | UtkarshPathrabe/Competitive-Coding | ba322fbb1b88682d56a9b80bdd92a853f1caa84e | [
"MIT"
] | 3 | 2021-08-24T16:06:22.000Z | 2021-09-17T15:39:53.000Z | class Solution:
def buddyStrings(self, A: str, B: str) -> bool:
if len(A) != len(B):
return False
if A == B:
seen = set()
for char in A:
if char in seen:
return True
seen.add(char)
return False
... | 30.894737 | 65 | 0.376491 | 69 | 587 | 3.202899 | 0.405797 | 0.045249 | 0.036199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017483 | 0.512777 | 587 | 19 | 65 | 30.894737 | 0.755245 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
ec42f25b60ab91a7566449335389656da30cd491 | 476 | py | Python | ESP32/LED_e-a.py | frankyhub/Python | 323ef1399efcbc24ddc66ad069ff99b4999fff38 | [
"MIT"
] | null | null | null | ESP32/LED_e-a.py | frankyhub/Python | 323ef1399efcbc24ddc66ad069ff99b4999fff38 | [
"MIT"
] | null | null | null | ESP32/LED_e-a.py | frankyhub/Python | 323ef1399efcbc24ddc66ad069ff99b4999fff38 | [
"MIT"
] | null | null | null | """
Board: ESP32 R32
Funktion:Interne LED ein/aus schalten
USB: CH340
https://github.com/frankyhub/Arduino-Beispiele_I/tree/master/CH341SER%20Serieller%20Treiber%20NANO
Flash: esp32-idf3-20210125-unstable-v1.13-283-g203e1d2a6.bin
https://micropython.org/download/esp32/
khf 25.01.2021
"""
#Intere LED EIN:
im... | 23.8 | 99 | 0.741597 | 73 | 476 | 4.821918 | 0.671233 | 0.113636 | 0.090909 | 0.130682 | 0.272727 | 0.272727 | 0.272727 | 0.272727 | 0.272727 | 0.272727 | 0 | 0.126794 | 0.121849 | 476 | 19 | 100 | 25.052632 | 0.715311 | 0.653361 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ec475418815cb9a937dfa6c2bd2c524495e3d61a | 565 | py | Python | src/authentication/migrations/0003_auto_20180622_1320.py | Meemaw/Photomy | a52ff415117b16d52df6509bc940fcfc9cf61c8c | [
"MIT"
] | 7 | 2018-06-13T17:01:25.000Z | 2020-04-20T18:27:30.000Z | src/authentication/migrations/0003_auto_20180622_1320.py | Meemaw/Photomy | a52ff415117b16d52df6509bc940fcfc9cf61c8c | [
"MIT"
] | 4 | 2018-06-05T13:48:13.000Z | 2018-07-01T14:51:50.000Z | src/authentication/migrations/0003_auto_20180622_1320.py | Meemaw/Photomy | a52ff415117b16d52df6509bc940fcfc9cf61c8c | [
"MIT"
] | 2 | 2019-02-15T16:06:06.000Z | 2020-04-20T18:27:32.000Z | # Generated by Django 2.0.4 on 2018-06-22 13:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('authentication', '0002_user_avatar'),
('gallery', '0001_initial'),
]
operations = [
migrations.Alte... | 25.681818 | 121 | 0.623009 | 63 | 565 | 5.460317 | 0.650794 | 0.069767 | 0.081395 | 0.127907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054502 | 0.253097 | 565 | 21 | 122 | 26.904762 | 0.760664 | 0.079646 | 0 | 0 | 1 | 0 | 0.160232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec4c741c93ab6b9b5ffb7f44ebb2db0f5c29e5a4 | 335 | py | Python | scripts/utils.py | Yomguithereal/ural | 3b59087cd53d08200b4007e4ca0434c795e5fa1f | [
"MIT"
] | 30 | 2018-09-28T22:17:35.000Z | 2022-01-07T18:33:33.000Z | scripts/utils.py | Yomguithereal/ural | 3b59087cd53d08200b4007e4ca0434c795e5fa1f | [
"MIT"
] | 79 | 2018-10-26T11:41:58.000Z | 2022-02-28T10:24:44.000Z | scripts/utils.py | Yomguithereal/ural | 3b59087cd53d08200b4007e4ca0434c795e5fa1f | [
"MIT"
] | 7 | 2019-04-26T15:16:28.000Z | 2022-01-06T14:21:44.000Z | from timeit import default_timer as timer
class Timer(object):
def __init__(self, name='Timer'):
self.name = name
def __enter__(self):
self.start = timer()
def __exit__(self, *args):
self.end = timer()
self.duration = self.end - self.start
print('%s:' % self.name, ... | 23.928571 | 47 | 0.60597 | 43 | 335 | 4.418605 | 0.465116 | 0.126316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265672 | 335 | 13 | 48 | 25.769231 | 0.772358 | 0 | 0 | 0 | 0 | 0 | 0.023881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.5 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec4cfedee9444daea0f196698f091c729f3ed4be | 241 | py | Python | Source/Run.py | Dmunch04/Plistr | 39d70e3b9f1a827d48a6a951617da0892978515c | [
"MIT"
] | null | null | null | Source/Run.py | Dmunch04/Plistr | 39d70e3b9f1a827d48a6a951617da0892978515c | [
"MIT"
] | null | null | null | Source/Run.py | Dmunch04/Plistr | 39d70e3b9f1a827d48a6a951617da0892978515c | [
"MIT"
] | null | null | null | import sys
import Main
if __name__ == '__main__':
if len (sys.argv) >= 1:
Path = sys.argv[1]
if not Path.endswith ('.plist'):
Path += '.plist'
Instance = Main.Plistr (Path)
Instance.Run ()
| 17.214286 | 40 | 0.522822 | 29 | 241 | 4.068966 | 0.517241 | 0.101695 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0.3361 | 241 | 13 | 41 | 18.538462 | 0.725 | 0 | 0 | 0 | 0 | 0 | 0.082988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 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 |
ec4f4b3e26b16180049cbc6176e285d9b3a79ae8 | 293 | py | Python | MyScripts/002b.py | diegoomataix/Curso_AeroPython | c2cf71a938062bc70dbbf7c2f21e09653fa2cedd | [
"CC-BY-4.0"
] | null | null | null | MyScripts/002b.py | diegoomataix/Curso_AeroPython | c2cf71a938062bc70dbbf7c2f21e09653fa2cedd | [
"CC-BY-4.0"
] | null | null | null | MyScripts/002b.py | diegoomataix/Curso_AeroPython | c2cf71a938062bc70dbbf7c2f21e09653fa2cedd | [
"CC-BY-4.0"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
# Almacenando los datos
data = np.loadtxt(fname='../data/swc/inflammation-01.csv', delimiter=',')
print(data)
# plt.matshow(data)
# plt.matshow(data[:3,:])
plt.plot(data.mean(axis=0))
plt.plot(data.max(axis=0))
plt.plot(data.min(axis=0)) | 19.533333 | 73 | 0.709898 | 49 | 293 | 4.244898 | 0.55102 | 0.100962 | 0.158654 | 0.173077 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022642 | 0.095563 | 293 | 15 | 74 | 19.533333 | 0.762264 | 0.215017 | 0 | 0 | 0 | 0 | 0.140969 | 0.136564 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.