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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f7afab039165b88d8c0c2880730cfe9138539dd4 | 258 | py | Python | 167. Two Sum II - Input array is sorted/solution.py | Rukeith/leetcode | 001aaf83968889d0cbc634dcc3bd1b59728d1ecc | [
"MIT"
] | 3 | 2018-06-19T08:36:32.000Z | 2019-03-25T04:05:04.000Z | 167. Two Sum II - Input array is sorted/solution.py | Rukeith/leetcode | 001aaf83968889d0cbc634dcc3bd1b59728d1ecc | [
"MIT"
] | null | null | null | 167. Two Sum II - Input array is sorted/solution.py | Rukeith/leetcode | 001aaf83968889d0cbc634dcc3bd1b59728d1ecc | [
"MIT"
] | null | null | null | class Solution:
def twoSum(self, numbers: List[int], target: int) -> List[int]:
dic = {}
for i, num in enumerate(numbers):
if target - num in dic:
return [dic[target - num] + 1, i + 1]
dic[num] = i
| 32.25 | 67 | 0.496124 | 34 | 258 | 3.764706 | 0.529412 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.372093 | 258 | 7 | 68 | 36.857143 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 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 |
f7b5bfefc87c4d26b7075036530d20e7858bfc83 | 881 | py | Python | api/src/consumer/migrations/0007_order_base_operative_20180930_0134.py | asermax/msa | 2d74167f5da661517e7deaea05a5a29ba677c206 | [
"MIT"
] | null | null | null | api/src/consumer/migrations/0007_order_base_operative_20180930_0134.py | asermax/msa | 2d74167f5da661517e7deaea05a5a29ba677c206 | [
"MIT"
] | null | null | null | api/src/consumer/migrations/0007_order_base_operative_20180930_0134.py | asermax/msa | 2d74167f5da661517e7deaea05a5a29ba677c206 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.1 on 2018-09-30 01:34
from django.db import migrations
from django.utils import timezone
def forward(apps, schema_editor):
Operative = apps.get_model('operative', 'Operative')
Order = apps.get_model('consumer', 'Order')
# create placeholder operative
operative = Operative.o... | 25.171429 | 76 | 0.708286 | 105 | 881 | 5.828571 | 0.504762 | 0.147059 | 0.058824 | 0.055556 | 0.24183 | 0.24183 | 0.143791 | 0 | 0 | 0 | 0 | 0.048747 | 0.185017 | 881 | 34 | 77 | 25.911765 | 0.803621 | 0.182747 | 0 | 0.111111 | 1 | 0 | 0.145455 | 0.032168 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.388889 | 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 |
f7c225071b82ab44c82cdd1e6f77720a8d109f04 | 409 | py | Python | sim/urls.py | j54854/simulation | 4ab899165839c04a500f4ed17315bd732d1f04fc | [
"MIT"
] | null | null | null | sim/urls.py | j54854/simulation | 4ab899165839c04a500f4ed17315bd732d1f04fc | [
"MIT"
] | null | null | null | sim/urls.py | j54854/simulation | 4ab899165839c04a500f4ed17315bd732d1f04fc | [
"MIT"
] | null | null | null | from django.urls import path
from django.views.generic import TemplateView
from . import views
app_name = 'sim'
urlpatterns = [
path('', TemplateView.as_view(template_name='sim/index.html'), name='index'),
path('mania/', TemplateView.as_view(template_name='sim/mania.html'), name='mania'),
path('get/', vie... | 31.461538 | 87 | 0.706601 | 57 | 409 | 4.912281 | 0.385965 | 0.075 | 0.128571 | 0.185714 | 0.235714 | 0.235714 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119804 | 409 | 12 | 88 | 34.083333 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.180929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7d1033eff225d59ce6ebdbf74cf9db6467934bf | 576 | py | Python | day11/nikemail.py | nikhilsamninan/python-files | 15198459081097058a939b40b5e8ef754e578fe0 | [
"Apache-2.0"
] | null | null | null | day11/nikemail.py | nikhilsamninan/python-files | 15198459081097058a939b40b5e8ef754e578fe0 | [
"Apache-2.0"
] | null | null | null | day11/nikemail.py | nikhilsamninan/python-files | 15198459081097058a939b40b5e8ef754e578fe0 | [
"Apache-2.0"
] | null | null | null | import smtplib #here mail library
import getpass
s = smtplib.SMTP('smtp.gmail.com',587)
# start TLS for security
s.starttls()
sender_email = "nikhilsamninan@gmail.com"
password = getpass.getpass(prompt="Type your password and press enter: ")
receivers_mail ='nikhilsamninan@gmail.com'
s.login(sender_email,password... | 23.04 | 73 | 0.758681 | 86 | 576 | 5 | 0.55814 | 0.102326 | 0.102326 | 0.111628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005952 | 0.125 | 576 | 25 | 74 | 23.04 | 0.847222 | 0.069444 | 0 | 0 | 0 | 0 | 0.455056 | 0.089888 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1875 | 0.125 | 0 | 0.125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f7d114f26f07787580c831c06cb778f59ab96bf5 | 796 | py | Python | src/operators/gitops_operator_factory.py | anwaramoon/gitops-connector | 3939b1cae147e4f0b80a4b77cb23fd252d02e21d | [
"MIT"
] | 24 | 2021-07-22T23:13:30.000Z | 2022-03-30T00:11:07.000Z | src/operators/gitops_operator_factory.py | anwaramoon/gitops-connector | 3939b1cae147e4f0b80a4b77cb23fd252d02e21d | [
"MIT"
] | 6 | 2021-07-29T22:45:24.000Z | 2022-02-18T02:09:25.000Z | src/operators/gitops_operator_factory.py | anwaramoon/gitops-connector | 3939b1cae147e4f0b80a4b77cb23fd252d02e21d | [
"MIT"
] | 4 | 2021-09-09T20:30:39.000Z | 2022-03-24T14:30:31.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
import utils
from operators.argo_gitops_operator import ArgoGitopsOperator
from operators.flux_gitops_operator import FluxGitopsOperator
from operators.gitops_operator import GitopsOperatorInterface
FLUX_TYPE = "FLUX"
ARGOCD_TYPE = "ARGOCD"
cl... | 31.84 | 101 | 0.76005 | 84 | 796 | 6.940476 | 0.452381 | 0.240137 | 0.154374 | 0.075472 | 0.089194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182161 | 796 | 24 | 102 | 33.166667 | 0.895545 | 0.085427 | 0 | 0 | 0 | 0 | 0.122759 | 0.030345 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.25 | 0 | 0.5 | 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 |
f7d5357c6533785f30d49aa6893665a1108051c5 | 2,867 | py | Python | agent/learning/pipeline/input_provider/normalized_one_hot_input_provider.py | CognitiaAI/StreetFighterRL | 2b902ee7bb502336e1ba3f74ebeb09d843a75e73 | [
"MIT"
] | 1 | 2022-02-02T21:33:37.000Z | 2022-02-02T21:33:37.000Z | agent/learning/pipeline/input_provider/normalized_one_hot_input_provider.py | CognitiaAI/StreetFighterRL | 2b902ee7bb502336e1ba3f74ebeb09d843a75e73 | [
"MIT"
] | null | null | null | agent/learning/pipeline/input_provider/normalized_one_hot_input_provider.py | CognitiaAI/StreetFighterRL | 2b902ee7bb502336e1ba3f74ebeb09d843a75e73 | [
"MIT"
] | 1 | 2022-02-02T18:30:49.000Z | 2022-02-02T18:30:49.000Z | import numpy as np
from pipeline.input_provider.base_input_provider import BaseInputProvider
class NormalizedOneHotInputProvider(BaseInputProvider):
def __init__(self):
BaseInputProvider.__init__(self)
self.__game_state = None
self.__screen_shot = None
def store(self, game_state, scr... | 43.439394 | 110 | 0.717126 | 421 | 2,867 | 4.458432 | 0.178147 | 0.210975 | 0.159297 | 0.101225 | 0.597762 | 0.588173 | 0.559403 | 0.523175 | 0.486947 | 0.486947 | 0 | 0.029462 | 0.183118 | 2,867 | 65 | 111 | 44.107692 | 0.77199 | 0.07813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.043478 | 0.021739 | 0.369565 | 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 |
f7d5afcf9fc1048c7450173d63a488b9961a67a1 | 4,263 | py | Python | fileson/logdict.py | sonic-chain/swan-client | d44c3662c1cd256c69218db4c5cd7950db229834 | [
"MIT"
] | 3 | 2021-05-18T04:02:12.000Z | 2022-01-06T20:00:36.000Z | fileson/logdict.py | sonic-chain/swan-client | d44c3662c1cd256c69218db4c5cd7950db229834 | [
"MIT"
] | null | null | null | fileson/logdict.py | sonic-chain/swan-client | d44c3662c1cd256c69218db4c5cd7950db229834 | [
"MIT"
] | 4 | 2021-05-28T17:40:41.000Z | 2022-03-31T09:41:55.000Z | """LogDict class with JSON log storage format and simple versioning."""
import json, os
from collections.abc import MutableMapping
from typing import Any, Tuple
class LogDict(MutableMapping):
"""Map-like object with append-only-file logging for persistence.
All set and delete operations are written to append... | 34.104 | 77 | 0.584799 | 561 | 4,263 | 4.322638 | 0.299465 | 0.054433 | 0.006598 | 0.018144 | 0.119588 | 0.108866 | 0.065979 | 0.042887 | 0.042887 | 0.032165 | 0 | 0.006096 | 0.307295 | 4,263 | 124 | 78 | 34.379032 | 0.815103 | 0.381187 | 0 | 0.140351 | 0 | 0 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0.052632 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7d9e64b12e7d6923de25dad0096ac98ac18807d | 2,337 | py | Python | test/integration/test_focal.py | fkluger/torchgeometry | 5f1a4dc8ff3647a60901b79aa90a4e799829a7a2 | [
"Apache-2.0"
] | null | null | null | test/integration/test_focal.py | fkluger/torchgeometry | 5f1a4dc8ff3647a60901b79aa90a4e799829a7a2 | [
"Apache-2.0"
] | null | null | null | test/integration/test_focal.py | fkluger/torchgeometry | 5f1a4dc8ff3647a60901b79aa90a4e799829a7a2 | [
"Apache-2.0"
] | 1 | 2019-10-04T05:05:28.000Z | 2019-10-04T05:05:28.000Z | import logging
import pytest
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import torchgeometry as tgm
logger = logging.getLogger(__name__)
class TestIntegrationFocalLoss:
# optimization
thresh = 1e-1
lr = 1e-3
num_iterations = 1000
num_classes = ... | 30.75 | 70 | 0.602482 | 298 | 2,337 | 4.620805 | 0.459732 | 0.031954 | 0.006536 | 0.021786 | 0.052288 | 0.052288 | 0 | 0 | 0 | 0 | 0 | 0.018834 | 0.295678 | 2,337 | 75 | 71 | 31.16 | 0.81774 | 0.173299 | 0 | 0.040816 | 0 | 0 | 0.034878 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.061224 | false | 0 | 0.142857 | 0 | 0.367347 | 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 |
f7da7315bda822cd9d5afa76fe789d1cc8aa07a8 | 2,219 | py | Python | backend/src/gql/types/decisionpoint.py | spiritutumduo/spiritumDuo | 987785906cd504f46ccebe3bbfe0e81cbf02bf7c | [
"MIT"
] | 1 | 2022-03-11T14:07:16.000Z | 2022-03-11T14:07:16.000Z | backend/src/gql/types/decisionpoint.py | spiritutumduo/spiritumDuo | 987785906cd504f46ccebe3bbfe0e81cbf02bf7c | [
"MIT"
] | 3 | 2022-02-25T22:46:46.000Z | 2022-03-30T08:19:41.000Z | backend/src/gql/types/decisionpoint.py | spiritutumduo/spiritumDuo | 987785906cd504f46ccebe3bbfe0e81cbf02bf7c | [
"MIT"
] | 1 | 2022-03-31T14:35:51.000Z | 2022-03-31T14:35:51.000Z | from ariadne.objects import ObjectType
from dataloaders import UserByIdLoader, OnPathwayByIdLoader
from dataloaders import MilestoneByDecisionPointLoader
from models import Milestone, DecisionPoint
from graphql.type import GraphQLResolveInfo
from typing import Union, List
DecisionPointObjectType = ObjectType("Decision... | 38.929825 | 76 | 0.752141 | 245 | 2,219 | 6.653061 | 0.269388 | 0.047239 | 0.055215 | 0.058896 | 0.51227 | 0.403067 | 0.338037 | 0.338037 | 0.122699 | 0.072393 | 0 | 0 | 0.162235 | 2,219 | 56 | 77 | 39.625 | 0.876815 | 0.089229 | 0 | 0.325581 | 0 | 0 | 0.032242 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0 | false | 0 | 0.139535 | 0 | 0.232558 | 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 |
f7de9fd3c55f4f205aca9f631caf63e0c4ed7490 | 543 | py | Python | test.py | WangTaoAs/MGN_ReID | 916244c39b57b8068c34a7bfa1803781193bb554 | [
"Apache-2.0"
] | 4 | 2021-09-29T10:06:16.000Z | 2021-12-06T03:02:05.000Z | test.py | WangTaoAs/MGN_ReID | 916244c39b57b8068c34a7bfa1803781193bb554 | [
"Apache-2.0"
] | null | null | null | test.py | WangTaoAs/MGN_ReID | 916244c39b57b8068c34a7bfa1803781193bb554 | [
"Apache-2.0"
] | null | null | null | import os
import torch
import argparse
from configs import args
from data import make_data_loader
from model import bulid_MGN_resnet
from processor import inference
def test(args):
print('Start Testing ------')
train_loader, val_loader, class_num, _, _, num_query = make_data_loader(args)
device = torch.d... | 19.392857 | 81 | 0.72744 | 76 | 543 | 4.855263 | 0.460526 | 0.04336 | 0.075881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18232 | 543 | 28 | 82 | 19.392857 | 0.831081 | 0 | 0 | 0 | 0 | 0 | 0.051471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.411765 | 0 | 0.470588 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f7e163b4e91260ab0df90ab825aa66280587db1f | 1,658 | py | Python | satsim/kernel/container.py | 0saurabh0/p1 | af172de29f08e6fe21c810e0e87c06644af16c1f | [
"MIT"
] | null | null | null | satsim/kernel/container.py | 0saurabh0/p1 | af172de29f08e6fe21c810e0e87c06644af16c1f | [
"MIT"
] | null | null | null | satsim/kernel/container.py | 0saurabh0/p1 | af172de29f08e6fe21c810e0e87c06644af16c1f | [
"MIT"
] | null | null | null | from satsim import Object
class ContainerFull(Exception):
pass
class DuplicateName(Exception):
pass
class CannotDelete(Exception):
pass
class NotContained(Exception):
pass
class Container(Object):
def __init__(self, name, description="", parent=None):
super().__init__(name, descri... | 24.028986 | 67 | 0.613993 | 189 | 1,658 | 5.232804 | 0.222222 | 0.141557 | 0.060667 | 0.056623 | 0.391304 | 0.312437 | 0.312437 | 0.231547 | 0.188069 | 0.113246 | 0 | 0.001742 | 0.3076 | 1,658 | 68 | 68 | 24.382353 | 0.859756 | 0 | 0 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170213 | false | 0.085106 | 0.021277 | 0.085106 | 0.446809 | 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 |
f7ee3ad1e11047e10176d59e1420dc2a05e62eb8 | 1,924 | py | Python | nfv/nfv-vim/nfv_vim/nfvi/objects/v1/_guest_service.py | SidneyAn/nfv | 5f0262a5b6ea4be59f977b9c587c483cbe0e373d | [
"Apache-2.0"
] | 2 | 2020-02-07T19:01:36.000Z | 2022-02-23T01:41:46.000Z | nfv/nfv-vim/nfv_vim/nfvi/objects/v1/_guest_service.py | SidneyAn/nfv | 5f0262a5b6ea4be59f977b9c587c483cbe0e373d | [
"Apache-2.0"
] | 1 | 2021-01-14T12:02:25.000Z | 2021-01-14T12:02:25.000Z | nfv/nfv-vim/nfv_vim/nfvi/objects/v1/_guest_service.py | SidneyAn/nfv | 5f0262a5b6ea4be59f977b9c587c483cbe0e373d | [
"Apache-2.0"
] | 2 | 2021-01-13T08:39:21.000Z | 2022-02-09T00:21:55.000Z | #
# Copyright (c) 2015-2016 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
import six
from nfv_common.helpers import Constant
from nfv_common.helpers import Constants
from nfv_common.helpers import Singleton
from nfv_vim.nfvi.objects.v1._object import ObjectData
@six.add_metaclass(Singleton)
cla... | 27.098592 | 76 | 0.692827 | 206 | 1,924 | 6.271845 | 0.334951 | 0.083591 | 0.030186 | 0.04644 | 0.22678 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009204 | 0.209459 | 1,924 | 70 | 77 | 27.485714 | 0.840237 | 0.163202 | 0 | 0.166667 | 0 | 0 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.138889 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f7f3aa14dec3d1446bea62f513cadea2f4d547ce | 2,624 | py | Python | tf1.6/tensorflow_tutorial.py | sgeos/tensorflow_playground | c4c10b74b1eebb63f0bf8de7a9a976c11f025618 | [
"CC0-1.0"
] | null | null | null | tf1.6/tensorflow_tutorial.py | sgeos/tensorflow_playground | c4c10b74b1eebb63f0bf8de7a9a976c11f025618 | [
"CC0-1.0"
] | null | null | null | tf1.6/tensorflow_tutorial.py | sgeos/tensorflow_playground | c4c10b74b1eebb63f0bf8de7a9a976c11f025618 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
# Reference
# https://www.tensorflow.org/get_started/get_started
def repl( expression, globals=None, locals=None ):
for expression in expression.splitlines():
expression = expression.strip()
if expression:
print(f">>> {expression}")
eval(compile(expression + "\n", "<strin... | 40.369231 | 161 | 0.654726 | 417 | 2,624 | 4.043165 | 0.29976 | 0.058126 | 0.049822 | 0.052195 | 0.17497 | 0.13879 | 0.109134 | 0.036773 | 0.036773 | 0.036773 | 0 | 0.043941 | 0.141387 | 2,624 | 64 | 162 | 41 | 0.704394 | 0.031631 | 0 | 0.075472 | 0 | 0.150943 | 0.875443 | 0.267245 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.018868 | 0 | 0.037736 | 0.264151 | 0 | 0 | 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 |
f7f8fc22209ed29922a9fded6cbf07758909bd88 | 5,186 | py | Python | Views/Creation/transitionAddUI.py | yvesjordan06/automata-brains | 1c34dd9315fcee7ce1807a2b94a0ec48421d03b1 | [
"MIT"
] | 3 | 2020-01-31T15:54:48.000Z | 2020-02-01T10:01:35.000Z | Views/Creation/transitionAddUI.py | yvesjordan06/automata-brains | 1c34dd9315fcee7ce1807a2b94a0ec48421d03b1 | [
"MIT"
] | null | null | null | Views/Creation/transitionAddUI.py | yvesjordan06/automata-brains | 1c34dd9315fcee7ce1807a2b94a0ec48421d03b1 | [
"MIT"
] | 2 | 2020-02-01T09:59:51.000Z | 2020-02-01T10:02:12.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'UI/transition.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
from Models.Automate import Automate
from Models.Etat import Etat
from Mo... | 39.587786 | 91 | 0.703047 | 543 | 5,186 | 6.600368 | 0.239411 | 0.043527 | 0.044643 | 0.030134 | 0.186384 | 0.079799 | 0.022879 | 0.022879 | 0.022879 | 0 | 0 | 0.011644 | 0.188585 | 5,186 | 130 | 92 | 39.892308 | 0.840067 | 0.040686 | 0 | 0 | 1 | 0 | 0.059001 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.050505 | 0 | 0.121212 | 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 |
f7fbb2e83c7db86b9dbc095d2691fdd3e4312bad | 1,425 | py | Python | launchcontainer/browser_tests.py | appsembler/xblock-launchcontainer | 18bf840066efc128571f4b757720e01fc8e89c41 | [
"MIT"
] | 2 | 2016-11-24T04:41:20.000Z | 2017-05-11T14:42:40.000Z | launchcontainer/browser_tests.py | appsembler/xblock-launchcontainer | 18bf840066efc128571f4b757720e01fc8e89c41 | [
"MIT"
] | 34 | 2017-05-23T15:15:42.000Z | 2022-02-03T09:06:58.000Z | launchcontainer/browser_tests.py | appsembler/xblock-launchcontainer | 18bf840066efc128571f4b757720e01fc8e89c41 | [
"MIT"
] | 3 | 2017-04-29T16:12:06.000Z | 2019-08-01T20:41:50.000Z | import unittest
from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
BASE_URL = 'http://localhost:8001'
USERNAME = 'YOUR_USERNAME'
PASSWORD = 'YOUR_PASSWORD'
cl... | 30.319149 | 86 | 0.664561 | 164 | 1,425 | 5.621951 | 0.493902 | 0.119306 | 0.045553 | 0.06833 | 0.098698 | 0.098698 | 0.069414 | 0 | 0 | 0 | 0 | 0.00644 | 0.237193 | 1,425 | 46 | 87 | 30.978261 | 0.841766 | 0.052632 | 0 | 0 | 0 | 0 | 0.100446 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 1 | 0.090909 | false | 0.090909 | 0.151515 | 0 | 0.272727 | 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 |
790b53142173212bb718f366b723b78c3ebc9deb | 7,028 | py | Python | qtmultimedia/tests/auto/runautotests.py | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | 1 | 2020-04-30T15:47:35.000Z | 2020-04-30T15:47:35.000Z | qtmultimedia/tests/auto/runautotests.py | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | null | null | null | qtmultimedia/tests/auto/runautotests.py | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
#############################################################################
##
## Copyright (C) 2015 The Qt Company Ltd.
## Contact: http://www.qt.io/licensing/
##
## This file is part of the build configuration tools of the Qt Toolkit.
##
## $QT_BEGIN_LICENSE:LGPL21$
## Commercial License Usag... | 34.45098 | 132 | 0.581816 | 886 | 7,028 | 4.598194 | 0.332957 | 0.019882 | 0.011782 | 0.013746 | 0.120275 | 0.051546 | 0 | 0 | 0 | 0 | 0 | 0.015433 | 0.271628 | 7,028 | 203 | 133 | 34.62069 | 0.780426 | 0.257684 | 0 | 0.21374 | 0 | 0.015267 | 0.152257 | 0.004814 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.038168 | 0.038168 | null | null | 0.137405 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
790f60cd3b034f8a1f21ad237293228ab7592589 | 1,677 | py | Python | tests/template_tests/filter_tests/test_default.py | DasAllFolks/django | 9f427617e4559012e1c2fd8fce46cbe225d8515d | [
"BSD-3-Clause"
] | 1 | 2015-01-09T08:45:54.000Z | 2015-01-09T08:45:54.000Z | tests/template_tests/filter_tests/test_default.py | DasAllFolks/django | 9f427617e4559012e1c2fd8fce46cbe225d8515d | [
"BSD-3-Clause"
] | null | null | null | tests/template_tests/filter_tests/test_default.py | DasAllFolks/django | 9f427617e4559012e1c2fd8fce46cbe225d8515d | [
"BSD-3-Clause"
] | null | null | null | from django.test import SimpleTestCase
from django.utils.safestring import mark_safe
from ..utils import render, setup
class DefaultTests(SimpleTestCase):
"""
Literal string arguments to the default filter are always treated as
safe strings, regardless of the auto-escaping state.
Note: we have to us... | 34.9375 | 96 | 0.619559 | 191 | 1,677 | 5.329843 | 0.314136 | 0.047151 | 0.053045 | 0.129666 | 0.400786 | 0.294695 | 0.18664 | 0.18664 | 0 | 0 | 0 | 0.026706 | 0.196184 | 1,677 | 47 | 97 | 35.680851 | 0.728487 | 0.142516 | 0 | 0.206897 | 0 | 0 | 0.282979 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 1 | 0.206897 | false | 0 | 0.103448 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7913e4dca46377cf239e503987bf2aa16dd64663 | 802 | py | Python | app.py | PrateekBing/fake-instagram-page | 92e3787641ed8ebfe6d2f7d046fec39cf0e68533 | [
"Apache-2.0"
] | null | null | null | app.py | PrateekBing/fake-instagram-page | 92e3787641ed8ebfe6d2f7d046fec39cf0e68533 | [
"Apache-2.0"
] | null | null | null | app.py | PrateekBing/fake-instagram-page | 92e3787641ed8ebfe6d2f7d046fec39cf0e68533 | [
"Apache-2.0"
] | null | null | null | from flask import Flask, render_template, url_for, request
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
db = SQLAlchemy(app)
app.config['SQLALCHEMY_TRACK MODIFICATIONS'] = False
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlite3'
class User(db.Model):
id = db.Column(db.Integer, primar... | 25.870968 | 62 | 0.703242 | 106 | 802 | 5.122642 | 0.481132 | 0.077348 | 0.055249 | 0.058932 | 0.066298 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007257 | 0.140898 | 802 | 31 | 63 | 25.870968 | 0.780842 | 0 | 0 | 0 | 0 | 0 | 0.165629 | 0.028643 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.130435 | 0.086957 | 0.043478 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
79143a0066c955a91e5031d54c08221efe7b57ff | 3,027 | py | Python | a10_octavia/controller/worker/tasks/a10_vthunder_db.py | richuc/a10-octavia | dddb3e4695c38cbb72ecf7f99a8e746869590ae2 | [
"Apache-2.0"
] | null | null | null | a10_octavia/controller/worker/tasks/a10_vthunder_db.py | richuc/a10-octavia | dddb3e4695c38cbb72ecf7f99a8e746869590ae2 | [
"Apache-2.0"
] | null | null | null | a10_octavia/controller/worker/tasks/a10_vthunder_db.py | richuc/a10-octavia | dddb3e4695c38cbb72ecf7f99a8e746869590ae2 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019, A10 Networks
#
# 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... | 40.36 | 127 | 0.624711 | 346 | 3,027 | 5.251445 | 0.33526 | 0.079252 | 0.03027 | 0.041827 | 0.531646 | 0.506329 | 0.506329 | 0.506329 | 0.506329 | 0.481563 | 0 | 0.014245 | 0.304262 | 3,027 | 74 | 128 | 40.905405 | 0.848528 | 0.190948 | 0 | 0.565217 | 0 | 0 | 0.050987 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.086957 | 0.065217 | 0 | 0.173913 | 0.065217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
79146771efbd04c1f8b8c2bef6c76add6390d343 | 2,107 | py | Python | 2654.py | ErFer7/URI-Python | 94c36985852204e34806650e4ffec48d4d9e9ab1 | [
"MIT"
] | 1 | 2022-02-06T19:36:33.000Z | 2022-02-06T19:36:33.000Z | 2654.py | ErFer7/URI-Python | 94c36985852204e34806650e4ffec48d4d9e9ab1 | [
"MIT"
] | null | null | null | 2654.py | ErFer7/URI-Python | 94c36985852204e34806650e4ffec48d4d9e9ab1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
check_state = 0
d = {}
p = []
e = []
m = []
n = int(input())
for _ in range(n):
ln = input().split()
d[ln[0]] = (int(ln[1]), int(ln[2]), int(ln[3]))
p.append(int(ln[1]))
e.append(int(ln[2]))
m.append(int(ln[3]))
while True:
if check_state == 0:
if p.cou... | 17.413223 | 74 | 0.320361 | 262 | 2,107 | 2.519084 | 0.179389 | 0.054545 | 0.081818 | 0.063636 | 0.590909 | 0.590909 | 0.590909 | 0.590909 | 0.586364 | 0.586364 | 0 | 0.033368 | 0.544851 | 2,107 | 121 | 75 | 17.413223 | 0.654849 | 0.038918 | 0 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.058824 | 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 |
79150f270451180688e89e1f70970fa8376bde16 | 734 | py | Python | Lintcode/Ladder_1_Algorithm/05. Binary Tree & Divide Conquer/88. Lowest Common Ancestor of a Binary Tree.py | ctc316/algorithm-python | ac4580d55e05e93e407c6156c9bb801808027d60 | [
"MIT"
] | null | null | null | Lintcode/Ladder_1_Algorithm/05. Binary Tree & Divide Conquer/88. Lowest Common Ancestor of a Binary Tree.py | ctc316/algorithm-python | ac4580d55e05e93e407c6156c9bb801808027d60 | [
"MIT"
] | null | null | null | Lintcode/Ladder_1_Algorithm/05. Binary Tree & Divide Conquer/88. Lowest Common Ancestor of a Binary Tree.py | ctc316/algorithm-python | ac4580d55e05e93e407c6156c9bb801808027d60 | [
"MIT"
] | null | null | null | """
Definition of TreeNode:
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
"""
class Solution:
"""
@param: root: The root of the binary search tree.
@param: A: A TreeNode in a Binary.
@param: B: A TreeNode in a Binary.
@return: Return... | 25.310345 | 68 | 0.594005 | 100 | 734 | 4.32 | 0.33 | 0.013889 | 0.050926 | 0.055556 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.316076 | 734 | 29 | 69 | 25.310345 | 0.860558 | 0.434605 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.545455 | 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 |
79167549c46769af5c72f105987860434b74b85e | 1,218 | py | Python | ocradmin/presets/urls.py | mikesname/ocropodium | a3e379cca38dc1999349bf4e9b5608e81dc54b10 | [
"Apache-2.0"
] | 1 | 2018-04-18T20:39:02.000Z | 2018-04-18T20:39:02.000Z | ocradmin/presets/urls.py | mikesname/ocropodium | a3e379cca38dc1999349bf4e9b5608e81dc54b10 | [
"Apache-2.0"
] | null | null | null | ocradmin/presets/urls.py | mikesname/ocropodium | a3e379cca38dc1999349bf4e9b5608e81dc54b10 | [
"Apache-2.0"
] | null | null | null | """
URLConf for OCR presets.
"""
from django.conf.urls.defaults import *
from django.contrib.auth.decorators import login_required
from ocradmin.presets import views
urlpatterns = patterns('',
(r'^builder/?$', login_required(views.builder)),
(r'^builder/(?P<pid>[^/]+)/?$', login_required(views.builder_doc_edit)),
... | 40.6 | 73 | 0.618227 | 154 | 1,218 | 4.733766 | 0.337662 | 0.160494 | 0.197531 | 0.075446 | 0.170096 | 0.065844 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108374 | 1,218 | 29 | 74 | 42 | 0.671271 | 0.019704 | 0 | 0 | 0 | 0 | 0.284992 | 0.159359 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
7921d5ad6408dc462439d4e7fba4356079684665 | 45,831 | py | Python | dgraph/dGraph_readOnly_server.py | dwhitena/vachan-graph | 63aafc03c6077b805ef3f90fbef094493791c656 | [
"MIT"
] | 3 | 2020-03-05T07:26:57.000Z | 2021-10-06T16:06:31.000Z | dgraph/dGraph_readOnly_server.py | dwhitena/vachan-graph | 63aafc03c6077b805ef3f90fbef094493791c656 | [
"MIT"
] | 3 | 2021-09-08T02:33:49.000Z | 2022-03-12T00:50:00.000Z | dgraph/dGraph_readOnly_server.py | dwhitena/vachan-graph | 63aafc03c6077b805ef3f90fbef094493791c656 | [
"MIT"
] | 3 | 2020-08-28T08:04:01.000Z | 2021-10-06T13:40:14.000Z | from fastapi import FastAPI, Query, Path, Body
from fastapi.responses import FileResponse, JSONResponse
from fastapi.staticfiles import StaticFiles
from fastapi.exceptions import RequestValidationError
from starlette.exceptions import HTTPException as StarletteHTTPException
from dGraph_conn import dGraph_conn
import l... | 32.298097 | 1,775 | 0.661866 | 5,679 | 45,831 | 5.240535 | 0.111463 | 0.012096 | 0.019354 | 0.016935 | 0.594772 | 0.557911 | 0.514667 | 0.465408 | 0.434428 | 0.405161 | 0 | 0.016277 | 0.167572 | 45,831 | 1,418 | 1,776 | 32.320874 | 0.763807 | 0.048722 | 0 | 0.487179 | 0 | 0.009615 | 0.406348 | 0.043121 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010417 | false | 0 | 0.009615 | 0 | 0.125 | 0.002404 | 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 |
79229946993e63f0ce02f55945ea3dd96e489cbb | 354 | py | Python | chapter6/variables2.py | cs50sacramento/source-code-16-17 | 8e8276de39ba3106b67549108f6ee4cf71836025 | [
"MIT"
] | null | null | null | chapter6/variables2.py | cs50sacramento/source-code-16-17 | 8e8276de39ba3106b67549108f6ee4cf71836025 | [
"MIT"
] | null | null | null | chapter6/variables2.py | cs50sacramento/source-code-16-17 | 8e8276de39ba3106b67549108f6ee4cf71836025 | [
"MIT"
] | null | null | null | strikeout = 'K'
className = "This is CS50."
age = 30
anotherAge = 63
pi = 3.14
morePi = 3.1415962
fun = True
print("strikeout: {}".format(strikeout))
print("className: {}".format(className))
print("age: {}".format(age))
print("anotherAge: {}".format(anotherAge))
print("pi: {}".format(pi))
print("morePi: {}".format(mor... | 23.6 | 42 | 0.658192 | 46 | 354 | 5.065217 | 0.413043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053628 | 0.10452 | 354 | 15 | 43 | 23.6 | 0.681388 | 0 | 0 | 0 | 0 | 0 | 0.23662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
7924075602830fa9c0e763299ea566e747090626 | 2,100 | py | Python | cinder/volume/drivers/violin/vxg/varray/varray.py | rlucio/cinder-violin-driver-icehouse | 1632bf1bdf67f7e26a586c819dd836f6541c4f3d | [
"Apache-2.0"
] | null | null | null | cinder/volume/drivers/violin/vxg/varray/varray.py | rlucio/cinder-violin-driver-icehouse | 1632bf1bdf67f7e26a586c819dd836f6541c4f3d | [
"Apache-2.0"
] | 1 | 2021-01-12T23:22:22.000Z | 2021-01-12T23:22:22.000Z | cinder/volume/drivers/violin/vxg/varray/varray.py | rlucio/cinder-violin-driver-icehouse | 1632bf1bdf67f7e26a586c819dd836f6541c4f3d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 Violin Memory, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# ... | 31.818182 | 78 | 0.717143 | 316 | 2,100 | 4.64557 | 0.474684 | 0.040872 | 0.032698 | 0.047003 | 0.158719 | 0.13079 | 0.108992 | 0.108992 | 0 | 0 | 0 | 0.011813 | 0.19381 | 2,100 | 65 | 79 | 32.307692 | 0.855286 | 0.318095 | 0 | 0 | 0 | 0 | 0.054432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.214286 | 0.071429 | 0.642857 | 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 |
7931902f8ec6da136334799144ff3ea0767fe518 | 753 | py | Python | dataprofiler/tests/profilers/test_datatype_column_profiler.py | gautomdas/DataProfiler | 7afaa61a814c1bf24c51272dc2aa657397d9f1e5 | [
"Apache-2.0"
] | 690 | 2021-02-19T19:57:31.000Z | 2022-03-29T23:08:39.000Z | dataprofiler/tests/profilers/test_datatype_column_profiler.py | gautomdas/DataProfiler | 7afaa61a814c1bf24c51272dc2aa657397d9f1e5 | [
"Apache-2.0"
] | 179 | 2021-02-17T20:49:16.000Z | 2022-03-21T18:49:49.000Z | dataprofiler/tests/profilers/test_datatype_column_profiler.py | gautomdas/DataProfiler | 7afaa61a814c1bf24c51272dc2aa657397d9f1e5 | [
"Apache-2.0"
] | 48 | 2021-02-19T19:25:32.000Z | 2022-03-21T17:36:50.000Z | from __future__ import print_function
import os
import unittest
from .test_base_column_profilers import AbstractTestColumnProfiler
from dataprofiler.profilers.column_profile_compilers import \
ColumnPrimitiveTypeProfileCompiler
test_root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
cla... | 25.1 | 80 | 0.790173 | 72 | 753 | 7.861111 | 0.555556 | 0.031802 | 0.045936 | 0.053004 | 0.056537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132802 | 753 | 29 | 81 | 25.965517 | 0.866769 | 0 | 0 | 0 | 0 | 0 | 0.067729 | 0.031873 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.294118 | 0 | 0.588235 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7931b9ed0fb931073cb9b5690f7031840549cd62 | 3,080 | py | Python | adaptnlp/callback.py | chsafouane/adaptnlp | 34bfb8fef32d1e59f89a94799db87ed6da774965 | [
"Apache-2.0"
] | 410 | 2020-02-10T02:33:30.000Z | 2022-03-18T15:23:54.000Z | adaptnlp/callback.py | chsafouane/adaptnlp | 34bfb8fef32d1e59f89a94799db87ed6da774965 | [
"Apache-2.0"
] | 73 | 2020-02-19T17:55:07.000Z | 2021-11-27T12:26:09.000Z | adaptnlp/callback.py | chsafouane/adaptnlp | 34bfb8fef32d1e59f89a94799db87ed6da774965 | [
"Apache-2.0"
] | 39 | 2020-02-22T14:07:00.000Z | 2021-12-21T17:39:29.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/01_callback.ipynb (unless otherwise specified).
__all__ = ['GatherInputsCallback', 'SetInputsCallback', 'GeneratorCallback']
# Cell
from fastcore.basics import store_attr
from fastcore.meta import delegates
from fastai.callback.core import Callback, CancelBatchExceptio... | 29.056604 | 96 | 0.621429 | 367 | 3,080 | 5.06812 | 0.370572 | 0.077419 | 0.047312 | 0.035484 | 0.030108 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004054 | 0.279221 | 3,080 | 106 | 97 | 29.056604 | 0.833784 | 0.354221 | 0 | 0.132075 | 1 | 0 | 0.063263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0 | 0.075472 | 0 | 0.283019 | 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 |
79391d3167f77c28d6e2c19155420f2f411a7a4d | 5,895 | py | Python | djangocms_blog/cms_plugins.py | ChameleonCloud/djangocms-blog | 4662c97db8796db31944ce65ca13ef32e1f02202 | [
"BSD-3-Clause"
] | null | null | null | djangocms_blog/cms_plugins.py | ChameleonCloud/djangocms-blog | 4662c97db8796db31944ce65ca13ef32e1f02202 | [
"BSD-3-Clause"
] | null | null | null | djangocms_blog/cms_plugins.py | ChameleonCloud/djangocms-blog | 4662c97db8796db31944ce65ca13ef32e1f02202 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import os.path
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from django.contrib.sites.shortcuts import get_current_site
from django.db import models
from .forms import LatestEntriesFo... | 41.514085 | 99 | 0.715182 | 633 | 5,895 | 6.402844 | 0.194313 | 0.049346 | 0.083395 | 0.073279 | 0.582531 | 0.530225 | 0.48606 | 0.40908 | 0.40908 | 0.40908 | 0 | 0.001461 | 0.187277 | 5,895 | 141 | 100 | 41.808511 | 0.8445 | 0.029347 | 0 | 0.411215 | 0 | 0 | 0.145419 | 0.048356 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065421 | false | 0 | 0.084112 | 0 | 0.616822 | 0.009346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
793dbe6fb33c57458690b53a83b6079b2d70261f | 1,185 | py | Python | flask_app/models/jobmodel.py | BlacksInTechnologyOrg/bit-job-board | 6f8bc45496e2c7e97eb8f89af2bff248a83e97c0 | [
"MIT"
] | 1 | 2018-04-17T22:59:22.000Z | 2018-04-17T22:59:22.000Z | flask_app/models/jobmodel.py | BlacksInTechnologyOrg/bit-job-board | 6f8bc45496e2c7e97eb8f89af2bff248a83e97c0 | [
"MIT"
] | null | null | null | flask_app/models/jobmodel.py | BlacksInTechnologyOrg/bit-job-board | 6f8bc45496e2c7e97eb8f89af2bff248a83e97c0 | [
"MIT"
] | null | null | null | import datetime
import uuid
from bson import json_util
from ..db_init import db, FlaskDocument
from flask_mongoengine import BaseQuerySet
from ..models.user import User
job_status = ("Open", "Closed")
class CustomQuerySet(BaseQuerySet):
def to_json(self):
return "[%s]" % (",".join([doc.to_json() for doc ... | 29.625 | 67 | 0.67173 | 146 | 1,185 | 5.342466 | 0.465753 | 0.1 | 0.023077 | 0.033333 | 0.064103 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006263 | 0.191561 | 1,185 | 39 | 68 | 30.384615 | 0.807933 | 0 | 0 | 0.064516 | 0 | 0 | 0.043038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.193548 | 0.032258 | 0.741935 | 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 |
f701dd084a73bcb11656e05d04be88875e0a57a1 | 184 | py | Python | ps2/test_Lect7.py | John-L-Jones-IV/6.0001 | e58620b7fd59aa369c6d75071311d2930b669d8e | [
"MIT"
] | null | null | null | ps2/test_Lect7.py | John-L-Jones-IV/6.0001 | e58620b7fd59aa369c6d75071311d2930b669d8e | [
"MIT"
] | null | null | null | ps2/test_Lect7.py | John-L-Jones-IV/6.0001 | e58620b7fd59aa369c6d75071311d2930b669d8e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from Lect7 import *
def test_abs():
""" Unit test for abs() """
failure = False
if not failure:
print('SUCESS')
print('Testing abs()...')
test_abs()
| 15.333333 | 29 | 0.619565 | 26 | 184 | 4.307692 | 0.730769 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.195652 | 184 | 11 | 30 | 16.727273 | 0.743243 | 0.228261 | 0 | 0 | 0 | 0 | 0.162963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0.285714 | 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 |
f70ad7d05a2e436c22816e9e6a1f162afbc6f7d6 | 1,239 | py | Python | tests/common/factories/__init__.py | tgiardina/rpp-h | fece590f901b052a59c19a24acfeba52cee33c84 | [
"BSD-2-Clause"
] | 2,103 | 2015-01-07T12:47:49.000Z | 2022-03-29T02:38:25.000Z | tests/common/factories/__init__.py | tgiardina/rpp-h | fece590f901b052a59c19a24acfeba52cee33c84 | [
"BSD-2-Clause"
] | 4,322 | 2015-01-04T17:18:01.000Z | 2022-03-31T17:06:02.000Z | tests/common/factories/__init__.py | tgiardina/rpp-h | fece590f901b052a59c19a24acfeba52cee33c84 | [
"BSD-2-Clause"
] | 389 | 2015-01-24T04:10:02.000Z | 2022-03-28T08:00:16.000Z | """Factory classes for easily generating test objects."""
from .activation import Activation
from .annotation import Annotation
from .annotation_moderation import AnnotationModeration
from .auth_client import AuthClient, ConfidentialAuthClient
from .auth_ticket import AuthTicket
from .authz_code import AuthzCode
from .... | 25.8125 | 59 | 0.736885 | 120 | 1,239 | 7.508333 | 0.383333 | 0.031077 | 0.068812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001955 | 0.174334 | 1,239 | 47 | 60 | 26.361702 | 0.878788 | 0.041162 | 0 | 0 | 0 | 0 | 0.222504 | 0.018613 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f70b19e8b33df4c0fab1ab2a6d898931dffda3c0 | 4,205 | py | Python | azury/asynczury/utils.py | citharus/azury.py | 7079f8f98c68028d17114c830e749254cd483ef2 | [
"Apache-2.0"
] | null | null | null | azury/asynczury/utils.py | citharus/azury.py | 7079f8f98c68028d17114c830e749254cd483ef2 | [
"Apache-2.0"
] | null | null | null | azury/asynczury/utils.py | citharus/azury.py | 7079f8f98c68028d17114c830e749254cd483ef2 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021-present citharus
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use utils.py except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 31.616541 | 75 | 0.572889 | 522 | 4,205 | 4.55364 | 0.260536 | 0.032814 | 0.037863 | 0.035339 | 0.332352 | 0.273875 | 0.238957 | 0.238957 | 0.201094 | 0.160707 | 0 | 0.002716 | 0.299405 | 4,205 | 132 | 76 | 31.856061 | 0.804141 | 0.133175 | 0 | 0.241935 | 0 | 0 | 0.131982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.064516 | 0 | 0.112903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f70d988d5ed014b8b9c619af3b5473012ca3b7cd | 2,041 | py | Python | tokenswap/app/__init__.py | trinity-project/trinity | 081eba1d4294a3bed33ba18c3f7b862b8803ee22 | [
"MIT"
] | 60 | 2018-01-12T07:33:15.000Z | 2021-12-28T23:06:28.000Z | tokenswap/app/__init__.py | trinity-project/trinity | 081eba1d4294a3bed33ba18c3f7b862b8803ee22 | [
"MIT"
] | 13 | 2018-01-23T00:14:35.000Z | 2020-04-23T00:03:31.000Z | tokenswap/app/__init__.py | trinity-project/trinity | 081eba1d4294a3bed33ba18c3f7b862b8803ee22 | [
"MIT"
] | 13 | 2018-01-05T07:27:29.000Z | 2021-01-06T16:45:05.000Z | # -*- coding: utf-8 -*-
__author__ = 'xu'
import os
from functools import wraps
from flask import Flask, Blueprint, jsonify
from flask_peewee.db import Database
from flask_peewee.auth import Auth
from flask_debugtoolbar import DebugToolbarExtension
from flask_mail import Mail
from flask_login import LoginManager
fro... | 27.213333 | 136 | 0.709456 | 286 | 2,041 | 4.814685 | 0.276224 | 0.078431 | 0.096587 | 0.054466 | 0.341322 | 0.213508 | 0.152505 | 0.075527 | 0.075527 | 0 | 0 | 0.005152 | 0.144047 | 2,041 | 75 | 137 | 27.213333 | 0.783057 | 0.299853 | 0 | 0.15 | 0 | 0 | 0.193457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.05 | 0.3 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f713dc570725e17253c9bd8bfdf49979fa3276df | 9,740 | py | Python | registration.py | uzbeki/OmronHVC-2Py3.9.4 | f3e62cf455a82853f73c98be70915d48b24d1c6c | [
"Apache-2.0"
] | null | null | null | registration.py | uzbeki/OmronHVC-2Py3.9.4 | f3e62cf455a82853f73c98be70915d48b24d1c6c | [
"Apache-2.0"
] | null | null | null | registration.py | uzbeki/OmronHVC-2Py3.9.4 | f3e62cf455a82853f73c98be70915d48b24d1c6c | [
"Apache-2.0"
] | null | null | null | # ---------------------------------------------------------------------------
# Copyright 2017-2018 OMRON Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 39.918033 | 95 | 0.549487 | 1,155 | 9,740 | 4.38355 | 0.236364 | 0.027652 | 0.039502 | 0.054513 | 0.334387 | 0.290539 | 0.241359 | 0.203832 | 0.203832 | 0.203832 | 0 | 0.034777 | 0.338706 | 9,740 | 243 | 96 | 40.082305 | 0.751126 | 0 | 0 | 0.295597 | 0 | 0 | 0.121756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006289 | 0.050314 | null | null | 0.106918 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f71908676eab5124d188403862efaa148addfb00 | 3,684 | py | Python | tests/test_filters.py | Ryanb58/algoliaqb | d92a29e46d3ab4fd84685835a2b858e3ba8aecbb | [
"MIT"
] | 4 | 2020-08-28T19:22:02.000Z | 2020-09-04T21:12:43.000Z | tests/test_filters.py | Ryanb58/algoliaqb | d92a29e46d3ab4fd84685835a2b858e3ba8aecbb | [
"MIT"
] | 3 | 2020-08-31T16:05:47.000Z | 2020-09-11T16:31:24.000Z | tests/test_filters.py | Ryanb58/algoliaqb | d92a29e46d3ab4fd84685835a2b858e3ba8aecbb | [
"MIT"
] | null | null | null | from algoliaqb import AlgoliaQueryBuilder
def test_normal_filters():
aqb = AlgoliaQueryBuilder(
search_param="search",
filter_map={
"is_reported": "is_reported"
}
)
flask_request_args = {
"is_reported": True
}
filter_query = aqb.get_filter_query(flask_... | 26.695652 | 97 | 0.575461 | 403 | 3,684 | 4.843672 | 0.143921 | 0.140881 | 0.098361 | 0.068135 | 0.767418 | 0.70082 | 0.679303 | 0.648566 | 0.576332 | 0.533299 | 0 | 0.055071 | 0.314875 | 3,684 | 137 | 98 | 26.890511 | 0.718304 | 0 | 0 | 0.439252 | 0 | 0 | 0.324104 | 0.048317 | 0 | 0 | 0 | 0 | 0.121495 | 1 | 0.037383 | false | 0 | 0.009346 | 0 | 0.046729 | 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 |
f71fd8ed4a60f1f0cb0713800b0c028bb7bc4489 | 16,140 | py | Python | desktop/core/ext-py/pysaml2-4.4.0/src/saml2/cert.py | kokosing/hue | 2307f5379a35aae9be871e836432e6f45138b3d9 | [
"Apache-2.0"
] | 3 | 2018-01-29T14:16:02.000Z | 2019-02-05T21:33:05.000Z | desktop/core/ext-py/pysaml2-4.4.0/src/saml2/cert.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 4 | 2021-03-11T04:02:00.000Z | 2022-03-27T08:31:56.000Z | desktop/core/ext-py/pysaml2-4.4.0/src/saml2/cert.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 2 | 2019-06-17T11:51:56.000Z | 2020-07-25T08:29:56.000Z | __author__ = 'haho0032'
import base64
import datetime
import dateutil.parser
import pytz
import six
from OpenSSL import crypto
from os.path import join
from os import remove
from Cryptodome.Util import asn1
class WrongInput(Exception):
pass
class CertificateError(Exception):
pass
class PayloadError(Except... | 43.621622 | 98 | 0.495291 | 1,657 | 16,140 | 4.639107 | 0.169584 | 0.018213 | 0.020034 | 0.011708 | 0.344218 | 0.321452 | 0.277481 | 0.250683 | 0.205932 | 0.194484 | 0 | 0.01314 | 0.448327 | 16,140 | 369 | 99 | 43.739837 | 0.85018 | 0.41803 | 0 | 0.223958 | 0 | 0 | 0.084572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.09375 | 0.046875 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f72c838e66c47527c0a178012ed8acbdbcfe18e4 | 827 | gyp | Python | ui/aura_extra/aura_extra.gyp | hefen1/chromium | 52f0b6830e000ca7c5e9aa19488af85be792cc88 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ui/aura_extra/aura_extra.gyp | hefen1/chromium | 52f0b6830e000ca7c5e9aa19488af85be792cc88 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ui/aura_extra/aura_extra.gyp | hefen1/chromium | 52f0b6830e000ca7c5e9aa19488af85be792cc88 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2020-04-04T13:34:56.000Z | 2020-11-04T07:17:52.000Z | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'targets': [
{
# GN version: //ui/aura_extra
'target_name': 'aura_extra',
'type': '<(... | 24.323529 | 72 | 0.53688 | 93 | 827 | 4.612903 | 0.580645 | 0.083916 | 0.041958 | 0.055944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008418 | 0.281741 | 827 | 33 | 73 | 25.060606 | 0.713805 | 0.221282 | 0 | 0.142857 | 0 | 0 | 0.549296 | 0.347418 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f73289685bd37aa689ba66d97e917694c4fc2fa7 | 1,147 | py | Python | remake/examples/ex8.py | markmuetz/remake | a3c5098be57b60b01ffaa4a7fcb937f9337dcdea | [
"Apache-2.0"
] | null | null | null | remake/examples/ex8.py | markmuetz/remake | a3c5098be57b60b01ffaa4a7fcb937f9337dcdea | [
"Apache-2.0"
] | 35 | 2020-12-22T11:36:46.000Z | 2021-12-03T15:49:41.000Z | remake/examples/ex8.py | markmuetz/remake | a3c5098be57b60b01ffaa4a7fcb937f9337dcdea | [
"Apache-2.0"
] | null | null | null | """Demonstrates partial run when some input data not there.
"""
from remake import Remake, TaskRule
ex8 = Remake()
class CannotRun(TaskRule):
rule_inputs = {'in1': 'data/inputs/input_not_there.txt'}
rule_outputs = {'out': 'data/inputs/ex8_in1.txt'}
def rule_run(self):
input_text = self.inputs['i... | 28.675 | 101 | 0.617262 | 162 | 1,147 | 4.191358 | 0.32716 | 0.064801 | 0.082474 | 0.061856 | 0.215022 | 0.164948 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.20401 | 1,147 | 39 | 102 | 29.410256 | 0.719606 | 0.048823 | 0 | 0.12 | 0 | 0 | 0.198339 | 0.147601 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.12 | false | 0 | 0.04 | 0 | 0.56 | 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 |
f7378d85ebe9b6cfc3c79ed398382806d5a100e5 | 2,513 | py | Python | test/runtime/frontend_test/chainer_test/functions_test/connection_test/convolution_2d_function_test.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | 1 | 2021-04-09T15:55:35.000Z | 2021-04-09T15:55:35.000Z | test/runtime/frontend_test/chainer_test/functions_test/connection_test/convolution_2d_function_test.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | null | null | null | test/runtime/frontend_test/chainer_test/functions_test/connection_test/convolution_2d_function_test.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | null | null | null | import chainer
import numpy as np
from test.util import generate_kernel_test_case, wrap_template
from webdnn.graph.placeholder import Placeholder
from webdnn.frontend.chainer.converter import ChainerConverter
from webdnn.frontend.chainer.placeholder_variable import PlaceholderVariable
@wrap_template
def template(n=2... | 24.398058 | 107 | 0.657382 | 375 | 2,513 | 4.261333 | 0.256 | 0.052566 | 0.070088 | 0.057572 | 0.272841 | 0.222778 | 0.157697 | 0.145181 | 0.111389 | 0.042553 | 0 | 0.040988 | 0.19419 | 2,513 | 102 | 108 | 24.637255 | 0.748148 | 0.049343 | 0 | 0.242424 | 1 | 0 | 0.04233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.19697 | false | 0 | 0.090909 | 0 | 0.287879 | 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 |
f74258f1688b8229c6b669451669fca5094715dc | 1,318 | py | Python | Excel-Refresh/ExcelRefresh.py | ajhodgson/Python | f98afeef155d489d3626fda02d0afc39502da102 | [
"MIT"
] | null | null | null | Excel-Refresh/ExcelRefresh.py | ajhodgson/Python | f98afeef155d489d3626fda02d0afc39502da102 | [
"MIT"
] | null | null | null | Excel-Refresh/ExcelRefresh.py | ajhodgson/Python | f98afeef155d489d3626fda02d0afc39502da102 | [
"MIT"
] | null | null | null | # ExcelRefresh.py
import win32com.client
import win32con
import shutil
import time
import ctypes
import os
from pathlib import Path
from pythoncom import com_error
def ExcelRefresh (filename, path):
file = filename
SourcePathName = (path + '/')
if os.path.exists(SourcePathName+file):
... | 28.042553 | 203 | 0.573596 | 134 | 1,318 | 5.597015 | 0.552239 | 0.037333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022497 | 0.325493 | 1,318 | 46 | 204 | 28.652174 | 0.821147 | 0.134294 | 0 | 0.064516 | 0 | 0 | 0.116343 | 0.046168 | 0 | 0 | 0.006464 | 0 | 0 | 0 | null | null | 0 | 0.258065 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f743f48c490c683fd697c5d1f8f67b90aef3bce7 | 1,367 | py | Python | knx/text/postagger/default_tagger.py | gofortargets/CNN_brandsafety | 77c9048a7aca9458879585925e98220435c052e9 | [
"Apache-2.0"
] | 2 | 2017-07-27T03:50:37.000Z | 2017-09-28T06:42:52.000Z | knx/text/postagger/default_tagger.py | gofortargets/CNN_brandsafety | 77c9048a7aca9458879585925e98220435c052e9 | [
"Apache-2.0"
] | null | null | null | knx/text/postagger/default_tagger.py | gofortargets/CNN_brandsafety | 77c9048a7aca9458879585925e98220435c052e9 | [
"Apache-2.0"
] | null | null | null | import logging
LOGGER = logging.getLogger(__name__)
try:
# from .import stanford_tagger as postagger
# LOGGER.debug('Use stanford_tagger')
from . import perceptron_tagger as postagger
LOGGER.debug('Use perceptron_tagger')
except:
from . import nltk_tagger as postagger
LOGGER.debug('Use nltk_tagg... | 31.790698 | 98 | 0.637893 | 185 | 1,367 | 4.578378 | 0.378378 | 0.085006 | 0.076741 | 0.081464 | 0.384888 | 0.384888 | 0.172373 | 0.172373 | 0.172373 | 0.172373 | 0 | 0.002901 | 0.243599 | 1,367 | 42 | 99 | 32.547619 | 0.816248 | 0.056328 | 0 | 0.130435 | 0 | 0 | 0.225731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.173913 | null | null | 0.26087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f744e0b119a6a701c52cf4aa92a6a999c4a99b8a | 10,380 | py | Python | midifile/events.py | rmcclain3/motif-generator | 9ba88c49e3fde8e2301cf4b9a13115502e06d1e2 | [
"CC0-1.0"
] | null | null | null | midifile/events.py | rmcclain3/motif-generator | 9ba88c49e3fde8e2301cf4b9a13115502e06d1e2 | [
"CC0-1.0"
] | null | null | null | midifile/events.py | rmcclain3/motif-generator | 9ba88c49e3fde8e2301cf4b9a13115502e06d1e2 | [
"CC0-1.0"
] | null | null | null | import math
class EventRegistry(object):
Events = {}
MetaEvents = {}
def register_event(cls, event, bases):
#print 'registering', event.__name__, bases
if MetaEvent in bases or AbstractTextEvent in bases:
assert event.metacommand not in cls.MetaEvents, \
... | 26.961039 | 79 | 0.577071 | 1,240 | 10,380 | 4.682258 | 0.207258 | 0.049604 | 0.031347 | 0.028419 | 0.239235 | 0.2165 | 0.15794 | 0.122632 | 0.110059 | 0.083018 | 0 | 0.037702 | 0.292197 | 10,380 | 384 | 80 | 27.03125 | 0.752552 | 0.019461 | 0 | 0.222222 | 0 | 0 | 0.076726 | 0 | 0 | 0 | 0.014936 | 0 | 0.010101 | 0 | null | null | 0 | 0.003367 | 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 |
f745fdd14a295c4e8651c7fb9d08f457f9e60559 | 460 | py | Python | checkov/terraform/checks/provider/base_registry.py | pmalkki/checkov | b6cdf386dd976fe27c16fed6d550756a678a5d7b | [
"Apache-2.0"
] | 4,013 | 2019-12-09T13:16:54.000Z | 2022-03-31T14:31:01.000Z | checkov/terraform/checks/provider/base_registry.py | pmalkki/checkov | b6cdf386dd976fe27c16fed6d550756a678a5d7b | [
"Apache-2.0"
] | 1,258 | 2019-12-17T09:55:51.000Z | 2022-03-31T19:17:17.000Z | checkov/terraform/checks/provider/base_registry.py | pmalkki/checkov | b6cdf386dd976fe27c16fed6d550756a678a5d7b | [
"Apache-2.0"
] | 638 | 2019-12-19T08:57:38.000Z | 2022-03-30T21:38:37.000Z | from typing import Dict, Any, Tuple
from checkov.common.checks.base_check_registry import BaseCheckRegistry
class Registry(BaseCheckRegistry):
def extract_entity_details(self, entity: Dict[str, Any]) -> Tuple[str, str, Dict[str, Any]]:
provider_type = list(entity.keys())[0]
provider_name = list(e... | 38.333333 | 96 | 0.73913 | 57 | 460 | 5.77193 | 0.491228 | 0.109422 | 0.06079 | 0.091185 | 0.139818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005181 | 0.16087 | 460 | 11 | 97 | 41.818182 | 0.84715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.625 | 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 |
f748207f83f8fb793d895e5e11eaad963944a64f | 636 | py | Python | christmasflix/admin.py | jbettenh/last_christmas | 2f861afbdf67ca69df0e7ed815a870c5bb4feb19 | [
"MIT"
] | null | null | null | christmasflix/admin.py | jbettenh/last_christmas | 2f861afbdf67ca69df0e7ed815a870c5bb4feb19 | [
"MIT"
] | 1 | 2021-11-03T20:16:50.000Z | 2021-12-22T16:05:44.000Z | christmasflix/admin.py | jbettenh/last_christmas | 2f861afbdf67ca69df0e7ed815a870c5bb4feb19 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import MovieList, Movie
class MoviesInline(admin.TabularInline):
model = Movie
extra = 1
fieldsets = [
('Movies', {'fields': ['title']}),
(None, {'fields': ['movielist']})
]
class MovieListAdmin(admin.ModelAdmin):
fieldsets = [
... | 21.931034 | 84 | 0.619497 | 60 | 636 | 6.483333 | 0.566667 | 0.084833 | 0.087404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001988 | 0.20912 | 636 | 28 | 85 | 22.714286 | 0.771372 | 0 | 0 | 0.105263 | 0 | 0 | 0.198425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.578947 | 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 |
f749ad29044e6ec95621af4354188b7f399362ab | 146 | py | Python | TKINTER/from youtube/first tkinter program.py | Advik-B/Learn-Python | 66ac57259764e8f2c3c6513a8de6c106800d8abe | [
"MIT"
] | 6 | 2021-07-26T14:21:25.000Z | 2021-07-26T14:32:01.000Z | TKINTER/from youtube/first tkinter program.py | Advik-B/Learn-Python | 66ac57259764e8f2c3c6513a8de6c106800d8abe | [
"MIT"
] | 2 | 2021-12-10T10:25:19.000Z | 2021-12-10T10:27:15.000Z | TKINTER/from youtube/first tkinter program.py | Advik-B/Learn-Python | 66ac57259764e8f2c3c6513a8de6c106800d8abe | [
"MIT"
] | null | null | null | from tkinter import *
root = Tk()
'''
Creating a label widget
'''
mylabel = Label(root, text= 'Hello World')
mylabel.pack()
root.mainloop() | 9.733333 | 42 | 0.657534 | 19 | 146 | 5.052632 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184932 | 146 | 15 | 43 | 9.733333 | 0.806723 | 0 | 0 | 0 | 0 | 0 | 0.096491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
f74b883dc11e23e3931c0be0f84e6c49c5b4d5c0 | 416 | py | Python | cython_setup.py | paroj/async-ev-cnn | f7e70e75b07f43afef8ffd7eaf6f43ddefab0ae0 | [
"MIT"
] | 6 | 2021-03-04T07:44:10.000Z | 2022-02-28T14:49:53.000Z | cython_setup.py | paroj/async-ev-cnn | f7e70e75b07f43afef8ffd7eaf6f43ddefab0ae0 | [
"MIT"
] | 1 | 2022-03-10T02:12:31.000Z | 2022-03-10T02:12:31.000Z | cython_setup.py | paroj/async-ev-cnn | f7e70e75b07f43afef8ffd7eaf6f43ddefab0ae0 | [
"MIT"
] | 4 | 2021-07-27T06:11:33.000Z | 2022-03-25T03:32:44.000Z | from sys import platform
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
import numpy
ext_modules = [
Extension(
"src.libs.cutils",
["src/libs/cutils.pyx"],
extra_compile_args=['/openmp' if platform == "win32" else '-fopenmp']
... | 21.894737 | 77 | 0.697115 | 51 | 416 | 5.54902 | 0.568627 | 0.106007 | 0.091873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005935 | 0.189904 | 416 | 19 | 78 | 21.894737 | 0.833828 | 0 | 0 | 0 | 0 | 0 | 0.129496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f750153448f74dd654e1cadf1dd4c391b2aedfaf | 12,692 | py | Python | src/tiden_gridgain/apps/mysql/mysql.py | mshonichev/tiden_gridgain | a1d8c4093efa9ce580c60be8071b8c3b7a2624ca | [
"Apache-2.0"
] | null | null | null | src/tiden_gridgain/apps/mysql/mysql.py | mshonichev/tiden_gridgain | a1d8c4093efa9ce580c60be8071b8c3b7a2624ca | [
"Apache-2.0"
] | null | null | null | src/tiden_gridgain/apps/mysql/mysql.py | mshonichev/tiden_gridgain | a1d8c4093efa9ce580c60be8071b8c3b7a2624ca | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from tiden.apps.app import App
from tiden.apps.nodestatus import NodeStatus
from tiden.util import *
class Mysql(App):
tmp_pwd_log_tag = "A temporary password is generated for root@localhost:"
account_tmpl = [
"CREATE USER '__USER__'@'__HOST__' IDENTIFIED BY '__PWD__';",
... | 38 | 113 | 0.451229 | 1,375 | 12,692 | 3.955636 | 0.141818 | 0.054422 | 0.052399 | 0.059386 | 0.480603 | 0.439051 | 0.369369 | 0.293252 | 0.241221 | 0.187351 | 0 | 0.011446 | 0.421762 | 12,692 | 333 | 114 | 38.114114 | 0.729663 | 0.001655 | 0 | 0.268371 | 1 | 0.01278 | 0.141594 | 0.008445 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047923 | false | 0.028754 | 0.009585 | 0.003195 | 0.076677 | 0.019169 | 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 |
f75165cda84438163a129fa0bef0dd311a2e575b | 3,653 | py | Python | src/Iowa.py | DRyanMiller/JobSpecs | fba885fec4cc3e268afe5c5898c5e00bba759794 | [
"RSA-MD"
] | null | null | null | src/Iowa.py | DRyanMiller/JobSpecs | fba885fec4cc3e268afe5c5898c5e00bba759794 | [
"RSA-MD"
] | null | null | null | src/Iowa.py | DRyanMiller/JobSpecs | fba885fec4cc3e268afe5c5898c5e00bba759794 | [
"RSA-MD"
] | null | null | null | !pip install PyPDF2
import PyPDF2
import re
import json
from datetime import datetime
import boto3
pdf = '/Users/dryanmiller/Desktop/Rehabilitation Counselor.pdf'
dynamodb = boto3.resource(‘dynamodb’)
table = dynamodb.Table('JobSpecs')
response = s3.get_object(Bucket=bucket, Key=key)
class Iowa():
def __ini... | 34.790476 | 121 | 0.627703 | 392 | 3,653 | 5.693878 | 0.252551 | 0.032258 | 0.034498 | 0.045699 | 0.280018 | 0.216846 | 0.133513 | 0.133513 | 0.133513 | 0.133513 | 0 | 0.009489 | 0.249932 | 3,653 | 104 | 122 | 35.125 | 0.805109 | 0 | 0 | 0.146341 | 0 | 0 | 0.12346 | 0.043526 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.060976 | 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 |
f7541573696b2904ec9be42f9bc44295807898f5 | 2,711 | py | Python | test/connections/mongoconnection_test.py | deeso/service-utilities | 9a3ebdcad9a1d0049a23e3486d7ea99a6d08f81a | [
"Apache-2.0"
] | null | null | null | test/connections/mongoconnection_test.py | deeso/service-utilities | 9a3ebdcad9a1d0049a23e3486d7ea99a6d08f81a | [
"Apache-2.0"
] | null | null | null | test/connections/mongoconnection_test.py | deeso/service-utilities | 9a3ebdcad9a1d0049a23e3486d7ea99a6d08f81a | [
"Apache-2.0"
] | null | null | null | # import docker
from service.utilities.connection import ConnectionFactory, MongoConnection
import unittest
from unittest import TestCase
import toml
EXAMPLE_TOML = '''
uri = 'mongodb://127.0.0.1:27017'
name = "testing"
default_dbname = 'mydefault'
default_colname = 'mydefault_col'
id_key = 'msg2_id'
'''
class Te... | 32.27381 | 75 | 0.627444 | 309 | 2,711 | 5.31068 | 0.262136 | 0.119439 | 0.080439 | 0.063376 | 0.454601 | 0.397928 | 0.296161 | 0.296161 | 0.262035 | 0.262035 | 0 | 0.025173 | 0.252674 | 2,711 | 83 | 76 | 32.662651 | 0.784798 | 0.016968 | 0 | 0.328125 | 0 | 0 | 0.094325 | 0.010147 | 0 | 0 | 0 | 0.012048 | 0.234375 | 1 | 0.046875 | false | 0 | 0.0625 | 0 | 0.125 | 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 |
f7591892a21c17f2024fa7e993cd4a2d0221fef7 | 4,016 | py | Python | tests/test_manage.py | james-portman/openstack-ansible | 882d98c94b6e429dec9d66d26722ed457e3b18b9 | [
"Apache-2.0"
] | null | null | null | tests/test_manage.py | james-portman/openstack-ansible | 882d98c94b6e429dec9d66d26722ed457e3b18b9 | [
"Apache-2.0"
] | null | null | null | tests/test_manage.py | james-portman/openstack-ansible | 882d98c94b6e429dec9d66d26722ed457e3b18b9 | [
"Apache-2.0"
] | 1 | 2018-05-21T18:41:51.000Z | 2018-05-21T18:41:51.000Z | #!/usr/bin/env python
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software... | 31.622047 | 75 | 0.668327 | 525 | 4,016 | 4.87619 | 0.300952 | 0.054688 | 0.028125 | 0.0375 | 0.489063 | 0.473047 | 0.455859 | 0.441797 | 0.434766 | 0.434766 | 0 | 0.002252 | 0.226096 | 4,016 | 126 | 76 | 31.873016 | 0.821429 | 0.166584 | 0 | 0.441558 | 0 | 0 | 0.091346 | 0.013822 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.220779 | false | 0 | 0.064935 | 0 | 0.311688 | 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 |
f75a2f67ff98ffc04b4df0f1499e899d4aa4af8b | 3,524 | py | Python | liquid/builtin/filters/math.py | jg-rp/liquid | a2946d3ee7f8ac0c8db05f943ff8deb10bfad18c | [
"MIT"
] | 19 | 2021-03-20T05:44:23.000Z | 2022-03-24T18:34:34.000Z | liquid/builtin/filters/math.py | jg-rp/liquid | a2946d3ee7f8ac0c8db05f943ff8deb10bfad18c | [
"MIT"
] | 50 | 2020-12-07T15:30:56.000Z | 2022-03-25T17:10:10.000Z | liquid/builtin/filters/math.py | jg-rp/liquid | a2946d3ee7f8ac0c8db05f943ff8deb10bfad18c | [
"MIT"
] | 3 | 2021-01-24T15:51:22.000Z | 2022-03-25T16:00:17.000Z | """Maths related filter definitions."""
import math
import decimal
from typing import Optional
from typing import Union
from liquid.context import is_undefined
from liquid.exceptions import FilterArgumentError
from liquid.filter import math_filter
from liquid.filter import num_arg
from liquid.filter import int_arg
... | 26.900763 | 82 | 0.677639 | 495 | 3,524 | 4.763636 | 0.185859 | 0.050891 | 0.060645 | 0.047498 | 0.636132 | 0.536048 | 0.536048 | 0.503817 | 0.453774 | 0.425785 | 0 | 0.003608 | 0.213394 | 3,524 | 130 | 83 | 27.107692 | 0.847042 | 0.238082 | 0 | 0.371429 | 0 | 0 | 0.025591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157143 | false | 0 | 0.128571 | 0 | 0.528571 | 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 |
f76046385f25c616dd78da1b282bcd04b4050b98 | 1,549 | py | Python | config.py | pastgift/web-app-template-py | 3556db189a6bbd3cb04993e4780aef08276861b6 | [
"MIT"
] | null | null | null | config.py | pastgift/web-app-template-py | 3556db189a6bbd3cb04993e4780aef08276861b6 | [
"MIT"
] | 5 | 2021-03-18T20:21:29.000Z | 2022-03-11T23:15:33.000Z | config.py | pastgift/web-app-template-py | 3556db189a6bbd3cb04993e4780aef08276861b6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import yaml
basedir = os.path.abspath(os.path.dirname(__file__))
# Load ACL Action file
_ACL_ACTIONS = None
with open(basedir + '/acl-actions.yaml') as _f:
_ACL_ACTIONS = yaml.load(_f.read())
class Config(object):
ADMIN_USERNAME = os.environ.get('ADMIN_USERNA... | 32.270833 | 87 | 0.657844 | 178 | 1,549 | 5.410112 | 0.494382 | 0.093458 | 0.049844 | 0.062305 | 0.141225 | 0.141225 | 0.141225 | 0.141225 | 0 | 0 | 0 | 0.00678 | 0.238218 | 1,549 | 47 | 88 | 32.957447 | 0.809322 | 0.027114 | 0 | 0 | 0 | 0 | 0.134309 | 0.014628 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.083333 | 0 | 0.638889 | 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 |
f76302fdd32732a3af8c06eed2014cb405fc1e7b | 688 | py | Python | mayan/apps/announcements/permissions.py | nattangwiwat/Mayan-EDMS-recitation | fcf16afb56eae812fb99144d65ae1ae6749de0b7 | [
"Apache-2.0"
] | 343 | 2015-01-05T14:19:35.000Z | 2018-12-10T19:07:48.000Z | mayan/apps/announcements/permissions.py | nattangwiwat/Mayan-EDMS-recitation | fcf16afb56eae812fb99144d65ae1ae6749de0b7 | [
"Apache-2.0"
] | 191 | 2015-01-03T00:48:19.000Z | 2018-11-30T09:10:25.000Z | mayan/apps/announcements/permissions.py | nattangwiwat/Mayan-EDMS-recitation | fcf16afb56eae812fb99144d65ae1ae6749de0b7 | [
"Apache-2.0"
] | 257 | 2019-05-14T10:26:37.000Z | 2022-03-30T03:37:36.000Z | from django.utils.translation import ugettext_lazy as _
from mayan.apps.permissions import PermissionNamespace
namespace = PermissionNamespace(
label=_('Announcements'), name='announcements'
)
permission_announcement_create = namespace.add_permission(
label=_('Create announcements'), name='announcement_creat... | 32.761905 | 63 | 0.803779 | 68 | 688 | 7.794118 | 0.338235 | 0.160377 | 0.166038 | 0.203774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097384 | 688 | 20 | 64 | 34.4 | 0.853462 | 0 | 0 | 0 | 0 | 0 | 0.252907 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 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 |
f766ac747837772218e6125fdc26de526b08253e | 4,364 | py | Python | skimage/filter/_gabor.py | neurodebian/scikits.image-1 | 33206f87c5e0208e7ff0d5910ac082b3353fe04e | [
"BSD-3-Clause"
] | 3 | 2017-12-15T01:37:10.000Z | 2021-07-23T09:26:48.000Z | skimage/filter/_gabor.py | neurodebian/scikits.image-1 | 33206f87c5e0208e7ff0d5910ac082b3353fe04e | [
"BSD-3-Clause"
] | null | null | null | skimage/filter/_gabor.py | neurodebian/scikits.image-1 | 33206f87c5e0208e7ff0d5910ac082b3353fe04e | [
"BSD-3-Clause"
] | 2 | 2015-04-16T12:14:22.000Z | 2019-08-07T14:03:36.000Z | import numpy as np
from scipy import ndimage
__all__ = ['gabor_kernel', 'gabor_filter']
def _sigma_prefactor(bandwidth):
b = bandwidth
# See http://www.cs.rug.nl/~imaging/simplecell.html
return 1.0 / np.pi * np.sqrt(np.log(2)/2.0) * (2.0**b + 1) / (2.0**b - 1)
def gabor_kernel(frequency, theta=0, band... | 35.770492 | 79 | 0.647113 | 638 | 4,364 | 4.335423 | 0.233542 | 0.036876 | 0.019884 | 0.023138 | 0.672451 | 0.660159 | 0.660159 | 0.657267 | 0.621837 | 0.621837 | 0 | 0.015506 | 0.246334 | 4,364 | 121 | 80 | 36.066116 | 0.825479 | 0.580889 | 0 | 0 | 0 | 0 | 0.019745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.064516 | 0 | 0.258065 | 0 | 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 |
f7676c3cc3e3bc5a86900870e06d3cc68de5d08d | 281 | py | Python | setup.py | rogalski/python-compat-libs-study | 53ae17480004b38105cb0af17343c69c517f3421 | [
"MIT"
] | null | null | null | setup.py | rogalski/python-compat-libs-study | 53ae17480004b38105cb0af17343c69c517f3421 | [
"MIT"
] | null | null | null | setup.py | rogalski/python-compat-libs-study | 53ae17480004b38105cb0af17343c69c517f3421 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from setuptools import setup
setup(name='compatstudy',
url='http://github.com/rogalski/python-compat-libs-study',
author='Łukasz Rogalski',
author_email='rogalski.91@gmail.com',
license='MIT',
packages=['compatstudy']
)
| 25.545455 | 64 | 0.637011 | 32 | 281 | 5.5625 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013216 | 0.192171 | 281 | 10 | 65 | 28.1 | 0.770925 | 0.074733 | 0 | 0 | 0 | 0 | 0.434109 | 0.081395 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7692ce50ec66b710bc6ede575cd64d7be5cf25d | 870 | py | Python | app/__init__.py | GeorgeVasiliadis/confidant | 7650f53c68b153c80c8c7e10f8916551699b54c6 | [
"Apache-2.0"
] | 2 | 2021-07-10T13:00:26.000Z | 2021-07-11T10:56:55.000Z | app/__init__.py | GeorgeVasiliadis/confidant | 7650f53c68b153c80c8c7e10f8916551699b54c6 | [
"Apache-2.0"
] | null | null | null | app/__init__.py | GeorgeVasiliadis/confidant | 7650f53c68b153c80c8c7e10f8916551699b54c6 | [
"Apache-2.0"
] | null | null | null | from flask import Flask, render_template
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_migrate import Migrate
from config import Config
db = SQLAlchemy()
login_manager = LoginManager()
migrate = Migrate()
def create_app():
app = Flask(__name__)
app.config.from_object... | 23.513514 | 49 | 0.754023 | 117 | 870 | 5.384615 | 0.264957 | 0.095238 | 0.08254 | 0.069841 | 0.092063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173563 | 870 | 36 | 50 | 24.166667 | 0.876217 | 0 | 0 | 0 | 0 | 0 | 0.029885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.346154 | 0 | 0.423077 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f76b9c385c890ec5bbfb05f8d00d6692fee233b3 | 503 | py | Python | setup.py | ofhellsfire/cdjs | d181eb42ad8076ca592d4b40b5c8f92c46bc757c | [
"MIT"
] | 1 | 2021-02-27T15:05:09.000Z | 2021-02-27T15:05:09.000Z | setup.py | ofhellsfire/cdjs | d181eb42ad8076ca592d4b40b5c8f92c46bc757c | [
"MIT"
] | null | null | null | setup.py | ofhellsfire/cdjs | d181eb42ad8076ca592d4b40b5c8f92c46bc757c | [
"MIT"
] | null | null | null | from setuptools import setup
from setuptools_rust import Binding, RustExtension
setup(
name="cdjs",
version="0.1.5",
rust_extensions=[RustExtension("cdjs.cdjs", binding=Binding.PyO3)],
packages=["cdjs"],
author="ofhellsfire",
author_email="ofhellsfire@yandex.ru",
description="Custom Datetim... | 27.944444 | 71 | 0.703777 | 62 | 503 | 5.629032 | 0.677419 | 0.080229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014218 | 0.161034 | 503 | 17 | 72 | 29.588235 | 0.812796 | 0.11332 | 0 | 0 | 0 | 0 | 0.282167 | 0.047404 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f771fba2e30ec8c89205cafe3854d9b23a06b96f | 1,653 | py | Python | estorage/archive/state.py | EnergyModels/estorage | 0f84c87632dba1ff0564ffb68f59ece314f67022 | [
"MIT"
] | null | null | null | estorage/archive/state.py | EnergyModels/estorage | 0f84c87632dba1ff0564ffb68f59ece314f67022 | [
"MIT"
] | null | null | null | estorage/archive/state.py | EnergyModels/estorage | 0f84c87632dba1ff0564ffb68f59ece314f67022 | [
"MIT"
] | null | null | null | from CoolProp.CoolProp import PropsSI
import pandas as pd
class State:
self.fluid = T
self.T = T
self.p = p
self.h = PropsSI('H', 'T', T, 'P', p, fluid)
self.s = PropsSI('S', 'T', T, 'P', p, fluid)
self.D = PropsSI('D', 'T', T, 'P', p, fluid)
class Flow(State):
self.m_dot = T
def def_st... | 22.958333 | 62 | 0.514217 | 281 | 1,653 | 2.992883 | 0.120996 | 0.047562 | 0.032105 | 0.042806 | 0.740785 | 0.730083 | 0.646849 | 0.637337 | 0.485137 | 0.485137 | 0 | 0.008936 | 0.255293 | 1,653 | 71 | 63 | 23.28169 | 0.674249 | 0.019964 | 0 | 0.489796 | 0 | 0 | 0.052534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0 | 0.040816 | 0 | 0.244898 | 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 |
f77ad38211a519424054de39126f929ce8aa4fbc | 1,425 | py | Python | app/api.py | eugenekoran/twitter_disaster_project | addb719ff68418a9e2a51c520c67c86e84bcf1f4 | [
"MIT"
] | 2 | 2018-01-19T07:31:05.000Z | 2018-10-16T13:03:54.000Z | app/api.py | eugenekoran/twitter_disaster_project | addb719ff68418a9e2a51c520c67c86e84bcf1f4 | [
"MIT"
] | null | null | null | app/api.py | eugenekoran/twitter_disaster_project | addb719ff68418a9e2a51c520c67c86e84bcf1f4 | [
"MIT"
] | null | null | null | # encoding: utf-8
from flask import Flask
from flask_restful import Resource, Api
from flask_restful import reqparse
import cPickle as pickle
from keras.preprocessing import sequence
from keras.preprocessing.text import Tokenizer
from utils import load_production_model
app = Flask(__name__)
api = Api(app)
with open... | 27.403846 | 80 | 0.666667 | 188 | 1,425 | 4.861702 | 0.446809 | 0.008753 | 0.035011 | 0.04814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008945 | 0.215439 | 1,425 | 51 | 81 | 27.941176 | 0.808587 | 0.010526 | 0 | 0 | 0 | 0 | 0.132852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.205882 | null | null | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f77cdcf8f18082443efcc56496878245f82b8038 | 438 | py | Python | resume/migrations/0003_auto_20210510_2012.py | Murtrag/AutoResume | 20a4874904454a19ff6edba412429c543451642b | [
"MIT"
] | null | null | null | resume/migrations/0003_auto_20210510_2012.py | Murtrag/AutoResume | 20a4874904454a19ff6edba412429c543451642b | [
"MIT"
] | 47 | 2020-12-07T18:25:02.000Z | 2022-03-30T08:01:32.000Z | resume/migrations/0003_auto_20210510_2012.py | Murtrag/AutoResume | 20a4874904454a19ff6edba412429c543451642b | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2021-05-10 20:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('resume', '0002_auto_20210510_1946'),
]
operations = [
migrations.AlterField(
model_name='language',
name='image',
... | 23.052632 | 102 | 0.616438 | 50 | 438 | 5.28 | 0.86 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099071 | 0.262557 | 438 | 18 | 103 | 24.333333 | 0.718266 | 0.10274 | 0 | 0 | 1 | 0 | 0.207161 | 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 |
f7836f251a6d0e7ee15e7a67fa1a04d508ee3075 | 760 | gyp | Python | javascript/smrf-native/binding.gyp | bmwcarit/smrf | 1df475f7f391c44221135443bf137a3b6c584f10 | [
"Apache-2.0"
] | 4 | 2017-03-29T06:51:03.000Z | 2021-09-21T19:56:50.000Z | javascript/smrf-native/binding.gyp | bmwcarit/smrf | 1df475f7f391c44221135443bf137a3b6c584f10 | [
"Apache-2.0"
] | null | null | null | javascript/smrf-native/binding.gyp | bmwcarit/smrf | 1df475f7f391c44221135443bf137a3b6c584f10 | [
"Apache-2.0"
] | 2 | 2018-05-08T07:27:47.000Z | 2019-09-25T14:40:55.000Z | {
'variables': {
'SMRF_LIB_DIR': '/usr/local/lib',
'SMRF_INCLUDE_DIR': '/usr/local/include'
},
'targets': [
{
'target_name': 'smrf-native-cpp',
'sources': [ 'src/smrf.cpp' ],
'cflags_cc': [ '-std=c++14' ],
'cflags!': [ '-fno-exceptions'],
'cflags_cc!': [ '-fno-exceptions'],
'incl... | 24.516129 | 75 | 0.446053 | 70 | 760 | 4.571429 | 0.585714 | 0.065625 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007797 | 0.325 | 760 | 30 | 76 | 25.333333 | 0.615984 | 0 | 0 | 0.066667 | 0 | 0 | 0.510526 | 0.068421 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f78493fdf84428eb91486810d7c55f0767f10257 | 5,831 | py | Python | tests/PySys/environments/environment_c8y.py | z8674558/thin-edge.io | 75650d05fc3eea0a3ccedc543d375dbe4b91b79c | [
"Apache-2.0"
] | 1 | 2021-11-29T16:42:40.000Z | 2021-11-29T16:42:40.000Z | tests/PySys/environments/environment_c8y.py | Bilal3429/thin-edge.io | e0efd463884ac6d58f7387112f3fd7c9831feece | [
"Apache-2.0"
] | null | null | null | tests/PySys/environments/environment_c8y.py | Bilal3429/thin-edge.io | e0efd463884ac6d58f7387112f3fd7c9831feece | [
"Apache-2.0"
] | null | null | null | import json
from pysys.constants import FAILED
import requests
from pysys.basetest import BaseTest
"""
Environment to manage automated connect and disconnect to c8y
Tests that derive from class EnvironmentC8y use automated connect and
disconnect to Cumulocity. Additional checks are made for the status of
service mosq... | 33.511494 | 111 | 0.608643 | 641 | 5,831 | 5.410296 | 0.207488 | 0.03489 | 0.059689 | 0.070069 | 0.506632 | 0.401384 | 0.343137 | 0.343137 | 0.303922 | 0.264706 | 0 | 0.011087 | 0.288458 | 5,831 | 173 | 112 | 33.705202 | 0.824777 | 0.050077 | 0 | 0.301587 | 0 | 0 | 0.175801 | 0.009482 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087302 | false | 0.055556 | 0.031746 | 0.015873 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f78b61b23fa1fb45c501a01d03064ac00fd7b20e | 7,259 | py | Python | create_tasklist.py | baluneboy/tasklist | 7043a18c4d62d2e47fa53d0c64fce1eb9d786b09 | [
"MIT"
] | null | null | null | create_tasklist.py | baluneboy/tasklist | 7043a18c4d62d2e47fa53d0c64fce1eb9d786b09 | [
"MIT"
] | null | null | null | create_tasklist.py | baluneboy/tasklist | 7043a18c4d62d2e47fa53d0c64fce1eb9d786b09 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import datetime
import operator
import inflect
import pandas as pd
from anytree import NodeMixin, RenderTree
from dateutil.relativedelta import relativedelta
class DateTitle(object):
"""topmost, simple task (date stuff) object"""
def __init__(self, date):
self.date = date
... | 33.606481 | 105 | 0.576526 | 928 | 7,259 | 4.34375 | 0.202586 | 0.025304 | 0.017365 | 0.021087 | 0.361449 | 0.249814 | 0.181841 | 0.110146 | 0.092781 | 0.092781 | 0 | 0.023597 | 0.276071 | 7,259 | 215 | 106 | 33.762791 | 0.743482 | 0.090095 | 0 | 0.158621 | 0 | 0 | 0.094272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041379 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f78fe0a8722e8ad6d999569e03462ed7895f675f | 7,865 | py | Python | app/python_file/blurdetectiongui.py | albertjuntak04/ditenun-web-1 | fa97ea0705f35579e5374551472cc63cc8b42da4 | [
"MIT"
] | null | null | null | app/python_file/blurdetectiongui.py | albertjuntak04/ditenun-web-1 | fa97ea0705f35579e5374551472cc63cc8b42da4 | [
"MIT"
] | null | null | null | app/python_file/blurdetectiongui.py | albertjuntak04/ditenun-web-1 | fa97ea0705f35579e5374551472cc63cc8b42da4 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# GUI module generated by PAGE version 4.14
# In conjunction with Tcl version 8.6
# Jun 21, 2018 09:40:52 AM
import sys
from imutils import paths
import cv2
from PIL import Image as PilImage
from PIL import ImageTk
from tkinter import filedialog
try:
from Tkint... | 37.8125 | 89 | 0.653401 | 883 | 7,865 | 5.780294 | 0.252548 | 0.035266 | 0.039185 | 0.056426 | 0.110306 | 0.05094 | 0.026254 | 0.026254 | 0 | 0 | 0 | 0.072536 | 0.212969 | 7,865 | 207 | 90 | 37.995169 | 0.752019 | 0.07438 | 0 | 0.05 | 1 | 0 | 0.103096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0375 | false | 0 | 0.08125 | 0 | 0.13125 | 0.00625 | 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 |
f790e100eba87df546e7184db96ecf798762e847 | 13,389 | py | Python | dnanexus/filter_qc/src/filter_qc.py | strattan/test-merge2 | 2bc5a7c94fb06cff163ab3674dbb319e45976d17 | [
"MIT"
] | 108 | 2015-06-30T19:38:12.000Z | 2022-03-09T06:50:59.000Z | dnanexus/filter_qc/src/filter_qc.py | strattan/test-merge2 | 2bc5a7c94fb06cff163ab3674dbb319e45976d17 | [
"MIT"
] | 7 | 2017-06-28T06:43:41.000Z | 2021-09-07T05:33:04.000Z | dnanexus/filter_qc/src/filter_qc.py | strattan/test-merge2 | 2bc5a7c94fb06cff163ab3674dbb319e45976d17 | [
"MIT"
] | 59 | 2015-08-29T10:26:24.000Z | 2021-06-25T02:27:20.000Z | #!/usr/bin/env python
# filter_qc 0.0.1
# Generated by dx-app-wizard.
#
# Basic execution pattern: Your app will run on a single machine from
# beginning to end.
#
# See https://wiki.dnanexus.com/Developer-Portal for documentation and
# tutorials on how to modify this file.
#
# DNAnexus Python Bindings (dxpy) documenta... | 37.715493 | 175 | 0.614236 | 1,663 | 13,389 | 4.702946 | 0.214672 | 0.033755 | 0.024933 | 0.020586 | 0.321059 | 0.23309 | 0.186165 | 0.135405 | 0.13029 | 0.094361 | 0 | 0.010662 | 0.25745 | 13,389 | 354 | 176 | 37.822034 | 0.776001 | 0.201807 | 0 | 0.193133 | 1 | 0 | 0.173118 | 0.034643 | 0 | 0 | 0 | 0.002825 | 0 | 1 | 0.017167 | false | 0 | 0.034335 | 0 | 0.081545 | 0.004292 | 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 |
f794fc8ad704f5a8ae7eeb916a29d8339c057e52 | 943 | py | Python | Python Code/terminal.py | imadarshj/PMS | eadb62dc18cc338b37be397ebd7384b33020d741 | [
"MIT"
] | null | null | null | Python Code/terminal.py | imadarshj/PMS | eadb62dc18cc338b37be397ebd7384b33020d741 | [
"MIT"
] | null | null | null | Python Code/terminal.py | imadarshj/PMS | eadb62dc18cc338b37be397ebd7384b33020d741 | [
"MIT"
] | 1 | 2022-02-17T06:16:57.000Z | 2022-02-17T06:16:57.000Z | ##################################################################################################################################
# Adarsh , Aadithya #
###################################################... | 30.419355 | 137 | 0.30965 | 56 | 943 | 5.196429 | 0.696429 | 0.075601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008097 | 0.21421 | 943 | 30 | 138 | 31.433333 | 0.384615 | 0.211029 | 0 | 0 | 0 | 0 | 0.251701 | 0.159864 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f799f5196c190b83518a2be1a9ecd6cab24fd01b | 1,098 | py | Python | tests/test_data.py | tsnee/restful-analytics | ce5862669986ade9b570ff7eb33ed8ab05ee4c5c | [
"Unlicense"
] | null | null | null | tests/test_data.py | tsnee/restful-analytics | ce5862669986ade9b570ff7eb33ed8ab05ee4c5c | [
"Unlicense"
] | 15 | 2018-11-04T22:40:46.000Z | 2019-03-13T14:27:26.000Z | tests/test_data.py | tsnee/restful-analytics | ce5862669986ade9b570ff7eb33ed8ab05ee4c5c | [
"Unlicense"
] | null | null | null | def test_get_empty_collection(client):
empty_response = client.get('/data')
assert empty_response.status_code == 200
assert 'json' in empty_response.content_type
assert empty_response.is_json
assert empty_response.json['href'].startswith('http')
assert empty_response.json['href'].endswith('/data... | 37.862069 | 61 | 0.714936 | 143 | 1,098 | 5.265734 | 0.195804 | 0.143426 | 0.148738 | 0.099602 | 0.414343 | 0.321381 | 0.087649 | 0 | 0 | 0 | 0 | 0.010811 | 0.157559 | 1,098 | 28 | 62 | 39.214286 | 0.803243 | 0 | 0 | 0 | 0 | 0 | 0.100182 | 0 | 0 | 0 | 0 | 0 | 0.692308 | 1 | 0.115385 | false | 0 | 0 | 0 | 0.115385 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f79ff79986a0d462332e2b54a4e098723107b8ad | 5,011 | py | Python | code/bfs.py | Diana1320622/AILabs | 315a6f4b8f8dd60e4f53d348e06e23b4d827d179 | [
"MIT"
] | null | null | null | code/bfs.py | Diana1320622/AILabs | 315a6f4b8f8dd60e4f53d348e06e23b4d827d179 | [
"MIT"
] | null | null | null | code/bfs.py | Diana1320622/AILabs | 315a6f4b8f8dd60e4f53d348e06e23b4d827d179 | [
"MIT"
] | null | null | null | import sys
from collections import deque
from cStringIO import StringIO
pathStack = []
visitedStack = [] #nodes that were already visited
stateQueue = deque([])
state = 1
class Node(object):
def __init__(self):
self.problem = None #current node (containers) list
self.parent = None
self.ac... | 31.124224 | 95 | 0.549591 | 564 | 5,011 | 4.875887 | 0.274823 | 0.017455 | 0.008727 | 0.011636 | 0.04 | 0.013818 | 0 | 0 | 0 | 0 | 0 | 0.007949 | 0.347236 | 5,011 | 161 | 96 | 31.124224 | 0.832773 | 0.20016 | 0 | 0.179487 | 0 | 0 | 0.015609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025641 | null | null | 0.034188 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e38a45c99bee999d35f19a3c2593c9789915da52 | 295 | py | Python | run_and_log.py | arthurljones/bikechurch-signin-python | 8d086ac508db0086d82b6d6c8864bfec6bd40b5e | [
"BSD-3-Clause"
] | 1 | 2017-10-26T22:22:31.000Z | 2017-10-26T22:22:31.000Z | run_and_log.py | arthurljones/bikechurch-signin-python | 8d086ac508db0086d82b6d6c8864bfec6bd40b5e | [
"BSD-3-Clause"
] | null | null | null | run_and_log.py | arthurljones/bikechurch-signin-python | 8d086ac508db0086d82b6d6c8864bfec6bd40b5e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from subprocess import Popen
import os
output = open("output.txt", "ab")
error = open("errors.txt", "ab")
#"-u", "{0}/main.py".format(os.getcwd())
Popen(["/usr/bin/python", "-u", "{0}/__main__.py".format(os.getcwd())], stdout = output, stderr = error) | 29.5 | 104 | 0.623729 | 44 | 295 | 4.090909 | 0.568182 | 0.066667 | 0.133333 | 0.088889 | 0.244444 | 0.244444 | 0.244444 | 0 | 0 | 0 | 0 | 0.011407 | 0.108475 | 295 | 10 | 104 | 29.5 | 0.673004 | 0.261017 | 0 | 0 | 0 | 0 | 0.259259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e38c3196063eb7da459f1ac70d0c99069416ac14 | 201 | py | Python | blackpill/current/lib/lcd_v_minus.py | fedor2018/my_upython | f334d78959e30ee41de784121edd4276d5980a60 | [
"Unlicense"
] | null | null | null | blackpill/current/lib/lcd_v_minus.py | fedor2018/my_upython | f334d78959e30ee41de784121edd4276d5980a60 | [
"Unlicense"
] | null | null | null | blackpill/current/lib/lcd_v_minus.py | fedor2018/my_upython | f334d78959e30ee41de784121edd4276d5980a60 | [
"Unlicense"
] | null | null | null | from pyb import Pin, Timer
def startV():
""" freq 1khz for voltage -V """
p = Pin('A8')
tim = Timer(1 , freq=1000)
ch = tim.channel(1, Timer.PWM, pin=p)
ch.pulse_width_percent(50)
| 22.333333 | 41 | 0.597015 | 33 | 201 | 3.575758 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065789 | 0.243781 | 201 | 8 | 42 | 25.125 | 0.710526 | 0.119403 | 0 | 0 | 0 | 0 | 0.011834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 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 |
e38cf27213760b5d41907e9e38585f1e0b183956 | 538 | py | Python | example3.py | nickaj/sohpc-scorep | cb3a76a10560a4121d08fca2bac433ed29a1ae5c | [
"Apache-2.0"
] | 1 | 2015-09-27T09:33:32.000Z | 2015-09-27T09:33:32.000Z | example3.py | nickaj/sohpc-scorep | cb3a76a10560a4121d08fca2bac433ed29a1ae5c | [
"Apache-2.0"
] | null | null | null | example3.py | nickaj/sohpc-scorep | cb3a76a10560a4121d08fca2bac433ed29a1ae5c | [
"Apache-2.0"
] | null | null | null | # Simple example demonstrating scorep usage from python
#with more functions available
import scorep
from mpi4py import MPI
comm = MPI.COMM_WORLD
rank = comm.Get_rank()
size = comm.Get_size()
def example():
d = 2356
scorep.region_begin('example')
comm.send(d,dest=(rank+1)%size)
data=comm.recv(sourc... | 17.933333 | 55 | 0.697026 | 78 | 538 | 4.717949 | 0.448718 | 0.054348 | 0.097826 | 0.070652 | 0.298913 | 0.298913 | 0.298913 | 0.298913 | 0.298913 | 0.298913 | 0 | 0.020225 | 0.172862 | 538 | 29 | 56 | 18.551724 | 0.806742 | 0.152416 | 0 | 0.235294 | 0 | 0 | 0.030905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e38d3e48f1518900471b1cd59d3d13970f1ea87d | 318 | py | Python | day15p1.py | minddrive/adventofcode2017 | 3f5a0e03ca03a73cfffbe88945f6c50285a029db | [
"MIT"
] | null | null | null | day15p1.py | minddrive/adventofcode2017 | 3f5a0e03ca03a73cfffbe88945f6c50285a029db | [
"MIT"
] | null | null | null | day15p1.py | minddrive/adventofcode2017 | 3f5a0e03ca03a73cfffbe88945f6c50285a029db | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
def next_nums():
A = 703
B = 516
for _ in range(40000000):
A *= 16807
A %= 2147483647
B *= 48271
B %= 2147483647
yield (A, B)
count = 0
for newA, newB in next_nums():
if newA % 65536 == newB % 65536:
count += 1
print(count)
| 13.826087 | 36 | 0.503145 | 43 | 318 | 3.651163 | 0.627907 | 0.101911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287879 | 0.377358 | 318 | 22 | 37 | 14.454545 | 0.505051 | 0.066038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.071429 | 0.071429 | 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 |
e38f0d014afd70475ab6051c76ad3ee75493d575 | 478 | py | Python | utils/metrics_accumulator.py | pytti-tools/blended-diffusion | 1253a36da1d82105a32e663233fbb2389f3e6a3a | [
"MIT"
] | 121 | 2021-11-30T02:14:14.000Z | 2022-03-31T09:09:36.000Z | utils/metrics_accumulator.py | pytti-tools/blended-diffusion | 1253a36da1d82105a32e663233fbb2389f3e6a3a | [
"MIT"
] | 4 | 2022-03-08T07:12:48.000Z | 2022-03-31T17:28:15.000Z | utils/metrics_accumulator.py | pytti-tools/blended-diffusion | 1253a36da1d82105a32e663233fbb2389f3e6a3a | [
"MIT"
] | 4 | 2022-03-01T05:48:11.000Z | 2022-03-09T06:32:46.000Z | from collections import defaultdict
import numpy as np
class MetricsAccumulator:
def __init__(self) -> None:
self.accumulator = defaultdict(lambda: [])
def update_metric(self, metric_name, metric_value):
self.accumulator[metric_name].append(metric_value)
def print_average_metric(self):
... | 25.157895 | 58 | 0.654812 | 59 | 478 | 5.016949 | 0.525424 | 0.152027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002725 | 0.232218 | 478 | 18 | 59 | 26.555556 | 0.803815 | 0 | 0 | 0 | 0 | 0 | 0.043933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3911f27c024c8c5f603e62429bd552b6ae96a72 | 579 | py | Python | codes/ToOneHot.py | mengzhu0308/BiLSTM-Text-Generation | 561574d09c695e0c1eb39b7d65d95c23ab3f501f | [
"Apache-2.0"
] | null | null | null | codes/ToOneHot.py | mengzhu0308/BiLSTM-Text-Generation | 561574d09c695e0c1eb39b7d65d95c23ab3f501f | [
"Apache-2.0"
] | 1 | 2021-12-22T05:20:47.000Z | 2021-12-22T05:20:47.000Z | codes/ToOneHot.py | mengzhu0308/BiLSTM-Text-Generation | 561574d09c695e0c1eb39b7d65d95c23ab3f501f | [
"Apache-2.0"
] | null | null | null | #! -*- coding:utf-8 -*-
'''
@Author: ZM
@Date and Time: 2020/12/15 20:27
@File: ToOneHot.py
'''
import numpy as np
class ToOneHot:
def __init__(self, num_classes):
self.num_classes = num_classes
def __call__(self, data):
data_size = data.size
if data_size > 1:
... | 24.125 | 78 | 0.573402 | 80 | 579 | 3.875 | 0.4875 | 0.16129 | 0.180645 | 0.083871 | 0.206452 | 0.206452 | 0.206452 | 0 | 0 | 0 | 0 | 0.04914 | 0.297064 | 579 | 24 | 79 | 24.125 | 0.712531 | 0.176166 | 0 | 0 | 0 | 0 | 0.029787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.384615 | 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 |
e39f0bf70ff51a1657aedf10c4cc60013610e5da | 808 | py | Python | app/models/qualification.py | Debskij/prisonboard | 13e2b3c57b484fd26c5cf7d1d5b703b3853bd2b4 | [
"Apache-2.0"
] | null | null | null | app/models/qualification.py | Debskij/prisonboard | 13e2b3c57b484fd26c5cf7d1d5b703b3853bd2b4 | [
"Apache-2.0"
] | null | null | null | app/models/qualification.py | Debskij/prisonboard | 13e2b3c57b484fd26c5cf7d1d5b703b3853bd2b4 | [
"Apache-2.0"
] | null | null | null | from sqlalchemy.orm import relationship
from app import db
class Qualification(db.Model):
__tablename__ = "qualifications"
id = db.Column(db.Integer, primary_key=True)
prisoners_id = db.Column(db.Integer, db.ForeignKey("prisoner.id"))
skill = db.Column(db.String(128), nullable=False)
level = db.C... | 32.32 | 112 | 0.679455 | 100 | 808 | 5.21 | 0.41 | 0.126679 | 0.076775 | 0.097889 | 0.072937 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004623 | 0.196782 | 808 | 24 | 113 | 33.666667 | 0.798151 | 0 | 0 | 0 | 0 | 0.055556 | 0.181931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.055556 | 0.666667 | 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 |
e3a039993e239ad4ecbef971ef37a9d9c1b202c4 | 713 | py | Python | accounts/migrations/0017_auto_20211114_1106.py | shakori999/Django_CRM | 82789878b679e68e993295fde0040b16a1c56767 | [
"Apache-2.0"
] | null | null | null | accounts/migrations/0017_auto_20211114_1106.py | shakori999/Django_CRM | 82789878b679e68e993295fde0040b16a1c56767 | [
"Apache-2.0"
] | 2 | 2022-03-21T08:48:46.000Z | 2022-03-21T08:49:57.000Z | accounts/migrations/0017_auto_20211114_1106.py | shakori999/Django_CRM | 82789878b679e68e993295fde0040b16a1c56767 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-14 08:06
from decimal import Decimal
from django.db import migrations, models
import djmoney.models.fields
class Migration(migrations.Migration):
dependencies = [
('accounts', '0016_alter_order_location'),
]
operations = [
migrations.AlterField(
... | 27.423077 | 146 | 0.633941 | 77 | 713 | 5.766234 | 0.61039 | 0.058559 | 0.085586 | 0.130631 | 0.184685 | 0.184685 | 0 | 0 | 0 | 0 | 0 | 0.044944 | 0.251052 | 713 | 25 | 147 | 28.52 | 0.786517 | 0.063114 | 0 | 0.315789 | 1 | 0 | 0.096096 | 0.037538 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3a376cc7d54a900b13665746969d9bf6472275b | 3,772 | py | Python | oakling/libs/tests/test_utils_run_once.py | zym1115718204/oakling | e925e324c0a18b4cb246a1811f2dca522c4e2892 | [
"Apache-2.0"
] | 1 | 2018-03-22T10:45:22.000Z | 2018-03-22T10:45:22.000Z | oakling/libs/tests/test_utils_run_once.py | zym1115718204/oakling | e925e324c0a18b4cb246a1811f2dca522c4e2892 | [
"Apache-2.0"
] | null | null | null | oakling/libs/tests/test_utils_run_once.py | zym1115718204/oakling | e925e324c0a18b4cb246a1811f2dca522c4e2892 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Author: Oakling Group
# Created on 2017.6.1
# Usage: Python manage.py test
from __future__ import unicode_literals
import os
import time
import arrow
import click
import unittest2 as unittest
from libs.tests.basetest import unittest_log
from collector.utils import D... | 31.433333 | 93 | 0.639979 | 476 | 3,772 | 4.840336 | 0.216387 | 0.072917 | 0.065104 | 0.082465 | 0.559462 | 0.538628 | 0.514323 | 0.508247 | 0.34592 | 0.289063 | 0 | 0.004209 | 0.244168 | 3,772 | 119 | 94 | 31.697479 | 0.803928 | 0.073436 | 0 | 0.338462 | 0 | 0 | 0.13302 | 0.0482 | 0 | 0 | 0 | 0 | 0.092308 | 0 | null | null | 0.015385 | 0.184615 | null | null | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e3ad6b0d554b72df7c3a6e4fa6c969413d7631ac | 923 | py | Python | Bugscan_exploits-master/exp_list/exp-2517.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 11 | 2020-05-30T13:53:49.000Z | 2021-03-17T03:20:59.000Z | Bugscan_exploits-master/exp_list/exp-2517.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-13T03:25:18.000Z | 2020-07-21T06:24:16.000Z | Bugscan_exploits-master/exp_list/exp-2517.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-30T13:53:51.000Z | 2020-12-01T21:44:26.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#__Author__ = 烽火戏诸侯
#_PlugName_ = Imagine web design SQL Injection/Blind SQL Injection Vulnerability
def assign(service, arg):
if service == "imaginecms":
return True, arg
def audit(arg):
target = arg+'largerimage.php?width=900&height=675&size=... | 46.15 | 378 | 0.707476 | 130 | 923 | 4.884615 | 0.730769 | 0.018898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192649 | 0.145179 | 923 | 20 | 379 | 46.15 | 0.612167 | 0.150596 | 0 | 0 | 0 | 0.090909 | 0.58399 | 0.511811 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3ae4baac1a42061fcbb1b8cfaf4a2315f72de04 | 5,135 | py | Python | matlab2cpp/tree/assign.py | emc2norway/m2cpp | 81943057c184c539b409282cbbd47bbf933db04f | [
"BSD-3-Clause"
] | 28 | 2017-04-25T10:06:38.000Z | 2022-02-09T07:25:34.000Z | matlab2cpp/tree/assign.py | emc2norway/m2cpp | 81943057c184c539b409282cbbd47bbf933db04f | [
"BSD-3-Clause"
] | null | null | null | matlab2cpp/tree/assign.py | emc2norway/m2cpp | 81943057c184c539b409282cbbd47bbf933db04f | [
"BSD-3-Clause"
] | 5 | 2017-04-25T17:54:53.000Z | 2022-03-21T20:15:15.000Z | """
Support functions for identifying assignments.
+-------------------------------------------+----------------------------------+
| Function | Description |
+===========================================+==================================+
| :py:func:`~matlab2cpp.t... | 29.176136 | 80 | 0.524245 | 606 | 5,135 | 4.384488 | 0.183168 | 0.051186 | 0.04554 | 0.031615 | 0.545352 | 0.496801 | 0.494919 | 0.434324 | 0.434324 | 0.401957 | 0 | 0.018101 | 0.300682 | 5,135 | 175 | 81 | 29.342857 | 0.721805 | 0 | 0 | 0.351351 | 0 | 0 | 0.094355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081081 | null | null | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e3b20a38a4dfe8f8721febdf7e956df36a83ac1d | 13,071 | py | Python | PyZ3950/zdefs.py | entu/entu-ester | 9489bab537c9f2186155b7a02ed2b08b68d01c11 | [
"MIT"
] | 1 | 2018-07-01T12:39:22.000Z | 2018-07-01T12:39:22.000Z | PyZ3950/zdefs.py | entu/entu-ester | 9489bab537c9f2186155b7a02ed2b08b68d01c11 | [
"MIT"
] | 4 | 2018-04-08T09:11:06.000Z | 2018-07-22T11:51:08.000Z | PyZ3950/zdefs.py | entu/entu-ester | 9489bab537c9f2186155b7a02ed2b08b68d01c11 | [
"MIT"
] | 2 | 2018-03-12T11:25:29.000Z | 2019-06-11T14:17:02.000Z | #!/usr/bin/env python
import codecs
from PyZ3950.z3950_2001 import *
from PyZ3950.oids import *
asn1.register_oid (Z3950_RECSYN_GRS1, GenericRecord)
asn1.register_oid (Z3950_RECSYN_SUTRS, asn1.GeneralString)
asn1.register_oid (Z3950_RECSYN_EXPLAIN, Explain_Record)
asn1.register_oid (Z3950_RECSYN_OPAC, OPACRecor... | 37.777457 | 231 | 0.669803 | 1,584 | 13,071 | 5.330177 | 0.275253 | 0.016108 | 0.028426 | 0.037901 | 0.170674 | 0.101386 | 0.027242 | 0.012792 | 0.012792 | 0.012792 | 0 | 0.039081 | 0.244358 | 13,071 | 345 | 232 | 37.886957 | 0.815734 | 0.129829 | 0 | 0.093023 | 0 | 0 | 0.06775 | 0.008742 | 0 | 0 | 0.002185 | 0 | 0.007752 | 0 | null | null | 0.011628 | 0.011628 | null | null | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e3b3a6ca83cdc16bf750246fdafca5cf0bc7d893 | 987 | py | Python | use_artifact.py | averma12/ML_pipeline | 1860c680389009c85aedf0b24489dacdf2e7ffa5 | [
"MIT"
] | null | null | null | use_artifact.py | averma12/ML_pipeline | 1860c680389009c85aedf0b24489dacdf2e7ffa5 | [
"MIT"
] | null | null | null | use_artifact.py | averma12/ML_pipeline | 1860c680389009c85aedf0b24489dacdf2e7ffa5 | [
"MIT"
] | null | null | null | import argparse
import pathlib
import wandb
from logger import setup_logger
log = setup_logger(__name__,"use_artifact.log")
def go(args):
log.info("Creating run in project exercise_1")
run = wandb.init(project="exercise_1", job_type="use_file")
log.info("Getting artifact")
# YOUR CODE HERE: get the... | 25.307692 | 95 | 0.68693 | 137 | 987 | 4.737226 | 0.518248 | 0.07396 | 0.049307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002545 | 0.203647 | 987 | 39 | 96 | 25.307692 | 0.823155 | 0.156028 | 0 | 0 | 0 | 0 | 0.219013 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.041667 | false | 0 | 0.166667 | 0 | 0.208333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3b3e734a6b3ea8444c6f9e40f699630b15bd866 | 1,023 | py | Python | bootcamp/activities/migrations/0004_auto_20180620_0908.py | ngaurav/bootcamp | 79e058de2e0dabb897ef202a86b54aa7baefdd04 | [
"MIT"
] | null | null | null | bootcamp/activities/migrations/0004_auto_20180620_0908.py | ngaurav/bootcamp | 79e058de2e0dabb897ef202a86b54aa7baefdd04 | [
"MIT"
] | null | null | null | bootcamp/activities/migrations/0004_auto_20180620_0908.py | ngaurav/bootcamp | 79e058de2e0dabb897ef202a86b54aa7baefdd04 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-20 09:08
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('activities', '0003_auto_20180617_1026'),
]
operations = [
migrations.Remov... | 30.088235 | 203 | 0.560117 | 101 | 1,023 | 5.514851 | 0.623762 | 0.064632 | 0.091562 | 0.113106 | 0.265709 | 0.265709 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.278592 | 1,023 | 33 | 204 | 31 | 0.705962 | 0.067449 | 0 | 0.423077 | 1 | 0 | 0.201893 | 0.024185 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.192308 | 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 |
e3c095a898f421bf2ef439ed53062a694d5a6bd0 | 2,836 | py | Python | tests/test_encryption_ops.py | GoelJatin/HealthChecker | 48f653491a618fa759ffb0c6e549858822dd71a4 | [
"MIT"
] | null | null | null | tests/test_encryption_ops.py | GoelJatin/HealthChecker | 48f653491a618fa759ffb0c6e549858822dd71a4 | [
"MIT"
] | null | null | null | tests/test_encryption_ops.py | GoelJatin/HealthChecker | 48f653491a618fa759ffb0c6e549858822dd71a4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: Jatin Goel
"""
import random
import string
import uuid
import pytest
from src.encryption_ops.decryption import Decryption
from src.encryption_ops.encrypt import encrypt
from src.encryption_ops.encryption import Encryption
SALT = uuid.uuid4().bytes
PASSWORD = 'Test!123'
ENCRYPT... | 35.012346 | 106 | 0.686883 | 297 | 2,836 | 6.360269 | 0.222222 | 0.125993 | 0.080466 | 0.07676 | 0.621493 | 0.602435 | 0.540498 | 0.540498 | 0.516146 | 0.451562 | 0 | 0.007463 | 0.196756 | 2,836 | 80 | 107 | 35.45 | 0.821773 | 0.030324 | 0 | 0.344828 | 0 | 0 | 0.051076 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 1 | 0.137931 | false | 0.103448 | 0.12069 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e3c827b440f18a1e06b8a86451dde91b5b04f750 | 1,697 | py | Python | setup.py | westernx/sgactions | e4ea1792d09ff5c8f07bd02e61c80c664a60ce11 | [
"BSD-3-Clause"
] | 11 | 2015-05-11T12:49:52.000Z | 2021-08-18T03:21:22.000Z | setup.py | westernx/sgactions | e4ea1792d09ff5c8f07bd02e61c80c664a60ce11 | [
"BSD-3-Clause"
] | null | null | null | setup.py | westernx/sgactions | e4ea1792d09ff5c8f07bd02e61c80c664a60ce11 | [
"BSD-3-Clause"
] | 6 | 2016-02-22T14:22:13.000Z | 2019-05-22T06:10:37.000Z | import os
from setuptools import setup, find_packages
setup(
name='sgactions',
version='1.1.0',
description='Shotgun ActionMenuItem enrichment.',
url='http://github.com/westernx/sgactions',
packages=find_packages(exclude=['build*', 'tests*']),
include_package_data=True,
author='Mike... | 28.283333 | 117 | 0.591043 | 176 | 1,697 | 5.602273 | 0.647727 | 0.036511 | 0.040568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003997 | 0.262817 | 1,697 | 59 | 118 | 28.762712 | 0.784173 | 0.092516 | 0 | 0 | 0 | 0 | 0.460586 | 0.109446 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3d2ed6891ab827173c314d9d973b4679c422520 | 3,029 | py | Python | tests/test_gmphd.py | fjorquerauribe/object-tracking | 06c58df174d8c528664fa153048d806ec3cd4f78 | [
"Apache-2.0"
] | 2 | 2021-05-07T01:00:59.000Z | 2021-05-10T19:53:02.000Z | tests/test_gmphd.py | fjorquerauribe/object-tracking | 06c58df174d8c528664fa153048d806ec3cd4f78 | [
"Apache-2.0"
] | null | null | null | tests/test_gmphd.py | fjorquerauribe/object-tracking | 06c58df174d8c528664fa153048d806ec3cd4f78 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import cv2
import argparse as ap
from context import tracking
from tracking.utils.image_generator import MTTImageGenerator as ImageGenerator
from tracking.models.gmphd_filter import GMPHDFilter
from frcnn import FasterRCNN
if __name__ == '__main__':
parser = ap.ArgumentParser()
group = parse... | 38.833333 | 136 | 0.51238 | 313 | 3,029 | 4.875399 | 0.313099 | 0.022936 | 0.02097 | 0.026212 | 0.203145 | 0.136304 | 0.073395 | 0.073395 | 0.073395 | 0.073395 | 0 | 0.011265 | 0.355233 | 3,029 | 78 | 137 | 38.833333 | 0.770097 | 0.111588 | 0 | 0.160714 | 0 | 0 | 0.104734 | 0.013791 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3da963589f1a580f550c8a57d51431daa70d961 | 2,410 | py | Python | lib/python2.7/site-packages/openopt/solvers/CVXOPT/CVXOPT_SDP_Solver.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | 5 | 2017-01-23T16:23:43.000Z | 2022-01-20T16:14:06.000Z | lib/python2.7/site-packages/openopt/solvers/CVXOPT/CVXOPT_SDP_Solver.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2015-04-24T06:46:25.000Z | 2015-04-24T06:46:25.000Z | lib/python2.7/site-packages/openopt/solvers/CVXOPT/CVXOPT_SDP_Solver.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | 8 | 2016-05-30T13:35:17.000Z | 2021-06-15T22:24:29.000Z | from numpy import asarray, ones, all, isfinite, copy, nan, concatenate, array, asfarray, zeros
from openopt.kernel.ooMisc import WholeRepr2LinConst, xBounds2Matrix
from cvxopt_misc import *
import cvxopt.solvers as cvxopt_solvers
from cvxopt.base import matrix
from openopt.kernel.setDefaultIterFuncs import SOLVED_WITH... | 40.166667 | 189 | 0.635685 | 359 | 2,410 | 4.069638 | 0.381616 | 0.080082 | 0.082136 | 0.053388 | 0.166324 | 0.144422 | 0.057495 | 0.057495 | 0.057495 | 0 | 0 | 0.009605 | 0.222407 | 2,410 | 59 | 190 | 40.847458 | 0.770011 | 0.16473 | 0 | 0.086957 | 0 | 0 | 0.042871 | 0.011964 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.065217 | false | 0 | 0.130435 | 0 | 0.23913 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3dce2e3f4e16d59cf2fecb9e9fc72af28033c1e | 753 | py | Python | tests/python/pants_test/cache/delay_server.py | StephanErb/pants | a368267b6b4cf50138ba567f582409ed31bf5db9 | [
"Apache-2.0"
] | null | null | null | tests/python/pants_test/cache/delay_server.py | StephanErb/pants | a368267b6b4cf50138ba567f582409ed31bf5db9 | [
"Apache-2.0"
] | null | null | null | tests/python/pants_test/cache/delay_server.py | StephanErb/pants | a368267b6b4cf50138ba567f582409ed31bf5db9 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, division, print_function, unicode_literals
import http.server
import socketserver
import threading
import time
def get_delayed_han... | 25.965517 | 82 | 0.775564 | 93 | 753 | 6.096774 | 0.634409 | 0.035273 | 0.059965 | 0.077601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016975 | 0.139442 | 753 | 28 | 83 | 26.892857 | 0.858025 | 0.184595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.277778 | 0 | 0.611111 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e3df61bcc9f636c800f6f16dfcbd90775a375157 | 5,085 | py | Python | collect.py | acnagy/bubblewrap | 432ff04600c58b535903ec7466458c5ea4117d77 | [
"MIT"
] | 1 | 2021-07-01T02:20:31.000Z | 2021-07-01T02:20:31.000Z | collect.py | acnagy/bubblewrap | 432ff04600c58b535903ec7466458c5ea4117d77 | [
"MIT"
] | null | null | null | collect.py | acnagy/bubblewrap | 432ff04600c58b535903ec7466458c5ea4117d77 | [
"MIT"
] | 1 | 2021-06-16T01:43:51.000Z | 2021-06-16T01:43:51.000Z | """
Functionality to walk a package's tree in search of Python files, filter module imports for which main
modules test modules are operating on, and return a map of modules to tests that assess them
"""
import os
import ast
import logging
import multiprocessing
from typing import Dict, List, Set
from multiprocessing... | 35.068966 | 102 | 0.659587 | 703 | 5,085 | 4.637269 | 0.273115 | 0.030675 | 0.015951 | 0.016564 | 0.12638 | 0.06319 | 0.047853 | 0.047853 | 0.047853 | 0.047853 | 0 | 0.002869 | 0.246018 | 5,085 | 144 | 103 | 35.3125 | 0.847418 | 0.273156 | 0 | 0.073171 | 0 | 0 | 0.048328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0 | 0.256098 | 0 | 0.536585 | 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 |
e3df78eaababe7be605ad0499daa7480cb82a203 | 1,272 | py | Python | accounts/views.py | projjal1/certificate_portal | 7a1812114037d1d1ce3af91c0f13eeda3392dd13 | [
"Apache-2.0"
] | null | null | null | accounts/views.py | projjal1/certificate_portal | 7a1812114037d1d1ce3af91c0f13eeda3392dd13 | [
"Apache-2.0"
] | 4 | 2020-02-12T02:51:17.000Z | 2020-06-06T00:45:34.000Z | accounts/views.py | projjal1/certificate_portal | 7a1812114037d1d1ce3af91c0f13eeda3392dd13 | [
"Apache-2.0"
] | 1 | 2021-06-05T08:23:27.000Z | 2021-06-05T08:23:27.000Z | from django.shortcuts import render
from django.shortcuts import render,redirect
from django.contrib.auth.models import User
from django.contrib import auth
import os
import platform
def base(request):
return render(request,"home.html")
def login(request):
if request.method=="POST":
user=auth.authent... | 27.652174 | 99 | 0.615566 | 162 | 1,272 | 4.802469 | 0.376543 | 0.077121 | 0.122108 | 0.069409 | 0.293059 | 0.077121 | 0 | 0 | 0 | 0 | 0 | 0.003128 | 0.246069 | 1,272 | 45 | 100 | 28.266667 | 0.808133 | 0 | 0 | 0.162162 | 0 | 0 | 0.188976 | 0.05748 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0.054054 | 0.162162 | 0.027027 | 0.459459 | 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 |
e3dfd907a38afd24364ebf69778f541cdf38e1e8 | 1,971 | py | Python | show/feature.py | Aster-ZhangBen/sonic-utilities | 7689021715e153882fad2114cf8484176f35cfcd | [
"Apache-2.0"
] | null | null | null | show/feature.py | Aster-ZhangBen/sonic-utilities | 7689021715e153882fad2114cf8484176f35cfcd | [
"Apache-2.0"
] | null | null | null | show/feature.py | Aster-ZhangBen/sonic-utilities | 7689021715e153882fad2114cf8484176f35cfcd | [
"Apache-2.0"
] | null | null | null | import click
from natsort import natsorted
from tabulate import tabulate
from utilities_common.cli import AbbreviationGroup, pass_db
#
# 'feature' group (show feature ...)
#
@click.group(cls=AbbreviationGroup, name='feature', invoke_without_command=False)
def feature():
"""Show feature status"""
pass
#
# 'st... | 34.578947 | 95 | 0.678843 | 242 | 1,971 | 5.342975 | 0.227273 | 0.12761 | 0.037123 | 0.053364 | 0.604022 | 0.563805 | 0.563805 | 0.505027 | 0.441609 | 0.441609 | 0 | 0.001254 | 0.190766 | 1,971 | 56 | 96 | 35.196429 | 0.809404 | 0.075596 | 0 | 0.52381 | 0 | 0 | 0.144912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.095238 | 0.095238 | 0 | 0.166667 | 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 |
e3e293a7b5689cf94f18b2d12f5551a1d1090368 | 292 | py | Python | MRC/q.py | alinghi/AI-Portfolio-Hub | 71d235cdc32332c7913518f1b81678e8492eaaed | [
"MIT"
] | null | null | null | MRC/q.py | alinghi/AI-Portfolio-Hub | 71d235cdc32332c7913518f1b81678e8492eaaed | [
"MIT"
] | null | null | null | MRC/q.py | alinghi/AI-Portfolio-Hub | 71d235cdc32332c7913518f1b81678e8492eaaed | [
"MIT"
] | null | null | null | from datasets import (
Dataset,
load_from_disk,
concatenate_datasets,
)
org_dataset = load_from_disk("data/test_dataset")
tt=org_dataset["validation"]
f=open("./question.csv","w")
for idx,i in enumerate(tt):
f.write("\t ".join([str(idx+1),i["id"],i["question"]])+"\n")
f.close()
| 24.333333 | 61 | 0.674658 | 46 | 292 | 4.108696 | 0.652174 | 0.116402 | 0.15873 | 0.201058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003861 | 0.113014 | 292 | 11 | 62 | 26.545455 | 0.725869 | 0 | 0 | 0 | 0 | 0 | 0.195205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 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 |
e3e77f6ff62db7b6e8101e6a6e101ffc8af373c8 | 13,696 | py | Python | extensions/externalmessages/onetime.py | nirgal/ngw | 0a28e8f12cb342a20ca3456e2a2ab91dd9c898be | [
"BSD-2-Clause"
] | null | null | null | extensions/externalmessages/onetime.py | nirgal/ngw | 0a28e8f12cb342a20ca3456e2a2ab91dd9c898be | [
"BSD-2-Clause"
] | null | null | null | extensions/externalmessages/onetime.py | nirgal/ngw | 0a28e8f12cb342a20ca3456e2a2ab91dd9c898be | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
import datetime
import email
import http.client
import json
import logging
import smtplib
import subprocess
import traceback
import urllib
from django.conf import settings
from django.core import mail
from django.forms import ValidationError
from django.utils import timezone
from django.utils.c... | 35.117949 | 79 | 0.629673 | 1,655 | 13,696 | 5.07432 | 0.233837 | 0.041915 | 0.011431 | 0.009526 | 0.352227 | 0.306144 | 0.255656 | 0.246606 | 0.225173 | 0.175756 | 0 | 0.009472 | 0.260003 | 13,696 | 389 | 80 | 35.208226 | 0.819142 | 0.107769 | 0 | 0.301325 | 0 | 0 | 0.240186 | 0.017348 | 0 | 0 | 0 | 0.002571 | 0 | 1 | 0.019868 | false | 0.062914 | 0.062914 | 0 | 0.135762 | 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 |
e3ece5e008a2a6e096b4290fb442dedcdbf84459 | 5,653 | py | Python | ThirdParty/Twisted/twisted/pair/tuntap.py | OpenGeoscience/VTK | a373e975b9284a022f43a062ebf5042bb17b4e44 | [
"BSD-3-Clause"
] | 7 | 2015-04-28T13:26:11.000Z | 2020-02-09T17:01:04.000Z | ThirdParty/Twisted/twisted/pair/tuntap.py | OpenGeoscience/VTK | a373e975b9284a022f43a062ebf5042bb17b4e44 | [
"BSD-3-Clause"
] | 4 | 2017-02-19T23:58:13.000Z | 2019-11-01T15:31:22.000Z | ThirdParty/Twisted/twisted/pair/tuntap.py | OpenGeoscience/VTK | a373e975b9284a022f43a062ebf5042bb17b4e44 | [
"BSD-3-Clause"
] | 6 | 2017-02-13T09:11:02.000Z | 2021-06-29T11:22:18.000Z | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
#
import errno, os
from twisted.python import log, reflect, components
from twisted.internet import base, fdesc, error
from twisted.pair import ethernet, ip
"""
You need Eunuchs for twisted.pair.tuntap to work.
Eunuchs is a library containing th... | 33.05848 | 78 | 0.604104 | 645 | 5,653 | 5.251163 | 0.418605 | 0.034544 | 0.015058 | 0.007972 | 0.039268 | 0.039268 | 0.019486 | 0 | 0 | 0 | 0 | 0.006675 | 0.310985 | 5,653 | 170 | 79 | 33.252941 | 0.862901 | 0.056607 | 0 | 0.168421 | 0 | 0 | 0.022882 | 0 | 0 | 0 | 0 | 0.005882 | 0.010526 | 0 | null | null | 0 | 0.063158 | 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 |
e3ed5dc080e692423e0f01723a6c47d20bd7ef3f | 322 | py | Python | src/is_balanced.py | yxtay/code-ex | aabcfd4741067a8515fe75441c10853b5724bc01 | [
"MIT"
] | null | null | null | src/is_balanced.py | yxtay/code-ex | aabcfd4741067a8515fe75441c10853b5724bc01 | [
"MIT"
] | null | null | null | src/is_balanced.py | yxtay/code-ex | aabcfd4741067a8515fe75441c10853b5724bc01 | [
"MIT"
] | null | null | null | def is_balanced(s):
pairs = {"(": ")", "[": "]", "{": "}"}
stack = []
for ch in s:
if ch in pairs:
stack.append(ch)
else:
if len(stack) == 0:
return False
if pairs[stack.pop()] != ch:
return False
return len(stack) == ... | 21.466667 | 42 | 0.391304 | 35 | 322 | 3.571429 | 0.485714 | 0.24 | 0.144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01105 | 0.437888 | 322 | 14 | 43 | 23 | 0.679558 | 0 | 0 | 0.166667 | 0 | 0 | 0.018634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.333333 | 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 |
e3ef8aee27b7b3a2c7cd1686078415910bf1d836 | 3,260 | py | Python | tests/test_sensor.py | bachya/aiolookin | 553731047b6910b1cb74667fbb343faf9b8656ac | [
"MIT"
] | null | null | null | tests/test_sensor.py | bachya/aiolookin | 553731047b6910b1cb74667fbb343faf9b8656ac | [
"MIT"
] | 3 | 2021-08-16T21:32:30.000Z | 2021-10-05T00:30:03.000Z | tests/test_sensor.py | bachya/aiolookin | 553731047b6910b1cb74667fbb343faf9b8656ac | [
"MIT"
] | null | null | null | """Define tests for the device's onboard sensors."""
import json
import aiohttp
import pytest
from aiolookin import async_get_device
from aiolookin.errors import SensorError
from .common import TEST_IP_ADDRESS
@pytest.mark.asyncio
async def test_invalid_sensor(aresponses, device_server, sensor_list):
"""Test t... | 29.908257 | 86 | 0.623313 | 372 | 3,260 | 5.263441 | 0.206989 | 0.030644 | 0.066394 | 0.058223 | 0.723187 | 0.705822 | 0.603677 | 0.54954 | 0.508682 | 0.508682 | 0 | 0.011701 | 0.265951 | 3,260 | 108 | 87 | 30.185185 | 0.806519 | 0.01411 | 0 | 0.662921 | 0 | 0 | 0.130449 | 0 | 0 | 0 | 0 | 0 | 0.044944 | 1 | 0 | false | 0 | 0.067416 | 0 | 0.067416 | 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 |
e3f12cbe6527756c10059ec37a08ec08bed462a3 | 958 | py | Python | app/user/views.py | fxavier/job | 57d629bc92da2acd4d699a04e6e41ddb5a1be669 | [
"MIT"
] | null | null | null | app/user/views.py | fxavier/job | 57d629bc92da2acd4d699a04e6e41ddb5a1be669 | [
"MIT"
] | null | null | null | app/user/views.py | fxavier/job | 57d629bc92da2acd4d699a04e6e41ddb5a1be669 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.contrib.messages.views import SuccessMessageMixin
from django.contrib.auth.views import LoginView, LogoutView
from user.forms import UserRegisterForm
from django.views.generic import CreateView
class UserRegisterView(SuccessMessageMixin, CreateView):
tem... | 29.030303 | 61 | 0.713987 | 111 | 958 | 6.009009 | 0.468468 | 0.05997 | 0.071964 | 0.062969 | 0.074963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201461 | 958 | 32 | 62 | 29.9375 | 0.871895 | 0 | 0 | 0.086957 | 0 | 0 | 0.117032 | 0.024033 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.217391 | 0 | 0.695652 | 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 |
e3f24825f2afdcccd68a8a71b944032f06089447 | 898 | py | Python | Python/Piling Up!.py | MonwarAdeeb/HackerRank-Solutions | 571327e9688061745000ae81c5fd74ff7a2976d4 | [
"MIT"
] | null | null | null | Python/Piling Up!.py | MonwarAdeeb/HackerRank-Solutions | 571327e9688061745000ae81c5fd74ff7a2976d4 | [
"MIT"
] | null | null | null | Python/Piling Up!.py | MonwarAdeeb/HackerRank-Solutions | 571327e9688061745000ae81c5fd74ff7a2976d4 | [
"MIT"
] | null | null | null | # Enter your code here. Read input from STDIN. Print output to STDOUT
from collections import deque
for _ in range(int(input())):
flag = True
input()
d = deque(map(int, input().strip().split()))
if (d[0] >= d[-1]):
max = d.popleft()
else:
max = d.pop()
while d:
if (len(... | 23.631579 | 69 | 0.374165 | 104 | 898 | 3.221154 | 0.384615 | 0.071642 | 0.047761 | 0.029851 | 0.167164 | 0.167164 | 0.167164 | 0.167164 | 0.167164 | 0.167164 | 0 | 0.021739 | 0.487751 | 898 | 37 | 70 | 24.27027 | 0.706522 | 0.07461 | 0 | 0.484848 | 0 | 0 | 0.006031 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 1 | 0 | false | 0 | 0.030303 | 0 | 0.030303 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e3f273294d575ecb07e0ff2083cf016bc2a21e8e | 598 | py | Python | tools/voc2yolo.py | chenyuqing/darknet_yolov3_hardcore | f976b90f63cff1291aee341914a75dfabec53004 | [
"MIT"
] | null | null | null | tools/voc2yolo.py | chenyuqing/darknet_yolov3_hardcore | f976b90f63cff1291aee341914a75dfabec53004 | [
"MIT"
] | null | null | null | tools/voc2yolo.py | chenyuqing/darknet_yolov3_hardcore | f976b90f63cff1291aee341914a75dfabec53004 | [
"MIT"
] | null | null | null | def generate(label):
(
bbox_xmin,
bbox_ymin,
bbox_xmax,
bbox_ymax,
img_width,
img_height
) = (
label.get('xmin'),
label.get('ymin'),
label.get('xmax'),
label.get('ymax'),
label.get('img_width'),
label.get('img_height... | 21.357143 | 37 | 0.476589 | 84 | 598 | 3.178571 | 0.261905 | 0.179775 | 0.089888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016304 | 0.384615 | 598 | 27 | 38 | 22.148148 | 0.709239 | 0 | 0 | 0 | 1 | 0 | 0.058528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0 | 0 | 0.074074 | 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 |
e3faa06424d82a6de88865b8212de91906149b14 | 4,924 | py | Python | chibi/file/file.py | dem4ply/chibi | 1f13db8200e8e60bbb839436d4c995d6b6220957 | [
"WTFPL"
] | null | null | null | chibi/file/file.py | dem4ply/chibi | 1f13db8200e8e60bbb839436d4c995d6b6220957 | [
"WTFPL"
] | null | null | null | chibi/file/file.py | dem4ply/chibi | 1f13db8200e8e60bbb839436d4c995d6b6220957 | [
"WTFPL"
] | null | null | null | import os
import copy
import json
import logging
import mmap
import yaml
import magic
from chibi.atlas import _wrap
from chibi.file.path import Chibi_path
from chibi.file.snippets import (
exists, stat, check_sum_md5, read_in_chunks, base_name, file_dir,
copy as copy_file,
)
logger = logging.getLogger( 'chi... | 26.05291 | 75 | 0.557677 | 587 | 4,924 | 4.477002 | 0.204429 | 0.042618 | 0.022831 | 0.013699 | 0.189878 | 0.114155 | 0.085997 | 0.085997 | 0.064688 | 0.041096 | 0 | 0.003673 | 0.336515 | 4,924 | 188 | 76 | 26.191489 | 0.800735 | 0.003859 | 0 | 0.251701 | 0 | 0 | 0.01639 | 0.004302 | 0 | 0 | 0 | 0.005319 | 0 | 1 | 0.210884 | false | 0.013605 | 0.07483 | 0.081633 | 0.44898 | 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 |
54047d969e7e337aae9951251f6aa6ecf21ca2d7 | 3,263 | py | Python | plugins/dcmp/auth/models.py | qmgeng/docker-airflow | 44db958f81731759d143c19498499f46458aa91b | [
"Apache-2.0"
] | 269 | 2017-08-12T01:34:30.000Z | 2022-02-08T01:43:12.000Z | plugins/dcmp/auth/models.py | qmgeng/docker-airflow | 44db958f81731759d143c19498499f46458aa91b | [
"Apache-2.0"
] | 13 | 2017-10-09T09:17:14.000Z | 2022-03-22T05:17:56.000Z | plugins/dcmp/auth/models.py | qmgeng/docker-airflow | 44db958f81731759d143c19498499f46458aa91b | [
"Apache-2.0"
] | 87 | 2017-08-11T06:47:51.000Z | 2022-02-14T08:28:46.000Z | # encoding: utf-8
import logging
from datetime import datetime
from sqlalchemy import (
Column, Integer, String, DateTime, Text, Boolean, ForeignKey, PickleType,
Index, Float)
from sqlalchemy.ext.declarative import declarative_base, declared_attr
from sqlalchemy.event import listen
from sqlalchemy.orm import ... | 40.7875 | 126 | 0.727245 | 408 | 3,263 | 5.620098 | 0.301471 | 0.036633 | 0.034889 | 0.048844 | 0.288705 | 0.236808 | 0.236808 | 0.236808 | 0.178805 | 0.136066 | 0 | 0.000368 | 0.167637 | 3,263 | 80 | 127 | 40.7875 | 0.843888 | 0.004597 | 0 | 0.032258 | 0 | 0 | 0.07607 | 0.024022 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.064516 | 0.16129 | 0.032258 | 0.451613 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.